@pfct/purple 1.11.1 → 1.13.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/assets/dotLotties/sample.lottie +0 -0
- package/dist/assets/images/fallback.png +0 -0
- package/dist/assets/images/fallback@2x.png +0 -0
- package/dist/assets/images/fallback@3x.png +0 -0
- package/dist/assets/index.css +2 -2
- package/dist/chunks/Accordion.CxDfMzK1.js +1 -0
- package/dist/chunks/{Accordion.BiAAJwmC.js → Accordion.D8caFIuT.js} +3 -2
- package/dist/chunks/{Divider.k5ROyG2W.js → Divider.CinbGPsa.js} +1 -1
- package/dist/chunks/{Divider.CfGqsPOG.js → Divider.KzhgrMYv.js} +1 -1
- package/dist/chunks/DotLottie.BEAWvPhB.js +71358 -0
- package/dist/chunks/DotLottie.DHSt1_0W.js +5 -0
- package/dist/chunks/{Switch.clBBQjY3.js → Switch.2ZixJdlG.js} +1 -1
- package/dist/chunks/{Switch.G7d5HjrW.js → Switch.Cf71RNLF.js} +2 -2
- package/dist/chunks/{bottomSheet.CbP1N3-g.js → bottomSheet.B5OrcCXx.js} +1 -1
- package/dist/chunks/{bottomSheet.BHvPqq91.js → bottomSheet.CnYVp9RP.js} +1 -1
- package/dist/chunks/{checkbox.DzMsJDRY.js → checkbox.CYGNBSUO.js} +1 -1
- package/dist/chunks/{checkbox.DjHLBzFe.js → checkbox.Dzvj-4RV.js} +2 -2
- package/dist/chunks/{dist.BbBE9J18.js → dist.6jgaVidM.js} +8 -7
- package/dist/chunks/dist.BixLWWwb.js +71 -0
- package/dist/chunks/dist.Bj_fI5rQ.js +1 -0
- package/dist/chunks/dist.BoEBrFAh.js +1 -0
- package/dist/chunks/dist.C4D-6Tcr.js +1 -0
- package/dist/chunks/{dist.D_s4kUUr.js → dist.CDZCWPu4.js} +1 -1
- package/dist/chunks/{dist.COetszRA.js → dist.CJY8LqRA.js} +1 -1
- package/dist/chunks/dist.CT8nUj9V.js +1 -0
- package/dist/chunks/dist.CYRtTgUR.js +96 -0
- package/dist/chunks/{dist.Cz5xL5vI.js → dist.CpTw9rlm.js} +1 -1
- package/dist/chunks/dist.Crl6KTg_.js +21 -0
- package/dist/chunks/dist.CwWM0zXK.js +25 -0
- package/dist/chunks/dist.DPo6XlLq.js +145 -0
- package/dist/chunks/dist.DTByVKhF.js +193 -0
- package/dist/chunks/dist.Ds9VPbBd.js +194 -0
- package/dist/chunks/dist.DvmdOncE.js +1 -0
- package/dist/chunks/dist.ERrpPEZ4.js +1 -0
- package/dist/chunks/dist.OINbhiqU.js +1 -0
- package/dist/chunks/dist.Xtc44Blp.js +1 -0
- package/dist/chunks/dist.mhQdJ8f2.js +170 -0
- package/dist/chunks/drawer.BewJ2D_w.js +1545 -0
- package/dist/chunks/drawer.Cty9wtvs.js +7 -0
- package/dist/chunks/es2015.ByVyszJo.js +562 -0
- package/dist/chunks/es2015.DoCbPEnP.js +41 -0
- package/dist/chunks/tooltip.Dv33hiJ0.js +1 -0
- package/dist/chunks/{tooltip.Bh_x0SaP.js → tooltip.w3pAhl4A.js} +5 -4
- 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/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.esm.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.esm.js +1 -1
- 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 +4 -4
- 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 +10 -10
- package/dist/components/Pagination/index.cjs.js +1 -1
- package/dist/components/Pagination/index.esm.js +1 -1
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.d.ts +6 -0
- package/dist/components/SelectBox/index.d.ts.map +1 -1
- package/dist/components/SelectBox/index.esm.js +42 -70
- 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/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.esm.js +16 -15
- 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 +10 -10
- 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 +83 -2
- package/dist/components/ui/select.cjs.js +1 -0
- package/dist/components/ui/select.d.ts +52 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.esm.js +182 -0
- 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 +4 -4
- 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 +6 -6
- 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 +60 -58
- package/dist/library/DotLottie/index.cjs.js +1 -0
- package/dist/library/DotLottie/index.d.ts +21 -0
- package/dist/library/DotLottie/index.d.ts.map +1 -0
- package/dist/library/DotLottie/index.esm.js +2 -0
- package/dist/library/List/BottomSheetItemList/index.cjs.js +1 -1
- package/dist/library/List/BottomSheetItemList/index.esm.js +1 -1
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.esm.js +67 -2
- package/dist/library/index.cjs.js +1 -1
- package/dist/library/index.d.ts +1 -0
- package/dist/library/index.d.ts.map +1 -1
- package/dist/library/index.esm.js +6 -5
- package/package.json +6 -5
- package/dist/chunks/Accordion.ClCq_Ey8.js +0 -1
- package/dist/chunks/Lottie.DxqtsFQi.js +0 -1
- package/dist/chunks/Lottie.RPp4wef7.js +0 -161
- package/dist/chunks/dist.CbqoUpiO.js +0 -5
- package/dist/chunks/dist.CrnGARhp.js +0 -1
- package/dist/chunks/dist.DXWLF1yO.js +0 -137
- package/dist/chunks/dist.DxuGUd9a.js +0 -93
- package/dist/chunks/dist.eT0KQJF1.js +0 -1
- package/dist/chunks/dist.o_suB-Ao.js +0 -217
- package/dist/chunks/drawer.CsTGeQfm.js +0 -987
- package/dist/chunks/drawer.Dl1NBBot.js +0 -3
- package/dist/chunks/es2015.DT_gWqJq.js +0 -705
- package/dist/chunks/es2015.YOXqRYz1.js +0 -41
- package/dist/chunks/impact-tooltip.CqzKZc1i.js +0 -268
- package/dist/chunks/impact-tooltip.MXdAL7_2.js +0 -1
- package/dist/chunks/tooltip.DXsV-PA7.js +0 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { t as e } from "./dist.CwWM0zXK.js";
|
|
2
|
+
import { t } from "./dist.CDZCWPu4.js";
|
|
3
|
+
import { n } from "./dist.Crl6KTg_.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 = "focusScope.autoFocusOnMount", o = "focusScope.autoFocusOnUnmount", s = {
|
|
8
|
+
bubbles: !1,
|
|
9
|
+
cancelable: !0
|
|
10
|
+
}, c = "FocusScope", l = r.forwardRef((c, l) => {
|
|
11
|
+
let { loop: p = !1, trapped: m = !1, onMountAutoFocus: h, onUnmountAutoFocus: v, ...y } = c, [x, S] = r.useState(null), C = n(h), w = n(v), T = r.useRef(null), E = e(l, (e) => S(e)), D = r.useRef({
|
|
12
|
+
paused: !1,
|
|
13
|
+
pause() {
|
|
14
|
+
this.paused = !0;
|
|
15
|
+
},
|
|
16
|
+
resume() {
|
|
17
|
+
this.paused = !1;
|
|
18
|
+
}
|
|
19
|
+
}).current;
|
|
20
|
+
r.useEffect(() => {
|
|
21
|
+
if (m) {
|
|
22
|
+
let e = function(e) {
|
|
23
|
+
if (D.paused || !x) return;
|
|
24
|
+
let t = e.target;
|
|
25
|
+
x.contains(t) ? T.current = t : g(T.current, { select: !0 });
|
|
26
|
+
}, t = function(e) {
|
|
27
|
+
if (D.paused || !x) return;
|
|
28
|
+
let t = e.relatedTarget;
|
|
29
|
+
t !== null && (x.contains(t) || g(T.current, { select: !0 }));
|
|
30
|
+
}, n = function(e) {
|
|
31
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && g(x);
|
|
32
|
+
};
|
|
33
|
+
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
34
|
+
let r = new MutationObserver(n);
|
|
35
|
+
return x && r.observe(x, {
|
|
36
|
+
childList: !0,
|
|
37
|
+
subtree: !0
|
|
38
|
+
}), () => {
|
|
39
|
+
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}, [
|
|
43
|
+
m,
|
|
44
|
+
x,
|
|
45
|
+
D.paused
|
|
46
|
+
]), r.useEffect(() => {
|
|
47
|
+
if (x) {
|
|
48
|
+
_.add(D);
|
|
49
|
+
let e = document.activeElement;
|
|
50
|
+
if (!x.contains(e)) {
|
|
51
|
+
let t = new CustomEvent(a, s);
|
|
52
|
+
x.addEventListener(a, C), x.dispatchEvent(t), t.defaultPrevented || (u(b(f(x)), { select: !0 }), document.activeElement === e && g(x));
|
|
53
|
+
}
|
|
54
|
+
return () => {
|
|
55
|
+
x.removeEventListener(a, C), setTimeout(() => {
|
|
56
|
+
let t = new CustomEvent(o, s);
|
|
57
|
+
x.addEventListener(o, w), x.dispatchEvent(t), t.defaultPrevented || g(e ?? document.body, { select: !0 }), x.removeEventListener(o, w), _.remove(D);
|
|
58
|
+
}, 0);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}, [
|
|
62
|
+
x,
|
|
63
|
+
C,
|
|
64
|
+
w,
|
|
65
|
+
D
|
|
66
|
+
]);
|
|
67
|
+
let O = r.useCallback((e) => {
|
|
68
|
+
if (!p && !m || D.paused) return;
|
|
69
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
70
|
+
if (t && n) {
|
|
71
|
+
let t = e.currentTarget, [r, i] = d(t);
|
|
72
|
+
r && i ? !e.shiftKey && n === i ? (e.preventDefault(), p && g(r, { select: !0 })) : e.shiftKey && n === r && (e.preventDefault(), p && g(i, { select: !0 })) : n === t && e.preventDefault();
|
|
73
|
+
}
|
|
74
|
+
}, [
|
|
75
|
+
p,
|
|
76
|
+
m,
|
|
77
|
+
D.paused
|
|
78
|
+
]);
|
|
79
|
+
return /* @__PURE__ */ i(t.div, {
|
|
80
|
+
tabIndex: -1,
|
|
81
|
+
...y,
|
|
82
|
+
ref: E,
|
|
83
|
+
onKeyDown: O
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
l.displayName = c;
|
|
87
|
+
function u(e, { select: t = !1 } = {}) {
|
|
88
|
+
let n = document.activeElement;
|
|
89
|
+
for (let r of e) if (g(r, { select: t }), document.activeElement !== n) return;
|
|
90
|
+
}
|
|
91
|
+
function d(e) {
|
|
92
|
+
let t = f(e);
|
|
93
|
+
return [p(t, e), p(t.reverse(), e)];
|
|
94
|
+
}
|
|
95
|
+
function f(e) {
|
|
96
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
97
|
+
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
98
|
+
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
99
|
+
} });
|
|
100
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
101
|
+
return t;
|
|
102
|
+
}
|
|
103
|
+
function p(e, t) {
|
|
104
|
+
for (let n of e) if (!m(n, { upTo: t })) return n;
|
|
105
|
+
}
|
|
106
|
+
function m(e, { upTo: t }) {
|
|
107
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
108
|
+
for (; e;) {
|
|
109
|
+
if (t !== void 0 && e === t) return !1;
|
|
110
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
111
|
+
e = e.parentElement;
|
|
112
|
+
}
|
|
113
|
+
return !1;
|
|
114
|
+
}
|
|
115
|
+
function h(e) {
|
|
116
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
117
|
+
}
|
|
118
|
+
function g(e, { select: t = !1 } = {}) {
|
|
119
|
+
if (e && e.focus) {
|
|
120
|
+
let n = document.activeElement;
|
|
121
|
+
e.focus({ preventScroll: !0 }), e !== n && h(e) && t && e.select();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
var _ = v();
|
|
125
|
+
function v() {
|
|
126
|
+
let e = [];
|
|
127
|
+
return {
|
|
128
|
+
add(t) {
|
|
129
|
+
let n = e[0];
|
|
130
|
+
t !== n && n?.pause(), e = y(e, t), e.unshift(t);
|
|
131
|
+
},
|
|
132
|
+
remove(t) {
|
|
133
|
+
e = y(e, t), e[0]?.resume();
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function y(e, t) {
|
|
138
|
+
let n = [...e], r = n.indexOf(t);
|
|
139
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
140
|
+
}
|
|
141
|
+
function b(e) {
|
|
142
|
+
return e.filter((e) => e.tagName !== "A");
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
export { l as t };
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { a as e, r as t, t as n } from "./dist.CzNkwCpH.js";
|
|
2
|
+
import { t as r } from "./dist.CwWM0zXK.js";
|
|
3
|
+
import { n as i } from "./dist.BixLWWwb.js";
|
|
4
|
+
import { t as a } from "./dist.CDZCWPu4.js";
|
|
5
|
+
import { t as o } from "./dist.Ct4Usz2n.js";
|
|
6
|
+
import { t as s } from "./dist.Cfck23KY.js";
|
|
7
|
+
import { n as c, r as l, t as u } from "./dist.mhQdJ8f2.js";
|
|
8
|
+
import { t as d } from "./dist.DPo6XlLq.js";
|
|
9
|
+
import { n as f, r as p, t as m } from "./es2015.ByVyszJo.js";
|
|
10
|
+
import * as h from "react";
|
|
11
|
+
import { Fragment as g, jsx as _ } from "react/jsx-runtime";
|
|
12
|
+
//#region node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
13
|
+
var v = "Dialog", [y, b] = e(v), [x, S] = y(v), C = (e) => {
|
|
14
|
+
let { __scopeDialog: t, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: c = !0 } = e, l = h.useRef(null), u = h.useRef(null), [d, f] = n({
|
|
15
|
+
prop: i,
|
|
16
|
+
defaultProp: a ?? !1,
|
|
17
|
+
onChange: o,
|
|
18
|
+
caller: v
|
|
19
|
+
});
|
|
20
|
+
return /* @__PURE__ */ _(x, {
|
|
21
|
+
scope: t,
|
|
22
|
+
triggerRef: l,
|
|
23
|
+
contentRef: u,
|
|
24
|
+
contentId: s(),
|
|
25
|
+
titleId: s(),
|
|
26
|
+
descriptionId: s(),
|
|
27
|
+
open: d,
|
|
28
|
+
onOpenChange: f,
|
|
29
|
+
onOpenToggle: h.useCallback(() => f((e) => !e), [f]),
|
|
30
|
+
modal: c,
|
|
31
|
+
children: r
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
C.displayName = v;
|
|
35
|
+
var w = "DialogTrigger", T = h.forwardRef((e, n) => {
|
|
36
|
+
let { __scopeDialog: i, ...o } = e, s = S(w, i), c = r(n, s.triggerRef);
|
|
37
|
+
return /* @__PURE__ */ _(a.button, {
|
|
38
|
+
type: "button",
|
|
39
|
+
"aria-haspopup": "dialog",
|
|
40
|
+
"aria-expanded": s.open,
|
|
41
|
+
"aria-controls": s.open ? s.contentId : void 0,
|
|
42
|
+
"data-state": G(s.open),
|
|
43
|
+
...o,
|
|
44
|
+
ref: c,
|
|
45
|
+
onClick: t(e.onClick, s.onOpenToggle)
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
T.displayName = w;
|
|
49
|
+
var E = "DialogPortal", [D, O] = y(E, { forceMount: void 0 }), k = (e) => {
|
|
50
|
+
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = S(E, t);
|
|
51
|
+
return /* @__PURE__ */ _(D, {
|
|
52
|
+
scope: t,
|
|
53
|
+
forceMount: n,
|
|
54
|
+
children: h.Children.map(r, (e) => /* @__PURE__ */ _(o, {
|
|
55
|
+
present: n || a.open,
|
|
56
|
+
children: /* @__PURE__ */ _(u, {
|
|
57
|
+
asChild: !0,
|
|
58
|
+
container: i,
|
|
59
|
+
children: e
|
|
60
|
+
})
|
|
61
|
+
}))
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
k.displayName = E;
|
|
65
|
+
var A = "DialogOverlay", j = h.forwardRef((e, t) => {
|
|
66
|
+
let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(A, e.__scopeDialog);
|
|
67
|
+
return a.modal ? /* @__PURE__ */ _(o, {
|
|
68
|
+
present: r || a.open,
|
|
69
|
+
children: /* @__PURE__ */ _(N, {
|
|
70
|
+
...i,
|
|
71
|
+
ref: t
|
|
72
|
+
})
|
|
73
|
+
}) : null;
|
|
74
|
+
});
|
|
75
|
+
j.displayName = A;
|
|
76
|
+
var M = i("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
|
|
77
|
+
let { __scopeDialog: n, ...i } = e, o = S(A, n), s = r(t, l());
|
|
78
|
+
return /* @__PURE__ */ _(f, {
|
|
79
|
+
as: M,
|
|
80
|
+
allowPinchZoom: !0,
|
|
81
|
+
shards: [o.contentRef],
|
|
82
|
+
children: /* @__PURE__ */ _(a.div, {
|
|
83
|
+
"data-state": G(o.open),
|
|
84
|
+
...i,
|
|
85
|
+
ref: s,
|
|
86
|
+
style: {
|
|
87
|
+
pointerEvents: "auto",
|
|
88
|
+
...i.style
|
|
89
|
+
}
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
}), P = "DialogContent", F = h.forwardRef((e, t) => {
|
|
93
|
+
let n = O(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(P, e.__scopeDialog);
|
|
94
|
+
return /* @__PURE__ */ _(o, {
|
|
95
|
+
present: r || a.open,
|
|
96
|
+
children: a.modal ? /* @__PURE__ */ _(I, {
|
|
97
|
+
...i,
|
|
98
|
+
ref: t
|
|
99
|
+
}) : /* @__PURE__ */ _(L, {
|
|
100
|
+
...i,
|
|
101
|
+
ref: t
|
|
102
|
+
})
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
F.displayName = P;
|
|
106
|
+
var I = h.forwardRef((e, n) => {
|
|
107
|
+
let i = S(P, e.__scopeDialog), a = h.useRef(null), o = r(n, i.contentRef, a);
|
|
108
|
+
return h.useEffect(() => {
|
|
109
|
+
let e = a.current;
|
|
110
|
+
if (e) return m(e);
|
|
111
|
+
}, []), /* @__PURE__ */ _(R, {
|
|
112
|
+
...e,
|
|
113
|
+
ref: o,
|
|
114
|
+
trapFocus: i.open,
|
|
115
|
+
disableOutsidePointerEvents: i.open,
|
|
116
|
+
onCloseAutoFocus: t(e.onCloseAutoFocus, (e) => {
|
|
117
|
+
e.preventDefault(), i.triggerRef.current?.focus();
|
|
118
|
+
}),
|
|
119
|
+
onPointerDownOutside: t(e.onPointerDownOutside, (e) => {
|
|
120
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
121
|
+
(t.button === 2 || n) && e.preventDefault();
|
|
122
|
+
}),
|
|
123
|
+
onFocusOutside: t(e.onFocusOutside, (e) => e.preventDefault())
|
|
124
|
+
});
|
|
125
|
+
}), L = h.forwardRef((e, t) => {
|
|
126
|
+
let n = S(P, e.__scopeDialog), r = h.useRef(!1), i = h.useRef(!1);
|
|
127
|
+
return /* @__PURE__ */ _(R, {
|
|
128
|
+
...e,
|
|
129
|
+
ref: t,
|
|
130
|
+
trapFocus: !1,
|
|
131
|
+
disableOutsidePointerEvents: !1,
|
|
132
|
+
onCloseAutoFocus: (t) => {
|
|
133
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
134
|
+
},
|
|
135
|
+
onInteractOutside: (t) => {
|
|
136
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
137
|
+
let a = t.target;
|
|
138
|
+
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}), R = h.forwardRef((e, t) => {
|
|
142
|
+
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = S(P, n);
|
|
143
|
+
return p(), /* @__PURE__ */ _(g, { children: /* @__PURE__ */ _(d, {
|
|
144
|
+
asChild: !0,
|
|
145
|
+
loop: !0,
|
|
146
|
+
trapped: r,
|
|
147
|
+
onMountAutoFocus: i,
|
|
148
|
+
onUnmountAutoFocus: a,
|
|
149
|
+
children: /* @__PURE__ */ _(c, {
|
|
150
|
+
role: "dialog",
|
|
151
|
+
id: s.contentId,
|
|
152
|
+
"aria-describedby": s.descriptionId,
|
|
153
|
+
"aria-labelledby": s.titleId,
|
|
154
|
+
"data-state": G(s.open),
|
|
155
|
+
...o,
|
|
156
|
+
ref: t,
|
|
157
|
+
deferPointerDownOutside: !0,
|
|
158
|
+
onDismiss: () => s.onOpenChange(!1)
|
|
159
|
+
})
|
|
160
|
+
}) });
|
|
161
|
+
}), z = "DialogTitle", B = h.forwardRef((e, t) => {
|
|
162
|
+
let { __scopeDialog: n, ...r } = e, i = S(z, n);
|
|
163
|
+
return /* @__PURE__ */ _(a.h2, {
|
|
164
|
+
id: i.titleId,
|
|
165
|
+
...r,
|
|
166
|
+
ref: t
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
B.displayName = z;
|
|
170
|
+
var V = "DialogDescription", H = h.forwardRef((e, t) => {
|
|
171
|
+
let { __scopeDialog: n, ...r } = e, i = S(V, n);
|
|
172
|
+
return /* @__PURE__ */ _(a.p, {
|
|
173
|
+
id: i.descriptionId,
|
|
174
|
+
...r,
|
|
175
|
+
ref: t
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
H.displayName = V;
|
|
179
|
+
var U = "DialogClose", W = h.forwardRef((e, n) => {
|
|
180
|
+
let { __scopeDialog: r, ...i } = e, o = S(U, r);
|
|
181
|
+
return /* @__PURE__ */ _(a.button, {
|
|
182
|
+
type: "button",
|
|
183
|
+
...i,
|
|
184
|
+
ref: n,
|
|
185
|
+
onClick: t(e.onClick, () => o.onOpenChange(!1))
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
W.displayName = U;
|
|
189
|
+
function G(e) {
|
|
190
|
+
return e ? "open" : "closed";
|
|
191
|
+
}
|
|
192
|
+
//#endregion
|
|
193
|
+
export { j as a, T as c, H as i, W as n, k as o, F as r, B as s, C as t };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { a as e, r as t, t as n } from "./dist.CzNkwCpH.js";
|
|
2
|
+
import { t as r } from "./dist.CwWM0zXK.js";
|
|
3
|
+
import { n as i } from "./dist.BixLWWwb.js";
|
|
4
|
+
import { t as a } from "./dist.CDZCWPu4.js";
|
|
5
|
+
import { t as o } from "./dist.Ct4Usz2n.js";
|
|
6
|
+
import { t as s } from "./dist.Cfck23KY.js";
|
|
7
|
+
import { n as c, t as l } from "./dist.mhQdJ8f2.js";
|
|
8
|
+
import { t as u } from "./dist.DPo6XlLq.js";
|
|
9
|
+
import { n as d, r as f, t as p } from "./es2015.ByVyszJo.js";
|
|
10
|
+
import { a as m, i as h, n as g, r as _, t as v } from "./dist.6jgaVidM.js";
|
|
11
|
+
import * as y from "react";
|
|
12
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
13
|
+
//#region node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
14
|
+
var x = "Popover", [S, C] = e(x, [m]), w = m(), [T, E] = S(x), D = (e) => {
|
|
15
|
+
let { __scopePopover: t, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: c = !1 } = e, l = w(t), u = y.useRef(null), [d, f] = y.useState(!1), [p, m] = n({
|
|
16
|
+
prop: i,
|
|
17
|
+
defaultProp: a ?? !1,
|
|
18
|
+
onChange: o,
|
|
19
|
+
caller: x
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ b(h, {
|
|
22
|
+
...l,
|
|
23
|
+
children: /* @__PURE__ */ b(T, {
|
|
24
|
+
scope: t,
|
|
25
|
+
contentId: s(),
|
|
26
|
+
triggerRef: u,
|
|
27
|
+
open: p,
|
|
28
|
+
onOpenChange: m,
|
|
29
|
+
onOpenToggle: y.useCallback(() => m((e) => !e), [m]),
|
|
30
|
+
hasCustomAnchor: d,
|
|
31
|
+
onCustomAnchorAdd: y.useCallback(() => f(!0), []),
|
|
32
|
+
onCustomAnchorRemove: y.useCallback(() => f(!1), []),
|
|
33
|
+
modal: c,
|
|
34
|
+
children: r
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
D.displayName = x;
|
|
39
|
+
var O = "PopoverAnchor", k = y.forwardRef((e, t) => {
|
|
40
|
+
let { __scopePopover: n, ...r } = e, i = E(O, n), a = w(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
41
|
+
return y.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ b(v, {
|
|
42
|
+
...a,
|
|
43
|
+
...r,
|
|
44
|
+
ref: t
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
k.displayName = O;
|
|
48
|
+
var A = "PopoverTrigger", j = y.forwardRef((e, n) => {
|
|
49
|
+
let { __scopePopover: i, ...o } = e, s = E(A, i), c = w(i), l = r(n, s.triggerRef), u = /* @__PURE__ */ b(a.button, {
|
|
50
|
+
type: "button",
|
|
51
|
+
"aria-haspopup": "dialog",
|
|
52
|
+
"aria-expanded": s.open,
|
|
53
|
+
"aria-controls": s.open ? s.contentId : void 0,
|
|
54
|
+
"data-state": K(s.open),
|
|
55
|
+
...o,
|
|
56
|
+
ref: l,
|
|
57
|
+
onClick: t(e.onClick, s.onOpenToggle)
|
|
58
|
+
});
|
|
59
|
+
return s.hasCustomAnchor ? u : /* @__PURE__ */ b(v, {
|
|
60
|
+
asChild: !0,
|
|
61
|
+
...c,
|
|
62
|
+
children: u
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
j.displayName = A;
|
|
66
|
+
var M = "PopoverPortal", [N, P] = S(M, { forceMount: void 0 }), F = (e) => {
|
|
67
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = E(M, t);
|
|
68
|
+
return /* @__PURE__ */ b(N, {
|
|
69
|
+
scope: t,
|
|
70
|
+
forceMount: n,
|
|
71
|
+
children: /* @__PURE__ */ b(o, {
|
|
72
|
+
present: n || a.open,
|
|
73
|
+
children: /* @__PURE__ */ b(l, {
|
|
74
|
+
asChild: !0,
|
|
75
|
+
container: i,
|
|
76
|
+
children: r
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
F.displayName = M;
|
|
82
|
+
var I = "PopoverContent", L = y.forwardRef((e, t) => {
|
|
83
|
+
let n = P(I, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = E(I, e.__scopePopover);
|
|
84
|
+
return /* @__PURE__ */ b(o, {
|
|
85
|
+
present: r || a.open,
|
|
86
|
+
children: a.modal ? /* @__PURE__ */ b(z, {
|
|
87
|
+
...i,
|
|
88
|
+
ref: t
|
|
89
|
+
}) : /* @__PURE__ */ b(B, {
|
|
90
|
+
...i,
|
|
91
|
+
ref: t
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
L.displayName = I;
|
|
96
|
+
var R = i("PopoverContent.RemoveScroll"), z = y.forwardRef((e, n) => {
|
|
97
|
+
let i = E(I, e.__scopePopover), a = y.useRef(null), o = r(n, a), s = y.useRef(!1);
|
|
98
|
+
return y.useEffect(() => {
|
|
99
|
+
let e = a.current;
|
|
100
|
+
if (e) return p(e);
|
|
101
|
+
}, []), /* @__PURE__ */ b(d, {
|
|
102
|
+
as: R,
|
|
103
|
+
allowPinchZoom: !0,
|
|
104
|
+
children: /* @__PURE__ */ b(V, {
|
|
105
|
+
...e,
|
|
106
|
+
ref: o,
|
|
107
|
+
trapFocus: i.open,
|
|
108
|
+
disableOutsidePointerEvents: !0,
|
|
109
|
+
onCloseAutoFocus: t(e.onCloseAutoFocus, (e) => {
|
|
110
|
+
e.preventDefault(), s.current || i.triggerRef.current?.focus();
|
|
111
|
+
}),
|
|
112
|
+
onPointerDownOutside: t(e.onPointerDownOutside, (e) => {
|
|
113
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
114
|
+
s.current = t.button === 2 || n;
|
|
115
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
116
|
+
onFocusOutside: t(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
117
|
+
})
|
|
118
|
+
});
|
|
119
|
+
}), B = y.forwardRef((e, t) => {
|
|
120
|
+
let n = E(I, e.__scopePopover), r = y.useRef(!1), i = y.useRef(!1);
|
|
121
|
+
return /* @__PURE__ */ b(V, {
|
|
122
|
+
...e,
|
|
123
|
+
ref: t,
|
|
124
|
+
trapFocus: !1,
|
|
125
|
+
disableOutsidePointerEvents: !1,
|
|
126
|
+
onCloseAutoFocus: (t) => {
|
|
127
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
128
|
+
},
|
|
129
|
+
onInteractOutside: (t) => {
|
|
130
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
131
|
+
let a = t.target;
|
|
132
|
+
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}), V = y.forwardRef((e, t) => {
|
|
136
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: l, onFocusOutside: d, onInteractOutside: p, ...m } = e, h = E(I, n), g = w(n);
|
|
137
|
+
return f(), /* @__PURE__ */ b(u, {
|
|
138
|
+
asChild: !0,
|
|
139
|
+
loop: !0,
|
|
140
|
+
trapped: r,
|
|
141
|
+
onMountAutoFocus: i,
|
|
142
|
+
onUnmountAutoFocus: a,
|
|
143
|
+
children: /* @__PURE__ */ b(c, {
|
|
144
|
+
asChild: !0,
|
|
145
|
+
disableOutsidePointerEvents: o,
|
|
146
|
+
onInteractOutside: p,
|
|
147
|
+
onEscapeKeyDown: s,
|
|
148
|
+
onPointerDownOutside: l,
|
|
149
|
+
onFocusOutside: d,
|
|
150
|
+
onDismiss: () => h.onOpenChange(!1),
|
|
151
|
+
deferPointerDownOutside: !0,
|
|
152
|
+
children: /* @__PURE__ */ b(_, {
|
|
153
|
+
"data-state": K(h.open),
|
|
154
|
+
role: "dialog",
|
|
155
|
+
id: h.contentId,
|
|
156
|
+
...g,
|
|
157
|
+
...m,
|
|
158
|
+
ref: t,
|
|
159
|
+
style: {
|
|
160
|
+
...m.style,
|
|
161
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
162
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
163
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
164
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
165
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
166
|
+
}
|
|
167
|
+
})
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
}), H = "PopoverClose", U = y.forwardRef((e, n) => {
|
|
171
|
+
let { __scopePopover: r, ...i } = e, o = E(H, r);
|
|
172
|
+
return /* @__PURE__ */ b(a.button, {
|
|
173
|
+
type: "button",
|
|
174
|
+
...i,
|
|
175
|
+
ref: n,
|
|
176
|
+
onClick: t(e.onClick, () => o.onOpenChange(!1))
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
U.displayName = H;
|
|
180
|
+
var W = "PopoverArrow", G = y.forwardRef((e, t) => {
|
|
181
|
+
let { __scopePopover: n, ...r } = e;
|
|
182
|
+
return /* @__PURE__ */ b(g, {
|
|
183
|
+
...w(n),
|
|
184
|
+
...r,
|
|
185
|
+
ref: t
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
G.displayName = W;
|
|
189
|
+
function K(e) {
|
|
190
|
+
return e ? "open" : "closed";
|
|
191
|
+
}
|
|
192
|
+
var q = D, J = k, Y = j, X = F, Z = L, Q = U, $ = G;
|
|
193
|
+
//#endregion
|
|
194
|
+
export { X as a, Z as i, $ as n, q as o, Q as r, Y as s, J as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk.CMqjfN_6.js"),t=require("./dist.DTg4gm8w.js"),n=require("./dist.C4D-6Tcr.js"),r=require("./dist.CpTw9rlm.js"),i=require("./dist.Xtc44Blp.js");let a=require("react");a=e.t(a,1);let o=require("react/jsx-runtime"),s=require("react-dom");s=e.t(s,1);var c=`DismissableLayer`,l=`dismissableLayer.update`,u=`dismissableLayer.pointerDownOutside`,d=`dismissableLayer.focusOutside`,f,p=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),m=a.forwardRef((e,s)=>{let{disableOutsidePointerEvents:c=!1,deferPointerDownOutside:u=!1,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:g,onDismiss:_,...x}=e,S=a.useContext(p),[C,w]=a.useState(null),T=C?.ownerDocument??globalThis?.document,[,E]=a.useState({}),D=n.t(s,e=>w(e)),O=Array.from(S.layers),[k]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),A=O.indexOf(k),j=C?O.indexOf(C):-1,M=S.layersWithOutsidePointerEventsDisabled.size>0,N=j>=A,P=a.useRef(!1),F=v(e=>{let t=e.target;if(!(t instanceof Node))return;let n=[...S.branches].some(e=>e.contains(t));!N||n||(m?.(e),g?.(e),e.defaultPrevented||_?.())},{ownerDocument:T,deferPointerDownOutside:u,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:S.dismissableSurfaces}),I=y(e=>{if(u&&P.current)return;let t=e.target;[...S.branches].some(e=>e.contains(t))||(h?.(e),g?.(e),e.defaultPrevented||_?.())},T);return i.t(e=>{j===S.layers.size-1&&(d?.(e),!e.defaultPrevented&&_&&(e.preventDefault(),_()))},T),a.useEffect(()=>{if(C)return c&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(f=T.body.style.pointerEvents,T.body.style.pointerEvents=`none`),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),b(),()=>{c&&(S.layersWithOutsidePointerEventsDisabled.delete(C),S.layersWithOutsidePointerEventsDisabled.size===0&&(T.body.style.pointerEvents=f))}},[C,T,c,S]),a.useEffect(()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),b())},[C,S]),a.useEffect(()=>{let e=()=>E({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,o.jsx)(r.t.div,{...x,ref:D,style:{pointerEvents:M?N?`auto`:`none`:void 0,...e.style},onFocusCapture:t.r(e.onFocusCapture,I.onFocusCapture),onBlurCapture:t.r(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:t.r(e.onPointerDownCapture,F.onPointerDownCapture)})});m.displayName=c;var h=`DismissableLayerBranch`,g=a.forwardRef((e,t)=>{let i=a.useContext(p),s=a.useRef(null),c=n.t(t,s);return a.useEffect(()=>{let e=s.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}},[i.branches]),(0,o.jsx)(r.t.div,{...e,ref:c})});g.displayName=h;function _(){let e=a.useContext(p),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function v(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:s}=t,c=i.n(e),l=a.useRef(!1),d=a.useRef(!1),f=a.useRef(new Map),p=a.useRef(()=>{});return a.useEffect(()=>{function e(){d.current=!1,o.current=!1,f.current.clear()}function t(){return Array.from(f.current.values()).some(Boolean)}function i(e){if(!d.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||f.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{d.current&&p.current()},0)}function a(e){d.current&&f.current.set(e.type,!1)}let m=i=>{if(i.target&&!l.current){let a=function(){n.removeEventListener(`click`,p.current);let r=t();e(),r||x(u,c,s,{discrete:!0})},s={originalEvent:i};d.current=!0,o.current=r&&i.button===0,f.current.clear(),!r||i.button!==0?a():(n.removeEventListener(`click`,p.current),p.current=a,n.addEventListener(`click`,p.current,{once:!0}))}else n.removeEventListener(`click`,p.current),e();l.current=!1},h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,i,!0),n.addEventListener(e,a);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,p.current);for(let e of h)n.removeEventListener(e,i,!0),n.removeEventListener(e,a)}},[n,c,r,o,s]),{onPointerDownCapture:()=>l.current=!0}}function y(e,t=globalThis?.document){let n=i.n(e),r=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!r.current&&x(d,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function b(){let e=new CustomEvent(l);document.dispatchEvent(e)}function x(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?r.n(a,o):a.dispatchEvent(o)}var S=`Portal`,C=a.forwardRef((e,n)=>{let{container:i,...c}=e,[l,u]=a.useState(!1);t.n(()=>u(!0),[]);let d=i||l&&globalThis?.document?.body;return d?s.createPortal((0,o.jsx)(r.t.div,{...c,ref:n}),d):null});C.displayName=S,Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return C}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk.CMqjfN_6.js"),t=require("./dist.C4D-6Tcr.js"),n=require("./dist.CpTw9rlm.js"),r=require("./dist.Xtc44Blp.js");let i=require("react");i=e.t(i,1);let a=require("react/jsx-runtime");var o=`focusScope.autoFocusOnMount`,s=`focusScope.autoFocusOnUnmount`,c={bubbles:!1,cancelable:!0},l=`FocusScope`,u=i.forwardRef((e,l)=>{let{loop:u=!1,trapped:m=!1,onMountAutoFocus:h,onUnmountAutoFocus:g,...y}=e,[b,S]=i.useState(null),C=r.n(h),w=r.n(g),T=i.useRef(null),E=t.t(l,e=>S(e)),D=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(m){let e=function(e){if(D.paused||!b)return;let t=e.target;b.contains(t)?T.current=t:_(T.current,{select:!0})},t=function(e){if(D.paused||!b)return;let t=e.relatedTarget;t!==null&&(b.contains(t)||_(T.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&_(b)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[m,b,D.paused]),i.useEffect(()=>{if(b){v.add(D);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(o,c);b.addEventListener(o,C),b.dispatchEvent(t),t.defaultPrevented||(d(x(p(b)),{select:!0}),document.activeElement===e&&_(b))}return()=>{b.removeEventListener(o,C),setTimeout(()=>{let t=new CustomEvent(s,c);b.addEventListener(s,w),b.dispatchEvent(t),t.defaultPrevented||_(e??document.body,{select:!0}),b.removeEventListener(s,w),v.remove(D)},0)}}},[b,C,w,D]);let O=i.useCallback(e=>{if(!u&&!m||D.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[r,i]=f(t);r&&i?!e.shiftKey&&n===i?(e.preventDefault(),u&&_(r,{select:!0})):e.shiftKey&&n===r&&(e.preventDefault(),u&&_(i,{select:!0})):n===t&&e.preventDefault()}},[u,m,D.paused]);return(0,a.jsx)(n.t.div,{tabIndex:-1,...y,ref:E,onKeyDown:O})});u.displayName=l;function d(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(_(r,{select:t}),document.activeElement!==n)return}function f(e){let t=p(e);return[m(t,e),m(t.reverse(),e)]}function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m(e,t){for(let n of e)if(!h(n,{upTo:t}))return n}function h(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function g(e){return e instanceof HTMLInputElement&&`select`in e}function _(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&g(e)&&t&&e.select()}}var v=y();function y(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=b(e,t),e.unshift(t)},remove(t){e=b(e,t),e[0]?.resume()}}}function b(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function x(e){return e.filter(e=>e.tagName!==`A`)}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return u}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk.CMqjfN_6.js"),t=require("./dist.DTg4gm8w.js"),n=require("./dist.C4D-6Tcr.js"),r=require("./dist.BoEBrFAh.js"),i=require("./dist.CpTw9rlm.js"),a=require("./dist.ZyM9l2Vf.js"),o=require("./dist.BklO76Tk.js"),s=require("./dist.DvmdOncE.js"),c=require("./dist.ERrpPEZ4.js"),l=require("./es2015.DoCbPEnP.js");let u=require("react");u=e.t(u,1);let d=require("react/jsx-runtime");var f=`Dialog`,[p,m]=t.a(f),[h,g]=p(f),_=e=>{let{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=u.useRef(null),p=u.useRef(null),[m,g]=t.t({prop:i,defaultProp:a??!1,onChange:s,caller:f});return(0,d.jsx)(h,{scope:n,triggerRef:l,contentRef:p,contentId:o.t(),titleId:o.t(),descriptionId:o.t(),open:m,onOpenChange:g,onOpenToggle:u.useCallback(()=>g(e=>!e),[g]),modal:c,children:r})};_.displayName=f;var v=`DialogTrigger`,y=u.forwardRef((e,r)=>{let{__scopeDialog:a,...o}=e,s=g(v,a),c=n.t(r,s.triggerRef);return(0,d.jsx)(i.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":z(s.open),...o,ref:c,onClick:t.r(e.onClick,s.onOpenToggle)})});y.displayName=v;var b=`DialogPortal`,[x,S]=p(b,{forceMount:void 0}),C=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=g(b,t);return(0,d.jsx)(x,{scope:t,forceMount:n,children:u.Children.map(r,e=>(0,d.jsx)(a.t,{present:n||o.open,children:(0,d.jsx)(s.t,{asChild:!0,container:i,children:e})}))})};C.displayName=b;var w=`DialogOverlay`,T=u.forwardRef((e,t)=>{let n=S(w,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=g(w,e.__scopeDialog);return o.modal?(0,d.jsx)(a.t,{present:r||o.open,children:(0,d.jsx)(D,{...i,ref:t})}):null});T.displayName=w;var E=r.n(`DialogOverlay.RemoveScroll`),D=u.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=g(w,r),c=n.t(t,s.r());return(0,d.jsx)(l.n,{as:E,allowPinchZoom:!0,shards:[o.contentRef],children:(0,d.jsx)(i.t.div,{"data-state":z(o.open),...a,ref:c,style:{pointerEvents:`auto`,...a.style}})})}),O=`DialogContent`,k=u.forwardRef((e,t)=>{let n=S(O,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=g(O,e.__scopeDialog);return(0,d.jsx)(a.t,{present:r||o.open,children:o.modal?(0,d.jsx)(A,{...i,ref:t}):(0,d.jsx)(j,{...i,ref:t})})});k.displayName=O;var A=u.forwardRef((e,r)=>{let i=g(O,e.__scopeDialog),a=u.useRef(null),o=n.t(r,i.contentRef,a);return u.useEffect(()=>{let e=a.current;if(e)return l.t(e)},[]),(0,d.jsx)(M,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:t.r(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:t.r(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:t.r(e.onFocusOutside,e=>e.preventDefault())})}),j=u.forwardRef((e,t)=>{let n=g(O,e.__scopeDialog),r=u.useRef(!1),i=u.useRef(!1);return(0,d.jsx)(M,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),M=u.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,u=g(O,n);return l.r(),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(c.t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,d.jsx)(s.n,{role:`dialog`,id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":z(u.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})}),N=`DialogTitle`,P=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=g(N,n);return(0,d.jsx)(i.t.h2,{id:a.titleId,...r,ref:t})});P.displayName=N;var F=`DialogDescription`,I=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=g(F,n);return(0,d.jsx)(i.t.p,{id:a.descriptionId,...r,ref:t})});I.displayName=F;var L=`DialogClose`,R=u.forwardRef((e,n)=>{let{__scopeDialog:r,...a}=e,o=g(L,r);return(0,d.jsx)(i.t.button,{type:`button`,...a,ref:n,onClick:t.r(e.onClick,()=>o.onOpenChange(!1))})});R.displayName=L;function z(e){return e?`open`:`closed`}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return _}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk.CMqjfN_6.js");let t=require("react");t=e.t(t,1);function n(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>((...e)=>n.current?.(...e)),[])}function r(e,r=globalThis?.document){let i=n(e);t.useEffect(()=>{let e=e=>{e.key===`Escape`&&i(e)};return r.addEventListener(`keydown`,e,{capture:!0}),()=>r.removeEventListener(`keydown`,e,{capture:!0})},[i,r])}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|