@realtek/core-theme 0.0.243 → 0.0.245

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 ee, Bt as te, C as ne, Cn as re, Ct as ie, D as ae, Dn as oe, Dt as se, E as ce, En as le, Et as ue, F as N, Fn as P, Ft as de, G as fe, Gn as pe, Gt as me, H as he, Hn as ge, Ht as _e, I as ve, In as ye, It as be, J as xe, Jn as Se, Jt as Ce, K as we, Kn as Te, Kt as Ee, L as De, Ln as Oe, Lt as ke, M as Ae, Mn as je, Mt as Me, N as Ne, Nn as Pe, Nt as Fe, O as Ie, On as Le, Ot as Re, P as ze, Pn as Be, Pt as Ve, Q as He, Qn as Ue, Qt as We, R as Ge, Rn as Ke, Rt as qe, S as Je, Sn as Ye, St as Xe, T as Ze, Tn as Qe, Tt as $e, U as et, Un as tt, Ut as nt, V as rt, Vn as it, Vt as at, W as ot, Wn as st, Wt as ct, X as lt, Xn as ut, Xt as dt, Y as ft, Yn as pt, Yt as mt, Z as ht, Zn as gt, Zt as _t, _ as vt, _n as yt, _t as bt, a as xt, an 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, et as Pt, f as Ft, fn as It, ft as Lt, g as Rt, gn as zt, gt as Bt, h as Vt, hn as Ht, ht as Ut, i as Wt, in as Gt, it as Kt, j as qt, jn as Jt, jt as Yt, k as Xt, kn as Zt, kt as Qt, l as $t, ln as en, lt as tn, m as nn, mn as rn, mt as an, n as on, nn as sn, nt as cn, o as ln, on as un, ot as dn, p as fn, pn, pt as mn, q as hn, qn as gn, qt as _n, r as vn, rn as yn, rt as bn, s as xn, sn as Sn, st as Cn, t as wn, tn as Tn, tt as En, u as Dn, un as On, ut as kn, v as An, vn as jn, vt as Mn, w as Nn, wn as Pn, wt as Fn, x as In, xn as Ln, xt as Rn, y as zn, yn as Bn, yt as Vn, z as Hn, zn as Un, zt as Wn } from "./Breadcrumb-DZ0iP9FP.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 ee, Bt as te, C as ne, Cn as re, Ct as ie, D as ae, Dn as oe, Dt as se, E as ce, En as le, Et as ue, F as N, Fn as P, Ft as de, G as fe, Gn as pe, Gt as me, H as he, Hn as ge, Ht as _e, I as ve, In as ye, It as be, J as xe, Jn as Se, Jt as Ce, K as we, Kn as Te, Kt as Ee, L as De, Ln as Oe, Lt as ke, M as Ae, Mn as je, Mt as Me, N as Ne, Nn as Pe, Nt as Fe, O as Ie, On as Le, Ot as Re, P as ze, Pn as Be, Pt as Ve, Q as He, Qn as Ue, Qt as We, R as Ge, Rn as Ke, Rt as qe, S as Je, Sn as Ye, St as Xe, T as Ze, Tn as Qe, Tt as $e, U as et, Un as tt, Ut as nt, V as rt, Vn as it, Vt as at, W as ot, Wn as st, Wt as ct, X as lt, Xn as ut, Xt as dt, Y as ft, Yn as pt, Yt as mt, Z as ht, Zn as gt, Zt as _t, _ as vt, _n as yt, _t as bt, a as xt, an 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, et as Pt, f as Ft, fn as It, ft as Lt, g as Rt, gn as zt, gt as Bt, h as Vt, hn as Ht, ht as Ut, i as Wt, in as Gt, it as Kt, j as qt, jn as Jt, jt as Yt, k as Xt, kn as Zt, kt as Qt, l as $t, ln as en, lt as tn, m as nn, mn as rn, mt as an, n as on, nn as sn, nt as cn, o as ln, on as un, ot as dn, p as fn, pn, pt as mn, q as hn, qn as gn, qt as _n, r as vn, rn as yn, rt as bn, s as xn, sn as Sn, st as Cn, t as wn, tn as Tn, tt as En, u as Dn, un as On, ut as kn, v as An, vn as jn, vt as Mn, w as Nn, wn as Pn, wt as Fn, x as In, xn as Ln, xt as Rn, y as zn, yn as Bn, yt as Vn, z as Hn, zn as Un, zt as Wn } from "./Breadcrumb-CGuegQfB.js";
3
3
  import { i as Gn } from "./diceCandidateMapper-BKRGwz7g.js";
