@realtek/core-theme-live 0.0.369 → 0.0.370

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,9 +1,9 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { A as t, C as n, D as r, E as i, O as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, j as _, k as v, l as y, m as b, o as x, p as S, r as C, s as w, t as T, u as E, v as D, w as O, x as k, y as ee } from "./authApi-wUjQmdqf.js";
3
- import { $ as A, $n as j, $r as te, $t as ne, A as M, An as N, Ar as P, At as re, B as ie, Bn as ae, Br as oe, Bt as se, C as ce, Cn as le, Cr as ue, Ct as de, D as fe, Dn as pe, Dr as me, Dt as he, E as ge, En as _e, Er as ve, Et as ye, F as be, Fn as xe, Fr as Se, Ft as Ce, G as we, Gn as Te, Gr as Ee, Gt as De, H as Oe, Hn as ke, Hr as Ae, Ht as je, I as Me, In as Ne, Ir as Pe, It as Fe, J as Ie, Jn as Le, Jr as Re, Jt as ze, K as Be, Kn as Ve, Kr as He, Kt as Ue, L as We, Ln as Ge, Lr as Ke, Lt as qe, M as Je, Mn as Ye, Mr as Xe, Mt as Ze, N as Qe, Nn as $e, Nr as et, Nt as tt, O as nt, On as rt, Or as it, Ot as at, P as ot, Pn as st, Pr as ct, Pt as lt, Q as ut, Qn as dt, Qr as ft, Qt as pt, R as mt, Rn as ht, Rr as gt, Rt as _t, S as vt, Si as yt, Sn as bt, Sr as xt, St, T as Ct, Tn as wt, Tr as Tt, Tt as Et, U as Dt, Un as Ot, Ur as kt, Ut as At, V as jt, Vn as Mt, Vr as Nt, Vt as Pt, W as Ft, Wn as It, Wr as Lt, Wt as Rt, X as zt, Xn as Bt, Xr as Vt, Xt as Ht, Y as Ut, Yn as Wt, Yr as Gt, Yt as Kt, Z as qt, Zn as Jt, Zr as Yt, Zt as Xt, _ as Zt, _i as Qt, _n as $t, _r as en, _t as tn, a as nn, ai as rn, an, ar as on, at as sn, b as cn, bi as ln, bn as un, br as dn, bt as fn, c as pn, ci as mn, cn as hn, cr as gn, ct as _n, d as vn, di as yn, dn as bn, dr as xn, dt as Sn, ei as Cn, en as wn, er as Tn, et as En, f as Dn, fi as On, fn as kn, fr as An, ft as jn, g as Mn, gi as Nn, gn as Pn, gr as Fn, gt as In, h as Ln, hi as Rn, hn as zn, hr as Bn, ht as Vn, i as Hn, ii as Un, in as Wn, ir as Gn, it as Kn, j as qn, jn as Jn, jr as Yn, jt as Xn, k as Zn, kn as Qn, kr as $n, kt as er, l as tr, li as nr, ln as rr, lr as ir, lt as ar, m as or, mi as sr, mn as cr, mr as lr, mt as ur, n as dr, ni as fr, nn as pr, nr as mr, nt as hr, o as gr, oi as _r, on as vr, or as yr, ot as br, p as xr, pi as Sr, pn as Cr, pr as wr, pt as Tr, q as Er, qn as Dr, qr as Or, qt as kr, r as Ar, ri as jr, rn as Mr, rr as Nr, rt as Pr, s as Fr, si as Ir, sn as Lr, sr as Rr, st as zr, t as Br, ti as Vr, tn as Hr, tr as Ur, tt as Wr, u as Gr, ui as Kr, un as qr, ur as Jr, ut as Yr, v as Xr, vi as Zr, vn as Qr, vr as $r, vt as ei, w as ti, wn as ni, wr as ri, wt as ii, x as ai, xi as oi, xn as si, xr as ci, xt as li, y as ui, yi as di, yn as fi, yr as pi, yt as mi, z as hi, zn as gi, zr as _i, zt as vi } from "./Breadcrumb-BrfqfnvF.js";
2
+ import { A as t, C as n, D as r, E as i, O as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, j as _, k as v, l as y, m as b, o as x, p as S, r as C, s as w, t as T, u as E, v as D, w as O, x as k, y as ee } from "./authApi-Flvm7WKc.js";
3
+ import { $ as A, $n as j, $r as te, $t as ne, A as M, An as N, Ar as P, At as re, B as ie, Bn as ae, Br as oe, Bt as se, C as ce, Cn as le, Cr as ue, Ct as de, D as fe, Dn as pe, Dr as me, Dt as he, E as ge, En as _e, Er as ve, Et as ye, F as be, Fn as xe, Fr as Se, Ft as Ce, G as we, Gn as Te, Gr as Ee, Gt as De, H as Oe, Hn as ke, Hr as Ae, Ht as je, I as Me, In as Ne, Ir as Pe, It as Fe, J as Ie, Jn as Le, Jr as Re, Jt as ze, K as Be, Kn as Ve, Kr as He, Kt as Ue, L as We, Ln as Ge, Lr as Ke, Lt as qe, M as Je, Mn as Ye, Mr as Xe, Mt as Ze, N as Qe, Nn as $e, Nr as et, Nt as tt, O as nt, On as rt, Or as it, Ot as at, P as ot, Pn as st, Pr as ct, Pt as lt, Q as ut, Qn as dt, Qr as ft, Qt as pt, R as mt, Rn as ht, Rr as gt, Rt as _t, S as vt, Si as yt, Sn as bt, Sr as xt, St, T as Ct, Tn as wt, Tr as Tt, Tt as Et, U as Dt, Un as Ot, Ur as kt, Ut as At, V as jt, Vn as Mt, Vr as Nt, Vt as Pt, W as Ft, Wn as It, Wr as Lt, Wt as Rt, X as zt, Xn as Bt, Xr as Vt, Xt as Ht, Y as Ut, Yn as Wt, Yr as Gt, Yt as Kt, Z as qt, Zn as Jt, Zr as Yt, Zt as Xt, _ as Zt, _i as Qt, _n as $t, _r as en, _t as tn, a as nn, ai as rn, an, ar as on, at as sn, b as cn, bi as ln, bn as un, br as dn, bt as fn, c as pn, ci as mn, cn as hn, cr as gn, ct as _n, d as vn, di as yn, dn as bn, dr as xn, dt as Sn, ei as Cn, en as wn, er as Tn, et as En, f as Dn, fi as On, fn as kn, fr as An, ft as jn, g as Mn, gi as Nn, gn as Pn, gr as Fn, gt as In, h as Ln, hi as Rn, hn as zn, hr as Bn, ht as Vn, i as Hn, ii as Un, in as Wn, ir as Gn, it as Kn, j as qn, jn as Jn, jr as Yn, jt as Xn, k as Zn, kn as Qn, kr as $n, kt as er, l as tr, li as nr, ln as rr, lr as ir, lt as ar, m as or, mi as sr, mn as cr, mr as lr, mt as ur, n as dr, ni as fr, nn as pr, nr as mr, nt as hr, o as gr, oi as _r, on as vr, or as yr, ot as br, p as xr, pi as Sr, pn as Cr, pr as wr, pt as Tr, q as Er, qn as Dr, qr as Or, qt as kr, r as Ar, ri as jr, rn as Mr, rr as Nr, rt as Pr, s as Fr, si as Ir, sn as Lr, sr as Rr, st as zr, t as Br, ti as Vr, tn as Hr, tr as Ur, tt as Wr, u as Gr, ui as Kr, un as qr, ur as Jr, ut as Yr, v as Xr, vi as Zr, vn as Qr, vr as $r, vt as ei, w as ti, wn as ni, wr as ri, wt as ii, x as ai, xi as oi, xn as si, xr as ci, xt as li, y as ui, yi as di, yn as fi, yr as pi, yt as mi, z as hi, zn as gi, zr as _i, zt as vi } from "./Breadcrumb-BrUJLsw1.js";
4
4
  import { r as yi } from "./diceCandidateMapper-DqBO4EhL.js";
5
5
  import { t as bi } from "./formGroupsCache-JeC59oNe.js";
