dynamic-mui 2.6.0 → 2.6.1

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.
Files changed (60) hide show
  1. package/dist/{accordion-YWjUldL8.js → accordion-BSh2h2a_.js} +1 -1
  2. package/dist/{accordion-DB151BNT.mjs → accordion-Cqu-4mCj.mjs} +1 -1
  3. package/dist/{addressfield-CpvOajVo.mjs → addressfield-BYisUY6y.mjs} +1 -1
  4. package/dist/{addressfield-CwKjfnTq.js → addressfield-CRd4lfdV.js} +1 -1
  5. package/dist/ai/index.cjs +1 -1
  6. package/dist/ai/index.mjs +1 -1
  7. package/dist/ai-CXI0Rnu8.js +29 -0
  8. package/dist/{ai-UvDYQ30b.mjs → ai-D6hkfd_f.mjs} +815 -815
  9. package/dist/{asyncautocomplete-DQLDdmVl.js → asyncautocomplete-B1fK0nUW.js} +1 -1
  10. package/dist/{asyncautocomplete-mwra2KKJ.mjs → asyncautocomplete-D4oCW2B0.mjs} +1 -1
  11. package/dist/{cascadeselect-BJzHZA9-.js → cascadeselect-CYzYzmqv.js} +1 -1
  12. package/dist/{cascadeselect-Cl4OHq-L.mjs → cascadeselect-s-LY4P0l.mjs} +1 -1
  13. package/dist/{collection-Dd_Ojgwl.js → collection-Ccj0OayP.js} +1 -1
  14. package/dist/{collection-DPJTrAiB.mjs → collection-DGq2rxDx.mjs} +1 -1
  15. package/dist/{colorpicker-9AUe21p1.mjs → colorpicker-TDpxW59g.mjs} +1 -1
  16. package/dist/{colorpicker-DgKTLBmU.js → colorpicker-q2FYP06A.js} +1 -1
  17. package/dist/{consentfield-z8W0Yfx8.js → consentfield-C0qlg4CV.js} +1 -1
  18. package/dist/{consentfield-CFm1IDa5.mjs → consentfield-D3eHFCZf.mjs} +1 -1
  19. package/dist/dynamic-mui.cjs +1 -1
  20. package/dist/dynamic-mui.mjs +1 -1
  21. package/dist/{editabletable-r0RwM1rO.js → editabletable-B3Cl38Qm.js} +1 -1
  22. package/dist/{editabletable-B3Df4Jys.mjs → editabletable-BEnZM9qt.mjs} +1 -1
  23. package/dist/{fileupload-D2fXyMIu.mjs → fileupload-BLH0wrc2.mjs} +1 -1
  24. package/dist/{fileupload-Cr-Mz7oH.js → fileupload-D0TsC9DF.js} +1 -1
  25. package/dist/{formrepeater-BP-RBrQv.js → formrepeater-BEFYw5ly.js} +1 -1
  26. package/dist/{formrepeater-BrYTYCzc.mjs → formrepeater-BvW1lZ2k.mjs} +1 -1
  27. package/dist/{formwizard-DR7fa59M.js → formwizard-BWdnCsJz.js} +1 -1
  28. package/dist/{formwizard-CQ2z6fUX.mjs → formwizard-I6M99opg.mjs} +1 -1
  29. package/dist/{geofield-CxVFA0og.mjs → geofield-CcbP9EtG.mjs} +1 -1
  30. package/dist/{geofield-DtN-d2Bq.js → geofield-HXXeV9Bm.js} +1 -1
  31. package/dist/{group-CiohorzN.mjs → group-BCGjUNL2.mjs} +1 -1
  32. package/dist/{group-HQL7UqHt.js → group-saCPFLuL.js} +1 -1
  33. package/dist/{intlphone-LGE-cB6X.mjs → intlphone-Bj5nEUMa.mjs} +1 -1
  34. package/dist/{intlphone-DwsiSfSt.js → intlphone-D1V7m6MV.js} +1 -1
  35. package/dist/{keyvaluefield-B7NlE0AT.js → keyvaluefield-ArJ4QM5z.js} +1 -1
  36. package/dist/{keyvaluefield-Cd4NQf6d.mjs → keyvaluefield-C-a0MGDM.mjs} +1 -1
  37. package/dist/{list-D5qW-7Xg.js → list-5wGZK7wa.js} +1 -1
  38. package/dist/{list-xPNiijgm.mjs → list-CIFEhaTq.mjs} +1 -1
  39. package/dist/{markdowneditor-nPP0t2eK.js → markdowneditor-C0KQgAWY.js} +1 -1
  40. package/dist/{markdowneditor-6lJQ5cEn.mjs → markdowneditor-C3l0_zuX.mjs} +1 -1
  41. package/dist/{matrixfield-CUYoJCwi.js → matrixfield-BZ_3KcSk.js} +1 -1
  42. package/dist/{matrixfield-Jm9Yx0EP.mjs → matrixfield-DQHet7LH.mjs} +1 -1
  43. package/dist/{multitextbox-gUt8BmfQ.mjs → multitextbox-Bsr8mHo5.mjs} +1 -1
  44. package/dist/{multitextbox-D-JUSnT7.js → multitextbox-CkhPGI9i.js} +1 -1
  45. package/dist/{npsscale-LWe7yCxB.mjs → npsscale-BgU-fVZ4.mjs} +1 -1
  46. package/dist/{npsscale-D_VtbpJi.js → npsscale-CFtQ5Dkk.js} +1 -1
  47. package/dist/{numberstepper-BXXlSKT_.js → numberstepper-B4ZS7GY_.js} +1 -1
  48. package/dist/{numberstepper-K_JfJJtg.mjs → numberstepper-c0raw-fV.mjs} +1 -1
  49. package/dist/{richtexteditor-BHM-8xe3.js → richtexteditor-B8NFysnM.js} +1 -1
  50. package/dist/{richtexteditor-gmObNHZ7.mjs → richtexteditor-aF2uky8O.mjs} +1 -1
  51. package/dist/{stepper-zEfhqmbA.js → stepper-BQB-Zpl2.js} +1 -1
  52. package/dist/{stepper-cpOj2wWz.mjs → stepper-C8VaX9xu.mjs} +1 -1
  53. package/dist/{summaryfield-DIQfJjjo.mjs → summaryfield-BN-NhzA6.mjs} +1 -1
  54. package/dist/{summaryfield-BzrdvTVy.js → summaryfield-BqpfzvHe.js} +1 -1
  55. package/dist/{tabs-xdkLXUCp.js → tabs-BBBpbfqk.js} +1 -1
  56. package/dist/{tabs-DvPu-zDC.mjs → tabs-DvIbQ1qg.mjs} +1 -1
  57. package/dist/{tagsinput-CTBGuv0M.mjs → tagsinput-CXmsu8K9.mjs} +1 -1
  58. package/dist/{tagsinput-B33m6GJ_.js → tagsinput-CYoOBbY1.js} +1 -1
  59. package/package.json +1 -1
  60. package/dist/ai-BFpA3uHx.js +0 -29
