@realtek/core-theme 0.0.269 → 0.0.270
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 +518 -515
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/style.css +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -8585,6 +8585,8 @@ var Lm = {
|
|
|
8585
8585
|
updated: "updated",
|
|
8586
8586
|
edit: "updated",
|
|
8587
8587
|
edited: "updated",
|
|
8588
|
+
update_log: "updated",
|
|
8589
|
+
update_proof: "updated",
|
|
8588
8590
|
notes: "note",
|
|
8589
8591
|
note: "note",
|
|
8590
8592
|
comment: "note",
|
|
@@ -8776,8 +8778,180 @@ function Wm({ activity: e, grouped: t = !0 }) {
|
|
|
8776
8778
|
});
|
|
8777
8779
|
}
|
|
8778
8780
|
//#endregion
|
|
8781
|
+
//#region src/components/detail/NotesTab.jsx
|
|
8782
|
+
function Gm(e) {
|
|
8783
|
+
let t = e?.user_name ?? e?.userName ?? e?.username, n = `${e?.first_name ?? e?.firstName ?? ""} ${e?.last_name ?? e?.lastName ?? ""}`.trim(), r = e?.email ?? "", i = t ?? n.replace(/\s+/g, "") ?? r ?? String(e?.user_id ?? e?.id ?? ""), a = [
|
|
8784
|
+
t,
|
|
8785
|
+
n,
|
|
8786
|
+
r
|
|
8787
|
+
].filter(Boolean).join(" - ") || String(i);
|
|
8788
|
+
return {
|
|
8789
|
+
value: String(i),
|
|
8790
|
+
label: a
|
|
8791
|
+
};
|
|
8792
|
+
}
|
|
8793
|
+
var Km = [{
|
|
8794
|
+
id: "n1",
|
|
8795
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8796
|
+
author: "You",
|
|
8797
|
+
notes: "Shortlisted 3 candidates, sharing profiles with @Hiring Manager today."
|
|
8798
|
+
}];
|
|
8799
|
+
function qm(e = "") {
|
|
8800
|
+
return e.split(/(\s+)/).map((e, t) => e.startsWith("@") && e.length > 1 ? /* @__PURE__ */ X("span", {
|
|
8801
|
+
className: "znx-an-mention",
|
|
8802
|
+
children: e
|
|
8803
|
+
}, t) : /* @__PURE__ */ X("span", { children: e }, t));
|
|
8804
|
+
}
|
|
8805
|
+
function Jm({ notes: e, users: t = [], onAddNote: n }) {
|
|
8806
|
+
let [r] = V.useForm(), [i, a] = R(() => Array.isArray(e) ? e : Km), [o, s] = R(!1), [c, l] = R(null), [u, d] = R(!1), f = Or(null), p = Array.isArray(e) ? e : i, m = L(() => t.map((e) => ({
|
|
8807
|
+
value: e.display ?? e.value,
|
|
8808
|
+
label: e.display ?? e.label
|
|
8809
|
+
})), [t]), h = c ?? m;
|
|
8810
|
+
return /* @__PURE__ */ Z("div", {
|
|
8811
|
+
className: "znx-an-body",
|
|
8812
|
+
children: [/* @__PURE__ */ Z(V, {
|
|
8813
|
+
form: r,
|
|
8814
|
+
onFinish: async ({ note: e }) => {
|
|
8815
|
+
let t = (e ?? "").trim();
|
|
8816
|
+
if (t) {
|
|
8817
|
+
s(!0);
|
|
8818
|
+
try {
|
|
8819
|
+
n ? await n(t) : a((e) => [{
|
|
8820
|
+
id: `local-${Date.now()}`,
|
|
8821
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8822
|
+
author: "You",
|
|
8823
|
+
notes: t
|
|
8824
|
+
}, ...e]), r.resetFields(), J.success("Notes added successfully");
|
|
8825
|
+
} catch {
|
|
8826
|
+
J.error("Something went wrong, please try again.");
|
|
8827
|
+
} finally {
|
|
8828
|
+
s(!1);
|
|
8829
|
+
}
|
|
8830
|
+
}
|
|
8831
|
+
},
|
|
8832
|
+
className: "znx-an-composer",
|
|
8833
|
+
children: [/* @__PURE__ */ X(V.Item, {
|
|
8834
|
+
name: "note",
|
|
8835
|
+
rules: [{
|
|
8836
|
+
required: !0,
|
|
8837
|
+
message: "Notes is required"
|
|
8838
|
+
}],
|
|
8839
|
+
style: { marginBottom: 0 },
|
|
8840
|
+
children: /* @__PURE__ */ X(Gr, {
|
|
8841
|
+
rows: 3,
|
|
8842
|
+
prefix: "@",
|
|
8843
|
+
options: h,
|
|
8844
|
+
loading: u,
|
|
8845
|
+
filterOption: !1,
|
|
8846
|
+
onSearch: (e) => {
|
|
8847
|
+
clearTimeout(f.current), d(!0), f.current = setTimeout(() => {
|
|
8848
|
+
Cl(e).then((e) => {
|
|
8849
|
+
l((Array.isArray(e) ? e : e?.items ?? e?.list ?? e?.data ?? []).map(Gm));
|
|
8850
|
+
}).catch(() => l([])).finally(() => d(!1));
|
|
8851
|
+
}, 300);
|
|
8852
|
+
},
|
|
8853
|
+
placeholder: "Add your notes on the job, use '@' to mention"
|
|
8854
|
+
})
|
|
8855
|
+
}), /* @__PURE__ */ X("div", {
|
|
8856
|
+
className: "znx-an-composer-actions",
|
|
8857
|
+
children: /* @__PURE__ */ X(z, {
|
|
8858
|
+
type: "primary",
|
|
8859
|
+
size: "small",
|
|
8860
|
+
htmlType: "submit",
|
|
8861
|
+
loading: o,
|
|
8862
|
+
children: "Post"
|
|
8863
|
+
})
|
|
8864
|
+
})]
|
|
8865
|
+
}), /* @__PURE__ */ X("div", {
|
|
8866
|
+
className: "znx-an-scroll",
|
|
8867
|
+
children: /* @__PURE__ */ X(Im, {
|
|
8868
|
+
rows: p,
|
|
8869
|
+
getTime: (e) => e.createdAt ?? e.activityTime,
|
|
8870
|
+
getKey: (e, t) => e.id ?? e._id ?? t,
|
|
8871
|
+
getAuthor: (e) => e.author,
|
|
8872
|
+
emptyText: "No notes here.",
|
|
8873
|
+
renderBody: (e) => /* @__PURE__ */ X("div", {
|
|
8874
|
+
className: "znx-an-comment",
|
|
8875
|
+
children: qm(e.notes)
|
|
8876
|
+
})
|
|
8877
|
+
})
|
|
8878
|
+
})]
|
|
8879
|
+
});
|
|
8880
|
+
}
|
|
8881
|
+
//#endregion
|
|
8882
|
+
//#region src/components/detail/ActivityNotesCard.jsx
|
|
8883
|
+
function Ym({ moduleName: e, id: t, users: n = [], showActivity: r = !0, showNotes: i = !0, defaultActiveKey: a = "activity", refreshKey: o = 0, className: s = "" }) {
|
|
8884
|
+
let [c, l] = R(null), [u, d] = R(null);
|
|
8885
|
+
I(() => {
|
|
8886
|
+
if (!e || !t) return;
|
|
8887
|
+
let n = !1;
|
|
8888
|
+
async function a() {
|
|
8889
|
+
let [a, o] = await Promise.all([r ? Me(e, t).catch(() => []) : Promise.resolve(null), i ? F(t).catch(() => []) : Promise.resolve(null)]);
|
|
8890
|
+
n || (l(a), d(o));
|
|
8891
|
+
}
|
|
8892
|
+
return a(), () => {
|
|
8893
|
+
n = !0;
|
|
8894
|
+
};
|
|
8895
|
+
}, [
|
|
8896
|
+
e,
|
|
8897
|
+
t,
|
|
8898
|
+
r,
|
|
8899
|
+
i,
|
|
8900
|
+
o
|
|
8901
|
+
]);
|
|
8902
|
+
let f = Er(async (n) => {
|
|
8903
|
+
if (!t) return;
|
|
8904
|
+
await Ce({
|
|
8905
|
+
relatedId: t,
|
|
8906
|
+
notes: n,
|
|
8907
|
+
notesFor: e
|
|
8908
|
+
});
|
|
8909
|
+
let [i, a] = await Promise.all([F(t).catch(() => []), r ? Me(e, t).catch(() => []) : Promise.resolve(c)]);
|
|
8910
|
+
d(i), r && l(a);
|
|
8911
|
+
}, [
|
|
8912
|
+
t,
|
|
8913
|
+
e,
|
|
8914
|
+
r,
|
|
8915
|
+
c
|
|
8916
|
+
]), p = [r && {
|
|
8917
|
+
key: "activity",
|
|
8918
|
+
title: "Activity",
|
|
8919
|
+
count: Array.isArray(c) ? c.length : void 0,
|
|
8920
|
+
children: /* @__PURE__ */ X(Wm, { activity: c })
|
|
8921
|
+
}, i && {
|
|
8922
|
+
key: "notes",
|
|
8923
|
+
title: "Notes",
|
|
8924
|
+
count: Array.isArray(u) ? u.length : void 0,
|
|
8925
|
+
children: /* @__PURE__ */ X(Jm, {
|
|
8926
|
+
notes: u,
|
|
8927
|
+
users: n,
|
|
8928
|
+
onAddNote: t ? f : void 0
|
|
8929
|
+
})
|
|
8930
|
+
}].filter(Boolean), [m, h] = R(p.some((e) => e.key === a) ? a : p[0]?.key);
|
|
8931
|
+
return /* @__PURE__ */ X(Pr, {
|
|
8932
|
+
className: ["znx-an-card", s].filter(Boolean).join(" "),
|
|
8933
|
+
styles: { body: { padding: 0 } },
|
|
8934
|
+
children: /* @__PURE__ */ X(Vo, {
|
|
8935
|
+
className: "znx-an-tabs",
|
|
8936
|
+
tabs: p,
|
|
8937
|
+
activeKey: m,
|
|
8938
|
+
onChange: h
|
|
8939
|
+
})
|
|
8940
|
+
});
|
|
8941
|
+
}
|
|
8942
|
+
Ym.propTypes = {
|
|
8943
|
+
moduleName: Q.string,
|
|
8944
|
+
id: Q.string,
|
|
8945
|
+
users: Q.array,
|
|
8946
|
+
showActivity: Q.bool,
|
|
8947
|
+
showNotes: Q.bool,
|
|
8948
|
+
defaultActiveKey: Q.string,
|
|
8949
|
+
refreshKey: Q.oneOfType([Q.number, Q.string]),
|
|
8950
|
+
className: Q.string
|
|
8951
|
+
};
|
|
8952
|
+
//#endregion
|
|
8779
8953
|
//#region src/components/AssigneeAvatars.jsx
|
|
8780
|
-
function
|
|
8954
|
+
function Xm({ assignees: e, extraAssignees: t }) {
|
|
8781
8955
|
return /* @__PURE__ */ Z(jr.Group, {
|
|
8782
8956
|
maxCount: 3,
|
|
8783
8957
|
size: "small",
|
|
@@ -8806,11 +8980,11 @@ function Gm({ assignees: e, extraAssignees: t }) {
|
|
|
8806
8980
|
}
|
|
8807
8981
|
//#endregion
|
|
8808
8982
|
//#region src/components/upload/bulkUploadValidation.js
|
|
8809
|
-
var
|
|
8983
|
+
var Zm = [
|
|
8810
8984
|
".xlsx",
|
|
8811
8985
|
".xls",
|
|
8812
8986
|
".csv"
|
|
8813
|
-
],
|
|
8987
|
+
], Qm = 10, $m = {
|
|
8814
8988
|
".xlsx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
|
8815
8989
|
".xls": ["application/vnd.ms-excel"],
|
|
8816
8990
|
".csv": [
|
|
@@ -8818,7 +8992,7 @@ var Km = [
|
|
|
8818
8992
|
"application/csv",
|
|
8819
8993
|
"text/plain"
|
|
8820
8994
|
]
|
|
8821
|
-
},
|
|
8995
|
+
}, eh = [
|
|
8822
8996
|
{
|
|
8823
8997
|
test: (e, t) => e === ".pdf" || t === "application/pdf",
|
|
8824
8998
|
label: "PDF"
|
|
@@ -8857,31 +9031,31 @@ var Km = [
|
|
|
8857
9031
|
label: "Plain text"
|
|
8858
9032
|
}
|
|
8859
9033
|
];
|
|
8860
|
-
function
|
|
9034
|
+
function th(e = "") {
|
|
8861
9035
|
let t = e.lastIndexOf(".");
|
|
8862
9036
|
return t === -1 ? "" : e.slice(t).toLowerCase();
|
|
8863
9037
|
}
|
|
8864
|
-
function
|
|
9038
|
+
function nh(e = 0) {
|
|
8865
9039
|
return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${Math.ceil(e / 1024)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
8866
9040
|
}
|
|
8867
|
-
function
|
|
9041
|
+
function rh(e = Zm) {
|
|
8868
9042
|
let t = e.map((e) => e.toLowerCase());
|
|
8869
|
-
return t.concat(t.flatMap((e) =>
|
|
9043
|
+
return t.concat(t.flatMap((e) => $m[e] ?? [])).join(",");
|
|
8870
9044
|
}
|
|
8871
|
-
function
|
|
9045
|
+
function ih(e, { accept: t = Zm, maxSizeMB: n = 10 } = {}) {
|
|
8872
9046
|
if (!e) return "No file selected.";
|
|
8873
|
-
let r =
|
|
9047
|
+
let r = th(e.name), i = (e.type || "").toLowerCase(), a = t.map((e) => e.toLowerCase()), o = a.join(", ");
|
|
8874
9048
|
if (!r) return `"${e.name}" has no file extension. Only ${o} files are allowed.`;
|
|
8875
9049
|
if (!a.includes(r)) {
|
|
8876
|
-
let e =
|
|
9050
|
+
let e = eh.find((e) => e.test(r, i));
|
|
8877
9051
|
return e ? `${e.label} files are not supported. Only ${o} files are allowed.` : `"${r}" files are not supported. Only ${o} files are allowed.`;
|
|
8878
9052
|
}
|
|
8879
|
-
let s =
|
|
8880
|
-
return i && s && !s.includes(i) ? `"${e.name}" is not a real ${r} file (detected ${i}). Re-save it from Excel and try again.` : e.size === 0 ? `"${e.name}" is empty. Fill in at least one row before uploading.` : e.size > n * 1024 * 1024 ? `File is ${
|
|
9053
|
+
let s = $m[r];
|
|
9054
|
+
return i && s && !s.includes(i) ? `"${e.name}" is not a real ${r} file (detected ${i}). Re-save it from Excel and try again.` : e.size === 0 ? `"${e.name}" is empty. Fill in at least one row before uploading.` : e.size > n * 1024 * 1024 ? `File is ${nh(e.size)}. The limit is ${n} MB.` : null;
|
|
8881
9055
|
}
|
|
8882
9056
|
//#endregion
|
|
8883
9057
|
//#region src/components/upload/BulkUploadPanel.jsx
|
|
8884
|
-
function
|
|
9058
|
+
function ah() {
|
|
8885
9059
|
return /* @__PURE__ */ Z("svg", {
|
|
8886
9060
|
className: "bulk-upload-art",
|
|
8887
9061
|
viewBox: "0 0 72 72",
|
|
@@ -8913,8 +9087,8 @@ function eh() {
|
|
|
8913
9087
|
]
|
|
8914
9088
|
});
|
|
8915
9089
|
}
|
|
8916
|
-
function
|
|
8917
|
-
let h = Or(null), [g, _] = R(!1), [v, y] = R(!1), [b, x] = R(!1), [S, C] = R(null), [w, T] = R(null), [E, D] = R(null), [O, k] = R(0), A = L(() => l.map((e) => e.toLowerCase()), [l]), j = L(() =>
|
|
9090
|
+
function oh({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel: i = "Back", templateLabel: a = "Download Sample Template", templateTitle: o = "Sample template", templateHint: s = "Pre-filled with the exact column names the importer expects. Do not rename or reorder the columns.", instructions: c = [], accept: l = Zm, maxSizeMB: u = 10, onDownloadTemplate: d, onUpload: f, renderResult: p, extraSidebar: m }) {
|
|
9091
|
+
let h = Or(null), [g, _] = R(!1), [v, y] = R(!1), [b, x] = R(!1), [S, C] = R(null), [w, T] = R(null), [E, D] = R(null), [O, k] = R(0), A = L(() => l.map((e) => e.toLowerCase()), [l]), j = L(() => rh(A), [A]), M = Er(() => {
|
|
8918
9092
|
C(null), T(null), D(null), _(!1), k((e) => e + 1);
|
|
8919
9093
|
}, []), N = Er(async () => {
|
|
8920
9094
|
if (d) {
|
|
@@ -8930,7 +9104,7 @@ function th({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
|
|
|
8930
9104
|
}, [d]), P = Er(async (e) => {
|
|
8931
9105
|
if (!e || b) return;
|
|
8932
9106
|
k((e) => e + 1);
|
|
8933
|
-
let t =
|
|
9107
|
+
let t = ih(e, {
|
|
8934
9108
|
accept: A,
|
|
8935
9109
|
maxSizeMB: u
|
|
8936
9110
|
});
|
|
@@ -9033,7 +9207,7 @@ function th({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
|
|
|
9033
9207
|
e.preventDefault(), _(!1), P(e.dataTransfer.files?.[0]);
|
|
9034
9208
|
},
|
|
9035
9209
|
children: [
|
|
9036
|
-
/* @__PURE__ */ X(
|
|
9210
|
+
/* @__PURE__ */ X(ah, {}),
|
|
9037
9211
|
/* @__PURE__ */ X("p", {
|
|
9038
9212
|
className: "bulk-upload-dropzone__title",
|
|
9039
9213
|
children: g ? "Drop the file to start uploading" : "Drag & drop your file here"
|
|
@@ -9090,7 +9264,7 @@ function th({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
|
|
|
9090
9264
|
children: S.name
|
|
9091
9265
|
}), /* @__PURE__ */ Z("span", {
|
|
9092
9266
|
className: "bulk-upload-file__size",
|
|
9093
|
-
children: [
|
|
9267
|
+
children: [nh(S.size), b ? " · uploading…" : w ? " · failed" : " · processed"]
|
|
9094
9268
|
})]
|
|
9095
9269
|
}),
|
|
9096
9270
|
b ? null : /* @__PURE__ */ X(z, {
|
|
@@ -9171,12 +9345,12 @@ function th({ title: e, description: t, breadcrumbItems: n, backTo: r, backLabel
|
|
|
9171
9345
|
}
|
|
9172
9346
|
//#endregion
|
|
9173
9347
|
//#region src/services/jobsApi.js
|
|
9174
|
-
var
|
|
9175
|
-
getJobById: () =>
|
|
9176
|
-
getJobDetailView: () =>
|
|
9177
|
-
updateJobDescription: () =>
|
|
9348
|
+
var sh = /* @__PURE__ */ yo({
|
|
9349
|
+
getJobById: () => hh,
|
|
9350
|
+
getJobDetailView: () => ch,
|
|
9351
|
+
updateJobDescription: () => gh
|
|
9178
9352
|
});
|
|
9179
|
-
async function
|
|
9353
|
+
async function ch(e) {
|
|
9180
9354
|
let t = await f(), r = new URLSearchParams({ jobId: String(e) }), i = await fetch(`${n}/jobs?${r}`, {
|
|
9181
9355
|
method: "GET",
|
|
9182
9356
|
headers: {
|
|
@@ -9188,41 +9362,41 @@ async function rh(e) {
|
|
|
9188
9362
|
let a = await i.json();
|
|
9189
9363
|
return a.data ?? a;
|
|
9190
9364
|
}
|
|
9191
|
-
var
|
|
9365
|
+
var lh = {
|
|
9192
9366
|
email: "zinnext@realtekconsulting.net",
|
|
9193
9367
|
user_pwd: "Admin@123*"
|
|
9194
|
-
},
|
|
9195
|
-
async function
|
|
9196
|
-
return
|
|
9368
|
+
}, uh = null;
|
|
9369
|
+
async function dh() {
|
|
9370
|
+
return uh || (uh = fetch(`${o}/login`, {
|
|
9197
9371
|
method: "POST",
|
|
9198
9372
|
headers: { "Content-Type": "application/json" },
|
|
9199
|
-
body: JSON.stringify(
|
|
9373
|
+
body: JSON.stringify(lh)
|
|
9200
9374
|
}).then(async (e) => {
|
|
9201
9375
|
if (!e.ok) throw Error(`Login failed: ${e.status}`);
|
|
9202
9376
|
let t = await e.json(), n = t.token ?? t.access_token ?? t.data?.token ?? t.data?.access_token;
|
|
9203
9377
|
if (!n) throw Error("No token in login response");
|
|
9204
9378
|
return localStorage.setItem("authToken", n), n;
|
|
9205
9379
|
}).finally(() => {
|
|
9206
|
-
|
|
9207
|
-
}),
|
|
9380
|
+
uh = null;
|
|
9381
|
+
}), uh);
|
|
9208
9382
|
}
|
|
9209
|
-
async function
|
|
9210
|
-
return (p() ?? localStorage.getItem("authToken")) ||
|
|
9383
|
+
async function fh() {
|
|
9384
|
+
return (p() ?? localStorage.getItem("authToken")) || dh();
|
|
9211
9385
|
}
|
|
9212
|
-
async function
|
|
9213
|
-
let t = await
|
|
9386
|
+
async function ph(e) {
|
|
9387
|
+
let t = await fh(), n = await fetch(`${o}${e}`, { headers: {
|
|
9214
9388
|
"Content-Type": "application/json",
|
|
9215
9389
|
Authorization: `Bearer ${t}`
|
|
9216
9390
|
} });
|
|
9217
|
-
if (n.status === 401 && (localStorage.removeItem("authToken"), t = await
|
|
9391
|
+
if (n.status === 401 && (localStorage.removeItem("authToken"), t = await dh(), n = await fetch(`${o}${e}`, { headers: {
|
|
9218
9392
|
"Content-Type": "application/json",
|
|
9219
9393
|
Authorization: `Bearer ${t}`
|
|
9220
9394
|
} })), !n.ok) throw Error(`API ${n.status}: ${n.statusText}`);
|
|
9221
9395
|
let r = await n.json();
|
|
9222
9396
|
return r.data ?? r;
|
|
9223
9397
|
}
|
|
9224
|
-
async function
|
|
9225
|
-
let n = await
|
|
9398
|
+
async function mh(e, t) {
|
|
9399
|
+
let n = await fh(), r = await fetch(`${o}${e}`, {
|
|
9226
9400
|
method: "PUT",
|
|
9227
9401
|
headers: {
|
|
9228
9402
|
"Content-Type": "application/json",
|
|
@@ -9230,7 +9404,7 @@ async function lh(e, t) {
|
|
|
9230
9404
|
},
|
|
9231
9405
|
body: JSON.stringify(t)
|
|
9232
9406
|
});
|
|
9233
|
-
if (r.status === 401 && (localStorage.removeItem("authToken"), n = await
|
|
9407
|
+
if (r.status === 401 && (localStorage.removeItem("authToken"), n = await dh(), r = await fetch(`${o}${e}`, {
|
|
9234
9408
|
method: "PUT",
|
|
9235
9409
|
headers: {
|
|
9236
9410
|
"Content-Type": "application/json",
|
|
@@ -9240,17 +9414,17 @@ async function lh(e, t) {
|
|
|
9240
9414
|
})), !r.ok) throw Error(`API ${r.status}: ${r.statusText}`);
|
|
9241
9415
|
return r.json();
|
|
9242
9416
|
}
|
|
9243
|
-
async function
|
|
9244
|
-
return
|
|
9417
|
+
async function hh(e) {
|
|
9418
|
+
return ph(`/jobs/${e}`);
|
|
9245
9419
|
}
|
|
9246
|
-
async function
|
|
9247
|
-
return
|
|
9420
|
+
async function gh(e, t) {
|
|
9421
|
+
return mh(`/jobs/${e}`, { rawDescription: t });
|
|
9248
9422
|
}
|
|
9249
9423
|
//#endregion
|
|
9250
9424
|
//#region src/components/DescriptionBlock.jsx
|
|
9251
|
-
var { Text:
|
|
9252
|
-
function
|
|
9253
|
-
let [a, o] = R(!1), [s, c] = R(!1), [l, u] = R(""), [d, f] = R(!1), p = [...t].sort((e, t) => (e.displayOrder ?? 0) - (t.displayOrder ?? 0)), m = a ? p : p.slice(0,
|
|
9425
|
+
var { Text: _h } = ci, vh = 2;
|
|
9426
|
+
function yh({ jobId: e, sections: t = [], meta: n = [], rawDescription: r = "", onSaved: i }) {
|
|
9427
|
+
let [a, o] = R(!1), [s, c] = R(!1), [l, u] = R(""), [d, f] = R(!1), p = [...t].sort((e, t) => (e.displayOrder ?? 0) - (t.displayOrder ?? 0)), m = a ? p : p.slice(0, vh), h = p.length > vh;
|
|
9254
9428
|
function g() {
|
|
9255
9429
|
u(r), c(!0);
|
|
9256
9430
|
}
|
|
@@ -9264,8 +9438,8 @@ function mh({ jobId: e, sections: t = [], meta: n = [], rawDescription: r = "",
|
|
|
9264
9438
|
}
|
|
9265
9439
|
f(!0);
|
|
9266
9440
|
try {
|
|
9267
|
-
await
|
|
9268
|
-
let t = await
|
|
9441
|
+
await gh(e, l.trim());
|
|
9442
|
+
let t = await hh(e);
|
|
9269
9443
|
i?.(t), c(!1), u(""), J.success("Description updated successfully");
|
|
9270
9444
|
} catch {
|
|
9271
9445
|
J.error("Failed to update description");
|
|
@@ -9299,7 +9473,7 @@ function mh({ jobId: e, sections: t = [], meta: n = [], rawDescription: r = "",
|
|
|
9299
9473
|
className: "desc-edit-icon",
|
|
9300
9474
|
onClick: g
|
|
9301
9475
|
})
|
|
9302
|
-
}), !t.length && !n.length ? /* @__PURE__ */ X(
|
|
9476
|
+
}), !t.length && !n.length ? /* @__PURE__ */ X(_h, {
|
|
9303
9477
|
type: "secondary",
|
|
9304
9478
|
children: "No description available."
|
|
9305
9479
|
}) : /* @__PURE__ */ Z("div", {
|
|
@@ -9357,7 +9531,7 @@ function mh({ jobId: e, sections: t = [], meta: n = [], rawDescription: r = "",
|
|
|
9357
9531
|
h && /* @__PURE__ */ X("span", {
|
|
9358
9532
|
className: "jdv-desc-toggle",
|
|
9359
9533
|
onClick: () => o((e) => !e),
|
|
9360
|
-
children: a ? "Show less" : `Show more (${t.length -
|
|
9534
|
+
children: a ? "Show less" : `Show more (${t.length - vh} more sections)`
|
|
9361
9535
|
})
|
|
9362
9536
|
]
|
|
9363
9537
|
})]
|
|
@@ -9365,10 +9539,10 @@ function mh({ jobId: e, sections: t = [], meta: n = [], rawDescription: r = "",
|
|
|
9365
9539
|
}
|
|
9366
9540
|
//#endregion
|
|
9367
9541
|
//#region src/hooks/useVisibleTabs.js
|
|
9368
|
-
function
|
|
9542
|
+
function bh() {
|
|
9369
9543
|
return Number(localStorage.getItem("userId")) || 0;
|
|
9370
9544
|
}
|
|
9371
|
-
function
|
|
9545
|
+
function xh(e, { id: t, moduleName: n, record: r } = {}) {
|
|
9372
9546
|
let i = L(() => Array.isArray(e) ? e : [], [e]), a = L(() => i.filter((e) => typeof e?.visibleWhen == "function"), [i]), [o, s] = R({});
|
|
9373
9547
|
return I(() => {
|
|
9374
9548
|
if (!a.length) return;
|
|
@@ -9376,7 +9550,7 @@ function gh(e, { id: t, moduleName: n, record: r } = {}) {
|
|
|
9376
9550
|
id: t,
|
|
9377
9551
|
moduleName: n,
|
|
9378
9552
|
record: r,
|
|
9379
|
-
currentUserId:
|
|
9553
|
+
currentUserId: bh()
|
|
9380
9554
|
};
|
|
9381
9555
|
return a.forEach((n) => {
|
|
9382
9556
|
let r = `${t}:${n.key}`;
|
|
@@ -9407,7 +9581,7 @@ function gh(e, { id: t, moduleName: n, record: r } = {}) {
|
|
|
9407
9581
|
}
|
|
9408
9582
|
//#endregion
|
|
9409
9583
|
//#region src/components/detail/detailConfig/financeHeaderCommon.js
|
|
9410
|
-
var
|
|
9584
|
+
var Sh = [
|
|
9411
9585
|
{
|
|
9412
9586
|
field: "baId",
|
|
9413
9587
|
label: "BA",
|
|
@@ -9454,10 +9628,10 @@ var _h = [
|
|
|
9454
9628
|
icon: "period",
|
|
9455
9629
|
tooltip: "Period"
|
|
9456
9630
|
}
|
|
9457
|
-
],
|
|
9458
|
-
billingConfig: () =>
|
|
9459
|
-
default: () =>
|
|
9460
|
-
}),
|
|
9631
|
+
], Ch = /* @__PURE__ */ yo({
|
|
9632
|
+
billingConfig: () => wh,
|
|
9633
|
+
default: () => wh
|
|
9634
|
+
}), wh = {
|
|
9461
9635
|
module: "billing",
|
|
9462
9636
|
tabs: [],
|
|
9463
9637
|
header: {
|
|
@@ -9465,31 +9639,31 @@ var _h = [
|
|
|
9465
9639
|
title: "candidateName",
|
|
9466
9640
|
eyebrow: "designation",
|
|
9467
9641
|
statusField: "billing.status",
|
|
9468
|
-
chips:
|
|
9642
|
+
chips: Sh
|
|
9469
9643
|
}
|
|
9470
|
-
},
|
|
9644
|
+
}, Th = {
|
|
9471
9645
|
USD: "$",
|
|
9472
9646
|
INR: "₹",
|
|
9473
9647
|
EUR: "€",
|
|
9474
9648
|
GBP: "£",
|
|
9475
9649
|
AUD: "$",
|
|
9476
9650
|
CAD: "$"
|
|
9477
|
-
},
|
|
9478
|
-
function
|
|
9479
|
-
let t =
|
|
9651
|
+
}, Eh = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0, Dh = (e) => !Eh(e);
|
|
9652
|
+
function Oh(e) {
|
|
9653
|
+
let t = Ah(e);
|
|
9480
9654
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
9481
9655
|
}
|
|
9482
|
-
function
|
|
9656
|
+
function kh(e) {
|
|
9483
9657
|
return e && typeof e == "object" && !Array.isArray(e) && "id" in e && "value" in e ? e.id ?? e.value : e;
|
|
9484
9658
|
}
|
|
9485
|
-
function
|
|
9486
|
-
return Array.isArray(e) ? e.filter((e) => !
|
|
9659
|
+
function Ah(e) {
|
|
9660
|
+
return Array.isArray(e) ? e.filter((e) => !Eh(e)).map((e) => Ah(e)).filter(Boolean).join(", ") : e && typeof e == "object" && "id" in e && "value" in e ? String(e.value ?? e.id ?? "") : String(e ?? "");
|
|
9487
9661
|
}
|
|
9488
|
-
function
|
|
9489
|
-
return
|
|
9662
|
+
function jh(e) {
|
|
9663
|
+
return Eh(e) ? "" : Th[String(e).toUpperCase()] ?? String(e);
|
|
9490
9664
|
}
|
|
9491
|
-
function
|
|
9492
|
-
if (
|
|
9665
|
+
function Mh(e) {
|
|
9666
|
+
if (Eh(e)) return "";
|
|
9493
9667
|
let t = new Date(e);
|
|
9494
9668
|
return Number.isNaN(t.getTime()) ? "" : `${t.toLocaleDateString("en-US", {
|
|
9495
9669
|
month: "short",
|
|
@@ -9501,11 +9675,11 @@ function Dh(e) {
|
|
|
9501
9675
|
hour12: !0
|
|
9502
9676
|
}).replace(/\s/g, "").toUpperCase()}`;
|
|
9503
9677
|
}
|
|
9504
|
-
function
|
|
9505
|
-
return
|
|
9678
|
+
function Nh({ start: e, end: t, sym: n = "", unit: r } = {}) {
|
|
9679
|
+
return Eh(e) || Number(e) <= 0 ? "" : `${n}${!Eh(t) && Number(t) > 0 ? `${e} - ${t}` : `${e}`}${Eh(r) ? "" : `/${r}`}`;
|
|
9506
9680
|
}
|
|
9507
|
-
function
|
|
9508
|
-
let t =
|
|
9681
|
+
function Ph(e) {
|
|
9682
|
+
let t = Ah(e).toLowerCase();
|
|
9509
9683
|
return [
|
|
9510
9684
|
"active",
|
|
9511
9685
|
"open",
|
|
@@ -9528,10 +9702,10 @@ function kh(e) {
|
|
|
9528
9702
|
}
|
|
9529
9703
|
//#endregion
|
|
9530
9704
|
//#region src/components/detail/detailConfig/modules/candidateConfig.js
|
|
9531
|
-
var
|
|
9532
|
-
candidateConfig: () =>
|
|
9533
|
-
default: () =>
|
|
9534
|
-
}),
|
|
9705
|
+
var Fh = /* @__PURE__ */ yo({
|
|
9706
|
+
candidateConfig: () => Ih,
|
|
9707
|
+
default: () => Ih
|
|
9708
|
+
}), Ih = {
|
|
9535
9709
|
module: "candidate",
|
|
9536
9710
|
tabs: [
|
|
9537
9711
|
{
|
|
@@ -9559,8 +9733,8 @@ var Ah = /* @__PURE__ */ yo({
|
|
|
9559
9733
|
],
|
|
9560
9734
|
eyebrow: "source",
|
|
9561
9735
|
status: ({ val: e, has: t }) => t(e("status")) ? {
|
|
9562
|
-
label:
|
|
9563
|
-
color:
|
|
9736
|
+
label: Oh(e("status")),
|
|
9737
|
+
color: Ph(e("status"))
|
|
9564
9738
|
} : e("applicantPlacedStatus") === !0 ? {
|
|
9565
9739
|
label: "Placed",
|
|
9566
9740
|
color: "success"
|
|
@@ -9584,7 +9758,7 @@ var Ah = /* @__PURE__ */ yo({
|
|
|
9584
9758
|
},
|
|
9585
9759
|
{
|
|
9586
9760
|
icon: "experience",
|
|
9587
|
-
compute:
|
|
9761
|
+
compute: Lh
|
|
9588
9762
|
},
|
|
9589
9763
|
{
|
|
9590
9764
|
icon: "employment",
|
|
@@ -9593,7 +9767,7 @@ var Ah = /* @__PURE__ */ yo({
|
|
|
9593
9767
|
{
|
|
9594
9768
|
icon: "rate",
|
|
9595
9769
|
prefix: "Expected: ",
|
|
9596
|
-
compute:
|
|
9770
|
+
compute: Rh
|
|
9597
9771
|
}
|
|
9598
9772
|
],
|
|
9599
9773
|
timestamp: {
|
|
@@ -9602,39 +9776,39 @@ var Ah = /* @__PURE__ */ yo({
|
|
|
9602
9776
|
}
|
|
9603
9777
|
}
|
|
9604
9778
|
};
|
|
9605
|
-
function
|
|
9779
|
+
function Lh({ val: e, has: t }) {
|
|
9606
9780
|
let n = t(e("yearOfExperience")) ? e("yearOfExperience") : e("experience");
|
|
9607
9781
|
if (!t(n)) return "";
|
|
9608
9782
|
let r = e("monthOfExperience");
|
|
9609
9783
|
return `${n} yrs${t(r) && Number(r) > 0 ? ` ${r} mo` : ""}`;
|
|
9610
9784
|
}
|
|
9611
|
-
function
|
|
9785
|
+
function Rh({ val: e }) {
|
|
9612
9786
|
let t = e("expectedPayDetails") ?? {};
|
|
9613
|
-
return
|
|
9787
|
+
return Nh({
|
|
9614
9788
|
start: t.expectedPay ?? e("expectedPay"),
|
|
9615
|
-
sym: t.expectedPayCurrencySymbol ??
|
|
9789
|
+
sym: t.expectedPayCurrencySymbol ?? jh(t.expectedPayCurrency),
|
|
9616
9790
|
unit: t.expectedPayUnit
|
|
9617
9791
|
});
|
|
9618
9792
|
}
|
|
9619
9793
|
//#endregion
|
|
9620
9794
|
//#region src/components/detail/detailEmptiness.js
|
|
9621
|
-
var
|
|
9622
|
-
function
|
|
9623
|
-
return e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.values(e).every((e) =>
|
|
9795
|
+
var zh = (e) => e === !0 || e === 1 || e === "1";
|
|
9796
|
+
function Bh(e) {
|
|
9797
|
+
return e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.values(e).every((e) => Bh(e)) : !1;
|
|
9624
9798
|
}
|
|
9625
|
-
function
|
|
9799
|
+
function Vh(e) {
|
|
9626
9800
|
return xn(e).filter((e) => e?.location || e?.url);
|
|
9627
9801
|
}
|
|
9628
|
-
function
|
|
9629
|
-
return
|
|
9802
|
+
function Hh(e) {
|
|
9803
|
+
return Vh(e).length > 0;
|
|
9630
9804
|
}
|
|
9631
|
-
function
|
|
9632
|
-
return
|
|
9805
|
+
function Uh(e) {
|
|
9806
|
+
return zh(e?.hideWhenEmpty) || zh(e?.hideWhenEmptyInDetail) || zh(e?.renderOptions?.hideWhenEmpty) || zh(e?.renderOptions?.hideWhenEmptyInDetail);
|
|
9633
9807
|
}
|
|
9634
|
-
function
|
|
9635
|
-
return
|
|
9808
|
+
function Wh(e) {
|
|
9809
|
+
return zh(e?.hideWhenZero) || zh(e?.renderOptions?.hideWhenZero);
|
|
9636
9810
|
}
|
|
9637
|
-
function
|
|
9811
|
+
function Gh(e) {
|
|
9638
9812
|
if (typeof e == "number") return e === 0;
|
|
9639
9813
|
if (typeof e == "string") {
|
|
9640
9814
|
let t = e.trim();
|
|
@@ -9642,23 +9816,23 @@ function Bh(e) {
|
|
|
9642
9816
|
}
|
|
9643
9817
|
return !1;
|
|
9644
9818
|
}
|
|
9645
|
-
function
|
|
9646
|
-
let n =
|
|
9647
|
-
return !
|
|
9819
|
+
function Kh(e, t) {
|
|
9820
|
+
let n = Wh(e);
|
|
9821
|
+
return !Uh(e) && !n ? !1 : e?.type === "file" || e?.type === "document" || e?.renderType === "document" ? !Hh(t) : Bh(t) || n && Gh(t);
|
|
9648
9822
|
}
|
|
9649
9823
|
//#endregion
|
|
9650
9824
|
//#region src/components/detail/phoneDisplay.js
|
|
9651
|
-
var
|
|
9652
|
-
function
|
|
9825
|
+
var qh = (e) => e == null || e === "";
|
|
9826
|
+
function Jh(e, t) {
|
|
9653
9827
|
return String(t ?? "").split(".").filter(Boolean).reduce((e, t) => e?.[t], e);
|
|
9654
9828
|
}
|
|
9655
|
-
function
|
|
9829
|
+
function Yh(e) {
|
|
9656
9830
|
let t = String(e ?? "").trim().replace(/[\s()-]/g, "");
|
|
9657
9831
|
if (!t) return "";
|
|
9658
9832
|
let n = t.replace(/^\+/, "");
|
|
9659
9833
|
return /^\d{1,4}$/.test(n) ? `+${n}` : "";
|
|
9660
9834
|
}
|
|
9661
|
-
function
|
|
9835
|
+
function Xh(e) {
|
|
9662
9836
|
let t = String(e?.field ?? "").trim(), n = t.replace(/(number|no|phone|mobile|contact)$/i, "");
|
|
9663
9837
|
return [
|
|
9664
9838
|
...t ? [`${t}CountryCode`, `${t}Code`] : [],
|
|
@@ -9671,15 +9845,15 @@ function Gh(e) {
|
|
|
9671
9845
|
"isdCode"
|
|
9672
9846
|
];
|
|
9673
9847
|
}
|
|
9674
|
-
function
|
|
9675
|
-
let r = e?.renderOptions?.countryCodeField ?? e?.countryCodeField, i = r ? [r, ...
|
|
9848
|
+
function Zh(e, t, n = "") {
|
|
9849
|
+
let r = e?.renderOptions?.countryCodeField ?? e?.countryCodeField, i = r ? [r, ...Xh(e)] : Xh(e);
|
|
9676
9850
|
for (let e of i) {
|
|
9677
|
-
let n =
|
|
9851
|
+
let n = Yh(Jh(t, e));
|
|
9678
9852
|
if (n) return n;
|
|
9679
9853
|
}
|
|
9680
|
-
return
|
|
9854
|
+
return Yh(n);
|
|
9681
9855
|
}
|
|
9682
|
-
function
|
|
9856
|
+
function Qh(e) {
|
|
9683
9857
|
let t = String(e ?? "").trim(), n = t.match(/^(\+\d{1,4})[\s-]*(.*)$/);
|
|
9684
9858
|
return n ? {
|
|
9685
9859
|
code: n[1],
|
|
@@ -9689,18 +9863,18 @@ function qh(e) {
|
|
|
9689
9863
|
rest: t
|
|
9690
9864
|
};
|
|
9691
9865
|
}
|
|
9692
|
-
function
|
|
9693
|
-
if (
|
|
9694
|
-
let { code: n, rest: r } =
|
|
9866
|
+
function $h(e, t = "") {
|
|
9867
|
+
if (qh(e)) return "";
|
|
9868
|
+
let { code: n, rest: r } = Qh(e), i = n || Yh(t), a = M(r) || r;
|
|
9695
9869
|
return `${i ? `${i} ` : ""}${a}`.trim();
|
|
9696
9870
|
}
|
|
9697
|
-
function
|
|
9698
|
-
return
|
|
9871
|
+
function eg(e, t, n) {
|
|
9872
|
+
return $h(t, Zh(e, n, Fe()));
|
|
9699
9873
|
}
|
|
9700
9874
|
//#endregion
|
|
9701
9875
|
//#region src/components/detail/detailVisibility.js
|
|
9702
|
-
var
|
|
9703
|
-
function
|
|
9876
|
+
var tg = (e) => e === !0 || e === 1 || e === "1";
|
|
9877
|
+
function ng(e = []) {
|
|
9704
9878
|
let t = {};
|
|
9705
9879
|
for (let n of e ?? []) for (let e of n?.fields ?? []) {
|
|
9706
9880
|
if (!e?.field || e.value === void 0) continue;
|
|
@@ -9709,38 +9883,38 @@ function Zh(e = []) {
|
|
|
9709
9883
|
}
|
|
9710
9884
|
return t;
|
|
9711
9885
|
}
|
|
9712
|
-
function
|
|
9886
|
+
function rg(e, t) {
|
|
9713
9887
|
let n = It(e?.showIf);
|
|
9714
|
-
return !n.length ||
|
|
9888
|
+
return !n.length || tg(e?.ignoreShowIfInDetail) || !n.every((e) => Object.prototype.hasOwnProperty.call(t ?? {}, e.field)) ? !0 : An(e.showIf, (e) => t[e]);
|
|
9715
9889
|
}
|
|
9716
|
-
function
|
|
9890
|
+
function ig(e) {
|
|
9717
9891
|
let t = e?.detailLabelWhen;
|
|
9718
9892
|
if (Array.isArray(t) && t.length) return t;
|
|
9719
9893
|
let n = e?.labelWhen;
|
|
9720
9894
|
return n ? [n] : [];
|
|
9721
9895
|
}
|
|
9722
|
-
function
|
|
9896
|
+
function ag(e, t) {
|
|
9723
9897
|
let n = e?.label;
|
|
9724
|
-
if (
|
|
9725
|
-
for (let n of
|
|
9898
|
+
if (tg(e?.ignoreLabelWhenInDetail)) return n;
|
|
9899
|
+
for (let n of ig(e)) if (!(!n?.field || !n?.label) && Object.prototype.hasOwnProperty.call(t ?? {}, n.field) && on(n, t[n.field])) return n.label;
|
|
9726
9900
|
return n;
|
|
9727
9901
|
}
|
|
9728
9902
|
//#endregion
|
|
9729
9903
|
//#region src/components/detail/historyRateKeys.js
|
|
9730
|
-
var
|
|
9731
|
-
function
|
|
9732
|
-
return !e || !t || !
|
|
9904
|
+
var og = /(currency|symbol|unit|type)/i, sg = /(rate|budget|amount)/i, cg = (e) => typeof e == "number" || typeof e == "string" && e.trim() !== "" && !Number.isNaN(Number(e)), lg = (e) => e === !0 || e === 1 || e === "1";
|
|
9905
|
+
function ug(e, t) {
|
|
9906
|
+
return !e || !t || !lg(e.appendHistory) ? !1 : [e.historyField, ...e.historyFields ?? []].includes(t);
|
|
9733
9907
|
}
|
|
9734
|
-
function
|
|
9908
|
+
function dg(e, t) {
|
|
9735
9909
|
let n = String(t ?? "").trim();
|
|
9736
9910
|
if (!n) return "";
|
|
9737
9911
|
let r = `${e}.`;
|
|
9738
9912
|
return n.startsWith(r) ? n.slice(r.length) : n;
|
|
9739
9913
|
}
|
|
9740
|
-
function
|
|
9914
|
+
function fg(e, t = []) {
|
|
9741
9915
|
let n = `${e}.`, r = [];
|
|
9742
9916
|
return (t ?? []).forEach((t) => {
|
|
9743
|
-
|
|
9917
|
+
ug(t, e) && (t.fields ?? []).forEach((e) => {
|
|
9744
9918
|
let t = String(e?.field ?? "");
|
|
9745
9919
|
if (!t.startsWith(n)) return;
|
|
9746
9920
|
let i = t.slice(n.length);
|
|
@@ -9748,36 +9922,36 @@ function sg(e, t = []) {
|
|
|
9748
9922
|
});
|
|
9749
9923
|
}), r;
|
|
9750
9924
|
}
|
|
9751
|
-
function
|
|
9925
|
+
function pg(e, t = [], n) {
|
|
9752
9926
|
for (let r of t ?? []) {
|
|
9753
|
-
if (!
|
|
9754
|
-
let t =
|
|
9927
|
+
if (!ug(r, e)) continue;
|
|
9928
|
+
let t = dg(e, r?.[n]?.[e]);
|
|
9755
9929
|
if (t) return t;
|
|
9756
9930
|
}
|
|
9757
9931
|
return "";
|
|
9758
9932
|
}
|
|
9759
|
-
var
|
|
9760
|
-
function
|
|
9761
|
-
let t = Object.entries(e ?? {}).find(([e, t]) =>
|
|
9933
|
+
var mg = (e, t) => !!t && e != null && Object.prototype.hasOwnProperty.call(e, t) && e[t] !== void 0;
|
|
9934
|
+
function hg(e) {
|
|
9935
|
+
let t = Object.entries(e ?? {}).find(([e, t]) => sg.test(e) && !og.test(e) && cg(t));
|
|
9762
9936
|
return t ? t[0] : "";
|
|
9763
9937
|
}
|
|
9764
|
-
function
|
|
9938
|
+
function gg(e) {
|
|
9765
9939
|
let t = Object.keys(e ?? {});
|
|
9766
9940
|
return t.find((t) => /currencysymbol/i.test(t) && String(e[t] ?? "").trim() !== "") || t.find((t) => /currency/i.test(t) && String(e[t] ?? "").trim() !== "") || t.find((t) => /symbol/i.test(t) && String(e[t] ?? "").trim() !== "") || "";
|
|
9767
9941
|
}
|
|
9768
|
-
function
|
|
9942
|
+
function _g(e) {
|
|
9769
9943
|
return Object.keys(e ?? {}).find((e) => /unit/i.test(e)) || "";
|
|
9770
9944
|
}
|
|
9771
|
-
function
|
|
9772
|
-
let r =
|
|
9945
|
+
function vg(e, t, n = []) {
|
|
9946
|
+
let r = fg(t, n), i = pg(t, n, "historyAmountFields"), a = r.find((e) => !og.test(e)), o = mg(e, i) && i || mg(e, a) && a || hg(e), s = pg(t, n, "historyCurrencyFields"), c = r.find((t) => /symbol/i.test(t) && mg(e, t) && String(e[t] ?? "").trim() !== ""), l = r.find((e) => /currency/i.test(e) && !/symbol/i.test(e)), u = mg(e, s) && s || c || mg(e, l) && l || gg(e), d = pg(t, n, "historyUnitFields"), f = r.find((e) => /unit/i.test(e)), p = mg(e, d) && d || mg(e, f) && f || _g(e);
|
|
9773
9947
|
return {
|
|
9774
9948
|
amountKey: o || "",
|
|
9775
9949
|
currencyKey: u || "",
|
|
9776
9950
|
unitKey: p || ""
|
|
9777
9951
|
};
|
|
9778
9952
|
}
|
|
9779
|
-
function
|
|
9780
|
-
let { amountKey: r, currencyKey: i, unitKey: a } =
|
|
9953
|
+
function yg(e, t, n = []) {
|
|
9954
|
+
let { amountKey: r, currencyKey: i, unitKey: a } = vg(e, t, n);
|
|
9781
9955
|
return {
|
|
9782
9956
|
amountKey: r,
|
|
9783
9957
|
currencyKey: i,
|
|
@@ -9789,7 +9963,7 @@ function mg(e, t, n = []) {
|
|
|
9789
9963
|
}
|
|
9790
9964
|
//#endregion
|
|
9791
9965
|
//#region src/utils/currency.js
|
|
9792
|
-
var
|
|
9966
|
+
var bg = {
|
|
9793
9967
|
USD: "$",
|
|
9794
9968
|
INR: "₹",
|
|
9795
9969
|
GBP: "£",
|
|
@@ -9799,11 +9973,11 @@ var hg = {
|
|
|
9799
9973
|
SGD: "S$",
|
|
9800
9974
|
JPY: "¥"
|
|
9801
9975
|
};
|
|
9802
|
-
function
|
|
9976
|
+
function xg(e, t = "$") {
|
|
9803
9977
|
let n = String(e ?? "").trim();
|
|
9804
|
-
return n ?
|
|
9978
|
+
return n ? bg[n.toUpperCase()] || (/^[A-Za-z]{2,}$/.test(n) ? t : n) : t;
|
|
9805
9979
|
}
|
|
9806
|
-
var
|
|
9980
|
+
var Sg = {
|
|
9807
9981
|
hr: "Hourly",
|
|
9808
9982
|
hour: "Hourly",
|
|
9809
9983
|
hours: "Hourly",
|
|
@@ -9819,82 +9993,82 @@ var _g = {
|
|
|
9819
9993
|
annual: "Yearly",
|
|
9820
9994
|
annually: "Yearly"
|
|
9821
9995
|
};
|
|
9822
|
-
function
|
|
9996
|
+
function Cg(e, t = "") {
|
|
9823
9997
|
let n = String(e ?? "").trim();
|
|
9824
|
-
return n ?
|
|
9998
|
+
return n ? Sg[n.toLowerCase()] ?? n.charAt(0).toUpperCase() + n.slice(1) : t;
|
|
9825
9999
|
}
|
|
9826
|
-
var
|
|
10000
|
+
var wg = {
|
|
9827
10001
|
Hourly: "hr",
|
|
9828
10002
|
Daily: "day",
|
|
9829
10003
|
Weekly: "wk",
|
|
9830
10004
|
Monthly: "mo",
|
|
9831
10005
|
Yearly: "yr"
|
|
9832
10006
|
};
|
|
9833
|
-
function
|
|
9834
|
-
let n =
|
|
9835
|
-
return n ?
|
|
10007
|
+
function Tg(e, t = "") {
|
|
10008
|
+
let n = Cg(e, "");
|
|
10009
|
+
return n ? wg[n] ?? n.toLowerCase() : t;
|
|
9836
10010
|
}
|
|
9837
|
-
function
|
|
10011
|
+
function Eg(e) {
|
|
9838
10012
|
if (typeof e == "number") return Number.isFinite(e) ? e : NaN;
|
|
9839
10013
|
let t = String(e ?? "").trim().replace(/[,\s]/g, "").replace(/[^0-9eE+.\-]/g, "");
|
|
9840
10014
|
if (!t) return NaN;
|
|
9841
10015
|
let n = Number(t);
|
|
9842
10016
|
return Number.isFinite(n) ? n : NaN;
|
|
9843
10017
|
}
|
|
9844
|
-
function
|
|
9845
|
-
let n =
|
|
10018
|
+
function Dg(e, { decimals: t } = {}) {
|
|
10019
|
+
let n = Eg(e);
|
|
9846
10020
|
return Number.isNaN(n) ? String(e ?? "") : n.toLocaleString(void 0, {
|
|
9847
10021
|
minimumFractionDigits: t ?? 0,
|
|
9848
10022
|
maximumFractionDigits: t ?? 2
|
|
9849
10023
|
});
|
|
9850
10024
|
}
|
|
9851
|
-
function
|
|
9852
|
-
let r =
|
|
10025
|
+
function Og(e, t = "$", n = {}) {
|
|
10026
|
+
let r = Eg(e);
|
|
9853
10027
|
if (Number.isNaN(r)) return String(e ?? "");
|
|
9854
|
-
let i =
|
|
9855
|
-
return `${r < 0 ? "−" : ""}${i}${
|
|
10028
|
+
let i = xg(t);
|
|
10029
|
+
return `${r < 0 ? "−" : ""}${i}${Dg(Math.abs(r), n)}`;
|
|
9856
10030
|
}
|
|
9857
|
-
function
|
|
9858
|
-
let i =
|
|
10031
|
+
function kg(e, t = "$", n, r = {}) {
|
|
10032
|
+
let i = Og(e, t, r), a = Cg(n, "");
|
|
9859
10033
|
return a ? `${i} / ${a}` : i;
|
|
9860
10034
|
}
|
|
9861
10035
|
//#endregion
|
|
9862
10036
|
//#region src/components/detail/fieldRenderEngine.jsx
|
|
9863
|
-
var { Text:
|
|
9864
|
-
function
|
|
10037
|
+
var { Text: Ag } = ci, jg = (e) => e == null || e === "", Mg = /^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}|$)/;
|
|
10038
|
+
function Ng(e) {
|
|
9865
10039
|
return String(e).replace(/\w\S*/g, (e) => e.length > 1 && e === e.toUpperCase() ? e : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase());
|
|
9866
10040
|
}
|
|
9867
|
-
function
|
|
10041
|
+
function Pg(e) {
|
|
9868
10042
|
return !(typeof e != "string" || !e.trim() || !/[a-z]/i.test(e) || e.includes("@") || /^https?:\/\//i.test(e) || /^[a-f0-9]{24}$/i.test(e) || /<[a-z][\s\S]*>/i.test(e));
|
|
9869
10043
|
}
|
|
9870
|
-
function
|
|
9871
|
-
if (
|
|
10044
|
+
function Fg(e, t) {
|
|
10045
|
+
if (jg(e)) return "";
|
|
9872
10046
|
let n = String(e);
|
|
9873
|
-
return t === !1 ? n :
|
|
10047
|
+
return t === !1 ? n : Pg(n) ? Ng(n) : n;
|
|
9874
10048
|
}
|
|
9875
|
-
function
|
|
9876
|
-
return Object.values(e).filter((e) => !
|
|
10049
|
+
function Ig(e, t, n) {
|
|
10050
|
+
return Object.values(e).filter((e) => !jg(e) && typeof e != "object").map((e) => Fg(e, t)).join(n);
|
|
9877
10051
|
}
|
|
9878
|
-
function
|
|
10052
|
+
function Lg(e, t) {
|
|
9879
10053
|
if (!e) return e;
|
|
9880
10054
|
switch (t) {
|
|
9881
10055
|
case "upper": return String(e).toUpperCase();
|
|
9882
10056
|
case "lower": return String(e).toLowerCase();
|
|
9883
|
-
case "title": return
|
|
10057
|
+
case "title": return Ng(e);
|
|
9884
10058
|
default: return e;
|
|
9885
10059
|
}
|
|
9886
10060
|
}
|
|
9887
|
-
var
|
|
9888
|
-
function
|
|
9889
|
-
return
|
|
10061
|
+
var Rg = (e) => e && typeof e == "object" && !Array.isArray(e) && "value" in e && "id" in e;
|
|
10062
|
+
function zg(e, t, n) {
|
|
10063
|
+
return jg(e) ? "" : Rg(e) ? Fg(e.value ?? e.id, t) : Array.isArray(e) ? e.map((e) => Rg(e) ? Fg(e.value ?? e.id, t) : e && typeof e == "object" ? Ig(e, t, n) : Fg(e, t)).filter(Boolean).join(n) : typeof e == "boolean" ? e ? "Yes" : "No" : typeof e == "object" ? Ig(e, t, n) : Fg(e, t);
|
|
9890
10064
|
}
|
|
9891
|
-
function
|
|
9892
|
-
if (Array.isArray(e)) return e.map((e) =>
|
|
9893
|
-
if (typeof e == "string") return e.split(",").map((e) =>
|
|
9894
|
-
let r =
|
|
10065
|
+
function Bg(e, t, n) {
|
|
10066
|
+
if (Array.isArray(e)) return e.map((e) => Rg(e) ? Fg(e.value ?? e.id, t) : e && typeof e == "object" ? Ig(e, t, n) : Fg(e, t)).filter((e) => e !== "");
|
|
10067
|
+
if (typeof e == "string") return e.split(",").map((e) => Fg(e.trim(), t)).filter(Boolean);
|
|
10068
|
+
let r = zg(e, t, n);
|
|
9895
10069
|
return r ? [r] : [];
|
|
9896
10070
|
}
|
|
9897
|
-
function
|
|
10071
|
+
function Vg({ name: e }) {
|
|
9898
10072
|
let t = String(e || "").split(".").pop().toLowerCase();
|
|
9899
10073
|
return t === "pdf" ? /* @__PURE__ */ X(ta, { className: "v1-file-chip__icon" }) : t === "doc" || t === "docx" ? /* @__PURE__ */ X(ia, { className: "v1-file-chip__icon" }) : [
|
|
9900
10074
|
"png",
|
|
@@ -9911,20 +10085,20 @@ function Ig({ name: e }) {
|
|
|
9911
10085
|
"md"
|
|
9912
10086
|
].includes(t) ? /* @__PURE__ */ X(ra, { className: "v1-file-chip__icon" }) : /* @__PURE__ */ X(ea, { className: "v1-file-chip__icon" });
|
|
9913
10087
|
}
|
|
9914
|
-
|
|
9915
|
-
function
|
|
10088
|
+
Vg.propTypes = { name: Q.string };
|
|
10089
|
+
function Hg(e) {
|
|
9916
10090
|
return e?.renderType && e.renderType !== "auto" ? e.renderType : e?.documentPreview === !0 ? "document" : e?.formatter === "phone" || e?.type === "phone" ? "phone" : e?.displayAs === "tag" ? "tag" : e?.displayAs === "text" ? "text" : "auto";
|
|
9917
10091
|
}
|
|
9918
|
-
function
|
|
10092
|
+
function Ug({ value: e, mode: t, empty: n, style: r }) {
|
|
9919
10093
|
let [i, a] = R(!1), [o, s] = R(0), c = xn(e);
|
|
9920
|
-
if (!c.length) return /* @__PURE__ */ X(
|
|
10094
|
+
if (!c.length) return /* @__PURE__ */ X(Ag, {
|
|
9921
10095
|
strong: !0,
|
|
9922
10096
|
className: "v1-detail-value",
|
|
9923
10097
|
style: r,
|
|
9924
10098
|
children: n
|
|
9925
10099
|
});
|
|
9926
10100
|
let l = c.filter((e) => e.url);
|
|
9927
|
-
return t === "text" ? /* @__PURE__ */ X(
|
|
10101
|
+
return t === "text" ? /* @__PURE__ */ X(Ag, {
|
|
9928
10102
|
strong: !0,
|
|
9929
10103
|
className: "v1-detail-value",
|
|
9930
10104
|
style: r,
|
|
@@ -9947,7 +10121,7 @@ function Rg({ value: e, mode: t, empty: n, style: r }) {
|
|
|
9947
10121
|
download: t === "download" ? e.name || "" : void 0,
|
|
9948
10122
|
title: e.name,
|
|
9949
10123
|
children: [
|
|
9950
|
-
/* @__PURE__ */ X(
|
|
10124
|
+
/* @__PURE__ */ X(Vg, { name: e.name }),
|
|
9951
10125
|
/* @__PURE__ */ X("span", {
|
|
9952
10126
|
className: "v1-file-chip__name",
|
|
9953
10127
|
children: e.name
|
|
@@ -9957,7 +10131,7 @@ function Rg({ value: e, mode: t, empty: n, style: r }) {
|
|
|
9957
10131
|
}, n) : /* @__PURE__ */ Z("span", {
|
|
9958
10132
|
className: "v1-file-chip v1-file-chip--disabled",
|
|
9959
10133
|
title: "No file location",
|
|
9960
|
-
children: [/* @__PURE__ */ X(
|
|
10134
|
+
children: [/* @__PURE__ */ X(Vg, { name: e.name }), /* @__PURE__ */ X("span", {
|
|
9961
10135
|
className: "v1-file-chip__name",
|
|
9962
10136
|
children: e.name
|
|
9963
10137
|
})]
|
|
@@ -9975,7 +10149,7 @@ function Rg({ value: e, mode: t, empty: n, style: r }) {
|
|
|
9975
10149
|
},
|
|
9976
10150
|
title: `Preview ${e.name}`,
|
|
9977
10151
|
children: [
|
|
9978
|
-
/* @__PURE__ */ X(
|
|
10152
|
+
/* @__PURE__ */ X(Vg, { name: e.name }),
|
|
9979
10153
|
/* @__PURE__ */ X("span", {
|
|
9980
10154
|
className: "v1-file-chip__name",
|
|
9981
10155
|
children: e.name
|
|
@@ -9985,7 +10159,7 @@ function Rg({ value: e, mode: t, empty: n, style: r }) {
|
|
|
9985
10159
|
}, t) : /* @__PURE__ */ Z("span", {
|
|
9986
10160
|
className: "v1-file-chip v1-file-chip--disabled",
|
|
9987
10161
|
title: "No preview available for this file",
|
|
9988
|
-
children: [/* @__PURE__ */ X(
|
|
10162
|
+
children: [/* @__PURE__ */ X(Vg, { name: e.name }), /* @__PURE__ */ X("span", {
|
|
9989
10163
|
className: "v1-file-chip__name",
|
|
9990
10164
|
children: e.name
|
|
9991
10165
|
})]
|
|
@@ -9998,22 +10172,22 @@ function Rg({ value: e, mode: t, empty: n, style: r }) {
|
|
|
9998
10172
|
})]
|
|
9999
10173
|
});
|
|
10000
10174
|
}
|
|
10001
|
-
|
|
10175
|
+
Ug.propTypes = {
|
|
10002
10176
|
value: Q.any,
|
|
10003
10177
|
mode: Q.string,
|
|
10004
10178
|
empty: Q.string,
|
|
10005
10179
|
style: Q.object
|
|
10006
10180
|
};
|
|
10007
|
-
function
|
|
10008
|
-
return Number.isNaN(
|
|
10181
|
+
function Wg(e, t = {}) {
|
|
10182
|
+
return Number.isNaN(Eg(e)) ? String(e ?? "") : `${t.currencySymbol ? xg(t.currencySymbol, "") : ""}${Dg(e, { decimals: t.decimals })}`;
|
|
10009
10183
|
}
|
|
10010
|
-
function
|
|
10011
|
-
let { value: n, type: r, prefix: i = "", suffix: a = "", color: o = "", capitalize: s } = e ?? {}, c = e?.renderOptions ?? {}, l = pn(), u = l.emptyPlaceholder, d = l.separator || ", ", f = o ? { color: o } : void 0, p = c.tagColor || o || void 0, m = c.textTransform && c.textTransform !== "none" ? c.textTransform : null, h = (e) => `${i ? `${i} ` : ""}${e}${a ? ` ${a}` : ""}`, g = (e) => m ?
|
|
10184
|
+
function Gg({ field: e, record: t }) {
|
|
10185
|
+
let { value: n, type: r, prefix: i = "", suffix: a = "", color: o = "", capitalize: s } = e ?? {}, c = e?.renderOptions ?? {}, l = pn(), u = l.emptyPlaceholder, d = l.separator || ", ", f = o ? { color: o } : void 0, p = c.tagColor || o || void 0, m = c.textTransform && c.textTransform !== "none" ? c.textTransform : null, h = (e) => `${i ? `${i} ` : ""}${e}${a ? ` ${a}` : ""}`, g = (e) => m ? Lg(e, m) : e, _ = (e) => /* @__PURE__ */ X(Ag, {
|
|
10012
10186
|
strong: !0,
|
|
10013
10187
|
className: "v1-detail-value",
|
|
10014
10188
|
style: f,
|
|
10015
10189
|
children: g(e)
|
|
10016
|
-
}), v = (e) => /* @__PURE__ */ X(
|
|
10190
|
+
}), v = (e) => /* @__PURE__ */ X(Ag, {
|
|
10017
10191
|
strong: !0,
|
|
10018
10192
|
className: "v1-detail-value v1-detail-token",
|
|
10019
10193
|
style: f,
|
|
@@ -10024,20 +10198,20 @@ function Bg({ field: e, record: t }) {
|
|
|
10024
10198
|
color: p,
|
|
10025
10199
|
children: g(e)
|
|
10026
10200
|
})
|
|
10027
|
-
}), b =
|
|
10028
|
-
if (b !== "document" &&
|
|
10201
|
+
}), b = Hg(e);
|
|
10202
|
+
if (b !== "document" && jg(n) && !c.showEmpty) return _(u);
|
|
10029
10203
|
switch (b) {
|
|
10030
|
-
case "document": return /* @__PURE__ */ X(
|
|
10204
|
+
case "document": return /* @__PURE__ */ X(Ug, {
|
|
10031
10205
|
value: n,
|
|
10032
10206
|
mode: c.documentMode || "preview",
|
|
10033
10207
|
empty: u,
|
|
10034
10208
|
style: f
|
|
10035
10209
|
});
|
|
10036
|
-
case "text": return _(h(
|
|
10210
|
+
case "text": return _(h(zg(n, s, d)));
|
|
10037
10211
|
case "tag":
|
|
10038
|
-
case "chip": return y(h(
|
|
10212
|
+
case "chip": return y(h(zg(n, s, d)));
|
|
10039
10213
|
case "badge": {
|
|
10040
|
-
let e = g(
|
|
10214
|
+
let e = g(zg(n, s, d));
|
|
10041
10215
|
return /* @__PURE__ */ X("span", {
|
|
10042
10216
|
className: "v1-detail-value",
|
|
10043
10217
|
children: /* @__PURE__ */ X(Mr, {
|
|
@@ -10049,7 +10223,7 @@ function Bg({ field: e, record: t }) {
|
|
|
10049
10223
|
case "tags":
|
|
10050
10224
|
case "multitag":
|
|
10051
10225
|
case "skills": {
|
|
10052
|
-
let e =
|
|
10226
|
+
let e = Bg(n, s, d);
|
|
10053
10227
|
return e.length ? /* @__PURE__ */ X("span", {
|
|
10054
10228
|
className: "v1-detail-value v1-detail-tags",
|
|
10055
10229
|
children: e.map((e, t) => /* @__PURE__ */ X(K, {
|
|
@@ -10059,7 +10233,7 @@ function Bg({ field: e, record: t }) {
|
|
|
10059
10233
|
}) : _(u);
|
|
10060
10234
|
}
|
|
10061
10235
|
case "link": {
|
|
10062
|
-
let e =
|
|
10236
|
+
let e = zg(n, !1, d);
|
|
10063
10237
|
return /* @__PURE__ */ X("a", {
|
|
10064
10238
|
className: "v1-detail-value v1-doc-link",
|
|
10065
10239
|
href: /^https?:\/\//i.test(e) ? e : zt(e) || e,
|
|
@@ -10069,7 +10243,7 @@ function Bg({ field: e, record: t }) {
|
|
|
10069
10243
|
});
|
|
10070
10244
|
}
|
|
10071
10245
|
case "email": {
|
|
10072
|
-
let e =
|
|
10246
|
+
let e = zg(n, !1, d);
|
|
10073
10247
|
return /* @__PURE__ */ Z("a", {
|
|
10074
10248
|
className: "v1-detail-value",
|
|
10075
10249
|
href: `mailto:${e}`,
|
|
@@ -10081,7 +10255,7 @@ function Bg({ field: e, record: t }) {
|
|
|
10081
10255
|
});
|
|
10082
10256
|
}
|
|
10083
10257
|
case "phone": {
|
|
10084
|
-
let r =
|
|
10258
|
+
let r = zg(n, !1, d), i = eg(e, r, t);
|
|
10085
10259
|
return /* @__PURE__ */ Z("a", {
|
|
10086
10260
|
className: "v1-detail-value v1-detail-token",
|
|
10087
10261
|
href: `tel:${r.replace(/[^0-9+]/g, "")}`,
|
|
@@ -10094,11 +10268,11 @@ function Bg({ field: e, record: t }) {
|
|
|
10094
10268
|
}
|
|
10095
10269
|
case "date": {
|
|
10096
10270
|
let e = _o(n), t = c.dateFormat || l.dateFormat;
|
|
10097
|
-
return v(h(e.isValid() ? e.format(t) :
|
|
10271
|
+
return v(h(e.isValid() ? e.format(t) : zg(n, s, d)));
|
|
10098
10272
|
}
|
|
10099
|
-
case "currency": return v(h(
|
|
10273
|
+
case "currency": return v(h(Wg(n, c)));
|
|
10100
10274
|
case "budget": {
|
|
10101
|
-
let e =
|
|
10275
|
+
let e = Wg(n, c), t = c.unit ? String(c.unit) : "", r = t && c.budgetUnitMap ? c.budgetUnitMap[t] ?? t : t;
|
|
10102
10276
|
return v(`${e}${r ? `/${r}` : ""}`);
|
|
10103
10277
|
}
|
|
10104
10278
|
case "html": return /* @__PURE__ */ X("span", {
|
|
@@ -10108,15 +10282,15 @@ function Bg({ field: e, record: t }) {
|
|
|
10108
10282
|
});
|
|
10109
10283
|
default: break;
|
|
10110
10284
|
}
|
|
10111
|
-
if (
|
|
10112
|
-
let x = r === "date", S = typeof n == "string" &&
|
|
10285
|
+
if (jg(n)) return _(u);
|
|
10286
|
+
let x = r === "date", S = typeof n == "string" && Mg.test(n.trim());
|
|
10113
10287
|
if (x || S) {
|
|
10114
10288
|
let e = _o(n);
|
|
10115
10289
|
if (e.isValid()) return _(h(e.format(l.dateFormat)));
|
|
10116
10290
|
}
|
|
10117
|
-
if (
|
|
10291
|
+
if (Rg(n)) return _(h(Fg(n.value ?? n.id, s)));
|
|
10118
10292
|
if (Array.isArray(n)) {
|
|
10119
|
-
let e =
|
|
10293
|
+
let e = Bg(n, s, d);
|
|
10120
10294
|
return e.length ? /* @__PURE__ */ X("span", {
|
|
10121
10295
|
className: "v1-detail-value v1-detail-tags",
|
|
10122
10296
|
children: e.map((e, t) => /* @__PURE__ */ X(K, {
|
|
@@ -10125,29 +10299,29 @@ function Bg({ field: e, record: t }) {
|
|
|
10125
10299
|
}, t))
|
|
10126
10300
|
}) : _(u);
|
|
10127
10301
|
}
|
|
10128
|
-
return _(typeof n == "boolean" ? n ? l.booleanTrueLabel : l.booleanFalseLabel : typeof n == "object" ?
|
|
10302
|
+
return _(typeof n == "boolean" ? n ? l.booleanTrueLabel : l.booleanFalseLabel : typeof n == "object" ? Ig(n, s, d) || u : h(Fg(n, s)));
|
|
10129
10303
|
}
|
|
10130
|
-
|
|
10304
|
+
Gg.propTypes = {
|
|
10131
10305
|
field: Q.object,
|
|
10132
10306
|
record: Q.object
|
|
10133
10307
|
};
|
|
10134
10308
|
//#endregion
|
|
10135
10309
|
//#region src/components/DetailViewV1.jsx
|
|
10136
|
-
var { Text:
|
|
10310
|
+
var { Text: Kg } = ci, qg = [
|
|
10137
10311
|
/* @__PURE__ */ X(ro, {}),
|
|
10138
10312
|
/* @__PURE__ */ X(Gi, {}),
|
|
10139
10313
|
/* @__PURE__ */ X(Ua, {}),
|
|
10140
10314
|
/* @__PURE__ */ X(da, {}),
|
|
10141
10315
|
/* @__PURE__ */ X(ra, {})
|
|
10142
|
-
],
|
|
10316
|
+
], Jg = (e) => e === !0 || e === 1 || e === "1", Yg = [
|
|
10143
10317
|
"jobDescription",
|
|
10144
10318
|
"description",
|
|
10145
10319
|
"rawDescription",
|
|
10146
10320
|
"jobDescriptionText"
|
|
10147
10321
|
];
|
|
10148
|
-
function
|
|
10322
|
+
function Xg(e = []) {
|
|
10149
10323
|
for (let t of e) for (let e of t.fields ?? []) {
|
|
10150
|
-
let t =
|
|
10324
|
+
let t = Yg.includes(e.field), n = /description/i.test(e.label ?? "");
|
|
10151
10325
|
if ((t || n) && typeof e.value == "string" && e.value.trim()) return {
|
|
10152
10326
|
...e,
|
|
10153
10327
|
key: e.field,
|
|
@@ -10156,36 +10330,36 @@ function Gg(e = []) {
|
|
|
10156
10330
|
}
|
|
10157
10331
|
return null;
|
|
10158
10332
|
}
|
|
10159
|
-
function
|
|
10160
|
-
let t =
|
|
10161
|
-
return [...e].filter((e) => !
|
|
10333
|
+
function Zg(e = []) {
|
|
10334
|
+
let t = ng(e);
|
|
10335
|
+
return [...e].filter((e) => !Jg(e.hideGroup) && !Jg(e.hideGroupInDetail)).filter((e) => rg(e, t)).sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0)).map((e) => ({
|
|
10162
10336
|
...e,
|
|
10163
|
-
fields: [...e.fields ?? []].filter((e) => String(e.field ?? "").trim() !== "" && (e.show === void 0 ||
|
|
10337
|
+
fields: [...e.fields ?? []].filter((e) => String(e.field ?? "").trim() !== "" && (e.show === void 0 || Jg(e.show)) && rg(e, t)).map((e) => ({
|
|
10164
10338
|
...e,
|
|
10165
|
-
label:
|
|
10339
|
+
label: ag(e, t)
|
|
10166
10340
|
})).sort((e, t) => Number(e.order ?? 0) - Number(t.order ?? 0))
|
|
10167
10341
|
})).filter((e) => e.fields.length);
|
|
10168
10342
|
}
|
|
10169
|
-
function
|
|
10343
|
+
function Qg(e) {
|
|
10170
10344
|
let t = e?.data ?? e;
|
|
10171
10345
|
return Array.isArray(t) ? t : t?.data ?? t?.rows ?? t?.records ?? t?.items ?? t?.list ?? [];
|
|
10172
10346
|
}
|
|
10173
|
-
function
|
|
10347
|
+
function $g(e, ...t) {
|
|
10174
10348
|
for (let n of t) {
|
|
10175
10349
|
let t = String(n).split(".").reduce((e, t) => e?.[t], e);
|
|
10176
10350
|
if (t != null && t !== "") return t;
|
|
10177
10351
|
}
|
|
10178
10352
|
return "";
|
|
10179
10353
|
}
|
|
10180
|
-
function
|
|
10181
|
-
let t = String(
|
|
10354
|
+
function e_(e) {
|
|
10355
|
+
let t = String($g(e, "isDeleted", "deleted")).toLowerCase(), n = String($g(e, "assignmentStatus", "status")).toLowerCase();
|
|
10182
10356
|
return t !== "true" && t !== "1" && ![
|
|
10183
10357
|
"removed",
|
|
10184
10358
|
"inactive",
|
|
10185
10359
|
"deleted"
|
|
10186
10360
|
].includes(n);
|
|
10187
10361
|
}
|
|
10188
|
-
function
|
|
10362
|
+
function t_(e = [], t) {
|
|
10189
10363
|
let n = {
|
|
10190
10364
|
candidateIds: /* @__PURE__ */ new Set(),
|
|
10191
10365
|
engagementIds: new Set([String(t ?? "")].filter(Boolean))
|
|
@@ -10213,29 +10387,29 @@ function Xg(e = [], t) {
|
|
|
10213
10387
|
].includes(e?.field) && e.value && n.candidateIds.add(String(e.value?.id ?? e.value?.value ?? e.value)), ["workforceEngagementId", "engagementId"].includes(e?.field) && e.value && n.engagementIds.add(String(e.value?.id ?? e.value?.value ?? e.value));
|
|
10214
10388
|
return n;
|
|
10215
10389
|
}
|
|
10216
|
-
async function
|
|
10217
|
-
let t =
|
|
10390
|
+
async function n_(e) {
|
|
10391
|
+
let t = $g(e, "batchName", "batch_name", "batch.name", "batch.title");
|
|
10218
10392
|
if (t) return String(t);
|
|
10219
|
-
let n = String(
|
|
10393
|
+
let n = String($g(e, "batchId", "batch_id"));
|
|
10220
10394
|
if (!n) return "";
|
|
10221
10395
|
for (let e of ["batches", "batch"]) try {
|
|
10222
|
-
let t =
|
|
10396
|
+
let t = $g(Qg(await ne(e, 500, 0)).find((e) => String($g(e, "_id", "id", "batchId", "batch_id")) === n), "batchName", "batch_name", "name", "title");
|
|
10223
10397
|
if (t) return String(t);
|
|
10224
10398
|
} catch {}
|
|
10225
10399
|
return n;
|
|
10226
10400
|
}
|
|
10227
|
-
async function
|
|
10401
|
+
async function r_(e, t, n) {
|
|
10228
10402
|
let r = String(n ?? "").trim().toLowerCase();
|
|
10229
10403
|
if (![
|
|
10230
10404
|
"candidate",
|
|
10231
10405
|
"candidates",
|
|
10232
10406
|
"onboarding"
|
|
10233
10407
|
].includes(r)) return e;
|
|
10234
|
-
let { candidateIds: i, engagementIds: a } =
|
|
10408
|
+
let { candidateIds: i, engagementIds: a } = t_(e, t);
|
|
10235
10409
|
if (!i.size && !a.size) return e;
|
|
10236
|
-
let o =
|
|
10410
|
+
let o = Qg(await ne("batchCandidates", 1e3, 0)).filter(e_).find((e) => i.has(String($g(e, "candidateId", "candidate_id"))) || a.has(String($g(e, "workforceEngagementId", "engagementId"))));
|
|
10237
10411
|
if (!o) return e;
|
|
10238
|
-
let s = await
|
|
10412
|
+
let s = await n_(o);
|
|
10239
10413
|
return s ? [...e, {
|
|
10240
10414
|
id: "candidate-batch-summary",
|
|
10241
10415
|
name: "candidateBatch",
|
|
@@ -10251,21 +10425,21 @@ async function Qg(e, t, n) {
|
|
|
10251
10425
|
}]
|
|
10252
10426
|
}] : e;
|
|
10253
10427
|
}
|
|
10254
|
-
function
|
|
10428
|
+
function i_({ icon: e, title: t }) {
|
|
10255
10429
|
return /* @__PURE__ */ Z(W, {
|
|
10256
10430
|
size: 10,
|
|
10257
10431
|
align: "center",
|
|
10258
10432
|
children: [/* @__PURE__ */ X("div", {
|
|
10259
10433
|
className: "v1-section-icon-box",
|
|
10260
10434
|
children: e
|
|
10261
|
-
}), /* @__PURE__ */ X(
|
|
10435
|
+
}), /* @__PURE__ */ X(Kg, {
|
|
10262
10436
|
strong: !0,
|
|
10263
10437
|
className: "v1-section-label",
|
|
10264
10438
|
children: t
|
|
10265
10439
|
})]
|
|
10266
10440
|
});
|
|
10267
10441
|
}
|
|
10268
|
-
function
|
|
10442
|
+
function a_({ value: e }) {
|
|
10269
10443
|
let t = String(e ?? "");
|
|
10270
10444
|
return /<[a-z][\s\S]*>/i.test(t) ? /* @__PURE__ */ X("div", {
|
|
10271
10445
|
className: "v1-detail-value",
|
|
@@ -10283,7 +10457,7 @@ function e_({ value: e }) {
|
|
|
10283
10457
|
children: t
|
|
10284
10458
|
});
|
|
10285
10459
|
}
|
|
10286
|
-
function
|
|
10460
|
+
function o_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r }) {
|
|
10287
10461
|
let [i, s] = R([]), [c, l] = R(!!e), [u, d] = R(""), [f, p] = R(!1), [m, h] = R(""), [g, _] = R(!1), [v, y] = R([]);
|
|
10288
10462
|
I(() => {
|
|
10289
10463
|
if (!e || !t) {
|
|
@@ -10340,7 +10514,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10340
10514
|
module: e,
|
|
10341
10515
|
id: t,
|
|
10342
10516
|
view: "detail"
|
|
10343
|
-
}), Re()]), i = await
|
|
10517
|
+
}), Re()]), i = await r_(Array.isArray(r) ? r : [], t, e);
|
|
10344
10518
|
n || s(i);
|
|
10345
10519
|
} catch (t) {
|
|
10346
10520
|
console.error(`Failed to fetch ${e} detail fields:`, t), n || d(t?.message || "Failed to fetch detail fields");
|
|
@@ -10356,10 +10530,10 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10356
10530
|
t,
|
|
10357
10531
|
n
|
|
10358
10532
|
]);
|
|
10359
|
-
let E = L(() =>
|
|
10533
|
+
let E = L(() => Zg(i), [i]), D = L(() => {
|
|
10360
10534
|
let e = /* @__PURE__ */ new Set();
|
|
10361
10535
|
return i.forEach((t) => {
|
|
10362
|
-
|
|
10536
|
+
Jg(t.appendHistory) && [t.historyField, ...t.historyFields || []].filter(Boolean).forEach((t) => e.add(t));
|
|
10363
10537
|
}), e;
|
|
10364
10538
|
}, [i]);
|
|
10365
10539
|
I(() => {
|
|
@@ -10402,22 +10576,22 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10402
10576
|
let a = r.historyLabelFrom?.[e];
|
|
10403
10577
|
if (a) {
|
|
10404
10578
|
let t = (r.fields ?? []).find((e) => e?.field === a);
|
|
10405
|
-
if (t) return
|
|
10579
|
+
if (t) return ag(t, n) || O[e] || e;
|
|
10406
10580
|
}
|
|
10407
10581
|
}
|
|
10408
|
-
for (let i of t ?? []) for (let t of i?.fields ?? []) if (String(t?.field ?? "").startsWith(r)) return
|
|
10582
|
+
for (let i of t ?? []) for (let t of i?.fields ?? []) if (String(t?.field ?? "").startsWith(r)) return ag(t, n) || O[e] || e;
|
|
10409
10583
|
return O[e] || e;
|
|
10410
10584
|
}, A = (e, t) => {
|
|
10411
|
-
let { amount: n, currency: r, unit: a } =
|
|
10585
|
+
let { amount: n, currency: r, unit: a } = yg(e, t, i), o = e?.timestamp?.$date ?? e?.timestamp ?? e?.updatedAt?.$date ?? e?.updatedAt ?? e?.changedAt?.$date ?? e?.changedAt, s = e?.updatedBy ?? e?.changedBy, c = n == null || n === "" ? null : Number(n);
|
|
10412
10586
|
return {
|
|
10413
|
-
amount: c != null && !Number.isNaN(c) ? `${
|
|
10414
|
-
unit:
|
|
10587
|
+
amount: c != null && !Number.isNaN(c) ? `${xg(r)}${Dg(c)}` : "—",
|
|
10588
|
+
unit: Cg(a),
|
|
10415
10589
|
when: o && _o(o).isValid() ? _o(o).format(`${pn().dateFormat} · h:mm A`) : "",
|
|
10416
10590
|
by: s == null ? "" : S[String(s)] || w[String(s)] || ""
|
|
10417
10591
|
};
|
|
10418
10592
|
}, j = L(() => {
|
|
10419
10593
|
if (!b) return [];
|
|
10420
|
-
let e =
|
|
10594
|
+
let e = ng(i), t = [];
|
|
10421
10595
|
return D.forEach((n) => {
|
|
10422
10596
|
let r = b[n];
|
|
10423
10597
|
if (!Array.isArray(r) || r.length === 0) return;
|
|
@@ -10437,7 +10611,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10437
10611
|
]), M = L(() => {
|
|
10438
10612
|
let e = new Set(j.map((e) => e.key));
|
|
10439
10613
|
return e.size ? E.map((t) => {
|
|
10440
|
-
if (!
|
|
10614
|
+
if (!Jg(t.appendHistory)) return t;
|
|
10441
10615
|
let n = [t.historyField, ...t.historyFields || []].filter((t) => t && e.has(t));
|
|
10442
10616
|
return n.length ? {
|
|
10443
10617
|
...t,
|
|
@@ -10445,9 +10619,9 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10445
10619
|
} : t;
|
|
10446
10620
|
}).filter((e) => e.fields.length) : E;
|
|
10447
10621
|
}, [E, j]), N = L(() => {
|
|
10448
|
-
let e = new Set(j.map((e) => e.key)), t = i.find((t) =>
|
|
10622
|
+
let e = new Set(j.map((e) => e.key)), t = i.find((t) => Jg(t.appendHistory) && [t.historyField, ...t.historyFields || []].some((t) => t && e.has(t)));
|
|
10449
10623
|
return t?.label ?? t?.name ?? "Rate Details";
|
|
10450
|
-
}, [i, j]), P = e === "job", F = L(() => P ?
|
|
10624
|
+
}, [i, j]), P = e === "job", F = L(() => P ? Xg(i) : null, [P, i]), ee = () => {
|
|
10451
10625
|
p(!1), h("");
|
|
10452
10626
|
}, te = async () => {
|
|
10453
10627
|
if (!m.trim()) {
|
|
@@ -10456,7 +10630,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10456
10630
|
}
|
|
10457
10631
|
_(!0);
|
|
10458
10632
|
try {
|
|
10459
|
-
await
|
|
10633
|
+
await gh(t, m.trim()), p(!1), h(""), l(!0);
|
|
10460
10634
|
let n = await xl({
|
|
10461
10635
|
module: e,
|
|
10462
10636
|
id: t,
|
|
@@ -10473,7 +10647,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10473
10647
|
if (Number.isFinite(t) && t > 0) return Math.max(1, Math.min(3, Math.round(t / 8)));
|
|
10474
10648
|
let n = typeof e.value == "string" ? e.value : "";
|
|
10475
10649
|
return e.renderType === "document" || e.type === "text-editor" || n.length > 120 ? 3 : /\s(?:·|-|–|\/)\s/.test(n) && n.length >= 16 ? 2 : 1;
|
|
10476
|
-
}, re = (e) => e.renderType === "document" || e.type === "text-editor" ? !0 : (typeof e.value == "string" ? e.value : "").length > 60, ie = L(() =>
|
|
10650
|
+
}, re = (e) => e.renderType === "document" || e.type === "text-editor" ? !0 : (typeof e.value == "string" ? e.value : "").length > 60, ie = L(() => ng(i), [i]), ae = (e, t = "", n = ie) => {
|
|
10477
10651
|
let r = e.label ?? e.field, i = re(e), a = typeof e.value == "string" ? e.value : void 0;
|
|
10478
10652
|
return /* @__PURE__ */ X("div", {
|
|
10479
10653
|
className: `v1-detail-cell${i ? " v1-detail-cell--wrap" : ""}`,
|
|
@@ -10481,12 +10655,12 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10481
10655
|
children: /* @__PURE__ */ Z("div", {
|
|
10482
10656
|
className: "v1-detail-field",
|
|
10483
10657
|
title: !i && a ? `${r}: ${a}` : void 0,
|
|
10484
|
-
children: [/* @__PURE__ */ X(
|
|
10658
|
+
children: [/* @__PURE__ */ X(Kg, {
|
|
10485
10659
|
type: "secondary",
|
|
10486
10660
|
className: "v1-detail-label",
|
|
10487
10661
|
title: r,
|
|
10488
10662
|
children: r
|
|
10489
|
-
}), /* @__PURE__ */ X(
|
|
10663
|
+
}), /* @__PURE__ */ X(Gg, {
|
|
10490
10664
|
field: e,
|
|
10491
10665
|
record: n
|
|
10492
10666
|
})]
|
|
@@ -10500,7 +10674,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10500
10674
|
let t = _o(r);
|
|
10501
10675
|
if (t.isValid()) return t.format(e?.renderOptions?.dateFormat || pn().dateFormat);
|
|
10502
10676
|
}
|
|
10503
|
-
return (e?.formatter === "phone" || e?.type === "phone" || e?.renderType === "phone") &&
|
|
10677
|
+
return (e?.formatter === "phone" || e?.type === "phone" || e?.renderType === "phone") && eg(e, r, n) || r;
|
|
10504
10678
|
}, ce = (e, t) => {
|
|
10505
10679
|
let n = String(e?.label ?? "").trim();
|
|
10506
10680
|
if (!n) return "";
|
|
@@ -10518,12 +10692,12 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10518
10692
|
})), o = a.filter(({ cell: e }) => fe(e)).map(({ cell: e }) => ({
|
|
10519
10693
|
...e,
|
|
10520
10694
|
renderType: "document"
|
|
10521
|
-
})).filter((e) =>
|
|
10695
|
+
})).filter((e) => Hh(e.value)), s = typeof t.combineLabel == "string" && t.combineLabel.trim() ? t.combineLabel : t.label ?? t.field, c = a.filter(({ cell: e }) => !fe(e)).filter(({ cell: e }) => !Kh(e, e.value)).map(({ field: e, cell: t }) => ({
|
|
10522
10696
|
key: e.field,
|
|
10523
10697
|
label: ce(e, s),
|
|
10524
10698
|
text: se(e, t.value, i)
|
|
10525
10699
|
})).filter((e) => e.text !== "");
|
|
10526
|
-
if (!c.length && !o.length &&
|
|
10700
|
+
if (!c.length && !o.length && Kh(t, void 0)) return null;
|
|
10527
10701
|
let l = c.map((e) => `${e.label ? `${e.label} ` : ""}${e.text}`).join(" · "), u = ne({
|
|
10528
10702
|
detailCol: t.detailCol,
|
|
10529
10703
|
value: l
|
|
@@ -10534,7 +10708,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10534
10708
|
children: /* @__PURE__ */ Z("div", {
|
|
10535
10709
|
className: "v1-detail-field",
|
|
10536
10710
|
children: [
|
|
10537
|
-
/* @__PURE__ */ X(
|
|
10711
|
+
/* @__PURE__ */ X(Kg, {
|
|
10538
10712
|
type: "secondary",
|
|
10539
10713
|
className: "v1-detail-label",
|
|
10540
10714
|
title: s,
|
|
@@ -10558,7 +10732,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10558
10732
|
]
|
|
10559
10733
|
}, `${e.key}-part`)) : "—"
|
|
10560
10734
|
}),
|
|
10561
|
-
o.map((e) => /* @__PURE__ */ X(
|
|
10735
|
+
o.map((e) => /* @__PURE__ */ X(Gg, { field: e }, `${e.field}-doc`))
|
|
10562
10736
|
]
|
|
10563
10737
|
})
|
|
10564
10738
|
}, `${t.field}-merged${r}`);
|
|
@@ -10577,7 +10751,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10577
10751
|
}
|
|
10578
10752
|
}
|
|
10579
10753
|
let c = t(o);
|
|
10580
|
-
|
|
10754
|
+
Kh(c, c.value) || a.push(ae(c, n, r));
|
|
10581
10755
|
}), a;
|
|
10582
10756
|
}, de = L(() => {
|
|
10583
10757
|
let e = {};
|
|
@@ -10602,7 +10776,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10602
10776
|
return t.forEach(i), (Array.isArray(e) ? e : [e]).forEach(i), r;
|
|
10603
10777
|
}, _e = (e) => xn(e).map(me).filter(Boolean), ve = (e) => {
|
|
10604
10778
|
let t = (e.validations ?? []).find((e) => e?.type === "maxFiles");
|
|
10605
|
-
return t ? Math.max(1, Number(t.value ?? 1)) :
|
|
10779
|
+
return t ? Math.max(1, Number(t.value ?? 1)) : Jg(e.multiple) ? Math.max(1, Number(e.maxCount ?? 5)) : Math.max(1, Number(e.maxCount ?? 1));
|
|
10606
10780
|
}, ye = (e, t, n) => {
|
|
10607
10781
|
let r = ve(e);
|
|
10608
10782
|
if (t.length <= r) return t;
|
|
@@ -10637,8 +10811,8 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10637
10811
|
}), /* @__PURE__ */ Z(Pr, {
|
|
10638
10812
|
size: "small",
|
|
10639
10813
|
className: "v1-card v1-detail-card",
|
|
10640
|
-
title: /* @__PURE__ */ X(
|
|
10641
|
-
icon:
|
|
10814
|
+
title: /* @__PURE__ */ X(i_, {
|
|
10815
|
+
icon: qg[t % qg.length],
|
|
10642
10816
|
title: e.label ?? e.name ?? "Details"
|
|
10643
10817
|
}),
|
|
10644
10818
|
children: [i.length === 0 && o.length === 0 ? /* @__PURE__ */ X(Vr, {
|
|
@@ -10646,7 +10820,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10646
10820
|
description: `No ${e.label ?? "records"} added`
|
|
10647
10821
|
}) : i.map((t, r) => /* @__PURE__ */ Z("div", {
|
|
10648
10822
|
className: "v1-detail-addrow-item",
|
|
10649
|
-
children: [i.length > 1 && /* @__PURE__ */ Z(
|
|
10823
|
+
children: [i.length > 1 && /* @__PURE__ */ Z(Kg, {
|
|
10650
10824
|
strong: !0,
|
|
10651
10825
|
className: "v1-detail-addrow-index",
|
|
10652
10826
|
children: [
|
|
@@ -10677,8 +10851,8 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10677
10851
|
return r.length ? e.addRow ? Se(e, t, r) : /* @__PURE__ */ X(Pr, {
|
|
10678
10852
|
size: "small",
|
|
10679
10853
|
className: "v1-card v1-detail-card",
|
|
10680
|
-
title: /* @__PURE__ */ X(
|
|
10681
|
-
icon:
|
|
10854
|
+
title: /* @__PURE__ */ X(i_, {
|
|
10855
|
+
icon: qg[t % qg.length],
|
|
10682
10856
|
title: e.label ?? e.name ?? "Details"
|
|
10683
10857
|
}),
|
|
10684
10858
|
children: /* @__PURE__ */ X("div", {
|
|
@@ -10689,7 +10863,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10689
10863
|
}, we = () => /* @__PURE__ */ X(Pr, {
|
|
10690
10864
|
size: "small",
|
|
10691
10865
|
className: "v1-card v1-detail-card",
|
|
10692
|
-
title: /* @__PURE__ */ X(
|
|
10866
|
+
title: /* @__PURE__ */ X(i_, {
|
|
10693
10867
|
icon: /* @__PURE__ */ X(oa, {}),
|
|
10694
10868
|
title: N
|
|
10695
10869
|
}),
|
|
@@ -10736,7 +10910,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10736
10910
|
})]
|
|
10737
10911
|
}, e.key))
|
|
10738
10912
|
}, "rate-details-history"), Te = L(() => {
|
|
10739
|
-
let e = i.find((e) =>
|
|
10913
|
+
let e = i.find((e) => Jg(e.appendHistory) && e.historyAfterGroup);
|
|
10740
10914
|
return String(e?.historyAfterGroup ?? "").trim().toLowerCase();
|
|
10741
10915
|
}, [i]), Ee = (e) => Te ? String(e.name ?? "").trim().toLowerCase() === Te : /current_employer|employer_details/i.test(e.name || "") || (e.fields || []).some((e) => e.field === "employerId");
|
|
10742
10916
|
return /* @__PURE__ */ X(ti, {
|
|
@@ -10761,7 +10935,7 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10761
10935
|
P && F?.value && /* @__PURE__ */ X(Pr, {
|
|
10762
10936
|
size: "small",
|
|
10763
10937
|
className: "v1-card v1-detail-card",
|
|
10764
|
-
title: /* @__PURE__ */ X(
|
|
10938
|
+
title: /* @__PURE__ */ X(i_, {
|
|
10765
10939
|
icon: /* @__PURE__ */ X(ra, {}),
|
|
10766
10940
|
title: "Description"
|
|
10767
10941
|
}),
|
|
@@ -10810,184 +10984,13 @@ function t_({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
|
|
|
10810
10984
|
children: "Cancel"
|
|
10811
10985
|
})]
|
|
10812
10986
|
})]
|
|
10813
|
-
}) : /* @__PURE__ */ X(
|
|
10987
|
+
}) : /* @__PURE__ */ X(a_, { value: F.value })
|
|
10814
10988
|
})
|
|
10815
10989
|
]
|
|
10816
10990
|
})
|
|
10817
10991
|
});
|
|
10818
10992
|
}
|
|
10819
10993
|
//#endregion
|
|
10820
|
-
//#region src/components/detail/NotesTab.jsx
|
|
10821
|
-
function n_(e) {
|
|
10822
|
-
let t = e?.user_name ?? e?.userName ?? e?.username, n = `${e?.first_name ?? e?.firstName ?? ""} ${e?.last_name ?? e?.lastName ?? ""}`.trim(), r = e?.email ?? "", i = t ?? n.replace(/\s+/g, "") ?? r ?? String(e?.user_id ?? e?.id ?? ""), a = [
|
|
10823
|
-
t,
|
|
10824
|
-
n,
|
|
10825
|
-
r
|
|
10826
|
-
].filter(Boolean).join(" - ") || String(i);
|
|
10827
|
-
return {
|
|
10828
|
-
value: String(i),
|
|
10829
|
-
label: a
|
|
10830
|
-
};
|
|
10831
|
-
}
|
|
10832
|
-
var r_ = [{
|
|
10833
|
-
id: "n1",
|
|
10834
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10835
|
-
author: "You",
|
|
10836
|
-
notes: "Shortlisted 3 candidates, sharing profiles with @Hiring Manager today."
|
|
10837
|
-
}];
|
|
10838
|
-
function i_(e = "") {
|
|
10839
|
-
return e.split(/(\s+)/).map((e, t) => e.startsWith("@") && e.length > 1 ? /* @__PURE__ */ X("span", {
|
|
10840
|
-
className: "znx-an-mention",
|
|
10841
|
-
children: e
|
|
10842
|
-
}, t) : /* @__PURE__ */ X("span", { children: e }, t));
|
|
10843
|
-
}
|
|
10844
|
-
function a_({ notes: e, users: t = [], onAddNote: n }) {
|
|
10845
|
-
let [r] = V.useForm(), [i, a] = R(() => Array.isArray(e) ? e : r_), [o, s] = R(!1), [c, l] = R(null), [u, d] = R(!1), f = Or(null), p = Array.isArray(e) ? e : i, m = L(() => t.map((e) => ({
|
|
10846
|
-
value: e.display ?? e.value,
|
|
10847
|
-
label: e.display ?? e.label
|
|
10848
|
-
})), [t]), h = c ?? m;
|
|
10849
|
-
return /* @__PURE__ */ Z("div", {
|
|
10850
|
-
className: "znx-an-body",
|
|
10851
|
-
children: [/* @__PURE__ */ Z(V, {
|
|
10852
|
-
form: r,
|
|
10853
|
-
onFinish: async ({ note: e }) => {
|
|
10854
|
-
let t = (e ?? "").trim();
|
|
10855
|
-
if (t) {
|
|
10856
|
-
s(!0);
|
|
10857
|
-
try {
|
|
10858
|
-
n ? await n(t) : a((e) => [{
|
|
10859
|
-
id: `local-${Date.now()}`,
|
|
10860
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10861
|
-
author: "You",
|
|
10862
|
-
notes: t
|
|
10863
|
-
}, ...e]), r.resetFields(), J.success("Notes added successfully");
|
|
10864
|
-
} catch {
|
|
10865
|
-
J.error("Something went wrong, please try again.");
|
|
10866
|
-
} finally {
|
|
10867
|
-
s(!1);
|
|
10868
|
-
}
|
|
10869
|
-
}
|
|
10870
|
-
},
|
|
10871
|
-
className: "znx-an-composer",
|
|
10872
|
-
children: [/* @__PURE__ */ X(V.Item, {
|
|
10873
|
-
name: "note",
|
|
10874
|
-
rules: [{
|
|
10875
|
-
required: !0,
|
|
10876
|
-
message: "Notes is required"
|
|
10877
|
-
}],
|
|
10878
|
-
style: { marginBottom: 0 },
|
|
10879
|
-
children: /* @__PURE__ */ X(Gr, {
|
|
10880
|
-
rows: 3,
|
|
10881
|
-
prefix: "@",
|
|
10882
|
-
options: h,
|
|
10883
|
-
loading: u,
|
|
10884
|
-
filterOption: !1,
|
|
10885
|
-
onSearch: (e) => {
|
|
10886
|
-
clearTimeout(f.current), d(!0), f.current = setTimeout(() => {
|
|
10887
|
-
Cl(e).then((e) => {
|
|
10888
|
-
l((Array.isArray(e) ? e : e?.items ?? e?.list ?? e?.data ?? []).map(n_));
|
|
10889
|
-
}).catch(() => l([])).finally(() => d(!1));
|
|
10890
|
-
}, 300);
|
|
10891
|
-
},
|
|
10892
|
-
placeholder: "Add your notes on the job, use '@' to mention"
|
|
10893
|
-
})
|
|
10894
|
-
}), /* @__PURE__ */ X("div", {
|
|
10895
|
-
className: "znx-an-composer-actions",
|
|
10896
|
-
children: /* @__PURE__ */ X(z, {
|
|
10897
|
-
type: "primary",
|
|
10898
|
-
size: "small",
|
|
10899
|
-
htmlType: "submit",
|
|
10900
|
-
loading: o,
|
|
10901
|
-
children: "Post"
|
|
10902
|
-
})
|
|
10903
|
-
})]
|
|
10904
|
-
}), /* @__PURE__ */ X("div", {
|
|
10905
|
-
className: "znx-an-scroll",
|
|
10906
|
-
children: /* @__PURE__ */ X(Im, {
|
|
10907
|
-
rows: p,
|
|
10908
|
-
getTime: (e) => e.createdAt ?? e.activityTime,
|
|
10909
|
-
getKey: (e, t) => e.id ?? e._id ?? t,
|
|
10910
|
-
getAuthor: (e) => e.author,
|
|
10911
|
-
emptyText: "No notes here.",
|
|
10912
|
-
renderBody: (e) => /* @__PURE__ */ X("div", {
|
|
10913
|
-
className: "znx-an-comment",
|
|
10914
|
-
children: i_(e.notes)
|
|
10915
|
-
})
|
|
10916
|
-
})
|
|
10917
|
-
})]
|
|
10918
|
-
});
|
|
10919
|
-
}
|
|
10920
|
-
//#endregion
|
|
10921
|
-
//#region src/components/detail/ActivityNotesCard.jsx
|
|
10922
|
-
function o_({ moduleName: e, id: t, users: n = [], showActivity: r = !0, showNotes: i = !0, defaultActiveKey: a = "activity", refreshKey: o = 0 }) {
|
|
10923
|
-
let [s, c] = R(null), [l, u] = R(null);
|
|
10924
|
-
I(() => {
|
|
10925
|
-
if (!e || !t) return;
|
|
10926
|
-
let n = !1;
|
|
10927
|
-
async function a() {
|
|
10928
|
-
let [a, o] = await Promise.all([r ? Me(e, t).catch(() => []) : Promise.resolve(null), i ? F(t).catch(() => []) : Promise.resolve(null)]);
|
|
10929
|
-
n || (c(a), u(o));
|
|
10930
|
-
}
|
|
10931
|
-
return a(), () => {
|
|
10932
|
-
n = !0;
|
|
10933
|
-
};
|
|
10934
|
-
}, [
|
|
10935
|
-
e,
|
|
10936
|
-
t,
|
|
10937
|
-
r,
|
|
10938
|
-
i,
|
|
10939
|
-
o
|
|
10940
|
-
]);
|
|
10941
|
-
let d = Er(async (n) => {
|
|
10942
|
-
if (!t) return;
|
|
10943
|
-
await Ce({
|
|
10944
|
-
relatedId: t,
|
|
10945
|
-
notes: n,
|
|
10946
|
-
notesFor: e
|
|
10947
|
-
});
|
|
10948
|
-
let [i, a] = await Promise.all([F(t).catch(() => []), r ? Me(e, t).catch(() => []) : Promise.resolve(s)]);
|
|
10949
|
-
u(i), r && c(a);
|
|
10950
|
-
}, [
|
|
10951
|
-
t,
|
|
10952
|
-
e,
|
|
10953
|
-
r,
|
|
10954
|
-
s
|
|
10955
|
-
]), f = [r && {
|
|
10956
|
-
key: "activity",
|
|
10957
|
-
title: "Activity",
|
|
10958
|
-
count: Array.isArray(s) ? s.length : void 0,
|
|
10959
|
-
children: /* @__PURE__ */ X(Wm, { activity: s })
|
|
10960
|
-
}, i && {
|
|
10961
|
-
key: "notes",
|
|
10962
|
-
title: "Notes",
|
|
10963
|
-
count: Array.isArray(l) ? l.length : void 0,
|
|
10964
|
-
children: /* @__PURE__ */ X(a_, {
|
|
10965
|
-
notes: l,
|
|
10966
|
-
users: n,
|
|
10967
|
-
onAddNote: t ? d : void 0
|
|
10968
|
-
})
|
|
10969
|
-
}].filter(Boolean), [p, m] = R(f.some((e) => e.key === a) ? a : f[0]?.key);
|
|
10970
|
-
return /* @__PURE__ */ X(Pr, {
|
|
10971
|
-
className: "znx-an-card",
|
|
10972
|
-
styles: { body: { padding: 0 } },
|
|
10973
|
-
children: /* @__PURE__ */ X(Vo, {
|
|
10974
|
-
className: "znx-an-tabs",
|
|
10975
|
-
tabs: f,
|
|
10976
|
-
activeKey: p,
|
|
10977
|
-
onChange: m
|
|
10978
|
-
})
|
|
10979
|
-
});
|
|
10980
|
-
}
|
|
10981
|
-
o_.propTypes = {
|
|
10982
|
-
moduleName: Q.string,
|
|
10983
|
-
id: Q.string,
|
|
10984
|
-
users: Q.array,
|
|
10985
|
-
showActivity: Q.bool,
|
|
10986
|
-
showNotes: Q.bool,
|
|
10987
|
-
defaultActiveKey: Q.string,
|
|
10988
|
-
refreshKey: Q.oneOfType([Q.number, Q.string])
|
|
10989
|
-
};
|
|
10990
|
-
//#endregion
|
|
10991
10994
|
//#region src/components/detail/detailConfig/modules/jobConfig.js
|
|
10992
10995
|
var s_ = /* @__PURE__ */ yo({
|
|
10993
10996
|
buildJobHeaderData: () => h_,
|
|
@@ -11009,7 +11012,7 @@ var s_ = /* @__PURE__ */ yo({
|
|
|
11009
11012
|
key: "main",
|
|
11010
11013
|
xs: 24,
|
|
11011
11014
|
lg: 16
|
|
11012
|
-
}, Cr.createElement(
|
|
11015
|
+
}, Cr.createElement(o_, {
|
|
11013
11016
|
moduleName: "job",
|
|
11014
11017
|
id: e,
|
|
11015
11018
|
refreshKey: t,
|
|
@@ -11018,7 +11021,7 @@ var s_ = /* @__PURE__ */ yo({
|
|
|
11018
11021
|
key: "side",
|
|
11019
11022
|
xs: 24,
|
|
11020
11023
|
lg: 8
|
|
11021
|
-
}, Cr.createElement(
|
|
11024
|
+
}, Cr.createElement(Ym, {
|
|
11022
11025
|
moduleName: "job",
|
|
11023
11026
|
id: e
|
|
11024
11027
|
}))) } },
|
|
@@ -11026,7 +11029,7 @@ var s_ = /* @__PURE__ */ yo({
|
|
|
11026
11029
|
title: "jobTitle",
|
|
11027
11030
|
eyebrow: ({ val: e }) => {
|
|
11028
11031
|
let t = [];
|
|
11029
|
-
return
|
|
11032
|
+
return Dh(u_(e)) && t.push(Ah(u_(e))), Dh(d_(e)) && t.push(`MSP Id ${Ah(d_(e))}`), t.length ? t.join(" - ") : Dh(e("jobReferenceId")) ? String(e("jobReferenceId")) : "";
|
|
11030
11033
|
},
|
|
11031
11034
|
clientName: ({ val: e }) => u_(e),
|
|
11032
11035
|
titleIds: [],
|
|
@@ -11070,37 +11073,37 @@ var s_ = /* @__PURE__ */ yo({
|
|
|
11070
11073
|
]
|
|
11071
11074
|
}
|
|
11072
11075
|
}
|
|
11073
|
-
}, l_ = (e, ...t) => t.map((t) => e(t)).find(
|
|
11076
|
+
}, l_ = (e, ...t) => t.map((t) => e(t)).find(Dh), u_ = (e) => l_(e, "clientName", "client.name", "client", "clientId", "accountName"), d_ = (e) => l_(e, "mspReqId", "mspreqId", "msReqId", "mspId", "mspRequirementId");
|
|
11074
11077
|
function f_({ val: e }) {
|
|
11075
11078
|
let t = e("experience.experienceRequiredFrom");
|
|
11076
|
-
if (!
|
|
11079
|
+
if (!Dh(t)) return "";
|
|
11077
11080
|
let n = e("experience.experienceRequiredTo");
|
|
11078
|
-
return `${t}${
|
|
11081
|
+
return `${t}${Dh(n) ? ` - ${n}` : ""} years`;
|
|
11079
11082
|
}
|
|
11080
11083
|
function p_({ val: e }) {
|
|
11081
11084
|
let t = e("jobPayDetails") ?? {}, n = t.clientBudgetStart ?? l_(e, "clientBudgetStart", "clientRateStart");
|
|
11082
|
-
return
|
|
11085
|
+
return Dh(n) ? Nh({
|
|
11083
11086
|
start: n,
|
|
11084
11087
|
end: t.clientBudgetEnd ?? l_(e, "clientBudgetEnd", "clientRateEnd"),
|
|
11085
|
-
sym: t.clientBudgetCurrencySymbol ??
|
|
11088
|
+
sym: t.clientBudgetCurrencySymbol ?? jh(t.clientBudgetCurrency) ?? "",
|
|
11086
11089
|
unit: t.clientBudgetUnit ?? l_(e, "clientBudgetUnit")
|
|
11087
11090
|
}) : "";
|
|
11088
11091
|
}
|
|
11089
11092
|
function m_({ val: e }) {
|
|
11090
11093
|
let t = e("submissions"), n = l_(e, "pipelineCount", "PipelineCount", "inPipeline", "inPipelineCount") ?? (Array.isArray(t) ? t.length : void 0);
|
|
11091
|
-
return
|
|
11094
|
+
return Dh(n) ? n : 0;
|
|
11092
11095
|
}
|
|
11093
11096
|
function h_({ val: e, has: t }) {
|
|
11094
11097
|
let n, r = [];
|
|
11095
11098
|
t(e("jobReferenceId")) && (n = String(e("jobReferenceId")));
|
|
11096
|
-
let i = [e("jobTitle")].filter(t).map(
|
|
11099
|
+
let i = [e("jobTitle")].filter(t).map(Ah).join(" ") || "-", a = null;
|
|
11097
11100
|
if (t(e("jobSource")) && (a = {
|
|
11098
|
-
label:
|
|
11101
|
+
label: Oh(e("jobSource")),
|
|
11099
11102
|
color: "#10b981",
|
|
11100
11103
|
textColor: "#ffffff"
|
|
11101
11104
|
}), t(e("jobLocation")) && r.push({
|
|
11102
11105
|
icon: "location",
|
|
11103
|
-
text:
|
|
11106
|
+
text: Ah(e("jobLocation"))
|
|
11104
11107
|
}), t(e("experience.experienceRequiredFrom"))) {
|
|
11105
11108
|
let n = e("experience.experienceRequiredFrom"), i = e("experience.experienceRequiredTo");
|
|
11106
11109
|
r.push({
|
|
@@ -11108,12 +11111,12 @@ function h_({ val: e, has: t }) {
|
|
|
11108
11111
|
text: `${n}${t(i) ? ` - ${i}` : ""} years`
|
|
11109
11112
|
});
|
|
11110
11113
|
}
|
|
11111
|
-
let o = [e("employmentType"),
|
|
11114
|
+
let o = [e("employmentType"), Ah(e("jobRemoteStatus"))].filter(t).join(" - ");
|
|
11112
11115
|
o && r.push({
|
|
11113
11116
|
icon: "employment",
|
|
11114
11117
|
text: o
|
|
11115
11118
|
});
|
|
11116
|
-
let s = t(e("clientId")) ?
|
|
11119
|
+
let s = t(e("clientId")) ? kh(e("clientId")) : null;
|
|
11117
11120
|
return {
|
|
11118
11121
|
eyebrow: n,
|
|
11119
11122
|
title: i,
|
|
@@ -11135,7 +11138,7 @@ var g_ = /* @__PURE__ */ yo({
|
|
|
11135
11138
|
title: "candidateName",
|
|
11136
11139
|
eyebrow: "designation",
|
|
11137
11140
|
statusField: "payroll.status",
|
|
11138
|
-
chips:
|
|
11141
|
+
chips: Sh
|
|
11139
11142
|
}
|
|
11140
11143
|
}, v_ = /* @__PURE__ */ yo({
|
|
11141
11144
|
default: () => y_,
|
|
@@ -11145,17 +11148,17 @@ var g_ = /* @__PURE__ */ yo({
|
|
|
11145
11148
|
tabs: [],
|
|
11146
11149
|
header: {
|
|
11147
11150
|
title: ["firstName", "lastName"],
|
|
11148
|
-
eyebrow: ({ val: e, has: t }) => [b_(e), e("jobTitle")].filter(t).map(
|
|
11151
|
+
eyebrow: ({ val: e, has: t }) => [b_(e), e("jobTitle")].filter(t).map(Ah).join(" - "),
|
|
11149
11152
|
clientName: ({ val: e }) => b_(e),
|
|
11150
11153
|
status: ({ val: e, has: t }) => {
|
|
11151
11154
|
let n = e("internalSubmissionStatus") ?? {}, r = n.internalSubmissionStatusText;
|
|
11152
11155
|
return t(r) ? {
|
|
11153
|
-
label:
|
|
11156
|
+
label: Oh(r),
|
|
11154
11157
|
color: {
|
|
11155
11158
|
positive: "success",
|
|
11156
11159
|
negative: "error",
|
|
11157
11160
|
neutral: "default"
|
|
11158
|
-
}[n.internalSubmissionStatusType] ??
|
|
11161
|
+
}[n.internalSubmissionStatusType] ?? Ph(r)
|
|
11159
11162
|
} : null;
|
|
11160
11163
|
},
|
|
11161
11164
|
ids: [
|
|
@@ -11217,22 +11220,22 @@ var g_ = /* @__PURE__ */ yo({
|
|
|
11217
11220
|
}, b_ = (e) => e("clientName") ?? e("client.name");
|
|
11218
11221
|
function x_({ val: e }) {
|
|
11219
11222
|
let t = e("clientBudget") ?? e("candidateBudget") ?? {};
|
|
11220
|
-
return
|
|
11223
|
+
return Nh({
|
|
11221
11224
|
start: t.clientBudgetStart ?? t.candidateBudgetStart,
|
|
11222
11225
|
end: t.clientBudgetEnd ?? t.candidateBudgetEnd,
|
|
11223
|
-
sym: t.clientBudgetCurrencySymbol ?? t.candidateBudgetCurrencySymbol ??
|
|
11226
|
+
sym: t.clientBudgetCurrencySymbol ?? t.candidateBudgetCurrencySymbol ?? jh(t.clientBudgetCurrency ?? t.candidateBudgetCurrency),
|
|
11224
11227
|
unit: t.clientBudgetUnit ?? t.candidateBudgetUnit ?? "Hour"
|
|
11225
11228
|
});
|
|
11226
11229
|
}
|
|
11227
11230
|
function S_({ val: e }) {
|
|
11228
11231
|
let t = e("candidateRate") ?? {}, n = e("proposedRate") ?? {};
|
|
11229
|
-
return
|
|
11232
|
+
return Nh({
|
|
11230
11233
|
start: t.candidateAcceptedRate,
|
|
11231
|
-
sym: t.candidateAcceptedCurrencySymbol ??
|
|
11234
|
+
sym: t.candidateAcceptedCurrencySymbol ?? jh(t.candidateAcceptedCurrency),
|
|
11232
11235
|
unit: t.candidateAcceptedPayUnit ?? "Hour"
|
|
11233
|
-
}) ||
|
|
11236
|
+
}) || Nh({
|
|
11234
11237
|
start: n.candidateProposedRate,
|
|
11235
|
-
sym: n.candidateProposedRateCurrencySymbol ??
|
|
11238
|
+
sym: n.candidateProposedRateCurrencySymbol ?? jh(n.candidateProposedRateCurrency),
|
|
11236
11239
|
unit: n.candidateProposedRateUnit ?? "Hour"
|
|
11237
11240
|
});
|
|
11238
11241
|
}
|
|
@@ -11250,10 +11253,10 @@ var C_ = /* @__PURE__ */ yo({
|
|
|
11250
11253
|
//#region src/components/detail/detailConfig/headerSpec.js
|
|
11251
11254
|
function T_(e, t) {
|
|
11252
11255
|
let n = Array.isArray(t) ? t : [t];
|
|
11253
|
-
for (let t of n) if (
|
|
11256
|
+
for (let t of n) if (Dh(e(t))) return e(t);
|
|
11254
11257
|
}
|
|
11255
11258
|
function E_(e, t, n = " ") {
|
|
11256
|
-
return t.map((t) => e(t)).filter(
|
|
11259
|
+
return t.map((t) => e(t)).filter(Dh).map(Ah).join(n);
|
|
11257
11260
|
}
|
|
11258
11261
|
function D_(e, t) {
|
|
11259
11262
|
let { val: n } = e, r;
|
|
@@ -11261,9 +11264,9 @@ function D_(e, t) {
|
|
|
11261
11264
|
else if (t.join) r = E_(n, t.fields ?? [], t.join);
|
|
11262
11265
|
else {
|
|
11263
11266
|
let e = T_(n, t.field);
|
|
11264
|
-
r =
|
|
11267
|
+
r = Dh(e) ? Ah(e) : "";
|
|
11265
11268
|
}
|
|
11266
|
-
return
|
|
11269
|
+
return Dh(r) ? `${t.prefix ?? ""}${Ah(r)}${t.suffix ?? ""}` : "";
|
|
11267
11270
|
}
|
|
11268
11271
|
function O_(e) {
|
|
11269
11272
|
return typeof e == "function" ? { compute: e } : typeof e == "string" || Array.isArray(e) ? { field: e } : e;
|
|
@@ -11273,30 +11276,30 @@ function k_(e = {}, t) {
|
|
|
11273
11276
|
if (e.title !== void 0 && (r.title = E_(n, Array.isArray(e.title) ? e.title : [e.title]) || "-"), e.eyebrow !== void 0 && (r.eyebrow = D_(t, O_(e.eyebrow)) || void 0), e.clientName !== void 0 && (r.clientName = D_(t, O_(e.clientName)) || void 0), e.status !== void 0) if (typeof e.status == "function") r.status = e.status(t) ?? null;
|
|
11274
11277
|
else {
|
|
11275
11278
|
let t = T_(n, e.status.field);
|
|
11276
|
-
r.status =
|
|
11277
|
-
label:
|
|
11278
|
-
color:
|
|
11279
|
+
r.status = Dh(t) ? {
|
|
11280
|
+
label: Oh(t),
|
|
11281
|
+
color: Ph(t)
|
|
11279
11282
|
} : null;
|
|
11280
11283
|
}
|
|
11281
11284
|
let i = (e = []) => e.map((e) => {
|
|
11282
|
-
let r = typeof e.compute == "function" ? e.compute(t) :
|
|
11285
|
+
let r = typeof e.compute == "function" ? e.compute(t) : Ah(T_(n, e.field) ?? "");
|
|
11283
11286
|
return {
|
|
11284
11287
|
label: e.label,
|
|
11285
11288
|
value: r
|
|
11286
11289
|
};
|
|
11287
|
-
}).filter((e) =>
|
|
11290
|
+
}).filter((e) => Dh(e.value));
|
|
11288
11291
|
if (e.ids !== void 0 && (r.ids = i(e.ids)), e.titleIds !== void 0 && (r.titleIds = i(e.titleIds)), e.meta !== void 0 && (r.meta = e.meta.map((e) => ({
|
|
11289
11292
|
icon: e.icon,
|
|
11290
11293
|
text: D_(t, e)
|
|
11291
|
-
})).filter((e) =>
|
|
11292
|
-
let r = typeof e.compute == "function" ? e.compute(t) : T_(n, e.field), i =
|
|
11294
|
+
})).filter((e) => Dh(e.text))), e.stats !== void 0 && (r.stats = e.stats.map((e) => {
|
|
11295
|
+
let r = typeof e.compute == "function" ? e.compute(t) : T_(n, e.field), i = Dh(r) ? Ah(r) : e.always ? Ah(e.fallback ?? 0) : void 0;
|
|
11293
11296
|
return {
|
|
11294
11297
|
label: e.label,
|
|
11295
11298
|
value: i
|
|
11296
11299
|
};
|
|
11297
11300
|
}).filter((e) => e.value !== void 0)), e.timestamp !== void 0) {
|
|
11298
|
-
let t =
|
|
11299
|
-
r.timestamp =
|
|
11301
|
+
let t = Mh(T_(n, e.timestamp.field));
|
|
11302
|
+
r.timestamp = Dh(t) ? {
|
|
11300
11303
|
label: e.timestamp.label,
|
|
11301
11304
|
value: t
|
|
11302
11305
|
} : null;
|
|
@@ -11306,8 +11309,8 @@ function k_(e = {}, t) {
|
|
|
11306
11309
|
//#endregion
|
|
11307
11310
|
//#region src/components/detail/detailConfig/headerConfig.js
|
|
11308
11311
|
var A_ = /* #__PURE__ */ Object.assign({
|
|
11309
|
-
"./modules/billingConfig.js":
|
|
11310
|
-
"./modules/candidateConfig.js":
|
|
11312
|
+
"./modules/billingConfig.js": Ch,
|
|
11313
|
+
"./modules/candidateConfig.js": Fh,
|
|
11311
11314
|
"./modules/jobConfig.js": s_,
|
|
11312
11315
|
"./modules/payrollConfig.js": g_,
|
|
11313
11316
|
"./modules/submissionConfig.js": v_,
|
|
@@ -11357,9 +11360,9 @@ function F_(e = []) {
|
|
|
11357
11360
|
}
|
|
11358
11361
|
function I_(e, t) {
|
|
11359
11362
|
for (let n of t) if (n.includes("+")) {
|
|
11360
|
-
let t = n.split("+").map((t) => e(t)).filter(
|
|
11363
|
+
let t = n.split("+").map((t) => e(t)).filter(Dh).map(Ah).join(" ");
|
|
11361
11364
|
if (t) return t;
|
|
11362
|
-
} else if (
|
|
11365
|
+
} else if (Dh(e(n))) return e(n);
|
|
11363
11366
|
}
|
|
11364
11367
|
function L_({ val: e }) {
|
|
11365
11368
|
let t = I_(e, [
|
|
@@ -11377,14 +11380,14 @@ function L_({ val: e }) {
|
|
|
11377
11380
|
"designation",
|
|
11378
11381
|
"jobReferenceId",
|
|
11379
11382
|
"applicantRefrenceId"
|
|
11380
|
-
]), r =
|
|
11383
|
+
]), r = Dh(n) ? Ah(n) : void 0, i = I_(e, [
|
|
11381
11384
|
"status",
|
|
11382
11385
|
"jobStatus",
|
|
11383
11386
|
"submissionStatus",
|
|
11384
11387
|
"stage"
|
|
11385
|
-
]), a =
|
|
11386
|
-
label:
|
|
11387
|
-
color:
|
|
11388
|
+
]), a = Dh(i) ? {
|
|
11389
|
+
label: Oh(i),
|
|
11390
|
+
color: Ph(i)
|
|
11388
11391
|
} : null, o = [];
|
|
11389
11392
|
[
|
|
11390
11393
|
["Reference ID", [
|
|
@@ -11402,9 +11405,9 @@ function L_({ val: e }) {
|
|
|
11402
11405
|
["MS Req ID", ["mspreqId", "mspReqId"]]
|
|
11403
11406
|
].forEach(([t, n]) => {
|
|
11404
11407
|
let r = I_(e, n);
|
|
11405
|
-
|
|
11408
|
+
Dh(r) && o.push({
|
|
11406
11409
|
label: t,
|
|
11407
|
-
value:
|
|
11410
|
+
value: Ah(r)
|
|
11408
11411
|
});
|
|
11409
11412
|
});
|
|
11410
11413
|
let s = [], c = I_(e, [
|
|
@@ -11412,16 +11415,16 @@ function L_({ val: e }) {
|
|
|
11412
11415
|
"currentLocation",
|
|
11413
11416
|
"location"
|
|
11414
11417
|
]);
|
|
11415
|
-
|
|
11418
|
+
Dh(c) && s.push({
|
|
11416
11419
|
icon: "location",
|
|
11417
|
-
text:
|
|
11420
|
+
text: Ah(c)
|
|
11418
11421
|
});
|
|
11419
11422
|
let l = I_(e, ["designation"]);
|
|
11420
|
-
|
|
11423
|
+
Dh(l) && s.push({
|
|
11421
11424
|
icon: "designation",
|
|
11422
|
-
text:
|
|
11425
|
+
text: Ah(l)
|
|
11423
11426
|
});
|
|
11424
|
-
let u =
|
|
11427
|
+
let u = Mh(I_(e, [
|
|
11425
11428
|
"createdAt",
|
|
11426
11429
|
"submittedAt",
|
|
11427
11430
|
"createdDate"
|
|
@@ -11432,7 +11435,7 @@ function L_({ val: e }) {
|
|
|
11432
11435
|
status: a,
|
|
11433
11436
|
ids: o,
|
|
11434
11437
|
meta: s,
|
|
11435
|
-
timestamp:
|
|
11438
|
+
timestamp: Dh(u) ? {
|
|
11436
11439
|
label: "Created Date",
|
|
11437
11440
|
value: u
|
|
11438
11441
|
} : null
|
|
@@ -11450,22 +11453,22 @@ function z_(e, t = [], { aux: n } = {}) {
|
|
|
11450
11453
|
let n = t.recordMeta;
|
|
11451
11454
|
return n && (e === "createdAt" || e === "updatedAt") ? n[e] : void 0;
|
|
11452
11455
|
}
|
|
11453
|
-
return
|
|
11456
|
+
return Eh(n.value) && [
|
|
11454
11457
|
"status",
|
|
11455
11458
|
"jobStatus",
|
|
11456
11459
|
"submissionStatus"
|
|
11457
|
-
].includes(e) && !
|
|
11460
|
+
].includes(e) && !Eh(n.defaultValue) ? n.defaultValue : n.value;
|
|
11458
11461
|
}, s = (e) => a.get(e) ?? null, c = typeof n == "function" ? n : () => () => void 0, l = L_({
|
|
11459
11462
|
val: o,
|
|
11460
|
-
has:
|
|
11463
|
+
has: Dh
|
|
11461
11464
|
}), u = i?.buildData ? i.buildData({
|
|
11462
11465
|
val: o,
|
|
11463
|
-
has:
|
|
11466
|
+
has: Dh,
|
|
11464
11467
|
field: s,
|
|
11465
11468
|
aux: c
|
|
11466
11469
|
}) ?? {} : i?.header ? k_(i.header, {
|
|
11467
11470
|
val: o,
|
|
11468
|
-
has:
|
|
11471
|
+
has: Dh,
|
|
11469
11472
|
field: s,
|
|
11470
11473
|
aux: c
|
|
11471
11474
|
}) : {}, d = (e, t) => Array.isArray(e) ? e : t ?? [], f = u.status === !1 ? null : u.status ?? l.status ?? null;
|
|
@@ -11573,14 +11576,14 @@ var X_ = (e) => {
|
|
|
11573
11576
|
return Number.isFinite(t) ? t : 0;
|
|
11574
11577
|
};
|
|
11575
11578
|
function Z_(e, t = "$") {
|
|
11576
|
-
let n =
|
|
11577
|
-
return
|
|
11579
|
+
let n = Eg(e);
|
|
11580
|
+
return Og(Number.isNaN(n) ? 0 : n, xg(t), { decimals: 2 });
|
|
11578
11581
|
}
|
|
11579
11582
|
function Q_(e) {
|
|
11580
11583
|
return `${X_(e).toFixed(2)} hrs`;
|
|
11581
11584
|
}
|
|
11582
11585
|
function $_(e, t = "$", n = "hr") {
|
|
11583
|
-
let r =
|
|
11586
|
+
let r = Tg(n, ""), i = Z_(e, t);
|
|
11584
11587
|
return r ? `${i}/${r}` : i;
|
|
11585
11588
|
}
|
|
11586
11589
|
function ev(e) {
|
|
@@ -12476,7 +12479,7 @@ function ly({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
|
|
|
12476
12479
|
I(() => {
|
|
12477
12480
|
P && l && l(P);
|
|
12478
12481
|
}, [P]);
|
|
12479
|
-
let { eyebrow: F, title: ee = "-", status: te, titleIds: ne = [], meta: re = [], ids: ie = [], tabs: ae = [], stats: se = [], timestamp: ce = null } = P ?? {}, { canAdd: le, canEdit: ue, canDelete: de } = Il(e), fe = L(() => ey(_, t), [_, t]), pe =
|
|
12482
|
+
let { eyebrow: F, title: ee = "-", status: te, titleIds: ne = [], meta: re = [], ids: ie = [], tabs: ae = [], stats: se = [], timestamp: ce = null } = P ?? {}, { canAdd: le, canEdit: ue, canDelete: de } = Il(e), fe = L(() => ey(_, t), [_, t]), pe = xh(ae, {
|
|
12480
12483
|
id: t,
|
|
12481
12484
|
moduleName: e,
|
|
12482
12485
|
record: fe
|
|
@@ -12862,7 +12865,7 @@ function gy({ moduleName: e, id: t, backPath: n = "", showFooter: r = !0, users:
|
|
|
12862
12865
|
n.set("tab", e), p(n, { replace: !0 }), c?.(e, t);
|
|
12863
12866
|
}, x = () => v((e) => e + 1), S = (e, t) => {
|
|
12864
12867
|
s?.(e, t);
|
|
12865
|
-
}, C = L(() => R_(e)?.tabs ?? [], [e]), w =
|
|
12868
|
+
}, C = L(() => R_(e)?.tabs ?? [], [e]), w = xh(C, {
|
|
12866
12869
|
id: h,
|
|
12867
12870
|
moduleName: e
|
|
12868
12871
|
}), T = g === "details" || !C.some((e) => e.key === g && typeof e.visibleWhen == "function") || w.some((e) => e.key === g), E = L(() => T ? fy(e, g) : null, [
|
|
@@ -12893,7 +12896,7 @@ function gy({ moduleName: e, id: t, backPath: n = "", showFooter: r = !0, users:
|
|
|
12893
12896
|
children: [/* @__PURE__ */ X(B, {
|
|
12894
12897
|
xs: 24,
|
|
12895
12898
|
lg: 16,
|
|
12896
|
-
children: /* @__PURE__ */ X(
|
|
12899
|
+
children: /* @__PURE__ */ X(o_, {
|
|
12897
12900
|
moduleName: e,
|
|
12898
12901
|
id: h,
|
|
12899
12902
|
refreshKey: _ + y,
|
|
@@ -12902,7 +12905,7 @@ function gy({ moduleName: e, id: t, backPath: n = "", showFooter: r = !0, users:
|
|
|
12902
12905
|
}), /* @__PURE__ */ X(B, {
|
|
12903
12906
|
xs: 24,
|
|
12904
12907
|
lg: 8,
|
|
12905
|
-
children: /* @__PURE__ */ X(
|
|
12908
|
+
children: /* @__PURE__ */ X(Ym, {
|
|
12906
12909
|
moduleName: e,
|
|
12907
12910
|
id: h,
|
|
12908
12911
|
users: i,
|
|
@@ -17654,7 +17657,7 @@ function aS(e = {}, t = {}, n = {}) {
|
|
|
17654
17657
|
let r = {
|
|
17655
17658
|
...Gx,
|
|
17656
17659
|
...n ?? {}
|
|
17657
|
-
}, i = e.submission ?? e ?? {}, a = e.job ?? {}, o = e.client ?? {}, s = e.engagement ?? {}, c = rS(nS(i, "contractType") ?? s.onboardingType ?? e.contractType), l = a.jobPayDetails ?? {}, u = Kx(l.clientBudgetStart ?? nS(i, "clientBudget", "clientBudgetStart")), d = Kx(l.clientBudgetEnd ?? nS(i, "clientBudget", "clientBudgetEnd")) || u, f = d || u, p = Zx(o.vmsFeeHistory) ?? {}, m = t.clientVmsFee ?? o.vmsFee ?? {}, h = Jx(p.vmsPercentage) ? Kx(p.vmsPercentage) : Jx(o.vmsPercentage) ? Kx(o.vmsPercentage) : m.isApplicable === !1 ? 0 : Kx(Yx(m.value, m.percent, typeof m == "number" ? m : void 0, nS(i, "clientVmsPercent"), nS(i, "vmsPercent"))), g = String(Yx(p.vmsPercentageType, o.vmsPercentageType) ?? "recurring").toLowerCase(), _ = Kx(nS(i, "proposedRate", "candidateProposedRate") ?? e.proposedRateValue), v = Yx(nS(i, "proposedRate", "candidateProposedRateCurrencySymbol"), nS(i, "proposedRate", "candidateProposedRateCurrency"), nS(i, "candidateBudget", "candidateBudgetCurrencySymbol"), nS(i, "candidateBudget", "candidateBudgetCurrency"), l.clientBudgetCurrencySymbol, l.clientBudgetCurrency, a.currency, a.currencySymbol, r.currency), y =
|
|
17660
|
+
}, i = e.submission ?? e ?? {}, a = e.job ?? {}, o = e.client ?? {}, s = e.engagement ?? {}, c = rS(nS(i, "contractType") ?? s.onboardingType ?? e.contractType), l = a.jobPayDetails ?? {}, u = Kx(l.clientBudgetStart ?? nS(i, "clientBudget", "clientBudgetStart")), d = Kx(l.clientBudgetEnd ?? nS(i, "clientBudget", "clientBudgetEnd")) || u, f = d || u, p = Zx(o.vmsFeeHistory) ?? {}, m = t.clientVmsFee ?? o.vmsFee ?? {}, h = Jx(p.vmsPercentage) ? Kx(p.vmsPercentage) : Jx(o.vmsPercentage) ? Kx(o.vmsPercentage) : m.isApplicable === !1 ? 0 : Kx(Yx(m.value, m.percent, typeof m == "number" ? m : void 0, nS(i, "clientVmsPercent"), nS(i, "vmsPercent"))), g = String(Yx(p.vmsPercentageType, o.vmsPercentageType) ?? "recurring").toLowerCase(), _ = Kx(nS(i, "proposedRate", "candidateProposedRate") ?? e.proposedRateValue), v = Yx(nS(i, "proposedRate", "candidateProposedRateCurrencySymbol"), nS(i, "proposedRate", "candidateProposedRateCurrency"), nS(i, "candidateBudget", "candidateBudgetCurrencySymbol"), nS(i, "candidateBudget", "candidateBudgetCurrency"), l.clientBudgetCurrencySymbol, l.clientBudgetCurrency, a.currency, a.currencySymbol, r.currency), y = xg(v, r.currency), b = Yx(nS(i, "proposedRate", "candidateProposedRateUnit"), nS(i, "candidateBudget", "candidateBudgetUnit"), l.clientBudgetUnit, r.rateUnit), x = Kx(nS(i, "candidateBudget", "candidateBudgetStart") ?? nS(i, "candidateBudget", "candidateBudgetRate") ?? nS(i, "candidateRate", "candidateAcceptedRate")), S = qx(nS(i, "submission_current_employer", "isVmsRequired") ?? nS(i, "submission_current_employer", "isVMSRequired")), C = Kx(Yx(nS(i, "submission_current_employer", "vmsPercentage"), nS(i, "submission_current_employer", "vmsCommission"), e.employer?.vmsPercentage, e.employer?.vmsCommission, s.vmsPercent)), w = C > 0, T = S ? C : 0, E = String(nS(i, "submission_current_employer", "vmsType") ?? nS(i, "submission_current_employer", "vmsCommissionType") ?? "Recurring"), D = nS(i, "submission_current_employer", "tax");
|
|
17658
17661
|
return {
|
|
17659
17662
|
contractType: c,
|
|
17660
17663
|
currency: y,
|
|
@@ -17684,14 +17687,14 @@ function oS(e, t) {
|
|
|
17684
17687
|
return Kx(r?.taxValue ?? r?.taxPercent);
|
|
17685
17688
|
}
|
|
17686
17689
|
function sS(e, t = {}) {
|
|
17687
|
-
let { contractType: n = "C2C", currency: r = Gx.currency, currencyRaw: i, rateUnit: a = Gx.rateUnit, clientJobRate: o = 0, clientJobRateFrom: s = 0, clientJobRateTo: c = 0, clientVmsPercent: l = 0, clientVmsPercentageType: u = "recurring", proposedRate: d = 0, employerRate: f = 0, employerVmsPercent: p = 0, employerVmsPercentConfigured: m = 0, employerVmsAvailable: h = !1, employerVmsType: g = "Recurring", employerVmsRequired: _ = !1, locationTaxPercent: v = 0 } = e ?? {}, y =
|
|
17690
|
+
let { contractType: n = "C2C", currency: r = Gx.currency, currencyRaw: i, rateUnit: a = Gx.rateUnit, clientJobRate: o = 0, clientJobRateFrom: s = 0, clientJobRateTo: c = 0, clientVmsPercent: l = 0, clientVmsPercentageType: u = "recurring", proposedRate: d = 0, employerRate: f = 0, employerVmsPercent: p = 0, employerVmsPercentConfigured: m = 0, employerVmsAvailable: h = !1, employerVmsType: g = "Recurring", employerVmsRequired: _ = !1, locationTaxPercent: v = 0 } = e ?? {}, y = xg(r, Gx.currency), b = t.proposedRate == null ? Kx(d) : Kx(t.proposedRate), x = !!t.includeReferral, S = x ? Kx(t.referralRate) : 0, C = iS(o, l), w = Xx(o - C), T = iS(b, l), E = Xx(b - T), D = n === "W2", O = D ? v : p, k = iS(f, O), A = Xx(f - k), j = Xx(E - A - S);
|
|
17688
17691
|
return {
|
|
17689
17692
|
contractType: n,
|
|
17690
17693
|
currency: y,
|
|
17691
17694
|
currencyRaw: i ?? y,
|
|
17692
17695
|
rateUnit: a,
|
|
17693
|
-
rateUnitLabel:
|
|
17694
|
-
rateUnitShort:
|
|
17696
|
+
rateUnitLabel: Cg(a),
|
|
17697
|
+
rateUnitShort: Tg(a),
|
|
17695
17698
|
isW2: D,
|
|
17696
17699
|
clientJobRate: Xx(o),
|
|
17697
17700
|
clientJobRateFrom: Xx(s),
|
|
@@ -17791,8 +17794,8 @@ function hS(e, t, n = /* @__PURE__ */ new Date()) {
|
|
|
17791
17794
|
}));
|
|
17792
17795
|
}
|
|
17793
17796
|
function gS(e, t = Gx.currency) {
|
|
17794
|
-
let n =
|
|
17795
|
-
return
|
|
17797
|
+
let n = Eg(e);
|
|
17798
|
+
return Og(Number.isNaN(n) ? 0 : n, t, { decimals: 2 });
|
|
17796
17799
|
}
|
|
17797
17800
|
//#endregion
|
|
17798
17801
|
//#region src/components/finance/FinanceApprovalPanel.jsx
|
|
@@ -31731,7 +31734,7 @@ function pD({ open: e, module: t, onClose: n }) {
|
|
|
31731
31734
|
u(!0), f("");
|
|
31732
31735
|
try {
|
|
31733
31736
|
let [e] = await Promise.all([Xe(t, r.trim()), Re()]);
|
|
31734
|
-
o(e), c(
|
|
31737
|
+
o(e), c(ng(e)), e.length || f("No groups returned — check the id and module.");
|
|
31735
31738
|
} catch (e) {
|
|
31736
31739
|
f(e?.message || "Failed to load preview");
|
|
31737
31740
|
} finally {
|
|
@@ -31804,8 +31807,8 @@ function pD({ open: e, module: t, onClose: n }) {
|
|
|
31804
31807
|
width: 150,
|
|
31805
31808
|
flexShrink: 0
|
|
31806
31809
|
},
|
|
31807
|
-
children:
|
|
31808
|
-
}), /* @__PURE__ */ X(
|
|
31810
|
+
children: ag(e, s)
|
|
31811
|
+
}), /* @__PURE__ */ X(Gg, { field: e })]
|
|
31809
31812
|
}, e.field))]
|
|
31810
31813
|
}, e.id ?? e.name)), !l && !a.length && !d && /* @__PURE__ */ X(Vr, {
|
|
31811
31814
|
description: "Load a record to preview its detail view.",
|
|
@@ -50164,6 +50167,6 @@ async function WF(e, t, n, r = 10, i = 0, a = {}) {
|
|
|
50164
50167
|
//#region src/index.js
|
|
50165
50168
|
var GF = cN, KF = vw(aP), qF = vw(sP), JF = vw(SP), YF = vw(PP), XF = vw(UP), ZF = vw(KP), QF = vw(YP), $F = vw(QP), eI = vw(eF), tI = vw(pF), nI = vw(hF);
|
|
50166
50169
|
//#endregion
|
|
50167
|
-
export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, Wm as ActivityTab, GM as AddBatchCandidatePopup, Om as AddFormV1, cN as AdminDashboard, bk as AdminDashboardContent, GF as AdminPage, km as AppAlert, yr as AppButton, VC as AppShell, xx as ApprovalActionBar,
|
|
50170
|
+
export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, Ym as ActivityNotesCard, Wm as ActivityTab, GM as AddBatchCandidatePopup, Om as AddFormV1, cN as AdminDashboard, bk as AdminDashboardContent, GF as AdminPage, km as AppAlert, yr as AppButton, VC as AppShell, xx as ApprovalActionBar, Xm as AssigneeAvatars, zC as AuthGuard, sv as BILLING_STATUS_FLOW, Zm as BULK_UPLOAD_DEFAULT_ACCEPT, Qm as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Yn as Breadcrumb, JF as BulkUploadPage, oh as BulkUploadPanel, w as CANDIDATES_URL, Wx as CONTRACT_C2C, Ux as CONTRACT_W2, bg as CURRENCY_SYMBOLS, Lo as CalendarCard, wk as CoreThemeAdminApp, Ck as CoreThemeAdminRoutes, Ps as CustomPagination, hx as DayLogModal, yh as DescriptionBlock, ly as DetailHeaderCard, gy as DetailViewPage, o_ as DetailViewV1, oe as DocumentViewer, Pc as DynamicCards, lj as DynamicPopup, JM as DynamicPopupRoute, Vo as DynamicTabs, hb as EditFormV1, Fx as FINANCE_APPROVAL_CONFIG, kx as FINANCE_TYPE_CFO, Ox as FINANCE_TYPE_ONBOARDING_MANAGER, Mx as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, Ax as FINANCE_TYPE_ONLY_FINANCE, Dx as FINANCE_TYPE_SUBMISSION_MANAGER, jx as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, RS as FileListCard, OS as FinanceApprovalPanel, Hv as FinanceAvatar, Kv as FinanceBadge, Cx as FinanceDayCell, Pv as FinanceDivider, Uv as FinanceEmployeeCell, jv as FinanceEmptyState, Fv as FinanceEquation, zv as FinanceHistoryTimeline, Av as FinanceHoursGrid, kv as FinanceKpiRow, Nv as FinanceLine, Yb as FinanceListToolbar, qv as FinanceMarginBadge, Gv as FinanceMoneyCell, Xv as FinanceRecordsTable, Jv as FinanceRowChevron, Mv as FinanceSection, Ov as FinanceStatusPill, Wv as FinanceTextCell, Tx as FinanceTimesheetAnalysis, Iv as FinanceWorkflowSteps, pC as Header, zc as HierarchyUserFilter, n as JOBS_URL, KF as LegacyAdminPage, rp as ListView, nI as LmsHomePage, tI as LmsTestForm, HC as Login, Mk as MailPopup, ZF as ManageModules, QF as ManageSubmodules, wb as ModuleRowActions, bx as NotesPanel, Jm as NotesTab, cv as PAYROLL_STATUS_FLOW, IM as POPUP_CONFIGS, jb as ParamCardView, Lb as ParamListView, $b as PeriodBadgeTag, uA as PreviewPopup, _w as ProjectSelect, yx as ProofUploadPreview, vx as QuickLogBar, gx as QuickLogSelectionBar, _x as RejectionReasonModal, e as SUBMISSIONS_URL, FC as Sidebar, zb as StatusBadge, Qb as StatusBadgeTag, qF as StickyNotesFullPage, Vb as StylishDynamicTabs, Kb as TemplateEditor, YF as TestForm, eI as TestingHomePage, Im as TimelineGroups, sx as TimesheetDayCell, Ve as TipTapEditor, sN as UserForm, QM as VendorShareDrawer, ad as ViewSummaryWidget, gA as WizardPopup, $F as ZinnextTableView, XF as ZinnextTestForm, ke as applyIntegrationStatus, hs as approveSubmission, rh as buildAcceptAttr, Sv as buildCsv, gv as buildDailyRows, ax as buildDayGradient, hS as buildRateHistoryEntries, yv as buildWeeklyRollup, v as clearSelectedProject, fn as colors, sS as computeFinance, bv as computeMarginBand, on as conditionMatches, C as configureCoreTheme, Ot as configuredFieldLabel, HF as createAllWorkflowsListFetcher, IF as createMergedListFetcher, kF as createModuleListFetchAdapter, LF as createWorkflowStageListFetcher, xg as currencySymbol, xF as defaultMergeRow, Hn as deleteIntegrationConfig, hv as deriveDayStats, Ev as downloadCsv, An as evaluateShowIfWith, tS as findEmployerRow, $x as flattenGroups, Dg as formatAmount, nh as formatFileSize, gS as formatFinanceMoney, Q_ as formatHours, Og as formatMoney, ev as formatPercent, kg as formatRate, Me as getActivity, UF as getAllWorkflowsModuleList, iv as getApprovalDate, Nt as getBgcIntegrationConfig, fr as getBgcIntegrationSummary, lv as getBillingActionStates, y as getCurrentRoleName, wv as getFieldLabel, th as getFileExtension, Bx as getFinanceApprovalConfig, IS as getFormGroupsRaw, ae as getIntegrationConfig, Be as getIntegrationConfigs, hn as getIntegrationSummary, js as getModuleConfig, xr as getModuleDataDetail, uv as getPayrollActionStates, Ns as getPeriodBadgeConfig, s as getSelectedProject, p as getStoredToken, x as getStoredUser, c as getUserRoles, gs as getVMSApprove, Tv as getValueStyle, WF as getWorkflowStageModuleList, dv as getWorkflowSteps, rv as humanizeEvent, Ep as i, Cv as indexFieldConfig, tv as initialsOf, l as isTester, m as logout, Hx as marginIncludesReferral, oS as matchLocationTax, wy as n, rS as normalizeContract, sh as r, Cg as rateUnitLabel, Tg as rateUnitShort, vs as rejectSubmission, Vm as resolveActivityMeta, cS as resolveAndCompute, aS as resolveFinanceInputs, yF as resolveMergeKey, yF as resolveMergedListKey, Vx as resolveRejectionReason, LS as resolveSubmissionFinance, St as saveBgcIntegrationConfig, Gt as saveIntegrationConfig, u as setSelectedProject, It as showIfConditions, RF as stageCountKey, UC as t, Mn as testIntegrationConnection, Eg as toNumber, Ol as useDropdownFields, od as useDropdownValues, zS as useEditForm, kl as useFieldConfig, Al as useFilterFields, Il as useMenuPermission, _b as useModuleActions, py as useRecordRefresh, ih as validateBulkFile, r as withAdminAppId, t as withAppId, vw as withAuthGuard };
|
|
50168
50171
|
|
|
50169
50172
|
//# sourceMappingURL=index.js.map
|