highsoft-ui 1.0.92 → 1.0.94
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/{CookiePolicyModal-yxjfkjT3.js → CookiePolicyModal-CPUGKcf9.js} +1 -1
- package/dist/components/Footer/CookiePolicyModal.js +2 -2
- package/dist/components/Footer/index.js +24 -16
- package/dist/components/Header/index.js +1 -1
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/components/Search/index.js +3 -3
- package/dist/components/ThemeLoader/index.d.ts +1 -1
- package/dist/components/ThemeLoader/index.js +9 -2
- package/dist/{index-CMU31gjG.js → index-BjL43v1G.js} +319 -316
- package/dist/{index-Dkl2PwZH.js → index-ClA5awl_.js} +1975 -1910
- package/dist/{index-C_wmZvxw.js → index-DKSs0wKO.js} +1 -1
- package/dist/{index-BSgacgd-.js → index-b2mwXw7t.js} +1 -1
- package/package.json +1 -1
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { jsx as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
2
|
+
import { useState as Le } from "react";
|
|
3
|
+
import { jsx as O } from "react/jsx-runtime";
|
|
4
|
+
import * as Me from "react-dom";
|
|
5
|
+
import De from "react-dom";
|
|
6
|
+
function ae(e, t) {
|
|
7
7
|
if (typeof e == "function")
|
|
8
8
|
return e(t);
|
|
9
9
|
e != null && (e.current = t);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Ee(...e) {
|
|
12
12
|
return (t) => {
|
|
13
13
|
let n = !1;
|
|
14
14
|
const r = e.map((o) => {
|
|
15
|
-
const c =
|
|
15
|
+
const c = ae(o, t);
|
|
16
16
|
return !n && typeof c == "function" && (n = !0), c;
|
|
17
17
|
});
|
|
18
18
|
if (n)
|
|
19
19
|
return () => {
|
|
20
20
|
for (let o = 0; o < r.length; o++) {
|
|
21
21
|
const c = r[o];
|
|
22
|
-
typeof c == "function" ? c() :
|
|
22
|
+
typeof c == "function" ? c() : ae(e[o], null);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return a.useCallback(
|
|
27
|
+
function K(...e) {
|
|
28
|
+
return a.useCallback(Ee(...e), e);
|
|
29
29
|
}
|
|
30
30
|
// @__NO_SIDE_EFFECTS__
|
|
31
|
-
function
|
|
32
|
-
const t = /* @__PURE__ */
|
|
33
|
-
const { children: c, ...s } = r, i = a.Children.toArray(c), v = i.find(
|
|
31
|
+
function Ie(e) {
|
|
32
|
+
const t = /* @__PURE__ */ xe(e), n = a.forwardRef((r, o) => {
|
|
33
|
+
const { children: c, ...s } = r, i = a.Children.toArray(c), v = i.find(Fe);
|
|
34
34
|
if (v) {
|
|
35
35
|
const l = v.props.children, d = i.map((f) => f === v ? a.Children.count(l) > 1 ? a.Children.only(null) : a.isValidElement(l) ? l.props.children : null : f);
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ O(t, { ...s, ref: o, children: a.isValidElement(l) ? a.cloneElement(l, void 0, d) : null });
|
|
37
37
|
}
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ O(t, { ...s, ref: o, children: c });
|
|
39
39
|
});
|
|
40
40
|
return n.displayName = `${e}.Slot`, n;
|
|
41
41
|
}
|
|
42
42
|
// @__NO_SIDE_EFFECTS__
|
|
43
|
-
function
|
|
43
|
+
function xe(e) {
|
|
44
44
|
const t = a.forwardRef((n, r) => {
|
|
45
45
|
const { children: o, ...c } = n;
|
|
46
46
|
if (a.isValidElement(o)) {
|
|
47
|
-
const s =
|
|
48
|
-
return o.type !== a.Fragment && (i.ref = r ?
|
|
47
|
+
const s = _e(o), i = We(c, o.props);
|
|
48
|
+
return o.type !== a.Fragment && (i.ref = r ? Ee(r, s) : s), a.cloneElement(o, i);
|
|
49
49
|
}
|
|
50
50
|
return a.Children.count(o) > 1 ? a.Children.only(null) : null;
|
|
51
51
|
});
|
|
52
52
|
return t.displayName = `${e}.SlotClone`, t;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
-
return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
54
|
+
var ke = Symbol("radix.slottable");
|
|
55
|
+
function Fe(e) {
|
|
56
|
+
return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ke;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function We(e, t) {
|
|
59
59
|
const n = { ...t };
|
|
60
60
|
for (const r in t) {
|
|
61
61
|
const o = e[r], c = t[r];
|
|
@@ -66,11 +66,11 @@ function ke(e, t) {
|
|
|
66
66
|
}
|
|
67
67
|
return { ...e, ...n };
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function _e(e) {
|
|
70
70
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
71
71
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var Be = [
|
|
74
74
|
"a",
|
|
75
75
|
"button",
|
|
76
76
|
"div",
|
|
@@ -88,20 +88,20 @@ var We = [
|
|
|
88
88
|
"span",
|
|
89
89
|
"svg",
|
|
90
90
|
"ul"
|
|
91
|
-
],
|
|
92
|
-
const n = /* @__PURE__ */
|
|
91
|
+
], X = Be.reduce((e, t) => {
|
|
92
|
+
const n = /* @__PURE__ */ Ie(`Primitive.${t}`), r = a.forwardRef((o, c) => {
|
|
93
93
|
const { asChild: s, ...i } = o, v = s ? n : t;
|
|
94
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
94
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ O(v, { ...i, ref: c });
|
|
95
95
|
});
|
|
96
96
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
97
97
|
}, {});
|
|
98
|
-
function
|
|
99
|
-
e &&
|
|
98
|
+
function Ue(e, t) {
|
|
99
|
+
e && Me.flushSync(() => e.dispatchEvent(t));
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function an(e, t) {
|
|
102
102
|
const n = a.createContext(t), r = (c) => {
|
|
103
103
|
const { children: s, ...i } = c, v = a.useMemo(() => i, Object.values(i));
|
|
104
|
-
return /* @__PURE__ */
|
|
104
|
+
return /* @__PURE__ */ O(n.Provider, { value: v, children: s });
|
|
105
105
|
};
|
|
106
106
|
r.displayName = e + "Provider";
|
|
107
107
|
function o(c) {
|
|
@@ -112,14 +112,14 @@ function rn(e, t) {
|
|
|
112
112
|
}
|
|
113
113
|
return [r, o];
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function cn(e, t = []) {
|
|
116
116
|
let n = [];
|
|
117
117
|
function r(c, s) {
|
|
118
118
|
const i = a.createContext(s), v = n.length;
|
|
119
119
|
n = [...n, s];
|
|
120
120
|
const l = (f) => {
|
|
121
121
|
const { scope: m, children: p, ...w } = f, u = m?.[e]?.[v] || i, h = a.useMemo(() => w, Object.values(w));
|
|
122
|
-
return /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ O(u.Provider, { value: h, children: p });
|
|
123
123
|
};
|
|
124
124
|
l.displayName = c + "Provider";
|
|
125
125
|
function d(f, m) {
|
|
@@ -140,9 +140,9 @@ function on(e, t = []) {
|
|
|
140
140
|
);
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
|
-
return o.scopeName = e, [r,
|
|
143
|
+
return o.scopeName = e, [r, je(o, ...t)];
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function je(...e) {
|
|
146
146
|
const t = e[0];
|
|
147
147
|
if (e.length === 1) return t;
|
|
148
148
|
const n = () => {
|
|
@@ -160,22 +160,22 @@ function Be(...e) {
|
|
|
160
160
|
};
|
|
161
161
|
return n.scopeName = t.scopeName, n;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
164
164
|
return function(o) {
|
|
165
165
|
if (e?.(o), n === !1 || !o.defaultPrevented)
|
|
166
166
|
return t?.(o);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
},
|
|
171
|
-
function
|
|
169
|
+
var k = globalThis?.document ? a.useLayoutEffect : () => {
|
|
170
|
+
}, $e = a[" useInsertionEffect ".trim().toString()] || k;
|
|
171
|
+
function sn({
|
|
172
172
|
prop: e,
|
|
173
173
|
defaultProp: t,
|
|
174
174
|
onChange: n = () => {
|
|
175
175
|
},
|
|
176
176
|
caller: r
|
|
177
177
|
}) {
|
|
178
|
-
const [o, c, s] =
|
|
178
|
+
const [o, c, s] = He({
|
|
179
179
|
defaultProp: t,
|
|
180
180
|
onChange: n
|
|
181
181
|
}), i = e !== void 0, v = i ? e : o;
|
|
@@ -191,7 +191,7 @@ function an({
|
|
|
191
191
|
const l = a.useCallback(
|
|
192
192
|
(d) => {
|
|
193
193
|
if (i) {
|
|
194
|
-
const f =
|
|
194
|
+
const f = Ve(d) ? d(e) : d;
|
|
195
195
|
f !== e && s.current?.(f);
|
|
196
196
|
} else
|
|
197
197
|
c(d);
|
|
@@ -200,30 +200,30 @@ function an({
|
|
|
200
200
|
);
|
|
201
201
|
return [v, l];
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function He({
|
|
204
204
|
defaultProp: e,
|
|
205
205
|
onChange: t
|
|
206
206
|
}) {
|
|
207
207
|
const [n, r] = a.useState(e), o = a.useRef(n), c = a.useRef(t);
|
|
208
|
-
return
|
|
208
|
+
return $e(() => {
|
|
209
209
|
c.current = t;
|
|
210
210
|
}, [t]), a.useEffect(() => {
|
|
211
211
|
o.current !== n && (c.current?.(n), o.current = n);
|
|
212
212
|
}, [n, o]), [n, r, c];
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Ve(e) {
|
|
215
215
|
return typeof e == "function";
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Ke(e, t) {
|
|
218
218
|
return a.useReducer((n, r) => t[n][r] ?? n, e);
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
const { present: t, children: n } = e, r =
|
|
220
|
+
var Xe = (e) => {
|
|
221
|
+
const { present: t, children: n } = e, r = Ye(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), c = K(r.ref, ze(o));
|
|
222
222
|
return typeof n == "function" || r.isPresent ? a.cloneElement(o, { ref: c }) : null;
|
|
223
223
|
};
|
|
224
|
-
|
|
225
|
-
function
|
|
226
|
-
const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), c = a.useRef("none"), s = e ? "mounted" : "unmounted", [i, v] =
|
|
224
|
+
Xe.displayName = "Presence";
|
|
225
|
+
function Ye(e) {
|
|
226
|
+
const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), c = a.useRef("none"), s = e ? "mounted" : "unmounted", [i, v] = Ke(s, {
|
|
227
227
|
mounted: {
|
|
228
228
|
UNMOUNT: "unmounted",
|
|
229
229
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -237,19 +237,19 @@ function Ke(e) {
|
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
return a.useEffect(() => {
|
|
240
|
-
const l =
|
|
240
|
+
const l = _(r.current);
|
|
241
241
|
c.current = i === "mounted" ? l : "none";
|
|
242
|
-
}, [i]),
|
|
242
|
+
}, [i]), k(() => {
|
|
243
243
|
const l = r.current, d = o.current;
|
|
244
244
|
if (d !== e) {
|
|
245
|
-
const m = c.current, p =
|
|
245
|
+
const m = c.current, p = _(l);
|
|
246
246
|
e ? v("MOUNT") : p === "none" || l?.display === "none" ? v("UNMOUNT") : v(d && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
247
247
|
}
|
|
248
|
-
}, [e, v]),
|
|
248
|
+
}, [e, v]), k(() => {
|
|
249
249
|
if (t) {
|
|
250
250
|
let l;
|
|
251
251
|
const d = t.ownerDocument.defaultView ?? window, f = (p) => {
|
|
252
|
-
const u =
|
|
252
|
+
const u = _(r.current).includes(CSS.escape(p.animationName));
|
|
253
253
|
if (p.target === t && u && (v("ANIMATION_END"), !o.current)) {
|
|
254
254
|
const h = t.style.animationFillMode;
|
|
255
255
|
t.style.animationFillMode = "forwards", l = d.setTimeout(() => {
|
|
@@ -257,7 +257,7 @@ function Ke(e) {
|
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
}, m = (p) => {
|
|
260
|
-
p.target === t && (c.current =
|
|
260
|
+
p.target === t && (c.current = _(r.current));
|
|
261
261
|
};
|
|
262
262
|
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
263
263
|
d.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
@@ -271,29 +271,29 @@ function Ke(e) {
|
|
|
271
271
|
}, [])
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function _(e) {
|
|
275
275
|
return e?.animationName || "none";
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function ze(e) {
|
|
278
278
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
279
279
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
}),
|
|
283
|
-
function
|
|
284
|
-
const [t, n] = a.useState(
|
|
285
|
-
return
|
|
286
|
-
n((r) => r ?? String(
|
|
281
|
+
var Ge = a[" useId ".trim().toString()] || (() => {
|
|
282
|
+
}), Ze = 0;
|
|
283
|
+
function un(e) {
|
|
284
|
+
const [t, n] = a.useState(Ge());
|
|
285
|
+
return k(() => {
|
|
286
|
+
n((r) => r ?? String(Ze++));
|
|
287
287
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function F(e) {
|
|
290
290
|
const t = a.useRef(e);
|
|
291
291
|
return a.useEffect(() => {
|
|
292
292
|
t.current = e;
|
|
293
293
|
}), a.useMemo(() => (...n) => t.current?.(...n), []);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
const n =
|
|
295
|
+
function qe(e, t = globalThis?.document) {
|
|
296
|
+
const n = F(e);
|
|
297
297
|
a.useEffect(() => {
|
|
298
298
|
const r = (o) => {
|
|
299
299
|
o.key === "Escape" && n(o);
|
|
@@ -301,11 +301,11 @@ function Ge(e, t = globalThis?.document) {
|
|
|
301
301
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
302
302
|
}, [n, t]);
|
|
303
303
|
}
|
|
304
|
-
var
|
|
304
|
+
var Qe = "DismissableLayer", ne = "dismissableLayer.update", Je = "dismissableLayer.pointerDownOutside", et = "dismissableLayer.focusOutside", ie, ge = a.createContext({
|
|
305
305
|
layers: /* @__PURE__ */ new Set(),
|
|
306
306
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
307
307
|
branches: /* @__PURE__ */ new Set()
|
|
308
|
-
}),
|
|
308
|
+
}), tt = a.forwardRef(
|
|
309
309
|
(e, t) => {
|
|
310
310
|
const {
|
|
311
311
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -315,27 +315,27 @@ var Ze = "DismissableLayer", te = "dismissableLayer.update", qe = "dismissableLa
|
|
|
315
315
|
onInteractOutside: s,
|
|
316
316
|
onDismiss: i,
|
|
317
317
|
...v
|
|
318
|
-
} = e, l = a.useContext(
|
|
319
|
-
const
|
|
320
|
-
!S ||
|
|
321
|
-
}, m),
|
|
322
|
-
const
|
|
323
|
-
[...l.branches].some((
|
|
318
|
+
} = e, l = a.useContext(ge), [d, f] = a.useState(null), m = d?.ownerDocument ?? globalThis?.document, [, p] = a.useState({}), w = K(t, (E) => f(E)), u = Array.from(l.layers), [h] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = u.indexOf(h), g = d ? u.indexOf(d) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, S = g >= y, C = ot((E) => {
|
|
319
|
+
const A = E.target, T = [...l.branches].some((x) => x.contains(A));
|
|
320
|
+
!S || T || (o?.(E), s?.(E), E.defaultPrevented || i?.());
|
|
321
|
+
}, m), P = at((E) => {
|
|
322
|
+
const A = E.target;
|
|
323
|
+
[...l.branches].some((x) => x.contains(A)) || (c?.(E), s?.(E), E.defaultPrevented || i?.());
|
|
324
324
|
}, m);
|
|
325
|
-
return
|
|
325
|
+
return qe((E) => {
|
|
326
326
|
g === l.layers.size - 1 && (r?.(E), !E.defaultPrevented && i && (E.preventDefault(), i()));
|
|
327
327
|
}, m), a.useEffect(() => {
|
|
328
328
|
if (d)
|
|
329
|
-
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
330
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents =
|
|
329
|
+
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (ie = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(d)), l.layers.add(d), ce(), () => {
|
|
330
|
+
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = ie);
|
|
331
331
|
};
|
|
332
332
|
}, [d, m, n, l]), a.useEffect(() => () => {
|
|
333
|
-
d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
333
|
+
d && (l.layers.delete(d), l.layersWithOutsidePointerEventsDisabled.delete(d), ce());
|
|
334
334
|
}, [d, l]), a.useEffect(() => {
|
|
335
335
|
const E = () => p({});
|
|
336
|
-
return document.addEventListener(
|
|
337
|
-
}, []), /* @__PURE__ */
|
|
338
|
-
|
|
336
|
+
return document.addEventListener(ne, E), () => document.removeEventListener(ne, E);
|
|
337
|
+
}, []), /* @__PURE__ */ O(
|
|
338
|
+
X.div,
|
|
339
339
|
{
|
|
340
340
|
...v,
|
|
341
341
|
ref: w,
|
|
@@ -343,9 +343,9 @@ var Ze = "DismissableLayer", te = "dismissableLayer.update", qe = "dismissableLa
|
|
|
343
343
|
pointerEvents: b ? S ? "auto" : "none" : void 0,
|
|
344
344
|
...e.style
|
|
345
345
|
},
|
|
346
|
-
onFocusCapture:
|
|
347
|
-
onBlurCapture:
|
|
348
|
-
onPointerDownCapture:
|
|
346
|
+
onFocusCapture: z(e.onFocusCapture, P.onFocusCapture),
|
|
347
|
+
onBlurCapture: z(e.onBlurCapture, P.onBlurCapture),
|
|
348
|
+
onPointerDownCapture: z(
|
|
349
349
|
e.onPointerDownCapture,
|
|
350
350
|
C.onPointerDownCapture
|
|
351
351
|
)
|
|
@@ -353,27 +353,27 @@ var Ze = "DismissableLayer", te = "dismissableLayer.update", qe = "dismissableLa
|
|
|
353
353
|
);
|
|
354
354
|
}
|
|
355
355
|
);
|
|
356
|
-
|
|
357
|
-
var
|
|
358
|
-
const n = a.useContext(
|
|
356
|
+
tt.displayName = Qe;
|
|
357
|
+
var nt = "DismissableLayerBranch", rt = a.forwardRef((e, t) => {
|
|
358
|
+
const n = a.useContext(ge), r = a.useRef(null), o = K(t, r);
|
|
359
359
|
return a.useEffect(() => {
|
|
360
360
|
const c = r.current;
|
|
361
361
|
if (c)
|
|
362
362
|
return n.branches.add(c), () => {
|
|
363
363
|
n.branches.delete(c);
|
|
364
364
|
};
|
|
365
|
-
}, [n.branches]), /* @__PURE__ */
|
|
365
|
+
}, [n.branches]), /* @__PURE__ */ O(X.div, { ...e, ref: o });
|
|
366
366
|
});
|
|
367
|
-
|
|
368
|
-
function
|
|
369
|
-
const n =
|
|
367
|
+
rt.displayName = nt;
|
|
368
|
+
function ot(e, t = globalThis?.document) {
|
|
369
|
+
const n = F(e), r = a.useRef(!1), o = a.useRef(() => {
|
|
370
370
|
});
|
|
371
371
|
return a.useEffect(() => {
|
|
372
372
|
const c = (i) => {
|
|
373
373
|
if (i.target && !r.current) {
|
|
374
374
|
let v = function() {
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
be(
|
|
376
|
+
Je,
|
|
377
377
|
n,
|
|
378
378
|
l,
|
|
379
379
|
{ discrete: !0 }
|
|
@@ -395,11 +395,11 @@ function nt(e, t = globalThis?.document) {
|
|
|
395
395
|
onPointerDownCapture: () => r.current = !0
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
const n =
|
|
398
|
+
function at(e, t = globalThis?.document) {
|
|
399
|
+
const n = F(e), r = a.useRef(!1);
|
|
400
400
|
return a.useEffect(() => {
|
|
401
401
|
const o = (c) => {
|
|
402
|
-
c.target && !r.current &&
|
|
402
|
+
c.target && !r.current && be(et, n, { originalEvent: c }, {
|
|
403
403
|
discrete: !1
|
|
404
404
|
});
|
|
405
405
|
};
|
|
@@ -409,22 +409,22 @@ function rt(e, t = globalThis?.document) {
|
|
|
409
409
|
onBlurCapture: () => r.current = !1
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
function
|
|
413
|
-
const e = new CustomEvent(
|
|
412
|
+
function ce() {
|
|
413
|
+
const e = new CustomEvent(ne);
|
|
414
414
|
document.dispatchEvent(e);
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function be(e, t, n, { discrete: r }) {
|
|
417
417
|
const o = n.originalEvent.target, c = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
418
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
418
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? Ue(o, c) : o.dispatchEvent(c);
|
|
419
419
|
}
|
|
420
|
-
var
|
|
420
|
+
var G = "focusScope.autoFocusOnMount", Z = "focusScope.autoFocusOnUnmount", se = { bubbles: !1, cancelable: !0 }, it = "FocusScope", ct = a.forwardRef((e, t) => {
|
|
421
421
|
const {
|
|
422
422
|
loop: n = !1,
|
|
423
423
|
trapped: r = !1,
|
|
424
424
|
onMountAutoFocus: o,
|
|
425
425
|
onUnmountAutoFocus: c,
|
|
426
426
|
...s
|
|
427
|
-
} = e, [i, v] = a.useState(null), l =
|
|
427
|
+
} = e, [i, v] = a.useState(null), l = F(o), d = F(c), f = a.useRef(null), m = K(t, (u) => v(u)), p = a.useRef({
|
|
428
428
|
paused: !1,
|
|
429
429
|
pause() {
|
|
430
430
|
this.paused = !0;
|
|
@@ -438,15 +438,15 @@ var z = "focusScope.autoFocusOnMount", G = "focusScope.autoFocusOnUnmount", ie =
|
|
|
438
438
|
let u = function(b) {
|
|
439
439
|
if (p.paused || !i) return;
|
|
440
440
|
const S = b.target;
|
|
441
|
-
i.contains(S) ? f.current = S :
|
|
441
|
+
i.contains(S) ? f.current = S : N(f.current, { select: !0 });
|
|
442
442
|
}, h = function(b) {
|
|
443
443
|
if (p.paused || !i) return;
|
|
444
444
|
const S = b.relatedTarget;
|
|
445
|
-
S !== null && (i.contains(S) ||
|
|
445
|
+
S !== null && (i.contains(S) || N(f.current, { select: !0 }));
|
|
446
446
|
}, y = function(b) {
|
|
447
447
|
if (document.activeElement === document.body)
|
|
448
448
|
for (const C of b)
|
|
449
|
-
C.removedNodes.length > 0 &&
|
|
449
|
+
C.removedNodes.length > 0 && N(i);
|
|
450
450
|
};
|
|
451
451
|
document.addEventListener("focusin", u), document.addEventListener("focusout", h);
|
|
452
452
|
const g = new MutationObserver(y);
|
|
@@ -456,16 +456,16 @@ var z = "focusScope.autoFocusOnMount", G = "focusScope.autoFocusOnUnmount", ie =
|
|
|
456
456
|
}
|
|
457
457
|
}, [r, i, p.paused]), a.useEffect(() => {
|
|
458
458
|
if (i) {
|
|
459
|
-
|
|
459
|
+
le.add(p);
|
|
460
460
|
const u = document.activeElement;
|
|
461
461
|
if (!i.contains(u)) {
|
|
462
|
-
const y = new CustomEvent(
|
|
463
|
-
i.addEventListener(
|
|
462
|
+
const y = new CustomEvent(G, se);
|
|
463
|
+
i.addEventListener(G, l), i.dispatchEvent(y), y.defaultPrevented || (st(vt(Se(i)), { select: !0 }), document.activeElement === u && N(i));
|
|
464
464
|
}
|
|
465
465
|
return () => {
|
|
466
|
-
i.removeEventListener(
|
|
467
|
-
const y = new CustomEvent(
|
|
468
|
-
i.addEventListener(
|
|
466
|
+
i.removeEventListener(G, l), setTimeout(() => {
|
|
467
|
+
const y = new CustomEvent(Z, se);
|
|
468
|
+
i.addEventListener(Z, d), i.dispatchEvent(y), y.defaultPrevented || N(u ?? document.body, { select: !0 }), i.removeEventListener(Z, d), le.remove(p);
|
|
469
469
|
}, 0);
|
|
470
470
|
};
|
|
471
471
|
}
|
|
@@ -475,25 +475,25 @@ var z = "focusScope.autoFocusOnMount", G = "focusScope.autoFocusOnUnmount", ie =
|
|
|
475
475
|
if (!n && !r || p.paused) return;
|
|
476
476
|
const h = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, y = document.activeElement;
|
|
477
477
|
if (h && y) {
|
|
478
|
-
const g = u.currentTarget, [b, S] =
|
|
479
|
-
b && S ? !u.shiftKey && y === S ? (u.preventDefault(), n &&
|
|
478
|
+
const g = u.currentTarget, [b, S] = ut(g);
|
|
479
|
+
b && S ? !u.shiftKey && y === S ? (u.preventDefault(), n && N(b, { select: !0 })) : u.shiftKey && y === b && (u.preventDefault(), n && N(S, { select: !0 })) : y === g && u.preventDefault();
|
|
480
480
|
}
|
|
481
481
|
},
|
|
482
482
|
[n, r, p.paused]
|
|
483
483
|
);
|
|
484
|
-
return /* @__PURE__ */
|
|
484
|
+
return /* @__PURE__ */ O(X.div, { tabIndex: -1, ...s, ref: m, onKeyDown: w });
|
|
485
485
|
});
|
|
486
|
-
|
|
487
|
-
function
|
|
486
|
+
ct.displayName = it;
|
|
487
|
+
function st(e, { select: t = !1 } = {}) {
|
|
488
488
|
const n = document.activeElement;
|
|
489
489
|
for (const r of e)
|
|
490
|
-
if (
|
|
490
|
+
if (N(r, { select: t }), document.activeElement !== n) return;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
493
|
-
const t =
|
|
492
|
+
function ut(e) {
|
|
493
|
+
const t = Se(e), n = ue(t, e), r = ue(t.reverse(), e);
|
|
494
494
|
return [n, r];
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Se(e) {
|
|
497
497
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
498
498
|
acceptNode: (r) => {
|
|
499
499
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -503,11 +503,11 @@ function ge(e) {
|
|
|
503
503
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
504
504
|
return t;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function ue(e, t) {
|
|
507
507
|
for (const n of e)
|
|
508
|
-
if (!
|
|
508
|
+
if (!lt(n, { upTo: t })) return n;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function lt(e, { upTo: t }) {
|
|
511
511
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
512
512
|
for (; e; ) {
|
|
513
513
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -516,65 +516,65 @@ function st(e, { upTo: t }) {
|
|
|
516
516
|
}
|
|
517
517
|
return !1;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function ft(e) {
|
|
520
520
|
return e instanceof HTMLInputElement && "select" in e;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function N(e, { select: t = !1 } = {}) {
|
|
523
523
|
if (e && e.focus) {
|
|
524
524
|
const n = document.activeElement;
|
|
525
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
525
|
+
e.focus({ preventScroll: !0 }), e !== n && ft(e) && t && e.select();
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
var
|
|
529
|
-
function
|
|
528
|
+
var le = dt();
|
|
529
|
+
function dt() {
|
|
530
530
|
let e = [];
|
|
531
531
|
return {
|
|
532
532
|
add(t) {
|
|
533
533
|
const n = e[0];
|
|
534
|
-
t !== n && n?.pause(), e =
|
|
534
|
+
t !== n && n?.pause(), e = fe(e, t), e.unshift(t);
|
|
535
535
|
},
|
|
536
536
|
remove(t) {
|
|
537
|
-
e =
|
|
537
|
+
e = fe(e, t), e[0]?.resume();
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function fe(e, t) {
|
|
542
542
|
const n = [...e], r = n.indexOf(t);
|
|
543
543
|
return r !== -1 && n.splice(r, 1), n;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function vt(e) {
|
|
546
546
|
return e.filter((t) => t.tagName !== "A");
|
|
547
547
|
}
|
|
548
|
-
var
|
|
548
|
+
var mt = "Portal", ht = a.forwardRef((e, t) => {
|
|
549
549
|
const { container: n, ...r } = e, [o, c] = a.useState(!1);
|
|
550
|
-
|
|
550
|
+
k(() => c(!0), []);
|
|
551
551
|
const s = n || o && globalThis?.document?.body;
|
|
552
|
-
return s ?
|
|
552
|
+
return s ? De.createPortal(/* @__PURE__ */ O(X.div, { ...r, ref: t }), s) : null;
|
|
553
553
|
});
|
|
554
|
-
|
|
555
|
-
var
|
|
556
|
-
function
|
|
554
|
+
ht.displayName = mt;
|
|
555
|
+
var q = 0;
|
|
556
|
+
function ln() {
|
|
557
557
|
a.useEffect(() => {
|
|
558
558
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
559
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
560
|
-
|
|
559
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? de()), document.body.insertAdjacentElement("beforeend", e[1] ?? de()), q++, () => {
|
|
560
|
+
q === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), q--;
|
|
561
561
|
};
|
|
562
562
|
}, []);
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function de() {
|
|
565
565
|
const e = document.createElement("span");
|
|
566
566
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
567
567
|
}
|
|
568
|
-
var
|
|
569
|
-
return
|
|
568
|
+
var R = function() {
|
|
569
|
+
return R = Object.assign || function(t) {
|
|
570
570
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
571
571
|
n = arguments[r];
|
|
572
572
|
for (var c in n) Object.prototype.hasOwnProperty.call(n, c) && (t[c] = n[c]);
|
|
573
573
|
}
|
|
574
574
|
return t;
|
|
575
|
-
},
|
|
575
|
+
}, R.apply(this, arguments);
|
|
576
576
|
};
|
|
577
|
-
function
|
|
577
|
+
function we(e, t) {
|
|
578
578
|
var n = {};
|
|
579
579
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
580
580
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -582,17 +582,17 @@ function be(e, t) {
|
|
|
582
582
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
583
583
|
return n;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function pt(e, t, n) {
|
|
586
586
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, c; r < o; r++)
|
|
587
587
|
(c || !(r in t)) && (c || (c = Array.prototype.slice.call(t, 0, r)), c[r] = t[r]);
|
|
588
588
|
return e.concat(c || Array.prototype.slice.call(t));
|
|
589
589
|
}
|
|
590
|
-
var
|
|
591
|
-
function
|
|
590
|
+
var H = "right-scroll-bar-position", V = "width-before-scroll-bar", yt = "with-scroll-bars-hidden", Et = "--removed-body-scroll-bar-size";
|
|
591
|
+
function Q(e, t) {
|
|
592
592
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
var n =
|
|
594
|
+
function gt(e, t) {
|
|
595
|
+
var n = Le(function() {
|
|
596
596
|
return {
|
|
597
597
|
// value
|
|
598
598
|
value: e,
|
|
@@ -612,31 +612,31 @@ function yt(e, t) {
|
|
|
612
612
|
})[0];
|
|
613
613
|
return n.callback = t, n.facade;
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
function
|
|
617
|
-
var n =
|
|
615
|
+
var bt = typeof window < "u" ? a.useLayoutEffect : a.useEffect, ve = /* @__PURE__ */ new WeakMap();
|
|
616
|
+
function St(e, t) {
|
|
617
|
+
var n = gt(null, function(r) {
|
|
618
618
|
return e.forEach(function(o) {
|
|
619
|
-
return
|
|
619
|
+
return Q(o, r);
|
|
620
620
|
});
|
|
621
621
|
});
|
|
622
|
-
return
|
|
623
|
-
var r =
|
|
622
|
+
return bt(function() {
|
|
623
|
+
var r = ve.get(n);
|
|
624
624
|
if (r) {
|
|
625
625
|
var o = new Set(r), c = new Set(e), s = n.current;
|
|
626
626
|
o.forEach(function(i) {
|
|
627
|
-
c.has(i) ||
|
|
627
|
+
c.has(i) || Q(i, null);
|
|
628
628
|
}), c.forEach(function(i) {
|
|
629
|
-
o.has(i) ||
|
|
629
|
+
o.has(i) || Q(i, s);
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
ve.set(n, e);
|
|
633
633
|
}, [e]), n;
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function wt(e) {
|
|
636
636
|
return e;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
t === void 0 && (t =
|
|
638
|
+
function Ct(e, t) {
|
|
639
|
+
t === void 0 && (t = wt);
|
|
640
640
|
var n = [], r = !1, o = {
|
|
641
641
|
read: function() {
|
|
642
642
|
if (r)
|
|
@@ -690,78 +690,78 @@ function St(e, t) {
|
|
|
690
690
|
};
|
|
691
691
|
return o;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Pt(e) {
|
|
694
694
|
e === void 0 && (e = {});
|
|
695
|
-
var t =
|
|
696
|
-
return t.options =
|
|
695
|
+
var t = Ct(null);
|
|
696
|
+
return t.options = R({ async: !0, ssr: !1 }, e), t;
|
|
697
697
|
}
|
|
698
|
-
var
|
|
699
|
-
var t = e.sideCar, n =
|
|
698
|
+
var Ce = function(e) {
|
|
699
|
+
var t = e.sideCar, n = we(e, ["sideCar"]);
|
|
700
700
|
if (!t)
|
|
701
701
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
702
702
|
var r = t.read();
|
|
703
703
|
if (!r)
|
|
704
704
|
throw new Error("Sidecar medium not found");
|
|
705
|
-
return a.createElement(r,
|
|
705
|
+
return a.createElement(r, R({}, n));
|
|
706
706
|
};
|
|
707
|
-
|
|
708
|
-
function
|
|
709
|
-
return e.useMedium(t),
|
|
707
|
+
Ce.isSideCarExport = !0;
|
|
708
|
+
function Rt(e, t) {
|
|
709
|
+
return e.useMedium(t), Ce;
|
|
710
710
|
}
|
|
711
|
-
var
|
|
712
|
-
},
|
|
711
|
+
var Pe = Pt(), J = function() {
|
|
712
|
+
}, Y = a.forwardRef(function(e, t) {
|
|
713
713
|
var n = a.useRef(null), r = a.useState({
|
|
714
|
-
onScrollCapture:
|
|
715
|
-
onWheelCapture:
|
|
716
|
-
onTouchMoveCapture:
|
|
717
|
-
}), o = r[0], c = r[1], s = e.forwardProps, i = e.children, v = e.className, l = e.removeScrollBar, d = e.enabled, f = e.shards, m = e.sideCar, p = e.noRelative, w = e.noIsolation, u = e.inert, h = e.allowPinchZoom, y = e.as, g = y === void 0 ? "div" : y, b = e.gapMode, S =
|
|
714
|
+
onScrollCapture: J,
|
|
715
|
+
onWheelCapture: J,
|
|
716
|
+
onTouchMoveCapture: J
|
|
717
|
+
}), o = r[0], c = r[1], s = e.forwardProps, i = e.children, v = e.className, l = e.removeScrollBar, d = e.enabled, f = e.shards, m = e.sideCar, p = e.noRelative, w = e.noIsolation, u = e.inert, h = e.allowPinchZoom, y = e.as, g = y === void 0 ? "div" : y, b = e.gapMode, S = we(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = m, P = St([n, t]), E = R(R({}, S), o);
|
|
718
718
|
return a.createElement(
|
|
719
719
|
a.Fragment,
|
|
720
720
|
null,
|
|
721
|
-
d && a.createElement(C, { sideCar:
|
|
722
|
-
s ? a.cloneElement(a.Children.only(i),
|
|
721
|
+
d && a.createElement(C, { sideCar: Pe, removeScrollBar: l, shards: f, noRelative: p, noIsolation: w, inert: u, setCallbacks: c, allowPinchZoom: !!h, lockRef: n, gapMode: b }),
|
|
722
|
+
s ? a.cloneElement(a.Children.only(i), R(R({}, E), { ref: P })) : a.createElement(g, R({}, E, { className: v, ref: P }), i)
|
|
723
723
|
);
|
|
724
724
|
});
|
|
725
|
-
|
|
725
|
+
Y.defaultProps = {
|
|
726
726
|
enabled: !0,
|
|
727
727
|
removeScrollBar: !0,
|
|
728
728
|
inert: !1
|
|
729
729
|
};
|
|
730
|
-
|
|
731
|
-
fullWidth:
|
|
732
|
-
zeroRight:
|
|
730
|
+
Y.classNames = {
|
|
731
|
+
fullWidth: V,
|
|
732
|
+
zeroRight: H
|
|
733
733
|
};
|
|
734
|
-
var
|
|
734
|
+
var Ot = function() {
|
|
735
735
|
if (typeof __webpack_nonce__ < "u")
|
|
736
736
|
return __webpack_nonce__;
|
|
737
737
|
};
|
|
738
|
-
function
|
|
738
|
+
function Nt() {
|
|
739
739
|
if (!document)
|
|
740
740
|
return null;
|
|
741
741
|
var e = document.createElement("style");
|
|
742
742
|
e.type = "text/css";
|
|
743
|
-
var t =
|
|
743
|
+
var t = Ot();
|
|
744
744
|
return t && e.setAttribute("nonce", t), e;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function At(e, t) {
|
|
747
747
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function Tt(e) {
|
|
750
750
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
751
751
|
t.appendChild(e);
|
|
752
752
|
}
|
|
753
|
-
var
|
|
753
|
+
var Lt = function() {
|
|
754
754
|
var e = 0, t = null;
|
|
755
755
|
return {
|
|
756
756
|
add: function(n) {
|
|
757
|
-
e == 0 && (t =
|
|
757
|
+
e == 0 && (t = Nt()) && (At(t, n), Tt(t)), e++;
|
|
758
758
|
},
|
|
759
759
|
remove: function() {
|
|
760
760
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
|
-
},
|
|
764
|
-
var e =
|
|
763
|
+
}, Mt = function() {
|
|
764
|
+
var e = Lt();
|
|
765
765
|
return function(t, n) {
|
|
766
766
|
a.useEffect(function() {
|
|
767
767
|
return e.add(t), function() {
|
|
@@ -769,40 +769,40 @@ var At = function() {
|
|
|
769
769
|
};
|
|
770
770
|
}, [t && n]);
|
|
771
771
|
};
|
|
772
|
-
},
|
|
773
|
-
var e =
|
|
772
|
+
}, Re = function() {
|
|
773
|
+
var e = Mt(), t = function(n) {
|
|
774
774
|
var r = n.styles, o = n.dynamic;
|
|
775
775
|
return e(r, o), null;
|
|
776
776
|
};
|
|
777
777
|
return t;
|
|
778
|
-
},
|
|
778
|
+
}, Dt = {
|
|
779
779
|
left: 0,
|
|
780
780
|
top: 0,
|
|
781
781
|
right: 0,
|
|
782
782
|
gap: 0
|
|
783
|
-
},
|
|
783
|
+
}, ee = function(e) {
|
|
784
784
|
return parseInt(e || "", 10) || 0;
|
|
785
|
-
},
|
|
785
|
+
}, It = function(e) {
|
|
786
786
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
787
|
-
return [
|
|
788
|
-
},
|
|
787
|
+
return [ee(n), ee(r), ee(o)];
|
|
788
|
+
}, xt = function(e) {
|
|
789
789
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
790
|
-
return
|
|
791
|
-
var t =
|
|
790
|
+
return Dt;
|
|
791
|
+
var t = It(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
792
792
|
return {
|
|
793
793
|
left: t[0],
|
|
794
794
|
top: t[1],
|
|
795
795
|
right: t[2],
|
|
796
796
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
797
797
|
};
|
|
798
|
-
},
|
|
798
|
+
}, kt = Re(), I = "data-scroll-locked", Ft = function(e, t, n, r) {
|
|
799
799
|
var o = e.left, c = e.top, s = e.right, i = e.gap;
|
|
800
800
|
return n === void 0 && (n = "margin"), `
|
|
801
|
-
.`.concat(
|
|
801
|
+
.`.concat(yt, ` {
|
|
802
802
|
overflow: hidden `).concat(r, `;
|
|
803
803
|
padding-right: `).concat(i, "px ").concat(r, `;
|
|
804
804
|
}
|
|
805
|
-
body[`).concat(
|
|
805
|
+
body[`).concat(I, `] {
|
|
806
806
|
overflow: hidden `).concat(r, `;
|
|
807
807
|
overscroll-behavior: contain;
|
|
808
808
|
`).concat([
|
|
@@ -819,110 +819,110 @@ var At = function() {
|
|
|
819
819
|
].filter(Boolean).join(""), `
|
|
820
820
|
}
|
|
821
821
|
|
|
822
|
-
.`).concat(
|
|
822
|
+
.`).concat(H, ` {
|
|
823
823
|
right: `).concat(i, "px ").concat(r, `;
|
|
824
824
|
}
|
|
825
825
|
|
|
826
|
-
.`).concat(
|
|
826
|
+
.`).concat(V, ` {
|
|
827
827
|
margin-right: `).concat(i, "px ").concat(r, `;
|
|
828
828
|
}
|
|
829
829
|
|
|
830
|
-
.`).concat(
|
|
830
|
+
.`).concat(H, " .").concat(H, ` {
|
|
831
831
|
right: 0 `).concat(r, `;
|
|
832
832
|
}
|
|
833
833
|
|
|
834
|
-
.`).concat(
|
|
834
|
+
.`).concat(V, " .").concat(V, ` {
|
|
835
835
|
margin-right: 0 `).concat(r, `;
|
|
836
836
|
}
|
|
837
837
|
|
|
838
|
-
body[`).concat(
|
|
839
|
-
`).concat(
|
|
838
|
+
body[`).concat(I, `] {
|
|
839
|
+
`).concat(Et, ": ").concat(i, `px;
|
|
840
840
|
}
|
|
841
841
|
`);
|
|
842
|
-
},
|
|
843
|
-
var e = parseInt(document.body.getAttribute(
|
|
842
|
+
}, me = function() {
|
|
843
|
+
var e = parseInt(document.body.getAttribute(I) || "0", 10);
|
|
844
844
|
return isFinite(e) ? e : 0;
|
|
845
|
-
},
|
|
845
|
+
}, Wt = function() {
|
|
846
846
|
a.useEffect(function() {
|
|
847
|
-
return document.body.setAttribute(
|
|
848
|
-
var e =
|
|
849
|
-
e <= 0 ? document.body.removeAttribute(
|
|
847
|
+
return document.body.setAttribute(I, (me() + 1).toString()), function() {
|
|
848
|
+
var e = me() - 1;
|
|
849
|
+
e <= 0 ? document.body.removeAttribute(I) : document.body.setAttribute(I, e.toString());
|
|
850
850
|
};
|
|
851
851
|
}, []);
|
|
852
|
-
},
|
|
852
|
+
}, _t = function(e) {
|
|
853
853
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
854
|
-
|
|
854
|
+
Wt();
|
|
855
855
|
var c = a.useMemo(function() {
|
|
856
|
-
return
|
|
856
|
+
return xt(o);
|
|
857
857
|
}, [o]);
|
|
858
|
-
return a.createElement(
|
|
859
|
-
},
|
|
858
|
+
return a.createElement(kt, { styles: Ft(c, !t, o, n ? "" : "!important") });
|
|
859
|
+
}, re = !1;
|
|
860
860
|
if (typeof window < "u")
|
|
861
861
|
try {
|
|
862
|
-
var
|
|
862
|
+
var B = Object.defineProperty({}, "passive", {
|
|
863
863
|
get: function() {
|
|
864
|
-
return
|
|
864
|
+
return re = !0, !0;
|
|
865
865
|
}
|
|
866
866
|
});
|
|
867
|
-
window.addEventListener("test",
|
|
867
|
+
window.addEventListener("test", B, B), window.removeEventListener("test", B, B);
|
|
868
868
|
} catch {
|
|
869
|
-
|
|
869
|
+
re = !1;
|
|
870
870
|
}
|
|
871
|
-
var
|
|
871
|
+
var L = re ? { passive: !1 } : !1, Bt = function(e) {
|
|
872
872
|
return e.tagName === "TEXTAREA";
|
|
873
|
-
},
|
|
873
|
+
}, Oe = function(e, t) {
|
|
874
874
|
if (!(e instanceof Element))
|
|
875
875
|
return !1;
|
|
876
876
|
var n = window.getComputedStyle(e);
|
|
877
877
|
return (
|
|
878
878
|
// not-not-scrollable
|
|
879
879
|
n[t] !== "hidden" && // contains scroll inside self
|
|
880
|
-
!(n.overflowY === n.overflowX && !
|
|
880
|
+
!(n.overflowY === n.overflowX && !Bt(e) && n[t] === "visible")
|
|
881
881
|
);
|
|
882
|
-
},
|
|
883
|
-
return
|
|
884
|
-
},
|
|
885
|
-
return
|
|
886
|
-
},
|
|
882
|
+
}, Ut = function(e) {
|
|
883
|
+
return Oe(e, "overflowY");
|
|
884
|
+
}, jt = function(e) {
|
|
885
|
+
return Oe(e, "overflowX");
|
|
886
|
+
}, he = function(e, t) {
|
|
887
887
|
var n = t.ownerDocument, r = t;
|
|
888
888
|
do {
|
|
889
889
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
890
|
-
var o =
|
|
890
|
+
var o = Ne(e, r);
|
|
891
891
|
if (o) {
|
|
892
|
-
var c =
|
|
892
|
+
var c = Ae(e, r), s = c[1], i = c[2];
|
|
893
893
|
if (s > i)
|
|
894
894
|
return !0;
|
|
895
895
|
}
|
|
896
896
|
r = r.parentNode;
|
|
897
897
|
} while (r && r !== n.body);
|
|
898
898
|
return !1;
|
|
899
|
-
},
|
|
899
|
+
}, $t = function(e) {
|
|
900
900
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
901
901
|
return [
|
|
902
902
|
t,
|
|
903
903
|
n,
|
|
904
904
|
r
|
|
905
905
|
];
|
|
906
|
-
},
|
|
906
|
+
}, Ht = function(e) {
|
|
907
907
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
908
908
|
return [
|
|
909
909
|
t,
|
|
910
910
|
n,
|
|
911
911
|
r
|
|
912
912
|
];
|
|
913
|
-
},
|
|
914
|
-
return e === "v" ? _t(t) : Bt(t);
|
|
915
|
-
}, Oe = function(e, t) {
|
|
913
|
+
}, Ne = function(e, t) {
|
|
916
914
|
return e === "v" ? Ut(t) : jt(t);
|
|
917
|
-
},
|
|
915
|
+
}, Ae = function(e, t) {
|
|
916
|
+
return e === "v" ? $t(t) : Ht(t);
|
|
917
|
+
}, Vt = function(e, t) {
|
|
918
918
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
919
|
-
},
|
|
920
|
-
var c =
|
|
919
|
+
}, Kt = function(e, t, n, r, o) {
|
|
920
|
+
var c = Vt(e, window.getComputedStyle(t).direction), s = c * r, i = n.target, v = t.contains(i), l = !1, d = s > 0, f = 0, m = 0;
|
|
921
921
|
do {
|
|
922
922
|
if (!i)
|
|
923
923
|
break;
|
|
924
|
-
var p =
|
|
925
|
-
(w || y) &&
|
|
924
|
+
var p = Ae(e, i), w = p[0], u = p[1], h = p[2], y = u - h - c * w;
|
|
925
|
+
(w || y) && Ne(e, i) && (f += y, m += w);
|
|
926
926
|
var g = i.parentNode;
|
|
927
927
|
i = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
928
928
|
} while (
|
|
@@ -931,28 +931,28 @@ var T = ne ? { passive: !1 } : !1, Wt = function(e) {
|
|
|
931
931
|
v && (t.contains(i) || t === i)
|
|
932
932
|
);
|
|
933
933
|
return (d && Math.abs(f) < 1 || !d && Math.abs(m) < 1) && (l = !0), l;
|
|
934
|
-
},
|
|
934
|
+
}, U = function(e) {
|
|
935
935
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
936
|
-
},
|
|
936
|
+
}, pe = function(e) {
|
|
937
937
|
return [e.deltaX, e.deltaY];
|
|
938
|
-
},
|
|
938
|
+
}, ye = function(e) {
|
|
939
939
|
return e && "current" in e ? e.current : e;
|
|
940
|
-
},
|
|
940
|
+
}, Xt = function(e, t) {
|
|
941
941
|
return e[0] === t[0] && e[1] === t[1];
|
|
942
|
-
},
|
|
942
|
+
}, Yt = function(e) {
|
|
943
943
|
return `
|
|
944
944
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
945
945
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
946
946
|
`);
|
|
947
|
-
},
|
|
948
|
-
function
|
|
949
|
-
var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(
|
|
947
|
+
}, zt = 0, M = [];
|
|
948
|
+
function Gt(e) {
|
|
949
|
+
var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(zt++)[0], c = a.useState(Re)[0], s = a.useRef(e);
|
|
950
950
|
a.useEffect(function() {
|
|
951
951
|
s.current = e;
|
|
952
952
|
}, [e]), a.useEffect(function() {
|
|
953
953
|
if (e.inert) {
|
|
954
954
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
955
|
-
var u =
|
|
955
|
+
var u = pt([e.lockRef.current], (e.shards || []).map(ye), !0).filter(Boolean);
|
|
956
956
|
return u.forEach(function(h) {
|
|
957
957
|
return h.classList.add("allow-interactivity-".concat(o));
|
|
958
958
|
}), function() {
|
|
@@ -965,98 +965,101 @@ function Yt(e) {
|
|
|
965
965
|
var i = a.useCallback(function(u, h) {
|
|
966
966
|
if ("touches" in u && u.touches.length === 2 || u.type === "wheel" && u.ctrlKey)
|
|
967
967
|
return !s.current.allowPinchZoom;
|
|
968
|
-
var y =
|
|
969
|
-
if ("touches" in u && E === "h" &&
|
|
968
|
+
var y = U(u), g = n.current, b = "deltaX" in u ? u.deltaX : g[0] - y[0], S = "deltaY" in u ? u.deltaY : g[1] - y[1], C, P = u.target, E = Math.abs(b) > Math.abs(S) ? "h" : "v";
|
|
969
|
+
if ("touches" in u && E === "h" && P.type === "range")
|
|
970
|
+
return !1;
|
|
971
|
+
var A = window.getSelection(), T = A && A.anchorNode, x = T ? T === P || T.contains(P) : !1;
|
|
972
|
+
if (x)
|
|
970
973
|
return !1;
|
|
971
|
-
var
|
|
972
|
-
if (!
|
|
974
|
+
var W = he(E, P);
|
|
975
|
+
if (!W)
|
|
973
976
|
return !0;
|
|
974
|
-
if (
|
|
977
|
+
if (W ? C = E : (C = E === "v" ? "h" : "v", W = he(E, P)), !W)
|
|
975
978
|
return !1;
|
|
976
979
|
if (!r.current && "changedTouches" in u && (b || S) && (r.current = C), !C)
|
|
977
980
|
return !0;
|
|
978
|
-
var
|
|
979
|
-
return
|
|
981
|
+
var oe = r.current || C;
|
|
982
|
+
return Kt(oe, h, u, oe === "h" ? b : S);
|
|
980
983
|
}, []), v = a.useCallback(function(u) {
|
|
981
984
|
var h = u;
|
|
982
|
-
if (!(!
|
|
983
|
-
var y = "deltaY" in h ?
|
|
984
|
-
return C.name === h.type && (C.target === h.target || h.target === C.shadowParent) &&
|
|
985
|
+
if (!(!M.length || M[M.length - 1] !== c)) {
|
|
986
|
+
var y = "deltaY" in h ? pe(h) : U(h), g = t.current.filter(function(C) {
|
|
987
|
+
return C.name === h.type && (C.target === h.target || h.target === C.shadowParent) && Xt(C.delta, y);
|
|
985
988
|
})[0];
|
|
986
989
|
if (g && g.should) {
|
|
987
990
|
h.cancelable && h.preventDefault();
|
|
988
991
|
return;
|
|
989
992
|
}
|
|
990
993
|
if (!g) {
|
|
991
|
-
var b = (s.current.shards || []).map(
|
|
994
|
+
var b = (s.current.shards || []).map(ye).filter(Boolean).filter(function(C) {
|
|
992
995
|
return C.contains(h.target);
|
|
993
996
|
}), S = b.length > 0 ? i(h, b[0]) : !s.current.noIsolation;
|
|
994
997
|
S && h.cancelable && h.preventDefault();
|
|
995
998
|
}
|
|
996
999
|
}
|
|
997
1000
|
}, []), l = a.useCallback(function(u, h, y, g) {
|
|
998
|
-
var b = { name: u, delta: h, target: y, should: g, shadowParent:
|
|
1001
|
+
var b = { name: u, delta: h, target: y, should: g, shadowParent: Zt(y) };
|
|
999
1002
|
t.current.push(b), setTimeout(function() {
|
|
1000
1003
|
t.current = t.current.filter(function(S) {
|
|
1001
1004
|
return S !== b;
|
|
1002
1005
|
});
|
|
1003
1006
|
}, 1);
|
|
1004
1007
|
}, []), d = a.useCallback(function(u) {
|
|
1005
|
-
n.current =
|
|
1008
|
+
n.current = U(u), r.current = void 0;
|
|
1006
1009
|
}, []), f = a.useCallback(function(u) {
|
|
1007
|
-
l(u.type,
|
|
1010
|
+
l(u.type, pe(u), u.target, i(u, e.lockRef.current));
|
|
1008
1011
|
}, []), m = a.useCallback(function(u) {
|
|
1009
|
-
l(u.type,
|
|
1012
|
+
l(u.type, U(u), u.target, i(u, e.lockRef.current));
|
|
1010
1013
|
}, []);
|
|
1011
1014
|
a.useEffect(function() {
|
|
1012
|
-
return
|
|
1015
|
+
return M.push(c), e.setCallbacks({
|
|
1013
1016
|
onScrollCapture: f,
|
|
1014
1017
|
onWheelCapture: f,
|
|
1015
1018
|
onTouchMoveCapture: m
|
|
1016
|
-
}), document.addEventListener("wheel", v,
|
|
1017
|
-
|
|
1019
|
+
}), document.addEventListener("wheel", v, L), document.addEventListener("touchmove", v, L), document.addEventListener("touchstart", d, L), function() {
|
|
1020
|
+
M = M.filter(function(u) {
|
|
1018
1021
|
return u !== c;
|
|
1019
|
-
}), document.removeEventListener("wheel", v,
|
|
1022
|
+
}), document.removeEventListener("wheel", v, L), document.removeEventListener("touchmove", v, L), document.removeEventListener("touchstart", d, L);
|
|
1020
1023
|
};
|
|
1021
1024
|
}, []);
|
|
1022
1025
|
var p = e.removeScrollBar, w = e.inert;
|
|
1023
1026
|
return a.createElement(
|
|
1024
1027
|
a.Fragment,
|
|
1025
1028
|
null,
|
|
1026
|
-
w ? a.createElement(c, { styles:
|
|
1027
|
-
p ? a.createElement(
|
|
1029
|
+
w ? a.createElement(c, { styles: Yt(o) }) : null,
|
|
1030
|
+
p ? a.createElement(_t, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
1028
1031
|
);
|
|
1029
1032
|
}
|
|
1030
|
-
function
|
|
1033
|
+
function Zt(e) {
|
|
1031
1034
|
for (var t = null; e !== null; )
|
|
1032
1035
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1033
1036
|
return t;
|
|
1034
1037
|
}
|
|
1035
|
-
const
|
|
1036
|
-
var
|
|
1037
|
-
return a.createElement(
|
|
1038
|
+
const qt = Rt(Pe, Gt);
|
|
1039
|
+
var Qt = a.forwardRef(function(e, t) {
|
|
1040
|
+
return a.createElement(Y, R({}, e, { ref: t, sideCar: qt }));
|
|
1038
1041
|
});
|
|
1039
|
-
|
|
1040
|
-
var
|
|
1042
|
+
Qt.classNames = Y.classNames;
|
|
1043
|
+
var Jt = function(e) {
|
|
1041
1044
|
if (typeof document > "u")
|
|
1042
1045
|
return null;
|
|
1043
1046
|
var t = Array.isArray(e) ? e[0] : e;
|
|
1044
1047
|
return t.ownerDocument.body;
|
|
1045
|
-
},
|
|
1046
|
-
return e && (e.host ||
|
|
1047
|
-
},
|
|
1048
|
+
}, D = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), $ = {}, te = 0, Te = function(e) {
|
|
1049
|
+
return e && (e.host || Te(e.parentNode));
|
|
1050
|
+
}, en = function(e, t) {
|
|
1048
1051
|
return t.map(function(n) {
|
|
1049
1052
|
if (e.contains(n))
|
|
1050
1053
|
return n;
|
|
1051
|
-
var r =
|
|
1054
|
+
var r = Te(n);
|
|
1052
1055
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
1053
1056
|
}).filter(function(n) {
|
|
1054
1057
|
return !!n;
|
|
1055
1058
|
});
|
|
1056
|
-
},
|
|
1057
|
-
var o =
|
|
1058
|
-
|
|
1059
|
-
var c =
|
|
1059
|
+
}, tn = function(e, t, n, r) {
|
|
1060
|
+
var o = en(t, Array.isArray(e) ? e : [e]);
|
|
1061
|
+
$[n] || ($[n] = /* @__PURE__ */ new WeakMap());
|
|
1062
|
+
var c = $[n], s = [], i = /* @__PURE__ */ new Set(), v = new Set(o), l = function(f) {
|
|
1060
1063
|
!f || i.has(f) || (i.add(f), l(f.parentNode));
|
|
1061
1064
|
};
|
|
1062
1065
|
o.forEach(l);
|
|
@@ -1066,42 +1069,42 @@ var qt = function(e) {
|
|
|
1066
1069
|
d(m);
|
|
1067
1070
|
else
|
|
1068
1071
|
try {
|
|
1069
|
-
var p = m.getAttribute(r), w = p !== null && p !== "false", u = (
|
|
1070
|
-
|
|
1072
|
+
var p = m.getAttribute(r), w = p !== null && p !== "false", u = (D.get(m) || 0) + 1, h = (c.get(m) || 0) + 1;
|
|
1073
|
+
D.set(m, u), c.set(m, h), s.push(m), u === 1 && w && j.set(m, !0), h === 1 && m.setAttribute(n, "true"), w || m.setAttribute(r, "true");
|
|
1071
1074
|
} catch (y) {
|
|
1072
1075
|
console.error("aria-hidden: cannot operate on ", m, y);
|
|
1073
1076
|
}
|
|
1074
1077
|
});
|
|
1075
1078
|
};
|
|
1076
|
-
return d(t), i.clear(),
|
|
1079
|
+
return d(t), i.clear(), te++, function() {
|
|
1077
1080
|
s.forEach(function(f) {
|
|
1078
|
-
var m =
|
|
1079
|
-
|
|
1080
|
-
}),
|
|
1081
|
+
var m = D.get(f) - 1, p = c.get(f) - 1;
|
|
1082
|
+
D.set(f, m), c.set(f, p), m || (j.has(f) || f.removeAttribute(r), j.delete(f)), p || f.removeAttribute(n);
|
|
1083
|
+
}), te--, te || (D = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), $ = {});
|
|
1081
1084
|
};
|
|
1082
|
-
},
|
|
1085
|
+
}, fn = function(e, t, n) {
|
|
1083
1086
|
n === void 0 && (n = "data-aria-hidden");
|
|
1084
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
1085
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
1087
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = Jt(e);
|
|
1088
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), tn(r, o, n, "aria-hidden")) : function() {
|
|
1086
1089
|
return null;
|
|
1087
1090
|
};
|
|
1088
1091
|
};
|
|
1089
1092
|
export {
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1093
|
+
tt as D,
|
|
1094
|
+
ct as F,
|
|
1095
|
+
X as P,
|
|
1096
|
+
Qt as R,
|
|
1097
|
+
Ie as a,
|
|
1098
|
+
un as b,
|
|
1099
|
+
cn as c,
|
|
1100
|
+
z as d,
|
|
1101
|
+
sn as e,
|
|
1102
|
+
F as f,
|
|
1103
|
+
Xe as g,
|
|
1104
|
+
k as h,
|
|
1105
|
+
ht as i,
|
|
1106
|
+
fn as j,
|
|
1107
|
+
ln as k,
|
|
1108
|
+
an as l,
|
|
1109
|
+
K as u
|
|
1107
1110
|
};
|