@@ -2,65 +2,65 @@ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "
2
2
  import { O as c, T as l, a as u, c as d, d as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./useTextInput-Dr-ncTE8.mjs";
3
3
  import { t as y } from "./useUpdateEffect-CXAhttj7.mjs";
4
4
  import { n as b, t as x } from "./useSyncedState-CzAO4D1o.mjs";
5
- import S, { Suspense as C, lazy as w, useCallback as T, useEffect as E, useImperativeHandle as D, useLayoutEffect as O, useMemo as k, useReducer as A, useRef as j, useState as M } from "react";
6
- import { Alert as N, Box as P, Button as F, Chip as ee, CircularProgress as te, Dialog as ne, DialogActions as I, DialogContent as re, DialogTitle as ie, Grid as L, Icon as R, IconButton as ae, Link as oe, List as se, ListItem as ce, ListItemIcon as le, ListItemText as z, Menu as ue, MenuItem as de, Stack as fe, TextField as pe, Tooltip as me, Typography as B } from "@mui/material";
7
- import { alpha as V, styled as he, useTheme as ge } from "@mui/material/styles";
5
+ import S, { Suspense as C, lazy as w, useCallback as T, useEffect as E, useId as D, useImperativeHandle as O, useLayoutEffect as k, useMemo as A, useReducer as ee, useRef as j, useState as M } from "react";
6
+ import { Alert as te, Box as N, Button as P, Chip as ne, CircularProgress as F, Dialog as I, DialogActions as re, DialogContent as ie, DialogTitle as L, Grid as ae, Icon as R, IconButton as oe, Link as se, List as ce, ListItem as le, ListItemIcon as z, ListItemText as ue, Menu as de, MenuItem as fe, Stack as B, TextField as pe, Tooltip as me, Typography as V } from "@mui/material";
7
+ import { alpha as H, styled as he, useTheme as ge } from "@mui/material/styles";
8
8
  import _e from "@mui/material/Typography";
9
- import { Fragment as ve, jsx as H, jsxs as U } from "react/jsx-runtime";
10
- import W from "@mui/material/TextField";
9
+ import { Fragment as ve, jsx as U, jsxs as W } from "react/jsx-runtime";
10
+ import G from "@mui/material/TextField";
11
11
  import { DatePicker as ye, LocalizationProvider as be } from "@mui/x-date-pickers";
12
12
  import xe from "@mui/material/Checkbox";
13
13
  import Se from "@mui/material/Autocomplete";
14
- import Ce from "@mui/icons-material/CheckBoxOutlineBlank";
15
- import G from "@mui/icons-material/CheckBox";
14
+ import K from "@mui/icons-material/CheckBoxOutlineBlank";
15
+ import Ce from "@mui/icons-material/CheckBox";
16
16
  import we from "@mui/material/FormControlLabel";
17
- import K from "@mui/material/FormControl";
18
- import q from "@mui/material/FormHelperText";
19
- import Te from "@mui/material/Radio";
17
+ import q from "@mui/material/FormControl";
18
+ import Te from "@mui/material/FormHelperText";
19
+ import Ee from "@mui/material/Radio";
20
20
  import J from "@mui/material/Box";
21
- import Ee from "@mui/material/RadioGroup";
22
- import De from "@mui/material/FormLabel";
23
- import Oe from "@mui/material/Switch";
24
- import ke from "@mui/material/Button";
25
- import Ae from "@mui/material/Divider";
26
- import je from "@mui/material/Alert";
27
- import Me from "@mui/material/AlertTitle";
28
- import { AdapterDayjs as Ne } from "@mui/x-date-pickers/AdapterDayjs";
29
- import Pe from "dayjs";
30
- import Fe from "dayjs/plugin/utc.js";
31
- import Ie from "dayjs/plugin/timezone.js";
32
- import Le from "dayjs/plugin/customParseFormat.js";
33
- import Re from "@mui/material/Stack";
34
- import ze from "@mui/material/Chip";
35
- import Be from "@mui/material/Icon";
36
- import Ve from "@mui/icons-material/CheckRounded";
37
- import He from "@mui/material/Slider";
38
- import Ue from "@mui/material/Rating";
39
- import We from "@mui/material/ToggleButton";
40
- import Ge from "@mui/material/ToggleButtonGroup";
41
- import Ke from "@mui/material/InputAdornment";
42
- import qe from "@mui/material/IconButton";
43
- import Je from "@mui/material/LinearProgress";
44
- import Ye from "@mui/icons-material/Visibility";
45
- import Xe from "@mui/icons-material/VisibilityOff";
46
- import Ze from "@mui/icons-material/AutoFixHigh";
47
- import Qe from "@mui/icons-material/AutoAwesome";
48
- import $e from "@mui/icons-material/EditNote";
49
- import et from "@mui/icons-material/ShortText";
50
- import tt from "@mui/icons-material/Notes";
51
- import nt from "@mui/icons-material/Spellcheck";
52
- import rt from "@mui/icons-material/WorkOutlined";
53
- import it from "@mui/icons-material/Translate";
54
- import at from "@mui/material/CircularProgress";
55
- import ot from "@mui/icons-material/CloudUpload";
21
+ import De from "@mui/material/RadioGroup";
22
+ import Oe from "@mui/material/FormLabel";
23
+ import ke from "@mui/material/Switch";
24
+ import Ae from "@mui/material/Button";
25
+ import je from "@mui/material/Divider";
26
+ import Me from "@mui/material/Alert";
27
+ import Ne from "@mui/material/AlertTitle";
28
+ import { AdapterDayjs as Pe } from "@mui/x-date-pickers/AdapterDayjs";
29
+ import Fe from "dayjs";
30
+ import Ie from "dayjs/plugin/utc.js";
31
+ import Le from "dayjs/plugin/timezone.js";
32
+ import Re from "dayjs/plugin/customParseFormat.js";
33
+ import ze from "@mui/material/Stack";
34
+ import Be from "@mui/material/Chip";
35
+ import Ve from "@mui/material/Icon";
36
+ import He from "@mui/icons-material/CheckRounded";
37
+ import Ue from "@mui/material/Slider";
38
+ import We from "@mui/material/Rating";
39
+ import Ge from "@mui/material/ToggleButton";
40
+ import Ke from "@mui/material/ToggleButtonGroup";
41
+ import qe from "@mui/material/InputAdornment";
42
+ import Je from "@mui/material/IconButton";
43
+ import Ye from "@mui/material/LinearProgress";
44
+ import Xe from "@mui/icons-material/Visibility";
45
+ import Ze from "@mui/icons-material/VisibilityOff";
46
+ import Qe from "@mui/icons-material/AutoFixHigh";
47
+ import $e from "@mui/icons-material/AutoAwesome";
48
+ import et from "@mui/icons-material/EditNote";
49
+ import tt from "@mui/icons-material/ShortText";
50
+ import nt from "@mui/icons-material/Notes";
51
+ import rt from "@mui/icons-material/Spellcheck";
52
+ import it from "@mui/icons-material/WorkOutlined";
53
+ import at from "@mui/icons-material/Translate";
54
+ import ot from "@mui/material/CircularProgress";
55
+ import st from "@mui/icons-material/CloudUpload";
56
56
  // node_modules/lodash/isEqual.js
57
- var st = /* @__PURE__ */ o(((e, t) => {
57
+ var ct = /* @__PURE__ */ o(((e, t) => {
58
58
  var n = l();
59
59
  function r(e, t) {
60
60
  return n(e, t);
61
61
  }
62
62
  t.exports = r;
63
- })), ct = /* @__PURE__ */ t(c()), lt = /* @__PURE__ */ t(st()), ut = {
63
+ })), lt = /* @__PURE__ */ t(c()), ut = /* @__PURE__ */ t(ct()), dt = {
64
64
  textfield: {
65
65
  type: "TextField",
66
66
  map: "TextField"
@@ -307,22 +307,22 @@ var st = /* @__PURE__ */ o(((e, t) => {
307
307
  }
308
308
  };
309
309
  // src/components/controls/Typography/typography.tsx
310
- function dt({ attributes: e = {} }) {
310
+ function ft({ attributes: e = {} }) {
311
311
  let { MuiAttributes: t = {}, text: n = "", MuiIcon: r = {}, value: i = "", MuiBox: a = {} } = e;
312
- return r && r.icon ? /* @__PURE__ */ U(P, {
312
+ return r && r.icon ? /* @__PURE__ */ W(N, {
313
313
  sx: {
314
314
  display: "flex",
315
315
  width: "100%"
316
316
  },
317
317
  ...a,
318
- children: [/* @__PURE__ */ H(R, {
318
+ children: [/* @__PURE__ */ U(R, {
319
319
  ...r.MuiIconAttributes,
320
320
  children: r.icon
321
- }, r.icon), /* @__PURE__ */ H(_e, {
321
+ }, r.icon), /* @__PURE__ */ U(_e, {
322
322
  ...t,
323
323
  children: n || i
324
324
  })]
325
- }) : /* @__PURE__ */ H(_e, {
325
+ }) : /* @__PURE__ */ U(_e, {
326
326
  ...t,
327
327
  children: n || i
328
328
  });
@@ -334,51 +334,51 @@ var Y = "cubic-bezier(0.4, 0, 0.2, 1)", X = (e, t) => [].concat(e ?? [], t ?? []
334
334
  backgroundColor: e.palette.background.paper,
335
335
  transition: `box-shadow .2s ${Y}, border-color .2s ${Y}`,
336
336
  "& fieldset": {
337
- borderColor: V(e.palette.text.primary, .12),
337
+ borderColor: H(e.palette.text.primary, .12),
338
338
  transition: `border-color .2s ${Y}`
339
339
  },
340
- "&:hover": { boxShadow: `0 2px 10px ${V(e.palette.common.black, .06)}` },
341
- "&:hover fieldset": { borderColor: V(e.palette.primary.main, .5) },
342
- "&.Mui-focused": { boxShadow: `0 0 0 3px ${V(e.palette.primary.main, .16)}` },
340
+ "&:hover": { boxShadow: `0 2px 10px ${H(e.palette.common.black, .06)}` },
341
+ "&:hover fieldset": { borderColor: H(e.palette.primary.main, .5) },
342
+ "&.Mui-focused": { boxShadow: `0 0 0 3px ${H(e.palette.primary.main, .16)}` },
343
343
  "&.Mui-focused fieldset": {
344
344
  borderWidth: 1.5,
345
345
  borderColor: e.palette.primary.main
346
346
  },
347
- "&.Mui-error.Mui-focused": { boxShadow: `0 0 0 3px ${V(e.palette.error.main, .16)}` }
347
+ "&.Mui-error.Mui-focused": { boxShadow: `0 0 0 3px ${H(e.palette.error.main, .16)}` }
348
348
  },
349
349
  "& .MuiFilledInput-root, & .MuiInput-root": { transition: `box-shadow .2s ${Y}` },
350
350
  "& .MuiInputLabel-root": { fontWeight: 500 }
351
- }), ft = (e) => ({
351
+ }), pt = (e) => ({
352
352
  borderRadius: "10px",
353
353
  marginLeft: 0,
354
354
  marginRight: 0,
355
355
  paddingRight: 1.25,
356
356
  transition: `background-color .18s ${Y}`,
357
- "&:hover": { backgroundColor: V(e.palette.primary.main, .06) }
358
- }), pt = (e) => ({
357
+ "&:hover": { backgroundColor: H(e.palette.primary.main, .06) }
358
+ }), mt = (e) => ({
359
359
  "& .MuiSwitch-switchBase.Mui-checked": { "& + .MuiSwitch-track": { opacity: 1 } },
360
- "& .MuiSwitch-thumb": { boxShadow: `0 2px 6px ${V(e.palette.common.black, .2)}` },
360
+ "& .MuiSwitch-thumb": { boxShadow: `0 2px 6px ${H(e.palette.common.black, .2)}` },
361
361
  "& .MuiSwitch-track": {
362
362
  borderRadius: 11,
363
363
  transition: `background-color .2s ${Y}, opacity .2s ${Y}`
364
364
  }
365
- }), mt = (e) => ({
365
+ }), ht = (e) => ({
366
366
  borderRadius: "999px",
367
367
  fontWeight: 600,
368
368
  transition: `transform .18s ${Y}, box-shadow .18s ${Y}`,
369
369
  "&:hover": {
370
370
  transform: "translateY(-1px)",
371
- boxShadow: `0 4px 12px ${V(e.palette.common.black, .12)}`
371
+ boxShadow: `0 4px 12px ${H(e.palette.common.black, .12)}`
372
372
  }
373
- }), ht = (e) => ({
373
+ }), gt = (e) => ({
374
374
  borderRadius: "12px",
375
- border: `1px solid ${V(e.palette.text.primary, .08)}`,
375
+ border: `1px solid ${H(e.palette.text.primary, .08)}`,
376
376
  overflow: "hidden",
377
377
  transition: `box-shadow .2s ${Y}`,
378
- "&:hover": { boxShadow: `0 6px 20px ${V(e.palette.common.black, .08)}` }
378
+ "&:hover": { boxShadow: `0 6px 20px ${H(e.palette.common.black, .08)}` }
379
379
  });
380
380
  // src/components/controls/TextField/textfield.tsx
381
- function gt({ attributes: e = {}, rules: t = {}, onChange: n, submitTick: r, messages: i }) {
381
+ function _t({ attributes: e = {}, rules: t = {}, onChange: n, submitTick: r, messages: i }) {
382
382
  let { MuiAttributes: o = {}, InputProps: s = {}, format: c = "", id: l = "" } = e, { textData: u, handleOnChange: d, handleOnBlur: f } = v({
383
383
  attributes: e,
384
384
  rules: t,
@@ -404,7 +404,7 @@ function gt({ attributes: e = {}, rules: t = {}, onChange: n, submitTick: r, mes
404
404
  };
405
405
  delete x.slotProps, delete x.inputProps, delete x.InputProps;
406
406
  let E = a(t), { sx: D, ...O } = x;
407
- return /* @__PURE__ */ H(W, {
407
+ return /* @__PURE__ */ U(G, {
408
408
  fullWidth: !0,
409
409
  ...O,
410
410
  id: l,
@@ -424,18 +424,18 @@ function gt({ attributes: e = {}, rules: t = {}, onChange: n, submitTick: r, mes
424
424
  });
425
425
  }
426
426
  // node_modules/react-number-format/dist/react-number-format.es.js
427
- function _t(e, t) {
427
+ function vt(e, t) {
428
428
  var n = {};
429
429
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
430
430
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
431
431
  return n;
432
432
  }
433
- var vt;
433
+ var yt;
434
434
  (function(e) {
435
435
  e.event = "event", e.props = "prop";
436
- })(vt ||= {});
437
- function yt() {}
438
- function bt(e) {
436
+ })(yt ||= {});
437
+ function bt() {}
438
+ function xt(e) {
439
439
  var t, n = void 0;
440
440
  return function() {
441
441
  for (var r = [], i = arguments.length; i--;) r[i] = arguments[i];
@@ -444,40 +444,40 @@ function bt(e) {
444
444
  }) || (t = r, n = e.apply(void 0, r)), n;
445
445
  };
446
446
  }
447
- function xt(e) {
448
- return !!(e || "").match(/\d/);
449
- }
450
447
  function St(e) {
451
- return e == null;
448
+ return !!(e || "").match(/\d/);
452
449
  }
453
450
  function Ct(e) {
454
- return typeof e == "number" && isNaN(e);
451
+ return e == null;
455
452
  }
456
453
  function wt(e) {
457
- return St(e) || Ct(e) || typeof e == "number" && !isFinite(e);
454
+ return typeof e == "number" && isNaN(e);
458
455
  }
459
456
  function Tt(e) {
460
- return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
457
+ return Ct(e) || wt(e) || typeof e == "number" && !isFinite(e);
461
458
  }
462
459
  function Et(e) {
460
+ return e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
461
+ }
462
+ function Dt(e) {
463
463
  switch (e) {
464
464
  case "lakh": return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
465
465
  case "wan": return /(\d)(?=(\d{4})+(?!\d))/g;
466
466
  default: return /(\d)(?=(\d{3})+(?!\d))/g;
467
467
  }
468
468
  }
469
- function Dt(e, t, n) {
470
- var r = Et(n), i = e.search(/[1-9]/);
469
+ function Ot(e, t, n) {
470
+ var r = Dt(n), i = e.search(/[1-9]/);
471
471
  return i = i === -1 ? e.length : i, e.substring(0, i) + e.substring(i, e.length).replace(r, "$1" + t);
472
472
  }
473
- function Ot(e) {
473
+ function kt(e) {
474
474
  var t = j(e);
475
475
  return t.current = e, j(function() {
476
476
  for (var e = [], n = arguments.length; n--;) e[n] = arguments[n];
477
477
  return t.current.apply(t, e);
478
478
  }).current;
479
479
  }
480
- function kt(e, t) {
480
+ function At(e, t) {
481
481
  t === void 0 && (t = !0);
482
482
  var n = e[0] === "-", r = n && t;
483
483
  e = e.replace("-", "");
@@ -489,39 +489,39 @@ function kt(e, t) {
489
489
  addNegation: r
490
490
  };
491
491
  }
492
- function At(e) {
492
+ function jt(e) {
493
493
  if (!e) return e;
494
494
  var t = e[0] === "-";
495
495
  t && (e = e.substring(1, e.length));
496
496
  var n = e.split("."), r = n[0].replace(/^0+/, "") || "0", i = n[1] || "";
497
497
  return (t ? "-" : "") + r + (i ? "." + i : "");
498
498
  }
499
- function jt(e, t, n) {
499
+ function Mt(e, t, n) {
500
500
  for (var r = "", i = n ? "0" : "", a = 0; a <= t - 1; a++) r += e[a] || i;
501
501
  return r;
502
502
  }
503
- function Mt(e, t) {
503
+ function Nt(e, t) {
504
504
  return Array(t + 1).join(e);
505
505
  }
506
- function Nt(e) {
506
+ function Pt(e) {
507
507
  var t = e + "", n = t[0] === "-" ? "-" : "";
508
508
  n && (t = t.substring(1));
509
509
  var r = t.split(/[eE]/g), i = r[0], a = r[1];
510
510
  if (a = Number(a), !a) return n + i;
511
511
  i = i.replace(".", "");
512
512
  var o = 1 + a, s = i.length;
513
- return o < 0 ? i = "0." + Mt("0", Math.abs(o)) + i : o >= s ? i += Mt("0", o - s) : i = (i.substring(0, o) || "0") + "." + i.substring(o), n + i;
513
+ return o < 0 ? i = "0." + Nt("0", Math.abs(o)) + i : o >= s ? i += Nt("0", o - s) : i = (i.substring(0, o) || "0") + "." + i.substring(o), n + i;
514
514
  }
515
- function Pt(e, t, n) {
515
+ function Ft(e, t, n) {
516
516
  if (["", "-"].indexOf(e) !== -1) return e;
517
- var r = (e.indexOf(".") !== -1 || n) && t, i = kt(e), a = i.beforeDecimal, o = i.afterDecimal, s = i.hasNegation, c = parseFloat("0." + (o || "0")), l = (o.length <= t ? "0." + o : c.toFixed(t)).split("."), u = a;
517
+ var r = (e.indexOf(".") !== -1 || n) && t, i = At(e), a = i.beforeDecimal, o = i.afterDecimal, s = i.hasNegation, c = parseFloat("0." + (o || "0")), l = (o.length <= t ? "0." + o : c.toFixed(t)).split("."), u = a;
518
518
  a && Number(l[0]) && (u = a.split("").reverse().reduce(function(e, t, n) {
519
519
  return e.length > n ? (Number(e[0]) + Number(t)).toString() + e.substring(1, e.length) : t + e;
520
520
  }, l[0]));
521
- var d = jt(l[1] || "", t, n), f = s ? "-" : "", p = r ? "." : "";
521
+ var d = Mt(l[1] || "", t, n), f = s ? "-" : "", p = r ? "." : "";
522
522
  return "" + f + u + p + d;
523
523
  }
524
- function Ft(e, t) {
524
+ function It(e, t) {
525
525
  if (e.value = e.value, e !== null) {
526
526
  if (e.createTextRange) {
527
527
  var n = e.createTextRange();
@@ -530,7 +530,7 @@ function Ft(e, t) {
530
530
  return e.selectionStart || e.selectionStart === 0 ? (e.focus(), e.setSelectionRange(t, t), !0) : (e.focus(), !1);
531
531
  }
532
532
  }
533
- var It = bt(function(e, t) {
533
+ var Lt = xt(function(e, t) {
534
534
  for (var n = 0, r = 0, i = e.length, a = t.length; e[n] === t[n] && n < i;) n++;
535
535
  for (; e[i - 1 - r] === t[a - 1 - r] && a - r > n && i - r > n;) r++;
536
536
  return {
@@ -543,7 +543,7 @@ var It = bt(function(e, t) {
543
543
  end: a - r
544
544
  }
545
545
  };
546
- }), Lt = function(e, t) {
546
+ }), Rt = function(e, t) {
547
547
  var n = Math.min(e.selectionStart, t);
548
548
  return {
549
549
  from: {
@@ -556,16 +556,16 @@ var It = bt(function(e, t) {
556
556
  }
557
557
  };
558
558
  };
559
- function Rt(e, t, n) {
559
+ function zt(e, t, n) {
560
560
  return Math.min(Math.max(e, t), n);
561
561
  }
562
- function zt(e) {
562
+ function Bt(e) {
563
563
  return Math.max(e.selectionStart, e.selectionEnd);
564
564
  }
565
- function Bt() {
565
+ function Vt() {
566
566
  return typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
567
567
  }
568
- function Vt(e) {
568
+ function Ht(e) {
569
569
  return {
570
570
  from: {
571
571
  start: 0,
@@ -578,15 +578,15 @@ function Vt(e) {
578
578
  lastValue: ""
579
579
  };
580
580
  }
581
- function Ht(e, t) {
581
+ function Ut(e, t) {
582
582
  return e === void 0 && (e = " "), typeof e == "string" ? e : e[t] || " ";
583
583
  }
584
- function Ut(e) {
584
+ function Wt(e) {
585
585
  var t = e.currentValue, n = e.formattedValue, r = e.currentValueIndex, i = e.formattedValueIndex;
586
586
  return t[r] === n[i];
587
587
  }
588
- function Wt(e, t, n, r, i, a, o) {
589
- o === void 0 && (o = Ut);
588
+ function Gt(e, t, n, r, i, a, o) {
589
+ o === void 0 && (o = Wt);
590
590
  var s = i.findIndex(function(e) {
591
591
  return e;
592
592
  }), c = e.slice(0, s);
@@ -610,9 +610,9 @@ function Wt(e, t, n, r, i, a, o) {
610
610
  var v = g === -1 || f[g] === -1 ? 0 : f[g] + 1;
611
611
  return v > _ ? _ : r - v < _ - r ? v : _;
612
612
  }
613
- function Gt(e, t, n, r) {
613
+ function Kt(e, t, n, r) {
614
614
  var i = e.length;
615
- if (t = Rt(t, 0, i), r === "left") {
615
+ if (t = zt(t, 0, i), r === "left") {
616
616
  for (; t >= 0 && !n[t];) t--;
617
617
  t === -1 && (t = n.indexOf(!0));
618
618
  } else {
@@ -621,34 +621,34 @@ function Gt(e, t, n, r) {
621
621
  }
622
622
  return t === -1 && (t = i), t;
623
623
  }
624
- function Kt(e) {
624
+ function qt(e) {
625
625
  for (var t = Array.from({ length: e.length + 1 }).map(function() {
626
626
  return !0;
627
- }), n = 0, r = t.length; n < r; n++) t[n] = !!(xt(e[n]) || xt(e[n - 1]));
627
+ }), n = 0, r = t.length; n < r; n++) t[n] = !!(St(e[n]) || St(e[n - 1]));
628
628
  return t;
629
629
  }
630
- function qt(e, t, n, r, i, a) {
631
- a === void 0 && (a = yt);
632
- var o = Ot(function(e, t) {
630
+ function Jt(e, t, n, r, i, a) {
631
+ a === void 0 && (a = bt);
632
+ var o = kt(function(e, t) {
633
633
  var n, a;
634
- return wt(e) ? (a = "", n = "") : typeof e == "number" || t ? (a = typeof e == "number" ? Nt(e) : e, n = r(a)) : (a = i(e, void 0), n = r(a)), {
634
+ return Tt(e) ? (a = "", n = "") : typeof e == "number" || t ? (a = typeof e == "number" ? Pt(e) : e, n = r(a)) : (a = i(e, void 0), n = r(a)), {
635
635
  formattedValue: n,
636
636
  numAsString: a
637
637
  };
638
638
  }), s = M(function() {
639
- return o(St(e) ? t : e, n);
640
- }), c = s[0], l = s[1], u = Ot(function(e, t) {
639
+ return o(Ct(e) ? t : e, n);
640
+ }), c = s[0], l = s[1], u = kt(function(e, t) {
641
641
  e.formattedValue !== c.formattedValue && l({
642
642
  formattedValue: e.formattedValue,
643
643
  numAsString: e.value
644
644
  }), a(e, t);
645
645
  }), d = e, f = n;
646
- St(e) && (d = c.numAsString, f = !0);
646
+ Ct(e) && (d = c.numAsString, f = !0);
647
647
  var p = o(d, f);
648
- return k(function() {
648
+ return A(function() {
649
649
  l(p);
650
650
  }, [p.formattedValue]), E(function() {
651
- if (!St(t) && St(e) && c.formattedValue !== "") {
651
+ if (!Ct(t) && Ct(e) && c.formattedValue !== "") {
652
652
  var n = parseFloat(c.numAsString);
653
653
  u({
654
654
  formattedValue: c.formattedValue,
@@ -656,41 +656,41 @@ function qt(e, t, n, r, i, a) {
656
656
  floatValue: isNaN(n) ? void 0 : n
657
657
  }, {
658
658
  event: void 0,
659
- source: vt.props
659
+ source: yt.props
660
660
  });
661
661
  }
662
662
  }, []), [c, u];
663
663
  }
664
- function Jt(e) {
664
+ function Yt(e) {
665
665
  return e.replace(/[^0-9]/g, "");
666
666
  }
667
- function Yt(e) {
667
+ function Xt(e) {
668
668
  return e;
669
669
  }
670
- function Xt(e) {
670
+ function Zt(e) {
671
671
  var t = e.type;
672
672
  t === void 0 && (t = "text");
673
673
  var n = e.displayType;
674
674
  n === void 0 && (n = "input");
675
675
  var r = e.customInput, i = e.renderText, a = e.getInputRef, o = e.format;
676
- o === void 0 && (o = Yt);
676
+ o === void 0 && (o = Xt);
677
677
  var s = e.removeFormatting;
678
- s === void 0 && (s = Jt);
678
+ s === void 0 && (s = Yt);
679
679
  var c = e.defaultValue, l = e.valueIsNumericString, u = e.onValueChange, d = e.isAllowed, f = e.onChange;
680
- f === void 0 && (f = yt);
680
+ f === void 0 && (f = bt);
681
681
  var p = e.onKeyDown;
682
- p === void 0 && (p = yt);
682
+ p === void 0 && (p = bt);
683
683
  var m = e.onMouseUp;
684
- m === void 0 && (m = yt);
684
+ m === void 0 && (m = bt);
685
685
  var h = e.onFocus;
686
- h === void 0 && (h = yt);
686
+ h === void 0 && (h = bt);
687
687
  var g = e.onBlur;
688
- g === void 0 && (g = yt);
688
+ g === void 0 && (g = bt);
689
689
  var _ = e.value, v = e.getCaretBoundary;
690
- v === void 0 && (v = Kt);
690
+ v === void 0 && (v = qt);
691
691
  var y = e.isValidInputCharacter;
692
- y === void 0 && (y = xt);
693
- var b = e.isCharacterSame, x = _t(e, [
692
+ y === void 0 && (y = St);
693
+ var b = e.isCharacterSame, x = vt(e, [
694
694
  "type",
695
695
  "displayType",
696
696
  "customInput",
@@ -711,20 +711,20 @@ function Xt(e) {
711
711
  "getCaretBoundary",
712
712
  "isValidInputCharacter",
713
713
  "isCharacterSame"
714
- ]), C = qt(_, c, !!l, o, s, u), w = C[0], T = w.formattedValue, D = w.numAsString, k = C[1], A = j(), N = j({
714
+ ]), C = Jt(_, c, !!l, o, s, u), w = C[0], T = w.formattedValue, D = w.numAsString, O = C[1], A = j(), ee = j({
715
715
  formattedValue: T,
716
716
  numAsString: D
717
- }), P = function(e, t) {
718
- N.current = {
717
+ }), te = function(e, t) {
718
+ ee.current = {
719
719
  formattedValue: e.formattedValue,
720
720
  numAsString: e.value
721
- }, k(e, t);
722
- }, F = M(!1), ee = F[0], te = F[1], ne = j(null), I = j({
721
+ }, O(e, t);
722
+ }, N = M(!1), P = N[0], ne = N[1], F = j(null), I = j({
723
723
  setCaretTimeout: null,
724
724
  focusTimeout: null
725
725
  });
726
726
  E(function() {
727
- return te(!0), function() {
727
+ return ne(!0), function() {
728
728
  clearTimeout(I.current.setCaretTimeout), clearTimeout(I.current.focusTimeout);
729
729
  };
730
730
  }, []);
@@ -736,46 +736,46 @@ function Xt(e) {
736
736
  floatValue: isNaN(n) ? void 0 : n
737
737
  };
738
738
  }, L = function(e, t, n) {
739
- (e.selectionStart !== 0 || e.selectionEnd !== e.value.length) && (Ft(e, t), I.current.setCaretTimeout = setTimeout(function() {
740
- e.value === n && e.selectionStart !== t && Ft(e, t);
739
+ (e.selectionStart !== 0 || e.selectionEnd !== e.value.length) && (It(e, t), I.current.setCaretTimeout = setTimeout(function() {
740
+ e.value === n && e.selectionStart !== t && It(e, t);
741
741
  }, 0));
742
- }, R = function(e, t, n) {
743
- return Gt(e, t, v(e), n);
744
742
  }, ae = function(e, t, n) {
745
- var r = v(t), i = Wt(t, T, e, n, r, y, b);
746
- return i = Gt(t, i, r), i;
743
+ return Kt(e, t, v(e), n);
744
+ }, R = function(e, t, n) {
745
+ var r = v(t), i = Gt(t, T, e, n, r, y, b);
746
+ return i = Kt(t, i, r), i;
747
747
  }, oe = function(e) {
748
748
  var t = e.formattedValue;
749
749
  t === void 0 && (t = "");
750
750
  var n = e.input, r = e.source, i = e.event, a = e.numAsString, o;
751
751
  if (n) {
752
- var s = e.inputValue || n.value, c = zt(n);
753
- n.value = t, o = ae(s, t, c), o !== void 0 && L(n, o, t);
752
+ var s = e.inputValue || n.value, c = Bt(n);
753
+ n.value = t, o = R(s, t, c), o !== void 0 && L(n, o, t);
754
754
  }
755
- t !== T && P(ie(t, a), {
755
+ t !== T && te(ie(t, a), {
756
756
  event: i,
757
757
  source: r
758
758
  });
759
759
  };
760
760
  E(function() {
761
- var e = N.current, t = e.formattedValue, n = e.numAsString;
762
- (T !== t || D !== n) && P(ie(T, D), {
761
+ var e = ee.current, t = e.formattedValue, n = e.numAsString;
762
+ (T !== t || D !== n) && te(ie(T, D), {
763
763
  event: void 0,
764
- source: vt.props
764
+ source: yt.props
765
765
  });
766
766
  }, [T, D]);
767
- var se = ne.current ? zt(ne.current) : void 0;
768
- (typeof window < "u" ? O : E)(function() {
769
- var e = ne.current;
770
- if (T !== N.current.formattedValue && e) {
771
- var t = ae(N.current.formattedValue, T, se);
767
+ var se = F.current ? Bt(F.current) : void 0;
768
+ (typeof window < "u" ? k : E)(function() {
769
+ var e = F.current;
770
+ if (T !== ee.current.formattedValue && e) {
771
+ var t = R(ee.current.formattedValue, T, se);
772
772
  e.value = T, L(e, t, T);
773
773
  }
774
774
  }, [T]);
775
775
  var ce = function(e, t, n) {
776
- var r = t.target, i = A.current ? Lt(A.current, r.selectionEnd) : It(T, e), a = Object.assign(Object.assign({}, i), { lastValue: T }), o = s(e, a), c = re(o);
776
+ var r = t.target, i = A.current ? Rt(A.current, r.selectionEnd) : Lt(T, e), a = Object.assign(Object.assign({}, i), { lastValue: T }), o = s(e, a), c = re(o);
777
777
  if (o = s(c, void 0), d && !d(ie(c, o))) {
778
- var l = t.target, u = ae(e, T, zt(l));
778
+ var l = t.target, u = R(e, T, Bt(l));
779
779
  return l.value = T, L(l, u, T), !1;
780
780
  }
781
781
  return oe({
@@ -793,7 +793,7 @@ function Xt(e) {
793
793
  };
794
794
  }, z = function(e) {
795
795
  var t = e.target.value;
796
- ce(t, e, vt.event) && f(e), A.current = void 0;
796
+ ce(t, e, yt.event) && f(e), A.current = void 0;
797
797
  }, ue = function(e) {
798
798
  var t = e.target, n = e.key, r = t.selectionStart, i = t.selectionEnd, a = t.value;
799
799
  a === void 0 && (a = "");
@@ -805,13 +805,13 @@ function Xt(e) {
805
805
  if (o === void 0 || r !== i && !c) p(e), le(t, s);
806
806
  else {
807
807
  var l = o;
808
- c ? (l = R(a, o, n === "ArrowLeft" ? "left" : "right"), l !== o && e.preventDefault()) : n === "Delete" && !y(a[o]) ? l = R(a, o, "right") : n === "Backspace" && !y(a[o]) && (l = R(a, o, "left")), l !== o && L(t, l, a), p(e), le(t, s);
808
+ c ? (l = ae(a, o, n === "ArrowLeft" ? "left" : "right"), l !== o && e.preventDefault()) : n === "Delete" && !y(a[o]) ? l = ae(a, o, "right") : n === "Backspace" && !y(a[o]) && (l = ae(a, o, "left")), l !== o && L(t, l, a), p(e), le(t, s);
809
809
  }
810
810
  }, de = function(e) {
811
811
  var t = e.target, n = function() {
812
812
  var e = t.selectionStart, n = t.selectionEnd, r = t.value;
813
813
  if (r === void 0 && (r = ""), e === n) {
814
- var i = R(r, e);
814
+ var i = ae(r, e);
815
815
  i !== e && L(t, i, r);
816
816
  }
817
817
  };
@@ -821,41 +821,41 @@ function Xt(e) {
821
821
  }, fe = function(e) {
822
822
  e.persist && e.persist();
823
823
  var t = e.target, n = e.currentTarget;
824
- ne.current = t, I.current.focusTimeout = setTimeout(function() {
824
+ F.current = t, I.current.focusTimeout = setTimeout(function() {
825
825
  var r = t.selectionStart, i = t.selectionEnd, a = t.value;
826
826
  a === void 0 && (a = "");
827
- var o = R(a, r);
827
+ var o = ae(a, r);
828
828
  o !== r && (r !== 0 || i !== a.length) && L(t, o, a), h(Object.assign(Object.assign({}, e), { currentTarget: n }));
829
829
  }, 0);
830
- }, pe = function(e) {
831
- ne.current = null, clearTimeout(I.current.focusTimeout), clearTimeout(I.current.setCaretTimeout), g(e);
832
- }, me = ee && Bt() ? "numeric" : void 0, B = Object.assign({ inputMode: me }, x, {
830
+ }, B = function(e) {
831
+ F.current = null, clearTimeout(I.current.focusTimeout), clearTimeout(I.current.setCaretTimeout), g(e);
832
+ }, pe = P && Vt() ? "numeric" : void 0, me = Object.assign({ inputMode: pe }, x, {
833
833
  type: t,
834
834
  value: T,
835
835
  onChange: z,
836
836
  onKeyDown: ue,
837
837
  onMouseUp: de,
838
838
  onFocus: fe,
839
- onBlur: pe
839
+ onBlur: B
840
840
  });
841
841
  if (n === "text") return i ? S.createElement(S.Fragment, null, i(T, x) || null) : S.createElement("span", Object.assign({}, x, { ref: a }), T);
842
842
  if (r) {
843
843
  var V = r;
844
- return S.createElement(V, Object.assign({}, B, { ref: a }));
844
+ return S.createElement(V, Object.assign({}, me, { ref: a }));
845
845
  }
846
- return S.createElement("input", Object.assign({}, B, { ref: a }));
846
+ return S.createElement("input", Object.assign({}, me, { ref: a }));
847
847
  }
848
- function Zt(e, t) {
848
+ function Qt(e, t) {
849
849
  var n = t.decimalScale, r = t.fixedDecimalScale, i = t.prefix;
850
850
  i === void 0 && (i = "");
851
851
  var a = t.suffix;
852
852
  a === void 0 && (a = "");
853
853
  var o = t.allowNegative, s = t.thousandsGroupStyle;
854
854
  if (s === void 0 && (s = "thousand"), e === "" || e === "-") return e;
855
- var c = Qt(t), l = c.thousandSeparator, u = c.decimalSeparator, d = n !== 0 && e.indexOf(".") !== -1 || n && r, f = kt(e, o), p = f.beforeDecimal, m = f.afterDecimal, h = f.addNegation;
856
- return n !== void 0 && (m = jt(m, n, !!r)), l && (p = Dt(p, l, s)), i && (p = i + p), a && (m += a), h && (p = "-" + p), e = p + (d && u || "") + m, e;
855
+ var c = $t(t), l = c.thousandSeparator, u = c.decimalSeparator, d = n !== 0 && e.indexOf(".") !== -1 || n && r, f = At(e, o), p = f.beforeDecimal, m = f.afterDecimal, h = f.addNegation;
856
+ return n !== void 0 && (m = Mt(m, n, !!r)), l && (p = Ot(p, l, s)), i && (p = i + p), a && (m += a), h && (p = "-" + p), e = p + (d && u || "") + m, e;
857
857
  }
858
- function Qt(e) {
858
+ function $t(e) {
859
859
  var t = e.decimalSeparator;
860
860
  t === void 0 && (t = ".");
861
861
  var n = e.thousandSeparator, r = e.allowedDecimalSeparators;
@@ -865,26 +865,26 @@ function Qt(e) {
865
865
  allowedDecimalSeparators: r
866
866
  };
867
867
  }
868
- function $t(e, t) {
868
+ function en(e, t) {
869
869
  e === void 0 && (e = "");
870
870
  var n = /* @__PURE__ */ RegExp("(-)"), r = /* @__PURE__ */ RegExp("(-)(.)*(-)"), i = n.test(e), a = r.test(e);
871
871
  return e = e.replace(/-/g, ""), i && !a && t && (e = "-" + e), e;
872
872
  }
873
- function en(e, t) {
874
- return RegExp("(^-)|[0-9]|" + Tt(e), t ? "g" : void 0);
873
+ function tn(e, t) {
874
+ return RegExp("(^-)|[0-9]|" + Et(e), t ? "g" : void 0);
875
875
  }
876
- function tn(e, t, n) {
876
+ function nn(e, t, n) {
877
877
  return e === "" || !t?.match(/\d/) && !n?.match(/\d/) && typeof e == "string" && !isNaN(Number(e));
878
878
  }
879
- function nn(e, t, n) {
879
+ function rn(e, t, n) {
880
880
  var r;
881
- t === void 0 && (t = Vt(e));
881
+ t === void 0 && (t = Ht(e));
882
882
  var i = n.allowNegative, a = n.prefix;
883
883
  a === void 0 && (a = "");
884
884
  var o = n.suffix;
885
885
  o === void 0 && (o = "");
886
- var s = n.decimalScale, c = t.from, l = t.to, u = l.start, d = l.end, f = Qt(n), p = f.allowedDecimalSeparators, m = f.decimalSeparator, h = e[d] === m;
887
- if (xt(e) && (e === a || e === o) && t.lastValue === "") return e;
886
+ var s = n.decimalScale, c = t.from, l = t.to, u = l.start, d = l.end, f = $t(n), p = f.allowedDecimalSeparators, m = f.decimalSeparator, h = e[d] === m;
887
+ if (St(e) && (e === a || e === o) && t.lastValue === "") return e;
888
888
  if (d - u === 1 && p.indexOf(e[u]) !== -1) {
889
889
  var g = s === 0 ? "" : m;
890
890
  e = e.substring(0, u) + g + e.substring(u + 1, e.length);
@@ -906,15 +906,15 @@ function nn(e, t, n) {
906
906
  var T = 0;
907
907
  e.startsWith(a) ? T += a.length : u < a.length && (T = u), e = e.substring(T), d -= T;
908
908
  var E = e.length, D = e.length - o.length;
909
- e.endsWith(o) ? E = D : (d > D || d > e.length - o.length) && (E = d), e = e.substring(0, E), e = $t(y ? "-" + e : e, i), e = (e.match(en(m, !0)) || []).join("");
909
+ e.endsWith(o) ? E = D : (d > D || d > e.length - o.length) && (E = d), e = e.substring(0, E), e = en(y ? "-" + e : e, i), e = (e.match(tn(m, !0)) || []).join("");
910
910
  var O = e.indexOf(m);
911
- e = e.replace(new RegExp(Tt(m), "g"), function(e, t) {
911
+ e = e.replace(new RegExp(Et(m), "g"), function(e, t) {
912
912
  return t === O ? "." : "";
913
913
  });
914
- var k = kt(e, i), A = k.beforeDecimal, j = k.afterDecimal, M = k.addNegation;
915
- return l.end - l.start < c.end - c.start && A === "" && h && !parseFloat(j) && (e = M ? "-" : ""), e;
914
+ var k = At(e, i), A = k.beforeDecimal, ee = k.afterDecimal, j = k.addNegation;
915
+ return l.end - l.start < c.end - c.start && A === "" && h && !parseFloat(ee) && (e = j ? "-" : ""), e;
916
916
  }
917
- function rn(e, t) {
917
+ function an(e, t) {
918
918
  var n = t.prefix;
919
919
  n === void 0 && (n = "");
920
920
  var r = t.suffix;
@@ -926,22 +926,22 @@ function rn(e, t) {
926
926
  var o = e.length;
927
927
  return i.fill(!1, o - r.length + 1, o + 1), i;
928
928
  }
929
- function an(e) {
930
- var t = Qt(e), n = t.thousandSeparator, r = t.decimalSeparator, i = e.prefix;
929
+ function on(e) {
930
+ var t = $t(e), n = t.thousandSeparator, r = t.decimalSeparator, i = e.prefix;
931
931
  i === void 0 && (i = "");
932
932
  var a = e.allowNegative;
933
933
  if (a === void 0 && (a = !0), n === r) throw Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: " + n + " (thousandSeparator = {true} is same as thousandSeparator = \",\")\n decimalSeparator: " + r + " (default value for decimalSeparator is .)\n ");
934
934
  return i.startsWith("-") && a && (console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: " + i + "\n allowNegative: " + a + "\n "), a = !1), Object.assign(Object.assign({}, e), { allowNegative: a });
935
935
  }
936
- function on(e) {
937
- e = an(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
936
+ function sn(e) {
937
+ e = on(e), e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle;
938
938
  var t = e.suffix, n = e.allowNegative, r = e.allowLeadingZeros, i = e.onKeyDown;
939
- i === void 0 && (i = yt);
939
+ i === void 0 && (i = bt);
940
940
  var a = e.onBlur;
941
- a === void 0 && (a = yt);
941
+ a === void 0 && (a = bt);
942
942
  var o = e.thousandSeparator, s = e.decimalScale, c = e.fixedDecimalScale, l = e.prefix;
943
943
  l === void 0 && (l = "");
944
- var u = e.defaultValue, d = e.value, f = e.valueIsNumericString, p = e.onValueChange, m = _t(e, [
944
+ var u = e.defaultValue, d = e.value, f = e.valueIsNumericString, p = e.onValueChange, m = vt(e, [
945
945
  "decimalSeparator",
946
946
  "allowedDecimalSeparators",
947
947
  "thousandsGroupStyle",
@@ -958,23 +958,23 @@ function on(e) {
958
958
  "value",
959
959
  "valueIsNumericString",
960
960
  "onValueChange"
961
- ]), h = Qt(e), g = h.decimalSeparator, _ = h.allowedDecimalSeparators, v = function(t) {
962
- return Zt(t, e);
961
+ ]), h = $t(e), g = h.decimalSeparator, _ = h.allowedDecimalSeparators, v = function(t) {
962
+ return Qt(t, e);
963
963
  }, y = function(t, n) {
964
- return nn(t, n, e);
965
- }, b = St(d) ? u : d, x = f ?? tn(b, l, t);
966
- St(d) ? St(u) || (x ||= typeof u == "number") : x ||= typeof d == "number";
964
+ return rn(t, n, e);
965
+ }, b = Ct(d) ? u : d, x = f ?? nn(b, l, t);
966
+ Ct(d) ? Ct(u) || (x ||= typeof u == "number") : x ||= typeof d == "number";
967
967
  var S = function(e) {
968
- return wt(e) ? e : (typeof e == "number" && (e = Nt(e)), x && typeof s == "number" ? Pt(e, s, !!c) : e);
969
- }, C = qt(S(d), S(u), !!x, v, y, p), w = C[0], T = w.numAsString, E = w.formattedValue, D = C[1];
968
+ return Tt(e) ? e : (typeof e == "number" && (e = Pt(e)), x && typeof s == "number" ? Ft(e, s, !!c) : e);
969
+ }, C = Jt(S(d), S(u), !!x, v, y, p), w = C[0], T = w.numAsString, E = w.formattedValue, D = C[1];
970
970
  return Object.assign(Object.assign({}, m), {
971
971
  value: E,
972
972
  valueIsNumericString: !1,
973
973
  isValidInputCharacter: function(e) {
974
- return e === g || xt(e);
974
+ return e === g || St(e);
975
975
  },
976
976
  isCharacterSame: function(e) {
977
- var t = e.currentValue, n = e.lastValue, r = e.formattedValue, i = e.currentValueIndex, a = e.formattedValueIndex, o = t[i], u = r[a], f = It(n, t).to, p = function(e) {
977
+ var t = e.currentValue, n = e.lastValue, r = e.formattedValue, i = e.currentValueIndex, a = e.formattedValueIndex, o = t[i], u = r[a], f = Lt(n, t).to, p = function(e) {
978
978
  return y(e).indexOf(".") + l.length;
979
979
  };
980
980
  return d === 0 && c && s && t[f.start] === g && p(t) < i && p(r) > a ? !1 : i >= f.start && i < f.end && _ && _.includes(o) && u === g ? !0 : o === u;
@@ -983,43 +983,43 @@ function on(e) {
983
983
  format: v,
984
984
  removeFormatting: y,
985
985
  getCaretBoundary: function(t) {
986
- return rn(t, e);
986
+ return an(t, e);
987
987
  },
988
988
  onKeyDown: function(e) {
989
989
  var t = e.target, r = e.key, a = t.selectionStart, u = t.selectionEnd, d = t.value;
990
990
  if (d === void 0 && (d = ""), (r === "Backspace" || r === "Delete") && u < l.length && d !== "-") e.preventDefault();
991
991
  else if (a !== u) i(e);
992
992
  else {
993
- r === "Backspace" && d[0] === "-" && a === l.length + 1 && n && Ft(t, 1), s && c && (r === "Backspace" && d[a - 1] === g ? (Ft(t, a - 1), e.preventDefault()) : r === "Delete" && d[a] === g && e.preventDefault()), _?.includes(r) && d[a] === g && Ft(t, a + 1);
993
+ r === "Backspace" && d[0] === "-" && a === l.length + 1 && n && It(t, 1), s && c && (r === "Backspace" && d[a - 1] === g ? (It(t, a - 1), e.preventDefault()) : r === "Delete" && d[a] === g && e.preventDefault()), _?.includes(r) && d[a] === g && It(t, a + 1);
994
994
  var f = o === !0 ? "," : o;
995
- r === "Backspace" && d[a - 1] === f && Ft(t, a - 1), r === "Delete" && d[a] === f && Ft(t, a + 1), i(e);
995
+ r === "Backspace" && d[a - 1] === f && It(t, a - 1), r === "Delete" && d[a] === f && It(t, a + 1), i(e);
996
996
  }
997
997
  },
998
998
  onBlur: function(t) {
999
999
  var n = T;
1000
- n.match(/\d/g) || (n = ""), r || (n = At(n)), c && s && (n = Pt(n, s, c)), n !== T && D({
1001
- formattedValue: Zt(n, e),
1000
+ n.match(/\d/g) || (n = ""), r || (n = jt(n)), c && s && (n = Ft(n, s, c)), n !== T && D({
1001
+ formattedValue: Qt(n, e),
1002
1002
  value: n,
1003
1003
  floatValue: parseFloat(n)
1004
1004
  }, {
1005
1005
  event: t,
1006
- source: vt.event
1006
+ source: yt.event
1007
1007
  }), a(t);
1008
1008
  }
1009
1009
  });
1010
1010
  }
1011
- function sn(e) {
1012
- var t = on(e);
1013
- return S.createElement(Xt, Object.assign({}, t));
1011
+ function cn(e) {
1012
+ var t = sn(e);
1013
+ return S.createElement(Zt, Object.assign({}, t));
1014
1014
  }
1015
- function cn(e, t) {
1015
+ function ln(e, t) {
1016
1016
  var n = t.format, r = t.allowEmptyFormatting, i = t.mask, a = t.patternChar;
1017
1017
  if (a === void 0 && (a = "#"), e === "" && !r) return "";
1018
- for (var o = 0, s = n.split(""), c = 0, l = n.length; c < l; c++) n[c] === a && (s[c] = e[o] || Ht(i, o), o += 1);
1018
+ for (var o = 0, s = n.split(""), c = 0, l = n.length; c < l; c++) n[c] === a && (s[c] = e[o] || Ut(i, o), o += 1);
1019
1019
  return s.join("");
1020
1020
  }
1021
- function ln(e, t, n) {
1022
- t === void 0 && (t = Vt(e));
1021
+ function un(e, t, n) {
1022
+ t === void 0 && (t = Ht(e));
1023
1023
  var r = n.format, i = n.patternChar;
1024
1024
  i === void 0 && (i = "#");
1025
1025
  var a = t.from, o = t.to, s = t.lastValue;
@@ -1027,21 +1027,21 @@ function ln(e, t, n) {
1027
1027
  var c = function(e) {
1028
1028
  return r[e] === i;
1029
1029
  }, l = function(e, t) {
1030
- for (var n = "", r = 0; r < e.length; r++) c(t + r) && xt(e[r]) && (n += e[r]);
1030
+ for (var n = "", r = 0; r < e.length; r++) c(t + r) && St(e[r]) && (n += e[r]);
1031
1031
  return n;
1032
1032
  }, u = function(e) {
1033
1033
  return e.replace(/[^0-9]/g, "");
1034
1034
  };
1035
1035
  if (!r.match(/\d/)) return u(e);
1036
1036
  if ((s === "" || a.end - a.start === s.length) && e.length === r.length) {
1037
- for (var d = "", f = 0; f < e.length; f++) if (c(f)) xt(e[f]) && (d += e[f]);
1037
+ for (var d = "", f = 0; f < e.length; f++) if (c(f)) St(e[f]) && (d += e[f]);
1038
1038
  else if (e[f] !== r[f]) return u(e);
1039
1039
  return d;
1040
1040
  }
1041
1041
  var p = s.substring(0, a.start), m = e.substring(o.start, o.end), h = s.substring(a.end);
1042
1042
  return "" + l(p, 0) + u(m) + l(h, a.end);
1043
1043
  }
1044
- function un(e, t) {
1044
+ function dn(e, t) {
1045
1045
  var n = t.format, r = t.mask, i = t.patternChar;
1046
1046
  i === void 0 && (i = "#");
1047
1047
  var a = Array.from({ length: e.length + 1 }).map(function() {
@@ -1049,29 +1049,29 @@ function un(e, t) {
1049
1049
  }), o = 0, s = -1, c = {};
1050
1050
  n.split("").forEach(function(t, n) {
1051
1051
  var a = void 0;
1052
- t === i && (o++, a = Ht(r, o - 1), s === -1 && e[n] === a && (s = n)), c[n] = a;
1052
+ t === i && (o++, a = Ut(r, o - 1), s === -1 && e[n] === a && (s = n)), c[n] = a;
1053
1053
  });
1054
1054
  for (var l = function(t) {
1055
1055
  return n[t] === i && e[t] !== c[t];
1056
1056
  }, u = 0, d = a.length; u < d; u++) a[u] = u === s || l(u) || l(u - 1);
1057
1057
  return a[n.indexOf(i)] = !0, a;
1058
1058
  }
1059
- function dn(e) {
1059
+ function fn(e) {
1060
1060
  var t = e.mask;
1061
1061
  if (t && (t === "string" ? t : t.toString()).match(/\d/g)) throw Error("Mask " + t + " should not contain numeric character;");
1062
1062
  }
1063
- function fn(e, t) {
1063
+ function pn(e, t) {
1064
1064
  return e === "" || !t?.match(/\d/) && typeof e == "string" && (!!e.match(/^\d+$/) || e === "");
1065
1065
  }
1066
- function pn(e) {
1066
+ function mn(e) {
1067
1067
  e.mask, e.allowEmptyFormatting;
1068
1068
  var t = e.format, n = e.inputMode;
1069
1069
  n === void 0 && (n = "numeric");
1070
1070
  var r = e.onKeyDown;
1071
- r === void 0 && (r = yt);
1071
+ r === void 0 && (r = bt);
1072
1072
  var i = e.patternChar;
1073
1073
  i === void 0 && (i = "#");
1074
- var a = e.value, o = e.defaultValue, s = e.valueIsNumericString, c = _t(e, [
1074
+ var a = e.value, o = e.defaultValue, s = e.valueIsNumericString, c = vt(e, [
1075
1075
  "mask",
1076
1076
  "allowEmptyFormatting",
1077
1077
  "format",
@@ -1082,9 +1082,9 @@ function pn(e) {
1082
1082
  "defaultValue",
1083
1083
  "valueIsNumericString"
1084
1084
  ]);
1085
- dn(e);
1085
+ fn(e);
1086
1086
  var l = function(t) {
1087
- return un(t, e);
1087
+ return dn(t, e);
1088
1088
  }, u = function(e) {
1089
1089
  var n = e.key, a = e.target, o = a.selectionStart, s = a.selectionEnd, c = a.value;
1090
1090
  if (o !== s) r(e);
@@ -1099,34 +1099,34 @@ function pn(e) {
1099
1099
  for (var f = t.length; u < f && t[u] !== i;) u++;
1100
1100
  d = "right";
1101
1101
  }
1102
- u = Gt(c, u, l(c), d);
1103
- } else t[u] !== i && n !== "ArrowLeft" && n !== "ArrowRight" && (u = Gt(c, u + 1, l(c), "right"));
1104
- u !== o && Ft(a, u), r(e);
1102
+ u = Kt(c, u, l(c), d);
1103
+ } else t[u] !== i && n !== "ArrowLeft" && n !== "ArrowRight" && (u = Kt(c, u + 1, l(c), "right"));
1104
+ u !== o && It(a, u), r(e);
1105
1105
  }
1106
- }, d = St(a) ? o : a, f = s ?? fn(d, t), p = Object.assign(Object.assign({}, e), { valueIsNumericString: f });
1106
+ }, d = Ct(a) ? o : a, f = s ?? pn(d, t), p = Object.assign(Object.assign({}, e), { valueIsNumericString: f });
1107
1107
  return Object.assign(Object.assign({}, c), {
1108
1108
  value: a,
1109
1109
  defaultValue: o,
1110
1110
  valueIsNumericString: f,
1111
1111
  inputMode: n,
1112
1112
  format: function(e) {
1113
- return cn(e, p);
1113
+ return ln(e, p);
1114
1114
  },
1115
1115
  removeFormatting: function(e, t) {
1116
- return ln(e, t, p);
1116
+ return un(e, t, p);
1117
1117
  },
1118
1118
  getCaretBoundary: l,
1119
1119
  onKeyDown: u
1120
1120
  });
1121
1121
  }
1122
- function mn(e) {
1123
- var t = pn(e);
1124
- return S.createElement(Xt, Object.assign({}, t));
1122
+ function hn(e) {
1123
+ var t = mn(e);
1124
+ return S.createElement(Zt, Object.assign({}, t));
1125
1125
  }
1126
1126
  // src/components/controls/NumberField/numberfield.tsx
1127
- var hn = S.forwardRef(function(e, t) {
1127
+ var gn = S.forwardRef(function(e, t) {
1128
1128
  let { onChange: n, ...r } = e;
1129
- return /* @__PURE__ */ H(sn, {
1129
+ return /* @__PURE__ */ U(cn, {
1130
1130
  ...r,
1131
1131
  getInputRef: t,
1132
1132
  onValueChange: (t, r) => {
@@ -1139,7 +1139,7 @@ var hn = S.forwardRef(function(e, t) {
1139
1139
  valueIsNumericString: !0
1140
1140
  });
1141
1141
  });
1142
- function gn({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, messages: o }) {
1142
+ function _n({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, messages: o }) {
1143
1143
  let { MuiAttributes: s = {}, id: c = "" } = e, { sx: l, slotProps: u = {}, InputProps: d, inputProps: f, ...p } = s, [m, h] = b(() => e.value ?? "", [e.value]), [g, _] = S.useState(!1), [v, x] = S.useState(""), C = (e) => n(e, t, o, "Invalid");
1144
1144
  y(() => {
1145
1145
  if (i) {
@@ -1156,7 +1156,7 @@ function gn({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, mes
1156
1156
  value: t
1157
1157
  });
1158
1158
  }, T = a(t);
1159
- return /* @__PURE__ */ H(W, {
1159
+ return /* @__PURE__ */ U(G, {
1160
1160
  fullWidth: !0,
1161
1161
  required: T,
1162
1162
  value: m,
@@ -1174,7 +1174,7 @@ function gn({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, mes
1174
1174
  slotProps: {
1175
1175
  ...u,
1176
1176
  input: {
1177
- inputComponent: hn,
1177
+ inputComponent: gn,
1178
1178
  ...u.input || {},
1179
1179
  ...d || {}
1180
1180
  },
@@ -1186,7 +1186,7 @@ function gn({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, mes
1186
1186
  });
1187
1187
  }
1188
1188
  // src/components/controls/Select/select.tsx
1189
- var _n = /* @__PURE__ */ H(Ce, { fontSize: "small" }), vn = /* @__PURE__ */ H(G, { fontSize: "small" }), yn = (e = [], t = "", n = !1, r = ",") => {
1189
+ var vn = /* @__PURE__ */ U(K, { fontSize: "small" }), yn = /* @__PURE__ */ U(Ce, { fontSize: "small" }), bn = (e = [], t = "", n = !1, r = ",") => {
1190
1190
  try {
1191
1191
  let i = Array.isArray(e) ? e : [];
1192
1192
  if (n) {
@@ -1208,8 +1208,8 @@ var _n = /* @__PURE__ */ H(Ce, { fontSize: "small" }), vn = /* @__PURE__ */ H(G,
1208
1208
  return console.error("getValue error:", e), n ? [] : null;
1209
1209
  }
1210
1210
  };
1211
- function bn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, messages: o }) {
1212
- let { MuiAttributes: s = {}, options: c = [], MuiBoxAttributes: l = {}, id: d = "", InputProps: f = {} } = t, { sx: p, slotProps: m = {}, ...h } = l, g = s.multiple ? [] : null, [v, x] = b(() => t?.value ? yn(c, t?.value, s.multiple, t?.separator) ?? g : g, [t?.value, c]), [C, w] = S.useState(!1), [E, D] = S.useState(""), O = (t) => e(n, !t || Array.isArray(t) && t.length === 0, o);
1211
+ function xn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, messages: o }) {
1212
+ let { MuiAttributes: s = {}, options: c = [], MuiBoxAttributes: l = {}, id: d = "", InputProps: f = {} } = t, { sx: p, slotProps: m = {}, ...h } = l, g = s.multiple ? [] : null, [v, x] = b(() => t?.value ? bn(c, t?.value, s.multiple, t?.separator) ?? g : g, [t?.value, c]), [C, w] = S.useState(!1), [E, D] = S.useState(""), O = (t) => e(n, !t || Array.isArray(t) && t.length === 0, o);
1213
1213
  y(() => {
1214
1214
  if (i) {
1215
1215
  let e = O(v);
@@ -1218,17 +1218,17 @@ function bn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1218
1218
  }, [i]);
1219
1219
  let k = () => s.multiple ? {
1220
1220
  ...s,
1221
- renderOption: (e, t = {}, { selected: n }) => /* @__PURE__ */ U("li", {
1221
+ renderOption: (e, t = {}, { selected: n }) => /* @__PURE__ */ W("li", {
1222
1222
  ...e,
1223
- children: [/* @__PURE__ */ H(xe, {
1224
- icon: _n,
1225
- checkedIcon: vn,
1223
+ children: [/* @__PURE__ */ U(xe, {
1224
+ icon: vn,
1225
+ checkedIcon: yn,
1226
1226
  style: { marginRight: 8 },
1227
1227
  checked: n,
1228
1228
  sx: u(t.color || "")
1229
1229
  }), t.title || t.label || t.value]
1230
1230
  })
1231
- } : s, A = T((e) => e?.value || e?.title || e?.label, []), j = T((e, n) => {
1231
+ } : s, A = T((e) => e?.value || e?.title || e?.label, []), ee = T((e, n) => {
1232
1232
  x(n);
1233
1233
  let i = O(n);
1234
1234
  w(!i.isValid), D(i.message);
@@ -1252,13 +1252,13 @@ function bn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1252
1252
  s.multiple,
1253
1253
  A,
1254
1254
  n.validation
1255
- ]), M = a(n);
1256
- return /* @__PURE__ */ H(Se, {
1255
+ ]), j = a(n);
1256
+ return /* @__PURE__ */ U(Se, {
1257
1257
  disablePortal: !1,
1258
1258
  ...k(),
1259
1259
  options: c,
1260
1260
  value: v,
1261
- onChange: j,
1261
+ onChange: ee,
1262
1262
  onBlur: () => {
1263
1263
  let e = O(v);
1264
1264
  w(!e.isValid), D(e.message);
@@ -1277,15 +1277,15 @@ function bn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1277
1277
  let t = _(f), n = {
1278
1278
  ...e.slotProps.input,
1279
1279
  ...t,
1280
- startAdornment: /* @__PURE__ */ U(ve, { children: [t?.startAdornment, e.slotProps.input.startAdornment] }),
1281
- endAdornment: /* @__PURE__ */ U(ve, { children: [t?.endAdornment, e.slotProps.input.endAdornment] })
1280
+ startAdornment: /* @__PURE__ */ W(ve, { children: [t?.startAdornment, e.slotProps.input.startAdornment] }),
1281
+ endAdornment: /* @__PURE__ */ W(ve, { children: [t?.endAdornment, e.slotProps.input.endAdornment] })
1282
1282
  };
1283
- return /* @__PURE__ */ H(W, {
1283
+ return /* @__PURE__ */ U(G, {
1284
1284
  ...e,
1285
1285
  ...h,
1286
1286
  id: d,
1287
1287
  sx: X(Z, p),
1288
- required: M,
1288
+ required: j,
1289
1289
  error: C,
1290
1290
  helperText: E,
1291
1291
  slotProps: {
@@ -1310,7 +1310,7 @@ function bn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1310
1310
  });
1311
1311
  }
1312
1312
  // src/components/controls/Autocomplete/autocomplete.tsx
1313
- function xn({ attributes: t = {}, rules: n = {}, onChange: r, messages: i }) {
1313
+ function Sn({ attributes: t = {}, rules: n = {}, onChange: r, messages: i }) {
1314
1314
  let { MuiAttributes: o = {}, id: s = "", options: c = [], label: l = "Combo Box" } = t, [u, d] = b(() => t.value ?? null, [t.value], () => t.value || null), [f, p] = M(!1), [m, h] = M(""), g = (t) => e(n, !t, i), _ = (e, t) => {
1315
1315
  d(t);
1316
1316
  let n = g(t);
@@ -1322,14 +1322,14 @@ function xn({ attributes: t = {}, rules: n = {}, onChange: r, messages: i }) {
1322
1322
  let e = g(u);
1323
1323
  p(!e.isValid), h(e.message);
1324
1324
  }, y = a(n);
1325
- return /* @__PURE__ */ H(Se, {
1325
+ return /* @__PURE__ */ U(Se, {
1326
1326
  disablePortal: !0,
1327
1327
  id: s,
1328
1328
  options: c,
1329
1329
  value: u,
1330
1330
  onChange: _,
1331
1331
  fullWidth: !0,
1332
- renderInput: (e) => /* @__PURE__ */ H(W, {
1332
+ renderInput: (e) => /* @__PURE__ */ U(G, {
1333
1333
  ...e,
1334
1334
  sx: Z,
1335
1335
  label: l,
@@ -1342,7 +1342,7 @@ function xn({ attributes: t = {}, rules: n = {}, onChange: r, messages: i }) {
1342
1342
  });
1343
1343
  }
1344
1344
  // src/components/controls/CheckBox/toggleInput.tsx
1345
- function Sn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, messages: o }, s) {
1345
+ function Cn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, messages: o }, s) {
1346
1346
  let { id: c = "" } = t, [l, u] = b(() => !!t.value, [t.value], s), [d, f] = S.useState(!1), [p, m] = S.useState(""), h = a(n), g = (t) => {
1347
1347
  let r = e(n, !t, o);
1348
1348
  f(!r.isValid), m(r.message);
@@ -1363,8 +1363,8 @@ function Sn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1363
1363
  }
1364
1364
  };
1365
1365
  }
1366
- function Cn({ labelProps: e = {}, isMandatory: t, error: n, helperText: r, control: i }) {
1367
- let { label: a, sx: o, ...s } = e, c = t ? /* @__PURE__ */ U("span", { children: [a, /* @__PURE__ */ H("span", {
1366
+ function wn({ labelProps: e = {}, isMandatory: t, error: n, helperText: r, control: i }) {
1367
+ let { label: a, sx: o, ...s } = e, c = t ? /* @__PURE__ */ W("span", { children: [a, /* @__PURE__ */ U("span", {
1368
1368
  "aria-hidden": "true",
1369
1369
  style: {
1370
1370
  color: "#d32f2f",
@@ -1372,27 +1372,27 @@ function Cn({ labelProps: e = {}, isMandatory: t, error: n, helperText: r, contr
1372
1372
  },
1373
1373
  children: "*"
1374
1374
  })] }) : a;
1375
- return /* @__PURE__ */ U(K, {
1375
+ return /* @__PURE__ */ W(q, {
1376
1376
  required: t,
1377
1377
  error: n,
1378
1378
  component: "fieldset",
1379
- children: [/* @__PURE__ */ H(we, {
1379
+ children: [/* @__PURE__ */ U(we, {
1380
1380
  ...s,
1381
1381
  label: c,
1382
- sx: X(ft, o),
1382
+ sx: X(pt, o),
1383
1383
  control: i
1384
- }), r && /* @__PURE__ */ H(q, { children: r })]
1384
+ }), r && /* @__PURE__ */ U(Te, { children: r })]
1385
1385
  });
1386
1386
  }
1387
1387
  // src/components/controls/CheckBox/checkbox.tsx
1388
- function wn(e) {
1389
- let { MuiAttributes: t = {}, MuiFCLAttributes: n = {}, id: r = "" } = e.attributes || {}, { checked: i, error: a, helperText: o, isMandatory: s, handleChange: c } = Sn(e, () => t.defaultChecked || !!e.attributes?.value || !1), { checked: l, defaultChecked: u, ...d } = t;
1390
- return /* @__PURE__ */ H(Cn, {
1388
+ function Tn(e) {
1389
+ let { MuiAttributes: t = {}, MuiFCLAttributes: n = {}, id: r = "" } = e.attributes || {}, { checked: i, error: a, helperText: o, isMandatory: s, handleChange: c } = Cn(e, () => t.defaultChecked || !!e.attributes?.value || !1), { checked: l, defaultChecked: u, ...d } = t;
1390
+ return /* @__PURE__ */ U(wn, {
1391
1391
  labelProps: n,
1392
1392
  isMandatory: s,
1393
1393
  error: a,
1394
1394
  helperText: o,
1395
- control: /* @__PURE__ */ H(xe, {
1395
+ control: /* @__PURE__ */ U(xe, {
1396
1396
  id: r,
1397
1397
  ...d,
1398
1398
  checked: i,
@@ -1402,38 +1402,38 @@ function wn(e) {
1402
1402
  });
1403
1403
  }
1404
1404
  // src/components/controls/Radio/radio.tsx
1405
- function Tn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, messages: o }) {
1406
- let { MuiAttributes: s = {}, MuiFCLAttributes: c = {}, MuiRGAttributes: l = {}, id: u = "", MuiFLAttributes: d = {}, MuiFCLabels: f = [], MuiFLabel: p = "", MuiFLabelIcon: m = {} } = t, [h, g] = b(() => t.value ?? "", [t.value], () => t.value || s.defaultValue || ""), [_, v] = S.useState(!1), [x, C] = S.useState(""), w = a(n), T = (t) => e(n, !t, o);
1405
+ function En({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, messages: o }) {
1406
+ let { MuiAttributes: s = {}, MuiFCLAttributes: c = {}, MuiRGAttributes: l = {}, id: u = "", MuiFLAttributes: d = {}, MuiFCLabels: f = [], MuiFLabel: p = "", MuiFLabelIcon: m = {} } = t, [h, g] = b(() => t.value ?? "", [t.value], () => t.value || s.defaultValue || ""), [_, v] = S.useState(!1), [x, C] = S.useState(""), w = a(n), T = D(), E = l.name || u || `radio-group-${T}`, O = (t) => e(n, !t, o);
1407
1407
  y(() => {
1408
1408
  if (i) {
1409
- let e = T(h);
1409
+ let e = O(h);
1410
1410
  v(!e.isValid), C(e.message);
1411
1411
  }
1412
1412
  }, [i]);
1413
- let E = (e) => {
1413
+ let k = (e) => {
1414
1414
  let t = e.target.value;
1415
1415
  g(t);
1416
- let n = T(t);
1416
+ let n = O(t);
1417
1417
  v(!n.isValid), C(n.message), r && r({
1418
1418
  id: u,
1419
1419
  value: t
1420
1420
  });
1421
- }, D = k(() => m && m.icon ? /* @__PURE__ */ U(J, {
1421
+ }, ee = A(() => m && m.icon ? /* @__PURE__ */ W(J, {
1422
1422
  sx: {
1423
1423
  display: "flex",
1424
1424
  width: "100%"
1425
1425
  },
1426
- children: [m && m.icon && /* @__PURE__ */ H(R, {
1426
+ children: [m && m.icon && /* @__PURE__ */ U(R, {
1427
1427
  ...m.MuiFLabelIconAttributes,
1428
1428
  children: m.icon
1429
- }, m.icon), /* @__PURE__ */ H(De, {
1429
+ }, m.icon), /* @__PURE__ */ U(Oe, {
1430
1430
  ...d,
1431
1431
  required: w,
1432
1432
  error: _,
1433
1433
  id: "radio-buttons-group-label",
1434
1434
  children: p
1435
1435
  })]
1436
- }) : /* @__PURE__ */ H(De, {
1436
+ }) : /* @__PURE__ */ U(Oe, {
1437
1437
  ...d,
1438
1438
  required: w,
1439
1439
  error: _,
@@ -1446,25 +1446,25 @@ function Tn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1446
1446
  m,
1447
1447
  d
1448
1448
  ]);
1449
- return /* @__PURE__ */ U(K, {
1449
+ return /* @__PURE__ */ W(q, {
1450
1450
  id: u,
1451
1451
  required: w,
1452
1452
  error: _,
1453
1453
  component: "fieldset",
1454
1454
  children: [
1455
- p && D,
1456
- /* @__PURE__ */ H(Ee, {
1455
+ p && ee,
1456
+ /* @__PURE__ */ U(De, {
1457
1457
  "aria-labelledby": "radio-buttons-group-label",
1458
- name: "radio-buttons-group",
1459
1458
  ...l,
1459
+ name: E,
1460
1460
  value: h,
1461
- onChange: E,
1461
+ onChange: k,
1462
1462
  children: f.map((e) => {
1463
1463
  let t = typeof e != "string", n = t ? e.label : e, r = t ? e.value : e, i = t ? e.color : void 0, a = t ? e.sx : void 0, { sx: o, ...l } = c, { sx: u, ...d } = s;
1464
- return /* @__PURE__ */ H(we, {
1464
+ return /* @__PURE__ */ U(we, {
1465
1465
  ...l,
1466
1466
  value: r,
1467
- control: /* @__PURE__ */ H(Te, {
1467
+ control: /* @__PURE__ */ U(Ee, {
1468
1468
  ...d,
1469
1469
  sx: X(i ? {
1470
1470
  color: i,
@@ -1472,7 +1472,7 @@ function Tn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1472
1472
  } : void 0, u)
1473
1473
  }),
1474
1474
  label: n,
1475
- sx: X(ft, [
1475
+ sx: X(pt, [
1476
1476
  i ? { "& .MuiFormControlLabel-label": { color: i } } : null,
1477
1477
  a,
1478
1478
  o
@@ -1480,38 +1480,38 @@ function Tn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1480
1480
  }, r);
1481
1481
  })
1482
1482
  }),
1483
- x && /* @__PURE__ */ H(q, { children: x })
1483
+ x && /* @__PURE__ */ U(Te, { children: x })
1484
1484
  ]
1485
1485
  });
1486
1486
  }
1487
1487
  // src/components/controls/Switch/switch.tsx
1488
- var En = he(({ color: e, ...t }) => /* @__PURE__ */ H(Oe, { ...t }))(({ theme: e, color: t }) => ({
1488
+ var Dn = he(({ color: e, ...t }) => /* @__PURE__ */ U(ke, { ...t }))(({ theme: e, color: t }) => ({
1489
1489
  "& .MuiSwitch-switchBase.Mui-checked": {
1490
1490
  color: t || "green",
1491
- "&:hover": { backgroundColor: V(t || "green", e.palette.action.hoverOpacity) }
1491
+ "&:hover": { backgroundColor: H(t || "green", e.palette.action.hoverOpacity) }
1492
1492
  },
1493
1493
  "& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track": { backgroundColor: t || "green" }
1494
1494
  }));
1495
- function Dn(e) {
1496
- let { MuiAttributes: t = {}, MuiFCLAttributes: n = {}, color: r = "", id: i = "" } = e.attributes || {}, { checked: a, error: o, helperText: s, isMandatory: c, handleChange: l } = Sn(e, () => t.defaultValue || !!e.attributes?.value || !1), u = r ? En : Oe, { defaultChecked: d, sx: f, ...p } = t, m = r ? { color: r } : { color: "primary" };
1497
- return /* @__PURE__ */ H(Cn, {
1495
+ function On(e) {
1496
+ let { MuiAttributes: t = {}, MuiFCLAttributes: n = {}, color: r = "", id: i = "" } = e.attributes || {}, { checked: a, error: o, helperText: s, isMandatory: c, handleChange: l } = Cn(e, () => t.defaultValue || !!e.attributes?.value || !1), u = r ? Dn : ke, { defaultChecked: d, sx: f, ...p } = t, m = r ? { color: r } : { color: "primary" };
1497
+ return /* @__PURE__ */ U(wn, {
1498
1498
  labelProps: n,
1499
1499
  isMandatory: c,
1500
1500
  error: o,
1501
1501
  helperText: s,
1502
- control: /* @__PURE__ */ H(u, {
1502
+ control: /* @__PURE__ */ U(u, {
1503
1503
  id: i,
1504
1504
  checked: a,
1505
1505
  onChange: l,
1506
1506
  required: c,
1507
1507
  ...p,
1508
1508
  ...m,
1509
- sx: X(pt, f)
1509
+ sx: X(mt, f)
1510
1510
  })
1511
1511
  });
1512
1512
  }
1513
1513
  // src/components/controls/Button/button.tsx
1514
- var On = {
1514
+ var kn = {
1515
1515
  borderRadius: "10px",
1516
1516
  textTransform: "none",
1517
1517
  fontWeight: 600,
@@ -1522,7 +1522,7 @@ var On = {
1522
1522
  boxShadow: "0 4px 12px rgba(0,0,0,0.15)"
1523
1523
  }
1524
1524
  };
1525
- function kn({ attributes: e = {}, onChange: t }) {
1525
+ function An({ attributes: e = {}, onChange: t }) {
1526
1526
  let { MuiAttributes: n = {}, id: r = "", text: i = "Button", action: a = "button", icon: o } = e, { sx: s, ...c } = n, l = () => {
1527
1527
  t && t({
1528
1528
  id: r,
@@ -1530,20 +1530,20 @@ function kn({ attributes: e = {}, onChange: t }) {
1530
1530
  option: a
1531
1531
  });
1532
1532
  };
1533
- return /* @__PURE__ */ H(ke, {
1533
+ return /* @__PURE__ */ U(Ae, {
1534
1534
  variant: "contained",
1535
1535
  ...c,
1536
1536
  type: a,
1537
1537
  onClick: l,
1538
- startIcon: o ? /* @__PURE__ */ H(R, { children: o }) : c.startIcon,
1539
- sx: X(On, s),
1538
+ startIcon: o ? /* @__PURE__ */ U(R, { children: o }) : c.startIcon,
1539
+ sx: X(kn, s),
1540
1540
  children: i
1541
1541
  });
1542
1542
  }
1543
1543
  // src/components/controls/Divider/divider.tsx
1544
- function An({ attributes: e = {} }) {
1544
+ function jn({ attributes: e = {} }) {
1545
1545
  let { MuiAttributes: t = {} } = e, { sx: n, ...r } = t;
1546
- return /* @__PURE__ */ H(Ae, {
1546
+ return /* @__PURE__ */ U(je, {
1547
1547
  ...r,
1548
1548
  sx: X({
1549
1549
  borderColor: "divider",
@@ -1552,10 +1552,10 @@ function An({ attributes: e = {} }) {
1552
1552
  });
1553
1553
  }
1554
1554
  // src/components/controls/Computed/computed.tsx
1555
- var jn = /* @__PURE__ */ t(i());
1556
- function Mn({ attributes: e = {} }) {
1557
- let { MuiAttributes: t = {}, format: n = "", prefix: r = "", suffix: i = "", value: a } = e, { sx: o, ...s } = t, c = a ?? "", l = n && c !== "" && Number.isFinite(Number(c)) ? (0, jn.default)(c).format(n) : String(c);
1558
- return /* @__PURE__ */ H(W, {
1555
+ var Mn = /* @__PURE__ */ t(i());
1556
+ function Nn({ attributes: e = {} }) {
1557
+ let { MuiAttributes: t = {}, format: n = "", prefix: r = "", suffix: i = "", value: a } = e, { sx: o, ...s } = t, c = a ?? "", l = n && c !== "" && Number.isFinite(Number(c)) ? (0, Mn.default)(c).format(n) : String(c);
1558
+ return /* @__PURE__ */ U(G, {
1559
1559
  fullWidth: !0,
1560
1560
  variant: "outlined",
1561
1561
  ...(() => {
@@ -1576,29 +1576,29 @@ function Mn({ attributes: e = {} }) {
1576
1576
  });
1577
1577
  }
1578
1578
  // src/components/controls/Alert/alert.tsx
1579
- function Nn({ attributes: e = {} }) {
1579
+ function Pn({ attributes: e = {} }) {
1580
1580
  let { severity: t = "info", title: n = "", text: r = "", message: i = "", variant: a = "standard", MuiAttributes: o = {} } = e, s = r || i, { sx: c, ...l } = o, u = {
1581
1581
  borderRadius: "12px",
1582
1582
  alignItems: "center",
1583
1583
  "& .MuiAlert-message": { fontWeight: 500 }
1584
1584
  };
1585
- return /* @__PURE__ */ U(je, {
1585
+ return /* @__PURE__ */ W(Me, {
1586
1586
  severity: t,
1587
1587
  variant: a,
1588
1588
  ...l,
1589
1589
  sx: X(u, c),
1590
- children: [n && /* @__PURE__ */ H(Me, { children: n }), s]
1590
+ children: [n && /* @__PURE__ */ U(Ne, { children: n }), s]
1591
1591
  });
1592
1592
  }
1593
- Pe.extend(Fe), Pe.extend(Ie), Pe.extend(Le);
1594
- var Pn = Pe;
1593
+ Fe.extend(Ie), Fe.extend(Le), Fe.extend(Re);
1594
+ var Fn = Fe;
1595
1595
  // src/components/controls/DateTime/datetime.tsx
1596
- function Fn(e, t) {
1596
+ function In(e, t) {
1597
1597
  function n({ attributes: t = {}, rules: n = {}, onChange: r }) {
1598
- let { MuiAttributes: i = {}, name: o = e, id: s = "" } = t, { slotProps: c = {}, ...l } = i, { textField: u = {}, ...d } = c, f = ge().components?.MuiTextField?.defaultProps || {}, [m, h] = b(() => t?.value ? Pn(t?.value) : x, [t?.value], () => t?.value ? Pn(t?.value) : null), g = a(n), _ = p(o);
1599
- return /* @__PURE__ */ H(be, {
1600
- dateAdapter: Ne,
1601
- children: /* @__PURE__ */ H(_, {
1598
+ let { MuiAttributes: i = {}, name: o = e, id: s = "" } = t, { slotProps: c = {}, ...l } = i, { textField: u = {}, ...d } = c, f = ge().components?.MuiTextField?.defaultProps || {}, [m, h] = b(() => t?.value ? Fn(t?.value) : x, [t?.value], () => t?.value ? Fn(t?.value) : null), g = a(n), _ = p(o);
1599
+ return /* @__PURE__ */ U(be, {
1600
+ dateAdapter: Pe,
1601
+ children: /* @__PURE__ */ U(_, {
1602
1602
  value: m,
1603
1603
  onChange: (e) => {
1604
1604
  h(e), r && r({
@@ -1623,24 +1623,24 @@ function Fn(e, t) {
1623
1623
  }
1624
1624
  return n.displayName = t, n;
1625
1625
  }
1626
- var In = Fn("DatePicker", "DateTime"), Ln = Fn("DateTimePicker", "DateTimePicker"), Rn = Fn("TimePicker", "TimePicker");
1626
+ var Ln = In("DatePicker", "DateTime"), Rn = In("DateTimePicker", "DateTimePicker"), zn = In("TimePicker", "TimePicker");
1627
1627
  // src/components/controls/DateRangePicker/daterangepicker.tsx
1628
- function zn(e) {
1628
+ function Bn(e) {
1629
1629
  if (!e) return {
1630
1630
  start: null,
1631
1631
  end: null
1632
1632
  };
1633
1633
  let t, n;
1634
1634
  return typeof e == "string" ? [t, n] = e.split("~") : Array.isArray(e) ? [t, n] = e : typeof e == "object" && (t = e.start, n = e.end), {
1635
- start: t ? Pn(t) : null,
1636
- end: n ? Pn(n) : null
1635
+ start: t ? Fn(t) : null,
1636
+ end: n ? Fn(n) : null
1637
1637
  };
1638
1638
  }
1639
- function Bn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1639
+ function Vn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1640
1640
  let { MuiAttributes: r = {}, id: i = "", format: o = "MM/DD/YYYY", startLabel: s = "Start", endLabel: c = "End" } = e, l = ge().components?.MuiTextField?.defaultProps || {}, u = {
1641
1641
  ...l.size ? { size: l.size } : {},
1642
1642
  ...l.variant ? { variant: l.variant } : {}
1643
- }, [d, f] = b(() => zn(e.value), [e.value]), p = a(t), m = !!d.start && !!d.end && d.start.isValid() && d.end.isValid() && d.end.isBefore(d.start), h = (e) => {
1643
+ }, [d, f] = b(() => Bn(e.value), [e.value]), p = a(t), m = !!d.start && !!d.end && d.start.isValid() && d.end.isValid() && d.end.isBefore(d.start), h = (e) => {
1644
1644
  if (!n) return;
1645
1645
  let t = e.start && e.start.isValid() ? e.start.format(o) : null, r = e.end && e.end.isValid() ? e.end.format(o) : null;
1646
1646
  n({
@@ -1664,12 +1664,12 @@ function Bn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1664
1664
  };
1665
1665
  f(t), h(t);
1666
1666
  };
1667
- return /* @__PURE__ */ H(be, {
1668
- dateAdapter: Ne,
1669
- children: /* @__PURE__ */ U(Re, {
1667
+ return /* @__PURE__ */ U(be, {
1668
+ dateAdapter: Pe,
1669
+ children: /* @__PURE__ */ W(ze, {
1670
1670
  direction: "row",
1671
1671
  spacing: 2,
1672
- children: [/* @__PURE__ */ H(ye, {
1672
+ children: [/* @__PURE__ */ U(ye, {
1673
1673
  label: s,
1674
1674
  format: o,
1675
1675
  value: d.start,
@@ -1681,7 +1681,7 @@ function Bn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1681
1681
  sx: Z
1682
1682
  } },
1683
1683
  ...r
1684
- }), /* @__PURE__ */ H(ye, {
1684
+ }), /* @__PURE__ */ U(ye, {
1685
1685
  label: c,
1686
1686
  format: o,
1687
1687
  value: d.end,
@@ -1700,16 +1700,16 @@ function Bn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1700
1700
  });
1701
1701
  }
1702
1702
  // src/components/controls/Chip/chip.tsx
1703
- function Vn({ attributes: e = {} }) {
1703
+ function Hn({ attributes: e = {} }) {
1704
1704
  let { MuiAttributes: t = {}, label: n = "Chip" } = e, { sx: r, ...i } = t;
1705
- return /* @__PURE__ */ H(ze, {
1705
+ return /* @__PURE__ */ U(Be, {
1706
1706
  label: n,
1707
1707
  ...i,
1708
- sx: X(mt, r)
1708
+ sx: X(ht, r)
1709
1709
  });
1710
1710
  }
1711
1711
  // src/components/controls/ChipSelect/chipselect.tsx
1712
- var Hn = [
1712
+ var Un = [
1713
1713
  "default",
1714
1714
  "primary",
1715
1715
  "secondary",
@@ -1717,7 +1717,7 @@ var Hn = [
1717
1717
  "info",
1718
1718
  "success",
1719
1719
  "warning"
1720
- ], Un = (e = []) => (Array.isArray(e) ? e : []).map((e) => typeof e == "string" ? {
1720
+ ], Wn = (e = []) => (Array.isArray(e) ? e : []).map((e) => typeof e == "string" ? {
1721
1721
  label: e,
1722
1722
  value: e
1723
1723
  } : {
@@ -1726,7 +1726,7 @@ var Hn = [
1726
1726
  icon: e?.icon,
1727
1727
  color: e?.color,
1728
1728
  disabled: e?.disabled
1729
- }), Wn = (e, t, n) => {
1729
+ }), Gn = (e, t, n) => {
1730
1730
  if (t) {
1731
1731
  if (Array.isArray(e)) return e;
1732
1732
  if (typeof e == "string" && e.trim() !== "") {
@@ -1737,15 +1737,15 @@ var Hn = [
1737
1737
  }
1738
1738
  return Array.isArray(e) ? e.length ? e[0] : "" : e ?? "";
1739
1739
  };
1740
- function Gn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, messages: o }) {
1741
- let { id: s = "", options: c = [], multiple: l = !1, label: u = "", separator: d = ";", color: f = "primary", size: p = "medium", allowDeselect: m = !0, MuiAttributes: h = {}, MuiStackAttributes: g = {} } = t, _ = S.useMemo(() => Un(c), [c]), [v, C] = b((e) => {
1742
- let n = Wn(t.value, l, d);
1740
+ function Kn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, messages: o }) {
1741
+ let { id: s = "", options: c = [], multiple: l = !1, label: u = "", separator: d = ";", color: f = "primary", size: p = "medium", allowDeselect: m = !0, MuiAttributes: h = {}, MuiStackAttributes: g = {} } = t, _ = S.useMemo(() => Wn(c), [c]), [v, C] = b((e) => {
1742
+ let n = Gn(t.value, l, d);
1743
1743
  return JSON.stringify(e) === JSON.stringify(n) ? x : n;
1744
1744
  }, [
1745
1745
  t.value,
1746
1746
  l,
1747
1747
  d
1748
- ], () => Wn(t.value, l, d)), [w, T] = S.useState(!1), [E, D] = S.useState(""), O = a(n), k = (t) => e(n, l ? !Array.isArray(t) || t.length === 0 : t === "" || t == null, o);
1748
+ ], () => Gn(t.value, l, d)), [w, T] = S.useState(!1), [E, D] = S.useState(""), O = a(n), k = (t) => e(n, l ? !Array.isArray(t) || t.length === 0 : t === "" || t == null, o);
1749
1749
  y(() => {
1750
1750
  if (i) {
1751
1751
  let e = k(v);
@@ -1771,7 +1771,7 @@ function Gn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1771
1771
  });
1772
1772
  }
1773
1773
  }
1774
- }, j = (e) => l ? Array.isArray(v) && v.includes(e) : v === e, M = (e) => {
1774
+ }, ee = (e) => l ? Array.isArray(v) && v.includes(e) : v === e, j = (e) => {
1775
1775
  if (e.disabled) return;
1776
1776
  let t;
1777
1777
  if (l) {
@@ -1779,14 +1779,14 @@ function Gn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1779
1779
  t = n.includes(e.value) ? n.filter((t) => t !== e.value) : [...n, e.value];
1780
1780
  } else t = v === e.value && m ? "" : e.value;
1781
1781
  C(t), A(t);
1782
- }, N = (e) => {
1782
+ }, M = (e) => {
1783
1783
  let t = e.color ?? f;
1784
- return Hn.includes(t) ? t : "default";
1785
- }, P = (e) => {
1784
+ return Un.includes(t) ? t : "default";
1785
+ }, te = (e) => {
1786
1786
  let t = e.color ?? f;
1787
- return Hn.includes(t) ? void 0 : t;
1787
+ return Un.includes(t) ? void 0 : t;
1788
1788
  };
1789
- return /* @__PURE__ */ U(K, {
1789
+ return /* @__PURE__ */ W(q, {
1790
1790
  id: s,
1791
1791
  required: O,
1792
1792
  error: w,
@@ -1794,7 +1794,7 @@ function Gn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1794
1794
  variant: "standard",
1795
1795
  fullWidth: !0,
1796
1796
  children: [
1797
- u && /* @__PURE__ */ H(De, {
1797
+ u && /* @__PURE__ */ U(Oe, {
1798
1798
  component: "legend",
1799
1799
  required: O,
1800
1800
  error: w,
@@ -1805,7 +1805,7 @@ function Gn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1805
1805
  },
1806
1806
  children: u
1807
1807
  }),
1808
- /* @__PURE__ */ U(Re, {
1808
+ /* @__PURE__ */ W(ze, {
1809
1809
  direction: "row",
1810
1810
  useFlexGap: !0,
1811
1811
  spacing: 1,
@@ -1814,11 +1814,11 @@ function Gn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1814
1814
  ...g,
1815
1815
  sx: [{ flexWrap: "wrap" }, ...Array.isArray(g.sx) ? g.sx : [g.sx]],
1816
1816
  children: [_.map((e) => {
1817
- let t = j(e.value), n = P(e), r = e.icon ? /* @__PURE__ */ H(Be, {
1817
+ let t = ee(e.value), n = te(e), r = e.icon ? /* @__PURE__ */ U(Ve, {
1818
1818
  fontSize: "small",
1819
1819
  children: e.icon
1820
- }) : t ? /* @__PURE__ */ H(Ve, { fontSize: "small" }) : void 0;
1821
- return /* @__PURE__ */ H(ze, {
1820
+ }) : t ? /* @__PURE__ */ U(He, { fontSize: "small" }) : void 0;
1821
+ return /* @__PURE__ */ U(Be, {
1822
1822
  size: p,
1823
1823
  ...h,
1824
1824
  label: e.label,
@@ -1829,8 +1829,8 @@ function Gn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1829
1829
  "aria-pressed": t,
1830
1830
  icon: r,
1831
1831
  variant: t ? "filled" : "outlined",
1832
- color: t ? N(e) : "default",
1833
- onClick: () => M(e),
1832
+ color: t ? M(e) : "default",
1833
+ onClick: () => j(e),
1834
1834
  sx: {
1835
1835
  borderRadius: "999px",
1836
1836
  px: .75,
@@ -1854,7 +1854,7 @@ function Gn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1854
1854
  ...h?.sx || {}
1855
1855
  }
1856
1856
  }, String(e.value));
1857
- }), _.length === 0 && /* @__PURE__ */ H(J, {
1857
+ }), _.length === 0 && /* @__PURE__ */ U(J, {
1858
1858
  sx: {
1859
1859
  color: "text.disabled",
1860
1860
  fontSize: "0.85rem",
@@ -1863,24 +1863,24 @@ function Gn({ attributes: t = {}, rules: n = {}, onChange: r, submitTick: i, mes
1863
1863
  children: "No options configured"
1864
1864
  })]
1865
1865
  }),
1866
- E && /* @__PURE__ */ H(q, { children: E })
1866
+ E && /* @__PURE__ */ U(Te, { children: E })
1867
1867
  ]
1868
1868
  });
1869
1869
  }
1870
1870
  // src/components/controls/Slider/slider.tsx
1871
- var Kn = { "& .MuiSlider-thumb": {
1871
+ var qn = { "& .MuiSlider-thumb": {
1872
1872
  transition: "box-shadow .2s",
1873
1873
  "&:hover, &.Mui-focusVisible": { boxShadow: "0 0 0 8px rgba(99,102,241,0.16)" }
1874
1874
  } };
1875
- function qn({ attributes: e = {}, onChange: t }) {
1875
+ function Jn({ attributes: e = {}, onChange: t }) {
1876
1876
  let { id: n = "", label: r, min: i = 0, max: a = 100, step: o = 1, marks: s, valueLabelDisplay: c = "auto", MuiAttributes: l = {} } = e, { sx: u, ...d } = l, [f, p] = b(() => e.value === void 0 ? x : e.value, [e.value], () => e.value ?? i);
1877
- return /* @__PURE__ */ U(K, {
1877
+ return /* @__PURE__ */ W(q, {
1878
1878
  component: "fieldset",
1879
1879
  fullWidth: !0,
1880
- children: [r && /* @__PURE__ */ H(De, {
1880
+ children: [r && /* @__PURE__ */ U(Oe, {
1881
1881
  component: "legend",
1882
1882
  children: r
1883
- }), /* @__PURE__ */ H(He, {
1883
+ }), /* @__PURE__ */ U(Ue, {
1884
1884
  value: f,
1885
1885
  min: i,
1886
1886
  max: a,
@@ -1894,28 +1894,28 @@ function qn({ attributes: e = {}, onChange: t }) {
1894
1894
  });
1895
1895
  },
1896
1896
  ...d,
1897
- sx: X(Kn, u)
1897
+ sx: X(qn, u)
1898
1898
  })]
1899
1899
  });
1900
1900
  }
1901
1901
  // src/components/controls/Rating/rating.tsx
1902
- var Jn = {
1902
+ var Yn = {
1903
1903
  fontSize: "2rem",
1904
1904
  "& .MuiRating-iconFilled": { color: "primary.main" },
1905
1905
  "& .MuiRating-iconHover": { color: "primary.dark" }
1906
1906
  };
1907
- function Yn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1907
+ function Xn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1908
1908
  let { id: r = "", label: i, MuiAttributes: o = {} } = e, { max: s = 5, precision: c, size: l = "large", sx: u, ...d } = o, [f, p] = b(() => Number(e.value) || 0, [e.value]), [m, h] = S.useState(!1), g = a(t);
1909
- return /* @__PURE__ */ U(K, {
1909
+ return /* @__PURE__ */ W(q, {
1910
1910
  required: g,
1911
1911
  error: m,
1912
1912
  component: "fieldset",
1913
1913
  children: [
1914
- i && /* @__PURE__ */ H(De, {
1914
+ i && /* @__PURE__ */ U(Oe, {
1915
1915
  component: "legend",
1916
1916
  children: i
1917
1917
  }),
1918
- /* @__PURE__ */ H(Ue, {
1918
+ /* @__PURE__ */ U(We, {
1919
1919
  name: r || "rating",
1920
1920
  value: f,
1921
1921
  max: s,
@@ -1929,21 +1929,21 @@ function Yn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1929
1929
  });
1930
1930
  },
1931
1931
  ...d,
1932
- sx: X(Jn, u)
1932
+ sx: X(Yn, u)
1933
1933
  }),
1934
- m && /* @__PURE__ */ H(q, { children: "Required" })
1934
+ m && /* @__PURE__ */ U(Te, { children: "Required" })
1935
1935
  ]
1936
1936
  });
1937
1937
  }
1938
1938
  // src/components/controls/ToggleButtons/togglebuttons.tsx
1939
- var Xn = (e) => (e || []).map((e) => typeof e == "object" && e ? {
1939
+ var Zn = (e) => (e || []).map((e) => typeof e == "object" && e ? {
1940
1940
  value: e.value,
1941
1941
  label: e.label ?? String(e.value),
1942
1942
  icon: e.icon
1943
1943
  } : {
1944
1944
  value: e,
1945
1945
  label: String(e)
1946
- }), Zn = {
1946
+ }), Qn = {
1947
1947
  "& .MuiToggleButton-root": {
1948
1948
  borderRadius: "10px !important",
1949
1949
  textTransform: "none",
@@ -1954,14 +1954,14 @@ var Xn = (e) => (e || []).map((e) => typeof e == "object" && e ? {
1954
1954
  },
1955
1955
  gap: 1
1956
1956
  };
1957
- function Qn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1958
- let { MuiAttributes: r = {}, id: i = "", multiple: o = !1, label: s = "", size: c = "medium", color: l = "primary" } = e, { sx: u, ...d } = r, f = k(() => Xn(e.options || []), [e.options]), [p, m] = b(() => o ? Array.isArray(e.value) ? e.value : [] : e.value ?? null, [e.value]), [h, g] = M(!1), _ = a(t), v = o ? !Array.isArray(p) || p.length === 0 : p == null || p === "", y = _ && h && v, x = y ? t?.validation?.find((e) => e.rule === "mandatory" || e.rule === "mandatoryselect")?.message || "Required" : "";
1959
- return /* @__PURE__ */ U(K, {
1957
+ function $n({ attributes: e = {}, rules: t = {}, onChange: n }) {
1958
+ let { MuiAttributes: r = {}, id: i = "", multiple: o = !1, label: s = "", size: c = "medium", color: l = "primary" } = e, { sx: u, ...d } = r, f = A(() => Zn(e.options || []), [e.options]), [p, m] = b(() => o ? Array.isArray(e.value) ? e.value : [] : e.value ?? null, [e.value]), [h, g] = M(!1), _ = a(t), v = o ? !Array.isArray(p) || p.length === 0 : p == null || p === "", y = _ && h && v, x = y ? t?.validation?.find((e) => e.rule === "mandatory" || e.rule === "mandatoryselect")?.message || "Required" : "";
1959
+ return /* @__PURE__ */ W(q, {
1960
1960
  required: _,
1961
1961
  error: y,
1962
1962
  component: "fieldset",
1963
1963
  children: [
1964
- s && /* @__PURE__ */ H(De, {
1964
+ s && /* @__PURE__ */ U(Oe, {
1965
1965
  required: _,
1966
1966
  error: y,
1967
1967
  sx: {
@@ -1970,7 +1970,7 @@ function Qn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1970
1970
  },
1971
1971
  children: s
1972
1972
  }),
1973
- /* @__PURE__ */ H(Ge, {
1973
+ /* @__PURE__ */ U(Ke, {
1974
1974
  value: p,
1975
1975
  exclusive: !o,
1976
1976
  onChange: (e, t) => {
@@ -1984,27 +1984,27 @@ function Qn({ attributes: e = {}, rules: t = {}, onChange: n }) {
1984
1984
  },
1985
1985
  size: c,
1986
1986
  color: l,
1987
- sx: X(Zn, u),
1987
+ sx: X(Qn, u),
1988
1988
  ...d,
1989
- children: f.map((e) => /* @__PURE__ */ U(We, {
1989
+ children: f.map((e) => /* @__PURE__ */ W(Ge, {
1990
1990
  value: e.value,
1991
- children: [e.icon && /* @__PURE__ */ H(Be, {
1991
+ children: [e.icon && /* @__PURE__ */ U(Ve, {
1992
1992
  fontSize: "small",
1993
1993
  sx: { mr: e.label ? .75 : 0 },
1994
1994
  children: e.icon
1995
1995
  }), e.label]
1996
1996
  }, String(e.value)))
1997
1997
  }),
1998
- x && /* @__PURE__ */ H(q, { children: x })
1998
+ x && /* @__PURE__ */ U(Te, { children: x })
1999
1999
  ]
2000
2000
  });
2001
2001
  }
2002
2002
  // src/components/controls/PasswordField/passwordfield.tsx
2003
- var $n = (e) => {
2003
+ var er = (e) => {
2004
2004
  let t = 0;
2005
2005
  return e.length >= 8 && (t += 25), /[0-9]/.test(e) && (t += 25), /[A-Z]/.test(e) && (t += 25), /[^A-Za-z0-9]/.test(e) && (t += 25), t;
2006
- }, er = (e) => e <= 25 ? "error" : e <= 50 ? "warning" : e <= 75 ? "info" : "success";
2007
- function tr({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, messages: o }) {
2006
+ }, tr = (e) => e <= 25 ? "error" : e <= 50 ? "warning" : e <= 75 ? "info" : "success";
2007
+ function nr({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, messages: o }) {
2008
2008
  let { MuiAttributes: s = {}, id: c = "", showStrength: l = !1 } = e, [u, d] = b(() => e.value === void 0 ? "" : e.value, [e.value]), [f, p] = S.useState(s.helperText || ""), [m, h] = S.useState(!1), [g, _] = S.useState(!1), v = a(t), x = (e) => n(e, t, o);
2009
2009
  y(() => {
2010
2010
  if (i) {
@@ -2021,10 +2021,10 @@ function tr({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, mes
2021
2021
  id: c,
2022
2022
  value: t
2023
2023
  });
2024
- }, { sx: T, ...E } = s, D = $n(u || "");
2025
- return /* @__PURE__ */ U(J, {
2024
+ }, { sx: T, ...E } = s, D = er(u || "");
2025
+ return /* @__PURE__ */ W(J, {
2026
2026
  sx: { width: "100%" },
2027
- children: [/* @__PURE__ */ H(W, {
2027
+ children: [/* @__PURE__ */ U(G, {
2028
2028
  fullWidth: !0,
2029
2029
  ...E,
2030
2030
  id: c,
@@ -2036,19 +2036,19 @@ function tr({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, mes
2036
2036
  helperText: f,
2037
2037
  onChange: C,
2038
2038
  onBlur: w,
2039
- slotProps: { input: { endAdornment: /* @__PURE__ */ H(Ke, {
2039
+ slotProps: { input: { endAdornment: /* @__PURE__ */ U(qe, {
2040
2040
  position: "end",
2041
- children: /* @__PURE__ */ H(qe, {
2041
+ children: /* @__PURE__ */ U(Je, {
2042
2042
  "aria-label": g ? "Hide password" : "Show password",
2043
2043
  onClick: () => _((e) => !e),
2044
2044
  edge: "end",
2045
- children: H(g ? Xe : Ye, {})
2045
+ children: U(g ? Ze : Xe, {})
2046
2046
  })
2047
2047
  }) } }
2048
- }), l ? /* @__PURE__ */ H(Je, {
2048
+ }), l ? /* @__PURE__ */ U(Ye, {
2049
2049
  variant: "determinate",
2050
2050
  value: D,
2051
- color: er(D),
2051
+ color: tr(D),
2052
2052
  sx: {
2053
2053
  mt: 1,
2054
2054
  height: 6,
@@ -2058,12 +2058,12 @@ function tr({ attributes: e = {}, rules: t = {}, onChange: r, submitTick: i, mes
2058
2058
  });
2059
2059
  }
2060
2060
  // src/components/controls/OtpField/otpfield.tsx
2061
- var nr = (e, t) => {
2061
+ var rr = (e, t) => {
2062
2062
  let n = (e || "").slice(0, t).split("");
2063
2063
  return Array.from({ length: t }, (e, t) => n[t] || "");
2064
2064
  };
2065
- function rr({ attributes: e = {}, rules: t = {}, onChange: n }) {
2066
- let { MuiAttributes: r = {}, id: i = "", label: o = "" } = e, s = e.length || 6, [c, l] = b(() => nr(e.value || "", s), [e.value, s]), u = S.useRef([]), d = a(t), f = (e) => {
2065
+ function ir({ attributes: e = {}, rules: t = {}, onChange: n }) {
2066
+ let { MuiAttributes: r = {}, id: i = "", label: o = "" } = e, s = e.length || 6, [c, l] = b(() => rr(e.value || "", s), [e.value, s]), u = S.useRef([]), d = a(t), f = (e) => {
2067
2067
  l(e), typeof n == "function" && n({
2068
2068
  id: i,
2069
2069
  value: e.join("")
@@ -2100,25 +2100,25 @@ function rr({ attributes: e = {}, rules: t = {}, onChange: n }) {
2100
2100
  "& .MuiOutlinedInput-root": {
2101
2101
  borderRadius: "10px",
2102
2102
  transition: `box-shadow .2s ${Y}`,
2103
- "&.Mui-focused": { boxShadow: `0 0 0 3px ${V(e.palette.primary.main, .16)}` }
2103
+ "&.Mui-focused": { boxShadow: `0 0 0 3px ${H(e.palette.primary.main, .16)}` }
2104
2104
  }
2105
2105
  })), _);
2106
- return /* @__PURE__ */ U(K, {
2106
+ return /* @__PURE__ */ W(q, {
2107
2107
  component: "fieldset",
2108
2108
  required: d,
2109
2109
  children: [
2110
- o ? /* @__PURE__ */ H(De, {
2110
+ o ? /* @__PURE__ */ U(Oe, {
2111
2111
  component: "legend",
2112
2112
  children: o
2113
2113
  }) : null,
2114
- /* @__PURE__ */ H(J, {
2114
+ /* @__PURE__ */ U(J, {
2115
2115
  sx: {
2116
2116
  display: "flex",
2117
2117
  flexDirection: "row",
2118
2118
  gap: 1,
2119
2119
  mt: +!!o
2120
2120
  },
2121
- children: c.map((e, t) => /* @__PURE__ */ H(W, {
2121
+ children: c.map((e, t) => /* @__PURE__ */ U(G, {
2122
2122
  ...v,
2123
2123
  size: "small",
2124
2124
  value: e,
@@ -2136,15 +2136,15 @@ function rr({ attributes: e = {}, rules: t = {}, onChange: n }) {
2136
2136
  sx: y
2137
2137
  }, t))
2138
2138
  }),
2139
- d ? /* @__PURE__ */ H(q, { children: r.helperText || "Required" }) : null
2139
+ d ? /* @__PURE__ */ U(Te, { children: r.helperText || "Required" }) : null
2140
2140
  ]
2141
2141
  });
2142
2142
  }
2143
2143
  // src/components/controls/PhoneField/phonefield.tsx
2144
- function ir({ attributes: e = {}, rules: t = {}, onChange: n }) {
2144
+ function ar({ attributes: e = {}, rules: t = {}, onChange: n }) {
2145
2145
  let { id: r = "", format: i = "+1 (###) ###-####", mask: o = "_", label: s, MuiAttributes: c = {} } = e, { sx: l, ...u } = c, [d, f] = b(() => e.value || "", [e.value]), p = a(t);
2146
- return /* @__PURE__ */ H(mn, {
2147
- customInput: W,
2146
+ return /* @__PURE__ */ U(hn, {
2147
+ customInput: G,
2148
2148
  format: i,
2149
2149
  mask: o,
2150
2150
  value: d,
@@ -2165,10 +2165,10 @@ function ir({ attributes: e = {}, rules: t = {}, onChange: n }) {
2165
2165
  });
2166
2166
  }
2167
2167
  // src/components/controls/CurrencyField/currencyfield.tsx
2168
- function ar({ attributes: e = {}, rules: t = {}, onChange: n }) {
2168
+ function or({ attributes: e = {}, rules: t = {}, onChange: n }) {
2169
2169
  let { id: r = "", prefix: i = "$", thousandSeparator: o = ",", decimalScale: s = 2, fixedDecimalScale: c = !0, label: l, MuiAttributes: u = {} } = e, { sx: d, ...f } = u, [p, m] = b(() => e.value ?? "", [e.value]), h = a(t);
2170
- return /* @__PURE__ */ H(sn, {
2171
- customInput: W,
2170
+ return /* @__PURE__ */ U(cn, {
2171
+ customInput: G,
2172
2172
  prefix: i,
2173
2173
  thousandSeparator: o,
2174
2174
  decimalScale: s,
@@ -2192,17 +2192,17 @@ function ar({ attributes: e = {}, rules: t = {}, onChange: n }) {
2192
2192
  });
2193
2193
  }
2194
2194
  // src/components/controls/Hyperlink/hyperlink.tsx
2195
- function or({ attributes: e = {}, rules: t = {} }) {
2195
+ function sr({ attributes: e = {}, rules: t = {} }) {
2196
2196
  let { label: n = "", value: r = "", MuiAttributes: i = {}, url: o = "", target: s = "_blank", displayText: c = "" } = e, l = a(t), u = o || r || "#", d = c || n || u, { sx: f, ...p } = i.link || {};
2197
- return /* @__PURE__ */ U(P, {
2197
+ return /* @__PURE__ */ W(N, {
2198
2198
  sx: { width: "100%" },
2199
2199
  ...i.container,
2200
- children: [n && c && /* @__PURE__ */ U(B, {
2200
+ children: [n && c && /* @__PURE__ */ W(V, {
2201
2201
  variant: "subtitle2",
2202
2202
  gutterBottom: !0,
2203
2203
  sx: { display: "flex" },
2204
2204
  ...i.displayText,
2205
- children: [n, l && /* @__PURE__ */ H(P, {
2205
+ children: [n, l && /* @__PURE__ */ U(N, {
2206
2206
  component: "span",
2207
2207
  sx: {
2208
2208
  color: "error.main",
@@ -2210,7 +2210,7 @@ function or({ attributes: e = {}, rules: t = {} }) {
2210
2210
  },
2211
2211
  children: "*"
2212
2212
  })]
2213
- }), /* @__PURE__ */ H(oe, {
2213
+ }), /* @__PURE__ */ U(se, {
2214
2214
  href: u,
2215
2215
  target: s,
2216
2216
  rel: s === "_blank" ? "noopener noreferrer" : void 0,
@@ -2226,89 +2226,89 @@ function or({ attributes: e = {}, rules: t = {} }) {
2226
2226
  });
2227
2227
  }
2228
2228
  // src/components/controls/index.ts
2229
- var sr = w(() => import("./datatable-lZIwHx6a.mjs")), cr = w(() => import("./bar-LVtZP6Ui.mjs")), lr = w(() => import("./line-cK6taoCA.mjs")), ur = w(() => import("./pie-DFO89j-z.mjs")), dr = w(() => import("./mixChart-CSq7pQqJ.mjs")), fr = w(() => import("./tagsinput-CTBGuv0M.mjs")), pr = w(() => import("./fileupload-D2fXyMIu.mjs")), mr = w(() => import("./keyvaluefield-Cd4NQf6d.mjs")), hr = w(() => import("./numberstepper-K_JfJJtg.mjs")), gr = w(() => import("./matrixfield-Jm9Yx0EP.mjs")), _r = w(() => import("./consentfield-CFm1IDa5.mjs")), vr = w(() => import("./colorpicker-9AUe21p1.mjs")), yr = w(() => import("./markdowneditor-6lJQ5cEn.mjs")), br = w(() => import("./addressfield-CpvOajVo.mjs")), xr = w(() => import("./cascadeselect-Cl4OHq-L.mjs")), Sr = w(() => import("./formwizard-CQ2z6fUX.mjs")), Cr = w(() => import("./summaryfield-DIQfJjjo.mjs")), wr = w(() => import("./geofield-CxVFA0og.mjs")), Tr = w(() => import("./richtexteditor-gmObNHZ7.mjs")), Er = w(() => import("./npsscale-LWe7yCxB.mjs")), Dr = w(() => import("./editabletable-B3Df4Jys.mjs")), Or = w(() => import("./intlphone-LGE-cB6X.mjs")), kr = w(() => import("./asyncautocomplete-mwra2KKJ.mjs")), Ar = w(() => import("./list-xPNiijgm.mjs")), jr = w(() => import("./multitextbox-gUt8BmfQ.mjs")), Mr = w(() => import("./lineitemlist-bmk7fEf9.mjs")), Nr = w(() => import("./formrepeater-BrYTYCzc.mjs")), Pr = w(() => import("./collection-DPJTrAiB.mjs")), Fr = w(() => import("./signature-HiL8FJ6C.mjs")), Ir = w(() => import("./group-CiohorzN.mjs")), Lr = w(() => import("./accordion-DB151BNT.mjs")), Rr = w(() => import("./tabs-DvPu-zDC.mjs")), zr = {
2230
- Typography: dt,
2231
- TextField: gt,
2232
- Table: sr,
2233
- DateTime: In,
2234
- DateTimePicker: Ln,
2235
- TimePicker: Rn,
2236
- Select: bn,
2237
- CheckBox: wn,
2238
- Switch: Dn,
2239
- Radio: Tn,
2240
- Stepper: w(() => import("./stepper-cpOj2wWz.mjs")),
2241
- Bar: cr,
2242
- Line: lr,
2243
- Pie: ur,
2244
- MixChart: dr,
2245
- Divider: An,
2246
- Chip: Vn,
2247
- ChipSelect: Gn,
2248
- Button: kn,
2249
- DateRangePicker: Bn,
2250
- Rating: Yn,
2251
- Slider: qn,
2252
- TagsInput: fr,
2253
- ToggleButtons: Qn,
2254
- PasswordField: tr,
2255
- OtpField: rr,
2256
- PhoneField: ir,
2257
- CurrencyField: ar,
2258
- FileUpload: pr,
2259
- Alert: Nn,
2260
- Computed: Mn,
2261
- KeyValueField: mr,
2262
- NumberStepper: hr,
2263
- MatrixField: gr,
2264
- ConsentField: _r,
2265
- ColorPicker: vr,
2266
- MarkdownEditor: yr,
2267
- AddressField: br,
2268
- CascadeSelect: xr,
2269
- FormWizard: Sr,
2270
- SummaryField: Cr,
2271
- GeoField: wr,
2272
- RichTextEditor: Tr,
2273
- NpsScale: Er,
2274
- EditableTable: Dr,
2275
- IntlPhone: Or,
2276
- AsyncAutocomplete: kr,
2277
- List: Ar,
2278
- NumberField: gn,
2279
- MultiTextbox: jr,
2280
- LineItemList: Mr,
2281
- FormRepeater: Nr,
2282
- Collection: Pr,
2283
- Signature: Fr,
2284
- Group: Ir,
2285
- Accordion: Lr,
2286
- Tabs: Rr,
2287
- AutoComplete: xn,
2229
+ var cr = w(() => import("./datatable-lZIwHx6a.mjs")), lr = w(() => import("./bar-LVtZP6Ui.mjs")), ur = w(() => import("./line-cK6taoCA.mjs")), dr = w(() => import("./pie-DFO89j-z.mjs")), fr = w(() => import("./mixChart-CSq7pQqJ.mjs")), pr = w(() => import("./tagsinput-CXmsu8K9.mjs")), mr = w(() => import("./fileupload-BLH0wrc2.mjs")), hr = w(() => import("./keyvaluefield-C-a0MGDM.mjs")), gr = w(() => import("./numberstepper-c0raw-fV.mjs")), _r = w(() => import("./matrixfield-DQHet7LH.mjs")), vr = w(() => import("./consentfield-D3eHFCZf.mjs")), yr = w(() => import("./colorpicker-TDpxW59g.mjs")), br = w(() => import("./markdowneditor-C3l0_zuX.mjs")), xr = w(() => import("./addressfield-BYisUY6y.mjs")), Sr = w(() => import("./cascadeselect-s-LY4P0l.mjs")), Cr = w(() => import("./formwizard-I6M99opg.mjs")), wr = w(() => import("./summaryfield-BN-NhzA6.mjs")), Tr = w(() => import("./geofield-CcbP9EtG.mjs")), Er = w(() => import("./richtexteditor-aF2uky8O.mjs")), Dr = w(() => import("./npsscale-BgU-fVZ4.mjs")), Or = w(() => import("./editabletable-BEnZM9qt.mjs")), kr = w(() => import("./intlphone-Bj5nEUMa.mjs")), Ar = w(() => import("./asyncautocomplete-D4oCW2B0.mjs")), jr = w(() => import("./list-CIFEhaTq.mjs")), Mr = w(() => import("./multitextbox-Bsr8mHo5.mjs")), Nr = w(() => import("./lineitemlist-bmk7fEf9.mjs")), Pr = w(() => import("./formrepeater-BvW1lZ2k.mjs")), Fr = w(() => import("./collection-DGq2rxDx.mjs")), Ir = w(() => import("./signature-HiL8FJ6C.mjs")), Lr = w(() => import("./group-BCGjUNL2.mjs")), Rr = w(() => import("./accordion-Cqu-4mCj.mjs")), zr = w(() => import("./tabs-DvIbQ1qg.mjs")), Br = {
2230
+ Typography: ft,
2231
+ TextField: _t,
2232
+ Table: cr,
2233
+ DateTime: Ln,
2234
+ DateTimePicker: Rn,
2235
+ TimePicker: zn,
2236
+ Select: xn,
2237
+ CheckBox: Tn,
2238
+ Switch: On,
2239
+ Radio: En,
2240
+ Stepper: w(() => import("./stepper-C8VaX9xu.mjs")),
2241
+ Bar: lr,
2242
+ Line: ur,
2243
+ Pie: dr,
2244
+ MixChart: fr,
2245
+ Divider: jn,
2246
+ Chip: Hn,
2247
+ ChipSelect: Kn,
2248
+ Button: An,
2249
+ DateRangePicker: Vn,
2250
+ Rating: Xn,
2251
+ Slider: Jn,
2252
+ TagsInput: pr,
2253
+ ToggleButtons: $n,
2254
+ PasswordField: nr,
2255
+ OtpField: ir,
2256
+ PhoneField: ar,
2257
+ CurrencyField: or,
2258
+ FileUpload: mr,
2259
+ Alert: Pn,
2260
+ Computed: Nn,
2261
+ KeyValueField: hr,
2262
+ NumberStepper: gr,
2263
+ MatrixField: _r,
2264
+ ConsentField: vr,
2265
+ ColorPicker: yr,
2266
+ MarkdownEditor: br,
2267
+ AddressField: xr,
2268
+ CascadeSelect: Sr,
2269
+ FormWizard: Cr,
2270
+ SummaryField: wr,
2271
+ GeoField: Tr,
2272
+ RichTextEditor: Er,
2273
+ NpsScale: Dr,
2274
+ EditableTable: Or,
2275
+ IntlPhone: kr,
2276
+ AsyncAutocomplete: Ar,
2277
+ List: jr,
2278
+ NumberField: _n,
2279
+ MultiTextbox: Mr,
2280
+ LineItemList: Nr,
2281
+ FormRepeater: Pr,
2282
+ Collection: Fr,
2283
+ Signature: Ir,
2284
+ Group: Lr,
2285
+ Accordion: Rr,
2286
+ Tabs: zr,
2287
+ AutoComplete: Sn,
2288
2288
  ImgList: w(() => import("./imagelist-CNe1Dp_M.mjs")),
2289
- Hyperlink: or,
2289
+ Hyperlink: sr,
2290
2290
  LocationField: w(() => import("./locationfield-SPonkbMU.mjs"))
2291
- }, Br = /* @__PURE__ */ new Map();
2292
- function Vr(e, t) {
2293
- e && t && Br.set(e, t);
2294
- }
2295
- function Hr(e) {
2296
- Object.entries(e || {}).forEach(([e, t]) => Vr(e, t));
2291
+ }, Vr = /* @__PURE__ */ new Map();
2292
+ function Hr(e, t) {
2293
+ e && t && Vr.set(e, t);
2297
2294
  }
2298
2295
  function Ur(e) {
2299
- Br.delete(e);
2296
+ Object.entries(e || {}).forEach(([e, t]) => Hr(e, t));
2300
2297
  }
2301
2298
  function Wr(e) {
2302
- return e ? Br.get(e) : void 0;
2299
+ Vr.delete(e);
2303
2300
  }
2304
2301
  function Gr(e) {
2305
- return !!e && Br.has(e);
2302
+ return e ? Vr.get(e) : void 0;
2303
+ }
2304
+ function Kr(e) {
2305
+ return !!e && Vr.has(e);
2306
2306
  }
2307
- function Kr() {
2308
- return Array.from(Br.keys());
2307
+ function qr() {
2308
+ return Array.from(Vr.keys());
2309
2309
  }
2310
2310
  // src/components/DynamicComponent.tsx
2311
- var qr = class extends S.Component {
2311
+ var Jr = class extends S.Component {
2312
2312
  constructor(e) {
2313
2313
  super(e), this.state = { failed: !1 };
2314
2314
  }
@@ -2316,7 +2316,7 @@ var qr = class extends S.Component {
2316
2316
  return { failed: !0 };
2317
2317
  }
2318
2318
  render() {
2319
- return this.state.failed ? /* @__PURE__ */ U("div", {
2319
+ return this.state.failed ? /* @__PURE__ */ W("div", {
2320
2320
  style: {
2321
2321
  padding: "8px 12px",
2322
2322
  fontSize: 13,
@@ -2327,36 +2327,36 @@ var qr = class extends S.Component {
2327
2327
  },
2328
2328
  children: [
2329
2329
  "This field couldn’t be displayed. If it’s a chart or data grid, install its optional peer (",
2330
- /* @__PURE__ */ H("code", { children: "@mui/x-charts" }),
2330
+ /* @__PURE__ */ U("code", { children: "@mui/x-charts" }),
2331
2331
  " / ",
2332
- /* @__PURE__ */ H("code", { children: "@mui/x-data-grid" }),
2332
+ /* @__PURE__ */ U("code", { children: "@mui/x-data-grid" }),
2333
2333
  ")."
2334
2334
  ]
2335
2335
  }) : this.props.children;
2336
2336
  }
2337
- }, Jr = () => /* @__PURE__ */ H("div", {
2337
+ }, Yr = () => /* @__PURE__ */ U("div", {
2338
2338
  style: { minHeight: 40 },
2339
2339
  "aria-busy": "true"
2340
2340
  });
2341
- function Yr(e) {
2342
- let { map: t, type: n } = e, r = Wr(n), i = t ? zr[t] : void 0, a = r || i;
2343
- return a ? /* @__PURE__ */ H(qr, { children: /* @__PURE__ */ H(C, {
2344
- fallback: /* @__PURE__ */ H(Jr, {}),
2345
- children: /* @__PURE__ */ H(a, { ...e })
2346
- }) }) : /* @__PURE__ */ H("div", {});
2341
+ function Xr(e) {
2342
+ let { map: t, type: n } = e, r = Gr(n), i = t ? Br[t] : void 0, a = r || i;
2343
+ return a ? /* @__PURE__ */ U(Jr, { children: /* @__PURE__ */ U(C, {
2344
+ fallback: /* @__PURE__ */ U(Yr, {}),
2345
+ children: /* @__PURE__ */ U(a, { ...e })
2346
+ }) }) : /* @__PURE__ */ U("div", {});
2347
2347
  }
2348
2348
  // src/util/rules.ts
2349
- var Xr = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0, Q = (e) => {
2349
+ var Zr = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0, Q = (e) => {
2350
2350
  let t = typeof e == "number" ? e : parseFloat(String(e));
2351
2351
  return Number.isFinite(t) ? t : NaN;
2352
- }, Zr = (e, t) => {
2352
+ }, Qr = (e, t) => {
2353
2353
  if (e === t) return !0;
2354
2354
  let n = (e) => e == null || typeof e != "object" && typeof e != "function";
2355
2355
  return n(e) && n(t) && String(e) === String(t);
2356
- }, Qr = (e, t, n) => {
2356
+ }, $r = (e, t, n) => {
2357
2357
  switch (t) {
2358
- case "eq": return Zr(e, n);
2359
- case "neq": return !Zr(e, n);
2358
+ case "eq": return Qr(e, n);
2359
+ case "neq": return !Qr(e, n);
2360
2360
  case "gt": return Q(e) > Q(n);
2361
2361
  case "gte": return Q(e) >= Q(n);
2362
2362
  case "lt": return Q(e) < Q(n);
@@ -2366,25 +2366,25 @@ var Xr = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || t
2366
2366
  case "contains": return Array.isArray(e) ? e.map(String).includes(String(n)) : String(e ?? "").includes(String(n));
2367
2367
  case "startsWith": return String(e ?? "").startsWith(String(n));
2368
2368
  case "endsWith": return String(e ?? "").endsWith(String(n));
2369
- case "empty": return Xr(e);
2370
- case "notEmpty": return !Xr(e);
2371
- case "truthy": return !!e && !Xr(e);
2372
- case "falsy": return !e || Xr(e);
2369
+ case "empty": return Zr(e);
2370
+ case "notEmpty": return !Zr(e);
2371
+ case "truthy": return !!e && !Zr(e);
2372
+ case "falsy": return !e || Zr(e);
2373
2373
  default: return !1;
2374
2374
  }
2375
- }, $r = (e) => !!e && (Array.isArray(e.all) || Array.isArray(e.any) || Array.isArray(e.none));
2376
- function ei(e, t) {
2375
+ }, ei = (e) => !!e && (Array.isArray(e.all) || Array.isArray(e.any) || Array.isArray(e.none));
2376
+ function ti(e, t) {
2377
2377
  if (!e) return !0;
2378
- if ($r(e)) {
2379
- let { all: n, any: r, none: i } = e, a = !n || n.every((e) => ei(e, t)), o = !r || r.some((e) => ei(e, t)), s = !i || !i.some((e) => ei(e, t));
2378
+ if (ei(e)) {
2379
+ let { all: n, any: r, none: i } = e, a = !n || n.every((e) => ti(e, t)), o = !r || r.some((e) => ti(e, t)), s = !i || !i.some((e) => ti(e, t));
2380
2380
  return a && o && s;
2381
2381
  }
2382
2382
  let n = e;
2383
2383
  if (!n.field) return !0;
2384
2384
  let r = t[n.field];
2385
- return Qr(r, n.op ?? (n.value === void 0 ? "truthy" : "eq"), n.value);
2385
+ return $r(r, n.op ?? (n.value === void 0 ? "truthy" : "eq"), n.value);
2386
2386
  }
2387
- var ti = {
2387
+ var ni = {
2388
2388
  SUM: (e) => e.reduce((e, t) => e + t, 0),
2389
2389
  AVG: (e) => e.length ? e.reduce((e, t) => e + t, 0) / e.length : 0,
2390
2390
  MIN: (e) => e.length ? Math.min(...e) : 0,
@@ -2396,7 +2396,7 @@ var ti = {
2396
2396
  ABS: (e) => Math.abs(e[0] || 0),
2397
2397
  FLOOR: (e) => Math.floor(e[0] || 0),
2398
2398
  CEIL: (e) => Math.ceil(e[0] || 0)
2399
- }, ni = (e) => {
2399
+ }, ri = (e) => {
2400
2400
  let t = [], n = 0;
2401
2401
  for (; n < e.length;) {
2402
2402
  let r = e[n];
@@ -2435,11 +2435,11 @@ var ti = {
2435
2435
  }
2436
2436
  return t;
2437
2437
  };
2438
- function ri(e, t) {
2438
+ function ii(e, t) {
2439
2439
  if (typeof e != "string" || e.trim() === "") return "";
2440
2440
  let n;
2441
2441
  try {
2442
- n = ni(e);
2442
+ n = ri(e);
2443
2443
  } catch {
2444
2444
  return "";
2445
2445
  }
@@ -2483,7 +2483,7 @@ function ri(e, t) {
2483
2483
  if (i() && i().t !== "rp") for (t.push(s()); i() && i().t === "comma";) a(), t.push(s());
2484
2484
  if (!i() || i().t !== "rp") throw Error("Missing ) in call");
2485
2485
  a();
2486
- let n = ti[e.v.toUpperCase()];
2486
+ let n = ni[e.v.toUpperCase()];
2487
2487
  if (!n) throw Error(`Unknown function ${e.v}`);
2488
2488
  return n(t);
2489
2489
  }
@@ -2498,14 +2498,14 @@ function ri(e, t) {
2498
2498
  return "";
2499
2499
  }
2500
2500
  }
2501
- var ii = {
2501
+ var ai = {
2502
2502
  equalsField: (e, t) => e === t,
2503
2503
  notEqualsField: (e, t) => e !== t,
2504
2504
  gtField: (e, t) => Q(e) > Q(t),
2505
2505
  gteField: (e, t) => Q(e) >= Q(t),
2506
2506
  ltField: (e, t) => Q(e) < Q(t),
2507
2507
  lteField: (e, t) => Q(e) <= Q(t)
2508
- }, ai = /* @__PURE__ */ new Set([
2508
+ }, oi = /* @__PURE__ */ new Set([
2509
2509
  "typography",
2510
2510
  "divider",
2511
2511
  "alert",
@@ -2514,18 +2514,18 @@ var ii = {
2514
2514
  "hyperlink",
2515
2515
  "button",
2516
2516
  "summary"
2517
- ]), oi = (e, t = 2) => !e || t === 1 ? e : /(s|x|z|ch|sh)$/i.test(e) ? `${e}es` : /[^aeiou]y$/i.test(e) ? `${e.slice(0, -1)}ies` : `${e}s`, si = (e) => e.itemLabel || e.title || "Item", ci = (e) => e.title || oi(si(e)), li = (e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object") : [], ui = (e) => e?.id || e?.props?.id, di = (e = [], t) => {
2517
+ ]), si = (e, t = 2) => !e || t === 1 ? e : /(s|x|z|ch|sh)$/i.test(e) ? `${e}es` : /[^aeiou]y$/i.test(e) ? `${e.slice(0, -1)}ies` : `${e}s`, ci = (e) => e.itemLabel || e.title || "Item", li = (e) => e.title || si(ci(e)), ui = (e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object") : [], di = (e) => e?.id || e?.props?.id, fi = (e = [], t) => {
2518
2518
  for (let n of e) {
2519
- if (ui(n) === t) return n;
2519
+ if (di(n) === t) return n;
2520
2520
  if (Array.isArray(n?.subforms)) for (let e of n.subforms) {
2521
- let n = di(e.data || [], t);
2521
+ let n = fi(e.data || [], t);
2522
2522
  if (n) return n;
2523
2523
  }
2524
2524
  }
2525
- }, fi = (e, t) => {
2525
+ }, pi = (e, t) => {
2526
2526
  let n = e.find((e) => (e && typeof e == "object" ? e.value : e) === t);
2527
2527
  return String(n == null ? t : typeof n == "object" ? n.label ?? n.title ?? n.value : n);
2528
- }, pi = (e) => e && typeof e == "object" && typeof e.toDate == "function" && typeof e.isValid == "function", mi = {
2528
+ }, mi = (e) => e && typeof e == "object" && typeof e.toDate == "function" && typeof e.isValid == "function", hi = {
2529
2529
  datetime: {
2530
2530
  month: "short",
2531
2531
  day: "numeric",
@@ -2542,8 +2542,8 @@ var ii = {
2542
2542
  hour: "numeric",
2543
2543
  minute: "2-digit"
2544
2544
  }
2545
- }, hi = (e) => {
2546
- if (pi(e)) return e.isValid() ? e.toDate() : null;
2545
+ }, gi = (e) => {
2546
+ if (mi(e)) return e.isValid() ? e.toDate() : null;
2547
2547
  if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : e;
2548
2548
  if (typeof e == "string") {
2549
2549
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
@@ -2552,34 +2552,34 @@ var ii = {
2552
2552
  return Number.isNaN(n) ? null : new Date(n);
2553
2553
  }
2554
2554
  return null;
2555
- }, gi = (e) => {
2555
+ }, _i = (e) => {
2556
2556
  let t = e?.props || {};
2557
2557
  return String(t.MuiAttributes?.label || t.MuiBoxAttributes?.label || t.MuiFCLAttributes?.label || t.MuiFLabel || t.label || "");
2558
- }, _i = (e, t) => {
2558
+ }, vi = (e, t) => {
2559
2559
  if (t == null || t === "") return "";
2560
2560
  if (typeof t == "boolean") return t ? "Yes" : "No";
2561
- let n = mi[e?.type || ""];
2562
- if (n || pi(t) || t instanceof Date) {
2563
- let e = hi(t);
2564
- if (e) return e.toLocaleString(void 0, n || mi.datetime);
2561
+ let n = hi[e?.type || ""];
2562
+ if (n || mi(t) || t instanceof Date) {
2563
+ let e = gi(t);
2564
+ if (e) return e.toLocaleString(void 0, n || hi.datetime);
2565
2565
  if (typeof t != "string") return "";
2566
2566
  }
2567
2567
  let r = e?.props || {}, i = e?.type === "radio" ? r.MuiFCLabels : r.options;
2568
2568
  if (Array.isArray(i) && i.length) {
2569
2569
  let e = Array.isArray(t) ? t : [t], n = r.separator ?? ";";
2570
- return !Array.isArray(t) && typeof t == "string" && r.MuiAttributes?.multiple && (e = t.split(n)), e.filter((e) => e !== "" && e != null).map((e) => fi(i, e)).join(", ");
2570
+ return !Array.isArray(t) && typeof t == "string" && r.MuiAttributes?.multiple && (e = t.split(n)), e.filter((e) => e !== "" && e != null).map((e) => pi(i, e)).join(", ");
2571
2571
  }
2572
2572
  return Array.isArray(t) ? t.map((e) => e && typeof e == "object" ? "" : String(e)).filter(Boolean).join(", ") : typeof t == "object" ? Object.values(t).filter((e) => e !== "" && e != null && typeof e != "object").join(", ") : String(t);
2573
- }, vi = (e) => e.replace(/\(\s*\)|\[\s*\]/g, "").replace(/\s+/g, " ").replace(/([,·|•])(\s*[,·|•])+/g, "$1").replace(/^[\s,·|•]+|[\s,·|•]+$/g, "").replace(/\s+([,])/g, "$1").trim(), yi = (e, t, n = []) => {
2573
+ }, yi = (e) => e.replace(/\(\s*\)|\[\s*\]/g, "").replace(/\s+/g, " ").replace(/([,·|•])(\s*[,·|•])+/g, "$1").replace(/^[\s,·|•]+|[\s,·|•]+$/g, "").replace(/\s+([,])/g, "$1").trim(), bi = (e, t, n = []) => {
2574
2574
  if (e == null || !t) return "";
2575
2575
  if (typeof e == "function") try {
2576
2576
  return String(e(t) ?? "");
2577
2577
  } catch {
2578
2578
  return "";
2579
2579
  }
2580
- let r = (e) => _i(di(n, e), t[e]);
2581
- return Array.isArray(e) ? e.map((e) => r(e)).filter(Boolean).join(" · ") : e.includes("{") ? vi(e.replace(/\{([^}]+)\}/g, (e, t) => r(t.trim()))) : r(e);
2582
- }, bi = (e = []) => e.flatMap((e) => [...!ai.has(e?.type || "") && ui(e) ? [e] : [], ...Array.isArray(e?.subforms) ? e.subforms.flatMap((e) => bi(e.data || [])) : []]), xi = (e) => !e || typeof e == "function" ? [] : Array.isArray(e) ? e : e.includes("{") ? Array.from(e.matchAll(/\{([^}]+)\}/g), (e) => e[1].trim()) : [e], Si = {
2580
+ let r = (e) => vi(fi(n, e), t[e]);
2581
+ return Array.isArray(e) ? e.map((e) => r(e)).filter(Boolean).join(" · ") : e.includes("{") ? yi(e.replace(/\{([^}]+)\}/g, (e, t) => r(t.trim()))) : r(e);
2582
+ }, xi = (e = []) => e.flatMap((e) => [...!oi.has(e?.type || "") && di(e) ? [e] : [], ...Array.isArray(e?.subforms) ? e.subforms.flatMap((e) => xi(e.data || [])) : []]), Si = (e) => !e || typeof e == "function" ? [] : Array.isArray(e) ? e : e.includes("{") ? Array.from(e.matchAll(/\{([^}]+)\}/g), (e) => e[1].trim()) : [e], Ci = {
2583
2583
  textfield: "notes",
2584
2584
  multitextbox: "notes",
2585
2585
  markdown: "notes",
@@ -2616,43 +2616,43 @@ var ii = {
2616
2616
  colorpicker: "palette",
2617
2617
  fileupload: "attach_file",
2618
2618
  signature: "draw"
2619
- }, Ci = (e) => Si[e?.type || ""] || "label", wi = (e, t, n) => {
2620
- let r = t.fields || [], i = t.display || {}, a = i.title ? yi(i.title, e, r) : yi(Ti(t)[0], e, r), o = i.subtitle ? yi(i.subtitle, e, r) : "", s = Ei(t).map((t) => ({
2619
+ }, wi = (e) => Ci[e?.type || ""] || "label", Ti = (e, t, n) => {
2620
+ let r = t.fields || [], i = t.display || {}, a = i.title ? bi(i.title, e, r) : bi(Ei(t)[0], e, r), o = i.subtitle ? bi(i.subtitle, e, r) : "", s = Di(t).map((t) => ({
2621
2621
  ...t,
2622
- value: _i(di(r, t.id), e[t.id])
2622
+ value: vi(fi(r, t.id), e[t.id])
2623
2623
  })).filter((e) => e.value);
2624
2624
  return {
2625
- title: a || `${si(t)} ${n + 1}`,
2625
+ title: a || `${ci(t)} ${n + 1}`,
2626
2626
  rawTitle: a,
2627
2627
  subtitle: o,
2628
2628
  details: s
2629
2629
  };
2630
- }, Ti = (e) => {
2631
- let t = e.display || {};
2632
- if (t.title) return xi(t.title);
2633
- let n = bi(e.fields || [])[0];
2634
- return n ? [ui(n)] : [];
2635
2630
  }, Ei = (e) => {
2631
+ let t = e.display || {};
2632
+ if (t.title) return Si(t.title);
2633
+ let n = xi(e.fields || [])[0];
2634
+ return n ? [di(n)] : [];
2635
+ }, Di = (e) => {
2636
2636
  let t = e.fields || [], n = e.display || {}, r = (e, t, n = {}) => ({
2637
2637
  id: t,
2638
- label: n.label || gi(e) || t,
2639
- icon: n.icon || Ci(e),
2638
+ label: n.label || _i(e) || t,
2639
+ icon: n.icon || wi(e),
2640
2640
  ...n.span ? { span: n.span } : {}
2641
2641
  });
2642
2642
  if (n.details === !1) return [];
2643
- if (Array.isArray(n.details)) return n.details.map((e) => typeof e == "string" ? { field: e } : e).filter((e) => e && e.field).map((e) => r(di(t, e.field), e.field, e));
2644
- let i = /* @__PURE__ */ new Set([...Ti(e), ...xi(n.subtitle)]), a = typeof n.badge == "string" ? n.badge : n.badge?.field;
2645
- return a && i.add(a), bi(t).filter((e) => !i.has(ui(e))).map((e) => r(e, ui(e)));
2646
- }, Di = (e, t) => {
2643
+ if (Array.isArray(n.details)) return n.details.map((e) => typeof e == "string" ? { field: e } : e).filter((e) => e && e.field).map((e) => r(fi(t, e.field), e.field, e));
2644
+ let i = /* @__PURE__ */ new Set([...Ei(e), ...Si(n.subtitle)]), a = typeof n.badge == "string" ? n.badge : n.badge?.field;
2645
+ return a && i.add(a), xi(t).filter((e) => !i.has(di(e))).map((e) => r(e, di(e)));
2646
+ }, Oi = (e, t) => {
2647
2647
  let n = (t.collections || []).map((t) => {
2648
- let n = li(e?.[t.id]).length;
2649
- return n ? `${n} ${oi(si(t), n).toLowerCase()}` : "";
2648
+ let n = ui(e?.[t.id]).length;
2649
+ return n ? `${n} ${si(ci(t), n).toLowerCase()}` : "";
2650
2650
  }).filter(Boolean);
2651
2651
  return n.length <= 1 ? n.join("") : `${n.slice(0, -1).join(", ")} and ${n[n.length - 1]}`;
2652
- }, Oi = (e, t, n = {}, r = []) => {
2653
- let i = li(e), a = [], o = si(t).toLowerCase(), s = Math.max(Number(t.min) || 0, +!!n.required);
2652
+ }, ki = (e, t, n = {}, r = []) => {
2653
+ let i = ui(e), a = [], o = ci(t).toLowerCase(), s = Math.max(Number(t.min) || 0, +!!n.required);
2654
2654
  if (i.length < s) {
2655
- let e = n.required && i.length === 0 && n.requiredMessage ? n.requiredMessage : t.minMessage || `Add at least ${s} ${oi(o, s)}`;
2655
+ let e = n.required && i.length === 0 && n.requiredMessage ? n.requiredMessage : t.minMessage || `Add at least ${s} ${si(o, s)}`;
2656
2656
  a.push({
2657
2657
  path: r,
2658
2658
  message: e
@@ -2660,34 +2660,34 @@ var ii = {
2660
2660
  }
2661
2661
  return t.max != null && i.length > Number(t.max) && a.push({
2662
2662
  path: r,
2663
- message: t.maxMessage || `No more than ${t.max} ${oi(o, Number(t.max))} allowed`
2663
+ message: t.maxMessage || `No more than ${t.max} ${si(o, Number(t.max))} allowed`
2664
2664
  }), i.forEach((e, n) => {
2665
2665
  (t.collections || []).forEach((t) => {
2666
- a.push(...Oi(e[t.id], t, {}, [
2666
+ a.push(...ki(e[t.id], t, {}, [
2667
2667
  ...r,
2668
2668
  n,
2669
2669
  t.id
2670
2670
  ]));
2671
2671
  });
2672
2672
  }), a;
2673
- }, ki = (e, t, n = "") => {
2673
+ }, Ai = (e, t, n = "") => {
2674
2674
  let r = [];
2675
- return li(e).forEach((e, i) => {
2676
- let a = `${n}${si(t)} ${i + 1}`, { title: o, subtitle: s, details: c } = wi(e, t, i), l = [[o, s].filter(Boolean).join(" — "), ...c.map((e) => `${e.label}: ${e.value}`)];
2675
+ return ui(e).forEach((e, i) => {
2676
+ let a = `${n}${ci(t)} ${i + 1}`, { title: o, subtitle: s, details: c } = Ti(e, t, i), l = [[o, s].filter(Boolean).join(" — "), ...c.map((e) => `${e.label}: ${e.value}`)];
2677
2677
  r.push({
2678
2678
  label: a,
2679
2679
  value: l.join("\n")
2680
2680
  }), (t.collections || []).forEach((t) => {
2681
- r.push(...ki(e[t.id], t, `${a} › `));
2681
+ r.push(...Ai(e[t.id], t, `${a} › `));
2682
2682
  });
2683
2683
  }), r;
2684
- }, Ai = { MUI: { map: ut } }, $ = {}, ji = (e, t) => ei(e, t), Mi = (e) => e ? $[e] : $, Ni = (e) => {
2684
+ }, ji = { MUI: { map: dt } }, $ = {}, Mi = (e, t) => ti(e, t), Ni = (e) => e ? $[e] : $, Pi = (e) => {
2685
2685
  let t = Object.keys($);
2686
2686
  e ? delete $[e] : t.forEach((e) => delete $[e]);
2687
- }, Pi = (e) => ({
2687
+ }, Fi = (e) => ({
2688
2688
  getValues: () => ({ ...$[e] || {} }),
2689
- clear: () => Ni(e)
2690
- }), Fi = (e, t) => !e?.visibleWhen || ji(e.visibleWhen, t), Ii = /* @__PURE__ */ new Set([
2689
+ clear: () => Pi(e)
2690
+ }), Ii = (e, t) => !e?.visibleWhen || Mi(e.visibleWhen, t), Li = /* @__PURE__ */ new Set([
2691
2691
  "typography",
2692
2692
  "divider",
2693
2693
  "alert",
@@ -2696,7 +2696,7 @@ var ii = {
2696
2696
  "hyperlink",
2697
2697
  "button",
2698
2698
  "summary"
2699
- ]), Li = (e, t) => {
2699
+ ]), Ri = (e, t) => {
2700
2700
  if (!e || typeof e != "object") return e;
2701
2701
  let n = { ...e };
2702
2702
  typeof n.text == "string" && (n.text = t(n.text)), typeof n.label == "string" && (n.label = t(n.label)), typeof n.MuiFLabel == "string" && (n.MuiFLabel = t(n.MuiFLabel)), [
@@ -2714,16 +2714,16 @@ var ii = {
2714
2714
  label: t(e.label)
2715
2715
  } : e);
2716
2716
  return Array.isArray(n.options) && (n.options = r(n.options)), Array.isArray(n.MuiFCLabels) && (n.MuiFCLabels = r(n.MuiFCLabels)), n;
2717
- }, Ri = (e) => {
2717
+ }, zi = (e) => {
2718
2718
  let t = e?.props || {};
2719
2719
  return t.MuiAttributes?.label || t.MuiBoxAttributes?.label || t.MuiFLabel || t.label || t.MuiFCLAttributes?.label || e?.id || t.id || "";
2720
- }, zi = (e, t) => {
2720
+ }, Bi = (e, t) => {
2721
2721
  let n = (e || []).find((e) => (typeof e == "string" ? e : e?.value) === t);
2722
2722
  return n ? typeof n == "string" ? n : n.label ?? n.title ?? n.value : String(t);
2723
- }, Bi = (e, t, n) => {
2723
+ }, Vi = (e, t, n) => {
2724
2724
  if (t == null || t === "") return "";
2725
2725
  let r = e?.type, i = e?.props || {}, a = i.options;
2726
- if (e?.optionsMap && e?.dependsOn && (a = e.optionsMap[n[e.dependsOn]] || []), r === "radio" && (a = i.MuiFCLabels), Array.isArray(a) && a.length) return Array.isArray(t) ? t.map((e) => zi(a, e)).join(", ") : typeof t == "string" && /[;,]/.test(t) ? t.split(/[;,]/).map((e) => zi(a, e.trim())).filter(Boolean).join(", ") : zi(a, t);
2726
+ if (e?.optionsMap && e?.dependsOn && (a = e.optionsMap[n[e.dependsOn]] || []), r === "radio" && (a = i.MuiFCLabels), Array.isArray(a) && a.length) return Array.isArray(t) ? t.map((e) => Bi(a, e)).join(", ") : typeof t == "string" && /[;,]/.test(t) ? t.split(/[;,]/).map((e) => Bi(a, e.trim())).filter(Boolean).join(", ") : Bi(a, t);
2727
2727
  if (typeof t == "boolean") return t ? "Yes" : "No";
2728
2728
  if (Array.isArray(t)) return t.filter((e) => e !== "" && e != null).join(", ");
2729
2729
  if (typeof t == "object") try {
@@ -2733,21 +2733,21 @@ var ii = {
2733
2733
  return String(t);
2734
2734
  }
2735
2735
  return String(t);
2736
- }, Vi = (e, t) => {
2736
+ }, Hi = (e, t) => {
2737
2737
  let n = [], r = (e) => {
2738
2738
  (e || []).forEach((e) => {
2739
- if (Ii.has(e?.type) || e?.visibleWhen && !ji(e.visibleWhen, t)) return;
2739
+ if (Li.has(e?.type) || e?.visibleWhen && !Mi(e.visibleWhen, t)) return;
2740
2740
  let i = e?.id || e?.props?.id;
2741
2741
  if (e?.type === "collection") {
2742
- i && n.push(...ki(t[i], {
2742
+ i && n.push(...Ai(t[i], {
2743
2743
  ...e.props || {},
2744
2744
  id: i
2745
2745
  }));
2746
2746
  return;
2747
2747
  }
2748
- let a = i ? Bi(e, t[i], t) : "";
2748
+ let a = i ? Vi(e, t[i], t) : "";
2749
2749
  if (a !== "" && n.push({
2750
- label: Ri(e),
2750
+ label: zi(e),
2751
2751
  value: a
2752
2752
  }), Array.isArray(e?.subforms)) {
2753
2753
  let n = i ? t[i] : void 0;
@@ -2758,21 +2758,21 @@ var ii = {
2758
2758
  });
2759
2759
  };
2760
2760
  return r(e), n;
2761
- }, Hi = (e) => String(e).replace(/[&<>"']/g, (e) => ({
2761
+ }, Ui = (e) => String(e).replace(/[&<>"']/g, (e) => ({
2762
2762
  "&": "&amp;",
2763
2763
  "<": "&lt;",
2764
2764
  ">": "&gt;",
2765
2765
  "\"": "&quot;",
2766
2766
  "'": "&#39;"
2767
- })[e]), Ui = (e, t) => {
2767
+ })[e]), Wi = (e, t) => {
2768
2768
  if (typeof document > "u") return;
2769
- let n = e.length ? e.map((e) => `<div class="row"><div class="lbl">${Hi(e.label)}</div><div class="val">${Hi(e.value)}</div></div>`).join("") : "<p class=\"empty\">No values entered.</p>", r = `<!doctype html><html><head><meta charset="utf-8"><title>${Hi(t || "Form")}</title>
2769
+ let n = e.length ? e.map((e) => `<div class="row"><div class="lbl">${Ui(e.label)}</div><div class="val">${Ui(e.value)}</div></div>`).join("") : "<p class=\"empty\">No values entered.</p>", r = `<!doctype html><html><head><meta charset="utf-8"><title>${Ui(t || "Form")}</title>
2770
2770
  <style>
2771
2771
  *{box-sizing:border-box} body{font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#0f172a;margin:32px}
2772
2772
  h1{font-size:18px;margin:0 0 16px} .row{display:grid;grid-template-columns:34% 1fr;gap:16px;padding:9px 0;border-bottom:1px solid #e2e8f0}
2773
2773
  .lbl{color:#64748b;font-weight:500;font-size:13px} .val{color:#0f172a;font-weight:600;font-size:13px;white-space:pre-wrap;word-break:break-word}
2774
2774
  .empty{color:#64748b} @media print{body{margin:12mm}}
2775
- </style></head><body>${t ? `<h1>${Hi(t)}</h1>` : ""}${n}</body></html>`, i = document.createElement("iframe");
2775
+ </style></head><body>${t ? `<h1>${Ui(t)}</h1>` : ""}${n}</body></html>`, i = document.createElement("iframe");
2776
2776
  i.setAttribute("aria-hidden", "true"), i.style.cssText = "position:fixed;right:0;bottom:0;width:0;height:0;border:0;", document.body.appendChild(i);
2777
2777
  let a = () => {
2778
2778
  setTimeout(() => {
@@ -2787,7 +2787,7 @@ var ii = {
2787
2787
  } catch {}
2788
2788
  a();
2789
2789
  }, 50) : a()) : a();
2790
- }, Wi = async (e, t = {}) => {
2790
+ }, Gi = async (e, t = {}) => {
2791
2791
  let n, r;
2792
2792
  try {
2793
2793
  let e = await import("pdfmake/build/pdfmake"), t = await import("pdfmake/build/vfs_fonts");
@@ -2854,22 +2854,22 @@ var ii = {
2854
2854
  ]
2855
2855
  }, a = t.filename || `${(t.title || "form").replace(/\s+/g, "-").toLowerCase()}.pdf`;
2856
2856
  n.createPdf(i).download(a);
2857
- }, Gi = (e, t, n = "This field is required") => {
2857
+ }, Ki = (e, t, n = "This field is required") => {
2858
2858
  let r = [...e?.rules?.validation || []], i = r.some((e) => s.includes(e.rule));
2859
- return e?.requiredWhen && !i && ji(e.requiredWhen, t) && r.push({
2859
+ return e?.requiredWhen && !i && Mi(e.requiredWhen, t) && r.push({
2860
2860
  rule: "mandatory",
2861
2861
  message: e.requiredMessage || n
2862
2862
  }), r;
2863
- }, Ki = (e, t, n, i, a) => {
2864
- let o = $[t] || {}, c = new Set((e || []).filter((e) => !Fi(e, o)).map((e) => e?.id || e?.props?.id).filter(Boolean)), l = (e || []).reduce((e, t) => {
2865
- if (!Fi(t, o)) return e;
2866
- let i = Gi(t, o, n);
2863
+ }, qi = (e, t, n, i, a) => {
2864
+ let o = $[t] || {}, c = new Set((e || []).filter((e) => !Ii(e, o)).map((e) => e?.id || e?.props?.id).filter(Boolean)), l = (e || []).reduce((e, t) => {
2865
+ if (!Ii(t, o)) return e;
2866
+ let i = Ki(t, o, n);
2867
2867
  if (i.length === 0) return e;
2868
2868
  let a = t?.id || t?.props?.id;
2869
2869
  if (!a) return e;
2870
2870
  let c = o[a], l = c == null ? "" : c.toString(), u = i.some((e) => s.includes(e.rule));
2871
2871
  return i.forEach((t) => {
2872
- let n = ii[t.rule];
2872
+ let n = ai[t.rule];
2873
2873
  if (n) {
2874
2874
  if (!l && !u) return;
2875
2875
  let r = o[t.field ?? t.value], i = r == null ? "" : r.toString();
@@ -2889,10 +2889,10 @@ var ii = {
2889
2889
  }), e;
2890
2890
  }, []);
2891
2891
  if ((e || []).forEach((e) => {
2892
- if (e?.type !== "collection" || !Fi(e, o)) return;
2892
+ if (e?.type !== "collection" || !Ii(e, o)) return;
2893
2893
  let t = e?.id || e?.props?.id;
2894
2894
  if (!t || l.some((e) => e.id === t)) return;
2895
- let n = Oi(o[t], {
2895
+ let n = ki(o[t], {
2896
2896
  ...e.props || {},
2897
2897
  id: t
2898
2898
  });
@@ -2928,7 +2928,7 @@ var ii = {
2928
2928
  message: "Still validating…"
2929
2929
  }));
2930
2930
  }), l;
2931
- }, qi = [
2931
+ }, Ji = [
2932
2932
  "primary",
2933
2933
  "secondary",
2934
2934
  "success",
@@ -2936,33 +2936,33 @@ var ii = {
2936
2936
  "warning",
2937
2937
  "info",
2938
2938
  "inherit"
2939
- ], Ji = {
2939
+ ], Yi = {
2940
2940
  required: "This field is required",
2941
2941
  errorSummary: "{n} field(s) need attention"
2942
- }, Yi = (e) => {
2942
+ }, Xi = (e) => {
2943
2943
  try {
2944
2944
  return typeof window > "u" ? null : e === "session" ? window.sessionStorage : window.localStorage;
2945
2945
  } catch {
2946
2946
  return null;
2947
2947
  }
2948
- }, Xi = {}, Zi = /* @__PURE__ */ new Set([
2948
+ }, Zi = {}, Qi = /* @__PURE__ */ new Set([
2949
2949
  "tabs",
2950
2950
  "group",
2951
2951
  "accordion",
2952
2952
  "stepper"
2953
- ]), Qi = /* @__PURE__ */ new Set(["summary"]), $i = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = 0, na = (e) => {
2954
- let t = $i.get(e);
2953
+ ]), $i = /* @__PURE__ */ new Set(["summary"]), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), na = 0, ra = (e) => {
2954
+ let t = ea.get(e);
2955
2955
  if (t === void 0) {
2956
2956
  try {
2957
- t = JSON.stringify(e, (e, t) => typeof t == "function" ? (ea.has(t) || ea.set(t, ++ta), `ƒ${ea.get(t)}`) : t);
2957
+ t = JSON.stringify(e, (e, t) => typeof t == "function" ? (ta.has(t) || ta.set(t, ++na), `ƒ${ta.get(t)}`) : t);
2958
2958
  } catch {
2959
- t = `!${++ta}`;
2959
+ t = `!${++na}`;
2960
2960
  }
2961
- $i.set(e, t);
2961
+ ea.set(e, t);
2962
2962
  }
2963
2963
  return t;
2964
- }, ra = S.memo(function(e) {
2965
- let { field: t, index: n, guid: r, value: i, msg: o, t: s } = e, { type: c = "", style: l = {}, className: u = "", visible: d = !1, rules: f = {}, subforms: p = [] } = t, m = t.props || {}, h = t.layout || {}, g = t?.id || m?.id, _ = Ai.MUI.map[c] || {}, { options: v = {} } = _, y = g ? {
2964
+ }, ia = S.memo(function(e) {
2965
+ let { field: t, index: n, guid: r, value: i, msg: o, t: s } = e, { type: c = "", style: l = {}, className: u = "", visible: d = !1, rules: f = {}, subforms: p = [] } = t, m = t.props || {}, h = t.layout || {}, g = t?.id || m?.id, _ = ji.MUI.map[c] || {}, { options: v = {} } = _, y = g ? {
2966
2966
  ...m,
2967
2967
  id: g
2968
2968
  } : m;
@@ -2994,7 +2994,7 @@ var ii = {
2994
2994
  rule: "mandatory",
2995
2995
  message: t.requiredMessage || o.required
2996
2996
  }]
2997
- }), e.translateOn && (y = Li(y, s), b?.validation && (b = {
2997
+ }), e.translateOn && (y = Ri(y, s), b?.validation && (b = {
2998
2998
  ...b,
2999
2999
  validation: b.validation.map((e) => e?.message ? {
3000
3000
  ...e,
@@ -3002,7 +3002,7 @@ var ii = {
3002
3002
  } : e)
3003
3003
  }));
3004
3004
  let x = p.find((e) => Array.isArray(i) ? i.includes(e.conditionValue) : e.conditionValue === i);
3005
- return /* @__PURE__ */ U(L, {
3005
+ return /* @__PURE__ */ W(ae, {
3006
3006
  style: {
3007
3007
  ...l,
3008
3008
  cursor: e.clickable ? "pointer" : "default",
@@ -3019,7 +3019,7 @@ var ii = {
3019
3019
  e.onFieldContextMenu && (n.preventDefault(), n.stopPropagation(), e.onFieldContextMenu(n, t));
3020
3020
  },
3021
3021
  children: [
3022
- /* @__PURE__ */ H(Yr, {
3022
+ /* @__PURE__ */ U(Xr, {
3023
3023
  type: c,
3024
3024
  map: _.map,
3025
3025
  option: v.type || "",
@@ -3033,7 +3033,7 @@ var ii = {
3033
3033
  submitTick: e.submitTick,
3034
3034
  messages: o
3035
3035
  }, `dynamic-comp-${g || n}-${e.formVersion}`),
3036
- e.asyncEntry && /* @__PURE__ */ U(P, {
3036
+ e.asyncEntry && /* @__PURE__ */ W(N, {
3037
3037
  sx: {
3038
3038
  display: "flex",
3039
3039
  alignItems: "center",
@@ -3042,15 +3042,15 @@ var ii = {
3042
3042
  ml: .25
3043
3043
  },
3044
3044
  children: [
3045
- e.asyncEntry.status === "pending" && /* @__PURE__ */ U(ve, { children: [/* @__PURE__ */ H(te, {
3045
+ e.asyncEntry.status === "pending" && /* @__PURE__ */ W(ve, { children: [/* @__PURE__ */ U(F, {
3046
3046
  size: 13,
3047
3047
  thickness: 5
3048
- }), /* @__PURE__ */ H(B, {
3048
+ }), /* @__PURE__ */ U(V, {
3049
3049
  variant: "caption",
3050
3050
  sx: { color: "text.secondary" },
3051
3051
  children: "Checking…"
3052
3052
  })] }),
3053
- e.asyncEntry.status === "valid" && /* @__PURE__ */ U(B, {
3053
+ e.asyncEntry.status === "valid" && /* @__PURE__ */ W(V, {
3054
3054
  variant: "caption",
3055
3055
  sx: {
3056
3056
  color: "success.main",
@@ -3058,12 +3058,12 @@ var ii = {
3058
3058
  alignItems: "center",
3059
3059
  gap: .25
3060
3060
  },
3061
- children: [/* @__PURE__ */ H(R, {
3061
+ children: [/* @__PURE__ */ U(R, {
3062
3062
  sx: { fontSize: 15 },
3063
3063
  children: "check_circle"
3064
3064
  }), "Available"]
3065
3065
  }),
3066
- e.asyncEntry.status === "invalid" && /* @__PURE__ */ U(B, {
3066
+ e.asyncEntry.status === "invalid" && /* @__PURE__ */ W(V, {
3067
3067
  variant: "caption",
3068
3068
  sx: {
3069
3069
  color: "error.main",
@@ -3071,14 +3071,14 @@ var ii = {
3071
3071
  alignItems: "center",
3072
3072
  gap: .25
3073
3073
  },
3074
- children: [/* @__PURE__ */ H(R, {
3074
+ children: [/* @__PURE__ */ U(R, {
3075
3075
  sx: { fontSize: 15 },
3076
3076
  children: "error"
3077
3077
  }), e.asyncEntry.message]
3078
3078
  })
3079
3079
  ]
3080
3080
  }),
3081
- x && x.data && /* @__PURE__ */ H(P, {
3081
+ x && x.data && /* @__PURE__ */ U(N, {
3082
3082
  sx: {
3083
3083
  mt: 2,
3084
3084
  pl: 2,
@@ -3086,7 +3086,7 @@ var ii = {
3086
3086
  borderColor: "divider",
3087
3087
  width: "100%"
3088
3088
  },
3089
- children: /* @__PURE__ */ H(ia, {
3089
+ children: /* @__PURE__ */ U(aa, {
3090
3090
  guid: `${r}-subform-${g}-${String(x.conditionValue)}`,
3091
3091
  data: x.data,
3092
3092
  patch: e.patch,
@@ -3099,40 +3099,40 @@ var ii = {
3099
3099
  }, (e, t) => {
3100
3100
  if (e.alwaysRender || t.alwaysRender) return !1;
3101
3101
  for (let n of Object.keys(t)) if (n !== "field" && !Object.is(e[n], t[n])) return !1;
3102
- return e.field === t.field || na(e.field) === na(t.field);
3102
+ return e.field === t.field || ra(e.field) === ra(t.field);
3103
3103
  });
3104
- function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onChange: a, onStepChange: o, MuiGridAttributes: s = { spacing: 2 }, activeStep: c = 0, onFieldClick: l, onFieldDoubleClick: u, onFieldContextMenu: p, persistOnUnmount: g = !1, autoSave: _ = !1, autoSaveKey: v, autoSaveStorage: y = "local", apiRef: x, messages: C, validationSummary: w = !1, resolver: O, asyncValidators: N, readOnly: ee = !1, reviewMode: ne = !1, warnOnUnsavedChanges: I = !1, submitLabel: re, submitButton: ie, stickySubmit: ae = !1, cancelLabel: oe, onCancel: se, translate: ce }) {
3104
+ function aa({ data: e = [], patch: t = Zi, guid: n, formRef: r, onSubmit: i, onChange: a, onStepChange: o, MuiGridAttributes: s = { spacing: 2 }, activeStep: c = 0, onFieldClick: l, onFieldDoubleClick: u, onFieldContextMenu: p, persistOnUnmount: g = !1, autoSave: _ = !1, autoSaveKey: v, autoSaveStorage: y = "local", apiRef: x, messages: C, validationSummary: w = !1, resolver: D, asyncValidators: k, readOnly: te = !1, reviewMode: ne = !1, warnOnUnsavedChanges: I = !1, submitLabel: re, submitButton: ie, stickySubmit: L = !1, cancelLabel: oe, onCancel: se, translate: ce }) {
3105
3105
  let le = v || `dynamic-mui:${n}`, z = T((e) => ce && typeof e == "string" ? ce(e) : e, [ce]), ue = {
3106
- ...Ji,
3106
+ ...Yi,
3107
3107
  ...C || {}
3108
- }, de = k(() => ({
3108
+ }, de = A(() => ({
3109
3109
  required: z(ue.required),
3110
3110
  errorSummary: z(ue.errorSummary)
3111
3111
  }), [
3112
3112
  z,
3113
3113
  ue.required,
3114
3114
  ue.errorSummary
3115
- ]), fe = k(() => {
3115
+ ]), fe = A(() => {
3116
3116
  try {
3117
3117
  return JSON.stringify(t);
3118
3118
  } catch {
3119
3119
  return String(t);
3120
3120
  }
3121
- }, [t]), [pe, me] = b(() => ({ ...t }), [fe], () => t), [, he] = A((e) => e + 1, 0), [ge, _e] = M(0), [W, ye] = M([]), [be, xe] = M(!1), [Se, Ce] = M(0), G = j(null), we = j(!0), K = j(!1), [q, Te] = M({}), J = j({}), Ee = j({});
3121
+ }, [t]), [B, pe] = b(() => ({ ...t }), [fe], () => t), [, me] = ee((e) => e + 1, 0), [he, ge] = M(0), [_e, G] = M([]), [ye, be] = M(!1), [xe, Se] = M(0), K = j(null), Ce = j(!0), we = j(!1), [q, Te] = M({}), Ee = j({}), J = j({});
3122
3122
  E(() => () => {
3123
- we.current = !1, Object.values(J.current).forEach((e) => clearTimeout(e)), J.current = {};
3123
+ Ce.current = !1, Object.values(Ee.current).forEach((e) => clearTimeout(e)), Ee.current = {};
3124
3124
  }, []);
3125
3125
  let De = T((e, t) => {
3126
- let r = N?.[e];
3126
+ let r = k?.[e];
3127
3127
  if (!r || !e) return;
3128
- clearTimeout(J.current[e]), Te((t) => ({
3128
+ clearTimeout(Ee.current[e]), Te((t) => ({
3129
3129
  ...t,
3130
3130
  [e]: { status: "pending" }
3131
3131
  }));
3132
- let i = (Ee.current[e] || 0) + 1;
3133
- Ee.current[e] = i, J.current[e] = setTimeout(() => {
3132
+ let i = (J.current[e] || 0) + 1;
3133
+ J.current[e] = i, Ee.current[e] = setTimeout(() => {
3134
3134
  Promise.resolve(r(t, $[n] || {})).then((t) => {
3135
- we.current && Ee.current[e] === i && Te((n) => ({
3135
+ Ce.current && J.current[e] === i && Te((n) => ({
3136
3136
  ...n,
3137
3137
  [e]: t ? {
3138
3138
  status: "invalid",
@@ -3140,41 +3140,41 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3140
3140
  } : { status: "valid" }
3141
3141
  }));
3142
3142
  }).catch(() => {
3143
- we.current && Ee.current[e] === i && Te((t) => {
3143
+ Ce.current && J.current[e] === i && Te((t) => {
3144
3144
  let n = { ...t };
3145
3145
  return delete n[e], n;
3146
3146
  });
3147
3147
  });
3148
3148
  }, 450);
3149
- }, [N, n]), Oe = j(null);
3150
- k(() => {
3149
+ }, [k, n]), Oe = j(null);
3150
+ A(() => {
3151
3151
  let t;
3152
3152
  try {
3153
- t = JSON.stringify(pe);
3153
+ t = JSON.stringify(B);
3154
3154
  } catch {
3155
- t = String(pe);
3155
+ t = String(B);
3156
3156
  }
3157
3157
  t = `${n}::${t}`;
3158
3158
  let r = Oe.current !== t;
3159
- Oe.current = t, f(e, r ? pe : {}, n, $);
3159
+ Oe.current = t, f(e, r ? B : {}, n, $);
3160
3160
  }, [
3161
- pe,
3161
+ B,
3162
3162
  e,
3163
3163
  n
3164
3164
  ]);
3165
- let ke = k(() => h(m >= 9 ? e.map((e) => e && e.props ? {
3165
+ let ke = A(() => h(m >= 9 ? e.map((e) => e && e.props ? {
3166
3166
  ...e,
3167
3167
  props: d(e.props)
3168
3168
  } : e) : e), [e]);
3169
3169
  E(() => {
3170
- (0, ct.default)($[n]) && ($[n] = { ...t });
3170
+ (0, lt.default)($[n]) && ($[n] = { ...t });
3171
3171
  }, [n, t]), E(() => {
3172
- G.current === null && (G.current = { ...$[n] || {} });
3172
+ K.current === null && (K.current = { ...$[n] || {} });
3173
3173
  }, []), E(() => {
3174
3174
  if (!I || typeof window > "u") return;
3175
3175
  let e = (e) => {
3176
- let t = G.current;
3177
- t && !(0, lt.default)($[n] || {}, t) && (e.preventDefault(), e.returnValue = "");
3176
+ let t = K.current;
3177
+ t && !(0, ut.default)($[n] || {}, t) && (e.preventDefault(), e.returnValue = "");
3178
3178
  };
3179
3179
  return window.addEventListener("beforeunload", e), () => window.removeEventListener("beforeunload", e);
3180
3180
  }, [I, n]), E(() => {
@@ -3183,7 +3183,7 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3183
3183
  };
3184
3184
  }, [n, g]), E(() => {
3185
3185
  if (!_) return;
3186
- let e = Yi(y);
3186
+ let e = Xi(y);
3187
3187
  if (e) try {
3188
3188
  let t = e.getItem(le);
3189
3189
  if (t) {
@@ -3191,10 +3191,10 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3191
3191
  $[n] = {
3192
3192
  ...$[n],
3193
3193
  ...e
3194
- }, me((t) => ({
3194
+ }, pe((t) => ({
3195
3195
  ...t,
3196
3196
  ...e
3197
- })), G.current = { ...$[n] || {} };
3197
+ })), K.current = { ...$[n] || {} };
3198
3198
  }
3199
3199
  } catch {}
3200
3200
  }, [
@@ -3205,7 +3205,7 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3205
3205
  ]);
3206
3206
  let Ae = T(() => {
3207
3207
  if (!_) return;
3208
- let e = Yi(y);
3208
+ let e = Xi(y);
3209
3209
  if (e) try {
3210
3210
  e.setItem(le, JSON.stringify($[n] || {}));
3211
3211
  } catch {}
@@ -3219,7 +3219,7 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3219
3219
  let o = $[n];
3220
3220
  e.forEach((e) => {
3221
3221
  let t = e?.id || e?.props?.id;
3222
- if (t && e.visibleWhen && !ji(e.visibleWhen, o) && delete o[t], Array.isArray(e.subforms) && e.subforms.length) {
3222
+ if (t && e.visibleWhen && !Mi(e.visibleWhen, o) && delete o[t], Array.isArray(e.subforms) && e.subforms.length) {
3223
3223
  let n = t ? o[t] : void 0, r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
3224
3224
  e.subforms.forEach((e) => {
3225
3225
  let t = Array.isArray(n) ? n.includes(e.conditionValue) : e.conditionValue === n;
@@ -3237,8 +3237,8 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3237
3237
  }
3238
3238
  }), e.forEach((e) => {
3239
3239
  let t = e?.id || e?.props?.id;
3240
- t && e.formula && (o[t] = ri(e.formula, o));
3241
- }), he(), Ae(), N?.[t] && De(t, r), typeof a == "function" && a({
3240
+ t && e.formula && (o[t] = ii(e.formula, o));
3241
+ }), me(), Ae(), k?.[t] && De(t, r), typeof a == "function" && a({
3242
3242
  id: t,
3243
3243
  value: r,
3244
3244
  option: i
@@ -3248,7 +3248,7 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3248
3248
  a,
3249
3249
  Ae,
3250
3250
  e,
3251
- N,
3251
+ k,
3252
3252
  De
3253
3253
  ]), Me = T((e) => {
3254
3254
  let t = e?.[0]?.id;
@@ -3259,36 +3259,36 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3259
3259
  block: "center"
3260
3260
  }), r.focus?.());
3261
3261
  }, [n]), Ne = T(() => {
3262
- let t = (Ki(e, n, de.required, O, q) || []).map((e) => ce && e?.message ? {
3262
+ let t = (qi(e, n, de.required, D, q) || []).map((e) => ce && e?.message ? {
3263
3263
  ...e,
3264
3264
  message: z(e.message)
3265
3265
  } : e);
3266
- return ye(t), _e((e) => e + 1), t;
3266
+ return G(t), ge((e) => e + 1), t;
3267
3267
  }, [
3268
3268
  e,
3269
3269
  n,
3270
3270
  de.required,
3271
- O,
3271
+ D,
3272
3272
  q
3273
3273
  ]), Pe = T((e, t, n) => {
3274
- if (K.current) return;
3275
- let r = (Ki(t, n, de.required, O, q) || []).map((e) => ce && e?.message ? {
3274
+ if (we.current) return;
3275
+ let r = (qi(t, n, de.required, D, q) || []).map((e) => ce && e?.message ? {
3276
3276
  ...e,
3277
3277
  message: z(e.message)
3278
3278
  } : e);
3279
- if (ye(r), _e((e) => e + 1), r.length && Me(r), typeof e == "function") {
3279
+ if (G(r), ge((e) => e + 1), r.length && Me(r), typeof e == "function") {
3280
3280
  let i = e($, r, t, n);
3281
- i && typeof i.then == "function" && (K.current = !0, xe(!0), Promise.resolve(i).finally(() => {
3282
- K.current = !1, we.current && xe(!1);
3281
+ i && typeof i.then == "function" && (we.current = !0, be(!0), Promise.resolve(i).finally(() => {
3282
+ we.current = !1, Ce.current && be(!1);
3283
3283
  }));
3284
3284
  }
3285
3285
  }, [
3286
3286
  Me,
3287
3287
  de.required,
3288
- O,
3288
+ D,
3289
3289
  q
3290
3290
  ]);
3291
- D(x, () => ({
3291
+ O(x, () => ({
3292
3292
  getValues: () => ({ ...$[n] || {} }),
3293
3293
  getErrors: () => Ne(),
3294
3294
  validate: () => Ne().length === 0,
@@ -3296,25 +3296,25 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3296
3296
  $[n] = {
3297
3297
  ...$[n] || {},
3298
3298
  ...e || {}
3299
- }, me((t) => ({
3299
+ }, pe((t) => ({
3300
3300
  ...t,
3301
3301
  ...e || {}
3302
3302
  }));
3303
3303
  },
3304
3304
  reset: () => {
3305
- delete $[n], me({}), ye([]), Ce((e) => e + 1), he();
3305
+ delete $[n], pe({}), G([]), Se((e) => e + 1), me();
3306
3306
  },
3307
3307
  submit: () => Pe(i, e, n),
3308
- getInitialValues: () => ({ ...G.current || {} }),
3309
- isDirty: () => !(0, lt.default)($[n] || {}, G.current || {}),
3308
+ getInitialValues: () => ({ ...K.current || {} }),
3309
+ isDirty: () => !(0, ut.default)($[n] || {}, K.current || {}),
3310
3310
  resetToInitial: () => {
3311
- $[n] = { ...G.current || {} }, me({ ...G.current || {} }), ye([]), Ce((e) => e + 1), he();
3311
+ $[n] = { ...K.current || {} }, pe({ ...K.current || {} }), G([]), Se((e) => e + 1), me();
3312
3312
  },
3313
3313
  markPristine: () => {
3314
- G.current = { ...$[n] || {} };
3314
+ K.current = { ...$[n] || {} };
3315
3315
  },
3316
- print: (t) => Ui(Vi(e, $[n] || {}), t?.title),
3317
- exportPdf: (t) => Wi(Vi(e, $[n] || {}), t)
3316
+ print: (t) => Wi(Hi(e, $[n] || {}), t?.title),
3317
+ exportPdf: (t) => Gi(Hi(e, $[n] || {}), t)
3318
3318
  }), [
3319
3319
  x,
3320
3320
  n,
@@ -3340,20 +3340,20 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3340
3340
  typeof r == "function" && r(e, t, n);
3341
3341
  }, []), Re = T((e) => Fe.current.onFieldDoubleClick?.(e), []), ze = T((e, t) => Fe.current.onFieldContextMenu?.(e, t), []), Be = (e, r) => {
3342
3342
  let i = e?.type || "", a = e?.id || e?.props?.id, o = $[n] || {};
3343
- if (e.visibleWhen && !ji(e.visibleWhen, o)) return a && $[n] && $[n][a] !== void 0 && delete $[n][a], null;
3343
+ if (e.visibleWhen && !Mi(e.visibleWhen, o)) return a && $[n] && $[n][a] !== void 0 && delete $[n][a], null;
3344
3344
  let s = a ? o[a] : void 0;
3345
- return e.formula && a && (s = ri(e.formula, o), $[n] && ($[n][a] = s)), /* @__PURE__ */ H(ra, {
3345
+ return e.formula && a && (s = ii(e.formula, o), $[n] && ($[n][a] = s)), /* @__PURE__ */ U(ia, {
3346
3346
  field: e,
3347
3347
  index: r,
3348
3348
  guid: n,
3349
3349
  value: s,
3350
- disabled: !!(ee || e.disabledWhen && ji(e.disabledWhen, o)),
3351
- required: !!(e.requiredWhen && ji(e.requiredWhen, o)),
3350
+ disabled: !!(te || e.disabledWhen && Mi(e.disabledWhen, o)),
3351
+ required: !!(e.requiredWhen && Mi(e.requiredWhen, o)),
3352
3352
  depValue: e.dependsOn ? o[e.dependsOn] : void 0,
3353
- patch: Zi.has(i) || e.subforms?.length ? t : void 0,
3353
+ patch: Qi.has(i) || e.subforms?.length ? t : void 0,
3354
3354
  asyncEntry: a ? q[a] : void 0,
3355
- submitTick: ge,
3356
- formVersion: Se,
3355
+ submitTick: he,
3356
+ formVersion: xe,
3357
3357
  activeStep: c,
3358
3358
  msg: de,
3359
3359
  t: z,
@@ -3363,19 +3363,19 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3363
3363
  clickable: !!l,
3364
3364
  onFieldDoubleClick: u ? Re : void 0,
3365
3365
  onFieldContextMenu: p ? ze : void 0,
3366
- alwaysRender: Qi.has(i) || Gr(i)
3366
+ alwaysRender: $i.has(i) || Kr(i)
3367
3367
  }, a || `layout-comp-${r}`);
3368
- }, Ve = W.length ? de.errorSummary.replace("{n}", String(W.length)) : "";
3368
+ }, Ve = _e.length ? de.errorSummary.replace("{n}", String(_e.length)) : "";
3369
3369
  if (ne) {
3370
- let t = Vi(e, $[n] || {});
3371
- return /* @__PURE__ */ H(P, {
3370
+ let t = Hi(e, $[n] || {});
3371
+ return /* @__PURE__ */ U(N, {
3372
3372
  className: "dmui-review",
3373
3373
  sx: { width: "100%" },
3374
- children: t.length === 0 ? /* @__PURE__ */ H(B, {
3374
+ children: t.length === 0 ? /* @__PURE__ */ U(V, {
3375
3375
  variant: "body2",
3376
3376
  sx: { color: "text.secondary" },
3377
3377
  children: "No values entered."
3378
- }) : t.map((e, n) => /* @__PURE__ */ U(P, {
3378
+ }) : t.map((e, n) => /* @__PURE__ */ W(N, {
3379
3379
  sx: {
3380
3380
  display: "grid",
3381
3381
  gridTemplateColumns: {
@@ -3390,14 +3390,14 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3390
3390
  borderBottom: n < t.length - 1 ? "1px solid" : "none",
3391
3391
  borderColor: "divider"
3392
3392
  },
3393
- children: [/* @__PURE__ */ H(B, {
3393
+ children: [/* @__PURE__ */ U(V, {
3394
3394
  variant: "body2",
3395
3395
  sx: {
3396
3396
  color: "text.secondary",
3397
3397
  fontWeight: 500
3398
3398
  },
3399
3399
  children: z(e.label)
3400
- }), /* @__PURE__ */ H(B, {
3400
+ }), /* @__PURE__ */ U(V, {
3401
3401
  variant: "body2",
3402
3402
  sx: {
3403
3403
  color: "text.primary",
@@ -3410,8 +3410,8 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3410
3410
  }, `review-${n}`))
3411
3411
  });
3412
3412
  }
3413
- return /* @__PURE__ */ U(ve, { children: [
3414
- /* @__PURE__ */ H(P, {
3413
+ return /* @__PURE__ */ W(ve, { children: [
3414
+ /* @__PURE__ */ U(N, {
3415
3415
  "aria-live": "polite",
3416
3416
  sx: {
3417
3417
  position: "absolute",
@@ -3426,7 +3426,7 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3426
3426
  },
3427
3427
  children: Ve
3428
3428
  }),
3429
- w && W.length > 0 && /* @__PURE__ */ H(P, {
3429
+ w && _e.length > 0 && /* @__PURE__ */ U(N, {
3430
3430
  role: "alert",
3431
3431
  sx: {
3432
3432
  mb: 2,
@@ -3441,21 +3441,21 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3441
3441
  },
3442
3442
  children: Ve
3443
3443
  }),
3444
- /* @__PURE__ */ H(L, {
3444
+ /* @__PURE__ */ U(ae, {
3445
3445
  container: !0,
3446
3446
  ...s,
3447
- children: ke.wrows.map((e, t) => /* @__PURE__ */ H(S.Fragment, { children: e.map(Be) }, `row-${t}`))
3447
+ children: ke.wrows.map((e, t) => /* @__PURE__ */ U(S.Fragment, { children: e.map(Be) }, `row-${t}`))
3448
3448
  }, `layout-grid-${n}`),
3449
- ke.worows.length > 0 && /* @__PURE__ */ H(L, {
3449
+ ke.worows.length > 0 && /* @__PURE__ */ U(ae, {
3450
3450
  container: !0,
3451
3451
  ...s,
3452
3452
  children: ke.worows.map((e, t) => Be(e, t))
3453
3453
  }, `layout-grid-worows-${n}`),
3454
3454
  (() => {
3455
3455
  let t = ie || (re ? { label: re } : null);
3456
- if (!t || ee) return null;
3457
- let r = be || !!t.loading, a = t.color, o = !!a && qi.includes(a), s = o ? a : "primary", c = z(r ? t.loadingLabel || t.label || "Submitting…" : t.label || "Submit");
3458
- return /* @__PURE__ */ U(P, {
3456
+ if (!t || te) return null;
3457
+ let r = ye || !!t.loading, a = t.color, o = !!a && Ji.includes(a), s = o ? a : "primary", c = z(r ? t.loadingLabel || t.label || "Submitting…" : t.label || "Submit");
3458
+ return /* @__PURE__ */ W(N, {
3459
3459
  sx: (e) => {
3460
3460
  let n = t.gradient?.[0] || (o && a !== "inherit" ? e.palette[a].main : void 0) || (a && !o ? a : e.palette.primary.main), r = t.gradient ? {
3461
3461
  background: `linear-gradient(135deg, ${t.gradient[0]}, ${t.gradient[1]})`,
@@ -3477,18 +3477,18 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3477
3477
  justifyContent: "flex-end",
3478
3478
  alignItems: "center",
3479
3479
  gap: 1.25,
3480
- ...ae ? {
3480
+ ...L ? {
3481
3481
  position: "sticky",
3482
3482
  bottom: 0,
3483
3483
  zIndex: 3,
3484
3484
  py: 1.5,
3485
3485
  px: 2,
3486
3486
  mt: 2,
3487
- bgcolor: V(e.palette.background.paper, .82),
3487
+ bgcolor: H(e.palette.background.paper, .82),
3488
3488
  backdropFilter: "blur(10px)",
3489
3489
  WebkitBackdropFilter: "blur(10px)",
3490
3490
  borderTop: `1px solid ${e.palette.divider}`,
3491
- boxShadow: `0 -10px 26px -18px ${V(e.palette.common.black, .5)}`
3491
+ boxShadow: `0 -10px 26px -18px ${H(e.palette.common.black, .5)}`
3492
3492
  } : {
3493
3493
  pt: 1,
3494
3494
  mt: 2.5
@@ -3500,11 +3500,11 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3500
3500
  px: 3,
3501
3501
  py: .9,
3502
3502
  letterSpacing: "0.01em",
3503
- ...(t.variant ?? "contained") === "contained" ? { boxShadow: `0 8px 18px -8px ${V(n, .6)}` } : {},
3503
+ ...(t.variant ?? "contained") === "contained" ? { boxShadow: `0 8px 18px -8px ${H(n, .6)}` } : {},
3504
3504
  transition: "transform .16s ease, box-shadow .16s ease, filter .16s ease",
3505
3505
  "&:hover": {
3506
3506
  transform: "translateY(-1px)",
3507
- ...(t.variant ?? "contained") === "contained" ? { boxShadow: `0 12px 24px -8px ${V(n, .72)}` } : {}
3507
+ ...(t.variant ?? "contained") === "contained" ? { boxShadow: `0 12px 24px -8px ${H(n, .72)}` } : {}
3508
3508
  },
3509
3509
  "&:active": { transform: "translateY(0)" },
3510
3510
  ...(t.variant ?? "contained") === "contained" ? r : {}
@@ -3512,7 +3512,7 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3512
3512
  };
3513
3513
  },
3514
3514
  children: [
3515
- W.length > 0 && /* @__PURE__ */ U(B, {
3515
+ _e.length > 0 && /* @__PURE__ */ W(V, {
3516
3516
  variant: "caption",
3517
3517
  sx: {
3518
3518
  mr: "auto",
@@ -3522,12 +3522,12 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3522
3522
  color: "error.main",
3523
3523
  fontWeight: 600
3524
3524
  },
3525
- children: [/* @__PURE__ */ H(R, {
3525
+ children: [/* @__PURE__ */ U(R, {
3526
3526
  fontSize: "small",
3527
3527
  children: "error_outline"
3528
- }), de.errorSummary.replace("{n}", String(W.length))]
3528
+ }), de.errorSummary.replace("{n}", String(_e.length))]
3529
3529
  }),
3530
- oe && /* @__PURE__ */ H(F, {
3530
+ oe && /* @__PURE__ */ U(P, {
3531
3531
  variant: "outlined",
3532
3532
  disabled: r,
3533
3533
  onClick: () => se?.(),
@@ -3546,18 +3546,18 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3546
3546
  },
3547
3547
  children: z(oe)
3548
3548
  }),
3549
- /* @__PURE__ */ H(F, {
3549
+ /* @__PURE__ */ U(P, {
3550
3550
  className: "dmui-submit",
3551
3551
  variant: t.variant || "contained",
3552
3552
  color: s,
3553
3553
  disableElevation: !0,
3554
3554
  fullWidth: t.fullWidth,
3555
3555
  disabled: r,
3556
- startIcon: r ? /* @__PURE__ */ H(te, {
3556
+ startIcon: r ? /* @__PURE__ */ U(F, {
3557
3557
  size: 18,
3558
3558
  color: "inherit"
3559
- }) : t.icon ? /* @__PURE__ */ H(R, { children: t.icon }) : void 0,
3560
- endIcon: !r && t.endIcon ? /* @__PURE__ */ H(R, { children: t.endIcon }) : void 0,
3559
+ }) : t.icon ? /* @__PURE__ */ U(R, { children: t.icon }) : void 0,
3560
+ endIcon: !r && t.endIcon ? /* @__PURE__ */ U(R, { children: t.endIcon }) : void 0,
3561
3561
  onClick: () => Pe(i, e, n),
3562
3562
  sx: t.sx,
3563
3563
  children: c
@@ -3565,7 +3565,7 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3565
3565
  ]
3566
3566
  });
3567
3567
  })(),
3568
- /* @__PURE__ */ H("button", {
3568
+ /* @__PURE__ */ U("button", {
3569
3569
  "aria-label": "button",
3570
3570
  type: "button",
3571
3571
  ref: r || null,
@@ -3575,7 +3575,7 @@ function ia({ data: e = [], patch: t = Xi, guid: n, formRef: r, onSubmit: i, onC
3575
3575
  ] });
3576
3576
  }
3577
3577
  // src/ai/mapping.ts
3578
- var aa = (e) => String(e || "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "") || "field", oa = {
3578
+ var oa = (e) => String(e || "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "") || "field", sa = {
3579
3579
  text: { type: "textfield" },
3580
3580
  string: { type: "textfield" },
3581
3581
  textarea: { type: "multitextbox" },
@@ -3621,21 +3621,21 @@ var aa = (e) => String(e || "").trim().toLowerCase().replace(/[^a-z0-9]+/g, "_")
3621
3621
  computed: { type: "computed" },
3622
3622
  geo: { type: "geo" },
3623
3623
  location: { type: "locationfield" }
3624
- }, sa = /* @__PURE__ */ new Set([
3624
+ }, ca = /* @__PURE__ */ new Set([
3625
3625
  "select",
3626
3626
  "chipselect",
3627
3627
  "togglebuttons",
3628
3628
  "cascadeselect"
3629
- ]), ca = /* @__PURE__ */ new Set([
3629
+ ]), la = /* @__PURE__ */ new Set([
3630
3630
  "select",
3631
3631
  "chipselect",
3632
3632
  "togglebuttons",
3633
3633
  "radio",
3634
3634
  "tagsinput"
3635
- ]), la = (e) => e === "half" ? 6 : e === "third" ? 4 : 12;
3636
- function ua(e) {
3635
+ ]), ua = (e) => e === "half" ? 6 : e === "third" ? 4 : 12;
3636
+ function da(e) {
3637
3637
  return Array.isArray(e) ? e.map((e, t) => {
3638
- let n = oa[e.type] || { type: e.type || "textfield" }, r = n.type, i = aa(e.id || e.label || `field_${t + 1}`), a = la(e.width), o = {
3638
+ let n = sa[e.type] || { type: e.type || "textfield" }, r = n.type, i = oa(e.id || e.label || `field_${t + 1}`), a = ua(e.width), o = {
3639
3639
  label: e.label,
3640
3640
  fullWidth: !0
3641
3641
  };
@@ -3646,13 +3646,13 @@ function ua(e) {
3646
3646
  id: i,
3647
3647
  MuiAttributes: o
3648
3648
  };
3649
- e.options && e.options.length && (sa.has(r) ? c.options = e.options.map((e) => ({
3650
- value: aa(e),
3649
+ e.options && e.options.length && (ca.has(r) ? c.options = e.options.map((e) => ({
3650
+ value: oa(e),
3651
3651
  label: e
3652
3652
  })) : r === "radio" && (c.MuiFCLabels = e.options, c.MuiFLabel = e.label)), (r === "chipselect" || r === "togglebuttons") && (c.label = e.label, s && (c.multiple = !0)), r === "computed" && e.formula && (c.formula = e.formula);
3653
3653
  let l = [];
3654
3654
  if (e.required) {
3655
- let t = ca.has(r) ? "mandatoryselect" : "mandatory";
3655
+ let t = la.has(r) ? "mandatoryselect" : "mandatory";
3656
3656
  l.push({
3657
3657
  rule: t,
3658
3658
  message: `${e.label || "This field"} is required`
@@ -3674,7 +3674,7 @@ function ua(e) {
3674
3674
  return l.length && (u.rules = { validation: l }), e.formula && (u.formula = e.formula), e.visibleWhen && e.visibleWhen.field && (u.visibleWhen = e.visibleWhen), u;
3675
3675
  }) : [];
3676
3676
  }
3677
- function da(e) {
3677
+ function fa(e) {
3678
3678
  if (!Array.isArray(e)) return [];
3679
3679
  let t = [];
3680
3680
  return e.forEach((e) => {
@@ -3690,7 +3690,7 @@ function da(e) {
3690
3690
  });
3691
3691
  }), t;
3692
3692
  }
3693
- function fa(e) {
3693
+ function pa(e) {
3694
3694
  return Array.isArray(e) ? e.map((e, t) => {
3695
3695
  let n = e.props || {}, r = n.MuiAttributes || {}, i = e.id || n.id || `field_${t + 1}`, a = r.label || n.label || n.MuiFLabel || i, o;
3696
3696
  Array.isArray(n.options) ? o = n.options.map((e) => typeof e == "string" ? e : e.label ?? e.value) : Array.isArray(n.MuiFCLabels) && (o = n.MuiFCLabels.map((e) => typeof e == "string" ? e : e.label ?? e.value));
@@ -3705,7 +3705,7 @@ function fa(e) {
3705
3705
  }) : [];
3706
3706
  }
3707
3707
  // src/ai/client.ts
3708
- var pa = "gpt-4o-mini", ma = /* @__PURE__ */ "textfield.textarea.email.number.phone.currency.password.date.time.daterange.select.radio.checkbox.switch.chipselect.togglebuttons.tags.rating.slider.file.signature.address.color.markdown.otp.computed.geo".split("."), ha = "Each field: {\n \"type\": one of the allowed types,\n \"id\": snake_case string,\n \"label\": string,\n \"required\": boolean (optional),\n \"placeholder\": string (optional),\n \"helperText\": string (optional),\n \"options\": string[] (only for select/radio/chipselect/togglebuttons),\n \"multiple\": boolean (optional),\n \"width\": \"full\" | \"half\" | \"third\" (optional),\n \"formula\": string like \"qty * price\" (only for computed),\n \"visibleWhen\": { \"field\": id, \"op\": \"eq\", \"value\": any } (optional)\n}", ga = (e) => {
3708
+ var ma = "gpt-4o-mini", ha = /* @__PURE__ */ "textfield.textarea.email.number.phone.currency.password.date.time.daterange.select.radio.checkbox.switch.chipselect.togglebuttons.tags.rating.slider.file.signature.address.color.markdown.otp.computed.geo".split("."), ga = "Each field: {\n \"type\": one of the allowed types,\n \"id\": snake_case string,\n \"label\": string,\n \"required\": boolean (optional),\n \"placeholder\": string (optional),\n \"helperText\": string (optional),\n \"options\": string[] (only for select/radio/chipselect/togglebuttons),\n \"multiple\": boolean (optional),\n \"width\": \"full\" | \"half\" | \"third\" (optional),\n \"formula\": string like \"qty * price\" (only for computed),\n \"visibleWhen\": { \"field\": id, \"op\": \"eq\", \"value\": any } (optional)\n}", _a = (e) => {
3709
3709
  if (e && typeof e == "object") return e;
3710
3710
  if (typeof e != "string") return {};
3711
3711
  try {
@@ -3718,13 +3718,13 @@ var pa = "gpt-4o-mini", ma = /* @__PURE__ */ "textfield.textarea.email.number.ph
3718
3718
  return {};
3719
3719
  }
3720
3720
  };
3721
- function _a(e) {
3721
+ function va(e) {
3722
3722
  if (!e?.endpoint) throw Error("createAIClient: `endpoint` is required. Point it at YOUR backend proxy that holds the OpenAI key — never embed the key in client code.");
3723
3723
  let t = e.fetchImpl || (typeof fetch < "u" ? fetch : void 0);
3724
3724
  if (!t) throw Error("createAIClient: no fetch implementation available.");
3725
3725
  async function n(n) {
3726
3726
  let r = {
3727
- model: n.model || e.model || pa,
3727
+ model: n.model || e.model || ma,
3728
3728
  messages: n.messages,
3729
3729
  temperature: n.temperature ?? .2
3730
3730
  };
@@ -3745,40 +3745,40 @@ function _a(e) {
3745
3745
  throw Error("AI proxy returned a non-JSON response. Check that your relay endpoint forwards the provider JSON.");
3746
3746
  }
3747
3747
  let o = a?.choices?.[0]?.message?.content ?? a?.content ?? a?.result ?? a;
3748
- return n.json ? ga(o) : typeof o == "string" ? o : String(o ?? "");
3748
+ return n.json ? _a(o) : typeof o == "string" ? o : String(o ?? "");
3749
3749
  }
3750
3750
  async function r(e, t) {
3751
3751
  let r = await n({
3752
3752
  json: !0,
3753
3753
  messages: [{
3754
3754
  role: "system",
3755
- content: `You are a form designer. Given a request, output ONLY JSON of the form { "fields": SimpleField[] }. Allowed "type" values: ${(t?.allowedTypes || ma).join(", ")}. ` + ha + " Choose sensible types, ids, labels, required flags and widths. Group related short fields with width \"half\". Do not include markdown or commentary."
3755
+ content: `You are a form designer. Given a request, output ONLY JSON of the form { "fields": SimpleField[] }. Allowed "type" values: ${(t?.allowedTypes || ha).join(", ")}. ` + ga + " Choose sensible types, ids, labels, required flags and widths. Group related short fields with width \"half\". Do not include markdown or commentary."
3756
3756
  }, {
3757
3757
  role: "user",
3758
3758
  content: e
3759
3759
  }]
3760
3760
  });
3761
- return ua(r?.fields || r);
3761
+ return da(r?.fields || r);
3762
3762
  }
3763
3763
  async function i(e, t) {
3764
- let r = fa(e), i = await n({
3764
+ let r = pa(e), i = await n({
3765
3765
  json: !0,
3766
3766
  messages: [{
3767
3767
  role: "system",
3768
- content: "You edit form schemas. You are given the current fields as JSON and an instruction. Return ONLY JSON { \"fields\": SimpleField[] } for the FULL updated form (not a diff). Preserve unrelated fields and their ids. " + ha
3768
+ content: "You edit form schemas. You are given the current fields as JSON and an instruction. Return ONLY JSON { \"fields\": SimpleField[] } for the FULL updated form (not a diff). Preserve unrelated fields and their ids. " + ga
3769
3769
  }, {
3770
3770
  role: "user",
3771
3771
  content: `Current fields:\n${JSON.stringify(r)}\n\nInstruction: ${t}`
3772
3772
  }]
3773
3773
  });
3774
- return ua(i?.fields || i);
3774
+ return da(i?.fields || i);
3775
3775
  }
3776
3776
  async function a(e) {
3777
- let t = fa(e), r = await n({
3777
+ let t = pa(e), r = await n({
3778
3778
  json: !0,
3779
3779
  messages: [{
3780
3780
  role: "system",
3781
- content: "You are a form UX and data-quality reviewer. Review the given fields and return ONLY JSON { \"issues\": Issue[], \"improved\": SimpleField[] }. Issue = { field?: id, kind: \"label\"|\"validation\"|\"logic\"|\"type\"|\"accessibility\"|\"other\", severity: \"info\"|\"suggestion\"|\"warning\", message: string }. \"improved\" is the full form with your fixes applied. " + ha
3781
+ content: "You are a form UX and data-quality reviewer. Review the given fields and return ONLY JSON { \"issues\": Issue[], \"improved\": SimpleField[] }. Issue = { field?: id, kind: \"label\"|\"validation\"|\"logic\"|\"type\"|\"accessibility\"|\"other\", severity: \"info\"|\"suggestion\"|\"warning\", message: string }. \"improved\" is the full form with your fixes applied. " + ga
3782
3782
  }, {
3783
3783
  role: "user",
3784
3784
  content: `Fields:\n${JSON.stringify(t)}`
@@ -3786,7 +3786,7 @@ function _a(e) {
3786
3786
  });
3787
3787
  return {
3788
3788
  issues: Array.isArray(r?.issues) ? r.issues : [],
3789
- improved: r?.improved ? ua(r.improved) : void 0
3789
+ improved: r?.improved ? da(r.improved) : void 0
3790
3790
  };
3791
3791
  }
3792
3792
  async function o(e, t) {
@@ -3811,7 +3811,7 @@ function _a(e) {
3811
3811
  json: !0,
3812
3812
  messages: [{
3813
3813
  role: "system",
3814
- content: `You digitize documents into forms. Look at the image(s) and output ONLY JSON { "fields": SimpleField[] } that reproduces the form/fields shown. Allowed "type" values: ${(r?.allowedTypes || ma).join(", ")}. ` + ha
3814
+ content: `You digitize documents into forms. Look at the image(s) and output ONLY JSON { "fields": SimpleField[] } that reproduces the form/fields shown. Allowed "type" values: ${(r?.allowedTypes || ha).join(", ")}. ` + ga
3815
3815
  }, {
3816
3816
  role: "user",
3817
3817
  content: [{
@@ -3820,7 +3820,7 @@ function _a(e) {
3820
3820
  }, ...s(e)]
3821
3821
  }]
3822
3822
  });
3823
- return ua(i?.fields || i);
3823
+ return da(i?.fields || i);
3824
3824
  }
3825
3825
  async function l(e, t) {
3826
3826
  let r = await n({
@@ -3870,9 +3870,9 @@ function _a(e) {
3870
3870
  };
3871
3871
  }
3872
3872
  // src/ai/react/AIFormGenerator.tsx
3873
- function va({ client: e, current: t, onGenerate: n, placeholder: r, label: i }) {
3873
+ function ya({ client: e, current: t, onGenerate: n, placeholder: r, label: i }) {
3874
3874
  let [a, o] = M(""), [s, c] = M(!1), [l, u] = M(null), d = Array.isArray(t) && t.length > 0, f = d ? "Apply edit" : "Generate form";
3875
- return /* @__PURE__ */ H(P, {
3875
+ return /* @__PURE__ */ U(N, {
3876
3876
  sx: {
3877
3877
  p: 2.5,
3878
3878
  borderRadius: 3,
@@ -3881,10 +3881,10 @@ function va({ client: e, current: t, onGenerate: n, placeholder: r, label: i })
3881
3881
  bgcolor: "background.paper",
3882
3882
  boxShadow: "0 1px 3px rgba(0,0,0,0.06)"
3883
3883
  },
3884
- children: /* @__PURE__ */ U(fe, {
3884
+ children: /* @__PURE__ */ W(B, {
3885
3885
  spacing: 2,
3886
3886
  children: [
3887
- /* @__PURE__ */ H(pe, {
3887
+ /* @__PURE__ */ U(pe, {
3888
3888
  label: i ?? "Describe your form",
3889
3889
  placeholder: r ?? (d ? "e.g. Add a phone number field and make email required" : "e.g. A contact form with name, email and message"),
3890
3890
  value: a,
@@ -3895,18 +3895,18 @@ function va({ client: e, current: t, onGenerate: n, placeholder: r, label: i })
3895
3895
  disabled: s,
3896
3896
  slotProps: { input: { sx: { borderRadius: 2 } } }
3897
3897
  }),
3898
- l && /* @__PURE__ */ H(N, {
3898
+ l && /* @__PURE__ */ U(te, {
3899
3899
  severity: "error",
3900
3900
  onClose: () => u(null),
3901
3901
  sx: { borderRadius: 2 },
3902
3902
  children: l
3903
3903
  }),
3904
- /* @__PURE__ */ H(P, {
3904
+ /* @__PURE__ */ U(N, {
3905
3905
  sx: {
3906
3906
  display: "flex",
3907
3907
  justifyContent: "flex-end"
3908
3908
  },
3909
- children: /* @__PURE__ */ H(F, {
3909
+ children: /* @__PURE__ */ U(P, {
3910
3910
  variant: "contained",
3911
3911
  onClick: async () => {
3912
3912
  let r = a.trim();
@@ -3922,7 +3922,7 @@ function va({ client: e, current: t, onGenerate: n, placeholder: r, label: i })
3922
3922
  }
3923
3923
  },
3924
3924
  disabled: s || !a.trim(),
3925
- startIcon: s ? /* @__PURE__ */ H(te, {
3925
+ startIcon: s ? /* @__PURE__ */ U(F, {
3926
3926
  size: 18,
3927
3927
  color: "inherit"
3928
3928
  }) : void 0,
@@ -3941,16 +3941,16 @@ function va({ client: e, current: t, onGenerate: n, placeholder: r, label: i })
3941
3941
  });
3942
3942
  }
3943
3943
  // src/ai/react/AIFill.tsx
3944
- var ya = ({ client: e, schema: t, fields: n, onFill: r, placeholder: i = "Paste any text here (an email, a note, an address…) and let AI fill the form.", label: a = "Paste text to autofill" }) => {
3945
- let [o, s] = M(""), [c, l] = M(!1), [u, d] = M(null), f = n ?? (t ? da(t) : []);
3946
- return /* @__PURE__ */ U(P, {
3944
+ var ba = ({ client: e, schema: t, fields: n, onFill: r, placeholder: i = "Paste any text here (an email, a note, an address…) and let AI fill the form.", label: a = "Paste text to autofill" }) => {
3945
+ let [o, s] = M(""), [c, l] = M(!1), [u, d] = M(null), f = n ?? (t ? fa(t) : []);
3946
+ return /* @__PURE__ */ W(N, {
3947
3947
  sx: {
3948
3948
  display: "flex",
3949
3949
  flexDirection: "column",
3950
3950
  gap: 1.5
3951
3951
  },
3952
3952
  children: [
3953
- /* @__PURE__ */ H(pe, {
3953
+ /* @__PURE__ */ U(pe, {
3954
3954
  value: o,
3955
3955
  onChange: (e) => s(e.target.value),
3956
3956
  label: a,
@@ -3962,15 +3962,15 @@ var ya = ({ client: e, schema: t, fields: n, onFill: r, placeholder: i = "Paste
3962
3962
  sx: { "& .MuiOutlinedInput-root": { borderRadius: 2 } },
3963
3963
  slotProps: { htmlInput: { "aria-label": a } }
3964
3964
  }),
3965
- u && /* @__PURE__ */ H(N, {
3965
+ u && /* @__PURE__ */ U(te, {
3966
3966
  severity: "error",
3967
3967
  onClose: () => d(null),
3968
3968
  children: u
3969
3969
  }),
3970
- /* @__PURE__ */ H(fe, {
3970
+ /* @__PURE__ */ U(B, {
3971
3971
  direction: "row",
3972
3972
  sx: { justifyContent: "flex-end" },
3973
- children: /* @__PURE__ */ H(F, {
3973
+ children: /* @__PURE__ */ U(P, {
3974
3974
  variant: "contained",
3975
3975
  onClick: async () => {
3976
3976
  l(!0), d(null);
@@ -3983,10 +3983,10 @@ var ya = ({ client: e, schema: t, fields: n, onFill: r, placeholder: i = "Paste
3983
3983
  }
3984
3984
  },
3985
3985
  disabled: c,
3986
- startIcon: c ? /* @__PURE__ */ H(te, {
3986
+ startIcon: c ? /* @__PURE__ */ U(F, {
3987
3987
  size: 18,
3988
3988
  color: "inherit"
3989
- }) : /* @__PURE__ */ H(Ze, {}),
3989
+ }) : /* @__PURE__ */ U(Qe, {}),
3990
3990
  sx: {
3991
3991
  borderRadius: 2,
3992
3992
  textTransform: "none",
@@ -4000,7 +4000,7 @@ var ya = ({ client: e, schema: t, fields: n, onFill: r, placeholder: i = "Paste
4000
4000
  });
4001
4001
  };
4002
4002
  // src/ai/react/AITextAssist.tsx
4003
- function ba(e) {
4003
+ function xa(e) {
4004
4004
  let [t, n] = M(!1), [r, i] = M(null);
4005
4005
  return {
4006
4006
  run: T(async (t, r, a) => {
@@ -4018,36 +4018,36 @@ function ba(e) {
4018
4018
  error: r
4019
4019
  };
4020
4020
  }
4021
- var xa = {
4021
+ var Sa = {
4022
4022
  improve: {
4023
4023
  label: "Improve writing",
4024
- icon: /* @__PURE__ */ H(Qe, { fontSize: "small" })
4024
+ icon: /* @__PURE__ */ U($e, { fontSize: "small" })
4025
4025
  },
4026
4026
  summarize: {
4027
4027
  label: "Summarize",
4028
- icon: /* @__PURE__ */ H(et, { fontSize: "small" })
4028
+ icon: /* @__PURE__ */ U(tt, { fontSize: "small" })
4029
4029
  },
4030
4030
  expand: {
4031
4031
  label: "Expand",
4032
- icon: /* @__PURE__ */ H(tt, { fontSize: "small" })
4032
+ icon: /* @__PURE__ */ U(nt, { fontSize: "small" })
4033
4033
  },
4034
4034
  shorten: {
4035
4035
  label: "Make shorter",
4036
- icon: /* @__PURE__ */ H($e, { fontSize: "small" })
4036
+ icon: /* @__PURE__ */ U(et, { fontSize: "small" })
4037
4037
  },
4038
4038
  "fix-grammar": {
4039
4039
  label: "Fix spelling & grammar",
4040
- icon: /* @__PURE__ */ H(nt, { fontSize: "small" })
4040
+ icon: /* @__PURE__ */ U(rt, { fontSize: "small" })
4041
4041
  },
4042
4042
  professional: {
4043
4043
  label: "Make professional",
4044
- icon: /* @__PURE__ */ H(rt, { fontSize: "small" })
4044
+ icon: /* @__PURE__ */ U(it, { fontSize: "small" })
4045
4045
  },
4046
4046
  translate: {
4047
4047
  label: "Translate",
4048
- icon: /* @__PURE__ */ H(it, { fontSize: "small" })
4048
+ icon: /* @__PURE__ */ U(at, { fontSize: "small" })
4049
4049
  }
4050
- }, Sa = [
4050
+ }, Ca = [
4051
4051
  "improve",
4052
4052
  "summarize",
4053
4053
  "expand",
@@ -4056,8 +4056,8 @@ var xa = {
4056
4056
  "professional",
4057
4057
  "translate"
4058
4058
  ];
4059
- function Ca({ client: e, text: t, actions: n = Sa, onResult: r, targetLanguage: i, size: a = "medium" }) {
4060
- let { run: o, loading: s } = ba(e), [c, l] = M(null), u = !!c, d = (e) => {
4059
+ function wa({ client: e, text: t, actions: n = Ca, onResult: r, targetLanguage: i, size: a = "medium" }) {
4060
+ let { run: o, loading: s } = xa(e), [c, l] = M(null), u = !!c, d = (e) => {
4061
4061
  l(e.currentTarget);
4062
4062
  }, f = () => {
4063
4063
  l(null);
@@ -4067,9 +4067,9 @@ function Ca({ client: e, text: t, actions: n = Sa, onResult: r, targetLanguage:
4067
4067
  r(await o(t, e, i));
4068
4068
  } catch {}
4069
4069
  };
4070
- return /* @__PURE__ */ U(ve, { children: [/* @__PURE__ */ H(me, {
4070
+ return /* @__PURE__ */ W(ve, { children: [/* @__PURE__ */ U(me, {
4071
4071
  title: "AI assist",
4072
- children: /* @__PURE__ */ H("span", { children: /* @__PURE__ */ H(ae, {
4072
+ children: /* @__PURE__ */ U("span", { children: /* @__PURE__ */ U(oe, {
4073
4073
  "aria-label": "AI assist",
4074
4074
  "aria-haspopup": "menu",
4075
4075
  "aria-expanded": u ? "true" : void 0,
@@ -4082,12 +4082,12 @@ function Ca({ client: e, text: t, actions: n = Sa, onResult: r, targetLanguage:
4082
4082
  transition: "background-color 120ms ease",
4083
4083
  "&:hover": { bgcolor: "action.hover" }
4084
4084
  },
4085
- children: s ? /* @__PURE__ */ H(te, {
4085
+ children: s ? /* @__PURE__ */ U(F, {
4086
4086
  size: a === "small" ? 16 : 20,
4087
4087
  color: "inherit"
4088
- }) : /* @__PURE__ */ H(Ze, { fontSize: a === "small" ? "small" : "medium" })
4088
+ }) : /* @__PURE__ */ U(Qe, { fontSize: a === "small" ? "small" : "medium" })
4089
4089
  }) })
4090
- }), /* @__PURE__ */ H(ue, {
4090
+ }), /* @__PURE__ */ U(de, {
4091
4091
  anchorEl: c,
4092
4092
  open: u,
4093
4093
  onClose: f,
@@ -4111,21 +4111,21 @@ function Ca({ client: e, text: t, actions: n = Sa, onResult: r, targetLanguage:
4111
4111
  }
4112
4112
  } },
4113
4113
  children: n.map((e) => {
4114
- let t = xa[e];
4115
- return /* @__PURE__ */ U(de, {
4114
+ let t = Sa[e];
4115
+ return /* @__PURE__ */ W(fe, {
4116
4116
  onClick: () => p(e),
4117
4117
  sx: {
4118
4118
  py: 1,
4119
4119
  px: 1.5,
4120
4120
  gap: .5
4121
4121
  },
4122
- children: [/* @__PURE__ */ H(le, {
4122
+ children: [/* @__PURE__ */ U(z, {
4123
4123
  sx: {
4124
4124
  color: "primary.main",
4125
4125
  minWidth: 32
4126
4126
  },
4127
- children: t?.icon ?? /* @__PURE__ */ H(Qe, { fontSize: "small" })
4128
- }), /* @__PURE__ */ H(z, {
4127
+ children: t?.icon ?? /* @__PURE__ */ U($e, { fontSize: "small" })
4128
+ }), /* @__PURE__ */ U(ue, {
4129
4129
  primary: t?.label ?? e,
4130
4130
  slotProps: { primary: { sx: {
4131
4131
  fontSize: 14,
@@ -4137,12 +4137,12 @@ function Ca({ client: e, text: t, actions: n = Sa, onResult: r, targetLanguage:
4137
4137
  })] });
4138
4138
  }
4139
4139
  // src/ai/react/AISchemaReview.tsx
4140
- var wa = {
4140
+ var Ta = {
4141
4141
  warning: "warning",
4142
4142
  suggestion: "info",
4143
4143
  info: "default"
4144
4144
  };
4145
- function Ta({ client: e, schema: t, onApply: n, buttonLabel: r }) {
4145
+ function Ea({ client: e, schema: t, onApply: n, buttonLabel: r }) {
4146
4146
  let [i, a] = M(!1), [o, s] = M(null), [c, l] = M(null), u = async () => {
4147
4147
  if (!i) {
4148
4148
  a(!0), s(null);
@@ -4156,7 +4156,7 @@ function Ta({ client: e, schema: t, onApply: n, buttonLabel: r }) {
4156
4156
  }
4157
4157
  }
4158
4158
  }, d = !!c?.improved && !!n;
4159
- return /* @__PURE__ */ H(P, {
4159
+ return /* @__PURE__ */ U(N, {
4160
4160
  sx: {
4161
4161
  p: 2.5,
4162
4162
  borderRadius: 3,
@@ -4165,20 +4165,20 @@ function Ta({ client: e, schema: t, onApply: n, buttonLabel: r }) {
4165
4165
  bgcolor: "background.paper",
4166
4166
  boxShadow: "0 1px 3px rgba(0,0,0,0.06)"
4167
4167
  },
4168
- children: /* @__PURE__ */ U(fe, {
4168
+ children: /* @__PURE__ */ W(B, {
4169
4169
  spacing: 2,
4170
4170
  children: [
4171
- /* @__PURE__ */ H(P, {
4171
+ /* @__PURE__ */ U(N, {
4172
4172
  sx: {
4173
4173
  display: "flex",
4174
4174
  justifyContent: "flex-end",
4175
4175
  gap: 1.5
4176
4176
  },
4177
- children: /* @__PURE__ */ H(F, {
4177
+ children: /* @__PURE__ */ U(P, {
4178
4178
  variant: "contained",
4179
4179
  onClick: u,
4180
4180
  disabled: i,
4181
- startIcon: i ? /* @__PURE__ */ H(te, {
4181
+ startIcon: i ? /* @__PURE__ */ U(F, {
4182
4182
  size: 18,
4183
4183
  color: "inherit"
4184
4184
  }) : void 0,
@@ -4192,25 +4192,25 @@ function Ta({ client: e, schema: t, onApply: n, buttonLabel: r }) {
4192
4192
  children: r ?? "Review with AI"
4193
4193
  })
4194
4194
  }),
4195
- o && /* @__PURE__ */ H(N, {
4195
+ o && /* @__PURE__ */ U(te, {
4196
4196
  severity: "error",
4197
4197
  onClose: () => s(null),
4198
4198
  sx: { borderRadius: 2 },
4199
4199
  children: o
4200
4200
  }),
4201
- c && c.issues.length === 0 && /* @__PURE__ */ H(N, {
4201
+ c && c.issues.length === 0 && /* @__PURE__ */ U(te, {
4202
4202
  severity: "success",
4203
4203
  sx: { borderRadius: 2 },
4204
4204
  children: "No issues found"
4205
4205
  }),
4206
- c && c.issues.length > 0 && /* @__PURE__ */ H(se, {
4206
+ c && c.issues.length > 0 && /* @__PURE__ */ U(ce, {
4207
4207
  disablePadding: !0,
4208
4208
  sx: {
4209
4209
  display: "flex",
4210
4210
  flexDirection: "column",
4211
4211
  gap: 1
4212
4212
  },
4213
- children: c.issues.map((e, t) => /* @__PURE__ */ H(ce, {
4213
+ children: c.issues.map((e, t) => /* @__PURE__ */ U(le, {
4214
4214
  alignItems: "flex-start",
4215
4215
  sx: {
4216
4216
  p: 1.5,
@@ -4219,10 +4219,10 @@ function Ta({ client: e, schema: t, onApply: n, buttonLabel: r }) {
4219
4219
  borderColor: "divider",
4220
4220
  bgcolor: "action.hover"
4221
4221
  },
4222
- children: /* @__PURE__ */ U(fe, {
4222
+ children: /* @__PURE__ */ W(B, {
4223
4223
  spacing: .75,
4224
4224
  sx: { width: "100%" },
4225
- children: [/* @__PURE__ */ U(P, {
4225
+ children: [/* @__PURE__ */ W(N, {
4226
4226
  sx: {
4227
4227
  display: "flex",
4228
4228
  alignItems: "center",
@@ -4230,22 +4230,22 @@ function Ta({ client: e, schema: t, onApply: n, buttonLabel: r }) {
4230
4230
  gap: .75
4231
4231
  },
4232
4232
  children: [
4233
- /* @__PURE__ */ H(ee, {
4233
+ /* @__PURE__ */ U(ne, {
4234
4234
  size: "small",
4235
4235
  label: e.severity,
4236
- color: wa[e.severity],
4236
+ color: Ta[e.severity],
4237
4237
  sx: {
4238
4238
  textTransform: "capitalize",
4239
4239
  fontWeight: 600
4240
4240
  }
4241
4241
  }),
4242
- /* @__PURE__ */ H(ee, {
4242
+ /* @__PURE__ */ U(ne, {
4243
4243
  size: "small",
4244
4244
  variant: "outlined",
4245
4245
  label: e.kind,
4246
4246
  sx: { textTransform: "capitalize" }
4247
4247
  }),
4248
- e.field && /* @__PURE__ */ H(B, {
4248
+ e.field && /* @__PURE__ */ U(V, {
4249
4249
  variant: "caption",
4250
4250
  sx: {
4251
4251
  fontFamily: "monospace",
@@ -4254,19 +4254,19 @@ function Ta({ client: e, schema: t, onApply: n, buttonLabel: r }) {
4254
4254
  children: e.field
4255
4255
  })
4256
4256
  ]
4257
- }), /* @__PURE__ */ H(B, {
4257
+ }), /* @__PURE__ */ U(V, {
4258
4258
  variant: "body2",
4259
4259
  children: e.message
4260
4260
  })]
4261
4261
  })
4262
4262
  }, t))
4263
4263
  }),
4264
- d && /* @__PURE__ */ H(P, {
4264
+ d && /* @__PURE__ */ U(N, {
4265
4265
  sx: {
4266
4266
  display: "flex",
4267
4267
  justifyContent: "flex-end"
4268
4268
  },
4269
- children: /* @__PURE__ */ H(F, {
4269
+ children: /* @__PURE__ */ U(P, {
4270
4270
  variant: "outlined",
4271
4271
  onClick: () => n(c.improved),
4272
4272
  sx: {
@@ -4284,21 +4284,21 @@ function Ta({ client: e, schema: t, onApply: n, buttonLabel: r }) {
4284
4284
  });
4285
4285
  }
4286
4286
  // src/ai/react/AIVisionImport.tsx
4287
- var Ea = (e) => new Promise((t, n) => {
4287
+ var Da = (e) => new Promise((t, n) => {
4288
4288
  let r = new FileReader();
4289
4289
  r.onload = () => t(String(r.result || "")), r.onerror = () => n(r.error), r.readAsDataURL(e);
4290
- }), Da = (e, t) => t || (e || []).map((e) => ({
4290
+ }), Oa = (e, t) => t || (e || []).map((e) => ({
4291
4291
  id: e.id || e.props?.id,
4292
4292
  label: e.props?.MuiAttributes?.label,
4293
4293
  type: e.type
4294
4294
  })).filter((e) => !!e.id);
4295
- function Oa({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate: i, onFill: a, label: o, accept: s = "image/*" }) {
4295
+ function ka({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate: i, onFill: a, label: o, accept: s = "image/*" }) {
4296
4296
  let c = S.useRef(null), [l, u] = S.useState(""), [d, f] = S.useState(""), [p, m] = S.useState(!1), [h, g] = S.useState(null), _ = async (e) => {
4297
4297
  let t = e.target.files?.[0];
4298
4298
  if (t) {
4299
4299
  g(null);
4300
4300
  try {
4301
- u(await Ea(t)), f(t.name);
4301
+ u(await Da(t)), f(t.name);
4302
4302
  } catch {
4303
4303
  g("Could not read the file.");
4304
4304
  }
@@ -4308,7 +4308,7 @@ function Oa({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate:
4308
4308
  m(!0), g(null);
4309
4309
  try {
4310
4310
  if (t === "fill") {
4311
- let t = await e.extractFromImage(l, Da(n, r));
4311
+ let t = await e.extractFromImage(l, Oa(n, r));
4312
4312
  a?.(t || {});
4313
4313
  } else {
4314
4314
  let t = await e.generateFormFromImage(l);
@@ -4321,7 +4321,7 @@ function Oa({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate:
4321
4321
  }
4322
4322
  }
4323
4323
  }, y = o || (t === "fill" ? "Read document into form" : "Build form from image");
4324
- return /* @__PURE__ */ H(J, {
4324
+ return /* @__PURE__ */ U(J, {
4325
4325
  sx: {
4326
4326
  p: 2,
4327
4327
  border: "1px solid",
@@ -4329,10 +4329,10 @@ function Oa({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate:
4329
4329
  borderRadius: 2.5,
4330
4330
  bgcolor: "background.paper"
4331
4331
  },
4332
- children: /* @__PURE__ */ U(Re, {
4332
+ children: /* @__PURE__ */ W(ze, {
4333
4333
  spacing: 1.5,
4334
4334
  children: [
4335
- /* @__PURE__ */ H("input", {
4335
+ /* @__PURE__ */ U("input", {
4336
4336
  ref: c,
4337
4337
  type: "file",
4338
4338
  accept: s,
@@ -4340,9 +4340,9 @@ function Oa({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate:
4340
4340
  style: { display: "none" },
4341
4341
  "aria-label": "vision-file"
4342
4342
  }),
4343
- /* @__PURE__ */ H(ke, {
4343
+ /* @__PURE__ */ U(Ae, {
4344
4344
  variant: "outlined",
4345
- startIcon: /* @__PURE__ */ H(ot, {}),
4345
+ startIcon: /* @__PURE__ */ U(st, {}),
4346
4346
  onClick: () => c.current?.click(),
4347
4347
  sx: {
4348
4348
  borderRadius: 2,
@@ -4350,7 +4350,7 @@ function Oa({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate:
4350
4350
  },
4351
4351
  children: d || "Choose image / document"
4352
4352
  }),
4353
- l && s.includes("image") ? /* @__PURE__ */ H(J, {
4353
+ l && s.includes("image") ? /* @__PURE__ */ U(J, {
4354
4354
  component: "img",
4355
4355
  src: l,
4356
4356
  alt: "preview",
@@ -4363,14 +4363,14 @@ function Oa({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate:
4363
4363
  borderColor: "divider"
4364
4364
  }
4365
4365
  }) : null,
4366
- /* @__PURE__ */ H(ke, {
4366
+ /* @__PURE__ */ U(Ae, {
4367
4367
  variant: "contained",
4368
4368
  onClick: v,
4369
4369
  disabled: !l || p,
4370
- startIcon: p ? /* @__PURE__ */ H(at, {
4370
+ startIcon: p ? /* @__PURE__ */ U(ot, {
4371
4371
  size: 16,
4372
4372
  color: "inherit"
4373
- }) : /* @__PURE__ */ H(Ze, {}),
4373
+ }) : /* @__PURE__ */ U(Qe, {}),
4374
4374
  sx: {
4375
4375
  borderRadius: 2,
4376
4376
  textTransform: "none",
@@ -4379,11 +4379,11 @@ function Oa({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate:
4379
4379
  },
4380
4380
  children: y
4381
4381
  }),
4382
- h ? /* @__PURE__ */ H(je, {
4382
+ h ? /* @__PURE__ */ U(Me, {
4383
4383
  severity: "error",
4384
4384
  children: h
4385
4385
  }) : null,
4386
- /* @__PURE__ */ H(_e, {
4386
+ /* @__PURE__ */ U(_e, {
4387
4387
  variant: "caption",
4388
4388
  sx: { color: "text.secondary" },
4389
4389
  children: "Image is sent to your AI proxy for one-time processing."
@@ -4393,7 +4393,7 @@ function Oa({ client: e, mode: t = "generate", schema: n, fields: r, onGenerate:
4393
4393
  });
4394
4394
  }
4395
4395
  // src/ai/react/AIForm.tsx
4396
- function ka({ client: e, data: t, guid: n, patch: r, onSubmit: i, onChange: a, onSchemaChange: o, enableFill: s = !0, enableReview: c = !0, enableGenerate: l = !1, formRef: u, formProps: d }) {
4396
+ function Aa({ client: e, data: t, guid: n, patch: r, onSubmit: i, onChange: a, onSchemaChange: o, enableFill: s = !0, enableReview: c = !0, enableGenerate: l = !1, formRef: u, formProps: d }) {
4397
4397
  let [f, p] = S.useState(t), [m, h] = S.useState(r || {}), [g, _] = S.useState(null);
4398
4398
  S.useEffect(() => {
4399
4399
  p(t);
@@ -4411,8 +4411,8 @@ function ka({ client: e, data: t, guid: n, patch: r, onSubmit: i, onChange: a, o
4411
4411
  ...e || {}
4412
4412
  })), _(null);
4413
4413
  }, b = () => _(null);
4414
- return /* @__PURE__ */ U(P, { children: [
4415
- /* @__PURE__ */ U(fe, {
4414
+ return /* @__PURE__ */ W(N, { children: [
4415
+ /* @__PURE__ */ W(B, {
4416
4416
  direction: "row",
4417
4417
  spacing: 1,
4418
4418
  sx: {
@@ -4420,10 +4420,10 @@ function ka({ client: e, data: t, guid: n, patch: r, onSubmit: i, onChange: a, o
4420
4420
  flexWrap: "wrap"
4421
4421
  },
4422
4422
  children: [
4423
- l && /* @__PURE__ */ H(F, {
4423
+ l && /* @__PURE__ */ U(P, {
4424
4424
  size: "small",
4425
4425
  variant: "outlined",
4426
- startIcon: /* @__PURE__ */ H(R, { children: "auto_awesome" }),
4426
+ startIcon: /* @__PURE__ */ U(R, { children: "auto_awesome" }),
4427
4427
  onClick: () => _("generate"),
4428
4428
  sx: {
4429
4429
  borderRadius: 2,
@@ -4431,11 +4431,11 @@ function ka({ client: e, data: t, guid: n, patch: r, onSubmit: i, onChange: a, o
4431
4431
  },
4432
4432
  children: f.length ? "Edit with AI" : "Generate with AI"
4433
4433
  }),
4434
- s && !!f.length && /* @__PURE__ */ H(F, {
4434
+ s && !!f.length && /* @__PURE__ */ U(P, {
4435
4435
  size: "small",
4436
4436
  variant: "outlined",
4437
4437
  color: "secondary",
4438
- startIcon: /* @__PURE__ */ H(R, { children: "auto_fix_high" }),
4438
+ startIcon: /* @__PURE__ */ U(R, { children: "auto_fix_high" }),
4439
4439
  onClick: () => _("fill"),
4440
4440
  sx: {
4441
4441
  borderRadius: 2,
@@ -4443,10 +4443,10 @@ function ka({ client: e, data: t, guid: n, patch: r, onSubmit: i, onChange: a, o
4443
4443
  },
4444
4444
  children: "AI Fill"
4445
4445
  }),
4446
- c && !!f.length && /* @__PURE__ */ H(F, {
4446
+ c && !!f.length && /* @__PURE__ */ U(P, {
4447
4447
  size: "small",
4448
4448
  variant: "outlined",
4449
- startIcon: /* @__PURE__ */ H(R, { children: "fact_check" }),
4449
+ startIcon: /* @__PURE__ */ U(R, { children: "fact_check" }),
4450
4450
  onClick: () => _("review"),
4451
4451
  sx: {
4452
4452
  borderRadius: 2,
@@ -4456,7 +4456,7 @@ function ka({ client: e, data: t, guid: n, patch: r, onSubmit: i, onChange: a, o
4456
4456
  })
4457
4457
  ]
4458
4458
  }),
4459
- /* @__PURE__ */ H(ia, {
4459
+ /* @__PURE__ */ U(aa, {
4460
4460
  ...d,
4461
4461
  guid: n,
4462
4462
  data: f,
@@ -4465,64 +4465,64 @@ function ka({ client: e, data: t, guid: n, patch: r, onSubmit: i, onChange: a, o
4465
4465
  onChange: a,
4466
4466
  formRef: u
4467
4467
  }),
4468
- /* @__PURE__ */ U(ne, {
4468
+ /* @__PURE__ */ W(I, {
4469
4469
  open: g === "generate",
4470
4470
  onClose: b,
4471
4471
  maxWidth: "sm",
4472
4472
  fullWidth: !0,
4473
4473
  children: [
4474
- /* @__PURE__ */ H(ie, { children: f.length ? "Edit form with AI" : "Generate form with AI" }),
4475
- /* @__PURE__ */ H(re, {
4474
+ /* @__PURE__ */ U(L, { children: f.length ? "Edit form with AI" : "Generate form with AI" }),
4475
+ /* @__PURE__ */ U(ie, {
4476
4476
  dividers: !0,
4477
- children: /* @__PURE__ */ H(va, {
4477
+ children: /* @__PURE__ */ U(ya, {
4478
4478
  client: e,
4479
4479
  current: f.length ? f : void 0,
4480
4480
  onGenerate: v
4481
4481
  })
4482
4482
  }),
4483
- /* @__PURE__ */ H(I, { children: /* @__PURE__ */ H(F, {
4483
+ /* @__PURE__ */ U(re, { children: /* @__PURE__ */ U(P, {
4484
4484
  onClick: b,
4485
4485
  children: "Close"
4486
4486
  }) })
4487
4487
  ]
4488
4488
  }),
4489
- /* @__PURE__ */ U(ne, {
4489
+ /* @__PURE__ */ W(I, {
4490
4490
  open: g === "fill",
4491
4491
  onClose: b,
4492
4492
  maxWidth: "sm",
4493
4493
  fullWidth: !0,
4494
4494
  children: [
4495
- /* @__PURE__ */ H(ie, { children: "AI Fill — paste text to populate the form" }),
4496
- /* @__PURE__ */ H(re, {
4495
+ /* @__PURE__ */ U(L, { children: "AI Fill — paste text to populate the form" }),
4496
+ /* @__PURE__ */ U(ie, {
4497
4497
  dividers: !0,
4498
- children: /* @__PURE__ */ H(ya, {
4498
+ children: /* @__PURE__ */ U(ba, {
4499
4499
  client: e,
4500
4500
  schema: f,
4501
4501
  onFill: y
4502
4502
  })
4503
4503
  }),
4504
- /* @__PURE__ */ H(I, { children: /* @__PURE__ */ H(F, {
4504
+ /* @__PURE__ */ U(re, { children: /* @__PURE__ */ U(P, {
4505
4505
  onClick: b,
4506
4506
  children: "Close"
4507
4507
  }) })
4508
4508
  ]
4509
4509
  }),
4510
- /* @__PURE__ */ U(ne, {
4510
+ /* @__PURE__ */ W(I, {
4511
4511
  open: g === "review",
4512
4512
  onClose: b,
4513
4513
  maxWidth: "sm",
4514
4514
  fullWidth: !0,
4515
4515
  children: [
4516
- /* @__PURE__ */ H(ie, { children: "AI Review" }),
4517
- /* @__PURE__ */ H(re, {
4516
+ /* @__PURE__ */ U(L, { children: "AI Review" }),
4517
+ /* @__PURE__ */ U(ie, {
4518
4518
  dividers: !0,
4519
- children: /* @__PURE__ */ H(Ta, {
4519
+ children: /* @__PURE__ */ U(Ea, {
4520
4520
  client: e,
4521
4521
  schema: f,
4522
4522
  onApply: v
4523
4523
  })
4524
4524
  }),
4525
- /* @__PURE__ */ H(I, { children: /* @__PURE__ */ H(F, {
4525
+ /* @__PURE__ */ U(re, { children: /* @__PURE__ */ U(P, {
4526
4526
  onClick: b,
4527
4527
  children: "Close"
4528
4528
  }) })
@@ -4530,4 +4530,4 @@ function ka({ client: e, data: t, guid: n, patch: r, onSubmit: i, onChange: a, o
4530
4530
  })
4531
4531
  ] });
4532
4532
  }
4533
- export { Yr as A, X as B, si as C, ii as D, li as E, Kr as F, ut as G, ft as H, Ur as I, st as K, zr as L, Gr as M, Vr as N, ri as O, Hr as P, mn as R, _i as S, ci as T, Z as U, mt as V, ht as W, Di as _, ba as a, gi as b, _a as c, aa as d, Ni as f, Oi as g, Pi as h, Ca as i, Wr as j, ei as k, fa as l, ia as m, Oa as n, ya as o, Mi as p, Ta as r, va as s, ka as t, ua as u, wi as v, oi as w, di as x, Ei as y, Y as z };
4533
+ export { Xr as A, X as B, ci as C, ai as D, ui as E, qr as F, dt as G, pt as H, Wr as I, ct as K, Br as L, Kr as M, Hr as N, ii as O, Ur as P, hn as R, vi as S, li as T, Z as U, ht as V, gt as W, Oi as _, xa as a, _i as b, va as c, oa as d, Pi as f, ki as g, Fi as h, wa as i, Gr as j, ti as k, pa as l, aa as m, ka as n, ba as o, Ni as p, Ea as r, ya as s, Aa as t, da as u, Ti as v, si as w, fi as x, Di as y, Y as z };