@realtek/core-theme 0.0.184 → 0.0.185
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 +641 -589
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -37662,7 +37662,7 @@ var pD = {
|
|
|
37662
37662
|
optionsKey: "hiringStageOptions",
|
|
37663
37663
|
defaultOptions: [{
|
|
37664
37664
|
label: "Shortlisted",
|
|
37665
|
-
value: "
|
|
37665
|
+
value: "shortlisted"
|
|
37666
37666
|
}, {
|
|
37667
37667
|
label: "Pipeline",
|
|
37668
37668
|
value: "pipeline"
|
|
@@ -37675,16 +37675,125 @@ var pD = {
|
|
|
37675
37675
|
disabledUntilFilled: !0,
|
|
37676
37676
|
autoSubmitWhenNoFields: !0,
|
|
37677
37677
|
getFields: (e) => e.jobId && e.hiringStage ? [] : e.jobId ? [hD] : [mD, hD]
|
|
37678
|
-
}, _D =
|
|
37678
|
+
}, _D = (e) => e?.data ?? e;
|
|
37679
|
+
function vD(e) {
|
|
37680
|
+
return Array.isArray(e) && e.every((e) => e && typeof e == "object" && "Key" in e) ? e.reduce((e, { Key: t, Value: n }) => (e[t] = n, e), {}) : e;
|
|
37681
|
+
}
|
|
37682
|
+
function yD(e) {
|
|
37683
|
+
return e ? Array.isArray(e.data) ? e.data.map(vD) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(vD) : Array.isArray(e) ? e.map(vD) : [] : [];
|
|
37684
|
+
}
|
|
37685
|
+
async function bD(e = 1, t = 10) {
|
|
37686
|
+
let n = await u(b, `/workflow/list/all?page=${e}&limit=${t}`), r = _D(n), i = Array.isArray(r) ? r : r?.data ?? [];
|
|
37687
|
+
return {
|
|
37688
|
+
items: i,
|
|
37689
|
+
total: Number(n?.total ?? r?.total) || i.length,
|
|
37690
|
+
page: e,
|
|
37691
|
+
limit: t
|
|
37692
|
+
};
|
|
37693
|
+
}
|
|
37694
|
+
async function xD(e = 100) {
|
|
37695
|
+
let t = await bD(1, e), n = [...t.items], r = t.total, i = 2;
|
|
37696
|
+
for (; n.length < r;) {
|
|
37697
|
+
let t = await bD(i, e);
|
|
37698
|
+
if (!t.items.length) break;
|
|
37699
|
+
n.push(...t.items), i += 1;
|
|
37700
|
+
}
|
|
37701
|
+
return {
|
|
37702
|
+
items: n,
|
|
37703
|
+
total: Math.max(r, n.length)
|
|
37704
|
+
};
|
|
37705
|
+
}
|
|
37706
|
+
async function SD(e, t) {
|
|
37707
|
+
let n = _D(await u(b, `/workflow/${e}/stage/${t}`));
|
|
37708
|
+
return Array.isArray(n) ? { data: n } : n;
|
|
37709
|
+
}
|
|
37710
|
+
async function CD(e, t) {
|
|
37711
|
+
if (!e || !t) return null;
|
|
37712
|
+
try {
|
|
37713
|
+
let n = _D(await u(b, `/module-data-list?${new URLSearchParams({
|
|
37714
|
+
module: e,
|
|
37715
|
+
limit: "1",
|
|
37716
|
+
offset: "0",
|
|
37717
|
+
scope: "allJobs",
|
|
37718
|
+
filters: JSON.stringify([{
|
|
37719
|
+
field: "_id",
|
|
37720
|
+
op: "in",
|
|
37721
|
+
values: [String(t)],
|
|
37722
|
+
operator: "and"
|
|
37723
|
+
}])
|
|
37724
|
+
})}`));
|
|
37725
|
+
if (Array.isArray(n)) return n[0] ?? null;
|
|
37726
|
+
if (n?.data && Array.isArray(n.data)) return n.data[0] ?? null;
|
|
37727
|
+
let r = n?.rows ?? n?.records ?? n?.items ?? n?.list;
|
|
37728
|
+
return Array.isArray(r) ? r[0] ?? null : n ?? null;
|
|
37729
|
+
} catch (n) {
|
|
37730
|
+
return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
|
|
37731
|
+
}
|
|
37732
|
+
}
|
|
37733
|
+
async function wD(e) {
|
|
37734
|
+
return _D(await u(i, "/source/workflow-instance", {
|
|
37735
|
+
method: "POST",
|
|
37736
|
+
body: JSON.stringify(e)
|
|
37737
|
+
}));
|
|
37738
|
+
}
|
|
37739
|
+
//#endregion
|
|
37740
|
+
//#region src/components/popups/definitions/tag-to-job/api.js
|
|
37741
|
+
var TD = {
|
|
37742
|
+
pipeline: "pipeline",
|
|
37743
|
+
goodfited: "goodfited",
|
|
37744
|
+
contacted: "contacted",
|
|
37745
|
+
submitted: "submitted",
|
|
37746
|
+
shortlisted: "shortlisted",
|
|
37747
|
+
interviewinprogress: "interviewInprogress",
|
|
37748
|
+
selected: "selected"
|
|
37749
|
+
};
|
|
37750
|
+
function ED(e, ...t) {
|
|
37751
|
+
for (let n of t) {
|
|
37752
|
+
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
37753
|
+
if (t != null && t !== "") return t;
|
|
37754
|
+
}
|
|
37755
|
+
}
|
|
37756
|
+
function DD(e) {
|
|
37757
|
+
let t = String(e ?? "").trim();
|
|
37758
|
+
return t ? TD[t.toLowerCase()] ?? t : "";
|
|
37759
|
+
}
|
|
37760
|
+
function OD(e, t) {
|
|
37761
|
+
let n = ED(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
|
|
37762
|
+
if (!n) return null;
|
|
37763
|
+
let r = (ED(e, "candidateName", "candidate_name", "fullName", "name") ?? [ED(e, "firstName", "first_name"), ED(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
|
|
37764
|
+
candidateId: String(n),
|
|
37765
|
+
candidateName: r,
|
|
37766
|
+
phone: ED(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
|
|
37767
|
+
source: ED(e, "source", "sourceType", "candidateSource", "profileSource"),
|
|
37768
|
+
submittedAt: ED(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
|
|
37769
|
+
remarks: ED(e, "remarks", "comment", "comments", "notes"),
|
|
37770
|
+
assignedRecruiter: ED(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
|
|
37771
|
+
screeningStatus: ED(e, "screeningStatus", "screening.status", "screeningResult"),
|
|
37772
|
+
screeningScore: ED(e, "screeningScore", "screening.score", "score"),
|
|
37773
|
+
assignedDate: ED(e, "assignedDate", "assignedAt", "createdAt")
|
|
37774
|
+
};
|
|
37775
|
+
return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
|
|
37776
|
+
}
|
|
37777
|
+
var kD = {
|
|
37679
37778
|
searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? $a(t) : [],
|
|
37680
37779
|
submit: async (e, t) => {
|
|
37780
|
+
let n = e.jobId ?? t.jobId, r = DD(e.hiringStage ?? t.hiringStage), i = Array.isArray(t.selectedIds) ? t.selectedIds : [], a = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], o = Math.max(i.length, a.length, 1);
|
|
37781
|
+
for (let e = 0; e < o; e += 1) {
|
|
37782
|
+
let t = i[e] ? String(i[e]) : "", o = OD(a[e] ?? {}, t);
|
|
37783
|
+
await wD({
|
|
37784
|
+
jobId: n,
|
|
37785
|
+
module: "jobs",
|
|
37786
|
+
currentStage: r,
|
|
37787
|
+
...o ? { candidateDetails: o } : {}
|
|
37788
|
+
});
|
|
37789
|
+
}
|
|
37681
37790
|
await io({
|
|
37682
|
-
jobId:
|
|
37791
|
+
jobId: n,
|
|
37683
37792
|
candidateIds: t.selectedIds,
|
|
37684
|
-
hiringStage:
|
|
37793
|
+
hiringStage: r
|
|
37685
37794
|
});
|
|
37686
37795
|
}
|
|
37687
|
-
},
|
|
37796
|
+
}, AD = {
|
|
37688
37797
|
title: "Change Status",
|
|
37689
37798
|
okText: "Apply",
|
|
37690
37799
|
width: 420,
|
|
@@ -37716,9 +37825,9 @@ var pD = {
|
|
|
37716
37825
|
}
|
|
37717
37826
|
]
|
|
37718
37827
|
}]
|
|
37719
|
-
},
|
|
37828
|
+
}, jD = { submit: async (e, t) => {
|
|
37720
37829
|
await Za(t.moduleName, t.selectedIds, e.status);
|
|
37721
|
-
} },
|
|
37830
|
+
} }, MD = {
|
|
37722
37831
|
getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
|
|
37723
37832
|
titleIcon: "delete",
|
|
37724
37833
|
okText: "Remove",
|
|
@@ -37727,12 +37836,12 @@ var pD = {
|
|
|
37727
37836
|
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?",
|
|
37728
37837
|
footerNote: "The candidate will be moved back to the pipeline.",
|
|
37729
37838
|
fields: []
|
|
37730
|
-
},
|
|
37839
|
+
}, ND = { onOk: async (e) => {
|
|
37731
37840
|
await To({
|
|
37732
37841
|
jobId: e.jobId ?? e.selectedIds[0],
|
|
37733
37842
|
candidateIds: e.selectedIds
|
|
37734
37843
|
});
|
|
37735
|
-
} },
|
|
37844
|
+
} }, PD = {
|
|
37736
37845
|
title: "Add to Groups",
|
|
37737
37846
|
description: "Select a group to add the selected candidate(s) to",
|
|
37738
37847
|
okText: "Add to Group",
|
|
@@ -37746,7 +37855,7 @@ var pD = {
|
|
|
37746
37855
|
placeholder: "Select a group",
|
|
37747
37856
|
fetchOptionsKey: "candidateGroups"
|
|
37748
37857
|
}]
|
|
37749
|
-
},
|
|
37858
|
+
}, FD = {
|
|
37750
37859
|
getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? ao() : [],
|
|
37751
37860
|
submit: async (e, t, { dynamicOptions: n }) => {
|
|
37752
37861
|
let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
|
|
@@ -37756,7 +37865,7 @@ var pD = {
|
|
|
37756
37865
|
groupName: r?.label ?? ""
|
|
37757
37866
|
});
|
|
37758
37867
|
}
|
|
37759
|
-
},
|
|
37868
|
+
}, ID = [
|
|
37760
37869
|
{
|
|
37761
37870
|
title: "Name",
|
|
37762
37871
|
key: "name",
|
|
@@ -37775,7 +37884,7 @@ var pD = {
|
|
|
37775
37884
|
render: (e) => e || "-"
|
|
37776
37885
|
}
|
|
37777
37886
|
];
|
|
37778
|
-
function
|
|
37887
|
+
function LD({ selectedIds: e, onClose: t }) {
|
|
37779
37888
|
let n = e?.[0], [r, i] = L(!0), [a, o] = L(!1), [s, c] = L({
|
|
37780
37889
|
assignedUsers: [],
|
|
37781
37890
|
totalSubmissions: 0,
|
|
@@ -37814,7 +37923,7 @@ function TD({ selectedIds: e, onClose: t }) {
|
|
|
37814
37923
|
children: "Team Members Allocated"
|
|
37815
37924
|
}),
|
|
37816
37925
|
/* @__PURE__ */ X(hr, {
|
|
37817
|
-
columns:
|
|
37926
|
+
columns: ID,
|
|
37818
37927
|
dataSource: s.assignedUsers,
|
|
37819
37928
|
pagination: !1,
|
|
37820
37929
|
rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
|
|
@@ -37872,18 +37981,18 @@ function TD({ selectedIds: e, onClose: t }) {
|
|
|
37872
37981
|
})]
|
|
37873
37982
|
});
|
|
37874
37983
|
}
|
|
37875
|
-
|
|
37984
|
+
LD.propTypes = {
|
|
37876
37985
|
selectedIds: Q.array,
|
|
37877
37986
|
onClose: Q.func
|
|
37878
37987
|
};
|
|
37879
37988
|
//#endregion
|
|
37880
37989
|
//#region src/components/popups/definitions/self-assign/config.js
|
|
37881
|
-
var
|
|
37990
|
+
var RD = {
|
|
37882
37991
|
title: "Self Assign",
|
|
37883
37992
|
width: 480,
|
|
37884
37993
|
className: "self-assign-modal",
|
|
37885
|
-
component:
|
|
37886
|
-
},
|
|
37994
|
+
component: LD
|
|
37995
|
+
}, zD = { submit: async () => {} }, BD = {
|
|
37887
37996
|
getTitleText: (e, t, n) => {
|
|
37888
37997
|
let r = n?.jobTitle || n?.title || "";
|
|
37889
37998
|
return r ? `Assign - ${r}` : "Assign";
|
|
@@ -37913,7 +38022,7 @@ var ED = {
|
|
|
37913
38022
|
checkboxLabel: "Mark as High"
|
|
37914
38023
|
}
|
|
37915
38024
|
]
|
|
37916
|
-
},
|
|
38025
|
+
}, VD = {
|
|
37917
38026
|
getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? uo() : [],
|
|
37918
38027
|
loadExtraData: async (e) => fo(e.selectedIds[0]),
|
|
37919
38028
|
submit: async (e, t, { removedIds: n, extraData: r }) => {
|
|
@@ -37926,7 +38035,7 @@ var ED = {
|
|
|
37926
38035
|
existingRecruiters: r?.recruitersData
|
|
37927
38036
|
});
|
|
37928
38037
|
}
|
|
37929
|
-
},
|
|
38038
|
+
}, HD = {
|
|
37930
38039
|
title: "Add Sticky Notes",
|
|
37931
38040
|
getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
|
|
37932
38041
|
okText: "Save",
|
|
@@ -37958,7 +38067,7 @@ var ED = {
|
|
|
37958
38067
|
initialValueKey: "editingComments"
|
|
37959
38068
|
}
|
|
37960
38069
|
]
|
|
37961
|
-
},
|
|
38070
|
+
}, UD = {
|
|
37962
38071
|
getMentionOptions: async (e, t) => eo(t),
|
|
37963
38072
|
submit: async (e, t) => {
|
|
37964
38073
|
let n = e.targetDate ? e.targetDate.toISOString() : "";
|
|
@@ -37974,7 +38083,7 @@ var ED = {
|
|
|
37974
38083
|
notes: e.comments
|
|
37975
38084
|
}), window.dispatchEvent(new Event("sticky-notes:refresh"));
|
|
37976
38085
|
}
|
|
37977
|
-
},
|
|
38086
|
+
}, WD = {
|
|
37978
38087
|
title: "Move to Onboarding",
|
|
37979
38088
|
bodyText: "Are you sure you want to move this candidate to onboarding?",
|
|
37980
38089
|
okText: "Yes",
|
|
@@ -37986,7 +38095,7 @@ var ED = {
|
|
|
37986
38095
|
type: "priority-checkbox",
|
|
37987
38096
|
checkboxLabel: "Send Onboarding Email"
|
|
37988
38097
|
}]
|
|
37989
|
-
},
|
|
38098
|
+
}, GD = { submit: async (e, t) => {
|
|
37990
38099
|
await _o({
|
|
37991
38100
|
submissionId: t.selectedRecords?.[0]?.submissionId,
|
|
37992
38101
|
isMail: e.sendOnboardingEmail
|
|
@@ -37994,39 +38103,39 @@ var ED = {
|
|
|
37994
38103
|
} };
|
|
37995
38104
|
//#endregion
|
|
37996
38105
|
//#region src/components/popups/definitions/approve-rate/config.js
|
|
37997
|
-
function
|
|
38106
|
+
function KD(e) {
|
|
37998
38107
|
return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
|
|
37999
38108
|
}
|
|
38000
|
-
var
|
|
38109
|
+
var qD = {
|
|
38001
38110
|
USD: "$",
|
|
38002
38111
|
INR: "₹",
|
|
38003
38112
|
EUR: "€",
|
|
38004
38113
|
GBP: "£"
|
|
38005
38114
|
};
|
|
38006
|
-
function
|
|
38007
|
-
let r =
|
|
38115
|
+
function JD(e, t, n) {
|
|
38116
|
+
let r = KD(e?.[t])[n];
|
|
38008
38117
|
if (r != null && r !== "") return r;
|
|
38009
38118
|
let i = e?.[`${t}.${n}`];
|
|
38010
38119
|
return i != null && i !== "" ? i : void 0;
|
|
38011
38120
|
}
|
|
38012
|
-
function
|
|
38013
|
-
let t = e.selectedRecords?.[0] ?? {}, n =
|
|
38121
|
+
function YD(e) {
|
|
38122
|
+
let t = e.selectedRecords?.[0] ?? {}, n = JD(t, "candidateRate", "candidateAcceptedRate") ?? JD(t, "candidateBudget", "candidateBudgetStart");
|
|
38014
38123
|
if (n === void 0 || Number(n) === 0) return null;
|
|
38015
|
-
let r =
|
|
38124
|
+
let r = JD(t, "candidateRate", "candidateAcceptedCurrency") ?? JD(t, "candidateBudget", "candidateBudgetCurrency");
|
|
38016
38125
|
return {
|
|
38017
38126
|
amount: n,
|
|
38018
|
-
symbol:
|
|
38019
|
-
unit:
|
|
38127
|
+
symbol: JD(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? JD(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? qD[String(r ?? "").toUpperCase()] ?? (r || "$"),
|
|
38128
|
+
unit: JD(t, "candidateRate", "candidateAcceptedPayUnit") ?? JD(t, "candidateBudget", "candidateBudgetUnit") ?? ""
|
|
38020
38129
|
};
|
|
38021
38130
|
}
|
|
38022
|
-
var
|
|
38131
|
+
var XD = {
|
|
38023
38132
|
title: "Approve Rate",
|
|
38024
38133
|
okText: "Approve",
|
|
38025
38134
|
width: 520,
|
|
38026
38135
|
className: "medium-modal",
|
|
38027
38136
|
successMessage: "Rate approved",
|
|
38028
38137
|
getBodyText: (e, t, n, r, i) => {
|
|
38029
|
-
let a =
|
|
38138
|
+
let a = YD(i);
|
|
38030
38139
|
return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
|
|
38031
38140
|
},
|
|
38032
38141
|
fields: [
|
|
@@ -38040,7 +38149,7 @@ var RD = {
|
|
|
38040
38149
|
inlineRow: "proposedRate",
|
|
38041
38150
|
validator: (e, t) => {
|
|
38042
38151
|
if (e == null || e === "") return;
|
|
38043
|
-
let n =
|
|
38152
|
+
let n = YD(t);
|
|
38044
38153
|
if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
|
|
38045
38154
|
}
|
|
38046
38155
|
},
|
|
@@ -38108,7 +38217,7 @@ var RD = {
|
|
|
38108
38217
|
}]
|
|
38109
38218
|
}
|
|
38110
38219
|
]
|
|
38111
|
-
},
|
|
38220
|
+
}, ZD = { submit: async (e, t) => {
|
|
38112
38221
|
let n = t.selectedIds[0];
|
|
38113
38222
|
if (await vo(n, {
|
|
38114
38223
|
candidateProposedRate: e.candidateProposedRate,
|
|
@@ -38124,7 +38233,7 @@ var RD = {
|
|
|
38124
38233
|
} };
|
|
38125
38234
|
//#endregion
|
|
38126
38235
|
//#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
|
|
38127
|
-
function
|
|
38236
|
+
function QD(e, t = {}) {
|
|
38128
38237
|
return {
|
|
38129
38238
|
client: t.clientName ?? e.clientName,
|
|
38130
38239
|
role: t.jobTitle ?? e.jobTitle ?? e.designation,
|
|
@@ -38138,7 +38247,7 @@ function BD(e, t = {}) {
|
|
|
38138
38247
|
employerName: t.employerName
|
|
38139
38248
|
};
|
|
38140
38249
|
}
|
|
38141
|
-
function
|
|
38250
|
+
function $D({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
38142
38251
|
let r = t?.[0] ?? {}, i = e?.[0] ?? ry(r), [a, o] = L(null), [s, c] = L(!0);
|
|
38143
38252
|
F(() => {
|
|
38144
38253
|
let e = !1;
|
|
@@ -38185,29 +38294,29 @@ function VD({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
38185
38294
|
type: Rv,
|
|
38186
38295
|
record: a.record,
|
|
38187
38296
|
lookups: a.lookups,
|
|
38188
|
-
identity:
|
|
38297
|
+
identity: QD(r, a.display),
|
|
38189
38298
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
38190
38299
|
actions: l,
|
|
38191
38300
|
onClose: () => n?.(),
|
|
38192
38301
|
variant: "popup"
|
|
38193
38302
|
});
|
|
38194
38303
|
}
|
|
38195
|
-
|
|
38304
|
+
$D.propTypes = {
|
|
38196
38305
|
selectedIds: Q.array,
|
|
38197
38306
|
selectedRecords: Q.array,
|
|
38198
38307
|
onClose: Q.func
|
|
38199
38308
|
};
|
|
38200
38309
|
//#endregion
|
|
38201
38310
|
//#region src/components/popups/definitions/manager-approve/config.js
|
|
38202
|
-
var
|
|
38311
|
+
var eO = {
|
|
38203
38312
|
title: "Manager Approve",
|
|
38204
38313
|
width: 780,
|
|
38205
38314
|
className: "fa-modal manager-approve-modal",
|
|
38206
|
-
component:
|
|
38207
|
-
},
|
|
38315
|
+
component: $D
|
|
38316
|
+
}, tO = { submit: async () => {} };
|
|
38208
38317
|
//#endregion
|
|
38209
38318
|
//#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
|
|
38210
|
-
function
|
|
38319
|
+
function nO(e, t = {}) {
|
|
38211
38320
|
return {
|
|
38212
38321
|
client: t.clientName ?? e.clientName,
|
|
38213
38322
|
role: t.jobTitle ?? e.jobTitle ?? e.designation,
|
|
@@ -38221,18 +38330,18 @@ function WD(e, t = {}) {
|
|
|
38221
38330
|
employerName: t.employerName
|
|
38222
38331
|
};
|
|
38223
38332
|
}
|
|
38224
|
-
function
|
|
38333
|
+
function rO(e) {
|
|
38225
38334
|
let t = Array.isArray(e) ? e : [];
|
|
38226
38335
|
for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
|
|
38227
38336
|
return null;
|
|
38228
38337
|
}
|
|
38229
|
-
function
|
|
38338
|
+
function iO({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
38230
38339
|
let r = t?.[0] ?? {}, i = e?.[0] ?? ry(r), [a, o] = L(null), [s, c] = L(!0);
|
|
38231
38340
|
F(() => {
|
|
38232
38341
|
let e = !1;
|
|
38233
38342
|
return c(!0), Promise.all([Dy(i, r), _n("submission", i).catch(() => [])]).then(([t, n]) => {
|
|
38234
38343
|
if (e) return;
|
|
38235
|
-
let r =
|
|
38344
|
+
let r = rO(n);
|
|
38236
38345
|
o({
|
|
38237
38346
|
...t,
|
|
38238
38347
|
record: {
|
|
@@ -38285,26 +38394,26 @@ function KD({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
38285
38394
|
type: Vv,
|
|
38286
38395
|
record: a.record,
|
|
38287
38396
|
lookups: a.lookups,
|
|
38288
|
-
identity:
|
|
38397
|
+
identity: nO(r, a.display),
|
|
38289
38398
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
38290
38399
|
actions: l,
|
|
38291
38400
|
onClose: () => n?.(),
|
|
38292
38401
|
variant: "popup"
|
|
38293
38402
|
});
|
|
38294
38403
|
}
|
|
38295
|
-
|
|
38404
|
+
iO.propTypes = {
|
|
38296
38405
|
selectedIds: Q.array,
|
|
38297
38406
|
selectedRecords: Q.array,
|
|
38298
38407
|
onClose: Q.func
|
|
38299
38408
|
};
|
|
38300
38409
|
//#endregion
|
|
38301
38410
|
//#region src/components/popups/definitions/manager-reapprove/config.js
|
|
38302
|
-
var
|
|
38411
|
+
var aO = {
|
|
38303
38412
|
title: "Re-Approve",
|
|
38304
38413
|
width: 780,
|
|
38305
38414
|
className: "fa-modal manager-approve-modal",
|
|
38306
|
-
component:
|
|
38307
|
-
},
|
|
38415
|
+
component: iO
|
|
38416
|
+
}, oO = { submit: async () => {} }, sO = [
|
|
38308
38417
|
{
|
|
38309
38418
|
id: 1,
|
|
38310
38419
|
name: "Re-Submission"
|
|
@@ -38317,7 +38426,7 @@ var qD = {
|
|
|
38317
38426
|
id: 3,
|
|
38318
38427
|
name: "Incomplete candidate details - (Re-Submission)"
|
|
38319
38428
|
}
|
|
38320
|
-
],
|
|
38429
|
+
], cO = {
|
|
38321
38430
|
title: "Reject",
|
|
38322
38431
|
okText: "Reject",
|
|
38323
38432
|
okButtonDanger: !0,
|
|
@@ -38329,7 +38438,7 @@ var qD = {
|
|
|
38329
38438
|
type: "select",
|
|
38330
38439
|
required: !0,
|
|
38331
38440
|
placeholder: "Select rejection reasons",
|
|
38332
|
-
defaultOptions:
|
|
38441
|
+
defaultOptions: sO.map((e) => ({
|
|
38333
38442
|
label: e.name,
|
|
38334
38443
|
value: e.id
|
|
38335
38444
|
}))
|
|
@@ -38340,77 +38449,77 @@ var qD = {
|
|
|
38340
38449
|
required: !0,
|
|
38341
38450
|
rows: 4
|
|
38342
38451
|
}]
|
|
38343
|
-
},
|
|
38344
|
-
let n =
|
|
38452
|
+
}, lO = { submit: async (e, t) => {
|
|
38453
|
+
let n = sO.find((t) => String(t.id) === String(e.rejectReason));
|
|
38345
38454
|
await bo({
|
|
38346
38455
|
submissionId: t.selectedIds[0],
|
|
38347
38456
|
rejectReasonId: e.rejectReason,
|
|
38348
38457
|
rejectReason: n?.name ?? "",
|
|
38349
38458
|
rejectReasonComments: e.rejectReasonComments
|
|
38350
38459
|
});
|
|
38351
|
-
} },
|
|
38460
|
+
} }, uO = {
|
|
38352
38461
|
delete: rD,
|
|
38353
38462
|
"quick-submit": aD,
|
|
38354
38463
|
"add-notes": uD,
|
|
38355
38464
|
"tag-to-job": gD,
|
|
38356
|
-
"change-status":
|
|
38357
|
-
"remove-from-shortlist":
|
|
38358
|
-
"add-to-groups":
|
|
38359
|
-
"self-assign":
|
|
38360
|
-
"others-assign":
|
|
38361
|
-
"sticky-notes":
|
|
38362
|
-
"move-to-onboarding":
|
|
38363
|
-
"approve-rate":
|
|
38364
|
-
"manager-approve":
|
|
38365
|
-
"manager-reapprove":
|
|
38366
|
-
reject:
|
|
38367
|
-
},
|
|
38465
|
+
"change-status": AD,
|
|
38466
|
+
"remove-from-shortlist": MD,
|
|
38467
|
+
"add-to-groups": PD,
|
|
38468
|
+
"self-assign": RD,
|
|
38469
|
+
"others-assign": BD,
|
|
38470
|
+
"sticky-notes": HD,
|
|
38471
|
+
"move-to-onboarding": WD,
|
|
38472
|
+
"approve-rate": XD,
|
|
38473
|
+
"manager-approve": eO,
|
|
38474
|
+
"manager-reapprove": aO,
|
|
38475
|
+
reject: cO
|
|
38476
|
+
}, dO = {
|
|
38368
38477
|
delete: iD,
|
|
38369
38478
|
"quick-submit": lD,
|
|
38370
38479
|
"add-notes": pD,
|
|
38371
|
-
"tag-to-job":
|
|
38372
|
-
"change-status":
|
|
38373
|
-
"remove-from-shortlist":
|
|
38374
|
-
"add-to-groups":
|
|
38375
|
-
"self-assign":
|
|
38376
|
-
"others-assign":
|
|
38377
|
-
"sticky-notes":
|
|
38378
|
-
"move-to-onboarding":
|
|
38379
|
-
"approve-rate":
|
|
38380
|
-
"manager-approve":
|
|
38381
|
-
"manager-reapprove":
|
|
38382
|
-
reject:
|
|
38480
|
+
"tag-to-job": kD,
|
|
38481
|
+
"change-status": jD,
|
|
38482
|
+
"remove-from-shortlist": ND,
|
|
38483
|
+
"add-to-groups": FD,
|
|
38484
|
+
"self-assign": zD,
|
|
38485
|
+
"others-assign": VD,
|
|
38486
|
+
"sticky-notes": UD,
|
|
38487
|
+
"move-to-onboarding": GD,
|
|
38488
|
+
"approve-rate": ZD,
|
|
38489
|
+
"manager-approve": tO,
|
|
38490
|
+
"manager-reapprove": oO,
|
|
38491
|
+
reject: lO
|
|
38383
38492
|
};
|
|
38384
38493
|
//#endregion
|
|
38385
38494
|
//#region src/components/popups/AddBatchCandidatePopup.jsx
|
|
38386
|
-
function
|
|
38495
|
+
function fO(e) {
|
|
38387
38496
|
let t = e?.data ?? e;
|
|
38388
38497
|
return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
|
|
38389
38498
|
}
|
|
38390
|
-
function
|
|
38499
|
+
function pO(e, ...t) {
|
|
38391
38500
|
for (let n of t) {
|
|
38392
38501
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
38393
38502
|
if (t != null && t !== "") return t;
|
|
38394
38503
|
}
|
|
38395
38504
|
return "";
|
|
38396
38505
|
}
|
|
38397
|
-
function
|
|
38398
|
-
let t =
|
|
38399
|
-
return t ? String(t) : [
|
|
38506
|
+
function mO(e) {
|
|
38507
|
+
let t = pO(e, "candidateName", "candidate_name", "fullName", "name");
|
|
38508
|
+
return t ? String(t) : [pO(e, "firstName", "first_name"), pO(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
|
|
38400
38509
|
}
|
|
38401
|
-
function
|
|
38402
|
-
return String(
|
|
38510
|
+
function hO(e) {
|
|
38511
|
+
return String(pO(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
|
|
38403
38512
|
}
|
|
38404
|
-
function
|
|
38405
|
-
return String(
|
|
38513
|
+
function gO(e) {
|
|
38514
|
+
return String(pO(e, "workforceEngagementId", "engagementId", "_id", "id"));
|
|
38406
38515
|
}
|
|
38407
|
-
function
|
|
38516
|
+
function _O({ open: e = !0, context: t = {}, onClose: n }) {
|
|
38408
38517
|
let [i, a] = L([]), [o, s] = L([]), [c, l] = L(""), [u, d] = L(!0), [f, p] = L(!1), [m, h] = L(""), g = String(t.selectedIds?.[0] ?? t.selectedRecords?.[0]?._id ?? t.selectedRecords?.[0]?.id ?? t.batchId ?? "");
|
|
38409
38518
|
F(() => {
|
|
38410
38519
|
if (!e) return;
|
|
38411
38520
|
let t = !1;
|
|
38412
38521
|
return Ve("onboarding", 200, 0).then((e) => {
|
|
38413
|
-
t || a(
|
|
38522
|
+
t || a(fO(e));
|
|
38414
38523
|
}).catch((e) => {
|
|
38415
38524
|
t || h(e.message || "Unable to load onboarding candidates");
|
|
38416
38525
|
}).finally(() => {
|
|
@@ -38422,9 +38531,9 @@ function aO({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
38422
38531
|
let _ = I(() => {
|
|
38423
38532
|
let e = c.trim().toLowerCase();
|
|
38424
38533
|
return e ? i.filter((t) => [
|
|
38425
|
-
|
|
38426
|
-
|
|
38427
|
-
|
|
38534
|
+
mO(t),
|
|
38535
|
+
pO(t, "email", "candidateEmail", "candidate_email"),
|
|
38536
|
+
pO(t, "status", "onboardingStatus", "onboarding_status")
|
|
38428
38537
|
].some((t) => String(t).toLowerCase().includes(e))) : i;
|
|
38429
38538
|
}, [i, c]);
|
|
38430
38539
|
async function v() {
|
|
@@ -38432,7 +38541,7 @@ function aO({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
38432
38541
|
h("Select a batch before adding candidates");
|
|
38433
38542
|
return;
|
|
38434
38543
|
}
|
|
38435
|
-
let e = i.filter((e) => o.includes(
|
|
38544
|
+
let e = i.filter((e) => o.includes(gO(e)));
|
|
38436
38545
|
if (e.length) {
|
|
38437
38546
|
p(!0), h("");
|
|
38438
38547
|
try {
|
|
@@ -38440,8 +38549,8 @@ function aO({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
38440
38549
|
await Promise.all(e.map((e) => Xt("batchCandidates", {
|
|
38441
38550
|
schemaVersion: 1,
|
|
38442
38551
|
batchId: g,
|
|
38443
|
-
candidateId:
|
|
38444
|
-
workforceEngagementId:
|
|
38552
|
+
candidateId: hO(e),
|
|
38553
|
+
workforceEngagementId: gO(e),
|
|
38445
38554
|
source: "ONBOARDING",
|
|
38446
38555
|
assignmentStatus: "ASSIGNED",
|
|
38447
38556
|
assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -38485,22 +38594,22 @@ function aO({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
38485
38594
|
style: { marginBottom: 12 }
|
|
38486
38595
|
}),
|
|
38487
38596
|
/* @__PURE__ */ X(hr, {
|
|
38488
|
-
rowKey: (e) =>
|
|
38597
|
+
rowKey: (e) => gO(e),
|
|
38489
38598
|
columns: [
|
|
38490
38599
|
{
|
|
38491
38600
|
title: "Candidate",
|
|
38492
38601
|
key: "candidate",
|
|
38493
|
-
render: (e, t) =>
|
|
38602
|
+
render: (e, t) => mO(t)
|
|
38494
38603
|
},
|
|
38495
38604
|
{
|
|
38496
38605
|
title: "Email",
|
|
38497
38606
|
key: "email",
|
|
38498
|
-
render: (e, t) =>
|
|
38607
|
+
render: (e, t) => pO(t, "email", "candidateEmail", "candidate_email") || "—"
|
|
38499
38608
|
},
|
|
38500
38609
|
{
|
|
38501
38610
|
title: "Onboarding status",
|
|
38502
38611
|
key: "status",
|
|
38503
|
-
render: (e, t) =>
|
|
38612
|
+
render: (e, t) => pO(t, "status", "onboardingStatus", "onboarding_status") || "—"
|
|
38504
38613
|
}
|
|
38505
38614
|
],
|
|
38506
38615
|
dataSource: _,
|
|
@@ -38513,7 +38622,7 @@ function aO({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
38513
38622
|
rowSelection: {
|
|
38514
38623
|
selectedRowKeys: o,
|
|
38515
38624
|
onChange: s,
|
|
38516
|
-
getCheckboxProps: (e) => ({ disabled: !
|
|
38625
|
+
getCheckboxProps: (e) => ({ disabled: !hO(e) || !gO(e) })
|
|
38517
38626
|
},
|
|
38518
38627
|
locale: { emptyText: u ? "Loading candidates…" : "No onboarding candidates found" }
|
|
38519
38628
|
})
|
|
@@ -38522,7 +38631,7 @@ function aO({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
38522
38631
|
}
|
|
38523
38632
|
//#endregion
|
|
38524
38633
|
//#region src/components/popups/dynamic/DynamicPopupRoute.jsx
|
|
38525
|
-
var
|
|
38634
|
+
var vO = {
|
|
38526
38635
|
text: "input",
|
|
38527
38636
|
string: "input",
|
|
38528
38637
|
textarea: "textarea",
|
|
@@ -38531,13 +38640,13 @@ var oO = {
|
|
|
38531
38640
|
multiselect: "multi-select",
|
|
38532
38641
|
lookup: "search-select"
|
|
38533
38642
|
};
|
|
38534
|
-
function
|
|
38643
|
+
function yO(e) {
|
|
38535
38644
|
if (!e) return null;
|
|
38536
38645
|
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) => ({
|
|
38537
38646
|
...e,
|
|
38538
38647
|
name: e.name ?? e.field,
|
|
38539
38648
|
label: e.label ?? e.field,
|
|
38540
|
-
type:
|
|
38649
|
+
type: vO[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
|
|
38541
38650
|
required: e.required ?? e.req === 1,
|
|
38542
38651
|
options: (e.options ?? []).map((e) => ({
|
|
38543
38652
|
label: e.label ?? e.name ?? e.value,
|
|
@@ -38549,12 +38658,12 @@ function sO(e) {
|
|
|
38549
38658
|
fields: t
|
|
38550
38659
|
};
|
|
38551
38660
|
}
|
|
38552
|
-
function
|
|
38661
|
+
function bO({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
38553
38662
|
let n = I(() => ({
|
|
38554
|
-
|
|
38663
|
+
...dO,
|
|
38555
38664
|
...e
|
|
38556
38665
|
}), [e]), r = I(() => ({
|
|
38557
|
-
...
|
|
38666
|
+
...uO,
|
|
38558
38667
|
...t
|
|
38559
38668
|
}), [t]), { popupKey: i } = xa(), a = ba(), { state: o = {} } = ya(), [s, c] = L({
|
|
38560
38669
|
key: "",
|
|
@@ -38567,7 +38676,7 @@ function cO({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
38567
38676
|
return Fn(o.moduleName, "popup", i).then((n) => {
|
|
38568
38677
|
e || c({
|
|
38569
38678
|
key: t,
|
|
38570
|
-
config:
|
|
38679
|
+
config: yO(n[0])
|
|
38571
38680
|
});
|
|
38572
38681
|
}).catch(() => {
|
|
38573
38682
|
e || c({
|
|
@@ -38629,7 +38738,7 @@ function cO({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
38629
38738
|
}
|
|
38630
38739
|
a(-1);
|
|
38631
38740
|
};
|
|
38632
|
-
return i === "add-batch-candidate" ? /* @__PURE__ */ X(
|
|
38741
|
+
return i === "add-batch-candidate" ? /* @__PURE__ */ X(_O, {
|
|
38633
38742
|
open: !0,
|
|
38634
38743
|
context: d,
|
|
38635
38744
|
onClose: p
|
|
@@ -38646,7 +38755,7 @@ function cO({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
38646
38755
|
}
|
|
38647
38756
|
//#endregion
|
|
38648
38757
|
//#region src/components/popups/definitions/vendor-share/config.js
|
|
38649
|
-
var
|
|
38758
|
+
var xO = {
|
|
38650
38759
|
title: "Vendor Share",
|
|
38651
38760
|
maxVendorSelect: 1e3,
|
|
38652
38761
|
defaultTab: "myVendor",
|
|
@@ -38680,7 +38789,7 @@ var lO = {
|
|
|
38680
38789
|
key: "updatedOn"
|
|
38681
38790
|
}
|
|
38682
38791
|
]
|
|
38683
|
-
},
|
|
38792
|
+
}, SO = {
|
|
38684
38793
|
getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => $s({
|
|
38685
38794
|
jobId: e,
|
|
38686
38795
|
limit: t,
|
|
@@ -38697,11 +38806,11 @@ var lO = {
|
|
|
38697
38806
|
subject: i,
|
|
38698
38807
|
contents: a
|
|
38699
38808
|
})
|
|
38700
|
-
},
|
|
38809
|
+
}, CO = xO.vendorColumns.map((e) => ({
|
|
38701
38810
|
...e,
|
|
38702
38811
|
render: (e) => e || "-"
|
|
38703
38812
|
}));
|
|
38704
|
-
function
|
|
38813
|
+
function wO() {
|
|
38705
38814
|
let e = ba(), t = ya(), { selectedIds: n = [], selectedRecords: r = [], recipients: i = [], subject: a = "", onSend: o, moduleName: s = "", popupAction: c = {} } = t.state ?? {}, l = n[0] ?? r[0]?._id ?? r[0]?.id, [u, d] = L({
|
|
38706
38815
|
to: i.join(", "),
|
|
38707
38816
|
cc: "",
|
|
@@ -38710,13 +38819,13 @@ function fO() {
|
|
|
38710
38819
|
contents: "",
|
|
38711
38820
|
showCc: !1,
|
|
38712
38821
|
showBcc: !1
|
|
38713
|
-
}), [f, p] = L(!l), [m, h] = L(
|
|
38822
|
+
}), [f, p] = L(!l), [m, h] = L(xO.defaultTab), [g, _] = L(""), [v, y] = L([]), [b, x] = L(0), [S, C] = L(0), [w, T] = L(0), [E, D] = L(1), [O, k] = L(xO.defaultPageSize), [A, j] = L(!1), [ee, te] = L([]);
|
|
38714
38823
|
F(() => {
|
|
38715
38824
|
if (!l) return;
|
|
38716
38825
|
let e = !1;
|
|
38717
38826
|
j(!0);
|
|
38718
38827
|
let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
|
|
38719
|
-
return
|
|
38828
|
+
return SO.getVendorList({
|
|
38720
38829
|
jobId: l,
|
|
38721
38830
|
limit: t,
|
|
38722
38831
|
offset: n,
|
|
@@ -38739,7 +38848,7 @@ function fO() {
|
|
|
38739
38848
|
O,
|
|
38740
38849
|
g
|
|
38741
38850
|
]), F(() => {
|
|
38742
|
-
l &&
|
|
38851
|
+
l && SO.getMailDetails(l).then((e) => d((t) => ({
|
|
38743
38852
|
...t,
|
|
38744
38853
|
subject: e.subject || t.subject,
|
|
38745
38854
|
contents: e.contents || t.contents,
|
|
@@ -38764,7 +38873,7 @@ function fO() {
|
|
|
38764
38873
|
e(-1);
|
|
38765
38874
|
}
|
|
38766
38875
|
function ae() {
|
|
38767
|
-
ie &&
|
|
38876
|
+
ie && SO.submit({
|
|
38768
38877
|
jobId: l,
|
|
38769
38878
|
toMail: kT(M.to),
|
|
38770
38879
|
ccMail: kT(M.cc),
|
|
@@ -38845,7 +38954,7 @@ function fO() {
|
|
|
38845
38954
|
]
|
|
38846
38955
|
}), /* @__PURE__ */ X("div", {
|
|
38847
38956
|
className: "vendor-share__vendor-tabs",
|
|
38848
|
-
children:
|
|
38957
|
+
children: xO.vendorTabs.map((e) => /* @__PURE__ */ Z("span", {
|
|
38849
38958
|
className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
|
|
38850
38959
|
onClick: () => {
|
|
38851
38960
|
h(e.key), D(1), te([]);
|
|
@@ -38863,7 +38972,7 @@ function fO() {
|
|
|
38863
38972
|
className: "vendor-share__vendor-table-wrapper",
|
|
38864
38973
|
children: /* @__PURE__ */ X(hr, {
|
|
38865
38974
|
rowKey: (e) => e.vendorId,
|
|
38866
|
-
columns:
|
|
38975
|
+
columns: CO,
|
|
38867
38976
|
dataSource: oe,
|
|
38868
38977
|
loading: A,
|
|
38869
38978
|
pagination: !1,
|
|
@@ -38871,7 +38980,7 @@ function fO() {
|
|
|
38871
38980
|
rowSelection: {
|
|
38872
38981
|
selectedRowKeys: ee,
|
|
38873
38982
|
onChange: (e) => {
|
|
38874
|
-
e.length >
|
|
38983
|
+
e.length > xO.maxVendorSelect || te(e);
|
|
38875
38984
|
}
|
|
38876
38985
|
},
|
|
38877
38986
|
scroll: { y: "calc(100vh - 340px)" }
|
|
@@ -38905,7 +39014,7 @@ function fO() {
|
|
|
38905
39014
|
children: [
|
|
38906
39015
|
ee.length,
|
|
38907
39016
|
" / ",
|
|
38908
|
-
|
|
39017
|
+
xO.maxVendorSelect,
|
|
38909
39018
|
" Vendors selected"
|
|
38910
39019
|
]
|
|
38911
39020
|
}) : null
|
|
@@ -38916,7 +39025,7 @@ function fO() {
|
|
|
38916
39025
|
}
|
|
38917
39026
|
//#endregion
|
|
38918
39027
|
//#region src/components/form/validation.js
|
|
38919
|
-
var
|
|
39028
|
+
var TO = {
|
|
38920
39029
|
EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
|
|
38921
39030
|
PHONE: /^[0-9]{10}$/,
|
|
38922
39031
|
PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
|
|
@@ -38933,7 +39042,7 @@ var pO = {
|
|
|
38933
39042
|
FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
|
|
38934
39043
|
NO_SPACES: /^\S+$/,
|
|
38935
39044
|
STARTS_WITH_CAPITAL: /^[A-Z].*$/
|
|
38936
|
-
},
|
|
39045
|
+
}, EO = {
|
|
38937
39046
|
SINGLE_FILE_COUNT: 1,
|
|
38938
39047
|
MULTI_FILE_COUNT: 5,
|
|
38939
39048
|
MAX_FILE_SIZE: 2,
|
|
@@ -38942,7 +39051,7 @@ var pO = {
|
|
|
38942
39051
|
"image/png",
|
|
38943
39052
|
"application/pdf"
|
|
38944
39053
|
]
|
|
38945
|
-
},
|
|
39054
|
+
}, DO = {
|
|
38946
39055
|
REQUIRED: (e) => "Mandatory Field",
|
|
38947
39056
|
INVALID_EMAIL: "Please enter a valid email address.",
|
|
38948
39057
|
INVALID_PHONE: "Phone number must contain exactly 10 digits.",
|
|
@@ -38962,16 +39071,16 @@ var pO = {
|
|
|
38962
39071
|
NO_SPACES_ALLOWED: "Spaces are not allowed.",
|
|
38963
39072
|
MUST_START_WITH_CAPITAL: "First letter must be capital.",
|
|
38964
39073
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
38965
|
-
INVALID_FILE_SIZE: `File upload must be ${
|
|
39074
|
+
INVALID_FILE_SIZE: `File upload must be ${EO.MAX_FILE_SIZE} MB below.`,
|
|
38966
39075
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
38967
39076
|
SINGLE_FILE_ONLY: "Only one file can be uploaded."
|
|
38968
|
-
},
|
|
39077
|
+
}, OO = {
|
|
38969
39078
|
FIRST_NAME_MIN: 3,
|
|
38970
39079
|
FIRST_NAME_MAX: 30
|
|
38971
|
-
},
|
|
39080
|
+
}, kO = {
|
|
38972
39081
|
REMARKS_MIN: 10,
|
|
38973
39082
|
REMARKS_MAX: 250
|
|
38974
|
-
},
|
|
39083
|
+
}, AO = {
|
|
38975
39084
|
removeSpaces: (e = "") => e.replace(/\s/g, ""),
|
|
38976
39085
|
capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
|
|
38977
39086
|
capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
@@ -38983,132 +39092,132 @@ var pO = {
|
|
|
38983
39092
|
let t = e.replace(/\D/g, "");
|
|
38984
39093
|
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)}`;
|
|
38985
39094
|
}
|
|
38986
|
-
},
|
|
39095
|
+
}, jO = {
|
|
38987
39096
|
required: (e = "Field") => ({
|
|
38988
39097
|
required: !0,
|
|
38989
|
-
message:
|
|
39098
|
+
message: DO.REQUIRED(e)
|
|
38990
39099
|
}),
|
|
38991
39100
|
email: () => ({
|
|
38992
|
-
pattern:
|
|
38993
|
-
message:
|
|
39101
|
+
pattern: TO.EMAIL,
|
|
39102
|
+
message: DO.INVALID_EMAIL
|
|
38994
39103
|
}),
|
|
38995
39104
|
phone: () => ({
|
|
38996
|
-
pattern:
|
|
38997
|
-
message:
|
|
39105
|
+
pattern: TO.PHONE,
|
|
39106
|
+
message: DO.INVALID_PHONE
|
|
38998
39107
|
}),
|
|
38999
39108
|
password: () => ({
|
|
39000
|
-
pattern:
|
|
39001
|
-
message:
|
|
39109
|
+
pattern: TO.PASSWORD,
|
|
39110
|
+
message: DO.INVALID_PASSWORD
|
|
39002
39111
|
}),
|
|
39003
39112
|
alphabets: () => ({
|
|
39004
|
-
pattern:
|
|
39005
|
-
message:
|
|
39113
|
+
pattern: TO.ALPHABETS,
|
|
39114
|
+
message: DO.INVALID_ALPHABETS
|
|
39006
39115
|
}),
|
|
39007
39116
|
alphanumeric: () => ({
|
|
39008
|
-
pattern:
|
|
39009
|
-
message:
|
|
39117
|
+
pattern: TO.ALPHANUMERIC,
|
|
39118
|
+
message: DO.INVALID_ALPHANUMERIC
|
|
39010
39119
|
}),
|
|
39011
39120
|
number: () => ({
|
|
39012
|
-
pattern:
|
|
39013
|
-
message:
|
|
39121
|
+
pattern: TO.NUMBER,
|
|
39122
|
+
message: DO.INVALID_NUMBER
|
|
39014
39123
|
}),
|
|
39015
39124
|
url: () => ({
|
|
39016
|
-
pattern:
|
|
39017
|
-
message:
|
|
39125
|
+
pattern: TO.URL,
|
|
39126
|
+
message: DO.INVALID_URL
|
|
39018
39127
|
}),
|
|
39019
39128
|
candidateId: (e = "ID") => ({
|
|
39020
|
-
pattern:
|
|
39021
|
-
message:
|
|
39129
|
+
pattern: TO.CANDIDATE_ID,
|
|
39130
|
+
message: DO.INVALID_CANDIDATE_ID(e)
|
|
39022
39131
|
}),
|
|
39023
39132
|
remarks: () => ({
|
|
39024
|
-
pattern:
|
|
39025
|
-
message:
|
|
39026
|
-
REMARKS_MIN: `Remarks must be at least ${
|
|
39027
|
-
REMARKS_MAX: `Remarks must not exceed ${
|
|
39133
|
+
pattern: TO.REMARKS,
|
|
39134
|
+
message: DO.INVALID_REMARKS,
|
|
39135
|
+
REMARKS_MIN: `Remarks must be at least ${kO.REMARKS_MIN} characters.`,
|
|
39136
|
+
REMARKS_MAX: `Remarks must not exceed ${kO.REMARKS_MAX} characters.`
|
|
39028
39137
|
}),
|
|
39029
39138
|
designation: () => ({
|
|
39030
|
-
pattern:
|
|
39031
|
-
message:
|
|
39139
|
+
pattern: TO.DESIGNATION,
|
|
39140
|
+
message: DO.INVALID_DESIGNATION
|
|
39032
39141
|
}),
|
|
39033
39142
|
dob: (e = !0) => ({ validator: (t, n) => {
|
|
39034
39143
|
if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
|
|
39035
|
-
if (!
|
|
39144
|
+
if (!TO.DOB.test(n)) return Promise.reject(Error(DO.INVALID_DOB));
|
|
39036
39145
|
let r = Ca(n, "MM/DD/YYYY", !0);
|
|
39037
|
-
if (!r.isValid()) return Promise.reject(Error(
|
|
39146
|
+
if (!r.isValid()) return Promise.reject(Error(DO.INVALID_DOB));
|
|
39038
39147
|
let i = Ca().endOf("day");
|
|
39039
39148
|
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();
|
|
39040
39149
|
} }),
|
|
39041
39150
|
linkedin: () => ({
|
|
39042
|
-
pattern:
|
|
39043
|
-
message:
|
|
39151
|
+
pattern: TO.LINKEDIN,
|
|
39152
|
+
message: DO.INVALID_LINKEDIN
|
|
39044
39153
|
}),
|
|
39045
39154
|
companyName: () => ({
|
|
39046
|
-
pattern:
|
|
39047
|
-
message:
|
|
39155
|
+
pattern: TO.COMPANY_NAME,
|
|
39156
|
+
message: DO.INVALID_COMPANY_NAME
|
|
39048
39157
|
}),
|
|
39049
39158
|
firstName: () => ({
|
|
39050
|
-
pattern:
|
|
39051
|
-
message:
|
|
39052
|
-
FIRST_NAME_MIN: `First Name must be at least ${
|
|
39053
|
-
FIRST_NAME_MAX: `First Name must not exceed ${
|
|
39159
|
+
pattern: TO.FIRST_NAME,
|
|
39160
|
+
message: DO.INVALID_FIRST_NAME,
|
|
39161
|
+
FIRST_NAME_MIN: `First Name must be at least ${OO.FIRST_NAME_MIN} characters.`,
|
|
39162
|
+
FIRST_NAME_MAX: `First Name must not exceed ${OO.FIRST_NAME_MAX} characters.`
|
|
39054
39163
|
}),
|
|
39055
39164
|
firstNameMinLength: () => ({
|
|
39056
|
-
min:
|
|
39057
|
-
message:
|
|
39165
|
+
min: OO.FIRST_NAME_MIN,
|
|
39166
|
+
message: DO.FIRST_NAME_MIN
|
|
39058
39167
|
}),
|
|
39059
39168
|
firstNameMaxLength: () => ({
|
|
39060
|
-
max:
|
|
39061
|
-
message:
|
|
39169
|
+
max: OO.FIRST_NAME_MAX,
|
|
39170
|
+
message: DO.FIRST_NAME_MAX
|
|
39062
39171
|
}),
|
|
39063
39172
|
remarksMinLength: () => ({
|
|
39064
|
-
min:
|
|
39065
|
-
message:
|
|
39173
|
+
min: kO.REMARKS_MIN,
|
|
39174
|
+
message: DO.REMARKS_MIN
|
|
39066
39175
|
}),
|
|
39067
39176
|
remarksMaxLength: () => ({
|
|
39068
|
-
max:
|
|
39069
|
-
message:
|
|
39177
|
+
max: kO.REMARKS_MAX,
|
|
39178
|
+
message: DO.REMARKS_MAX
|
|
39070
39179
|
}),
|
|
39071
39180
|
fullName: () => ({
|
|
39072
|
-
pattern:
|
|
39073
|
-
message:
|
|
39181
|
+
pattern: TO.FULL_NAME,
|
|
39182
|
+
message: DO.INVALID_FULL_NAME
|
|
39074
39183
|
}),
|
|
39075
39184
|
noSpaces: () => ({
|
|
39076
|
-
pattern:
|
|
39077
|
-
message:
|
|
39185
|
+
pattern: TO.NO_SPACES,
|
|
39186
|
+
message: DO.NO_SPACES_ALLOWED
|
|
39078
39187
|
}),
|
|
39079
39188
|
startsWithCapital: () => ({
|
|
39080
|
-
pattern:
|
|
39081
|
-
message:
|
|
39189
|
+
pattern: TO.STARTS_WITH_CAPITAL,
|
|
39190
|
+
message: DO.MUST_START_WITH_CAPITAL
|
|
39082
39191
|
}),
|
|
39083
39192
|
fileUpload: () => ({ validator: (e, t) => {
|
|
39084
39193
|
if (!t || t.length === 0) return Promise.resolve();
|
|
39085
39194
|
for (let e of t) {
|
|
39086
39195
|
let t = e.originFileObj || e;
|
|
39087
|
-
if (!(t.size / 1024 / 1024 <=
|
|
39088
|
-
if (!
|
|
39196
|
+
if (!(t.size / 1024 / 1024 <= EO.MAX_FILE_SIZE)) return J.error(DO.INVALID_FILE_SIZE), Promise.reject(Error(DO.INVALID_FILE_SIZE));
|
|
39197
|
+
if (!EO.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(DO.INVALID_FILE_TYPE));
|
|
39089
39198
|
}
|
|
39090
39199
|
return Promise.resolve();
|
|
39091
39200
|
} }),
|
|
39092
39201
|
singleFileUpload: () => ({ validator: (e, t) => {
|
|
39093
39202
|
if (!t || t.length === 0) return Promise.resolve();
|
|
39094
|
-
if (t.length >
|
|
39203
|
+
if (t.length > EO.SINGLE_FILE_COUNT) return Promise.reject(Error(DO.SINGLE_FILE_ONLY));
|
|
39095
39204
|
let n = t[0];
|
|
39096
|
-
return n.size / 1024 / 1024 <
|
|
39205
|
+
return n.size / 1024 / 1024 < EO.MAX_FILE_SIZE ? EO.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(DO.INVALID_FILE_TYPE)) : Promise.reject(Error(DO.INVALID_FILE_SIZE));
|
|
39097
39206
|
} }),
|
|
39098
39207
|
multiFileUpload: () => ({ validator: (e, t) => {
|
|
39099
39208
|
if (!t || t.length === 0) return Promise.resolve();
|
|
39100
|
-
if (t.length >
|
|
39209
|
+
if (t.length > EO.MULTI_FILE_COUNT) return Promise.reject(Error(DO.INVALID_FILE_COUNT));
|
|
39101
39210
|
for (let e of t) {
|
|
39102
|
-
if (!(e.size / 1024 / 1024 <
|
|
39103
|
-
if (!
|
|
39211
|
+
if (!(e.size / 1024 / 1024 < EO.MAX_FILE_SIZE)) return Promise.reject(Error(DO.INVALID_FILE_SIZE));
|
|
39212
|
+
if (!EO.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(DO.INVALID_FILE_TYPE));
|
|
39104
39213
|
}
|
|
39105
39214
|
return Promise.resolve();
|
|
39106
39215
|
} })
|
|
39107
|
-
},
|
|
39216
|
+
}, MO = { beforeUpload: (e) => [
|
|
39108
39217
|
"image/jpeg",
|
|
39109
39218
|
"image/png",
|
|
39110
39219
|
"application/pdf"
|
|
39111
|
-
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (J.error("File upload must be 2 MB below."), br.LIST_IGNORE) : (J.error("Only JPG, PNG and PDF files are allowed."), br.LIST_IGNORE) },
|
|
39220
|
+
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (J.error("File upload must be 2 MB below."), br.LIST_IGNORE) : (J.error("Only JPG, PNG and PDF files are allowed."), br.LIST_IGNORE) }, NO = () => {
|
|
39112
39221
|
let [e] = B.useForm();
|
|
39113
39222
|
return /* @__PURE__ */ X("div", {
|
|
39114
39223
|
style: { padding: 24 },
|
|
@@ -39128,7 +39237,7 @@ var pO = {
|
|
|
39128
39237
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39129
39238
|
label: "Email",
|
|
39130
39239
|
name: "email",
|
|
39131
|
-
rules: [
|
|
39240
|
+
rules: [jO.required("Email"), jO.email()],
|
|
39132
39241
|
children: /* @__PURE__ */ X(V, {})
|
|
39133
39242
|
})
|
|
39134
39243
|
}),
|
|
@@ -39137,12 +39246,12 @@ var pO = {
|
|
|
39137
39246
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39138
39247
|
label: "Phone Number",
|
|
39139
39248
|
name: "phone",
|
|
39140
|
-
rules: [
|
|
39249
|
+
rules: [jO.required("Phone Number"), jO.phone()],
|
|
39141
39250
|
validateTrigger: ["onBlur", "onChange"],
|
|
39142
39251
|
children: /* @__PURE__ */ X(V, {
|
|
39143
39252
|
maxLength: 10,
|
|
39144
39253
|
onChange: (t) => {
|
|
39145
|
-
e.setFieldsValue({ phone:
|
|
39254
|
+
e.setFieldsValue({ phone: AO.phoneFormatter(t.target.value) });
|
|
39146
39255
|
}
|
|
39147
39256
|
})
|
|
39148
39257
|
})
|
|
@@ -39152,7 +39261,7 @@ var pO = {
|
|
|
39152
39261
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39153
39262
|
label: "Password",
|
|
39154
39263
|
name: "password",
|
|
39155
|
-
rules: [
|
|
39264
|
+
rules: [jO.required("Password"), jO.password()],
|
|
39156
39265
|
children: /* @__PURE__ */ X(V.Password, {})
|
|
39157
39266
|
})
|
|
39158
39267
|
}),
|
|
@@ -39162,13 +39271,13 @@ var pO = {
|
|
|
39162
39271
|
label: "Full Name",
|
|
39163
39272
|
name: "fullName",
|
|
39164
39273
|
rules: [
|
|
39165
|
-
|
|
39166
|
-
|
|
39167
|
-
|
|
39168
|
-
|
|
39274
|
+
jO.required("Full Name"),
|
|
39275
|
+
jO.alphabets(),
|
|
39276
|
+
jO.firstNameMinLength(),
|
|
39277
|
+
jO.firstNameMaxLength()
|
|
39169
39278
|
],
|
|
39170
39279
|
children: /* @__PURE__ */ X(V, { onChange: (t) => {
|
|
39171
|
-
e.setFieldsValue({ fullName:
|
|
39280
|
+
e.setFieldsValue({ fullName: AO.firstNameFormatter(t.target.value) });
|
|
39172
39281
|
} })
|
|
39173
39282
|
})
|
|
39174
39283
|
}),
|
|
@@ -39177,9 +39286,9 @@ var pO = {
|
|
|
39177
39286
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39178
39287
|
label: "Username",
|
|
39179
39288
|
name: "username",
|
|
39180
|
-
rules: [
|
|
39289
|
+
rules: [jO.required("Username"), jO.alphanumeric()],
|
|
39181
39290
|
children: /* @__PURE__ */ X(V, { onChange: (t) => {
|
|
39182
|
-
e.setFieldsValue({ username:
|
|
39291
|
+
e.setFieldsValue({ username: AO.removeExtraSpaces(t.target.value) });
|
|
39183
39292
|
} })
|
|
39184
39293
|
})
|
|
39185
39294
|
}),
|
|
@@ -39188,9 +39297,9 @@ var pO = {
|
|
|
39188
39297
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39189
39298
|
label: "Website URL",
|
|
39190
39299
|
name: "website",
|
|
39191
|
-
rules: [
|
|
39300
|
+
rules: [jO.required("Website URL"), jO.url()],
|
|
39192
39301
|
children: /* @__PURE__ */ X(V, { onChange: (t) => {
|
|
39193
|
-
e.setFieldsValue({ website:
|
|
39302
|
+
e.setFieldsValue({ website: AO.removeExtraSpaces(t.target.value) });
|
|
39194
39303
|
} })
|
|
39195
39304
|
})
|
|
39196
39305
|
}),
|
|
@@ -39199,9 +39308,9 @@ var pO = {
|
|
|
39199
39308
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39200
39309
|
label: "MSP Req ID",
|
|
39201
39310
|
name: "mspreqID",
|
|
39202
|
-
rules: [
|
|
39311
|
+
rules: [jO.required("MSP Req ID"), jO.candidateId("MSP Req ID")],
|
|
39203
39312
|
children: /* @__PURE__ */ X(V, { onChange: (t) => {
|
|
39204
|
-
e.setFieldsValue({ mspreqID:
|
|
39313
|
+
e.setFieldsValue({ mspreqID: AO.removeExtraSpaces(t.target.value) });
|
|
39205
39314
|
} })
|
|
39206
39315
|
})
|
|
39207
39316
|
}),
|
|
@@ -39210,9 +39319,9 @@ var pO = {
|
|
|
39210
39319
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39211
39320
|
label: "Candidate ID",
|
|
39212
39321
|
name: "candidateId",
|
|
39213
|
-
rules: [
|
|
39322
|
+
rules: [jO.required("Candidate ID"), jO.candidateId("Candidate ID")],
|
|
39214
39323
|
children: /* @__PURE__ */ X(V, { onChange: (t) => {
|
|
39215
|
-
e.setFieldsValue({ candidateId:
|
|
39324
|
+
e.setFieldsValue({ candidateId: AO.removeExtraSpaces(t.target.value) });
|
|
39216
39325
|
} })
|
|
39217
39326
|
})
|
|
39218
39327
|
}),
|
|
@@ -39222,10 +39331,10 @@ var pO = {
|
|
|
39222
39331
|
label: "Remarks",
|
|
39223
39332
|
name: "remarks",
|
|
39224
39333
|
rules: [
|
|
39225
|
-
|
|
39226
|
-
|
|
39227
|
-
|
|
39228
|
-
|
|
39334
|
+
jO.required("Remarks"),
|
|
39335
|
+
jO.remarks(),
|
|
39336
|
+
jO.remarksMinLength(),
|
|
39337
|
+
jO.remarksMaxLength()
|
|
39229
39338
|
],
|
|
39230
39339
|
children: /* @__PURE__ */ X(V.TextArea, { rows: 4 })
|
|
39231
39340
|
})
|
|
@@ -39235,7 +39344,7 @@ var pO = {
|
|
|
39235
39344
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39236
39345
|
label: "Designation",
|
|
39237
39346
|
name: "designation",
|
|
39238
|
-
rules: [
|
|
39347
|
+
rules: [jO.required("Designation"), jO.designation()],
|
|
39239
39348
|
children: /* @__PURE__ */ X(V, {})
|
|
39240
39349
|
})
|
|
39241
39350
|
}),
|
|
@@ -39244,12 +39353,12 @@ var pO = {
|
|
|
39244
39353
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39245
39354
|
label: "Date of Birth",
|
|
39246
39355
|
name: "dob",
|
|
39247
|
-
rules: [
|
|
39356
|
+
rules: [jO.dob()],
|
|
39248
39357
|
children: /* @__PURE__ */ X(V, {
|
|
39249
39358
|
placeholder: "MM/DD/YYYY",
|
|
39250
39359
|
maxLength: 10,
|
|
39251
39360
|
onChange: (t) => {
|
|
39252
|
-
e.setFieldsValue({ dob:
|
|
39361
|
+
e.setFieldsValue({ dob: AO.dobFormatter(t.target.value) });
|
|
39253
39362
|
}
|
|
39254
39363
|
})
|
|
39255
39364
|
})
|
|
@@ -39259,7 +39368,7 @@ var pO = {
|
|
|
39259
39368
|
children: /* @__PURE__ */ X(B.Item, {
|
|
39260
39369
|
label: "Company Name",
|
|
39261
39370
|
name: "companyName",
|
|
39262
|
-
rules: [
|
|
39371
|
+
rules: [jO.required("Company Name"), jO.companyName()],
|
|
39263
39372
|
children: /* @__PURE__ */ X(V, {})
|
|
39264
39373
|
})
|
|
39265
39374
|
}),
|
|
@@ -39348,7 +39457,7 @@ var pO = {
|
|
|
39348
39457
|
label: "Resume new",
|
|
39349
39458
|
name: "resume",
|
|
39350
39459
|
children: /* @__PURE__ */ X(br, {
|
|
39351
|
-
beforeUpload:
|
|
39460
|
+
beforeUpload: MO.beforeUpload,
|
|
39352
39461
|
maxCount: 1,
|
|
39353
39462
|
children: /* @__PURE__ */ X(R, { children: "Upload Resume" })
|
|
39354
39463
|
})
|
|
@@ -39361,10 +39470,10 @@ var pO = {
|
|
|
39361
39470
|
name: "documents",
|
|
39362
39471
|
valuePropName: "fileList",
|
|
39363
39472
|
getValueFromEvent: (e) => e?.fileList,
|
|
39364
|
-
rules: [
|
|
39473
|
+
rules: [jO.multiFileUpload()],
|
|
39365
39474
|
children: /* @__PURE__ */ X(br, {
|
|
39366
39475
|
multiple: !0,
|
|
39367
|
-
beforeUpload:
|
|
39476
|
+
beforeUpload: MO.beforeUpload,
|
|
39368
39477
|
children: /* @__PURE__ */ X(R, { children: "Upload Documents" })
|
|
39369
39478
|
})
|
|
39370
39479
|
})
|
|
@@ -39376,9 +39485,9 @@ var pO = {
|
|
|
39376
39485
|
name: "file",
|
|
39377
39486
|
valuePropName: "fileList",
|
|
39378
39487
|
getValueFromEvent: (e) => e?.fileList,
|
|
39379
|
-
rules: [
|
|
39488
|
+
rules: [jO.fileUpload()],
|
|
39380
39489
|
children: /* @__PURE__ */ X(br, {
|
|
39381
|
-
beforeUpload:
|
|
39490
|
+
beforeUpload: MO.beforeUpload,
|
|
39382
39491
|
maxCount: 1,
|
|
39383
39492
|
children: /* @__PURE__ */ X(R, { children: "Upload" })
|
|
39384
39493
|
})
|
|
@@ -39438,12 +39547,12 @@ var pO = {
|
|
|
39438
39547
|
};
|
|
39439
39548
|
//#endregion
|
|
39440
39549
|
//#region src/pages/admin/AdminPageWithShell.jsx
|
|
39441
|
-
function
|
|
39550
|
+
function PO(e) {
|
|
39442
39551
|
return /* @__PURE__ */ X(jb, { children: /* @__PURE__ */ X(wT, { ...e }) });
|
|
39443
39552
|
}
|
|
39444
39553
|
//#endregion
|
|
39445
39554
|
//#region src/components/cards/StatsCards.jsx
|
|
39446
|
-
var { Text:
|
|
39555
|
+
var { Text: FO } = yr, IO = [
|
|
39447
39556
|
{
|
|
39448
39557
|
label: "Total Jobs",
|
|
39449
39558
|
value: 1697,
|
|
@@ -39459,13 +39568,13 @@ var { Text: CO } = yr, wO = [
|
|
|
39459
39568
|
value: 600,
|
|
39460
39569
|
icon: "user"
|
|
39461
39570
|
}
|
|
39462
|
-
],
|
|
39571
|
+
], LO = {
|
|
39463
39572
|
fileText: /* @__PURE__ */ X(fi, {}),
|
|
39464
39573
|
checkCircle: /* @__PURE__ */ X(Lr, {}),
|
|
39465
39574
|
user: /* @__PURE__ */ X(ua, {}),
|
|
39466
39575
|
filter: /* @__PURE__ */ X(mi, {})
|
|
39467
39576
|
};
|
|
39468
|
-
function
|
|
39577
|
+
function RO({ stats: e = IO }) {
|
|
39469
39578
|
return /* @__PURE__ */ X(Kn, { children: /* @__PURE__ */ X(H, {
|
|
39470
39579
|
gutter: [12, 12],
|
|
39471
39580
|
children: e.map((e) => /* @__PURE__ */ X(z, {
|
|
@@ -39478,7 +39587,7 @@ function EO({ stats: e = wO }) {
|
|
|
39478
39587
|
className: "stats-inner-card",
|
|
39479
39588
|
children: [/* @__PURE__ */ Z(W, {
|
|
39480
39589
|
align: "center",
|
|
39481
|
-
children: [
|
|
39590
|
+
children: [LO[e.icon] ?? LO.fileText, /* @__PURE__ */ X(FO, { children: e.label })]
|
|
39482
39591
|
}), /* @__PURE__ */ X(pr, { value: e.value })]
|
|
39483
39592
|
})
|
|
39484
39593
|
}, e.label))
|
|
@@ -39486,21 +39595,21 @@ function EO({ stats: e = wO }) {
|
|
|
39486
39595
|
}
|
|
39487
39596
|
//#endregion
|
|
39488
39597
|
//#region src/pages/Modules/Admin/UsersSection.jsx
|
|
39489
|
-
var { Text:
|
|
39490
|
-
function
|
|
39598
|
+
var { Text: zO } = yr;
|
|
39599
|
+
function BO(e) {
|
|
39491
39600
|
return e?.USER_NAME ?? e?.user_name ?? e?.username ?? e?.name ?? e?.full_name ?? e?.fullName ?? e?.email ?? `User ${e?.USER_ID ?? e?.user_id ?? "?"}`;
|
|
39492
39601
|
}
|
|
39493
|
-
function
|
|
39602
|
+
function VO(e) {
|
|
39494
39603
|
return {
|
|
39495
39604
|
...e,
|
|
39496
39605
|
key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
|
|
39497
|
-
_name:
|
|
39606
|
+
_name: BO(e),
|
|
39498
39607
|
_email: e.email ?? e.EMAIL ?? e.user_email ?? "",
|
|
39499
39608
|
_role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
|
|
39500
39609
|
_rawRef: e
|
|
39501
39610
|
};
|
|
39502
39611
|
}
|
|
39503
|
-
function
|
|
39612
|
+
function HO() {
|
|
39504
39613
|
let [e, t] = L([]), [n, r] = L(0), [i, a] = L(!1), [o, s] = L(1), [c, l] = L(10), [u, d] = L(""), f = zn(async ({ offset: e, limit: n, searchQuery: i } = {}) => {
|
|
39505
39614
|
a(!0);
|
|
39506
39615
|
try {
|
|
@@ -39508,7 +39617,7 @@ function AO() {
|
|
|
39508
39617
|
offset: e,
|
|
39509
39618
|
limit: n,
|
|
39510
39619
|
searchQuery: i ?? ""
|
|
39511
|
-
}), o = (a.users ?? []).map(
|
|
39620
|
+
}), o = (a.users ?? []).map(VO);
|
|
39512
39621
|
t(o), r(a.total ?? o.length);
|
|
39513
39622
|
} catch {
|
|
39514
39623
|
J.error("Failed to load users");
|
|
@@ -39541,7 +39650,7 @@ function AO() {
|
|
|
39541
39650
|
label: "Name",
|
|
39542
39651
|
value: "_name",
|
|
39543
39652
|
width: 220,
|
|
39544
|
-
render: (e, t) => /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
39653
|
+
render: (e, t) => /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(zO, {
|
|
39545
39654
|
strong: !0,
|
|
39546
39655
|
style: { fontSize: 13 },
|
|
39547
39656
|
children: e
|
|
@@ -39573,7 +39682,7 @@ function AO() {
|
|
|
39573
39682
|
}
|
|
39574
39683
|
//#endregion
|
|
39575
39684
|
//#region src/pages/Modules/Admin/TeamsSection.jsx
|
|
39576
|
-
var { Text:
|
|
39685
|
+
var { Text: UO } = yr, WO = [
|
|
39577
39686
|
{
|
|
39578
39687
|
key: "job",
|
|
39579
39688
|
label: "Jobs"
|
|
@@ -39586,7 +39695,7 @@ var { Text: jO } = yr, MO = [
|
|
|
39586
39695
|
key: "submissions",
|
|
39587
39696
|
label: "Submissions"
|
|
39588
39697
|
}
|
|
39589
|
-
],
|
|
39698
|
+
], GO = [
|
|
39590
39699
|
{
|
|
39591
39700
|
key: "listView",
|
|
39592
39701
|
label: "List View"
|
|
@@ -39600,7 +39709,7 @@ var { Text: jO } = yr, MO = [
|
|
|
39600
39709
|
label: "Form"
|
|
39601
39710
|
}
|
|
39602
39711
|
];
|
|
39603
|
-
function
|
|
39712
|
+
function KO({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
39604
39713
|
let i = Bn(null), [a, o] = L(!1), [s, c] = L(!1);
|
|
39605
39714
|
function l(e) {
|
|
39606
39715
|
i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
|
|
@@ -39664,7 +39773,7 @@ function PO({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
|
39664
39773
|
]
|
|
39665
39774
|
});
|
|
39666
39775
|
}
|
|
39667
|
-
function
|
|
39776
|
+
function qO({ team: e, configType: t }) {
|
|
39668
39777
|
let [n, r] = L({}), [i, a] = L(!1), [o, s] = L({}), [c, l] = L("job");
|
|
39669
39778
|
F(() => {
|
|
39670
39779
|
e && (a(!0), pn(e, t).then(r).catch(() => J.error("Failed to load field config")).finally(() => a(!1)));
|
|
@@ -39715,7 +39824,7 @@ function FO({ team: e, configType: t }) {
|
|
|
39715
39824
|
size: "small",
|
|
39716
39825
|
activeKey: c,
|
|
39717
39826
|
onChange: l,
|
|
39718
|
-
items:
|
|
39827
|
+
items: WO.map((e) => ({
|
|
39719
39828
|
key: e.key,
|
|
39720
39829
|
label: e.label
|
|
39721
39830
|
}))
|
|
@@ -39744,7 +39853,7 @@ function FO({ team: e, configType: t }) {
|
|
|
39744
39853
|
children: [u.length === 0 && !i && /* @__PURE__ */ X("div", {
|
|
39745
39854
|
className: "uss-empty",
|
|
39746
39855
|
children: "No fields found."
|
|
39747
|
-
}), u.map((e, t) => /* @__PURE__ */ X(
|
|
39856
|
+
}), u.map((e, t) => /* @__PURE__ */ X(KO, {
|
|
39748
39857
|
field: e,
|
|
39749
39858
|
index: t,
|
|
39750
39859
|
onToggle: f,
|
|
@@ -39758,13 +39867,13 @@ function FO({ team: e, configType: t }) {
|
|
|
39758
39867
|
size: "small",
|
|
39759
39868
|
loading: o[c],
|
|
39760
39869
|
onClick: m,
|
|
39761
|
-
children: ["Save ",
|
|
39870
|
+
children: ["Save ", WO.find((e) => e.key === c)?.label]
|
|
39762
39871
|
})
|
|
39763
39872
|
})
|
|
39764
39873
|
]
|
|
39765
39874
|
});
|
|
39766
39875
|
}
|
|
39767
|
-
function
|
|
39876
|
+
function JO() {
|
|
39768
39877
|
let [e, t] = L(null), [n, r] = L(!1), [i, a] = L(!1), [o, s] = L("listView"), [c, l] = L([]), [u, d] = L(0), [f, p] = L(!1), [m, h] = L(""), [g, _] = L(!1), v = zn(async () => {
|
|
39769
39878
|
p(!0);
|
|
39770
39879
|
try {
|
|
@@ -39911,13 +40020,13 @@ function IO() {
|
|
|
39911
40020
|
style: { marginBottom: 12 },
|
|
39912
40021
|
children: /* @__PURE__ */ X("div", {
|
|
39913
40022
|
className: "uss-config-toggle",
|
|
39914
|
-
children:
|
|
40023
|
+
children: GO.map((e) => /* @__PURE__ */ X("button", {
|
|
39915
40024
|
className: `uss-config-btn${o === e.key ? " active" : ""}`,
|
|
39916
40025
|
onClick: () => s(e.key),
|
|
39917
40026
|
children: e.label
|
|
39918
40027
|
}, e.key))
|
|
39919
40028
|
})
|
|
39920
|
-
}), e && /* @__PURE__ */ X(
|
|
40029
|
+
}), e && /* @__PURE__ */ X(qO, {
|
|
39921
40030
|
team: e,
|
|
39922
40031
|
configType: o
|
|
39923
40032
|
}, `${e?.teamId}-${o}`)]
|
|
@@ -39926,12 +40035,12 @@ function IO() {
|
|
|
39926
40035
|
}
|
|
39927
40036
|
//#endregion
|
|
39928
40037
|
//#region src/pages/Modules/Admin/components/RolePermPanel.jsx
|
|
39929
|
-
var
|
|
40038
|
+
var YO = [
|
|
39930
40039
|
"view",
|
|
39931
40040
|
"add",
|
|
39932
40041
|
"edit",
|
|
39933
40042
|
"delete"
|
|
39934
|
-
],
|
|
40043
|
+
], XO = {
|
|
39935
40044
|
view: "View",
|
|
39936
40045
|
add: "Add",
|
|
39937
40046
|
edit: "Edit",
|
|
@@ -39943,18 +40052,18 @@ var LO = [
|
|
|
39943
40052
|
my_jobs: "My Jobs",
|
|
39944
40053
|
all_jobs: "All Jobs"
|
|
39945
40054
|
};
|
|
39946
|
-
function
|
|
39947
|
-
return
|
|
40055
|
+
function ZO(e) {
|
|
40056
|
+
return XO[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
39948
40057
|
}
|
|
39949
|
-
function
|
|
39950
|
-
let t =
|
|
40058
|
+
function QO(e) {
|
|
40059
|
+
let t = YO.filter((t) => e.includes(t)), n = e.filter((e) => !YO.includes(e)).sort();
|
|
39951
40060
|
return [...t, ...n];
|
|
39952
40061
|
}
|
|
39953
|
-
function
|
|
40062
|
+
function $O(e) {
|
|
39954
40063
|
let t = /* @__PURE__ */ new Set();
|
|
39955
|
-
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))),
|
|
40064
|
+
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), QO([...t]);
|
|
39956
40065
|
}
|
|
39957
|
-
function
|
|
40066
|
+
function ek(e) {
|
|
39958
40067
|
let t = 0, n = 0;
|
|
39959
40068
|
return Object.entries(e).forEach(([e, { permissions: r }]) => {
|
|
39960
40069
|
Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
|
|
@@ -39965,7 +40074,7 @@ function HO(e) {
|
|
|
39965
40074
|
total: n
|
|
39966
40075
|
};
|
|
39967
40076
|
}
|
|
39968
|
-
function
|
|
40077
|
+
function tk({ value: e, onSave: t, className: n }) {
|
|
39969
40078
|
let [r, i] = L(!1), [a, o] = L(e);
|
|
39970
40079
|
F(() => {
|
|
39971
40080
|
o(e);
|
|
@@ -39994,7 +40103,7 @@ function UO({ value: e, onSave: t, className: n }) {
|
|
|
39994
40103
|
children: [e, /* @__PURE__ */ X(ti, { className: "perm-name-edit-icon" })]
|
|
39995
40104
|
});
|
|
39996
40105
|
}
|
|
39997
|
-
function
|
|
40106
|
+
function nk({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
39998
40107
|
let [i, a] = L(!1), [o, s] = L(t), c = e?.value === "1", l = !!e;
|
|
39999
40108
|
F(() => {
|
|
40000
40109
|
s(t);
|
|
@@ -40036,13 +40145,13 @@ function WO({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
|
40036
40145
|
})
|
|
40037
40146
|
});
|
|
40038
40147
|
}
|
|
40039
|
-
function
|
|
40148
|
+
function rk({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
|
|
40040
40149
|
let c = t?.permissions ?? {}, l = n.filter((t) => Bx(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
|
|
40041
40150
|
return /* @__PURE__ */ Z("div", {
|
|
40042
40151
|
className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
|
|
40043
40152
|
children: [/* @__PURE__ */ Z("div", {
|
|
40044
40153
|
className: "perm-module-card-header",
|
|
40045
|
-
children: [/* @__PURE__ */ X(
|
|
40154
|
+
children: [/* @__PURE__ */ X(tk, {
|
|
40046
40155
|
value: i,
|
|
40047
40156
|
onSave: (t) => o(e, t),
|
|
40048
40157
|
className: "perm-module-card-name"
|
|
@@ -40056,16 +40165,16 @@ function GO({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
|
|
|
40056
40165
|
})]
|
|
40057
40166
|
}), /* @__PURE__ */ X("div", {
|
|
40058
40167
|
className: "perm-module-card-body",
|
|
40059
|
-
children: l.map((t) => /* @__PURE__ */ X(
|
|
40168
|
+
children: l.map((t) => /* @__PURE__ */ X(nk, {
|
|
40060
40169
|
entry: c[t],
|
|
40061
|
-
label: a[t] ??
|
|
40170
|
+
label: a[t] ?? ZO(t),
|
|
40062
40171
|
onToggle: () => r(e, t),
|
|
40063
40172
|
onLabelSave: (e) => s(t, e)
|
|
40064
40173
|
}, t))
|
|
40065
40174
|
})]
|
|
40066
40175
|
});
|
|
40067
40176
|
}
|
|
40068
|
-
function
|
|
40177
|
+
function ik({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
|
|
40069
40178
|
let [a, o] = L({}), [s, c] = L({}), [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(!1), h = un(e);
|
|
40070
40179
|
F(() => {
|
|
40071
40180
|
h && (u(!0), m(!1), mt(h).then((e) => {
|
|
@@ -40106,7 +40215,7 @@ function KO({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
40106
40215
|
f(!1);
|
|
40107
40216
|
}
|
|
40108
40217
|
}
|
|
40109
|
-
let v = I(() => Object.keys(s).sort(), [s]), y = I(() =>
|
|
40218
|
+
let v = I(() => Object.keys(s).sort(), [s]), y = I(() => $O(s), [s]), { enabled: b, total: x } = I(() => ek(s), [s]);
|
|
40110
40219
|
return /* @__PURE__ */ Z(fr, {
|
|
40111
40220
|
spinning: l,
|
|
40112
40221
|
children: [
|
|
@@ -40157,7 +40266,7 @@ function KO({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
40157
40266
|
children: "No permission entries found for this role."
|
|
40158
40267
|
}) : /* @__PURE__ */ X("div", {
|
|
40159
40268
|
className: "perm-cards-grid",
|
|
40160
|
-
children: v.map((e) => /* @__PURE__ */ X(
|
|
40269
|
+
children: v.map((e) => /* @__PURE__ */ X(rk, {
|
|
40161
40270
|
menuName: e,
|
|
40162
40271
|
menuData: s[e],
|
|
40163
40272
|
permKeys: y,
|
|
@@ -40173,7 +40282,7 @@ function KO({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
40173
40282
|
}
|
|
40174
40283
|
//#endregion
|
|
40175
40284
|
//#region src/pages/Modules/Admin/RolesSection.jsx
|
|
40176
|
-
var { Text:
|
|
40285
|
+
var { Text: ak } = yr, ok = [
|
|
40177
40286
|
{
|
|
40178
40287
|
key: "listView",
|
|
40179
40288
|
label: "List View"
|
|
@@ -40191,38 +40300,38 @@ var { Text: qO } = yr, JO = [
|
|
|
40191
40300
|
label: "Permissions"
|
|
40192
40301
|
}
|
|
40193
40302
|
];
|
|
40194
|
-
function
|
|
40303
|
+
function sk(e) {
|
|
40195
40304
|
return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
|
|
40196
40305
|
}
|
|
40197
|
-
function
|
|
40306
|
+
function ck(e) {
|
|
40198
40307
|
return String(e || "").trim().toLowerCase();
|
|
40199
40308
|
}
|
|
40200
|
-
function
|
|
40309
|
+
function lk(e) {
|
|
40201
40310
|
return e?.key || e?.collectionName || e?.value || "";
|
|
40202
40311
|
}
|
|
40203
|
-
function
|
|
40312
|
+
function uk(e = [], t = []) {
|
|
40204
40313
|
let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
40205
40314
|
return e.forEach((e) => {
|
|
40206
|
-
let t =
|
|
40315
|
+
let t = lk(e);
|
|
40207
40316
|
if (!t) return;
|
|
40208
|
-
let o =
|
|
40317
|
+
let o = ck(e.key || t), s = ck(e.collectionName);
|
|
40209
40318
|
e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
|
|
40210
|
-
label: e.label ||
|
|
40319
|
+
label: e.label || sk(t),
|
|
40211
40320
|
value: t,
|
|
40212
40321
|
disabled: !!e.seeded
|
|
40213
40322
|
});
|
|
40214
40323
|
}), t.forEach((e) => {
|
|
40215
40324
|
let t = String(e || "").trim();
|
|
40216
40325
|
if (!t || r.has(t)) return;
|
|
40217
|
-
let o =
|
|
40326
|
+
let o = ck(t);
|
|
40218
40327
|
a.has(o) || i.has(o) || (r.add(t), n.push({
|
|
40219
|
-
label:
|
|
40328
|
+
label: sk(t),
|
|
40220
40329
|
value: t,
|
|
40221
40330
|
disabled: !1
|
|
40222
40331
|
}));
|
|
40223
40332
|
}), n;
|
|
40224
40333
|
}
|
|
40225
|
-
function
|
|
40334
|
+
function dk() {
|
|
40226
40335
|
let [e, t] = L(null), [n, r] = L(!1), [i, a] = L("listView"), [o, s] = L([]), [c, l] = L(0), [u, d] = L(!1), [f, p] = L([]), [m, h] = L([]), [g, _] = L(!1), [v, y] = L(!1), b = I(() => f.filter((e) => !e.disabled), [f]), x = !g && b.length === 0, S = zn(async () => {
|
|
40227
40336
|
d(!0);
|
|
40228
40337
|
try {
|
|
@@ -40236,7 +40345,7 @@ function $O() {
|
|
|
40236
40345
|
}, []), C = zn(async () => {
|
|
40237
40346
|
_(!0);
|
|
40238
40347
|
try {
|
|
40239
|
-
let [e, t] = await Promise.all([me(), Le()]), n =
|
|
40348
|
+
let [e, t] = await Promise.all([me(), Le()]), n = uk(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
|
|
40240
40349
|
p(n), h((e) => e.filter((e) => r.has(e)));
|
|
40241
40350
|
} catch {
|
|
40242
40351
|
J.error("Failed to load seed status");
|
|
@@ -40302,7 +40411,7 @@ function $O() {
|
|
|
40302
40411
|
onClick: w,
|
|
40303
40412
|
children: "Seed Field Config"
|
|
40304
40413
|
})]
|
|
40305
|
-
}), /* @__PURE__ */ X(
|
|
40414
|
+
}), /* @__PURE__ */ X(ak, {
|
|
40306
40415
|
type: "secondary",
|
|
40307
40416
|
style: {
|
|
40308
40417
|
display: "block",
|
|
@@ -40382,13 +40491,13 @@ function $O() {
|
|
|
40382
40491
|
style: { marginBottom: 12 },
|
|
40383
40492
|
children: /* @__PURE__ */ X("div", {
|
|
40384
40493
|
className: "uss-config-toggle",
|
|
40385
|
-
children:
|
|
40494
|
+
children: ok.map((e) => /* @__PURE__ */ X("button", {
|
|
40386
40495
|
className: `uss-config-btn${i === e.key ? " active" : ""}`,
|
|
40387
40496
|
onClick: () => a(e.key),
|
|
40388
40497
|
children: e.label
|
|
40389
40498
|
}, e.key))
|
|
40390
40499
|
})
|
|
40391
|
-
}), e && (i === "permissions" ? /* @__PURE__ */ X(
|
|
40500
|
+
}), e && (i === "permissions" ? /* @__PURE__ */ X(ik, { role: e }, e?.roleId) : /* @__PURE__ */ X(rS, {
|
|
40392
40501
|
role: e,
|
|
40393
40502
|
configType: i
|
|
40394
40503
|
}, `${e?.roleId}-${i}`))]
|
|
@@ -40397,20 +40506,20 @@ function $O() {
|
|
|
40397
40506
|
}
|
|
40398
40507
|
//#endregion
|
|
40399
40508
|
//#region src/pages/Modules/Admin/PermissionsPage.jsx
|
|
40400
|
-
var
|
|
40401
|
-
function
|
|
40509
|
+
var fk = "perm-module-labels", pk = "perm-action-labels";
|
|
40510
|
+
function mk(e) {
|
|
40402
40511
|
try {
|
|
40403
40512
|
return JSON.parse(localStorage.getItem(e) ?? "{}");
|
|
40404
40513
|
} catch {
|
|
40405
40514
|
return {};
|
|
40406
40515
|
}
|
|
40407
40516
|
}
|
|
40408
|
-
function
|
|
40517
|
+
function hk(e, t) {
|
|
40409
40518
|
try {
|
|
40410
40519
|
localStorage.setItem(e, JSON.stringify(t));
|
|
40411
40520
|
} catch {}
|
|
40412
40521
|
}
|
|
40413
|
-
function
|
|
40522
|
+
function gk({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
40414
40523
|
let [i, a] = L(!1), [o, s] = L(e);
|
|
40415
40524
|
function c() {
|
|
40416
40525
|
a(!1);
|
|
@@ -40461,7 +40570,7 @@ function ik({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
|
40461
40570
|
})]
|
|
40462
40571
|
});
|
|
40463
40572
|
}
|
|
40464
|
-
function
|
|
40573
|
+
function _k({ open: e, onClose: t }) {
|
|
40465
40574
|
let [n, r] = L("modules"), [i, a] = L([]), [o, s] = L(!1), [c, l] = L(""), [u, d] = L(!1), [f, p] = L([]), [m, h] = L(!1), [g, _] = L(""), [v, y] = L(""), [b, x] = L(!1);
|
|
40466
40575
|
F(() => {
|
|
40467
40576
|
e && (S(), C());
|
|
@@ -40583,7 +40692,7 @@ function ak({ open: e, onClose: t }) {
|
|
|
40583
40692
|
className: "perm-empty",
|
|
40584
40693
|
style: { paddingTop: 24 },
|
|
40585
40694
|
children: "No modules found"
|
|
40586
|
-
}), i.map((e) => /* @__PURE__ */ X(
|
|
40695
|
+
}), i.map((e) => /* @__PURE__ */ X(gk, {
|
|
40587
40696
|
label: e.MENUNAME,
|
|
40588
40697
|
onSave: (t) => T(e.MENUID, t),
|
|
40589
40698
|
onDelete: () => E(e.MENUID)
|
|
@@ -40628,7 +40737,7 @@ function ak({ open: e, onClose: t }) {
|
|
|
40628
40737
|
className: "perm-empty",
|
|
40629
40738
|
style: { paddingTop: 24 },
|
|
40630
40739
|
children: "No actions found"
|
|
40631
|
-
}), f.map((e) => /* @__PURE__ */ X(
|
|
40740
|
+
}), f.map((e) => /* @__PURE__ */ X(gk, {
|
|
40632
40741
|
label: `${e.permissionName} (${e.permissionKey})`,
|
|
40633
40742
|
onSave: (t) => O(e.permissionId, t),
|
|
40634
40743
|
onDelete: () => k(e.permissionId)
|
|
@@ -40658,14 +40767,14 @@ function ak({ open: e, onClose: t }) {
|
|
|
40658
40767
|
})
|
|
40659
40768
|
});
|
|
40660
40769
|
}
|
|
40661
|
-
function
|
|
40662
|
-
let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() =>
|
|
40770
|
+
function vk() {
|
|
40771
|
+
let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => mk(fk)), [f, p] = L(() => mk(pk)), m = zn((e, t) => {
|
|
40663
40772
|
d((n) => {
|
|
40664
40773
|
let r = {
|
|
40665
40774
|
...n,
|
|
40666
40775
|
[e]: t
|
|
40667
40776
|
};
|
|
40668
|
-
return
|
|
40777
|
+
return hk(fk, r), r;
|
|
40669
40778
|
});
|
|
40670
40779
|
}, []), h = zn((e, t) => {
|
|
40671
40780
|
p((n) => {
|
|
@@ -40673,11 +40782,11 @@ function ok() {
|
|
|
40673
40782
|
...n,
|
|
40674
40783
|
[e]: t
|
|
40675
40784
|
};
|
|
40676
|
-
return
|
|
40785
|
+
return hk(pk, r), r;
|
|
40677
40786
|
});
|
|
40678
40787
|
}, []);
|
|
40679
40788
|
function g() {
|
|
40680
|
-
d({}), p({}),
|
|
40789
|
+
d({}), p({}), hk(fk, {}), hk(pk, {}), J.success("Labels reset to defaults");
|
|
40681
40790
|
}
|
|
40682
40791
|
let _ = zn(async () => {
|
|
40683
40792
|
r(!0);
|
|
@@ -40761,7 +40870,7 @@ function ok() {
|
|
|
40761
40870
|
})]
|
|
40762
40871
|
}),
|
|
40763
40872
|
bodyStyle: { padding: "12px 16px" },
|
|
40764
|
-
children: i ? /* @__PURE__ */ X(
|
|
40873
|
+
children: i ? /* @__PURE__ */ X(ik, {
|
|
40765
40874
|
role: i,
|
|
40766
40875
|
moduleLabels: u,
|
|
40767
40876
|
actionLabels: f,
|
|
@@ -40772,7 +40881,7 @@ function ok() {
|
|
|
40772
40881
|
children: "Select a role from the left to manage its permissions."
|
|
40773
40882
|
})
|
|
40774
40883
|
}),
|
|
40775
|
-
/* @__PURE__ */ X(
|
|
40884
|
+
/* @__PURE__ */ X(_k, {
|
|
40776
40885
|
open: c,
|
|
40777
40886
|
onClose: () => l(!1)
|
|
40778
40887
|
})
|
|
@@ -40781,7 +40890,7 @@ function ok() {
|
|
|
40781
40890
|
}
|
|
40782
40891
|
//#endregion
|
|
40783
40892
|
//#region src/components/cards/OnboardingCard.jsx
|
|
40784
|
-
var { Title:
|
|
40893
|
+
var { Title: yk, Text: bk } = yr, xk = [
|
|
40785
40894
|
{
|
|
40786
40895
|
label: "In Progress",
|
|
40787
40896
|
value: 107,
|
|
@@ -40807,10 +40916,10 @@ var { Title: sk, Text: ck } = yr, lk = [
|
|
|
40807
40916
|
color: "peach"
|
|
40808
40917
|
}
|
|
40809
40918
|
];
|
|
40810
|
-
function
|
|
40919
|
+
function Sk({ items: e = xk }) {
|
|
40811
40920
|
return /* @__PURE__ */ X(Kn, {
|
|
40812
40921
|
className: "onboarding-card",
|
|
40813
|
-
title: /* @__PURE__ */ X(
|
|
40922
|
+
title: /* @__PURE__ */ X(yk, {
|
|
40814
40923
|
level: 5,
|
|
40815
40924
|
children: "Onboarding"
|
|
40816
40925
|
}),
|
|
@@ -40829,7 +40938,7 @@ function uk({ items: e = lk }) {
|
|
|
40829
40938
|
children: /* @__PURE__ */ Z("div", {
|
|
40830
40939
|
className: `onboarding-item ${e.color}`,
|
|
40831
40940
|
children: [
|
|
40832
|
-
/* @__PURE__ */ X(
|
|
40941
|
+
/* @__PURE__ */ X(bk, {
|
|
40833
40942
|
className: "onboarding-item-label",
|
|
40834
40943
|
children: e.label
|
|
40835
40944
|
}),
|
|
@@ -40839,7 +40948,7 @@ function uk({ items: e = lk }) {
|
|
|
40839
40948
|
}),
|
|
40840
40949
|
/* @__PURE__ */ X("div", {
|
|
40841
40950
|
className: "onboarding-item-footer",
|
|
40842
|
-
children: /* @__PURE__ */ X(
|
|
40951
|
+
children: /* @__PURE__ */ X(bk, {
|
|
40843
40952
|
className: "onboarding-item-sub",
|
|
40844
40953
|
children: e.sub
|
|
40845
40954
|
})
|
|
@@ -40852,7 +40961,7 @@ function uk({ items: e = lk }) {
|
|
|
40852
40961
|
}
|
|
40853
40962
|
//#endregion
|
|
40854
40963
|
//#region src/pages/Modules/LegacyAdminPage.jsx
|
|
40855
|
-
var { Text:
|
|
40964
|
+
var { Text: Ck, Title: wk } = yr, Tk = [
|
|
40856
40965
|
{
|
|
40857
40966
|
group: "Dashboard",
|
|
40858
40967
|
items: [{
|
|
@@ -41067,7 +41176,7 @@ var { Text: dk, Title: fk } = yr, pk = [
|
|
|
41067
41176
|
}
|
|
41068
41177
|
]
|
|
41069
41178
|
}
|
|
41070
|
-
],
|
|
41179
|
+
], Ek = [
|
|
41071
41180
|
{
|
|
41072
41181
|
label: "Sourced",
|
|
41073
41182
|
count: 312,
|
|
@@ -41098,7 +41207,7 @@ var { Text: dk, Title: fk } = yr, pk = [
|
|
|
41098
41207
|
color: "#E24B4A",
|
|
41099
41208
|
pct: 10
|
|
41100
41209
|
}
|
|
41101
|
-
],
|
|
41210
|
+
], Dk = [
|
|
41102
41211
|
{
|
|
41103
41212
|
name: "Tcs",
|
|
41104
41213
|
jobs: 14,
|
|
@@ -41119,7 +41228,7 @@ var { Text: dk, Title: fk } = yr, pk = [
|
|
|
41119
41228
|
jobs: 5,
|
|
41120
41229
|
candidates: 38
|
|
41121
41230
|
}
|
|
41122
|
-
],
|
|
41231
|
+
], Ok = [
|
|
41123
41232
|
{
|
|
41124
41233
|
text: "New candidate Ravi Kumar added to Java Developer role",
|
|
41125
41234
|
time: "2 min ago",
|
|
@@ -41146,7 +41255,7 @@ var { Text: dk, Title: fk } = yr, pk = [
|
|
|
41146
41255
|
color: "#E24B4A"
|
|
41147
41256
|
}
|
|
41148
41257
|
];
|
|
41149
|
-
function
|
|
41258
|
+
function kk() {
|
|
41150
41259
|
return /* @__PURE__ */ Z("div", {
|
|
41151
41260
|
style: {
|
|
41152
41261
|
display: "flex",
|
|
@@ -41159,11 +41268,11 @@ function _k() {
|
|
|
41159
41268
|
title: "Admin Dashboard",
|
|
41160
41269
|
children: [
|
|
41161
41270
|
/* @__PURE__ */ X("div", { className: "admin-accent-bar" }),
|
|
41162
|
-
/* @__PURE__ */ X(
|
|
41271
|
+
/* @__PURE__ */ X(wk, {
|
|
41163
41272
|
level: 5,
|
|
41164
41273
|
children: "Admin Dashboard"
|
|
41165
41274
|
}),
|
|
41166
|
-
/* @__PURE__ */ X(
|
|
41275
|
+
/* @__PURE__ */ X(Ck, {
|
|
41167
41276
|
type: "secondary",
|
|
41168
41277
|
children: "Overview of jobs, candidates, onboarding and recent activity"
|
|
41169
41278
|
})
|
|
@@ -41171,7 +41280,7 @@ function _k() {
|
|
|
41171
41280
|
}),
|
|
41172
41281
|
/* @__PURE__ */ X("div", {
|
|
41173
41282
|
className: "admin-dashboard-stats",
|
|
41174
|
-
children: /* @__PURE__ */ X(
|
|
41283
|
+
children: /* @__PURE__ */ X(RO, { stats: [
|
|
41175
41284
|
{
|
|
41176
41285
|
label: "Total Jobs",
|
|
41177
41286
|
value: 1697,
|
|
@@ -41201,18 +41310,18 @@ function _k() {
|
|
|
41201
41310
|
}),
|
|
41202
41311
|
/* @__PURE__ */ Z("div", {
|
|
41203
41312
|
className: "admin-dashboard-mid-row",
|
|
41204
|
-
children: [/* @__PURE__ */ X(
|
|
41313
|
+
children: [/* @__PURE__ */ X(Sk, {}), /* @__PURE__ */ Z(Vx, {
|
|
41205
41314
|
icon: /* @__PURE__ */ X(Tr, {}),
|
|
41206
41315
|
title: "Candidate Pipeline",
|
|
41207
41316
|
children: [
|
|
41208
|
-
/* @__PURE__ */ X(
|
|
41317
|
+
/* @__PURE__ */ X(Ck, {
|
|
41209
41318
|
type: "secondary",
|
|
41210
41319
|
style: { fontSize: 12 },
|
|
41211
41320
|
children: "By stage (892 total)"
|
|
41212
41321
|
}),
|
|
41213
41322
|
/* @__PURE__ */ X("div", {
|
|
41214
41323
|
className: "admin-pipeline-bar",
|
|
41215
|
-
children:
|
|
41324
|
+
children: Ek.map((e) => /* @__PURE__ */ X("div", {
|
|
41216
41325
|
className: "admin-pipeline-seg",
|
|
41217
41326
|
style: {
|
|
41218
41327
|
width: `${e.pct}%`,
|
|
@@ -41222,7 +41331,7 @@ function _k() {
|
|
|
41222
41331
|
}),
|
|
41223
41332
|
/* @__PURE__ */ X("div", {
|
|
41224
41333
|
className: "admin-pipeline-legend",
|
|
41225
|
-
children:
|
|
41334
|
+
children: Ek.map((e) => /* @__PURE__ */ Z("div", {
|
|
41226
41335
|
className: "admin-pipeline-legend-item",
|
|
41227
41336
|
children: [
|
|
41228
41337
|
/* @__PURE__ */ X("span", {
|
|
@@ -41236,7 +41345,7 @@ function _k() {
|
|
|
41236
41345
|
}, e.label))
|
|
41237
41346
|
}),
|
|
41238
41347
|
/* @__PURE__ */ X("div", { className: "admin-divider" }),
|
|
41239
|
-
/* @__PURE__ */ X(
|
|
41348
|
+
/* @__PURE__ */ X(Ck, {
|
|
41240
41349
|
strong: !0,
|
|
41241
41350
|
style: { fontSize: 12 },
|
|
41242
41351
|
children: "Submission status"
|
|
@@ -41247,7 +41356,7 @@ function _k() {
|
|
|
41247
41356
|
children: [
|
|
41248
41357
|
/* @__PURE__ */ Z("div", {
|
|
41249
41358
|
className: "admin-sub-status-item",
|
|
41250
|
-
children: [/* @__PURE__ */ X(
|
|
41359
|
+
children: [/* @__PURE__ */ X(Ck, {
|
|
41251
41360
|
style: { fontSize: 13 },
|
|
41252
41361
|
children: "Pending client review"
|
|
41253
41362
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -41257,7 +41366,7 @@ function _k() {
|
|
|
41257
41366
|
}),
|
|
41258
41367
|
/* @__PURE__ */ Z("div", {
|
|
41259
41368
|
className: "admin-sub-status-item",
|
|
41260
|
-
children: [/* @__PURE__ */ X(
|
|
41369
|
+
children: [/* @__PURE__ */ X(Ck, {
|
|
41261
41370
|
style: { fontSize: 13 },
|
|
41262
41371
|
children: "Client approved"
|
|
41263
41372
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -41267,7 +41376,7 @@ function _k() {
|
|
|
41267
41376
|
}),
|
|
41268
41377
|
/* @__PURE__ */ Z("div", {
|
|
41269
41378
|
className: "admin-sub-status-item",
|
|
41270
|
-
children: [/* @__PURE__ */ X(
|
|
41379
|
+
children: [/* @__PURE__ */ X(Ck, {
|
|
41271
41380
|
style: { fontSize: 13 },
|
|
41272
41381
|
children: "Rejected"
|
|
41273
41382
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -41290,7 +41399,7 @@ function _k() {
|
|
|
41290
41399
|
size: "small",
|
|
41291
41400
|
children: "View all"
|
|
41292
41401
|
}),
|
|
41293
|
-
children:
|
|
41402
|
+
children: Dk.map((e) => /* @__PURE__ */ Z("div", {
|
|
41294
41403
|
className: "admin-client-row",
|
|
41295
41404
|
children: [/* @__PURE__ */ Z("div", {
|
|
41296
41405
|
className: "admin-client-left",
|
|
@@ -41318,7 +41427,7 @@ function _k() {
|
|
|
41318
41427
|
}), /* @__PURE__ */ X(Vx, {
|
|
41319
41428
|
icon: /* @__PURE__ */ X(Ar, {}),
|
|
41320
41429
|
title: "Recent Activity",
|
|
41321
|
-
children:
|
|
41430
|
+
children: Ok.map((e, t) => /* @__PURE__ */ Z("div", {
|
|
41322
41431
|
className: "admin-activity-row",
|
|
41323
41432
|
children: [/* @__PURE__ */ X("div", {
|
|
41324
41433
|
className: "admin-activity-dot",
|
|
@@ -41346,7 +41455,7 @@ function _k() {
|
|
|
41346
41455
|
children: [
|
|
41347
41456
|
/* @__PURE__ */ Z(z, {
|
|
41348
41457
|
span: 8,
|
|
41349
|
-
children: [/* @__PURE__ */ X(
|
|
41458
|
+
children: [/* @__PURE__ */ X(Ck, {
|
|
41350
41459
|
type: "secondary",
|
|
41351
41460
|
style: {
|
|
41352
41461
|
fontSize: 12,
|
|
@@ -41359,7 +41468,7 @@ function _k() {
|
|
|
41359
41468
|
["Templates", 2]
|
|
41360
41469
|
].map(([e, t]) => /* @__PURE__ */ Z("div", {
|
|
41361
41470
|
className: "admin-cfg-overview-row",
|
|
41362
|
-
children: [/* @__PURE__ */ X(
|
|
41471
|
+
children: [/* @__PURE__ */ X(Ck, {
|
|
41363
41472
|
style: { fontSize: 12 },
|
|
41364
41473
|
children: e
|
|
41365
41474
|
}), /* @__PURE__ */ Z("span", {
|
|
@@ -41370,7 +41479,7 @@ function _k() {
|
|
|
41370
41479
|
}),
|
|
41371
41480
|
/* @__PURE__ */ Z(z, {
|
|
41372
41481
|
span: 8,
|
|
41373
|
-
children: [/* @__PURE__ */ X(
|
|
41482
|
+
children: [/* @__PURE__ */ X(Ck, {
|
|
41374
41483
|
type: "secondary",
|
|
41375
41484
|
style: {
|
|
41376
41485
|
fontSize: 12,
|
|
@@ -41383,7 +41492,7 @@ function _k() {
|
|
|
41383
41492
|
["Submissions", 2]
|
|
41384
41493
|
].map(([e, t]) => /* @__PURE__ */ Z("div", {
|
|
41385
41494
|
className: "admin-cfg-overview-row",
|
|
41386
|
-
children: [/* @__PURE__ */ X(
|
|
41495
|
+
children: [/* @__PURE__ */ X(Ck, {
|
|
41387
41496
|
style: { fontSize: 12 },
|
|
41388
41497
|
children: e
|
|
41389
41498
|
}), /* @__PURE__ */ Z("span", {
|
|
@@ -41394,7 +41503,7 @@ function _k() {
|
|
|
41394
41503
|
}),
|
|
41395
41504
|
/* @__PURE__ */ Z(z, {
|
|
41396
41505
|
span: 8,
|
|
41397
|
-
children: [/* @__PURE__ */ X(
|
|
41506
|
+
children: [/* @__PURE__ */ X(Ck, {
|
|
41398
41507
|
type: "secondary",
|
|
41399
41508
|
style: {
|
|
41400
41509
|
fontSize: 12,
|
|
@@ -41407,10 +41516,10 @@ function _k() {
|
|
|
41407
41516
|
["Config Items", 19]
|
|
41408
41517
|
].map(([e, t]) => /* @__PURE__ */ Z("div", {
|
|
41409
41518
|
className: "admin-cfg-overview-row",
|
|
41410
|
-
children: [/* @__PURE__ */ X(
|
|
41519
|
+
children: [/* @__PURE__ */ X(Ck, {
|
|
41411
41520
|
style: { fontSize: 12 },
|
|
41412
41521
|
children: e
|
|
41413
|
-
}), /* @__PURE__ */ X(
|
|
41522
|
+
}), /* @__PURE__ */ X(Ck, {
|
|
41414
41523
|
strong: !0,
|
|
41415
41524
|
style: { fontSize: 12 },
|
|
41416
41525
|
children: t
|
|
@@ -41423,7 +41532,7 @@ function _k() {
|
|
|
41423
41532
|
]
|
|
41424
41533
|
});
|
|
41425
41534
|
}
|
|
41426
|
-
function
|
|
41535
|
+
function Ak({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
|
|
41427
41536
|
return /* @__PURE__ */ Z(H, {
|
|
41428
41537
|
gutter: [16, 16],
|
|
41429
41538
|
children: [
|
|
@@ -41442,11 +41551,11 @@ function vk({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
41442
41551
|
}),
|
|
41443
41552
|
children: [
|
|
41444
41553
|
/* @__PURE__ */ X("div", { className: "admin-accent-bar" }),
|
|
41445
|
-
/* @__PURE__ */ X(
|
|
41554
|
+
/* @__PURE__ */ X(wk, {
|
|
41446
41555
|
level: 5,
|
|
41447
41556
|
children: e?.heading
|
|
41448
41557
|
}),
|
|
41449
|
-
/* @__PURE__ */ X(
|
|
41558
|
+
/* @__PURE__ */ X(Ck, {
|
|
41450
41559
|
type: "secondary",
|
|
41451
41560
|
children: e?.desc
|
|
41452
41561
|
})
|
|
@@ -41460,7 +41569,7 @@ function vk({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
41460
41569
|
children: /* @__PURE__ */ X(Vx, {
|
|
41461
41570
|
icon: /* @__PURE__ */ X(Tr, {}),
|
|
41462
41571
|
title: "Configuration Items",
|
|
41463
|
-
extra: /* @__PURE__ */ Z(
|
|
41572
|
+
extra: /* @__PURE__ */ Z(Ck, {
|
|
41464
41573
|
type: "secondary",
|
|
41465
41574
|
children: [
|
|
41466
41575
|
n.length,
|
|
@@ -41527,7 +41636,7 @@ function vk({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
41527
41636
|
title: "Section Overview",
|
|
41528
41637
|
children: [/* @__PURE__ */ X("div", {
|
|
41529
41638
|
className: "admin-overview-list",
|
|
41530
|
-
children:
|
|
41639
|
+
children: Tk.filter((e) => e.group !== "Dashboard").map((e) => {
|
|
41531
41640
|
let n = e.group === t?.group;
|
|
41532
41641
|
return /* @__PURE__ */ Z("div", {
|
|
41533
41642
|
className: `admin-overview-item${n ? " active" : ""}`,
|
|
@@ -41575,12 +41684,12 @@ function vk({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
41575
41684
|
]
|
|
41576
41685
|
});
|
|
41577
41686
|
}
|
|
41578
|
-
function
|
|
41579
|
-
let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() =>
|
|
41687
|
+
function jk() {
|
|
41688
|
+
let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => Tk.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => Tk.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
|
|
41580
41689
|
if (!a?.cards) return [];
|
|
41581
41690
|
let e = n.trim().toLowerCase();
|
|
41582
41691
|
return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
|
|
41583
|
-
}, [a, n]), c = I(() =>
|
|
41692
|
+
}, [a, n]), c = I(() => Tk.map((e) => ({
|
|
41584
41693
|
key: e.group,
|
|
41585
41694
|
type: "group",
|
|
41586
41695
|
label: e.group,
|
|
@@ -41629,7 +41738,7 @@ function yk() {
|
|
|
41629
41738
|
children: "Groups"
|
|
41630
41739
|
}), /* @__PURE__ */ X("span", {
|
|
41631
41740
|
className: "admin-sidebar-pill-value",
|
|
41632
|
-
children:
|
|
41741
|
+
children: Tk.length
|
|
41633
41742
|
})]
|
|
41634
41743
|
})
|
|
41635
41744
|
}), /* @__PURE__ */ X(z, {
|
|
@@ -41659,7 +41768,7 @@ function yk() {
|
|
|
41659
41768
|
xs: 24,
|
|
41660
41769
|
lg: 18,
|
|
41661
41770
|
xl: 19,
|
|
41662
|
-
children: e === "dashboard" ? /* @__PURE__ */ X(
|
|
41771
|
+
children: e === "dashboard" ? /* @__PURE__ */ X(kk, {}) : a?.component === "form-groups" ? /* @__PURE__ */ X(XS, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ X(bC, {}) : a?.component === "row-actions" ? /* @__PURE__ */ X(cw, {}) : a?.component === "users" ? /* @__PURE__ */ X(HO, {}) : a?.component === "teams" ? /* @__PURE__ */ X(JO, {}) : a?.component === "roles" ? /* @__PURE__ */ X(dk, {}) : a?.component === "permissions" ? /* @__PURE__ */ X(vk, {}) : a?.component === "templates" ? /* @__PURE__ */ X(_w, {}) : a?.component === "ai-services" ? /* @__PURE__ */ X(xw, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ X(Dw, {}) : /* @__PURE__ */ X(Ak, {
|
|
41663
41772
|
activeSection: a,
|
|
41664
41773
|
activeGroup: o,
|
|
41665
41774
|
filteredCards: s,
|
|
@@ -41674,8 +41783,8 @@ function yk() {
|
|
|
41674
41783
|
}
|
|
41675
41784
|
//#endregion
|
|
41676
41785
|
//#region src/pages/stickyNotesFullPage.jsx
|
|
41677
|
-
var { Title:
|
|
41678
|
-
function
|
|
41786
|
+
var { Title: Mk } = yr;
|
|
41787
|
+
function Nk() {
|
|
41679
41788
|
let e = ba(), { state: t } = ya(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
|
|
41680
41789
|
...t?.request,
|
|
41681
41790
|
params: {
|
|
@@ -41700,7 +41809,7 @@ function xk() {
|
|
|
41700
41809
|
}
|
|
41701
41810
|
//#endregion
|
|
41702
41811
|
//#region src/pages/BulkUpload/index.jsx
|
|
41703
|
-
var { Text:
|
|
41812
|
+
var { Text: Pk, Title: Fk } = yr, Ik = 10 * 1024 * 1024, Lk = "/templates/test_cases_flow_template.base64.txt", Rk = "test_cases_flow_template.xlsx", zk = "module | subModule | step_order | description | actions | key | value | expected | scenario", Bk = {
|
|
41704
41813
|
idle: 0,
|
|
41705
41814
|
module_set: 1,
|
|
41706
41815
|
encoding: 1,
|
|
@@ -41709,7 +41818,7 @@ var { Text: Sk, Title: Ck } = yr, wk = 10 * 1024 * 1024, Tk = "/templates/test_c
|
|
|
41709
41818
|
inserting: 3,
|
|
41710
41819
|
done: 4,
|
|
41711
41820
|
error: 1
|
|
41712
|
-
},
|
|
41821
|
+
}, Vk = [
|
|
41713
41822
|
{
|
|
41714
41823
|
label: "Home",
|
|
41715
41824
|
href: "/"
|
|
@@ -41723,31 +41832,31 @@ var { Text: Sk, Title: Ck } = yr, wk = 10 * 1024 * 1024, Tk = "/templates/test_c
|
|
|
41723
41832
|
href: "/bulk-upload"
|
|
41724
41833
|
}
|
|
41725
41834
|
];
|
|
41726
|
-
function
|
|
41835
|
+
function Hk(e) {
|
|
41727
41836
|
return new Promise((t, n) => {
|
|
41728
41837
|
let r = new FileReader();
|
|
41729
41838
|
r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
|
|
41730
41839
|
});
|
|
41731
41840
|
}
|
|
41732
|
-
function
|
|
41841
|
+
function Uk(e) {
|
|
41733
41842
|
return e.filter((e) => e.row_status === "valid").map((e) => {
|
|
41734
41843
|
let t = { ...e };
|
|
41735
41844
|
return delete t.row_status, delete t.errors, t;
|
|
41736
41845
|
});
|
|
41737
41846
|
}
|
|
41738
|
-
function
|
|
41847
|
+
function Wk(e) {
|
|
41739
41848
|
return e.flatMap((e) => (e.errors ?? []).map((t) => ({
|
|
41740
41849
|
id: e.id,
|
|
41741
41850
|
...t
|
|
41742
41851
|
})));
|
|
41743
41852
|
}
|
|
41744
|
-
function
|
|
41853
|
+
function Gk({ errors: e }) {
|
|
41745
41854
|
return /* @__PURE__ */ X("div", {
|
|
41746
41855
|
className: "bulk-tooltip-errors",
|
|
41747
41856
|
children: (e ?? []).map((e, t) => /* @__PURE__ */ X("div", { children: e.message }, `${e.field}-${t}`))
|
|
41748
41857
|
});
|
|
41749
41858
|
}
|
|
41750
|
-
function
|
|
41859
|
+
function Kk({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
41751
41860
|
return e.length === 0 ? null : /* @__PURE__ */ Z("div", {
|
|
41752
41861
|
className: "bulk-error-banner",
|
|
41753
41862
|
children: [/* @__PURE__ */ Z("div", {
|
|
@@ -41778,7 +41887,7 @@ function Pk({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
|
41778
41887
|
})]
|
|
41779
41888
|
});
|
|
41780
41889
|
}
|
|
41781
|
-
function
|
|
41890
|
+
function qk({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
|
|
41782
41891
|
let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
|
|
41783
41892
|
return /* @__PURE__ */ Z(Y, { children: [
|
|
41784
41893
|
/* @__PURE__ */ Z(H, {
|
|
@@ -41794,7 +41903,7 @@ function Fk({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
41794
41903
|
type: t === "errors" ? "primary" : "default",
|
|
41795
41904
|
onClick: () => n("errors"),
|
|
41796
41905
|
children: "Errors only"
|
|
41797
|
-
})] }) }), /* @__PURE__ */ X(z, { children: /* @__PURE__ */ Z(
|
|
41906
|
+
})] }) }), /* @__PURE__ */ X(z, { children: /* @__PURE__ */ Z(Pk, {
|
|
41798
41907
|
type: "secondary",
|
|
41799
41908
|
children: [e.length, " row(s)"]
|
|
41800
41909
|
}) })]
|
|
@@ -41866,7 +41975,7 @@ function Fk({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
41866
41975
|
children: "Valid"
|
|
41867
41976
|
}) }),
|
|
41868
41977
|
/* @__PURE__ */ X("td", { children: n ? /* @__PURE__ */ X(q, {
|
|
41869
|
-
title: /* @__PURE__ */ X(
|
|
41978
|
+
title: /* @__PURE__ */ X(Gk, { errors: t }),
|
|
41870
41979
|
placement: "left",
|
|
41871
41980
|
children: /* @__PURE__ */ Z("button", {
|
|
41872
41981
|
type: "button",
|
|
@@ -41903,11 +42012,11 @@ function Fk({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
41903
42012
|
})
|
|
41904
42013
|
] });
|
|
41905
42014
|
}
|
|
41906
|
-
function
|
|
42015
|
+
function Jk() {
|
|
41907
42016
|
let e = ba(), t = I(() => _(), []), n = Bn(null), r = Bn(null), [i, a] = L([]), [o, s] = L(""), [c, l] = L("idle"), [u, d] = L(!1), [f, p] = L(null), [m, h] = L([]), [g, v] = L("all"), [y, b] = L(null), [x, S] = L(null), [C, w] = L(!1), T = i.map((e) => ({
|
|
41908
42017
|
value: e.modulename,
|
|
41909
42018
|
label: e.modulename
|
|
41910
|
-
})), E =
|
|
42019
|
+
})), E = Wk(m), D = c === "encoding" || c === "validating", O = !!o && !D, k = Bk[c] ?? 0, A = m.find((e) => e.row_status === "invalid")?.id, j = zn(() => {
|
|
41911
42020
|
s(""), l("idle"), d(!1), p(null), h([]), v("all"), b(null), S(null), n.current && (n.current.value = "");
|
|
41912
42021
|
}, []);
|
|
41913
42022
|
F(() => {
|
|
@@ -41932,7 +42041,7 @@ function Ik() {
|
|
|
41932
42041
|
l("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
|
|
41933
42042
|
return;
|
|
41934
42043
|
}
|
|
41935
|
-
if (e.size >
|
|
42044
|
+
if (e.size > Ik) {
|
|
41936
42045
|
l("module_set"), b({ message: "File must be 10 MB or smaller." });
|
|
41937
42046
|
return;
|
|
41938
42047
|
}
|
|
@@ -41941,7 +42050,7 @@ function Ik() {
|
|
|
41941
42050
|
size: e.size
|
|
41942
42051
|
}), l("encoding");
|
|
41943
42052
|
try {
|
|
41944
|
-
let r = await
|
|
42053
|
+
let r = await Hk(e);
|
|
41945
42054
|
l("validating"), h((await Ub({
|
|
41946
42055
|
filename: e.name,
|
|
41947
42056
|
project: t?.name ?? "",
|
|
@@ -41957,12 +42066,12 @@ function Ik() {
|
|
|
41957
42066
|
}
|
|
41958
42067
|
}, ne = async () => {
|
|
41959
42068
|
try {
|
|
41960
|
-
let e = await fetch(
|
|
42069
|
+
let e = await fetch(Lk);
|
|
41961
42070
|
if (!e.ok) throw Error(`Template file not found (${e.status})`);
|
|
41962
42071
|
let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
|
|
41963
42072
|
for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
|
|
41964
42073
|
let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
|
|
41965
|
-
o.href = a, o.download =
|
|
42074
|
+
o.href = a, o.download = Rk, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), J.success("Sample template downloaded.");
|
|
41966
42075
|
} catch (e) {
|
|
41967
42076
|
console.error(e), J.error("Unable to download sample template.");
|
|
41968
42077
|
}
|
|
@@ -41973,7 +42082,7 @@ function Ik() {
|
|
|
41973
42082
|
project: t?.name ?? "",
|
|
41974
42083
|
module: o,
|
|
41975
42084
|
uploaded_by: localStorage.getItem("user_Email") ?? "",
|
|
41976
|
-
rows:
|
|
42085
|
+
rows: Uk(m)
|
|
41977
42086
|
})), l("done"), J.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
|
|
41978
42087
|
} catch (e) {
|
|
41979
42088
|
console.error(e), b(e.payload ?? {
|
|
@@ -41999,7 +42108,7 @@ function Ik() {
|
|
|
41999
42108
|
align: "middle",
|
|
42000
42109
|
justify: "space-between",
|
|
42001
42110
|
className: "breadcrumb-action-wrapper",
|
|
42002
|
-
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items:
|
|
42111
|
+
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items: Vk }) }), t?.name && /* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(Pk, {
|
|
42003
42112
|
strong: !0,
|
|
42004
42113
|
children: t.name
|
|
42005
42114
|
}) })]
|
|
@@ -42008,16 +42117,16 @@ function Ik() {
|
|
|
42008
42117
|
children: [
|
|
42009
42118
|
/* @__PURE__ */ Z("div", {
|
|
42010
42119
|
className: "bulk-header",
|
|
42011
|
-
children: [/* @__PURE__ */ X(
|
|
42120
|
+
children: [/* @__PURE__ */ X(Fk, {
|
|
42012
42121
|
level: 3,
|
|
42013
42122
|
children: "Bulk upload test cases"
|
|
42014
42123
|
}), /* @__PURE__ */ Z(W, {
|
|
42015
42124
|
direction: "vertical",
|
|
42016
42125
|
size: 4,
|
|
42017
|
-
children: [/* @__PURE__ */ X(
|
|
42126
|
+
children: [/* @__PURE__ */ X(Pk, {
|
|
42018
42127
|
type: "secondary",
|
|
42019
|
-
children:
|
|
42020
|
-
}), /* @__PURE__ */ X(
|
|
42128
|
+
children: zk
|
|
42129
|
+
}), /* @__PURE__ */ X(Pk, {
|
|
42021
42130
|
type: "secondary",
|
|
42022
42131
|
children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
|
|
42023
42132
|
})]
|
|
@@ -42115,7 +42224,7 @@ function Ik() {
|
|
|
42115
42224
|
className: "v1-card zt-fall",
|
|
42116
42225
|
title: "3. Validation result",
|
|
42117
42226
|
children: [
|
|
42118
|
-
/* @__PURE__ */ X(
|
|
42227
|
+
/* @__PURE__ */ X(Kk, {
|
|
42119
42228
|
errors: E,
|
|
42120
42229
|
expanded: C,
|
|
42121
42230
|
onToggle: () => w((e) => !e),
|
|
@@ -42127,7 +42236,7 @@ function Ik() {
|
|
|
42127
42236
|
message: y.message,
|
|
42128
42237
|
className: "bulk-inline-alert"
|
|
42129
42238
|
}),
|
|
42130
|
-
/* @__PURE__ */ X(
|
|
42239
|
+
/* @__PURE__ */ X(qk, {
|
|
42131
42240
|
rows: m,
|
|
42132
42241
|
view: g,
|
|
42133
42242
|
onViewChange: v,
|
|
@@ -42150,17 +42259,17 @@ function Ik() {
|
|
|
42150
42259
|
/* @__PURE__ */ X(z, {
|
|
42151
42260
|
xs: 24,
|
|
42152
42261
|
md: 8,
|
|
42153
|
-
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
42262
|
+
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(Pk, { children: "Total" }), /* @__PURE__ */ X("strong", { children: m.length })] })
|
|
42154
42263
|
}),
|
|
42155
42264
|
/* @__PURE__ */ X(z, {
|
|
42156
42265
|
xs: 24,
|
|
42157
42266
|
md: 8,
|
|
42158
|
-
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
42267
|
+
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(Pk, { children: "Inserted" }), /* @__PURE__ */ X("strong", { children: x.inserted ?? 0 })] })
|
|
42159
42268
|
}),
|
|
42160
42269
|
/* @__PURE__ */ X(z, {
|
|
42161
42270
|
xs: 24,
|
|
42162
42271
|
md: 8,
|
|
42163
|
-
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(
|
|
42272
|
+
children: /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X(Pk, { children: "Failed" }), /* @__PURE__ */ X("strong", { children: x.failed ?? 0 })] })
|
|
42164
42273
|
})
|
|
42165
42274
|
]
|
|
42166
42275
|
}),
|
|
@@ -42184,7 +42293,7 @@ function Ik() {
|
|
|
42184
42293
|
}
|
|
42185
42294
|
//#endregion
|
|
42186
42295
|
//#region src/services/dropdownValues/testPageValues.js
|
|
42187
|
-
var
|
|
42296
|
+
var Yk = [
|
|
42188
42297
|
{
|
|
42189
42298
|
value: "navigate",
|
|
42190
42299
|
label: "Navigate"
|
|
@@ -42317,82 +42426,82 @@ var Lk = [
|
|
|
42317
42426
|
value: "wait_for_text",
|
|
42318
42427
|
label: "Wait For Text"
|
|
42319
42428
|
}
|
|
42320
|
-
], { Text:
|
|
42429
|
+
], { Text: Xk } = yr, Zk = [{
|
|
42321
42430
|
label: "Home",
|
|
42322
42431
|
href: "/"
|
|
42323
42432
|
}, {
|
|
42324
42433
|
label: "Test Cases",
|
|
42325
42434
|
href: "/test-cases"
|
|
42326
|
-
}],
|
|
42435
|
+
}], Qk = {
|
|
42327
42436
|
tags: "regression",
|
|
42328
42437
|
active: 1
|
|
42329
|
-
},
|
|
42438
|
+
}, $k = { module: {
|
|
42330
42439
|
dbName: "Modules",
|
|
42331
42440
|
formField: "module",
|
|
42332
42441
|
label: "Module"
|
|
42333
42442
|
} };
|
|
42334
|
-
function
|
|
42443
|
+
function eA(e = []) {
|
|
42335
42444
|
return e.map((e) => ({
|
|
42336
42445
|
value: e,
|
|
42337
42446
|
label: e
|
|
42338
42447
|
}));
|
|
42339
42448
|
}
|
|
42340
|
-
function
|
|
42449
|
+
function tA(e = "") {
|
|
42341
42450
|
return String(e ?? "").trim();
|
|
42342
42451
|
}
|
|
42343
|
-
function
|
|
42344
|
-
return
|
|
42452
|
+
function nA(e = "") {
|
|
42453
|
+
return tA(e).toLowerCase();
|
|
42345
42454
|
}
|
|
42346
|
-
function
|
|
42455
|
+
function rA(e = []) {
|
|
42347
42456
|
let t = /* @__PURE__ */ new Map();
|
|
42348
42457
|
return e.forEach((e) => {
|
|
42349
|
-
let n =
|
|
42458
|
+
let n = tA(e?.flow), r = n.toLowerCase();
|
|
42350
42459
|
n && !t.has(r) && t.set(r, n);
|
|
42351
42460
|
}), Array.from(t.values()).map((e) => ({
|
|
42352
42461
|
value: e,
|
|
42353
42462
|
label: e
|
|
42354
42463
|
}));
|
|
42355
42464
|
}
|
|
42356
|
-
function
|
|
42357
|
-
let r =
|
|
42465
|
+
function iA(e = [], t, n) {
|
|
42466
|
+
let r = tA(t).toLowerCase(), i = tA(n).toLowerCase();
|
|
42358
42467
|
return e.reduce((e, t) => {
|
|
42359
|
-
let n =
|
|
42468
|
+
let n = tA(t?.module).toLowerCase(), a = tA(t?.flow).toLowerCase();
|
|
42360
42469
|
if (n !== r || a !== i) return e;
|
|
42361
42470
|
let o = Number(t?.step_order) || 0;
|
|
42362
42471
|
return Math.max(e, o);
|
|
42363
42472
|
}, 0) + 1;
|
|
42364
42473
|
}
|
|
42365
|
-
function
|
|
42474
|
+
function aA({ icon: e, title: t }) {
|
|
42366
42475
|
return /* @__PURE__ */ Z(W, {
|
|
42367
42476
|
size: 10,
|
|
42368
42477
|
align: "center",
|
|
42369
42478
|
children: [/* @__PURE__ */ X("div", {
|
|
42370
42479
|
className: "v1-section-icon-box",
|
|
42371
42480
|
children: e
|
|
42372
|
-
}), /* @__PURE__ */ X(
|
|
42481
|
+
}), /* @__PURE__ */ X(Xk, {
|
|
42373
42482
|
strong: !0,
|
|
42374
42483
|
className: "v1-section-label",
|
|
42375
42484
|
children: t
|
|
42376
42485
|
})]
|
|
42377
42486
|
});
|
|
42378
42487
|
}
|
|
42379
|
-
function
|
|
42488
|
+
function oA() {
|
|
42380
42489
|
let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(!1), [u, d] = L(!1), [f, p] = L({
|
|
42381
42490
|
open: !1,
|
|
42382
42491
|
typeKey: "module"
|
|
42383
|
-
}), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ba(), x =
|
|
42492
|
+
}), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ba(), x = $k[f.typeKey], S = I(() => eA(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!tA(C), E = !!tA(w), D = !T, O = !T || !E, k = (e, t = []) => {
|
|
42384
42493
|
e === "module" && r(t);
|
|
42385
42494
|
}, A = async () => {
|
|
42386
42495
|
l(!0);
|
|
42387
42496
|
try {
|
|
42388
|
-
r((await Rb(
|
|
42497
|
+
r((await Rb($k.module.dbName))?.items ?? []);
|
|
42389
42498
|
} catch (e) {
|
|
42390
42499
|
console.error("Unable to load testing options:", e), J.error("Unable to load testing options.");
|
|
42391
42500
|
} finally {
|
|
42392
42501
|
l(!1);
|
|
42393
42502
|
}
|
|
42394
42503
|
}, j = zn(async (t) => {
|
|
42395
|
-
let n =
|
|
42504
|
+
let n = tA(t);
|
|
42396
42505
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
42397
42506
|
d(!0);
|
|
42398
42507
|
try {
|
|
@@ -42401,7 +42510,7 @@ function Jk() {
|
|
|
42401
42510
|
offset: 0,
|
|
42402
42511
|
module: n
|
|
42403
42512
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
42404
|
-
a(t), s(
|
|
42513
|
+
a(t), s(rA(t));
|
|
42405
42514
|
} catch (e) {
|
|
42406
42515
|
console.error("Unable to load flows:", e), J.error("Unable to load flows.");
|
|
42407
42516
|
} finally {
|
|
@@ -42409,14 +42518,14 @@ function Jk() {
|
|
|
42409
42518
|
}
|
|
42410
42519
|
}
|
|
42411
42520
|
}, [e]), ee = zn(async (t, n, r) => {
|
|
42412
|
-
let i =
|
|
42521
|
+
let i = tA(t), a = tA(n);
|
|
42413
42522
|
if (!i || !a) {
|
|
42414
42523
|
e.setFieldsValue({ step_order: void 0 });
|
|
42415
42524
|
return;
|
|
42416
42525
|
}
|
|
42417
42526
|
_(!0);
|
|
42418
42527
|
try {
|
|
42419
|
-
e.setFieldsValue({ step_order:
|
|
42528
|
+
e.setFieldsValue({ step_order: iA(r, i, a) });
|
|
42420
42529
|
} catch (e) {
|
|
42421
42530
|
console.error("Unable to load step order:", e), J.error("Unable to load step order.");
|
|
42422
42531
|
} finally {
|
|
@@ -42437,15 +42546,15 @@ function Jk() {
|
|
|
42437
42546
|
]);
|
|
42438
42547
|
let te = async (t) => {
|
|
42439
42548
|
let n = {
|
|
42440
|
-
module:
|
|
42441
|
-
flow:
|
|
42549
|
+
module: tA(t.module),
|
|
42550
|
+
flow: tA(t.flow),
|
|
42442
42551
|
step_order: Number(t.step_order),
|
|
42443
|
-
description:
|
|
42444
|
-
keyword:
|
|
42445
|
-
target:
|
|
42446
|
-
value:
|
|
42447
|
-
expected:
|
|
42448
|
-
tags: t.tags ?
|
|
42552
|
+
description: tA(t.description),
|
|
42553
|
+
keyword: nA(t.keyword),
|
|
42554
|
+
target: tA(t.target),
|
|
42555
|
+
value: tA(t.value),
|
|
42556
|
+
expected: tA(t.expected),
|
|
42557
|
+
tags: t.tags ? tA(t.tags) : Qk.tags,
|
|
42449
42558
|
active: Number(t.active)
|
|
42450
42559
|
};
|
|
42451
42560
|
y(!0);
|
|
@@ -42457,26 +42566,26 @@ function Jk() {
|
|
|
42457
42566
|
y(!1);
|
|
42458
42567
|
}
|
|
42459
42568
|
}, ne = (t, n) => {
|
|
42460
|
-
e.setFieldsValue({ [t]:
|
|
42569
|
+
e.setFieldsValue({ [t]: tA(n) });
|
|
42461
42570
|
}, M = (t) => {
|
|
42462
42571
|
e.setFieldsValue({
|
|
42463
|
-
module:
|
|
42572
|
+
module: tA(t),
|
|
42464
42573
|
flow: void 0,
|
|
42465
42574
|
step_order: void 0,
|
|
42466
42575
|
keyword: void 0,
|
|
42467
42576
|
description: void 0,
|
|
42468
42577
|
target: void 0,
|
|
42469
|
-
tags:
|
|
42578
|
+
tags: Qk.tags,
|
|
42470
42579
|
value: void 0,
|
|
42471
42580
|
expected: void 0
|
|
42472
42581
|
});
|
|
42473
42582
|
}, re = (t) => {
|
|
42474
42583
|
e.setFieldsValue({
|
|
42475
|
-
flow:
|
|
42584
|
+
flow: tA(t),
|
|
42476
42585
|
step_order: void 0
|
|
42477
42586
|
});
|
|
42478
42587
|
}, ie = (e) => {
|
|
42479
|
-
let n =
|
|
42588
|
+
let n = $k[e];
|
|
42480
42589
|
p({
|
|
42481
42590
|
open: !0,
|
|
42482
42591
|
typeKey: e
|
|
@@ -42491,7 +42600,7 @@ function Jk() {
|
|
|
42491
42600
|
})), t.resetFields();
|
|
42492
42601
|
}, P = async () => {
|
|
42493
42602
|
try {
|
|
42494
|
-
let n =
|
|
42603
|
+
let n = tA((await t.validateFields()).name), r = await zb({
|
|
42495
42604
|
name: n,
|
|
42496
42605
|
type: x.dbName
|
|
42497
42606
|
});
|
|
@@ -42509,7 +42618,7 @@ function Jk() {
|
|
|
42509
42618
|
align: "middle",
|
|
42510
42619
|
justify: "space-between",
|
|
42511
42620
|
className: "breadcrumb-action-wrapper",
|
|
42512
|
-
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items:
|
|
42621
|
+
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items: Zk }) }), /* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(R, {
|
|
42513
42622
|
type: "link",
|
|
42514
42623
|
onClick: () => b("/zinnext-home"),
|
|
42515
42624
|
children: "View Table"
|
|
@@ -42524,7 +42633,7 @@ function Jk() {
|
|
|
42524
42633
|
children: /* @__PURE__ */ Z(W, {
|
|
42525
42634
|
align: "center",
|
|
42526
42635
|
size: 10,
|
|
42527
|
-
children: [/* @__PURE__ */ X(Fi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(
|
|
42636
|
+
children: [/* @__PURE__ */ X(Fi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(Xk, {
|
|
42528
42637
|
strong: !0,
|
|
42529
42638
|
style: { fontSize: 16 },
|
|
42530
42639
|
children: "Add Test Case"
|
|
@@ -42540,16 +42649,16 @@ function Jk() {
|
|
|
42540
42649
|
className: "v1-required-mark",
|
|
42541
42650
|
children: " *"
|
|
42542
42651
|
})] }),
|
|
42543
|
-
initialValues:
|
|
42652
|
+
initialValues: Qk,
|
|
42544
42653
|
onFinish: te,
|
|
42545
42654
|
autoComplete: "off",
|
|
42546
42655
|
children: [/* @__PURE__ */ X(Kn, {
|
|
42547
42656
|
className: "v1-card",
|
|
42548
|
-
title: /* @__PURE__ */ X(
|
|
42657
|
+
title: /* @__PURE__ */ X(aA, {
|
|
42549
42658
|
icon: /* @__PURE__ */ X(fi, {}),
|
|
42550
42659
|
title: "Test Case Details"
|
|
42551
42660
|
}),
|
|
42552
|
-
extra: /* @__PURE__ */ X(
|
|
42661
|
+
extra: /* @__PURE__ */ X(Xk, {
|
|
42553
42662
|
type: "secondary",
|
|
42554
42663
|
className: "v1-card-subtitle",
|
|
42555
42664
|
children: "Module, flow, step order and execution data"
|
|
@@ -42626,8 +42735,8 @@ function Jk() {
|
|
|
42626
42735
|
disabled: O,
|
|
42627
42736
|
optionFilterProp: "label",
|
|
42628
42737
|
placeholder: "Select action",
|
|
42629
|
-
options:
|
|
42630
|
-
onChange: (t) => e.setFieldsValue({ keyword:
|
|
42738
|
+
options: Yk,
|
|
42739
|
+
onChange: (t) => e.setFieldsValue({ keyword: nA(t) })
|
|
42631
42740
|
})
|
|
42632
42741
|
})
|
|
42633
42742
|
}),
|
|
@@ -42747,7 +42856,7 @@ function Jk() {
|
|
|
42747
42856
|
maxLength: 100,
|
|
42748
42857
|
placeholder: `Enter ${x.label.toLowerCase()} name`,
|
|
42749
42858
|
onBlur: (e) => {
|
|
42750
|
-
t.setFieldsValue({ name:
|
|
42859
|
+
t.setFieldsValue({ name: tA(e.target.value) });
|
|
42751
42860
|
}
|
|
42752
42861
|
})
|
|
42753
42862
|
}), /* @__PURE__ */ X(B.Item, {
|
|
@@ -42764,23 +42873,23 @@ function Jk() {
|
|
|
42764
42873
|
}
|
|
42765
42874
|
//#endregion
|
|
42766
42875
|
//#region src/pages/TestingPage/ZinnextTestForm.jsx
|
|
42767
|
-
var { Text:
|
|
42876
|
+
var { Text: sA } = yr, cA = [{
|
|
42768
42877
|
label: "Home",
|
|
42769
42878
|
href: "/"
|
|
42770
42879
|
}, {
|
|
42771
42880
|
label: "Test Cases",
|
|
42772
42881
|
href: "/addTestCase"
|
|
42773
42882
|
}];
|
|
42774
|
-
function
|
|
42883
|
+
function lA(e = "") {
|
|
42775
42884
|
return String(e ?? "").trim();
|
|
42776
42885
|
}
|
|
42777
|
-
function
|
|
42886
|
+
function uA(e = [], t) {
|
|
42778
42887
|
return e.map((e) => ({
|
|
42779
42888
|
value: e.id,
|
|
42780
42889
|
label: e[t]
|
|
42781
42890
|
}));
|
|
42782
42891
|
}
|
|
42783
|
-
var
|
|
42892
|
+
var dA = [
|
|
42784
42893
|
{
|
|
42785
42894
|
label: "Step",
|
|
42786
42895
|
value: "step_order",
|
|
@@ -42819,22 +42928,22 @@ var $k = [
|
|
|
42819
42928
|
children: "Negative"
|
|
42820
42929
|
})
|
|
42821
42930
|
}
|
|
42822
|
-
],
|
|
42931
|
+
], fA = {
|
|
42823
42932
|
key: !1,
|
|
42824
42933
|
value: !1,
|
|
42825
42934
|
expected: !1
|
|
42826
42935
|
};
|
|
42827
|
-
function
|
|
42828
|
-
return t ? e[t] ??
|
|
42936
|
+
function pA(e, t) {
|
|
42937
|
+
return t ? e[t] ?? fA : fA;
|
|
42829
42938
|
}
|
|
42830
|
-
function
|
|
42939
|
+
function mA(e, t) {
|
|
42831
42940
|
e.setFields(t.map((e) => ({
|
|
42832
42941
|
name: e,
|
|
42833
42942
|
errors: []
|
|
42834
42943
|
})));
|
|
42835
42944
|
}
|
|
42836
|
-
function
|
|
42837
|
-
let [e] = B.useForm(), t = ba(), [n] = Sa(), r = n.get("edit"), i = !!r, a = I(() => _(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(
|
|
42945
|
+
function hA() {
|
|
42946
|
+
let [e] = B.useForm(), t = ba(), [n] = Sa(), r = n.get("edit"), i = !!r, a = I(() => _(), []), [o, s] = L([]), [c, l] = L([]), [u, d] = L([]), [f, p] = L(Yk), [m, h] = L({}), [g, v] = L(!1), [y, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), A = !!D, j = !!O, ee = I(() => pA(m, k), [m, k]), te = I(() => uA(o, "modulename"), [o]), ne = I(() => uA(c, "submodulename"), [c]), M = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), re = I(() => c.find((e) => e.id === O)?.submodulename ?? "", [O, c]), ie = zn(async () => {
|
|
42838
42947
|
try {
|
|
42839
42948
|
let e = await Bb();
|
|
42840
42949
|
Array.isArray(e?.options) && e.options.length > 0 && p(e.options), e?.rules && typeof e.rules == "object" && h(e.rules);
|
|
@@ -42975,10 +43084,10 @@ function rA() {
|
|
|
42975
43084
|
align: "middle",
|
|
42976
43085
|
justify: "space-between",
|
|
42977
43086
|
className: "breadcrumb-action-wrapper",
|
|
42978
|
-
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items:
|
|
43087
|
+
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items: cA }) }), /* @__PURE__ */ X(z, { children: /* @__PURE__ */ Z(W, {
|
|
42979
43088
|
size: 6,
|
|
42980
43089
|
className: "zt-section-title",
|
|
42981
|
-
children: [/* @__PURE__ */ X(Ii, {}), /* @__PURE__ */ X(
|
|
43090
|
+
children: [/* @__PURE__ */ X(Ii, {}), /* @__PURE__ */ X(sA, {
|
|
42982
43091
|
strong: !0,
|
|
42983
43092
|
children: a.name
|
|
42984
43093
|
})]
|
|
@@ -42999,11 +43108,11 @@ function rA() {
|
|
|
42999
43108
|
product_parent_ID: Number(a?.id),
|
|
43000
43109
|
module_parent_ID: Number(n.module),
|
|
43001
43110
|
submodule_parent_ID: Number(n.submodule),
|
|
43002
|
-
description:
|
|
43003
|
-
actions:
|
|
43004
|
-
key:
|
|
43005
|
-
value:
|
|
43006
|
-
expected:
|
|
43111
|
+
description: lA(n.description),
|
|
43112
|
+
actions: lA(n.actions),
|
|
43113
|
+
key: lA(n.key),
|
|
43114
|
+
value: lA(n.value),
|
|
43115
|
+
expected: lA(n.expected),
|
|
43007
43116
|
scenario: +!!n.scenario,
|
|
43008
43117
|
active: +!!n.active
|
|
43009
43118
|
};
|
|
@@ -43069,7 +43178,7 @@ function rA() {
|
|
|
43069
43178
|
key: void 0,
|
|
43070
43179
|
value: void 0,
|
|
43071
43180
|
expected: void 0
|
|
43072
|
-
}),
|
|
43181
|
+
}), mA(e, [
|
|
43073
43182
|
"actions",
|
|
43074
43183
|
"key",
|
|
43075
43184
|
"value",
|
|
@@ -43100,7 +43209,7 @@ function rA() {
|
|
|
43100
43209
|
key: void 0,
|
|
43101
43210
|
value: void 0,
|
|
43102
43211
|
expected: void 0
|
|
43103
|
-
}),
|
|
43212
|
+
}), mA(e, [
|
|
43104
43213
|
"actions",
|
|
43105
43214
|
"key",
|
|
43106
43215
|
"value",
|
|
@@ -43154,7 +43263,7 @@ function rA() {
|
|
|
43154
43263
|
/* @__PURE__ */ X("span", { children: "Step Details" })
|
|
43155
43264
|
]
|
|
43156
43265
|
}),
|
|
43157
|
-
extra: /* @__PURE__ */ Z(
|
|
43266
|
+
extra: /* @__PURE__ */ Z(sA, {
|
|
43158
43267
|
type: "secondary",
|
|
43159
43268
|
children: [
|
|
43160
43269
|
M,
|
|
@@ -43194,13 +43303,13 @@ function rA() {
|
|
|
43194
43303
|
placeholder: "Select action",
|
|
43195
43304
|
options: f,
|
|
43196
43305
|
onChange: (t) => {
|
|
43197
|
-
let n =
|
|
43306
|
+
let n = pA(m, t);
|
|
43198
43307
|
e.setFieldsValue({
|
|
43199
43308
|
actions: t,
|
|
43200
43309
|
key: n.key ? e.getFieldValue("key") : void 0,
|
|
43201
43310
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
43202
43311
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
43203
|
-
}),
|
|
43312
|
+
}), mA(e, [
|
|
43204
43313
|
"key",
|
|
43205
43314
|
"value",
|
|
43206
43315
|
"expected"
|
|
@@ -43309,7 +43418,7 @@ function rA() {
|
|
|
43309
43418
|
children: /* @__PURE__ */ X(Xg, {
|
|
43310
43419
|
listName: "Added Steps",
|
|
43311
43420
|
loading: x,
|
|
43312
|
-
fields:
|
|
43421
|
+
fields: dA,
|
|
43313
43422
|
dataSource: u,
|
|
43314
43423
|
current: 1,
|
|
43315
43424
|
pageSize: Math.max(u.length, 1),
|
|
@@ -43325,7 +43434,7 @@ function rA() {
|
|
|
43325
43434
|
}
|
|
43326
43435
|
//#endregion
|
|
43327
43436
|
//#region src/pages/TestingPage/ManageModules.jsx
|
|
43328
|
-
var { Text:
|
|
43437
|
+
var { Text: gA } = yr, _A = [
|
|
43329
43438
|
{
|
|
43330
43439
|
label: "Home",
|
|
43331
43440
|
href: "/"
|
|
@@ -43339,7 +43448,7 @@ var { Text: iA } = yr, aA = [
|
|
|
43339
43448
|
href: "/manageModules"
|
|
43340
43449
|
}
|
|
43341
43450
|
];
|
|
43342
|
-
function
|
|
43451
|
+
function vA() {
|
|
43343
43452
|
let e = ba(), t = I(() => _(), []), [n, r] = L([]), [i, a] = L({}), [o, s] = L(!1), [c, l] = L(!1), [u, d] = L(""), [f, p] = L(!1), [m, h] = L(1), [g, v] = L(10), y = zn(async (e) => {
|
|
43344
43453
|
if (!e) {
|
|
43345
43454
|
r([]);
|
|
@@ -43407,7 +43516,7 @@ function oA() {
|
|
|
43407
43516
|
align: "middle",
|
|
43408
43517
|
justify: "space-between",
|
|
43409
43518
|
className: "breadcrumb-action-wrapper",
|
|
43410
|
-
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items:
|
|
43519
|
+
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items: _A }) }), /* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(R, {
|
|
43411
43520
|
type: "link",
|
|
43412
43521
|
onClick: () => e("/addTestCase"),
|
|
43413
43522
|
children: "Back to Form"
|
|
@@ -43427,7 +43536,7 @@ function oA() {
|
|
|
43427
43536
|
children: [
|
|
43428
43537
|
/* @__PURE__ */ X(Ii, {}),
|
|
43429
43538
|
/* @__PURE__ */ X("span", { children: "Project:" }),
|
|
43430
|
-
/* @__PURE__ */ X(
|
|
43539
|
+
/* @__PURE__ */ X(gA, {
|
|
43431
43540
|
strong: !0,
|
|
43432
43541
|
children: t.name
|
|
43433
43542
|
})
|
|
@@ -43503,7 +43612,7 @@ function oA() {
|
|
|
43503
43612
|
children: /* @__PURE__ */ Z(W, {
|
|
43504
43613
|
direction: "vertical",
|
|
43505
43614
|
className: "zt-modal-stack",
|
|
43506
|
-
children: [/* @__PURE__ */ Z(
|
|
43615
|
+
children: [/* @__PURE__ */ Z(gA, {
|
|
43507
43616
|
type: "secondary",
|
|
43508
43617
|
children: ["Project: ", /* @__PURE__ */ X("b", { children: t.name })]
|
|
43509
43618
|
}), /* @__PURE__ */ X(V, {
|
|
@@ -43520,7 +43629,7 @@ function oA() {
|
|
|
43520
43629
|
}
|
|
43521
43630
|
//#endregion
|
|
43522
43631
|
//#region src/pages/TestingPage/ManageSubmodules.jsx
|
|
43523
|
-
var { Text:
|
|
43632
|
+
var { Text: yA } = yr, bA = [
|
|
43524
43633
|
{
|
|
43525
43634
|
label: "Home",
|
|
43526
43635
|
href: "/"
|
|
@@ -43538,7 +43647,7 @@ var { Text: sA } = yr, cA = [
|
|
|
43538
43647
|
href: "/test-cases/zinnext/submodules"
|
|
43539
43648
|
}
|
|
43540
43649
|
];
|
|
43541
|
-
function
|
|
43650
|
+
function xA() {
|
|
43542
43651
|
let e = ba(), [t] = Sa(), n = I(() => _(), []), r = t.get("module") ?? "", [i, a] = L([]), [o, s] = L(!1), [c, l] = L(!1), [u, d] = L(""), [f, p] = L(!1), [m, h] = L(1), [g, v] = L(10), y = zn(async (e, t) => {
|
|
43543
43652
|
if (!e || !t) {
|
|
43544
43653
|
a([]);
|
|
@@ -43607,7 +43716,7 @@ function lA() {
|
|
|
43607
43716
|
align: "middle",
|
|
43608
43717
|
justify: "space-between",
|
|
43609
43718
|
className: "breadcrumb-action-wrapper",
|
|
43610
|
-
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items:
|
|
43719
|
+
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items: bA }) }), /* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(R, {
|
|
43611
43720
|
type: "link",
|
|
43612
43721
|
onClick: () => e("/manageModules"),
|
|
43613
43722
|
children: "Back to Modules"
|
|
@@ -43630,7 +43739,7 @@ function lA() {
|
|
|
43630
43739
|
children: [
|
|
43631
43740
|
/* @__PURE__ */ X(Ii, {}),
|
|
43632
43741
|
/* @__PURE__ */ X("span", { children: "Project:" }),
|
|
43633
|
-
/* @__PURE__ */ X(
|
|
43742
|
+
/* @__PURE__ */ X(yA, {
|
|
43634
43743
|
strong: !0,
|
|
43635
43744
|
children: n.name
|
|
43636
43745
|
})
|
|
@@ -43640,7 +43749,7 @@ function lA() {
|
|
|
43640
43749
|
children: [
|
|
43641
43750
|
/* @__PURE__ */ X(Tr, {}),
|
|
43642
43751
|
/* @__PURE__ */ X("span", { children: "Module:" }),
|
|
43643
|
-
/* @__PURE__ */ X(
|
|
43752
|
+
/* @__PURE__ */ X(yA, {
|
|
43644
43753
|
strong: !0,
|
|
43645
43754
|
children: r
|
|
43646
43755
|
})
|
|
@@ -43703,7 +43812,7 @@ function lA() {
|
|
|
43703
43812
|
children: /* @__PURE__ */ Z(W, {
|
|
43704
43813
|
direction: "vertical",
|
|
43705
43814
|
className: "zt-modal-stack",
|
|
43706
|
-
children: [/* @__PURE__ */ Z(
|
|
43815
|
+
children: [/* @__PURE__ */ Z(yA, {
|
|
43707
43816
|
type: "secondary",
|
|
43708
43817
|
children: [
|
|
43709
43818
|
"Project: ",
|
|
@@ -43725,7 +43834,7 @@ function lA() {
|
|
|
43725
43834
|
}
|
|
43726
43835
|
//#endregion
|
|
43727
43836
|
//#region src/pages/TestingPage/ZinnextTableView.jsx
|
|
43728
|
-
var { Text:
|
|
43837
|
+
var { Text: SA } = yr, CA = [
|
|
43729
43838
|
{
|
|
43730
43839
|
label: "Home",
|
|
43731
43840
|
href: "/"
|
|
@@ -43739,7 +43848,7 @@ var { Text: uA } = yr, dA = [
|
|
|
43739
43848
|
href: "/viewTestCase"
|
|
43740
43849
|
}
|
|
43741
43850
|
];
|
|
43742
|
-
function
|
|
43851
|
+
function wA() {
|
|
43743
43852
|
let e = ba(), [t, n] = L([]), [r, i] = L(0), [a, o] = L(!1), s = I(() => _(), []), [c, l] = L(""), [u, d] = L(1), [f, p] = L(20), [m, h] = L(null), g = zn(async (e = {}) => {
|
|
43744
43853
|
o(!0);
|
|
43745
43854
|
try {
|
|
@@ -43799,7 +43908,7 @@ function fA() {
|
|
|
43799
43908
|
align: "middle",
|
|
43800
43909
|
justify: "space-between",
|
|
43801
43910
|
className: "breadcrumb-action-wrapper",
|
|
43802
|
-
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items:
|
|
43911
|
+
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items: CA }) }), /* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(R, {
|
|
43803
43912
|
type: "link",
|
|
43804
43913
|
onClick: () => e("/addTestCase"),
|
|
43805
43914
|
children: "Back to Form"
|
|
@@ -43813,7 +43922,7 @@ function fA() {
|
|
|
43813
43922
|
className: "zt-section-title",
|
|
43814
43923
|
children: [/* @__PURE__ */ X($i, {}), /* @__PURE__ */ X("span", { children: "Test Flows" })]
|
|
43815
43924
|
}),
|
|
43816
|
-
extra: /* @__PURE__ */ Z(
|
|
43925
|
+
extra: /* @__PURE__ */ Z(SA, {
|
|
43817
43926
|
type: "secondary",
|
|
43818
43927
|
children: [r, " row(s)"]
|
|
43819
43928
|
}),
|
|
@@ -43967,17 +44076,17 @@ function fA() {
|
|
|
43967
44076
|
}
|
|
43968
44077
|
//#endregion
|
|
43969
44078
|
//#region src/pages/TestingPage/testHomePage.jsx
|
|
43970
|
-
var
|
|
44079
|
+
var TA = [{
|
|
43971
44080
|
label: "Home",
|
|
43972
44081
|
href: "/"
|
|
43973
44082
|
}, {
|
|
43974
44083
|
label: "Test Cases",
|
|
43975
44084
|
href: "/test-cases"
|
|
43976
44085
|
}];
|
|
43977
|
-
function
|
|
44086
|
+
function EA() {
|
|
43978
44087
|
return /* @__PURE__ */ Z("main", {
|
|
43979
44088
|
className: "jobs-list-page",
|
|
43980
|
-
children: [/* @__PURE__ */ X(hn, { items:
|
|
44089
|
+
children: [/* @__PURE__ */ X(hn, { items: TA }), /* @__PURE__ */ X($d, {
|
|
43981
44090
|
moduleName: "test-flows",
|
|
43982
44091
|
rowKey: "id"
|
|
43983
44092
|
})]
|
|
@@ -43985,85 +44094,85 @@ function mA() {
|
|
|
43985
44094
|
}
|
|
43986
44095
|
//#endregion
|
|
43987
44096
|
//#region src/pages/TestingPage/lms-test-form.jsx
|
|
43988
|
-
var { Text:
|
|
44097
|
+
var { Text: DA } = yr, OA = [{
|
|
43989
44098
|
label: "Home",
|
|
43990
44099
|
href: "/"
|
|
43991
44100
|
}, {
|
|
43992
44101
|
label: "LMS Cases",
|
|
43993
44102
|
href: "/lms-cases"
|
|
43994
|
-
}],
|
|
44103
|
+
}], kA = {
|
|
43995
44104
|
tags: "regression",
|
|
43996
44105
|
active: 1
|
|
43997
|
-
},
|
|
44106
|
+
}, AA = { module: {
|
|
43998
44107
|
dbName: "Modules",
|
|
43999
44108
|
formField: "module",
|
|
44000
44109
|
label: "Module"
|
|
44001
|
-
} },
|
|
44110
|
+
} }, jA = {
|
|
44002
44111
|
key: !1,
|
|
44003
44112
|
value: !1,
|
|
44004
44113
|
expected: !1
|
|
44005
44114
|
};
|
|
44006
|
-
function
|
|
44007
|
-
return t ? e[t] ??
|
|
44115
|
+
function MA(e, t) {
|
|
44116
|
+
return t ? e[t] ?? jA : jA;
|
|
44008
44117
|
}
|
|
44009
|
-
function
|
|
44118
|
+
function NA(e, t) {
|
|
44010
44119
|
e.setFields(t.map((e) => ({
|
|
44011
44120
|
name: e,
|
|
44012
44121
|
errors: []
|
|
44013
44122
|
})));
|
|
44014
44123
|
}
|
|
44015
|
-
function
|
|
44124
|
+
function PA(e = []) {
|
|
44016
44125
|
return e.map((e) => ({
|
|
44017
44126
|
value: e,
|
|
44018
44127
|
label: e
|
|
44019
44128
|
}));
|
|
44020
44129
|
}
|
|
44021
|
-
function
|
|
44130
|
+
function FA(e = "") {
|
|
44022
44131
|
return String(e ?? "").trim();
|
|
44023
44132
|
}
|
|
44024
|
-
function
|
|
44133
|
+
function IA(e = []) {
|
|
44025
44134
|
let t = /* @__PURE__ */ new Map();
|
|
44026
44135
|
return e.forEach((e) => {
|
|
44027
|
-
let n =
|
|
44136
|
+
let n = FA(e?.flow), r = n.toLowerCase();
|
|
44028
44137
|
n && !t.has(r) && t.set(r, n);
|
|
44029
44138
|
}), Array.from(t.values()).map((e) => ({
|
|
44030
44139
|
value: e,
|
|
44031
44140
|
label: e
|
|
44032
44141
|
}));
|
|
44033
44142
|
}
|
|
44034
|
-
function
|
|
44035
|
-
let r =
|
|
44143
|
+
function LA(e = [], t, n) {
|
|
44144
|
+
let r = FA(t).toLowerCase(), i = FA(n).toLowerCase();
|
|
44036
44145
|
return e.reduce((e, t) => {
|
|
44037
|
-
let n =
|
|
44146
|
+
let n = FA(t?.module).toLowerCase(), a = FA(t?.flow).toLowerCase();
|
|
44038
44147
|
if (n !== r || a !== i) return e;
|
|
44039
44148
|
let o = Number(t?.step_order) || 0;
|
|
44040
44149
|
return Math.max(e, o);
|
|
44041
44150
|
}, 0) + 1;
|
|
44042
44151
|
}
|
|
44043
|
-
function
|
|
44152
|
+
function RA({ icon: e, title: t }) {
|
|
44044
44153
|
return /* @__PURE__ */ Z(W, {
|
|
44045
44154
|
size: 10,
|
|
44046
44155
|
align: "center",
|
|
44047
44156
|
children: [/* @__PURE__ */ X("div", {
|
|
44048
44157
|
className: "v1-section-icon-box",
|
|
44049
44158
|
children: e
|
|
44050
|
-
}), /* @__PURE__ */ X(
|
|
44159
|
+
}), /* @__PURE__ */ X(DA, {
|
|
44051
44160
|
strong: !0,
|
|
44052
44161
|
className: "v1-section-label",
|
|
44053
44162
|
children: t
|
|
44054
44163
|
})]
|
|
44055
44164
|
});
|
|
44056
44165
|
}
|
|
44057
|
-
function
|
|
44058
|
-
let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(
|
|
44166
|
+
function zA() {
|
|
44167
|
+
let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(Yk), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
|
|
44059
44168
|
open: !1,
|
|
44060
44169
|
typeKey: "module"
|
|
44061
|
-
}), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ba(), T =
|
|
44170
|
+
}), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ba(), T = AA[g.typeKey], E = I(() => PA(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!FA(D), j = !!FA(O), ee = !A, te = !A || !j, ne = I(() => MA(u, k), [u, k]), M = (e, t = []) => {
|
|
44062
44171
|
e === "module" && r(t);
|
|
44063
44172
|
}, re = async () => {
|
|
44064
44173
|
p(!0);
|
|
44065
44174
|
try {
|
|
44066
|
-
r((await Rb(
|
|
44175
|
+
r((await Rb(AA.module.dbName))?.items ?? []);
|
|
44067
44176
|
} catch (e) {
|
|
44068
44177
|
console.error("Unable to load testing options:", e), J.error("Unable to load testing options.");
|
|
44069
44178
|
} finally {
|
|
@@ -44077,7 +44186,7 @@ function DA() {
|
|
|
44077
44186
|
console.error("Unable to load action field rules:", e), J.error("Unable to load action validation rules.");
|
|
44078
44187
|
}
|
|
44079
44188
|
}, N = zn(async (t) => {
|
|
44080
|
-
let n =
|
|
44189
|
+
let n = FA(t);
|
|
44081
44190
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
44082
44191
|
h(!0);
|
|
44083
44192
|
try {
|
|
@@ -44086,7 +44195,7 @@ function DA() {
|
|
|
44086
44195
|
offset: 0,
|
|
44087
44196
|
module: n
|
|
44088
44197
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
44089
|
-
a(t), s(
|
|
44198
|
+
a(t), s(IA(t));
|
|
44090
44199
|
} catch (e) {
|
|
44091
44200
|
console.error("Unable to load flows:", e), J.error("Unable to load flows.");
|
|
44092
44201
|
} finally {
|
|
@@ -44094,14 +44203,14 @@ function DA() {
|
|
|
44094
44203
|
}
|
|
44095
44204
|
}
|
|
44096
44205
|
}, [e]), P = zn(async (t, n, r) => {
|
|
44097
|
-
let i =
|
|
44206
|
+
let i = FA(t), a = FA(n);
|
|
44098
44207
|
if (!i || !a) {
|
|
44099
44208
|
e.setFieldsValue({ step_order: void 0 });
|
|
44100
44209
|
return;
|
|
44101
44210
|
}
|
|
44102
44211
|
x(!0);
|
|
44103
44212
|
try {
|
|
44104
|
-
e.setFieldsValue({ step_order:
|
|
44213
|
+
e.setFieldsValue({ step_order: LA(r, i, a) });
|
|
44105
44214
|
} catch (e) {
|
|
44106
44215
|
console.error("Unable to load step order:", e), J.error("Unable to load step order.");
|
|
44107
44216
|
} finally {
|
|
@@ -44124,15 +44233,15 @@ function DA() {
|
|
|
44124
44233
|
]);
|
|
44125
44234
|
let ae = async (t) => {
|
|
44126
44235
|
let n = {
|
|
44127
|
-
module:
|
|
44128
|
-
flow:
|
|
44236
|
+
module: FA(t.module),
|
|
44237
|
+
flow: FA(t.flow),
|
|
44129
44238
|
step_order: Number(t.step_order),
|
|
44130
|
-
description:
|
|
44131
|
-
keyword:
|
|
44132
|
-
target:
|
|
44133
|
-
value:
|
|
44134
|
-
expected:
|
|
44135
|
-
tags: t.tags ?
|
|
44239
|
+
description: FA(t.description),
|
|
44240
|
+
keyword: FA(t.keyword),
|
|
44241
|
+
target: FA(t.target),
|
|
44242
|
+
value: FA(t.value),
|
|
44243
|
+
expected: FA(t.expected),
|
|
44244
|
+
tags: t.tags ? FA(t.tags) : kA.tags,
|
|
44136
44245
|
active: Number(t.active)
|
|
44137
44246
|
};
|
|
44138
44247
|
C(!0);
|
|
@@ -44144,19 +44253,19 @@ function DA() {
|
|
|
44144
44253
|
C(!1);
|
|
44145
44254
|
}
|
|
44146
44255
|
}, oe = (t, n) => {
|
|
44147
|
-
e.setFieldsValue({ [t]:
|
|
44256
|
+
e.setFieldsValue({ [t]: FA(n) });
|
|
44148
44257
|
}, se = (t) => {
|
|
44149
44258
|
e.setFieldsValue({
|
|
44150
|
-
module:
|
|
44259
|
+
module: FA(t),
|
|
44151
44260
|
flow: void 0,
|
|
44152
44261
|
step_order: void 0,
|
|
44153
44262
|
keyword: void 0,
|
|
44154
44263
|
description: void 0,
|
|
44155
44264
|
target: void 0,
|
|
44156
|
-
tags:
|
|
44265
|
+
tags: kA.tags,
|
|
44157
44266
|
value: void 0,
|
|
44158
44267
|
expected: void 0
|
|
44159
|
-
}),
|
|
44268
|
+
}), NA(e, [
|
|
44160
44269
|
"keyword",
|
|
44161
44270
|
"target",
|
|
44162
44271
|
"value",
|
|
@@ -44164,32 +44273,32 @@ function DA() {
|
|
|
44164
44273
|
]);
|
|
44165
44274
|
}, ce = (t) => {
|
|
44166
44275
|
e.setFieldsValue({
|
|
44167
|
-
flow:
|
|
44276
|
+
flow: FA(t),
|
|
44168
44277
|
step_order: void 0,
|
|
44169
44278
|
keyword: void 0,
|
|
44170
44279
|
target: void 0,
|
|
44171
44280
|
value: void 0,
|
|
44172
44281
|
expected: void 0
|
|
44173
|
-
}),
|
|
44282
|
+
}), NA(e, [
|
|
44174
44283
|
"keyword",
|
|
44175
44284
|
"target",
|
|
44176
44285
|
"value",
|
|
44177
44286
|
"expected"
|
|
44178
44287
|
]);
|
|
44179
44288
|
}, le = (t) => {
|
|
44180
|
-
let n =
|
|
44289
|
+
let n = MA(u, t);
|
|
44181
44290
|
e.setFieldsValue({
|
|
44182
|
-
keyword:
|
|
44291
|
+
keyword: FA(t),
|
|
44183
44292
|
target: n.key ? e.getFieldValue("target") : void 0,
|
|
44184
44293
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
44185
44294
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
44186
|
-
}),
|
|
44295
|
+
}), NA(e, [
|
|
44187
44296
|
"target",
|
|
44188
44297
|
"value",
|
|
44189
44298
|
"expected"
|
|
44190
44299
|
]);
|
|
44191
44300
|
}, ue = (e) => {
|
|
44192
|
-
let n =
|
|
44301
|
+
let n = AA[e];
|
|
44193
44302
|
_({
|
|
44194
44303
|
open: !0,
|
|
44195
44304
|
typeKey: e
|
|
@@ -44204,7 +44313,7 @@ function DA() {
|
|
|
44204
44313
|
})), t.resetFields();
|
|
44205
44314
|
}, fe = async () => {
|
|
44206
44315
|
try {
|
|
44207
|
-
let n =
|
|
44316
|
+
let n = FA((await t.validateFields()).name), r = await zb({
|
|
44208
44317
|
name: n,
|
|
44209
44318
|
type: T.dbName
|
|
44210
44319
|
});
|
|
@@ -44222,7 +44331,7 @@ function DA() {
|
|
|
44222
44331
|
align: "middle",
|
|
44223
44332
|
justify: "space-between",
|
|
44224
44333
|
className: "breadcrumb-action-wrapper",
|
|
44225
|
-
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items:
|
|
44334
|
+
children: [/* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(hn, { items: OA }) }), /* @__PURE__ */ X(z, { children: /* @__PURE__ */ X(R, {
|
|
44226
44335
|
type: "link",
|
|
44227
44336
|
onClick: () => w("/lms-home"),
|
|
44228
44337
|
children: "View Table"
|
|
@@ -44237,7 +44346,7 @@ function DA() {
|
|
|
44237
44346
|
children: /* @__PURE__ */ Z(W, {
|
|
44238
44347
|
align: "center",
|
|
44239
44348
|
size: 10,
|
|
44240
|
-
children: [/* @__PURE__ */ X(Fi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(
|
|
44349
|
+
children: [/* @__PURE__ */ X(Fi, { className: "v1-outer-icon" }), /* @__PURE__ */ X("div", { children: /* @__PURE__ */ X(DA, {
|
|
44241
44350
|
strong: !0,
|
|
44242
44351
|
style: { fontSize: 16 },
|
|
44243
44352
|
children: "Add LMS Case"
|
|
@@ -44253,16 +44362,16 @@ function DA() {
|
|
|
44253
44362
|
className: "v1-required-mark",
|
|
44254
44363
|
children: " *"
|
|
44255
44364
|
})] }),
|
|
44256
|
-
initialValues:
|
|
44365
|
+
initialValues: kA,
|
|
44257
44366
|
onFinish: ae,
|
|
44258
44367
|
autoComplete: "off",
|
|
44259
44368
|
children: [/* @__PURE__ */ X(Kn, {
|
|
44260
44369
|
className: "v1-card",
|
|
44261
|
-
title: /* @__PURE__ */ X(
|
|
44370
|
+
title: /* @__PURE__ */ X(RA, {
|
|
44262
44371
|
icon: /* @__PURE__ */ X(fi, {}),
|
|
44263
44372
|
title: "LMS Case Details"
|
|
44264
44373
|
}),
|
|
44265
|
-
extra: /* @__PURE__ */ X(
|
|
44374
|
+
extra: /* @__PURE__ */ X(DA, {
|
|
44266
44375
|
type: "secondary",
|
|
44267
44376
|
className: "v1-card-subtitle",
|
|
44268
44377
|
children: "Module, flow, step order and execution data"
|
|
@@ -44472,7 +44581,7 @@ function DA() {
|
|
|
44472
44581
|
maxLength: 100,
|
|
44473
44582
|
placeholder: `Enter ${T.label.toLowerCase()} name`,
|
|
44474
44583
|
onBlur: (e) => {
|
|
44475
|
-
t.setFieldsValue({ name:
|
|
44584
|
+
t.setFieldsValue({ name: FA(e.target.value) });
|
|
44476
44585
|
}
|
|
44477
44586
|
})
|
|
44478
44587
|
}), /* @__PURE__ */ X(B.Item, {
|
|
@@ -44489,82 +44598,25 @@ function DA() {
|
|
|
44489
44598
|
}
|
|
44490
44599
|
//#endregion
|
|
44491
44600
|
//#region src/pages/TestingPage/lmsHomePage.jsx
|
|
44492
|
-
var
|
|
44601
|
+
var BA = [{
|
|
44493
44602
|
label: "Home",
|
|
44494
44603
|
href: "/"
|
|
44495
44604
|
}, {
|
|
44496
44605
|
label: "LMS Cases",
|
|
44497
44606
|
href: "/lms-cases"
|
|
44498
44607
|
}];
|
|
44499
|
-
function
|
|
44608
|
+
function VA() {
|
|
44500
44609
|
return /* @__PURE__ */ Z("main", {
|
|
44501
44610
|
className: "jobs-list-page",
|
|
44502
|
-
children: [/* @__PURE__ */ X(hn, { items:
|
|
44611
|
+
children: [/* @__PURE__ */ X(hn, { items: BA }), /* @__PURE__ */ X($d, {
|
|
44503
44612
|
moduleName: "lms-flows",
|
|
44504
44613
|
rowKey: "id"
|
|
44505
44614
|
})]
|
|
44506
44615
|
});
|
|
44507
44616
|
}
|
|
44508
44617
|
//#endregion
|
|
44509
|
-
//#region src/services/workflowApi.js
|
|
44510
|
-
var AA = (e) => e?.data ?? e;
|
|
44511
|
-
function jA(e) {
|
|
44512
|
-
return Array.isArray(e) && e.every((e) => e && typeof e == "object" && "Key" in e) ? e.reduce((e, { Key: t, Value: n }) => (e[t] = n, e), {}) : e;
|
|
44513
|
-
}
|
|
44514
|
-
function MA(e) {
|
|
44515
|
-
return e ? Array.isArray(e.data) ? e.data.map(jA) : e.stage && Array.isArray(e.stage.data) ? e.stage.data.map(jA) : Array.isArray(e) ? e.map(jA) : [] : [];
|
|
44516
|
-
}
|
|
44517
|
-
async function NA(e = 1, t = 10) {
|
|
44518
|
-
let n = await u(b, `/workflow/list/all?page=${e}&limit=${t}`), r = AA(n), i = Array.isArray(r) ? r : r?.data ?? [];
|
|
44519
|
-
return {
|
|
44520
|
-
items: i,
|
|
44521
|
-
total: Number(n?.total ?? r?.total) || i.length,
|
|
44522
|
-
page: e,
|
|
44523
|
-
limit: t
|
|
44524
|
-
};
|
|
44525
|
-
}
|
|
44526
|
-
async function PA(e = 100) {
|
|
44527
|
-
let t = await NA(1, e), n = [...t.items], r = t.total, i = 2;
|
|
44528
|
-
for (; n.length < r;) {
|
|
44529
|
-
let t = await NA(i, e);
|
|
44530
|
-
if (!t.items.length) break;
|
|
44531
|
-
n.push(...t.items), i += 1;
|
|
44532
|
-
}
|
|
44533
|
-
return {
|
|
44534
|
-
items: n,
|
|
44535
|
-
total: Math.max(r, n.length)
|
|
44536
|
-
};
|
|
44537
|
-
}
|
|
44538
|
-
async function FA(e, t) {
|
|
44539
|
-
let n = AA(await u(b, `/workflow/${e}/stage/${t}`));
|
|
44540
|
-
return Array.isArray(n) ? { data: n } : n;
|
|
44541
|
-
}
|
|
44542
|
-
async function IA(e, t) {
|
|
44543
|
-
if (!e || !t) return null;
|
|
44544
|
-
try {
|
|
44545
|
-
let n = AA(await u(b, `/module-data-list?${new URLSearchParams({
|
|
44546
|
-
module: e,
|
|
44547
|
-
limit: "1",
|
|
44548
|
-
offset: "0",
|
|
44549
|
-
scope: "allJobs",
|
|
44550
|
-
filters: JSON.stringify([{
|
|
44551
|
-
field: "_id",
|
|
44552
|
-
op: "in",
|
|
44553
|
-
values: [String(t)],
|
|
44554
|
-
operator: "and"
|
|
44555
|
-
}])
|
|
44556
|
-
})}`));
|
|
44557
|
-
if (Array.isArray(n)) return n[0] ?? null;
|
|
44558
|
-
if (n?.data && Array.isArray(n.data)) return n.data[0] ?? null;
|
|
44559
|
-
let r = n?.rows ?? n?.records ?? n?.items ?? n?.list;
|
|
44560
|
-
return Array.isArray(r) ? r[0] ?? null : n ?? null;
|
|
44561
|
-
} catch (n) {
|
|
44562
|
-
return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
|
|
44563
|
-
}
|
|
44564
|
-
}
|
|
44565
|
-
//#endregion
|
|
44566
44618
|
//#region src/services/mergedListApi.js
|
|
44567
|
-
var
|
|
44619
|
+
var HA = [
|
|
44568
44620
|
"referenceId",
|
|
44569
44621
|
"ReferenceId",
|
|
44570
44622
|
"candidateId",
|
|
@@ -44575,7 +44627,7 @@ var LA = [
|
|
|
44575
44627
|
"Id",
|
|
44576
44628
|
"_id"
|
|
44577
44629
|
];
|
|
44578
|
-
function
|
|
44630
|
+
function UA(e = HA) {
|
|
44579
44631
|
return function(t) {
|
|
44580
44632
|
if (!t || typeof t != "object") return "";
|
|
44581
44633
|
for (let n of e) {
|
|
@@ -44585,7 +44637,7 @@ function RA(e = LA) {
|
|
|
44585
44637
|
return "";
|
|
44586
44638
|
};
|
|
44587
44639
|
}
|
|
44588
|
-
function
|
|
44640
|
+
function WA(e, t = HA) {
|
|
44589
44641
|
if (!e || typeof e != "object") return [];
|
|
44590
44642
|
let n = [];
|
|
44591
44643
|
for (let r of t) {
|
|
@@ -44594,18 +44646,18 @@ function zA(e, t = LA) {
|
|
|
44594
44646
|
}
|
|
44595
44647
|
return n;
|
|
44596
44648
|
}
|
|
44597
|
-
var
|
|
44598
|
-
function
|
|
44599
|
-
return typeof e == "function" ? e : typeof e == "string" ?
|
|
44649
|
+
var GA = UA();
|
|
44650
|
+
function KA(e) {
|
|
44651
|
+
return typeof e == "function" ? e : typeof e == "string" ? UA([e]) : Array.isArray(e) ? UA(e) : GA;
|
|
44600
44652
|
}
|
|
44601
|
-
function
|
|
44653
|
+
function qA(e, t, n) {
|
|
44602
44654
|
return !t || typeof t != "object" ? e : {
|
|
44603
44655
|
...t,
|
|
44604
44656
|
...e,
|
|
44605
44657
|
id: t.id ?? e.id ?? n
|
|
44606
44658
|
};
|
|
44607
44659
|
}
|
|
44608
|
-
function
|
|
44660
|
+
function JA(e, t, n = {}) {
|
|
44609
44661
|
return {
|
|
44610
44662
|
status: "success",
|
|
44611
44663
|
total: t,
|
|
@@ -44615,7 +44667,7 @@ function UA(e, t, n = {}) {
|
|
|
44615
44667
|
}
|
|
44616
44668
|
};
|
|
44617
44669
|
}
|
|
44618
|
-
var
|
|
44670
|
+
var YA = [
|
|
44619
44671
|
"fields",
|
|
44620
44672
|
"fieldConfig",
|
|
44621
44673
|
"tabs",
|
|
@@ -44624,17 +44676,17 @@ var WA = [
|
|
|
44624
44676
|
"actions",
|
|
44625
44677
|
"columnActions"
|
|
44626
44678
|
];
|
|
44627
|
-
function
|
|
44679
|
+
function XA(e) {
|
|
44628
44680
|
let t = e?.data ?? e, n = {};
|
|
44629
|
-
for (let r of
|
|
44681
|
+
for (let r of YA) {
|
|
44630
44682
|
let i = e?.[r] ?? t?.[r];
|
|
44631
44683
|
i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
|
|
44632
44684
|
}
|
|
44633
44685
|
return n;
|
|
44634
44686
|
}
|
|
44635
|
-
var
|
|
44636
|
-
function
|
|
44637
|
-
let r = (Array.isArray(n) ? n : [n]).map(
|
|
44687
|
+
var ZA = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
|
|
44688
|
+
function QA(e, t, n) {
|
|
44689
|
+
let r = (Array.isArray(n) ? n : [n]).map(ZA).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(ZA(e?.value)) || r.includes(ZA(e?.label))) : -1;
|
|
44638
44690
|
if (i === -1) return [...e, ...t];
|
|
44639
44691
|
let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
|
|
44640
44692
|
...e,
|
|
@@ -44646,18 +44698,18 @@ function qA(e, t, n) {
|
|
|
44646
44698
|
...e.slice(i + 1)
|
|
44647
44699
|
];
|
|
44648
44700
|
}
|
|
44649
|
-
var
|
|
44701
|
+
var $A = (e, t) => Fl(e, t).rows, ej = (e, t) => {
|
|
44650
44702
|
let { rows: n, total: r } = Fl(e, t);
|
|
44651
44703
|
return {
|
|
44652
44704
|
rows: n,
|
|
44653
44705
|
total: r
|
|
44654
44706
|
};
|
|
44655
44707
|
};
|
|
44656
|
-
function
|
|
44657
|
-
let m =
|
|
44708
|
+
function tj({ fetchPrimaryPage: e, extractPrimaryPage: t = ej, fetchSecondaryByKeys: n, fetchPrimary: r, extractPrimaryRows: i = $A, fetchSecondary: a, extractSecondaryRows: o = $A, fetchSecondaryById: s, primaryKey: c, secondaryKey: l, mergeRow: u = qA, secondaryFetchLimit: d = 200, extraFields: f = [], extraFieldsAfter: p }) {
|
|
44709
|
+
let m = KA(c), h = typeof l == "function" ? (e) => {
|
|
44658
44710
|
let t = l(e);
|
|
44659
44711
|
return t ? [String(t)] : [];
|
|
44660
|
-
} : (e) =>
|
|
44712
|
+
} : (e) => WA(e, typeof l == "string" ? [l] : Array.isArray(l) ? l : HA), g = 0;
|
|
44661
44713
|
function _(e) {
|
|
44662
44714
|
let t = /* @__PURE__ */ new Map();
|
|
44663
44715
|
return e.forEach((e) => {
|
|
@@ -44683,10 +44735,10 @@ function XA({ fetchPrimaryPage: e, extractPrimaryPage: t = YA, fetchSecondaryByK
|
|
|
44683
44735
|
let r = {};
|
|
44684
44736
|
for (let e of n) {
|
|
44685
44737
|
if (!e) continue;
|
|
44686
|
-
let t =
|
|
44738
|
+
let t = XA(e);
|
|
44687
44739
|
for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
|
|
44688
44740
|
}
|
|
44689
|
-
return f.length && (r.fields =
|
|
44741
|
+
return f.length && (r.fields = QA(r.fields ?? [], f, p)), JA(e, t, r);
|
|
44690
44742
|
}
|
|
44691
44743
|
async function x(r, i, a, s, c) {
|
|
44692
44744
|
let l = await e(r, i, a, s), u = t(l, r) ?? {}, d = Array.isArray(u.rows) ? u.rows : [], f = Number.isFinite(Number(u.total)) ? Number(u.total) : d.length, p = [...new Set(d.map(m).filter(Boolean))], h = null, g = [];
|
|
@@ -44712,25 +44764,25 @@ function XA({ fetchPrimaryPage: e, extractPrimaryPage: t = YA, fetchSecondaryByK
|
|
|
44712
44764
|
}
|
|
44713
44765
|
//#endregion
|
|
44714
44766
|
//#region src/services/workflowModuleListApi.js
|
|
44715
|
-
function
|
|
44716
|
-
return
|
|
44717
|
-
fetchPrimary: () =>
|
|
44718
|
-
extractPrimaryRows:
|
|
44767
|
+
function nj(e, t, n = {}) {
|
|
44768
|
+
return tj({
|
|
44769
|
+
fetchPrimary: () => SD(e, t),
|
|
44770
|
+
extractPrimaryRows: yD,
|
|
44719
44771
|
fetchSecondary: hc,
|
|
44720
|
-
fetchSecondaryById:
|
|
44772
|
+
fetchSecondaryById: CD,
|
|
44721
44773
|
secondaryFetchLimit: n.moduleFetchLimit ?? 200
|
|
44722
44774
|
});
|
|
44723
44775
|
}
|
|
44724
|
-
function
|
|
44776
|
+
function rj(e) {
|
|
44725
44777
|
let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
|
|
44726
44778
|
return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
|
|
44727
44779
|
}
|
|
44728
|
-
function
|
|
44780
|
+
function ij(e) {
|
|
44729
44781
|
let t = Array.isArray(e?.stages) ? e.stages : [];
|
|
44730
44782
|
if (!t.length) return e;
|
|
44731
44783
|
let n = {};
|
|
44732
44784
|
for (let e of t) {
|
|
44733
|
-
let t =
|
|
44785
|
+
let t = rj(e?.stageName);
|
|
44734
44786
|
t && (n[t] = Number(e?.count) || 0);
|
|
44735
44787
|
}
|
|
44736
44788
|
return {
|
|
@@ -44738,25 +44790,25 @@ function $A(e) {
|
|
|
44738
44790
|
...e
|
|
44739
44791
|
};
|
|
44740
44792
|
}
|
|
44741
|
-
var
|
|
44793
|
+
var aj = (e) => {
|
|
44742
44794
|
let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
|
|
44743
44795
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
44744
44796
|
};
|
|
44745
|
-
function
|
|
44797
|
+
function oj({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
|
|
44746
44798
|
return function(n, r, i) {
|
|
44747
|
-
let a =
|
|
44799
|
+
let a = qA(n, r, i), o = aj(a);
|
|
44748
44800
|
return o != null && (console.log("mergeJobWorkflowRow", i, a?.[e], o), a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
|
|
44749
44801
|
};
|
|
44750
44802
|
}
|
|
44751
|
-
function
|
|
44752
|
-
let t =
|
|
44803
|
+
function sj(e = {}) {
|
|
44804
|
+
let t = oj(), n = tj({
|
|
44753
44805
|
primaryKey: "_id",
|
|
44754
44806
|
secondaryKey: "entityId",
|
|
44755
44807
|
extraFields: e.extraFields,
|
|
44756
44808
|
extraFieldsAfter: e.extraFieldsAfter,
|
|
44757
44809
|
fetchPrimaryPage: hc,
|
|
44758
|
-
fetchSecondaryByKeys: () =>
|
|
44759
|
-
extractSecondaryRows: (e) => (e?.items ?? []).map(
|
|
44810
|
+
fetchSecondaryByKeys: () => xD(),
|
|
44811
|
+
extractSecondaryRows: (e) => (e?.items ?? []).map(ij),
|
|
44760
44812
|
mergeRow: (e, n, r) => {
|
|
44761
44813
|
let i = t(e, n, r);
|
|
44762
44814
|
return n?._id && (i.workflowId = n._id), i;
|
|
@@ -44766,16 +44818,16 @@ function nj(e = {}) {
|
|
|
44766
44818
|
return await n(e, t, r, i);
|
|
44767
44819
|
};
|
|
44768
44820
|
}
|
|
44769
|
-
async function
|
|
44770
|
-
return Fl(await
|
|
44821
|
+
async function cj(e, t = 10, n = 0, r = {}, i = {}) {
|
|
44822
|
+
return Fl(await sj(i)(e, t, n, r), e);
|
|
44771
44823
|
}
|
|
44772
|
-
async function
|
|
44773
|
-
return Fl(await
|
|
44824
|
+
async function lj(e, t, n, r = 10, i = 0, a = {}) {
|
|
44825
|
+
return Fl(await nj(e, t)(n, r, i, a), n);
|
|
44774
44826
|
}
|
|
44775
44827
|
//#endregion
|
|
44776
44828
|
//#region src/index.js
|
|
44777
|
-
var
|
|
44829
|
+
var uj = PO, dj = cx(jk), fj = cx(Nk), pj = cx(Jk), mj = cx(oA), hj = cx(hA), gj = cx(vA), _j = cx(xA), vj = cx(wA), yj = cx(EA), bj = cx(zA), xj = cx(VA);
|
|
44778
44830
|
//#endregion
|
|
44779
|
-
export { l as ADMIN_API_URL, c as ADMIN_APP_ID, n as APP_ID, b as AUTH_URL, Np as ActivityTab,
|
|
44831
|
+
export { l as ADMIN_API_URL, c as ADMIN_APP_ID, n as APP_ID, b as AUTH_URL, Np as ActivityTab, _O as AddBatchCandidatePopup, _p as AddFormV1, PO as AdminDashboard, wT as AdminDashboardContent, uj as AdminPage, vp as AppAlert, cu as AppButton, jb as AppShell, Mv as ApprovalActionBar, Pp as AssigneeAvatars, kb as AuthGuard, g_ as BILLING_STATUS_FLOW, hn as Breadcrumb, pj as BulkUploadPage, C as CANDIDATES_URL, Xv as CONTRACT_C2C, Yv as CONTRACT_W2, Ua as CalendarCard, OT as CoreThemeAdminApp, DT as CoreThemeAdminRoutes, Po as CustomPagination, Ev as DayLogModal, qp as DescriptionBlock, kh as DetailHeaderCard, Ih as DetailViewPage, Pm as DetailViewV1, pe as DocumentViewer, Ps as DynamicCards, nD as DynamicPopup, bO as DynamicPopupRoute, qa as DynamicTabs, Og as EditFormV1, Wv as FINANCE_APPROVAL_CONFIG, Bv as FINANCE_TYPE_CFO, zv as FINANCE_TYPE_ONBOARDING_MANAGER, Hv as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, Rv as FINANCE_TYPE_SUBMISSION_MANAGER, Vv as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, Oy as FileListCard, xy as FinanceApprovalPanel, $_ as FinanceAvatar, rv as FinanceBadge, Pv as FinanceDayCell, lv as FinanceDetailHeader, U_ as FinanceDivider, ev as FinanceEmployeeCell, B_ as FinanceEmptyState, W_ as FinanceEquation, J_ as FinanceHistoryTimeline, z_ as FinanceHoursGrid, R_ as FinanceKpiRow, H_ as FinanceLine, X_ as FinanceListToolbar, iv as FinanceMarginBadge, nv as FinanceMoneyCell, sv as FinanceRecordsTable, av as FinanceRowChevron, V_ as FinanceSection, L_ as FinanceStatusPill, tv as FinanceTextCell, Iv as FinanceTimesheetAnalysis, G_ as FinanceWorkflowSteps, tb as Header, zs as HierarchyUserFilter, i as JOBS_URL, dj as LegacyAdminPage, $d as ListView, xj as LmsHomePage, bj as LmsTestForm, Mb as Login, IT as MailPopup, gj as ManageModules, _j as ManageSubmodules, Lg as ModuleRowActions, jv as NotesPanel, __ as PAYROLL_STATUS_FLOW, uO as POPUP_CONFIGS, Wg as ParamCardView, Xg as ParamListView, mE as PreviewPopup, sx as ProjectSelect, Av as ProofUploadPreview, kv as QuickLogBar, Dv as QuickLogSelectionBar, Ov as RejectionReasonModal, S as SUBMISSIONS_URL, Tb as Sidebar, Qg as StatusBadge, fv as StatusBadgeTag, fj as StickyNotesFullPage, e_ as StylishDynamicTabs, a_ as TemplateEditor, mj as TestForm, yj as TestingHomePage, Tp as TimelineGroups, xv as TimesheetDayCell, Xe as TipTapEditor, NO as UserForm, wO as VendorShareDrawer, su as ViewSummaryWidget, bE as WizardPopup, vj as ZinnextTableView, hj as ZinnextTestForm, xt as applyIntegrationStatus, vo as approveSubmission, j_ as buildCsv, T_ as buildDailyRows, yv as buildDayGradient, py as buildRateHistoryEntries, O_ as buildWeeklyRollup, p as clearSelectedProject, xe as colors, dy as computeFinance, k_ as computeMarginBand, t as configureCoreTheme, sj as createAllWorkflowsListFetcher, nj as createWorkflowStageListFetcher, Mn as deleteIntegrationConfig, w_ as deriveDayStats, F_ as downloadCsv, ay as findEmployerRow, iy as flattenGroups, my as formatFinanceMoney, c_ as formatHours, s_ as formatMoney, l_ as formatRate, _n as getActivity, cj as getAllWorkflowsModuleList, p_ as getApprovalDate, _e as getBgcIntegrationConfig, Te as getBgcIntegrationSummary, v_ as getBillingActionStates, m as getCurrentRoleName, N_ as getFieldLabel, Kv as getFinanceApprovalConfig, Ey as getFormGroupsRaw, Ze as getIntegrationConfig, rt as getIntegrationConfigs, de as getIntegrationSummary, No as getModuleConfig, dn as getModuleDataDetail, y_ as getPayrollActionStates, _ as getSelectedProject, a as getStoredToken, d as getStoredUser, y as getUserRoles, yo as getVMSApprove, P_ as getValueStyle, lj as getWorkflowStageModuleList, b_ as getWorkflowSteps, f_ as humanizeEvent, vf as i, M_ as indexFieldConfig, u_ as initialsOf, o as isTester, h as logout, Jv as marginIncludesReferral, uy as matchLocationTax, zh as n, sy as normalizeContract, Fp as r, bo as rejectSubmission, Ap as resolveActivityMeta, fy as resolveAndCompute, ly as resolveFinanceInputs, GA as resolveMergeKey, qv as resolveRejectionReason, Dy as resolveSubmissionFinance, Ot as saveBgcIntegrationConfig, Pt as saveIntegrationConfig, f as setSelectedProject, rj as stageCountKey, Nb as t, On as testIntegrationConnection, jc as useDropdownFields, lu as useDropdownValues, ky as useEditForm, Mc as useFieldConfig, Nc as useFilterFields, zc as useMenuPermission, Ag as useModuleActions, Nh as useRecordRefresh, e as withAdminAppId, x as withAppId, cx as withAuthGuard };
|
|
44780
44832
|
|
|
44781
44833
|
//# sourceMappingURL=index.js.map
|