@epam/ai-dial-ui-kit 0.6.0-rc.5 → 0.6.0-rc.6

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.
@@ -5,165 +5,25 @@ import * as be from "react";
5
5
  import q, { createContext as fa, useState as I, useRef as L, useEffect as Se, useMemo as B, useContext as st, isValidElement as gd, cloneElement as cc, useCallback as D, memo as ft, useLayoutEffect as qt, PureComponent as Ev, Component as Dv, forwardRef as pd, useImperativeHandle as xn, createElement as Yo, Suspense as Pv, useId as fd, Children as Tv } from "react";
6
6
  import { IconInfoCircle as md, IconCircleCheck as Mv, IconAlertTriangle as Iv, IconAlertCircle as Av, IconX as go, IconMinus as kv, IconCheck as Yg, IconExclamationCircle as Cd, IconClipboardX as Zg, IconChevronsLeft as Lv, IconChevronsRight as Ov, IconGripVertical as Nv, IconFile as Qg, IconFileTypeZip as Hv, IconFileTypeXml as Gv, IconFileTypeXls as Bv, IconFileTypeVue as Vv, IconFileTypeTxt as zv, IconFileTypeTsx as Wv, IconFileTypeTs as _v, IconFileTypeSvg as Uv, IconFileTypeSql as $v, IconFileTypeRs as jv, IconFileTypePpt as Kv, IconFileTypePng as qv, IconFileTypePhp as Yv, IconFileTypePdf as Zv, IconFileTypeJsx as Qv, IconFileTypeJs as Xv, IconFileTypeJpg as Jv, IconFileTypeHtml as ew, IconFileTypeDocx as tw, IconFileTypeDoc as sw, IconFileTypeCsv as iw, IconFileTypeCss as ow, IconFileTypeBmp as nw, IconArrowUpRight as rw, IconFolder as vd, IconChevronLeft as aw, IconChevronRight as Xg, IconZoomCancel as lw, IconChevronDown as ma, IconDotsVertical as Fn, IconDots as cw, IconTrashX as En, IconEyeOff as Jg, IconEye as ep, IconSearch as dw, IconPlus as uw, IconChevronUp as hw, IconAlertCircleFilled as gw, IconCaretRightFilled as pw, IconArrowLeft as fw, IconFileZip as mw, IconCopyMinus as Cw, IconFolderPlus as vw, IconCopy as wd, IconDownload as bd, IconPencilMinus as tp, IconCircleFilled as wr } from "@tabler/icons-react";
7
7
  import ww, { flushSync as bw, createPortal as Sd } from "react-dom";
8
- const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "text-error dial-tiny mt-1", children: e }), Ve = ({ icon: e, className: t }) => e ? /* @__PURE__ */ m("span", { className: ee("flex-shrink-0", t), children: e }) : null, Sw = 7, yw = 2, sp = fa(null), ip = () => {
9
- const e = st(sp);
10
- if (e == null)
11
- throw new Error("Tooltip components must be wrapped in <Tooltip />");
12
- return e;
13
- }, Rw = ({
14
- initialOpen: e = !1,
15
- placement: t = "bottom",
16
- isTriggerClickable: s = !1,
17
- open: i,
18
- onOpenChange: o
19
- } = {}) => {
20
- const [n, r] = I(e), a = L(null), l = i ?? n, c = o ?? r, d = ad({
21
- placement: t,
22
- open: l,
23
- onOpenChange: c,
24
- whileElementsMounted: jg,
25
- middleware: [
26
- _g(Sw + yw),
27
- Ug({
28
- crossAxis: t.includes("-"),
29
- fallbackAxisSideDirection: "start",
30
- padding: 5
31
- }),
32
- $g({ padding: 5 }),
33
- wv({
34
- element: a
35
- })
36
- ]
37
- }), u = Kg(d.context, {
38
- move: !1,
39
- enabled: i == null,
40
- mouseOnly: s,
41
- delay: { open: 500, close: 0 }
42
- }), h = bv(d.context, {
43
- enabled: i == null
44
- }), g = ld(d.context), p = cd(d.context, { role: "tooltip" }), f = dd([u, h, g, p]);
45
- return Se(() => {
46
- if (!l) return;
47
- const C = d.refs.reference.current;
48
- if (!(C instanceof Element)) return;
49
- const v = new IntersectionObserver(
50
- ([w]) => {
51
- w.isIntersecting || c(!1);
52
- },
53
- { root: null, threshold: 0 }
54
- );
55
- return v.observe(C), () => v.disconnect();
56
- }, [l, d.refs.reference, c]), B(
57
- () => ({
58
- open: l,
59
- setOpen: c,
60
- arrowRef: a,
61
- ...f,
62
- ...d
63
- }),
64
- [l, c, f, d]
65
- );
66
- }, op = ({
67
- children: e,
68
- ...t
69
- }) => {
70
- const s = Rw(t);
71
- return /* @__PURE__ */ m(sp.Provider, { value: s, children: e });
72
- }, np = ({ style: e, ...t }) => {
73
- const s = ip(), i = L(null), o = ud([s.refs.setFloating, i]);
74
- return s.open ? /* @__PURE__ */ m(hd, { id: "tooltip-portal", children: /* @__PURE__ */ z(
75
- "div",
76
- {
77
- ref: o,
78
- style: {
79
- ...s.floatingStyles,
80
- ...e
81
- },
82
- ...s.getFloatingProps(t),
83
- className: ee(
84
- "z-[55] whitespace-pre-wrap break-words rounded border border-primary bg-layer-0 px-2 py-1 dial-tiny shadow max-w-[300px]",
85
- s.getFloatingProps(t).className
86
- ),
87
- children: [
88
- t.children,
89
- /* @__PURE__ */ m(
90
- Sv,
91
- {
92
- ref: s.arrowRef,
93
- context: s.context,
94
- fill: "currentColor",
95
- strokeWidth: 1,
96
- className: "border-primary w-2 text-[var(--bg-layer-0,_#000000)]"
97
- }
98
- )
99
- ]
100
- }
101
- ) }) : null;
102
- }, rp = ({
103
- children: e,
104
- asChild: t = !1,
105
- ...s
106
- }) => {
107
- const i = ip(), o = t && gd(e), n = o ? e.props?.ref : null, r = ud([
108
- i.refs.setReference,
109
- ...n ? [n] : []
110
- ]);
111
- return o ? cc(
112
- e,
113
- i.getReferenceProps({
114
- ...e.props,
115
- ...s,
116
- ref: r
117
- })
118
- ) : /* @__PURE__ */ m(
119
- "span",
120
- {
121
- ref: r,
122
- ...i.getReferenceProps(s),
123
- className: s.className ?? "dial-tooltip-trigger text-left",
124
- children: e
125
- }
126
- );
127
- }, js = ({
128
- hideTooltip: e,
129
- tooltip: t,
130
- children: s,
131
- triggerClassName: i,
132
- contentClassName: o,
133
- ...n
134
- }) => /* @__PURE__ */ z(op, { ...n, children: [
135
- /* @__PURE__ */ m(rp, { className: ee(i, "truncate"), children: s }),
136
- /* @__PURE__ */ m(
137
- np,
138
- {
139
- className: ee(
140
- "text-primary",
141
- o,
142
- "max-w-[300px]",
143
- (e || !t) && "hidden"
144
- ),
145
- children: t
146
- }
147
- )
148
- ] }), yd = "-", xw = (e) => {
149
- const t = Ew(e), {
8
+ const yd = "-", Sw = (e) => {
9
+ const t = Rw(e), {
150
10
  conflictingClassGroups: s,
151
11
  conflictingClassGroupModifiers: i
152
12
  } = e;
153
13
  return {
154
14
  getClassGroupId: (r) => {
155
15
  const a = r.split(yd);
156
- return a[0] === "" && a.length !== 1 && a.shift(), ap(a, t) || Fw(r);
16
+ return a[0] === "" && a.length !== 1 && a.shift(), sp(a, t) || yw(r);
157
17
  },
158
18
  getConflictingClassGroupIds: (r, a) => {
159
19
  const l = s[r] || [];
160
20
  return a && i[r] ? [...l, ...i[r]] : l;
161
21
  }
162
22
  };
163
- }, ap = (e, t) => {
23
+ }, sp = (e, t) => {
164
24
  if (e.length === 0)
165
25
  return t.classGroupId;
166
- const s = e[0], i = t.nextPart.get(s), o = i ? ap(e.slice(1), i) : void 0;
26
+ const s = e[0], i = t.nextPart.get(s), o = i ? sp(e.slice(1), i) : void 0;
167
27
  if (o)
168
28
  return o;
169
29
  if (t.validators.length === 0)
@@ -172,13 +32,13 @@ const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "te
172
32
  return t.validators.find(({
173
33
  validator: r
174
34
  }) => r(n))?.classGroupId;
175
- }, Iu = /^\[(.+)\]$/, Fw = (e) => {
35
+ }, Iu = /^\[(.+)\]$/, yw = (e) => {
176
36
  if (Iu.test(e)) {
177
37
  const t = Iu.exec(e)[1], s = t?.substring(0, t.indexOf(":"));
178
38
  if (s)
179
39
  return "arbitrary.." + s;
180
40
  }
181
- }, Ew = (e) => {
41
+ }, Rw = (e) => {
182
42
  const {
183
43
  theme: t,
184
44
  classGroups: s
@@ -197,7 +57,7 @@ const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "te
197
57
  return;
198
58
  }
199
59
  if (typeof o == "function") {
200
- if (Dw(o)) {
60
+ if (xw(o)) {
201
61
  dc(o(i), t, s, i);
202
62
  return;
203
63
  }
@@ -219,7 +79,7 @@ const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "te
219
79
  validators: []
220
80
  }), s = s.nextPart.get(i);
221
81
  }), s;
222
- }, Dw = (e) => e.isThemeGetter, Pw = (e) => {
82
+ }, xw = (e) => e.isThemeGetter, Fw = (e) => {
223
83
  if (e < 1)
224
84
  return {
225
85
  get: () => {
@@ -243,7 +103,7 @@ const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "te
243
103
  s.has(n) ? s.set(n, r) : o(n, r);
244
104
  }
245
105
  };
246
- }, uc = "!", hc = ":", Tw = hc.length, Mw = (e) => {
106
+ }, uc = "!", hc = ":", Ew = hc.length, Dw = (e) => {
247
107
  const {
248
108
  prefix: t,
249
109
  experimentalParseClassName: s
@@ -255,7 +115,7 @@ const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "te
255
115
  let f = o[p];
256
116
  if (r === 0 && a === 0) {
257
117
  if (f === hc) {
258
- n.push(o.slice(l, p)), l = p + Tw;
118
+ n.push(o.slice(l, p)), l = p + Ew;
259
119
  continue;
260
120
  }
261
121
  if (f === "/") {
@@ -265,7 +125,7 @@ const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "te
265
125
  }
266
126
  f === "[" ? r++ : f === "]" ? r-- : f === "(" ? a++ : f === ")" && a--;
267
127
  }
268
- const d = n.length === 0 ? o : o.substring(l), u = Iw(d), h = u !== d, g = c && c > l ? c - l : void 0;
128
+ const d = n.length === 0 ? o : o.substring(l), u = Pw(d), h = u !== d, g = c && c > l ? c - l : void 0;
269
129
  return {
270
130
  modifiers: n,
271
131
  hasImportantModifier: h,
@@ -291,7 +151,7 @@ const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "te
291
151
  });
292
152
  }