6
- import { n as xi, r as Si } from "./addFormApi-BoviokoY.js";
6
+ import { n as xi, r as Si } from "./addFormApi-C73cTTIu.js";
7
7
  import Ci, { Fragment as wi, createContext as Ti, createElement as Ei, forwardRef as Di, useCallback as Oi, useContext as ki, useEffect as F, useId as Ai, useImperativeHandle as ji, useMemo as I, useRef as Mi, useState as L } from "react";
8
8
  import { Alert as Ni, AutoComplete as Pi, Avatar as Fi, Badge as Ii, Breadcrumb as Li, Button as R, Card as Ri, Checkbox as zi, Col as z, Collapse as Bi, DatePicker as Vi, Divider as Hi, Drawer as Ui, Dropdown as Wi, Empty as Gi, Flex as Ki, Form as B, Input as V, InputNumber as qi, Layout as Ji, Mentions as Yi, Menu as Xi, Modal as Zi, Pagination as Qi, Popconfirm as $i, Popover as ea, Progress as ta, Radio as na, Result as ra, Row as ia, Select as H, Skeleton as aa, Slider as oa, Space as U, Spin as sa, Statistic as ca, Steps as la, Switch as W, Table as ua, Tabs as da, Tag as G, TimePicker as fa, Tooltip as K, Tree as pa, Typography as ma, Upload as ha, message as q } from "antd";
9
9
  import { AimOutlined as ga, ApartmentOutlined as _a, ApiOutlined as va, AppstoreAddOutlined as ya, AppstoreOutlined as ba, ArrowDownOutlined as xa, ArrowLeftOutlined as Sa, ArrowUpOutlined as Ca, AuditOutlined as wa, BankOutlined as Ta, BellOutlined as Ea, BgColorsOutlined as Da, BuildOutlined as Oa, CalendarOutlined as ka, CaretDownOutlined as Aa, CaretUpOutlined as ja, CheckCircleFilled as Ma, CheckCircleOutlined as Na, CheckOutlined as Pa, ClearOutlined as Fa, ClockCircleOutlined as Ia, CloseCircleFilled as La, CloseCircleOutlined as Ra, CloseOutlined as za, CloudDownloadOutlined as Ba, CloudUploadOutlined as Va, CopyOutlined as Ha, CrownOutlined as Ua, DashboardOutlined as Wa, DatabaseOutlined as Ga, DeleteOutlined as Ka, DollarCircleFilled as qa, DollarOutlined as Ja, DownOutlined as Ya, DownloadOutlined as Xa, EditOutlined as Za, EnvironmentOutlined as Qa, ExclamationCircleFilled as $a, ExclamationCircleOutlined as eo, ExportOutlined as to, EyeOutlined as no, FieldTimeOutlined as ro, FileDoneOutlined as io, FileExcelOutlined as ao, FileImageOutlined as oo, FileOutlined as so, FilePdfOutlined as co, FileTextFilled as lo, FileTextOutlined as uo, FileWordOutlined as fo, FilterOutlined as po, GlobalOutlined as mo, HistoryOutlined as ho, HolderOutlined as go, HomeOutlined as _o, IdcardOutlined as vo, InboxOutlined as yo, InfoCircleOutlined as bo, KeyOutlined as xo, LaptopOutlined as So, LeftOutlined as Co, LinkOutlined as wo, LinkedinFilled as To, LockOutlined as Eo, LogoutOutlined as Do, MailOutlined as Oo, MenuOutlined as ko, MergeCellsOutlined as Ao, MessageOutlined as jo, MinusCircleOutlined as Mo, MoreOutlined as No, PaperClipOutlined as Po, PhoneOutlined as Fo, PlayCircleOutlined as Io, PlusOutlined as Lo, ProfileOutlined as Ro, ProjectOutlined as zo, RedoOutlined as Bo, ReloadOutlined as Vo, RestOutlined as Ho, RightOutlined as Uo, RiseOutlined as Wo, SafetyCertificateOutlined as Go, SafetyOutlined as Ko, SaveOutlined as qo, SearchOutlined as Jo, SendOutlined as Yo, SettingOutlined as Xo, ShareAltOutlined as Zo, SnippetsOutlined as Qo, SolutionOutlined as $o, StarFilled as es, StarOutlined as ts, SwapOutlined as ns, SyncOutlined as rs, TableOutlined as is, TagsOutlined as as, TeamOutlined as os, ThunderboltOutlined as ss, ToolOutlined as cs, UndoOutlined as ls, UnlockOutlined as us, UnorderedListOutlined as ds, UpOutlined as fs, UploadOutlined as ps, UserAddOutlined as ms, UserOutlined as hs, UserSwitchOutlined as gs, WarningOutlined as _s } from "@ant-design/icons";
@@ -7037,7 +7037,7 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7037
7037
  errors: []
7038
7038
  }]);
7039
7039
  }, [je]);
