@realtek/core-theme 0.0.227 → 0.0.229

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.js CHANGED
@@ -642,7 +642,7 @@ 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 = "$", referralRate: s = 0, vmsPercent: c = 0, documentIds: l = [], remarks: u = null } = {}) {
645
+ async function No(t, { submissionId: n = "", billRate: r, payRate: i, currency: o = "$", referralRate: s, vmsPercent: c = 0, documentIds: l = [], remarks: u = null } = {}) {
646
646
  let d = 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
648
  let f = typeof window < "u" ? window.location.origin : "", p = t || n;
@@ -662,7 +662,7 @@ async function No(t, { submissionId: n = "", billRate: r, payRate: i, currency:
662
662
  candidateAcceptedPayUnit: "hr",
663
663
  candidateAcceptedRateNegotiable: !1
664
664
  },
665
- referralRate: Number(s) || 0,
665
+ ...s == null ? {} : { referralRate: Number(s) || 0 },
666
666
  vmsPercent: Number(c) || 0,
667
667
  documentIds: l,
668
668
  remarks: u,
@@ -8354,6 +8354,9 @@ var Kp = {
8354
8354
  submitted: "submitted",
8355
8355
  submission: "submitted",
8356
8356
  "internal submission": "submitted",
8357
+ send_for_approval: "sendForApproval",
8358
+ "send for approval": "sendForApproval",
8359
+ sendforapproval: "sendForApproval",
8357
8360
  resubmit: "resubmitted",
8358
8361
  resubmitted: "resubmitted",
8359
8362
  resent_for_approval: "resent",
@@ -8405,6 +8408,11 @@ var Kp = {
8405
8408
  icon: /* @__PURE__ */ X(oa, {}),
8406
8409
  label: "Submitted"
8407
8410
  },
8411
+ sendForApproval: {
8412
+ tone: "info",
8413
+ icon: /* @__PURE__ */ X(oa, {}),
8414
+ label: "Send for Approval"
8415
+ },
8408
8416
  resubmitted: {
8409
8417
  tone: "purple",
8410
8418
  icon: /* @__PURE__ */ X(Zi, {}),
@@ -16640,11 +16648,25 @@ function By(e, { title: t, primaryLabel: n, primaryApi: r }) {
16640
16648
  } }
16641
16649
  };
16642
16650
  }
16643
- zy[Iy] = By(zy[My], {
16644
- title: "Finance Re-Review",
16645
- primaryLabel: "Send For Approval",
16646
- primaryApi: "submissionReapproveSend"
16647
- }), zy[Ly] = By(zy[Ny], {
16651
+ zy[Iy] = {
16652
+ ...By(zy[My], {
16653
+ title: "Finance Re-Review",
16654
+ primaryLabel: "Send For Approval",
16655
+ primaryApi: "submissionReapproveSend"
16656
+ }),
16657
+ sections: {
16658
+ ...zy[My].sections,
16659
+ referral: {
16660
+ show: "ifExists",
16661
+ mode: "print",
16662
+ typeChip: !0
16663
+ }
16664
+ },
16665
+ margin: {
16666
+ label: "Total Margin",
16667
+ formula: "netProposed-netEmployer-referral"
16668
+ }
16669
+ }, zy[Ly] = By(zy[Ny], {
16648
16670
  title: "Onboarding Re-Review",
16649
16671
  primaryLabel: "Re-send for CFO Approval"
16650
16672
  });
@@ -17658,10 +17680,13 @@ async function Db(e, t = {}) {
17658
17680
  ...x.jobPayDetails ?? {},
17659
17681
  ...v.jobPayDetails ?? {}
17660
17682
  };
17661
- let w = (Array.isArray(_) ? _ : []).find((t) => Qy(t.submissionId) === String(e)), T = Qy(C.clientId) || Qy(w?.clientId) || s, E = a.clientName ?? t.clientName ?? C.clientName, D = E ? m.filter((e) => yb(e.clientName) === yb(E)) : [], O = m.find(Sb(T)) ?? D[0] ?? {}, k = await Tb("clients", Qy(O._id ?? O.id) || T), A = {
17662
- ...O,
17663
- ...k
17664
- }, j = h.find(Sb(l)) ?? {}, M = g.find(Sb(d)) ?? g.find((e) => yb(e.name) === yb(d)) ?? {};
17683
+ let w = (Array.isArray(_) ? _ : []).find((t) => Qy(t.submissionId) === String(e)), T = w ? await Tb("workforceEngagements", Qy(w)) : {}, E = {
17684
+ ...w,
17685
+ ...T
17686
+ }, D = Qy(E?.financeApproval?.referralId ?? E?.referralId ?? E?.referalId), O = D ? await Tb("referrals", D) : {}, k = Qy(C.clientId) || Qy(E?.clientId) || s, A = a.clientName ?? t.clientName ?? C.clientName, j = A ? m.filter((e) => yb(e.clientName) === yb(A)) : [], M = m.find(Sb(k)) ?? j[0] ?? {}, ee = await Tb("clients", Qy(M._id ?? M.id) || k), N = {
17687
+ ...M,
17688
+ ...ee
17689
+ }, te = h.find(Sb(l)) ?? {}, ne = g.find(Sb(d)) ?? g.find((e) => yb(e.name) === yb(d)) ?? {};
17665
17690
  return {
17666
17691
  record: {
17667
17692
  submission: {
@@ -17670,25 +17695,28 @@ async function Db(e, t = {}) {
17670
17695
  submission_current_employer: [o]
17671
17696
  },
17672
17697
  job: C,
17673
- client: A,
17674
- employer: j
17698
+ client: N,
17699
+ employer: te,
17700
+ engagement: E,
17701
+ referral: O
17675
17702
  },
17676
17703
  lookups: {
17677
- clientVmsFee: A.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
17678
- locationTaxPercent: o.tax ?? M.taxValue
17704
+ clientVmsFee: N.vmsFee ?? a.clientVmsFee ?? a.vmsFee,
17705
+ locationTaxPercent: o.tax ?? ne.taxValue
17679
17706
  },
17680
17707
  display: {
17681
- clientName: a.clientName ?? A.clientName,
17708
+ clientName: a.clientName ?? N.clientName,
17682
17709
  jobTitle: a.jobTitle ?? C.jobTitle,
17683
17710
  reqId: i.jobClientRefrenceId ?? a.jobRefrenceId ?? i.jobRefrenceId ?? i.mspReqId,
17684
17711
  jobLocation: a.jobLocation ?? C.jobLocation,
17685
- employerName: j.empCompanyName,
17686
- employerLocation: M.name ?? j.empCompanyLocation ?? d,
17712
+ employerName: te.empCompanyName,
17713
+ employerLocation: ne.name ?? te.empCompanyLocation ?? d,
17687
17714
  submittedBy: wb(y) || a.signatureEmail || a.recruiterName || a.submitSource,
17688
17715
  email: a.email,
17689
17716
  candidateName: [a.firstName, a.lastName].filter(Boolean).join(" ") || a.candidateFullName,
17690
17717
  createdAt: i.createdAt,
17691
- submissionId: i.submissionId
17718
+ submissionId: i.submissionId,
17719
+ workforceEngagementId: Qy(E)
17692
17720
  },
17693
17721
  meta: i
17694
17722
  };
@@ -19188,7 +19216,6 @@ var BS = {
19188
19216
  "test cases"
19189
19217
  ],
19190
19218
  viewProposedRate: ["submissions"],
19191
- po: ["onboarding"],
19192
19219
  po_msa: ["onboarding"]
19193
19220
  };
19194
19221
  function VS(e, t) {
@@ -40576,7 +40603,6 @@ function Lk({ selectedIds: e, selectedRecords: t, onClose: n }) {
40576
40603
  billRate: e.proposedRate,
40577
40604
  payRate: e.employerRate,
40578
40605
  currency: e.currency,
40579
- referralRate: e.referralRate,
40580
40606
  vmsPercent: e.clientVmsPercent
40581
40607
  }), await jo(i, {
40582
40608
  candidateProposedRate: e.proposedRate,