@ah-automation.nl/component-lib 0.0.3 → 0.0.4
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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as g, jsxs as J, Fragment as Je } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import Te, { useState as ti, useLayoutEffect as ni, forwardRef as so, createElement as Yt } from "react";
|
|
4
4
|
import * as xt from "react-dom";
|
|
@@ -20,24 +20,24 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kn = co, l
|
|
|
20
20
|
var o;
|
|
21
21
|
if (t?.variants == null) return kn(e, n?.class, n?.className);
|
|
22
22
|
const { variants: r, defaultVariants: i } = t, s = Object.keys(r).map((d) => {
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
25
|
-
const m = An(
|
|
23
|
+
const u = n?.[d], p = i?.[d];
|
|
24
|
+
if (u === null) return null;
|
|
25
|
+
const m = An(u) || An(p);
|
|
26
26
|
return r[d][m];
|
|
27
|
-
}), a = n && Object.entries(n).reduce((d,
|
|
28
|
-
let [p, m] =
|
|
27
|
+
}), a = n && Object.entries(n).reduce((d, u) => {
|
|
28
|
+
let [p, m] = u;
|
|
29
29
|
return m === void 0 || (d[p] = m), d;
|
|
30
|
-
}, {}), c = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d,
|
|
31
|
-
let { class: p, className: m, ...h } =
|
|
32
|
-
return Object.entries(h).every((
|
|
33
|
-
let [
|
|
34
|
-
return Array.isArray(
|
|
30
|
+
}, {}), c = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, u) => {
|
|
31
|
+
let { class: p, className: m, ...h } = u;
|
|
32
|
+
return Object.entries(h).every((b) => {
|
|
33
|
+
let [f, v] = b;
|
|
34
|
+
return Array.isArray(v) ? v.includes({
|
|
35
35
|
...i,
|
|
36
36
|
...a
|
|
37
|
-
}[
|
|
37
|
+
}[f]) : {
|
|
38
38
|
...i,
|
|
39
39
|
...a
|
|
40
|
-
}[
|
|
40
|
+
}[f] === v;
|
|
41
41
|
}) ? [
|
|
42
42
|
...d,
|
|
43
43
|
p,
|
|
@@ -75,10 +75,10 @@ function Ge(e) {
|
|
|
75
75
|
const t = /* @__PURE__ */ ri(e), n = l.forwardRef((o, r) => {
|
|
76
76
|
const { children: i, ...s } = o, a = l.Children.toArray(i), c = a.find(si);
|
|
77
77
|
if (c) {
|
|
78
|
-
const d = c.props.children,
|
|
79
|
-
return /* @__PURE__ */
|
|
78
|
+
const d = c.props.children, u = a.map((p) => p === c ? l.Children.count(d) > 1 ? l.Children.only(null) : l.isValidElement(d) ? d.props.children : null : p);
|
|
79
|
+
return /* @__PURE__ */ g(t, { ...s, ref: r, children: l.isValidElement(d) ? l.cloneElement(d, void 0, u) : null });
|
|
80
80
|
}
|
|
81
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ g(t, { ...s, ref: r, children: i });
|
|
82
82
|
});
|
|
83
83
|
return n.displayName = `${e}.Slot`, n;
|
|
84
84
|
}
|
|
@@ -135,7 +135,7 @@ var li = [
|
|
|
135
135
|
], K = li.reduce((e, t) => {
|
|
136
136
|
const n = /* @__PURE__ */ Ge(`Primitive.${t}`), o = l.forwardRef((r, i) => {
|
|
137
137
|
const { asChild: s, ...a } = r, c = s ? n : t;
|
|
138
|
-
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
138
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(c, { ...a, ref: i });
|
|
139
139
|
});
|
|
140
140
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
141
141
|
}, {});
|
|
@@ -155,7 +155,7 @@ var po = Object.freeze({
|
|
|
155
155
|
whiteSpace: "nowrap",
|
|
156
156
|
wordWrap: "normal"
|
|
157
157
|
}), ui = "VisuallyHidden", fi = l.forwardRef(
|
|
158
|
-
(e, t) => /* @__PURE__ */
|
|
158
|
+
(e, t) => /* @__PURE__ */ g(
|
|
159
159
|
K.span,
|
|
160
160
|
{
|
|
161
161
|
...e,
|
|
@@ -168,7 +168,7 @@ fi.displayName = ui;
|
|
|
168
168
|
function pi(e, t) {
|
|
169
169
|
const n = l.createContext(t), o = (i) => {
|
|
170
170
|
const { children: s, ...a } = i, c = l.useMemo(() => a, Object.values(a));
|
|
171
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ g(n.Provider, { value: c, children: s });
|
|
172
172
|
};
|
|
173
173
|
o.displayName = e + "Provider";
|
|
174
174
|
function r(i) {
|
|
@@ -185,17 +185,17 @@ function St(e, t = []) {
|
|
|
185
185
|
const a = l.createContext(s), c = n.length;
|
|
186
186
|
n = [...n, s];
|
|
187
187
|
const d = (p) => {
|
|
188
|
-
const { scope: m, children: h, ...
|
|
189
|
-
return /* @__PURE__ */
|
|
188
|
+
const { scope: m, children: h, ...b } = p, f = m?.[e]?.[c] || a, v = l.useMemo(() => b, Object.values(b));
|
|
189
|
+
return /* @__PURE__ */ g(f.Provider, { value: v, children: h });
|
|
190
190
|
};
|
|
191
191
|
d.displayName = i + "Provider";
|
|
192
|
-
function
|
|
193
|
-
const h = m?.[e]?.[c] || a,
|
|
194
|
-
if (
|
|
192
|
+
function u(p, m) {
|
|
193
|
+
const h = m?.[e]?.[c] || a, b = l.useContext(h);
|
|
194
|
+
if (b) return b;
|
|
195
195
|
if (s !== void 0) return s;
|
|
196
196
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
197
197
|
}
|
|
198
|
-
return [d,
|
|
198
|
+
return [d, u];
|
|
199
199
|
}
|
|
200
200
|
const r = () => {
|
|
201
201
|
const i = n.map((s) => l.createContext(s));
|
|
@@ -231,41 +231,41 @@ function hi(e) {
|
|
|
231
231
|
const t = e + "CollectionProvider", [n, o] = St(t), [r, i] = n(
|
|
232
232
|
t,
|
|
233
233
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
234
|
-
), s = (
|
|
235
|
-
const { scope:
|
|
236
|
-
return /* @__PURE__ */
|
|
234
|
+
), s = (f) => {
|
|
235
|
+
const { scope: v, children: w } = f, y = Te.useRef(null), x = Te.useRef(/* @__PURE__ */ new Map()).current;
|
|
236
|
+
return /* @__PURE__ */ g(r, { scope: v, itemMap: x, collectionRef: y, children: w });
|
|
237
237
|
};
|
|
238
238
|
s.displayName = t;
|
|
239
239
|
const a = e + "CollectionSlot", c = /* @__PURE__ */ Ge(a), d = Te.forwardRef(
|
|
240
|
-
(
|
|
241
|
-
const { scope:
|
|
242
|
-
return /* @__PURE__ */
|
|
240
|
+
(f, v) => {
|
|
241
|
+
const { scope: w, children: y } = f, x = i(a, w), S = ee(v, x.collectionRef);
|
|
242
|
+
return /* @__PURE__ */ g(c, { ref: S, children: y });
|
|
243
243
|
}
|
|
244
244
|
);
|
|
245
245
|
d.displayName = a;
|
|
246
|
-
const
|
|
247
|
-
(
|
|
248
|
-
const { scope:
|
|
246
|
+
const u = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ Ge(u), h = Te.forwardRef(
|
|
247
|
+
(f, v) => {
|
|
248
|
+
const { scope: w, children: y, ...x } = f, S = Te.useRef(null), R = ee(v, S), P = i(u, w);
|
|
249
249
|
return Te.useEffect(() => (P.itemMap.set(S, { ref: S, ...x }), () => {
|
|
250
250
|
P.itemMap.delete(S);
|
|
251
|
-
})), /* @__PURE__ */
|
|
251
|
+
})), /* @__PURE__ */ g(m, { [p]: "", ref: R, children: y });
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
h.displayName =
|
|
255
|
-
function
|
|
256
|
-
const
|
|
254
|
+
h.displayName = u;
|
|
255
|
+
function b(f) {
|
|
256
|
+
const v = i(e + "CollectionConsumer", f);
|
|
257
257
|
return Te.useCallback(() => {
|
|
258
|
-
const y =
|
|
258
|
+
const y = v.collectionRef.current;
|
|
259
259
|
if (!y) return [];
|
|
260
260
|
const x = Array.from(y.querySelectorAll(`[${p}]`));
|
|
261
|
-
return Array.from(
|
|
261
|
+
return Array.from(v.itemMap.values()).sort(
|
|
262
262
|
(P, E) => x.indexOf(P.ref.current) - x.indexOf(E.ref.current)
|
|
263
263
|
);
|
|
264
|
-
}, [
|
|
264
|
+
}, [v.collectionRef, v.itemMap]);
|
|
265
265
|
}
|
|
266
266
|
return [
|
|
267
267
|
{ Provider: s, Slot: d, ItemSlot: h },
|
|
268
|
-
|
|
268
|
+
b,
|
|
269
269
|
o
|
|
270
270
|
];
|
|
271
271
|
}
|
|
@@ -289,21 +289,21 @@ function Xt({
|
|
|
289
289
|
onChange: n
|
|
290
290
|
}), a = e !== void 0, c = a ? e : r;
|
|
291
291
|
{
|
|
292
|
-
const
|
|
292
|
+
const u = l.useRef(e !== void 0);
|
|
293
293
|
l.useEffect(() => {
|
|
294
|
-
const p =
|
|
294
|
+
const p = u.current;
|
|
295
295
|
p !== a && console.warn(
|
|
296
296
|
`${o} is changing from ${p ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
297
|
-
),
|
|
297
|
+
), u.current = a;
|
|
298
298
|
}, [a, o]);
|
|
299
299
|
}
|
|
300
300
|
const d = l.useCallback(
|
|
301
|
-
(
|
|
301
|
+
(u) => {
|
|
302
302
|
if (a) {
|
|
303
|
-
const p = bi(
|
|
303
|
+
const p = bi(u) ? u(e) : u;
|
|
304
304
|
p !== e && s.current?.(p);
|
|
305
305
|
} else
|
|
306
|
-
i(
|
|
306
|
+
i(u);
|
|
307
307
|
},
|
|
308
308
|
[a, e, i, s]
|
|
309
309
|
);
|
|
@@ -349,27 +349,27 @@ function yi(e) {
|
|
|
349
349
|
const d = ot(o.current);
|
|
350
350
|
i.current = a === "mounted" ? d : "none";
|
|
351
351
|
}, [a]), oe(() => {
|
|
352
|
-
const d = o.current,
|
|
353
|
-
if (
|
|
352
|
+
const d = o.current, u = r.current;
|
|
353
|
+
if (u !== e) {
|
|
354
354
|
const m = i.current, h = ot(d);
|
|
355
|
-
e ? c("MOUNT") : h === "none" || d?.display === "none" ? c("UNMOUNT") : c(
|
|
355
|
+
e ? c("MOUNT") : h === "none" || d?.display === "none" ? c("UNMOUNT") : c(u && m !== h ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
|
|
356
356
|
}
|
|
357
357
|
}, [e, c]), oe(() => {
|
|
358
358
|
if (t) {
|
|
359
359
|
let d;
|
|
360
|
-
const
|
|
361
|
-
const
|
|
362
|
-
if (h.target === t &&
|
|
363
|
-
const
|
|
364
|
-
t.style.animationFillMode = "forwards", d =
|
|
365
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
360
|
+
const u = t.ownerDocument.defaultView ?? window, p = (h) => {
|
|
361
|
+
const f = ot(o.current).includes(CSS.escape(h.animationName));
|
|
362
|
+
if (h.target === t && f && (c("ANIMATION_END"), !r.current)) {
|
|
363
|
+
const v = t.style.animationFillMode;
|
|
364
|
+
t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
|
|
365
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
}, m = (h) => {
|
|
369
369
|
h.target === t && (i.current = ot(o.current));
|
|
370
370
|
};
|
|
371
371
|
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
|
|
372
|
-
|
|
372
|
+
u.clearTimeout(d), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
|
|
373
373
|
};
|
|
374
374
|
} else
|
|
375
375
|
c("ANIMATION_END");
|
|
@@ -429,7 +429,7 @@ var ki = "DismissableLayer", qt = "dismissableLayer.update", Pi = "dismissableLa
|
|
|
429
429
|
onInteractOutside: s,
|
|
430
430
|
onDismiss: a,
|
|
431
431
|
...c
|
|
432
|
-
} = e, d = l.useContext(mo), [
|
|
432
|
+
} = e, d = l.useContext(mo), [u, p] = l.useState(null), m = u?.ownerDocument ?? globalThis?.document, [, h] = l.useState({}), b = ee(t, (E) => p(E)), f = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), w = f.indexOf(v), y = u ? f.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, S = y >= w, R = Ii((E) => {
|
|
433
433
|
const C = E.target, M = [...d.branches].some((L) => L.contains(C));
|
|
434
434
|
!S || M || (r?.(E), s?.(E), E.defaultPrevented || a?.());
|
|
435
435
|
}, m), P = Mi((E) => {
|
|
@@ -439,20 +439,20 @@ var ki = "DismissableLayer", qt = "dismissableLayer.update", Pi = "dismissableLa
|
|
|
439
439
|
return Ai((E) => {
|
|
440
440
|
y === d.layers.size - 1 && (o?.(E), !E.defaultPrevented && a && (E.preventDefault(), a()));
|
|
441
441
|
}, m), l.useEffect(() => {
|
|
442
|
-
if (
|
|
443
|
-
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Nn = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(
|
|
442
|
+
if (u)
|
|
443
|
+
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Nn = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), On(), () => {
|
|
444
444
|
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Nn);
|
|
445
445
|
};
|
|
446
|
-
}, [
|
|
447
|
-
|
|
448
|
-
}, [
|
|
446
|
+
}, [u, m, n, d]), l.useEffect(() => () => {
|
|
447
|
+
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), On());
|
|
448
|
+
}, [u, d]), l.useEffect(() => {
|
|
449
449
|
const E = () => h({});
|
|
450
450
|
return document.addEventListener(qt, E), () => document.removeEventListener(qt, E);
|
|
451
|
-
}, []), /* @__PURE__ */
|
|
451
|
+
}, []), /* @__PURE__ */ g(
|
|
452
452
|
K.div,
|
|
453
453
|
{
|
|
454
454
|
...c,
|
|
455
|
-
ref:
|
|
455
|
+
ref: b,
|
|
456
456
|
style: {
|
|
457
457
|
pointerEvents: x ? S ? "auto" : "none" : void 0,
|
|
458
458
|
...e.style
|
|
@@ -476,7 +476,7 @@ var Oi = "DismissableLayerBranch", Ti = l.forwardRef((e, t) => {
|
|
|
476
476
|
return n.branches.add(i), () => {
|
|
477
477
|
n.branches.delete(i);
|
|
478
478
|
};
|
|
479
|
-
}, [n.branches]), /* @__PURE__ */
|
|
479
|
+
}, [n.branches]), /* @__PURE__ */ g(K.div, { ...e, ref: r });
|
|
480
480
|
});
|
|
481
481
|
Ti.displayName = Oi;
|
|
482
482
|
function Ii(e, t = globalThis?.document) {
|
|
@@ -538,7 +538,7 @@ var Lt = "focusScope.autoFocusOnMount", zt = "focusScope.autoFocusOnUnmount", Tn
|
|
|
538
538
|
onMountAutoFocus: r,
|
|
539
539
|
onUnmountAutoFocus: i,
|
|
540
540
|
...s
|
|
541
|
-
} = e, [a, c] = l.useState(null), d = _e(r),
|
|
541
|
+
} = e, [a, c] = l.useState(null), d = _e(r), u = _e(i), p = l.useRef(null), m = ee(t, (f) => c(f)), h = l.useRef({
|
|
542
542
|
paused: !1,
|
|
543
543
|
pause() {
|
|
544
544
|
this.paused = !0;
|
|
@@ -549,53 +549,53 @@ var Lt = "focusScope.autoFocusOnMount", zt = "focusScope.autoFocusOnUnmount", Tn
|
|
|
549
549
|
}).current;
|
|
550
550
|
l.useEffect(() => {
|
|
551
551
|
if (o) {
|
|
552
|
-
let
|
|
552
|
+
let f = function(x) {
|
|
553
553
|
if (h.paused || !a) return;
|
|
554
554
|
const S = x.target;
|
|
555
555
|
a.contains(S) ? p.current = S : Re(p.current, { select: !0 });
|
|
556
|
-
},
|
|
556
|
+
}, v = function(x) {
|
|
557
557
|
if (h.paused || !a) return;
|
|
558
558
|
const S = x.relatedTarget;
|
|
559
559
|
S !== null && (a.contains(S) || Re(p.current, { select: !0 }));
|
|
560
|
-
},
|
|
560
|
+
}, w = function(x) {
|
|
561
561
|
if (document.activeElement === document.body)
|
|
562
562
|
for (const R of x)
|
|
563
563
|
R.removedNodes.length > 0 && Re(a);
|
|
564
564
|
};
|
|
565
|
-
document.addEventListener("focusin",
|
|
566
|
-
const y = new MutationObserver(
|
|
565
|
+
document.addEventListener("focusin", f), document.addEventListener("focusout", v);
|
|
566
|
+
const y = new MutationObserver(w);
|
|
567
567
|
return a && y.observe(a, { childList: !0, subtree: !0 }), () => {
|
|
568
|
-
document.removeEventListener("focusin",
|
|
568
|
+
document.removeEventListener("focusin", f), document.removeEventListener("focusout", v), y.disconnect();
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
571
|
}, [o, a, h.paused]), l.useEffect(() => {
|
|
572
572
|
if (a) {
|
|
573
573
|
Mn.add(h);
|
|
574
|
-
const
|
|
575
|
-
if (!a.contains(
|
|
576
|
-
const
|
|
577
|
-
a.addEventListener(Lt, d), a.dispatchEvent(
|
|
574
|
+
const f = document.activeElement;
|
|
575
|
+
if (!a.contains(f)) {
|
|
576
|
+
const w = new CustomEvent(Lt, Tn);
|
|
577
|
+
a.addEventListener(Lt, d), a.dispatchEvent(w), w.defaultPrevented || (Di(Bi(go(a)), { select: !0 }), document.activeElement === f && Re(a));
|
|
578
578
|
}
|
|
579
579
|
return () => {
|
|
580
580
|
a.removeEventListener(Lt, d), setTimeout(() => {
|
|
581
|
-
const
|
|
582
|
-
a.addEventListener(zt,
|
|
581
|
+
const w = new CustomEvent(zt, Tn);
|
|
582
|
+
a.addEventListener(zt, u), a.dispatchEvent(w), w.defaultPrevented || Re(f ?? document.body, { select: !0 }), a.removeEventListener(zt, u), Mn.remove(h);
|
|
583
583
|
}, 0);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
}, [a, d,
|
|
587
|
-
const
|
|
588
|
-
(
|
|
586
|
+
}, [a, d, u, h]);
|
|
587
|
+
const b = l.useCallback(
|
|
588
|
+
(f) => {
|
|
589
589
|
if (!n && !o || h.paused) return;
|
|
590
|
-
const
|
|
591
|
-
if (
|
|
592
|
-
const y =
|
|
593
|
-
x && S ? !
|
|
590
|
+
const v = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, w = document.activeElement;
|
|
591
|
+
if (v && w) {
|
|
592
|
+
const y = f.currentTarget, [x, S] = Li(y);
|
|
593
|
+
x && S ? !f.shiftKey && w === S ? (f.preventDefault(), n && Re(x, { select: !0 })) : f.shiftKey && w === x && (f.preventDefault(), n && Re(S, { select: !0 })) : w === y && f.preventDefault();
|
|
594
594
|
}
|
|
595
595
|
},
|
|
596
596
|
[n, o, h.paused]
|
|
597
597
|
);
|
|
598
|
-
return /* @__PURE__ */
|
|
598
|
+
return /* @__PURE__ */ g(K.div, { tabIndex: -1, ...s, ref: m, onKeyDown: b });
|
|
599
599
|
});
|
|
600
600
|
ln.displayName = _i;
|
|
601
601
|
function Di(e, { select: t = !1 } = {}) {
|
|
@@ -663,7 +663,7 @@ var Vi = "Portal", dn = l.forwardRef((e, t) => {
|
|
|
663
663
|
const { container: n, ...o } = e, [r, i] = l.useState(!1);
|
|
664
664
|
oe(() => i(!0), []);
|
|
665
665
|
const s = n || r && globalThis?.document?.body;
|
|
666
|
-
return s ? oi.createPortal(/* @__PURE__ */
|
|
666
|
+
return s ? oi.createPortal(/* @__PURE__ */ g(K.div, { ...o, ref: t }), s) : null;
|
|
667
667
|
});
|
|
668
668
|
dn.displayName = Vi;
|
|
669
669
|
var Ft = 0;
|
|
@@ -787,17 +787,17 @@ function Xi(e, t) {
|
|
|
787
787
|
n = [], a.forEach(i), s = n;
|
|
788
788
|
}
|
|
789
789
|
var c = function() {
|
|
790
|
-
var
|
|
791
|
-
s = [],
|
|
790
|
+
var u = s;
|
|
791
|
+
s = [], u.forEach(i);
|
|
792
792
|
}, d = function() {
|
|
793
793
|
return Promise.resolve().then(c);
|
|
794
794
|
};
|
|
795
795
|
d(), n = {
|
|
796
|
-
push: function(
|
|
797
|
-
s.push(
|
|
796
|
+
push: function(u) {
|
|
797
|
+
s.push(u), d();
|
|
798
798
|
},
|
|
799
|
-
filter: function(
|
|
800
|
-
return s = s.filter(
|
|
799
|
+
filter: function(u) {
|
|
800
|
+
return s = s.filter(u), n;
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
803
|
}
|
|
@@ -828,11 +828,11 @@ var yo = qi(), Bt = function() {
|
|
|
828
828
|
onScrollCapture: Bt,
|
|
829
829
|
onWheelCapture: Bt,
|
|
830
830
|
onTouchMoveCapture: Bt
|
|
831
|
-
}), r = o[0], i = o[1], s = e.forwardProps, a = e.children, c = e.className, d = e.removeScrollBar,
|
|
831
|
+
}), r = o[0], i = o[1], s = e.forwardProps, a = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, p = e.shards, m = e.sideCar, h = e.noRelative, b = e.noIsolation, f = e.inert, v = e.allowPinchZoom, w = e.as, y = w === void 0 ? "div" : w, x = e.gapMode, S = bo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, P = Ki([n, t]), E = pe(pe({}, S), r);
|
|
832
832
|
return l.createElement(
|
|
833
833
|
l.Fragment,
|
|
834
834
|
null,
|
|
835
|
-
|
|
835
|
+
u && l.createElement(R, { sideCar: yo, removeScrollBar: d, shards: p, noRelative: h, noIsolation: b, inert: f, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
|
|
836
836
|
s ? l.cloneElement(l.Children.only(a), pe(pe({}, E), { ref: P })) : l.createElement(y, pe({}, E, { className: c, ref: P }), a)
|
|
837
837
|
);
|
|
838
838
|
});
|
|
@@ -1031,12 +1031,12 @@ var Be = Zt ? { passive: !1 } : !1, us = function(e) {
|
|
|
1031
1031
|
}, gs = function(e, t) {
|
|
1032
1032
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1033
1033
|
}, vs = function(e, t, n, o, r) {
|
|
1034
|
-
var i = gs(e, window.getComputedStyle(t).direction), s = i * o, a = n.target, c = t.contains(a), d = !1,
|
|
1034
|
+
var i = gs(e, window.getComputedStyle(t).direction), s = i * o, a = n.target, c = t.contains(a), d = !1, u = s > 0, p = 0, m = 0;
|
|
1035
1035
|
do {
|
|
1036
1036
|
if (!a)
|
|
1037
1037
|
break;
|
|
1038
|
-
var h = Eo(e, a),
|
|
1039
|
-
(
|
|
1038
|
+
var h = Eo(e, a), b = h[0], f = h[1], v = h[2], w = f - v - i * b;
|
|
1039
|
+
(b || w) && Co(e, a) && (p += w, m += b);
|
|
1040
1040
|
var y = a.parentNode;
|
|
1041
1041
|
a = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
|
|
1042
1042
|
} while (
|
|
@@ -1044,7 +1044,7 @@ var Be = Zt ? { passive: !1 } : !1, us = function(e) {
|
|
|
1044
1044
|
!c && a !== document.body || // self content
|
|
1045
1045
|
c && (t.contains(a) || t === a)
|
|
1046
1046
|
);
|
|
1047
|
-
return (
|
|
1047
|
+
return (u && Math.abs(p) < 1 || !u && Math.abs(m) < 1) && (d = !0), d;
|
|
1048
1048
|
}, it = function(e) {
|
|
1049
1049
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1050
1050
|
}, Wn = function(e) {
|
|
@@ -1066,21 +1066,21 @@ function xs(e) {
|
|
|
1066
1066
|
}, [e]), l.useEffect(function() {
|
|
1067
1067
|
if (e.inert) {
|
|
1068
1068
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1071
|
-
return
|
|
1069
|
+
var f = $i([e.lockRef.current], (e.shards || []).map(Bn), !0).filter(Boolean);
|
|
1070
|
+
return f.forEach(function(v) {
|
|
1071
|
+
return v.classList.add("allow-interactivity-".concat(r));
|
|
1072
1072
|
}), function() {
|
|
1073
|
-
document.body.classList.remove("block-interactivity-".concat(r)),
|
|
1074
|
-
return
|
|
1073
|
+
document.body.classList.remove("block-interactivity-".concat(r)), f.forEach(function(v) {
|
|
1074
|
+
return v.classList.remove("allow-interactivity-".concat(r));
|
|
1075
1075
|
});
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
1078
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
1079
|
-
var a = l.useCallback(function(
|
|
1080
|
-
if ("touches" in
|
|
1079
|
+
var a = l.useCallback(function(f, v) {
|
|
1080
|
+
if ("touches" in f && f.touches.length === 2 || f.type === "wheel" && f.ctrlKey)
|
|
1081
1081
|
return !s.current.allowPinchZoom;
|
|
1082
|
-
var
|
|
1083
|
-
if ("touches" in
|
|
1082
|
+
var w = it(f), y = n.current, x = "deltaX" in f ? f.deltaX : y[0] - w[0], S = "deltaY" in f ? f.deltaY : y[1] - w[1], R, P = f.target, E = Math.abs(x) > Math.abs(S) ? "h" : "v";
|
|
1083
|
+
if ("touches" in f && E === "h" && P.type === "range")
|
|
1084
1084
|
return !1;
|
|
1085
1085
|
var C = window.getSelection(), M = C && C.anchorNode, L = M ? M === P || M.contains(P) : !1;
|
|
1086
1086
|
if (L)
|
|
@@ -1090,57 +1090,57 @@ function xs(e) {
|
|
|
1090
1090
|
return !0;
|
|
1091
1091
|
if (W ? R = E : (R = E === "v" ? "h" : "v", W = Fn(E, P)), !W)
|
|
1092
1092
|
return !1;
|
|
1093
|
-
if (!o.current && "changedTouches" in
|
|
1093
|
+
if (!o.current && "changedTouches" in f && (x || S) && (o.current = R), !R)
|
|
1094
1094
|
return !0;
|
|
1095
1095
|
var B = o.current || R;
|
|
1096
|
-
return vs(B,
|
|
1097
|
-
}, []), c = l.useCallback(function(
|
|
1098
|
-
var
|
|
1096
|
+
return vs(B, v, f, B === "h" ? x : S);
|
|
1097
|
+
}, []), c = l.useCallback(function(f) {
|
|
1098
|
+
var v = f;
|
|
1099
1099
|
if (!(!Ve.length || Ve[Ve.length - 1] !== i)) {
|
|
1100
|
-
var
|
|
1101
|
-
return R.name ===
|
|
1100
|
+
var w = "deltaY" in v ? Wn(v) : it(v), y = t.current.filter(function(R) {
|
|
1101
|
+
return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && bs(R.delta, w);
|
|
1102
1102
|
})[0];
|
|
1103
1103
|
if (y && y.should) {
|
|
1104
|
-
|
|
1104
|
+
v.cancelable && v.preventDefault();
|
|
1105
1105
|
return;
|
|
1106
1106
|
}
|
|
1107
1107
|
if (!y) {
|
|
1108
1108
|
var x = (s.current.shards || []).map(Bn).filter(Boolean).filter(function(R) {
|
|
1109
|
-
return R.contains(
|
|
1110
|
-
}), S = x.length > 0 ? a(
|
|
1111
|
-
S &&
|
|
1109
|
+
return R.contains(v.target);
|
|
1110
|
+
}), S = x.length > 0 ? a(v, x[0]) : !s.current.noIsolation;
|
|
1111
|
+
S && v.cancelable && v.preventDefault();
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
|
-
}, []), d = l.useCallback(function(
|
|
1115
|
-
var x = { name:
|
|
1114
|
+
}, []), d = l.useCallback(function(f, v, w, y) {
|
|
1115
|
+
var x = { name: f, delta: v, target: w, should: y, shadowParent: Ss(w) };
|
|
1116
1116
|
t.current.push(x), setTimeout(function() {
|
|
1117
1117
|
t.current = t.current.filter(function(S) {
|
|
1118
1118
|
return S !== x;
|
|
1119
1119
|
});
|
|
1120
1120
|
}, 1);
|
|
1121
|
-
}, []),
|
|
1122
|
-
n.current = it(
|
|
1123
|
-
}, []), p = l.useCallback(function(
|
|
1124
|
-
d(
|
|
1125
|
-
}, []), m = l.useCallback(function(
|
|
1126
|
-
d(
|
|
1121
|
+
}, []), u = l.useCallback(function(f) {
|
|
1122
|
+
n.current = it(f), o.current = void 0;
|
|
1123
|
+
}, []), p = l.useCallback(function(f) {
|
|
1124
|
+
d(f.type, Wn(f), f.target, a(f, e.lockRef.current));
|
|
1125
|
+
}, []), m = l.useCallback(function(f) {
|
|
1126
|
+
d(f.type, it(f), f.target, a(f, e.lockRef.current));
|
|
1127
1127
|
}, []);
|
|
1128
1128
|
l.useEffect(function() {
|
|
1129
1129
|
return Ve.push(i), e.setCallbacks({
|
|
1130
1130
|
onScrollCapture: p,
|
|
1131
1131
|
onWheelCapture: p,
|
|
1132
1132
|
onTouchMoveCapture: m
|
|
1133
|
-
}), document.addEventListener("wheel", c, Be), document.addEventListener("touchmove", c, Be), document.addEventListener("touchstart",
|
|
1134
|
-
Ve = Ve.filter(function(
|
|
1135
|
-
return
|
|
1136
|
-
}), document.removeEventListener("wheel", c, Be), document.removeEventListener("touchmove", c, Be), document.removeEventListener("touchstart",
|
|
1133
|
+
}), document.addEventListener("wheel", c, Be), document.addEventListener("touchmove", c, Be), document.addEventListener("touchstart", u, Be), function() {
|
|
1134
|
+
Ve = Ve.filter(function(f) {
|
|
1135
|
+
return f !== i;
|
|
1136
|
+
}), document.removeEventListener("wheel", c, Be), document.removeEventListener("touchmove", c, Be), document.removeEventListener("touchstart", u, Be);
|
|
1137
1137
|
};
|
|
1138
1138
|
}, []);
|
|
1139
|
-
var h = e.removeScrollBar,
|
|
1139
|
+
var h = e.removeScrollBar, b = e.inert;
|
|
1140
1140
|
return l.createElement(
|
|
1141
1141
|
l.Fragment,
|
|
1142
1142
|
null,
|
|
1143
|
-
|
|
1143
|
+
b ? l.createElement(i, { styles: ws(r) }) : null,
|
|
1144
1144
|
h ? l.createElement(ds, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
1145
1145
|
);
|
|
1146
1146
|
}
|
|
@@ -1177,20 +1177,20 @@ var Es = function(e) {
|
|
|
1177
1177
|
!p || a.has(p) || (a.add(p), d(p.parentNode));
|
|
1178
1178
|
};
|
|
1179
1179
|
r.forEach(d);
|
|
1180
|
-
var
|
|
1180
|
+
var u = function(p) {
|
|
1181
1181
|
!p || c.has(p) || Array.prototype.forEach.call(p.children, function(m) {
|
|
1182
1182
|
if (a.has(m))
|
|
1183
|
-
|
|
1183
|
+
u(m);
|
|
1184
1184
|
else
|
|
1185
1185
|
try {
|
|
1186
|
-
var h = m.getAttribute(o),
|
|
1187
|
-
$e.set(m,
|
|
1188
|
-
} catch (
|
|
1189
|
-
console.error("aria-hidden: cannot operate on ", m,
|
|
1186
|
+
var h = m.getAttribute(o), b = h !== null && h !== "false", f = ($e.get(m) || 0) + 1, v = (i.get(m) || 0) + 1;
|
|
1187
|
+
$e.set(m, f), i.set(m, v), s.push(m), f === 1 && b && st.set(m, !0), v === 1 && m.setAttribute(n, "true"), b || m.setAttribute(o, "true");
|
|
1188
|
+
} catch (w) {
|
|
1189
|
+
console.error("aria-hidden: cannot operate on ", m, w);
|
|
1190
1190
|
}
|
|
1191
1191
|
});
|
|
1192
1192
|
};
|
|
1193
|
-
return
|
|
1193
|
+
return u(t), a.clear(), $t++, function() {
|
|
1194
1194
|
s.forEach(function(p) {
|
|
1195
1195
|
var m = $e.get(p) - 1, h = i.get(p) - 1;
|
|
1196
1196
|
$e.set(p, m), i.set(p, h), m || (st.has(p) || p.removeAttribute(o), st.delete(p)), h || p.removeAttribute(n);
|
|
@@ -1210,13 +1210,13 @@ var Es = function(e) {
|
|
|
1210
1210
|
defaultOpen: r,
|
|
1211
1211
|
onOpenChange: i,
|
|
1212
1212
|
modal: s = !0
|
|
1213
|
-
} = e, a = l.useRef(null), c = l.useRef(null), [d,
|
|
1213
|
+
} = e, a = l.useRef(null), c = l.useRef(null), [d, u] = Xt({
|
|
1214
1214
|
prop: o,
|
|
1215
1215
|
defaultProp: r ?? !1,
|
|
1216
1216
|
onChange: i,
|
|
1217
1217
|
caller: Rt
|
|
1218
1218
|
});
|
|
1219
|
-
return /* @__PURE__ */
|
|
1219
|
+
return /* @__PURE__ */ g(
|
|
1220
1220
|
ks,
|
|
1221
1221
|
{
|
|
1222
1222
|
scope: t,
|
|
@@ -1226,8 +1226,8 @@ var Es = function(e) {
|
|
|
1226
1226
|
titleId: He(),
|
|
1227
1227
|
descriptionId: He(),
|
|
1228
1228
|
open: d,
|
|
1229
|
-
onOpenChange:
|
|
1230
|
-
onOpenToggle: l.useCallback(() =>
|
|
1229
|
+
onOpenChange: u,
|
|
1230
|
+
onOpenToggle: l.useCallback(() => u((p) => !p), [u]),
|
|
1231
1231
|
modal: s,
|
|
1232
1232
|
children: n
|
|
1233
1233
|
}
|
|
@@ -1237,7 +1237,7 @@ Po.displayName = Rt;
|
|
|
1237
1237
|
var No = "DialogTrigger", Ps = l.forwardRef(
|
|
1238
1238
|
(e, t) => {
|
|
1239
1239
|
const { __scopeDialog: n, ...o } = e, r = ue(No, n), i = ee(t, r.triggerRef);
|
|
1240
|
-
return /* @__PURE__ */
|
|
1240
|
+
return /* @__PURE__ */ g(
|
|
1241
1241
|
K.button,
|
|
1242
1242
|
{
|
|
1243
1243
|
type: "button",
|
|
@@ -1257,13 +1257,13 @@ var fn = "DialogPortal", [Ns, Oo] = ko(fn, {
|
|
|
1257
1257
|
forceMount: void 0
|
|
1258
1258
|
}), To = (e) => {
|
|
1259
1259
|
const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, i = ue(fn, t);
|
|
1260
|
-
return /* @__PURE__ */
|
|
1260
|
+
return /* @__PURE__ */ g(Ns, { scope: t, forceMount: n, children: l.Children.map(o, (s) => /* @__PURE__ */ g(Ct, { present: n || i.open, children: /* @__PURE__ */ g(dn, { asChild: !0, container: r, children: s }) })) });
|
|
1261
1261
|
};
|
|
1262
1262
|
To.displayName = fn;
|
|
1263
1263
|
var mt = "DialogOverlay", Io = l.forwardRef(
|
|
1264
1264
|
(e, t) => {
|
|
1265
1265
|
const n = Oo(mt, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = ue(mt, e.__scopeDialog);
|
|
1266
|
-
return i.modal ? /* @__PURE__ */
|
|
1266
|
+
return i.modal ? /* @__PURE__ */ g(Ct, { present: o || i.open, children: /* @__PURE__ */ g(Ts, { ...r, ref: t }) }) : null;
|
|
1267
1267
|
}
|
|
1268
1268
|
);
|
|
1269
1269
|
Io.displayName = mt;
|
|
@@ -1273,7 +1273,7 @@ var Os = /* @__PURE__ */ Ge("DialogOverlay.RemoveScroll"), Ts = l.forwardRef(
|
|
|
1273
1273
|
return (
|
|
1274
1274
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1275
1275
|
// ie. when `Overlay` and `Content` are siblings
|
|
1276
|
-
/* @__PURE__ */
|
|
1276
|
+
/* @__PURE__ */ g(un, { as: Os, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ g(
|
|
1277
1277
|
K.div,
|
|
1278
1278
|
{
|
|
1279
1279
|
"data-state": mn(r.open),
|
|
@@ -1287,7 +1287,7 @@ var Os = /* @__PURE__ */ Ge("DialogOverlay.RemoveScroll"), Ts = l.forwardRef(
|
|
|
1287
1287
|
), De = "DialogContent", Mo = l.forwardRef(
|
|
1288
1288
|
(e, t) => {
|
|
1289
1289
|
const n = Oo(De, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = ue(De, e.__scopeDialog);
|
|
1290
|
-
return /* @__PURE__ */
|
|
1290
|
+
return /* @__PURE__ */ g(Ct, { present: o || i.open, children: i.modal ? /* @__PURE__ */ g(Is, { ...r, ref: t }) : /* @__PURE__ */ g(Ms, { ...r, ref: t }) });
|
|
1291
1291
|
}
|
|
1292
1292
|
);
|
|
1293
1293
|
Mo.displayName = De;
|
|
@@ -1297,7 +1297,7 @@ var Is = l.forwardRef(
|
|
|
1297
1297
|
return l.useEffect(() => {
|
|
1298
1298
|
const i = o.current;
|
|
1299
1299
|
if (i) return Ao(i);
|
|
1300
|
-
}, []), /* @__PURE__ */
|
|
1300
|
+
}, []), /* @__PURE__ */ g(
|
|
1301
1301
|
_o,
|
|
1302
1302
|
{
|
|
1303
1303
|
...e,
|
|
@@ -1321,7 +1321,7 @@ var Is = l.forwardRef(
|
|
|
1321
1321
|
), Ms = l.forwardRef(
|
|
1322
1322
|
(e, t) => {
|
|
1323
1323
|
const n = ue(De, e.__scopeDialog), o = l.useRef(!1), r = l.useRef(!1);
|
|
1324
|
-
return /* @__PURE__ */
|
|
1324
|
+
return /* @__PURE__ */ g(
|
|
1325
1325
|
_o,
|
|
1326
1326
|
{
|
|
1327
1327
|
...e,
|
|
@@ -1343,7 +1343,7 @@ var Is = l.forwardRef(
|
|
|
1343
1343
|
(e, t) => {
|
|
1344
1344
|
const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: i, ...s } = e, a = ue(De, n), c = l.useRef(null), d = ee(t, c);
|
|
1345
1345
|
return vo(), /* @__PURE__ */ J(Je, { children: [
|
|
1346
|
-
/* @__PURE__ */
|
|
1346
|
+
/* @__PURE__ */ g(
|
|
1347
1347
|
ln,
|
|
1348
1348
|
{
|
|
1349
1349
|
asChild: !0,
|
|
@@ -1351,7 +1351,7 @@ var Is = l.forwardRef(
|
|
|
1351
1351
|
trapped: o,
|
|
1352
1352
|
onMountAutoFocus: r,
|
|
1353
1353
|
onUnmountAutoFocus: i,
|
|
1354
|
-
children: /* @__PURE__ */
|
|
1354
|
+
children: /* @__PURE__ */ g(
|
|
1355
1355
|
cn,
|
|
1356
1356
|
{
|
|
1357
1357
|
role: "dialog",
|
|
@@ -1367,29 +1367,29 @@ var Is = l.forwardRef(
|
|
|
1367
1367
|
}
|
|
1368
1368
|
),
|
|
1369
1369
|
/* @__PURE__ */ J(Je, { children: [
|
|
1370
|
-
/* @__PURE__ */
|
|
1371
|
-
/* @__PURE__ */
|
|
1370
|
+
/* @__PURE__ */ g(_s, { titleId: a.titleId }),
|
|
1371
|
+
/* @__PURE__ */ g(Ls, { contentRef: c, descriptionId: a.descriptionId })
|
|
1372
1372
|
] })
|
|
1373
1373
|
] });
|
|
1374
1374
|
}
|
|
1375
1375
|
), pn = "DialogTitle", Do = l.forwardRef(
|
|
1376
1376
|
(e, t) => {
|
|
1377
1377
|
const { __scopeDialog: n, ...o } = e, r = ue(pn, n);
|
|
1378
|
-
return /* @__PURE__ */
|
|
1378
|
+
return /* @__PURE__ */ g(K.h2, { id: r.titleId, ...o, ref: t });
|
|
1379
1379
|
}
|
|
1380
1380
|
);
|
|
1381
1381
|
Do.displayName = pn;
|
|
1382
1382
|
var Lo = "DialogDescription", zo = l.forwardRef(
|
|
1383
1383
|
(e, t) => {
|
|
1384
1384
|
const { __scopeDialog: n, ...o } = e, r = ue(Lo, n);
|
|
1385
|
-
return /* @__PURE__ */
|
|
1385
|
+
return /* @__PURE__ */ g(K.p, { id: r.descriptionId, ...o, ref: t });
|
|
1386
1386
|
}
|
|
1387
1387
|
);
|
|
1388
1388
|
zo.displayName = Lo;
|
|
1389
1389
|
var Fo = "DialogClose", Wo = l.forwardRef(
|
|
1390
1390
|
(e, t) => {
|
|
1391
1391
|
const { __scopeDialog: n, ...o } = e, r = ue(Fo, n);
|
|
1392
|
-
return /* @__PURE__ */
|
|
1392
|
+
return /* @__PURE__ */ g(
|
|
1393
1393
|
K.button,
|
|
1394
1394
|
{
|
|
1395
1395
|
type: "button",
|
|
@@ -1559,18 +1559,18 @@ function Hn(e, t, n) {
|
|
|
1559
1559
|
reference: o,
|
|
1560
1560
|
floating: r
|
|
1561
1561
|
} = e;
|
|
1562
|
-
const i = me(t), s = vn(t), a = gn(s), c = we(t), d = i === "y",
|
|
1562
|
+
const i = me(t), s = vn(t), a = gn(s), c = we(t), d = i === "y", u = o.x + o.width / 2 - r.width / 2, p = o.y + o.height / 2 - r.height / 2, m = o[a] / 2 - r[a] / 2;
|
|
1563
1563
|
let h;
|
|
1564
1564
|
switch (c) {
|
|
1565
1565
|
case "top":
|
|
1566
1566
|
h = {
|
|
1567
|
-
x:
|
|
1567
|
+
x: u,
|
|
1568
1568
|
y: o.y - r.height
|
|
1569
1569
|
};
|
|
1570
1570
|
break;
|
|
1571
1571
|
case "bottom":
|
|
1572
1572
|
h = {
|
|
1573
|
-
x:
|
|
1573
|
+
x: u,
|
|
1574
1574
|
y: o.y + o.height
|
|
1575
1575
|
};
|
|
1576
1576
|
break;
|
|
@@ -1614,14 +1614,14 @@ async function ta(e, t) {
|
|
|
1614
1614
|
strategy: c
|
|
1615
1615
|
} = e, {
|
|
1616
1616
|
boundary: d = "clippingAncestors",
|
|
1617
|
-
rootBoundary:
|
|
1617
|
+
rootBoundary: u = "viewport",
|
|
1618
1618
|
elementContext: p = "floating",
|
|
1619
1619
|
altBoundary: m = !1,
|
|
1620
1620
|
padding: h = 0
|
|
1621
|
-
} = be(t, e),
|
|
1622
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(
|
|
1621
|
+
} = be(t, e), b = $o(h), v = a[m ? p === "floating" ? "reference" : "floating" : p], w = vt(await i.getClippingRect({
|
|
1622
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
1623
1623
|
boundary: d,
|
|
1624
|
-
rootBoundary:
|
|
1624
|
+
rootBoundary: u,
|
|
1625
1625
|
strategy: c
|
|
1626
1626
|
})), y = p === "floating" ? {
|
|
1627
1627
|
x: o,
|
|
@@ -1641,10 +1641,10 @@ async function ta(e, t) {
|
|
|
1641
1641
|
strategy: c
|
|
1642
1642
|
}) : y);
|
|
1643
1643
|
return {
|
|
1644
|
-
top: (
|
|
1645
|
-
bottom: (R.bottom -
|
|
1646
|
-
left: (
|
|
1647
|
-
right: (R.right -
|
|
1644
|
+
top: (w.top - R.top + b.top) / S.y,
|
|
1645
|
+
bottom: (R.bottom - w.bottom + b.bottom) / S.y,
|
|
1646
|
+
left: (w.left - R.left + b.left) / S.x,
|
|
1647
|
+
right: (R.right - w.right + b.right) / S.x
|
|
1648
1648
|
};
|
|
1649
1649
|
}
|
|
1650
1650
|
const na = 50, oa = async (e, t, n) => {
|
|
@@ -1662,29 +1662,29 @@ const na = 50, oa = async (e, t, n) => {
|
|
|
1662
1662
|
floating: t,
|
|
1663
1663
|
strategy: r
|
|
1664
1664
|
}), {
|
|
1665
|
-
x:
|
|
1665
|
+
x: u,
|
|
1666
1666
|
y: p
|
|
1667
1667
|
} = Hn(d, o, c), m = o, h = 0;
|
|
1668
|
-
const
|
|
1669
|
-
for (let
|
|
1670
|
-
const
|
|
1671
|
-
if (!
|
|
1668
|
+
const b = {};
|
|
1669
|
+
for (let f = 0; f < i.length; f++) {
|
|
1670
|
+
const v = i[f];
|
|
1671
|
+
if (!v)
|
|
1672
1672
|
continue;
|
|
1673
1673
|
const {
|
|
1674
|
-
name:
|
|
1674
|
+
name: w,
|
|
1675
1675
|
fn: y
|
|
1676
|
-
} =
|
|
1676
|
+
} = v, {
|
|
1677
1677
|
x,
|
|
1678
1678
|
y: S,
|
|
1679
1679
|
data: R,
|
|
1680
1680
|
reset: P
|
|
1681
1681
|
} = await y({
|
|
1682
|
-
x:
|
|
1682
|
+
x: u,
|
|
1683
1683
|
y: p,
|
|
1684
1684
|
initialPlacement: o,
|
|
1685
1685
|
placement: m,
|
|
1686
1686
|
strategy: r,
|
|
1687
|
-
middlewareData:
|
|
1687
|
+
middlewareData: b,
|
|
1688
1688
|
rects: d,
|
|
1689
1689
|
platform: a,
|
|
1690
1690
|
elements: {
|
|
@@ -1692,24 +1692,24 @@ const na = 50, oa = async (e, t, n) => {
|
|
|
1692
1692
|
floating: t
|
|
1693
1693
|
}
|
|
1694
1694
|
});
|
|
1695
|
-
|
|
1696
|
-
...w
|
|
1695
|
+
u = x ?? u, p = S ?? p, b[w] = {
|
|
1696
|
+
...b[w],
|
|
1697
1697
|
...R
|
|
1698
1698
|
}, P && h < na && (h++, typeof P == "object" && (P.placement && (m = P.placement), P.rects && (d = P.rects === !0 ? await s.getElementRects({
|
|
1699
1699
|
reference: e,
|
|
1700
1700
|
floating: t,
|
|
1701
1701
|
strategy: r
|
|
1702
1702
|
}) : P.rects), {
|
|
1703
|
-
x:
|
|
1703
|
+
x: u,
|
|
1704
1704
|
y: p
|
|
1705
|
-
} = Hn(d, m, c)),
|
|
1705
|
+
} = Hn(d, m, c)), f = -1);
|
|
1706
1706
|
}
|
|
1707
1707
|
return {
|
|
1708
|
-
x:
|
|
1708
|
+
x: u,
|
|
1709
1709
|
y: p,
|
|
1710
1710
|
placement: m,
|
|
1711
1711
|
strategy: r,
|
|
1712
|
-
middlewareData:
|
|
1712
|
+
middlewareData: b
|
|
1713
1713
|
};
|
|
1714
1714
|
}, ra = (e) => ({
|
|
1715
1715
|
name: "arrow",
|
|
@@ -1725,17 +1725,17 @@ const na = 50, oa = async (e, t, n) => {
|
|
|
1725
1725
|
middlewareData: c
|
|
1726
1726
|
} = t, {
|
|
1727
1727
|
element: d,
|
|
1728
|
-
padding:
|
|
1728
|
+
padding: u = 0
|
|
1729
1729
|
} = be(e, t) || {};
|
|
1730
1730
|
if (d == null)
|
|
1731
1731
|
return {};
|
|
1732
|
-
const p = $o(
|
|
1732
|
+
const p = $o(u), m = {
|
|
1733
1733
|
x: n,
|
|
1734
1734
|
y: o
|
|
1735
|
-
}, h = vn(r),
|
|
1735
|
+
}, h = vn(r), b = gn(h), f = await s.getDimensions(d), v = h === "y", w = v ? "top" : "left", y = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", S = i.reference[b] + i.reference[h] - m[h] - i.floating[b], R = m[h] - i.reference[h], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
1736
1736
|
let E = P ? P[x] : 0;
|
|
1737
|
-
(!E || !await (s.isElement == null ? void 0 : s.isElement(P))) && (E = a.floating[x] || i.floating[
|
|
1738
|
-
const C = S / 2 - R / 2, M = E / 2 -
|
|
1737
|
+
(!E || !await (s.isElement == null ? void 0 : s.isElement(P))) && (E = a.floating[x] || i.floating[b]);
|
|
1738
|
+
const C = S / 2 - R / 2, M = E / 2 - f[b] / 2 - 1, L = Ae(p[w], M), W = Ae(p[y], M), B = L, V = E - f[b] - W, z = E / 2 - f[b] / 2 + C, H = Qt(B, z, V), I = !c.arrow && Ye(r) != null && z !== H && i.reference[b] / 2 - (z < B ? L : W) - f[b] / 2 < 0, D = I ? z < B ? z - B : z - V : 0;
|
|
1739
1739
|
return {
|
|
1740
1740
|
[h]: m[h] + D,
|
|
1741
1741
|
data: {
|
|
@@ -1762,21 +1762,21 @@ const na = 50, oa = async (e, t, n) => {
|
|
|
1762
1762
|
platform: c,
|
|
1763
1763
|
elements: d
|
|
1764
1764
|
} = t, {
|
|
1765
|
-
mainAxis:
|
|
1765
|
+
mainAxis: u = !0,
|
|
1766
1766
|
crossAxis: p = !0,
|
|
1767
1767
|
fallbackPlacements: m,
|
|
1768
1768
|
fallbackStrategy: h = "bestFit",
|
|
1769
|
-
fallbackAxisSideDirection:
|
|
1770
|
-
flipAlignment:
|
|
1771
|
-
...
|
|
1769
|
+
fallbackAxisSideDirection: b = "none",
|
|
1770
|
+
flipAlignment: f = !0,
|
|
1771
|
+
...v
|
|
1772
1772
|
} = be(e, t);
|
|
1773
1773
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1774
1774
|
return {};
|
|
1775
|
-
const
|
|
1776
|
-
!m && P && R.push(...Js(a,
|
|
1777
|
-
const E = [a, ...R], C = await c.detectOverflow(t,
|
|
1775
|
+
const w = we(r), y = me(a), x = we(a) === a, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), R = m || (x || !f ? [gt(a)] : Xs(a)), P = b !== "none";
|
|
1776
|
+
!m && P && R.push(...Js(a, f, b, S));
|
|
1777
|
+
const E = [a, ...R], C = await c.detectOverflow(t, v), M = [];
|
|
1778
1778
|
let L = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1779
|
-
if (
|
|
1779
|
+
if (u && M.push(C[w]), p) {
|
|
1780
1780
|
const z = Ys(r, s, S);
|
|
1781
1781
|
M.push(C[z[0]], C[z[1]]);
|
|
1782
1782
|
}
|
|
@@ -1889,11 +1889,11 @@ async function aa(e, t) {
|
|
|
1889
1889
|
placement: n,
|
|
1890
1890
|
platform: o,
|
|
1891
1891
|
elements: r
|
|
1892
|
-
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = we(n), a = Ye(n), c = me(n) === "y", d = Ho.has(s) ? -1 : 1,
|
|
1892
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = we(n), a = Ye(n), c = me(n) === "y", d = Ho.has(s) ? -1 : 1, u = i && c ? -1 : 1, p = be(t, e);
|
|
1893
1893
|
let {
|
|
1894
1894
|
mainAxis: m,
|
|
1895
1895
|
crossAxis: h,
|
|
1896
|
-
alignmentAxis:
|
|
1896
|
+
alignmentAxis: b
|
|
1897
1897
|
} = typeof p == "number" ? {
|
|
1898
1898
|
mainAxis: p,
|
|
1899
1899
|
crossAxis: 0,
|
|
@@ -1903,12 +1903,12 @@ async function aa(e, t) {
|
|
|
1903
1903
|
crossAxis: p.crossAxis || 0,
|
|
1904
1904
|
alignmentAxis: p.alignmentAxis
|
|
1905
1905
|
};
|
|
1906
|
-
return a && typeof
|
|
1907
|
-
x: h *
|
|
1906
|
+
return a && typeof b == "number" && (h = a === "end" ? b * -1 : b), c ? {
|
|
1907
|
+
x: h * u,
|
|
1908
1908
|
y: m * d
|
|
1909
1909
|
} : {
|
|
1910
1910
|
x: m * d,
|
|
1911
|
-
y: h *
|
|
1911
|
+
y: h * u
|
|
1912
1912
|
};
|
|
1913
1913
|
}
|
|
1914
1914
|
const ca = function(e) {
|
|
@@ -1947,11 +1947,11 @@ const ca = function(e) {
|
|
|
1947
1947
|
mainAxis: s = !0,
|
|
1948
1948
|
crossAxis: a = !1,
|
|
1949
1949
|
limiter: c = {
|
|
1950
|
-
fn: (
|
|
1950
|
+
fn: (w) => {
|
|
1951
1951
|
let {
|
|
1952
1952
|
x: y,
|
|
1953
1953
|
y: x
|
|
1954
|
-
} =
|
|
1954
|
+
} = w;
|
|
1955
1955
|
return {
|
|
1956
1956
|
x: y,
|
|
1957
1957
|
y: x
|
|
@@ -1959,29 +1959,29 @@ const ca = function(e) {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
},
|
|
1961
1961
|
...d
|
|
1962
|
-
} = be(e, t),
|
|
1962
|
+
} = be(e, t), u = {
|
|
1963
1963
|
x: n,
|
|
1964
1964
|
y: o
|
|
1965
1965
|
}, p = await i.detectOverflow(t, d), m = me(we(r)), h = hn(m);
|
|
1966
|
-
let
|
|
1966
|
+
let b = u[h], f = u[m];
|
|
1967
1967
|
if (s) {
|
|
1968
|
-
const
|
|
1969
|
-
|
|
1968
|
+
const w = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", x = b + p[w], S = b - p[y];
|
|
1969
|
+
b = Qt(x, b, S);
|
|
1970
1970
|
}
|
|
1971
1971
|
if (a) {
|
|
1972
|
-
const
|
|
1973
|
-
|
|
1972
|
+
const w = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", x = f + p[w], S = f - p[y];
|
|
1973
|
+
f = Qt(x, f, S);
|
|
1974
1974
|
}
|
|
1975
|
-
const
|
|
1975
|
+
const v = c.fn({
|
|
1976
1976
|
...t,
|
|
1977
|
-
[h]:
|
|
1978
|
-
[m]:
|
|
1977
|
+
[h]: b,
|
|
1978
|
+
[m]: f
|
|
1979
1979
|
});
|
|
1980
1980
|
return {
|
|
1981
|
-
...
|
|
1981
|
+
...v,
|
|
1982
1982
|
data: {
|
|
1983
|
-
x:
|
|
1984
|
-
y:
|
|
1983
|
+
x: v.x - n,
|
|
1984
|
+
y: v.y - o,
|
|
1985
1985
|
enabled: {
|
|
1986
1986
|
[h]: s,
|
|
1987
1987
|
[m]: a
|
|
@@ -2004,31 +2004,31 @@ const ca = function(e) {
|
|
|
2004
2004
|
offset: a = 0,
|
|
2005
2005
|
mainAxis: c = !0,
|
|
2006
2006
|
crossAxis: d = !0
|
|
2007
|
-
} = be(e, t),
|
|
2007
|
+
} = be(e, t), u = {
|
|
2008
2008
|
x: n,
|
|
2009
2009
|
y: o
|
|
2010
2010
|
}, p = me(r), m = hn(p);
|
|
2011
|
-
let h =
|
|
2012
|
-
const
|
|
2013
|
-
mainAxis:
|
|
2011
|
+
let h = u[m], b = u[p];
|
|
2012
|
+
const f = be(a, t), v = typeof f == "number" ? {
|
|
2013
|
+
mainAxis: f,
|
|
2014
2014
|
crossAxis: 0
|
|
2015
2015
|
} : {
|
|
2016
2016
|
mainAxis: 0,
|
|
2017
2017
|
crossAxis: 0,
|
|
2018
|
-
...
|
|
2018
|
+
...f
|
|
2019
2019
|
};
|
|
2020
2020
|
if (c) {
|
|
2021
|
-
const x = m === "y" ? "height" : "width", S = i.reference[m] - i.floating[x] +
|
|
2021
|
+
const x = m === "y" ? "height" : "width", S = i.reference[m] - i.floating[x] + v.mainAxis, R = i.reference[m] + i.reference[x] - v.mainAxis;
|
|
2022
2022
|
h < S ? h = S : h > R && (h = R);
|
|
2023
2023
|
}
|
|
2024
2024
|
if (d) {
|
|
2025
|
-
var
|
|
2026
|
-
const x = m === "y" ? "width" : "height", S = Ho.has(we(r)), R = i.reference[p] - i.floating[x] + (S && ((
|
|
2027
|
-
|
|
2025
|
+
var w, y;
|
|
2026
|
+
const x = m === "y" ? "width" : "height", S = Ho.has(we(r)), R = i.reference[p] - i.floating[x] + (S && ((w = s.offset) == null ? void 0 : w[p]) || 0) + (S ? 0 : v.crossAxis), P = i.reference[p] + i.reference[x] + (S ? 0 : ((y = s.offset) == null ? void 0 : y[p]) || 0) - (S ? v.crossAxis : 0);
|
|
2027
|
+
b < R ? b = R : b > P && (b = P);
|
|
2028
2028
|
}
|
|
2029
2029
|
return {
|
|
2030
2030
|
[m]: h,
|
|
2031
|
-
[p]:
|
|
2031
|
+
[p]: b
|
|
2032
2032
|
};
|
|
2033
2033
|
}
|
|
2034
2034
|
};
|
|
@@ -2047,17 +2047,17 @@ const ca = function(e) {
|
|
|
2047
2047
|
apply: c = () => {
|
|
2048
2048
|
},
|
|
2049
2049
|
...d
|
|
2050
|
-
} = be(e, t),
|
|
2051
|
-
width:
|
|
2052
|
-
height:
|
|
2050
|
+
} = be(e, t), u = await s.detectOverflow(t, d), p = we(r), m = Ye(r), h = me(r) === "y", {
|
|
2051
|
+
width: b,
|
|
2052
|
+
height: f
|
|
2053
2053
|
} = i.floating;
|
|
2054
|
-
let
|
|
2055
|
-
p === "top" || p === "bottom" ? (
|
|
2056
|
-
const y =
|
|
2054
|
+
let v, w;
|
|
2055
|
+
p === "top" || p === "bottom" ? (v = p, w = m === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (w = p, v = m === "end" ? "top" : "bottom");
|
|
2056
|
+
const y = f - u.top - u.bottom, x = b - u.left - u.right, S = Ae(f - u[v], y), R = Ae(b - u[w], x), P = !t.middlewareData.shift;
|
|
2057
2057
|
let E = S, C = R;
|
|
2058
2058
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = x), (o = t.middlewareData.shift) != null && o.enabled.y && (E = y), P && !m) {
|
|
2059
|
-
const L = re(
|
|
2060
|
-
h ? C =
|
|
2059
|
+
const L = re(u.left, 0), W = re(u.right, 0), B = re(u.top, 0), V = re(u.bottom, 0);
|
|
2060
|
+
h ? C = b - 2 * (L !== 0 || W !== 0 ? L + W : re(u.left, u.right)) : E = f - 2 * (B !== 0 || V !== 0 ? B + V : re(u.top, u.bottom));
|
|
2061
2061
|
}
|
|
2062
2062
|
await c({
|
|
2063
2063
|
...t,
|
|
@@ -2065,7 +2065,7 @@ const ca = function(e) {
|
|
|
2065
2065
|
availableHeight: E
|
|
2066
2066
|
});
|
|
2067
2067
|
const M = await s.getDimensions(a.floating);
|
|
2068
|
-
return
|
|
2068
|
+
return b !== M.width || f !== M.height ? {
|
|
2069
2069
|
reset: {
|
|
2070
2070
|
rects: !0
|
|
2071
2071
|
}
|
|
@@ -2232,17 +2232,17 @@ function Le(e, t, n, o) {
|
|
|
2232
2232
|
let s = he(1);
|
|
2233
2233
|
t && (o ? le(o) && (s = je(o)) : s = je(e));
|
|
2234
2234
|
const a = va(i, n, o) ? Ko(i) : he(0);
|
|
2235
|
-
let c = (r.left + a.x) / s.x, d = (r.top + a.y) / s.y,
|
|
2235
|
+
let c = (r.left + a.x) / s.x, d = (r.top + a.y) / s.y, u = r.width / s.x, p = r.height / s.y;
|
|
2236
2236
|
if (i) {
|
|
2237
2237
|
const m = ie(i), h = o && le(o) ? ie(o) : o;
|
|
2238
|
-
let
|
|
2239
|
-
for (;
|
|
2240
|
-
const
|
|
2241
|
-
c *=
|
|
2238
|
+
let b = m, f = en(b);
|
|
2239
|
+
for (; f && o && h !== b; ) {
|
|
2240
|
+
const v = je(f), w = f.getBoundingClientRect(), y = de(f), x = w.left + (f.clientLeft + parseFloat(y.paddingLeft)) * v.x, S = w.top + (f.clientTop + parseFloat(y.paddingTop)) * v.y;
|
|
2241
|
+
c *= v.x, d *= v.y, u *= v.x, p *= v.y, c += x, d += S, b = ie(f), f = en(b);
|
|
2242
2242
|
}
|
|
2243
2243
|
}
|
|
2244
2244
|
return vt({
|
|
2245
|
-
width:
|
|
2245
|
+
width: u,
|
|
2246
2246
|
height: p,
|
|
2247
2247
|
x: c,
|
|
2248
2248
|
y: d
|
|
@@ -2273,17 +2273,17 @@ function ba(e) {
|
|
|
2273
2273
|
scrollLeft: 0,
|
|
2274
2274
|
scrollTop: 0
|
|
2275
2275
|
}, d = he(1);
|
|
2276
|
-
const
|
|
2276
|
+
const u = he(0), p = ye(o);
|
|
2277
2277
|
if ((p || !p && !i) && ((Xe(o) !== "body" || tt(s)) && (c = Pt(o)), p)) {
|
|
2278
2278
|
const h = Le(o);
|
|
2279
|
-
d = je(o),
|
|
2279
|
+
d = je(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
|
|
2280
2280
|
}
|
|
2281
2281
|
const m = s && !p && !i ? Yo(s, c) : he(0);
|
|
2282
2282
|
return {
|
|
2283
2283
|
width: n.width * d.x,
|
|
2284
2284
|
height: n.height * d.y,
|
|
2285
|
-
x: n.x * d.x - c.scrollLeft * d.x +
|
|
2286
|
-
y: n.y * d.y - c.scrollTop * d.y +
|
|
2285
|
+
x: n.x * d.x - c.scrollLeft * d.x + u.x + m.x,
|
|
2286
|
+
y: n.y * d.y - c.scrollTop * d.y + u.y + m.y
|
|
2287
2287
|
};
|
|
2288
2288
|
}
|
|
2289
2289
|
function wa(e) {
|
|
@@ -2306,13 +2306,13 @@ function xa(e, t) {
|
|
|
2306
2306
|
let i = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
|
|
2307
2307
|
if (r) {
|
|
2308
2308
|
i = r.width, s = r.height;
|
|
2309
|
-
const
|
|
2310
|
-
(!
|
|
2309
|
+
const u = wn();
|
|
2310
|
+
(!u || u && t === "fixed") && (a = r.offsetLeft, c = r.offsetTop);
|
|
2311
2311
|
}
|
|
2312
2312
|
const d = Nt(o);
|
|
2313
2313
|
if (d <= 0) {
|
|
2314
|
-
const
|
|
2315
|
-
|
|
2314
|
+
const u = o.ownerDocument, p = u.body, m = getComputedStyle(p), h = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, b = Math.abs(o.clientWidth - p.clientWidth - h);
|
|
2315
|
+
b <= Kn && (i -= b);
|
|
2316
2316
|
} else d <= Kn && (i += d);
|
|
2317
2317
|
return {
|
|
2318
2318
|
width: i,
|
|
@@ -2362,7 +2362,7 @@ function Ca(e, t) {
|
|
|
2362
2362
|
let s = i ? ke(e) : e;
|
|
2363
2363
|
for (; le(s) && !Ke(s); ) {
|
|
2364
2364
|
const a = de(s), c = bn(s);
|
|
2365
|
-
!c && a.position === "fixed" && (r = null), (i ? !c && !r : !c && a.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || tt(s) && !c && Xo(e, s)) ? o = o.filter((
|
|
2365
|
+
!c && a.position === "fixed" && (r = null), (i ? !c && !r : !c && a.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || tt(s) && !c && Xo(e, s)) ? o = o.filter((u) => u !== s) : r = a, s = ke(s);
|
|
2366
2366
|
}
|
|
2367
2367
|
return t.set(e, o), o;
|
|
2368
2368
|
}
|
|
@@ -2374,14 +2374,14 @@ function Ea(e) {
|
|
|
2374
2374
|
strategy: r
|
|
2375
2375
|
} = e;
|
|
2376
2376
|
const s = [...n === "clippingAncestors" ? kt(t) ? [] : Ca(t, this._c) : [].concat(n), o], a = Yn(t, s[0], r);
|
|
2377
|
-
let c = a.top, d = a.right,
|
|
2377
|
+
let c = a.top, d = a.right, u = a.bottom, p = a.left;
|
|
2378
2378
|
for (let m = 1; m < s.length; m++) {
|
|
2379
2379
|
const h = Yn(t, s[m], r);
|
|
2380
|
-
c = re(h.top, c), d = Ae(h.right, d),
|
|
2380
|
+
c = re(h.top, c), d = Ae(h.right, d), u = Ae(h.bottom, u), p = re(h.left, p);
|
|
2381
2381
|
}
|
|
2382
2382
|
return {
|
|
2383
2383
|
width: d - p,
|
|
2384
|
-
height:
|
|
2384
|
+
height: u - c,
|
|
2385
2385
|
x: p,
|
|
2386
2386
|
y: c
|
|
2387
2387
|
};
|
|
@@ -2412,7 +2412,7 @@ function Aa(e, t, n) {
|
|
|
2412
2412
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
2413
2413
|
} else r && d();
|
|
2414
2414
|
i && !o && r && d();
|
|
2415
|
-
const
|
|
2415
|
+
const u = r && !o && !i ? Yo(r, a) : he(0), p = s.left + a.scrollLeft - c.x - u.x, m = s.top + a.scrollTop - c.y - u.y;
|
|
2416
2416
|
return {
|
|
2417
2417
|
x: p,
|
|
2418
2418
|
y: m,
|
|
@@ -2489,15 +2489,15 @@ function Oa(e, t) {
|
|
|
2489
2489
|
function s(a, c) {
|
|
2490
2490
|
a === void 0 && (a = !1), c === void 0 && (c = 1), i();
|
|
2491
2491
|
const d = e.getBoundingClientRect(), {
|
|
2492
|
-
left:
|
|
2492
|
+
left: u,
|
|
2493
2493
|
top: p,
|
|
2494
2494
|
width: m,
|
|
2495
2495
|
height: h
|
|
2496
2496
|
} = d;
|
|
2497
2497
|
if (a || t(), !m || !h)
|
|
2498
2498
|
return;
|
|
2499
|
-
const
|
|
2500
|
-
rootMargin: -
|
|
2499
|
+
const b = ct(p), f = ct(r.clientWidth - (u + m)), v = ct(r.clientHeight - (p + h)), w = ct(u), x = {
|
|
2500
|
+
rootMargin: -b + "px " + -f + "px " + -v + "px " + -w + "px",
|
|
2501
2501
|
threshold: re(0, Ae(1, c)) || 1
|
|
2502
2502
|
};
|
|
2503
2503
|
let S = !0;
|
|
@@ -2533,32 +2533,32 @@ function Ta(e, t, n, o) {
|
|
|
2533
2533
|
elementResize: s = typeof ResizeObserver == "function",
|
|
2534
2534
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
2535
2535
|
animationFrame: c = !1
|
|
2536
|
-
} = o, d = yn(e),
|
|
2537
|
-
|
|
2538
|
-
r &&
|
|
2536
|
+
} = o, d = yn(e), u = r || i ? [...d ? et(d) : [], ...t ? et(t) : []] : [];
|
|
2537
|
+
u.forEach((w) => {
|
|
2538
|
+
r && w.addEventListener("scroll", n, {
|
|
2539
2539
|
passive: !0
|
|
2540
|
-
}), i &&
|
|
2540
|
+
}), i && w.addEventListener("resize", n);
|
|
2541
2541
|
});
|
|
2542
2542
|
const p = d && a ? Oa(d, n) : null;
|
|
2543
2543
|
let m = -1, h = null;
|
|
2544
|
-
s && (h = new ResizeObserver((
|
|
2545
|
-
let [y] =
|
|
2544
|
+
s && (h = new ResizeObserver((w) => {
|
|
2545
|
+
let [y] = w;
|
|
2546
2546
|
y && y.target === d && h && t && (h.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
2547
2547
|
var x;
|
|
2548
2548
|
(x = h) == null || x.observe(t);
|
|
2549
2549
|
})), n();
|
|
2550
2550
|
}), d && !c && h.observe(d), t && h.observe(t));
|
|
2551
|
-
let
|
|
2552
|
-
c &&
|
|
2553
|
-
function
|
|
2554
|
-
const
|
|
2555
|
-
|
|
2551
|
+
let b, f = c ? Le(e) : null;
|
|
2552
|
+
c && v();
|
|
2553
|
+
function v() {
|
|
2554
|
+
const w = Le(e);
|
|
2555
|
+
f && !Zo(f, w) && n(), f = w, b = requestAnimationFrame(v);
|
|
2556
2556
|
}
|
|
2557
2557
|
return n(), () => {
|
|
2558
|
-
var
|
|
2559
|
-
|
|
2558
|
+
var w;
|
|
2559
|
+
u.forEach((y) => {
|
|
2560
2560
|
r && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
|
|
2561
|
-
}), p?.(), (
|
|
2561
|
+
}), p?.(), (w = h) == null || w.disconnect(), h = null, c && cancelAnimationFrame(b);
|
|
2562
2562
|
};
|
|
2563
2563
|
}
|
|
2564
2564
|
const Ia = ca, Ma = la, _a = ia, Da = ua, La = sa, qn = ra, za = da, Fa = (e, t, n) => {
|
|
@@ -2633,7 +2633,7 @@ function Va(e) {
|
|
|
2633
2633
|
transform: a = !0,
|
|
2634
2634
|
whileElementsMounted: c,
|
|
2635
2635
|
open: d
|
|
2636
|
-
} = e, [
|
|
2636
|
+
} = e, [u, p] = l.useState({
|
|
2637
2637
|
x: 0,
|
|
2638
2638
|
y: 0,
|
|
2639
2639
|
strategy: n,
|
|
@@ -2642,11 +2642,11 @@ function Va(e) {
|
|
|
2642
2642
|
isPositioned: !1
|
|
2643
2643
|
}), [m, h] = l.useState(o);
|
|
2644
2644
|
bt(m, o) || h(o);
|
|
2645
|
-
const [
|
|
2646
|
-
T !== P.current && (P.current = T,
|
|
2645
|
+
const [b, f] = l.useState(null), [v, w] = l.useState(null), y = l.useCallback((T) => {
|
|
2646
|
+
T !== P.current && (P.current = T, f(T));
|
|
2647
2647
|
}, []), x = l.useCallback((T) => {
|
|
2648
|
-
T !== E.current && (E.current = T,
|
|
2649
|
-
}, []), S = i ||
|
|
2648
|
+
T !== E.current && (E.current = T, w(T));
|
|
2649
|
+
}, []), S = i || b, R = s || v, P = l.useRef(null), E = l.useRef(null), C = l.useRef(u), M = c != null, L = jt(c), W = jt(r), B = jt(d), V = l.useCallback(() => {
|
|
2650
2650
|
if (!P.current || !E.current)
|
|
2651
2651
|
return;
|
|
2652
2652
|
const T = {
|
|
@@ -2700,7 +2700,7 @@ function Va(e) {
|
|
|
2700
2700
|
};
|
|
2701
2701
|
if (!I.floating)
|
|
2702
2702
|
return T;
|
|
2703
|
-
const U = Zn(I.floating,
|
|
2703
|
+
const U = Zn(I.floating, u.x), A = Zn(I.floating, u.y);
|
|
2704
2704
|
return a ? {
|
|
2705
2705
|
...T,
|
|
2706
2706
|
transform: "translate(" + U + "px, " + A + "px)",
|
|
@@ -2712,14 +2712,14 @@ function Va(e) {
|
|
|
2712
2712
|
left: U,
|
|
2713
2713
|
top: A
|
|
2714
2714
|
};
|
|
2715
|
-
}, [n, a, I.floating,
|
|
2715
|
+
}, [n, a, I.floating, u.x, u.y]);
|
|
2716
2716
|
return l.useMemo(() => ({
|
|
2717
|
-
...
|
|
2717
|
+
...u,
|
|
2718
2718
|
update: V,
|
|
2719
2719
|
refs: H,
|
|
2720
2720
|
elements: I,
|
|
2721
2721
|
floatingStyles: D
|
|
2722
|
-
}), [
|
|
2722
|
+
}), [u, V, H, I, D]);
|
|
2723
2723
|
}
|
|
2724
2724
|
const $a = (e) => {
|
|
2725
2725
|
function t(n) {
|
|
@@ -2790,7 +2790,7 @@ const $a = (e) => {
|
|
|
2790
2790
|
};
|
|
2791
2791
|
var qa = "Arrow", Jo = l.forwardRef((e, t) => {
|
|
2792
2792
|
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
2793
|
-
return /* @__PURE__ */
|
|
2793
|
+
return /* @__PURE__ */ g(
|
|
2794
2794
|
K.svg,
|
|
2795
2795
|
{
|
|
2796
2796
|
...i,
|
|
@@ -2799,14 +2799,14 @@ var qa = "Arrow", Jo = l.forwardRef((e, t) => {
|
|
|
2799
2799
|
height: r,
|
|
2800
2800
|
viewBox: "0 0 30 10",
|
|
2801
2801
|
preserveAspectRatio: "none",
|
|
2802
|
-
children: e.asChild ? n : /* @__PURE__ */
|
|
2802
|
+
children: e.asChild ? n : /* @__PURE__ */ g("polygon", { points: "0,0 30,0 15,10" })
|
|
2803
2803
|
}
|
|
2804
2804
|
);
|
|
2805
2805
|
});
|
|
2806
2806
|
Jo.displayName = qa;
|
|
2807
2807
|
var Za = Jo, xn = "Popper", [er, tr] = St(xn), [Qa, nr] = er(xn), or = (e) => {
|
|
2808
2808
|
const { __scopePopper: t, children: n } = e, [o, r] = l.useState(null);
|
|
2809
|
-
return /* @__PURE__ */
|
|
2809
|
+
return /* @__PURE__ */ g(Qa, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
2810
2810
|
};
|
|
2811
2811
|
or.displayName = xn;
|
|
2812
2812
|
var rr = "PopperAnchor", ir = l.forwardRef(
|
|
@@ -2815,7 +2815,7 @@ var rr = "PopperAnchor", ir = l.forwardRef(
|
|
|
2815
2815
|
return l.useEffect(() => {
|
|
2816
2816
|
const d = c.current;
|
|
2817
2817
|
c.current = o?.current || s.current, d !== c.current && i.onAnchorChange(c.current);
|
|
2818
|
-
}), o ? null : /* @__PURE__ */
|
|
2818
|
+
}), o ? null : /* @__PURE__ */ g(K.div, { ...r, ref: a });
|
|
2819
2819
|
}
|
|
2820
2820
|
);
|
|
2821
2821
|
ir.displayName = rr;
|
|
@@ -2830,13 +2830,13 @@ var Sn = "PopperContent", [Ja, ec] = er(Sn), sr = l.forwardRef(
|
|
|
2830
2830
|
arrowPadding: a = 0,
|
|
2831
2831
|
avoidCollisions: c = !0,
|
|
2832
2832
|
collisionBoundary: d = [],
|
|
2833
|
-
collisionPadding:
|
|
2833
|
+
collisionPadding: u = 0,
|
|
2834
2834
|
sticky: p = "partial",
|
|
2835
2835
|
hideWhenDetached: m = !1,
|
|
2836
2836
|
updatePositionStrategy: h = "optimized",
|
|
2837
|
-
onPlaced:
|
|
2838
|
-
...
|
|
2839
|
-
} = e,
|
|
2837
|
+
onPlaced: b,
|
|
2838
|
+
...f
|
|
2839
|
+
} = e, v = nr(Sn, n), [w, y] = l.useState(null), x = ee(t, (O) => y(O)), [S, R] = l.useState(null), P = js(S), E = P?.width ?? 0, C = P?.height ?? 0, M = o + (i !== "center" ? "-" + i : ""), L = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, W = Array.isArray(d) ? d : [d], B = W.length > 0, V = {
|
|
2840
2840
|
padding: L,
|
|
2841
2841
|
boundary: W.filter(nc),
|
|
2842
2842
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -2849,7 +2849,7 @@ var Sn = "PopperContent", [Ja, ec] = er(Sn), sr = l.forwardRef(
|
|
|
2849
2849
|
animationFrame: h === "always"
|
|
2850
2850
|
}),
|
|
2851
2851
|
elements: {
|
|
2852
|
-
reference:
|
|
2852
|
+
reference: v.anchor
|
|
2853
2853
|
},
|
|
2854
2854
|
middleware: [
|
|
2855
2855
|
Ha({ mainAxis: r + C, alignmentAxis: s }),
|
|
@@ -2871,14 +2871,14 @@ var Sn = "PopperContent", [Ja, ec] = er(Sn), sr = l.forwardRef(
|
|
|
2871
2871
|
oc({ arrowWidth: E, arrowHeight: C }),
|
|
2872
2872
|
m && Ya({ strategy: "referenceHidden", ...V })
|
|
2873
2873
|
]
|
|
2874
|
-
}), [U, A] = lr(I), fe = _e(
|
|
2874
|
+
}), [U, A] = lr(I), fe = _e(b);
|
|
2875
2875
|
oe(() => {
|
|
2876
2876
|
D && fe?.();
|
|
2877
2877
|
}, [D, fe]);
|
|
2878
2878
|
const xe = T.arrow?.x, Se = T.arrow?.y, se = T.arrow?.centerOffset !== 0, [Q, Z] = l.useState();
|
|
2879
2879
|
return oe(() => {
|
|
2880
|
-
|
|
2881
|
-
}, [
|
|
2880
|
+
w && Z(window.getComputedStyle(w).zIndex);
|
|
2881
|
+
}, [w]), /* @__PURE__ */ g(
|
|
2882
2882
|
"div",
|
|
2883
2883
|
{
|
|
2884
2884
|
ref: z.setFloating,
|
|
@@ -2902,7 +2902,7 @@ var Sn = "PopperContent", [Ja, ec] = er(Sn), sr = l.forwardRef(
|
|
|
2902
2902
|
}
|
|
2903
2903
|
},
|
|
2904
2904
|
dir: e.dir,
|
|
2905
|
-
children: /* @__PURE__ */
|
|
2905
|
+
children: /* @__PURE__ */ g(
|
|
2906
2906
|
Ja,
|
|
2907
2907
|
{
|
|
2908
2908
|
scope: n,
|
|
@@ -2911,15 +2911,15 @@ var Sn = "PopperContent", [Ja, ec] = er(Sn), sr = l.forwardRef(
|
|
|
2911
2911
|
arrowX: xe,
|
|
2912
2912
|
arrowY: Se,
|
|
2913
2913
|
shouldHideArrow: se,
|
|
2914
|
-
children: /* @__PURE__ */
|
|
2914
|
+
children: /* @__PURE__ */ g(
|
|
2915
2915
|
K.div,
|
|
2916
2916
|
{
|
|
2917
2917
|
"data-side": U,
|
|
2918
2918
|
"data-align": A,
|
|
2919
|
-
...
|
|
2919
|
+
...f,
|
|
2920
2920
|
ref: x,
|
|
2921
2921
|
style: {
|
|
2922
|
-
...
|
|
2922
|
+
...f.style,
|
|
2923
2923
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2924
2924
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2925
2925
|
animation: D ? void 0 : "none"
|
|
@@ -2944,7 +2944,7 @@ var ar = "PopperArrow", tc = {
|
|
|
2944
2944
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2945
2945
|
// doesn't report size as we'd expect on SVG elements.
|
|
2946
2946
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
2947
|
-
/* @__PURE__ */
|
|
2947
|
+
/* @__PURE__ */ g(
|
|
2948
2948
|
"span",
|
|
2949
2949
|
{
|
|
2950
2950
|
ref: i.onArrowChange,
|
|
@@ -2967,7 +2967,7 @@ var ar = "PopperArrow", tc = {
|
|
|
2967
2967
|
}[i.placedSide],
|
|
2968
2968
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2969
2969
|
},
|
|
2970
|
-
children: /* @__PURE__ */
|
|
2970
|
+
children: /* @__PURE__ */ g(
|
|
2971
2971
|
Za,
|
|
2972
2972
|
{
|
|
2973
2973
|
...r,
|
|
@@ -2991,9 +2991,9 @@ var oc = (e) => ({
|
|
|
2991
2991
|
name: "transformOrigin",
|
|
2992
2992
|
options: e,
|
|
2993
2993
|
fn(t) {
|
|
2994
|
-
const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0, a = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [d,
|
|
2995
|
-
let
|
|
2996
|
-
return d === "bottom" ? (
|
|
2994
|
+
const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0, a = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [d, u] = lr(n), p = { start: "0%", center: "50%", end: "100%" }[u], m = (r.arrow?.x ?? 0) + a / 2, h = (r.arrow?.y ?? 0) + c / 2;
|
|
2995
|
+
let b = "", f = "";
|
|
2996
|
+
return d === "bottom" ? (b = s ? p : `${m}px`, f = `${-c}px`) : d === "top" ? (b = s ? p : `${m}px`, f = `${o.floating.height + c}px`) : d === "right" ? (b = `${-c}px`, f = s ? p : `${h}px`) : d === "left" && (b = `${o.floating.width + c}px`, f = s ? p : `${h}px`), { data: { x: b, y: f } };
|
|
2997
2997
|
}
|
|
2998
2998
|
});
|
|
2999
2999
|
function lr(e) {
|
|
@@ -3018,12 +3018,12 @@ var cc = [" ", "Enter", "ArrowUp", "ArrowDown"], lc = [" ", "Enter"], ze = "Sele
|
|
|
3018
3018
|
defaultValue: a,
|
|
3019
3019
|
onValueChange: c,
|
|
3020
3020
|
dir: d,
|
|
3021
|
-
name:
|
|
3021
|
+
name: u,
|
|
3022
3022
|
autoComplete: p,
|
|
3023
3023
|
disabled: m,
|
|
3024
3024
|
required: h,
|
|
3025
|
-
form:
|
|
3026
|
-
} = e,
|
|
3025
|
+
form: b
|
|
3026
|
+
} = e, f = It(t), [v, w] = l.useState(null), [y, x] = l.useState(null), [S, R] = l.useState(!1), P = Ri(d), [E, C] = Xt({
|
|
3027
3027
|
prop: o,
|
|
3028
3028
|
defaultProp: r ?? !1,
|
|
3029
3029
|
onChange: i,
|
|
@@ -3033,14 +3033,14 @@ var cc = [" ", "Enter", "ArrowUp", "ArrowDown"], lc = [" ", "Enter"], ze = "Sele
|
|
|
3033
3033
|
defaultProp: a,
|
|
3034
3034
|
onChange: c,
|
|
3035
3035
|
caller: ze
|
|
3036
|
-
}), W = l.useRef(null), B =
|
|
3037
|
-
return /* @__PURE__ */
|
|
3036
|
+
}), W = l.useRef(null), B = v ? b || !!v.closest("form") : !0, [V, z] = l.useState(/* @__PURE__ */ new Set()), H = Array.from(V).map((I) => I.props.value).join(";");
|
|
3037
|
+
return /* @__PURE__ */ g(rc, { ...f, children: /* @__PURE__ */ J(
|
|
3038
3038
|
uc,
|
|
3039
3039
|
{
|
|
3040
3040
|
required: h,
|
|
3041
3041
|
scope: t,
|
|
3042
|
-
trigger:
|
|
3043
|
-
onTriggerChange:
|
|
3042
|
+
trigger: v,
|
|
3043
|
+
onTriggerChange: w,
|
|
3044
3044
|
valueNode: y,
|
|
3045
3045
|
onValueNodeChange: x,
|
|
3046
3046
|
valueNodeHasChildren: S,
|
|
@@ -3054,7 +3054,7 @@ var cc = [" ", "Enter", "ArrowUp", "ArrowDown"], lc = [" ", "Enter"], ze = "Sele
|
|
|
3054
3054
|
triggerPointerDownPosRef: W,
|
|
3055
3055
|
disabled: m,
|
|
3056
3056
|
children: [
|
|
3057
|
-
/* @__PURE__ */
|
|
3057
|
+
/* @__PURE__ */ g(Ot.Provider, { scope: t, children: /* @__PURE__ */ g(
|
|
3058
3058
|
fc,
|
|
3059
3059
|
{
|
|
3060
3060
|
scope: e.__scopeSelect,
|
|
@@ -3076,14 +3076,14 @@ var cc = [" ", "Enter", "ArrowUp", "ArrowDown"], lc = [" ", "Enter"], ze = "Sele
|
|
|
3076
3076
|
"aria-hidden": !0,
|
|
3077
3077
|
required: h,
|
|
3078
3078
|
tabIndex: -1,
|
|
3079
|
-
name:
|
|
3079
|
+
name: u,
|
|
3080
3080
|
autoComplete: p,
|
|
3081
3081
|
value: M,
|
|
3082
3082
|
onChange: (I) => L(I.target.value),
|
|
3083
3083
|
disabled: m,
|
|
3084
|
-
form:
|
|
3084
|
+
form: b,
|
|
3085
3085
|
children: [
|
|
3086
|
-
M === void 0 ? /* @__PURE__ */
|
|
3086
|
+
M === void 0 ? /* @__PURE__ */ g("option", { value: "" }) : null,
|
|
3087
3087
|
Array.from(V)
|
|
3088
3088
|
]
|
|
3089
3089
|
},
|
|
@@ -3096,16 +3096,16 @@ var cc = [" ", "Enter", "ArrowUp", "ArrowDown"], lc = [" ", "Enter"], ze = "Sele
|
|
|
3096
3096
|
dr.displayName = ze;
|
|
3097
3097
|
var ur = "SelectTrigger", fr = l.forwardRef(
|
|
3098
3098
|
(e, t) => {
|
|
3099
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = It(n), s = Pe(ur, n), a = s.disabled || o, c = ee(t, s.onTriggerChange), d = Tt(n),
|
|
3100
|
-
const
|
|
3099
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, i = It(n), s = Pe(ur, n), a = s.disabled || o, c = ee(t, s.onTriggerChange), d = Tt(n), u = l.useRef("touch"), [p, m, h] = _r((f) => {
|
|
3100
|
+
const v = d().filter((x) => !x.disabled), w = v.find((x) => x.value === s.value), y = Dr(v, f, w);
|
|
3101
3101
|
y !== void 0 && s.onValueChange(y.value);
|
|
3102
|
-
}),
|
|
3103
|
-
a || (s.onOpenChange(!0), h()),
|
|
3104
|
-
x: Math.round(
|
|
3105
|
-
y: Math.round(
|
|
3102
|
+
}), b = (f) => {
|
|
3103
|
+
a || (s.onOpenChange(!0), h()), f && (s.triggerPointerDownPosRef.current = {
|
|
3104
|
+
x: Math.round(f.pageX),
|
|
3105
|
+
y: Math.round(f.pageY)
|
|
3106
3106
|
});
|
|
3107
3107
|
};
|
|
3108
|
-
return /* @__PURE__ */
|
|
3108
|
+
return /* @__PURE__ */ g(ic, { asChild: !0, ...i, children: /* @__PURE__ */ g(
|
|
3109
3109
|
K.button,
|
|
3110
3110
|
{
|
|
3111
3111
|
type: "button",
|
|
@@ -3121,17 +3121,17 @@ var ur = "SelectTrigger", fr = l.forwardRef(
|
|
|
3121
3121
|
"data-placeholder": Mr(s.value) ? "" : void 0,
|
|
3122
3122
|
...r,
|
|
3123
3123
|
ref: c,
|
|
3124
|
-
onClick: q(r.onClick, (
|
|
3125
|
-
|
|
3124
|
+
onClick: q(r.onClick, (f) => {
|
|
3125
|
+
f.currentTarget.focus(), u.current !== "mouse" && b(f);
|
|
3126
3126
|
}),
|
|
3127
|
-
onPointerDown: q(r.onPointerDown, (
|
|
3128
|
-
|
|
3129
|
-
const
|
|
3130
|
-
|
|
3127
|
+
onPointerDown: q(r.onPointerDown, (f) => {
|
|
3128
|
+
u.current = f.pointerType;
|
|
3129
|
+
const v = f.target;
|
|
3130
|
+
v.hasPointerCapture(f.pointerId) && v.releasePointerCapture(f.pointerId), f.button === 0 && f.ctrlKey === !1 && f.pointerType === "mouse" && (b(f), f.preventDefault());
|
|
3131
3131
|
}),
|
|
3132
|
-
onKeyDown: q(r.onKeyDown, (
|
|
3133
|
-
const
|
|
3134
|
-
!(
|
|
3132
|
+
onKeyDown: q(r.onKeyDown, (f) => {
|
|
3133
|
+
const v = p.current !== "";
|
|
3134
|
+
!(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && m(f.key), !(v && f.key === " ") && cc.includes(f.key) && (b(), f.preventDefault());
|
|
3135
3135
|
})
|
|
3136
3136
|
}
|
|
3137
3137
|
) });
|
|
@@ -3140,16 +3140,16 @@ var ur = "SelectTrigger", fr = l.forwardRef(
|
|
|
3140
3140
|
fr.displayName = ur;
|
|
3141
3141
|
var pr = "SelectValue", mr = l.forwardRef(
|
|
3142
3142
|
(e, t) => {
|
|
3143
|
-
const { __scopeSelect: n, className: o, style: r, children: i, placeholder: s = "", ...a } = e, c = Pe(pr, n), { onValueNodeHasChildrenChange: d } = c,
|
|
3143
|
+
const { __scopeSelect: n, className: o, style: r, children: i, placeholder: s = "", ...a } = e, c = Pe(pr, n), { onValueNodeHasChildrenChange: d } = c, u = i !== void 0, p = ee(t, c.onValueNodeChange);
|
|
3144
3144
|
return oe(() => {
|
|
3145
|
-
d(
|
|
3146
|
-
}, [d,
|
|
3145
|
+
d(u);
|
|
3146
|
+
}, [d, u]), /* @__PURE__ */ g(
|
|
3147
3147
|
K.span,
|
|
3148
3148
|
{
|
|
3149
3149
|
...a,
|
|
3150
3150
|
ref: p,
|
|
3151
3151
|
style: { pointerEvents: "none" },
|
|
3152
|
-
children: Mr(c.value) ? /* @__PURE__ */
|
|
3152
|
+
children: Mr(c.value) ? /* @__PURE__ */ g(Je, { children: s }) : i
|
|
3153
3153
|
}
|
|
3154
3154
|
);
|
|
3155
3155
|
}
|
|
@@ -3158,11 +3158,11 @@ mr.displayName = pr;
|
|
|
3158
3158
|
var mc = "SelectIcon", hr = l.forwardRef(
|
|
3159
3159
|
(e, t) => {
|
|
3160
3160
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
3161
|
-
return /* @__PURE__ */
|
|
3161
|
+
return /* @__PURE__ */ g(K.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
|
|
3162
3162
|
}
|
|
3163
3163
|
);
|
|
3164
3164
|
hr.displayName = mc;
|
|
3165
|
-
var hc = "SelectPortal", gr = (e) => /* @__PURE__ */
|
|
3165
|
+
var hc = "SelectPortal", gr = (e) => /* @__PURE__ */ g(dn, { asChild: !0, ...e });
|
|
3166
3166
|
gr.displayName = hc;
|
|
3167
3167
|
var Fe = "SelectContent", vr = l.forwardRef(
|
|
3168
3168
|
(e, t) => {
|
|
@@ -3172,11 +3172,11 @@ var Fe = "SelectContent", vr = l.forwardRef(
|
|
|
3172
3172
|
}, []), !n.open) {
|
|
3173
3173
|
const i = o;
|
|
3174
3174
|
return i ? xt.createPortal(
|
|
3175
|
-
/* @__PURE__ */
|
|
3175
|
+
/* @__PURE__ */ g(br, { scope: e.__scopeSelect, children: /* @__PURE__ */ g(Ot.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ g("div", { children: e.children }) }) }),
|
|
3176
3176
|
i
|
|
3177
3177
|
) : null;
|
|
3178
3178
|
}
|
|
3179
|
-
return /* @__PURE__ */
|
|
3179
|
+
return /* @__PURE__ */ g(wr, { ...e, ref: t });
|
|
3180
3180
|
}
|
|
3181
3181
|
);
|
|
3182
3182
|
vr.displayName = Fe;
|
|
@@ -3193,15 +3193,15 @@ var ce = 10, [br, Ne] = qe(Fe), gc = "SelectContentImpl", vc = /* @__PURE__ */ G
|
|
|
3193
3193
|
side: a,
|
|
3194
3194
|
sideOffset: c,
|
|
3195
3195
|
align: d,
|
|
3196
|
-
alignOffset:
|
|
3196
|
+
alignOffset: u,
|
|
3197
3197
|
arrowPadding: p,
|
|
3198
3198
|
collisionBoundary: m,
|
|
3199
3199
|
collisionPadding: h,
|
|
3200
|
-
sticky:
|
|
3201
|
-
hideWhenDetached:
|
|
3202
|
-
avoidCollisions:
|
|
3200
|
+
sticky: b,
|
|
3201
|
+
hideWhenDetached: f,
|
|
3202
|
+
avoidCollisions: v,
|
|
3203
3203
|
//
|
|
3204
|
-
...
|
|
3204
|
+
...w
|
|
3205
3205
|
} = e, y = Pe(Fe, n), [x, S] = l.useState(null), [R, P] = l.useState(null), E = ee(t, (O) => S(O)), [C, M] = l.useState(null), [L, W] = l.useState(
|
|
3206
3206
|
null
|
|
3207
3207
|
), B = Tt(n), [V, z] = l.useState(!1), H = l.useRef(!1);
|
|
@@ -3263,15 +3263,15 @@ var ce = 10, [br, Ne] = qe(Fe), gc = "SelectContentImpl", vc = /* @__PURE__ */ G
|
|
|
3263
3263
|
side: a,
|
|
3264
3264
|
sideOffset: c,
|
|
3265
3265
|
align: d,
|
|
3266
|
-
alignOffset:
|
|
3266
|
+
alignOffset: u,
|
|
3267
3267
|
arrowPadding: p,
|
|
3268
3268
|
collisionBoundary: m,
|
|
3269
3269
|
collisionPadding: h,
|
|
3270
|
-
sticky:
|
|
3271
|
-
hideWhenDetached:
|
|
3272
|
-
avoidCollisions:
|
|
3270
|
+
sticky: b,
|
|
3271
|
+
hideWhenDetached: f,
|
|
3272
|
+
avoidCollisions: v
|
|
3273
3273
|
} : {};
|
|
3274
|
-
return /* @__PURE__ */
|
|
3274
|
+
return /* @__PURE__ */ g(
|
|
3275
3275
|
br,
|
|
3276
3276
|
{
|
|
3277
3277
|
scope: n,
|
|
@@ -3287,7 +3287,7 @@ var ce = 10, [br, Ne] = qe(Fe), gc = "SelectContentImpl", vc = /* @__PURE__ */ G
|
|
|
3287
3287
|
position: o,
|
|
3288
3288
|
isPositioned: V,
|
|
3289
3289
|
searchRef: A,
|
|
3290
|
-
children: /* @__PURE__ */
|
|
3290
|
+
children: /* @__PURE__ */ g(un, { as: vc, allowPinchZoom: !0, children: /* @__PURE__ */ g(
|
|
3291
3291
|
ln,
|
|
3292
3292
|
{
|
|
3293
3293
|
asChild: !0,
|
|
@@ -3298,7 +3298,7 @@ var ce = 10, [br, Ne] = qe(Fe), gc = "SelectContentImpl", vc = /* @__PURE__ */ G
|
|
|
3298
3298
|
onUnmountAutoFocus: q(r, (O) => {
|
|
3299
3299
|
y.trigger?.focus({ preventScroll: !0 }), O.preventDefault();
|
|
3300
3300
|
}),
|
|
3301
|
-
children: /* @__PURE__ */
|
|
3301
|
+
children: /* @__PURE__ */ g(
|
|
3302
3302
|
cn,
|
|
3303
3303
|
{
|
|
3304
3304
|
asChild: !0,
|
|
@@ -3307,7 +3307,7 @@ var ce = 10, [br, Ne] = qe(Fe), gc = "SelectContentImpl", vc = /* @__PURE__ */ G
|
|
|
3307
3307
|
onPointerDownOutside: s,
|
|
3308
3308
|
onFocusOutside: (O) => O.preventDefault(),
|
|
3309
3309
|
onDismiss: () => y.onOpenChange(!1),
|
|
3310
|
-
children: /* @__PURE__ */
|
|
3310
|
+
children: /* @__PURE__ */ g(
|
|
3311
3311
|
Q,
|
|
3312
3312
|
{
|
|
3313
3313
|
role: "listbox",
|
|
@@ -3315,7 +3315,7 @@ var ce = 10, [br, Ne] = qe(Fe), gc = "SelectContentImpl", vc = /* @__PURE__ */ G
|
|
|
3315
3315
|
"data-state": y.open ? "open" : "closed",
|
|
3316
3316
|
dir: y.dir,
|
|
3317
3317
|
onContextMenu: (O) => O.preventDefault(),
|
|
3318
|
-
...
|
|
3318
|
+
...w,
|
|
3319
3319
|
...Z,
|
|
3320
3320
|
onPlaced: () => z(!0),
|
|
3321
3321
|
ref: E,
|
|
@@ -3325,9 +3325,9 @@ var ce = 10, [br, Ne] = qe(Fe), gc = "SelectContentImpl", vc = /* @__PURE__ */ G
|
|
|
3325
3325
|
flexDirection: "column",
|
|
3326
3326
|
// reset the outline by default as the content MAY get focused
|
|
3327
3327
|
outline: "none",
|
|
3328
|
-
...
|
|
3328
|
+
...w.style
|
|
3329
3329
|
},
|
|
3330
|
-
onKeyDown: q(
|
|
3330
|
+
onKeyDown: q(w.onKeyDown, (O) => {
|
|
3331
3331
|
const Y = O.ctrlKey || O.altKey || O.metaKey;
|
|
3332
3332
|
if (O.key === "Tab" && O.preventDefault(), !Y && O.key.length === 1 && fe(O.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(O.key)) {
|
|
3333
3333
|
let G = B().filter((j) => !j.disabled).map((j) => j.ref.current);
|
|
@@ -3350,9 +3350,9 @@ var ce = 10, [br, Ne] = qe(Fe), gc = "SelectContentImpl", vc = /* @__PURE__ */ G
|
|
|
3350
3350
|
);
|
|
3351
3351
|
wr.displayName = gc;
|
|
3352
3352
|
var bc = "SelectItemAlignedPosition", yr = l.forwardRef((e, t) => {
|
|
3353
|
-
const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Pe(Fe, n), s = Ne(Fe, n), [a, c] = l.useState(null), [d,
|
|
3354
|
-
if (i.trigger && i.valueNode && a && d &&
|
|
3355
|
-
const E = i.trigger.getBoundingClientRect(), C = d.getBoundingClientRect(), M = i.valueNode.getBoundingClientRect(), L =
|
|
3353
|
+
const { __scopeSelect: n, onPlaced: o, ...r } = e, i = Pe(Fe, n), s = Ne(Fe, n), [a, c] = l.useState(null), [d, u] = l.useState(null), p = ee(t, (E) => u(E)), m = Tt(n), h = l.useRef(!1), b = l.useRef(!0), { viewport: f, selectedItem: v, selectedItemText: w, focusSelectedItem: y } = s, x = l.useCallback(() => {
|
|
3354
|
+
if (i.trigger && i.valueNode && a && d && f && v && w) {
|
|
3355
|
+
const E = i.trigger.getBoundingClientRect(), C = d.getBoundingClientRect(), M = i.valueNode.getBoundingClientRect(), L = w.getBoundingClientRect();
|
|
3356
3356
|
if (i.dir !== "rtl") {
|
|
3357
3357
|
const j = L.left - C.left, X = M.left - j, ne = E.left - X, ae = E.width + ne, Mt = Math.max(ae, C.width), _t = window.innerWidth - ce, Dt = Qn(X, [
|
|
3358
3358
|
ce,
|
|
@@ -3371,25 +3371,25 @@ var bc = "SelectItemAlignedPosition", yr = l.forwardRef((e, t) => {
|
|
|
3371
3371
|
]);
|
|
3372
3372
|
a.style.minWidth = ae + "px", a.style.right = Dt + "px";
|
|
3373
3373
|
}
|
|
3374
|
-
const W = m(), B = window.innerHeight - ce * 2, V =
|
|
3374
|
+
const W = m(), B = window.innerHeight - ce * 2, V = f.scrollHeight, z = window.getComputedStyle(d), H = parseInt(z.borderTopWidth, 10), I = parseInt(z.paddingTop, 10), D = parseInt(z.borderBottomWidth, 10), T = parseInt(z.paddingBottom, 10), U = H + I + V + T + D, A = Math.min(v.offsetHeight * 5, U), fe = window.getComputedStyle(f), xe = parseInt(fe.paddingTop, 10), Se = parseInt(fe.paddingBottom, 10), se = E.top + E.height / 2 - ce, Q = B - se, Z = v.offsetHeight / 2, O = v.offsetTop + Z, Y = H + I + O, F = U - Y;
|
|
3375
3375
|
if (Y <= se) {
|
|
3376
|
-
const j = W.length > 0 &&
|
|
3376
|
+
const j = W.length > 0 && v === W[W.length - 1].ref.current;
|
|
3377
3377
|
a.style.bottom = "0px";
|
|
3378
|
-
const X = d.clientHeight -
|
|
3378
|
+
const X = d.clientHeight - f.offsetTop - f.offsetHeight, ne = Math.max(
|
|
3379
3379
|
Q,
|
|
3380
3380
|
Z + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
3381
3381
|
(j ? Se : 0) + X + D
|
|
3382
3382
|
), ae = Y + ne;
|
|
3383
3383
|
a.style.height = ae + "px";
|
|
3384
3384
|
} else {
|
|
3385
|
-
const j = W.length > 0 &&
|
|
3385
|
+
const j = W.length > 0 && v === W[0].ref.current;
|
|
3386
3386
|
a.style.top = "0px";
|
|
3387
3387
|
const ne = Math.max(
|
|
3388
3388
|
se,
|
|
3389
|
-
H +
|
|
3389
|
+
H + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
3390
3390
|
(j ? xe : 0) + Z
|
|
3391
3391
|
) + F;
|
|
3392
|
-
a.style.height = ne + "px",
|
|
3392
|
+
a.style.height = ne + "px", f.scrollTop = Y - se + f.offsetTop;
|
|
3393
3393
|
}
|
|
3394
3394
|
a.style.margin = `${ce}px 0`, a.style.minHeight = A + "px", a.style.maxHeight = B + "px", o?.(), requestAnimationFrame(() => h.current = !0);
|
|
3395
3395
|
}
|
|
@@ -3399,9 +3399,9 @@ var bc = "SelectItemAlignedPosition", yr = l.forwardRef((e, t) => {
|
|
|
3399
3399
|
i.valueNode,
|
|
3400
3400
|
a,
|
|
3401
3401
|
d,
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3402
|
+
f,
|
|
3403
|
+
v,
|
|
3404
|
+
w,
|
|
3405
3405
|
i.dir,
|
|
3406
3406
|
o
|
|
3407
3407
|
]);
|
|
@@ -3412,18 +3412,18 @@ var bc = "SelectItemAlignedPosition", yr = l.forwardRef((e, t) => {
|
|
|
3412
3412
|
}, [d]);
|
|
3413
3413
|
const P = l.useCallback(
|
|
3414
3414
|
(E) => {
|
|
3415
|
-
E &&
|
|
3415
|
+
E && b.current === !0 && (x(), y?.(), b.current = !1);
|
|
3416
3416
|
},
|
|
3417
3417
|
[x, y]
|
|
3418
3418
|
);
|
|
3419
|
-
return /* @__PURE__ */
|
|
3419
|
+
return /* @__PURE__ */ g(
|
|
3420
3420
|
yc,
|
|
3421
3421
|
{
|
|
3422
3422
|
scope: n,
|
|
3423
3423
|
contentWrapper: a,
|
|
3424
3424
|
shouldExpandOnScrollRef: h,
|
|
3425
3425
|
onScrollButtonChange: P,
|
|
3426
|
-
children: /* @__PURE__ */
|
|
3426
|
+
children: /* @__PURE__ */ g(
|
|
3427
3427
|
"div",
|
|
3428
3428
|
{
|
|
3429
3429
|
ref: c,
|
|
@@ -3433,7 +3433,7 @@ var bc = "SelectItemAlignedPosition", yr = l.forwardRef((e, t) => {
|
|
|
3433
3433
|
position: "fixed",
|
|
3434
3434
|
zIndex: S
|
|
3435
3435
|
},
|
|
3436
|
-
children: /* @__PURE__ */
|
|
3436
|
+
children: /* @__PURE__ */ g(
|
|
3437
3437
|
K.div,
|
|
3438
3438
|
{
|
|
3439
3439
|
...r,
|
|
@@ -3461,7 +3461,7 @@ var wc = "SelectPopperPosition", tn = l.forwardRef((e, t) => {
|
|
|
3461
3461
|
collisionPadding: r = ce,
|
|
3462
3462
|
...i
|
|
3463
3463
|
} = e, s = It(n);
|
|
3464
|
-
return /* @__PURE__ */
|
|
3464
|
+
return /* @__PURE__ */ g(
|
|
3465
3465
|
sc,
|
|
3466
3466
|
{
|
|
3467
3467
|
...s,
|
|
@@ -3487,7 +3487,7 @@ var [yc, Cn] = qe(Fe, {}), nn = "SelectViewport", xr = l.forwardRef(
|
|
|
3487
3487
|
(e, t) => {
|
|
3488
3488
|
const { __scopeSelect: n, nonce: o, ...r } = e, i = Ne(nn, n), s = Cn(nn, n), a = ee(t, i.onViewportChange), c = l.useRef(0);
|
|
3489
3489
|
return /* @__PURE__ */ J(Je, { children: [
|
|
3490
|
-
/* @__PURE__ */
|
|
3490
|
+
/* @__PURE__ */ g(
|
|
3491
3491
|
"style",
|
|
3492
3492
|
{
|
|
3493
3493
|
dangerouslySetInnerHTML: {
|
|
@@ -3496,7 +3496,7 @@ var [yc, Cn] = qe(Fe, {}), nn = "SelectViewport", xr = l.forwardRef(
|
|
|
3496
3496
|
nonce: o
|
|
3497
3497
|
}
|
|
3498
3498
|
),
|
|
3499
|
-
/* @__PURE__ */
|
|
3499
|
+
/* @__PURE__ */ g(Ot.Slot, { scope: n, children: /* @__PURE__ */ g(
|
|
3500
3500
|
K.div,
|
|
3501
3501
|
{
|
|
3502
3502
|
"data-radix-select-viewport": "",
|
|
@@ -3517,18 +3517,18 @@ var [yc, Cn] = qe(Fe, {}), nn = "SelectViewport", xr = l.forwardRef(
|
|
|
3517
3517
|
...r.style
|
|
3518
3518
|
},
|
|
3519
3519
|
onScroll: q(r.onScroll, (d) => {
|
|
3520
|
-
const
|
|
3520
|
+
const u = d.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: m } = s;
|
|
3521
3521
|
if (m?.current && p) {
|
|
3522
|
-
const h = Math.abs(c.current -
|
|
3522
|
+
const h = Math.abs(c.current - u.scrollTop);
|
|
3523
3523
|
if (h > 0) {
|
|
3524
|
-
const
|
|
3525
|
-
if (
|
|
3526
|
-
const y =
|
|
3527
|
-
p.style.height = x + "px", p.style.bottom === "0px" && (
|
|
3524
|
+
const b = window.innerHeight - ce * 2, f = parseFloat(p.style.minHeight), v = parseFloat(p.style.height), w = Math.max(f, v);
|
|
3525
|
+
if (w < b) {
|
|
3526
|
+
const y = w + h, x = Math.min(b, y), S = y - x;
|
|
3527
|
+
p.style.height = x + "px", p.style.bottom === "0px" && (u.scrollTop = S > 0 ? S : 0, p.style.justifyContent = "flex-end");
|
|
3528
3528
|
}
|
|
3529
3529
|
}
|
|
3530
3530
|
}
|
|
3531
|
-
c.current =
|
|
3531
|
+
c.current = u.scrollTop;
|
|
3532
3532
|
})
|
|
3533
3533
|
}
|
|
3534
3534
|
) })
|
|
@@ -3539,14 +3539,14 @@ xr.displayName = nn;
|
|
|
3539
3539
|
var Sr = "SelectGroup", [xc, Sc] = qe(Sr), Cc = l.forwardRef(
|
|
3540
3540
|
(e, t) => {
|
|
3541
3541
|
const { __scopeSelect: n, ...o } = e, r = He();
|
|
3542
|
-
return /* @__PURE__ */
|
|
3542
|
+
return /* @__PURE__ */ g(xc, { scope: n, id: r, children: /* @__PURE__ */ g(K.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
|
|
3543
3543
|
}
|
|
3544
3544
|
);
|
|
3545
3545
|
Cc.displayName = Sr;
|
|
3546
3546
|
var Cr = "SelectLabel", Ec = l.forwardRef(
|
|
3547
3547
|
(e, t) => {
|
|
3548
3548
|
const { __scopeSelect: n, ...o } = e, r = Sc(Cr, n);
|
|
3549
|
-
return /* @__PURE__ */
|
|
3549
|
+
return /* @__PURE__ */ g(K.div, { id: r.id, ...o, ref: t });
|
|
3550
3550
|
}
|
|
3551
3551
|
);
|
|
3552
3552
|
Ec.displayName = Cr;
|
|
@@ -3558,39 +3558,39 @@ var wt = "SelectItem", [Rc, Er] = qe(wt), Rr = l.forwardRef(
|
|
|
3558
3558
|
disabled: r = !1,
|
|
3559
3559
|
textValue: i,
|
|
3560
3560
|
...s
|
|
3561
|
-
} = e, a = Pe(wt, n), c = Ne(wt, n), d = a.value === o, [
|
|
3561
|
+
} = e, a = Pe(wt, n), c = Ne(wt, n), d = a.value === o, [u, p] = l.useState(i ?? ""), [m, h] = l.useState(!1), b = ee(
|
|
3562
3562
|
t,
|
|
3563
3563
|
(y) => c.itemRefCallback?.(y, o, r)
|
|
3564
|
-
),
|
|
3564
|
+
), f = He(), v = l.useRef("touch"), w = () => {
|
|
3565
3565
|
r || (a.onValueChange(o), a.onOpenChange(!1));
|
|
3566
3566
|
};
|
|
3567
3567
|
if (o === "")
|
|
3568
3568
|
throw new Error(
|
|
3569
3569
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
3570
3570
|
);
|
|
3571
|
-
return /* @__PURE__ */
|
|
3571
|
+
return /* @__PURE__ */ g(
|
|
3572
3572
|
Rc,
|
|
3573
3573
|
{
|
|
3574
3574
|
scope: n,
|
|
3575
3575
|
value: o,
|
|
3576
3576
|
disabled: r,
|
|
3577
|
-
textId:
|
|
3577
|
+
textId: f,
|
|
3578
3578
|
isSelected: d,
|
|
3579
3579
|
onItemTextChange: l.useCallback((y) => {
|
|
3580
3580
|
p((x) => x || (y?.textContent ?? "").trim());
|
|
3581
3581
|
}, []),
|
|
3582
|
-
children: /* @__PURE__ */
|
|
3582
|
+
children: /* @__PURE__ */ g(
|
|
3583
3583
|
Ot.ItemSlot,
|
|
3584
3584
|
{
|
|
3585
3585
|
scope: n,
|
|
3586
3586
|
value: o,
|
|
3587
3587
|
disabled: r,
|
|
3588
|
-
textValue:
|
|
3589
|
-
children: /* @__PURE__ */
|
|
3588
|
+
textValue: u,
|
|
3589
|
+
children: /* @__PURE__ */ g(
|
|
3590
3590
|
K.div,
|
|
3591
3591
|
{
|
|
3592
3592
|
role: "option",
|
|
3593
|
-
"aria-labelledby":
|
|
3593
|
+
"aria-labelledby": f,
|
|
3594
3594
|
"data-highlighted": m ? "" : void 0,
|
|
3595
3595
|
"aria-selected": d && m,
|
|
3596
3596
|
"data-state": d ? "checked" : "unchecked",
|
|
@@ -3598,26 +3598,26 @@ var wt = "SelectItem", [Rc, Er] = qe(wt), Rr = l.forwardRef(
|
|
|
3598
3598
|
"data-disabled": r ? "" : void 0,
|
|
3599
3599
|
tabIndex: r ? void 0 : -1,
|
|
3600
3600
|
...s,
|
|
3601
|
-
ref:
|
|
3601
|
+
ref: b,
|
|
3602
3602
|
onFocus: q(s.onFocus, () => h(!0)),
|
|
3603
3603
|
onBlur: q(s.onBlur, () => h(!1)),
|
|
3604
3604
|
onClick: q(s.onClick, () => {
|
|
3605
|
-
|
|
3605
|
+
v.current !== "mouse" && w();
|
|
3606
3606
|
}),
|
|
3607
3607
|
onPointerUp: q(s.onPointerUp, () => {
|
|
3608
|
-
|
|
3608
|
+
v.current === "mouse" && w();
|
|
3609
3609
|
}),
|
|
3610
3610
|
onPointerDown: q(s.onPointerDown, (y) => {
|
|
3611
|
-
|
|
3611
|
+
v.current = y.pointerType;
|
|
3612
3612
|
}),
|
|
3613
3613
|
onPointerMove: q(s.onPointerMove, (y) => {
|
|
3614
|
-
|
|
3614
|
+
v.current = y.pointerType, r ? c.onItemLeave?.() : v.current === "mouse" && y.currentTarget.focus({ preventScroll: !0 });
|
|
3615
3615
|
}),
|
|
3616
3616
|
onPointerLeave: q(s.onPointerLeave, (y) => {
|
|
3617
3617
|
y.currentTarget === document.activeElement && c.onItemLeave?.();
|
|
3618
3618
|
}),
|
|
3619
3619
|
onKeyDown: q(s.onKeyDown, (y) => {
|
|
3620
|
-
c.searchRef?.current !== "" && y.key === " " || (lc.includes(y.key) &&
|
|
3620
|
+
c.searchRef?.current !== "" && y.key === " " || (lc.includes(y.key) && w(), y.key === " " && y.preventDefault());
|
|
3621
3621
|
})
|
|
3622
3622
|
}
|
|
3623
3623
|
)
|
|
@@ -3630,17 +3630,17 @@ var wt = "SelectItem", [Rc, Er] = qe(wt), Rr = l.forwardRef(
|
|
|
3630
3630
|
Rr.displayName = wt;
|
|
3631
3631
|
var Qe = "SelectItemText", Ar = l.forwardRef(
|
|
3632
3632
|
(e, t) => {
|
|
3633
|
-
const { __scopeSelect: n, className: o, style: r, ...i } = e, s = Pe(Qe, n), a = Ne(Qe, n), c = Er(Qe, n), d = pc(Qe, n), [
|
|
3633
|
+
const { __scopeSelect: n, className: o, style: r, ...i } = e, s = Pe(Qe, n), a = Ne(Qe, n), c = Er(Qe, n), d = pc(Qe, n), [u, p] = l.useState(null), m = ee(
|
|
3634
3634
|
t,
|
|
3635
|
-
(
|
|
3635
|
+
(w) => p(w),
|
|
3636
3636
|
c.onItemTextChange,
|
|
3637
|
-
(
|
|
3638
|
-
), h =
|
|
3639
|
-
() => /* @__PURE__ */
|
|
3637
|
+
(w) => a.itemTextRefCallback?.(w, c.value, c.disabled)
|
|
3638
|
+
), h = u?.textContent, b = l.useMemo(
|
|
3639
|
+
() => /* @__PURE__ */ g("option", { value: c.value, disabled: c.disabled, children: h }, c.value),
|
|
3640
3640
|
[c.disabled, c.value, h]
|
|
3641
|
-
), { onNativeOptionAdd:
|
|
3642
|
-
return oe(() => (
|
|
3643
|
-
/* @__PURE__ */
|
|
3641
|
+
), { onNativeOptionAdd: f, onNativeOptionRemove: v } = d;
|
|
3642
|
+
return oe(() => (f(b), () => v(b)), [f, v, b]), /* @__PURE__ */ J(Je, { children: [
|
|
3643
|
+
/* @__PURE__ */ g(K.span, { id: c.textId, ...i, ref: m }),
|
|
3644
3644
|
c.isSelected && s.valueNode && !s.valueNodeHasChildren ? xt.createPortal(i.children, s.valueNode) : null
|
|
3645
3645
|
] });
|
|
3646
3646
|
}
|
|
@@ -3649,7 +3649,7 @@ Ar.displayName = Qe;
|
|
|
3649
3649
|
var kr = "SelectItemIndicator", Pr = l.forwardRef(
|
|
3650
3650
|
(e, t) => {
|
|
3651
3651
|
const { __scopeSelect: n, ...o } = e;
|
|
3652
|
-
return Er(kr, n).isSelected ? /* @__PURE__ */
|
|
3652
|
+
return Er(kr, n).isSelected ? /* @__PURE__ */ g(K.span, { "aria-hidden": !0, ...o, ref: t }) : null;
|
|
3653
3653
|
}
|
|
3654
3654
|
);
|
|
3655
3655
|
Pr.displayName = kr;
|
|
@@ -3664,7 +3664,7 @@ var on = "SelectScrollUpButton", Nr = l.forwardRef((e, t) => {
|
|
|
3664
3664
|
const c = n.viewport;
|
|
3665
3665
|
return a(), c.addEventListener("scroll", a), () => c.removeEventListener("scroll", a);
|
|
3666
3666
|
}
|
|
3667
|
-
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */
|
|
3667
|
+
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ g(
|
|
3668
3668
|
Tr,
|
|
3669
3669
|
{
|
|
3670
3670
|
...e,
|
|
@@ -3682,13 +3682,13 @@ var rn = "SelectScrollDownButton", Or = l.forwardRef((e, t) => {
|
|
|
3682
3682
|
return oe(() => {
|
|
3683
3683
|
if (n.viewport && n.isPositioned) {
|
|
3684
3684
|
let a = function() {
|
|
3685
|
-
const d = c.scrollHeight - c.clientHeight,
|
|
3686
|
-
i(
|
|
3685
|
+
const d = c.scrollHeight - c.clientHeight, u = Math.ceil(c.scrollTop) < d;
|
|
3686
|
+
i(u);
|
|
3687
3687
|
};
|
|
3688
3688
|
const c = n.viewport;
|
|
3689
3689
|
return a(), c.addEventListener("scroll", a), () => c.removeEventListener("scroll", a);
|
|
3690
3690
|
}
|
|
3691
|
-
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */
|
|
3691
|
+
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ g(
|
|
3692
3692
|
Tr,
|
|
3693
3693
|
{
|
|
3694
3694
|
...e,
|
|
@@ -3706,8 +3706,8 @@ var Tr = l.forwardRef((e, t) => {
|
|
|
3706
3706
|
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
3707
3707
|
}, []);
|
|
3708
3708
|
return l.useEffect(() => () => c(), [c]), oe(() => {
|
|
3709
|
-
a().find((
|
|
3710
|
-
}, [a]), /* @__PURE__ */
|
|
3709
|
+
a().find((u) => u.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
3710
|
+
}, [a]), /* @__PURE__ */ g(
|
|
3711
3711
|
K.div,
|
|
3712
3712
|
{
|
|
3713
3713
|
"aria-hidden": !0,
|
|
@@ -3728,14 +3728,14 @@ var Tr = l.forwardRef((e, t) => {
|
|
|
3728
3728
|
}), Ac = "SelectSeparator", kc = l.forwardRef(
|
|
3729
3729
|
(e, t) => {
|
|
3730
3730
|
const { __scopeSelect: n, ...o } = e;
|
|
3731
|
-
return /* @__PURE__ */
|
|
3731
|
+
return /* @__PURE__ */ g(K.div, { "aria-hidden": !0, ...o, ref: t });
|
|
3732
3732
|
}
|
|
3733
3733
|
);
|
|
3734
3734
|
kc.displayName = Ac;
|
|
3735
3735
|
var sn = "SelectArrow", Pc = l.forwardRef(
|
|
3736
3736
|
(e, t) => {
|
|
3737
3737
|
const { __scopeSelect: n, ...o } = e, r = It(n), i = Pe(sn, n), s = Ne(sn, n);
|
|
3738
|
-
return i.open && s.position === "popper" ? /* @__PURE__ */
|
|
3738
|
+
return i.open && s.position === "popper" ? /* @__PURE__ */ g(ac, { ...r, ...o, ref: t }) : null;
|
|
3739
3739
|
}
|
|
3740
3740
|
);
|
|
3741
3741
|
Pc.displayName = sn;
|
|
@@ -3745,15 +3745,15 @@ var Nc = "SelectBubbleInput", Ir = l.forwardRef(
|
|
|
3745
3745
|
return l.useEffect(() => {
|
|
3746
3746
|
const a = r.current;
|
|
3747
3747
|
if (!a) return;
|
|
3748
|
-
const c = window.HTMLSelectElement.prototype,
|
|
3748
|
+
const c = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(
|
|
3749
3749
|
c,
|
|
3750
3750
|
"value"
|
|
3751
3751
|
).set;
|
|
3752
|
-
if (s !== t &&
|
|
3752
|
+
if (s !== t && u) {
|
|
3753
3753
|
const p = new Event("change", { bubbles: !0 });
|
|
3754
|
-
|
|
3754
|
+
u.call(a, t), a.dispatchEvent(p);
|
|
3755
3755
|
}
|
|
3756
|
-
}, [s, t]), /* @__PURE__ */
|
|
3756
|
+
}, [s, t]), /* @__PURE__ */ g(
|
|
3757
3757
|
K.select,
|
|
3758
3758
|
{
|
|
3759
3759
|
...n,
|
|
@@ -3842,9 +3842,9 @@ const Hc = (e, t) => {
|
|
|
3842
3842
|
return;
|
|
3843
3843
|
const a = t === 0 ? e.join(yt) : e.slice(t).join(yt), c = s.length;
|
|
3844
3844
|
for (let d = 0; d < c; d++) {
|
|
3845
|
-
const
|
|
3846
|
-
if (
|
|
3847
|
-
return
|
|
3845
|
+
const u = s[d];
|
|
3846
|
+
if (u.validator(a))
|
|
3847
|
+
return u.classGroupId;
|
|
3848
3848
|
}
|
|
3849
3849
|
}, Kc = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
3850
3850
|
const t = e.slice(1, -1), n = t.indexOf(":"), o = t.slice(0, n);
|
|
@@ -3940,20 +3940,20 @@ const Hc = (e, t) => {
|
|
|
3940
3940
|
let o = (r) => {
|
|
3941
3941
|
const i = [];
|
|
3942
3942
|
let s = 0, a = 0, c = 0, d;
|
|
3943
|
-
const
|
|
3944
|
-
for (let
|
|
3945
|
-
const
|
|
3943
|
+
const u = r.length;
|
|
3944
|
+
for (let f = 0; f < u; f++) {
|
|
3945
|
+
const v = r[f];
|
|
3946
3946
|
if (s === 0 && a === 0) {
|
|
3947
|
-
if (
|
|
3948
|
-
i.push(r.slice(c,
|
|
3947
|
+
if (v === eo) {
|
|
3948
|
+
i.push(r.slice(c, f)), c = f + 1;
|
|
3949
3949
|
continue;
|
|
3950
3950
|
}
|
|
3951
|
-
if (
|
|
3952
|
-
d =
|
|
3951
|
+
if (v === "/") {
|
|
3952
|
+
d = f;
|
|
3953
3953
|
continue;
|
|
3954
3954
|
}
|
|
3955
3955
|
}
|
|
3956
|
-
|
|
3956
|
+
v === "[" ? s++ : v === "]" ? s-- : v === "(" ? a++ : v === ")" && a--;
|
|
3957
3957
|
}
|
|
3958
3958
|
const p = i.length === 0 ? r : r.slice(c);
|
|
3959
3959
|
let m = p, h = !1;
|
|
@@ -3964,8 +3964,8 @@ const Hc = (e, t) => {
|
|
|
3964
3964
|
*/
|
|
3965
3965
|
p.startsWith(an) && (m = p.slice(1), h = !0)
|
|
3966
3966
|
);
|
|
3967
|
-
const
|
|
3968
|
-
return to(i, h, m,
|
|
3967
|
+
const b = d && d > c ? d - c : void 0;
|
|
3968
|
+
return to(i, h, m, b);
|
|
3969
3969
|
};
|
|
3970
3970
|
if (t) {
|
|
3971
3971
|
const r = t + eo, i = o;
|
|
@@ -4006,39 +4006,39 @@ const Hc = (e, t) => {
|
|
|
4006
4006
|
} = t, s = [], a = e.trim().split(sl);
|
|
4007
4007
|
let c = "";
|
|
4008
4008
|
for (let d = a.length - 1; d >= 0; d -= 1) {
|
|
4009
|
-
const
|
|
4009
|
+
const u = a[d], {
|
|
4010
4010
|
isExternal: p,
|
|
4011
4011
|
modifiers: m,
|
|
4012
4012
|
hasImportantModifier: h,
|
|
4013
|
-
baseClassName:
|
|
4014
|
-
maybePostfixModifierPosition:
|
|
4015
|
-
} = n(
|
|
4013
|
+
baseClassName: b,
|
|
4014
|
+
maybePostfixModifierPosition: f
|
|
4015
|
+
} = n(u);
|
|
4016
4016
|
if (p) {
|
|
4017
|
-
c =
|
|
4017
|
+
c = u + (c.length > 0 ? " " + c : c);
|
|
4018
4018
|
continue;
|
|
4019
4019
|
}
|
|
4020
|
-
let
|
|
4021
|
-
if (!
|
|
4022
|
-
if (!
|
|
4023
|
-
c =
|
|
4020
|
+
let v = !!f, w = o(v ? b.substring(0, f) : b);
|
|
4021
|
+
if (!w) {
|
|
4022
|
+
if (!v) {
|
|
4023
|
+
c = u + (c.length > 0 ? " " + c : c);
|
|
4024
4024
|
continue;
|
|
4025
4025
|
}
|
|
4026
|
-
if (
|
|
4027
|
-
c =
|
|
4026
|
+
if (w = o(b), !w) {
|
|
4027
|
+
c = u + (c.length > 0 ? " " + c : c);
|
|
4028
4028
|
continue;
|
|
4029
4029
|
}
|
|
4030
|
-
|
|
4030
|
+
v = !1;
|
|
4031
4031
|
}
|
|
4032
|
-
const y = m.length === 0 ? "" : m.length === 1 ? m[0] : i(m).join(":"), x = h ? y + an : y, S = x +
|
|
4032
|
+
const y = m.length === 0 ? "" : m.length === 1 ? m[0] : i(m).join(":"), x = h ? y + an : y, S = x + w;
|
|
4033
4033
|
if (s.indexOf(S) > -1)
|
|
4034
4034
|
continue;
|
|
4035
4035
|
s.push(S);
|
|
4036
|
-
const R = r(
|
|
4036
|
+
const R = r(w, v);
|
|
4037
4037
|
for (let P = 0; P < R.length; ++P) {
|
|
4038
4038
|
const E = R[P];
|
|
4039
4039
|
s.push(x + E);
|
|
4040
4040
|
}
|
|
4041
|
-
c =
|
|
4041
|
+
c = u + (c.length > 0 ? " " + c : c);
|
|
4042
4042
|
}
|
|
4043
4043
|
return c;
|
|
4044
4044
|
}, cl = (...e) => {
|
|
@@ -4056,14 +4056,14 @@ const Hc = (e, t) => {
|
|
|
4056
4056
|
}, ll = (e, ...t) => {
|
|
4057
4057
|
let n, o, r, i;
|
|
4058
4058
|
const s = (c) => {
|
|
4059
|
-
const d = t.reduce((
|
|
4059
|
+
const d = t.reduce((u, p) => p(u), e());
|
|
4060
4060
|
return n = il(d), o = n.cache.get, r = n.cache.set, i = a, a(c);
|
|
4061
4061
|
}, a = (c) => {
|
|
4062
4062
|
const d = o(c);
|
|
4063
4063
|
if (d)
|
|
4064
4064
|
return d;
|
|
4065
|
-
const
|
|
4066
|
-
return r(c,
|
|
4065
|
+
const u = al(c, n);
|
|
4066
|
+
return r(c, u), u;
|
|
4067
4067
|
};
|
|
4068
4068
|
return i = s, (...c) => i(cl(...c));
|
|
4069
4069
|
}, dl = [], te = (e) => {
|
|
@@ -4081,7 +4081,7 @@ const Hc = (e, t) => {
|
|
|
4081
4081
|
const o = Vr.exec(e);
|
|
4082
4082
|
return o ? o[1] ? t(o[1]) : n : !1;
|
|
4083
4083
|
}, Hr = (e) => e === "position" || e === "percentage", Ur = (e) => e === "image" || e === "url", jr = (e) => e === "length" || e === "size" || e === "bg-size", Gr = (e) => e === "length", Nl = (e) => e === "number", Kr = (e) => e === "family-name", Yr = (e) => e === "number" || e === "weight", Xr = (e) => e === "shadow", Ol = () => {
|
|
4084
|
-
const e = te("color"), t = te("font"), n = te("text"), o = te("font-weight"), r = te("tracking"), i = te("leading"), s = te("breakpoint"), a = te("container"), c = te("spacing"), d = te("radius"),
|
|
4084
|
+
const e = te("color"), t = te("font"), n = te("text"), o = te("font-weight"), r = te("tracking"), i = te("leading"), s = te("breakpoint"), a = te("container"), c = te("spacing"), d = te("radius"), u = te("shadow"), p = te("inset-shadow"), m = te("text-shadow"), h = te("drop-shadow"), b = te("blur"), f = te("perspective"), v = te("aspect"), w = te("ease"), y = te("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
4085
4085
|
"center",
|
|
4086
4086
|
"top",
|
|
4087
4087
|
"bottom",
|
|
@@ -4119,7 +4119,7 @@ const Hc = (e, t) => {
|
|
|
4119
4119
|
// Deprecated since Tailwind CSS v4.0.0
|
|
4120
4120
|
"",
|
|
4121
4121
|
"none",
|
|
4122
|
-
|
|
4122
|
+
b,
|
|
4123
4123
|
N,
|
|
4124
4124
|
k
|
|
4125
4125
|
], j = () => ["none", _, N, k], X = () => ["none", _, N, k], ne = () => [_, N, k], ae = () => [Ce, "full", ...C()];
|
|
@@ -4155,7 +4155,7 @@ const Hc = (e, t) => {
|
|
|
4155
4155
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
4156
4156
|
*/
|
|
4157
4157
|
aspect: [{
|
|
4158
|
-
aspect: ["auto", "square", Ce, k, N,
|
|
4158
|
+
aspect: ["auto", "square", Ce, k, N, v]
|
|
4159
4159
|
}],
|
|
4160
4160
|
/**
|
|
4161
4161
|
* Container
|
|
@@ -5602,7 +5602,7 @@ const Hc = (e, t) => {
|
|
|
5602
5602
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5603
5603
|
"",
|
|
5604
5604
|
"none",
|
|
5605
|
-
|
|
5605
|
+
u,
|
|
5606
5606
|
dt,
|
|
5607
5607
|
lt
|
|
5608
5608
|
]
|
|
@@ -6155,7 +6155,7 @@ const Hc = (e, t) => {
|
|
|
6155
6155
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
6156
6156
|
*/
|
|
6157
6157
|
ease: [{
|
|
6158
|
-
ease: ["linear", "initial",
|
|
6158
|
+
ease: ["linear", "initial", w, N, k]
|
|
6159
6159
|
}],
|
|
6160
6160
|
/**
|
|
6161
6161
|
* Transition Delay
|
|
@@ -6186,7 +6186,7 @@ const Hc = (e, t) => {
|
|
|
6186
6186
|
* @see https://tailwindcss.com/docs/perspective
|
|
6187
6187
|
*/
|
|
6188
6188
|
perspective: [{
|
|
6189
|
-
perspective: [
|
|
6189
|
+
perspective: [f, N, k]
|
|
6190
6190
|
}],
|
|
6191
6191
|
/**
|
|
6192
6192
|
* Perspective Origin
|
|
@@ -6749,7 +6749,7 @@ function qr({
|
|
|
6749
6749
|
asChild: o = !1,
|
|
6750
6750
|
...r
|
|
6751
6751
|
}) {
|
|
6752
|
-
return /* @__PURE__ */
|
|
6752
|
+
return /* @__PURE__ */ g(
|
|
6753
6753
|
o ? fo : "button",
|
|
6754
6754
|
{
|
|
6755
6755
|
"data-slot": "button",
|
|
@@ -6823,7 +6823,7 @@ const Fl = so(
|
|
|
6823
6823
|
...a
|
|
6824
6824
|
},
|
|
6825
6825
|
[
|
|
6826
|
-
...s.map(([d,
|
|
6826
|
+
...s.map(([d, u]) => Yt(d, u)),
|
|
6827
6827
|
...Array.isArray(i) ? i : [i]
|
|
6828
6828
|
]
|
|
6829
6829
|
)
|
|
@@ -6855,18 +6855,18 @@ const Gl = [
|
|
|
6855
6855
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
6856
6856
|
], Kl = nt("x", Gl);
|
|
6857
6857
|
function Yl({ ...e }) {
|
|
6858
|
-
return /* @__PURE__ */
|
|
6858
|
+
return /* @__PURE__ */ g(zs, { "data-slot": "sheet", ...e });
|
|
6859
6859
|
}
|
|
6860
6860
|
function Xl({
|
|
6861
6861
|
...e
|
|
6862
6862
|
}) {
|
|
6863
|
-
return /* @__PURE__ */
|
|
6863
|
+
return /* @__PURE__ */ g(Fs, { "data-slot": "sheet-portal", ...e });
|
|
6864
6864
|
}
|
|
6865
6865
|
function ql({
|
|
6866
6866
|
className: e,
|
|
6867
6867
|
...t
|
|
6868
6868
|
}) {
|
|
6869
|
-
return /* @__PURE__ */
|
|
6869
|
+
return /* @__PURE__ */ g(
|
|
6870
6870
|
Ws,
|
|
6871
6871
|
{
|
|
6872
6872
|
"data-slot": "sheet-overlay",
|
|
@@ -6886,7 +6886,7 @@ function Zl({
|
|
|
6886
6886
|
...r
|
|
6887
6887
|
}) {
|
|
6888
6888
|
return /* @__PURE__ */ J(Xl, { children: [
|
|
6889
|
-
/* @__PURE__ */
|
|
6889
|
+
/* @__PURE__ */ g(ql, {}),
|
|
6890
6890
|
/* @__PURE__ */ J(
|
|
6891
6891
|
Bs,
|
|
6892
6892
|
{
|
|
@@ -6899,15 +6899,15 @@ function Zl({
|
|
|
6899
6899
|
...r,
|
|
6900
6900
|
children: [
|
|
6901
6901
|
t,
|
|
6902
|
-
o && /* @__PURE__ */
|
|
6902
|
+
o && /* @__PURE__ */ g(Hs, { "data-slot": "sheet-close", asChild: !0, children: /* @__PURE__ */ J(
|
|
6903
6903
|
qr,
|
|
6904
6904
|
{
|
|
6905
6905
|
variant: "ghost",
|
|
6906
6906
|
className: "absolute top-3 right-3",
|
|
6907
6907
|
size: "icon-sm",
|
|
6908
6908
|
children: [
|
|
6909
|
-
/* @__PURE__ */
|
|
6910
|
-
/* @__PURE__ */
|
|
6909
|
+
/* @__PURE__ */ g(Kl, {}),
|
|
6910
|
+
/* @__PURE__ */ g("span", { className: "sr-only", children: "Close" })
|
|
6911
6911
|
]
|
|
6912
6912
|
}
|
|
6913
6913
|
) })
|
|
@@ -6917,7 +6917,7 @@ function Zl({
|
|
|
6917
6917
|
] });
|
|
6918
6918
|
}
|
|
6919
6919
|
function Ql({ className: e, ...t }) {
|
|
6920
|
-
return /* @__PURE__ */
|
|
6920
|
+
return /* @__PURE__ */ g(
|
|
6921
6921
|
"div",
|
|
6922
6922
|
{
|
|
6923
6923
|
"data-slot": "sheet-header",
|
|
@@ -6930,7 +6930,7 @@ function Jl({
|
|
|
6930
6930
|
className: e,
|
|
6931
6931
|
...t
|
|
6932
6932
|
}) {
|
|
6933
|
-
return /* @__PURE__ */
|
|
6933
|
+
return /* @__PURE__ */ g(
|
|
6934
6934
|
Vs,
|
|
6935
6935
|
{
|
|
6936
6936
|
"data-slot": "sheet-title",
|
|
@@ -6943,7 +6943,7 @@ function ed({
|
|
|
6943
6943
|
className: e,
|
|
6944
6944
|
...t
|
|
6945
6945
|
}) {
|
|
6946
|
-
return /* @__PURE__ */
|
|
6946
|
+
return /* @__PURE__ */ g(
|
|
6947
6947
|
$s,
|
|
6948
6948
|
{
|
|
6949
6949
|
"data-slot": "sheet-description",
|
|
@@ -6968,32 +6968,32 @@ function ad({
|
|
|
6968
6968
|
children: i,
|
|
6969
6969
|
...s
|
|
6970
6970
|
}) {
|
|
6971
|
-
const a = Ml(), [c, d] = l.useState(!1), [
|
|
6972
|
-
(
|
|
6973
|
-
const y = typeof
|
|
6971
|
+
const a = Ml(), [c, d] = l.useState(!1), [u, p] = l.useState(e), m = t ?? u, h = l.useCallback(
|
|
6972
|
+
(w) => {
|
|
6973
|
+
const y = typeof w == "function" ? w(m) : w;
|
|
6974
6974
|
n ? n(y) : p(y), document.cookie = `${td}=${y}; path=/; max-age=${nd}`;
|
|
6975
6975
|
},
|
|
6976
6976
|
[n, m]
|
|
6977
|
-
),
|
|
6977
|
+
), b = l.useCallback(() => a ? d((w) => !w) : h((w) => !w), [a, h, d]);
|
|
6978
6978
|
l.useEffect(() => {
|
|
6979
|
-
const
|
|
6980
|
-
y.key === sd && (y.metaKey || y.ctrlKey) && (y.preventDefault(),
|
|
6979
|
+
const w = (y) => {
|
|
6980
|
+
y.key === sd && (y.metaKey || y.ctrlKey) && (y.preventDefault(), b());
|
|
6981
6981
|
};
|
|
6982
|
-
return window.addEventListener("keydown",
|
|
6983
|
-
}, [
|
|
6984
|
-
const
|
|
6982
|
+
return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
|
|
6983
|
+
}, [b]);
|
|
6984
|
+
const f = m ? "expanded" : "collapsed", v = l.useMemo(
|
|
6985
6985
|
() => ({
|
|
6986
|
-
state:
|
|
6986
|
+
state: f,
|
|
6987
6987
|
open: m,
|
|
6988
6988
|
setOpen: h,
|
|
6989
6989
|
isMobile: a,
|
|
6990
6990
|
openMobile: c,
|
|
6991
6991
|
setOpenMobile: d,
|
|
6992
|
-
toggleSidebar:
|
|
6992
|
+
toggleSidebar: b
|
|
6993
6993
|
}),
|
|
6994
|
-
[
|
|
6994
|
+
[f, m, h, a, c, d, b]
|
|
6995
6995
|
);
|
|
6996
|
-
return /* @__PURE__ */
|
|
6996
|
+
return /* @__PURE__ */ g(Jr.Provider, { value: v, children: /* @__PURE__ */ g(
|
|
6997
6997
|
"div",
|
|
6998
6998
|
{
|
|
6999
6999
|
"data-slot": "sidebar-wrapper",
|
|
@@ -7020,8 +7020,8 @@ function cd({
|
|
|
7020
7020
|
dir: i,
|
|
7021
7021
|
...s
|
|
7022
7022
|
}) {
|
|
7023
|
-
const { isMobile: a, state: c, openMobile: d, setOpenMobile:
|
|
7024
|
-
return n === "none" ? /* @__PURE__ */
|
|
7023
|
+
const { isMobile: a, state: c, openMobile: d, setOpenMobile: u } = ei();
|
|
7024
|
+
return n === "none" ? /* @__PURE__ */ g(
|
|
7025
7025
|
"div",
|
|
7026
7026
|
{
|
|
7027
7027
|
"data-slot": "sidebar",
|
|
@@ -7032,7 +7032,7 @@ function cd({
|
|
|
7032
7032
|
...s,
|
|
7033
7033
|
children: r
|
|
7034
7034
|
}
|
|
7035
|
-
) : a ? /* @__PURE__ */
|
|
7035
|
+
) : a ? /* @__PURE__ */ g(Yl, { open: d, onOpenChange: u, ...s, children: /* @__PURE__ */ J(
|
|
7036
7036
|
Zl,
|
|
7037
7037
|
{
|
|
7038
7038
|
dir: i,
|
|
@@ -7046,10 +7046,10 @@ function cd({
|
|
|
7046
7046
|
side: e,
|
|
7047
7047
|
children: [
|
|
7048
7048
|
/* @__PURE__ */ J(Ql, { className: "sr-only", children: [
|
|
7049
|
-
/* @__PURE__ */
|
|
7050
|
-
/* @__PURE__ */
|
|
7049
|
+
/* @__PURE__ */ g(Jl, { children: "Sidebar" }),
|
|
7050
|
+
/* @__PURE__ */ g(ed, { children: "Displays the mobile sidebar." })
|
|
7051
7051
|
] }),
|
|
7052
|
-
/* @__PURE__ */
|
|
7052
|
+
/* @__PURE__ */ g("div", { className: "flex h-full w-full flex-col", children: r })
|
|
7053
7053
|
]
|
|
7054
7054
|
}
|
|
7055
7055
|
) }) : /* @__PURE__ */ J(
|
|
@@ -7062,7 +7062,7 @@ function cd({
|
|
|
7062
7062
|
"data-side": e,
|
|
7063
7063
|
"data-slot": "sidebar",
|
|
7064
7064
|
children: [
|
|
7065
|
-
/* @__PURE__ */
|
|
7065
|
+
/* @__PURE__ */ g(
|
|
7066
7066
|
"div",
|
|
7067
7067
|
{
|
|
7068
7068
|
"data-slot": "sidebar-gap",
|
|
@@ -7074,7 +7074,7 @@ function cd({
|
|
|
7074
7074
|
)
|
|
7075
7075
|
}
|
|
7076
7076
|
),
|
|
7077
|
-
/* @__PURE__ */
|
|
7077
|
+
/* @__PURE__ */ g(
|
|
7078
7078
|
"div",
|
|
7079
7079
|
{
|
|
7080
7080
|
"data-slot": "sidebar-container",
|
|
@@ -7086,7 +7086,7 @@ function cd({
|
|
|
7086
7086
|
o
|
|
7087
7087
|
),
|
|
7088
7088
|
...s,
|
|
7089
|
-
children: /* @__PURE__ */
|
|
7089
|
+
children: /* @__PURE__ */ g(
|
|
7090
7090
|
"div",
|
|
7091
7091
|
{
|
|
7092
7092
|
"data-sidebar": "sidebar",
|
|
@@ -7120,14 +7120,14 @@ function ld({
|
|
|
7120
7120
|
},
|
|
7121
7121
|
...n,
|
|
7122
7122
|
children: [
|
|
7123
|
-
/* @__PURE__ */
|
|
7124
|
-
/* @__PURE__ */
|
|
7123
|
+
/* @__PURE__ */ g(jl, {}),
|
|
7124
|
+
/* @__PURE__ */ g("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
7125
7125
|
]
|
|
7126
7126
|
}
|
|
7127
7127
|
);
|
|
7128
7128
|
}
|
|
7129
7129
|
function dd({ className: e, ...t }) {
|
|
7130
|
-
return /* @__PURE__ */
|
|
7130
|
+
return /* @__PURE__ */ g(
|
|
7131
7131
|
"div",
|
|
7132
7132
|
{
|
|
7133
7133
|
"data-slot": "sidebar-header",
|
|
@@ -7138,7 +7138,7 @@ function dd({ className: e, ...t }) {
|
|
|
7138
7138
|
);
|
|
7139
7139
|
}
|
|
7140
7140
|
function ud({ className: e, ...t }) {
|
|
7141
|
-
return /* @__PURE__ */
|
|
7141
|
+
return /* @__PURE__ */ g(
|
|
7142
7142
|
"div",
|
|
7143
7143
|
{
|
|
7144
7144
|
"data-slot": "sidebar-footer",
|
|
@@ -7149,7 +7149,7 @@ function ud({ className: e, ...t }) {
|
|
|
7149
7149
|
);
|
|
7150
7150
|
}
|
|
7151
7151
|
function fd({ className: e, ...t }) {
|
|
7152
|
-
return /* @__PURE__ */
|
|
7152
|
+
return /* @__PURE__ */ g(
|
|
7153
7153
|
"div",
|
|
7154
7154
|
{
|
|
7155
7155
|
"data-slot": "sidebar-content",
|
|
@@ -7163,7 +7163,7 @@ function fd({ className: e, ...t }) {
|
|
|
7163
7163
|
);
|
|
7164
7164
|
}
|
|
7165
7165
|
function pd({ className: e, ...t }) {
|
|
7166
|
-
return /* @__PURE__ */
|
|
7166
|
+
return /* @__PURE__ */ g(
|
|
7167
7167
|
"ul",
|
|
7168
7168
|
{
|
|
7169
7169
|
"data-slot": "sidebar-menu",
|
|
@@ -7174,7 +7174,7 @@ function pd({ className: e, ...t }) {
|
|
|
7174
7174
|
);
|
|
7175
7175
|
}
|
|
7176
7176
|
function md({ className: e, ...t }) {
|
|
7177
|
-
return /* @__PURE__ */
|
|
7177
|
+
return /* @__PURE__ */ g(
|
|
7178
7178
|
"li",
|
|
7179
7179
|
{
|
|
7180
7180
|
"data-slot": "sidebar-menu-item",
|
|
@@ -7212,7 +7212,7 @@ function gd({
|
|
|
7212
7212
|
className: r,
|
|
7213
7213
|
...i
|
|
7214
7214
|
}) {
|
|
7215
|
-
return /* @__PURE__ */
|
|
7215
|
+
return /* @__PURE__ */ g(
|
|
7216
7216
|
e ? fo : "button",
|
|
7217
7217
|
{
|
|
7218
7218
|
"data-slot": "sidebar-menu-button",
|
|
@@ -7228,7 +7228,7 @@ function vd({
|
|
|
7228
7228
|
className: e,
|
|
7229
7229
|
...t
|
|
7230
7230
|
}) {
|
|
7231
|
-
return /* @__PURE__ */
|
|
7231
|
+
return /* @__PURE__ */ g(
|
|
7232
7232
|
"div",
|
|
7233
7233
|
{
|
|
7234
7234
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -7252,10 +7252,10 @@ function Nd({
|
|
|
7252
7252
|
headerClassName: a,
|
|
7253
7253
|
contentClassName: c,
|
|
7254
7254
|
menuClassName: d,
|
|
7255
|
-
itemClassName:
|
|
7255
|
+
itemClassName: u,
|
|
7256
7256
|
footerClassName: p
|
|
7257
7257
|
}) {
|
|
7258
|
-
return /* @__PURE__ */
|
|
7258
|
+
return /* @__PURE__ */ g(
|
|
7259
7259
|
ad,
|
|
7260
7260
|
{
|
|
7261
7261
|
className: "!w-auto !min-h-full shrink-0",
|
|
@@ -7266,7 +7266,7 @@ function Nd({
|
|
|
7266
7266
|
collapsible: "icon",
|
|
7267
7267
|
className: $("h-full border-r border-sidebar-border/70", s),
|
|
7268
7268
|
children: [
|
|
7269
|
-
/* @__PURE__ */
|
|
7269
|
+
/* @__PURE__ */ g(
|
|
7270
7270
|
dd,
|
|
7271
7271
|
{
|
|
7272
7272
|
className: $(
|
|
@@ -7274,44 +7274,44 @@ function Nd({
|
|
|
7274
7274
|
a
|
|
7275
7275
|
),
|
|
7276
7276
|
children: /* @__PURE__ */ J("div", { className: "flex min-h-8 items-center gap-2", children: [
|
|
7277
|
-
r ? /* @__PURE__ */
|
|
7278
|
-
/* @__PURE__ */
|
|
7277
|
+
r ? /* @__PURE__ */ g("div", { className: "min-w-0 flex-1 group-data-[collapsible=icon]:hidden p-2", children: r }) : null,
|
|
7278
|
+
/* @__PURE__ */ g(ld, { className: "ml-auto" })
|
|
7279
7279
|
] })
|
|
7280
7280
|
}
|
|
7281
7281
|
),
|
|
7282
|
-
/* @__PURE__ */
|
|
7283
|
-
const h = m.icon,
|
|
7282
|
+
/* @__PURE__ */ g(fd, { className: $("p-2", c), children: /* @__PURE__ */ g(pd, { className: $("gap-1", d), children: e.map((m) => {
|
|
7283
|
+
const h = m.icon, b = m.route === t;
|
|
7284
7284
|
return /* @__PURE__ */ J(
|
|
7285
7285
|
md,
|
|
7286
7286
|
{
|
|
7287
|
-
className: $(
|
|
7287
|
+
className: $(u, m.className),
|
|
7288
7288
|
children: [
|
|
7289
|
-
/* @__PURE__ */
|
|
7289
|
+
/* @__PURE__ */ g(gd, { asChild: !0, isActive: b, children: /* @__PURE__ */ J(
|
|
7290
7290
|
"a",
|
|
7291
7291
|
{
|
|
7292
7292
|
href: m.route,
|
|
7293
|
-
"aria-current":
|
|
7293
|
+
"aria-current": b ? "page" : void 0,
|
|
7294
7294
|
"aria-disabled": m.disabled,
|
|
7295
|
-
onClick: (
|
|
7295
|
+
onClick: (f) => {
|
|
7296
7296
|
if (m.disabled) {
|
|
7297
|
-
|
|
7297
|
+
f.preventDefault();
|
|
7298
7298
|
return;
|
|
7299
7299
|
}
|
|
7300
|
-
o?.(m,
|
|
7300
|
+
o?.(m, f);
|
|
7301
7301
|
},
|
|
7302
7302
|
children: [
|
|
7303
|
-
h ? /* @__PURE__ */
|
|
7304
|
-
/* @__PURE__ */
|
|
7303
|
+
h ? /* @__PURE__ */ g(h, { className: "size-4" }) : null,
|
|
7304
|
+
/* @__PURE__ */ g("span", { className: "group-data-[collapsible=icon]:hidden", children: m.label })
|
|
7305
7305
|
]
|
|
7306
7306
|
}
|
|
7307
7307
|
) }),
|
|
7308
|
-
m.badge ? /* @__PURE__ */
|
|
7308
|
+
m.badge ? /* @__PURE__ */ g(vd, { children: m.badge }) : null
|
|
7309
7309
|
]
|
|
7310
7310
|
},
|
|
7311
7311
|
`${m.route}-${m.label}`
|
|
7312
7312
|
);
|
|
7313
7313
|
}) }) }),
|
|
7314
|
-
i ? /* @__PURE__ */
|
|
7314
|
+
i ? /* @__PURE__ */ g(
|
|
7315
7315
|
ud,
|
|
7316
7316
|
{
|
|
7317
7317
|
className: $(
|
|
@@ -7330,12 +7330,12 @@ function Nd({
|
|
|
7330
7330
|
function bd({
|
|
7331
7331
|
...e
|
|
7332
7332
|
}) {
|
|
7333
|
-
return /* @__PURE__ */
|
|
7333
|
+
return /* @__PURE__ */ g(Tc, { "data-slot": "select", ...e });
|
|
7334
7334
|
}
|
|
7335
7335
|
function wd({
|
|
7336
7336
|
...e
|
|
7337
7337
|
}) {
|
|
7338
|
-
return /* @__PURE__ */
|
|
7338
|
+
return /* @__PURE__ */ g(Mc, { "data-slot": "select-value", ...e });
|
|
7339
7339
|
}
|
|
7340
7340
|
function yd({
|
|
7341
7341
|
className: e,
|
|
@@ -7349,13 +7349,13 @@ function yd({
|
|
|
7349
7349
|
"data-slot": "select-trigger",
|
|
7350
7350
|
"data-size": t,
|
|
7351
7351
|
className: $(
|
|
7352
|
-
"flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 ring-0",
|
|
7352
|
+
"flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 ring-0 cursor-pointer",
|
|
7353
7353
|
e
|
|
7354
7354
|
),
|
|
7355
7355
|
...o,
|
|
7356
7356
|
children: [
|
|
7357
7357
|
n,
|
|
7358
|
-
/* @__PURE__ */
|
|
7358
|
+
/* @__PURE__ */ g(_c, { asChild: !0, children: /* @__PURE__ */ g(Qr, { className: "pointer-events-none size-4 text-muted-foreground" }) })
|
|
7359
7359
|
]
|
|
7360
7360
|
}
|
|
7361
7361
|
);
|
|
@@ -7369,13 +7369,13 @@ function xd({
|
|
|
7369
7369
|
sideOffset: i = 4,
|
|
7370
7370
|
...s
|
|
7371
7371
|
}) {
|
|
7372
|
-
return /* @__PURE__ */
|
|
7372
|
+
return /* @__PURE__ */ g(Dc, { children: /* @__PURE__ */ J(
|
|
7373
7373
|
Lc,
|
|
7374
7374
|
{
|
|
7375
7375
|
"data-slot": "select-content",
|
|
7376
7376
|
"data-align-trigger": n === "item-aligned",
|
|
7377
7377
|
className: $(
|
|
7378
|
-
"relative
|
|
7378
|
+
"relative max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-60",
|
|
7379
7379
|
n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
7380
7380
|
e
|
|
7381
7381
|
),
|
|
@@ -7385,8 +7385,8 @@ function xd({
|
|
|
7385
7385
|
sideOffset: i,
|
|
7386
7386
|
...s,
|
|
7387
7387
|
children: [
|
|
7388
|
-
/* @__PURE__ */
|
|
7389
|
-
/* @__PURE__ */
|
|
7388
|
+
/* @__PURE__ */ g(Cd, {}),
|
|
7389
|
+
/* @__PURE__ */ g(
|
|
7390
7390
|
zc,
|
|
7391
7391
|
{
|
|
7392
7392
|
"data-position": n,
|
|
@@ -7394,7 +7394,7 @@ function xd({
|
|
|
7394
7394
|
children: t
|
|
7395
7395
|
}
|
|
7396
7396
|
),
|
|
7397
|
-
/* @__PURE__ */
|
|
7397
|
+
/* @__PURE__ */ g(Ed, {})
|
|
7398
7398
|
]
|
|
7399
7399
|
}
|
|
7400
7400
|
) });
|
|
@@ -7409,13 +7409,13 @@ function Sd({
|
|
|
7409
7409
|
{
|
|
7410
7410
|
"data-slot": "select-item",
|
|
7411
7411
|
className: $(
|
|
7412
|
-
"relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 cursor-pointer",
|
|
7412
|
+
"relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 cursor-pointer z-60",
|
|
7413
7413
|
e
|
|
7414
7414
|
),
|
|
7415
7415
|
...n,
|
|
7416
7416
|
children: [
|
|
7417
|
-
/* @__PURE__ */
|
|
7418
|
-
/* @__PURE__ */
|
|
7417
|
+
/* @__PURE__ */ g("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ g(Bc, { children: /* @__PURE__ */ g(Bl, { className: "pointer-events-none" }) }) }),
|
|
7418
|
+
/* @__PURE__ */ g(Wc, { children: t })
|
|
7419
7419
|
]
|
|
7420
7420
|
}
|
|
7421
7421
|
);
|
|
@@ -7424,7 +7424,7 @@ function Cd({
|
|
|
7424
7424
|
className: e,
|
|
7425
7425
|
...t
|
|
7426
7426
|
}) {
|
|
7427
|
-
return /* @__PURE__ */
|
|
7427
|
+
return /* @__PURE__ */ g(
|
|
7428
7428
|
Vc,
|
|
7429
7429
|
{
|
|
7430
7430
|
"data-slot": "select-scroll-up-button",
|
|
@@ -7433,7 +7433,7 @@ function Cd({
|
|
|
7433
7433
|
e
|
|
7434
7434
|
),
|
|
7435
7435
|
...t,
|
|
7436
|
-
children: /* @__PURE__ */
|
|
7436
|
+
children: /* @__PURE__ */ g(Hl, {})
|
|
7437
7437
|
}
|
|
7438
7438
|
);
|
|
7439
7439
|
}
|
|
@@ -7441,7 +7441,7 @@ function Ed({
|
|
|
7441
7441
|
className: e,
|
|
7442
7442
|
...t
|
|
7443
7443
|
}) {
|
|
7444
|
-
return /* @__PURE__ */
|
|
7444
|
+
return /* @__PURE__ */ g(
|
|
7445
7445
|
$c,
|
|
7446
7446
|
{
|
|
7447
7447
|
"data-slot": "select-scroll-down-button",
|
|
@@ -7450,7 +7450,7 @@ function Ed({
|
|
|
7450
7450
|
e
|
|
7451
7451
|
),
|
|
7452
7452
|
...t,
|
|
7453
|
-
children: /* @__PURE__ */
|
|
7453
|
+
children: /* @__PURE__ */ g(Qr, {})
|
|
7454
7454
|
}
|
|
7455
7455
|
);
|
|
7456
7456
|
}
|
|
@@ -7458,33 +7458,32 @@ function Od({
|
|
|
7458
7458
|
options: e,
|
|
7459
7459
|
defaultOption: t,
|
|
7460
7460
|
value: n,
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
contentClassName: p
|
|
7461
|
+
onValueChange: o,
|
|
7462
|
+
placeholder: r = "Select an option",
|
|
7463
|
+
disabled: i,
|
|
7464
|
+
name: s,
|
|
7465
|
+
size: a = "default",
|
|
7466
|
+
className: c,
|
|
7467
|
+
triggerClassName: d,
|
|
7468
|
+
contentClassName: u
|
|
7470
7469
|
}) {
|
|
7471
|
-
const
|
|
7470
|
+
const p = l.useMemo(
|
|
7472
7471
|
() => t ? [t, ...e] : e,
|
|
7473
7472
|
[t, e]
|
|
7474
7473
|
), h = l.useMemo(
|
|
7475
|
-
() => new Set(
|
|
7476
|
-
[
|
|
7477
|
-
)
|
|
7478
|
-
return
|
|
7474
|
+
() => new Set(p.map((b) => b.value)),
|
|
7475
|
+
[p]
|
|
7476
|
+
).has(n) ? n : "";
|
|
7477
|
+
return /* @__PURE__ */ g("div", { className: $("w-full", c), children: /* @__PURE__ */ J(
|
|
7479
7478
|
bd,
|
|
7480
7479
|
{
|
|
7481
|
-
|
|
7482
|
-
onValueChange:
|
|
7483
|
-
disabled:
|
|
7484
|
-
name:
|
|
7480
|
+
value: h,
|
|
7481
|
+
onValueChange: o,
|
|
7482
|
+
disabled: i,
|
|
7483
|
+
name: s,
|
|
7485
7484
|
children: [
|
|
7486
|
-
/* @__PURE__ */
|
|
7487
|
-
/* @__PURE__ */
|
|
7485
|
+
/* @__PURE__ */ g(yd, { size: a, className: $("w-full", d), children: /* @__PURE__ */ g(wd, { placeholder: r }) }),
|
|
7486
|
+
/* @__PURE__ */ g(xd, { className: u, children: p.map((b) => /* @__PURE__ */ g(
|
|
7488
7487
|
Sd,
|
|
7489
7488
|
{
|
|
7490
7489
|
value: b.value,
|