zudoku 0.3.0-dev.79 → 0.3.0-dev.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/lib/plugins/openapi/Sidecar.d.ts +4 -0
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +25 -5
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/lib/{AuthenticationPlugin-CngUn5DP.js → AuthenticationPlugin-XS0DoAhE.js} +2 -2
- package/lib/{AuthenticationPlugin-CngUn5DP.js.map → AuthenticationPlugin-XS0DoAhE.js.map} +1 -1
- package/lib/{Combination-CS4rK8IJ.js → Combination-C442XfGG.js} +368 -347
- package/lib/Combination-C442XfGG.js.map +1 -0
- package/lib/{DevPortalProvider-BTFqdAEL.js → DevPortalProvider-BWeAysxF.js} +6 -5
- package/lib/{DevPortalProvider-BTFqdAEL.js.map → DevPortalProvider-BWeAysxF.js.map} +1 -1
- package/lib/{Input-GFpPXs5b.js → Input-3IEt27jb.js} +3 -3
- package/lib/{Input-GFpPXs5b.js.map → Input-3IEt27jb.js.map} +1 -1
- package/lib/{MdxPage-V4FCB0C_.js → MdxPage-CA1WmW14.js} +2 -2
- package/lib/{MdxPage-V4FCB0C_.js.map → MdxPage-CA1WmW14.js.map} +1 -1
- package/lib/OperationList-rv6Z3wD3.js +431 -0
- package/lib/OperationList-rv6Z3wD3.js.map +1 -0
- package/lib/{Route-CogU1ofM.js → Route-Clw81GSR.js} +2 -2
- package/lib/{Route-CogU1ofM.js.map → Route-Clw81GSR.js.map} +1 -1
- package/lib/{SlotletProvider-D_Vz-7c_.js → SlotletProvider-B71hNEUL.js} +24 -45
- package/lib/SlotletProvider-B71hNEUL.js.map +1 -0
- package/lib/{Spinner-oNQQyp-I.js → Spinner-Coi7ORUV.js} +2 -2
- package/lib/{Spinner-oNQQyp-I.js.map → Spinner-Coi7ORUV.js.map} +1 -1
- package/lib/{index-D4bOMg7f.js → index-BH-Ub36F.js} +5 -5
- package/lib/{index-D4bOMg7f.js.map → index-BH-Ub36F.js.map} +1 -1
- package/lib/index-CLkuJSxj.js +5950 -0
- package/lib/index-CLkuJSxj.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.components.js +25 -25
- package/lib/zudoku.plugin-api-keys.js +12 -12
- package/lib/zudoku.plugin-markdown.js +2 -2
- package/lib/zudoku.plugin-openapi.js +4 -3
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
- package/src/lib/plugins/openapi/index.tsx +52 -16
- package/lib/Combination-CS4rK8IJ.js.map +0 -1
- package/lib/OperationList-C-M33Hxu.js +0 -4368
- package/lib/OperationList-C-M33Hxu.js.map +0 -1
- package/lib/SlotletProvider-D_Vz-7c_.js.map +0 -1
- package/lib/context-_fYfJFgk.js +0 -14
- package/lib/context-_fYfJFgk.js.map +0 -1
- package/lib/index-Uqja2h2M.js +0 -1960
- package/lib/index-Uqja2h2M.js.map +0 -1
|
@@ -4,23 +4,24 @@ var wt = (e) => {
|
|
|
4
4
|
var He = (e, t, n) => t.has(e) || wt("Cannot " + n);
|
|
5
5
|
var L = (e, t, n) => (He(e, t, "read from private field"), n ? n.call(e) : t.get(e)), we = (e, t, n) => t.has(e) ? wt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), xe = (e, t, n, r) => (He(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), Z = (e, t, n) => (He(e, t, "access private method"), n);
|
|
6
6
|
import { j as P } from "./jsx-runtime-CJBdjYYx.js";
|
|
7
|
-
import { a as
|
|
7
|
+
import { a as Dn, e as Nn } from "./Markdown-QsZ-PHET.js";
|
|
8
8
|
import * as f from "react";
|
|
9
9
|
import oe, { useLayoutEffect as kn, useEffect as Fn, useState as In } from "react";
|
|
10
|
-
import { R as Wn,
|
|
10
|
+
import { R as Wn, G as _n, n as Bn, u as jn } from "./DevPortalProvider-BWeAysxF.js";
|
|
11
|
+
import { u as $n } from "./state-DsXXkBLH.js";
|
|
11
12
|
import * as Ht from "react-dom";
|
|
12
|
-
import
|
|
13
|
-
function
|
|
13
|
+
import Hn from "react-dom";
|
|
14
|
+
function Vn(e, t) {
|
|
14
15
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
15
16
|
}
|
|
16
17
|
function Vt(...e) {
|
|
17
|
-
return (t) => e.forEach((n) =>
|
|
18
|
+
return (t) => e.forEach((n) => Vn(n, t));
|
|
18
19
|
}
|
|
19
20
|
function se(...e) {
|
|
20
21
|
return f.useCallback(Vt(...e), e);
|
|
21
22
|
}
|
|
22
23
|
var be = f.forwardRef((e, t) => {
|
|
23
|
-
const { children: n, ...r } = e, o = f.Children.toArray(n), i = o.find(
|
|
24
|
+
const { children: n, ...r } = e, o = f.Children.toArray(n), i = o.find(Un);
|
|
24
25
|
if (i) {
|
|
25
26
|
const s = i.props.children, c = o.map((a) => a === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : a);
|
|
26
27
|
return /* @__PURE__ */ P.jsx(Qe, { ...r, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, c) : null });
|
|
@@ -31,9 +32,9 @@ be.displayName = "Slot";
|
|
|
31
32
|
var Qe = f.forwardRef((e, t) => {
|
|
32
33
|
const { children: n, ...r } = e;
|
|
33
34
|
if (f.isValidElement(n)) {
|
|
34
|
-
const o =
|
|
35
|
+
const o = Xn(n);
|
|
35
36
|
return f.cloneElement(n, {
|
|
36
|
-
...
|
|
37
|
+
...Yn(r, n.props),
|
|
37
38
|
// @ts-ignore
|
|
38
39
|
ref: t ? Vt(t, o) : o
|
|
39
40
|
});
|
|
@@ -41,11 +42,11 @@ var Qe = f.forwardRef((e, t) => {
|
|
|
41
42
|
return f.Children.count(n) > 1 ? f.Children.only(null) : null;
|
|
42
43
|
});
|
|
43
44
|
Qe.displayName = "SlotClone";
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return f.isValidElement(e) && e.type ===
|
|
45
|
+
var zn = ({ children: e }) => /* @__PURE__ */ P.jsx(P.Fragment, { children: e });
|
|
46
|
+
function Un(e) {
|
|
47
|
+
return f.isValidElement(e) && e.type === zn;
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function Yn(e, t) {
|
|
49
50
|
const n = { ...t };
|
|
50
51
|
for (const r in t) {
|
|
51
52
|
const o = e[r], i = t[r];
|
|
@@ -55,12 +56,12 @@ function zn(e, t) {
|
|
|
55
56
|
}
|
|
56
57
|
return { ...e, ...n };
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function Xn(e) {
|
|
59
60
|
var r, o;
|
|
60
61
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
61
62
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
62
63
|
}
|
|
63
|
-
const
|
|
64
|
+
const Kn = Nn(
|
|
64
65
|
"not-prose inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
65
66
|
{
|
|
66
67
|
variants: {
|
|
@@ -85,28 +86,28 @@ const Yn = Dn(
|
|
|
85
86
|
size: "default"
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
|
-
),
|
|
89
|
+
), Gn = f.forwardRef(
|
|
89
90
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, i) => {
|
|
90
91
|
const s = r ? be : "button";
|
|
91
92
|
return /* @__PURE__ */ P.jsx(
|
|
92
93
|
s,
|
|
93
94
|
{
|
|
94
|
-
className:
|
|
95
|
+
className: Dn(Kn({ variant: t, size: n, className: e })),
|
|
95
96
|
ref: i,
|
|
96
97
|
...o
|
|
97
98
|
}
|
|
98
99
|
);
|
|
99
100
|
}
|
|
100
101
|
);
|
|
101
|
-
|
|
102
|
-
var H, F, ie, V, Q, $t,
|
|
102
|
+
Gn.displayName = "Button";
|
|
103
|
+
var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
|
|
103
104
|
constructor(t) {
|
|
104
105
|
super();
|
|
105
106
|
we(this, V);
|
|
106
107
|
we(this, H);
|
|
107
108
|
we(this, F);
|
|
108
109
|
we(this, ie);
|
|
109
|
-
this.mutationId = t.mutationId, xe(this, F, t.mutationCache), xe(this, H, []), this.state = t.state ||
|
|
110
|
+
this.mutationId = t.mutationId, xe(this, F, t.mutationCache), xe(this, H, []), this.state = t.state || qn(), this.setOptions(t.options), this.scheduleGc();
|
|
110
111
|
}
|
|
111
112
|
setOptions(t) {
|
|
112
113
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -140,8 +141,8 @@ var H, F, ie, V, Q, $t, mi = ($t = class extends Wn {
|
|
|
140
141
|
var o, i, s, c, a, l, h, d, p, m, g, u, v, y, w, b, x, E, C, S;
|
|
141
142
|
xe(this, ie, _n({
|
|
142
143
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
143
|
-
onFail: (
|
|
144
|
-
Z(this, V, Q).call(this, { type: "failed", failureCount:
|
|
144
|
+
onFail: (A, O) => {
|
|
145
|
+
Z(this, V, Q).call(this, { type: "failed", failureCount: A, error: O });
|
|
145
146
|
},
|
|
146
147
|
onPause: () => {
|
|
147
148
|
Z(this, V, Q).call(this, { type: "pause" });
|
|
@@ -170,50 +171,50 @@ var H, F, ie, V, Q, $t, mi = ($t = class extends Wn {
|
|
|
170
171
|
isPaused: r
|
|
171
172
|
});
|
|
172
173
|
}
|
|
173
|
-
const
|
|
174
|
+
const A = await L(this, ie).start();
|
|
174
175
|
return await ((l = (a = L(this, F).config).onSuccess) == null ? void 0 : l.call(
|
|
175
176
|
a,
|
|
176
|
-
|
|
177
|
+
A,
|
|
177
178
|
t,
|
|
178
179
|
this.state.context,
|
|
179
180
|
this
|
|
180
|
-
)), await ((d = (h = this.options).onSuccess) == null ? void 0 : d.call(h,
|
|
181
|
+
)), await ((d = (h = this.options).onSuccess) == null ? void 0 : d.call(h, A, t, this.state.context)), await ((m = (p = L(this, F).config).onSettled) == null ? void 0 : m.call(
|
|
181
182
|
p,
|
|
182
|
-
|
|
183
|
+
A,
|
|
183
184
|
null,
|
|
184
185
|
this.state.variables,
|
|
185
186
|
this.state.context,
|
|
186
187
|
this
|
|
187
|
-
)), await ((u = (g = this.options).onSettled) == null ? void 0 : u.call(g,
|
|
188
|
-
} catch (
|
|
188
|
+
)), await ((u = (g = this.options).onSettled) == null ? void 0 : u.call(g, A, null, t, this.state.context)), Z(this, V, Q).call(this, { type: "success", data: A }), A;
|
|
189
|
+
} catch (A) {
|
|
189
190
|
try {
|
|
190
191
|
throw await ((y = (v = L(this, F).config).onError) == null ? void 0 : y.call(
|
|
191
192
|
v,
|
|
192
|
-
|
|
193
|
+
A,
|
|
193
194
|
t,
|
|
194
195
|
this.state.context,
|
|
195
196
|
this
|
|
196
197
|
)), await ((b = (w = this.options).onError) == null ? void 0 : b.call(
|
|
197
198
|
w,
|
|
198
|
-
|
|
199
|
+
A,
|
|
199
200
|
t,
|
|
200
201
|
this.state.context
|
|
201
202
|
)), await ((E = (x = L(this, F).config).onSettled) == null ? void 0 : E.call(
|
|
202
203
|
x,
|
|
203
204
|
void 0,
|
|
204
|
-
|
|
205
|
+
A,
|
|
205
206
|
this.state.variables,
|
|
206
207
|
this.state.context,
|
|
207
208
|
this
|
|
208
209
|
)), await ((S = (C = this.options).onSettled) == null ? void 0 : S.call(
|
|
209
210
|
C,
|
|
210
211
|
void 0,
|
|
211
|
-
|
|
212
|
+
A,
|
|
212
213
|
t,
|
|
213
214
|
this.state.context
|
|
214
|
-
)),
|
|
215
|
+
)), A;
|
|
215
216
|
} finally {
|
|
216
|
-
Z(this, V, Q).call(this, { type: "error", error:
|
|
217
|
+
Z(this, V, Q).call(this, { type: "error", error: A });
|
|
217
218
|
}
|
|
218
219
|
} finally {
|
|
219
220
|
L(this, F).runNext(this);
|
|
@@ -283,7 +284,7 @@ var H, F, ie, V, Q, $t, mi = ($t = class extends Wn {
|
|
|
283
284
|
});
|
|
284
285
|
});
|
|
285
286
|
}, $t);
|
|
286
|
-
function
|
|
287
|
+
function qn() {
|
|
287
288
|
return {
|
|
288
289
|
context: void 0,
|
|
289
290
|
data: void 0,
|
|
@@ -296,13 +297,32 @@ function Kn() {
|
|
|
296
297
|
submittedAt: 0
|
|
297
298
|
};
|
|
298
299
|
}
|
|
300
|
+
const yi = () => {
|
|
301
|
+
const { authentication: e } = jn(), t = $n(), n = typeof e < "u";
|
|
302
|
+
return {
|
|
303
|
+
isAuthEnabled: n,
|
|
304
|
+
isPending: t.isPending,
|
|
305
|
+
profile: t.profile,
|
|
306
|
+
isAuthenticated: t.profile,
|
|
307
|
+
login: async () => {
|
|
308
|
+
if (!n)
|
|
309
|
+
throw new Error("Authentication is not enabled.");
|
|
310
|
+
await e.signIn();
|
|
311
|
+
},
|
|
312
|
+
logout: async () => {
|
|
313
|
+
if (!n)
|
|
314
|
+
throw new Error("Authentication is not enabled.");
|
|
315
|
+
await e.signOut(), window.location.href = "/";
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
};
|
|
299
319
|
function Ve(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
300
320
|
return function(o) {
|
|
301
321
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
302
322
|
return t == null ? void 0 : t(o);
|
|
303
323
|
};
|
|
304
324
|
}
|
|
305
|
-
function
|
|
325
|
+
function wi(e, t) {
|
|
306
326
|
const n = f.createContext(t);
|
|
307
327
|
function r(i) {
|
|
308
328
|
const { children: s, ...c } = i, a = f.useMemo(() => c, Object.values(c));
|
|
@@ -343,9 +363,9 @@ function zt(e, t = []) {
|
|
|
343
363
|
);
|
|
344
364
|
};
|
|
345
365
|
};
|
|
346
|
-
return o.scopeName = e, [r,
|
|
366
|
+
return o.scopeName = e, [r, Zn(o, ...t)];
|
|
347
367
|
}
|
|
348
|
-
function
|
|
368
|
+
function Zn(...e) {
|
|
349
369
|
const t = e[0];
|
|
350
370
|
if (e.length === 1) return t;
|
|
351
371
|
const n = () => {
|
|
@@ -372,13 +392,13 @@ function ee(e) {
|
|
|
372
392
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
373
393
|
}, []);
|
|
374
394
|
}
|
|
375
|
-
function
|
|
395
|
+
function xi({
|
|
376
396
|
prop: e,
|
|
377
397
|
defaultProp: t,
|
|
378
398
|
onChange: n = () => {
|
|
379
399
|
}
|
|
380
400
|
}) {
|
|
381
|
-
const [r, o] =
|
|
401
|
+
const [r, o] = Qn({ defaultProp: t, onChange: n }), i = e !== void 0, s = i ? e : r, c = ee(n), a = f.useCallback(
|
|
382
402
|
(l) => {
|
|
383
403
|
if (i) {
|
|
384
404
|
const d = typeof l == "function" ? l(e) : l;
|
|
@@ -390,7 +410,7 @@ function vi({
|
|
|
390
410
|
);
|
|
391
411
|
return [s, a];
|
|
392
412
|
}
|
|
393
|
-
function
|
|
413
|
+
function Qn({
|
|
394
414
|
defaultProp: e,
|
|
395
415
|
onChange: t
|
|
396
416
|
}) {
|
|
@@ -399,7 +419,7 @@ function qn({
|
|
|
399
419
|
o.current !== r && (i(r), o.current = r);
|
|
400
420
|
}, [r, o, i]), n;
|
|
401
421
|
}
|
|
402
|
-
var
|
|
422
|
+
var Jn = [
|
|
403
423
|
"a",
|
|
404
424
|
"button",
|
|
405
425
|
"div",
|
|
@@ -416,17 +436,17 @@ var Zn = [
|
|
|
416
436
|
"span",
|
|
417
437
|
"svg",
|
|
418
438
|
"ul"
|
|
419
|
-
], ae =
|
|
439
|
+
], ae = Jn.reduce((e, t) => {
|
|
420
440
|
const n = f.forwardRef((r, o) => {
|
|
421
441
|
const { asChild: i, ...s } = r, c = i ? be : t;
|
|
422
442
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P.jsx(c, { ...s, ref: o });
|
|
423
443
|
});
|
|
424
444
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
425
445
|
}, {});
|
|
426
|
-
function
|
|
446
|
+
function er(e, t) {
|
|
427
447
|
e && Ht.flushSync(() => e.dispatchEvent(t));
|
|
428
448
|
}
|
|
429
|
-
function
|
|
449
|
+
function bi(e) {
|
|
430
450
|
const t = e + "CollectionProvider", [n, r] = zt(t), [o, i] = n(
|
|
431
451
|
t,
|
|
432
452
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -466,12 +486,12 @@ function gi(e) {
|
|
|
466
486
|
r
|
|
467
487
|
];
|
|
468
488
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
-
const t = f.useContext(
|
|
489
|
+
var tr = f.createContext(void 0);
|
|
490
|
+
function Ei(e) {
|
|
491
|
+
const t = f.useContext(tr);
|
|
472
492
|
return e || t || "ltr";
|
|
473
493
|
}
|
|
474
|
-
function
|
|
494
|
+
function nr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
475
495
|
const n = ee(e);
|
|
476
496
|
f.useEffect(() => {
|
|
477
497
|
const r = (o) => {
|
|
@@ -480,11 +500,11 @@ function er(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
480
500
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
481
501
|
}, [n, t]);
|
|
482
502
|
}
|
|
483
|
-
var
|
|
503
|
+
var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLayer.pointerDownOutside", ir = "dismissableLayer.focusOutside", xt, Ut = f.createContext({
|
|
484
504
|
layers: /* @__PURE__ */ new Set(),
|
|
485
505
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
486
506
|
branches: /* @__PURE__ */ new Set()
|
|
487
|
-
}),
|
|
507
|
+
}), sr = f.forwardRef(
|
|
488
508
|
(e, t) => {
|
|
489
509
|
const {
|
|
490
510
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -494,14 +514,14 @@ var tr = "DismissableLayer", Je = "dismissableLayer.update", nr = "dismissableLa
|
|
|
494
514
|
onInteractOutside: s,
|
|
495
515
|
onDismiss: c,
|
|
496
516
|
...a
|
|
497
|
-
} = e, l = f.useContext(Ut), [h, d] = f.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = f.useState({}), g = se(t, (S) => d(S)), u = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = u.indexOf(v), w = h ? u.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E =
|
|
498
|
-
const
|
|
517
|
+
} = e, l = f.useContext(Ut), [h, d] = f.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = f.useState({}), g = se(t, (S) => d(S)), u = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = u.indexOf(v), w = h ? u.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E = lr((S) => {
|
|
518
|
+
const A = S.target, O = [...l.branches].some((N) => N.contains(A));
|
|
499
519
|
!x || O || (o == null || o(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
500
|
-
}, p), C =
|
|
501
|
-
const
|
|
502
|
-
[...l.branches].some((
|
|
520
|
+
}, p), C = ur((S) => {
|
|
521
|
+
const A = S.target;
|
|
522
|
+
[...l.branches].some((N) => N.contains(A)) || (i == null || i(S), s == null || s(S), S.defaultPrevented || c == null || c());
|
|
503
523
|
}, p);
|
|
504
|
-
return
|
|
524
|
+
return nr((S) => {
|
|
505
525
|
w === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
|
|
506
526
|
}, p), f.useEffect(() => {
|
|
507
527
|
if (h)
|
|
@@ -532,8 +552,8 @@ var tr = "DismissableLayer", Je = "dismissableLayer.update", nr = "dismissableLa
|
|
|
532
552
|
);
|
|
533
553
|
}
|
|
534
554
|
);
|
|
535
|
-
|
|
536
|
-
var
|
|
555
|
+
sr.displayName = rr;
|
|
556
|
+
var cr = "DismissableLayerBranch", ar = f.forwardRef((e, t) => {
|
|
537
557
|
const n = f.useContext(Ut), r = f.useRef(null), o = se(t, r);
|
|
538
558
|
return f.useEffect(() => {
|
|
539
559
|
const i = r.current;
|
|
@@ -543,8 +563,8 @@ var ir = "DismissableLayerBranch", sr = f.forwardRef((e, t) => {
|
|
|
543
563
|
};
|
|
544
564
|
}, [n.branches]), /* @__PURE__ */ P.jsx(ae.div, { ...e, ref: o });
|
|
545
565
|
});
|
|
546
|
-
|
|
547
|
-
function
|
|
566
|
+
ar.displayName = cr;
|
|
567
|
+
function lr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
548
568
|
const n = ee(e), r = f.useRef(!1), o = f.useRef(() => {
|
|
549
569
|
});
|
|
550
570
|
return f.useEffect(() => {
|
|
@@ -552,7 +572,7 @@ function cr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
552
572
|
if (c.target && !r.current) {
|
|
553
573
|
let a = function() {
|
|
554
574
|
Yt(
|
|
555
|
-
|
|
575
|
+
or,
|
|
556
576
|
n,
|
|
557
577
|
l,
|
|
558
578
|
{ discrete: !0 }
|
|
@@ -574,11 +594,11 @@ function cr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
574
594
|
onPointerDownCapture: () => r.current = !0
|
|
575
595
|
};
|
|
576
596
|
}
|
|
577
|
-
function
|
|
597
|
+
function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
578
598
|
const n = ee(e), r = f.useRef(!1);
|
|
579
599
|
return f.useEffect(() => {
|
|
580
600
|
const o = (i) => {
|
|
581
|
-
i.target && !r.current && Yt(
|
|
601
|
+
i.target && !r.current && Yt(ir, n, { originalEvent: i }, {
|
|
582
602
|
discrete: !1
|
|
583
603
|
});
|
|
584
604
|
};
|
|
@@ -594,10 +614,10 @@ function bt() {
|
|
|
594
614
|
}
|
|
595
615
|
function Yt(e, t, n, { discrete: r }) {
|
|
596
616
|
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
597
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
617
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? er(o, i) : o.dispatchEvent(i);
|
|
598
618
|
}
|
|
599
619
|
var ze = 0;
|
|
600
|
-
function
|
|
620
|
+
function Ci() {
|
|
601
621
|
f.useEffect(() => {
|
|
602
622
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
603
623
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Et()), document.body.insertAdjacentElement("beforeend", e[1] ?? Et()), ze++, () => {
|
|
@@ -609,7 +629,7 @@ function Et() {
|
|
|
609
629
|
const e = document.createElement("span");
|
|
610
630
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
|
|
611
631
|
}
|
|
612
|
-
var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 },
|
|
632
|
+
var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct = { bubbles: !1, cancelable: !0 }, fr = "FocusScope", dr = f.forwardRef((e, t) => {
|
|
613
633
|
const {
|
|
614
634
|
loop: n = !1,
|
|
615
635
|
trapped: r = !1,
|
|
@@ -648,16 +668,16 @@ var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct
|
|
|
648
668
|
}
|
|
649
669
|
}, [r, c, m.paused]), f.useEffect(() => {
|
|
650
670
|
if (c) {
|
|
651
|
-
|
|
671
|
+
At.add(m);
|
|
652
672
|
const u = document.activeElement;
|
|
653
673
|
if (!c.contains(u)) {
|
|
654
674
|
const y = new CustomEvent(Ue, Ct);
|
|
655
|
-
c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (
|
|
675
|
+
c.addEventListener(Ue, l), c.dispatchEvent(y), y.defaultPrevented || (hr(yr(Xt(c)), { select: !0 }), document.activeElement === u && J(c));
|
|
656
676
|
}
|
|
657
677
|
return () => {
|
|
658
678
|
c.removeEventListener(Ue, l), setTimeout(() => {
|
|
659
679
|
const y = new CustomEvent(Ye, Ct);
|
|
660
|
-
c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(u ?? document.body, { select: !0 }), c.removeEventListener(Ye, h),
|
|
680
|
+
c.addEventListener(Ye, h), c.dispatchEvent(y), y.defaultPrevented || J(u ?? document.body, { select: !0 }), c.removeEventListener(Ye, h), At.remove(m);
|
|
661
681
|
}, 0);
|
|
662
682
|
};
|
|
663
683
|
}
|
|
@@ -667,7 +687,7 @@ var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct
|
|
|
667
687
|
if (!n && !r || m.paused) return;
|
|
668
688
|
const v = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, y = document.activeElement;
|
|
669
689
|
if (v && y) {
|
|
670
|
-
const w = u.currentTarget, [b, x] =
|
|
690
|
+
const w = u.currentTarget, [b, x] = mr(w);
|
|
671
691
|
b && x ? !u.shiftKey && y === x ? (u.preventDefault(), n && J(b, { select: !0 })) : u.shiftKey && y === b && (u.preventDefault(), n && J(x, { select: !0 })) : y === w && u.preventDefault();
|
|
672
692
|
}
|
|
673
693
|
},
|
|
@@ -675,13 +695,13 @@ var Ue = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ct
|
|
|
675
695
|
);
|
|
676
696
|
return /* @__PURE__ */ P.jsx(ae.div, { tabIndex: -1, ...s, ref: p, onKeyDown: g });
|
|
677
697
|
});
|
|
678
|
-
|
|
679
|
-
function
|
|
698
|
+
dr.displayName = fr;
|
|
699
|
+
function hr(e, { select: t = !1 } = {}) {
|
|
680
700
|
const n = document.activeElement;
|
|
681
701
|
for (const r of e)
|
|
682
702
|
if (J(r, { select: t }), document.activeElement !== n) return;
|
|
683
703
|
}
|
|
684
|
-
function
|
|
704
|
+
function mr(e) {
|
|
685
705
|
const t = Xt(e), n = St(t, e), r = St(t.reverse(), e);
|
|
686
706
|
return [n, r];
|
|
687
707
|
}
|
|
@@ -697,9 +717,9 @@ function Xt(e) {
|
|
|
697
717
|
}
|
|
698
718
|
function St(e, t) {
|
|
699
719
|
for (const n of e)
|
|
700
|
-
if (!
|
|
720
|
+
if (!pr(n, { upTo: t })) return n;
|
|
701
721
|
}
|
|
702
|
-
function
|
|
722
|
+
function pr(e, { upTo: t }) {
|
|
703
723
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
704
724
|
for (; e; ) {
|
|
705
725
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -708,54 +728,54 @@ function hr(e, { upTo: t }) {
|
|
|
708
728
|
}
|
|
709
729
|
return !1;
|
|
710
730
|
}
|
|
711
|
-
function
|
|
731
|
+
function vr(e) {
|
|
712
732
|
return e instanceof HTMLInputElement && "select" in e;
|
|
713
733
|
}
|
|
714
734
|
function J(e, { select: t = !1 } = {}) {
|
|
715
735
|
if (e && e.focus) {
|
|
716
736
|
const n = document.activeElement;
|
|
717
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
737
|
+
e.focus({ preventScroll: !0 }), e !== n && vr(e) && t && e.select();
|
|
718
738
|
}
|
|
719
739
|
}
|
|
720
|
-
var
|
|
721
|
-
function
|
|
740
|
+
var At = gr();
|
|
741
|
+
function gr() {
|
|
722
742
|
let e = [];
|
|
723
743
|
return {
|
|
724
744
|
add(t) {
|
|
725
745
|
const n = e[0];
|
|
726
|
-
t !== n && (n == null || n.pause()), e =
|
|
746
|
+
t !== n && (n == null || n.pause()), e = Rt(e, t), e.unshift(t);
|
|
727
747
|
},
|
|
728
748
|
remove(t) {
|
|
729
749
|
var n;
|
|
730
|
-
e =
|
|
750
|
+
e = Rt(e, t), (n = e[0]) == null || n.resume();
|
|
731
751
|
}
|
|
732
752
|
};
|
|
733
753
|
}
|
|
734
|
-
function
|
|
754
|
+
function Rt(e, t) {
|
|
735
755
|
const n = [...e], r = n.indexOf(t);
|
|
736
756
|
return r !== -1 && n.splice(r, 1), n;
|
|
737
757
|
}
|
|
738
|
-
function
|
|
758
|
+
function yr(e) {
|
|
739
759
|
return e.filter((t) => t.tagName !== "A");
|
|
740
760
|
}
|
|
741
761
|
var Ee = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
742
|
-
},
|
|
743
|
-
}),
|
|
744
|
-
function
|
|
745
|
-
const [t, n] = f.useState(
|
|
762
|
+
}, wr = f.useId || (() => {
|
|
763
|
+
}), xr = 0;
|
|
764
|
+
function Si(e) {
|
|
765
|
+
const [t, n] = f.useState(wr());
|
|
746
766
|
return Ee(() => {
|
|
747
|
-
n((r) => r ?? String(
|
|
767
|
+
n((r) => r ?? String(xr++));
|
|
748
768
|
}, [e]), t ? `radix-${t}` : "";
|
|
749
769
|
}
|
|
750
|
-
const
|
|
770
|
+
const br = ["top", "right", "bottom", "left"], te = Math.min, _ = Math.max, Ie = Math.round, Oe = Math.floor, ne = (e) => ({
|
|
751
771
|
x: e,
|
|
752
772
|
y: e
|
|
753
|
-
}),
|
|
773
|
+
}), Er = {
|
|
754
774
|
left: "right",
|
|
755
775
|
right: "left",
|
|
756
776
|
bottom: "top",
|
|
757
777
|
top: "bottom"
|
|
758
|
-
},
|
|
778
|
+
}, Cr = {
|
|
759
779
|
start: "end",
|
|
760
780
|
end: "start"
|
|
761
781
|
};
|
|
@@ -783,20 +803,20 @@ function ve(e) {
|
|
|
783
803
|
function it(e) {
|
|
784
804
|
return rt(ve(e));
|
|
785
805
|
}
|
|
786
|
-
function
|
|
806
|
+
function Sr(e, t, n) {
|
|
787
807
|
n === void 0 && (n = !1);
|
|
788
808
|
const r = pe(e), o = it(e), i = ot(o);
|
|
789
809
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
790
810
|
return t.reference[i] > t.floating[i] && (s = We(s)), [s, We(s)];
|
|
791
811
|
}
|
|
792
|
-
function
|
|
812
|
+
function Ar(e) {
|
|
793
813
|
const t = We(e);
|
|
794
814
|
return [tt(e), t, tt(t)];
|
|
795
815
|
}
|
|
796
816
|
function tt(e) {
|
|
797
|
-
return e.replace(/start|end/g, (t) =>
|
|
817
|
+
return e.replace(/start|end/g, (t) => Cr[t]);
|
|
798
818
|
}
|
|
799
|
-
function
|
|
819
|
+
function Rr(e, t, n) {
|
|
800
820
|
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
801
821
|
switch (e) {
|
|
802
822
|
case "top":
|
|
@@ -809,15 +829,15 @@ function Sr(e, t, n) {
|
|
|
809
829
|
return [];
|
|
810
830
|
}
|
|
811
831
|
}
|
|
812
|
-
function
|
|
832
|
+
function Pr(e, t, n, r) {
|
|
813
833
|
const o = pe(e);
|
|
814
|
-
let i =
|
|
834
|
+
let i = Rr(G(e), n === "start", r);
|
|
815
835
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(tt)))), i;
|
|
816
836
|
}
|
|
817
837
|
function We(e) {
|
|
818
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
838
|
+
return e.replace(/left|right|bottom|top/g, (t) => Er[t]);
|
|
819
839
|
}
|
|
820
|
-
function
|
|
840
|
+
function Or(e) {
|
|
821
841
|
return {
|
|
822
842
|
top: 0,
|
|
823
843
|
right: 0,
|
|
@@ -827,7 +847,7 @@ function Ar(e) {
|
|
|
827
847
|
};
|
|
828
848
|
}
|
|
829
849
|
function Kt(e) {
|
|
830
|
-
return typeof e != "number" ?
|
|
850
|
+
return typeof e != "number" ? Or(e) : {
|
|
831
851
|
top: e,
|
|
832
852
|
right: e,
|
|
833
853
|
bottom: e,
|
|
@@ -900,7 +920,7 @@ function Pt(e, t, n) {
|
|
|
900
920
|
}
|
|
901
921
|
return m;
|
|
902
922
|
}
|
|
903
|
-
const
|
|
923
|
+
const Tr = async (e, t, n) => {
|
|
904
924
|
const {
|
|
905
925
|
placement: r = "bottom",
|
|
906
926
|
strategy: o = "absolute",
|
|
@@ -1006,7 +1026,7 @@ async function Ce(e, t) {
|
|
|
1006
1026
|
right: (E.right - y.right + g.right) / x.x
|
|
1007
1027
|
};
|
|
1008
1028
|
}
|
|
1009
|
-
const
|
|
1029
|
+
const Mr = (e) => ({
|
|
1010
1030
|
name: "arrow",
|
|
1011
1031
|
options: e,
|
|
1012
1032
|
async fn(t) {
|
|
@@ -1030,20 +1050,20 @@ const Or = (e) => ({
|
|
|
1030
1050
|
}, m = it(o), g = ot(m), u = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
1031
1051
|
let S = C ? C[b] : 0;
|
|
1032
1052
|
(!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[g]);
|
|
1033
|
-
const
|
|
1053
|
+
const A = x / 2 - E / 2, O = S / 2 - u[g] / 2 - 1, N = te(d[y], O), j = te(d[w], O), M = N, I = S - u[g] - j, D = S / 2 - u[g] / 2 + A, T = et(M, D, I), k = !a.arrow && pe(o) != null && D !== T && i.reference[g] / 2 - (D < M ? N : j) - u[g] / 2 < 0, R = k ? D < M ? D - M : D - I : 0;
|
|
1034
1054
|
return {
|
|
1035
|
-
[m]: p[m] +
|
|
1055
|
+
[m]: p[m] + R,
|
|
1036
1056
|
data: {
|
|
1037
1057
|
[m]: T,
|
|
1038
|
-
centerOffset:
|
|
1058
|
+
centerOffset: D - T - R,
|
|
1039
1059
|
...k && {
|
|
1040
|
-
alignmentOffset:
|
|
1060
|
+
alignmentOffset: R
|
|
1041
1061
|
}
|
|
1042
1062
|
},
|
|
1043
1063
|
reset: k
|
|
1044
1064
|
};
|
|
1045
1065
|
}
|
|
1046
|
-
}),
|
|
1066
|
+
}), Lr = function(e) {
|
|
1047
1067
|
return e === void 0 && (e = {}), {
|
|
1048
1068
|
name: "flip",
|
|
1049
1069
|
options: e,
|
|
@@ -1067,47 +1087,47 @@ const Or = (e) => ({
|
|
|
1067
1087
|
} = K(e, t);
|
|
1068
1088
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1069
1089
|
return {};
|
|
1070
|
-
const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !u ? [We(c)] :
|
|
1071
|
-
!p && g !== "none" && x.push(...
|
|
1090
|
+
const y = G(o), w = G(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), x = p || (w || !u ? [We(c)] : Ar(c));
|
|
1091
|
+
!p && g !== "none" && x.push(...Pr(c, u, g, b));
|
|
1072
1092
|
const E = [c, ...x], C = await Ce(t, v), S = [];
|
|
1073
|
-
let
|
|
1093
|
+
let A = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
1074
1094
|
if (h && S.push(C[y]), d) {
|
|
1075
|
-
const M =
|
|
1095
|
+
const M = Sr(o, s, b);
|
|
1076
1096
|
S.push(C[M[0]], C[M[1]]);
|
|
1077
1097
|
}
|
|
1078
|
-
if (
|
|
1098
|
+
if (A = [...A, {
|
|
1079
1099
|
placement: o,
|
|
1080
1100
|
overflows: S
|
|
1081
1101
|
}], !S.every((M) => M <= 0)) {
|
|
1082
|
-
var O,
|
|
1102
|
+
var O, N;
|
|
1083
1103
|
const M = (((O = i.flip) == null ? void 0 : O.index) || 0) + 1, I = E[M];
|
|
1084
1104
|
if (I)
|
|
1085
1105
|
return {
|
|
1086
1106
|
data: {
|
|
1087
1107
|
index: M,
|
|
1088
|
-
overflows:
|
|
1108
|
+
overflows: A
|
|
1089
1109
|
},
|
|
1090
1110
|
reset: {
|
|
1091
1111
|
placement: I
|
|
1092
1112
|
}
|
|
1093
1113
|
};
|
|
1094
|
-
let
|
|
1095
|
-
if (!
|
|
1114
|
+
let D = (N = A.filter((T) => T.overflows[0] <= 0).sort((T, k) => T.overflows[1] - k.overflows[1])[0]) == null ? void 0 : N.placement;
|
|
1115
|
+
if (!D)
|
|
1096
1116
|
switch (m) {
|
|
1097
1117
|
case "bestFit": {
|
|
1098
1118
|
var j;
|
|
1099
|
-
const T = (j =
|
|
1100
|
-
T && (
|
|
1119
|
+
const T = (j = A.map((k) => [k.placement, k.overflows.filter((R) => R > 0).reduce((R, W) => R + W, 0)]).sort((k, R) => k[1] - R[1])[0]) == null ? void 0 : j[0];
|
|
1120
|
+
T && (D = T);
|
|
1101
1121
|
break;
|
|
1102
1122
|
}
|
|
1103
1123
|
case "initialPlacement":
|
|
1104
|
-
|
|
1124
|
+
D = c;
|
|
1105
1125
|
break;
|
|
1106
1126
|
}
|
|
1107
|
-
if (o !==
|
|
1127
|
+
if (o !== D)
|
|
1108
1128
|
return {
|
|
1109
1129
|
reset: {
|
|
1110
|
-
placement:
|
|
1130
|
+
placement: D
|
|
1111
1131
|
}
|
|
1112
1132
|
};
|
|
1113
1133
|
}
|
|
@@ -1124,9 +1144,9 @@ function Ot(e, t) {
|
|
|
1124
1144
|
};
|
|
1125
1145
|
}
|
|
1126
1146
|
function Tt(e) {
|
|
1127
|
-
return
|
|
1147
|
+
return br.some((t) => e[t] >= 0);
|
|
1128
1148
|
}
|
|
1129
|
-
const
|
|
1149
|
+
const Dr = function(e) {
|
|
1130
1150
|
return e === void 0 && (e = {}), {
|
|
1131
1151
|
name: "hide",
|
|
1132
1152
|
options: e,
|
|
@@ -1168,7 +1188,7 @@ const Mr = function(e) {
|
|
|
1168
1188
|
}
|
|
1169
1189
|
};
|
|
1170
1190
|
};
|
|
1171
|
-
async function
|
|
1191
|
+
async function Nr(e, t) {
|
|
1172
1192
|
const {
|
|
1173
1193
|
placement: n,
|
|
1174
1194
|
platform: r,
|
|
@@ -1196,7 +1216,7 @@ async function Lr(e, t) {
|
|
|
1196
1216
|
y: m * h
|
|
1197
1217
|
};
|
|
1198
1218
|
}
|
|
1199
|
-
const
|
|
1219
|
+
const kr = function(e) {
|
|
1200
1220
|
return e === void 0 && (e = 0), {
|
|
1201
1221
|
name: "offset",
|
|
1202
1222
|
options: e,
|
|
@@ -1207,7 +1227,7 @@ const Nr = function(e) {
|
|
|
1207
1227
|
y: i,
|
|
1208
1228
|
placement: s,
|
|
1209
1229
|
middlewareData: c
|
|
1210
|
-
} = t, a = await
|
|
1230
|
+
} = t, a = await Nr(t, e);
|
|
1211
1231
|
return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
|
|
1212
1232
|
x: o + a.x,
|
|
1213
1233
|
y: i + a.y,
|
|
@@ -1218,7 +1238,7 @@ const Nr = function(e) {
|
|
|
1218
1238
|
};
|
|
1219
1239
|
}
|
|
1220
1240
|
};
|
|
1221
|
-
},
|
|
1241
|
+
}, Fr = function(e) {
|
|
1222
1242
|
return e === void 0 && (e = {}), {
|
|
1223
1243
|
name: "shift",
|
|
1224
1244
|
options: e,
|
|
@@ -1270,7 +1290,7 @@ const Nr = function(e) {
|
|
|
1270
1290
|
};
|
|
1271
1291
|
}
|
|
1272
1292
|
};
|
|
1273
|
-
},
|
|
1293
|
+
}, Ir = function(e) {
|
|
1274
1294
|
return e === void 0 && (e = {}), {
|
|
1275
1295
|
options: e,
|
|
1276
1296
|
fn(t) {
|
|
@@ -1312,7 +1332,7 @@ const Nr = function(e) {
|
|
|
1312
1332
|
};
|
|
1313
1333
|
}
|
|
1314
1334
|
};
|
|
1315
|
-
},
|
|
1335
|
+
}, Wr = function(e) {
|
|
1316
1336
|
return e === void 0 && (e = {}), {
|
|
1317
1337
|
name: "size",
|
|
1318
1338
|
options: e,
|
|
@@ -1342,8 +1362,8 @@ const Nr = function(e) {
|
|
|
1342
1362
|
b = h || w ? te(v, C) : C;
|
|
1343
1363
|
}
|
|
1344
1364
|
if (w && !h) {
|
|
1345
|
-
const C = _(a.left, 0), S = _(a.right, 0),
|
|
1346
|
-
d ? x = p - 2 * (C !== 0 || S !== 0 ? C + S : _(a.left, a.right)) : b = m - 2 * (
|
|
1365
|
+
const C = _(a.left, 0), S = _(a.right, 0), A = _(a.top, 0), O = _(a.bottom, 0);
|
|
1366
|
+
d ? x = p - 2 * (C !== 0 || S !== 0 ? C + S : _(a.left, a.right)) : b = m - 2 * (A !== 0 || O !== 0 ? A + O : _(a.top, a.bottom));
|
|
1347
1367
|
}
|
|
1348
1368
|
await s({
|
|
1349
1369
|
...t,
|
|
@@ -1382,7 +1402,7 @@ function Y(e) {
|
|
|
1382
1402
|
function Mt(e) {
|
|
1383
1403
|
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
|
|
1384
1404
|
}
|
|
1385
|
-
function
|
|
1405
|
+
function Ae(e) {
|
|
1386
1406
|
const {
|
|
1387
1407
|
overflow: t,
|
|
1388
1408
|
overflowX: n,
|
|
@@ -1391,14 +1411,14 @@ function Re(e) {
|
|
|
1391
1411
|
} = $(e);
|
|
1392
1412
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
1393
1413
|
}
|
|
1394
|
-
function
|
|
1414
|
+
function _r(e) {
|
|
1395
1415
|
return ["table", "td", "th"].includes(ge(e));
|
|
1396
1416
|
}
|
|
1397
1417
|
function st(e) {
|
|
1398
1418
|
const t = ct(), n = $(e);
|
|
1399
1419
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
1400
1420
|
}
|
|
1401
|
-
function
|
|
1421
|
+
function Br(e) {
|
|
1402
1422
|
let t = re(e);
|
|
1403
1423
|
for (; Y(t) && !me(t); ) {
|
|
1404
1424
|
if (st(t))
|
|
@@ -1439,13 +1459,13 @@ function re(e) {
|
|
|
1439
1459
|
}
|
|
1440
1460
|
function qt(e) {
|
|
1441
1461
|
const t = re(e);
|
|
1442
|
-
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) &&
|
|
1462
|
+
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && Ae(t) ? t : qt(t);
|
|
1443
1463
|
}
|
|
1444
1464
|
function Se(e, t, n) {
|
|
1445
1465
|
var r;
|
|
1446
1466
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1447
1467
|
const o = qt(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
|
|
1448
|
-
return i ? t.concat(s, s.visualViewport || [],
|
|
1468
|
+
return i ? t.concat(s, s.visualViewport || [], Ae(o) ? o : [], s.frameElement && n ? Se(s.frameElement) : []) : t.concat(o, Se(o, [], n));
|
|
1449
1469
|
}
|
|
1450
1470
|
function Zt(e) {
|
|
1451
1471
|
const t = $(e);
|
|
@@ -1475,15 +1495,15 @@ function de(e) {
|
|
|
1475
1495
|
y: c
|
|
1476
1496
|
};
|
|
1477
1497
|
}
|
|
1478
|
-
const
|
|
1498
|
+
const jr = /* @__PURE__ */ ne(0);
|
|
1479
1499
|
function Qt(e) {
|
|
1480
1500
|
const t = B(e);
|
|
1481
|
-
return !ct() || !t.visualViewport ?
|
|
1501
|
+
return !ct() || !t.visualViewport ? jr : {
|
|
1482
1502
|
x: t.visualViewport.offsetLeft,
|
|
1483
1503
|
y: t.visualViewport.offsetTop
|
|
1484
1504
|
};
|
|
1485
1505
|
}
|
|
1486
|
-
function
|
|
1506
|
+
function $r(e, t, n) {
|
|
1487
1507
|
return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
|
|
1488
1508
|
}
|
|
1489
1509
|
function ce(e, t, n, r) {
|
|
@@ -1491,7 +1511,7 @@ function ce(e, t, n, r) {
|
|
|
1491
1511
|
const o = e.getBoundingClientRect(), i = at(e);
|
|
1492
1512
|
let s = ne(1);
|
|
1493
1513
|
t && (r ? U(r) && (s = de(r)) : s = de(e));
|
|
1494
|
-
const c =
|
|
1514
|
+
const c = $r(i, n, r) ? Qt(i) : ne(0);
|
|
1495
1515
|
let a = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, h = o.width / s.x, d = o.height / s.y;
|
|
1496
1516
|
if (i) {
|
|
1497
1517
|
const p = B(i), m = r && U(r) ? B(r) : r;
|
|
@@ -1508,9 +1528,9 @@ function ce(e, t, n, r) {
|
|
|
1508
1528
|
y: l
|
|
1509
1529
|
});
|
|
1510
1530
|
}
|
|
1511
|
-
const
|
|
1531
|
+
const Hr = [":popover-open", ":modal"];
|
|
1512
1532
|
function lt(e) {
|
|
1513
|
-
return
|
|
1533
|
+
return Hr.some((t) => {
|
|
1514
1534
|
try {
|
|
1515
1535
|
return e.matches(t);
|
|
1516
1536
|
} catch {
|
|
@@ -1518,7 +1538,7 @@ function lt(e) {
|
|
|
1518
1538
|
}
|
|
1519
1539
|
});
|
|
1520
1540
|
}
|
|
1521
|
-
function
|
|
1541
|
+
function Vr(e) {
|
|
1522
1542
|
let {
|
|
1523
1543
|
elements: t,
|
|
1524
1544
|
rect: n,
|
|
@@ -1533,7 +1553,7 @@ function $r(e) {
|
|
|
1533
1553
|
scrollTop: 0
|
|
1534
1554
|
}, l = ne(1);
|
|
1535
1555
|
const h = ne(0), d = Y(r);
|
|
1536
|
-
if ((d || !d && !i) && ((ge(r) !== "body" ||
|
|
1556
|
+
if ((d || !d && !i) && ((ge(r) !== "body" || Ae(s)) && (a = je(r)), Y(r))) {
|
|
1537
1557
|
const p = ce(r);
|
|
1538
1558
|
l = de(r), h.x = p.x + r.clientLeft, h.y = p.y + r.clientTop;
|
|
1539
1559
|
}
|
|
@@ -1544,13 +1564,13 @@ function $r(e) {
|
|
|
1544
1564
|
y: n.y * l.y - a.scrollTop * l.y + h.y
|
|
1545
1565
|
};
|
|
1546
1566
|
}
|
|
1547
|
-
function
|
|
1567
|
+
function zr(e) {
|
|
1548
1568
|
return Array.from(e.getClientRects());
|
|
1549
1569
|
}
|
|
1550
1570
|
function Jt(e) {
|
|
1551
1571
|
return ce(q(e)).left + je(e).scrollLeft;
|
|
1552
1572
|
}
|
|
1553
|
-
function
|
|
1573
|
+
function Ur(e) {
|
|
1554
1574
|
const t = q(e), n = je(e), r = e.ownerDocument.body, o = _(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = _(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1555
1575
|
let s = -n.scrollLeft + Jt(e);
|
|
1556
1576
|
const c = -n.scrollTop;
|
|
@@ -1561,7 +1581,7 @@ function Vr(e) {
|
|
|
1561
1581
|
y: c
|
|
1562
1582
|
};
|
|
1563
1583
|
}
|
|
1564
|
-
function
|
|
1584
|
+
function Yr(e, t) {
|
|
1565
1585
|
const n = B(e), r = q(e), o = n.visualViewport;
|
|
1566
1586
|
let i = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
|
|
1567
1587
|
if (o) {
|
|
@@ -1576,7 +1596,7 @@ function zr(e, t) {
|
|
|
1576
1596
|
y: a
|
|
1577
1597
|
};
|
|
1578
1598
|
}
|
|
1579
|
-
function
|
|
1599
|
+
function Xr(e, t) {
|
|
1580
1600
|
const n = ce(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Y(e) ? de(e) : ne(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, a = o * i.x, l = r * i.y;
|
|
1581
1601
|
return {
|
|
1582
1602
|
width: s,
|
|
@@ -1588,11 +1608,11 @@ function Ur(e, t) {
|
|
|
1588
1608
|
function Lt(e, t, n) {
|
|
1589
1609
|
let r;
|
|
1590
1610
|
if (t === "viewport")
|
|
1591
|
-
r =
|
|
1611
|
+
r = Yr(e, n);
|
|
1592
1612
|
else if (t === "document")
|
|
1593
|
-
r =
|
|
1613
|
+
r = Ur(q(e));
|
|
1594
1614
|
else if (U(t))
|
|
1595
|
-
r =
|
|
1615
|
+
r = Xr(t, n);
|
|
1596
1616
|
else {
|
|
1597
1617
|
const o = Qt(e);
|
|
1598
1618
|
r = {
|
|
@@ -1607,7 +1627,7 @@ function en(e, t) {
|
|
|
1607
1627
|
const n = re(e);
|
|
1608
1628
|
return n === t || !U(n) || me(n) ? !1 : $(n).position === "fixed" || en(n, t);
|
|
1609
1629
|
}
|
|
1610
|
-
function
|
|
1630
|
+
function Kr(e, t) {
|
|
1611
1631
|
const n = t.get(e);
|
|
1612
1632
|
if (n)
|
|
1613
1633
|
return n;
|
|
@@ -1616,18 +1636,18 @@ function Yr(e, t) {
|
|
|
1616
1636
|
let s = i ? re(e) : e;
|
|
1617
1637
|
for (; U(s) && !me(s); ) {
|
|
1618
1638
|
const c = $(s), a = st(s);
|
|
1619
|
-
!a && c.position === "fixed" && (o = null), (i ? !a && !o : !a && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
1639
|
+
!a && c.position === "fixed" && (o = null), (i ? !a && !o : !a && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ae(s) && !a && en(e, s)) ? r = r.filter((h) => h !== s) : o = c, s = re(s);
|
|
1620
1640
|
}
|
|
1621
1641
|
return t.set(e, r), r;
|
|
1622
1642
|
}
|
|
1623
|
-
function
|
|
1643
|
+
function Gr(e) {
|
|
1624
1644
|
let {
|
|
1625
1645
|
element: t,
|
|
1626
1646
|
boundary: n,
|
|
1627
1647
|
rootBoundary: r,
|
|
1628
1648
|
strategy: o
|
|
1629
1649
|
} = e;
|
|
1630
|
-
const s = [...n === "clippingAncestors" ? lt(t) ? [] :
|
|
1650
|
+
const s = [...n === "clippingAncestors" ? lt(t) ? [] : Kr(t, this._c) : [].concat(n), r], c = s[0], a = s.reduce((l, h) => {
|
|
1631
1651
|
const d = Lt(t, h, o);
|
|
1632
1652
|
return l.top = _(d.top, l.top), l.right = te(d.right, l.right), l.bottom = te(d.bottom, l.bottom), l.left = _(d.left, l.left), l;
|
|
1633
1653
|
}, Lt(t, c, o));
|
|
@@ -1638,7 +1658,7 @@ function Xr(e) {
|
|
|
1638
1658
|
y: a.top
|
|
1639
1659
|
};
|
|
1640
1660
|
}
|
|
1641
|
-
function
|
|
1661
|
+
function qr(e) {
|
|
1642
1662
|
const {
|
|
1643
1663
|
width: t,
|
|
1644
1664
|
height: n
|
|
@@ -1648,7 +1668,7 @@ function Kr(e) {
|
|
|
1648
1668
|
height: n
|
|
1649
1669
|
};
|
|
1650
1670
|
}
|
|
1651
|
-
function
|
|
1671
|
+
function Zr(e, t, n) {
|
|
1652
1672
|
const r = Y(t), o = q(t), i = n === "fixed", s = ce(e, !0, i, t);
|
|
1653
1673
|
let c = {
|
|
1654
1674
|
scrollLeft: 0,
|
|
@@ -1656,7 +1676,7 @@ function Gr(e, t, n) {
|
|
|
1656
1676
|
};
|
|
1657
1677
|
const a = ne(0);
|
|
1658
1678
|
if (r || !r && !i)
|
|
1659
|
-
if ((ge(t) !== "body" ||
|
|
1679
|
+
if ((ge(t) !== "body" || Ae(o)) && (c = je(t)), r) {
|
|
1660
1680
|
const d = ce(t, !0, i, t);
|
|
1661
1681
|
a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
|
|
1662
1682
|
} else o && (a.x = Jt(o));
|
|
@@ -1671,7 +1691,7 @@ function Gr(e, t, n) {
|
|
|
1671
1691
|
function Xe(e) {
|
|
1672
1692
|
return $(e).position === "static";
|
|
1673
1693
|
}
|
|
1674
|
-
function
|
|
1694
|
+
function Dt(e, t) {
|
|
1675
1695
|
return !Y(e) || $(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1676
1696
|
}
|
|
1677
1697
|
function tn(e, t) {
|
|
@@ -1687,15 +1707,15 @@ function tn(e, t) {
|
|
|
1687
1707
|
}
|
|
1688
1708
|
return n;
|
|
1689
1709
|
}
|
|
1690
|
-
let r =
|
|
1691
|
-
for (; r &&
|
|
1692
|
-
r =
|
|
1693
|
-
return r && me(r) && Xe(r) && !st(r) ? n : r ||
|
|
1710
|
+
let r = Dt(e, t);
|
|
1711
|
+
for (; r && _r(r) && Xe(r); )
|
|
1712
|
+
r = Dt(r, t);
|
|
1713
|
+
return r && me(r) && Xe(r) && !st(r) ? n : r || Br(e) || n;
|
|
1694
1714
|
}
|
|
1695
|
-
const
|
|
1715
|
+
const Qr = async function(e) {
|
|
1696
1716
|
const t = this.getOffsetParent || tn, n = this.getDimensions, r = await n(e.floating);
|
|
1697
1717
|
return {
|
|
1698
|
-
reference:
|
|
1718
|
+
reference: Zr(e.reference, await t(e.floating), e.strategy),
|
|
1699
1719
|
floating: {
|
|
1700
1720
|
x: 0,
|
|
1701
1721
|
y: 0,
|
|
@@ -1704,22 +1724,22 @@ const qr = async function(e) {
|
|
|
1704
1724
|
}
|
|
1705
1725
|
};
|
|
1706
1726
|
};
|
|
1707
|
-
function
|
|
1727
|
+
function Jr(e) {
|
|
1708
1728
|
return $(e).direction === "rtl";
|
|
1709
1729
|
}
|
|
1710
|
-
const
|
|
1711
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1730
|
+
const eo = {
|
|
1731
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Vr,
|
|
1712
1732
|
getDocumentElement: q,
|
|
1713
|
-
getClippingRect:
|
|
1733
|
+
getClippingRect: Gr,
|
|
1714
1734
|
getOffsetParent: tn,
|
|
1715
|
-
getElementRects:
|
|
1716
|
-
getClientRects:
|
|
1717
|
-
getDimensions:
|
|
1735
|
+
getElementRects: Qr,
|
|
1736
|
+
getClientRects: zr,
|
|
1737
|
+
getDimensions: qr,
|
|
1718
1738
|
getScale: de,
|
|
1719
1739
|
isElement: U,
|
|
1720
|
-
isRTL:
|
|
1740
|
+
isRTL: Jr
|
|
1721
1741
|
};
|
|
1722
|
-
function
|
|
1742
|
+
function to(e, t) {
|
|
1723
1743
|
let n = null, r;
|
|
1724
1744
|
const o = q(e);
|
|
1725
1745
|
function i() {
|
|
@@ -1765,7 +1785,7 @@ function Jr(e, t) {
|
|
|
1765
1785
|
}
|
|
1766
1786
|
return s(!0), i;
|
|
1767
1787
|
}
|
|
1768
|
-
function
|
|
1788
|
+
function no(e, t, n, r) {
|
|
1769
1789
|
r === void 0 && (r = {});
|
|
1770
1790
|
const {
|
|
1771
1791
|
ancestorScroll: o = !0,
|
|
@@ -1779,7 +1799,7 @@ function eo(e, t, n, r) {
|
|
|
1779
1799
|
passive: !0
|
|
1780
1800
|
}), i && y.addEventListener("resize", n);
|
|
1781
1801
|
});
|
|
1782
|
-
const d = l && c ?
|
|
1802
|
+
const d = l && c ? to(l, n) : null;
|
|
1783
1803
|
let p = -1, m = null;
|
|
1784
1804
|
s && (m = new ResizeObserver((y) => {
|
|
1785
1805
|
let [w] = y;
|
|
@@ -1801,19 +1821,19 @@ function eo(e, t, n, r) {
|
|
|
1801
1821
|
}), d == null || d(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(g);
|
|
1802
1822
|
};
|
|
1803
1823
|
}
|
|
1804
|
-
const
|
|
1824
|
+
const ro = kr, oo = Fr, io = Lr, so = Wr, co = Dr, Nt = Mr, ao = Ir, lo = (e, t, n) => {
|
|
1805
1825
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
1806
|
-
platform:
|
|
1826
|
+
platform: eo,
|
|
1807
1827
|
...n
|
|
1808
1828
|
}, i = {
|
|
1809
1829
|
...o.platform,
|
|
1810
1830
|
_c: r
|
|
1811
1831
|
};
|
|
1812
|
-
return
|
|
1832
|
+
return Tr(e, t, {
|
|
1813
1833
|
...o,
|
|
1814
1834
|
platform: i
|
|
1815
1835
|
});
|
|
1816
|
-
},
|
|
1836
|
+
}, uo = (e) => {
|
|
1817
1837
|
function t(n) {
|
|
1818
1838
|
return {}.hasOwnProperty.call(n, "current");
|
|
1819
1839
|
}
|
|
@@ -1825,17 +1845,17 @@ const to = Nr, no = Dr, ro = Tr, oo = Fr, io = Mr, Dt = Or, so = kr, co = (e, t,
|
|
|
1825
1845
|
element: r,
|
|
1826
1846
|
padding: o
|
|
1827
1847
|
} = typeof e == "function" ? e(n) : e;
|
|
1828
|
-
return r && t(r) ? r.current != null ?
|
|
1848
|
+
return r && t(r) ? r.current != null ? Nt({
|
|
1829
1849
|
element: r.current,
|
|
1830
1850
|
padding: o
|
|
1831
|
-
}).fn(n) : {} : r ?
|
|
1851
|
+
}).fn(n) : {} : r ? Nt({
|
|
1832
1852
|
element: r,
|
|
1833
1853
|
padding: o
|
|
1834
1854
|
}).fn(n) : {};
|
|
1835
1855
|
}
|
|
1836
1856
|
};
|
|
1837
1857
|
};
|
|
1838
|
-
var
|
|
1858
|
+
var Ne = typeof document < "u" ? kn : Fn;
|
|
1839
1859
|
function Be(e, t) {
|
|
1840
1860
|
if (e === t)
|
|
1841
1861
|
return !0;
|
|
@@ -1875,11 +1895,11 @@ function kt(e, t) {
|
|
|
1875
1895
|
}
|
|
1876
1896
|
function Ft(e) {
|
|
1877
1897
|
const t = f.useRef(e);
|
|
1878
|
-
return
|
|
1898
|
+
return Ne(() => {
|
|
1879
1899
|
t.current = e;
|
|
1880
1900
|
}), t;
|
|
1881
1901
|
}
|
|
1882
|
-
function
|
|
1902
|
+
function fo(e) {
|
|
1883
1903
|
e === void 0 && (e = {});
|
|
1884
1904
|
const {
|
|
1885
1905
|
placement: t = "bottom",
|
|
@@ -1902,45 +1922,45 @@ function lo(e) {
|
|
|
1902
1922
|
isPositioned: !1
|
|
1903
1923
|
}), [p, m] = f.useState(r);
|
|
1904
1924
|
Be(p, r) || m(r);
|
|
1905
|
-
const [g, u] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((
|
|
1906
|
-
|
|
1907
|
-
}, []), b = f.useCallback((
|
|
1908
|
-
|
|
1909
|
-
}, []), x = i || g, E = s || v, C = f.useRef(null), S = f.useRef(null),
|
|
1925
|
+
const [g, u] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((R) => {
|
|
1926
|
+
R !== C.current && (C.current = R, u(R));
|
|
1927
|
+
}, []), b = f.useCallback((R) => {
|
|
1928
|
+
R !== S.current && (S.current = R, y(R));
|
|
1929
|
+
}, []), x = i || g, E = s || v, C = f.useRef(null), S = f.useRef(null), A = f.useRef(h), O = a != null, N = Ft(a), j = Ft(o), M = f.useCallback(() => {
|
|
1910
1930
|
if (!C.current || !S.current)
|
|
1911
1931
|
return;
|
|
1912
|
-
const
|
|
1932
|
+
const R = {
|
|
1913
1933
|
placement: t,
|
|
1914
1934
|
strategy: n,
|
|
1915
1935
|
middleware: p
|
|
1916
1936
|
};
|
|
1917
|
-
j.current && (
|
|
1937
|
+
j.current && (R.platform = j.current), lo(C.current, S.current, R).then((W) => {
|
|
1918
1938
|
const X = {
|
|
1919
1939
|
...W,
|
|
1920
1940
|
isPositioned: !0
|
|
1921
1941
|
};
|
|
1922
|
-
I.current && !Be(
|
|
1942
|
+
I.current && !Be(A.current, X) && (A.current = X, Ht.flushSync(() => {
|
|
1923
1943
|
d(X);
|
|
1924
1944
|
}));
|
|
1925
1945
|
});
|
|
1926
1946
|
}, [p, t, n, j]);
|
|
1927
|
-
|
|
1928
|
-
l === !1 &&
|
|
1929
|
-
...
|
|
1947
|
+
Ne(() => {
|
|
1948
|
+
l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((R) => ({
|
|
1949
|
+
...R,
|
|
1930
1950
|
isPositioned: !1
|
|
1931
1951
|
})));
|
|
1932
1952
|
}, [l]);
|
|
1933
1953
|
const I = f.useRef(!1);
|
|
1934
|
-
|
|
1954
|
+
Ne(() => (I.current = !0, () => {
|
|
1935
1955
|
I.current = !1;
|
|
1936
|
-
}), []),
|
|
1956
|
+
}), []), Ne(() => {
|
|
1937
1957
|
if (x && (C.current = x), E && (S.current = E), x && E) {
|
|
1938
|
-
if (
|
|
1939
|
-
return
|
|
1958
|
+
if (N.current)
|
|
1959
|
+
return N.current(x, E, M);
|
|
1940
1960
|
M();
|
|
1941
1961
|
}
|
|
1942
|
-
}, [x, E, M,
|
|
1943
|
-
const
|
|
1962
|
+
}, [x, E, M, N, O]);
|
|
1963
|
+
const D = f.useMemo(() => ({
|
|
1944
1964
|
reference: C,
|
|
1945
1965
|
floating: S,
|
|
1946
1966
|
setReference: w,
|
|
@@ -1949,16 +1969,16 @@ function lo(e) {
|
|
|
1949
1969
|
reference: x,
|
|
1950
1970
|
floating: E
|
|
1951
1971
|
}), [x, E]), k = f.useMemo(() => {
|
|
1952
|
-
const
|
|
1972
|
+
const R = {
|
|
1953
1973
|
position: n,
|
|
1954
1974
|
left: 0,
|
|
1955
1975
|
top: 0
|
|
1956
1976
|
};
|
|
1957
1977
|
if (!T.floating)
|
|
1958
|
-
return
|
|
1978
|
+
return R;
|
|
1959
1979
|
const W = kt(T.floating, h.x), X = kt(T.floating, h.y);
|
|
1960
1980
|
return c ? {
|
|
1961
|
-
...
|
|
1981
|
+
...R,
|
|
1962
1982
|
transform: "translate(" + W + "px, " + X + "px)",
|
|
1963
1983
|
...nn(T.floating) >= 1.5 && {
|
|
1964
1984
|
willChange: "transform"
|
|
@@ -1972,12 +1992,12 @@ function lo(e) {
|
|
|
1972
1992
|
return f.useMemo(() => ({
|
|
1973
1993
|
...h,
|
|
1974
1994
|
update: M,
|
|
1975
|
-
refs:
|
|
1995
|
+
refs: D,
|
|
1976
1996
|
elements: T,
|
|
1977
1997
|
floatingStyles: k
|
|
1978
|
-
}), [h, M,
|
|
1998
|
+
}), [h, M, D, T, k]);
|
|
1979
1999
|
}
|
|
1980
|
-
var
|
|
2000
|
+
var ho = "Arrow", rn = f.forwardRef((e, t) => {
|
|
1981
2001
|
const { children: n, width: r = 10, height: o = 5, ...i } = e;
|
|
1982
2002
|
return /* @__PURE__ */ P.jsx(
|
|
1983
2003
|
ae.svg,
|
|
@@ -1992,9 +2012,9 @@ var uo = "Arrow", rn = f.forwardRef((e, t) => {
|
|
|
1992
2012
|
}
|
|
1993
2013
|
);
|
|
1994
2014
|
});
|
|
1995
|
-
rn.displayName =
|
|
1996
|
-
var
|
|
1997
|
-
function
|
|
2015
|
+
rn.displayName = ho;
|
|
2016
|
+
var mo = rn;
|
|
2017
|
+
function po(e) {
|
|
1998
2018
|
const [t, n] = f.useState(void 0);
|
|
1999
2019
|
return Ee(() => {
|
|
2000
2020
|
if (e) {
|
|
@@ -2016,9 +2036,9 @@ function ho(e) {
|
|
|
2016
2036
|
n(void 0);
|
|
2017
2037
|
}, [e]), t;
|
|
2018
2038
|
}
|
|
2019
|
-
var ut = "Popper", [on,
|
|
2039
|
+
var ut = "Popper", [on, Ai] = zt(ut), [vo, sn] = on(ut), cn = (e) => {
|
|
2020
2040
|
const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
|
|
2021
|
-
return /* @__PURE__ */ P.jsx(
|
|
2041
|
+
return /* @__PURE__ */ P.jsx(vo, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
2022
2042
|
};
|
|
2023
2043
|
cn.displayName = ut;
|
|
2024
2044
|
var an = "PopperAnchor", ln = f.forwardRef(
|
|
@@ -2030,7 +2050,7 @@ var an = "PopperAnchor", ln = f.forwardRef(
|
|
|
2030
2050
|
}
|
|
2031
2051
|
);
|
|
2032
2052
|
ln.displayName = an;
|
|
2033
|
-
var ft = "PopperContent", [
|
|
2053
|
+
var ft = "PopperContent", [go, yo] = on(ft), un = f.forwardRef(
|
|
2034
2054
|
(e, t) => {
|
|
2035
2055
|
var dt, ht, mt, pt, vt, gt;
|
|
2036
2056
|
const {
|
|
@@ -2048,59 +2068,59 @@ var ft = "PopperContent", [po, vo] = on(ft), un = f.forwardRef(
|
|
|
2048
2068
|
updatePositionStrategy: m = "optimized",
|
|
2049
2069
|
onPlaced: g,
|
|
2050
2070
|
...u
|
|
2051
|
-
} = e, v = sn(ft, n), [y, w] = f.useState(null), b = se(t, (ye) => w(ye)), [x, E] = f.useState(null), C =
|
|
2052
|
-
padding:
|
|
2053
|
-
boundary: j.filter(
|
|
2071
|
+
} = e, v = sn(ft, n), [y, w] = f.useState(null), b = se(t, (ye) => w(ye)), [x, E] = f.useState(null), C = po(x), S = (C == null ? void 0 : C.width) ?? 0, A = (C == null ? void 0 : C.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), N = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, j = Array.isArray(l) ? l : [l], M = j.length > 0, I = {
|
|
2072
|
+
padding: N,
|
|
2073
|
+
boundary: j.filter(xo),
|
|
2054
2074
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2055
2075
|
altBoundary: M
|
|
2056
|
-
}, { refs:
|
|
2076
|
+
}, { refs: D, floatingStyles: T, placement: k, isPositioned: R, middlewareData: W } = fo({
|
|
2057
2077
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2058
2078
|
strategy: "fixed",
|
|
2059
2079
|
placement: O,
|
|
2060
|
-
whileElementsMounted: (...ye) =>
|
|
2080
|
+
whileElementsMounted: (...ye) => no(...ye, {
|
|
2061
2081
|
animationFrame: m === "always"
|
|
2062
2082
|
}),
|
|
2063
2083
|
elements: {
|
|
2064
2084
|
reference: v.anchor
|
|
2065
2085
|
},
|
|
2066
2086
|
middleware: [
|
|
2067
|
-
|
|
2068
|
-
a &&
|
|
2087
|
+
ro({ mainAxis: o + A, alignmentAxis: s }),
|
|
2088
|
+
a && oo({
|
|
2069
2089
|
mainAxis: !0,
|
|
2070
2090
|
crossAxis: !1,
|
|
2071
|
-
limiter: d === "partial" ?
|
|
2091
|
+
limiter: d === "partial" ? ao() : void 0,
|
|
2072
2092
|
...I
|
|
2073
2093
|
}),
|
|
2074
|
-
a &&
|
|
2075
|
-
|
|
2094
|
+
a && io({ ...I }),
|
|
2095
|
+
so({
|
|
2076
2096
|
...I,
|
|
2077
2097
|
apply: ({ elements: ye, rects: yt, availableWidth: On, availableHeight: Tn }) => {
|
|
2078
2098
|
const { width: Mn, height: Ln } = yt.reference, Pe = ye.floating.style;
|
|
2079
2099
|
Pe.setProperty("--radix-popper-available-width", `${On}px`), Pe.setProperty("--radix-popper-available-height", `${Tn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Mn}px`), Pe.setProperty("--radix-popper-anchor-height", `${Ln}px`);
|
|
2080
2100
|
}
|
|
2081
2101
|
}),
|
|
2082
|
-
x &&
|
|
2083
|
-
|
|
2084
|
-
p &&
|
|
2102
|
+
x && uo({ element: x, padding: c }),
|
|
2103
|
+
bo({ arrowWidth: S, arrowHeight: A }),
|
|
2104
|
+
p && co({ strategy: "referenceHidden", ...I })
|
|
2085
2105
|
]
|
|
2086
|
-
}), [X, En] = hn(k),
|
|
2106
|
+
}), [X, En] = hn(k), Re = ee(g);
|
|
2087
2107
|
Ee(() => {
|
|
2088
|
-
|
|
2089
|
-
}, [
|
|
2090
|
-
const Cn = (dt = W.arrow) == null ? void 0 : dt.x, Sn = (ht = W.arrow) == null ? void 0 : ht.y,
|
|
2108
|
+
R && (Re == null || Re());
|
|
2109
|
+
}, [R, Re]);
|
|
2110
|
+
const Cn = (dt = W.arrow) == null ? void 0 : dt.x, Sn = (ht = W.arrow) == null ? void 0 : ht.y, An = ((mt = W.arrow) == null ? void 0 : mt.centerOffset) !== 0, [Rn, Pn] = f.useState();
|
|
2091
2111
|
return Ee(() => {
|
|
2092
2112
|
y && Pn(window.getComputedStyle(y).zIndex);
|
|
2093
2113
|
}, [y]), /* @__PURE__ */ P.jsx(
|
|
2094
2114
|
"div",
|
|
2095
2115
|
{
|
|
2096
|
-
ref:
|
|
2116
|
+
ref: D.setFloating,
|
|
2097
2117
|
"data-radix-popper-content-wrapper": "",
|
|
2098
2118
|
style: {
|
|
2099
2119
|
...T,
|
|
2100
|
-
transform:
|
|
2120
|
+
transform: R ? T.transform : "translate(0, -200%)",
|
|
2101
2121
|
// keep off the page when measuring
|
|
2102
2122
|
minWidth: "max-content",
|
|
2103
|
-
zIndex:
|
|
2123
|
+
zIndex: Rn,
|
|
2104
2124
|
"--radix-popper-transform-origin": [
|
|
2105
2125
|
(pt = W.transformOrigin) == null ? void 0 : pt.x,
|
|
2106
2126
|
(vt = W.transformOrigin) == null ? void 0 : vt.y
|
|
@@ -2115,14 +2135,14 @@ var ft = "PopperContent", [po, vo] = on(ft), un = f.forwardRef(
|
|
|
2115
2135
|
},
|
|
2116
2136
|
dir: e.dir,
|
|
2117
2137
|
children: /* @__PURE__ */ P.jsx(
|
|
2118
|
-
|
|
2138
|
+
go,
|
|
2119
2139
|
{
|
|
2120
2140
|
scope: n,
|
|
2121
2141
|
placedSide: X,
|
|
2122
2142
|
onArrowChange: E,
|
|
2123
2143
|
arrowX: Cn,
|
|
2124
2144
|
arrowY: Sn,
|
|
2125
|
-
shouldHideArrow:
|
|
2145
|
+
shouldHideArrow: An,
|
|
2126
2146
|
children: /* @__PURE__ */ P.jsx(
|
|
2127
2147
|
ae.div,
|
|
2128
2148
|
{
|
|
@@ -2134,7 +2154,7 @@ var ft = "PopperContent", [po, vo] = on(ft), un = f.forwardRef(
|
|
|
2134
2154
|
...u.style,
|
|
2135
2155
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2136
2156
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2137
|
-
animation:
|
|
2157
|
+
animation: R ? void 0 : "none"
|
|
2138
2158
|
}
|
|
2139
2159
|
}
|
|
2140
2160
|
)
|
|
@@ -2145,13 +2165,13 @@ var ft = "PopperContent", [po, vo] = on(ft), un = f.forwardRef(
|
|
|
2145
2165
|
}
|
|
2146
2166
|
);
|
|
2147
2167
|
un.displayName = ft;
|
|
2148
|
-
var fn = "PopperArrow",
|
|
2168
|
+
var fn = "PopperArrow", wo = {
|
|
2149
2169
|
top: "bottom",
|
|
2150
2170
|
right: "left",
|
|
2151
2171
|
bottom: "top",
|
|
2152
2172
|
left: "right"
|
|
2153
2173
|
}, dn = f.forwardRef(function(t, n) {
|
|
2154
|
-
const { __scopePopper: r, ...o } = t, i =
|
|
2174
|
+
const { __scopePopper: r, ...o } = t, i = yo(fn, r), s = wo[i.placedSide];
|
|
2155
2175
|
return (
|
|
2156
2176
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2157
2177
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -2180,7 +2200,7 @@ var fn = "PopperArrow", go = {
|
|
|
2180
2200
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2181
2201
|
},
|
|
2182
2202
|
children: /* @__PURE__ */ P.jsx(
|
|
2183
|
-
|
|
2203
|
+
mo,
|
|
2184
2204
|
{
|
|
2185
2205
|
...o,
|
|
2186
2206
|
ref: n,
|
|
@@ -2196,10 +2216,10 @@ var fn = "PopperArrow", go = {
|
|
|
2196
2216
|
);
|
|
2197
2217
|
});
|
|
2198
2218
|
dn.displayName = fn;
|
|
2199
|
-
function
|
|
2219
|
+
function xo(e) {
|
|
2200
2220
|
return e !== null;
|
|
2201
2221
|
}
|
|
2202
|
-
var
|
|
2222
|
+
var bo = (e) => ({
|
|
2203
2223
|
name: "transformOrigin",
|
|
2204
2224
|
options: e,
|
|
2205
2225
|
fn(t) {
|
|
@@ -2213,22 +2233,22 @@ function hn(e) {
|
|
|
2213
2233
|
const [t, n = "center"] = e.split("-");
|
|
2214
2234
|
return [t, n];
|
|
2215
2235
|
}
|
|
2216
|
-
var
|
|
2236
|
+
var Ri = cn, Pi = ln, Oi = un, Ti = dn, Eo = "Portal", Co = f.forwardRef((e, t) => {
|
|
2217
2237
|
var c;
|
|
2218
2238
|
const { container: n, ...r } = e, [o, i] = f.useState(!1);
|
|
2219
2239
|
Ee(() => i(!0), []);
|
|
2220
2240
|
const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
2221
|
-
return s ?
|
|
2241
|
+
return s ? Hn.createPortal(/* @__PURE__ */ P.jsx(ae.div, { ...r, ref: t }), s) : null;
|
|
2222
2242
|
});
|
|
2223
|
-
|
|
2224
|
-
var
|
|
2243
|
+
Co.displayName = Eo;
|
|
2244
|
+
var So = function(e) {
|
|
2225
2245
|
if (typeof document > "u")
|
|
2226
2246
|
return null;
|
|
2227
2247
|
var t = Array.isArray(e) ? e[0] : e;
|
|
2228
2248
|
return t.ownerDocument.body;
|
|
2229
2249
|
}, le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Me = {}, Ke = 0, mn = function(e) {
|
|
2230
2250
|
return e && (e.host || mn(e.parentNode));
|
|
2231
|
-
},
|
|
2251
|
+
}, Ao = function(e, t) {
|
|
2232
2252
|
return t.map(function(n) {
|
|
2233
2253
|
if (e.contains(n))
|
|
2234
2254
|
return n;
|
|
@@ -2237,8 +2257,8 @@ var Eo = function(e) {
|
|
|
2237
2257
|
}).filter(function(n) {
|
|
2238
2258
|
return !!n;
|
|
2239
2259
|
});
|
|
2240
|
-
},
|
|
2241
|
-
var o =
|
|
2260
|
+
}, Ro = function(e, t, n, r) {
|
|
2261
|
+
var o = Ao(t, Array.isArray(e) ? e : [e]);
|
|
2242
2262
|
Me[n] || (Me[n] = /* @__PURE__ */ new WeakMap());
|
|
2243
2263
|
var i = Me[n], s = [], c = /* @__PURE__ */ new Set(), a = new Set(o), l = function(d) {
|
|
2244
2264
|
!d || c.has(d) || (c.add(d), l(d.parentNode));
|
|
@@ -2263,10 +2283,10 @@ var Eo = function(e) {
|
|
|
2263
2283
|
le.set(d, p), i.set(d, m), p || (Te.has(d) || d.removeAttribute(r), Te.delete(d)), m || d.removeAttribute(n);
|
|
2264
2284
|
}), Ke--, Ke || (le = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Me = {});
|
|
2265
2285
|
};
|
|
2266
|
-
},
|
|
2286
|
+
}, Mi = function(e, t, n) {
|
|
2267
2287
|
n === void 0 && (n = "data-aria-hidden");
|
|
2268
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
2269
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))),
|
|
2288
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = So(e);
|
|
2289
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ro(r, o, n, "aria-hidden")) : function() {
|
|
2270
2290
|
return null;
|
|
2271
2291
|
};
|
|
2272
2292
|
}, z = function() {
|
|
@@ -2286,16 +2306,16 @@ function pn(e, t) {
|
|
|
2286
2306
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
2287
2307
|
return n;
|
|
2288
2308
|
}
|
|
2289
|
-
function
|
|
2309
|
+
function Po(e, t, n) {
|
|
2290
2310
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
|
|
2291
2311
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
2292
2312
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
2293
2313
|
}
|
|
2294
|
-
var ke = "right-scroll-bar-position", Fe = "width-before-scroll-bar",
|
|
2314
|
+
var ke = "right-scroll-bar-position", Fe = "width-before-scroll-bar", Oo = "with-scroll-bars-hidden", To = "--removed-body-scroll-bar-size";
|
|
2295
2315
|
function Ge(e, t) {
|
|
2296
2316
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2297
2317
|
}
|
|
2298
|
-
function
|
|
2318
|
+
function Mo(e, t) {
|
|
2299
2319
|
var n = In(function() {
|
|
2300
2320
|
return {
|
|
2301
2321
|
// value
|
|
@@ -2316,14 +2336,14 @@ function Oo(e, t) {
|
|
|
2316
2336
|
})[0];
|
|
2317
2337
|
return n.callback = t, n.facade;
|
|
2318
2338
|
}
|
|
2319
|
-
var
|
|
2320
|
-
function
|
|
2321
|
-
var n =
|
|
2339
|
+
var Lo = typeof window < "u" ? f.useLayoutEffect : f.useEffect, It = /* @__PURE__ */ new WeakMap();
|
|
2340
|
+
function Do(e, t) {
|
|
2341
|
+
var n = Mo(null, function(r) {
|
|
2322
2342
|
return e.forEach(function(o) {
|
|
2323
2343
|
return Ge(o, r);
|
|
2324
2344
|
});
|
|
2325
2345
|
});
|
|
2326
|
-
return
|
|
2346
|
+
return Lo(function() {
|
|
2327
2347
|
var r = It.get(n);
|
|
2328
2348
|
if (r) {
|
|
2329
2349
|
var o = new Set(r), i = new Set(e), s = n.current;
|
|
@@ -2336,11 +2356,11 @@ function Mo(e, t) {
|
|
|
2336
2356
|
It.set(n, e);
|
|
2337
2357
|
}, [e]), n;
|
|
2338
2358
|
}
|
|
2339
|
-
function
|
|
2359
|
+
function No(e) {
|
|
2340
2360
|
return e;
|
|
2341
2361
|
}
|
|
2342
|
-
function
|
|
2343
|
-
t === void 0 && (t =
|
|
2362
|
+
function ko(e, t) {
|
|
2363
|
+
t === void 0 && (t = No);
|
|
2344
2364
|
var n = [], r = !1, o = {
|
|
2345
2365
|
read: function() {
|
|
2346
2366
|
if (r)
|
|
@@ -2394,9 +2414,9 @@ function No(e, t) {
|
|
|
2394
2414
|
};
|
|
2395
2415
|
return o;
|
|
2396
2416
|
}
|
|
2397
|
-
function
|
|
2417
|
+
function Fo(e) {
|
|
2398
2418
|
e === void 0 && (e = {});
|
|
2399
|
-
var t =
|
|
2419
|
+
var t = ko(null);
|
|
2400
2420
|
return t.options = z({ async: !0, ssr: !1 }, e), t;
|
|
2401
2421
|
}
|
|
2402
2422
|
var vn = function(e) {
|
|
@@ -2409,16 +2429,16 @@ var vn = function(e) {
|
|
|
2409
2429
|
return f.createElement(r, z({}, n));
|
|
2410
2430
|
};
|
|
2411
2431
|
vn.isSideCarExport = !0;
|
|
2412
|
-
function
|
|
2432
|
+
function Io(e, t) {
|
|
2413
2433
|
return e.useMedium(t), vn;
|
|
2414
2434
|
}
|
|
2415
|
-
var gn =
|
|
2435
|
+
var gn = Fo(), qe = function() {
|
|
2416
2436
|
}, $e = f.forwardRef(function(e, t) {
|
|
2417
2437
|
var n = f.useRef(null), r = f.useState({
|
|
2418
2438
|
onScrollCapture: qe,
|
|
2419
2439
|
onWheelCapture: qe,
|
|
2420
2440
|
onTouchMoveCapture: qe
|
|
2421
|
-
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, g = e.inert, u = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E =
|
|
2441
|
+
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, g = e.inert, u = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = Do([n, t]), C = z(z({}, b), o);
|
|
2422
2442
|
return f.createElement(
|
|
2423
2443
|
f.Fragment,
|
|
2424
2444
|
null,
|
|
@@ -2435,37 +2455,37 @@ $e.classNames = {
|
|
|
2435
2455
|
fullWidth: Fe,
|
|
2436
2456
|
zeroRight: ke
|
|
2437
2457
|
};
|
|
2438
|
-
var
|
|
2458
|
+
var Wo = function() {
|
|
2439
2459
|
if (typeof __webpack_nonce__ < "u")
|
|
2440
2460
|
return __webpack_nonce__;
|
|
2441
2461
|
};
|
|
2442
|
-
function
|
|
2462
|
+
function _o() {
|
|
2443
2463
|
if (!document)
|
|
2444
2464
|
return null;
|
|
2445
2465
|
var e = document.createElement("style");
|
|
2446
2466
|
e.type = "text/css";
|
|
2447
|
-
var t =
|
|
2467
|
+
var t = Wo();
|
|
2448
2468
|
return t && e.setAttribute("nonce", t), e;
|
|
2449
2469
|
}
|
|
2450
|
-
function
|
|
2470
|
+
function Bo(e, t) {
|
|
2451
2471
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2452
2472
|
}
|
|
2453
|
-
function
|
|
2473
|
+
function jo(e) {
|
|
2454
2474
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
2455
2475
|
t.appendChild(e);
|
|
2456
2476
|
}
|
|
2457
|
-
var
|
|
2477
|
+
var $o = function() {
|
|
2458
2478
|
var e = 0, t = null;
|
|
2459
2479
|
return {
|
|
2460
2480
|
add: function(n) {
|
|
2461
|
-
e == 0 && (t =
|
|
2481
|
+
e == 0 && (t = _o()) && (Bo(t, n), jo(t)), e++;
|
|
2462
2482
|
},
|
|
2463
2483
|
remove: function() {
|
|
2464
2484
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2465
2485
|
}
|
|
2466
2486
|
};
|
|
2467
|
-
},
|
|
2468
|
-
var e =
|
|
2487
|
+
}, Ho = function() {
|
|
2488
|
+
var e = $o();
|
|
2469
2489
|
return function(t, n) {
|
|
2470
2490
|
f.useEffect(function() {
|
|
2471
2491
|
return e.add(t), function() {
|
|
@@ -2474,35 +2494,35 @@ var Bo = function() {
|
|
|
2474
2494
|
}, [t && n]);
|
|
2475
2495
|
};
|
|
2476
2496
|
}, yn = function() {
|
|
2477
|
-
var e =
|
|
2497
|
+
var e = Ho(), t = function(n) {
|
|
2478
2498
|
var r = n.styles, o = n.dynamic;
|
|
2479
2499
|
return e(r, o), null;
|
|
2480
2500
|
};
|
|
2481
2501
|
return t;
|
|
2482
|
-
},
|
|
2502
|
+
}, Vo = {
|
|
2483
2503
|
left: 0,
|
|
2484
2504
|
top: 0,
|
|
2485
2505
|
right: 0,
|
|
2486
2506
|
gap: 0
|
|
2487
2507
|
}, Ze = function(e) {
|
|
2488
2508
|
return parseInt(e || "", 10) || 0;
|
|
2489
|
-
},
|
|
2509
|
+
}, zo = function(e) {
|
|
2490
2510
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2491
2511
|
return [Ze(n), Ze(r), Ze(o)];
|
|
2492
|
-
},
|
|
2512
|
+
}, Uo = function(e) {
|
|
2493
2513
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
2494
|
-
return
|
|
2495
|
-
var t =
|
|
2514
|
+
return Vo;
|
|
2515
|
+
var t = zo(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2496
2516
|
return {
|
|
2497
2517
|
left: t[0],
|
|
2498
2518
|
top: t[1],
|
|
2499
2519
|
right: t[2],
|
|
2500
2520
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2501
2521
|
};
|
|
2502
|
-
},
|
|
2522
|
+
}, Yo = yn(), he = "data-scroll-locked", Xo = function(e, t, n, r) {
|
|
2503
2523
|
var o = e.left, i = e.top, s = e.right, c = e.gap;
|
|
2504
2524
|
return n === void 0 && (n = "margin"), `
|
|
2505
|
-
.`.concat(
|
|
2525
|
+
.`.concat(Oo, ` {
|
|
2506
2526
|
overflow: hidden `).concat(r, `;
|
|
2507
2527
|
padding-right: `).concat(c, "px ").concat(r, `;
|
|
2508
2528
|
}
|
|
@@ -2540,26 +2560,26 @@ var Bo = function() {
|
|
|
2540
2560
|
}
|
|
2541
2561
|
|
|
2542
2562
|
body[`).concat(he, `] {
|
|
2543
|
-
`).concat(
|
|
2563
|
+
`).concat(To, ": ").concat(c, `px;
|
|
2544
2564
|
}
|
|
2545
2565
|
`);
|
|
2546
2566
|
}, Wt = function() {
|
|
2547
2567
|
var e = parseInt(document.body.getAttribute(he) || "0", 10);
|
|
2548
2568
|
return isFinite(e) ? e : 0;
|
|
2549
|
-
},
|
|
2569
|
+
}, Ko = function() {
|
|
2550
2570
|
f.useEffect(function() {
|
|
2551
2571
|
return document.body.setAttribute(he, (Wt() + 1).toString()), function() {
|
|
2552
2572
|
var e = Wt() - 1;
|
|
2553
2573
|
e <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, e.toString());
|
|
2554
2574
|
};
|
|
2555
2575
|
}, []);
|
|
2556
|
-
},
|
|
2576
|
+
}, Go = function(e) {
|
|
2557
2577
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
2558
|
-
|
|
2578
|
+
Ko();
|
|
2559
2579
|
var i = f.useMemo(function() {
|
|
2560
|
-
return
|
|
2580
|
+
return Uo(o);
|
|
2561
2581
|
}, [o]);
|
|
2562
|
-
return f.createElement(
|
|
2582
|
+
return f.createElement(Yo, { styles: Xo(i, !t, o, n ? "" : "!important") });
|
|
2563
2583
|
}, nt = !1;
|
|
2564
2584
|
if (typeof window < "u")
|
|
2565
2585
|
try {
|
|
@@ -2572,18 +2592,18 @@ if (typeof window < "u")
|
|
|
2572
2592
|
} catch {
|
|
2573
2593
|
nt = !1;
|
|
2574
2594
|
}
|
|
2575
|
-
var ue = nt ? { passive: !1 } : !1,
|
|
2595
|
+
var ue = nt ? { passive: !1 } : !1, qo = function(e) {
|
|
2576
2596
|
return e.tagName === "TEXTAREA";
|
|
2577
2597
|
}, wn = function(e, t) {
|
|
2578
2598
|
var n = window.getComputedStyle(e);
|
|
2579
2599
|
return (
|
|
2580
2600
|
// not-not-scrollable
|
|
2581
2601
|
n[t] !== "hidden" && // contains scroll inside self
|
|
2582
|
-
!(n.overflowY === n.overflowX && !
|
|
2602
|
+
!(n.overflowY === n.overflowX && !qo(e) && n[t] === "visible")
|
|
2583
2603
|
);
|
|
2584
|
-
},
|
|
2604
|
+
}, Zo = function(e) {
|
|
2585
2605
|
return wn(e, "overflowY");
|
|
2586
|
-
},
|
|
2606
|
+
}, Qo = function(e) {
|
|
2587
2607
|
return wn(e, "overflowX");
|
|
2588
2608
|
}, _t = function(e, t) {
|
|
2589
2609
|
var n = t.ownerDocument, r = t;
|
|
@@ -2598,14 +2618,14 @@ var ue = nt ? { passive: !1 } : !1, Ko = function(e) {
|
|
|
2598
2618
|
r = r.parentNode;
|
|
2599
2619
|
} while (r && r !== n.body);
|
|
2600
2620
|
return !1;
|
|
2601
|
-
},
|
|
2621
|
+
}, Jo = function(e) {
|
|
2602
2622
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
2603
2623
|
return [
|
|
2604
2624
|
t,
|
|
2605
2625
|
n,
|
|
2606
2626
|
r
|
|
2607
2627
|
];
|
|
2608
|
-
},
|
|
2628
|
+
}, ei = function(e) {
|
|
2609
2629
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
2610
2630
|
return [
|
|
2611
2631
|
t,
|
|
@@ -2613,13 +2633,13 @@ var ue = nt ? { passive: !1 } : !1, Ko = function(e) {
|
|
|
2613
2633
|
r
|
|
2614
2634
|
];
|
|
2615
2635
|
}, xn = function(e, t) {
|
|
2616
|
-
return e === "v" ? Go(t) : qo(t);
|
|
2617
|
-
}, bn = function(e, t) {
|
|
2618
2636
|
return e === "v" ? Zo(t) : Qo(t);
|
|
2619
|
-
},
|
|
2637
|
+
}, bn = function(e, t) {
|
|
2638
|
+
return e === "v" ? Jo(t) : ei(t);
|
|
2639
|
+
}, ti = function(e, t) {
|
|
2620
2640
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2621
|
-
},
|
|
2622
|
-
var i =
|
|
2641
|
+
}, ni = function(e, t, n, r, o) {
|
|
2642
|
+
var i = ti(e, window.getComputedStyle(t).direction), s = i * r, c = n.target, a = t.contains(c), l = !1, h = s > 0, d = 0, p = 0;
|
|
2623
2643
|
do {
|
|
2624
2644
|
var m = bn(e, c), g = m[0], u = m[1], v = m[2], y = u - v - i * g;
|
|
2625
2645
|
(g || y) && xn(e, c) && (d += y, p += g), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
|
|
@@ -2629,28 +2649,28 @@ var ue = nt ? { passive: !1 } : !1, Ko = function(e) {
|
|
|
2629
2649
|
a && (t.contains(c) || t === c)
|
|
2630
2650
|
);
|
|
2631
2651
|
return (h && (Math.abs(d) < 1 || !o) || !h && (Math.abs(p) < 1 || !o)) && (l = !0), l;
|
|
2632
|
-
},
|
|
2652
|
+
}, De = function(e) {
|
|
2633
2653
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2634
2654
|
}, Bt = function(e) {
|
|
2635
2655
|
return [e.deltaX, e.deltaY];
|
|
2636
2656
|
}, jt = function(e) {
|
|
2637
2657
|
return e && "current" in e ? e.current : e;
|
|
2638
|
-
},
|
|
2658
|
+
}, ri = function(e, t) {
|
|
2639
2659
|
return e[0] === t[0] && e[1] === t[1];
|
|
2640
|
-
},
|
|
2660
|
+
}, oi = function(e) {
|
|
2641
2661
|
return `
|
|
2642
2662
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
2643
2663
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
2644
2664
|
`);
|
|
2645
|
-
},
|
|
2646
|
-
function
|
|
2647
|
-
var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(
|
|
2665
|
+
}, ii = 0, fe = [];
|
|
2666
|
+
function si(e) {
|
|
2667
|
+
var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(ii++)[0], i = f.useState(yn)[0], s = f.useRef(e);
|
|
2648
2668
|
f.useEffect(function() {
|
|
2649
2669
|
s.current = e;
|
|
2650
2670
|
}, [e]), f.useEffect(function() {
|
|
2651
2671
|
if (e.inert) {
|
|
2652
2672
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
2653
|
-
var u =
|
|
2673
|
+
var u = Po([e.lockRef.current], (e.shards || []).map(jt), !0).filter(Boolean);
|
|
2654
2674
|
return u.forEach(function(v) {
|
|
2655
2675
|
return v.classList.add("allow-interactivity-".concat(o));
|
|
2656
2676
|
}), function() {
|
|
@@ -2663,23 +2683,23 @@ function oi(e) {
|
|
|
2663
2683
|
var c = f.useCallback(function(u, v) {
|
|
2664
2684
|
if ("touches" in u && u.touches.length === 2)
|
|
2665
2685
|
return !s.current.allowPinchZoom;
|
|
2666
|
-
var y =
|
|
2686
|
+
var y = De(u), w = n.current, b = "deltaX" in u ? u.deltaX : w[0] - y[0], x = "deltaY" in u ? u.deltaY : w[1] - y[1], E, C = u.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
|
|
2667
2687
|
if ("touches" in u && S === "h" && C.type === "range")
|
|
2668
2688
|
return !1;
|
|
2669
|
-
var
|
|
2670
|
-
if (!
|
|
2689
|
+
var A = _t(S, C);
|
|
2690
|
+
if (!A)
|
|
2671
2691
|
return !0;
|
|
2672
|
-
if (
|
|
2692
|
+
if (A ? E = S : (E = S === "v" ? "h" : "v", A = _t(S, C)), !A)
|
|
2673
2693
|
return !1;
|
|
2674
2694
|
if (!r.current && "changedTouches" in u && (b || x) && (r.current = E), !E)
|
|
2675
2695
|
return !0;
|
|
2676
2696
|
var O = r.current || E;
|
|
2677
|
-
return
|
|
2697
|
+
return ni(O, v, u, O === "h" ? b : x, !0);
|
|
2678
2698
|
}, []), a = f.useCallback(function(u) {
|
|
2679
2699
|
var v = u;
|
|
2680
2700
|
if (!(!fe.length || fe[fe.length - 1] !== i)) {
|
|
2681
|
-
var y = "deltaY" in v ? Bt(v) :
|
|
2682
|
-
return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) &&
|
|
2701
|
+
var y = "deltaY" in v ? Bt(v) : De(v), w = t.current.filter(function(E) {
|
|
2702
|
+
return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && ri(E.delta, y);
|
|
2683
2703
|
})[0];
|
|
2684
2704
|
if (w && w.should) {
|
|
2685
2705
|
v.cancelable && v.preventDefault();
|
|
@@ -2693,18 +2713,18 @@ function oi(e) {
|
|
|
2693
2713
|
}
|
|
2694
2714
|
}
|
|
2695
2715
|
}, []), l = f.useCallback(function(u, v, y, w) {
|
|
2696
|
-
var b = { name: u, delta: v, target: y, should: w, shadowParent:
|
|
2716
|
+
var b = { name: u, delta: v, target: y, should: w, shadowParent: ci(y) };
|
|
2697
2717
|
t.current.push(b), setTimeout(function() {
|
|
2698
2718
|
t.current = t.current.filter(function(x) {
|
|
2699
2719
|
return x !== b;
|
|
2700
2720
|
});
|
|
2701
2721
|
}, 1);
|
|
2702
2722
|
}, []), h = f.useCallback(function(u) {
|
|
2703
|
-
n.current =
|
|
2723
|
+
n.current = De(u), r.current = void 0;
|
|
2704
2724
|
}, []), d = f.useCallback(function(u) {
|
|
2705
2725
|
l(u.type, Bt(u), u.target, c(u, e.lockRef.current));
|
|
2706
2726
|
}, []), p = f.useCallback(function(u) {
|
|
2707
|
-
l(u.type,
|
|
2727
|
+
l(u.type, De(u), u.target, c(u, e.lockRef.current));
|
|
2708
2728
|
}, []);
|
|
2709
2729
|
f.useEffect(function() {
|
|
2710
2730
|
return fe.push(i), e.setCallbacks({
|
|
@@ -2721,48 +2741,49 @@ function oi(e) {
|
|
|
2721
2741
|
return f.createElement(
|
|
2722
2742
|
f.Fragment,
|
|
2723
2743
|
null,
|
|
2724
|
-
g ? f.createElement(i, { styles:
|
|
2725
|
-
m ? f.createElement(
|
|
2744
|
+
g ? f.createElement(i, { styles: oi(o) }) : null,
|
|
2745
|
+
m ? f.createElement(Go, { gapMode: e.gapMode }) : null
|
|
2726
2746
|
);
|
|
2727
2747
|
}
|
|
2728
|
-
function
|
|
2748
|
+
function ci(e) {
|
|
2729
2749
|
for (var t = null; e !== null; )
|
|
2730
2750
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2731
2751
|
return t;
|
|
2732
2752
|
}
|
|
2733
|
-
const
|
|
2734
|
-
var
|
|
2735
|
-
return f.createElement($e, z({}, e, { ref: t, sideCar:
|
|
2753
|
+
const ai = Io(gn, si);
|
|
2754
|
+
var li = f.forwardRef(function(e, t) {
|
|
2755
|
+
return f.createElement($e, z({}, e, { ref: t, sideCar: ai }));
|
|
2736
2756
|
});
|
|
2737
|
-
|
|
2757
|
+
li.classNames = $e.classNames;
|
|
2738
2758
|
export {
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2759
|
+
Pi as A,
|
|
2760
|
+
Gn as B,
|
|
2761
|
+
Oi as C,
|
|
2762
|
+
sr as D,
|
|
2763
|
+
dr as F,
|
|
2764
|
+
gi as M,
|
|
2745
2765
|
ae as P,
|
|
2746
|
-
|
|
2766
|
+
li as R,
|
|
2747
2767
|
be as S,
|
|
2748
2768
|
zt as a,
|
|
2749
|
-
|
|
2750
|
-
|
|
2769
|
+
Ai as b,
|
|
2770
|
+
bi as c,
|
|
2751
2771
|
Ve as d,
|
|
2752
|
-
|
|
2772
|
+
Ci as e,
|
|
2753
2773
|
ee as f,
|
|
2754
|
-
|
|
2755
|
-
|
|
2774
|
+
Ti as g,
|
|
2775
|
+
Mi as h,
|
|
2756
2776
|
Vt as i,
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2777
|
+
er as j,
|
|
2778
|
+
Ei as k,
|
|
2779
|
+
Ri as l,
|
|
2780
|
+
Co as m,
|
|
2781
|
+
Si as n,
|
|
2782
|
+
xi as o,
|
|
2783
|
+
yi as p,
|
|
2784
|
+
wi as q,
|
|
2785
|
+
Ee as r,
|
|
2786
|
+
qn as s,
|
|
2766
2787
|
se as u
|
|
2767
2788
|
};
|
|
2768
|
-
//# sourceMappingURL=Combination-
|
|
2789
|
+
//# sourceMappingURL=Combination-C442XfGG.js.map
|