4
4
  import Kn, { Fragment as qn, createContext as Jn, useCallback as Yn, useContext as Xn, useEffect as F, useMemo as I, useRef as Zn, useState as L } from "react";
5
5
  import { Alert as Qn, AutoComplete as $n, Avatar as er, Badge as tr, Breadcrumb as nr, Button as R, Card as rr, Checkbox as ir, Col as z, Collapse as ar, DatePicker as or, Divider as sr, Drawer as cr, Dropdown as lr, Empty as ur, Flex as dr, Form as B, Input as V, InputNumber as fr, Layout as pr, Mentions as mr, Menu as hr, Modal as gr, Pagination as _r, Popconfirm as vr, Popover as yr, Progress as br, Radio as xr, Result as Sr, Row as Cr, Select as H, Space as U, Spin as wr, Statistic as Tr, Steps as Er, Switch as W, Table as Dr, Tabs as Or, Tag as G, TimePicker as kr, Tooltip as K, Tree as Ar, Typography as jr, Upload as Mr, message as q } from "antd";
@@ -9942,7 +9942,11 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
9942
9942
  let w = I(() => yh(i), [i]), T = {
9943
9943
  proposedRate: "Proposed Rate",
9944
9944
  candidateBudget: "Candidate Rate"
9945
- }, E = (e) => {
9945
+ }, E = (e, t, n) => {
9946
+ let r = `${e}.`;
9947
+ for (let i of t ?? []) for (let t of i?.fields ?? []) if (String(t?.field ?? "").startsWith(r)) return Xm(t, n) || T[e] || e;
9948
+ return T[e] || e;
9949
+ }, D = (e) => {
9946
9950
  let t = Object.entries(e || {}), n = t.find(([e, t]) => /(rate|budget|amount)/i.test(e) && !/(currency|symbol|unit|type)/i.test(e) && (typeof t == "number" || typeof t == "string" && t.trim() !== "" && !Number.isNaN(Number(t)))), r = t.find(([e]) => /currencysymbol/i.test(e))?.[1] || t.find(([e]) => /currency/i.test(e))?.[1] || t.find(([e]) => /symbol/i.test(e))?.[1] || "", i = t.find(([e]) => /unit/i.test(e))?.[1] || "", a = e?.timestamp?.$date ?? e?.timestamp ?? e?.updatedAt?.$date ?? e?.updatedAt ?? e?.changedAt?.$date ?? e?.changedAt, o = e?.updatedBy ?? e?.changedBy, s = n ? Number(n[1]) : null, c = {
9947
9951
  USD: "$",
9948
9952
  INR: "₹",
@@ -9970,30 +9974,30 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
9970
9974
  when: a && za(a).isValid() ? za(a).format(`${En().dateFormat} · h:mm A`) : "",
9971
9975
  by: o == null ? "" : S[String(o)] || `User #${o}`
9972
9976
  };
9973
- }, D = I(() => {
9977
+ }, O = I(() => {
9974
9978
  if (!b) return [];
9975
- let e = /* @__PURE__ */ new Set();
9976
- i.forEach((t) => {
9977
- gh(t.appendHistory) && [t.historyField, ...t.historyFields || []].filter(Boolean).forEach((t) => e.add(t));
9979
+ let e = qm(i), t = /* @__PURE__ */ new Set();
9980
+ i.forEach((e) => {
9981
+ gh(e.appendHistory) && [e.historyField, ...e.historyFields || []].filter(Boolean).forEach((e) => t.add(e));
9978
9982
  });
9979
- let t = [];
9980
- return e.forEach((e) => {
9981
- let n = b[e];
9982
- if (!Array.isArray(n) || n.length === 0) return;
9983
- let r = n.filter((e) => e && (e.timestamp || e.updatedAt || e.changedAt));
9984
- r.length !== 0 && t.push({
9985
- key: e,
9986
- label: T[e] || e,
9987
- entries: [...r].reverse().map(E)
9983
+ let n = [];
9984
+ return t.forEach((t) => {
9985
+ let r = b[t];
9986
+ if (!Array.isArray(r) || r.length === 0) return;
9987
+ let a = r.filter((e) => e && (e.timestamp || e.updatedAt || e.changedAt));
9988
+ a.length !== 0 && n.push({
9989
+ key: t,
9990
+ label: E(t, i, e),
9991
+ entries: [...a].reverse().map(D)
9988
9992
  });
9989
- }), t;
9993
+ }), n;
9990
9994
  }, [
9991
9995
  b,
9992
9996
  i,
9993
9997
  S
9994
- ]), O = e === "job", k = I(() => O ? vh(i) : null, [O, i]), A = () => {
9998
+ ]), k = e === "job", A = I(() => k ? vh(i) : null, [k, i]), j = () => {
9995
9999
  p(!1), h("");
9996
- }, j = async () => {
10000
+ }, M = async () => {
9997
10001
  if (!m.trim()) {
9998
10002
  q.warning("Please enter a job description");
9999
10003
  return;
@@ -10012,16 +10016,16 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10012
10016
  } finally {
10013
10017
  _(!1), l(!1);
10014
10018
  }
10015
- }, M = (e) => {
10019
+ }, ee = (e) => {
10016
10020
  let t = Number(e.detailCol);
10017
10021
  if (Number.isFinite(t) && t > 0) return Math.max(1, Math.min(3, Math.round(t / 8)));
10018
10022
  let n = typeof e.value == "string" ? e.value : "";
10019
10023
  return e.renderType === "document" || e.type === "text-editor" || n.length > 120 ? 3 : /\s(?:·|-|–|\/)\s/.test(n) && n.length >= 16 ? 2 : 1;
10020
- }, ee = (e) => e.renderType === "document" || e.type === "text-editor" ? !0 : (typeof e.value == "string" ? e.value : "").length > 60, te = (e, t = "") => {
10021
- let n = e.label ?? e.field, r = ee(e), i = typeof e.value == "string" ? e.value : void 0;
10024
+ }, te = (e) => e.renderType === "document" || e.type === "text-editor" ? !0 : (typeof e.value == "string" ? e.value : "").length > 60, ne = (e, t = "") => {
10025
+ let n = e.label ?? e.field, r = te(e), i = typeof e.value == "string" ? e.value : void 0;
10022
10026
  return /* @__PURE__ */ Y("div", {
10023
10027
  className: `v1-detail-cell${r ? " v1-detail-cell--wrap" : ""}`,
10024
- style: { "--v1-cell-span": M(e) },
10028
+ style: { "--v1-cell-span": ee(e) },
10025
10029
  children: /* @__PURE__ */ X("div", {
10026
10030
  className: "v1-detail-field",
10027
10031
  title: !r && i ? `${n}: ${i}` : void 0,
@@ -10033,16 +10037,16 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10033
10037
  }), /* @__PURE__ */ Y(ph, { field: e })]
10034
10038
  })
10035
10039
  }, `${e.field}${t}`);
10036
- }, ne = /^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}|$)/, re = (e, t) => {
10040
+ }, re = /^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}|$)/, ie = (e, t) => {
10037
10041
  if (t == null || typeof t == "object") return "";
10038
10042
  let n = String(t).trim();
10039
10043
  if (!n) return "";
10040
- if (e?.type === "date" || e?.renderType === "date" || ne.test(n)) {
10044
+ if (e?.type === "date" || e?.renderType === "date" || re.test(n)) {
10041
10045
  let t = za(n);
10042
10046
  if (t.isValid()) return t.format(e?.renderOptions?.dateFormat || En().dateFormat);
10043
10047
  }
10044
10048
  return (e?.formatter === "phone" || e?.type === "phone") && Pt(n) || n;
10045
- }, ie = (e, t) => {
10049
+ }, ae = (e, t) => {
10046
10050
  let n = String(e?.label ?? "").trim();
10047
10051
  if (!n) return "";
10048
10052
  let r = String(t ?? "").toLowerCase().split(/[\s/]+/).filter(Boolean), i = n.split(/\s+/), a = 0;
@@ -10052,18 +10056,18 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10052
10056
  a += 1;
10053
10057
  }
10054
10058
  return i.slice(a).join(" ").trim();
10055
- }, ae = (e, t, n, r) => {
10059
+ }, oe = (e, t, n, r) => {
10056
10060
  let i = e.map((e) => ({
10057
10061
  field: e,
10058
10062
  cell: n(e)
10059
- })), a = i.filter(({ cell: e }) => ce(e)).map(({ cell: e }) => ({
10063
+ })), a = i.filter(({ cell: e }) => le(e)).map(({ cell: e }) => ({
10060
10064
  ...e,
10061
10065
  renderType: "document"
10062
- })).filter((e) => Ne(e.value).length > 0), o = typeof t.combineLabel == "string" && t.combineLabel.trim() ? t.combineLabel : t.label ?? t.field, s = i.filter(({ cell: e }) => !ce(e)).map(({ field: e, cell: t }) => ({
10066
+ })).filter((e) => Ne(e.value).length > 0), o = typeof t.combineLabel == "string" && t.combineLabel.trim() ? t.combineLabel : t.label ?? t.field, s = i.filter(({ cell: e }) => !le(e)).map(({ field: e, cell: t }) => ({
10063
10067
  key: e.field,
10064
- label: ie(e, o),
10065
- text: re(e, t.value)
10066
- })).filter((e) => e.text !== ""), c = s.map((e) => `${e.label ? `${e.label} ` : ""}${e.text}`).join(" · "), l = M({
10068
+ label: ae(e, o),
10069
+ text: ie(e, t.value)
10070
+ })).filter((e) => e.text !== ""), c = s.map((e) => `${e.label ? `${e.label} ` : ""}${e.text}`).join(" · "), l = ee({
10067
10071
  detailCol: t.detailCol,
10068
10072
  value: c
10069
10073
  });
