@epam/ai-dial-ui-kit 0.6.0-rc.4 → 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.
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -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
|
|
9
|
-
const
|
|
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(),
|
|
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
|
-
},
|
|
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 ?
|
|
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 = /^\[(.+)\]$/,
|
|
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
|
-
},
|
|
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 (
|
|
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
|
-
},
|
|
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 = ":",
|
|
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 +
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
306
|
-
cache:
|
|
307
|
-
parseClassName:
|
|
308
|
-
sortModifiers:
|
|
309
|
-
...
|
|
310
|
-
}),
|
|
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(
|
|
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
|
|
215
|
+
function kw() {
|
|
356
216
|
let e = 0, t, s, i = "";
|
|
357
217
|
for (; e < arguments.length; )
|
|
358
|
-
(t = arguments[e++]) && (s =
|
|
218
|
+
(t = arguments[e++]) && (s = ip(t)) && (i && (i += " "), i += s);
|
|
359
219
|
return i;
|
|
360
220
|
}
|
|
361
|
-
const
|
|
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 =
|
|
226
|
+
e[i] && (t = ip(e[i])) && (s && (s += " "), s += t);
|
|
367
227
|
return s;
|
|
368
228
|
};
|
|
369
|
-
function
|
|
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 =
|
|
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 =
|
|
239
|
+
const d = Aw(l, s);
|
|
380
240
|
return o(l, d), d;
|
|
381
241
|
}
|
|
382
242
|
return function() {
|
|
383
|
-
return n(
|
|
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
|
-
},
|
|
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
|
-
|
|
394
|
-
),
|
|
395
|
-
const i =
|
|
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 =
|
|
258
|
+
const i = np.exec(e);
|
|
399
259
|
return i ? i[1] ? t(i[1]) : s : !1;
|
|
400
|
-
},
|
|
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",
|
|
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: [
|
|
310
|
+
color: [zw],
|
|
451
311
|
container: [ps],
|
|
452
312
|
"drop-shadow": [ps],
|
|
453
313
|
ease: ["in", "out", "in-out"],
|
|
454
|
-
font: [
|
|
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: [
|
|
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
|
-
},
|
|
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
|
-
},
|
|
2871
|
-
function
|
|
2872
|
-
return
|
|
2730
|
+
}, e1 = /* @__PURE__ */ Lw(Jw);
|
|
2731
|
+
function ge(...e) {
|
|
2732
|
+
return e1(ee(e));
|
|
2873
2733
|
}
|
|
2874
|
-
const
|
|
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:
|
|
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:
|
|
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(
|
|
3069
|
+
return /* @__PURE__ */ z(pp, { ...n, children: [
|
|
3059
3070
|
/* @__PURE__ */ m(
|
|
3060
|
-
|
|
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:
|
|
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
|
-
|
|
3094
|
+
fp,
|
|
3084
3095
|
{
|
|
3085
|
-
className:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 =
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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((
|
|
43817
|
-
N.current =
|
|
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
|
-
(
|
|
43820
|
-
if (_.current =
|
|
43821
|
-
const Pe =
|
|
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(
|
|
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
|
|
43833
|
-
if (V.current = l,
|
|
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 =
|
|
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
|
-
(
|
|
43858
|
-
if (H.current =
|
|
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 && (
|
|
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
|
|
43876
|
-
if (!Pe || !
|
|
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((
|
|
43944
|
-
k.current =
|
|
43945
|
-
}, []), fe = D((
|
|
43946
|
-
F.current =
|
|
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:
|
|
43952
|
-
|
|
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:
|
|
43956
|
-
if (!
|
|
43966
|
+
const { compDetails: pe, value: Pe } = l;
|
|
43967
|
+
if (!pe)
|
|
43957
43968
|
return Pe?.toString?.() ?? Pe;
|
|
43958
|
-
if (
|
|
43959
|
-
const j =
|
|
43960
|
-
return /* @__PURE__ */ q.createElement(Pv, { fallback: /* @__PURE__ */ q.createElement(Fk, { cellCtrl: e, parent: k }) }, le ? /* @__PURE__ */ q.createElement(j, { ...
|
|
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
|
|
43964
|
-
return d != null ? d.popup ? /* @__PURE__ */ q.createElement(q.Fragment, null,
|
|
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
|
-
),
|
|
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:
|
|
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:
|
|
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:
|
|
44903
|
+
className: ge(
|
|
44893
44904
|
"px-3 py-2 text-secondary dial-caption",
|
|
44894
44905
|
V.className
|
|
44895
44906
|
),
|
|
@@ -45025,9 +45036,6 @@ const Kk = ee(
|
|
|
45025
45036
|
fontSize: 14,
|
|
45026
45037
|
fontFamily: {
|
|
45027
45038
|
googleFont: "var(--theme-font, var(--font-inter))"
|
|
45028
|
-
},
|
|
45029
|
-
cellStyle: {
|
|
45030
|
-
textAlign: "center"
|
|
45031
45039
|
}
|
|
45032
45040
|
}, sc = 40, e8 = (e, t, s, i, o) => {
|
|
45033
45041
|
const n = typeof e == "string" ? e.toLowerCase() : e, r = typeof t == "string" ? t.toLowerCase() : t;
|
|
@@ -45267,7 +45275,7 @@ const qC = ({
|
|
|
45267
45275
|
const ye = le.data ? i?.(le.data) ?? [] : [];
|
|
45268
45276
|
let Re = null;
|
|
45269
45277
|
typeof $ == "function" ? Re = /* @__PURE__ */ m($, { ...le }) : Re = U(le);
|
|
45270
|
-
const Ie = le.data ? p(le.data) : null,
|
|
45278
|
+
const Ie = le.data ? p(le.data) : null, pe = Ie ? l?.has(Ie) : !1;
|
|
45271
45279
|
return /* @__PURE__ */ m(
|
|
45272
45280
|
At,
|
|
45273
45281
|
{
|
|
@@ -45276,7 +45284,7 @@ const qC = ({
|
|
|
45276
45284
|
anchorToMouse: !0,
|
|
45277
45285
|
matchReferenceWidth: !0,
|
|
45278
45286
|
className: "w-full h-full",
|
|
45279
|
-
disabled:
|
|
45287
|
+
disabled: pe,
|
|
45280
45288
|
children: /* @__PURE__ */ m("span", { className: "block min-w-0 max-w-full flex-1", children: Re })
|
|
45281
45289
|
}
|
|
45282
45290
|
);
|
|
@@ -45301,8 +45309,6 @@ const qC = ({
|
|
|
45301
45309
|
resizable: !1,
|
|
45302
45310
|
filter: !1,
|
|
45303
45311
|
floatingFilter: !1,
|
|
45304
|
-
suppressMenu: !0,
|
|
45305
|
-
borderless: !0,
|
|
45306
45312
|
cellRenderer: se,
|
|
45307
45313
|
headerComponent: ue
|
|
45308
45314
|
}),
|
|
@@ -45408,10 +45414,10 @@ const fr = ({
|
|
|
45408
45414
|
horizontal: o,
|
|
45409
45415
|
onClick: n
|
|
45410
45416
|
}) => {
|
|
45411
|
-
const r =
|
|
45417
|
+
const r = ge(
|
|
45412
45418
|
"rounded h-[38px] items-center flex flex-row border-transparent cursor-pointer dial-small leading-4 hover:text-accent-primary",
|
|
45413
45419
|
{ "border-b-2 px-4": o, "border-l-2 px-3": !o }
|
|
45414
|
-
), a =
|
|
45420
|
+
), a = ge(
|
|
45415
45421
|
r,
|
|
45416
45422
|
{
|
|
45417
45423
|
"bg-layer-4": o,
|
|
@@ -45493,7 +45499,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45493
45499
|
"div",
|
|
45494
45500
|
{
|
|
45495
45501
|
role: "tablist",
|
|
45496
|
-
className:
|
|
45502
|
+
className: ge(
|
|
45497
45503
|
"h-11 flex items-center bg-layer-3 px-4",
|
|
45498
45504
|
n
|
|
45499
45505
|
),
|
|
@@ -45513,7 +45519,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45513
45519
|
onClick: (x) => {
|
|
45514
45520
|
s(x), l(!1);
|
|
45515
45521
|
},
|
|
45516
|
-
className:
|
|
45522
|
+
className: ge(
|
|
45517
45523
|
"w-full rounded-none h-11 items-center px-6",
|
|
45518
45524
|
r
|
|
45519
45525
|
)
|
|
@@ -45610,14 +45616,14 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45610
45616
|
iconBefore: a,
|
|
45611
45617
|
labelClassName: l
|
|
45612
45618
|
}) => {
|
|
45613
|
-
const c =
|
|
45619
|
+
const c = ge(
|
|
45614
45620
|
YC,
|
|
45615
45621
|
o ? a8 : r8,
|
|
45616
45622
|
r
|
|
45617
|
-
), d = (!!t || !!s) && !o && !i, u = d ?
|
|
45623
|
+
), d = (!!t || !!s) && !o && !i, u = d ? ge(
|
|
45618
45624
|
Tg,
|
|
45619
45625
|
l8
|
|
45620
|
-
) :
|
|
45626
|
+
) : ge(
|
|
45621
45627
|
Tg,
|
|
45622
45628
|
c8,
|
|
45623
45629
|
i ? "pointer-events-none opacity-75" : ""
|
|
@@ -45631,7 +45637,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45631
45637
|
) : /* @__PURE__ */ m(
|
|
45632
45638
|
"span",
|
|
45633
45639
|
{
|
|
45634
|
-
className:
|
|
45640
|
+
className: ge(
|
|
45635
45641
|
"flex-1 min-w-0 max-w-full truncate",
|
|
45636
45642
|
l
|
|
45637
45643
|
),
|
|
@@ -45704,7 +45710,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45704
45710
|
labelClassName: n
|
|
45705
45711
|
}
|
|
45706
45712
|
),
|
|
45707
|
-
/* @__PURE__ */ z("li", { className:
|
|
45713
|
+
/* @__PURE__ */ z("li", { className: ge(YC), children: [
|
|
45708
45714
|
/* @__PURE__ */ m(
|
|
45709
45715
|
At,
|
|
45710
45716
|
{
|
|
@@ -45752,7 +45758,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45752
45758
|
"nav",
|
|
45753
45759
|
{
|
|
45754
45760
|
"aria-label": s,
|
|
45755
|
-
className:
|
|
45761
|
+
className: ge(o8, i),
|
|
45756
45762
|
children: /* @__PURE__ */ m("ol", { className: n8, children: l })
|
|
45757
45763
|
}
|
|
45758
45764
|
);
|
|
@@ -45780,7 +45786,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45780
45786
|
js,
|
|
45781
45787
|
{
|
|
45782
45788
|
tooltip: l ? null : e,
|
|
45783
|
-
triggerClassName:
|
|
45789
|
+
triggerClassName: ge("flex", o),
|
|
45784
45790
|
children: /* @__PURE__ */ m(
|
|
45785
45791
|
"textarea",
|
|
45786
45792
|
{
|
|
@@ -46048,7 +46054,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
46048
46054
|
elementContainerClassName: n,
|
|
46049
46055
|
errorText: r,
|
|
46050
46056
|
...a
|
|
46051
|
-
}) => /* @__PURE__ */ z("div", { className:
|
|
46057
|
+
}) => /* @__PURE__ */ z("div", { className: ge("flex flex-col", o), children: [
|
|
46052
46058
|
/* @__PURE__ */ m(
|
|
46053
46059
|
mo,
|
|
46054
46060
|
{
|
|
@@ -46179,7 +46185,7 @@ const v8 = "z-[52] flex items-center justify-center bg-blackout md:p-4", w8 = "d
|
|
|
46179
46185
|
/* @__PURE__ */ z(
|
|
46180
46186
|
"div",
|
|
46181
46187
|
{
|
|
46182
|
-
className:
|
|
46188
|
+
className: ge(b8, r),
|
|
46183
46189
|
children: [
|
|
46184
46190
|
b(t),
|
|
46185
46191
|
/* @__PURE__ */ m(
|
|
@@ -46616,7 +46622,7 @@ const L8 = {
|
|
|
46616
46622
|
return /* @__PURE__ */ z(
|
|
46617
46623
|
"div",
|
|
46618
46624
|
{
|
|
46619
|
-
className:
|
|
46625
|
+
className: ge(
|
|
46620
46626
|
"dial-input flex flex-row items-center justify-between",
|
|
46621
46627
|
n && "dial-input-error",
|
|
46622
46628
|
i && "dial-input-disable",
|
|
@@ -46928,7 +46934,7 @@ const z8 = ({
|
|
|
46928
46934
|
selectedValues: se,
|
|
46929
46935
|
handleRemoveTag: oe
|
|
46930
46936
|
}
|
|
46931
|
-
), [t, e, se, oe]),
|
|
46937
|
+
), [t, e, se, oe]), pe = D(() => t ? le ? Ie() : /* @__PURE__ */ m("span", { className: "text-secondary truncate", children: c }) : Re ? /* @__PURE__ */ z(Be, { children: [
|
|
46932
46938
|
Re.icon && /* @__PURE__ */ m(Ve, { icon: Re.icon }),
|
|
46933
46939
|
/* @__PURE__ */ m(
|
|
46934
46940
|
wt,
|
|
@@ -47101,7 +47107,7 @@ const z8 = ({
|
|
|
47101
47107
|
"aria-haspopup": "listbox",
|
|
47102
47108
|
"aria-expanded": P,
|
|
47103
47109
|
"aria-controls": `list-${s || F}`,
|
|
47104
|
-
className:
|
|
47110
|
+
className: ge(
|
|
47105
47111
|
O8,
|
|
47106
47112
|
v && "opacity-75 !cursor-not-allowed",
|
|
47107
47113
|
r === sd.Sm ? "min-h-[25px] px-1.5 py-1" : "min-h-[38px] px-3 py-2",
|
|
@@ -47139,7 +47145,7 @@ const z8 = ({
|
|
|
47139
47145
|
"aria-disabled": v,
|
|
47140
47146
|
autoComplete: "off"
|
|
47141
47147
|
}
|
|
47142
|
-
) }) : /* @__PURE__ */ m("div", { className: "flex min-w-0 items-center gap-2 text-primary", children:
|
|
47148
|
+
) }) : /* @__PURE__ */ m("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: pe() }),
|
|
47143
47149
|
!E && /* @__PURE__ */ m(
|
|
47144
47150
|
Ve,
|
|
47145
47151
|
{
|
|
@@ -48173,7 +48179,7 @@ const EL = ({
|
|
|
48173
48179
|
/* @__PURE__ */ m(
|
|
48174
48180
|
ho,
|
|
48175
48181
|
{
|
|
48176
|
-
containerClassName:
|
|
48182
|
+
containerClassName: ge(
|
|
48177
48183
|
"!h-6 py-[1px] pl-[7px] pr-[7px]",
|
|
48178
48184
|
h
|
|
48179
48185
|
),
|
|
@@ -48379,7 +48385,7 @@ const pa = ({
|
|
|
48379
48385
|
"div",
|
|
48380
48386
|
{
|
|
48381
48387
|
style: { paddingLeft: `${T * FL}px` },
|
|
48382
|
-
className:
|
|
48388
|
+
className: ge(
|
|
48383
48389
|
"py-1 gap-[2px] dial-small flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",
|
|
48384
48390
|
oe
|
|
48385
48391
|
),
|
|
@@ -48560,7 +48566,7 @@ const pa = ({
|
|
|
48560
48566
|
return /* @__PURE__ */ z(
|
|
48561
48567
|
"div",
|
|
48562
48568
|
{
|
|
48563
|
-
className:
|
|
48569
|
+
className: ge(
|
|
48564
48570
|
ML,
|
|
48565
48571
|
{
|
|
48566
48572
|
"gap-3": w
|
|
@@ -48573,7 +48579,7 @@ const pa = ({
|
|
|
48573
48579
|
c && /* @__PURE__ */ m(
|
|
48574
48580
|
"div",
|
|
48575
48581
|
{
|
|
48576
|
-
className:
|
|
48582
|
+
className: ge(AL, {
|
|
48577
48583
|
"w-[38px]": w && !S,
|
|
48578
48584
|
"w-full": w && S
|
|
48579
48585
|
}),
|
|
@@ -48591,7 +48597,7 @@ const pa = ({
|
|
|
48591
48597
|
onBlur: x,
|
|
48592
48598
|
invalid: p,
|
|
48593
48599
|
className: C,
|
|
48594
|
-
containerClassName:
|
|
48600
|
+
containerClassName: ge(v, {
|
|
48595
48601
|
"p-[10px]": w
|
|
48596
48602
|
})
|
|
48597
48603
|
}
|
|
@@ -49280,8 +49286,8 @@ const GL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49280
49286
|
u(void 0), p.current = $;
|
|
49281
49287
|
const fe = _(A);
|
|
49282
49288
|
if (fe.length > 0) {
|
|
49283
|
-
const Ie = s ? (s / 1048576).toFixed(2) : 0,
|
|
49284
|
-
return u(
|
|
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;
|
|
49285
49291
|
}
|
|
49286
49292
|
if (t)
|
|
49287
49293
|
try {
|
|
@@ -49655,7 +49661,7 @@ const QL = ({
|
|
|
49655
49661
|
const i = t === 0;
|
|
49656
49662
|
return {
|
|
49657
49663
|
additionalButtons: B(() => {
|
|
49658
|
-
const n =
|
|
49664
|
+
const n = ge([
|
|
49659
49665
|
"hover:text-accent-primary p-1",
|
|
49660
49666
|
i && "text-controls-disable hover:text-controls-disable disabled:hover:cursor-default"
|
|
49661
49667
|
]);
|
|
@@ -49712,55 +49718,55 @@ function o7({
|
|
|
49712
49718
|
onNavigationPanelSearchChange: r,
|
|
49713
49719
|
allItems: a = []
|
|
49714
49720
|
}) {
|
|
49715
|
-
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);
|
|
49716
49722
|
Se(() => {
|
|
49717
49723
|
n != null && c(String(n));
|
|
49718
49724
|
}, [n]);
|
|
49719
|
-
const
|
|
49725
|
+
const p = String(
|
|
49720
49726
|
n ?? l ?? ""
|
|
49721
|
-
).trim(),
|
|
49722
|
-
(
|
|
49723
|
-
const
|
|
49724
|
-
if (!
|
|
49727
|
+
).trim(), f = u.current && (o || i.length > 0 || p !== ""), C = D(
|
|
49728
|
+
(S) => {
|
|
49729
|
+
const y = S.trim();
|
|
49730
|
+
if (!y) {
|
|
49725
49731
|
u.current = !1, d.current = !1;
|
|
49726
49732
|
return;
|
|
49727
49733
|
}
|
|
49728
|
-
u.current = !0, e && s && !d.current && (d.current = !0, e(s,
|
|
49734
|
+
u.current = !0, e && s && !d.current && (d.current = !0, e(s, y));
|
|
49729
49735
|
},
|
|
49730
49736
|
[e, s]
|
|
49731
|
-
),
|
|
49732
|
-
d.current = !1, u.current = !1, h.current = [], t?.();
|
|
49733
|
-
}, [t]),
|
|
49734
|
-
(
|
|
49735
|
-
const
|
|
49736
|
-
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();
|
|
49737
49743
|
},
|
|
49738
|
-
[r,
|
|
49744
|
+
[r, C, v]
|
|
49739
49745
|
);
|
|
49740
49746
|
Se(() => {
|
|
49741
|
-
u.current &&
|
|
49742
|
-
}, [s,
|
|
49747
|
+
g.current !== s && (g.current = s, (u.current || p) && v());
|
|
49748
|
+
}, [s, v, p]), Se(() => {
|
|
49743
49749
|
i.length > 0 && h.current.length === 0 && (h.current = i);
|
|
49744
49750
|
}, [i]);
|
|
49745
|
-
const
|
|
49751
|
+
const b = B(() => {
|
|
49746
49752
|
if (e) {
|
|
49747
|
-
const
|
|
49748
|
-
return !
|
|
49753
|
+
const y = h.current.length > 0 ? h.current : i;
|
|
49754
|
+
return !p || y.length === 0 ? y : zg(y, p);
|
|
49749
49755
|
}
|
|
49750
|
-
if (!
|
|
49756
|
+
if (!p || !a.length)
|
|
49751
49757
|
return [];
|
|
49752
|
-
const
|
|
49753
|
-
return zg(
|
|
49754
|
-
}, [e, i,
|
|
49758
|
+
const S = i7(a);
|
|
49759
|
+
return zg(S, p);
|
|
49760
|
+
}, [e, i, p, a]);
|
|
49755
49761
|
return {
|
|
49756
|
-
isSearchMode:
|
|
49762
|
+
isSearchMode: f,
|
|
49757
49763
|
searchValue: l,
|
|
49758
|
-
effectiveSearchValue:
|
|
49764
|
+
effectiveSearchValue: p,
|
|
49759
49765
|
setSearchValue: c,
|
|
49760
|
-
handleSearchChange:
|
|
49761
|
-
handleSearchActivate:
|
|
49762
|
-
handleSearchClear:
|
|
49763
|
-
searchResultsRows:
|
|
49766
|
+
handleSearchChange: w,
|
|
49767
|
+
handleSearchActivate: C,
|
|
49768
|
+
handleSearchClear: v,
|
|
49769
|
+
searchResultsRows: b
|
|
49764
49770
|
};
|
|
49765
49771
|
}
|
|
49766
49772
|
function n7({
|
|
@@ -49849,7 +49855,7 @@ const r7 = ({
|
|
|
49849
49855
|
const ts = Si(s, Pt);
|
|
49850
49856
|
ts && Ne.set(Pt, ts);
|
|
49851
49857
|
}), Ne;
|
|
49852
|
-
}, [$, s]), { currentPath: Re, setCurrentPath: Ie, handlePathChange:
|
|
49858
|
+
}, [$, s]), { currentPath: Re, setCurrentPath: Ie, handlePathChange: pe } = WL({
|
|
49853
49859
|
path: o,
|
|
49854
49860
|
defaultPath: n,
|
|
49855
49861
|
onPathChange: S,
|
|
@@ -50074,19 +50080,19 @@ const r7 = ({
|
|
|
50074
50080
|
Ms
|
|
50075
50081
|
]), Is = D(
|
|
50076
50082
|
(Ne) => {
|
|
50077
|
-
|
|
50083
|
+
pe(Ne.path);
|
|
50078
50084
|
},
|
|
50079
|
-
[
|
|
50085
|
+
[pe]
|
|
50080
50086
|
), As = D(
|
|
50081
50087
|
(Ne) => {
|
|
50082
|
-
|
|
50088
|
+
pe(Ne);
|
|
50083
50089
|
},
|
|
50084
|
-
[
|
|
50090
|
+
[pe]
|
|
50085
50091
|
), Ho = D(
|
|
50086
50092
|
(Ne) => {
|
|
50087
|
-
Ne.nodeType === Le.FOLDER ?
|
|
50093
|
+
Ne.nodeType === Le.FOLDER ? pe(Ne.path) : y?.(Ne);
|
|
50088
50094
|
},
|
|
50089
|
-
[
|
|
50095
|
+
[pe, y]
|
|
50090
50096
|
), { expandedPaths: Zn, setExpandedPaths: nl, collapseAll: Qs } = dv({
|
|
50091
50097
|
expandedPaths: h?.expandedPaths,
|
|
50092
50098
|
onExpandedPathsChange: h?.onExpandedPathsChange
|
|
@@ -50165,7 +50171,7 @@ const r7 = ({
|
|
|
50165
50171
|
confirmDelete: Do,
|
|
50166
50172
|
deleteConfirmationOpen: Vn,
|
|
50167
50173
|
itemsToDelete: zn,
|
|
50168
|
-
handlePathChange:
|
|
50174
|
+
handlePathChange: pe,
|
|
50169
50175
|
handleTreeItemClick: Is,
|
|
50170
50176
|
handleBreadcrumbItemClick: As,
|
|
50171
50177
|
handleSearchChange: Ga,
|
|
@@ -50930,8 +50936,6 @@ const C7 = ({
|
|
|
50930
50936
|
resizable: !1,
|
|
50931
50937
|
filter: !1,
|
|
50932
50938
|
floatingFilter: !1,
|
|
50933
|
-
suppressMenu: !0,
|
|
50934
|
-
borderless: !0,
|
|
50935
50939
|
cellRenderer: i
|
|
50936
50940
|
}),
|
|
50937
50941
|
[i]
|
|
@@ -51115,7 +51119,7 @@ const C7 = ({
|
|
|
51115
51119
|
onRenameCancel: ye,
|
|
51116
51120
|
onRenameValidate: Re,
|
|
51117
51121
|
getDisplayName: Ie,
|
|
51118
|
-
isDragging:
|
|
51122
|
+
isDragging: pe,
|
|
51119
51123
|
isDraggingOverWindow: Pe,
|
|
51120
51124
|
handleDragEnter: j,
|
|
51121
51125
|
handleDragLeave: xe,
|
|
@@ -51212,7 +51216,7 @@ const C7 = ({
|
|
|
51212
51216
|
validate: As,
|
|
51213
51217
|
onSave: Is,
|
|
51214
51218
|
onCancel: Ho,
|
|
51215
|
-
inputContainerClassName:
|
|
51219
|
+
inputContainerClassName: ge([
|
|
51216
51220
|
"!h-9",
|
|
51217
51221
|
it && Te === Le.ITEM && "!h-10"
|
|
51218
51222
|
])
|
|
@@ -51241,7 +51245,7 @@ const C7 = ({
|
|
|
51241
51245
|
validate: (ts) => Qn(ts, Go),
|
|
51242
51246
|
onSave: cl,
|
|
51243
51247
|
onCancel: dl,
|
|
51244
|
-
inputContainerClassName:
|
|
51248
|
+
inputContainerClassName: ge([
|
|
51245
51249
|
"!h-9",
|
|
51246
51250
|
it && Te === Le.ITEM && "!h-10"
|
|
51247
51251
|
])
|
|
@@ -51600,7 +51604,7 @@ const C7 = ({
|
|
|
51600
51604
|
"section",
|
|
51601
51605
|
{
|
|
51602
51606
|
ref: Xa,
|
|
51603
|
-
className:
|
|
51607
|
+
className: ge(
|
|
51604
51608
|
aL,
|
|
51605
51609
|
{
|
|
51606
51610
|
"gap-3 pt-4": l && y.size > 0,
|
|
@@ -51616,7 +51620,7 @@ const C7 = ({
|
|
|
51616
51620
|
/* @__PURE__ */ z(
|
|
51617
51621
|
"div",
|
|
51618
51622
|
{
|
|
51619
|
-
className:
|
|
51623
|
+
className: ge(cL, {
|
|
51620
51624
|
"gap-3": it
|
|
51621
51625
|
}),
|
|
51622
51626
|
children: [
|
|
@@ -51639,7 +51643,7 @@ const C7 = ({
|
|
|
51639
51643
|
{
|
|
51640
51644
|
role: "region",
|
|
51641
51645
|
"aria-label": "File Manager Grid View",
|
|
51642
|
-
className:
|
|
51646
|
+
className: ge(uL),
|
|
51643
51647
|
onDragEnter: j,
|
|
51644
51648
|
onDragLeave: xe,
|
|
51645
51649
|
onDragOver: ve,
|
|
@@ -51655,8 +51659,8 @@ const C7 = ({
|
|
|
51655
51659
|
withoutHeaderBorders: it,
|
|
51656
51660
|
selectionOnHover: !it,
|
|
51657
51661
|
className: ee(
|
|
51658
|
-
|
|
51659
|
-
Pe && !
|
|
51662
|
+
pe ? "border border-dashed border-accent-primary" : "",
|
|
51663
|
+
Pe && !pe ? "border border-dashed border-primary" : ""
|
|
51660
51664
|
),
|
|
51661
51665
|
...Io,
|
|
51662
51666
|
additionalGridOptions: {
|
|
@@ -51684,7 +51688,7 @@ const C7 = ({
|
|
|
51684
51688
|
},
|
|
51685
51689
|
selectedRows: el,
|
|
51686
51690
|
onSelectionChangeWithMap: sl,
|
|
51687
|
-
wrapperBorder: !
|
|
51691
|
+
wrapperBorder: !pe && !Pe,
|
|
51688
51692
|
disabledRowIds: tl
|
|
51689
51693
|
}
|
|
51690
51694
|
)
|
|
@@ -51872,7 +51876,7 @@ export {
|
|
|
51872
51876
|
Wt as StepStatus,
|
|
51873
51877
|
td as TabOrientation,
|
|
51874
51878
|
Fd as TagVariant,
|
|
51875
|
-
|
|
51879
|
+
ge as mergeClasses,
|
|
51876
51880
|
j7 as useDialFileManagerTabs,
|
|
51877
51881
|
PL as useEditableItem,
|
|
51878
51882
|
a7 as useFileManagerContext
|