7040
- let Pe = e.locationCountryFrom ? Lh(e.locationCountryFrom) : ["__noop_loc_country__"], Fe = e.locationCountryFrom && M ? [...n.slice(0, 2), ...Lh(e.locationCountryFrom)] : ["__noop_loc_country_row__"], Ie = B.useWatch(Pe, t), Le = B.useWatch(Fe, t), Re = ng(Le) ? Ie : Le, ze = e.locationStateFrom ? Lh(e.locationStateFrom) : ["__noop_loc_state__"], Be = e.locationStateFrom && M ? [...n.slice(0, 2), ...Lh(e.locationStateFrom)] : ["__noop_loc_state_row__"], Ve = B.useWatch(ze, t), He = B.useWatch(Be, t), Ue = ng(He) ? Ve : He, Ge = e.dataSource === "locationMaster" && (e.locationLevel === "state" && ng(Re) || e.locationLevel === "city" && (ng(Re) || ng(Ue))), Ke = h || !!e.disabled || me || (e.disabledByField ? Ph(ce) : !1) || !!f || Te || ke || Ge;
7040
+ let Pe = e.locationCountryFrom ? Lh(e.locationCountryFrom) : ["__noop_loc_country__"], Fe = e.locationCountryFrom && M ? [...n.slice(0, 2), ...Lh(e.locationCountryFrom)] : ["__noop_loc_country_row__"], Ie = B.useWatch(Pe, t), Le = B.useWatch(Fe, t), Re = ng(Le) ? Ie : Le, ze = e.locationStateFrom ? Lh(e.locationStateFrom) : ["__noop_loc_state__"], Be = e.locationStateFrom && M ? [...n.slice(0, 2), ...Lh(e.locationStateFrom)] : ["__noop_loc_state_row__"], Ve = B.useWatch(ze, t), He = B.useWatch(Be, t), Ue = ng(He) ? Ve : He, Ge = e.dataSource === "locationMaster" && (e.locationLevel === "state" && ng(Re) || e.locationLevel === "city" && (ng(Re) || ng(Ue))), Ke = h || !!e.disabled || me || (e.disabledByField ? Ph(ce) : !1) || !!f || Te || ke || Ge, qe = ke ? `Only one row can be marked ${e.label ? `"${e.label}"` : "this"} at a time.` : "";
7041
7041
  F(() => {
7042
7042
  if (m === "location") {
7043
7043
  let t = !1;
@@ -7167,19 +7167,19 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7167
7167
  Re,
7168
7168
  Ue
7169
7169
  ]);
7170
- let qe = Ih(e.options ?? e.values ?? []), Je = g ?? qe, [Ye, Xe] = L([]), Ze = cn(i, Je).join(",");
7170
+ let Je = Ih(e.options ?? e.values ?? []), Ye = g ?? Je, [Xe, Ze] = L([]), Qe = cn(i, Ye).join(",");
7171
7171
  F(() => {
7172
- if (!Ze || e.dataSource !== "lookup" || v) return;
7172
+ if (!Qe || e.dataSource !== "lookup" || v) return;
7173
7173
  let t = !1;
7174
- return Xr(e, Ze.split(",")).then((e) => {
7175
- t || Xe(e);
7174
+ return Xr(e, Qe.split(",")).then((e) => {
7175
+ t || Ze(e);
7176
7176
  }).catch(() => {
7177
- t || Xe([]);
7177
+ t || Ze([]);
7178
7178
  }), () => {
7179
7179
  t = !0;
7180
7180
  };
7181
7181
  }, [
7182
- Ze,
7182
+ Qe,
7183
7183
  e.dataSource,
7184
7184
  e.lookupCollection,
7185
7185
  e.displayField,
@@ -7187,11 +7187,11 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7187
7187
  e.valueField,
7188
7188
  v
7189
7189
  ]);
7190
- let Qe = ui(Je, Ye), $e = he ? jt(Qe, xe) : Qe, et = Se ? Oe($e, Se, we ?? {}) : $e, tt = (e.multiSelect ? "multiple" : e.mode ?? (Ph(e.multiple) ? "multiple" : void 0)) ?? (Ht(e) === "array" ? "multiple" : void 0), nt = Ph(e.allowCustomValues), rt = nt ? "tags" : tt, it = !!e.multiSelect || Ph(e.multiple) || Ht(e) === "array" || tt === "multiple", at = nt ? typeof e.tokenSeparators == "string" && e.tokenSeparators ? e.tokenSeparators.split("") : [","] : void 0, ot = ["select", "location"].includes(m), st = e.hidePlaceholder ? void 0 : e.placeholder ?? `${ot ? "Select" : "Enter"} ${String(e.label ?? "").toLowerCase()}`, ct = pg(e), lt = (e) => {
7190
+ let $e = ui(Ye, Xe), et = he ? jt($e, xe) : $e, tt = Se ? Oe(et, Se, we ?? {}) : et, nt = (e.multiSelect ? "multiple" : e.mode ?? (Ph(e.multiple) ? "multiple" : void 0)) ?? (Ht(e) === "array" ? "multiple" : void 0), rt = Ph(e.allowCustomValues), it = rt ? "tags" : nt, at = !!e.multiSelect || Ph(e.multiple) || Ht(e) === "array" || nt === "multiple", ot = rt ? typeof e.tokenSeparators == "string" && e.tokenSeparators ? e.tokenSeparators.split("") : [","] : void 0, st = ["select", "location"].includes(m), ct = e.hidePlaceholder ? void 0 : e.placeholder ?? `${st ? "Select" : "Enter"} ${String(e.label ?? "").toLowerCase()}`, lt = pg(e), ut = (e) => {
7191
7191
  o?.(e), setTimeout(() => {
7192
7192
  t.validateFields([n]).catch(() => {});
7193
7193
  }, 0);
7194
- }, ut = zr({
7194
+ }, dt = zr({
7195
7195
  field: e,
7196
7196
  form: t,
7197
7197
  name: n,
@@ -7201,44 +7201,44 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7201
7201
  onDone: (r, i) => {
7202
7202
  O((e) => e + 1);
7203
7203
  let a = Ht(e) !== "array" && !e.multiSelect && !e.multiple;
7204
- r === "create" && i != null && a && ((e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, p), lt(pr(e) ? { value: i } : i)), r === "edit" && (e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, p);
7204
+ r === "create" && i != null && a && ((e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, p), ut(pr(e) ? { value: i } : i)), r === "edit" && (e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, p);
7205
7205
  }
7206
- }), dt = e.validator?.type ? {
7206
+ }), ft = e.validator?.type ? {
7207
7207
  ...e.validator,
7208
7208
  title: e.validator.title || e.label || "Field"
7209
- } : null, ft = {
7210
- ...ct,
7209
+ } : null, pt = {
7210
+ ...lt,
7211
7211
  disabled: Ke,
7212
- placeholder: st,
7212
+ placeholder: ct,
7213
7213
  prefix: e.icon ? null : Nh[e.field],
7214
7214
  value: i ?? "",
7215
7215
  onChange: (t) => {
7216
7216
  let n = e.formatter ? _g(t.target.value, e.formatter) : t.target.value;
7217
- if (dt) {
7218
- let { cleaned: e, error: t } = de(n, dt, "change");
7217
+ if (ft) {
7218
+ let { cleaned: e, error: t } = de(n, ft, "change");
7219
7219
  te(t), n = e;
7220
7220
  }
7221
- lt(n);
7221
+ ut(n);
7222
7222
  },
7223
7223
  onBlur: (t) => {
7224
- if (dt) {
7225
- let { cleaned: e, error: n } = de(t.target.value, dt, "blur");
7226
- te(n), e !== t.target.value && lt(e);
7224
+ if (ft) {
7225
+ let { cleaned: e, error: n } = de(t.target.value, ft, "blur");
7226
+ te(n), e !== t.target.value && ut(e);
7227
7227
  }
7228
7228
  e.checkDuplicateOnBlur && String(t.target.value ?? "").trim() && l?.(e);
7229
7229
  },
7230
- ...dt && {
7230
+ ...ft && {
7231
7231
  onKeyPress: (e) => {
7232
- let t = ii(dt.type);
7232
+ let t = ii(ft.type);
7233
7233
  if (!t || e.which === 0 || e.keyCode === 8 || e.keyCode === 13) return;
7234
7234
  let n = String.fromCharCode(e.which ?? e.keyCode);
7235
7235
  if (!t.test(n)) {
7236
7236
  e.preventDefault();
7237
- let t = `${dt.title} — invalid character.`;
7237
+ let t = `${ft.title} — invalid character.`;
7238
7238
  te(t), setTimeout(() => te((e) => e === t ? null : e), 1800);
7239
7239
  }
7240
7240
  },
7241
- maxLength: dt.maxLength ?? ct.maxLength
7241
+ maxLength: ft.maxLength ?? lt.maxLength
7242
7242
  }
7243
7243
  };
7244
7244
  if (m === "tagify") return /* @__PURE__ */ Y(H, {
@@ -7246,8 +7246,8 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7246
7246
  allowClear: !0,
7247
7247
  disabled: Ke,
7248
7248
  mode: "tags",
7249
- placeholder: st,
7250
- onChange: lt
7249
+ placeholder: ct,
7250
+ onChange: ut
7251
7251
  });
7252
7252
  if (m === "location") return /* @__PURE__ */ Y(H, {
7253
7253
  value: i,
@@ -7256,18 +7256,18 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7256
7256
  filterOption: !1,
7257
7257
  disabled: Ke,
7258
7258
  loading: v,
7259
- mode: tt,
7260
- options: et,
7261
- placeholder: st,
7259
+ mode: nt,
7260
+ options: tt,
7261
+ placeholder: ct,
7262
7262
  notFoundContent: v ? /* @__PURE__ */ Y(sa, { size: "small" }) : void 0,
7263
7263
  onSearch: S,
7264
7264
  onFocus: () => S((e) => e),
7265
- onChange: lt
7265
+ onChange: ut
7266
7266
  });
7267
7267
  if (m === "select") {
7268
- let r = e.dataSource === "lookup", a = e.dataSource === "master", o = r || a, s = pr(e), c = Hr(e, i, et);
7268
+ let r = e.dataSource === "lookup", a = e.dataSource === "master", o = r || a, s = pr(e), c = Hr(e, i, tt);
7269
7269
  return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(H, {
7270
- value: nt && !it ? c == null || c === "" ? void 0 : Array.isArray(c) ? c : [c] : c,
7270
+ value: rt && !at ? c == null || c === "" ? void 0 : Array.isArray(c) ? c : [c] : c,
7271
7271
  labelInValue: s || void 0,
7272
7272
  allowClear: !0,
7273
7273
  showSearch: e.showSearch !== !1,
@@ -7275,15 +7275,15 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7275
7275
  filterOption: !o && void 0,
7276
7276
  disabled: Ke,
7277
7277
  loading: v,
7278
- mode: rt,
7279
- tokenSeparators: at,
7280
- options: et,
7281
- placeholder: st,
7278
+ mode: it,
7279
+ tokenSeparators: ot,
7280
+ options: tt,
7281
+ placeholder: ct,
7282
7282
  notFoundContent: v ? /* @__PURE__ */ Y(sa, { size: "small" }) : void 0,
7283
7283
  onSearch: r ? w : a ? E : void 0,
7284
7284
  onChange: (r) => {
7285
- let i = nt && !it && Array.isArray(r) ? r.length ? r[r.length - 1] : void 0 : r;
7286
- if (lt(i), (e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, p), e.autofillFrom?.length) {
7285
+ let i = rt && !at && Array.isArray(r) ? r.length ? r[r.length - 1] : void 0 : r;
7286
+ if (ut(i), (e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, p), e.autofillFrom?.length) {
7287
7287
  let r = i && !Array.isArray(i) && typeof i == "object" ? i.value : i, a = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number";
7288
7288
  if (i == null) e.autofillFrom.forEach(({ targetField: e }) => {
7289
7289
  let r = a ? [...n.slice(0, 2), ...Lh(e)] : Lh(e);
@@ -7298,49 +7298,59 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7298
7298
  }
7299
7299
  }
7300
7300
  },
7301
- popupRender: ut.footer ? (e) => /* @__PURE__ */ X(J, { children: [e, ut.footer] }) : void 0
7302
- }), ut.modal] });
7301
+ popupRender: dt.footer ? (e) => /* @__PURE__ */ X(J, { children: [e, dt.footer] }) : void 0
7302
+ }), dt.modal] });
7303
7303
  }
7304
7304
  if (m === "radio") return /* @__PURE__ */ Y(na.Group, {
7305
7305
  value: i,
7306
7306
  disabled: Ke,
7307
- options: et,
7308
- onChange: (e) => lt(e.target.value)
7309
- });
7310
- if (m === "checkbox") return et.length > 0 ? /* @__PURE__ */ Y(zi.Group, {
7311
- value: i,
7312
- disabled: Ke,
7313
- options: et,
7314
- onChange: lt
7315
- }) : /* @__PURE__ */ Y(zi, {
7316
- checked: !!(a ?? i),
7317
- disabled: Ke,
7318
- onChange: (r) => {
7319
- let i = r.target.checked;
7320
- if (!(i && u?.(e)) && (lt(i), i && d?.(e, n), e.linkedClearField && i)) {
7321
- let r = Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.linkedClearField] : [e.linkedClearField];
7322
- t.setFieldValue(r, null);
7323
- }
7324
- },
7325
- children: e.checkboxLabel ?? e.label
7307
+ options: tt,
7308
+ onChange: (e) => ut(e.target.value)
7326
7309
  });