@@ -10101,7 +10105,7 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10101
10105
  ]
10102
10106
  })
10103
10107
  }, `${t.field}-merged${r}`);
10104
- }, oe = (e, t, n = "") => {
10108
+ }, se = (e, t, n = "") => {
10105
10109
  let r = /* @__PURE__ */ new Set(), i = [];
10106
10110
  return e.forEach((a) => {
10107
10111
  let o = a.combineKey?.trim?.();
@@ -10111,13 +10115,13 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10111
10115
  let a = e.filter((e) => e.combineKey?.trim?.() === o);
10112
10116
  if (a.length > 1) {
10113
10117
  let e = a.find((e) => e.combineLabel) ?? a[0];
10114
- i.push(ae(a, e, t, n));
10118
+ i.push(oe(a, e, t, n));
10115
10119
  return;
10116
10120
  }
10117
10121
  }
10118
- i.push(te(t(a), n));
10122
+ i.push(ne(t(a), n));
10119
10123
  }), i;
10120
- }, se = I(() => {
10124
+ }, ce = I(() => {
10121
10125
  let e = {};
10122
10126
  for (let t of v) {
10123
10127
  let n = t.fieldName || t.field || "file";
@@ -10128,25 +10132,25 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10128
10132
  });
10129
10133
  }
10130
10134
  return e;
10131
- }, [v]), ce = (e) => e.type === "file" || e.type === "document" || e.renderType === "document", le = (e) => se[e.field] || e.fileKey && se[e.fileKey] || null, ue = (e) => String(e?.name || e?.location || "").trim().toLowerCase(), N = (e) => {
10135
+ }, [v]), le = (e) => e.type === "file" || e.type === "document" || e.renderType === "document", ue = (e) => ce[e.field] || e.fileKey && ce[e.fileKey] || null, N = (e) => String(e?.name || e?.location || "").trim().toLowerCase(), P = (e) => {
10132
10136
  let [t] = Ne(e);
10133
- return !t || !t.location && !t.url ? null : ue(t);
10134
- }, P = (e, t = []) => {
10137
+ return !t || !t.location && !t.url ? null : N(t);
10138
+ }, de = (e, t = []) => {
10135
10139
  let n = /* @__PURE__ */ new Set(), r = [], i = (e) => {
10136
10140
  if (e == null || e === "") return;
10137
- let t = N(e);
10141
+ let t = P(e);
10138
10142
  t !== null && (t && n.has(t) || (t && n.add(t), r.push(e)));
10139
10143
  };
10140
10144
  return t.forEach(i), (Array.isArray(e) ? e : [e]).forEach(i), r;
10141
- }, de = (e) => Ne(e).map(ue).filter(Boolean), fe = (e) => {
10145
+ }, fe = (e) => Ne(e).map(N).filter(Boolean), pe = (e) => {
10142
10146
  let t = (e.validations ?? []).find((e) => e?.type === "maxFiles");
10143
10147
  return t ? Math.max(1, Number(t.value ?? 1)) : gh(e.multiple) ? Math.max(1, Number(e.maxCount ?? 5)) : Math.max(1, Number(e.maxCount ?? 1));
10144
- }, pe = (e, t, n) => {
10145
- let r = fe(e);
10148
+ }, me = (e, t, n) => {
10149
+ let r = pe(e);
10146
10150
  if (t.length <= r) return t;
10147
- let [i] = de(n);
10148
- return (i ? [...t].sort((e, t) => Number(N(t) === i) - Number(N(e) === i)) : t).slice(0, r);
10149
- }, me = (e, t) => {
10151
+ let [i] = fe(n);
10152
+ return (i ? [...t].sort((e, t) => Number(P(t) === i) - Number(P(e) === i)) : t).slice(0, r);
10153
+ }, ge = (e, t) => {
10150
10154
  if (e.type === "file" || e.type === "document") return {
10151
10155
  ...e,
10152
10156
  renderType: "document",
@@ -10157,19 +10161,19 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10157
10161
  ...e,
10158
10162
  value: n
10159
10163
  };
10160
- }, ge = (e) => {
10161
- if (!ce(e)) return e;
10162
- let t = pe(e, P(e.value, le(e) ?? []), e.value);
10164
+ }, _e = (e) => {
10165
+ if (!le(e)) return e;
10166
+ let t = me(e, de(e.value, ue(e) ?? []), e.value);
10163
10167
  return t.length ? {
10164
10168
  ...e,
10165
10169
  renderType: "document",
10166
10170
  value: t
10167
10171
  } : e;
10168
- }, _e = (e, t, n) => {
10169
- let r = e.name ?? e.id ?? String(t), i = Array.isArray(e.rows) ? e.rows : [], a = new Set(i.flatMap((e) => de(e))), o = [], s = /* @__PURE__ */ new Set();
10170
- return n.filter(ce).forEach((e) => {
10171
- (le(e) ?? []).forEach((e) => {
10172
- let t = ue(e);
10172
+ }, ve = (e, t, n) => {
10173
+ let r = e.name ?? e.id ?? String(t), i = Array.isArray(e.rows) ? e.rows : [], a = new Set(i.flatMap((e) => fe(e))), o = [], s = /* @__PURE__ */ new Set();
10174
+ return n.filter(le).forEach((e) => {
10175
+ (ue(e) ?? []).forEach((e) => {
10176
+ let t = N(e);
10173
10177
  !t || a.has(t) || s.has(t) || (s.add(t), o.push(e));
10174
10178
  });
10175
10179
  }), /* @__PURE__ */ X(rr, {
@@ -10194,13 +10198,13 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10194
10198
  ]
10195
10199
  }), /* @__PURE__ */ Y("div", {
10196
10200
  className: "v1-detail-grid",
10197
- children: oe(n, (e) => me(e, t), `-${r}`)
10201
+ children: se(n, (e) => ge(e, t), `-${r}`)
10198
10202
  })]
10199
10203
  }, r)), o.length > 0 && /* @__PURE__ */ Y("div", {
10200
10204
  className: "v1-detail-addrow-item",
10201
10205
  children: /* @__PURE__ */ Y("div", {
10202
10206
  className: "v1-detail-grid",
10203
- children: te({
10207
+ children: ne({
10204
10208
  field: `${r}-files`,
10205
10209
  label: "Uploaded Files",
10206
10210
  renderType: "document",
@@ -10210,9 +10214,9 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10210
10214
  })
10211
10215
  })]
10212
10216
  }, r);
10213
- }, ve = (e, t) => {
10214
- let n = e.name ?? e.id ?? String(t), r = k ? e.fields.filter((e) => e.field !== k.key) : e.fields;
10215
- return r.length ? e.addRow ? _e(e, t, r) : /* @__PURE__ */ Y(rr, {
10217
+ }, ye = (e, t) => {
10218
+ let n = e.name ?? e.id ?? String(t), r = A ? e.fields.filter((e) => e.field !== A.key) : e.fields;
10219
+ return r.length ? e.addRow ? ve(e, t, r) : /* @__PURE__ */ Y(rr, {
10216
10220
  size: "small",
10217
10221
  className: "v1-card v1-detail-card",
10218
10222
  title: /* @__PURE__ */ Y(Eh, {
@@ -10221,17 +10225,17 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10221
10225
  }),
10222
10226
  children: /* @__PURE__ */ Y("div", {
10223
10227
  className: "v1-detail-grid",
10224
- children: oe(r, ge)
10228
+ children: se(r, _e)
10225
10229
  })
10226
10230
  }, n) : null;
10227
- }, ye = () => /* @__PURE__ */ Y(rr, {
10231
+ }, be = () => /* @__PURE__ */ Y(rr, {
10228
10232
  size: "small",
10229
10233
  className: "v1-card v1-detail-card",
10230
10234
  title: /* @__PURE__ */ Y(Eh, {
10231
10235
  icon: /* @__PURE__ */ Y(ki, {}),
10232
10236
  title: "Rate Details"
10233
10237
  }),
10234
- children: D.map((e, t) => /* @__PURE__ */ X("div", {
10238
+ children: O.map((e, t) => /* @__PURE__ */ X("div", {
10235
10239
  className: `v1-rh-section${t > 0 ? " v1-rh-section--gap" : ""}`,
10236
10240
  children: [/* @__PURE__ */ Y("div", {
10237
10241
  className: "v1-rh-section-title",
@@ -10273,7 +10277,7 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10273
10277
  }, t))
10274
10278
  })]
10275
10279
  }, e.key))
10276
- }, "rate-details-history"), be = (e) => /current_employer|employer_details/i.test(e.name || "") || (e.fields || []).some((e) => e.field === "employerId");
10280
+ }, "rate-details-history"), xe = (e) => /current_employer|employer_details/i.test(e.name || "") || (e.fields || []).some((e) => e.field === "employerId");
10277
10281
  return /* @__PURE__ */ Y(wr, {
10278
10282
  spinning: c,
10279
10283
  tip: "Loading detail fields...",
@@ -10289,11 +10293,11 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10289
10293
  }),
10290
10294
  !c && !u && w.length === 0 && /* @__PURE__ */ Y(ur, { description: "No detail fields are configured." }),
10291
10295
  w.flatMap((e, t) => {
10292
- let n = [ve(e, t)];
10293
- return be(e) && D.length > 0 && n.push(ye()), n;
10296
+ let n = [ye(e, t)];
10297
+ return xe(e) && O.length > 0 && n.push(be()), n;
10294
10298
  }),
10295
- D.length > 0 && !w.some(be) && ye(),
10296
- O && k?.value && /* @__PURE__ */ Y(rr, {
10299
+ O.length > 0 && !w.some(xe) && be(),
10300
+ k && A?.value && /* @__PURE__ */ Y(rr, {
10297
10301
  size: "small",
10298
10302
  className: "v1-card v1-detail-card",
10299
10303
  title: /* @__PURE__ */ Y(Eh, {
@@ -10318,7 +10322,7 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10318
10322
  rows: 10,
10319
10323
  value: m,
10320
10324
  onChange: (e) => h(e.target.value),
10321
- placeholder: k.hidePlaceholder ? void 0 : k.placeholder,
10325
+ placeholder: A.hidePlaceholder ? void 0 : A.placeholder,
10322
10326
  style: {
10323
10327
  fontSize: 13,
10324
10328
  lineHeight: 1.65,
@@ -10337,15 +10341,15 @@ function Oh({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10337
10341
  variant: "primary",
10338
10342
  size: "small",
10339
10343
  loading: g,
10340
- onClick: j,
10344
+ onClick: M,
10341
10345
  children: "Save & Parse"
10342
10346
  }), /* @__PURE__ */ Y(wu, {
10343
10347
  size: "small",
10344
- onClick: A,
10348
+ onClick: j,
10345
10349
  children: "Cancel"
10346
10350
  })]
10347
10351
  })]
10348
- }) : /* @__PURE__ */ Y(Dh, { value: k.value })
10352
+ }) : /* @__PURE__ */ Y(Dh, { value: A.value })
10349
10353
  })
10350
10354
  ]
10351
10355
  })