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