@realtek/core-theme 0.0.256 → 0.0.258

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
@@ -1,5 +1,5 @@
1
1
  import { C as e, E as t, S as n, T as r, _ as i, a, b as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, o as g, p as _, r as v, s as y, t as b, u as x, v as S, w as C, x as w, y as T } from "./authApi-CVxnHdIU.js";
2
- import { $ as E, $n as D, $t as O, A as k, An as A, At as j, B as M, Bn as N, Bt as P, C as F, Cn as ee, Ct as te, D as ne, Dn as re, Dt as ie, E as ae, En as oe, Et as se, F as ce, Fn as le, Ft as ue, G as de, Gn as fe, Gt as pe, H as me, Hn as he, Ht as ge, I as _e, In as ve, It as ye, J as be, Jn as xe, Jt as Se, K as Ce, Kn as we, Kt as Te, L as Ee, Ln as De, Lt as Oe, M as ke, Mn as Ae, Mt as je, N as Me, Nn as Ne, Nt as Pe, O as Fe, On as Ie, Ot as Le, P as Re, Pn as ze, Pt as Be, Q as Ve, Qn as He, Qt as Ue, R as We, Rn as Ge, Rt as Ke, S as qe, Sn as Je, St as Ye, T as Xe, Tn as Ze, Tt as Qe, U as $e, Un as et, Ut as tt, V as nt, Vn as rt, Vt as it, W as at, Wn as ot, Wt as st, X as ct, Xn as lt, Xt as ut, Y as dt, Yn as ft, Yt as pt, Z as mt, Zn as ht, Zt as gt, _ as _t, _n as vt, _t as yt, a as bt, an as xt, ar as St, at as Ct, b as wt, bn as Tt, bt as Et, c as Dt, cn as Ot, ct as kt, d as At, dn as jt, dt as Mt, en as Nt, er as Pt, et as Ft, f as It, fn as Lt, ft as Rt, g as zt, gn as Bt, gt as Vt, h as Ht, hn as Ut, ht as Wt, i as Gt, in as Kt, ir as qt, it as Jt, j as Yt, jn as Xt, jt as Zt, k as Qt, kn as $t, kt as en, l as tn, ln as nn, lt as rn, m as an, mn as on, mt as sn, n as cn, nn as ln, nr as un, nt as dn, o as fn, on as pn, or as mn, ot as hn, p as gn, pn as _n, pt as vn, q as yn, qn as bn, qt as xn, r as Sn, rn as Cn, rr as wn, rt as Tn, s as En, sn as Dn, sr as On, st as kn, t as An, tn as jn, tr as Mn, tt as Nn, u as Pn, un as Fn, ut as In, v as Ln, vn as Rn, vt as zn, w as Bn, wn as Vn, wt as Hn, x as Un, xn as Wn, xt as Gn, y as Kn, yn as qn, yt as Jn, z as Yn, zn as Xn, zt as Zn } from "./Breadcrumb-DD-QBb4T.js";
2
+ import { $ as E, $n as D, $t as O, A as k, An as A, At as j, B as M, Bn as N, Bt as P, C as F, Cn as ee, Ct as te, D as ne, Dn as re, Dt as ie, E as ae, En as oe, Et as se, F as ce, Fn as le, Ft as ue, G as de, Gn as fe, Gt as pe, H as me, Hn as he, Ht as ge, I as _e, In as ve, It as ye, J as be, Jn as xe, Jt as Se, K as Ce, Kn as we, Kt as Te, L as Ee, Ln as De, Lt as Oe, M as ke, Mn as Ae, Mt as je, N as Me, Nn as Ne, Nt as Pe, O as Fe, On as Ie, Ot as Le, P as Re, Pn as ze, Pt as Be, Q as Ve, Qn as He, Qt as Ue, R as We, Rn as Ge, Rt as Ke, S as qe, Sn as Je, St as Ye, T as Xe, Tn as Ze, Tt as Qe, U as $e, Un as et, Ut as tt, V as nt, Vn as rt, Vt as it, W as at, Wn as ot, Wt as st, X as ct, Xn as lt, Xt as ut, Y as dt, Yn as ft, Yt as pt, Z as mt, Zn as ht, Zt as gt, _ as _t, _n as vt, _t as yt, a as bt, an as xt, ar as St, at as Ct, b as wt, bn as Tt, bt as Et, c as Dt, cn as Ot, ct as kt, d as At, dn as jt, dt as Mt, en as Nt, er as Pt, et as Ft, f as It, fn as Lt, ft as Rt, g as zt, gn as Bt, gt as Vt, h as Ht, hn as Ut, ht as Wt, i as Gt, in as Kt, ir as qt, it as Jt, j as Yt, jn as Xt, jt as Zt, k as Qt, kn as $t, kt as en, l as tn, ln as nn, lt as rn, m as an, mn as on, mt as sn, n as cn, nn as ln, nr as un, nt as dn, o as fn, on as pn, or as mn, ot as hn, p as gn, pn as _n, pt as vn, q as yn, qn as bn, qt as xn, r as Sn, rn as Cn, rr as wn, rt as Tn, s as En, sn as Dn, sr as On, st as kn, t as An, tn as jn, tr as Mn, tt as Nn, u as Pn, un as Fn, ut as In, v as Ln, vn as Rn, vt as zn, w as Bn, wn as Vn, wt as Hn, x as Un, xn as Wn, xt as Gn, y as Kn, yn as qn, yt as Jn, z as Yn, zn as Xn, zt as Zn } from "./Breadcrumb-Cpb7Ouex.js";
3
3
  import { i as Qn } from "./diceCandidateMapper-BKRGwz7g.js";
