@realtek/core-theme 0.0.305 → 0.0.307
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 +3 -3
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +840 -836
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -5241,7 +5241,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5241
5241
|
document.documentElement.classList.remove("listview-page-scroll-lock"), document.body.classList.remove("listview-page-scroll-lock");
|
|
5242
5242
|
};
|
|
5243
5243
|
}, [Ee]);
|
|
5244
|
-
let ot = pi(null), [st, ct] = L(0), lt = pi();
|
|
5244
|
+
let ot = pi(null), [st, ct] = L(0), lt = pi(), ut = pi("");
|
|
5245
5245
|
F(() => {
|
|
5246
5246
|
let e = ot.current;
|
|
5247
5247
|
if (!e || typeof ResizeObserver > "u") return;
|
|
@@ -5251,36 +5251,36 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5251
5251
|
});
|
|
5252
5252
|
return t.observe(e), () => t.disconnect();
|
|
5253
5253
|
}, []);
|
|
5254
|
-
let
|
|
5255
|
-
let n =
|
|
5254
|
+
let dt = (e, t) => String(qp(e, t, p)), ft = (e, t) => String(dt(e, t)) === String(de ?? ""), pt = (e, t) => {
|
|
5255
|
+
let n = dt(e, t);
|
|
5256
5256
|
n && ue?.(e, n);
|
|
5257
|
-
},
|
|
5257
|
+
}, mt = (e, t) => {
|
|
5258
5258
|
Ge(e), qe(t), pe?.(e, t);
|
|
5259
|
-
}, [
|
|
5259
|
+
}, [ht, gt] = L(a), [_t, vt] = L(a.length), [yt, bt] = L([]), [xt, St] = L([]), [Ct, wt] = L(""), [Tt, Et] = L([]), [Dt, Ot] = L([]), [kt, At] = L(!1), [jt, Mt] = L(null), [Nt, Pt] = L(null), [Ft, It] = L(!1), Lt = !!(te || M || ne), Rt = Lt ? a : ht, zt = Lt ? A ?? 0 : _t, Bt = Lt ? T : xt, Vt = I(() => Rt.some((e) => Vf(e)), [Rt]), Ht = I(() => Bt.some((e) => Bf(e)), [Bt]), Ut = Vt || Ht ? "card" : se, Wt = n.length > 0 ? n : Tt, Gt = r.length > 0 ? r : Dt, Kt = I(() => nm(Wt), [Wt]), qt = I(() => new Map(tm(Kt).map((e) => [e.key, e])), [Kt]), Jt = I(() => em(Kt, (e) => {
|
|
5260
5260
|
let t = Uu(e);
|
|
5261
5261
|
return t === "add" && !Oe || t === "edit" && !ke || t === "delete" && !Ae || !ge(e.permission, Te) || e.showInList === !1 ? !1 : e.allowedTabs ? e.allowedTabs.some((e) => Hp(e) === Hp(Pe)) : !0;
|
|
5262
5262
|
}), [
|
|
5263
|
-
|
|
5263
|
+
Kt,
|
|
5264
5264
|
Pe,
|
|
5265
5265
|
Oe,
|
|
5266
5266
|
ke,
|
|
5267
5267
|
Ae,
|
|
5268
5268
|
Te
|
|
5269
|
-
]),
|
|
5269
|
+
]), Yt = I(() => em(Jt, (e) => (We.length === 1 || e.allowMultiple || e.danger) && rm(e, Ke) && !ad(e.key, Ke, Gt, Pe)), [
|
|
5270
5270
|
Pe,
|
|
5271
|
-
|
|
5271
|
+
Gt,
|
|
5272
5272
|
We.length,
|
|
5273
5273
|
Ke,
|
|
5274
|
-
|
|
5275
|
-
]),
|
|
5274
|
+
Jt
|
|
5275
|
+
]), Xt = typeof e == "string" ? e.trim().length > 0 : !!e, Zt = Xt ? `/${Te}-create${le ? `?action=${encodeURIComponent(le)}` : ""}` : "";
|
|
5276
5276
|
F(() => {
|
|
5277
|
-
|
|
5277
|
+
Xt && !De && Ce("/", { replace: !0 });
|
|
5278
5278
|
}, [
|
|
5279
5279
|
De,
|
|
5280
|
-
|
|
5280
|
+
Xt,
|
|
5281
5281
|
Ce
|
|
5282
5282
|
]);
|
|
5283
|
-
let
|
|
5283
|
+
let Qt = (e, { replace: t = !1 } = {}) => {
|
|
5284
5284
|
let n = new URLSearchParams(Me);
|
|
5285
5285
|
um(n);
|
|
5286
5286
|
let r = [n.toString(), e > 1 ? `p${e}` : ""].filter(Boolean).join("&");
|
|
@@ -5288,22 +5288,22 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5288
5288
|
pathname: we.pathname,
|
|
5289
5289
|
search: r ? `?${r}` : ""
|
|
5290
5290
|
}, { replace: t });
|
|
5291
|
-
},
|
|
5291
|
+
}, $t = (e, t) => {
|
|
5292
5292
|
Ze((t) => ({
|
|
5293
5293
|
...t,
|
|
5294
5294
|
current: e
|
|
5295
|
-
})),
|
|
5296
|
-
},
|
|
5297
|
-
|
|
5298
|
-
}, { config:
|
|
5295
|
+
})), Qt(e, t);
|
|
5296
|
+
}, en = () => {
|
|
5297
|
+
$t(1, { replace: !0 });
|
|
5298
|
+
}, { config: tn, loading: nn, error: rn } = ju(!Lt && Xt ? e : null), an = ui((e) => {
|
|
5299
5299
|
let t = Qe.sort === e, n = im(Qe.sortDir, t), r = n ? String(e) : "";
|
|
5300
5300
|
$e({
|
|
5301
5301
|
sort: r,
|
|
5302
5302
|
sortDir: n
|
|
5303
|
-
}), typeof ne == "function" && ne(r, n),
|
|
5303
|
+
}), typeof ne == "function" && ne(r, n), en();
|
|
5304
5304
|
}, [
|
|
5305
5305
|
ne,
|
|
5306
|
-
|
|
5306
|
+
en,
|
|
5307
5307
|
Qe.sort,
|
|
5308
5308
|
Qe.sortDir
|
|
5309
5309
|
]);
|
|
@@ -5313,7 +5313,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5313
5313
|
current: Ne
|
|
5314
5314
|
});
|
|
5315
5315
|
}, [Ne]), F(() => {
|
|
5316
|
-
|
|
5316
|
+
Lt && Ze((e) => {
|
|
5317
5317
|
let t = cm(j ?? e.current), n = Number(ee) > 0 ? Number(ee) : e.pageSize;
|
|
5318
5318
|
return e.current === t && e.pageSize === n ? e : {
|
|
5319
5319
|
current: t,
|
|
@@ -5323,46 +5323,58 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5323
5323
|
}, [
|
|
5324
5324
|
j,
|
|
5325
5325
|
ee,
|
|
5326
|
-
|
|
5326
|
+
Lt
|
|
5327
5327
|
]);
|
|
5328
|
-
let
|
|
5328
|
+
let on = we.state?.refreshTimestamp;
|
|
5329
5329
|
F(() => {
|
|
5330
|
-
|
|
5331
|
-
}, [
|
|
5332
|
-
let
|
|
5333
|
-
let e = [...Array.isArray(S) ? S : [], ...
|
|
5330
|
+
on && (mt([], []), Ye((e) => e + 1));
|
|
5331
|
+
}, [on]);
|
|
5332
|
+
let sn = I(() => {
|
|
5333
|
+
let e = [...Array.isArray(S) ? S : [], ...yt], t = Wp(Pe);
|
|
5334
5334
|
return e.find((e, n) => Wp(Up(e, n)) === t);
|
|
5335
5335
|
}, [
|
|
5336
5336
|
Pe,
|
|
5337
|
-
|
|
5337
|
+
yt,
|
|
5338
5338
|
S
|
|
5339
|
-
]),
|
|
5339
|
+
]), cn = sn?.field ?? sn?.fieldName ?? sn?.filterField ?? sn?.dataIndex ?? Ct, ln = Gp(Pe) ? "" : Pe, un = !ln && !Gp(Pe) && Hp(cn).length > 0, dn = Re.trim().length >= 3, fn = dn ? Re.trim() : "", pn = He.some((e) => e.field), mn = sm({
|
|
5340
5340
|
moduleName: e,
|
|
5341
|
-
activeTabScope:
|
|
5341
|
+
activeTabScope: ln,
|
|
5342
5342
|
pageSize: Xe.pageSize,
|
|
5343
5343
|
sort: Qe.sort,
|
|
5344
5344
|
sortDir: Qe.sortDir,
|
|
5345
5345
|
queryParams: je
|
|
5346
|
-
}),
|
|
5346
|
+
}), hn = Xe.current === 1 && Nt?.key === mn, gn = Number(Nt?.total), _n = dn ? Number.isFinite(gn) && gn > 0 ? gn : _t : 0;
|
|
5347
5347
|
F(() => {
|
|
5348
|
-
if (
|
|
5349
|
-
if (!
|
|
5350
|
-
|
|
5348
|
+
if (Lt) return;
|
|
5349
|
+
if (!Xt) {
|
|
5350
|
+
gt([]), vt(0), bt([]), St([]), wt(""), Et([]), Ot([]), Mt(null);
|
|
5351
|
+
return;
|
|
5352
|
+
}
|
|
5353
|
+
let t = Wp(ln);
|
|
5354
|
+
if (ut.current && ut.current === t) {
|
|
5355
|
+
ut.current = "";
|
|
5351
5356
|
return;
|
|
5352
5357
|
}
|
|
5353
|
-
let
|
|
5354
|
-
return
|
|
5355
|
-
scope:
|
|
5358
|
+
let n = !1, r = dn && _n > Xe.pageSize, i = r ? _n : Xe.pageSize, a = r ? 0 : (Xe.current - 1) * Xe.pageSize;
|
|
5359
|
+
return At(!(!dn && !pn && Xe.current === 1 && hn)), Mt(null), _e(e, i, a, {
|
|
5360
|
+
scope: ln,
|
|
5356
5361
|
sort: Qe.sort,
|
|
5357
5362
|
sortDir: Qe.sortDir,
|
|
5358
|
-
search:
|
|
5363
|
+
search: fn,
|
|
5359
5364
|
filters: He,
|
|
5360
5365
|
queryParams: je
|
|
5361
|
-
}).then((
|
|
5362
|
-
if (
|
|
5363
|
-
let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } = ve(
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
+
}).then((t) => {
|
|
5367
|
+
if (n) return;
|
|
5368
|
+
let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } = ve(t, e), u = !me && Gp(Pe) && Array.isArray(a) && a.length > 0 && !a.some((e, t) => Gp(Up(e, t))) ? Up(a[0], 0) : "", d = sm({
|
|
5369
|
+
moduleName: e,
|
|
5370
|
+
activeTabScope: u ? String(u) : ln,
|
|
5371
|
+
pageSize: Xe.pageSize,
|
|
5372
|
+
sort: Qe.sort,
|
|
5373
|
+
sortDir: Qe.sortDir,
|
|
5374
|
+
queryParams: je
|
|
5375
|
+
});
|
|
5376
|
+
gt(r), vt(i), bt(a), St(o), wt(s), Et(c), Ot(l), u && (ut.current = Wp(u), Fe((e) => Wp(e) === Wp(u) ? e : String(u))), !dn && !pn && Xe.current === 1 && Pt({
|
|
5377
|
+
key: d,
|
|
5366
5378
|
rows: r,
|
|
5367
5379
|
total: i,
|
|
5368
5380
|
tabs: a,
|
|
@@ -5372,34 +5384,35 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5372
5384
|
actionRules: l
|
|
5373
5385
|
});
|
|
5374
5386
|
}).catch((e) => {
|
|
5375
|
-
|
|
5387
|
+
n || (gt([]), vt(0), bt([]), St([]), wt(""), Et([]), Ot([]), Mt(e.message), Xt && q.error("Invalid module name or data could not be loaded."));
|
|
5376
5388
|
}).finally(() => {
|
|
5377
|
-
|
|
5389
|
+
n || At(!1);
|
|
5378
5390
|
}), () => {
|
|
5379
|
-
|
|
5391
|
+
n = !0;
|
|
5380
5392
|
};
|
|
5381
5393
|
}, [
|
|
5382
|
-
|
|
5383
|
-
|
|
5394
|
+
fn,
|
|
5395
|
+
Pe,
|
|
5396
|
+
ln,
|
|
5384
5397
|
He,
|
|
5385
|
-
pn,
|
|
5386
5398
|
_e,
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5399
|
+
pn,
|
|
5400
|
+
dn,
|
|
5401
|
+
Xt,
|
|
5402
|
+
Lt,
|
|
5391
5403
|
e,
|
|
5392
|
-
gt,
|
|
5393
5404
|
Xe.current,
|
|
5394
5405
|
Xe.pageSize,
|
|
5395
5406
|
Je,
|
|
5396
5407
|
ve,
|
|
5408
|
+
_n,
|
|
5409
|
+
me,
|
|
5397
5410
|
Qe.sort,
|
|
5398
5411
|
Qe.sortDir,
|
|
5399
5412
|
je
|
|
5400
5413
|
]);
|
|
5401
|
-
let
|
|
5402
|
-
let e =
|
|
5414
|
+
let vn = I(() => {
|
|
5415
|
+
let e = Lt && Array.isArray(T) && T.length, t = !Lt && Array.isArray(xt) && xt.length, n = !rn && Array.isArray(tn) && tn.length, r = e ? T : t ? xt : n ? tn : [], i = new Map(xt.map((e) => [Mf(e), e]).filter(([e]) => e)), a = r.map((e) => {
|
|
5403
5416
|
let t = Mf(e), n = i.get(t) ?? {}, r = t && E && typeof E == "object" ? E[t] : null, a = r?.renderConfig ? {
|
|
5404
5417
|
...n.renderConfig ?? e.renderConfig ?? {},
|
|
5405
5418
|
...r.renderConfig
|
|
@@ -5424,46 +5437,46 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5424
5437
|
}).filter(Boolean);
|
|
5425
5438
|
return yp([...a, ...o]);
|
|
5426
5439
|
}, [
|
|
5427
|
-
|
|
5428
|
-
|
|
5440
|
+
tn,
|
|
5441
|
+
rn,
|
|
5429
5442
|
T,
|
|
5430
5443
|
D,
|
|
5431
5444
|
E,
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
]),
|
|
5445
|
+
Lt,
|
|
5446
|
+
xt
|
|
5447
|
+
]), yn = I(() => vn.filter((e) => typeof e.isVisible == "boolean" ? e.isVisible : typeof e.isVisible == "string" ? e.isVisible.toLowerCase() === "true" : !0).map((e) => ({
|
|
5435
5448
|
key: e.key,
|
|
5436
5449
|
label: e.label
|
|
5437
|
-
})), [
|
|
5438
|
-
let e = Ie.toLowerCase(), t =
|
|
5450
|
+
})), [vn]), bn = yn.map((e) => e.key), xn = et.filter((e) => bn.includes(e)), Sn = xn.length ? xn : yn.slice(0, be).map((e) => e.key), Cn = Math.min(be, yn.length), wn = Sn.length > be, Tn = I(() => vn.filter((e) => !e.cardHidden && (e.tableHidden || Sn.includes(e.key))), [vn, Sn]), Dn = I(() => {
|
|
5451
|
+
let e = Ie.toLowerCase(), t = Rt, n = un ? t.filter((e) => Kp(e, Pe, sn, vn, cn)) : t, r = N.length ? vn.filter((e) => N.includes(e.key)) : vn;
|
|
5439
5452
|
return !e || e.length < 3 ? n : n.filter((t) => r.some((n) => String(Hf(t, n.key)).toLowerCase().includes(e) || Tp(n).some((n) => String(Hf(t, n)).toLowerCase().includes(e))));
|
|
5440
5453
|
}, [
|
|
5441
5454
|
Pe,
|
|
5442
|
-
on,
|
|
5443
5455
|
sn,
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5456
|
+
cn,
|
|
5457
|
+
un,
|
|
5458
|
+
Rt,
|
|
5459
|
+
vn,
|
|
5447
5460
|
Ie,
|
|
5448
5461
|
N
|
|
5449
|
-
]),
|
|
5450
|
-
if (!
|
|
5462
|
+
]), On = I(() => {
|
|
5463
|
+
if (!dn) return Dn;
|
|
5451
5464
|
let e = (Xe.current - 1) * Xe.pageSize;
|
|
5452
|
-
return
|
|
5465
|
+
return Dn.slice(e, e + Xe.pageSize);
|
|
5453
5466
|
}, [
|
|
5454
|
-
|
|
5455
|
-
|
|
5467
|
+
Dn,
|
|
5468
|
+
dn,
|
|
5456
5469
|
Xe.current,
|
|
5457
5470
|
Xe.pageSize
|
|
5458
|
-
]),
|
|
5459
|
-
let t = Array.isArray(S) ? S : [], n = t.length ? t :
|
|
5471
|
+
]), kn = dn ? Dn.length : zt, An = Re.trim().length >= 3, jn = String(Dn.length).padStart(2, "0"), Mn = zt > 0 || Rt.length > 0, Nn = Xt ? jt ? "Invalid module name or data could not be loaded." : rn ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", Pn = I(() => !C || typeof C != "object" ? null : Object.entries(C).reduce((e, [t, n]) => (n == null || (e[String(t)] = String(n)), e), {}), [C]), Fn = I(() => {
|
|
5472
|
+
let t = Array.isArray(S) ? S : [], n = t.length ? t : yt.length ? yt : [{
|
|
5460
5473
|
key: "all",
|
|
5461
5474
|
title: e ?? "List",
|
|
5462
|
-
count:
|
|
5475
|
+
count: kn
|
|
5463
5476
|
}];
|
|
5464
|
-
return !
|
|
5477
|
+
return !Pn || !Object.keys(Pn).length ? n : n.map((e, t) => {
|
|
5465
5478
|
if (!e || typeof e != "object") return e;
|
|
5466
|
-
let n = Up(e, t), r =
|
|
5479
|
+
let n = Up(e, t), r = Pn[String(n)];
|
|
5467
5480
|
return r ? {
|
|
5468
5481
|
...e,
|
|
5469
5482
|
title: r
|
|
@@ -5471,37 +5484,37 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5471
5484
|
});
|
|
5472
5485
|
}, [
|
|
5473
5486
|
e,
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5487
|
+
yt,
|
|
5488
|
+
Pn,
|
|
5489
|
+
kn,
|
|
5477
5490
|
S
|
|
5478
5491
|
]);
|
|
5479
5492
|
F(() => {
|
|
5480
|
-
if (!
|
|
5493
|
+
if (!Fn.length) return;
|
|
5481
5494
|
let e = Wp(Pe);
|
|
5482
|
-
if (!
|
|
5483
|
-
let e = Up(
|
|
5495
|
+
if (!Fn.some((t, n) => Wp(Up(t, n)) === e)) {
|
|
5496
|
+
let e = Up(Fn[0], 0);
|
|
5484
5497
|
e && Fe(String(e));
|
|
5485
5498
|
}
|
|
5486
|
-
}, [Pe,
|
|
5487
|
-
if (me === void 0 || !
|
|
5499
|
+
}, [Pe, Fn]), F(() => {
|
|
5500
|
+
if (me === void 0 || !Fn.length || me === lt.current) return;
|
|
5488
5501
|
lt.current = me;
|
|
5489
|
-
let e =
|
|
5502
|
+
let e = Fn.find((e, t) => Wp(Up(e, t)) === Wp(me)), t = e ? String(Up(e, Fn.indexOf(e))) : "";
|
|
5490
5503
|
t && Fe((e) => t === e ? e : t);
|
|
5491
|
-
}, [
|
|
5492
|
-
let
|
|
5504
|
+
}, [Fn, me]);
|
|
5505
|
+
let In = (e) => {
|
|
5493
5506
|
Ce("/popup/preview", { state: {
|
|
5494
5507
|
background: we,
|
|
5495
5508
|
moduleName: Te,
|
|
5496
5509
|
record: e,
|
|
5497
|
-
fields:
|
|
5510
|
+
fields: vn.map((e) => {
|
|
5498
5511
|
let t = {};
|
|
5499
5512
|
return Object.entries(e).forEach(([e, n]) => {
|
|
5500
5513
|
typeof n != "function" && (t[e] = n);
|
|
5501
5514
|
}), t;
|
|
5502
5515
|
})
|
|
5503
5516
|
} });
|
|
5504
|
-
},
|
|
5517
|
+
}, Ln = (e, t, n = {}) => {
|
|
5505
5518
|
let r = tp(e, t), i = r.startsWith("/") ? r : `/${r}`, a = t?._id ?? t?.id;
|
|
5506
5519
|
Ce(i, { state: {
|
|
5507
5520
|
background: we,
|
|
@@ -5522,7 +5535,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5522
5535
|
requireJobId: n.requireJobId,
|
|
5523
5536
|
...n.popupState
|
|
5524
5537
|
} });
|
|
5525
|
-
},
|
|
5538
|
+
}, Rn = I(() => {
|
|
5526
5539
|
let e = {
|
|
5527
5540
|
dataIndex: "icons",
|
|
5528
5541
|
key: "icons",
|
|
@@ -5536,7 +5549,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5536
5549
|
type: "button",
|
|
5537
5550
|
className: "job-row-eye-button",
|
|
5538
5551
|
"aria-label": "Preview job",
|
|
5539
|
-
onClick: () =>
|
|
5552
|
+
onClick: () => In(t),
|
|
5540
5553
|
children: /* @__PURE__ */ Y("img", {
|
|
5541
5554
|
src: Of,
|
|
5542
5555
|
alt: "",
|
|
@@ -5547,29 +5560,29 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5547
5560
|
children: /* @__PURE__ */ Y(no, { className: "job-row-linkedin-icon" })
|
|
5548
5561
|
})]
|
|
5549
5562
|
})
|
|
5550
|
-
}, t =
|
|
5563
|
+
}, t = vn.filter((e) => Sn.includes(e.key)).map((e, t) => {
|
|
5551
5564
|
let n = Qe.sort === e.key ? Qe.sortDir : "";
|
|
5552
5565
|
return {
|
|
5553
5566
|
title: om({
|
|
5554
5567
|
label: e.label,
|
|
5555
5568
|
sortDir: n,
|
|
5556
|
-
sortable:
|
|
5557
|
-
onSort: () =>
|
|
5569
|
+
sortable: Mn,
|
|
5570
|
+
onSort: () => an(e.key)
|
|
5558
5571
|
}),
|
|
5559
5572
|
dataIndex: e.key,
|
|
5560
5573
|
key: e.key,
|
|
5561
5574
|
fixed: t === 0 ? "left" : void 0,
|
|
5562
5575
|
ellipsis: { showTitle: !1 },
|
|
5563
|
-
width: Vp(e,
|
|
5564
|
-
render: (t, n) => Np(e, n, Re,
|
|
5576
|
+
width: Vp(e, On),
|
|
5577
|
+
render: (t, n) => Np(e, n, Re, Ln, {
|
|
5565
5578
|
canAdd: Oe,
|
|
5566
5579
|
canEdit: ke,
|
|
5567
5580
|
canDelete: Ae
|
|
5568
|
-
},
|
|
5581
|
+
}, Gt, ln)
|
|
5569
5582
|
};
|
|
5570
5583
|
});
|
|
5571
|
-
if (!(
|
|
5572
|
-
let n = e.width + (
|
|
5584
|
+
if (!(wn || Lt) && st > 0 && t.length > 0) {
|
|
5585
|
+
let n = e.width + (Mn && P === "checkbox" ? 48 : 0) + Bp, r = t.reduce((e, t) => e + t.width, 0), i = st - n - r;
|
|
5573
5586
|
i > 0 && r > 0 && t.forEach((e) => {
|
|
5574
5587
|
e.width = Math.floor(e.width + i * (e.width / r));
|
|
5575
5588
|
});
|
|
@@ -5581,35 +5594,35 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5581
5594
|
Ae,
|
|
5582
5595
|
ke,
|
|
5583
5596
|
Re,
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5597
|
+
Gt,
|
|
5598
|
+
an,
|
|
5599
|
+
wn,
|
|
5600
|
+
Mn,
|
|
5601
|
+
Lt,
|
|
5589
5602
|
we,
|
|
5590
5603
|
e,
|
|
5591
5604
|
Ce,
|
|
5592
|
-
|
|
5593
|
-
|
|
5605
|
+
vn,
|
|
5606
|
+
On,
|
|
5594
5607
|
P,
|
|
5595
5608
|
Qe.sort,
|
|
5596
5609
|
Qe.sortDir,
|
|
5597
5610
|
st,
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
]),
|
|
5601
|
-
let t =
|
|
5602
|
-
if (Fe(n), Ge([]), qe([]),
|
|
5611
|
+
Jt,
|
|
5612
|
+
Sn
|
|
5613
|
+
]), zn = ui((e) => {
|
|
5614
|
+
let t = Fn.find((t, n) => Wp(Up(t, n)) === Wp(e)), n = String(t ? Up(t, Fn.indexOf(t)) : e);
|
|
5615
|
+
if (Fe(n), Ge([]), qe([]), en(), typeof he == "function") {
|
|
5603
5616
|
let e = t?.key ?? t?.value ?? t?.id ?? n;
|
|
5604
5617
|
lt.current = e, he(e);
|
|
5605
5618
|
}
|
|
5606
5619
|
}, [
|
|
5607
5620
|
he,
|
|
5608
|
-
|
|
5609
|
-
|
|
5621
|
+
Fn,
|
|
5622
|
+
en
|
|
5610
5623
|
]);
|
|
5611
|
-
function
|
|
5612
|
-
let r =
|
|
5624
|
+
function Bn(e, t, n) {
|
|
5625
|
+
let r = qt.get(String(e));
|
|
5613
5626
|
if (r && r.actionType !== "group") {
|
|
5614
5627
|
if (typeof u == "function" && u({
|
|
5615
5628
|
key: r.key,
|
|
@@ -5673,16 +5686,16 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5673
5686
|
}
|
|
5674
5687
|
}
|
|
5675
5688
|
}
|
|
5676
|
-
function
|
|
5677
|
-
let t = tm(
|
|
5678
|
-
t && $p(t, Ke, Pe) ||
|
|
5689
|
+
function Vn({ key: e }) {
|
|
5690
|
+
let t = tm(Yt).find((t) => String(t.key) === String(e));
|
|
5691
|
+
t && $p(t, Ke, Pe) || Bn(e, We, Ke);
|
|
5679
5692
|
}
|
|
5680
|
-
let
|
|
5693
|
+
let Hn = Sn.length === yn.length, Un = Sn.length > 0 && !Hn, Wn = (e, t) => {
|
|
5681
5694
|
tt((n) => {
|
|
5682
|
-
let r =
|
|
5683
|
-
return t ? i.includes(e) ? i : [...i, e] : i.length <=
|
|
5695
|
+
let r = yn.slice(0, be).map((e) => e.key), i = n.length ? n : r;
|
|
5696
|
+
return t ? i.includes(e) ? i : [...i, e] : i.length <= Cn ? i : i.filter((t) => t !== e);
|
|
5684
5697
|
});
|
|
5685
|
-
},
|
|
5698
|
+
}, Gn = () => {
|
|
5686
5699
|
if (typeof d == "function") {
|
|
5687
5700
|
d();
|
|
5688
5701
|
return;
|
|
@@ -5691,57 +5704,57 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5691
5704
|
Ce(_);
|
|
5692
5705
|
return;
|
|
5693
5706
|
}
|
|
5694
|
-
|
|
5695
|
-
},
|
|
5707
|
+
It(!0);
|
|
5708
|
+
}, Kn = () => {
|
|
5696
5709
|
x && Ce(x);
|
|
5697
5710
|
};
|
|
5698
5711
|
F(() => {
|
|
5699
|
-
if (!
|
|
5712
|
+
if (!Ft) return;
|
|
5700
5713
|
let e = (e) => {
|
|
5701
|
-
e.key === "Escape" &&
|
|
5714
|
+
e.key === "Escape" && It(!1);
|
|
5702
5715
|
};
|
|
5703
5716
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
5704
|
-
}, [
|
|
5705
|
-
let
|
|
5706
|
-
|
|
5707
|
-
},
|
|
5717
|
+
}, [Ft]);
|
|
5718
|
+
let qn = () => {
|
|
5719
|
+
hn && (gt(Nt.rows), vt(Nt.total), bt(Nt.tabs), St(Nt.fields), wt(Nt.tabField), Et(Nt.actions ?? []), Ot(Nt.actionRules ?? []), Mt(null), At(!1));
|
|
5720
|
+
}, Jn = (e) => {
|
|
5708
5721
|
let t = e.target.value, n = t.trim().length < 3, r = He.some((e) => e.field);
|
|
5709
|
-
n && (ze(""), r ||
|
|
5710
|
-
},
|
|
5722
|
+
n && (ze(""), r || qn()), Le(t), en();
|
|
5723
|
+
}, Yn = () => {
|
|
5711
5724
|
let e = Ie.trim();
|
|
5712
|
-
e.length >= 3 && (ze(e),
|
|
5713
|
-
},
|
|
5714
|
-
|
|
5725
|
+
e.length >= 3 && (ze(e), en());
|
|
5726
|
+
}, Xn = () => {
|
|
5727
|
+
qn(), Ue([]), mt([], []), en();
|
|
5715
5728
|
};
|
|
5716
5729
|
F(() => {
|
|
5717
|
-
|
|
5730
|
+
Ut === "card" && (at([]), mt([], []));
|
|
5718
5731
|
}, [
|
|
5719
5732
|
Xe.current,
|
|
5720
5733
|
Xe.pageSize,
|
|
5721
5734
|
Pe,
|
|
5722
|
-
|
|
5735
|
+
Ut
|
|
5723
5736
|
]);
|
|
5724
|
-
let
|
|
5737
|
+
let Zn = (e) => {
|
|
5725
5738
|
at((t) => {
|
|
5726
5739
|
let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
|
|
5727
|
-
return
|
|
5740
|
+
return mt(n, On.filter((e, t) => n.includes(String(qp(e, t, p))))), n;
|
|
5728
5741
|
});
|
|
5729
|
-
},
|
|
5742
|
+
}, Qn = /* @__PURE__ */ X("div", {
|
|
5730
5743
|
className: "column-visibility-menu",
|
|
5731
5744
|
onClick: (e) => e.stopPropagation(),
|
|
5732
5745
|
children: [/* @__PURE__ */ Y(bi, {
|
|
5733
|
-
checked:
|
|
5734
|
-
indeterminate:
|
|
5746
|
+
checked: Hn,
|
|
5747
|
+
indeterminate: Un,
|
|
5735
5748
|
onChange: (e) => {
|
|
5736
|
-
tt(e.target.checked ?
|
|
5749
|
+
tt(e.target.checked ? yn.map((e) => e.key) : yn.slice(0, be).map((e) => e.key));
|
|
5737
5750
|
},
|
|
5738
5751
|
children: "Select All"
|
|
5739
5752
|
}), /* @__PURE__ */ Y("div", {
|
|
5740
5753
|
className: "column-visibility-menu__list",
|
|
5741
|
-
children:
|
|
5742
|
-
checked:
|
|
5743
|
-
disabled:
|
|
5744
|
-
onChange: (t) =>
|
|
5754
|
+
children: yn.map((e) => /* @__PURE__ */ Y(bi, {
|
|
5755
|
+
checked: Sn.includes(e.key),
|
|
5756
|
+
disabled: Sn.includes(e.key) && Sn.length <= Cn,
|
|
5757
|
+
onChange: (t) => Wn(e.key, t.target.checked),
|
|
5745
5758
|
children: e.label
|
|
5746
5759
|
}, e.key))
|
|
5747
5760
|
})]
|
|
@@ -5760,34 +5773,34 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5760
5773
|
justify: "space-between",
|
|
5761
5774
|
children: [/* @__PURE__ */ Y(Os, {
|
|
5762
5775
|
activeKey: Pe,
|
|
5763
|
-
tabs:
|
|
5764
|
-
onChange:
|
|
5776
|
+
tabs: Fn,
|
|
5777
|
+
onChange: zn
|
|
5765
5778
|
}), /* @__PURE__ */ X(Di, {
|
|
5766
5779
|
align: "center",
|
|
5767
5780
|
gap: 8,
|
|
5768
5781
|
children: [
|
|
5769
5782
|
re,
|
|
5770
|
-
|
|
5783
|
+
Mn && /* @__PURE__ */ Y(V, {
|
|
5771
5784
|
prefix: /* @__PURE__ */ Y(Eo, { className: "job-search-icon" }),
|
|
5772
5785
|
placeholder: ae,
|
|
5773
5786
|
value: Ie,
|
|
5774
|
-
onChange:
|
|
5775
|
-
onPressEnter:
|
|
5787
|
+
onChange: Jn,
|
|
5788
|
+
onPressEnter: Yn,
|
|
5776
5789
|
allowClear: !0,
|
|
5777
5790
|
className: "job-search-input"
|
|
5778
5791
|
}),
|
|
5779
|
-
!
|
|
5792
|
+
!Lt && Oe && xe && /* @__PURE__ */ Y(K, {
|
|
5780
5793
|
title: "Add",
|
|
5781
5794
|
children: /* @__PURE__ */ Y(R, {
|
|
5782
5795
|
"aria-label": "Add",
|
|
5783
5796
|
className: "job-toolbar-icon-button",
|
|
5784
5797
|
icon: /* @__PURE__ */ Y(ho, {}),
|
|
5785
5798
|
onClick: () => {
|
|
5786
|
-
|
|
5799
|
+
Zt && Ce(Zt);
|
|
5787
5800
|
}
|
|
5788
5801
|
})
|
|
5789
5802
|
}),
|
|
5790
|
-
|
|
5803
|
+
Mn && /* @__PURE__ */ Y(K, {
|
|
5791
5804
|
title: "Filter",
|
|
5792
5805
|
children: /* @__PURE__ */ Y(_i, {
|
|
5793
5806
|
count: He.filter((e) => e.field && mm(e)).length,
|
|
@@ -5801,25 +5814,25 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5801
5814
|
})
|
|
5802
5815
|
})
|
|
5803
5816
|
}),
|
|
5804
|
-
oe &&
|
|
5817
|
+
oe && Mn && /* @__PURE__ */ X(Di, {
|
|
5805
5818
|
align: "center",
|
|
5806
5819
|
gap: 6,
|
|
5807
5820
|
children: [/* @__PURE__ */ Y(K, {
|
|
5808
5821
|
title: "List View",
|
|
5809
5822
|
children: /* @__PURE__ */ Y(R, {
|
|
5810
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5823
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${Ut === "list" ? " param-view-toggle-btn--active" : ""}`,
|
|
5811
5824
|
icon: /* @__PURE__ */ Y(Vo, {}),
|
|
5812
5825
|
onClick: () => {
|
|
5813
|
-
ce?.("list"), at([]),
|
|
5826
|
+
ce?.("list"), at([]), mt([], []);
|
|
5814
5827
|
}
|
|
5815
5828
|
})
|
|
5816
5829
|
}), /* @__PURE__ */ Y(K, {
|
|
5817
5830
|
title: "Card View",
|
|
5818
5831
|
children: /* @__PURE__ */ Y(R, {
|
|
5819
|
-
className: `job-toolbar-icon-button param-view-toggle-btn${
|
|
5832
|
+
className: `job-toolbar-icon-button param-view-toggle-btn${Ut === "card" ? " param-view-toggle-btn--active" : ""}`,
|
|
5820
5833
|
icon: /* @__PURE__ */ Y(ta, {}),
|
|
5821
5834
|
onClick: () => {
|
|
5822
|
-
ce?.("card"), at([]),
|
|
5835
|
+
ce?.("card"), at([]), mt([], []);
|
|
5823
5836
|
}
|
|
5824
5837
|
})
|
|
5825
5838
|
})]
|
|
@@ -5827,20 +5840,20 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5827
5840
|
m && /* @__PURE__ */ Y(R, {
|
|
5828
5841
|
className: "job-summary-button",
|
|
5829
5842
|
type: "primary",
|
|
5830
|
-
onClick:
|
|
5843
|
+
onClick: Gn,
|
|
5831
5844
|
children: h
|
|
5832
5845
|
}),
|
|
5833
5846
|
v && x && /* @__PURE__ */ Y(R, {
|
|
5834
5847
|
className: "job-summary-button",
|
|
5835
5848
|
type: "primary",
|
|
5836
|
-
onClick:
|
|
5849
|
+
onClick: Kn,
|
|
5837
5850
|
children: b
|
|
5838
5851
|
})
|
|
5839
5852
|
]
|
|
5840
5853
|
})]
|
|
5841
5854
|
})
|
|
5842
5855
|
}),
|
|
5843
|
-
|
|
5856
|
+
Mn && /* @__PURE__ */ Y(J, { children: /* @__PURE__ */ Y(yi, {
|
|
5844
5857
|
className: "job-toolbar-card",
|
|
5845
5858
|
children: /* @__PURE__ */ X(Di, {
|
|
5846
5859
|
className: "p-flex",
|
|
@@ -5850,15 +5863,15 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5850
5863
|
align: "center",
|
|
5851
5864
|
gap: 3,
|
|
5852
5865
|
children: [
|
|
5853
|
-
|
|
5854
|
-
checked:
|
|
5855
|
-
indeterminate: it.length > 0 && it.length <
|
|
5866
|
+
Ut === "card" && /* @__PURE__ */ Y(bi, {
|
|
5867
|
+
checked: On.length > 0 && it.length >= On.length,
|
|
5868
|
+
indeterminate: it.length > 0 && it.length < On.length,
|
|
5856
5869
|
className: "param-card-view__select-all",
|
|
5857
5870
|
onChange: () => {
|
|
5858
|
-
if (it.length > 0) at([]),
|
|
5871
|
+
if (it.length > 0) at([]), mt([], []);
|
|
5859
5872
|
else {
|
|
5860
|
-
let e =
|
|
5861
|
-
at(e),
|
|
5873
|
+
let e = On.map((e, t) => String(qp(e, t, p)));
|
|
5874
|
+
at(e), mt(e, [...On]);
|
|
5862
5875
|
}
|
|
5863
5876
|
},
|
|
5864
5877
|
children: "Select All"
|
|
@@ -5867,7 +5880,7 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5867
5880
|
open: nt,
|
|
5868
5881
|
onOpenChange: rt,
|
|
5869
5882
|
trigger: ["click"],
|
|
5870
|
-
dropdownRender: () =>
|
|
5883
|
+
dropdownRender: () => Qn,
|
|
5871
5884
|
placement: "bottomLeft",
|
|
5872
5885
|
overlayClassName: "column-visibility-dropdown",
|
|
5873
5886
|
children: /* @__PURE__ */ Y(R, {
|
|
@@ -5883,10 +5896,10 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5883
5896
|
children: /* @__PURE__ */ Y(ka, { className: "job-actions-caret" })
|
|
5884
5897
|
})
|
|
5885
5898
|
}),
|
|
5886
|
-
|
|
5899
|
+
Yt.length > 0 && We.length > 0 && /* @__PURE__ */ Y(Ti, {
|
|
5887
5900
|
menu: {
|
|
5888
|
-
items:
|
|
5889
|
-
onClick:
|
|
5901
|
+
items: Yt.map((e) => Qp(e, $p(e, Ke, Pe))),
|
|
5902
|
+
onClick: Vn
|
|
5890
5903
|
},
|
|
5891
5904
|
trigger: ["click"],
|
|
5892
5905
|
children: /* @__PURE__ */ X(R, {
|
|
@@ -5913,51 +5926,51 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5913
5926
|
]
|
|
5914
5927
|
})
|
|
5915
5928
|
]
|
|
5916
|
-
}),
|
|
5929
|
+
}), An && /* @__PURE__ */ X(Af, {
|
|
5917
5930
|
className: "job-search-results-count",
|
|
5918
5931
|
children: [
|
|
5919
5932
|
"Search Results (",
|
|
5920
|
-
|
|
5933
|
+
jn,
|
|
5921
5934
|
")"
|
|
5922
5935
|
]
|
|
5923
5936
|
})]
|
|
5924
5937
|
})
|
|
5925
5938
|
}) }),
|
|
5926
|
-
|
|
5939
|
+
pn && /* @__PURE__ */ Y(_m, {
|
|
5927
5940
|
filters: He,
|
|
5928
5941
|
onRemove: (e) => {
|
|
5929
|
-
Ue(He.filter((t, n) => n !== e)),
|
|
5942
|
+
Ue(He.filter((t, n) => n !== e)), en();
|
|
5930
5943
|
},
|
|
5931
|
-
onClearAll:
|
|
5944
|
+
onClearAll: Xn
|
|
5932
5945
|
}),
|
|
5933
5946
|
/* @__PURE__ */ Y("div", {
|
|
5934
5947
|
ref: ot,
|
|
5935
5948
|
className: "job-table-measure",
|
|
5936
5949
|
children: /* @__PURE__ */ Y(Hi, {
|
|
5937
|
-
spinning:
|
|
5938
|
-
children:
|
|
5950
|
+
spinning: Lt ? k : nn || kt,
|
|
5951
|
+
children: Ut === "card" ? On.length === 0 ? /* @__PURE__ */ Y(Ei, {
|
|
5939
5952
|
image: Ei.PRESENTED_IMAGE_SIMPLE,
|
|
5940
|
-
description:
|
|
5953
|
+
description: Nn,
|
|
5941
5954
|
className: "param-card-view__empty",
|
|
5942
|
-
children: !
|
|
5955
|
+
children: !Lt && Oe && xe && Zt && !jt && /* @__PURE__ */ Y(R, {
|
|
5943
5956
|
type: "primary",
|
|
5944
5957
|
icon: /* @__PURE__ */ Y(ho, {}),
|
|
5945
|
-
onClick: () => Ce(
|
|
5958
|
+
onClick: () => Ce(Zt),
|
|
5946
5959
|
children: "Add New"
|
|
5947
5960
|
})
|
|
5948
5961
|
}) : /* @__PURE__ */ Y("div", {
|
|
5949
5962
|
className: "param-card-view__grid",
|
|
5950
|
-
children:
|
|
5963
|
+
children: On.map((e, t) => {
|
|
5951
5964
|
let n = String(qp(e, t, p));
|
|
5952
5965
|
return /* @__PURE__ */ Y(pm, {
|
|
5953
5966
|
record: e,
|
|
5954
|
-
fields:
|
|
5955
|
-
selected: P === "checkbox" ? it.includes(n) :
|
|
5956
|
-
isControlled:
|
|
5957
|
-
onPreview: () =>
|
|
5958
|
-
onSelect: () =>
|
|
5959
|
-
onPopupAction:
|
|
5960
|
-
onRecordClick: ue ? () =>
|
|
5967
|
+
fields: Tn,
|
|
5968
|
+
selected: P === "checkbox" ? it.includes(n) : ft(e, t),
|
|
5969
|
+
isControlled: Lt,
|
|
5970
|
+
onPreview: () => In(e),
|
|
5971
|
+
onSelect: () => Zn(n),
|
|
5972
|
+
onPopupAction: Ln,
|
|
5973
|
+
onRecordClick: ue ? () => pt(e, t) : void 0,
|
|
5961
5974
|
selectionMode: P,
|
|
5962
5975
|
permissions: {
|
|
5963
5976
|
canAdd: Oe,
|
|
@@ -5967,70 +5980,70 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5967
5980
|
}, n);
|
|
5968
5981
|
})
|
|
5969
5982
|
}) : /* @__PURE__ */ Y(Gi, {
|
|
5970
|
-
rowSelection:
|
|
5983
|
+
rowSelection: Mn && P === "checkbox" ? {
|
|
5971
5984
|
type: "checkbox",
|
|
5972
5985
|
fixed: !0,
|
|
5973
5986
|
columnWidth: 48,
|
|
5974
5987
|
selectedRowKeys: We,
|
|
5975
5988
|
onChange: (e, t) => {
|
|
5976
|
-
|
|
5989
|
+
mt(e, t);
|
|
5977
5990
|
},
|
|
5978
5991
|
columnTitle: (() => {
|
|
5979
|
-
let e =
|
|
5992
|
+
let e = On.length, t = e > 0 && We.length >= e, n = We.length > 0 && !t;
|
|
5980
5993
|
return /* @__PURE__ */ Y(bi, {
|
|
5981
5994
|
checked: t,
|
|
5982
5995
|
indeterminate: n,
|
|
5983
5996
|
onChange: () => {
|
|
5984
|
-
n || t ?
|
|
5997
|
+
n || t ? mt([], []) : mt(On.map((e, t) => qp(e, t, p)), [...On]);
|
|
5985
5998
|
}
|
|
5986
5999
|
});
|
|
5987
6000
|
})()
|
|
5988
6001
|
} : void 0,
|
|
5989
|
-
columns:
|
|
5990
|
-
dataSource:
|
|
6002
|
+
columns: Rn,
|
|
6003
|
+
dataSource: On,
|
|
5991
6004
|
size: "middle",
|
|
5992
6005
|
tableLayout: "fixed",
|
|
5993
6006
|
scroll: {
|
|
5994
|
-
x:
|
|
6007
|
+
x: wn || Lt ? "max-content" : void 0,
|
|
5995
6008
|
y: "calc(100vh - 300px)"
|
|
5996
6009
|
},
|
|
5997
6010
|
pagination: !1,
|
|
5998
6011
|
locale: { emptyText: /* @__PURE__ */ Y(Ei, {
|
|
5999
6012
|
image: Ei.PRESENTED_IMAGE_SIMPLE,
|
|
6000
|
-
description:
|
|
6013
|
+
description: Nn
|
|
6001
6014
|
}) },
|
|
6002
6015
|
className: `${w} ${fe ? "list-view-table--compact" : ""}`.trim(),
|
|
6003
6016
|
onRow: ue ? (e, t) => ({
|
|
6004
6017
|
onClick: (n) => {
|
|
6005
|
-
Jp(n.target) ||
|
|
6018
|
+
Jp(n.target) || pt(e, t);
|
|
6006
6019
|
},
|
|
6007
|
-
"aria-selected":
|
|
6020
|
+
"aria-selected": ft(e, t)
|
|
6008
6021
|
}) : void 0,
|
|
6009
|
-
rowClassName: de == null ? void 0 : (e, t) =>
|
|
6022
|
+
rowClassName: de == null ? void 0 : (e, t) => ft(e, t) ? "list-view-row--active" : "",
|
|
6010
6023
|
rowKey: (e, t) => qp(e, t, p)
|
|
6011
6024
|
})
|
|
6012
6025
|
})
|
|
6013
6026
|
}),
|
|
6014
|
-
|
|
6027
|
+
Mn ? /* @__PURE__ */ Y(xc, {
|
|
6015
6028
|
current: Xe.current,
|
|
6016
6029
|
pageSize: Xe.pageSize,
|
|
6017
|
-
total:
|
|
6030
|
+
total: kn,
|
|
6018
6031
|
onChange: (e, t) => {
|
|
6019
|
-
if (
|
|
6032
|
+
if (Lt && typeof te == "function") {
|
|
6020
6033
|
te(e, t ?? Xe.pageSize);
|
|
6021
6034
|
return;
|
|
6022
6035
|
}
|
|
6023
|
-
|
|
6036
|
+
$t(e);
|
|
6024
6037
|
},
|
|
6025
6038
|
onPageSizeChange: (e) => {
|
|
6026
|
-
if (
|
|
6039
|
+
if (Lt && typeof M == "function") {
|
|
6027
6040
|
M(e);
|
|
6028
6041
|
return;
|
|
6029
6042
|
}
|
|
6030
6043
|
Ze({
|
|
6031
6044
|
current: 1,
|
|
6032
6045
|
pageSize: e
|
|
6033
|
-
}),
|
|
6046
|
+
}), Qt(1, { replace: !0 });
|
|
6034
6047
|
}
|
|
6035
6048
|
}) : void 0,
|
|
6036
6049
|
/* @__PURE__ */ Y(Df, {
|
|
@@ -6039,17 +6052,17 @@ function vm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
6039
6052
|
filters: He,
|
|
6040
6053
|
onClose: () => Ve(!1),
|
|
6041
6054
|
onApply: ({ filters: e }) => {
|
|
6042
|
-
Ue(e),
|
|
6055
|
+
Ue(e), en();
|
|
6043
6056
|
},
|
|
6044
|
-
onReset:
|
|
6057
|
+
onReset: Xn
|
|
6045
6058
|
}),
|
|
6046
6059
|
/* @__PURE__ */ Y(hf, {
|
|
6047
6060
|
moduleName: Te,
|
|
6048
|
-
open:
|
|
6049
|
-
rows:
|
|
6050
|
-
tabs:
|
|
6051
|
-
total:
|
|
6052
|
-
onClose: () =>
|
|
6061
|
+
open: Ft,
|
|
6062
|
+
rows: ht,
|
|
6063
|
+
tabs: Fn,
|
|
6064
|
+
total: kn,
|
|
6065
|
+
onClose: () => It(!1)
|
|
6053
6066
|
})
|
|
6054
6067
|
]
|
|
6055
6068
|
});
|
|
@@ -48004,23 +48017,11 @@ async function fF(e = 1, t = 10) {
|
|
|
48004
48017
|
limit: t
|
|
48005
48018
|
};
|
|
48006
48019
|
}
|
|
48007
|
-
async function pF(e
|
|
48008
|
-
let t = await fF(1, e), n = [...t.items], r = t.total, i = 2;
|
|
48009
|
-
for (; n.length < r;) {
|
|
48010
|
-
let t = await fF(i, e);
|
|
48011
|
-
if (!t.items.length) break;
|
|
48012
|
-
n.push(...t.items), i += 1;
|
|
48013
|
-
}
|
|
48014
|
-
return {
|
|
48015
|
-
items: n,
|
|
48016
|
-
total: Math.max(r, n.length)
|
|
48017
|
-
};
|
|
48018
|
-
}
|
|
48019
|
-
async function mF(e, t) {
|
|
48020
|
+
async function pF(e, t) {
|
|
48020
48021
|
let n = lF(await o(s, `/workflow/${e}/stage/${t}`));
|
|
48021
48022
|
return Array.isArray(n) ? { data: n } : n;
|
|
48022
48023
|
}
|
|
48023
|
-
async function
|
|
48024
|
+
async function mF(e, t) {
|
|
48024
48025
|
if (!e || !t) return null;
|
|
48025
48026
|
try {
|
|
48026
48027
|
let n = lF(await o(s, `/module-data-list?${new URLSearchParams({
|
|
@@ -48043,7 +48044,7 @@ async function hF(e, t) {
|
|
|
48043
48044
|
return console.error(`[getModuleRecordById] failed: ${e}/${t}`, n), null;
|
|
48044
48045
|
}
|
|
48045
48046
|
}
|
|
48046
|
-
async function
|
|
48047
|
+
async function hF(e) {
|
|
48047
48048
|
return lF(await o(r, "/source/workflow-instance", {
|
|
48048
48049
|
method: "POST",
|
|
48049
48050
|
body: JSON.stringify(e)
|
|
@@ -48051,7 +48052,7 @@ async function gF(e) {
|
|
|
48051
48052
|
}
|
|
48052
48053
|
//#endregion
|
|
48053
48054
|
//#region src/components/popups/definitions/tag-to-job/api.js
|
|
48054
|
-
var
|
|
48055
|
+
var gF = {
|
|
48055
48056
|
pipeline: "pipeline",
|
|
48056
48057
|
goodfited: "goodfited",
|
|
48057
48058
|
contacted: "contacted",
|
|
@@ -48060,40 +48061,40 @@ var _F = {
|
|
|
48060
48061
|
interviewinprogress: "interviewInprogress",
|
|
48061
48062
|
selected: "selected"
|
|
48062
48063
|
};
|
|
48063
|
-
function
|
|
48064
|
+
function _F(e, ...t) {
|
|
48064
48065
|
for (let n of t) {
|
|
48065
48066
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
48066
48067
|
if (t != null && t !== "") return t;
|
|
48067
48068
|
}
|
|
48068
48069
|
}
|
|
48069
|
-
function
|
|
48070
|
+
function vF(e) {
|
|
48070
48071
|
let t = String(e ?? "").trim();
|
|
48071
|
-
return t ?
|
|
48072
|
+
return t ? gF[t.toLowerCase()] ?? t : "";
|
|
48072
48073
|
}
|
|
48073
|
-
function
|
|
48074
|
-
let n =
|
|
48074
|
+
function yF(e, t) {
|
|
48075
|
+
let n = _F(e, "candidateId", "candidate_id", "applicantId", "applicantID", "applicantReferenceId", "applicantRefrenceId", "_id", "id") ?? t;
|
|
48075
48076
|
if (!n) return null;
|
|
48076
|
-
let r = (
|
|
48077
|
+
let r = (_F(e, "candidateName", "candidate_name", "fullName", "name") ?? [_F(e, "firstName", "first_name"), _F(e, "lastName", "last_name")].filter(Boolean).join(" ")) || void 0, i = {
|
|
48077
48078
|
candidateId: String(n),
|
|
48078
48079
|
candidateName: r,
|
|
48079
|
-
phone:
|
|
48080
|
-
source:
|
|
48081
|
-
submittedAt:
|
|
48082
|
-
remarks:
|
|
48083
|
-
assignedRecruiter:
|
|
48084
|
-
screeningStatus:
|
|
48085
|
-
screeningScore:
|
|
48086
|
-
assignedDate:
|
|
48080
|
+
phone: _F(e, "phone", "phoneNumber", "phone_number", "mobile", "mobileNumber", "mobile_number"),
|
|
48081
|
+
source: _F(e, "source", "sourceType", "candidateSource", "profileSource"),
|
|
48082
|
+
submittedAt: _F(e, "submittedAt", "lastSubmittedAt", "updatedAt"),
|
|
48083
|
+
remarks: _F(e, "remarks", "comment", "comments", "notes"),
|
|
48084
|
+
assignedRecruiter: _F(e, "assignedRecruiter", "recruiterName", "ownerName", "assignedToName"),
|
|
48085
|
+
screeningStatus: _F(e, "screeningStatus", "screening.status", "screeningResult"),
|
|
48086
|
+
screeningScore: _F(e, "screeningScore", "screening.score", "score"),
|
|
48087
|
+
assignedDate: _F(e, "assignedDate", "assignedAt", "createdAt")
|
|
48087
48088
|
};
|
|
48088
48089
|
return Object.fromEntries(Object.entries(i).filter(([, e]) => e != null && e !== ""));
|
|
48089
48090
|
}
|
|
48090
|
-
var
|
|
48091
|
+
var bF = {
|
|
48091
48092
|
searchOptions: async (e, t) => e.searchFetchKey === "tagToJobJobList" ? zs(t) : [],
|
|
48092
48093
|
submit: async (e, t) => {
|
|
48093
|
-
let n = e.jobId ?? t.jobId, r =
|
|
48094
|
+
let n = e.jobId ?? t.jobId, r = vF(e.hiringStage ?? t.hiringStage), i = Array.isArray(t.selectedIds) ? t.selectedIds : [], a = Array.isArray(t.selectedRecords) ? t.selectedRecords : [], o = Math.max(i.length, a.length, 1);
|
|
48094
48095
|
for (let e = 0; e < o; e += 1) {
|
|
48095
|
-
let t = i[e] ? String(i[e]) : "", o =
|
|
48096
|
-
await
|
|
48096
|
+
let t = i[e] ? String(i[e]) : "", o = yF(a[e] ?? {}, t);
|
|
48097
|
+
await hF({
|
|
48097
48098
|
jobId: n,
|
|
48098
48099
|
module: "jobs",
|
|
48099
48100
|
currentStage: r,
|
|
@@ -48106,7 +48107,7 @@ var xF = {
|
|
|
48106
48107
|
hiringStage: r
|
|
48107
48108
|
});
|
|
48108
48109
|
}
|
|
48109
|
-
},
|
|
48110
|
+
}, xF = {
|
|
48110
48111
|
title: "Change Status",
|
|
48111
48112
|
okText: "Apply",
|
|
48112
48113
|
width: 420,
|
|
@@ -48144,17 +48145,17 @@ var xF = {
|
|
|
48144
48145
|
};
|
|
48145
48146
|
//#endregion
|
|
48146
48147
|
//#region src/components/popups/definitions/change-status/api.js
|
|
48147
|
-
function
|
|
48148
|
+
function SF(e, t) {
|
|
48148
48149
|
return (t?.status ?? []).find((t) => String(t?.value ?? "") === String(e ?? "")) ?? null;
|
|
48149
48150
|
}
|
|
48150
|
-
var
|
|
48151
|
-
let r =
|
|
48151
|
+
var CF = { submit: async (e, t, n) => {
|
|
48152
|
+
let r = SF(e.status, n?.dynamicOptions)?._raw ?? {}, i = {
|
|
48152
48153
|
clientSubmissionStatusText: String(e.status ?? "").trim(),
|
|
48153
48154
|
clientSubmissionStatusId: Number(r.id ?? r.uniqueId ?? 0) || 0,
|
|
48154
48155
|
clientSubmissionStatusType: String(r.type ?? "").trim()
|
|
48155
48156
|
};
|
|
48156
48157
|
await Ls(t.moduleName, t.selectedIds, i);
|
|
48157
|
-
} },
|
|
48158
|
+
} }, wF = {
|
|
48158
48159
|
getTitleText: (e) => `Remove ${e > 1 ? `${e} Candidates` : "Candidate"} from Shortlist`,
|
|
48159
48160
|
titleIcon: "delete",
|
|
48160
48161
|
okText: "Remove",
|
|
@@ -48163,12 +48164,12 @@ var wF = { submit: async (e, t, n) => {
|
|
|
48163
48164
|
getBodyText: (e) => e > 1 ? `Are you sure you want to remove ${e} selected candidates from the shortlist?` : "Are you sure you want to remove this candidate from the shortlist?",
|
|
48164
48165
|
footerNote: "The candidate will be moved back to the pipeline.",
|
|
48165
48166
|
fields: []
|
|
48166
|
-
},
|
|
48167
|
+
}, TF = { onOk: async (e) => {
|
|
48167
48168
|
await uc({
|
|
48168
48169
|
jobId: e.jobId ?? e.selectedIds[0],
|
|
48169
48170
|
candidateIds: e.selectedIds
|
|
48170
48171
|
});
|
|
48171
|
-
} },
|
|
48172
|
+
} }, EF = {
|
|
48172
48173
|
title: "Add to Groups",
|
|
48173
48174
|
description: "Select a group to add the selected candidate(s) to",
|
|
48174
48175
|
okText: "Add to Group",
|
|
@@ -48182,7 +48183,7 @@ var wF = { submit: async (e, t, n) => {
|
|
|
48182
48183
|
placeholder: "Select a group",
|
|
48183
48184
|
fetchOptionsKey: "candidateGroups"
|
|
48184
48185
|
}]
|
|
48185
|
-
},
|
|
48186
|
+
}, DF = {
|
|
48186
48187
|
getOptions: async (e) => e.fetchOptionsKey === "candidateGroups" ? Gs() : [],
|
|
48187
48188
|
submit: async (e, t, { dynamicOptions: n }) => {
|
|
48188
48189
|
let r = (n.groupId ?? []).find((t) => String(t.value) === String(e.groupId));
|
|
@@ -48192,7 +48193,7 @@ var wF = { submit: async (e, t, n) => {
|
|
|
48192
48193
|
groupName: r?.label ?? ""
|
|
48193
48194
|
});
|
|
48194
48195
|
}
|
|
48195
|
-
},
|
|
48196
|
+
}, OF = [
|
|
48196
48197
|
{
|
|
48197
48198
|
title: "Name",
|
|
48198
48199
|
key: "name",
|
|
@@ -48211,7 +48212,7 @@ var wF = { submit: async (e, t, n) => {
|
|
|
48211
48212
|
render: (e) => e || "-"
|
|
48212
48213
|
}
|
|
48213
48214
|
];
|
|
48214
|
-
function
|
|
48215
|
+
function kF({ selectedIds: e, onClose: t }) {
|
|
48215
48216
|
let n = e?.[0], [r, i] = L(!0), [a, o] = L(!1), [s, c] = L({
|
|
48216
48217
|
assignedUsers: [],
|
|
48217
48218
|
totalSubmissions: 0,
|
|
@@ -48275,7 +48276,7 @@ function AF({ selectedIds: e, onClose: t }) {
|
|
|
48275
48276
|
children: "Team Members Allocated"
|
|
48276
48277
|
}),
|
|
48277
48278
|
/* @__PURE__ */ Y(Gi, {
|
|
48278
|
-
columns:
|
|
48279
|
+
columns: OF,
|
|
48279
48280
|
dataSource: m,
|
|
48280
48281
|
pagination: !1,
|
|
48281
48282
|
rowKey: (e) => e.user_id ?? `${e.first_name}-${e.last_name}`,
|
|
@@ -48324,25 +48325,25 @@ function AF({ selectedIds: e, onClose: t }) {
|
|
|
48324
48325
|
})]
|
|
48325
48326
|
});
|
|
48326
48327
|
}
|
|
48327
|
-
|
|
48328
|
+
kF.propTypes = {
|
|
48328
48329
|
selectedIds: Z.array,
|
|
48329
48330
|
onClose: Z.func
|
|
48330
48331
|
};
|
|
48331
48332
|
//#endregion
|
|
48332
48333
|
//#region src/components/popups/definitions/self-assign/config.js
|
|
48333
|
-
var
|
|
48334
|
+
var AF = {
|
|
48334
48335
|
title: "Self Assign",
|
|
48335
48336
|
width: 480,
|
|
48336
48337
|
className: "self-assign-modal",
|
|
48337
|
-
component:
|
|
48338
|
-
},
|
|
48338
|
+
component: kF
|
|
48339
|
+
}, jF = { submit: async () => {} };
|
|
48339
48340
|
//#endregion
|
|
48340
48341
|
//#region src/components/popups/definitions/others-assign/config.js
|
|
48341
|
-
function
|
|
48342
|
+
function MF(e = {}) {
|
|
48342
48343
|
let t = Array.isArray(e.jobPayDetails) ? e.jobPayDetails[e.jobPayDetails.length - 1] : e.jobPayDetails ?? e.clientBudget ?? {}, n = Number(t.clientBudgetEnd), r = Number(t.clientBudgetStart);
|
|
48343
48344
|
return Number.isFinite(n) && n > 0 ? n : Number.isFinite(r) && r > 0 ? r : null;
|
|
48344
48345
|
}
|
|
48345
|
-
var
|
|
48346
|
+
var NF = {
|
|
48346
48347
|
getTitleText: (e, t, n) => {
|
|
48347
48348
|
let r = n?.jobTitle || n?.title || "";
|
|
48348
48349
|
return r ? `Assign - ${r}` : "Assign";
|
|
@@ -48351,7 +48352,7 @@ var PF = {
|
|
|
48351
48352
|
width: 520,
|
|
48352
48353
|
disabledUntilFilled: !0,
|
|
48353
48354
|
showAlreadyAssigned: !0,
|
|
48354
|
-
getFields: (e) => (
|
|
48355
|
+
getFields: (e) => (MF(e?.selectedRecords?.[0] ?? {}), [{
|
|
48355
48356
|
name: "assignToUserId",
|
|
48356
48357
|
label: "Assign to",
|
|
48357
48358
|
type: "multi-select",
|
|
@@ -48359,7 +48360,7 @@ var PF = {
|
|
|
48359
48360
|
placeholder: "Select recruiter(s)",
|
|
48360
48361
|
fetchOptionsKey: "assignToUsers"
|
|
48361
48362
|
}])
|
|
48362
|
-
},
|
|
48363
|
+
}, PF = {
|
|
48363
48364
|
getOptions: async (e) => e.fetchOptionsKey === "assignToUsers" ? Xs() : [],
|
|
48364
48365
|
loadExtraData: async (e) => Zs(e.selectedIds[0]),
|
|
48365
48366
|
submit: async (e, t, { removedIds: n, extraData: r }) => {
|
|
@@ -48370,7 +48371,7 @@ var PF = {
|
|
|
48370
48371
|
existingRecruiters: r?.recruitersData
|
|
48371
48372
|
});
|
|
48372
48373
|
}
|
|
48373
|
-
},
|
|
48374
|
+
}, FF = {
|
|
48374
48375
|
title: "Add Sticky Notes",
|
|
48375
48376
|
getTitleText: (e, t, n, r) => r.editingNoteId ? "Edit Sticky Notes" : "Add Sticky Notes",
|
|
48376
48377
|
okText: "Save",
|
|
@@ -48402,7 +48403,7 @@ var PF = {
|
|
|
48402
48403
|
initialValueKey: "editingComments"
|
|
48403
48404
|
}
|
|
48404
48405
|
]
|
|
48405
|
-
},
|
|
48406
|
+
}, IF = {
|
|
48406
48407
|
getMentionOptions: async (e, t) => Bs(t),
|
|
48407
48408
|
submit: async (e, t) => {
|
|
48408
48409
|
let n = e.targetDate ? e.targetDate.toISOString() : "";
|
|
@@ -48418,7 +48419,7 @@ var PF = {
|
|
|
48418
48419
|
notes: e.comments
|
|
48419
48420
|
}), window.dispatchEvent(new Event("sticky-notes:refresh"));
|
|
48420
48421
|
}
|
|
48421
|
-
},
|
|
48422
|
+
}, LF = {
|
|
48422
48423
|
title: "Move to Onboarding",
|
|
48423
48424
|
bodyText: "Are you sure you want to move this candidate to onboarding?",
|
|
48424
48425
|
okText: "Yes",
|
|
@@ -48431,7 +48432,7 @@ var PF = {
|
|
|
48431
48432
|
type: "priority-checkbox",
|
|
48432
48433
|
checkboxLabel: "Send Onboarding Email"
|
|
48433
48434
|
}]
|
|
48434
|
-
},
|
|
48435
|
+
}, RF = { submit: async (e, t) => {
|
|
48435
48436
|
await tc({
|
|
48436
48437
|
submissionId: t.selectedRecords?.[0]?.submissionId,
|
|
48437
48438
|
isMail: e.sendOnboardingEmail
|
|
@@ -48439,39 +48440,39 @@ var PF = {
|
|
|
48439
48440
|
} };
|
|
48440
48441
|
//#endregion
|
|
48441
48442
|
//#region src/components/popups/definitions/approve-rate/config.js
|
|
48442
|
-
function
|
|
48443
|
+
function zF(e) {
|
|
48443
48444
|
return Array.isArray(e) ? e[e.length - 1] ?? {} : e && typeof e == "object" ? e : {};
|
|
48444
48445
|
}
|
|
48445
|
-
var
|
|
48446
|
+
var BF = {
|
|
48446
48447
|
USD: "$",
|
|
48447
48448
|
INR: "₹",
|
|
48448
48449
|
EUR: "€",
|
|
48449
48450
|
GBP: "£"
|
|
48450
48451
|
};
|
|
48451
|
-
function
|
|
48452
|
-
let r =
|
|
48452
|
+
function VF(e, t, n) {
|
|
48453
|
+
let r = zF(e?.[t])[n];
|
|
48453
48454
|
if (r != null && r !== "") return r;
|
|
48454
48455
|
let i = e?.[`${t}.${n}`];
|
|
48455
48456
|
return i != null && i !== "" ? i : void 0;
|
|
48456
48457
|
}
|
|
48457
|
-
function
|
|
48458
|
-
let t = e.selectedRecords?.[0] ?? {}, n =
|
|
48458
|
+
function HF(e) {
|
|
48459
|
+
let t = e.selectedRecords?.[0] ?? {}, n = VF(t, "candidateRate", "candidateAcceptedRate") ?? VF(t, "candidateBudget", "candidateBudgetStart");
|
|
48459
48460
|
if (n === void 0 || Number(n) === 0) return null;
|
|
48460
|
-
let r =
|
|
48461
|
+
let r = VF(t, "candidateRate", "candidateAcceptedCurrency") ?? VF(t, "candidateBudget", "candidateBudgetCurrency");
|
|
48461
48462
|
return {
|
|
48462
48463
|
amount: n,
|
|
48463
|
-
symbol:
|
|
48464
|
-
unit:
|
|
48464
|
+
symbol: VF(t, "candidateRate", "candidateAcceptedCurrencySymbol") ?? VF(t, "candidateBudget", "candidateBudgetCurrencySymbol") ?? BF[String(r ?? "").toUpperCase()] ?? (r || "$"),
|
|
48465
|
+
unit: VF(t, "candidateRate", "candidateAcceptedPayUnit") ?? VF(t, "candidateBudget", "candidateBudgetUnit") ?? ""
|
|
48465
48466
|
};
|
|
48466
48467
|
}
|
|
48467
|
-
var
|
|
48468
|
+
var UF = {
|
|
48468
48469
|
title: "Approve Rate",
|
|
48469
48470
|
okText: "Approve",
|
|
48470
48471
|
width: 520,
|
|
48471
48472
|
className: "medium-modal",
|
|
48472
48473
|
successMessage: "Rate approved",
|
|
48473
48474
|
getBodyText: (e, t, n, r, i) => {
|
|
48474
|
-
let a =
|
|
48475
|
+
let a = HF(i);
|
|
48475
48476
|
return `Candidate Rate: ${a ? `${a.symbol}${a.amount}${a.unit ? `/${a.unit}` : ""}` : "-"}`;
|
|
48476
48477
|
},
|
|
48477
48478
|
fields: [
|
|
@@ -48485,7 +48486,7 @@ var WF = {
|
|
|
48485
48486
|
inlineRow: "proposedRate",
|
|
48486
48487
|
validator: (e, t) => {
|
|
48487
48488
|
if (e == null || e === "") return;
|
|
48488
|
-
let n =
|
|
48489
|
+
let n = HF(t);
|
|
48489
48490
|
if (n && Number(e) <= Number(n.amount)) return "Proposed rate must be greater than Candidate Rate";
|
|
48490
48491
|
}
|
|
48491
48492
|
},
|
|
@@ -48553,7 +48554,7 @@ var WF = {
|
|
|
48553
48554
|
}]
|
|
48554
48555
|
}
|
|
48555
48556
|
]
|
|
48556
|
-
},
|
|
48557
|
+
}, WF = { submit: async (e, t) => {
|
|
48557
48558
|
let n = t.selectedIds[0];
|
|
48558
48559
|
if (await nc(n, {
|
|
48559
48560
|
candidateProposedRate: e.candidateProposedRate,
|
|
@@ -48569,7 +48570,7 @@ var WF = {
|
|
|
48569
48570
|
} };
|
|
48570
48571
|
//#endregion
|
|
48571
48572
|
//#region src/services/mailApproveApi.js
|
|
48572
|
-
async function
|
|
48573
|
+
async function GF(e, t = {}) {
|
|
48573
48574
|
let n = m();
|
|
48574
48575
|
if (!n) {
|
|
48575
48576
|
let e = /* @__PURE__ */ Error("Authentication required");
|
|
@@ -48589,8 +48590,8 @@ async function KF(e, t = {}) {
|
|
|
48589
48590
|
}
|
|
48590
48591
|
return r.json();
|
|
48591
48592
|
}
|
|
48592
|
-
async function
|
|
48593
|
-
let t = await
|
|
48593
|
+
async function KF(e) {
|
|
48594
|
+
let t = await GF(`/mail-form?${new URLSearchParams({
|
|
48594
48595
|
submissionId: e,
|
|
48595
48596
|
submissionType: "client"
|
|
48596
48597
|
}).toString()}`);
|
|
@@ -48598,15 +48599,15 @@ async function qF(e) {
|
|
|
48598
48599
|
}
|
|
48599
48600
|
//#endregion
|
|
48600
48601
|
//#region src/components/popups/definitions/manager-approve/ManagerApproveBody.jsx
|
|
48601
|
-
function
|
|
48602
|
+
function qF(...e) {
|
|
48602
48603
|
return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
|
|
48603
48604
|
}
|
|
48604
|
-
var
|
|
48605
|
-
function
|
|
48606
|
-
let r =
|
|
48607
|
-
return JF(
|
|
48605
|
+
var JF = (e, t) => !!e && e.toLowerCase() === qF(t).toLowerCase();
|
|
48606
|
+
function YF(e, t, n) {
|
|
48607
|
+
let r = qF(t.submittedBy);
|
|
48608
|
+
return qF(JF(r, n) || JF(r, e.submitSource) || JF(r, e.supplierName) || JF(r, e.source) || JF(r, e.candidateSource) ? "" : r, e.signatureEmail);
|
|
48608
48609
|
}
|
|
48609
|
-
function
|
|
48610
|
+
function XF(e, t = {}) {
|
|
48610
48611
|
let n = t.employerName ?? e.supplierName ?? e.submitSource;
|
|
48611
48612
|
return {
|
|
48612
48613
|
client: t.clientName ?? e.clientName,
|
|
@@ -48615,20 +48616,20 @@ function ZF(e, t = {}) {
|
|
|
48615
48616
|
name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
|
|
48616
48617
|
location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
|
|
48617
48618
|
vendor: n,
|
|
48618
|
-
submittedBy:
|
|
48619
|
+
submittedBy: YF(e, t, n),
|
|
48619
48620
|
submittedAt: t.createdAt ?? e.createdAt,
|
|
48620
48621
|
email: t.email ?? e.email,
|
|
48621
48622
|
employerLocation: t.employerLocation,
|
|
48622
48623
|
employerName: t.employerName
|
|
48623
48624
|
};
|
|
48624
48625
|
}
|
|
48625
|
-
function
|
|
48626
|
+
function ZF(e) {
|
|
48626
48627
|
let t = e?.$oid ?? e?._id?.$oid ?? e?._id ?? e?.id?.$oid ?? e?.id ?? e;
|
|
48627
48628
|
if (t == null || typeof t == "object") return "";
|
|
48628
48629
|
let n = String(t).trim();
|
|
48629
48630
|
return /^[a-f\d]{24}$/i.test(n) ? n : "";
|
|
48630
48631
|
}
|
|
48631
|
-
function
|
|
48632
|
+
function QF(...e) {
|
|
48632
48633
|
for (let t of e) {
|
|
48633
48634
|
let e = [
|
|
48634
48635
|
t?.jobId,
|
|
@@ -48651,12 +48652,12 @@ function $F(...e) {
|
|
|
48651
48652
|
t?.submission?.recordMeta?.jobId,
|
|
48652
48653
|
t?.submission?.recordMeta?.JobId,
|
|
48653
48654
|
t?.submission?.recordMeta?.job_id
|
|
48654
|
-
].map(
|
|
48655
|
+
].map(ZF).find(Boolean);
|
|
48655
48656
|
if (e) return e;
|
|
48656
48657
|
}
|
|
48657
48658
|
return "";
|
|
48658
48659
|
}
|
|
48659
|
-
function
|
|
48660
|
+
function $F(e) {
|
|
48660
48661
|
if (!e?.referralId) return {};
|
|
48661
48662
|
let t = Number(e.referralRate ?? e.referalRate ?? 0) || 0, n = String(e.referralType ?? e.referalType ?? "RECURRING").trim() || "RECURRING", r = e.referralId ?? e.referalId;
|
|
48662
48663
|
return {
|
|
@@ -48682,7 +48683,7 @@ function eI(e) {
|
|
|
48682
48683
|
}
|
|
48683
48684
|
};
|
|
48684
48685
|
}
|
|
48685
|
-
function
|
|
48686
|
+
function eI(e = {}) {
|
|
48686
48687
|
return {
|
|
48687
48688
|
to: (e.to ?? e.To ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
|
|
48688
48689
|
cc: (e.cc ?? e.Cc ?? []).map((e) => e.email ?? e.Email ?? e).filter(Boolean).join(", "),
|
|
@@ -48691,7 +48692,7 @@ function tI(e = {}) {
|
|
|
48691
48692
|
contents: e.content?.value ?? e.Content?.Value ?? e.contents ?? e.body ?? ""
|
|
48692
48693
|
};
|
|
48693
48694
|
}
|
|
48694
|
-
function
|
|
48695
|
+
function tI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onClose: i }) {
|
|
48695
48696
|
let a = n?.[0] ?? {}, o = t?.[0] ?? fw(a), [s, c] = L(null), [l, u] = L(!0), [d, f] = L([]), [p, m] = L(!1), [h, g] = L("vms"), [_, v] = L(null), [y, b] = L(null), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), [D, O] = L(!1), [k, A] = L({
|
|
48696
48697
|
to: "",
|
|
48697
48698
|
cc: "",
|
|
@@ -48729,7 +48730,7 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48729
48730
|
if (h === "mail") {
|
|
48730
48731
|
m(!1), w(!0), E(!0);
|
|
48731
48732
|
try {
|
|
48732
|
-
let e =
|
|
48733
|
+
let e = eI(await KF(o));
|
|
48733
48734
|
A({
|
|
48734
48735
|
to: e.to,
|
|
48735
48736
|
cc: e.cc,
|
|
@@ -48753,7 +48754,7 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48753
48754
|
candidateProposedRateCurrency: _.currencyRaw ?? _.currency,
|
|
48754
48755
|
candidateProposedRateUnit: _.rateUnit,
|
|
48755
48756
|
submitVia: "VMS",
|
|
48756
|
-
|
|
48757
|
+
...$F(y)
|
|
48757
48758
|
}), q.success("Submission approved"), m(!1), v(null), b(null), i?.({ success: !0 });
|
|
48758
48759
|
} catch (e) {
|
|
48759
48760
|
q.error(e?.message ?? "Unable to approve submission");
|
|
@@ -48773,9 +48774,9 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48773
48774
|
await nc(o, {
|
|
48774
48775
|
...e,
|
|
48775
48776
|
submitVia: "VMS",
|
|
48776
|
-
|
|
48777
|
+
...$F(y)
|
|
48777
48778
|
});
|
|
48778
|
-
let t =
|
|
48779
|
+
let t = QF(s?.record, a);
|
|
48779
48780
|
if (!t) q.warning("Submission approved, but job details were not available to send mail");
|
|
48780
48781
|
else try {
|
|
48781
48782
|
await eu({
|
|
@@ -48828,7 +48829,7 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48828
48829
|
type: BC,
|
|
48829
48830
|
record: s.record,
|
|
48830
48831
|
lookups: s.lookups,
|
|
48831
|
-
identity:
|
|
48832
|
+
identity: XF(a, s.display),
|
|
48832
48833
|
referralOptions: d,
|
|
48833
48834
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
48834
48835
|
actions: M,
|
|
@@ -48902,7 +48903,7 @@ function nI({ context: e, selectedIds: t, selectedRecords: n, moduleName: r, onC
|
|
|
48902
48903
|
})
|
|
48903
48904
|
] });
|
|
48904
48905
|
}
|
|
48905
|
-
|
|
48906
|
+
tI.propTypes = {
|
|
48906
48907
|
context: Z.object,
|
|
48907
48908
|
selectedIds: Z.array,
|
|
48908
48909
|
selectedRecords: Z.array,
|
|
@@ -48911,23 +48912,23 @@ nI.propTypes = {
|
|
|
48911
48912
|
};
|
|
48912
48913
|
//#endregion
|
|
48913
48914
|
//#region src/components/popups/definitions/manager-approve/config.js
|
|
48914
|
-
var
|
|
48915
|
+
var nI = {
|
|
48915
48916
|
title: "Manager Approve",
|
|
48916
48917
|
width: 780,
|
|
48917
48918
|
className: "fa-modal manager-approve-modal",
|
|
48918
|
-
component:
|
|
48919
|
-
},
|
|
48919
|
+
component: tI
|
|
48920
|
+
}, rI = { submit: async () => {} };
|
|
48920
48921
|
//#endregion
|
|
48921
48922
|
//#region src/components/popups/definitions/manager-reapprove/ManagerReapproveBody.jsx
|
|
48922
|
-
function
|
|
48923
|
+
function iI(...e) {
|
|
48923
48924
|
return e.map((e) => e == null ? "" : String(e).trim()).find(Boolean) ?? "";
|
|
48924
48925
|
}
|
|
48925
|
-
var
|
|
48926
|
-
function
|
|
48927
|
-
let r =
|
|
48928
|
-
return aI(
|
|
48926
|
+
var aI = (e, t) => !!e && e.toLowerCase() === iI(t).toLowerCase();
|
|
48927
|
+
function oI(e, t, n) {
|
|
48928
|
+
let r = iI(t.submittedBy);
|
|
48929
|
+
return iI(aI(r, n) || aI(r, e.submitSource) || aI(r, e.supplierName) || aI(r, e.source) || aI(r, e.candidateSource) ? "" : r, e.signatureEmail);
|
|
48929
48930
|
}
|
|
48930
|
-
function
|
|
48931
|
+
function sI(e, t = {}) {
|
|
48931
48932
|
let n = t.employerName ?? e.supplierName ?? e.submitSource;
|
|
48932
48933
|
return {
|
|
48933
48934
|
client: t.clientName ?? e.clientName,
|
|
@@ -48936,28 +48937,28 @@ function cI(e, t = {}) {
|
|
|
48936
48937
|
name: t.candidateName || [e.firstName, e.lastName].filter(Boolean).join(" ") || e.candidateFullName,
|
|
48937
48938
|
location: t.jobLocation ?? e.city ?? e.currentLocation ?? e.jobLocation,
|
|
48938
48939
|
vendor: n,
|
|
48939
|
-
submittedBy:
|
|
48940
|
+
submittedBy: oI(e, t, n),
|
|
48940
48941
|
submittedAt: t.createdAt ?? e.createdAt,
|
|
48941
48942
|
email: t.email ?? e.email,
|
|
48942
48943
|
employerLocation: t.employerLocation,
|
|
48943
48944
|
employerName: t.employerName
|
|
48944
48945
|
};
|
|
48945
48946
|
}
|
|
48946
|
-
function
|
|
48947
|
+
function cI(e) {
|
|
48947
48948
|
let t = Array.isArray(e) ? e : [];
|
|
48948
48949
|
for (let e = t.length - 1; e >= 0; --e) if (String(t[e]?.activityType ?? "").trim().toLowerCase() === "cfo rejected") return t[e];
|
|
48949
48950
|
return null;
|
|
48950
48951
|
}
|
|
48951
|
-
function
|
|
48952
|
+
function lI(e) {
|
|
48952
48953
|
return String(e ?? "").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
|
|
48953
48954
|
}
|
|
48954
|
-
function
|
|
48955
|
+
function uI({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
48955
48956
|
let r = t?.[0] ?? {}, i = e?.[0] ?? fw(r), [a, o] = L(null), [s, c] = L(""), [l, u] = L(!0);
|
|
48956
48957
|
F(() => {
|
|
48957
48958
|
let e = !1;
|
|
48958
48959
|
return u(!0), Promise.all([$w(i, r), xr("submission", i).catch(() => [])]).then(([t, n]) => {
|
|
48959
48960
|
if (e) return;
|
|
48960
|
-
let i =
|
|
48961
|
+
let i = cI(n);
|
|
48961
48962
|
c(fw(t?.meta?.workforceEngagementId ?? r?.onboarding?.workforceEngagementId ?? r?.workforceEngagementId));
|
|
48962
48963
|
let a = t?.meta?.rejectReasonComments || i?.activityComments || "";
|
|
48963
48964
|
o({
|
|
@@ -48966,7 +48967,7 @@ function dI({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
48966
48967
|
...t.record,
|
|
48967
48968
|
submission: {
|
|
48968
48969
|
...t.record.submission,
|
|
48969
|
-
cfoRejectionReason: a ?
|
|
48970
|
+
cfoRejectionReason: a ? lI(a) : "",
|
|
48970
48971
|
cfoRejectedAt: t?.meta?.rejectedAt ?? i?.activityTime ?? null
|
|
48971
48972
|
}
|
|
48972
48973
|
}
|
|
@@ -49014,26 +49015,26 @@ function dI({ selectedIds: e, selectedRecords: t, onClose: n }) {
|
|
|
49014
49015
|
type: WC,
|
|
49015
49016
|
record: a.record,
|
|
49016
49017
|
lookups: a.lookups,
|
|
49017
|
-
identity:
|
|
49018
|
+
identity: sI(r, a.display),
|
|
49018
49019
|
currentUserId: typeof localStorage < "u" ? localStorage.getItem("userId") ?? void 0 : void 0,
|
|
49019
49020
|
actions: d,
|
|
49020
49021
|
onClose: () => n?.(),
|
|
49021
49022
|
variant: "popup"
|
|
49022
49023
|
});
|
|
49023
49024
|
}
|
|
49024
|
-
|
|
49025
|
+
uI.propTypes = {
|
|
49025
49026
|
selectedIds: Z.array,
|
|
49026
49027
|
selectedRecords: Z.array,
|
|
49027
49028
|
onClose: Z.func
|
|
49028
49029
|
};
|
|
49029
49030
|
//#endregion
|
|
49030
49031
|
//#region src/components/popups/definitions/manager-reapprove/config.js
|
|
49031
|
-
var
|
|
49032
|
+
var dI = {
|
|
49032
49033
|
title: "Re-Approve",
|
|
49033
49034
|
width: 780,
|
|
49034
49035
|
className: "fa-modal manager-approve-modal",
|
|
49035
|
-
component:
|
|
49036
|
-
},
|
|
49036
|
+
component: uI
|
|
49037
|
+
}, fI = { submit: async () => {} }, pI = [
|
|
49037
49038
|
{
|
|
49038
49039
|
id: 1,
|
|
49039
49040
|
name: "Re-Submission"
|
|
@@ -49046,7 +49047,7 @@ var fI = {
|
|
|
49046
49047
|
id: 3,
|
|
49047
49048
|
name: "Incomplete candidate details - (Re-Submission)"
|
|
49048
49049
|
}
|
|
49049
|
-
],
|
|
49050
|
+
], mI = {
|
|
49050
49051
|
title: "Reject",
|
|
49051
49052
|
okText: "Reject",
|
|
49052
49053
|
okButtonDanger: !0,
|
|
@@ -49058,7 +49059,7 @@ var fI = {
|
|
|
49058
49059
|
type: "select",
|
|
49059
49060
|
required: !0,
|
|
49060
49061
|
placeholder: "Select rejection reasons",
|
|
49061
|
-
defaultOptions:
|
|
49062
|
+
defaultOptions: pI.map((e) => ({
|
|
49062
49063
|
label: e.name,
|
|
49063
49064
|
value: e.id
|
|
49064
49065
|
}))
|
|
@@ -49069,20 +49070,36 @@ var fI = {
|
|
|
49069
49070
|
required: !0,
|
|
49070
49071
|
rows: 4
|
|
49071
49072
|
}]
|
|
49072
|
-
},
|
|
49073
|
-
let n =
|
|
49073
|
+
}, hI = { submit: async (e, t) => {
|
|
49074
|
+
let n = pI.find((t) => String(t.id) === String(e.rejectReason));
|
|
49074
49075
|
await ac({
|
|
49075
49076
|
submissionId: t.selectedIds[0],
|
|
49076
49077
|
rejectReasonId: e.rejectReason,
|
|
49077
49078
|
rejectReason: n?.name ?? "",
|
|
49078
49079
|
rejectReasonComments: e.rejectReasonComments
|
|
49079
49080
|
});
|
|
49080
|
-
} },
|
|
49081
|
+
} }, gI = {
|
|
49081
49082
|
delete: wP,
|
|
49082
49083
|
"quick-submit": tF,
|
|
49083
49084
|
"add-notes": nF,
|
|
49084
49085
|
"tag-to-job": cF,
|
|
49085
|
-
"change-status":
|
|
49086
|
+
"change-status": xF,
|
|
49087
|
+
"remove-from-shortlist": wF,
|
|
49088
|
+
"add-to-groups": EF,
|
|
49089
|
+
"self-assign": AF,
|
|
49090
|
+
"others-assign": NF,
|
|
49091
|
+
"sticky-notes": FF,
|
|
49092
|
+
"move-to-onboarding": LF,
|
|
49093
|
+
"approve-rate": UF,
|
|
49094
|
+
"manager-approve": nI,
|
|
49095
|
+
"manager-reapprove": dI,
|
|
49096
|
+
reject: mI
|
|
49097
|
+
}, _I = {
|
|
49098
|
+
delete: TP,
|
|
49099
|
+
"quick-submit": eF,
|
|
49100
|
+
"add-notes": aF,
|
|
49101
|
+
"tag-to-job": bF,
|
|
49102
|
+
"change-status": CF,
|
|
49086
49103
|
"remove-from-shortlist": TF,
|
|
49087
49104
|
"add-to-groups": DF,
|
|
49088
49105
|
"self-assign": jF,
|
|
@@ -49093,64 +49110,48 @@ var fI = {
|
|
|
49093
49110
|
"manager-approve": rI,
|
|
49094
49111
|
"manager-reapprove": fI,
|
|
49095
49112
|
reject: hI
|
|
49096
|
-
}, vI = {
|
|
49097
|
-
delete: TP,
|
|
49098
|
-
"quick-submit": eF,
|
|
49099
|
-
"add-notes": aF,
|
|
49100
|
-
"tag-to-job": xF,
|
|
49101
|
-
"change-status": wF,
|
|
49102
|
-
"remove-from-shortlist": EF,
|
|
49103
|
-
"add-to-groups": OF,
|
|
49104
|
-
"self-assign": MF,
|
|
49105
|
-
"others-assign": FF,
|
|
49106
|
-
"sticky-notes": LF,
|
|
49107
|
-
"move-to-onboarding": zF,
|
|
49108
|
-
"approve-rate": GF,
|
|
49109
|
-
"manager-approve": iI,
|
|
49110
|
-
"manager-reapprove": pI,
|
|
49111
|
-
reject: gI
|
|
49112
49113
|
};
|
|
49113
49114
|
//#endregion
|
|
49114
49115
|
//#region src/components/popups/AddBatchCandidatePopup.jsx
|
|
49115
|
-
function
|
|
49116
|
+
function vI(e) {
|
|
49116
49117
|
let t = e?.data ?? e;
|
|
49117
49118
|
return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
|
|
49118
49119
|
}
|
|
49119
|
-
function
|
|
49120
|
+
function yI(e, ...t) {
|
|
49120
49121
|
for (let n of t) {
|
|
49121
49122
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
49122
49123
|
if (t != null && t !== "") return t;
|
|
49123
49124
|
}
|
|
49124
49125
|
return "";
|
|
49125
49126
|
}
|
|
49126
|
-
function
|
|
49127
|
-
let t = String(
|
|
49127
|
+
function bI(e) {
|
|
49128
|
+
let t = String(yI(e, "isDeleted", "deleted")).toLowerCase(), n = String(yI(e, "assignmentStatus", "status")).toLowerCase();
|
|
49128
49129
|
return t !== "true" && t !== "1" && ![
|
|
49129
49130
|
"removed",
|
|
49130
49131
|
"inactive",
|
|
49131
49132
|
"deleted"
|
|
49132
49133
|
].includes(n);
|
|
49133
49134
|
}
|
|
49135
|
+
function xI(e) {
|
|
49136
|
+
let t = yI(e, "candidateName", "candidate_name", "fullName", "name");
|
|
49137
|
+
return t ? String(t) : [yI(e, "firstName", "first_name"), yI(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
|
|
49138
|
+
}
|
|
49134
49139
|
function SI(e) {
|
|
49135
|
-
|
|
49136
|
-
return t ? String(t) : [bI(e, "firstName", "first_name"), bI(e, "lastName", "last_name")].filter(Boolean).join(" ") || "Unnamed candidate";
|
|
49140
|
+
return String(yI(e, "candidateId", "candidate_id", "candidate._id", "candidate.id"));
|
|
49137
49141
|
}
|
|
49138
49142
|
function CI(e) {
|
|
49139
|
-
return String(
|
|
49143
|
+
return String(yI(e, "workforceEngagementId", "engagementId", "_id", "id"));
|
|
49140
49144
|
}
|
|
49141
49145
|
function wI(e) {
|
|
49142
|
-
return String(
|
|
49146
|
+
return String(yI(e, "batchName", "name", "title", "batch_name"));
|
|
49143
49147
|
}
|
|
49144
|
-
function TI(e) {
|
|
49145
|
-
return String(bI(e, "batchName", "name", "title", "batch_name"));
|
|
49146
|
-
}
|
|
49147
|
-
function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
49148
|
+
function TI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
49148
49149
|
let [r, i] = L([]), [a, o] = L([]), [s, c] = L(""), [l, u] = L(!0), [d, f] = L(!1), [p, m] = L(""), [h, g] = L(/* @__PURE__ */ new Map()), v = String(t.selectedIds?.[0] ?? t.selectedRecords?.[0]?._id ?? t.selectedRecords?.[0]?.id ?? t.batchId ?? "");
|
|
49149
49150
|
F(() => {
|
|
49150
49151
|
if (!e) return;
|
|
49151
49152
|
let t = !1;
|
|
49152
49153
|
return Promise.resolve().then(() => (t || u(!0), Promise.all([Qn("onboarding", 200, 0), Qn("batchCandidates", 1e3, 0).catch(() => [])]))).then(([e, n]) => {
|
|
49153
|
-
t || (i(
|
|
49154
|
+
t || (i(vI(e)), g(new Map(vI(n).filter(bI).map((e) => [String(yI(e, "candidateId", "candidate_id")), e]).filter(([e]) => e))));
|
|
49154
49155
|
}).catch((e) => {
|
|
49155
49156
|
t || m(e.message || "Unable to load onboarding candidates");
|
|
49156
49157
|
}).finally(() => {
|
|
@@ -49162,9 +49163,9 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49162
49163
|
let y = I(() => {
|
|
49163
49164
|
let e = s.trim().toLowerCase();
|
|
49164
49165
|
return e ? r.filter((t) => [
|
|
49165
|
-
|
|
49166
|
-
|
|
49167
|
-
|
|
49166
|
+
xI(t),
|
|
49167
|
+
yI(t, "email", "candidateEmail", "candidate_email"),
|
|
49168
|
+
yI(t, "status", "onboardingStatus", "onboarding_status")
|
|
49168
49169
|
].some((t) => String(t).toLowerCase().includes(e))) : r;
|
|
49169
49170
|
}, [r, s]);
|
|
49170
49171
|
async function b() {
|
|
@@ -49172,25 +49173,25 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49172
49173
|
m("Select a batch before adding candidates");
|
|
49173
49174
|
return;
|
|
49174
49175
|
}
|
|
49175
|
-
let e = r.filter((e) => a.includes(
|
|
49176
|
+
let e = r.filter((e) => a.includes(CI(e)));
|
|
49176
49177
|
if (!e.length) return;
|
|
49177
49178
|
let i = e.map((e) => ({
|
|
49178
49179
|
record: e,
|
|
49179
|
-
assignment: h.get(
|
|
49180
|
+
assignment: h.get(SI(e))
|
|
49180
49181
|
})).filter((e) => e.assignment);
|
|
49181
49182
|
if (i.length) {
|
|
49182
|
-
m(`${i.map(({ record: e }) =>
|
|
49183
|
+
m(`${i.map(({ record: e }) => xI(e)).join(", ")} ${i.length === 1 ? "is" : "are"} already added to a batch. Each candidate can be added to only one batch.`);
|
|
49183
49184
|
return;
|
|
49184
49185
|
}
|
|
49185
49186
|
f(!0), m("");
|
|
49186
49187
|
try {
|
|
49187
|
-
let { userId: r } = _(), i =
|
|
49188
|
+
let { userId: r } = _(), i = wI(t.selectedRecords?.[0]) || wI(t);
|
|
49188
49189
|
await Promise.all(e.map((e) => xe("batchCandidates", {
|
|
49189
49190
|
schemaVersion: 1,
|
|
49190
49191
|
batchId: v,
|
|
49191
49192
|
batchName: i,
|
|
49192
|
-
candidateId:
|
|
49193
|
-
workforceEngagementId:
|
|
49193
|
+
candidateId: SI(e),
|
|
49194
|
+
workforceEngagementId: CI(e),
|
|
49194
49195
|
source: "ONBOARDING",
|
|
49195
49196
|
assignmentStatus: "ASSIGNED",
|
|
49196
49197
|
assignedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -49233,22 +49234,22 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49233
49234
|
style: { marginBottom: 12 }
|
|
49234
49235
|
}),
|
|
49235
49236
|
/* @__PURE__ */ Y(Gi, {
|
|
49236
|
-
rowKey: (e) =>
|
|
49237
|
+
rowKey: (e) => CI(e),
|
|
49237
49238
|
columns: [
|
|
49238
49239
|
{
|
|
49239
49240
|
title: "Candidate",
|
|
49240
49241
|
key: "candidate",
|
|
49241
|
-
render: (e, t) =>
|
|
49242
|
+
render: (e, t) => xI(t)
|
|
49242
49243
|
},
|
|
49243
49244
|
{
|
|
49244
49245
|
title: "Email",
|
|
49245
49246
|
key: "email",
|
|
49246
|
-
render: (e, t) =>
|
|
49247
|
+
render: (e, t) => yI(t, "email", "candidateEmail", "candidate_email") || "—"
|
|
49247
49248
|
},
|
|
49248
49249
|
{
|
|
49249
49250
|
title: "Onboarding status",
|
|
49250
49251
|
key: "status",
|
|
49251
|
-
render: (e, t) =>
|
|
49252
|
+
render: (e, t) => yI(t, "status", "onboardingStatus", "onboarding_status") || "—"
|
|
49252
49253
|
}
|
|
49253
49254
|
],
|
|
49254
49255
|
dataSource: y,
|
|
@@ -49262,9 +49263,9 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49262
49263
|
selectedRowKeys: a,
|
|
49263
49264
|
onChange: o,
|
|
49264
49265
|
getCheckboxProps: (e) => {
|
|
49265
|
-
let t = h.get(
|
|
49266
|
+
let t = h.get(SI(e));
|
|
49266
49267
|
return {
|
|
49267
|
-
disabled: !
|
|
49268
|
+
disabled: !SI(e) || !CI(e) || !!t,
|
|
49268
49269
|
title: t ? "Candidate is already added to a batch" : void 0
|
|
49269
49270
|
};
|
|
49270
49271
|
}
|
|
@@ -49276,7 +49277,7 @@ function EI({ open: e = !0, context: t = {}, onClose: n }) {
|
|
|
49276
49277
|
}
|
|
49277
49278
|
//#endregion
|
|
49278
49279
|
//#region src/components/popups/dynamic/DynamicPopupRoute.jsx
|
|
49279
|
-
var
|
|
49280
|
+
var EI = {
|
|
49280
49281
|
text: "input",
|
|
49281
49282
|
string: "input",
|
|
49282
49283
|
textarea: "textarea",
|
|
@@ -49285,30 +49286,30 @@ var DI = {
|
|
|
49285
49286
|
multiselect: "multi-select",
|
|
49286
49287
|
lookup: "search-select"
|
|
49287
49288
|
};
|
|
49288
|
-
function
|
|
49289
|
+
function DI(e) {
|
|
49289
49290
|
if (!e) return null;
|
|
49290
49291
|
let t = [...e.groups ?? []].sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)).flatMap((e) => [...e.fields ?? []].filter((e) => e.show !== 0 && e.show !== !1).sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)).map((e) => ({
|
|
49291
49292
|
...e,
|
|
49292
49293
|
name: e.name ?? e.field,
|
|
49293
49294
|
label: e.label ?? e.field,
|
|
49294
|
-
type:
|
|
49295
|
+
type: EI[String(e.type ?? "text").toLowerCase()] ?? e.type ?? "input",
|
|
49295
49296
|
required: e.required ?? e.req === 1,
|
|
49296
49297
|
options: (e.options ?? []).map((e) => ({
|
|
49297
49298
|
label: e.label ?? e.name ?? e.value,
|
|
49298
49299
|
value: e.value ?? e.id ?? e.label
|
|
49299
49300
|
}))
|
|
49300
|
-
}))), n =
|
|
49301
|
+
}))), n = OI(e.successNavigate);
|
|
49301
49302
|
return {
|
|
49302
49303
|
title: e.label,
|
|
49303
49304
|
fields: t,
|
|
49304
49305
|
...n ? { successNavigate: n } : {}
|
|
49305
49306
|
};
|
|
49306
49307
|
}
|
|
49307
|
-
function
|
|
49308
|
+
function OI(e) {
|
|
49308
49309
|
let t = String(e ?? "").trim();
|
|
49309
49310
|
return !t || !t.startsWith("/") || t.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(t) ? null : t;
|
|
49310
49311
|
}
|
|
49311
|
-
function
|
|
49312
|
+
function kI(e, t = []) {
|
|
49312
49313
|
if (!e || !Array.isArray(t) || !t.length) return e;
|
|
49313
49314
|
let n = new Map(t.filter((e) => e?.name).map((e) => [String(e.name), e]));
|
|
49314
49315
|
return n.size ? {
|
|
@@ -49324,12 +49325,12 @@ function AI(e, t = []) {
|
|
|
49324
49325
|
})
|
|
49325
49326
|
} : e;
|
|
49326
49327
|
}
|
|
49327
|
-
function
|
|
49328
|
+
function AI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
49328
49329
|
let n = I(() => ({
|
|
49329
|
-
...
|
|
49330
|
+
..._I,
|
|
49330
49331
|
...e
|
|
49331
49332
|
}), [e]), r = I(() => {
|
|
49332
|
-
let e = { ...
|
|
49333
|
+
let e = { ...gI };
|
|
49333
49334
|
return Object.entries(t).forEach(([t, n]) => {
|
|
49334
49335
|
e[t] = {
|
|
49335
49336
|
...e[t] ?? {},
|
|
@@ -49347,7 +49348,7 @@ function jI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
49347
49348
|
return Dn(c.moduleName, "popup", i).then((n) => {
|
|
49348
49349
|
e || u({
|
|
49349
49350
|
key: t,
|
|
49350
|
-
config:
|
|
49351
|
+
config: DI(n[0])
|
|
49351
49352
|
});
|
|
49352
49353
|
}).catch(() => {
|
|
49353
49354
|
e || u({
|
|
@@ -49360,7 +49361,7 @@ function jI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
49360
49361
|
}, [i, c.moduleName]);
|
|
49361
49362
|
let d = I(() => {
|
|
49362
49363
|
let e = r[i], t = `${c.moduleName}:${i}`, n = l.key === t ? l.config : null;
|
|
49363
|
-
return
|
|
49364
|
+
return kI(n ? {
|
|
49364
49365
|
...e,
|
|
49365
49366
|
...n
|
|
49366
49367
|
} : e, c.popupAction?.popupFieldOverrides);
|
|
@@ -49419,7 +49420,7 @@ function jI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
49419
49420
|
}
|
|
49420
49421
|
a(-1);
|
|
49421
49422
|
};
|
|
49422
|
-
return i === "add-batch-candidate" ? /* @__PURE__ */ Y(
|
|
49423
|
+
return i === "add-batch-candidate" ? /* @__PURE__ */ Y(TI, {
|
|
49423
49424
|
open: !0,
|
|
49424
49425
|
context: f,
|
|
49425
49426
|
onClose: m
|
|
@@ -49436,7 +49437,7 @@ function jI({ apiMap: e = {}, extraConfigs: t = {} }) {
|
|
|
49436
49437
|
}
|
|
49437
49438
|
//#endregion
|
|
49438
49439
|
//#region src/components/popups/definitions/vendor-share/config.js
|
|
49439
|
-
var
|
|
49440
|
+
var jI = {
|
|
49440
49441
|
title: "Vendor Share",
|
|
49441
49442
|
maxVendorSelect: 1e3,
|
|
49442
49443
|
defaultTab: "myVendor",
|
|
@@ -49470,7 +49471,7 @@ var MI = {
|
|
|
49470
49471
|
key: "updatedOn"
|
|
49471
49472
|
}
|
|
49472
49473
|
]
|
|
49473
|
-
},
|
|
49474
|
+
}, MI = {
|
|
49474
49475
|
getVendorList: ({ jobId: e, limit: t, offset: n, type: r }) => Zl({
|
|
49475
49476
|
jobId: e,
|
|
49476
49477
|
limit: t,
|
|
@@ -49487,11 +49488,11 @@ var MI = {
|
|
|
49487
49488
|
subject: i,
|
|
49488
49489
|
contents: a
|
|
49489
49490
|
})
|
|
49490
|
-
},
|
|
49491
|
+
}, NI = jI.vendorColumns.map((e) => ({
|
|
49491
49492
|
...e,
|
|
49492
49493
|
render: (e) => e || "-"
|
|
49493
49494
|
}));
|
|
49494
|
-
function
|
|
49495
|
+
function PI() {
|
|
49495
49496
|
let e = ns(), t = ts(), { selectedIds: n = [], selectedRecords: r = [], recipients: i = [], subject: a = "", onSend: o, moduleName: s = "", popupAction: c = {} } = t.state ?? {}, l = n[0] ?? r[0]?._id ?? r[0]?.id, [u, d] = L({
|
|
49496
49497
|
to: i.join(", "),
|
|
49497
49498
|
cc: "",
|
|
@@ -49500,13 +49501,13 @@ function FI() {
|
|
|
49500
49501
|
contents: "",
|
|
49501
49502
|
showCc: !1,
|
|
49502
49503
|
showBcc: !1
|
|
49503
|
-
}), [f, p] = L(!l), [m, h] = L(
|
|
49504
|
+
}), [f, p] = L(!l), [m, h] = L(jI.defaultTab), [g, _] = L(""), [v, y] = L([]), [b, x] = L(0), [S, C] = L(0), [w, T] = L(0), [E, D] = L(1), [O, k] = L(jI.defaultPageSize), [A, j] = L(!1), [ee, te] = L([]);
|
|
49504
49505
|
F(() => {
|
|
49505
49506
|
if (!l) return;
|
|
49506
49507
|
let e = !1;
|
|
49507
49508
|
j(!0);
|
|
49508
49509
|
let t = g ? 100 : O, n = g ? 0 : (E - 1) * O;
|
|
49509
|
-
return
|
|
49510
|
+
return MI.getVendorList({
|
|
49510
49511
|
jobId: l,
|
|
49511
49512
|
limit: t,
|
|
49512
49513
|
offset: n,
|
|
@@ -49529,7 +49530,7 @@ function FI() {
|
|
|
49529
49530
|
O,
|
|
49530
49531
|
g
|
|
49531
49532
|
]), F(() => {
|
|
49532
|
-
l &&
|
|
49533
|
+
l && MI.getMailDetails(l).then((e) => d((t) => ({
|
|
49533
49534
|
...t,
|
|
49534
49535
|
subject: e.subject || t.subject,
|
|
49535
49536
|
contents: e.contents || t.contents,
|
|
@@ -49554,7 +49555,7 @@ function FI() {
|
|
|
49554
49555
|
e(-1);
|
|
49555
49556
|
}
|
|
49556
49557
|
function oe() {
|
|
49557
|
-
ie &&
|
|
49558
|
+
ie && MI.submit({
|
|
49558
49559
|
jobId: l,
|
|
49559
49560
|
toMail: wM(ne.to),
|
|
49560
49561
|
ccMail: wM(ne.cc),
|
|
@@ -49635,7 +49636,7 @@ function FI() {
|
|
|
49635
49636
|
]
|
|
49636
49637
|
}), /* @__PURE__ */ Y("div", {
|
|
49637
49638
|
className: "vendor-share__vendor-tabs",
|
|
49638
|
-
children:
|
|
49639
|
+
children: jI.vendorTabs.map((e) => /* @__PURE__ */ X("span", {
|
|
49639
49640
|
className: `vendor-share__vendor-tab${m === e.key ? " vendor-share__vendor-tab--active" : ""}`,
|
|
49640
49641
|
onClick: () => {
|
|
49641
49642
|
h(e.key), D(1), te([]);
|
|
@@ -49653,7 +49654,7 @@ function FI() {
|
|
|
49653
49654
|
className: "vendor-share__vendor-table-wrapper",
|
|
49654
49655
|
children: /* @__PURE__ */ Y(Gi, {
|
|
49655
49656
|
rowKey: (e) => e.vendorId,
|
|
49656
|
-
columns:
|
|
49657
|
+
columns: NI,
|
|
49657
49658
|
dataSource: se,
|
|
49658
49659
|
loading: A,
|
|
49659
49660
|
pagination: !1,
|
|
@@ -49661,7 +49662,7 @@ function FI() {
|
|
|
49661
49662
|
rowSelection: {
|
|
49662
49663
|
selectedRowKeys: ee,
|
|
49663
49664
|
onChange: (e) => {
|
|
49664
|
-
e.length >
|
|
49665
|
+
e.length > jI.maxVendorSelect || te(e);
|
|
49665
49666
|
}
|
|
49666
49667
|
},
|
|
49667
49668
|
scroll: { y: "calc(100vh - 340px)" }
|
|
@@ -49695,7 +49696,7 @@ function FI() {
|
|
|
49695
49696
|
children: [
|
|
49696
49697
|
ee.length,
|
|
49697
49698
|
" / ",
|
|
49698
|
-
|
|
49699
|
+
jI.maxVendorSelect,
|
|
49699
49700
|
" Vendors selected"
|
|
49700
49701
|
]
|
|
49701
49702
|
}) : null
|
|
@@ -49706,7 +49707,7 @@ function FI() {
|
|
|
49706
49707
|
}
|
|
49707
49708
|
//#endregion
|
|
49708
49709
|
//#region src/components/form/validation.js
|
|
49709
|
-
var
|
|
49710
|
+
var FI = {
|
|
49710
49711
|
EMAIL: /^[a-zA-Z0-9._%+-]+@[a-zA-Z][a-zA-Z-]*\.[a-zA-Z]{2,}$/,
|
|
49711
49712
|
PHONE: /^[0-9]{10}$/,
|
|
49712
49713
|
PASSWORD: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
|
|
@@ -49723,7 +49724,7 @@ var II = {
|
|
|
49723
49724
|
FULL_NAME: /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)*$/,
|
|
49724
49725
|
NO_SPACES: /^\S+$/,
|
|
49725
49726
|
STARTS_WITH_CAPITAL: /^[A-Z].*$/
|
|
49726
|
-
},
|
|
49727
|
+
}, II = {
|
|
49727
49728
|
SINGLE_FILE_COUNT: 1,
|
|
49728
49729
|
MULTI_FILE_COUNT: 5,
|
|
49729
49730
|
MAX_FILE_SIZE: 2,
|
|
@@ -49732,7 +49733,7 @@ var II = {
|
|
|
49732
49733
|
"image/png",
|
|
49733
49734
|
"application/pdf"
|
|
49734
49735
|
]
|
|
49735
|
-
},
|
|
49736
|
+
}, LI = {
|
|
49736
49737
|
REQUIRED: (e) => "Mandatory Field",
|
|
49737
49738
|
INVALID_EMAIL: "Please enter a valid email address.",
|
|
49738
49739
|
INVALID_PHONE: "Phone number must contain exactly 10 digits.",
|
|
@@ -49752,16 +49753,16 @@ var II = {
|
|
|
49752
49753
|
NO_SPACES_ALLOWED: "Spaces are not allowed.",
|
|
49753
49754
|
MUST_START_WITH_CAPITAL: "First letter must be capital.",
|
|
49754
49755
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
49755
|
-
INVALID_FILE_SIZE: `File upload must be ${
|
|
49756
|
+
INVALID_FILE_SIZE: `File upload must be ${II.MAX_FILE_SIZE} MB below.`,
|
|
49756
49757
|
INVALID_FILE_TYPE: "Only JPG, PNG and PDF files are allowed.",
|
|
49757
49758
|
SINGLE_FILE_ONLY: "Only one file can be uploaded."
|
|
49758
|
-
},
|
|
49759
|
+
}, RI = {
|
|
49759
49760
|
FIRST_NAME_MIN: 3,
|
|
49760
49761
|
FIRST_NAME_MAX: 30
|
|
49761
|
-
},
|
|
49762
|
+
}, zI = {
|
|
49762
49763
|
REMARKS_MIN: 10,
|
|
49763
49764
|
REMARKS_MAX: 250
|
|
49764
|
-
},
|
|
49765
|
+
}, BI = {
|
|
49765
49766
|
removeSpaces: (e = "") => e.replace(/\s/g, ""),
|
|
49766
49767
|
capitalizeFirstLetter: (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
|
|
49767
49768
|
capitalizeWords: (e = "") => e.replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
@@ -49773,132 +49774,132 @@ var II = {
|
|
|
49773
49774
|
let t = e.replace(/\D/g, "");
|
|
49774
49775
|
return t.length <= 2 ? t : t.length <= 4 ? `${t.slice(0, 2)}/${t.slice(2)}` : `${t.slice(0, 2)}/${t.slice(2, 4)}/${t.slice(4, 8)}`;
|
|
49775
49776
|
}
|
|
49776
|
-
},
|
|
49777
|
+
}, VI = {
|
|
49777
49778
|
required: (e = "Field") => ({
|
|
49778
49779
|
required: !0,
|
|
49779
|
-
message:
|
|
49780
|
+
message: LI.REQUIRED(e)
|
|
49780
49781
|
}),
|
|
49781
49782
|
email: () => ({
|
|
49782
|
-
pattern:
|
|
49783
|
-
message:
|
|
49783
|
+
pattern: FI.EMAIL,
|
|
49784
|
+
message: LI.INVALID_EMAIL
|
|
49784
49785
|
}),
|
|
49785
49786
|
phone: () => ({
|
|
49786
|
-
pattern:
|
|
49787
|
-
message:
|
|
49787
|
+
pattern: FI.PHONE,
|
|
49788
|
+
message: LI.INVALID_PHONE
|
|
49788
49789
|
}),
|
|
49789
49790
|
password: () => ({
|
|
49790
|
-
pattern:
|
|
49791
|
-
message:
|
|
49791
|
+
pattern: FI.PASSWORD,
|
|
49792
|
+
message: LI.INVALID_PASSWORD
|
|
49792
49793
|
}),
|
|
49793
49794
|
alphabets: () => ({
|
|
49794
|
-
pattern:
|
|
49795
|
-
message:
|
|
49795
|
+
pattern: FI.ALPHABETS,
|
|
49796
|
+
message: LI.INVALID_ALPHABETS
|
|
49796
49797
|
}),
|
|
49797
49798
|
alphanumeric: () => ({
|
|
49798
|
-
pattern:
|
|
49799
|
-
message:
|
|
49799
|
+
pattern: FI.ALPHANUMERIC,
|
|
49800
|
+
message: LI.INVALID_ALPHANUMERIC
|
|
49800
49801
|
}),
|
|
49801
49802
|
number: () => ({
|
|
49802
|
-
pattern:
|
|
49803
|
-
message:
|
|
49803
|
+
pattern: FI.NUMBER,
|
|
49804
|
+
message: LI.INVALID_NUMBER
|
|
49804
49805
|
}),
|
|
49805
49806
|
url: () => ({
|
|
49806
|
-
pattern:
|
|
49807
|
-
message:
|
|
49807
|
+
pattern: FI.URL,
|
|
49808
|
+
message: LI.INVALID_URL
|
|
49808
49809
|
}),
|
|
49809
49810
|
candidateId: (e = "ID") => ({
|
|
49810
|
-
pattern:
|
|
49811
|
-
message:
|
|
49811
|
+
pattern: FI.CANDIDATE_ID,
|
|
49812
|
+
message: LI.INVALID_CANDIDATE_ID(e)
|
|
49812
49813
|
}),
|
|
49813
49814
|
remarks: () => ({
|
|
49814
|
-
pattern:
|
|
49815
|
-
message:
|
|
49816
|
-
REMARKS_MIN: `Remarks must be at least ${
|
|
49817
|
-
REMARKS_MAX: `Remarks must not exceed ${
|
|
49815
|
+
pattern: FI.REMARKS,
|
|
49816
|
+
message: LI.INVALID_REMARKS,
|
|
49817
|
+
REMARKS_MIN: `Remarks must be at least ${zI.REMARKS_MIN} characters.`,
|
|
49818
|
+
REMARKS_MAX: `Remarks must not exceed ${zI.REMARKS_MAX} characters.`
|
|
49818
49819
|
}),
|
|
49819
49820
|
designation: () => ({
|
|
49820
|
-
pattern:
|
|
49821
|
-
message:
|
|
49821
|
+
pattern: FI.DESIGNATION,
|
|
49822
|
+
message: LI.INVALID_DESIGNATION
|
|
49822
49823
|
}),
|
|
49823
49824
|
dob: (e = !0) => ({ validator: (t, n) => {
|
|
49824
49825
|
if (!n) return e ? Promise.reject(/* @__PURE__ */ Error("Date of Birth is required.")) : Promise.resolve();
|
|
49825
|
-
if (!
|
|
49826
|
+
if (!FI.DOB.test(n)) return Promise.reject(Error(LI.INVALID_DOB));
|
|
49826
49827
|
let r = Jo(n, "MM/DD/YYYY", !0);
|
|
49827
|
-
if (!r.isValid()) return Promise.reject(Error(
|
|
49828
|
+
if (!r.isValid()) return Promise.reject(Error(LI.INVALID_DOB));
|
|
49828
49829
|
let i = Jo().endOf("day");
|
|
49829
49830
|
return r.isAfter(i) ? Promise.reject(/* @__PURE__ */ Error("Date of Birth cannot be a future date.")) : i.diff(r, "year") < 21 ? Promise.reject(/* @__PURE__ */ Error("Age must be at least 21 years.")) : Promise.resolve();
|
|
49830
49831
|
} }),
|
|
49831
49832
|
linkedin: () => ({
|
|
49832
|
-
pattern:
|
|
49833
|
-
message:
|
|
49833
|
+
pattern: FI.LINKEDIN,
|
|
49834
|
+
message: LI.INVALID_LINKEDIN
|
|
49834
49835
|
}),
|
|
49835
49836
|
companyName: () => ({
|
|
49836
|
-
pattern:
|
|
49837
|
-
message:
|
|
49837
|
+
pattern: FI.COMPANY_NAME,
|
|
49838
|
+
message: LI.INVALID_COMPANY_NAME
|
|
49838
49839
|
}),
|
|
49839
49840
|
firstName: () => ({
|
|
49840
|
-
pattern:
|
|
49841
|
-
message:
|
|
49842
|
-
FIRST_NAME_MIN: `First Name must be at least ${
|
|
49843
|
-
FIRST_NAME_MAX: `First Name must not exceed ${
|
|
49841
|
+
pattern: FI.FIRST_NAME,
|
|
49842
|
+
message: LI.INVALID_FIRST_NAME,
|
|
49843
|
+
FIRST_NAME_MIN: `First Name must be at least ${RI.FIRST_NAME_MIN} characters.`,
|
|
49844
|
+
FIRST_NAME_MAX: `First Name must not exceed ${RI.FIRST_NAME_MAX} characters.`
|
|
49844
49845
|
}),
|
|
49845
49846
|
firstNameMinLength: () => ({
|
|
49846
|
-
min:
|
|
49847
|
-
message:
|
|
49847
|
+
min: RI.FIRST_NAME_MIN,
|
|
49848
|
+
message: LI.FIRST_NAME_MIN
|
|
49848
49849
|
}),
|
|
49849
49850
|
firstNameMaxLength: () => ({
|
|
49850
|
-
max:
|
|
49851
|
-
message:
|
|
49851
|
+
max: RI.FIRST_NAME_MAX,
|
|
49852
|
+
message: LI.FIRST_NAME_MAX
|
|
49852
49853
|
}),
|
|
49853
49854
|
remarksMinLength: () => ({
|
|
49854
|
-
min:
|
|
49855
|
-
message:
|
|
49855
|
+
min: zI.REMARKS_MIN,
|
|
49856
|
+
message: LI.REMARKS_MIN
|
|
49856
49857
|
}),
|
|
49857
49858
|
remarksMaxLength: () => ({
|
|
49858
|
-
max:
|
|
49859
|
-
message:
|
|
49859
|
+
max: zI.REMARKS_MAX,
|
|
49860
|
+
message: LI.REMARKS_MAX
|
|
49860
49861
|
}),
|
|
49861
49862
|
fullName: () => ({
|
|
49862
|
-
pattern:
|
|
49863
|
-
message:
|
|
49863
|
+
pattern: FI.FULL_NAME,
|
|
49864
|
+
message: LI.INVALID_FULL_NAME
|
|
49864
49865
|
}),
|
|
49865
49866
|
noSpaces: () => ({
|
|
49866
|
-
pattern:
|
|
49867
|
-
message:
|
|
49867
|
+
pattern: FI.NO_SPACES,
|
|
49868
|
+
message: LI.NO_SPACES_ALLOWED
|
|
49868
49869
|
}),
|
|
49869
49870
|
startsWithCapital: () => ({
|
|
49870
|
-
pattern:
|
|
49871
|
-
message:
|
|
49871
|
+
pattern: FI.STARTS_WITH_CAPITAL,
|
|
49872
|
+
message: LI.MUST_START_WITH_CAPITAL
|
|
49872
49873
|
}),
|
|
49873
49874
|
fileUpload: () => ({ validator: (e, t) => {
|
|
49874
49875
|
if (!t || t.length === 0) return Promise.resolve();
|
|
49875
49876
|
for (let e of t) {
|
|
49876
49877
|
let t = e.originFileObj || e;
|
|
49877
|
-
if (!(t.size / 1024 / 1024 <=
|
|
49878
|
-
if (!
|
|
49878
|
+
if (!(t.size / 1024 / 1024 <= II.MAX_FILE_SIZE)) return q.error(LI.INVALID_FILE_SIZE), Promise.reject(Error(LI.INVALID_FILE_SIZE));
|
|
49879
|
+
if (!II.ALLOWED_FILE_TYPES.includes(t.type)) return Promise.reject(Error(LI.INVALID_FILE_TYPE));
|
|
49879
49880
|
}
|
|
49880
49881
|
return Promise.resolve();
|
|
49881
49882
|
} }),
|
|
49882
49883
|
singleFileUpload: () => ({ validator: (e, t) => {
|
|
49883
49884
|
if (!t || t.length === 0) return Promise.resolve();
|
|
49884
|
-
if (t.length >
|
|
49885
|
+
if (t.length > II.SINGLE_FILE_COUNT) return Promise.reject(Error(LI.SINGLE_FILE_ONLY));
|
|
49885
49886
|
let n = t[0];
|
|
49886
|
-
return n.size / 1024 / 1024 <
|
|
49887
|
+
return n.size / 1024 / 1024 < II.MAX_FILE_SIZE ? II.ALLOWED_FILE_TYPES.includes(n.type) ? Promise.resolve() : Promise.reject(Error(LI.INVALID_FILE_TYPE)) : Promise.reject(Error(LI.INVALID_FILE_SIZE));
|
|
49887
49888
|
} }),
|
|
49888
49889
|
multiFileUpload: () => ({ validator: (e, t) => {
|
|
49889
49890
|
if (!t || t.length === 0) return Promise.resolve();
|
|
49890
|
-
if (t.length >
|
|
49891
|
+
if (t.length > II.MULTI_FILE_COUNT) return Promise.reject(Error(LI.INVALID_FILE_COUNT));
|
|
49891
49892
|
for (let e of t) {
|
|
49892
|
-
if (!(e.size / 1024 / 1024 <
|
|
49893
|
-
if (!
|
|
49893
|
+
if (!(e.size / 1024 / 1024 < II.MAX_FILE_SIZE)) return Promise.reject(Error(LI.INVALID_FILE_SIZE));
|
|
49894
|
+
if (!II.ALLOWED_FILE_TYPES.includes(e.type)) return Promise.reject(Error(LI.INVALID_FILE_TYPE));
|
|
49894
49895
|
}
|
|
49895
49896
|
return Promise.resolve();
|
|
49896
49897
|
} })
|
|
49897
|
-
},
|
|
49898
|
+
}, HI = { beforeUpload: (e) => [
|
|
49898
49899
|
"image/jpeg",
|
|
49899
49900
|
"image/png",
|
|
49900
49901
|
"application/pdf"
|
|
49901
|
-
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), Xi.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), Xi.LIST_IGNORE) },
|
|
49902
|
+
].includes(e.type) ? e.size / 1024 / 1024 <= 2 ? !1 : (q.error("File upload must be 2 MB below."), Xi.LIST_IGNORE) : (q.error("Only JPG, PNG and PDF files are allowed."), Xi.LIST_IGNORE) }, UI = () => {
|
|
49902
49903
|
let [e] = B.useForm();
|
|
49903
49904
|
return /* @__PURE__ */ Y("div", {
|
|
49904
49905
|
style: { padding: 24 },
|
|
@@ -49918,7 +49919,7 @@ var II = {
|
|
|
49918
49919
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49919
49920
|
label: "Email",
|
|
49920
49921
|
name: "email",
|
|
49921
|
-
rules: [
|
|
49922
|
+
rules: [VI.required("Email"), VI.email()],
|
|
49922
49923
|
children: /* @__PURE__ */ Y(V, {})
|
|
49923
49924
|
})
|
|
49924
49925
|
}),
|
|
@@ -49927,12 +49928,12 @@ var II = {
|
|
|
49927
49928
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49928
49929
|
label: "Phone Number",
|
|
49929
49930
|
name: "phone",
|
|
49930
|
-
rules: [
|
|
49931
|
+
rules: [VI.required("Phone Number"), VI.phone()],
|
|
49931
49932
|
validateTrigger: ["onBlur", "onChange"],
|
|
49932
49933
|
children: /* @__PURE__ */ Y(V, {
|
|
49933
49934
|
maxLength: 10,
|
|
49934
49935
|
onChange: (t) => {
|
|
49935
|
-
e.setFieldsValue({ phone:
|
|
49936
|
+
e.setFieldsValue({ phone: BI.phoneFormatter(t.target.value) });
|
|
49936
49937
|
}
|
|
49937
49938
|
})
|
|
49938
49939
|
})
|
|
@@ -49942,7 +49943,7 @@ var II = {
|
|
|
49942
49943
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49943
49944
|
label: "Password",
|
|
49944
49945
|
name: "password",
|
|
49945
|
-
rules: [
|
|
49946
|
+
rules: [VI.required("Password"), VI.password()],
|
|
49946
49947
|
children: /* @__PURE__ */ Y(V.Password, {})
|
|
49947
49948
|
})
|
|
49948
49949
|
}),
|
|
@@ -49952,13 +49953,13 @@ var II = {
|
|
|
49952
49953
|
label: "Full Name",
|
|
49953
49954
|
name: "fullName",
|
|
49954
49955
|
rules: [
|
|
49955
|
-
|
|
49956
|
-
|
|
49957
|
-
|
|
49958
|
-
|
|
49956
|
+
VI.required("Full Name"),
|
|
49957
|
+
VI.alphabets(),
|
|
49958
|
+
VI.firstNameMinLength(),
|
|
49959
|
+
VI.firstNameMaxLength()
|
|
49959
49960
|
],
|
|
49960
49961
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
49961
|
-
e.setFieldsValue({ fullName:
|
|
49962
|
+
e.setFieldsValue({ fullName: BI.firstNameFormatter(t.target.value) });
|
|
49962
49963
|
} })
|
|
49963
49964
|
})
|
|
49964
49965
|
}),
|
|
@@ -49967,9 +49968,9 @@ var II = {
|
|
|
49967
49968
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49968
49969
|
label: "Username",
|
|
49969
49970
|
name: "username",
|
|
49970
|
-
rules: [
|
|
49971
|
+
rules: [VI.required("Username"), VI.alphanumeric()],
|
|
49971
49972
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
49972
|
-
e.setFieldsValue({ username:
|
|
49973
|
+
e.setFieldsValue({ username: BI.removeExtraSpaces(t.target.value) });
|
|
49973
49974
|
} })
|
|
49974
49975
|
})
|
|
49975
49976
|
}),
|
|
@@ -49978,9 +49979,9 @@ var II = {
|
|
|
49978
49979
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49979
49980
|
label: "Website URL",
|
|
49980
49981
|
name: "website",
|
|
49981
|
-
rules: [
|
|
49982
|
+
rules: [VI.required("Website URL"), VI.url()],
|
|
49982
49983
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
49983
|
-
e.setFieldsValue({ website:
|
|
49984
|
+
e.setFieldsValue({ website: BI.removeExtraSpaces(t.target.value) });
|
|
49984
49985
|
} })
|
|
49985
49986
|
})
|
|
49986
49987
|
}),
|
|
@@ -49989,9 +49990,9 @@ var II = {
|
|
|
49989
49990
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
49990
49991
|
label: "MSP Req ID",
|
|
49991
49992
|
name: "mspreqID",
|
|
49992
|
-
rules: [
|
|
49993
|
+
rules: [VI.required("MSP Req ID"), VI.candidateId("MSP Req ID")],
|
|
49993
49994
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
49994
|
-
e.setFieldsValue({ mspreqID:
|
|
49995
|
+
e.setFieldsValue({ mspreqID: BI.removeExtraSpaces(t.target.value) });
|
|
49995
49996
|
} })
|
|
49996
49997
|
})
|
|
49997
49998
|
}),
|
|
@@ -50000,9 +50001,9 @@ var II = {
|
|
|
50000
50001
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
50001
50002
|
label: "Candidate ID",
|
|
50002
50003
|
name: "candidateId",
|
|
50003
|
-
rules: [
|
|
50004
|
+
rules: [VI.required("Candidate ID"), VI.candidateId("Candidate ID")],
|
|
50004
50005
|
children: /* @__PURE__ */ Y(V, { onChange: (t) => {
|
|
50005
|
-
e.setFieldsValue({ candidateId:
|
|
50006
|
+
e.setFieldsValue({ candidateId: BI.removeExtraSpaces(t.target.value) });
|
|
50006
50007
|
} })
|
|
50007
50008
|
})
|
|
50008
50009
|
}),
|
|
@@ -50012,10 +50013,10 @@ var II = {
|
|
|
50012
50013
|
label: "Remarks",
|
|
50013
50014
|
name: "remarks",
|
|
50014
50015
|
rules: [
|
|
50015
|
-
|
|
50016
|
-
|
|
50017
|
-
|
|
50018
|
-
|
|
50016
|
+
VI.required("Remarks"),
|
|
50017
|
+
VI.remarks(),
|
|
50018
|
+
VI.remarksMinLength(),
|
|
50019
|
+
VI.remarksMaxLength()
|
|
50019
50020
|
],
|
|
50020
50021
|
children: /* @__PURE__ */ Y(V.TextArea, { rows: 4 })
|
|
50021
50022
|
})
|
|
@@ -50025,7 +50026,7 @@ var II = {
|
|
|
50025
50026
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
50026
50027
|
label: "Designation",
|
|
50027
50028
|
name: "designation",
|
|
50028
|
-
rules: [
|
|
50029
|
+
rules: [VI.required("Designation"), VI.designation()],
|
|
50029
50030
|
children: /* @__PURE__ */ Y(V, {})
|
|
50030
50031
|
})
|
|
50031
50032
|
}),
|
|
@@ -50034,12 +50035,12 @@ var II = {
|
|
|
50034
50035
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
50035
50036
|
label: "Date of Birth",
|
|
50036
50037
|
name: "dob",
|
|
50037
|
-
rules: [
|
|
50038
|
+
rules: [VI.dob()],
|
|
50038
50039
|
children: /* @__PURE__ */ Y(V, {
|
|
50039
50040
|
placeholder: "MM/DD/YYYY",
|
|
50040
50041
|
maxLength: 10,
|
|
50041
50042
|
onChange: (t) => {
|
|
50042
|
-
e.setFieldsValue({ dob:
|
|
50043
|
+
e.setFieldsValue({ dob: BI.dobFormatter(t.target.value) });
|
|
50043
50044
|
}
|
|
50044
50045
|
})
|
|
50045
50046
|
})
|
|
@@ -50049,7 +50050,7 @@ var II = {
|
|
|
50049
50050
|
children: /* @__PURE__ */ Y(B.Item, {
|
|
50050
50051
|
label: "Company Name",
|
|
50051
50052
|
name: "companyName",
|
|
50052
|
-
rules: [
|
|
50053
|
+
rules: [VI.required("Company Name"), VI.companyName()],
|
|
50053
50054
|
children: /* @__PURE__ */ Y(V, {})
|
|
50054
50055
|
})
|
|
50055
50056
|
}),
|
|
@@ -50138,7 +50139,7 @@ var II = {
|
|
|
50138
50139
|
label: "Resume new",
|
|
50139
50140
|
name: "resume",
|
|
50140
50141
|
children: /* @__PURE__ */ Y(Xi, {
|
|
50141
|
-
beforeUpload:
|
|
50142
|
+
beforeUpload: HI.beforeUpload,
|
|
50142
50143
|
maxCount: 1,
|
|
50143
50144
|
children: /* @__PURE__ */ Y(R, { children: "Upload Resume" })
|
|
50144
50145
|
})
|
|
@@ -50151,10 +50152,10 @@ var II = {
|
|
|
50151
50152
|
name: "documents",
|
|
50152
50153
|
valuePropName: "fileList",
|
|
50153
50154
|
getValueFromEvent: (e) => e?.fileList,
|
|
50154
|
-
rules: [
|
|
50155
|
+
rules: [VI.multiFileUpload()],
|
|
50155
50156
|
children: /* @__PURE__ */ Y(Xi, {
|
|
50156
50157
|
multiple: !0,
|
|
50157
|
-
beforeUpload:
|
|
50158
|
+
beforeUpload: HI.beforeUpload,
|
|
50158
50159
|
children: /* @__PURE__ */ Y(R, { children: "Upload Documents" })
|
|
50159
50160
|
})
|
|
50160
50161
|
})
|
|
@@ -50166,9 +50167,9 @@ var II = {
|
|
|
50166
50167
|
name: "file",
|
|
50167
50168
|
valuePropName: "fileList",
|
|
50168
50169
|
getValueFromEvent: (e) => e?.fileList,
|
|
50169
|
-
rules: [
|
|
50170
|
+
rules: [VI.fileUpload()],
|
|
50170
50171
|
children: /* @__PURE__ */ Y(Xi, {
|
|
50171
|
-
beforeUpload:
|
|
50172
|
+
beforeUpload: HI.beforeUpload,
|
|
50172
50173
|
maxCount: 1,
|
|
50173
50174
|
children: /* @__PURE__ */ Y(R, { children: "Upload" })
|
|
50174
50175
|
})
|
|
@@ -50228,12 +50229,12 @@ var II = {
|
|
|
50228
50229
|
};
|
|
50229
50230
|
//#endregion
|
|
50230
50231
|
//#region src/pages/admin/AdminPageWithShell.jsx
|
|
50231
|
-
function
|
|
50232
|
+
function WI(e) {
|
|
50232
50233
|
return /* @__PURE__ */ Y(fE, { children: /* @__PURE__ */ Y(yM, { ...e }) });
|
|
50233
50234
|
}
|
|
50234
50235
|
//#endregion
|
|
50235
50236
|
//#region src/components/cards/StatsCards.jsx
|
|
50236
|
-
var { Text:
|
|
50237
|
+
var { Text: GI } = Yi, KI = [
|
|
50237
50238
|
{
|
|
50238
50239
|
label: "Total Jobs",
|
|
50239
50240
|
value: 1697,
|
|
@@ -50249,13 +50250,13 @@ var { Text: KI } = Yi, qI = [
|
|
|
50249
50250
|
value: 600,
|
|
50250
50251
|
icon: "user"
|
|
50251
50252
|
}
|
|
50252
|
-
],
|
|
50253
|
+
], qI = {
|
|
50253
50254
|
fileText: /* @__PURE__ */ Y(Wa, {}),
|
|
50254
50255
|
checkCircle: /* @__PURE__ */ Y(pa, {}),
|
|
50255
50256
|
user: /* @__PURE__ */ Y(Go, {}),
|
|
50256
50257
|
filter: /* @__PURE__ */ Y(Ka, {})
|
|
50257
50258
|
};
|
|
50258
|
-
function
|
|
50259
|
+
function JI({ stats: e = KI }) {
|
|
50259
50260
|
return /* @__PURE__ */ Y(yi, { children: /* @__PURE__ */ Y(zi, {
|
|
50260
50261
|
gutter: [12, 12],
|
|
50261
50262
|
children: e.map((e) => /* @__PURE__ */ Y(z, {
|
|
@@ -50268,7 +50269,7 @@ function YI({ stats: e = qI }) {
|
|
|
50268
50269
|
className: "stats-inner-card",
|
|
50269
50270
|
children: [/* @__PURE__ */ X(U, {
|
|
50270
50271
|
align: "center",
|
|
50271
|
-
children: [
|
|
50272
|
+
children: [qI[e.icon] ?? qI.fileText, /* @__PURE__ */ Y(GI, { children: e.label })]
|
|
50272
50273
|
}), /* @__PURE__ */ Y(Ui, { value: e.value })]
|
|
50273
50274
|
})
|
|
50274
50275
|
}, e.label))
|
|
@@ -50276,21 +50277,21 @@ function YI({ stats: e = qI }) {
|
|
|
50276
50277
|
}
|
|
50277
50278
|
//#endregion
|
|
50278
50279
|
//#region src/pages/Modules/Admin/UsersSection.jsx
|
|
50279
|
-
var { Text:
|
|
50280
|
-
function
|
|
50280
|
+
var { Text: YI } = Yi;
|
|
50281
|
+
function XI(e) {
|
|
50281
50282
|
return e?.USER_NAME ?? e?.user_name ?? e?.username ?? e?.name ?? e?.full_name ?? e?.fullName ?? e?.email ?? `User ${e?.USER_ID ?? e?.user_id ?? "?"}`;
|
|
50282
50283
|
}
|
|
50283
|
-
function
|
|
50284
|
+
function ZI(e) {
|
|
50284
50285
|
return {
|
|
50285
50286
|
...e,
|
|
50286
50287
|
key: e.USER_ID ?? e.user_id ?? e.userId ?? e.id ?? e._id,
|
|
50287
|
-
_name:
|
|
50288
|
+
_name: XI(e),
|
|
50288
50289
|
_email: e.email ?? e.EMAIL ?? e.user_email ?? "",
|
|
50289
50290
|
_role: e.role_name ?? e.roleName ?? e.ROLE_NAME ?? "",
|
|
50290
50291
|
_rawRef: e
|
|
50291
50292
|
};
|
|
50292
50293
|
}
|
|
50293
|
-
function
|
|
50294
|
+
function QI() {
|
|
50294
50295
|
let [e, t] = L([]), [n, r] = L(0), [i, a] = L(!1), [o, s] = L(1), [c, l] = L(10), [u, d] = L(""), f = ui(async ({ offset: e, limit: n, searchQuery: i } = {}) => {
|
|
50295
50296
|
a(!0);
|
|
50296
50297
|
try {
|
|
@@ -50298,7 +50299,7 @@ function $I() {
|
|
|
50298
50299
|
offset: e,
|
|
50299
50300
|
limit: n,
|
|
50300
50301
|
searchQuery: i ?? ""
|
|
50301
|
-
}), o = (a.users ?? []).map(
|
|
50302
|
+
}), o = (a.users ?? []).map(ZI);
|
|
50302
50303
|
t(o), r(a.total ?? o.length);
|
|
50303
50304
|
} catch {
|
|
50304
50305
|
q.error("Failed to load users");
|
|
@@ -50331,7 +50332,7 @@ function $I() {
|
|
|
50331
50332
|
label: "Name",
|
|
50332
50333
|
value: "_name",
|
|
50333
50334
|
width: 220,
|
|
50334
|
-
render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
50335
|
+
render: (e, t) => /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(YI, {
|
|
50335
50336
|
strong: !0,
|
|
50336
50337
|
style: { fontSize: 13 },
|
|
50337
50338
|
children: e
|
|
@@ -50363,7 +50364,7 @@ function $I() {
|
|
|
50363
50364
|
}
|
|
50364
50365
|
//#endregion
|
|
50365
50366
|
//#region src/pages/Modules/Admin/TeamsSection.jsx
|
|
50366
|
-
var { Text:
|
|
50367
|
+
var { Text: $I } = Yi, eL = [
|
|
50367
50368
|
{
|
|
50368
50369
|
key: "job",
|
|
50369
50370
|
label: "Jobs"
|
|
@@ -50376,7 +50377,7 @@ var { Text: eL } = Yi, tL = [
|
|
|
50376
50377
|
key: "submissions",
|
|
50377
50378
|
label: "Submissions"
|
|
50378
50379
|
}
|
|
50379
|
-
],
|
|
50380
|
+
], tL = [
|
|
50380
50381
|
{
|
|
50381
50382
|
key: "listView",
|
|
50382
50383
|
label: "List View"
|
|
@@ -50390,7 +50391,7 @@ var { Text: eL } = Yi, tL = [
|
|
|
50390
50391
|
label: "Form"
|
|
50391
50392
|
}
|
|
50392
50393
|
];
|
|
50393
|
-
function
|
|
50394
|
+
function nL({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
50394
50395
|
let i = pi(null), [a, o] = L(!1), [s, c] = L(!1);
|
|
50395
50396
|
function l(e) {
|
|
50396
50397
|
i.current = t, e.dataTransfer.effectAllowed = "move", c(!0);
|
|
@@ -50454,7 +50455,7 @@ function rL({ field: e, index: t, onToggle: n, onReorder: r }) {
|
|
|
50454
50455
|
]
|
|
50455
50456
|
});
|
|
50456
50457
|
}
|
|
50457
|
-
function
|
|
50458
|
+
function rL({ team: e, configType: t }) {
|
|
50458
50459
|
let [n, r] = L({}), [i, a] = L(!1), [o, s] = L({}), [c, l] = L("job");
|
|
50459
50460
|
F(() => {
|
|
50460
50461
|
e && (a(!0), ri(e, t).then(r).catch(() => q.error("Failed to load field config")).finally(() => a(!1)));
|
|
@@ -50505,7 +50506,7 @@ function iL({ team: e, configType: t }) {
|
|
|
50505
50506
|
size: "small",
|
|
50506
50507
|
activeKey: c,
|
|
50507
50508
|
onChange: l,
|
|
50508
|
-
items:
|
|
50509
|
+
items: eL.map((e) => ({
|
|
50509
50510
|
key: e.key,
|
|
50510
50511
|
label: e.label
|
|
50511
50512
|
}))
|
|
@@ -50534,7 +50535,7 @@ function iL({ team: e, configType: t }) {
|
|
|
50534
50535
|
children: [u.length === 0 && !i && /* @__PURE__ */ Y("div", {
|
|
50535
50536
|
className: "uss-empty",
|
|
50536
50537
|
children: "No fields found."
|
|
50537
|
-
}), u.map((e, t) => /* @__PURE__ */ Y(
|
|
50538
|
+
}), u.map((e, t) => /* @__PURE__ */ Y(nL, {
|
|
50538
50539
|
field: e,
|
|
50539
50540
|
index: t,
|
|
50540
50541
|
onToggle: f,
|
|
@@ -50548,13 +50549,13 @@ function iL({ team: e, configType: t }) {
|
|
|
50548
50549
|
size: "small",
|
|
50549
50550
|
loading: o[c],
|
|
50550
50551
|
onClick: m,
|
|
50551
|
-
children: ["Save ",
|
|
50552
|
+
children: ["Save ", eL.find((e) => e.key === c)?.label]
|
|
50552
50553
|
})
|
|
50553
50554
|
})
|
|
50554
50555
|
]
|
|
50555
50556
|
});
|
|
50556
50557
|
}
|
|
50557
|
-
function
|
|
50558
|
+
function iL() {
|
|
50558
50559
|
let [e, t] = L(null), [n, r] = L(!1), [i, a] = L(!1), [o, s] = L("listView"), [c, l] = L([]), [u, d] = L(0), [f, p] = L(!1), [m, h] = L(""), [g, _] = L(!1), v = ui(async () => {
|
|
50559
50560
|
p(!0);
|
|
50560
50561
|
try {
|
|
@@ -50701,13 +50702,13 @@ function aL() {
|
|
|
50701
50702
|
style: { marginBottom: 12 },
|
|
50702
50703
|
children: /* @__PURE__ */ Y("div", {
|
|
50703
50704
|
className: "uss-config-toggle",
|
|
50704
|
-
children:
|
|
50705
|
+
children: tL.map((e) => /* @__PURE__ */ Y("button", {
|
|
50705
50706
|
className: `uss-config-btn${o === e.key ? " active" : ""}`,
|
|
50706
50707
|
onClick: () => s(e.key),
|
|
50707
50708
|
children: e.label
|
|
50708
50709
|
}, e.key))
|
|
50709
50710
|
})
|
|
50710
|
-
}), e && /* @__PURE__ */ Y(
|
|
50711
|
+
}), e && /* @__PURE__ */ Y(rL, {
|
|
50711
50712
|
team: e,
|
|
50712
50713
|
configType: o
|
|
50713
50714
|
}, `${e?.teamId}-${o}`)]
|
|
@@ -50716,12 +50717,12 @@ function aL() {
|
|
|
50716
50717
|
}
|
|
50717
50718
|
//#endregion
|
|
50718
50719
|
//#region src/pages/Modules/Admin/components/RolePermPanel.jsx
|
|
50719
|
-
var
|
|
50720
|
+
var aL = [
|
|
50720
50721
|
"view",
|
|
50721
50722
|
"add",
|
|
50722
50723
|
"edit",
|
|
50723
50724
|
"delete"
|
|
50724
|
-
],
|
|
50725
|
+
], oL = {
|
|
50725
50726
|
view: "View",
|
|
50726
50727
|
add: "Add",
|
|
50727
50728
|
edit: "Edit",
|
|
@@ -50736,18 +50737,18 @@ var oL = [
|
|
|
50736
50737
|
reApprove: "ReApprove",
|
|
50737
50738
|
sendApprove: "Send Approve"
|
|
50738
50739
|
};
|
|
50739
|
-
function
|
|
50740
|
-
return
|
|
50740
|
+
function sL(e) {
|
|
50741
|
+
return oL[e] ?? e.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
50741
50742
|
}
|
|
50742
|
-
function
|
|
50743
|
-
let t =
|
|
50743
|
+
function cL(e) {
|
|
50744
|
+
let t = aL.filter((t) => e.includes(t)), n = e.filter((e) => !aL.includes(e)).sort();
|
|
50744
50745
|
return [...t, ...n];
|
|
50745
50746
|
}
|
|
50746
|
-
function
|
|
50747
|
+
function lL(e) {
|
|
50747
50748
|
let t = /* @__PURE__ */ new Set();
|
|
50748
|
-
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))),
|
|
50749
|
+
return Object.values(e).forEach(({ permissions: e }) => Object.keys(e ?? {}).forEach((e) => t.add(e))), cL([...t]);
|
|
50749
50750
|
}
|
|
50750
|
-
function
|
|
50751
|
+
function uL(e) {
|
|
50751
50752
|
let t = 0, n = 0;
|
|
50752
50753
|
return Object.entries(e).forEach(([e, { permissions: r }]) => {
|
|
50753
50754
|
Object.entries(r ?? {}).forEach(([r, { value: i }]) => {
|
|
@@ -50758,7 +50759,7 @@ function dL(e) {
|
|
|
50758
50759
|
total: n
|
|
50759
50760
|
};
|
|
50760
50761
|
}
|
|
50761
|
-
function
|
|
50762
|
+
function dL(e = {}) {
|
|
50762
50763
|
if (!e || typeof e != "object") return e;
|
|
50763
50764
|
let t = Object.keys(e).find((e) => String(e).trim().toLowerCase() === "onboarding");
|
|
50764
50765
|
if (!t) return e;
|
|
@@ -50775,7 +50776,7 @@ function fL(e = {}) {
|
|
|
50775
50776
|
}
|
|
50776
50777
|
};
|
|
50777
50778
|
}
|
|
50778
|
-
function
|
|
50779
|
+
function fL({ value: e, onSave: t, className: n }) {
|
|
50779
50780
|
let [r, i] = L(!1), [a, o] = L(e);
|
|
50780
50781
|
F(() => {
|
|
50781
50782
|
o(e);
|
|
@@ -50804,7 +50805,7 @@ function pL({ value: e, onSave: t, className: n }) {
|
|
|
50804
50805
|
children: [e, /* @__PURE__ */ Y(ja, { className: "perm-name-edit-icon" })]
|
|
50805
50806
|
});
|
|
50806
50807
|
}
|
|
50807
|
-
function
|
|
50808
|
+
function pL({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
50808
50809
|
let [i, a] = L(!1), [o, s] = L(t), c = e?.value === "1", l = !!e;
|
|
50809
50810
|
F(() => {
|
|
50810
50811
|
s(t);
|
|
@@ -50846,13 +50847,13 @@ function mL({ entry: e, label: t, onToggle: n, onLabelSave: r }) {
|
|
|
50846
50847
|
})
|
|
50847
50848
|
});
|
|
50848
50849
|
}
|
|
50849
|
-
function
|
|
50850
|
+
function mL({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i, actionLabels: a, onModuleLabelSave: o, onActionLabelSave: s }) {
|
|
50850
50851
|
let c = t?.permissions ?? {}, l = n.filter((t) => SD(e, t)), u = l.filter((e) => c[e]?.value === "1").length, d = l.filter((e) => c[e]).length, f = d > 0 && u === d;
|
|
50851
50852
|
return /* @__PURE__ */ X("div", {
|
|
50852
50853
|
className: `perm-module-card${f ? " all-on" : u > 0 && !f ? " some-on" : ""}`,
|
|
50853
50854
|
children: [/* @__PURE__ */ X("div", {
|
|
50854
50855
|
className: "perm-module-card-header",
|
|
50855
|
-
children: [/* @__PURE__ */ Y(
|
|
50856
|
+
children: [/* @__PURE__ */ Y(fL, {
|
|
50856
50857
|
value: i,
|
|
50857
50858
|
onSave: (t) => o(e, t),
|
|
50858
50859
|
className: "perm-module-card-name"
|
|
@@ -50866,20 +50867,20 @@ function hL({ menuName: e, menuData: t, permKeys: n, onChange: r, displayName: i
|
|
|
50866
50867
|
})]
|
|
50867
50868
|
}), /* @__PURE__ */ Y("div", {
|
|
50868
50869
|
className: "perm-module-card-body",
|
|
50869
|
-
children: l.map((t) => /* @__PURE__ */ Y(
|
|
50870
|
+
children: l.map((t) => /* @__PURE__ */ Y(pL, {
|
|
50870
50871
|
entry: c[t],
|
|
50871
|
-
label: a[t] ??
|
|
50872
|
+
label: a[t] ?? sL(t),
|
|
50872
50873
|
onToggle: () => r(e, t),
|
|
50873
50874
|
onLabelSave: (e) => s(t, e)
|
|
50874
50875
|
}, t))
|
|
50875
50876
|
})]
|
|
50876
50877
|
});
|
|
50877
50878
|
}
|
|
50878
|
-
function
|
|
50879
|
+
function hL({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabelSave: r = () => {}, onActionLabelSave: i = () => {} }) {
|
|
50879
50880
|
let [a, o] = L({}), [s, c] = L({}), [l, u] = L(!1), [d, f] = L(!1), [p, m] = L(!1), h = it(e);
|
|
50880
50881
|
F(() => {
|
|
50881
50882
|
h && (u(!0), m(!1), He(h).then((e) => {
|
|
50882
|
-
let t =
|
|
50883
|
+
let t = dL(e);
|
|
50883
50884
|
o(t), c(t);
|
|
50884
50885
|
}).catch(() => q.error("Failed to load permissions")).finally(() => u(!1)));
|
|
50885
50886
|
}, [h]);
|
|
@@ -50917,7 +50918,7 @@ function gL({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
50917
50918
|
f(!1);
|
|
50918
50919
|
}
|
|
50919
50920
|
}
|
|
50920
|
-
let v = I(() => Object.keys(s).sort(), [s]), y = I(() =>
|
|
50921
|
+
let v = I(() => Object.keys(s).sort(), [s]), y = I(() => lL(s), [s]), { enabled: b, total: x } = I(() => uL(s), [s]);
|
|
50921
50922
|
return /* @__PURE__ */ X(Hi, {
|
|
50922
50923
|
spinning: l,
|
|
50923
50924
|
children: [
|
|
@@ -50968,7 +50969,7 @@ function gL({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
50968
50969
|
children: "No permission entries found for this role."
|
|
50969
50970
|
}) : /* @__PURE__ */ Y("div", {
|
|
50970
50971
|
className: "perm-cards-grid",
|
|
50971
|
-
children: v.map((e) => /* @__PURE__ */ Y(
|
|
50972
|
+
children: v.map((e) => /* @__PURE__ */ Y(mL, {
|
|
50972
50973
|
menuName: e,
|
|
50973
50974
|
menuData: s[e],
|
|
50974
50975
|
permKeys: y,
|
|
@@ -50984,7 +50985,7 @@ function gL({ role: e, moduleLabels: t = {}, actionLabels: n = {}, onModuleLabel
|
|
|
50984
50985
|
}
|
|
50985
50986
|
//#endregion
|
|
50986
50987
|
//#region src/pages/Modules/Admin/RolesSection.jsx
|
|
50987
|
-
var { Text:
|
|
50988
|
+
var { Text: gL } = Yi, _L = [
|
|
50988
50989
|
{
|
|
50989
50990
|
key: "listView",
|
|
50990
50991
|
label: "List View"
|
|
@@ -51002,38 +51003,38 @@ var { Text: _L } = Yi, vL = [
|
|
|
51002
51003
|
label: "Permissions"
|
|
51003
51004
|
}
|
|
51004
51005
|
];
|
|
51005
|
-
function
|
|
51006
|
+
function vL(e) {
|
|
51006
51007
|
return String(e || "").replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()).trim();
|
|
51007
51008
|
}
|
|
51008
|
-
function
|
|
51009
|
+
function yL(e) {
|
|
51009
51010
|
return String(e || "").trim().toLowerCase();
|
|
51010
51011
|
}
|
|
51011
|
-
function
|
|
51012
|
+
function bL(e) {
|
|
51012
51013
|
return e?.key || e?.collectionName || e?.value || "";
|
|
51013
51014
|
}
|
|
51014
|
-
function
|
|
51015
|
+
function xL(e = [], t = []) {
|
|
51015
51016
|
let n = [], r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
51016
51017
|
return e.forEach((e) => {
|
|
51017
|
-
let t =
|
|
51018
|
+
let t = bL(e);
|
|
51018
51019
|
if (!t) return;
|
|
51019
|
-
let o =
|
|
51020
|
+
let o = yL(e.key || t), s = yL(e.collectionName);
|
|
51020
51021
|
e.seeded && (i.add(o), s && i.add(s)), s && a.add(s), r.add(t), n.push({
|
|
51021
|
-
label: e.label ||
|
|
51022
|
+
label: e.label || vL(t),
|
|
51022
51023
|
value: t,
|
|
51023
51024
|
disabled: !!e.seeded
|
|
51024
51025
|
});
|
|
51025
51026
|
}), t.forEach((e) => {
|
|
51026
51027
|
let t = String(e || "").trim();
|
|
51027
51028
|
if (!t || r.has(t)) return;
|
|
51028
|
-
let o =
|
|
51029
|
+
let o = yL(t);
|
|
51029
51030
|
a.has(o) || i.has(o) || (r.add(t), n.push({
|
|
51030
|
-
label:
|
|
51031
|
+
label: vL(t),
|
|
51031
51032
|
value: t,
|
|
51032
51033
|
disabled: !1
|
|
51033
51034
|
}));
|
|
51034
51035
|
}), n;
|
|
51035
51036
|
}
|
|
51036
|
-
function
|
|
51037
|
+
function SL() {
|
|
51037
51038
|
let [e, t] = L(null), [n, r] = L(!1), [i, a] = L("listView"), [o, s] = L([]), [c, l] = L(0), [u, d] = L(!1), [f, p] = L([]), [m, h] = L([]), [g, _] = L(!1), [v, y] = L(!1), b = I(() => f.filter((e) => !e.disabled), [f]), x = !g && b.length === 0, S = ui(async () => {
|
|
51038
51039
|
d(!0);
|
|
51039
51040
|
try {
|
|
@@ -51047,7 +51048,7 @@ function CL() {
|
|
|
51047
51048
|
}, []), C = ui(async () => {
|
|
51048
51049
|
_(!0);
|
|
51049
51050
|
try {
|
|
51050
|
-
let [e, t] = await Promise.all([$r(), mn()]), n =
|
|
51051
|
+
let [e, t] = await Promise.all([$r(), mn()]), n = xL(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
|
|
51051
51052
|
p(n), h((e) => e.filter((e) => r.has(e)));
|
|
51052
51053
|
} catch {
|
|
51053
51054
|
q.error("Failed to load seed status");
|
|
@@ -51113,7 +51114,7 @@ function CL() {
|
|
|
51113
51114
|
onClick: w,
|
|
51114
51115
|
children: "Seed Field Config"
|
|
51115
51116
|
})]
|
|
51116
|
-
}), /* @__PURE__ */ Y(
|
|
51117
|
+
}), /* @__PURE__ */ Y(gL, {
|
|
51117
51118
|
type: "secondary",
|
|
51118
51119
|
style: {
|
|
51119
51120
|
display: "block",
|
|
@@ -51193,13 +51194,13 @@ function CL() {
|
|
|
51193
51194
|
style: { marginBottom: 12 },
|
|
51194
51195
|
children: /* @__PURE__ */ Y("div", {
|
|
51195
51196
|
className: "uss-config-toggle",
|
|
51196
|
-
children:
|
|
51197
|
+
children: _L.map((e) => /* @__PURE__ */ Y("button", {
|
|
51197
51198
|
className: `uss-config-btn${i === e.key ? " active" : ""}`,
|
|
51198
51199
|
onClick: () => a(e.key),
|
|
51199
51200
|
children: e.label
|
|
51200
51201
|
}, e.key))
|
|
51201
51202
|
})
|
|
51202
|
-
}), e && (i === "permissions" ? /* @__PURE__ */ Y(
|
|
51203
|
+
}), e && (i === "permissions" ? /* @__PURE__ */ Y(hL, { role: e }, e?.roleId) : /* @__PURE__ */ Y(BD, {
|
|
51203
51204
|
role: e,
|
|
51204
51205
|
configType: i
|
|
51205
51206
|
}, `${e?.roleId}-${i}`))]
|
|
@@ -51208,20 +51209,20 @@ function CL() {
|
|
|
51208
51209
|
}
|
|
51209
51210
|
//#endregion
|
|
51210
51211
|
//#region src/pages/Modules/Admin/PermissionsPage.jsx
|
|
51211
|
-
var
|
|
51212
|
-
function
|
|
51212
|
+
var CL = "perm-module-labels", wL = "perm-action-labels";
|
|
51213
|
+
function TL(e) {
|
|
51213
51214
|
try {
|
|
51214
51215
|
return JSON.parse(localStorage.getItem(e) ?? "{}");
|
|
51215
51216
|
} catch {
|
|
51216
51217
|
return {};
|
|
51217
51218
|
}
|
|
51218
51219
|
}
|
|
51219
|
-
function
|
|
51220
|
+
function EL(e, t) {
|
|
51220
51221
|
try {
|
|
51221
51222
|
localStorage.setItem(e, JSON.stringify(t));
|
|
51222
51223
|
} catch {}
|
|
51223
51224
|
}
|
|
51224
|
-
function
|
|
51225
|
+
function DL({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
51225
51226
|
let [i, a] = L(!1), [o, s] = L(e);
|
|
51226
51227
|
function c() {
|
|
51227
51228
|
a(!1);
|
|
@@ -51272,7 +51273,7 @@ function OL({ label: e, onSave: t, onDelete: n, loading: r }) {
|
|
|
51272
51273
|
})]
|
|
51273
51274
|
});
|
|
51274
51275
|
}
|
|
51275
|
-
function
|
|
51276
|
+
function OL({ open: e, onClose: t }) {
|
|
51276
51277
|
let [n, r] = L("modules"), [i, a] = L([]), [o, s] = L(!1), [c, l] = L(""), [u, d] = L(!1), [f, p] = L([]), [m, h] = L(!1), [g, _] = L(""), [v, y] = L(""), [b, x] = L(!1);
|
|
51277
51278
|
F(() => {
|
|
51278
51279
|
e && (S(), C());
|
|
@@ -51394,7 +51395,7 @@ function kL({ open: e, onClose: t }) {
|
|
|
51394
51395
|
className: "perm-empty",
|
|
51395
51396
|
style: { paddingTop: 24 },
|
|
51396
51397
|
children: "No modules found"
|
|
51397
|
-
}), i.map((e) => /* @__PURE__ */ Y(
|
|
51398
|
+
}), i.map((e) => /* @__PURE__ */ Y(DL, {
|
|
51398
51399
|
label: e.MENUNAME,
|
|
51399
51400
|
onSave: (t) => T(e.MENUID, t),
|
|
51400
51401
|
onDelete: () => E(e.MENUID)
|
|
@@ -51439,7 +51440,7 @@ function kL({ open: e, onClose: t }) {
|
|
|
51439
51440
|
className: "perm-empty",
|
|
51440
51441
|
style: { paddingTop: 24 },
|
|
51441
51442
|
children: "No actions found"
|
|
51442
|
-
}), f.map((e) => /* @__PURE__ */ Y(
|
|
51443
|
+
}), f.map((e) => /* @__PURE__ */ Y(DL, {
|
|
51443
51444
|
label: `${e.permissionName} (${e.permissionKey})`,
|
|
51444
51445
|
onSave: (t) => O(e.permissionId, t),
|
|
51445
51446
|
onDelete: () => k(e.permissionId)
|
|
@@ -51469,14 +51470,14 @@ function kL({ open: e, onClose: t }) {
|
|
|
51469
51470
|
})
|
|
51470
51471
|
});
|
|
51471
51472
|
}
|
|
51472
|
-
function
|
|
51473
|
-
let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() =>
|
|
51473
|
+
function kL() {
|
|
51474
|
+
let [e, t] = L([]), [n, r] = L(!1), [i, a] = L(null), [o, s] = L(""), [c, l] = L(!1), [u, d] = L(() => TL(CL)), [f, p] = L(() => TL(wL)), m = ui((e, t) => {
|
|
51474
51475
|
d((n) => {
|
|
51475
51476
|
let r = {
|
|
51476
51477
|
...n,
|
|
51477
51478
|
[e]: t
|
|
51478
51479
|
};
|
|
51479
|
-
return
|
|
51480
|
+
return EL(CL, r), r;
|
|
51480
51481
|
});
|
|
51481
51482
|
}, []), h = ui((e, t) => {
|
|
51482
51483
|
p((n) => {
|
|
@@ -51484,11 +51485,11 @@ function AL() {
|
|
|
51484
51485
|
...n,
|
|
51485
51486
|
[e]: t
|
|
51486
51487
|
};
|
|
51487
|
-
return
|
|
51488
|
+
return EL(wL, r), r;
|
|
51488
51489
|
});
|
|
51489
51490
|
}, []);
|
|
51490
51491
|
function g() {
|
|
51491
|
-
d({}), p({}),
|
|
51492
|
+
d({}), p({}), EL(CL, {}), EL(wL, {}), q.success("Labels reset to defaults");
|
|
51492
51493
|
}
|
|
51493
51494
|
let _ = ui(async () => {
|
|
51494
51495
|
r(!0);
|
|
@@ -51572,7 +51573,7 @@ function AL() {
|
|
|
51572
51573
|
})]
|
|
51573
51574
|
}),
|
|
51574
51575
|
bodyStyle: { padding: "12px 16px" },
|
|
51575
|
-
children: i ? /* @__PURE__ */ Y(
|
|
51576
|
+
children: i ? /* @__PURE__ */ Y(hL, {
|
|
51576
51577
|
role: i,
|
|
51577
51578
|
moduleLabels: u,
|
|
51578
51579
|
actionLabels: f,
|
|
@@ -51583,7 +51584,7 @@ function AL() {
|
|
|
51583
51584
|
children: "Select a role from the left to manage its permissions."
|
|
51584
51585
|
})
|
|
51585
51586
|
}),
|
|
51586
|
-
/* @__PURE__ */ Y(
|
|
51587
|
+
/* @__PURE__ */ Y(OL, {
|
|
51587
51588
|
open: c,
|
|
51588
51589
|
onClose: () => l(!1)
|
|
51589
51590
|
})
|
|
@@ -51592,7 +51593,7 @@ function AL() {
|
|
|
51592
51593
|
}
|
|
51593
51594
|
//#endregion
|
|
51594
51595
|
//#region src/components/cards/OnboardingCard.jsx
|
|
51595
|
-
var { Title:
|
|
51596
|
+
var { Title: AL, Text: jL } = Yi, ML = [
|
|
51596
51597
|
{
|
|
51597
51598
|
label: "In Progress",
|
|
51598
51599
|
value: 107,
|
|
@@ -51618,10 +51619,10 @@ var { Title: jL, Text: ML } = Yi, NL = [
|
|
|
51618
51619
|
color: "peach"
|
|
51619
51620
|
}
|
|
51620
51621
|
];
|
|
51621
|
-
function
|
|
51622
|
+
function NL({ items: e = ML }) {
|
|
51622
51623
|
return /* @__PURE__ */ Y(yi, {
|
|
51623
51624
|
className: "onboarding-card",
|
|
51624
|
-
title: /* @__PURE__ */ Y(
|
|
51625
|
+
title: /* @__PURE__ */ Y(AL, {
|
|
51625
51626
|
level: 5,
|
|
51626
51627
|
children: "Onboarding"
|
|
51627
51628
|
}),
|
|
@@ -51640,7 +51641,7 @@ function PL({ items: e = NL }) {
|
|
|
51640
51641
|
children: /* @__PURE__ */ X("div", {
|
|
51641
51642
|
className: `onboarding-item ${e.color}`,
|
|
51642
51643
|
children: [
|
|
51643
|
-
/* @__PURE__ */ Y(
|
|
51644
|
+
/* @__PURE__ */ Y(jL, {
|
|
51644
51645
|
className: "onboarding-item-label",
|
|
51645
51646
|
children: e.label
|
|
51646
51647
|
}),
|
|
@@ -51650,7 +51651,7 @@ function PL({ items: e = NL }) {
|
|
|
51650
51651
|
}),
|
|
51651
51652
|
/* @__PURE__ */ Y("div", {
|
|
51652
51653
|
className: "onboarding-item-footer",
|
|
51653
|
-
children: /* @__PURE__ */ Y(
|
|
51654
|
+
children: /* @__PURE__ */ Y(jL, {
|
|
51654
51655
|
className: "onboarding-item-sub",
|
|
51655
51656
|
children: e.sub
|
|
51656
51657
|
})
|
|
@@ -51663,7 +51664,7 @@ function PL({ items: e = NL }) {
|
|
|
51663
51664
|
}
|
|
51664
51665
|
//#endregion
|
|
51665
51666
|
//#region src/pages/Modules/LegacyAdminPage.jsx
|
|
51666
|
-
var { Text:
|
|
51667
|
+
var { Text: PL, Title: FL } = Yi, IL = [
|
|
51667
51668
|
{
|
|
51668
51669
|
group: "Dashboard",
|
|
51669
51670
|
items: [{
|
|
@@ -51878,7 +51879,7 @@ var { Text: FL, Title: IL } = Yi, LL = [
|
|
|
51878
51879
|
}
|
|
51879
51880
|
]
|
|
51880
51881
|
}
|
|
51881
|
-
],
|
|
51882
|
+
], LL = [
|
|
51882
51883
|
{
|
|
51883
51884
|
label: "Sourced",
|
|
51884
51885
|
count: 312,
|
|
@@ -51909,7 +51910,7 @@ var { Text: FL, Title: IL } = Yi, LL = [
|
|
|
51909
51910
|
color: "#E24B4A",
|
|
51910
51911
|
pct: 10
|
|
51911
51912
|
}
|
|
51912
|
-
],
|
|
51913
|
+
], RL = [
|
|
51913
51914
|
{
|
|
51914
51915
|
name: "Tcs",
|
|
51915
51916
|
jobs: 14,
|
|
@@ -51930,7 +51931,7 @@ var { Text: FL, Title: IL } = Yi, LL = [
|
|
|
51930
51931
|
jobs: 5,
|
|
51931
51932
|
candidates: 38
|
|
51932
51933
|
}
|
|
51933
|
-
],
|
|
51934
|
+
], zL = [
|
|
51934
51935
|
{
|
|
51935
51936
|
text: "New candidate Ravi Kumar added to Java Developer role",
|
|
51936
51937
|
time: "2 min ago",
|
|
@@ -51957,7 +51958,7 @@ var { Text: FL, Title: IL } = Yi, LL = [
|
|
|
51957
51958
|
color: "#E24B4A"
|
|
51958
51959
|
}
|
|
51959
51960
|
];
|
|
51960
|
-
function
|
|
51961
|
+
function BL() {
|
|
51961
51962
|
return /* @__PURE__ */ X("div", {
|
|
51962
51963
|
style: {
|
|
51963
51964
|
display: "flex",
|
|
@@ -51970,11 +51971,11 @@ function VL() {
|
|
|
51970
51971
|
title: "Admin Dashboard",
|
|
51971
51972
|
children: [
|
|
51972
51973
|
/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
|
|
51973
|
-
/* @__PURE__ */ Y(
|
|
51974
|
+
/* @__PURE__ */ Y(FL, {
|
|
51974
51975
|
level: 5,
|
|
51975
51976
|
children: "Admin Dashboard"
|
|
51976
51977
|
}),
|
|
51977
|
-
/* @__PURE__ */ Y(
|
|
51978
|
+
/* @__PURE__ */ Y(PL, {
|
|
51978
51979
|
type: "secondary",
|
|
51979
51980
|
children: "Overview of jobs, candidates, onboarding and recent activity"
|
|
51980
51981
|
})
|
|
@@ -51982,7 +51983,7 @@ function VL() {
|
|
|
51982
51983
|
}),
|
|
51983
51984
|
/* @__PURE__ */ Y("div", {
|
|
51984
51985
|
className: "admin-dashboard-stats",
|
|
51985
|
-
children: /* @__PURE__ */ Y(
|
|
51986
|
+
children: /* @__PURE__ */ Y(JI, { stats: [
|
|
51986
51987
|
{
|
|
51987
51988
|
label: "Total Jobs",
|
|
51988
51989
|
value: 1697,
|
|
@@ -52012,18 +52013,18 @@ function VL() {
|
|
|
52012
52013
|
}),
|
|
52013
52014
|
/* @__PURE__ */ X("div", {
|
|
52014
52015
|
className: "admin-dashboard-mid-row",
|
|
52015
|
-
children: [/* @__PURE__ */ Y(
|
|
52016
|
+
children: [/* @__PURE__ */ Y(NL, {}), /* @__PURE__ */ X(CD, {
|
|
52016
52017
|
icon: /* @__PURE__ */ Y(ta, {}),
|
|
52017
52018
|
title: "Candidate Pipeline",
|
|
52018
52019
|
children: [
|
|
52019
|
-
/* @__PURE__ */ Y(
|
|
52020
|
+
/* @__PURE__ */ Y(PL, {
|
|
52020
52021
|
type: "secondary",
|
|
52021
52022
|
style: { fontSize: 12 },
|
|
52022
52023
|
children: "By stage (892 total)"
|
|
52023
52024
|
}),
|
|
52024
52025
|
/* @__PURE__ */ Y("div", {
|
|
52025
52026
|
className: "admin-pipeline-bar",
|
|
52026
|
-
children:
|
|
52027
|
+
children: LL.map((e) => /* @__PURE__ */ Y("div", {
|
|
52027
52028
|
className: "admin-pipeline-seg",
|
|
52028
52029
|
style: {
|
|
52029
52030
|
width: `${e.pct}%`,
|
|
@@ -52033,7 +52034,7 @@ function VL() {
|
|
|
52033
52034
|
}),
|
|
52034
52035
|
/* @__PURE__ */ Y("div", {
|
|
52035
52036
|
className: "admin-pipeline-legend",
|
|
52036
|
-
children:
|
|
52037
|
+
children: LL.map((e) => /* @__PURE__ */ X("div", {
|
|
52037
52038
|
className: "admin-pipeline-legend-item",
|
|
52038
52039
|
children: [
|
|
52039
52040
|
/* @__PURE__ */ Y("span", {
|
|
@@ -52047,7 +52048,7 @@ function VL() {
|
|
|
52047
52048
|
}, e.label))
|
|
52048
52049
|
}),
|
|
52049
52050
|
/* @__PURE__ */ Y("div", { className: "admin-divider" }),
|
|
52050
|
-
/* @__PURE__ */ Y(
|
|
52051
|
+
/* @__PURE__ */ Y(PL, {
|
|
52051
52052
|
strong: !0,
|
|
52052
52053
|
style: { fontSize: 12 },
|
|
52053
52054
|
children: "Submission status"
|
|
@@ -52058,7 +52059,7 @@ function VL() {
|
|
|
52058
52059
|
children: [
|
|
52059
52060
|
/* @__PURE__ */ X("div", {
|
|
52060
52061
|
className: "admin-sub-status-item",
|
|
52061
|
-
children: [/* @__PURE__ */ Y(
|
|
52062
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52062
52063
|
style: { fontSize: 13 },
|
|
52063
52064
|
children: "Pending client review"
|
|
52064
52065
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -52068,7 +52069,7 @@ function VL() {
|
|
|
52068
52069
|
}),
|
|
52069
52070
|
/* @__PURE__ */ X("div", {
|
|
52070
52071
|
className: "admin-sub-status-item",
|
|
52071
|
-
children: [/* @__PURE__ */ Y(
|
|
52072
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52072
52073
|
style: { fontSize: 13 },
|
|
52073
52074
|
children: "Client approved"
|
|
52074
52075
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -52078,7 +52079,7 @@ function VL() {
|
|
|
52078
52079
|
}),
|
|
52079
52080
|
/* @__PURE__ */ X("div", {
|
|
52080
52081
|
className: "admin-sub-status-item",
|
|
52081
|
-
children: [/* @__PURE__ */ Y(
|
|
52082
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52082
52083
|
style: { fontSize: 13 },
|
|
52083
52084
|
children: "Rejected"
|
|
52084
52085
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -52101,7 +52102,7 @@ function VL() {
|
|
|
52101
52102
|
size: "small",
|
|
52102
52103
|
children: "View all"
|
|
52103
52104
|
}),
|
|
52104
|
-
children:
|
|
52105
|
+
children: RL.map((e) => /* @__PURE__ */ X("div", {
|
|
52105
52106
|
className: "admin-client-row",
|
|
52106
52107
|
children: [/* @__PURE__ */ X("div", {
|
|
52107
52108
|
className: "admin-client-left",
|
|
@@ -52129,7 +52130,7 @@ function VL() {
|
|
|
52129
52130
|
}), /* @__PURE__ */ Y(CD, {
|
|
52130
52131
|
icon: /* @__PURE__ */ Y(oa, {}),
|
|
52131
52132
|
title: "Recent Activity",
|
|
52132
|
-
children:
|
|
52133
|
+
children: zL.map((e, t) => /* @__PURE__ */ X("div", {
|
|
52133
52134
|
className: "admin-activity-row",
|
|
52134
52135
|
children: [/* @__PURE__ */ Y("div", {
|
|
52135
52136
|
className: "admin-activity-dot",
|
|
@@ -52157,7 +52158,7 @@ function VL() {
|
|
|
52157
52158
|
children: [
|
|
52158
52159
|
/* @__PURE__ */ X(z, {
|
|
52159
52160
|
span: 8,
|
|
52160
|
-
children: [/* @__PURE__ */ Y(
|
|
52161
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52161
52162
|
type: "secondary",
|
|
52162
52163
|
style: {
|
|
52163
52164
|
fontSize: 12,
|
|
@@ -52170,7 +52171,7 @@ function VL() {
|
|
|
52170
52171
|
["Templates", 2]
|
|
52171
52172
|
].map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
52172
52173
|
className: "admin-cfg-overview-row",
|
|
52173
|
-
children: [/* @__PURE__ */ Y(
|
|
52174
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52174
52175
|
style: { fontSize: 12 },
|
|
52175
52176
|
children: e
|
|
52176
52177
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -52181,7 +52182,7 @@ function VL() {
|
|
|
52181
52182
|
}),
|
|
52182
52183
|
/* @__PURE__ */ X(z, {
|
|
52183
52184
|
span: 8,
|
|
52184
|
-
children: [/* @__PURE__ */ Y(
|
|
52185
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52185
52186
|
type: "secondary",
|
|
52186
52187
|
style: {
|
|
52187
52188
|
fontSize: 12,
|
|
@@ -52194,7 +52195,7 @@ function VL() {
|
|
|
52194
52195
|
["Submissions", 2]
|
|
52195
52196
|
].map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
52196
52197
|
className: "admin-cfg-overview-row",
|
|
52197
|
-
children: [/* @__PURE__ */ Y(
|
|
52198
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52198
52199
|
style: { fontSize: 12 },
|
|
52199
52200
|
children: e
|
|
52200
52201
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -52205,7 +52206,7 @@ function VL() {
|
|
|
52205
52206
|
}),
|
|
52206
52207
|
/* @__PURE__ */ X(z, {
|
|
52207
52208
|
span: 8,
|
|
52208
|
-
children: [/* @__PURE__ */ Y(
|
|
52209
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52209
52210
|
type: "secondary",
|
|
52210
52211
|
style: {
|
|
52211
52212
|
fontSize: 12,
|
|
@@ -52218,10 +52219,10 @@ function VL() {
|
|
|
52218
52219
|
["Config Items", 19]
|
|
52219
52220
|
].map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
52220
52221
|
className: "admin-cfg-overview-row",
|
|
52221
|
-
children: [/* @__PURE__ */ Y(
|
|
52222
|
+
children: [/* @__PURE__ */ Y(PL, {
|
|
52222
52223
|
style: { fontSize: 12 },
|
|
52223
52224
|
children: e
|
|
52224
|
-
}), /* @__PURE__ */ Y(
|
|
52225
|
+
}), /* @__PURE__ */ Y(PL, {
|
|
52225
52226
|
strong: !0,
|
|
52226
52227
|
style: { fontSize: 12 },
|
|
52227
52228
|
children: t
|
|
@@ -52234,7 +52235,7 @@ function VL() {
|
|
|
52234
52235
|
]
|
|
52235
52236
|
});
|
|
52236
52237
|
}
|
|
52237
|
-
function
|
|
52238
|
+
function VL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r, setSearchText: i, allItems: a, handleNav: o }) {
|
|
52238
52239
|
return /* @__PURE__ */ X(zi, {
|
|
52239
52240
|
gutter: [16, 16],
|
|
52240
52241
|
children: [
|
|
@@ -52253,11 +52254,11 @@ function HL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
52253
52254
|
}),
|
|
52254
52255
|
children: [
|
|
52255
52256
|
/* @__PURE__ */ Y("div", { className: "admin-accent-bar" }),
|
|
52256
|
-
/* @__PURE__ */ Y(
|
|
52257
|
+
/* @__PURE__ */ Y(FL, {
|
|
52257
52258
|
level: 5,
|
|
52258
52259
|
children: e?.heading
|
|
52259
52260
|
}),
|
|
52260
|
-
/* @__PURE__ */ Y(
|
|
52261
|
+
/* @__PURE__ */ Y(PL, {
|
|
52261
52262
|
type: "secondary",
|
|
52262
52263
|
children: e?.desc
|
|
52263
52264
|
})
|
|
@@ -52271,7 +52272,7 @@ function HL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
52271
52272
|
children: /* @__PURE__ */ Y(CD, {
|
|
52272
52273
|
icon: /* @__PURE__ */ Y(ta, {}),
|
|
52273
52274
|
title: "Configuration Items",
|
|
52274
|
-
extra: /* @__PURE__ */ X(
|
|
52275
|
+
extra: /* @__PURE__ */ X(PL, {
|
|
52275
52276
|
type: "secondary",
|
|
52276
52277
|
children: [
|
|
52277
52278
|
n.length,
|
|
@@ -52338,7 +52339,7 @@ function HL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
52338
52339
|
title: "Section Overview",
|
|
52339
52340
|
children: [/* @__PURE__ */ Y("div", {
|
|
52340
52341
|
className: "admin-overview-list",
|
|
52341
|
-
children:
|
|
52342
|
+
children: IL.filter((e) => e.group !== "Dashboard").map((e) => {
|
|
52342
52343
|
let n = e.group === t?.group;
|
|
52343
52344
|
return /* @__PURE__ */ X("div", {
|
|
52344
52345
|
className: `admin-overview-item${n ? " active" : ""}`,
|
|
@@ -52386,12 +52387,12 @@ function HL({ activeSection: e, activeGroup: t, filteredCards: n, searchText: r,
|
|
|
52386
52387
|
]
|
|
52387
52388
|
});
|
|
52388
52389
|
}
|
|
52389
|
-
function
|
|
52390
|
-
let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() =>
|
|
52390
|
+
function HL() {
|
|
52391
|
+
let [e, t] = L("dashboard"), [n, r] = L(""), i = I(() => IL.flatMap((e) => e.items), []), a = I(() => i.find((t) => t.id === e), [i, e]), o = I(() => IL.find((t) => t.items.some((t) => t.id === e)), [e]), s = I(() => {
|
|
52391
52392
|
if (!a?.cards) return [];
|
|
52392
52393
|
let e = n.trim().toLowerCase();
|
|
52393
52394
|
return e ? a.cards.filter((t) => t.label.toLowerCase().includes(e) || t.desc.toLowerCase().includes(e)) : a.cards;
|
|
52394
|
-
}, [a, n]), c = I(() =>
|
|
52395
|
+
}, [a, n]), c = I(() => IL.map((e) => ({
|
|
52395
52396
|
key: e.group,
|
|
52396
52397
|
type: "group",
|
|
52397
52398
|
label: e.group,
|
|
@@ -52440,7 +52441,7 @@ function UL() {
|
|
|
52440
52441
|
children: "Groups"
|
|
52441
52442
|
}), /* @__PURE__ */ Y("span", {
|
|
52442
52443
|
className: "admin-sidebar-pill-value",
|
|
52443
|
-
children:
|
|
52444
|
+
children: IL.length
|
|
52444
52445
|
})]
|
|
52445
52446
|
})
|
|
52446
52447
|
}), /* @__PURE__ */ Y(z, {
|
|
@@ -52470,7 +52471,7 @@ function UL() {
|
|
|
52470
52471
|
xs: 24,
|
|
52471
52472
|
lg: 18,
|
|
52472
52473
|
xl: 19,
|
|
52473
|
-
children: e === "dashboard" ? /* @__PURE__ */ Y(
|
|
52474
|
+
children: e === "dashboard" ? /* @__PURE__ */ Y(BL, {}) : a?.component === "form-groups" ? /* @__PURE__ */ Y(Ok, {}) : a?.component === "detail-groups" ? /* @__PURE__ */ Y(tA, {}) : a?.component === "row-actions" ? /* @__PURE__ */ Y(WA, {}) : a?.component === "users" ? /* @__PURE__ */ Y(QI, {}) : a?.component === "teams" ? /* @__PURE__ */ Y(iL, {}) : a?.component === "roles" ? /* @__PURE__ */ Y(SL, {}) : a?.component === "permissions" ? /* @__PURE__ */ Y(kL, {}) : a?.component === "templates" ? /* @__PURE__ */ Y(ej, {}) : a?.component === "ai-services" ? /* @__PURE__ */ Y(ij, {}) : a?.component === "bgc-integration" ? /* @__PURE__ */ Y(uj, {}) : /* @__PURE__ */ Y(VL, {
|
|
52474
52475
|
activeSection: a,
|
|
52475
52476
|
activeGroup: o,
|
|
52476
52477
|
filteredCards: s,
|
|
@@ -52485,8 +52486,8 @@ function UL() {
|
|
|
52485
52486
|
}
|
|
52486
52487
|
//#endregion
|
|
52487
52488
|
//#region src/pages/stickyNotesFullPage.jsx
|
|
52488
|
-
var { Title:
|
|
52489
|
-
function
|
|
52489
|
+
var { Title: UL } = Yi;
|
|
52490
|
+
function WL() {
|
|
52490
52491
|
let e = ns(), { state: t } = ts(), n = t?.moduleName || "stickyNotes", r = t?.title || "Sticky Notes", i = {
|
|
52491
52492
|
...t?.request,
|
|
52492
52493
|
params: {
|
|
@@ -52511,7 +52512,7 @@ function GL() {
|
|
|
52511
52512
|
}
|
|
52512
52513
|
//#endregion
|
|
52513
52514
|
//#region src/pages/BulkUpload/index.jsx
|
|
52514
|
-
var { Text:
|
|
52515
|
+
var { Text: GL, Title: KL } = Yi, qL = 10 * 1024 * 1024, JL = "/templates/test_cases_flow_template.base64.txt", YL = "test_cases_flow_template.xlsx", XL = "module | subModule | step_order | description | actions | key | value | expected | scenario", ZL = {
|
|
52515
52516
|
idle: 0,
|
|
52516
52517
|
module_set: 1,
|
|
52517
52518
|
encoding: 1,
|
|
@@ -52520,7 +52521,7 @@ var { Text: KL, Title: qL } = Yi, JL = 10 * 1024 * 1024, YL = "/templates/test_c
|
|
|
52520
52521
|
inserting: 3,
|
|
52521
52522
|
done: 4,
|
|
52522
52523
|
error: 1
|
|
52523
|
-
},
|
|
52524
|
+
}, QL = [
|
|
52524
52525
|
{
|
|
52525
52526
|
label: "Home",
|
|
52526
52527
|
href: "/"
|
|
@@ -52534,31 +52535,31 @@ var { Text: KL, Title: qL } = Yi, JL = 10 * 1024 * 1024, YL = "/templates/test_c
|
|
|
52534
52535
|
href: "/bulk-upload"
|
|
52535
52536
|
}
|
|
52536
52537
|
];
|
|
52537
|
-
function
|
|
52538
|
+
function $L(e) {
|
|
52538
52539
|
return new Promise((t, n) => {
|
|
52539
52540
|
let r = new FileReader();
|
|
52540
52541
|
r.onload = () => t(String(r.result).split(",")[1]), r.onerror = n, r.readAsDataURL(e);
|
|
52541
52542
|
});
|
|
52542
52543
|
}
|
|
52543
|
-
function
|
|
52544
|
+
function eR(e) {
|
|
52544
52545
|
return e.filter((e) => e.row_status === "valid").map((e) => {
|
|
52545
52546
|
let t = { ...e };
|
|
52546
52547
|
return delete t.row_status, delete t.errors, t;
|
|
52547
52548
|
});
|
|
52548
52549
|
}
|
|
52549
|
-
function
|
|
52550
|
+
function tR(e) {
|
|
52550
52551
|
return e.flatMap((e) => (e.errors ?? []).map((t) => ({
|
|
52551
52552
|
id: e.id,
|
|
52552
52553
|
...t
|
|
52553
52554
|
})));
|
|
52554
52555
|
}
|
|
52555
|
-
function
|
|
52556
|
+
function nR({ errors: e }) {
|
|
52556
52557
|
return /* @__PURE__ */ Y("div", {
|
|
52557
52558
|
className: "bulk-tooltip-errors",
|
|
52558
52559
|
children: (e ?? []).map((e, t) => /* @__PURE__ */ Y("div", { children: e.message }, `${e.field}-${t}`))
|
|
52559
52560
|
});
|
|
52560
52561
|
}
|
|
52561
|
-
function
|
|
52562
|
+
function rR({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
52562
52563
|
return e.length === 0 ? null : /* @__PURE__ */ X("div", {
|
|
52563
52564
|
className: "bulk-error-banner",
|
|
52564
52565
|
children: [/* @__PURE__ */ X("div", {
|
|
@@ -52589,7 +52590,7 @@ function iR({ errors: e, expanded: t, onToggle: n, onSummaryClick: r }) {
|
|
|
52589
52590
|
})]
|
|
52590
52591
|
});
|
|
52591
52592
|
}
|
|
52592
|
-
function
|
|
52593
|
+
function iR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, saving: a, firstInvalidRowId: o, firstInvalidRowRef: s }) {
|
|
52593
52594
|
let c = e.filter((e) => e.row_status === "invalid"), l = t === "errors" ? c : e, u = c.length > 0 || a;
|
|
52594
52595
|
return /* @__PURE__ */ X(J, { children: [
|
|
52595
52596
|
/* @__PURE__ */ X(zi, {
|
|
@@ -52605,7 +52606,7 @@ function aR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
52605
52606
|
type: t === "errors" ? "primary" : "default",
|
|
52606
52607
|
onClick: () => n("errors"),
|
|
52607
52608
|
children: "Errors only"
|
|
52608
|
-
})] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(
|
|
52609
|
+
})] }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(GL, {
|
|
52609
52610
|
type: "secondary",
|
|
52610
52611
|
children: [e.length, " row(s)"]
|
|
52611
52612
|
}) })]
|
|
@@ -52677,7 +52678,7 @@ function aR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
52677
52678
|
children: "Valid"
|
|
52678
52679
|
}) }),
|
|
52679
52680
|
/* @__PURE__ */ Y("td", { children: n ? /* @__PURE__ */ Y(K, {
|
|
52680
|
-
title: /* @__PURE__ */ Y(
|
|
52681
|
+
title: /* @__PURE__ */ Y(nR, { errors: t }),
|
|
52681
52682
|
placement: "left",
|
|
52682
52683
|
children: /* @__PURE__ */ X("button", {
|
|
52683
52684
|
type: "button",
|
|
@@ -52714,11 +52715,11 @@ function aR({ rows: e, view: t, onViewChange: n, onConfirm: r, onReset: i, savin
|
|
|
52714
52715
|
})
|
|
52715
52716
|
] });
|
|
52716
52717
|
}
|
|
52717
|
-
function
|
|
52718
|
+
function aR() {
|
|
52718
52719
|
let e = ns(), t = I(() => c(), []), n = pi(null), r = pi(null), [i, a] = L([]), [o, s] = L(""), [l, u] = L("idle"), [d, f] = L(!1), [p, m] = L(null), [h, g] = L([]), [_, v] = L("all"), [y, b] = L(null), [x, S] = L(null), [C, w] = L(!1), T = i.map((e) => ({
|
|
52719
52720
|
value: e.modulename,
|
|
52720
52721
|
label: e.modulename
|
|
52721
|
-
})), E =
|
|
52722
|
+
})), E = tR(h), D = l === "encoding" || l === "validating", O = !!o && !D, k = ZL[l] ?? 0, A = h.find((e) => e.row_status === "invalid")?.id, j = ui(() => {
|
|
52722
52723
|
s(""), u("idle"), f(!1), m(null), g([]), v("all"), b(null), S(null), n.current && (n.current.value = "");
|
|
52723
52724
|
}, []);
|
|
52724
52725
|
F(() => {
|
|
@@ -52743,7 +52744,7 @@ function oR() {
|
|
|
52743
52744
|
u("module_set"), b({ message: "Invalid file type. Please upload an Excel .xlsx or CSV .csv file." });
|
|
52744
52745
|
return;
|
|
52745
52746
|
}
|
|
52746
|
-
if (e.size >
|
|
52747
|
+
if (e.size > qL) {
|
|
52747
52748
|
u("module_set"), b({ message: "File must be 10 MB or smaller." });
|
|
52748
52749
|
return;
|
|
52749
52750
|
}
|
|
@@ -52752,7 +52753,7 @@ function oR() {
|
|
|
52752
52753
|
size: e.size
|
|
52753
52754
|
}), u("encoding");
|
|
52754
52755
|
try {
|
|
52755
|
-
let r = await
|
|
52756
|
+
let r = await $L(e);
|
|
52756
52757
|
u("validating"), g((await wE({
|
|
52757
52758
|
filename: e.name,
|
|
52758
52759
|
project: t?.name ?? "",
|
|
@@ -52768,12 +52769,12 @@ function oR() {
|
|
|
52768
52769
|
}
|
|
52769
52770
|
}, M = async () => {
|
|
52770
52771
|
try {
|
|
52771
|
-
let e = await fetch(
|
|
52772
|
+
let e = await fetch(JL);
|
|
52772
52773
|
if (!e.ok) throw Error(`Template file not found (${e.status})`);
|
|
52773
52774
|
let t = (await e.text()).trim(), n = atob(t), r = new Uint8Array(n.length);
|
|
52774
52775
|
for (let e = 0; e < n.length; e += 1) r[e] = n.charCodeAt(e);
|
|
52775
52776
|
let i = new Blob([r], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), a = URL.createObjectURL(i), o = document.createElement("a");
|
|
52776
|
-
o.href = a, o.download =
|
|
52777
|
+
o.href = a, o.download = YL, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(a), q.success("Sample template downloaded.");
|
|
52777
52778
|
} catch (e) {
|
|
52778
52779
|
console.error(e), q.error("Unable to download sample template.");
|
|
52779
52780
|
}
|
|
@@ -52784,7 +52785,7 @@ function oR() {
|
|
|
52784
52785
|
project: t?.name ?? "",
|
|
52785
52786
|
module: o,
|
|
52786
52787
|
uploaded_by: localStorage.getItem("user_Email") ?? "",
|
|
52787
|
-
rows:
|
|
52788
|
+
rows: eR(h)
|
|
52788
52789
|
})), u("done"), q.success("Bulk upload saved. Redirecting to view test cases..."), window.setTimeout(() => e("/viewTestCase"), 900);
|
|
52789
52790
|
} catch (e) {
|
|
52790
52791
|
console.error(e), b(e.payload ?? {
|
|
@@ -52810,7 +52811,7 @@ function oR() {
|
|
|
52810
52811
|
align: "middle",
|
|
52811
52812
|
justify: "space-between",
|
|
52812
52813
|
className: "breadcrumb-action-wrapper",
|
|
52813
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
52814
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: QL }) }), t?.name && /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(GL, {
|
|
52814
52815
|
strong: !0,
|
|
52815
52816
|
children: t.name
|
|
52816
52817
|
}) })]
|
|
@@ -52819,16 +52820,16 @@ function oR() {
|
|
|
52819
52820
|
children: [
|
|
52820
52821
|
/* @__PURE__ */ X("div", {
|
|
52821
52822
|
className: "bulk-header",
|
|
52822
|
-
children: [/* @__PURE__ */ Y(
|
|
52823
|
+
children: [/* @__PURE__ */ Y(KL, {
|
|
52823
52824
|
level: 3,
|
|
52824
52825
|
children: "Bulk upload test cases"
|
|
52825
52826
|
}), /* @__PURE__ */ X(U, {
|
|
52826
52827
|
direction: "vertical",
|
|
52827
52828
|
size: 4,
|
|
52828
|
-
children: [/* @__PURE__ */ Y(
|
|
52829
|
+
children: [/* @__PURE__ */ Y(GL, {
|
|
52829
52830
|
type: "secondary",
|
|
52830
|
-
children:
|
|
52831
|
-
}), /* @__PURE__ */ Y(
|
|
52831
|
+
children: XL
|
|
52832
|
+
}), /* @__PURE__ */ Y(GL, {
|
|
52832
52833
|
type: "secondary",
|
|
52833
52834
|
children: "Use the sample template for the required columns. Uploaded rows are saved as Active by default."
|
|
52834
52835
|
})]
|
|
@@ -52926,7 +52927,7 @@ function oR() {
|
|
|
52926
52927
|
className: "v1-card zt-fall",
|
|
52927
52928
|
title: "3. Validation result",
|
|
52928
52929
|
children: [
|
|
52929
|
-
/* @__PURE__ */ Y(
|
|
52930
|
+
/* @__PURE__ */ Y(rR, {
|
|
52930
52931
|
errors: E,
|
|
52931
52932
|
expanded: C,
|
|
52932
52933
|
onToggle: () => w((e) => !e),
|
|
@@ -52938,7 +52939,7 @@ function oR() {
|
|
|
52938
52939
|
message: y.message,
|
|
52939
52940
|
className: "bulk-inline-alert"
|
|
52940
52941
|
}),
|
|
52941
|
-
/* @__PURE__ */ Y(
|
|
52942
|
+
/* @__PURE__ */ Y(iR, {
|
|
52942
52943
|
rows: h,
|
|
52943
52944
|
view: _,
|
|
52944
52945
|
onViewChange: v,
|
|
@@ -52961,17 +52962,17 @@ function oR() {
|
|
|
52961
52962
|
/* @__PURE__ */ Y(z, {
|
|
52962
52963
|
xs: 24,
|
|
52963
52964
|
md: 8,
|
|
52964
|
-
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
52965
|
+
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(GL, { children: "Total" }), /* @__PURE__ */ Y("strong", { children: h.length })] })
|
|
52965
52966
|
}),
|
|
52966
52967
|
/* @__PURE__ */ Y(z, {
|
|
52967
52968
|
xs: 24,
|
|
52968
52969
|
md: 8,
|
|
52969
|
-
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
52970
|
+
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(GL, { children: "Inserted" }), /* @__PURE__ */ Y("strong", { children: x.inserted ?? 0 })] })
|
|
52970
52971
|
}),
|
|
52971
52972
|
/* @__PURE__ */ Y(z, {
|
|
52972
52973
|
xs: 24,
|
|
52973
52974
|
md: 8,
|
|
52974
|
-
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
52975
|
+
children: /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(GL, { children: "Failed" }), /* @__PURE__ */ Y("strong", { children: x.failed ?? 0 })] })
|
|
52975
52976
|
})
|
|
52976
52977
|
]
|
|
52977
52978
|
}),
|
|
@@ -52995,7 +52996,7 @@ function oR() {
|
|
|
52995
52996
|
}
|
|
52996
52997
|
//#endregion
|
|
52997
52998
|
//#region src/services/dropdownValues/testPageValues.js
|
|
52998
|
-
var
|
|
52999
|
+
var oR = [
|
|
52999
53000
|
{
|
|
53000
53001
|
value: "navigate",
|
|
53001
53002
|
label: "Navigate"
|
|
@@ -53128,82 +53129,82 @@ var sR = [
|
|
|
53128
53129
|
value: "wait_for_text",
|
|
53129
53130
|
label: "Wait For Text"
|
|
53130
53131
|
}
|
|
53131
|
-
], { Text:
|
|
53132
|
+
], { Text: sR } = Yi, cR = [{
|
|
53132
53133
|
label: "Home",
|
|
53133
53134
|
href: "/"
|
|
53134
53135
|
}, {
|
|
53135
53136
|
label: "Test Cases",
|
|
53136
53137
|
href: "/test-cases"
|
|
53137
|
-
}],
|
|
53138
|
+
}], lR = {
|
|
53138
53139
|
tags: "regression",
|
|
53139
53140
|
active: 1
|
|
53140
|
-
},
|
|
53141
|
+
}, uR = { module: {
|
|
53141
53142
|
dbName: "Modules",
|
|
53142
53143
|
formField: "module",
|
|
53143
53144
|
label: "Module"
|
|
53144
53145
|
} };
|
|
53145
|
-
function
|
|
53146
|
+
function dR(e = []) {
|
|
53146
53147
|
return e.map((e) => ({
|
|
53147
53148
|
value: e,
|
|
53148
53149
|
label: e
|
|
53149
53150
|
}));
|
|
53150
53151
|
}
|
|
53151
|
-
function
|
|
53152
|
+
function fR(e = "") {
|
|
53152
53153
|
return String(e ?? "").trim();
|
|
53153
53154
|
}
|
|
53154
|
-
function
|
|
53155
|
-
return
|
|
53155
|
+
function pR(e = "") {
|
|
53156
|
+
return fR(e).toLowerCase();
|
|
53156
53157
|
}
|
|
53157
|
-
function
|
|
53158
|
+
function mR(e = []) {
|
|
53158
53159
|
let t = /* @__PURE__ */ new Map();
|
|
53159
53160
|
return e.forEach((e) => {
|
|
53160
|
-
let n =
|
|
53161
|
+
let n = fR(e?.flow), r = n.toLowerCase();
|
|
53161
53162
|
n && !t.has(r) && t.set(r, n);
|
|
53162
53163
|
}), Array.from(t.values()).map((e) => ({
|
|
53163
53164
|
value: e,
|
|
53164
53165
|
label: e
|
|
53165
53166
|
}));
|
|
53166
53167
|
}
|
|
53167
|
-
function
|
|
53168
|
-
let r =
|
|
53168
|
+
function hR(e = [], t, n) {
|
|
53169
|
+
let r = fR(t).toLowerCase(), i = fR(n).toLowerCase();
|
|
53169
53170
|
return e.reduce((e, t) => {
|
|
53170
|
-
let n =
|
|
53171
|
+
let n = fR(t?.module).toLowerCase(), a = fR(t?.flow).toLowerCase();
|
|
53171
53172
|
if (n !== r || a !== i) return e;
|
|
53172
53173
|
let o = Number(t?.step_order) || 0;
|
|
53173
53174
|
return Math.max(e, o);
|
|
53174
53175
|
}, 0) + 1;
|
|
53175
53176
|
}
|
|
53176
|
-
function
|
|
53177
|
+
function gR({ icon: e, title: t }) {
|
|
53177
53178
|
return /* @__PURE__ */ X(U, {
|
|
53178
53179
|
size: 10,
|
|
53179
53180
|
align: "center",
|
|
53180
53181
|
children: [/* @__PURE__ */ Y("div", {
|
|
53181
53182
|
className: "v1-section-icon-box",
|
|
53182
53183
|
children: e
|
|
53183
|
-
}), /* @__PURE__ */ Y(
|
|
53184
|
+
}), /* @__PURE__ */ Y(sR, {
|
|
53184
53185
|
strong: !0,
|
|
53185
53186
|
className: "v1-section-label",
|
|
53186
53187
|
children: t
|
|
53187
53188
|
})]
|
|
53188
53189
|
});
|
|
53189
53190
|
}
|
|
53190
|
-
function
|
|
53191
|
+
function _R() {
|
|
53191
53192
|
let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(!1), [u, d] = L(!1), [f, p] = L({
|
|
53192
53193
|
open: !1,
|
|
53193
53194
|
typeKey: "module"
|
|
53194
|
-
}), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ns(), x =
|
|
53195
|
+
}), [m, h] = L(!1), [g, _] = L(!1), [v, y] = L(!1), b = ns(), x = uR[f.typeKey], S = I(() => dR(n), [n]), C = B.useWatch("module", e), w = B.useWatch("flow", e), T = !!fR(C), E = !!fR(w), D = !T, O = !T || !E, k = (e, t = []) => {
|
|
53195
53196
|
e === "module" && r(t);
|
|
53196
53197
|
}, A = async () => {
|
|
53197
53198
|
l(!0);
|
|
53198
53199
|
try {
|
|
53199
|
-
r((await yE(
|
|
53200
|
+
r((await yE(uR.module.dbName))?.items ?? []);
|
|
53200
53201
|
} catch (e) {
|
|
53201
53202
|
console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
|
|
53202
53203
|
} finally {
|
|
53203
53204
|
l(!1);
|
|
53204
53205
|
}
|
|
53205
53206
|
}, j = ui(async (t) => {
|
|
53206
|
-
let n =
|
|
53207
|
+
let n = fR(t);
|
|
53207
53208
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
53208
53209
|
d(!0);
|
|
53209
53210
|
try {
|
|
@@ -53212,7 +53213,7 @@ function vR() {
|
|
|
53212
53213
|
offset: 0,
|
|
53213
53214
|
module: n
|
|
53214
53215
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
53215
|
-
a(t), s(
|
|
53216
|
+
a(t), s(mR(t));
|
|
53216
53217
|
} catch (e) {
|
|
53217
53218
|
console.error("Unable to load flows:", e), q.error("Unable to load flows.");
|
|
53218
53219
|
} finally {
|
|
@@ -53220,14 +53221,14 @@ function vR() {
|
|
|
53220
53221
|
}
|
|
53221
53222
|
}
|
|
53222
53223
|
}, [e]), ee = ui(async (t, n, r) => {
|
|
53223
|
-
let i =
|
|
53224
|
+
let i = fR(t), a = fR(n);
|
|
53224
53225
|
if (!i || !a) {
|
|
53225
53226
|
e.setFieldsValue({ step_order: void 0 });
|
|
53226
53227
|
return;
|
|
53227
53228
|
}
|
|
53228
53229
|
_(!0);
|
|
53229
53230
|
try {
|
|
53230
|
-
e.setFieldsValue({ step_order:
|
|
53231
|
+
e.setFieldsValue({ step_order: hR(r, i, a) });
|
|
53231
53232
|
} catch (e) {
|
|
53232
53233
|
console.error("Unable to load step order:", e), q.error("Unable to load step order.");
|
|
53233
53234
|
} finally {
|
|
@@ -53248,15 +53249,15 @@ function vR() {
|
|
|
53248
53249
|
]);
|
|
53249
53250
|
let te = async (t) => {
|
|
53250
53251
|
let n = {
|
|
53251
|
-
module:
|
|
53252
|
-
flow:
|
|
53252
|
+
module: fR(t.module),
|
|
53253
|
+
flow: fR(t.flow),
|
|
53253
53254
|
step_order: Number(t.step_order),
|
|
53254
|
-
description:
|
|
53255
|
-
keyword:
|
|
53256
|
-
target:
|
|
53257
|
-
value:
|
|
53258
|
-
expected:
|
|
53259
|
-
tags: t.tags ?
|
|
53255
|
+
description: fR(t.description),
|
|
53256
|
+
keyword: pR(t.keyword),
|
|
53257
|
+
target: fR(t.target),
|
|
53258
|
+
value: fR(t.value),
|
|
53259
|
+
expected: fR(t.expected),
|
|
53260
|
+
tags: t.tags ? fR(t.tags) : lR.tags,
|
|
53260
53261
|
active: Number(t.active)
|
|
53261
53262
|
};
|
|
53262
53263
|
y(!0);
|
|
@@ -53268,26 +53269,26 @@ function vR() {
|
|
|
53268
53269
|
y(!1);
|
|
53269
53270
|
}
|
|
53270
53271
|
}, M = (t, n) => {
|
|
53271
|
-
e.setFieldsValue({ [t]:
|
|
53272
|
+
e.setFieldsValue({ [t]: fR(n) });
|
|
53272
53273
|
}, ne = (t) => {
|
|
53273
53274
|
e.setFieldsValue({
|
|
53274
|
-
module:
|
|
53275
|
+
module: fR(t),
|
|
53275
53276
|
flow: void 0,
|
|
53276
53277
|
step_order: void 0,
|
|
53277
53278
|
keyword: void 0,
|
|
53278
53279
|
description: void 0,
|
|
53279
53280
|
target: void 0,
|
|
53280
|
-
tags:
|
|
53281
|
+
tags: lR.tags,
|
|
53281
53282
|
value: void 0,
|
|
53282
53283
|
expected: void 0
|
|
53283
53284
|
});
|
|
53284
53285
|
}, re = (t) => {
|
|
53285
53286
|
e.setFieldsValue({
|
|
53286
|
-
flow:
|
|
53287
|
+
flow: fR(t),
|
|
53287
53288
|
step_order: void 0
|
|
53288
53289
|
});
|
|
53289
53290
|
}, ie = (e) => {
|
|
53290
|
-
let n =
|
|
53291
|
+
let n = uR[e];
|
|
53291
53292
|
p({
|
|
53292
53293
|
open: !0,
|
|
53293
53294
|
typeKey: e
|
|
@@ -53302,7 +53303,7 @@ function vR() {
|
|
|
53302
53303
|
})), t.resetFields();
|
|
53303
53304
|
}, N = async () => {
|
|
53304
53305
|
try {
|
|
53305
|
-
let n =
|
|
53306
|
+
let n = fR((await t.validateFields()).name), r = await bE({
|
|
53306
53307
|
name: n,
|
|
53307
53308
|
type: x.dbName
|
|
53308
53309
|
});
|
|
@@ -53320,7 +53321,7 @@ function vR() {
|
|
|
53320
53321
|
align: "middle",
|
|
53321
53322
|
justify: "space-between",
|
|
53322
53323
|
className: "breadcrumb-action-wrapper",
|
|
53323
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
53324
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: cR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
53324
53325
|
type: "link",
|
|
53325
53326
|
onClick: () => b("/zinnext-home"),
|
|
53326
53327
|
children: "View Table"
|
|
@@ -53335,7 +53336,7 @@ function vR() {
|
|
|
53335
53336
|
children: /* @__PURE__ */ X(U, {
|
|
53336
53337
|
align: "center",
|
|
53337
53338
|
size: 10,
|
|
53338
|
-
children: [/* @__PURE__ */ Y(go, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(
|
|
53339
|
+
children: [/* @__PURE__ */ Y(go, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(sR, {
|
|
53339
53340
|
strong: !0,
|
|
53340
53341
|
style: { fontSize: 16 },
|
|
53341
53342
|
children: "Add Test Case"
|
|
@@ -53351,16 +53352,16 @@ function vR() {
|
|
|
53351
53352
|
className: "v1-required-mark",
|
|
53352
53353
|
children: " *"
|
|
53353
53354
|
})] }),
|
|
53354
|
-
initialValues:
|
|
53355
|
+
initialValues: lR,
|
|
53355
53356
|
onFinish: te,
|
|
53356
53357
|
autoComplete: "off",
|
|
53357
53358
|
children: [/* @__PURE__ */ Y(yi, {
|
|
53358
53359
|
className: "v1-card",
|
|
53359
|
-
title: /* @__PURE__ */ Y(
|
|
53360
|
+
title: /* @__PURE__ */ Y(gR, {
|
|
53360
53361
|
icon: /* @__PURE__ */ Y(Wa, {}),
|
|
53361
53362
|
title: "Test Case Details"
|
|
53362
53363
|
}),
|
|
53363
|
-
extra: /* @__PURE__ */ Y(
|
|
53364
|
+
extra: /* @__PURE__ */ Y(sR, {
|
|
53364
53365
|
type: "secondary",
|
|
53365
53366
|
className: "v1-card-subtitle",
|
|
53366
53367
|
children: "Module, flow, step order and execution data"
|
|
@@ -53437,8 +53438,8 @@ function vR() {
|
|
|
53437
53438
|
disabled: O,
|
|
53438
53439
|
optionFilterProp: "label",
|
|
53439
53440
|
placeholder: "Select action",
|
|
53440
|
-
options:
|
|
53441
|
-
onChange: (t) => e.setFieldsValue({ keyword:
|
|
53441
|
+
options: oR,
|
|
53442
|
+
onChange: (t) => e.setFieldsValue({ keyword: pR(t) })
|
|
53442
53443
|
})
|
|
53443
53444
|
})
|
|
53444
53445
|
}),
|
|
@@ -53558,7 +53559,7 @@ function vR() {
|
|
|
53558
53559
|
maxLength: 100,
|
|
53559
53560
|
placeholder: `Enter ${x.label.toLowerCase()} name`,
|
|
53560
53561
|
onBlur: (e) => {
|
|
53561
|
-
t.setFieldsValue({ name:
|
|
53562
|
+
t.setFieldsValue({ name: fR(e.target.value) });
|
|
53562
53563
|
}
|
|
53563
53564
|
})
|
|
53564
53565
|
}), /* @__PURE__ */ Y(B.Item, {
|
|
@@ -53575,23 +53576,23 @@ function vR() {
|
|
|
53575
53576
|
}
|
|
53576
53577
|
//#endregion
|
|
53577
53578
|
//#region src/pages/TestingPage/ZinnextTestForm.jsx
|
|
53578
|
-
var { Text:
|
|
53579
|
+
var { Text: vR } = Yi, yR = [{
|
|
53579
53580
|
label: "Home",
|
|
53580
53581
|
href: "/"
|
|
53581
53582
|
}, {
|
|
53582
53583
|
label: "Test Cases",
|
|
53583
53584
|
href: "/addTestCase"
|
|
53584
53585
|
}];
|
|
53585
|
-
function
|
|
53586
|
+
function bR(e = "") {
|
|
53586
53587
|
return String(e ?? "").trim();
|
|
53587
53588
|
}
|
|
53588
|
-
function
|
|
53589
|
+
function xR(e = [], t) {
|
|
53589
53590
|
return e.map((e) => ({
|
|
53590
53591
|
value: e.id,
|
|
53591
53592
|
label: e[t]
|
|
53592
53593
|
}));
|
|
53593
53594
|
}
|
|
53594
|
-
var
|
|
53595
|
+
var SR = [
|
|
53595
53596
|
{
|
|
53596
53597
|
label: "Step",
|
|
53597
53598
|
value: "step_order",
|
|
@@ -53630,22 +53631,22 @@ var CR = [
|
|
|
53630
53631
|
children: "Negative"
|
|
53631
53632
|
})
|
|
53632
53633
|
}
|
|
53633
|
-
],
|
|
53634
|
+
], CR = {
|
|
53634
53635
|
key: !1,
|
|
53635
53636
|
value: !1,
|
|
53636
53637
|
expected: !1
|
|
53637
53638
|
};
|
|
53638
|
-
function
|
|
53639
|
-
return t ? e[t] ??
|
|
53639
|
+
function wR(e, t) {
|
|
53640
|
+
return t ? e[t] ?? CR : CR;
|
|
53640
53641
|
}
|
|
53641
|
-
function
|
|
53642
|
+
function TR(e, t) {
|
|
53642
53643
|
e.setFields(t.map((e) => ({
|
|
53643
53644
|
name: e,
|
|
53644
53645
|
errors: []
|
|
53645
53646
|
})));
|
|
53646
53647
|
}
|
|
53647
|
-
function
|
|
53648
|
-
let [e] = B.useForm(), t = ns(), [n] = is(), r = n.get("edit"), i = !!r, a = I(() => c(), []), [o, s] = L([]), [l, u] = L([]), [d, f] = L([]), [p, m] = L(
|
|
53648
|
+
function ER() {
|
|
53649
|
+
let [e] = B.useForm(), t = ns(), [n] = is(), r = n.get("edit"), i = !!r, a = I(() => c(), []), [o, s] = L([]), [l, u] = L([]), [d, f] = L([]), [p, m] = L(oR), [h, g] = L({}), [_, v] = L(!1), [y, b] = L(!1), [x, S] = L(!1), [C, w] = L(!1), [T, E] = L(!1), D = B.useWatch("module", e), O = B.useWatch("submodule", e), k = B.useWatch("actions", e), A = !!D, j = !!O, ee = I(() => wR(h, k), [h, k]), te = I(() => xR(o, "modulename"), [o]), M = I(() => xR(l, "submodulename"), [l]), ne = I(() => o.find((e) => e.id === D)?.modulename ?? "", [o, D]), re = I(() => l.find((e) => e.id === O)?.submodulename ?? "", [O, l]), ie = ui(async () => {
|
|
53649
53650
|
try {
|
|
53650
53651
|
let e = await xE();
|
|
53651
53652
|
Array.isArray(e?.options) && e.options.length > 0 && m(e.options), e?.rules && typeof e.rules == "object" && g(e.rules);
|
|
@@ -53786,10 +53787,10 @@ function DR() {
|
|
|
53786
53787
|
align: "middle",
|
|
53787
53788
|
justify: "space-between",
|
|
53788
53789
|
className: "breadcrumb-action-wrapper",
|
|
53789
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
53790
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: yR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ X(U, {
|
|
53790
53791
|
size: 6,
|
|
53791
53792
|
className: "zt-section-title",
|
|
53792
|
-
children: [/* @__PURE__ */ Y(_o, {}), /* @__PURE__ */ Y(
|
|
53793
|
+
children: [/* @__PURE__ */ Y(_o, {}), /* @__PURE__ */ Y(vR, {
|
|
53793
53794
|
strong: !0,
|
|
53794
53795
|
children: a.name
|
|
53795
53796
|
})]
|
|
@@ -53810,11 +53811,11 @@ function DR() {
|
|
|
53810
53811
|
product_parent_ID: Number(a?.id),
|
|
53811
53812
|
module_parent_ID: Number(n.module),
|
|
53812
53813
|
submodule_parent_ID: Number(n.submodule),
|
|
53813
|
-
description:
|
|
53814
|
-
actions:
|
|
53815
|
-
key:
|
|
53816
|
-
value:
|
|
53817
|
-
expected:
|
|
53814
|
+
description: bR(n.description),
|
|
53815
|
+
actions: bR(n.actions),
|
|
53816
|
+
key: bR(n.key),
|
|
53817
|
+
value: bR(n.value),
|
|
53818
|
+
expected: bR(n.expected),
|
|
53818
53819
|
scenario: +!!n.scenario,
|
|
53819
53820
|
active: +!!n.active
|
|
53820
53821
|
};
|
|
@@ -53880,7 +53881,7 @@ function DR() {
|
|
|
53880
53881
|
key: void 0,
|
|
53881
53882
|
value: void 0,
|
|
53882
53883
|
expected: void 0
|
|
53883
|
-
}),
|
|
53884
|
+
}), TR(e, [
|
|
53884
53885
|
"actions",
|
|
53885
53886
|
"key",
|
|
53886
53887
|
"value",
|
|
@@ -53911,7 +53912,7 @@ function DR() {
|
|
|
53911
53912
|
key: void 0,
|
|
53912
53913
|
value: void 0,
|
|
53913
53914
|
expected: void 0
|
|
53914
|
-
}),
|
|
53915
|
+
}), TR(e, [
|
|
53915
53916
|
"actions",
|
|
53916
53917
|
"key",
|
|
53917
53918
|
"value",
|
|
@@ -53965,7 +53966,7 @@ function DR() {
|
|
|
53965
53966
|
/* @__PURE__ */ Y("span", { children: "Step Details" })
|
|
53966
53967
|
]
|
|
53967
53968
|
}),
|
|
53968
|
-
extra: /* @__PURE__ */ X(
|
|
53969
|
+
extra: /* @__PURE__ */ X(vR, {
|
|
53969
53970
|
type: "secondary",
|
|
53970
53971
|
children: [
|
|
53971
53972
|
ne,
|
|
@@ -54005,13 +54006,13 @@ function DR() {
|
|
|
54005
54006
|
placeholder: "Select action",
|
|
54006
54007
|
options: p,
|
|
54007
54008
|
onChange: (t) => {
|
|
54008
|
-
let n =
|
|
54009
|
+
let n = wR(h, t);
|
|
54009
54010
|
e.setFieldsValue({
|
|
54010
54011
|
actions: t,
|
|
54011
54012
|
key: n.key ? e.getFieldValue("key") : void 0,
|
|
54012
54013
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
54013
54014
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
54014
|
-
}),
|
|
54015
|
+
}), TR(e, [
|
|
54015
54016
|
"key",
|
|
54016
54017
|
"value",
|
|
54017
54018
|
"expected"
|
|
@@ -54120,7 +54121,7 @@ function DR() {
|
|
|
54120
54121
|
children: /* @__PURE__ */ Y(Xx, {
|
|
54121
54122
|
listName: "Added Steps",
|
|
54122
54123
|
loading: x,
|
|
54123
|
-
fields:
|
|
54124
|
+
fields: SR,
|
|
54124
54125
|
dataSource: d,
|
|
54125
54126
|
current: 1,
|
|
54126
54127
|
pageSize: Math.max(d.length, 1),
|
|
@@ -54136,7 +54137,7 @@ function DR() {
|
|
|
54136
54137
|
}
|
|
54137
54138
|
//#endregion
|
|
54138
54139
|
//#region src/pages/TestingPage/ManageModules.jsx
|
|
54139
|
-
var { Text:
|
|
54140
|
+
var { Text: DR } = Yi, OR = [
|
|
54140
54141
|
{
|
|
54141
54142
|
label: "Home",
|
|
54142
54143
|
href: "/"
|
|
@@ -54150,7 +54151,7 @@ var { Text: OR } = Yi, kR = [
|
|
|
54150
54151
|
href: "/manageModules"
|
|
54151
54152
|
}
|
|
54152
54153
|
];
|
|
54153
|
-
function
|
|
54154
|
+
function kR() {
|
|
54154
54155
|
let e = ns(), t = I(() => c(), []), [n, r] = L([]), [i, a] = L({}), [o, s] = L(!1), [l, u] = L(!1), [d, f] = L(""), [p, m] = L(!1), [h, g] = L(1), [_, v] = L(10), y = ui(async (e) => {
|
|
54155
54156
|
if (!e) {
|
|
54156
54157
|
r([]);
|
|
@@ -54218,7 +54219,7 @@ function AR() {
|
|
|
54218
54219
|
align: "middle",
|
|
54219
54220
|
justify: "space-between",
|
|
54220
54221
|
className: "breadcrumb-action-wrapper",
|
|
54221
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
54222
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: OR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
54222
54223
|
type: "link",
|
|
54223
54224
|
onClick: () => e("/addTestCase"),
|
|
54224
54225
|
children: "Back to Form"
|
|
@@ -54238,7 +54239,7 @@ function AR() {
|
|
|
54238
54239
|
children: [
|
|
54239
54240
|
/* @__PURE__ */ Y(_o, {}),
|
|
54240
54241
|
/* @__PURE__ */ Y("span", { children: "Project:" }),
|
|
54241
|
-
/* @__PURE__ */ Y(
|
|
54242
|
+
/* @__PURE__ */ Y(DR, {
|
|
54242
54243
|
strong: !0,
|
|
54243
54244
|
children: t.name
|
|
54244
54245
|
})
|
|
@@ -54314,7 +54315,7 @@ function AR() {
|
|
|
54314
54315
|
children: /* @__PURE__ */ X(U, {
|
|
54315
54316
|
direction: "vertical",
|
|
54316
54317
|
className: "zt-modal-stack",
|
|
54317
|
-
children: [/* @__PURE__ */ X(
|
|
54318
|
+
children: [/* @__PURE__ */ X(DR, {
|
|
54318
54319
|
type: "secondary",
|
|
54319
54320
|
children: ["Project: ", /* @__PURE__ */ Y("b", { children: t.name })]
|
|
54320
54321
|
}), /* @__PURE__ */ Y(V, {
|
|
@@ -54331,7 +54332,7 @@ function AR() {
|
|
|
54331
54332
|
}
|
|
54332
54333
|
//#endregion
|
|
54333
54334
|
//#region src/pages/TestingPage/ManageSubmodules.jsx
|
|
54334
|
-
var { Text:
|
|
54335
|
+
var { Text: AR } = Yi, jR = [
|
|
54335
54336
|
{
|
|
54336
54337
|
label: "Home",
|
|
54337
54338
|
href: "/"
|
|
@@ -54349,7 +54350,7 @@ var { Text: jR } = Yi, MR = [
|
|
|
54349
54350
|
href: "/test-cases/zinnext/submodules"
|
|
54350
54351
|
}
|
|
54351
54352
|
];
|
|
54352
|
-
function
|
|
54353
|
+
function MR() {
|
|
54353
54354
|
let e = ns(), [t] = is(), n = I(() => c(), []), r = t.get("module") ?? "", [i, a] = L([]), [o, s] = L(!1), [l, u] = L(!1), [d, f] = L(""), [p, m] = L(!1), [h, g] = L(1), [_, v] = L(10), y = ui(async (e, t) => {
|
|
54354
54355
|
if (!e || !t) {
|
|
54355
54356
|
a([]);
|
|
@@ -54418,7 +54419,7 @@ function NR() {
|
|
|
54418
54419
|
align: "middle",
|
|
54419
54420
|
justify: "space-between",
|
|
54420
54421
|
className: "breadcrumb-action-wrapper",
|
|
54421
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
54422
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: jR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
54422
54423
|
type: "link",
|
|
54423
54424
|
onClick: () => e("/manageModules"),
|
|
54424
54425
|
children: "Back to Modules"
|
|
@@ -54441,7 +54442,7 @@ function NR() {
|
|
|
54441
54442
|
children: [
|
|
54442
54443
|
/* @__PURE__ */ Y(_o, {}),
|
|
54443
54444
|
/* @__PURE__ */ Y("span", { children: "Project:" }),
|
|
54444
|
-
/* @__PURE__ */ Y(
|
|
54445
|
+
/* @__PURE__ */ Y(AR, {
|
|
54445
54446
|
strong: !0,
|
|
54446
54447
|
children: n.name
|
|
54447
54448
|
})
|
|
@@ -54451,7 +54452,7 @@ function NR() {
|
|
|
54451
54452
|
children: [
|
|
54452
54453
|
/* @__PURE__ */ Y(ta, {}),
|
|
54453
54454
|
/* @__PURE__ */ Y("span", { children: "Module:" }),
|
|
54454
|
-
/* @__PURE__ */ Y(
|
|
54455
|
+
/* @__PURE__ */ Y(AR, {
|
|
54455
54456
|
strong: !0,
|
|
54456
54457
|
children: r
|
|
54457
54458
|
})
|
|
@@ -54514,7 +54515,7 @@ function NR() {
|
|
|
54514
54515
|
children: /* @__PURE__ */ X(U, {
|
|
54515
54516
|
direction: "vertical",
|
|
54516
54517
|
className: "zt-modal-stack",
|
|
54517
|
-
children: [/* @__PURE__ */ X(
|
|
54518
|
+
children: [/* @__PURE__ */ X(AR, {
|
|
54518
54519
|
type: "secondary",
|
|
54519
54520
|
children: [
|
|
54520
54521
|
"Project: ",
|
|
@@ -54536,7 +54537,7 @@ function NR() {
|
|
|
54536
54537
|
}
|
|
54537
54538
|
//#endregion
|
|
54538
54539
|
//#region src/pages/TestingPage/ZinnextTableView.jsx
|
|
54539
|
-
var { Text:
|
|
54540
|
+
var { Text: NR } = Yi, PR = [
|
|
54540
54541
|
{
|
|
54541
54542
|
label: "Home",
|
|
54542
54543
|
href: "/"
|
|
@@ -54550,7 +54551,7 @@ var { Text: PR } = Yi, FR = [
|
|
|
54550
54551
|
href: "/viewTestCase"
|
|
54551
54552
|
}
|
|
54552
54553
|
];
|
|
54553
|
-
function
|
|
54554
|
+
function FR() {
|
|
54554
54555
|
let e = ns(), [t, n] = L([]), [r, i] = L(0), [a, o] = L(!1), s = I(() => c(), []), [l, u] = L(""), [d, f] = L(1), [p, m] = L(20), [h, g] = L(null), _ = ui(async (e = {}) => {
|
|
54555
54556
|
o(!0);
|
|
54556
54557
|
try {
|
|
@@ -54610,7 +54611,7 @@ function IR() {
|
|
|
54610
54611
|
align: "middle",
|
|
54611
54612
|
justify: "space-between",
|
|
54612
54613
|
className: "breadcrumb-action-wrapper",
|
|
54613
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
54614
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: PR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
54614
54615
|
type: "link",
|
|
54615
54616
|
onClick: () => e("/addTestCase"),
|
|
54616
54617
|
children: "Back to Form"
|
|
@@ -54624,7 +54625,7 @@ function IR() {
|
|
|
54624
54625
|
className: "zt-section-title",
|
|
54625
54626
|
children: [/* @__PURE__ */ Y(Po, {}), /* @__PURE__ */ Y("span", { children: "Test Flows" })]
|
|
54626
54627
|
}),
|
|
54627
|
-
extra: /* @__PURE__ */ X(
|
|
54628
|
+
extra: /* @__PURE__ */ X(NR, {
|
|
54628
54629
|
type: "secondary",
|
|
54629
54630
|
children: [r, " row(s)"]
|
|
54630
54631
|
}),
|
|
@@ -54778,17 +54779,17 @@ function IR() {
|
|
|
54778
54779
|
}
|
|
54779
54780
|
//#endregion
|
|
54780
54781
|
//#region src/pages/TestingPage/testHomePage.jsx
|
|
54781
|
-
var
|
|
54782
|
+
var IR = [{
|
|
54782
54783
|
label: "Home",
|
|
54783
54784
|
href: "/"
|
|
54784
54785
|
}, {
|
|
54785
54786
|
label: "Test Cases",
|
|
54786
54787
|
href: "/test-cases"
|
|
54787
54788
|
}];
|
|
54788
|
-
function
|
|
54789
|
+
function LR() {
|
|
54789
54790
|
return /* @__PURE__ */ X("main", {
|
|
54790
54791
|
className: "jobs-list-page",
|
|
54791
|
-
children: [/* @__PURE__ */ Y(kr, { items:
|
|
54792
|
+
children: [/* @__PURE__ */ Y(kr, { items: IR }), /* @__PURE__ */ Y(vm, {
|
|
54792
54793
|
moduleName: "test-flows",
|
|
54793
54794
|
rowKey: "id"
|
|
54794
54795
|
})]
|
|
@@ -54796,85 +54797,85 @@ function RR() {
|
|
|
54796
54797
|
}
|
|
54797
54798
|
//#endregion
|
|
54798
54799
|
//#region src/pages/TestingPage/lms-test-form.jsx
|
|
54799
|
-
var { Text:
|
|
54800
|
+
var { Text: RR } = Yi, zR = [{
|
|
54800
54801
|
label: "Home",
|
|
54801
54802
|
href: "/"
|
|
54802
54803
|
}, {
|
|
54803
54804
|
label: "LMS Cases",
|
|
54804
54805
|
href: "/lms-cases"
|
|
54805
|
-
}],
|
|
54806
|
+
}], BR = {
|
|
54806
54807
|
tags: "regression",
|
|
54807
54808
|
active: 1
|
|
54808
|
-
},
|
|
54809
|
+
}, VR = { module: {
|
|
54809
54810
|
dbName: "Modules",
|
|
54810
54811
|
formField: "module",
|
|
54811
54812
|
label: "Module"
|
|
54812
|
-
} },
|
|
54813
|
+
} }, HR = {
|
|
54813
54814
|
key: !1,
|
|
54814
54815
|
value: !1,
|
|
54815
54816
|
expected: !1
|
|
54816
54817
|
};
|
|
54817
|
-
function
|
|
54818
|
-
return t ? e[t] ??
|
|
54818
|
+
function UR(e, t) {
|
|
54819
|
+
return t ? e[t] ?? HR : HR;
|
|
54819
54820
|
}
|
|
54820
|
-
function
|
|
54821
|
+
function WR(e, t) {
|
|
54821
54822
|
e.setFields(t.map((e) => ({
|
|
54822
54823
|
name: e,
|
|
54823
54824
|
errors: []
|
|
54824
54825
|
})));
|
|
54825
54826
|
}
|
|
54826
|
-
function
|
|
54827
|
+
function GR(e = []) {
|
|
54827
54828
|
return e.map((e) => ({
|
|
54828
54829
|
value: e,
|
|
54829
54830
|
label: e
|
|
54830
54831
|
}));
|
|
54831
54832
|
}
|
|
54832
|
-
function
|
|
54833
|
+
function KR(e = "") {
|
|
54833
54834
|
return String(e ?? "").trim();
|
|
54834
54835
|
}
|
|
54835
|
-
function
|
|
54836
|
+
function qR(e = []) {
|
|
54836
54837
|
let t = /* @__PURE__ */ new Map();
|
|
54837
54838
|
return e.forEach((e) => {
|
|
54838
|
-
let n =
|
|
54839
|
+
let n = KR(e?.flow), r = n.toLowerCase();
|
|
54839
54840
|
n && !t.has(r) && t.set(r, n);
|
|
54840
54841
|
}), Array.from(t.values()).map((e) => ({
|
|
54841
54842
|
value: e,
|
|
54842
54843
|
label: e
|
|
54843
54844
|
}));
|
|
54844
54845
|
}
|
|
54845
|
-
function
|
|
54846
|
-
let r =
|
|
54846
|
+
function JR(e = [], t, n) {
|
|
54847
|
+
let r = KR(t).toLowerCase(), i = KR(n).toLowerCase();
|
|
54847
54848
|
return e.reduce((e, t) => {
|
|
54848
|
-
let n =
|
|
54849
|
+
let n = KR(t?.module).toLowerCase(), a = KR(t?.flow).toLowerCase();
|
|
54849
54850
|
if (n !== r || a !== i) return e;
|
|
54850
54851
|
let o = Number(t?.step_order) || 0;
|
|
54851
54852
|
return Math.max(e, o);
|
|
54852
54853
|
}, 0) + 1;
|
|
54853
54854
|
}
|
|
54854
|
-
function
|
|
54855
|
+
function YR({ icon: e, title: t }) {
|
|
54855
54856
|
return /* @__PURE__ */ X(U, {
|
|
54856
54857
|
size: 10,
|
|
54857
54858
|
align: "center",
|
|
54858
54859
|
children: [/* @__PURE__ */ Y("div", {
|
|
54859
54860
|
className: "v1-section-icon-box",
|
|
54860
54861
|
children: e
|
|
54861
|
-
}), /* @__PURE__ */ Y(
|
|
54862
|
+
}), /* @__PURE__ */ Y(RR, {
|
|
54862
54863
|
strong: !0,
|
|
54863
54864
|
className: "v1-section-label",
|
|
54864
54865
|
children: t
|
|
54865
54866
|
})]
|
|
54866
54867
|
});
|
|
54867
54868
|
}
|
|
54868
|
-
function
|
|
54869
|
-
let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(
|
|
54869
|
+
function XR() {
|
|
54870
|
+
let [e] = B.useForm(), [t] = B.useForm(), [n, r] = L([]), [i, a] = L([]), [o, s] = L([]), [c, l] = L(oR), [u, d] = L({}), [f, p] = L(!1), [m, h] = L(!1), [g, _] = L({
|
|
54870
54871
|
open: !1,
|
|
54871
54872
|
typeKey: "module"
|
|
54872
|
-
}), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ns(), T =
|
|
54873
|
+
}), [v, y] = L(!1), [b, x] = L(!1), [S, C] = L(!1), w = ns(), T = VR[g.typeKey], E = I(() => GR(n), [n]), D = B.useWatch("module", e), O = B.useWatch("flow", e), k = B.useWatch("keyword", e), A = !!KR(D), j = !!KR(O), ee = !A, te = !A || !j, M = I(() => UR(u, k), [u, k]), ne = (e, t = []) => {
|
|
54873
54874
|
e === "module" && r(t);
|
|
54874
54875
|
}, re = async () => {
|
|
54875
54876
|
p(!0);
|
|
54876
54877
|
try {
|
|
54877
|
-
r((await yE(
|
|
54878
|
+
r((await yE(VR.module.dbName))?.items ?? []);
|
|
54878
54879
|
} catch (e) {
|
|
54879
54880
|
console.error("Unable to load testing options:", e), q.error("Unable to load testing options.");
|
|
54880
54881
|
} finally {
|
|
@@ -54888,7 +54889,7 @@ function ZR() {
|
|
|
54888
54889
|
console.error("Unable to load action field rules:", e), q.error("Unable to load action validation rules.");
|
|
54889
54890
|
}
|
|
54890
54891
|
}, ae = ui(async (t) => {
|
|
54891
|
-
let n =
|
|
54892
|
+
let n = KR(t);
|
|
54892
54893
|
if (a([]), s([]), e.setFieldsValue({ step_order: void 0 }), n) {
|
|
54893
54894
|
h(!0);
|
|
54894
54895
|
try {
|
|
@@ -54897,7 +54898,7 @@ function ZR() {
|
|
|
54897
54898
|
offset: 0,
|
|
54898
54899
|
module: n
|
|
54899
54900
|
}), t = Array.isArray(e?.items) ? e.items : [];
|
|
54900
|
-
a(t), s(
|
|
54901
|
+
a(t), s(qR(t));
|
|
54901
54902
|
} catch (e) {
|
|
54902
54903
|
console.error("Unable to load flows:", e), q.error("Unable to load flows.");
|
|
54903
54904
|
} finally {
|
|
@@ -54905,14 +54906,14 @@ function ZR() {
|
|
|
54905
54906
|
}
|
|
54906
54907
|
}
|
|
54907
54908
|
}, [e]), N = ui(async (t, n, r) => {
|
|
54908
|
-
let i =
|
|
54909
|
+
let i = KR(t), a = KR(n);
|
|
54909
54910
|
if (!i || !a) {
|
|
54910
54911
|
e.setFieldsValue({ step_order: void 0 });
|
|
54911
54912
|
return;
|
|
54912
54913
|
}
|
|
54913
54914
|
x(!0);
|
|
54914
54915
|
try {
|
|
54915
|
-
e.setFieldsValue({ step_order:
|
|
54916
|
+
e.setFieldsValue({ step_order: JR(r, i, a) });
|
|
54916
54917
|
} catch (e) {
|
|
54917
54918
|
console.error("Unable to load step order:", e), q.error("Unable to load step order.");
|
|
54918
54919
|
} finally {
|
|
@@ -54935,15 +54936,15 @@ function ZR() {
|
|
|
54935
54936
|
]);
|
|
54936
54937
|
let oe = async (t) => {
|
|
54937
54938
|
let n = {
|
|
54938
|
-
module:
|
|
54939
|
-
flow:
|
|
54939
|
+
module: KR(t.module),
|
|
54940
|
+
flow: KR(t.flow),
|
|
54940
54941
|
step_order: Number(t.step_order),
|
|
54941
|
-
description:
|
|
54942
|
-
keyword:
|
|
54943
|
-
target:
|
|
54944
|
-
value:
|
|
54945
|
-
expected:
|
|
54946
|
-
tags: t.tags ?
|
|
54942
|
+
description: KR(t.description),
|
|
54943
|
+
keyword: KR(t.keyword),
|
|
54944
|
+
target: KR(t.target),
|
|
54945
|
+
value: KR(t.value),
|
|
54946
|
+
expected: KR(t.expected),
|
|
54947
|
+
tags: t.tags ? KR(t.tags) : BR.tags,
|
|
54947
54948
|
active: Number(t.active)
|
|
54948
54949
|
};
|
|
54949
54950
|
C(!0);
|
|
@@ -54955,19 +54956,19 @@ function ZR() {
|
|
|
54955
54956
|
C(!1);
|
|
54956
54957
|
}
|
|
54957
54958
|
}, se = (t, n) => {
|
|
54958
|
-
e.setFieldsValue({ [t]:
|
|
54959
|
+
e.setFieldsValue({ [t]: KR(n) });
|
|
54959
54960
|
}, ce = (t) => {
|
|
54960
54961
|
e.setFieldsValue({
|
|
54961
|
-
module:
|
|
54962
|
+
module: KR(t),
|
|
54962
54963
|
flow: void 0,
|
|
54963
54964
|
step_order: void 0,
|
|
54964
54965
|
keyword: void 0,
|
|
54965
54966
|
description: void 0,
|
|
54966
54967
|
target: void 0,
|
|
54967
|
-
tags:
|
|
54968
|
+
tags: BR.tags,
|
|
54968
54969
|
value: void 0,
|
|
54969
54970
|
expected: void 0
|
|
54970
|
-
}),
|
|
54971
|
+
}), WR(e, [
|
|
54971
54972
|
"keyword",
|
|
54972
54973
|
"target",
|
|
54973
54974
|
"value",
|
|
@@ -54975,32 +54976,32 @@ function ZR() {
|
|
|
54975
54976
|
]);
|
|
54976
54977
|
}, le = (t) => {
|
|
54977
54978
|
e.setFieldsValue({
|
|
54978
|
-
flow:
|
|
54979
|
+
flow: KR(t),
|
|
54979
54980
|
step_order: void 0,
|
|
54980
54981
|
keyword: void 0,
|
|
54981
54982
|
target: void 0,
|
|
54982
54983
|
value: void 0,
|
|
54983
54984
|
expected: void 0
|
|
54984
|
-
}),
|
|
54985
|
+
}), WR(e, [
|
|
54985
54986
|
"keyword",
|
|
54986
54987
|
"target",
|
|
54987
54988
|
"value",
|
|
54988
54989
|
"expected"
|
|
54989
54990
|
]);
|
|
54990
54991
|
}, ue = (t) => {
|
|
54991
|
-
let n =
|
|
54992
|
+
let n = UR(u, t);
|
|
54992
54993
|
e.setFieldsValue({
|
|
54993
|
-
keyword:
|
|
54994
|
+
keyword: KR(t),
|
|
54994
54995
|
target: n.key ? e.getFieldValue("target") : void 0,
|
|
54995
54996
|
value: n.value ? e.getFieldValue("value") : void 0,
|
|
54996
54997
|
expected: n.expected ? e.getFieldValue("expected") : void 0
|
|
54997
|
-
}),
|
|
54998
|
+
}), WR(e, [
|
|
54998
54999
|
"target",
|
|
54999
55000
|
"value",
|
|
55000
55001
|
"expected"
|
|
55001
55002
|
]);
|
|
55002
55003
|
}, de = (e) => {
|
|
55003
|
-
let n =
|
|
55004
|
+
let n = VR[e];
|
|
55004
55005
|
_({
|
|
55005
55006
|
open: !0,
|
|
55006
55007
|
typeKey: e
|
|
@@ -55015,7 +55016,7 @@ function ZR() {
|
|
|
55015
55016
|
})), t.resetFields();
|
|
55016
55017
|
}, fe = async () => {
|
|
55017
55018
|
try {
|
|
55018
|
-
let n =
|
|
55019
|
+
let n = KR((await t.validateFields()).name), r = await bE({
|
|
55019
55020
|
name: n,
|
|
55020
55021
|
type: T.dbName
|
|
55021
55022
|
});
|
|
@@ -55033,7 +55034,7 @@ function ZR() {
|
|
|
55033
55034
|
align: "middle",
|
|
55034
55035
|
justify: "space-between",
|
|
55035
55036
|
className: "breadcrumb-action-wrapper",
|
|
55036
|
-
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items:
|
|
55037
|
+
children: [/* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(kr, { items: zR }) }), /* @__PURE__ */ Y(z, { children: /* @__PURE__ */ Y(R, {
|
|
55037
55038
|
type: "link",
|
|
55038
55039
|
onClick: () => w("/lms-home"),
|
|
55039
55040
|
children: "View Table"
|
|
@@ -55048,7 +55049,7 @@ function ZR() {
|
|
|
55048
55049
|
children: /* @__PURE__ */ X(U, {
|
|
55049
55050
|
align: "center",
|
|
55050
55051
|
size: 10,
|
|
55051
|
-
children: [/* @__PURE__ */ Y(go, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(
|
|
55052
|
+
children: [/* @__PURE__ */ Y(go, { className: "v1-outer-icon" }), /* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(RR, {
|
|
55052
55053
|
strong: !0,
|
|
55053
55054
|
style: { fontSize: 16 },
|
|
55054
55055
|
children: "Add LMS Case"
|
|
@@ -55064,16 +55065,16 @@ function ZR() {
|
|
|
55064
55065
|
className: "v1-required-mark",
|
|
55065
55066
|
children: " *"
|
|
55066
55067
|
})] }),
|
|
55067
|
-
initialValues:
|
|
55068
|
+
initialValues: BR,
|
|
55068
55069
|
onFinish: oe,
|
|
55069
55070
|
autoComplete: "off",
|
|
55070
55071
|
children: [/* @__PURE__ */ Y(yi, {
|
|
55071
55072
|
className: "v1-card",
|
|
55072
|
-
title: /* @__PURE__ */ Y(
|
|
55073
|
+
title: /* @__PURE__ */ Y(YR, {
|
|
55073
55074
|
icon: /* @__PURE__ */ Y(Wa, {}),
|
|
55074
55075
|
title: "LMS Case Details"
|
|
55075
55076
|
}),
|
|
55076
|
-
extra: /* @__PURE__ */ Y(
|
|
55077
|
+
extra: /* @__PURE__ */ Y(RR, {
|
|
55077
55078
|
type: "secondary",
|
|
55078
55079
|
className: "v1-card-subtitle",
|
|
55079
55080
|
children: "Module, flow, step order and execution data"
|
|
@@ -55283,7 +55284,7 @@ function ZR() {
|
|
|
55283
55284
|
maxLength: 100,
|
|
55284
55285
|
placeholder: `Enter ${T.label.toLowerCase()} name`,
|
|
55285
55286
|
onBlur: (e) => {
|
|
55286
|
-
t.setFieldsValue({ name:
|
|
55287
|
+
t.setFieldsValue({ name: KR(e.target.value) });
|
|
55287
55288
|
}
|
|
55288
55289
|
})
|
|
55289
55290
|
}), /* @__PURE__ */ Y(B.Item, {
|
|
@@ -55300,17 +55301,17 @@ function ZR() {
|
|
|
55300
55301
|
}
|
|
55301
55302
|
//#endregion
|
|
55302
55303
|
//#region src/pages/TestingPage/lmsHomePage.jsx
|
|
55303
|
-
var
|
|
55304
|
+
var ZR = [{
|
|
55304
55305
|
label: "Home",
|
|
55305
55306
|
href: "/"
|
|
55306
55307
|
}, {
|
|
55307
55308
|
label: "LMS Cases",
|
|
55308
55309
|
href: "/lms-cases"
|
|
55309
55310
|
}];
|
|
55310
|
-
function
|
|
55311
|
+
function QR() {
|
|
55311
55312
|
return /* @__PURE__ */ X("main", {
|
|
55312
55313
|
className: "jobs-list-page",
|
|
55313
|
-
children: [/* @__PURE__ */ Y(kr, { items:
|
|
55314
|
+
children: [/* @__PURE__ */ Y(kr, { items: ZR }), /* @__PURE__ */ Y(vm, {
|
|
55314
55315
|
moduleName: "lms-flows",
|
|
55315
55316
|
rowKey: "id"
|
|
55316
55317
|
})]
|
|
@@ -55318,7 +55319,7 @@ function $R() {
|
|
|
55318
55319
|
}
|
|
55319
55320
|
//#endregion
|
|
55320
55321
|
//#region src/services/mergedListApi.js
|
|
55321
|
-
var
|
|
55322
|
+
var $R = [
|
|
55322
55323
|
"referenceId",
|
|
55323
55324
|
"ReferenceId",
|
|
55324
55325
|
"candidateId",
|
|
@@ -55329,7 +55330,7 @@ var ez = [
|
|
|
55329
55330
|
"Id",
|
|
55330
55331
|
"_id"
|
|
55331
55332
|
];
|
|
55332
|
-
function
|
|
55333
|
+
function ez(e = $R) {
|
|
55333
55334
|
return function(t) {
|
|
55334
55335
|
if (!t || typeof t != "object") return "";
|
|
55335
55336
|
for (let n of e) {
|
|
@@ -55339,7 +55340,7 @@ function tz(e = ez) {
|
|
|
55339
55340
|
return "";
|
|
55340
55341
|
};
|
|
55341
55342
|
}
|
|
55342
|
-
function
|
|
55343
|
+
function tz(e, t = $R) {
|
|
55343
55344
|
if (!e || typeof e != "object") return [];
|
|
55344
55345
|
let n = [];
|
|
55345
55346
|
for (let r of t) {
|
|
@@ -55348,18 +55349,18 @@ function nz(e, t = ez) {
|
|
|
55348
55349
|
}
|
|
55349
55350
|
return n;
|
|
55350
55351
|
}
|
|
55351
|
-
var
|
|
55352
|
-
function
|
|
55353
|
-
return typeof e == "function" ? e : typeof e == "string" ?
|
|
55352
|
+
var nz = ez();
|
|
55353
|
+
function rz(e) {
|
|
55354
|
+
return typeof e == "function" ? e : typeof e == "string" ? ez([e]) : Array.isArray(e) ? ez(e) : nz;
|
|
55354
55355
|
}
|
|
55355
|
-
function
|
|
55356
|
+
function iz(e, t, n) {
|
|
55356
55357
|
return !t || typeof t != "object" ? e : {
|
|
55357
55358
|
...t,
|
|
55358
55359
|
...e,
|
|
55359
55360
|
id: e?.id ?? t?.id ?? n
|
|
55360
55361
|
};
|
|
55361
55362
|
}
|
|
55362
|
-
function
|
|
55363
|
+
function az(e, t, n = {}) {
|
|
55363
55364
|
return {
|
|
55364
55365
|
status: "success",
|
|
55365
55366
|
total: t,
|
|
@@ -55369,7 +55370,7 @@ function oz(e, t, n = {}) {
|
|
|
55369
55370
|
}
|
|
55370
55371
|
};
|
|
55371
55372
|
}
|
|
55372
|
-
var
|
|
55373
|
+
var oz = [
|
|
55373
55374
|
"fields",
|
|
55374
55375
|
"fieldConfig",
|
|
55375
55376
|
"tabs",
|
|
@@ -55378,17 +55379,17 @@ var sz = [
|
|
|
55378
55379
|
"actions",
|
|
55379
55380
|
"columnActions"
|
|
55380
55381
|
];
|
|
55381
|
-
function
|
|
55382
|
+
function sz(e) {
|
|
55382
55383
|
let t = e?.data ?? e, n = {};
|
|
55383
|
-
for (let r of
|
|
55384
|
+
for (let r of oz) {
|
|
55384
55385
|
let i = e?.[r] ?? t?.[r];
|
|
55385
55386
|
i == null || Array.isArray(i) && i.length === 0 || (n[r] = i);
|
|
55386
55387
|
}
|
|
55387
55388
|
return n;
|
|
55388
55389
|
}
|
|
55389
|
-
var
|
|
55390
|
-
function
|
|
55391
|
-
let r = (Array.isArray(n) ? n : [n]).map(
|
|
55390
|
+
var cz = (e) => String(e ?? "").replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
|
|
55391
|
+
function lz(e, t, n) {
|
|
55392
|
+
let r = (Array.isArray(n) ? n : [n]).map(cz).filter(Boolean), i = r.length ? e.findIndex((e) => r.includes(cz(e?.value)) || r.includes(cz(e?.label))) : -1;
|
|
55392
55393
|
if (i === -1) return [...e, ...t];
|
|
55393
55394
|
let a = Number(e[i]?.order), o = Number.isFinite(a) ? t.map((e, n) => e.order == null || e.order === "" ? {
|
|
55394
55395
|
...e,
|
|
@@ -55400,31 +55401,31 @@ function uz(e, t, n) {
|
|
|
55400
55401
|
...e.slice(i + 1)
|
|
55401
55402
|
];
|
|
55402
55403
|
}
|
|
55403
|
-
var
|
|
55404
|
+
var uz = (e, t) => Hd(e, t).rows, dz = (e, t) => {
|
|
55404
55405
|
let { rows: n, total: r } = Hd(e, t);
|
|
55405
55406
|
return {
|
|
55406
55407
|
rows: n,
|
|
55407
55408
|
total: r
|
|
55408
55409
|
};
|
|
55409
55410
|
};
|
|
55410
|
-
function
|
|
55411
|
+
function fz(e, t) {
|
|
55411
55412
|
return function(n, r, i, a = {}) {
|
|
55412
55413
|
return e(t ?? n, r, i, a);
|
|
55413
55414
|
};
|
|
55414
55415
|
}
|
|
55415
|
-
function
|
|
55416
|
+
function pz(e) {
|
|
55416
55417
|
return !e || typeof e != "object" || typeof (e.fetchByKeys ?? e.fetch ?? e.function) != "function" ? null : {
|
|
55417
55418
|
...e,
|
|
55418
55419
|
fetchByKeys: typeof e.fetchByKeys == "function" ? e.fetchByKeys : null,
|
|
55419
55420
|
fetch: typeof e.fetch == "function" ? e.fetch : null,
|
|
55420
55421
|
function: typeof e.function == "function" ? e.function : null,
|
|
55421
|
-
extractRows: typeof e.extractRows == "function" ? e.extractRows :
|
|
55422
|
-
mergeRow: typeof e.mergeRow == "function" ? e.mergeRow :
|
|
55422
|
+
extractRows: typeof e.extractRows == "function" ? e.extractRows : uz,
|
|
55423
|
+
mergeRow: typeof e.mergeRow == "function" ? e.mergeRow : iz,
|
|
55423
55424
|
fetchById: typeof e.fetchById == "function" ? e.fetchById : null
|
|
55424
55425
|
};
|
|
55425
55426
|
}
|
|
55426
|
-
function
|
|
55427
|
-
return !e && !t && !r ? [] : [
|
|
55427
|
+
function mz({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows: n, fetchSecondaryById: r, secondaryKey: i, mergeRow: a, secondaryFetchLimit: o }) {
|
|
55428
|
+
return !e && !t && !r ? [] : [pz({
|
|
55428
55429
|
key: i,
|
|
55429
55430
|
fetchByKeys: e ? (t, n, r) => e(t, n, r) : null,
|
|
55430
55431
|
function: t ? ({ moduleName: e, options: n }) => t(e, o, 0, n) : null,
|
|
@@ -55433,21 +55434,21 @@ function hz({ fetchSecondaryByKeys: e, fetchSecondary: t, extractSecondaryRows:
|
|
|
55433
55434
|
mergeRow: a
|
|
55434
55435
|
})].filter(Boolean);
|
|
55435
55436
|
}
|
|
55436
|
-
function
|
|
55437
|
+
function hz(e) {
|
|
55437
55438
|
if (typeof e == "function") return (t) => {
|
|
55438
55439
|
let n = e(t);
|
|
55439
55440
|
return n == null || n === "" ? [] : [String(n)];
|
|
55440
55441
|
};
|
|
55441
|
-
let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e :
|
|
55442
|
-
return (e) =>
|
|
55442
|
+
let t = typeof e == "string" ? [e] : Array.isArray(e) && e.length ? e : $R;
|
|
55443
|
+
return (e) => tz(e, t);
|
|
55443
55444
|
}
|
|
55444
|
-
function
|
|
55445
|
+
function gz(e, t) {
|
|
55445
55446
|
let n = /* @__PURE__ */ new Map();
|
|
55446
55447
|
return e.forEach((e) => {
|
|
55447
55448
|
for (let r of t(e)) n.has(r) || n.set(r, e);
|
|
55448
55449
|
}), n;
|
|
55449
55450
|
}
|
|
55450
|
-
function
|
|
55451
|
+
function _z({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryResponse: a, primaryRows: o, pageRows: s, total: c, source: l }) {
|
|
55451
55452
|
return {
|
|
55452
55453
|
moduleName: e,
|
|
55453
55454
|
limit: t,
|
|
@@ -55461,7 +55462,7 @@ function vz({ moduleName: e, limit: t, offset: n, options: r, keys: i, primaryRe
|
|
|
55461
55462
|
source: l
|
|
55462
55463
|
};
|
|
55463
55464
|
}
|
|
55464
|
-
async function
|
|
55465
|
+
async function vz(e, t) {
|
|
55465
55466
|
if (typeof e.args == "function") {
|
|
55466
55467
|
let n = e.args(t);
|
|
55467
55468
|
return (e.fetch ?? e.function ?? e.fetchByKeys)(...Array.isArray(n) ? n : [n]);
|
|
@@ -55471,8 +55472,8 @@ async function yz(e, t) {
|
|
|
55471
55472
|
let n = e.fetch ?? e.function;
|
|
55472
55473
|
return typeof n == "function" ? n(t) : null;
|
|
55473
55474
|
}
|
|
55474
|
-
function
|
|
55475
|
-
let h = Array.isArray(r) && r.length ? r.map(
|
|
55475
|
+
function yz({ fetchPrimaryPage: e, extractPrimaryPage: t = dz, fetchSecondaryByKeys: n, joinSources: r = [], fetchPrimary: i, extractPrimaryRows: a = uz, fetchSecondary: o, extractSecondaryRows: s = uz, fetchSecondaryById: c, primaryKey: l, secondaryKey: u, mergeRow: d = iz, secondaryFetchLimit: f = 200, extraFields: p = [], extraFieldsAfter: m }) {
|
|
55476
|
+
let h = Array.isArray(r) && r.length ? r.map(pz).filter(Boolean) : mz({
|
|
55476
55477
|
fetchSecondaryByKeys: n,
|
|
55477
55478
|
fetchSecondary: o,
|
|
55478
55479
|
extractSecondaryRows: s,
|
|
@@ -55492,7 +55493,7 @@ function bz({ fetchPrimaryPage: e, extractPrimaryPage: t = fz, fetchSecondaryByK
|
|
|
55492
55493
|
}
|
|
55493
55494
|
async function v(e, t, n, r, i) {
|
|
55494
55495
|
if (!n) return e;
|
|
55495
|
-
let a = t.extractRows(n, r) ?? [], o =
|
|
55496
|
+
let a = t.extractRows(n, r) ?? [], o = rz(t.primaryKey ?? l), s = hz(t.key), c = gz(a, s);
|
|
55496
55497
|
return Promise.all(e.map(async (e) => {
|
|
55497
55498
|
let n = o(e), a = c.get(n) ?? (i() ? null : await _(t, s, r, n));
|
|
55498
55499
|
return t.mergeRow(e, a, n);
|
|
@@ -55507,21 +55508,21 @@ function bz({ fetchPrimaryPage: e, extractPrimaryPage: t = fz, fetchSecondaryByK
|
|
|
55507
55508
|
let r = {};
|
|
55508
55509
|
for (let e of n) {
|
|
55509
55510
|
if (!e) continue;
|
|
55510
|
-
let t =
|
|
55511
|
+
let t = sz(e);
|
|
55511
55512
|
for (let e of Object.keys(t)) r[e] ?? (r[e] = t[e]);
|
|
55512
55513
|
}
|
|
55513
|
-
return p.length && (r.fields =
|
|
55514
|
+
return p.length && (r.fields = lz(r.fields ?? [], p, m)), az(e, t, r);
|
|
55514
55515
|
}
|
|
55515
55516
|
async function x({ moduleName: e, limit: t, offset: n, options: r, primaryResponse: i, primaryRows: a, pageRows: o, total: s }) {
|
|
55516
55517
|
return Promise.all(h.map(async (c) => {
|
|
55517
55518
|
try {
|
|
55518
|
-
let u =
|
|
55519
|
+
let u = rz(c.primaryKey ?? l), d = [...new Set(o.map(u).filter(Boolean))];
|
|
55519
55520
|
return c.fetchByKeys && d.length === 0 ? {
|
|
55520
55521
|
source: c,
|
|
55521
55522
|
response: null
|
|
55522
55523
|
} : {
|
|
55523
55524
|
source: c,
|
|
55524
|
-
response: await
|
|
55525
|
+
response: await vz(c, _z({
|
|
55525
55526
|
moduleName: e,
|
|
55526
55527
|
limit: t,
|
|
55527
55528
|
offset: n,
|
|
@@ -55575,25 +55576,25 @@ function bz({ fetchPrimaryPage: e, extractPrimaryPage: t = fz, fetchSecondaryByK
|
|
|
55575
55576
|
}
|
|
55576
55577
|
//#endregion
|
|
55577
55578
|
//#region src/services/workflowModuleListApi.js
|
|
55578
|
-
function
|
|
55579
|
-
return
|
|
55580
|
-
fetchPrimary: () =>
|
|
55579
|
+
function bz(e, t, n = {}) {
|
|
55580
|
+
return yz({
|
|
55581
|
+
fetchPrimary: () => pF(e, t),
|
|
55581
55582
|
extractPrimaryRows: dF,
|
|
55582
55583
|
fetchSecondary: mu,
|
|
55583
|
-
fetchSecondaryById:
|
|
55584
|
+
fetchSecondaryById: mF,
|
|
55584
55585
|
secondaryFetchLimit: n.moduleFetchLimit ?? 200
|
|
55585
55586
|
});
|
|
55586
55587
|
}
|
|
55587
|
-
function
|
|
55588
|
+
function xz(e) {
|
|
55588
55589
|
let t = String(e ?? "").trim().split(/[^a-zA-Z0-9]+/).filter(Boolean);
|
|
55589
55590
|
return t.length ? `${t.map((e, t) => t === 0 ? e.toLowerCase() : e[0].toUpperCase() + e.slice(1).toLowerCase()).join("")}Count` : "";
|
|
55590
55591
|
}
|
|
55591
|
-
function
|
|
55592
|
+
function Sz(e) {
|
|
55592
55593
|
let t = Array.isArray(e?.stages) ? e.stages : [];
|
|
55593
55594
|
if (!t.length) return e;
|
|
55594
55595
|
let n = {};
|
|
55595
55596
|
for (let e of t) {
|
|
55596
|
-
let t =
|
|
55597
|
+
let t = xz(e?.stageName);
|
|
55597
55598
|
t && (n[t] = Number(e?.count) || 0);
|
|
55598
55599
|
}
|
|
55599
55600
|
return {
|
|
@@ -55601,44 +55602,47 @@ function Cz(e) {
|
|
|
55601
55602
|
...e
|
|
55602
55603
|
};
|
|
55603
55604
|
}
|
|
55604
|
-
var
|
|
55605
|
+
var Cz = (e) => {
|
|
55605
55606
|
let t = Number(e?.targetSubmission ?? e?.targetSubmissions);
|
|
55606
55607
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
55607
55608
|
};
|
|
55608
|
-
function
|
|
55609
|
+
function wz({ submittedCountField: e = "submittedCount", progressField: t = "targetSubmissionProgress" } = {}) {
|
|
55609
55610
|
return function(n, r, i) {
|
|
55610
|
-
let a =
|
|
55611
|
-
return o != null && (
|
|
55611
|
+
let a = iz(n, r, i), o = Cz(a);
|
|
55612
|
+
return o != null && (a[t] = `${Number(a?.[e]) || 0} of ${o}`), a;
|
|
55612
55613
|
};
|
|
55613
55614
|
}
|
|
55614
|
-
function
|
|
55615
|
-
let t =
|
|
55615
|
+
function Tz(e = {}) {
|
|
55616
|
+
let t = wz();
|
|
55617
|
+
return yz({
|
|
55616
55618
|
primaryKey: "_id",
|
|
55617
|
-
secondaryKey: "entityId",
|
|
55618
55619
|
extraFields: e.extraFields,
|
|
55619
55620
|
extraFieldsAfter: e.extraFieldsAfter,
|
|
55620
55621
|
fetchPrimaryPage: mu,
|
|
55621
|
-
|
|
55622
|
-
|
|
55623
|
-
|
|
55624
|
-
|
|
55625
|
-
|
|
55626
|
-
|
|
55622
|
+
joinSources: [{
|
|
55623
|
+
key: "entityId",
|
|
55624
|
+
fetchByKeys: (e, t, n, r) => {
|
|
55625
|
+
let i = Math.max(1, Number(r?.limit) || 10);
|
|
55626
|
+
return fF(Math.floor((Number(r?.offset) || 0) / i) + 1, i);
|
|
55627
|
+
},
|
|
55628
|
+
extractRows: (e) => (e?.items ?? []).map(Sz),
|
|
55629
|
+
mergeRow: (e, n, r) => {
|
|
55630
|
+
let i = t(e, n, r);
|
|
55631
|
+
return n?._id && (i.workflowId = n._id), i;
|
|
55632
|
+
}
|
|
55633
|
+
}]
|
|
55627
55634
|
});
|
|
55628
|
-
return async function(e, t, r, i) {
|
|
55629
|
-
return await n(e, t, r, i);
|
|
55630
|
-
};
|
|
55631
55635
|
}
|
|
55632
|
-
async function
|
|
55633
|
-
return Hd(await
|
|
55636
|
+
async function Ez(e, t = 10, n = 0, r = {}, i = {}) {
|
|
55637
|
+
return Hd(await Tz(i)(e, t, n, r), e);
|
|
55634
55638
|
}
|
|
55635
|
-
async function
|
|
55636
|
-
return Hd(await
|
|
55639
|
+
async function Dz(e, t, n, r = 10, i = 0, a = {}) {
|
|
55640
|
+
return Hd(await bz(e, t)(n, r, i, a), n);
|
|
55637
55641
|
}
|
|
55638
55642
|
//#endregion
|
|
55639
55643
|
//#region src/index.js
|
|
55640
|
-
var kz =
|
|
55644
|
+
var Oz = WI, kz = UE(HL), Az = UE(WL), jz = UE(aR), Mz = UE(_R), Nz = UE(ER), Pz = UE(kR), Fz = UE(MR), Iz = UE(FR), Lz = UE(LR), Rz = UE(XR), zz = UE(QR);
|
|
55641
55645
|
//#endregion
|
|
55642
|
-
export { a as ADMIN_API_URL, C as ADMIN_APP_ID, E as APP_ID, s as AUTH_URL, dg as ActivityNotesCard, og as ActivityTab,
|
|
55646
|
+
export { a as ADMIN_API_URL, C as ADMIN_APP_ID, E as APP_ID, s as AUTH_URL, dg as ActivityNotesCard, og as ActivityTab, TI as AddBatchCandidatePopup, Uh as AddFormV1, WI as AdminDashboard, yM as AdminDashboardContent, Oz as AdminPage, Wh as AppAlert, en as AppButton, fE as AppShell, PC as ApprovalActionBar, fg as AssigneeAvatars, uE as AuthGuard, xy as BILLING_STATUS_FLOW, kS as BOOLEAN_API_KEYS, wS as BOOLEAN_PARSEABLE_API_KEYS, pg as BULK_UPLOAD_DEFAULT_ACCEPT, mg as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, kr as Breadcrumb, jz as BulkUploadPage, Sg as BulkUploadPanel, T as CANDIDATES_URL, iw as CONTRACT_C2C, rw as CONTRACT_W2, A_ as CURRENCY_SYMBOLS, ws as CalendarCard, CM as CoreThemeAdminApp, SM as CoreThemeAdminRoutes, xc as CustomPagination, nC as DEFAULT_HOURS_POLICY, EC as DayLogModal, Fg as DescriptionBlock, Cb as DetailHeaderCard, Ab as DetailViewPage, bv as DetailViewV1, Br as DocumentViewer, xl as DynamicCards, CP as DynamicPopup, AI as DynamicPopupRoute, Os as DynamicTabs, Ox as EditFormV1, sS as FIELD_TYPE_REGISTRY, YC as FINANCE_APPROVAL_CONFIG, HC as FINANCE_TYPE_CFO, VC as FINANCE_TYPE_ONBOARDING_MANAGER, GC as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, UC as FINANCE_TYPE_ONLY_FINANCE, BC as FINANCE_TYPE_SUBMISSION_MANAGER, WC as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, lT as FileListCard, Hw as FinanceApprovalPanel, nb as FinanceAvatar, ob as FinanceBadge, IC as FinanceDayCell, Jy as FinanceDivider, rb as FinanceEmployeeCell, Gy as FinanceEmptyState, Yy as FinanceEquation, $y as FinanceHistoryTimeline, Wy as FinanceHoursGrid, Uy as FinanceKpiRow, qy as FinanceLine, tC as FinanceListToolbar, sb as FinanceMarginBadge, ab as FinanceMoneyCell, ub as FinanceRecordsTable, cb as FinanceRowChevron, Ky as FinanceSection, Hy as FinanceStatusPill, ib as FinanceTextCell, RC as FinanceTimesheetAnalysis, Xy as FinanceWorkflowSteps, rC as HOURS_MESSAGES, RT as Header, El as HierarchyUserFilter, r as JOBS_URL, kz as LegacyAdminPage, vm as ListView, zz as LmsHomePage, Rz as LmsTestForm, pE as Login, HM as MailPopup, Pz as ManageModules, Fz as ManageSubmodules, Lx as ModuleRowActions, NC as NotesPanel, ug as NotesTab, Sy as PAYROLL_STATUS_FLOW, gI as POPUP_CONFIGS, Wx as ParamCardView, Xx as ParamListView, hC as PeriodBadgeTag, yN as PreviewPopup, HE as ProjectSelect, MC as ProofUploadPreview, kC as QuickLogBar, DC as QuickLogSelectionBar, OC as RejectionReasonModal, w as SUBMISSIONS_URL, KS as SearchBuilderV1, oE as Sidebar, JS as StatusBadge, mC as StatusBadgeTag, Az as StickyNotesFullPage, XS as StylishDynamicTabs, QS as TemplateEditor, Mz as TestForm, Lz as TestingHomePage, Qh as TimelineGroups, CC as TimesheetDayCell, Qr as TipTapEditor, UI as UserForm, PI as VendorShareDrawer, hf as ViewSummaryWidget, TN as WizardPopup, Iz as ZinnextTableView, Nz as ZinnextTestForm, oe as appNow, ni as applyIntegrationStatus, nc as approveSubmission, yg as buildAcceptAttr, PS as buildBooleanRequest, Iy as buildCsv, Ay as buildDailyRows, xC as buildDayGradient, kw as buildRateHistoryEntries, Ny as buildWeeklyRollup, y as clearSelectedProject, ht as colors, xw as computeFinance, lC as computeHoursPolicy, Py as computeMarginBand, Nn as conditionMatches, i as configureCoreTheme, Xt as configuredFieldLabel, Tz as createAllWorkflowsListFetcher, yz as createMergedListFetcher, fz as createModuleListFetchAdapter, bz as createWorkflowStageListFetcher, j_ as currencySymbol, iz as defaultMergeRow, Ft as deleteIntegrationConfig, ky as deriveDayStats, dC as describeCapacity, By as downloadCsv, or as evaluateShowIfWith, hw as findEmployerRow, pw as flattenGroups, L_ as formatAmount, Wr as formatApp, yt as formatAppDateTime, vg as formatFileSize, Aw as formatFinanceMoney, fy as formatHours, R_ as formatMoney, my as formatPercent, z_ as formatRate, xr as getActivity, Ez as getAllWorkflowsModuleList, pe as getAppTimeZone, vy as getApprovalDate, pr as getBgcIntegrationConfig, $n as getBgcIntegrationSummary, Cy as getBillingActionStates, dS as getBooleanEligibleTypes, b as getCurrentRoleName, Ry as getFieldLabel, lS as getFieldType, _g as getFileExtension, ew as getFinanceApprovalConfig, Qw as getFormGroupsRaw, rn as getIntegrationConfig, Yr as getIntegrationConfigs, gt as getIntegrationSummary, vc as getModuleConfig, Qt as getModuleDataDetail, wy as getPayrollActionStates, bc as getPeriodBadgeConfig, c as getSelectedProject, m as getStoredToken, S as getStoredUser, l as getUserRoles, rc as getVMSApprove, zy as getValueStyle, Dz as getWorkflowStageModuleList, Ty as getWorkflowSteps, _y as humanizeEvent, Vm as i, Ly as indexFieldConfig, hy as initialsOf, OS as insertTokenAtCursor, uS as isBooleanEligible, ES as isBooleanParsable, u as isTester, h as logout, nw as marginIncludesReferral, bw as matchLocationTax, Rb as n, _w as normalizeContract, Cg as r, N_ as rateUnitLabel, F_ as rateUnitShort, uC as reconcileHours, cS as registerFieldType, ac as rejectSubmission, rg as resolveActivityMeta, Sw as resolveAndCompute, sC as resolveDayKind, yw as resolveFinanceInputs, nz as resolveMergeKey, nz as resolveMergedListKey, tw as resolveRejectionReason, $w as resolveSubmissionFinance, Mt as saveBgcIntegrationConfig, _r as saveIntegrationConfig, d as setSelectedProject, on as showIfConditions, xz as stageCountKey, mE as t, k as testIntegrationConnection, $e as toApp, I_ as toNumber, Un as tzLabel, ee as tzShortLabel, Au as useDropdownFields, gf as useDropdownValues, uT as useEditForm, ju as useFieldConfig, Mu as useFilterFields, Vu as useMenuPermission, Ax as useModuleActions, Db as useRecordRefresh, DS as validateBooleanQuery, bg as validateBulkFile, n as withAdminAppId, t as withAppId, UE as withAuthGuard };
|
|
55643
55647
|
|
|
55644
55648
|
//# sourceMappingURL=index.js.map
|