@epam/ai-dial-ui-kit 0.6.0-rc.5 → 0.6.0-rc.7
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
|
),
|
|
@@ -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,
|
|
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:
|
|
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 =
|
|
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 =
|
|
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:
|
|
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:
|
|
45522
|
+
className: ge(
|
|
45512
45523
|
"w-full rounded-none h-11 items-center px-6",
|
|
45513
45524
|
r
|
|
45514
45525
|
)
|
|
@@ -45603,20 +45614,21 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45603
45614
|
separator: n = QC,
|
|
45604
45615
|
className: r,
|
|
45605
45616
|
iconBefore: a,
|
|
45606
|
-
labelClassName: l
|
|
45617
|
+
labelClassName: l,
|
|
45618
|
+
...c
|
|
45607
45619
|
}) => {
|
|
45608
|
-
const
|
|
45620
|
+
const d = ge(
|
|
45609
45621
|
YC,
|
|
45610
45622
|
o ? a8 : r8,
|
|
45611
45623
|
r
|
|
45612
|
-
),
|
|
45624
|
+
), u = (!!t || !!s) && !o && !i, h = u ? ge(
|
|
45613
45625
|
Tg,
|
|
45614
45626
|
l8
|
|
45615
|
-
) :
|
|
45627
|
+
) : ge(
|
|
45616
45628
|
Tg,
|
|
45617
45629
|
c8,
|
|
45618
45630
|
i ? "pointer-events-none opacity-75" : ""
|
|
45619
|
-
),
|
|
45631
|
+
), g = typeof e == "string" ? /* @__PURE__ */ m(
|
|
45620
45632
|
wt,
|
|
45621
45633
|
{
|
|
45622
45634
|
className: l,
|
|
@@ -45626,7 +45638,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45626
45638
|
) : /* @__PURE__ */ m(
|
|
45627
45639
|
"span",
|
|
45628
45640
|
{
|
|
45629
|
-
className:
|
|
45641
|
+
className: ge(
|
|
45630
45642
|
"flex-1 min-w-0 max-w-full truncate",
|
|
45631
45643
|
l
|
|
45632
45644
|
),
|
|
@@ -45634,24 +45646,32 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45634
45646
|
children: e
|
|
45635
45647
|
}
|
|
45636
45648
|
);
|
|
45637
|
-
return /* @__PURE__ */ z(
|
|
45638
|
-
|
|
45639
|
-
|
|
45640
|
-
|
|
45641
|
-
|
|
45642
|
-
"
|
|
45643
|
-
|
|
45644
|
-
className:
|
|
45645
|
-
"aria-current": o ? "page" : void 0,
|
|
45646
|
-
"aria-disabled": i ? "true" : void 0,
|
|
45647
|
-
children: [
|
|
45649
|
+
return /* @__PURE__ */ z(
|
|
45650
|
+
"li",
|
|
45651
|
+
{
|
|
45652
|
+
...c,
|
|
45653
|
+
className: d,
|
|
45654
|
+
"aria-label": c["aria-label"] || "breadcrumb-item",
|
|
45655
|
+
children: [
|
|
45656
|
+
u ? /* @__PURE__ */ z("a", { href: t, onClick: s, className: h, children: [
|
|
45648
45657
|
a,
|
|
45649
|
-
|
|
45650
|
-
]
|
|
45651
|
-
|
|
45652
|
-
|
|
45653
|
-
|
|
45654
|
-
|
|
45658
|
+
g
|
|
45659
|
+
] }) : /* @__PURE__ */ z(
|
|
45660
|
+
"span",
|
|
45661
|
+
{
|
|
45662
|
+
className: h,
|
|
45663
|
+
"aria-current": o ? "page" : void 0,
|
|
45664
|
+
"aria-disabled": i ? "true" : void 0,
|
|
45665
|
+
children: [
|
|
45666
|
+
a,
|
|
45667
|
+
g
|
|
45668
|
+
]
|
|
45669
|
+
}
|
|
45670
|
+
),
|
|
45671
|
+
!o && /* @__PURE__ */ m("span", { className: ZC, "aria-label": "separator", children: n })
|
|
45672
|
+
]
|
|
45673
|
+
}
|
|
45674
|
+
);
|
|
45655
45675
|
}, u8 = ({
|
|
45656
45676
|
pathItems: e,
|
|
45657
45677
|
separator: t = QC,
|
|
@@ -45699,7 +45719,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45699
45719
|
labelClassName: n
|
|
45700
45720
|
}
|
|
45701
45721
|
),
|
|
45702
|
-
/* @__PURE__ */ z("li", { className:
|
|
45722
|
+
/* @__PURE__ */ z("li", { className: ge(YC), children: [
|
|
45703
45723
|
/* @__PURE__ */ m(
|
|
45704
45724
|
At,
|
|
45705
45725
|
{
|
|
@@ -45747,7 +45767,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45747
45767
|
"nav",
|
|
45748
45768
|
{
|
|
45749
45769
|
"aria-label": s,
|
|
45750
|
-
className:
|
|
45770
|
+
className: ge(o8, i),
|
|
45751
45771
|
children: /* @__PURE__ */ m("ol", { className: n8, children: l })
|
|
45752
45772
|
}
|
|
45753
45773
|
);
|
|
@@ -45775,7 +45795,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
45775
45795
|
js,
|
|
45776
45796
|
{
|
|
45777
45797
|
tooltip: l ? null : e,
|
|
45778
|
-
triggerClassName:
|
|
45798
|
+
triggerClassName: ge("flex", o),
|
|
45779
45799
|
children: /* @__PURE__ */ m(
|
|
45780
45800
|
"textarea",
|
|
45781
45801
|
{
|
|
@@ -46043,7 +46063,7 @@ const Dg = () => typeof window < "u" && window.innerWidth < 640, Pg = () => {
|
|
|
46043
46063
|
elementContainerClassName: n,
|
|
46044
46064
|
errorText: r,
|
|
46045
46065
|
...a
|
|
46046
|
-
}) => /* @__PURE__ */ z("div", { className:
|
|
46066
|
+
}) => /* @__PURE__ */ z("div", { className: ge("flex flex-col", o), children: [
|
|
46047
46067
|
/* @__PURE__ */ m(
|
|
46048
46068
|
mo,
|
|
46049
46069
|
{
|
|
@@ -46174,7 +46194,7 @@ const v8 = "z-[52] flex items-center justify-center bg-blackout md:p-4", w8 = "d
|
|
|
46174
46194
|
/* @__PURE__ */ z(
|
|
46175
46195
|
"div",
|
|
46176
46196
|
{
|
|
46177
|
-
className:
|
|
46197
|
+
className: ge(b8, r),
|
|
46178
46198
|
children: [
|
|
46179
46199
|
b(t),
|
|
46180
46200
|
/* @__PURE__ */ m(
|
|
@@ -46611,7 +46631,7 @@ const L8 = {
|
|
|
46611
46631
|
return /* @__PURE__ */ z(
|
|
46612
46632
|
"div",
|
|
46613
46633
|
{
|
|
46614
|
-
className:
|
|
46634
|
+
className: ge(
|
|
46615
46635
|
"dial-input flex flex-row items-center justify-between",
|
|
46616
46636
|
n && "dial-input-error",
|
|
46617
46637
|
i && "dial-input-disable",
|
|
@@ -46923,7 +46943,7 @@ const z8 = ({
|
|
|
46923
46943
|
selectedValues: se,
|
|
46924
46944
|
handleRemoveTag: oe
|
|
46925
46945
|
}
|
|
46926
|
-
), [t, e, se, oe]),
|
|
46946
|
+
), [t, e, se, oe]), pe = D(() => t ? le ? Ie() : /* @__PURE__ */ m("span", { className: "text-secondary truncate", children: c }) : Re ? /* @__PURE__ */ z(Be, { children: [
|
|
46927
46947
|
Re.icon && /* @__PURE__ */ m(Ve, { icon: Re.icon }),
|
|
46928
46948
|
/* @__PURE__ */ m(
|
|
46929
46949
|
wt,
|
|
@@ -47096,7 +47116,7 @@ const z8 = ({
|
|
|
47096
47116
|
"aria-haspopup": "listbox",
|
|
47097
47117
|
"aria-expanded": P,
|
|
47098
47118
|
"aria-controls": `list-${s || F}`,
|
|
47099
|
-
className:
|
|
47119
|
+
className: ge(
|
|
47100
47120
|
O8,
|
|
47101
47121
|
v && "opacity-75 !cursor-not-allowed",
|
|
47102
47122
|
r === sd.Sm ? "min-h-[25px] px-1.5 py-1" : "min-h-[38px] px-3 py-2",
|
|
@@ -47134,7 +47154,7 @@ const z8 = ({
|
|
|
47134
47154
|
"aria-disabled": v,
|
|
47135
47155
|
autoComplete: "off"
|
|
47136
47156
|
}
|
|
47137
|
-
) }) : /* @__PURE__ */ m("div", { className: "flex min-w-0 items-center gap-2 text-primary", children:
|
|
47157
|
+
) }) : /* @__PURE__ */ m("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: pe() }),
|
|
47138
47158
|
!E && /* @__PURE__ */ m(
|
|
47139
47159
|
Ve,
|
|
47140
47160
|
{
|
|
@@ -48168,7 +48188,7 @@ const EL = ({
|
|
|
48168
48188
|
/* @__PURE__ */ m(
|
|
48169
48189
|
ho,
|
|
48170
48190
|
{
|
|
48171
|
-
containerClassName:
|
|
48191
|
+
containerClassName: ge(
|
|
48172
48192
|
"!h-6 py-[1px] pl-[7px] pr-[7px]",
|
|
48173
48193
|
h
|
|
48174
48194
|
),
|
|
@@ -48374,7 +48394,7 @@ const pa = ({
|
|
|
48374
48394
|
"div",
|
|
48375
48395
|
{
|
|
48376
48396
|
style: { paddingLeft: `${T * FL}px` },
|
|
48377
|
-
className:
|
|
48397
|
+
className: ge(
|
|
48378
48398
|
"py-1 gap-[2px] dial-small flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",
|
|
48379
48399
|
oe
|
|
48380
48400
|
),
|
|
@@ -48555,7 +48575,7 @@ const pa = ({
|
|
|
48555
48575
|
return /* @__PURE__ */ z(
|
|
48556
48576
|
"div",
|
|
48557
48577
|
{
|
|
48558
|
-
className:
|
|
48578
|
+
className: ge(
|
|
48559
48579
|
ML,
|
|
48560
48580
|
{
|
|
48561
48581
|
"gap-3": w
|
|
@@ -48568,7 +48588,7 @@ const pa = ({
|
|
|
48568
48588
|
c && /* @__PURE__ */ m(
|
|
48569
48589
|
"div",
|
|
48570
48590
|
{
|
|
48571
|
-
className:
|
|
48591
|
+
className: ge(AL, {
|
|
48572
48592
|
"w-[38px]": w && !S,
|
|
48573
48593
|
"w-full": w && S
|
|
48574
48594
|
}),
|
|
@@ -48586,7 +48606,7 @@ const pa = ({
|
|
|
48586
48606
|
onBlur: x,
|
|
48587
48607
|
invalid: p,
|
|
48588
48608
|
className: C,
|
|
48589
|
-
containerClassName:
|
|
48609
|
+
containerClassName: ge(v, {
|
|
48590
48610
|
"p-[10px]": w
|
|
48591
48611
|
})
|
|
48592
48612
|
}
|
|
@@ -49275,8 +49295,8 @@ const GL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49275
49295
|
u(void 0), p.current = $;
|
|
49276
49296
|
const fe = _(A);
|
|
49277
49297
|
if (fe.length > 0) {
|
|
49278
|
-
const Ie = s ? (s / 1048576).toFixed(2) : 0,
|
|
49279
|
-
return u(
|
|
49298
|
+
const Ie = s ? (s / 1048576).toFixed(2) : 0, pe = o.oversizedFiles || `Files exceed maximum size (${Ie}MB): ${fe.join(", ")}`;
|
|
49299
|
+
return u(pe), !1;
|
|
49280
49300
|
}
|
|
49281
49301
|
if (t)
|
|
49282
49302
|
try {
|
|
@@ -49650,7 +49670,7 @@ const QL = ({
|
|
|
49650
49670
|
const i = t === 0;
|
|
49651
49671
|
return {
|
|
49652
49672
|
additionalButtons: B(() => {
|
|
49653
|
-
const n =
|
|
49673
|
+
const n = ge([
|
|
49654
49674
|
"hover:text-accent-primary p-1",
|
|
49655
49675
|
i && "text-controls-disable hover:text-controls-disable disabled:hover:cursor-default"
|
|
49656
49676
|
]);
|
|
@@ -49707,55 +49727,55 @@ function o7({
|
|
|
49707
49727
|
onNavigationPanelSearchChange: r,
|
|
49708
49728
|
allItems: a = []
|
|
49709
49729
|
}) {
|
|
49710
|
-
const [l, c] = I(""), d = L(!1), u = L(!1), h = L([]);
|
|
49730
|
+
const [l, c] = I(""), d = L(!1), u = L(!1), h = L([]), g = L(s);
|
|
49711
49731
|
Se(() => {
|
|
49712
49732
|
n != null && c(String(n));
|
|
49713
49733
|
}, [n]);
|
|
49714
|
-
const
|
|
49734
|
+
const p = String(
|
|
49715
49735
|
n ?? l ?? ""
|
|
49716
|
-
).trim(),
|
|
49717
|
-
(
|
|
49718
|
-
const
|
|
49719
|
-
if (!
|
|
49736
|
+
).trim(), f = u.current && (o || i.length > 0 || p !== ""), C = D(
|
|
49737
|
+
(S) => {
|
|
49738
|
+
const y = S.trim();
|
|
49739
|
+
if (!y) {
|
|
49720
49740
|
u.current = !1, d.current = !1;
|
|
49721
49741
|
return;
|
|
49722
49742
|
}
|
|
49723
|
-
u.current = !0, e && s && !d.current && (d.current = !0, e(s,
|
|
49743
|
+
u.current = !0, e && s && !d.current && (d.current = !0, e(s, y));
|
|
49724
49744
|
},
|
|
49725
49745
|
[e, s]
|
|
49726
|
-
),
|
|
49727
|
-
d.current = !1, u.current = !1, h.current = [], t?.();
|
|
49728
|
-
}, [t]),
|
|
49729
|
-
(
|
|
49730
|
-
const
|
|
49731
|
-
c(
|
|
49746
|
+
), v = D(() => {
|
|
49747
|
+
d.current = !1, u.current = !1, h.current = [], c(""), r?.(""), t?.();
|
|
49748
|
+
}, [t, r]), w = D(
|
|
49749
|
+
(S) => {
|
|
49750
|
+
const y = String(S ?? "");
|
|
49751
|
+
c(y), r?.(y), y.trim() ? C(y) : v();
|
|
49732
49752
|
},
|
|
49733
|
-
[r,
|
|
49753
|
+
[r, C, v]
|
|
49734
49754
|
);
|
|
49735
49755
|
Se(() => {
|
|
49736
|
-
u.current &&
|
|
49737
|
-
}, [s,
|
|
49756
|
+
g.current !== s && (g.current = s, (u.current || p) && v());
|
|
49757
|
+
}, [s, v, p]), Se(() => {
|
|
49738
49758
|
i.length > 0 && h.current.length === 0 && (h.current = i);
|
|
49739
49759
|
}, [i]);
|
|
49740
|
-
const
|
|
49760
|
+
const b = B(() => {
|
|
49741
49761
|
if (e) {
|
|
49742
|
-
const
|
|
49743
|
-
return !
|
|
49762
|
+
const y = h.current.length > 0 ? h.current : i;
|
|
49763
|
+
return !p || y.length === 0 ? y : zg(y, p);
|
|
49744
49764
|
}
|
|
49745
|
-
if (!
|
|
49765
|
+
if (!p || !a.length)
|
|
49746
49766
|
return [];
|
|
49747
|
-
const
|
|
49748
|
-
return zg(
|
|
49749
|
-
}, [e, i,
|
|
49767
|
+
const S = i7(a);
|
|
49768
|
+
return zg(S, p);
|
|
49769
|
+
}, [e, i, p, a]);
|
|
49750
49770
|
return {
|
|
49751
|
-
isSearchMode:
|
|
49771
|
+
isSearchMode: f,
|
|
49752
49772
|
searchValue: l,
|
|
49753
|
-
effectiveSearchValue:
|
|
49773
|
+
effectiveSearchValue: p,
|
|
49754
49774
|
setSearchValue: c,
|
|
49755
|
-
handleSearchChange:
|
|
49756
|
-
handleSearchActivate:
|
|
49757
|
-
handleSearchClear:
|
|
49758
|
-
searchResultsRows:
|
|
49775
|
+
handleSearchChange: w,
|
|
49776
|
+
handleSearchActivate: C,
|
|
49777
|
+
handleSearchClear: v,
|
|
49778
|
+
searchResultsRows: b
|
|
49759
49779
|
};
|
|
49760
49780
|
}
|
|
49761
49781
|
function n7({
|
|
@@ -49844,7 +49864,7 @@ const r7 = ({
|
|
|
49844
49864
|
const ts = Si(s, Pt);
|
|
49845
49865
|
ts && Ne.set(Pt, ts);
|
|
49846
49866
|
}), Ne;
|
|
49847
|
-
}, [$, s]), { currentPath: Re, setCurrentPath: Ie, handlePathChange:
|
|
49867
|
+
}, [$, s]), { currentPath: Re, setCurrentPath: Ie, handlePathChange: pe } = WL({
|
|
49848
49868
|
path: o,
|
|
49849
49869
|
defaultPath: n,
|
|
49850
49870
|
onPathChange: S,
|
|
@@ -50069,19 +50089,19 @@ const r7 = ({
|
|
|
50069
50089
|
Ms
|
|
50070
50090
|
]), Is = D(
|
|
50071
50091
|
(Ne) => {
|
|
50072
|
-
|
|
50092
|
+
pe(Ne.path);
|
|
50073
50093
|
},
|
|
50074
|
-
[
|
|
50094
|
+
[pe]
|
|
50075
50095
|
), As = D(
|
|
50076
50096
|
(Ne) => {
|
|
50077
|
-
|
|
50097
|
+
pe(Ne);
|
|
50078
50098
|
},
|
|
50079
|
-
[
|
|
50099
|
+
[pe]
|
|
50080
50100
|
), Ho = D(
|
|
50081
50101
|
(Ne) => {
|
|
50082
|
-
Ne.nodeType === Le.FOLDER ?
|
|
50102
|
+
Ne.nodeType === Le.FOLDER ? pe(Ne.path) : y?.(Ne);
|
|
50083
50103
|
},
|
|
50084
|
-
[
|
|
50104
|
+
[pe, y]
|
|
50085
50105
|
), { expandedPaths: Zn, setExpandedPaths: nl, collapseAll: Qs } = dv({
|
|
50086
50106
|
expandedPaths: h?.expandedPaths,
|
|
50087
50107
|
onExpandedPathsChange: h?.onExpandedPathsChange
|
|
@@ -50160,7 +50180,7 @@ const r7 = ({
|
|
|
50160
50180
|
confirmDelete: Do,
|
|
50161
50181
|
deleteConfirmationOpen: Vn,
|
|
50162
50182
|
itemsToDelete: zn,
|
|
50163
|
-
handlePathChange:
|
|
50183
|
+
handlePathChange: pe,
|
|
50164
50184
|
handleTreeItemClick: Is,
|
|
50165
50185
|
handleBreadcrumbItemClick: As,
|
|
50166
50186
|
handleSearchChange: Ga,
|
|
@@ -51108,7 +51128,7 @@ const C7 = ({
|
|
|
51108
51128
|
onRenameCancel: ye,
|
|
51109
51129
|
onRenameValidate: Re,
|
|
51110
51130
|
getDisplayName: Ie,
|
|
51111
|
-
isDragging:
|
|
51131
|
+
isDragging: pe,
|
|
51112
51132
|
isDraggingOverWindow: Pe,
|
|
51113
51133
|
handleDragEnter: j,
|
|
51114
51134
|
handleDragLeave: xe,
|
|
@@ -51205,7 +51225,7 @@ const C7 = ({
|
|
|
51205
51225
|
validate: As,
|
|
51206
51226
|
onSave: Is,
|
|
51207
51227
|
onCancel: Ho,
|
|
51208
|
-
inputContainerClassName:
|
|
51228
|
+
inputContainerClassName: ge([
|
|
51209
51229
|
"!h-9",
|
|
51210
51230
|
it && Te === Le.ITEM && "!h-10"
|
|
51211
51231
|
])
|
|
@@ -51234,7 +51254,7 @@ const C7 = ({
|
|
|
51234
51254
|
validate: (ts) => Qn(ts, Go),
|
|
51235
51255
|
onSave: cl,
|
|
51236
51256
|
onCancel: dl,
|
|
51237
|
-
inputContainerClassName:
|
|
51257
|
+
inputContainerClassName: ge([
|
|
51238
51258
|
"!h-9",
|
|
51239
51259
|
it && Te === Le.ITEM && "!h-10"
|
|
51240
51260
|
])
|
|
@@ -51593,7 +51613,7 @@ const C7 = ({
|
|
|
51593
51613
|
"section",
|
|
51594
51614
|
{
|
|
51595
51615
|
ref: Xa,
|
|
51596
|
-
className:
|
|
51616
|
+
className: ge(
|
|
51597
51617
|
aL,
|
|
51598
51618
|
{
|
|
51599
51619
|
"gap-3 pt-4": l && y.size > 0,
|
|
@@ -51609,7 +51629,7 @@ const C7 = ({
|
|
|
51609
51629
|
/* @__PURE__ */ z(
|
|
51610
51630
|
"div",
|
|
51611
51631
|
{
|
|
51612
|
-
className:
|
|
51632
|
+
className: ge(cL, {
|
|
51613
51633
|
"gap-3": it
|
|
51614
51634
|
}),
|
|
51615
51635
|
children: [
|
|
@@ -51632,7 +51652,7 @@ const C7 = ({
|
|
|
51632
51652
|
{
|
|
51633
51653
|
role: "region",
|
|
51634
51654
|
"aria-label": "File Manager Grid View",
|
|
51635
|
-
className:
|
|
51655
|
+
className: ge(uL),
|
|
51636
51656
|
onDragEnter: j,
|
|
51637
51657
|
onDragLeave: xe,
|
|
51638
51658
|
onDragOver: ve,
|
|
@@ -51648,8 +51668,8 @@ const C7 = ({
|
|
|
51648
51668
|
withoutHeaderBorders: it,
|
|
51649
51669
|
selectionOnHover: !it,
|
|
51650
51670
|
className: ee(
|
|
51651
|
-
|
|
51652
|
-
Pe && !
|
|
51671
|
+
pe ? "border border-dashed border-accent-primary" : "",
|
|
51672
|
+
Pe && !pe ? "border border-dashed border-primary" : ""
|
|
51653
51673
|
),
|
|
51654
51674
|
...Io,
|
|
51655
51675
|
additionalGridOptions: {
|
|
@@ -51677,7 +51697,7 @@ const C7 = ({
|
|
|
51677
51697
|
},
|
|
51678
51698
|
selectedRows: el,
|
|
51679
51699
|
onSelectionChangeWithMap: sl,
|
|
51680
|
-
wrapperBorder: !
|
|
51700
|
+
wrapperBorder: !pe && !Pe,
|
|
51681
51701
|
disabledRowIds: tl
|
|
51682
51702
|
}
|
|
51683
51703
|
)
|
|
@@ -51865,7 +51885,7 @@ export {
|
|
|
51865
51885
|
Wt as StepStatus,
|
|
51866
51886
|
td as TabOrientation,
|
|
51867
51887
|
Fd as TagVariant,
|
|
51868
|
-
|
|
51888
|
+
ge as mergeClasses,
|
|
51869
51889
|
j7 as useDialFileManagerTabs,
|
|
51870
51890
|
PL as useEditableItem,
|
|
51871
51891
|
a7 as useFileManagerContext
|