zudoku 0.3.0-dev.52 → 0.3.0-dev.53
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/components/Bootstrap.js +1 -1
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +1 -13
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +15 -2
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +4 -2
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/vite/config.d.ts +1 -0
- package/dist/vite/config.js +1 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +1 -0
- package/dist/vite/dev-server.js.map +1 -1
- package/lib/{AnchorLink-CZUp-F0P.js → AnchorLink-BCN_a_Uz.js} +2 -2
- package/lib/{AnchorLink-CZUp-F0P.js.map → AnchorLink-BCN_a_Uz.js.map} +1 -1
- package/lib/Combination-B0Iu6mhJ.js +915 -0
- package/lib/Combination-B0Iu6mhJ.js.map +1 -0
- package/lib/{Markdown-Dbzrtopg.js → Markdown-aE_XoLNs.js} +3 -3
- package/lib/{Markdown-Dbzrtopg.js.map → Markdown-aE_XoLNs.js.map} +1 -1
- package/lib/{MdxPage-JvboTsbK.js → MdxPage-Bsc79cD-.js} +3 -3
- package/lib/{MdxPage-JvboTsbK.js.map → MdxPage-Bsc79cD-.js.map} +1 -1
- package/lib/OperationList-K-JWBxau.js +5091 -0
- package/lib/OperationList-K-JWBxau.js.map +1 -0
- package/lib/Playground-Czy7ha9z.js +502 -0
- package/lib/Playground-Czy7ha9z.js.map +1 -0
- package/lib/{Route-C1LyvITr.js → Route-D-egsGHx.js} +2 -2
- package/lib/{Route-C1LyvITr.js.map → Route-D-egsGHx.js.map} +1 -1
- package/lib/Select-CcBbwJ2R.js +3667 -0
- package/lib/Select-CcBbwJ2R.js.map +1 -0
- package/lib/Spinner-C9_Opdev.js +15 -0
- package/lib/Spinner-C9_Opdev.js.map +1 -0
- package/lib/{hook-CGFJQf_n.js → hook-CKqQERWo.js} +2 -2
- package/lib/{hook-CGFJQf_n.js.map → hook-CKqQERWo.js.map} +1 -1
- package/lib/index-ByHya67R.js +207 -0
- package/lib/index-ByHya67R.js.map +1 -0
- package/lib/{Spinner-BSk0ImmP.js → index-DseBZFJ-.js} +34 -46
- package/lib/index-DseBZFJ-.js.map +1 -0
- package/lib/{index-DSZ4Cj5q.js → index-jsFBaizC.js} +10 -10
- package/lib/{index-DSZ4Cj5q.js.map → index-jsFBaizC.js.map} +1 -1
- package/lib/mutation-DjbQSHzT.js +208 -0
- package/lib/mutation-DjbQSHzT.js.map +1 -0
- package/lib/{urql-DMlBWUKL.js → urql-DEKdguFl.js} +3 -3
- package/lib/{urql-DMlBWUKL.js.map → urql-DEKdguFl.js.map} +1 -1
- package/lib/zudoku.components.js +20 -19
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +11 -10
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/package.json +1 -1
- package/src/lib/components/Bootstrap.tsx +1 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +13 -11
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +0 -16
- package/src/lib/plugins/openapi/playground/Playground.tsx +17 -3
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -3
- package/lib/OperationList-DGdaixGa.js +0 -5562
- package/lib/OperationList-DGdaixGa.js.map +0 -1
- package/lib/Select-DHm1jDdS.js +0 -4571
- package/lib/Select-DHm1jDdS.js.map +0 -1
- package/lib/Spinner-BSk0ImmP.js.map +0 -1
- package/lib/index-CXXn0D4E.js +0 -412
- package/lib/index-CXXn0D4E.js.map +0 -1
|
@@ -0,0 +1,915 @@
|
|
|
1
|
+
import { j as T } from "./jsx-runtime-CJZJivg2.js";
|
|
2
|
+
import { S as ee, c as xe, u as I, b as F, P as B, d as X, h as Te, g as Le } from "./index-ByHya67R.js";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import A, { useState as Ae } from "react";
|
|
5
|
+
import { f as Oe, e as Ne } from "./Markdown-aE_XoLNs.js";
|
|
6
|
+
import Me from "react-dom";
|
|
7
|
+
const ke = Oe(
|
|
8
|
+
"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",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
13
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
14
|
+
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
15
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
16
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
17
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
default: "h-9 px-4 py-2",
|
|
21
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
22
|
+
lg: "h-10 rounded-md px-8",
|
|
23
|
+
icon: "h-9 w-9"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: "default",
|
|
28
|
+
size: "default"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
), De = s.forwardRef(
|
|
32
|
+
({ className: e, variant: t, size: n, asChild: r = !1, ...a }, c) => {
|
|
33
|
+
const u = r ? ee : "button";
|
|
34
|
+
return /* @__PURE__ */ T.jsx(
|
|
35
|
+
u,
|
|
36
|
+
{
|
|
37
|
+
className: Ne(ke({ variant: t, size: n, className: e })),
|
|
38
|
+
ref: c,
|
|
39
|
+
...a
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
De.displayName = "Button";
|
|
45
|
+
function Gt(e) {
|
|
46
|
+
const t = e + "CollectionProvider", [n, r] = xe(t), [a, c] = n(
|
|
47
|
+
t,
|
|
48
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
49
|
+
), u = (p) => {
|
|
50
|
+
const { scope: E, children: i } = p, l = A.useRef(null), f = A.useRef(/* @__PURE__ */ new Map()).current;
|
|
51
|
+
return /* @__PURE__ */ T.jsx(a, { scope: E, itemMap: f, collectionRef: l, children: i });
|
|
52
|
+
};
|
|
53
|
+
u.displayName = t;
|
|
54
|
+
const o = e + "CollectionSlot", w = A.forwardRef(
|
|
55
|
+
(p, E) => {
|
|
56
|
+
const { scope: i, children: l } = p, f = c(o, i), g = I(E, f.collectionRef);
|
|
57
|
+
return /* @__PURE__ */ T.jsx(ee, { ref: g, children: l });
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
w.displayName = o;
|
|
61
|
+
const d = e + "CollectionItemSlot", v = "data-radix-collection-item", h = A.forwardRef(
|
|
62
|
+
(p, E) => {
|
|
63
|
+
const { scope: i, children: l, ...f } = p, g = A.useRef(null), b = I(E, g), y = c(d, i);
|
|
64
|
+
return A.useEffect(() => (y.itemMap.set(g, { ref: g, ...f }), () => void y.itemMap.delete(g))), /* @__PURE__ */ T.jsx(ee, { [v]: "", ref: b, children: l });
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
h.displayName = d;
|
|
68
|
+
function m(p) {
|
|
69
|
+
const E = c(e + "CollectionConsumer", p);
|
|
70
|
+
return A.useCallback(() => {
|
|
71
|
+
const l = E.collectionRef.current;
|
|
72
|
+
if (!l) return [];
|
|
73
|
+
const f = Array.from(l.querySelectorAll(`[${v}]`));
|
|
74
|
+
return Array.from(E.itemMap.values()).sort(
|
|
75
|
+
(y, C) => f.indexOf(y.ref.current) - f.indexOf(C.ref.current)
|
|
76
|
+
);
|
|
77
|
+
}, [E.collectionRef, E.itemMap]);
|
|
78
|
+
}
|
|
79
|
+
return [
|
|
80
|
+
{ Provider: u, Slot: w, ItemSlot: h },
|
|
81
|
+
m,
|
|
82
|
+
r
|
|
83
|
+
];
|
|
84
|
+
}
|
|
85
|
+
var Ie = s.createContext(void 0);
|
|
86
|
+
function Zt(e) {
|
|
87
|
+
const t = s.useContext(Ie);
|
|
88
|
+
return e || t || "ltr";
|
|
89
|
+
}
|
|
90
|
+
function Fe(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
91
|
+
const n = F(e);
|
|
92
|
+
s.useEffect(() => {
|
|
93
|
+
const r = (a) => {
|
|
94
|
+
a.key === "Escape" && n(a);
|
|
95
|
+
};
|
|
96
|
+
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
97
|
+
}, [n, t]);
|
|
98
|
+
}
|
|
99
|
+
var Be = "DismissableLayer", te = "dismissableLayer.update", We = "dismissableLayer.pointerDownOutside", _e = "dismissableLayer.focusOutside", re, me = s.createContext({
|
|
100
|
+
layers: /* @__PURE__ */ new Set(),
|
|
101
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
102
|
+
branches: /* @__PURE__ */ new Set()
|
|
103
|
+
}), je = s.forwardRef(
|
|
104
|
+
(e, t) => {
|
|
105
|
+
const {
|
|
106
|
+
disableOutsidePointerEvents: n = !1,
|
|
107
|
+
onEscapeKeyDown: r,
|
|
108
|
+
onPointerDownOutside: a,
|
|
109
|
+
onFocusOutside: c,
|
|
110
|
+
onInteractOutside: u,
|
|
111
|
+
onDismiss: o,
|
|
112
|
+
...w
|
|
113
|
+
} = e, d = s.useContext(me), [v, h] = s.useState(null), m = (v == null ? void 0 : v.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = s.useState({}), E = I(t, (S) => h(S)), i = Array.from(d.layers), [l] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), f = i.indexOf(l), g = v ? i.indexOf(v) : -1, b = d.layersWithOutsidePointerEventsDisabled.size > 0, y = g >= f, C = Ve((S) => {
|
|
114
|
+
const x = S.target, D = [...d.branches].some((z) => z.contains(x));
|
|
115
|
+
!y || D || (a == null || a(S), u == null || u(S), S.defaultPrevented || o == null || o());
|
|
116
|
+
}, m), P = Ke((S) => {
|
|
117
|
+
const x = S.target;
|
|
118
|
+
[...d.branches].some((z) => z.contains(x)) || (c == null || c(S), u == null || u(S), S.defaultPrevented || o == null || o());
|
|
119
|
+
}, m);
|
|
120
|
+
return Fe((S) => {
|
|
121
|
+
g === d.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && o && (S.preventDefault(), o()));
|
|
122
|
+
}, m), s.useEffect(() => {
|
|
123
|
+
if (v)
|
|
124
|
+
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (re = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(v)), d.layers.add(v), oe(), () => {
|
|
125
|
+
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = re);
|
|
126
|
+
};
|
|
127
|
+
}, [v, m, n, d]), s.useEffect(() => () => {
|
|
128
|
+
v && (d.layers.delete(v), d.layersWithOutsidePointerEventsDisabled.delete(v), oe());
|
|
129
|
+
}, [v, d]), s.useEffect(() => {
|
|
130
|
+
const S = () => p({});
|
|
131
|
+
return document.addEventListener(te, S), () => document.removeEventListener(te, S);
|
|
132
|
+
}, []), /* @__PURE__ */ T.jsx(
|
|
133
|
+
B.div,
|
|
134
|
+
{
|
|
135
|
+
...w,
|
|
136
|
+
ref: E,
|
|
137
|
+
style: {
|
|
138
|
+
pointerEvents: b ? y ? "auto" : "none" : void 0,
|
|
139
|
+
...e.style
|
|
140
|
+
},
|
|
141
|
+
onFocusCapture: X(e.onFocusCapture, P.onFocusCapture),
|
|
142
|
+
onBlurCapture: X(e.onBlurCapture, P.onBlurCapture),
|
|
143
|
+
onPointerDownCapture: X(
|
|
144
|
+
e.onPointerDownCapture,
|
|
145
|
+
C.onPointerDownCapture
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
je.displayName = Be;
|
|
152
|
+
var Ue = "DismissableLayerBranch", He = s.forwardRef((e, t) => {
|
|
153
|
+
const n = s.useContext(me), r = s.useRef(null), a = I(t, r);
|
|
154
|
+
return s.useEffect(() => {
|
|
155
|
+
const c = r.current;
|
|
156
|
+
if (c)
|
|
157
|
+
return n.branches.add(c), () => {
|
|
158
|
+
n.branches.delete(c);
|
|
159
|
+
};
|
|
160
|
+
}, [n.branches]), /* @__PURE__ */ T.jsx(B.div, { ...e, ref: a });
|
|
161
|
+
});
|
|
162
|
+
He.displayName = Ue;
|
|
163
|
+
function Ve(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
164
|
+
const n = F(e), r = s.useRef(!1), a = s.useRef(() => {
|
|
165
|
+
});
|
|
166
|
+
return s.useEffect(() => {
|
|
167
|
+
const c = (o) => {
|
|
168
|
+
if (o.target && !r.current) {
|
|
169
|
+
let w = function() {
|
|
170
|
+
pe(
|
|
171
|
+
We,
|
|
172
|
+
n,
|
|
173
|
+
d,
|
|
174
|
+
{ discrete: !0 }
|
|
175
|
+
);
|
|
176
|
+
};
|
|
177
|
+
const d = { originalEvent: o };
|
|
178
|
+
o.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = w, t.addEventListener("click", a.current, { once: !0 })) : w();
|
|
179
|
+
} else
|
|
180
|
+
t.removeEventListener("click", a.current);
|
|
181
|
+
r.current = !1;
|
|
182
|
+
}, u = window.setTimeout(() => {
|
|
183
|
+
t.addEventListener("pointerdown", c);
|
|
184
|
+
}, 0);
|
|
185
|
+
return () => {
|
|
186
|
+
window.clearTimeout(u), t.removeEventListener("pointerdown", c), t.removeEventListener("click", a.current);
|
|
187
|
+
};
|
|
188
|
+
}, [t, n]), {
|
|
189
|
+
// ensures we check React component tree (not just DOM tree)
|
|
190
|
+
onPointerDownCapture: () => r.current = !0
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function Ke(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
194
|
+
const n = F(e), r = s.useRef(!1);
|
|
195
|
+
return s.useEffect(() => {
|
|
196
|
+
const a = (c) => {
|
|
197
|
+
c.target && !r.current && pe(_e, n, { originalEvent: c }, {
|
|
198
|
+
discrete: !1
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
return t.addEventListener("focusin", a), () => t.removeEventListener("focusin", a);
|
|
202
|
+
}, [t, n]), {
|
|
203
|
+
onFocusCapture: () => r.current = !0,
|
|
204
|
+
onBlurCapture: () => r.current = !1
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function oe() {
|
|
208
|
+
const e = new CustomEvent(te);
|
|
209
|
+
document.dispatchEvent(e);
|
|
210
|
+
}
|
|
211
|
+
function pe(e, t, n, { discrete: r }) {
|
|
212
|
+
const a = n.originalEvent.target, c = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
213
|
+
t && a.addEventListener(e, t, { once: !0 }), r ? Te(a, c) : a.dispatchEvent(c);
|
|
214
|
+
}
|
|
215
|
+
var Y = 0;
|
|
216
|
+
function qt() {
|
|
217
|
+
s.useEffect(() => {
|
|
218
|
+
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
219
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ae()), document.body.insertAdjacentElement("beforeend", e[1] ?? ae()), Y++, () => {
|
|
220
|
+
Y === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Y--;
|
|
221
|
+
};
|
|
222
|
+
}, []);
|
|
223
|
+
}
|
|
224
|
+
function ae() {
|
|
225
|
+
const e = document.createElement("span");
|
|
226
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
|
|
227
|
+
}
|
|
228
|
+
var G = "focusScope.autoFocusOnMount", Z = "focusScope.autoFocusOnUnmount", ce = { bubbles: !1, cancelable: !0 }, ze = "FocusScope", Xe = s.forwardRef((e, t) => {
|
|
229
|
+
const {
|
|
230
|
+
loop: n = !1,
|
|
231
|
+
trapped: r = !1,
|
|
232
|
+
onMountAutoFocus: a,
|
|
233
|
+
onUnmountAutoFocus: c,
|
|
234
|
+
...u
|
|
235
|
+
} = e, [o, w] = s.useState(null), d = F(a), v = F(c), h = s.useRef(null), m = I(t, (i) => w(i)), p = s.useRef({
|
|
236
|
+
paused: !1,
|
|
237
|
+
pause() {
|
|
238
|
+
this.paused = !0;
|
|
239
|
+
},
|
|
240
|
+
resume() {
|
|
241
|
+
this.paused = !1;
|
|
242
|
+
}
|
|
243
|
+
}).current;
|
|
244
|
+
s.useEffect(() => {
|
|
245
|
+
if (r) {
|
|
246
|
+
let i = function(b) {
|
|
247
|
+
if (p.paused || !o) return;
|
|
248
|
+
const y = b.target;
|
|
249
|
+
o.contains(y) ? h.current = y : L(h.current, { select: !0 });
|
|
250
|
+
}, l = function(b) {
|
|
251
|
+
if (p.paused || !o) return;
|
|
252
|
+
const y = b.relatedTarget;
|
|
253
|
+
y !== null && (o.contains(y) || L(h.current, { select: !0 }));
|
|
254
|
+
}, f = function(b) {
|
|
255
|
+
if (document.activeElement === document.body)
|
|
256
|
+
for (const C of b)
|
|
257
|
+
C.removedNodes.length > 0 && L(o);
|
|
258
|
+
};
|
|
259
|
+
document.addEventListener("focusin", i), document.addEventListener("focusout", l);
|
|
260
|
+
const g = new MutationObserver(f);
|
|
261
|
+
return o && g.observe(o, { childList: !0, subtree: !0 }), () => {
|
|
262
|
+
document.removeEventListener("focusin", i), document.removeEventListener("focusout", l), g.disconnect();
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
}, [r, o, p.paused]), s.useEffect(() => {
|
|
266
|
+
if (o) {
|
|
267
|
+
se.add(p);
|
|
268
|
+
const i = document.activeElement;
|
|
269
|
+
if (!o.contains(i)) {
|
|
270
|
+
const f = new CustomEvent(G, ce);
|
|
271
|
+
o.addEventListener(G, d), o.dispatchEvent(f), f.defaultPrevented || (Ye($e(ye(o)), { select: !0 }), document.activeElement === i && L(o));
|
|
272
|
+
}
|
|
273
|
+
return () => {
|
|
274
|
+
o.removeEventListener(G, d), setTimeout(() => {
|
|
275
|
+
const f = new CustomEvent(Z, ce);
|
|
276
|
+
o.addEventListener(Z, v), o.dispatchEvent(f), f.defaultPrevented || L(i ?? document.body, { select: !0 }), o.removeEventListener(Z, v), se.remove(p);
|
|
277
|
+
}, 0);
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
}, [o, d, v, p]);
|
|
281
|
+
const E = s.useCallback(
|
|
282
|
+
(i) => {
|
|
283
|
+
if (!n && !r || p.paused) return;
|
|
284
|
+
const l = i.key === "Tab" && !i.altKey && !i.ctrlKey && !i.metaKey, f = document.activeElement;
|
|
285
|
+
if (l && f) {
|
|
286
|
+
const g = i.currentTarget, [b, y] = Ge(g);
|
|
287
|
+
b && y ? !i.shiftKey && f === y ? (i.preventDefault(), n && L(b, { select: !0 })) : i.shiftKey && f === b && (i.preventDefault(), n && L(y, { select: !0 })) : f === g && i.preventDefault();
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
[n, r, p.paused]
|
|
291
|
+
);
|
|
292
|
+
return /* @__PURE__ */ T.jsx(B.div, { tabIndex: -1, ...u, ref: m, onKeyDown: E });
|
|
293
|
+
});
|
|
294
|
+
Xe.displayName = ze;
|
|
295
|
+
function Ye(e, { select: t = !1 } = {}) {
|
|
296
|
+
const n = document.activeElement;
|
|
297
|
+
for (const r of e)
|
|
298
|
+
if (L(r, { select: t }), document.activeElement !== n) return;
|
|
299
|
+
}
|
|
300
|
+
function Ge(e) {
|
|
301
|
+
const t = ye(e), n = ie(t, e), r = ie(t.reverse(), e);
|
|
302
|
+
return [n, r];
|
|
303
|
+
}
|
|
304
|
+
function ye(e) {
|
|
305
|
+
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
306
|
+
acceptNode: (r) => {
|
|
307
|
+
const a = r.tagName === "INPUT" && r.type === "hidden";
|
|
308
|
+
return r.disabled || r.hidden || a ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
312
|
+
return t;
|
|
313
|
+
}
|
|
314
|
+
function ie(e, t) {
|
|
315
|
+
for (const n of e)
|
|
316
|
+
if (!Ze(n, { upTo: t })) return n;
|
|
317
|
+
}
|
|
318
|
+
function Ze(e, { upTo: t }) {
|
|
319
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
320
|
+
for (; e; ) {
|
|
321
|
+
if (t !== void 0 && e === t) return !1;
|
|
322
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
323
|
+
e = e.parentElement;
|
|
324
|
+
}
|
|
325
|
+
return !1;
|
|
326
|
+
}
|
|
327
|
+
function qe(e) {
|
|
328
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
329
|
+
}
|
|
330
|
+
function L(e, { select: t = !1 } = {}) {
|
|
331
|
+
if (e && e.focus) {
|
|
332
|
+
const n = document.activeElement;
|
|
333
|
+
e.focus({ preventScroll: !0 }), e !== n && qe(e) && t && e.select();
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
var se = Qe();
|
|
337
|
+
function Qe() {
|
|
338
|
+
let e = [];
|
|
339
|
+
return {
|
|
340
|
+
add(t) {
|
|
341
|
+
const n = e[0];
|
|
342
|
+
t !== n && (n == null || n.pause()), e = ue(e, t), e.unshift(t);
|
|
343
|
+
},
|
|
344
|
+
remove(t) {
|
|
345
|
+
var n;
|
|
346
|
+
e = ue(e, t), (n = e[0]) == null || n.resume();
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function ue(e, t) {
|
|
351
|
+
const n = [...e], r = n.indexOf(t);
|
|
352
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
353
|
+
}
|
|
354
|
+
function $e(e) {
|
|
355
|
+
return e.filter((t) => t.tagName !== "A");
|
|
356
|
+
}
|
|
357
|
+
var Je = "Portal", et = s.forwardRef((e, t) => {
|
|
358
|
+
var o;
|
|
359
|
+
const { container: n, ...r } = e, [a, c] = s.useState(!1);
|
|
360
|
+
Le(() => c(!0), []);
|
|
361
|
+
const u = n || a && ((o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body);
|
|
362
|
+
return u ? Me.createPortal(/* @__PURE__ */ T.jsx(B.div, { ...r, ref: t }), u) : null;
|
|
363
|
+
});
|
|
364
|
+
et.displayName = Je;
|
|
365
|
+
var tt = "VisuallyHidden", nt = s.forwardRef(
|
|
366
|
+
(e, t) => /* @__PURE__ */ T.jsx(
|
|
367
|
+
B.span,
|
|
368
|
+
{
|
|
369
|
+
...e,
|
|
370
|
+
ref: t,
|
|
371
|
+
style: {
|
|
372
|
+
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
373
|
+
position: "absolute",
|
|
374
|
+
border: 0,
|
|
375
|
+
width: 1,
|
|
376
|
+
height: 1,
|
|
377
|
+
padding: 0,
|
|
378
|
+
margin: -1,
|
|
379
|
+
overflow: "hidden",
|
|
380
|
+
clip: "rect(0, 0, 0, 0)",
|
|
381
|
+
whiteSpace: "nowrap",
|
|
382
|
+
wordWrap: "normal",
|
|
383
|
+
...e.style
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
)
|
|
387
|
+
);
|
|
388
|
+
nt.displayName = tt;
|
|
389
|
+
var rt = function(e) {
|
|
390
|
+
if (typeof document > "u")
|
|
391
|
+
return null;
|
|
392
|
+
var t = Array.isArray(e) ? e[0] : e;
|
|
393
|
+
return t.ownerDocument.body;
|
|
394
|
+
}, O = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), _ = {}, q = 0, ge = function(e) {
|
|
395
|
+
return e && (e.host || ge(e.parentNode));
|
|
396
|
+
}, ot = function(e, t) {
|
|
397
|
+
return t.map(function(n) {
|
|
398
|
+
if (e.contains(n))
|
|
399
|
+
return n;
|
|
400
|
+
var r = ge(n);
|
|
401
|
+
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
402
|
+
}).filter(function(n) {
|
|
403
|
+
return !!n;
|
|
404
|
+
});
|
|
405
|
+
}, at = function(e, t, n, r) {
|
|
406
|
+
var a = ot(t, Array.isArray(e) ? e : [e]);
|
|
407
|
+
_[n] || (_[n] = /* @__PURE__ */ new WeakMap());
|
|
408
|
+
var c = _[n], u = [], o = /* @__PURE__ */ new Set(), w = new Set(a), d = function(h) {
|
|
409
|
+
!h || o.has(h) || (o.add(h), d(h.parentNode));
|
|
410
|
+
};
|
|
411
|
+
a.forEach(d);
|
|
412
|
+
var v = function(h) {
|
|
413
|
+
!h || w.has(h) || Array.prototype.forEach.call(h.children, function(m) {
|
|
414
|
+
if (o.has(m))
|
|
415
|
+
v(m);
|
|
416
|
+
else
|
|
417
|
+
try {
|
|
418
|
+
var p = m.getAttribute(r), E = p !== null && p !== "false", i = (O.get(m) || 0) + 1, l = (c.get(m) || 0) + 1;
|
|
419
|
+
O.set(m, i), c.set(m, l), u.push(m), i === 1 && E && W.set(m, !0), l === 1 && m.setAttribute(n, "true"), E || m.setAttribute(r, "true");
|
|
420
|
+
} catch (f) {
|
|
421
|
+
console.error("aria-hidden: cannot operate on ", m, f);
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
};
|
|
425
|
+
return v(t), o.clear(), q++, function() {
|
|
426
|
+
u.forEach(function(h) {
|
|
427
|
+
var m = O.get(h) - 1, p = c.get(h) - 1;
|
|
428
|
+
O.set(h, m), c.set(h, p), m || (W.has(h) || h.removeAttribute(r), W.delete(h)), p || h.removeAttribute(n);
|
|
429
|
+
}), q--, q || (O = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), _ = {});
|
|
430
|
+
};
|
|
431
|
+
}, Qt = function(e, t, n) {
|
|
432
|
+
n === void 0 && (n = "data-aria-hidden");
|
|
433
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), a = rt(e);
|
|
434
|
+
return a ? (r.push.apply(r, Array.from(a.querySelectorAll("[aria-live]"))), at(r, a, n, "aria-hidden")) : function() {
|
|
435
|
+
return null;
|
|
436
|
+
};
|
|
437
|
+
}, R = function() {
|
|
438
|
+
return R = Object.assign || function(t) {
|
|
439
|
+
for (var n, r = 1, a = arguments.length; r < a; r++) {
|
|
440
|
+
n = arguments[r];
|
|
441
|
+
for (var c in n) Object.prototype.hasOwnProperty.call(n, c) && (t[c] = n[c]);
|
|
442
|
+
}
|
|
443
|
+
return t;
|
|
444
|
+
}, R.apply(this, arguments);
|
|
445
|
+
};
|
|
446
|
+
function be(e, t) {
|
|
447
|
+
var n = {};
|
|
448
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
449
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
450
|
+
for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
|
|
451
|
+
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
452
|
+
return n;
|
|
453
|
+
}
|
|
454
|
+
function ct(e, t, n) {
|
|
455
|
+
if (n || arguments.length === 2) for (var r = 0, a = t.length, c; r < a; r++)
|
|
456
|
+
(c || !(r in t)) && (c || (c = Array.prototype.slice.call(t, 0, r)), c[r] = t[r]);
|
|
457
|
+
return e.concat(c || Array.prototype.slice.call(t));
|
|
458
|
+
}
|
|
459
|
+
var H = "right-scroll-bar-position", V = "width-before-scroll-bar", it = "with-scroll-bars-hidden", st = "--removed-body-scroll-bar-size";
|
|
460
|
+
function Q(e, t) {
|
|
461
|
+
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
462
|
+
}
|
|
463
|
+
function ut(e, t) {
|
|
464
|
+
var n = Ae(function() {
|
|
465
|
+
return {
|
|
466
|
+
// value
|
|
467
|
+
value: e,
|
|
468
|
+
// last callback
|
|
469
|
+
callback: t,
|
|
470
|
+
// "memoized" public interface
|
|
471
|
+
facade: {
|
|
472
|
+
get current() {
|
|
473
|
+
return n.value;
|
|
474
|
+
},
|
|
475
|
+
set current(r) {
|
|
476
|
+
var a = n.value;
|
|
477
|
+
a !== r && (n.value = r, n.callback(r, a));
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
})[0];
|
|
482
|
+
return n.callback = t, n.facade;
|
|
483
|
+
}
|
|
484
|
+
var lt = typeof window < "u" ? s.useLayoutEffect : s.useEffect, le = /* @__PURE__ */ new WeakMap();
|
|
485
|
+
function dt(e, t) {
|
|
486
|
+
var n = ut(null, function(r) {
|
|
487
|
+
return e.forEach(function(a) {
|
|
488
|
+
return Q(a, r);
|
|
489
|
+
});
|
|
490
|
+
});
|
|
491
|
+
return lt(function() {
|
|
492
|
+
var r = le.get(n);
|
|
493
|
+
if (r) {
|
|
494
|
+
var a = new Set(r), c = new Set(e), u = n.current;
|
|
495
|
+
a.forEach(function(o) {
|
|
496
|
+
c.has(o) || Q(o, null);
|
|
497
|
+
}), c.forEach(function(o) {
|
|
498
|
+
a.has(o) || Q(o, u);
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
le.set(n, e);
|
|
502
|
+
}, [e]), n;
|
|
503
|
+
}
|
|
504
|
+
function ft(e) {
|
|
505
|
+
return e;
|
|
506
|
+
}
|
|
507
|
+
function vt(e, t) {
|
|
508
|
+
t === void 0 && (t = ft);
|
|
509
|
+
var n = [], r = !1, a = {
|
|
510
|
+
read: function() {
|
|
511
|
+
if (r)
|
|
512
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
513
|
+
return n.length ? n[n.length - 1] : e;
|
|
514
|
+
},
|
|
515
|
+
useMedium: function(c) {
|
|
516
|
+
var u = t(c, r);
|
|
517
|
+
return n.push(u), function() {
|
|
518
|
+
n = n.filter(function(o) {
|
|
519
|
+
return o !== u;
|
|
520
|
+
});
|
|
521
|
+
};
|
|
522
|
+
},
|
|
523
|
+
assignSyncMedium: function(c) {
|
|
524
|
+
for (r = !0; n.length; ) {
|
|
525
|
+
var u = n;
|
|
526
|
+
n = [], u.forEach(c);
|
|
527
|
+
}
|
|
528
|
+
n = {
|
|
529
|
+
push: function(o) {
|
|
530
|
+
return c(o);
|
|
531
|
+
},
|
|
532
|
+
filter: function() {
|
|
533
|
+
return n;
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
},
|
|
537
|
+
assignMedium: function(c) {
|
|
538
|
+
r = !0;
|
|
539
|
+
var u = [];
|
|
540
|
+
if (n.length) {
|
|
541
|
+
var o = n;
|
|
542
|
+
n = [], o.forEach(c), u = n;
|
|
543
|
+
}
|
|
544
|
+
var w = function() {
|
|
545
|
+
var v = u;
|
|
546
|
+
u = [], v.forEach(c);
|
|
547
|
+
}, d = function() {
|
|
548
|
+
return Promise.resolve().then(w);
|
|
549
|
+
};
|
|
550
|
+
d(), n = {
|
|
551
|
+
push: function(v) {
|
|
552
|
+
u.push(v), d();
|
|
553
|
+
},
|
|
554
|
+
filter: function(v) {
|
|
555
|
+
return u = u.filter(v), n;
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
return a;
|
|
561
|
+
}
|
|
562
|
+
function ht(e) {
|
|
563
|
+
e === void 0 && (e = {});
|
|
564
|
+
var t = vt(null);
|
|
565
|
+
return t.options = R({ async: !0, ssr: !1 }, e), t;
|
|
566
|
+
}
|
|
567
|
+
var Ee = function(e) {
|
|
568
|
+
var t = e.sideCar, n = be(e, ["sideCar"]);
|
|
569
|
+
if (!t)
|
|
570
|
+
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
571
|
+
var r = t.read();
|
|
572
|
+
if (!r)
|
|
573
|
+
throw new Error("Sidecar medium not found");
|
|
574
|
+
return s.createElement(r, R({}, n));
|
|
575
|
+
};
|
|
576
|
+
Ee.isSideCarExport = !0;
|
|
577
|
+
function mt(e, t) {
|
|
578
|
+
return e.useMedium(t), Ee;
|
|
579
|
+
}
|
|
580
|
+
var Se = ht(), $ = function() {
|
|
581
|
+
}, K = s.forwardRef(function(e, t) {
|
|
582
|
+
var n = s.useRef(null), r = s.useState({
|
|
583
|
+
onScrollCapture: $,
|
|
584
|
+
onWheelCapture: $,
|
|
585
|
+
onTouchMoveCapture: $
|
|
586
|
+
}), a = r[0], c = r[1], u = e.forwardProps, o = e.children, w = e.className, d = e.removeScrollBar, v = e.enabled, h = e.shards, m = e.sideCar, p = e.noIsolation, E = e.inert, i = e.allowPinchZoom, l = e.as, f = l === void 0 ? "div" : l, g = e.gapMode, b = be(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), y = m, C = dt([n, t]), P = R(R({}, b), a);
|
|
587
|
+
return s.createElement(
|
|
588
|
+
s.Fragment,
|
|
589
|
+
null,
|
|
590
|
+
v && s.createElement(y, { sideCar: Se, removeScrollBar: d, shards: h, noIsolation: p, inert: E, setCallbacks: c, allowPinchZoom: !!i, lockRef: n, gapMode: g }),
|
|
591
|
+
u ? s.cloneElement(s.Children.only(o), R(R({}, P), { ref: C })) : s.createElement(f, R({}, P, { className: w, ref: C }), o)
|
|
592
|
+
);
|
|
593
|
+
});
|
|
594
|
+
K.defaultProps = {
|
|
595
|
+
enabled: !0,
|
|
596
|
+
removeScrollBar: !0,
|
|
597
|
+
inert: !1
|
|
598
|
+
};
|
|
599
|
+
K.classNames = {
|
|
600
|
+
fullWidth: V,
|
|
601
|
+
zeroRight: H
|
|
602
|
+
};
|
|
603
|
+
var pt = function() {
|
|
604
|
+
if (typeof __webpack_nonce__ < "u")
|
|
605
|
+
return __webpack_nonce__;
|
|
606
|
+
};
|
|
607
|
+
function yt() {
|
|
608
|
+
if (!document)
|
|
609
|
+
return null;
|
|
610
|
+
var e = document.createElement("style");
|
|
611
|
+
e.type = "text/css";
|
|
612
|
+
var t = pt();
|
|
613
|
+
return t && e.setAttribute("nonce", t), e;
|
|
614
|
+
}
|
|
615
|
+
function gt(e, t) {
|
|
616
|
+
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
617
|
+
}
|
|
618
|
+
function bt(e) {
|
|
619
|
+
var t = document.head || document.getElementsByTagName("head")[0];
|
|
620
|
+
t.appendChild(e);
|
|
621
|
+
}
|
|
622
|
+
var Et = function() {
|
|
623
|
+
var e = 0, t = null;
|
|
624
|
+
return {
|
|
625
|
+
add: function(n) {
|
|
626
|
+
e == 0 && (t = yt()) && (gt(t, n), bt(t)), e++;
|
|
627
|
+
},
|
|
628
|
+
remove: function() {
|
|
629
|
+
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
630
|
+
}
|
|
631
|
+
};
|
|
632
|
+
}, St = function() {
|
|
633
|
+
var e = Et();
|
|
634
|
+
return function(t, n) {
|
|
635
|
+
s.useEffect(function() {
|
|
636
|
+
return e.add(t), function() {
|
|
637
|
+
e.remove();
|
|
638
|
+
};
|
|
639
|
+
}, [t && n]);
|
|
640
|
+
};
|
|
641
|
+
}, we = function() {
|
|
642
|
+
var e = St(), t = function(n) {
|
|
643
|
+
var r = n.styles, a = n.dynamic;
|
|
644
|
+
return e(r, a), null;
|
|
645
|
+
};
|
|
646
|
+
return t;
|
|
647
|
+
}, wt = {
|
|
648
|
+
left: 0,
|
|
649
|
+
top: 0,
|
|
650
|
+
right: 0,
|
|
651
|
+
gap: 0
|
|
652
|
+
}, J = function(e) {
|
|
653
|
+
return parseInt(e || "", 10) || 0;
|
|
654
|
+
}, Ct = function(e) {
|
|
655
|
+
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], a = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
656
|
+
return [J(n), J(r), J(a)];
|
|
657
|
+
}, Rt = function(e) {
|
|
658
|
+
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
659
|
+
return wt;
|
|
660
|
+
var t = Ct(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
661
|
+
return {
|
|
662
|
+
left: t[0],
|
|
663
|
+
top: t[1],
|
|
664
|
+
right: t[2],
|
|
665
|
+
gap: Math.max(0, r - n + t[2] - t[0])
|
|
666
|
+
};
|
|
667
|
+
}, Pt = we(), k = "data-scroll-locked", xt = function(e, t, n, r) {
|
|
668
|
+
var a = e.left, c = e.top, u = e.right, o = e.gap;
|
|
669
|
+
return n === void 0 && (n = "margin"), `
|
|
670
|
+
.`.concat(it, ` {
|
|
671
|
+
overflow: hidden `).concat(r, `;
|
|
672
|
+
padding-right: `).concat(o, "px ").concat(r, `;
|
|
673
|
+
}
|
|
674
|
+
body[`).concat(k, `] {
|
|
675
|
+
overflow: hidden `).concat(r, `;
|
|
676
|
+
overscroll-behavior: contain;
|
|
677
|
+
`).concat([
|
|
678
|
+
t && "position: relative ".concat(r, ";"),
|
|
679
|
+
n === "margin" && `
|
|
680
|
+
padding-left: `.concat(a, `px;
|
|
681
|
+
padding-top: `).concat(c, `px;
|
|
682
|
+
padding-right: `).concat(u, `px;
|
|
683
|
+
margin-left:0;
|
|
684
|
+
margin-top:0;
|
|
685
|
+
margin-right: `).concat(o, "px ").concat(r, `;
|
|
686
|
+
`),
|
|
687
|
+
n === "padding" && "padding-right: ".concat(o, "px ").concat(r, ";")
|
|
688
|
+
].filter(Boolean).join(""), `
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.`).concat(H, ` {
|
|
692
|
+
right: `).concat(o, "px ").concat(r, `;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.`).concat(V, ` {
|
|
696
|
+
margin-right: `).concat(o, "px ").concat(r, `;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.`).concat(H, " .").concat(H, ` {
|
|
700
|
+
right: 0 `).concat(r, `;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.`).concat(V, " .").concat(V, ` {
|
|
704
|
+
margin-right: 0 `).concat(r, `;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
body[`).concat(k, `] {
|
|
708
|
+
`).concat(st, ": ").concat(o, `px;
|
|
709
|
+
}
|
|
710
|
+
`);
|
|
711
|
+
}, de = function() {
|
|
712
|
+
var e = parseInt(document.body.getAttribute(k) || "0", 10);
|
|
713
|
+
return isFinite(e) ? e : 0;
|
|
714
|
+
}, Tt = function() {
|
|
715
|
+
s.useEffect(function() {
|
|
716
|
+
return document.body.setAttribute(k, (de() + 1).toString()), function() {
|
|
717
|
+
var e = de() - 1;
|
|
718
|
+
e <= 0 ? document.body.removeAttribute(k) : document.body.setAttribute(k, e.toString());
|
|
719
|
+
};
|
|
720
|
+
}, []);
|
|
721
|
+
}, Lt = function(e) {
|
|
722
|
+
var t = e.noRelative, n = e.noImportant, r = e.gapMode, a = r === void 0 ? "margin" : r;
|
|
723
|
+
Tt();
|
|
724
|
+
var c = s.useMemo(function() {
|
|
725
|
+
return Rt(a);
|
|
726
|
+
}, [a]);
|
|
727
|
+
return s.createElement(Pt, { styles: xt(c, !t, a, n ? "" : "!important") });
|
|
728
|
+
}, ne = !1;
|
|
729
|
+
if (typeof window < "u")
|
|
730
|
+
try {
|
|
731
|
+
var j = Object.defineProperty({}, "passive", {
|
|
732
|
+
get: function() {
|
|
733
|
+
return ne = !0, !0;
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
window.addEventListener("test", j, j), window.removeEventListener("test", j, j);
|
|
737
|
+
} catch {
|
|
738
|
+
ne = !1;
|
|
739
|
+
}
|
|
740
|
+
var N = ne ? { passive: !1 } : !1, At = function(e) {
|
|
741
|
+
return e.tagName === "TEXTAREA";
|
|
742
|
+
}, Ce = function(e, t) {
|
|
743
|
+
var n = window.getComputedStyle(e);
|
|
744
|
+
return (
|
|
745
|
+
// not-not-scrollable
|
|
746
|
+
n[t] !== "hidden" && // contains scroll inside self
|
|
747
|
+
!(n.overflowY === n.overflowX && !At(e) && n[t] === "visible")
|
|
748
|
+
);
|
|
749
|
+
}, Ot = function(e) {
|
|
750
|
+
return Ce(e, "overflowY");
|
|
751
|
+
}, Nt = function(e) {
|
|
752
|
+
return Ce(e, "overflowX");
|
|
753
|
+
}, fe = function(e, t) {
|
|
754
|
+
var n = t.ownerDocument, r = t;
|
|
755
|
+
do {
|
|
756
|
+
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
757
|
+
var a = Re(e, r);
|
|
758
|
+
if (a) {
|
|
759
|
+
var c = Pe(e, r), u = c[1], o = c[2];
|
|
760
|
+
if (u > o)
|
|
761
|
+
return !0;
|
|
762
|
+
}
|
|
763
|
+
r = r.parentNode;
|
|
764
|
+
} while (r && r !== n.body);
|
|
765
|
+
return !1;
|
|
766
|
+
}, Mt = function(e) {
|
|
767
|
+
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
768
|
+
return [
|
|
769
|
+
t,
|
|
770
|
+
n,
|
|
771
|
+
r
|
|
772
|
+
];
|
|
773
|
+
}, kt = function(e) {
|
|
774
|
+
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
775
|
+
return [
|
|
776
|
+
t,
|
|
777
|
+
n,
|
|
778
|
+
r
|
|
779
|
+
];
|
|
780
|
+
}, Re = function(e, t) {
|
|
781
|
+
return e === "v" ? Ot(t) : Nt(t);
|
|
782
|
+
}, Pe = function(e, t) {
|
|
783
|
+
return e === "v" ? Mt(t) : kt(t);
|
|
784
|
+
}, Dt = function(e, t) {
|
|
785
|
+
return e === "h" && t === "rtl" ? -1 : 1;
|
|
786
|
+
}, It = function(e, t, n, r, a) {
|
|
787
|
+
var c = Dt(e, window.getComputedStyle(t).direction), u = c * r, o = n.target, w = t.contains(o), d = !1, v = u > 0, h = 0, m = 0;
|
|
788
|
+
do {
|
|
789
|
+
var p = Pe(e, o), E = p[0], i = p[1], l = p[2], f = i - l - c * E;
|
|
790
|
+
(E || f) && Re(e, o) && (h += f, m += E), o instanceof ShadowRoot ? o = o.host : o = o.parentNode;
|
|
791
|
+
} while (
|
|
792
|
+
// portaled content
|
|
793
|
+
!w && o !== document.body || // self content
|
|
794
|
+
w && (t.contains(o) || t === o)
|
|
795
|
+
);
|
|
796
|
+
return (v && (Math.abs(h) < 1 || !a) || !v && (Math.abs(m) < 1 || !a)) && (d = !0), d;
|
|
797
|
+
}, U = function(e) {
|
|
798
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
799
|
+
}, ve = function(e) {
|
|
800
|
+
return [e.deltaX, e.deltaY];
|
|
801
|
+
}, he = function(e) {
|
|
802
|
+
return e && "current" in e ? e.current : e;
|
|
803
|
+
}, Ft = function(e, t) {
|
|
804
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
805
|
+
}, Bt = function(e) {
|
|
806
|
+
return `
|
|
807
|
+
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
808
|
+
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
809
|
+
`);
|
|
810
|
+
}, Wt = 0, M = [];
|
|
811
|
+
function _t(e) {
|
|
812
|
+
var t = s.useRef([]), n = s.useRef([0, 0]), r = s.useRef(), a = s.useState(Wt++)[0], c = s.useState(we)[0], u = s.useRef(e);
|
|
813
|
+
s.useEffect(function() {
|
|
814
|
+
u.current = e;
|
|
815
|
+
}, [e]), s.useEffect(function() {
|
|
816
|
+
if (e.inert) {
|
|
817
|
+
document.body.classList.add("block-interactivity-".concat(a));
|
|
818
|
+
var i = ct([e.lockRef.current], (e.shards || []).map(he), !0).filter(Boolean);
|
|
819
|
+
return i.forEach(function(l) {
|
|
820
|
+
return l.classList.add("allow-interactivity-".concat(a));
|
|
821
|
+
}), function() {
|
|
822
|
+
document.body.classList.remove("block-interactivity-".concat(a)), i.forEach(function(l) {
|
|
823
|
+
return l.classList.remove("allow-interactivity-".concat(a));
|
|
824
|
+
});
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
}, [e.inert, e.lockRef.current, e.shards]);
|
|
828
|
+
var o = s.useCallback(function(i, l) {
|
|
829
|
+
if ("touches" in i && i.touches.length === 2)
|
|
830
|
+
return !u.current.allowPinchZoom;
|
|
831
|
+
var f = U(i), g = n.current, b = "deltaX" in i ? i.deltaX : g[0] - f[0], y = "deltaY" in i ? i.deltaY : g[1] - f[1], C, P = i.target, S = Math.abs(b) > Math.abs(y) ? "h" : "v";
|
|
832
|
+
if ("touches" in i && S === "h" && P.type === "range")
|
|
833
|
+
return !1;
|
|
834
|
+
var x = fe(S, P);
|
|
835
|
+
if (!x)
|
|
836
|
+
return !0;
|
|
837
|
+
if (x ? C = S : (C = S === "v" ? "h" : "v", x = fe(S, P)), !x)
|
|
838
|
+
return !1;
|
|
839
|
+
if (!r.current && "changedTouches" in i && (b || y) && (r.current = C), !C)
|
|
840
|
+
return !0;
|
|
841
|
+
var D = r.current || C;
|
|
842
|
+
return It(D, l, i, D === "h" ? b : y, !0);
|
|
843
|
+
}, []), w = s.useCallback(function(i) {
|
|
844
|
+
var l = i;
|
|
845
|
+
if (!(!M.length || M[M.length - 1] !== c)) {
|
|
846
|
+
var f = "deltaY" in l ? ve(l) : U(l), g = t.current.filter(function(C) {
|
|
847
|
+
return C.name === l.type && (C.target === l.target || l.target === C.shadowParent) && Ft(C.delta, f);
|
|
848
|
+
})[0];
|
|
849
|
+
if (g && g.should) {
|
|
850
|
+
l.cancelable && l.preventDefault();
|
|
851
|
+
return;
|
|
852
|
+
}
|
|
853
|
+
if (!g) {
|
|
854
|
+
var b = (u.current.shards || []).map(he).filter(Boolean).filter(function(C) {
|
|
855
|
+
return C.contains(l.target);
|
|
856
|
+
}), y = b.length > 0 ? o(l, b[0]) : !u.current.noIsolation;
|
|
857
|
+
y && l.cancelable && l.preventDefault();
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}, []), d = s.useCallback(function(i, l, f, g) {
|
|
861
|
+
var b = { name: i, delta: l, target: f, should: g, shadowParent: jt(f) };
|
|
862
|
+
t.current.push(b), setTimeout(function() {
|
|
863
|
+
t.current = t.current.filter(function(y) {
|
|
864
|
+
return y !== b;
|
|
865
|
+
});
|
|
866
|
+
}, 1);
|
|
867
|
+
}, []), v = s.useCallback(function(i) {
|
|
868
|
+
n.current = U(i), r.current = void 0;
|
|
869
|
+
}, []), h = s.useCallback(function(i) {
|
|
870
|
+
d(i.type, ve(i), i.target, o(i, e.lockRef.current));
|
|
871
|
+
}, []), m = s.useCallback(function(i) {
|
|
872
|
+
d(i.type, U(i), i.target, o(i, e.lockRef.current));
|
|
873
|
+
}, []);
|
|
874
|
+
s.useEffect(function() {
|
|
875
|
+
return M.push(c), e.setCallbacks({
|
|
876
|
+
onScrollCapture: h,
|
|
877
|
+
onWheelCapture: h,
|
|
878
|
+
onTouchMoveCapture: m
|
|
879
|
+
}), document.addEventListener("wheel", w, N), document.addEventListener("touchmove", w, N), document.addEventListener("touchstart", v, N), function() {
|
|
880
|
+
M = M.filter(function(i) {
|
|
881
|
+
return i !== c;
|
|
882
|
+
}), document.removeEventListener("wheel", w, N), document.removeEventListener("touchmove", w, N), document.removeEventListener("touchstart", v, N);
|
|
883
|
+
};
|
|
884
|
+
}, []);
|
|
885
|
+
var p = e.removeScrollBar, E = e.inert;
|
|
886
|
+
return s.createElement(
|
|
887
|
+
s.Fragment,
|
|
888
|
+
null,
|
|
889
|
+
E ? s.createElement(c, { styles: Bt(a) }) : null,
|
|
890
|
+
p ? s.createElement(Lt, { gapMode: e.gapMode }) : null
|
|
891
|
+
);
|
|
892
|
+
}
|
|
893
|
+
function jt(e) {
|
|
894
|
+
for (var t = null; e !== null; )
|
|
895
|
+
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
896
|
+
return t;
|
|
897
|
+
}
|
|
898
|
+
const Ut = mt(Se, _t);
|
|
899
|
+
var Ht = s.forwardRef(function(e, t) {
|
|
900
|
+
return s.createElement(K, R({}, e, { ref: t, sideCar: Ut }));
|
|
901
|
+
});
|
|
902
|
+
Ht.classNames = K.classNames;
|
|
903
|
+
export {
|
|
904
|
+
De as B,
|
|
905
|
+
je as D,
|
|
906
|
+
Xe as F,
|
|
907
|
+
et as P,
|
|
908
|
+
Ht as R,
|
|
909
|
+
nt as V,
|
|
910
|
+
qt as a,
|
|
911
|
+
Gt as c,
|
|
912
|
+
Qt as h,
|
|
913
|
+
Zt as u
|
|
914
|
+
};
|
|
915
|
+
//# sourceMappingURL=Combination-B0Iu6mhJ.js.map
|