@pfct/purple 1.16.2 → 1.17.0
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/chunks/Accordion.DYya7dTN.js +1 -0
- package/dist/chunks/Accordion.DgWTtf1u.js +716 -0
- package/dist/chunks/Divider.CptJ_x2Y.js +1 -0
- package/dist/chunks/{Divider.DBtnaPqJ.js → Divider.DR-c4z_i.js} +16 -13
- package/dist/chunks/DotLottie.BQNTv0XO.js +5 -0
- package/dist/chunks/DotLottie.qOfU0HjI.js +1993 -0
- package/dist/chunks/Switch.D7T_jbtK.js +207 -0
- package/dist/chunks/Switch.DUWZASi8.js +1 -0
- package/dist/chunks/Toast.Bnm65xmy.js +1 -0
- package/dist/chunks/Toast.C7OnkFjA.js +698 -0
- package/dist/chunks/{bottomSheet.BGKwHjuP.js → bottomSheet.DCURoJ3z.js} +1 -1
- package/dist/chunks/{bottomSheet.C99fAuQK.js → bottomSheet.DqOEMG09.js} +1 -1
- package/dist/chunks/checkbox.DjQsU_Pk.js +1 -0
- package/dist/chunks/{checkbox.DNdnhspb.js → checkbox.Dl8nNqLc.js} +100 -92
- package/dist/chunks/dist.AclwPuO5.js +1 -0
- package/dist/chunks/{dist.BskID78S.js → dist.B0edyUiC.js} +176 -178
- package/dist/chunks/dist.B4GZ3aX4.js +111 -0
- package/dist/chunks/dist.BE2xxxwt.js +96 -0
- package/dist/chunks/dist.Ba6P-3sU.js +1 -0
- package/dist/chunks/dist.BaV_5zx8.js +186 -0
- package/dist/chunks/{dist.CDZCWPu4.js → dist.BnLwXMBJ.js} +8 -4
- package/dist/chunks/dist.BpQ7SpeW.js +227 -0
- package/dist/chunks/dist.Bui5aGSB.js +197 -0
- package/dist/chunks/dist.CBOTGT1c.js +1 -0
- package/dist/chunks/dist.CIvT5XE_.js +1 -0
- package/dist/chunks/dist.CKG-hzoQ.js +1 -0
- package/dist/chunks/{dist.QtpYoD01.js → dist.CVClT59R.js} +8 -3
- package/dist/chunks/dist.CcSbgqVt.js +1 -0
- package/dist/chunks/dist.Cf8FjzvS.js +1 -0
- package/dist/chunks/{dist.DIjdcvlQ.js → dist.Cx1JFVV3.js} +48 -59
- package/dist/chunks/dist.D7s7BenH.js +1 -0
- package/dist/chunks/dist.DQ5uOc4y.js +1 -0
- package/dist/chunks/dist.DWzqVshx.js +16 -0
- package/dist/chunks/dist.DfLaHIBc.js +1 -0
- package/dist/chunks/dist.DomaJxrX.js +1 -0
- package/dist/chunks/dist.e7n2cf43.js +144 -0
- package/dist/chunks/dist.gUJz6qTg.js +185 -0
- package/dist/chunks/dist.zJ3rbM0i.js +1 -0
- package/dist/chunks/drawer.Cots0_ea.js +7 -0
- package/dist/chunks/drawer.ftfBm36h.js +1836 -0
- package/dist/chunks/es2015.CfvYaoE5.js +41 -0
- package/dist/chunks/{es2015.ByVyszJo.js → es2015.DCKfm2VN.js} +168 -187
- package/dist/chunks/{src.D-VoFbup.js → src.BAhu5d2_.js} +1 -1
- package/dist/chunks/{src.CmgILXZE.js → src.DlM6Ki-I.js} +5 -5
- package/dist/chunks/tooltip.8vKL7w2a.js +1 -0
- package/dist/chunks/tooltip.D9PoXwtV.js +448 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.esm.js +1 -1
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.esm.js +1 -1
- package/dist/components/Control/index.cjs.js +1 -1
- package/dist/components/Control/index.esm.js +2 -2
- package/dist/components/Divider/index.cjs.js +1 -1
- package/dist/components/Divider/index.esm.js +1 -1
- package/dist/components/LegacyModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/index.esm.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.esm.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.esm.js +1 -1
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.esm.js +1 -1
- package/dist/components/Pagination/index.cjs.js +1 -1
- package/dist/components/Pagination/index.esm.js +1 -1
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
- package/dist/components/Tabs/index.cjs.js +1 -1
- package/dist/components/Tabs/index.esm.js +1 -1
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.esm.js +1 -1
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.esm.js +3 -3
- package/dist/components/Toast/index.cjs.js +1 -1
- package/dist/components/Toast/index.esm.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.esm.js +8 -8
- package/dist/components/ui/bottomSheet.cjs.js +1 -1
- package/dist/components/ui/bottomSheet.esm.js +1 -1
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.esm.js +1 -1
- package/dist/components/ui/checkbox.cjs.js +1 -1
- package/dist/components/ui/checkbox.esm.js +1 -1
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.esm.js +1 -1
- package/dist/components/ui/drawer.cjs.js +1 -1
- package/dist/components/ui/drawer.esm.js +1 -1
- package/dist/components/ui/impact-tooltip.cjs.js +1 -1
- package/dist/components/ui/impact-tooltip.esm.js +1 -1
- package/dist/components/ui/select.cjs.js +1 -1
- package/dist/components/ui/select.esm.js +3 -3
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.esm.js +1 -1
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.esm.js +1 -1
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +1 -1
- package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
- package/dist/icons/src/aliases/aliases.esm.js +3 -3
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.esm.js +3 -3
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +9 -9
- package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/prefixed.esm.js +3 -3
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +10 -10
- package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/suffixed.esm.js +3 -3
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.esm.js +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +12 -12
- package/dist/library/DotLottie/index.cjs.js +1 -1
- package/dist/library/DotLottie/index.d.ts +13 -0
- package/dist/library/DotLottie/index.d.ts.map +1 -1
- package/dist/library/DotLottie/index.esm.js +1 -1
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.d.ts +13 -0
- package/dist/library/Lottie/index.d.ts.map +1 -1
- package/dist/library/Lottie/index.esm.js +25 -25
- package/dist/library/index.cjs.js +1 -1
- package/dist/library/index.esm.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/Accordion.Cs1f4aQZ.js +0 -373
- package/dist/chunks/Accordion.ZIp0NsA0.js +0 -1
- package/dist/chunks/Divider.BIS4pXEy.js +0 -1
- package/dist/chunks/DotLottie.CaDygpsw.js +0 -73962
- package/dist/chunks/DotLottie.Cf-SL2bJ.js +0 -5
- package/dist/chunks/Switch.C6xwIjJR.js +0 -1
- package/dist/chunks/Switch.D_myxCrS.js +0 -200
- package/dist/chunks/Toast.Cjdk4za6.js +0 -1
- package/dist/chunks/Toast.D1-VfeA2.js +0 -685
- package/dist/chunks/checkbox.CfWB_nqn.js +0 -1
- package/dist/chunks/dist.B2wZmrK1.js +0 -98
- package/dist/chunks/dist.B8tpQk-4.js +0 -1
- package/dist/chunks/dist.BC0-iqKU.js +0 -1
- package/dist/chunks/dist.BGATFz6w.js +0 -1
- package/dist/chunks/dist.BQIeYu70.js +0 -1
- package/dist/chunks/dist.BWsA5f1f.js +0 -1
- package/dist/chunks/dist.BixLWWwb.js +0 -71
- package/dist/chunks/dist.Bxqi8VAi.js +0 -1
- package/dist/chunks/dist.C8FJXTu6.js +0 -10
- package/dist/chunks/dist.C8NniehT.js +0 -1
- package/dist/chunks/dist.C8k7jQIp.js +0 -87
- package/dist/chunks/dist.CEJ-WCY_.js +0 -44
- package/dist/chunks/dist.CIQdvun-.js +0 -1
- package/dist/chunks/dist.Cff8LOoN.js +0 -67
- package/dist/chunks/dist.CmRTDXGG.js +0 -1
- package/dist/chunks/dist.CwMFqhEQ.js +0 -146
- package/dist/chunks/dist.CwWM0zXK.js +0 -25
- package/dist/chunks/dist.CyhalHxz.js +0 -1
- package/dist/chunks/dist.Czpint58.js +0 -1
- package/dist/chunks/dist.D3cPoDZ_.js +0 -194
- package/dist/chunks/dist.D4mQo5QB.js +0 -1
- package/dist/chunks/dist.D5ataprQ.js +0 -1
- package/dist/chunks/dist.D6A3yc_d.js +0 -11
- package/dist/chunks/dist.DKOi9kq6.js +0 -1
- package/dist/chunks/dist.DhCw5vjE.js +0 -1
- package/dist/chunks/dist.DrfVZqiO.js +0 -186
- package/dist/chunks/dist.SHmlpKFY.js +0 -1
- package/dist/chunks/dist.kg7EEYPp.js +0 -12
- package/dist/chunks/drawer.Cji5AtcU.js +0 -1720
- package/dist/chunks/drawer.Gt1AjdVH.js +0 -7
- package/dist/chunks/es2015.D2emqwtq.js +0 -41
- package/dist/chunks/tooltip.DGgNTZ5B.js +0 -444
- package/dist/chunks/tooltip.vEwTtt8v.js +0 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3
|
+
var t = Object.defineProperty, n = (e, n) => t(e, "name", {
|
|
4
|
+
value: n,
|
|
5
|
+
configurable: !0
|
|
6
|
+
});
|
|
7
|
+
function r(e, t) {
|
|
8
|
+
if (typeof e == "function") return e(t);
|
|
9
|
+
e != null && (e.current = t);
|
|
10
|
+
}
|
|
11
|
+
n(r, "setRef");
|
|
12
|
+
function i(...e) {
|
|
13
|
+
return (t) => {
|
|
14
|
+
let n = !1, i = e.map((e) => {
|
|
15
|
+
let i = r(e, t);
|
|
16
|
+
return !n && typeof i == "function" && (n = !0), i;
|
|
17
|
+
});
|
|
18
|
+
if (n) return () => {
|
|
19
|
+
for (let t = 0; t < i.length; t++) {
|
|
20
|
+
let n = i[t];
|
|
21
|
+
typeof n == "function" ? n() : r(e[t], null);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
n(i, "composeRefs");
|
|
27
|
+
function a(...t) {
|
|
28
|
+
return e.useCallback(i(...t), t);
|
|
29
|
+
}
|
|
30
|
+
n(a, "useComposedRefs");
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
33
|
+
var o = Object.defineProperty, s = (e, t) => o(e, "name", {
|
|
34
|
+
value: t,
|
|
35
|
+
configurable: !0
|
|
36
|
+
});
|
|
37
|
+
// @__NO_SIDE_EFFECTS__
|
|
38
|
+
function c(t) {
|
|
39
|
+
let n = e.forwardRef((n, r) => {
|
|
40
|
+
let { children: i, ...o } = n, s = null, c = !1, l = [];
|
|
41
|
+
_(i) && typeof x == "function" && (i = x(i._payload)), e.Children.forEach(i, (e) => {
|
|
42
|
+
if (h(e)) {
|
|
43
|
+
c = !0;
|
|
44
|
+
let t = e, n = "child" in t.props ? t.props.child : t.props.children;
|
|
45
|
+
_(n) && typeof x == "function" && (n = x(n._payload)), s = f(t, n), l.push(s?.props?.children);
|
|
46
|
+
} else l.push(e);
|
|
47
|
+
}), s ? s = e.cloneElement(s, void 0, l) : !c && e.Children.count(i) === 1 && e.isValidElement(i) && (s = i);
|
|
48
|
+
let u = s ? m(s) : void 0, d = a(r, u);
|
|
49
|
+
if (!s) {
|
|
50
|
+
if (i || i === 0) throw Error(c ? b(t) : y(t));
|
|
51
|
+
return i;
|
|
52
|
+
}
|
|
53
|
+
let g = p(o, s.props ?? {});
|
|
54
|
+
return s.type !== e.Fragment && (g.ref = r ? d : u), e.cloneElement(s, g);
|
|
55
|
+
});
|
|
56
|
+
return n.displayName = `${t}.Slot`, n;
|
|
57
|
+
}
|
|
58
|
+
s(c, "createSlot");
|
|
59
|
+
var l = /* @__PURE__ */ c("Slot"), u = Symbol.for("radix.slottable");
|
|
60
|
+
// @__NO_SIDE_EFFECTS__
|
|
61
|
+
function d(e) {
|
|
62
|
+
let t = /* @__PURE__ */ s((e) => "child" in e ? e.children(e.child) : e.children, "Slottable");
|
|
63
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = u, t;
|
|
64
|
+
}
|
|
65
|
+
s(d, "createSlottable");
|
|
66
|
+
var f = /* @__PURE__ */ s((t, n) => {
|
|
67
|
+
if ("child" in t.props) {
|
|
68
|
+
let n = t.props.child;
|
|
69
|
+
return e.isValidElement(n) ? e.cloneElement(n, void 0, t.props.children(n.props.children)) : null;
|
|
70
|
+
}
|
|
71
|
+
return e.isValidElement(n) ? n : null;
|
|
72
|
+
}, "getSlottableElementFromSlottable");
|
|
73
|
+
function p(e, t) {
|
|
74
|
+
let n = { ...t };
|
|
75
|
+
for (let r in t) {
|
|
76
|
+
let i = e[r], a = t[r];
|
|
77
|
+
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
78
|
+
let t = a(...e);
|
|
79
|
+
return i(...e), t;
|
|
80
|
+
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
81
|
+
...i,
|
|
82
|
+
...a
|
|
83
|
+
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
...e,
|
|
87
|
+
...n
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
s(p, "mergeProps");
|
|
91
|
+
function m(e) {
|
|
92
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
93
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
94
|
+
}
|
|
95
|
+
s(m, "getElementRef");
|
|
96
|
+
function h(t) {
|
|
97
|
+
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === u;
|
|
98
|
+
}
|
|
99
|
+
s(h, "isSlottable");
|
|
100
|
+
var g = Symbol.for("react.lazy");
|
|
101
|
+
function _(e) {
|
|
102
|
+
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === g && "_payload" in e && v(e._payload);
|
|
103
|
+
}
|
|
104
|
+
s(_, "isLazyComponent");
|
|
105
|
+
function v(e) {
|
|
106
|
+
return typeof e == "object" && !!e && "then" in e;
|
|
107
|
+
}
|
|
108
|
+
s(v, "isPromiseLike");
|
|
109
|
+
var y = /* @__PURE__ */ s((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), b = /* @__PURE__ */ s((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), x = e.use;
|
|
110
|
+
//#endregion
|
|
111
|
+
export { a as i, c as n, d as r, l as t };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { n as e } from "./dist.BpQ7SpeW.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
4
|
+
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
+
value: t,
|
|
6
|
+
configurable: !0
|
|
7
|
+
});
|
|
8
|
+
function i(e, n) {
|
|
9
|
+
return t.useReducer((e, t) => n[e][t] ?? e, e);
|
|
10
|
+
}
|
|
11
|
+
r(i, "useStateMachine");
|
|
12
|
+
var a = /* @__PURE__ */ r((e) => {
|
|
13
|
+
let { present: n, children: r } = e, i = o(n), a = typeof r == "function" ? r({ present: i.isPresent }) : t.Children.only(r), s = c(i.ref, u(a));
|
|
14
|
+
return typeof r == "function" || i.isPresent ? t.cloneElement(a, { ref: s }) : null;
|
|
15
|
+
}, "Presence");
|
|
16
|
+
function o(n) {
|
|
17
|
+
let [a, o] = t.useState(), s = t.useRef(null), c = t.useRef(n), u = t.useRef("none"), d = t.useRef(void 0), [f, p] = i(n ? "mounted" : "unmounted", {
|
|
18
|
+
mounted: {
|
|
19
|
+
UNMOUNT: "unmounted",
|
|
20
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
21
|
+
},
|
|
22
|
+
unmountSuspended: {
|
|
23
|
+
MOUNT: "mounted",
|
|
24
|
+
ANIMATION_END: "unmounted"
|
|
25
|
+
},
|
|
26
|
+
unmounted: { MOUNT: "mounted" }
|
|
27
|
+
});
|
|
28
|
+
return t.useEffect(() => {
|
|
29
|
+
f === "mounted" ? (u.current = d.current ?? l(s.current), d.current = void 0) : u.current = "none";
|
|
30
|
+
}, [f]), e(() => {
|
|
31
|
+
let e = s.current, t = c.current;
|
|
32
|
+
if (t !== n) {
|
|
33
|
+
let r = u.current, i = l(e);
|
|
34
|
+
n ? (d.current = i, p("MOUNT")) : i === "none" || e?.display === "none" ? p("UNMOUNT") : p(t && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = n;
|
|
35
|
+
}
|
|
36
|
+
}, [n, p]), e(() => {
|
|
37
|
+
if (a) {
|
|
38
|
+
let e, t = a.ownerDocument.defaultView ?? window, n = /* @__PURE__ */ r((n) => {
|
|
39
|
+
let r = l(s.current).includes(CSS.escape(n.animationName));
|
|
40
|
+
if (n.target === a && r && (p("ANIMATION_END"), !c.current)) {
|
|
41
|
+
let n = a.style.animationFillMode;
|
|
42
|
+
a.style.animationFillMode = "forwards", e = t.setTimeout(() => {
|
|
43
|
+
a.style.animationFillMode === "forwards" && (a.style.animationFillMode = n);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}, "handleAnimationEnd"), i = /* @__PURE__ */ r((e) => {
|
|
47
|
+
e.target === a && (u.current = l(s.current));
|
|
48
|
+
}, "handleAnimationStart");
|
|
49
|
+
return a.addEventListener("animationstart", i), a.addEventListener("animationcancel", n), a.addEventListener("animationend", n), () => {
|
|
50
|
+
t.clearTimeout(e), a.removeEventListener("animationstart", i), a.removeEventListener("animationcancel", n), a.removeEventListener("animationend", n);
|
|
51
|
+
};
|
|
52
|
+
} else p("ANIMATION_END");
|
|
53
|
+
}, [a, p]), {
|
|
54
|
+
isPresent: ["mounted", "unmountSuspended"].includes(f),
|
|
55
|
+
ref: t.useCallback((e) => {
|
|
56
|
+
if (e) {
|
|
57
|
+
let t = getComputedStyle(e);
|
|
58
|
+
s.current = t, d.current = l(t);
|
|
59
|
+
} else s.current = null;
|
|
60
|
+
o(e);
|
|
61
|
+
}, [])
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
r(o, "usePresence");
|
|
65
|
+
function s(e, t) {
|
|
66
|
+
if (typeof e == "function") return e(t);
|
|
67
|
+
e != null && (e.current = t);
|
|
68
|
+
}
|
|
69
|
+
r(s, "setRef");
|
|
70
|
+
function c(...e) {
|
|
71
|
+
let n = t.useRef(e);
|
|
72
|
+
return n.current = e, t.useCallback((e) => {
|
|
73
|
+
let t = n.current, r = !1, i = t.map((t) => {
|
|
74
|
+
let n = s(t, e);
|
|
75
|
+
return !r && typeof n == "function" && (r = !0), n;
|
|
76
|
+
});
|
|
77
|
+
if (r) return () => {
|
|
78
|
+
for (let e = 0; e < i.length; e++) {
|
|
79
|
+
let n = i[e];
|
|
80
|
+
typeof n == "function" ? n() : s(t[e], null);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}, []);
|
|
84
|
+
}
|
|
85
|
+
r(c, "useStableComposedRefs");
|
|
86
|
+
function l(e) {
|
|
87
|
+
return e?.animationName || "none";
|
|
88
|
+
}
|
|
89
|
+
r(l, "getAnimationName");
|
|
90
|
+
function u(e) {
|
|
91
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
92
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
93
|
+
}
|
|
94
|
+
r(u, "getElementRef");
|
|
95
|
+
//#endregion
|
|
96
|
+
export { a as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime.mLOUI7ql.js");let t=require("react");t=e.r(t,1);var n=new Map,r=new WeakMap,i=0,a;function o(e){return e?r.has(e)?r.get(e):(i+=1,r.set(e,i.toString()),r.get(e)):`0`}function s(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t===`root`?o(e.root):e[t]}`).toString()}function c(e){let t=s(e),r=n.get(t);if(!r){let i=new Map,a,o=new IntersectionObserver(t=>{t.forEach(t=>{let n=t.isIntersecting&&a.some(e=>t.intersectionRatio>=e);e.trackVisibility&&t.isVisible===void 0&&(t.isVisible=n),[...i.get(t.target)??[]].forEach(e=>{e(n,t)})})},e);a=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:i},n.set(t,r)}return r}function l(e,t,r={},i=a){if(window.IntersectionObserver===void 0&&i!==void 0){let n=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:typeof r.threshold==`number`?r.threshold:0,time:0,boundingClientRect:n,intersectionRect:n,rootBounds:n}),()=>{}}let{id:o,observer:s,elements:l}=c(r),u=l.get(e)||[];l.has(e)||l.set(e,u),u.push(t),s.observe(e);let d=!1;return function(){d||(d=!0,u.splice(u.indexOf(t),1),u.length===0&&(l.delete(e),s.unobserve(e)),l.size===0&&(s.disconnect(),n.delete(o)))}}t.Component;var u=Reflect.get(t,`useInsertionEffect`),d=u??t.useEffect;function f(e){return e?.startsWith(`19.`)||!1}var p=f(t.version);function m(e,{threshold:n,root:r,rootMargin:i,scrollMargin:a,trackVisibility:o,delay:s,fallbackInView:c,skip:f,triggerOnce:m}){let h=t.useRef(e),g=t.useRef({node:null,stop:void 0,owner:null});return u||(h.current=e),d(()=>{h.current=e},[e]),t.useCallback(function e(t){let u=g.current;if(!t&&u.owner!==e)return;if(t===u.node)return u.owner=e,p?u.stop:void 0;let d=u.stop;if(u.stop=void 0,d?.(),!t||f){u.node=null,u.owner=t?e:null;return}u.node=t,u.owner=e;let _,v;function y(){_?.(),u.stop===y&&(u.node=null,u.stop=void 0)}return u.stop=y,_=l(t,(e,t)=>{h.current(e,t,v),v=e,m&&e&&y()},{threshold:n,root:r,rootMargin:i,scrollMargin:a,trackVisibility:o,delay:s},c),u.stop!==y&&_(),p?u.stop:void 0},[Array.isArray(n)?n.toString():n,r,i,a,o,s,c,f,m])}var h=typeof window>`u`?t.useEffect:t.useLayoutEffect;function g({threshold:e,delay:n,trackVisibility:r,rootMargin:i,scrollMargin:a,root:o,triggerOnce:s,skip:c,initialInView:l,fallbackInView:u,onChange:d}={}){let f=t.useRef(l),[p,g]=t.useState({inView:!!l,entry:void 0}),_=m((e,t)=>{let n=f.current;f.current=e,!(n===void 0&&!e)&&(g({inView:e,entry:t}),d?.(e,t))},{threshold:e,root:o,rootMargin:i,scrollMargin:a,trackVisibility:r,delay:n,fallbackInView:u,skip:c,triggerOnce:s}),v=t.useRef({node:null,reset:!1}),y=t.useCallback(function(e){e?(v.current.node=e,v.current.reset=!1):v.current.node&&(v.current.node=null,v.current.reset=!0);let t=_(e);if(t)return()=>{t(),v.current.node===e&&(v.current.node=null,v.current.reset=!0)}},[_]);h(()=>{v.current.reset&&(v.current.reset=!1,!(s||c)&&(g({inView:!!l,entry:void 0}),f.current=l))});let b=[y,p.inView,p.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return g}});
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { i as e } from "./dist.B4GZ3aX4.js";
|
|
2
|
+
import { t } from "./dist.BnLwXMBJ.js";
|
|
3
|
+
import { i as n } from "./dist.Bui5aGSB.js";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
//#region node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
7
|
+
var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
8
|
+
value: t,
|
|
9
|
+
configurable: !0
|
|
10
|
+
}), s = "focusScope.autoFocusOnMount", c = "focusScope.autoFocusOnUnmount", l = {
|
|
11
|
+
bubbles: !1,
|
|
12
|
+
cancelable: !0
|
|
13
|
+
}, u = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ o(function(a, u) {
|
|
14
|
+
let { loop: m = !1, trapped: h = !1, onMountAutoFocus: g, onUnmountAutoFocus: y, ...b } = a, [S, C] = r.useState(null), w = n(g), T = n(y), E = r.useRef(null), D = e(u, C), O = r.useRef({
|
|
15
|
+
paused: !1,
|
|
16
|
+
pause() {
|
|
17
|
+
this.paused = !0;
|
|
18
|
+
},
|
|
19
|
+
resume() {
|
|
20
|
+
this.paused = !1;
|
|
21
|
+
}
|
|
22
|
+
}).current;
|
|
23
|
+
r.useEffect(() => {
|
|
24
|
+
if (h) {
|
|
25
|
+
let e = function(e) {
|
|
26
|
+
if (O.paused || !S) return;
|
|
27
|
+
let t = e.target;
|
|
28
|
+
S.contains(t) ? E.current = t : _(E.current, { select: !0 });
|
|
29
|
+
}, t = function(e) {
|
|
30
|
+
if (O.paused || !S) return;
|
|
31
|
+
let t = e.relatedTarget;
|
|
32
|
+
t !== null && (S.contains(t) || _(E.current, { select: !0 }));
|
|
33
|
+
}, n = function(e) {
|
|
34
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && _(S);
|
|
35
|
+
};
|
|
36
|
+
o(e, "handleFocusIn"), o(t, "handleFocusOut"), o(n, "handleMutations"), document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
37
|
+
let r = new MutationObserver(n);
|
|
38
|
+
return S && r.observe(S, {
|
|
39
|
+
childList: !0,
|
|
40
|
+
subtree: !0
|
|
41
|
+
}), () => {
|
|
42
|
+
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}, [
|
|
46
|
+
h,
|
|
47
|
+
S,
|
|
48
|
+
O.paused
|
|
49
|
+
]), r.useEffect(() => {
|
|
50
|
+
if (S) {
|
|
51
|
+
v.add(O);
|
|
52
|
+
let e = document.activeElement;
|
|
53
|
+
if (!S.contains(e)) {
|
|
54
|
+
let t = new CustomEvent(s, l);
|
|
55
|
+
S.addEventListener(s, w), S.dispatchEvent(t), t.defaultPrevented || (d(x(p(S)), { select: !0 }), document.activeElement === e && _(S));
|
|
56
|
+
}
|
|
57
|
+
return () => {
|
|
58
|
+
S.removeEventListener(s, w), setTimeout(() => {
|
|
59
|
+
let t = new CustomEvent(c, l);
|
|
60
|
+
S.addEventListener(c, T), S.dispatchEvent(t), t.defaultPrevented || _(e ?? document.body, { select: !0 }), S.removeEventListener(c, T), v.remove(O);
|
|
61
|
+
}, 0);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}, [
|
|
65
|
+
S,
|
|
66
|
+
w,
|
|
67
|
+
T,
|
|
68
|
+
O
|
|
69
|
+
]);
|
|
70
|
+
let k = r.useCallback((e) => {
|
|
71
|
+
if (!m && !h || O.paused) return;
|
|
72
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
73
|
+
if (t && n) {
|
|
74
|
+
let t = e.currentTarget, [r, i] = f(t);
|
|
75
|
+
r && i ? !e.shiftKey && n === i ? (e.preventDefault(), m && _(r, { select: !0 })) : e.shiftKey && n === r && (e.preventDefault(), m && _(i, { select: !0 })) : n === t && e.preventDefault();
|
|
76
|
+
}
|
|
77
|
+
}, [
|
|
78
|
+
m,
|
|
79
|
+
h,
|
|
80
|
+
O.paused
|
|
81
|
+
]);
|
|
82
|
+
return /* @__PURE__ */ i(t.div, {
|
|
83
|
+
tabIndex: -1,
|
|
84
|
+
...b,
|
|
85
|
+
ref: D,
|
|
86
|
+
onKeyDown: k
|
|
87
|
+
});
|
|
88
|
+
}, "FocusScope"));
|
|
89
|
+
function d(e, { select: t = !1 } = {}) {
|
|
90
|
+
let n = document.activeElement;
|
|
91
|
+
for (let r of e) if (_(r, { select: t }), document.activeElement !== n) return;
|
|
92
|
+
}
|
|
93
|
+
o(d, "focusFirst");
|
|
94
|
+
function f(e) {
|
|
95
|
+
let t = p(e);
|
|
96
|
+
return [m(t, e), m(t.reverse(), e)];
|
|
97
|
+
}
|
|
98
|
+
o(f, "getTabbableEdges");
|
|
99
|
+
function p(e) {
|
|
100
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ o((e) => {
|
|
101
|
+
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
102
|
+
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
103
|
+
}, "acceptNode") });
|
|
104
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
105
|
+
return t;
|
|
106
|
+
}
|
|
107
|
+
o(p, "getTabbableCandidates");
|
|
108
|
+
function m(e, t) {
|
|
109
|
+
let n = typeof t.checkVisibility == "function" && t.checkVisibility({ checkVisibilityCSS: !0 });
|
|
110
|
+
for (let r of e) if (!(n ? !r.checkVisibility({ checkVisibilityCSS: !0 }) : h(r, { upTo: t }))) return r;
|
|
111
|
+
}
|
|
112
|
+
o(m, "findVisible");
|
|
113
|
+
function h(e, { upTo: t }) {
|
|
114
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
115
|
+
for (; e;) {
|
|
116
|
+
if (t !== void 0 && e === t) return !1;
|
|
117
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
118
|
+
e = e.parentElement;
|
|
119
|
+
}
|
|
120
|
+
return !1;
|
|
121
|
+
}
|
|
122
|
+
o(h, "isHidden");
|
|
123
|
+
function g(e) {
|
|
124
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
125
|
+
}
|
|
126
|
+
o(g, "isSelectableInput");
|
|
127
|
+
function _(e, { select: t = !1 } = {}) {
|
|
128
|
+
if (e && e.focus) {
|
|
129
|
+
let n = document.activeElement;
|
|
130
|
+
e.focus({ preventScroll: !0 }), e !== n && g(e) && t && e.select();
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
o(_, "focus");
|
|
134
|
+
var v = y();
|
|
135
|
+
function y() {
|
|
136
|
+
let e = [];
|
|
137
|
+
return {
|
|
138
|
+
add(t) {
|
|
139
|
+
let n = e[0];
|
|
140
|
+
t !== n && n?.pause(), e = b(e, t), e.unshift(t);
|
|
141
|
+
},
|
|
142
|
+
remove(t) {
|
|
143
|
+
e = b(e, t), e[0]?.resume();
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
o(y, "createFocusScopesStack");
|
|
148
|
+
function b(e, t) {
|
|
149
|
+
let n = [...e], r = n.indexOf(t);
|
|
150
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
151
|
+
}
|
|
152
|
+
o(b, "arrayRemove");
|
|
153
|
+
function x(e) {
|
|
154
|
+
return e.filter((e) => e.tagName !== "A");
|
|
155
|
+
}
|
|
156
|
+
o(x, "removeLinks");
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
159
|
+
var S = Object.defineProperty, C = (e, t) => S(e, "name", {
|
|
160
|
+
value: t,
|
|
161
|
+
configurable: !0
|
|
162
|
+
}), w = 0, T = null;
|
|
163
|
+
function E(e) {
|
|
164
|
+
return D(), e.children;
|
|
165
|
+
}
|
|
166
|
+
C(E, "FocusGuards");
|
|
167
|
+
function D() {
|
|
168
|
+
r.useEffect(() => {
|
|
169
|
+
T ||= {
|
|
170
|
+
start: O(),
|
|
171
|
+
end: O()
|
|
172
|
+
};
|
|
173
|
+
let { start: e, end: t } = T;
|
|
174
|
+
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), w++, () => {
|
|
175
|
+
w === 1 && (T?.start.remove(), T?.end.remove(), T = null), w = Math.max(0, w - 1);
|
|
176
|
+
};
|
|
177
|
+
}, []);
|
|
178
|
+
}
|
|
179
|
+
C(D, "useFocusGuards");
|
|
180
|
+
function O() {
|
|
181
|
+
let e = document.createElement("span");
|
|
182
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
183
|
+
}
|
|
184
|
+
C(O, "createFocusGuard");
|
|
185
|
+
//#endregion
|
|
186
|
+
export { u as n, D as t };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { n as e } from "./dist.
|
|
1
|
+
import { n as e } from "./dist.B4GZ3aX4.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
import * as r from "react-dom";
|
|
5
5
|
//#region node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
6
|
-
var i =
|
|
6
|
+
var i = Object.defineProperty, a = (e, t) => i(e, "name", {
|
|
7
|
+
value: t,
|
|
8
|
+
configurable: !0
|
|
9
|
+
}), o = [
|
|
7
10
|
"a",
|
|
8
11
|
"button",
|
|
9
12
|
"div",
|
|
@@ -34,8 +37,9 @@ var i = [
|
|
|
34
37
|
[i]: o
|
|
35
38
|
};
|
|
36
39
|
}, {});
|
|
37
|
-
function
|
|
40
|
+
function s(e, t) {
|
|
38
41
|
e && r.flushSync(() => e.dispatchEvent(t));
|
|
39
42
|
}
|
|
43
|
+
a(s, "dispatchDiscreteCustomEvent");
|
|
40
44
|
//#endregion
|
|
41
|
-
export {
|
|
45
|
+
export { s as n, o as t };
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region node_modules/@radix-ui/react-context/dist/index.mjs
|
|
4
|
+
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
+
value: t,
|
|
6
|
+
configurable: !0
|
|
7
|
+
});
|
|
8
|
+
// @__NO_SIDE_EFFECTS__
|
|
9
|
+
function i(n, i) {
|
|
10
|
+
let a = e.createContext(i);
|
|
11
|
+
a.displayName = n + "Context";
|
|
12
|
+
let o = /* @__PURE__ */ r((n) => {
|
|
13
|
+
let { children: r, ...i } = n, o = e.useMemo(() => i, Object.values(i));
|
|
14
|
+
return /* @__PURE__ */ t(a.Provider, {
|
|
15
|
+
value: o,
|
|
16
|
+
children: r
|
|
17
|
+
});
|
|
18
|
+
}, "Provider");
|
|
19
|
+
o.displayName = n + "Provider";
|
|
20
|
+
function s(t, r = {}) {
|
|
21
|
+
let { optional: o = !1 } = r, s = e.useContext(a);
|
|
22
|
+
if (s) return s;
|
|
23
|
+
if (i !== void 0) return i;
|
|
24
|
+
if (!o) throw Error(`\`${t}\` must be used within \`${n}\``);
|
|
25
|
+
}
|
|
26
|
+
return r(s, "useContext"), [o, s];
|
|
27
|
+
}
|
|
28
|
+
r(i, "createContext");
|
|
29
|
+
// @__NO_SIDE_EFFECTS__
|
|
30
|
+
function a(n, i = []) {
|
|
31
|
+
let a = [];
|
|
32
|
+
function s(i, o) {
|
|
33
|
+
let s = e.createContext(o);
|
|
34
|
+
s.displayName = i + "Context";
|
|
35
|
+
let c = a.length;
|
|
36
|
+
a = [...a, o];
|
|
37
|
+
let l = /* @__PURE__ */ r((r) => {
|
|
38
|
+
let { scope: i, children: a, ...o } = r, l = i?.[n]?.[c] || s, u = e.useMemo(() => o, Object.values(o));
|
|
39
|
+
return /* @__PURE__ */ t(l.Provider, {
|
|
40
|
+
value: u,
|
|
41
|
+
children: a
|
|
42
|
+
});
|
|
43
|
+
}, "Provider");
|
|
44
|
+
l.displayName = i + "Provider";
|
|
45
|
+
function u(t, r, a = {}) {
|
|
46
|
+
let { optional: l = !1 } = a, u = r?.[n]?.[c] || s, d = e.useContext(u);
|
|
47
|
+
if (d) return d;
|
|
48
|
+
if (o !== void 0) return o;
|
|
49
|
+
if (!l) throw Error(`\`${t}\` must be used within \`${i}\``);
|
|
50
|
+
}
|
|
51
|
+
return r(u, "useContext"), [l, u];
|
|
52
|
+
}
|
|
53
|
+
r(s, "createContext");
|
|
54
|
+
let c = /* @__PURE__ */ r(() => {
|
|
55
|
+
let t = a.map((t) => e.createContext(t));
|
|
56
|
+
return /* @__PURE__ */ r(function(r) {
|
|
57
|
+
let i = r?.[n] || t;
|
|
58
|
+
return e.useMemo(() => ({ [`__scope${n}`]: {
|
|
59
|
+
...r,
|
|
60
|
+
[n]: i
|
|
61
|
+
} }), [r, i]);
|
|
62
|
+
}, "useScope");
|
|
63
|
+
}, "createScope");
|
|
64
|
+
return c.scopeName = n, [s, o(c, ...i)];
|
|
65
|
+
}
|
|
66
|
+
r(a, "createContextScope");
|
|
67
|
+
function o(...t) {
|
|
68
|
+
let n = t[0];
|
|
69
|
+
if (t.length === 1) return n;
|
|
70
|
+
let i = /* @__PURE__ */ r(() => {
|
|
71
|
+
let i = t.map((e) => ({
|
|
72
|
+
useScope: e(),
|
|
73
|
+
scopeName: e.scopeName
|
|
74
|
+
}));
|
|
75
|
+
return /* @__PURE__ */ r(function(t) {
|
|
76
|
+
let r = i.reduce((e, { useScope: n, scopeName: r }) => {
|
|
77
|
+
let i = n(t)[`__scope${r}`];
|
|
78
|
+
return {
|
|
79
|
+
...e,
|
|
80
|
+
...i
|
|
81
|
+
};
|
|
82
|
+
}, {});
|
|
83
|
+
return e.useMemo(() => ({ [`__scope${n.scopeName}`]: r }), [r]);
|
|
84
|
+
}, "useComposedScopes");
|
|
85
|
+
}, "createScope");
|
|
86
|
+
return i.scopeName = n.scopeName, i;
|
|
87
|
+
}
|
|
88
|
+
r(o, "composeContextScopes");
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region node_modules/@radix-ui/primitive/dist/index.mjs
|
|
91
|
+
var s = Object.defineProperty, c = (e, t) => s(e, "name", {
|
|
92
|
+
value: t,
|
|
93
|
+
configurable: !0
|
|
94
|
+
}), l = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
95
|
+
function u(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
96
|
+
return /* @__PURE__ */ c(function(r) {
|
|
97
|
+
if (e?.(r), n === !1 || !r || !r.defaultPrevented) return t?.(r);
|
|
98
|
+
}, "handleEvent");
|
|
99
|
+
}
|
|
100
|
+
c(u, "composeEventHandlers");
|
|
101
|
+
function d(e) {
|
|
102
|
+
if (!l) throw Error("Cannot access window outside of the DOM");
|
|
103
|
+
return e?.ownerDocument?.defaultView ?? window;
|
|
104
|
+
}
|
|
105
|
+
c(d, "getOwnerWindow");
|
|
106
|
+
function f(e) {
|
|
107
|
+
if (!l) throw Error("Cannot access document outside of the DOM");
|
|
108
|
+
return e?.ownerDocument ?? document;
|
|
109
|
+
}
|
|
110
|
+
c(f, "getOwnerDocument");
|
|
111
|
+
function p(e, t = !1) {
|
|
112
|
+
let { activeElement: n } = f(e);
|
|
113
|
+
if (!n?.nodeName) return null;
|
|
114
|
+
if (m(n) && n.contentDocument) return p(n.contentDocument.body, t);
|
|
115
|
+
if (t) {
|
|
116
|
+
let e = n.getAttribute("aria-activedescendant");
|
|
117
|
+
if (e) {
|
|
118
|
+
let t = f(n).getElementById(e);
|
|
119
|
+
if (t) return t;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return n;
|
|
123
|
+
}
|
|
124
|
+
c(p, "getActiveElement");
|
|
125
|
+
function m(e) {
|
|
126
|
+
return e.tagName === "IFRAME";
|
|
127
|
+
}
|
|
128
|
+
c(m, "isFrame");
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
131
|
+
var h = globalThis?.document ? e.useLayoutEffect : () => {}, g = Object.defineProperty, _ = (e, t) => g(e, "name", {
|
|
132
|
+
value: t,
|
|
133
|
+
configurable: !0
|
|
134
|
+
}), v = e.useEffectEvent, y = e.useInsertionEffect;
|
|
135
|
+
function b(t) {
|
|
136
|
+
if (typeof v == "function") return v(t);
|
|
137
|
+
let n = e.useRef(() => {
|
|
138
|
+
throw Error("Cannot call an event handler while rendering.");
|
|
139
|
+
});
|
|
140
|
+
return typeof y == "function" ? y(() => {
|
|
141
|
+
n.current = t;
|
|
142
|
+
}) : h(() => {
|
|
143
|
+
n.current = t;
|
|
144
|
+
}), e.useMemo(() => ((...e) => n.current?.(...e)), []);
|
|
145
|
+
}
|
|
146
|
+
_(b, "useEffectEvent");
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
149
|
+
var x = Object.defineProperty, S = (e, t) => x(e, "name", {
|
|
150
|
+
value: t,
|
|
151
|
+
configurable: !0
|
|
152
|
+
}), C = e.useInsertionEffect || h;
|
|
153
|
+
function w({ prop: t, defaultProp: n, onChange: r = /* @__PURE__ */ S(() => {}, "onChange"), caller: i }) {
|
|
154
|
+
let [a, o, s] = T({
|
|
155
|
+
defaultProp: n,
|
|
156
|
+
onChange: r
|
|
157
|
+
}), c = t !== void 0;
|
|
158
|
+
return [c ? t : a, e.useCallback((e) => {
|
|
159
|
+
if (c) {
|
|
160
|
+
let n = E(e) ? e(t) : e;
|
|
161
|
+
n !== t && s.current?.(n);
|
|
162
|
+
} else o(e);
|
|
163
|
+
}, [
|
|
164
|
+
c,
|
|
165
|
+
t,
|
|
166
|
+
o,
|
|
167
|
+
s
|
|
168
|
+
])];
|
|
169
|
+
}
|
|
170
|
+
S(w, "useControllableState");
|
|
171
|
+
function T({ defaultProp: t, onChange: n }) {
|
|
172
|
+
let [r, i] = e.useState(t), a = e.useRef(r), o = e.useRef(n);
|
|
173
|
+
return C(() => {
|
|
174
|
+
o.current = n;
|
|
175
|
+
}, [n]), e.useEffect(() => {
|
|
176
|
+
a.current !== r && (o.current?.(r), a.current = r);
|
|
177
|
+
}, [r, a]), [
|
|
178
|
+
r,
|
|
179
|
+
i,
|
|
180
|
+
o
|
|
181
|
+
];
|
|
182
|
+
}
|
|
183
|
+
S(T, "useUncontrolledState");
|
|
184
|
+
function E(e) {
|
|
185
|
+
return typeof e == "function";
|
|
186
|
+
}
|
|
187
|
+
S(E, "isFunction");
|
|
188
|
+
var D = Symbol("RADIX:SYNC_STATE");
|
|
189
|
+
function O(t, n, r, i) {
|
|
190
|
+
let { prop: a, defaultProp: o, onChange: s, caller: c } = n, l = a !== void 0, u = b(s), d = [{
|
|
191
|
+
...r,
|
|
192
|
+
state: o
|
|
193
|
+
}];
|
|
194
|
+
i && d.push(i);
|
|
195
|
+
let [f, p] = e.useReducer((e, n) => {
|
|
196
|
+
if (n.type === D) return {
|
|
197
|
+
...e,
|
|
198
|
+
state: n.state
|
|
199
|
+
};
|
|
200
|
+
let r = t(e, n);
|
|
201
|
+
return l && !Object.is(r.state, e.state) && u(r.state), r;
|
|
202
|
+
}, ...d), m = f.state, h = e.useRef(m);
|
|
203
|
+
e.useEffect(() => {
|
|
204
|
+
h.current !== m && (h.current = m, l || u(m));
|
|
205
|
+
}, [
|
|
206
|
+
m,
|
|
207
|
+
h,
|
|
208
|
+
l
|
|
209
|
+
]);
|
|
210
|
+
let g = e.useMemo(() => a === void 0 ? f : {
|
|
211
|
+
...f,
|
|
212
|
+
state: a
|
|
213
|
+
}, [f, a]);
|
|
214
|
+
return e.useEffect(() => {
|
|
215
|
+
l && !Object.is(a, f.state) && p({
|
|
216
|
+
type: D,
|
|
217
|
+
state: a
|
|
218
|
+
});
|
|
219
|
+
}, [
|
|
220
|
+
a,
|
|
221
|
+
f.state,
|
|
222
|
+
l
|
|
223
|
+
]), [g, p];
|
|
224
|
+
}
|
|
225
|
+
S(O, "useControllableStateReducer");
|
|
226
|
+
//#endregion
|
|
227
|
+
export { a as i, h as n, u as r, w as t };
|