7310
+ if (m === "checkbox") {
7311
+ if (tt.length > 0) return /* @__PURE__ */ Y(zi.Group, {
7312
+ value: i,
7313
+ disabled: Ke,
7314
+ options: tt,
7315
+ onChange: ut
7316
+ });
7317
+ let r = /* @__PURE__ */ Y(zi, {
7318
+ checked: !!(a ?? i),
7319
+ disabled: Ke,
7320
+ onChange: (r) => {
7321
+ let i = r.target.checked;
7322
+ if (!(i && u?.(e)) && (ut(i), i && d?.(e, n), e.linkedClearField && i)) {
7323
+ let r = Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.linkedClearField] : [e.linkedClearField];
7324
+ t.setFieldValue(r, null);
7325
+ }
7326
+ },
7327
+ children: e.checkboxLabel ?? e.label
7328
+ });
7329
+ return qe ? /* @__PURE__ */ Y(K, {
7330
+ title: qe,
7331
+ children: /* @__PURE__ */ Y("span", {
7332
+ className: "v1-disabled-reason-wrap",
7333
+ children: r
7334
+ })
7335
+ }) : r;
7336
+ }
7327
7337
  if (m === "text-editor") return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(_e, {
7328
7338
  value: i ?? t.getFieldValue(n) ?? "",
7329
7339
  disabled: Ke,
7330
- placeholder: st,
7340
+ placeholder: ct,
7331
7341
  onChange: (e) => {
7332
- if (dt) {
7333
- let { error: t } = de(e, dt, "change");
7342
+ if (ft) {
7343
+ let { error: t } = de(e, ft, "change");
7334
7344
  te(t);
7335
7345
  }
7336
- lt(e);
7346
+ ut(e);
7337
7347
  }
7338
7348
  }), j && /* @__PURE__ */ Y("div", {
7339
7349
  className: "v1-input-validator-hint",
7340
7350
  children: j
7341
7351
  })] });
7342
7352
  if (m === "textarea") return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(Ah, {
7343
- ...ft,
7353
+ ...pt,
7344
7354
  rows: e.rows ?? 3,
7345
7355
  className: "v1-scroll-textarea"
7346
7356
  }), j && /* @__PURE__ */ Y("div", {
@@ -7349,22 +7359,22 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7349
7359
  })] });
7350
7360
  if (m === "date") return /* @__PURE__ */ Y(Vi, {
7351
7361
  disabled: Ke,
7352
- placeholder: st,
7362
+ placeholder: ct,
7353
7363
  style: { width: "100%" },
7354
7364
  suffixIcon: /* @__PURE__ */ Y(ka, {}),
7355
7365
  value: i ?? null,
7356
7366
  disabledDate: hg(e, t, n),
7357
7367
  defaultPickerValue: gg(e),
7358
7368
  onChange: (t) => {
7359
- lt(t), d?.(e, n);
7369
+ ut(t), d?.(e, n);
7360
7370
  }
7361
7371
  });
7362
7372
  if (m === "time") return /* @__PURE__ */ Y(fa, {
7363
7373
  disabled: Ke,
7364
- placeholder: st,
7374
+ placeholder: ct,
7365
7375
  style: { width: "100%" },
7366
7376
  value: i ?? null,
7367
- onChange: (e) => lt(e)
7377
+ onChange: (e) => ut(e)
7368
7378
  });
