@realtek/core-theme 0.0.305 → 0.0.306
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 +611 -620
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -48004,23 +48004,11 @@ async function fF(e = 1, t = 10) {
|
|
|
48004
48004
|
limit: t
|
|
48005
48005
|
};
|
|
48006
48006
|
}
|
|
48007
|
-
async function pF(e
|
|
48008
|
-
let t = await fF(1, e), n = [...t.items], r = t.total, i = 2;
|
|
48009
|
-
for (; n.length < r;) {
|
|
48010
|
-
let t = await fF(i, e);
|
|
48011
|
-
if (!t.items.length) break;
|
|
48012
|
-
n.push(...t.items), i += 1;
|
|
48013
|
-
}
|
|
48014
|
-
return {
|
|
48015
|
-
items: n,
|
|
48016
|
-
total: Math.max(r, n.length)
|
|
48017
|
-
};
|
|
48018
|
-
}
|
|
48019
|
-
async function mF(e, t) {
|
|
48007
|
+
async function pF(e, t) {
|
|
48020
48008
|
let n = lF(await o(s, `/workflow/${e}/stage/${t}`));
|
|
48021
48009
|
return Array.isArray(n) ? { data: n } : n;
|
|
48022
48010
|
}
|
|
48023
|
-
async function
|
|
48011
|
+
async function mF(e, t) {
|
|
48024
48012
|
if (!e || !t) return null;
|
|
48025
48013
|
try {
|
|
48026
48014
|
let n = lF(await o(s, `/module-data-list?${new URLSearchParams({
|
|
@@ -48043,7 +48031,7 @@ async function hF(e, t) {
|
|
|
48043
48031
|
return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
|
|
48044
48032
|
}
|
|
48045
48033
|
}
|
|
48046
|
-
async function
|
|
48034
|
+
async function hF(e) {
|
|
48047
48035
|
return lF(await o(r, "/source/workflow-instance", {
|
|
48048
48036
|
method: "POST",
|
|
48049
48037
|
body: JSON.stringify(e)
|
|
@@ -48051,7 +48039,7 @@ async function gF(e) {
|
|
|
48051
48039
|
}
|
|
48052
48040
|
//#endregion
|
|
48053
48041
|
//#region src/components/popups/definitions/tag-to-job/api.js
|
|
48054
|
-
var
|
|
48042
|
+
var gF = {
|
|
48055
48043
|
pipeline: "pipeline",
|
|
48056
48044
|
goodfited: "goodfited",
|
|
48057
48045
|
contacted: "contacted",
|
|
@@ -48060,40 +48048,40 @@ var _F = {
|
|
|
48060
48048
|
interviewinprogress: "interviewInprogress",
|
|
48061
48049
|
selected: "selected"
|
|
48062
48050
|
};
|
|
48063
|
-
function
|
|
48051
|
+
function _F(e, ...t) {
|
|
48064
48052
|
for (let n of t) {
|
|
48065
48053
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
48066
48054
|
if (t != null && t !== "") return t;
|
|
48067
48055
|
}
|
|
48068
48056
|
}
|
|
48069
|
-
function
|
|
48057
|
+
function vF(e) {
|
|
48070
48058
|
let t = String(e ?? "").trim();
|
|
48071
|
-
return t ?
|
|
48059
|
+
return t ? gF[t.toLowerCase()] ?? t : "";
|
|
48072
48060
|
}
|
|
48073
|
-
function
|
|
48074
|
-
let n =
|
|
48061
|
+
function yF(e, t) {
|
|
48062
|
+
let n = _F(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
|
|
48075
48063
|
if (!n) return null;
|
|
48076
|
-
let r = (
|
|
48064
|
+
let r = (_F(e, "candidateName", "candidate_name", "fullName", "name") ?? [_F(e, "firstName", "first_name"), _F(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
|
|
48077
48065
|
candidateId: String(n),
|
|
48078
48066
|
candidateName: r,
|
|
48079
|
-
phone:
|
|
48080
|
-
source:
|
|
48081
|
-
submittedAt:
|
|
48082
|
-
remarks:
|
|
48083
|
-
assignedRecruiter:
|
|
48084
|
-
screeningStatus:
|
|
48085
|
-
screeningScore:
|
|
48086
|
-
assignedDate:
|
|
48067
|
+
phone: _F(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
|
|
48068
|
+
source: _F(e, "source", "sourceType", "candidateSource", "profileSource"),
|
|
48069
|
+
submittedAt: _F(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
|
|
48070
|
+
remarks: _F(e, "remarks", "comment", "comments", "notes"),
|
|
48071
|
+
assignedRecruiter: _F(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
|
|
48072
|
+
screeningStatus: _F(e, "screeningStatus", "screening.status", "screeningResult"),
|
|
48073
|
+
screeningScore: _F(e, "screeningScore", "screening.score", "score"),
|
|
48074
|
+
assignedDate: _F(e, "assignedDate", "assignedAt", "createdAt")
|
|
48087
48075
|
};
|
|
48088
48076
|
return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
|
|
48089
48077
|
}
|
|
48090
|
-
var
|
|
48078
|
+
var bF = {
|
|
48091
48079
|
searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? zs(t) : [],
|
|
48092
48080
|
submit: async (e, t) => {
|
|
48093
|
-
let n = e.jobId ?? t.jobId, r =
|
|
48081
|
+
let n = e.jobId ?? t.jobId, r = vF(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);
|
|
48094
48082
|
for (let e = 0; e < o; e += 1) {
|
|
48095
|
-
let t = i[e] ? String(i[e]) : "", o =
|
|
48096
|
-
await
|
|
48083
|
+
let t = i[e] ? String(i[e]) : "", o = yF(a[e] ?? {}, t);
|
|
48084
|
+
await hF({
|
|
48097
48085
|
jobId: n,
|
|
48098
48086
|
module: "jobs",
|
|
48099
48087
|
currentStage: r,
|
|
@@ -48106,7 +48094,7 @@ var xF = {
|
|
|
48106
48094
|
hiringStage: r
|
|
48107
48095
|
});
|
|
48108
48096
|
}
|
|
48109
|
-
},
|
|
48097
|
+
}, xF = {
|
|
48110
48098
|
title: "Change Status",
|
|
48111
48099
|
okText: "Apply",
|
|
48112
48100
|
width: 420,
|
|
@@ -48144,17 +48132,17 @@ var xF = {
|
|
|
48144
48132
|
};
|
|
48145
48133
|
//#endregion
|
|
48146
48134
|
//#region src/components/popups/definitions/change-status/api.js
|
|
48147
|
-
function
|
|
48135
|
+
function SF(e, t) {
|
|
48148
48136
|
return (t?.status ?? []).find((t) => String(t?.value ?? "") === String(e ?? "")) ?? null;
|
|
48149
48137
|
}
|
|
48150
|
-
var
|
|
48151
|
-
let r =
|
|
48138
|
+
var CF = { submit: async (e, t, n) => {
|
|
48139
|
+
let r = SF(e.status, n?.dynamicOptions)?._raw ?? {}, i = {
|
|
48152
48140
|
clientSubmissionStatusText: String(e.status ?? "").trim(),
|
|
48153
48141
|
clientSubmissionStatusId: Number(r.id ?? r.uniqueId ?? 0) || 0,
|
|
48154
48142
|
clientSubmissionStatusType: String(r.type ?? "").trim()
|
|
48155
48143
|
};
|
|
48156
48144
|
await Ls(t.moduleName, t.selectedIds, i);
|
|
48157
|
-
} },
|
|
48145
|
+
} }, wF = {
|
|
48158
48146
|
getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
|
|
48159
48147
|
titleIcon: "delete",
|
|
48160
48148
|
okText: "Remove",
|
|
@@ -48163,12 +48151,12 @@ var wF = { submit: async (e, t, n) => {
|
|
|
48163
48151
|
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?",
|
|
48164
48152
|
footerNote: "The candidate will be moved back to the pipeline.",
|
|
48165
48153
|
fields: []
|
|
48166
|
-
},
|
|
48154
|
+
}, TF = { onOk: async (e) => {
|
|
48167
48155
|
await uc({
|
|
48168
48156
|
jobId: e.jobId ?? e.selectedIds[0],
|
|
48169
48157
|
candidateIds: e.selectedIds
|
|
48170
48158
|
});
|
|
48171
|
-
} },
|
|
48159
|
+
} }, EF = {
|
|
48172
48160
|
title: "Add to Groups",
|
|
48173
48161
|
description: "Select a group to add the selected candidate(s) to",
|
|
48174
48162
|
okText: "Add to Group",
|
|
@@ -48182,7 +48170,7 @@ var wF = { submit: async (e, t, n) => {
|
|
|
48182
48170
|
placeholder: "Select a group",
|
|
48183
48171
|
fetchOptionsKey: "candidateGroups"
|
|
48184
48172
|
}]
|
|
48185
|
-
},
|
|
48173
|
+
}, DF = {
|
|
48186
48174
|
getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? Gs() : [],
|
|
48187
48175
|
submit: async (e, t, { dynamicOptions: n }) => {
|
|
48188
48176
|
let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
|
|
@@ -48192,7 +48180,7 @@ var wF = { submit: async (e, t, n) => {
|
|
|
48192
48180
|
groupName: r?.label ?? ""
|
|
48193
48181
|
});
|
|
48194
48182
|
}
|
|
48195
|
-
},
|
|
48183
|
+
}, OF = [
|
|
48196
48184
|
{
|
|
48197
48185
|
title: "Name",
|
|
48198
48186
|
key: "name",
|
|
@@ -48211,7 +48199,7 @@ var wF = { submit: async (e, t, n) => {
|
|
|
48211
48199
|
render: (e) => e || "-"
|
|
48212
48200
|
}
|
|
48213
48201
|
];
|
|
48214
|
-
function
|
|
48202
|
+
function kF({ selectedIds: e, onClose: t }) {
|
|
48215
48203
|
let n = e?.[0], [r, i] = L(!0), [a, o] = L(!1), [s, c] = L({
|
|
48216
48204
|
assignedUsers: [],
|
|
48217
48205
|
totalSubmissions: 0,
|
|
@@ -48275,7 +48263,7 @@ function AF({ selectedIds: e, onClose: t }) {
|
|
|
48275
48263
|
children: "Team Members Allocated"
|
|
48276
48264
|
}),
|
|
48277
48265
|
/* @__PURE__ */ Y(Gi, {
|
|
48278
|
-
columns:
|
|
48266
|
+
columns: OF,
|
|
48279
48267
|
dataSource: m,
|
|
48280
48268
|
pagination: !1,
|
|
48281
48269
|
rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
|
|
@@ -48324,25 +48312,25 @@ function AF({ selectedIds: e, onClose: t }) {
|
|
|
48324
48312
|
})]
|
|
48325
48313
|
});
|
|
48326
48314
|
}
|
|
48327
|
-
|
|
48315
|
+
kF.propTypes = {
|
|
48328
48316
|
selectedIds: Z.array,
|
|
48329
48317
|
onClose: Z.func
|
|
48330
48318
|
};
|
|
48331
48319
|
//#endregion
|
|
48332
48320
|
//#region src/components/popups/definitions/self-assign/config.js
|
|
48333
|
-
var
|
|
48321
|
+
var AF = {
|
|
48334
48322
|
title: "Self Assign",
|
|
48335
48323
|
width: 480,
|
|
48336
48324
|
className: "self-assign-modal",
|
|
48337
|
-
component:
|
|
48338
|
-
},
|
|
48325
|
+
component: kF
|
|
48326
|
+
}, jF = { submit: async () => {} };
|
|
48339
48327
|
//#endregion
|
|
48340
48328
|
//#region src/components/popups/definitions/others-assign/config.js
|
|
48341
|
-
function
|
|
48329
|
+
function MF(e = {}) {
|
|
48342
48330
|
let t = Array.isArray(e.jobPayDetails) ? e.jobPayDetails[e.jobPayDetails.length - 1] : e.jobPayDetails ?? e.clientBudget ?? {}, n = Number(t.clientBudgetEnd), r = Number(t.clientBudgetStart);
|
|
48343
48331
|
return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
|
|
48344
48332
|
}
|
|
48345
|
-
var
|
|
48333
|
+
var NF = {
|
|
48346
48334
|
getTitleText: (e, t, n) => {
|
|
48347
48335
|
let r = n?.jobTitle || n?.title || "";
|
|
48348
48336
|
return r ? `Assign - ${r}` : "Assign";
|
|
@@ -48351,7 +48339,7 @@ var PF = {
|
|
|
48351
48339
|
width: 520,
|
|
48352
48340
|
disabledUntilFilled: !0,
|
|
48353
48341
|
showAlreadyAssigned: !0,
|
|
48354
|
-
getFields: (e) => (
|
|
48342
|
+
getFields: (e) => (MF(e?.selectedRecords?.[0] ?? {}), [{
|
|
48355
48343
|
name: "assignToUserId",
|
|
48356
48344
|
label: "Assign to",
|
|
48357
48345
|
type: "multi-select",
|
|
@@ -48359,7 +48347,7 @@ var PF = {
|
|
|
48359
48347
|
placeholder: "Select recruiter(s)",
|
|
48360
48348
|
fetchOptionsKey: "assignToUsers"
|
|
48361
48349
|
}])
|
|
48362
|
-
},
|
|
48350
|
+
}, PF = {
|
|
48363
48351
|
getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? Xs() : [],
|
|
48364
48352
|
loadExtraData: async (e) => Zs(e.selectedIds[0]),
|
|
48365
48353
|
submit: async (e, t, { removedIds: n, extraData: r }) => {
|
|
@@ -48370,7 +48358,7 @@ var PF = {
|
|
|
48370
48358
|
existingRecruiters: r?.recruitersData
|
|
48371
48359
|
});
|
|
48372
48360
|
}
|
|
48373
|
-
},
|
|
48361
|
+
}, FF = {
|
|
48374
48362
|
title: "Add Sticky Notes",
|
|
48375
48363
|
getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
|
|
48376
48364
|
okText: "Save",
|
|
@@ -48402,7 +48390,7 @@ var PF = {
|
|
|
48402
48390
|
initialValueKey: "editingComments"
|
|
48403
48391
|
}
|
|
48404
48392
|
]
|
|
48405
|
-
},
|
|
48393
|
+
}, IF = {
|
|
48406
48394
|
getMentionOptions: async (e, t) => Bs(t),
|
|
48407
48395
|
submit: async (e, t) => {
|
|
48408
48396
|
let n = e.targetDate ? e.targetDate.toISOString() : "";
|
|
@@ -48418,7 +48406,7 @@ var PF = {
|
|
|
48418
48406
|
notes: e.comments
|
|
48419
48407
|
}), window.dispatchEvent(new Event("sticky-notes:refresh"));
|
|
48420
48408
|
}
|
|
48421
|
-
},
|
|
48409
|
+
}, LF = {
|
|
48422
48410
|
title: "Move to Onboarding",
|
|
48423
48411
|
bodyText: "Are you sure you want to move this candidate to onboarding?",
|
|
48424
48412
|
okText: "Yes",
|
|
@@ -48431,7 +48419,7 @@ var PF = {
|
|
|
48431
48419
|
type: "priority-checkbox",
|
|
48432
48420
|
checkboxLabel: "Send Onboarding Email"
|
|
48433
48421
|
}]
|
|
48434
|
-
},
|
|
48422
|
+
}, RF = { submit: async (e, t) => {
|
|
48435
48423
|
await tc({
|
|
48436
48424
|
submissionId: t.selectedRecords?.[0]?.submissionId,
|
|
48437
48425
|
isMail: e.sendOnboardingEmail
|
|
@@ -48439,39 +48427,39 @@ var PF = {
|
|
|
48439
48427
|
} };
|
|
48440
48428
|
//#endregion
|
|
48441
48429
|
//#region src/components/popups/definitions/approve-rate/config.js
|
|
48442
|
-
function
|
|
48430
|
+
function zF(e) {
|
|
48443
48431
|
return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
|
|
48444
48432
|
}
|
|
48445
|
-
var
|
|
48433
|
+
var BF = {
|
|
48446
48434
|
USD: "$",
|
|
48447
48435
|
INR: "₹",
|
|
48448
48436
|
EUR: "€",
|
|
48449
48437
|
GBP: "£"
|
|
48450
48438
|
};
|
|
48451
|
-
function
|
|
48452
|
-
let r =
|
|
48439
|
+
function VF(e, t, n) {
|
|
48440
|
+
let r = zF(e?.[t])[n];
|
|
48453
48441
|
if (r != null && r !== "") return r;
|
|
48454
48442
|
let i = e?.[`${t}.${n}`];
|
|
48455
48443
|
return i != null && i !== "" ? i : void 0;
|
|
48456
48444
|
}
|
|
48457
|
-
function
|
|
48458
|
-
let t = e.selectedRecords?.[0] ?? {}, n =
|
|
48445
|
+
function HF(e) {
|
|
48446
|
+
let t = e.selectedRecords?.[0] ?? {}, n = VF(t, "candidateRate", "candidateAcceptedRate") ?? VF(t, "candidateBudget", "candidateBudgetStart");
|
|
48459
48447
|
if (n === void 0 || Number(n) === 0) return null;
|
|
48460
|
-
let r =
|
|
48448
|
+
let r = VF(t, "candidateRate", "candidateAcceptedCurrency") ?? VF(t, "candidateBudget", "candidateBudgetCurrency");
|
|
48461
48449
|
return {
|
|
48462
48450
|
amount: n,
|
|
48463
|
-
symbol:
|
|
48464
|
-
unit:
|
|
48451
|
+
symbol: VF(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? VF(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? BF[String(r ?? "").toUpperCase()] ?? (r || "$"),
|
|
48452
|
+
unit: VF(t, "candidateRate", "candidateAcceptedPayUnit") ?? VF(t, "candidateBudget", "candidateBudgetUnit") ?? ""
|
|
48465
48453
|
};
|
|
48466
48454
|
}
|
|
48467
|
-
var
|
|
48455
|
+
var UF = {
|
|
48468
48456
|
title: "Approve Rate",
|
|
48469
48457
|
okText: "Approve",
|
|
48470
48458
|
width: 520,
|
|
48471
48459
|
className: "medium-modal",
|
|
48472
48460
|
successMessage: "Rate approved",
|
|
48473
48461
|
getBodyText: (e, t, n, r, i) => {
|
|
48474
|
-
let a =
|
|
48462
|
+
let a = HF(i);
|
|
48475
48463
|
return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
|
|
48476
48464
|
},
|
|
48477
48465
|
fields: [
|
|
@@ -48485,7 +48473,7 @@ var WF = {
|
|
|
48485
48473
|
inlineRow: "proposedRate",
|
|
48486
48474
|
validator: (e, t) => {
|
|
48487
48475
|
if (e == null || e === "") return;
|
|
48488
|
-
let n =
|
|
48476
|
+
let n = HF(t);
|
|
48489
48477
|
if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
|
|
48490
48478
|
}
|
|
48491
48479
|
},
|
|
@@ -48553,7 +48541,7 @@ var WF = {
|
|
|
48553
48541
|
}]
|
|
48554
48542
|
}
|
|
48555
48543
|
]
|
|
48556
|
-
},
|
|
48544
|
+
}, WF = { submit: async (e, t) => {
|
|
48557
48545
|
let n = t.selectedIds[0];
|
|
48558
48546
|
if (await nc(n, {
|
|
48559
48547
|
candidateProposedRate: e.candidateProposedRate,
|
|
@@ -48569,7 +48557,7 @@ var WF = {
|
|
|
48569
48557
|
} };
|
|
48570
48558
|
//#endregion
|
|
48571
48559
|
//#region src/services/mailApproveApi.js
|
|
48572
|
-
async function
|
|
48560
|
+
async function GF(e, t = {}) {
|
|
48573
48561
|
let n = m();
|
|
48574
48562
|
if (!n) {
|
|
48575
48563
|
let e = /* @__PURE__ */ Error("Authentication required");
|
|
@@ -48589,8 +48577,8 @@ async function KF(e, t = {}) {
|
|
|
48589
48577
|
}
|
|
48590
48578
|
return r.json();
|
|
48591
48579
|
}
|
|
48592
|
-
async function
|
|
48593
|
-
let t = await
|
|
48580
|
+
async function KF(e) {
|
|
48581
|
+
let t = await GF(`/mail-form?${new URLSearchParams({
|
|
48594
48582
|
submissionId: e,
|
|
48595
48583
|
submissionType: "client"
|
|
48596
48584
|
}).toString()}`);
|
|
@@ -48598,15 +48586,15 @@ async function qF(e) {
|
|
|
48598
48586
|
}
|
|
48599
48587
|
//#endregion
|
|
48600
48588
|
//#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
|
|
48601
|
-
function
|
|
48589
|
+
function qF(...e) {
|
|
48602
48590
|
return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
|
|
48603
48591
|
}
|
|
48604
|
-
var
|
|
48605
|
-
function
|
|
48606
|
-
let r =
|
|
48607
|
-
return JF(
|
|
48592
|
+
var JF = (e, t) => !!e && e.toLowerCase() === qF(t).toLowerCase();
|
|
48593
|
+
function YF(e, t, n) {
|
|
48594
|
+
let r = qF(t.submittedBy);
|
|
48595
|
+
return qF(JF(r, n) || JF(r, e.submitSource) || JF(r, e.supplierName) || JF(r, e.source) || JF(r, e.candidateSource) ? "" : r, e.signatureEmail);
|
|
48608
48596
|
}
|
|
48609
|
-
function
|
|
48597
|
+
function XF(e, t = {}) {
|
|
48610
48598
|
let n = t.employerName ?? e.supplierName ?? e.submitSource;
|
|
48611
48599
|
return {
|
|
48612
48600
|
client: t.clientName ?? e.clientName,
|
|
@@ -48615,20 +48603,20 @@ function ZF(e, t = {}) {
|
|
|
48615
48603
|
name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
|
|
48616
48604
|
location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
|
|
48617
48605
|
vendor: n,
|
|
48618
|
-
submittedBy:
|
|
48606
|
+
submittedBy: YF(e, t, n),
|
|
48619
48607
|
submittedAt: t.createdAt ?? e.createdAt,
|
|
48620
48608
|
email: t.email ?? e.email,
|
|
48621
48609
|
employerLocation: t.employerLocation,
|
|
48622
48610
|
employerName: t.employerName
|
|
48623
48611
|
};
|
|
48624
48612
|
}
|
|
48625
|
-
function
|
|
48613
|
+
function ZF(e) {
|
|
48626
48614
|
let t = e?.$oid ?? e?._id?.$oid ?? e?._id ?? e?.id?.$oid ?? e?.id ?? e;
|
|
48627
48615
|
if (t == null || typeof t == "object") return "";
|
|
48628
48616
|
let n = String(t).trim();
|
|
48629
48617
|
return /^[a-f\d]{24}$/i.test(n) ? n : "";
|
|
48630
48618
|
}
|
|
48631
|
-
function
|
|
48619
|
+
function QF(...e) {
|
|
48632
48620
|
for (let t of e) {
|
|
48633
48621
|
let e = [
|
|
48634
48622
|
t?.jobId,
|
|
@@ -48651,12 +48639,12 @@ function $F(...e) {
|
|
|
48651
48639
|
t?.submission?.recordMeta?.jobId,
|
|
48652
48640
|
t?.submission?.recordMeta?.JobId,
|
|
48653
48641
|
t?.submission?.recordMeta?.job_id
|
|
48654
|
-
].map(
|
|
48642
|
+
].map(ZF).find(Boolean);
|
|
48655
48643
|
if (e) return e;
|
|
48656
48644
|
}
|
|
48657
48645
|
return "";
|
|
48658
48646
|
}
|
|
48659
|
-
function
|
|
48647
|
+
function $F(e) {
|
|
48660
48648
|
if (!e?.referralId) return {};
|
|
48661
48649
|
let t = Number(e.referralRate ?? e.referalRate ?? 0) || 0, n = String(e.referralType ?? e.referalType ?? "RECURRING").trim() || "RECURRING", r = e.referralId ?? e.referalId;
|
|
48662
48650
|
return {
|
|
@@ -48682,7 +48670,7 @@ function eI(e) {
|
|
|
48682
48670
|
}
|
|
48683
48671
|
};
|
|
48684
48672
|
}
|
|
48685
|
-
function
|
|
48673
|
+
function eI(e = {}) {
|
|
48686
48674
|
return {
|
|
48687
48675
|
to: (e.to ?? e.To ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
|
|
48688
48676
|
cc: (e.cc ?? e.Cc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
|
|
@@ -48691,7 +48679,7 @@ function tI(e = {}) {
|
|
|
48691
48679
|
contents: e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? ""
|
|
48692
48680
|
};
|
|
48693
48681
|
}
|
|
48694
|
-
function
|
|
48682
|
+
function tI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
|
|
48695
48683
|
let a = n?.[0] ?? {}, o = t?.[0] ?? fw(a), [s, c] = L(null), [l, u] = L(!0), [d, f] = L([]), [p, m] = L(!1), [h, g] = L("vms"), [_, v] = L(null), [y, b] = L(null), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), [D, O] = L(!1), [k, A] = L({
|
|
48696
48684
|
to: "",
|
|
48697
48685
|
cc: "",
|
|
@@ -48729,7 +48717,7 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48729
48717
|
if (h === "mail") {
|
|
48730
48718
|
m(!1), w(!0), E(!0);
|
|
48731
48719
|
try {
|
|
48732
|
-
let e =
|
|
48720
|
+
let e = eI(await KF(o));
|
|
48733
48721
|
A({
|
|
48734
48722
|
to: e.to,
|
|
48735
48723
|
cc: e.cc,
|
|
@@ -48753,7 +48741,7 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48753
48741
|
candidateProposedRateCurrency: _.currencyRaw ?? _.currency,
|
|
48754
48742
|
candidateProposedRateUnit: _.rateUnit,
|
|
48755
48743
|
submitVia: "VMS",
|
|
48756
|
-
|
|
48744
|
+
...$F(y)
|
|
48757
48745
|
}), q.success("Submission approved"), m(!1), v(null), b(null), i?.({ success: !0 });
|
|
48758
48746
|
} catch (e) {
|
|
48759
48747
|
q.error(e?.message ?? "Unable to approve submission");
|
|
@@ -48773,9 +48761,9 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48773
48761
|
await nc(o, {
|
|
48774
48762
|
...e,
|
|
48775
48763
|
submitVia: "VMS",
|
|
48776
|
-
|
|
48764
|
+
...$F(y)
|
|
48777
48765
|
});
|
|
48778
|
-
let t =
|
|
48766
|
+
let t = QF(s?.record, a);
|
|
48779
48767
|
if (!t) q.warning("Submission approved, but job details were not available to send mail");
|
|
48780
48768
|
else try {
|
|
48781
48769
|
await eu({
|
|
@@ -48828,7 +48816,7 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48828
48816
|
type: BC,
|
|
48829
48817
|
record: s.record,
|
|
48830
48818
|
lookups: s.lookups,
|
|
48831
|
-
identity:
|
|
48819
|
+
identity: XF(a, s.display),
|
|
48832
48820
|
referralOptions: d,
|
|
48833
48821
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
48834
48822
|
actions: M,
|
|
@@ -48902,7 +48890,7 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48902
48890
|
})
|
|
48903
48891
|
] });
|
|
48904
48892
|
}
|
|
48905
|
-
|
|
48893
|
+
tI.propTypes = {
|
|
48906
48894
|
context: Z.object,
|
|
48907
48895
|
selectedIds: Z.array,
|
|
48908
48896
|
selectedRecords: Z.array,
|
|
@@ -48911,23 +48899,23 @@ nI.propTypes = {
|
|
|
48911
48899
|
};
|
|
48912
48900
|
//#endregion
|
|
48913
48901
|
//#region src/components/popups/definitions/manager-approve/config.js
|
|
48914
|
-
var
|
|
48902
|
+
var nI = {
|
|
48915
48903
|
title: "Manager Approve",
|
|
48916
48904
|
width: 780,
|
|
48917
48905
|
className: "fa-modal manager-approve-modal",
|
|
48918
|
-
component:
|
|
48919
|
-
},
|
|
48906
|
+
component: tI
|
|
48907
|
+
}, rI = { submit: async () => {} };
|
|
48920
48908
|
//#endregion
|
|
48921
48909
|
//#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
|
|
48922
|
-
function
|
|
48910
|
+
function iI(...e) {
|
|
48923
48911
|
return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
|
|
48924
48912
|
}
|
|
48925
|
-
var
|
|
48926
|
-
function
|
|
48927
|
-
let r =
|
|
48928
|
-
return aI(
|
|
48913
|
+
var aI = (e, t) => !!e && e.toLowerCase() === iI(t).toLowerCase();
|
|
48914
|
+
function oI(e, t, n) {
|
|
48915
|
+
let r = iI(t.submittedBy);
|
|
48916
|
+
return iI(aI(r, n) || aI(r, e.submitSource) || aI(r, e.supplierName) || aI(r, e.source) || aI(r, e.candidateSource) ? "" : r, e.signatureEmail);
|
|
48929
48917
|
}
|
|
48930
|
-
function
|
|
48918
|
+
function sI(e, t = {}) {
|
|
48931
48919
|
let n = t.employerName ?? e.supplierName ?? e.submitSource;
|
|
48932
48920
|
return {
|
|
48933
48921
|
client: t.clientName ?? e.clientName,
|
|
@@ -48936,28 +48924,28 @@ function cI(e, t = {}) {
|
|
|
48936
48924
|
name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
|
|
48937
48925
|
location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
|
|
48938
48926
|
vendor: n,
|
|
48939
|
-
submittedBy:
|
|
48927
|
+
submittedBy: oI(e, t, n),
|
|
48940
48928
|
submittedAt: t.createdAt ?? e.createdAt,
|
|
48941
48929
|
email: t.email ?? e.email,
|
|
48942
48930
|
employerLocation: t.employerLocation,
|
|
48943
48931
|
employerName: t.employerName
|
|
48944
48932
|
};
|
|
48945
48933
|
}
|
|
48946
|
-
function
|
|
48934
|
+
function cI(e) {
|
|
48947
48935
|
let t = Array.isArray(e) ? e : [];
|
|
48948
48936
|
for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
|
|
48949
48937
|
return null;
|
|
48950
48938
|
}
|
|
48951
|
-
function
|
|
48939
|
+
function lI(e) {
|
|
48952
48940
|
return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
|
|
48953
48941
|
}
|
|
48954
|
-
function
|
|
48942
|
+
function uI({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
48955
48943
|
let r = t?.[0] ?? {}, i = e?.[0] ?? fw(r), [a, o] = L(null), [s, c] = L(""), [l, u] = L(!0);
|
|
48956
48944
|
F(() => {
|
|
48957
48945
|
let e = !1;
|
|
48958
48946
|
return u(!0), Promise.all([$w(i, r), xr("submission", i).catch(() => [])]).then(([t, n]) => {
|
|
48959
48947
|
if (e) return;
|
|
48960
|
-
let i =
|
|
48948
|
+
let i = cI(n);
|
|
48961
48949
|
c(fw(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
|
|
48962
48950
|
let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
|
|
48963
48951
|
o({
|
|
@@ -48966,7 +48954,7 @@ function dI({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
48966
48954
|
...t.record,
|
|
48967
48955
|
submission: {
|
|
48968
48956
|
...t.record.submission,
|
|
48969
|
-
cfoRejectionReason: a ?
|
|
48957
|
+
cfoRejectionReason: a ? lI(a) : "",
|
|
48970
48958
|
cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
|
|
48971
48959
|
}
|
|
48972
48960
|
}
|
|
@@ -49014,26 +49002,26 @@ function dI({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
49014
49002
|
type: WC,
|
|
49015
49003
|
record: a.record,
|
|
49016
49004
|
lookups: a.lookups,
|
|
49017
|
-
identity:
|
|
49005
|
+
identity: sI(r, a.display),
|
|
49018
49006
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
49019
49007
|
actions: d,
|
|
49020
49008
|
onClose: () => n?.(),
|
|
49021
49009
|
variant: "popup"
|
|
49022
49010
|
});
|
|
49023
49011
|
}
|
|
49024
|
-
|
|
49012
|
+
uI.propTypes = {
|
|
49025
49013
|
selectedIds: Z.array,
|
|
49026
49014
|
selectedRecords: Z.array,
|
|
49027
49015
|
onClose: Z.func
|
|
49028
49016
|
};
|
|
49029
49017
|
//#endregion
|
|
49030
49018
|
//#region src/components/popups/definitions/manager-reapprove/config.js
|
|
49031
|
-
var
|
|
49019
|
+
var dI = {
|
|
49032
49020
|
title: "Re-Approve",
|
|
49033
49021
|
width: 780,
|
|
49034
49022
|
className: "fa-modal manager-approve-modal",
|
|
49035
|
-
component:
|
|
49036
|
-
},
|
|
49023
|
+
component: uI
|
|
49024
|
+
}, fI = { submit: async () => {} }, pI = [
|
|
49037
49025
|
{
|
|
49038
49026
|
id: 1,
|
|
49039
49027
|
name: "Re-Submission"
|
|
@@ -49046,7 +49034,7 @@ var fI = {
|
|
|
49046
49034
|
id: 3,
|
|
49047
49035
|
name: "Incomplete candidate details - (Re-Submission)"
|
|
49048
49036
|
}
|
|
49049
|
-
],
|
|
49037
|
+
], mI = {
|
|
49050
49038
|
title: "Reject",
|
|
49051
49039
|
okText: "Reject",
|
|
49052
49040
|
okButtonDanger: !0,
|
|
@@ -49058,7 +49046,7 @@ var fI = {
|
|
|
49058
49046
|
type: "select",
|
|
49059
49047
|
required: !0,
|
|
49060
49048
|
placeholder: "Select rejection reasons",
|
|
49061
|
-
defaultOptions:
|
|
49049
|
+
defaultOptions: pI.map((e) => ({
|
|
49062
49050
|
label: e.name,
|
|
49063
49051
|
value: e.id
|
|
49064
49052
|
}))
|
|
@@ -49069,20 +49057,36 @@ var fI = {
|
|
|
49069
49057
|
required: !0,
|
|
49070
49058
|
rows: 4
|
|
49071
49059
|
}]
|
|
49072
|
-
},
|
|
49073
|
-
let n =
|
|
49060
|
+
}, hI = { submit: async (e, t) => {
|
|
49061
|
+
let n = pI.find((t) => String(t.id) === String(e.rejectReason));
|
|
49074
49062
|
await ac({
|
|
49075
49063
|
submissionId: t.selectedIds[0],
|
|
49076
49064
|
rejectReasonId: e.rejectReason,
|
|
49077
49065
|
rejectReason: n?.name ?? "",
|
|
49078
49066
|
rejectReasonComments: e.rejectReasonComments
|
|
49079
49067
|
});
|
|
49080
|
-
} },
|
|
49068
|
+
} }, gI = {
|
|
49081
49069
|
delete: wP,
|
|
49082
49070
|
"quick-submit": tF,
|
|
49083
49071
|
"add-notes": nF,
|
|
49084
49072
|
"tag-to-job": cF,
|
|
49085
|
-
"change-status":
|
|
49073
|
+
"change-status": xF,
|
|
49074
|
+
"remove-from-shortlist": wF,
|
|
49075
|
+
"add-to-groups": EF,
|
|
49076
|
+
"self-assign": AF,
|
|
49077
|
+
"others-assign": NF,
|
|
49078
|
+
"sticky-notes": FF,
|
|
49079
|
+
"move-to-onboarding": LF,
|
|
49080
|
+
"approve-rate": UF,
|
|
49081
|
+
"manager-approve": nI,
|
|
49082
|
+
"manager-reapprove": dI,
|
|
49083
|
+
reject: mI
|
|
49084
|
+
}, _I = {
|
|
49085
|
+
delete: TP,
|
|
49086
|
+
"quick-submit": eF,
|
|
49087
|
+
"add-notes": aF,
|
|
49088
|
+
"tag-to-job": bF,
|
|
49089
|
+
"change-status": CF,
|
|
49086
49090
|
"remove-from-shortlist": TF,
|
|
49087
49091
|
"add-to-groups": DF,
|
|
49088
49092
|
"self-assign": jF,
|
|
@@ -49093,64 +49097,48 @@ var fI = {
|
|
|
49093
49097
|
"manager-approve": rI,
|
|
49094
49098
|
"manager-reapprove": fI,
|
|
49095
49099
|
reject: hI
|
|
49096
|
-
}, vI = {
|
|
49097
|
-
delete: TP,
|
|
49098
|
-
"quick-submit": eF,
|
|
49099
|
-
"add-notes": aF,
|
|
49100
|
-
"tag-to-job": xF,
|
|
49101
|
-
"change-status": wF,
|
|
49102
|
-
"remove-from-shortlist": EF,
|
|
49103
|
-
"add-to-groups": OF,
|
|
49104
|
-
"self-assign": MF,
|
|
49105
|
-
"others-assign": FF,
|
|
49106
|
-
"sticky-notes": LF,
|
|
49107
|
-
"move-to-onboarding": zF,
|
|
49108
|
-
"approve-rate": GF,
|
|
49109
|
-
"manager-approve": iI,
|
|
49110
|
-
"manager-reapprove": pI,
|
|
49111
|
-
reject: gI
|
|
49112
49100
|
};
|
|
49113
49101
|
//#endregion
|
|
49114
49102
|
//#region src/components/popups/AddBatchCandidatePopup.jsx
|
|
49115
|
-
function
|
|
49103
|
+
function vI(e) {
|
|
49116
49104
|
let t = e?.data ?? e;
|
|
49117
49105
|
return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
|
|
49118
49106
|
}
|
|
49119
|
-
function
|
|
49107
|
+
function yI(e, ...t) {
|
|
49120
49108
|
for (let n of t) {
|
|
49121
49109
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
49122
49110
|
if (t != null && t !== "") return t;
|
|
49123
49111
|
}
|
|
49124
49112
|
return "";
|
|
49125
49113
|
}
|
|
49126
|
-
function
|
|
49127
|
-
let t = String(
|
|
49114
|
+
function bI(e) {
|
|
49115
|
+
let t = String(yI(e, "isDeleted", "deleted")).toLowerCase(), n = String(yI(e, "assignmentStatus", "status")).toLowerCase();
|
|
49128
49116
|
return t !== "true" && t !== "1" && ![
|
|
49129
49117
|
"removed",
|
|
49130
49118
|
"inactive",
|
|
49131
49119
|
"deleted"
|
|
49132
49120
|
].includes(n);
|
|
49133
49121
|
}
|
|
49122
|
+
function xI(e) {
|
|
49123
|
+
let t = yI(e, "candidateName", "candidate_name", "fullName", "name");
|
|
49124
|
+
return t ? String(t) : [yI(e, "firstName", "first_name"), yI(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
|
|
49125
|
+
}
|
|
49134
49126
|
function SI(e) {
|
|
49135
|
-
|
|
49136
|
-
return t ? String(t) : [bI(e, "firstName", "first_name"), bI(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
|
|
49127
|
+
return String(yI(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
|
|
49137
49128
|
}
|
|
49138
49129
|
function CI(e) {
|
|
49139
|
-
return String(
|
|
49130
|
+
return String(yI(e, "workforceEngagementId", "engagementId", "_id", "id"));
|
|
49140
49131
|
}
|
|
49141
49132
|
function wI(e) {
|
|
49142
|
-
return String(
|
|
49133
|
+
return String(yI(e, "batchName", "name", "title", "batch_name"));
|
|
49143
49134
|
}
|
|
49144
|
-
function TI(e) {
|
|
49145
|
-
return String(bI(e, "batchName", "name", "title", "batch_name"));
|
|
49146
|
-
}
|
|
49147
|
-
function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
49135
|
+
function TI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
49148
49136
|
let [r, i] = L([]), [a, o] = L([]), [s, c] = L(""), [l, u] = L(!0), [d, f] = L(!1), [p, m] = L(""), [h, g] = L(/* @__PURE__ */ new Map()), v = String(t.selectedIds?.[0] ?? t.selectedRecords?.[0]?._id ?? t.selectedRecords?.[0]?.id ?? t.batchId ?? "");
|
|
49149
49137
|
F(() => {
|
|
49150
49138
|
if (!e) return;
|
|
49151
49139
|
let t = !1;
|
|
49152
49140
|
return Promise.resolve().then(() => (t || u(!0), Promise.all([Qn("onboarding", 200, 0), Qn("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
|
|
49153
|
-
t || (i(
|
|
49141
|
+
t || (i(vI(e)), g(new Map(vI(n).filter(bI).map((e) => [String(yI(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
|
|
49154
49142
|
}).catch((e) => {
|
|
49155
49143
|
t || m(e.message || "Unable to load onboarding candidates");
|
|
49156
49144
|
}).finally(() => {
|
|
@@ -49162,9 +49150,9 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49162
49150
|
let y = I(() => {
|
|
49163
49151
|
let e = s.trim().toLowerCase();
|
|
49164
49152
|
return e ? r.filter((t) => [
|
|
49165
|
-
|
|
49166
|
-
|
|
49167
|
-
|
|
49153
|
+
xI(t),
|
|
49154
|
+
yI(t, "email", "candidateEmail", "candidate_email"),
|
|
49155
|
+
yI(t, "status", "onboardingStatus", "onboarding_status")
|
|
49168
49156
|
].some((t) => String(t).toLowerCase().includes(e))) : r;
|
|
49169
49157
|
}, [r, s]);
|
|
49170
49158
|
async function b() {
|
|
@@ -49172,25 +49160,25 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49172
49160
|
m("Select a batch before adding candidates");
|
|
49173
49161
|
return;
|
|
49174
49162
|
}
|
|
49175
|
-
let e = r.filter((e) => a.includes(
|
|
49163
|
+
let e = r.filter((e) => a.includes(CI(e)));
|
|
49176
49164
|
if (!e.length) return;
|
|
49177
49165
|
let i = e.map((e) => ({
|
|
49178
49166
|
record: e,
|
|
49179
|
-
assignment: h.get(
|
|
49167
|
+
assignment: h.get(SI(e))
|
|
49180
49168
|
})).filter((e) => e.assignment);
|
|
49181
49169
|
if (i.length) {
|
|
49182
|
-
m(`${i.map(({ record: e }) =>
|
|
49170
|
+
m(`${i.map(({ record: e }) => xI(e)).join(", ")} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
|
|
49183
49171
|
return;
|
|
49184
49172
|
}
|
|
49185
49173
|
f(!0), m("");
|
|
49186
49174
|
try {
|
|
49187
|
-
let { userId: r } = _(), i =
|
|
49175
|
+
let { userId: r } = _(), i = wI(t.selectedRecords?.[0]) || wI(t);
|
|
49188
49176
|
await Promise.all(e.map((e) => xe("batchCandidates", {
|
|
49189
49177
|
schemaVersion: 1,
|
|
49190
49178
|
batchId: v,
|
|
49191
49179
|
batchName: i,
|
|
49192
|
-
candidateId:
|
|
49193
|
-
workforceEngagementId:
|
|
49180
|
+
candidateId: SI(e),
|
|
49181
|
+
workforceEngagementId: CI(e),
|
|
49194
49182
|
source: "ONBOARDING",
|
|
49195
49183
|
assignmentStatus: "ASSIGNED",
|
|
49196
49184
|
assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -49233,22 +49221,22 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49233
49221
|
style: { marginBottom: 12 }
|
|
49234
49222
|
}),
|
|
49235
49223
|
/* @__PURE__ */ Y(Gi, {
|
|
49236
|
-
rowKey: (e) =>
|
|
49224
|
+
rowKey: (e) => CI(e),
|
|
49237
49225
|
columns: [
|
|
49238
49226
|
{
|
|
49239
49227
|
title: "Candidate",
|
|
49240
49228
|
key: "candidate",
|
|
49241
|
-
render: (e, t) =>
|
|
49229
|
+
render: (e, t) => xI(t)
|
|
49242
49230
|
},
|
|
49243
49231
|
{
|
|
49244
49232
|
title: "Email",
|
|
49245
49233
|
key: "email",
|
|
49246
|
-
render: (e, t) =>
|
|
49234
|
+
render: (e, t) => yI(t, "email", "candidateEmail", "candidate_email") || "—"
|
|
49247
49235
|
},
|
|
49248
49236
|
{
|
|
49249
49237
|
title: "Onboarding status",
|
|
49250
49238
|
key: "status",
|
|
49251
|
-
render: (e, t) =>
|
|
49239
|
+
render: (e, t) => yI(t, "status", "onboardingStatus", "onboarding_status") || "—"
|
|
49252
49240
|
}
|
|
49253
49241
|
],
|
|
49254
49242
|
dataSource: y,
|
|
@@ -49262,9 +49250,9 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49262
49250
|
selectedRowKeys: a,
|
|
49263
49251
|
onChange: o,
|
|
49264
49252
|
getCheckboxProps: (e) => {
|
|
49265
|
-
let t = h.get(
|
|
49253
|
+
let t = h.get(SI(e));
|
|
49266
49254
|
return {
|
|
49267
|
-
disabled: !
|
|
49255
|
+
disabled: !SI(e) || !CI(e) || !!t,
|
|
49268
49256
|
title: t ? "Candidate is already added to a batch" : void 0
|
|
49269
49257
|
};
|
|
49270
49258
|
}
|
|
@@ -49276,7 +49264,7 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49276
49264
|
}
|
|
49277
49265
|
//#endregion
|
|
49278
49266
|
//#region src/components/popups/dynamic/DynamicPopupRoute.jsx
|
|
49279
|
-
var
|
|
49267
|
+
var EI = {
|
|
49280
49268
|
text: "input",
|
|
49281
49269
|
string: "input",
|
|
49282
49270
|
textarea: "textarea",
|
|
@@ -49285,30 +49273,30 @@ var DI = {
|
|
|
49285
49273
|
multiselect: "multi-select",
|
|
49286
49274
|
lookup: "search-select"
|
|
49287
49275
|
};
|
|
49288
|
-
function
|
|
49276
|
+
function DI(e) {
|
|
49289
49277
|
if (!e) return null;
|
|
49290
49278
|
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) => ({
|
|
49291
49279
|
...e,
|
|
49292
49280
|
name: e.name ?? e.field,
|
|
49293
49281
|
label: e.label ?? e.field,
|
|
49294
|
-
type:
|
|
49282
|
+
type: EI[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
|
|
49295
49283
|
required: e.required ?? e.req === 1,
|
|
49296
49284
|
options: (e.options ?? []).map((e) => ({
|
|
49297
49285
|
label: e.label ?? e.name ?? e.value,
|
|
49298
49286
|
value: e.value ?? e.id ?? e.label
|
|
49299
49287
|
}))
|
|
49300
|
-
}))), n =
|
|
49288
|
+
}))), n = OI(e.successNavigate);
|
|
49301
49289
|
return {
|
|
49302
49290
|
title: e.label,
|
|
49303
49291
|
fields: t,
|
|
49304
49292
|
...n ? { successNavigate: n } : {}
|
|
49305
49293
|
};
|
|
49306
49294
|
}
|
|
49307
|
-
function
|
|
49295
|
+
function OI(e) {
|
|
49308
49296
|
let t = String(e ?? "").trim();
|
|
49309
49297
|
return !t || !t.startsWith("/") || t.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(t) ? null : t;
|
|
49310
49298
|
}
|
|
49311
|
-
function
|
|
49299
|
+
function kI(e, t = []) {
|
|
49312
49300
|
if (!e || !Array.isArray(t) || !t.length) return e;
|
|
49313
49301
|
let n = new Map(t.filter((e) => e?.name).map((e) => [String(e.name), e]));
|
|
49314
49302
|
return n.size ? {
|
|
@@ -49324,12 +49312,12 @@ function AI(e, t = []) {
|
|
|
49324
49312
|
})
|
|
49325
49313
|
} : e;
|
|
49326
49314
|
}
|
|
49327
|
-
function
|
|
49315
|
+
function AI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
49328
49316
|
let n = I(() => ({
|
|
49329
|
-
...
|
|
49317
|
+
..._I,
|
|
49330
49318
|
...e
|
|
49331
49319
|
}), [e]), r = I(() => {
|
|
49332
|
-
let e = { ...
|
|
49320
|
+
let e = { ...gI };
|
|
49333
49321
|
return Object.entries(t).forEach(([t, n]) => {
|
|
49334
49322
|
e[t] = {
|
|
49335
49323
|
...e[t] ?? {},
|
|
@@ -49347,7 +49335,7 @@ function jI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
49347
49335
|
return Dn(c.moduleName, "popup", i).then((n) => {
|
|
49348
49336
|
e || u({
|
|
49349
49337
|
key: t,
|
|
49350
|
-
config:
|
|
49338
|
+
config: DI(n[0])
|
|
49351
49339
|
});
|
|
49352
49340
|
}).catch(() => {
|
|
49353
49341
|
e || u({
|
|
@@ -49360,7 +49348,7 @@ function jI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
49360
49348
|
}, [i, c.moduleName]);
|
|
49361
49349
|
let d = I(() => {
|
|
49362
49350
|
let e = r[i], t = `${c.moduleName}:${i}`, n = l.key === t ? l.config : null;
|
|
49363
|
-
return
|
|
49351
|
+
return kI(n ? {
|
|
49364
49352
|
...e,
|
|
49365
49353
|
...n
|
|
49366
49354
|
} : e, c.popupAction?.popupFieldOverrides);
|
|
@@ -49419,7 +49407,7 @@ function jI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
49419
49407
|
}
|
|
49420
49408
|
a(-1);
|
|
49421
49409
|
};
|
|
49422
|
-
return i === "add-batch-candidate" ? /* @__PURE__ */ Y(
|
|
49410
|
+
return i === "add-batch-candidate" ? /* @__PURE__ */ Y(TI, {
|
|
49423
49411
|
open: !0,
|
|
49424
49412
|
context: f,
|
|
49425
49413
|
onClose: m
|
|
@@ -49436,7 +49424,7 @@ function jI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
49436
49424
|
}
|
|
49437
49425
|
//#endregion
|
|
49438
49426
|
//#region src/components/popups/definitions/vendor-share/config.js
|
|
49439
|
-
var
|
|
49427
|
+
var jI = {
|
|
49440
49428
|
title: "Vendor Share",
|
|
49441
49429
|
maxVendorSelect: 1e3,
|
|
49442
49430
|
defaultTab: "myVendor",
|
|
@@ -49470,7 +49458,7 @@ var MI = {
|
|
|
49470
49458
|
key: "updatedOn"
|
|
49471
49459
|
}
|
|
49472
49460
|
]
|
|
49473
|
-
},
|
|
49461
|
+
}, MI = {
|
|
49474
49462
|
getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => Zl({
|
|
49475
49463
|
jobId: e,
|
|
49476
49464
|
limit: t,
|
|
@@ -49487,11 +49475,11 @@ var MI = {
|
|
|
49487
49475
|
subject: i,
|
|
49488
49476
|
contents: a
|
|
49489
49477
|
})
|
|
49490
|
-
},
|
|
49478
|
+
}, NI = jI.vendorColumns.map((e) => ({
|
|
49491
49479
|
...e,
|
|
49492
49480
|
render: (e) => e || "-"
|
|
49493
49481
|
}));
|
|
49494
|
-
function
|
|
49482
|
+
function PI() {
|
|
49495
49483
|
let e = ns(), t = ts(), { 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({
|
|
49496
49484
|
to: i.join(", "),
|
|
49497
49485
|
cc: "",
|
|
@@ -49500,13 +49488,13 @@ function FI() {
|
|
|
49500
49488
|
contents: "",
|
|
49501
49489
|
showCc: !1,
|
|
49502
49490
|
showBcc: !1
|
|
49503
|
-
}), [f, p] = L(!l), [m, h] = L(
|
|
49491
|
+
}), [f, p] = L(!l), [m, h] = L(jI.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(jI.defaultPageSize), [A, j] = L(!1), [ee, te] = L([]);
|
|
49504
49492
|
F(() => {
|
|
49505
49493
|
if (!l) return;
|
|
49506
49494
|
let e = !1;
|
|
49507
49495
|
j(!0);
|
|
49508
49496
|
let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
|
|
49509
|
-
return
|
|
49497
|
+
return MI.getVendorList({
|
|
49510
49498
|
jobId: l,
|
|
49511
49499
|
limit: t,
|
|
49512
49500
|
offset: n,
|
|
@@ -49529,7 +49517,7 @@ function FI() {
|
|
|
49529
49517
|
O,
|
|
49530
49518
|
g
|
|
49531
49519
|
]), F(() => {
|
|
49532
|
-
l &&
|
|
49520
|
+
l && MI.getMailDetails(l).then((e) => d((t) => ({
|
|
49533
49521
|
...t,
|
|
49534
49522
|
subject: e.subject || t.subject,
|
|
49535
49523
|
contents: e.contents || t.contents,
|
|
@@ -49554,7 +49542,7 @@ function FI() {
|
|
|
49554
49542
|
e(-1);
|
|
49555
49543
|
}
|
|
49556
49544
|
function oe() {
|
|
49557
|
-
ie &&
|
|
49545
|
+
ie && MI.submit({
|
|
49558
49546
|
jobId: l,
|
|
49559
49547
|
toMail: wM(ne.to),
|
|
49560
49548
|
ccMail: wM(ne.cc),
|
|
@@ -49635,7 +49623,7 @@ function FI() {
|
|
|
49635
49623
|
]
|
|
49636
49624
|
}), /* @__PURE__ */ Y("div", {
|
|
49637
49625
|
className: "vendor-share__vendor-tabs",
|
|
49638
|
-
children:
|
|
49626
|
+
children: jI.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
|
|
49639
49627
|
className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
|
|
49640
49628
|
onClick: () => {
|
|
49641
49629
|
h(e.key), D(1), te([]);
|
|
@@ -49653,7 +49641,7 @@ function FI() {
|
|
|
49653
49641
|
className: "vendor-share__vendor-table-wrapper",
|
|
49654
49642
|
children: /* @__PURE__ */ Y(Gi, {
|
|
49655
49643
|
rowKey: (e) => e.vendorId,
|
|
49656
|
-
columns:
|
|
49644
|
+
columns: NI,
|
|
49657
49645
|
dataSource: se,
|
|
49658
49646
|
loading: A,
|
|
49659
49647
|
pagination: !1,
|
|
@@ -49661,7 +49649,7 @@ function FI() {
|
|
|
49661
49649
|
rowSelection: {
|
|
49662
49650
|
selectedRowKeys: ee,
|
|
49663
49651
|
onChange: (e) => {
|
|
49664
|
-
e.length >
|
|
49652
|
+
e.length > jI.maxVendorSelect || te(e);
|
|
49665
49653
|
}
|
|
49666
49654
|
},
|
|
49667
49655
|
scroll: { y: "calc(100vh - 340px)" }
|
|
@@ -49695,7 +49683,7 @@ function FI() {
|
|
|
49695
49683
|
children: [
|
|
49696
49684
|
ee.length,
|
|
49697
49685
|
" / ",
|
|
49698
|
-
|
|
49686
|
+
jI.maxVendorSelect,
|
|
49699
49687
|
" Vendors selected"
|
|
49700
49688
|
]
|
|
49701
49689
|
}) : null
|
|
@@ -49706,7 +49694,7 @@ function FI() {
|
|
|
49706
49694
|
}
|
|
49707
49695
|
//#endregion
|
|
49708
49696
|
//#region src/components/form/validation.js
|
|
49709
|
-
var
|
|
49697
|
+
var FI = {
|
|
49710
49698
|
EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
|
|
49711
49699
|
PHONE: /^[0-9]{10}$/,
|
|
49712
49700
|
PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
|
|
@@ -49723,7 +49711,7 @@ var II = {
|
|
|
49723
49711
|
FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
|
|
49724
49712
|
NO_SPACES: /^\S+$/,
|
|
49725
49713
|
STARTS_WITH_CAPITAL: /^[A-Z].*$/
|
|
49726
|
-
},
|
|
49714
|
+
}, II = {
|
|
49727
49715
|
SINGLE_FILE_COUNT: 1,
|
|
49728
49716
|
MULTI_FILE_COUNT: 5,
|
|
49729
49717
|
MAX_FILE_SIZE: 2,
|
|
@@ -49732,7 +49720,7 @@ var II = {
|
|
|
49732
49720
|
"image/png",
|
|
49733
49721
|
"application/pdf"
|
|
49734
49722
|
]
|
|
49735
|
-
},
|
|
49723
|
+
}, LI = {
|
|
49736
49724
|
REQUIRED: (e) => "Mandatory Field",
|
|
49737
49725
|
INVALID_EMAIL: "Please enter a valid email address.",
|
|
49738
49726
|
INVALID_PHONE: "Phone number must contain exactly 10 digits.",
|
|
@@ -49752,16 +49740,16 @@ var II = {
|
|
|
49752
49740
|
NO_SPACES_ALLOWED: "Spaces are not allowed.",
|
|
49753
49741
|
MUST_START_WITH_CAPITAL: "First letter must be capital.",
|
|
49754
49742
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
49755
|
-
INVALID_FILE_SIZE: `File upload must be ${
|
|
49743
|
+
INVALID_FILE_SIZE: `File upload must be ${II.MAX_FILE_SIZE} MB below.`,
|
|
49756
49744
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
49757
49745
|
SINGLE_FILE_ONLY: "Only one file can be uploaded."
|
|
49758
|
-
},
|
|
49746
|
+
}, RI = {
|
|
49759
49747
|
FIRST_NAME_MIN: 3,
|
|
49760
49748
|
FIRST_NAME_MAX: 30
|
|
49761
|
-
},
|
|
49749
|
+
}, zI = {
|
|
49762
49750
|
REMARKS_MIN: 10,
|
|
49763
49751
|
REMARKS_MAX: 250
|
|
49764
|
-
},
|
|
49752
|
+
}, BI = {
|
|
49765
49753
|
removeSpaces: (e = "") => e.replace(/\s/g, ""),
|
|
49766
49754
|
capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
|
|
49767
49755
|
capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
@@ -49773,132 +49761,132 @@ var II = {
|
|
|
49773
49761
|
let t = e.replace(/\D/g, "");
|
|
49774
49762
|
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)}`;
|
|
49775
49763
|
}
|
|
49776
|
-
},
|
|
49764
|
+
}, VI = {
|
|
49777
49765
|
required: (e = "Field") => ({
|
|
49778
49766
|
required: !0,
|
|
49779
|
-
message:
|
|
49767
|
+
message: LI.REQUIRED(e)
|
|
49780
49768
|
}),
|
|
49781
49769
|
email: () => ({
|
|
49782
|
-
pattern:
|
|
49783
|
-
message:
|
|
49770
|
+
pattern: FI.EMAIL,
|
|
49771
|
+
message: LI.INVALID_EMAIL
|
|
49784
49772
|
}),
|
|
49785
49773
|
phone: () => ({
|
|
49786
|
-
pattern:
|
|
49787
|
-
message:
|
|
49774
|
+
pattern: FI.PHONE,
|
|
49775
|
+
message: LI.INVALID_PHONE
|
|
49788
49776
|
}),
|
|
49789
49777
|
password: () => ({
|
|
49790
|
-
pattern:
|
|
49791
|
-
message:
|
|
49778
|
+
pattern: FI.PASSWORD,
|
|
49779
|
+
message: LI.INVALID_PASSWORD
|
|
49792
49780
|
}),
|
|
49793
49781
|
alphabets: () => ({
|
|
49794
|
-
pattern:
|
|
49795
|
-
message:
|
|
49782
|
+
pattern: FI.ALPHABETS,
|
|
49783
|
+
message: LI.INVALID_ALPHABETS
|
|
49796
49784
|
}),
|
|
49797
49785
|
alphanumeric: () => ({
|
|
49798
|
-
pattern:
|
|
49799
|
-
message:
|
|
49786
|
+
pattern: FI.ALPHANUMERIC,
|
|
49787
|
+
message: LI.INVALID_ALPHANUMERIC
|
|
49800
49788
|
}),
|
|
49801
49789
|
number: () => ({
|
|
49802
|
-
pattern:
|
|
49803
|
-
message:
|
|
49790
|
+
pattern: FI.NUMBER,
|
|
49791
|
+
message: LI.INVALID_NUMBER
|
|
49804
49792
|
}),
|
|
49805
49793
|
url: () => ({
|
|
49806
|
-
pattern:
|
|
49807
|
-
message:
|
|
49794
|
+
pattern: FI.URL,
|
|
49795
|
+
message: LI.INVALID_URL
|
|
49808
49796
|
}),
|
|
49809
49797
|
candidateId: (e = "ID") => ({
|
|
49810
|
-
pattern:
|
|
49811
|
-
message:
|
|
49798
|
+
pattern: FI.CANDIDATE_ID,
|
|
49799
|
+
message: LI.INVALID_CANDIDATE_ID(e)
|
|
49812
49800
|
}),
|
|
49813
49801
|
remarks: () => ({
|
|
49814
|
-
pattern:
|
|
49815
|
-
message:
|
|
49816
|
-
REMARKS_MIN: `Remarks must be at least ${
|
|
49817
|
-
REMARKS_MAX: `Remarks must not exceed ${
|
|
49802
|
+
pattern: FI.REMARKS,
|
|
49803
|
+
message: LI.INVALID_REMARKS,
|
|
49804
|
+
REMARKS_MIN: `Remarks must be at least ${zI.REMARKS_MIN} characters.`,
|
|
49805
|
+
REMARKS_MAX: `Remarks must not exceed ${zI.REMARKS_MAX} characters.`
|
|
49818
49806
|
}),
|
|
49819
49807
|
designation: () => ({
|
|
49820
|
-
pattern:
|
|
49821
|
-
message:
|
|
49808
|
+
pattern: FI.DESIGNATION,
|
|
49809
|
+
message: LI.INVALID_DESIGNATION
|
|
49822
49810
|
}),
|
|
49823
49811
|
dob: (e = !0) => ({ validator: (t, n) => {
|
|
49824
49812
|
if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
|
|
49825
|
-
if (!
|
|
49813
|
+
if (!FI.DOB.test(n)) return Promise.reject(Error(LI.INVALID_DOB));
|
|
49826
49814
|
let r = Jo(n, "MM/DD/YYYY", !0);
|
|
49827
|
-
if (!r.isValid()) return Promise.reject(Error(
|
|
49815
|
+
if (!r.isValid()) return Promise.reject(Error(LI.INVALID_DOB));
|
|
49828
49816
|
let i = Jo().endOf("day");
|
|
49829
49817
|
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();
|
|
49830
49818
|
} }),
|
|
49831
49819
|
linkedin: () => ({
|
|
49832
|
-
pattern:
|
|
49833
|
-
message:
|
|
49820
|
+
pattern: FI.LINKEDIN,
|
|
49821
|
+
message: LI.INVALID_LINKEDIN
|
|
49834
49822
|
}),
|
|
49835
49823
|
companyName: () => ({
|
|
49836
|
-
pattern:
|
|
49837
|
-
message:
|
|
49824
|
+
pattern: FI.COMPANY_NAME,
|
|
49825
|
+
message: LI.INVALID_COMPANY_NAME
|
|
49838
49826
|
}),
|
|
49839
49827
|
firstName: () => ({
|
|
49840
|
-
pattern:
|
|
49841
|
-
message:
|
|
49842
|
-
FIRST_NAME_MIN: `First Name must be at least ${
|
|
49843
|
-
FIRST_NAME_MAX: `First Name must not exceed ${
|
|
49828
|
+
pattern: FI.FIRST_NAME,
|
|
49829
|
+
message: LI.INVALID_FIRST_NAME,
|
|
49830
|
+
FIRST_NAME_MIN: `First Name must be at least ${RI.FIRST_NAME_MIN} characters.`,
|
|
49831
|
+
FIRST_NAME_MAX: `First Name must not exceed ${RI.FIRST_NAME_MAX} characters.`
|
|
49844
49832
|
}),
|
|
49845
49833
|
firstNameMinLength: () => ({
|
|
49846
|
-
min:
|
|
49847
|
-
message:
|
|
49834
|
+
min: RI.FIRST_NAME_MIN,
|
|
49835
|
+
message: LI.FIRST_NAME_MIN
|
|
49848
49836
|
}),
|
|
49849
49837
|
firstNameMaxLength: () => ({
|
|
49850
|
-
max:
|
|
49851
|
-
message:
|
|
49838
|
+
max: RI.FIRST_NAME_MAX,
|
|
49839
|
+
message: LI.FIRST_NAME_MAX
|
|
49852
49840
|
}),
|
|
49853
49841
|
remarksMinLength: () => ({
|
|
49854
|
-
min:
|
|
49855
|
-
message:
|
|
49842
|
+
min: zI.REMARKS_MIN,
|
|
49843
|
+
message: LI.REMARKS_MIN
|
|
49856
49844
|
}),
|
|
49857
49845
|
remarksMaxLength: () => ({
|
|
49858
|
-
max:
|
|
49859
|
-
message:
|
|
49846
|
+
max: zI.REMARKS_MAX,
|
|
49847
|
+
message: LI.REMARKS_MAX
|
|
49860
49848
|
}),
|
|
49861
49849
|
fullName: () => ({
|
|
49862
|
-
pattern:
|
|
49863
|
-
message:
|
|
49850
|
+
pattern: FI.FULL_NAME,
|
|
49851
|
+
message: LI.INVALID_FULL_NAME
|
|
49864
49852
|
}),
|
|
49865
49853
|
noSpaces: () => ({
|
|
49866
|
-
pattern:
|
|
49867
|
-
message:
|
|
49854
|
+
pattern: FI.NO_SPACES,
|
|
49855
|
+
message: LI.NO_SPACES_ALLOWED
|
|
49868
49856
|
}),
|
|
49869
49857
|
startsWithCapital: () => ({
|
|
49870
|
-
pattern:
|
|
49871
|
-
message:
|
|
49858
|
+
pattern: FI.STARTS_WITH_CAPITAL,
|
|
49859
|
+
message: LI.MUST_START_WITH_CAPITAL
|
|
49872
49860
|
}),
|
|
49873
49861
|
fileUpload: () => ({ validator: (e, t) => {
|
|
49874
49862
|
if (!t || t.length === 0) return Promise.resolve();
|
|
49875
49863
|
for (let e of t) {
|
|
49876
49864
|
let t = e.originFileObj || e;
|
|
49877
|
-
if (!(t.size / 1024 / 1024 <=
|
|
49878
|
-
if (!
|
|
49865
|
+
if (!(t.size / 1024 / 1024 <= II.MAX_FILE_SIZE)) return q.error(LI.INVALID_FILE_SIZE), Promise.reject(Error(LI.INVALID_FILE_SIZE));
|
|
49866
|
+
if (!II.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(LI.INVALID_FILE_TYPE));
|
|
49879
49867
|
}
|
|
49880
49868
|
return Promise.resolve();
|
|
49881
49869
|
} }),
|
|
49882
49870
|
singleFileUpload: () => ({ validator: (e, t) => {
|
|
49883
49871
|
if (!t || t.length === 0) return Promise.resolve();
|
|
49884
|
-
if (t.length >
|
|
49872
|
+
if (t.length > II.SINGLE_FILE_COUNT) return Promise.reject(Error(LI.SINGLE_FILE_ONLY));
|
|
49885
49873
|
let n = t[0];
|
|
49886
|
-
return n.size / 1024 / 1024 <
|
|
49874
|
+
return n.size / 1024 / 1024 < II.MAX_FILE_SIZE ? II.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(LI.INVALID_FILE_TYPE)) : Promise.reject(Error(LI.INVALID_FILE_SIZE));
|
|
49887
49875
|
} }),
|
|
49888
49876
|
multiFileUpload: () => ({ validator: (e, t) => {
|
|
49889
49877
|
if (!t || t.length === 0) return Promise.resolve();
|
|
49890
|
-
if (t.length >
|
|
49878
|
+
if (t.length > II.MULTI_FILE_COUNT) return Promise.reject(Error(LI.INVALID_FILE_COUNT));
|
|
49891
49879
|
for (let e of t) {
|
|
49892
|
-
if (!(e.size / 1024 / 1024 <
|
|
49893
|
-
if (!
|
|
49880
|
+
if (!(e.size / 1024 / 1024 < II.MAX_FILE_SIZE)) return Promise.reject(Error(LI.INVALID_FILE_SIZE));
|
|
49881
|
+
if (!II.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(LI.INVALID_FILE_TYPE));
|
|
49894
49882
|
}
|
|
49895
49883
|
return Promise.resolve();
|
|
49896
49884
|
} })
|
|
49897
|
-
},
|
|
49885
|
+
}, HI = { beforeUpload: (e) => [
|
|
49898
49886
|
"image/jpeg",
|
|
49899
49887
|
"image/png",
|
|
49900
49888
|
"application/pdf"
|
|
49901
|
-
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), Xi.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), Xi.LIST_IGNORE) },
|
|
49889
|
+
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), Xi.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), Xi.LIST_IGNORE) }, UI = () => {
|
|
49902
49890
|
let [e] = B.useForm();
|
|
49903
49891
|
return /* @__PURE__ */ Y("div", {
|
|
49904
49892
|
style: { padding: 24 },
|
|
@@ -49918,7 +49906,7 @@ var II = {
|
|
|
49918
49906
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49919
49907
|
label: "Email",
|
|
49920
49908
|
name: "email",
|
|
49921
|
-
rules: [
|
|
49909
|
+
rules: [VI.required("Email"), VI.email()],
|
|
49922
49910
|
children: /* @__PURE__ */ Y(V, {})
|
|
49923
49911
|
})
|
|
49924
49912
|
}),
|
|
@@ -49927,12 +49915,12 @@ var II = {
|
|
|
49927
49915
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49928
49916
|
label: "Phone Number",
|
|
49929
49917
|
name: "phone",
|
|
49930
|
-
rules: [
|
|
49918
|
+
rules: [VI.required("Phone Number"), VI.phone()],
|
|
49931
49919
|
validateTrigger: ["onBlur", "onChange"],
|
|
49932
49920
|
children: /* @__PURE__ */ Y(V, {
|
|
49933
49921
|
maxLength: 10,
|
|
49934
49922
|
onChange: (t) => {
|
|
49935
|
-
e.setFieldsValue({ phone:
|
|
49923
|
+
e.setFieldsValue({ phone: BI.phoneFormatter(t.target.value) });
|
|
49936
49924
|
}
|
|
49937
49925
|
})
|
|
49938
49926
|
})
|
|
@@ -49942,7 +49930,7 @@ var II = {
|
|
|
49942
49930
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49943
49931
|
label: "Password",
|
|
49944
49932
|
name: "password",
|
|
49945
|
-
rules: [
|
|
49933
|
+
rules: [VI.required("Password"), VI.password()],
|
|
49946
49934
|
children: /* @__PURE__ */ Y(V.Password, {})
|
|
49947
49935
|
})
|
|
49948
49936
|
}),
|
|
@@ -49952,13 +49940,13 @@ var II = {
|
|
|
49952
49940
|
label: "Full Name",
|
|
49953
49941
|
name: "fullName",
|
|
49954
49942
|
rules: [
|
|
49955
|
-
|
|
49956
|
-
|
|
49957
|
-
|
|
49958
|
-
|
|
49943
|
+
VI.required("Full Name"),
|
|
49944
|
+
VI.alphabets(),
|
|
49945
|
+
VI.firstNameMinLength(),
|
|
49946
|
+
VI.firstNameMaxLength()
|
|
49959
49947
|
],
|
|
49960
49948
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
49961
|
-
e.setFieldsValue({ fullName:
|
|
49949
|
+
e.setFieldsValue({ fullName: BI.firstNameFormatter(t.target.value) });
|
|
49962
49950
|
} })
|
|
49963
49951
|
})
|
|
49964
49952
|
}),
|
|
@@ -49967,9 +49955,9 @@ var II = {
|
|
|
49967
49955
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49968
49956
|
label: "Username",
|
|
49969
49957
|
name: "username",
|
|
49970
|
-
rules: [
|
|
49958
|
+
rules: [VI.required("Username"), VI.alphanumeric()],
|
|
49971
49959
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
49972
|
-
e.setFieldsValue({ username:
|
|
49960
|
+
e.setFieldsValue({ username: BI.removeExtraSpaces(t.target.value) });
|
|
49973
49961
|
} })
|
|
49974
49962
|
})
|
|
49975
49963
|
}),
|
|
@@ -49978,9 +49966,9 @@ var II = {
|
|
|
49978
49966
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49979
49967
|
label: "Website URL",
|
|
49980
49968
|
name: "website",
|
|
49981
|
-
rules: [
|
|
49969
|
+
rules: [VI.required("Website URL"), VI.url()],
|
|
49982
49970
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
49983
|
-
e.setFieldsValue({ website:
|
|
49971
|
+
e.setFieldsValue({ website: BI.removeExtraSpaces(t.target.value) });
|
|
49984
49972
|
} })
|
|
49985
49973
|
})
|
|
49986
49974
|
}),
|
|
@@ -49989,9 +49977,9 @@ var II = {
|
|
|
49989
49977
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49990
49978
|
label: "MSP Req ID",
|
|
49991
49979
|
name: "mspreqID",
|
|
49992
|
-
rules: [
|
|
49980
|
+
rules: [VI.required("MSP Req ID"), VI.candidateId("MSP Req ID")],
|
|
49993
49981
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
49994
|
-
e.setFieldsValue({ mspreqID:
|
|
49982
|
+
e.setFieldsValue({ mspreqID: BI.removeExtraSpaces(t.target.value) });
|
|
49995
49983
|
} })
|
|
49996
49984
|
})
|
|
49997
49985
|
}),
|
|
@@ -50000,9 +49988,9 @@ var II = {
|
|
|
50000
49988
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
50001
49989
|
label: "Candidate ID",
|
|
50002
49990
|
name: "candidateId",
|
|
50003
|
-
rules: [
|
|
49991
|
+
rules: [VI.required("Candidate ID"), VI.candidateId("Candidate ID")],
|
|
50004
49992
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
50005
|
-
e.setFieldsValue({ candidateId:
|
|
49993
|
+
e.setFieldsValue({ candidateId: BI.removeExtraSpaces(t.target.value) });
|
|
50006
49994
|
} })
|
|
50007
49995
|
})
|
|
50008
49996
|
}),
|
|
@@ -50012,10 +50000,10 @@ var II = {
|
|
|
50012
50000
|
label: "Remarks",
|
|
50013
50001
|
name: "remarks",
|
|
50014
50002
|
rules: [
|
|
50015
|
-
|
|
50016
|
-
|
|
50017
|
-
|
|
50018
|
-
|
|
50003
|
+
VI.required("Remarks"),
|
|
50004
|
+
VI.remarks(),
|
|
50005
|
+
VI.remarksMinLength(),
|
|
50006
|
+
VI.remarksMaxLength()
|
|
50019
50007
|
],
|
|
50020
50008
|
children: /* @__PURE__ */ Y(V.TextArea, { rows: 4 })
|
|
50021
50009
|
})
|
|
@@ -50025,7 +50013,7 @@ var II = {
|
|
|
50025
50013
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
50026
50014
|
label: "Designation",
|
|
50027
50015
|
name: "designation",
|
|
50028
|
-
rules: [
|
|
50016
|
+
rules: [VI.required("Designation"), VI.designation()],
|
|
50029
50017
|
children: /* @__PURE__ */ Y(V, {})
|
|
50030
50018
|
})
|
|
50031
50019
|
}),
|
|
@@ -50034,12 +50022,12 @@ var II = {
|
|
|
50034
50022
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
50035
50023
|
label: "Date of Birth",
|
|
50036
50024
|
name: "dob",
|
|
50037
|
-
rules: [
|
|
50025
|
+
rules: [VI.dob()],
|
|
50038
50026
|
children: /* @__PURE__ */ Y(V, {
|
|
50039
50027
|
placeholder: "MM/DD/YYYY",
|
|
50040
50028
|
maxLength: 10,
|
|
50041
50029
|
onChange: (t) => {
|
|
50042
|
-
e.setFieldsValue({ dob:
|
|
50030
|
+
e.setFieldsValue({ dob: BI.dobFormatter(t.target.value) });
|
|
50043
50031
|
}
|
|
50044
50032
|
})
|
|
50045
50033
|
})
|
|
@@ -50049,7 +50037,7 @@ var II = {
|
|
|
50049
50037
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
50050
50038
|
label: "Company Name",
|
|
50051
50039
|
name: "companyName",
|
|
50052
|
-
rules: [
|
|
50040
|
+
rules: [VI.required("Company Name"), VI.companyName()],
|
|
50053
50041
|
children: /* @__PURE__ */ Y(V, {})
|
|
50054
50042
|
})
|
|
50055
50043
|
}),
|
|
@@ -50138,7 +50126,7 @@ var II = {
|
|
|
50138
50126
|
label: "Resume new",
|
|
50139
50127
|
name: "resume",
|
|
50140
50128
|
children: /* @__PURE__ */ Y(Xi, {
|
|
50141
|
-
beforeUpload:
|
|
50129
|
+
beforeUpload: HI.beforeUpload,
|
|
50142
50130
|
maxCount: 1,
|
|
50143
50131
|
children: /* @__PURE__ */ Y(R, { children: "Upload Resume" })
|
|
50144
50132
|
})
|
|
@@ -50151,10 +50139,10 @@ var II = {
|
|
|
50151
50139
|
name: "documents",
|
|
50152
50140
|
valuePropName: "fileList",
|
|
50153
50141
|
getValueFromEvent: (e) => e?.fileList,
|
|
50154
|
-
rules: [
|
|
50142
|
+
rules: [VI.multiFileUpload()],
|
|
50155
50143
|
children: /* @__PURE__ */ Y(Xi, {
|
|
50156
50144
|
multiple: !0,
|
|
50157
|
-
beforeUpload:
|
|
50145
|
+
beforeUpload: HI.beforeUpload,
|
|
50158
50146
|
children: /* @__PURE__ */ Y(R, { children: "Upload Documents" })
|
|
50159
50147
|
})
|
|
50160
50148
|
})
|
|
@@ -50166,9 +50154,9 @@ var II = {
|
|
|
50166
50154
|
name: "file",
|
|
50167
50155
|
valuePropName: "fileList",
|
|
50168
50156
|
getValueFromEvent: (e) => e?.fileList,
|
|
50169
|
-
rules: [
|
|
50157
|
+
rules: [VI.fileUpload()],
|
|
50170
50158
|
children: /* @__PURE__ */ Y(Xi, {
|
|
50171
|
-
beforeUpload:
|
|
50159
|
+
beforeUpload: HI.beforeUpload,
|
|
50172
50160
|
maxCount: 1,
|
|
50173
50161
|
children: /* @__PURE__ */ Y(R, { children: "Upload" })
|
|
50174
50162
|
})
|
|
@@ -50228,12 +50216,12 @@ var II = {
|
|
|
50228
50216
|
};
|
|
50229
50217
|
//#endregion
|
|
50230
50218
|
//#region src/pages/admin/AdminPageWithShell.jsx
|
|
50231
|
-
function
|
|
50219
|
+
function WI(e) {
|
|
50232
50220
|
return /* @__PURE__ */ Y(fE, { children: /* @__PURE__ */ Y(yM, { ...e }) });
|
|
50233
50221
|
}
|
|
50234
50222
|
//#endregion
|
|
50235
50223
|
//#region src/components/cards/StatsCards.jsx
|
|
50236
|
-
var { Text:
|
|
50224
|
+
var { Text: GI } = Yi, KI = [
|
|
50237
50225
|
{
|
|
50238
50226
|
label: "Total Jobs",
|
|
50239
50227
|
value: 1697,
|
|
@@ -50249,13 +50237,13 @@ var { Text: KI } = Yi, qI = [
|
|
|
50249
50237
|
value: 600,
|
|
50250
50238
|
icon: "user"
|
|
50251
50239
|
}
|
|
50252
|
-
],
|
|
50240
|
+
], qI = {
|
|
50253
50241
|
fileText: /* @__PURE__ */ Y(Wa, {}),
|
|
50254
50242
|
checkCircle: /* @__PURE__ */ Y(pa, {}),
|
|
50255
50243
|
user: /* @__PURE__ */ Y(Go, {}),
|
|
50256
50244
|
filter: /* @__PURE__ */ Y(Ka, {})
|
|
50257
50245
|
};
|
|
50258
|
-
function
|
|
50246
|
+
function JI({ stats: e = KI }) {
|
|
50259
50247
|
return /* @__PURE__ */ Y(yi, { children: /* @__PURE__ */ Y(zi, {
|
|
50260
50248
|
gutter: [12, 12],
|
|
50261
50249
|
children: e.map((e) => /* @__PURE__ */ Y(z, {
|
|
@@ -50268,7 +50256,7 @@ function YI({ stats: e = qI }) {
|
|
|
50268
50256
|
className: "stats-inner-card",
|
|
50269
50257
|
children: [/* @__PURE__ */ X(U, {
|
|
50270
50258
|
align: "center",
|
|
50271
|
-
children: [
|
|
50259
|
+
children: [qI[e.icon] ?? qI.fileText, /* @__PURE__ */ Y(GI, { children: e.label })]
|
|
50272
50260
|
}), /* @__PURE__ */ Y(Ui, { value: e.value })]
|
|
50273
50261
|
})
|
|
50274
50262
|
}, e.label))
|
|
@@ -50276,21 +50264,21 @@ function YI({ stats: e = qI }) {
|
|
|
50276
50264
|
}
|
|
50277
50265
|
//#endregion
|
|
50278
50266
|
//#region src/pages/Modules/Admin/UsersSection.jsx
|
|
50279
|
-
var { Text:
|
|
50280
|
-
function
|
|
50267
|
+
var { Text: YI } = Yi;
|
|
50268
|
+
function XI(e) {
|
|
50281
50269
|
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 ?? "?"}`;
|
|
50282
50270
|
}
|
|
50283
|
-
function
|
|
50271
|
+
function ZI(e) {
|
|
50284
50272
|
return {
|
|
50285
50273
|
...e,
|
|
50286
50274
|
key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
|
|
50287
|
-
_name:
|
|
50275
|
+
_name: XI(e),
|
|
50288
50276
|
_email: e.email ?? e.EMAIL ?? e.user_email ?? "",
|
|
50289
50277
|
_role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
|
|
50290
50278
|
_rawRef: e
|
|
50291
50279
|
};
|
|
50292
50280
|
}
|
|
50293
|
-
function
|
|
50281
|
+
function QI() {
|
|
50294
50282
|
let [e, t] = L([]), [n, r] = L(0), [i, a] = L(!1), [o, s] = L(1), [c, l] = L(10), [u, d] = L(""), f = ui(async ({ offset: e, limit: n, searchQuery: i } = {}) => {
|
|
50295
50283
|
a(!0);
|
|
50296
50284
|
try {
|
|
@@ -50298,7 +50286,7 @@ function $I() {
|
|
|
50298
50286
|
offset: e,
|
|
50299
50287
|
limit: n,
|
|
50300
50288
|
searchQuery: i ?? ""
|
|
50301
|
-
}), o = (a.users ?? []).map(
|
|
50289
|
+
}), o = (a.users ?? []).map(ZI);
|
|
50302
50290
|
t(o), r(a.total ?? o.length);
|
|
50303
50291
|
} catch {
|
|
50304
50292
|
q.error("Failed to load users");
|
|
@@ -50331,7 +50319,7 @@ function $I() {
|
|
|
50331
50319
|
label: "Name",
|
|
50332
50320
|
value: "_name",
|
|
50333
50321
|
width: 220,
|
|
50334
|
-
render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
50322
|
+
render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(YI, {
|
|
50335
50323
|
strong: !0,
|
|
50336
50324
|
style: { fontSize: 13 },
|
|
50337
50325
|
children: e
|
|
@@ -50363,7 +50351,7 @@ function $I() {
|
|
|
50363
50351
|
}
|
|
50364
50352
|
//#endregion
|
|
50365
50353
|
//#region src/pages/Modules/Admin/TeamsSection.jsx
|
|
50366
|
-
var { Text:
|
|
50354
|
+
var { Text: $I } = Yi, eL = [
|
|
50367
50355
|
{
|
|
50368
50356
|
key: "job",
|
|
50369
50357
|
label: "Jobs"
|
|
@@ -50376,7 +50364,7 @@ var { Text: eL } = Yi, tL = [
|
|
|
50376
50364
|
key: "submissions",
|
|
50377
50365
|
label: "Submissions"
|
|
50378
50366
|
}
|
|
50379
|
-
],
|
|
50367
|
+
], tL = [
|
|
50380
50368
|
{
|
|
50381
50369
|
key: "listView",
|
|
50382
50370
|
label: "List View"
|
|
@@ -50390,7 +50378,7 @@ var { Text: eL } = Yi, tL = [
|
|
|
50390
50378
|
label: "Form"
|
|
50391
50379
|
}
|
|
50392
50380
|
];
|
|
50393
|
-
function
|
|
50381
|
+
function nL({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
50394
50382
|
let i = pi(null), [a, o] = L(!1), [s, c] = L(!1);
|
|
50395
50383
|
function l(e) {
|
|
50396
50384
|
i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
|
|
@@ -50454,7 +50442,7 @@ function rL({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
|
50454
50442
|
]
|
|
50455
50443
|
});
|
|
50456
50444
|
}
|
|
50457
|
-
function
|
|
50445
|
+
function rL({ team: e, configType: t }) {
|
|
50458
50446
|
let [n, r] = L({}), [i, a] = L(!1), [o, s] = L({}), [c, l] = L("job");
|
|
50459
50447
|
F(() => {
|
|
50460
50448
|
e && (a(!0), ri(e, t).then(r).catch(() => q.error("Failed to load field config")).finally(() => a(!1)));
|
|
@@ -50505,7 +50493,7 @@ function iL({ team: e, configType: t }) {
|
|
|
50505
50493
|
size: "small",
|
|
50506
50494
|
activeKey: c,
|
|
50507
50495
|
onChange: l,
|
|
50508
|
-
items:
|
|
50496
|
+
items: eL.map((e) => ({
|
|
50509
50497
|
key: e.key,
|
|
50510
50498
|
label: e.label
|
|
50511
50499
|
}))
|
|
@@ -50534,7 +50522,7 @@ function iL({ team: e, configType: t }) {
|
|
|
50534
50522
|
children: [u.length === 0 && !i && /* @__PURE__ */ Y("div", {
|
|
50535
50523
|
className: "uss-empty",
|
|
50536
50524
|
children: "No fields found."
|
|
50537
|
-
}), u.map((e, t) => /* @__PURE__ */ Y(
|
|
50525
|
+
}), u.map((e, t) => /* @__PURE__ */ Y(nL, {
|
|
50538
50526
|
field: e,
|
|
50539
50527
|
index: t,
|
|
50540
50528
|
onToggle: f,
|
|
@@ -50548,13 +50536,13 @@ function iL({ team: e, configType: t }) {
|
|
|
50548
50536
|
size: "small",
|
|
50549
50537
|
loading: o[c],
|
|
50550
50538
|
onClick: m,
|
|
50551
|
-
children: ["Save ",
|
|
50539
|
+
children: ["Save ", eL.find((e) => e.key === c)?.label]
|
|
50552
50540
|
})
|
|
50553
50541
|
})
|
|
50554
50542
|
]
|
|
50555
50543
|
});
|
|
50556
50544
|
}
|
|
50557
|
-
function
|
|
50545
|
+
function iL() {
|
|
50558
50546
|
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 = ui(async () => {
|
|
50559
50547
|
p(!0);
|
|
50560
50548
|
try {
|
|
@@ -50701,13 +50689,13 @@ function aL() {
|
|
|
50701
50689
|
style: { marginBottom: 12 },
|
|
50702
50690
|
children: /* @__PURE__ */ Y("div", {
|
|
50703
50691
|
className: "uss-config-toggle",
|
|
50704
|
-
children:
|
|
50692
|
+
children: tL.map((e) => /* @__PURE__ */ Y("button", {
|
|
50705
50693
|
className: `uss-config-btn${o === e.key ? " active" : ""}`,
|
|
50706
50694
|
onClick: () => s(e.key),
|
|
50707
50695
|
children: e.label
|
|
50708
50696
|
}, e.key))
|
|
50709
50697
|
})
|
|
50710
|
-
}), e && /* @__PURE__ */ Y(
|
|
50698
|
+
}), e && /* @__PURE__ */ Y(rL, {
|
|
50711
50699
|
team: e,
|
|
50712
50700
|
configType: o
|
|
50713
50701
|
}, `${e?.teamId}-${o}`)]
|
|
@@ -50716,12 +50704,12 @@ function aL() {
|
|
|
50716
50704
|
}
|
|
50717
50705
|
//#endregion
|
|
50718
50706
|
//#region src/pages/Modules/Admin/components/RolePermPanel.jsx
|
|
50719
|
-
var
|
|
50707
|
+
var aL = [
|
|
50720
50708
|
"view",
|
|
50721
50709
|
"add",
|
|
50722
50710
|
"edit",
|
|
50723
50711
|
"delete"
|
|
50724
|
-
],
|
|
50712
|
+
], oL = {
|
|
50725
50713
|
view: "View",
|
|
50726
50714
|
add: "Add",
|
|
50727
50715
|
edit: "Edit",
|
|
@@ -50736,18 +50724,18 @@ var oL = [
|
|
|
50736
50724
|
reApprove: "ReApprove",
|
|
50737
50725
|
sendApprove: "Send Approve"
|
|
50738
50726
|
};
|
|
50739
|
-
function
|
|
50740
|
-
return
|
|
50727
|
+
function sL(e) {
|
|
50728
|
+
return oL[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
50741
50729
|
}
|
|
50742
|
-
function
|
|
50743
|
-
let t =
|
|
50730
|
+
function cL(e) {
|
|
50731
|
+
let t = aL.filter((t) => e.includes(t)), n = e.filter((e) => !aL.includes(e)).sort();
|
|
50744
50732
|
return [...t, ...n];
|
|
50745
50733
|
}
|
|
50746
|
-
function
|
|
50734
|
+
function lL(e) {
|
|
50747
50735
|
let t = /* @__PURE__ */ new Set();
|
|
50748
|
-
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))),
|
|
50736
|
+
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), cL([...t]);
|
|
50749
50737
|
}
|
|
50750
|
-
function
|
|
50738
|
+
function uL(e) {
|
|
50751
50739
|
let t = 0, n = 0;
|
|
50752
50740
|
return Object.entries(e).forEach(([e, { permissions: r }]) => {
|
|
50753
50741
|
Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
|
|
@@ -50758,7 +50746,7 @@ function dL(e) {
|
|
|
50758
50746
|
total: n
|
|
50759
50747
|
};
|
|
50760
50748
|
}
|
|
50761
|
-
function
|
|
50749
|
+
function dL(e = {}) {
|
|
50762
50750
|
if (!e || typeof e != "object") return e;
|
|
50763
50751
|
let t = Object.keys(e).find((e) => String(e).trim().toLowerCase() === "onboarding");
|
|
50764
50752
|
if (!t) return e;
|
|
@@ -50775,7 +50763,7 @@ function fL(e = {}) {
|
|
|
50775
50763
|
}
|
|
50776
50764
|
};
|
|
50777
50765
|
}
|
|
50778
|
-
function
|
|
50766
|
+
function fL({ value: e, onSave: t, className: n }) {
|
|
50779
50767
|
let [r, i] = L(!1), [a, o] = L(e);
|
|
50780
50768
|
F(() => {
|
|
50781
50769
|
o(e);
|
|
@@ -50804,7 +50792,7 @@ function pL({ value: e, onSave: t, className: n }) {
|
|
|
50804
50792
|
children: [e, /* @__PURE__ */ Y(ja, { className: "perm-name-edit-icon" })]
|
|
50805
50793
|
});
|
|
50806
50794
|
}
|
|
50807
|
-
function
|
|
50795
|
+
function pL({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
50808
50796
|
let [i, a] = L(!1), [o, s] = L(t), c = e?.value === "1", l = !!e;
|
|
50809
50797
|
F(() => {
|
|
50810
50798
|
s(t);
|
|
@@ -50846,13 +50834,13 @@ function mL({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
|
50846
50834
|
})
|
|
50847
50835
|
});
|
|
50848
50836
|
}
|
|
50849
|
-
function
|
|
50837
|
+
function mL({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
|
|
50850
50838
|
let c = t?.permissions ?? {}, l = n.filter((t) => SD(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
|
|
50851
50839
|
return /* @__PURE__ */ X("div", {
|
|
50852
50840
|
className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
|
|
50853
50841
|
children: [/* @__PURE__ */ X("div", {
|
|
50854
50842
|
className: "perm-module-card-header",
|
|
50855
|
-
children: [/* @__PURE__ */ Y(
|
|
50843
|
+
children: [/* @__PURE__ */ Y(fL, {
|
|
50856
50844
|
value: i,
|
|
50857
50845
|
onSave: (t) => o(e, t),
|
|
50858
50846
|
className: "perm-module-card-name"
|
|
@@ -50866,20 +50854,20 @@ function hL({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
|
|
|
50866
50854
|
})]
|
|
50867
50855
|
}), /* @__PURE__ */ Y("div", {
|
|
50868
50856
|
className: "perm-module-card-body",
|
|
50869
|
-
children: l.map((t) => /* @__PURE__ */ Y(
|
|
50857
|
+
children: l.map((t) => /* @__PURE__ */ Y(pL, {
|
|
50870
50858
|
entry: c[t],
|
|
50871
|
-
label: a[t] ??
|
|
50859
|
+
label: a[t] ?? sL(t),
|
|
50872
50860
|
onToggle: () => r(e, t),
|
|
50873
50861
|
onLabelSave: (e) => s(t, e)
|
|
50874
50862
|
}, t))
|
|
50875
50863
|
})]
|
|
50876
50864
|
});
|
|
50877
50865
|
}
|
|
50878
|
-
function
|
|
50866
|
+
function hL({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
|
|
50879
50867
|
let [a, o] = L({}), [s, c] = L({}), [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(!1), h = it(e);
|
|
50880
50868
|
F(() => {
|
|
50881
50869
|
h && (u(!0), m(!1), He(h).then((e) => {
|
|
50882
|
-
let t =
|
|
50870
|
+
let t = dL(e);
|
|
50883
50871
|
o(t), c(t);
|
|
50884
50872
|
}).catch(() => q.error("Failed to load permissions")).finally(() => u(!1)));
|
|
50885
50873
|
}, [h]);
|
|
@@ -50917,7 +50905,7 @@ function gL({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
50917
50905
|
f(!1);
|
|
50918
50906
|
}
|
|
50919
50907
|
}
|
|
50920
|
-
let v = I(() => Object.keys(s).sort(), [s]), y = I(() =>
|
|
50908
|
+
let v = I(() => Object.keys(s).sort(), [s]), y = I(() => lL(s), [s]), { enabled: b, total: x } = I(() => uL(s), [s]);
|
|
50921
50909
|
return /* @__PURE__ */ X(Hi, {
|
|
50922
50910
|
spinning: l,
|
|
50923
50911
|
children: [
|
|
@@ -50968,7 +50956,7 @@ function gL({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
50968
50956
|
children: "No permission entries found for this role."
|
|
50969
50957
|
}) : /* @__PURE__ */ Y("div", {
|
|
50970
50958
|
className: "perm-cards-grid",
|
|
50971
|
-
children: v.map((e) => /* @__PURE__ */ Y(
|
|
50959
|
+
children: v.map((e) => /* @__PURE__ */ Y(mL, {
|
|
50972
50960
|
menuName: e,
|
|
50973
50961
|
menuData: s[e],
|
|
50974
50962
|
permKeys: y,
|
|
@@ -50984,7 +50972,7 @@ function gL({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
50984
50972
|
}
|
|
50985
50973
|
//#endregion
|
|
50986
50974
|
//#region src/pages/Modules/Admin/RolesSection.jsx
|
|
50987
|
-
var { Text:
|
|
50975
|
+
var { Text: gL } = Yi, _L = [
|
|
50988
50976
|
{
|
|
50989
50977
|
key: "listView",
|
|
50990
50978
|
label: "List View"
|
|
@@ -51002,38 +50990,38 @@ var { Text: _L } = Yi, vL = [
|
|
|
51002
50990
|
label: "Permissions"
|
|
51003
50991
|
}
|
|
51004
50992
|
];
|
|
51005
|
-
function
|
|
50993
|
+
function vL(e) {
|
|
51006
50994
|
return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
|
|
51007
50995
|
}
|
|
51008
|
-
function
|
|
50996
|
+
function yL(e) {
|
|
51009
50997
|
return String(e || "").trim().toLowerCase();
|
|
51010
50998
|
}
|
|
51011
|
-
function
|
|
50999
|
+
function bL(e) {
|
|
51012
51000
|
return e?.key || e?.collectionName || e?.value || "";
|
|
51013
51001
|
}
|
|
51014
|
-
function
|
|
51002
|
+
function xL(e = [], t = []) {
|
|
51015
51003
|
let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
51016
51004
|
return e.forEach((e) => {
|
|
51017
|
-
let t =
|
|
51005
|
+
let t = bL(e);
|
|
51018
51006
|
if (!t) return;
|
|
51019
|
-
let o =
|
|
51007
|
+
let o = yL(e.key || t), s = yL(e.collectionName);
|
|
51020
51008
|
e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
|
|
51021
|
-
label: e.label ||
|
|
51009
|
+
label: e.label || vL(t),
|
|
51022
51010
|
value: t,
|
|
51023
51011
|
disabled: !!e.seeded
|
|
51024
51012
|
});
|
|
51025
51013
|
}), t.forEach((e) => {
|
|
51026
51014
|
let t = String(e || "").trim();
|
|
51027
51015
|
if (!t || r.has(t)) return;
|
|
51028
|
-
let o =
|
|
51016
|
+
let o = yL(t);
|
|
51029
51017
|
a.has(o) || i.has(o) || (r.add(t), n.push({
|
|
51030
|
-
label:
|
|
51018
|
+
label: vL(t),
|
|
51031
51019
|
value: t,
|
|
51032
51020
|
disabled: !1
|
|
51033
51021
|
}));
|
|
51034
51022
|
}), n;
|
|
51035
51023
|
}
|
|
51036
|
-
function
|
|
51024
|
+
function SL() {
|
|
51037
51025
|
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 = ui(async () => {
|
|
51038
51026
|
d(!0);
|
|
51039
51027
|
try {
|
|
@@ -51047,7 +51035,7 @@ function CL() {
|
|
|
51047
51035
|
}, []), C = ui(async () => {
|
|
51048
51036
|
_(!0);
|
|
51049
51037
|
try {
|
|
51050
|
-
let [e, t] = await Promise.all([$r(), mn()]), n =
|
|
51038
|
+
let [e, t] = await Promise.all([$r(), mn()]), n = xL(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
|
|
51051
51039
|
p(n), h((e) => e.filter((e) => r.has(e)));
|
|
51052
51040
|
} catch {
|
|
51053
51041
|
q.error("Failed to load seed status");
|
|
@@ -51113,7 +51101,7 @@ function CL() {
|
|
|
51113
51101
|
onClick: w,
|
|
51114
51102
|
children: "Seed Field Config"
|
|
51115
51103
|
})]
|
|
51116
|
-
}), /* @__PURE__ */ Y(
|
|
51104
|
+
}), /* @__PURE__ */ Y(gL, {
|
|
51117
51105
|
type: "secondary",
|
|
51118
51106
|
style: {
|
|
51119
51107
|
display: "block",
|
|
@@ -51193,13 +51181,13 @@ function CL() {
|
|
|
51193
51181
|
style: { marginBottom: 12 },
|
|
51194
51182
|
children: /* @__PURE__ */ Y("div", {
|
|
51195
51183
|
className: "uss-config-toggle",
|
|
51196
|
-
children:
|
|
51184
|
+
children: _L.map((e) => /* @__PURE__ */ Y("button", {
|
|
51197
51185
|
className: `uss-config-btn${i === e.key ? " active" : ""}`,
|
|
51198
51186
|
onClick: () => a(e.key),
|
|
51199
51187
|
children: e.label
|
|
51200
51188
|
}, e.key))
|
|
51201
51189
|
})
|
|
51202
|
-
}), e && (i === "permissions" ? /* @__PURE__ */ Y(
|
|
51190
|
+
}), e && (i === "permissions" ? /* @__PURE__ */ Y(hL, { role: e }, e?.roleId) : /* @__PURE__ */ Y(BD, {
|
|
51203
51191
|
role: e,
|
|
51204
51192
|
configType: i
|
|
51205
51193
|
}, `${e?.roleId}-${i}`))]
|
|
@@ -51208,20 +51196,20 @@ function CL() {
|
|
|
51208
51196
|
}
|
|
51209
51197
|
//#endregion
|
|
51210
51198
|
//#region src/pages/Modules/Admin/PermissionsPage.jsx
|
|
51211
|
-
var
|
|
51212
|
-
function
|
|
51199
|
+
var CL = "perm-module-labels", wL = "perm-action-labels";
|
|
51200
|
+
function TL(e) {
|
|
51213
51201
|
try {
|
|
51214
51202
|
return JSON.parse(localStorage.getItem(e) ?? "{}");
|
|
51215
51203
|
} catch {
|
|
51216
51204
|
return {};
|
|
51217
51205
|
}
|
|
51218
51206
|
}
|
|
51219
|
-
function
|
|
51207
|
+
function EL(e, t) {
|
|
51220
51208
|
try {
|
|
51221
51209
|
localStorage.setItem(e, JSON.stringify(t));
|
|
51222
51210
|
} catch {}
|
|
51223
51211
|
}
|
|
51224
|
-
function
|
|
51212
|
+
function DL({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
51225
51213
|
let [i, a] = L(!1), [o, s] = L(e);
|
|
51226
51214
|
function c() {
|
|
51227
51215
|
a(!1);
|
|
@@ -51272,7 +51260,7 @@ function OL({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
|
51272
51260
|
})]
|
|
51273
51261
|
});
|
|
51274
51262
|
}
|
|
51275
|
-
function
|
|
51263
|
+
function OL({ open: e, onClose: t }) {
|
|
51276
51264
|
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);
|
|
51277
51265
|
F(() => {
|
|
51278
51266
|
e && (S(), C());
|
|
@@ -51394,7 +51382,7 @@ function kL({ open: e, onClose: t }) {
|
|
|
51394
51382
|
className: "perm-empty",
|
|
51395
51383
|
style: { paddingTop: 24 },
|
|
51396
51384
|
children: "No modules found"
|
|
51397
|
-
}), i.map((e) => /* @__PURE__ */ Y(
|
|
51385
|
+
}), i.map((e) => /* @__PURE__ */ Y(DL, {
|
|
51398
51386
|
label: e.MENUNAME,
|
|
51399
51387
|
onSave: (t) => T(e.MENUID, t),
|
|
51400
51388
|
onDelete: () => E(e.MENUID)
|
|
@@ -51439,7 +51427,7 @@ function kL({ open: e, onClose: t }) {
|
|
|
51439
51427
|
className: "perm-empty",
|
|
51440
51428
|
style: { paddingTop: 24 },
|
|
51441
51429
|
children: "No actions found"
|
|
51442
|
-
}), f.map((e) => /* @__PURE__ */ Y(
|
|
51430
|
+
}), f.map((e) => /* @__PURE__ */ Y(DL, {
|
|
51443
51431
|
label: `${e.permissionName} (${e.permissionKey})`,
|
|
51444
51432
|
onSave: (t) => O(e.permissionId, t),
|
|
51445
51433
|
onDelete: () => k(e.permissionId)
|
|
@@ -51469,14 +51457,14 @@ function kL({ open: e, onClose: t }) {
|
|
|
51469
51457
|
})
|
|
51470
51458
|
});
|
|
51471
51459
|
}
|
|
51472
|
-
function
|
|
51473
|
-
let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() =>
|
|
51460
|
+
function kL() {
|
|
51461
|
+
let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => TL(CL)), [f, p] = L(() => TL(wL)), m = ui((e, t) => {
|
|
51474
51462
|
d((n) => {
|
|
51475
51463
|
let r = {
|
|
51476
51464
|
...n,
|
|
51477
51465
|
[e]: t
|
|
51478
51466
|
};
|
|
51479
|
-
return
|
|
51467
|
+
return EL(CL, r), r;
|
|
51480
51468
|
});
|
|
51481
51469
|
}, []), h = ui((e, t) => {
|
|
51482
51470
|
p((n) => {
|
|
@@ -51484,11 +51472,11 @@ function AL() {
|
|
|
51484
51472
|
...n,
|
|
51485
51473
|
[e]: t
|
|
51486
51474
|
};
|
|
51487
|
-
return
|
|
51475
|
+
return EL(wL, r), r;
|
|
51488
51476
|
});
|
|
51489
51477
|
}, []);
|
|
51490
51478
|
function g() {
|
|
51491
|
-
d({}), p({}),
|
|
51479
|
+
d({}), p({}), EL(CL, {}), EL(wL, {}), q.success("Labels reset to defaults");
|
|
51492
51480
|
}
|
|
51493
51481
|
let _ = ui(async () => {
|
|
51494
51482
|
r(!0);
|
|
@@ -51572,7 +51560,7 @@ function AL() {
|
|
|
51572
51560
|
})]
|
|
51573
51561
|
}),
|
|
51574
51562
|
bodyStyle: { padding: "12px 16px" },
|
|
51575
|
-
children: i ? /* @__PURE__ */ Y(
|
|
51563
|
+
children: i ? /* @__PURE__ */ Y(hL, {
|
|
51576
51564
|
role: i,
|
|
51577
51565
|
moduleLabels: u,
|
|
51578
51566
|
actionLabels: f,
|
|
@@ -51583,7 +51571,7 @@ function AL() {
|
|
|
51583
51571
|
children: "Select a role from the left to manage its permissions."
|
|
51584
51572
|
})
|
|
51585
51573
|
}),
|
|
51586
|
-
/* @__PURE__ */ Y(
|
|
51574
|
+
/* @__PURE__ */ Y(OL, {
|
|
51587
51575
|
open: c,
|
|
51588
51576
|
onClose: () => l(!1)
|
|
51589
51577
|
})
|
|
@@ -51592,7 +51580,7 @@ function AL() {
|
|
|
51592
51580
|
}
|
|
51593
51581
|
//#endregion
|
|
51594
51582
|
//#region src/components/cards/OnboardingCard.jsx
|
|
51595
|
-
var { Title:
|
|
51583
|
+
var { Title: AL, Text: jL } = Yi, ML = [
|
|
51596
51584
|
{
|
|
51597
51585
|
label: "In Progress",
|
|
51598
51586
|
value: 107,
|
|
@@ -51618,10 +51606,10 @@ var { Title: jL, Text: ML } = Yi, NL = [
|
|
|
51618
51606
|
color: "peach"
|
|
51619
51607
|
}
|
|
51620
51608
|
];
|
|
51621
|
-
function
|
|
51609
|
+
function NL({ items: e = ML }) {
|
|
51622
51610
|
return /* @__PURE__ */ Y(yi, {
|
|
51623
51611
|
className: "onboarding-card",
|
|
51624
|
-
title: /* @__PURE__ */ Y(
|
|
51612
|
+
title: /* @__PURE__ */ Y(AL, {
|
|
51625
51613
|
level: 5,
|
|
51626
51614
|
children: "Onboarding"
|
|
51627
51615
|
}),
|
|
@@ -51640,7 +51628,7 @@ function PL({ items: e = NL }) {
|
|
|
51640
51628
|
children: /* @__PURE__ */ X("div", {
|
|
51641
51629
|
className: `onboarding-item ${e.color}`,
|
|
51642
51630
|
children: [
|
|
51643
|
-
/* @__PURE__ */ Y(
|
|
51631
|
+
/* @__PURE__ */ Y(jL, {
|
|
51644
51632
|
className: "onboarding-item-label",
|
|
51645
51633
|
children: e.label
|
|
51646
51634
|
}),
|
|
@@ -51650,7 +51638,7 @@ function PL({ items: e = NL }) {
|
|
|
51650
51638
|
}),
|
|
51651
51639
|
/* @__PURE__ */ Y("div", {
|
|
51652
51640
|
className: "onboarding-item-footer",
|
|
51653
|
-
children: /* @__PURE__ */ Y(
|
|
51641
|
+
children: /* @__PURE__ */ Y(jL, {
|
|
51654
51642
|
className: "onboarding-item-sub",
|
|
51655
51643
|
children: e.sub
|
|
51656
51644
|
})
|
|
@@ -51663,7 +51651,7 @@ function PL({ items: e = NL }) {
|
|
|
51663
51651
|
}
|
|
51664
51652
|
//#endregion
|
|
51665
51653
|
//#region src/pages/Modules/LegacyAdminPage.jsx
|
|
51666
|
-
var { Text:
|
|
51654
|
+
var { Text: PL, Title: FL } = Yi, IL = [
|
|
51667
51655
|
{
|
|
51668
51656
|
group: "Dashboard",
|
|
51669
51657
|
items: [{
|
|
@@ -51878,7 +51866,7 @@ var { Text: FL, Title: IL } = Yi, LL = [
|
|
|
51878
51866
|
}
|
|
51879
51867
|
]
|
|
51880
51868
|
}
|
|
51881
|
-
],
|
|
51869
|
+
], LL = [
|
|
51882
51870
|
{
|
|
51883
51871
|
label: "Sourced",
|
|
51884
51872
|
count: 312,
|
|
@@ -51909,7 +51897,7 @@ var { Text: FL, Title: IL } = Yi, LL = [
|
|
|
51909
51897
|
color: "#E24B4A",
|
|
51910
51898
|
pct: 10
|
|
51911
51899
|
}
|
|
51912
|
-
],
|
|
51900
|
+
], RL = [
|
|
51913
51901
|
{
|
|
51914
51902
|
name: "Tcs",
|
|
51915
51903
|
jobs: 14,
|
|
@@ -51930,7 +51918,7 @@ var { Text: FL, Title: IL } = Yi, LL = [
|
|
|
51930
51918
|
jobs: 5,
|
|
51931
51919
|
candidates: 38
|
|
51932
51920
|
}
|
|
51933
|
-
],
|
|
51921
|
+
], zL = [
|
|
51934
51922
|
{
|
|
51935
51923
|
text: "New candidate Ravi Kumar added to Java Developer role",
|
|
51936
51924
|
time: "2 min ago",
|
|
@@ -51957,7 +51945,7 @@ var { Text: FL, Title: IL } = Yi, LL = [
|
|
|
51957
51945
|
color: "#E24B4A"
|
|
51958
51946
|
}
|
|
51959
51947
|
];
|
|
51960
|
-
function
|
|
51948
|
+
function BL() {
|
|
51961
51949
|
return /* @__PURE__ */ X("div", {
|
|
51962
51950
|
style: {
|
|
51963
51951
|
display: "flex",
|
|
@@ -51970,11 +51958,11 @@ function VL() {
|
|
|
51970
51958
|
title: "Admin Dashboard",
|
|
51971
51959
|
children: [
|
|
51972
51960
|
/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
|
|
51973
|
-
/* @__PURE__ */ Y(
|
|
51961
|
+
/* @__PURE__ */ Y(FL, {
|
|
51974
51962
|
level: 5,
|
|
51975
51963
|
children: "Admin Dashboard"
|
|
51976
51964
|
}),
|
|
51977
|
-
/* @__PURE__ */ Y(
|
|
51965
|
+
/* @__PURE__ */ Y(PL, {
|
|
51978
51966
|
type: "secondary",
|
|
51979
51967
|
children: "Overview of jobs, candidates, onboarding and recent activity"
|
|
51980
51968
|
})
|
|
@@ -51982,7 +51970,7 @@ function VL() {
|
|
|
51982
51970
|
}),
|
|
51983
51971
|
/* @__PURE__ */ Y("div", {
|
|
51984
51972
|
className: "admin-dashboard-stats",
|
|
51985
|
-
children: /* @__PURE__ */ Y(
|
|
51973
|
+
children: /* @__PURE__ */ Y(JI, { stats: [
|
|
51986
51974
|
{
|
|
51987
51975
|
label: "Total Jobs",
|
|
51988
51976
|
value: 1697,
|
|
@@ -52012,18 +52000,18 @@ function VL() {
|
|
|
52012
52000
|
}),
|
|
52013
52001
|
/* @__PURE__ */ X("div", {
|
|
52014
52002
|
className: "admin-dashboard-mid-row",
|
|
52015
|
-
children: [/* @__PURE__ */ Y(
|
|
52003
|
+
children: [/* @__PURE__ */ Y(NL, {}), /* @__PURE__ */ X(CD, {
|
|
52016
52004
|
icon: /* @__PURE__ */ Y(ta, {}),
|
|
52017
52005
|
title: "Candidate Pipeline",
|
|
52018
52006
|
children: [
|
|
52019
|
-
/* @__PURE__ */ Y(
|
|
52007
|
+
/* @__PURE__ */ Y(PL, {
|
|
52020
52008
|
type: "secondary",
|
|
52021
52009
|
style: { fontSize: 12 },
|
|
52022
52010
|
children: "By stage (892 total)"
|
|
52023
52011
|
}),
|
|
52024
52012
|
/* @__PURE__ */ Y("div", {
|
|
52025
52013
|
className: "admin-pipeline-bar",
|
|
52026
|
-
children:
|
|
52014
|
+
children: LL.map((e) => /* @__PURE__ */ Y("div", {
|
|
52027
52015
|
className: "admin-pipeline-seg",
|
|
52028
52016
|
style: {
|
|
52029
52017
|
width: `${e.pct}%`,
|
|
@@ -52033,7 +52021,7 @@ function VL() {
|
|
|
52033
52021
|
}),
|
|
52034
52022
|
/* @__PURE__ */ Y("div", {
|
|
52035
52023
|
className: "admin-pipeline-legend",
|
|
52036
|
-
children:
|
|
52024
|
+
children: LL.map((e) => /* @__PURE__ */ X("div", {
|
|
52037
52025
|
className: "admin-pipeline-legend-item",
|
|
52038
52026
|
children: [
|
|
52039
52027
|
/* @__PURE__ */ Y("span", {
|
|
@@ -52047,7 +52035,7 @@ function VL() {
|
|
|
52047
52035
|
}, e.label))
|
|
52048
52036
|
}),
|
|
52049
52037
|
/* @__PURE__ */ Y("div", { className: "admin-divider" }),
|
|
52050
|
-
/* @__PURE__ */ Y(
|
|
52038
|
+
/* @__PURE__ */ Y(PL, {
|
|
52051
52039
|
strong: !0,
|
|
52052
52040
|
style: { fontSize: 12 },
|
|
52053
52041
|
children: "Submission status"
|
|
@@ -52058,7 +52046,7 @@ function VL() {
|
|
|
52058
52046
|
children: [
|
|
52059
52047
|
/* @__PURE__ */ X("div", {
|
|
52060
52048
|
className: "admin-sub-status-item",
|
|
52061
|
-
children: [/* @__PURE__ */ Y(
|
|
52049
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52062
52050
|
style: { fontSize: 13 },
|
|
52063
52051
|
children: "Pending client review"
|
|
52064
52052
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -52068,7 +52056,7 @@ function VL() {
|
|
|
52068
52056
|
}),
|
|
52069
52057
|
/* @__PURE__ */ X("div", {
|
|
52070
52058
|
className: "admin-sub-status-item",
|
|
52071
|
-
children: [/* @__PURE__ */ Y(
|
|
52059
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52072
52060
|
style: { fontSize: 13 },
|
|
52073
52061
|
children: "Client approved"
|
|
52074
52062
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -52078,7 +52066,7 @@ function VL() {
|
|
|
52078
52066
|
}),
|
|
52079
52067
|
/* @__PURE__ */ X("div", {
|
|
52080
52068
|
className: "admin-sub-status-item",
|
|
52081
|
-
children: [/* @__PURE__ */ Y(
|
|
52069
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52082
52070
|
style: { fontSize: 13 },
|
|
52083
52071
|
children: "Rejected"
|
|
52084
52072
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -52101,7 +52089,7 @@ function VL() {
|
|
|
52101
52089
|
size: "small",
|
|
52102
52090
|
children: "View all"
|
|
52103
52091
|
}),
|
|
52104
|
-
children:
|
|
52092
|
+
children: RL.map((e) => /* @__PURE__ */ X("div", {
|
|
52105
52093
|
className: "admin-client-row",
|
|
52106
52094
|
children: [/* @__PURE__ */ X("div", {
|
|
52107
52095
|
className: "admin-client-left",
|
|
@@ -52129,7 +52117,7 @@ function VL() {
|
|
|
52129
52117
|
}), /* @__PURE__ */ Y(CD, {
|
|
52130
52118
|
icon: /* @__PURE__ */ Y(oa, {}),
|
|
52131
52119
|
title: "Recent Activity",
|
|
52132
|
-
children:
|
|
52120
|
+
children: zL.map((e, t) => /* @__PURE__ */ X("div", {
|
|
52133
52121
|
className: "admin-activity-row",
|
|
52134
52122
|
children: [/* @__PURE__ */ Y("div", {
|
|
52135
52123
|
className: "admin-activity-dot",
|
|
@@ -52157,7 +52145,7 @@ function VL() {
|
|
|
52157
52145
|
children: [
|
|
52158
52146
|
/* @__PURE__ */ X(z, {
|
|
52159
52147
|
span: 8,
|
|
52160
|
-
children: [/* @__PURE__ */ Y(
|
|
52148
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52161
52149
|
type: "secondary",
|
|
52162
52150
|
style: {
|
|
52163
52151
|
fontSize: 12,
|
|
@@ -52170,7 +52158,7 @@ function VL() {
|
|
|
52170
52158
|
["Templates", 2]
|
|
52171
52159
|
].map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
52172
52160
|
className: "admin-cfg-overview-row",
|
|
52173
|
-
children: [/* @__PURE__ */ Y(
|
|
52161
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52174
52162
|
style: { fontSize: 12 },
|
|
52175
52163
|
children: e
|
|
52176
52164
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -52181,7 +52169,7 @@ function VL() {
|
|
|
52181
52169
|
}),
|
|
52182
52170
|
/* @__PURE__ */ X(z, {
|
|
52183
52171
|
span: 8,
|
|
52184
|
-
children: [/* @__PURE__ */ Y(
|
|
52172
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52185
52173
|
type: "secondary",
|
|
52186
52174
|
style: {
|
|
52187
52175
|
fontSize: 12,
|
|
@@ -52194,7 +52182,7 @@ function VL() {
|
|
|
52194
52182
|
["Submissions", 2]
|
|
52195
52183
|
].map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
52196
52184
|
className: "admin-cfg-overview-row",
|
|
52197
|
-
children: [/* @__PURE__ */ Y(
|
|
52185
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52198
52186
|
style: { fontSize: 12 },
|
|
52199
52187
|
children: e
|
|
52200
52188
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -52205,7 +52193,7 @@ function VL() {
|
|
|
52205
52193
|
}),
|
|
52206
52194
|
/* @__PURE__ */ X(z, {
|
|
52207
52195
|
span: 8,
|
|
52208
|
-
children: [/* @__PURE__ */ Y(
|
|
52196
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52209
52197
|
type: "secondary",
|
|
52210
52198
|
style: {
|
|
52211
52199
|
fontSize: 12,
|
|
@@ -52218,10 +52206,10 @@ function VL() {
|
|
|
52218
52206
|
["Config Items", 19]
|
|
52219
52207
|
].map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
52220
52208
|
className: "admin-cfg-overview-row",
|
|
52221
|
-
children: [/* @__PURE__ */ Y(
|
|
52209
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52222
52210
|
style: { fontSize: 12 },
|
|
52223
52211
|
children: e
|
|
52224
|
-
}), /* @__PURE__ */ Y(
|
|
52212
|
+
}), /* @__PURE__ */ Y(PL, {
|
|
52225
52213
|
strong: !0,
|
|
52226
52214
|
style: { fontSize: 12 },
|
|
52227
52215
|
children: t
|
|
@@ -52234,7 +52222,7 @@ function VL() {
|
|
|
52234
52222
|
]
|
|
52235
52223
|
});
|
|
52236
52224
|
}
|
|
52237
|
-
function
|
|
52225
|
+
function VL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
|
|
52238
52226
|
return /* @__PURE__ */ X(zi, {
|
|
52239
52227
|
gutter: [16, 16],
|
|
52240
52228
|
children: [
|
|
@@ -52253,11 +52241,11 @@ function HL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
52253
52241
|
}),
|
|
52254
52242
|
children: [
|
|
52255
52243
|
/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
|
|
52256
|
-
/* @__PURE__ */ Y(
|
|
52244
|
+
/* @__PURE__ */ Y(FL, {
|
|
52257
52245
|
level: 5,
|
|
52258
52246
|
children: e?.heading
|
|
52259
52247
|
}),
|
|
52260
|
-
/* @__PURE__ */ Y(
|
|
52248
|
+
/* @__PURE__ */ Y(PL, {
|
|
52261
52249
|
type: "secondary",
|
|
52262
52250
|
children: e?.desc
|
|
52263
52251
|
})
|
|
@@ -52271,7 +52259,7 @@ function HL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
52271
52259
|
children: /* @__PURE__ */ Y(CD, {
|
|
52272
52260
|
icon: /* @__PURE__ */ Y(ta, {}),
|
|
52273
52261
|
title: "Configuration Items",
|
|
52274
|
-
extra: /* @__PURE__ */ X(
|
|
52262
|
+
extra: /* @__PURE__ */ X(PL, {
|
|
52275
52263
|
type: "secondary",
|
|
52276
52264
|
children: [
|
|
52277
52265
|
n.length,
|
|
@@ -52338,7 +52326,7 @@ function HL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
52338
52326
|
title: "Section Overview",
|
|
52339
52327
|
children: [/* @__PURE__ */ Y("div", {
|
|
52340
52328
|
className: "admin-overview-list",
|
|
52341
|
-
children:
|
|
52329
|
+
children: IL.filter((e) => e.group !== "Dashboard").map((e) => {
|
|
52342
52330
|
let n = e.group === t?.group;
|
|
52343
52331
|
return /* @__PURE__ */ X("div", {
|
|
52344
52332
|
className: `admin-overview-item${n ? " active" : ""}`,
|
|
@@ -52386,12 +52374,12 @@ function HL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
52386
52374
|
]
|
|
52387
52375
|
});
|
|
52388
52376
|
}
|
|
52389
|
-
function
|
|
52390
|
-
let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() =>
|
|
52377
|
+
function HL() {
|
|
52378
|
+
let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => IL.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => IL.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
|
|
52391
52379
|
if (!a?.cards) return [];
|
|
52392
52380
|
let e = n.trim().toLowerCase();
|
|
52393
52381
|
return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
|
|
52394
|
-
}, [a, n]), c = I(() =>
|
|
52382
|
+
}, [a, n]), c = I(() => IL.map((e) => ({
|
|
52395
52383
|
key: e.group,
|
|
52396
52384
|
type: "group",
|
|
52397
52385
|
label: e.group,
|
|
@@ -52440,7 +52428,7 @@ function UL() {
|
|
|
52440
52428
|
children: "Groups"
|
|
52441
52429
|
}), /* @__PURE__ */ Y("span", {
|
|
52442
52430
|
className: "admin-sidebar-pill-value",
|
|
52443
|
-
children:
|
|
52431
|
+
children: IL.length
|
|
52444
52432
|
})]
|
|
52445
52433
|
})
|
|
52446
52434
|
}), /* @__PURE__ */ Y(z, {
|
|
@@ -52470,7 +52458,7 @@ function UL() {
|
|
|
52470
52458
|
xs: 24,
|
|
52471
52459
|
lg: 18,
|
|
52472
52460
|
xl: 19,
|
|
52473
|
-
children: e === "dashboard" ? /* @__PURE__ */ Y(
|
|
52461
|
+
children: e === "dashboard" ? /* @__PURE__ */ Y(BL, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(Ok, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(tA, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(WA, {}) : a?.component === "users" ? /* @__PURE__ */ Y(QI, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(iL, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(SL, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(kL, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(ej, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(ij, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(uj, {}) : /* @__PURE__ */ Y(VL, {
|
|
52474
52462
|
activeSection: a,
|
|
52475
52463
|
activeGroup: o,
|
|
52476
52464
|
filteredCards: s,
|
|
@@ -52485,8 +52473,8 @@ function UL() {
|
|
|
52485
52473
|
}
|
|
52486
52474
|
//#endregion
|
|
52487
52475
|
//#region src/pages/stickyNotesFullPage.jsx
|
|
52488
|
-
var { Title:
|
|
52489
|
-
function
|
|
52476
|
+
var { Title: UL } = Yi;
|
|
52477
|
+
function WL() {
|
|
52490
52478
|
let e = ns(), { state: t } = ts(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
|
|
52491
52479
|
...t?.request,
|
|
52492
52480
|
params: {
|
|
@@ -52511,7 +52499,7 @@ function GL() {
|
|
|
52511
52499
|
}
|
|
52512
52500
|
//#endregion
|
|
52513
52501
|
//#region src/pages/BulkUpload/index.jsx
|
|
52514
|
-
var { Text:
|
|
52502
|
+
var { Text: GL, Title: KL } = Yi, qL = 10 * 1024 * 1024, JL = "/templates/test_cases_flow_template.base64.txt", YL = "test_cases_flow_template.xlsx", XL = "module | subModule | step_order | description | actions | key | value | expected | scenario", ZL = {
|
|
52515
52503
|
idle: 0,
|
|
52516
52504
|
module_set: 1,
|
|
52517
52505
|
encoding: 1,
|
|
@@ -52520,7 +52508,7 @@ var { Text: KL, Title: qL } = Yi, JL = 10 * 1024 * 1024, YL = "/templates/test_c
|
|
|
52520
52508
|
inserting: 3,
|
|
52521
52509
|
done: 4,
|
|
52522
52510
|
error: 1
|
|
52523
|
-
},
|
|
52511
|
+
}, QL = [
|
|
52524
52512
|
{
|
|
52525
52513
|
label: "Home",
|
|
52526
52514
|
href: "/"
|
|
@@ -52534,31 +52522,31 @@ var { Text: KL, Title: qL } = Yi, JL = 10 * 1024 * 1024, YL = "/templates/test_c
|
|
|
52534
52522
|
href: "/bulk-upload"
|
|
52535
52523
|
}
|
|
52536
52524
|
];
|
|
52537
|
-
function
|
|
52525
|
+
function $L(e) {
|
|
52538
52526
|
return new Promise((t, n) => {
|
|
52539
52527
|
let r = new FileReader();
|
|
52540
52528
|
r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
|
|
52541
52529
|
});
|
|
52542
52530
|
}
|
|
52543
|
-
function
|
|
52531
|
+
function eR(e) {
|
|
52544
52532
|
return e.filter((e) => e.row_status === "valid").map((e) => {
|
|
52545
52533
|
let t = { ...e };
|
|
52546
52534
|
return delete t.row_status, delete t.errors, t;
|
|
52547
52535
|
});
|
|
52548
52536
|
}
|
|
52549
|
-
function
|
|
52537
|
+
function tR(e) {
|
|
52550
52538
|
return e.flatMap((e) => (e.errors ?? []).map((t) => ({
|
|
52551
52539
|
id: e.id,
|
|
52552
52540
|
...t
|
|
52553
52541
|
})));
|
|
52554
52542
|
}
|
|
52555
|
-
function
|
|
52543
|
+
function nR({ errors: e }) {
|
|
52556
52544
|
return /* @__PURE__ */ Y("div", {
|
|
52557
52545
|
className: "bulk-tooltip-errors",
|
|
52558
52546
|
children: (e ?? []).map((e, t) => /* @__PURE__ */ Y("div", { children: e.message }, `${e.field}-${t}`))
|
|
52559
52547
|
});
|
|
52560
52548
|
}
|
|
52561
|
-
function
|
|
52549
|
+
function rR({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
52562
52550
|
return e.length === 0 ? null : /* @__PURE__ */ X("div", {
|
|
52563
52551
|
className: "bulk-error-banner",
|
|
52564
52552
|
children: [/* @__PURE__ */ X("div", {
|
|
@@ -52589,7 +52577,7 @@ function iR({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
|
52589
52577
|
})]
|
|
52590
52578
|
});
|
|
52591
52579
|
}
|
|
52592
|
-
function
|
|
52580
|
+
function iR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
|
|
52593
52581
|
let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
|
|
52594
52582
|
return /* @__PURE__ */ X(J, { children: [
|
|
52595
52583
|
/* @__PURE__ */ X(zi, {
|
|
@@ -52605,7 +52593,7 @@ function aR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
52605
52593
|
type: t === "errors" ? "primary" : "default",
|
|
52606
52594
|
onClick: () => n("errors"),
|
|
52607
52595
|
children: "Errors only"
|
|
52608
|
-
})] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(
|
|
52596
|
+
})] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(GL, {
|
|
52609
52597
|
type: "secondary",
|
|
52610
52598
|
children: [e.length, " row(s)"]
|
|
52611
52599
|
}) })]
|
|
@@ -52677,7 +52665,7 @@ function aR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
52677
52665
|
children: "Valid"
|
|
52678
52666
|
}) }),
|
|
52679
52667
|
/* @__PURE__ */ Y("td", { children: n ? /* @__PURE__ */ Y(K, {
|
|
52680
|
-
title: /* @__PURE__ */ Y(
|
|
52668
|
+
title: /* @__PURE__ */ Y(nR, { errors: t }),
|
|
52681
52669
|
placement: "left",
|
|
52682
52670
|
children: /* @__PURE__ */ X("button", {
|
|
52683
52671
|
type: "button",
|
|
@@ -52714,11 +52702,11 @@ function aR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
52714
52702
|
})
|
|
52715
52703
|
] });
|
|
52716
52704
|
}
|
|
52717
|
-
function
|
|
52705
|
+
function aR() {
|
|
52718
52706
|
let e = ns(), t = I(() => c(), []), n = pi(null), r = pi(null), [i, a] = L([]), [o, s] = L(""), [l, u] = L("idle"), [d, f] = L(!1), [p, m] = L(null), [h, g] = L([]), [_, v] = L("all"), [y, b] = L(null), [x, S] = L(null), [C, w] = L(!1), T = i.map((e) => ({
|
|
52719
52707
|
value: e.modulename,
|
|
52720
52708
|
label: e.modulename
|
|
52721
|
-
})), E =
|
|
52709
|
+
})), E = tR(h), D = l === "encoding" || l === "validating", O = !!o && !D, k = ZL[l] ?? 0, A = h.find((e) => e.row_status === "invalid")?.id, j = ui(() => {
|
|
52722
52710
|
s(""), u("idle"), f(!1), m(null), g([]), v("all"), b(null), S(null), n.current && (n.current.value = "");
|
|
52723
52711
|
}, []);
|
|
52724
52712
|
F(() => {
|
|
@@ -52743,7 +52731,7 @@ function oR() {
|
|
|
52743
52731
|
u("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
|
|
52744
52732
|
return;
|
|
52745
52733
|
}
|
|
52746
|
-
if (e.size >
|
|
52734
|
+
if (e.size > qL) {
|
|
52747
52735
|
u("module_set"), b({ message: "File must be 10 MB or smaller." });
|
|
52748
52736
|
return;
|
|
52749
52737
|
}
|
|
@@ -52752,7 +52740,7 @@ function oR() {
|
|
|
52752
52740
|
size: e.size
|
|
52753
52741
|
}), u("encoding");
|
|
52754
52742
|
try {
|
|
52755
|
-
let r = await
|
|
52743
|
+
let r = await $L(e);
|
|
52756
52744
|
u("validating"), g((await wE({
|
|
52757
52745
|
filename: e.name,
|
|
52758
52746
|
project: t?.name ?? "",
|
|
@@ -52768,12 +52756,12 @@ function oR() {
|
|
|
52768
52756
|
}
|
|
52769
52757
|
}, M = async () => {
|
|
52770
52758
|
try {
|
|
52771
|
-
let e = await fetch(
|
|
52759
|
+
let e = await fetch(JL);
|
|
52772
52760
|
if (!e.ok) throw Error(`Template file not found (${e.status})`);
|
|
52773
52761
|
let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
|
|
52774
52762
|
for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
|
|
52775
52763
|
let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
|
|
52776
|
-
o.href = a, o.download =
|
|
52764
|
+
o.href = a, o.download = YL, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
|
|
52777
52765
|
} catch (e) {
|
|
52778
52766
|
console.error(e), q.error("Unable to download sample template.");
|
|
52779
52767
|
}
|
|
@@ -52784,7 +52772,7 @@ function oR() {
|
|
|
52784
52772
|
project: t?.name ?? "",
|
|
52785
52773
|
module: o,
|
|
52786
52774
|
uploaded_by: localStorage.getItem("user_Email") ?? "",
|
|
52787
|
-
rows:
|
|
52775
|
+
rows: eR(h)
|
|
52788
52776
|
})), u("done"), q.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
|
|
52789
52777
|
} catch (e) {
|
|
52790
52778
|
console.error(e), b(e.payload ?? {
|
|
@@ -52810,7 +52798,7 @@ function oR() {
|
|
|
52810
52798
|
align: "middle",
|
|
52811
52799
|
justify: "space-between",
|
|
52812
52800
|
className: "breadcrumb-action-wrapper",
|
|
52813
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
52801
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: QL }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(GL, {
|
|
52814
52802
|
strong: !0,
|
|
52815
52803
|
children: t.name
|
|
52816
52804
|
}) })]
|
|
@@ -52819,16 +52807,16 @@ function oR() {
|
|
|
52819
52807
|
children: [
|
|
52820
52808
|
/* @__PURE__ */ X("div", {
|
|
52821
52809
|
className: "bulk-header",
|
|
52822
|
-
children: [/* @__PURE__ */ Y(
|
|
52810
|
+
children: [/* @__PURE__ */ Y(KL, {
|
|
52823
52811
|
level: 3,
|
|
52824
52812
|
children: "Bulk upload test cases"
|
|
52825
52813
|
}), /* @__PURE__ */ X(U, {
|
|
52826
52814
|
direction: "vertical",
|
|
52827
52815
|
size: 4,
|
|
52828
|
-
children: [/* @__PURE__ */ Y(
|
|
52816
|
+
children: [/* @__PURE__ */ Y(GL, {
|
|
52829
52817
|
type: "secondary",
|
|
52830
|
-
children:
|
|
52831
|
-
}), /* @__PURE__ */ Y(
|
|
52818
|
+
children: XL
|
|
52819
|
+
}), /* @__PURE__ */ Y(GL, {
|
|
52832
52820
|
type: "secondary",
|
|
52833
52821
|
children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
|
|
52834
52822
|
})]
|
|
@@ -52926,7 +52914,7 @@ function oR() {
|
|
|
52926
52914
|
className: "v1-card zt-fall",
|
|
52927
52915
|
title: "3. Validation result",
|
|
52928
52916
|
children: [
|
|
52929
|
-
/* @__PURE__ */ Y(
|
|
52917
|
+
/* @__PURE__ */ Y(rR, {
|
|
52930
52918
|
errors: E,
|
|
52931
52919
|
expanded: C,
|
|
52932
52920
|
onToggle: () => w((e) => !e),
|
|
@@ -52938,7 +52926,7 @@ function oR() {
|
|
|
52938
52926
|
message: y.message,
|
|
52939
52927
|
className: "bulk-inline-alert"
|
|
52940
52928
|
}),
|
|
52941
|
-
/* @__PURE__ */ Y(
|
|
52929
|
+
/* @__PURE__ */ Y(iR, {
|
|
52942
52930
|
rows: h,
|
|
52943
52931
|
view: _,
|
|
52944
52932
|
onViewChange: v,
|
|
@@ -52961,17 +52949,17 @@ function oR() {
|
|
|
52961
52949
|
/* @__PURE__ */ Y(z, {
|
|
52962
52950
|
xs: 24,
|
|
52963
52951
|
md: 8,
|
|
52964
|
-
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
52952
|
+
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(GL, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: h.length })] })
|
|
52965
52953
|
}),
|
|
52966
52954
|
/* @__PURE__ */ Y(z, {
|
|
52967
52955
|
xs: 24,
|
|
52968
52956
|
md: 8,
|
|
52969
|
-
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
52957
|
+
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(GL, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
|
|
52970
52958
|
}),
|
|
52971
52959
|
/* @__PURE__ */ Y(z, {
|
|
52972
52960
|
xs: 24,
|
|
52973
52961
|
md: 8,
|
|
52974
|
-
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
52962
|
+
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(GL, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
|
|
52975
52963
|
})
|
|
52976
52964
|
]
|
|
52977
52965
|
}),
|
|
@@ -52995,7 +52983,7 @@ function oR() {
|
|
|
52995
52983
|
}
|
|
52996
52984
|
//#endregion
|
|
52997
52985
|
//#region src/services/dropdownValues/testPageValues.js
|
|
52998
|
-
var
|
|
52986
|
+
var oR = [
|
|
52999
52987
|
{
|
|
53000
52988
|
value: "navigate",
|
|
53001
52989
|
label: "Navigate"
|
|
@@ -53128,82 +53116,82 @@ var sR = [
|
|
|
53128
53116
|
value: "wait_for_text",
|
|
53129
53117
|
label: "Wait For Text"
|
|
53130
53118
|
}
|
|
53131
|
-
], { Text:
|
|
53119
|
+
], { Text: sR } = Yi, cR = [{
|
|
53132
53120
|
label: "Home",
|
|
53133
53121
|
href: "/"
|
|
53134
53122
|
}, {
|
|
53135
53123
|
label: "Test Cases",
|
|
53136
53124
|
href: "/test-cases"
|
|
53137
|
-
}],
|
|
53125
|
+
}], lR = {
|
|
53138
53126
|
tags: "regression",
|
|
53139
53127
|
active: 1
|
|
53140
|
-
},
|
|
53128
|
+
}, uR = { module: {
|
|
53141
53129
|
dbName: "Modules",
|
|
53142
53130
|
formField: "module",
|
|
53143
53131
|
label: "Module"
|
|
53144
53132
|
} };
|
|
53145
|
-
function
|
|
53133
|
+
function dR(e = []) {
|
|
53146
53134
|
return e.map((e) => ({
|
|
53147
53135
|
value: e,
|
|
53148
53136
|
label: e
|
|
53149
53137
|
}));
|
|
53150
53138
|
}
|
|
53151
|
-
function
|
|
53139
|
+
function fR(e = "") {
|
|
53152
53140
|
return String(e ?? "").trim();
|
|
53153
53141
|
}
|
|
53154
|
-
function
|
|
53155
|
-
return
|
|
53142
|
+
function pR(e = "") {
|
|
53143
|
+
return fR(e).toLowerCase();
|
|
53156
53144
|
}
|
|
53157
|
-
function
|
|
53145
|
+
function mR(e = []) {
|
|
53158
53146
|
let t = /* @__PURE__ */ new Map();
|
|
53159
53147
|
return e.forEach((e) => {
|
|
53160
|
-
let n =
|
|
53148
|
+
let n = fR(e?.flow), r = n.toLowerCase();
|
|
53161
53149
|
n && !t.has(r) && t.set(r, n);
|
|
53162
53150
|
}), Array.from(t.values()).map((e) => ({
|
|
53163
53151
|
value: e,
|
|
53164
53152
|
label: e
|
|
53165
53153
|
}));
|
|
53166
53154
|
}
|
|
53167
|
-
function
|
|
53168
|
-
let r =
|
|
53155
|
+
function hR(e = [], t, n) {
|
|
53156
|
+
let r = fR(t).toLowerCase(), i = fR(n).toLowerCase();
|
|
53169
53157
|
return e.reduce((e, t) => {
|
|
53170
|
-
let n =
|
|
53158
|
+
let n = fR(t?.module).toLowerCase(), a = fR(t?.flow).toLowerCase();
|
|
53171
53159
|
if (n !== r || a !== i) return e;
|
|
53172
53160
|
let o = Number(t?.step_order) || 0;
|
|
53173
53161
|
return Math.max(e, o);
|
|
53174
53162
|
}, 0) + 1;
|
|
53175
53163
|
}
|
|
53176
|
-
function
|
|
53164
|
+
function gR({ icon: e, title: t }) {
|
|
53177
53165
|
return /* @__PURE__ */ X(U, {
|
|
53178
53166
|
size: 10,
|
|
53179
53167
|
align: "center",
|
|
53180
53168
|
children: [/* @__PURE__ */ Y("div", {
|
|
53181
53169
|
className: "v1-section-icon-box",
|
|
53182
53170
|
children: e
|
|
53183
|
-
}), /* @__PURE__ */ Y(
|
|
53171
|
+
}), /* @__PURE__ */ Y(sR, {
|
|
53184
53172
|
strong: !0,
|
|
53185
53173
|
className: "v1-section-label",
|
|
53186
53174
|
children: t
|
|
53187
53175
|
})]
|
|
53188
53176
|
});
|
|
53189
53177
|
}
|
|
53190
|
-
function
|
|
53178
|
+
function _R() {
|
|
53191
53179
|
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({
|
|
53192
53180
|
open: !1,
|
|
53193
53181
|
typeKey: "module"
|
|
53194
|
-
}), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ns(), x =
|
|
53182
|
+
}), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ns(), x = uR[f.typeKey], S = I(() => dR(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!fR(C), E = !!fR(w), D = !T, O = !T || !E, k = (e, t = []) => {
|
|
53195
53183
|
e === "module" && r(t);
|
|
53196
53184
|
}, A = async () => {
|
|
53197
53185
|
l(!0);
|
|
53198
53186
|
try {
|
|
53199
|
-
r((await yE(
|
|
53187
|
+
r((await yE(uR.module.dbName))?.items ?? []);
|
|
53200
53188
|
} catch (e) {
|
|
53201
53189
|
console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
|
|
53202
53190
|
} finally {
|
|
53203
53191
|
l(!1);
|
|
53204
53192
|
}
|
|
53205
53193
|
}, j = ui(async (t) => {
|
|
53206
|
-
let n =
|
|
53194
|
+
let n = fR(t);
|
|
53207
53195
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
53208
53196
|
d(!0);
|
|
53209
53197
|
try {
|
|
@@ -53212,7 +53200,7 @@ function vR() {
|
|
|
53212
53200
|
offset: 0,
|
|
53213
53201
|
module: n
|
|
53214
53202
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
53215
|
-
a(t), s(
|
|
53203
|
+
a(t), s(mR(t));
|
|
53216
53204
|
} catch (e) {
|
|
53217
53205
|
console.error("Unable to load flows:", e), q.error("Unable to load flows.");
|
|
53218
53206
|
} finally {
|
|
@@ -53220,14 +53208,14 @@ function vR() {
|
|
|
53220
53208
|
}
|
|
53221
53209
|
}
|
|
53222
53210
|
}, [e]), ee = ui(async (t, n, r) => {
|
|
53223
|
-
let i =
|
|
53211
|
+
let i = fR(t), a = fR(n);
|
|
53224
53212
|
if (!i || !a) {
|
|
53225
53213
|
e.setFieldsValue({ step_order: void 0 });
|
|
53226
53214
|
return;
|
|
53227
53215
|
}
|
|
53228
53216
|
_(!0);
|
|
53229
53217
|
try {
|
|
53230
|
-
e.setFieldsValue({ step_order:
|
|
53218
|
+
e.setFieldsValue({ step_order: hR(r, i, a) });
|
|
53231
53219
|
} catch (e) {
|
|
53232
53220
|
console.error("Unable to load step order:", e), q.error("Unable to load step order.");
|
|
53233
53221
|
} finally {
|
|
@@ -53248,15 +53236,15 @@ function vR() {
|
|
|
53248
53236
|
]);
|
|
53249
53237
|
let te = async (t) => {
|
|
53250
53238
|
let n = {
|
|
53251
|
-
module:
|
|
53252
|
-
flow:
|
|
53239
|
+
module: fR(t.module),
|
|
53240
|
+
flow: fR(t.flow),
|
|
53253
53241
|
step_order: Number(t.step_order),
|
|
53254
|
-
description:
|
|
53255
|
-
keyword:
|
|
53256
|
-
target:
|
|
53257
|
-
value:
|
|
53258
|
-
expected:
|
|
53259
|
-
tags: t.tags ?
|
|
53242
|
+
description: fR(t.description),
|
|
53243
|
+
keyword: pR(t.keyword),
|
|
53244
|
+
target: fR(t.target),
|
|
53245
|
+
value: fR(t.value),
|
|
53246
|
+
expected: fR(t.expected),
|
|
53247
|
+
tags: t.tags ? fR(t.tags) : lR.tags,
|
|
53260
53248
|
active: Number(t.active)
|
|
53261
53249
|
};
|
|
53262
53250
|
y(!0);
|
|
@@ -53268,26 +53256,26 @@ function vR() {
|
|
|
53268
53256
|
y(!1);
|
|
53269
53257
|
}
|
|
53270
53258
|
}, M = (t, n) => {
|
|
53271
|
-
e.setFieldsValue({ [t]:
|
|
53259
|
+
e.setFieldsValue({ [t]: fR(n) });
|
|
53272
53260
|
}, ne = (t) => {
|
|
53273
53261
|
e.setFieldsValue({
|
|
53274
|
-
module:
|
|
53262
|
+
module: fR(t),
|
|
53275
53263
|
flow: void 0,
|
|
53276
53264
|
step_order: void 0,
|
|
53277
53265
|
keyword: void 0,
|
|
53278
53266
|
description: void 0,
|
|
53279
53267
|
target: void 0,
|
|
53280
|
-
tags:
|
|
53268
|
+
tags: lR.tags,
|
|
53281
53269
|
value: void 0,
|
|
53282
53270
|
expected: void 0
|
|
53283
53271
|
});
|
|
53284
53272
|
}, re = (t) => {
|
|
53285
53273
|
e.setFieldsValue({
|
|
53286
|
-
flow:
|
|
53274
|
+
flow: fR(t),
|
|
53287
53275
|
step_order: void 0
|
|
53288
53276
|
});
|
|
53289
53277
|
}, ie = (e) => {
|
|
53290
|
-
let n =
|
|
53278
|
+
let n = uR[e];
|
|
53291
53279
|
p({
|
|
53292
53280
|
open: !0,
|
|
53293
53281
|
typeKey: e
|
|
@@ -53302,7 +53290,7 @@ function vR() {
|
|
|
53302
53290
|
})), t.resetFields();
|
|
53303
53291
|
}, N = async () => {
|
|
53304
53292
|
try {
|
|
53305
|
-
let n =
|
|
53293
|
+
let n = fR((await t.validateFields()).name), r = await bE({
|
|
53306
53294
|
name: n,
|
|
53307
53295
|
type: x.dbName
|
|
53308
53296
|
});
|
|
@@ -53320,7 +53308,7 @@ function vR() {
|
|
|
53320
53308
|
align: "middle",
|
|
53321
53309
|
justify: "space-between",
|
|
53322
53310
|
className: "breadcrumb-action-wrapper",
|
|
53323
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
53311
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: cR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
53324
53312
|
type: "link",
|
|
53325
53313
|
onClick: () => b("/zinnext-home"),
|
|
53326
53314
|
children: "View Table"
|
|
@@ -53335,7 +53323,7 @@ function vR() {
|
|
|
53335
53323
|
children: /* @__PURE__ */ X(U, {
|
|
53336
53324
|
align: "center",
|
|
53337
53325
|
size: 10,
|
|
53338
|
-
children: [/* @__PURE__ */ Y(go, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(
|
|
53326
|
+
children: [/* @__PURE__ */ Y(go, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(sR, {
|
|
53339
53327
|
strong: !0,
|
|
53340
53328
|
style: { fontSize: 16 },
|
|
53341
53329
|
children: "Add Test Case"
|
|
@@ -53351,16 +53339,16 @@ function vR() {
|
|
|
53351
53339
|
className: "v1-required-mark",
|
|
53352
53340
|
children: " *"
|
|
53353
53341
|
})] }),
|
|
53354
|
-
initialValues:
|
|
53342
|
+
initialValues: lR,
|
|
53355
53343
|
onFinish: te,
|
|
53356
53344
|
autoComplete: "off",
|
|
53357
53345
|
children: [/* @__PURE__ */ Y(yi, {
|
|
53358
53346
|
className: "v1-card",
|
|
53359
|
-
title: /* @__PURE__ */ Y(
|
|
53347
|
+
title: /* @__PURE__ */ Y(gR, {
|
|
53360
53348
|
icon: /* @__PURE__ */ Y(Wa, {}),
|
|
53361
53349
|
title: "Test Case Details"
|
|
53362
53350
|
}),
|
|
53363
|
-
extra: /* @__PURE__ */ Y(
|
|
53351
|
+
extra: /* @__PURE__ */ Y(sR, {
|
|
53364
53352
|
type: "secondary",
|
|
53365
53353
|
className: "v1-card-subtitle",
|
|
53366
53354
|
children: "Module, flow, step order and execution data"
|
|
@@ -53437,8 +53425,8 @@ function vR() {
|
|
|
53437
53425
|
disabled: O,
|
|
53438
53426
|
optionFilterProp: "label",
|
|
53439
53427
|
placeholder: "Select action",
|
|
53440
|
-
options:
|
|
53441
|
-
onChange: (t) => e.setFieldsValue({ keyword:
|
|
53428
|
+
options: oR,
|
|
53429
|
+
onChange: (t) => e.setFieldsValue({ keyword: pR(t) })
|
|
53442
53430
|
})
|
|
53443
53431
|
})
|
|
53444
53432
|
}),
|
|
@@ -53558,7 +53546,7 @@ function vR() {
|
|
|
53558
53546
|
maxLength: 100,
|
|
53559
53547
|
placeholder: `Enter ${x.label.toLowerCase()} name`,
|
|
53560
53548
|
onBlur: (e) => {
|
|
53561
|
-
t.setFieldsValue({ name:
|
|
53549
|
+
t.setFieldsValue({ name: fR(e.target.value) });
|
|
53562
53550
|
}
|
|
53563
53551
|
})
|
|
53564
53552
|
}), /* @__PURE__ */ Y(B.Item, {
|
|
@@ -53575,23 +53563,23 @@ function vR() {
|
|
|
53575
53563
|
}
|
|
53576
53564
|
//#endregion
|
|
53577
53565
|
//#region src/pages/TestingPage/ZinnextTestForm.jsx
|
|
53578
|
-
var { Text:
|
|
53566
|
+
var { Text: vR } = Yi, yR = [{
|
|
53579
53567
|
label: "Home",
|
|
53580
53568
|
href: "/"
|
|
53581
53569
|
}, {
|
|
53582
53570
|
label: "Test Cases",
|
|
53583
53571
|
href: "/addTestCase"
|
|
53584
53572
|
}];
|
|
53585
|
-
function
|
|
53573
|
+
function bR(e = "") {
|
|
53586
53574
|
return String(e ?? "").trim();
|
|
53587
53575
|
}
|
|
53588
|
-
function
|
|
53576
|
+
function xR(e = [], t) {
|
|
53589
53577
|
return e.map((e) => ({
|
|
53590
53578
|
value: e.id,
|
|
53591
53579
|
label: e[t]
|
|
53592
53580
|
}));
|
|
53593
53581
|
}
|
|
53594
|
-
var
|
|
53582
|
+
var SR = [
|
|
53595
53583
|
{
|
|
53596
53584
|
label: "Step",
|
|
53597
53585
|
value: "step_order",
|
|
@@ -53630,22 +53618,22 @@ var CR = [
|
|
|
53630
53618
|
children: "Negative"
|
|
53631
53619
|
})
|
|
53632
53620
|
}
|
|
53633
|
-
],
|
|
53621
|
+
], CR = {
|
|
53634
53622
|
key: !1,
|
|
53635
53623
|
value: !1,
|
|
53636
53624
|
expected: !1
|
|
53637
53625
|
};
|
|
53638
|
-
function
|
|
53639
|
-
return t ? e[t] ??
|
|
53626
|
+
function wR(e, t) {
|
|
53627
|
+
return t ? e[t] ?? CR : CR;
|
|
53640
53628
|
}
|
|
53641
|
-
function
|
|
53629
|
+
function TR(e, t) {
|
|
53642
53630
|
e.setFields(t.map((e) => ({
|
|
53643
53631
|
name: e,
|
|
53644
53632
|
errors: []
|
|
53645
53633
|
})));
|
|
53646
53634
|
}
|
|
53647
|
-
function
|
|
53648
|
-
let [e] = B.useForm(), t = ns(), [n] = is(), r = n.get("edit"), i = !!r, a = I(() => c(), []), [o, s] = L([]), [l, u] = L([]), [d, f] = L([]), [p, m] = L(
|
|
53635
|
+
function ER() {
|
|
53636
|
+
let [e] = B.useForm(), t = ns(), [n] = is(), r = n.get("edit"), i = !!r, a = I(() => c(), []), [o, s] = L([]), [l, u] = L([]), [d, f] = L([]), [p, m] = L(oR), [h, g] = L({}), [_, 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(() => wR(h, k), [h, k]), te = I(() => xR(o, "modulename"), [o]), M = I(() => xR(l, "submodulename"), [l]), ne = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), re = I(() => l.find((e) => e.id === O)?.submodulename ?? "", [O, l]), ie = ui(async () => {
|
|
53649
53637
|
try {
|
|
53650
53638
|
let e = await xE();
|
|
53651
53639
|
Array.isArray(e?.options) && e.options.length > 0 && m(e.options), e?.rules && typeof e.rules == "object" && g(e.rules);
|
|
@@ -53786,10 +53774,10 @@ function DR() {
|
|
|
53786
53774
|
align: "middle",
|
|
53787
53775
|
justify: "space-between",
|
|
53788
53776
|
className: "breadcrumb-action-wrapper",
|
|
53789
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
53777
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: yR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
|
|
53790
53778
|
size: 6,
|
|
53791
53779
|
className: "zt-section-title",
|
|
53792
|
-
children: [/* @__PURE__ */ Y(_o, {}), /* @__PURE__ */ Y(
|
|
53780
|
+
children: [/* @__PURE__ */ Y(_o, {}), /* @__PURE__ */ Y(vR, {
|
|
53793
53781
|
strong: !0,
|
|
53794
53782
|
children: a.name
|
|
53795
53783
|
})]
|
|
@@ -53810,11 +53798,11 @@ function DR() {
|
|
|
53810
53798
|
product_parent_ID: Number(a?.id),
|
|
53811
53799
|
module_parent_ID: Number(n.module),
|
|
53812
53800
|
submodule_parent_ID: Number(n.submodule),
|
|
53813
|
-
description:
|
|
53814
|
-
actions:
|
|
53815
|
-
key:
|
|
53816
|
-
value:
|
|
53817
|
-
expected:
|
|
53801
|
+
description: bR(n.description),
|
|
53802
|
+
actions: bR(n.actions),
|
|
53803
|
+
key: bR(n.key),
|
|
53804
|
+
value: bR(n.value),
|
|
53805
|
+
expected: bR(n.expected),
|
|
53818
53806
|
scenario: +!!n.scenario,
|
|
53819
53807
|
active: +!!n.active
|
|
53820
53808
|
};
|
|
@@ -53880,7 +53868,7 @@ function DR() {
|
|
|
53880
53868
|
key: void 0,
|
|
53881
53869
|
value: void 0,
|
|
53882
53870
|
expected: void 0
|
|
53883
|
-
}),
|
|
53871
|
+
}), TR(e, [
|
|
53884
53872
|
"actions",
|
|
53885
53873
|
"key",
|
|
53886
53874
|
"value",
|
|
@@ -53911,7 +53899,7 @@ function DR() {
|
|
|
53911
53899
|
key: void 0,
|
|
53912
53900
|
value: void 0,
|
|
53913
53901
|
expected: void 0
|
|
53914
|
-
}),
|
|
53902
|
+
}), TR(e, [
|
|
53915
53903
|
"actions",
|
|
53916
53904
|
"key",
|
|
53917
53905
|
"value",
|
|
@@ -53965,7 +53953,7 @@ function DR() {
|
|
|
53965
53953
|
/* @__PURE__ */ Y("span", { children: "Step Details" })
|
|
53966
53954
|
]
|
|
53967
53955
|
}),
|
|
53968
|
-
extra: /* @__PURE__ */ X(
|
|
53956
|
+
extra: /* @__PURE__ */ X(vR, {
|
|
53969
53957
|
type: "secondary",
|
|
53970
53958
|
children: [
|
|
53971
53959
|
ne,
|
|
@@ -54005,13 +53993,13 @@ function DR() {
|
|
|
54005
53993
|
placeholder: "Select action",
|
|
54006
53994
|
options: p,
|
|
54007
53995
|
onChange: (t) => {
|
|
54008
|
-
let n =
|
|
53996
|
+
let n = wR(h, t);
|
|
54009
53997
|
e.setFieldsValue({
|
|
54010
53998
|
actions: t,
|
|
54011
53999
|
key: n.key ? e.getFieldValue("key") : void 0,
|
|
54012
54000
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
54013
54001
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
54014
|
-
}),
|
|
54002
|
+
}), TR(e, [
|
|
54015
54003
|
"key",
|
|
54016
54004
|
"value",
|
|
54017
54005
|
"expected"
|
|
@@ -54120,7 +54108,7 @@ function DR() {
|
|
|
54120
54108
|
children: /* @__PURE__ */ Y(Xx, {
|
|
54121
54109
|
listName: "Added Steps",
|
|
54122
54110
|
loading: x,
|
|
54123
|
-
fields:
|
|
54111
|
+
fields: SR,
|
|
54124
54112
|
dataSource: d,
|
|
54125
54113
|
current: 1,
|
|
54126
54114
|
pageSize: Math.max(d.length, 1),
|
|
@@ -54136,7 +54124,7 @@ function DR() {
|
|
|
54136
54124
|
}
|
|
54137
54125
|
//#endregion
|
|
54138
54126
|
//#region src/pages/TestingPage/ManageModules.jsx
|
|
54139
|
-
var { Text:
|
|
54127
|
+
var { Text: DR } = Yi, OR = [
|
|
54140
54128
|
{
|
|
54141
54129
|
label: "Home",
|
|
54142
54130
|
href: "/"
|
|
@@ -54150,7 +54138,7 @@ var { Text: OR } = Yi, kR = [
|
|
|
54150
54138
|
href: "/manageModules"
|
|
54151
54139
|
}
|
|
54152
54140
|
];
|
|
54153
|
-
function
|
|
54141
|
+
function kR() {
|
|
54154
54142
|
let e = ns(), t = I(() => c(), []), [n, r] = L([]), [i, a] = L({}), [o, s] = L(!1), [l, u] = L(!1), [d, f] = L(""), [p, m] = L(!1), [h, g] = L(1), [_, v] = L(10), y = ui(async (e) => {
|
|
54155
54143
|
if (!e) {
|
|
54156
54144
|
r([]);
|
|
@@ -54218,7 +54206,7 @@ function AR() {
|
|
|
54218
54206
|
align: "middle",
|
|
54219
54207
|
justify: "space-between",
|
|
54220
54208
|
className: "breadcrumb-action-wrapper",
|
|
54221
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
54209
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: OR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
54222
54210
|
type: "link",
|
|
54223
54211
|
onClick: () => e("/addTestCase"),
|
|
54224
54212
|
children: "Back to Form"
|
|
@@ -54238,7 +54226,7 @@ function AR() {
|
|
|
54238
54226
|
children: [
|
|
54239
54227
|
/* @__PURE__ */ Y(_o, {}),
|
|
54240
54228
|
/* @__PURE__ */ Y("span", { children: "Project:" }),
|
|
54241
|
-
/* @__PURE__ */ Y(
|
|
54229
|
+
/* @__PURE__ */ Y(DR, {
|
|
54242
54230
|
strong: !0,
|
|
54243
54231
|
children: t.name
|
|
54244
54232
|
})
|
|
@@ -54314,7 +54302,7 @@ function AR() {
|
|
|
54314
54302
|
children: /* @__PURE__ */ X(U, {
|
|
54315
54303
|
direction: "vertical",
|
|
54316
54304
|
className: "zt-modal-stack",
|
|
54317
|
-
children: [/* @__PURE__ */ X(
|
|
54305
|
+
children: [/* @__PURE__ */ X(DR, {
|
|
54318
54306
|
type: "secondary",
|
|
54319
54307
|
children: ["Project: ", /* @__PURE__ */ Y("b", { children: t.name })]
|
|
54320
54308
|
}), /* @__PURE__ */ Y(V, {
|
|
@@ -54331,7 +54319,7 @@ function AR() {
|
|
|
54331
54319
|
}
|
|
54332
54320
|
//#endregion
|
|
54333
54321
|
//#region src/pages/TestingPage/ManageSubmodules.jsx
|
|
54334
|
-
var { Text:
|
|
54322
|
+
var { Text: AR } = Yi, jR = [
|
|
54335
54323
|
{
|
|
54336
54324
|
label: "Home",
|
|
54337
54325
|
href: "/"
|
|
@@ -54349,7 +54337,7 @@ var { Text: jR } = Yi, MR = [
|
|
|
54349
54337
|
href: "/test-cases/zinnext/submodules"
|
|
54350
54338
|
}
|
|
54351
54339
|
];
|
|
54352
|
-
function
|
|
54340
|
+
function MR() {
|
|
54353
54341
|
let e = ns(), [t] = is(), n = I(() => c(), []), r = t.get("module") ?? "", [i, a] = L([]), [o, s] = L(!1), [l, u] = L(!1), [d, f] = L(""), [p, m] = L(!1), [h, g] = L(1), [_, v] = L(10), y = ui(async (e, t) => {
|
|
54354
54342
|
if (!e || !t) {
|
|
54355
54343
|
a([]);
|
|
@@ -54418,7 +54406,7 @@ function NR() {
|
|
|
54418
54406
|
align: "middle",
|
|
54419
54407
|
justify: "space-between",
|
|
54420
54408
|
className: "breadcrumb-action-wrapper",
|
|
54421
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
54409
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: jR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
54422
54410
|
type: "link",
|
|
54423
54411
|
onClick: () => e("/manageModules"),
|
|
54424
54412
|
children: "Back to Modules"
|
|
@@ -54441,7 +54429,7 @@ function NR() {
|
|
|
54441
54429
|
children: [
|
|
54442
54430
|
/* @__PURE__ */ Y(_o, {}),
|
|
54443
54431
|
/* @__PURE__ */ Y("span", { children: "Project:" }),
|
|
54444
|
-
/* @__PURE__ */ Y(
|
|
54432
|
+
/* @__PURE__ */ Y(AR, {
|
|
54445
54433
|
strong: !0,
|
|
54446
54434
|
children: n.name
|
|
54447
54435
|
})
|
|
@@ -54451,7 +54439,7 @@ function NR() {
|
|
|
54451
54439
|
children: [
|
|
54452
54440
|
/* @__PURE__ */ Y(ta, {}),
|
|
54453
54441
|
/* @__PURE__ */ Y("span", { children: "Module:" }),
|
|
54454
|
-
/* @__PURE__ */ Y(
|
|
54442
|
+
/* @__PURE__ */ Y(AR, {
|
|
54455
54443
|
strong: !0,
|
|
54456
54444
|
children: r
|
|
54457
54445
|
})
|
|
@@ -54514,7 +54502,7 @@ function NR() {
|
|
|
54514
54502
|
children: /* @__PURE__ */ X(U, {
|
|
54515
54503
|
direction: "vertical",
|
|
54516
54504
|
className: "zt-modal-stack",
|
|
54517
|
-
children: [/* @__PURE__ */ X(
|
|
54505
|
+
children: [/* @__PURE__ */ X(AR, {
|
|
54518
54506
|
type: "secondary",
|
|
54519
54507
|
children: [
|
|
54520
54508
|
"Project: ",
|
|
@@ -54536,7 +54524,7 @@ function NR() {
|
|
|
54536
54524
|
}
|
|
54537
54525
|
//#endregion
|
|
54538
54526
|
//#region src/pages/TestingPage/ZinnextTableView.jsx
|
|
54539
|
-
var { Text:
|
|
54527
|
+
var { Text: NR } = Yi, PR = [
|
|
54540
54528
|
{
|
|
54541
54529
|
label: "Home",
|
|
54542
54530
|
href: "/"
|
|
@@ -54550,7 +54538,7 @@ var { Text: PR } = Yi, FR = [
|
|
|
54550
54538
|
href: "/viewTestCase"
|
|
54551
54539
|
}
|
|
54552
54540
|
];
|
|
54553
|
-
function
|
|
54541
|
+
function FR() {
|
|
54554
54542
|
let e = ns(), [t, n] = L([]), [r, i] = L(0), [a, o] = L(!1), s = I(() => c(), []), [l, u] = L(""), [d, f] = L(1), [p, m] = L(20), [h, g] = L(null), _ = ui(async (e = {}) => {
|
|
54555
54543
|
o(!0);
|
|
54556
54544
|
try {
|
|
@@ -54610,7 +54598,7 @@ function IR() {
|
|
|
54610
54598
|
align: "middle",
|
|
54611
54599
|
justify: "space-between",
|
|
54612
54600
|
className: "breadcrumb-action-wrapper",
|
|
54613
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
54601
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: PR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
54614
54602
|
type: "link",
|
|
54615
54603
|
onClick: () => e("/addTestCase"),
|
|
54616
54604
|
children: "Back to Form"
|
|
@@ -54624,7 +54612,7 @@ function IR() {
|
|
|
54624
54612
|
className: "zt-section-title",
|
|
54625
54613
|
children: [/* @__PURE__ */ Y(Po, {}), /* @__PURE__ */ Y("span", { children: "Test Flows" })]
|
|
54626
54614
|
}),
|
|
54627
|
-
extra: /* @__PURE__ */ X(
|
|
54615
|
+
extra: /* @__PURE__ */ X(NR, {
|
|
54628
54616
|
type: "secondary",
|
|
54629
54617
|
children: [r, " row(s)"]
|
|
54630
54618
|
}),
|
|
@@ -54778,17 +54766,17 @@ function IR() {
|
|
|
54778
54766
|
}
|
|
54779
54767
|
//#endregion
|
|
54780
54768
|
//#region src/pages/TestingPage/testHomePage.jsx
|
|
54781
|
-
var
|
|
54769
|
+
var IR = [{
|
|
54782
54770
|
label: "Home",
|
|
54783
54771
|
href: "/"
|
|
54784
54772
|
}, {
|
|
54785
54773
|
label: "Test Cases",
|
|
54786
54774
|
href: "/test-cases"
|
|
54787
54775
|
}];
|
|
54788
|
-
function
|
|
54776
|
+
function LR() {
|
|
54789
54777
|
return /* @__PURE__ */ X("main", {
|
|
54790
54778
|
className: "jobs-list-page",
|
|
54791
|
-
children: [/* @__PURE__ */ Y(kr, { items:
|
|
54779
|
+
children: [/* @__PURE__ */ Y(kr, { items: IR }), /* @__PURE__ */ Y(vm, {
|
|
54792
54780
|
moduleName: "test-flows",
|
|
54793
54781
|
rowKey: "id"
|
|
54794
54782
|
})]
|
|
@@ -54796,85 +54784,85 @@ function RR() {
|
|
|
54796
54784
|
}
|
|
54797
54785
|
//#endregion
|
|
54798
54786
|
//#region src/pages/TestingPage/lms-test-form.jsx
|
|
54799
|
-
var { Text:
|
|
54787
|
+
var { Text: RR } = Yi, zR = [{
|
|
54800
54788
|
label: "Home",
|
|
54801
54789
|
href: "/"
|
|
54802
54790
|
}, {
|
|
54803
54791
|
label: "LMS Cases",
|
|
54804
54792
|
href: "/lms-cases"
|
|
54805
|
-
}],
|
|
54793
|
+
}], BR = {
|
|
54806
54794
|
tags: "regression",
|
|
54807
54795
|
active: 1
|
|
54808
|
-
},
|
|
54796
|
+
}, VR = { module: {
|
|
54809
54797
|
dbName: "Modules",
|
|
54810
54798
|
formField: "module",
|
|
54811
54799
|
label: "Module"
|
|
54812
|
-
} },
|
|
54800
|
+
} }, HR = {
|
|
54813
54801
|
key: !1,
|
|
54814
54802
|
value: !1,
|
|
54815
54803
|
expected: !1
|
|
54816
54804
|
};
|
|
54817
|
-
function
|
|
54818
|
-
return t ? e[t] ??
|
|
54805
|
+
function UR(e, t) {
|
|
54806
|
+
return t ? e[t] ?? HR : HR;
|
|
54819
54807
|
}
|
|
54820
|
-
function
|
|
54808
|
+
function WR(e, t) {
|
|
54821
54809
|
e.setFields(t.map((e) => ({
|
|
54822
54810
|
name: e,
|
|
54823
54811
|
errors: []
|
|
54824
54812
|
})));
|
|
54825
54813
|
}
|
|
54826
|
-
function
|
|
54814
|
+
function GR(e = []) {
|
|
54827
54815
|
return e.map((e) => ({
|
|
54828
54816
|
value: e,
|
|
54829
54817
|
label: e
|
|
54830
54818
|
}));
|
|
54831
54819
|
}
|
|
54832
|
-
function
|
|
54820
|
+
function KR(e = "") {
|
|
54833
54821
|
return String(e ?? "").trim();
|
|
54834
54822
|
}
|
|
54835
|
-
function
|
|
54823
|
+
function qR(e = []) {
|
|
54836
54824
|
let t = /* @__PURE__ */ new Map();
|
|
54837
54825
|
return e.forEach((e) => {
|
|
54838
|
-
let n =
|
|
54826
|
+
let n = KR(e?.flow), r = n.toLowerCase();
|
|
54839
54827
|
n && !t.has(r) && t.set(r, n);
|
|
54840
54828
|
}), Array.from(t.values()).map((e) => ({
|
|
54841
54829
|
value: e,
|
|
54842
54830
|
label: e
|
|
54843
54831
|
}));
|
|
54844
54832
|
}
|
|
54845
|
-
function
|
|
54846
|
-
let r =
|
|
54833
|
+
function JR(e = [], t, n) {
|
|
54834
|
+
let r = KR(t).toLowerCase(), i = KR(n).toLowerCase();
|
|
54847
54835
|
return e.reduce((e, t) => {
|
|
54848
|
-
let n =
|
|
54836
|
+
let n = KR(t?.module).toLowerCase(), a = KR(t?.flow).toLowerCase();
|
|
54849
54837
|
if (n !== r || a !== i) return e;
|
|
54850
54838
|
let o = Number(t?.step_order) || 0;
|
|
54851
54839
|
return Math.max(e, o);
|
|
54852
54840
|
}, 0) + 1;
|
|
54853
54841
|
}
|
|
54854
|
-
function
|
|
54842
|
+
function YR({ icon: e, title: t }) {
|
|
54855
54843
|
return /* @__PURE__ */ X(U, {
|
|
54856
54844
|
size: 10,
|
|
54857
54845
|
align: "center",
|
|
54858
54846
|
children: [/* @__PURE__ */ Y("div", {
|
|
54859
54847
|
className: "v1-section-icon-box",
|
|
54860
54848
|
children: e
|
|
54861
|
-
}), /* @__PURE__ */ Y(
|
|
54849
|
+
}), /* @__PURE__ */ Y(RR, {
|
|
54862
54850
|
strong: !0,
|
|
54863
54851
|
className: "v1-section-label",
|
|
54864
54852
|
children: t
|
|
54865
54853
|
})]
|
|
54866
54854
|
});
|
|
54867
54855
|
}
|
|
54868
|
-
function
|
|
54869
|
-
let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(
|
|
54856
|
+
function XR() {
|
|
54857
|
+
let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(oR), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
|
|
54870
54858
|
open: !1,
|
|
54871
54859
|
typeKey: "module"
|
|
54872
|
-
}), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ns(), T =
|
|
54860
|
+
}), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ns(), T = VR[g.typeKey], E = I(() => GR(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!KR(D), j = !!KR(O), ee = !A, te = !A || !j, M = I(() => UR(u, k), [u, k]), ne = (e, t = []) => {
|
|
54873
54861
|
e === "module" && r(t);
|
|
54874
54862
|
}, re = async () => {
|
|
54875
54863
|
p(!0);
|
|
54876
54864
|
try {
|
|
54877
|
-
r((await yE(
|
|
54865
|
+
r((await yE(VR.module.dbName))?.items ?? []);
|
|
54878
54866
|
} catch (e) {
|
|
54879
54867
|
console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
|
|
54880
54868
|
} finally {
|
|
@@ -54888,7 +54876,7 @@ function ZR() {
|
|
|
54888
54876
|
console.error("Unable to load action field rules:", e), q.error("Unable to load action validation rules.");
|
|
54889
54877
|
}
|
|
54890
54878
|
}, ae = ui(async (t) => {
|
|
54891
|
-
let n =
|
|
54879
|
+
let n = KR(t);
|
|
54892
54880
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
54893
54881
|
h(!0);
|
|
54894
54882
|
try {
|
|
@@ -54897,7 +54885,7 @@ function ZR() {
|
|
|
54897
54885
|
offset: 0,
|
|
54898
54886
|
module: n
|
|
54899
54887
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
54900
|
-
a(t), s(
|
|
54888
|
+
a(t), s(qR(t));
|
|
54901
54889
|
} catch (e) {
|
|
54902
54890
|
console.error("Unable to load flows:", e), q.error("Unable to load flows.");
|
|
54903
54891
|
} finally {
|
|
@@ -54905,14 +54893,14 @@ function ZR() {
|
|
|
54905
54893
|
}
|
|
54906
54894
|
}
|
|
54907
54895
|
}, [e]), N = ui(async (t, n, r) => {
|
|
54908
|
-
let i =
|
|
54896
|
+
let i = KR(t), a = KR(n);
|
|
54909
54897
|
if (!i || !a) {
|
|
54910
54898
|
e.setFieldsValue({ step_order: void 0 });
|
|
54911
54899
|
return;
|
|
54912
54900
|
}
|
|
54913
54901
|
x(!0);
|
|
54914
54902
|
try {
|
|
54915
|
-
e.setFieldsValue({ step_order:
|
|
54903
|
+
e.setFieldsValue({ step_order: JR(r, i, a) });
|
|
54916
54904
|
} catch (e) {
|
|
54917
54905
|
console.error("Unable to load step order:", e), q.error("Unable to load step order.");
|
|
54918
54906
|
} finally {
|
|
@@ -54935,15 +54923,15 @@ function ZR() {
|
|
|
54935
54923
|
]);
|
|
54936
54924
|
let oe = async (t) => {
|
|
54937
54925
|
let n = {
|
|
54938
|
-
module:
|
|
54939
|
-
flow:
|
|
54926
|
+
module: KR(t.module),
|
|
54927
|
+
flow: KR(t.flow),
|
|
54940
54928
|
step_order: Number(t.step_order),
|
|
54941
|
-
description:
|
|
54942
|
-
keyword:
|
|
54943
|
-
target:
|
|
54944
|
-
value:
|
|
54945
|
-
expected:
|
|
54946
|
-
tags: t.tags ?
|
|
54929
|
+
description: KR(t.description),
|
|
54930
|
+
keyword: KR(t.keyword),
|
|
54931
|
+
target: KR(t.target),
|
|
54932
|
+
value: KR(t.value),
|
|
54933
|
+
expected: KR(t.expected),
|
|
54934
|
+
tags: t.tags ? KR(t.tags) : BR.tags,
|
|
54947
54935
|
active: Number(t.active)
|
|
54948
54936
|
};
|
|
54949
54937
|
C(!0);
|
|
@@ -54955,19 +54943,19 @@ function ZR() {
|
|
|
54955
54943
|
C(!1);
|
|
54956
54944
|
}
|
|
54957
54945
|
}, se = (t, n) => {
|
|
54958
|
-
e.setFieldsValue({ [t]:
|
|
54946
|
+
e.setFieldsValue({ [t]: KR(n) });
|
|
54959
54947
|
}, ce = (t) => {
|
|
54960
54948
|
e.setFieldsValue({
|
|
54961
|
-
module:
|
|
54949
|
+
module: KR(t),
|
|
54962
54950
|
flow: void 0,
|
|
54963
54951
|
step_order: void 0,
|
|
54964
54952
|
keyword: void 0,
|
|
54965
54953
|
description: void 0,
|
|
54966
54954
|
target: void 0,
|
|
54967
|
-
tags:
|
|
54955
|
+
tags: BR.tags,
|
|
54968
54956
|
value: void 0,
|
|
54969
54957
|
expected: void 0
|
|
54970
|
-
}),
|
|
54958
|
+
}), WR(e, [
|
|
54971
54959
|
"keyword",
|
|
54972
54960
|
"target",
|
|
54973
54961
|
"value",
|
|
@@ -54975,32 +54963,32 @@ function ZR() {
|
|
|
54975
54963
|
]);
|
|
54976
54964
|
}, le = (t) => {
|
|
54977
54965
|
e.setFieldsValue({
|
|
54978
|
-
flow:
|
|
54966
|
+
flow: KR(t),
|
|
54979
54967
|
step_order: void 0,
|
|
54980
54968
|
keyword: void 0,
|
|
54981
54969
|
target: void 0,
|
|
54982
54970
|
value: void 0,
|
|
54983
54971
|
expected: void 0
|
|
54984
|
-
}),
|
|
54972
|
+
}), WR(e, [
|
|
54985
54973
|
"keyword",
|
|
54986
54974
|
"target",
|
|
54987
54975
|
"value",
|
|
54988
54976
|
"expected"
|
|
54989
54977
|
]);
|
|
54990
54978
|
}, ue = (t) => {
|
|
54991
|
-
let n =
|
|
54979
|
+
let n = UR(u, t);
|
|
54992
54980
|
e.setFieldsValue({
|
|
54993
|
-
keyword:
|
|
54981
|
+
keyword: KR(t),
|
|
54994
54982
|
target: n.key ? e.getFieldValue("target") : void 0,
|
|
54995
54983
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
54996
54984
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
54997
|
-
}),
|
|
54985
|
+
}), WR(e, [
|
|
54998
54986
|
"target",
|
|
54999
54987
|
"value",
|
|
55000
54988
|
"expected"
|
|
55001
54989
|
]);
|
|
55002
54990
|
}, de = (e) => {
|
|
55003
|
-
let n =
|
|
54991
|
+
let n = VR[e];
|
|
55004
54992
|
_({
|
|
55005
54993
|
open: !0,
|
|
55006
54994
|
typeKey: e
|
|
@@ -55015,7 +55003,7 @@ function ZR() {
|
|
|
55015
55003
|
})), t.resetFields();
|
|
55016
55004
|
}, fe = async () => {
|
|
55017
55005
|
try {
|
|
55018
|
-
let n =
|
|
55006
|
+
let n = KR((await t.validateFields()).name), r = await bE({
|
|
55019
55007
|
name: n,
|
|
55020
55008
|
type: T.dbName
|
|
55021
55009
|
});
|
|
@@ -55033,7 +55021,7 @@ function ZR() {
|
|
|
55033
55021
|
align: "middle",
|
|
55034
55022
|
justify: "space-between",
|
|
55035
55023
|
className: "breadcrumb-action-wrapper",
|
|
55036
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
55024
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: zR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
55037
55025
|
type: "link",
|
|
55038
55026
|
onClick: () => w("/lms-home"),
|
|
55039
55027
|
children: "View Table"
|
|
@@ -55048,7 +55036,7 @@ function ZR() {
|
|
|
55048
55036
|
children: /* @__PURE__ */ X(U, {
|
|
55049
55037
|
align: "center",
|
|
55050
55038
|
size: 10,
|
|
55051
|
-
children: [/* @__PURE__ */ Y(go, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(
|
|
55039
|
+
children: [/* @__PURE__ */ Y(go, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(RR, {
|
|
55052
55040
|
strong: !0,
|
|
55053
55041
|
style: { fontSize: 16 },
|
|
55054
55042
|
children: "Add LMS Case"
|
|
@@ -55064,16 +55052,16 @@ function ZR() {
|
|
|
55064
55052
|
className: "v1-required-mark",
|
|
55065
55053
|
children: " *"
|
|
55066
55054
|
})] }),
|
|
55067
|
-
initialValues:
|
|
55055
|
+
initialValues: BR,
|
|
55068
55056
|
onFinish: oe,
|
|
55069
55057
|
autoComplete: "off",
|
|
55070
55058
|
children: [/* @__PURE__ */ Y(yi, {
|
|
55071
55059
|
className: "v1-card",
|
|
55072
|
-
title: /* @__PURE__ */ Y(
|
|
55060
|
+
title: /* @__PURE__ */ Y(YR, {
|
|
55073
55061
|
icon: /* @__PURE__ */ Y(Wa, {}),
|
|
55074
55062
|
title: "LMS Case Details"
|
|
55075
55063
|
}),
|
|
55076
|
-
extra: /* @__PURE__ */ Y(
|
|
55064
|
+
extra: /* @__PURE__ */ Y(RR, {
|
|
55077
55065
|
type: "secondary",
|
|
55078
55066
|
className: "v1-card-subtitle",
|
|
55079
55067
|
children: "Module, flow, step order and execution data"
|
|
@@ -55283,7 +55271,7 @@ function ZR() {
|
|
|
55283
55271
|
maxLength: 100,
|
|
55284
55272
|
placeholder: `Enter ${T.label.toLowerCase()} name`,
|
|
55285
55273
|
onBlur: (e) => {
|
|
55286
|
-
t.setFieldsValue({ name:
|
|
55274
|
+
t.setFieldsValue({ name: KR(e.target.value) });
|
|
55287
55275
|
}
|
|
55288
55276
|
})
|
|
55289
55277
|
}), /* @__PURE__ */ Y(B.Item, {
|
|
@@ -55300,17 +55288,17 @@ function ZR() {
|
|
|
55300
55288
|
}
|
|
55301
55289
|
//#endregion
|
|
55302
55290
|
//#region src/pages/TestingPage/lmsHomePage.jsx
|
|
55303
|
-
var
|
|
55291
|
+
var ZR = [{
|
|
55304
55292
|
label: "Home",
|
|
55305
55293
|
href: "/"
|
|
55306
55294
|
}, {
|
|
55307
55295
|
label: "LMS Cases",
|
|
55308
55296
|
href: "/lms-cases"
|
|
55309
55297
|
}];
|
|
55310
|
-
function
|
|
55298
|
+
function QR() {
|
|
55311
55299
|
return /* @__PURE__ */ X("main", {
|
|
55312
55300
|
className: "jobs-list-page",
|
|
55313
|
-
children: [/* @__PURE__ */ Y(kr, { items:
|
|
55301
|
+
children: [/* @__PURE__ */ Y(kr, { items: ZR }), /* @__PURE__ */ Y(vm, {
|
|
55314
55302
|
moduleName: "lms-flows",
|
|
55315
55303
|
rowKey: "id"
|
|
55316
55304
|
})]
|
|
@@ -55318,7 +55306,7 @@ function $R() {
|
|
|
55318
55306
|
}
|
|
55319
55307
|
//#endregion
|
|
55320
55308
|
//#region src/services/mergedListApi.js
|
|
55321
|
-
var
|
|
55309
|
+
var $R = [
|
|
55322
55310
|
"referenceId",
|
|
55323
55311
|
"ReferenceId",
|
|
55324
55312
|
"candidateId",
|
|
@@ -55329,7 +55317,7 @@ var ez = [
|
|
|
55329
55317
|
"Id",
|
|
55330
55318
|
"_id"
|
|
55331
55319
|
];
|
|
55332
|
-
function
|
|
55320
|
+
function ez(e = $R) {
|
|
55333
55321
|
return function(t) {
|
|
55334
55322
|
if (!t || typeof t != "object") return "";
|
|
55335
55323
|
for (let n of e) {
|
|
@@ -55339,7 +55327,7 @@ function tz(e = ez) {
|
|
|
55339
55327
|
return "";
|
|
55340
55328
|
};
|
|
55341
55329
|
}
|
|
55342
|
-
function
|
|
55330
|
+
function tz(e, t = $R) {
|
|
55343
55331
|
if (!e || typeof e != "object") return [];
|
|
55344
55332
|
let n = [];
|
|
55345
55333
|
for (let r of t) {
|
|
@@ -55348,18 +55336,18 @@ function nz(e, t = ez) {
|
|
|
55348
55336
|
}
|
|
55349
55337
|
return n;
|
|
55350
55338
|
}
|
|
55351
|
-
var
|
|
55352
|
-
function
|
|
55353
|
-
return typeof e == "function" ? e : typeof e == "string" ?
|
|
55339
|
+
var nz = ez();
|
|
55340
|
+
function rz(e) {
|
|
55341
|
+
return typeof e == "function" ? e : typeof e == "string" ? ez([e]) : Array.isArray(e) ? ez(e) : nz;
|
|
55354
55342
|
}
|
|
55355
|
-
function
|
|
55343
|
+
function iz(e, t, n) {
|
|
55356
55344
|
return !t || typeof t != "object" ? e : {
|
|
55357
55345
|
...t,
|
|
55358
55346
|
...e,
|
|
55359
55347
|
id: e?.id ?? t?.id ?? n
|
|
55360
55348
|
};
|
|
55361
55349
|
}
|
|
55362
|
-
function
|
|
55350
|
+
function az(e, t, n = {}) {
|
|
55363
55351
|
return {
|
|
55364
55352
|
status: "success",
|
|
55365
55353
|
total: t,
|
|
@@ -55369,7 +55357,7 @@ function oz(e, t, n = {}) {
|
|
|
55369
55357
|
}
|
|
55370
55358
|
};
|
|
55371
55359
|
}
|
|
55372
|
-
var
|
|
55360
|
+
var oz = [
|
|
55373
55361
|
"fields",
|
|
55374
55362
|
"fieldConfig",
|
|
55375
55363
|
"tabs",
|
|
@@ -55378,17 +55366,17 @@ var sz = [
|
|
|
55378
55366
|
"actions",
|
|
55379
55367
|
"columnActions"
|
|
55380
55368
|
];
|
|
55381
|
-
function
|
|
55369
|
+
function sz(e) {
|
|
55382
55370
|
let t = e?.data ?? e, n = {};
|
|
55383
|
-
for (let r of
|
|
55371
|
+
for (let r of oz) {
|
|
55384
55372
|
let i = e?.[r] ?? t?.[r];
|
|
55385
55373
|
i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
|
|
55386
55374
|
}
|
|
55387
55375
|
return n;
|
|
55388
55376
|
}
|
|
55389
|
-
var
|
|
55390
|
-
function
|
|
55391
|
-
let r = (Array.isArray(n) ? n : [n]).map(
|
|
55377
|
+
var cz = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
|
|
55378
|
+
function lz(e, t, n) {
|
|
55379
|
+
let r = (Array.isArray(n) ? n : [n]).map(cz).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(cz(e?.value)) || r.includes(cz(e?.label))) : -1;
|
|
55392
55380
|
if (i === -1) return [...e, ...t];
|
|
55393
55381
|
let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
|
|
55394
55382
|
...e,
|
|
@@ -55400,31 +55388,31 @@ function uz(e, t, n) {
|
|
|
55400
55388
|
...e.slice(i + 1)
|
|
55401
55389
|
];
|
|
55402
55390
|
}
|
|
55403
|
-
var
|
|
55391
|
+
var uz = (e, t) => Hd(e, t).rows, dz = (e, t) => {
|
|
55404
55392
|
let { rows: n, total: r } = Hd(e, t);
|
|
55405
55393
|
return {
|
|
55406
55394
|
rows: n,
|
|
55407
55395
|
total: r
|
|
55408
55396
|
};
|
|
55409
55397
|
};
|
|
55410
|
-
function
|
|
55398
|
+
function fz(e, t) {
|
|
55411
55399
|
return function(n, r, i, a = {}) {
|
|
55412
55400
|
return e(t ?? n, r, i, a);
|
|
55413
55401
|
};
|
|
55414
55402
|
}
|
|
55415
|
-
function
|
|
55403
|
+
function pz(e) {
|
|
55416
55404
|
return !e || typeof e != "object" || typeof (e.fetchByKeys ?? e.fetch ?? e.function) != "function" ? null : {
|
|
55417
55405
|
...e,
|
|
55418
55406
|
fetchByKeys: typeof e.fetchByKeys == "function" ? e.fetchByKeys : null,
|
|
55419
55407
|
fetch: typeof e.fetch == "function" ? e.fetch : null,
|
|
55420
55408
|
function: typeof e.function == "function" ? e.function : null,
|
|
55421
|
-
extractRows: typeof e.extractRows == "function" ? e.extractRows :
|
|
55422
|
-
mergeRow: typeof e.mergeRow == "function" ? e.mergeRow :
|
|
55409
|
+
extractRows: typeof e.extractRows == "function" ? e.extractRows : uz,
|
|
55410
|
+
mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : iz,
|
|
55423
55411
|
fetchById: typeof e.fetchById == "function" ? e.fetchById : null
|
|
55424
55412
|
};
|
|
55425
55413
|
}
|
|
55426
|
-
function
|
|
55427
|
-
return !e && !t && !r ? [] : [
|
|
55414
|
+
function mz({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
|
|
55415
|
+
return !e && !t && !r ? [] : [pz({
|
|
55428
55416
|
key: i,
|
|
55429
55417
|
fetchByKeys: e ? (t, n, r) => e(t, n, r) : null,
|
|
55430
55418
|
function: t ? ({ moduleName: e, options: n }) => t(e, o, 0, n) : null,
|
|
@@ -55433,21 +55421,21 @@ function hz({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows:
|
|
|
55433
55421
|
mergeRow: a
|
|
55434
55422
|
})].filter(Boolean);
|
|
55435
55423
|
}
|
|
55436
|
-
function
|
|
55424
|
+
function hz(e) {
|
|
55437
55425
|
if (typeof e == "function") return (t) => {
|
|
55438
55426
|
let n = e(t);
|
|
55439
55427
|
return n == null || n === "" ? [] : [String(n)];
|
|
55440
55428
|
};
|
|
55441
|
-
let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e :
|
|
55442
|
-
return (e) =>
|
|
55429
|
+
let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : $R;
|
|
55430
|
+
return (e) => tz(e, t);
|
|
55443
55431
|
}
|
|
55444
|
-
function
|
|
55432
|
+
function gz(e, t) {
|
|
55445
55433
|
let n = /* @__PURE__ */ new Map();
|
|
55446
55434
|
return e.forEach((e) => {
|
|
55447
55435
|
for (let r of t(e)) n.has(r) || n.set(r, e);
|
|
55448
55436
|
}), n;
|
|
55449
55437
|
}
|
|
55450
|
-
function
|
|
55438
|
+
function _z({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
|
|
55451
55439
|
return {
|
|
55452
55440
|
moduleName: e,
|
|
55453
55441
|
limit: t,
|
|
@@ -55461,7 +55449,7 @@ function vz({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryRe
|
|
|
55461
55449
|
source: l
|
|
55462
55450
|
};
|
|
55463
55451
|
}
|
|
55464
|
-
async function
|
|
55452
|
+
async function vz(e, t) {
|
|
55465
55453
|
if (typeof e.args == "function") {
|
|
55466
55454
|
let n = e.args(t);
|
|
55467
55455
|
return (e.fetch ?? e.function ?? e.fetchByKeys)(...Array.isArray(n) ? n : [n]);
|
|
@@ -55471,8 +55459,8 @@ async function yz(e, t) {
|
|
|
55471
55459
|
let n = e.fetch ?? e.function;
|
|
55472
55460
|
return typeof n == "function" ? n(t) : null;
|
|
55473
55461
|
}
|
|
55474
|
-
function
|
|
55475
|
-
let h = Array.isArray(r) && r.length ? r.map(
|
|
55462
|
+
function yz({ fetchPrimaryPage: e, extractPrimaryPage: t = dz, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = uz, fetchSecondary: o, extractSecondaryRows: s = uz, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = iz, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
|
|
55463
|
+
let h = Array.isArray(r) && r.length ? r.map(pz).filter(Boolean) : mz({
|
|
55476
55464
|
fetchSecondaryByKeys: n,
|
|
55477
55465
|
fetchSecondary: o,
|
|
55478
55466
|
extractSecondaryRows: s,
|
|
@@ -55492,7 +55480,7 @@ function bz({ fetchPrimaryPage: e, extractPrimaryPage: t = fz, fetchSecondaryByK
|
|
|
55492
55480
|
}
|
|
55493
55481
|
async function v(e, t, n, r, i) {
|
|
55494
55482
|
if (!n) return e;
|
|
55495
|
-
let a = t.extractRows(n, r) ?? [], o =
|
|
55483
|
+
let a = t.extractRows(n, r) ?? [], o = rz(t.primaryKey ?? l), s = hz(t.key), c = gz(a, s);
|
|
55496
55484
|
return Promise.all(e.map(async (e) => {
|
|
55497
55485
|
let n = o(e), a = c.get(n) ?? (i() ? null : await _(t, s, r, n));
|
|
55498
55486
|
return t.mergeRow(e, a, n);
|
|
@@ -55507,21 +55495,21 @@ function bz({ fetchPrimaryPage: e, extractPrimaryPage: t = fz, fetchSecondaryByK
|
|
|
55507
55495
|
let r = {};
|
|
55508
55496
|
for (let e of n) {
|
|
55509
55497
|
if (!e) continue;
|
|
55510
|
-
let t =
|
|
55498
|
+
let t = sz(e);
|
|
55511
55499
|
for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
|
|
55512
55500
|
}
|
|
55513
|
-
return p.length && (r.fields =
|
|
55501
|
+
return p.length && (r.fields = lz(r.fields ?? [], p, m)), az(e, t, r);
|
|
55514
55502
|
}
|
|
55515
55503
|
async function x({ moduleName: e, limit: t, offset: n, options: r, primaryResponse: i, primaryRows: a, pageRows: o, total: s }) {
|
|
55516
55504
|
return Promise.all(h.map(async (c) => {
|
|
55517
55505
|
try {
|
|
55518
|
-
let u =
|
|
55506
|
+
let u = rz(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
|
|
55519
55507
|
return c.fetchByKeys && d.length === 0 ? {
|
|
55520
55508
|
source: c,
|
|
55521
55509
|
response: null
|
|
55522
55510
|
} : {
|
|
55523
55511
|
source: c,
|
|
55524
|
-
response: await
|
|
55512
|
+
response: await vz(c, _z({
|
|
55525
55513
|
moduleName: e,
|
|
55526
55514
|
limit: t,
|
|
55527
55515
|
offset: n,
|
|
@@ -55575,25 +55563,25 @@ function bz({ fetchPrimaryPage: e, extractPrimaryPage: t = fz, fetchSecondaryByK
|
|
|
55575
55563
|
}
|
|
55576
55564
|
//#endregion
|
|
55577
55565
|
//#region src/services/workflowModuleListApi.js
|
|
55578
|
-
function
|
|
55579
|
-
return
|
|
55580
|
-
fetchPrimary: () =>
|
|
55566
|
+
function bz(e, t, n = {}) {
|
|
55567
|
+
return yz({
|
|
55568
|
+
fetchPrimary: () => pF(e, t),
|
|
55581
55569
|
extractPrimaryRows: dF,
|
|
55582
55570
|
fetchSecondary: mu,
|
|
55583
|
-
fetchSecondaryById:
|
|
55571
|
+
fetchSecondaryById: mF,
|
|
55584
55572
|
secondaryFetchLimit: n.moduleFetchLimit ?? 200
|
|
55585
55573
|
});
|
|
55586
55574
|
}
|
|
55587
|
-
function
|
|
55575
|
+
function xz(e) {
|
|
55588
55576
|
let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
|
|
55589
55577
|
return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
|
|
55590
55578
|
}
|
|
55591
|
-
function
|
|
55579
|
+
function Sz(e) {
|
|
55592
55580
|
let t = Array.isArray(e?.stages) ? e.stages : [];
|
|
55593
55581
|
if (!t.length) return e;
|
|
55594
55582
|
let n = {};
|
|
55595
55583
|
for (let e of t) {
|
|
55596
|
-
let t =
|
|
55584
|
+
let t = xz(e?.stageName);
|
|
55597
55585
|
t && (n[t] = Number(e?.count) || 0);
|
|
55598
55586
|
}
|
|
55599
55587
|
return {
|
|
@@ -55601,44 +55589,47 @@ function Cz(e) {
|
|
|
55601
55589
|
...e
|
|
55602
55590
|
};
|
|
55603
55591
|
}
|
|
55604
|
-
var
|
|
55592
|
+
var Cz = (e) => {
|
|
55605
55593
|
let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
|
|
55606
55594
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
55607
55595
|
};
|
|
55608
|
-
function
|
|
55596
|
+
function wz({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
|
|
55609
55597
|
return function(n, r, i) {
|
|
55610
|
-
let a =
|
|
55611
|
-
return o != null && (
|
|
55598
|
+
let a = iz(n, r, i), o = Cz(a);
|
|
55599
|
+
return o != null && (a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
|
|
55612
55600
|
};
|
|
55613
55601
|
}
|
|
55614
|
-
function
|
|
55615
|
-
let t =
|
|
55602
|
+
function Tz(e = {}) {
|
|
55603
|
+
let t = wz();
|
|
55604
|
+
return yz({
|
|
55616
55605
|
primaryKey: "_id",
|
|
55617
|
-
secondaryKey: "entityId",
|
|
55618
55606
|
extraFields: e.extraFields,
|
|
55619
55607
|
extraFieldsAfter: e.extraFieldsAfter,
|
|
55620
55608
|
fetchPrimaryPage: mu,
|
|
55621
|
-
|
|
55622
|
-
|
|
55623
|
-
|
|
55624
|
-
|
|
55625
|
-
|
|
55626
|
-
|
|
55609
|
+
joinSources: [{
|
|
55610
|
+
key: "entityId",
|
|
55611
|
+
fetchByKeys: (e, t, n, r) => {
|
|
55612
|
+
let i = Math.max(1, Number(r?.limit) || 10);
|
|
55613
|
+
return fF(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
|
|
55614
|
+
},
|
|
55615
|
+
extractRows: (e) => (e?.items ?? []).map(Sz),
|
|
55616
|
+
mergeRow: (e, n, r) => {
|
|
55617
|
+
let i = t(e, n, r);
|
|
55618
|
+
return n?._id && (i.workflowId = n._id), i;
|
|
55619
|
+
}
|
|
55620
|
+
}]
|
|
55627
55621
|
});
|
|
55628
|
-
return async function(e, t, r, i) {
|
|
55629
|
-
return await n(e, t, r, i);
|
|
55630
|
-
};
|
|
55631
55622
|
}
|
|
55632
|
-
async function
|
|
55633
|
-
return Hd(await
|
|
55623
|
+
async function Ez(e, t = 10, n = 0, r = {}, i = {}) {
|
|
55624
|
+
return Hd(await Tz(i)(e, t, n, r), e);
|
|
55634
55625
|
}
|
|
55635
|
-
async function
|
|
55636
|
-
return Hd(await
|
|
55626
|
+
async function Dz(e, t, n, r = 10, i = 0, a = {}) {
|
|
55627
|
+
return Hd(await bz(e, t)(n, r, i, a), n);
|
|
55637
55628
|
}
|
|
55638
55629
|
//#endregion
|
|
55639
55630
|
//#region src/index.js
|
|
55640
|
-
var kz =
|
|
55631
|
+
var Oz = WI, kz = UE(HL), Az = UE(WL), jz = UE(aR), Mz = UE(_R), Nz = UE(ER), Pz = UE(kR), Fz = UE(MR), Iz = UE(FR), Lz = UE(LR), Rz = UE(XR), zz = UE(QR);
|
|
55641
55632
|
//#endregion
|
|
55642
|
-
export { a as ADMIN_API_URL, C as ADMIN_APP_ID, E as APP_ID, s as AUTH_URL, dg as ActivityNotesCard, og as ActivityTab,
|
|
55633
|
+
export { a as ADMIN_API_URL, C as ADMIN_APP_ID, E as APP_ID, s as AUTH_URL, dg as ActivityNotesCard, og as ActivityTab, TI as AddBatchCandidatePopup, Uh as AddFormV1, WI as AdminDashboard, yM as AdminDashboardContent, Oz as AdminPage, Wh as AppAlert, en as AppButton, fE as AppShell, PC as ApprovalActionBar, fg as AssigneeAvatars, uE as AuthGuard, xy as BILLING_STATUS_FLOW, kS as BOOLEAN_API_KEYS, wS as BOOLEAN_PARSEABLE_API_KEYS, pg as BULK_UPLOAD_DEFAULT_ACCEPT, mg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, kr as Breadcrumb, jz as BulkUploadPage, Sg as BulkUploadPanel, T as CANDIDATES_URL, iw as CONTRACT_C2C, rw as CONTRACT_W2, A_ as CURRENCY_SYMBOLS, ws as CalendarCard, CM as CoreThemeAdminApp, SM as CoreThemeAdminRoutes, xc as CustomPagination, nC as DEFAULT_HOURS_POLICY, EC as DayLogModal, Fg as DescriptionBlock, Cb as DetailHeaderCard, Ab as DetailViewPage, bv as DetailViewV1, Br as DocumentViewer, xl as DynamicCards, CP as DynamicPopup, AI as DynamicPopupRoute, Os as DynamicTabs, Ox as EditFormV1, sS as FIELD_TYPE_REGISTRY, YC as FINANCE_APPROVAL_CONFIG, HC as FINANCE_TYPE_CFO, VC as FINANCE_TYPE_ONBOARDING_MANAGER, GC as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, UC as FINANCE_TYPE_ONLY_FINANCE, BC as FINANCE_TYPE_SUBMISSION_MANAGER, WC as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, lT as FileListCard, Hw as FinanceApprovalPanel, nb as FinanceAvatar, ob as FinanceBadge, IC as FinanceDayCell, Jy as FinanceDivider, rb as FinanceEmployeeCell, Gy as FinanceEmptyState, Yy as FinanceEquation, $y as FinanceHistoryTimeline, Wy as FinanceHoursGrid, Uy as FinanceKpiRow, qy as FinanceLine, tC as FinanceListToolbar, sb as FinanceMarginBadge, ab as FinanceMoneyCell, ub as FinanceRecordsTable, cb as FinanceRowChevron, Ky as FinanceSection, Hy as FinanceStatusPill, ib as FinanceTextCell, RC as FinanceTimesheetAnalysis, Xy as FinanceWorkflowSteps, rC as HOURS_MESSAGES, RT as Header, El as HierarchyUserFilter, r as JOBS_URL, kz as LegacyAdminPage, vm as ListView, zz as LmsHomePage, Rz as LmsTestForm, pE as Login, HM as MailPopup, Pz as ManageModules, Fz as ManageSubmodules, Lx as ModuleRowActions, NC as NotesPanel, ug as NotesTab, Sy as PAYROLL_STATUS_FLOW, gI as POPUP_CONFIGS, Wx as ParamCardView, Xx as ParamListView, hC as PeriodBadgeTag, yN as PreviewPopup, HE as ProjectSelect, MC as ProofUploadPreview, kC as QuickLogBar, DC as QuickLogSelectionBar, OC as RejectionReasonModal, w as SUBMISSIONS_URL, KS as SearchBuilderV1, oE as Sidebar, JS as StatusBadge, mC as StatusBadgeTag, Az as StickyNotesFullPage, XS as StylishDynamicTabs, QS as TemplateEditor, Mz as TestForm, Lz as TestingHomePage, Qh as TimelineGroups, CC as TimesheetDayCell, Qr as TipTapEditor, UI as UserForm, PI as VendorShareDrawer, hf as ViewSummaryWidget, TN as WizardPopup, Iz as ZinnextTableView, Nz as ZinnextTestForm, oe as appNow, ni as applyIntegrationStatus, nc as approveSubmission, yg as buildAcceptAttr, PS as buildBooleanRequest, Iy as buildCsv, Ay as buildDailyRows, xC as buildDayGradient, kw as buildRateHistoryEntries, Ny as buildWeeklyRollup, y as clearSelectedProject, ht as colors, xw as computeFinance, lC as computeHoursPolicy, Py as computeMarginBand, Nn as conditionMatches, i as configureCoreTheme, Xt as configuredFieldLabel, Tz as createAllWorkflowsListFetcher, yz as createMergedListFetcher, fz as createModuleListFetchAdapter, bz as createWorkflowStageListFetcher, j_ as currencySymbol, iz as defaultMergeRow, Ft as deleteIntegrationConfig, ky as deriveDayStats, dC as describeCapacity, By as downloadCsv, or as evaluateShowIfWith, hw as findEmployerRow, pw as flattenGroups, L_ as formatAmount, Wr as formatApp, yt as formatAppDateTime, vg as formatFileSize, Aw as formatFinanceMoney, fy as formatHours, R_ as formatMoney, my as formatPercent, z_ as formatRate, xr as getActivity, Ez as getAllWorkflowsModuleList, pe as getAppTimeZone, vy as getApprovalDate, pr as getBgcIntegrationConfig, $n as getBgcIntegrationSummary, Cy as getBillingActionStates, dS as getBooleanEligibleTypes, b as getCurrentRoleName, Ry as getFieldLabel, lS as getFieldType, _g as getFileExtension, ew as getFinanceApprovalConfig, Qw as getFormGroupsRaw, rn as getIntegrationConfig, Yr as getIntegrationConfigs, gt as getIntegrationSummary, vc as getModuleConfig, Qt as getModuleDataDetail, wy as getPayrollActionStates, bc as getPeriodBadgeConfig, c as getSelectedProject, m as getStoredToken, S as getStoredUser, l as getUserRoles, rc as getVMSApprove, zy as getValueStyle, Dz as getWorkflowStageModuleList, Ty as getWorkflowSteps, _y as humanizeEvent, Vm as i, Ly as indexFieldConfig, hy as initialsOf, OS as insertTokenAtCursor, uS as isBooleanEligible, ES as isBooleanParsable, u as isTester, h as logout, nw as marginIncludesReferral, bw as matchLocationTax, Rb as n, _w as normalizeContract, Cg as r, N_ as rateUnitLabel, F_ as rateUnitShort, uC as reconcileHours, cS as registerFieldType, ac as rejectSubmission, rg as resolveActivityMeta, Sw as resolveAndCompute, sC as resolveDayKind, yw as resolveFinanceInputs, nz as resolveMergeKey, nz as resolveMergedListKey, tw as resolveRejectionReason, $w as resolveSubmissionFinance, Mt as saveBgcIntegrationConfig, _r as saveIntegrationConfig, d as setSelectedProject, on as showIfConditions, xz as stageCountKey, mE as t, k as testIntegrationConnection, $e as toApp, I_ as toNumber, Un as tzLabel, ee as tzShortLabel, Au as useDropdownFields, gf as useDropdownValues, uT as useEditForm, ju as useFieldConfig, Mu as useFilterFields, Vu as useMenuPermission, Ax as useModuleActions, Db as useRecordRefresh, DS as validateBooleanQuery, bg as validateBulkFile, n as withAdminAppId, t as withAppId, UE as withAuthGuard };
|
|
55643
55634
|
|
|
55644
55635
|
//# sourceMappingURL=index.js.map
|