4
4
  import $n, { Fragment as er, createContext as tr, useCallback as nr, useContext as rr, useEffect as I, useMemo as L, useRef as ir, useState as R } from "react";
5
5
  import { Alert as ar, AutoComplete as or, Avatar as sr, Badge as cr, Breadcrumb as lr, Button as z, Card as ur, Checkbox as dr, Col as B, Collapse as fr, DatePicker as pr, Divider as mr, Drawer as hr, Dropdown as gr, Empty as _r, Flex as vr, Form as V, Input as H, InputNumber as yr, Layout as br, Mentions as xr, Menu as Sr, Modal as Cr, Pagination as wr, Popconfirm as Tr, Popover as Er, Progress as Dr, Radio as Or, Result as kr, Row as Ar, Select as U, Space as W, Spin as jr, Statistic as Mr, Steps as Nr, Switch as G, Table as Pr, Tabs as Fr, Tag as K, TimePicker as Ir, Tooltip as q, Tree as Lr, Typography as Rr, Upload as zr, message as J } from "antd";
@@ -6303,6 +6303,11 @@ var Ap = ({ label: e, message: t, value: n, rule: r, form: i, name: a, compare:
6303
6303
  return !i && e?.type === "text-editor" && (i = wp(r) === ""), i ? Promise.reject(Error(t ?? "Mandatory Field")) : Promise.resolve();
6304
6304
  } }),
6305
6305
  email: ({ label: e, message: t }) => Qt(e, t),