7369
7379
  if (m === "file") {
7370
7380
  let t = e.validations ?? e.validation ?? e.rules ?? [], n = t.find((e) => (typeof e == "string" ? e : e?.type) === "fileType"), r = t.find((e) => (typeof e == "string" ? e : e?.type) === "fileSize"), a = t.find((e) => (typeof e == "string" ? e : e?.type) === "maxFiles"), o = ur(e), s = o ? o.exts.map((e) => `.${e}`).join(",") : n?.value ? n.value.split(",").map((e) => `.${e.trim().replace(/^\./, "")}`).join(",") : void 0, l = r ? Number(r?.value ?? 5) : void 0, u = a ? Number(a?.value ?? 1) : Ph(e.multiple) ? e.maxCount ?? 5 : 1, d = Array.isArray(i) ? i : [], f = d.length < u, p = (e) => e ? e < 1048576 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1024 / 1024).toFixed(2)} MB` : "", m = (e) => {
@@ -7382,7 +7392,7 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7382
7392
  "webp"
7383
7393
  ].includes(t) ? /* @__PURE__ */ Y(oo, { className: "v1-file-type-icon v1-file-icon-image" }) : /* @__PURE__ */ Y(so, { className: "v1-file-type-icon v1-file-icon-default" });
7384
7394
  }, h = (e) => {
7385
- lt(d.filter((t, n) => n !== e));
7395
+ ut(d.filter((t, n) => n !== e));
7386
7396
  }, g = (e, t) => {
7387
7397
  let n = d.map((e) => {
7388
7398
  let t = e.url ?? e.thumbUrl ?? "";
@@ -7405,7 +7415,7 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7405
7415
  return l !== void 0 && e.size / 1024 / 1024 > l && (q.error(r?.message ?? `File must be smaller than ${l} MB`), ha.LIST_IGNORE);
7406
7416
  }, C = ({ fileList: e }) => {
7407
7417
  let t = e.slice(0, u);
7408
- if (lt(t), c && t.length > d.length) {
7418
+ if (ut(t), c && t.length > d.length) {
7409
7419
  let e = t[t.length - 1];
7410
7420
  e?.originFileObj && c(e.originFileObj);
7411
7421
  }
@@ -7549,7 +7559,7 @@ function Cg({ field: e, form: t, name: n, moduleName: r, value: i, checked: a, o
7549
7559
  }), E] });
7550
7560
  }
7551
7561
  return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(V, {
7552
- ...ft,
7562
+ ...pt,
7553
7563
  type: m === "number" ? "number" : m,
7554
7564
  ...m === "number" && Ph(e.decimal) ? { step: "any" } : {},
7555
7565
  ...e.suffix ? { suffix: e.suffix } : {}
@@ -7572,20 +7582,24 @@ function wg({ icon: e, title: t }) {
7572
7582
  })]
7573
7583
  });
7574
7584
  }
7575
- function Tg({ field: e, label: t, locked: n }) {
7585
+ function Tg({ field: e, label: t, locked: n, disabledReason: r }) {
7576
7586
  if (!t) return t;
7577
- let r = mt(e), i = !!r;
7578
- return !i && !n ? t : /* @__PURE__ */ X("span", {
7587
+ let i = mt(e), a = !!i;
7588
+ return !a && !n && !r ? t : /* @__PURE__ */ X("span", {
7579
7589
  className: "v1-field-label-with-info",
7580
7590
  children: [
7581
7591
  /* @__PURE__ */ Y("span", { children: t }),
7582
- i && /* @__PURE__ */ Y(K, {
7583
- title: r,
7592
+ a && /* @__PURE__ */ Y(K, {
7593
+ title: i,
7584
7594
  children: /* @__PURE__ */ Y(bo, { className: "v1-field-info-icon" })
7585
7595
  }),
7586
7596
  n && /* @__PURE__ */ Y(K, {
7587
7597
  title: "You don't have permission to edit this field",
7588
7598
  children: /* @__PURE__ */ Y(Eo, { className: "v1-field-info-icon" })
7599
+ }),
7600
+ !n && r && /* @__PURE__ */ Y(K, {
7601
+ title: r,
7602
+ children: /* @__PURE__ */ Y(bo, { className: "v1-field-info-icon" })
7589
7603
  })
7590
7604
  ]
7591
7605
  });
@@ -14366,7 +14380,7 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14366
14380
  N,
14367
14381
  Ne,
14368
14382
  n
14369
- ]), Fe = e.locationCountryFrom ? Ze(e.locationCountryFrom) : ["__noop_loc_country__"], Ie = e.locationCountryFrom && N ? [...n.slice(0, 2), ...Ze(e.locationCountryFrom)] : ["__noop_loc_country_row__"], Le = B.useWatch(Fe, t), Re = B.useWatch(Ie, t), ze = Rx(Re) ? Le : Re, Be = e.locationStateFrom ? Ze(e.locationStateFrom) : ["__noop_loc_state__"], Ve = e.locationStateFrom && N ? [...n.slice(0, 2), ...Ze(e.locationStateFrom)] : ["__noop_loc_state_row__"], He = B.useWatch(Be, t), Ue = B.useWatch(Ve, t), Ge = Rx(Ue) ? He : Ue, Ke = e.dataSource === "locationMaster" && (e.locationLevel === "state" && Rx(ze) || e.locationLevel === "city" && (Rx(ze) || Rx(Ge))), Je = g || !!e.disabled || ye || (e.disabledByField ? Ix(pe) : !1) || !!p || Ae || Pe || Ke;
14383
+ ]), Fe = e.locationCountryFrom ? Ze(e.locationCountryFrom) : ["__noop_loc_country__"], Ie = e.locationCountryFrom && N ? [...n.slice(0, 2), ...Ze(e.locationCountryFrom)] : ["__noop_loc_country_row__"], Le = B.useWatch(Fe, t), Re = B.useWatch(Ie, t), ze = Rx(Re) ? Le : Re, Be = e.locationStateFrom ? Ze(e.locationStateFrom) : ["__noop_loc_state__"], Ve = e.locationStateFrom && N ? [...n.slice(0, 2), ...Ze(e.locationStateFrom)] : ["__noop_loc_state_row__"], He = B.useWatch(Be, t), Ue = B.useWatch(Ve, t), Ge = Rx(Ue) ? He : Ue, Ke = e.dataSource === "locationMaster" && (e.locationLevel === "state" && Rx(ze) || e.locationLevel === "city" && (Rx(ze) || Rx(Ge))), Je = g || !!e.disabled || ye || (e.disabledByField ? Ix(pe) : !1) || !!p || Ae || Pe || Ke, Ye = Pe ? `Only one row can be marked ${e.label ? `"${e.label}"` : "this"} at a time.` : "";
14370
14384
  F(() => {
14371
14385
  if (h === "location") {
14372
14386
  let t = !1;
@@ -14491,19 +14505,19 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14491
14505
  ze,
14492
14506
  Ge
14493
14507
  ]);
14494
- let Ye = Vx([e.options, e.values].find((e) => Array.isArray(e) && e.length > 0) ?? (h === "checkbox" ? [] : bx(e))), Xe = _ ?? Ye, [Qe, $e] = L([]), et = cn(r, Xe).join(",");
14508
+ let Xe = Vx([e.options, e.values].find((e) => Array.isArray(e) && e.length > 0) ?? (h === "checkbox" ? [] : bx(e))), Qe = _ ?? Xe, [$e, et] = L([]), tt = cn(r, Qe).join(",");
14495
14509
  F(() => {
14496
- if (!et || e.dataSource !== "lookup" || y) return;
14510
+ if (!tt || e.dataSource !== "lookup" || y) return;
14497
14511
  let t = !1;
14498
- return Xr(e, et.split(",")).then((e) => {
14499
- t || $e(e);
14512
+ return Xr(e, tt.split(",")).then((e) => {
14513
+ t || et(e);
14500
14514
  }).catch(() => {
14501
- t || $e([]);
14515
+ t || et([]);
14502
14516
  }), () => {
14503
14517
  t = !0;
14504
14518
  };
14505
14519
  }, [
14506
- et,
14520
+ tt,
14507
14521
  e.dataSource,
14508
14522
  e.lookupCollection,
14509
14523
  e.displayField,
@@ -14511,13 +14525,13 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14511
14525
  e.valueField,
14512
14526
  y
14513
14527
  ]);
14514
- let tt = ui(Xe, Qe), nt = be ? jt(tt, Te) : tt, rt = Ee ? Oe(nt, Ee, ke ?? {}) : nt, it = (e.multiSelect ? "multiple" : e.mode ?? (Ix(e.multiple) ? "multiple" : void 0)) ?? (Ht(e) === "array" ? "multiple" : void 0), at = Ix(e.allowCustomValues), ot = at ? "tags" : it, st = !!e.multiSelect || Ix(e.multiple) || Ht(e) === "array" || it === "multiple", ct = at ? typeof e.tokenSeparators == "string" && e.tokenSeparators ? e.tokenSeparators.split("") : [","] : void 0, lt = ["select", "location"].includes(h), ut = e.hidePlaceholder ? void 0 : e.placeholder ?? `${lt ? "Select" : "Enter"} ${String(e.label ?? "").toLowerCase()}`, dt = cS(e), ft = () => {
14528
+ let nt = ui(Qe, $e), rt = be ? jt(nt, Te) : nt, it = Ee ? Oe(rt, Ee, ke ?? {}) : rt, at = (e.multiSelect ? "multiple" : e.mode ?? (Ix(e.multiple) ? "multiple" : void 0)) ?? (Ht(e) === "array" ? "multiple" : void 0), ot = Ix(e.allowCustomValues), st = ot ? "tags" : at, ct = !!e.multiSelect || Ix(e.multiple) || Ht(e) === "array" || at === "multiple", lt = ot ? typeof e.tokenSeparators == "string" && e.tokenSeparators ? e.tokenSeparators.split("") : [","] : void 0, ut = ["select", "location"].includes(h), dt = e.hidePlaceholder ? void 0 : e.placeholder ?? `${ut ? "Select" : "Enter"} ${String(e.label ?? "").toLowerCase()}`, ft = cS(e), pt = () => {
14515
14529
  setTimeout(() => {
14516
14530
  t.validateFields([n]).catch(() => {});
14517
14531
  });
14518
- }, pt = (e) => {
14519
- t.setFieldValue(n, e), ft();
14520
- }, mt = zr({
14532
+ }, mt = (e) => {
14533
+ t.setFieldValue(n, e), pt();
14534
+ }, ht = zr({
14521
14535
  field: e,
14522
14536
  form: t,
14523
14537
  name: n,
@@ -14527,41 +14541,41 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14527
14541
  onDone: (r, i) => {
14528
14542
  ne((e) => e + 1);
14529
14543
  let a = Ht(e) !== "array" && !e.multiSelect && !e.multiple;
14530
- r === "create" && i != null && a && ((e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, m), pt(pr(e) ? { value: i } : i)), r === "edit" && (e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, m);
14544
+ r === "create" && i != null && a && ((e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, m), mt(pr(e) ? { value: i } : i)), r === "edit" && (e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, m);
14531
14545
  }
14532
- }), ht = e.validator?.type ? {
14546
+ }), gt = e.validator?.type ? {
14533
14547
  ...e.validator,
14534
14548
  title: e.validator.title || e.label || "Field"
14535
- } : null, gt = {
14536
- ...dt,
14549
+ } : null, _t = {
14550
+ ...ft,
14537
14551
  value: r,
14538
14552
  disabled: Je,
14539
- placeholder: ut,
14553
+ placeholder: dt,
14540
14554
  prefix: e.icon ? null : Fx[e.field],
14541
14555
  onChange: (t) => {
14542
14556
  let n = e.formatter ? fS(t.target.value, e.formatter) : t.target.value;
14543
- if (ht) {
14544
- let { cleaned: e, error: t } = de(n, ht, "change");
14557
+ if (gt) {
14558
+ let { cleaned: e, error: t } = de(n, gt, "change");
14545
14559
  j(t), n = e;
14546
14560
  }
14547
- pt(n);
14561
+ mt(n);
14548
14562
  },
14549
- ...ht && {
14563
+ ...gt && {
14550
14564
  onBlur: (e) => {
14551
- let { cleaned: t, error: n } = de(e.target.value, ht, "blur");
14552
- j(n), t !== e.target.value && pt(t);
14565
+ let { cleaned: t, error: n } = de(e.target.value, gt, "blur");
14566
+ j(n), t !== e.target.value && mt(t);
14553
14567
  },
14554
14568
  onKeyPress: (e) => {
14555
- let t = ii(ht.type);
14569
+ let t = ii(gt.type);
14556
14570
  if (!t || e.which === 0 || e.keyCode === 8 || e.keyCode === 13) return;
14557
14571
  let n = String.fromCharCode(e.which ?? e.keyCode);
14558
14572
  if (!t.test(n)) {
14559
14573
  e.preventDefault();
14560
- let t = `${ht.title} — invalid character.`;
14574
+ let t = `${gt.title} — invalid character.`;
14561
14575
  j(t), setTimeout(() => j((e) => e === t ? null : e), 1800);
14562
14576
  }
14563
14577
  },
14564
- maxLength: ht.maxLength ?? dt.maxLength
14578
+ maxLength: gt.maxLength ?? ft.maxLength
14565
14579
  }
14566
14580
  };
14567
14581
  if (h === "tagify") return /* @__PURE__ */ Y(H, {
@@ -14569,8 +14583,8 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14569
14583
  allowClear: !0,
14570
14584
  disabled: Je,
14571
14585
  mode: "tags",
14572
- placeholder: ut,
14573
- onChange: pt
14586
+ placeholder: dt,
14587
+ onChange: mt
14574
14588
  });
14575
14589
  if (h === "location") return /* @__PURE__ */ Y(H, {
14576
14590
  value: r,
@@ -14579,18 +14593,18 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14579
14593
  filterOption: !1,
14580
14594
  disabled: Je,
14581
14595
  loading: y,
14582
- mode: it,
14583
- options: rt,
14584
- placeholder: ut,
14596
+ mode: at,
14597
+ options: it,
14598
+ placeholder: dt,
14585
14599
  notFoundContent: y ? /* @__PURE__ */ Y(sa, { size: "small" }) : void 0,
14586
14600
  onSearch: C,
14587
14601
  onFocus: () => C((e) => e),
14588
- onChange: pt
14602
+ onChange: mt
14589
14603
  });
14590
14604
  if (h === "select") {
14591
- let i = e.dataSource === "lookup", a = e.dataSource === "master", o = i || a, s = pr(e), c = Hr(e, r, rt);
14605
+ let i = e.dataSource === "lookup", a = e.dataSource === "master", o = i || a, s = pr(e), c = Hr(e, r, it);
14592
14606
  return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(H, {
14593
- value: at && !st ? c == null || c === "" ? void 0 : Array.isArray(c) ? c : [c] : c,
14607
+ value: ot && !ct ? c == null || c === "" ? void 0 : Array.isArray(c) ? c : [c] : c,
14594
14608
  allowClear: !0,
14595
14609
  disabled: Je,
14596
14610
  loading: y,
@@ -14598,15 +14612,15 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14598
14612
  showSearch: e.showSearch !== !1,
14599
14613
  optionFilterProp: "label",
14600
14614
  filterOption: !o && void 0,
14601
- mode: ot,
14602
- tokenSeparators: ct,
14603
- options: rt,
14604
- placeholder: ut,
14615
+ mode: st,
14616
+ tokenSeparators: lt,
14617
+ options: it,
14618
+ placeholder: dt,
14605
14619
  notFoundContent: y ? /* @__PURE__ */ Y(sa, { size: "small" }) : void 0,
14606
14620
  onSearch: i ? T : a ? D : void 0,
14607
14621
  onChange: (r) => {
14608
- let i = at && !st && Array.isArray(r) ? r.length ? r[r.length - 1] : void 0 : r;
14609
- if (pt(i), (e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, m), e.autofillFrom?.length) {
14622
+ let i = ot && !ct && Array.isArray(r) ? r.length ? r[r.length - 1] : void 0 : r;
14623
+ if (mt(i), (e.clearGroupOnChange || e.linkedClearField) && ai(t, e, n, m), e.autofillFrom?.length) {
14610
14624
  let r = i && !Array.isArray(i) && typeof i == "object" ? i.value : i, a = Array.isArray(n) && n.length >= 3 && typeof n[1] == "number";
14611
14625
  if (i == null) e.autofillFrom.forEach(({ targetField: e }) => {
14612
14626
  let r = a ? [...n.slice(0, 2), ...Ze(e)] : Ze(e);
@@ -14621,49 +14635,59 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14621
14635
  }
14622
14636
  }
14623
14637
  },
14624
- popupRender: mt.footer ? (e) => /* @__PURE__ */ X(J, { children: [e, mt.footer] }) : void 0
14625
- }), mt.modal] });
14638
+ popupRender: ht.footer ? (e) => /* @__PURE__ */ X(J, { children: [e, ht.footer] }) : void 0
14639
+ }), ht.modal] });
14626
14640
  }
14627
14641
  if (h === "radio") return /* @__PURE__ */ Y(na.Group, {
14628
14642
  value: r,
14629
14643
  disabled: Je,
14630
- options: rt,
14631
- onChange: (e) => pt(e.target.value)
14632
- });
14633
- if (h === "checkbox") return rt.length > 0 ? /* @__PURE__ */ Y(zi.Group, {
14634
- value: r,
14635
- disabled: Je,
14636
- options: rt,
14637
- onChange: pt
14638
- }) : /* @__PURE__ */ Y(zi, {
14639
- checked: i,
14640
- disabled: Je,
14641
- onChange: (r) => {
14642
- let i = r.target.checked;
14643
- if (!(i && d?.(e)) && (pt(i), i && f?.(e, n), e.linkedClearField && i)) {
14644
- let r = Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.linkedClearField] : [e.linkedClearField];
14645
- t.setFieldValue(r, null);
14646
- }
14647
- },
14648
- children: e.checkboxLabel ?? e.label
14644
+ options: it,
14645
+ onChange: (e) => mt(e.target.value)
14649
14646
  });
14647
+ if (h === "checkbox") {
14648
+ if (it.length > 0) return /* @__PURE__ */ Y(zi.Group, {
14649
+ value: r,
14650
+ disabled: Je,
14651
+ options: it,
14652
+ onChange: mt
14653
+ });
14654
+ let a = /* @__PURE__ */ Y(zi, {
14655
+ checked: i,
14656
+ disabled: Je,
14657
+ onChange: (r) => {
14658
+ let i = r.target.checked;
14659
+ if (!(i && d?.(e)) && (mt(i), i && f?.(e, n), e.linkedClearField && i)) {
14660
+ let r = Array.isArray(n) && n.length > 1 ? [...n.slice(0, -1), e.linkedClearField] : [e.linkedClearField];
14661
+ t.setFieldValue(r, null);
14662
+ }
14663
+ },
14664
+ children: e.checkboxLabel ?? e.label
14665
+ });
14666
+ return Ye ? /* @__PURE__ */ Y(K, {
14667
+ title: Ye,
14668
+ children: /* @__PURE__ */ Y("span", {
14669
+ className: "v1-disabled-reason-wrap",
14670
+ children: a
14671
+ })
14672
+ }) : a;
14673
+ }
14650
14674
  if (h === "text-editor") return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(_e, {
14651
14675
  value: r ?? c ?? "",
14652
14676
  disabled: Je,
14653
- placeholder: ut,
14677
+ placeholder: dt,
14654
14678
  onChange: (e) => {
14655
- if (ht) {
14656
- let { error: t } = de(e, ht, "change");
14679
+ if (gt) {
14680
+ let { error: t } = de(e, gt, "change");
14657
14681
  j(t);
14658
14682
  }
14659
- pt(e);
14683
+ mt(e);
14660
14684
  }
14661
14685
  }), A && /* @__PURE__ */ Y("div", {
14662
14686
  className: "v1-input-validator-hint",
14663
14687
  children: A
14664
14688
  })] });
14665
14689
  if (h === "textarea") return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(Ox, {
14666
- ...gt,
14690
+ ..._t,
14667
14691
  rows: e.rows ?? 3,
14668
14692
  className: "v1-scroll-textarea"
14669
14693
  }), A && /* @__PURE__ */ Y("div", {
@@ -14673,21 +14697,21 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14673
14697
  if (h === "date") return /* @__PURE__ */ Y(Vi, {
14674
14698
  value: r,
14675
14699
  disabled: Je,
14676
- placeholder: ut,
14700
+ placeholder: dt,
14677
14701
  style: { width: "100%" },
14678
14702
  suffixIcon: /* @__PURE__ */ Y(ka, {}),
14679
14703
  disabledDate: uS(e, t, n),
14680
14704
  defaultPickerValue: dS(e),
14681
14705
  onChange: (t) => {
14682
- pt(t), f?.(e, n);
14706
+ mt(t), f?.(e, n);
14683
14707
  }
14684
14708
  });
14685
14709
  if (h === "time") return /* @__PURE__ */ Y(fa, {
14686
14710
  value: r,
14687
14711
  disabled: Je,
14688
- placeholder: ut,
14712
+ placeholder: dt,
14689
14713
  style: { width: "100%" },
14690
- onChange: (e) => pt(e)
14714
+ onChange: (e) => mt(e)
14691
14715
  });
14692
14716
  if (h === "file") {
14693
14717
  let t = e.validations ?? e.validation ?? e.rules ?? [], n = t.find((e) => (typeof e == "string" ? e : e?.type) === "fileType"), i = t.find((e) => (typeof e == "string" ? e : e?.type) === "fileSize"), a = t.find((e) => (typeof e == "string" ? e : e?.type) === "maxFiles"), c = ur(e), l = c ? c.exts.map((e) => `.${e}`).join(",") : n?.value ? n.value.split(",").map((e) => `.${e.trim().replace(/^\./, "")}`).join(",") : void 0, d = i ? Number(i?.value ?? 5) : void 0, f = a ? Number(a?.value ?? 1) : Ix(e.multiple) ? e.maxCount ?? 5 : 1, p = Array.isArray(r) ? r : [], m = p.length < f, h = (e) => e ? e < 1048576 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1024 / 1024).toFixed(2)} MB` : "", g = (e) => {
@@ -14705,7 +14729,7 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14705
14729
  "webp"
14706
14730
  ].includes(t) ? /* @__PURE__ */ Y(oo, { className: "v1-file-type-icon v1-file-icon-image" }) : /* @__PURE__ */ Y(so, { className: "v1-file-type-icon v1-file-icon-default" });
