@epam/ai-dial-ui-kit 0.3.0-rc.53 → 0.3.0-rc.54

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.
@@ -1,11 +1,11 @@
1
- import { jsx as i, jsxs as w, Fragment as pe } from "react/jsx-runtime";
2
- import x from "classnames";
1
+ import { jsx as i, jsxs as x, Fragment as pe } from "react/jsx-runtime";
2
+ import w from "classnames";
3
3
  import { useFloating as Dt, offset as hr, flip as mr, shift as Cr, arrow as vn, autoUpdate as br, useHover as vr, useFocus as yn, useDismiss as St, useRole as Lt, useInteractions as It, useMergeRefs as yr, FloatingPortal as Tt, FloatingArrow as wn, autoPlacement as xn, size as Dn, useClick as Sn, FloatingFocusManager as wr, FloatingOverlay as Ln } from "@floating-ui/react";
4
4
  import * as E from "react";
5
5
  import { createContext as xr, useState as W, useRef as le, useMemo as $, useContext as Dr, forwardRef as Sr, isValidElement as Ot, cloneElement as qe, useCallback as A, useEffect as ne, memo as In, useLayoutEffect as Tn, useId as Lr, Children as On } from "react";
6
6
  import { IconInfoCircle as Ir, IconCircleCheck as En, IconAlertTriangle as Nn, IconAlertCircle as kn, IconX as _e, IconMinus as Rn, IconCheck as Tr, IconExclamationCircle as Et, IconClipboardX as Or, IconChevronsLeft as Pn, IconChevronsRight as Mn, IconGripVertical as Vn, IconFile as Hn, IconFileTypeZip as An, IconFileTypeXml as Fn, IconFileTypeXls as _n, IconFileTypeVue as zn, IconFileTypeTxt as jn, IconFileTypeTsx as Bn, IconFileTypeTs as Gn, IconFileTypeSvg as $n, IconFileTypeSql as Wn, IconFileTypeRs as Un, IconFileTypePpt as qn, IconFileTypePng as Zn, IconFileTypePhp as Xn, IconFileTypePdf as Yn, IconFileTypeJsx as Kn, IconFileTypeJs as Jn, IconFileTypeJpg as Qn, IconFileTypeHtml as eo, IconFileTypeDocx as to, IconFileTypeDoc as ro, IconFileTypeCsv as no, IconFileTypeCss as oo, IconFileTypeBmp as so, IconArrowUpRight as io, IconFolder as ao, IconChevronDown as Er, IconDotsVertical as lo, IconChevronRight as co, IconTrashX as Nr, IconEyeOff as uo, IconEye as fo, IconSearch as po, IconPlus as go } from "@tabler/icons-react";
7
7
  import { createPortal as ho } from "react-dom";
8
- const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "text-error dial-tiny mt-1", children: e }), U = ({ icon: e, className: t }) => e ? /* @__PURE__ */ i("span", { className: x("flex-shrink-0", t), children: e }) : null, mo = 7, Co = 2, kr = xr(null), Rr = () => {
8
+ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "text-error dial-tiny mt-1", children: e }), U = ({ icon: e, className: t }) => e ? /* @__PURE__ */ i("span", { className: w("flex-shrink-0", t), children: e }) : null, mo = 7, Co = 2, kr = xr(null), Rr = () => {
9
9
  const e = Dr(kr);
10
10
  if (e == null)
11
11
  throw new Error("Tooltip components must be wrapped in <Tooltip />");
@@ -34,14 +34,14 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
34
34
  element: l
35
35
  })
36
36
  ]
