@golocalinteractive/golocal-cloud-wrapper 1.0.60 → 1.0.62
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/components/app-sidebar.d.ts.map +1 -1
- package/dist/components/ui/collapsible-section.d.ts +2 -1
- package/dist/components/ui/collapsible-section.d.ts.map +1 -1
- package/dist/golocal-cloud-wrapper.css +1 -1
- package/dist/golocal-cloud-wrapper.es.js +665 -645
- package/dist/golocal-cloud-wrapper.umd.js +9 -9
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import * as u from "react";
|
|
|
2
2
|
import pe, { useContext as lr, createContext as Vo, useMemo as zn, useRef as ze, useEffect as rn, useLayoutEffect as Ho, createElement as Yt, useCallback as Cn, useDebugValue as Hi, forwardRef as zo, useState as on } from "react";
|
|
3
3
|
import * as Wo from "react-dom";
|
|
4
4
|
import zi from "react-dom";
|
|
5
|
-
var
|
|
5
|
+
var kt = { exports: {} }, mt = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -153,7 +153,7 @@ function Bi() {
|
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), y = this.props.ref, y !== void 0 ? y : null;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function p(y, k, j, $, q, ee, ce, U) {
|
|
157
157
|
return j = ee.ref, y = {
|
|
158
158
|
$$typeof: h,
|
|
159
159
|
type: y,
|
|
@@ -191,19 +191,19 @@ function Bi() {
|
|
|
191
191
|
if ($)
|
|
192
192
|
if (V(J)) {
|
|
193
193
|
for ($ = 0; $ < J.length; $++)
|
|
194
|
-
|
|
194
|
+
f(J[$]);
|
|
195
195
|
Object.freeze && Object.freeze(J);
|
|
196
196
|
} else
|
|
197
197
|
console.error(
|
|
198
198
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
199
199
|
);
|
|
200
|
-
else
|
|
200
|
+
else f(J);
|
|
201
201
|
if (W.call(k, "key")) {
|
|
202
202
|
J = e(y);
|
|
203
203
|
var Q = Object.keys(k).filter(function(xe) {
|
|
204
204
|
return xe !== "key";
|
|
205
205
|
});
|
|
206
|
-
$ = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
206
|
+
$ = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", N[J + $] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
207
207
|
`A props object containing a "key" prop is being spread into JSX:
|
|
208
208
|
let props = %s;
|
|
209
209
|
<%s {...props} />
|
|
@@ -214,7 +214,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
214
214
|
J,
|
|
215
215
|
Q,
|
|
216
216
|
J
|
|
217
|
-
),
|
|
217
|
+
), N[J + $] = !0);
|
|
218
218
|
}
|
|
219
219
|
if (J = null, j !== void 0 && (n(j), J = "" + j), a(k) && (n(k.key), J = "" + k.key), "key" in k) {
|
|
220
220
|
j = {};
|
|
@@ -224,7 +224,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
224
|
return J && i(
|
|
225
225
|
j,
|
|
226
226
|
typeof y == "function" ? y.displayName || y.name || "Unknown" : y
|
|
227
|
-
),
|
|
227
|
+
), p(
|
|
228
228
|
y,
|
|
229
229
|
J,
|
|
230
230
|
ee,
|
|
@@ -235,7 +235,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
235
235
|
U
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function f(y) {
|
|
239
239
|
typeof y == "object" && y !== null && y.$$typeof === h && y._store && (y._store.validated = 1);
|
|
240
240
|
}
|
|
241
241
|
var m = pe, h = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), E = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), B = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, V = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
@@ -249,7 +249,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
var Y, L = {}, G = m["react-stack-bottom-frame"].bind(
|
|
250
250
|
m,
|
|
251
251
|
s
|
|
252
|
-
)(), _ = H(r(s)),
|
|
252
|
+
)(), _ = H(r(s)), N = {};
|
|
253
253
|
ht.Fragment = g, ht.jsx = function(y, k, j, $, q) {
|
|
254
254
|
var ee = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
255
255
|
return d(
|
|
@@ -279,7 +279,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
279
279
|
}
|
|
280
280
|
var Yr;
|
|
281
281
|
function Gi() {
|
|
282
|
-
return Yr || (Yr = 1, process.env.NODE_ENV === "production" ?
|
|
282
|
+
return Yr || (Yr = 1, process.env.NODE_ENV === "production" ? kt.exports = Wi() : kt.exports = Bi()), kt.exports;
|
|
283
283
|
}
|
|
284
284
|
var l = Gi(), Ot = { exports: {} }, En = {};
|
|
285
285
|
/**
|
|
@@ -296,40 +296,40 @@ function Ui() {
|
|
|
296
296
|
if (qr) return En;
|
|
297
297
|
qr = 1;
|
|
298
298
|
var e = pe;
|
|
299
|
-
function t(
|
|
300
|
-
return
|
|
299
|
+
function t(f, m) {
|
|
300
|
+
return f === m && (f !== 0 || 1 / f === 1 / m) || f !== f && m !== m;
|
|
301
301
|
}
|
|
302
302
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
303
|
-
function i(
|
|
303
|
+
function i(f, m) {
|
|
304
304
|
var h = m(), b = r({ inst: { value: h, getSnapshot: m } }), g = b[0].inst, x = b[1];
|
|
305
305
|
return s(
|
|
306
306
|
function() {
|
|
307
307
|
g.value = h, g.getSnapshot = m, c(g) && x({ inst: g });
|
|
308
308
|
},
|
|
309
|
-
[
|
|
309
|
+
[f, h, m]
|
|
310
310
|
), o(
|
|
311
311
|
function() {
|
|
312
|
-
return c(g) && x({ inst: g }),
|
|
312
|
+
return c(g) && x({ inst: g }), f(function() {
|
|
313
313
|
c(g) && x({ inst: g });
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
|
-
[
|
|
316
|
+
[f]
|
|
317
317
|
), a(h), h;
|
|
318
318
|
}
|
|
319
|
-
function c(
|
|
320
|
-
var m =
|
|
321
|
-
|
|
319
|
+
function c(f) {
|
|
320
|
+
var m = f.getSnapshot;
|
|
321
|
+
f = f.value;
|
|
322
322
|
try {
|
|
323
323
|
var h = m();
|
|
324
|
-
return !n(
|
|
324
|
+
return !n(f, h);
|
|
325
325
|
} catch {
|
|
326
326
|
return !0;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
function f
|
|
329
|
+
function p(f, m) {
|
|
330
330
|
return m();
|
|
331
331
|
}
|
|
332
|
-
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ?
|
|
332
|
+
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : i;
|
|
333
333
|
return En.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, En;
|
|
334
334
|
}
|
|
335
335
|
var Sn = {};
|
|
@@ -353,11 +353,11 @@ function Ki() {
|
|
|
353
353
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
354
354
|
));
|
|
355
355
|
var g = b();
|
|
356
|
-
if (!
|
|
356
|
+
if (!f) {
|
|
357
357
|
var x = b();
|
|
358
358
|
s(g, x) || (console.error(
|
|
359
359
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
360
|
-
),
|
|
360
|
+
), f = !0);
|
|
361
361
|
}
|
|
362
362
|
x = a({
|
|
363
363
|
inst: { value: g, getSnapshot: b }
|
|
@@ -375,7 +375,7 @@ function Ki() {
|
|
|
375
375
|
});
|
|
376
376
|
},
|
|
377
377
|
[h]
|
|
378
|
-
),
|
|
378
|
+
), p(g), g;
|
|
379
379
|
}
|
|
380
380
|
function n(h) {
|
|
381
381
|
var b = h.getSnapshot;
|
|
@@ -391,7 +391,7 @@ function Ki() {
|
|
|
391
391
|
return b();
|
|
392
392
|
}
|
|
393
393
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
394
|
-
var o = pe, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, i = o.useEffect, c = o.useLayoutEffect,
|
|
394
|
+
var o = pe, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, i = o.useEffect, c = o.useLayoutEffect, p = o.useDebugValue, d = !1, f = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
395
395
|
Sn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
396
396
|
}()), Sn;
|
|
397
397
|
}
|
|
@@ -524,16 +524,16 @@ async function qo(...e) {
|
|
|
524
524
|
let a = s.populateCache;
|
|
525
525
|
const i = s.rollbackOnError;
|
|
526
526
|
let c = s.optimisticData;
|
|
527
|
-
const
|
|
527
|
+
const p = (m) => typeof i == "function" ? i(m) : i !== !1, d = s.throwOnError;
|
|
528
528
|
if (we(n)) {
|
|
529
529
|
const m = n, h = [], b = t.keys();
|
|
530
530
|
for (const g of b)
|
|
531
531
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
|
532
532
|
!/^\$(inf|sub)\$/.test(g) && m(t.get(g)._k) && h.push(g);
|
|
533
|
-
return Promise.all(h.map(
|
|
533
|
+
return Promise.all(h.map(f));
|
|
534
534
|
}
|
|
535
|
-
return
|
|
536
|
-
async function
|
|
535
|
+
return f(n);
|
|
536
|
+
async function f(m) {
|
|
537
537
|
const [h] = dr(m);
|
|
538
538
|
if (!h) return;
|
|
539
539
|
const [b, g] = Yo(t, h), [x, v, w, E] = Pe.get(t), S = () => {
|
|
@@ -564,7 +564,7 @@ async function qo(...e) {
|
|
|
564
564
|
}), M !== v[h][0]) {
|
|
565
565
|
if (A) throw A;
|
|
566
566
|
return R;
|
|
567
|
-
} else A && C &&
|
|
567
|
+
} else A && C && p(A) && (a = !0, g({
|
|
568
568
|
data: W,
|
|
569
569
|
_c: le
|
|
570
570
|
}));
|
|
@@ -600,16 +600,16 @@ const no = (e, t) => {
|
|
|
600
600
|
if (!Pe.has(e)) {
|
|
601
601
|
const n = Ie(rc, t), r = /* @__PURE__ */ Object.create(null), o = qo.bind(le, e);
|
|
602
602
|
let s = Be;
|
|
603
|
-
const a = /* @__PURE__ */ Object.create(null), i = (d,
|
|
603
|
+
const a = /* @__PURE__ */ Object.create(null), i = (d, f) => {
|
|
604
604
|
const m = a[d] || [];
|
|
605
|
-
return a[d] = m, m.push(
|
|
606
|
-
}, c = (d,
|
|
607
|
-
e.set(d,
|
|
605
|
+
return a[d] = m, m.push(f), () => m.splice(m.indexOf(f), 1);
|
|
606
|
+
}, c = (d, f, m) => {
|
|
607
|
+
e.set(d, f);
|
|
608
608
|
const h = a[d];
|
|
609
609
|
if (h)
|
|
610
610
|
for (const b of h)
|
|
611
|
-
b(
|
|
612
|
-
},
|
|
611
|
+
b(f, m);
|
|
612
|
+
}, p = () => {
|
|
613
613
|
if (!Pe.has(e) && (Pe.set(e, [
|
|
614
614
|
r,
|
|
615
615
|
/* @__PURE__ */ Object.create(null),
|
|
@@ -619,16 +619,16 @@ const no = (e, t) => {
|
|
|
619
619
|
c,
|
|
620
620
|
i
|
|
621
621
|
]), !bt)) {
|
|
622
|
-
const d = n.initFocus(setTimeout.bind(le, no.bind(le, r, Bo))),
|
|
622
|
+
const d = n.initFocus(setTimeout.bind(le, no.bind(le, r, Bo))), f = n.initReconnect(setTimeout.bind(le, no.bind(le, r, Go)));
|
|
623
623
|
s = () => {
|
|
624
|
-
d && d(),
|
|
624
|
+
d && d(), f && f(), Pe.delete(e);
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
627
|
};
|
|
628
|
-
return
|
|
628
|
+
return p(), [
|
|
629
629
|
e,
|
|
630
630
|
o,
|
|
631
|
-
|
|
631
|
+
p,
|
|
632
632
|
s
|
|
633
633
|
];
|
|
634
634
|
}
|
|
@@ -710,9 +710,9 @@ const no = (e, t) => {
|
|
|
710
710
|
}), r), vc = fc.concat(gc), bc = (e) => function(...n) {
|
|
711
711
|
const r = hc(), [o, s, a] = mc(n), i = Jo(r, a);
|
|
712
712
|
let c = e;
|
|
713
|
-
const { use:
|
|
714
|
-
for (let
|
|
715
|
-
c = d[
|
|
713
|
+
const { use: p } = i, d = (p || []).concat(vc);
|
|
714
|
+
for (let f = d.length; f--; )
|
|
715
|
+
c = d[f](c);
|
|
716
716
|
return c(o, s || i.fetcher || null, i);
|
|
717
717
|
}, xc = (e, t, n) => {
|
|
718
718
|
const r = t[e] || (t[e] = []);
|
|
@@ -741,10 +741,10 @@ const An = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
741
741
|
e.status = "rejected", e.reason = t;
|
|
742
742
|
}), e;
|
|
743
743
|
}
|
|
744
|
-
}),
|
|
744
|
+
}), Nn = {
|
|
745
745
|
dedupe: !0
|
|
746
746
|
}, wc = (e, t, n) => {
|
|
747
|
-
const { cache: r, compare: o, suspense: s, fallbackData: a, revalidateOnMount: i, revalidateIfStale: c, refreshInterval:
|
|
747
|
+
const { cache: r, compare: o, suspense: s, fallbackData: a, revalidateOnMount: i, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: d, refreshWhenOffline: f, keepPreviousData: m } = n, [h, b, g, x] = Pe.get(r), [v, w] = dr(e), E = ze(!1), S = ze(!1), R = ze(v), A = ze(t), M = ze(n), C = () => M.current, D = () => C().isVisible() && C().isOnline(), [I, B, W, V] = Yo(r, v), H = ze({}).current, Y = K(a) ? K(n.fallback) ? le : n.fallback[v] : a, L = (X, Z) => {
|
|
748
748
|
for (const ie in H) {
|
|
749
749
|
const te = ie;
|
|
750
750
|
if (te === "data") {
|
|
@@ -756,12 +756,12 @@ const An = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
756
756
|
return !0;
|
|
757
757
|
}, G = zn(() => {
|
|
758
758
|
const X = !v || !t ? !1 : K(i) ? C().isPaused() || s ? !1 : c !== !1 : i, Z = (fe) => {
|
|
759
|
-
const
|
|
760
|
-
return delete
|
|
759
|
+
const Te = Ie(fe);
|
|
760
|
+
return delete Te._k, X ? {
|
|
761
761
|
isValidating: !0,
|
|
762
762
|
isLoading: !0,
|
|
763
|
-
...
|
|
764
|
-
} :
|
|
763
|
+
...Te
|
|
764
|
+
} : Te;
|
|
765
765
|
}, ie = I(), te = V(), me = Z(ie), Ve = ie === te ? me : Z(te);
|
|
766
766
|
let re = me;
|
|
767
767
|
return [
|
|
@@ -783,17 +783,17 @@ const An = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
783
783
|
r,
|
|
784
784
|
v
|
|
785
785
|
]
|
|
786
|
-
), G[0], G[1]),
|
|
786
|
+
), G[0], G[1]), N = !E.current, y = h[v] && h[v].length > 0, k = _.data, j = K(k) ? Y && Ko(Y) ? An(Y) : Y : k, $ = _.error, q = ze(j), ee = m ? K(k) ? K(q.current) ? j : q.current : k : j, ce = y && !K($) ? !1 : N && !K(i) ? i : C().isPaused() ? !1 : s ? K(j) ? !1 : c : K(j) || c, U = !!(v && t && N && ce), J = K(_.isValidating) ? U : _.isValidating, Q = K(_.isLoading) ? U : _.isLoading, oe = Cn(
|
|
787
787
|
async (X) => {
|
|
788
788
|
const Z = A.current;
|
|
789
789
|
if (!v || !Z || S.current || C().isPaused())
|
|
790
790
|
return !1;
|
|
791
791
|
let ie, te, me = !0;
|
|
792
|
-
const Ve = X || {}, re = !g[v] || !Ve.dedupe, fe = () => eo ? !S.current && v === R.current && E.current : v === R.current,
|
|
792
|
+
const Ve = X || {}, re = !g[v] || !Ve.dedupe, fe = () => eo ? !S.current && v === R.current && E.current : v === R.current, Te = {
|
|
793
793
|
isValidating: !1,
|
|
794
794
|
isLoading: !1
|
|
795
795
|
}, Wr = () => {
|
|
796
|
-
B(
|
|
796
|
+
B(Te);
|
|
797
797
|
}, Br = () => {
|
|
798
798
|
const ve = g[v];
|
|
799
799
|
ve && ve[1] === te && delete g[v];
|
|
@@ -809,19 +809,19 @@ const An = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
809
809
|
qn()
|
|
810
810
|
]), [ie, te] = g[v], ie = await ie, re && setTimeout(Br, n.dedupingInterval), !g[v] || g[v][1] !== te)
|
|
811
811
|
return re && fe() && C().onDiscarded(v), !1;
|
|
812
|
-
|
|
812
|
+
Te.error = le;
|
|
813
813
|
const ve = b[v];
|
|
814
814
|
if (!K(ve) && // case 1
|
|
815
815
|
(te <= ve[0] || // case 2
|
|
816
816
|
te <= ve[1] || // case 3
|
|
817
817
|
ve[1] === 0))
|
|
818
818
|
return Wr(), re && fe() && C().onDiscarded(v), !1;
|
|
819
|
-
const
|
|
820
|
-
|
|
819
|
+
const ke = I().data;
|
|
820
|
+
Te.data = o(ke, ie) ? ke : ie, re && fe() && C().onSuccess(ie, v, n);
|
|
821
821
|
} catch (ve) {
|
|
822
822
|
Br();
|
|
823
|
-
const
|
|
824
|
-
|
|
823
|
+
const ke = C(), { shouldRetryOnError: wn } = ke;
|
|
824
|
+
ke.isPaused() || (Te.error = ve, re && fe() && (ke.onError(ve, v, ke), (wn === !0 || we(wn) && wn(ve)) && (!C().revalidateOnFocus || !C().revalidateOnReconnect || D()) && ke.onErrorRetry(ve, v, ke, (Vi) => {
|
|
825
825
|
const yn = h[v];
|
|
826
826
|
yn && yn[0] && yn[0](Jr, Vi);
|
|
827
827
|
}, {
|
|
@@ -856,7 +856,7 @@ const An = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
856
856
|
A.current = t, M.current = n, K(k) || (q.current = k);
|
|
857
857
|
}), Bt(() => {
|
|
858
858
|
if (!v) return;
|
|
859
|
-
const X = oe.bind(le,
|
|
859
|
+
const X = oe.bind(le, Nn);
|
|
860
860
|
let Z = 0;
|
|
861
861
|
C().revalidateOnFocus && (Z = Date.now() + C().focusThrottleInterval);
|
|
862
862
|
const te = xc(v, h, (me, Ve = {}) => {
|
|
@@ -882,19 +882,19 @@ const An = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
882
882
|
]), Bt(() => {
|
|
883
883
|
let X;
|
|
884
884
|
function Z() {
|
|
885
|
-
const te = we(
|
|
885
|
+
const te = we(p) ? p(I().data) : p;
|
|
886
886
|
te && X !== -1 && (X = setTimeout(ie, te));
|
|
887
887
|
}
|
|
888
888
|
function ie() {
|
|
889
|
-
!I().error && (d || C().isVisible()) && (
|
|
889
|
+
!I().error && (d || C().isVisible()) && (f || C().isOnline()) ? oe(Nn).then(Z) : Z();
|
|
890
890
|
}
|
|
891
891
|
return Z(), () => {
|
|
892
892
|
X && (clearTimeout(X), X = -1);
|
|
893
893
|
};
|
|
894
894
|
}, [
|
|
895
|
-
f,
|
|
896
|
-
d,
|
|
897
895
|
p,
|
|
896
|
+
d,
|
|
897
|
+
f,
|
|
898
898
|
v
|
|
899
899
|
]), Hi(ee), s && K(j) && v) {
|
|
900
900
|
if (!eo && bt)
|
|
@@ -906,7 +906,7 @@ const An = pe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
906
906
|
An(Z);
|
|
907
907
|
}
|
|
908
908
|
if (K($)) {
|
|
909
|
-
const Z = oe(
|
|
909
|
+
const Z = oe(Nn);
|
|
910
910
|
K(ee) || (Z.status = "fulfilled", Z.value = !0), An(Z);
|
|
911
911
|
} else
|
|
912
912
|
throw $;
|
|
@@ -989,13 +989,13 @@ function Ac({ user: e, children: t }) {
|
|
|
989
989
|
* This source code is licensed under the ISC license.
|
|
990
990
|
* See the LICENSE file in the root directory of this source tree.
|
|
991
991
|
*/
|
|
992
|
-
const
|
|
992
|
+
const Nc = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Tc = (e) => e.replace(
|
|
993
993
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
994
994
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
995
995
|
), so = (e) => {
|
|
996
|
-
const t =
|
|
996
|
+
const t = Tc(e);
|
|
997
997
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
998
|
-
}, es = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
998
|
+
}, es = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), kc = (e) => {
|
|
999
999
|
for (const t in e)
|
|
1000
1000
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
1001
1001
|
return !0;
|
|
@@ -1043,11 +1043,11 @@ const Pc = zo(
|
|
|
1043
1043
|
stroke: e,
|
|
1044
1044
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
1045
1045
|
className: es("lucide", o),
|
|
1046
|
-
...!s && !
|
|
1046
|
+
...!s && !kc(i) && { "aria-hidden": "true" },
|
|
1047
1047
|
...i
|
|
1048
1048
|
},
|
|
1049
1049
|
[
|
|
1050
|
-
...a.map(([
|
|
1050
|
+
...a.map(([p, d]) => Yt(p, d)),
|
|
1051
1051
|
...Array.isArray(s) ? s : [s]
|
|
1052
1052
|
]
|
|
1053
1053
|
)
|
|
@@ -1064,7 +1064,7 @@ const ue = (e, t) => {
|
|
|
1064
1064
|
ref: s,
|
|
1065
1065
|
iconNode: t,
|
|
1066
1066
|
className: es(
|
|
1067
|
-
`lucide-${
|
|
1067
|
+
`lucide-${Nc(so(e))}`,
|
|
1068
1068
|
`lucide-${e}`,
|
|
1069
1069
|
r
|
|
1070
1070
|
),
|
|
@@ -1288,8 +1288,8 @@ function at(e) {
|
|
|
1288
1288
|
const t = /* @__PURE__ */ il(e), n = u.forwardRef((r, o) => {
|
|
1289
1289
|
const { children: s, ...a } = r, i = u.Children.toArray(s), c = i.find(ll);
|
|
1290
1290
|
if (c) {
|
|
1291
|
-
const
|
|
1292
|
-
return /* @__PURE__ */ l.jsx(t, { ...a, ref: o, children: u.isValidElement(
|
|
1291
|
+
const p = c.props.children, d = i.map((f) => f === c ? u.Children.count(p) > 1 ? u.Children.only(null) : u.isValidElement(p) ? p.props.children : null : f);
|
|
1292
|
+
return /* @__PURE__ */ l.jsx(t, { ...a, ref: o, children: u.isValidElement(p) ? u.cloneElement(p, void 0, d) : null });
|
|
1293
1293
|
}
|
|
1294
1294
|
return /* @__PURE__ */ l.jsx(t, { ...a, ref: o, children: s });
|
|
1295
1295
|
});
|
|
@@ -1349,16 +1349,16 @@ function ss() {
|
|
|
1349
1349
|
const lo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, uo = ss, pr = (e, t) => (n) => {
|
|
1350
1350
|
var r;
|
|
1351
1351
|
if ((t == null ? void 0 : t.variants) == null) return uo(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
1352
|
-
const { variants: o, defaultVariants: s } = t, a = Object.keys(o).map((
|
|
1353
|
-
const d = n == null ? void 0 : n[
|
|
1352
|
+
const { variants: o, defaultVariants: s } = t, a = Object.keys(o).map((p) => {
|
|
1353
|
+
const d = n == null ? void 0 : n[p], f = s == null ? void 0 : s[p];
|
|
1354
1354
|
if (d === null) return null;
|
|
1355
|
-
const m = lo(d) || lo(
|
|
1356
|
-
return o[
|
|
1357
|
-
}), i = n && Object.entries(n).reduce((
|
|
1358
|
-
let [
|
|
1359
|
-
return m === void 0 || (f
|
|
1360
|
-
}, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((
|
|
1361
|
-
let { class:
|
|
1355
|
+
const m = lo(d) || lo(f);
|
|
1356
|
+
return o[p][m];
|
|
1357
|
+
}), i = n && Object.entries(n).reduce((p, d) => {
|
|
1358
|
+
let [f, m] = d;
|
|
1359
|
+
return m === void 0 || (p[f] = m), p;
|
|
1360
|
+
}, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((p, d) => {
|
|
1361
|
+
let { class: f, className: m, ...h } = d;
|
|
1362
1362
|
return Object.entries(h).every((b) => {
|
|
1363
1363
|
let [g, x] = b;
|
|
1364
1364
|
return Array.isArray(x) ? x.includes({
|
|
@@ -1369,10 +1369,10 @@ const lo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, uo = ss, p
|
|
|
1369
1369
|
...i
|
|
1370
1370
|
}[g] === x;
|
|
1371
1371
|
}) ? [
|
|
1372
|
-
...
|
|
1373
|
-
|
|
1372
|
+
...p,
|
|
1373
|
+
f,
|
|
1374
1374
|
m
|
|
1375
|
-
] :
|
|
1375
|
+
] : p;
|
|
1376
1376
|
}, []);
|
|
1377
1377
|
return uo(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
1378
1378
|
}, mr = "-", fl = (e) => {
|
|
@@ -1481,7 +1481,7 @@ const lo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, uo = ss, p
|
|
|
1481
1481
|
} = e;
|
|
1482
1482
|
let r = (o) => {
|
|
1483
1483
|
const s = [];
|
|
1484
|
-
let a = 0, i = 0, c = 0,
|
|
1484
|
+
let a = 0, i = 0, c = 0, p;
|
|
1485
1485
|
for (let b = 0; b < o.length; b++) {
|
|
1486
1486
|
let g = o[b];
|
|
1487
1487
|
if (a === 0 && i === 0) {
|
|
@@ -1490,17 +1490,17 @@ const lo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, uo = ss, p
|
|
|
1490
1490
|
continue;
|
|
1491
1491
|
}
|
|
1492
1492
|
if (g === "/") {
|
|
1493
|
-
|
|
1493
|
+
p = b;
|
|
1494
1494
|
continue;
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
1497
|
g === "[" ? a++ : g === "]" ? a-- : g === "(" ? i++ : g === ")" && i--;
|
|
1498
1498
|
}
|
|
1499
|
-
const d = s.length === 0 ? o : o.substring(c),
|
|
1499
|
+
const d = s.length === 0 ? o : o.substring(c), f = xl(d), m = f !== d, h = p && p > c ? p - c : void 0;
|
|
1500
1500
|
return {
|
|
1501
1501
|
modifiers: s,
|
|
1502
1502
|
hasImportantModifier: m,
|
|
1503
|
-
baseClassName:
|
|
1503
|
+
baseClassName: f,
|
|
1504
1504
|
maybePostfixModifierPosition: h
|
|
1505
1505
|
};
|
|
1506
1506
|
};
|
|
@@ -1546,15 +1546,15 @@ const lo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, uo = ss, p
|
|
|
1546
1546
|
sortModifiers: s
|
|
1547
1547
|
} = t, a = [], i = e.trim().split(Cl);
|
|
1548
1548
|
let c = "";
|
|
1549
|
-
for (let
|
|
1550
|
-
const d = i[
|
|
1551
|
-
isExternal:
|
|
1549
|
+
for (let p = i.length - 1; p >= 0; p -= 1) {
|
|
1550
|
+
const d = i[p], {
|
|
1551
|
+
isExternal: f,
|
|
1552
1552
|
modifiers: m,
|
|
1553
1553
|
hasImportantModifier: h,
|
|
1554
1554
|
baseClassName: b,
|
|
1555
1555
|
maybePostfixModifierPosition: g
|
|
1556
1556
|
} = n(d);
|
|
1557
|
-
if (
|
|
1557
|
+
if (f) {
|
|
1558
1558
|
c = d + (c.length > 0 ? " " + c : c);
|
|
1559
1559
|
continue;
|
|
1560
1560
|
}
|
|
@@ -1600,13 +1600,13 @@ const is = (e) => {
|
|
|
1600
1600
|
function Rl(e, ...t) {
|
|
1601
1601
|
let n, r, o, s = a;
|
|
1602
1602
|
function a(c) {
|
|
1603
|
-
const
|
|
1604
|
-
return n = yl(
|
|
1603
|
+
const p = t.reduce((d, f) => f(d), e());
|
|
1604
|
+
return n = yl(p), r = n.cache.get, o = n.cache.set, s = i, i(c);
|
|
1605
1605
|
}
|
|
1606
1606
|
function i(c) {
|
|
1607
|
-
const
|
|
1608
|
-
if (
|
|
1609
|
-
return
|
|
1607
|
+
const p = r(c);
|
|
1608
|
+
if (p)
|
|
1609
|
+
return p;
|
|
1610
1610
|
const d = El(c, n);
|
|
1611
1611
|
return o(c, d), d;
|
|
1612
1612
|
}
|
|
@@ -1617,19 +1617,19 @@ function Rl(e, ...t) {
|
|
|
1617
1617
|
const se = (e) => {
|
|
1618
1618
|
const t = (n) => n[e] || [];
|
|
1619
1619
|
return t.isThemeGetter = !0, t;
|
|
1620
|
-
}, cs = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ls = /^\((?:(\w[\w-]*):)?(.+)\)$/i, _l = /^\d+\/\d+$/, Ml = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Al = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,
|
|
1620
|
+
}, cs = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ls = /^\((?:(\w[\w-]*):)?(.+)\)$/i, _l = /^\d+\/\d+$/, Ml = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Al = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Nl = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Tl = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, kl = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, et = (e) => _l.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), He = (e) => !!e && Number.isInteger(Number(e)), Tn = (e) => e.endsWith("%") && z(e.slice(0, -1)), Oe = (e) => Ml.test(e), Ol = () => !0, Pl = (e) => (
|
|
1621
1621
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1622
1622
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1623
1623
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1624
|
-
Al.test(e) && !
|
|
1625
|
-
), us = () => !1, Dl = (e) =>
|
|
1624
|
+
Al.test(e) && !Nl.test(e)
|
|
1625
|
+
), us = () => !1, Dl = (e) => Tl.test(e), Il = (e) => kl.test(e), jl = (e) => !O(e) && !P(e), Ll = (e) => ut(e, ps, us), O = (e) => cs.test(e), qe = (e) => ut(e, ms, Pl), kn = (e) => ut(e, zl, z), mo = (e) => ut(e, ds, us), Fl = (e) => ut(e, fs, Il), jt = (e) => ut(e, hs, Dl), P = (e) => ls.test(e), gt = (e) => dt(e, ms), $l = (e) => dt(e, Wl), ho = (e) => dt(e, ds), Vl = (e) => dt(e, ps), Hl = (e) => dt(e, fs), Lt = (e) => dt(e, hs, !0), ut = (e, t, n) => {
|
|
1626
1626
|
const r = cs.exec(e);
|
|
1627
1627
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
1628
1628
|
}, dt = (e, t, n = !1) => {
|
|
1629
1629
|
const r = ls.exec(e);
|
|
1630
1630
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1631
1631
|
}, ds = (e) => e === "position" || e === "percentage", fs = (e) => e === "image" || e === "url", ps = (e) => e === "length" || e === "size" || e === "bg-size", ms = (e) => e === "length", zl = (e) => e === "number", Wl = (e) => e === "family-name", hs = (e) => e === "shadow", Bl = () => {
|
|
1632
|
-
const e = se("color"), t = se("font"), n = se("text"), r = se("font-weight"), o = se("tracking"), s = se("leading"), a = se("breakpoint"), i = se("container"), c = se("spacing"),
|
|
1632
|
+
const e = se("color"), t = se("font"), n = se("text"), r = se("font-weight"), o = se("tracking"), s = se("leading"), a = se("breakpoint"), i = se("container"), c = se("spacing"), p = se("radius"), d = se("shadow"), f = se("inset-shadow"), m = se("text-shadow"), h = se("drop-shadow"), b = se("blur"), g = se("perspective"), x = se("aspect"), v = se("ease"), w = se("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
1633
1633
|
"center",
|
|
1634
1634
|
"top",
|
|
1635
1635
|
"bottom",
|
|
@@ -1647,30 +1647,30 @@ const se = (e) => {
|
|
|
1647
1647
|
"bottom-left",
|
|
1648
1648
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1649
1649
|
"left-bottom"
|
|
1650
|
-
], R = () => [...S(),
|
|
1651
|
-
span: ["full", He,
|
|
1652
|
-
}, He,
|
|
1653
|
-
position: [
|
|
1650
|
+
], R = () => [...S(), P, O], A = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", "contain", "none"], C = () => [P, O, c], D = () => [et, "full", "auto", ...C()], I = () => [He, "none", "subgrid", P, O], B = () => ["auto", {
|
|
1651
|
+
span: ["full", He, P, O]
|
|
1652
|
+
}, He, P, O], W = () => [He, "auto", P, O], V = () => ["auto", "min", "max", "fr", P, O], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...C()], G = () => [et, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], _ = () => [e, P, O], N = () => [...S(), ho, mo, {
|
|
1653
|
+
position: [P, O]
|
|
1654
1654
|
}], y = () => ["no-repeat", {
|
|
1655
1655
|
repeat: ["", "x", "y", "space", "round"]
|
|
1656
1656
|
}], k = () => ["auto", "cover", "contain", Vl, Ll, {
|
|
1657
|
-
size: [
|
|
1658
|
-
}], j = () => [
|
|
1657
|
+
size: [P, O]
|
|
1658
|
+
}], j = () => [Tn, gt, qe], $ = () => [
|
|
1659
1659
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1660
1660
|
"",
|
|
1661
1661
|
"none",
|
|
1662
1662
|
"full",
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
], q = () => ["", z, gt, qe], ee = () => ["solid", "dashed", "dotted", "double"], ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [z,
|
|
1663
|
+
p,
|
|
1664
|
+
P,
|
|
1665
|
+
O
|
|
1666
|
+
], q = () => ["", z, gt, qe], ee = () => ["solid", "dashed", "dotted", "double"], ce = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [z, Tn, ho, mo], J = () => [
|
|
1667
1667
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1668
1668
|
"",
|
|
1669
1669
|
"none",
|
|
1670
1670
|
b,
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
], Q = () => ["none", z,
|
|
1671
|
+
P,
|
|
1672
|
+
O
|
|
1673
|
+
], Q = () => ["none", z, P, O], oe = () => ["none", z, P, O], xe = () => [z, P, O], $e = () => [et, "full", ...C()];
|
|
1674
1674
|
return {
|
|
1675
1675
|
cacheSize: 500,
|
|
1676
1676
|
theme: {
|
|
@@ -1703,7 +1703,7 @@ const se = (e) => {
|
|
|
1703
1703
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1704
1704
|
*/
|
|
1705
1705
|
aspect: [{
|
|
1706
|
-
aspect: ["auto", "square", et,
|
|
1706
|
+
aspect: ["auto", "square", et, O, P, x]
|
|
1707
1707
|
}],
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Container
|
|
@@ -1716,7 +1716,7 @@ const se = (e) => {
|
|
|
1716
1716
|
* @see https://tailwindcss.com/docs/columns
|
|
1717
1717
|
*/
|
|
1718
1718
|
columns: [{
|
|
1719
|
-
columns: [z,
|
|
1719
|
+
columns: [z, O, P, i]
|
|
1720
1720
|
}],
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Break After
|
|
@@ -1916,7 +1916,7 @@ const se = (e) => {
|
|
|
1916
1916
|
* @see https://tailwindcss.com/docs/z-index
|
|
1917
1917
|
*/
|
|
1918
1918
|
z: [{
|
|
1919
|
-
z: [He, "auto",
|
|
1919
|
+
z: [He, "auto", P, O]
|
|
1920
1920
|
}],
|
|
1921
1921
|
// ------------------------
|
|
1922
1922
|
// --- Flexbox and Grid ---
|
|
@@ -1947,28 +1947,28 @@ const se = (e) => {
|
|
|
1947
1947
|
* @see https://tailwindcss.com/docs/flex
|
|
1948
1948
|
*/
|
|
1949
1949
|
flex: [{
|
|
1950
|
-
flex: [z, et, "auto", "initial", "none",
|
|
1950
|
+
flex: [z, et, "auto", "initial", "none", O]
|
|
1951
1951
|
}],
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Flex Grow
|
|
1954
1954
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1955
1955
|
*/
|
|
1956
1956
|
grow: [{
|
|
1957
|
-
grow: ["", z,
|
|
1957
|
+
grow: ["", z, P, O]
|
|
1958
1958
|
}],
|
|
1959
1959
|
/**
|
|
1960
1960
|
* Flex Shrink
|
|
1961
1961
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1962
1962
|
*/
|
|
1963
1963
|
shrink: [{
|
|
1964
|
-
shrink: ["", z,
|
|
1964
|
+
shrink: ["", z, P, O]
|
|
1965
1965
|
}],
|
|
1966
1966
|
/**
|
|
1967
1967
|
* Order
|
|
1968
1968
|
* @see https://tailwindcss.com/docs/order
|
|
1969
1969
|
*/
|
|
1970
1970
|
order: [{
|
|
1971
|
-
order: [He, "first", "last", "none",
|
|
1971
|
+
order: [He, "first", "last", "none", P, O]
|
|
1972
1972
|
}],
|
|
1973
1973
|
/**
|
|
1974
1974
|
* Grid Template Columns
|
|
@@ -2380,21 +2380,21 @@ const se = (e) => {
|
|
|
2380
2380
|
* @see https://tailwindcss.com/docs/font-weight
|
|
2381
2381
|
*/
|
|
2382
2382
|
"font-weight": [{
|
|
2383
|
-
font: [r,
|
|
2383
|
+
font: [r, P, kn]
|
|
2384
2384
|
}],
|
|
2385
2385
|
/**
|
|
2386
2386
|
* Font Stretch
|
|
2387
2387
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
2388
2388
|
*/
|
|
2389
2389
|
"font-stretch": [{
|
|
2390
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
2390
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Tn, O]
|
|
2391
2391
|
}],
|
|
2392
2392
|
/**
|
|
2393
2393
|
* Font Family
|
|
2394
2394
|
* @see https://tailwindcss.com/docs/font-family
|
|
2395
2395
|
*/
|
|
2396
2396
|
"font-family": [{
|
|
2397
|
-
font: [$l,
|
|
2397
|
+
font: [$l, O, t]
|
|
2398
2398
|
}],
|
|
2399
2399
|
/**
|
|
2400
2400
|
* Font Variant Numeric
|
|
@@ -2431,14 +2431,14 @@ const se = (e) => {
|
|
|
2431
2431
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
2432
2432
|
*/
|
|
2433
2433
|
tracking: [{
|
|
2434
|
-
tracking: [o,
|
|
2434
|
+
tracking: [o, P, O]
|
|
2435
2435
|
}],
|
|
2436
2436
|
/**
|
|
2437
2437
|
* Line Clamp
|
|
2438
2438
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2439
2439
|
*/
|
|
2440
2440
|
"line-clamp": [{
|
|
2441
|
-
"line-clamp": [z, "none",
|
|
2441
|
+
"line-clamp": [z, "none", P, kn]
|
|
2442
2442
|
}],
|
|
2443
2443
|
/**
|
|
2444
2444
|
* Line Height
|
|
@@ -2456,7 +2456,7 @@ const se = (e) => {
|
|
|
2456
2456
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
2457
2457
|
*/
|
|
2458
2458
|
"list-image": [{
|
|
2459
|
-
"list-image": ["none",
|
|
2459
|
+
"list-image": ["none", P, O]
|
|
2460
2460
|
}],
|
|
2461
2461
|
/**
|
|
2462
2462
|
* List Style Position
|
|
@@ -2470,7 +2470,7 @@ const se = (e) => {
|
|
|
2470
2470
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
2471
2471
|
*/
|
|
2472
2472
|
"list-style-type": [{
|
|
2473
|
-
list: ["disc", "decimal", "none",
|
|
2473
|
+
list: ["disc", "decimal", "none", P, O]
|
|
2474
2474
|
}],
|
|
2475
2475
|
/**
|
|
2476
2476
|
* Text Alignment
|
|
@@ -2511,7 +2511,7 @@ const se = (e) => {
|
|
|
2511
2511
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2512
2512
|
*/
|
|
2513
2513
|
"text-decoration-thickness": [{
|
|
2514
|
-
decoration: [z, "from-font", "auto",
|
|
2514
|
+
decoration: [z, "from-font", "auto", P, qe]
|
|
2515
2515
|
}],
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Text Decoration Color
|
|
@@ -2525,7 +2525,7 @@ const se = (e) => {
|
|
|
2525
2525
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2526
2526
|
*/
|
|
2527
2527
|
"underline-offset": [{
|
|
2528
|
-
"underline-offset": [z, "auto",
|
|
2528
|
+
"underline-offset": [z, "auto", P, O]
|
|
2529
2529
|
}],
|
|
2530
2530
|
/**
|
|
2531
2531
|
* Text Transform
|
|
@@ -2556,7 +2556,7 @@ const se = (e) => {
|
|
|
2556
2556
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2557
2557
|
*/
|
|
2558
2558
|
"vertical-align": [{
|
|
2559
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2559
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", P, O]
|
|
2560
2560
|
}],
|
|
2561
2561
|
/**
|
|
2562
2562
|
* Whitespace
|
|
@@ -2591,7 +2591,7 @@ const se = (e) => {
|
|
|
2591
2591
|
* @see https://tailwindcss.com/docs/content
|
|
2592
2592
|
*/
|
|
2593
2593
|
content: [{
|
|
2594
|
-
content: ["none",
|
|
2594
|
+
content: ["none", P, O]
|
|
2595
2595
|
}],
|
|
2596
2596
|
// -------------------
|
|
2597
2597
|
// --- Backgrounds ---
|
|
@@ -2622,7 +2622,7 @@ const se = (e) => {
|
|
|
2622
2622
|
* @see https://tailwindcss.com/docs/background-position
|
|
2623
2623
|
*/
|
|
2624
2624
|
"bg-position": [{
|
|
2625
|
-
bg:
|
|
2625
|
+
bg: N()
|
|
2626
2626
|
}],
|
|
2627
2627
|
/**
|
|
2628
2628
|
* Background Repeat
|
|
@@ -2646,9 +2646,9 @@ const se = (e) => {
|
|
|
2646
2646
|
bg: ["none", {
|
|
2647
2647
|
linear: [{
|
|
2648
2648
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2649
|
-
}, He,
|
|
2650
|
-
radial: ["",
|
|
2651
|
-
conic: [He,
|
|
2649
|
+
}, He, P, O],
|
|
2650
|
+
radial: ["", P, O],
|
|
2651
|
+
conic: [He, P, O]
|
|
2652
2652
|
}, Hl, Fl]
|
|
2653
2653
|
}],
|
|
2654
2654
|
/**
|
|
@@ -2991,7 +2991,7 @@ const se = (e) => {
|
|
|
2991
2991
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2992
2992
|
*/
|
|
2993
2993
|
"outline-offset": [{
|
|
2994
|
-
"outline-offset": [z,
|
|
2994
|
+
"outline-offset": [z, P, O]
|
|
2995
2995
|
}],
|
|
2996
2996
|
/**
|
|
2997
2997
|
* Outline Width
|
|
@@ -3036,7 +3036,7 @@ const se = (e) => {
|
|
|
3036
3036
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
3037
3037
|
*/
|
|
3038
3038
|
"inset-shadow": [{
|
|
3039
|
-
"inset-shadow": ["none",
|
|
3039
|
+
"inset-shadow": ["none", f, Lt, jt]
|
|
3040
3040
|
}],
|
|
3041
3041
|
/**
|
|
3042
3042
|
* Inset Box Shadow Color
|
|
@@ -3117,7 +3117,7 @@ const se = (e) => {
|
|
|
3117
3117
|
* @see https://tailwindcss.com/docs/opacity
|
|
3118
3118
|
*/
|
|
3119
3119
|
opacity: [{
|
|
3120
|
-
opacity: [z,
|
|
3120
|
+
opacity: [z, P, O]
|
|
3121
3121
|
}],
|
|
3122
3122
|
/**
|
|
3123
3123
|
* Mix Blend Mode
|
|
@@ -3239,7 +3239,7 @@ const se = (e) => {
|
|
|
3239
3239
|
"mask-y-to": _()
|
|
3240
3240
|
}],
|
|
3241
3241
|
"mask-image-radial": [{
|
|
3242
|
-
"mask-radial": [
|
|
3242
|
+
"mask-radial": [P, O]
|
|
3243
3243
|
}],
|
|
3244
3244
|
"mask-image-radial-from-pos": [{
|
|
3245
3245
|
"mask-radial-from": U()
|
|
@@ -3299,7 +3299,7 @@ const se = (e) => {
|
|
|
3299
3299
|
* @see https://tailwindcss.com/docs/mask-position
|
|
3300
3300
|
*/
|
|
3301
3301
|
"mask-position": [{
|
|
3302
|
-
mask:
|
|
3302
|
+
mask: N()
|
|
3303
3303
|
}],
|
|
3304
3304
|
/**
|
|
3305
3305
|
* Mask Repeat
|
|
@@ -3327,7 +3327,7 @@ const se = (e) => {
|
|
|
3327
3327
|
* @see https://tailwindcss.com/docs/mask-image
|
|
3328
3328
|
*/
|
|
3329
3329
|
"mask-image": [{
|
|
3330
|
-
mask: ["none",
|
|
3330
|
+
mask: ["none", P, O]
|
|
3331
3331
|
}],
|
|
3332
3332
|
// ---------------
|
|
3333
3333
|
// --- Filters ---
|
|
@@ -3341,8 +3341,8 @@ const se = (e) => {
|
|
|
3341
3341
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3342
3342
|
"",
|
|
3343
3343
|
"none",
|
|
3344
|
-
|
|
3345
|
-
|
|
3344
|
+
P,
|
|
3345
|
+
O
|
|
3346
3346
|
]
|
|
3347
3347
|
}],
|
|
3348
3348
|
/**
|
|
@@ -3357,14 +3357,14 @@ const se = (e) => {
|
|
|
3357
3357
|
* @see https://tailwindcss.com/docs/brightness
|
|
3358
3358
|
*/
|
|
3359
3359
|
brightness: [{
|
|
3360
|
-
brightness: [z,
|
|
3360
|
+
brightness: [z, P, O]
|
|
3361
3361
|
}],
|
|
3362
3362
|
/**
|
|
3363
3363
|
* Contrast
|
|
3364
3364
|
* @see https://tailwindcss.com/docs/contrast
|
|
3365
3365
|
*/
|
|
3366
3366
|
contrast: [{
|
|
3367
|
-
contrast: [z,
|
|
3367
|
+
contrast: [z, P, O]
|
|
3368
3368
|
}],
|
|
3369
3369
|
/**
|
|
3370
3370
|
* Drop Shadow
|
|
@@ -3392,35 +3392,35 @@ const se = (e) => {
|
|
|
3392
3392
|
* @see https://tailwindcss.com/docs/grayscale
|
|
3393
3393
|
*/
|
|
3394
3394
|
grayscale: [{
|
|
3395
|
-
grayscale: ["", z,
|
|
3395
|
+
grayscale: ["", z, P, O]
|
|
3396
3396
|
}],
|
|
3397
3397
|
/**
|
|
3398
3398
|
* Hue Rotate
|
|
3399
3399
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3400
3400
|
*/
|
|
3401
3401
|
"hue-rotate": [{
|
|
3402
|
-
"hue-rotate": [z,
|
|
3402
|
+
"hue-rotate": [z, P, O]
|
|
3403
3403
|
}],
|
|
3404
3404
|
/**
|
|
3405
3405
|
* Invert
|
|
3406
3406
|
* @see https://tailwindcss.com/docs/invert
|
|
3407
3407
|
*/
|
|
3408
3408
|
invert: [{
|
|
3409
|
-
invert: ["", z,
|
|
3409
|
+
invert: ["", z, P, O]
|
|
3410
3410
|
}],
|
|
3411
3411
|
/**
|
|
3412
3412
|
* Saturate
|
|
3413
3413
|
* @see https://tailwindcss.com/docs/saturate
|
|
3414
3414
|
*/
|
|
3415
3415
|
saturate: [{
|
|
3416
|
-
saturate: [z,
|
|
3416
|
+
saturate: [z, P, O]
|
|
3417
3417
|
}],
|
|
3418
3418
|
/**
|
|
3419
3419
|
* Sepia
|
|
3420
3420
|
* @see https://tailwindcss.com/docs/sepia
|
|
3421
3421
|
*/
|
|
3422
3422
|
sepia: [{
|
|
3423
|
-
sepia: ["", z,
|
|
3423
|
+
sepia: ["", z, P, O]
|
|
3424
3424
|
}],
|
|
3425
3425
|
/**
|
|
3426
3426
|
* Backdrop Filter
|
|
@@ -3431,8 +3431,8 @@ const se = (e) => {
|
|
|
3431
3431
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3432
3432
|
"",
|
|
3433
3433
|
"none",
|
|
3434
|
-
|
|
3435
|
-
|
|
3434
|
+
P,
|
|
3435
|
+
O
|
|
3436
3436
|
]
|
|
3437
3437
|
}],
|
|
3438
3438
|
/**
|
|
@@ -3447,56 +3447,56 @@ const se = (e) => {
|
|
|
3447
3447
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3448
3448
|
*/
|
|
3449
3449
|
"backdrop-brightness": [{
|
|
3450
|
-
"backdrop-brightness": [z,
|
|
3450
|
+
"backdrop-brightness": [z, P, O]
|
|
3451
3451
|
}],
|
|
3452
3452
|
/**
|
|
3453
3453
|
* Backdrop Contrast
|
|
3454
3454
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3455
3455
|
*/
|
|
3456
3456
|
"backdrop-contrast": [{
|
|
3457
|
-
"backdrop-contrast": [z,
|
|
3457
|
+
"backdrop-contrast": [z, P, O]
|
|
3458
3458
|
}],
|
|
3459
3459
|
/**
|
|
3460
3460
|
* Backdrop Grayscale
|
|
3461
3461
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3462
3462
|
*/
|
|
3463
3463
|
"backdrop-grayscale": [{
|
|
3464
|
-
"backdrop-grayscale": ["", z,
|
|
3464
|
+
"backdrop-grayscale": ["", z, P, O]
|
|
3465
3465
|
}],
|
|
3466
3466
|
/**
|
|
3467
3467
|
* Backdrop Hue Rotate
|
|
3468
3468
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3469
3469
|
*/
|
|
3470
3470
|
"backdrop-hue-rotate": [{
|
|
3471
|
-
"backdrop-hue-rotate": [z,
|
|
3471
|
+
"backdrop-hue-rotate": [z, P, O]
|
|
3472
3472
|
}],
|
|
3473
3473
|
/**
|
|
3474
3474
|
* Backdrop Invert
|
|
3475
3475
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3476
3476
|
*/
|
|
3477
3477
|
"backdrop-invert": [{
|
|
3478
|
-
"backdrop-invert": ["", z,
|
|
3478
|
+
"backdrop-invert": ["", z, P, O]
|
|
3479
3479
|
}],
|
|
3480
3480
|
/**
|
|
3481
3481
|
* Backdrop Opacity
|
|
3482
3482
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3483
3483
|
*/
|
|
3484
3484
|
"backdrop-opacity": [{
|
|
3485
|
-
"backdrop-opacity": [z,
|
|
3485
|
+
"backdrop-opacity": [z, P, O]
|
|
3486
3486
|
}],
|
|
3487
3487
|
/**
|
|
3488
3488
|
* Backdrop Saturate
|
|
3489
3489
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3490
3490
|
*/
|
|
3491
3491
|
"backdrop-saturate": [{
|
|
3492
|
-
"backdrop-saturate": [z,
|
|
3492
|
+
"backdrop-saturate": [z, P, O]
|
|
3493
3493
|
}],
|
|
3494
3494
|
/**
|
|
3495
3495
|
* Backdrop Sepia
|
|
3496
3496
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3497
3497
|
*/
|
|
3498
3498
|
"backdrop-sepia": [{
|
|
3499
|
-
"backdrop-sepia": ["", z,
|
|
3499
|
+
"backdrop-sepia": ["", z, P, O]
|
|
3500
3500
|
}],
|
|
3501
3501
|
// --------------
|
|
3502
3502
|
// --- Tables ---
|
|
@@ -3551,7 +3551,7 @@ const se = (e) => {
|
|
|
3551
3551
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3552
3552
|
*/
|
|
3553
3553
|
transition: [{
|
|
3554
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
3554
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", P, O]
|
|
3555
3555
|
}],
|
|
3556
3556
|
/**
|
|
3557
3557
|
* Transition Behavior
|
|
@@ -3565,28 +3565,28 @@ const se = (e) => {
|
|
|
3565
3565
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3566
3566
|
*/
|
|
3567
3567
|
duration: [{
|
|
3568
|
-
duration: [z, "initial",
|
|
3568
|
+
duration: [z, "initial", P, O]
|
|
3569
3569
|
}],
|
|
3570
3570
|
/**
|
|
3571
3571
|
* Transition Timing Function
|
|
3572
3572
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3573
3573
|
*/
|
|
3574
3574
|
ease: [{
|
|
3575
|
-
ease: ["linear", "initial", v,
|
|
3575
|
+
ease: ["linear", "initial", v, P, O]
|
|
3576
3576
|
}],
|
|
3577
3577
|
/**
|
|
3578
3578
|
* Transition Delay
|
|
3579
3579
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3580
3580
|
*/
|
|
3581
3581
|
delay: [{
|
|
3582
|
-
delay: [z,
|
|
3582
|
+
delay: [z, P, O]
|
|
3583
3583
|
}],
|
|
3584
3584
|
/**
|
|
3585
3585
|
* Animation
|
|
3586
3586
|
* @see https://tailwindcss.com/docs/animation
|
|
3587
3587
|
*/
|
|
3588
3588
|
animate: [{
|
|
3589
|
-
animate: ["none", w,
|
|
3589
|
+
animate: ["none", w, P, O]
|
|
3590
3590
|
}],
|
|
3591
3591
|
// ------------------
|
|
3592
3592
|
// --- Transforms ---
|
|
@@ -3603,7 +3603,7 @@ const se = (e) => {
|
|
|
3603
3603
|
* @see https://tailwindcss.com/docs/perspective
|
|
3604
3604
|
*/
|
|
3605
3605
|
perspective: [{
|
|
3606
|
-
perspective: [g,
|
|
3606
|
+
perspective: [g, P, O]
|
|
3607
3607
|
}],
|
|
3608
3608
|
/**
|
|
3609
3609
|
* Perspective Origin
|
|
@@ -3699,7 +3699,7 @@ const se = (e) => {
|
|
|
3699
3699
|
* @see https://tailwindcss.com/docs/transform
|
|
3700
3700
|
*/
|
|
3701
3701
|
transform: [{
|
|
3702
|
-
transform: [
|
|
3702
|
+
transform: [P, O, "", "none", "gpu", "cpu"]
|
|
3703
3703
|
}],
|
|
3704
3704
|
/**
|
|
3705
3705
|
* Transform Origin
|
|
@@ -3784,7 +3784,7 @@ const se = (e) => {
|
|
|
3784
3784
|
* @see https://tailwindcss.com/docs/cursor
|
|
3785
3785
|
*/
|
|
3786
3786
|
cursor: [{
|
|
3787
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3787
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", P, O]
|
|
3788
3788
|
}],
|
|
3789
3789
|
/**
|
|
3790
3790
|
* Field Sizing
|
|
@@ -4006,7 +4006,7 @@ const se = (e) => {
|
|
|
4006
4006
|
* @see https://tailwindcss.com/docs/will-change
|
|
4007
4007
|
*/
|
|
4008
4008
|
"will-change": [{
|
|
4009
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
4009
|
+
"will-change": ["auto", "scroll", "contents", "transform", P, O]
|
|
4010
4010
|
}],
|
|
4011
4011
|
// -----------
|
|
4012
4012
|
// --- SVG ---
|
|
@@ -4023,7 +4023,7 @@ const se = (e) => {
|
|
|
4023
4023
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4024
4024
|
*/
|
|
4025
4025
|
"stroke-w": [{
|
|
4026
|
-
stroke: [z, gt, qe,
|
|
4026
|
+
stroke: [z, gt, qe, kn]
|
|
4027
4027
|
}],
|
|
4028
4028
|
/**
|
|
4029
4029
|
* Stroke
|
|
@@ -4099,7 +4099,7 @@ const se = (e) => {
|
|
|
4099
4099
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4100
4100
|
};
|
|
4101
4101
|
}, Gl = /* @__PURE__ */ Rl(Bl);
|
|
4102
|
-
function
|
|
4102
|
+
function T(...e) {
|
|
4103
4103
|
return Gl(ss(e));
|
|
4104
4104
|
}
|
|
4105
4105
|
const Ul = pr(
|
|
@@ -4132,7 +4132,7 @@ const Ul = pr(
|
|
|
4132
4132
|
return /* @__PURE__ */ l.jsx(
|
|
4133
4133
|
a,
|
|
4134
4134
|
{
|
|
4135
|
-
className:
|
|
4135
|
+
className: T(Ul({ variant: t, size: n, className: e })),
|
|
4136
4136
|
ref: s,
|
|
4137
4137
|
...o
|
|
4138
4138
|
}
|
|
@@ -4145,7 +4145,7 @@ function p0({ className: e, ...t }) {
|
|
|
4145
4145
|
"div",
|
|
4146
4146
|
{
|
|
4147
4147
|
"data-slot": "card",
|
|
4148
|
-
className:
|
|
4148
|
+
className: T(
|
|
4149
4149
|
"bg-card text-card-foreground flex flex-col gap-4 rounded-xl py-6 shadow-sm",
|
|
4150
4150
|
e
|
|
4151
4151
|
),
|
|
@@ -4158,7 +4158,7 @@ function m0({ className: e, ...t }) {
|
|
|
4158
4158
|
"div",
|
|
4159
4159
|
{
|
|
4160
4160
|
"data-slot": "card-header",
|
|
4161
|
-
className:
|
|
4161
|
+
className: T(
|
|
4162
4162
|
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
4163
4163
|
e
|
|
4164
4164
|
),
|
|
@@ -4171,7 +4171,7 @@ function h0({ className: e, ...t }) {
|
|
|
4171
4171
|
"div",
|
|
4172
4172
|
{
|
|
4173
4173
|
"data-slot": "card-title",
|
|
4174
|
-
className:
|
|
4174
|
+
className: T("leading-none font-semibold", e),
|
|
4175
4175
|
...t
|
|
4176
4176
|
}
|
|
4177
4177
|
);
|
|
@@ -4181,7 +4181,7 @@ function g0({ className: e, ...t }) {
|
|
|
4181
4181
|
"div",
|
|
4182
4182
|
{
|
|
4183
4183
|
"data-slot": "card-description",
|
|
4184
|
-
className:
|
|
4184
|
+
className: T("text-muted-foreground text-sm", e),
|
|
4185
4185
|
...t
|
|
4186
4186
|
}
|
|
4187
4187
|
);
|
|
@@ -4191,7 +4191,7 @@ function v0({ className: e, ...t }) {
|
|
|
4191
4191
|
"div",
|
|
4192
4192
|
{
|
|
4193
4193
|
"data-slot": "card-action",
|
|
4194
|
-
className:
|
|
4194
|
+
className: T(
|
|
4195
4195
|
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
4196
4196
|
e
|
|
4197
4197
|
),
|
|
@@ -4204,7 +4204,7 @@ function b0({ className: e, ...t }) {
|
|
|
4204
4204
|
"div",
|
|
4205
4205
|
{
|
|
4206
4206
|
"data-slot": "card-content",
|
|
4207
|
-
className:
|
|
4207
|
+
className: T("px-6", e),
|
|
4208
4208
|
...t
|
|
4209
4209
|
}
|
|
4210
4210
|
);
|
|
@@ -4214,7 +4214,7 @@ function x0({ className: e, ...t }) {
|
|
|
4214
4214
|
"div",
|
|
4215
4215
|
{
|
|
4216
4216
|
"data-slot": "card-footer",
|
|
4217
|
-
className:
|
|
4217
|
+
className: T("flex items-center px-6 [.border-t]:pt-6", e),
|
|
4218
4218
|
...t
|
|
4219
4219
|
}
|
|
4220
4220
|
);
|
|
@@ -4233,7 +4233,7 @@ const gs = u.forwardRef(
|
|
|
4233
4233
|
"input",
|
|
4234
4234
|
{
|
|
4235
4235
|
type: t,
|
|
4236
|
-
className:
|
|
4236
|
+
className: T(
|
|
4237
4237
|
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
4238
4238
|
e
|
|
4239
4239
|
),
|
|
@@ -4295,7 +4295,7 @@ const gr = u.forwardRef(
|
|
|
4295
4295
|
ref: o,
|
|
4296
4296
|
decorative: n,
|
|
4297
4297
|
orientation: t,
|
|
4298
|
-
className:
|
|
4298
|
+
className: T(
|
|
4299
4299
|
"shrink-0 bg-border",
|
|
4300
4300
|
t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
4301
4301
|
e
|
|
@@ -4330,20 +4330,20 @@ function Je(e, t = []) {
|
|
|
4330
4330
|
function r(s, a) {
|
|
4331
4331
|
const i = u.createContext(a), c = n.length;
|
|
4332
4332
|
n = [...n, a];
|
|
4333
|
-
const
|
|
4333
|
+
const p = (f) => {
|
|
4334
4334
|
var v;
|
|
4335
|
-
const { scope: m, children: h, ...b } =
|
|
4335
|
+
const { scope: m, children: h, ...b } = f, g = ((v = m == null ? void 0 : m[e]) == null ? void 0 : v[c]) || i, x = u.useMemo(() => b, Object.values(b));
|
|
4336
4336
|
return /* @__PURE__ */ l.jsx(g.Provider, { value: x, children: h });
|
|
4337
4337
|
};
|
|
4338
|
-
|
|
4339
|
-
function d(
|
|
4338
|
+
p.displayName = s + "Provider";
|
|
4339
|
+
function d(f, m) {
|
|
4340
4340
|
var g;
|
|
4341
4341
|
const h = ((g = m == null ? void 0 : m[e]) == null ? void 0 : g[c]) || i, b = u.useContext(h);
|
|
4342
4342
|
if (b) return b;
|
|
4343
4343
|
if (a !== void 0) return a;
|
|
4344
|
-
throw new Error(`\`${
|
|
4344
|
+
throw new Error(`\`${f}\` must be used within \`${s}\``);
|
|
4345
4345
|
}
|
|
4346
|
-
return [
|
|
4346
|
+
return [p, d];
|
|
4347
4347
|
}
|
|
4348
4348
|
const o = () => {
|
|
4349
4349
|
const s = n.map((a) => u.createContext(a));
|
|
@@ -4366,9 +4366,9 @@ function Ql(...e) {
|
|
|
4366
4366
|
scopeName: o.scopeName
|
|
4367
4367
|
}));
|
|
4368
4368
|
return function(s) {
|
|
4369
|
-
const a = r.reduce((i, { useScope: c, scopeName:
|
|
4370
|
-
const
|
|
4371
|
-
return { ...i, ...
|
|
4369
|
+
const a = r.reduce((i, { useScope: c, scopeName: p }) => {
|
|
4370
|
+
const f = c(s)[`__scope${p}`];
|
|
4371
|
+
return { ...i, ...f };
|
|
4372
4372
|
}, {});
|
|
4373
4373
|
return u.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
|
|
4374
4374
|
};
|
|
@@ -4399,24 +4399,24 @@ function Rt({
|
|
|
4399
4399
|
{
|
|
4400
4400
|
const d = u.useRef(e !== void 0);
|
|
4401
4401
|
u.useEffect(() => {
|
|
4402
|
-
const
|
|
4403
|
-
|
|
4404
|
-
`${r} is changing from ${
|
|
4402
|
+
const f = d.current;
|
|
4403
|
+
f !== i && console.warn(
|
|
4404
|
+
`${r} is changing from ${f ? "controlled" : "uncontrolled"} to ${i ? "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.`
|
|
4405
4405
|
), d.current = i;
|
|
4406
4406
|
}, [i, r]);
|
|
4407
4407
|
}
|
|
4408
|
-
const
|
|
4408
|
+
const p = u.useCallback(
|
|
4409
4409
|
(d) => {
|
|
4410
|
-
var
|
|
4410
|
+
var f;
|
|
4411
4411
|
if (i) {
|
|
4412
4412
|
const m = ou(d) ? d(e) : d;
|
|
4413
|
-
m !== e && ((
|
|
4413
|
+
m !== e && ((f = a.current) == null || f.call(a, m));
|
|
4414
4414
|
} else
|
|
4415
4415
|
s(d);
|
|
4416
4416
|
},
|
|
4417
4417
|
[i, e, s, a]
|
|
4418
4418
|
);
|
|
4419
|
-
return [c,
|
|
4419
|
+
return [c, p];
|
|
4420
4420
|
}
|
|
4421
4421
|
function ru({
|
|
4422
4422
|
defaultProp: e,
|
|
@@ -4465,23 +4465,23 @@ var au = "DismissableLayer", er = "dismissableLayer.update", iu = "dismissableLa
|
|
|
4465
4465
|
onInteractOutside: a,
|
|
4466
4466
|
onDismiss: i,
|
|
4467
4467
|
...c
|
|
4468
|
-
} = e,
|
|
4469
|
-
const C = M.target, D = [...
|
|
4468
|
+
} = e, p = u.useContext(ws), [d, f] = u.useState(null), m = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = u.useState({}), b = ae(t, (M) => f(M)), g = Array.from(p.layers), [x] = [...p.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(x), w = d ? g.indexOf(d) : -1, E = p.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= v, R = du((M) => {
|
|
4469
|
+
const C = M.target, D = [...p.branches].some((I) => I.contains(C));
|
|
4470
4470
|
!S || D || (o == null || o(M), a == null || a(M), M.defaultPrevented || i == null || i());
|
|
4471
4471
|
}, m), A = fu((M) => {
|
|
4472
4472
|
const C = M.target;
|
|
4473
|
-
[...
|
|
4473
|
+
[...p.branches].some((I) => I.contains(C)) || (s == null || s(M), a == null || a(M), M.defaultPrevented || i == null || i());
|
|
4474
4474
|
}, m);
|
|
4475
4475
|
return su((M) => {
|
|
4476
|
-
w ===
|
|
4476
|
+
w === p.layers.size - 1 && (r == null || r(M), !M.defaultPrevented && i && (M.preventDefault(), i()));
|
|
4477
4477
|
}, m), u.useEffect(() => {
|
|
4478
4478
|
if (d)
|
|
4479
|
-
return n && (
|
|
4480
|
-
n &&
|
|
4479
|
+
return n && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (vo = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(d)), p.layers.add(d), bo(), () => {
|
|
4480
|
+
n && p.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = vo);
|
|
4481
4481
|
};
|
|
4482
|
-
}, [d, m, n,
|
|
4483
|
-
d && (
|
|
4484
|
-
}, [d,
|
|
4482
|
+
}, [d, m, n, p]), u.useEffect(() => () => {
|
|
4483
|
+
d && (p.layers.delete(d), p.layersWithOutsidePointerEventsDisabled.delete(d), bo());
|
|
4484
|
+
}, [d, p]), u.useEffect(() => {
|
|
4485
4485
|
const M = () => h({});
|
|
4486
4486
|
return document.addEventListener(er, M), () => document.removeEventListener(er, M);
|
|
4487
4487
|
}, []), /* @__PURE__ */ l.jsx(
|
|
@@ -4525,11 +4525,11 @@ function du(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4525
4525
|
ys(
|
|
4526
4526
|
iu,
|
|
4527
4527
|
n,
|
|
4528
|
-
|
|
4528
|
+
p,
|
|
4529
4529
|
{ discrete: !0 }
|
|
4530
4530
|
);
|
|
4531
4531
|
};
|
|
4532
|
-
const
|
|
4532
|
+
const p = { originalEvent: i };
|
|
4533
4533
|
i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = c, t.addEventListener("click", o.current, { once: !0 })) : c();
|
|
4534
4534
|
} else
|
|
4535
4535
|
t.removeEventListener("click", o.current);
|
|
@@ -4574,7 +4574,7 @@ var On = "focusScope.autoFocusOnMount", Pn = "focusScope.autoFocusOnUnmount", xo
|
|
|
4574
4574
|
onMountAutoFocus: o,
|
|
4575
4575
|
onUnmountAutoFocus: s,
|
|
4576
4576
|
...a
|
|
4577
|
-
} = e, [i, c] = u.useState(null),
|
|
4577
|
+
} = e, [i, c] = u.useState(null), p = Me(o), d = Me(s), f = u.useRef(null), m = ae(t, (g) => c(g)), h = u.useRef({
|
|
4578
4578
|
paused: !1,
|
|
4579
4579
|
pause() {
|
|
4580
4580
|
this.paused = !0;
|
|
@@ -4588,11 +4588,11 @@ var On = "focusScope.autoFocusOnMount", Pn = "focusScope.autoFocusOnUnmount", xo
|
|
|
4588
4588
|
let g = function(E) {
|
|
4589
4589
|
if (h.paused || !i) return;
|
|
4590
4590
|
const S = E.target;
|
|
4591
|
-
i.contains(S) ?
|
|
4591
|
+
i.contains(S) ? f.current = S : We(f.current, { select: !0 });
|
|
4592
4592
|
}, x = function(E) {
|
|
4593
4593
|
if (h.paused || !i) return;
|
|
4594
4594
|
const S = E.relatedTarget;
|
|
4595
|
-
S !== null && (i.contains(S) || We(
|
|
4595
|
+
S !== null && (i.contains(S) || We(f.current, { select: !0 }));
|
|
4596
4596
|
}, v = function(E) {
|
|
4597
4597
|
if (document.activeElement === document.body)
|
|
4598
4598
|
for (const R of E)
|
|
@@ -4610,16 +4610,16 @@ var On = "focusScope.autoFocusOnMount", Pn = "focusScope.autoFocusOnUnmount", xo
|
|
|
4610
4610
|
const g = document.activeElement;
|
|
4611
4611
|
if (!i.contains(g)) {
|
|
4612
4612
|
const v = new CustomEvent(On, xo);
|
|
4613
|
-
i.addEventListener(On,
|
|
4613
|
+
i.addEventListener(On, p), i.dispatchEvent(v), v.defaultPrevented || (mu(xu(Cs(i)), { select: !0 }), document.activeElement === g && We(i));
|
|
4614
4614
|
}
|
|
4615
4615
|
return () => {
|
|
4616
|
-
i.removeEventListener(On,
|
|
4616
|
+
i.removeEventListener(On, p), setTimeout(() => {
|
|
4617
4617
|
const v = new CustomEvent(Pn, xo);
|
|
4618
4618
|
i.addEventListener(Pn, d), i.dispatchEvent(v), v.defaultPrevented || We(g ?? document.body, { select: !0 }), i.removeEventListener(Pn, d), yo.remove(h);
|
|
4619
4619
|
}, 0);
|
|
4620
4620
|
};
|
|
4621
4621
|
}
|
|
4622
|
-
}, [i,
|
|
4622
|
+
}, [i, p, d, h]);
|
|
4623
4623
|
const b = u.useCallback(
|
|
4624
4624
|
(g) => {
|
|
4625
4625
|
if (!n && !r || h.paused) return;
|
|
@@ -4727,37 +4727,37 @@ function Cu(e) {
|
|
|
4727
4727
|
}
|
|
4728
4728
|
});
|
|
4729
4729
|
return u.useEffect(() => {
|
|
4730
|
-
const
|
|
4731
|
-
s.current = i === "mounted" ?
|
|
4730
|
+
const p = Ft(r.current);
|
|
4731
|
+
s.current = i === "mounted" ? p : "none";
|
|
4732
4732
|
}, [i]), Ge(() => {
|
|
4733
|
-
const
|
|
4733
|
+
const p = r.current, d = o.current;
|
|
4734
4734
|
if (d !== e) {
|
|
4735
|
-
const m = s.current, h = Ft(
|
|
4736
|
-
e ? c("MOUNT") : h === "none" || (
|
|
4735
|
+
const m = s.current, h = Ft(p);
|
|
4736
|
+
e ? c("MOUNT") : h === "none" || (p == null ? void 0 : p.display) === "none" ? c("UNMOUNT") : c(d && m !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
4737
4737
|
}
|
|
4738
4738
|
}, [e, c]), Ge(() => {
|
|
4739
4739
|
if (t) {
|
|
4740
|
-
let
|
|
4741
|
-
const d = t.ownerDocument.defaultView ?? window,
|
|
4740
|
+
let p;
|
|
4741
|
+
const d = t.ownerDocument.defaultView ?? window, f = (h) => {
|
|
4742
4742
|
const g = Ft(r.current).includes(h.animationName);
|
|
4743
4743
|
if (h.target === t && g && (c("ANIMATION_END"), !o.current)) {
|
|
4744
4744
|
const x = t.style.animationFillMode;
|
|
4745
|
-
t.style.animationFillMode = "forwards",
|
|
4745
|
+
t.style.animationFillMode = "forwards", p = d.setTimeout(() => {
|
|
4746
4746
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = x);
|
|
4747
4747
|
});
|
|
4748
4748
|
}
|
|
4749
4749
|
}, m = (h) => {
|
|
4750
4750
|
h.target === t && (s.current = Ft(r.current));
|
|
4751
4751
|
};
|
|
4752
|
-
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel",
|
|
4753
|
-
d.clearTimeout(
|
|
4752
|
+
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
4753
|
+
d.clearTimeout(p), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
4754
4754
|
};
|
|
4755
4755
|
} else
|
|
4756
4756
|
c("ANIMATION_END");
|
|
4757
4757
|
}, [t, c]), {
|
|
4758
4758
|
isPresent: ["mounted", "unmountSuspended"].includes(i),
|
|
4759
|
-
ref: u.useCallback((
|
|
4760
|
-
r.current =
|
|
4759
|
+
ref: u.useCallback((p) => {
|
|
4760
|
+
r.current = p ? getComputedStyle(p) : null, n(p);
|
|
4761
4761
|
}, [])
|
|
4762
4762
|
};
|
|
4763
4763
|
}
|
|
@@ -4830,7 +4830,7 @@ function Mu(e, t) {
|
|
|
4830
4830
|
return n.callback = t, n.facade;
|
|
4831
4831
|
}
|
|
4832
4832
|
var Au = typeof window < "u" ? u.useLayoutEffect : u.useEffect, So = /* @__PURE__ */ new WeakMap();
|
|
4833
|
-
function
|
|
4833
|
+
function Nu(e, t) {
|
|
4834
4834
|
var n = Mu(null, function(r) {
|
|
4835
4835
|
return e.forEach(function(o) {
|
|
4836
4836
|
return In(o, r);
|
|
@@ -4849,11 +4849,11 @@ function Tu(e, t) {
|
|
|
4849
4849
|
So.set(n, e);
|
|
4850
4850
|
}, [e]), n;
|
|
4851
4851
|
}
|
|
4852
|
-
function
|
|
4852
|
+
function Tu(e) {
|
|
4853
4853
|
return e;
|
|
4854
4854
|
}
|
|
4855
|
-
function
|
|
4856
|
-
t === void 0 && (t =
|
|
4855
|
+
function ku(e, t) {
|
|
4856
|
+
t === void 0 && (t = Tu);
|
|
4857
4857
|
var n = [], r = !1, o = {
|
|
4858
4858
|
read: function() {
|
|
4859
4859
|
if (r)
|
|
@@ -4892,12 +4892,12 @@ function Nu(e, t) {
|
|
|
4892
4892
|
var c = function() {
|
|
4893
4893
|
var d = a;
|
|
4894
4894
|
a = [], d.forEach(s);
|
|
4895
|
-
},
|
|
4895
|
+
}, p = function() {
|
|
4896
4896
|
return Promise.resolve().then(c);
|
|
4897
4897
|
};
|
|
4898
|
-
|
|
4898
|
+
p(), n = {
|
|
4899
4899
|
push: function(d) {
|
|
4900
|
-
a.push(d),
|
|
4900
|
+
a.push(d), p();
|
|
4901
4901
|
},
|
|
4902
4902
|
filter: function(d) {
|
|
4903
4903
|
return a = a.filter(d), n;
|
|
@@ -4909,7 +4909,7 @@ function Nu(e, t) {
|
|
|
4909
4909
|
}
|
|
4910
4910
|
function Ou(e) {
|
|
4911
4911
|
e === void 0 && (e = {});
|
|
4912
|
-
var t =
|
|
4912
|
+
var t = ku(null);
|
|
4913
4913
|
return t.options = Se({ async: !0, ssr: !1 }, e), t;
|
|
4914
4914
|
}
|
|
4915
4915
|
var Rs = function(e) {
|
|
@@ -4931,11 +4931,11 @@ var _s = Ou(), jn = function() {
|
|
|
4931
4931
|
onScrollCapture: jn,
|
|
4932
4932
|
onWheelCapture: jn,
|
|
4933
4933
|
onTouchMoveCapture: jn
|
|
4934
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className,
|
|
4934
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, p = e.removeScrollBar, d = e.enabled, f = e.shards, m = e.sideCar, h = e.noRelative, b = e.noIsolation, g = e.inert, x = e.allowPinchZoom, v = e.as, w = v === void 0 ? "div" : v, E = e.gapMode, S = Ss(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, A = Nu([n, t]), M = Se(Se({}, S), o);
|
|
4935
4935
|
return u.createElement(
|
|
4936
4936
|
u.Fragment,
|
|
4937
4937
|
null,
|
|
4938
|
-
d && u.createElement(R, { sideCar: _s, removeScrollBar:
|
|
4938
|
+
d && u.createElement(R, { sideCar: _s, removeScrollBar: p, shards: f, noRelative: h, noIsolation: b, inert: g, setCallbacks: s, allowPinchZoom: !!x, lockRef: n, gapMode: E }),
|
|
4939
4939
|
a ? u.cloneElement(u.Children.only(i), Se(Se({}, M), { ref: A })) : u.createElement(w, Se({}, M, { className: c, ref: A }), i)
|
|
4940
4940
|
);
|
|
4941
4941
|
});
|
|
@@ -5104,9 +5104,9 @@ var tt = tr ? { passive: !1 } : !1, Ku = function(e) {
|
|
|
5104
5104
|
var n = t.ownerDocument, r = t;
|
|
5105
5105
|
do {
|
|
5106
5106
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
5107
|
-
var o =
|
|
5107
|
+
var o = Ns(e, r);
|
|
5108
5108
|
if (o) {
|
|
5109
|
-
var s =
|
|
5109
|
+
var s = Ts(e, r), a = s[1], i = s[2];
|
|
5110
5110
|
if (a > i)
|
|
5111
5111
|
return !0;
|
|
5112
5112
|
}
|
|
@@ -5127,19 +5127,19 @@ var tt = tr ? { passive: !1 } : !1, Ku = function(e) {
|
|
|
5127
5127
|
n,
|
|
5128
5128
|
r
|
|
5129
5129
|
];
|
|
5130
|
-
},
|
|
5130
|
+
}, Ns = function(e, t) {
|
|
5131
5131
|
return e === "v" ? Yu(t) : qu(t);
|
|
5132
|
-
},
|
|
5132
|
+
}, Ts = function(e, t) {
|
|
5133
5133
|
return e === "v" ? Xu(t) : Zu(t);
|
|
5134
5134
|
}, Ju = function(e, t) {
|
|
5135
5135
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
5136
5136
|
}, Qu = function(e, t, n, r, o) {
|
|
5137
|
-
var s = Ju(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, c = t.contains(i),
|
|
5137
|
+
var s = Ju(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, c = t.contains(i), p = !1, d = a > 0, f = 0, m = 0;
|
|
5138
5138
|
do {
|
|
5139
5139
|
if (!i)
|
|
5140
5140
|
break;
|
|
5141
|
-
var h =
|
|
5142
|
-
(b || v) &&
|
|
5141
|
+
var h = Ts(e, i), b = h[0], g = h[1], x = h[2], v = g - x - s * b;
|
|
5142
|
+
(b || v) && Ns(e, i) && (f += v, m += b);
|
|
5143
5143
|
var w = i.parentNode;
|
|
5144
5144
|
i = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
|
|
5145
5145
|
} while (
|
|
@@ -5147,7 +5147,7 @@ var tt = tr ? { passive: !1 } : !1, Ku = function(e) {
|
|
|
5147
5147
|
!c && i !== document.body || // self content
|
|
5148
5148
|
c && (t.contains(i) || t === i)
|
|
5149
5149
|
);
|
|
5150
|
-
return (d && Math.abs(
|
|
5150
|
+
return (d && Math.abs(f) < 1 || !d && Math.abs(m) < 1) && (p = !0), p;
|
|
5151
5151
|
}, Vt = function(e) {
|
|
5152
5152
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
5153
5153
|
}, Mo = function(e) {
|
|
@@ -5211,7 +5211,7 @@ function rd(e) {
|
|
|
5211
5211
|
S && x.cancelable && x.preventDefault();
|
|
5212
5212
|
}
|
|
5213
5213
|
}
|
|
5214
|
-
}, []),
|
|
5214
|
+
}, []), p = u.useCallback(function(g, x, v, w) {
|
|
5215
5215
|
var E = { name: g, delta: x, target: v, should: w, shadowParent: od(v) };
|
|
5216
5216
|
t.current.push(E), setTimeout(function() {
|
|
5217
5217
|
t.current = t.current.filter(function(S) {
|
|
@@ -5220,15 +5220,15 @@ function rd(e) {
|
|
|
5220
5220
|
}, 1);
|
|
5221
5221
|
}, []), d = u.useCallback(function(g) {
|
|
5222
5222
|
n.current = Vt(g), r.current = void 0;
|
|
5223
|
-
}, []),
|
|
5224
|
-
|
|
5223
|
+
}, []), f = u.useCallback(function(g) {
|
|
5224
|
+
p(g.type, Mo(g), g.target, i(g, e.lockRef.current));
|
|
5225
5225
|
}, []), m = u.useCallback(function(g) {
|
|
5226
|
-
|
|
5226
|
+
p(g.type, Vt(g), g.target, i(g, e.lockRef.current));
|
|
5227
5227
|
}, []);
|
|
5228
5228
|
u.useEffect(function() {
|
|
5229
5229
|
return nt.push(s), e.setCallbacks({
|
|
5230
|
-
onScrollCapture:
|
|
5231
|
-
onWheelCapture:
|
|
5230
|
+
onScrollCapture: f,
|
|
5231
|
+
onWheelCapture: f,
|
|
5232
5232
|
onTouchMoveCapture: m
|
|
5233
5233
|
}), document.addEventListener("wheel", c, tt), document.addEventListener("touchmove", c, tt), document.addEventListener("touchstart", d, tt), function() {
|
|
5234
5234
|
nt = nt.filter(function(g) {
|
|
@@ -5259,13 +5259,13 @@ var ad = function(e) {
|
|
|
5259
5259
|
return null;
|
|
5260
5260
|
var t = Array.isArray(e) ? e[0] : e;
|
|
5261
5261
|
return t.ownerDocument.body;
|
|
5262
|
-
}, rt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), zt = {}, Fn = 0,
|
|
5263
|
-
return e && (e.host ||
|
|
5262
|
+
}, rt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), zt = {}, Fn = 0, ks = function(e) {
|
|
5263
|
+
return e && (e.host || ks(e.parentNode));
|
|
5264
5264
|
}, id = function(e, t) {
|
|
5265
5265
|
return t.map(function(n) {
|
|
5266
5266
|
if (e.contains(n))
|
|
5267
5267
|
return n;
|
|
5268
|
-
var r =
|
|
5268
|
+
var r = ks(n);
|
|
5269
5269
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
5270
5270
|
}).filter(function(n) {
|
|
5271
5271
|
return !!n;
|
|
@@ -5273,12 +5273,12 @@ var ad = function(e) {
|
|
|
5273
5273
|
}, cd = function(e, t, n, r) {
|
|
5274
5274
|
var o = id(t, Array.isArray(e) ? e : [e]);
|
|
5275
5275
|
zt[n] || (zt[n] = /* @__PURE__ */ new WeakMap());
|
|
5276
|
-
var s = zt[n], a = [], i = /* @__PURE__ */ new Set(), c = new Set(o),
|
|
5277
|
-
!
|
|
5276
|
+
var s = zt[n], a = [], i = /* @__PURE__ */ new Set(), c = new Set(o), p = function(f) {
|
|
5277
|
+
!f || i.has(f) || (i.add(f), p(f.parentNode));
|
|
5278
5278
|
};
|
|
5279
|
-
o.forEach(
|
|
5280
|
-
var d = function(
|
|
5281
|
-
!
|
|
5279
|
+
o.forEach(p);
|
|
5280
|
+
var d = function(f) {
|
|
5281
|
+
!f || c.has(f) || Array.prototype.forEach.call(f.children, function(m) {
|
|
5282
5282
|
if (i.has(m))
|
|
5283
5283
|
d(m);
|
|
5284
5284
|
else
|
|
@@ -5291,9 +5291,9 @@ var ad = function(e) {
|
|
|
5291
5291
|
});
|
|
5292
5292
|
};
|
|
5293
5293
|
return d(t), i.clear(), Fn++, function() {
|
|
5294
|
-
a.forEach(function(
|
|
5295
|
-
var m = rt.get(
|
|
5296
|
-
rt.set(
|
|
5294
|
+
a.forEach(function(f) {
|
|
5295
|
+
var m = rt.get(f) - 1, h = s.get(f) - 1;
|
|
5296
|
+
rt.set(f, m), s.set(f, h), m || (Ht.has(f) || f.removeAttribute(r), Ht.delete(f)), h || f.removeAttribute(n);
|
|
5297
5297
|
}), Fn--, Fn || (rt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), zt = {});
|
|
5298
5298
|
};
|
|
5299
5299
|
}, Os = function(e, t, n) {
|
|
@@ -5310,7 +5310,7 @@ var ad = function(e) {
|
|
|
5310
5310
|
defaultOpen: o,
|
|
5311
5311
|
onOpenChange: s,
|
|
5312
5312
|
modal: a = !0
|
|
5313
|
-
} = e, i = u.useRef(null), c = u.useRef(null), [
|
|
5313
|
+
} = e, i = u.useRef(null), c = u.useRef(null), [p, d] = Rt({
|
|
5314
5314
|
prop: r,
|
|
5315
5315
|
defaultProp: o ?? !1,
|
|
5316
5316
|
onChange: s,
|
|
@@ -5325,9 +5325,9 @@ var ad = function(e) {
|
|
|
5325
5325
|
contentId: De(),
|
|
5326
5326
|
titleId: De(),
|
|
5327
5327
|
descriptionId: De(),
|
|
5328
|
-
open:
|
|
5328
|
+
open: p,
|
|
5329
5329
|
onOpenChange: d,
|
|
5330
|
-
onOpenToggle: u.useCallback(() => d((
|
|
5330
|
+
onOpenToggle: u.useCallback(() => d((f) => !f), [d]),
|
|
5331
5331
|
modal: a,
|
|
5332
5332
|
children: n
|
|
5333
5333
|
}
|
|
@@ -5434,17 +5434,17 @@ var pd = u.forwardRef(
|
|
|
5434
5434
|
(a = e.onCloseAutoFocus) == null || a.call(e, s), s.defaultPrevented || (r.current || (i = n.triggerRef.current) == null || i.focus(), s.preventDefault()), r.current = !1, o.current = !1;
|
|
5435
5435
|
},
|
|
5436
5436
|
onInteractOutside: (s) => {
|
|
5437
|
-
var c,
|
|
5437
|
+
var c, p;
|
|
5438
5438
|
(c = e.onInteractOutside) == null || c.call(e, s), s.defaultPrevented || (r.current = !0, s.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
5439
5439
|
const a = s.target;
|
|
5440
|
-
((
|
|
5440
|
+
((p = n.triggerRef.current) == null ? void 0 : p.contains(a)) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && o.current && s.preventDefault();
|
|
5441
5441
|
}
|
|
5442
5442
|
}
|
|
5443
5443
|
);
|
|
5444
5444
|
}
|
|
5445
5445
|
), Hs = u.forwardRef(
|
|
5446
5446
|
(e, t) => {
|
|
5447
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Ee(Xe, n), c = u.useRef(null),
|
|
5447
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Ee(Xe, n), c = u.useRef(null), p = ae(t, c);
|
|
5448
5448
|
return Es(), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
5449
5449
|
/* @__PURE__ */ l.jsx(
|
|
5450
5450
|
vr,
|
|
@@ -5463,7 +5463,7 @@ var pd = u.forwardRef(
|
|
|
5463
5463
|
"aria-labelledby": i.titleId,
|
|
5464
5464
|
"data-state": Cr(i.open),
|
|
5465
5465
|
...a,
|
|
5466
|
-
ref:
|
|
5466
|
+
ref: p,
|
|
5467
5467
|
onDismiss: () => i.onOpenChange(!1)
|
|
5468
5468
|
}
|
|
5469
5469
|
)
|
|
@@ -5531,7 +5531,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5531
5531
|
const yd = bd, C0 = xd, E0 = Qs, Cd = wd, ea = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
5532
5532
|
qs,
|
|
5533
5533
|
{
|
|
5534
|
-
className:
|
|
5534
|
+
className: T(
|
|
5535
5535
|
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
5536
5536
|
e
|
|
5537
5537
|
),
|
|
@@ -5561,7 +5561,7 @@ const Ed = pr(
|
|
|
5561
5561
|
Xs,
|
|
5562
5562
|
{
|
|
5563
5563
|
ref: o,
|
|
5564
|
-
className:
|
|
5564
|
+
className: T(Ed({ side: e }), t),
|
|
5565
5565
|
...r,
|
|
5566
5566
|
children: [
|
|
5567
5567
|
n,
|
|
@@ -5580,7 +5580,7 @@ const na = ({
|
|
|
5580
5580
|
}) => /* @__PURE__ */ l.jsx(
|
|
5581
5581
|
"div",
|
|
5582
5582
|
{
|
|
5583
|
-
className:
|
|
5583
|
+
className: T(
|
|
5584
5584
|
"flex flex-col space-y-2 text-center sm:text-left",
|
|
5585
5585
|
e
|
|
5586
5586
|
),
|
|
@@ -5594,7 +5594,7 @@ const Sd = ({
|
|
|
5594
5594
|
}) => /* @__PURE__ */ l.jsx(
|
|
5595
5595
|
"div",
|
|
5596
5596
|
{
|
|
5597
|
-
className:
|
|
5597
|
+
className: T(
|
|
5598
5598
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
5599
5599
|
e
|
|
5600
5600
|
),
|
|
@@ -5606,7 +5606,7 @@ const ra = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
5606
5606
|
Zs,
|
|
5607
5607
|
{
|
|
5608
5608
|
ref: n,
|
|
5609
|
-
className:
|
|
5609
|
+
className: T("text-lg font-semibold text-foreground", e),
|
|
5610
5610
|
...t
|
|
5611
5611
|
}
|
|
5612
5612
|
));
|
|
@@ -5615,19 +5615,19 @@ const oa = u.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
|
|
|
5615
5615
|
Js,
|
|
5616
5616
|
{
|
|
5617
5617
|
ref: n,
|
|
5618
|
-
className:
|
|
5618
|
+
className: T("text-sm text-muted-foreground", e),
|
|
5619
5619
|
...t
|
|
5620
5620
|
}
|
|
5621
5621
|
));
|
|
5622
5622
|
oa.displayName = Js.displayName;
|
|
5623
|
-
function
|
|
5623
|
+
function No({
|
|
5624
5624
|
className: e,
|
|
5625
5625
|
...t
|
|
5626
5626
|
}) {
|
|
5627
5627
|
return /* @__PURE__ */ l.jsx(
|
|
5628
5628
|
"div",
|
|
5629
5629
|
{
|
|
5630
|
-
className:
|
|
5630
|
+
className: T("animate-pulse rounded-md bg-muted", e),
|
|
5631
5631
|
...t
|
|
5632
5632
|
}
|
|
5633
5633
|
);
|
|
@@ -5674,14 +5674,14 @@ function Ad(e, t, n) {
|
|
|
5674
5674
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
5675
5675
|
return t.reference[s] > t.floating[s] && (a = Jt(a)), [a, Jt(a)];
|
|
5676
5676
|
}
|
|
5677
|
-
function
|
|
5677
|
+
function Nd(e) {
|
|
5678
5678
|
const t = Jt(e);
|
|
5679
5679
|
return [rr(e), t, rr(t)];
|
|
5680
5680
|
}
|
|
5681
5681
|
function rr(e) {
|
|
5682
5682
|
return e.replace(/start|end/g, (t) => Md[t]);
|
|
5683
5683
|
}
|
|
5684
|
-
function
|
|
5684
|
+
function Td(e, t, n) {
|
|
5685
5685
|
const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
|
|
5686
5686
|
switch (e) {
|
|
5687
5687
|
case "top":
|
|
@@ -5694,9 +5694,9 @@ function kd(e, t, n) {
|
|
|
5694
5694
|
return [];
|
|
5695
5695
|
}
|
|
5696
5696
|
}
|
|
5697
|
-
function
|
|
5697
|
+
function kd(e, t, n, r) {
|
|
5698
5698
|
const o = ft(e);
|
|
5699
|
-
let s =
|
|
5699
|
+
let s = Td(Le(e), n === "start", r);
|
|
5700
5700
|
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(rr)))), s;
|
|
5701
5701
|
}
|
|
5702
5702
|
function Jt(e) {
|
|
@@ -5737,12 +5737,12 @@ function Qt(e) {
|
|
|
5737
5737
|
y: n
|
|
5738
5738
|
};
|
|
5739
5739
|
}
|
|
5740
|
-
function
|
|
5740
|
+
function To(e, t, n) {
|
|
5741
5741
|
let {
|
|
5742
5742
|
reference: r,
|
|
5743
5743
|
floating: o
|
|
5744
5744
|
} = e;
|
|
5745
|
-
const s = Re(t), a = Rr(t), i = Sr(a), c = Le(t),
|
|
5745
|
+
const s = Re(t), a = Rr(t), i = Sr(a), c = Le(t), p = s === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, m = r[i] / 2 - o[i] / 2;
|
|
5746
5746
|
let h;
|
|
5747
5747
|
switch (c) {
|
|
5748
5748
|
case "top":
|
|
@@ -5760,13 +5760,13 @@ function ko(e, t, n) {
|
|
|
5760
5760
|
case "right":
|
|
5761
5761
|
h = {
|
|
5762
5762
|
x: r.x + r.width,
|
|
5763
|
-
y:
|
|
5763
|
+
y: f
|
|
5764
5764
|
};
|
|
5765
5765
|
break;
|
|
5766
5766
|
case "left":
|
|
5767
5767
|
h = {
|
|
5768
5768
|
x: r.x - o.width,
|
|
5769
|
-
y:
|
|
5769
|
+
y: f
|
|
5770
5770
|
};
|
|
5771
5771
|
break;
|
|
5772
5772
|
default:
|
|
@@ -5777,10 +5777,10 @@ function ko(e, t, n) {
|
|
|
5777
5777
|
}
|
|
5778
5778
|
switch (ft(t)) {
|
|
5779
5779
|
case "start":
|
|
5780
|
-
h[a] -= m * (n &&
|
|
5780
|
+
h[a] -= m * (n && p ? -1 : 1);
|
|
5781
5781
|
break;
|
|
5782
5782
|
case "end":
|
|
5783
|
-
h[a] += m * (n &&
|
|
5783
|
+
h[a] += m * (n && p ? -1 : 1);
|
|
5784
5784
|
break;
|
|
5785
5785
|
}
|
|
5786
5786
|
return h;
|
|
@@ -5792,14 +5792,14 @@ const Pd = async (e, t, n) => {
|
|
|
5792
5792
|
middleware: s = [],
|
|
5793
5793
|
platform: a
|
|
5794
5794
|
} = n, i = s.filter(Boolean), c = await (a.isRTL == null ? void 0 : a.isRTL(t));
|
|
5795
|
-
let
|
|
5795
|
+
let p = await a.getElementRects({
|
|
5796
5796
|
reference: e,
|
|
5797
5797
|
floating: t,
|
|
5798
5798
|
strategy: o
|
|
5799
5799
|
}), {
|
|
5800
5800
|
x: d,
|
|
5801
|
-
y:
|
|
5802
|
-
} =
|
|
5801
|
+
y: f
|
|
5802
|
+
} = To(p, r, c), m = r, h = {}, b = 0;
|
|
5803
5803
|
for (let g = 0; g < i.length; g++) {
|
|
5804
5804
|
const {
|
|
5805
5805
|
name: x,
|
|
@@ -5811,36 +5811,36 @@ const Pd = async (e, t, n) => {
|
|
|
5811
5811
|
reset: R
|
|
5812
5812
|
} = await v({
|
|
5813
5813
|
x: d,
|
|
5814
|
-
y:
|
|
5814
|
+
y: f,
|
|
5815
5815
|
initialPlacement: r,
|
|
5816
5816
|
placement: m,
|
|
5817
5817
|
strategy: o,
|
|
5818
5818
|
middlewareData: h,
|
|
5819
|
-
rects:
|
|
5819
|
+
rects: p,
|
|
5820
5820
|
platform: a,
|
|
5821
5821
|
elements: {
|
|
5822
5822
|
reference: e,
|
|
5823
5823
|
floating: t
|
|
5824
5824
|
}
|
|
5825
5825
|
});
|
|
5826
|
-
d = w ?? d,
|
|
5826
|
+
d = w ?? d, f = E ?? f, h = {
|
|
5827
5827
|
...h,
|
|
5828
5828
|
[x]: {
|
|
5829
5829
|
...h[x],
|
|
5830
5830
|
...S
|
|
5831
5831
|
}
|
|
5832
|
-
}, R && b <= 50 && (b++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (
|
|
5832
|
+
}, R && b <= 50 && (b++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (p = R.rects === !0 ? await a.getElementRects({
|
|
5833
5833
|
reference: e,
|
|
5834
5834
|
floating: t,
|
|
5835
5835
|
strategy: o
|
|
5836
5836
|
}) : R.rects), {
|
|
5837
5837
|
x: d,
|
|
5838
|
-
y:
|
|
5839
|
-
} =
|
|
5838
|
+
y: f
|
|
5839
|
+
} = To(p, m, c)), g = -1);
|
|
5840
5840
|
}
|
|
5841
5841
|
return {
|
|
5842
5842
|
x: d,
|
|
5843
|
-
y:
|
|
5843
|
+
y: f,
|
|
5844
5844
|
placement: m,
|
|
5845
5845
|
strategy: o,
|
|
5846
5846
|
middlewareData: h
|
|
@@ -5857,17 +5857,17 @@ async function xt(e, t) {
|
|
|
5857
5857
|
elements: i,
|
|
5858
5858
|
strategy: c
|
|
5859
5859
|
} = e, {
|
|
5860
|
-
boundary:
|
|
5860
|
+
boundary: p = "clippingAncestors",
|
|
5861
5861
|
rootBoundary: d = "viewport",
|
|
5862
|
-
elementContext:
|
|
5862
|
+
elementContext: f = "floating",
|
|
5863
5863
|
altBoundary: m = !1,
|
|
5864
5864
|
padding: h = 0
|
|
5865
|
-
} = je(t, e), b = sa(h), x = i[m ?
|
|
5865
|
+
} = je(t, e), b = sa(h), x = i[m ? f === "floating" ? "reference" : "floating" : f], v = Qt(await s.getClippingRect({
|
|
5866
5866
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
5867
|
-
boundary:
|
|
5867
|
+
boundary: p,
|
|
5868
5868
|
rootBoundary: d,
|
|
5869
5869
|
strategy: c
|
|
5870
|
-
})), w =
|
|
5870
|
+
})), w = f === "floating" ? {
|
|
5871
5871
|
x: r,
|
|
5872
5872
|
y: o,
|
|
5873
5873
|
width: a.floating.width,
|
|
@@ -5904,18 +5904,18 @@ const Dd = (e) => ({
|
|
|
5904
5904
|
elements: i,
|
|
5905
5905
|
middlewareData: c
|
|
5906
5906
|
} = t, {
|
|
5907
|
-
element:
|
|
5907
|
+
element: p,
|
|
5908
5908
|
padding: d = 0
|
|
5909
5909
|
} = je(e, t) || {};
|
|
5910
|
-
if (
|
|
5910
|
+
if (p == null)
|
|
5911
5911
|
return {};
|
|
5912
|
-
const
|
|
5912
|
+
const f = sa(d), m = {
|
|
5913
5913
|
x: n,
|
|
5914
5914
|
y: r
|
|
5915
|
-
}, h = Rr(o), b = Sr(h), g = await a.getDimensions(
|
|
5915
|
+
}, h = Rr(o), b = Sr(h), g = await a.getDimensions(p), x = h === "y", v = x ? "top" : "left", w = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[h] - m[h] - s.floating[b], R = m[h] - s.reference[h], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(p));
|
|
5916
5916
|
let M = A ? A[E] : 0;
|
|
5917
5917
|
(!M || !await (a.isElement == null ? void 0 : a.isElement(A))) && (M = i.floating[E] || s.floating[b]);
|
|
5918
|
-
const C = S / 2 - R / 2, D = M / 2 - g[b] / 2 - 1, I = Ue(
|
|
5918
|
+
const C = S / 2 - R / 2, D = M / 2 - g[b] / 2 - 1, I = Ue(f[v], D), B = Ue(f[w], D), W = I, V = M - g[b] - B, H = M / 2 - g[b] / 2 + C, Y = nr(W, H, V), L = !c.arrow && ft(o) != null && H !== Y && s.reference[b] / 2 - (H < W ? I : B) - g[b] / 2 < 0, G = L ? H < W ? H - W : H - V : 0;
|
|
5919
5919
|
return {
|
|
5920
5920
|
[h]: m[h] + G,
|
|
5921
5921
|
data: {
|
|
@@ -5940,10 +5940,10 @@ const Dd = (e) => ({
|
|
|
5940
5940
|
rects: a,
|
|
5941
5941
|
initialPlacement: i,
|
|
5942
5942
|
platform: c,
|
|
5943
|
-
elements:
|
|
5943
|
+
elements: p
|
|
5944
5944
|
} = t, {
|
|
5945
5945
|
mainAxis: d = !0,
|
|
5946
|
-
crossAxis:
|
|
5946
|
+
crossAxis: f = !0,
|
|
5947
5947
|
fallbackPlacements: m,
|
|
5948
5948
|
fallbackStrategy: h = "bestFit",
|
|
5949
5949
|
fallbackAxisSideDirection: b = "none",
|
|
@@ -5952,11 +5952,11 @@ const Dd = (e) => ({
|
|
|
5952
5952
|
} = je(e, t);
|
|
5953
5953
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
5954
5954
|
return {};
|
|
5955
|
-
const v = Le(o), w = Re(i), E = Le(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(
|
|
5956
|
-
!m && A && R.push(...
|
|
5955
|
+
const v = Le(o), w = Re(i), E = Le(i) === i, S = await (c.isRTL == null ? void 0 : c.isRTL(p.floating)), R = m || (E || !g ? [Jt(i)] : Nd(i)), A = b !== "none";
|
|
5956
|
+
!m && A && R.push(...kd(i, g, b, S));
|
|
5957
5957
|
const M = [i, ...R], C = await xt(t, x), D = [];
|
|
5958
5958
|
let I = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
5959
|
-
if (d && D.push(C[v]),
|
|
5959
|
+
if (d && D.push(C[v]), f) {
|
|
5960
5960
|
const H = Ad(o, a, S);
|
|
5961
5961
|
D.push(C[H[0]], C[H[1]]);
|
|
5962
5962
|
}
|
|
@@ -5966,7 +5966,7 @@ const Dd = (e) => ({
|
|
|
5966
5966
|
}], !D.every((H) => H <= 0)) {
|
|
5967
5967
|
var B, W;
|
|
5968
5968
|
const H = (((B = s.flip) == null ? void 0 : B.index) || 0) + 1, Y = M[H];
|
|
5969
|
-
if (Y && (!(
|
|
5969
|
+
if (Y && (!(f === "alignment" ? w !== Re(Y) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5970
5970
|
// overflows the main axis.
|
|
5971
5971
|
I.every((_) => _.overflows[0] > 0 && Re(_.placement) === w)))
|
|
5972
5972
|
return {
|
|
@@ -5985,13 +5985,13 @@ const Dd = (e) => ({
|
|
|
5985
5985
|
var V;
|
|
5986
5986
|
const G = (V = I.filter((_) => {
|
|
5987
5987
|
if (A) {
|
|
5988
|
-
const
|
|
5989
|
-
return
|
|
5988
|
+
const N = Re(_.placement);
|
|
5989
|
+
return N === w || // Create a bias to the `y` side axis due to horizontal
|
|
5990
5990
|
// reading directions favoring greater width.
|
|
5991
|
-
|
|
5991
|
+
N === "y";
|
|
5992
5992
|
}
|
|
5993
5993
|
return !0;
|
|
5994
|
-
}).map((_) => [_.placement, _.overflows.filter((
|
|
5994
|
+
}).map((_) => [_.placement, _.overflows.filter((N) => N > 0).reduce((N, y) => N + y, 0)]).sort((_, N) => _[1] - N[1])[0]) == null ? void 0 : V[0];
|
|
5995
5995
|
G && (L = G);
|
|
5996
5996
|
break;
|
|
5997
5997
|
}
|
|
@@ -6010,7 +6010,7 @@ const Dd = (e) => ({
|
|
|
6010
6010
|
}
|
|
6011
6011
|
};
|
|
6012
6012
|
};
|
|
6013
|
-
function
|
|
6013
|
+
function ko(e, t) {
|
|
6014
6014
|
return {
|
|
6015
6015
|
top: e.top - t.height,
|
|
6016
6016
|
right: e.right - t.width,
|
|
@@ -6037,7 +6037,7 @@ const jd = function(e) {
|
|
|
6037
6037
|
const s = await xt(t, {
|
|
6038
6038
|
...o,
|
|
6039
6039
|
elementContext: "reference"
|
|
6040
|
-
}), a =
|
|
6040
|
+
}), a = ko(s, n.reference);
|
|
6041
6041
|
return {
|
|
6042
6042
|
data: {
|
|
6043
6043
|
referenceHiddenOffsets: a,
|
|
@@ -6049,7 +6049,7 @@ const jd = function(e) {
|
|
|
6049
6049
|
const s = await xt(t, {
|
|
6050
6050
|
...o,
|
|
6051
6051
|
altBoundary: !0
|
|
6052
|
-
}), a =
|
|
6052
|
+
}), a = ko(s, n.floating);
|
|
6053
6053
|
return {
|
|
6054
6054
|
data: {
|
|
6055
6055
|
escapedOffsets: a,
|
|
@@ -6068,25 +6068,25 @@ async function Ld(e, t) {
|
|
|
6068
6068
|
placement: n,
|
|
6069
6069
|
platform: r,
|
|
6070
6070
|
elements: o
|
|
6071
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Le(n), i = ft(n), c = Re(n) === "y",
|
|
6071
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Le(n), i = ft(n), c = Re(n) === "y", p = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, f = je(t, e);
|
|
6072
6072
|
let {
|
|
6073
6073
|
mainAxis: m,
|
|
6074
6074
|
crossAxis: h,
|
|
6075
6075
|
alignmentAxis: b
|
|
6076
|
-
} = typeof
|
|
6077
|
-
mainAxis:
|
|
6076
|
+
} = typeof f == "number" ? {
|
|
6077
|
+
mainAxis: f,
|
|
6078
6078
|
crossAxis: 0,
|
|
6079
6079
|
alignmentAxis: null
|
|
6080
6080
|
} : {
|
|
6081
|
-
mainAxis:
|
|
6082
|
-
crossAxis:
|
|
6083
|
-
alignmentAxis:
|
|
6081
|
+
mainAxis: f.mainAxis || 0,
|
|
6082
|
+
crossAxis: f.crossAxis || 0,
|
|
6083
|
+
alignmentAxis: f.alignmentAxis
|
|
6084
6084
|
};
|
|
6085
6085
|
return i && typeof b == "number" && (h = i === "end" ? b * -1 : b), c ? {
|
|
6086
6086
|
x: h * d,
|
|
6087
|
-
y: m *
|
|
6087
|
+
y: m * p
|
|
6088
6088
|
} : {
|
|
6089
|
-
x: m *
|
|
6089
|
+
x: m * p,
|
|
6090
6090
|
y: h * d
|
|
6091
6091
|
};
|
|
6092
6092
|
}
|
|
@@ -6137,23 +6137,23 @@ const Fd = function(e) {
|
|
|
6137
6137
|
}
|
|
6138
6138
|
},
|
|
6139
6139
|
...c
|
|
6140
|
-
} = je(e, t),
|
|
6140
|
+
} = je(e, t), p = {
|
|
6141
6141
|
x: n,
|
|
6142
6142
|
y: r
|
|
6143
|
-
}, d = await xt(t, c),
|
|
6144
|
-
let h =
|
|
6143
|
+
}, d = await xt(t, c), f = Re(Le(o)), m = Er(f);
|
|
6144
|
+
let h = p[m], b = p[f];
|
|
6145
6145
|
if (s) {
|
|
6146
6146
|
const x = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", w = h + d[x], E = h - d[v];
|
|
6147
6147
|
h = nr(w, h, E);
|
|
6148
6148
|
}
|
|
6149
6149
|
if (a) {
|
|
6150
|
-
const x =
|
|
6150
|
+
const x = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", w = b + d[x], E = b - d[v];
|
|
6151
6151
|
b = nr(w, b, E);
|
|
6152
6152
|
}
|
|
6153
6153
|
const g = i.fn({
|
|
6154
6154
|
...t,
|
|
6155
6155
|
[m]: h,
|
|
6156
|
-
[
|
|
6156
|
+
[f]: b
|
|
6157
6157
|
});
|
|
6158
6158
|
return {
|
|
6159
6159
|
...g,
|
|
@@ -6162,7 +6162,7 @@ const Fd = function(e) {
|
|
|
6162
6162
|
y: g.y - r,
|
|
6163
6163
|
enabled: {
|
|
6164
6164
|
[m]: s,
|
|
6165
|
-
[
|
|
6165
|
+
[f]: a
|
|
6166
6166
|
}
|
|
6167
6167
|
}
|
|
6168
6168
|
};
|
|
@@ -6181,12 +6181,12 @@ const Fd = function(e) {
|
|
|
6181
6181
|
} = t, {
|
|
6182
6182
|
offset: i = 0,
|
|
6183
6183
|
mainAxis: c = !0,
|
|
6184
|
-
crossAxis:
|
|
6184
|
+
crossAxis: p = !0
|
|
6185
6185
|
} = je(e, t), d = {
|
|
6186
6186
|
x: n,
|
|
6187
6187
|
y: r
|
|
6188
|
-
},
|
|
6189
|
-
let h = d[m], b = d[
|
|
6188
|
+
}, f = Re(o), m = Er(f);
|
|
6189
|
+
let h = d[m], b = d[f];
|
|
6190
6190
|
const g = je(i, t), x = typeof g == "number" ? {
|
|
6191
6191
|
mainAxis: g,
|
|
6192
6192
|
crossAxis: 0
|
|
@@ -6199,14 +6199,14 @@ const Fd = function(e) {
|
|
|
6199
6199
|
const E = m === "y" ? "height" : "width", S = s.reference[m] - s.floating[E] + x.mainAxis, R = s.reference[m] + s.reference[E] - x.mainAxis;
|
|
6200
6200
|
h < S ? h = S : h > R && (h = R);
|
|
6201
6201
|
}
|
|
6202
|
-
if (
|
|
6202
|
+
if (p) {
|
|
6203
6203
|
var v, w;
|
|
6204
|
-
const E = m === "y" ? "width" : "height", S = ["top", "left"].includes(Le(o)), R = s.reference[
|
|
6204
|
+
const E = m === "y" ? "width" : "height", S = ["top", "left"].includes(Le(o)), R = s.reference[f] - s.floating[E] + (S && ((v = a.offset) == null ? void 0 : v[f]) || 0) + (S ? 0 : x.crossAxis), A = s.reference[f] + s.reference[E] + (S ? 0 : ((w = a.offset) == null ? void 0 : w[f]) || 0) - (S ? x.crossAxis : 0);
|
|
6205
6205
|
b < R ? b = R : b > A && (b = A);
|
|
6206
6206
|
}
|
|
6207
6207
|
return {
|
|
6208
6208
|
[m]: h,
|
|
6209
|
-
[
|
|
6209
|
+
[f]: b
|
|
6210
6210
|
};
|
|
6211
6211
|
}
|
|
6212
6212
|
};
|
|
@@ -6224,13 +6224,13 @@ const Fd = function(e) {
|
|
|
6224
6224
|
} = t, {
|
|
6225
6225
|
apply: c = () => {
|
|
6226
6226
|
},
|
|
6227
|
-
...
|
|
6228
|
-
} = je(e, t), d = await xt(t,
|
|
6227
|
+
...p
|
|
6228
|
+
} = je(e, t), d = await xt(t, p), f = Le(o), m = ft(o), h = Re(o) === "y", {
|
|
6229
6229
|
width: b,
|
|
6230
6230
|
height: g
|
|
6231
6231
|
} = s.floating;
|
|
6232
6232
|
let x, v;
|
|
6233
|
-
|
|
6233
|
+
f === "top" || f === "bottom" ? (x = f, v = m === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (v = f, x = m === "end" ? "top" : "bottom");
|
|
6234
6234
|
const w = g - d.top - d.bottom, E = b - d.left - d.right, S = Ue(g - d[x], w), R = Ue(b - d[v], E), A = !t.middlewareData.shift;
|
|
6235
6235
|
let M = S, C = R;
|
|
6236
6236
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = E), (r = t.middlewareData.shift) != null && r.enabled.y && (M = w), A && !m) {
|
|
@@ -6261,7 +6261,7 @@ function ge(e) {
|
|
|
6261
6261
|
var t;
|
|
6262
6262
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
6263
6263
|
}
|
|
6264
|
-
function
|
|
6264
|
+
function Ne(e) {
|
|
6265
6265
|
var t;
|
|
6266
6266
|
return (t = (aa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6267
6267
|
}
|
|
@@ -6339,7 +6339,7 @@ function Ke(e) {
|
|
|
6339
6339
|
e.assignedSlot || // DOM Element detected.
|
|
6340
6340
|
e.parentNode || // ShadowRoot detected.
|
|
6341
6341
|
Po(e) && e.host || // Fallback.
|
|
6342
|
-
|
|
6342
|
+
Ne(e)
|
|
6343
6343
|
);
|
|
6344
6344
|
return Po(t) ? t.host : t;
|
|
6345
6345
|
}
|
|
@@ -6405,31 +6405,31 @@ function Ze(e, t, n, r) {
|
|
|
6405
6405
|
let a = _e(1);
|
|
6406
6406
|
t && (r ? ye(r) && (a = st(r)) : a = st(e));
|
|
6407
6407
|
const i = Gd(s, n, r) ? la(s) : _e(0);
|
|
6408
|
-
let c = (o.left + i.x) / a.x,
|
|
6408
|
+
let c = (o.left + i.x) / a.x, p = (o.top + i.y) / a.y, d = o.width / a.x, f = o.height / a.y;
|
|
6409
6409
|
if (s) {
|
|
6410
6410
|
const m = ge(s), h = r && ye(r) ? ge(r) : r;
|
|
6411
6411
|
let b = m, g = or(b);
|
|
6412
6412
|
for (; g && r && h !== b; ) {
|
|
6413
6413
|
const x = st(g), v = g.getBoundingClientRect(), w = Ce(g), E = v.left + (g.clientLeft + parseFloat(w.paddingLeft)) * x.x, S = v.top + (g.clientTop + parseFloat(w.paddingTop)) * x.y;
|
|
6414
|
-
c *= x.x,
|
|
6414
|
+
c *= x.x, p *= x.y, d *= x.x, f *= x.y, c += E, p += S, b = ge(g), g = or(b);
|
|
6415
6415
|
}
|
|
6416
6416
|
}
|
|
6417
6417
|
return Qt({
|
|
6418
6418
|
width: d,
|
|
6419
|
-
height:
|
|
6419
|
+
height: f,
|
|
6420
6420
|
x: c,
|
|
6421
|
-
y:
|
|
6421
|
+
y: p
|
|
6422
6422
|
});
|
|
6423
6423
|
}
|
|
6424
|
-
function
|
|
6424
|
+
function Nr(e, t) {
|
|
6425
6425
|
const n = fn(e).scrollLeft;
|
|
6426
|
-
return t ? t.left + n : Ze(
|
|
6426
|
+
return t ? t.left + n : Ze(Ne(e)).left + n;
|
|
6427
6427
|
}
|
|
6428
6428
|
function ua(e, t, n) {
|
|
6429
6429
|
n === void 0 && (n = !1);
|
|
6430
6430
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
6431
6431
|
// RTL <body> scrollbar.
|
|
6432
|
-
|
|
6432
|
+
Nr(e, r)
|
|
6433
6433
|
)), s = r.top + t.scrollTop;
|
|
6434
6434
|
return {
|
|
6435
6435
|
x: o,
|
|
@@ -6443,32 +6443,32 @@ function Ud(e) {
|
|
|
6443
6443
|
offsetParent: r,
|
|
6444
6444
|
strategy: o
|
|
6445
6445
|
} = e;
|
|
6446
|
-
const s = o === "fixed", a =
|
|
6446
|
+
const s = o === "fixed", a = Ne(r), i = t ? dn(t.floating) : !1;
|
|
6447
6447
|
if (r === a || i && s)
|
|
6448
6448
|
return n;
|
|
6449
6449
|
let c = {
|
|
6450
6450
|
scrollLeft: 0,
|
|
6451
6451
|
scrollTop: 0
|
|
6452
|
-
},
|
|
6453
|
-
const d = _e(0),
|
|
6454
|
-
if ((
|
|
6452
|
+
}, p = _e(1);
|
|
6453
|
+
const d = _e(0), f = Ae(r);
|
|
6454
|
+
if ((f || !f && !s) && ((pt(r) !== "body" || _t(a)) && (c = fn(r)), Ae(r))) {
|
|
6455
6455
|
const h = Ze(r);
|
|
6456
|
-
|
|
6456
|
+
p = st(r), d.x = h.x + r.clientLeft, d.y = h.y + r.clientTop;
|
|
6457
6457
|
}
|
|
6458
|
-
const m = a && !
|
|
6458
|
+
const m = a && !f && !s ? ua(a, c, !0) : _e(0);
|
|
6459
6459
|
return {
|
|
6460
|
-
width: n.width *
|
|
6461
|
-
height: n.height *
|
|
6462
|
-
x: n.x *
|
|
6463
|
-
y: n.y *
|
|
6460
|
+
width: n.width * p.x,
|
|
6461
|
+
height: n.height * p.y,
|
|
6462
|
+
x: n.x * p.x - c.scrollLeft * p.x + d.x + m.x,
|
|
6463
|
+
y: n.y * p.y - c.scrollTop * p.y + d.y + m.y
|
|
6464
6464
|
};
|
|
6465
6465
|
}
|
|
6466
6466
|
function Kd(e) {
|
|
6467
6467
|
return Array.from(e.getClientRects());
|
|
6468
6468
|
}
|
|
6469
6469
|
function Yd(e) {
|
|
6470
|
-
const t =
|
|
6471
|
-
let a = -n.scrollLeft +
|
|
6470
|
+
const t = Ne(e), n = fn(e), r = e.ownerDocument.body, o = he(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = he(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
6471
|
+
let a = -n.scrollLeft + Nr(e);
|
|
6472
6472
|
const i = -n.scrollTop;
|
|
6473
6473
|
return Ce(r).direction === "rtl" && (a += he(t.clientWidth, r.clientWidth) - o), {
|
|
6474
6474
|
width: o,
|
|
@@ -6478,12 +6478,12 @@ function Yd(e) {
|
|
|
6478
6478
|
};
|
|
6479
6479
|
}
|
|
6480
6480
|
function qd(e, t) {
|
|
6481
|
-
const n = ge(e), r =
|
|
6481
|
+
const n = ge(e), r = Ne(e), o = n.visualViewport;
|
|
6482
6482
|
let s = r.clientWidth, a = r.clientHeight, i = 0, c = 0;
|
|
6483
6483
|
if (o) {
|
|
6484
6484
|
s = o.width, a = o.height;
|
|
6485
|
-
const
|
|
6486
|
-
(!
|
|
6485
|
+
const p = Mr();
|
|
6486
|
+
(!p || p && t === "fixed") && (i = o.offsetLeft, c = o.offsetTop);
|
|
6487
6487
|
}
|
|
6488
6488
|
return {
|
|
6489
6489
|
width: s,
|
|
@@ -6493,12 +6493,12 @@ function qd(e, t) {
|
|
|
6493
6493
|
};
|
|
6494
6494
|
}
|
|
6495
6495
|
function Xd(e, t) {
|
|
6496
|
-
const n = Ze(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Ae(e) ? st(e) : _e(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, c = o * s.x,
|
|
6496
|
+
const n = Ze(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Ae(e) ? st(e) : _e(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, c = o * s.x, p = r * s.y;
|
|
6497
6497
|
return {
|
|
6498
6498
|
width: a,
|
|
6499
6499
|
height: i,
|
|
6500
6500
|
x: c,
|
|
6501
|
-
y:
|
|
6501
|
+
y: p
|
|
6502
6502
|
};
|
|
6503
6503
|
}
|
|
6504
6504
|
function Do(e, t, n) {
|
|
@@ -6506,7 +6506,7 @@ function Do(e, t, n) {
|
|
|
6506
6506
|
if (t === "viewport")
|
|
6507
6507
|
r = qd(e, n);
|
|
6508
6508
|
else if (t === "document")
|
|
6509
|
-
r = Yd(
|
|
6509
|
+
r = Yd(Ne(e));
|
|
6510
6510
|
else if (ye(t))
|
|
6511
6511
|
r = Xd(t, n);
|
|
6512
6512
|
else {
|
|
@@ -6544,9 +6544,9 @@ function Jd(e) {
|
|
|
6544
6544
|
rootBoundary: r,
|
|
6545
6545
|
strategy: o
|
|
6546
6546
|
} = e;
|
|
6547
|
-
const a = [...n === "clippingAncestors" ? dn(t) ? [] : Zd(t, this._c) : [].concat(n), r], i = a[0], c = a.reduce((
|
|
6548
|
-
const
|
|
6549
|
-
return
|
|
6547
|
+
const a = [...n === "clippingAncestors" ? dn(t) ? [] : Zd(t, this._c) : [].concat(n), r], i = a[0], c = a.reduce((p, d) => {
|
|
6548
|
+
const f = Do(t, d, o);
|
|
6549
|
+
return p.top = he(f.top, p.top), p.right = Ue(f.right, p.right), p.bottom = Ue(f.bottom, p.bottom), p.left = he(f.left, p.left), p;
|
|
6550
6550
|
}, Do(t, i, o));
|
|
6551
6551
|
return {
|
|
6552
6552
|
width: c.right - c.left,
|
|
@@ -6566,24 +6566,24 @@ function Qd(e) {
|
|
|
6566
6566
|
};
|
|
6567
6567
|
}
|
|
6568
6568
|
function ef(e, t, n) {
|
|
6569
|
-
const r = Ae(t), o =
|
|
6569
|
+
const r = Ae(t), o = Ne(t), s = n === "fixed", a = Ze(e, !0, s, t);
|
|
6570
6570
|
let i = {
|
|
6571
6571
|
scrollLeft: 0,
|
|
6572
6572
|
scrollTop: 0
|
|
6573
6573
|
};
|
|
6574
6574
|
const c = _e(0);
|
|
6575
|
-
function
|
|
6576
|
-
c.x =
|
|
6575
|
+
function p() {
|
|
6576
|
+
c.x = Nr(o);
|
|
6577
6577
|
}
|
|
6578
6578
|
if (r || !r && !s)
|
|
6579
6579
|
if ((pt(t) !== "body" || _t(o)) && (i = fn(t)), r) {
|
|
6580
6580
|
const h = Ze(t, !0, s, t);
|
|
6581
6581
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
6582
|
-
} else o &&
|
|
6583
|
-
s && !r && o &&
|
|
6584
|
-
const d = o && !r && !s ? ua(o, i) : _e(0),
|
|
6582
|
+
} else o && p();
|
|
6583
|
+
s && !r && o && p();
|
|
6584
|
+
const d = o && !r && !s ? ua(o, i) : _e(0), f = a.left + i.scrollLeft - c.x - d.x, m = a.top + i.scrollTop - c.y - d.y;
|
|
6585
6585
|
return {
|
|
6586
|
-
x:
|
|
6586
|
+
x: f,
|
|
6587
6587
|
y: m,
|
|
6588
6588
|
width: a.width,
|
|
6589
6589
|
height: a.height
|
|
@@ -6598,7 +6598,7 @@ function Io(e, t) {
|
|
|
6598
6598
|
if (t)
|
|
6599
6599
|
return t(e);
|
|
6600
6600
|
let n = e.offsetParent;
|
|
6601
|
-
return
|
|
6601
|
+
return Ne(e) === n && (n = n.ownerDocument.body), n;
|
|
6602
6602
|
}
|
|
6603
6603
|
function fa(e, t) {
|
|
6604
6604
|
const n = ge(e);
|
|
@@ -6635,7 +6635,7 @@ function nf(e) {
|
|
|
6635
6635
|
}
|
|
6636
6636
|
const rf = {
|
|
6637
6637
|
convertOffsetParentRelativeRectToViewportRelativeRect: Ud,
|
|
6638
|
-
getDocumentElement:
|
|
6638
|
+
getDocumentElement: Ne,
|
|
6639
6639
|
getClippingRect: Jd,
|
|
6640
6640
|
getOffsetParent: fa,
|
|
6641
6641
|
getElementRects: tf,
|
|
@@ -6650,22 +6650,22 @@ function pa(e, t) {
|
|
|
6650
6650
|
}
|
|
6651
6651
|
function of(e, t) {
|
|
6652
6652
|
let n = null, r;
|
|
6653
|
-
const o =
|
|
6653
|
+
const o = Ne(e);
|
|
6654
6654
|
function s() {
|
|
6655
6655
|
var i;
|
|
6656
6656
|
clearTimeout(r), (i = n) == null || i.disconnect(), n = null;
|
|
6657
6657
|
}
|
|
6658
6658
|
function a(i, c) {
|
|
6659
6659
|
i === void 0 && (i = !1), c === void 0 && (c = 1), s();
|
|
6660
|
-
const
|
|
6660
|
+
const p = e.getBoundingClientRect(), {
|
|
6661
6661
|
left: d,
|
|
6662
|
-
top:
|
|
6662
|
+
top: f,
|
|
6663
6663
|
width: m,
|
|
6664
6664
|
height: h
|
|
6665
|
-
} =
|
|
6665
|
+
} = p;
|
|
6666
6666
|
if (i || t(), !m || !h)
|
|
6667
6667
|
return;
|
|
6668
|
-
const b = Wt(
|
|
6668
|
+
const b = Wt(f), g = Wt(o.clientWidth - (d + m)), x = Wt(o.clientHeight - (f + h)), v = Wt(d), E = {
|
|
6669
6669
|
rootMargin: -b + "px " + -g + "px " + -x + "px " + -v + "px",
|
|
6670
6670
|
threshold: he(0, Ue(1, c)) || 1
|
|
6671
6671
|
};
|
|
@@ -6679,7 +6679,7 @@ function of(e, t) {
|
|
|
6679
6679
|
a(!1, 1e-7);
|
|
6680
6680
|
}, 1e3);
|
|
6681
6681
|
}
|
|
6682
|
-
M === 1 && !pa(
|
|
6682
|
+
M === 1 && !pa(p, e.getBoundingClientRect()) && a(), S = !1;
|
|
6683
6683
|
}
|
|
6684
6684
|
try {
|
|
6685
6685
|
n = new IntersectionObserver(R, {
|
|
@@ -6702,21 +6702,21 @@ function sf(e, t, n, r) {
|
|
|
6702
6702
|
elementResize: a = typeof ResizeObserver == "function",
|
|
6703
6703
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
6704
6704
|
animationFrame: c = !1
|
|
6705
|
-
} = r,
|
|
6705
|
+
} = r, p = Ar(e), d = o || s ? [...p ? wt(p) : [], ...wt(t)] : [];
|
|
6706
6706
|
d.forEach((v) => {
|
|
6707
6707
|
o && v.addEventListener("scroll", n, {
|
|
6708
6708
|
passive: !0
|
|
6709
6709
|
}), s && v.addEventListener("resize", n);
|
|
6710
6710
|
});
|
|
6711
|
-
const
|
|
6711
|
+
const f = p && i ? of(p, n) : null;
|
|
6712
6712
|
let m = -1, h = null;
|
|
6713
6713
|
a && (h = new ResizeObserver((v) => {
|
|
6714
6714
|
let [w] = v;
|
|
6715
|
-
w && w.target ===
|
|
6715
|
+
w && w.target === p && h && (h.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
6716
6716
|
var E;
|
|
6717
6717
|
(E = h) == null || E.observe(t);
|
|
6718
6718
|
})), n();
|
|
6719
|
-
}),
|
|
6719
|
+
}), p && !c && h.observe(p), h.observe(t));
|
|
6720
6720
|
let b, g = c ? Ze(e) : null;
|
|
6721
6721
|
c && x();
|
|
6722
6722
|
function x() {
|
|
@@ -6727,7 +6727,7 @@ function sf(e, t, n, r) {
|
|
|
6727
6727
|
var v;
|
|
6728
6728
|
d.forEach((w) => {
|
|
6729
6729
|
o && w.removeEventListener("scroll", n), s && w.removeEventListener("resize", n);
|
|
6730
|
-
}),
|
|
6730
|
+
}), f == null || f(), (v = h) == null || v.disconnect(), h = null, c && cancelAnimationFrame(b);
|
|
6731
6731
|
};
|
|
6732
6732
|
}
|
|
6733
6733
|
const af = Fd, cf = $d, lf = Id, uf = Hd, df = jd, jo = Dd, ff = Vd, pf = (e, t, n) => {
|
|
@@ -6801,8 +6801,8 @@ function gf(e) {
|
|
|
6801
6801
|
} = {},
|
|
6802
6802
|
transform: i = !0,
|
|
6803
6803
|
whileElementsMounted: c,
|
|
6804
|
-
open:
|
|
6805
|
-
} = e, [d,
|
|
6804
|
+
open: p
|
|
6805
|
+
} = e, [d, f] = u.useState({
|
|
6806
6806
|
x: 0,
|
|
6807
6807
|
y: 0,
|
|
6808
6808
|
strategy: n,
|
|
@@ -6815,7 +6815,7 @@ function gf(e) {
|
|
|
6815
6815
|
_ !== A.current && (A.current = _, g(_));
|
|
6816
6816
|
}, []), E = u.useCallback((_) => {
|
|
6817
6817
|
_ !== M.current && (M.current = _, v(_));
|
|
6818
|
-
}, []), S = s || b, R = a || x, A = u.useRef(null), M = u.useRef(null), C = u.useRef(d), D = c != null, I = Vn(c), B = Vn(o), W = Vn(
|
|
6818
|
+
}, []), S = s || b, R = a || x, A = u.useRef(null), M = u.useRef(null), C = u.useRef(d), D = c != null, I = Vn(c), B = Vn(o), W = Vn(p), V = u.useCallback(() => {
|
|
6819
6819
|
if (!A.current || !M.current)
|
|
6820
6820
|
return;
|
|
6821
6821
|
const _ = {
|
|
@@ -6823,9 +6823,9 @@ function gf(e) {
|
|
|
6823
6823
|
strategy: n,
|
|
6824
6824
|
middleware: m
|
|
6825
6825
|
};
|
|
6826
|
-
B.current && (_.platform = B.current), pf(A.current, M.current, _).then((
|
|
6826
|
+
B.current && (_.platform = B.current), pf(A.current, M.current, _).then((N) => {
|
|
6827
6827
|
const y = {
|
|
6828
|
-
...
|
|
6828
|
+
...N,
|
|
6829
6829
|
// The floating element's position may be recomputed while it's closed
|
|
6830
6830
|
// but still mounted (such as when transitioning out). To ensure
|
|
6831
6831
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
@@ -6833,16 +6833,16 @@ function gf(e) {
|
|
|
6833
6833
|
isPositioned: W.current !== !1
|
|
6834
6834
|
};
|
|
6835
6835
|
H.current && !en(C.current, y) && (C.current = y, Wo.flushSync(() => {
|
|
6836
|
-
|
|
6836
|
+
f(y);
|
|
6837
6837
|
}));
|
|
6838
6838
|
});
|
|
6839
6839
|
}, [m, t, n, B, W]);
|
|
6840
6840
|
Kt(() => {
|
|
6841
|
-
|
|
6841
|
+
p === !1 && C.current.isPositioned && (C.current.isPositioned = !1, f((_) => ({
|
|
6842
6842
|
..._,
|
|
6843
6843
|
isPositioned: !1
|
|
6844
6844
|
})));
|
|
6845
|
-
}, [
|
|
6845
|
+
}, [p]);
|
|
6846
6846
|
const H = u.useRef(!1);
|
|
6847
6847
|
Kt(() => (H.current = !0, () => {
|
|
6848
6848
|
H.current = !1;
|
|
@@ -6869,16 +6869,16 @@ function gf(e) {
|
|
|
6869
6869
|
};
|
|
6870
6870
|
if (!L.floating)
|
|
6871
6871
|
return _;
|
|
6872
|
-
const
|
|
6872
|
+
const N = Lo(L.floating, d.x), y = Lo(L.floating, d.y);
|
|
6873
6873
|
return i ? {
|
|
6874
6874
|
..._,
|
|
6875
|
-
transform: "translate(" +
|
|
6875
|
+
transform: "translate(" + N + "px, " + y + "px)",
|
|
6876
6876
|
...ma(L.floating) >= 1.5 && {
|
|
6877
6877
|
willChange: "transform"
|
|
6878
6878
|
}
|
|
6879
6879
|
} : {
|
|
6880
6880
|
position: n,
|
|
6881
|
-
left:
|
|
6881
|
+
left: N,
|
|
6882
6882
|
top: y
|
|
6883
6883
|
};
|
|
6884
6884
|
}, [n, i, L.floating, d.x, d.y]);
|
|
@@ -6961,8 +6961,8 @@ function Mf(e) {
|
|
|
6961
6961
|
const s = o[0];
|
|
6962
6962
|
let a, i;
|
|
6963
6963
|
if ("borderBoxSize" in s) {
|
|
6964
|
-
const c = s.borderBoxSize,
|
|
6965
|
-
a =
|
|
6964
|
+
const c = s.borderBoxSize, p = Array.isArray(c) ? c[0] : c;
|
|
6965
|
+
a = p.inlineSize, i = p.blockSize;
|
|
6966
6966
|
} else
|
|
6967
6967
|
a = e.offsetWidth, i = e.offsetHeight;
|
|
6968
6968
|
n({ width: a, height: i });
|
|
@@ -6972,11 +6972,11 @@ function Mf(e) {
|
|
|
6972
6972
|
n(void 0);
|
|
6973
6973
|
}, [e]), t;
|
|
6974
6974
|
}
|
|
6975
|
-
var
|
|
6975
|
+
var Tr = "Popper", [ga, pn] = Je(Tr), [Af, va] = ga(Tr), ba = (e) => {
|
|
6976
6976
|
const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
|
|
6977
6977
|
return /* @__PURE__ */ l.jsx(Af, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
6978
6978
|
};
|
|
6979
|
-
ba.displayName =
|
|
6979
|
+
ba.displayName = Tr;
|
|
6980
6980
|
var xa = "PopperAnchor", wa = u.forwardRef(
|
|
6981
6981
|
(e, t) => {
|
|
6982
6982
|
const { __scopePopper: n, virtualRef: r, ...o } = e, s = va(xa, n), a = u.useRef(null), i = ae(t, a);
|
|
@@ -6986,7 +6986,7 @@ var xa = "PopperAnchor", wa = u.forwardRef(
|
|
|
6986
6986
|
}
|
|
6987
6987
|
);
|
|
6988
6988
|
wa.displayName = xa;
|
|
6989
|
-
var
|
|
6989
|
+
var kr = "PopperContent", [Nf, Tf] = ga(kr), ya = u.forwardRef(
|
|
6990
6990
|
(e, t) => {
|
|
6991
6991
|
var U, J, Q, oe, xe, $e;
|
|
6992
6992
|
const {
|
|
@@ -6997,14 +6997,14 @@ var Nr = "PopperContent", [Tf, kf] = ga(Nr), ya = u.forwardRef(
|
|
|
6997
6997
|
alignOffset: a = 0,
|
|
6998
6998
|
arrowPadding: i = 0,
|
|
6999
6999
|
avoidCollisions: c = !0,
|
|
7000
|
-
collisionBoundary:
|
|
7000
|
+
collisionBoundary: p = [],
|
|
7001
7001
|
collisionPadding: d = 0,
|
|
7002
|
-
sticky:
|
|
7002
|
+
sticky: f = "partial",
|
|
7003
7003
|
hideWhenDetached: m = !1,
|
|
7004
7004
|
updatePositionStrategy: h = "optimized",
|
|
7005
7005
|
onPlaced: b,
|
|
7006
7006
|
...g
|
|
7007
|
-
} = e, x = va(
|
|
7007
|
+
} = e, x = va(kr, n), [v, w] = u.useState(null), E = ae(t, (X) => w(X)), [S, R] = u.useState(null), A = Mf(S), M = (A == null ? void 0 : A.width) ?? 0, C = (A == null ? void 0 : A.height) ?? 0, D = r + (s !== "center" ? "-" + s : ""), I = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, B = Array.isArray(p) ? p : [p], W = B.length > 0, V = {
|
|
7008
7008
|
padding: I,
|
|
7009
7009
|
boundary: B.filter(Of),
|
|
7010
7010
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -7024,7 +7024,7 @@ var Nr = "PopperContent", [Tf, kf] = ga(Nr), ya = u.forwardRef(
|
|
|
7024
7024
|
c && xf({
|
|
7025
7025
|
mainAxis: !0,
|
|
7026
7026
|
crossAxis: !1,
|
|
7027
|
-
limiter:
|
|
7027
|
+
limiter: f === "partial" ? wf() : void 0,
|
|
7028
7028
|
...V
|
|
7029
7029
|
}),
|
|
7030
7030
|
c && yf({ ...V }),
|
|
@@ -7039,7 +7039,7 @@ var Nr = "PopperContent", [Tf, kf] = ga(Nr), ya = u.forwardRef(
|
|
|
7039
7039
|
Pf({ arrowWidth: M, arrowHeight: C }),
|
|
7040
7040
|
m && Ef({ strategy: "referenceHidden", ...V })
|
|
7041
7041
|
]
|
|
7042
|
-
}), [
|
|
7042
|
+
}), [N, y] = Sa(L), k = Me(b);
|
|
7043
7043
|
Ge(() => {
|
|
7044
7044
|
G && (k == null || k());
|
|
7045
7045
|
}, [G, k]);
|
|
@@ -7071,10 +7071,10 @@ var Nr = "PopperContent", [Tf, kf] = ga(Nr), ya = u.forwardRef(
|
|
|
7071
7071
|
},
|
|
7072
7072
|
dir: e.dir,
|
|
7073
7073
|
children: /* @__PURE__ */ l.jsx(
|
|
7074
|
-
|
|
7074
|
+
Nf,
|
|
7075
7075
|
{
|
|
7076
7076
|
scope: n,
|
|
7077
|
-
placedSide:
|
|
7077
|
+
placedSide: N,
|
|
7078
7078
|
onArrowChange: R,
|
|
7079
7079
|
arrowX: j,
|
|
7080
7080
|
arrowY: $,
|
|
@@ -7082,7 +7082,7 @@ var Nr = "PopperContent", [Tf, kf] = ga(Nr), ya = u.forwardRef(
|
|
|
7082
7082
|
children: /* @__PURE__ */ l.jsx(
|
|
7083
7083
|
ne.div,
|
|
7084
7084
|
{
|
|
7085
|
-
"data-side":
|
|
7085
|
+
"data-side": N,
|
|
7086
7086
|
"data-align": y,
|
|
7087
7087
|
...g,
|
|
7088
7088
|
ref: E,
|
|
@@ -7100,14 +7100,14 @@ var Nr = "PopperContent", [Tf, kf] = ga(Nr), ya = u.forwardRef(
|
|
|
7100
7100
|
);
|
|
7101
7101
|
}
|
|
7102
7102
|
);
|
|
7103
|
-
ya.displayName =
|
|
7104
|
-
var Ca = "PopperArrow",
|
|
7103
|
+
ya.displayName = kr;
|
|
7104
|
+
var Ca = "PopperArrow", kf = {
|
|
7105
7105
|
top: "bottom",
|
|
7106
7106
|
right: "left",
|
|
7107
7107
|
bottom: "top",
|
|
7108
7108
|
left: "right"
|
|
7109
7109
|
}, Ea = u.forwardRef(function(t, n) {
|
|
7110
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
7110
|
+
const { __scopePopper: r, ...o } = t, s = Tf(Ca, r), a = kf[s.placedSide];
|
|
7111
7111
|
return (
|
|
7112
7112
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
7113
7113
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -7160,9 +7160,9 @@ var Pf = (e) => ({
|
|
|
7160
7160
|
options: e,
|
|
7161
7161
|
fn(t) {
|
|
7162
7162
|
var x, v, w;
|
|
7163
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = ((x = o.arrow) == null ? void 0 : x.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [
|
|
7163
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = ((x = o.arrow) == null ? void 0 : x.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [p, d] = Sa(n), f = { start: "0%", center: "50%", end: "100%" }[d], m = (((v = o.arrow) == null ? void 0 : v.x) ?? 0) + i / 2, h = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + c / 2;
|
|
7164
7164
|
let b = "", g = "";
|
|
7165
|
-
return
|
|
7165
|
+
return p === "bottom" ? (b = a ? f : `${m}px`, g = `${-c}px`) : p === "top" ? (b = a ? f : `${m}px`, g = `${r.floating.height + c}px`) : p === "right" ? (b = `${-c}px`, g = a ? f : `${h}px`) : p === "left" && (b = `${r.floating.width + c}px`, g = a ? f : `${h}px`), { data: { x: b, y: g } };
|
|
7166
7166
|
}
|
|
7167
7167
|
});
|
|
7168
7168
|
function Sa(e) {
|
|
@@ -7194,7 +7194,7 @@ var Or = ba, Ra = wa, _a = ya, Ma = Ea, Df = Object.freeze({
|
|
|
7194
7194
|
Aa.displayName = If;
|
|
7195
7195
|
var jf = Aa, [mn, S0] = Je("Tooltip", [
|
|
7196
7196
|
pn
|
|
7197
|
-
]), hn = pn(),
|
|
7197
|
+
]), hn = pn(), Na = "TooltipProvider", Lf = 700, sr = "tooltip.open", [Ff, Pr] = mn(Na), Ta = (e) => {
|
|
7198
7198
|
const {
|
|
7199
7199
|
__scopeTooltip: t,
|
|
7200
7200
|
delayDuration: n = Lf,
|
|
@@ -7203,8 +7203,8 @@ var jf = Aa, [mn, S0] = Je("Tooltip", [
|
|
|
7203
7203
|
children: s
|
|
7204
7204
|
} = e, a = u.useRef(!0), i = u.useRef(!1), c = u.useRef(0);
|
|
7205
7205
|
return u.useEffect(() => {
|
|
7206
|
-
const
|
|
7207
|
-
return () => window.clearTimeout(
|
|
7206
|
+
const p = c.current;
|
|
7207
|
+
return () => window.clearTimeout(p);
|
|
7208
7208
|
}, []), /* @__PURE__ */ l.jsx(
|
|
7209
7209
|
Ff,
|
|
7210
7210
|
{
|
|
@@ -7221,16 +7221,16 @@ var jf = Aa, [mn, S0] = Je("Tooltip", [
|
|
|
7221
7221
|
);
|
|
7222
7222
|
}, [r]),
|
|
7223
7223
|
isPointerInTransitRef: i,
|
|
7224
|
-
onPointerInTransitChange: u.useCallback((
|
|
7225
|
-
i.current =
|
|
7224
|
+
onPointerInTransitChange: u.useCallback((p) => {
|
|
7225
|
+
i.current = p;
|
|
7226
7226
|
}, []),
|
|
7227
7227
|
disableHoverableContent: o,
|
|
7228
7228
|
children: s
|
|
7229
7229
|
}
|
|
7230
7230
|
);
|
|
7231
7231
|
};
|
|
7232
|
-
|
|
7233
|
-
var yt = "Tooltip", [$f, gn] = mn(yt),
|
|
7232
|
+
Ta.displayName = Na;
|
|
7233
|
+
var yt = "Tooltip", [$f, gn] = mn(yt), ka = (e) => {
|
|
7234
7234
|
const {
|
|
7235
7235
|
__scopeTooltip: t,
|
|
7236
7236
|
children: n,
|
|
@@ -7239,7 +7239,7 @@ var yt = "Tooltip", [$f, gn] = mn(yt), Na = (e) => {
|
|
|
7239
7239
|
onOpenChange: s,
|
|
7240
7240
|
disableHoverableContent: a,
|
|
7241
7241
|
delayDuration: i
|
|
7242
|
-
} = e, c = Pr(yt, e.__scopeTooltip),
|
|
7242
|
+
} = e, c = Pr(yt, e.__scopeTooltip), p = hn(t), [d, f] = u.useState(null), m = De(), h = u.useRef(0), b = a ?? c.disableHoverableContent, g = i ?? c.delayDuration, x = u.useRef(!1), [v, w] = Rt({
|
|
7243
7243
|
prop: r,
|
|
7244
7244
|
defaultProp: o ?? !1,
|
|
7245
7245
|
onChange: (M) => {
|
|
@@ -7257,7 +7257,7 @@ var yt = "Tooltip", [$f, gn] = mn(yt), Na = (e) => {
|
|
|
7257
7257
|
}, [g, w]);
|
|
7258
7258
|
return u.useEffect(() => () => {
|
|
7259
7259
|
h.current && (window.clearTimeout(h.current), h.current = 0);
|
|
7260
|
-
}, []), /* @__PURE__ */ l.jsx(Or, { ...
|
|
7260
|
+
}, []), /* @__PURE__ */ l.jsx(Or, { ...p, children: /* @__PURE__ */ l.jsx(
|
|
7261
7261
|
$f,
|
|
7262
7262
|
{
|
|
7263
7263
|
scope: t,
|
|
@@ -7265,7 +7265,7 @@ var yt = "Tooltip", [$f, gn] = mn(yt), Na = (e) => {
|
|
|
7265
7265
|
open: v,
|
|
7266
7266
|
stateAttribute: E,
|
|
7267
7267
|
trigger: d,
|
|
7268
|
-
onTriggerChange:
|
|
7268
|
+
onTriggerChange: f,
|
|
7269
7269
|
onTriggerEnter: u.useCallback(() => {
|
|
7270
7270
|
c.isOpenDelayedRef.current ? A() : S();
|
|
7271
7271
|
}, [c.isOpenDelayedRef, A, S]),
|
|
@@ -7279,11 +7279,11 @@ var yt = "Tooltip", [$f, gn] = mn(yt), Na = (e) => {
|
|
|
7279
7279
|
}
|
|
7280
7280
|
) });
|
|
7281
7281
|
};
|
|
7282
|
-
|
|
7282
|
+
ka.displayName = yt;
|
|
7283
7283
|
var ar = "TooltipTrigger", Oa = u.forwardRef(
|
|
7284
7284
|
(e, t) => {
|
|
7285
|
-
const { __scopeTooltip: n, ...r } = e, o = gn(ar, n), s = Pr(ar, n), a = hn(n), i = u.useRef(null), c = ae(t, i, o.onTriggerChange),
|
|
7286
|
-
return u.useEffect(() => () => document.removeEventListener("pointerup",
|
|
7285
|
+
const { __scopeTooltip: n, ...r } = e, o = gn(ar, n), s = Pr(ar, n), a = hn(n), i = u.useRef(null), c = ae(t, i, o.onTriggerChange), p = u.useRef(!1), d = u.useRef(!1), f = u.useCallback(() => p.current = !1, []);
|
|
7286
|
+
return u.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ l.jsx(Ra, { asChild: !0, ...a, children: /* @__PURE__ */ l.jsx(
|
|
7287
7287
|
ne.button,
|
|
7288
7288
|
{
|
|
7289
7289
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -7297,10 +7297,10 @@ var ar = "TooltipTrigger", Oa = u.forwardRef(
|
|
|
7297
7297
|
o.onTriggerLeave(), d.current = !1;
|
|
7298
7298
|
}),
|
|
7299
7299
|
onPointerDown: F(e.onPointerDown, () => {
|
|
7300
|
-
o.open && o.onClose(),
|
|
7300
|
+
o.open && o.onClose(), p.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
7301
7301
|
}),
|
|
7302
7302
|
onFocus: F(e.onFocus, () => {
|
|
7303
|
-
|
|
7303
|
+
p.current || o.onOpen();
|
|
7304
7304
|
}),
|
|
7305
7305
|
onBlur: F(e.onBlur, o.onClose),
|
|
7306
7306
|
onClick: F(e.onClick, o.onClose)
|
|
@@ -7317,14 +7317,14 @@ var Vf = "TooltipPortal", [R0, Hf] = mn(Vf, {
|
|
|
7317
7317
|
return /* @__PURE__ */ l.jsx(Fe, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ l.jsx(Da, { side: o, ...s, ref: t }) : /* @__PURE__ */ l.jsx(zf, { side: o, ...s, ref: t }) });
|
|
7318
7318
|
}
|
|
7319
7319
|
), zf = u.forwardRef((e, t) => {
|
|
7320
|
-
const n = gn(ct, e.__scopeTooltip), r = Pr(ct, e.__scopeTooltip), o = u.useRef(null), s = ae(t, o), [a, i] = u.useState(null), { trigger: c, onClose:
|
|
7321
|
-
i(null),
|
|
7322
|
-
}, [
|
|
7320
|
+
const n = gn(ct, e.__scopeTooltip), r = Pr(ct, e.__scopeTooltip), o = u.useRef(null), s = ae(t, o), [a, i] = u.useState(null), { trigger: c, onClose: p } = n, d = o.current, { onPointerInTransitChange: f } = r, m = u.useCallback(() => {
|
|
7321
|
+
i(null), f(!1);
|
|
7322
|
+
}, [f]), h = u.useCallback(
|
|
7323
7323
|
(b, g) => {
|
|
7324
7324
|
const x = b.currentTarget, v = { x: b.clientX, y: b.clientY }, w = Kf(v, x.getBoundingClientRect()), E = Yf(v, w), S = qf(g.getBoundingClientRect()), R = Zf([...E, ...S]);
|
|
7325
|
-
i(R),
|
|
7325
|
+
i(R), f(!0);
|
|
7326
7326
|
},
|
|
7327
|
-
[
|
|
7327
|
+
[f]
|
|
7328
7328
|
);
|
|
7329
7329
|
return u.useEffect(() => () => m(), [m]), u.useEffect(() => {
|
|
7330
7330
|
if (c && d) {
|
|
@@ -7337,11 +7337,11 @@ var Vf = "TooltipPortal", [R0, Hf] = mn(Vf, {
|
|
|
7337
7337
|
if (a) {
|
|
7338
7338
|
const b = (g) => {
|
|
7339
7339
|
const x = g.target, v = { x: g.clientX, y: g.clientY }, w = (c == null ? void 0 : c.contains(x)) || (d == null ? void 0 : d.contains(x)), E = !Xf(v, a);
|
|
7340
|
-
w ? m() : E && (m(),
|
|
7340
|
+
w ? m() : E && (m(), p());
|
|
7341
7341
|
};
|
|
7342
7342
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
7343
7343
|
}
|
|
7344
|
-
}, [c, d, a,
|
|
7344
|
+
}, [c, d, a, p, m]), /* @__PURE__ */ l.jsx(Da, { ...e, ref: s });
|
|
7345
7345
|
}), [Wf, Bf] = mn(yt, { isInside: !1 }), Gf = /* @__PURE__ */ cl("TooltipContent"), Da = u.forwardRef(
|
|
7346
7346
|
(e, t) => {
|
|
7347
7347
|
const {
|
|
@@ -7351,14 +7351,14 @@ var Vf = "TooltipPortal", [R0, Hf] = mn(Vf, {
|
|
|
7351
7351
|
onEscapeKeyDown: s,
|
|
7352
7352
|
onPointerDownOutside: a,
|
|
7353
7353
|
...i
|
|
7354
|
-
} = e, c = gn(ct, n),
|
|
7354
|
+
} = e, c = gn(ct, n), p = hn(n), { onClose: d } = c;
|
|
7355
7355
|
return u.useEffect(() => (document.addEventListener(sr, d), () => document.removeEventListener(sr, d)), [d]), u.useEffect(() => {
|
|
7356
7356
|
if (c.trigger) {
|
|
7357
|
-
const
|
|
7357
|
+
const f = (m) => {
|
|
7358
7358
|
const h = m.target;
|
|
7359
7359
|
h != null && h.contains(c.trigger) && d();
|
|
7360
7360
|
};
|
|
7361
|
-
return window.addEventListener("scroll",
|
|
7361
|
+
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
7362
7362
|
}
|
|
7363
7363
|
}, [c.trigger, d]), /* @__PURE__ */ l.jsx(
|
|
7364
7364
|
an,
|
|
@@ -7367,13 +7367,13 @@ var Vf = "TooltipPortal", [R0, Hf] = mn(Vf, {
|
|
|
7367
7367
|
disableOutsidePointerEvents: !1,
|
|
7368
7368
|
onEscapeKeyDown: s,
|
|
7369
7369
|
onPointerDownOutside: a,
|
|
7370
|
-
onFocusOutside: (
|
|
7370
|
+
onFocusOutside: (f) => f.preventDefault(),
|
|
7371
7371
|
onDismiss: d,
|
|
7372
7372
|
children: /* @__PURE__ */ l.jsxs(
|
|
7373
7373
|
_a,
|
|
7374
7374
|
{
|
|
7375
7375
|
"data-state": c.stateAttribute,
|
|
7376
|
-
...
|
|
7376
|
+
...p,
|
|
7377
7377
|
...i,
|
|
7378
7378
|
ref: t,
|
|
7379
7379
|
style: {
|
|
@@ -7463,8 +7463,8 @@ function Xf(e, t) {
|
|
|
7463
7463
|
const { x: n, y: r } = e;
|
|
7464
7464
|
let o = !1;
|
|
7465
7465
|
for (let s = 0, a = t.length - 1; s < t.length; a = s++) {
|
|
7466
|
-
const i = t[s], c = t[a],
|
|
7467
|
-
d > r != m > r && n < (
|
|
7466
|
+
const i = t[s], c = t[a], p = i.x, d = i.y, f = c.x, m = c.y;
|
|
7467
|
+
d > r != m > r && n < (f - p) * (r - d) / (m - d) + p && (o = !o);
|
|
7468
7468
|
}
|
|
7469
7469
|
return o;
|
|
7470
7470
|
}
|
|
@@ -7497,13 +7497,13 @@ function Jf(e) {
|
|
|
7497
7497
|
}
|
|
7498
7498
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
7499
7499
|
}
|
|
7500
|
-
var Qf =
|
|
7500
|
+
var Qf = Ta, ep = ka, tp = Oa, ja = Pa;
|
|
7501
7501
|
const La = Qf, Fa = ep, $a = tp, Dr = u.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ l.jsx(
|
|
7502
7502
|
ja,
|
|
7503
7503
|
{
|
|
7504
7504
|
ref: r,
|
|
7505
7505
|
sideOffset: t,
|
|
7506
|
-
className:
|
|
7506
|
+
className: T(
|
|
7507
7507
|
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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",
|
|
7508
7508
|
e
|
|
7509
7509
|
),
|
|
@@ -7527,13 +7527,13 @@ function cp({
|
|
|
7527
7527
|
children: s,
|
|
7528
7528
|
...a
|
|
7529
7529
|
}) {
|
|
7530
|
-
const i = Kl(), [c,
|
|
7530
|
+
const i = Kl(), [c, p] = u.useState(!1), [d, f] = u.useState(e), m = t ?? d, h = u.useCallback(
|
|
7531
7531
|
(v) => {
|
|
7532
7532
|
const w = typeof v == "function" ? v(m) : v;
|
|
7533
|
-
n ? n(w) :
|
|
7533
|
+
n ? n(w) : f(w), document.cookie = `${np}=${w}; path=/; max-age=${rp}`;
|
|
7534
7534
|
},
|
|
7535
7535
|
[n, m]
|
|
7536
|
-
), b = u.useCallback(() => i ?
|
|
7536
|
+
), b = u.useCallback(() => i ? p((v) => !v) : h((v) => !v), [i, h, p]);
|
|
7537
7537
|
u.useEffect(() => {
|
|
7538
7538
|
const v = (w) => {
|
|
7539
7539
|
w.key === ip && (w.metaKey || w.ctrlKey) && (w.preventDefault(), b());
|
|
@@ -7547,10 +7547,10 @@ function cp({
|
|
|
7547
7547
|
setOpen: h,
|
|
7548
7548
|
isMobile: i,
|
|
7549
7549
|
openMobile: c,
|
|
7550
|
-
setOpenMobile:
|
|
7550
|
+
setOpenMobile: p,
|
|
7551
7551
|
toggleSidebar: b
|
|
7552
7552
|
}),
|
|
7553
|
-
[g, m, h, i, c,
|
|
7553
|
+
[g, m, h, i, c, p, b]
|
|
7554
7554
|
);
|
|
7555
7555
|
return /* @__PURE__ */ l.jsx(Va.Provider, { value: x, children: /* @__PURE__ */ l.jsx(La, { delayDuration: 0, children: /* @__PURE__ */ l.jsx(
|
|
7556
7556
|
"div",
|
|
@@ -7561,7 +7561,7 @@ function cp({
|
|
|
7561
7561
|
"--sidebar-width-icon": ap,
|
|
7562
7562
|
...o
|
|
7563
7563
|
},
|
|
7564
|
-
className:
|
|
7564
|
+
className: T(
|
|
7565
7565
|
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
|
|
7566
7566
|
r
|
|
7567
7567
|
),
|
|
@@ -7578,19 +7578,19 @@ function lp({
|
|
|
7578
7578
|
children: o,
|
|
7579
7579
|
...s
|
|
7580
7580
|
}) {
|
|
7581
|
-
const { isMobile: a, state: i, openMobile: c, setOpenMobile:
|
|
7581
|
+
const { isMobile: a, state: i, openMobile: c, setOpenMobile: p } = vn();
|
|
7582
7582
|
return n === "none" ? /* @__PURE__ */ l.jsx(
|
|
7583
7583
|
"div",
|
|
7584
7584
|
{
|
|
7585
7585
|
"data-slot": "sidebar",
|
|
7586
|
-
className:
|
|
7586
|
+
className: T(
|
|
7587
7587
|
"bg-white text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
7588
7588
|
r
|
|
7589
7589
|
),
|
|
7590
7590
|
...s,
|
|
7591
7591
|
children: o
|
|
7592
7592
|
}
|
|
7593
|
-
) : a ? /* @__PURE__ */ l.jsx(yd, { open: c, onOpenChange:
|
|
7593
|
+
) : a ? /* @__PURE__ */ l.jsx(yd, { open: c, onOpenChange: p, ...s, children: /* @__PURE__ */ l.jsxs(
|
|
7594
7594
|
ta,
|
|
7595
7595
|
{
|
|
7596
7596
|
"data-sidebar": "sidebar",
|
|
@@ -7623,7 +7623,7 @@ function lp({
|
|
|
7623
7623
|
"div",
|
|
7624
7624
|
{
|
|
7625
7625
|
"data-slot": "sidebar-gap",
|
|
7626
|
-
className:
|
|
7626
|
+
className: T(
|
|
7627
7627
|
"relative w-(--sidebar-width) bg-white transition-[width] duration-200 ease-linear",
|
|
7628
7628
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
7629
7629
|
"group-data-[side=right]:rotate-180",
|
|
@@ -7635,7 +7635,7 @@ function lp({
|
|
|
7635
7635
|
"div",
|
|
7636
7636
|
{
|
|
7637
7637
|
"data-slot": "sidebar-container",
|
|
7638
|
-
className:
|
|
7638
|
+
className: T(
|
|
7639
7639
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
7640
7640
|
e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
7641
7641
|
// Adjust the padding for floating and inset variants.
|
|
@@ -7671,7 +7671,7 @@ function up({
|
|
|
7671
7671
|
"data-slot": "sidebar-trigger",
|
|
7672
7672
|
variant: "ghost",
|
|
7673
7673
|
size: "icon",
|
|
7674
|
-
className:
|
|
7674
|
+
className: T("size-7", e),
|
|
7675
7675
|
onClick: (o) => {
|
|
7676
7676
|
t == null || t(o), r();
|
|
7677
7677
|
},
|
|
@@ -7694,7 +7694,7 @@ function dp({ className: e, ...t }) {
|
|
|
7694
7694
|
tabIndex: -1,
|
|
7695
7695
|
onClick: n,
|
|
7696
7696
|
title: "Toggle Sidebar",
|
|
7697
|
-
className:
|
|
7697
|
+
className: T(
|
|
7698
7698
|
"hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
|
|
7699
7699
|
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
7700
7700
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -7712,7 +7712,7 @@ function fp({ className: e, ...t }) {
|
|
|
7712
7712
|
"main",
|
|
7713
7713
|
{
|
|
7714
7714
|
"data-slot": "sidebar-inset",
|
|
7715
|
-
className:
|
|
7715
|
+
className: T(
|
|
7716
7716
|
"bg-white relative flex w-full flex-1 flex-col",
|
|
7717
7717
|
"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
7718
7718
|
e
|
|
@@ -7730,7 +7730,7 @@ function _0({
|
|
|
7730
7730
|
{
|
|
7731
7731
|
"data-slot": "sidebar-input",
|
|
7732
7732
|
"data-sidebar": "input",
|
|
7733
|
-
className:
|
|
7733
|
+
className: T("bg-background h-8 w-full shadow-none", e),
|
|
7734
7734
|
...t
|
|
7735
7735
|
}
|
|
7736
7736
|
);
|
|
@@ -7741,7 +7741,7 @@ function pp({ className: e, ...t }) {
|
|
|
7741
7741
|
{
|
|
7742
7742
|
"data-slot": "sidebar-header",
|
|
7743
7743
|
"data-sidebar": "header",
|
|
7744
|
-
className:
|
|
7744
|
+
className: T("flex flex-col gap-2 p-2", e),
|
|
7745
7745
|
...t
|
|
7746
7746
|
}
|
|
7747
7747
|
);
|
|
@@ -7752,7 +7752,7 @@ function M0({ className: e, ...t }) {
|
|
|
7752
7752
|
{
|
|
7753
7753
|
"data-slot": "sidebar-footer",
|
|
7754
7754
|
"data-sidebar": "footer",
|
|
7755
|
-
className:
|
|
7755
|
+
className: T("flex flex-col gap-2 p-2", e),
|
|
7756
7756
|
...t
|
|
7757
7757
|
}
|
|
7758
7758
|
);
|
|
@@ -7766,7 +7766,7 @@ function A0({
|
|
|
7766
7766
|
{
|
|
7767
7767
|
"data-slot": "sidebar-separator",
|
|
7768
7768
|
"data-sidebar": "separator",
|
|
7769
|
-
className:
|
|
7769
|
+
className: T("bg-sidebar-border mx-2 w-auto", e),
|
|
7770
7770
|
...t
|
|
7771
7771
|
}
|
|
7772
7772
|
);
|
|
@@ -7777,7 +7777,7 @@ function mp({ className: e, ...t }) {
|
|
|
7777
7777
|
{
|
|
7778
7778
|
"data-slot": "sidebar-content",
|
|
7779
7779
|
"data-sidebar": "content",
|
|
7780
|
-
className:
|
|
7780
|
+
className: T(
|
|
7781
7781
|
"flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
7782
7782
|
e
|
|
7783
7783
|
),
|
|
@@ -7791,7 +7791,7 @@ function hp({ className: e, ...t }) {
|
|
|
7791
7791
|
{
|
|
7792
7792
|
"data-slot": "sidebar-group",
|
|
7793
7793
|
"data-sidebar": "group",
|
|
7794
|
-
className:
|
|
7794
|
+
className: T(
|
|
7795
7795
|
"relative flex w-full min-w-0 flex-col px-2 py-1",
|
|
7796
7796
|
e
|
|
7797
7797
|
),
|
|
@@ -7799,7 +7799,7 @@ function hp({ className: e, ...t }) {
|
|
|
7799
7799
|
}
|
|
7800
7800
|
);
|
|
7801
7801
|
}
|
|
7802
|
-
function
|
|
7802
|
+
function N0({
|
|
7803
7803
|
className: e,
|
|
7804
7804
|
asChild: t = !1,
|
|
7805
7805
|
...n
|
|
@@ -7810,7 +7810,7 @@ function T0({
|
|
|
7810
7810
|
{
|
|
7811
7811
|
"data-slot": "sidebar-group-label",
|
|
7812
7812
|
"data-sidebar": "group-label",
|
|
7813
|
-
className:
|
|
7813
|
+
className: T(
|
|
7814
7814
|
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
7815
7815
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
7816
7816
|
e
|
|
@@ -7819,7 +7819,7 @@ function T0({
|
|
|
7819
7819
|
}
|
|
7820
7820
|
);
|
|
7821
7821
|
}
|
|
7822
|
-
function
|
|
7822
|
+
function T0({
|
|
7823
7823
|
className: e,
|
|
7824
7824
|
asChild: t = !1,
|
|
7825
7825
|
...n
|
|
@@ -7830,7 +7830,7 @@ function k0({
|
|
|
7830
7830
|
{
|
|
7831
7831
|
"data-slot": "sidebar-group-action",
|
|
7832
7832
|
"data-sidebar": "group-action",
|
|
7833
|
-
className:
|
|
7833
|
+
className: T(
|
|
7834
7834
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
7835
7835
|
// Increases the hit area of the button on mobile.
|
|
7836
7836
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -7850,18 +7850,18 @@ function gp({
|
|
|
7850
7850
|
{
|
|
7851
7851
|
"data-slot": "sidebar-group-content",
|
|
7852
7852
|
"data-sidebar": "group-content",
|
|
7853
|
-
className:
|
|
7853
|
+
className: T("w-full text-sm", e),
|
|
7854
7854
|
...t
|
|
7855
7855
|
}
|
|
7856
7856
|
);
|
|
7857
7857
|
}
|
|
7858
|
-
function
|
|
7858
|
+
function k0({ className: e, ...t }) {
|
|
7859
7859
|
return /* @__PURE__ */ l.jsx(
|
|
7860
7860
|
"ul",
|
|
7861
7861
|
{
|
|
7862
7862
|
"data-slot": "sidebar-menu",
|
|
7863
7863
|
"data-sidebar": "menu",
|
|
7864
|
-
className:
|
|
7864
|
+
className: T("flex w-full min-w-0 flex-col gap-1", e),
|
|
7865
7865
|
...t
|
|
7866
7866
|
}
|
|
7867
7867
|
);
|
|
@@ -7872,7 +7872,7 @@ function O0({ className: e, ...t }) {
|
|
|
7872
7872
|
{
|
|
7873
7873
|
"data-slot": "sidebar-menu-item",
|
|
7874
7874
|
"data-sidebar": "menu-item",
|
|
7875
|
-
className:
|
|
7875
|
+
className: T("group/menu-item relative", e),
|
|
7876
7876
|
...t
|
|
7877
7877
|
}
|
|
7878
7878
|
);
|
|
@@ -7906,14 +7906,14 @@ function P0({
|
|
|
7906
7906
|
className: s,
|
|
7907
7907
|
...a
|
|
7908
7908
|
}) {
|
|
7909
|
-
const i = e ? lt : "button", { isMobile: c, state:
|
|
7909
|
+
const i = e ? lt : "button", { isMobile: c, state: p } = vn(), d = /* @__PURE__ */ l.jsx(
|
|
7910
7910
|
i,
|
|
7911
7911
|
{
|
|
7912
7912
|
"data-slot": "sidebar-menu-button",
|
|
7913
7913
|
"data-sidebar": "menu-button",
|
|
7914
7914
|
"data-size": r,
|
|
7915
7915
|
"data-active": t,
|
|
7916
|
-
className:
|
|
7916
|
+
className: T(vp({ variant: n, size: r }), s),
|
|
7917
7917
|
...a
|
|
7918
7918
|
}
|
|
7919
7919
|
);
|
|
@@ -7926,7 +7926,7 @@ function P0({
|
|
|
7926
7926
|
{
|
|
7927
7927
|
side: "right",
|
|
7928
7928
|
align: "center",
|
|
7929
|
-
hidden:
|
|
7929
|
+
hidden: p !== "collapsed" || c,
|
|
7930
7930
|
...o
|
|
7931
7931
|
}
|
|
7932
7932
|
)
|
|
@@ -7944,7 +7944,7 @@ function D0({
|
|
|
7944
7944
|
{
|
|
7945
7945
|
"data-slot": "sidebar-menu-action",
|
|
7946
7946
|
"data-sidebar": "menu-action",
|
|
7947
|
-
className:
|
|
7947
|
+
className: T(
|
|
7948
7948
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
7949
7949
|
// Increases the hit area of the button on mobile.
|
|
7950
7950
|
"after:absolute after:-inset-2 md:after:hidden",
|
|
@@ -7968,7 +7968,7 @@ function I0({
|
|
|
7968
7968
|
{
|
|
7969
7969
|
"data-slot": "sidebar-menu-badge",
|
|
7970
7970
|
"data-sidebar": "menu-badge",
|
|
7971
|
-
className:
|
|
7971
|
+
className: T(
|
|
7972
7972
|
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
|
|
7973
7973
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
7974
7974
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -7992,18 +7992,18 @@ function j0({
|
|
|
7992
7992
|
{
|
|
7993
7993
|
"data-slot": "sidebar-menu-skeleton",
|
|
7994
7994
|
"data-sidebar": "menu-skeleton",
|
|
7995
|
-
className:
|
|
7995
|
+
className: T("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
7996
7996
|
...n,
|
|
7997
7997
|
children: [
|
|
7998
7998
|
t && /* @__PURE__ */ l.jsx(
|
|
7999
|
-
|
|
7999
|
+
No,
|
|
8000
8000
|
{
|
|
8001
8001
|
className: "size-4 rounded-md",
|
|
8002
8002
|
"data-sidebar": "menu-skeleton-icon"
|
|
8003
8003
|
}
|
|
8004
8004
|
),
|
|
8005
8005
|
/* @__PURE__ */ l.jsx(
|
|
8006
|
-
|
|
8006
|
+
No,
|
|
8007
8007
|
{
|
|
8008
8008
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
8009
8009
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -8022,7 +8022,7 @@ function bp({ className: e, ...t }) {
|
|
|
8022
8022
|
{
|
|
8023
8023
|
"data-slot": "sidebar-menu-sub",
|
|
8024
8024
|
"data-sidebar": "menu-sub",
|
|
8025
|
-
className:
|
|
8025
|
+
className: T(
|
|
8026
8026
|
"border-sidebar-border mx-3 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
|
|
8027
8027
|
"group-data-[collapsible=icon]:hidden",
|
|
8028
8028
|
e
|
|
@@ -8040,7 +8040,7 @@ function xp({
|
|
|
8040
8040
|
{
|
|
8041
8041
|
"data-slot": "sidebar-menu-sub-item",
|
|
8042
8042
|
"data-sidebar": "menu-sub-item",
|
|
8043
|
-
className:
|
|
8043
|
+
className: T("group/menu-sub-item relative", e),
|
|
8044
8044
|
...t
|
|
8045
8045
|
}
|
|
8046
8046
|
);
|
|
@@ -8060,7 +8060,7 @@ function wp({
|
|
|
8060
8060
|
"data-sidebar": "menu-sub-button",
|
|
8061
8061
|
"data-size": t,
|
|
8062
8062
|
"data-active": n,
|
|
8063
|
-
className:
|
|
8063
|
+
className: T(
|
|
8064
8064
|
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
8065
8065
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
8066
8066
|
t === "sm" && "text-xs",
|
|
@@ -8079,23 +8079,38 @@ function yp({
|
|
|
8079
8079
|
defaultOpen: r = !1,
|
|
8080
8080
|
icon: o,
|
|
8081
8081
|
isActive: s = !1,
|
|
8082
|
-
className: a
|
|
8082
|
+
className: a,
|
|
8083
|
+
disabled: i = !1
|
|
8083
8084
|
}) {
|
|
8084
|
-
const [
|
|
8085
|
-
|
|
8086
|
-
s &&
|
|
8087
|
-
}, [s])
|
|
8085
|
+
const [c, p] = u.useState(r);
|
|
8086
|
+
u.useEffect(() => {
|
|
8087
|
+
s && p(!0);
|
|
8088
|
+
}, [s]);
|
|
8089
|
+
const d = !i && t;
|
|
8090
|
+
return /* @__PURE__ */ l.jsx(hp, { className: a, children: /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col", children: [
|
|
8088
8091
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-row items-center justify-between", children: [
|
|
8089
|
-
/* @__PURE__ */ l.jsxs(
|
|
8092
|
+
d ? /* @__PURE__ */ l.jsxs(
|
|
8090
8093
|
"a",
|
|
8091
8094
|
{
|
|
8092
8095
|
href: t,
|
|
8093
|
-
className:
|
|
8096
|
+
className: T(
|
|
8094
8097
|
"flex flex-1 cursor-pointer items-center gap-2 rounded-lg p-2 transition-colors hover:bg-gray-100"
|
|
8095
8098
|
),
|
|
8096
8099
|
children: [
|
|
8097
|
-
o && /* @__PURE__ */ l.jsx("span", { className:
|
|
8098
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
8100
|
+
o && /* @__PURE__ */ l.jsx("span", { className: T("text-gray-600"), children: o }),
|
|
8101
|
+
/* @__PURE__ */ l.jsx("span", { className: T("text-gray-600"), children: e })
|
|
8102
|
+
]
|
|
8103
|
+
}
|
|
8104
|
+
) : /* @__PURE__ */ l.jsxs(
|
|
8105
|
+
"div",
|
|
8106
|
+
{
|
|
8107
|
+
className: T(
|
|
8108
|
+
"flex flex-1 items-center gap-2 rounded-lg p-2",
|
|
8109
|
+
i && "cursor-default"
|
|
8110
|
+
),
|
|
8111
|
+
children: [
|
|
8112
|
+
o && /* @__PURE__ */ l.jsx("span", { className: T("text-gray-600"), children: o }),
|
|
8113
|
+
/* @__PURE__ */ l.jsx("span", { className: T("text-gray-600"), children: e })
|
|
8099
8114
|
]
|
|
8100
8115
|
}
|
|
8101
8116
|
),
|
|
@@ -8103,21 +8118,25 @@ function yp({
|
|
|
8103
8118
|
"button",
|
|
8104
8119
|
{
|
|
8105
8120
|
type: "button",
|
|
8106
|
-
className:
|
|
8121
|
+
className: T(
|
|
8122
|
+
"mr-3 rounded-lg p-2 text-gray-500",
|
|
8123
|
+
i ? "cursor-default opacity-50" : "hover:bg-gray-100 hover:text-gray-700"
|
|
8124
|
+
),
|
|
8107
8125
|
onClick: (f) => {
|
|
8108
|
-
f.preventDefault(), f.stopPropagation(),
|
|
8126
|
+
f.preventDefault(), f.stopPropagation(), i || p(!c);
|
|
8109
8127
|
},
|
|
8110
|
-
|
|
8111
|
-
|
|
8128
|
+
disabled: i,
|
|
8129
|
+
"aria-label": c ? "Collapse section" : "Expand section",
|
|
8130
|
+
children: c ? /* @__PURE__ */ l.jsx(Kc, { className: "h-4 w-4" }) : /* @__PURE__ */ l.jsx(ts, { className: "h-4 w-4" })
|
|
8112
8131
|
}
|
|
8113
8132
|
)
|
|
8114
8133
|
] }),
|
|
8115
8134
|
/* @__PURE__ */ l.jsx(
|
|
8116
8135
|
"div",
|
|
8117
8136
|
{
|
|
8118
|
-
className:
|
|
8137
|
+
className: T(
|
|
8119
8138
|
"overflow-hidden transition-all",
|
|
8120
|
-
i ? "max-h-96" : "max-h-0"
|
|
8139
|
+
c && !i ? "max-h-96" : "max-h-0"
|
|
8121
8140
|
),
|
|
8122
8141
|
children: n
|
|
8123
8142
|
}
|
|
@@ -8133,17 +8152,17 @@ function Ha(e) {
|
|
|
8133
8152
|
return /* @__PURE__ */ l.jsx(o, { scope: x, itemMap: E, collectionRef: w, children: v });
|
|
8134
8153
|
};
|
|
8135
8154
|
a.displayName = t;
|
|
8136
|
-
const i = e + "CollectionSlot", c = /* @__PURE__ */ at(i),
|
|
8155
|
+
const i = e + "CollectionSlot", c = /* @__PURE__ */ at(i), p = pe.forwardRef(
|
|
8137
8156
|
(g, x) => {
|
|
8138
8157
|
const { scope: v, children: w } = g, E = s(i, v), S = ae(x, E.collectionRef);
|
|
8139
8158
|
return /* @__PURE__ */ l.jsx(c, { ref: S, children: w });
|
|
8140
8159
|
}
|
|
8141
8160
|
);
|
|
8142
|
-
|
|
8143
|
-
const d = e + "CollectionItemSlot",
|
|
8161
|
+
p.displayName = i;
|
|
8162
|
+
const d = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ at(d), h = pe.forwardRef(
|
|
8144
8163
|
(g, x) => {
|
|
8145
8164
|
const { scope: v, children: w, ...E } = g, S = pe.useRef(null), R = ae(x, S), A = s(d, v);
|
|
8146
|
-
return pe.useEffect(() => (A.itemMap.set(S, { ref: S, ...E }), () => void A.itemMap.delete(S))), /* @__PURE__ */ l.jsx(m, { [
|
|
8165
|
+
return pe.useEffect(() => (A.itemMap.set(S, { ref: S, ...E }), () => void A.itemMap.delete(S))), /* @__PURE__ */ l.jsx(m, { [f]: "", ref: R, children: w });
|
|
8147
8166
|
}
|
|
8148
8167
|
);
|
|
8149
8168
|
h.displayName = d;
|
|
@@ -8152,14 +8171,14 @@ function Ha(e) {
|
|
|
8152
8171
|
return pe.useCallback(() => {
|
|
8153
8172
|
const w = x.collectionRef.current;
|
|
8154
8173
|
if (!w) return [];
|
|
8155
|
-
const E = Array.from(w.querySelectorAll(`[${
|
|
8174
|
+
const E = Array.from(w.querySelectorAll(`[${f}]`));
|
|
8156
8175
|
return Array.from(x.itemMap.values()).sort(
|
|
8157
8176
|
(A, M) => E.indexOf(A.ref.current) - E.indexOf(M.ref.current)
|
|
8158
8177
|
);
|
|
8159
8178
|
}, [x.collectionRef, x.itemMap]);
|
|
8160
8179
|
}
|
|
8161
8180
|
return [
|
|
8162
|
-
{ Provider: a, Slot:
|
|
8181
|
+
{ Provider: a, Slot: p, ItemSlot: h },
|
|
8163
8182
|
b,
|
|
8164
8183
|
r
|
|
8165
8184
|
];
|
|
@@ -8185,15 +8204,15 @@ var Ap = u.forwardRef((e, t) => {
|
|
|
8185
8204
|
currentTabStopId: a,
|
|
8186
8205
|
defaultCurrentTabStopId: i,
|
|
8187
8206
|
onCurrentTabStopIdChange: c,
|
|
8188
|
-
onEntryFocus:
|
|
8207
|
+
onEntryFocus: p,
|
|
8189
8208
|
preventScrollOnEntryFocus: d = !1,
|
|
8190
|
-
...
|
|
8209
|
+
...f
|
|
8191
8210
|
} = e, m = u.useRef(null), h = ae(t, m), b = za(s), [g, x] = Rt({
|
|
8192
8211
|
prop: a,
|
|
8193
8212
|
defaultProp: i ?? null,
|
|
8194
8213
|
onChange: c,
|
|
8195
8214
|
caller: Mt
|
|
8196
|
-
}), [v, w] = u.useState(!1), E = Me(
|
|
8215
|
+
}), [v, w] = u.useState(!1), E = Me(p), S = Wa(n), R = u.useRef(!1), [A, M] = u.useState(0);
|
|
8197
8216
|
return u.useEffect(() => {
|
|
8198
8217
|
const C = m.current;
|
|
8199
8218
|
if (C)
|
|
@@ -8224,7 +8243,7 @@ var Ap = u.forwardRef((e, t) => {
|
|
|
8224
8243
|
{
|
|
8225
8244
|
tabIndex: v || A === 0 ? -1 : 0,
|
|
8226
8245
|
"data-orientation": r,
|
|
8227
|
-
...
|
|
8246
|
+
...f,
|
|
8228
8247
|
ref: h,
|
|
8229
8248
|
style: { outline: "none", ...e.style },
|
|
8230
8249
|
onMouseDown: F(e.onMouseDown, () => {
|
|
@@ -8257,7 +8276,7 @@ var Ap = u.forwardRef((e, t) => {
|
|
|
8257
8276
|
tabStopId: s,
|
|
8258
8277
|
children: a,
|
|
8259
8278
|
...i
|
|
8260
|
-
} = e, c = De(),
|
|
8279
|
+
} = e, c = De(), p = s || c, d = Mp(Ua, n), f = d.currentTabStopId === p, m = Wa(n), { onFocusableItemAdd: h, onFocusableItemRemove: b, currentTabStopId: g } = d;
|
|
8261
8280
|
return u.useEffect(() => {
|
|
8262
8281
|
if (r)
|
|
8263
8282
|
return h(), () => b();
|
|
@@ -8265,27 +8284,27 @@ var Ap = u.forwardRef((e, t) => {
|
|
|
8265
8284
|
ir.ItemSlot,
|
|
8266
8285
|
{
|
|
8267
8286
|
scope: n,
|
|
8268
|
-
id:
|
|
8287
|
+
id: p,
|
|
8269
8288
|
focusable: r,
|
|
8270
8289
|
active: o,
|
|
8271
8290
|
children: /* @__PURE__ */ l.jsx(
|
|
8272
8291
|
ne.span,
|
|
8273
8292
|
{
|
|
8274
|
-
tabIndex:
|
|
8293
|
+
tabIndex: f ? 0 : -1,
|
|
8275
8294
|
"data-orientation": d.orientation,
|
|
8276
8295
|
...i,
|
|
8277
8296
|
ref: t,
|
|
8278
8297
|
onMouseDown: F(e.onMouseDown, (x) => {
|
|
8279
|
-
r ? d.onItemFocus(
|
|
8298
|
+
r ? d.onItemFocus(p) : x.preventDefault();
|
|
8280
8299
|
}),
|
|
8281
|
-
onFocus: F(e.onFocus, () => d.onItemFocus(
|
|
8300
|
+
onFocus: F(e.onFocus, () => d.onItemFocus(p)),
|
|
8282
8301
|
onKeyDown: F(e.onKeyDown, (x) => {
|
|
8283
8302
|
if (x.key === "Tab" && x.shiftKey) {
|
|
8284
8303
|
d.onItemShiftTab();
|
|
8285
8304
|
return;
|
|
8286
8305
|
}
|
|
8287
8306
|
if (x.target !== x.currentTarget) return;
|
|
8288
|
-
const v =
|
|
8307
|
+
const v = kp(x, d.orientation, d.dir);
|
|
8289
8308
|
if (v !== void 0) {
|
|
8290
8309
|
if (x.metaKey || x.ctrlKey || x.altKey || x.shiftKey) return;
|
|
8291
8310
|
x.preventDefault();
|
|
@@ -8299,7 +8318,7 @@ var Ap = u.forwardRef((e, t) => {
|
|
|
8299
8318
|
setTimeout(() => Ya(E));
|
|
8300
8319
|
}
|
|
8301
8320
|
}),
|
|
8302
|
-
children: typeof a == "function" ? a({ isCurrentTabStop:
|
|
8321
|
+
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: g != null }) : a
|
|
8303
8322
|
}
|
|
8304
8323
|
)
|
|
8305
8324
|
}
|
|
@@ -8307,7 +8326,7 @@ var Ap = u.forwardRef((e, t) => {
|
|
|
8307
8326
|
}
|
|
8308
8327
|
);
|
|
8309
8328
|
Ka.displayName = Ua;
|
|
8310
|
-
var
|
|
8329
|
+
var Np = {
|
|
8311
8330
|
ArrowLeft: "prev",
|
|
8312
8331
|
ArrowUp: "prev",
|
|
8313
8332
|
ArrowRight: "next",
|
|
@@ -8317,13 +8336,13 @@ var Tp = {
|
|
|
8317
8336
|
PageDown: "last",
|
|
8318
8337
|
End: "last"
|
|
8319
8338
|
};
|
|
8320
|
-
function
|
|
8339
|
+
function Tp(e, t) {
|
|
8321
8340
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
8322
8341
|
}
|
|
8323
|
-
function
|
|
8324
|
-
const r =
|
|
8342
|
+
function kp(e, t, n) {
|
|
8343
|
+
const r = Tp(e.key, n);
|
|
8325
8344
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
8326
|
-
return
|
|
8345
|
+
return Np[r];
|
|
8327
8346
|
}
|
|
8328
8347
|
function Ya(e, t = !1) {
|
|
8329
8348
|
const n = document.activeElement;
|
|
@@ -8343,8 +8362,8 @@ var Pp = Ga, Dp = Ka, cr = ["Enter", " "], Ip = ["ArrowDown", "PageUp", "Home"],
|
|
|
8343
8362
|
Vp,
|
|
8344
8363
|
pn,
|
|
8345
8364
|
Ba
|
|
8346
|
-
]),
|
|
8347
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i =
|
|
8365
|
+
]), Nt = pn(), Za = Ba(), [Ja, Ye] = Qe(At), [Hp, Tt] = Qe(At), Qa = (e) => {
|
|
8366
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Nt(t), [c, p] = u.useState(null), d = u.useRef(!1), f = Me(s), m = za(o);
|
|
8348
8367
|
return u.useEffect(() => {
|
|
8349
8368
|
const h = () => {
|
|
8350
8369
|
d.current = !0, document.addEventListener("pointerdown", b, { capture: !0, once: !0 }), document.addEventListener("pointermove", b, { capture: !0, once: !0 });
|
|
@@ -8357,14 +8376,14 @@ var Pp = Ga, Dp = Ka, cr = ["Enter", " "], Ip = ["ArrowDown", "PageUp", "Home"],
|
|
|
8357
8376
|
{
|
|
8358
8377
|
scope: t,
|
|
8359
8378
|
open: n,
|
|
8360
|
-
onOpenChange:
|
|
8379
|
+
onOpenChange: f,
|
|
8361
8380
|
content: c,
|
|
8362
|
-
onContentChange:
|
|
8381
|
+
onContentChange: p,
|
|
8363
8382
|
children: /* @__PURE__ */ l.jsx(
|
|
8364
8383
|
Hp,
|
|
8365
8384
|
{
|
|
8366
8385
|
scope: t,
|
|
8367
|
-
onClose: u.useCallback(() =>
|
|
8386
|
+
onClose: u.useCallback(() => f(!1), [f]),
|
|
8368
8387
|
isUsingKeyboardRef: d,
|
|
8369
8388
|
dir: m,
|
|
8370
8389
|
modal: a,
|
|
@@ -8377,7 +8396,7 @@ var Pp = Ga, Dp = Ka, cr = ["Enter", " "], Ip = ["ArrowDown", "PageUp", "Home"],
|
|
|
8377
8396
|
Qa.displayName = At;
|
|
8378
8397
|
var zp = "MenuAnchor", Ir = u.forwardRef(
|
|
8379
8398
|
(e, t) => {
|
|
8380
|
-
const { __scopeMenu: n, ...r } = e, o =
|
|
8399
|
+
const { __scopeMenu: n, ...r } = e, o = Nt(n);
|
|
8381
8400
|
return /* @__PURE__ */ l.jsx(Ra, { ...o, ...r, ref: t });
|
|
8382
8401
|
}
|
|
8383
8402
|
);
|
|
@@ -8391,7 +8410,7 @@ var jr = "MenuPortal", [Wp, ei] = Qe(jr, {
|
|
|
8391
8410
|
ti.displayName = jr;
|
|
8392
8411
|
var be = "MenuContent", [Bp, Lr] = Qe(be), ni = u.forwardRef(
|
|
8393
8412
|
(e, t) => {
|
|
8394
|
-
const n = ei(be, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Ye(be, e.__scopeMenu), a =
|
|
8413
|
+
const n = ei(be, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Ye(be, e.__scopeMenu), a = Tt(be, e.__scopeMenu);
|
|
8395
8414
|
return /* @__PURE__ */ l.jsx(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l.jsx(Fe, { present: r || s.open, children: /* @__PURE__ */ l.jsx(Ct.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ l.jsx(Gp, { ...o, ref: t }) : /* @__PURE__ */ l.jsx(Up, { ...o, ref: t }) }) }) });
|
|
8396
8415
|
}
|
|
8397
8416
|
), Gp = u.forwardRef(
|
|
@@ -8440,24 +8459,24 @@ var be = "MenuContent", [Bp, Lr] = Qe(be), ni = u.forwardRef(
|
|
|
8440
8459
|
onCloseAutoFocus: a,
|
|
8441
8460
|
disableOutsidePointerEvents: i,
|
|
8442
8461
|
onEntryFocus: c,
|
|
8443
|
-
onEscapeKeyDown:
|
|
8462
|
+
onEscapeKeyDown: p,
|
|
8444
8463
|
onPointerDownOutside: d,
|
|
8445
|
-
onFocusOutside:
|
|
8464
|
+
onFocusOutside: f,
|
|
8446
8465
|
onInteractOutside: m,
|
|
8447
8466
|
onDismiss: h,
|
|
8448
8467
|
disableOutsideScroll: b,
|
|
8449
8468
|
...g
|
|
8450
|
-
} = e, x = Ye(be, n), v =
|
|
8469
|
+
} = e, x = Ye(be, n), v = Tt(be, n), w = Nt(n), E = Za(n), S = $p(n), [R, A] = u.useState(null), M = u.useRef(null), C = ae(t, M, x.onContentChange), D = u.useRef(0), I = u.useRef(""), B = u.useRef(0), W = u.useRef(null), V = u.useRef("right"), H = u.useRef(0), Y = b ? xr : u.Fragment, L = b ? { as: Kp, allowPinchZoom: !0 } : void 0, G = (N) => {
|
|
8451
8470
|
var U, J;
|
|
8452
|
-
const y = I.current +
|
|
8471
|
+
const y = I.current + N, k = S().filter((Q) => !Q.disabled), j = document.activeElement, $ = (U = k.find((Q) => Q.ref.current === j)) == null ? void 0 : U.textValue, q = k.map((Q) => Q.textValue), ee = sm(q, y, $), ce = (J = k.find((Q) => Q.textValue === ee)) == null ? void 0 : J.ref.current;
|
|
8453
8472
|
(function Q(oe) {
|
|
8454
8473
|
I.current = oe, window.clearTimeout(D.current), oe !== "" && (D.current = window.setTimeout(() => Q(""), 1e3));
|
|
8455
8474
|
})(y), ce && setTimeout(() => ce.focus());
|
|
8456
8475
|
};
|
|
8457
8476
|
u.useEffect(() => () => window.clearTimeout(D.current), []), Es();
|
|
8458
|
-
const _ = u.useCallback((
|
|
8477
|
+
const _ = u.useCallback((N) => {
|
|
8459
8478
|
var k, j;
|
|
8460
|
-
return V.current === ((k = W.current) == null ? void 0 : k.side) && im(
|
|
8479
|
+
return V.current === ((k = W.current) == null ? void 0 : k.side) && im(N, (j = W.current) == null ? void 0 : j.area);
|
|
8461
8480
|
}, []);
|
|
8462
8481
|
return /* @__PURE__ */ l.jsx(
|
|
8463
8482
|
Bp,
|
|
@@ -8465,36 +8484,36 @@ var be = "MenuContent", [Bp, Lr] = Qe(be), ni = u.forwardRef(
|
|
|
8465
8484
|
scope: n,
|
|
8466
8485
|
searchRef: I,
|
|
8467
8486
|
onItemEnter: u.useCallback(
|
|
8468
|
-
(
|
|
8469
|
-
_(
|
|
8487
|
+
(N) => {
|
|
8488
|
+
_(N) && N.preventDefault();
|
|
8470
8489
|
},
|
|
8471
8490
|
[_]
|
|
8472
8491
|
),
|
|
8473
8492
|
onItemLeave: u.useCallback(
|
|
8474
|
-
(
|
|
8493
|
+
(N) => {
|
|
8475
8494
|
var y;
|
|
8476
|
-
_(
|
|
8495
|
+
_(N) || ((y = M.current) == null || y.focus(), A(null));
|
|
8477
8496
|
},
|
|
8478
8497
|
[_]
|
|
8479
8498
|
),
|
|
8480
8499
|
onTriggerLeave: u.useCallback(
|
|
8481
|
-
(
|
|
8482
|
-
_(
|
|
8500
|
+
(N) => {
|
|
8501
|
+
_(N) && N.preventDefault();
|
|
8483
8502
|
},
|
|
8484
8503
|
[_]
|
|
8485
8504
|
),
|
|
8486
8505
|
pointerGraceTimerRef: B,
|
|
8487
|
-
onPointerGraceIntentChange: u.useCallback((
|
|
8488
|
-
W.current =
|
|
8506
|
+
onPointerGraceIntentChange: u.useCallback((N) => {
|
|
8507
|
+
W.current = N;
|
|
8489
8508
|
}, []),
|
|
8490
8509
|
children: /* @__PURE__ */ l.jsx(Y, { ...L, children: /* @__PURE__ */ l.jsx(
|
|
8491
8510
|
vr,
|
|
8492
8511
|
{
|
|
8493
8512
|
asChild: !0,
|
|
8494
8513
|
trapped: o,
|
|
8495
|
-
onMountAutoFocus: F(s, (
|
|
8514
|
+
onMountAutoFocus: F(s, (N) => {
|
|
8496
8515
|
var y;
|
|
8497
|
-
|
|
8516
|
+
N.preventDefault(), (y = M.current) == null || y.focus({ preventScroll: !0 });
|
|
8498
8517
|
}),
|
|
8499
8518
|
onUnmountAutoFocus: a,
|
|
8500
8519
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -8502,9 +8521,9 @@ var be = "MenuContent", [Bp, Lr] = Qe(be), ni = u.forwardRef(
|
|
|
8502
8521
|
{
|
|
8503
8522
|
asChild: !0,
|
|
8504
8523
|
disableOutsidePointerEvents: i,
|
|
8505
|
-
onEscapeKeyDown:
|
|
8524
|
+
onEscapeKeyDown: p,
|
|
8506
8525
|
onPointerDownOutside: d,
|
|
8507
|
-
onFocusOutside:
|
|
8526
|
+
onFocusOutside: f,
|
|
8508
8527
|
onInteractOutside: m,
|
|
8509
8528
|
onDismiss: h,
|
|
8510
8529
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -8517,8 +8536,8 @@ var be = "MenuContent", [Bp, Lr] = Qe(be), ni = u.forwardRef(
|
|
|
8517
8536
|
loop: r,
|
|
8518
8537
|
currentTabStopId: R,
|
|
8519
8538
|
onCurrentTabStopIdChange: A,
|
|
8520
|
-
onEntryFocus: F(c, (
|
|
8521
|
-
v.isUsingKeyboardRef.current ||
|
|
8539
|
+
onEntryFocus: F(c, (N) => {
|
|
8540
|
+
v.isUsingKeyboardRef.current || N.preventDefault();
|
|
8522
8541
|
}),
|
|
8523
8542
|
preventScrollOnEntryFocus: !0,
|
|
8524
8543
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -8533,25 +8552,25 @@ var be = "MenuContent", [Bp, Lr] = Qe(be), ni = u.forwardRef(
|
|
|
8533
8552
|
...g,
|
|
8534
8553
|
ref: C,
|
|
8535
8554
|
style: { outline: "none", ...g.style },
|
|
8536
|
-
onKeyDown: F(g.onKeyDown, (
|
|
8537
|
-
const k =
|
|
8538
|
-
k && (
|
|
8555
|
+
onKeyDown: F(g.onKeyDown, (N) => {
|
|
8556
|
+
const k = N.target.closest("[data-radix-menu-content]") === N.currentTarget, j = N.ctrlKey || N.altKey || N.metaKey, $ = N.key.length === 1;
|
|
8557
|
+
k && (N.key === "Tab" && N.preventDefault(), !j && $ && G(N.key));
|
|
8539
8558
|
const q = M.current;
|
|
8540
|
-
if (
|
|
8541
|
-
|
|
8559
|
+
if (N.target !== q || !jp.includes(N.key)) return;
|
|
8560
|
+
N.preventDefault();
|
|
8542
8561
|
const ce = S().filter((U) => !U.disabled).map((U) => U.ref.current);
|
|
8543
|
-
qa.includes(
|
|
8562
|
+
qa.includes(N.key) && ce.reverse(), rm(ce);
|
|
8544
8563
|
}),
|
|
8545
|
-
onBlur: F(e.onBlur, (
|
|
8546
|
-
|
|
8564
|
+
onBlur: F(e.onBlur, (N) => {
|
|
8565
|
+
N.currentTarget.contains(N.target) || (window.clearTimeout(D.current), I.current = "");
|
|
8547
8566
|
}),
|
|
8548
8567
|
onPointerMove: F(
|
|
8549
8568
|
e.onPointerMove,
|
|
8550
|
-
Et((
|
|
8551
|
-
const y =
|
|
8552
|
-
if (
|
|
8553
|
-
const j =
|
|
8554
|
-
V.current = j, H.current =
|
|
8569
|
+
Et((N) => {
|
|
8570
|
+
const y = N.target, k = H.current !== N.clientX;
|
|
8571
|
+
if (N.currentTarget.contains(y) && k) {
|
|
8572
|
+
const j = N.clientX > H.current ? "right" : "left";
|
|
8573
|
+
V.current = j, H.current = N.clientX;
|
|
8555
8574
|
}
|
|
8556
8575
|
})
|
|
8557
8576
|
)
|
|
@@ -8584,11 +8603,11 @@ var qp = "MenuLabel", ri = u.forwardRef(
|
|
|
8584
8603
|
ri.displayName = qp;
|
|
8585
8604
|
var tn = "MenuItem", Fo = "menu.itemSelect", bn = u.forwardRef(
|
|
8586
8605
|
(e, t) => {
|
|
8587
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = u.useRef(null), a =
|
|
8588
|
-
const
|
|
8589
|
-
if (!n &&
|
|
8606
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = u.useRef(null), a = Tt(tn, e.__scopeMenu), i = Lr(tn, e.__scopeMenu), c = ae(t, s), p = u.useRef(!1), d = () => {
|
|
8607
|
+
const f = s.current;
|
|
8608
|
+
if (!n && f) {
|
|
8590
8609
|
const m = new CustomEvent(Fo, { bubbles: !0, cancelable: !0 });
|
|
8591
|
-
|
|
8610
|
+
f.addEventListener(Fo, (h) => r == null ? void 0 : r(h), { once: !0 }), vs(f, m), m.defaultPrevented ? p.current = !1 : a.onClose();
|
|
8592
8611
|
}
|
|
8593
8612
|
};
|
|
8594
8613
|
return /* @__PURE__ */ l.jsx(
|
|
@@ -8598,17 +8617,17 @@ var tn = "MenuItem", Fo = "menu.itemSelect", bn = u.forwardRef(
|
|
|
8598
8617
|
ref: c,
|
|
8599
8618
|
disabled: n,
|
|
8600
8619
|
onClick: F(e.onClick, d),
|
|
8601
|
-
onPointerDown: (
|
|
8620
|
+
onPointerDown: (f) => {
|
|
8602
8621
|
var m;
|
|
8603
|
-
(m = e.onPointerDown) == null || m.call(e,
|
|
8622
|
+
(m = e.onPointerDown) == null || m.call(e, f), p.current = !0;
|
|
8604
8623
|
},
|
|
8605
|
-
onPointerUp: F(e.onPointerUp, (
|
|
8624
|
+
onPointerUp: F(e.onPointerUp, (f) => {
|
|
8606
8625
|
var m;
|
|
8607
|
-
|
|
8626
|
+
p.current || (m = f.currentTarget) == null || m.click();
|
|
8608
8627
|
}),
|
|
8609
|
-
onKeyDown: F(e.onKeyDown, (
|
|
8628
|
+
onKeyDown: F(e.onKeyDown, (f) => {
|
|
8610
8629
|
const m = i.searchRef.current !== "";
|
|
8611
|
-
n || m &&
|
|
8630
|
+
n || m && f.key === " " || cr.includes(f.key) && (f.currentTarget.click(), f.preventDefault());
|
|
8612
8631
|
})
|
|
8613
8632
|
}
|
|
8614
8633
|
);
|
|
@@ -8617,7 +8636,7 @@ var tn = "MenuItem", Fo = "menu.itemSelect", bn = u.forwardRef(
|
|
|
8617
8636
|
bn.displayName = tn;
|
|
8618
8637
|
var oi = u.forwardRef(
|
|
8619
8638
|
(e, t) => {
|
|
8620
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = Lr(tn, n), i = Za(n), c = u.useRef(null),
|
|
8639
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = Lr(tn, n), i = Za(n), c = u.useRef(null), p = ae(t, c), [d, f] = u.useState(!1), [m, h] = u.useState("");
|
|
8621
8640
|
return u.useEffect(() => {
|
|
8622
8641
|
const b = c.current;
|
|
8623
8642
|
b && h((b.textContent ?? "").trim());
|
|
@@ -8635,7 +8654,7 @@ var oi = u.forwardRef(
|
|
|
8635
8654
|
"aria-disabled": r || void 0,
|
|
8636
8655
|
"data-disabled": r ? "" : void 0,
|
|
8637
8656
|
...s,
|
|
8638
|
-
ref:
|
|
8657
|
+
ref: p,
|
|
8639
8658
|
onPointerMove: F(
|
|
8640
8659
|
e.onPointerMove,
|
|
8641
8660
|
Et((b) => {
|
|
@@ -8646,8 +8665,8 @@ var oi = u.forwardRef(
|
|
|
8646
8665
|
e.onPointerLeave,
|
|
8647
8666
|
Et((b) => a.onItemLeave(b))
|
|
8648
8667
|
),
|
|
8649
|
-
onFocus: F(e.onFocus, () =>
|
|
8650
|
-
onBlur: F(e.onBlur, () =>
|
|
8668
|
+
onFocus: F(e.onFocus, () => f(!0)),
|
|
8669
|
+
onBlur: F(e.onBlur, () => f(!1))
|
|
8651
8670
|
}
|
|
8652
8671
|
) })
|
|
8653
8672
|
}
|
|
@@ -8749,20 +8768,20 @@ var em = "MenuSeparator", fi = u.forwardRef(
|
|
|
8749
8768
|
fi.displayName = em;
|
|
8750
8769
|
var tm = "MenuArrow", pi = u.forwardRef(
|
|
8751
8770
|
(e, t) => {
|
|
8752
|
-
const { __scopeMenu: n, ...r } = e, o =
|
|
8771
|
+
const { __scopeMenu: n, ...r } = e, o = Nt(n);
|
|
8753
8772
|
return /* @__PURE__ */ l.jsx(Ma, { ...o, ...r, ref: t });
|
|
8754
8773
|
}
|
|
8755
8774
|
);
|
|
8756
8775
|
pi.displayName = tm;
|
|
8757
8776
|
var Hr = "MenuSub", [nm, mi] = Qe(Hr), hi = (e) => {
|
|
8758
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Ye(Hr, t), a =
|
|
8759
|
-
return u.useEffect(() => (s.open === !1 &&
|
|
8777
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Ye(Hr, t), a = Nt(t), [i, c] = u.useState(null), [p, d] = u.useState(null), f = Me(o);
|
|
8778
|
+
return u.useEffect(() => (s.open === !1 && f(!1), () => f(!1)), [s.open, f]), /* @__PURE__ */ l.jsx(Or, { ...a, children: /* @__PURE__ */ l.jsx(
|
|
8760
8779
|
Ja,
|
|
8761
8780
|
{
|
|
8762
8781
|
scope: t,
|
|
8763
8782
|
open: r,
|
|
8764
|
-
onOpenChange:
|
|
8765
|
-
content:
|
|
8783
|
+
onOpenChange: f,
|
|
8784
|
+
content: p,
|
|
8766
8785
|
onContentChange: d,
|
|
8767
8786
|
children: /* @__PURE__ */ l.jsx(
|
|
8768
8787
|
nm,
|
|
@@ -8781,15 +8800,15 @@ var Hr = "MenuSub", [nm, mi] = Qe(Hr), hi = (e) => {
|
|
|
8781
8800
|
hi.displayName = Hr;
|
|
8782
8801
|
var vt = "MenuSubTrigger", gi = u.forwardRef(
|
|
8783
8802
|
(e, t) => {
|
|
8784
|
-
const n = Ye(vt, e.__scopeMenu), r =
|
|
8803
|
+
const n = Ye(vt, e.__scopeMenu), r = Tt(vt, e.__scopeMenu), o = mi(vt, e.__scopeMenu), s = Lr(vt, e.__scopeMenu), a = u.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: c } = s, p = { __scopeMenu: e.__scopeMenu }, d = u.useCallback(() => {
|
|
8785
8804
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
8786
8805
|
}, []);
|
|
8787
8806
|
return u.useEffect(() => d, [d]), u.useEffect(() => {
|
|
8788
|
-
const
|
|
8807
|
+
const f = i.current;
|
|
8789
8808
|
return () => {
|
|
8790
|
-
window.clearTimeout(
|
|
8809
|
+
window.clearTimeout(f), c(null);
|
|
8791
8810
|
};
|
|
8792
|
-
}, [i, c]), /* @__PURE__ */ l.jsx(Ir, { asChild: !0, ...
|
|
8811
|
+
}, [i, c]), /* @__PURE__ */ l.jsx(Ir, { asChild: !0, ...p, children: /* @__PURE__ */ l.jsx(
|
|
8793
8812
|
oi,
|
|
8794
8813
|
{
|
|
8795
8814
|
id: o.triggerId,
|
|
@@ -8799,21 +8818,21 @@ var vt = "MenuSubTrigger", gi = u.forwardRef(
|
|
|
8799
8818
|
"data-state": xi(n.open),
|
|
8800
8819
|
...e,
|
|
8801
8820
|
ref: sn(t, o.onTriggerChange),
|
|
8802
|
-
onClick: (
|
|
8821
|
+
onClick: (f) => {
|
|
8803
8822
|
var m;
|
|
8804
|
-
(m = e.onClick) == null || m.call(e,
|
|
8823
|
+
(m = e.onClick) == null || m.call(e, f), !(e.disabled || f.defaultPrevented) && (f.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
8805
8824
|
},
|
|
8806
8825
|
onPointerMove: F(
|
|
8807
8826
|
e.onPointerMove,
|
|
8808
|
-
Et((
|
|
8809
|
-
s.onItemEnter(
|
|
8827
|
+
Et((f) => {
|
|
8828
|
+
s.onItemEnter(f), !f.defaultPrevented && !e.disabled && !n.open && !a.current && (s.onPointerGraceIntentChange(null), a.current = window.setTimeout(() => {
|
|
8810
8829
|
n.onOpenChange(!0), d();
|
|
8811
8830
|
}, 100));
|
|
8812
8831
|
})
|
|
8813
8832
|
),
|
|
8814
8833
|
onPointerLeave: F(
|
|
8815
8834
|
e.onPointerLeave,
|
|
8816
|
-
Et((
|
|
8835
|
+
Et((f) => {
|
|
8817
8836
|
var h, b;
|
|
8818
8837
|
d();
|
|
8819
8838
|
const m = (h = n.content) == null ? void 0 : h.getBoundingClientRect();
|
|
@@ -8823,7 +8842,7 @@ var vt = "MenuSubTrigger", gi = u.forwardRef(
|
|
|
8823
8842
|
area: [
|
|
8824
8843
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
8825
8844
|
// consistently within polygon bounds
|
|
8826
|
-
{ x:
|
|
8845
|
+
{ x: f.clientX + v, y: f.clientY },
|
|
8827
8846
|
{ x: w, y: m.top },
|
|
8828
8847
|
{ x: E, y: m.top },
|
|
8829
8848
|
{ x: E, y: m.bottom },
|
|
@@ -8835,15 +8854,15 @@ var vt = "MenuSubTrigger", gi = u.forwardRef(
|
|
|
8835
8854
|
300
|
|
8836
8855
|
);
|
|
8837
8856
|
} else {
|
|
8838
|
-
if (s.onTriggerLeave(
|
|
8857
|
+
if (s.onTriggerLeave(f), f.defaultPrevented) return;
|
|
8839
8858
|
s.onPointerGraceIntentChange(null);
|
|
8840
8859
|
}
|
|
8841
8860
|
})
|
|
8842
8861
|
),
|
|
8843
|
-
onKeyDown: F(e.onKeyDown, (
|
|
8862
|
+
onKeyDown: F(e.onKeyDown, (f) => {
|
|
8844
8863
|
var h;
|
|
8845
8864
|
const m = s.searchRef.current !== "";
|
|
8846
|
-
e.disabled || m &&
|
|
8865
|
+
e.disabled || m && f.key === " " || Lp[r.dir].includes(f.key) && (n.onOpenChange(!0), (h = n.content) == null || h.focus(), f.preventDefault());
|
|
8847
8866
|
})
|
|
8848
8867
|
}
|
|
8849
8868
|
) });
|
|
@@ -8852,22 +8871,22 @@ var vt = "MenuSubTrigger", gi = u.forwardRef(
|
|
|
8852
8871
|
gi.displayName = vt;
|
|
8853
8872
|
var vi = "MenuSubContent", bi = u.forwardRef(
|
|
8854
8873
|
(e, t) => {
|
|
8855
|
-
const n = ei(be, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Ye(be, e.__scopeMenu), a =
|
|
8874
|
+
const n = ei(be, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Ye(be, e.__scopeMenu), a = Tt(be, e.__scopeMenu), i = mi(vi, e.__scopeMenu), c = u.useRef(null), p = ae(t, c);
|
|
8856
8875
|
return /* @__PURE__ */ l.jsx(Ct.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l.jsx(Fe, { present: r || s.open, children: /* @__PURE__ */ l.jsx(Ct.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ l.jsx(
|
|
8857
8876
|
Fr,
|
|
8858
8877
|
{
|
|
8859
8878
|
id: i.contentId,
|
|
8860
8879
|
"aria-labelledby": i.triggerId,
|
|
8861
8880
|
...o,
|
|
8862
|
-
ref:
|
|
8881
|
+
ref: p,
|
|
8863
8882
|
align: "start",
|
|
8864
8883
|
side: a.dir === "rtl" ? "left" : "right",
|
|
8865
8884
|
disableOutsidePointerEvents: !1,
|
|
8866
8885
|
disableOutsideScroll: !1,
|
|
8867
8886
|
trapFocus: !1,
|
|
8868
8887
|
onOpenAutoFocus: (d) => {
|
|
8869
|
-
var
|
|
8870
|
-
a.isUsingKeyboardRef.current && ((
|
|
8888
|
+
var f;
|
|
8889
|
+
a.isUsingKeyboardRef.current && ((f = c.current) == null || f.focus()), d.preventDefault();
|
|
8871
8890
|
},
|
|
8872
8891
|
onCloseAutoFocus: (d) => d.preventDefault(),
|
|
8873
8892
|
onFocusOutside: F(e.onFocusOutside, (d) => {
|
|
@@ -8878,8 +8897,8 @@ var vi = "MenuSubContent", bi = u.forwardRef(
|
|
|
8878
8897
|
}),
|
|
8879
8898
|
onKeyDown: F(e.onKeyDown, (d) => {
|
|
8880
8899
|
var h;
|
|
8881
|
-
const
|
|
8882
|
-
|
|
8900
|
+
const f = d.currentTarget.contains(d.target), m = Fp[a.dir].includes(d.key);
|
|
8901
|
+
f && m && (s.onOpenChange(!1), (h = i.trigger) == null || h.focus(), d.preventDefault());
|
|
8883
8902
|
})
|
|
8884
8903
|
}
|
|
8885
8904
|
) }) }) });
|
|
@@ -8904,11 +8923,11 @@ function om(e, t) {
|
|
|
8904
8923
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
8905
8924
|
}
|
|
8906
8925
|
function sm(e, t, n) {
|
|
8907
|
-
const o = t.length > 1 && Array.from(t).every((
|
|
8926
|
+
const o = t.length > 1 && Array.from(t).every((p) => p === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
8908
8927
|
let a = om(e, Math.max(s, 0));
|
|
8909
|
-
o.length === 1 && (a = a.filter((
|
|
8928
|
+
o.length === 1 && (a = a.filter((p) => p !== n));
|
|
8910
8929
|
const c = a.find(
|
|
8911
|
-
(
|
|
8930
|
+
(p) => p.toLowerCase().startsWith(o.toLowerCase())
|
|
8912
8931
|
);
|
|
8913
8932
|
return c !== n ? c : void 0;
|
|
8914
8933
|
}
|
|
@@ -8916,8 +8935,8 @@ function am(e, t) {
|
|
|
8916
8935
|
const { x: n, y: r } = e;
|
|
8917
8936
|
let o = !1;
|
|
8918
8937
|
for (let s = 0, a = t.length - 1; s < t.length; a = s++) {
|
|
8919
|
-
const i = t[s], c = t[a],
|
|
8920
|
-
d > r != m > r && n < (
|
|
8938
|
+
const i = t[s], c = t[a], p = i.x, d = i.y, f = c.x, m = c.y;
|
|
8939
|
+
d > r != m > r && n < (f - p) * (r - d) / (m - d) + p && (o = !o);
|
|
8921
8940
|
}
|
|
8922
8941
|
return o;
|
|
8923
8942
|
}
|
|
@@ -8941,7 +8960,7 @@ var cm = Qa, lm = Ir, um = ti, dm = ni, fm = $r, pm = ri, mm = bn, hm = si, gm =
|
|
|
8941
8960
|
defaultOpen: s,
|
|
8942
8961
|
onOpenChange: a,
|
|
8943
8962
|
modal: i = !0
|
|
8944
|
-
} = e, c = de(t),
|
|
8963
|
+
} = e, c = de(t), p = u.useRef(null), [d, f] = Rt({
|
|
8945
8964
|
prop: o,
|
|
8946
8965
|
defaultProp: s ?? !1,
|
|
8947
8966
|
onChange: a,
|
|
@@ -8952,13 +8971,13 @@ var cm = Qa, lm = Ir, um = ti, dm = ni, fm = $r, pm = ri, mm = bn, hm = si, gm =
|
|
|
8952
8971
|
{
|
|
8953
8972
|
scope: t,
|
|
8954
8973
|
triggerId: De(),
|
|
8955
|
-
triggerRef:
|
|
8974
|
+
triggerRef: p,
|
|
8956
8975
|
contentId: De(),
|
|
8957
8976
|
open: d,
|
|
8958
|
-
onOpenChange:
|
|
8959
|
-
onOpenToggle: u.useCallback(() =>
|
|
8977
|
+
onOpenChange: f,
|
|
8978
|
+
onOpenToggle: u.useCallback(() => f((m) => !m), [f]),
|
|
8960
8979
|
modal: i,
|
|
8961
|
-
children: /* @__PURE__ */ l.jsx(cm, { ...c, open: d, onOpenChange:
|
|
8980
|
+
children: /* @__PURE__ */ l.jsx(cm, { ...c, open: d, onOpenChange: f, dir: r, modal: i, children: n })
|
|
8962
8981
|
}
|
|
8963
8982
|
);
|
|
8964
8983
|
};
|
|
@@ -9011,7 +9030,7 @@ var Ri = "DropdownMenuContent", _i = u.forwardRef(
|
|
|
9011
9030
|
a.current || (c = o.triggerRef.current) == null || c.focus(), a.current = !1, i.preventDefault();
|
|
9012
9031
|
}),
|
|
9013
9032
|
onInteractOutside: F(e.onInteractOutside, (i) => {
|
|
9014
|
-
const c = i.detail.originalEvent,
|
|
9033
|
+
const c = i.detail.originalEvent, p = c.button === 0 && c.ctrlKey === !0, d = c.button === 2 || p;
|
|
9015
9034
|
(!o.modal || d) && (a.current = !0);
|
|
9016
9035
|
}),
|
|
9017
9036
|
style: {
|
|
@@ -9041,23 +9060,23 @@ var Am = "DropdownMenuLabel", Ai = u.forwardRef(
|
|
|
9041
9060
|
}
|
|
9042
9061
|
);
|
|
9043
9062
|
Ai.displayName = Am;
|
|
9044
|
-
var
|
|
9063
|
+
var Nm = "DropdownMenuItem", Ni = u.forwardRef(
|
|
9045
9064
|
(e, t) => {
|
|
9046
9065
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9047
9066
|
return /* @__PURE__ */ l.jsx(mm, { ...o, ...r, ref: t });
|
|
9048
9067
|
}
|
|
9049
9068
|
);
|
|
9050
|
-
|
|
9051
|
-
var
|
|
9069
|
+
Ni.displayName = Nm;
|
|
9070
|
+
var Tm = "DropdownMenuCheckboxItem", Ti = u.forwardRef((e, t) => {
|
|
9052
9071
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9053
9072
|
return /* @__PURE__ */ l.jsx(hm, { ...o, ...r, ref: t });
|
|
9054
9073
|
});
|
|
9055
|
-
|
|
9056
|
-
var
|
|
9074
|
+
Ti.displayName = Tm;
|
|
9075
|
+
var km = "DropdownMenuRadioGroup", ki = u.forwardRef((e, t) => {
|
|
9057
9076
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9058
9077
|
return /* @__PURE__ */ l.jsx(gm, { ...o, ...r, ref: t });
|
|
9059
9078
|
});
|
|
9060
|
-
|
|
9079
|
+
ki.displayName = km;
|
|
9061
9080
|
var Om = "DropdownMenuRadioItem", Oi = u.forwardRef((e, t) => {
|
|
9062
9081
|
const { __scopeDropdownMenu: n, ...r } = e, o = de(n);
|
|
9063
9082
|
return /* @__PURE__ */ l.jsx(vm, { ...o, ...r, ref: t });
|
|
@@ -9113,7 +9132,7 @@ var $m = "DropdownMenuSubContent", ji = u.forwardRef((e, t) => {
|
|
|
9113
9132
|
);
|
|
9114
9133
|
});
|
|
9115
9134
|
ji.displayName = $m;
|
|
9116
|
-
var Vm = yi, Hm = Ei, Li = Si, zm = _i, Wm = Mi, Bm = Ai, Gm =
|
|
9135
|
+
var Vm = yi, Hm = Ei, Li = Si, zm = _i, Wm = Mi, Bm = Ai, Gm = Ni, Um = Ti, Km = ki, Ym = Oi, Fi = Pi, qm = Di, Xm = Lm, Zm = Ii, Jm = ji;
|
|
9117
9136
|
function Qm({
|
|
9118
9137
|
...e
|
|
9119
9138
|
}) {
|
|
@@ -9145,7 +9164,7 @@ function t0({
|
|
|
9145
9164
|
{
|
|
9146
9165
|
"data-slot": "dropdown-menu-content",
|
|
9147
9166
|
sideOffset: t,
|
|
9148
|
-
className:
|
|
9167
|
+
className: T(
|
|
9149
9168
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
9150
9169
|
e
|
|
9151
9170
|
),
|
|
@@ -9170,7 +9189,7 @@ function $o({
|
|
|
9170
9189
|
"data-slot": "dropdown-menu-item",
|
|
9171
9190
|
"data-inset": t,
|
|
9172
9191
|
"data-variant": n,
|
|
9173
|
-
className:
|
|
9192
|
+
className: T(
|
|
9174
9193
|
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
9175
9194
|
e
|
|
9176
9195
|
),
|
|
@@ -9188,7 +9207,7 @@ function V0({
|
|
|
9188
9207
|
Um,
|
|
9189
9208
|
{
|
|
9190
9209
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
9191
|
-
className:
|
|
9210
|
+
className: T(
|
|
9192
9211
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
9193
9212
|
e
|
|
9194
9213
|
),
|
|
@@ -9221,7 +9240,7 @@ function z0({
|
|
|
9221
9240
|
Ym,
|
|
9222
9241
|
{
|
|
9223
9242
|
"data-slot": "dropdown-menu-radio-item",
|
|
9224
|
-
className:
|
|
9243
|
+
className: T(
|
|
9225
9244
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
9226
9245
|
e
|
|
9227
9246
|
),
|
|
@@ -9243,7 +9262,7 @@ function n0({
|
|
|
9243
9262
|
{
|
|
9244
9263
|
"data-slot": "dropdown-menu-label",
|
|
9245
9264
|
"data-inset": t,
|
|
9246
|
-
className:
|
|
9265
|
+
className: T(
|
|
9247
9266
|
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
9248
9267
|
e
|
|
9249
9268
|
),
|
|
@@ -9259,7 +9278,7 @@ function r0({
|
|
|
9259
9278
|
qm,
|
|
9260
9279
|
{
|
|
9261
9280
|
"data-slot": "dropdown-menu-separator",
|
|
9262
|
-
className:
|
|
9281
|
+
className: T("bg-border -mx-1 my-1 h-px", e),
|
|
9263
9282
|
...t
|
|
9264
9283
|
}
|
|
9265
9284
|
);
|
|
@@ -9272,7 +9291,7 @@ function W0({
|
|
|
9272
9291
|
"span",
|
|
9273
9292
|
{
|
|
9274
9293
|
"data-slot": "dropdown-menu-shortcut",
|
|
9275
|
-
className:
|
|
9294
|
+
className: T(
|
|
9276
9295
|
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
9277
9296
|
e
|
|
9278
9297
|
),
|
|
@@ -9296,7 +9315,7 @@ function G0({
|
|
|
9296
9315
|
{
|
|
9297
9316
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
9298
9317
|
"data-inset": t,
|
|
9299
|
-
className:
|
|
9318
|
+
className: T(
|
|
9300
9319
|
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
9301
9320
|
e
|
|
9302
9321
|
),
|
|
@@ -9316,7 +9335,7 @@ function U0({
|
|
|
9316
9335
|
Jm,
|
|
9317
9336
|
{
|
|
9318
9337
|
"data-slot": "dropdown-menu-sub-content",
|
|
9319
|
-
className:
|
|
9338
|
+
className: T(
|
|
9320
9339
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
9321
9340
|
e
|
|
9322
9341
|
),
|
|
@@ -9451,7 +9470,7 @@ function c0({ ...e }) {
|
|
|
9451
9470
|
"a",
|
|
9452
9471
|
{
|
|
9453
9472
|
href: "/",
|
|
9454
|
-
className:
|
|
9473
|
+
className: T(
|
|
9455
9474
|
"flex cursor-pointer items-center gap-2 rounded-lg px-2 py-2 transition-colors hover:bg-gray-100",
|
|
9456
9475
|
t("/") && "bg-blue-50 text-gli-bluedark font-medium"
|
|
9457
9476
|
),
|
|
@@ -9459,7 +9478,7 @@ function c0({ ...e }) {
|
|
|
9459
9478
|
/* @__PURE__ */ l.jsx(
|
|
9460
9479
|
ns,
|
|
9461
9480
|
{
|
|
9462
|
-
className:
|
|
9481
|
+
className: T(
|
|
9463
9482
|
"h-5 w-5",
|
|
9464
9483
|
t("/") ? "text-gli-bluedark" : "text-gray-500"
|
|
9465
9484
|
)
|
|
@@ -9477,14 +9496,15 @@ function c0({ ...e }) {
|
|
|
9477
9496
|
title: r.title,
|
|
9478
9497
|
icon: r.icon,
|
|
9479
9498
|
isActive: s,
|
|
9480
|
-
|
|
9499
|
+
disabled: !o,
|
|
9500
|
+
className: T(!o && "opacity-50"),
|
|
9481
9501
|
children: o && /* @__PURE__ */ l.jsx(gp, { children: /* @__PURE__ */ l.jsx(bp, { children: r.items.map((i) => {
|
|
9482
9502
|
const c = t(i.url);
|
|
9483
9503
|
return /* @__PURE__ */ l.jsx(xp, { children: /* @__PURE__ */ l.jsx(wp, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
|
|
9484
9504
|
"a",
|
|
9485
9505
|
{
|
|
9486
9506
|
href: i.url,
|
|
9487
|
-
className:
|
|
9507
|
+
className: T(
|
|
9488
9508
|
"flex items-center gap-2 pl-4 transition-colors text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
9489
9509
|
c && "bg-blue-50 text-gli-bluedark font-medium"
|
|
9490
9510
|
),
|
|
@@ -9492,7 +9512,7 @@ function c0({ ...e }) {
|
|
|
9492
9512
|
/* @__PURE__ */ l.jsx(
|
|
9493
9513
|
"span",
|
|
9494
9514
|
{
|
|
9495
|
-
className:
|
|
9515
|
+
className: T(
|
|
9496
9516
|
c ? "text-gli-bluedark" : "text-muted-foreground"
|
|
9497
9517
|
),
|
|
9498
9518
|
children: i.icon
|
|
@@ -9501,7 +9521,7 @@ function c0({ ...e }) {
|
|
|
9501
9521
|
/* @__PURE__ */ l.jsx(
|
|
9502
9522
|
"span",
|
|
9503
9523
|
{
|
|
9504
|
-
className:
|
|
9524
|
+
className: T(
|
|
9505
9525
|
c ? "text-gli-bluedark" : "text-muted-foreground"
|
|
9506
9526
|
),
|
|
9507
9527
|
children: i.title
|
|
@@ -9516,7 +9536,7 @@ function c0({ ...e }) {
|
|
|
9516
9536
|
);
|
|
9517
9537
|
return r.key === "priceMonster" && !o ? /* @__PURE__ */ l.jsxs(Fa, { children: [
|
|
9518
9538
|
/* @__PURE__ */ l.jsx($a, { asChild: !0, children: /* @__PURE__ */ l.jsx("div", { children: a }) }),
|
|
9519
|
-
/* @__PURE__ */ l.jsx(Dr, { side: "
|
|
9539
|
+
/* @__PURE__ */ l.jsx(Dr, { side: "top", align: "center", children: "Coming soon" })
|
|
9520
9540
|
] }, r.title) : a;
|
|
9521
9541
|
}) })
|
|
9522
9542
|
] }),
|
|
@@ -9630,13 +9650,13 @@ export {
|
|
|
9630
9650
|
mp as SidebarContent,
|
|
9631
9651
|
M0 as SidebarFooter,
|
|
9632
9652
|
hp as SidebarGroup,
|
|
9633
|
-
|
|
9653
|
+
T0 as SidebarGroupAction,
|
|
9634
9654
|
gp as SidebarGroupContent,
|
|
9635
|
-
|
|
9655
|
+
N0 as SidebarGroupLabel,
|
|
9636
9656
|
pp as SidebarHeader,
|
|
9637
9657
|
_0 as SidebarInput,
|
|
9638
9658
|
fp as SidebarInset,
|
|
9639
|
-
|
|
9659
|
+
k0 as SidebarMenu,
|
|
9640
9660
|
D0 as SidebarMenuAction,
|
|
9641
9661
|
I0 as SidebarMenuBadge,
|
|
9642
9662
|
P0 as SidebarMenuButton,
|
|
@@ -9649,7 +9669,7 @@ export {
|
|
|
9649
9669
|
dp as SidebarRail,
|
|
9650
9670
|
A0 as SidebarSeparator,
|
|
9651
9671
|
up as SidebarTrigger,
|
|
9652
|
-
|
|
9672
|
+
No as Skeleton,
|
|
9653
9673
|
Fa as Tooltip,
|
|
9654
9674
|
Dr as TooltipContent,
|
|
9655
9675
|
La as TooltipProvider,
|