14707
14731
  }, _ = (e) => {
14708
- pt(p.filter((t, n) => n !== e));
14732
+ mt(p.filter((t, n) => n !== e));
14709
14733
  }, v = async (t, n) => {
14710
14734
  let r = [];
14711
14735
  if (p.some((e) => !(e?.originFileObj instanceof File)) && o && s && e?.field) try {
@@ -14749,7 +14773,7 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14749
14773
  return d !== void 0 && e.size / 1024 / 1024 > d && (q.error(i?.message ?? `File must be smaller than ${d} MB`), ha.LIST_IGNORE);
14750
14774
  }, T = ({ fileList: e }) => {
14751
14775
  let t = e.slice(0, f);
14752
- if (pt(t), u && t.length > p.length) {
14776
+ if (mt(t), u && t.length > p.length) {
14753
14777
  let e = t[t.length - 1];
14754
14778
  e?.originFileObj && u(e.originFileObj);
14755
14779
  }
@@ -14893,7 +14917,7 @@ function pS({ field: e, form: t, name: n, value: r, checked: i, fileList: a, mod
14893
14917
  }), k] });
14894
14918
  }
14895
14919
  return /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(V, {
14896
- ...gt,
14920
+ ..._t,
14897
14921
  type: h === "number" ? "number" : h,
14898
14922
  ...h === "number" && Ix(e.decimal) ? { step: "any" } : {},
14899
14923
  ...e.suffix ? { suffix: e.suffix } : {}
@@ -21993,7 +22017,7 @@ async function GE(e, t) {
21993
22017
  };
21994
22018
  }
21995
22019
  async function KE(e, t) {
21996
- let { fetchFormGroupsPayload: n } = await import("./addFormApi-BoviokoY.js").then((e) => e.t), r = await n({
22020
+ let { fetchFormGroupsPayload: n } = await import("./addFormApi-C73cTTIu.js").then((e) => e.t), r = await n({
21997
22021
  module: e,
21998
22022
  id: t
21999
22023
  });
@@ -41953,6 +41977,7 @@ var { Text: TN } = ma, EN = {
41953
41977
  baseUrl: "",
41954
41978
  authHeader: "",
41955
41979
  authValue: "",
41980
+ providerApiKey: "",
41956
41981
  enabled: !0
41957
41982
  };
41958
41983
  function DN({ open: e, service: t, onClose: n, onSaved: r }) {
@@ -41961,7 +41986,8 @@ function DN({ open: e, service: t, onClose: n, onSaved: r }) {
41961
41986
  e && i.setFieldsValue({
41962
41987
  ...EN,
41963
41988
  ...t,
41964
- authValue: ""
41989
+ authValue: "",
41990
+ providerApiKey: ""
41965
41991
  });
41966
41992
  }, [
41967
41993
  e,
@@ -42101,6 +42127,19 @@ function DN({ open: e, service: t, onClose: n, onSaved: r }) {
42101
42127
  className: "fg-mono-input"
42102
42128
  })
42103
42129
  }),
42130
+ /* @__PURE__ */ Y(B.Item, {
42131
+ name: "providerApiKey",
42132
+ label: "Provider API Key",
42133
+ tooltip: "The key the AI service uses to call its own provider (e.g. OpenAI). Write-only — leave blank to keep the saved value.",
42134
+ extra: /* @__PURE__ */ Y(TN, {
42135
+ type: "secondary",
42136
+ children: t?.hasProviderApiKey ? "A key is stored. Leave blank to keep it, or type a new one to replace it." : "No key stored here. Preferred: set OPENAI_API_KEY on the service instead — this is for environments that cannot be redeployed."
42137
+ }),
42138
+ children: /* @__PURE__ */ Y(V.Password, {
42139
+ placeholder: t?.hasProviderApiKey ? "Unchanged" : "sk-…",
42140
+ autoComplete: "new-password"
42141
+ })
42142
+ }),
42104
42143
  /* @__PURE__ */ Y(B.Item, {
42105
42144
  name: "authValue",
42106
42145
  label: "Auth Value",
@@ -42209,6 +42248,19 @@ function ON() {
42209
42248
  width: 140,
42210
42249
  render: (e) => e || "—"
42211
42250
  },
42251
+ {
42252
+ title: "Provider Key",
42253
+ dataIndex: "hasProviderApiKey",
42254
+ key: "hasProviderApiKey",
42255
+ width: 120,
42256
+ render: (e) => e ? /* @__PURE__ */ Y(TN, {
42257
+ type: "success",
42258
+ children: "Configured"
42259
+ }) : /* @__PURE__ */ Y(TN, {
42260
+ type: "secondary",
42261
+ children: "Not set"
42262
+ })
42263
+ },
42212
42264
  {
42213
42265
  title: "Enabled",
42214
42266
  dataIndex: "enabled",
@@ -60236,7 +60288,7 @@ async function GH(e, t, n, r = 10, i = 0, a = {}) {
60236
60288
  }
60237
60289
  //#endregion
60238
60290
  //#region src/index.js
60239
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-08-31T14:06:28.671Z");
60291
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-09-01T09:39:14.900Z");
60240
60292
  var KH = cB, qH = UO(oV), JH = UO(cV), YH = UO(CV), XH = UO(FV), ZH = UO(WV), QH = UO(qV), $H = UO(XV), eU = UO($V), tU = UO(tH), nU = UO(mH), rU = UO(gH);
60241
60293
  //#endregion
60242
60294
  export { D as ADMIN_API_URL, ee as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, $g as ActivityNotesCard, qg as ActivityTab, Hz as AddBatchCandidatePopup, Ag as AddFormV1, cB as AdminDashboard, DF as AdminDashboardContent, KH as AdminPage, jg as AppAlert, Yr as AppButton, fO as AppShell, OT as ApprovalActionBar, e_ as AssigneeAvatars, aO as AuthGuard, lb as BILLING_STATUS_FLOW, mw as BOOLEAN_API_KEYS, $S as BOOLEAN_PARSEABLE_API_KEYS, t_ as BULK_UPLOAD_DEFAULT_ACCEPT, n_ as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Br as Breadcrumb, YH as BulkUploadPage, u_ as BulkUploadPanel, o as CANDIDATES_URL, QT as CONTRACT_C2C, ZT as CONTRACT_W2, n as CORE_URL, vv as CURRENCY_SYMBOLS, Ks as CalendarCard, jF as CoreThemeAdminApp, AF as CoreThemeAdminRoutes, Jc as CustomPagination, Xw as DEFAULT_HOURS_POLICY, uw as DEFAULT_RESULTS_VIEW, bT as DayLogModal, C_ as DescriptionBlock, dx as DetailHeaderCard, vx as DetailViewPage, cy as DetailViewV1, wt as DocumentViewer, Xl as DynamicCards, AL as DynamicPopup, qz as DynamicPopupRoute, Xs as DynamicTabs, gS as EditFormV1, PC as FIELD_TYPE_REGISTRY, UT as FINANCE_APPROVAL_CONFIG, IT as FINANCE_TYPE_CFO, FT as FINANCE_TYPE_ONBOARDING_MANAGER, zT as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, LT as FINANCE_TYPE_ONLY_FINANCE, PT as FINANCE_TYPE_SUBMISSION_MANAGER, RT as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, rD as FileListCard, IE as FinanceApprovalPanel, Wb as FinanceAvatar, Jb as FinanceBadge, AT as FinanceDayCell, Ib as FinanceDivider, Gb as FinanceEmployeeCell, Nb as FinanceEmptyState, Lb as FinanceEquation, Vb as FinanceHistoryTimeline, Mb as FinanceHoursGrid, jb as FinanceKpiRow, Fb as FinanceLine, Yw as FinanceListToolbar, Yb as FinanceMarginBadge, qb as FinanceMoneyCell, Qb as FinanceRecordsTable, Xb as FinanceRowChevron, Pb as FinanceSection, Ab as FinanceStatusPill, Kb as FinanceTextCell, MT as FinanceTimesheetAnalysis, Rb as FinanceWorkflowSteps, O as GATEWAY_URL, GP as GLOBAL_DEFAULT_FIELDS, Zw as HOURS_MESSAGES, MD as Header, tu as HierarchyUserFilter, s as JOBS_URL, qH as LegacyAdminPage, rh as ListView, rU as LmsHomePage, nU as LmsTestForm, pO as Login, oI as MailPopup, QH as ManageModules, $H as ManageSubmodules, TS as ModuleRowActions, DT as NotesPanel, Qg as NotesTab, tw as OPEN_AS_OPTIONS, ub as PAYROLL_STATUS_FLOW, HP as PLATFORM_SCOPES, Nz as POPUP_CONFIGS, i as PYOPS_URL, MS as ParamCardView, RS as ParamListView, lT as PeriodBadgeTag, tF as PlatformSection, _I as PreviewPopup, HO as ProjectSelect, ET as ProofUploadPreview, CT as QuickLogBar, xT as QuickLogSelectionBar, lw as RESULTS_VIEW_OPTIONS, sB as RegionBanner, ST as RejectionReasonModal, r as SUBMISSIONS_URL, Bw as SearchBuilderV1, tO as Sidebar, Hw as StatusBadge, cT as StatusBadgeTag, JH as StickyNotesFullPage, Ww as StylishDynamicTabs, Kw as TemplateEditor, XH as TestForm, tU as TestingHomePage, zg as TimelineGroups, _T as TimesheetDayCell, _e as TipTapEditor, oB as UserForm, Zz as VendorShareDrawer, Xf as ViewSummaryWidget, CI as WizardPopup, a as ZINNEXT_URL, eU as ZinnextTableView, ZH as ZinnextTestForm, N as appNow, Ve as applyIntegrationStatus, Oc as approveSubmission, s_ as buildAcceptAttr, yw as buildBooleanRequest, wb as buildCsv, vb as buildDailyRows, hT as buildDayGradient, CE as buildRateHistoryEntries, xb as buildWeeklyRollup, g as clearSelectedProject, Qn as colors, hE as computeFinance, rT as computeHoursPolicy, Sb as computeMarginBand, Hn as conditionMatches, v as configureCoreTheme, nn as configuredFieldLabel, UH as createAllWorkflowsListFetcher, LH as createMergedListFetcher, AH as createModuleListFetchAdapter, RH as createWorkflowStageListFetcher, yv as currencySymbol, jP as deactivateRegion, SH as defaultMergeRow, Nr as deleteIntegrationConfig, _b as deriveDayStats, aT as describeCapacity, Ob as downloadCsv, gr as evaluateShowIfWith, lE as findEmployerRow, sE as flattenGroups, Tv as formatAmount, Jn as formatApp, Ye as formatAppDateTime, o_ as formatFileSize, wE as formatFinanceMoney, eb as formatHours, Ev as formatMoney, nb as formatPercent, Dv as formatRate, kn as getActivity, WH as getAllWorkflowsModuleList, $e as getAppTimeZone, ob as getApprovalDate, ci as getBgcIntegrationConfig, xt as getBgcIntegrationSummary, db as getBillingActionStates, BC as getBooleanEligibleTypes, d as getCurrentRoleName, Mt as getDetailDisplayDefaults, Eb as getFieldLabel, IC as getFieldType, a_ as getFileExtension, JT as getFinanceApprovalConfig, KE as getFormGroupsRaw, KP as getGlobalAiServices, UP as getGlobalDefaults, it as getIntegrationConfig, $n as getIntegrationConfigs, P as getIntegrationSummary, Wc as getModuleConfig, cr as getModuleDataDetail, fb as getPayrollActionStates, Kc as getPeriodBadgeConfig, RP as getRegionDetailDefaults, QC as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, kc as getVMSApprove, Db as getValueStyle, GH as getWorkflowStageModuleList, pb as getWorkflowSteps, NP as grantPlatformAccess, FP as hasPlatformAccess, ab as humanizeEvent, Oh as i, Tb as indexFieldConfig, rb as initialsOf, rC as insertTokenAtCursor, LC as isBooleanEligible, tC as isBooleanParsable, S as isTester, MP as listPlatformAccess, LP as listPlatformAudit, IP as listPlatformUsers, VP as listRegionRoles, BP as listRegionUsers, kP as listRegions, ke as loadDetailDefaults, h as logout, XT as marginIncludesReferral, mE as matchLocationTax, Ex as n, dE as normalizeContract, d_ as r, xv as rateUnitLabel, Cv as rateUnitShort, aw as readActionButtons, iT as reconcileHours, OP as regionPath, FC as registerFieldType, ZC as registerSearchPopup, jc as rejectSubmission, Wg as resolveActivityMeta, gE as resolveAndCompute, tT as resolveDayKind, pE as resolveFinanceInputs, bH as resolveMergeKey, bH as resolveMergedListKey, rw as resolveOpenAs, YT as resolveRejectionReason, pw as resolveResultsSearchPlaceholder, fw as resolveResultsView, qE as resolveSubmissionFinance, PP as revokePlatformAccess, te as saveBgcIntegrationConfig, qP as saveGlobalAiServices, WP as saveGlobalDefaults, fr as saveIntegrationConfig, AP as saveRegion, zP as saveRegionDetailDefaults, c as setSelectedProject, pn as showIfConditions, zH as stageCountKey, mO as t, nr as testIntegrationConnection, xe as toApp, wv as toNumber, Ne as tzLabel, Ge as tzShortLabel, $C as unregisterSearchPopup, ud as useDropdownFields, Zf as useDropdownValues, iD as useEditForm, dd as useFieldConfig, fd as useFilterFields, xd as useMenuPermission, vS as useModuleActions, hx as useRecordRefresh, nC as validateBooleanQuery, c_ as validateBulkFile, t as withAdminAppId, _ as withAppId, UO as withAuthGuard };