@realtek/core-theme 0.0.20 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +753 -735
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -4705,38 +4705,44 @@ async function bc({ module: e, id: t, view: n } = {}) {
|
|
|
4705
4705
|
if (!a.ok) throw Error(`API ${a.status}: ${a.statusText}`);
|
|
4706
4706
|
return yc(await a.json());
|
|
4707
4707
|
}
|
|
4708
|
-
async function xc(e
|
|
4708
|
+
async function xc({ searchQuery: e, candidateId: t }) {
|
|
4709
|
+
let n = localStorage.getItem("tenantId") || "93c782a4aa626175e5d11afa", r = localStorage.getItem("businessId") || "83c782a4aa626175e5d11afa", i = localStorage.getItem("businessUnitId") || "63b57588fd768a839dbc0f63", a = Number(localStorage.getItem("userId")) || 1;
|
|
4710
|
+
return cc(on, "/joblist", {
|
|
4711
|
+
method: "POST",
|
|
4712
|
+
body: JSON.stringify({
|
|
4713
|
+
tenantId: n,
|
|
4714
|
+
businessId: r,
|
|
4715
|
+
businessUnitId: i,
|
|
4716
|
+
searchQuery: e,
|
|
4717
|
+
userId: a,
|
|
4718
|
+
candidateId: Array.isArray(t) ? t : [t]
|
|
4719
|
+
})
|
|
4720
|
+
});
|
|
4721
|
+
}
|
|
4722
|
+
async function Sc(e = "") {
|
|
4709
4723
|
return lc(on, `/users/any${e ? `?search=${encodeURIComponent(e)}` : ""}`);
|
|
4710
4724
|
}
|
|
4711
|
-
async function
|
|
4725
|
+
async function Cc(e, t = 0, n = 10) {
|
|
4712
4726
|
return await cc(on, `/source/hiring-candidate-list?offset=${t}&limit=${n}`, {
|
|
4713
4727
|
method: "POST",
|
|
4714
4728
|
body: JSON.stringify(e)
|
|
4715
4729
|
});
|
|
4716
4730
|
}
|
|
4717
|
-
async function
|
|
4731
|
+
async function wc({ jobId: e, offset: t = 0, limit: n = 1, searchValue: r = "" }) {
|
|
4718
4732
|
return (await cc(on, `/source/hiring-candidate-list/pipeline?hiringType=pipeline&jobId=${e}&limit=${n}&offset=${t}&searchValue=${encodeURIComponent(r)}`))?.data?.count ?? 0;
|
|
4719
4733
|
}
|
|
4720
|
-
async function
|
|
4734
|
+
async function Tc({ jobId: e, offset: t = 0, limit: n = 1, searchQuery: r = "" }) {
|
|
4721
4735
|
return (await cc(on, `/source/hiring-candidate-list/pipeline?hiringType=shortlisted&jobId=${e}&limit=${n}&offset=${t}&searchQuery=${encodeURIComponent(r)}`))?.data?.count ?? 0;
|
|
4722
4736
|
}
|
|
4723
|
-
async function
|
|
4737
|
+
async function Ec(e) {
|
|
4724
4738
|
return (await cc(an, `/job-submissions?jobId=${e}`))?.data ?? [];
|
|
4725
4739
|
}
|
|
4726
|
-
async function
|
|
4740
|
+
async function Dc({ jobId: e, offset: t = 0, limit: n = 50, searchValue: r = "" }) {
|
|
4727
4741
|
return await cc(on, `/source/hiring-candidate-list/pipeline?hiringType=pipeline&jobId=${e}&limit=${n}&offset=${t}&searchValue=${encodeURIComponent(r)}`);
|
|
4728
4742
|
}
|
|
4729
|
-
async function
|
|
4743
|
+
async function Oc({ jobId: e, offset: t = 0, limit: n = 50, searchQuery: r = "" }) {
|
|
4730
4744
|
return await cc(on, `/source/hiring-candidate-list/pipeline?hiringType=shortlisted&jobId=${e}&limit=${n}&offset=${t}&searchQuery=${encodeURIComponent(r)}`);
|
|
4731
4745
|
}
|
|
4732
|
-
async function Oc({ _id: e, tenantId: t, businessId: n, businessUnitId: r }) {
|
|
4733
|
-
return lc(sn, `/detailed-view?${new URLSearchParams({
|
|
4734
|
-
_id: e,
|
|
4735
|
-
tenantId: t,
|
|
4736
|
-
businessId: n,
|
|
4737
|
-
businessUnitId: r
|
|
4738
|
-
}).toString()}`);
|
|
4739
|
-
}
|
|
4740
4746
|
//#endregion
|
|
4741
4747
|
//#region src/components/detail/DescriptionBlock.jsx
|
|
4742
4748
|
var { Text: kc } = U, Ac = 2, jc = /* @__PURE__ */ "overview.summary.role summary.job summary.role overview.job description.description.about the role.about the job.job title.role.responsibilities.roles responsibilities.roles and responsibilities.roles & responsibilities.key responsibilities.requirements.required skills.preferred skills.technical skills.key skills.skills.competencies.nice to have.good to have.qualifications.required qualifications.preferred qualifications.education.experience.benefits".split("."), Mc = new Set(jc), Nc = /(education|qualification)/i, Pc = /(skill|competenc)/i, Fc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ic = (e) => e.replace(/\w[^\s/]*/g, (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()), Lc = (e) => [...new Set(e)];
|
|
@@ -5793,7 +5799,7 @@ function vl({ jobId: e, onActionComplete: t, onDescriptionSaved: n }) {
|
|
|
5793
5799
|
let r = (t - 1) * n;
|
|
5794
5800
|
s(!0);
|
|
5795
5801
|
try {
|
|
5796
|
-
let i = await
|
|
5802
|
+
let i = await Cc(pe(e, r, n), r, n), a = i?.data?.data ?? i?.data?.applicant ?? [], o = i?.data?.count?.searchCount ?? i?.data?.count?.total ?? 0;
|
|
5797
5803
|
l(a.map(gl)), d(o), g(t), v(e), S(!0), E(!0);
|
|
5798
5804
|
} catch (e) {
|
|
5799
5805
|
console.error("Candidate search failed:", e), G.error("Failed to search candidates. Please try again."), l([]), d(0), S(!0);
|
|
@@ -6330,7 +6336,7 @@ function Tl({ jobId: e, onCountChange: t }) {
|
|
|
6330
6336
|
if (e) {
|
|
6331
6337
|
s(!0);
|
|
6332
6338
|
try {
|
|
6333
|
-
let i = await
|
|
6339
|
+
let i = await Dc({
|
|
6334
6340
|
jobId: e,
|
|
6335
6341
|
offset: (n - 1) * r,
|
|
6336
6342
|
limit: r
|
|
@@ -6634,7 +6640,7 @@ function Ml({ jobId: e, onCountChange: t }) {
|
|
|
6634
6640
|
if (e) {
|
|
6635
6641
|
s(!0);
|
|
6636
6642
|
try {
|
|
6637
|
-
let i = await
|
|
6643
|
+
let i = await Oc({
|
|
6638
6644
|
jobId: e,
|
|
6639
6645
|
offset: (n - 1) * r,
|
|
6640
6646
|
limit: r
|
|
@@ -6959,7 +6965,7 @@ function Hl({ jobId: e, onCountChange: t }) {
|
|
|
6959
6965
|
if (e) {
|
|
6960
6966
|
c(!0);
|
|
6961
6967
|
try {
|
|
6962
|
-
let n = await
|
|
6968
|
+
let n = await Ec(e), r = Array.isArray(n) ? n : [];
|
|
6963
6969
|
u(r), t?.(r.length);
|
|
6964
6970
|
} finally {
|
|
6965
6971
|
c(!1);
|
|
@@ -7079,7 +7085,7 @@ function Ul({ jobId: e, onDescriptionSaved: t }) {
|
|
|
7079
7085
|
let t = new URLSearchParams(n);
|
|
7080
7086
|
t.set("subTab", e), i(t, { replace: !0 });
|
|
7081
7087
|
}, [c, l] = o(null), [u, d] = o(null), [f, p] = o(null), m = () => {
|
|
7082
|
-
e && (
|
|
7088
|
+
e && (wc({ jobId: e }).then(l).catch(() => {}), Tc({ jobId: e }).then(d).catch(() => {}), Ec(e).then((e) => p(Array.isArray(e) ? e.length : 0)).catch(() => {}));
|
|
7083
7089
|
};
|
|
7084
7090
|
return r(() => {
|
|
7085
7091
|
m();
|
|
@@ -8189,7 +8195,7 @@ function Gu({ notes: e, users: t = [], onAddNote: n }) {
|
|
|
8189
8195
|
filterOption: !1,
|
|
8190
8196
|
onSearch: (e) => {
|
|
8191
8197
|
clearTimeout(g.current), h(!0), g.current = setTimeout(() => {
|
|
8192
|
-
|
|
8198
|
+
Sc(e).then((e) => {
|
|
8193
8199
|
p((Array.isArray(e) ? e : e?.items ?? e?.list ?? e?.data ?? []).map(Hu));
|
|
8194
8200
|
}).catch(() => p([])).finally(() => h(!1));
|
|
8195
8201
|
}, 300);
|
|
@@ -14105,11 +14111,8 @@ function tg({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
|
|
|
14105
14111
|
extraData: s,
|
|
14106
14112
|
removedIds: c
|
|
14107
14113
|
};
|
|
14108
|
-
if (typeof n.submit == "function")
|
|
14109
|
-
|
|
14110
|
-
return;
|
|
14111
|
-
}
|
|
14112
|
-
typeof d == "function" && await d(e, r, t);
|
|
14114
|
+
if (typeof n.submit == "function") return n.submit(e, r, t);
|
|
14115
|
+
if (typeof d == "function") return d(e, r, t);
|
|
14113
14116
|
}
|
|
14114
14117
|
function _() {
|
|
14115
14118
|
if (t) {
|
|
@@ -14134,7 +14137,8 @@ function tg({ form: e, config: t, api: n, popupContext: r, resolvedIds: i, dynam
|
|
|
14134
14137
|
e.validateFields().then(async (e) => {
|
|
14135
14138
|
p(!0);
|
|
14136
14139
|
try {
|
|
14137
|
-
await g(e)
|
|
14140
|
+
if ((await g(e))?.navigated) return;
|
|
14141
|
+
G.success(t.successMessage || "Saved successfully"), u();
|
|
14138
14142
|
} catch (e) {
|
|
14139
14143
|
G.error(e?.message || "Failed. Please try again.");
|
|
14140
14144
|
} finally {
|
|
@@ -14321,19 +14325,10 @@ async function fg(e) {
|
|
|
14321
14325
|
})
|
|
14322
14326
|
}));
|
|
14323
14327
|
}
|
|
14324
|
-
async function pg(e
|
|
14325
|
-
return og(await Z(sn, "/quicksubmit/list", {
|
|
14326
|
-
method: "POST",
|
|
14327
|
-
body: JSON.stringify({
|
|
14328
|
-
jobId: e,
|
|
14329
|
-
search: t
|
|
14330
|
-
})
|
|
14331
|
-
}));
|
|
14332
|
-
}
|
|
14333
|
-
async function mg(e = "") {
|
|
14328
|
+
async function pg(e = "") {
|
|
14334
14329
|
return Fn(on, `/users/any${e ? `?search=${encodeURIComponent(e)}` : ""}`);
|
|
14335
14330
|
}
|
|
14336
|
-
async function
|
|
14331
|
+
async function mg({ relatedIds: e, module: t, title: n, targetDate: r, notes: i, mentionedUsers: a = [] }) {
|
|
14337
14332
|
return Z(on, "/notes", {
|
|
14338
14333
|
method: "POST",
|
|
14339
14334
|
body: JSON.stringify({
|
|
@@ -14353,7 +14348,7 @@ async function hg({ relatedIds: e, module: t, title: n, targetDate: r, notes: i,
|
|
|
14353
14348
|
})
|
|
14354
14349
|
});
|
|
14355
14350
|
}
|
|
14356
|
-
async function
|
|
14351
|
+
async function hg({ jobId: e, candidateIds: t, hiringStage: n }) {
|
|
14357
14352
|
return Z(on, "/source/hiringStgUpdate", {
|
|
14358
14353
|
method: "PUT",
|
|
14359
14354
|
body: JSON.stringify({
|
|
@@ -14369,10 +14364,10 @@ async function gg({ jobId: e, candidateIds: t, hiringStage: n }) {
|
|
|
14369
14364
|
})
|
|
14370
14365
|
});
|
|
14371
14366
|
}
|
|
14372
|
-
async function
|
|
14367
|
+
async function gg() {
|
|
14373
14368
|
return og(await Z(X, "/masters/dropdown?masterName=candidateGroups&offset=0&limit=50"));
|
|
14374
14369
|
}
|
|
14375
|
-
async function
|
|
14370
|
+
async function _g({ candidateIds: e, groupId: t, groupName: n }) {
|
|
14376
14371
|
return og(await Z(sn, "/actions/update-group", {
|
|
14377
14372
|
method: "PUT",
|
|
14378
14373
|
body: JSON.stringify({
|
|
@@ -14382,7 +14377,7 @@ async function vg({ candidateIds: e, groupId: t, groupName: n }) {
|
|
|
14382
14377
|
})
|
|
14383
14378
|
}));
|
|
14384
14379
|
}
|
|
14385
|
-
async function
|
|
14380
|
+
async function vg({ jobIds: e, rate: t, priority: n }) {
|
|
14386
14381
|
return Z(on, "/assign?type=self", {
|
|
14387
14382
|
method: "PUT",
|
|
14388
14383
|
body: JSON.stringify({
|
|
@@ -14397,7 +14392,7 @@ async function yg({ jobIds: e, rate: t, priority: n }) {
|
|
|
14397
14392
|
})
|
|
14398
14393
|
});
|
|
14399
14394
|
}
|
|
14400
|
-
async function
|
|
14395
|
+
async function yg() {
|
|
14401
14396
|
let e = await Fn(on, "/users/manager");
|
|
14402
14397
|
return (Array.isArray(e) ? e : e ? [e] : []).map((e) => ({
|
|
14403
14398
|
...e,
|
|
@@ -14405,10 +14400,10 @@ async function bg() {
|
|
|
14405
14400
|
value: String(e.userId ?? e.id ?? e._id ?? "")
|
|
14406
14401
|
}));
|
|
14407
14402
|
}
|
|
14408
|
-
async function
|
|
14403
|
+
async function bg(e) {
|
|
14409
14404
|
return e ? Fn(on, `/self-assign?jobId=${encodeURIComponent(e)}`) : null;
|
|
14410
14405
|
}
|
|
14411
|
-
async function
|
|
14406
|
+
async function xg({ jobIds: e, userId: t, rate: n, priority: r, removedIds: i, existingRecruiters: a }) {
|
|
14412
14407
|
let o = (a ?? []).filter((e) => {
|
|
14413
14408
|
let t = String(e?.user_id ?? e?.id ?? e?.userId ?? "");
|
|
14414
14409
|
return t && !(i ?? []).includes(t);
|
|
@@ -14427,7 +14422,7 @@ async function Sg({ jobIds: e, userId: t, rate: n, priority: r, removedIds: i, e
|
|
|
14427
14422
|
})
|
|
14428
14423
|
});
|
|
14429
14424
|
}
|
|
14430
|
-
async function
|
|
14425
|
+
async function Sg({ jobId: e, candidateIds: t }) {
|
|
14431
14426
|
return Z(on, "/source/hiringStgUpdate", {
|
|
14432
14427
|
method: "PUT",
|
|
14433
14428
|
body: JSON.stringify({
|
|
@@ -14445,9 +14440,9 @@ async function Cg({ jobId: e, candidateIds: t }) {
|
|
|
14445
14440
|
}
|
|
14446
14441
|
//#endregion
|
|
14447
14442
|
//#region src/components/popups/definitions/delete/api.js
|
|
14448
|
-
var
|
|
14443
|
+
var Cg = { deleteItems: async (e, t) => {
|
|
14449
14444
|
await dg(t.moduleName, e);
|
|
14450
|
-
} },
|
|
14445
|
+
} }, wg = {
|
|
14451
14446
|
title: "Quick Submit",
|
|
14452
14447
|
okText: "Submit",
|
|
14453
14448
|
width: 480,
|
|
@@ -14473,27 +14468,46 @@ var wg = { deleteItems: async (e, t) => {
|
|
|
14473
14468
|
}]
|
|
14474
14469
|
};
|
|
14475
14470
|
//#endregion
|
|
14476
|
-
//#region src/
|
|
14477
|
-
function
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
}
|
|
14484
|
-
|
|
14485
|
-
return t.moduleName === "candidate" ? t.selectedIds ?? [] : e.candidate ? [e.candidate] : [];
|
|
14471
|
+
//#region src/services/candidatesApi.js
|
|
14472
|
+
async function Tg({ isFromSubmission: e, jobId: t, submissionId: n, search: r = "" } = {}) {
|
|
14473
|
+
let i = { search: r };
|
|
14474
|
+
e ? i.submissionId = n : i.jobId = t;
|
|
14475
|
+
let a = await Z(sn, "/quicksubmit/list", {
|
|
14476
|
+
method: "POST",
|
|
14477
|
+
body: JSON.stringify(i)
|
|
14478
|
+
});
|
|
14479
|
+
return a.data ?? a;
|
|
14486
14480
|
}
|
|
14487
|
-
|
|
14488
|
-
|
|
14481
|
+
//#endregion
|
|
14482
|
+
//#region src/components/popups/definitions/quick-submit/api.js
|
|
14483
|
+
var Eg = {
|
|
14484
|
+
searchOptions: async (e, t, n) => {
|
|
14485
|
+
if (e.searchFetchKey === "quickSubmitJobList") {
|
|
14486
|
+
let e = n.selectedRecords?.[0] ?? {}, r = await xc({
|
|
14487
|
+
searchQuery: t,
|
|
14488
|
+
candidateId: e.id ?? e._id ?? n.selectedIds?.[0]
|
|
14489
|
+
});
|
|
14490
|
+
return (Array.isArray(r?.data) ? r.data : []).map((e) => ({
|
|
14491
|
+
label: [e.jobRefId, e.jobTitle].filter(Boolean).join(" - ") || String(e._id ?? ""),
|
|
14492
|
+
value: e._id ?? ""
|
|
14493
|
+
}));
|
|
14494
|
+
}
|
|
14495
|
+
if (e.searchFetchKey === "quickSubmitCandidates") {
|
|
14496
|
+
let e = n.selectedRecords?.[0] ?? {}, r = n.jobId ?? e.jobId ?? e.id ?? e._id ?? n.selectedIds?.[0];
|
|
14497
|
+
return Tg({
|
|
14498
|
+
isFromSubmission: n.isFromSubmission,
|
|
14499
|
+
jobId: r,
|
|
14500
|
+
submissionId: n.submissionId,
|
|
14501
|
+
search: t
|
|
14502
|
+
});
|
|
14503
|
+
}
|
|
14504
|
+
return [];
|
|
14505
|
+
},
|
|
14489
14506
|
submit: async (e, t) => {
|
|
14490
|
-
let n =
|
|
14491
|
-
|
|
14492
|
-
_id: e,
|
|
14493
|
-
...n
|
|
14494
|
-
})));
|
|
14507
|
+
let { navigate: n, selectedRecords: r = [], selectedIds: i = [], moduleName: a, isFromSubmission: o = !1 } = t, s = r[0] ?? {};
|
|
14508
|
+
return n(a === "candidate" ? `/submission-create/${e.jobId ?? ""}?candidateId=${s.id ?? s._id ?? i[0] ?? ""}&isFromSubmission=${o}` : `/submission-create/${t.jobId ?? s.jobId ?? s.id ?? s._id ?? i[0] ?? ""}?candidateId=${e.candidate ?? ""}&isFromSubmission=${o}`), { navigated: !0 };
|
|
14495
14509
|
}
|
|
14496
|
-
},
|
|
14510
|
+
}, Dg = {
|
|
14497
14511
|
title: "Add Notes & Share",
|
|
14498
14512
|
okText: "Save & Share",
|
|
14499
14513
|
width: 480,
|
|
@@ -14505,9 +14519,9 @@ var Og = {
|
|
|
14505
14519
|
placeholder: "Add your notes on the job. Use '@' to mention someone.",
|
|
14506
14520
|
mentionFetchKey: "mentionUsers"
|
|
14507
14521
|
}]
|
|
14508
|
-
},
|
|
14509
|
-
async function
|
|
14510
|
-
return
|
|
14522
|
+
}, Og = (e) => e?.data ?? e;
|
|
14523
|
+
async function kg({ relatedId: e, notes: t, title: n, notesFor: r }) {
|
|
14524
|
+
return Og(await cc(X, "/notes", {
|
|
14511
14525
|
method: "POST",
|
|
14512
14526
|
body: JSON.stringify({
|
|
14513
14527
|
relatedId: e,
|
|
@@ -14519,16 +14533,18 @@ async function jg({ relatedId: e, notes: t, title: n, notesFor: r }) {
|
|
|
14519
14533
|
}
|
|
14520
14534
|
//#endregion
|
|
14521
14535
|
//#region src/components/popups/definitions/add-notes/api.js
|
|
14522
|
-
var
|
|
14523
|
-
getMentionOptions: async (e, t) =>
|
|
14536
|
+
var Ag = {
|
|
14537
|
+
getMentionOptions: async (e, t) => pg(t),
|
|
14524
14538
|
submit: async (e, t) => {
|
|
14525
|
-
|
|
14526
|
-
|
|
14539
|
+
let n = Array.isArray(t.selectedIds) ? t.selectedIds[0] : t.selectedIds;
|
|
14540
|
+
if (!n) throw Error("Please select a record before adding a note.");
|
|
14541
|
+
await kg({
|
|
14542
|
+
relatedId: String(n),
|
|
14527
14543
|
notes: e.notes,
|
|
14528
14544
|
notesFor: t.moduleName
|
|
14529
14545
|
});
|
|
14530
14546
|
}
|
|
14531
|
-
},
|
|
14547
|
+
}, jg = {
|
|
14532
14548
|
title: "Tag to Job",
|
|
14533
14549
|
okText: "Tag",
|
|
14534
14550
|
width: 480,
|
|
@@ -14553,16 +14569,16 @@ var Mg = {
|
|
|
14553
14569
|
value: "Pipeline"
|
|
14554
14570
|
}]
|
|
14555
14571
|
}]
|
|
14556
|
-
},
|
|
14572
|
+
}, Mg = {
|
|
14557
14573
|
searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? fg(t) : [],
|
|
14558
14574
|
submit: async (e, t) => {
|
|
14559
|
-
await
|
|
14575
|
+
await hg({
|
|
14560
14576
|
jobId: e.jobId,
|
|
14561
14577
|
candidateIds: t.selectedIds,
|
|
14562
14578
|
hiringStage: e.hiringStage
|
|
14563
14579
|
});
|
|
14564
14580
|
}
|
|
14565
|
-
},
|
|
14581
|
+
}, Ng = {
|
|
14566
14582
|
title: "Change Status",
|
|
14567
14583
|
okText: "Apply",
|
|
14568
14584
|
width: 420,
|
|
@@ -14594,9 +14610,9 @@ var Mg = {
|
|
|
14594
14610
|
}
|
|
14595
14611
|
]
|
|
14596
14612
|
}]
|
|
14597
|
-
},
|
|
14613
|
+
}, Pg = { submit: async (e, t) => {
|
|
14598
14614
|
await sg(t.moduleName, t.selectedIds, e.status);
|
|
14599
|
-
} },
|
|
14615
|
+
} }, Fg = {
|
|
14600
14616
|
getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
|
|
14601
14617
|
titleIcon: "delete",
|
|
14602
14618
|
okText: "Remove",
|
|
@@ -14605,12 +14621,12 @@ var Mg = {
|
|
|
14605
14621
|
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?",
|
|
14606
14622
|
footerNote: "The candidate will be moved back to the pipeline.",
|
|
14607
14623
|
fields: []
|
|
14608
|
-
},
|
|
14609
|
-
await
|
|
14624
|
+
}, Ig = { onOk: async (e) => {
|
|
14625
|
+
await Sg({
|
|
14610
14626
|
jobId: e.jobId ?? e.selectedIds[0],
|
|
14611
14627
|
candidateIds: e.selectedIds
|
|
14612
14628
|
});
|
|
14613
|
-
} },
|
|
14629
|
+
} }, Lg = {
|
|
14614
14630
|
title: "Add to Groups",
|
|
14615
14631
|
description: "Select a group to add the selected candidate(s) to",
|
|
14616
14632
|
okText: "Add to Group",
|
|
@@ -14624,26 +14640,26 @@ var Mg = {
|
|
|
14624
14640
|
placeholder: "Select a group",
|
|
14625
14641
|
fetchOptionsKey: "candidateGroups"
|
|
14626
14642
|
}]
|
|
14627
|
-
},
|
|
14628
|
-
getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ?
|
|
14643
|
+
}, Rg = {
|
|
14644
|
+
getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? gg() : [],
|
|
14629
14645
|
submit: async (e, t, { dynamicOptions: n }) => {
|
|
14630
14646
|
let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
|
|
14631
|
-
await
|
|
14647
|
+
await _g({
|
|
14632
14648
|
candidateIds: t.selectedIds,
|
|
14633
14649
|
groupId: e.groupId,
|
|
14634
14650
|
groupName: r?.label ?? ""
|
|
14635
14651
|
});
|
|
14636
14652
|
}
|
|
14637
|
-
},
|
|
14653
|
+
}, zg = {
|
|
14638
14654
|
title: "Self Assign",
|
|
14639
14655
|
okText: "Yes",
|
|
14640
14656
|
cancelText: "No",
|
|
14641
14657
|
width: 420,
|
|
14642
14658
|
bodyText: "Are you sure you want to assign this job?",
|
|
14643
14659
|
fields: []
|
|
14644
|
-
},
|
|
14645
|
-
await
|
|
14646
|
-
} },
|
|
14660
|
+
}, Bg = { onOk: async (e) => {
|
|
14661
|
+
await vg({ jobIds: e.selectedIds });
|
|
14662
|
+
} }, Vg = {
|
|
14647
14663
|
getTitleText: (e, t, n) => {
|
|
14648
14664
|
let r = n?.jobTitle || n?.title || "";
|
|
14649
14665
|
return r ? `Assign - ${r}` : "Assign";
|
|
@@ -14673,11 +14689,11 @@ var Mg = {
|
|
|
14673
14689
|
checkboxLabel: "Mark as High"
|
|
14674
14690
|
}
|
|
14675
14691
|
]
|
|
14676
|
-
},
|
|
14677
|
-
getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ?
|
|
14678
|
-
loadExtraData: async (e) =>
|
|
14692
|
+
}, Hg = {
|
|
14693
|
+
getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? yg() : [],
|
|
14694
|
+
loadExtraData: async (e) => bg(e.selectedIds[0]),
|
|
14679
14695
|
submit: async (e, t, { removedIds: n, extraData: r }) => {
|
|
14680
|
-
await
|
|
14696
|
+
await xg({
|
|
14681
14697
|
jobIds: t.selectedIds,
|
|
14682
14698
|
userId: e.assignToUserId,
|
|
14683
14699
|
rate: e.candidateRate,
|
|
@@ -14686,7 +14702,7 @@ var Mg = {
|
|
|
14686
14702
|
existingRecruiters: r?.recruitersData
|
|
14687
14703
|
});
|
|
14688
14704
|
}
|
|
14689
|
-
},
|
|
14705
|
+
}, Ug = {
|
|
14690
14706
|
title: "Add Sticky Notes",
|
|
14691
14707
|
okText: "Save",
|
|
14692
14708
|
width: 480,
|
|
@@ -14714,11 +14730,11 @@ var Mg = {
|
|
|
14714
14730
|
mentionFetchKey: "mentionUsers"
|
|
14715
14731
|
}
|
|
14716
14732
|
]
|
|
14717
|
-
},
|
|
14718
|
-
getMentionOptions: async (e, t) =>
|
|
14733
|
+
}, Wg = {
|
|
14734
|
+
getMentionOptions: async (e, t) => pg(t),
|
|
14719
14735
|
submit: async (e, t) => {
|
|
14720
14736
|
let n = (e.comments?.match(/@([\w.]+)/g) ?? []).map((e) => e.slice(1));
|
|
14721
|
-
await
|
|
14737
|
+
await mg({
|
|
14722
14738
|
relatedIds: t.selectedIds,
|
|
14723
14739
|
module: t.moduleName,
|
|
14724
14740
|
title: e.heading,
|
|
@@ -14727,37 +14743,37 @@ var Mg = {
|
|
|
14727
14743
|
mentionedUsers: n
|
|
14728
14744
|
});
|
|
14729
14745
|
}
|
|
14730
|
-
},
|
|
14746
|
+
}, Gg = {
|
|
14731
14747
|
delete: rg,
|
|
14732
|
-
"quick-submit":
|
|
14733
|
-
"add-notes":
|
|
14734
|
-
"tag-to-job":
|
|
14735
|
-
"change-status":
|
|
14736
|
-
"remove-from-shortlist":
|
|
14737
|
-
"add-to-groups":
|
|
14738
|
-
"self-assign":
|
|
14739
|
-
"others-assign":
|
|
14740
|
-
"sticky-notes":
|
|
14741
|
-
},
|
|
14742
|
-
delete:
|
|
14743
|
-
"quick-submit":
|
|
14744
|
-
"add-notes":
|
|
14745
|
-
"tag-to-job":
|
|
14746
|
-
"change-status":
|
|
14747
|
-
"remove-from-shortlist":
|
|
14748
|
-
"add-to-groups":
|
|
14749
|
-
"self-assign":
|
|
14750
|
-
"others-assign":
|
|
14751
|
-
"sticky-notes":
|
|
14748
|
+
"quick-submit": wg,
|
|
14749
|
+
"add-notes": Dg,
|
|
14750
|
+
"tag-to-job": jg,
|
|
14751
|
+
"change-status": Ng,
|
|
14752
|
+
"remove-from-shortlist": Fg,
|
|
14753
|
+
"add-to-groups": Lg,
|
|
14754
|
+
"self-assign": zg,
|
|
14755
|
+
"others-assign": Vg,
|
|
14756
|
+
"sticky-notes": Ug
|
|
14757
|
+
}, Kg = {
|
|
14758
|
+
delete: Cg,
|
|
14759
|
+
"quick-submit": Eg,
|
|
14760
|
+
"add-notes": Ag,
|
|
14761
|
+
"tag-to-job": Mg,
|
|
14762
|
+
"change-status": Pg,
|
|
14763
|
+
"remove-from-shortlist": Ig,
|
|
14764
|
+
"add-to-groups": Rg,
|
|
14765
|
+
"self-assign": Bg,
|
|
14766
|
+
"others-assign": Hg,
|
|
14767
|
+
"sticky-notes": Wg
|
|
14752
14768
|
};
|
|
14753
14769
|
//#endregion
|
|
14754
14770
|
//#region src/components/popups/dynamic/DynamicPopupRoute.jsx
|
|
14755
|
-
function
|
|
14771
|
+
function qg({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
14756
14772
|
let n = {
|
|
14757
|
-
...
|
|
14773
|
+
...Kg,
|
|
14758
14774
|
...e
|
|
14759
14775
|
}, r = {
|
|
14760
|
-
...
|
|
14776
|
+
...Gg,
|
|
14761
14777
|
...t
|
|
14762
14778
|
}, { popupKey: a } = Ht(), o = Vt(), { state: s = {} } = Bt(), c = r[a];
|
|
14763
14779
|
return /* @__PURE__ */ q(ng, {
|
|
@@ -14767,8 +14783,10 @@ function Yg({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
14767
14783
|
selectedIds: s.selectedIds ?? [],
|
|
14768
14784
|
selectedRecords: s.selectedRecords ?? [],
|
|
14769
14785
|
moduleName: s.moduleName ?? "",
|
|
14786
|
+
navigate: o,
|
|
14770
14787
|
...s.popupContext ?? {}
|
|
14771
14788
|
}), [
|
|
14789
|
+
o,
|
|
14772
14790
|
s.selectedIds,
|
|
14773
14791
|
s.selectedRecords,
|
|
14774
14792
|
s.moduleName,
|
|
@@ -14780,7 +14798,7 @@ function Yg({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
14780
14798
|
}
|
|
14781
14799
|
//#endregion
|
|
14782
14800
|
//#region src/components/popups/definitions/vendor-share/config.js
|
|
14783
|
-
var
|
|
14801
|
+
var Jg = {
|
|
14784
14802
|
title: "Vendor Share",
|
|
14785
14803
|
maxVendorSelect: 1e3,
|
|
14786
14804
|
defaultTab: "myVendor",
|
|
@@ -14814,7 +14832,7 @@ var Xg = {
|
|
|
14814
14832
|
key: "updatedOn"
|
|
14815
14833
|
}
|
|
14816
14834
|
]
|
|
14817
|
-
},
|
|
14835
|
+
}, Yg = {
|
|
14818
14836
|
getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => nc({
|
|
14819
14837
|
jobId: e,
|
|
14820
14838
|
limit: t,
|
|
@@ -14831,7 +14849,7 @@ var Xg = {
|
|
|
14831
14849
|
subject: i,
|
|
14832
14850
|
contents: a
|
|
14833
14851
|
})
|
|
14834
|
-
},
|
|
14852
|
+
}, Xg = [
|
|
14835
14853
|
{
|
|
14836
14854
|
icon: /* @__PURE__ */ q(he, {}),
|
|
14837
14855
|
title: "Bold"
|
|
@@ -14872,7 +14890,7 @@ var Xg = {
|
|
|
14872
14890
|
icon: /* @__PURE__ */ q(ut, {}),
|
|
14873
14891
|
title: "Attachment"
|
|
14874
14892
|
}
|
|
14875
|
-
],
|
|
14893
|
+
], Zg = [
|
|
14876
14894
|
{
|
|
14877
14895
|
value: "normal",
|
|
14878
14896
|
label: "Normal"
|
|
@@ -14890,21 +14908,21 @@ var Xg = {
|
|
|
14890
14908
|
label: "Heading 3"
|
|
14891
14909
|
}
|
|
14892
14910
|
];
|
|
14893
|
-
function
|
|
14911
|
+
function Qg(e) {
|
|
14894
14912
|
return e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
14895
14913
|
}
|
|
14896
|
-
var
|
|
14914
|
+
var $g = Jg.vendorColumns.map((e) => ({
|
|
14897
14915
|
...e,
|
|
14898
14916
|
render: (e) => e || "-"
|
|
14899
14917
|
}));
|
|
14900
|
-
function
|
|
14901
|
-
let e = Vt(), { selectedIds: t = [], selectedRecords: n = [], recipients: s = [], subject: c = "", onSend: l } = Bt().state ?? {}, u = t[0] ?? n[0]?._id ?? n[0]?.id, [d, p] = o(s.join(", ")), [m, h] = o(""), [g, _] = o(""), [b, x] = o(!1), [S, C] = o(!1), [T, E] = o(c), D = a(null), [O, k] = o(
|
|
14918
|
+
function e_() {
|
|
14919
|
+
let e = Vt(), { selectedIds: t = [], selectedRecords: n = [], recipients: s = [], subject: c = "", onSend: l } = Bt().state ?? {}, u = t[0] ?? n[0]?._id ?? n[0]?.id, [d, p] = o(s.join(", ")), [m, h] = o(""), [g, _] = o(""), [b, x] = o(!1), [S, C] = o(!1), [T, E] = o(c), D = a(null), [O, k] = o(Jg.defaultTab), [A, j] = o(""), [M, ee] = o([]), [N, P] = o(0), [F, L] = o(0), [R, z] = o(0), [te, ne] = o(1), [B, ie] = o(Jg.defaultPageSize), [V, ae] = o(!1), [U, W] = o([]);
|
|
14902
14920
|
r(() => {
|
|
14903
14921
|
if (!u) return;
|
|
14904
14922
|
let e = !1;
|
|
14905
14923
|
ae(!0);
|
|
14906
14924
|
let t = A ? 100 : B, n = A ? 0 : (te - 1) * B;
|
|
14907
|
-
return
|
|
14925
|
+
return Yg.getVendorList({
|
|
14908
14926
|
jobId: u,
|
|
14909
14927
|
limit: t,
|
|
14910
14928
|
offset: n,
|
|
@@ -14927,7 +14945,7 @@ function n_() {
|
|
|
14927
14945
|
B,
|
|
14928
14946
|
A
|
|
14929
14947
|
]), r(() => {
|
|
14930
|
-
u &&
|
|
14948
|
+
u && Yg.getMailDetails(u).then((e) => {
|
|
14931
14949
|
e.subject && E(e.subject), e.contents && D.current && (D.current.innerHTML = e.contents);
|
|
14932
14950
|
}).catch(() => {});
|
|
14933
14951
|
}, [u]), r(() => {
|
|
@@ -14941,11 +14959,11 @@ function n_() {
|
|
|
14941
14959
|
function le() {
|
|
14942
14960
|
if (!oe) return;
|
|
14943
14961
|
let n = D.current?.innerHTML ?? "";
|
|
14944
|
-
|
|
14962
|
+
Yg.submit({
|
|
14945
14963
|
jobId: u,
|
|
14946
|
-
toMail:
|
|
14947
|
-
ccMail:
|
|
14948
|
-
bccMail:
|
|
14964
|
+
toMail: Qg(d),
|
|
14965
|
+
ccMail: Qg(m),
|
|
14966
|
+
bccMail: Qg(g),
|
|
14949
14967
|
subject: T,
|
|
14950
14968
|
contents: n
|
|
14951
14969
|
}).then((r) => {
|
|
@@ -15025,7 +15043,7 @@ function n_() {
|
|
|
15025
15043
|
]
|
|
15026
15044
|
}), /* @__PURE__ */ q("div", {
|
|
15027
15045
|
className: "vendor-share__vendor-tabs",
|
|
15028
|
-
children:
|
|
15046
|
+
children: Jg.vendorTabs.map((e) => /* @__PURE__ */ J("span", {
|
|
15029
15047
|
className: `vendor-share__vendor-tab${O === e.key ? " vendor-share__vendor-tab--active" : ""}`,
|
|
15030
15048
|
onClick: () => {
|
|
15031
15049
|
k(e.key), ne(1), W([]);
|
|
@@ -15043,7 +15061,7 @@ function n_() {
|
|
|
15043
15061
|
className: "vendor-share__vendor-table-wrapper",
|
|
15044
15062
|
children: /* @__PURE__ */ q(re, {
|
|
15045
15063
|
rowKey: (e) => e.vendorId,
|
|
15046
|
-
columns:
|
|
15064
|
+
columns: $g,
|
|
15047
15065
|
dataSource: ue,
|
|
15048
15066
|
loading: V,
|
|
15049
15067
|
pagination: !1,
|
|
@@ -15051,7 +15069,7 @@ function n_() {
|
|
|
15051
15069
|
rowSelection: {
|
|
15052
15070
|
selectedRowKeys: U,
|
|
15053
15071
|
onChange: (e) => {
|
|
15054
|
-
e.length >
|
|
15072
|
+
e.length > Jg.maxVendorSelect || W(e);
|
|
15055
15073
|
}
|
|
15056
15074
|
},
|
|
15057
15075
|
scroll: { y: "calc(100vh - 340px)" }
|
|
@@ -15152,7 +15170,7 @@ function n_() {
|
|
|
15152
15170
|
children: [
|
|
15153
15171
|
U.length,
|
|
15154
15172
|
" / ",
|
|
15155
|
-
|
|
15173
|
+
Jg.maxVendorSelect,
|
|
15156
15174
|
" Vendors selected"
|
|
15157
15175
|
]
|
|
15158
15176
|
}),
|
|
@@ -15193,9 +15211,9 @@ function n_() {
|
|
|
15193
15211
|
defaultValue: "normal",
|
|
15194
15212
|
variant: "borderless",
|
|
15195
15213
|
className: "mail-popup__toolbar-style-select",
|
|
15196
|
-
options:
|
|
15214
|
+
options: Zg,
|
|
15197
15215
|
popupMatchSelectWidth: !1
|
|
15198
|
-
}),
|
|
15216
|
+
}), Xg.map(({ icon: e, title: t }) => /* @__PURE__ */ q(H, {
|
|
15199
15217
|
title: t,
|
|
15200
15218
|
mouseEnterDelay: .5,
|
|
15201
15219
|
children: /* @__PURE__ */ q(f, {
|
|
@@ -15221,7 +15239,7 @@ function n_() {
|
|
|
15221
15239
|
}
|
|
15222
15240
|
//#endregion
|
|
15223
15241
|
//#region src/components/form/validation.js
|
|
15224
|
-
var
|
|
15242
|
+
var t_ = {
|
|
15225
15243
|
EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
|
|
15226
15244
|
PHONE: /^[0-9]{10}$/,
|
|
15227
15245
|
PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
|
|
@@ -15238,7 +15256,7 @@ var r_ = {
|
|
|
15238
15256
|
FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
|
|
15239
15257
|
NO_SPACES: /^\S+$/,
|
|
15240
15258
|
STARTS_WITH_CAPITAL: /^[A-Z].*$/
|
|
15241
|
-
},
|
|
15259
|
+
}, n_ = {
|
|
15242
15260
|
SINGLE_FILE_COUNT: 1,
|
|
15243
15261
|
MULTI_FILE_COUNT: 5,
|
|
15244
15262
|
MAX_FILE_SIZE: 2,
|
|
@@ -15247,7 +15265,7 @@ var r_ = {
|
|
|
15247
15265
|
"image/png",
|
|
15248
15266
|
"application/pdf"
|
|
15249
15267
|
]
|
|
15250
|
-
},
|
|
15268
|
+
}, r_ = {
|
|
15251
15269
|
REQUIRED: (e) => "Mandatory Field",
|
|
15252
15270
|
INVALID_EMAIL: "Please enter a valid email address.",
|
|
15253
15271
|
INVALID_PHONE: "Phone number must contain exactly 10 digits.",
|
|
@@ -15267,16 +15285,16 @@ var r_ = {
|
|
|
15267
15285
|
NO_SPACES_ALLOWED: "Spaces are not allowed.",
|
|
15268
15286
|
MUST_START_WITH_CAPITAL: "First letter must be capital.",
|
|
15269
15287
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
15270
|
-
INVALID_FILE_SIZE: `File upload must be ${
|
|
15288
|
+
INVALID_FILE_SIZE: `File upload must be ${n_.MAX_FILE_SIZE} MB below.`,
|
|
15271
15289
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
15272
15290
|
SINGLE_FILE_ONLY: "Only one file can be uploaded."
|
|
15273
|
-
},
|
|
15291
|
+
}, i_ = {
|
|
15274
15292
|
FIRST_NAME_MIN: 3,
|
|
15275
15293
|
FIRST_NAME_MAX: 30
|
|
15276
|
-
},
|
|
15294
|
+
}, a_ = {
|
|
15277
15295
|
REMARKS_MIN: 10,
|
|
15278
15296
|
REMARKS_MAX: 250
|
|
15279
|
-
},
|
|
15297
|
+
}, o_ = {
|
|
15280
15298
|
removeSpaces: (e = "") => e.replace(/\s/g, ""),
|
|
15281
15299
|
capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
|
|
15282
15300
|
capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
@@ -15288,132 +15306,132 @@ var r_ = {
|
|
|
15288
15306
|
let t = e.replace(/\D/g, "");
|
|
15289
15307
|
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)}`;
|
|
15290
15308
|
}
|
|
15291
|
-
},
|
|
15309
|
+
}, s_ = {
|
|
15292
15310
|
required: (e = "Field") => ({
|
|
15293
15311
|
required: !0,
|
|
15294
|
-
message:
|
|
15312
|
+
message: r_.REQUIRED(e)
|
|
15295
15313
|
}),
|
|
15296
15314
|
email: () => ({
|
|
15297
|
-
pattern:
|
|
15298
|
-
message:
|
|
15315
|
+
pattern: t_.EMAIL,
|
|
15316
|
+
message: r_.INVALID_EMAIL
|
|
15299
15317
|
}),
|
|
15300
15318
|
phone: () => ({
|
|
15301
|
-
pattern:
|
|
15302
|
-
message:
|
|
15319
|
+
pattern: t_.PHONE,
|
|
15320
|
+
message: r_.INVALID_PHONE
|
|
15303
15321
|
}),
|
|
15304
15322
|
password: () => ({
|
|
15305
|
-
pattern:
|
|
15306
|
-
message:
|
|
15323
|
+
pattern: t_.PASSWORD,
|
|
15324
|
+
message: r_.INVALID_PASSWORD
|
|
15307
15325
|
}),
|
|
15308
15326
|
alphabets: () => ({
|
|
15309
|
-
pattern:
|
|
15310
|
-
message:
|
|
15327
|
+
pattern: t_.ALPHABETS,
|
|
15328
|
+
message: r_.INVALID_ALPHABETS
|
|
15311
15329
|
}),
|
|
15312
15330
|
alphanumeric: () => ({
|
|
15313
|
-
pattern:
|
|
15314
|
-
message:
|
|
15331
|
+
pattern: t_.ALPHANUMERIC,
|
|
15332
|
+
message: r_.INVALID_ALPHANUMERIC
|
|
15315
15333
|
}),
|
|
15316
15334
|
number: () => ({
|
|
15317
|
-
pattern:
|
|
15318
|
-
message:
|
|
15335
|
+
pattern: t_.NUMBER,
|
|
15336
|
+
message: r_.INVALID_NUMBER
|
|
15319
15337
|
}),
|
|
15320
15338
|
url: () => ({
|
|
15321
|
-
pattern:
|
|
15322
|
-
message:
|
|
15339
|
+
pattern: t_.URL,
|
|
15340
|
+
message: r_.INVALID_URL
|
|
15323
15341
|
}),
|
|
15324
15342
|
candidateId: (e = "ID") => ({
|
|
15325
|
-
pattern:
|
|
15326
|
-
message:
|
|
15343
|
+
pattern: t_.CANDIDATE_ID,
|
|
15344
|
+
message: r_.INVALID_CANDIDATE_ID(e)
|
|
15327
15345
|
}),
|
|
15328
15346
|
remarks: () => ({
|
|
15329
|
-
pattern:
|
|
15330
|
-
message:
|
|
15331
|
-
REMARKS_MIN: `Remarks must be at least ${
|
|
15332
|
-
REMARKS_MAX: `Remarks must not exceed ${
|
|
15347
|
+
pattern: t_.REMARKS,
|
|
15348
|
+
message: r_.INVALID_REMARKS,
|
|
15349
|
+
REMARKS_MIN: `Remarks must be at least ${a_.REMARKS_MIN} characters.`,
|
|
15350
|
+
REMARKS_MAX: `Remarks must not exceed ${a_.REMARKS_MAX} characters.`
|
|
15333
15351
|
}),
|
|
15334
15352
|
designation: () => ({
|
|
15335
|
-
pattern:
|
|
15336
|
-
message:
|
|
15353
|
+
pattern: t_.DESIGNATION,
|
|
15354
|
+
message: r_.INVALID_DESIGNATION
|
|
15337
15355
|
}),
|
|
15338
15356
|
dob: (e = !0) => ({ validator: (t, n) => {
|
|
15339
15357
|
if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
|
|
15340
|
-
if (!
|
|
15358
|
+
if (!t_.DOB.test(n)) return Promise.reject(Error(r_.INVALID_DOB));
|
|
15341
15359
|
let r = Wt(n, "MM/DD/YYYY", !0);
|
|
15342
|
-
if (!r.isValid()) return Promise.reject(Error(
|
|
15360
|
+
if (!r.isValid()) return Promise.reject(Error(r_.INVALID_DOB));
|
|
15343
15361
|
let i = Wt().endOf("day");
|
|
15344
15362
|
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();
|
|
15345
15363
|
} }),
|
|
15346
15364
|
linkedin: () => ({
|
|
15347
|
-
pattern:
|
|
15348
|
-
message:
|
|
15365
|
+
pattern: t_.LINKEDIN,
|
|
15366
|
+
message: r_.INVALID_LINKEDIN
|
|
15349
15367
|
}),
|
|
15350
15368
|
companyName: () => ({
|
|
15351
|
-
pattern:
|
|
15352
|
-
message:
|
|
15369
|
+
pattern: t_.COMPANY_NAME,
|
|
15370
|
+
message: r_.INVALID_COMPANY_NAME
|
|
15353
15371
|
}),
|
|
15354
15372
|
firstName: () => ({
|
|
15355
|
-
pattern:
|
|
15356
|
-
message:
|
|
15357
|
-
FIRST_NAME_MIN: `First Name must be at least ${
|
|
15358
|
-
FIRST_NAME_MAX: `First Name must not exceed ${
|
|
15373
|
+
pattern: t_.FIRST_NAME,
|
|
15374
|
+
message: r_.INVALID_FIRST_NAME,
|
|
15375
|
+
FIRST_NAME_MIN: `First Name must be at least ${i_.FIRST_NAME_MIN} characters.`,
|
|
15376
|
+
FIRST_NAME_MAX: `First Name must not exceed ${i_.FIRST_NAME_MAX} characters.`
|
|
15359
15377
|
}),
|
|
15360
15378
|
firstNameMinLength: () => ({
|
|
15361
|
-
min:
|
|
15362
|
-
message:
|
|
15379
|
+
min: i_.FIRST_NAME_MIN,
|
|
15380
|
+
message: r_.FIRST_NAME_MIN
|
|
15363
15381
|
}),
|
|
15364
15382
|
firstNameMaxLength: () => ({
|
|
15365
|
-
max:
|
|
15366
|
-
message:
|
|
15383
|
+
max: i_.FIRST_NAME_MAX,
|
|
15384
|
+
message: r_.FIRST_NAME_MAX
|
|
15367
15385
|
}),
|
|
15368
15386
|
remarksMinLength: () => ({
|
|
15369
|
-
min:
|
|
15370
|
-
message:
|
|
15387
|
+
min: a_.REMARKS_MIN,
|
|
15388
|
+
message: r_.REMARKS_MIN
|
|
15371
15389
|
}),
|
|
15372
15390
|
remarksMaxLength: () => ({
|
|
15373
|
-
max:
|
|
15374
|
-
message:
|
|
15391
|
+
max: a_.REMARKS_MAX,
|
|
15392
|
+
message: r_.REMARKS_MAX
|
|
15375
15393
|
}),
|
|
15376
15394
|
fullName: () => ({
|
|
15377
|
-
pattern:
|
|
15378
|
-
message:
|
|
15395
|
+
pattern: t_.FULL_NAME,
|
|
15396
|
+
message: r_.INVALID_FULL_NAME
|
|
15379
15397
|
}),
|
|
15380
15398
|
noSpaces: () => ({
|
|
15381
|
-
pattern:
|
|
15382
|
-
message:
|
|
15399
|
+
pattern: t_.NO_SPACES,
|
|
15400
|
+
message: r_.NO_SPACES_ALLOWED
|
|
15383
15401
|
}),
|
|
15384
15402
|
startsWithCapital: () => ({
|
|
15385
|
-
pattern:
|
|
15386
|
-
message:
|
|
15403
|
+
pattern: t_.STARTS_WITH_CAPITAL,
|
|
15404
|
+
message: r_.MUST_START_WITH_CAPITAL
|
|
15387
15405
|
}),
|
|
15388
15406
|
fileUpload: () => ({ validator: (e, t) => {
|
|
15389
15407
|
if (!t || t.length === 0) return Promise.resolve();
|
|
15390
15408
|
for (let e of t) {
|
|
15391
15409
|
let t = e.originFileObj || e;
|
|
15392
|
-
if (!(t.size / 1024 / 1024 <=
|
|
15393
|
-
if (!
|
|
15410
|
+
if (!(t.size / 1024 / 1024 <= n_.MAX_FILE_SIZE)) return G.error(r_.INVALID_FILE_SIZE), Promise.reject(Error(r_.INVALID_FILE_SIZE));
|
|
15411
|
+
if (!n_.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(r_.INVALID_FILE_TYPE));
|
|
15394
15412
|
}
|
|
15395
15413
|
return Promise.resolve();
|
|
15396
15414
|
} }),
|
|
15397
15415
|
singleFileUpload: () => ({ validator: (e, t) => {
|
|
15398
15416
|
if (!t || t.length === 0) return Promise.resolve();
|
|
15399
|
-
if (t.length >
|
|
15417
|
+
if (t.length > n_.SINGLE_FILE_COUNT) return Promise.reject(Error(r_.SINGLE_FILE_ONLY));
|
|
15400
15418
|
let n = t[0];
|
|
15401
|
-
return n.size / 1024 / 1024 <
|
|
15419
|
+
return n.size / 1024 / 1024 < n_.MAX_FILE_SIZE ? n_.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(r_.INVALID_FILE_TYPE)) : Promise.reject(Error(r_.INVALID_FILE_SIZE));
|
|
15402
15420
|
} }),
|
|
15403
15421
|
multiFileUpload: () => ({ validator: (e, t) => {
|
|
15404
15422
|
if (!t || t.length === 0) return Promise.resolve();
|
|
15405
|
-
if (t.length >
|
|
15423
|
+
if (t.length > n_.MULTI_FILE_COUNT) return Promise.reject(Error(r_.INVALID_FILE_COUNT));
|
|
15406
15424
|
for (let e of t) {
|
|
15407
|
-
if (!(e.size / 1024 / 1024 <
|
|
15408
|
-
if (!
|
|
15425
|
+
if (!(e.size / 1024 / 1024 < n_.MAX_FILE_SIZE)) return Promise.reject(Error(r_.INVALID_FILE_SIZE));
|
|
15426
|
+
if (!n_.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(r_.INVALID_FILE_TYPE));
|
|
15409
15427
|
}
|
|
15410
15428
|
return Promise.resolve();
|
|
15411
15429
|
} })
|
|
15412
|
-
},
|
|
15430
|
+
}, c_ = { beforeUpload: (e) => [
|
|
15413
15431
|
"image/jpeg",
|
|
15414
15432
|
"image/png",
|
|
15415
15433
|
"application/pdf"
|
|
15416
|
-
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (G.error("File upload must be 2 MB below."), W.LIST_IGNORE) : (G.error("Only JPG, PNG and PDF files are allowed."), W.LIST_IGNORE) },
|
|
15434
|
+
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (G.error("File upload must be 2 MB below."), W.LIST_IGNORE) : (G.error("Only JPG, PNG and PDF files are allowed."), W.LIST_IGNORE) }, l_ = () => {
|
|
15417
15435
|
let [e] = C.useForm();
|
|
15418
15436
|
return /* @__PURE__ */ q("div", {
|
|
15419
15437
|
style: { padding: 24 },
|
|
@@ -15433,7 +15451,7 @@ var r_ = {
|
|
|
15433
15451
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15434
15452
|
label: "Email",
|
|
15435
15453
|
name: "email",
|
|
15436
|
-
rules: [
|
|
15454
|
+
rules: [s_.required("Email"), s_.email()],
|
|
15437
15455
|
children: /* @__PURE__ */ q(w, {})
|
|
15438
15456
|
})
|
|
15439
15457
|
}),
|
|
@@ -15442,12 +15460,12 @@ var r_ = {
|
|
|
15442
15460
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15443
15461
|
label: "Phone Number",
|
|
15444
15462
|
name: "phone",
|
|
15445
|
-
rules: [
|
|
15463
|
+
rules: [s_.required("Phone Number"), s_.phone()],
|
|
15446
15464
|
validateTrigger: ["onBlur", "onChange"],
|
|
15447
15465
|
children: /* @__PURE__ */ q(w, {
|
|
15448
15466
|
maxLength: 10,
|
|
15449
15467
|
onChange: (t) => {
|
|
15450
|
-
e.setFieldsValue({ phone:
|
|
15468
|
+
e.setFieldsValue({ phone: o_.phoneFormatter(t.target.value) });
|
|
15451
15469
|
}
|
|
15452
15470
|
})
|
|
15453
15471
|
})
|
|
@@ -15457,7 +15475,7 @@ var r_ = {
|
|
|
15457
15475
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15458
15476
|
label: "Password",
|
|
15459
15477
|
name: "password",
|
|
15460
|
-
rules: [
|
|
15478
|
+
rules: [s_.required("Password"), s_.password()],
|
|
15461
15479
|
children: /* @__PURE__ */ q(w.Password, {})
|
|
15462
15480
|
})
|
|
15463
15481
|
}),
|
|
@@ -15467,13 +15485,13 @@ var r_ = {
|
|
|
15467
15485
|
label: "Full Name",
|
|
15468
15486
|
name: "fullName",
|
|
15469
15487
|
rules: [
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
|
|
15473
|
-
|
|
15488
|
+
s_.required("Full Name"),
|
|
15489
|
+
s_.alphabets(),
|
|
15490
|
+
s_.firstNameMinLength(),
|
|
15491
|
+
s_.firstNameMaxLength()
|
|
15474
15492
|
],
|
|
15475
15493
|
children: /* @__PURE__ */ q(w, { onChange: (t) => {
|
|
15476
|
-
e.setFieldsValue({ fullName:
|
|
15494
|
+
e.setFieldsValue({ fullName: o_.firstNameFormatter(t.target.value) });
|
|
15477
15495
|
} })
|
|
15478
15496
|
})
|
|
15479
15497
|
}),
|
|
@@ -15482,9 +15500,9 @@ var r_ = {
|
|
|
15482
15500
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15483
15501
|
label: "Username",
|
|
15484
15502
|
name: "username",
|
|
15485
|
-
rules: [
|
|
15503
|
+
rules: [s_.required("Username"), s_.alphanumeric()],
|
|
15486
15504
|
children: /* @__PURE__ */ q(w, { onChange: (t) => {
|
|
15487
|
-
e.setFieldsValue({ username:
|
|
15505
|
+
e.setFieldsValue({ username: o_.removeExtraSpaces(t.target.value) });
|
|
15488
15506
|
} })
|
|
15489
15507
|
})
|
|
15490
15508
|
}),
|
|
@@ -15493,9 +15511,9 @@ var r_ = {
|
|
|
15493
15511
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15494
15512
|
label: "Website URL",
|
|
15495
15513
|
name: "website",
|
|
15496
|
-
rules: [
|
|
15514
|
+
rules: [s_.required("Website URL"), s_.url()],
|
|
15497
15515
|
children: /* @__PURE__ */ q(w, { onChange: (t) => {
|
|
15498
|
-
e.setFieldsValue({ website:
|
|
15516
|
+
e.setFieldsValue({ website: o_.removeExtraSpaces(t.target.value) });
|
|
15499
15517
|
} })
|
|
15500
15518
|
})
|
|
15501
15519
|
}),
|
|
@@ -15504,9 +15522,9 @@ var r_ = {
|
|
|
15504
15522
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15505
15523
|
label: "MSP Req ID",
|
|
15506
15524
|
name: "mspreqID",
|
|
15507
|
-
rules: [
|
|
15525
|
+
rules: [s_.required("MSP Req ID"), s_.candidateId("MSP Req ID")],
|
|
15508
15526
|
children: /* @__PURE__ */ q(w, { onChange: (t) => {
|
|
15509
|
-
e.setFieldsValue({ mspreqID:
|
|
15527
|
+
e.setFieldsValue({ mspreqID: o_.removeExtraSpaces(t.target.value) });
|
|
15510
15528
|
} })
|
|
15511
15529
|
})
|
|
15512
15530
|
}),
|
|
@@ -15515,9 +15533,9 @@ var r_ = {
|
|
|
15515
15533
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15516
15534
|
label: "Candidate ID",
|
|
15517
15535
|
name: "candidateId",
|
|
15518
|
-
rules: [
|
|
15536
|
+
rules: [s_.required("Candidate ID"), s_.candidateId("Candidate ID")],
|
|
15519
15537
|
children: /* @__PURE__ */ q(w, { onChange: (t) => {
|
|
15520
|
-
e.setFieldsValue({ candidateId:
|
|
15538
|
+
e.setFieldsValue({ candidateId: o_.removeExtraSpaces(t.target.value) });
|
|
15521
15539
|
} })
|
|
15522
15540
|
})
|
|
15523
15541
|
}),
|
|
@@ -15527,10 +15545,10 @@ var r_ = {
|
|
|
15527
15545
|
label: "Remarks",
|
|
15528
15546
|
name: "remarks",
|
|
15529
15547
|
rules: [
|
|
15530
|
-
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15548
|
+
s_.required("Remarks"),
|
|
15549
|
+
s_.remarks(),
|
|
15550
|
+
s_.remarksMinLength(),
|
|
15551
|
+
s_.remarksMaxLength()
|
|
15534
15552
|
],
|
|
15535
15553
|
children: /* @__PURE__ */ q(w.TextArea, { rows: 4 })
|
|
15536
15554
|
})
|
|
@@ -15540,7 +15558,7 @@ var r_ = {
|
|
|
15540
15558
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15541
15559
|
label: "Designation",
|
|
15542
15560
|
name: "designation",
|
|
15543
|
-
rules: [
|
|
15561
|
+
rules: [s_.required("Designation"), s_.designation()],
|
|
15544
15562
|
children: /* @__PURE__ */ q(w, {})
|
|
15545
15563
|
})
|
|
15546
15564
|
}),
|
|
@@ -15549,12 +15567,12 @@ var r_ = {
|
|
|
15549
15567
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15550
15568
|
label: "Date of Birth",
|
|
15551
15569
|
name: "dob",
|
|
15552
|
-
rules: [
|
|
15570
|
+
rules: [s_.dob()],
|
|
15553
15571
|
children: /* @__PURE__ */ q(w, {
|
|
15554
15572
|
placeholder: "MM/DD/YYYY",
|
|
15555
15573
|
maxLength: 10,
|
|
15556
15574
|
onChange: (t) => {
|
|
15557
|
-
e.setFieldsValue({ dob:
|
|
15575
|
+
e.setFieldsValue({ dob: o_.dobFormatter(t.target.value) });
|
|
15558
15576
|
}
|
|
15559
15577
|
})
|
|
15560
15578
|
})
|
|
@@ -15564,7 +15582,7 @@ var r_ = {
|
|
|
15564
15582
|
children: /* @__PURE__ */ q(C.Item, {
|
|
15565
15583
|
label: "Company Name",
|
|
15566
15584
|
name: "companyName",
|
|
15567
|
-
rules: [
|
|
15585
|
+
rules: [s_.required("Company Name"), s_.companyName()],
|
|
15568
15586
|
children: /* @__PURE__ */ q(w, {})
|
|
15569
15587
|
})
|
|
15570
15588
|
}),
|
|
@@ -15653,7 +15671,7 @@ var r_ = {
|
|
|
15653
15671
|
label: "Resume new",
|
|
15654
15672
|
name: "resume",
|
|
15655
15673
|
children: /* @__PURE__ */ q(W, {
|
|
15656
|
-
beforeUpload:
|
|
15674
|
+
beforeUpload: c_.beforeUpload,
|
|
15657
15675
|
maxCount: 1,
|
|
15658
15676
|
children: /* @__PURE__ */ q(f, { children: "Upload Resume" })
|
|
15659
15677
|
})
|
|
@@ -15666,10 +15684,10 @@ var r_ = {
|
|
|
15666
15684
|
name: "documents",
|
|
15667
15685
|
valuePropName: "fileList",
|
|
15668
15686
|
getValueFromEvent: (e) => e?.fileList,
|
|
15669
|
-
rules: [
|
|
15687
|
+
rules: [s_.multiFileUpload()],
|
|
15670
15688
|
children: /* @__PURE__ */ q(W, {
|
|
15671
15689
|
multiple: !0,
|
|
15672
|
-
beforeUpload:
|
|
15690
|
+
beforeUpload: c_.beforeUpload,
|
|
15673
15691
|
children: /* @__PURE__ */ q(f, { children: "Upload Documents" })
|
|
15674
15692
|
})
|
|
15675
15693
|
})
|
|
@@ -15681,9 +15699,9 @@ var r_ = {
|
|
|
15681
15699
|
name: "file",
|
|
15682
15700
|
valuePropName: "fileList",
|
|
15683
15701
|
getValueFromEvent: (e) => e?.fileList,
|
|
15684
|
-
rules: [
|
|
15702
|
+
rules: [s_.fileUpload()],
|
|
15685
15703
|
children: /* @__PURE__ */ q(W, {
|
|
15686
|
-
beforeUpload:
|
|
15704
|
+
beforeUpload: c_.beforeUpload,
|
|
15687
15705
|
maxCount: 1,
|
|
15688
15706
|
children: /* @__PURE__ */ q(f, { children: "Upload" })
|
|
15689
15707
|
})
|
|
@@ -15740,7 +15758,7 @@ var r_ = {
|
|
|
15740
15758
|
]
|
|
15741
15759
|
})
|
|
15742
15760
|
});
|
|
15743
|
-
}, { Text:
|
|
15761
|
+
}, { Text: u_ } = U, d_ = [
|
|
15744
15762
|
{
|
|
15745
15763
|
label: "Total Jobs",
|
|
15746
15764
|
value: 1697,
|
|
@@ -15756,13 +15774,13 @@ var r_ = {
|
|
|
15756
15774
|
value: 600,
|
|
15757
15775
|
icon: "user"
|
|
15758
15776
|
}
|
|
15759
|
-
],
|
|
15777
|
+
], f_ = {
|
|
15760
15778
|
fileText: /* @__PURE__ */ q(Be, {}),
|
|
15761
15779
|
checkCircle: /* @__PURE__ */ q(ye, {}),
|
|
15762
15780
|
user: /* @__PURE__ */ q(Ft, {}),
|
|
15763
15781
|
filter: /* @__PURE__ */ q(Ue, {})
|
|
15764
15782
|
};
|
|
15765
|
-
function
|
|
15783
|
+
function p_({ stats: e = d_ }) {
|
|
15766
15784
|
return /* @__PURE__ */ q(p, { children: /* @__PURE__ */ q(F, {
|
|
15767
15785
|
gutter: [12, 12],
|
|
15768
15786
|
children: e.map((e) => /* @__PURE__ */ q(h, {
|
|
@@ -15775,7 +15793,7 @@ function h_({ stats: e = p_ }) {
|
|
|
15775
15793
|
className: "stats-inner-card",
|
|
15776
15794
|
children: [/* @__PURE__ */ J(R, {
|
|
15777
15795
|
align: "center",
|
|
15778
|
-
children: [
|
|
15796
|
+
children: [f_[e.icon] ?? f_.fileText, /* @__PURE__ */ q(u_, { children: e.label })]
|
|
15779
15797
|
}), /* @__PURE__ */ q(te, { value: e.value })]
|
|
15780
15798
|
})
|
|
15781
15799
|
}, e.label))
|
|
@@ -15783,14 +15801,14 @@ function h_({ stats: e = p_ }) {
|
|
|
15783
15801
|
}
|
|
15784
15802
|
//#endregion
|
|
15785
15803
|
//#region src/pages/Modules/Admin/FormGroupsSection.jsx
|
|
15786
|
-
var { Text:
|
|
15804
|
+
var { Text: m_ } = U, h_ = [
|
|
15787
15805
|
"#0053a5",
|
|
15788
15806
|
"#52c41a",
|
|
15789
15807
|
"#722ed1",
|
|
15790
15808
|
"#fa8c16",
|
|
15791
15809
|
"#eb2f96",
|
|
15792
15810
|
"#13c2c2"
|
|
15793
|
-
],
|
|
15811
|
+
], g_ = [
|
|
15794
15812
|
{
|
|
15795
15813
|
label: "Text",
|
|
15796
15814
|
value: "text"
|
|
@@ -15835,7 +15853,7 @@ var { Text: g_ } = U, __ = [
|
|
|
15835
15853
|
label: "File",
|
|
15836
15854
|
value: "file"
|
|
15837
15855
|
}
|
|
15838
|
-
],
|
|
15856
|
+
], __ = [
|
|
15839
15857
|
{
|
|
15840
15858
|
label: "Static (define options here)",
|
|
15841
15859
|
value: "static"
|
|
@@ -15856,7 +15874,7 @@ var { Text: g_ } = U, __ = [
|
|
|
15856
15874
|
label: "Group value",
|
|
15857
15875
|
value: "group"
|
|
15858
15876
|
}
|
|
15859
|
-
],
|
|
15877
|
+
], v_ = [
|
|
15860
15878
|
{
|
|
15861
15879
|
label: "Required",
|
|
15862
15880
|
value: "required",
|
|
@@ -15951,7 +15969,7 @@ var { Text: g_ } = U, __ = [
|
|
|
15951
15969
|
placeholder: "e.g. 18",
|
|
15952
15970
|
messageOptional: !0
|
|
15953
15971
|
}
|
|
15954
|
-
],
|
|
15972
|
+
], y_ = [
|
|
15955
15973
|
{
|
|
15956
15974
|
label: "Equals (=)",
|
|
15957
15975
|
value: "eq"
|
|
@@ -15968,7 +15986,7 @@ var { Text: g_ } = U, __ = [
|
|
|
15968
15986
|
label: "Is empty",
|
|
15969
15987
|
value: "falsy"
|
|
15970
15988
|
}
|
|
15971
|
-
],
|
|
15989
|
+
], b_ = [
|
|
15972
15990
|
{
|
|
15973
15991
|
label: "Auto (infer from field)",
|
|
15974
15992
|
value: "auto"
|
|
@@ -15997,7 +16015,7 @@ var { Text: g_ } = U, __ = [
|
|
|
15997
16015
|
label: "Date (ISO)",
|
|
15998
16016
|
value: "date"
|
|
15999
16017
|
}
|
|
16000
|
-
],
|
|
16018
|
+
], x_ = [
|
|
16001
16019
|
{
|
|
16002
16020
|
label: "(none)",
|
|
16003
16021
|
value: ""
|
|
@@ -16014,7 +16032,7 @@ var { Text: g_ } = U, __ = [
|
|
|
16014
16032
|
label: "Boolean",
|
|
16015
16033
|
value: "boolean"
|
|
16016
16034
|
}
|
|
16017
|
-
],
|
|
16035
|
+
], S_ = [
|
|
16018
16036
|
{
|
|
16019
16037
|
label: "Auto (value as-is)",
|
|
16020
16038
|
value: "auto"
|
|
@@ -16039,7 +16057,7 @@ var { Text: g_ } = U, __ = [
|
|
|
16039
16057
|
label: "Skip (never send)",
|
|
16040
16058
|
value: "skip"
|
|
16041
16059
|
}
|
|
16042
|
-
],
|
|
16060
|
+
], C_ = {
|
|
16043
16061
|
required: "red",
|
|
16044
16062
|
min: "orange",
|
|
16045
16063
|
max: "gold",
|
|
@@ -16055,10 +16073,10 @@ var { Text: g_ } = U, __ = [
|
|
|
16055
16073
|
noFutureDate: "magenta",
|
|
16056
16074
|
minAge: "green"
|
|
16057
16075
|
};
|
|
16058
|
-
function
|
|
16059
|
-
return
|
|
16076
|
+
function w_(e) {
|
|
16077
|
+
return v_.find((t) => t.value === e) ?? { hasValue: !1 };
|
|
16060
16078
|
}
|
|
16061
|
-
function
|
|
16079
|
+
function T_(e) {
|
|
16062
16080
|
return [{
|
|
16063
16081
|
key: "all",
|
|
16064
16082
|
label: "All",
|
|
@@ -16066,17 +16084,17 @@ function D_(e) {
|
|
|
16066
16084
|
}, ...e.map((e, t) => ({
|
|
16067
16085
|
key: e.key,
|
|
16068
16086
|
label: e.label,
|
|
16069
|
-
color:
|
|
16087
|
+
color: h_[t % h_.length]
|
|
16070
16088
|
}))];
|
|
16071
16089
|
}
|
|
16072
|
-
function
|
|
16090
|
+
function E_(e) {
|
|
16073
16091
|
return Object.fromEntries(e.map(({ key: e }) => [e, {
|
|
16074
16092
|
groups: [],
|
|
16075
16093
|
loading: !1,
|
|
16076
16094
|
error: ""
|
|
16077
16095
|
}]));
|
|
16078
16096
|
}
|
|
16079
|
-
function
|
|
16097
|
+
function D_(e) {
|
|
16080
16098
|
if (e == null) return;
|
|
16081
16099
|
if (typeof e == "object") return e;
|
|
16082
16100
|
let t = String(e).trim();
|
|
@@ -16087,7 +16105,7 @@ function k_(e) {
|
|
|
16087
16105
|
return;
|
|
16088
16106
|
}
|
|
16089
16107
|
}
|
|
16090
|
-
function
|
|
16108
|
+
function O_(e) {
|
|
16091
16109
|
if (e == null) return "";
|
|
16092
16110
|
if (typeof e == "string") return e;
|
|
16093
16111
|
try {
|
|
@@ -16096,17 +16114,17 @@ function A_(e) {
|
|
|
16096
16114
|
return "";
|
|
16097
16115
|
}
|
|
16098
16116
|
}
|
|
16099
|
-
function
|
|
16117
|
+
function k_(e, t) {
|
|
16100
16118
|
t.payloadKey && (e.payloadKey = t.payloadKey), t.prefillFrom && (e.prefillFrom = t.prefillFrom), t.dataType && t.dataType !== "auto" && (e.dataType = t.dataType), t.elementType && (e.elementType = t.elementType), t.payloadMode && t.payloadMode !== "auto" && (e.payloadMode = t.payloadMode), t.valueKey && (e.valueKey = t.valueKey), t.displayKey && (e.displayKey = t.displayKey), t.defaultValue !== void 0 && t.defaultValue !== "" && (e.defaultValue = t.defaultValue), t.richValue && (e.richValue = !0), t.omitEmpty && (e.omitEmpty = !0);
|
|
16101
|
-
let n =
|
|
16119
|
+
let n = D_(t.payloadTemplate);
|
|
16102
16120
|
n && (e.payloadTemplate = n);
|
|
16103
|
-
let r =
|
|
16121
|
+
let r = D_(t.transformRule);
|
|
16104
16122
|
return r && (e.transformRule = r), e;
|
|
16105
16123
|
}
|
|
16106
|
-
function
|
|
16124
|
+
function A_(e = []) {
|
|
16107
16125
|
return e.map((e) => {
|
|
16108
16126
|
let t = (e.validations ?? []).filter((e) => e?.type).map((e) => {
|
|
16109
|
-
let t =
|
|
16127
|
+
let t = w_(e.type), n = {
|
|
16110
16128
|
type: e.type,
|
|
16111
16129
|
message: e.message ?? ""
|
|
16112
16130
|
};
|
|
@@ -16121,7 +16139,7 @@ function M_(e = []) {
|
|
|
16121
16139
|
formatter: e.formatter ?? "",
|
|
16122
16140
|
validations: t
|
|
16123
16141
|
};
|
|
16124
|
-
if (
|
|
16142
|
+
if (k_(n, e), e.type === "file" && (n.multiple = e.multiple ?? !1, n.maxCount = n.multiple ? Number(e.maxCount ?? 5) : 1, e.fileKey && (n.fileKey = e.fileKey)), e.showIf?.field) {
|
|
16125
16143
|
n.showIf = {
|
|
16126
16144
|
field: e.showIf.field,
|
|
16127
16145
|
operator: e.showIf.operator ?? "eq"
|
|
@@ -16140,7 +16158,7 @@ function M_(e = []) {
|
|
|
16140
16158
|
return n;
|
|
16141
16159
|
});
|
|
16142
16160
|
}
|
|
16143
|
-
function
|
|
16161
|
+
function j_(e) {
|
|
16144
16162
|
return {
|
|
16145
16163
|
...e,
|
|
16146
16164
|
show: e.show === 1,
|
|
@@ -16169,8 +16187,8 @@ function N_(e) {
|
|
|
16169
16187
|
defaultValue: e.defaultValue ?? "",
|
|
16170
16188
|
richValue: e.richValue ?? !1,
|
|
16171
16189
|
omitEmpty: e.omitEmpty ?? !1,
|
|
16172
|
-
payloadTemplate:
|
|
16173
|
-
transformRule:
|
|
16190
|
+
payloadTemplate: O_(e.payloadTemplate),
|
|
16191
|
+
transformRule: O_(e.transformRule),
|
|
16174
16192
|
showIf: e.showIf?.field ? {
|
|
16175
16193
|
field: e.showIf.field,
|
|
16176
16194
|
operator: e.showIf.operator ?? "eq",
|
|
@@ -16187,7 +16205,7 @@ function N_(e) {
|
|
|
16187
16205
|
}))
|
|
16188
16206
|
};
|
|
16189
16207
|
}
|
|
16190
|
-
function
|
|
16208
|
+
function M_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, moduleFieldOptions: o, fieldsLoading: s, dragIndexRef: l, dragOverIndex: u, setDragOverIndex: d, onFieldKeySelect: p }) {
|
|
16191
16209
|
let m = [...a, "fields"];
|
|
16192
16210
|
return /* @__PURE__ */ J(K, { children: [t.map(({ key: e, name: t, ...n }, a) => {
|
|
16193
16211
|
let s = [...m, t];
|
|
@@ -16267,7 +16285,7 @@ function P_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, mo
|
|
|
16267
16285
|
initialValue: "text",
|
|
16268
16286
|
children: /* @__PURE__ */ q(I, {
|
|
16269
16287
|
size: "small",
|
|
16270
|
-
options:
|
|
16288
|
+
options: g_
|
|
16271
16289
|
})
|
|
16272
16290
|
}),
|
|
16273
16291
|
/* @__PURE__ */ q(C.Item, {
|
|
@@ -16374,7 +16392,7 @@ function P_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, mo
|
|
|
16374
16392
|
children: /* @__PURE__ */ q(I, {
|
|
16375
16393
|
size: "small",
|
|
16376
16394
|
style: { width: 190 },
|
|
16377
|
-
options:
|
|
16395
|
+
options: __
|
|
16378
16396
|
})
|
|
16379
16397
|
}),
|
|
16380
16398
|
n === "select" && /* @__PURE__ */ q(C.Item, {
|
|
@@ -16644,7 +16662,7 @@ function P_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, mo
|
|
|
16644
16662
|
children: /* @__PURE__ */ q(I, {
|
|
16645
16663
|
size: "small",
|
|
16646
16664
|
style: { width: 130 },
|
|
16647
|
-
options:
|
|
16665
|
+
options: y_,
|
|
16648
16666
|
getPopupContainer: () => document.body
|
|
16649
16667
|
})
|
|
16650
16668
|
}), i && /* @__PURE__ */ q(C.Item, {
|
|
@@ -16732,7 +16750,7 @@ function P_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, mo
|
|
|
16732
16750
|
children: /* @__PURE__ */ q(I, {
|
|
16733
16751
|
size: "small",
|
|
16734
16752
|
style: { width: 170 },
|
|
16735
|
-
options:
|
|
16753
|
+
options: b_,
|
|
16736
16754
|
getPopupContainer: () => document.body
|
|
16737
16755
|
})
|
|
16738
16756
|
}),
|
|
@@ -16743,7 +16761,7 @@ function P_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, mo
|
|
|
16743
16761
|
children: /* @__PURE__ */ q(I, {
|
|
16744
16762
|
size: "small",
|
|
16745
16763
|
style: { width: 130 },
|
|
16746
|
-
options:
|
|
16764
|
+
options: x_,
|
|
16747
16765
|
getPopupContainer: () => document.body
|
|
16748
16766
|
})
|
|
16749
16767
|
}),
|
|
@@ -16755,7 +16773,7 @@ function P_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, mo
|
|
|
16755
16773
|
children: /* @__PURE__ */ q(I, {
|
|
16756
16774
|
size: "small",
|
|
16757
16775
|
style: { width: 210 },
|
|
16758
|
-
options:
|
|
16776
|
+
options: S_,
|
|
16759
16777
|
getPopupContainer: () => document.body
|
|
16760
16778
|
})
|
|
16761
16779
|
}),
|
|
@@ -16884,7 +16902,7 @@ function P_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, mo
|
|
|
16884
16902
|
shouldUpdate: !0,
|
|
16885
16903
|
style: { marginBottom: 6 },
|
|
16886
16904
|
children: ({ getFieldValue: e }) => {
|
|
16887
|
-
let i =
|
|
16905
|
+
let i = w_(e([
|
|
16888
16906
|
...m,
|
|
16889
16907
|
t,
|
|
16890
16908
|
"validations",
|
|
@@ -16907,7 +16925,7 @@ function P_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, mo
|
|
|
16907
16925
|
style: { width: 148 },
|
|
16908
16926
|
listHeight: 400,
|
|
16909
16927
|
getPopupContainer: () => document.body,
|
|
16910
|
-
options:
|
|
16928
|
+
options: v_.map((e) => ({
|
|
16911
16929
|
label: e.label,
|
|
16912
16930
|
value: e.value
|
|
16913
16931
|
}))
|
|
@@ -16992,7 +17010,7 @@ function P_({ form: e, fieldItems: t, add: n, remove: r, move: i, absBase: a, mo
|
|
|
16992
17010
|
children: "Add Field"
|
|
16993
17011
|
})] });
|
|
16994
17012
|
}
|
|
16995
|
-
function
|
|
17013
|
+
function N_({ open: e, editingGroup: t, defaultModule: n, moduleOptions: i, allGroupsByModule: s, onClose: c, onSaved: l, onSaveGroup: u }) {
|
|
16996
17014
|
let [d] = C.useForm(), [p, m] = o(!1), [h, g] = o(n), [_, v] = o({}), [b, x] = o(!1), [S, T] = o(null), E = a({}), D = a(null);
|
|
16997
17015
|
async function O(e) {
|
|
16998
17016
|
if (!(!e || E.current[e])) {
|
|
@@ -17019,7 +17037,7 @@ function F_({ open: e, editingGroup: t, defaultModule: n, moduleOptions: i, allG
|
|
|
17019
17037
|
label: t.label,
|
|
17020
17038
|
addRow: t.addRow ?? !1,
|
|
17021
17039
|
order: t.order ?? 0,
|
|
17022
|
-
fields: (t.fields ?? []).map(
|
|
17040
|
+
fields: (t.fields ?? []).map(j_)
|
|
17023
17041
|
}) : (d.resetFields(), d.setFieldsValue({
|
|
17024
17042
|
module: r,
|
|
17025
17043
|
addRow: !1,
|
|
@@ -17086,7 +17104,7 @@ function F_({ open: e, editingGroup: t, defaultModule: n, moduleOptions: i, allG
|
|
|
17086
17104
|
label: e.label,
|
|
17087
17105
|
addRow: e.addRow ?? !1,
|
|
17088
17106
|
order: Number(e.order ?? 0),
|
|
17089
|
-
fields:
|
|
17107
|
+
fields: A_(e.fields ?? [])
|
|
17090
17108
|
};
|
|
17091
17109
|
u ? await u(n, t) : t ? (await $a(t.id, n), G.success("Group updated")) : (await Qa(n), G.success("Group created")), l();
|
|
17092
17110
|
} catch (e) {
|
|
@@ -17209,7 +17227,7 @@ function F_({ open: e, editingGroup: t, defaultModule: n, moduleOptions: i, allG
|
|
|
17209
17227
|
}),
|
|
17210
17228
|
/* @__PURE__ */ q(C.List, {
|
|
17211
17229
|
name: "fields",
|
|
17212
|
-
children: (e, { add: t, remove: n, move: r }) =>
|
|
17230
|
+
children: (e, { add: t, remove: n, move: r }) => M_({
|
|
17213
17231
|
form: d,
|
|
17214
17232
|
fieldItems: e,
|
|
17215
17233
|
add: t,
|
|
@@ -17228,13 +17246,13 @@ function F_({ open: e, editingGroup: t, defaultModule: n, moduleOptions: i, allG
|
|
|
17228
17246
|
})
|
|
17229
17247
|
});
|
|
17230
17248
|
}
|
|
17231
|
-
function
|
|
17249
|
+
function P_({ groups: e, onEdit: t, onDelete: n }) {
|
|
17232
17250
|
let r = [
|
|
17233
17251
|
{
|
|
17234
17252
|
title: "Label",
|
|
17235
17253
|
dataIndex: "label",
|
|
17236
17254
|
key: "label",
|
|
17237
|
-
render: (e) => /* @__PURE__ */ q(
|
|
17255
|
+
render: (e) => /* @__PURE__ */ q(m_, {
|
|
17238
17256
|
strong: !0,
|
|
17239
17257
|
style: { color: "var(--color-text-heading)" },
|
|
17240
17258
|
children: e
|
|
@@ -17336,7 +17354,7 @@ function I_({ groups: e, onEdit: t, onDelete: n }) {
|
|
|
17336
17354
|
style: { padding: "24px 0" }
|
|
17337
17355
|
}) },
|
|
17338
17356
|
expandable: {
|
|
17339
|
-
expandedRowRender: (e) => (e.fields ?? []).length === 0 ? /* @__PURE__ */ q(
|
|
17357
|
+
expandedRowRender: (e) => (e.fields ?? []).length === 0 ? /* @__PURE__ */ q(m_, {
|
|
17340
17358
|
type: "secondary",
|
|
17341
17359
|
style: { fontSize: 12 },
|
|
17342
17360
|
children: "No fields in this group."
|
|
@@ -17424,7 +17442,7 @@ function I_({ groups: e, onEdit: t, onDelete: n }) {
|
|
|
17424
17442
|
} }), (e.validations ?? []).map((e, t) => /* @__PURE__ */ q(H, {
|
|
17425
17443
|
title: `${e.value !== void 0 && e.value !== "" ? `Value: ${e.value} — ` : ""}${e.message}`,
|
|
17426
17444
|
children: /* @__PURE__ */ J(V, {
|
|
17427
|
-
color:
|
|
17445
|
+
color: C_[e.type] ?? "default",
|
|
17428
17446
|
style: {
|
|
17429
17447
|
cursor: "default",
|
|
17430
17448
|
fontFamily: "monospace",
|
|
@@ -17442,7 +17460,7 @@ function I_({ groups: e, onEdit: t, onDelete: n }) {
|
|
|
17442
17460
|
}
|
|
17443
17461
|
});
|
|
17444
17462
|
}
|
|
17445
|
-
function
|
|
17463
|
+
function F_({ open: e, editingForm: t, moduleOptions: n, onClose: i, onSaved: s }) {
|
|
17446
17464
|
let [c] = C.useForm(), [l, u] = o(!1), [d, p] = o(""), [m, h] = o({}), [g, _] = o(!1), [v, b] = o(null), x = a({}), S = a(null);
|
|
17447
17465
|
async function T(e) {
|
|
17448
17466
|
if (!(!e || x.current[e])) {
|
|
@@ -17471,7 +17489,7 @@ function L_({ open: e, editingForm: t, moduleOptions: n, onClose: i, onSaved: s
|
|
|
17471
17489
|
label: t.label,
|
|
17472
17490
|
groups: (t.groups ?? []).map((e) => ({
|
|
17473
17491
|
...e,
|
|
17474
|
-
fields: (e.fields ?? []).map(
|
|
17492
|
+
fields: (e.fields ?? []).map(j_)
|
|
17475
17493
|
}))
|
|
17476
17494
|
}), T(e);
|
|
17477
17495
|
} else c.resetFields(), c.setFieldsValue({ groups: [] }), p("");
|
|
@@ -17506,7 +17524,7 @@ function L_({ open: e, editingForm: t, moduleOptions: n, onClose: i, onSaved: s
|
|
|
17506
17524
|
name: e.name,
|
|
17507
17525
|
addRow: e.addRow ?? !1,
|
|
17508
17526
|
order: Number(e.order ?? 0),
|
|
17509
|
-
fields:
|
|
17527
|
+
fields: A_(e.fields ?? [])
|
|
17510
17528
|
}))
|
|
17511
17529
|
};
|
|
17512
17530
|
t ? (await Yo(t.id, {
|
|
@@ -17719,7 +17737,7 @@ function L_({ open: e, editingForm: t, moduleOptions: n, onClose: i, onSaved: s
|
|
|
17719
17737
|
}),
|
|
17720
17738
|
/* @__PURE__ */ q(C.List, {
|
|
17721
17739
|
name: [t, "fields"],
|
|
17722
|
-
children: (e, { add: n, remove: r, move: i }) =>
|
|
17740
|
+
children: (e, { add: n, remove: r, move: i }) => M_({
|
|
17723
17741
|
form: c,
|
|
17724
17742
|
fieldItems: e,
|
|
17725
17743
|
add: n,
|
|
@@ -17774,7 +17792,7 @@ function L_({ open: e, editingForm: t, moduleOptions: n, onClose: i, onSaved: s
|
|
|
17774
17792
|
})
|
|
17775
17793
|
});
|
|
17776
17794
|
}
|
|
17777
|
-
function
|
|
17795
|
+
function I_({ moduleOptions: e }) {
|
|
17778
17796
|
let [t, n] = o([]), [i, a] = o(!1), [s, c] = o(!1), [l, d] = o(null);
|
|
17779
17797
|
function p() {
|
|
17780
17798
|
a(!0), qo().then((e) => n(e)).catch((e) => G.error(e.message || "Could not load custom forms")).finally(() => a(!1));
|
|
@@ -17831,7 +17849,7 @@ function R_({ moduleOptions: e }) {
|
|
|
17831
17849
|
title: "Label",
|
|
17832
17850
|
dataIndex: "label",
|
|
17833
17851
|
key: "label",
|
|
17834
|
-
render: (e) => /* @__PURE__ */ q(
|
|
17852
|
+
render: (e) => /* @__PURE__ */ q(m_, {
|
|
17835
17853
|
strong: !0,
|
|
17836
17854
|
style: { color: "var(--color-text-heading)" },
|
|
17837
17855
|
children: e
|
|
@@ -17896,7 +17914,7 @@ function R_({ moduleOptions: e }) {
|
|
|
17896
17914
|
}) }
|
|
17897
17915
|
})
|
|
17898
17916
|
}),
|
|
17899
|
-
/* @__PURE__ */ q(
|
|
17917
|
+
/* @__PURE__ */ q(F_, {
|
|
17900
17918
|
open: s,
|
|
17901
17919
|
editingForm: l,
|
|
17902
17920
|
moduleOptions: e,
|
|
@@ -17909,16 +17927,16 @@ function R_({ moduleOptions: e }) {
|
|
|
17909
17927
|
})
|
|
17910
17928
|
] });
|
|
17911
17929
|
}
|
|
17912
|
-
function
|
|
17913
|
-
let [e, t] = o([]), [n, i] = o(!0), [a, c] = o({}), [l, d] = o("all"), [p, m] = o(!1), [h, g] = o(null), [_, v] = o(!1), [y, b] = o("module"), x =
|
|
17930
|
+
function L_() {
|
|
17931
|
+
let [e, t] = o([]), [n, i] = o(!0), [a, c] = o({}), [l, d] = o("all"), [p, m] = o(!1), [h, g] = o(null), [_, v] = o(!1), [y, b] = o("module"), x = T_(e), S = e.map((e) => ({
|
|
17914
17932
|
value: e.key,
|
|
17915
17933
|
label: e.label
|
|
17916
17934
|
}));
|
|
17917
17935
|
r(() => {
|
|
17918
17936
|
Ja().then((e) => {
|
|
17919
17937
|
t(e);
|
|
17920
|
-
let n =
|
|
17921
|
-
c(
|
|
17938
|
+
let n = T_(e);
|
|
17939
|
+
c(E_(n)), w("all", n);
|
|
17922
17940
|
}).catch(() => t([])).finally(() => i(!1));
|
|
17923
17941
|
}, []);
|
|
17924
17942
|
function C(e, t) {
|
|
@@ -17971,7 +17989,7 @@ function z_() {
|
|
|
17971
17989
|
v(!0);
|
|
17972
17990
|
try {
|
|
17973
17991
|
let e = (await to())?.data?.seeded ?? [];
|
|
17974
|
-
G.success(e.length ? `Seeded: ${e.join(", ")}` : "All modules already seeded"), c(
|
|
17992
|
+
G.success(e.length ? `Seeded: ${e.join(", ")}` : "All modules already seeded"), c(E_(x)), T(l), l !== "all" && T("all");
|
|
17975
17993
|
} catch (e) {
|
|
17976
17994
|
G.error(e.message || "Could not seed groups");
|
|
17977
17995
|
} finally {
|
|
@@ -18034,7 +18052,7 @@ function z_() {
|
|
|
18034
18052
|
}),
|
|
18035
18053
|
/* @__PURE__ */ q(z, {
|
|
18036
18054
|
spinning: r.loading,
|
|
18037
|
-
children: /* @__PURE__ */ q(
|
|
18055
|
+
children: /* @__PURE__ */ q(P_, {
|
|
18038
18056
|
groups: i,
|
|
18039
18057
|
onEdit: O,
|
|
18040
18058
|
onDelete: j
|
|
@@ -18047,7 +18065,7 @@ function z_() {
|
|
|
18047
18065
|
size: "middle",
|
|
18048
18066
|
className: "fg-tabs"
|
|
18049
18067
|
})
|
|
18050
|
-
}) }), /* @__PURE__ */ q(
|
|
18068
|
+
}) }), /* @__PURE__ */ q(N_, {
|
|
18051
18069
|
open: p,
|
|
18052
18070
|
editingGroup: h,
|
|
18053
18071
|
defaultModule: l === "all" ? S[0]?.value ?? "" : l,
|
|
@@ -18059,7 +18077,7 @@ function z_() {
|
|
|
18059
18077
|
}, {
|
|
18060
18078
|
key: "custom",
|
|
18061
18079
|
label: "Custom Form",
|
|
18062
|
-
children: /* @__PURE__ */ q(Ks, { children: /* @__PURE__ */ q(
|
|
18080
|
+
children: /* @__PURE__ */ q(Ks, { children: /* @__PURE__ */ q(I_, { moduleOptions: S }) })
|
|
18063
18081
|
}];
|
|
18064
18082
|
return /* @__PURE__ */ J("div", {
|
|
18065
18083
|
className: "fg-section",
|
|
@@ -18085,7 +18103,7 @@ function z_() {
|
|
|
18085
18103
|
children: "New Group"
|
|
18086
18104
|
})]
|
|
18087
18105
|
}) : null,
|
|
18088
|
-
children: [/* @__PURE__ */ q("div", { className: "admin-accent-bar" }), /* @__PURE__ */ J(
|
|
18106
|
+
children: [/* @__PURE__ */ q("div", { className: "admin-accent-bar" }), /* @__PURE__ */ J(m_, {
|
|
18089
18107
|
type: "secondary",
|
|
18090
18108
|
style: { fontSize: 13 },
|
|
18091
18109
|
children: [
|
|
@@ -18115,7 +18133,7 @@ function z_() {
|
|
|
18115
18133
|
}
|
|
18116
18134
|
//#endregion
|
|
18117
18135
|
//#region src/pages/Modules/Admin/DetailGroupsSection.jsx
|
|
18118
|
-
var { Text: $ } = U,
|
|
18136
|
+
var { Text: $ } = U, R_ = [
|
|
18119
18137
|
{
|
|
18120
18138
|
label: "Default",
|
|
18121
18139
|
value: "default"
|
|
@@ -18128,8 +18146,8 @@ var { Text: $ } = U, B_ = [
|
|
|
18128
18146
|
label: "Off (raw text)",
|
|
18129
18147
|
value: "off"
|
|
18130
18148
|
}
|
|
18131
|
-
],
|
|
18132
|
-
function
|
|
18149
|
+
], z_ = (e) => e === !0 ? "on" : e === !1 ? "off" : "default", B_ = (e) => e === "on" ? !0 : e === "off" ? !1 : void 0;
|
|
18150
|
+
function V_(e) {
|
|
18133
18151
|
let t = /* @__PURE__ */ new Set(), n = [];
|
|
18134
18152
|
for (let r of e ?? []) for (let e of r.fields ?? []) !e.field || t.has(e.field) || (t.add(e.field), n.push({
|
|
18135
18153
|
key: e.field,
|
|
@@ -18139,7 +18157,7 @@ function U_(e) {
|
|
|
18139
18157
|
}));
|
|
18140
18158
|
return n;
|
|
18141
18159
|
}
|
|
18142
|
-
function
|
|
18160
|
+
function H_(e, t) {
|
|
18143
18161
|
if (!t) return null;
|
|
18144
18162
|
let n = { field: e };
|
|
18145
18163
|
t.label && (n.label = t.label), t.prefix && (n.prefix = t.prefix), t.suffix && (n.suffix = t.suffix), t.color && (n.color = t.color), (t.capitalize === !0 || t.capitalize === !1) && (n.capitalize = t.capitalize), t.hidden && (n.hidden = !0);
|
|
@@ -18149,7 +18167,7 @@ function W_(e, t) {
|
|
|
18149
18167
|
for (let [e, n] of Object.entries(t.renderOptions ?? {})) n !== void 0 && n !== "" && n !== !1 && (i[e] = n);
|
|
18150
18168
|
return Object.keys(i).length && (n.renderOptions = i), t.lookupCollection && (n.lookupCollection = t.lookupCollection, n.displayField = t.displayField || "", t.displayField2 && (n.displayField2 = t.displayField2), n.valueField = t.valueField || "_id"), Object.keys(n).length > 1 ? n : null;
|
|
18151
18169
|
}
|
|
18152
|
-
function
|
|
18170
|
+
function U_(e) {
|
|
18153
18171
|
return (e ?? []).filter((e) => e.key && (e.fields ?? []).length).map((e) => {
|
|
18154
18172
|
let t = {
|
|
18155
18173
|
key: e.key,
|
|
@@ -18159,7 +18177,7 @@ function G_(e) {
|
|
|
18159
18177
|
return e.template && (t.template = e.template), e.valueMaps && Object.keys(e.valueMaps).length && (t.valueMaps = e.valueMaps), e.separator && (t.separator = e.separator), e.prefix && (t.prefix = e.prefix), e.suffix && (t.suffix = e.suffix), e.color && (t.color = e.color), (e.capitalize === !0 || e.capitalize === !1) && (t.capitalize = e.capitalize), e.group && (t.group = e.group), e.hideSources === !1 && (t.hideSources = !1), t;
|
|
18160
18178
|
});
|
|
18161
18179
|
}
|
|
18162
|
-
function
|
|
18180
|
+
function W_({ value: e, onChange: t }) {
|
|
18163
18181
|
return /* @__PURE__ */ J(R.Compact, {
|
|
18164
18182
|
style: { width: "100%" },
|
|
18165
18183
|
children: [/* @__PURE__ */ q(w, {
|
|
@@ -18184,7 +18202,7 @@ function K_({ value: e, onChange: t }) {
|
|
|
18184
18202
|
})]
|
|
18185
18203
|
});
|
|
18186
18204
|
}
|
|
18187
|
-
function
|
|
18205
|
+
function G_({ open: e, fieldMeta: t, value: n, onClose: i, onSave: a }) {
|
|
18188
18206
|
let [s, l] = o(() => ({ ...n ?? {} })), [u, d] = o([]), [p, m] = o([]);
|
|
18189
18207
|
r(() => {
|
|
18190
18208
|
if (!e) return;
|
|
@@ -18319,7 +18337,7 @@ function q_({ open: e, fieldMeta: t, value: n, onClose: i, onSave: a }) {
|
|
|
18319
18337
|
type: "secondary",
|
|
18320
18338
|
style: { fontSize: 12 },
|
|
18321
18339
|
children: "Colour"
|
|
18322
|
-
}), /* @__PURE__ */ q(
|
|
18340
|
+
}), /* @__PURE__ */ q(W_, {
|
|
18323
18341
|
value: s.color,
|
|
18324
18342
|
onChange: (e) => h("color", e)
|
|
18325
18343
|
})]
|
|
@@ -18332,9 +18350,9 @@ function q_({ open: e, fieldMeta: t, value: n, onClose: i, onSave: a }) {
|
|
|
18332
18350
|
}), /* @__PURE__ */ q(I, {
|
|
18333
18351
|
size: "small",
|
|
18334
18352
|
style: { width: "100%" },
|
|
18335
|
-
options:
|
|
18336
|
-
value:
|
|
18337
|
-
onChange: (e) => h("capitalize",
|
|
18353
|
+
options: R_,
|
|
18354
|
+
value: z_(s.capitalize),
|
|
18355
|
+
onChange: (e) => h("capitalize", B_(e))
|
|
18338
18356
|
})]
|
|
18339
18357
|
})]
|
|
18340
18358
|
}),
|
|
@@ -18576,7 +18594,7 @@ function q_({ open: e, fieldMeta: t, value: n, onClose: i, onSave: a }) {
|
|
|
18576
18594
|
})]
|
|
18577
18595
|
});
|
|
18578
18596
|
}
|
|
18579
|
-
function
|
|
18597
|
+
function K_(e) {
|
|
18580
18598
|
let t = [];
|
|
18581
18599
|
return Object.entries(e ?? {}).forEach(([e, n]) => {
|
|
18582
18600
|
Object.entries(n ?? {}).forEach(([n, r]) => t.push({
|
|
@@ -18586,7 +18604,7 @@ function J_(e) {
|
|
|
18586
18604
|
}));
|
|
18587
18605
|
}), t;
|
|
18588
18606
|
}
|
|
18589
|
-
function
|
|
18607
|
+
function q_(e) {
|
|
18590
18608
|
let t = {};
|
|
18591
18609
|
for (let n of e ?? []) !n.field || !n.from || (t[n.field] = {
|
|
18592
18610
|
...t[n.field] ?? {},
|
|
@@ -18594,7 +18612,7 @@ function Y_(e) {
|
|
|
18594
18612
|
});
|
|
18595
18613
|
return t;
|
|
18596
18614
|
}
|
|
18597
|
-
function
|
|
18615
|
+
function J_({ open: e, merge: t, fieldOptions: n, groupOptions: r, onClose: i, onSave: a }) {
|
|
18598
18616
|
let [s, c] = o(() => ({
|
|
18599
18617
|
key: "",
|
|
18600
18618
|
label: "",
|
|
@@ -18608,7 +18626,7 @@ function X_({ open: e, merge: t, fieldOptions: n, groupOptions: r, onClose: i, o
|
|
|
18608
18626
|
group: "",
|
|
18609
18627
|
hideSources: !0,
|
|
18610
18628
|
...t ?? {},
|
|
18611
|
-
mapRows:
|
|
18629
|
+
mapRows: K_(t?.valueMaps)
|
|
18612
18630
|
})), l = (e, t) => c((n) => ({
|
|
18613
18631
|
...n,
|
|
18614
18632
|
[e]: t
|
|
@@ -18656,7 +18674,7 @@ function X_({ open: e, merge: t, fieldOptions: n, groupOptions: r, onClose: i, o
|
|
|
18656
18674
|
let { mapRows: e, ...t } = s;
|
|
18657
18675
|
a({
|
|
18658
18676
|
...t,
|
|
18659
|
-
valueMaps:
|
|
18677
|
+
valueMaps: q_(e)
|
|
18660
18678
|
});
|
|
18661
18679
|
},
|
|
18662
18680
|
children: "Apply"
|
|
@@ -18922,7 +18940,7 @@ function X_({ open: e, merge: t, fieldOptions: n, groupOptions: r, onClose: i, o
|
|
|
18922
18940
|
type: "secondary",
|
|
18923
18941
|
style: { fontSize: 12 },
|
|
18924
18942
|
children: "Colour"
|
|
18925
|
-
}), /* @__PURE__ */ q(
|
|
18943
|
+
}), /* @__PURE__ */ q(W_, {
|
|
18926
18944
|
value: s.color,
|
|
18927
18945
|
onChange: (e) => l("color", e)
|
|
18928
18946
|
})]
|
|
@@ -18935,9 +18953,9 @@ function X_({ open: e, merge: t, fieldOptions: n, groupOptions: r, onClose: i, o
|
|
|
18935
18953
|
}), /* @__PURE__ */ q(I, {
|
|
18936
18954
|
size: "small",
|
|
18937
18955
|
style: { width: "100%" },
|
|
18938
|
-
options:
|
|
18939
|
-
value:
|
|
18940
|
-
onChange: (e) => l("capitalize",
|
|
18956
|
+
options: R_,
|
|
18957
|
+
value: z_(s.capitalize),
|
|
18958
|
+
onChange: (e) => l("capitalize", B_(e))
|
|
18941
18959
|
})]
|
|
18942
18960
|
})]
|
|
18943
18961
|
}),
|
|
@@ -18961,7 +18979,7 @@ function X_({ open: e, merge: t, fieldOptions: n, groupOptions: r, onClose: i, o
|
|
|
18961
18979
|
})
|
|
18962
18980
|
});
|
|
18963
18981
|
}
|
|
18964
|
-
function
|
|
18982
|
+
function Y_({ open: e, module: t, onClose: n }) {
|
|
18965
18983
|
let [r, i] = o(""), [a, c] = o([]), [l, u] = o(!1), [d, p] = o(""), m = async () => {
|
|
18966
18984
|
if (!r.trim()) return G.warning("Enter a record _id to preview");
|
|
18967
18985
|
u(!0), p("");
|
|
@@ -19051,7 +19069,7 @@ function Z_({ open: e, module: t, onClose: n }) {
|
|
|
19051
19069
|
]
|
|
19052
19070
|
});
|
|
19053
19071
|
}
|
|
19054
|
-
function
|
|
19072
|
+
function X_(e) {
|
|
19055
19073
|
let t = {};
|
|
19056
19074
|
return [
|
|
19057
19075
|
"s3BaseUrl",
|
|
@@ -19064,7 +19082,7 @@ function Q_(e) {
|
|
|
19064
19082
|
e?.[n] !== void 0 && e?.[n] !== "" && (t[n] = e[n]);
|
|
19065
19083
|
}), Array.isArray(e?.documentNameOrder) && e.documentNameOrder.length && (t.documentNameOrder = e.documentNameOrder), t;
|
|
19066
19084
|
}
|
|
19067
|
-
function
|
|
19085
|
+
function Z_({ open: e, onClose: t }) {
|
|
19068
19086
|
let [n, i] = o(() => ({ ...ds() })), [a, s] = o(!1);
|
|
19069
19087
|
r(() => {
|
|
19070
19088
|
if (!e) return;
|
|
@@ -19072,7 +19090,7 @@ function $_({ open: e, onClose: t }) {
|
|
|
19072
19090
|
return oo().then((e) => {
|
|
19073
19091
|
t || i((t) => ({
|
|
19074
19092
|
...t,
|
|
19075
|
-
...
|
|
19093
|
+
...X_(e)
|
|
19076
19094
|
}));
|
|
19077
19095
|
}).catch(() => {}), () => {
|
|
19078
19096
|
t = !0;
|
|
@@ -19245,7 +19263,7 @@ function $_({ open: e, onClose: t }) {
|
|
|
19245
19263
|
})]
|
|
19246
19264
|
});
|
|
19247
19265
|
}
|
|
19248
|
-
function
|
|
19266
|
+
function Q_() {
|
|
19249
19267
|
let [e, t] = o([]), [n, a] = o(!0), [c, l] = o(""), [d, p] = o([]), [m, h] = o([]), [g, _] = o([]), [v, y] = o({}), [b, S] = o([]), [C, w] = o(!1), [T, E] = o(""), [D, O] = o(!1), [k, A] = o(null), [j, M] = o(null), [ee, N] = o(!1), [P, F] = o(!1);
|
|
19250
19268
|
r(() => {
|
|
19251
19269
|
Ja().then((e) => {
|
|
@@ -19259,7 +19277,7 @@ function ev() {
|
|
|
19259
19277
|
try {
|
|
19260
19278
|
let [t, n] = await Promise.all([Xa(c), ro(c)]);
|
|
19261
19279
|
if (e) return;
|
|
19262
|
-
p(t ?? []), h(
|
|
19280
|
+
p(t ?? []), h(V_(t)), _((t ?? []).map((e) => ({
|
|
19263
19281
|
value: e.name,
|
|
19264
19282
|
label: e.label ?? e.name
|
|
19265
19283
|
})));
|
|
@@ -19285,8 +19303,8 @@ function ev() {
|
|
|
19285
19303
|
try {
|
|
19286
19304
|
await io({
|
|
19287
19305
|
module: c,
|
|
19288
|
-
fields: Object.entries(v).map(([e, t]) =>
|
|
19289
|
-
merges:
|
|
19306
|
+
fields: Object.entries(v).map(([e, t]) => H_(e, t)).filter(Boolean),
|
|
19307
|
+
merges: U_(b)
|
|
19290
19308
|
}), G.success("Detail view configuration saved");
|
|
19291
19309
|
} catch (e) {
|
|
19292
19310
|
G.error(e?.message || "Could not save configuration");
|
|
@@ -19701,14 +19719,14 @@ function ev() {
|
|
|
19701
19719
|
})
|
|
19702
19720
|
]
|
|
19703
19721
|
}) }),
|
|
19704
|
-
/* @__PURE__ */ q(
|
|
19722
|
+
/* @__PURE__ */ q(G_, {
|
|
19705
19723
|
open: !!k,
|
|
19706
19724
|
fieldMeta: k,
|
|
19707
19725
|
value: k ? v[k.key] : null,
|
|
19708
19726
|
onClose: () => A(null),
|
|
19709
19727
|
onSave: te
|
|
19710
19728
|
}, k?.key ?? "field-closed"),
|
|
19711
|
-
/* @__PURE__ */ q(
|
|
19729
|
+
/* @__PURE__ */ q(J_, {
|
|
19712
19730
|
open: !!j,
|
|
19713
19731
|
merge: j?.merge,
|
|
19714
19732
|
fieldOptions: I,
|
|
@@ -19716,11 +19734,11 @@ function ev() {
|
|
|
19716
19734
|
onClose: () => M(null),
|
|
19717
19735
|
onSave: ae
|
|
19718
19736
|
}, j ? `merge-${j.index ?? "new"}` : "merge-closed"),
|
|
19719
|
-
/* @__PURE__ */ q(
|
|
19737
|
+
/* @__PURE__ */ q(Z_, {
|
|
19720
19738
|
open: P,
|
|
19721
19739
|
onClose: () => F(!1)
|
|
19722
19740
|
}),
|
|
19723
|
-
/* @__PURE__ */ q(
|
|
19741
|
+
/* @__PURE__ */ q(Y_, {
|
|
19724
19742
|
open: ee,
|
|
19725
19743
|
module: c,
|
|
19726
19744
|
onClose: () => N(!1)
|
|
@@ -19730,13 +19748,13 @@ function ev() {
|
|
|
19730
19748
|
}
|
|
19731
19749
|
//#endregion
|
|
19732
19750
|
//#region src/pages/Modules/Admin/RowActionsSection.jsx
|
|
19733
|
-
var { Text:
|
|
19751
|
+
var { Text: $_ } = U, ev = [
|
|
19734
19752
|
"job",
|
|
19735
19753
|
"candidate",
|
|
19736
19754
|
"onboarding",
|
|
19737
19755
|
"submission",
|
|
19738
19756
|
"vendor"
|
|
19739
|
-
],
|
|
19757
|
+
], tv = [
|
|
19740
19758
|
{
|
|
19741
19759
|
value: "delete",
|
|
19742
19760
|
label: "delete (trash)"
|
|
@@ -19769,7 +19787,7 @@ var { Text: tv } = U, nv = [
|
|
|
19769
19787
|
value: "userSwitch",
|
|
19770
19788
|
label: "userSwitch (switch user)"
|
|
19771
19789
|
}
|
|
19772
|
-
],
|
|
19790
|
+
], nv = [
|
|
19773
19791
|
{
|
|
19774
19792
|
value: "navigate",
|
|
19775
19793
|
label: "Navigate (open page)"
|
|
@@ -19786,12 +19804,12 @@ var { Text: tv } = U, nv = [
|
|
|
19786
19804
|
value: "copy",
|
|
19787
19805
|
label: "Copy (clipboard)"
|
|
19788
19806
|
}
|
|
19789
|
-
],
|
|
19807
|
+
], rv = [
|
|
19790
19808
|
"GET",
|
|
19791
19809
|
"POST",
|
|
19792
19810
|
"PUT",
|
|
19793
19811
|
"DELETE"
|
|
19794
|
-
],
|
|
19812
|
+
], iv = {
|
|
19795
19813
|
key: "",
|
|
19796
19814
|
label: "",
|
|
19797
19815
|
icon: "",
|
|
@@ -19804,13 +19822,13 @@ var { Text: tv } = U, nv = [
|
|
|
19804
19822
|
danger: !1,
|
|
19805
19823
|
showInList: !0
|
|
19806
19824
|
};
|
|
19807
|
-
function
|
|
19825
|
+
function av() {
|
|
19808
19826
|
return `action_${Date.now()}`;
|
|
19809
19827
|
}
|
|
19810
|
-
function
|
|
19828
|
+
function ov({ open: e, initial: t, onClose: n, onSave: i }) {
|
|
19811
19829
|
let [a] = C.useForm(), [s, c] = o("navigate");
|
|
19812
19830
|
return r(() => {
|
|
19813
|
-
e && (a.setFieldsValue(t ??
|
|
19831
|
+
e && (a.setFieldsValue(t ?? iv), c(t?.actionType ?? "navigate"));
|
|
19814
19832
|
}, [
|
|
19815
19833
|
e,
|
|
19816
19834
|
t,
|
|
@@ -19832,7 +19850,7 @@ function cv({ open: e, initial: t, onClose: n, onSave: i }) {
|
|
|
19832
19850
|
children: /* @__PURE__ */ J(C, {
|
|
19833
19851
|
form: a,
|
|
19834
19852
|
layout: "vertical",
|
|
19835
|
-
initialValues:
|
|
19853
|
+
initialValues: iv,
|
|
19836
19854
|
children: [
|
|
19837
19855
|
/* @__PURE__ */ q(C.Item, {
|
|
19838
19856
|
name: "key",
|
|
@@ -19860,7 +19878,7 @@ function cv({ open: e, initial: t, onClose: n, onSave: i }) {
|
|
|
19860
19878
|
message: "Icon is required"
|
|
19861
19879
|
}],
|
|
19862
19880
|
children: /* @__PURE__ */ q(I, {
|
|
19863
|
-
options:
|
|
19881
|
+
options: tv,
|
|
19864
19882
|
placeholder: "Select icon"
|
|
19865
19883
|
})
|
|
19866
19884
|
}),
|
|
@@ -19869,7 +19887,7 @@ function cv({ open: e, initial: t, onClose: n, onSave: i }) {
|
|
|
19869
19887
|
label: "Action Type",
|
|
19870
19888
|
rules: [{ required: !0 }],
|
|
19871
19889
|
children: /* @__PURE__ */ q(I, {
|
|
19872
|
-
options:
|
|
19890
|
+
options: nv,
|
|
19873
19891
|
onChange: (e) => c(e)
|
|
19874
19892
|
})
|
|
19875
19893
|
}),
|
|
@@ -19881,7 +19899,7 @@ function cv({ open: e, initial: t, onClose: n, onSave: i }) {
|
|
|
19881
19899
|
s === "api" && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(C.Item, {
|
|
19882
19900
|
name: "apiMethod",
|
|
19883
19901
|
label: "API Method",
|
|
19884
|
-
children: /* @__PURE__ */ q(I, { options:
|
|
19902
|
+
children: /* @__PURE__ */ q(I, { options: rv.map((e) => ({
|
|
19885
19903
|
value: e,
|
|
19886
19904
|
label: e
|
|
19887
19905
|
})) })
|
|
@@ -19919,14 +19937,14 @@ function cv({ open: e, initial: t, onClose: n, onSave: i }) {
|
|
|
19919
19937
|
})
|
|
19920
19938
|
});
|
|
19921
19939
|
}
|
|
19922
|
-
function
|
|
19940
|
+
function sv() {
|
|
19923
19941
|
let [e, t] = o([]), [i, a] = o([]), [c, l] = o("job"), [u, d] = o(0), [p, m] = o([]), [h, g] = o(null), [_, v] = o([]), [y, b] = o(!1), [x, S] = o(!1), [C, w] = o(!1), [T, E] = o(!1), [D, O] = o(null), [k, A] = o(!1), [M, ee] = o(null);
|
|
19924
19942
|
r(() => {
|
|
19925
19943
|
Promise.all([Ja(), fo()]).then(([e, { roles: n }]) => {
|
|
19926
19944
|
let r = Array.isArray(e) ? e.map((e) => e.module ?? e.key ?? e.value ?? e) : [];
|
|
19927
|
-
t([...new Set([...
|
|
19945
|
+
t([...new Set([...ev, ...r.filter(Boolean)])]), a(n ?? []);
|
|
19928
19946
|
}).catch(() => {
|
|
19929
|
-
t(
|
|
19947
|
+
t(ev);
|
|
19930
19948
|
});
|
|
19931
19949
|
}, []);
|
|
19932
19950
|
let N = n(async () => {
|
|
@@ -19991,9 +20009,9 @@ function lv() {
|
|
|
19991
20009
|
...t,
|
|
19992
20010
|
...e
|
|
19993
20011
|
} : t) : (t) => [...t, {
|
|
19994
|
-
...
|
|
20012
|
+
...iv,
|
|
19995
20013
|
...e,
|
|
19996
|
-
_localKey:
|
|
20014
|
+
_localKey: av()
|
|
19997
20015
|
}]), b(!0), A(!1);
|
|
19998
20016
|
}, ie = (e) => {
|
|
19999
20017
|
v((t) => t.filter((t) => t.key !== e)), b(!0);
|
|
@@ -20025,7 +20043,7 @@ function lv() {
|
|
|
20025
20043
|
level: 5,
|
|
20026
20044
|
children: "Row Actions"
|
|
20027
20045
|
}),
|
|
20028
|
-
/* @__PURE__ */ q(
|
|
20046
|
+
/* @__PURE__ */ q($_, {
|
|
20029
20047
|
type: "secondary",
|
|
20030
20048
|
children: "Configure which action buttons appear in each module's list view, and control per-row visibility via permission keys. Configs are per module + role combination."
|
|
20031
20049
|
})
|
|
@@ -20050,7 +20068,7 @@ function lv() {
|
|
|
20050
20068
|
wrap: !0,
|
|
20051
20069
|
size: 12,
|
|
20052
20070
|
children: [
|
|
20053
|
-
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
20071
|
+
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q($_, {
|
|
20054
20072
|
type: "secondary",
|
|
20055
20073
|
style: {
|
|
20056
20074
|
display: "block",
|
|
@@ -20067,7 +20085,7 @@ function lv() {
|
|
|
20067
20085
|
label: e
|
|
20068
20086
|
}))
|
|
20069
20087
|
})] }),
|
|
20070
|
-
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
20088
|
+
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q($_, {
|
|
20071
20089
|
type: "secondary",
|
|
20072
20090
|
style: {
|
|
20073
20091
|
display: "block",
|
|
@@ -20169,7 +20187,7 @@ function lv() {
|
|
|
20169
20187
|
title: "Key",
|
|
20170
20188
|
dataIndex: "key",
|
|
20171
20189
|
key: "key",
|
|
20172
|
-
render: (e) => /* @__PURE__ */ q(
|
|
20190
|
+
render: (e) => /* @__PURE__ */ q($_, {
|
|
20173
20191
|
code: !0,
|
|
20174
20192
|
children: e
|
|
20175
20193
|
})
|
|
@@ -20198,11 +20216,11 @@ function lv() {
|
|
|
20198
20216
|
title: "Permission Key",
|
|
20199
20217
|
dataIndex: "permissionKey",
|
|
20200
20218
|
key: "permissionKey",
|
|
20201
|
-
render: (e) => e ? /* @__PURE__ */ q(
|
|
20219
|
+
render: (e) => e ? /* @__PURE__ */ q($_, {
|
|
20202
20220
|
type: "secondary",
|
|
20203
20221
|
code: !0,
|
|
20204
20222
|
children: e
|
|
20205
|
-
}) : /* @__PURE__ */ q(
|
|
20223
|
+
}) : /* @__PURE__ */ q($_, {
|
|
20206
20224
|
type: "secondary",
|
|
20207
20225
|
children: "—"
|
|
20208
20226
|
})
|
|
@@ -20262,7 +20280,7 @@ function lv() {
|
|
|
20262
20280
|
})
|
|
20263
20281
|
})
|
|
20264
20282
|
}),
|
|
20265
|
-
/* @__PURE__ */ q(
|
|
20283
|
+
/* @__PURE__ */ q(ov, {
|
|
20266
20284
|
open: k,
|
|
20267
20285
|
initial: M,
|
|
20268
20286
|
onClose: () => A(!1),
|
|
@@ -20273,7 +20291,7 @@ function lv() {
|
|
|
20273
20291
|
}
|
|
20274
20292
|
//#endregion
|
|
20275
20293
|
//#region src/pages/Modules/Admin/ModuleActionRulesSection.jsx
|
|
20276
|
-
var { Text:
|
|
20294
|
+
var { Text: cv, Title: lv } = U, uv = [
|
|
20277
20295
|
{
|
|
20278
20296
|
value: "job",
|
|
20279
20297
|
label: "Job"
|
|
@@ -20286,7 +20304,7 @@ var { Text: uv, Title: dv } = U, fv = [
|
|
|
20286
20304
|
value: "submissions",
|
|
20287
20305
|
label: "Submissions"
|
|
20288
20306
|
}
|
|
20289
|
-
],
|
|
20307
|
+
], dv = [
|
|
20290
20308
|
{
|
|
20291
20309
|
value: "eq",
|
|
20292
20310
|
label: "equals"
|
|
@@ -20315,17 +20333,17 @@ var { Text: uv, Title: dv } = U, fv = [
|
|
|
20315
20333
|
value: "scope",
|
|
20316
20334
|
label: "view scope"
|
|
20317
20335
|
}
|
|
20318
|
-
],
|
|
20336
|
+
], fv = [{
|
|
20319
20337
|
value: "myJobs",
|
|
20320
20338
|
label: "My Jobs"
|
|
20321
20339
|
}, {
|
|
20322
20340
|
value: "allJobs",
|
|
20323
20341
|
label: "All Jobs"
|
|
20324
|
-
}],
|
|
20342
|
+
}], pv = [
|
|
20325
20343
|
"eq",
|
|
20326
20344
|
"ne",
|
|
20327
20345
|
"contains"
|
|
20328
|
-
],
|
|
20346
|
+
], mv = "scope", hv = "fieldEq", gv = [
|
|
20329
20347
|
{
|
|
20330
20348
|
name: "Fulfilled jobs — block sourcing",
|
|
20331
20349
|
description: "When a job status is fulfilled and has no recruiters, hide source & quick-submit buttons.",
|
|
@@ -20373,26 +20391,26 @@ var { Text: uv, Title: dv } = U, fv = [
|
|
|
20373
20391
|
blockedActions: ["sourceCandidates", "quickSubmit"],
|
|
20374
20392
|
isActive: !0
|
|
20375
20393
|
}
|
|
20376
|
-
],
|
|
20394
|
+
], _v = () => ({
|
|
20377
20395
|
field: "",
|
|
20378
20396
|
operator: "eq",
|
|
20379
20397
|
value: "",
|
|
20380
20398
|
compareField: ""
|
|
20381
|
-
}),
|
|
20399
|
+
}), vv = () => ({
|
|
20382
20400
|
name: "",
|
|
20383
20401
|
description: "",
|
|
20384
|
-
conditions: [
|
|
20402
|
+
conditions: [_v()],
|
|
20385
20403
|
blockedActions: [],
|
|
20386
20404
|
isActive: !0
|
|
20387
20405
|
});
|
|
20388
|
-
function
|
|
20389
|
-
return
|
|
20406
|
+
function yv(e) {
|
|
20407
|
+
return dv.find((t) => t.value === e)?.label ?? e;
|
|
20390
20408
|
}
|
|
20391
|
-
function
|
|
20392
|
-
return e.operator ===
|
|
20409
|
+
function bv(e) {
|
|
20410
|
+
return e.operator === mv ? `scope = ${e.value}` : e.operator === hv ? `${e.field} = field:${e.compareField}` : ["isEmpty", "notEmpty"].includes(e.operator) ? `${e.field} ${yv(e.operator)}` : `${e.field} ${yv(e.operator)} "${e.value}"`;
|
|
20393
20411
|
}
|
|
20394
|
-
function
|
|
20395
|
-
let [e, t] = o("job"), [n, i] = o([]), [a, c] = o(!1), [l, u] = o(!1), [d, p] = o(null), [m, h] = o(
|
|
20412
|
+
function xv() {
|
|
20413
|
+
let [e, t] = o("job"), [n, i] = o([]), [a, c] = o(!1), [l, u] = o(!1), [d, p] = o(null), [m, h] = o(vv()), [g, _] = o(!1), [b, x] = o(!1), [S, T] = o([]), [E, D] = o([]);
|
|
20396
20414
|
function O(e) {
|
|
20397
20415
|
c(!0), is(e).then((e) => i(Array.isArray(e) ? e : [])).catch(() => i([])).finally(() => c(!1));
|
|
20398
20416
|
}
|
|
@@ -20421,13 +20439,13 @@ function Cv() {
|
|
|
20421
20439
|
O(e), k(e), A(e);
|
|
20422
20440
|
}, [e]);
|
|
20423
20441
|
function M() {
|
|
20424
|
-
p(null), h(
|
|
20442
|
+
p(null), h(vv()), u(!0);
|
|
20425
20443
|
}
|
|
20426
20444
|
function ee(e) {
|
|
20427
20445
|
p(e), h({
|
|
20428
20446
|
name: e.name ?? "",
|
|
20429
20447
|
description: e.description ?? "",
|
|
20430
|
-
conditions: e.conditions?.length ? e.conditions.map((e) => ({ ...e })) : [
|
|
20448
|
+
conditions: e.conditions?.length ? e.conditions.map((e) => ({ ...e })) : [_v()],
|
|
20431
20449
|
blockedActions: e.blockedActions ?? [],
|
|
20432
20450
|
isActive: e.isActive ?? !0
|
|
20433
20451
|
}), u(!0);
|
|
@@ -20451,7 +20469,7 @@ function Cv() {
|
|
|
20451
20469
|
async function F() {
|
|
20452
20470
|
x(!0);
|
|
20453
20471
|
try {
|
|
20454
|
-
for (let t of
|
|
20472
|
+
for (let t of gv) await as({
|
|
20455
20473
|
...t,
|
|
20456
20474
|
module: e
|
|
20457
20475
|
});
|
|
@@ -20472,7 +20490,7 @@ function Cv() {
|
|
|
20472
20490
|
function z() {
|
|
20473
20491
|
h((e) => ({
|
|
20474
20492
|
...e,
|
|
20475
|
-
conditions: [...e.conditions,
|
|
20493
|
+
conditions: [...e.conditions, _v()]
|
|
20476
20494
|
}));
|
|
20477
20495
|
}
|
|
20478
20496
|
function te(e) {
|
|
@@ -20493,13 +20511,13 @@ function Cv() {
|
|
|
20493
20511
|
flexWrap: "wrap"
|
|
20494
20512
|
},
|
|
20495
20513
|
children: [
|
|
20496
|
-
/* @__PURE__ */ q(
|
|
20514
|
+
/* @__PURE__ */ q(lv, {
|
|
20497
20515
|
level: 5,
|
|
20498
20516
|
style: { margin: 0 },
|
|
20499
20517
|
children: "Action Rules"
|
|
20500
20518
|
}),
|
|
20501
20519
|
/* @__PURE__ */ q(I, {
|
|
20502
|
-
options:
|
|
20520
|
+
options: uv,
|
|
20503
20521
|
value: e,
|
|
20504
20522
|
onChange: t,
|
|
20505
20523
|
style: { width: 160 }
|
|
@@ -20547,10 +20565,10 @@ function Cv() {
|
|
|
20547
20565
|
dataIndex: "name",
|
|
20548
20566
|
key: "name",
|
|
20549
20567
|
width: 200,
|
|
20550
|
-
render: (e, t) => /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
20568
|
+
render: (e, t) => /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(cv, {
|
|
20551
20569
|
strong: !0,
|
|
20552
20570
|
children: e
|
|
20553
|
-
}), t.description ? /* @__PURE__ */ q("div", { children: /* @__PURE__ */ q(
|
|
20571
|
+
}), t.description ? /* @__PURE__ */ q("div", { children: /* @__PURE__ */ q(cv, {
|
|
20554
20572
|
type: "secondary",
|
|
20555
20573
|
style: { fontSize: 11 },
|
|
20556
20574
|
children: t.description
|
|
@@ -20568,7 +20586,7 @@ function Cv() {
|
|
|
20568
20586
|
fontSize: 11,
|
|
20569
20587
|
margin: 0
|
|
20570
20588
|
},
|
|
20571
|
-
children:
|
|
20589
|
+
children: bv(e)
|
|
20572
20590
|
}, t))
|
|
20573
20591
|
})
|
|
20574
20592
|
},
|
|
@@ -20686,7 +20704,7 @@ function Cv() {
|
|
|
20686
20704
|
orientation: "left",
|
|
20687
20705
|
orientationMargin: 0,
|
|
20688
20706
|
style: { fontSize: 13 },
|
|
20689
|
-
children: ["Conditions ", /* @__PURE__ */ q(
|
|
20707
|
+
children: ["Conditions ", /* @__PURE__ */ q(cv, {
|
|
20690
20708
|
type: "secondary",
|
|
20691
20709
|
style: { fontSize: 12 },
|
|
20692
20710
|
children: "(ALL must match for the rule to fire)"
|
|
@@ -20715,7 +20733,7 @@ function Cv() {
|
|
|
20715
20733
|
minWidth: 140
|
|
20716
20734
|
},
|
|
20717
20735
|
children: /* @__PURE__ */ q(I, {
|
|
20718
|
-
options:
|
|
20736
|
+
options: dv,
|
|
20719
20737
|
value: e.operator,
|
|
20720
20738
|
style: { width: 140 },
|
|
20721
20739
|
onChange: (e) => L(t, {
|
|
@@ -20725,7 +20743,7 @@ function Cv() {
|
|
|
20725
20743
|
})
|
|
20726
20744
|
})
|
|
20727
20745
|
}),
|
|
20728
|
-
e.operator !==
|
|
20746
|
+
e.operator !== mv && /* @__PURE__ */ J(C.Item, {
|
|
20729
20747
|
label: "Record Field",
|
|
20730
20748
|
style: {
|
|
20731
20749
|
marginBottom: 0,
|
|
@@ -20743,7 +20761,7 @@ function Cv() {
|
|
|
20743
20761
|
placeholder: "Select or type field name",
|
|
20744
20762
|
onChange: (e) => L(t, { field: e[e.length - 1] ?? "" }),
|
|
20745
20763
|
filterOption: (e, t) => (t?.label ?? t?.value ?? "").toLowerCase().includes(e.toLowerCase())
|
|
20746
|
-
}), /* @__PURE__ */ J(
|
|
20764
|
+
}), /* @__PURE__ */ J(cv, {
|
|
20747
20765
|
type: "secondary",
|
|
20748
20766
|
style: { fontSize: 11 },
|
|
20749
20767
|
children: [
|
|
@@ -20755,7 +20773,7 @@ function Cv() {
|
|
|
20755
20773
|
]
|
|
20756
20774
|
})]
|
|
20757
20775
|
}),
|
|
20758
|
-
|
|
20776
|
+
pv.includes(e.operator) && /* @__PURE__ */ q(C.Item, {
|
|
20759
20777
|
label: "Value",
|
|
20760
20778
|
style: {
|
|
20761
20779
|
marginBottom: 0,
|
|
@@ -20768,25 +20786,25 @@ function Cv() {
|
|
|
20768
20786
|
onChange: (e) => L(t, { value: e.target.value })
|
|
20769
20787
|
})
|
|
20770
20788
|
}),
|
|
20771
|
-
e.operator ===
|
|
20789
|
+
e.operator === mv && /* @__PURE__ */ J(C.Item, {
|
|
20772
20790
|
label: "Scope Value",
|
|
20773
20791
|
style: {
|
|
20774
20792
|
marginBottom: 0,
|
|
20775
20793
|
minWidth: 140
|
|
20776
20794
|
},
|
|
20777
20795
|
children: [/* @__PURE__ */ q(I, {
|
|
20778
|
-
options:
|
|
20796
|
+
options: fv,
|
|
20779
20797
|
value: e.value || void 0,
|
|
20780
20798
|
style: { width: 150 },
|
|
20781
20799
|
placeholder: "Select scope",
|
|
20782
20800
|
onChange: (e) => L(t, { value: e })
|
|
20783
|
-
}), /* @__PURE__ */ q(
|
|
20801
|
+
}), /* @__PURE__ */ q(cv, {
|
|
20784
20802
|
type: "secondary",
|
|
20785
20803
|
style: { fontSize: 11 },
|
|
20786
20804
|
children: "Current view tab (myJobs / allJobs)"
|
|
20787
20805
|
})]
|
|
20788
20806
|
}),
|
|
20789
|
-
e.operator ===
|
|
20807
|
+
e.operator === hv && /* @__PURE__ */ J(C.Item, {
|
|
20790
20808
|
label: "Compare To Field",
|
|
20791
20809
|
style: {
|
|
20792
20810
|
marginBottom: 0,
|
|
@@ -20803,7 +20821,7 @@ function Cv() {
|
|
|
20803
20821
|
placeholder: "Select or type field",
|
|
20804
20822
|
onChange: (e) => L(t, { compareField: e[e.length - 1] ?? "" }),
|
|
20805
20823
|
filterOption: (e, t) => (t?.label ?? t?.value ?? "").toLowerCase().includes(e.toLowerCase())
|
|
20806
|
-
}), /* @__PURE__ */ J(
|
|
20824
|
+
}), /* @__PURE__ */ J(cv, {
|
|
20807
20825
|
type: "secondary",
|
|
20808
20826
|
style: { fontSize: 11 },
|
|
20809
20827
|
children: ["e.g. ", /* @__PURE__ */ q("code", { children: "submissionCount" })]
|
|
@@ -20823,12 +20841,12 @@ function Cv() {
|
|
|
20823
20841
|
]
|
|
20824
20842
|
}), /* @__PURE__ */ q("div", {
|
|
20825
20843
|
style: { marginTop: 6 },
|
|
20826
|
-
children: /* @__PURE__ */ J(
|
|
20844
|
+
children: /* @__PURE__ */ J(cv, {
|
|
20827
20845
|
type: "secondary",
|
|
20828
20846
|
style: { fontSize: 11 },
|
|
20829
20847
|
children: ["Preview: ", /* @__PURE__ */ q("code", {
|
|
20830
20848
|
style: { color: "#1677ff" },
|
|
20831
|
-
children:
|
|
20849
|
+
children: bv(e)
|
|
20832
20850
|
})]
|
|
20833
20851
|
})
|
|
20834
20852
|
})]
|
|
@@ -20843,7 +20861,7 @@ function Cv() {
|
|
|
20843
20861
|
orientation: "left",
|
|
20844
20862
|
orientationMargin: 0,
|
|
20845
20863
|
style: { fontSize: 13 },
|
|
20846
|
-
children: ["Blocked Row Actions", /* @__PURE__ */ q(
|
|
20864
|
+
children: ["Blocked Row Actions", /* @__PURE__ */ q(cv, {
|
|
20847
20865
|
type: "secondary",
|
|
20848
20866
|
style: {
|
|
20849
20867
|
fontSize: 12,
|
|
@@ -20863,7 +20881,7 @@ function Cv() {
|
|
|
20863
20881
|
blockedActions: e
|
|
20864
20882
|
})),
|
|
20865
20883
|
filterOption: (e, t) => (t?.value ?? "").toLowerCase().includes(e.toLowerCase())
|
|
20866
|
-
}), /* @__PURE__ */ J(
|
|
20884
|
+
}), /* @__PURE__ */ J(cv, {
|
|
20867
20885
|
type: "secondary",
|
|
20868
20886
|
style: { fontSize: 11 },
|
|
20869
20887
|
children: [
|
|
@@ -20893,7 +20911,7 @@ function Cv() {
|
|
|
20893
20911
|
}
|
|
20894
20912
|
//#endregion
|
|
20895
20913
|
//#region src/pages/Modules/Admin/UsersSection.jsx
|
|
20896
|
-
var { Text:
|
|
20914
|
+
var { Text: Sv } = U, { Option: Cv } = I, wv = [
|
|
20897
20915
|
{
|
|
20898
20916
|
key: "job",
|
|
20899
20917
|
label: "Jobs"
|
|
@@ -20906,7 +20924,7 @@ var { Text: wv } = U, { Option: Tv } = I, Ev = [
|
|
|
20906
20924
|
key: "submissions",
|
|
20907
20925
|
label: "Submissions"
|
|
20908
20926
|
}
|
|
20909
|
-
],
|
|
20927
|
+
], Tv = [
|
|
20910
20928
|
{
|
|
20911
20929
|
key: "listView",
|
|
20912
20930
|
label: "List View"
|
|
@@ -20923,7 +20941,7 @@ var { Text: wv } = U, { Option: Tv } = I, Ev = [
|
|
|
20923
20941
|
key: "permissions",
|
|
20924
20942
|
label: "Permissions"
|
|
20925
20943
|
}
|
|
20926
|
-
],
|
|
20944
|
+
], Ev = [
|
|
20927
20945
|
{
|
|
20928
20946
|
key: "",
|
|
20929
20947
|
label: "Text",
|
|
@@ -20951,20 +20969,20 @@ var { Text: wv } = U, { Option: Tv } = I, Ev = [
|
|
|
20951
20969
|
icon: /* @__PURE__ */ q(et, { style: { fontSize: 16 } })
|
|
20952
20970
|
}
|
|
20953
20971
|
];
|
|
20954
|
-
function
|
|
20972
|
+
function Dv(e) {
|
|
20955
20973
|
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 ?? "?"}`;
|
|
20956
20974
|
}
|
|
20957
|
-
function
|
|
20975
|
+
function Ov(e) {
|
|
20958
20976
|
return {
|
|
20959
20977
|
...e,
|
|
20960
20978
|
key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
|
|
20961
|
-
_name:
|
|
20979
|
+
_name: Dv(e),
|
|
20962
20980
|
_email: e.email ?? e.EMAIL ?? e.user_email ?? "",
|
|
20963
20981
|
_role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
|
|
20964
20982
|
_rawRef: e
|
|
20965
20983
|
};
|
|
20966
20984
|
}
|
|
20967
|
-
var
|
|
20985
|
+
var kv = [
|
|
20968
20986
|
{
|
|
20969
20987
|
color: "#52c41a",
|
|
20970
20988
|
bg: "#f6ffed"
|
|
@@ -20997,12 +21015,12 @@ var jv = [
|
|
|
20997
21015
|
color: "#faad14",
|
|
20998
21016
|
bg: "#fffbe6"
|
|
20999
21017
|
}
|
|
21000
|
-
],
|
|
21018
|
+
], Av = {
|
|
21001
21019
|
job: "jobs",
|
|
21002
21020
|
candidate: "candidates",
|
|
21003
21021
|
submissions: "submissions"
|
|
21004
21022
|
};
|
|
21005
|
-
function
|
|
21023
|
+
function jv({ field: e, collections: t, collFields: n, subfields: r, onCollectionChange: i, onLookupFieldChange: a, addSecondaryField: s, removeSecondaryField: c, addActionButton: l, updateActionButton: u, removeActionButton: d, moduleKey: p, fieldKey: m, update: h }) {
|
|
21006
21024
|
let [g, _] = o(""), [v, y] = o({}), [b, x] = o(!1);
|
|
21007
21025
|
function S(e) {
|
|
21008
21026
|
h(e === "common" ? {
|
|
@@ -21046,13 +21064,13 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21046
21064
|
async function O() {
|
|
21047
21065
|
x(!0);
|
|
21048
21066
|
try {
|
|
21049
|
-
let e = await vc(
|
|
21067
|
+
let e = await vc(Av[p] ?? p, m, "", 50, 0), t = (Array.isArray(e) ? e : e?.data ?? []).map((e, t) => {
|
|
21050
21068
|
let n = typeof e == "object" ? e.value ?? e.label ?? "" : String(e), r = typeof e == "object" ? e.label ?? e.value ?? "" : String(e);
|
|
21051
21069
|
return {
|
|
21052
21070
|
value: String(n),
|
|
21053
21071
|
label: String(r),
|
|
21054
21072
|
variant: "badge",
|
|
21055
|
-
...
|
|
21073
|
+
...kv[t % kv.length]
|
|
21056
21074
|
};
|
|
21057
21075
|
});
|
|
21058
21076
|
if (t.length === 0) {
|
|
@@ -21098,7 +21116,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21098
21116
|
}),
|
|
21099
21117
|
/* @__PURE__ */ q("div", {
|
|
21100
21118
|
className: "uss-detail-row",
|
|
21101
|
-
children:
|
|
21119
|
+
children: Ev.map((e) => /* @__PURE__ */ J("button", {
|
|
21102
21120
|
className: `uss-render-type-btn${A === e.key ? " active" : ""}`,
|
|
21103
21121
|
onClick: () => h({
|
|
21104
21122
|
renderType: e.key,
|
|
@@ -21152,7 +21170,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21152
21170
|
padding: 0
|
|
21153
21171
|
},
|
|
21154
21172
|
onChange: (e) => C({ color: e.target.value })
|
|
21155
|
-
}), /* @__PURE__ */ q(
|
|
21173
|
+
}), /* @__PURE__ */ q(Sv, {
|
|
21156
21174
|
style: { fontSize: 10 },
|
|
21157
21175
|
children: "Text"
|
|
21158
21176
|
})]
|
|
@@ -21177,7 +21195,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21177
21195
|
padding: 0
|
|
21178
21196
|
},
|
|
21179
21197
|
onChange: (e) => C({ bg: e.target.value })
|
|
21180
|
-
}), /* @__PURE__ */ q(
|
|
21198
|
+
}), /* @__PURE__ */ q(Sv, {
|
|
21181
21199
|
style: { fontSize: 10 },
|
|
21182
21200
|
children: "BG"
|
|
21183
21201
|
})]
|
|
@@ -21224,7 +21242,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21224
21242
|
alignItems: "center",
|
|
21225
21243
|
marginBottom: 6
|
|
21226
21244
|
},
|
|
21227
|
-
children: [/* @__PURE__ */ q(
|
|
21245
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21228
21246
|
style: {
|
|
21229
21247
|
fontSize: 11,
|
|
21230
21248
|
color: "#555",
|
|
@@ -21246,7 +21264,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21246
21264
|
})]
|
|
21247
21265
|
})]
|
|
21248
21266
|
}),
|
|
21249
|
-
ee.length === 0 && /* @__PURE__ */ q(
|
|
21267
|
+
ee.length === 0 && /* @__PURE__ */ q(Sv, {
|
|
21250
21268
|
type: "secondary",
|
|
21251
21269
|
style: { fontSize: 12 },
|
|
21252
21270
|
children: "Click \"Auto-detect values\" to populate from live data, or \"Add\" to map manually."
|
|
@@ -21291,7 +21309,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21291
21309
|
padding: 0
|
|
21292
21310
|
},
|
|
21293
21311
|
onChange: (e) => E(t, { color: e.target.value })
|
|
21294
|
-
}), /* @__PURE__ */ q(
|
|
21312
|
+
}), /* @__PURE__ */ q(Sv, {
|
|
21295
21313
|
style: { fontSize: 10 },
|
|
21296
21314
|
children: "Text"
|
|
21297
21315
|
})]
|
|
@@ -21316,7 +21334,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21316
21334
|
padding: 0
|
|
21317
21335
|
},
|
|
21318
21336
|
onChange: (e) => E(t, { bg: e.target.value })
|
|
21319
|
-
}), /* @__PURE__ */ q(
|
|
21337
|
+
}), /* @__PURE__ */ q(Sv, {
|
|
21320
21338
|
style: { fontSize: 10 },
|
|
21321
21339
|
children: "BG"
|
|
21322
21340
|
})]
|
|
@@ -21357,7 +21375,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21357
21375
|
marginTop: 8
|
|
21358
21376
|
},
|
|
21359
21377
|
children: [
|
|
21360
|
-
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
21378
|
+
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(Sv, {
|
|
21361
21379
|
style: {
|
|
21362
21380
|
fontSize: 11,
|
|
21363
21381
|
color: "#555",
|
|
@@ -21381,7 +21399,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21381
21399
|
labelField: e ?? ""
|
|
21382
21400
|
} })
|
|
21383
21401
|
})] }),
|
|
21384
|
-
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
21402
|
+
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(Sv, {
|
|
21385
21403
|
style: {
|
|
21386
21404
|
fontSize: 11,
|
|
21387
21405
|
color: "#555",
|
|
@@ -21405,7 +21423,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21405
21423
|
colorField: e ?? ""
|
|
21406
21424
|
} })
|
|
21407
21425
|
})] }),
|
|
21408
|
-
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
21426
|
+
/* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(Sv, {
|
|
21409
21427
|
style: {
|
|
21410
21428
|
fontSize: 11,
|
|
21411
21429
|
color: "#555",
|
|
@@ -21467,10 +21485,10 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21467
21485
|
value: e.linkType ?? "internal",
|
|
21468
21486
|
onChange: (e) => h({ linkType: e }),
|
|
21469
21487
|
style: { width: 120 },
|
|
21470
|
-
children: [/* @__PURE__ */ q(
|
|
21488
|
+
children: [/* @__PURE__ */ q(Cv, {
|
|
21471
21489
|
value: "internal",
|
|
21472
21490
|
children: "internal"
|
|
21473
|
-
}), /* @__PURE__ */ q(
|
|
21491
|
+
}), /* @__PURE__ */ q(Cv, {
|
|
21474
21492
|
value: "external",
|
|
21475
21493
|
children: "external"
|
|
21476
21494
|
})]
|
|
@@ -21479,10 +21497,10 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21479
21497
|
value: e.linkTarget ?? "_self",
|
|
21480
21498
|
onChange: (e) => h({ linkTarget: e }),
|
|
21481
21499
|
style: { width: 100 },
|
|
21482
|
-
children: [/* @__PURE__ */ q(
|
|
21500
|
+
children: [/* @__PURE__ */ q(Cv, {
|
|
21483
21501
|
value: "_self",
|
|
21484
21502
|
children: "_self"
|
|
21485
|
-
}), /* @__PURE__ */ q(
|
|
21503
|
+
}), /* @__PURE__ */ q(Cv, {
|
|
21486
21504
|
value: "_blank",
|
|
21487
21505
|
children: "_blank"
|
|
21488
21506
|
})]
|
|
@@ -21536,7 +21554,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21536
21554
|
alignItems: "center",
|
|
21537
21555
|
gap: 8
|
|
21538
21556
|
},
|
|
21539
|
-
children: [/* @__PURE__ */ q(
|
|
21557
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21540
21558
|
style: {
|
|
21541
21559
|
fontSize: 11,
|
|
21542
21560
|
color: "var(--color-text-muted)"
|
|
@@ -21581,7 +21599,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21581
21599
|
showSearch: !0,
|
|
21582
21600
|
placeholder: "Select collection",
|
|
21583
21601
|
style: { flex: 1 },
|
|
21584
|
-
children: t.map((e) => /* @__PURE__ */ q(
|
|
21602
|
+
children: t.map((e) => /* @__PURE__ */ q(Cv, {
|
|
21585
21603
|
value: e,
|
|
21586
21604
|
children: e
|
|
21587
21605
|
}, e))
|
|
@@ -21597,7 +21615,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21597
21615
|
onChange: (t) => a(e.fieldKey, { valueField: t }),
|
|
21598
21616
|
placeholder: "ID field",
|
|
21599
21617
|
style: { flex: 1 },
|
|
21600
|
-
children: n.map((e) => /* @__PURE__ */ q(
|
|
21618
|
+
children: n.map((e) => /* @__PURE__ */ q(Cv, {
|
|
21601
21619
|
value: e,
|
|
21602
21620
|
children: e
|
|
21603
21621
|
}, e))
|
|
@@ -21613,7 +21631,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21613
21631
|
onChange: (t) => a(e.fieldKey, { displayField: t }),
|
|
21614
21632
|
placeholder: "Label field",
|
|
21615
21633
|
style: { flex: 1 },
|
|
21616
|
-
children: [...n, ...r].map((e) => /* @__PURE__ */ q(
|
|
21634
|
+
children: [...n, ...r].map((e) => /* @__PURE__ */ q(Cv, {
|
|
21617
21635
|
value: e,
|
|
21618
21636
|
children: e
|
|
21619
21637
|
}, e))
|
|
@@ -21711,7 +21729,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21711
21729
|
gap: 8,
|
|
21712
21730
|
paddingLeft: 36
|
|
21713
21731
|
},
|
|
21714
|
-
children: [/* @__PURE__ */ q(
|
|
21732
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21715
21733
|
style: {
|
|
21716
21734
|
fontSize: 11,
|
|
21717
21735
|
color: "#999",
|
|
@@ -21736,7 +21754,7 @@ function Nv({ field: e, collections: t, collFields: n, subfields: r, onCollectio
|
|
|
21736
21754
|
})
|
|
21737
21755
|
] });
|
|
21738
21756
|
}
|
|
21739
|
-
var
|
|
21757
|
+
var Mv = [
|
|
21740
21758
|
{
|
|
21741
21759
|
label: "Module data (distinct)",
|
|
21742
21760
|
value: "module"
|
|
@@ -21749,11 +21767,11 @@ var Pv = [
|
|
|
21749
21767
|
label: "Group value",
|
|
21750
21768
|
value: "group"
|
|
21751
21769
|
}
|
|
21752
|
-
],
|
|
21770
|
+
], Nv = [
|
|
21753
21771
|
"select",
|
|
21754
21772
|
"radio",
|
|
21755
21773
|
"checkbox"
|
|
21756
|
-
],
|
|
21774
|
+
], Pv = [
|
|
21757
21775
|
{
|
|
21758
21776
|
label: "Dropdown",
|
|
21759
21777
|
value: "dropdown"
|
|
@@ -21775,8 +21793,8 @@ var Pv = [
|
|
|
21775
21793
|
value: "number-range"
|
|
21776
21794
|
}
|
|
21777
21795
|
];
|
|
21778
|
-
function
|
|
21779
|
-
let s =
|
|
21796
|
+
function Fv({ field: e, update: t, configType: n, collections: r, collFields: i, onCollectionChange: a, onLookupFieldChange: o }) {
|
|
21797
|
+
let s = Nv.includes(e.type), c = !!e.lookup;
|
|
21780
21798
|
function l(e) {
|
|
21781
21799
|
t({ lookup: e ? {
|
|
21782
21800
|
collection: "",
|
|
@@ -21798,7 +21816,7 @@ function Lv({ field: e, update: t, configType: n, collections: r, collFields: i,
|
|
|
21798
21816
|
alignItems: "center",
|
|
21799
21817
|
gap: 8
|
|
21800
21818
|
},
|
|
21801
|
-
children: [/* @__PURE__ */ q(
|
|
21819
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21802
21820
|
style: { fontSize: 12 },
|
|
21803
21821
|
children: "Editable"
|
|
21804
21822
|
}), /* @__PURE__ */ q(B, {
|
|
@@ -21813,7 +21831,7 @@ function Lv({ field: e, update: t, configType: n, collections: r, collFields: i,
|
|
|
21813
21831
|
alignItems: "center",
|
|
21814
21832
|
gap: 8
|
|
21815
21833
|
},
|
|
21816
|
-
children: [/* @__PURE__ */ q(
|
|
21834
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21817
21835
|
style: { fontSize: 12 },
|
|
21818
21836
|
children: "Mandatory"
|
|
21819
21837
|
}), /* @__PURE__ */ q(B, {
|
|
@@ -21828,14 +21846,14 @@ function Lv({ field: e, update: t, configType: n, collections: r, collFields: i,
|
|
|
21828
21846
|
alignItems: "center",
|
|
21829
21847
|
gap: 8
|
|
21830
21848
|
},
|
|
21831
|
-
children: [/* @__PURE__ */ q(
|
|
21849
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21832
21850
|
style: { fontSize: 12 },
|
|
21833
21851
|
children: "Value Input"
|
|
21834
21852
|
}), /* @__PURE__ */ q(I, {
|
|
21835
21853
|
size: "small",
|
|
21836
21854
|
value: e.filterInputType ?? "dropdown",
|
|
21837
21855
|
onChange: (e) => t({ filterInputType: e }),
|
|
21838
|
-
options:
|
|
21856
|
+
options: Pv,
|
|
21839
21857
|
style: { width: 140 }
|
|
21840
21858
|
})]
|
|
21841
21859
|
}),
|
|
@@ -21845,7 +21863,7 @@ function Lv({ field: e, update: t, configType: n, collections: r, collFields: i,
|
|
|
21845
21863
|
alignItems: "center",
|
|
21846
21864
|
gap: 8
|
|
21847
21865
|
},
|
|
21848
|
-
children: [/* @__PURE__ */ q(
|
|
21866
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21849
21867
|
style: { fontSize: 12 },
|
|
21850
21868
|
children: "Default"
|
|
21851
21869
|
}), /* @__PURE__ */ q(B, {
|
|
@@ -21860,7 +21878,7 @@ function Lv({ field: e, update: t, configType: n, collections: r, collFields: i,
|
|
|
21860
21878
|
alignItems: "center",
|
|
21861
21879
|
gap: 8
|
|
21862
21880
|
},
|
|
21863
|
-
children: [/* @__PURE__ */ q(
|
|
21881
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21864
21882
|
style: { fontSize: 12 },
|
|
21865
21883
|
children: "Lookup"
|
|
21866
21884
|
}), /* @__PURE__ */ q(B, {
|
|
@@ -21912,7 +21930,7 @@ function Lv({ field: e, update: t, configType: n, collections: r, collFields: i,
|
|
|
21912
21930
|
alignItems: "center",
|
|
21913
21931
|
gap: 8
|
|
21914
21932
|
},
|
|
21915
|
-
children: [/* @__PURE__ */ q(
|
|
21933
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21916
21934
|
style: { fontSize: 12 },
|
|
21917
21935
|
children: "Source"
|
|
21918
21936
|
}), /* @__PURE__ */ q(I, {
|
|
@@ -21922,7 +21940,7 @@ function Lv({ field: e, update: t, configType: n, collections: r, collFields: i,
|
|
|
21922
21940
|
dataSource: e,
|
|
21923
21941
|
groupName: ""
|
|
21924
21942
|
}),
|
|
21925
|
-
options:
|
|
21943
|
+
options: Mv,
|
|
21926
21944
|
style: { width: 170 }
|
|
21927
21945
|
})]
|
|
21928
21946
|
}), (e.dataSource ?? "module") === "group" && /* @__PURE__ */ J("div", {
|
|
@@ -21931,7 +21949,7 @@ function Lv({ field: e, update: t, configType: n, collections: r, collFields: i,
|
|
|
21931
21949
|
alignItems: "center",
|
|
21932
21950
|
gap: 8
|
|
21933
21951
|
},
|
|
21934
|
-
children: [/* @__PURE__ */ q(
|
|
21952
|
+
children: [/* @__PURE__ */ q(Sv, {
|
|
21935
21953
|
style: { fontSize: 12 },
|
|
21936
21954
|
children: "Group Name"
|
|
21937
21955
|
}), /* @__PURE__ */ q(w, {
|
|
@@ -21945,7 +21963,7 @@ function Lv({ field: e, update: t, configType: n, collections: r, collFields: i,
|
|
|
21945
21963
|
]
|
|
21946
21964
|
});
|
|
21947
21965
|
}
|
|
21948
|
-
function
|
|
21966
|
+
function Iv({ field: e, index: t, configType: n, moduleKey: i, onUpdate: a, onReorder: s, collections: c, onFetchCollFields: l, dragFromRef: u }) {
|
|
21949
21967
|
let [d, p] = o(!1), [m, h] = o(!1), [g, _] = o(e.fieldName), [v, y] = o([]), [b, x] = o([]), [S, C] = o(!1), [w, T] = o(!1);
|
|
21950
21968
|
r(() => {
|
|
21951
21969
|
_(e.fieldName);
|
|
@@ -22091,7 +22109,7 @@ function Rv({ field: e, index: t, configType: n, moduleKey: i, onUpdate: a, onRe
|
|
|
22091
22109
|
]
|
|
22092
22110
|
}), d && /* @__PURE__ */ q("div", {
|
|
22093
22111
|
className: "uss-detail-panel",
|
|
22094
|
-
children: n === "listView" ? /* @__PURE__ */ q(
|
|
22112
|
+
children: n === "listView" ? /* @__PURE__ */ q(jv, {
|
|
22095
22113
|
field: e,
|
|
22096
22114
|
collections: c,
|
|
22097
22115
|
collFields: v,
|
|
@@ -22106,7 +22124,7 @@ function Rv({ field: e, index: t, configType: n, moduleKey: i, onUpdate: a, onRe
|
|
|
22106
22124
|
moduleKey: i,
|
|
22107
22125
|
fieldKey: e.fieldKey,
|
|
22108
22126
|
update: j
|
|
22109
|
-
}) : /* @__PURE__ */ q(
|
|
22127
|
+
}) : /* @__PURE__ */ q(Fv, {
|
|
22110
22128
|
field: e,
|
|
22111
22129
|
update: j,
|
|
22112
22130
|
configType: n,
|
|
@@ -22117,7 +22135,7 @@ function Rv({ field: e, index: t, configType: n, moduleKey: i, onUpdate: a, onRe
|
|
|
22117
22135
|
})
|
|
22118
22136
|
})] });
|
|
22119
22137
|
}
|
|
22120
|
-
var
|
|
22138
|
+
var Lv = {
|
|
22121
22139
|
jobs: {
|
|
22122
22140
|
title: "Jobs",
|
|
22123
22141
|
description: "Manage and configure job postings.",
|
|
@@ -22254,7 +22272,7 @@ var zv = {
|
|
|
22254
22272
|
"delete"
|
|
22255
22273
|
]
|
|
22256
22274
|
}
|
|
22257
|
-
},
|
|
22275
|
+
}, Rv = {
|
|
22258
22276
|
view: "View",
|
|
22259
22277
|
add: "Add",
|
|
22260
22278
|
edit: "Edit",
|
|
@@ -22269,7 +22287,7 @@ var zv = {
|
|
|
22269
22287
|
candidate_all: "All Candidates",
|
|
22270
22288
|
my_jobs: "My Jobs",
|
|
22271
22289
|
all_jobs: "All Jobs"
|
|
22272
|
-
},
|
|
22290
|
+
}, zv = {
|
|
22273
22291
|
candidates: {
|
|
22274
22292
|
title: "Candidate View Access",
|
|
22275
22293
|
keys: ["candidate_self", "candidate_all"],
|
|
@@ -22286,13 +22304,13 @@ var zv = {
|
|
|
22286
22304
|
control: "mixed"
|
|
22287
22305
|
}
|
|
22288
22306
|
};
|
|
22289
|
-
function
|
|
22307
|
+
function Bv(e) {
|
|
22290
22308
|
return String(e || "").replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
|
|
22291
22309
|
}
|
|
22292
|
-
function
|
|
22293
|
-
return
|
|
22294
|
-
title:
|
|
22295
|
-
description: `Manage ${
|
|
22310
|
+
function Vv(e) {
|
|
22311
|
+
return Lv[e] ?? {
|
|
22312
|
+
title: Bv(e),
|
|
22313
|
+
description: `Manage ${Bv(e).toLowerCase()} permissions.`,
|
|
22296
22314
|
Icon: le,
|
|
22297
22315
|
order: [
|
|
22298
22316
|
"view",
|
|
@@ -22302,23 +22320,23 @@ function Uv(e) {
|
|
|
22302
22320
|
]
|
|
22303
22321
|
};
|
|
22304
22322
|
}
|
|
22305
|
-
function
|
|
22306
|
-
let n = Object.keys(t?.permissions ?? {}), r =
|
|
22323
|
+
function Hv(e, t) {
|
|
22324
|
+
let n = Object.keys(t?.permissions ?? {}), r = Vv(e).order;
|
|
22307
22325
|
return [...r.filter((e) => n.includes(e)), ...n.filter((e) => !r.includes(e))];
|
|
22308
22326
|
}
|
|
22309
|
-
function
|
|
22310
|
-
let n =
|
|
22327
|
+
function Uv(e, t) {
|
|
22328
|
+
let n = zv[e];
|
|
22311
22329
|
return n ? n.keys.filter((e) => !!t?.permissions?.[e]) : [];
|
|
22312
22330
|
}
|
|
22313
|
-
function
|
|
22314
|
-
let n =
|
|
22315
|
-
return
|
|
22331
|
+
function Wv(e, t) {
|
|
22332
|
+
let n = Uv(e, t);
|
|
22333
|
+
return Hv(e, t).filter((e) => !n.includes(e));
|
|
22316
22334
|
}
|
|
22317
|
-
function
|
|
22318
|
-
let n =
|
|
22335
|
+
function Gv(e, t) {
|
|
22336
|
+
let n = Hv(e, t);
|
|
22319
22337
|
return e === "candidates" ? n.filter((e) => e !== "candidate_self") : e === "jobs" || e === "job" ? n.filter((e) => e !== "my_jobs") : n;
|
|
22320
22338
|
}
|
|
22321
|
-
function
|
|
22339
|
+
function Kv({ user: e }) {
|
|
22322
22340
|
let [t, n] = o({}), [a, s] = o(!1), [c, l] = o(!1), [u, d] = o(!1), p = wo(e);
|
|
22323
22341
|
r(() => {
|
|
22324
22342
|
if (!p) {
|
|
@@ -22337,7 +22355,7 @@ function Jv({ user: e }) {
|
|
|
22337
22355
|
...a[t],
|
|
22338
22356
|
value: r ? "1" : "0"
|
|
22339
22357
|
};
|
|
22340
|
-
let o =
|
|
22358
|
+
let o = Uv(e, i);
|
|
22341
22359
|
return t === "view" && (e === "jobs" || e === "job") && r && o.forEach((e) => {
|
|
22342
22360
|
a[e] = {
|
|
22343
22361
|
...a[e],
|
|
@@ -22362,7 +22380,7 @@ function Jv({ user: e }) {
|
|
|
22362
22380
|
}
|
|
22363
22381
|
function _(e, t, r) {
|
|
22364
22382
|
d(!0), n((n) => {
|
|
22365
|
-
let i = n[e] ?? {}, a = { ...i.permissions ?? {} }, o =
|
|
22383
|
+
let i = n[e] ?? {}, a = { ...i.permissions ?? {} }, o = Uv(e, i);
|
|
22366
22384
|
if (e === "candidates") o.forEach((e) => {
|
|
22367
22385
|
a[e] = {
|
|
22368
22386
|
...a[e],
|
|
@@ -22456,7 +22474,7 @@ function Jv({ user: e }) {
|
|
|
22456
22474
|
}) : /* @__PURE__ */ q("div", {
|
|
22457
22475
|
className: "uperm-list",
|
|
22458
22476
|
children: h.map(([e, t]) => {
|
|
22459
|
-
let n =
|
|
22477
|
+
let n = Vv(e), { Icon: r } = n, i = Wv(e, t), a = Gv(e, t), o = Uv(e, t), s = zv[e], c = t.permissions?.view?.value === "1", l = o.find((e) => t.permissions[e]?.value === "1"), u = a.every((e) => t.permissions[e]?.value === "1");
|
|
22460
22478
|
return /* @__PURE__ */ J("section", {
|
|
22461
22479
|
className: "uperm-card",
|
|
22462
22480
|
children: [/* @__PURE__ */ J("div", {
|
|
@@ -22487,7 +22505,7 @@ function Jv({ user: e }) {
|
|
|
22487
22505
|
children: [/* @__PURE__ */ q(m, {
|
|
22488
22506
|
checked: t.permissions[n]?.value === "1",
|
|
22489
22507
|
onChange: (t) => g(e, n, t.target.checked)
|
|
22490
|
-
}), /* @__PURE__ */ q("span", { children:
|
|
22508
|
+
}), /* @__PURE__ */ q("span", { children: Rv[n] ?? Bv(n) })]
|
|
22491
22509
|
}, n))
|
|
22492
22510
|
}),
|
|
22493
22511
|
o.length > 0 && /* @__PURE__ */ J("div", {
|
|
@@ -22503,7 +22521,7 @@ function Jv({ user: e }) {
|
|
|
22503
22521
|
children: o.map((e) => /* @__PURE__ */ q(N, {
|
|
22504
22522
|
className: "uperm-scope-option",
|
|
22505
22523
|
value: e,
|
|
22506
|
-
children:
|
|
22524
|
+
children: Rv[e] ?? Bv(e)
|
|
22507
22525
|
}, e))
|
|
22508
22526
|
}) : /* @__PURE__ */ q("div", {
|
|
22509
22527
|
className: "uperm-scope-row",
|
|
@@ -22513,7 +22531,7 @@ function Jv({ user: e }) {
|
|
|
22513
22531
|
checked: t.permissions[n]?.value === "1",
|
|
22514
22532
|
disabled: !c || n === "my_jobs",
|
|
22515
22533
|
onChange: (t) => _(e, n, t.target.checked)
|
|
22516
|
-
}), /* @__PURE__ */ q("span", { children:
|
|
22534
|
+
}), /* @__PURE__ */ q("span", { children: Rv[n] ?? Bv(n) })]
|
|
22517
22535
|
}, n))
|
|
22518
22536
|
})]
|
|
22519
22537
|
})
|
|
@@ -22524,7 +22542,7 @@ function Jv({ user: e }) {
|
|
|
22524
22542
|
})]
|
|
22525
22543
|
});
|
|
22526
22544
|
}
|
|
22527
|
-
function
|
|
22545
|
+
function qv({ user: e, configType: t }) {
|
|
22528
22546
|
let [n, i] = o({}), [s, c] = o(!1), [l, u] = o({}), [d, p] = o("job"), [m, h] = o([]), g = a({}), _ = a(null);
|
|
22529
22547
|
r(() => {
|
|
22530
22548
|
e && (c(!0), Promise.all([Oo(e, t), jo()]).then(([e, t]) => {
|
|
@@ -22586,7 +22604,7 @@ function Yv({ user: e, configType: t }) {
|
|
|
22586
22604
|
size: "small",
|
|
22587
22605
|
activeKey: d,
|
|
22588
22606
|
onChange: p,
|
|
22589
|
-
items:
|
|
22607
|
+
items: wv.map((e) => ({
|
|
22590
22608
|
key: e.key,
|
|
22591
22609
|
label: e.label
|
|
22592
22610
|
}))
|
|
@@ -22609,7 +22627,7 @@ function Yv({ user: e, configType: t }) {
|
|
|
22609
22627
|
children: [v.length === 0 && !s && /* @__PURE__ */ q("div", {
|
|
22610
22628
|
className: "uss-empty",
|
|
22611
22629
|
children: "No fields found."
|
|
22612
|
-
}), v.map((e, n) => /* @__PURE__ */ q(
|
|
22630
|
+
}), v.map((e, n) => /* @__PURE__ */ q(Iv, {
|
|
22613
22631
|
field: e,
|
|
22614
22632
|
index: n,
|
|
22615
22633
|
configType: t,
|
|
@@ -22628,13 +22646,13 @@ function Yv({ user: e, configType: t }) {
|
|
|
22628
22646
|
size: "small",
|
|
22629
22647
|
loading: l[d],
|
|
22630
22648
|
onClick: C,
|
|
22631
|
-
children: ["Save ",
|
|
22649
|
+
children: ["Save ", wv.find((e) => e.key === d)?.label]
|
|
22632
22650
|
})
|
|
22633
22651
|
})
|
|
22634
22652
|
]
|
|
22635
22653
|
});
|
|
22636
22654
|
}
|
|
22637
|
-
function
|
|
22655
|
+
function Jv() {
|
|
22638
22656
|
let [e, t] = o(null), [i, a] = o(!1), [s, c] = o("listView"), [l, u] = o([]), [d, p] = o(0), [m, h] = o(!1), [g, _] = o(1), [v, y] = o(10), [b, x] = o(""), S = n(async ({ offset: e, limit: t, searchQuery: n } = {}) => {
|
|
22639
22657
|
h(!0);
|
|
22640
22658
|
try {
|
|
@@ -22642,7 +22660,7 @@ function Xv() {
|
|
|
22642
22660
|
offset: e,
|
|
22643
22661
|
limit: t,
|
|
22644
22662
|
searchQuery: n ?? ""
|
|
22645
|
-
}), i = (r.users ?? []).map(
|
|
22663
|
+
}), i = (r.users ?? []).map(Ov);
|
|
22646
22664
|
u(i), p(r.total ?? i.length);
|
|
22647
22665
|
} catch {
|
|
22648
22666
|
G.error("Failed to load users");
|
|
@@ -22673,7 +22691,7 @@ function Xv() {
|
|
|
22673
22691
|
label: "Name",
|
|
22674
22692
|
value: "_name",
|
|
22675
22693
|
width: 220,
|
|
22676
|
-
render: (e, t) => /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
22694
|
+
render: (e, t) => /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(Sv, {
|
|
22677
22695
|
strong: !0,
|
|
22678
22696
|
style: { fontSize: 13 },
|
|
22679
22697
|
children: e
|
|
@@ -22711,7 +22729,7 @@ function Xv() {
|
|
|
22711
22729
|
})]
|
|
22712
22730
|
})
|
|
22713
22731
|
}
|
|
22714
|
-
], T = e ?
|
|
22732
|
+
], T = e ? Dv(e) : "";
|
|
22715
22733
|
return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Ks, {
|
|
22716
22734
|
icon: /* @__PURE__ */ q(Dt, {}),
|
|
22717
22735
|
title: "Users",
|
|
@@ -22752,13 +22770,13 @@ function Xv() {
|
|
|
22752
22770
|
style: { marginBottom: 12 },
|
|
22753
22771
|
children: /* @__PURE__ */ q("div", {
|
|
22754
22772
|
className: "uss-config-toggle",
|
|
22755
|
-
children:
|
|
22773
|
+
children: Tv.map((e) => /* @__PURE__ */ q("button", {
|
|
22756
22774
|
className: `uss-config-btn${s === e.key ? " active" : ""}`,
|
|
22757
22775
|
onClick: () => c(e.key),
|
|
22758
22776
|
children: e.label
|
|
22759
22777
|
}, e.key))
|
|
22760
22778
|
})
|
|
22761
|
-
}), e && s === "permissions" ? /* @__PURE__ */ q(
|
|
22779
|
+
}), e && s === "permissions" ? /* @__PURE__ */ q(Kv, { user: e }, String(wo(e) ?? "")) : e && /* @__PURE__ */ q(qv, {
|
|
22762
22780
|
user: e,
|
|
22763
22781
|
configType: s
|
|
22764
22782
|
}, `${String(wo(e) ?? "")}-${s}`)]
|
|
@@ -22766,7 +22784,7 @@ function Xv() {
|
|
|
22766
22784
|
}
|
|
22767
22785
|
//#endregion
|
|
22768
22786
|
//#region src/pages/Modules/Admin/TeamsSection.jsx
|
|
22769
|
-
var { Text:
|
|
22787
|
+
var { Text: Yv } = U, Xv = [
|
|
22770
22788
|
{
|
|
22771
22789
|
key: "job",
|
|
22772
22790
|
label: "Jobs"
|
|
@@ -22779,7 +22797,7 @@ var { Text: Zv } = U, Qv = [
|
|
|
22779
22797
|
key: "submissions",
|
|
22780
22798
|
label: "Submissions"
|
|
22781
22799
|
}
|
|
22782
|
-
],
|
|
22800
|
+
], Zv = [
|
|
22783
22801
|
{
|
|
22784
22802
|
key: "listView",
|
|
22785
22803
|
label: "List View"
|
|
@@ -22793,7 +22811,7 @@ var { Text: Zv } = U, Qv = [
|
|
|
22793
22811
|
label: "Form"
|
|
22794
22812
|
}
|
|
22795
22813
|
];
|
|
22796
|
-
function
|
|
22814
|
+
function Qv({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
22797
22815
|
let i = a(null), [s, c] = o(!1), [l, u] = o(!1);
|
|
22798
22816
|
function d(e) {
|
|
22799
22817
|
i.current = t, e.dataTransfer.effectAllowed = "move", u(!0);
|
|
@@ -22857,7 +22875,7 @@ function ey({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
|
22857
22875
|
]
|
|
22858
22876
|
});
|
|
22859
22877
|
}
|
|
22860
|
-
function
|
|
22878
|
+
function $v({ team: e, configType: t }) {
|
|
22861
22879
|
let [n, i] = o({}), [a, s] = o(!1), [c, l] = o({}), [u, d] = o("job");
|
|
22862
22880
|
r(() => {
|
|
22863
22881
|
e && (s(!0), yo(e, t).then(i).catch(() => G.error("Failed to load field config")).finally(() => s(!1)));
|
|
@@ -22908,7 +22926,7 @@ function ty({ team: e, configType: t }) {
|
|
|
22908
22926
|
size: "small",
|
|
22909
22927
|
activeKey: u,
|
|
22910
22928
|
onChange: d,
|
|
22911
|
-
items:
|
|
22929
|
+
items: Xv.map((e) => ({
|
|
22912
22930
|
key: e.key,
|
|
22913
22931
|
label: e.label
|
|
22914
22932
|
}))
|
|
@@ -22937,7 +22955,7 @@ function ty({ team: e, configType: t }) {
|
|
|
22937
22955
|
children: [p.length === 0 && !a && /* @__PURE__ */ q("div", {
|
|
22938
22956
|
className: "uss-empty",
|
|
22939
22957
|
children: "No fields found."
|
|
22940
|
-
}), p.map((e, t) => /* @__PURE__ */ q(
|
|
22958
|
+
}), p.map((e, t) => /* @__PURE__ */ q(Qv, {
|
|
22941
22959
|
field: e,
|
|
22942
22960
|
index: t,
|
|
22943
22961
|
onToggle: h,
|
|
@@ -22951,13 +22969,13 @@ function ty({ team: e, configType: t }) {
|
|
|
22951
22969
|
size: "small",
|
|
22952
22970
|
loading: c[u],
|
|
22953
22971
|
onClick: _,
|
|
22954
|
-
children: ["Save ",
|
|
22972
|
+
children: ["Save ", Xv.find((e) => e.key === u)?.label]
|
|
22955
22973
|
})
|
|
22956
22974
|
})
|
|
22957
22975
|
]
|
|
22958
22976
|
});
|
|
22959
22977
|
}
|
|
22960
|
-
function
|
|
22978
|
+
function ey() {
|
|
22961
22979
|
let [e, t] = o(null), [i, a] = o(!1), [s, c] = o(!1), [l, u] = o("listView"), [d, p] = o([]), [m, h] = o(0), [g, _] = o(!1), [v, y] = o(""), [b, x] = o(!1), S = n(async () => {
|
|
22962
22980
|
_(!0);
|
|
22963
22981
|
try {
|
|
@@ -23104,13 +23122,13 @@ function ny() {
|
|
|
23104
23122
|
style: { marginBottom: 12 },
|
|
23105
23123
|
children: /* @__PURE__ */ q("div", {
|
|
23106
23124
|
className: "uss-config-toggle",
|
|
23107
|
-
children:
|
|
23125
|
+
children: Zv.map((e) => /* @__PURE__ */ q("button", {
|
|
23108
23126
|
className: `uss-config-btn${l === e.key ? " active" : ""}`,
|
|
23109
23127
|
onClick: () => u(e.key),
|
|
23110
23128
|
children: e.label
|
|
23111
23129
|
}, e.key))
|
|
23112
23130
|
})
|
|
23113
|
-
}), e && /* @__PURE__ */ q(
|
|
23131
|
+
}), e && /* @__PURE__ */ q($v, {
|
|
23114
23132
|
team: e,
|
|
23115
23133
|
configType: l
|
|
23116
23134
|
}, `${e?.teamId}-${l}`)]
|
|
@@ -23119,7 +23137,7 @@ function ny() {
|
|
|
23119
23137
|
}
|
|
23120
23138
|
//#endregion
|
|
23121
23139
|
//#region src/pages/Modules/Admin/RolesSection.jsx
|
|
23122
|
-
var
|
|
23140
|
+
var ty = [
|
|
23123
23141
|
{
|
|
23124
23142
|
key: "job",
|
|
23125
23143
|
label: "Jobs"
|
|
@@ -23132,7 +23150,7 @@ var ry = [
|
|
|
23132
23150
|
key: "submissions",
|
|
23133
23151
|
label: "Submissions"
|
|
23134
23152
|
}
|
|
23135
|
-
],
|
|
23153
|
+
], ny = [
|
|
23136
23154
|
{
|
|
23137
23155
|
key: "listView",
|
|
23138
23156
|
label: "List View"
|
|
@@ -23146,7 +23164,7 @@ var ry = [
|
|
|
23146
23164
|
label: "Form"
|
|
23147
23165
|
}
|
|
23148
23166
|
];
|
|
23149
|
-
function
|
|
23167
|
+
function ry({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
23150
23168
|
let i = useRef(null), [a, s] = o(!1), [c, l] = o(!1);
|
|
23151
23169
|
function u(e) {
|
|
23152
23170
|
i.current = t, e.dataTransfer.effectAllowed = "move", l(!0);
|
|
@@ -23210,7 +23228,7 @@ function ay({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
|
23210
23228
|
]
|
|
23211
23229
|
});
|
|
23212
23230
|
}
|
|
23213
|
-
function
|
|
23231
|
+
function iy({ role: e, configType: t }) {
|
|
23214
23232
|
let [n, i] = o({}), [a, s] = o(!1), [c, l] = o({}), [u, d] = o("job");
|
|
23215
23233
|
r(() => {
|
|
23216
23234
|
e && (s(!0), vo(e, t).then(i).catch(() => G.error("Failed to load field config")).finally(() => s(!1)));
|
|
@@ -23261,7 +23279,7 @@ function oy({ role: e, configType: t }) {
|
|
|
23261
23279
|
size: "small",
|
|
23262
23280
|
activeKey: u,
|
|
23263
23281
|
onChange: d,
|
|
23264
|
-
items:
|
|
23282
|
+
items: ty.map((e) => ({
|
|
23265
23283
|
key: e.key,
|
|
23266
23284
|
label: e.label
|
|
23267
23285
|
}))
|
|
@@ -23290,7 +23308,7 @@ function oy({ role: e, configType: t }) {
|
|
|
23290
23308
|
children: [p.length === 0 && !a && /* @__PURE__ */ q("div", {
|
|
23291
23309
|
className: "uss-empty",
|
|
23292
23310
|
children: "No fields found for this module."
|
|
23293
|
-
}), p.map((e, t) => /* @__PURE__ */ q(
|
|
23311
|
+
}), p.map((e, t) => /* @__PURE__ */ q(ry, {
|
|
23294
23312
|
field: e,
|
|
23295
23313
|
index: t,
|
|
23296
23314
|
onToggle: h,
|
|
@@ -23304,13 +23322,13 @@ function oy({ role: e, configType: t }) {
|
|
|
23304
23322
|
size: "small",
|
|
23305
23323
|
loading: c[u],
|
|
23306
23324
|
onClick: _,
|
|
23307
|
-
children: ["Save ",
|
|
23325
|
+
children: ["Save ", ty.find((e) => e.key === u)?.label]
|
|
23308
23326
|
})
|
|
23309
23327
|
})
|
|
23310
23328
|
]
|
|
23311
23329
|
});
|
|
23312
23330
|
}
|
|
23313
|
-
function
|
|
23331
|
+
function ay() {
|
|
23314
23332
|
let [e, t] = o(null), [i, a] = o(!1), [s, c] = o("listView"), [l, u] = o([]), [d, p] = o(0), [m, h] = o(!1), g = n(async () => {
|
|
23315
23333
|
h(!0);
|
|
23316
23334
|
try {
|
|
@@ -23397,13 +23415,13 @@ function sy() {
|
|
|
23397
23415
|
style: { marginBottom: 12 },
|
|
23398
23416
|
children: /* @__PURE__ */ q("div", {
|
|
23399
23417
|
className: "uss-config-toggle",
|
|
23400
|
-
children:
|
|
23418
|
+
children: ny.map((e) => /* @__PURE__ */ q("button", {
|
|
23401
23419
|
className: `uss-config-btn${s === e.key ? " active" : ""}`,
|
|
23402
23420
|
onClick: () => c(e.key),
|
|
23403
23421
|
children: e.label
|
|
23404
23422
|
}, e.key))
|
|
23405
23423
|
})
|
|
23406
|
-
}), e && /* @__PURE__ */ q(
|
|
23424
|
+
}), e && /* @__PURE__ */ q(iy, {
|
|
23407
23425
|
role: e,
|
|
23408
23426
|
configType: s
|
|
23409
23427
|
}, `${e?.roleId}-${s}`)]
|
|
@@ -23411,12 +23429,12 @@ function sy() {
|
|
|
23411
23429
|
}
|
|
23412
23430
|
//#endregion
|
|
23413
23431
|
//#region src/pages/Modules/Admin/PermissionsPage.jsx
|
|
23414
|
-
var
|
|
23432
|
+
var oy = [
|
|
23415
23433
|
"view",
|
|
23416
23434
|
"add",
|
|
23417
23435
|
"edit",
|
|
23418
23436
|
"delete"
|
|
23419
|
-
],
|
|
23437
|
+
], sy = {
|
|
23420
23438
|
view: "View",
|
|
23421
23439
|
add: "Add",
|
|
23422
23440
|
edit: "Edit",
|
|
@@ -23428,18 +23446,18 @@ var cy = [
|
|
|
23428
23446
|
my_jobs: "My Jobs",
|
|
23429
23447
|
all_jobs: "All Jobs"
|
|
23430
23448
|
};
|
|
23431
|
-
function
|
|
23432
|
-
return
|
|
23449
|
+
function cy(e) {
|
|
23450
|
+
return sy[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
23433
23451
|
}
|
|
23434
|
-
function
|
|
23435
|
-
let t =
|
|
23452
|
+
function ly(e) {
|
|
23453
|
+
let t = oy.filter((t) => e.includes(t)), n = e.filter((e) => !oy.includes(e)).sort();
|
|
23436
23454
|
return [...t, ...n];
|
|
23437
23455
|
}
|
|
23438
|
-
function
|
|
23456
|
+
function uy(e) {
|
|
23439
23457
|
let t = /* @__PURE__ */ new Set();
|
|
23440
|
-
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))),
|
|
23458
|
+
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), ly([...t]);
|
|
23441
23459
|
}
|
|
23442
|
-
function
|
|
23460
|
+
function dy(e) {
|
|
23443
23461
|
let t = 0, n = 0;
|
|
23444
23462
|
return Object.values(e).forEach(({ permissions: e }) => {
|
|
23445
23463
|
Object.values(e ?? {}).forEach(({ value: e }) => {
|
|
@@ -23450,20 +23468,20 @@ function py(e) {
|
|
|
23450
23468
|
total: n
|
|
23451
23469
|
};
|
|
23452
23470
|
}
|
|
23453
|
-
var
|
|
23454
|
-
function
|
|
23471
|
+
var fy = "perm-module-labels", py = "perm-action-labels";
|
|
23472
|
+
function my(e) {
|
|
23455
23473
|
try {
|
|
23456
23474
|
return JSON.parse(localStorage.getItem(e) ?? "{}");
|
|
23457
23475
|
} catch {
|
|
23458
23476
|
return {};
|
|
23459
23477
|
}
|
|
23460
23478
|
}
|
|
23461
|
-
function
|
|
23479
|
+
function hy(e, t) {
|
|
23462
23480
|
try {
|
|
23463
23481
|
localStorage.setItem(e, JSON.stringify(t));
|
|
23464
23482
|
} catch {}
|
|
23465
23483
|
}
|
|
23466
|
-
function
|
|
23484
|
+
function gy({ value: e, onSave: t, className: n }) {
|
|
23467
23485
|
let [i, a] = o(!1), [s, c] = o(e);
|
|
23468
23486
|
r(() => {
|
|
23469
23487
|
c(e);
|
|
@@ -23492,7 +23510,7 @@ function vy({ value: e, onSave: t, className: n }) {
|
|
|
23492
23510
|
children: [e, /* @__PURE__ */ q(je, { className: "perm-name-edit-icon" })]
|
|
23493
23511
|
});
|
|
23494
23512
|
}
|
|
23495
|
-
function
|
|
23513
|
+
function _y({ permKey: e, entry: t, label: n, onToggle: i, onLabelSave: a }) {
|
|
23496
23514
|
let [s, c] = o(!1), [l, u] = o(n), d = t?.value === "1", f = !!t;
|
|
23497
23515
|
r(() => {
|
|
23498
23516
|
u(n);
|
|
@@ -23534,13 +23552,13 @@ function yy({ permKey: e, entry: t, label: n, onToggle: i, onLabelSave: a }) {
|
|
|
23534
23552
|
})
|
|
23535
23553
|
});
|
|
23536
23554
|
}
|
|
23537
|
-
function
|
|
23555
|
+
function vy({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
|
|
23538
23556
|
let c = t?.permissions ?? {}, l = Object.values(c).filter((e) => e?.value === "1").length, u = Object.keys(c).length, d = u > 0 && l === u;
|
|
23539
23557
|
return /* @__PURE__ */ J("div", {
|
|
23540
23558
|
className: `perm-module-card${d ? " all-on" : l > 0 && !d ? " some-on" : ""}`,
|
|
23541
23559
|
children: [/* @__PURE__ */ J("div", {
|
|
23542
23560
|
className: "perm-module-card-header",
|
|
23543
|
-
children: [/* @__PURE__ */ q(
|
|
23561
|
+
children: [/* @__PURE__ */ q(gy, {
|
|
23544
23562
|
value: i,
|
|
23545
23563
|
onSave: (t) => o(e, t),
|
|
23546
23564
|
className: "perm-module-card-name"
|
|
@@ -23554,17 +23572,17 @@ function by({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
|
|
|
23554
23572
|
})]
|
|
23555
23573
|
}), /* @__PURE__ */ q("div", {
|
|
23556
23574
|
className: "perm-module-card-body",
|
|
23557
|
-
children: n.map((t) => /* @__PURE__ */ q(
|
|
23575
|
+
children: n.map((t) => /* @__PURE__ */ q(_y, {
|
|
23558
23576
|
permKey: t,
|
|
23559
23577
|
entry: c[t],
|
|
23560
|
-
label: a[t] ??
|
|
23578
|
+
label: a[t] ?? cy(t),
|
|
23561
23579
|
onToggle: () => r(e, t),
|
|
23562
23580
|
onLabelSave: (e) => s(t, e)
|
|
23563
23581
|
}, t))
|
|
23564
23582
|
})]
|
|
23565
23583
|
});
|
|
23566
23584
|
}
|
|
23567
|
-
function
|
|
23585
|
+
function yy({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
23568
23586
|
let [i, a] = o(!1), [s, c] = o(e);
|
|
23569
23587
|
function l() {
|
|
23570
23588
|
a(!1);
|
|
@@ -23615,7 +23633,7 @@ function xy({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
|
23615
23633
|
})]
|
|
23616
23634
|
});
|
|
23617
23635
|
}
|
|
23618
|
-
function
|
|
23636
|
+
function by({ open: e, onClose: t }) {
|
|
23619
23637
|
let [n, i] = o("modules"), [a, s] = o([]), [c, l] = o(!1), [u, d] = o(""), [p, m] = o(!1), [h, g] = o([]), [_, v] = o(!1), [y, b] = o(""), [x, S] = o(""), [C, T] = o(!1);
|
|
23620
23638
|
r(() => {
|
|
23621
23639
|
e && (E(), D());
|
|
@@ -23737,7 +23755,7 @@ function Sy({ open: e, onClose: t }) {
|
|
|
23737
23755
|
className: "perm-empty",
|
|
23738
23756
|
style: { paddingTop: 24 },
|
|
23739
23757
|
children: "No modules found"
|
|
23740
|
-
}), a.map((e) => /* @__PURE__ */ q(
|
|
23758
|
+
}), a.map((e) => /* @__PURE__ */ q(yy, {
|
|
23741
23759
|
label: e.MENUNAME,
|
|
23742
23760
|
onSave: (t) => A(e.MENUID, t),
|
|
23743
23761
|
onDelete: () => j(e.MENUID)
|
|
@@ -23782,7 +23800,7 @@ function Sy({ open: e, onClose: t }) {
|
|
|
23782
23800
|
className: "perm-empty",
|
|
23783
23801
|
style: { paddingTop: 24 },
|
|
23784
23802
|
children: "No actions found"
|
|
23785
|
-
}), h.map((e) => /* @__PURE__ */ q(
|
|
23803
|
+
}), h.map((e) => /* @__PURE__ */ q(yy, {
|
|
23786
23804
|
label: `${e.permissionName} (${e.permissionKey})`,
|
|
23787
23805
|
onSave: (t) => ee(e.permissionId, t),
|
|
23788
23806
|
onDelete: () => N(e.permissionId)
|
|
@@ -23812,7 +23830,7 @@ function Sy({ open: e, onClose: t }) {
|
|
|
23812
23830
|
})
|
|
23813
23831
|
});
|
|
23814
23832
|
}
|
|
23815
|
-
function
|
|
23833
|
+
function xy({ role: e, moduleLabels: t, actionLabels: n, onModuleLabelSave: a, onActionLabelSave: s }) {
|
|
23816
23834
|
let [c, l] = o({}), [u, d] = o({}), [p, m] = o(!1), [h, g] = o(!1), [_, v] = o(!1), y = uo(e);
|
|
23817
23835
|
r(() => {
|
|
23818
23836
|
y && (m(!0), v(!1), Ho(y).then((e) => {
|
|
@@ -23853,7 +23871,7 @@ function Cy({ role: e, moduleLabels: t, actionLabels: n, onModuleLabelSave: a, o
|
|
|
23853
23871
|
g(!1);
|
|
23854
23872
|
}
|
|
23855
23873
|
}
|
|
23856
|
-
let S = i(() => Object.keys(u).sort(), [u]), C = i(() =>
|
|
23874
|
+
let S = i(() => Object.keys(u).sort(), [u]), C = i(() => uy(u), [u]), { enabled: w, total: T } = i(() => dy(u), [u]);
|
|
23857
23875
|
return /* @__PURE__ */ J(z, {
|
|
23858
23876
|
spinning: p,
|
|
23859
23877
|
children: [
|
|
@@ -23904,7 +23922,7 @@ function Cy({ role: e, moduleLabels: t, actionLabels: n, onModuleLabelSave: a, o
|
|
|
23904
23922
|
children: "No permission entries found for this role."
|
|
23905
23923
|
}) : /* @__PURE__ */ q("div", {
|
|
23906
23924
|
className: "perm-cards-grid",
|
|
23907
|
-
children: S.map((e) => /* @__PURE__ */ q(
|
|
23925
|
+
children: S.map((e) => /* @__PURE__ */ q(vy, {
|
|
23908
23926
|
menuName: e,
|
|
23909
23927
|
menuData: u[e],
|
|
23910
23928
|
permKeys: C,
|
|
@@ -23918,14 +23936,14 @@ function Cy({ role: e, moduleLabels: t, actionLabels: n, onModuleLabelSave: a, o
|
|
|
23918
23936
|
]
|
|
23919
23937
|
});
|
|
23920
23938
|
}
|
|
23921
|
-
function
|
|
23922
|
-
let [e, t] = o([]), [a, s] = o(!1), [c, l] = o(null), [u, d] = o(""), [p, m] = o(!1), [h, g] = o(() =>
|
|
23939
|
+
function Sy() {
|
|
23940
|
+
let [e, t] = o([]), [a, s] = o(!1), [c, l] = o(null), [u, d] = o(""), [p, m] = o(!1), [h, g] = o(() => my(fy)), [_, v] = o(() => my(py)), y = n((e, t) => {
|
|
23923
23941
|
g((n) => {
|
|
23924
23942
|
let r = {
|
|
23925
23943
|
...n,
|
|
23926
23944
|
[e]: t
|
|
23927
23945
|
};
|
|
23928
|
-
return
|
|
23946
|
+
return hy(fy, r), r;
|
|
23929
23947
|
});
|
|
23930
23948
|
}, []), b = n((e, t) => {
|
|
23931
23949
|
v((n) => {
|
|
@@ -23933,11 +23951,11 @@ function wy() {
|
|
|
23933
23951
|
...n,
|
|
23934
23952
|
[e]: t
|
|
23935
23953
|
};
|
|
23936
|
-
return
|
|
23954
|
+
return hy(py, r), r;
|
|
23937
23955
|
});
|
|
23938
23956
|
}, []);
|
|
23939
23957
|
function x() {
|
|
23940
|
-
g({}), v({}),
|
|
23958
|
+
g({}), v({}), hy(fy, {}), hy(py, {}), G.success("Labels reset to defaults");
|
|
23941
23959
|
}
|
|
23942
23960
|
let S = n(async () => {
|
|
23943
23961
|
s(!0);
|
|
@@ -24021,7 +24039,7 @@ function wy() {
|
|
|
24021
24039
|
})]
|
|
24022
24040
|
}),
|
|
24023
24041
|
bodyStyle: { padding: "12px 16px" },
|
|
24024
|
-
children: c ? /* @__PURE__ */ q(
|
|
24042
|
+
children: c ? /* @__PURE__ */ q(xy, {
|
|
24025
24043
|
role: c,
|
|
24026
24044
|
moduleLabels: h,
|
|
24027
24045
|
actionLabels: _,
|
|
@@ -24032,7 +24050,7 @@ function wy() {
|
|
|
24032
24050
|
children: "Select a role from the left to manage its permissions."
|
|
24033
24051
|
})
|
|
24034
24052
|
}),
|
|
24035
|
-
/* @__PURE__ */ q(
|
|
24053
|
+
/* @__PURE__ */ q(by, {
|
|
24036
24054
|
open: p,
|
|
24037
24055
|
onClose: () => m(!1)
|
|
24038
24056
|
})
|
|
@@ -24041,7 +24059,7 @@ function wy() {
|
|
|
24041
24059
|
}
|
|
24042
24060
|
//#endregion
|
|
24043
24061
|
//#region src/components/cards/OnboardingCard.jsx
|
|
24044
|
-
var { Title:
|
|
24062
|
+
var { Title: Cy, Text: wy } = U, Ty = [
|
|
24045
24063
|
{
|
|
24046
24064
|
label: "In Progress",
|
|
24047
24065
|
value: 107,
|
|
@@ -24067,10 +24085,10 @@ var { Title: Ty, Text: Ey } = U, Dy = [
|
|
|
24067
24085
|
color: "peach"
|
|
24068
24086
|
}
|
|
24069
24087
|
];
|
|
24070
|
-
function
|
|
24088
|
+
function Ey({ items: e = Ty }) {
|
|
24071
24089
|
return /* @__PURE__ */ q(p, {
|
|
24072
24090
|
className: "onboarding-card",
|
|
24073
|
-
title: /* @__PURE__ */ q(
|
|
24091
|
+
title: /* @__PURE__ */ q(Cy, {
|
|
24074
24092
|
level: 5,
|
|
24075
24093
|
children: "Onboarding"
|
|
24076
24094
|
}),
|
|
@@ -24089,7 +24107,7 @@ function Oy({ items: e = Dy }) {
|
|
|
24089
24107
|
children: /* @__PURE__ */ J("div", {
|
|
24090
24108
|
className: `onboarding-item ${e.color}`,
|
|
24091
24109
|
children: [
|
|
24092
|
-
/* @__PURE__ */ q(
|
|
24110
|
+
/* @__PURE__ */ q(wy, {
|
|
24093
24111
|
className: "onboarding-item-label",
|
|
24094
24112
|
children: e.label
|
|
24095
24113
|
}),
|
|
@@ -24099,7 +24117,7 @@ function Oy({ items: e = Dy }) {
|
|
|
24099
24117
|
}),
|
|
24100
24118
|
/* @__PURE__ */ q("div", {
|
|
24101
24119
|
className: "onboarding-item-footer",
|
|
24102
|
-
children: /* @__PURE__ */ q(
|
|
24120
|
+
children: /* @__PURE__ */ q(wy, {
|
|
24103
24121
|
className: "onboarding-item-sub",
|
|
24104
24122
|
children: e.sub
|
|
24105
24123
|
})
|
|
@@ -24112,7 +24130,7 @@ function Oy({ items: e = Dy }) {
|
|
|
24112
24130
|
}
|
|
24113
24131
|
//#endregion
|
|
24114
24132
|
//#region src/pages/Modules/AdminPage.jsx
|
|
24115
|
-
var { Text:
|
|
24133
|
+
var { Text: Dy, Title: Oy } = U, ky = [
|
|
24116
24134
|
{
|
|
24117
24135
|
group: "Dashboard",
|
|
24118
24136
|
items: [{
|
|
@@ -24327,7 +24345,7 @@ var { Text: ky, Title: Ay } = U, jy = [
|
|
|
24327
24345
|
}
|
|
24328
24346
|
]
|
|
24329
24347
|
}
|
|
24330
|
-
],
|
|
24348
|
+
], Ay = [
|
|
24331
24349
|
{
|
|
24332
24350
|
label: "Sourced",
|
|
24333
24351
|
count: 312,
|
|
@@ -24358,7 +24376,7 @@ var { Text: ky, Title: Ay } = U, jy = [
|
|
|
24358
24376
|
color: "#E24B4A",
|
|
24359
24377
|
pct: 10
|
|
24360
24378
|
}
|
|
24361
|
-
],
|
|
24379
|
+
], jy = [
|
|
24362
24380
|
{
|
|
24363
24381
|
name: "Tcs",
|
|
24364
24382
|
jobs: 14,
|
|
@@ -24379,7 +24397,7 @@ var { Text: ky, Title: Ay } = U, jy = [
|
|
|
24379
24397
|
jobs: 5,
|
|
24380
24398
|
candidates: 38
|
|
24381
24399
|
}
|
|
24382
|
-
],
|
|
24400
|
+
], My = [
|
|
24383
24401
|
{
|
|
24384
24402
|
text: "New candidate Ravi Kumar added to Java Developer role",
|
|
24385
24403
|
time: "2 min ago",
|
|
@@ -24406,7 +24424,7 @@ var { Text: ky, Title: Ay } = U, jy = [
|
|
|
24406
24424
|
color: "#E24B4A"
|
|
24407
24425
|
}
|
|
24408
24426
|
];
|
|
24409
|
-
function
|
|
24427
|
+
function Ny() {
|
|
24410
24428
|
return /* @__PURE__ */ J("div", {
|
|
24411
24429
|
style: {
|
|
24412
24430
|
display: "flex",
|
|
@@ -24419,11 +24437,11 @@ function Fy() {
|
|
|
24419
24437
|
title: "Admin Dashboard",
|
|
24420
24438
|
children: [
|
|
24421
24439
|
/* @__PURE__ */ q("div", { className: "admin-accent-bar" }),
|
|
24422
|
-
/* @__PURE__ */ q(
|
|
24440
|
+
/* @__PURE__ */ q(Oy, {
|
|
24423
24441
|
level: 5,
|
|
24424
24442
|
children: "Admin Dashboard"
|
|
24425
24443
|
}),
|
|
24426
|
-
/* @__PURE__ */ q(
|
|
24444
|
+
/* @__PURE__ */ q(Dy, {
|
|
24427
24445
|
type: "secondary",
|
|
24428
24446
|
children: "Overview of jobs, candidates, onboarding and recent activity"
|
|
24429
24447
|
})
|
|
@@ -24431,7 +24449,7 @@ function Fy() {
|
|
|
24431
24449
|
}),
|
|
24432
24450
|
/* @__PURE__ */ q("div", {
|
|
24433
24451
|
className: "admin-dashboard-stats",
|
|
24434
|
-
children: /* @__PURE__ */ q(
|
|
24452
|
+
children: /* @__PURE__ */ q(p_, { stats: [
|
|
24435
24453
|
{
|
|
24436
24454
|
label: "Total Jobs",
|
|
24437
24455
|
value: 1697,
|
|
@@ -24461,18 +24479,18 @@ function Fy() {
|
|
|
24461
24479
|
}),
|
|
24462
24480
|
/* @__PURE__ */ J("div", {
|
|
24463
24481
|
className: "admin-dashboard-mid-row",
|
|
24464
|
-
children: [/* @__PURE__ */ q(
|
|
24482
|
+
children: [/* @__PURE__ */ q(Ey, {}), /* @__PURE__ */ J(Ks, {
|
|
24465
24483
|
icon: /* @__PURE__ */ q(le, {}),
|
|
24466
24484
|
title: "Candidate Pipeline",
|
|
24467
24485
|
children: [
|
|
24468
|
-
/* @__PURE__ */ q(
|
|
24486
|
+
/* @__PURE__ */ q(Dy, {
|
|
24469
24487
|
type: "secondary",
|
|
24470
24488
|
style: { fontSize: 12 },
|
|
24471
24489
|
children: "By stage (892 total)"
|
|
24472
24490
|
}),
|
|
24473
24491
|
/* @__PURE__ */ q("div", {
|
|
24474
24492
|
className: "admin-pipeline-bar",
|
|
24475
|
-
children:
|
|
24493
|
+
children: Ay.map((e) => /* @__PURE__ */ q("div", {
|
|
24476
24494
|
className: "admin-pipeline-seg",
|
|
24477
24495
|
style: {
|
|
24478
24496
|
width: `${e.pct}%`,
|
|
@@ -24482,7 +24500,7 @@ function Fy() {
|
|
|
24482
24500
|
}),
|
|
24483
24501
|
/* @__PURE__ */ q("div", {
|
|
24484
24502
|
className: "admin-pipeline-legend",
|
|
24485
|
-
children:
|
|
24503
|
+
children: Ay.map((e) => /* @__PURE__ */ J("div", {
|
|
24486
24504
|
className: "admin-pipeline-legend-item",
|
|
24487
24505
|
children: [
|
|
24488
24506
|
/* @__PURE__ */ q("span", {
|
|
@@ -24496,7 +24514,7 @@ function Fy() {
|
|
|
24496
24514
|
}, e.label))
|
|
24497
24515
|
}),
|
|
24498
24516
|
/* @__PURE__ */ q("div", { className: "admin-divider" }),
|
|
24499
|
-
/* @__PURE__ */ q(
|
|
24517
|
+
/* @__PURE__ */ q(Dy, {
|
|
24500
24518
|
strong: !0,
|
|
24501
24519
|
style: { fontSize: 12 },
|
|
24502
24520
|
children: "Submission status"
|
|
@@ -24507,7 +24525,7 @@ function Fy() {
|
|
|
24507
24525
|
children: [
|
|
24508
24526
|
/* @__PURE__ */ J("div", {
|
|
24509
24527
|
className: "admin-sub-status-item",
|
|
24510
|
-
children: [/* @__PURE__ */ q(
|
|
24528
|
+
children: [/* @__PURE__ */ q(Dy, {
|
|
24511
24529
|
style: { fontSize: 13 },
|
|
24512
24530
|
children: "Pending client review"
|
|
24513
24531
|
}), /* @__PURE__ */ q("span", {
|
|
@@ -24517,7 +24535,7 @@ function Fy() {
|
|
|
24517
24535
|
}),
|
|
24518
24536
|
/* @__PURE__ */ J("div", {
|
|
24519
24537
|
className: "admin-sub-status-item",
|
|
24520
|
-
children: [/* @__PURE__ */ q(
|
|
24538
|
+
children: [/* @__PURE__ */ q(Dy, {
|
|
24521
24539
|
style: { fontSize: 13 },
|
|
24522
24540
|
children: "Client approved"
|
|
24523
24541
|
}), /* @__PURE__ */ q("span", {
|
|
@@ -24527,7 +24545,7 @@ function Fy() {
|
|
|
24527
24545
|
}),
|
|
24528
24546
|
/* @__PURE__ */ J("div", {
|
|
24529
24547
|
className: "admin-sub-status-item",
|
|
24530
|
-
children: [/* @__PURE__ */ q(
|
|
24548
|
+
children: [/* @__PURE__ */ q(Dy, {
|
|
24531
24549
|
style: { fontSize: 13 },
|
|
24532
24550
|
children: "Rejected"
|
|
24533
24551
|
}), /* @__PURE__ */ q("span", {
|
|
@@ -24550,7 +24568,7 @@ function Fy() {
|
|
|
24550
24568
|
size: "small",
|
|
24551
24569
|
children: "View all"
|
|
24552
24570
|
}),
|
|
24553
|
-
children:
|
|
24571
|
+
children: jy.map((e) => /* @__PURE__ */ J("div", {
|
|
24554
24572
|
className: "admin-client-row",
|
|
24555
24573
|
children: [/* @__PURE__ */ J("div", {
|
|
24556
24574
|
className: "admin-client-left",
|
|
@@ -24578,7 +24596,7 @@ function Fy() {
|
|
|
24578
24596
|
}), /* @__PURE__ */ q(Ks, {
|
|
24579
24597
|
icon: /* @__PURE__ */ q(pe, {}),
|
|
24580
24598
|
title: "Recent Activity",
|
|
24581
|
-
children:
|
|
24599
|
+
children: My.map((e, t) => /* @__PURE__ */ J("div", {
|
|
24582
24600
|
className: "admin-activity-row",
|
|
24583
24601
|
children: [/* @__PURE__ */ q("div", {
|
|
24584
24602
|
className: "admin-activity-dot",
|
|
@@ -24606,7 +24624,7 @@ function Fy() {
|
|
|
24606
24624
|
children: [
|
|
24607
24625
|
/* @__PURE__ */ J(h, {
|
|
24608
24626
|
span: 8,
|
|
24609
|
-
children: [/* @__PURE__ */ q(
|
|
24627
|
+
children: [/* @__PURE__ */ q(Dy, {
|
|
24610
24628
|
type: "secondary",
|
|
24611
24629
|
style: {
|
|
24612
24630
|
fontSize: 12,
|
|
@@ -24619,7 +24637,7 @@ function Fy() {
|
|
|
24619
24637
|
["Templates", 2]
|
|
24620
24638
|
].map(([e, t]) => /* @__PURE__ */ J("div", {
|
|
24621
24639
|
className: "admin-cfg-overview-row",
|
|
24622
|
-
children: [/* @__PURE__ */ q(
|
|
24640
|
+
children: [/* @__PURE__ */ q(Dy, {
|
|
24623
24641
|
style: { fontSize: 12 },
|
|
24624
24642
|
children: e
|
|
24625
24643
|
}), /* @__PURE__ */ J("span", {
|
|
@@ -24630,7 +24648,7 @@ function Fy() {
|
|
|
24630
24648
|
}),
|
|
24631
24649
|
/* @__PURE__ */ J(h, {
|
|
24632
24650
|
span: 8,
|
|
24633
|
-
children: [/* @__PURE__ */ q(
|
|
24651
|
+
children: [/* @__PURE__ */ q(Dy, {
|
|
24634
24652
|
type: "secondary",
|
|
24635
24653
|
style: {
|
|
24636
24654
|
fontSize: 12,
|
|
@@ -24643,7 +24661,7 @@ function Fy() {
|
|
|
24643
24661
|
["Submissions", 2]
|
|
24644
24662
|
].map(([e, t]) => /* @__PURE__ */ J("div", {
|
|
24645
24663
|
className: "admin-cfg-overview-row",
|
|
24646
|
-
children: [/* @__PURE__ */ q(
|
|
24664
|
+
children: [/* @__PURE__ */ q(Dy, {
|
|
24647
24665
|
style: { fontSize: 12 },
|
|
24648
24666
|
children: e
|
|
24649
24667
|
}), /* @__PURE__ */ J("span", {
|
|
@@ -24654,7 +24672,7 @@ function Fy() {
|
|
|
24654
24672
|
}),
|
|
24655
24673
|
/* @__PURE__ */ J(h, {
|
|
24656
24674
|
span: 8,
|
|
24657
|
-
children: [/* @__PURE__ */ q(
|
|
24675
|
+
children: [/* @__PURE__ */ q(Dy, {
|
|
24658
24676
|
type: "secondary",
|
|
24659
24677
|
style: {
|
|
24660
24678
|
fontSize: 12,
|
|
@@ -24667,10 +24685,10 @@ function Fy() {
|
|
|
24667
24685
|
["Config Items", 19]
|
|
24668
24686
|
].map(([e, t]) => /* @__PURE__ */ J("div", {
|
|
24669
24687
|
className: "admin-cfg-overview-row",
|
|
24670
|
-
children: [/* @__PURE__ */ q(
|
|
24688
|
+
children: [/* @__PURE__ */ q(Dy, {
|
|
24671
24689
|
style: { fontSize: 12 },
|
|
24672
24690
|
children: e
|
|
24673
|
-
}), /* @__PURE__ */ q(
|
|
24691
|
+
}), /* @__PURE__ */ q(Dy, {
|
|
24674
24692
|
strong: !0,
|
|
24675
24693
|
style: { fontSize: 12 },
|
|
24676
24694
|
children: t
|
|
@@ -24683,7 +24701,7 @@ function Fy() {
|
|
|
24683
24701
|
]
|
|
24684
24702
|
});
|
|
24685
24703
|
}
|
|
24686
|
-
function
|
|
24704
|
+
function Py({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
|
|
24687
24705
|
return /* @__PURE__ */ J(F, {
|
|
24688
24706
|
gutter: [16, 16],
|
|
24689
24707
|
children: [
|
|
@@ -24702,11 +24720,11 @@ function Iy({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
24702
24720
|
}),
|
|
24703
24721
|
children: [
|
|
24704
24722
|
/* @__PURE__ */ q("div", { className: "admin-accent-bar" }),
|
|
24705
|
-
/* @__PURE__ */ q(
|
|
24723
|
+
/* @__PURE__ */ q(Oy, {
|
|
24706
24724
|
level: 5,
|
|
24707
24725
|
children: e?.heading
|
|
24708
24726
|
}),
|
|
24709
|
-
/* @__PURE__ */ q(
|
|
24727
|
+
/* @__PURE__ */ q(Dy, {
|
|
24710
24728
|
type: "secondary",
|
|
24711
24729
|
children: e?.desc
|
|
24712
24730
|
})
|
|
@@ -24720,7 +24738,7 @@ function Iy({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
24720
24738
|
children: /* @__PURE__ */ q(Ks, {
|
|
24721
24739
|
icon: /* @__PURE__ */ q(le, {}),
|
|
24722
24740
|
title: "Configuration Items",
|
|
24723
|
-
extra: /* @__PURE__ */ J(
|
|
24741
|
+
extra: /* @__PURE__ */ J(Dy, {
|
|
24724
24742
|
type: "secondary",
|
|
24725
24743
|
children: [
|
|
24726
24744
|
n.length,
|
|
@@ -24787,7 +24805,7 @@ function Iy({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
24787
24805
|
title: "Section Overview",
|
|
24788
24806
|
children: [/* @__PURE__ */ q("div", {
|
|
24789
24807
|
className: "admin-overview-list",
|
|
24790
|
-
children:
|
|
24808
|
+
children: ky.filter((e) => e.group !== "Dashboard").map((e) => {
|
|
24791
24809
|
let n = e.group === t?.group;
|
|
24792
24810
|
return /* @__PURE__ */ J("div", {
|
|
24793
24811
|
className: `admin-overview-item${n ? " active" : ""}`,
|
|
@@ -24835,12 +24853,12 @@ function Iy({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
24835
24853
|
]
|
|
24836
24854
|
});
|
|
24837
24855
|
}
|
|
24838
|
-
function
|
|
24839
|
-
let [e, t] = o("dashboard"), [n, r] = o(""), a = i(() =>
|
|
24856
|
+
function Fy() {
|
|
24857
|
+
let [e, t] = o("dashboard"), [n, r] = o(""), a = i(() => ky.flatMap((e) => e.items), []), s = i(() => a.find((t) => t.id === e), [a, e]), c = i(() => ky.find((t) => t.items.some((t) => t.id === e)), [e]), l = i(() => {
|
|
24840
24858
|
if (!s?.cards) return [];
|
|
24841
24859
|
let e = n.trim().toLowerCase();
|
|
24842
24860
|
return e ? s.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : s.cards;
|
|
24843
|
-
}, [s, n]), u = i(() =>
|
|
24861
|
+
}, [s, n]), u = i(() => ky.map((e) => ({
|
|
24844
24862
|
key: e.group,
|
|
24845
24863
|
type: "group",
|
|
24846
24864
|
label: e.group,
|
|
@@ -24889,7 +24907,7 @@ function Ly() {
|
|
|
24889
24907
|
children: "Groups"
|
|
24890
24908
|
}), /* @__PURE__ */ q("span", {
|
|
24891
24909
|
className: "admin-sidebar-pill-value",
|
|
24892
|
-
children:
|
|
24910
|
+
children: ky.length
|
|
24893
24911
|
})]
|
|
24894
24912
|
})
|
|
24895
24913
|
}), /* @__PURE__ */ q(h, {
|
|
@@ -24919,7 +24937,7 @@ function Ly() {
|
|
|
24919
24937
|
xs: 24,
|
|
24920
24938
|
lg: 18,
|
|
24921
24939
|
xl: 19,
|
|
24922
|
-
children: e === "dashboard" ? /* @__PURE__ */ q(
|
|
24940
|
+
children: e === "dashboard" ? /* @__PURE__ */ q(Ny, {}) : s?.component === "form-groups" ? /* @__PURE__ */ q(L_, {}) : s?.component === "detail-groups" ? /* @__PURE__ */ q(Q_, {}) : s?.component === "row-actions" ? /* @__PURE__ */ q(sv, {}) : s?.component === "action-rules" ? /* @__PURE__ */ q(xv, {}) : s?.component === "users" ? /* @__PURE__ */ q(Jv, {}) : s?.component === "teams" ? /* @__PURE__ */ q(ey, {}) : s?.component === "roles" ? /* @__PURE__ */ q(ay, {}) : s?.component === "permissions" ? /* @__PURE__ */ q(Sy, {}) : /* @__PURE__ */ q(Py, {
|
|
24923
24941
|
activeSection: s,
|
|
24924
24942
|
activeGroup: c,
|
|
24925
24943
|
filteredCards: l,
|
|
@@ -24934,14 +24952,14 @@ function Ly() {
|
|
|
24934
24952
|
}
|
|
24935
24953
|
//#endregion
|
|
24936
24954
|
//#region src/pages/Modules/Jobs/JobsListPage.jsx
|
|
24937
|
-
var
|
|
24955
|
+
var Iy = [{
|
|
24938
24956
|
label: "Home",
|
|
24939
24957
|
href: "/dashboard"
|
|
24940
24958
|
}, { label: "Jobs" }];
|
|
24941
|
-
function
|
|
24959
|
+
function Ly() {
|
|
24942
24960
|
return /* @__PURE__ */ q(Vp, {
|
|
24943
24961
|
moduleName: "job",
|
|
24944
|
-
breadcrumbItems:
|
|
24962
|
+
breadcrumbItems: Iy,
|
|
24945
24963
|
actions: [{
|
|
24946
24964
|
name: "Add Notes & Share",
|
|
24947
24965
|
route: "/popup/add-notes",
|
|
@@ -24951,7 +24969,7 @@ function zy() {
|
|
|
24951
24969
|
}
|
|
24952
24970
|
//#endregion
|
|
24953
24971
|
//#region src/pages/Modules/Jobs/JobDetailPage.jsx
|
|
24954
|
-
function
|
|
24972
|
+
function Ry() {
|
|
24955
24973
|
let [e, t] = o(null);
|
|
24956
24974
|
return /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(qi, { items: [
|
|
24957
24975
|
{
|
|
@@ -24971,8 +24989,8 @@ function By() {
|
|
|
24971
24989
|
}
|
|
24972
24990
|
//#endregion
|
|
24973
24991
|
//#region src/pages/stickyNotesFullPage.jsx
|
|
24974
|
-
var { Title:
|
|
24975
|
-
function
|
|
24992
|
+
var { Title: zy } = U;
|
|
24993
|
+
function By() {
|
|
24976
24994
|
let e = Vt(), { state: t } = Bt(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
|
|
24977
24995
|
...t?.request,
|
|
24978
24996
|
params: {
|
|
@@ -24997,7 +25015,7 @@ function Hy() {
|
|
|
24997
25015
|
}
|
|
24998
25016
|
//#endregion
|
|
24999
25017
|
//#region src/pages/BulkUpload/index.jsx
|
|
25000
|
-
var { Text:
|
|
25018
|
+
var { Text: Vy, Title: Hy } = U, Uy = 10 * 1024 * 1024, Wy = "/templates/test_cases_flow_template.base64.txt", Gy = "test_cases_flow_template.xlsx", Ky = "module | subModule | step_order | description | actions | key | value | expected | scenario", qy = {
|
|
25001
25019
|
idle: 0,
|
|
25002
25020
|
module_set: 1,
|
|
25003
25021
|
encoding: 1,
|
|
@@ -25006,7 +25024,7 @@ var { Text: Uy, Title: Wy } = U, Gy = 10 * 1024 * 1024, Ky = "/templates/test_ca
|
|
|
25006
25024
|
inserting: 3,
|
|
25007
25025
|
done: 4,
|
|
25008
25026
|
error: 1
|
|
25009
|
-
},
|
|
25027
|
+
}, Jy = [
|
|
25010
25028
|
{
|
|
25011
25029
|
label: "Home",
|
|
25012
25030
|
href: "/"
|
|
@@ -25020,31 +25038,31 @@ var { Text: Uy, Title: Wy } = U, Gy = 10 * 1024 * 1024, Ky = "/templates/test_ca
|
|
|
25020
25038
|
href: "/bulk-upload"
|
|
25021
25039
|
}
|
|
25022
25040
|
];
|
|
25023
|
-
function
|
|
25041
|
+
function Yy(e) {
|
|
25024
25042
|
return new Promise((t, n) => {
|
|
25025
25043
|
let r = new FileReader();
|
|
25026
25044
|
r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
|
|
25027
25045
|
});
|
|
25028
25046
|
}
|
|
25029
|
-
function
|
|
25047
|
+
function Xy(e) {
|
|
25030
25048
|
return e.filter((e) => e.row_status === "valid").map((e) => {
|
|
25031
25049
|
let t = { ...e };
|
|
25032
25050
|
return delete t.row_status, delete t.errors, t;
|
|
25033
25051
|
});
|
|
25034
25052
|
}
|
|
25035
|
-
function
|
|
25053
|
+
function Zy(e) {
|
|
25036
25054
|
return e.flatMap((e) => (e.errors ?? []).map((t) => ({
|
|
25037
25055
|
id: e.id,
|
|
25038
25056
|
...t
|
|
25039
25057
|
})));
|
|
25040
25058
|
}
|
|
25041
|
-
function
|
|
25059
|
+
function Qy({ errors: e }) {
|
|
25042
25060
|
return /* @__PURE__ */ q("div", {
|
|
25043
25061
|
className: "bulk-tooltip-errors",
|
|
25044
25062
|
children: (e ?? []).map((e, t) => /* @__PURE__ */ q("div", { children: e.message }, `${e.field}-${t}`))
|
|
25045
25063
|
});
|
|
25046
25064
|
}
|
|
25047
|
-
function
|
|
25065
|
+
function $y({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
25048
25066
|
return e.length === 0 ? null : /* @__PURE__ */ J("div", {
|
|
25049
25067
|
className: "bulk-error-banner",
|
|
25050
25068
|
children: [/* @__PURE__ */ J("div", {
|
|
@@ -25075,7 +25093,7 @@ function tb({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
|
25075
25093
|
})]
|
|
25076
25094
|
});
|
|
25077
25095
|
}
|
|
25078
|
-
function
|
|
25096
|
+
function eb({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
|
|
25079
25097
|
let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, d = c.length > 0 || a;
|
|
25080
25098
|
return /* @__PURE__ */ J(K, { children: [
|
|
25081
25099
|
/* @__PURE__ */ J(F, {
|
|
@@ -25091,7 +25109,7 @@ function nb({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
25091
25109
|
type: t === "errors" ? "primary" : "default",
|
|
25092
25110
|
onClick: () => n("errors"),
|
|
25093
25111
|
children: "Errors only"
|
|
25094
|
-
})] }) }), /* @__PURE__ */ q(h, { children: /* @__PURE__ */ J(
|
|
25112
|
+
})] }) }), /* @__PURE__ */ q(h, { children: /* @__PURE__ */ J(Vy, {
|
|
25095
25113
|
type: "secondary",
|
|
25096
25114
|
children: [e.length, " row(s)"]
|
|
25097
25115
|
}) })]
|
|
@@ -25163,7 +25181,7 @@ function nb({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
25163
25181
|
children: "Valid"
|
|
25164
25182
|
}) }),
|
|
25165
25183
|
/* @__PURE__ */ q("td", { children: n ? /* @__PURE__ */ q(H, {
|
|
25166
|
-
title: /* @__PURE__ */ q(
|
|
25184
|
+
title: /* @__PURE__ */ q(Qy, { errors: t }),
|
|
25167
25185
|
placement: "left",
|
|
25168
25186
|
children: /* @__PURE__ */ J("button", {
|
|
25169
25187
|
type: "button",
|
|
@@ -25200,11 +25218,11 @@ function nb({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
25200
25218
|
})
|
|
25201
25219
|
] });
|
|
25202
25220
|
}
|
|
25203
|
-
function
|
|
25221
|
+
function tb() {
|
|
25204
25222
|
let e = Vt(), t = i(() => An(), []), c = a(null), l = a(null), [u, d] = o([]), [m, g] = o(""), [_, v] = o("idle"), [y, b] = o(!1), [x, S] = o(null), [C, w] = o([]), [T, E] = o("all"), [D, O] = o(null), [k, A] = o(null), [j, M] = o(!1), N = u.map((e) => ({
|
|
25205
25223
|
value: e.modulename,
|
|
25206
25224
|
label: e.modulename
|
|
25207
|
-
})), P =
|
|
25225
|
+
})), P = Zy(C), L = _ === "encoding" || _ === "validating", z = !!m && !L, te = qy[_] ?? 0, ne = C.find((e) => e.row_status === "invalid")?.id, B = n(() => {
|
|
25208
25226
|
g(""), v("idle"), b(!1), S(null), w([]), E("all"), O(null), A(null), c.current && (c.current.value = "");
|
|
25209
25227
|
}, []);
|
|
25210
25228
|
r(() => {
|
|
@@ -25229,7 +25247,7 @@ function rb() {
|
|
|
25229
25247
|
v("module_set"), O({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
|
|
25230
25248
|
return;
|
|
25231
25249
|
}
|
|
25232
|
-
if (e.size >
|
|
25250
|
+
if (e.size > Uy) {
|
|
25233
25251
|
v("module_set"), O({ message: "File must be 10 MB or smaller." });
|
|
25234
25252
|
return;
|
|
25235
25253
|
}
|
|
@@ -25238,7 +25256,7 @@ function rb() {
|
|
|
25238
25256
|
size: e.size
|
|
25239
25257
|
}), v("encoding");
|
|
25240
25258
|
try {
|
|
25241
|
-
let r = await
|
|
25259
|
+
let r = await Yy(e);
|
|
25242
25260
|
v("validating"), w((await Vm({
|
|
25243
25261
|
filename: e.name,
|
|
25244
25262
|
project: t?.name ?? "",
|
|
@@ -25254,12 +25272,12 @@ function rb() {
|
|
|
25254
25272
|
}
|
|
25255
25273
|
}, V = async () => {
|
|
25256
25274
|
try {
|
|
25257
|
-
let e = await fetch(
|
|
25275
|
+
let e = await fetch(Wy);
|
|
25258
25276
|
if (!e.ok) throw Error(`Template file not found (${e.status})`);
|
|
25259
25277
|
let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
|
|
25260
25278
|
for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
|
|
25261
25279
|
let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
|
|
25262
|
-
o.href = a, o.download =
|
|
25280
|
+
o.href = a, o.download = Gy, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), G.success("Sample template downloaded.");
|
|
25263
25281
|
} catch (e) {
|
|
25264
25282
|
console.error(e), G.error("Unable to download sample template.");
|
|
25265
25283
|
}
|
|
@@ -25270,7 +25288,7 @@ function rb() {
|
|
|
25270
25288
|
project: t?.name ?? "",
|
|
25271
25289
|
module: m,
|
|
25272
25290
|
uploaded_by: localStorage.getItem("user_Email") ?? "",
|
|
25273
|
-
rows:
|
|
25291
|
+
rows: Xy(C)
|
|
25274
25292
|
})), v("done"), G.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
|
|
25275
25293
|
} catch (e) {
|
|
25276
25294
|
console.error(e), O(e.payload ?? {
|
|
@@ -25296,7 +25314,7 @@ function rb() {
|
|
|
25296
25314
|
align: "middle",
|
|
25297
25315
|
justify: "space-between",
|
|
25298
25316
|
className: "breadcrumb-action-wrapper",
|
|
25299
|
-
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items:
|
|
25317
|
+
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items: Jy }) }), t?.name && /* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(Vy, {
|
|
25300
25318
|
strong: !0,
|
|
25301
25319
|
children: t.name
|
|
25302
25320
|
}) })]
|
|
@@ -25305,16 +25323,16 @@ function rb() {
|
|
|
25305
25323
|
children: [
|
|
25306
25324
|
/* @__PURE__ */ J("div", {
|
|
25307
25325
|
className: "bulk-header",
|
|
25308
|
-
children: [/* @__PURE__ */ q(
|
|
25326
|
+
children: [/* @__PURE__ */ q(Hy, {
|
|
25309
25327
|
level: 3,
|
|
25310
25328
|
children: "Bulk upload test cases"
|
|
25311
25329
|
}), /* @__PURE__ */ J(R, {
|
|
25312
25330
|
direction: "vertical",
|
|
25313
25331
|
size: 4,
|
|
25314
|
-
children: [/* @__PURE__ */ q(
|
|
25332
|
+
children: [/* @__PURE__ */ q(Vy, {
|
|
25315
25333
|
type: "secondary",
|
|
25316
|
-
children:
|
|
25317
|
-
}), /* @__PURE__ */ q(
|
|
25334
|
+
children: Ky
|
|
25335
|
+
}), /* @__PURE__ */ q(Vy, {
|
|
25318
25336
|
type: "secondary",
|
|
25319
25337
|
children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
|
|
25320
25338
|
})]
|
|
@@ -25412,7 +25430,7 @@ function rb() {
|
|
|
25412
25430
|
className: "v1-card zt-fall",
|
|
25413
25431
|
title: "3. Validation result",
|
|
25414
25432
|
children: [
|
|
25415
|
-
/* @__PURE__ */ q(
|
|
25433
|
+
/* @__PURE__ */ q($y, {
|
|
25416
25434
|
errors: P,
|
|
25417
25435
|
expanded: j,
|
|
25418
25436
|
onToggle: () => M((e) => !e),
|
|
@@ -25424,7 +25442,7 @@ function rb() {
|
|
|
25424
25442
|
message: D.message,
|
|
25425
25443
|
className: "bulk-inline-alert"
|
|
25426
25444
|
}),
|
|
25427
|
-
/* @__PURE__ */ q(
|
|
25445
|
+
/* @__PURE__ */ q(eb, {
|
|
25428
25446
|
rows: C,
|
|
25429
25447
|
view: T,
|
|
25430
25448
|
onViewChange: E,
|
|
@@ -25447,17 +25465,17 @@ function rb() {
|
|
|
25447
25465
|
/* @__PURE__ */ q(h, {
|
|
25448
25466
|
xs: 24,
|
|
25449
25467
|
md: 8,
|
|
25450
|
-
children: /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
25468
|
+
children: /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(Vy, { children: "Total" }), /* @__PURE__ */ q("strong", { children: C.length })] })
|
|
25451
25469
|
}),
|
|
25452
25470
|
/* @__PURE__ */ q(h, {
|
|
25453
25471
|
xs: 24,
|
|
25454
25472
|
md: 8,
|
|
25455
|
-
children: /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
25473
|
+
children: /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(Vy, { children: "Inserted" }), /* @__PURE__ */ q("strong", { children: k.inserted ?? 0 })] })
|
|
25456
25474
|
}),
|
|
25457
25475
|
/* @__PURE__ */ q(h, {
|
|
25458
25476
|
xs: 24,
|
|
25459
25477
|
md: 8,
|
|
25460
|
-
children: /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(
|
|
25478
|
+
children: /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(Vy, { children: "Failed" }), /* @__PURE__ */ q("strong", { children: k.failed ?? 0 })] })
|
|
25461
25479
|
})
|
|
25462
25480
|
]
|
|
25463
25481
|
}),
|
|
@@ -25481,7 +25499,7 @@ function rb() {
|
|
|
25481
25499
|
}
|
|
25482
25500
|
//#endregion
|
|
25483
25501
|
//#region src/services/dropdownValues/testPageValues.js
|
|
25484
|
-
var
|
|
25502
|
+
var nb = [
|
|
25485
25503
|
{
|
|
25486
25504
|
value: "navigate",
|
|
25487
25505
|
label: "Navigate"
|
|
@@ -25614,82 +25632,82 @@ var ib = [
|
|
|
25614
25632
|
value: "wait_for_text",
|
|
25615
25633
|
label: "Wait For Text"
|
|
25616
25634
|
}
|
|
25617
|
-
], { Text:
|
|
25635
|
+
], { Text: rb } = U, ib = [{
|
|
25618
25636
|
label: "Home",
|
|
25619
25637
|
href: "/"
|
|
25620
25638
|
}, {
|
|
25621
25639
|
label: "Test Cases",
|
|
25622
25640
|
href: "/test-cases"
|
|
25623
|
-
}],
|
|
25641
|
+
}], ab = {
|
|
25624
25642
|
tags: "regression",
|
|
25625
25643
|
active: 1
|
|
25626
|
-
},
|
|
25644
|
+
}, ob = { module: {
|
|
25627
25645
|
dbName: "Modules",
|
|
25628
25646
|
formField: "module",
|
|
25629
25647
|
label: "Module"
|
|
25630
25648
|
} };
|
|
25631
|
-
function
|
|
25649
|
+
function sb(e = []) {
|
|
25632
25650
|
return e.map((e) => ({
|
|
25633
25651
|
value: e,
|
|
25634
25652
|
label: e
|
|
25635
25653
|
}));
|
|
25636
25654
|
}
|
|
25637
|
-
function
|
|
25655
|
+
function cb(e = "") {
|
|
25638
25656
|
return String(e ?? "").trim();
|
|
25639
25657
|
}
|
|
25640
|
-
function
|
|
25641
|
-
return
|
|
25658
|
+
function lb(e = "") {
|
|
25659
|
+
return cb(e).toLowerCase();
|
|
25642
25660
|
}
|
|
25643
|
-
function
|
|
25661
|
+
function ub(e = []) {
|
|
25644
25662
|
let t = /* @__PURE__ */ new Map();
|
|
25645
25663
|
return e.forEach((e) => {
|
|
25646
|
-
let n =
|
|
25664
|
+
let n = cb(e?.flow), r = n.toLowerCase();
|
|
25647
25665
|
n && !t.has(r) && t.set(r, n);
|
|
25648
25666
|
}), Array.from(t.values()).map((e) => ({
|
|
25649
25667
|
value: e,
|
|
25650
25668
|
label: e
|
|
25651
25669
|
}));
|
|
25652
25670
|
}
|
|
25653
|
-
function
|
|
25654
|
-
let r =
|
|
25671
|
+
function db(e = [], t, n) {
|
|
25672
|
+
let r = cb(t).toLowerCase(), i = cb(n).toLowerCase();
|
|
25655
25673
|
return e.reduce((e, t) => {
|
|
25656
|
-
let n =
|
|
25674
|
+
let n = cb(t?.module).toLowerCase(), a = cb(t?.flow).toLowerCase();
|
|
25657
25675
|
if (n !== r || a !== i) return e;
|
|
25658
25676
|
let o = Number(t?.step_order) || 0;
|
|
25659
25677
|
return Math.max(e, o);
|
|
25660
25678
|
}, 0) + 1;
|
|
25661
25679
|
}
|
|
25662
|
-
function
|
|
25680
|
+
function fb({ icon: e, title: t }) {
|
|
25663
25681
|
return /* @__PURE__ */ J(R, {
|
|
25664
25682
|
size: 10,
|
|
25665
25683
|
align: "center",
|
|
25666
25684
|
children: [/* @__PURE__ */ q("div", {
|
|
25667
25685
|
className: "v1-section-icon-box",
|
|
25668
25686
|
children: e
|
|
25669
|
-
}), /* @__PURE__ */ q(
|
|
25687
|
+
}), /* @__PURE__ */ q(rb, {
|
|
25670
25688
|
strong: !0,
|
|
25671
25689
|
className: "v1-section-label",
|
|
25672
25690
|
children: t
|
|
25673
25691
|
})]
|
|
25674
25692
|
});
|
|
25675
25693
|
}
|
|
25676
|
-
function
|
|
25694
|
+
function pb() {
|
|
25677
25695
|
let [e] = C.useForm(), [t] = C.useForm(), [a, s] = o([]), [l, u] = o([]), [d, m] = o([]), [g, _] = o(!1), [v, y] = o(!1), [b, x] = o({
|
|
25678
25696
|
open: !1,
|
|
25679
25697
|
typeKey: "module"
|
|
25680
|
-
}), [S, T] = o(!1), [E, D] = o(!1), [O, A] = o(!1), j = Vt(), M =
|
|
25698
|
+
}), [S, T] = o(!1), [E, D] = o(!1), [O, A] = o(!1), j = Vt(), M = ob[b.typeKey], ee = i(() => sb(a), [a]), N = C.useWatch("module", e), P = C.useWatch("flow", e), L = !!cb(N), z = !!cb(P), te = !L, ne = !L || !z, B = (e, t = []) => {
|
|
25681
25699
|
e === "module" && s(t);
|
|
25682
25700
|
}, re = async () => {
|
|
25683
25701
|
_(!0);
|
|
25684
25702
|
try {
|
|
25685
|
-
s((await Im(
|
|
25703
|
+
s((await Im(ob.module.dbName))?.items ?? []);
|
|
25686
25704
|
} catch (e) {
|
|
25687
25705
|
console.error("Unable to load testing options:", e), G.error("Unable to load testing options.");
|
|
25688
25706
|
} finally {
|
|
25689
25707
|
_(!1);
|
|
25690
25708
|
}
|
|
25691
25709
|
}, ie = n(async (t) => {
|
|
25692
|
-
let n =
|
|
25710
|
+
let n = cb(t);
|
|
25693
25711
|
if (u([]), m([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
25694
25712
|
y(!0);
|
|
25695
25713
|
try {
|
|
@@ -25698,7 +25716,7 @@ function hb() {
|
|
|
25698
25716
|
offset: 0,
|
|
25699
25717
|
module: n
|
|
25700
25718
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
25701
|
-
u(t), m(
|
|
25719
|
+
u(t), m(ub(t));
|
|
25702
25720
|
} catch (e) {
|
|
25703
25721
|
console.error("Unable to load flows:", e), G.error("Unable to load flows.");
|
|
25704
25722
|
} finally {
|
|
@@ -25706,14 +25724,14 @@ function hb() {
|
|
|
25706
25724
|
}
|
|
25707
25725
|
}
|
|
25708
25726
|
}, [e]), V = n(async (t, n, r) => {
|
|
25709
|
-
let i =
|
|
25727
|
+
let i = cb(t), a = cb(n);
|
|
25710
25728
|
if (!i || !a) {
|
|
25711
25729
|
e.setFieldsValue({ step_order: void 0 });
|
|
25712
25730
|
return;
|
|
25713
25731
|
}
|
|
25714
25732
|
D(!0);
|
|
25715
25733
|
try {
|
|
25716
|
-
e.setFieldsValue({ step_order:
|
|
25734
|
+
e.setFieldsValue({ step_order: db(r, i, a) });
|
|
25717
25735
|
} catch (e) {
|
|
25718
25736
|
console.error("Unable to load step order:", e), G.error("Unable to load step order.");
|
|
25719
25737
|
} finally {
|
|
@@ -25734,15 +25752,15 @@ function hb() {
|
|
|
25734
25752
|
]);
|
|
25735
25753
|
let ae = async (t) => {
|
|
25736
25754
|
let n = {
|
|
25737
|
-
module:
|
|
25738
|
-
flow:
|
|
25755
|
+
module: cb(t.module),
|
|
25756
|
+
flow: cb(t.flow),
|
|
25739
25757
|
step_order: Number(t.step_order),
|
|
25740
|
-
description:
|
|
25741
|
-
keyword:
|
|
25742
|
-
target:
|
|
25743
|
-
value:
|
|
25744
|
-
expected:
|
|
25745
|
-
tags: t.tags ?
|
|
25758
|
+
description: cb(t.description),
|
|
25759
|
+
keyword: lb(t.keyword),
|
|
25760
|
+
target: cb(t.target),
|
|
25761
|
+
value: cb(t.value),
|
|
25762
|
+
expected: cb(t.expected),
|
|
25763
|
+
tags: t.tags ? cb(t.tags) : ab.tags,
|
|
25746
25764
|
active: Number(t.active)
|
|
25747
25765
|
};
|
|
25748
25766
|
A(!0);
|
|
@@ -25754,26 +25772,26 @@ function hb() {
|
|
|
25754
25772
|
A(!1);
|
|
25755
25773
|
}
|
|
25756
25774
|
}, H = (t, n) => {
|
|
25757
|
-
e.setFieldsValue({ [t]:
|
|
25775
|
+
e.setFieldsValue({ [t]: cb(n) });
|
|
25758
25776
|
}, U = (t) => {
|
|
25759
25777
|
e.setFieldsValue({
|
|
25760
|
-
module:
|
|
25778
|
+
module: cb(t),
|
|
25761
25779
|
flow: void 0,
|
|
25762
25780
|
step_order: void 0,
|
|
25763
25781
|
keyword: void 0,
|
|
25764
25782
|
description: void 0,
|
|
25765
25783
|
target: void 0,
|
|
25766
|
-
tags:
|
|
25784
|
+
tags: ab.tags,
|
|
25767
25785
|
value: void 0,
|
|
25768
25786
|
expected: void 0
|
|
25769
25787
|
});
|
|
25770
25788
|
}, W = (t) => {
|
|
25771
25789
|
e.setFieldsValue({
|
|
25772
|
-
flow:
|
|
25790
|
+
flow: cb(t),
|
|
25773
25791
|
step_order: void 0
|
|
25774
25792
|
});
|
|
25775
25793
|
}, oe = (e) => {
|
|
25776
|
-
let n =
|
|
25794
|
+
let n = ob[e];
|
|
25777
25795
|
x({
|
|
25778
25796
|
open: !0,
|
|
25779
25797
|
typeKey: e
|
|
@@ -25788,7 +25806,7 @@ function hb() {
|
|
|
25788
25806
|
})), t.resetFields();
|
|
25789
25807
|
}, ce = async () => {
|
|
25790
25808
|
try {
|
|
25791
|
-
let n =
|
|
25809
|
+
let n = cb((await t.validateFields()).name), r = await Lm({
|
|
25792
25810
|
name: n,
|
|
25793
25811
|
type: M.dbName
|
|
25794
25812
|
});
|
|
@@ -25806,7 +25824,7 @@ function hb() {
|
|
|
25806
25824
|
align: "middle",
|
|
25807
25825
|
justify: "space-between",
|
|
25808
25826
|
className: "breadcrumb-action-wrapper",
|
|
25809
|
-
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items:
|
|
25827
|
+
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items: ib }) }), /* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(f, {
|
|
25810
25828
|
type: "link",
|
|
25811
25829
|
onClick: () => j("/zinnext-home"),
|
|
25812
25830
|
children: "View Table"
|
|
@@ -25821,7 +25839,7 @@ function hb() {
|
|
|
25821
25839
|
children: /* @__PURE__ */ J(R, {
|
|
25822
25840
|
align: "center",
|
|
25823
25841
|
size: 10,
|
|
25824
|
-
children: [/* @__PURE__ */ q(pt, { className: "v1-outer-icon" }), /* @__PURE__ */ q("div", { children: /* @__PURE__ */ q(
|
|
25842
|
+
children: [/* @__PURE__ */ q(pt, { className: "v1-outer-icon" }), /* @__PURE__ */ q("div", { children: /* @__PURE__ */ q(rb, {
|
|
25825
25843
|
strong: !0,
|
|
25826
25844
|
style: { fontSize: 16 },
|
|
25827
25845
|
children: "Add Test Case"
|
|
@@ -25837,16 +25855,16 @@ function hb() {
|
|
|
25837
25855
|
className: "v1-required-mark",
|
|
25838
25856
|
children: " *"
|
|
25839
25857
|
})] }),
|
|
25840
|
-
initialValues:
|
|
25858
|
+
initialValues: ab,
|
|
25841
25859
|
onFinish: ae,
|
|
25842
25860
|
autoComplete: "off",
|
|
25843
25861
|
children: [/* @__PURE__ */ q(p, {
|
|
25844
25862
|
className: "v1-card",
|
|
25845
|
-
title: /* @__PURE__ */ q(
|
|
25863
|
+
title: /* @__PURE__ */ q(fb, {
|
|
25846
25864
|
icon: /* @__PURE__ */ q(Be, {}),
|
|
25847
25865
|
title: "Test Case Details"
|
|
25848
25866
|
}),
|
|
25849
|
-
extra: /* @__PURE__ */ q(
|
|
25867
|
+
extra: /* @__PURE__ */ q(rb, {
|
|
25850
25868
|
type: "secondary",
|
|
25851
25869
|
className: "v1-card-subtitle",
|
|
25852
25870
|
children: "Module, flow, step order and execution data"
|
|
@@ -25923,8 +25941,8 @@ function hb() {
|
|
|
25923
25941
|
disabled: ne,
|
|
25924
25942
|
optionFilterProp: "label",
|
|
25925
25943
|
placeholder: "Select action",
|
|
25926
|
-
options:
|
|
25927
|
-
onChange: (t) => e.setFieldsValue({ keyword:
|
|
25944
|
+
options: nb,
|
|
25945
|
+
onChange: (t) => e.setFieldsValue({ keyword: lb(t) })
|
|
25928
25946
|
})
|
|
25929
25947
|
})
|
|
25930
25948
|
}),
|
|
@@ -26044,7 +26062,7 @@ function hb() {
|
|
|
26044
26062
|
maxLength: 100,
|
|
26045
26063
|
placeholder: `Enter ${M.label.toLowerCase()} name`,
|
|
26046
26064
|
onBlur: (e) => {
|
|
26047
|
-
t.setFieldsValue({ name:
|
|
26065
|
+
t.setFieldsValue({ name: cb(e.target.value) });
|
|
26048
26066
|
}
|
|
26049
26067
|
})
|
|
26050
26068
|
}), /* @__PURE__ */ q(C.Item, {
|
|
@@ -26061,23 +26079,23 @@ function hb() {
|
|
|
26061
26079
|
}
|
|
26062
26080
|
//#endregion
|
|
26063
26081
|
//#region src/pages/TestingPage/ZinnextTestForm.jsx
|
|
26064
|
-
var { Text:
|
|
26082
|
+
var { Text: mb } = U, hb = [{
|
|
26065
26083
|
label: "Home",
|
|
26066
26084
|
href: "/"
|
|
26067
26085
|
}, {
|
|
26068
26086
|
label: "Test Cases",
|
|
26069
26087
|
href: "/addTestCase"
|
|
26070
26088
|
}];
|
|
26071
|
-
function
|
|
26089
|
+
function gb(e = "") {
|
|
26072
26090
|
return String(e ?? "").trim();
|
|
26073
26091
|
}
|
|
26074
|
-
function
|
|
26092
|
+
function _b(e = [], t) {
|
|
26075
26093
|
return e.map((e) => ({
|
|
26076
26094
|
value: e.id,
|
|
26077
26095
|
label: e[t]
|
|
26078
26096
|
}));
|
|
26079
26097
|
}
|
|
26080
|
-
var
|
|
26098
|
+
var vb = [
|
|
26081
26099
|
{
|
|
26082
26100
|
label: "Step",
|
|
26083
26101
|
value: "step_order",
|
|
@@ -26116,22 +26134,22 @@ var bb = [
|
|
|
26116
26134
|
children: "Negative"
|
|
26117
26135
|
})
|
|
26118
26136
|
}
|
|
26119
|
-
],
|
|
26137
|
+
], yb = {
|
|
26120
26138
|
key: !1,
|
|
26121
26139
|
value: !1,
|
|
26122
26140
|
expected: !1
|
|
26123
26141
|
};
|
|
26124
|
-
function
|
|
26125
|
-
return t ? e[t] ??
|
|
26142
|
+
function bb(e, t) {
|
|
26143
|
+
return t ? e[t] ?? yb : yb;
|
|
26126
26144
|
}
|
|
26127
|
-
function
|
|
26145
|
+
function xb(e, t) {
|
|
26128
26146
|
e.setFields(t.map((e) => ({
|
|
26129
26147
|
name: e,
|
|
26130
26148
|
errors: []
|
|
26131
26149
|
})));
|
|
26132
26150
|
}
|
|
26133
|
-
function
|
|
26134
|
-
let [e] = C.useForm(), t = Vt(), [a] = Ut(), s = a.get("edit"), c = !!s, l = i(() => An(), []), [u, d] = o([]), [m, g] = o([]), [_, v] = o([]), [y, b] = o(
|
|
26151
|
+
function Sb() {
|
|
26152
|
+
let [e] = C.useForm(), t = Vt(), [a] = Ut(), s = a.get("edit"), c = !!s, l = i(() => An(), []), [u, d] = o([]), [m, g] = o([]), [_, v] = o([]), [y, b] = o(nb), [x, S] = o({}), [T, E] = o(!1), [D, O] = o(!1), [k, A] = o(!1), [j, M] = o(!1), [ee, N] = o(!1), P = C.useWatch("module", e), L = C.useWatch("submodule", e), z = C.useWatch("actions", e), te = !!P, ne = !!L, re = i(() => bb(x, z), [x, z]), ie = i(() => _b(u, "modulename"), [u]), ae = i(() => _b(m, "submodulename"), [m]), H = i(() => u.find((e) => e.id === P)?.modulename ?? "", [u, P]), U = i(() => m.find((e) => e.id === L)?.submodulename ?? "", [L, m]), W = n(async () => {
|
|
26135
26153
|
try {
|
|
26136
26154
|
let e = await Rm();
|
|
26137
26155
|
Array.isArray(e?.options) && e.options.length > 0 && b(e.options), e?.rules && typeof e.rules == "object" && S(e.rules);
|
|
@@ -26272,10 +26290,10 @@ function wb() {
|
|
|
26272
26290
|
align: "middle",
|
|
26273
26291
|
justify: "space-between",
|
|
26274
26292
|
className: "breadcrumb-action-wrapper",
|
|
26275
|
-
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items:
|
|
26293
|
+
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items: hb }) }), /* @__PURE__ */ q(h, { children: /* @__PURE__ */ J(R, {
|
|
26276
26294
|
size: 6,
|
|
26277
26295
|
className: "zt-section-title",
|
|
26278
|
-
children: [/* @__PURE__ */ q(mt, {}), /* @__PURE__ */ q(
|
|
26296
|
+
children: [/* @__PURE__ */ q(mt, {}), /* @__PURE__ */ q(mb, {
|
|
26279
26297
|
strong: !0,
|
|
26280
26298
|
children: l.name
|
|
26281
26299
|
})]
|
|
@@ -26296,11 +26314,11 @@ function wb() {
|
|
|
26296
26314
|
product_parent_ID: Number(l?.id),
|
|
26297
26315
|
module_parent_ID: Number(n.module),
|
|
26298
26316
|
submodule_parent_ID: Number(n.submodule),
|
|
26299
|
-
description:
|
|
26300
|
-
actions:
|
|
26301
|
-
key:
|
|
26302
|
-
value:
|
|
26303
|
-
expected:
|
|
26317
|
+
description: gb(n.description),
|
|
26318
|
+
actions: gb(n.actions),
|
|
26319
|
+
key: gb(n.key),
|
|
26320
|
+
value: gb(n.value),
|
|
26321
|
+
expected: gb(n.expected),
|
|
26304
26322
|
scenario: +!!n.scenario,
|
|
26305
26323
|
active: +!!n.active
|
|
26306
26324
|
};
|
|
@@ -26366,7 +26384,7 @@ function wb() {
|
|
|
26366
26384
|
key: void 0,
|
|
26367
26385
|
value: void 0,
|
|
26368
26386
|
expected: void 0
|
|
26369
|
-
}),
|
|
26387
|
+
}), xb(e, [
|
|
26370
26388
|
"actions",
|
|
26371
26389
|
"key",
|
|
26372
26390
|
"value",
|
|
@@ -26397,7 +26415,7 @@ function wb() {
|
|
|
26397
26415
|
key: void 0,
|
|
26398
26416
|
value: void 0,
|
|
26399
26417
|
expected: void 0
|
|
26400
|
-
}),
|
|
26418
|
+
}), xb(e, [
|
|
26401
26419
|
"actions",
|
|
26402
26420
|
"key",
|
|
26403
26421
|
"value",
|
|
@@ -26451,7 +26469,7 @@ function wb() {
|
|
|
26451
26469
|
/* @__PURE__ */ q("span", { children: "Step Details" })
|
|
26452
26470
|
]
|
|
26453
26471
|
}),
|
|
26454
|
-
extra: /* @__PURE__ */ J(
|
|
26472
|
+
extra: /* @__PURE__ */ J(mb, {
|
|
26455
26473
|
type: "secondary",
|
|
26456
26474
|
children: [
|
|
26457
26475
|
H,
|
|
@@ -26491,13 +26509,13 @@ function wb() {
|
|
|
26491
26509
|
placeholder: "Select action",
|
|
26492
26510
|
options: y,
|
|
26493
26511
|
onChange: (t) => {
|
|
26494
|
-
let n =
|
|
26512
|
+
let n = bb(x, t);
|
|
26495
26513
|
e.setFieldsValue({
|
|
26496
26514
|
actions: t,
|
|
26497
26515
|
key: n.key ? e.getFieldValue("key") : void 0,
|
|
26498
26516
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
26499
26517
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
26500
|
-
}),
|
|
26518
|
+
}), xb(e, [
|
|
26501
26519
|
"key",
|
|
26502
26520
|
"value",
|
|
26503
26521
|
"expected"
|
|
@@ -26606,7 +26624,7 @@ function wb() {
|
|
|
26606
26624
|
children: /* @__PURE__ */ q(el, {
|
|
26607
26625
|
listName: "Added Steps",
|
|
26608
26626
|
loading: k,
|
|
26609
|
-
fields:
|
|
26627
|
+
fields: vb,
|
|
26610
26628
|
dataSource: _,
|
|
26611
26629
|
current: 1,
|
|
26612
26630
|
pageSize: Math.max(_.length, 1),
|
|
@@ -26622,7 +26640,7 @@ function wb() {
|
|
|
26622
26640
|
}
|
|
26623
26641
|
//#endregion
|
|
26624
26642
|
//#region src/pages/TestingPage/ManageModules.jsx
|
|
26625
|
-
var { Text:
|
|
26643
|
+
var { Text: Cb } = U, wb = [
|
|
26626
26644
|
{
|
|
26627
26645
|
label: "Home",
|
|
26628
26646
|
href: "/"
|
|
@@ -26636,7 +26654,7 @@ var { Text: Tb } = U, Eb = [
|
|
|
26636
26654
|
href: "/manageModules"
|
|
26637
26655
|
}
|
|
26638
26656
|
];
|
|
26639
|
-
function
|
|
26657
|
+
function Tb() {
|
|
26640
26658
|
let e = Vt(), t = i(() => An(), []), [a, s] = o([]), [c, l] = o({}), [u, d] = o(!1), [m, g] = o(!1), [_, v] = o(""), [y, b] = o(!1), [x, S] = o(1), [C, T] = o(10), E = n(async (e) => {
|
|
26641
26659
|
if (!e) {
|
|
26642
26660
|
s([]);
|
|
@@ -26704,7 +26722,7 @@ function Db() {
|
|
|
26704
26722
|
align: "middle",
|
|
26705
26723
|
justify: "space-between",
|
|
26706
26724
|
className: "breadcrumb-action-wrapper",
|
|
26707
|
-
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items:
|
|
26725
|
+
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items: wb }) }), /* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(f, {
|
|
26708
26726
|
type: "link",
|
|
26709
26727
|
onClick: () => e("/addTestCase"),
|
|
26710
26728
|
children: "Back to Form"
|
|
@@ -26724,7 +26742,7 @@ function Db() {
|
|
|
26724
26742
|
children: [
|
|
26725
26743
|
/* @__PURE__ */ q(mt, {}),
|
|
26726
26744
|
/* @__PURE__ */ q("span", { children: "Project:" }),
|
|
26727
|
-
/* @__PURE__ */ q(
|
|
26745
|
+
/* @__PURE__ */ q(Cb, {
|
|
26728
26746
|
strong: !0,
|
|
26729
26747
|
children: t.name
|
|
26730
26748
|
})
|
|
@@ -26800,7 +26818,7 @@ function Db() {
|
|
|
26800
26818
|
children: /* @__PURE__ */ J(R, {
|
|
26801
26819
|
direction: "vertical",
|
|
26802
26820
|
className: "zt-modal-stack",
|
|
26803
|
-
children: [/* @__PURE__ */ J(
|
|
26821
|
+
children: [/* @__PURE__ */ J(Cb, {
|
|
26804
26822
|
type: "secondary",
|
|
26805
26823
|
children: ["Project: ", /* @__PURE__ */ q("b", { children: t.name })]
|
|
26806
26824
|
}), /* @__PURE__ */ q(w, {
|
|
@@ -26817,7 +26835,7 @@ function Db() {
|
|
|
26817
26835
|
}
|
|
26818
26836
|
//#endregion
|
|
26819
26837
|
//#region src/pages/TestingPage/ManageSubmodules.jsx
|
|
26820
|
-
var { Text:
|
|
26838
|
+
var { Text: Eb } = U, Db = [
|
|
26821
26839
|
{
|
|
26822
26840
|
label: "Home",
|
|
26823
26841
|
href: "/"
|
|
@@ -26835,7 +26853,7 @@ var { Text: Ob } = U, kb = [
|
|
|
26835
26853
|
href: "/test-cases/zinnext/submodules"
|
|
26836
26854
|
}
|
|
26837
26855
|
];
|
|
26838
|
-
function
|
|
26856
|
+
function Ob() {
|
|
26839
26857
|
let e = Vt(), [t] = Ut(), a = i(() => An(), []), s = t.get("module") ?? "", [c, l] = o([]), [u, d] = o(!1), [m, g] = o(!1), [_, v] = o(""), [y, b] = o(!1), [x, S] = o(1), [C, T] = o(10), E = n(async (e, t) => {
|
|
26840
26858
|
if (!e || !t) {
|
|
26841
26859
|
l([]);
|
|
@@ -26904,7 +26922,7 @@ function Ab() {
|
|
|
26904
26922
|
align: "middle",
|
|
26905
26923
|
justify: "space-between",
|
|
26906
26924
|
className: "breadcrumb-action-wrapper",
|
|
26907
|
-
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items:
|
|
26925
|
+
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items: Db }) }), /* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(f, {
|
|
26908
26926
|
type: "link",
|
|
26909
26927
|
onClick: () => e("/manageModules"),
|
|
26910
26928
|
children: "Back to Modules"
|
|
@@ -26927,7 +26945,7 @@ function Ab() {
|
|
|
26927
26945
|
children: [
|
|
26928
26946
|
/* @__PURE__ */ q(mt, {}),
|
|
26929
26947
|
/* @__PURE__ */ q("span", { children: "Project:" }),
|
|
26930
|
-
/* @__PURE__ */ q(
|
|
26948
|
+
/* @__PURE__ */ q(Eb, {
|
|
26931
26949
|
strong: !0,
|
|
26932
26950
|
children: a.name
|
|
26933
26951
|
})
|
|
@@ -26937,7 +26955,7 @@ function Ab() {
|
|
|
26937
26955
|
children: [
|
|
26938
26956
|
/* @__PURE__ */ q(le, {}),
|
|
26939
26957
|
/* @__PURE__ */ q("span", { children: "Module:" }),
|
|
26940
|
-
/* @__PURE__ */ q(
|
|
26958
|
+
/* @__PURE__ */ q(Eb, {
|
|
26941
26959
|
strong: !0,
|
|
26942
26960
|
children: s
|
|
26943
26961
|
})
|
|
@@ -27000,7 +27018,7 @@ function Ab() {
|
|
|
27000
27018
|
children: /* @__PURE__ */ J(R, {
|
|
27001
27019
|
direction: "vertical",
|
|
27002
27020
|
className: "zt-modal-stack",
|
|
27003
|
-
children: [/* @__PURE__ */ J(
|
|
27021
|
+
children: [/* @__PURE__ */ J(Eb, {
|
|
27004
27022
|
type: "secondary",
|
|
27005
27023
|
children: [
|
|
27006
27024
|
"Project: ",
|
|
@@ -27022,7 +27040,7 @@ function Ab() {
|
|
|
27022
27040
|
}
|
|
27023
27041
|
//#endregion
|
|
27024
27042
|
//#region src/pages/TestingPage/ZinnextTableView.jsx
|
|
27025
|
-
var { Text:
|
|
27043
|
+
var { Text: kb } = U, Ab = [
|
|
27026
27044
|
{
|
|
27027
27045
|
label: "Home",
|
|
27028
27046
|
href: "/"
|
|
@@ -27036,7 +27054,7 @@ var { Text: jb } = U, Mb = [
|
|
|
27036
27054
|
href: "/viewTestCase"
|
|
27037
27055
|
}
|
|
27038
27056
|
];
|
|
27039
|
-
function
|
|
27057
|
+
function jb() {
|
|
27040
27058
|
let e = Vt(), [t, a] = o([]), [s, c] = o(0), [l, u] = o(!1), d = i(() => An(), []), [m, g] = o(""), [_, v] = o(1), [y, b] = o(20), [x, S] = o(null), C = n(async (e = {}) => {
|
|
27041
27059
|
u(!0);
|
|
27042
27060
|
try {
|
|
@@ -27096,7 +27114,7 @@ function Nb() {
|
|
|
27096
27114
|
align: "middle",
|
|
27097
27115
|
justify: "space-between",
|
|
27098
27116
|
className: "breadcrumb-action-wrapper",
|
|
27099
|
-
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items:
|
|
27117
|
+
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items: Ab }) }), /* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(f, {
|
|
27100
27118
|
type: "link",
|
|
27101
27119
|
onClick: () => e("/addTestCase"),
|
|
27102
27120
|
children: "Back to Form"
|
|
@@ -27110,7 +27128,7 @@ function Nb() {
|
|
|
27110
27128
|
className: "zt-section-title",
|
|
27111
27129
|
children: [/* @__PURE__ */ q(Tt, {}), /* @__PURE__ */ q("span", { children: "Test Flows" })]
|
|
27112
27130
|
}),
|
|
27113
|
-
extra: /* @__PURE__ */ J(
|
|
27131
|
+
extra: /* @__PURE__ */ J(kb, {
|
|
27114
27132
|
type: "secondary",
|
|
27115
27133
|
children: [s, " row(s)"]
|
|
27116
27134
|
}),
|
|
@@ -27264,17 +27282,17 @@ function Nb() {
|
|
|
27264
27282
|
}
|
|
27265
27283
|
//#endregion
|
|
27266
27284
|
//#region src/pages/TestingPage/testHomePage.jsx
|
|
27267
|
-
var
|
|
27285
|
+
var Mb = [{
|
|
27268
27286
|
label: "Home",
|
|
27269
27287
|
href: "/"
|
|
27270
27288
|
}, {
|
|
27271
27289
|
label: "Test Cases",
|
|
27272
27290
|
href: "/test-cases"
|
|
27273
27291
|
}];
|
|
27274
|
-
function
|
|
27292
|
+
function Nb() {
|
|
27275
27293
|
return /* @__PURE__ */ J("main", {
|
|
27276
27294
|
className: "jobs-list-page",
|
|
27277
|
-
children: [/* @__PURE__ */ q(qi, { items:
|
|
27295
|
+
children: [/* @__PURE__ */ q(qi, { items: Mb }), /* @__PURE__ */ q(Vp, {
|
|
27278
27296
|
moduleName: "test-flows",
|
|
27279
27297
|
rowKey: "id"
|
|
27280
27298
|
})]
|
|
@@ -27282,85 +27300,85 @@ function Fb() {
|
|
|
27282
27300
|
}
|
|
27283
27301
|
//#endregion
|
|
27284
27302
|
//#region src/pages/TestingPage/lms-test-form.jsx
|
|
27285
|
-
var { Text:
|
|
27303
|
+
var { Text: Pb } = U, Fb = [{
|
|
27286
27304
|
label: "Home",
|
|
27287
27305
|
href: "/"
|
|
27288
27306
|
}, {
|
|
27289
27307
|
label: "LMS Cases",
|
|
27290
27308
|
href: "/lms-cases"
|
|
27291
|
-
}],
|
|
27309
|
+
}], Ib = {
|
|
27292
27310
|
tags: "regression",
|
|
27293
27311
|
active: 1
|
|
27294
|
-
},
|
|
27312
|
+
}, Lb = { module: {
|
|
27295
27313
|
dbName: "Modules",
|
|
27296
27314
|
formField: "module",
|
|
27297
27315
|
label: "Module"
|
|
27298
|
-
} },
|
|
27316
|
+
} }, Rb = {
|
|
27299
27317
|
key: !1,
|
|
27300
27318
|
value: !1,
|
|
27301
27319
|
expected: !1
|
|
27302
27320
|
};
|
|
27303
|
-
function
|
|
27304
|
-
return t ? e[t] ??
|
|
27321
|
+
function zb(e, t) {
|
|
27322
|
+
return t ? e[t] ?? Rb : Rb;
|
|
27305
27323
|
}
|
|
27306
|
-
function
|
|
27324
|
+
function Bb(e, t) {
|
|
27307
27325
|
e.setFields(t.map((e) => ({
|
|
27308
27326
|
name: e,
|
|
27309
27327
|
errors: []
|
|
27310
27328
|
})));
|
|
27311
27329
|
}
|
|
27312
|
-
function
|
|
27330
|
+
function Vb(e = []) {
|
|
27313
27331
|
return e.map((e) => ({
|
|
27314
27332
|
value: e,
|
|
27315
27333
|
label: e
|
|
27316
27334
|
}));
|
|
27317
27335
|
}
|
|
27318
|
-
function
|
|
27336
|
+
function Hb(e = "") {
|
|
27319
27337
|
return String(e ?? "").trim();
|
|
27320
27338
|
}
|
|
27321
|
-
function
|
|
27339
|
+
function Ub(e = []) {
|
|
27322
27340
|
let t = /* @__PURE__ */ new Map();
|
|
27323
27341
|
return e.forEach((e) => {
|
|
27324
|
-
let n =
|
|
27342
|
+
let n = Hb(e?.flow), r = n.toLowerCase();
|
|
27325
27343
|
n && !t.has(r) && t.set(r, n);
|
|
27326
27344
|
}), Array.from(t.values()).map((e) => ({
|
|
27327
27345
|
value: e,
|
|
27328
27346
|
label: e
|
|
27329
27347
|
}));
|
|
27330
27348
|
}
|
|
27331
|
-
function
|
|
27332
|
-
let r =
|
|
27349
|
+
function Wb(e = [], t, n) {
|
|
27350
|
+
let r = Hb(t).toLowerCase(), i = Hb(n).toLowerCase();
|
|
27333
27351
|
return e.reduce((e, t) => {
|
|
27334
|
-
let n =
|
|
27352
|
+
let n = Hb(t?.module).toLowerCase(), a = Hb(t?.flow).toLowerCase();
|
|
27335
27353
|
if (n !== r || a !== i) return e;
|
|
27336
27354
|
let o = Number(t?.step_order) || 0;
|
|
27337
27355
|
return Math.max(e, o);
|
|
27338
27356
|
}, 0) + 1;
|
|
27339
27357
|
}
|
|
27340
|
-
function
|
|
27358
|
+
function Gb({ icon: e, title: t }) {
|
|
27341
27359
|
return /* @__PURE__ */ J(R, {
|
|
27342
27360
|
size: 10,
|
|
27343
27361
|
align: "center",
|
|
27344
27362
|
children: [/* @__PURE__ */ q("div", {
|
|
27345
27363
|
className: "v1-section-icon-box",
|
|
27346
27364
|
children: e
|
|
27347
|
-
}), /* @__PURE__ */ q(
|
|
27365
|
+
}), /* @__PURE__ */ q(Pb, {
|
|
27348
27366
|
strong: !0,
|
|
27349
27367
|
className: "v1-section-label",
|
|
27350
27368
|
children: t
|
|
27351
27369
|
})]
|
|
27352
27370
|
});
|
|
27353
27371
|
}
|
|
27354
|
-
function
|
|
27355
|
-
let [e] = C.useForm(), [t] = C.useForm(), [a, s] = o([]), [l, u] = o([]), [d, m] = o([]), [g, _] = o(
|
|
27372
|
+
function Kb() {
|
|
27373
|
+
let [e] = C.useForm(), [t] = C.useForm(), [a, s] = o([]), [l, u] = o([]), [d, m] = o([]), [g, _] = o(nb), [v, y] = o({}), [b, x] = o(!1), [S, T] = o(!1), [E, D] = o({
|
|
27356
27374
|
open: !1,
|
|
27357
27375
|
typeKey: "module"
|
|
27358
|
-
}), [O, A] = o(!1), [j, M] = o(!1), [ee, N] = o(!1), P = Vt(), L =
|
|
27376
|
+
}), [O, A] = o(!1), [j, M] = o(!1), [ee, N] = o(!1), P = Vt(), L = Lb[E.typeKey], z = i(() => Vb(a), [a]), te = C.useWatch("module", e), ne = C.useWatch("flow", e), B = C.useWatch("keyword", e), re = !!Hb(te), ie = !!Hb(ne), V = !re, ae = !re || !ie, H = i(() => zb(v, B), [v, B]), U = (e, t = []) => {
|
|
27359
27377
|
e === "module" && s(t);
|
|
27360
27378
|
}, W = async () => {
|
|
27361
27379
|
x(!0);
|
|
27362
27380
|
try {
|
|
27363
|
-
s((await Im(
|
|
27381
|
+
s((await Im(Lb.module.dbName))?.items ?? []);
|
|
27364
27382
|
} catch (e) {
|
|
27365
27383
|
console.error("Unable to load testing options:", e), G.error("Unable to load testing options.");
|
|
27366
27384
|
} finally {
|
|
@@ -27374,7 +27392,7 @@ function Jb() {
|
|
|
27374
27392
|
console.error("Unable to load action field rules:", e), G.error("Unable to load action validation rules.");
|
|
27375
27393
|
}
|
|
27376
27394
|
}, se = n(async (t) => {
|
|
27377
|
-
let n =
|
|
27395
|
+
let n = Hb(t);
|
|
27378
27396
|
if (u([]), m([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
27379
27397
|
T(!0);
|
|
27380
27398
|
try {
|
|
@@ -27383,7 +27401,7 @@ function Jb() {
|
|
|
27383
27401
|
offset: 0,
|
|
27384
27402
|
module: n
|
|
27385
27403
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
27386
|
-
u(t), m(
|
|
27404
|
+
u(t), m(Ub(t));
|
|
27387
27405
|
} catch (e) {
|
|
27388
27406
|
console.error("Unable to load flows:", e), G.error("Unable to load flows.");
|
|
27389
27407
|
} finally {
|
|
@@ -27391,14 +27409,14 @@ function Jb() {
|
|
|
27391
27409
|
}
|
|
27392
27410
|
}
|
|
27393
27411
|
}, [e]), ce = n(async (t, n, r) => {
|
|
27394
|
-
let i =
|
|
27412
|
+
let i = Hb(t), a = Hb(n);
|
|
27395
27413
|
if (!i || !a) {
|
|
27396
27414
|
e.setFieldsValue({ step_order: void 0 });
|
|
27397
27415
|
return;
|
|
27398
27416
|
}
|
|
27399
27417
|
M(!0);
|
|
27400
27418
|
try {
|
|
27401
|
-
e.setFieldsValue({ step_order:
|
|
27419
|
+
e.setFieldsValue({ step_order: Wb(r, i, a) });
|
|
27402
27420
|
} catch (e) {
|
|
27403
27421
|
console.error("Unable to load step order:", e), G.error("Unable to load step order.");
|
|
27404
27422
|
} finally {
|
|
@@ -27421,15 +27439,15 @@ function Jb() {
|
|
|
27421
27439
|
]);
|
|
27422
27440
|
let le = async (t) => {
|
|
27423
27441
|
let n = {
|
|
27424
|
-
module:
|
|
27425
|
-
flow:
|
|
27442
|
+
module: Hb(t.module),
|
|
27443
|
+
flow: Hb(t.flow),
|
|
27426
27444
|
step_order: Number(t.step_order),
|
|
27427
|
-
description:
|
|
27428
|
-
keyword:
|
|
27429
|
-
target:
|
|
27430
|
-
value:
|
|
27431
|
-
expected:
|
|
27432
|
-
tags: t.tags ?
|
|
27445
|
+
description: Hb(t.description),
|
|
27446
|
+
keyword: Hb(t.keyword),
|
|
27447
|
+
target: Hb(t.target),
|
|
27448
|
+
value: Hb(t.value),
|
|
27449
|
+
expected: Hb(t.expected),
|
|
27450
|
+
tags: t.tags ? Hb(t.tags) : Ib.tags,
|
|
27433
27451
|
active: Number(t.active)
|
|
27434
27452
|
};
|
|
27435
27453
|
N(!0);
|
|
@@ -27441,19 +27459,19 @@ function Jb() {
|
|
|
27441
27459
|
N(!1);
|
|
27442
27460
|
}
|
|
27443
27461
|
}, ue = (t, n) => {
|
|
27444
|
-
e.setFieldsValue({ [t]:
|
|
27462
|
+
e.setFieldsValue({ [t]: Hb(n) });
|
|
27445
27463
|
}, de = (t) => {
|
|
27446
27464
|
e.setFieldsValue({
|
|
27447
|
-
module:
|
|
27465
|
+
module: Hb(t),
|
|
27448
27466
|
flow: void 0,
|
|
27449
27467
|
step_order: void 0,
|
|
27450
27468
|
keyword: void 0,
|
|
27451
27469
|
description: void 0,
|
|
27452
27470
|
target: void 0,
|
|
27453
|
-
tags:
|
|
27471
|
+
tags: Ib.tags,
|
|
27454
27472
|
value: void 0,
|
|
27455
27473
|
expected: void 0
|
|
27456
|
-
}),
|
|
27474
|
+
}), Bb(e, [
|
|
27457
27475
|
"keyword",
|
|
27458
27476
|
"target",
|
|
27459
27477
|
"value",
|
|
@@ -27461,32 +27479,32 @@ function Jb() {
|
|
|
27461
27479
|
]);
|
|
27462
27480
|
}, fe = (t) => {
|
|
27463
27481
|
e.setFieldsValue({
|
|
27464
|
-
flow:
|
|
27482
|
+
flow: Hb(t),
|
|
27465
27483
|
step_order: void 0,
|
|
27466
27484
|
keyword: void 0,
|
|
27467
27485
|
target: void 0,
|
|
27468
27486
|
value: void 0,
|
|
27469
27487
|
expected: void 0
|
|
27470
|
-
}),
|
|
27488
|
+
}), Bb(e, [
|
|
27471
27489
|
"keyword",
|
|
27472
27490
|
"target",
|
|
27473
27491
|
"value",
|
|
27474
27492
|
"expected"
|
|
27475
27493
|
]);
|
|
27476
27494
|
}, pe = (t) => {
|
|
27477
|
-
let n =
|
|
27495
|
+
let n = zb(v, t);
|
|
27478
27496
|
e.setFieldsValue({
|
|
27479
|
-
keyword:
|
|
27497
|
+
keyword: Hb(t),
|
|
27480
27498
|
target: n.key ? e.getFieldValue("target") : void 0,
|
|
27481
27499
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
27482
27500
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
27483
|
-
}),
|
|
27501
|
+
}), Bb(e, [
|
|
27484
27502
|
"target",
|
|
27485
27503
|
"value",
|
|
27486
27504
|
"expected"
|
|
27487
27505
|
]);
|
|
27488
27506
|
}, me = (e) => {
|
|
27489
|
-
let n =
|
|
27507
|
+
let n = Lb[e];
|
|
27490
27508
|
D({
|
|
27491
27509
|
open: !0,
|
|
27492
27510
|
typeKey: e
|
|
@@ -27501,7 +27519,7 @@ function Jb() {
|
|
|
27501
27519
|
})), t.resetFields();
|
|
27502
27520
|
}, ge = async () => {
|
|
27503
27521
|
try {
|
|
27504
|
-
let n =
|
|
27522
|
+
let n = Hb((await t.validateFields()).name), r = await Lm({
|
|
27505
27523
|
name: n,
|
|
27506
27524
|
type: L.dbName
|
|
27507
27525
|
});
|
|
@@ -27519,7 +27537,7 @@ function Jb() {
|
|
|
27519
27537
|
align: "middle",
|
|
27520
27538
|
justify: "space-between",
|
|
27521
27539
|
className: "breadcrumb-action-wrapper",
|
|
27522
|
-
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items:
|
|
27540
|
+
children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(qi, { items: Fb }) }), /* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(f, {
|
|
27523
27541
|
type: "link",
|
|
27524
27542
|
onClick: () => P("/lms-home"),
|
|
27525
27543
|
children: "View Table"
|
|
@@ -27534,7 +27552,7 @@ function Jb() {
|
|
|
27534
27552
|
children: /* @__PURE__ */ J(R, {
|
|
27535
27553
|
align: "center",
|
|
27536
27554
|
size: 10,
|
|
27537
|
-
children: [/* @__PURE__ */ q(pt, { className: "v1-outer-icon" }), /* @__PURE__ */ q("div", { children: /* @__PURE__ */ q(
|
|
27555
|
+
children: [/* @__PURE__ */ q(pt, { className: "v1-outer-icon" }), /* @__PURE__ */ q("div", { children: /* @__PURE__ */ q(Pb, {
|
|
27538
27556
|
strong: !0,
|
|
27539
27557
|
style: { fontSize: 16 },
|
|
27540
27558
|
children: "Add LMS Case"
|
|
@@ -27550,16 +27568,16 @@ function Jb() {
|
|
|
27550
27568
|
className: "v1-required-mark",
|
|
27551
27569
|
children: " *"
|
|
27552
27570
|
})] }),
|
|
27553
|
-
initialValues:
|
|
27571
|
+
initialValues: Ib,
|
|
27554
27572
|
onFinish: le,
|
|
27555
27573
|
autoComplete: "off",
|
|
27556
27574
|
children: [/* @__PURE__ */ q(p, {
|
|
27557
27575
|
className: "v1-card",
|
|
27558
|
-
title: /* @__PURE__ */ q(
|
|
27576
|
+
title: /* @__PURE__ */ q(Gb, {
|
|
27559
27577
|
icon: /* @__PURE__ */ q(Be, {}),
|
|
27560
27578
|
title: "LMS Case Details"
|
|
27561
27579
|
}),
|
|
27562
|
-
extra: /* @__PURE__ */ q(
|
|
27580
|
+
extra: /* @__PURE__ */ q(Pb, {
|
|
27563
27581
|
type: "secondary",
|
|
27564
27582
|
className: "v1-card-subtitle",
|
|
27565
27583
|
children: "Module, flow, step order and execution data"
|
|
@@ -27769,7 +27787,7 @@ function Jb() {
|
|
|
27769
27787
|
maxLength: 100,
|
|
27770
27788
|
placeholder: `Enter ${L.label.toLowerCase()} name`,
|
|
27771
27789
|
onBlur: (e) => {
|
|
27772
|
-
t.setFieldsValue({ name:
|
|
27790
|
+
t.setFieldsValue({ name: Hb(e.target.value) });
|
|
27773
27791
|
}
|
|
27774
27792
|
})
|
|
27775
27793
|
}), /* @__PURE__ */ q(C.Item, {
|
|
@@ -27786,17 +27804,17 @@ function Jb() {
|
|
|
27786
27804
|
}
|
|
27787
27805
|
//#endregion
|
|
27788
27806
|
//#region src/pages/TestingPage/lmsHomePage.jsx
|
|
27789
|
-
var
|
|
27807
|
+
var qb = [{
|
|
27790
27808
|
label: "Home",
|
|
27791
27809
|
href: "/"
|
|
27792
27810
|
}, {
|
|
27793
27811
|
label: "LMS Cases",
|
|
27794
27812
|
href: "/lms-cases"
|
|
27795
27813
|
}];
|
|
27796
|
-
function
|
|
27814
|
+
function Jb() {
|
|
27797
27815
|
return /* @__PURE__ */ J("main", {
|
|
27798
27816
|
className: "jobs-list-page",
|
|
27799
|
-
children: [/* @__PURE__ */ q(qi, { items:
|
|
27817
|
+
children: [/* @__PURE__ */ q(qi, { items: qb }), /* @__PURE__ */ q(Vp, {
|
|
27800
27818
|
moduleName: "lms-flows",
|
|
27801
27819
|
rowKey: "id"
|
|
27802
27820
|
})]
|
|
@@ -27804,8 +27822,8 @@ function Xb() {
|
|
|
27804
27822
|
}
|
|
27805
27823
|
//#endregion
|
|
27806
27824
|
//#region src/index.js
|
|
27807
|
-
var
|
|
27825
|
+
var Yb = oh(Fy), Xb = oh(Ly), Zb = oh(Ry), Qb = oh(By), $b = oh(tb), ex = oh(pb), tx = oh(Sb), nx = oh(Tb), rx = oh(Ob), ix = oh(jb), ax = oh(Nb), ox = oh(Kb), sx = oh(Jb);
|
|
27808
27826
|
//#endregion
|
|
27809
|
-
export { X as AUTH_URL, Sa as AddFormV1,
|
|
27827
|
+
export { X as AUTH_URL, Sa as AddFormV1, Yb as AdminPage, Ca as AppAlert, wa as AppButton, Am as AppShell, Ta as AssigneeAvatars, Om as AuthGuard, qi as Breadcrumb, $b as BulkUploadPage, sn as CANDIDATES_URL, Zn as CalendarCard, Ea as CustomPagination, La as DescriptionBlock, Od as DetailHeaderCard, Pd as DetailViewPage, ku as DetailViewV1, au as DocumentViewer, Hr as DynamicCards, ng as DynamicPopup, qg as DynamicPopupRoute, Nu as DynamicTabs, af as EditFormV1, gm as Header, on as JOBS_URL, Zb as JobModuleDetailPage, Xb as JobsListPage, Vp as ListView, sx as LmsHomePage, ox as LmsTestForm, jm as Login, lh as MailPopup, nx as ManageModules, rx as ManageSubmodules, Gg as POPUP_CONFIGS, sl as ParamCardView, el as ParamListView, Sh as PreviewPopup, ah as ProjectSelect, an as SUBMISSIONS_URL, wm as Sidebar, Qb as StickyNotesFullPage, Gs as StylishDynamicTabs, Kp as TemplateEditor, ex as TestForm, ax as TestingHomePage, Gr as TipTapEditor, l_ as UserForm, e_ as VendorShareDrawer, Of as ViewSummaryWidget, Oh as WizardPopup, ix as ZinnextTableView, tx as ZinnextTestForm, jn as clearSelectedProject, Mi as colors, ln as configureCoreTheme, En as getCurrentRoleName, rr as getModuleConfig, An as getSelectedProject, wn as getStoredToken, Dn as getUserRoles, On as isTester, Tn as logout, kn as setSelectedProject, sf as useDropdownFields, kf as useDropdownValues, qp as useEditForm, cf as useFieldConfig, lf as useFilterFields, Va as useMenuPermission, oh as withAuthGuard };
|
|
27810
27828
|
|
|
27811
27829
|
//# sourceMappingURL=index.js.map
|