@realtek/core-theme 0.0.238 → 0.0.239

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 N, C as te, Cn as ne, Ct as re, D as ie, Dn as ae, Dt as oe, E as se, En as P, Et as F, 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, at as St, b as Ct, bn as wt, bt as Tt, c as Et, cn as Dt, ct as Ot, d as kt, dn as At, dt as jt, en as Mt, et as Nt, f as Pt, fn as Ft, ft as It, g as Lt, gn as Rt, gt as zt, h as Bt, hn as Vt, ht as Ht, i as Ut, in as Wt, it as Gt, j as Kt, jn as qt, jt as Jt, k as Yt, kn as Xt, kt as Zt, l as Qt, ln as $t, lt as en, m as tn, mn as nn, mt as rn, n as an, nn as on, nt as sn, o as cn, on as ln, ot as un, p as dn, pn as fn, pt as pn, q as mn, qn as hn, qt as gn, r as _n, rn as vn, rt as yn, s as bn, sn as xn, st as Sn, t as Cn, tn as wn, tt as Tn, u as En, un as Dn, ut as On, v as kn, vn as An, vt as jn, w as Mn, wn as Nn, wt as Pn, x as Fn, xn as In, xt as Ln, y as Rn, yn as zn, yt as Bn, z as Vn, zn as Hn, zt as Un } 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 N, C as te, Cn as ne, Ct as re, D as ie, Dn as ae, Dt as oe, E as se, En as ce, Et as le, F as P, Fn as F, 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, at as St, b as Ct, bn as wt, bt as Tt, c as Et, cn as Dt, ct as Ot, d as kt, dn as At, dt as jt, en as Mt, et as Nt, f as Pt, fn as Ft, ft as It, g as Lt, gn as Rt, gt as zt, h as Bt, hn as Vt, ht as Ht, i as Ut, in as Wt, it as Gt, j as Kt, jn as qt, jt as Jt, k as Yt, kn as Xt, kt as Zt, l as Qt, ln as $t, lt as en, m as tn, mn as nn, mt as rn, n as an, nn as on, nt as sn, o as cn, on as ln, ot as un, p as dn, pn as fn, pt as pn, q as mn, qn as hn, qt as gn, r as _n, rn as vn, rt as yn, s as bn, sn as xn, st as Sn, t as Cn, tn as wn, tt as Tn, u as En, un as Dn, ut as On, v as kn, vn as An, vt as jn, w as Mn, wn as Nn, wt as Pn, x as Fn, xn as In, xt as Ln, y as Rn, yn as zn, yt as Bn, z as Vn, zn as Hn, zt as Un } from "./Breadcrumb-DZ0iP9FP.js";
3
3
  import { i as Wn } from "./diceCandidateMapper-BKRGwz7g.js";
4
4
  import Gn, { Fragment as Kn, createContext as qn, useCallback as Jn, useContext as Yn, useEffect as I, useMemo as L, useRef as Xn, useState as R } from "react";
5
5
  import { Alert as Zn, AutoComplete as Qn, Avatar as $n, Badge as er, Breadcrumb as tr, Button as z, Card as nr, Checkbox as rr, Col as B, Collapse as ir, DatePicker as ar, Divider as or, Drawer as sr, Dropdown as cr, Empty as lr, Flex as ur, Form as V, Input as H, InputNumber as dr, Layout as fr, Mentions as pr, Menu as mr, Modal as hr, Pagination as gr, Popconfirm as _r, Popover as vr, Progress as yr, Radio as br, Result as xr, Row as Sr, Select as U, Space as W, Spin as Cr, Statistic as wr, Steps as Tr, Switch as G, Table as Er, Tabs as Dr, Tag as K, TimePicker as Or, Tooltip as q, Tree as kr, Typography as Ar, Upload as jr, message as J } from "antd";
@@ -4966,7 +4966,7 @@ function vf({ filters: e, onRemove: t, onClearAll: n }) {
4966
4966
  ]
4967
4967
  });
4968
4968
  }
4969
- function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [], breadcrumbItems: i = [], dataSource: s = [], className: c = "", initialPageSize: l = 10, onAction: u, onSummaryClick: f, rowKey: p, showSummaryButton: m = !1, summaryButtonLabel: g = "View Summary", summaryRoute: _, showFieldButton: v = !0, fieldButtonLabel: y = "View Field", fieldButtonRoute: b, tabs: x, tableClassName: S = "job-list-table", fields: C = ff, fieldOverrides: w = null, extraFields: T = ff, listName: E = "", loading: D = !1, total: O, current: k, pageSize: A, onPageChange: j, onPageSizeChange: M, onSearch: ee, toolbarExtra: N = null, showSearch: te = !0, searchPlaceholder: ne = "Min 3 Chars, press Enter to search", searchFields: re = ff, showViewToggle: ie = !1, activeView: ae = "list", onViewChange: oe, createAction: se, onRecordClick: P, selectedRecordId: F, selectionMode: ce = "checkbox", compact: le = !1, onSelectionChange: ue, selectedSource: de, onTabChange: fe, fetchData: pe = kc, responseMapper: me = Xl, queryParams: he = pf, defaultVisibleColumnCount: ge = 6, showAdd: _e = !0 }) {
4969
+ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [], breadcrumbItems: i = [], dataSource: s = [], className: c = "", initialPageSize: l = 10, onAction: u, onSummaryClick: f, rowKey: p, showSummaryButton: m = !1, summaryButtonLabel: g = "View Summary", summaryRoute: _, showFieldButton: v = !0, fieldButtonLabel: y = "View Field", fieldButtonRoute: b, tabs: x, tableClassName: S = "job-list-table", fields: C = ff, fieldOverrides: w = null, extraFields: T = ff, listName: E = "", loading: D = !1, total: O, current: k, pageSize: A, onPageChange: j, onPageSizeChange: M, onSearch: ee, toolbarExtra: N = null, showSearch: te = !0, searchPlaceholder: ne = "Min 3 Chars, press Enter to search", searchFields: re = ff, showViewToggle: ie = !1, activeView: ae = "list", onViewChange: oe, createAction: se, onRecordClick: ce, selectedRecordId: le, selectionMode: P = "checkbox", compact: F = !1, onSelectionChange: ue, selectedSource: de, onTabChange: fe, fetchData: pe = kc, responseMapper: me = Xl, queryParams: he = pf, defaultVisibleColumnCount: ge = 6, showAdd: _e = !0 }) {
4970
4970
  let ve = Fa(), ye = Pa(), be = hn(e), { canView: xe, canAdd: Se, canEdit: Ce, canDelete: we } = $c(be), Te = L(() => he ?? pf, [JSON.stringify(he ?? pf)]), [Ee] = La(), De = uf(Ee), [Oe, ke] = R("all"), [Ae, je] = R(""), [Me, Ne] = R(""), [Pe, Fe] = R(!1), [Ie, Le] = R([]), [Re, ze] = R([]), [Be, Ve] = R([]), [He, Ue] = R(0), [We, Ge] = R({
4971
4971
  current: De,
4972
4972
  pageSize: l
@@ -4987,9 +4987,9 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
4987
4987
  });
4988
4988
  return t.observe(e), () => t.disconnect();
4989
4989
  }, []);
4990
- let it = (e, t) => String(qd(e, t, p)), at = (e, t) => String(it(e, t)) === String(F ?? ""), ot = (e, t) => {
4990
+ let it = (e, t) => String(qd(e, t, p)), at = (e, t) => String(it(e, t)) === String(le ?? ""), ot = (e, t) => {
4991
4991
  let n = it(e, t);
4992
- n && P?.(e, n);
4992
+ n && ce?.(e, n);
4993
4993
  }, st = (e, t) => {
4994
4994
  ze(e), Ve(t), ue?.(e, t);
4995
4995
  }, [ct, lt] = R(s), [ut, dt] = R(s.length), [ft, pt] = R([]), [mt, ht] = R([]), [gt, _t] = R(""), [vt, yt] = R([]), [bt, xt] = R([]), [St, Ct] = R(!1), [wt, Tt] = R(null), [Et, Dt] = R(null), [Ot, kt] = R(!1), At = !!(j || M || ee), jt = At ? s : ct, Mt = At ? O ?? 0 : ut, Nt = At ? C : mt, Pt = L(() => jt.some((e) => Yu(e)), [jt]), Ft = L(() => Nt.some((e) => Ju(e)), [Nt]), It = Pt || Ft ? "card" : ae, Lt = n.length > 0 ? n : vt, Rt = r.length > 0 ? r : bt, zt = L(() => nf(Lt), [Lt]), Vt = L(() => new Map(tf(zt).map((e) => [e.key, e])), [zt]), Ht = L(() => ef(zt, (e) => {
@@ -5286,7 +5286,7 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5286
5286
  };
5287
5287
  });
5288
5288
  if (!(_n || At) && tt > 0 && t.length > 0) {
5289
- let n = e.width + (Tn && ce === "checkbox" ? 48 : 0) + Bd, r = t.reduce((e, t) => e + t.width, 0), i = tt - n - r;
5289
+ let n = e.width + (Tn && P === "checkbox" ? 48 : 0) + Bd, r = t.reduce((e, t) => e + t.width, 0), i = tt - n - r;
5290
5290
  i > 0 && r > 0 && t.forEach((e) => {
5291
5291
  e.width = Math.floor(e.width + i * (e.width / r));
5292
5292
  });
@@ -5308,7 +5308,7 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5308
5308
  ve,
5309
5309
  un,
5310
5310
  bn,
5311
- ce,
5311
+ P,
5312
5312
  Ke.sort,
5313
5313
  Ke.sortDir,
5314
5314
  tt,
@@ -5456,7 +5456,7 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5456
5456
  })]
5457
5457
  });