293
153
  return i;
294
- }, Iw = (e) => e.endsWith(uc) ? e.substring(0, e.length - 1) : e.startsWith(uc) ? e.substring(1) : e, Aw = (e) => {
154
+ }, Pw = (e) => e.endsWith(uc) ? e.substring(0, e.length - 1) : e.startsWith(uc) ? e.substring(1) : e, Tw = (e) => {
295
155
  const t = Object.fromEntries(e.orderSensitiveModifiers.map((i) => [i, !0]));
296
156
  return (i) => {
297
157
  if (i.length <= 1)
@@ -302,18 +162,18 @@ const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "te
302
162
  r[0] === "[" || t[r] ? (o.push(...n.sort(), r), n = []) : n.push(r);
303
163
  }), o.push(...n.sort()), o;
304
164
  };
305
- }, kw = (e) => ({
306
- cache: Pw(e.cacheSize),
307
- parseClassName: Mw(e),
308
- sortModifiers: Aw(e),
309
- ...xw(e)
310
- }), Lw = /\s+/, Ow = (e, t) => {
165
+ }, Mw = (e) => ({
166
+ cache: Fw(e.cacheSize),
167
+ parseClassName: Dw(e),
168
+ sortModifiers: Tw(e),
169
+ ...Sw(e)
170
+ }), Iw = /\s+/, Aw = (e, t) => {
311
171
  const {
312
172
  parseClassName: s,
313
173
  getClassGroupId: i,
314
174
  getConflictingClassGroupIds: o,
315
175
  sortModifiers: n
316
- } = t, r = [], a = e.trim().split(Lw);
176
+ } = t, r = [], a = e.trim().split(Iw);
317
177
  let l = "";