6306
+ emailTags: ({ label: e, message: t }) => ({ validator: (n, r) => {
6307
+ if (!Array.isArray(r) || r.length === 0) return Promise.resolve();
6308
+ let i = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, a = r.filter((e) => !i.test(String(e).trim()));
6309
+ return a.length > 0 ? Promise.reject(Error(t ?? `${e} contains invalid email address(es): ${a.join(", ")}`)) : Promise.resolve();
6310
+ } }),
6306
6311
  url: ({ label: e, message: t }) => ({
6307
6312
  type: "url",
6308
6313
  message: t ?? `Enter valid ${e}`
@@ -17529,7 +17534,7 @@ function Ex({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17529
17534
  t,
17530
17535
  n,
17531
17536
  f
17532
- ]), m = Bb(d), [h, g] = R(p.proposedRate), [_, v] = R(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [y, b] = R(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [x, S] = R(t?.referral?.referalRate ?? t?.referral?.referralRate ?? t?.engagement?.financeApproval?.referralRate ?? 0), [C, w] = R(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [T, E] = R(!1), [D, O] = R(!1), [k, A] = R(""), [j, M] = R(!1), [N, P] = R(""), [ee, te] = R(!1), [ne, re] = R(""), [ie, ae] = R(!1), oe = d.sections.referral ?? {}, [se, ce] = R(!!(t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(y) > 0 || !!_))), le = oe.toggle === !0, ue = Number(y) > 0, de = oe.show === !0 ? le ? se : !0 : oe.show === "ifEnabled" ? se : oe.show === "ifExists" ? ue : !1, fe = m && de, pe = d.rejection?.show ? zb(d, t) : "", me = L(() => ax(p, {
17537
+ ]), m = Bb(d), [h, g] = R(p.proposedRate), [_, v] = R(t?.engagement?.financeApproval?.referralId ?? t?.referral?._id ?? null), [y, b] = R(t?.engagement?.financeApproval?.referralRate ?? t?.referral?.referalRate ?? 0), [x, S] = R(t?.referral?.isNewReferral ? 0 : t?.referral?.referalRate ?? t?.referral?.referralRate ?? t?.engagement?.financeApproval?.referralRate ?? 0), [C, w] = R(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [T, E] = R(!1), [D, O] = R(!1), [k, A] = R(""), [j, M] = R(!1), [N, P] = R(""), [ee, te] = R(!1), [ne, re] = R(""), [ie, ae] = R(!1), oe = d.sections.referral ?? {}, [se, ce] = R(!!(t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(y) > 0 || !!_))), le = oe.toggle === !0, ue = Number(y) > 0, de = oe.show === !0 ? le ? se : !0 : oe.show === "ifEnabled" ? se : oe.show === "ifExists" ? ue : !1, fe = m && de, pe = d.rejection?.show ? zb(d, t) : "", me = L(() => ax(p, {
17533
17538
  proposedRate: d.sections.rateBreakdown?.proposed?.editable ? h : void 0,
17534
17539
  includeReferral: fe,
17535
17540
  referralRate: y
@@ -17547,10 +17552,10 @@ function Ex({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17547
17552
  }, we = (d.header?.crumbFields ?? []).map((e) => xx(e, Ce)).filter((e) => e !== "-" && e !== "" && e != null).join(d.header?.crumbSeparator ?? " · "), Te = d.sections.rateBreakdown?.proposed?.policy ?? sx, Ee = d.sections.referral?.policy ?? Te, De = d.labels?.employerVms ?? {}, Oe = me.employerVmsRequired && me.employerVmsAvailable, ke = !!d.sections.rateBreakdown?.proposed?.editable, Ae = Number(me.clientJobRate) || 0, je = ke && Ae > 0 && Number(h) > Ae, Me = d.actions?.primary, Ne = !!Me?.requireProposedRate && !(Number(me.proposedRate) > 0), Pe = Ne ? "Enter the Proposed Rate first — it drives the margin and the rate sent for approval." : je ? `Proposed rate can’t exceed the Client Job Rate (${mx(Ae, he)}${Se}).` : "", Fe = (e) => {
17548
17553
  v(e), ae(!1);
17549
17554
  let t = (i ?? []).find((t) => t.value === e);
17550
- if (t?.lastRate != null) {
17555
+ if (!t?.isNewReferral && t?.lastRate != null && t.lastRate !== "") {
17551
17556
  let e = Number(t.lastRate) || 0;
17552
17557
  b(e), S(e);
17553
- }
17558
+ } else S(0);
17554
17559
  t?.type && w(t.type), a?.(e, t);
17555
17560
  }, Ie = (e) => {
17556
17561
  let t = e.target.checked;
@@ -17610,7 +17615,7 @@ function Ex({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17610
17615
  re("");
17611
17616
  }
17612
17617
  }, ze = d.actions.primary, Be = d.actions.reject;
17613
- return /* @__PURE__ */ Z("div", {
17618
+ return !ge && ze?.requireProposedRate && !_e || je && `${mx(Ae, he)}`, /* @__PURE__ */ Z("div", {
17614
17619
  className: `fa-panel fa-variant-${u}`,
17615
17620
  children: [
17616
17621
  d.header?.show !== !1 && /* @__PURE__ */ X("div", {
@@ -18015,13 +18020,13 @@ function Ex({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18015
18020
  }]
18016
18021
  })]
18017
18022
  }),
18018
- _ && /* @__PURE__ */ Z("div", {
18023
+ _ && /* @__PURE__ */ X("div", {
18019
18024
  className: "fa-referral-note",
18020
- children: [
18025
+ children: x ? /* @__PURE__ */ Z(Y, { children: [
18021
18026
  "Last referral rate paid to this company:",
18022
18027
  " ",
18023
- /* @__PURE__ */ X("b", { children: x ? mx(x, he) : "—" })
18024
- ]
18028
+ /* @__PURE__ */ X("b", { children: mx(x, he) })
18029
+ ] }) : /* @__PURE__ */ X("b", { children: "New referral" })
18025
18030
  })
18026
18031
  ]
18027
18032
  }) : /* @__PURE__ */ Z("div", {