5458
5458
  return /* @__PURE__ */ Z("div", {
5459
- className: `antd dynamic-list-view${le ? " list-view--compact" : ""} ${c}`.trim(),
5459
+ className: `antd dynamic-list-view${F ? " list-view--compact" : ""} ${c}`.trim(),
5460
5460
  children: [
5461
5461
  i.length > 0 && /* @__PURE__ */ X("div", {
5462
5462
  className: "job-list-header",
@@ -5661,13 +5661,13 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5661
5661
  return /* @__PURE__ */ X(mf, {
5662
5662
  record: e,
5663
5663
  fields: vn,
5664
- selected: ce === "checkbox" ? Qe.includes(n) : at(e, t),
5664
+ selected: P === "checkbox" ? Qe.includes(n) : at(e, t),
5665
5665
  isControlled: At,
5666
5666
  onPreview: () => On(e),
5667
5667
  onSelect: () => Un(n),
5668
5668
  onPopupAction: kn,
5669
- onRecordClick: P ? () => ot(e, t) : void 0,
5670
- selectionMode: ce,
5669
+ onRecordClick: ce ? () => ot(e, t) : void 0,
5670
+ selectionMode: P,
5671
5671
  permissions: {
5672
5672
  canAdd: Se,
5673
5673
  canEdit: Ce,
@@ -5676,7 +5676,7 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5676
5676
  }, n);
5677
5677
  })
5678
5678
  }) : /* @__PURE__ */ X(Er, {
5679
- rowSelection: Tn && ce === "checkbox" ? {
5679
+ rowSelection: Tn && P === "checkbox" ? {
5680
5680
  type: "checkbox",
5681
5681
  fixed: !0,
5682
5682
  columnWidth: 48,
@@ -5708,14 +5708,14 @@ function yf({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5708
5708
  image: lr.PRESENTED_IMAGE_SIMPLE,
5709
5709
  description: En
5710
5710
  }) },
5711
- className: `${S} ${le ? "list-view-table--compact" : ""}`.trim(),
5712
- onRow: P ? (e, t) => ({
5711
+ className: `${S} ${F ? "list-view-table--compact" : ""}`.trim(),
5712
+ onRow: ce ? (e, t) => ({
5713
5713
  onClick: (n) => {
5714
5714
  Jd(n.target) || ot(e, t);
5715
5715
  },
5716
5716
  "aria-selected": at(e, t)
5717
5717
  }) : void 0,
5718
- rowClassName: F == null ? void 0 : (e, t) => at(e, t) ? "list-view-row--active" : "",
5718
+ rowClassName: le == null ? void 0 : (e, t) => at(e, t) ? "list-view-row--active" : "",
5719
5719
  rowKey: (e, t) => qd(e, t, p)
5720
5720
  })
5721
5721
  })
@@ -6443,7 +6443,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6443
6443
  open: !1,
6444
6444
  docs: [],
6445
6445
  index: 0
6446
- }), [O, k] = R(null), A = Xn([]), j = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", M = e.lookupFilterValueFrom ? Kf(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], ee = e.lookupFilterValueFrom && j ? [...n.slice(0, 2), ...Kf(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], N = V.useWatch(M, t), te = V.useWatch(ee, t), ne = dp(te) ? N : te, re = e.disabledByField ? Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.disabledByField] : [e.disabledByField] : ["__noop_disabled_watch__"], ie = V.useWatch(re, t), ae = e.disabledIf?.field ? Kf(e.disabledIf.field) : ["__noop_disabled_if__"], oe = e.disabledIf?.field && j ? [...n.slice(0, 2), ...Kf(e.disabledIf.field)] : ["__noop_disabled_if_row__"], se = V.useWatch(ae, t), P = V.useWatch(oe, t), F = e.disabledIf?.field ? Ut(e.disabledIf, dp(P) ? se : P) : !1, ce = Yn(np), le = p || !!e.disabled || F || (e.disabledByField ? Uf(ie) : !1) || !!d || ce, ue = e.lookupFilterValueFrom ? l[e.lookupFilterValueFrom] : void 0, de = dp(ue) ? ne : ue;
6446
+ }), [O, k] = R(null), A = Xn([]), j = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", M = e.lookupFilterValueFrom ? Kf(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], ee = e.lookupFilterValueFrom && j ? [...n.slice(0, 2), ...Kf(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], N = V.useWatch(M, t), te = V.useWatch(ee, t), ne = dp(te) ? N : te, re = e.disabledByField ? Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.disabledByField] : [e.disabledByField] : ["__noop_disabled_watch__"], ie = V.useWatch(re, t), ae = e.disabledIf?.field ? Kf(e.disabledIf.field) : ["__noop_disabled_if__"], oe = e.disabledIf?.field && j ? [...n.slice(0, 2), ...Kf(e.disabledIf.field)] : ["__noop_disabled_if_row__"], se = V.useWatch(ae, t), ce = V.useWatch(oe, t), le = e.disabledIf?.field ? Ut(e.disabledIf, dp(ce) ? se : ce) : !1, P = Yn(np), F = p || !!e.disabled || le || (e.disabledByField ? Uf(ie) : !1) || !!d || P, ue = e.lookupFilterValueFrom ? l[e.lookupFilterValueFrom] : void 0, de = dp(ue) ? ne : ue;
6447
6447
  I(() => {
6448
6448
  if (f === "location") {
6449
6449
  let t = !1;
@@ -6562,7 +6562,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6562
6562
  title: e.validator.title || e.label || "Field"
6563
6563
  } : null, xe = {
6564
6564
  ..._e,
6565
- disabled: le,
6565
+ disabled: F,
6566
6566
  placeholder: ge,
6567
6567
  prefix: e.icon ? null : Hf[e.field],
6568
6568
  value: i ?? "",
@@ -6595,7 +6595,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6595
6595
  if (f === "tagify") return /* @__PURE__ */ X(U, {
6596
6596
  value: i,
6597
6597
  allowClear: !0,
6598
- disabled: le,
6598
+ disabled: F,
6599
6599
  mode: "tags",
6600
6600
  placeholder: ge,
6601
6601
  onChange: ve
@@ -6605,7 +6605,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6605
6605
  allowClear: !0,
6606
6606
  showSearch: !0,
6607
6607
  filterOption: !1,
6608
- disabled: le,
6608
+ disabled: F,
6609
6609
  loading: g,
6610
6610
  options: pe,
6611
6611
  placeholder: ge,
@@ -6623,7 +6623,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6623
6623
  showSearch: o || s || void 0,
6624
6624
  optionFilterProp: "label",
6625
6625
  filterOption: o ? !1 : void 0,
6626
- disabled: le,
6626
+ disabled: F,
6627
6627
  loading: g,
6628
6628
  mode: me,
6629
6629
  options: pe,
@@ -6651,18 +6651,18 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6651
6651
  }
6652
6652
  if (f === "radio") return /* @__PURE__ */ X(br.Group, {
6653
6653
  value: i,
6654
- disabled: le,
6654
+ disabled: F,
6655
6655
  options: pe,
6656
6656
  onChange: (e) => ve(e.target.value)
6657
6657
  });
6658
6658
  if (f === "checkbox") return pe.length > 0 ? /* @__PURE__ */ X(rr.Group, {
6659
6659
  value: i,
6660
- disabled: le,
6660
+ disabled: F,
6661
6661
  options: pe,
6662
6662
  onChange: ve
6663
6663
  }) : /* @__PURE__ */ X(rr, {
6664
6664
  checked: !!(s ?? i),
6665
- disabled: le,
6665
+ disabled: F,
6666
6666
  onChange: (r) => {
6667
6667
  let i = r.target.checked;
6668
6668
  if (ve(i), e.linkedClearField && i) {
@@ -6674,7 +6674,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6674
6674
  });
6675
6675
  if (f === "text-editor") return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(lt, {
6676
6676
  value: i ?? t.getFieldValue(n) ?? "",
6677
- disabled: le,
6677
+ disabled: F,
6678
6678
  placeholder: ge,
6679
6679
  onChange: (e) => {
6680
6680
  if (be) {
@@ -6696,7 +6696,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6696
6696
  children: O
6697
6697
  })] });
6698
6698
  if (f === "date") return /* @__PURE__ */ X(ar, {
6699
- disabled: le,
6699
+ disabled: F,
6700
6700
  placeholder: ge,
6701
6701
  style: { width: "100%" },
6702
6702
  suffixIcon: /* @__PURE__ */ X(Wr, {}),
@@ -6706,7 +6706,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6706
6706
  onChange: (e) => ve(e)
6707
6707
  });
6708
6708
  if (f === "time") return /* @__PURE__ */ X(Or, {
6709
- disabled: le,
6709
+ disabled: F,
6710
6710
  placeholder: ge,
6711
6711
  style: { width: "100%" },
6712
6712
  value: i ?? null,
@@ -6762,7 +6762,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6762
6762
  maxCount: l,
6763
6763
  beforeUpload: S,
6764
6764
  onChange: C,
6765
- disabled: le
6765
+ disabled: F
6766
6766
  }, T = d.map((e, t) => /* @__PURE__ */ Z("div", {
6767
6767
  className: "v1-file-item",
6768
6768
  children: [
@@ -6820,7 +6820,7 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6820
6820
  display: "block"
6821
6821
  },
6822
6822
  children: /* @__PURE__ */ Z("div", {
6823
- className: `v1-upload-dropzone v1-upload-dropzone-center${le ? " v1-upload-dropzone-disabled" : ""}`,
6823
+ className: `v1-upload-dropzone v1-upload-dropzone-center${F ? " v1-upload-dropzone-disabled" : ""}`,
6824
6824
  children: [
6825
6825
  /* @__PURE__ */ Z("div", {
6826
6826
  className: "v1-upload-dropzone-title-row",
@@ -6871,13 +6871,13 @@ function Pp({ field: e, form: t, name: n, moduleName: r, value: i, checked: s, o
6871
6871
  maxCount: 1,
6872
6872
  beforeUpload: S,
6873
6873
  onChange: C,
6874
- disabled: le,
6874
+ disabled: F,
6875
6875
  style: {
6876
6876
  width: "100%",
6877
6877
  display: "block"
6878
6878
  },
6879
6879
  children: /* @__PURE__ */ Z("div", {
6880
- className: `v1-upload-dropzone v1-upload-dropzone-single${le ? " v1-upload-dropzone-disabled" : ""}`,
6880
+ className: `v1-upload-dropzone v1-upload-dropzone-single${F ? " v1-upload-dropzone-disabled" : ""}`,
6881
6881
  children: [
6882
6882
  /* @__PURE__ */ X(ni, { className: "v1-upload-cloud-icon" }),
6883
6883
  /* @__PURE__ */ X("span", {
@@ -6964,7 +6964,7 @@ function zp({ moduleName: e, action: t, authToken: n, clientId: r, region: i, fo
6964
6964
  I(() => (n && d(n), () => {
6965
6965
  n && h();
6966
6966
  }), [n]);
6967
- let E = l === "search", D = u ?? (E ? "Search" : "Create"), O = Fa(), k = Ia(), [A] = La(), [j] = V.useForm(), ee = V.useWatch([], j), [N, ne] = R(!1), [re, ie] = R({}), [ae, oe] = R([]), [se, P] = R(!!e), [F, le] = R(""), [ue, fe] = R(""), [pe, me] = R(!1), [ge, ve] = R({
6967
+ let E = l === "search", D = u ?? (E ? "Search" : "Create"), O = Fa(), k = Ia(), [A] = La(), [j] = V.useForm(), ee = V.useWatch([], j), [N, ne] = R(!1), [re, ie] = R({}), [ae, oe] = R([]), [se, ce] = R(!!e), [le, F] = R(""), [ue, fe] = R(""), [pe, me] = R(!1), [ge, ve] = R({
6968
6968
  searched: !1,
6969
6969
  rows: [],
6970
6970
  total: 0,
@@ -6975,7 +6975,7 @@ function zp({ moduleName: e, action: t, authToken: n, clientId: r, region: i, fo
6975
6975
  }), [ye, be] = R({
6976
6976
  current: 1,
6977
6977
  pageSize: 10
6978
- }), [xe, Se] = R({}), [Ce, De] = R("internal"), [Oe, ke] = R([]), [Ae, je] = R({}), [Me, Ne] = R([]), [Pe, Fe] = R(r ?? ""), [Ie, Le] = R(i ?? ""), [ze, Ve] = R(null), [He, Ue] = R(!1), [Ge, Ke] = R(null), [qe, Je] = R(() => /* @__PURE__ */ new Set()), Ye = e ? ae : a ?? Bf, Ze = e ? se : o, Qe = e ? F : s, [$e, tt] = R(""), nt = k?.jobId && k.jobId !== "_" ? k.jobId : A.get("jobId") || "";
6978
+ }), [xe, Se] = R({}), [Ce, De] = R("internal"), [Oe, ke] = R([]), [Ae, je] = R({}), [Me, Ne] = R([]), [Pe, Fe] = R(r ?? ""), [Ie, Le] = R(i ?? ""), [ze, Ve] = R(null), [He, Ue] = R(!1), [Ge, Ke] = R(null), [qe, Je] = R(() => /* @__PURE__ */ new Set()), Ye = e ? ae : a ?? Bf, Ze = e ? se : o, Qe = e ? le : s, [$e, tt] = R(""), nt = k?.jobId && k.jobId !== "_" ? k.jobId : A.get("jobId") || "";
6979
6979
  I(() => {
6980
6980
  if (r || y || !nt) return;
6981
6981
  let e = !1;
@@ -7109,7 +7109,7 @@ function zp({ moduleName: e, action: t, authToken: n, clientId: r, region: i, fo
7109
7109
  let n = !1;
7110
7110
  async function r() {
7111
7111
  try {
7112
- P(!0), le("");
7112
+ ce(!0), F("");
7113
7113
  let r = E ? await Te(e, "search", t) : await et({
7114
7114
  module: e,
7115
7115
  action: t,
@@ -7118,9 +7118,9 @@ function zp({ moduleName: e, action: t, authToken: n, clientId: r, region: i, fo
7118
7118
  });
7119
7119
  n || (oe(op(E ? r?.[0] : r)), E && fe(r?.[0]?.label || ""));
7120
7120
  } catch (t) {
7121
- console.error(`Failed to fetch ${e} form groups:`, t), n || le(t?.message || "Failed to fetch form groups");
7121
+ console.error(`Failed to fetch ${e} form groups:`, t), n || F(t?.message || "Failed to fetch form groups");
7122
7122
  } finally {
7123
- n || P(!1);
7123
+ n || ce(!1);
7124
7124
  }
7125
7125
  }
7126
7126
  return r(), () => {
@@ -7926,7 +7926,7 @@ function zp({ moduleName: e, action: t, authToken: n, clientId: r, region: i, fo
7926
7926
  });
7927
7927
  return (ge.actions ?? []).map(e);
7928
7928
  }, [ge.actions, S]), gn = (e) => {
7929
- let t = e.name ?? e.id ?? "", n = ce(st, t), r = !!n && n.leaderName !== t, i = n ? ot.find((e) => e.name === n.leaderName) ?? e : e, a = Math.max(0, Number(i.minRows ?? 0) || 0), o = Math.max(0, Number(i.maxRows ?? 0) || 0), s = n ? n.memberNames : [t], c = () => {
7929
+ let t = e.name ?? e.id ?? "", n = P(st, t), r = !!n && n.leaderName !== t, i = n ? ot.find((e) => e.name === n.leaderName) ?? e : e, a = Math.max(0, Number(i.minRows ?? 0) || 0), o = Math.max(0, Number(i.maxRows ?? 0) || 0), s = n ? n.memberNames : [t], c = () => {
7930
7930
  s.forEach((t) => {
7931
7931
  let n = ot.find((e) => e.name === t) ?? e;
7932
7932
  ct.current[t]?.add(at(n));
@@ -10109,24 +10109,24 @@ function Th({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10109
10109
  });
10110
10110
  }
10111
10111
  return e;
10112
- }, [v]), se = (e) => e.type === "file" || e.type === "document" || e.renderType === "document", P = (e) => oe[e.field] || e.fileKey && oe[e.fileKey] || null, F = (e) => String(e?.name || e?.location || "").trim().toLowerCase(), ce = (e) => {
10112
+ }, [v]), se = (e) => e.type === "file" || e.type === "document" || e.renderType === "document", ce = (e) => oe[e.field] || e.fileKey && oe[e.fileKey] || null, le = (e) => String(e?.name || e?.location || "").trim().toLowerCase(), P = (e) => {
10113
10113
  let [t] = Me(e);
10114
- return !t || !t.location && !t.url ? null : F(t);
10115
- }, le = (e, t = []) => {
10114
+ return !t || !t.location && !t.url ? null : le(t);
10115
+ }, F = (e, t = []) => {
10116
10116
  let n = /* @__PURE__ */ new Set(), r = [], i = (e) => {
10117
10117
  if (e == null || e === "") return;
10118
- let t = ce(e);
10118
+ let t = P(e);
10119
10119
  t !== null && (t && n.has(t) || (t && n.add(t), r.push(e)));
10120
10120
  };
10121
10121
  return t.forEach(i), (Array.isArray(e) ? e : [e]).forEach(i), r;
10122
- }, ue = (e) => Me(e).map(F).filter(Boolean), de = (e) => {
10122
+ }, ue = (e) => Me(e).map(le).filter(Boolean), de = (e) => {
10123
10123
  let t = (e.validations ?? []).find((e) => e?.type === "maxFiles");
10124
10124
  return t ? Math.max(1, Number(t.value ?? 1)) : ph(e.multiple) ? Math.max(1, Number(e.maxCount ?? 5)) : Math.max(1, Number(e.maxCount ?? 1));
10125
10125
  }, fe = (e, t, n) => {
10126
10126
  let r = de(e);
10127
10127
  if (t.length <= r) return t;
10128
10128
  let [i] = ue(n);
10129
- return (i ? [...t].sort((e, t) => Number(ce(t) === i) - Number(ce(e) === i)) : t).slice(0, r);
10129
+ return (i ? [...t].sort((e, t) => Number(P(t) === i) - Number(P(e) === i)) : t).slice(0, r);
10130
10130
  }, pe = (e, t) => {
10131
10131
  if (e.type === "file" || e.type === "document") return {
10132
10132
  ...e,
@@ -10140,7 +10140,7 @@ function Th({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10140
10140
  };
10141
10141
  }, he = (e) => {
10142
10142
  if (!se(e)) return e;
10143
- let t = fe(e, le(e.value, P(e) ?? []), e.value);
10143
+ let t = fe(e, F(e.value, ce(e) ?? []), e.value);
10144
10144
  return t.length ? {
10145
10145
  ...e,
10146
10146
  renderType: "document",
@@ -10149,8 +10149,8 @@ function Th({ moduleName: e, id: t, refreshKey: n = 0, onDescriptionSaved: r })
10149
10149
  }, ge = (e, t, n) => {
10150
10150
  let r = e.name ?? e.id ?? String(t), i = Array.isArray(e.rows) ? e.rows : [], a = new Set(i.flatMap((e) => ue(e))), o = [], s = /* @__PURE__ */ new Set();
10151
10151
  return n.filter(se).forEach((e) => {
10152
- (P(e) ?? []).forEach((e) => {
10153
- let t = F(e);
10152
+ (ce(e) ?? []).forEach((e) => {
10153
+ let t = le(e);
10154
10154
  !t || a.has(t) || s.has(t) || (s.add(t), o.push(e));
10155
10155
  });
10156
10156
  }), /* @__PURE__ */ Z(nr, {
@@ -11876,34 +11876,34 @@ function C_({ moduleName: e, id: t, customConfigName: n, authToken: r, onAction:
11876
11876
  id: t,
11877
11877
  moduleName: e,
11878
11878
  record: oe
11879
- }), P = cg(E)?.resolveScope, [F, ce] = R(void 0);
11879
+ }), ce = cg(E)?.resolveScope, [le, P] = R(void 0);
11880
11880
  I(() => {
11881
- if (typeof P != "function" || !t) return;
11881
+ if (typeof ce != "function" || !t) return;
11882
11882
  let n = !1, r = Number(localStorage.getItem("userId")) || 0;
11883
- return Promise.resolve().then(() => P({
11883
+ return Promise.resolve().then(() => ce({
11884
11884
  id: t,
11885
11885
  moduleName: e,
11886
11886
  record: oe,
11887
11887
  currentUserId: r
11888
11888
  })).then((e) => {
11889
- n || ce(e ?? null);
11889
+ n || P(e ?? null);
11890
11890
  }).catch(() => {
11891
- n || ce(null);
11891
+ n || P(null);
11892
11892
  }), () => {
11893
11893
  n = !0;
11894
11894
  };
11895
11895
  }, [
11896
- P,
11896
+ ce,
11897
11897
  t,
11898
11898
  e,
11899
11899
  g
11900
11900
  ]);
11901
- let le = typeof P != "function" || F !== void 0, ue = L(() => le ? v.filter((e) => e.showInDetail ?? e.showInList).map(x_).filter((e) => !y_(e, oe, b, F ?? void 0)) : [], [
11901
+ let F = typeof ce != "function" || le !== void 0, ue = L(() => F ? v.filter((e) => e.showInDetail ?? e.showInList).map(x_).filter((e) => !y_(e, oe, b, le ?? void 0)) : [], [
11902
11902
  b,
11903
11903
  v,
11904
11904
  oe,
11905
- F,
11906
- le
11905
+ le,
11906
+ F
11907
11907
  ]);
11908
11908
  function de(e) {
11909
11909
  let t = tl(e);
@@ -11989,7 +11989,7 @@ function C_({ moduleName: e, id: t, customConfigName: n, authToken: r, onAction:
11989
11989
  id: t
11990
11990
  });
11991
11991
  }, xe = ve.map((e) => {
11992
- let t = fl(e, oe, F ?? void 0), n = !t && b_(e, oe, b, F ?? void 0);
11992
+ let t = fl(e, oe, le ?? void 0), n = !t && b_(e, oe, b, le ?? void 0);
11993
11993
  return {
11994
11994
  key: e.key,
11995
11995
  label: t ? t.label : e.label,
@@ -12010,7 +12010,7 @@ function C_({ moduleName: e, id: t, customConfigName: n, authToken: r, onAction:
12010
12010
  badge: e.badgeField && r(e.badgeField) || void 0,
12011
12011
  tooltip: e.tooltip
12012
12012
  })), o = l ? [] : _e.map((e) => {
12013
- let t = fl(e, oe, F ?? void 0), n = !t && b_(e, oe, b, F ?? void 0);
12013
+ let t = fl(e, oe, le ?? void 0), n = !t && b_(e, oe, b, le ?? void 0);
12014
12014
  return {
12015
12015
  key: e.key,
12016
12016
  label: t ? t.label : e.label,
@@ -12144,7 +12144,7 @@ function C_({ moduleName: e, id: t, customConfigName: n, authToken: r, onAction:
12144
12144
  /* @__PURE__ */ Z("div", {
12145
12145
  className: "znx-dh-actions",
12146
12146
  children: [_e.map((e) => {
12147
- let t = fl(e, oe, F ?? void 0), n = !t && b_(e, oe, b, F ?? void 0), r = /* @__PURE__ */ X(z, {
12147
+ let t = fl(e, oe, le ?? void 0), n = !t && b_(e, oe, b, le ?? void 0), r = /* @__PURE__ */ X(z, {
12148
12148
  type: "text",
12149
12149
  disabled: !!t || !!n,
12150
12150
  className: `znx-dh-btn znx-dh-btn--${t ? t.tone : e.tone ?? "primary"}${t ? " znx-dh-btn--done" : ""}`,
@@ -12888,7 +12888,7 @@ function Sv({ field: e, form: t, name: n, value: r, checked: i, fileList: s, mod
12888
12888
  open: !1,
12889
12889
  docs: [],
12890
12890
  index: 0
12891
- }), [D, O] = R(null), [k, A] = R(0), j = Xn([]), M = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", ee = e.lookupFilterValueFrom ? Fe(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], N = e.lookupFilterValueFrom && M ? [...n.slice(0, 2), ...Fe(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], te = V.useWatch(ee, t), ne = V.useWatch(N, t), re = G_(ne) ? te : ne, ie = e.lookupFilterValueFrom ? u[e.lookupFilterValueFrom] : void 0, ae = G_(ie) ? re : ie, oe = e.disabledByField ? Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.disabledByField] : [e.disabledByField] : ["__noop_disabled_watch__"], se = V.useWatch(oe, t), P = e.disabledIf?.field ? Fe(e.disabledIf.field) : ["__noop_disabled_if__"], F = e.disabledIf?.field && M ? [...n.slice(0, 2), ...Fe(e.disabledIf.field)] : ["__noop_disabled_if_row__"], ce = V.useWatch(P, t), le = V.useWatch(F, t), ue = e.disabledIf?.field ? Ut(e.disabledIf, G_(le) ? ce : le) : !1, de = Gn.useContext(X_), fe = m || !!e.disabled || ue || (e.disabledByField ? U_(se) : !1) || !!f || de;
12891
+ }), [D, O] = R(null), [k, A] = R(0), j = Xn([]), M = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number", ee = e.lookupFilterValueFrom ? Fe(e.lookupFilterValueFrom) : [`__lookup_filter_${e.field}`], N = e.lookupFilterValueFrom && M ? [...n.slice(0, 2), ...Fe(e.lookupFilterValueFrom)] : ["__noop_row_filter__"], te = V.useWatch(ee, t), ne = V.useWatch(N, t), re = G_(ne) ? te : ne, ie = e.lookupFilterValueFrom ? u[e.lookupFilterValueFrom] : void 0, ae = G_(ie) ? re : ie, oe = e.disabledByField ? Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.disabledByField] : [e.disabledByField] : ["__noop_disabled_watch__"], se = V.useWatch(oe, t), ce = e.disabledIf?.field ? Fe(e.disabledIf.field) : ["__noop_disabled_if__"], le = e.disabledIf?.field && M ? [...n.slice(0, 2), ...Fe(e.disabledIf.field)] : ["__noop_disabled_if_row__"], P = V.useWatch(ce, t), F = V.useWatch(le, t), ue = e.disabledIf?.field ? Ut(e.disabledIf, G_(F) ? P : F) : !1, de = Gn.useContext(X_), fe = m || !!e.disabled || ue || (e.disabledByField ? U_(se) : !1) || !!f || de;
12892
12892
  I(() => {
12893
12893
  if (p === "location") {
12894
12894
  let t = !1;
@@ -13409,21 +13409,21 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
13409
13409
  t = !0;
13410
13410
  };
13411
13411
  }, [e]);
13412
- let P = L(() => rv(x, e, j, N), [
13412
+ let ce = L(() => rv(x, e, j, N), [
13413
13413
  x,
13414
13414
  e,
13415
13415
  j,
13416
13416
  N
13417
- ]), F = L(() => Re(P), [P]), le = Xn({}), ue = Xe({
13417
+ ]), le = L(() => Re(ce), [ce]), F = Xn({}), ue = Xe({
13418
13418
  form: v,
13419
- groups: P,
13419
+ groups: ce,
13420
13420
  module: e
13421
13421
  }), fe = L(() => {
13422
13422
  let e = {};
13423
- return P.forEach((t) => {
13423
+ return ce.forEach((t) => {
13424
13424
  t.addRow && (e[t.name] = ie(t));
13425
- }), _e(F, e);
13426
- }, [P, F]), pe = {
13425
+ }), _e(le, e);
13426
+ }, [ce, le]), pe = {
13427
13427
  jobs: {
13428
13428
  list: "Jobs",
13429
13429
  path: "/jobs",
@@ -13494,10 +13494,10 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
13494
13494
  re,
13495
13495
  i
13496
13496
  ]), I(() => {
13497
- C || P.length === 0 || se(v, P);
13497
+ C || ce.length === 0 || se(v, ce);
13498
13498
  }, [
13499
13499
  C,
13500
- P,
13500
+ ce,
13501
13501
  v
13502
13502
  ]);
13503
13503
  let he = (e) => {
@@ -13507,7 +13507,7 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
13507
13507
  }));
13508
13508
  };
13509
13509
  function ge(t) {
13510
- let n = We(t, P, { module: e });
13510
+ let n = We(t, ce, { module: e });
13511
13511
  return Object.entries(l).forEach(([e, t]) => {
13512
13512
  n[e] !== void 0 && (n[t] = n[e], delete n[e]);
13513
13513
  }), n;
@@ -13515,12 +13515,12 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
13515
13515
  async function ve(n) {
13516
13516
  if (!(f && await Promise.resolve().then(() => f(n)).catch(() => !1) === !1)) try {
13517
13517
  O(!0), A("");
13518
- let r = M(n, P, {
13518
+ let r = M(n, ce, {
13519
13519
  indexed: !0,
13520
13520
  module: e
13521
13521
  });
13522
13522
  if (u && u.useLegacyUpload) {
13523
- let e = P.flatMap((e) => e.fields ?? []).filter($e);
13523
+ let e = ce.flatMap((e) => e.fields ?? []).filter($e);
13524
13524
  for (let r of e) {
13525
13525
  let e = n[r.field];
13526
13526
  if (!Array.isArray(e)) continue;
@@ -13536,21 +13536,21 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
13536
13536
  ...ge(n),
13537
13537
  ...p ?? {}
13538
13538
  }, u?.useLegacyUpload ? [] : r);
13539
- let i = M(n, P, { module: e });
13539
+ let i = M(n, ce, { module: e });
13540
13540
  if (!u?.useLegacyUpload && i.length > 0) try {
13541
13541
  await pn(e, t, i);
13542
13542
  } catch (e) {
13543
13543
  console.error("Document registry upload failed during edit:", e), J.warning("Changes saved, but saving document records failed.");
13544
13544
  }
13545
- let a = kt(P, e, "edit");
13545
+ let a = kt(ce, e, "edit");
13546
13546
  if (a && J.success(a), c) c(t, n);
13547
13547
  else {
13548
- let e = Pt(P);
13548
+ let e = Pt(ce);
13549
13549
  e ? e.mode === "back" ? _(-1) : (e.mode === "route" || e.mode === "detail") && _(dn(e.target, t, n) || s || -1) : _(s || -1);
13550
13550
  }
13551
13551
  } catch (t) {
13552
13552
  console.error(`Failed to update ${e}:`, t);
13553
- let n = En(P, e, "edit", t?.message);
13553
+ let n = En(ce, e, "edit", t?.message);
13554
13554
  A(n), J.error(n);
13555
13555
  } finally {
13556
13556
  O(!1);
@@ -13917,13 +13917,13 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
13917
13917
  }, u) : O);
13918
13918
  }), o;
13919
13919
  }, je = (e) => {
13920
- let t = e.name ?? e.id ?? "", n = ce(F, t), r = !!n && n.leaderName !== t, i = n ? P.find((e) => e.name === n.leaderName) ?? e : e, a = Math.max(0, Number(i.minRows ?? 0) || 0), o = Math.max(0, Number(i.maxRows ?? 0) || 0), s = n ? n.memberNames : [t], c = () => {
13920
+ let t = e.name ?? e.id ?? "", n = P(le, t), r = !!n && n.leaderName !== t, i = n ? ce.find((e) => e.name === n.leaderName) ?? e : e, a = Math.max(0, Number(i.minRows ?? 0) || 0), o = Math.max(0, Number(i.maxRows ?? 0) || 0), s = n ? n.memberNames : [t], c = () => {
13921
13921
  s.forEach((t) => {
13922
- let n = P.find((e) => e.name === t) ?? e;
13923
- le.current[t]?.add(at(n, { editing: !0 }));
13922
+ let n = ce.find((e) => e.name === t) ?? e;
13923
+ F.current[t]?.add(at(n, { editing: !0 }));
13924
13924
  });
13925
13925
  }, l = (e) => {
13926
- s.forEach((t) => le.current[t]?.remove(e));
13926
+ s.forEach((t) => F.current[t]?.remove(e));
13927
13927
  };
13928
13928
  return e.addRow ? /* @__PURE__ */ X(V.List, {
13929
13929
  name: t,
@@ -13934,7 +13934,7 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
13934
13934
  if (U_(e.requireOne) && n.some((e) => !K_(e))) throw Error("Fill at least one field in each added row.");
13935
13935
  }
13936
13936
  } }],
13937
- children: (n, { add: s, remove: u }, { errors: d }) => (le.current[t] = {
13937
+ children: (n, { add: s, remove: u }, { errors: d }) => (F.current[t] = {
13938
13938
  add: s,
13939
13939
  remove: u
13940
13940
  }, /* @__PURE__ */ Z("div", {
@@ -13988,7 +13988,7 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
13988
13988
  gutter: [24, 0],
13989
13989
  children: Ae(e.fields, void 0, void 0, !1, t)
13990
13990
  });
13991
- }, Me = (e) => P.filter((t) => t !== e && t.mergeInto && String(t.mergeInto) === String(e.name)), Ne = (e) => !!(e.mergeInto && P.some((t) => t !== e && String(t.name) === String(e.mergeInto))), Pe = (e, t) => {
13991
+ }, Me = (e) => ce.filter((t) => t !== e && t.mergeInto && String(t.mergeInto) === String(e.name)), Ne = (e) => !!(e.mergeInto && ce.some((t) => t !== e && String(t.name) === String(e.mergeInto))), Pe = (e, t) => {
13992
13992
  let n = e.name ?? e.id ?? String(t), r = je(e), i = Me(e);
13993
13993
  return /* @__PURE__ */ X(nr, {
13994
13994
  className: "v1-card v1-edit-card",
@@ -14071,7 +14071,7 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
14071
14071
  })] }),
14072
14072
  onFinish: ve,
14073
14073
  onFinishFailed: ye,
14074
- children: [P.filter((e) => !Ne(e)).map((e, t) => /* @__PURE__ */ X(Z_, {
14074
+ children: [ce.filter((e) => !Ne(e)).map((e, t) => /* @__PURE__ */ X(Z_, {
14075
14075
  form: v,
14076
14076
  group: e,
14077
14077
  children: e.showIf?.field ? /* @__PURE__ */ X(Q_, {
@@ -14079,7 +14079,7 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
14079
14079
  showIf: e.showIf,
14080
14080
  render: () => Pe(e, t)
14081
14081
  }) : Pe(e, t)
14082
- }, e.name ?? `grp-${t}`)), !C && !T && P.length === 0 && /* @__PURE__ */ X(Zn, {
14082
+ }, e.name ?? `grp-${t}`)), !C && !T && ce.length === 0 && /* @__PURE__ */ X(Zn, {
14083
14083
  type: "info",
14084
14084
  showIcon: !0,
14085
14085
  message: "No form fields are configured."
@@ -14099,7 +14099,7 @@ function wv({ moduleName: e, recordId: t, authToken: n, clientId: r, region: i,
14099
14099
  children: "Cancel"
14100
14100
  }), /* @__PURE__ */ X(z_, {
14101
14101
  form: v,
14102
- groups: P,
14102
+ groups: ce,
14103
14103
  onClick: () => v.submit(),
14104
14104
  disabled: C || D,
14105
14105
  loading: D,
@@ -14683,24 +14683,24 @@ function Kv({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
14683
14683
  className: "job-cell-primary",
14684
14684
  children: Wv(n, e.key)
14685
14685
  })
14686
- })), [ne, re]), P = re.length === ne.length, F = re.length > 0 && !P, ce = (e, t) => {
14686
+ })), [ne, re]), ce = re.length === ne.length, le = re.length > 0 && !ce, P = (e, t) => {
14687
14687
  k((n) => {
14688
14688
  let r = n.length ? n : ne.map((e) => e.key);
14689
14689
  return t ? r.includes(e) ? r : [...r, e] : r.filter((t) => t !== e);
14690
14690
  });
14691
- }, le = /* @__PURE__ */ Z("div", {
14691
+ }, F = /* @__PURE__ */ Z("div", {
14692
14692
  className: "column-visibility-menu",
14693
14693
  onClick: (e) => e.stopPropagation(),
14694
14694
  children: [/* @__PURE__ */ X(rr, {
14695
- checked: P,
14696
- indeterminate: F,
14695
+ checked: ce,
14696
+ indeterminate: le,
14697
14697
  onChange: (e) => {
14698
14698
  k(e.target.checked ? ne.map((e) => e.key) : []);
14699
14699
  },
14700
14700
  children: "Select All"
14701
14701
  }), ne.map((e) => /* @__PURE__ */ X(rr, {
14702
14702
  checked: re.includes(e.key),
14703
- onChange: (t) => ce(e.key, t.target.checked),
14703
+ onChange: (t) => P(e.key, t.target.checked),
14704
14704
  children: e.label
14705
14705
  }, e.key))]
14706
14706
  });
@@ -14775,7 +14775,7 @@ function Kv({ listName: e = "List", fields: t = [], actions: n = [], dataSource:
14775
14775
  open: A,
14776
14776
  onOpenChange: j,
14777
14777
  trigger: ["click"],
14778
- dropdownRender: () => le,
14778
+ dropdownRender: () => F,
14779
14779
  placement: "bottomLeft",
14780
14780
  overlayClassName: "column-visibility-dropdown",
14781
14781
  children: /* @__PURE__ */ X(z, {
@@ -16944,46 +16944,50 @@ yb.propTypes = {
16944
16944
  tone: Q.string
16945
16945
  };
16946
16946
  function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, onReferralChange: a, onAddReferral: o, currentUserId: s, actions: c, onClose: l, variant: u }) {
16947
- let d = Uy(e), f = L(() => sb(t, n), [t, n]), p = Gy(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 ? Wy(d, t) : "", P = L(() => lb(f, {
16947
+ let d = Uy(e), f = L(() => sb(t, n), [t, n]), p = Gy(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?.referral?.referalRate ?? t?.referral?.referralRate ?? t?.engagement?.financeApproval?.referralRate ?? 0), [S, C] = R(t?.engagement?.financeApproval?.referralType ?? t?.referral?.referralType ?? t?.referral?.referalType ?? "Recurring"), [w, T] = R(""), [E, D] = R(!1), [O, k] = R(""), [A, j] = R(!1), [M, ee] = R(""), [N, te] = R(!1), ne = d.sections.referral ?? {}, [re, ie] = R(!!(t?.engagement?.financeApproval?.referralEnabled ?? t?.referralEnabled ?? (Number(v) > 0 || !!g))), ae = ne.toggle === !0, oe = Number(v) > 0, se = ne.show === !0 ? ae ? re : !0 : ne.show === "ifEnabled" ? re : ne.show === "ifExists" ? oe : !1, ce = p && se, le = d.rejection?.show ? Wy(d, t) : "", P = L(() => lb(f, {
16948
16948
  proposedRate: d.sections.rateBreakdown?.proposed?.editable ? m : void 0,
16949
- includeReferral: oe,
16949
+ includeReferral: ce,
16950
16950
  referralRate: v
16951
16951
  }), [
16952
16952
  f,
16953
16953
  m,
16954
16954
  v,
16955
- oe,
16955
+ ce,
16956
16956
  d
16957
- ]), F = P.currency, ce = d.readOnly, le = Number(P.proposedRate) > 0, ue = Number(d.margin?.minMarginPercent ?? 20), de = Number(P.netProposedRate) > 0 ? Number(P.totalMargin) / Number(P.netProposedRate) * 100 : 0, fe = P.marginPositive ? de < ue ? "fa-warn" : "fa-good" : "fa-bad", pe = P.isW2 ? "Candidate" : "Employer", me = !!d.sections.rateBreakdown?.proposed?.editable, he = Number(P.clientJobRate) || 0, ge = me && he > 0 && Number(m) > he, _e = d.actions?.primary, ve = !!_e?.requireProposedRate && !(Number(P.proposedRate) > 0), ye = ve ? "Enter the Proposed Rate first — it drives the margin and the rate sent for approval." : ge ? `Proposed rate can’t exceed the Client Job Rate (${fb(he, F)}/hr).` : "", be = (e) => {
16958
- _(e), ee(!1);
16957
+ ]), F = P.currency, ue = d.readOnly, de = Number(P.proposedRate) > 0, fe = Number(d.margin?.minMarginPercent ?? 20), pe = Number(P.netProposedRate) > 0 ? Number(P.totalMargin) / Number(P.netProposedRate) * 100 : 0, me = P.marginPositive ? pe < fe ? "fa-warn" : "fa-good" : "fa-bad", he = P.isW2 ? "Candidate" : "Employer", ge = !!d.sections.rateBreakdown?.proposed?.editable, _e = Number(P.clientJobRate) || 0, ve = ge && _e > 0 && Number(m) > _e, ye = d.actions?.primary, be = !!ye?.requireProposedRate && !(Number(P.proposedRate) > 0), xe = be ? "Enter the Proposed Rate first — it drives the margin and the rate sent for approval." : ve ? `Proposed rate can’t exceed the Client Job Rate (${fb(_e, F)}/hr).` : "", Se = (e) => {
16958
+ _(e), te(!1);
16959
16959
  let t = (i ?? []).find((t) => t.value === e);
16960
- t?.lastRate != null && y(Number(t.lastRate) || 0), t?.type && x(t.type), a?.(e, t);
16961
- }, xe = (e) => {
16960
+ if (t?.lastRate != null) {
16961
+ let e = Number(t.lastRate) || 0;
16962
+ y(e), x(e);
16963
+ }
16964
+ t?.type && C(t.type), a?.(e, t);
16965
+ }, Ce = (e) => {
16962
16966
  let t = e.target.checked;
16963
- ne(t), ee(t);
16964
- }, Se = (e) => /* @__PURE__ */ Z("div", { children: [e, o && /* @__PURE__ */ X("div", {
16967
+ ie(t), te(t);
16968
+ }, we = (e) => /* @__PURE__ */ Z("div", { children: [e, o && /* @__PURE__ */ X("div", {
16965
16969
  className: "fa-referral-dropdown-footer",
16966
16970
  children: /* @__PURE__ */ X(Cu, {
16967
16971
  className: "fa-referral-add-btn",
16968
16972
  icon: /* @__PURE__ */ X(wa, {}),
16969
16973
  onMouseDown: (e) => e.preventDefault(),
16970
16974
  onClick: () => {
16971
- ee(!1), o();
16975
+ te(!1), o();
16972
16976
  },
16973
16977
  children: "Add"
16974
16978
  })
16975
- })] }), Ce = async (e) => {
16979
+ })] }), Te = async (e) => {
16976
16980
  if (!e) return;
16977
- if (e === d.actions.primary && ye) {
16978
- J.error(ye);
16981
+ if (e === d.actions.primary && xe) {
16982
+ J.error(xe);
16979
16983
  return;
16980
16984
  }
16981
- if (e.requireReason && !S.trim()) {
16982
- T(!0);
16985
+ if (e.requireReason && !w.trim()) {
16986
+ D(!0);
16983
16987
  return;
16984
16988
  }
16985
- if (e.requireCategory && !E) {
16986
- k(!0);
16989
+ if (e.requireCategory && !O) {
16990
+ j(!0);
16987
16991
  return;
16988
16992
  }
16989
16993
  let t = c?.[e.api];
@@ -16991,31 +16995,31 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16991
16995
  J.error(`No handler wired for "${e.api}"`);
16992
16996
  return;
16993
16997
  }
16994
- j(e.key);
16998
+ ee(e.key);
16995
16999
  try {
16996
17000
  await t({
16997
17001
  computed: P,
16998
17002
  proposedRate: P.proposedRate,
16999
- referral: ae ? {
17003
+ referral: se ? {
17000
17004
  referralId: g,
17001
17005
  referralRate: P.referralRate,
17002
- referralType: b,
17006
+ referralType: S,
17003
17007
  referralEnabled: !0
17004
17008
  } : {
17005
17009
  referralEnabled: !1,
17006
17010
  referralRate: 0
17007
17011
  },
17008
- referralEnabled: te,
17009
- reason: S.trim(),
17010
- category: E,
17012
+ referralEnabled: re,
17013
+ reason: w.trim(),
17014
+ category: O,
17011
17015
  rateHistory: d.persist?.rateHistory ? db(P, s) : void 0
17012
17016
  });
17013
17017
  } catch (e) {
17014
17018
  J.error(e?.message ?? "Action failed");
17015
17019
  } finally {
17016
- j("");
17020
+ ee("");
17017
17021
  }
17018
- }, we = d.actions.primary, Te = d.actions.reject;
17022
+ }, Ee = d.actions.primary, De = d.actions.reject;
17019
17023
  return /* @__PURE__ */ Z("div", {
17020
17024
  className: `fa-panel fa-variant-${u}`,
17021
17025
  children: [
@@ -17055,8 +17059,8 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17055
17059
  className: "fa-rejection-title",
17056
17060
  children: d.rejection.title
17057
17061
  }), /* @__PURE__ */ X("div", {
17058
- className: `fa-rejection-reason${se ? "" : " fa-rejection-empty"}`,
17059
- children: se || "No reason was provided."
17062
+ className: `fa-rejection-reason${le ? "" : " fa-rejection-empty"}`,
17063
+ children: le || "No reason was provided."
17060
17064
  })]
17061
17065
  })]
17062
17066
  }),
@@ -17204,14 +17208,14 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17204
17208
  className: "fa-panel-head",
17205
17209
  children: [
17206
17210
  /* @__PURE__ */ X("span", { className: "fa-dot" }),
17207
- pe,
17211
+ he,
17208
17212
  " Rate"
17209
17213
  ]
17210
17214
  }), /* @__PURE__ */ Z("div", {
17211
17215
  className: "fa-rate-rows",
17212
17216
  children: [
17213
17217
  /* @__PURE__ */ X(vb, {
17214
- label: `${pe} Rate`,
17218
+ label: `${he} Rate`,
17215
17219
  sub: "as submitted by recruiter",
17216
17220
  value: /* @__PURE__ */ Z(Y, { children: [
17217
17221
  fb(P.employerRate, F),
@@ -17254,7 +17258,7 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17254
17258
  }),
17255
17259
  /* @__PURE__ */ X(vb, {
17256
17260
  total: !0,
17257
- label: `Net ${pe} Rate`,
17261
+ label: `Net ${he} Rate`,
17258
17262
  value: /* @__PURE__ */ X("span", {
17259
17263
  style: { color: "var(--color-purple, #7c3aed)" },
17260
17264
  children: fb(P.netEmployerRate, F)
@@ -17289,26 +17293,26 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17289
17293
  onChange: (e) => h(Number(e ?? 0)),
17290
17294
  prefix: F,
17291
17295
  controls: !1,
17292
- status: ge ? "error" : ""
17296
+ status: ve ? "error" : ""
17293
17297
  })]
17294
17298
  }),
17295
17299
  /* @__PURE__ */ X("div", {
17296
17300
  className: "fa-editable-sub",
17297
17301
  children: "rate we ask the client for"
17298
17302
  }),
17299
- ve && /* @__PURE__ */ Z("div", {
17303
+ be && /* @__PURE__ */ Z("div", {
17300
17304
  className: "fa-reason-error",
17301
17305
  children: [
17302
17306
  "! Enter the proposed rate to enable ",
17303
- _e?.label ?? "approval",
17307
+ ye?.label ?? "approval",
17304
17308
  "."
17305
17309
  ]
17306
17310
  }),
17307
- ge && /* @__PURE__ */ Z("div", {
17311
+ ve && /* @__PURE__ */ Z("div", {
17308
17312
  className: "fa-reason-error",
17309
17313
  children: [
17310
17314
  "! Proposed rate can’t exceed the Client Job Rate (",
17311
- fb(he, F),
17315
+ fb(_e, F),
17312
17316
  "/hr)."
17313
17317
  ]
17314
17318
  }),
@@ -17358,33 +17362,33 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17358
17362
  ]
17359
17363
  })]
17360
17364
  })]
17361
- }), re && !ce && /* @__PURE__ */ Z("div", {
17365
+ }), ae && !ue && /* @__PURE__ */ Z("div", {
17362
17366
  className: "fa-referral-toggle",
17363
17367
  children: [/* @__PURE__ */ X(rr, {
17364
- checked: te,
17365
- onChange: xe,
17368
+ checked: re,
17369
+ onChange: Ce,
17366
17370
  children: /* @__PURE__ */ X("span", {
17367
17371
  className: "fa-rt-title",
17368
- children: N.toggleLabel ?? "Add Referral"
17372
+ children: ne.toggleLabel ?? "Add Referral"
17369
17373
  })
17370
17374
  }), /* @__PURE__ */ X("div", {
17371
17375
  className: "fa-rt-hint",
17372
- children: N.toggleHint
17376
+ children: ne.toggleHint
17373
17377
  })]
17374
17378
  })]
17375
17379
  })]
17376
17380
  }),
17377
- ae && /* @__PURE__ */ Z("section", {
17381
+ se && /* @__PURE__ */ Z("section", {
17378
17382
  className: "fa-card fa-referral-card",
17379
17383
  children: [/* @__PURE__ */ Z("div", {
17380
17384
  className: "fa-card-head",
17381
- children: [/* @__PURE__ */ Z("h3", { children: [/* @__PURE__ */ X("span", { className: "fa-dot fa-dot-warning" }), "Referral"] }), N.mode === "print" && N.typeChip && /* @__PURE__ */ X("span", {
17385
+ children: [/* @__PURE__ */ Z("h3", { children: [/* @__PURE__ */ X("span", { className: "fa-dot fa-dot-warning" }), "Referral"] }), ne.mode === "print" && ne.typeChip && /* @__PURE__ */ X("span", {
17382
17386
  className: "fa-type-chip",
17383
- children: b
17387
+ children: S
17384
17388
  })]
17385
17389
  }), /* @__PURE__ */ X("div", {
17386
17390
  className: "fa-card-body",
17387
- children: N.mode === "select" ? /* @__PURE__ */ Z("div", {
17391
+ children: ne.mode === "select" ? /* @__PURE__ */ Z("div", {
17388
17392
  className: "fa-referral-fields",
17389
17393
  children: [
17390
17394
  /* @__PURE__ */ Z("div", {
@@ -17397,16 +17401,16 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17397
17401
  id: "fa-referral-company",
17398
17402
  className: "fa-referral-select",
17399
17403
  placeholder: "Select a referral",
17400
- open: M,
17404
+ open: N,
17401
17405
  value: g ?? void 0,
17402
- onChange: be,
17406
+ onChange: Se,
17403
17407
  options: i ?? [],
17404
17408
  showSearch: !0,
17405
17409
  optionFilterProp: "label",
17406
- onDropdownVisibleChange: ee,
17407
- onOpenChange: ee,
17408
- popupRender: Se,
17409
- dropdownRender: Se
17410
+ onDropdownVisibleChange: te,
17411
+ onOpenChange: te,
17412
+ popupRender: we,
17413
+ dropdownRender: we
17410
17414
  })]
17411
17415
  }),
17412
17416
  /* @__PURE__ */ Z("div", {
@@ -17436,8 +17440,8 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17436
17440
  }), /* @__PURE__ */ X(U, {
17437
17441
  id: "fa-referral-type",
17438
17442
  className: "fa-referral-type",
17439
- value: b,
17440
- onChange: x,
17443
+ value: S,
17444
+ onChange: C,
17441
17445
  disabled: !g,
17442
17446
  options: [{
17443
17447
  value: "Recurring",
@@ -17453,7 +17457,7 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17453
17457
  children: [
17454
17458
  "Last referral rate paid to this company:",
17455
17459
  " ",
17456
- /* @__PURE__ */ X("b", { children: v ? fb(v, F) : "—" })
17460
+ /* @__PURE__ */ X("b", { children: b ? fb(b, F) : "—" })
17457
17461
  ]
17458
17462
  })
17459
17463
  ]
@@ -17468,20 +17472,20 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17468
17472
  })
17469
17473
  }), /* @__PURE__ */ X(vb, {
17470
17474
  label: "Referral Rate",
17471
- sub: b === "One-time" ? "deducted once, this payout only" : "deducted every pay cycle",
17475
+ sub: S === "One-time" ? "deducted once, this payout only" : "deducted every pay cycle",
17472
17476
  value: `−${fb(v, F).replace("−", "")} /hr`,
17473
17477
  deduction: !0
17474
17478
  })]
17475
17479
  })
17476
17480
  })]
17477
17481
  }),
17478
- le && /* @__PURE__ */ Z("div", {
17479
- className: `fa-outcome ${fe}`,
17482
+ de && /* @__PURE__ */ Z("div", {
17483
+ className: `fa-outcome ${me}`,
17480
17484
  children: [/* @__PURE__ */ Z("div", {
17481
17485
  className: "fa-outcome-label",
17482
17486
  children: [/* @__PURE__ */ X("div", {
17483
17487
  className: "fa-outcome-icon",
17484
- children: X(fe === "fa-good" ? na : Da, {})
17488
+ children: X(me === "fa-good" ? na : Da, {})
17485
17489
  }), /* @__PURE__ */ X("div", {
17486
17490
  className: "fa-outcome-t",
17487
17491
  children: d.margin.label
@@ -17501,13 +17505,13 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17501
17505
  children: "−"
17502
17506
  }),
17503
17507
  /* @__PURE__ */ X(yb, {
17504
- label: `Net ${pe} Rate`,
17508
+ label: `Net ${he} Rate`,
17505
17509
  value: /* @__PURE__ */ Z(Y, { children: [fb(P.netEmployerRate, F), /* @__PURE__ */ X("span", {
17506
17510
  className: "fa-u",
17507
17511
  children: "/hr"
17508
17512
  })] })
17509
17513
  }),
17510
- oe && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("span", {
17514
+ ce && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("span", {
17511
17515
  className: "fa-stat-arrow",
17512
17516
  children: "−"
17513
17517
  }), /* @__PURE__ */ X(yb, {
@@ -17529,36 +17533,36 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17529
17533
  ]
17530
17534
  })]
17531
17535
  }),
17532
- le && /* @__PURE__ */ Z("div", {
17533
- className: `fa-margin-note ${fe}`,
17536
+ de && /* @__PURE__ */ Z("div", {
17537
+ className: `fa-margin-note ${me}`,
17534
17538
  children: [/* @__PURE__ */ Z("span", {
17535
17539
  className: "fa-margin-note-pct",
17536
- children: [de.toFixed(1), "%"]
17540
+ children: [pe.toFixed(1), "%"]
17537
17541
  }), /* @__PURE__ */ X("span", {
17538
17542
  className: "fa-margin-note-text",
17539
- children: fe === "fa-bad" ? /* @__PURE__ */ Z(Y, { children: [
17543
+ children: me === "fa-bad" ? /* @__PURE__ */ Z(Y, { children: [
17540
17544
  "This submission is running at a ",
17541
17545
  /* @__PURE__ */ X("b", { children: "loss" }),
17542
17546
  ". Adjust the proposed or employer rate before approving."
17543
- ] }) : fe === "fa-warn" ? /* @__PURE__ */ Z(Y, { children: [
17547
+ ] }) : me === "fa-warn" ? /* @__PURE__ */ Z(Y, { children: [
17544
17548
  "Profit margin is ",
17545
17549
  /* @__PURE__ */ Z("b", { children: [
17546
17550
  "below the ",
17547
- ue,
17551
+ fe,
17548
17552
  "% target"
17549
17553
  ] }),
17550
17554
  ". Consider a higher proposed rate before approving."
17551
17555
  ] }) : /* @__PURE__ */ Z(Y, { children: [
17552
17556
  "Healthy margin — at or above the ",
17553
- ue,
17557
+ fe,
17554
17558
  "% target."
17555
17559
  ] })
17556
17560
  })]
17557
17561
  }),
17558
- Te?.requireReason && /* @__PURE__ */ Z("div", {
17562
+ De?.requireReason && /* @__PURE__ */ Z("div", {
17559
17563
  className: "fa-reason",
17560
17564
  children: [
17561
- Te.requireCategory && /* @__PURE__ */ Z(Y, { children: [
17565
+ De.requireCategory && /* @__PURE__ */ Z(Y, { children: [
17562
17566
  /* @__PURE__ */ Z("label", {
17563
17567
  className: "fa-reason-label",
17564
17568
  htmlFor: "fa-rejection-category",
@@ -17567,8 +17571,8 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17567
17571
  /* @__PURE__ */ X(U, {
17568
17572
  id: "fa-rejection-category",
17569
17573
  placeholder: "Select where to return this rejection",
17570
- value: E || void 0,
17571
- status: O ? "error" : "",
17574
+ value: O || void 0,
17575
+ status: A ? "error" : "",
17572
17576
  options: [{
17573
17577
  value: "submission",
17574
17578
  label: "Submission"
@@ -17577,14 +17581,14 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17577
17581
  label: "Onboarding"
17578
17582
  }],
17579
17583
  onChange: (e) => {
17580
- D(e), k(!1);
17584
+ k(e), j(!1);
17581
17585
  },
17582
17586
  style: {
17583
17587
  width: "100%",
17584
17588
  marginBottom: 16
17585
17589
  }
17586
17590
  }),
17587
- O && /* @__PURE__ */ X("div", {
17591
+ A && /* @__PURE__ */ X("div", {
17588
17592
  className: "fa-reason-error",
17589
17593
  children: "! Select where to return the rejection."
17590
17594
  })
@@ -17599,34 +17603,34 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17599
17603
  rows: 3,
17600
17604
  maxLength: 500,
17601
17605
  showCount: !0,
17602
- value: S,
17603
- status: w ? "error" : "",
17606
+ value: w,
17607
+ status: E ? "error" : "",
17604
17608
  placeholder: "Enter your comments here…",
17605
17609
  onChange: (e) => {
17606
- C(e.target.value), e.target.value.trim() && T(!1);
17610
+ T(e.target.value), e.target.value.trim() && D(!1);
17607
17611
  }
17608
17612
  }),
17609
- w && /* @__PURE__ */ X("div", {
17613
+ E && /* @__PURE__ */ X("div", {
17610
17614
  className: "fa-reason-error",
17611
17615
  children: "! Comments are required when rejecting."
17612
17616
  })
17613
17617
  ]
17614
17618
  }),
17615
- d.actions?.show !== !1 && (we || Te) && /* @__PURE__ */ Z("div", {
17619
+ d.actions?.show !== !1 && (Ee || De) && /* @__PURE__ */ Z("div", {
17616
17620
  className: "fa-action-bar",
17617
17621
  children: [/* @__PURE__ */ X("div", {
17618
17622
  className: "fa-action-note",
17619
- children: ve ? /* @__PURE__ */ Z(Y, { children: [
17623
+ children: be ? /* @__PURE__ */ Z(Y, { children: [
17620
17624
  /* @__PURE__ */ X("b", { children: "Proposed rate required" }),
17621
17625
  " — enter it above to enable ",
17622
- we?.label ?? "approval",
17626
+ Ee?.label ?? "approval",
17623
17627
  "."
17624
17628
  ] }) : e === "cfo" ? /* @__PURE__ */ Z(Y, { children: [
17625
17629
  "Approving finalizes payroll at ",
17626
17630
  /* @__PURE__ */ Z("b", { children: [fb(P.proposedRate, F), "/hr"] }),
17627
- ae ? /* @__PURE__ */ Z(Y, { children: [
17631
+ se ? /* @__PURE__ */ Z(Y, { children: [
17628
17632
  " including the ",
17629
- String(b).toLowerCase(),
17633
+ String(S).toLowerCase(),
17630
17634
  " ",
17631
17635
  /* @__PURE__ */ Z("b", { children: [fb(v, F), "/hr"] }),
17632
17636
  " referral"
@@ -17645,25 +17649,25 @@ function bb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
17645
17649
  onClick: l,
17646
17650
  children: "Cancel"
17647
17651
  }),
17648
- Te && /* @__PURE__ */ X(Cu, {
17652
+ De && /* @__PURE__ */ X(Cu, {
17649
17653
  danger: !0,
17650
- loading: A === Te.key,
17651
- disabled: !!A,
17652
- onClick: () => Ce(Te),
17653
- children: Te.label
17654
+ loading: M === De.key,
17655
+ disabled: !!M,
17656
+ onClick: () => Te(De),
17657
+ children: De.label
17654
17658
  }),
17655
- we && /* @__PURE__ */ X(q, {
17656
- title: ye || "",
17659
+ Ee && /* @__PURE__ */ X(q, {
17660
+ title: xe || "",
17657
17661
  placement: "top",
17658
17662
  children: /* @__PURE__ */ X("span", {
17659
17663
  className: "fa-btn-tip",
17660
17664
  children: /* @__PURE__ */ X(Cu, {
17661
17665
  variant: "primary",
17662
17666
  icon: /* @__PURE__ */ X(Yr, {}),
17663
- loading: A === we.key,
17664
- disabled: !!A || !!ye,
17665
- onClick: () => Ce(we),
17666
- children: we.label
17667
+ loading: M === Ee.key,
17668
+ disabled: !!M || !!xe,
17669
+ onClick: () => Te(Ee),
17670
+ children: Ee.label
17667
17671
  })
17668
17672
  })
17669
17673
  })
@@ -20823,7 +20827,7 @@ function sC({ role: e, configType: t }) {
20823
20827
  [n]: !0
20824
20828
  }));
20825
20829
  try {
20826
- await le(e, n, _, t, i), J.success("Saved");
20830
+ await F(e, n, _, t, i), J.success("Saved");
20827
20831
  } catch {
20828
20832
  J.error("Save failed");
20829
20833
  } finally {
@@ -20994,7 +20998,7 @@ function hC({ role: e }) {
20994
20998
  async function v() {
20995
20999
  u(!0);
20996
21000
  try {
20997
- await P(e, r, a), J.success("Saved");
21001
+ await ce(e, r, a), J.success("Saved");
20998
21002
  } catch {
20999
21003
  J.error("Save failed");
21000
21004
  } finally {
@@ -27787,7 +27791,7 @@ function iw() {
27787
27791
  }
27788
27792
  async function ie(e) {
27789
27793
  try {
27790
- await re(e, P()), J.success("Group deleted"), j(o), o !== "all" && j("all");
27794
+ await re(e, ce()), J.success("Group deleted"), j(o), o !== "all" && j("all");
27791
27795
  } catch (e) {
27792
27796
  J.error(e.message || "Could not delete group");
27793
27797
  }
@@ -27801,7 +27805,7 @@ function iw() {
27801
27805
  await Promise.all(t.map(({ g: e, index: t }) => Xt(e.id, {
27802
27806
  ...e,
27803
27807
  order: t
27804
- }, P(e.module || o)))), J.success("Group order updated"), j(o), o !== "all" && j("all");
27808
+ }, ce(e.module || o)))), J.success("Group order updated"), j(o), o !== "all" && j("all");
27805
27809
  } catch (e) {
27806
27810
  J.error(e.message || "Could not reorder groups"), j(o);
27807
27811
  }
@@ -27836,13 +27840,13 @@ function iw() {
27836
27840
  loading: !1
27837
27841
  }));
27838
27842
  }
27839
- function P() {
27843
+ function ce() {
27840
27844
  return O(o);
27841
27845
  }
27842
- function F(e) {
27846
+ function le(e) {
27843
27847
  C(JSON.parse(JSON.stringify(e))), J.success(`Copied settings from ${e.label || e.name}`);
27844
27848
  }
27845
- async function ce(e) {
27849
+ async function P(e) {
27846
27850
  if (S) try {
27847
27851
  let t = {
27848
27852
  ...e,
@@ -27850,12 +27854,12 @@ function iw() {
27850
27854
  payloadKey: S.payloadKey ?? e.payloadKey,
27851
27855
  fields: JSON.parse(JSON.stringify(S.fields ?? []))
27852
27856
  };
27853
- await Xt(e.id, t, P(e.module || o)), J.success(`Pasted settings into ${e.label || e.name}`), j(o), o !== "all" && j("all");
27857
+ await Xt(e.id, t, ce(e.module || o)), J.success(`Pasted settings into ${e.label || e.name}`), j(o), o !== "all" && j("all");
27854
27858
  } catch (e) {
27855
27859
  J.error(e.message || "Could not paste settings");
27856
27860
  }
27857
27861
  }
27858
- function le() {
27862
+ function F() {
27859
27863
  p(null), a(UC(w)), j(o), o !== "all" && j("all");
27860
27864
  }
27861
27865
  let de = w.map(({ key: e, label: t, color: n }) => {
@@ -27911,8 +27915,8 @@ function iw() {
27911
27915
  groups: a,
27912
27916
  onEdit: N,
27913
27917
  onDelete: ie,
27914
- onCopy: F,
27915
- onPaste: ce,
27918
+ onCopy: le,
27919
+ onPaste: P,
27916
27920
  canPaste: !!S,
27917
27921
  onReorder: e === "all" ? void 0 : ae
27918
27922
  })
@@ -27993,7 +27997,7 @@ function iw() {
27993
27997
  allGroupsByModule: Object.fromEntries(Object.entries(i).filter(([e]) => e !== "all").map(([e, t]) => [e, t.groups ?? []])),
27994
27998
  onClose: te,
27995
27999
  onSaved: ne,
27996
- onSaveGroup: (e, t) => t ? Xt(t.id, e, P(e.module)) : zt(e, P(e.module))
28000
+ onSaveGroup: (e, t) => t ? Xt(t.id, e, ce(e.module)) : zt(e, ce(e.module))
27997
28001
  }),
27998
28002
  /* @__PURE__ */ X(sr, {
27999
28003
  open: b,
@@ -28118,7 +28122,7 @@ function iw() {
28118
28122
  confirmLabel: f?.confirmLabel,
28119
28123
  danger: f?.danger,
28120
28124
  onCancel: () => p(null),
28121
- onVerified: le
28125
+ onVerified: F
28122
28126
  })
28123
28127
  ]
28124
28128
  });
@@ -29372,16 +29376,16 @@ function Dw({ open: e, onClose: t }) {
29372
29376
  });
29373
29377
  }
29374
29378
  function Ow() {
29375
- let [e, t] = R([]), [n, r] = R(!0), [i, a] = R(""), [o, s] = R([]), [c, l] = R([]), [u, d] = R([]), [f, p] = R({}), [m, h] = R([]), [g, _] = R(!1), [v, y] = R(""), [b, x] = R(!1), [S, C] = R(null), [w, T] = R(null), [E, D] = R(!1), [O, k] = R(!1), [A, j] = R(null), [M, ee] = R(0), [N, te] = R(""), [ne, re] = R([]), [ie, ae] = R(""), [oe, se] = R(""), [P, F] = R({});
29376
- function ce(e) {
29379
+ let [e, t] = R([]), [n, r] = R(!0), [i, a] = R(""), [o, s] = R([]), [c, l] = R([]), [u, d] = R([]), [f, p] = R({}), [m, h] = R([]), [g, _] = R(!1), [v, y] = R(""), [b, x] = R(!1), [S, C] = R(null), [w, T] = R(null), [E, D] = R(!1), [O, k] = R(!1), [A, j] = R(null), [M, ee] = R(0), [N, te] = R(""), [ne, re] = R([]), [ie, ae] = R(""), [oe, se] = R(""), [ce, le] = R({});
29380
+ function P(e) {
29377
29381
  j(uw[e]);
29378
29382
  }
29379
- async function le(e, t, n, r) {
29383
+ async function F(e, t, n, r) {
29380
29384
  let i = o;
29381
29385
  s((r) => r.map((r) => r.id === e.id ? {
29382
29386
  ...r,
29383
29387
  [t]: n
29384
- } : r)), F((n) => ({
29388
+ } : r)), le((n) => ({
29385
29389
  ...n,
29386
29390
  [`${e.id}:${t}`]: !0
29387
29391
  }));
@@ -29393,19 +29397,19 @@ function Ow() {
29393
29397
  } catch (e) {
29394
29398
  s(i), J.error(e?.message || "Could not update group visibility");
29395
29399
  } finally {
29396
- F((n) => {
29400
+ le((n) => {
29397
29401
  let r = { ...n };
29398
29402
  return delete r[`${e.id}:${t}`], r;
29399
29403
  });
29400
29404
  }
29401
29405
  }
29402
- let de = (e, t) => le(e, "hideGroup", t, {
29406
+ let de = (e, t) => F(e, "hideGroup", t, {
29403
29407
  on: "Group hidden from add/edit forms and the detail view",
29404
29408
  off: "Group is visible again"
29405
- }), fe = (e, t) => le(e, "hideGroupInDetail", t, {
29409
+ }), fe = (e, t) => F(e, "hideGroupInDetail", t, {
29406
29410
  on: "Group hidden from the detail view only — add/edit forms keep it",
29407
29411
  off: "Group is visible in the detail view again"
29408
- }), pe = (e, t) => le(e, "ignoreShowIfInDetail", t, {
29412
+ }), pe = (e, t) => F(e, "ignoreShowIfInDetail", t, {
29409
29413
  on: "Group always shows in the detail view, even when its Show Condition fails",
29410
29414
  off: "Group follows its Show Condition in the detail view"
29411
29415
  });
@@ -29611,7 +29615,7 @@ function Ow() {
29611
29615
  checkedChildren: "Hide",
29612
29616
  unCheckedChildren: "Show",
29613
29617
  checked: mw(t.hideGroup),
29614
- loading: !!P[`${t.id}:hideGroup`],
29618
+ loading: !!ce[`${t.id}:hideGroup`],
29615
29619
  onChange: (e) => de(t, e)
29616
29620
  })
29617
29621
  })
@@ -29630,7 +29634,7 @@ function Ow() {
29630
29634
  checkedChildren: "Always",
29631
29635
  unCheckedChildren: "Follow",
29632
29636
  checked: mw(t.ignoreShowIfInDetail),
29633
- loading: !!P[`${t.id}:ignoreShowIfInDetail`],
29637
+ loading: !!ce[`${t.id}:ignoreShowIfInDetail`],
29634
29638
  onChange: (e) => pe(t, e)
29635
29639
  })
29636
29640
  }) : /* @__PURE__ */ X(aw, {
@@ -29652,7 +29656,7 @@ function Ow() {
29652
29656
  checkedChildren: "Hide",
29653
29657
  unCheckedChildren: "Show",
29654
29658
  checked: mw(t.hideGroupInDetail),
29655
- loading: !!P[`${t.id}:hideGroupInDetail`],
29659
+ loading: !!ce[`${t.id}:hideGroupInDetail`],
29656
29660
  onChange: (e) => fe(t, e)
29657
29661
  })
29658
29662
  })
@@ -29839,13 +29843,13 @@ function Ow() {
29839
29843
  key: "save",
29840
29844
  label: "Save current as default",
29841
29845
  icon: /* @__PURE__ */ X(aa, {}),
29842
- onClick: () => ce("save")
29846
+ onClick: () => P("save")
29843
29847
  },
29844
29848
  {
29845
29849
  key: "restore",
29846
29850
  label: "Restore saved default",
29847
29851
  icon: /* @__PURE__ */ X(ti, {}),
29848
- onClick: () => ce("restore")
29852
+ onClick: () => P("restore")
29849
29853
  },
29850
29854
  { type: "divider" },
29851
29855
  {
@@ -29853,7 +29857,7 @@ function Ow() {
29853
29857
  label: "Reset all detail settings",
29854
29858
  icon: /* @__PURE__ */ X($i, {}),
29855
29859
  danger: !0,
29856
- onClick: () => ce("reset")
29860
+ onClick: () => P("reset")
29857
29861
  }
29858
29862
  ] },
29859
29863
  children: /* @__PURE__ */ X(z, {
@@ -30809,21 +30813,21 @@ function tT() {
30809
30813
  } catch (e) {
30810
30814
  J.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && N();
30811
30815
  }
30812
- }, P = (e, t = null) => {
30816
+ }, ce = (e, t = null) => {
30813
30817
  l(t ? (n) => n.map((n) => n.key === t ? {
30814
30818
  ...n,
30815
30819
  children: (n.children ?? []).filter((t) => t.key !== e)
30816
30820
  } : n) : (t) => t.filter((t) => t.key !== e)), d(!0);
30817
- }, F = (e, t) => {
30821
+ }, le = (e, t) => {
30818
30822
  l((n) => {
30819
30823
  let r = [...n], i = e + t;
30820
30824
  return i < 0 || i >= r.length ? n : ([r[e], r[i]] = [r[i], r[e]], r);
30821
30825
  }), d(!0);
30822
30826
  };
30823
- function ce(e) {
30827
+ function P(e) {
30824
30828
  D(Gw[e]);
30825
30829
  }
30826
- function le() {
30830
+ function F() {
30827
30831
  D(null), N();
30828
30832
  }
30829
30833
  let ue = L(() => {
@@ -30846,13 +30850,13 @@ function tT() {
30846
30850
  size: "small",
30847
30851
  type: "text",
30848
30852
  disabled: t._actionIndex === 0,
30849
- onClick: () => F(t._actionIndex, -1),
30853
+ onClick: () => le(t._actionIndex, -1),
30850
30854
  children: "↑"
30851
30855
  }), /* @__PURE__ */ X(z, {
30852
30856
  size: "small",
30853
30857
  type: "text",
30854
30858
  disabled: t._actionIndex === c.length - 1,
30855
- onClick: () => F(t._actionIndex, 1),
30859
+ onClick: () => le(t._actionIndex, 1),
30856
30860
  children: "↓"
30857
30861
  })] })
30858
30862
  },
@@ -30957,7 +30961,7 @@ function tT() {
30957
30961
  }),
30958
30962
  /* @__PURE__ */ X(_r, {
30959
30963
  title: "Remove this action?",
30960
- onConfirm: () => P(t.key),
30964
+ onConfirm: () => ce(t.key),
30961
30965
  okText: "Remove",
30962
30966
  okType: "danger",
30963
30967
  children: /* @__PURE__ */ X(q, {
@@ -31035,7 +31039,7 @@ function tT() {
31035
31039
  })
31036
31040
  }), /* @__PURE__ */ X(_r, {
31037
31041
  title: "Remove this child action?",
31038
- onConfirm: () => P(n.key, e),
31042
+ onConfirm: () => ce(n.key, e),
31039
31043
  okText: "Remove",
31040
31044
  okType: "danger",
31041
31045
  children: /* @__PURE__ */ X(q, {
@@ -31063,13 +31067,13 @@ function tT() {
31063
31067
  key: "save",
31064
31068
  label: "Save current as default",
31065
31069
  icon: /* @__PURE__ */ X(aa, {}),
31066
- onClick: () => ce("save")
31070
+ onClick: () => P("save")
31067
31071
  },
31068
31072
  {
31069
31073
  key: "restore",
31070
31074
  label: "Restore saved default",
31071
31075
  icon: /* @__PURE__ */ X(ti, {}),
31072
- onClick: () => ce("restore")
31076
+ onClick: () => P("restore")
31073
31077
  },
31074
31078
  { type: "divider" },
31075
31079
  {
@@ -31077,7 +31081,7 @@ function tT() {
31077
31081
  label: "Reset all actions",
31078
31082
  icon: /* @__PURE__ */ X($i, {}),
31079
31083
  danger: !0,
31080
- onClick: () => ce("reset")
31084
+ onClick: () => P("reset")
31081
31085
  }
31082
31086
  ] },
31083
31087
  children: /* @__PURE__ */ X(z, {
@@ -31258,7 +31262,7 @@ function tT() {
31258
31262
  confirmLabel: E?.confirmLabel,
31259
31263
  danger: E?.danger,
31260
31264
  onCancel: () => D(null),
31261
- onVerified: le
31265
+ onVerified: F
31262
31266
  })
31263
31267
  ]
31264
31268
  });
@@ -33514,7 +33518,7 @@ function FT() {
33514
33518
  }, [c]);
33515
33519
  async function l(e) {
33516
33520
  try {
33517
- await F(e), J.success("Integration deleted"), c();
33521
+ await le(e), J.success("Integration deleted"), c();
33518
33522
  } catch (e) {
33519
33523
  J.error(e?.message || "Could not delete integration");
33520
33524
  }
@@ -36894,7 +36898,7 @@ function jE({ title: e, description: t, selectedName: n, loading: r, saving: i,
36894
36898
  });
36895
36899
  }
36896
36900
  function ME({ onLogout: e }) {
36897
- let [t] = V.useForm(), [n] = V.useForm(), [r, i] = R("users"), [a, o] = R(!0), [s, c] = R(!1), [l, u] = R(!1), [d, f] = R([]), [p, m] = R([]), [h, g] = R([]), [_, v] = R([]), [y, b] = R(null), [S, C] = R([]), [w, T] = R(!1), [E, D] = R(null), [O, k] = R(!1), [A, j] = R(null), [M, ee] = R([]), [N, te] = R(!1), [ne, re] = R(!1), [ie, oe] = R(null), [se, P] = R(!1), [F, ce] = R(null), [le, ue] = R("listView"), [de, fe] = R([]), [pe, me] = R([]), [he, ge] = R(!1), [_e, ve] = R(!1), ye = x(), be = L(() => de.filter((e) => !e.disabled), [de]), xe = !he && be.length === 0, Se = Jn(async () => {
36901
+ let [t] = V.useForm(), [n] = V.useForm(), [r, i] = R("users"), [a, o] = R(!0), [s, c] = R(!1), [l, u] = R(!1), [d, f] = R([]), [p, m] = R([]), [h, g] = R([]), [_, v] = R([]), [y, b] = R(null), [S, C] = R([]), [w, T] = R(!1), [E, D] = R(null), [O, k] = R(!1), [A, j] = R(null), [M, ee] = R([]), [N, te] = R(!1), [ne, re] = R(!1), [ie, oe] = R(null), [se, ce] = R(!1), [le, P] = R(null), [F, ue] = R("listView"), [de, fe] = R([]), [pe, me] = R([]), [he, ge] = R(!1), [_e, ve] = R(!1), ye = x(), be = L(() => de.filter((e) => !e.disabled), [de]), xe = !he && be.length === 0, Se = Jn(async () => {
36898
36902
  ge(!0);
36899
36903
  try {
36900
36904
  let [e, t] = await Promise.all([pt(), it()]), n = TE(e.modules, t), r = new Set(n.filter((e) => !e.disabled).map((e) => e.value));
@@ -37187,7 +37191,7 @@ function ME({ onLogout: e }) {
37187
37191
  }
37188
37192
  }
37189
37193
  function ze(e, t) {
37190
- ue("listView"), ce({
37194
+ ue("listView"), P({
37191
37195
  kind: e,
37192
37196
  record: t
37193
37197
  }), e === "role" && b(t.user_type_id);
@@ -37208,7 +37212,7 @@ function ME({ onLogout: e }) {
37208
37212
  oe(e), re(!0), n.setFieldsValue(e);
37209
37213
  }
37210
37214
  async function Ue(e) {
37211
- P(!0);
37215
+ ce(!0);
37212
37216
  try {
37213
37217
  let t = ye?.userId ?? null, n = !!ie, r = n ? await NS(ie.user_type_id, {
37214
37218
  ...e,
@@ -37218,7 +37222,7 @@ function ME({ onLogout: e }) {
37218
37222
  created_by: t,
37219
37223
  visible_menu_ids: []
37220
37224
  }), i = r.user_type_id;
37221
- J.success(n ? "User type updated" : "User type created. Customize its menus and permissions."), re(!1), await we(), b(i), n || (ue("permissions"), ce({
37225
+ J.success(n ? "User type updated" : "User type created. Customize its menus and permissions."), re(!1), await we(), b(i), n || (ue("permissions"), P({
37222
37226
  kind: "role",
37223
37227
  record: {
37224
37228
  ...e,
@@ -37230,7 +37234,7 @@ function ME({ onLogout: e }) {
37230
37234
  } catch (e) {
37231
37235
  J.error(e.message || "Unable to save role");
37232
37236
  } finally {
37233
- P(!1);
37237
+ ce(!1);
37234
37238
  }
37235
37239
  }
37236
37240
  async function We(e) {
@@ -37574,9 +37578,9 @@ function ME({ onLogout: e }) {
37574
37578
  }) }),
37575
37579
  /* @__PURE__ */ Z(hr, {
37576
37580
  className: "uss-modal",
37577
- title: `Configure User Type: ${F?.record?.user_type_name ?? ""}`,
37578
- open: !!F,
37579
- onCancel: () => ce(null),
37581
+ title: `Configure User Type: ${le?.record?.user_type_name ?? ""}`,
37582
+ open: !!le,
37583
+ onCancel: () => P(null),
37580
37584
  footer: null,
37581
37585
  destroyOnHidden: !0,
37582
37586
  width: 900,
@@ -37606,11 +37610,11 @@ function ME({ onLogout: e }) {
37606
37610
  }
37607
37611
  ].map((e) => /* @__PURE__ */ X("button", {
37608
37612
  type: "button",
37609
- className: `uss-config-btn${le === e.key ? " active" : ""}`,
37613
+ className: `uss-config-btn${F === e.key ? " active" : ""}`,
37610
37614
  onClick: () => ue(e.key),
37611
37615
  children: e.label
37612
37616
  }, e.key))
37613
- }), F && le === "permissions" ? /* @__PURE__ */ X(jE, {
37617
+ }), le && F === "permissions" ? /* @__PURE__ */ X(jE, {
37614
37618
  title: "Role Permissions",
37615
37619
  description: "Configure menu permissions for this user type",
37616
37620
  selectedName: Te?.user_type_name,
@@ -37620,22 +37624,22 @@ function ME({ onLogout: e }) {
37620
37624
  onChange: Ne,
37621
37625
  onMove: Be,
37622
37626
  onSave: Pe
37623
- }) : F && le === "actions" ? /* @__PURE__ */ X(CC, { role: {
37624
- ...F.record,
37625
- roleId: F.record.user_type_id,
37626
- roleName: F.record.user_type_name
37627
- } }, `${F.record?.user_type_id}-actions`) : F && le === "form" ? /* @__PURE__ */ X(hC, { role: {
37628
- ...F.record,
37629
- roleId: F.record.user_type_id,
37630
- roleName: F.record.user_type_name
37631
- } }, `${F.record?.user_type_id}-form`) : F ? /* @__PURE__ */ X(sC, {
37627
+ }) : le && F === "actions" ? /* @__PURE__ */ X(CC, { role: {
37628
+ ...le.record,
37629
+ roleId: le.record.user_type_id,
37630
+ roleName: le.record.user_type_name
37631
+ } }, `${le.record?.user_type_id}-actions`) : le && F === "form" ? /* @__PURE__ */ X(hC, { role: {
37632
+ ...le.record,
37633
+ roleId: le.record.user_type_id,
37634
+ roleName: le.record.user_type_name
37635
+ } }, `${le.record?.user_type_id}-form`) : le ? /* @__PURE__ */ X(sC, {
37632
37636
  role: {
37633
- ...F.record,
37634
- roleId: F.record.user_type_id,
37635
- roleName: F.record.user_type_name
37637
+ ...le.record,
37638
+ roleId: le.record.user_type_id,
37639
+ roleName: le.record.user_type_name
37636
37640
  },
37637
- configType: le
37638
- }, `${F.record?.user_type_id}-${le}`) : null]
37641
+ configType: F
37642
+ }, `${le.record?.user_type_id}-${F}`) : null]
37639
37643
  }),
37640
37644
  /* @__PURE__ */ X(hr, {
37641
37645
  className: "admin-role-modal",
@@ -45545,7 +45549,7 @@ function nM() {
45545
45549
  a?.id,
45546
45550
  D,
45547
45551
  O
45548
- ]), P = Jn(async () => {
45552
+ ]), ce = Jn(async () => {
45549
45553
  if (!(!r || !a?.name)) {
45550
45554
  E(!0);
45551
45555
  try {
@@ -45586,7 +45590,7 @@ function nM() {
45586
45590
  return;
45587
45591
  }
45588
45592
  Promise.resolve().then(async () => {
45589
- await re(), await ie(a.name), r && await P();
45593
+ await re(), await ie(a.name), r && await ce();
45590
45594
  });
45591
45595
  }, [
45592
45596
  a,
@@ -45594,7 +45598,7 @@ function nM() {
45594
45598
  re,
45595
45599
  ie,
45596
45600
  r,
45597
- P
45601
+ ce
45598
45602
  ]), a ? /* @__PURE__ */ Z("main", {
45599
45603
  className: "jobs-list-page",
45600
45604
  children: [/* @__PURE__ */ Z(Sr, {
@@ -46771,7 +46775,7 @@ function EM() {
46771
46775
  }
46772
46776
  }, se = (t, n) => {
46773
46777
  e.setFieldsValue({ [t]: SM(n) });
46774
- }, P = (t) => {
46778
+ }, ce = (t) => {
46775
46779
  e.setFieldsValue({
46776
46780
  module: SM(t),
46777
46781
  flow: void 0,
@@ -46788,7 +46792,7 @@ function EM() {
46788
46792
  "value",
46789
46793
  "expected"
46790
46794
  ]);
46791
- }, F = (t) => {
46795
+ }, le = (t) => {
46792
46796
  e.setFieldsValue({
46793
46797
  flow: SM(t),
46794
46798
  step_order: void 0,
@@ -46802,7 +46806,7 @@ function EM() {
46802
46806
  "value",
46803
46807
  "expected"
46804
46808
  ]);
46805
- }, ce = (t) => {
46809
+ }, P = (t) => {
46806
46810
  let n = yM(u, t);
46807
46811
  e.setFieldsValue({
46808
46812
  keyword: SM(t),
@@ -46814,7 +46818,7 @@ function EM() {
46814
46818
  "value",
46815
46819
  "expected"
46816
46820
  ]);
46817
- }, le = (e) => {
46821
+ }, F = (e) => {
46818
46822
  let n = _M[e];
46819
46823
  _({
46820
46824
  open: !0,
@@ -46912,13 +46916,13 @@ function EM() {
46912
46916
  optionFilterProp: "label",
46913
46917
  placeholder: "Select module",
46914
46918
  options: E,
46915
- onChange: P
46919
+ onChange: ce
46916
46920
  })
46917
46921
  }), /* @__PURE__ */ X(z, {
46918
46922
  "aria-label": "Add module",
46919
46923
  icon: /* @__PURE__ */ X(Yi, {}),
46920
46924
  style: { marginTop: 30 },
46921
- onClick: () => le("module")
46925
+ onClick: () => F("module")
46922
46926
  })]
46923
46927
  })
46924
46928
  }),
@@ -46934,7 +46938,7 @@ function EM() {
46934
46938
  disabled: M,
46935
46939
  options: o,
46936
46940
  placeholder: m ? "Loading flows" : "Enter flow",
46937
- onChange: F,
46941
+ onChange: le,
46938
46942
  filterOption: (e, t) => t?.value?.toLowerCase().includes(e.toLowerCase())
46939
46943
  })
46940
46944
  })
@@ -46966,7 +46970,7 @@ function EM() {
46966
46970
  optionFilterProp: "label",
46967
46971
  placeholder: "Select action",
46968
46972
  options: c,
46969
- onChange: ce
46973
+ onChange: P
46970
46974
  })
46971
46975
  })
46972
46976
  }),
@@ -47345,6 +47349,6 @@ async function XM(e, t, n, r = 10, i = 0, a = {}) {
47345
47349
  //#region src/index.js
47346
47350
  var ZM = xA, QM = uS(vj), $M = uS(bj), eN = uS(Fj), tN = uS(qj), nN = uS(nM), rN = uS(aM), iN = uS(cM), aN = uS(dM), oN = uS(pM), sN = uS(EM), cN = uS(OM);
47347
47351
  //#endregion
47348
- export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, tm as ActivityTab, iA as AddBatchCandidatePopup, zp as AddFormV1, xA as AdminDashboard, ME as AdminDashboardContent, ZM as AdminPage, Bp as AppAlert, Cu as AppButton, Nx as AppShell, Oy as ApprovalActionBar, nm as AssigneeAvatars, jx as AuthGuard, xg as BILLING_STATUS_FLOW, rm as BULK_UPLOAD_DEFAULT_ACCEPT, im as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Cn as Breadcrumb, eN as BulkUploadPage, fm as BulkUploadPanel, w as CANDIDATES_URL, qy as CONTRACT_C2C, Ky as CONTRACT_W2, io as CalendarCard, IE as CoreThemeAdminApp, FE as CoreThemeAdminRoutes, Zo as CustomPagination, Sy as DayLogModal, Tm as DescriptionBlock, C_ as DetailHeaderCard, A_ as DetailViewPage, Th as DetailViewV1, ft as DocumentViewer, Zs as DynamicCards, xO as DynamicPopup, sA as DynamicPopupRoute, co as DynamicTabs, wv as EditFormV1, Vy as FINANCE_APPROVAL_CONFIG, Iy as FINANCE_TYPE_CFO, Fy as FINANCE_TYPE_ONBOARDING_MANAGER, zy as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, Ly as FINANCE_TYPE_ONLY_FINANCE, Py as FINANCE_TYPE_SUBMISSION_MANAGER, Ry as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, Ab as FileListCard, bb as FinanceApprovalPanel, n_ as FinanceAvatar, o_ as FinanceBadge, Ay as FinanceDayCell, Jg as FinanceDivider, r_ as FinanceEmployeeCell, Gg as FinanceEmptyState, Yg as FinanceEquation, $g as FinanceHistoryTimeline, Wg as FinanceHoursGrid, Ug as FinanceKpiRow, qg as FinanceLine, iy as FinanceListToolbar, s_ as FinanceMarginBadge, a_ as FinanceMoneyCell, u_ as FinanceRecordsTable, c_ as FinanceRowChevron, Kg as FinanceSection, Hg as FinanceStatusPill, i_ as FinanceTextCell, My as FinanceTimesheetAnalysis, Xg as FinanceWorkflowSteps, ax as Header, nc as HierarchyUserFilter, n as JOBS_URL, QM as LegacyAdminPage, yf as ListView, cN as LmsHomePage, sN as LmsTestForm, Px as Login, WE as MailPopup, rN as ManageModules, iN as ManageSubmodules, Nv as ModuleRowActions, Dy as NotesPanel, Sg as PAYROLL_STATUS_FLOW, Yk as POPUP_CONFIGS, Bv as ParamCardView, Kv as ParamListView, cy as PeriodBadgeTag, SD as PreviewPopup, lS as ProjectSelect, Ey as ProofUploadPreview, Ty as QuickLogBar, Cy as QuickLogSelectionBar, wy as RejectionReasonModal, e as SUBMISSIONS_URL, Dx as Sidebar, Jv as StatusBadge, sy as StatusBadgeTag, $M as StickyNotesFullPage, Xv as StylishDynamicTabs, ty as TemplateEditor, tN as TestForm, oN as TestingHomePage, qp as TimelineGroups, _y as TimesheetDayCell, lt as TipTapEditor, bA as UserForm, dA as VendorShareDrawer, Su as ViewSummaryWidget, OD as WizardPopup, aN as ZinnextTableView, nN as ZinnextTestForm, Ht as applyIntegrationStatus, Mo as approveSubmission, lm as buildAcceptAttr, Ig as buildCsv, Ag as buildDailyRows, hy as buildDayGradient, db as buildRateHistoryEntries, Ng as buildWeeklyRollup, v as clearSelectedProject, D as colors, lb as computeFinance, Pg as computeMarginBand, C as configureCoreTheme, JM as createAllWorkflowsListFetcher, UM as createWorkflowStageListFetcher, F as deleteIntegrationConfig, kg as deriveDayStats, Bg as downloadCsv, rb as findEmployerRow, tb as flattenGroups, cm as formatFileSize, fb as formatFinanceMoney, fg as formatHours, dg as formatMoney, mg as formatPercent, pg as formatRate, un as getActivity, YM as getAllWorkflowsModuleList, vg as getApprovalDate, tt as getBgcIntegrationConfig, st as getBgcIntegrationSummary, Cg as getBillingActionStates, y as getCurrentRoleName, Rg as getFieldLabel, sm as getFileExtension, Uy as getFinanceApprovalConfig, Ob as getFormGroupsRaw, ut as getIntegrationConfig, gt as getIntegrationConfigs, Ue as getIntegrationSummary, Jo as getModuleConfig, Ot as getModuleDataDetail, wg as getPayrollActionStates, Xo as getPeriodBadgeConfig, s as getSelectedProject, p as getStoredToken, x as getStoredUser, c as getUserRoles, No as getVMSApprove, zg as getValueStyle, XM as getWorkflowStageModuleList, Tg as getWorkflowSteps, _g as humanizeEvent, Lf as i, Lg as indexFieldConfig, hg as initialsOf, l as isTester, m as logout, Gy as marginIncludesReferral, cb as matchLocationTax, N_ as n, ab as normalizeContract, pm as r, Fo as rejectSubmission, Qp as resolveActivityMeta, ub as resolveAndCompute, sb as resolveFinanceInputs, MM as resolveMergeKey, Wy as resolveRejectionReason, kb as resolveSubmissionFinance, zn as saveBgcIntegrationConfig, Je as saveIntegrationConfig, u as setSelectedProject, WM as stageCountKey, Fx as t, Ie as testIntegrationConnection, Gc as useDropdownFields, wu as useDropdownValues, jb as useEditForm, Kc as useFieldConfig, qc as useFilterFields, $c as useMenuPermission, Ev as useModuleActions, D_ as useRecordRefresh, um as validateBulkFile, r as withAdminAppId, t as withAppId, uS as withAuthGuard };
47352
+ export { i as ADMIN_API_URL, S as ADMIN_APP_ID, T as APP_ID, o as AUTH_URL, tm as ActivityTab, iA as AddBatchCandidatePopup, zp as AddFormV1, xA as AdminDashboard, ME as AdminDashboardContent, ZM as AdminPage, Bp as AppAlert, Cu as AppButton, Nx as AppShell, Oy as ApprovalActionBar, nm as AssigneeAvatars, jx as AuthGuard, xg as BILLING_STATUS_FLOW, rm as BULK_UPLOAD_DEFAULT_ACCEPT, im as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Cn as Breadcrumb, eN as BulkUploadPage, fm as BulkUploadPanel, w as CANDIDATES_URL, qy as CONTRACT_C2C, Ky as CONTRACT_W2, io as CalendarCard, IE as CoreThemeAdminApp, FE as CoreThemeAdminRoutes, Zo as CustomPagination, Sy as DayLogModal, Tm as DescriptionBlock, C_ as DetailHeaderCard, A_ as DetailViewPage, Th as DetailViewV1, ft as DocumentViewer, Zs as DynamicCards, xO as DynamicPopup, sA as DynamicPopupRoute, co as DynamicTabs, wv as EditFormV1, Vy as FINANCE_APPROVAL_CONFIG, Iy as FINANCE_TYPE_CFO, Fy as FINANCE_TYPE_ONBOARDING_MANAGER, zy as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, Ly as FINANCE_TYPE_ONLY_FINANCE, Py as FINANCE_TYPE_SUBMISSION_MANAGER, Ry as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, Ab as FileListCard, bb as FinanceApprovalPanel, n_ as FinanceAvatar, o_ as FinanceBadge, Ay as FinanceDayCell, Jg as FinanceDivider, r_ as FinanceEmployeeCell, Gg as FinanceEmptyState, Yg as FinanceEquation, $g as FinanceHistoryTimeline, Wg as FinanceHoursGrid, Ug as FinanceKpiRow, qg as FinanceLine, iy as FinanceListToolbar, s_ as FinanceMarginBadge, a_ as FinanceMoneyCell, u_ as FinanceRecordsTable, c_ as FinanceRowChevron, Kg as FinanceSection, Hg as FinanceStatusPill, i_ as FinanceTextCell, My as FinanceTimesheetAnalysis, Xg as FinanceWorkflowSteps, ax as Header, nc as HierarchyUserFilter, n as JOBS_URL, QM as LegacyAdminPage, yf as ListView, cN as LmsHomePage, sN as LmsTestForm, Px as Login, WE as MailPopup, rN as ManageModules, iN as ManageSubmodules, Nv as ModuleRowActions, Dy as NotesPanel, Sg as PAYROLL_STATUS_FLOW, Yk as POPUP_CONFIGS, Bv as ParamCardView, Kv as ParamListView, cy as PeriodBadgeTag, SD as PreviewPopup, lS as ProjectSelect, Ey as ProofUploadPreview, Ty as QuickLogBar, Cy as QuickLogSelectionBar, wy as RejectionReasonModal, e as SUBMISSIONS_URL, Dx as Sidebar, Jv as StatusBadge, sy as StatusBadgeTag, $M as StickyNotesFullPage, Xv as StylishDynamicTabs, ty as TemplateEditor, tN as TestForm, oN as TestingHomePage, qp as TimelineGroups, _y as TimesheetDayCell, lt as TipTapEditor, bA as UserForm, dA as VendorShareDrawer, Su as ViewSummaryWidget, OD as WizardPopup, aN as ZinnextTableView, nN as ZinnextTestForm, Ht as applyIntegrationStatus, Mo as approveSubmission, lm as buildAcceptAttr, Ig as buildCsv, Ag as buildDailyRows, hy as buildDayGradient, db as buildRateHistoryEntries, Ng as buildWeeklyRollup, v as clearSelectedProject, D as colors, lb as computeFinance, Pg as computeMarginBand, C as configureCoreTheme, JM as createAllWorkflowsListFetcher, UM as createWorkflowStageListFetcher, le as deleteIntegrationConfig, kg as deriveDayStats, Bg as downloadCsv, rb as findEmployerRow, tb as flattenGroups, cm as formatFileSize, fb as formatFinanceMoney, fg as formatHours, dg as formatMoney, mg as formatPercent, pg as formatRate, un as getActivity, YM as getAllWorkflowsModuleList, vg as getApprovalDate, tt as getBgcIntegrationConfig, st as getBgcIntegrationSummary, Cg as getBillingActionStates, y as getCurrentRoleName, Rg as getFieldLabel, sm as getFileExtension, Uy as getFinanceApprovalConfig, Ob as getFormGroupsRaw, ut as getIntegrationConfig, gt as getIntegrationConfigs, Ue as getIntegrationSummary, Jo as getModuleConfig, Ot as getModuleDataDetail, wg as getPayrollActionStates, Xo as getPeriodBadgeConfig, s as getSelectedProject, p as getStoredToken, x as getStoredUser, c as getUserRoles, No as getVMSApprove, zg as getValueStyle, XM as getWorkflowStageModuleList, Tg as getWorkflowSteps, _g as humanizeEvent, Lf as i, Lg as indexFieldConfig, hg as initialsOf, l as isTester, m as logout, Gy as marginIncludesReferral, cb as matchLocationTax, N_ as n, ab as normalizeContract, pm as r, Fo as rejectSubmission, Qp as resolveActivityMeta, ub as resolveAndCompute, sb as resolveFinanceInputs, MM as resolveMergeKey, Wy as resolveRejectionReason, kb as resolveSubmissionFinance, zn as saveBgcIntegrationConfig, Je as saveIntegrationConfig, u as setSelectedProject, WM as stageCountKey, Fx as t, Ie as testIntegrationConnection, Gc as useDropdownFields, wu as useDropdownValues, jb as useEditForm, Kc as useFieldConfig, qc as useFilterFields, $c as useMenuPermission, Ev as useModuleActions, D_ as useRecordRefresh, um as validateBulkFile, r as withAdminAppId, t as withAppId, uS as withAuthGuard };
47349
47353
 
47350
47354
  //# sourceMappingURL=index.js.map