@realtek/core-theme 0.0.231 → 0.0.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +26 -28
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -642,11 +642,11 @@ async function jo(e, t) {
|
|
|
642
642
|
async function Mo(e) {
|
|
643
643
|
return uo(await a(o, `/submissions/vms-approve?submissionId=${encodeURIComponent(e)}`));
|
|
644
644
|
}
|
|
645
|
-
async function No(t, { submissionId: n = "", billRate: r, payRate: i, currency: o = "$",
|
|
646
|
-
let
|
|
645
|
+
async function No(t, { submissionId: n = "", billRate: r, payRate: i, currency: o = "$", referralId: s, referralRate: c, referralType: l, referralEnabled: u, vmsPercent: d = 0, documentIds: f = [], remarks: p = null } = {}) {
|
|
646
|
+
let m = t ? `/workforce-engagements/${encodeURIComponent(t)}/cfo-approval/send` : `/submissions/${encodeURIComponent(n)}/cfo-approval/send`;
|
|
647
647
|
if (!t && !n) throw Error("Submission is required to send for approval.");
|
|
648
|
-
let
|
|
649
|
-
return uo(await a(e,
|
|
648
|
+
let h = typeof window < "u" ? window.location.origin : "", g = t || n;
|
|
649
|
+
return uo(await a(e, m, {
|
|
650
650
|
method: "POST",
|
|
651
651
|
body: JSON.stringify({
|
|
652
652
|
proposedRate: {
|
|
@@ -662,11 +662,14 @@ async function No(t, { submissionId: n = "", billRate: r, payRate: i, currency:
|
|
|
662
662
|
candidateAcceptedPayUnit: "hr",
|
|
663
663
|
candidateAcceptedRateNegotiable: !1
|
|
664
664
|
},
|
|
665
|
-
...s
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
665
|
+
...s != null && s !== "" ? { referralId: s } : {},
|
|
666
|
+
...c == null ? {} : { referralRate: Number(c) || 0 },
|
|
667
|
+
...l != null && l !== "" ? { referralType: l } : {},
|
|
668
|
+
...u == null ? {} : { referralEnabled: !!u },
|
|
669
|
+
vmsPercent: Number(d) || 0,
|
|
670
|
+
documentIds: f,
|
|
671
|
+
remarks: p,
|
|
672
|
+
approvalUrl: `${h}/cfo-approval/${encodeURIComponent(g)}`
|
|
670
673
|
})
|
|
671
674
|
}));
|
|
672
675
|
}
|
|
@@ -16922,7 +16925,7 @@ vb.propTypes = {
|
|
|
16922
16925
|
tone: Q.string
|
|
16923
16926
|
};
|
|
16924
16927
|
function yb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, onReferralChange: a, onAddReferral: o, currentUserId: s, actions: c, onClose: l, variant: u }) {
|
|
16925
|
-
let d = Hy(e), f = L(() => ob(t, n), [t, n]), p = Wy(d), [m, h] = R(f.proposedRate), [g, _] = R(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [v, y] = R(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [b, x] = R(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [S, C] = R(""), [w, T] = R(!1), [E, D] = R(""), [O, k] = R(!1), [A, j] = R(""), [M, ee] = R(!1), N = d.sections.referral ?? {}, [te, ne] = R(!!(t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(v) > 0 || !!g))), re = N.toggle === !0, ie =
|
|
16928
|
+
let d = Hy(e), f = L(() => ob(t, n), [t, n]), p = Wy(d), [m, h] = R(f.proposedRate), [g, _] = R(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [v, y] = R(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [b, x] = R(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [S, C] = R(""), [w, T] = R(!1), [E, D] = R(""), [O, k] = R(!1), [A, j] = R(""), [M, ee] = R(!1), N = d.sections.referral ?? {}, [te, ne] = R(!!(t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(v) > 0 || !!g))), re = N.toggle === !0, ie = Number(v) > 0, ae = N.show === !0 ? re ? te : !0 : N.show === "ifEnabled" ? te : N.show === "ifExists" ? ie : !1, oe = p && ae, se = d.rejection?.show ? Uy(d, t) : "", P = L(() => cb(f, {
|
|
16926
16929
|
proposedRate: d.sections.rateBreakdown?.proposed?.editable ? m : void 0,
|
|
16927
16930
|
includeReferral: oe,
|
|
16928
16931
|
referralRate: v
|
|
@@ -17702,13 +17705,10 @@ async function Ob(e, t = {}) {
|
|
|
17702
17705
|
...x.jobPayDetails ?? {},
|
|
17703
17706
|
...v.jobPayDetails ?? {}
|
|
17704
17707
|
};
|
|
17705
|
-
let w = (Array.isArray(_) ? _ : []).find((t) => $y(t.submissionId) === String(e)), T = w ? await Eb("
|
|
17706
|
-
...
|
|
17707
|
-
...
|
|
17708
|
-
},
|
|
17709
|
-
...M,
|
|
17710
|
-
...ee
|
|
17711
|
-
}, te = h.find(Cb(l)) ?? {}, ne = g.find(Cb(d)) ?? g.find((e) => bb(e.name) === bb(d)) ?? {};
|
|
17708
|
+
let w = (Array.isArray(_) ? _ : []).find((t) => $y(t.submissionId) === String(e)), T = $y(C.clientId) || $y(w?.clientId) || s, E = a.clientName ?? t.clientName ?? C.clientName, D = E ? m.filter((e) => bb(e.clientName) === bb(E)) : [], O = m.find(Cb(T)) ?? D[0] ?? {}, k = await Eb("clients", $y(O._id ?? O.id) || T), A = {
|
|
17709
|
+
...O,
|
|
17710
|
+
...k
|
|
17711
|
+
}, j = h.find(Cb(l)) ?? {}, M = g.find(Cb(d)) ?? g.find((e) => bb(e.name) === bb(d)) ?? {};
|
|
17712
17712
|
return {
|
|
17713
17713
|
record: {
|
|
17714
17714
|
submission: {
|
|
@@ -17717,29 +17717,27 @@ async function Ob(e, t = {}) {
|
|
|
17717
17717
|
submission_current_employer: [o]
|
|
17718
17718
|
},
|
|
17719
17719
|
job: C,
|
|
17720
|
-
client:
|
|
17721
|
-
employer:
|
|
17722
|
-
engagement: E,
|
|
17723
|
-
referral: O
|
|
17720
|
+
client: A,
|
|
17721
|
+
employer: j
|
|
17724
17722
|
},
|
|
17725
17723
|
lookups: {
|
|
17726
|
-
clientVmsFee:
|
|
17727
|
-
locationTaxPercent: o.tax ??
|
|
17724
|
+
clientVmsFee: A.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
|
|
17725
|
+
locationTaxPercent: o.tax ?? M.taxValue
|
|
17728
17726
|
},
|
|
17729
17727
|
display: {
|
|
17730
|
-
clientName: a.clientName ??
|
|
17728
|
+
clientName: a.clientName ?? A.clientName,
|
|
17731
17729
|
jobTitle: a.jobTitle ?? C.jobTitle,
|
|
17732
17730
|
reqId: i.jobClientRefrenceId ?? a.jobRefrenceId ?? i.jobRefrenceId ?? i.mspReqId,
|
|
17733
17731
|
jobLocation: a.jobLocation ?? C.jobLocation,
|
|
17734
|
-
employerName:
|
|
17735
|
-
employerLocation:
|
|
17732
|
+
employerName: j.empCompanyName,
|
|
17733
|
+
employerLocation: M.name ?? j.empCompanyLocation ?? d,
|
|
17736
17734
|
submittedBy: Tb(y) || a.signatureEmail || a.recruiterName || a.submitSource,
|
|
17737
17735
|
email: a.email,
|
|
17738
17736
|
candidateName: [a.firstName, a.lastName].filter(Boolean).join(" ") || a.candidateFullName,
|
|
17739
17737
|
createdAt: i.createdAt,
|
|
17740
|
-
submissionId: i.submissionId
|
|
17741
|
-
workforceEngagementId: $y(E)
|
|
17738
|
+
submissionId: i.submissionId
|
|
17742
17739
|
},
|
|
17740
|
+
engagement: w ?? null,
|
|
17743
17741
|
meta: i
|
|
17744
17742
|
};
|
|
17745
17743
|
}
|