318
178
  for (let c = a.length - 1; c >= 0; c -= 1) {
319
179
  const d = a[c], {
@@ -352,52 +212,52 @@ const hi = ({ errorText: e }) => e && /* @__PURE__ */ m("span", { className: "te
352
212
  }
353
213
  return l;
354
214
  };
355
- function Nw() {
215
+ function kw() {
356
216
  let e = 0, t, s, i = "";
357
217
  for (; e < arguments.length; )
358
- (t = arguments[e++]) && (s = lp(t)) && (i && (i += " "), i += s);
218
+ (t = arguments[e++]) && (s = ip(t)) && (i && (i += " "), i += s);
359
219
  return i;
360
220
  }
361
- const lp = (e) => {
221
+ const ip = (e) => {
362
222
  if (typeof e == "string")
363
223
  return e;
364
224
  let t, s = "";
365
225
  for (let i = 0; i < e.length; i++)
366
- e[i] && (t = lp(e[i])) && (s && (s += " "), s += t);
226
+ e[i] && (t = ip(e[i])) && (s && (s += " "), s += t);
367
227
  return s;
368
228
  };
369
- function Hw(e, ...t) {
229
+ function Lw(e, ...t) {
370
230
  let s, i, o, n = r;
371
231
  function r(l) {
372
232
  const c = t.reduce((d, u) => u(d), e());
373
- return s = kw(c), i = s.cache.get, o = s.cache.set, n = a, a(l);
233
+ return s = Mw(c), i = s.cache.get, o = s.cache.set, n = a, a(l);
374
234
  }
375
235
  function a(l) {
376
236
  const c = i(l);
377
237
  if (c)
378
238
  return c;
379
- const d = Ow(l, s);
239
+ const d = Aw(l, s);
380
240
  return o(l, d), d;
381
241
  }
382
242
  return function() {
383
- return n(Nw.apply(null, arguments));
243
+ return n(kw.apply(null, arguments));
384
244
  };
385
245
  }
386
246
  const et = (e) => {
387
247
  const t = (s) => s[e] || [];
388
248
  return t.isThemeGetter = !0, t;
389
- }, cp = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, dp = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Gw = /^\d+\/\d+$/, Bw = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vw = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zw = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ww = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _w = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ii = (e) => Gw.test(e), Ee = (e) => !!e && !Number.isNaN(Number(e)), ks = (e) => !!e && Number.isInteger(Number(e)), gl = (e) => e.endsWith("%") && Ee(e.slice(0, -1)), ps = (e) => Bw.test(e), Uw = () => !0, $w = (e) => (
249
+ }, op = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, np = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ow = /^\d+\/\d+$/, Nw = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hw = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Gw = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Bw = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vw = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ii = (e) => Ow.test(e), Ee = (e) => !!e && !Number.isNaN(Number(e)), ks = (e) => !!e && Number.isInteger(Number(e)), gl = (e) => e.endsWith("%") && Ee(e.slice(0, -1)), ps = (e) => Nw.test(e), zw = () => !0, Ww = (e) => (
390
250
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
391
251
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
392
252
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
393
- Vw.test(e) && !zw.test(e)
394
- ), up = () => !1, jw = (e) => Ww.test(e), Kw = (e) => _w.test(e), qw = (e) => !re(e) && !ae(e), Yw = (e) => po(e, pp, up), re = (e) => cp.test(e), Xs = (e) => po(e, fp, $w), pl = (e) => po(e, e1, Ee), ku = (e) => po(e, hp, up), Zw = (e) => po(e, gp, Kw), Xn = (e) => po(e, mp, jw), ae = (e) => dp.test(e), Bo = (e) => fo(e, fp), Qw = (e) => fo(e, t1), Lu = (e) => fo(e, hp), Xw = (e) => fo(e, pp), Jw = (e) => fo(e, gp), Jn = (e) => fo(e, mp, !0), po = (e, t, s) => {
395
- const i = cp.exec(e);
253
+ Hw.test(e) && !Gw.test(e)
254
+ ), rp = () => !1, _w = (e) => Bw.test(e), Uw = (e) => Vw.test(e), $w = (e) => !re(e) && !ae(e), jw = (e) => po(e, cp, rp), re = (e) => op.test(e), Xs = (e) => po(e, dp, Ww), pl = (e) => po(e, Qw, Ee), ku = (e) => po(e, ap, rp), Kw = (e) => po(e, lp, Uw), Xn = (e) => po(e, up, _w), ae = (e) => np.test(e), Bo = (e) => fo(e, dp), qw = (e) => fo(e, Xw), Lu = (e) => fo(e, ap), Yw = (e) => fo(e, cp), Zw = (e) => fo(e, lp), Jn = (e) => fo(e, up, !0), po = (e, t, s) => {
255
+ const i = op.exec(e);
396
256
  return i ? i[1] ? t(i[1]) : s(i[2]) : !1;
397
257
  }, fo = (e, t, s = !1) => {
398
- const i = dp.exec(e);
258
+ const i = np.exec(e);
399
259
  return i ? i[1] ? t(i[1]) : s : !1;
400
- }, hp = (e) => e === "position" || e === "percentage", gp = (e) => e === "image" || e === "url", pp = (e) => e === "length" || e === "size" || e === "bg-size", fp = (e) => e === "length", e1 = (e) => e === "number", t1 = (e) => e === "family-name", mp = (e) => e === "shadow", s1 = () => {
260
+ }, ap = (e) => e === "position" || e === "percentage", lp = (e) => e === "image" || e === "url", cp = (e) => e === "length" || e === "size" || e === "bg-size", dp = (e) => e === "length", Qw = (e) => e === "number", Xw = (e) => e === "family-name", up = (e) => e === "shadow", Jw = () => {
401
261
  const e = et("color"), t = et("font"), s = et("text"), i = et("font-weight"), o = et("tracking"), n = et("leading"), r = et("breakpoint"), a = et("container"), l = et("spacing"), c = et("radius"), d = et("shadow"), u = et("inset-shadow"), h = et("text-shadow"), g = et("drop-shadow"), p = et("blur"), f = et("perspective"), C = et("aspect"), v = et("ease"), w = et("animate"), b = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
402
262
  "center",
403
263
  "top",
@@ -422,7 +282,7 @@ const et = (e) => {
422
282
  position: [ae, re]
423
283
  }], U = () => ["no-repeat", {
424
284
  repeat: ["", "x", "y", "space", "round"]
425
- }], se = () => ["auto", "cover", "contain", Xw, Yw, {
285
+ }], se = () => ["auto", "cover", "contain", Yw, jw, {
426
286
  size: [ae, re]
427
287
  }], te = () => [gl, Bo, Xs], Z = () => [
428
288
  // Deprecated since Tailwind CSS v4.0.0
@@ -447,11 +307,11 @@ const et = (e) => {
447
307
  aspect: ["video"],
448
308
  blur: [ps],
449
309
  breakpoint: [ps],
450
- color: [Uw],
310
+ color: [zw],
451
311
  container: [ps],
452
312
  "drop-shadow": [ps],
453
313
  ease: ["in", "out", "in-out"],
454
- font: [qw],
314
+ font: [$w],
455
315
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
456
316
  "inset-shadow": [ps],
457
317
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -1163,7 +1023,7 @@ const et = (e) => {
1163
1023
  * @see https://tailwindcss.com/docs/font-family
1164
1024
  */
1165
1025
  "font-family": [{
1166
- font: [Qw, re, t]
1026
+ font: [qw, re, t]
1167
1027
  }],
1168
1028
  /**
1169
1029
  * Font Variant Numeric
@@ -1418,7 +1278,7 @@ const et = (e) => {
1418
1278
  }, ks, ae, re],
1419
1279
  radial: ["", ae, re],
1420
1280
  conic: [ks, ae, re]
1421
- }, Jw, Zw]
1281
+ }, Zw, Kw]
1422
1282
  }],
1423
1283
  /**
1424
1284
  * Background Color
@@ -2867,11 +2727,162 @@ const et = (e) => {
2867
2727
  },
2868
2728
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2869
2729
  };
2870
- }, i1 = /* @__PURE__ */ Hw(s1);
2871
- function pe(...e) {
2872
- return i1(ee(e));
2730
+ }, e1 = /* @__PURE__ */ Lw(Jw);
2731
+ function ge(...e) {
2732
+ return e1(ee(e));
2873
2733
  }
2874
- const mo = ({
2734
+ const hi = ({
2735
+ errorText: e,
2736
+ className: t,
2737
+ ...s
2738
+ }) => e ? /* @__PURE__ */ m(
2739
+ "span",
2740
+ {
2741
+ ...s,
2742
+ className: ge("text-error dial-tiny mt-1", t),
2743
+ children: e
2744
+ }
2745
+ ) : null, Ve = ({ icon: e, className: t }) => e ? /* @__PURE__ */ m("span", { className: ee("flex-shrink-0", t), children: e }) : null, t1 = 7, s1 = 2, hp = fa(null), gp = () => {
2746
+ const e = st(hp);
2747
+ if (e == null)
2748
+ throw new Error("Tooltip components must be wrapped in <Tooltip />");
2749
+ return e;
2750
+ }, i1 = ({
2751
+ initialOpen: e = !1,
2752
+ placement: t = "bottom",
2753
+ isTriggerClickable: s = !1,
2754
+ open: i,
2755
+ onOpenChange: o
2756
+ } = {}) => {
2757
+ const [n, r] = I(e), a = L(null), l = i ?? n, c = o ?? r, d = ad({
2758
+ placement: t,
2759
+ open: l,
2760
+ onOpenChange: c,
2761
+ whileElementsMounted: jg,
2762
+ middleware: [
2763
+ _g(t1 + s1),
2764
+ Ug({
2765
+ crossAxis: t.includes("-"),
2766
+ fallbackAxisSideDirection: "start",
2767
+ padding: 5
2768
+ }),
2769
+ $g({ padding: 5 }),
2770
+ wv({
2771
+ element: a
2772
+ })
2773
+ ]
2774
+ }), u = Kg(d.context, {
2775
+ move: !1,
2776
+ enabled: i == null,
2777
+ mouseOnly: s,
2778
+ delay: { open: 500, close: 0 }
2779
+ }), h = bv(d.context, {
2780
+ enabled: i == null
2781
+ }), g = ld(d.context), p = cd(d.context, { role: "tooltip" }), f = dd([u, h, g, p]);
2782
+ return Se(() => {
2783
+ if (!l) return;
2784
+ const C = d.refs.reference.current;
2785
+ if (!(C instanceof Element)) return;
2786
+ const v = new IntersectionObserver(
2787
+ ([w]) => {
2788
+ w.isIntersecting || c(!1);
2789
+ },
2790
+ { root: null, threshold: 0 }
2791
+ );
2792
+ return v.observe(C), () => v.disconnect();
2793
+ }, [l, d.refs.reference, c]), B(
2794
+ () => ({
2795
+ open: l,
2796
+ setOpen: c,
2797
+ arrowRef: a,
2798
+ ...f,
2799
+ ...d
2800
+ }),
2801
+ [l, c, f, d]
2802
+ );
2803
+ }, pp = ({
2804
+ children: e,
2805
+ ...t
2806
+ }) => {
2807
+ const s = i1(t);
2808
+ return /* @__PURE__ */ m(hp.Provider, { value: s, children: e });
2809
+ }, fp = ({ style: e, ...t }) => {
2810
+ const s = gp(), i = L(null), o = ud([s.refs.setFloating, i]);
2811
+ return s.open ? /* @__PURE__ */ m(hd, { id: "tooltip-portal", children: /* @__PURE__ */ z(
2812
+ "div",
2813
+ {
2814
+ ref: o,
2815
+ style: {
2816
+ ...s.floatingStyles,
2817
+ ...e
2818
+ },
2819
+ ...s.getFloatingProps(t),
2820
+ className: ee(
2821
+ "z-[55] whitespace-pre-wrap break-words rounded border border-primary bg-layer-0 px-2 py-1 dial-tiny shadow max-w-[300px]",
2822
+ s.getFloatingProps(t).className
2823
+ ),
2824
+ children: [
2825
+ t.children,
2826
+ /* @__PURE__ */ m(
2827
+ Sv,
2828
+ {
2829
+ ref: s.arrowRef,
2830
+ context: s.context,
2831
+ fill: "currentColor",
2832
+ strokeWidth: 1,
2833
+ className: "border-primary w-2 text-[var(--bg-layer-0,_#000000)]"
2834
+ }
2835
+ )
2836
+ ]
2837
+ }
2838
+ ) }) : null;
2839
+ }, mp = ({
2840
+ children: e,
2841
+ asChild: t = !1,
2842
+ ...s
2843
+ }) => {
2844
+ const i = gp(), o = t && gd(e), n = o ? e.props?.ref : null, r = ud([
2845
+ i.refs.setReference,
2846
+ ...n ? [n] : []
2847
+ ]);
2848
+ return o ? cc(
2849
+ e,
2850
+ i.getReferenceProps({
2851
+ ...e.props,
2852
+ ...s,
2853
+ ref: r
2854
+ })
2855
+ ) : /* @__PURE__ */ m(
2856
+ "span",
2857
+ {
2858
+ ref: r,
2859
+ ...i.getReferenceProps(s),
2860
+ className: s.className ?? "dial-tooltip-trigger text-left",
2861
+ children: e
2862
+ }
2863
+ );
2864
+ }, js = ({
2865
+ hideTooltip: e,
2866
+ tooltip: t,
2867
+ children: s,
2868
+ triggerClassName: i,
2869
+ contentClassName: o,
2870
+ ...n
2871
+ }) => /* @__PURE__ */ z(pp, { ...n, children: [
2872
+ /* @__PURE__ */ m(mp, { className: ee(i, "truncate"), children: s }),
2873
+ /* @__PURE__ */ m(
2874
+ fp,
2875
+ {
2876
+ className: ee(
2877
+ "text-primary",
2878
+ o,
2879
+ "max-w-[300px]",
2880
+ (e || !t) && "hidden"
2881
+ ),
2882
+ children: t
2883
+ }
2884
+ )
2885
+ ] }), mo = ({
2875
2886
  fieldTitle: e,
2876
2887
  optional: t,
2877
2888
  optionalText: s,
@@ -2882,7 +2893,7 @@ const mo = ({
2882
2893
  "label",
2883
2894
  {
2884
2895
  ...n,
2885
- className: pe(
2896
+ className: ge(
2886
2897
  "dial-tiny text-secondary flex gap-1",
2887
2898
  i,
2888
2899
  !i?.includes("mb") && "mb-2"
@@ -2969,7 +2980,7 @@ const n1 = (e) => ({
2969
2980
  {
2970
2981
  ...a,
2971
2982
  role: "alert",
2972
- className: pe(
2983
+ className: ge(
2973
2984
  a1,
2974
2985
  r1[e],
2975
2986
  s
@@ -3055,9 +3066,9 @@ const n1 = (e) => ({
3055
3066
  () => typeof e == "string" ? e : c,
3056
3067
  [c, e]
3057
3068
  ), f = B(() => i ? "" : a ? p : "", [p, i, a]);
3058
- return /* @__PURE__ */ z(op, { ...n, children: [
3069
+ return /* @__PURE__ */ z(pp, { ...n, children: [
3059
3070
  /* @__PURE__ */ m(
3060
- rp,
3071
+ mp,
3061
3072
  {
3062
3073
  asChild: !0,
3063
3074
  onMouseEnter: g,
@@ -3066,7 +3077,7 @@ const n1 = (e) => ({
3066
3077
  "span",
3067
3078
  {
3068
3079
  id: o,
3069
- className: pe(
3080
+ className: ge(
3070
3081
  "block truncate flex-1 min-w-0 max-w-full text-left",
3071
3082
  t
3072
3083
  ),
@@ -3080,9 +3091,9 @@ const n1 = (e) => ({
3080
3091
  }
3081
3092
  ),
3082
3093
  /* @__PURE__ */ m(
3083
- np,
3094
+ fp,
3084
3095
  {
3085
- className: pe(
3096
+ className: ge(
3086
3097
  u1,
3087
3098
  s,
3088
3099
  !f && "hidden"
@@ -3324,7 +3335,7 @@ const m1 = "w-full flex", C1 = {
3324
3335
  role: "group",
3325
3336
  "aria-labelledby": t ? v : void 0,
3326
3337
  "aria-describedby": y,
3327
- className: pe(
3338
+ className: ge(
3328
3339
  m1,
3329
3340
  C1[r],
3330
3341
  l
@@ -3334,7 +3345,7 @@ const m1 = "w-full flex", C1 = {
3334
3345
  "div",
3335
3346
  {
3336
3347
  id: v,
3337
- className: pe(r === "horizontal" && "shrink-0"),
3348
+ className: ge(r === "horizontal" && "shrink-0"),
3338
3349
  children: /* @__PURE__ */ m(
3339
3350
  mo,
3340
3351
  {
@@ -3342,7 +3353,7 @@ const m1 = "w-full flex", C1 = {
3342
3353
  fieldTitle: t,
3343
3354
  optional: s,
3344
3355
  optionalText: i,
3345
- className: pe(
3356
+ className: ge(
3346
3357
  a && "sr-only",
3347
3358
  c
3348
3359
  ),
@@ -3351,13 +3362,13 @@ const m1 = "w-full flex", C1 = {
3351
3362
  )
3352
3363
  }
3353
3364
  ),
3354
- /* @__PURE__ */ z("div", { className: pe("min-w-0 w-full", u), children: [
3365
+ /* @__PURE__ */ z("div", { className: ge("min-w-0 w-full", u), children: [
3355
3366
  g ? /* @__PURE__ */ m("div", { className: "dial-input px-3 py-2", children: x() }) : C,
3356
3367
  h && /* @__PURE__ */ m(
3357
3368
  "div",
3358
3369
  {
3359
3370
  id: S,
3360
- className: pe({
3371
+ className: ge({
3361
3372
  "dial-tiny text-secondary mt-1": !0,
3362
3373
  "text-error": !!n
3363
3374
  }),
@@ -3406,7 +3417,7 @@ const v1 = "flex", w1 = "pb-1 mt-2", b1 = {
3406
3417
  role: "radiogroup",
3407
3418
  "aria-label": e,
3408
3419
  "aria-disabled": u || void 0,
3409
- className: pe(
3420
+ className: ge(
3410
3421
  v1,
3411
3422
  b1[f],
3412
3423
  n
@@ -3414,7 +3425,7 @@ const v1 = "flex", w1 = "pb-1 mt-2", b1 = {
3414
3425
  children: g.map((v) => /* @__PURE__ */ z(
3415
3426
  "div",
3416
3427
  {
3417
- className: pe(
3428
+ className: ge(
3418
3429
  "flex flex-col",
3419
3430
  r,
3420
3431
  v.id === p && a
@@ -3428,7 +3439,7 @@ const v1 = "flex", w1 = "pb-1 mt-2", b1 = {
3428
3439
  inputId: v.id,
3429
3440
  disabled: u,
3430
3441
  className: t,
3431
- labelClassName: pe(
3442
+ labelClassName: ge(
3432
3443
  d,
3433
3444
  v.id === p && o
3434
3445
  ),
@@ -3440,7 +3451,7 @@ const v1 = "flex", w1 = "pb-1 mt-2", b1 = {
3440
3451
  v.id === p && v.content ? /* @__PURE__ */ m(
3441
3452
  "div",
3442
3453
  {
3443
- className: pe(
3454
+ className: ge(
3444
3455
  w1,
3445
3456
  i
3446
3457
  ),
@@ -3464,7 +3475,7 @@ const v1 = "flex", w1 = "pb-1 mt-2", b1 = {
3464
3475
  }) => /* @__PURE__ */ z(
3465
3476
  "div",
3466
3477
  {
3467
- className: pe(
3478
+ className: ge(
3468
3479
  "h-full w-full flex flex-col items-center justify-center text-secondary",
3469
3480
  i
3470
3481
  ),
@@ -3474,7 +3485,7 @@ const v1 = "flex", w1 = "pb-1 mt-2", b1 = {
3474
3485
  /* @__PURE__ */ m(
3475
3486
  "span",
3476
3487
  {
3477
- className: pe("dial-small mt-2 text-primary", o),
3488
+ className: ge("dial-small mt-2 text-primary", o),
3478
3489
  "aria-label": "no-results-title",
3479
3490
  children: t
3480
3491
  }
@@ -3482,7 +3493,7 @@ const v1 = "flex", w1 = "pb-1 mt-2", b1 = {
3482
3493
  s && /* @__PURE__ */ m(
3483
3494
  "span",
3484
3495
  {
3485
- className: pe("mt-1 text-primary", n),
3496
+ className: ge("mt-1 text-primary", n),
3486
3497
  "aria-label": "no-results-description",
3487
3498
  children: s
3488
3499
  }
@@ -3544,7 +3555,7 @@ const v1 = "flex", w1 = "pb-1 mt-2", b1 = {
3544
3555
  /* @__PURE__ */ z(
3545
3556
  "div",
3546
3557
  {
3547
- className: pe("border-t border-primary h-12", v),
3558
+ className: ge("border-t border-primary h-12", v),
3548
3559
  children: [
3549
3560
  f && a,
3550
3561
  /* @__PURE__ */ m(
@@ -3600,7 +3611,7 @@ const y1 = {
3600
3611
  iconBefore: o,
3601
3612
  bordered: n = !0
3602
3613
  }) => {
3603
- const r = y1[i], a = pe(
3614
+ const r = y1[i], a = ge(
3604
3615
  "flex items-center gap-1 dial-tiny rounded p-1 h-[22px] text-primary",
3605
3616
  r,
3606
3617
  n ? "border" : "border-transparent",
@@ -5392,7 +5403,7 @@ const ju = "column", R0 = "flex items-center", x0 = "mr-3 cursor-move text-secon
5392
5403
  "div",
5393
5404
  {
5394
5405
  ref: a,
5395
- className: pe(R0, s),
5406
+ className: ge(R0, s),
5396
5407
  style: { opacity: c ? 0 : 1 },
5397
5408
  "aria-roledescription": "Draggable item",
5398
5409
  children: [
@@ -5482,7 +5493,7 @@ const ju = "column", R0 = "flex items-center", x0 = "mr-3 cursor-move text-secon
5482
5493
  }) => /* @__PURE__ */ m(
5483
5494
  Ve,
5484
5495
  {
5485
- className: pe("text-accent-primary", s),
5496
+ className: ge("text-accent-primary", s),
5486
5497
  icon: /* @__PURE__ */ m(
5487
5498
  rw,
5488
5499
  {
@@ -5502,7 +5513,7 @@ const ju = "column", R0 = "flex items-center", x0 = "mr-3 cursor-move text-secon
5502
5513
  details: o
5503
5514
  }) => {
5504
5515
  const n = e.includes(".") ? e.split(".").pop() : null;
5505
- return /* @__PURE__ */ z("div", { className: pe("flex items-center gap-2 w-full", t), children: [
5516
+ return /* @__PURE__ */ z("div", { className: ge("flex items-center gap-2 w-full", t), children: [
5506
5517
  n && /* @__PURE__ */ m(
5507
5518
  Tp,
5508
5519
  {
@@ -5548,7 +5559,7 @@ const ju = "column", R0 = "flex items-center", x0 = "mr-3 cursor-move text-secon
5548
5559
  className: "inline-block align-middle"
5549
5560
  }
5550
5561
  );
5551
- return /* @__PURE__ */ z("div", { className: pe("flex items-center gap-2 w-full", t), children: [
5562
+ return /* @__PURE__ */ z("div", { className: ge("flex items-center gap-2 w-full", t), children: [
5552
5563
  /* @__PURE__ */ z("span", { className: "inline-flex relative text-secondary", role: "img", children: [
5553
5564
  n(),
5554
5565
  s && /* @__PURE__ */ m("span", { className: "absolute -bottom-0.5 -left-0.5", children: /* @__PURE__ */ m(Vr, {}) })
@@ -6032,7 +6043,7 @@ const z0 = ({ side: e, className: t }) => {
6032
6043
  customHandler: s,
6033
6044
  handlerClassName: i
6034
6045
  }) => {
6035
- const o = pe(
6046
+ const o = ge(
6036
6047
  "invisible h-full w-0.5 group-hover:visible bg-accent-primary text-accent-primary cursor-col-resize transition-opacity",
6037
6048
  t && "visible",
6038
6049
  i
@@ -6136,13 +6147,13 @@ const $0 = (e) => {
6136
6147
  }) => {
6137
6148
  if (!o && n)
6138
6149
  return /* @__PURE__ */ m(Be, { children: n });
6139
- const u = pe(
6150
+ const u = ge(
6140
6151
  "bg-layer-3",
6141
6152
  e && "animate-pulse",
6142
6153
  c
6143
6154
  );
6144
6155
  if (r !== Kt.Default) {
6145
- const E = pe(
6156
+ const E = ge(
6146
6157
  u,
6147
6158
  r === Kt.Circular && "rounded-full",
6148
6159
  r === Kt.Rectangular && "rounded",
@@ -6151,11 +6162,11 @@ const $0 = (e) => {
6151
6162
  return a && (T.width = typeof a == "number" ? `${a}px` : a), l && (T.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ m("div", { className: E, style: T, ...d });
6152
6163
  }
6153
6164
  const h = !!s, g = !!i, p = !!t, f = typeof s == "object" ? s : {}, C = typeof i == "object" ? i : {}, v = typeof t == "object" ? t : {}, w = $0(f.size), b = f.shape ?? vc.Circle, S = C.width ?? "38%", y = v.rows ?? 3, R = v.width, x = (E) => R ? Array.isArray(R) ? R[E] ?? "100%" : R : E === y - 1 ? "61%" : "100%";
6154
- return /* @__PURE__ */ z("div", { ...d, className: pe("flex gap-4", c), children: [
6165
+ return /* @__PURE__ */ z("div", { ...d, className: ge("flex gap-4", c), children: [
6155
6166
  h && /* @__PURE__ */ m(
6156
6167
  "div",
6157
6168
  {
6158
- className: pe(
6169
+ className: ge(
6159
6170
  u,
6160
6171
  b === vc.Circle ? "rounded-full" : "rounded",
6161
6172
  "flex-shrink-0"
@@ -6167,14 +6178,14 @@ const $0 = (e) => {
6167
6178
  g && /* @__PURE__ */ m(
6168
6179
  "div",
6169
6180
  {
6170
- className: pe(u, "h-4 rounded"),
6181
+ className: ge(u, "h-4 rounded"),
6171
6182
  style: { width: S }
6172
6183
  }
6173
6184
  ),
6174
6185
  p && /* @__PURE__ */ m("div", { className: "flex flex-col gap-3", children: Array.from({ length: y }).map((E, T) => /* @__PURE__ */ m(
6175
6186
  "div",
6176
6187
  {
6177
- className: pe(u, "h-4 rounded"),
6188
+ className: ge(u, "h-4 rounded"),
6178
6189
  style: { width: x(T) }
6179
6190
  },
6180
6191
  T
@@ -43813,14 +43824,14 @@ var ok = 1e3, nk = class {
43813
43824
  instanceId: r
43814
43825
  } = e, a = L(), [l, c] = I(
43815
43826
  () => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
43816
- ), [d, u] = I(), [h, g] = I(1), [p, f] = I(), [C, v] = I(!1), [w, b] = I(!1), [S, y] = I(!1), [R, x] = I(), E = B(() => e.isForceWrapper(), [e]), T = B(() => e.getCellAriaRole(), [e]), k = L(null), F = L(null), P = L(null), G = L(), _ = L(), H = L(), ie = L([]), ne = L(), N = L(), [ue, U] = I(0), se = D((ge) => {
43817
- N.current = ge, U((Pe) => Pe + 1);
43827
+ ), [d, u] = I(), [h, g] = I(1), [p, f] = I(), [C, v] = I(!1), [w, b] = I(!1), [S, y] = I(!1), [R, x] = I(), E = B(() => e.isForceWrapper(), [e]), T = B(() => e.getCellAriaRole(), [e]), k = L(null), F = L(null), P = L(null), G = L(), _ = L(), H = L(), ie = L([]), ne = L(), N = L(), [ue, U] = I(0), se = D((pe) => {
43828
+ N.current = pe, U((Pe) => Pe + 1);
43818
43829
  }, []), te = l != null && (C || S || w) && (d == null || !!d.popup), Z = E || te, X = B(() => e.getCellValueClass(), [e]), oe = D(
43819
- (ge) => {
43820
- if (_.current = ge, ge) {
43821
- const Pe = ge.isCancelBeforeStart && ge.isCancelBeforeStart();
43830
+ (pe) => {
43831
+ if (_.current = pe, pe) {
43832
+ const Pe = pe.isCancelBeforeStart && pe.isCancelBeforeStart();
43822
43833
  setTimeout(() => {
43823
- Pe ? (e.stopEditing(!0), e.focusCell(!0)) : (e.cellEditorAttached(), e.enableEditorTooltipFeature(ge));
43834
+ Pe ? (e.stopEditing(!0), e.focusCell(!0)) : (e.cellEditorAttached(), e.enableEditorTooltipFeature(pe));
43824
43835
  });
43825
43836
  }
43826
43837
  },
@@ -43829,11 +43840,11 @@ var ok = 1e3, nk = class {
43829
43840
  Ce.current || (Ce.current = new Tn(() => k.current)), _C(l, Z, N.current, ue, G, k);
43830
43841
  const V = L();
43831
43842
  qt(() => {
43832
- const ge = V.current, Pe = l;
43833
- if (V.current = l, ge == null || ge.compDetails == null || Pe == null || Pe.compDetails == null)
43843
+ const pe = V.current, Pe = l;
43844
+ if (V.current = l, pe == null || pe.compDetails == null || Pe == null || Pe.compDetails == null)
43834
43845
  return;
43835
43846
  ne.current?.refreshVisibility();
43836
- const j = ge.compDetails, xe = Pe.compDetails;
43847
+ const j = pe.compDetails, xe = Pe.compDetails;
43837
43848
  if (j.componentClass != xe.componentClass || P.current?.refresh == null)
43838
43849
  return;
43839
43850
  P.current.refresh(xe.params) != !0 && g((De) => De + 1);
@@ -43854,8 +43865,8 @@ var ok = 1e3, nk = class {
43854
43865
  };
43855
43866
  }, [d]);
43856
43867
  const A = D(
43857
- (ge) => {
43858
- if (H.current = ge, !ge || o.isDestroyed() || !e.isAlive()) {
43868
+ (pe) => {
43869
+ if (H.current = pe, !pe || o.isDestroyed() || !e.isAlive()) {
43859
43870
  const xe = ie.current;
43860
43871
  ie.current = [];
43861
43872
  for (const ve of xe)
@@ -43864,7 +43875,7 @@ var ok = 1e3, nk = class {
43864
43875
  }
43865
43876
  let Pe;
43866
43877
  const j = (xe) => {
43867
- xe && (ge.insertAdjacentElement("afterbegin", xe.getGui()), ie.current.push(() => {
43878
+ xe && (pe.insertAdjacentElement("afterbegin", xe.getGui()), ie.current.push(() => {
43868
43879
  zs(xe.getGui()), o.destroyBean(xe), ne.current === Pe && (ne.current = void 0);
43869
43880
  }));
43870
43881
  };
@@ -43872,8 +43883,8 @@ var ok = 1e3, nk = class {
43872
43883
  },
43873
43884
  [e, o, S, w, C]
43874
43885
  ), Y = D(() => {
43875
- const ge = !e.isCellSpanning() || F.current, Pe = k.current;
43876
- if (!Pe || !ge || !e || !e.isAlive() || o.isDestroyed()) {
43886
+ const pe = !e.isCellSpanning() || F.current, Pe = k.current;
43887
+ if (!Pe || !pe || !e || !e.isAlive() || o.isDestroyed()) {
43877
43888
  a.current = o.destroyBean(a.current);
43878
43889
  return;
43879
43890
  }
@@ -43940,28 +43951,28 @@ var ok = 1e3, nk = class {
43940
43951
  s,
43941
43952
  a.current
43942
43953
  );
43943
- }, []), $ = D((ge) => {
43944
- k.current = ge, Y();
43945
- }, []), fe = D((ge) => {
43946
- F.current = ge, Y();
43954
+ }, []), $ = D((pe) => {
43955
+ k.current = pe, Y();
43956
+ }, []), fe = D((pe) => {
43957
+ F.current = pe, Y();
43947
43958
  }, []), le = B(() => !!(l?.compDetails?.componentFromFramework && So(l.compDetails.componentClass)), [l]);
43948
43959
  qt(() => {
43949
43960
  if (!k.current)
43950
43961
  return;
43951
- const { current: ge } = Ce;
43952
- ge.toggleCss("ag-cell-value", !Z), ge.toggleCss("ag-cell-inline-editing", !!d && !d.popup), ge.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), ge.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
43962
+ const { current: pe } = Ce;
43963
+ pe.toggleCss("ag-cell-value", !Z), pe.toggleCss("ag-cell-inline-editing", !!d && !d.popup), pe.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), pe.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
43953
43964
  });
43954
43965
  const ye = () => {
43955
- const { compDetails: ge, value: Pe } = l;
43956
- if (!ge)
43966
+ const { compDetails: pe, value: Pe } = l;
43967
+ if (!pe)
43957
43968
  return Pe?.toString?.() ?? Pe;
43958
- if (ge.componentFromFramework) {
43959
- const j = ge.componentClass;
43960
- return /* @__PURE__ */ q.createElement(Pv, { fallback: /* @__PURE__ */ q.createElement(Fk, { cellCtrl: e, parent: k }) }, le ? /* @__PURE__ */ q.createElement(j, { ...ge.params, key: h }) : /* @__PURE__ */ q.createElement(j, { ...ge.params, key: h, ref: P }));
43969
+ if (pe.componentFromFramework) {
43970
+ const j = pe.componentClass;
43971
+ return /* @__PURE__ */ q.createElement(Pv, { fallback: /* @__PURE__ */ q.createElement(Fk, { cellCtrl: e, parent: k }) }, le ? /* @__PURE__ */ q.createElement(j, { ...pe.params, key: h }) : /* @__PURE__ */ q.createElement(j, { ...pe.params, key: h, ref: P }));
43961
43972
  }
43962
43973
  }, Re = () => {
43963
- const ge = () => l == null ? null : Z ? /* @__PURE__ */ q.createElement("span", { role: "presentation", id: `cell-${r}`, className: X, ref: se }, ye()) : ye(), Pe = (j) => Rk(j, oe, k.current, e, R);
43964
- return d != null ? d.popup ? /* @__PURE__ */ q.createElement(q.Fragment, null, ge(), Pe(d)) : Pe(d) : ge();
43974
+ const pe = () => l == null ? null : Z ? /* @__PURE__ */ q.createElement("span", { role: "presentation", id: `cell-${r}`, className: X, ref: se }, ye()) : ye(), Pe = (j) => Rk(j, oe, k.current, e, R);
43975
+ return d != null ? d.popup ? /* @__PURE__ */ q.createElement(q.Fragment, null, pe(), Pe(d)) : Pe(d) : pe();
43965
43976
  }, Ie = () => /* @__PURE__ */ q.createElement("div", { ref: $, style: p, role: T, "col-id": n }, Z ? /* @__PURE__ */ q.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: A }, Re()) : Re());
43966
43977
  return e.isCellSpanning() ? /* @__PURE__ */ q.createElement("div", { ref: fe, className: "ag-spanned-cell-wrapper", role: "presentation" }, Ie()) : Ie();
43967
43978
  }, Dk = ft(Ek), Pk = ({ rowCtrl: e, containerType: t }) => {
@@ -44238,7 +44249,7 @@ var ok = 1e3, nk = class {
44238
44249
  overflowY: F
44239
44250
  }),
44240
44251
  [n, F]
44241
- ), ge = B(
44252
+ ), pe = B(
44242
44253
  () => ({
44243
44254
  height: c,
44244
44255
  top: u,
@@ -44277,7 +44288,7 @@ var ok = 1e3, nk = class {
44277
44288
  })), ve({
44278
44289
  section: U,
44279
44290
  className: le,
44280
- style: ge,
44291
+ style: pe,
44281
44292
  children: ["stickyTopLeft", "stickyTopCenter", "stickyTopRight", "stickyTopFullWidth"]
44282
44293
  }), ve({
44283
44294
  section: se,
@@ -44755,7 +44766,7 @@ const Kk = ee(
44755
44766
  Ae,
44756
44767
  {
44757
44768
  "aria-label": e,
44758
- className: pe("text-secondary hover:enabled:text-accent-primary", t),
44769
+ className: ge("text-secondary hover:enabled:text-accent-primary", t),
44759
44770
  onClick: i,
44760
44771
  iconBefore: /* @__PURE__ */ m(go, { size: s }),
44761
44772
  ...o
@@ -44889,7 +44900,7 @@ const Kk = ee(
44889
44900
  ) : V.type === ed.PlainText ? /* @__PURE__ */ m(
44890
44901
  "div",
44891
44902
  {
44892
- className: pe(
44903
+ className: ge(
44893
44904
  "px-3 py-2 text-secondary dial-caption",
44894
44905
  V.className
44895
44906
  ),
@@ -45264,7 +45275,7 @@ const qC = ({
45264
45275
  const ye = le.data ? i?.(le.data) ?? [] : [];
45265
45276
  let Re = null;
45266
45277
  typeof $ == "function" ? Re = /* @__PURE__ */ m($, { ...le }) : Re = U(le);
45267
- const Ie = le.data ? p(le.data) : null, ge = Ie ? l?.has(Ie) : !1;
45278
+ const Ie = le.data ? p(le.data) : null, pe = Ie ? l?.has(Ie) : !1;
45268
45279
  return /* @__PURE__ */ m(
45269
45280
  At,
45270
45281
  {
@@ -45273,7 +45284,7 @@ const qC = ({
45273
45284
  anchorToMouse: !0,
45274
45285
  matchReferenceWidth: !0,
45275
45286
  className: "w-full h-full",
45276
- disabled: ge,
45287
+ disabled: pe,
45277
45288
  children: /* @__PURE__ */ m("span", { className: "block min-w-0 max-w-full flex-1", children: Re })
45278
45289
  }
45279
45290
  );
@@ -45403,10 +45414,10 @@ const fr = ({
45403
45414
  horizontal: o,
45404
45415
  onClick: n
45405
45416
  }) => {
45406
- const r = pe(
45417
+ const r = ge(
45407
45418
  "rounded h-[38px] items-center flex flex-row border-transparent cursor-pointer dial-small leading-4 hover:text-accent-primary",
45408
45419
  { "border-b-2 px-4": o, "border-l-2 px-3": !o }
45409
- ), a = pe(
45420
+ ), a = ge(
45410
45421
  r,
45411
45422
  {
45412
45423
  "bg-layer-4": o,
@@ -45488,7 +45499,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
45488
45499
  "div",
45489
45500
  {
45490
45501
  role: "tablist",
45491
- className: pe(
45502
+ className: ge(
45492
45503
  "h-11 flex items-center bg-layer-3 px-4",
45493
45504
  n
45494
45505
  ),
@@ -45508,7 +45519,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
45508
45519
  onClick: (x) => {
45509
45520
  s(x), l(!1);
45510
45521
  },
45511
- className: pe(
45522
+ className: ge(
45512
45523
  "w-full rounded-none h-11 items-center px-6",
45513
45524
  r
45514
45525
  )
@@ -45605,14 +45616,14 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
45605
45616
  iconBefore: a,
45606
45617
  labelClassName: l
45607
45618
  }) => {
45608
- const c = pe(
45619
+ const c = ge(
45609
45620
  YC,
45610
45621
  o ? a8 : r8,
45611
45622
  r
45612
- ), d = (!!t || !!s) && !o && !i, u = d ? pe(
45623
+ ), d = (!!t || !!s) && !o && !i, u = d ? ge(
45613
45624
  Tg,
45614
45625
  l8
45615
- ) : pe(
45626
+ ) : ge(
45616
45627
  Tg,
45617
45628
  c8,
45618
45629
  i ? "pointer-events-none opacity-75" : ""
@@ -45626,7 +45637,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
45626
45637
  ) : /* @__PURE__ */ m(
45627
45638
  "span",
45628
45639
  {
45629
- className: pe(
45640
+ className: ge(
45630
45641
  "flex-1 min-w-0 max-w-full truncate",
45631
45642
  l
45632
45643
  ),
@@ -45699,7 +45710,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
45699
45710
  labelClassName: n
45700
45711
  }
45701
45712
  ),
45702
- /* @__PURE__ */ z("li", { className: pe(YC), children: [
45713
+ /* @__PURE__ */ z("li", { className: ge(YC), children: [
45703
45714
  /* @__PURE__ */ m(
45704
45715
  At,
45705
45716
  {
@@ -45747,7 +45758,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
45747
45758
  "nav",
45748
45759
  {
45749
45760
  "aria-label": s,
45750
- className: pe(o8, i),
45761
+ className: ge(o8, i),
45751
45762
  children: /* @__PURE__ */ m("ol", { className: n8, children: l })
45752
45763
  }
45753
45764
  );
@@ -45775,7 +45786,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
45775
45786
  js,
45776
45787
  {
45777
45788
  tooltip: l ? null : e,
45778
- triggerClassName: pe("flex", o),
45789
+ triggerClassName: ge("flex", o),
45779
45790
  children: /* @__PURE__ */ m(
45780
45791
  "textarea",
45781
45792
  {
@@ -46043,7 +46054,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
46043
46054
  elementContainerClassName: n,
46044
46055
  errorText: r,
46045
46056
  ...a
46046
- }) => /* @__PURE__ */ z("div", { className: pe("flex flex-col", o), children: [
46057
+ }) => /* @__PURE__ */ z("div", { className: ge("flex flex-col", o), children: [
46047
46058
  /* @__PURE__ */ m(
46048
46059
  mo,
46049
46060
  {
@@ -46174,7 +46185,7 @@ const v8 = "z-[52] flex items-center justify-center bg-blackout md:p-4", w8 = "d
46174
46185
  /* @__PURE__ */ z(
46175
46186
  "div",
46176
46187
  {
46177
- className: pe(b8, r),
46188
+ className: ge(b8, r),
46178
46189
  children: [
46179
46190
  b(t),
46180
46191
  /* @__PURE__ */ m(
@@ -46611,7 +46622,7 @@ const L8 = {
46611
46622
  return /* @__PURE__ */ z(
46612
46623
  "div",
46613
46624
  {
46614
- className: pe(
46625
+ className: ge(
46615
46626
  "dial-input flex flex-row items-center justify-between",
46616
46627
  n && "dial-input-error",
46617
46628
  i && "dial-input-disable",
@@ -46923,7 +46934,7 @@ const z8 = ({
46923
46934
  selectedValues: se,
46924
46935
  handleRemoveTag: oe
46925
46936
  }
46926
- ), [t, e, se, oe]), ge = D(() => t ? le ? Ie() : /* @__PURE__ */ m("span", { className: "text-secondary truncate", children: c }) : Re ? /* @__PURE__ */ z(Be, { children: [
46937
+ ), [t, e, se, oe]), pe = D(() => t ? le ? Ie() : /* @__PURE__ */ m("span", { className: "text-secondary truncate", children: c }) : Re ? /* @__PURE__ */ z(Be, { children: [
46927
46938
  Re.icon && /* @__PURE__ */ m(Ve, { icon: Re.icon }),
46928
46939
  /* @__PURE__ */ m(
46929
46940
  wt,
@@ -47096,7 +47107,7 @@ const z8 = ({
47096
47107
  "aria-haspopup": "listbox",
47097
47108
  "aria-expanded": P,
47098
47109
  "aria-controls": `list-${s || F}`,
47099
- className: pe(
47110
+ className: ge(
47100
47111
  O8,
47101
47112
  v && "opacity-75 !cursor-not-allowed",
47102
47113
  r === sd.Sm ? "min-h-[25px] px-1.5 py-1" : "min-h-[38px] px-3 py-2",
@@ -47134,7 +47145,7 @@ const z8 = ({
47134
47145
  "aria-disabled": v,
47135
47146
  autoComplete: "off"
47136
47147
  }
47137
- ) }) : /* @__PURE__ */ m("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: ge() }),
47148
+ ) }) : /* @__PURE__ */ m("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: pe() }),
47138
47149
  !E && /* @__PURE__ */ m(
47139
47150
  Ve,
47140
47151
  {
@@ -48168,7 +48179,7 @@ const EL = ({
48168
48179
  /* @__PURE__ */ m(
48169
48180
  ho,
48170
48181
  {
48171
- containerClassName: pe(
48182
+ containerClassName: ge(
48172
48183
  "!h-6 py-[1px] pl-[7px] pr-[7px]",
48173
48184
  h
48174
48185
  ),
@@ -48374,7 +48385,7 @@ const pa = ({
48374
48385
  "div",
48375
48386
  {
48376
48387
  style: { paddingLeft: `${T * FL}px` },
48377
- className: pe(
48388
+ className: ge(
48378
48389
  "py-1 gap-[2px] dial-small flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",
48379
48390
  oe
48380
48391
  ),
@@ -48555,7 +48566,7 @@ const pa = ({
48555
48566
  return /* @__PURE__ */ z(
48556
48567
  "div",
48557
48568
  {
48558
- className: pe(
48569
+ className: ge(
48559
48570
  ML,
48560
48571
  {
48561
48572
  "gap-3": w
@@ -48568,7 +48579,7 @@ const pa = ({
48568
48579
  c && /* @__PURE__ */ m(
48569
48580
  "div",
48570
48581
  {
48571
- className: pe(AL, {
48582
+ className: ge(AL, {
48572
48583
  "w-[38px]": w && !S,
48573
48584
  "w-full": w && S
48574
48585
  }),
@@ -48586,7 +48597,7 @@ const pa = ({
48586
48597
  onBlur: x,
48587
48598
  invalid: p,
48588
48599
  className: C,
48589
- containerClassName: pe(v, {
48600
+ containerClassName: ge(v, {
48590
48601
  "p-[10px]": w
48591
48602
  })
48592
48603
  }
@@ -49275,8 +49286,8 @@ const GL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49275
49286
  u(void 0), p.current = $;
49276
49287
  const fe = _(A);
49277
49288
  if (fe.length > 0) {
49278
- const Ie = s ? (s / 1048576).toFixed(2) : 0, ge = o.oversizedFiles || `Files exceed maximum size (${Ie}MB): ${fe.join(", ")}`;
49279
- return u(ge), !1;
49289
+ const Ie = s ? (s / 1048576).toFixed(2) : 0, pe = o.oversizedFiles || `Files exceed maximum size (${Ie}MB): ${fe.join(", ")}`;
49290
+ return u(pe), !1;
49280
49291
  }
49281
49292
  if (t)
49282
49293
  try {
@@ -49650,7 +49661,7 @@ const QL = ({
49650
49661
  const i = t === 0;
49651
49662
  return {
49652
49663
  additionalButtons: B(() => {
49653
- const n = pe([
49664
+ const n = ge([
49654
49665
  "hover:text-accent-primary p-1",
49655
49666
  i && "text-controls-disable hover:text-controls-disable disabled:hover:cursor-default"
49656
49667
  ]);
@@ -49707,55 +49718,55 @@ function o7({
49707
49718
  onNavigationPanelSearchChange: r,
49708
49719
  allItems: a = []
49709
49720
  }) {
49710
- const [l, c] = I(""), d = L(!1), u = L(!1), h = L([]);
49721
+ const [l, c] = I(""), d = L(!1), u = L(!1), h = L([]), g = L(s);
49711
49722
  Se(() => {
49712
49723
  n != null && c(String(n));
49713
49724
  }, [n]);
49714
- const g = String(
49725
+ const p = String(
49715
49726
  n ?? l ?? ""
49716
- ).trim(), p = u.current && (o || i.length > 0 || g !== ""), f = D(
49717
- (b) => {
49718
- const S = b.trim();
49719
- if (!S) {
49727
+ ).trim(), f = u.current && (o || i.length > 0 || p !== ""), C = D(
49728
+ (S) => {
49729
+ const y = S.trim();
49730
+ if (!y) {
49720
49731
  u.current = !1, d.current = !1;
49721
49732
  return;
49722
49733
  }
49723
- u.current = !0, e && s && !d.current && (d.current = !0, e(s, S));
49734
+ u.current = !0, e && s && !d.current && (d.current = !0, e(s, y));
49724
49735
  },
49725
49736
  [e, s]
49726
- ), C = D(() => {
49727
- d.current = !1, u.current = !1, h.current = [], t?.();
49728
- }, [t]), v = D(
49729
- (b) => {
49730
- const S = String(b ?? "");
49731
- c(S), r?.(S), S.trim() ? f(S) : C();
49737
+ ), v = D(() => {
49738
+ d.current = !1, u.current = !1, h.current = [], c(""), r?.(""), t?.();
49739
+ }, [t, r]), w = D(
49740
+ (S) => {
49741
+ const y = String(S ?? "");
49742
+ c(y), r?.(y), y.trim() ? C(y) : v();
49732
49743
  },
49733
- [r, f, C]
49744
+ [r, C, v]
49734
49745
  );
49735
49746
  Se(() => {
49736
- u.current && C();
49737
- }, [s, C]), Se(() => {
49747
+ g.current !== s && (g.current = s, (u.current || p) && v());
49748
+ }, [s, v, p]), Se(() => {
49738
49749
  i.length > 0 && h.current.length === 0 && (h.current = i);
49739
49750
  }, [i]);
49740
- const w = B(() => {
49751
+ const b = B(() => {
49741
49752
  if (e) {
49742
- const S = h.current.length > 0 ? h.current : i;
49743
- return !g || S.length === 0 ? S : zg(S, g);
49753
+ const y = h.current.length > 0 ? h.current : i;
49754
+ return !p || y.length === 0 ? y : zg(y, p);
49744
49755
  }
49745
- if (!g || !a.length)
49756
+ if (!p || !a.length)
49746
49757
  return [];
49747
- const b = i7(a);
49748
- return zg(b, g);
49749
- }, [e, i, g, a]);
49758
+ const S = i7(a);
49759
+ return zg(S, p);
49760
+ }, [e, i, p, a]);
49750
49761
  return {
49751
- isSearchMode: p,
49762
+ isSearchMode: f,
49752
49763
  searchValue: l,
49753
- effectiveSearchValue: g,
49764
+ effectiveSearchValue: p,
49754
49765
  setSearchValue: c,
49755
- handleSearchChange: v,
49756
- handleSearchActivate: f,
49757
- handleSearchClear: C,
49758
- searchResultsRows: w
49766
+ handleSearchChange: w,
49767
+ handleSearchActivate: C,
49768
+ handleSearchClear: v,
49769
+ searchResultsRows: b
49759
49770
  };
49760
49771
  }
49761
49772
  function n7({
@@ -49844,7 +49855,7 @@ const r7 = ({
49844
49855
  const ts = Si(s, Pt);
49845
49856
  ts && Ne.set(Pt, ts);
49846
49857
  }), Ne;
49847
- }, [$, s]), { currentPath: Re, setCurrentPath: Ie, handlePathChange: ge } = WL({
49858
+ }, [$, s]), { currentPath: Re, setCurrentPath: Ie, handlePathChange: pe } = WL({
49848
49859
  path: o,
49849
49860
  defaultPath: n,
49850
49861
  onPathChange: S,
@@ -50069,19 +50080,19 @@ const r7 = ({
50069
50080
  Ms
50070
50081
  ]), Is = D(
50071
50082
  (Ne) => {
50072
- ge(Ne.path);
50083
+ pe(Ne.path);
50073
50084
  },
50074
- [ge]
50085
+ [pe]
50075
50086
  ), As = D(
50076
50087
  (Ne) => {
50077
- ge(Ne);
50088
+ pe(Ne);
50078
50089
  },
50079
- [ge]
50090
+ [pe]
50080
50091
  ), Ho = D(
50081
50092
  (Ne) => {
50082
- Ne.nodeType === Le.FOLDER ? ge(Ne.path) : y?.(Ne);
50093
+ Ne.nodeType === Le.FOLDER ? pe(Ne.path) : y?.(Ne);
50083
50094
  },
50084
- [ge, y]
50095
+ [pe, y]
50085
50096
  ), { expandedPaths: Zn, setExpandedPaths: nl, collapseAll: Qs } = dv({
50086
50097
  expandedPaths: h?.expandedPaths,
50087
50098
  onExpandedPathsChange: h?.onExpandedPathsChange
@@ -50160,7 +50171,7 @@ const r7 = ({
50160
50171
  confirmDelete: Do,
50161
50172
  deleteConfirmationOpen: Vn,
50162
50173
  itemsToDelete: zn,
50163
- handlePathChange: ge,
50174
+ handlePathChange: pe,
50164
50175
  handleTreeItemClick: Is,
50165
50176
  handleBreadcrumbItemClick: As,
50166
50177
  handleSearchChange: Ga,
@@ -51108,7 +51119,7 @@ const C7 = ({
51108
51119
  onRenameCancel: ye,
51109
51120
  onRenameValidate: Re,
51110
51121
  getDisplayName: Ie,
51111
- isDragging: ge,
51122
+ isDragging: pe,
51112
51123
  isDraggingOverWindow: Pe,
51113
51124
  handleDragEnter: j,
51114
51125
  handleDragLeave: xe,
@@ -51205,7 +51216,7 @@ const C7 = ({
51205
51216
  validate: As,
51206
51217
  onSave: Is,
51207
51218
  onCancel: Ho,
51208
- inputContainerClassName: pe([
51219
+ inputContainerClassName: ge([
51209
51220
  "!h-9",
51210
51221
  it && Te === Le.ITEM && "!h-10"
51211
51222
  ])
@@ -51234,7 +51245,7 @@ const C7 = ({
51234
51245
  validate: (ts) => Qn(ts, Go),
51235
51246
  onSave: cl,
51236
51247
  onCancel: dl,
51237
- inputContainerClassName: pe([
51248
+ inputContainerClassName: ge([
51238
51249
  "!h-9",
51239
51250
  it && Te === Le.ITEM && "!h-10"
51240
51251
  ])
@@ -51593,7 +51604,7 @@ const C7 = ({
51593
51604
  "section",
51594
51605
  {
51595
51606
  ref: Xa,
51596
- className: pe(
51607
+ className: ge(
51597
51608
  aL,
51598
51609
  {
51599
51610
  "gap-3 pt-4": l && y.size > 0,
@@ -51609,7 +51620,7 @@ const C7 = ({
51609
51620
  /* @__PURE__ */ z(
51610
51621
  "div",
51611
51622
  {
51612
- className: pe(cL, {
51623
+ className: ge(cL, {
51613
51624
  "gap-3": it
51614
51625
  }),
51615
51626
  children: [
@@ -51632,7 +51643,7 @@ const C7 = ({
51632
51643
  {
51633
51644
  role: "region",
51634
51645
  "aria-label": "File Manager Grid View",
51635
- className: pe(uL),
51646
+ className: ge(uL),
51636
51647
  onDragEnter: j,
51637
51648
  onDragLeave: xe,
51638
51649
  onDragOver: ve,
@@ -51648,8 +51659,8 @@ const C7 = ({
51648
51659
  withoutHeaderBorders: it,
51649
51660
  selectionOnHover: !it,
51650
51661
  className: ee(
51651
- ge ? "border border-dashed border-accent-primary" : "",
51652
- Pe && !ge ? "border border-dashed border-primary" : ""
51662
+ pe ? "border border-dashed border-accent-primary" : "",
51663
+ Pe && !pe ? "border border-dashed border-primary" : ""
51653
51664
  ),
51654
51665
  ...Io,
51655
51666
  additionalGridOptions: {
@@ -51677,7 +51688,7 @@ const C7 = ({
51677
51688
  },
51678
51689
  selectedRows: el,
51679
51690
  onSelectionChangeWithMap: sl,
51680
- wrapperBorder: !ge && !Pe,
51691
+ wrapperBorder: !pe && !Pe,
51681
51692
  disabledRowIds: tl
51682
51693
  }
51683
51694
  )
@@ -51865,7 +51876,7 @@ export {
51865
51876
  Wt as StepStatus,
51866
51877
  td as TabOrientation,
51867
51878
  Fd as TagVariant,
51868
- pe as mergeClasses,
51879
+ ge as mergeClasses,
51869
51880
  j7 as useDialFileManagerTabs,
51870
51881
  PL as useEditableItem,
51871
51882
  a7 as useFileManagerContext