37
- }), f = vr(u.context, {
37
+ }), p = vr(u.context, {
38
38
  move: !1,
39
39
  enabled: n == null,
40
40
  mouseOnly: r,
41
41
  delay: { open: 500, close: 0 }
42
42
  }), g = yn(u.context, {
43
43
  enabled: n == null
44
- }), p = St(u.context), C = Lt(u.context, { role: "tooltip" }), h = It([f, g, p, C]);
44
+ }), f = St(u.context), C = Lt(u.context, { role: "tooltip" }), h = It([p, g, f, C]);
45
45
  return $(
46
46
  () => ({
47
47
  open: c,
@@ -60,7 +60,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
60
60
  return /* @__PURE__ */ i(kr.Provider, { value: r, children: e });
61
61
  }, Mr = Sr(function({ style: t, ...r }, n) {
62
62
  const o = Rr(), s = yr([o.refs.setFloating, n]);
63
- return o.open ? /* @__PURE__ */ i(Tt, { id: "tooltip-portal", children: /* @__PURE__ */ w(
63
+ return o.open ? /* @__PURE__ */ i(Tt, { id: "tooltip-portal", children: /* @__PURE__ */ x(
64
64
  "div",
65
65
  {
66
66
  ref: s,
@@ -69,7 +69,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
69
69
  ...t
70
70
  },
71
71
  ...o.getFloatingProps(r),
72
- className: x(
72
+ className: w(
73
73
  "z-[55] whitespace-pre-wrap break-words rounded border border-primary bg-blackout px-2 py-1 dial-tiny shadow max-w-[300px]",
74
74
  o.getFloatingProps(r).className
75
75
  ),
@@ -113,12 +113,12 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
113
113
  triggerClassName: n,
114
114
  contentClassName: o,
115
115
  ...s
116
- }) => /* @__PURE__ */ w(Pr, { ...s, children: [
117
- /* @__PURE__ */ i(Vr, { className: x(n, "truncate"), children: r }),
116
+ }) => /* @__PURE__ */ x(Pr, { ...s, children: [
117
+ /* @__PURE__ */ i(Vr, { className: w(n, "truncate"), children: r }),
118
118
  /* @__PURE__ */ i(
119
119
  Mr,
120
120
  {
121
- className: x(
121
+ className: w(
122
122
  "text-primary",
123
123
  o,
124
124
  "max-w-[300px]",
@@ -247,12 +247,12 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
247
247
  }
248
248
  h === "[" ? a++ : h === "]" ? a-- : h === "(" ? l++ : h === ")" && l--;
249
249
  }
250
- const u = s.length === 0 ? o : o.substring(c), f = Io(u), g = f !== u, p = d && d > c ? d - c : void 0;
250
+ const u = s.length === 0 ? o : o.substring(c), p = Io(u), g = p !== u, f = d && d > c ? d - c : void 0;
251
251
  return {
252
252
  modifiers: s,
253
253
  hasImportantModifier: g,
254
- baseClassName: f,
255
- maybePostfixModifierPosition: p
254
+ baseClassName: p,
255
+ maybePostfixModifierPosition: f
256
256
  };
257
257
  };
258
258
  if (t) {
@@ -299,13 +299,13 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
299
299
  let c = "";
300
300
  for (let d = l.length - 1; d >= 0; d -= 1) {
301
301
  const u = l[d], {
302
- isExternal: f,
302
+ isExternal: p,
303
303
  modifiers: g,
304
- hasImportantModifier: p,
304
+ hasImportantModifier: f,
305
305
  baseClassName: C,
306
306
  maybePostfixModifierPosition: h
307
307
  } = r(u);
308
- if (f) {
308
+ if (p) {
309
309
  c = u + (c.length > 0 ? " " + c : c);
310
310
  continue;
311
311
  }
@@ -321,7 +321,7 @@ const De = ({ errorText: e }) => e && /* @__PURE__ */ i("span", { className: "te
321
321
  }
322
322
  D = !1;
323
323
  }
324
- const b = s(g).join(":"), y = p ? b + gt : b, O = y + v;
324
+ const b = s(g).join(":"), y = f ? b + gt : b, O = y + v;
325
325
  if (a.includes(O))
326
326
  continue;
327
327
  a.push(O);
@@ -351,7 +351,7 @@ const Ar = (e) => {
351
351
  function Ro(e, ...t) {
352
352
  let r, n, o, s = a;
353
353
  function a(c) {
354
- const d = t.reduce((u, f) => f(u), e());
354
+ const d = t.reduce((u, p) => p(u), e());
355
355
  return r = Oo(d), n = r.cache.get, o = r.cache.set, s = l, l(c);
356
356
  }
357
357
  function l(c) {
@@ -380,7 +380,7 @@ const Z = (e) => {
380
380
  const n = _r.exec(e);
381
381
  return n ? n[1] ? t(n[1]) : r : !1;
382
382
  }, jr = (e) => e === "position" || e === "percentage", Br = (e) => e === "image" || e === "url", Gr = (e) => e === "length" || e === "size" || e === "bg-size", $r = (e) => e === "length", Xo = (e) => e === "number", Yo = (e) => e === "family-name", Wr = (e) => e === "shadow", Ko = () => {
383
- const e = Z("color"), t = Z("font"), r = Z("text"), n = Z("font-weight"), o = Z("tracking"), s = Z("leading"), a = Z("breakpoint"), l = Z("container"), c = Z("spacing"), d = Z("radius"), u = Z("shadow"), f = Z("inset-shadow"), g = Z("text-shadow"), p = Z("drop-shadow"), C = Z("blur"), h = Z("perspective"), D = Z("aspect"), v = Z("ease"), b = Z("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
383
+ const e = Z("color"), t = Z("font"), r = Z("text"), n = Z("font-weight"), o = Z("tracking"), s = Z("leading"), a = Z("breakpoint"), l = Z("container"), c = Z("spacing"), d = Z("radius"), u = Z("shadow"), p = Z("inset-shadow"), g = Z("text-shadow"), f = Z("drop-shadow"), C = Z("blur"), h = Z("perspective"), D = Z("aspect"), v = Z("ease"), b = Z("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
384
384
  "center",
385
385
  "top",
386
386
  "bottom",
@@ -1787,7 +1787,7 @@ const Z = (e) => {
1787
1787
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
1788
1788
  */
1789
1789
  "inset-shadow": [{
1790
- "inset-shadow": ["none", f, Ge, Be]
1790
+ "inset-shadow": ["none", p, Ge, Be]
1791
1791
  }],
1792
1792
  /**
1793
1793
  * Inset Box Shadow Color
@@ -2126,7 +2126,7 @@ const Z = (e) => {
2126
2126
  // Deprecated since Tailwind CSS v4.0.0
2127
2127
  "",
2128
2128
  "none",
2129
- p,
2129
+ f,
2130
2130
  Ge,
2131
2131
  Be
2132
2132
  ]
@@ -2851,7 +2851,7 @@ const Z = (e) => {
2851
2851
  };
2852
2852
  }, Jo = /* @__PURE__ */ Ro(Ko);
2853
2853
  function _(...e) {
2854
- return Jo(x(e));
2854
+ return Jo(w(e));
2855
2855
  }
2856
2856
  const Pe = ({
2857
2857
  fieldTitle: e,
@@ -2860,7 +2860,7 @@ const Pe = ({
2860
2860
  optionalText: n,
2861
2861
  cssClass: o,
2862
2862
  description: s
2863
- }) => e ? /* @__PURE__ */ w(
2863
+ }) => e ? /* @__PURE__ */ x(
2864
2864
  "label",
2865
2865
  {
2866
2866
  className: _(
@@ -2900,29 +2900,29 @@ const Qo = {
2900
2900
  hideTitleOnMobile: d,
2901
2901
  ariaLabel: u
2902
2902
  }) => {
2903
- const f = x(
2903
+ const p = w(
2904
2904
  "dial-small-semi",
2905
2905
  l ? "mr-2" : "",
2906
2906
  c ? "ml-2" : "",
2907
2907
  d ? "hidden sm:inline" : "inline",
2908
2908
  n
2909
- ), g = x(
2909
+ ), g = w(
2910
2910
  t && Qo[t],
2911
2911
  r,
2912
2912
  "focus-visible:outline outline-offset-0"
2913
2913
  );
2914
- return /* @__PURE__ */ w(
2914
+ return /* @__PURE__ */ x(
2915
2915
  "button",
2916
2916
  {
2917
2917
  ref: o,
2918
2918
  type: "button",
2919
2919
  className: g,
2920
- onClick: (p) => s?.(p),
2920
+ onClick: (f) => s?.(f),
2921
2921
  disabled: a,
2922
2922
  "aria-label": e || u,
2923
2923
  children: [
2924
2924
  /* @__PURE__ */ i(U, { icon: c }),
2925
- e && /* @__PURE__ */ i("span", { className: f, children: e }),
2925
+ e && /* @__PURE__ */ i("span", { className: p, children: e }),
2926
2926
  /* @__PURE__ */ i(U, { icon: l })
2927
2927
  ]
2928
2928
  }
@@ -2945,17 +2945,17 @@ const es = {
2945
2945
  cssClass: r,
2946
2946
  closable: n = !1,
2947
2947
  onClose: o
2948
- }) => /* @__PURE__ */ w(
2948
+ }) => /* @__PURE__ */ x(
2949
2949
  "div",
2950
2950
  {
2951
2951
  role: "alert",
2952
- className: x(
2952
+ className: w(
2953
2953
  rs,
2954
2954
  ts[e],
2955
2955
  r
2956
2956
  ),
2957
2957
  children: [
2958
- /* @__PURE__ */ w("div", { className: "flex items-center gap-2", children: [
2958
+ /* @__PURE__ */ x("div", { className: "flex items-center gap-2", children: [
2959
2959
  /* @__PURE__ */ i(U, { icon: es[e] }),
2960
2960
  /* @__PURE__ */ i("div", { className: "text-primary", children: t })
2961
2961
  ] }),
@@ -2980,7 +2980,7 @@ const es = {
2980
2980
  "div",
2981
2981
  {
2982
2982
  role: "status",
2983
- className: x({
2983
+ className: w({
2984
2984
  [ns]: !0,
2985
2985
  "w-full h-full": n,
2986
2986
  [t || ""]: !!t
@@ -2993,7 +2993,7 @@ const es = {
2993
2993
  {
2994
2994
  width: e,
2995
2995
  height: e,
2996
- className: x(os, r),
2996
+ className: w(os, r),
2997
2997
  role: "img",
2998
2998
  "aria-label": o
2999
2999
  }
@@ -3011,14 +3011,14 @@ const es = {
3011
3011
  hideTooltip: n,
3012
3012
  ...o
3013
3013
  }) => {
3014
- const s = le(null), [a, l] = W(!1), [c, d] = W(""), u = le(null), f = () => {
3014
+ const s = le(null), [a, l] = W(!1), [c, d] = W(""), u = le(null), p = () => {
3015
3015
  const h = s.current;
3016
3016
  if (!h) return;
3017
3017
  d(h.textContent ?? "");
3018
3018
  const D = h.clientWidth, v = h.scrollWidth, b = Math.ceil(h.getBoundingClientRect().width);
3019
3019
  l(v > D || v > b);
3020
3020
  }, g = A(() => {
3021
- u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(f);
3021
+ u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(p);
3022
3022
  }, []);
3023
3023
  ne(() => {
3024
3024
  g();
@@ -3029,11 +3029,11 @@ const es = {
3029
3029
  window.removeEventListener("resize", h), D && D.disconnect(), u.current && cancelAnimationFrame(u.current);
3030
3030
  };
3031
3031
  }, [e, g]);
3032
- const p = $(
3032
+ const f = $(
3033
3033
  () => typeof e == "string" ? e : c,
3034
3034
  [c, e]
3035
- ), C = $(() => n ? "" : a ? p : "", [p, n, a]);
3036
- return /* @__PURE__ */ w(Pr, { ...o, children: [
3035
+ ), C = $(() => n ? "" : a ? f : "", [f, n, a]);
3036
+ return /* @__PURE__ */ x(Pr, { ...o, children: [
3037
3037
  /* @__PURE__ */ i(
3038
3038
  Vr,
3039
3039
  {
@@ -3048,7 +3048,7 @@ const es = {
3048
3048
  "block truncate flex-1 min-w-0 max-w-full",
3049
3049
  t
3050
3050
  ),
3051
- "aria-label": a ? p : void 0,
3051
+ "aria-label": a ? f : void 0,
3052
3052
  onMouseEnter: g,
3053
3053
  onFocus: g,
3054
3054
  children: e
@@ -3083,16 +3083,16 @@ const es = {
3083
3083
  a?.(g.target.checked, t);
3084
3084
  },
3085
3085
  [a, t]
3086
- ), d = x(
3086
+ ), d = w(
3087
3087
  "flex flex-row items-center cursor-pointer text-accent-primary small-medium flex-1 min-w-0",
3088
3088
  `${r || n ? "" : 'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded before:mr-2'}`,
3089
3089
  o ? "pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4" : "",
3090
3090
  l
3091
- ), u = x(
3091
+ ), u = w(
3092
3092
  "mr-2 border rounded",
3093
3093
  o ? "bg-layer-4 border-icon-secondary" : ""
3094
3094
  );
3095
- return /* @__PURE__ */ w("label", { className: d, htmlFor: t, children: [
3095
+ return /* @__PURE__ */ x("label", { className: d, htmlFor: t, children: [
3096
3096
  n ? /* @__PURE__ */ i(Rn, { className: u, ...X }) : r ? /* @__PURE__ */ i(Tr, { className: u, ...X }) : null,
3097
3097
  e && (typeof e == "string" ? /* @__PURE__ */ i(be, { text: e, cssClass: "text-primary" }) : e),
3098
3098
  /* @__PURE__ */ i(
@@ -3156,16 +3156,16 @@ const as = (e, t) => {
3156
3156
  onChangeStep: n
3157
3157
  }) => {
3158
3158
  const o = "h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny border-t-2 cursor-pointer", s = "w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white", a = () => r === e.id && e.status === ae.ERROR ? /* @__PURE__ */ i(Et, { stroke: 2, size: 16 }) : r !== e.id && e.status === ae.VALID ? /* @__PURE__ */ i(Tr, { stroke: 2, size: 16 }) : t + 1;
3159
- return /* @__PURE__ */ w(
3159
+ return /* @__PURE__ */ x(
3160
3160
  "button",
3161
3161
  {
3162
- className: x(o, as(e, r)),
3162
+ className: w(o, as(e, r)),
3163
3163
  onClick: () => n(e.id),
3164
3164
  children: [
3165
3165
  /* @__PURE__ */ i(
3166
3166
  "span",
3167
3167
  {
3168
- className: x(s, ls(e, r)),
3168
+ className: w(s, ls(e, r)),
3169
3169
  children: a()
3170
3170
  }
3171
3171
  ),
@@ -3205,20 +3205,20 @@ const as = (e, t) => {
3205
3205
  onChange: d,
3206
3206
  descriptionCssClass: u
3207
3207
  }) => {
3208
- const f = `${s}-desc`, g = x(
3208
+ const p = `${s}-desc`, g = w(
3209
3209
  "dial-small cursor-pointer",
3210
3210
  c ? "text-secondary" : "text-primary",
3211
3211
  l
3212
- ), p = x(
3212
+ ), f = w(
3213
3213
  "cursor-pointer dial-input-radio",
3214
3214
  r && "mr-2",
3215
3215
  a
3216
- ), C = x("flex flex-col", !!n && "mb-2"), h = x(
3216
+ ), C = w("flex flex-col", !!n && "mb-2"), h = w(
3217
3217
  "dial-tiny mt-2 ml-[26px] text-secondary",
3218
3218
  u
3219
3219
  );
3220
- return /* @__PURE__ */ w("div", { className: C, children: [
3221
- /* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
3220
+ return /* @__PURE__ */ x("div", { className: C, children: [
3221
+ /* @__PURE__ */ x("div", { className: "flex flex-row items-center", children: [
3222
3222
  /* @__PURE__ */ i(
3223
3223
  "input",
3224
3224
  {
@@ -3228,8 +3228,8 @@ const as = (e, t) => {
3228
3228
  value: t,
3229
3229
  checked: o,
3230
3230
  disabled: c,
3231
- "aria-describedby": o && n ? f : void 0,
3232
- className: p,
3231
+ "aria-describedby": o && n ? p : void 0,
3232
+ className: f,
3233
3233
  onChange: (v) => {
3234
3234
  c || v.target.checked && d?.(t);
3235
3235
  }
@@ -3237,7 +3237,7 @@ const as = (e, t) => {
3237
3237
  ),
3238
3238
  r ? /* @__PURE__ */ i("label", { className: g, htmlFor: s, children: r }) : null
3239
3239
  ] }),
3240
- o && n && /* @__PURE__ */ i("div", { id: f, className: h, children: n })
3240
+ o && n && /* @__PURE__ */ i("div", { id: p, className: h, children: n })
3241
3241
  ] });
3242
3242
  };
3243
3243
  var Ze = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(Ze || {});
@@ -3256,9 +3256,9 @@ const us = "w-full flex", fs = {
3256
3256
  cssClass: c,
3257
3257
  labelCssClass: d,
3258
3258
  errorCssClass: u,
3259
- childrenCssClass: f,
3259
+ childrenCssClass: p,
3260
3260
  captionDescription: g,
3261
- readonly: p,
3261
+ readonly: f,
3262
3262
  value: C,
3263
3263
  defaultEmptyText: h,
3264
3264
  children: D
@@ -3282,7 +3282,7 @@ const us = "w-full flex", fs = {
3282
3282
  children: s
3283
3283
  }
3284
3284
  ), [s, u, y]), B = A(() => C ? typeof C == "string" || typeof C == "number" ? /* @__PURE__ */ i("span", { "aria-readonly": "true", children: C }) : C : /* @__PURE__ */ i("span", { "aria-readonly": "true", children: h ?? "None" }), [C, h]);
3285
- return /* @__PURE__ */ w(
3285
+ return /* @__PURE__ */ x(
3286
3286
  "div",
3287
3287
  {
3288
3288
  role: "group",
@@ -3315,8 +3315,8 @@ const us = "w-full flex", fs = {
3315
3315
  )
3316
3316
  }
3317
3317
  ),
3318
- /* @__PURE__ */ w("div", { className: _("min-w-0 w-full", f), children: [
3319
- p ? /* @__PURE__ */ i("div", { className: "dial-input px-3 py-2", children: B() }) : D,
3318
+ /* @__PURE__ */ x("div", { className: _("min-w-0 w-full", p), children: [
3319
+ f ? /* @__PURE__ */ i("div", { className: "dial-input px-3 py-2", children: B() }) : D,
3320
3320
  g && /* @__PURE__ */ i(
3321
3321
  "div",
3322
3322
  {
@@ -3350,9 +3350,9 @@ const ps = "flex", gs = "pb-1 mt-2", hs = {
3350
3350
  groupLabelCssClass: c,
3351
3351
  formItemChildrenCssClass: d,
3352
3352
  labelCssClass: u,
3353
- disabled: f,
3353
+ disabled: p,
3354
3354
  elementId: g,
3355
- radioButtons: p,
3355
+ radioButtons: f,
3356
3356
  activeRadioButton: C,
3357
3357
  orientation: h,
3358
3358
  onChange: D
@@ -3369,13 +3369,13 @@ const ps = "flex", gs = "pb-1 mt-2", hs = {
3369
3369
  {
3370
3370
  role: "radiogroup",
3371
3371
  "aria-label": e,
3372
- "aria-disabled": f || void 0,
3372
+ "aria-disabled": p || void 0,
3373
3373
  className: _(
3374
3374
  ps,
3375
3375
  hs[h],
3376
3376
  s
3377
3377
  ),
3378
- children: p.map((v) => /* @__PURE__ */ w(
3378
+ children: f.map((v) => /* @__PURE__ */ x(
3379
3379
  "div",
3380
3380
  {
3381
3381
  className: _(
@@ -3390,7 +3390,7 @@ const ps = "flex", gs = "pb-1 mt-2", hs = {
3390
3390
  name: g,
3391
3391
  value: v.id,
3392
3392
  inputId: v.id,
3393
- disabled: f,
3393
+ disabled: p,
3394
3394
  cssClass: t,
3395
3395
  labelCssClass: _(
3396
3396
  u,
@@ -3422,7 +3422,7 @@ const ps = "flex", gs = "pb-1 mt-2", hs = {
3422
3422
  icon: e,
3423
3423
  title: t,
3424
3424
  description: r
3425
- }) => /* @__PURE__ */ w("div", { className: "h-full w-full flex flex-col items-center justify-center text-secondary", children: [
3425
+ }) => /* @__PURE__ */ x("div", { className: "h-full w-full flex flex-col items-center justify-center text-secondary", children: [
3426
3426
  e || /* @__PURE__ */ i(Or, { width: 60, height: 60 }),
3427
3427
  /* @__PURE__ */ i("span", { className: "dial-small mt-2 text-primary", children: t }),
3428
3428
  r && /* @__PURE__ */ i("span", { className: "mt-1 text-primary", children: r })
@@ -3435,20 +3435,20 @@ const ps = "flex", gs = "pb-1 mt-2", hs = {
3435
3435
  titleCssClass: s,
3436
3436
  additionalButtons: a
3437
3437
  }) => {
3438
- const [l, c] = W(r), [d, u] = W(!0), f = x([
3438
+ const [l, c] = W(r), [d, u] = W(!0), p = w([
3439
3439
  "transform rotate-180 [writing-mode:tb-rl]",
3440
3440
  d && "hidden",
3441
3441
  s
3442
- ]), g = x([
3442
+ ]), g = w([
3443
3443
  "flex flex-row gap-2 cursor-pointer text-secondary",
3444
3444
  d ? "justify-end" : "justify-center"
3445
- ]), p = () => {
3445
+ ]), f = () => {
3446
3446
  c(d ? bs : r), u(!d);
3447
3447
  };
3448
- return /* @__PURE__ */ w(
3448
+ return /* @__PURE__ */ x(
3449
3449
  "div",
3450
3450
  {
3451
- className: x([
3451
+ className: w([
3452
3452
  "rounded p-4 flex flex-col justify-between overflow-y-auto flex-shrink-0",
3453
3453
  e
3454
3454
  ]),
@@ -3457,21 +3457,21 @@ const ps = "flex", gs = "pb-1 mt-2", hs = {
3457
3457
  /* @__PURE__ */ i(
3458
3458
  "div",
3459
3459
  {
3460
- className: x([
3460
+ className: w([
3461
3461
  "flex-1 min-h-0 overflow-auto",
3462
3462
  !d && "hidden"
3463
3463
  ]),
3464
3464
  children: t
3465
3465
  }
3466
3466
  ),
3467
- /* @__PURE__ */ i("div", { className: f, children: n }),
3468
- /* @__PURE__ */ w("div", { className: g, children: [
3467
+ /* @__PURE__ */ i("div", { className: p, children: n }),
3468
+ /* @__PURE__ */ x("div", { className: g, children: [
3469
3469
  d && a,
3470
3470
  /* @__PURE__ */ i(
3471
3471
  Q,
3472
3472
  {
3473
3473
  cssClass: "hover:text-icon-accent-primary",
3474
- onClick: p,
3474
+ onClick: f,
3475
3475
  iconBefore: d ? /* @__PURE__ */ i(
3476
3476
  Pn,
3477
3477
  {
@@ -3496,13 +3496,13 @@ const ps = "flex", gs = "pb-1 mt-2", hs = {
3496
3496
  text: t,
3497
3497
  children: r,
3498
3498
  postfix: n
3499
- }) => /* @__PURE__ */ w(
3499
+ }) => /* @__PURE__ */ x(
3500
3500
  "div",
3501
3501
  {
3502
- className: x("flex flex-col", r ? "" : "max-w-[200px]"),
3502
+ className: w("flex flex-col", r ? "" : "max-w-[200px]"),
3503
3503
  children: [
3504
3504
  /* @__PURE__ */ i("label", { className: "dial-tiny mb-2 text-secondary", children: e }),
3505
- r || /* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
3505
+ r || /* @__PURE__ */ x("div", { className: "flex flex-row items-center", children: [
3506
3506
  /* @__PURE__ */ i(Le, { triggerClassName: "text-primary", tooltip: t, children: t }),
3507
3507
  n || null
3508
3508
  ] })
@@ -3527,7 +3527,7 @@ const vs = {
3527
3527
  s ? "border" : "border-transparent",
3528
3528
  t
3529
3529
  );
3530
- return /* @__PURE__ */ w("div", { className: l, children: [
3530
+ return /* @__PURE__ */ x("div", { className: l, children: [
3531
3531
  /* @__PURE__ */ i(U, { icon: o }),
3532
3532
  /* @__PURE__ */ i(be, { text: e }),
3533
3533
  r && /* @__PURE__ */ i(
@@ -3618,7 +3618,7 @@ function Zr(e, t, r) {
3618
3618
  throw new Error(process.env.NODE_ENV === "production" ? se(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
3619
3619
  return s;
3620
3620
  }
3621
- function f(h) {
3621
+ function p(h) {
3622
3622
  if (typeof h != "function")
3623
3623
  throw new Error(process.env.NODE_ENV === "production" ? se(4) : "Expected the listener to be a function. Instead, received: '" + Te(h) + "'");
3624
3624
  if (c)
@@ -3652,7 +3652,7 @@ function Zr(e, t, r) {
3652
3652
  }
3653
3653
  return h;
3654
3654
  }
3655
- function p(h) {
3655
+ function f(h) {
3656
3656
  if (typeof h != "function")
3657
3657
  throw new Error(process.env.NODE_ENV === "production" ? se(10) : "Expected the nextReducer to be a function. Instead, received: '" + Te(h));
3658
3658
  o = h, g({
@@ -3660,7 +3660,7 @@ function Zr(e, t, r) {
3660
3660
  });
3661
3661
  }
3662
3662
  function C() {
3663
- var h, D = f;
3663
+ var h, D = p;
3664
3664
  return h = {
3665
3665
  /**
3666
3666
  * The minimal observable subscription method.
@@ -3690,9 +3690,9 @@ function Zr(e, t, r) {
3690
3690
  type: Xt.INIT
3691
3691
  }), n = {
3692
3692
  dispatch: g,
3693
- subscribe: f,
3693
+ subscribe: p,
3694
3694
  getState: u,
3695
- replaceReducer: p
3695
+ replaceReducer: f
3696
3696
  }, n[qt] = C, n;
3697
3697
  }
3698
3698
  function N(e, t, ...r) {
@@ -3782,11 +3782,11 @@ function ks(e) {
3782
3782
  if (g == null)
3783
3783
  return;
3784
3784
  Ms(g), c.pinSource(d);
3785
- const p = c.getSourceType(d);
3785
+ const f = c.getSourceType(d);
3786
3786
  return {
3787
3787
  type: Je,
3788
3788
  payload: {
3789
- itemType: p,
3789
+ itemType: f,
3790
3790
  item: g,
3791
3791
  sourceId: d,
3792
3792
  clientOffset: s || null,
@@ -4902,8 +4902,8 @@ function bt(e, t, r, n) {
4902
4902
  const d = s[c];
4903
4903
  if (!l(d))
4904
4904
  return !1;
4905
- const u = e[d], f = t[d];
4906
- if (o = void 0, o === !1 || o === void 0 && u !== f)
4905
+ const u = e[d], p = t[d];
4906
+ if (o = void 0, o === !1 || o === void 0 && u !== p)
4907
4907
  return !1;
4908
4908
  }
4909
4909
  return !0;
@@ -5281,35 +5281,35 @@ const or = "column", y1 = "flex items-center", w1 = "mr-3 cursor-move text-secon
5281
5281
  moveItem: o,
5282
5282
  handleAriaLabel: s = "Drag item"
5283
5283
  }) => {
5284
- const a = le(null), l = le(null), c = typeof n == "function" ? n(e) : -1, [{ isDragging: d }, u, f] = f1(
5284
+ const a = le(null), l = le(null), c = typeof n == "function" ? n(e) : -1, [{ isDragging: d }, u, p] = f1(
5285
5285
  () => ({
5286
5286
  type: or,
5287
5287
  item: { id: e, originalIndex: c },
5288
- collect: (p) => {
5289
- const C = p.getItem();
5288
+ collect: (f) => {
5289
+ const C = f.getItem();
5290
5290
  return {
5291
- isDragging: p.isDragging() && C?.id === e
5291
+ isDragging: f.isDragging() && C?.id === e
5292
5292
  };
5293
5293
  },
5294
- end: (p, C) => {
5295
- if (!p) return;
5296
- !C.didDrop() && typeof o == "function" && p.originalIndex > -1 && o(p.id, p.originalIndex);
5294
+ end: (f, C) => {
5295
+ if (!f) return;
5296
+ !C.didDrop() && typeof o == "function" && f.originalIndex > -1 && o(f.id, f.originalIndex);
5297
5297
  }
5298
5298
  }),
5299
5299
  [e, c, o]
5300
5300
  ), [, g] = on(
5301
5301
  () => ({
5302
5302
  accept: or,
5303
- hover: (p) => {
5304
- if (!(!p || p.id === e) && typeof n == "function" && typeof o == "function") {
5303
+ hover: (f) => {
5304
+ if (!(!f || f.id === e) && typeof n == "function" && typeof o == "function") {
5305
5305
  const C = n(e);
5306
- o(p.id, C);
5306
+ o(f.id, C);
5307
5307
  }
5308
5308
  }
5309
5309
  }),
5310
5310
  [n, o, e]
5311
5311
  );
5312
- return f(g(l)), u(a), /* @__PURE__ */ w(
5312
+ return p(g(l)), u(a), /* @__PURE__ */ x(
5313
5313
  "div",
5314
5314
  {
5315
5315
  ref: l,
@@ -5386,16 +5386,16 @@ const or = "column", y1 = "flex items-center", w1 = "mr-3 cursor-move text-secon
5386
5386
  indicator: a
5387
5387
  }) => {
5388
5388
  const l = (() => {
5389
- const f = e.trim().toLowerCase();
5390
- return f.startsWith(".") ? f : `.${f}`;
5389
+ const p = e.trim().toLowerCase();
5390
+ return p.startsWith(".") ? p : `.${p}`;
5391
5391
  })(), d = (sr[l] ?? sr.default)({
5392
5392
  size: t,
5393
5393
  stroke: r
5394
5394
  }), u = s ?? `${l.slice(1).toUpperCase()} file icon`;
5395
- return /* @__PURE__ */ w(
5395
+ return /* @__PURE__ */ x(
5396
5396
  "span",
5397
5397
  {
5398
- className: x("inline-flex relative", n),
5398
+ className: w("inline-flex relative", n),
5399
5399
  ...o ? { "aria-hidden": !0 } : { role: "img", "aria-label": u },
5400
5400
  children: [
5401
5401
  /* @__PURE__ */ i(U, { icon: d, className: "inline-block align-middle" }),
@@ -5430,7 +5430,7 @@ const or = "column", y1 = "flex items-center", w1 = "mr-3 cursor-move text-secon
5430
5430
  shared: r = !1
5431
5431
  }) => {
5432
5432
  const n = e.includes(".") ? e.split(".").pop() : null;
5433
- return /* @__PURE__ */ w("div", { className: _("flex items-center gap-2 w-full", t), children: [
5433
+ return /* @__PURE__ */ x("div", { className: _("flex items-center gap-2 w-full", t), children: [
5434
5434
  n && /* @__PURE__ */ i(
5435
5435
  E1,
5436
5436
  {
@@ -5452,8 +5452,8 @@ const or = "column", y1 = "flex items-center", w1 = "mr-3 cursor-move text-secon
5452
5452
  name: e,
5453
5453
  cssClass: t,
5454
5454
  shared: r = !1
5455
- }) => /* @__PURE__ */ w("div", { className: _("flex items-center gap-2 w-full", t), children: [
5456
- /* @__PURE__ */ w("span", { className: "inline-flex relative text-secondary", role: "img", children: [
5455
+ }) => /* @__PURE__ */ x("div", { className: _("flex items-center gap-2 w-full", t), children: [
5456
+ /* @__PURE__ */ x("span", { className: "inline-flex relative text-secondary", role: "img", children: [
5457
5457
  /* @__PURE__ */ i(
5458
5458
  U,
5459
5459
  {
@@ -5480,13 +5480,13 @@ const ir = () => typeof window < "u" && window.innerWidth < 1024, N1 = () => {
5480
5480
  }, []), e;
5481
5481
  };
5482
5482
  var k1 = /* @__PURE__ */ ((e) => (e.Dropdown = "dropdown", e.Menu = "menu", e))(k1 || {}), xe = /* @__PURE__ */ ((e) => (e.Click = "click", e.Hover = "hover", e.ContextMenu = "contextMenu", e))(xe || {}), an = /* @__PURE__ */ ((e) => (e.Item = "item", e.Divider = "divider", e))(an || {});
5483
- const R1 = x(
5483
+ const R1 = w(
5484
5484
  "flex items-center gap-2 align-middle",
5485
5485
  "h-auto px-0 bg-transparent border-0"
5486
- ), P1 = x(
5486
+ ), P1 = w(
5487
5487
  "z-[53] overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-none",
5488
5488
  "w-max"
5489
- ), M1 = x(
5489
+ ), M1 = w(
5490
5490
  "flex w-full cursor-pointer items-center gap-3",
5491
5491
  "focus-visible:border-none focus-visible:outline-none",
5492
5492
  "hover:bg-accent-primary-alpha px-3",
@@ -5516,9 +5516,9 @@ const R1 = x(
5516
5516
  onOpenChange: c,
5517
5517
  closable: d = !1,
5518
5518
  onClose: u,
5519
- cssClass: f,
5519
+ cssClass: p,
5520
5520
  listClassName: g,
5521
- outsidePressIgnoreRef: p,
5521
+ outsidePressIgnoreRef: f,
5522
5522
  outsideClosable: C = !0,
5523
5523
  allowedPlacements: h,
5524
5524
  anchorToMouse: D = !1,
@@ -5570,7 +5570,7 @@ const R1 = x(
5570
5570
  outsidePress: (m) => {
5571
5571
  if (!C) return !1;
5572
5572
  const H = m.target;
5573
- return !(p?.current && H instanceof Node && p.current.contains(H));
5573
+ return !(f?.current && H instanceof Node && f.current.contains(H));
5574
5574
  }
5575
5575
  }), te = Lt(V, { role: "menu" }), { getReferenceProps: re, getFloatingProps: T } = It([
5576
5576
  ee,
@@ -5612,7 +5612,7 @@ const R1 = x(
5612
5612
  m.disabled || (m.onClick?.({ key: m.key, domEvent: H }), t?.onClick?.({ key: m.key, domEvent: H }), P(!1));
5613
5613
  },
5614
5614
  [t, P]
5615
- ), q = $(() => r ? r() : t ? /* @__PURE__ */ w(pe, { children: [
5615
+ ), q = $(() => r ? r() : t ? /* @__PURE__ */ x(pe, { children: [
5616
5616
  t.header && /* @__PURE__ */ i(pe, { children: typeof t.header == "function" ? t.header() : t.header }),
5617
5617
  /* @__PURE__ */ i("div", { role: "none", className: "py-1", children: t.items.map((m) => m.type === an.Divider ? /* @__PURE__ */ i(
5618
5618
  "div",
@@ -5621,13 +5621,13 @@ const R1 = x(
5621
5621
  className: A1
5622
5622
  },
5623
5623
  m.key
5624
- ) : /* @__PURE__ */ w(
5624
+ ) : /* @__PURE__ */ x(
5625
5625
  "button",
5626
5626
  {
5627
5627
  role: "menuitem",
5628
5628
  type: "button",
5629
5629
  "aria-disabled": !!m.disabled,
5630
- className: x(
5630
+ className: w(
5631
5631
  M1,
5632
5632
  m.disabled && V1,
5633
5633
  m.danger && H1
@@ -5638,7 +5638,7 @@ const R1 = x(
5638
5638
  m.icon && /* @__PURE__ */ i(
5639
5639
  "span",
5640
5640
  {
5641
- className: x(
5641
+ className: w(
5642
5642
  m.danger && "text-error",
5643
5643
  m.disabled && "text-secondary"
5644
5644
  ),
@@ -5648,7 +5648,7 @@ const R1 = x(
5648
5648
  /* @__PURE__ */ i(
5649
5649
  "span",
5650
5650
  {
5651
- className: x(
5651
+ className: w(
5652
5652
  "flex-1 truncate text-left",
5653
5653
  m.danger && "text-error",
5654
5654
  m.disabled && "text-secondary"
@@ -5665,15 +5665,15 @@ const R1 = x(
5665
5665
  onContextMenu: ge,
5666
5666
  onMouseDown: he
5667
5667
  });
5668
- return /* @__PURE__ */ w(pe, { children: [
5668
+ return /* @__PURE__ */ x(pe, { children: [
5669
5669
  /* @__PURE__ */ i(
5670
5670
  "span",
5671
5671
  {
5672
5672
  ref: z.setReference,
5673
- className: x(
5673
+ className: w(
5674
5674
  R1,
5675
5675
  s && "!cursor-not-allowed opacity-75",
5676
- f
5676
+ p
5677
5677
  ),
5678
5678
  "aria-haspopup": "menu",
5679
5679
  "aria-expanded": R,
@@ -5689,13 +5689,13 @@ const R1 = x(
5689
5689
  modal: !1,
5690
5690
  initialFocus: -1,
5691
5691
  returnFocus: !0,
5692
- children: /* @__PURE__ */ w(
5692
+ children: /* @__PURE__ */ x(
5693
5693
  "div",
5694
5694
  {
5695
5695
  id: B,
5696
5696
  ref: z.setFloating,
5697
5697
  style: M,
5698
- className: x(
5698
+ className: w(
5699
5699
  P1,
5700
5700
  !v && "w-max",
5701
5701
  g
@@ -5739,7 +5739,7 @@ const R1 = x(
5739
5739
  },
5740
5740
  o
5741
5741
  );
5742
- return /* @__PURE__ */ w(
5742
+ return /* @__PURE__ */ x(
5743
5743
  "button",
5744
5744
  {
5745
5745
  role: "tab",
@@ -5765,22 +5765,22 @@ const R1 = x(
5765
5765
  onClick: r,
5766
5766
  orientation: n = yt.Horizontal
5767
5767
  }) => {
5768
- const [o, s] = W(!1), [a, l] = W(!1), [c, d] = W(!1), u = N1(), f = n === yt.Horizontal, g = le(null), p = le(null), C = le(null), h = e.find((b) => b.id === t), D = $(
5769
- () => x(
5768
+ const [o, s] = W(!1), [a, l] = W(!1), [c, d] = W(!1), u = N1(), p = n === yt.Horizontal, g = le(null), f = le(null), C = le(null), h = e.find((b) => b.id === t), D = $(
5769
+ () => w(
5770
5770
  "flex gap-3",
5771
- f ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
5771
+ p ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
5772
5772
  ),
5773
- [f]
5773
+ [p]
5774
5774
  ), v = A(() => {
5775
- const b = p.current;
5775
+ const b = f.current;
5776
5776
  b && d(b.scrollWidth > b.clientWidth);
5777
5777
  }, []);
5778
5778
  return ne(() => {
5779
5779
  v();
5780
- const b = new ResizeObserver(v), y = p.current;
5780
+ const b = new ResizeObserver(v), y = f.current;
5781
5781
  return y && b.observe(y), () => b.disconnect();
5782
5782
  }, [e, v]), ne(() => {
5783
- const b = C.current, y = p.current;
5783
+ const b = C.current, y = f.current;
5784
5784
  if (!b || !y) return;
5785
5785
  const O = b.offsetLeft, R = O + b.offsetWidth, P = y.scrollLeft, B = P + y.clientWidth;
5786
5786
  O < P ? y.scrollTo({
@@ -5810,7 +5810,7 @@ const R1 = x(
5810
5810
  },
5811
5811
  b.id
5812
5812
  )),
5813
- children: /* @__PURE__ */ w("div", { className: "flex gap-2 items-center h-11 cursor-pointer", children: [
5813
+ children: /* @__PURE__ */ x("div", { className: "flex gap-2 items-center h-11 cursor-pointer", children: [
5814
5814
  /* @__PURE__ */ i(
5815
5815
  $e,
5816
5816
  {
@@ -5825,7 +5825,7 @@ const R1 = x(
5825
5825
  U,
5826
5826
  {
5827
5827
  icon: /* @__PURE__ */ i(Er, { size: 16 }),
5828
- className: x(
5828
+ className: w(
5829
5829
  "text-primary transition-transform",
5830
5830
  o && "rotate-180"
5831
5831
  )
@@ -5835,8 +5835,8 @@ const R1 = x(
5835
5835
  }
5836
5836
  ) }) : (
5837
5837
  // Desktop
5838
- /* @__PURE__ */ w("div", { ref: g, className: "flex w-full items-start", children: [
5839
- /* @__PURE__ */ i("div", { ref: p, className: D, children: e.map((b) => /* @__PURE__ */ i(
5838
+ /* @__PURE__ */ x("div", { ref: g, className: "flex w-full items-start", children: [
5839
+ /* @__PURE__ */ i("div", { ref: f, className: D, children: e.map((b) => /* @__PURE__ */ i(
5840
5840
  "div",
5841
5841
  {
5842
5842
  ref: t === b.id ? C : void 0,
@@ -5847,7 +5847,7 @@ const R1 = x(
5847
5847
  tab: b,
5848
5848
  active: t === b.id,
5849
5849
  onClick: r,
5850
- horizontal: f,
5850
+ horizontal: p,
5851
5851
  cssClass: "w-full"
5852
5852
  }
5853
5853
  )
@@ -5877,7 +5877,7 @@ const R1 = x(
5877
5877
  Q,
5878
5878
  {
5879
5879
  iconBefore: /* @__PURE__ */ i(lo, { size: 18 }),
5880
- cssClass: x(
5880
+ cssClass: w(
5881
5881
  "w-8 h-8 flex items-center justify-center rounded border",
5882
5882
  a ? "bg-layer-4 border-transparent" : "border-primary"
5883
5883
  )
@@ -5898,9 +5898,9 @@ const R1 = x(
5898
5898
  iconBefore: l,
5899
5899
  titleCssClass: c
5900
5900
  }) => {
5901
- const d = _(z1, a), u = !!t && !o && !n, f = typeof e == "string" ? /* @__PURE__ */ i(be, { text: e }) : e;
5902
- return /* @__PURE__ */ w("li", { className: d, children: [
5903
- u ? /* @__PURE__ */ w(
5901
+ const d = _(z1, a), u = !!t && !o && !n, p = typeof e == "string" ? /* @__PURE__ */ i(be, { text: e }) : e;
5902
+ return /* @__PURE__ */ x("li", { className: d, children: [
5903
+ u ? /* @__PURE__ */ x(
5904
5904
  "a",
5905
5905
  {
5906
5906
  className: _(
@@ -5912,10 +5912,10 @@ const R1 = x(
5912
5912
  onClick: r,
5913
5913
  children: [
5914
5914
  l,
5915
- f
5915
+ p
5916
5916
  ]
5917
5917
  }
5918
- ) : /* @__PURE__ */ w(
5918
+ ) : /* @__PURE__ */ x(
5919
5919
  "span",
5920
5920
  {
5921
5921
  className: _(
@@ -5928,7 +5928,7 @@ const R1 = x(
5928
5928
  "aria-disabled": n ? "true" : void 0,
5929
5929
  children: [
5930
5930
  l,
5931
- f
5931
+ p
5932
5932
  ]
5933
5933
  }
5934
5934
  ),
@@ -5999,7 +5999,7 @@ const R1 = x(
5999
5999
  placeholder: r,
6000
6000
  value: e || "",
6001
6001
  disabled: s,
6002
- className: x(
6002
+ className: w(
6003
6003
  "dial-textarea dial-input px-3 py-2",
6004
6004
  a ? "dial-input-error" : "",
6005
6005
  s && "dial-input-disable",
@@ -6021,9 +6021,10 @@ const R1 = x(
6021
6021
  "Enter",
6022
6022
  "Escape",
6023
6023
  "Home",
6024
- "End"
6024
+ "End",
6025
+ "Insert"
6025
6026
  ], Z1 = (e, t, r, n) => {
6026
- if ((t === "number" || r !== void 0 || n !== void 0) && !q1.includes(e.key) && !(e.key === "-" && e.currentTarget.selectionStart === 0 && (r === void 0 || r < 0)) && !(e.key === "." && t === "number" && !e.currentTarget.value.includes("."))) {
6027
+ if ((t === "number" || r !== void 0 || n !== void 0) && !q1.includes(e.key) && !(e.ctrlKey || e.metaKey) && !(e.key === "-" && (e.currentTarget.selectionStart ?? 0) === 0 && !e.currentTarget.value.includes("-")) && !(e.key === "." && t === "number" && !e.currentTarget.value.includes("."))) {
6027
6028
  if (!/^[0-9]$/.test(e.key)) {
6028
6029
  e.preventDefault();
6029
6030
  return;
@@ -6054,9 +6055,9 @@ const R1 = x(
6054
6055
  tooltipTriggerClassName: c,
6055
6056
  type: d = "text",
6056
6057
  disabled: u,
6057
- readonly: f,
6058
+ readonly: p,
6058
6059
  invalid: g,
6059
- onChange: p,
6060
+ onChange: f,
6060
6061
  min: C,
6061
6062
  max: h,
6062
6063
  prefix: D,
@@ -6076,17 +6077,17 @@ const R1 = x(
6076
6077
  if (isNaN(ee) && V !== "-" && V !== "." || !isNaN(ee) && (C !== void 0 && ee < C || h !== void 0 && ee > h))
6077
6078
  return;
6078
6079
  }
6079
- p?.(V || void 0);
6080
+ f?.(V || void 0);
6080
6081
  };
6081
- return /* @__PURE__ */ w(
6082
+ return /* @__PURE__ */ x(
6082
6083
  "div",
6083
6084
  {
6084
- className: x(
6085
+ className: w(
6085
6086
  "dial-input-field flex flex-row items-center justify-between py-2",
6086
6087
  r ? "dial-input-no-border" : "dial-input",
6087
6088
  g && "dial-input-error",
6088
6089
  u && "dial-input-disable",
6089
- f && "dial-input-readonly",
6090
+ p && "dial-input-readonly",
6090
6091
  !b && "pl-3",
6091
6092
  !y && "pr-3",
6092
6093
  l
@@ -6103,16 +6104,22 @@ const R1 = x(
6103
6104
  elementId: b + "textBefore"
6104
6105
  }
6105
6106
  ) }),
6106
- D && /* @__PURE__ */ w("p", { className: "text-secondary dial-small mr-2", children: [
6107
+ D && /* @__PURE__ */ x("p", { className: "text-secondary dial-small mr-2", children: [
6107
6108
  " ",
6108
6109
  D
6109
6110
  ] }),
6110
- /* @__PURE__ */ i(U, { icon: e }),
6111
+ /* @__PURE__ */ i(
6112
+ U,
6113
+ {
6114
+ icon: e,
6115
+ className: w(!!e && "mr-2")
6116
+ }
6117
+ ),
6111
6118
  /* @__PURE__ */ i(
6112
6119
  Le,
6113
6120
  {
6114
6121
  tooltip: P || n,
6115
- triggerClassName: x(c, "flex-1"),
6122
+ triggerClassName: w(c, "flex-1"),
6116
6123
  children: /* @__PURE__ */ i(
6117
6124
  "input",
6118
6125
  {
@@ -6122,11 +6129,11 @@ const R1 = x(
6122
6129
  placeholder: s,
6123
6130
  value: R ? void 0 : n ?? "",
6124
6131
  disabled: u,
6125
- className: x(
6132
+ className: w(
6126
6133
  "border-0 bg-transparent w-full truncate",
6127
6134
  a
6128
6135
  ),
6129
- onChange: (M) => !f && z?.(M),
6136
+ onChange: (M) => !p && z?.(M),
6130
6137
  onKeyDown: G,
6131
6138
  onWheel: B,
6132
6139
  onBlur: O,
@@ -6137,8 +6144,14 @@ const R1 = x(
6137
6144
  )
6138
6145
  }
6139
6146
  ),
6140
- /* @__PURE__ */ i(U, { icon: t }),
6141
- v && /* @__PURE__ */ w("p", { className: "text-secondary dial-small ml-2", children: [
6147
+ /* @__PURE__ */ i(
6148
+ U,
6149
+ {
6150
+ icon: t,
6151
+ className: w(!!t && "ml-2")
6152
+ }
6153
+ ),
6154
+ v && /* @__PURE__ */ x("p", { className: "text-secondary dial-small ml-2", children: [
6142
6155
  " ",
6143
6156
  v
6144
6157
  ] }),
@@ -6156,56 +6169,61 @@ const R1 = x(
6156
6169
  }
6157
6170
  );
6158
6171
  }, X1 = /^0+\.(\d+)?$/, Y1 = /^0+/, dn = ({
6159
- fieldTitle: e,
6160
- errorText: t,
6161
- optional: r,
6162
- elementCssClass: n,
6163
- elementContainerCssClass: o,
6164
- elementId: s,
6165
- containerCssClass: a,
6166
- readonly: l,
6167
- defaultEmptyText: c,
6168
- min: d,
6169
- max: u,
6170
- ...f
6172
+ // form item props
6173
+ label: e,
6174
+ optional: t,
6175
+ optionalText: r,
6176
+ description: n,
6177
+ error: o,
6178
+ captionDescription: s,
6179
+ readonly: a,
6180
+ orientation: l,
6181
+ // other props
6182
+ elementId: c,
6183
+ fieldTitle: d,
6184
+ errorText: u,
6185
+ elementCssClass: p,
6186
+ elementContainerCssClass: g,
6187
+ containerCssClass: f,
6188
+ defaultEmptyText: C,
6189
+ ...h
6171
6190
  }) => /* @__PURE__ */ i(
6172
6191
  kt,
6173
6192
  {
6174
- error: t,
6175
- elementId: s,
6176
- label: e,
6177
- optional: r,
6178
- cssClass: a,
6179
- children: l ? /* @__PURE__ */ i("span", { children: f.value || (c ?? "None") }) : /* @__PURE__ */ i(
6193
+ label: e ?? d,
6194
+ error: o ?? u,
6195
+ optionalText: r,
6196
+ optional: t,
6197
+ description: n,
6198
+ captionDescription: s,
6199
+ readonly: a,
6200
+ orientation: l,
6201
+ elementId: c,
6202
+ cssClass: f,
6203
+ defaultEmptyText: C,
6204
+ value: h.value,
6205
+ children: /* @__PURE__ */ i(
6180
6206
  Fe,
6181
6207
  {
6182
- elementId: s,
6183
- cssClass: n,
6184
- containerCssClass: o,
6185
- invalid: t != null,
6186
- min: d,
6187
- max: u,
6188
- ...f
6208
+ elementId: c,
6209
+ cssClass: p,
6210
+ containerCssClass: g,
6211
+ invalid: u != null,
6212
+ ...h
6189
6213
  }
6190
6214
  )
6191
6215
  }
6192
6216
  ), Ja = ({
6193
6217
  onChange: e,
6194
- value: t,
6195
- min: r,
6196
- max: n,
6197
- ...o
6218
+ ...t
6198
6219
  }) => {
6199
- const s = (a) => String(a)?.match(X1) ? String(a)?.replace(Y1, "0") : Number(a);
6220
+ const r = (n) => n === "-" ? n : String(n)?.match(X1) ? String(n)?.replace(Y1, "0") : Number(n);
6200
6221
  return /* @__PURE__ */ i(
6201
6222
  dn,
6202
6223
  {
6203
6224
  type: "number",
6204
- onChange: (a) => e?.(s(a)),
6205
- value: t,
6206
- min: r,
6207
- max: n,
6208
- ...o
6225
+ onChange: (n) => e?.(r(n)),
6226
+ ...t
6209
6227
  }
6210
6228
  );
6211
6229
  }, Qa = ({
@@ -6227,7 +6245,7 @@ const R1 = x(
6227
6245
  elementContainerCssClass: s,
6228
6246
  errorText: a,
6229
6247
  ...l
6230
- }) => /* @__PURE__ */ w("div", { className: _("flex flex-col", o), children: [
6248
+ }) => /* @__PURE__ */ x("div", { className: _("flex flex-col", o), children: [
6231
6249
  /* @__PURE__ */ i(
6232
6250
  Pe,
6233
6251
  {
@@ -6253,7 +6271,7 @@ const R1 = x(
6253
6271
  disabled: n,
6254
6272
  onChange: o
6255
6273
  }) => {
6256
- const s = x(
6274
+ const s = w(
6257
6275
  "flex w-[36px] h-[18px] cursor-pointer items-center gap-1 rounded-full p-0.5 transition-all duration-200",
6258
6276
  r ? "flex-row-reverse" : "flex-row",
6259
6277
  n ? "pointer-events-none" : "",
@@ -6264,7 +6282,7 @@ const R1 = x(
6264
6282
  },
6265
6283
  [o, r]
6266
6284
  );
6267
- return /* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
6285
+ return /* @__PURE__ */ x("div", { className: "flex flex-row items-center", children: [
6268
6286
  /* @__PURE__ */ i(
6269
6287
  "input",
6270
6288
  {
@@ -6279,7 +6297,7 @@ const R1 = x(
6279
6297
  /* @__PURE__ */ i("label", { htmlFor: t, className: s, children: /* @__PURE__ */ i(
6280
6298
  "span",
6281
6299
  {
6282
- className: x(
6300
+ className: w(
6283
6301
  "size-3 rounded-full",
6284
6302
  n ? r ? "bg-layer-4" : "bg-controls-disable" : "bg-controls-enable-primary"
6285
6303
  )
@@ -6306,40 +6324,40 @@ const K1 = "z-[52] flex items-center justify-center bg-blackout md:p-4", J1 = "d
6306
6324
  onClose: d,
6307
6325
  size: u = Ce.Md
6308
6326
  }) => {
6309
- const { refs: f, context: g } = Dt({
6327
+ const { refs: p, context: g } = Dt({
6310
6328
  open: e,
6311
6329
  onOpenChange: (b) => {
6312
6330
  b || d?.(null);
6313
6331
  }
6314
- }), p = Lt(g, { role: "dialog" }), C = St(g, { outsidePress: !0 }), { getFloatingProps: h } = It([p, C]);
6332
+ }), f = Lt(g, { role: "dialog" }), C = St(g, { outsidePress: !0 }), { getFloatingProps: h } = It([f, C]);
6315
6333
  if (!e) return null;
6316
6334
  const D = typeof t == "string" ? "dial-popup-heading" : void 0, v = (b) => b ? typeof b == "string" ? /* @__PURE__ */ i(
6317
6335
  "h3",
6318
6336
  {
6319
6337
  id: D,
6320
- className: x(
6338
+ className: w(
6321
6339
  "flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",
6322
6340
  s
6323
6341
  ),
6324
6342
  children: /* @__PURE__ */ i(Le, { tooltip: b, children: b })
6325
6343
  }
6326
6344
  ) : b : /* @__PURE__ */ i("span", {});
6327
- return /* @__PURE__ */ i(Tt, { id: r, children: /* @__PURE__ */ i(Ln, { className: x(K1, o), children: /* @__PURE__ */ i(wr, { context: g, children: /* @__PURE__ */ w(
6345
+ return /* @__PURE__ */ i(Tt, { id: r, children: /* @__PURE__ */ i(Ln, { className: w(K1, o), children: /* @__PURE__ */ i(wr, { context: g, children: /* @__PURE__ */ x(
6328
6346
  "div",
6329
6347
  {
6330
- ref: f.setFloating,
6348
+ ref: p.setFloating,
6331
6349
  ...h(),
6332
6350
  role: "dialog",
6333
6351
  "aria-modal": "true",
6334
6352
  "aria-labelledby": D,
6335
- className: x(
6353
+ className: w(
6336
6354
  "dial-popup",
6337
6355
  ea[u],
6338
6356
  a && J1,
6339
6357
  n
6340
6358
  ),
6341
6359
  children: [
6342
- /* @__PURE__ */ w("div", { className: Q1, children: [
6360
+ /* @__PURE__ */ x("div", { className: Q1, children: [
6343
6361
  v(t),
6344
6362
  /* @__PURE__ */ i(
6345
6363
  ln,
@@ -6378,15 +6396,15 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6378
6396
  cssClass: c,
6379
6397
  confirmClassName: d,
6380
6398
  onClose: u,
6381
- onConfirm: f,
6399
+ onConfirm: p,
6382
6400
  onCancel: g,
6383
- children: p,
6401
+ children: f,
6384
6402
  dividers: C = !1,
6385
6403
  variant: h = Ye.Info,
6386
6404
  size: D = Ce.Sm,
6387
6405
  footer: v
6388
6406
  }) => {
6389
- const b = a ? null : /* @__PURE__ */ w("div", { className: ta, children: [
6407
+ const b = a ? null : /* @__PURE__ */ x("div", { className: ta, children: [
6390
6408
  /* @__PURE__ */ i(
6391
6409
  Q,
6392
6410
  {
@@ -6402,22 +6420,22 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6402
6420
  cssClass: d,
6403
6421
  title: o,
6404
6422
  disable: l,
6405
- onClick: () => f()
6423
+ onClick: () => p()
6406
6424
  }
6407
6425
  )
6408
- ] }), y = A(() => a ? /* @__PURE__ */ i("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ i(Ur, { size: 50 }) }) : p ?? (t ? /* @__PURE__ */ i(
6426
+ ] }), y = A(() => a ? /* @__PURE__ */ i("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ i(Ur, { size: 50 }) }) : f ?? (t ? /* @__PURE__ */ i(
6409
6427
  "div",
6410
6428
  {
6411
- className: x(ra, r),
6429
+ className: w(ra, r),
6412
6430
  children: t
6413
6431
  }
6414
- ) : null), [p, t, a, r]);
6432
+ ) : null), [f, t, a, r]);
6415
6433
  return /* @__PURE__ */ i(
6416
6434
  zt,
6417
6435
  {
6418
6436
  open: n,
6419
6437
  title: e,
6420
- cssClass: x(cr[h].container, c),
6438
+ cssClass: w(cr[h].container, c),
6421
6439
  dividers: C,
6422
6440
  onClose: () => u?.(),
6423
6441
  footer: v ?? b,
@@ -6428,7 +6446,7 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6428
6446
  }, un = ({ selectedItems: e, listCssClass: t, listElementCssClass: r }) => !!e?.length && /* @__PURE__ */ i(
6429
6447
  "ul",
6430
6448
  {
6431
- className: x(
6449
+ className: w(
6432
6450
  "flex-row items-center truncate flex-wrap",
6433
6451
  "flex gap-x-2 gap-y-1",
6434
6452
  t
@@ -6437,7 +6455,7 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6437
6455
  Pt,
6438
6456
  {
6439
6457
  tag: n,
6440
- cssClass: x([r])
6458
+ cssClass: w([r])
6441
6459
  }
6442
6460
  ) }) }, n))
6443
6461
  }
@@ -6453,12 +6471,12 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6453
6471
  errorText: c,
6454
6472
  emptyValueText: d
6455
6473
  }) => {
6456
- const u = Array.isArray(n) && n.length > 0, f = typeof n == "string" && !!n.trim(), g = u || f ? n : d, p = r ? void 0 : a;
6457
- return /* @__PURE__ */ w(pe, { children: [
6458
- u ? /* @__PURE__ */ i("div", { className: "w-full", onClick: p, children: /* @__PURE__ */ w(
6474
+ const u = Array.isArray(n) && n.length > 0, p = typeof n == "string" && !!n.trim(), g = u || p ? n : d, f = r ? void 0 : a;
6475
+ return /* @__PURE__ */ x(pe, { children: [
6476
+ u ? /* @__PURE__ */ i("div", { className: "w-full", onClick: f, children: /* @__PURE__ */ x(
6459
6477
  "div",
6460
6478
  {
6461
- className: x(
6479
+ className: w(
6462
6480
  "dial-input px-3 py-2 flex flex-row items-center w-full justify-between",
6463
6481
  r && "dial-input-disable"
6464
6482
  ),
@@ -6479,19 +6497,19 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6479
6497
  ) })
6480
6498
  ]
6481
6499
  }
6482
- ) }) : /* @__PURE__ */ w(pe, { children: [
6500
+ ) }) : /* @__PURE__ */ x(pe, { children: [
6483
6501
  /* @__PURE__ */ i(
6484
6502
  "button",
6485
6503
  {
6486
6504
  type: "button",
6487
6505
  className: "w-full",
6488
- onClick: p,
6506
+ onClick: f,
6489
6507
  "aria-label": "open-popup",
6490
6508
  id: l,
6491
- children: /* @__PURE__ */ w(
6509
+ children: /* @__PURE__ */ x(
6492
6510
  "div",
6493
6511
  {
6494
- className: x(
6512
+ className: w(
6495
6513
  "dial-input px-3 py-2 dial-input-field flex flex-row items-center w-full justify-between",
6496
6514
  s,
6497
6515
  r && "dial-input-disable",
@@ -6533,9 +6551,9 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6533
6551
  emptyValueText: c,
6534
6552
  onClose: d,
6535
6553
  title: u,
6536
- portalId: f,
6554
+ portalId: p,
6537
6555
  onApply: g,
6538
- cancelButtonTitle: p = "Cancel",
6556
+ cancelButtonTitle: f = "Cancel",
6539
6557
  applyButtonTitle: C = "Apply",
6540
6558
  isValid: h,
6541
6559
  selectedRadioValue: D,
@@ -6550,7 +6568,7 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6550
6568
  }, [d]), I = A(() => {
6551
6569
  g(), B();
6552
6570
  }, [g, B]);
6553
- return /* @__PURE__ */ w("div", { className: "flex flex-col", children: [
6571
+ return /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
6554
6572
  /* @__PURE__ */ i(Pe, { fieldTitle: e, htmlFor: t }),
6555
6573
  /* @__PURE__ */ i(
6556
6574
  sa,
@@ -6559,7 +6577,7 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6559
6577
  open: O,
6560
6578
  selectedValue: s ?? o.find((G) => G.id === n)?.name,
6561
6579
  valueCssClasses: a,
6562
- inputCssClasses: x(l, "py-2", "px-3"),
6580
+ inputCssClasses: w(l, "py-2", "px-3"),
6563
6581
  emptyValueText: c,
6564
6582
  onOpen: P,
6565
6583
  children: /* @__PURE__ */ i(
@@ -6568,14 +6586,14 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6568
6586
  open: O,
6569
6587
  onClose: B,
6570
6588
  title: u,
6571
- portalId: f,
6589
+ portalId: p,
6572
6590
  size: y,
6573
- footer: /* @__PURE__ */ w("div", { className: "flex flex-row items-center justify-end gap-2 px-6 py-4", children: [
6591
+ footer: /* @__PURE__ */ x("div", { className: "flex flex-row items-center justify-end gap-2 px-6 py-4", children: [
6574
6592
  /* @__PURE__ */ i(
6575
6593
  Q,
6576
6594
  {
6577
6595
  variant: J.Secondary,
6578
- title: p,
6596
+ title: f,
6579
6597
  onClick: B
6580
6598
  }
6581
6599
  ),
@@ -6617,12 +6635,12 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6617
6635
  onClose: c,
6618
6636
  onSubmit: d,
6619
6637
  onCancel: u,
6620
- children: f,
6638
+ children: p,
6621
6639
  dividers: g = !0,
6622
- size: p = Ce.Md,
6640
+ size: f = Ce.Md,
6623
6641
  footer: C
6624
6642
  }) => {
6625
- const h = o ? null : /* @__PURE__ */ w("div", { className: la, children: [
6643
+ const h = o ? null : /* @__PURE__ */ x("div", { className: la, children: [
6626
6644
  /* @__PURE__ */ i(
6627
6645
  Q,
6628
6646
  {
@@ -6641,7 +6659,7 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6641
6659
  onClick: () => d()
6642
6660
  }
6643
6661
  )
6644
- ] }), D = A(() => o ? /* @__PURE__ */ i("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ i(Ur, { size: 50 }) }) : f ?? null, [f, o]);
6662
+ ] }), D = A(() => o ? /* @__PURE__ */ i("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ i(Ur, { size: 50 }) }) : p ?? null, [p, o]);
6645
6663
  return /* @__PURE__ */ i(
6646
6664
  zt,
6647
6665
  {
@@ -6651,7 +6669,7 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6651
6669
  dividers: g,
6652
6670
  onClose: () => c?.(),
6653
6671
  footer: C ?? h,
6654
- size: p,
6672
+ size: f,
6655
6673
  children: D()
6656
6674
  }
6657
6675
  );
@@ -6692,7 +6710,7 @@ const ta = "flex justify-end gap-2 px-6 py-4", ra = "text-secondary dial-small-1
6692
6710
  elementId: n,
6693
6711
  errorText: o,
6694
6712
  ...s
6695
- }) => /* @__PURE__ */ w("div", { className: "flex flex-col", children: [
6713
+ }) => /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
6696
6714
  /* @__PURE__ */ i(
6697
6715
  Pe,
6698
6716
  {
@@ -6738,39 +6756,39 @@ const fa = {
6738
6756
  onChange: c,
6739
6757
  size: d = Ke.Base
6740
6758
  }) => {
6741
- const [u, f] = W(t || "");
6759
+ const [u, p] = W(t || "");
6742
6760
  ne(() => {
6743
- f(t || "");
6761
+ p(t || "");
6744
6762
  }, [t]);
6745
6763
  const g = A(
6746
6764
  (h) => {
6747
- f(h), c?.(h);
6765
+ p(h), c?.(h);
6748
6766
  },
6749
6767
  [c]
6750
- ), p = fa[d], C = A(() => {
6768
+ ), f = fa[d], C = A(() => {
6751
6769
  g("");
6752
6770
  }, [g]);
6753
- return /* @__PURE__ */ w(
6771
+ return /* @__PURE__ */ x(
6754
6772
  "div",
6755
6773
  {
6756
- className: x(
6774
+ className: w(
6757
6775
  "dial-input flex flex-row items-center justify-between",
6758
6776
  s && "dial-input-error",
6759
6777
  n && "dial-input-disable",
6760
6778
  o && "dial-input-readonly",
6761
- p.containerClass,
6779
+ f.containerClass,
6762
6780
  l
6763
6781
  ),
6764
6782
  children: [
6765
6783
  /* @__PURE__ */ i(
6766
6784
  U,
6767
6785
  {
6768
- className: x(n ? "text-secondary" : "text-primary"),
6786
+ className: w(n ? "text-secondary" : "text-primary"),
6769
6787
  icon: /* @__PURE__ */ i(
6770
6788
  po,
6771
6789
  {
6772
- size: p.iconSize,
6773
- stroke: p.iconStroke
6790
+ size: f.iconSize,
6791
+ stroke: f.iconStroke
6774
6792
  }
6775
6793
  )
6776
6794
  }
@@ -6785,10 +6803,10 @@ const fa = {
6785
6803
  value: u ?? "",
6786
6804
  disabled: n,
6787
6805
  readOnly: o,
6788
- className: x(
6806
+ className: w(
6789
6807
  "border-0 bg-transparent w-full",
6790
6808
  a,
6791
- p.textClass
6809
+ f.textClass
6792
6810
  ),
6793
6811
  onChange: (h) => !o && g(h.currentTarget.value)
6794
6812
  }
@@ -6800,8 +6818,8 @@ const fa = {
6800
6818
  icon: /* @__PURE__ */ i(
6801
6819
  _e,
6802
6820
  {
6803
- size: p.iconSize,
6804
- stroke: p.iconStroke,
6821
+ size: f.iconSize,
6822
+ stroke: f.iconStroke,
6805
6823
  onClick: C,
6806
6824
  "aria-label": "Clear search",
6807
6825
  role: "button"
@@ -6822,20 +6840,20 @@ const fa = {
6822
6840
  inputCssClass: a
6823
6841
  }) => {
6824
6842
  const [l, c] = W(""), d = A(
6825
- (f) => {
6826
- f.key === "Enter" && (r([...t, f.currentTarget.value]), c("")), (f.key === "Backspace" || f.key === "Delete") && t.length && !l && r(t.slice(0, -1));
6843
+ (p) => {
6844
+ p.key === "Enter" && (r([...t, p.currentTarget.value]), c("")), (p.key === "Backspace" || p.key === "Delete") && t.length && !l && r(t.slice(0, -1));
6827
6845
  },
6828
6846
  [t, r, l]
6829
6847
  ), u = A(
6830
- (f) => {
6831
- c(f.target.value);
6848
+ (p) => {
6849
+ c(p.target.value);
6832
6850
  },
6833
6851
  [c]
6834
6852
  );
6835
- return /* @__PURE__ */ w(
6853
+ return /* @__PURE__ */ x(
6836
6854
  "div",
6837
6855
  {
6838
- className: x([
6856
+ className: w([
6839
6857
  "dial-input px-3 py-2 flex flex-row items-center flex-wrap w-fit gap-2",
6840
6858
  s
6841
6859
  ]),
@@ -6853,7 +6871,7 @@ const fa = {
6853
6871
  {
6854
6872
  type: "text",
6855
6873
  value: l,
6856
- className: x(["border-0 bg-transparent p-0", a]),
6874
+ className: w(["border-0 bg-transparent p-0", a]),
6857
6875
  placeholder: t?.length ? "" : e,
6858
6876
  onKeyDown: d,
6859
6877
  onChange: u
@@ -6873,17 +6891,17 @@ const fa = {
6873
6891
  disabled: l,
6874
6892
  onChange: c
6875
6893
  }) => {
6876
- const d = le(null), [u, f] = W(e), [g, p] = W(""), [C, h] = W(!1), D = (y) => {
6894
+ const d = le(null), [u, p] = W(e), [g, f] = W(""), [C, h] = W(!1), D = (y) => {
6877
6895
  const O = y.trim().replace(/,$/, "");
6878
6896
  if (O && !u.includes(O)) {
6879
6897
  const R = [O, ...u];
6880
- f(R), c?.(R);
6898
+ p(R), c?.(R);
6881
6899
  }
6882
6900
  }, v = (y) => {
6883
- (y.key === "," || y.key === "Enter") && (y.preventDefault(), D(g), p(""));
6901
+ (y.key === "," || y.key === "Enter") && (y.preventDefault(), D(g), f(""));
6884
6902
  }, b = (y) => {
6885
6903
  const O = u.filter((R, P) => P !== y);
6886
- f(O), c?.(O);
6904
+ p(O), c?.(O);
6887
6905
  };
6888
6906
  return ne(() => {
6889
6907
  const y = new ResizeObserver(() => {
@@ -6893,7 +6911,7 @@ const fa = {
6893
6911
  }
6894
6912
  });
6895
6913
  return d.current && y.observe(d.current), () => y.disconnect();
6896
- }, [u]), /* @__PURE__ */ w("div", { className: x("flex flex-col w-full"), children: [
6914
+ }, [u]), /* @__PURE__ */ x("div", { className: w("flex flex-col w-full"), children: [
6897
6915
  /* @__PURE__ */ i(
6898
6916
  Pe,
6899
6917
  {
@@ -6905,16 +6923,16 @@ const fa = {
6905
6923
  /* @__PURE__ */ i(
6906
6924
  "div",
6907
6925
  {
6908
- className: x(
6926
+ className: w(
6909
6927
  "dial-input min-h-[38px] p-[6px]",
6910
6928
  a && "dial-input-error",
6911
6929
  l && "dial-input-disable"
6912
6930
  ),
6913
- children: /* @__PURE__ */ w(
6931
+ children: /* @__PURE__ */ x(
6914
6932
  "div",
6915
6933
  {
6916
6934
  ref: d,
6917
- className: x(
6935
+ className: w(
6918
6936
  "flex flex-wrap gap-2 items-center",
6919
6937
  C ? "flex-col-reverse" : "flex-row"
6920
6938
  ),
@@ -6932,9 +6950,9 @@ const fa = {
6932
6950
  {
6933
6951
  type: "text",
6934
6952
  value: g,
6935
- onChange: (y) => p(y.target.value),
6953
+ onChange: (y) => f(y.target.value),
6936
6954
  onKeyDown: v,
6937
- className: x(
6955
+ className: w(
6938
6956
  "dial-input-no-border outline-none border-none w-full min-w-[100px] flex-1 p-1"
6939
6957
  ),
6940
6958
  placeholder: o,
@@ -6976,9 +6994,9 @@ const fa = {
6976
6994
  selectAllLabel: c = "Select all",
6977
6995
  emptyStateTitle: d = "No options available",
6978
6996
  emptyStateDescription: u,
6979
- emptyStateIcon: f,
6997
+ emptyStateIcon: p,
6980
6998
  disabled: g = !1,
6981
- cssClass: p,
6999
+ cssClass: f,
6982
7000
  closable: C = !1,
6983
7001
  onClose: h,
6984
7002
  onChange: D
@@ -7036,7 +7054,7 @@ const fa = {
7036
7054
  selectedValues: z,
7037
7055
  handleRemoveTag: de
7038
7056
  }
7039
- ), [t, e, z, de]), K = A(() => t ? ge ? q() : /* @__PURE__ */ i("span", { className: "text-secondary truncate", children: o }) : oe ? /* @__PURE__ */ w(pe, { children: [
7057
+ ), [t, e, z, de]), K = A(() => t ? ge ? q() : /* @__PURE__ */ i("span", { className: "text-secondary truncate", children: o }) : oe ? /* @__PURE__ */ x(pe, { children: [
7040
7058
  oe.icon && /* @__PURE__ */ i(U, { icon: oe.icon }),
7041
7059
  /* @__PURE__ */ i(be, { text: oe.label })
7042
7060
  ] }) : /* @__PURE__ */ i("span", { className: "text-secondary truncate", children: o }), [ge, t, o, q, oe]);
@@ -7050,7 +7068,7 @@ const fa = {
7050
7068
  onClose: h,
7051
7069
  placement: "bottom-start",
7052
7070
  allowedPlacements: ["bottom-start", "top-start"],
7053
- renderOverlay: () => /* @__PURE__ */ w(
7071
+ renderOverlay: () => /* @__PURE__ */ x(
7054
7072
  "div",
7055
7073
  {
7056
7074
  id: R,
@@ -7058,7 +7076,7 @@ const fa = {
7058
7076
  "aria-multiselectable": t || void 0,
7059
7077
  className: ha,
7060
7078
  children: [
7061
- (s || C) && /* @__PURE__ */ w("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
7079
+ (s || C) && /* @__PURE__ */ x("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
7062
7080
  s && /* @__PURE__ */ i(
7063
7081
  pa,
7064
7082
  {
@@ -7080,7 +7098,7 @@ const fa = {
7080
7098
  }
7081
7099
  )
7082
7100
  ] }),
7083
- t && l && Y.length > 0 && /* @__PURE__ */ i("div", { className: x(dt, "mt-2"), children: /* @__PURE__ */ i(
7101
+ t && l && Y.length > 0 && /* @__PURE__ */ i("div", { className: w(dt, "mt-2"), children: /* @__PURE__ */ i(
7084
7102
  Ut,
7085
7103
  {
7086
7104
  id: `${R}-selectAll`,
@@ -7094,7 +7112,7 @@ const fa = {
7094
7112
  /* @__PURE__ */ i("div", { className: "overflow-y-auto py-1", children: M.length === 0 ? /* @__PURE__ */ i("div", { className: "px-2 py-3", children: /* @__PURE__ */ i(
7095
7113
  Cs,
7096
7114
  {
7097
- icon: f ?? /* @__PURE__ */ i(Or, { size: 24 }),
7115
+ icon: p ?? /* @__PURE__ */ i(Or, { size: 24 }),
7098
7116
  title: d,
7099
7117
  description: u
7100
7118
  }
@@ -7103,7 +7121,7 @@ const fa = {
7103
7121
  return t ? /* @__PURE__ */ i(
7104
7122
  "div",
7105
7123
  {
7106
- className: x(
7124
+ className: w(
7107
7125
  dt,
7108
7126
  H && ma,
7109
7127
  m.disabled && ur,
@@ -7113,7 +7131,7 @@ const fa = {
7113
7131
  Ut,
7114
7132
  {
7115
7133
  id: `${R}-${m.value}`,
7116
- label: /* @__PURE__ */ w("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
7134
+ label: /* @__PURE__ */ x("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
7117
7135
  m.icon && /* @__PURE__ */ i(U, { icon: m.icon }),
7118
7136
  /* @__PURE__ */ i("span", { className: "truncate", children: m.label })
7119
7137
  ] }),
@@ -7133,13 +7151,13 @@ const fa = {
7133
7151
  "aria-selected": H,
7134
7152
  "aria-disabled": !!m.disabled,
7135
7153
  disabled: m.disabled,
7136
- className: x(
7154
+ className: w(
7137
7155
  dt,
7138
7156
  H && Ca,
7139
7157
  m.disabled && ur
7140
7158
  ),
7141
7159
  onClick: () => !m.disabled && ee(m.value),
7142
- children: /* @__PURE__ */ w("div", { className: "flex items-center gap-2 w-full", children: [
7160
+ children: /* @__PURE__ */ x("div", { className: "flex items-center gap-2 w-full", children: [
7143
7161
  m.icon && /* @__PURE__ */ i(U, { icon: m.icon }),
7144
7162
  /* @__PURE__ */ i(be, { text: m.label })
7145
7163
  ] })
@@ -7150,7 +7168,7 @@ const fa = {
7150
7168
  ]
7151
7169
  }
7152
7170
  ),
7153
- children: /* @__PURE__ */ w(
7171
+ children: /* @__PURE__ */ x(
7154
7172
  "button",
7155
7173
  {
7156
7174
  type: "button",
@@ -7160,7 +7178,7 @@ const fa = {
7160
7178
  className: _(
7161
7179
  ga,
7162
7180
  g && "opacity-75 !cursor-not-allowed",
7163
- p
7181
+ f
7164
7182
  ),
7165
7183
  onClick: () => !g && b((m) => !m),
7166
7184
  children: [
@@ -7169,7 +7187,7 @@ const fa = {
7169
7187
  U,
7170
7188
  {
7171
7189
  icon: ba,
7172
- className: x("text-primary", v && "rotate-180")
7190
+ className: w("text-primary", v && "rotate-180")
7173
7191
  }
7174
7192
  )
7175
7193
  ]
@@ -7189,7 +7207,7 @@ const fa = {
7189
7207
  readonly: c,
7190
7208
  value: d,
7191
7209
  defaultEmptyText: u,
7192
- ...f
7210
+ ...p
7193
7211
  }) => {
7194
7212
  const g = A(() => {
7195
7213
  if (!d || Array.isArray(d) && d.length === 0)
@@ -7198,17 +7216,17 @@ const fa = {
7198
7216
  return /* @__PURE__ */ i(
7199
7217
  fn,
7200
7218
  {
7201
- options: f.options,
7219
+ options: p.options,
7202
7220
  selectedValues: d
7203
7221
  }
7204
7222
  );
7205
7223
  {
7206
- const p = f.options?.find(
7224
+ const f = p.options?.find(
7207
7225
  (C) => C.value === d
7208
7226
  );
7209
- return /* @__PURE__ */ i("span", { "aria-readonly": !0, className: "text-primary", children: p?.label || d });
7227
+ return /* @__PURE__ */ i("span", { "aria-readonly": !0, className: "text-primary", children: f?.label || d });
7210
7228
  }
7211
- }, [d, f.options, u]);
7229
+ }, [d, p.options, u]);
7212
7230
  return /* @__PURE__ */ i(
7213
7231
  kt,
7214
7232
  {
@@ -7227,7 +7245,7 @@ const fa = {
7227
7245
  {
7228
7246
  cssClass: o,
7229
7247
  value: d,
7230
- ...f
7248
+ ...p
7231
7249
  }
7232
7250
  )
7233
7251
  }
@@ -7397,51 +7415,51 @@ class pr {
7397
7415
  let c = 0, d = a.length - 1, u;
7398
7416
  for (; c <= d; ) {
7399
7417
  u = Math.floor(0.5 * (c + d));
7400
- const p = r[u];
7401
- if (p < t)
7418
+ const f = r[u];
7419
+ if (f < t)
7402
7420
  c = u + 1;
7403
- else if (p > t)
7421
+ else if (f > t)
7404
7422
  d = u - 1;
7405
7423
  else
7406
7424
  return n[u];
7407
7425
  }
7408
7426
  l = Math.max(0, d);
7409
- const f = t - r[l], g = f * f;
7410
- return n[l] + o[l] * f + s[l] * g + a[l] * f * g;
7427
+ const p = t - r[l], g = p * p;
7428
+ return n[l] + o[l] * p + s[l] * g + a[l] * p * g;
7411
7429
  }
7412
7430
  constructor(t, r) {
7413
7431
  const { length: n } = t, o = [];
7414
- for (let p = 0; p < n; p++)
7415
- o.push(p);
7432
+ for (let f = 0; f < n; f++)
7433
+ o.push(f);
7416
7434
  o.sort(
7417
- (p, C) => t[p] < t[C] ? -1 : 1
7435
+ (f, C) => t[f] < t[C] ? -1 : 1
7418
7436
  );
7419
7437
  const s = [], a = [];
7420
7438
  let l, c;
7421
- for (let p = 0; p < n - 1; p++)
7422
- l = t[p + 1] - t[p], c = r[p + 1] - r[p], s.push(l), a.push(c / l);
7439
+ for (let f = 0; f < n - 1; f++)
7440
+ l = t[f + 1] - t[f], c = r[f + 1] - r[f], s.push(l), a.push(c / l);
7423
7441
  const d = [
7424
7442
  a[0]
7425
7443
  ];
7426
- for (let p = 0; p < s.length - 1; p++) {
7427
- const C = a[p], h = a[p + 1];
7444
+ for (let f = 0; f < s.length - 1; f++) {
7445
+ const C = a[f], h = a[f + 1];
7428
7446
  if (C * h <= 0)
7429
7447
  d.push(0);
7430
7448
  else {
7431
- l = s[p];
7432
- const D = s[p + 1], v = l + D;
7449
+ l = s[f];
7450
+ const D = s[f + 1], v = l + D;
7433
7451
  d.push(3 * v / ((v + D) / C + (v + l) / h));
7434
7452
  }
7435
7453
  }
7436
7454
  d.push(a[a.length - 1]);
7437
- const u = [], f = [];
7455
+ const u = [], p = [];
7438
7456
  let g;
7439
- for (let p = 0; p < d.length - 1; p++) {
7440
- g = a[p];
7441
- const C = d[p], h = 1 / s[p], D = C + d[p + 1] - g - g;
7442
- u.push((g - C - D) * h), f.push(D * h * h);
7457
+ for (let f = 0; f < d.length - 1; f++) {
7458
+ g = a[f];
7459
+ const C = d[f], h = 1 / s[f], D = C + d[f + 1] - g - g;
7460
+ u.push((g - C - D) * h), p.push(D * h * h);
7443
7461
  }
7444
- this.xs = t, this.ys = r, this.c1s = d, this.c2s = u, this.c3s = f;
7462
+ this.xs = t, this.ys = r, this.c1s = d, this.c2s = u, this.c3s = p;
7445
7463
  }
7446
7464
  }
7447
7465
  const Ia = 1;
@@ -7476,7 +7494,7 @@ function Ea(e, t, r, n, o) {
7476
7494
  const s = Ta(t), l = bn(s ? e : t), c = {
7477
7495
  x: r.x - l.x,
7478
7496
  y: r.y - l.y
7479
- }, { offsetWidth: d, offsetHeight: u } = e, { anchorX: f, anchorY: g } = n, { dragPreviewWidth: p, dragPreviewHeight: C } = Oa(s, t, d, u), h = () => {
7497
+ }, { offsetWidth: d, offsetHeight: u } = e, { anchorX: p, anchorY: g } = n, { dragPreviewWidth: f, dragPreviewHeight: C } = Oa(s, t, d, u), h = () => {
7480
7498
  let P = new pr([
7481
7499
  0,
7482
7500
  0.5,
@@ -7498,10 +7516,10 @@ function Ea(e, t, r, n, o) {
7498
7516
  // Dock to the left
7499
7517
  c.x,
7500
7518
  // Align at the center
7501
- c.x / d * p,
7519
+ c.x / d * f,
7502
7520
  // Dock to the right
7503
- c.x + p - d
7504
- ]).interpolate(f), { offsetX: v, offsetY: b } = o, y = v === 0 || v, O = b === 0 || b;
7521
+ c.x + f - d
7522
+ ]).interpolate(p), { offsetX: v, offsetY: b } = o, y = v === 0 || v, O = b === 0 || b;
7505
7523
  return {
7506
7524
  x: y ? v : D(),
7507
7525
  y: O ? b : h()
@@ -7705,10 +7723,10 @@ class Ra {
7705
7723
  const { dataTransfer: l } = o, c = ft(l);
7706
7724
  if (this.monitor.isDragging()) {
7707
7725
  if (l && typeof l.setDragImage == "function") {
7708
- const u = this.monitor.getSourceId(), f = this.sourceNodes.get(u), g = this.sourcePreviewNodes.get(u) || f;
7726
+ const u = this.monitor.getSourceId(), p = this.sourceNodes.get(u), g = this.sourcePreviewNodes.get(u) || p;
7709
7727
  if (g) {
7710
- const { anchorX: p, anchorY: C, offsetX: h, offsetY: D } = this.getCurrentSourcePreviewNodeOptions(), y = Ea(f, g, a, {
7711
- anchorX: p,
7728
+ const { anchorX: f, anchorY: C, offsetX: h, offsetY: D } = this.getCurrentSourcePreviewNodeOptions(), y = Ea(p, g, a, {
7729
+ anchorX: f,
7712
7730
  anchorY: C
7713
7731
  }, {
7714
7732
  offsetX: h,
@@ -7806,7 +7824,7 @@ const Pa = function(t, r, n) {
7806
7824
  fileCountError: c,
7807
7825
  getIsFileFormatError: d
7808
7826
  }) => {
7809
- const u = le(null), f = le(null), [g, p] = W([]), [C, h] = W(!1), D = A(
7827
+ const u = le(null), p = le(null), [g, f] = W([]), [C, h] = W(!1), D = A(
7810
7828
  (M) => {
7811
7829
  const V = M.target.files;
7812
7830
  if (V && V.length > 0) {
@@ -7819,7 +7837,7 @@ const Pa = function(t, r, n) {
7819
7837
  (M) => s && M?.length > s,
7820
7838
  [s]
7821
7839
  ), b = $(() => C || v(g), [C, g, v]), y = () => {
7822
- p([]), h(!1);
7840
+ f([]), h(!1);
7823
7841
  };
7824
7842
  ne(() => {
7825
7843
  y();
@@ -7838,21 +7856,21 @@ const Pa = function(t, r, n) {
7838
7856
  }),
7839
7857
  [D]
7840
7858
  ), B = (M) => {
7841
- (M.key === "Enter" || M.key === "Space") && (M.preventDefault(), f.current?.click());
7859
+ (M.key === "Enter" || M.key === "Space") && (M.preventDefault(), p.current?.click());
7842
7860
  }, I = (M) => {
7843
7861
  M?.preventDefault();
7844
7862
  const V = Array.from(M.dataTransfer?.items ?? []);
7845
- h(!!d?.(V)), p(V);
7863
+ h(!!d?.(V)), f(V);
7846
7864
  }, G = (M) => {
7847
7865
  M.target === M.currentTarget && y();
7848
- }, z = x(
7866
+ }, z = w(
7849
7867
  "border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",
7850
7868
  !R && !b && "border-primary",
7851
7869
  R && (O ? "border-accent-primary" : "border-hover"),
7852
7870
  b && "border-error"
7853
7871
  );
7854
- return P(u), /* @__PURE__ */ w(pe, { children: [
7855
- /* @__PURE__ */ w(
7872
+ return P(u), /* @__PURE__ */ x(pe, { children: [
7873
+ /* @__PURE__ */ x(
7856
7874
  "div",
7857
7875
  {
7858
7876
  className: z,
@@ -7860,7 +7878,7 @@ const Pa = function(t, r, n) {
7860
7878
  onDragOver: I,
7861
7879
  onDragLeave: G,
7862
7880
  children: [
7863
- /* @__PURE__ */ w(
7881
+ /* @__PURE__ */ x(
7864
7882
  "label",
7865
7883
  {
7866
7884
  htmlFor: "file",
@@ -7875,7 +7893,7 @@ const Pa = function(t, r, n) {
7875
7893
  {
7876
7894
  variant: J.Tertiary,
7877
7895
  title: n,
7878
- onClick: () => f.current?.click()
7896
+ onClick: () => p.current?.click()
7879
7897
  }
7880
7898
  )
7881
7899
  ]
@@ -7887,7 +7905,7 @@ const Pa = function(t, r, n) {
7887
7905
  multiple: a,
7888
7906
  id: "file",
7889
7907
  type: "file",
7890
- ref: f,
7908
+ ref: p,
7891
7909
  hidden: !0,
7892
7910
  accept: o,
7893
7911
  onChange: D
@@ -7911,7 +7929,7 @@ const Pa = function(t, r, n) {
7911
7929
  ...n,
7912
7930
  iconBefore: /* @__PURE__ */ i("div", { className: "mr-2", children: o ? /* @__PURE__ */ i(Et, { ...X, className: "text-error" }) : e }),
7913
7931
  tooltipTriggerClassName: "flex-1 min-w-0",
7914
- cssClass: x(o ? "text-error" : "", t),
7932
+ cssClass: w(o ? "text-error" : "", t),
7915
7933
  tooltipText: o && r ? r : void 0,
7916
7934
  hideBorder: !0
7917
7935
  }
@@ -7925,28 +7943,28 @@ const Pa = function(t, r, n) {
7925
7943
  isInvalid: s,
7926
7944
  errorText: a,
7927
7945
  removeButtonAriaLabel: l
7928
- } = e, c = (f, g) => {
7929
- f.stopPropagation(), o(t?.filter((p) => p.name !== g) || []);
7930
- }, d = (f) => /* @__PURE__ */ i(
7946
+ } = e, c = (p, g) => {
7947
+ p.stopPropagation(), o(t?.filter((f) => f.name !== g) || []);
7948
+ }, d = (p) => /* @__PURE__ */ i(
7931
7949
  W1,
7932
7950
  {
7933
7951
  ariaLabel: l,
7934
- onClick: (g) => c(g, f)
7952
+ onClick: (g) => c(g, p)
7935
7953
  }
7936
- ), u = (f) => {
7937
- o(f);
7954
+ ), u = (p) => {
7955
+ o(p);
7938
7956
  };
7939
- return !t || t.length === 0 ? /* @__PURE__ */ i(zi, { backend: Pa, children: /* @__PURE__ */ i(Ma, { ...e, onChange: u }) }) : /* @__PURE__ */ i("div", { className: "flex-1 min-h-0 border border-solid border-primary rounded", children: t && t.length > 0 && /* @__PURE__ */ i("div", { className: "max-h-full overflow-y-auto", children: t.map((f, g) => /* @__PURE__ */ i(
7957
+ return !t || t.length === 0 ? /* @__PURE__ */ i(zi, { backend: Pa, children: /* @__PURE__ */ i(Ma, { ...e, onChange: u }) }) : /* @__PURE__ */ i("div", { className: "flex-1 min-h-0 border border-solid border-primary rounded", children: t && t.length > 0 && /* @__PURE__ */ i("div", { className: "max-h-full overflow-y-auto", children: t.map((p, g) => /* @__PURE__ */ i(
7940
7958
  Va,
7941
7959
  {
7942
- elementId: f.name,
7943
- value: f.name,
7944
- iconAfter: d(f.name),
7945
- iconBefore: r || n?.(f.name),
7946
- invalid: s?.(f),
7960
+ elementId: p.name,
7961
+ value: p.name,
7962
+ iconAfter: d(p.name),
7963
+ iconBefore: r || n?.(p.name),
7964
+ invalid: s?.(p),
7947
7965
  errorText: a
7948
7966
  },
7949
- f.name + g
7967
+ p.name + g
7950
7968
  )) }) });
7951
7969
  }, cl = ({
7952
7970
  onChange: e,
@@ -7960,9 +7978,9 @@ const Pa = function(t, r, n) {
7960
7978
  acceptTypes: c,
7961
7979
  deleteAllButtonLabel: d,
7962
7980
  addButtonLabel: u,
7963
- ...f
7981
+ ...p
7964
7982
  }) => {
7965
- const g = le(null), p = () => g.current?.click(), C = () => {
7983
+ const g = le(null), f = () => g.current?.click(), C = () => {
7966
7984
  e([]);
7967
7985
  }, h = A(
7968
7986
  (v) => v?.some(
@@ -7979,8 +7997,8 @@ const Pa = function(t, r, n) {
7979
7997
  },
7980
7998
  [e, n, h]
7981
7999
  );
7982
- return /* @__PURE__ */ w("div", { className: "h-full flex flex-col", children: [
7983
- /* @__PURE__ */ w("div", { className: "flex justify-between items-center pb-1 min-h-[42px]", children: [
8000
+ return /* @__PURE__ */ x("div", { className: "h-full flex flex-col", children: [
8001
+ /* @__PURE__ */ x("div", { className: "flex justify-between items-center pb-1 min-h-[42px]", children: [
7984
8002
  /* @__PURE__ */ i(
7985
8003
  Pe,
7986
8004
  {
@@ -7988,7 +8006,7 @@ const Pa = function(t, r, n) {
7988
8006
  htmlFor: r
7989
8007
  }
7990
8008
  ),
7991
- l && !!n?.length && /* @__PURE__ */ w("div", { className: "flex flex-row items-center gap-x-2", children: [
8009
+ l && !!n?.length && /* @__PURE__ */ x("div", { className: "flex flex-row items-center gap-x-2", children: [
7992
8010
  /* @__PURE__ */ i(
7993
8011
  Q,
7994
8012
  {
@@ -8005,7 +8023,7 @@ const Pa = function(t, r, n) {
8005
8023
  variant: J.Tertiary,
8006
8024
  iconBefore: /* @__PURE__ */ i(go, { ...X }),
8007
8025
  title: u,
8008
- onClick: p
8026
+ onClick: f
8009
8027
  }
8010
8028
  )
8011
8029
  ] })
@@ -8033,7 +8051,7 @@ const Pa = function(t, r, n) {
8033
8051
  fileFormatError: s,
8034
8052
  fileCountError: a,
8035
8053
  getIsFileFormatError: h,
8036
- ...f
8054
+ ...p
8037
8055
  }
8038
8056
  )
8039
8057
  ] });