@anoki/fse-ui 1.0.424 → 1.0.425
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/index.cjs186.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs288.js.map +1 -1
- package/dist/index.cjs291.js +1 -1
- package/dist/index.cjs291.js.map +1 -1
- package/dist/index.cjs292.js +1 -1
- package/dist/index.cjs292.js.map +1 -1
- package/dist/index.cjs293.js +1 -1
- package/dist/index.cjs293.js.map +1 -1
- package/dist/{index.cjs290.js → index.cjs294.js} +2 -2
- package/dist/{index.cjs290.js.map → index.cjs294.js.map} +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs295.js.map +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs296.js.map +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs297.js.map +1 -1
- package/dist/index.cjs298.js +1 -1
- package/dist/index.cjs298.js.map +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs299.js.map +1 -1
- package/dist/index.cjs300.js +1 -1
- package/dist/index.cjs300.js.map +1 -1
- package/dist/index.cjs301.js +1 -1
- package/dist/index.cjs301.js.map +1 -1
- package/dist/index.cjs302.js +1 -1
- package/dist/index.cjs302.js.map +1 -1
- package/dist/index.cjs303.js +1 -1
- package/dist/index.cjs303.js.map +1 -1
- package/dist/index.cjs304.js +1 -1
- package/dist/index.cjs304.js.map +1 -1
- package/dist/index.cjs305.js +1 -1
- package/dist/index.cjs305.js.map +1 -1
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs306.js.map +1 -1
- package/dist/index.cjs307.js +1 -1
- package/dist/index.cjs307.js.map +1 -1
- package/dist/index.cjs308.js +1 -1
- package/dist/index.cjs308.js.map +1 -1
- package/dist/index.cjs309.js +1 -1
- package/dist/index.cjs309.js.map +1 -1
- package/dist/{index.cjs317.js → index.cjs310.js} +2 -2
- package/dist/index.cjs310.js.map +1 -0
- package/dist/index.cjs311.js +2 -0
- package/dist/index.cjs311.js.map +1 -0
- package/dist/index.cjs312.js +2 -0
- package/dist/index.cjs312.js.map +1 -0
- package/dist/index.cjs313.js +2 -0
- package/dist/index.cjs313.js.map +1 -0
- package/dist/index.cjs314.js +2 -0
- package/dist/index.cjs314.js.map +1 -0
- package/dist/index.cjs315.js +1 -1
- package/dist/index.cjs315.js.map +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs318.js.map +1 -1
- package/dist/index.cjs319.js +1 -1
- package/dist/index.cjs319.js.map +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs321.js.map +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs322.js.map +1 -1
- package/dist/index.cjs329.js +2 -0
- package/dist/index.cjs329.js.map +1 -0
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs331.js +1 -1
- package/dist/index.cjs331.js.map +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs332.js.map +1 -1
- package/dist/index.cjs339.js +1 -1
- package/dist/index.cjs339.js.map +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs340.js.map +1 -1
- package/dist/index.cjs341.js +1 -1
- package/dist/index.cjs341.js.map +1 -1
- package/dist/index.cjs342.js +1 -4
- package/dist/index.cjs342.js.map +1 -1
- package/dist/index.cjs343.js +1 -1
- package/dist/index.cjs343.js.map +1 -1
- package/dist/index.cjs344.js +1 -1
- package/dist/index.cjs344.js.map +1 -1
- package/dist/index.cjs345.js +2 -0
- package/dist/index.cjs345.js.map +1 -0
- package/dist/index.cjs346.js +2 -0
- package/dist/index.cjs346.js.map +1 -0
- package/dist/index.cjs347.js +5 -0
- package/dist/index.cjs347.js.map +1 -0
- package/dist/index.cjs348.js +1 -1
- package/dist/index.cjs348.js.map +1 -1
- package/dist/index.cjs349.js +1 -1
- package/dist/index.cjs349.js.map +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs350.js.map +1 -1
- package/dist/index.cjs351.js +1 -38
- package/dist/index.cjs351.js.map +1 -1
- package/dist/index.cjs352.js +1 -1
- package/dist/index.cjs352.js.map +1 -1
- package/dist/index.cjs353.js +38 -1
- package/dist/index.cjs353.js.map +1 -1
- package/dist/index.cjs354.js +1 -1
- package/dist/index.cjs354.js.map +1 -1
- package/dist/index.cjs355.js +1 -1
- package/dist/index.cjs355.js.map +1 -1
- package/dist/index.cjs356.js +1 -1
- package/dist/index.cjs356.js.map +1 -1
- package/dist/index.es186.js +7 -7
- package/dist/index.es190.js +1 -1
- package/dist/index.es197.js +8 -8
- package/dist/index.es208.js +14 -14
- package/dist/index.es215.js +1 -1
- package/dist/index.es220.js +1 -1
- package/dist/index.es227.js +1 -1
- package/dist/index.es235.js +7 -7
- package/dist/index.es288.js +15 -27
- package/dist/index.es288.js.map +1 -1
- package/dist/index.es291.js +6 -32
- package/dist/index.es291.js.map +1 -1
- package/dist/index.es292.js +23 -618
- package/dist/index.es292.js.map +1 -1
- package/dist/index.es293.js +66 -9
- package/dist/index.es293.js.map +1 -1
- package/dist/{index.es290.js → index.es294.js} +2 -2
- package/dist/{index.es290.js.map → index.es294.js.map} +1 -1
- package/dist/index.es295.js +32 -10
- package/dist/index.es295.js.map +1 -1
- package/dist/index.es296.js +621 -45
- package/dist/index.es296.js.map +1 -1
- package/dist/index.es297.js +10 -45
- package/dist/index.es297.js.map +1 -1
- package/dist/index.es298.js +5 -7
- package/dist/index.es298.js.map +1 -1
- package/dist/index.es299.js +23 -123
- package/dist/index.es299.js.map +1 -1
- package/dist/index.es300.js +67 -13
- package/dist/index.es300.js.map +1 -1
- package/dist/index.es301.js +28 -134
- package/dist/index.es301.js.map +1 -1
- package/dist/index.es302.js +10 -217
- package/dist/index.es302.js.map +1 -1
- package/dist/index.es303.js +45 -13
- package/dist/index.es303.js.map +1 -1
- package/dist/index.es304.js +43 -66
- package/dist/index.es304.js.map +1 -1
- package/dist/index.es305.js +7 -177
- package/dist/index.es305.js.map +1 -1
- package/dist/index.es306.js +122 -47
- package/dist/index.es306.js.map +1 -1
- package/dist/index.es307.js +14 -8
- package/dist/index.es307.js.map +1 -1
- package/dist/index.es308.js +135 -4
- package/dist/index.es308.js.map +1 -1
- package/dist/index.es309.js +217 -14
- package/dist/index.es309.js.map +1 -1
- package/dist/{index.es317.js → index.es310.js} +3 -3
- package/dist/index.es310.js.map +1 -0
- package/dist/index.es311.js +181 -0
- package/dist/index.es311.js.map +1 -0
- package/dist/index.es312.js +53 -0
- package/dist/index.es312.js.map +1 -0
- package/dist/index.es313.js +12 -0
- package/dist/index.es313.js.map +1 -0
- package/dist/index.es314.js +7 -0
- package/dist/index.es314.js.map +1 -0
- package/dist/index.es315.js +37 -120
- package/dist/index.es315.js.map +1 -1
- package/dist/index.es318.js +122 -30
- package/dist/index.es318.js.map +1 -1
- package/dist/index.es319.js +130 -37
- package/dist/index.es319.js.map +1 -1
- package/dist/index.es320.js +13 -11
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es321.js +32 -204
- package/dist/index.es321.js.map +1 -1
- package/dist/index.es322.js +41 -21
- package/dist/index.es322.js.map +1 -1
- package/dist/index.es329.js +15 -0
- package/dist/index.es329.js.map +1 -0
- package/dist/index.es330.js +202 -22
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es331.js +20 -27
- package/dist/index.es331.js.map +1 -1
- package/dist/index.es332.js +393 -5
- package/dist/index.es332.js.map +1 -1
- package/dist/index.es339.js +29 -5
- package/dist/index.es339.js.map +1 -1
- package/dist/index.es340.js +25 -3
- package/dist/index.es340.js.map +1 -1
- package/dist/index.es341.js +29 -24
- package/dist/index.es341.js.map +1 -1
- package/dist/index.es342.js +5 -110
- package/dist/index.es342.js.map +1 -1
- package/dist/index.es343.js +41 -15
- package/dist/index.es343.js.map +1 -1
- package/dist/index.es344.js +5 -29
- package/dist/index.es344.js.map +1 -1
- package/dist/index.es345.js +6 -0
- package/dist/index.es345.js.map +1 -0
- package/dist/index.es346.js +27 -0
- package/dist/index.es346.js.map +1 -0
- package/dist/index.es347.js +113 -0
- package/dist/index.es347.js.map +1 -0
- package/dist/index.es348.js +14 -521
- package/dist/index.es348.js.map +1 -1
- package/dist/index.es349.js +509 -113
- package/dist/index.es349.js.map +1 -1
- package/dist/index.es350.js +121 -123
- package/dist/index.es350.js.map +1 -1
- package/dist/index.es351.js +127 -67
- package/dist/index.es351.js.map +1 -1
- package/dist/index.es352.js +64 -8
- package/dist/index.es352.js.map +1 -1
- package/dist/index.es353.js +68 -13
- package/dist/index.es353.js.map +1 -1
- package/dist/index.es354.js +8 -61
- package/dist/index.es354.js.map +1 -1
- package/dist/index.es355.js +13 -64
- package/dist/index.es355.js.map +1 -1
- package/dist/index.es356.js +62 -42
- package/dist/index.es356.js.map +1 -1
- package/package.json +1 -4
- package/dist/index.cjs287.js +0 -2
- package/dist/index.cjs287.js.map +0 -1
- package/dist/index.cjs289.js +0 -2
- package/dist/index.cjs289.js.map +0 -1
- package/dist/index.cjs316.js +0 -2
- package/dist/index.cjs316.js.map +0 -1
- package/dist/index.cjs317.js.map +0 -1
- package/dist/index.cjs323.js +0 -2
- package/dist/index.cjs323.js.map +0 -1
- package/dist/index.cjs324.js +0 -2
- package/dist/index.cjs324.js.map +0 -1
- package/dist/index.cjs325.js +0 -2
- package/dist/index.cjs325.js.map +0 -1
- package/dist/index.cjs326.js +0 -2
- package/dist/index.cjs326.js.map +0 -1
- package/dist/index.cjs338.js +0 -2
- package/dist/index.cjs338.js.map +0 -1
- package/dist/index.es287.js +0 -10
- package/dist/index.es287.js.map +0 -1
- package/dist/index.es289.js +0 -71
- package/dist/index.es289.js.map +0 -1
- package/dist/index.es316.js +0 -138
- package/dist/index.es316.js.map +0 -1
- package/dist/index.es317.js.map +0 -1
- package/dist/index.es323.js +0 -28
- package/dist/index.es323.js.map +0 -1
- package/dist/index.es324.js +0 -396
- package/dist/index.es324.js.map +0 -1
- package/dist/index.es325.js +0 -9
- package/dist/index.es325.js.map +0 -1
- package/dist/index.es326.js +0 -32
- package/dist/index.es326.js.map +0 -1
- package/dist/index.es338.js +0 -45
- package/dist/index.es338.js.map +0 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.es289.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es289.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":";;AAGA,SAASA,EAAeC,GAAmBC,GAAgB;AACzD,QAAMC,IAAUC,EAAM,cAAcF,CAAc,GAC5CG,IAAW,CAACC,MAAU;AAC1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ACD,SAAAT,EAAY,YAAYK,EAAU,WAC3BL;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es316.js
DELETED
@@ -1,138 +0,0 @@
|
|
1
|
-
import * as d from "react";
|
2
|
-
import { useComposedRefs as P } from "./index.es288.js";
|
3
|
-
import { Primitive as M } from "./index.es318.js";
|
4
|
-
import { useCallbackRef as y } from "./index.es295.js";
|
5
|
-
import { j as _ } from "./index.es161.js";
|
6
|
-
var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, n) => {
|
7
|
-
const {
|
8
|
-
loop: t = !1,
|
9
|
-
trapped: u = !1,
|
10
|
-
onMountAutoFocus: p,
|
11
|
-
onUnmountAutoFocus: L,
|
12
|
-
...g
|
13
|
-
} = e, [o, R] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), U = P(n, (s) => R(s)), a = d.useRef({
|
14
|
-
paused: !1,
|
15
|
-
pause() {
|
16
|
-
this.paused = !0;
|
17
|
-
},
|
18
|
-
resume() {
|
19
|
-
this.paused = !1;
|
20
|
-
}
|
21
|
-
}).current;
|
22
|
-
d.useEffect(() => {
|
23
|
-
if (u) {
|
24
|
-
let s = function(i) {
|
25
|
-
if (a.paused || !o) return;
|
26
|
-
const c = i.target;
|
27
|
-
o.contains(c) ? b.current = c : f(b.current, { select: !0 });
|
28
|
-
}, l = function(i) {
|
29
|
-
if (a.paused || !o) return;
|
30
|
-
const c = i.relatedTarget;
|
31
|
-
c !== null && (o.contains(c) || f(b.current, { select: !0 }));
|
32
|
-
}, r = function(i) {
|
33
|
-
if (document.activeElement === document.body)
|
34
|
-
for (const h of i)
|
35
|
-
h.removedNodes.length > 0 && f(o);
|
36
|
-
};
|
37
|
-
document.addEventListener("focusin", s), document.addEventListener("focusout", l);
|
38
|
-
const m = new MutationObserver(r);
|
39
|
-
return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
|
40
|
-
document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
|
41
|
-
};
|
42
|
-
}
|
43
|
-
}, [u, o, a.paused]), d.useEffect(() => {
|
44
|
-
if (o) {
|
45
|
-
S.add(a);
|
46
|
-
const s = document.activeElement;
|
47
|
-
if (!o.contains(s)) {
|
48
|
-
const r = new CustomEvent(F, N);
|
49
|
-
o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(V(I(o)), { select: !0 }), document.activeElement === s && f(o));
|
50
|
-
}
|
51
|
-
return () => {
|
52
|
-
o.removeEventListener(F, E), setTimeout(() => {
|
53
|
-
const r = new CustomEvent(T, N);
|
54
|
-
o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), S.remove(a);
|
55
|
-
}, 0);
|
56
|
-
};
|
57
|
-
}
|
58
|
-
}, [o, E, v, a]);
|
59
|
-
const A = d.useCallback(
|
60
|
-
(s) => {
|
61
|
-
if (!t && !u || a.paused) return;
|
62
|
-
const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
|
63
|
-
if (l && r) {
|
64
|
-
const m = s.currentTarget, [i, c] = x(m);
|
65
|
-
i && c ? !s.shiftKey && r === c ? (s.preventDefault(), t && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), t && f(c, { select: !0 })) : r === m && s.preventDefault();
|
66
|
-
}
|
67
|
-
},
|
68
|
-
[t, u, a.paused]
|
69
|
-
);
|
70
|
-
return /* @__PURE__ */ _.jsx(M.div, { tabIndex: -1, ...g, ref: U, onKeyDown: A });
|
71
|
-
});
|
72
|
-
k.displayName = K;
|
73
|
-
function w(e, { select: n = !1 } = {}) {
|
74
|
-
const t = document.activeElement;
|
75
|
-
for (const u of e)
|
76
|
-
if (f(u, { select: n }), document.activeElement !== t) return;
|
77
|
-
}
|
78
|
-
function x(e) {
|
79
|
-
const n = I(e), t = O(n, e), u = O(n.reverse(), e);
|
80
|
-
return [t, u];
|
81
|
-
}
|
82
|
-
function I(e) {
|
83
|
-
const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
84
|
-
acceptNode: (u) => {
|
85
|
-
const p = u.tagName === "INPUT" && u.type === "hidden";
|
86
|
-
return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
87
|
-
}
|
88
|
-
});
|
89
|
-
for (; t.nextNode(); ) n.push(t.currentNode);
|
90
|
-
return n;
|
91
|
-
}
|
92
|
-
function O(e, n) {
|
93
|
-
for (const t of e)
|
94
|
-
if (!D(t, { upTo: n })) return t;
|
95
|
-
}
|
96
|
-
function D(e, { upTo: n }) {
|
97
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
98
|
-
for (; e; ) {
|
99
|
-
if (n !== void 0 && e === n) return !1;
|
100
|
-
if (getComputedStyle(e).display === "none") return !0;
|
101
|
-
e = e.parentElement;
|
102
|
-
}
|
103
|
-
return !1;
|
104
|
-
}
|
105
|
-
function H(e) {
|
106
|
-
return e instanceof HTMLInputElement && "select" in e;
|
107
|
-
}
|
108
|
-
function f(e, { select: n = !1 } = {}) {
|
109
|
-
if (e && e.focus) {
|
110
|
-
const t = document.activeElement;
|
111
|
-
e.focus({ preventScroll: !0 }), e !== t && H(e) && n && e.select();
|
112
|
-
}
|
113
|
-
}
|
114
|
-
var S = j();
|
115
|
-
function j() {
|
116
|
-
let e = [];
|
117
|
-
return {
|
118
|
-
add(n) {
|
119
|
-
const t = e[0];
|
120
|
-
n !== t && (t == null || t.pause()), e = C(e, n), e.unshift(n);
|
121
|
-
},
|
122
|
-
remove(n) {
|
123
|
-
var t;
|
124
|
-
e = C(e, n), (t = e[0]) == null || t.resume();
|
125
|
-
}
|
126
|
-
};
|
127
|
-
}
|
128
|
-
function C(e, n) {
|
129
|
-
const t = [...e], u = t.indexOf(n);
|
130
|
-
return u !== -1 && t.splice(u, 1), t;
|
131
|
-
}
|
132
|
-
function V(e) {
|
133
|
-
return e.filter((n) => n.tagName !== "A");
|
134
|
-
}
|
135
|
-
export {
|
136
|
-
k as FocusScope
|
137
|
-
};
|
138
|
-
//# sourceMappingURL=index.es316.js.map
|
package/dist/index.es316.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es316.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/focus-scope/src/focus-scope.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AUTOFOCUS_ON_MOUNT = \"focusScope.autoFocusOnMount\";\nvar AUTOFOCUS_ON_UNMOUNT = \"focusScope.autoFocusOnUnmount\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar FOCUS_SCOPE_NAME = \"FocusScope\";\nvar FocusScope = React.forwardRef((props, forwardedRef) => {\n const {\n loop = false,\n trapped = false,\n onMountAutoFocus: onMountAutoFocusProp,\n onUnmountAutoFocus: onUnmountAutoFocusProp,\n ...scopeProps\n } = props;\n const [container, setContainer] = React.useState(null);\n const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));\n const focusScope = React.useRef({\n paused: false,\n pause() {\n this.paused = true;\n },\n resume() {\n this.paused = false;\n }\n }).current;\n React.useEffect(() => {\n if (trapped) {\n let handleFocusIn2 = function(event) {\n if (focusScope.paused || !container) return;\n const target = event.target;\n if (container.contains(target)) {\n lastFocusedElementRef.current = target;\n } else {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleFocusOut2 = function(event) {\n if (focusScope.paused || !container) return;\n const relatedTarget = event.relatedTarget;\n if (relatedTarget === null) return;\n if (!container.contains(relatedTarget)) {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleMutations2 = function(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations) {\n if (mutation.removedNodes.length > 0) focus(container);\n }\n };\n var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;\n document.addEventListener(\"focusin\", handleFocusIn2);\n document.addEventListener(\"focusout\", handleFocusOut2);\n const mutationObserver = new MutationObserver(handleMutations2);\n if (container) mutationObserver.observe(container, { childList: true, subtree: true });\n return () => {\n document.removeEventListener(\"focusin\", handleFocusIn2);\n document.removeEventListener(\"focusout\", handleFocusOut2);\n mutationObserver.disconnect();\n };\n }\n }, [trapped, container, focusScope.paused]);\n React.useEffect(() => {\n if (container) {\n focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });\n if (document.activeElement === previouslyFocusedElement) {\n focus(container);\n }\n }\n }\n return () => {\n container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n setTimeout(() => {\n const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) {\n focus(previouslyFocusedElement ?? document.body, { select: true });\n }\n container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);\n const handleKeyDown = React.useCallback(\n (event) => {\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === \"Tab\" && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container2 = event.currentTarget;\n const [first, last] = getTabbableEdges(container2);\n const hasTabbableElementsInside = first && last;\n if (!hasTabbableElementsInside) {\n if (focusedElement === container2) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) focus(first, { select: true });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) focus(last, { select: true });\n }\n }\n }\n },\n [loop, trapped, focusScope.paused]\n );\n return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });\n});\nFocusScope.displayName = FOCUS_SCOPE_NAME;\nfunction focusFirst(candidates, { select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates) {\n focus(candidate, { select });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\nfunction getTabbableEdges(container) {\n const candidates = getTabbableCandidates(container);\n const first = findVisible(candidates, container);\n const last = findVisible(candidates.reverse(), container);\n return [first, last];\n}\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction findVisible(elements, container) {\n for (const element of elements) {\n if (!isHidden(element, { upTo: container })) return element;\n }\n}\nfunction isHidden(node, { upTo }) {\n if (getComputedStyle(node).visibility === \"hidden\") return true;\n while (node) {\n if (upTo !== void 0 && node === upTo) return false;\n if (getComputedStyle(node).display === \"none\") return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction isSelectableInput(element) {\n return element instanceof HTMLInputElement && \"select\" in element;\n}\nfunction focus(element, { select = false } = {}) {\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement;\n element.focus({ preventScroll: true });\n if (element !== previouslyFocusedElement && isSelectableInput(element) && select)\n element.select();\n }\n}\nvar focusScopesStack = createFocusScopesStack();\nfunction createFocusScopesStack() {\n let stack = [];\n return {\n add(focusScope) {\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) {\n activeFocusScope?.pause();\n }\n stack = arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove(focusScope) {\n stack = arrayRemove(stack, focusScope);\n stack[0]?.resume();\n }\n };\n}\nfunction arrayRemove(array, item) {\n const updatedArray = [...array];\n const index = updatedArray.indexOf(item);\n if (index !== -1) {\n updatedArray.splice(index, 1);\n }\n return updatedArray;\n}\nfunction removeLinks(items) {\n return items.filter((item) => item.tagName !== \"A\");\n}\nvar Root = FocusScope;\nexport {\n FocusScope,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AUTOFOCUS_ON_MOUNT","AUTOFOCUS_ON_UNMOUNT","EVENT_OPTIONS","FOCUS_SCOPE_NAME","FocusScope","React","props","forwardedRef","loop","trapped","onMountAutoFocusProp","onUnmountAutoFocusProp","scopeProps","container","setContainer","onMountAutoFocus","useCallbackRef","onUnmountAutoFocus","lastFocusedElementRef","composedRefs","useComposedRefs","node","focusScope","handleFocusIn2","event","target","focus","handleFocusOut2","relatedTarget","handleMutations2","mutations","mutation","mutationObserver","focusScopesStack","previouslyFocusedElement","mountEvent","focusFirst","removeLinks","getTabbableCandidates","unmountEvent","handleKeyDown","isTabKey","focusedElement","container2","first","last","getTabbableEdges","jsx","Primitive","candidates","select","candidate","findVisible","nodes","walker","isHiddenInput","elements","element","isHidden","upTo","isSelectableInput","createFocusScopesStack","stack","activeFocusScope","arrayRemove","_a","array","item","updatedArray","index","items"],"mappings":";;;;;AAQA,IAAIA,IAAqB,+BACrBC,IAAuB,iCACvBC,IAAgB,EAAE,SAAS,IAAO,YAAY,GAAM,GACpDC,IAAmB,cACnBC,IAAaC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACzD,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,SAAAC,IAAU;AAAA,IACV,kBAAkBC;AAAA,IAClB,oBAAoBC;AAAA,IACpB,GAAGC;AAAA,EACP,IAAMN,GACE,CAACO,GAAWC,CAAY,IAAIT,EAAM,SAAS,IAAI,GAC/CU,IAAmBC,EAAeN,CAAoB,GACtDO,IAAqBD,EAAeL,CAAsB,GAC1DO,IAAwBb,EAAM,OAAO,IAAI,GACzCc,IAAeC,EAAgBb,GAAc,CAACc,MAASP,EAAaO,CAAI,CAAC,GACzEC,IAAajB,EAAM,OAAO;AAAA,IAC9B,QAAQ;AAAA,IACR,QAAQ;AACN,WAAK,SAAS;AAAA,IACf;AAAA,IACD,SAAS;AACP,WAAK,SAAS;AAAA,IACpB;AAAA,EACG,CAAA,EAAE;AACH,EAAAA,EAAM,UAAU,MAAM;AACpB,QAAII,GAAS;AACX,UAAIc,IAAiB,SAASC,GAAO;AACnC,YAAIF,EAAW,UAAU,CAACT,EAAW;AACrC,cAAMY,IAASD,EAAM;AACrB,QAAIX,EAAU,SAASY,CAAM,IAC3BP,EAAsB,UAAUO,IAEhCC,EAAMR,EAAsB,SAAS,EAAE,QAAQ,GAAI,CAAE;AAAA,MAE/D,GAASS,IAAkB,SAASH,GAAO;AACnC,YAAIF,EAAW,UAAU,CAACT,EAAW;AACrC,cAAMe,IAAgBJ,EAAM;AAC5B,QAAII,MAAkB,SACjBf,EAAU,SAASe,CAAa,KACnCF,EAAMR,EAAsB,SAAS,EAAE,QAAQ,GAAI,CAAE;AA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AA4B0B,EAAkBH,CAAO,KAAKP,KACxEO,EAAQ,OAAQ;AAAA,EACtB;AACA;AACA,IAAIxB,IAAmB4B,EAAwB;AAC/C,SAASA,IAAyB;AAChC,MAAIC,IAAQ,CAAE;AACd,SAAO;AAAA,IACL,IAAIxC,GAAY;AACd,YAAMyC,IAAmBD,EAAM,CAAC;AAChC,MAAIxC,MAAeyC,MACjBA,KAAA,QAAAA,EAAkB,UAEpBD,IAAQE,EAAYF,GAAOxC,CAAU,GACrCwC,EAAM,QAAQxC,CAAU;AAAA,IACzB;AAAA,IACD,OAAOA,GAAY;;AACjB,MAAAwC,IAAQE,EAAYF,GAAOxC,CAAU,IACrC2C,IAAAH,EAAM,CAAC,MAAP,QAAAG,EAAU;AAAA,IAChB;AAAA,EACG;AACH;AACA,SAASD,EAAYE,GAAOC,GAAM;AAChC,QAAMC,IAAe,CAAC,GAAGF,CAAK,GACxBG,IAAQD,EAAa,QAAQD,CAAI;AACvC,SAAIE,MAAU,MACZD,EAAa,OAAOC,GAAO,CAAC,GAEvBD;AACT;AACA,SAAS/B,EAAYiC,GAAO;AAC1B,SAAOA,EAAM,OAAO,CAACH,MAASA,EAAK,YAAY,GAAG;AACpD;","x_google_ignoreList":[0]}
|
package/dist/index.es317.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es317.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/portal/src/portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PORTAL_NAME","Portal","React","props","forwardedRef","containerProp","portalProps","mounted","setMounted","useLayoutEffect","container","_a","ReactDOM","jsx","Primitive"],"mappings":";;;;;AAQA,IAAIA,IAAc,UACdC,IAASC,EAAM,WAAW,CAACC,GAAOC,MAAiB;;AACrD,QAAM,EAAE,WAAWC,GAAe,GAAGC,EAAa,IAAGH,GAC/C,CAACI,GAASC,CAAU,IAAIN,EAAM,SAAS,EAAK;AAClDO,EAAAA,EAAgB,MAAMD,EAAW,EAAI,GAAG,CAAA,CAAE;AAC1C,QAAME,IAAYL,KAAiBE,OAAWI,IAAA,yCAAY,aAAZ,gBAAAA,EAAsB;AACpE,SAAOD,IAAYE,EAAS,aAA6BC,gBAAAA,EAAG,IAACC,EAAU,KAAK,EAAE,GAAGR,GAAa,KAAKF,EAAc,CAAA,GAAGM,CAAS,IAAI;AACnI,CAAC;AACDT,EAAO,cAAcD;","x_google_ignoreList":[0]}
|
package/dist/index.es323.js
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
import * as b from "react";
|
2
|
-
import { useLayoutEffect as h } from "./index.es308.js";
|
3
|
-
function a(r) {
|
4
|
-
const [d, e] = b.useState(void 0);
|
5
|
-
return h(() => {
|
6
|
-
if (r) {
|
7
|
-
e({ width: r.offsetWidth, height: r.offsetHeight });
|
8
|
-
const f = new ResizeObserver((i) => {
|
9
|
-
if (!Array.isArray(i) || !i.length)
|
10
|
-
return;
|
11
|
-
const n = i[0];
|
12
|
-
let o, t;
|
13
|
-
if ("borderBoxSize" in n) {
|
14
|
-
const s = n.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
|
15
|
-
o = u.inlineSize, t = u.blockSize;
|
16
|
-
} else
|
17
|
-
o = r.offsetWidth, t = r.offsetHeight;
|
18
|
-
e({ width: o, height: t });
|
19
|
-
});
|
20
|
-
return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
|
21
|
-
} else
|
22
|
-
e(void 0);
|
23
|
-
}, [r]), d;
|
24
|
-
}
|
25
|
-
export {
|
26
|
-
a as useSize
|
27
|
-
};
|
28
|
-
//# sourceMappingURL=index.es323.js.map
|
package/dist/index.es323.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es323.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/useSize.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":";;AAGA,SAASA,EAAQC,GAAS;AACxB,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,MAAM;AAC7CC,SAAAA,EAAgB,MAAM;AACpB,QAAIJ,GAAS;AACX,MAAAE,EAAQ,EAAE,OAAOF,EAAQ,aAAa,QAAQA,EAAQ,cAAc;AACpE,YAAMK,IAAiB,IAAI,eAAe,CAACC,MAAY;AAIrD,YAHI,CAAC,MAAM,QAAQA,CAAO,KAGtB,CAACA,EAAQ;AACX;AAEF,cAAMC,IAAQD,EAAQ,CAAC;AACvB,YAAIE,GACAC;AACJ,YAAI,mBAAmBF,GAAO;AAC5B,gBAAMG,IAAkBH,EAAM,eACxBI,IAAa,MAAM,QAAQD,CAAe,IAAIA,EAAgB,CAAC,IAAIA;AACzE,UAAAF,IAAQG,EAAW,YACnBF,IAASE,EAAW;AAAA,QAC9B;AACU,UAAAH,IAAQR,EAAQ,aAChBS,IAAST,EAAQ;AAEnB,QAAAE,EAAQ,EAAE,OAAAM,GAAO,QAAAC,GAAQ;AAAA,MACjC,CAAO;AACD,aAAAJ,EAAe,QAAQL,GAAS,EAAE,KAAK,aAAY,CAAE,GAC9C,MAAMK,EAAe,UAAUL,CAAO;AAAA,IACnD;AACM,MAAAE,EAAQ,MAAM;AAAA,EAEpB,GAAK,CAACF,CAAO,CAAC,GACLC;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es324.js
DELETED
@@ -1,396 +0,0 @@
|
|
1
|
-
import { offset as ot, shift as st, flip as rt, size as ct, hide as lt, computePosition as ft, arrow as ut, limitShift as ht } from "./index.es348.js";
|
2
|
-
import { createCoords as m, rectToClientRect as J, round as A, floor as D, max as E, min as V } from "./index.es349.js";
|
3
|
-
import { getOverflowAncestors as $, isElement as v, getWindow as L, getFrameElement as K, getComputedStyle as R, getDocumentElement as O, isHTMLElement as b, isWebKit as Q, isTopLayer as S, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getParentNode as W, isLastTraversableNode as H, isTableElement as dt, isContainingBlock as Y, getContainingBlock as at } from "./index.es350.js";
|
4
|
-
function Z(t) {
|
5
|
-
const e = R(t);
|
6
|
-
let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
7
|
-
const o = b(t), r = o ? t.offsetWidth : n, s = o ? t.offsetHeight : i, c = A(n) !== r || A(i) !== s;
|
8
|
-
return c && (n = r, i = s), {
|
9
|
-
width: n,
|
10
|
-
height: i,
|
11
|
-
$: c
|
12
|
-
};
|
13
|
-
}
|
14
|
-
function q(t) {
|
15
|
-
return v(t) ? t : t.contextElement;
|
16
|
-
}
|
17
|
-
function F(t) {
|
18
|
-
const e = q(t);
|
19
|
-
if (!b(e))
|
20
|
-
return m(1);
|
21
|
-
const n = e.getBoundingClientRect(), {
|
22
|
-
width: i,
|
23
|
-
height: o,
|
24
|
-
$: r
|
25
|
-
} = Z(e);
|
26
|
-
let s = (r ? A(n.width) : n.width) / i, c = (r ? A(n.height) : n.height) / o;
|
27
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
28
|
-
x: s,
|
29
|
-
y: c
|
30
|
-
};
|
31
|
-
}
|
32
|
-
const gt = /* @__PURE__ */ m(0);
|
33
|
-
function X(t) {
|
34
|
-
const e = L(t);
|
35
|
-
return !Q() || !e.visualViewport ? gt : {
|
36
|
-
x: e.visualViewport.offsetLeft,
|
37
|
-
y: e.visualViewport.offsetTop
|
38
|
-
};
|
39
|
-
}
|
40
|
-
function pt(t, e, n) {
|
41
|
-
return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
|
42
|
-
}
|
43
|
-
function T(t, e, n, i) {
|
44
|
-
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
45
|
-
const o = t.getBoundingClientRect(), r = q(t);
|
46
|
-
let s = m(1);
|
47
|
-
e && (i ? v(i) && (s = F(i)) : s = F(t));
|
48
|
-
const c = pt(r, n, i) ? X(r) : m(0);
|
49
|
-
let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
|
50
|
-
if (r) {
|
51
|
-
const p = L(r), d = i && v(i) ? L(i) : i;
|
52
|
-
let y = p, g = K(y);
|
53
|
-
for (; g && i && d !== y; ) {
|
54
|
-
const w = F(g), a = g.getBoundingClientRect(), x = R(g), C = a.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, B = a.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
|
55
|
-
l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, y = L(g), g = K(y);
|
56
|
-
}
|
57
|
-
}
|
58
|
-
return J({
|
59
|
-
width: u,
|
60
|
-
height: h,
|
61
|
-
x: l,
|
62
|
-
y: f
|
63
|
-
});
|
64
|
-
}
|
65
|
-
function k(t, e) {
|
66
|
-
const n = N(t).scrollLeft;
|
67
|
-
return e ? e.left + n : T(O(t)).left + n;
|
68
|
-
}
|
69
|
-
function tt(t, e, n) {
|
70
|
-
n === void 0 && (n = !1);
|
71
|
-
const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - (n ? 0 : (
|
72
|
-
// RTL <body> scrollbar.
|
73
|
-
k(t, i)
|
74
|
-
)), r = i.top + e.scrollTop;
|
75
|
-
return {
|
76
|
-
x: o,
|
77
|
-
y: r
|
78
|
-
};
|
79
|
-
}
|
80
|
-
function wt(t) {
|
81
|
-
let {
|
82
|
-
elements: e,
|
83
|
-
rect: n,
|
84
|
-
offsetParent: i,
|
85
|
-
strategy: o
|
86
|
-
} = t;
|
87
|
-
const r = o === "fixed", s = O(i), c = e ? S(e.floating) : !1;
|
88
|
-
if (i === s || c && r)
|
89
|
-
return n;
|
90
|
-
let l = {
|
91
|
-
scrollLeft: 0,
|
92
|
-
scrollTop: 0
|
93
|
-
}, f = m(1);
|
94
|
-
const u = m(0), h = b(i);
|
95
|
-
if ((h || !h && !r) && ((M(i) !== "body" || _(s)) && (l = N(i)), b(i))) {
|
96
|
-
const d = T(i);
|
97
|
-
f = F(i), u.x = d.x + i.clientLeft, u.y = d.y + i.clientTop;
|
98
|
-
}
|
99
|
-
const p = s && !h && !r ? tt(s, l, !0) : m(0);
|
100
|
-
return {
|
101
|
-
width: n.width * f.x,
|
102
|
-
height: n.height * f.y,
|
103
|
-
x: n.x * f.x - l.scrollLeft * f.x + u.x + p.x,
|
104
|
-
y: n.y * f.y - l.scrollTop * f.y + u.y + p.y
|
105
|
-
};
|
106
|
-
}
|
107
|
-
function mt(t) {
|
108
|
-
return Array.from(t.getClientRects());
|
109
|
-
}
|
110
|
-
function yt(t) {
|
111
|
-
const e = O(t), n = N(t), i = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), r = E(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
|
112
|
-
let s = -n.scrollLeft + k(t);
|
113
|
-
const c = -n.scrollTop;
|
114
|
-
return R(i).direction === "rtl" && (s += E(e.clientWidth, i.clientWidth) - o), {
|
115
|
-
width: o,
|
116
|
-
height: r,
|
117
|
-
x: s,
|
118
|
-
y: c
|
119
|
-
};
|
120
|
-
}
|
121
|
-
function xt(t, e) {
|
122
|
-
const n = L(t), i = O(t), o = n.visualViewport;
|
123
|
-
let r = i.clientWidth, s = i.clientHeight, c = 0, l = 0;
|
124
|
-
if (o) {
|
125
|
-
r = o.width, s = o.height;
|
126
|
-
const f = Q();
|
127
|
-
(!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
128
|
-
}
|
129
|
-
return {
|
130
|
-
width: r,
|
131
|
-
height: s,
|
132
|
-
x: c,
|
133
|
-
y: l
|
134
|
-
};
|
135
|
-
}
|
136
|
-
function vt(t, e) {
|
137
|
-
const n = T(t, !0, e === "fixed"), i = n.top + t.clientTop, o = n.left + t.clientLeft, r = b(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = i * r.y;
|
138
|
-
return {
|
139
|
-
width: s,
|
140
|
-
height: c,
|
141
|
-
x: l,
|
142
|
-
y: f
|
143
|
-
};
|
144
|
-
}
|
145
|
-
function j(t, e, n) {
|
146
|
-
let i;
|
147
|
-
if (e === "viewport")
|
148
|
-
i = xt(t, n);
|
149
|
-
else if (e === "document")
|
150
|
-
i = yt(O(t));
|
151
|
-
else if (v(e))
|
152
|
-
i = vt(e, n);
|
153
|
-
else {
|
154
|
-
const o = X(t);
|
155
|
-
i = {
|
156
|
-
x: e.x - o.x,
|
157
|
-
y: e.y - o.y,
|
158
|
-
width: e.width,
|
159
|
-
height: e.height
|
160
|
-
};
|
161
|
-
}
|
162
|
-
return J(i);
|
163
|
-
}
|
164
|
-
function et(t, e) {
|
165
|
-
const n = W(t);
|
166
|
-
return n === e || !v(n) || H(n) ? !1 : R(n).position === "fixed" || et(n, e);
|
167
|
-
}
|
168
|
-
function Rt(t, e) {
|
169
|
-
const n = e.get(t);
|
170
|
-
if (n)
|
171
|
-
return n;
|
172
|
-
let i = $(t, [], !1).filter((c) => v(c) && M(c) !== "body"), o = null;
|
173
|
-
const r = R(t).position === "fixed";
|
174
|
-
let s = r ? W(t) : t;
|
175
|
-
for (; v(s) && !H(s); ) {
|
176
|
-
const c = R(s), l = Y(s);
|
177
|
-
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && et(t, s)) ? i = i.filter((u) => u !== s) : o = c, s = W(s);
|
178
|
-
}
|
179
|
-
return e.set(t, i), i;
|
180
|
-
}
|
181
|
-
function Ot(t) {
|
182
|
-
let {
|
183
|
-
element: e,
|
184
|
-
boundary: n,
|
185
|
-
rootBoundary: i,
|
186
|
-
strategy: o
|
187
|
-
} = t;
|
188
|
-
const s = [...n === "clippingAncestors" ? S(e) ? [] : Rt(e, this._c) : [].concat(n), i], c = s[0], l = s.reduce((f, u) => {
|
189
|
-
const h = j(e, u, o);
|
190
|
-
return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
|
191
|
-
}, j(e, c, o));
|
192
|
-
return {
|
193
|
-
width: l.right - l.left,
|
194
|
-
height: l.bottom - l.top,
|
195
|
-
x: l.left,
|
196
|
-
y: l.top
|
197
|
-
};
|
198
|
-
}
|
199
|
-
function bt(t) {
|
200
|
-
const {
|
201
|
-
width: e,
|
202
|
-
height: n
|
203
|
-
} = Z(t);
|
204
|
-
return {
|
205
|
-
width: e,
|
206
|
-
height: n
|
207
|
-
};
|
208
|
-
}
|
209
|
-
function Ct(t, e, n) {
|
210
|
-
const i = b(e), o = O(e), r = n === "fixed", s = T(t, !0, r, e);
|
211
|
-
let c = {
|
212
|
-
scrollLeft: 0,
|
213
|
-
scrollTop: 0
|
214
|
-
};
|
215
|
-
const l = m(0);
|
216
|
-
if (i || !i && !r)
|
217
|
-
if ((M(e) !== "body" || _(o)) && (c = N(e)), i) {
|
218
|
-
const p = T(e, !0, r, e);
|
219
|
-
l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
|
220
|
-
} else o && (l.x = k(o));
|
221
|
-
const f = o && !i && !r ? tt(o, c) : m(0), u = s.left + c.scrollLeft - l.x - f.x, h = s.top + c.scrollTop - l.y - f.y;
|
222
|
-
return {
|
223
|
-
x: u,
|
224
|
-
y: h,
|
225
|
-
width: s.width,
|
226
|
-
height: s.height
|
227
|
-
};
|
228
|
-
}
|
229
|
-
function I(t) {
|
230
|
-
return R(t).position === "static";
|
231
|
-
}
|
232
|
-
function G(t, e) {
|
233
|
-
if (!b(t) || R(t).position === "fixed")
|
234
|
-
return null;
|
235
|
-
if (e)
|
236
|
-
return e(t);
|
237
|
-
let n = t.offsetParent;
|
238
|
-
return O(t) === n && (n = n.ownerDocument.body), n;
|
239
|
-
}
|
240
|
-
function nt(t, e) {
|
241
|
-
const n = L(t);
|
242
|
-
if (S(t))
|
243
|
-
return n;
|
244
|
-
if (!b(t)) {
|
245
|
-
let o = W(t);
|
246
|
-
for (; o && !H(o); ) {
|
247
|
-
if (v(o) && !I(o))
|
248
|
-
return o;
|
249
|
-
o = W(o);
|
250
|
-
}
|
251
|
-
return n;
|
252
|
-
}
|
253
|
-
let i = G(t, e);
|
254
|
-
for (; i && dt(i) && I(i); )
|
255
|
-
i = G(i, e);
|
256
|
-
return i && H(i) && I(i) && !Y(i) ? n : i || at(t) || n;
|
257
|
-
}
|
258
|
-
const Lt = async function(t) {
|
259
|
-
const e = this.getOffsetParent || nt, n = this.getDimensions, i = await n(t.floating);
|
260
|
-
return {
|
261
|
-
reference: Ct(t.reference, await e(t.floating), t.strategy),
|
262
|
-
floating: {
|
263
|
-
x: 0,
|
264
|
-
y: 0,
|
265
|
-
width: i.width,
|
266
|
-
height: i.height
|
267
|
-
}
|
268
|
-
};
|
269
|
-
};
|
270
|
-
function Tt(t) {
|
271
|
-
return R(t).direction === "rtl";
|
272
|
-
}
|
273
|
-
const Et = {
|
274
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: wt,
|
275
|
-
getDocumentElement: O,
|
276
|
-
getClippingRect: Ot,
|
277
|
-
getOffsetParent: nt,
|
278
|
-
getElementRects: Lt,
|
279
|
-
getClientRects: mt,
|
280
|
-
getDimensions: bt,
|
281
|
-
getScale: F,
|
282
|
-
isElement: v,
|
283
|
-
isRTL: Tt
|
284
|
-
};
|
285
|
-
function it(t, e) {
|
286
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
287
|
-
}
|
288
|
-
function Ft(t, e) {
|
289
|
-
let n = null, i;
|
290
|
-
const o = O(t);
|
291
|
-
function r() {
|
292
|
-
var c;
|
293
|
-
clearTimeout(i), (c = n) == null || c.disconnect(), n = null;
|
294
|
-
}
|
295
|
-
function s(c, l) {
|
296
|
-
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
297
|
-
const f = t.getBoundingClientRect(), {
|
298
|
-
left: u,
|
299
|
-
top: h,
|
300
|
-
width: p,
|
301
|
-
height: d
|
302
|
-
} = f;
|
303
|
-
if (c || e(), !p || !d)
|
304
|
-
return;
|
305
|
-
const y = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h + d)), a = D(u), C = {
|
306
|
-
rootMargin: -y + "px " + -g + "px " + -w + "px " + -a + "px",
|
307
|
-
threshold: E(0, V(1, l)) || 1
|
308
|
-
};
|
309
|
-
let B = !0;
|
310
|
-
function P(U) {
|
311
|
-
const z = U[0].intersectionRatio;
|
312
|
-
if (z !== l) {
|
313
|
-
if (!B)
|
314
|
-
return s();
|
315
|
-
z ? s(!1, z) : i = setTimeout(() => {
|
316
|
-
s(!1, 1e-7);
|
317
|
-
}, 1e3);
|
318
|
-
}
|
319
|
-
z === 1 && !it(f, t.getBoundingClientRect()) && s(), B = !1;
|
320
|
-
}
|
321
|
-
try {
|
322
|
-
n = new IntersectionObserver(P, {
|
323
|
-
...C,
|
324
|
-
// Handle <iframe>s
|
325
|
-
root: o.ownerDocument
|
326
|
-
});
|
327
|
-
} catch {
|
328
|
-
n = new IntersectionObserver(P, C);
|
329
|
-
}
|
330
|
-
n.observe(t);
|
331
|
-
}
|
332
|
-
return s(!0), r;
|
333
|
-
}
|
334
|
-
function Dt(t, e, n, i) {
|
335
|
-
i === void 0 && (i = {});
|
336
|
-
const {
|
337
|
-
ancestorScroll: o = !0,
|
338
|
-
ancestorResize: r = !0,
|
339
|
-
elementResize: s = typeof ResizeObserver == "function",
|
340
|
-
layoutShift: c = typeof IntersectionObserver == "function",
|
341
|
-
animationFrame: l = !1
|
342
|
-
} = i, f = q(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
|
343
|
-
u.forEach((a) => {
|
344
|
-
o && a.addEventListener("scroll", n, {
|
345
|
-
passive: !0
|
346
|
-
}), r && a.addEventListener("resize", n);
|
347
|
-
});
|
348
|
-
const h = f && c ? Ft(f, n) : null;
|
349
|
-
let p = -1, d = null;
|
350
|
-
s && (d = new ResizeObserver((a) => {
|
351
|
-
let [x] = a;
|
352
|
-
x && x.target === f && d && (d.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
353
|
-
var C;
|
354
|
-
(C = d) == null || C.observe(e);
|
355
|
-
})), n();
|
356
|
-
}), f && !l && d.observe(f), d.observe(e));
|
357
|
-
let y, g = l ? T(t) : null;
|
358
|
-
l && w();
|
359
|
-
function w() {
|
360
|
-
const a = T(t);
|
361
|
-
g && !it(g, a) && n(), g = a, y = requestAnimationFrame(w);
|
362
|
-
}
|
363
|
-
return n(), () => {
|
364
|
-
var a;
|
365
|
-
u.forEach((x) => {
|
366
|
-
o && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
|
367
|
-
}), h == null || h(), (a = d) == null || a.disconnect(), d = null, l && cancelAnimationFrame(y);
|
368
|
-
};
|
369
|
-
}
|
370
|
-
const At = ot, Ht = st, Nt = rt, It = ct, Vt = lt, $t = ut, St = ht, Mt = (t, e, n) => {
|
371
|
-
const i = /* @__PURE__ */ new Map(), o = {
|
372
|
-
platform: Et,
|
373
|
-
...n
|
374
|
-
}, r = {
|
375
|
-
...o.platform,
|
376
|
-
_c: i
|
377
|
-
};
|
378
|
-
return ft(t, e, {
|
379
|
-
...o,
|
380
|
-
platform: r
|
381
|
-
});
|
382
|
-
};
|
383
|
-
export {
|
384
|
-
$t as arrow,
|
385
|
-
Dt as autoUpdate,
|
386
|
-
Mt as computePosition,
|
387
|
-
Nt as flip,
|
388
|
-
$ as getOverflowAncestors,
|
389
|
-
Vt as hide,
|
390
|
-
St as limitShift,
|
391
|
-
At as offset,
|
392
|
-
Et as platform,
|
393
|
-
Ht as shift,
|
394
|
-
It as size
|
395
|
-
};
|
396
|
-
//# sourceMappingURL=index.es324.js.map
|