@udixio/ui-react 2.10.16 → 2.10.17
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/index.cjs +3 -3
- package/dist/index.js +594 -606
- package/dist/lib/effects/ThemeProvider.d.ts.map +1 -1
- package/dist/theme.worker.js +121 -113
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var ln = Object.defineProperty;
|
|
|
2
2
|
var an = (e, t, n) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var H = (e, t, n) => an(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsx as u, jsxs as j, Fragment as me } from "react/jsx-runtime";
|
|
5
|
-
import Y, { useState as X, useEffect as _, useMemo as ve, useRef as z, useLayoutEffect as Ae, useId as Ce, useCallback as he, isValidElement as
|
|
5
|
+
import Y, { useState as X, useEffect as _, useMemo as ve, useRef as z, useLayoutEffect as Ae, useId as Ce, useCallback as he, isValidElement as Ie, cloneElement as Be, createContext as cn, useContext as vt, Children as un, Fragment as dn } from "react";
|
|
6
6
|
import { createPortal as Ke } from "react-dom";
|
|
7
7
|
import { AnimatePresence as pe, motion as se, useScroll as fn, useMotionValueEvent as it, animate as hn } from "motion/react";
|
|
8
8
|
import { clsx as gt } from "clsx";
|
|
@@ -210,7 +210,7 @@ const Ln = ({
|
|
|
210
210
|
});
|
|
211
211
|
_(() => {
|
|
212
212
|
if (!o.current) return;
|
|
213
|
-
const
|
|
213
|
+
const N = new ResizeObserver((C) => {
|
|
214
214
|
for (const K of C)
|
|
215
215
|
K.target === o.current && f({
|
|
216
216
|
width: K.contentRect.width,
|
|
@@ -218,21 +218,21 @@ const Ln = ({
|
|
|
218
218
|
// On observe aussi la hauteur maintenant
|
|
219
219
|
});
|
|
220
220
|
});
|
|
221
|
-
return
|
|
222
|
-
|
|
221
|
+
return N.observe(o.current), () => {
|
|
222
|
+
N.disconnect();
|
|
223
223
|
};
|
|
224
224
|
}, [o]);
|
|
225
225
|
const h = z(null), m = z(null), b = () => {
|
|
226
|
-
const
|
|
227
|
-
return
|
|
228
|
-
width: n ??
|
|
229
|
-
height: n ??
|
|
226
|
+
const N = d.current;
|
|
227
|
+
return N ? {
|
|
228
|
+
width: n ?? N.scrollWidth,
|
|
229
|
+
height: n ?? N.scrollHeight
|
|
230
230
|
} : null;
|
|
231
231
|
}, w = () => {
|
|
232
|
-
const
|
|
233
|
-
return
|
|
234
|
-
width:
|
|
235
|
-
height:
|
|
232
|
+
const N = o.current;
|
|
233
|
+
return N ? {
|
|
234
|
+
width: N.clientWidth,
|
|
235
|
+
height: N.clientHeight
|
|
236
236
|
// Correction ici pour retourner la bonne hauteur
|
|
237
237
|
} : null;
|
|
238
238
|
}, { scrollYProgress: E, scrollXProgress: S } = fn({
|
|
@@ -240,52 +240,52 @@ const Ln = ({
|
|
|
240
240
|
}), g = z(null);
|
|
241
241
|
g.current || (g.current = kn(
|
|
242
242
|
l,
|
|
243
|
-
(
|
|
244
|
-
!m.current || !h.current || !o.current || (C === (t === "horizontal" ? "x" : "y") && (c == null || c(
|
|
245
|
-
scrollProgress:
|
|
246
|
-
scroll:
|
|
243
|
+
(N, C) => {
|
|
244
|
+
!m.current || !h.current || !o.current || (C === (t === "horizontal" ? "x" : "y") && (c == null || c(N)), r && (t === "horizontal" && C === "x" && r({
|
|
245
|
+
scrollProgress: N,
|
|
246
|
+
scroll: N * (h.current.width - o.current.clientWidth),
|
|
247
247
|
scrollTotal: h.current.width - o.current.clientWidth,
|
|
248
248
|
scrollVisible: m.current.width
|
|
249
249
|
}), t === "vertical" && C === "y" && r({
|
|
250
|
-
scrollProgress:
|
|
251
|
-
scroll:
|
|
250
|
+
scrollProgress: N,
|
|
251
|
+
scroll: N * (h.current.height - o.current.clientHeight),
|
|
252
252
|
scrollTotal: h.current.height - o.current.clientHeight,
|
|
253
253
|
scrollVisible: m.current.height
|
|
254
254
|
})));
|
|
255
255
|
}
|
|
256
256
|
));
|
|
257
|
-
const A = (
|
|
258
|
-
g.current && g.current(
|
|
257
|
+
const A = (N, C) => {
|
|
258
|
+
g.current && g.current(N, C);
|
|
259
259
|
};
|
|
260
260
|
_(() => {
|
|
261
261
|
y.width && A(S.get(), "x"), y.height && A(E.get(), "y");
|
|
262
262
|
}, [y]), _(() => {
|
|
263
|
-
const
|
|
264
|
-
if (!
|
|
263
|
+
const N = o.current, C = d.current;
|
|
264
|
+
if (!N || !C || typeof i != "number") return;
|
|
265
265
|
const K = (G, ee, oe) => Math.min(oe, Math.max(ee, G));
|
|
266
266
|
if (t === "horizontal") {
|
|
267
|
-
const G = Math.max(0, (n ?? C.scrollWidth) -
|
|
268
|
-
|
|
267
|
+
const G = Math.max(0, (n ?? C.scrollWidth) - N.clientWidth);
|
|
268
|
+
N.scrollLeft = K(i * G, 0, G);
|
|
269
269
|
} else {
|
|
270
|
-
const G = Math.max(0, (n ?? C.scrollHeight) -
|
|
271
|
-
|
|
270
|
+
const G = Math.max(0, (n ?? C.scrollHeight) - N.clientHeight);
|
|
271
|
+
N.scrollTop = K(i * G, 0, G);
|
|
272
272
|
}
|
|
273
|
-
}, [i, t, n]), it(S, "change", (
|
|
274
|
-
A(
|
|
275
|
-
}), it(E, "change", (
|
|
276
|
-
A(
|
|
273
|
+
}, [i, t, n]), it(S, "change", (N) => {
|
|
274
|
+
A(N, "x");
|
|
275
|
+
}), it(E, "change", (N) => {
|
|
276
|
+
A(N, "y");
|
|
277
277
|
});
|
|
278
|
-
const [
|
|
278
|
+
const [M, v] = X(!1);
|
|
279
279
|
Ae(() => {
|
|
280
|
-
|
|
280
|
+
M || !m.current || !h.current || !r || (r({
|
|
281
281
|
scrollProgress: 0,
|
|
282
282
|
scroll: 0,
|
|
283
283
|
scrollTotal: t == "vertical" ? h.current.height : h.current.width,
|
|
284
284
|
scrollVisible: t == "vertical" ? m.current.height : m.current.width
|
|
285
285
|
}), v(!0));
|
|
286
286
|
}, [m, h, r]), h.current = b(), m.current = w();
|
|
287
|
-
const [
|
|
288
|
-
isDragging:
|
|
287
|
+
const [k, R] = X(!1), I = Nn({
|
|
288
|
+
isDragging: k,
|
|
289
289
|
children: e,
|
|
290
290
|
className: s,
|
|
291
291
|
onScroll: r,
|
|
@@ -293,31 +293,31 @@ const Ln = ({
|
|
|
293
293
|
scrollSize: n,
|
|
294
294
|
draggable: a,
|
|
295
295
|
throttleDuration: l
|
|
296
|
-
}), [O, L] = X(0), [J, V] = X(0), te = (
|
|
296
|
+
}), [O, L] = X(0), [J, V] = X(0), te = (N) => {
|
|
297
297
|
if (!a) return;
|
|
298
298
|
const C = o.current;
|
|
299
299
|
if (!C || O == null) return;
|
|
300
|
-
const G = (
|
|
300
|
+
const G = (N.pageX - C.offsetLeft - O) * 1.5;
|
|
301
301
|
C.scrollLeft = J - G;
|
|
302
|
-
}, U = (
|
|
302
|
+
}, U = (N) => {
|
|
303
303
|
const C = o.current;
|
|
304
|
-
C && (
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
},
|
|
308
|
-
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
}, $ = (
|
|
312
|
-
|
|
304
|
+
C && (R(!0), L(N.pageX - C.offsetLeft), V(C.scrollLeft));
|
|
305
|
+
}, F = (N) => {
|
|
306
|
+
k && (N.preventDefault(), te(N));
|
|
307
|
+
}, D = () => {
|
|
308
|
+
R(!1);
|
|
309
|
+
}, B = () => {
|
|
310
|
+
R(!1);
|
|
311
|
+
}, $ = (N) => {
|
|
312
|
+
N.preventDefault();
|
|
313
313
|
}, P = z(null);
|
|
314
314
|
return _(() => () => {
|
|
315
315
|
P.current && clearTimeout(P.current);
|
|
316
316
|
}, []), _(() => {
|
|
317
|
-
const
|
|
318
|
-
if (!
|
|
317
|
+
const N = o.current;
|
|
318
|
+
if (!N) return;
|
|
319
319
|
const C = (K) => {
|
|
320
|
-
var le,
|
|
320
|
+
var le, W, q, T;
|
|
321
321
|
const G = K.detail, ee = o.current;
|
|
322
322
|
if (!ee || !G) return;
|
|
323
323
|
const oe = G.orientation ?? t;
|
|
@@ -331,7 +331,7 @@ const Ln = ({
|
|
|
331
331
|
} else {
|
|
332
332
|
const re = Math.max(
|
|
333
333
|
0,
|
|
334
|
-
(((
|
|
334
|
+
(((W = h.current) == null ? void 0 : W.height) ?? 0) - ee.clientHeight
|
|
335
335
|
);
|
|
336
336
|
ee.scrollTop = Math.min(re, Math.max(0, G.progress * re));
|
|
337
337
|
}
|
|
@@ -345,27 +345,27 @@ const Ln = ({
|
|
|
345
345
|
} else {
|
|
346
346
|
const re = Math.max(
|
|
347
347
|
0,
|
|
348
|
-
(((
|
|
348
|
+
(((T = h.current) == null ? void 0 : T.height) ?? 0) - ee.clientHeight
|
|
349
349
|
);
|
|
350
350
|
ee.scrollTop = Math.min(re, Math.max(0, G.scroll));
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
return
|
|
354
|
-
|
|
353
|
+
return N.addEventListener("udx:customScroll:set", C), () => {
|
|
354
|
+
N.removeEventListener("udx:customScroll:set", C);
|
|
355
355
|
};
|
|
356
356
|
}, [t]), /* @__PURE__ */ j(
|
|
357
357
|
"div",
|
|
358
358
|
{
|
|
359
|
-
className:
|
|
359
|
+
className: I.customScroll,
|
|
360
360
|
ref: o,
|
|
361
361
|
onMouseDown: U,
|
|
362
|
-
onMouseMove:
|
|
363
|
-
onMouseUp:
|
|
364
|
-
onMouseLeave:
|
|
362
|
+
onMouseMove: F,
|
|
363
|
+
onMouseUp: D,
|
|
364
|
+
onMouseLeave: B,
|
|
365
365
|
onDragStart: $,
|
|
366
|
-
onScroll: (
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
onScroll: (N) => {
|
|
367
|
+
k || (L(null), R(!0), P.current && clearTimeout(P.current), P.current = setTimeout(() => {
|
|
368
|
+
R(!1);
|
|
369
369
|
}, 1e3));
|
|
370
370
|
},
|
|
371
371
|
children: [
|
|
@@ -374,7 +374,7 @@ const Ln = ({
|
|
|
374
374
|
{
|
|
375
375
|
ref: d,
|
|
376
376
|
style: t === "vertical" ? { height: ((Z = m == null ? void 0 : m.current) == null ? void 0 : Z.height) ?? "100%" } : { width: ((x = m == null ? void 0 : m.current) == null ? void 0 : x.width) ?? "100%" },
|
|
377
|
-
className:
|
|
377
|
+
className: I.track,
|
|
378
378
|
children: e
|
|
379
379
|
}
|
|
380
380
|
),
|
|
@@ -406,11 +406,11 @@ var En = "1.3.17";
|
|
|
406
406
|
function xt(e, t, n) {
|
|
407
407
|
return Math.max(e, Math.min(t, n));
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function In(e, t, n) {
|
|
410
410
|
return (1 - n) * e + n * t;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
413
|
-
return
|
|
412
|
+
function Mn(e, t, n, r) {
|
|
413
|
+
return In(e, t, 1 - Math.exp(-n * r));
|
|
414
414
|
}
|
|
415
415
|
function Cn(e, t) {
|
|
416
416
|
return (e % t + t) % t;
|
|
@@ -443,7 +443,7 @@ var Dn = class {
|
|
|
443
443
|
t = r >= 1;
|
|
444
444
|
const s = t ? 1 : this.easing(r);
|
|
445
445
|
this.value = this.from + (this.to - this.from) * s;
|
|
446
|
-
} else this.lerp ? (this.value =
|
|
446
|
+
} else this.lerp ? (this.value = Mn(this.value, this.to, this.lerp * 60, e), Math.round(this.value) === this.to && (this.value = this.to, t = !0)) : (this.value = this.to, t = !0);
|
|
447
447
|
t && this.stop(), (n = this.onUpdate) == null || n.call(this, this.value, t);
|
|
448
448
|
}
|
|
449
449
|
/** Stop the animation */
|
|
@@ -642,7 +642,7 @@ var $n = class {
|
|
|
642
642
|
xe
|
|
643
643
|
);
|
|
644
644
|
}
|
|
645
|
-
}, at = (e) => Math.min(1, 1.001 - Math.pow(2, -10 * e)),
|
|
645
|
+
}, at = (e) => Math.min(1, 1.001 - Math.pow(2, -10 * e)), Wn = class {
|
|
646
646
|
constructor({
|
|
647
647
|
wrapper: e = window,
|
|
648
648
|
content: t = document.documentElement,
|
|
@@ -668,13 +668,13 @@ var $n = class {
|
|
|
668
668
|
overscroll: S = !0,
|
|
669
669
|
autoRaf: g = !1,
|
|
670
670
|
anchors: A = !1,
|
|
671
|
-
autoToggle:
|
|
671
|
+
autoToggle: M = !1,
|
|
672
672
|
// https://caniuse.com/?search=transition-behavior
|
|
673
673
|
allowNestedScroll: v = !1,
|
|
674
674
|
// @ts-ignore: this will be deprecated in the future
|
|
675
|
-
__experimental__naiveDimensions:
|
|
676
|
-
naiveDimensions:
|
|
677
|
-
stopInertiaOnNavigate:
|
|
675
|
+
__experimental__naiveDimensions: k = !1,
|
|
676
|
+
naiveDimensions: R = k,
|
|
677
|
+
stopInertiaOnNavigate: I = !1
|
|
678
678
|
} = {}) {
|
|
679
679
|
H(this, "_isScrolling", !1);
|
|
680
680
|
// true when scroll is animating
|
|
@@ -870,10 +870,10 @@ var $n = class {
|
|
|
870
870
|
overscroll: S,
|
|
871
871
|
autoRaf: g,
|
|
872
872
|
anchors: A,
|
|
873
|
-
autoToggle:
|
|
873
|
+
autoToggle: M,
|
|
874
874
|
allowNestedScroll: v,
|
|
875
|
-
naiveDimensions:
|
|
876
|
-
stopInertiaOnNavigate:
|
|
875
|
+
naiveDimensions: R,
|
|
876
|
+
stopInertiaOnNavigate: I
|
|
877
877
|
}, this.dimensions = new $n(e, t, { autoResize: b }), this.updateClassName(), this.targetScroll = this.animatedScroll = this.actualScroll, this.options.wrapper.addEventListener("scroll", this.onNativeScroll, !1), this.options.wrapper.addEventListener("scrollend", this.onScrollEnd, {
|
|
878
878
|
capture: !0
|
|
879
879
|
}), (this.options.anchors || this.options.stopInertiaOnNavigate) && this.options.wrapper.addEventListener(
|
|
@@ -1066,10 +1066,10 @@ var $n = class {
|
|
|
1066
1066
|
const h = this.options.gestureOrientation;
|
|
1067
1067
|
if (r - (s.time ?? 0) > 2e3) {
|
|
1068
1068
|
s.time = Date.now();
|
|
1069
|
-
const
|
|
1070
|
-
s.computedStyle =
|
|
1071
|
-
const v =
|
|
1072
|
-
if (a = ["auto", "overlay", "scroll"].includes(v), l = ["auto", "overlay", "scroll"].includes(
|
|
1069
|
+
const M = window.getComputedStyle(e);
|
|
1070
|
+
s.computedStyle = M;
|
|
1071
|
+
const v = M.overflowX, k = M.overflowY;
|
|
1072
|
+
if (a = ["auto", "overlay", "scroll"].includes(v), l = ["auto", "overlay", "scroll"].includes(k), s.hasOverflowX = a, s.hasOverflowY = l, !a && !l || h === "vertical" && !l || h === "horizontal" && !a) return !1;
|
|
1073
1073
|
o = e.scrollWidth, d = e.scrollHeight, y = e.clientWidth, f = e.clientHeight, i = o > y, c = d > f, s.isScrollableX = i, s.isScrollableY = c, s.scrollWidth = o, s.scrollHeight = d, s.clientWidth = y, s.clientHeight = f;
|
|
1074
1074
|
} else
|
|
1075
1075
|
i = s.isScrollableX, c = s.isScrollableY, a = s.hasOverflowX, l = s.hasOverflowY, o = s.scrollWidth, d = s.scrollHeight, y = s.clientWidth, f = s.clientHeight;
|
|
@@ -1081,8 +1081,8 @@ var $n = class {
|
|
|
1081
1081
|
else if (h === "vertical")
|
|
1082
1082
|
m = "y";
|
|
1083
1083
|
else {
|
|
1084
|
-
const
|
|
1085
|
-
|
|
1084
|
+
const M = t !== 0, v = n !== 0;
|
|
1085
|
+
M && a && i && (m = "x"), v && l && c && (m = "y");
|
|
1086
1086
|
}
|
|
1087
1087
|
if (!m) return !1;
|
|
1088
1088
|
let b, w, E, S, g;
|
|
@@ -1191,7 +1191,7 @@ const ts = ({
|
|
|
1191
1191
|
let c;
|
|
1192
1192
|
typeof e == "string" ? e.endsWith("ms") ? c = parseFloat(e) / 1e3 : e.endsWith("s") ? c = parseFloat(e) : c = parseFloat(e) || 1.2 : c = e;
|
|
1193
1193
|
const o = (y) => 1 - Math.pow(1 - y, 5);
|
|
1194
|
-
l.current = new
|
|
1194
|
+
l.current = new Wn({
|
|
1195
1195
|
duration: c,
|
|
1196
1196
|
easing: t ?? o,
|
|
1197
1197
|
orientation: n,
|
|
@@ -1244,7 +1244,7 @@ const ts = ({
|
|
|
1244
1244
|
]
|
|
1245
1245
|
}
|
|
1246
1246
|
);
|
|
1247
|
-
},
|
|
1247
|
+
}, Fn = ({
|
|
1248
1248
|
isClient: e,
|
|
1249
1249
|
stateClassName: t
|
|
1250
1250
|
}) => ({
|
|
@@ -1254,7 +1254,7 @@ const ts = ({
|
|
|
1254
1254
|
])
|
|
1255
1255
|
}), Pn = ne(
|
|
1256
1256
|
"stateLayer",
|
|
1257
|
-
|
|
1257
|
+
Fn
|
|
1258
1258
|
), On = ({
|
|
1259
1259
|
targetRef: e,
|
|
1260
1260
|
children: t
|
|
@@ -1284,7 +1284,7 @@ const ts = ({
|
|
|
1284
1284
|
};
|
|
1285
1285
|
}, [e]), n ? Ke(/* @__PURE__ */ u("div", { style: n, children: t }), document.body) : null;
|
|
1286
1286
|
};
|
|
1287
|
-
function
|
|
1287
|
+
function Bn(e) {
|
|
1288
1288
|
return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e);
|
|
1289
1289
|
}
|
|
1290
1290
|
const ns = ({
|
|
@@ -1310,9 +1310,9 @@ const ns = ({
|
|
|
1310
1310
|
),
|
|
1311
1311
|
{ type: "module" }
|
|
1312
1312
|
);
|
|
1313
|
-
c.current = A, A.onmessage = (
|
|
1313
|
+
c.current = A, A.onmessage = (M) => {
|
|
1314
1314
|
var v;
|
|
1315
|
-
|
|
1315
|
+
M.data.id > d.current && (d.current = M.data.id, f.current = !0, i(M.data.css), (v = h.current) == null || v.call(h, y.current));
|
|
1316
1316
|
};
|
|
1317
1317
|
})(), () => {
|
|
1318
1318
|
var g;
|
|
@@ -1325,24 +1325,24 @@ const ns = ({
|
|
|
1325
1325
|
const S = {
|
|
1326
1326
|
...e,
|
|
1327
1327
|
sourceColor: e.sourceColor
|
|
1328
|
-
}, g = Date.now(), A = g - b.current,
|
|
1328
|
+
}, g = Date.now(), A = g - b.current, M = async (v) => {
|
|
1329
1329
|
await E(v);
|
|
1330
1330
|
};
|
|
1331
1331
|
if (b.current === 0 || A >= t)
|
|
1332
|
-
m.current && (clearTimeout(m.current), m.current = null), w.current = null, b.current = g,
|
|
1332
|
+
m.current && (clearTimeout(m.current), m.current = null), w.current = null, b.current = g, M(S);
|
|
1333
1333
|
else if (w.current = S, !m.current) {
|
|
1334
1334
|
const v = Math.max(0, t - A);
|
|
1335
1335
|
m.current = setTimeout(async () => {
|
|
1336
1336
|
m.current = null;
|
|
1337
|
-
const
|
|
1338
|
-
w.current = null,
|
|
1337
|
+
const k = w.current;
|
|
1338
|
+
w.current = null, k && (b.current = Date.now(), await M(k));
|
|
1339
1339
|
}, v);
|
|
1340
1340
|
}
|
|
1341
1341
|
return () => {
|
|
1342
1342
|
};
|
|
1343
1343
|
}, [e, t, s]);
|
|
1344
1344
|
const E = async (S) => {
|
|
1345
|
-
if (typeof S.sourceColor == "string" && !
|
|
1345
|
+
if (typeof S.sourceColor == "string" && !Bn(S.sourceColor))
|
|
1346
1346
|
throw new Error("Invalid hex color");
|
|
1347
1347
|
const g = y.current;
|
|
1348
1348
|
if (!g) return;
|
|
@@ -1350,35 +1350,23 @@ const ns = ({
|
|
|
1350
1350
|
const A = c.current;
|
|
1351
1351
|
if (!A || !f.current) {
|
|
1352
1352
|
await g.load();
|
|
1353
|
-
const
|
|
1354
|
-
i(
|
|
1353
|
+
const v = g.plugins.getPlugin(Ue).getInstance().outputCss;
|
|
1354
|
+
i(v), f.current = !0, n == null || n(g);
|
|
1355
1355
|
return;
|
|
1356
1356
|
}
|
|
1357
|
-
const
|
|
1357
|
+
const M = ++o.current;
|
|
1358
1358
|
A.postMessage({
|
|
1359
|
-
id:
|
|
1359
|
+
id: M,
|
|
1360
1360
|
snapshot: yn(g),
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
tailwindOptions: {
|
|
1364
|
-
darkMode: v.darkMode,
|
|
1365
|
-
dynamicSelector: v.dynamicSelector,
|
|
1366
|
-
darkSelector: v.darkSelector,
|
|
1367
|
-
responsiveBreakPoints: v.responsiveBreakPoints,
|
|
1368
|
-
styleFilePath: v.styleFilePath,
|
|
1369
|
-
subThemes: v.subThemes
|
|
1370
|
-
},
|
|
1371
|
-
fontOptions: {
|
|
1372
|
-
fontFamily: N.fontFamily,
|
|
1373
|
-
fontStyles: N.fontStyles
|
|
1374
|
-
}
|
|
1361
|
+
tailwindOptions: g.plugins.getPlugin(Ue).toSerializable(),
|
|
1362
|
+
fontOptions: g.plugins.getPlugin(wt).toSerializable()
|
|
1375
1363
|
});
|
|
1376
1364
|
};
|
|
1377
1365
|
return _(() => () => {
|
|
1378
1366
|
m.current && (clearTimeout(m.current), m.current = null);
|
|
1379
1367
|
}, []), l ? /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: l } }) : null;
|
|
1380
1368
|
};
|
|
1381
|
-
function
|
|
1369
|
+
function Tn() {
|
|
1382
1370
|
if (typeof window > "u") return !1;
|
|
1383
1371
|
try {
|
|
1384
1372
|
if (window.CSS && typeof window.CSS.supports == "function")
|
|
@@ -1476,7 +1464,7 @@ function Nt(e = {}) {
|
|
|
1476
1464
|
if (Hn())
|
|
1477
1465
|
return () => {
|
|
1478
1466
|
};
|
|
1479
|
-
const r =
|
|
1467
|
+
const r = Tn(), s = /* @__PURE__ */ new WeakSet();
|
|
1480
1468
|
let a = typeof window < "u" && (window.pageYOffset || window.scrollY) || 0, l = !0;
|
|
1481
1469
|
const i = () => {
|
|
1482
1470
|
const h = window.pageYOffset || window.scrollY || 0;
|
|
@@ -1547,7 +1535,7 @@ function Nt(e = {}) {
|
|
|
1547
1535
|
d && d(), typeof window < "u" && window.removeEventListener("scroll", i), c.disconnect();
|
|
1548
1536
|
};
|
|
1549
1537
|
}
|
|
1550
|
-
const rs = Nt, ss = Nt,
|
|
1538
|
+
const rs = Nt, ss = Nt, We = ({
|
|
1551
1539
|
anchorRef: e,
|
|
1552
1540
|
position: t = "bottom",
|
|
1553
1541
|
children: n,
|
|
@@ -1753,16 +1741,16 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
1753
1741
|
), Un = ne(
|
|
1754
1742
|
"carouselItem",
|
|
1755
1743
|
Et
|
|
1756
|
-
),
|
|
1744
|
+
), It = () => ({
|
|
1757
1745
|
carousel: p(["w-full h-[400px]"]),
|
|
1758
1746
|
track: p("flex h-full w-full")
|
|
1759
1747
|
}), as = ie(
|
|
1760
1748
|
"carousel",
|
|
1761
|
-
|
|
1749
|
+
It
|
|
1762
1750
|
), qn = ne(
|
|
1763
1751
|
"carousel",
|
|
1764
|
-
|
|
1765
|
-
),
|
|
1752
|
+
It
|
|
1753
|
+
), Mt = ({
|
|
1766
1754
|
isChecked: e,
|
|
1767
1755
|
isIndeterminate: t,
|
|
1768
1756
|
isDisabled: n,
|
|
@@ -1808,10 +1796,10 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
1808
1796
|
stateLayer: "size-10 state-ripple-group-[checkbox] rounded-full cursor-pointer pointer-events-auto absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
1809
1797
|
}), cs = ie(
|
|
1810
1798
|
"checkbox",
|
|
1811
|
-
|
|
1799
|
+
Mt
|
|
1812
1800
|
), jn = ne(
|
|
1813
1801
|
"checkbox",
|
|
1814
|
-
|
|
1802
|
+
Mt
|
|
1815
1803
|
), Ct = ({
|
|
1816
1804
|
variant: e,
|
|
1817
1805
|
disabled: t,
|
|
@@ -1939,7 +1927,7 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
1939
1927
|
), Qn = ne(
|
|
1940
1928
|
"fabMenu",
|
|
1941
1929
|
At
|
|
1942
|
-
),
|
|
1930
|
+
), Wt = ({
|
|
1943
1931
|
variant: e,
|
|
1944
1932
|
disabled: t,
|
|
1945
1933
|
onToggle: n,
|
|
@@ -2073,11 +2061,11 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
2073
2061
|
)
|
|
2074
2062
|
}), ps = ie(
|
|
2075
2063
|
"iconButton",
|
|
2076
|
-
|
|
2064
|
+
Wt
|
|
2077
2065
|
), er = ne(
|
|
2078
2066
|
"iconButton",
|
|
2079
|
-
|
|
2080
|
-
),
|
|
2067
|
+
Wt
|
|
2068
|
+
), Ft = ({
|
|
2081
2069
|
variant: e,
|
|
2082
2070
|
hasGroups: t
|
|
2083
2071
|
}) => ({
|
|
@@ -2093,9 +2081,9 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
2093
2081
|
"bg-transparent ": t
|
|
2094
2082
|
}
|
|
2095
2083
|
)
|
|
2096
|
-
}), ys = ie("menu",
|
|
2084
|
+
}), ys = ie("menu", Ft), tr = ne(
|
|
2097
2085
|
"menu",
|
|
2098
|
-
|
|
2086
|
+
Ft
|
|
2099
2087
|
), Pt = ({
|
|
2100
2088
|
variant: e
|
|
2101
2089
|
}) => ({
|
|
@@ -2166,7 +2154,7 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
2166
2154
|
), rr = ne(
|
|
2167
2155
|
"progressIndicator",
|
|
2168
2156
|
Ot
|
|
2169
|
-
),
|
|
2157
|
+
), Bt = ({
|
|
2170
2158
|
variant: e,
|
|
2171
2159
|
position: t
|
|
2172
2160
|
}) => ({
|
|
@@ -2193,11 +2181,11 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
2193
2181
|
overlay: p("bg-[black]/[0.32] fixed top-0 left-0 w-screen h-screen")
|
|
2194
2182
|
}), sr = ie(
|
|
2195
2183
|
"sideSheet",
|
|
2196
|
-
|
|
2184
|
+
Bt
|
|
2197
2185
|
), ws = ne(
|
|
2198
2186
|
"sideSheet",
|
|
2199
|
-
|
|
2200
|
-
),
|
|
2187
|
+
Bt
|
|
2188
|
+
), Tt = ({
|
|
2201
2189
|
isChanging: e
|
|
2202
2190
|
}) => ({
|
|
2203
2191
|
slider: p([
|
|
@@ -2221,10 +2209,10 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
2221
2209
|
])
|
|
2222
2210
|
}), bs = ie(
|
|
2223
2211
|
"slider",
|
|
2224
|
-
|
|
2212
|
+
Tt
|
|
2225
2213
|
), or = ne(
|
|
2226
2214
|
"slider",
|
|
2227
|
-
|
|
2215
|
+
Tt
|
|
2228
2216
|
), Ht = () => ({
|
|
2229
2217
|
snackbar: p(" rounded bg-inverse-surface "),
|
|
2230
2218
|
container: p(
|
|
@@ -2466,7 +2454,7 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
2466
2454
|
r == "filled" && " pb-2 pt-6",
|
|
2467
2455
|
r == "outlined" && "py-4 relative z-10"
|
|
2468
2456
|
)
|
|
2469
|
-
}),
|
|
2457
|
+
}), Is = ie(
|
|
2470
2458
|
"textField",
|
|
2471
2459
|
Ut
|
|
2472
2460
|
), fr = ne(
|
|
@@ -2500,7 +2488,7 @@ const rs = Nt, ss = Nt, Fe = ({
|
|
|
2500
2488
|
subHead: p("text-title-small mb-1", t == "plain" && "hidden"),
|
|
2501
2489
|
supportingText: p(""),
|
|
2502
2490
|
content: p("w-full")
|
|
2503
|
-
}),
|
|
2491
|
+
}), Ms = ie(
|
|
2504
2492
|
"toolTip",
|
|
2505
2493
|
qt
|
|
2506
2494
|
), hr = ne(
|
|
@@ -2784,13 +2772,13 @@ const Le = ({
|
|
|
2784
2772
|
"Button component requires either a label prop or children content"
|
|
2785
2773
|
);
|
|
2786
2774
|
e = pr(e);
|
|
2787
|
-
const g = r ? "a" : "button", A = z(null),
|
|
2775
|
+
const g = r ? "a" : "button", A = z(null), M = h || A, [v, k] = Y.useState(f);
|
|
2788
2776
|
_(() => {
|
|
2789
|
-
|
|
2777
|
+
k(f);
|
|
2790
2778
|
}, [f]), w = { duration: 0.3, ...w };
|
|
2791
|
-
const
|
|
2792
|
-
t && L.preventDefault(), y ? (
|
|
2793
|
-
},
|
|
2779
|
+
const R = (L) => {
|
|
2780
|
+
t && L.preventDefault(), y ? (k(!v), y(!v)) : d && d(L);
|
|
2781
|
+
}, I = _n({
|
|
2794
2782
|
allowShapeTransformation: b,
|
|
2795
2783
|
size: m,
|
|
2796
2784
|
disableTextMargins: a,
|
|
@@ -2808,25 +2796,25 @@ const Le = ({
|
|
|
2808
2796
|
activated: v,
|
|
2809
2797
|
label: s,
|
|
2810
2798
|
children: s
|
|
2811
|
-
}), O = n ? /* @__PURE__ */ u(fe, { icon: n, className:
|
|
2799
|
+
}), O = n ? /* @__PURE__ */ u(fe, { icon: n, className: I.icon }) : /* @__PURE__ */ u(me, {});
|
|
2812
2800
|
return /* @__PURE__ */ j(
|
|
2813
2801
|
g,
|
|
2814
2802
|
{
|
|
2815
|
-
ref:
|
|
2803
|
+
ref: M,
|
|
2816
2804
|
href: r,
|
|
2817
|
-
className:
|
|
2805
|
+
className: I.button,
|
|
2818
2806
|
...S,
|
|
2819
|
-
onClick:
|
|
2807
|
+
onClick: R,
|
|
2820
2808
|
disabled: t,
|
|
2821
2809
|
"aria-pressed": y ? v : void 0,
|
|
2822
2810
|
style: { transition: w.duration + "s" },
|
|
2823
2811
|
children: [
|
|
2824
|
-
/* @__PURE__ */ u("div", { className:
|
|
2812
|
+
/* @__PURE__ */ u("div", { className: I.touchTarget }),
|
|
2825
2813
|
/* @__PURE__ */ u(
|
|
2826
2814
|
be,
|
|
2827
2815
|
{
|
|
2828
2816
|
style: { transition: w.duration + "s" },
|
|
2829
|
-
className:
|
|
2817
|
+
className: I.stateLayer,
|
|
2830
2818
|
colorName: p(
|
|
2831
2819
|
e === "filled" && {
|
|
2832
2820
|
"on-surface-variant": !v && !!y,
|
|
@@ -2887,7 +2875,7 @@ const Le = ({
|
|
|
2887
2875
|
)
|
|
2888
2876
|
}
|
|
2889
2877
|
),
|
|
2890
|
-
/* @__PURE__ */ u("span", { className:
|
|
2878
|
+
/* @__PURE__ */ u("span", { className: I.label, children: s }),
|
|
2891
2879
|
i === "right" && O
|
|
2892
2880
|
]
|
|
2893
2881
|
}
|
|
@@ -2982,73 +2970,73 @@ const Le = ({
|
|
|
2982
2970
|
scrollTotal: 0,
|
|
2983
2971
|
scrollVisible: 0,
|
|
2984
2972
|
scroll: 0
|
|
2985
|
-
}), g = z(0), A = z(null),
|
|
2986
|
-
|
|
2987
|
-
|
|
2973
|
+
}), g = z(0), A = z(null), M = z([]).current, [v, k] = X(0);
|
|
2974
|
+
M.length !== w.length && (M.length = 0, w.forEach(($, P) => {
|
|
2975
|
+
M[P] = Y.createRef();
|
|
2988
2976
|
}));
|
|
2989
|
-
const
|
|
2977
|
+
const R = he(() => {
|
|
2990
2978
|
if (!E.current || !m.current) return;
|
|
2991
2979
|
const $ = g.current, P = S.current.scrollVisible || m.current.clientWidth || 0;
|
|
2992
|
-
function Z(
|
|
2993
|
-
return
|
|
2994
|
-
const De = (ce - re) / Math.abs(
|
|
2980
|
+
function Z(T, re) {
|
|
2981
|
+
return T.map((ce, Se) => {
|
|
2982
|
+
const De = (ce - re) / Math.abs(T[1] - T[0]);
|
|
2995
2983
|
return { itemScrollXCenter: ce, relativeIndex: De, index: Se, width: 0 };
|
|
2996
2984
|
});
|
|
2997
2985
|
}
|
|
2998
|
-
const x = w.map((
|
|
2986
|
+
const x = w.map((T, re) => {
|
|
2999
2987
|
const ce = re / Math.max(1, w.length - 1);
|
|
3000
2988
|
return Ee(ce, [0, 1], [0, 1]);
|
|
3001
|
-
}),
|
|
2989
|
+
}), N = Z(
|
|
3002
2990
|
x,
|
|
3003
2991
|
$
|
|
3004
|
-
).sort((
|
|
2992
|
+
).sort((T, re) => T.index - re.index);
|
|
3005
2993
|
let C = P + i + l[0] + i, K = v;
|
|
3006
|
-
const G =
|
|
2994
|
+
const G = N.sort((T, re) => Math.abs(T.relativeIndex) - Math.abs(re.relativeIndex)).map((T, re) => {
|
|
3007
2995
|
if (!(C <= 0)) {
|
|
3008
|
-
if (re === 0 && (K =
|
|
2996
|
+
if (re === 0 && (K = T.index), T.width = Ee(
|
|
3009
2997
|
C - i,
|
|
3010
2998
|
[l[0], l[1]],
|
|
3011
2999
|
[l[0], l[1]]
|
|
3012
|
-
), C -=
|
|
3013
|
-
const ce =
|
|
3014
|
-
C +=
|
|
3015
|
-
} else if (C === 0 &&
|
|
3016
|
-
const ce =
|
|
3017
|
-
C +=
|
|
3000
|
+
), C -= T.width + i, C !== 0 && C < (l[0] + i) * 2) {
|
|
3001
|
+
const ce = T.width - ((l[0] + i) * 2 - C);
|
|
3002
|
+
C += T.width, T.width = ce, C -= T.width;
|
|
3003
|
+
} else if (C === 0 && T.width >= l[0] * 2 + i) {
|
|
3004
|
+
const ce = T.width - (l[0] + i - C);
|
|
3005
|
+
C += T.width, T.width = ce, C -= T.width;
|
|
3018
3006
|
}
|
|
3019
|
-
return
|
|
3007
|
+
return T;
|
|
3020
3008
|
}
|
|
3021
|
-
}).filter(Boolean), ee = [...G].reverse(), oe = [...G].sort((
|
|
3022
|
-
ee.forEach((
|
|
3009
|
+
}).filter(Boolean), ee = [...G].reverse(), oe = [...G].sort((T, re) => Math.abs(T.index) - Math.abs(re.index));
|
|
3010
|
+
ee.forEach((T, re) => {
|
|
3023
3011
|
const ce = ee[re + 1];
|
|
3024
3012
|
if (!ce) return;
|
|
3025
|
-
const Se = 1 - (Math.abs(
|
|
3026
|
-
C +=
|
|
3013
|
+
const Se = 1 - (Math.abs(T.relativeIndex) - Math.abs(ce.relativeIndex)), De = Ee(Se, [0, 2], [T.width + C, ce.width]);
|
|
3014
|
+
C += T.width, T.width = De, C -= T.width;
|
|
3027
3015
|
});
|
|
3028
|
-
const le = G.length / 2,
|
|
3016
|
+
const le = G.length / 2, W = Ee(
|
|
3029
3017
|
Math.abs(oe[0].relativeIndex),
|
|
3030
3018
|
[oe[0].index === 0 ? 0 : le - 1, le],
|
|
3031
3019
|
[0, 1]
|
|
3032
|
-
), q = Ee(
|
|
3033
|
-
|
|
3034
|
-
if (
|
|
3020
|
+
), q = Ee(W, [0, 1], [0, 1]) * -(l[0] + i);
|
|
3021
|
+
M.forEach((T, re) => {
|
|
3022
|
+
if (T.current) {
|
|
3035
3023
|
const ce = G.find((Se) => Se.index === re);
|
|
3036
|
-
ce ? (
|
|
3024
|
+
ce ? (T.current.style.setProperty("--carousel-item-width", `${ce.width}px`), T.current.style.display = "block") : (T.current.style.setProperty("--carousel-item-width", `${l[0]}px`), T.current.style.display = "none");
|
|
3037
3025
|
}
|
|
3038
|
-
}), E.current.style.transform = `translateX(${q}px)`, K !== v &&
|
|
3026
|
+
}), E.current.style.transform = `translateX(${q}px)`, K !== v && k(K);
|
|
3039
3027
|
}, [w.length, l, i, v]);
|
|
3040
3028
|
Ae(() => {
|
|
3041
|
-
|
|
3042
|
-
}, [
|
|
3029
|
+
R();
|
|
3030
|
+
}, [R, w.length]), _(() => {
|
|
3043
3031
|
c && c(v);
|
|
3044
3032
|
}, [v, c]);
|
|
3045
|
-
const [
|
|
3033
|
+
const [I, O] = X(0);
|
|
3046
3034
|
_(() => {
|
|
3047
3035
|
O(v);
|
|
3048
3036
|
}, [v]);
|
|
3049
3037
|
const L = ($, P = {}) => {
|
|
3050
3038
|
if (!w.length) return 0;
|
|
3051
|
-
const Z =
|
|
3039
|
+
const Z = M[$];
|
|
3052
3040
|
if (!Z || !Z.current || !E.current) return 0;
|
|
3053
3041
|
const x = Ee(
|
|
3054
3042
|
$ / Math.max(1, w.length - 1),
|
|
@@ -3080,9 +3068,9 @@ const Le = ({
|
|
|
3080
3068
|
damping: 32,
|
|
3081
3069
|
mass: 0.6,
|
|
3082
3070
|
restDelta: 5e-4,
|
|
3083
|
-
onUpdate: (
|
|
3084
|
-
g.current =
|
|
3085
|
-
|
|
3071
|
+
onUpdate: (N) => {
|
|
3072
|
+
g.current = N, requestAnimationFrame(() => {
|
|
3073
|
+
R();
|
|
3086
3074
|
});
|
|
3087
3075
|
}
|
|
3088
3076
|
});
|
|
@@ -3095,7 +3083,7 @@ const Le = ({
|
|
|
3095
3083
|
_(() => {
|
|
3096
3084
|
const $ = V.current;
|
|
3097
3085
|
if (!$ || !(m != null && m.current) || w.length <= 0) return;
|
|
3098
|
-
const P = w.length, Z = m.current.clientWidth || 0, x = l[1],
|
|
3086
|
+
const P = w.length, Z = m.current.clientWidth || 0, x = l[1], N = g.current, C = (Z + i) / (x + i), K = Math.max(1, Math.floor(C)), G = Math.max(1, Math.round(K * (2 / 3))), ee = Math.min(Math.max(0, v), Math.max(0, P - 1)), oe = {
|
|
3099
3087
|
total: P,
|
|
3100
3088
|
selectedIndex: ee,
|
|
3101
3089
|
visibleApprox: C,
|
|
@@ -3103,35 +3091,35 @@ const Le = ({
|
|
|
3103
3091
|
stepHalf: G,
|
|
3104
3092
|
canPrev: ee > 0,
|
|
3105
3093
|
canNext: ee < P - 1,
|
|
3106
|
-
scrollProgress:
|
|
3094
|
+
scrollProgress: N,
|
|
3107
3095
|
viewportWidth: Z,
|
|
3108
3096
|
itemMaxWidth: x,
|
|
3109
3097
|
gap: i
|
|
3110
3098
|
}, le = te.current;
|
|
3111
|
-
let
|
|
3112
|
-
if (!
|
|
3099
|
+
let W = !le;
|
|
3100
|
+
if (!W) {
|
|
3113
3101
|
for (const q in oe)
|
|
3114
3102
|
if (oe[q] !== le[q]) {
|
|
3115
|
-
|
|
3103
|
+
W = !0;
|
|
3116
3104
|
break;
|
|
3117
3105
|
}
|
|
3118
3106
|
}
|
|
3119
|
-
|
|
3107
|
+
W && (te.current = oe, $(oe));
|
|
3120
3108
|
}, [m, w.length, v, i, l]), _(() => () => {
|
|
3121
3109
|
var $;
|
|
3122
3110
|
($ = A.current) == null || $.stop();
|
|
3123
3111
|
}, []);
|
|
3124
|
-
const [U,
|
|
3112
|
+
const [U, F] = X(0);
|
|
3125
3113
|
Ae(() => {
|
|
3126
3114
|
let $ = l[1];
|
|
3127
3115
|
const P = S.current;
|
|
3128
3116
|
P && $ > P.scrollVisible && P.scrollVisible > 0 && ($ = P.scrollVisible);
|
|
3129
3117
|
const Z = ($ + i) * w.length / y;
|
|
3130
|
-
|
|
3118
|
+
F(Z || 400);
|
|
3131
3119
|
}, [m, w.length, i, l, y]);
|
|
3132
|
-
const
|
|
3120
|
+
const D = ($) => {
|
|
3133
3121
|
if (!w.length) return;
|
|
3134
|
-
const P =
|
|
3122
|
+
const P = I ?? v;
|
|
3135
3123
|
switch ($.key) {
|
|
3136
3124
|
case "ArrowLeft":
|
|
3137
3125
|
$.preventDefault(), L(Math.max(0, P - 1));
|
|
@@ -3162,16 +3150,16 @@ const Le = ({
|
|
|
3162
3150
|
$.removeEventListener("udx:carousel:centerIndex", P);
|
|
3163
3151
|
};
|
|
3164
3152
|
}, [m, w.length]);
|
|
3165
|
-
const
|
|
3166
|
-
var
|
|
3167
|
-
const Z = (
|
|
3153
|
+
const B = w.map(($, P) => {
|
|
3154
|
+
var N;
|
|
3155
|
+
const Z = (N = $.props) == null ? void 0 : N.onClick, x = (C) => {
|
|
3168
3156
|
Z == null || Z(C);
|
|
3169
3157
|
};
|
|
3170
3158
|
return Y.cloneElement(
|
|
3171
3159
|
$,
|
|
3172
3160
|
{
|
|
3173
3161
|
outputRange: l,
|
|
3174
|
-
ref:
|
|
3162
|
+
ref: M[P],
|
|
3175
3163
|
key: P,
|
|
3176
3164
|
index: P,
|
|
3177
3165
|
role: "option",
|
|
@@ -3190,7 +3178,7 @@ const Le = ({
|
|
|
3190
3178
|
ref: m,
|
|
3191
3179
|
role: "listbox",
|
|
3192
3180
|
"aria-orientation": "horizontal",
|
|
3193
|
-
onKeyDown:
|
|
3181
|
+
onKeyDown: D,
|
|
3194
3182
|
...f,
|
|
3195
3183
|
children: /* @__PURE__ */ u(
|
|
3196
3184
|
Ln,
|
|
@@ -3208,7 +3196,7 @@ const Le = ({
|
|
|
3208
3196
|
gap: `${i}px`,
|
|
3209
3197
|
willChange: "transform"
|
|
3210
3198
|
},
|
|
3211
|
-
children:
|
|
3199
|
+
children: B
|
|
3212
3200
|
}
|
|
3213
3201
|
)
|
|
3214
3202
|
}
|
|
@@ -3245,11 +3233,11 @@ var vr = {
|
|
|
3245
3233
|
prefix: "fas",
|
|
3246
3234
|
iconName: "check",
|
|
3247
3235
|
icon: [448, 512, [10003, 10004], "f00c", "M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]
|
|
3248
|
-
},
|
|
3236
|
+
}, Fe = {
|
|
3249
3237
|
prefix: "fas",
|
|
3250
3238
|
iconName: "xmark",
|
|
3251
3239
|
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
|
|
3252
|
-
}, xr =
|
|
3240
|
+
}, xr = Fe, Kt = {
|
|
3253
3241
|
prefix: "fas",
|
|
3254
3242
|
iconName: "chevron-down",
|
|
3255
3243
|
icon: [448, 512, [], "f078", "M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]
|
|
@@ -3282,8 +3270,8 @@ const Rs = ({
|
|
|
3282
3270
|
_(() => {
|
|
3283
3271
|
A.current && (A.current.indeterminate = n);
|
|
3284
3272
|
}, [n]);
|
|
3285
|
-
const
|
|
3286
|
-
r || (m || w(
|
|
3273
|
+
const M = (k) => {
|
|
3274
|
+
r || (m || w(k.target.checked), a && a(k));
|
|
3287
3275
|
}, v = jn({
|
|
3288
3276
|
isChecked: !!E,
|
|
3289
3277
|
isIndeterminate: n,
|
|
@@ -3314,7 +3302,7 @@ const Rs = ({
|
|
|
3314
3302
|
value: c,
|
|
3315
3303
|
checked: E,
|
|
3316
3304
|
disabled: r,
|
|
3317
|
-
onChange:
|
|
3305
|
+
onChange: M,
|
|
3318
3306
|
onFocus: () => g(!0),
|
|
3319
3307
|
onBlur: () => g(!1),
|
|
3320
3308
|
className: v.input,
|
|
@@ -3370,40 +3358,40 @@ const Rs = ({
|
|
|
3370
3358
|
throw new Error(
|
|
3371
3359
|
"Chip component requires either a label prop or children content"
|
|
3372
3360
|
);
|
|
3373
|
-
const A = r ? "a" : "button",
|
|
3361
|
+
const A = r ? "a" : "button", M = z(null), v = o || M, [k, R] = Y.useState(c), [I, O] = Y.useState(!1), [L, J] = X(S && y), [V, te] = Y.useState(!1), [U, F] = Y.useState(
|
|
3374
3362
|
typeof s == "string" ? s : ""
|
|
3375
|
-
),
|
|
3363
|
+
), D = Y.useRef(null);
|
|
3376
3364
|
_(() => {
|
|
3377
|
-
|
|
3365
|
+
R(c);
|
|
3378
3366
|
}, [c]), _(() => {
|
|
3379
|
-
if (S && J(S), y &&
|
|
3380
|
-
const
|
|
3367
|
+
if (S && J(S), y && I) {
|
|
3368
|
+
const W = setTimeout(() => {
|
|
3381
3369
|
g != null && g.draggable && V || J(!0);
|
|
3382
3370
|
}, 1e3);
|
|
3383
|
-
return () => clearTimeout(
|
|
3384
|
-
} else
|
|
3385
|
-
}, [
|
|
3371
|
+
return () => clearTimeout(W);
|
|
3372
|
+
} else I || J(!1);
|
|
3373
|
+
}, [I, y, V, g, U]), _(() => {
|
|
3386
3374
|
if (L) {
|
|
3387
|
-
|
|
3388
|
-
const
|
|
3389
|
-
if (
|
|
3390
|
-
|
|
3375
|
+
F(typeof s == "string" ? s : "");
|
|
3376
|
+
const W = oe.current || D.current;
|
|
3377
|
+
if (W) {
|
|
3378
|
+
W.focus();
|
|
3391
3379
|
const q = document.createRange();
|
|
3392
|
-
q.selectNodeContents(
|
|
3393
|
-
const
|
|
3394
|
-
|
|
3380
|
+
q.selectNodeContents(W), q.collapse(!1);
|
|
3381
|
+
const T = window.getSelection();
|
|
3382
|
+
T == null || T.removeAllRanges(), T == null || T.addRange(q);
|
|
3395
3383
|
}
|
|
3396
3384
|
}
|
|
3397
3385
|
}, [L]), w = { duration: 0.3, ...w };
|
|
3398
|
-
const
|
|
3399
|
-
t &&
|
|
3386
|
+
const B = (W) => {
|
|
3387
|
+
t && W.preventDefault(), i ? (R(!k), i(!k)) : l && l(W);
|
|
3400
3388
|
}, $ = !!i || !!d || !!l || !!r || !!y;
|
|
3401
3389
|
c && (n = Ze);
|
|
3402
3390
|
const {
|
|
3403
3391
|
onFocus: P,
|
|
3404
3392
|
onBlur: Z,
|
|
3405
3393
|
onKeyDown: x,
|
|
3406
|
-
onDragStart:
|
|
3394
|
+
onDragStart: N,
|
|
3407
3395
|
onDragEnd: C,
|
|
3408
3396
|
onDoubleClick: K,
|
|
3409
3397
|
...G
|
|
@@ -3414,23 +3402,23 @@ const Rs = ({
|
|
|
3414
3402
|
variant: e,
|
|
3415
3403
|
transition: w,
|
|
3416
3404
|
className: a,
|
|
3417
|
-
isActive:
|
|
3405
|
+
isActive: k ?? !1,
|
|
3418
3406
|
onToggle: i,
|
|
3419
|
-
activated:
|
|
3407
|
+
activated: k,
|
|
3420
3408
|
label: s,
|
|
3421
3409
|
isInteractive: $,
|
|
3422
3410
|
children: s,
|
|
3423
|
-
isFocused:
|
|
3411
|
+
isFocused: I,
|
|
3424
3412
|
isDragging: V,
|
|
3425
3413
|
onEditCommit: h,
|
|
3426
3414
|
isEditing: L
|
|
3427
3415
|
}), oe = z(null), le = () => {
|
|
3428
|
-
const
|
|
3429
|
-
if (!
|
|
3416
|
+
const W = (U ?? "").trim();
|
|
3417
|
+
if (!W) {
|
|
3430
3418
|
d && d();
|
|
3431
3419
|
return;
|
|
3432
3420
|
}
|
|
3433
|
-
h == null || h(
|
|
3421
|
+
h == null || h(W);
|
|
3434
3422
|
};
|
|
3435
3423
|
return /* @__PURE__ */ j(
|
|
3436
3424
|
A,
|
|
@@ -3440,47 +3428,47 @@ const Rs = ({
|
|
|
3440
3428
|
href: r,
|
|
3441
3429
|
className: ee.chip,
|
|
3442
3430
|
...G,
|
|
3443
|
-
onClick: (
|
|
3444
|
-
L ||
|
|
3431
|
+
onClick: (W) => {
|
|
3432
|
+
L || B(W);
|
|
3445
3433
|
},
|
|
3446
3434
|
draggable: !t && !!(g != null && g.draggable),
|
|
3447
|
-
onDragStart: (
|
|
3448
|
-
!t && (g != null && g.draggable) && te(!0),
|
|
3435
|
+
onDragStart: (W) => {
|
|
3436
|
+
!t && (g != null && g.draggable) && te(!0), N == null || N(W);
|
|
3449
3437
|
},
|
|
3450
|
-
onDragEnd: (
|
|
3451
|
-
g != null && g.draggable && te(!1), C == null || C(
|
|
3438
|
+
onDragEnd: (W) => {
|
|
3439
|
+
g != null && g.draggable && te(!1), C == null || C(W);
|
|
3452
3440
|
},
|
|
3453
|
-
onDoubleClick: (
|
|
3454
|
-
!t && y && !L && (f == null || f(),
|
|
3441
|
+
onDoubleClick: (W) => {
|
|
3442
|
+
!t && y && !L && (f == null || f(), W.preventDefault(), W.stopPropagation()), K == null || K(W);
|
|
3455
3443
|
},
|
|
3456
|
-
onFocus: (
|
|
3457
|
-
$ && O(!0), P == null || P(
|
|
3444
|
+
onFocus: (W) => {
|
|
3445
|
+
$ && O(!0), P == null || P(W);
|
|
3458
3446
|
},
|
|
3459
|
-
onBlur: (
|
|
3460
|
-
O(!1), Z == null || Z(
|
|
3447
|
+
onBlur: (W) => {
|
|
3448
|
+
O(!1), Z == null || Z(W);
|
|
3461
3449
|
},
|
|
3462
|
-
onKeyDown: (
|
|
3463
|
-
const q =
|
|
3450
|
+
onKeyDown: (W) => {
|
|
3451
|
+
const q = W.key;
|
|
3464
3452
|
if (!t && L) {
|
|
3465
|
-
q === "Enter" ? (
|
|
3453
|
+
q === "Enter" ? (W.preventDefault(), le()) : q === "Escape" ? (W.preventDefault(), m == null || m()) : d && (U == null ? void 0 : U.trim()) === "" && (q === "Backspace" || q === "Delete" || q === "Del") && (W.preventDefault(), W.stopPropagation(), d());
|
|
3466
3454
|
return;
|
|
3467
3455
|
}
|
|
3468
|
-
if (!t &&
|
|
3456
|
+
if (!t && I) {
|
|
3469
3457
|
if (y && !i && (q === "F2" || q === "Enter")) {
|
|
3470
|
-
|
|
3458
|
+
W.preventDefault(), f == null || f();
|
|
3471
3459
|
return;
|
|
3472
3460
|
}
|
|
3473
3461
|
if (i && (q === "Enter" || q === " " || q === "Spacebar")) {
|
|
3474
|
-
|
|
3475
|
-
const
|
|
3476
|
-
|
|
3462
|
+
W.preventDefault();
|
|
3463
|
+
const T = !k;
|
|
3464
|
+
R(T), i(T);
|
|
3477
3465
|
}
|
|
3478
|
-
d && (q === "Backspace" || q === "Delete" || q === "Del") && (
|
|
3466
|
+
d && (q === "Backspace" || q === "Delete" || q === "Del") && (W.preventDefault(), W.stopPropagation(), d());
|
|
3479
3467
|
}
|
|
3480
|
-
x == null || x(
|
|
3468
|
+
x == null || x(W);
|
|
3481
3469
|
},
|
|
3482
3470
|
disabled: t,
|
|
3483
|
-
"aria-pressed": i ?
|
|
3471
|
+
"aria-pressed": i ? k : void 0,
|
|
3484
3472
|
style: { transition: w.duration + "s" },
|
|
3485
3473
|
children: [
|
|
3486
3474
|
$ && !t && !L && /* @__PURE__ */ u(
|
|
@@ -3489,8 +3477,8 @@ const Rs = ({
|
|
|
3489
3477
|
style: { transition: w.duration + "s" },
|
|
3490
3478
|
className: ee.stateLayer,
|
|
3491
3479
|
colorName: p({
|
|
3492
|
-
"on-surface-variant": !
|
|
3493
|
-
"on-secondary-container":
|
|
3480
|
+
"on-surface-variant": !k,
|
|
3481
|
+
"on-secondary-container": k
|
|
3494
3482
|
}),
|
|
3495
3483
|
stateClassName: "state-ripple-group-[chip]"
|
|
3496
3484
|
}
|
|
@@ -3505,19 +3493,19 @@ const Rs = ({
|
|
|
3505
3493
|
className: ee.label,
|
|
3506
3494
|
role: y ? "textbox" : void 0,
|
|
3507
3495
|
spellCheck: !1,
|
|
3508
|
-
onInput: (
|
|
3509
|
-
const q =
|
|
3510
|
-
|
|
3496
|
+
onInput: (W) => {
|
|
3497
|
+
const q = W.currentTarget.innerText;
|
|
3498
|
+
F(q), b == null || b(q);
|
|
3511
3499
|
},
|
|
3512
|
-
onBlur: (
|
|
3500
|
+
onBlur: (W) => {
|
|
3513
3501
|
y && L && le();
|
|
3514
3502
|
},
|
|
3515
|
-
onKeyDown: (
|
|
3516
|
-
if (y && L &&
|
|
3517
|
-
|
|
3503
|
+
onKeyDown: (W) => {
|
|
3504
|
+
if (y && L && W.key === "Enter") {
|
|
3505
|
+
W.preventDefault(), W.stopPropagation(), le();
|
|
3518
3506
|
return;
|
|
3519
3507
|
}
|
|
3520
|
-
y && L &&
|
|
3508
|
+
y && L && W.key === "Escape" && (W.preventDefault(), W.stopPropagation(), m == null || m());
|
|
3521
3509
|
},
|
|
3522
3510
|
children: s
|
|
3523
3511
|
}
|
|
@@ -3525,13 +3513,13 @@ const Rs = ({
|
|
|
3525
3513
|
d && !L && /* @__PURE__ */ u(
|
|
3526
3514
|
fe,
|
|
3527
3515
|
{
|
|
3528
|
-
icon:
|
|
3516
|
+
icon: Fe,
|
|
3529
3517
|
className: ee.trailingIcon,
|
|
3530
|
-
onMouseDown: (
|
|
3531
|
-
|
|
3518
|
+
onMouseDown: (W) => {
|
|
3519
|
+
W.preventDefault(), W.stopPropagation();
|
|
3532
3520
|
},
|
|
3533
|
-
onClick: (
|
|
3534
|
-
|
|
3521
|
+
onClick: (W) => {
|
|
3522
|
+
W.stopPropagation(), t || d();
|
|
3535
3523
|
}
|
|
3536
3524
|
}
|
|
3537
3525
|
)
|
|
@@ -3593,7 +3581,7 @@ const Rs = ({
|
|
|
3593
3581
|
_(() => {
|
|
3594
3582
|
S(o);
|
|
3595
3583
|
}, [o]);
|
|
3596
|
-
const
|
|
3584
|
+
const M = Lr({
|
|
3597
3585
|
variant: a,
|
|
3598
3586
|
disabled: s,
|
|
3599
3587
|
className: d,
|
|
@@ -3609,9 +3597,9 @@ const Rs = ({
|
|
|
3609
3597
|
return;
|
|
3610
3598
|
}
|
|
3611
3599
|
c ? (S(!E), c(!E)) : (console.log("click", i), i == null || i(L));
|
|
3612
|
-
},
|
|
3600
|
+
}, k = () => {
|
|
3613
3601
|
A.current && (clearTimeout(A.current), A.current = null), !s && f && w(!0);
|
|
3614
|
-
},
|
|
3602
|
+
}, R = () => {
|
|
3615
3603
|
f && (A.current = setTimeout(() => {
|
|
3616
3604
|
w(!1);
|
|
3617
3605
|
}, 150));
|
|
@@ -3619,16 +3607,16 @@ const Rs = ({
|
|
|
3619
3607
|
Y.useEffect(() => () => {
|
|
3620
3608
|
A.current && clearTimeout(A.current);
|
|
3621
3609
|
}, []);
|
|
3622
|
-
const
|
|
3610
|
+
const I = r ?? (f ? jt : void 0);
|
|
3623
3611
|
return /* @__PURE__ */ j(
|
|
3624
3612
|
l ? "a" : "button",
|
|
3625
3613
|
{
|
|
3626
3614
|
ref: g,
|
|
3627
3615
|
href: l,
|
|
3628
|
-
className:
|
|
3616
|
+
className: M.menuItem,
|
|
3629
3617
|
onClick: v,
|
|
3630
|
-
onMouseEnter:
|
|
3631
|
-
onMouseLeave:
|
|
3618
|
+
onMouseEnter: k,
|
|
3619
|
+
onMouseLeave: R,
|
|
3632
3620
|
role: "option",
|
|
3633
3621
|
"aria-haspopup": !!f,
|
|
3634
3622
|
"aria-expanded": b,
|
|
@@ -3655,38 +3643,38 @@ const Rs = ({
|
|
|
3655
3643
|
"div",
|
|
3656
3644
|
{
|
|
3657
3645
|
className: p(
|
|
3658
|
-
|
|
3659
|
-
|
|
3646
|
+
M.itemIcon,
|
|
3647
|
+
M.leadingIcon,
|
|
3660
3648
|
"z-10 relative"
|
|
3661
3649
|
),
|
|
3662
3650
|
children: Y.isValidElement(n) ? n : /* @__PURE__ */ u(fe, { icon: n })
|
|
3663
3651
|
}
|
|
3664
3652
|
),
|
|
3665
|
-
/* @__PURE__ */ u("span", { className: p(
|
|
3666
|
-
|
|
3653
|
+
/* @__PURE__ */ u("span", { className: p(M.itemLabel, "z-10 relative"), children: m }),
|
|
3654
|
+
I && /* @__PURE__ */ u(
|
|
3667
3655
|
"div",
|
|
3668
3656
|
{
|
|
3669
3657
|
className: p(
|
|
3670
|
-
|
|
3671
|
-
|
|
3658
|
+
M.itemIcon,
|
|
3659
|
+
M.trailingIcon,
|
|
3672
3660
|
"z-10 relative"
|
|
3673
3661
|
),
|
|
3674
|
-
children: Y.isValidElement(
|
|
3662
|
+
children: Y.isValidElement(I) ? I : /* @__PURE__ */ u(fe, { icon: I })
|
|
3675
3663
|
}
|
|
3676
3664
|
),
|
|
3677
3665
|
f && b && /* @__PURE__ */ u(
|
|
3678
|
-
|
|
3666
|
+
We,
|
|
3679
3667
|
{
|
|
3680
3668
|
anchorRef: g,
|
|
3681
3669
|
position: "inline-end span-block-end",
|
|
3682
3670
|
hoverOpen: !0,
|
|
3683
|
-
children: /* @__PURE__ */ u("div", { onMouseEnter:
|
|
3671
|
+
children: /* @__PURE__ */ u("div", { onMouseEnter: k, onMouseLeave: R, children: f })
|
|
3684
3672
|
}
|
|
3685
3673
|
)
|
|
3686
3674
|
]
|
|
3687
3675
|
}
|
|
3688
3676
|
);
|
|
3689
|
-
},
|
|
3677
|
+
}, Te = ({
|
|
3690
3678
|
orientation: e = "horizontal",
|
|
3691
3679
|
className: t,
|
|
3692
3680
|
...n
|
|
@@ -3698,8 +3686,8 @@ const Rs = ({
|
|
|
3698
3686
|
"text-on-surface-variant": !(e != null && e.variant) || e.variant === "standard"
|
|
3699
3687
|
// Vibrant treatment if different
|
|
3700
3688
|
})
|
|
3701
|
-
}),
|
|
3702
|
-
const a =
|
|
3689
|
+
}), Ir = ne("menu-headline", Er), Gt = ({ label: e, children: t, variant: n, className: r, ...s }) => {
|
|
3690
|
+
const a = Ir({ variant: n, className: r });
|
|
3703
3691
|
return /* @__PURE__ */ u("div", { className: a.headline, role: "group", "aria-label": e, ...s, children: t ?? e });
|
|
3704
3692
|
}, pt = ({
|
|
3705
3693
|
children: e,
|
|
@@ -3746,7 +3734,7 @@ const Rs = ({
|
|
|
3746
3734
|
variant: o.props.variant ?? n
|
|
3747
3735
|
}) : o.type === Gt ? Y.cloneElement(o, {
|
|
3748
3736
|
variant: n
|
|
3749
|
-
}) : o.type ===
|
|
3737
|
+
}) : o.type === Te ? Y.cloneElement(o, {
|
|
3750
3738
|
className: p("my-1", o.props.className)
|
|
3751
3739
|
}) : o;
|
|
3752
3740
|
});
|
|
@@ -3803,7 +3791,7 @@ const Rs = ({
|
|
|
3803
3791
|
}
|
|
3804
3792
|
),
|
|
3805
3793
|
r && /* @__PURE__ */ u(
|
|
3806
|
-
|
|
3794
|
+
We,
|
|
3807
3795
|
{
|
|
3808
3796
|
anchorRef: a,
|
|
3809
3797
|
position: "bottom right",
|
|
@@ -3815,7 +3803,7 @@ const Rs = ({
|
|
|
3815
3803
|
}, ue = [];
|
|
3816
3804
|
for (let e = 0; e < 256; ++e)
|
|
3817
3805
|
ue.push((e + 256).toString(16).slice(1));
|
|
3818
|
-
function
|
|
3806
|
+
function Mr(e, t = 0) {
|
|
3819
3807
|
return (ue[e[t + 0]] + ue[e[t + 1]] + ue[e[t + 2]] + ue[e[t + 3]] + "-" + ue[e[t + 4]] + ue[e[t + 5]] + "-" + ue[e[t + 6]] + ue[e[t + 7]] + "-" + ue[e[t + 8]] + ue[e[t + 9]] + "-" + ue[e[t + 10]] + ue[e[t + 11]] + ue[e[t + 12]] + ue[e[t + 13]] + ue[e[t + 14]] + ue[e[t + 15]]).toLowerCase();
|
|
3820
3808
|
}
|
|
3821
3809
|
let Xe;
|
|
@@ -3837,7 +3825,7 @@ function Zt(e, t, n) {
|
|
|
3837
3825
|
const r = e.random ?? ((s = e.rng) == null ? void 0 : s.call(e)) ?? Dr();
|
|
3838
3826
|
if (r.length < 16)
|
|
3839
3827
|
throw new Error("Random bytes length must be >= 16");
|
|
3840
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
3828
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Mr(r);
|
|
3841
3829
|
}
|
|
3842
3830
|
const As = ({
|
|
3843
3831
|
variant: e = "input",
|
|
@@ -3848,13 +3836,13 @@ const As = ({
|
|
|
3848
3836
|
onItemsChange: a
|
|
3849
3837
|
}) => {
|
|
3850
3838
|
const l = s ?? [], i = Y.useRef(null), [c, o] = Y.useState(!1), d = Y.useRef(/* @__PURE__ */ new WeakMap()), y = Y.useCallback((v) => {
|
|
3851
|
-
const
|
|
3852
|
-
let
|
|
3853
|
-
return
|
|
3839
|
+
const k = d.current;
|
|
3840
|
+
let R = k.get(v);
|
|
3841
|
+
return R || (R = Zt(), k.set(v, R)), R;
|
|
3854
3842
|
}, []);
|
|
3855
3843
|
Y.useEffect(() => {
|
|
3856
|
-
var v,
|
|
3857
|
-
c && (e == "input" ? (v = A.current) == null || v.focus() : (
|
|
3844
|
+
var v, k;
|
|
3845
|
+
c && (e == "input" ? (v = A.current) == null || v.focus() : (k = i.current) == null || k.focus());
|
|
3858
3846
|
}, [c]);
|
|
3859
3847
|
const f = Y.useRef([]), h = Y.useRef(!1), m = Y.useCallback(
|
|
3860
3848
|
(v) => {
|
|
@@ -3863,7 +3851,7 @@ const As = ({
|
|
|
3863
3851
|
[a, l]
|
|
3864
3852
|
), b = Y.useCallback(
|
|
3865
3853
|
(v) => {
|
|
3866
|
-
m((
|
|
3854
|
+
m((k) => k.filter((R, I) => I !== v));
|
|
3867
3855
|
},
|
|
3868
3856
|
[m]
|
|
3869
3857
|
), w = Gn({
|
|
@@ -3874,11 +3862,11 @@ const As = ({
|
|
|
3874
3862
|
(v = "") => {
|
|
3875
3863
|
if (e !== "input" || h.current) return;
|
|
3876
3864
|
h.current = !0;
|
|
3877
|
-
const
|
|
3865
|
+
const k = {
|
|
3878
3866
|
label: v
|
|
3879
|
-
},
|
|
3880
|
-
a == null || a(
|
|
3881
|
-
g(
|
|
3867
|
+
}, R = y(k), I = [...l, k];
|
|
3868
|
+
a == null || a(I), requestAnimationFrame(() => {
|
|
3869
|
+
g(R), h.current = !1;
|
|
3882
3870
|
});
|
|
3883
3871
|
},
|
|
3884
3872
|
[e, a, l, y]
|
|
@@ -3886,18 +3874,18 @@ const As = ({
|
|
|
3886
3874
|
_(() => {
|
|
3887
3875
|
var v;
|
|
3888
3876
|
if (S) {
|
|
3889
|
-
const
|
|
3890
|
-
(
|
|
3877
|
+
const k = l.findIndex(
|
|
3878
|
+
(R) => y(R) === S
|
|
3891
3879
|
);
|
|
3892
|
-
if (
|
|
3893
|
-
const
|
|
3894
|
-
(v =
|
|
3895
|
-
const
|
|
3896
|
-
|
|
3880
|
+
if (k !== -1) {
|
|
3881
|
+
const R = f.current[k];
|
|
3882
|
+
(v = R == null ? void 0 : R.focus) == null || v.call(R);
|
|
3883
|
+
const I = i.current, O = R.offsetLeft + R.offsetWidth / 2 - I.offsetWidth / 2;
|
|
3884
|
+
I.scrollTo({ left: O, behavior: "smooth" });
|
|
3897
3885
|
}
|
|
3898
3886
|
}
|
|
3899
3887
|
}, [S, l, y]);
|
|
3900
|
-
const A = z(null),
|
|
3888
|
+
const A = z(null), M = (c || l.length === 0) && e === "input";
|
|
3901
3889
|
return /* @__PURE__ */ j(
|
|
3902
3890
|
"div",
|
|
3903
3891
|
{
|
|
@@ -3915,36 +3903,36 @@ const As = ({
|
|
|
3915
3903
|
onKeyDown: (v) => {
|
|
3916
3904
|
var J;
|
|
3917
3905
|
if (e !== "input") return;
|
|
3918
|
-
const
|
|
3906
|
+
const k = v.key, I = v.target === v.currentTarget;
|
|
3919
3907
|
if (!c) return;
|
|
3920
3908
|
const O = document.activeElement, L = f.current.findIndex(
|
|
3921
3909
|
(V) => V === O
|
|
3922
3910
|
);
|
|
3923
|
-
if (
|
|
3911
|
+
if (k === "ArrowLeft") {
|
|
3924
3912
|
v.preventDefault();
|
|
3925
3913
|
const V = L > 0 ? L - 1 : l.length - 1, te = y(l[V]);
|
|
3926
3914
|
g(te);
|
|
3927
3915
|
return;
|
|
3928
3916
|
}
|
|
3929
|
-
if (
|
|
3917
|
+
if (k === "ArrowRight") {
|
|
3930
3918
|
v.preventDefault();
|
|
3931
3919
|
const V = L >= 0 ? (L + 1) % Math.max(1, l.length) : 0, te = y(l[V]);
|
|
3932
3920
|
g(te);
|
|
3933
3921
|
return;
|
|
3934
3922
|
}
|
|
3935
|
-
if (
|
|
3923
|
+
if (k === "Home") {
|
|
3936
3924
|
v.preventDefault();
|
|
3937
3925
|
const V = y(l[0]);
|
|
3938
3926
|
g(V);
|
|
3939
3927
|
return;
|
|
3940
3928
|
}
|
|
3941
|
-
if (
|
|
3929
|
+
if (k === "End") {
|
|
3942
3930
|
v.preventDefault();
|
|
3943
3931
|
const V = y(l[l.length - 1]);
|
|
3944
3932
|
g(V);
|
|
3945
3933
|
return;
|
|
3946
3934
|
}
|
|
3947
|
-
if (
|
|
3935
|
+
if (I && k === "Backspace") {
|
|
3948
3936
|
if (v.preventDefault(), l.length > 0) {
|
|
3949
3937
|
const V = f.current[l.length - 1];
|
|
3950
3938
|
(J = V == null ? void 0 : V.focus) == null || J.call(V);
|
|
@@ -3953,14 +3941,14 @@ const As = ({
|
|
|
3953
3941
|
}
|
|
3954
3942
|
},
|
|
3955
3943
|
children: [
|
|
3956
|
-
l.map((v,
|
|
3957
|
-
const
|
|
3944
|
+
l.map((v, k) => {
|
|
3945
|
+
const R = y(v), I = e === "input", O = I ? {
|
|
3958
3946
|
editable: !0,
|
|
3959
|
-
editing: S ===
|
|
3947
|
+
editing: S === R,
|
|
3960
3948
|
onEditCommit: (L) => {
|
|
3961
3949
|
o(!0), m(
|
|
3962
3950
|
(J) => J.map(
|
|
3963
|
-
(V, te) => te ===
|
|
3951
|
+
(V, te) => te === k ? { ...V, label: L } : V
|
|
3964
3952
|
)
|
|
3965
3953
|
);
|
|
3966
3954
|
},
|
|
@@ -3968,7 +3956,7 @@ const As = ({
|
|
|
3968
3956
|
o(!0);
|
|
3969
3957
|
},
|
|
3970
3958
|
onChange: () => {
|
|
3971
|
-
if (f.current.length ==
|
|
3959
|
+
if (f.current.length == k + 1) {
|
|
3972
3960
|
const L = i.current;
|
|
3973
3961
|
requestAnimationFrame(() => {
|
|
3974
3962
|
L.scrollTo({ left: L.scrollWidth, behavior: "smooth" });
|
|
@@ -3979,7 +3967,7 @@ const As = ({
|
|
|
3979
3967
|
return /* @__PURE__ */ u(
|
|
3980
3968
|
mt,
|
|
3981
3969
|
{
|
|
3982
|
-
ref: (L) => f.current[
|
|
3970
|
+
ref: (L) => f.current[k] = L,
|
|
3983
3971
|
label: v.label ?? "",
|
|
3984
3972
|
icon: v.icon,
|
|
3985
3973
|
activated: v.activated,
|
|
@@ -3990,22 +3978,22 @@ const As = ({
|
|
|
3990
3978
|
...O,
|
|
3991
3979
|
onToggle: v.activated === void 0 ? void 0 : (L) => m(
|
|
3992
3980
|
(J) => J.map(
|
|
3993
|
-
(V, te) => te ===
|
|
3981
|
+
(V, te) => te === k ? { ...V, activated: L } : V
|
|
3994
3982
|
)
|
|
3995
3983
|
),
|
|
3996
3984
|
onBlur: () => {
|
|
3997
|
-
S ===
|
|
3985
|
+
S === R && g(null);
|
|
3998
3986
|
},
|
|
3999
|
-
onRemove:
|
|
4000
|
-
o(!0), b(
|
|
3987
|
+
onRemove: I ? () => {
|
|
3988
|
+
o(!0), b(k);
|
|
4001
3989
|
} : void 0
|
|
4002
3990
|
},
|
|
4003
|
-
|
|
3991
|
+
R
|
|
4004
3992
|
);
|
|
4005
3993
|
}),
|
|
4006
3994
|
c && /* @__PURE__ */ j(me, { children: [
|
|
4007
3995
|
/* @__PURE__ */ u(
|
|
4008
|
-
|
|
3996
|
+
Te,
|
|
4009
3997
|
{
|
|
4010
3998
|
orientation: "vertical",
|
|
4011
3999
|
className: "animate-[var(--animate-blink)] border-outline",
|
|
@@ -4021,7 +4009,7 @@ const As = ({
|
|
|
4021
4009
|
}
|
|
4022
4010
|
` })
|
|
4023
4011
|
] }),
|
|
4024
|
-
|
|
4012
|
+
M && /* @__PURE__ */ u(
|
|
4025
4013
|
mt,
|
|
4026
4014
|
{
|
|
4027
4015
|
ref: A,
|
|
@@ -4030,12 +4018,12 @@ const As = ({
|
|
|
4030
4018
|
editable: !0,
|
|
4031
4019
|
editing: !0,
|
|
4032
4020
|
onChange: (v) => {
|
|
4033
|
-
var
|
|
4021
|
+
var k;
|
|
4034
4022
|
if (v = v.replace(/( )+/g, " ").trim(), console.log("Ghost chip onChange", v, !!v), v)
|
|
4035
4023
|
E(v);
|
|
4036
4024
|
else if (l.length > 0) {
|
|
4037
|
-
const
|
|
4038
|
-
(
|
|
4025
|
+
const R = f.current[l.length - 1];
|
|
4026
|
+
(k = R == null ? void 0 : R.focus) == null || k.call(R);
|
|
4039
4027
|
}
|
|
4040
4028
|
},
|
|
4041
4029
|
onEditCommit: () => {
|
|
@@ -4069,19 +4057,19 @@ function $r({
|
|
|
4069
4057
|
}, []);
|
|
4070
4058
|
_(() => () => E(), [E]);
|
|
4071
4059
|
const S = he(
|
|
4072
|
-
(
|
|
4060
|
+
(F) => {
|
|
4073
4061
|
if (d) {
|
|
4074
|
-
const
|
|
4075
|
-
r == null || r(
|
|
4062
|
+
const D = F !== "hidden";
|
|
4063
|
+
r == null || r(D);
|
|
4076
4064
|
} else {
|
|
4077
|
-
f(
|
|
4078
|
-
const
|
|
4079
|
-
r == null || r(
|
|
4065
|
+
f(F);
|
|
4066
|
+
const D = F !== "hidden";
|
|
4067
|
+
r == null || r(D);
|
|
4080
4068
|
}
|
|
4081
4069
|
},
|
|
4082
4070
|
[d, r]
|
|
4083
|
-
), g = d ? t ? "hovered" : "hidden" : y, A = g !== "hidden",
|
|
4084
|
-
switch (
|
|
4071
|
+
), g = d ? t ? "hovered" : "hidden" : y, A = g !== "hidden", M = (F) => {
|
|
4072
|
+
switch (F) {
|
|
4085
4073
|
case "hidden":
|
|
4086
4074
|
return 0;
|
|
4087
4075
|
case "hovered":
|
|
@@ -4094,24 +4082,24 @@ function $r({
|
|
|
4094
4082
|
return 0;
|
|
4095
4083
|
}
|
|
4096
4084
|
}, v = he(
|
|
4097
|
-
(
|
|
4098
|
-
E(), !(
|
|
4099
|
-
S(
|
|
4085
|
+
(F) => {
|
|
4086
|
+
E(), !(M(F) <= M(g)) && (b.current = setTimeout(() => {
|
|
4087
|
+
S(F);
|
|
4100
4088
|
}, s));
|
|
4101
4089
|
},
|
|
4102
4090
|
[E, s, g, S]
|
|
4103
|
-
),
|
|
4104
|
-
(
|
|
4091
|
+
), k = he(
|
|
4092
|
+
(F) => {
|
|
4105
4093
|
E(), w.current = setTimeout(() => {
|
|
4106
|
-
(!d &&
|
|
4094
|
+
(!d && M(y) <= M(F) || d) && S("hidden");
|
|
4107
4095
|
}, a);
|
|
4108
4096
|
},
|
|
4109
4097
|
[E, a, y, d, S]
|
|
4110
|
-
),
|
|
4098
|
+
), R = he(() => {
|
|
4111
4099
|
o.includes("hover") && v("hovered");
|
|
4112
|
-
}, [o, v]),
|
|
4113
|
-
o.includes("hover") && (g === "focused" || g === "clicked" || h ||
|
|
4114
|
-
}, [o, g, h,
|
|
4100
|
+
}, [o, v]), I = he(() => {
|
|
4101
|
+
o.includes("hover") && (g === "focused" || g === "clicked" || h || k("hovered"));
|
|
4102
|
+
}, [o, g, h, k]), O = he(() => {
|
|
4115
4103
|
o.includes("focus") && (E(), S("focused"));
|
|
4116
4104
|
}, [o, E, S]), L = he(() => {
|
|
4117
4105
|
if (o.includes("focus") && g !== "clicked") {
|
|
@@ -4119,25 +4107,25 @@ function $r({
|
|
|
4119
4107
|
S("hovered");
|
|
4120
4108
|
return;
|
|
4121
4109
|
}
|
|
4122
|
-
|
|
4110
|
+
k("focused");
|
|
4123
4111
|
}
|
|
4124
|
-
}, [o, g, h,
|
|
4112
|
+
}, [o, g, h, k, S]), J = he(() => {
|
|
4125
4113
|
o.includes("click") && (E(), S(g === "clicked" ? "hidden" : "clicked"));
|
|
4126
4114
|
}, [o, g, E, S]), V = he(
|
|
4127
|
-
(
|
|
4128
|
-
|
|
4115
|
+
(F) => {
|
|
4116
|
+
F.key === "Escape" && A && (E(), S("hidden"), F.preventDefault());
|
|
4129
4117
|
},
|
|
4130
4118
|
[A, E, S]
|
|
4131
4119
|
), te = he(() => {
|
|
4132
4120
|
m(!0), E();
|
|
4133
4121
|
}, [E]), U = he(() => {
|
|
4134
|
-
m(!1), o.includes("hover") && g === "hovered" &&
|
|
4135
|
-
}, [o, g,
|
|
4122
|
+
m(!1), o.includes("hover") && g === "hovered" && k("hovered");
|
|
4123
|
+
}, [o, g, k]);
|
|
4136
4124
|
return {
|
|
4137
4125
|
triggerProps: {
|
|
4138
4126
|
"aria-describedby": A ? c : void 0,
|
|
4139
|
-
onMouseEnter:
|
|
4140
|
-
onMouseLeave:
|
|
4127
|
+
onMouseEnter: R,
|
|
4128
|
+
onMouseLeave: I,
|
|
4141
4129
|
onFocus: O,
|
|
4142
4130
|
onBlur: L,
|
|
4143
4131
|
onClick: J,
|
|
@@ -4176,11 +4164,11 @@ const Qt = ({
|
|
|
4176
4164
|
anchorRef: S,
|
|
4177
4165
|
...g
|
|
4178
4166
|
}) => {
|
|
4179
|
-
const
|
|
4167
|
+
const M = i || (e === "rich" ? "bottom-right" : "bottom");
|
|
4180
4168
|
if (y = { duration: 0.3, ...y }, !r && !c)
|
|
4181
4169
|
throw new Error("Tooltip must have a child or a targetRef");
|
|
4182
4170
|
t && !Array.isArray(t) && (t = [t]);
|
|
4183
|
-
const v = z(null),
|
|
4171
|
+
const v = z(null), R = S || (c || v), { triggerProps: I, tooltipProps: O, isOpen: L } = $r({
|
|
4184
4172
|
trigger: d,
|
|
4185
4173
|
isOpen: m,
|
|
4186
4174
|
defaultOpen: b,
|
|
@@ -4188,54 +4176,54 @@ const Qt = ({
|
|
|
4188
4176
|
openDelay: f,
|
|
4189
4177
|
closeDelay: h,
|
|
4190
4178
|
id: E
|
|
4191
|
-
}), J = !c &&
|
|
4179
|
+
}), J = !c && Ie(r) ? Be(r, {
|
|
4192
4180
|
ref: v,
|
|
4193
|
-
...
|
|
4181
|
+
...I,
|
|
4194
4182
|
// Merge event handlers if the child already has them
|
|
4195
4183
|
onMouseEnter: (U) => {
|
|
4196
|
-
var
|
|
4197
|
-
|
|
4184
|
+
var F, D;
|
|
4185
|
+
I.onMouseEnter(), (D = (F = r.props) == null ? void 0 : F.onMouseEnter) == null || D.call(F, U);
|
|
4198
4186
|
},
|
|
4199
4187
|
onMouseLeave: (U) => {
|
|
4200
|
-
var
|
|
4201
|
-
|
|
4188
|
+
var F, D;
|
|
4189
|
+
I.onMouseLeave(), (D = (F = r.props) == null ? void 0 : F.onMouseLeave) == null || D.call(F, U);
|
|
4202
4190
|
},
|
|
4203
4191
|
onFocus: (U) => {
|
|
4204
|
-
var
|
|
4205
|
-
|
|
4192
|
+
var F, D;
|
|
4193
|
+
I.onFocus(), (D = (F = r.props) == null ? void 0 : F.onFocus) == null || D.call(F, U);
|
|
4206
4194
|
},
|
|
4207
4195
|
onBlur: (U) => {
|
|
4208
|
-
var
|
|
4209
|
-
|
|
4196
|
+
var F, D;
|
|
4197
|
+
I.onBlur(), (D = (F = r.props) == null ? void 0 : F.onBlur) == null || D.call(F, U);
|
|
4210
4198
|
},
|
|
4211
4199
|
onClick: (U) => {
|
|
4212
|
-
var
|
|
4213
|
-
|
|
4200
|
+
var F, D;
|
|
4201
|
+
I.onClick(), (D = (F = r.props) == null ? void 0 : F.onClick) == null || D.call(F, U);
|
|
4214
4202
|
},
|
|
4215
4203
|
onKeyDown: (U) => {
|
|
4216
|
-
var
|
|
4217
|
-
|
|
4204
|
+
var F, D;
|
|
4205
|
+
I.onKeyDown(U), (D = (F = r.props) == null ? void 0 : F.onKeyDown) == null || D.call(F, U);
|
|
4218
4206
|
}
|
|
4219
4207
|
}) : r;
|
|
4220
4208
|
_(() => {
|
|
4221
4209
|
if (!c) return;
|
|
4222
4210
|
const U = c.current;
|
|
4223
4211
|
if (!U) return;
|
|
4224
|
-
const
|
|
4225
|
-
return U.addEventListener("mouseenter",
|
|
4212
|
+
const F = () => I.onMouseEnter(), D = () => I.onMouseLeave(), B = () => I.onFocus(), $ = () => I.onBlur(), P = () => I.onClick(), Z = (x) => I.onKeyDown(x);
|
|
4213
|
+
return U.addEventListener("mouseenter", F), U.addEventListener("mouseleave", D), U.addEventListener("focus", B, !0), U.addEventListener("blur", $, !0), U.addEventListener("click", P), U.addEventListener("keydown", Z), I["aria-describedby"] ? U.setAttribute(
|
|
4226
4214
|
"aria-describedby",
|
|
4227
|
-
|
|
4215
|
+
I["aria-describedby"]
|
|
4228
4216
|
) : U.removeAttribute("aria-describedby"), () => {
|
|
4229
|
-
U.removeEventListener("mouseenter",
|
|
4217
|
+
U.removeEventListener("mouseenter", F), U.removeEventListener("mouseleave", D), U.removeEventListener("focus", B, !0), U.removeEventListener("blur", $, !0), U.removeEventListener("click", P), U.removeEventListener("keydown", Z);
|
|
4230
4218
|
};
|
|
4231
|
-
}, [c,
|
|
4219
|
+
}, [c, I]);
|
|
4232
4220
|
const V = hr({
|
|
4233
4221
|
variant: e,
|
|
4234
4222
|
buttons: t,
|
|
4235
4223
|
className: n,
|
|
4236
4224
|
title: s,
|
|
4237
4225
|
text: a,
|
|
4238
|
-
position:
|
|
4226
|
+
position: M,
|
|
4239
4227
|
trigger: d,
|
|
4240
4228
|
targetRef: c,
|
|
4241
4229
|
children: r
|
|
@@ -4252,10 +4240,10 @@ const Qt = ({
|
|
|
4252
4240
|
return /* @__PURE__ */ j(me, { children: [
|
|
4253
4241
|
J,
|
|
4254
4242
|
/* @__PURE__ */ u(pe, { children: L && /* @__PURE__ */ u(
|
|
4255
|
-
|
|
4243
|
+
We,
|
|
4256
4244
|
{
|
|
4257
|
-
anchorRef:
|
|
4258
|
-
position:
|
|
4245
|
+
anchorRef: R,
|
|
4246
|
+
position: M,
|
|
4259
4247
|
children: /* @__PURE__ */ u(
|
|
4260
4248
|
se.div,
|
|
4261
4249
|
{
|
|
@@ -4270,14 +4258,14 @@ const Qt = ({
|
|
|
4270
4258
|
children: /* @__PURE__ */ u("div", { className: V.container, children: l ? /* @__PURE__ */ u("div", { className: V.content, children: l }) : /* @__PURE__ */ j(me, { children: [
|
|
4271
4259
|
s && /* @__PURE__ */ u("div", { className: V.subHead, children: s }),
|
|
4272
4260
|
a && /* @__PURE__ */ u("div", { className: V.supportingText, children: a }),
|
|
4273
|
-
t && /* @__PURE__ */ u("div", { className: V.actions, children: Array.isArray(t) && t.map((U,
|
|
4261
|
+
t && /* @__PURE__ */ u("div", { className: V.actions, children: Array.isArray(t) && t.map((U, F) => /* @__PURE__ */ u(
|
|
4274
4262
|
Le,
|
|
4275
4263
|
{
|
|
4276
4264
|
size: "small",
|
|
4277
4265
|
variant: "text",
|
|
4278
4266
|
...U
|
|
4279
4267
|
},
|
|
4280
|
-
|
|
4268
|
+
F
|
|
4281
4269
|
)) })
|
|
4282
4270
|
] }) })
|
|
4283
4271
|
}
|
|
@@ -4389,7 +4377,7 @@ const Qt = ({
|
|
|
4389
4377
|
]
|
|
4390
4378
|
}
|
|
4391
4379
|
);
|
|
4392
|
-
},
|
|
4380
|
+
}, Me = ({
|
|
4393
4381
|
variant: e = "standard",
|
|
4394
4382
|
href: t,
|
|
4395
4383
|
disabled: n = !1,
|
|
@@ -4415,13 +4403,13 @@ const Qt = ({
|
|
|
4415
4403
|
"IconButton component requires either a label prop or children content to provide an accessible aria-label"
|
|
4416
4404
|
);
|
|
4417
4405
|
!r && r !== null && (r = s);
|
|
4418
|
-
const [g, A] = Y.useState(l),
|
|
4406
|
+
const [g, A] = Y.useState(l), M = (O) => {
|
|
4419
4407
|
n && O.preventDefault(), a ? (A(!g), a(!g)) : i && i(O);
|
|
4420
4408
|
};
|
|
4421
4409
|
_(() => {
|
|
4422
4410
|
A(l);
|
|
4423
4411
|
}, [l]);
|
|
4424
|
-
const v = t ? "a" : "button",
|
|
4412
|
+
const v = t ? "a" : "button", k = er({
|
|
4425
4413
|
transition: w,
|
|
4426
4414
|
shape: m,
|
|
4427
4415
|
allowShapeTransformation: b,
|
|
@@ -4439,34 +4427,34 @@ const Qt = ({
|
|
|
4439
4427
|
size: o,
|
|
4440
4428
|
children: s,
|
|
4441
4429
|
...S
|
|
4442
|
-
}),
|
|
4430
|
+
}), R = z(null), I = f || R;
|
|
4443
4431
|
return w = { duration: 0.3, ...w }, /* @__PURE__ */ j(
|
|
4444
4432
|
v,
|
|
4445
4433
|
{
|
|
4446
4434
|
disabled: n,
|
|
4447
4435
|
href: t,
|
|
4448
4436
|
style: { transition: w.duration + "s" },
|
|
4449
|
-
className:
|
|
4437
|
+
className: k.iconButton,
|
|
4450
4438
|
"aria-label": s,
|
|
4451
4439
|
...S,
|
|
4452
4440
|
title: void 0,
|
|
4453
|
-
onClick:
|
|
4454
|
-
ref:
|
|
4441
|
+
onClick: M,
|
|
4442
|
+
ref: I,
|
|
4455
4443
|
children: [
|
|
4456
4444
|
r !== null && /* @__PURE__ */ u(
|
|
4457
4445
|
Qt,
|
|
4458
4446
|
{
|
|
4459
|
-
targetRef:
|
|
4447
|
+
targetRef: I,
|
|
4460
4448
|
trigger: n ? null : void 0,
|
|
4461
4449
|
text: r
|
|
4462
4450
|
}
|
|
4463
4451
|
),
|
|
4464
|
-
/* @__PURE__ */ u("div", { className:
|
|
4452
|
+
/* @__PURE__ */ u("div", { className: k.touchTarget }),
|
|
4465
4453
|
/* @__PURE__ */ u(
|
|
4466
4454
|
be,
|
|
4467
4455
|
{
|
|
4468
4456
|
style: { transition: w.duration + "s" },
|
|
4469
|
-
className:
|
|
4457
|
+
className: k.stateLayer,
|
|
4470
4458
|
colorName: p(
|
|
4471
4459
|
e === "standard" && {
|
|
4472
4460
|
"on-surface-variant": !g,
|
|
@@ -4488,11 +4476,11 @@ const Qt = ({
|
|
|
4488
4476
|
stateClassName: "state-ripple-group-[icon-button]"
|
|
4489
4477
|
}
|
|
4490
4478
|
),
|
|
4491
|
-
c ? /* @__PURE__ */ u(fe, { icon: c, className:
|
|
4479
|
+
c ? /* @__PURE__ */ u(fe, { icon: c, className: k.icon }) : E
|
|
4492
4480
|
]
|
|
4493
4481
|
}
|
|
4494
4482
|
);
|
|
4495
|
-
},
|
|
4483
|
+
}, Ws = ({
|
|
4496
4484
|
className: e,
|
|
4497
4485
|
label: t,
|
|
4498
4486
|
variant: n = "primary",
|
|
@@ -4511,7 +4499,7 @@ const Qt = ({
|
|
|
4511
4499
|
c = { duration: 0.3, ease: "easeInOut", ...c };
|
|
4512
4500
|
const m = z(null), b = i || m, w = typeof d == "boolean", [E, S] = X(y), g = w ? d : E, A = (L) => {
|
|
4513
4501
|
w || S(L), f == null || f(L);
|
|
4514
|
-
},
|
|
4502
|
+
}, M = Y.Children.toArray(o).filter(
|
|
4515
4503
|
(L) => Y.isValidElement(L) && L.type === Le
|
|
4516
4504
|
), v = Qn({
|
|
4517
4505
|
href: s,
|
|
@@ -4524,8 +4512,8 @@ const Qt = ({
|
|
|
4524
4512
|
transition: c,
|
|
4525
4513
|
children: t,
|
|
4526
4514
|
open: g
|
|
4527
|
-
}),
|
|
4528
|
-
|
|
4515
|
+
}), k = se.create(je), R = se.create(Me), I = (L) => /* @__PURE__ */ u(
|
|
4516
|
+
k,
|
|
4529
4517
|
{
|
|
4530
4518
|
icon: a,
|
|
4531
4519
|
extended: l,
|
|
@@ -4548,10 +4536,10 @@ const Qt = ({
|
|
|
4548
4536
|
), O = Ce();
|
|
4549
4537
|
return /* @__PURE__ */ j("div", { className: v.fabMenu, ref: b, ...h, children: [
|
|
4550
4538
|
/* @__PURE__ */ u(pe, { children: g && /* @__PURE__ */ u("div", { className: v.actions, role: "menu", "aria-hidden": !g, children: (() => {
|
|
4551
|
-
const L =
|
|
4552
|
-
return
|
|
4539
|
+
const L = M.length;
|
|
4540
|
+
return M.map((J, V) => {
|
|
4553
4541
|
J.props;
|
|
4554
|
-
const te = L - 1 - V, U = ((c == null ? void 0 : c.delay) ?? 0) + te * 0.06,
|
|
4542
|
+
const te = L - 1 - V, U = ((c == null ? void 0 : c.delay) ?? 0) + te * 0.06, F = {
|
|
4555
4543
|
open: {
|
|
4556
4544
|
overflow: "visible",
|
|
4557
4545
|
opacity: 1,
|
|
@@ -4582,7 +4570,7 @@ const Qt = ({
|
|
|
4582
4570
|
{
|
|
4583
4571
|
initial: "close",
|
|
4584
4572
|
animate: "open",
|
|
4585
|
-
variants:
|
|
4573
|
+
variants: F,
|
|
4586
4574
|
transition: c,
|
|
4587
4575
|
exit: "close",
|
|
4588
4576
|
children: Y.cloneElement(
|
|
@@ -4613,17 +4601,17 @@ const Qt = ({
|
|
|
4613
4601
|
);
|
|
4614
4602
|
});
|
|
4615
4603
|
})() }) }),
|
|
4616
|
-
|
|
4604
|
+
I({
|
|
4617
4605
|
className: "invisible pointer-events-none"
|
|
4618
4606
|
}),
|
|
4619
4607
|
/* @__PURE__ */ j("div", { className: "absolute right-0 top-0", children: [
|
|
4620
|
-
!g &&
|
|
4608
|
+
!g && I({
|
|
4621
4609
|
className: "",
|
|
4622
4610
|
layout: !0,
|
|
4623
4611
|
layoutId: "fab-menu" + O
|
|
4624
4612
|
}),
|
|
4625
4613
|
g && /* @__PURE__ */ u(me, { children: /* @__PURE__ */ u(
|
|
4626
|
-
|
|
4614
|
+
R,
|
|
4627
4615
|
{
|
|
4628
4616
|
layout: !0,
|
|
4629
4617
|
layoutId: "fab-menu" + O,
|
|
@@ -4661,7 +4649,7 @@ const Qt = ({
|
|
|
4661
4649
|
) })
|
|
4662
4650
|
] })
|
|
4663
4651
|
] });
|
|
4664
|
-
},
|
|
4652
|
+
}, Fs = ({
|
|
4665
4653
|
className: e,
|
|
4666
4654
|
valueFormatter: t,
|
|
4667
4655
|
step: n = 10,
|
|
@@ -4683,24 +4671,24 @@ const Qt = ({
|
|
|
4683
4671
|
onChange: o,
|
|
4684
4672
|
...d
|
|
4685
4673
|
}) => {
|
|
4686
|
-
const y = (
|
|
4687
|
-
const
|
|
4688
|
-
return
|
|
4689
|
-
}, f = (
|
|
4690
|
-
const
|
|
4691
|
-
return (f(!1) -
|
|
4692
|
-
}, [b, w] = X(!1), E = z(null), S = c || E, [g, A] = X(s), [
|
|
4674
|
+
const y = (D) => {
|
|
4675
|
+
const B = h(), $ = f();
|
|
4676
|
+
return D === 1 / 0 ? 100 : D === -1 / 0 ? 0 : (D - B) / ($ - B) * 100;
|
|
4677
|
+
}, f = (D = !1) => D ? l : l == 1 / 0 ? i[(i == null ? void 0 : i.length) - 1].value : l, h = (D = !1) => D ? a : a == -1 / 0 ? i[0].value : a, m = (D) => {
|
|
4678
|
+
const B = h(!1);
|
|
4679
|
+
return (f(!1) - B) * D / 100 + B;
|
|
4680
|
+
}, [b, w] = X(!1), E = z(null), S = c || E, [g, A] = X(s), [M, v] = X(y(s)), [k, R] = X(!1);
|
|
4693
4681
|
_(() => {
|
|
4694
4682
|
A(s), v(y(s));
|
|
4695
4683
|
}, [s]);
|
|
4696
|
-
const
|
|
4697
|
-
|
|
4684
|
+
const I = (D) => {
|
|
4685
|
+
R(!0), w(!0), J(D);
|
|
4698
4686
|
}, O = () => {
|
|
4699
|
-
|
|
4687
|
+
R(!1), w(!1);
|
|
4700
4688
|
};
|
|
4701
|
-
_(() => (
|
|
4689
|
+
_(() => (k ? (window.addEventListener("mouseup", O), window.addEventListener("mousemove", J), window.addEventListener("touchend", O), window.addEventListener("touchmove", J)) : (window.removeEventListener("mouseup", O), window.removeEventListener("mousemove", J), window.removeEventListener("touchend", O), window.removeEventListener("touchmove", J)), () => {
|
|
4702
4690
|
window.removeEventListener("mouseup", O), window.removeEventListener("mousemove", J), window.removeEventListener("touchend", O), window.removeEventListener("touchmove", J);
|
|
4703
|
-
}), [
|
|
4691
|
+
}), [k]);
|
|
4704
4692
|
const L = or({
|
|
4705
4693
|
className: e,
|
|
4706
4694
|
isChanging: b,
|
|
@@ -4712,70 +4700,70 @@ const Qt = ({
|
|
|
4712
4700
|
value: g,
|
|
4713
4701
|
valueFormatter: t,
|
|
4714
4702
|
onChange: o
|
|
4715
|
-
}), J = (
|
|
4716
|
-
const
|
|
4717
|
-
if (
|
|
4718
|
-
const $ =
|
|
4703
|
+
}), J = (D) => {
|
|
4704
|
+
const B = S == null ? void 0 : S.current;
|
|
4705
|
+
if (B) {
|
|
4706
|
+
const $ = B.getBoundingClientRect().left, Z = ((D.type === "touchmove" || D.type === "touchstart" ? D.touches[0].clientX : D.clientX) - $) / B.offsetWidth * 100;
|
|
4719
4707
|
V({ percent: Z });
|
|
4720
4708
|
}
|
|
4721
4709
|
}, V = ({
|
|
4722
|
-
percent:
|
|
4723
|
-
value:
|
|
4710
|
+
percent: D,
|
|
4711
|
+
value: B
|
|
4724
4712
|
}) => {
|
|
4725
|
-
if (
|
|
4726
|
-
if (
|
|
4713
|
+
if (D) {
|
|
4714
|
+
if (D >= 100) {
|
|
4727
4715
|
A(f(!0)), v(100);
|
|
4728
4716
|
return;
|
|
4729
4717
|
}
|
|
4730
|
-
if (
|
|
4718
|
+
if (D <= 0) {
|
|
4731
4719
|
A(h(!0)), v(0);
|
|
4732
4720
|
return;
|
|
4733
4721
|
}
|
|
4734
|
-
|
|
4735
|
-
} else if (
|
|
4736
|
-
if (
|
|
4722
|
+
B = m(D), B == h() && (B = h(!0)), B == f() && (B = f(!0));
|
|
4723
|
+
} else if (B != null) {
|
|
4724
|
+
if (B >= f()) {
|
|
4737
4725
|
A(f(!0)), v(100);
|
|
4738
4726
|
return;
|
|
4739
4727
|
}
|
|
4740
|
-
if (
|
|
4728
|
+
if (B <= h()) {
|
|
4741
4729
|
A(h(!0)), v(0);
|
|
4742
4730
|
return;
|
|
4743
4731
|
}
|
|
4744
|
-
|
|
4732
|
+
D = y(B);
|
|
4745
4733
|
} else
|
|
4746
4734
|
return;
|
|
4747
|
-
n != null ?
|
|
4748
|
-
let x = P.value === 1 / 0 ? f() : P.value === -1 / 0 ? h() : P.value,
|
|
4749
|
-
return x = Math.abs(x -
|
|
4750
|
-
}).value),
|
|
4735
|
+
n != null ? B = Math.round((B - h()) / n) * n + h() : i && (B = i.reduce(($, P, Z) => {
|
|
4736
|
+
let x = P.value === 1 / 0 ? f() : P.value === -1 / 0 ? h() : P.value, N = $.value === 1 / 0 ? f() : $.value === -1 / 0 ? h() : $.value;
|
|
4737
|
+
return x = Math.abs(x - B), N = Math.abs(N - B), x < N ? P : $;
|
|
4738
|
+
}).value), B >= f() && (B = f(!0)), B <= h() && (B = h(!0)), D = y(B), A(B), v(D), o && o(B);
|
|
4751
4739
|
}, [te, U] = X(0);
|
|
4752
4740
|
return _(() => {
|
|
4753
|
-
const
|
|
4741
|
+
const D = () => {
|
|
4754
4742
|
S.current && U(S.current.offsetWidth);
|
|
4755
4743
|
};
|
|
4756
|
-
return
|
|
4757
|
-
window.removeEventListener("resize",
|
|
4744
|
+
return D(), window.addEventListener("resize", D), () => {
|
|
4745
|
+
window.removeEventListener("resize", D);
|
|
4758
4746
|
};
|
|
4759
4747
|
}, []), /* @__PURE__ */ j(
|
|
4760
4748
|
"div",
|
|
4761
4749
|
{
|
|
4762
4750
|
tabIndex: 0,
|
|
4763
|
-
onKeyDown: (
|
|
4764
|
-
switch (
|
|
4751
|
+
onKeyDown: (D) => {
|
|
4752
|
+
switch (D.key) {
|
|
4765
4753
|
case "ArrowRight":
|
|
4766
4754
|
if (n)
|
|
4767
4755
|
V({ value: g + n });
|
|
4768
4756
|
else if (i) {
|
|
4769
|
-
const
|
|
4770
|
-
|
|
4757
|
+
const B = i.find(($) => $.value > g);
|
|
4758
|
+
B && V({ value: B.value });
|
|
4771
4759
|
}
|
|
4772
4760
|
break;
|
|
4773
4761
|
case "ArrowLeft":
|
|
4774
4762
|
if (n)
|
|
4775
4763
|
V({ value: g - n });
|
|
4776
4764
|
else if (i) {
|
|
4777
|
-
const
|
|
4778
|
-
|
|
4765
|
+
const B = i.slice(0).reverse().find(($, P, Z) => g === 1 / 0 ? P === 1 : $.value < g);
|
|
4766
|
+
B && V({ value: B.value });
|
|
4779
4767
|
}
|
|
4780
4768
|
break;
|
|
4781
4769
|
default:
|
|
@@ -4788,15 +4776,15 @@ const Qt = ({
|
|
|
4788
4776
|
"aria-valuenow": g,
|
|
4789
4777
|
"aria-valuetext": g.toString(),
|
|
4790
4778
|
className: L.slider,
|
|
4791
|
-
onMouseDown:
|
|
4779
|
+
onMouseDown: I,
|
|
4792
4780
|
onClick: J,
|
|
4793
4781
|
ref: S,
|
|
4794
|
-
onTouchStart:
|
|
4795
|
-
onDragStart: (
|
|
4782
|
+
onTouchStart: I,
|
|
4783
|
+
onDragStart: (D) => D.preventDefault(),
|
|
4796
4784
|
...d,
|
|
4797
4785
|
children: [
|
|
4798
4786
|
/* @__PURE__ */ u("input", { type: "hidden", name: r, value: g }),
|
|
4799
|
-
/* @__PURE__ */ u("div", { className: L.activeTrack, style: { flex:
|
|
4787
|
+
/* @__PURE__ */ u("div", { className: L.activeTrack, style: { flex: M / 100 } }),
|
|
4800
4788
|
/* @__PURE__ */ u("div", { className: L.handle, children: /* @__PURE__ */ u(pe, { children: b && /* @__PURE__ */ u(
|
|
4801
4789
|
se.div,
|
|
4802
4790
|
{
|
|
@@ -4821,17 +4809,17 @@ const Qt = ({
|
|
|
4821
4809
|
"div",
|
|
4822
4810
|
{
|
|
4823
4811
|
className: L.inactiveTrack,
|
|
4824
|
-
style: { flex: 1 -
|
|
4812
|
+
style: { flex: 1 - M / 100 }
|
|
4825
4813
|
}
|
|
4826
4814
|
),
|
|
4827
4815
|
/* @__PURE__ */ u(
|
|
4828
4816
|
"div",
|
|
4829
4817
|
{
|
|
4830
4818
|
className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
|
|
4831
|
-
children: i && i.map((
|
|
4819
|
+
children: i && i.map((D, B) => {
|
|
4832
4820
|
let $ = null;
|
|
4833
|
-
const P = (b ? 9 : 10) / te * 100, Z = y(
|
|
4834
|
-
return Z <=
|
|
4821
|
+
const P = (b ? 9 : 10) / te * 100, Z = y(D.value);
|
|
4822
|
+
return Z <= M - P ? $ = !0 : Z >= M + P && ($ = !1), /* @__PURE__ */ u(
|
|
4835
4823
|
"div",
|
|
4836
4824
|
{
|
|
4837
4825
|
className: p(L.dot, {
|
|
@@ -4839,10 +4827,10 @@ const Qt = ({
|
|
|
4839
4827
|
"bg-primary": $ != null && !$
|
|
4840
4828
|
}),
|
|
4841
4829
|
style: {
|
|
4842
|
-
left: `${y(
|
|
4830
|
+
left: `${y(D.value)}%`
|
|
4843
4831
|
}
|
|
4844
4832
|
},
|
|
4845
|
-
|
|
4833
|
+
B
|
|
4846
4834
|
);
|
|
4847
4835
|
})
|
|
4848
4836
|
}
|
|
@@ -4859,7 +4847,7 @@ const Qt = ({
|
|
|
4859
4847
|
extended: a,
|
|
4860
4848
|
divider: l,
|
|
4861
4849
|
onExtendedChange: i,
|
|
4862
|
-
closeIcon: c =
|
|
4850
|
+
closeIcon: c = Fe,
|
|
4863
4851
|
transition: o,
|
|
4864
4852
|
...d
|
|
4865
4853
|
}) => {
|
|
@@ -4920,7 +4908,7 @@ const Qt = ({
|
|
|
4920
4908
|
/* @__PURE__ */ j("div", { className: h.header, children: [
|
|
4921
4909
|
r && /* @__PURE__ */ u("p", { className: h.title, children: r }),
|
|
4922
4910
|
/* @__PURE__ */ u(
|
|
4923
|
-
|
|
4911
|
+
Me,
|
|
4924
4912
|
{
|
|
4925
4913
|
size: "small",
|
|
4926
4914
|
label: "close",
|
|
@@ -4941,7 +4929,7 @@ const Qt = ({
|
|
|
4941
4929
|
]
|
|
4942
4930
|
}
|
|
4943
4931
|
),
|
|
4944
|
-
(l == null && e == "standard" ? !0 : l) && /* @__PURE__ */ u(
|
|
4932
|
+
(l == null && e == "standard" ? !0 : l) && /* @__PURE__ */ u(Te, { className: h.divider, orientation: "vertical" })
|
|
4945
4933
|
]
|
|
4946
4934
|
}
|
|
4947
4935
|
) })
|
|
@@ -4951,7 +4939,7 @@ const Qt = ({
|
|
|
4951
4939
|
message: e,
|
|
4952
4940
|
className: t,
|
|
4953
4941
|
duration: n,
|
|
4954
|
-
closeIcon: r =
|
|
4942
|
+
closeIcon: r = Fe,
|
|
4955
4943
|
onClose: s,
|
|
4956
4944
|
...a
|
|
4957
4945
|
}) => {
|
|
@@ -4983,7 +4971,7 @@ const Qt = ({
|
|
|
4983
4971
|
children: /* @__PURE__ */ j("div", { className: c.container, children: [
|
|
4984
4972
|
/* @__PURE__ */ u("p", { className: c.supportingText, children: e }),
|
|
4985
4973
|
/* @__PURE__ */ u(
|
|
4986
|
-
|
|
4974
|
+
Me,
|
|
4987
4975
|
{
|
|
4988
4976
|
onClick: () => o(),
|
|
4989
4977
|
className: c.icon,
|
|
@@ -4994,7 +4982,7 @@ const Qt = ({
|
|
|
4994
4982
|
] })
|
|
4995
4983
|
}
|
|
4996
4984
|
) });
|
|
4997
|
-
},
|
|
4985
|
+
}, Bs = ({
|
|
4998
4986
|
selected: e = !1,
|
|
4999
4987
|
className: t,
|
|
5000
4988
|
activeIcon: n,
|
|
@@ -5093,9 +5081,9 @@ const Qt = ({
|
|
|
5093
5081
|
icon: a
|
|
5094
5082
|
});
|
|
5095
5083
|
}, [l]);
|
|
5096
|
-
const
|
|
5097
|
-
i && i(o ?? null), t && t(
|
|
5098
|
-
},
|
|
5084
|
+
const M = s ? "a" : "button", v = (R) => {
|
|
5085
|
+
i && i(o ?? null), t && t(R);
|
|
5086
|
+
}, k = ar({
|
|
5099
5087
|
className: e,
|
|
5100
5088
|
onTabSelected: d,
|
|
5101
5089
|
scrollable: y,
|
|
@@ -5111,14 +5099,14 @@ const Qt = ({
|
|
|
5111
5099
|
href: s
|
|
5112
5100
|
});
|
|
5113
5101
|
return /* @__PURE__ */ j(
|
|
5114
|
-
|
|
5102
|
+
M,
|
|
5115
5103
|
{
|
|
5116
5104
|
...b,
|
|
5117
5105
|
role: "tab",
|
|
5118
5106
|
"aria-selected": g,
|
|
5119
5107
|
ref: E,
|
|
5120
5108
|
href: s,
|
|
5121
|
-
className:
|
|
5109
|
+
className: k.tab,
|
|
5122
5110
|
onClick: v,
|
|
5123
5111
|
...b,
|
|
5124
5112
|
children: [
|
|
@@ -5126,19 +5114,19 @@ const Qt = ({
|
|
|
5126
5114
|
be,
|
|
5127
5115
|
{
|
|
5128
5116
|
style: { transition: 0.3 + "s" },
|
|
5129
|
-
className:
|
|
5117
|
+
className: k.stateLayer,
|
|
5130
5118
|
colorName: r === "primary" && g ? "primary" : "on-surface",
|
|
5131
5119
|
stateClassName: "state-ripple-group-[tab]"
|
|
5132
5120
|
}
|
|
5133
5121
|
),
|
|
5134
|
-
/* @__PURE__ */ j("span", { className:
|
|
5135
|
-
a && /* @__PURE__ */ u(fe, { icon: a, className:
|
|
5136
|
-
/* @__PURE__ */ u("span", { className:
|
|
5122
|
+
/* @__PURE__ */ j("span", { className: k.content, children: [
|
|
5123
|
+
a && /* @__PURE__ */ u(fe, { icon: a, className: k.icon }),
|
|
5124
|
+
/* @__PURE__ */ u("span", { className: k.label, children: S }),
|
|
5137
5125
|
g && /* @__PURE__ */ u(
|
|
5138
5126
|
se.span,
|
|
5139
5127
|
{
|
|
5140
5128
|
layoutId: `underline-${c}`,
|
|
5141
|
-
className:
|
|
5129
|
+
className: k.underline,
|
|
5142
5130
|
transition: { duration: 0.3 }
|
|
5143
5131
|
}
|
|
5144
5132
|
)
|
|
@@ -5146,7 +5134,7 @@ const Qt = ({
|
|
|
5146
5134
|
]
|
|
5147
5135
|
}
|
|
5148
5136
|
);
|
|
5149
|
-
}, Qe = cn(null),
|
|
5137
|
+
}, Qe = cn(null), Ts = ({
|
|
5150
5138
|
variant: e = "primary",
|
|
5151
5139
|
onTabSelected: t,
|
|
5152
5140
|
children: n,
|
|
@@ -5213,7 +5201,7 @@ const Qt = ({
|
|
|
5213
5201
|
[i, c, o, d]
|
|
5214
5202
|
);
|
|
5215
5203
|
return /* @__PURE__ */ u(Qe.Provider, { value: y, children: e });
|
|
5216
|
-
},
|
|
5204
|
+
}, Wr = ({
|
|
5217
5205
|
children: e,
|
|
5218
5206
|
className: t,
|
|
5219
5207
|
isSelected: n = !1
|
|
@@ -5232,7 +5220,7 @@ const Qt = ({
|
|
|
5232
5220
|
if (!n)
|
|
5233
5221
|
return console.warn("TabPanels must be used within a TabGroup"), null;
|
|
5234
5222
|
const { selectedTab: r, direction: s, tabsId: a } = n, l = Y.Children.toArray(e).filter(
|
|
5235
|
-
(c) => Y.isValidElement(c) && c.type ===
|
|
5223
|
+
(c) => Y.isValidElement(c) && c.type === Wr
|
|
5236
5224
|
), i = ur({
|
|
5237
5225
|
children: e,
|
|
5238
5226
|
className: t
|
|
@@ -5264,7 +5252,7 @@ const Qt = ({
|
|
|
5264
5252
|
o
|
|
5265
5253
|
)
|
|
5266
5254
|
) }) });
|
|
5267
|
-
},
|
|
5255
|
+
}, Fr = ({
|
|
5268
5256
|
hasSelected: e
|
|
5269
5257
|
}) => ({
|
|
5270
5258
|
datePicker: p(
|
|
@@ -5291,7 +5279,7 @@ const Qt = ({
|
|
|
5291
5279
|
)
|
|
5292
5280
|
}), Pr = ne(
|
|
5293
5281
|
"datePicker",
|
|
5294
|
-
|
|
5282
|
+
Fr
|
|
5295
5283
|
), Or = ({
|
|
5296
5284
|
value: e,
|
|
5297
5285
|
defaultValue: t,
|
|
@@ -5307,35 +5295,35 @@ const Qt = ({
|
|
|
5307
5295
|
...y
|
|
5308
5296
|
}) => {
|
|
5309
5297
|
const [f, h] = X(() => {
|
|
5310
|
-
const x = (C) => C instanceof Date ? C : Array.isArray(C) && C[0] ? C[0] : null,
|
|
5311
|
-
return new Date(
|
|
5298
|
+
const x = (C) => C instanceof Date ? C : Array.isArray(C) && C[0] ? C[0] : null, N = x(e) || x(t) || /* @__PURE__ */ new Date();
|
|
5299
|
+
return new Date(N.getFullYear(), N.getMonth(), 1);
|
|
5312
5300
|
}), [m, b] = X(0), [w, E] = X("day"), S = e !== void 0, [g, A] = X(
|
|
5313
5301
|
t || null
|
|
5314
|
-
),
|
|
5315
|
-
const x = f.getFullYear(),
|
|
5302
|
+
), M = S ? e || null : g, v = (x, N) => new Date(x, N + 1, 0).getDate(), k = ve(() => {
|
|
5303
|
+
const x = f.getFullYear(), N = f.getMonth(), C = v(x, N), G = (new Date(x, N, 1).getDay() - i + 7) % 7, ee = [], oe = v(x, N - 1);
|
|
5316
5304
|
for (let q = G - 1; q >= 0; q--)
|
|
5317
5305
|
ee.push({
|
|
5318
|
-
date: new Date(x,
|
|
5306
|
+
date: new Date(x, N - 1, oe - q),
|
|
5319
5307
|
isCurrentMonth: !1
|
|
5320
5308
|
});
|
|
5321
5309
|
for (let q = 1; q <= C; q++)
|
|
5322
|
-
ee.push({ date: new Date(x,
|
|
5323
|
-
const
|
|
5324
|
-
for (let q = 1; q <=
|
|
5310
|
+
ee.push({ date: new Date(x, N, q), isCurrentMonth: !0 });
|
|
5311
|
+
const W = 42 - ee.length;
|
|
5312
|
+
for (let q = 1; q <= W; q++)
|
|
5325
5313
|
ee.push({
|
|
5326
|
-
date: new Date(x,
|
|
5314
|
+
date: new Date(x, N + 1, q),
|
|
5327
5315
|
isCurrentMonth: !1
|
|
5328
5316
|
});
|
|
5329
5317
|
return ee;
|
|
5330
|
-
}, [f, i]),
|
|
5331
|
-
const x = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
5332
|
-
for (let G =
|
|
5318
|
+
}, [f, i]), R = ve(() => {
|
|
5319
|
+
const x = (/* @__PURE__ */ new Date()).getFullYear(), N = x - 100, C = x + 100, K = [];
|
|
5320
|
+
for (let G = N; G <= C; G++)
|
|
5333
5321
|
K.push(G);
|
|
5334
5322
|
return K;
|
|
5335
|
-
}, []),
|
|
5323
|
+
}, []), I = z(null);
|
|
5336
5324
|
_(() => {
|
|
5337
|
-
if (w === "year" &&
|
|
5338
|
-
const x =
|
|
5325
|
+
if (w === "year" && I.current) {
|
|
5326
|
+
const x = I.current.querySelector(
|
|
5339
5327
|
'[data-selected="true"]'
|
|
5340
5328
|
);
|
|
5341
5329
|
x && x.scrollIntoView({ block: "center" });
|
|
@@ -5349,7 +5337,7 @@ const Qt = ({
|
|
|
5349
5337
|
[l]
|
|
5350
5338
|
), J = ve(() => {
|
|
5351
5339
|
const x = new Date(2023, 0, 1 + i);
|
|
5352
|
-
return Array.from({ length: 7 }).map((
|
|
5340
|
+
return Array.from({ length: 7 }).map((N, C) => {
|
|
5353
5341
|
const K = new Date(x);
|
|
5354
5342
|
return K.setDate(x.getDate() + C), L.format(K).charAt(0).toUpperCase();
|
|
5355
5343
|
});
|
|
@@ -5358,32 +5346,32 @@ const Qt = ({
|
|
|
5358
5346
|
}, te = () => {
|
|
5359
5347
|
b(1), h((x) => new Date(x.getFullYear(), x.getMonth() + 1, 1));
|
|
5360
5348
|
}, U = (x) => {
|
|
5361
|
-
h((
|
|
5362
|
-
},
|
|
5363
|
-
let
|
|
5349
|
+
h((N) => new Date(x, N.getMonth(), 1)), E("day");
|
|
5350
|
+
}, F = (x, N) => x ? x.getDate() === N.getDate() && x.getMonth() === N.getMonth() && x.getFullYear() === N.getFullYear() : !1, D = (x) => F(/* @__PURE__ */ new Date(), x), B = (x) => {
|
|
5351
|
+
let N = x;
|
|
5364
5352
|
if (d === "single")
|
|
5365
|
-
|
|
5353
|
+
N = x;
|
|
5366
5354
|
else {
|
|
5367
|
-
const C =
|
|
5368
|
-
!K || K && G ?
|
|
5355
|
+
const C = M, [K, G] = Array.isArray(C) ? C : [null, null];
|
|
5356
|
+
!K || K && G ? N = [x, null] : x < K ? N = [x, K] : N = [K, x];
|
|
5369
5357
|
}
|
|
5370
|
-
S || A(
|
|
5358
|
+
S || A(N), n && n(N);
|
|
5371
5359
|
}, $ = (x) => {
|
|
5372
5360
|
if (d === "single")
|
|
5373
5361
|
return {
|
|
5374
|
-
isSelected:
|
|
5362
|
+
isSelected: F(M, x),
|
|
5375
5363
|
isStart: !1,
|
|
5376
5364
|
isEnd: !1,
|
|
5377
5365
|
isInRange: !1
|
|
5378
5366
|
};
|
|
5379
|
-
const
|
|
5367
|
+
const N = Array.isArray(M) ? M : [M, null], [C, K] = N, G = F(C, x), ee = F(K, x);
|
|
5380
5368
|
let oe = !1;
|
|
5381
5369
|
if (C && K) {
|
|
5382
5370
|
const le = new Date(
|
|
5383
5371
|
C.getFullYear(),
|
|
5384
5372
|
C.getMonth(),
|
|
5385
5373
|
C.getDate()
|
|
5386
|
-
).getTime(),
|
|
5374
|
+
).getTime(), W = new Date(
|
|
5387
5375
|
K.getFullYear(),
|
|
5388
5376
|
K.getMonth(),
|
|
5389
5377
|
K.getDate()
|
|
@@ -5392,11 +5380,11 @@ const Qt = ({
|
|
|
5392
5380
|
x.getMonth(),
|
|
5393
5381
|
x.getDate()
|
|
5394
5382
|
).getTime();
|
|
5395
|
-
oe = q > le && q <
|
|
5383
|
+
oe = q > le && q < W;
|
|
5396
5384
|
}
|
|
5397
5385
|
return { isSelected: G || ee, isStart: G, isEnd: ee, isInRange: oe };
|
|
5398
5386
|
}, P = Pr({
|
|
5399
|
-
hasSelected: !!
|
|
5387
|
+
hasSelected: !!M
|
|
5400
5388
|
}), Z = {
|
|
5401
5389
|
enter: (x) => ({
|
|
5402
5390
|
x: x > 0 ? "100%" : "-100%",
|
|
@@ -5444,7 +5432,7 @@ const Qt = ({
|
|
|
5444
5432
|
),
|
|
5445
5433
|
w === "day" && /* @__PURE__ */ j("div", { className: "flex items-center", children: [
|
|
5446
5434
|
/* @__PURE__ */ u(
|
|
5447
|
-
|
|
5435
|
+
Me,
|
|
5448
5436
|
{
|
|
5449
5437
|
size: "xSmall",
|
|
5450
5438
|
allowShapeTransformation: !1,
|
|
@@ -5455,7 +5443,7 @@ const Qt = ({
|
|
|
5455
5443
|
}
|
|
5456
5444
|
),
|
|
5457
5445
|
/* @__PURE__ */ u(
|
|
5458
|
-
|
|
5446
|
+
Me,
|
|
5459
5447
|
{
|
|
5460
5448
|
size: "xSmall",
|
|
5461
5449
|
allowShapeTransformation: !1,
|
|
@@ -5471,8 +5459,8 @@ const Qt = ({
|
|
|
5471
5459
|
"div",
|
|
5472
5460
|
{
|
|
5473
5461
|
className: "h-[280px] overflow-y-auto grid grid-cols-3 gap-2 p-2 scrollbar-hide",
|
|
5474
|
-
ref:
|
|
5475
|
-
children:
|
|
5462
|
+
ref: I,
|
|
5463
|
+
children: R.map((x) => /* @__PURE__ */ u(
|
|
5476
5464
|
Le,
|
|
5477
5465
|
{
|
|
5478
5466
|
size: "small",
|
|
@@ -5489,7 +5477,7 @@ const Qt = ({
|
|
|
5489
5477
|
))
|
|
5490
5478
|
}
|
|
5491
5479
|
) : /* @__PURE__ */ j(me, { children: [
|
|
5492
|
-
/* @__PURE__ */ u("div", { className: P.weekDays, children: J.map((x,
|
|
5480
|
+
/* @__PURE__ */ u("div", { className: P.weekDays, children: J.map((x, N) => /* @__PURE__ */ u("div", { className: P.weekDay, children: x }, N)) }),
|
|
5493
5481
|
/* @__PURE__ */ u("div", { className: "overflow-hidden relative min-h-[240px]", children: /* @__PURE__ */ u(
|
|
5494
5482
|
pe,
|
|
5495
5483
|
{
|
|
@@ -5506,10 +5494,10 @@ const Qt = ({
|
|
|
5506
5494
|
exit: "exit",
|
|
5507
5495
|
transition: { type: "spring", bounce: 0, duration: 0.3 },
|
|
5508
5496
|
className: P.daysGrid,
|
|
5509
|
-
children:
|
|
5497
|
+
children: k.map((x, N) => {
|
|
5510
5498
|
if (!x.isCurrentMonth)
|
|
5511
|
-
return /* @__PURE__ */ u("div", { className: P.dayCell },
|
|
5512
|
-
const { isSelected: C, isStart: K, isEnd: G, isInRange: ee } = $(x.date), oe =
|
|
5499
|
+
return /* @__PURE__ */ u("div", { className: P.dayCell }, N);
|
|
5500
|
+
const { isSelected: C, isStart: K, isEnd: G, isInRange: ee } = $(x.date), oe = D(x.date), le = r && x.date < r || s && x.date > s || (a == null ? void 0 : a(x.date));
|
|
5513
5501
|
return /* @__PURE__ */ u(
|
|
5514
5502
|
"div",
|
|
5515
5503
|
{
|
|
@@ -5517,8 +5505,8 @@ const Qt = ({
|
|
|
5517
5505
|
P.dayCell,
|
|
5518
5506
|
// Range background styles applied to the cell wrapper
|
|
5519
5507
|
ee && "bg-primary/20",
|
|
5520
|
-
K && (
|
|
5521
|
-
G && (
|
|
5508
|
+
K && (M == null ? void 0 : M[1]) && "bg-gradient-to-r from-transparent to-primary/20",
|
|
5509
|
+
G && (M == null ? void 0 : M[0]) && "bg-gradient-to-l from-transparent to-primary/20"
|
|
5522
5510
|
),
|
|
5523
5511
|
children: /* @__PURE__ */ u(
|
|
5524
5512
|
Le,
|
|
@@ -5540,13 +5528,13 @@ const Qt = ({
|
|
|
5540
5528
|
text: !C && !oe
|
|
5541
5529
|
}),
|
|
5542
5530
|
label: x.date.getDate().toString(),
|
|
5543
|
-
onClick: () =>
|
|
5531
|
+
onClick: () => B(x.date),
|
|
5544
5532
|
disabled: le,
|
|
5545
5533
|
children: x.date.getDate().toString()
|
|
5546
5534
|
}
|
|
5547
5535
|
)
|
|
5548
5536
|
},
|
|
5549
|
-
|
|
5537
|
+
N
|
|
5550
5538
|
);
|
|
5551
5539
|
})
|
|
5552
5540
|
},
|
|
@@ -5580,20 +5568,20 @@ const Qt = ({
|
|
|
5580
5568
|
showSupportingText: S,
|
|
5581
5569
|
id: g,
|
|
5582
5570
|
style: A,
|
|
5583
|
-
ref:
|
|
5571
|
+
ref: M,
|
|
5584
5572
|
onFocus: v,
|
|
5585
|
-
onBlur:
|
|
5586
|
-
options:
|
|
5587
|
-
children:
|
|
5573
|
+
onBlur: k,
|
|
5574
|
+
options: R,
|
|
5575
|
+
children: I,
|
|
5588
5576
|
...O
|
|
5589
5577
|
}) => {
|
|
5590
5578
|
var rt;
|
|
5591
|
-
const L = Ce(), J = g || L, V = `${J}-helper`, te = w !== void 0, [U,
|
|
5579
|
+
const L = Ce(), J = g || L, V = `${J}-helper`, te = w !== void 0, [U, F] = X(E ?? ""), D = te ? w : U, [B, $] = X(!1), [P, Z] = X(!!(r != null && r.length)), x = z(null), N = M || x, C = z(null), K = z(null), G = z(null), ee = S ?? (!!(r != null && r.length) || !!(o != null && o.length));
|
|
5592
5580
|
_(() => {
|
|
5593
5581
|
Z(!!(r != null && r.length));
|
|
5594
5582
|
}, [r]);
|
|
5595
5583
|
const oe = () => {
|
|
5596
|
-
|
|
5584
|
+
N.current && !B && !n && f !== "select" && N.current.focus();
|
|
5597
5585
|
};
|
|
5598
5586
|
_(() => {
|
|
5599
5587
|
if (!(!t || n) && f !== "select") {
|
|
@@ -5602,19 +5590,19 @@ const Qt = ({
|
|
|
5602
5590
|
});
|
|
5603
5591
|
return () => window.cancelAnimationFrame(Q);
|
|
5604
5592
|
}
|
|
5605
|
-
}, [t, n,
|
|
5606
|
-
|
|
5607
|
-
}, [
|
|
5593
|
+
}, [t, n, N, f]), _(() => {
|
|
5594
|
+
B ? (Z(!1), v == null || v()) : (r != null && r.length && Z(!0), k == null || k());
|
|
5595
|
+
}, [B]);
|
|
5608
5596
|
const le = (Q) => {
|
|
5609
5597
|
const ae = Q.target.value;
|
|
5610
|
-
te ||
|
|
5611
|
-
},
|
|
5612
|
-
const Q = String(
|
|
5598
|
+
te || F(ae), Z(!1), b && b(Q);
|
|
5599
|
+
}, W = f === "date", [q, T] = X(!1), [re, ce] = X(null), Se = ve(() => {
|
|
5600
|
+
const Q = String(D);
|
|
5613
5601
|
if (!Q) return null;
|
|
5614
5602
|
const [ae, ke, Re] = Q.split("-").map(Number);
|
|
5615
5603
|
return ae && ke && Re ? new Date(ae, ke - 1, Re) : null;
|
|
5616
|
-
}, [
|
|
5617
|
-
n || (q ?
|
|
5604
|
+
}, [D]), De = () => {
|
|
5605
|
+
n || (q ? T(!1) : (ce(Se), T(!0)));
|
|
5618
5606
|
};
|
|
5619
5607
|
_(() => {
|
|
5620
5608
|
q ? $(!0) : (!de || !ge) && $(!1);
|
|
@@ -5626,11 +5614,11 @@ const Qt = ({
|
|
|
5626
5614
|
}, ae = (we) => {
|
|
5627
5615
|
var st, ot;
|
|
5628
5616
|
const $e = we.target, Oe = (st = G.current) == null ? void 0 : st.contains($e), on = (ot = K.current) == null ? void 0 : ot.contains($e);
|
|
5629
|
-
!Oe && !on &&
|
|
5617
|
+
!Oe && !on && T(!1);
|
|
5630
5618
|
}, ke = (we) => {
|
|
5631
|
-
Q(we.target) ||
|
|
5619
|
+
Q(we.target) || T(!1);
|
|
5632
5620
|
}, Re = (we) => {
|
|
5633
|
-
we.key === "Escape" &&
|
|
5621
|
+
we.key === "Escape" && T(!1);
|
|
5634
5622
|
};
|
|
5635
5623
|
return document.addEventListener("pointerdown", ae), document.addEventListener("focusin", ke), document.addEventListener("keydown", Re), () => {
|
|
5636
5624
|
document.removeEventListener("pointerdown", ae), document.removeEventListener("focusin", ke), document.removeEventListener("keydown", Re);
|
|
@@ -5638,25 +5626,25 @@ const Qt = ({
|
|
|
5638
5626
|
}, [q]);
|
|
5639
5627
|
const en = () => {
|
|
5640
5628
|
const Q = re ? re.toLocaleDateString("en-CA") : "";
|
|
5641
|
-
te ||
|
|
5629
|
+
te || F(Q), b && b({
|
|
5642
5630
|
target: {
|
|
5643
5631
|
value: Q,
|
|
5644
5632
|
name: l,
|
|
5645
5633
|
type: f
|
|
5646
5634
|
}
|
|
5647
|
-
}),
|
|
5635
|
+
}), T(!1);
|
|
5648
5636
|
}, de = f === "select", [ge, He] = X(!1), ze = z(null), et = ve(() => {
|
|
5649
|
-
if (de &&
|
|
5650
|
-
const Q =
|
|
5651
|
-
(ae) => String(ae.value) === String(
|
|
5637
|
+
if (de && R) {
|
|
5638
|
+
const Q = R.find(
|
|
5639
|
+
(ae) => String(ae.value) === String(D)
|
|
5652
5640
|
);
|
|
5653
|
-
return Q ? Q.label :
|
|
5641
|
+
return Q ? Q.label : D;
|
|
5654
5642
|
}
|
|
5655
|
-
return
|
|
5656
|
-
}, [
|
|
5643
|
+
return D;
|
|
5644
|
+
}, [D, de, R]), tt = () => {
|
|
5657
5645
|
n || (He(!ge), $(!ge));
|
|
5658
5646
|
}, nt = (Q) => {
|
|
5659
|
-
if (te ||
|
|
5647
|
+
if (te || F(String(Q)), b) {
|
|
5660
5648
|
const ae = {
|
|
5661
5649
|
target: {
|
|
5662
5650
|
value: String(Q),
|
|
@@ -5679,11 +5667,11 @@ const Qt = ({
|
|
|
5679
5667
|
}, [ge]);
|
|
5680
5668
|
const Ne = ve(() => {
|
|
5681
5669
|
if (d) return d;
|
|
5682
|
-
if (
|
|
5670
|
+
if (W) return gr;
|
|
5683
5671
|
if (de) return ge ? wr : Kt;
|
|
5684
|
-
}, [d,
|
|
5672
|
+
}, [d, W, de, ge]), tn = W || de ? "[&::-webkit-calendar-picker-indicator]:hidden cursor-pointer selection:bg-transparent" : "", ye = fr({
|
|
5685
5673
|
showSupportingText: ee,
|
|
5686
|
-
isFocused:
|
|
5674
|
+
isFocused: B,
|
|
5687
5675
|
showErrorIcon: P,
|
|
5688
5676
|
disabled: n,
|
|
5689
5677
|
name: l,
|
|
@@ -5704,7 +5692,7 @@ const Qt = ({
|
|
|
5704
5692
|
}), nn = h ? wn : "input", rn = h ? {} : {
|
|
5705
5693
|
type: de ? "text" : f,
|
|
5706
5694
|
readOnly: de
|
|
5707
|
-
}, Ve =
|
|
5695
|
+
}, Ve = B || typeof D == "string" && D.length > 0 || f == "date" || de && ge, Pe = Ve && e === "outlined", sn = !Pe;
|
|
5708
5696
|
return /* @__PURE__ */ j("div", { ref: C, className: ye.textField, style: A, children: [
|
|
5709
5697
|
/* @__PURE__ */ j(
|
|
5710
5698
|
"fieldset",
|
|
@@ -5766,13 +5754,13 @@ const Qt = ({
|
|
|
5766
5754
|
nn,
|
|
5767
5755
|
{
|
|
5768
5756
|
...O,
|
|
5769
|
-
ref:
|
|
5757
|
+
ref: N,
|
|
5770
5758
|
value: et,
|
|
5771
5759
|
onChange: le,
|
|
5772
5760
|
className: p(ye.input, tn),
|
|
5773
5761
|
id: J,
|
|
5774
5762
|
name: l,
|
|
5775
|
-
placeholder:
|
|
5763
|
+
placeholder: B ? s ?? void 0 : "",
|
|
5776
5764
|
onFocus: () => {
|
|
5777
5765
|
de || $(!0);
|
|
5778
5766
|
},
|
|
@@ -5792,13 +5780,13 @@ const Qt = ({
|
|
|
5792
5780
|
Ne && /* @__PURE__ */ u(
|
|
5793
5781
|
"div",
|
|
5794
5782
|
{
|
|
5795
|
-
ref:
|
|
5783
|
+
ref: W ? K : void 0,
|
|
5796
5784
|
onClick: (Q) => {
|
|
5797
|
-
Q.stopPropagation(),
|
|
5785
|
+
Q.stopPropagation(), W && De(), de && tt();
|
|
5798
5786
|
},
|
|
5799
5787
|
className: p(
|
|
5800
5788
|
ye.trailingIcon,
|
|
5801
|
-
(
|
|
5789
|
+
(W || de) && "cursor-pointer"
|
|
5802
5790
|
),
|
|
5803
5791
|
children: /* @__PURE__ */ u("div", { className: "flex items-center justify-center w-full h-full", children: Y.isValidElement(Ne) ? Ne : /* @__PURE__ */ u(
|
|
5804
5792
|
fe,
|
|
@@ -5830,7 +5818,7 @@ const Qt = ({
|
|
|
5830
5818
|
}
|
|
5831
5819
|
),
|
|
5832
5820
|
ee && /* @__PURE__ */ u("p", { className: ye.supportingText, id: V, children: r != null && r.length ? r : o != null && o.length ? o : " " }),
|
|
5833
|
-
|
|
5821
|
+
W && q && /* @__PURE__ */ u(me, { children: /* @__PURE__ */ u(We, { anchorRef: C, position: "bottom", children: /* @__PURE__ */ j(
|
|
5834
5822
|
"div",
|
|
5835
5823
|
{
|
|
5836
5824
|
ref: G,
|
|
@@ -5850,7 +5838,7 @@ const Qt = ({
|
|
|
5850
5838
|
{
|
|
5851
5839
|
variant: "text",
|
|
5852
5840
|
size: "small",
|
|
5853
|
-
onClick: () =>
|
|
5841
|
+
onClick: () => T(!1),
|
|
5854
5842
|
children: "Cancel"
|
|
5855
5843
|
}
|
|
5856
5844
|
),
|
|
@@ -5868,16 +5856,16 @@ const Qt = ({
|
|
|
5868
5856
|
}
|
|
5869
5857
|
) }) }),
|
|
5870
5858
|
de && ge && /* @__PURE__ */ u(
|
|
5871
|
-
|
|
5859
|
+
We,
|
|
5872
5860
|
{
|
|
5873
5861
|
anchorRef: C,
|
|
5874
5862
|
position: "bottom",
|
|
5875
5863
|
style: { width: (rt = C.current) == null ? void 0 : rt.offsetWidth },
|
|
5876
|
-
children: /* @__PURE__ */ u("div", { ref: ze, children: /* @__PURE__ */ u(Jt, { className: "max-w-full", selected:
|
|
5864
|
+
children: /* @__PURE__ */ u("div", { ref: ze, children: /* @__PURE__ */ u(Jt, { className: "max-w-full", selected: D, children: I ? Y.Children.map(I, (Q) => Y.isValidElement(Q) && Q.type === qe ? Y.cloneElement(Q, {
|
|
5877
5865
|
onClick: (ae) => {
|
|
5878
5866
|
Q.props.onClick && Q.props.onClick(ae), nt(Q.props.value ?? "");
|
|
5879
5867
|
}
|
|
5880
|
-
}) : Q) :
|
|
5868
|
+
}) : Q) : R == null ? void 0 : R.map((Q, ae) => Q.type === "divider" ? /* @__PURE__ */ u(Te, { className: "my-1" }, ae) : Q.type === "headline" ? /* @__PURE__ */ u(Gt, { label: Q.label }, ae) : /* @__PURE__ */ u(
|
|
5881
5869
|
qe,
|
|
5882
5870
|
{
|
|
5883
5871
|
onClick: (ke) => {
|
|
@@ -5891,7 +5879,7 @@ const Qt = ({
|
|
|
5891
5879
|
}
|
|
5892
5880
|
)
|
|
5893
5881
|
] });
|
|
5894
|
-
},
|
|
5882
|
+
}, Br = ({ isSelected: e, icon: t, label: n, variant: r }) => ({
|
|
5895
5883
|
navigationRailItem: p(
|
|
5896
5884
|
" group/navigation-rail-item flex flex-col pt-1 pb-1.5 cursor-pointer",
|
|
5897
5885
|
{
|
|
@@ -5923,9 +5911,9 @@ const Qt = ({
|
|
|
5923
5911
|
"text-label-large ": r == "horizontal",
|
|
5924
5912
|
"text-label-medium": r == "vertical"
|
|
5925
5913
|
})
|
|
5926
|
-
}),
|
|
5914
|
+
}), Tr = ne(
|
|
5927
5915
|
"navigationRailItem",
|
|
5928
|
-
|
|
5916
|
+
Br
|
|
5929
5917
|
), Hr = ({ label: e }) => /* @__PURE__ */ u("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ u("p", { className: "text-label-large text-on-surface-variant", children: e }) }), zr = ({
|
|
5930
5918
|
className: e,
|
|
5931
5919
|
onClick: t,
|
|
@@ -5948,7 +5936,7 @@ const Qt = ({
|
|
|
5948
5936
|
...S
|
|
5949
5937
|
}) => {
|
|
5950
5938
|
E && (n = E);
|
|
5951
|
-
const g = z(null), A = y || g, [
|
|
5939
|
+
const g = z(null), A = y || g, [M, v] = X(d);
|
|
5952
5940
|
_(() => {
|
|
5953
5941
|
d && l == null ? v(!0) : v(l == c && c != null);
|
|
5954
5942
|
}, [l]), _(() => {
|
|
@@ -5959,9 +5947,9 @@ const Qt = ({
|
|
|
5959
5947
|
icon: a
|
|
5960
5948
|
});
|
|
5961
5949
|
}, [l]);
|
|
5962
|
-
const
|
|
5950
|
+
const k = s ? "a" : "button", R = (O) => {
|
|
5963
5951
|
i && i(c ?? null), t && t(O);
|
|
5964
|
-
},
|
|
5952
|
+
}, I = Tr({
|
|
5965
5953
|
isExtended: h,
|
|
5966
5954
|
extendedOnly: w,
|
|
5967
5955
|
className: e,
|
|
@@ -5969,11 +5957,11 @@ const Qt = ({
|
|
|
5969
5957
|
selectedItem: l,
|
|
5970
5958
|
index: c,
|
|
5971
5959
|
transition: f,
|
|
5972
|
-
selected:
|
|
5960
|
+
selected: M,
|
|
5973
5961
|
variant: r,
|
|
5974
5962
|
icon: a,
|
|
5975
5963
|
label: n,
|
|
5976
|
-
isSelected:
|
|
5964
|
+
isSelected: M,
|
|
5977
5965
|
setSelectedItem: i,
|
|
5978
5966
|
href: s,
|
|
5979
5967
|
children: n,
|
|
@@ -5983,15 +5971,15 @@ const Qt = ({
|
|
|
5983
5971
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5984
5972
|
// @ts-expect-error
|
|
5985
5973
|
/* @__PURE__ */ j(
|
|
5986
|
-
|
|
5974
|
+
k,
|
|
5987
5975
|
{
|
|
5988
5976
|
...S,
|
|
5989
5977
|
role: "tab",
|
|
5990
|
-
"aria-selected":
|
|
5978
|
+
"aria-selected": M,
|
|
5991
5979
|
ref: A,
|
|
5992
5980
|
href: s,
|
|
5993
|
-
className:
|
|
5994
|
-
onClick:
|
|
5981
|
+
className: I.navigationRailItem,
|
|
5982
|
+
onClick: R,
|
|
5995
5983
|
style: { transition: f.duration + "s", ...b },
|
|
5996
5984
|
children: [
|
|
5997
5985
|
/* @__PURE__ */ j(
|
|
@@ -6001,16 +5989,16 @@ const Qt = ({
|
|
|
6001
5989
|
transition: r == "horizontal" ? f.duration + `s, gap ${f.duration / 2}s ${f.duration - f.duration / 2}s` : f.duration + `s, gap ${f.duration / 3}s ${f.duration - f.duration / 3}s`
|
|
6002
5990
|
},
|
|
6003
5991
|
transition: f,
|
|
6004
|
-
className:
|
|
5992
|
+
className: I.container,
|
|
6005
5993
|
children: [
|
|
6006
5994
|
/* @__PURE__ */ u(
|
|
6007
5995
|
be,
|
|
6008
5996
|
{
|
|
6009
5997
|
style: { transition: f.duration + "s" },
|
|
6010
|
-
className:
|
|
5998
|
+
className: I.stateLayer,
|
|
6011
5999
|
colorName: p({
|
|
6012
|
-
"on-surface": !
|
|
6013
|
-
"on-secondary-container":
|
|
6000
|
+
"on-surface": !M,
|
|
6001
|
+
"on-secondary-container": M
|
|
6014
6002
|
}),
|
|
6015
6003
|
stateClassName: "state-ripple-group-[navigation-rail-item]"
|
|
6016
6004
|
}
|
|
@@ -6018,8 +6006,8 @@ const Qt = ({
|
|
|
6018
6006
|
a && /* @__PURE__ */ u(
|
|
6019
6007
|
fe,
|
|
6020
6008
|
{
|
|
6021
|
-
icon:
|
|
6022
|
-
className:
|
|
6009
|
+
icon: M ? m : a,
|
|
6010
|
+
className: I.icon
|
|
6023
6011
|
}
|
|
6024
6012
|
),
|
|
6025
6013
|
/* @__PURE__ */ u(pe, { children: r == "horizontal" && (() => {
|
|
@@ -6046,7 +6034,7 @@ const Qt = ({
|
|
|
6046
6034
|
initial: O,
|
|
6047
6035
|
animate: L,
|
|
6048
6036
|
exit: O,
|
|
6049
|
-
className:
|
|
6037
|
+
className: I.label,
|
|
6050
6038
|
children: n
|
|
6051
6039
|
}
|
|
6052
6040
|
);
|
|
@@ -6081,7 +6069,7 @@ const Qt = ({
|
|
|
6081
6069
|
initial: L,
|
|
6082
6070
|
animate: L,
|
|
6083
6071
|
exit: O,
|
|
6084
|
-
className:
|
|
6072
|
+
className: I.label,
|
|
6085
6073
|
transition: f,
|
|
6086
6074
|
children: n
|
|
6087
6075
|
}
|
|
@@ -6124,7 +6112,7 @@ const Qt = ({
|
|
|
6124
6112
|
label: "Open menu"
|
|
6125
6113
|
},
|
|
6126
6114
|
opened: {
|
|
6127
|
-
icon:
|
|
6115
|
+
icon: Fe,
|
|
6128
6116
|
label: "Close menu"
|
|
6129
6117
|
}
|
|
6130
6118
|
},
|
|
@@ -6136,18 +6124,18 @@ const Qt = ({
|
|
|
6136
6124
|
const [f, h] = X(null), [m, b] = X(a);
|
|
6137
6125
|
let w;
|
|
6138
6126
|
s == 0 || s != null ? w = s : w = f;
|
|
6139
|
-
const E = y || h, S = z(null), g = (
|
|
6140
|
-
t == null || t(
|
|
6127
|
+
const E = y || h, S = z(null), g = (I) => {
|
|
6128
|
+
t == null || t(I);
|
|
6141
6129
|
};
|
|
6142
|
-
function A(
|
|
6130
|
+
function A(I) {
|
|
6143
6131
|
const O = [];
|
|
6144
|
-
return un.forEach(
|
|
6145
|
-
|
|
6132
|
+
return un.forEach(I, (L) => {
|
|
6133
|
+
Ie(L) && L.type === dn ? O.push(...A(L.props.children)) : O.push(L);
|
|
6146
6134
|
}), O;
|
|
6147
6135
|
}
|
|
6148
|
-
const
|
|
6149
|
-
(
|
|
6150
|
-
),
|
|
6136
|
+
const M = A(n), v = M.filter(
|
|
6137
|
+
(I) => Ie(I) && I.type === je
|
|
6138
|
+
), k = Yr({
|
|
6151
6139
|
children: n,
|
|
6152
6140
|
onItemSelected: t,
|
|
6153
6141
|
selectedItem: w,
|
|
@@ -6162,49 +6150,49 @@ const Qt = ({
|
|
|
6162
6150
|
onExtendedChange: o
|
|
6163
6151
|
});
|
|
6164
6152
|
d = { duration: 0.3, ...d };
|
|
6165
|
-
const
|
|
6166
|
-
return
|
|
6153
|
+
const R = z(!1);
|
|
6154
|
+
return R.current = !1, _(() => {
|
|
6167
6155
|
o == null || o(m ?? !1);
|
|
6168
6156
|
}, [m]), /* @__PURE__ */ j(
|
|
6169
6157
|
"div",
|
|
6170
6158
|
{
|
|
6171
6159
|
style: { transition: d.duration + "s", ...c },
|
|
6172
6160
|
ref: S,
|
|
6173
|
-
className:
|
|
6161
|
+
className: k.navigationRail,
|
|
6174
6162
|
children: [
|
|
6175
|
-
/* @__PURE__ */ j("div", { className:
|
|
6163
|
+
/* @__PURE__ */ j("div", { className: k.header, children: [
|
|
6176
6164
|
/* @__PURE__ */ u(
|
|
6177
|
-
|
|
6165
|
+
Me,
|
|
6178
6166
|
{
|
|
6179
6167
|
onClick: () => b(!m),
|
|
6180
6168
|
label: m ? i == null ? void 0 : i.opened.label : i == null ? void 0 : i.closed.label,
|
|
6181
|
-
className:
|
|
6169
|
+
className: k.menuIcon,
|
|
6182
6170
|
icon: m ? i.opened.icon : i == null ? void 0 : i.closed.icon
|
|
6183
6171
|
}
|
|
6184
6172
|
),
|
|
6185
|
-
v.length > 0 &&
|
|
6173
|
+
v.length > 0 && Be(v[0], {
|
|
6186
6174
|
transition: d,
|
|
6187
6175
|
isExtended: m,
|
|
6188
6176
|
className: "!shadow-none mx-5 " + v[0].props.className
|
|
6189
6177
|
})
|
|
6190
6178
|
] }),
|
|
6191
|
-
/* @__PURE__ */ u("div", { className:
|
|
6192
|
-
let
|
|
6193
|
-
return
|
|
6179
|
+
/* @__PURE__ */ u("div", { className: k.segments, children: (() => {
|
|
6180
|
+
let I = 0;
|
|
6181
|
+
return M.map((O) => Ie(O) && O.type === zr ? Be(
|
|
6194
6182
|
O,
|
|
6195
6183
|
{
|
|
6196
|
-
key:
|
|
6197
|
-
index:
|
|
6184
|
+
key: I,
|
|
6185
|
+
index: I++,
|
|
6198
6186
|
// Utilise et incrémente le compteur dédié
|
|
6199
6187
|
variant: m ? "horizontal" : "vertical",
|
|
6200
6188
|
selectedItem: w,
|
|
6201
6189
|
setSelectedItem: E,
|
|
6202
6190
|
onItemSelected: g,
|
|
6203
6191
|
transition: d,
|
|
6204
|
-
extendedOnly:
|
|
6192
|
+
extendedOnly: R.current,
|
|
6205
6193
|
isExtended: m
|
|
6206
6194
|
}
|
|
6207
|
-
) :
|
|
6195
|
+
) : Ie(O) && O.type === je ? null : Ie(O) && O.type === Hr ? (R.current = !0, m ? Be(O, {}) : null) : O);
|
|
6208
6196
|
})() }),
|
|
6209
6197
|
/* @__PURE__ */ u("div", { className: "flex-1 max-h-[160px]" })
|
|
6210
6198
|
]
|
|
@@ -6219,7 +6207,7 @@ function _s(e) {
|
|
|
6219
6207
|
});
|
|
6220
6208
|
}
|
|
6221
6209
|
export {
|
|
6222
|
-
|
|
6210
|
+
We as AnchorPositioner,
|
|
6223
6211
|
rs as AnimateOnScrollInit,
|
|
6224
6212
|
Le as Button,
|
|
6225
6213
|
Cs as Card,
|
|
@@ -6231,11 +6219,11 @@ export {
|
|
|
6231
6219
|
$s as ContextMenu,
|
|
6232
6220
|
Ln as CustomScroll,
|
|
6233
6221
|
Or as DatePicker,
|
|
6234
|
-
|
|
6222
|
+
Te as Divider,
|
|
6235
6223
|
je as Fab,
|
|
6236
|
-
|
|
6224
|
+
Ws as FabMenu,
|
|
6237
6225
|
fe as Icon,
|
|
6238
|
-
|
|
6226
|
+
Me as IconButton,
|
|
6239
6227
|
Jt as Menu,
|
|
6240
6228
|
pt as MenuGroup,
|
|
6241
6229
|
Gt as MenuHeadline,
|
|
@@ -6246,17 +6234,17 @@ export {
|
|
|
6246
6234
|
mr as ProgressIndicator,
|
|
6247
6235
|
bn as RippleEffect,
|
|
6248
6236
|
Ps as SideSheet,
|
|
6249
|
-
|
|
6237
|
+
Fs as Slider,
|
|
6250
6238
|
ts as SmoothScroll,
|
|
6251
6239
|
Os as Snackbar,
|
|
6252
6240
|
be as State,
|
|
6253
|
-
|
|
6241
|
+
Bs as Switch,
|
|
6254
6242
|
On as SyncedFixedWrapper,
|
|
6255
6243
|
Ar as Tab,
|
|
6256
6244
|
Hs as TabGroup,
|
|
6257
|
-
|
|
6245
|
+
Wr as TabPanel,
|
|
6258
6246
|
zs as TabPanels,
|
|
6259
|
-
|
|
6247
|
+
Ts as Tabs,
|
|
6260
6248
|
Vs as TextField,
|
|
6261
6249
|
ns as ThemeProvider,
|
|
6262
6250
|
Qt as Tooltip,
|
|
@@ -6285,9 +6273,9 @@ export {
|
|
|
6285
6273
|
ys as menuStyle,
|
|
6286
6274
|
Ee as normalize,
|
|
6287
6275
|
gs as progressIndicatorStyle,
|
|
6288
|
-
|
|
6276
|
+
Bt as sideSheetConfig,
|
|
6289
6277
|
sr as sideSheetStyle,
|
|
6290
|
-
|
|
6278
|
+
Tt as sliderConfig,
|
|
6291
6279
|
bs as sliderStyle,
|
|
6292
6280
|
xs as snackbarStyle,
|
|
6293
6281
|
Ss as switchStyle,
|
|
@@ -6295,8 +6283,8 @@ export {
|
|
|
6295
6283
|
Ls as tabPanelsStyle,
|
|
6296
6284
|
Ns as tabStyle,
|
|
6297
6285
|
ks as tabsStyle,
|
|
6298
|
-
|
|
6299
|
-
|
|
6286
|
+
Is as textFieldStyle,
|
|
6287
|
+
Ms as toolStyle,
|
|
6300
6288
|
_n as useButtonStyle,
|
|
6301
6289
|
Xn as useCardStyle,
|
|
6302
6290
|
Un as useCarouselItemStyle,
|