@krosoft/react 0.0.74 → 0.0.76
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/Combination-CzdDhqdB.js +564 -0
- package/dist/DataTable-CjFA9p4V.js +2216 -0
- package/dist/{DateRangePicker-BAn4LMHi.js → DateRangePicker-rrXXEYz8.js} +19 -16
- package/dist/LoadingState-CqRLmkxn.js +29 -0
- package/dist/MetricCard-88djqC4o.js +66 -0
- package/dist/{ThemeSelector-DQmkKmzE.js → ThemeSelector-sTd9T2OD.js} +8 -8
- package/dist/{Topbar-CFALRIJn.js → Topbar-BqC05zWP.js} +27 -26
- package/dist/{badge-C4pCH7IL.js → badge-kADcbb2Y.js} +1 -1
- package/dist/{calendar-cHag6u-j.js → calendar-BMReToKR.js} +771 -802
- package/dist/card-7XPLAra3.js +23 -0
- package/dist/checkbox-BI6Lm_p-.js +358 -0
- package/dist/chevron-down-ki5-dwtL.js +11 -0
- package/dist/components/core/cards/MetricCard.d.ts +23 -0
- package/dist/components/core/cards/MetricCard.d.ts.map +1 -0
- package/dist/components/core/cards/index.d.ts +2 -0
- package/dist/components/core/cards/index.d.ts.map +1 -1
- package/dist/components/core/cards/index.js +4 -3
- package/dist/components/core/index.d.ts +1 -0
- package/dist/components/core/index.d.ts.map +1 -1
- package/dist/components/core/index.js +26 -14
- package/dist/components/core/inputs/index.js +1 -1
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/states/CardSkeleton.d.ts +3 -0
- package/dist/components/core/states/CardSkeleton.d.ts.map +1 -0
- package/dist/components/core/states/CardsSkeleton.d.ts +7 -0
- package/dist/components/core/states/CardsSkeleton.d.ts.map +1 -0
- package/dist/components/core/states/index.d.ts +2 -0
- package/dist/components/core/states/index.d.ts.map +1 -1
- package/dist/components/core/states/index.js +5 -3
- package/dist/components/core/table/DataTable.d.ts +5 -0
- package/dist/components/core/table/DataTable.d.ts.map +1 -0
- package/dist/components/core/table/TableActions.d.ts +8 -0
- package/dist/components/core/table/TableActions.d.ts.map +1 -0
- package/dist/components/core/table/TableBody.d.ts +21 -0
- package/dist/components/core/table/TableBody.d.ts.map +1 -0
- package/dist/components/core/table/TableBulkActions.d.ts +9 -0
- package/dist/components/core/table/TableBulkActions.d.ts.map +1 -0
- package/dist/components/core/table/TableHeader.d.ts +23 -0
- package/dist/components/core/table/TableHeader.d.ts.map +1 -0
- package/dist/components/core/table/TablePagination.d.ts +14 -0
- package/dist/components/core/table/TablePagination.d.ts.map +1 -0
- package/dist/components/core/table/TableSettings.d.ts +9 -0
- package/dist/components/core/table/TableSettings.d.ts.map +1 -0
- package/dist/components/core/table/index.d.ts +10 -0
- package/dist/components/core/table/index.d.ts.map +1 -0
- package/dist/components/core/table/index.js +11 -0
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +62 -47
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +33 -30
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/constants/datatable.d.ts +3 -0
- package/dist/constants/datatable.d.ts.map +1 -0
- package/dist/{index-BQOmHRsD.js → floating-ui.react-dom-BPCyLQfI.js} +315 -323
- package/dist/hooks/ui/useDataTable.d.ts +4 -0
- package/dist/hooks/ui/useDataTable.d.ts.map +1 -0
- package/dist/loader-circle-BhJXKs31.js +11 -0
- package/dist/select-B-hcmC3K.js +1468 -0
- package/dist/{tooltip-Dep8OR3c.js → tooltip-gI1Mp9DG.js} +1 -1
- package/dist/types/BulkAction.d.ts +8 -0
- package/dist/types/BulkAction.d.ts.map +1 -0
- package/dist/types/ColumnDef.d.ts +11 -0
- package/dist/types/ColumnDef.d.ts.map +1 -0
- package/dist/types/DataTableProps.d.ts +19 -0
- package/dist/types/DataTableProps.d.ts.map +1 -0
- package/dist/types/RowAction.d.ts +8 -0
- package/dist/types/RowAction.d.ts.map +1 -0
- package/dist/types/UseDataTableProps.d.ts +13 -0
- package/dist/types/UseDataTableProps.d.ts.map +1 -0
- package/dist/types/UseDataTableResult.d.ts +34 -0
- package/dist/types/UseDataTableResult.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +3 -1
- package/dist/KpiCards-Bp6EAsf7.js +0 -40
- package/dist/LoadingState-C0uS6aGT.js +0 -19
- package/dist/select-Dv9bdUCB.js +0 -2023
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { jsx as nt, Fragment as ee } from "react/jsx-runtime";
|
|
2
|
-
import { a as ne, c as oe } from "./index-gWiv5-6R.js";
|
|
3
1
|
import * as g from "react";
|
|
4
|
-
import { useLayoutEffect as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
2
|
+
import { useLayoutEffect as ee } from "react";
|
|
3
|
+
import { jsx as nt, Fragment as ne } from "react/jsx-runtime";
|
|
4
|
+
import { a as oe, c as re } from "./index-gWiv5-6R.js";
|
|
5
|
+
import * as ie from "react-dom";
|
|
6
|
+
const Pt = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Lt = oe, se = (t, e) => (n) => {
|
|
8
7
|
var o;
|
|
9
8
|
if ((e == null ? void 0 : e.variants) == null) return Lt(t, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
10
9
|
const { variants: r, defaultVariants: i } = e, s = Object.keys(r).map((f) => {
|
|
@@ -55,93 +54,10 @@ function It(...t) {
|
|
|
55
54
|
};
|
|
56
55
|
};
|
|
57
56
|
}
|
|
58
|
-
function
|
|
57
|
+
function bn(...t) {
|
|
59
58
|
return g.useCallback(It(...t), t);
|
|
60
59
|
}
|
|
61
|
-
|
|
62
|
-
function le(t) {
|
|
63
|
-
const e = /* @__PURE__ */ ae(t), n = g.forwardRef((o, r) => {
|
|
64
|
-
const { children: i, ...s } = o, c = g.Children.toArray(i), a = c.find(ue);
|
|
65
|
-
if (a) {
|
|
66
|
-
const f = a.props.children, l = c.map((u) => u === a ? g.Children.count(f) > 1 ? g.Children.only(null) : g.isValidElement(f) ? f.props.children : null : u);
|
|
67
|
-
return /* @__PURE__ */ nt(e, { ...s, ref: r, children: g.isValidElement(f) ? g.cloneElement(f, void 0, l) : null });
|
|
68
|
-
}
|
|
69
|
-
return /* @__PURE__ */ nt(e, { ...s, ref: r, children: i });
|
|
70
|
-
});
|
|
71
|
-
return n.displayName = `${t}.Slot`, n;
|
|
72
|
-
}
|
|
73
|
-
var fe = /* @__PURE__ */ le("Slot");
|
|
74
|
-
// @__NO_SIDE_EFFECTS__
|
|
75
|
-
function ae(t) {
|
|
76
|
-
const e = g.forwardRef((n, o) => {
|
|
77
|
-
const { children: r, ...i } = n;
|
|
78
|
-
if (g.isValidElement(r)) {
|
|
79
|
-
const s = me(r), c = de(i, r.props);
|
|
80
|
-
return r.type !== g.Fragment && (c.ref = o ? It(o, s) : s), g.cloneElement(r, c);
|
|
81
|
-
}
|
|
82
|
-
return g.Children.count(r) > 1 ? g.Children.only(null) : null;
|
|
83
|
-
});
|
|
84
|
-
return e.displayName = `${t}.SlotClone`, e;
|
|
85
|
-
}
|
|
86
|
-
var jt = Symbol("radix.slottable");
|
|
87
|
-
// @__NO_SIDE_EFFECTS__
|
|
88
|
-
function An(t) {
|
|
89
|
-
const e = ({ children: n }) => /* @__PURE__ */ nt(ee, { children: n });
|
|
90
|
-
return e.displayName = `${t}.Slottable`, e.__radixId = jt, e;
|
|
91
|
-
}
|
|
92
|
-
function ue(t) {
|
|
93
|
-
return g.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === jt;
|
|
94
|
-
}
|
|
95
|
-
function de(t, e) {
|
|
96
|
-
const n = { ...e };
|
|
97
|
-
for (const o in e) {
|
|
98
|
-
const r = t[o], i = e[o];
|
|
99
|
-
/^on[A-Z]/.test(o) ? r && i ? n[o] = (...c) => {
|
|
100
|
-
const a = i(...c);
|
|
101
|
-
return r(...c), a;
|
|
102
|
-
} : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...i } : o === "className" && (n[o] = [r, i].filter(Boolean).join(" "));
|
|
103
|
-
}
|
|
104
|
-
return { ...t, ...n };
|
|
105
|
-
}
|
|
106
|
-
function me(t) {
|
|
107
|
-
var o, r;
|
|
108
|
-
let e = (o = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : o.get, n = e && "isReactWarning" in e && e.isReactWarning;
|
|
109
|
-
return n ? t.ref : (e = (r = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : r.get, n = e && "isReactWarning" in e && e.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
|
|
110
|
-
}
|
|
111
|
-
const he = ce(
|
|
112
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
113
|
-
{
|
|
114
|
-
variants: {
|
|
115
|
-
variant: {
|
|
116
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
117
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
118
|
-
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
119
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
120
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
121
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
122
|
-
styled: "bg-gradient-to-r from-slate-900 to-purple-700 hover:from-slate-800 hover:to-purple-600 text-white shadow-lg shadow-purple-500/25 px-6 h-12"
|
|
123
|
-
},
|
|
124
|
-
size: {
|
|
125
|
-
default: "h-10 px-4 py-2",
|
|
126
|
-
sm: "h-9 rounded-md px-3",
|
|
127
|
-
lg: "h-11 rounded-md px-8",
|
|
128
|
-
icon: "h-10 w-10"
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
defaultVariants: {
|
|
132
|
-
variant: "default",
|
|
133
|
-
size: "default"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
), ge = g.forwardRef(({ className: t, variant: e, size: n, asChild: o = !1, ...r }, i) => /* @__PURE__ */ nt(o ? fe : "button", { className: oe(he({ variant: e, size: n, className: t })), ref: i, ...r }));
|
|
137
|
-
ge.displayName = "Button";
|
|
138
|
-
function On(t, e, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
139
|
-
return function(r) {
|
|
140
|
-
if (t == null || t(r), n === !1 || !r.defaultPrevented)
|
|
141
|
-
return e == null ? void 0 : e(r);
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
function En(t, e = []) {
|
|
60
|
+
function Rn(t, e = []) {
|
|
145
61
|
let n = [];
|
|
146
62
|
function o(i, s) {
|
|
147
63
|
const c = g.createContext(s), a = n.length;
|
|
@@ -171,9 +87,9 @@ function En(t, e = []) {
|
|
|
171
87
|
);
|
|
172
88
|
};
|
|
173
89
|
};
|
|
174
|
-
return r.scopeName = t, [o,
|
|
90
|
+
return r.scopeName = t, [o, ce(r, ...e)];
|
|
175
91
|
}
|
|
176
|
-
function
|
|
92
|
+
function ce(...t) {
|
|
177
93
|
const e = t[0];
|
|
178
94
|
if (t.length === 1) return e;
|
|
179
95
|
const n = () => {
|
|
@@ -191,34 +107,22 @@ function pe(...t) {
|
|
|
191
107
|
};
|
|
192
108
|
return n.scopeName = e.scopeName, n;
|
|
193
109
|
}
|
|
194
|
-
function
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
var o;
|
|
200
|
-
return (o = e.current) == null ? void 0 : o.call(e, ...n);
|
|
201
|
-
}, []);
|
|
202
|
-
}
|
|
203
|
-
function Pn(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
204
|
-
const n = we(t);
|
|
205
|
-
g.useEffect(() => {
|
|
206
|
-
const o = (r) => {
|
|
207
|
-
r.key === "Escape" && n(r);
|
|
208
|
-
};
|
|
209
|
-
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
210
|
-
}, [n, e]);
|
|
110
|
+
function Sn(t, e, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
111
|
+
return function(r) {
|
|
112
|
+
if (t == null || t(r), n === !1 || !r.defaultPrevented)
|
|
113
|
+
return e == null ? void 0 : e(r);
|
|
114
|
+
};
|
|
211
115
|
}
|
|
212
116
|
var bt = globalThis != null && globalThis.document ? g.useLayoutEffect : () => {
|
|
213
|
-
},
|
|
214
|
-
function
|
|
117
|
+
}, le = g[" useInsertionEffect ".trim().toString()] || bt;
|
|
118
|
+
function Cn({
|
|
215
119
|
prop: t,
|
|
216
120
|
defaultProp: e,
|
|
217
121
|
onChange: n = () => {
|
|
218
122
|
},
|
|
219
123
|
caller: o
|
|
220
124
|
}) {
|
|
221
|
-
const [r, i, s] =
|
|
125
|
+
const [r, i, s] = fe({
|
|
222
126
|
defaultProp: e,
|
|
223
127
|
onChange: n
|
|
224
128
|
}), c = t !== void 0, a = c ? t : r;
|
|
@@ -235,7 +139,7 @@ function Ln({
|
|
|
235
139
|
(l) => {
|
|
236
140
|
var u;
|
|
237
141
|
if (c) {
|
|
238
|
-
const d =
|
|
142
|
+
const d = ae(l) ? l(t) : l;
|
|
239
143
|
d !== t && ((u = s.current) == null || u.call(s, d));
|
|
240
144
|
} else
|
|
241
145
|
i(l);
|
|
@@ -244,47 +148,157 @@ function Ln({
|
|
|
244
148
|
);
|
|
245
149
|
return [a, f];
|
|
246
150
|
}
|
|
247
|
-
function
|
|
151
|
+
function fe({
|
|
248
152
|
defaultProp: t,
|
|
249
153
|
onChange: e
|
|
250
154
|
}) {
|
|
251
155
|
const [n, o] = g.useState(t), r = g.useRef(n), i = g.useRef(e);
|
|
252
|
-
return
|
|
156
|
+
return le(() => {
|
|
253
157
|
i.current = e;
|
|
254
158
|
}, [e]), g.useEffect(() => {
|
|
255
159
|
var s;
|
|
256
160
|
r.current !== n && ((s = i.current) == null || s.call(i, n), r.current = n);
|
|
257
161
|
}, [n, r]), [n, o, i];
|
|
258
162
|
}
|
|
259
|
-
function
|
|
163
|
+
function ae(t) {
|
|
260
164
|
return typeof t == "function";
|
|
261
165
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
166
|
+
function An(t) {
|
|
167
|
+
const [e, n] = g.useState(void 0);
|
|
168
|
+
return bt(() => {
|
|
169
|
+
if (t) {
|
|
170
|
+
n({ width: t.offsetWidth, height: t.offsetHeight });
|
|
171
|
+
const o = new ResizeObserver((r) => {
|
|
172
|
+
if (!Array.isArray(r) || !r.length)
|
|
173
|
+
return;
|
|
174
|
+
const i = r[0];
|
|
175
|
+
let s, c;
|
|
176
|
+
if ("borderBoxSize" in i) {
|
|
177
|
+
const a = i.borderBoxSize, f = Array.isArray(a) ? a[0] : a;
|
|
178
|
+
s = f.inlineSize, c = f.blockSize;
|
|
179
|
+
} else
|
|
180
|
+
s = t.offsetWidth, c = t.offsetHeight;
|
|
181
|
+
n({ width: s, height: c });
|
|
182
|
+
});
|
|
183
|
+
return o.observe(t, { box: "border-box" }), () => o.unobserve(t);
|
|
184
|
+
} else
|
|
185
|
+
n(void 0);
|
|
186
|
+
}, [t]), e;
|
|
187
|
+
}
|
|
188
|
+
// @__NO_SIDE_EFFECTS__
|
|
189
|
+
function ue(t) {
|
|
190
|
+
const e = /* @__PURE__ */ me(t), n = g.forwardRef((o, r) => {
|
|
191
|
+
const { children: i, ...s } = o, c = g.Children.toArray(i), a = c.find(he);
|
|
192
|
+
if (a) {
|
|
193
|
+
const f = a.props.children, l = c.map((u) => u === a ? g.Children.count(f) > 1 ? g.Children.only(null) : g.isValidElement(f) ? f.props.children : null : u);
|
|
194
|
+
return /* @__PURE__ */ nt(e, { ...s, ref: r, children: g.isValidElement(f) ? g.cloneElement(f, void 0, l) : null });
|
|
195
|
+
}
|
|
196
|
+
return /* @__PURE__ */ nt(e, { ...s, ref: r, children: i });
|
|
197
|
+
});
|
|
198
|
+
return n.displayName = `${t}.Slot`, n;
|
|
199
|
+
}
|
|
200
|
+
var de = /* @__PURE__ */ ue("Slot");
|
|
201
|
+
// @__NO_SIDE_EFFECTS__
|
|
202
|
+
function me(t) {
|
|
203
|
+
const e = g.forwardRef((n, o) => {
|
|
204
|
+
const { children: r, ...i } = n;
|
|
205
|
+
if (g.isValidElement(r)) {
|
|
206
|
+
const s = pe(r), c = ge(i, r.props);
|
|
207
|
+
return r.type !== g.Fragment && (c.ref = o ? It(o, s) : s), g.cloneElement(r, c);
|
|
208
|
+
}
|
|
209
|
+
return g.Children.count(r) > 1 ? g.Children.only(null) : null;
|
|
210
|
+
});
|
|
211
|
+
return e.displayName = `${t}.SlotClone`, e;
|
|
212
|
+
}
|
|
213
|
+
var jt = Symbol("radix.slottable");
|
|
214
|
+
// @__NO_SIDE_EFFECTS__
|
|
215
|
+
function On(t) {
|
|
216
|
+
const e = ({ children: n }) => /* @__PURE__ */ nt(ne, { children: n });
|
|
217
|
+
return e.displayName = `${t}.Slottable`, e.__radixId = jt, e;
|
|
218
|
+
}
|
|
219
|
+
function he(t) {
|
|
220
|
+
return g.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === jt;
|
|
221
|
+
}
|
|
222
|
+
function ge(t, e) {
|
|
223
|
+
const n = { ...e };
|
|
224
|
+
for (const o in e) {
|
|
225
|
+
const r = t[o], i = e[o];
|
|
226
|
+
/^on[A-Z]/.test(o) ? r && i ? n[o] = (...c) => {
|
|
227
|
+
const a = i(...c);
|
|
228
|
+
return r(...c), a;
|
|
229
|
+
} : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...i } : o === "className" && (n[o] = [r, i].filter(Boolean).join(" "));
|
|
230
|
+
}
|
|
231
|
+
return { ...t, ...n };
|
|
232
|
+
}
|
|
233
|
+
function pe(t) {
|
|
234
|
+
var o, r;
|
|
235
|
+
let e = (o = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : o.get, n = e && "isReactWarning" in e && e.isReactWarning;
|
|
236
|
+
return n ? t.ref : (e = (r = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : r.get, n = e && "isReactWarning" in e && e.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);
|
|
237
|
+
}
|
|
238
|
+
const we = se(
|
|
239
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
240
|
+
{
|
|
241
|
+
variants: {
|
|
242
|
+
variant: {
|
|
243
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
244
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
245
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
246
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
247
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
248
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
249
|
+
styled: "bg-gradient-to-r from-slate-900 to-purple-700 hover:from-slate-800 hover:to-purple-600 text-white shadow-lg shadow-purple-500/25 px-6 h-12"
|
|
250
|
+
},
|
|
251
|
+
size: {
|
|
252
|
+
default: "h-10 px-4 py-2",
|
|
253
|
+
sm: "h-9 rounded-md px-3",
|
|
254
|
+
lg: "h-11 rounded-md px-8",
|
|
255
|
+
icon: "h-10 w-10"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
defaultVariants: {
|
|
259
|
+
variant: "default",
|
|
260
|
+
size: "default"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
), ye = g.forwardRef(({ className: t, variant: e, size: n, asChild: o = !1, ...r }, i) => /* @__PURE__ */ nt(o ? de : "button", { className: re(we({ variant: e, size: n, className: t })), ref: i, ...r }));
|
|
264
|
+
ye.displayName = "Button";
|
|
265
|
+
function xe(t) {
|
|
266
|
+
const e = g.useRef(t);
|
|
267
|
+
return g.useEffect(() => {
|
|
268
|
+
e.current = t;
|
|
269
|
+
}), g.useMemo(() => (...n) => {
|
|
270
|
+
var o;
|
|
271
|
+
return (o = e.current) == null ? void 0 : o.call(e, ...n);
|
|
272
|
+
}, []);
|
|
273
|
+
}
|
|
274
|
+
function En(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
275
|
+
const n = xe(t);
|
|
276
|
+
g.useEffect(() => {
|
|
277
|
+
const o = (r) => {
|
|
278
|
+
r.key === "Escape" && n(r);
|
|
279
|
+
};
|
|
280
|
+
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
281
|
+
}, [n, e]);
|
|
282
|
+
}
|
|
283
|
+
var ve = g[" useId ".trim().toString()] || (() => {
|
|
284
|
+
}), be = 0;
|
|
285
|
+
function Pn(t) {
|
|
286
|
+
const [e, n] = g.useState(ve());
|
|
273
287
|
return bt(() => {
|
|
274
|
-
n((o) => o ?? String(
|
|
288
|
+
n((o) => o ?? String(be++));
|
|
275
289
|
}, [t]), e ? `radix-${e}` : "";
|
|
276
290
|
}
|
|
277
|
-
const
|
|
291
|
+
const Re = ["top", "right", "bottom", "left"], Y = Math.min, $ = Math.max, ct = Math.round, it = Math.floor, I = (t) => ({
|
|
278
292
|
x: t,
|
|
279
293
|
y: t
|
|
280
|
-
}),
|
|
294
|
+
}), Se = {
|
|
281
295
|
left: "right",
|
|
282
296
|
right: "left",
|
|
283
297
|
bottom: "top",
|
|
284
298
|
top: "bottom"
|
|
285
299
|
};
|
|
286
300
|
function yt(t, e, n) {
|
|
287
|
-
return $(t,
|
|
301
|
+
return $(t, Y(e, n));
|
|
288
302
|
}
|
|
289
303
|
function H(t, e) {
|
|
290
304
|
return typeof t == "function" ? t(e) : t;
|
|
@@ -308,42 +322,42 @@ function z(t) {
|
|
|
308
322
|
function Ct(t) {
|
|
309
323
|
return Rt(z(t));
|
|
310
324
|
}
|
|
311
|
-
function
|
|
325
|
+
function Ce(t, e, n) {
|
|
312
326
|
n === void 0 && (n = !1);
|
|
313
327
|
const o = tt(t), r = Ct(t), i = St(r);
|
|
314
328
|
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
315
329
|
return e.reference[i] > e.floating[i] && (s = lt(s)), [s, lt(s)];
|
|
316
330
|
}
|
|
317
|
-
function
|
|
331
|
+
function Ae(t) {
|
|
318
332
|
const e = lt(t);
|
|
319
333
|
return [xt(t), e, xt(e)];
|
|
320
334
|
}
|
|
321
335
|
function xt(t) {
|
|
322
336
|
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
323
337
|
}
|
|
324
|
-
const Tt = ["left", "right"], Mt = ["right", "left"],
|
|
325
|
-
function
|
|
338
|
+
const Tt = ["left", "right"], Mt = ["right", "left"], Oe = ["top", "bottom"], Ee = ["bottom", "top"];
|
|
339
|
+
function Pe(t, e, n) {
|
|
326
340
|
switch (t) {
|
|
327
341
|
case "top":
|
|
328
342
|
case "bottom":
|
|
329
343
|
return n ? e ? Mt : Tt : e ? Tt : Mt;
|
|
330
344
|
case "left":
|
|
331
345
|
case "right":
|
|
332
|
-
return e ?
|
|
346
|
+
return e ? Oe : Ee;
|
|
333
347
|
default:
|
|
334
348
|
return [];
|
|
335
349
|
}
|
|
336
350
|
}
|
|
337
|
-
function
|
|
351
|
+
function Le(t, e, n, o) {
|
|
338
352
|
const r = tt(t);
|
|
339
|
-
let i =
|
|
353
|
+
let i = Pe(X(t), n === "start", o);
|
|
340
354
|
return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(xt)))), i;
|
|
341
355
|
}
|
|
342
356
|
function lt(t) {
|
|
343
357
|
const e = X(t);
|
|
344
|
-
return
|
|
358
|
+
return Se[e] + t.slice(e.length);
|
|
345
359
|
}
|
|
346
|
-
function
|
|
360
|
+
function De(t) {
|
|
347
361
|
return {
|
|
348
362
|
top: 0,
|
|
349
363
|
right: 0,
|
|
@@ -353,7 +367,7 @@ function Me(t) {
|
|
|
353
367
|
};
|
|
354
368
|
}
|
|
355
369
|
function Ht(t) {
|
|
356
|
-
return typeof t != "number" ?
|
|
370
|
+
return typeof t != "number" ? De(t) : {
|
|
357
371
|
top: t,
|
|
358
372
|
right: t,
|
|
359
373
|
bottom: t,
|
|
@@ -426,7 +440,7 @@ function kt(t, e, n) {
|
|
|
426
440
|
}
|
|
427
441
|
return m;
|
|
428
442
|
}
|
|
429
|
-
async function
|
|
443
|
+
async function Te(t, e) {
|
|
430
444
|
var n;
|
|
431
445
|
e === void 0 && (e = {});
|
|
432
446
|
const {
|
|
@@ -471,7 +485,7 @@ async function ke(t, e) {
|
|
|
471
485
|
right: (R.right - y.right + h.right) / x.x
|
|
472
486
|
};
|
|
473
487
|
}
|
|
474
|
-
const
|
|
488
|
+
const Me = 50, ke = async (t, e, n) => {
|
|
475
489
|
const {
|
|
476
490
|
placement: o = "bottom",
|
|
477
491
|
strategy: r = "absolute",
|
|
@@ -479,7 +493,7 @@ const $e = 50, _e = async (t, e, n) => {
|
|
|
479
493
|
platform: s
|
|
480
494
|
} = n, c = s.detectOverflow ? s : {
|
|
481
495
|
...s,
|
|
482
|
-
detectOverflow:
|
|
496
|
+
detectOverflow: Te
|
|
483
497
|
}, a = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
484
498
|
let f = await s.getElementRects({
|
|
485
499
|
reference: t,
|
|
@@ -519,7 +533,7 @@ const $e = 50, _e = async (t, e, n) => {
|
|
|
519
533
|
l = v ?? l, u = x ?? u, h[y] = {
|
|
520
534
|
...h[y],
|
|
521
535
|
...R
|
|
522
|
-
}, S && m <
|
|
536
|
+
}, S && m < Me && (m++, typeof S == "object" && (S.placement && (d = S.placement), S.rects && (f = S.rects === !0 ? await s.getElementRects({
|
|
523
537
|
reference: t,
|
|
524
538
|
floating: e,
|
|
525
539
|
strategy: r
|
|
@@ -535,7 +549,7 @@ const $e = 50, _e = async (t, e, n) => {
|
|
|
535
549
|
strategy: r,
|
|
536
550
|
middlewareData: h
|
|
537
551
|
};
|
|
538
|
-
},
|
|
552
|
+
}, $e = (t) => ({
|
|
539
553
|
name: "arrow",
|
|
540
554
|
options: t,
|
|
541
555
|
async fn(e) {
|
|
@@ -559,7 +573,7 @@ const $e = 50, _e = async (t, e, n) => {
|
|
|
559
573
|
}, m = Ct(r), h = St(m), p = await s.getDimensions(f), w = m === "y", y = w ? "top" : "left", b = w ? "bottom" : "right", v = w ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[m] - d[m] - i.floating[h], R = d[m] - i.reference[m], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
|
|
560
574
|
let A = S ? S[v] : 0;
|
|
561
575
|
(!A || !await (s.isElement == null ? void 0 : s.isElement(S))) && (A = c.floating[v] || i.floating[h]);
|
|
562
|
-
const L = x / 2 - R / 2,
|
|
576
|
+
const L = x / 2 - R / 2, F = A / 2 - p[h] / 2 - 1, P = Y(u[y], F), N = Y(u[b], F), M = P, D = A - p[h] - N, O = A / 2 - p[h] / 2 + L, B = yt(M, O, D), E = !a.arrow && tt(r) != null && O !== B && i.reference[h] / 2 - (O < M ? P : N) - p[h] / 2 < 0, T = E ? O < M ? O - M : O - D : 0;
|
|
563
577
|
return {
|
|
564
578
|
[m]: d[m] + T,
|
|
565
579
|
data: {
|
|
@@ -572,7 +586,7 @@ const $e = 50, _e = async (t, e, n) => {
|
|
|
572
586
|
reset: E
|
|
573
587
|
};
|
|
574
588
|
}
|
|
575
|
-
}),
|
|
589
|
+
}), _e = function(t) {
|
|
576
590
|
return t === void 0 && (t = {}), {
|
|
577
591
|
name: "flip",
|
|
578
592
|
options: t,
|
|
@@ -596,20 +610,20 @@ const $e = 50, _e = async (t, e, n) => {
|
|
|
596
610
|
} = H(t, e);
|
|
597
611
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
598
612
|
return {};
|
|
599
|
-
const y = X(r), b = z(c), v = X(c) === c, x = await (a.isRTL == null ? void 0 : a.isRTL(f.floating)), R = d || (v || !p ? [lt(c)] :
|
|
600
|
-
!d && S && R.push(...
|
|
601
|
-
const A = [c, ...R], L = await a.detectOverflow(e, w),
|
|
613
|
+
const y = X(r), b = z(c), v = X(c) === c, x = await (a.isRTL == null ? void 0 : a.isRTL(f.floating)), R = d || (v || !p ? [lt(c)] : Ae(c)), S = h !== "none";
|
|
614
|
+
!d && S && R.push(...Le(c, p, h, x));
|
|
615
|
+
const A = [c, ...R], L = await a.detectOverflow(e, w), F = [];
|
|
602
616
|
let P = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
603
|
-
if (l &&
|
|
604
|
-
const O =
|
|
605
|
-
|
|
617
|
+
if (l && F.push(L[y]), u) {
|
|
618
|
+
const O = Ce(r, s, x);
|
|
619
|
+
F.push(L[O[0]], L[O[1]]);
|
|
606
620
|
}
|
|
607
621
|
if (P = [...P, {
|
|
608
622
|
placement: r,
|
|
609
|
-
overflows:
|
|
610
|
-
}], !
|
|
611
|
-
var
|
|
612
|
-
const O = (((
|
|
623
|
+
overflows: F
|
|
624
|
+
}], !F.every((O) => O <= 0)) {
|
|
625
|
+
var N, M;
|
|
626
|
+
const O = (((N = i.flip) == null ? void 0 : N.index) || 0) + 1, B = A[O];
|
|
613
627
|
if (B && (!(u === "alignment" ? b !== z(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
614
628
|
// overflows the main axis.
|
|
615
629
|
P.every((C) => z(C.placement) === b ? C.overflows[0] > 0 : !0)))
|
|
@@ -635,7 +649,7 @@ const $e = 50, _e = async (t, e, n) => {
|
|
|
635
649
|
k === "y";
|
|
636
650
|
}
|
|
637
651
|
return !0;
|
|
638
|
-
}).map((C) => [C.placement, C.overflows.filter((k) => k > 0).reduce((k,
|
|
652
|
+
}).map((C) => [C.placement, C.overflows.filter((k) => k > 0).reduce((k, U) => k + U, 0)]).sort((C, k) => C[1] - k[1])[0]) == null ? void 0 : D[0];
|
|
639
653
|
T && (E = T);
|
|
640
654
|
break;
|
|
641
655
|
}
|
|
@@ -663,9 +677,9 @@ function $t(t, e) {
|
|
|
663
677
|
};
|
|
664
678
|
}
|
|
665
679
|
function _t(t) {
|
|
666
|
-
return
|
|
680
|
+
return Re.some((e) => t[e] >= 0);
|
|
667
681
|
}
|
|
668
|
-
const
|
|
682
|
+
const Fe = function(t) {
|
|
669
683
|
return t === void 0 && (t = {}), {
|
|
670
684
|
name: "hide",
|
|
671
685
|
options: t,
|
|
@@ -708,7 +722,7 @@ const We = function(t) {
|
|
|
708
722
|
}
|
|
709
723
|
};
|
|
710
724
|
}, Xt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
711
|
-
async function
|
|
725
|
+
async function Ne(t, e) {
|
|
712
726
|
const {
|
|
713
727
|
placement: n,
|
|
714
728
|
platform: o,
|
|
@@ -735,7 +749,7 @@ async function Ve(t, e) {
|
|
|
735
749
|
y: m * l
|
|
736
750
|
};
|
|
737
751
|
}
|
|
738
|
-
const
|
|
752
|
+
const We = function(t) {
|
|
739
753
|
return t === void 0 && (t = 0), {
|
|
740
754
|
name: "offset",
|
|
741
755
|
options: t,
|
|
@@ -746,7 +760,7 @@ const Be = function(t) {
|
|
|
746
760
|
y: i,
|
|
747
761
|
placement: s,
|
|
748
762
|
middlewareData: c
|
|
749
|
-
} = e, a = await
|
|
763
|
+
} = e, a = await Ne(e, t);
|
|
750
764
|
return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
751
765
|
x: r + a.x,
|
|
752
766
|
y: i + a.y,
|
|
@@ -757,7 +771,7 @@ const Be = function(t) {
|
|
|
757
771
|
};
|
|
758
772
|
}
|
|
759
773
|
};
|
|
760
|
-
},
|
|
774
|
+
}, Ve = function(t) {
|
|
761
775
|
return t === void 0 && (t = {}), {
|
|
762
776
|
name: "shift",
|
|
763
777
|
options: t,
|
|
@@ -814,7 +828,7 @@ const Be = function(t) {
|
|
|
814
828
|
};
|
|
815
829
|
}
|
|
816
830
|
};
|
|
817
|
-
},
|
|
831
|
+
}, Be = function(t) {
|
|
818
832
|
return t === void 0 && (t = {}), {
|
|
819
833
|
options: t,
|
|
820
834
|
fn(e) {
|
|
@@ -856,7 +870,7 @@ const Be = function(t) {
|
|
|
856
870
|
};
|
|
857
871
|
}
|
|
858
872
|
};
|
|
859
|
-
},
|
|
873
|
+
}, ze = function(t) {
|
|
860
874
|
return t === void 0 && (t = {}), {
|
|
861
875
|
name: "size",
|
|
862
876
|
options: t,
|
|
@@ -877,19 +891,19 @@ const Be = function(t) {
|
|
|
877
891
|
} = i.floating;
|
|
878
892
|
let w, y;
|
|
879
893
|
u === "top" || u === "bottom" ? (w = u, y = d === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = u, w = d === "end" ? "top" : "bottom");
|
|
880
|
-
const b = p - l.top - l.bottom, v = h - l.left - l.right, x =
|
|
894
|
+
const b = p - l.top - l.bottom, v = h - l.left - l.right, x = Y(p - l[w], b), R = Y(h - l[y], v), S = !e.middlewareData.shift;
|
|
881
895
|
let A = x, L = R;
|
|
882
896
|
if ((n = e.middlewareData.shift) != null && n.enabled.x && (L = v), (o = e.middlewareData.shift) != null && o.enabled.y && (A = b), S && !d) {
|
|
883
|
-
const P = $(l.left, 0),
|
|
884
|
-
m ? L = h - 2 * (P !== 0 ||
|
|
897
|
+
const P = $(l.left, 0), N = $(l.right, 0), M = $(l.top, 0), D = $(l.bottom, 0);
|
|
898
|
+
m ? L = h - 2 * (P !== 0 || N !== 0 ? P + N : $(l.left, l.right)) : A = p - 2 * (M !== 0 || D !== 0 ? M + D : $(l.top, l.bottom));
|
|
885
899
|
}
|
|
886
900
|
await a({
|
|
887
901
|
...e,
|
|
888
902
|
availableWidth: L,
|
|
889
903
|
availableHeight: A
|
|
890
904
|
});
|
|
891
|
-
const
|
|
892
|
-
return h !==
|
|
905
|
+
const F = await s.getDimensions(c.floating);
|
|
906
|
+
return h !== F.width || p !== F.height ? {
|
|
893
907
|
reset: {
|
|
894
908
|
rects: !0
|
|
895
909
|
}
|
|
@@ -901,7 +915,7 @@ function ut() {
|
|
|
901
915
|
return typeof window < "u";
|
|
902
916
|
}
|
|
903
917
|
function et(t) {
|
|
904
|
-
return
|
|
918
|
+
return Kt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
905
919
|
}
|
|
906
920
|
function _(t) {
|
|
907
921
|
var e;
|
|
@@ -909,18 +923,18 @@ function _(t) {
|
|
|
909
923
|
}
|
|
910
924
|
function j(t) {
|
|
911
925
|
var e;
|
|
912
|
-
return (e = (
|
|
926
|
+
return (e = (Kt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
913
927
|
}
|
|
914
|
-
function
|
|
928
|
+
function Kt(t) {
|
|
915
929
|
return ut() ? t instanceof Node || t instanceof _(t).Node : !1;
|
|
916
930
|
}
|
|
917
931
|
function W(t) {
|
|
918
932
|
return ut() ? t instanceof Element || t instanceof _(t).Element : !1;
|
|
919
933
|
}
|
|
920
|
-
function
|
|
934
|
+
function K(t) {
|
|
921
935
|
return ut() ? t instanceof HTMLElement || t instanceof _(t).HTMLElement : !1;
|
|
922
936
|
}
|
|
923
|
-
function
|
|
937
|
+
function Ft(t) {
|
|
924
938
|
return !ut() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof _(t).ShadowRoot;
|
|
925
939
|
}
|
|
926
940
|
function rt(t) {
|
|
@@ -932,7 +946,7 @@ function rt(t) {
|
|
|
932
946
|
} = V(t);
|
|
933
947
|
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && r !== "inline" && r !== "contents";
|
|
934
948
|
}
|
|
935
|
-
function
|
|
949
|
+
function Ie(t) {
|
|
936
950
|
return /^(table|td|th)$/.test(et(t));
|
|
937
951
|
}
|
|
938
952
|
function dt(t) {
|
|
@@ -947,20 +961,20 @@ function dt(t) {
|
|
|
947
961
|
return !1;
|
|
948
962
|
}
|
|
949
963
|
}
|
|
950
|
-
const
|
|
964
|
+
const je = /transform|translate|scale|rotate|perspective|filter/, He = /paint|layout|strict|content/, Z = (t) => !!t && t !== "none";
|
|
951
965
|
let gt;
|
|
952
966
|
function At(t) {
|
|
953
967
|
const e = W(t) ? V(t) : t;
|
|
954
|
-
return Z(e.transform) || Z(e.translate) || Z(e.scale) || Z(e.rotate) || Z(e.perspective) || !Ot() && (Z(e.backdropFilter) || Z(e.filter)) ||
|
|
968
|
+
return Z(e.transform) || Z(e.translate) || Z(e.scale) || Z(e.rotate) || Z(e.perspective) || !Ot() && (Z(e.backdropFilter) || Z(e.filter)) || je.test(e.willChange || "") || He.test(e.contain || "");
|
|
955
969
|
}
|
|
956
|
-
function
|
|
957
|
-
let e =
|
|
958
|
-
for (;
|
|
970
|
+
function Xe(t) {
|
|
971
|
+
let e = q(t);
|
|
972
|
+
for (; K(e) && !Q(e); ) {
|
|
959
973
|
if (At(e))
|
|
960
974
|
return e;
|
|
961
975
|
if (dt(e))
|
|
962
976
|
return null;
|
|
963
|
-
e =
|
|
977
|
+
e = q(e);
|
|
964
978
|
}
|
|
965
979
|
return null;
|
|
966
980
|
}
|
|
@@ -982,26 +996,26 @@ function mt(t) {
|
|
|
982
996
|
scrollTop: t.scrollY
|
|
983
997
|
};
|
|
984
998
|
}
|
|
985
|
-
function
|
|
999
|
+
function q(t) {
|
|
986
1000
|
if (et(t) === "html")
|
|
987
1001
|
return t;
|
|
988
1002
|
const e = (
|
|
989
1003
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
990
1004
|
t.assignedSlot || // DOM Element detected.
|
|
991
1005
|
t.parentNode || // ShadowRoot detected.
|
|
992
|
-
|
|
1006
|
+
Ft(t) && t.host || // Fallback.
|
|
993
1007
|
j(t)
|
|
994
1008
|
);
|
|
995
|
-
return
|
|
1009
|
+
return Ft(e) ? e.host : e;
|
|
996
1010
|
}
|
|
997
|
-
function
|
|
998
|
-
const e =
|
|
999
|
-
return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
1011
|
+
function Ut(t) {
|
|
1012
|
+
const e = q(t);
|
|
1013
|
+
return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : K(e) && rt(e) ? e : Ut(e);
|
|
1000
1014
|
}
|
|
1001
1015
|
function ot(t, e, n) {
|
|
1002
1016
|
var o;
|
|
1003
1017
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
1004
|
-
const r =
|
|
1018
|
+
const r = Ut(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = _(r);
|
|
1005
1019
|
if (i) {
|
|
1006
1020
|
const c = vt(s);
|
|
1007
1021
|
return e.concat(s, s.visualViewport || [], rt(r) ? r : [], c && n ? ot(c) : []);
|
|
@@ -1011,10 +1025,10 @@ function ot(t, e, n) {
|
|
|
1011
1025
|
function vt(t) {
|
|
1012
1026
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
1013
1027
|
}
|
|
1014
|
-
function
|
|
1028
|
+
function Yt(t) {
|
|
1015
1029
|
const e = V(t);
|
|
1016
1030
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
1017
|
-
const r =
|
|
1031
|
+
const r = K(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = ct(n) !== i || ct(o) !== s;
|
|
1018
1032
|
return c && (n = i, o = s), {
|
|
1019
1033
|
width: n,
|
|
1020
1034
|
height: o,
|
|
@@ -1026,28 +1040,28 @@ function Et(t) {
|
|
|
1026
1040
|
}
|
|
1027
1041
|
function J(t) {
|
|
1028
1042
|
const e = Et(t);
|
|
1029
|
-
if (!
|
|
1043
|
+
if (!K(e))
|
|
1030
1044
|
return I(1);
|
|
1031
1045
|
const n = e.getBoundingClientRect(), {
|
|
1032
1046
|
width: o,
|
|
1033
1047
|
height: r,
|
|
1034
1048
|
$: i
|
|
1035
|
-
} =
|
|
1049
|
+
} = Yt(e);
|
|
1036
1050
|
let s = (i ? ct(n.width) : n.width) / o, c = (i ? ct(n.height) : n.height) / r;
|
|
1037
1051
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1038
1052
|
x: s,
|
|
1039
1053
|
y: c
|
|
1040
1054
|
};
|
|
1041
1055
|
}
|
|
1042
|
-
const
|
|
1043
|
-
function
|
|
1056
|
+
const Ke = /* @__PURE__ */ I(0);
|
|
1057
|
+
function qt(t) {
|
|
1044
1058
|
const e = _(t);
|
|
1045
|
-
return !Ot() || !e.visualViewport ?
|
|
1059
|
+
return !Ot() || !e.visualViewport ? Ke : {
|
|
1046
1060
|
x: e.visualViewport.offsetLeft,
|
|
1047
1061
|
y: e.visualViewport.offsetTop
|
|
1048
1062
|
};
|
|
1049
1063
|
}
|
|
1050
|
-
function
|
|
1064
|
+
function Ue(t, e, n) {
|
|
1051
1065
|
return e === void 0 && (e = !1), !n || e && n !== _(t) ? !1 : e;
|
|
1052
1066
|
}
|
|
1053
1067
|
function G(t, e, n, o) {
|
|
@@ -1055,7 +1069,7 @@ function G(t, e, n, o) {
|
|
|
1055
1069
|
const r = t.getBoundingClientRect(), i = Et(t);
|
|
1056
1070
|
let s = I(1);
|
|
1057
1071
|
e && (o ? W(o) && (s = J(o)) : s = J(t));
|
|
1058
|
-
const c =
|
|
1072
|
+
const c = Ue(i, n, o) ? qt(i) : I(0);
|
|
1059
1073
|
let a = (r.left + c.x) / s.x, f = (r.top + c.y) / s.y, l = r.width / s.x, u = r.height / s.y;
|
|
1060
1074
|
if (i) {
|
|
1061
1075
|
const d = _(i), m = o && W(o) ? _(o) : o;
|
|
@@ -1083,7 +1097,7 @@ function Zt(t, e) {
|
|
|
1083
1097
|
y: r
|
|
1084
1098
|
};
|
|
1085
1099
|
}
|
|
1086
|
-
function
|
|
1100
|
+
function Ye(t) {
|
|
1087
1101
|
let {
|
|
1088
1102
|
elements: e,
|
|
1089
1103
|
rect: n,
|
|
@@ -1097,7 +1111,7 @@ function Ze(t) {
|
|
|
1097
1111
|
scrollLeft: 0,
|
|
1098
1112
|
scrollTop: 0
|
|
1099
1113
|
}, f = I(1);
|
|
1100
|
-
const l = I(0), u =
|
|
1114
|
+
const l = I(0), u = K(o);
|
|
1101
1115
|
if ((u || !u && !i) && ((et(o) !== "body" || rt(s)) && (a = mt(o)), u)) {
|
|
1102
1116
|
const m = G(o);
|
|
1103
1117
|
f = J(o), l.x = m.x + o.clientLeft, l.y = m.y + o.clientTop;
|
|
@@ -1110,10 +1124,10 @@ function Ze(t) {
|
|
|
1110
1124
|
y: n.y * f.y - a.scrollTop * f.y + l.y + d.y
|
|
1111
1125
|
};
|
|
1112
1126
|
}
|
|
1113
|
-
function
|
|
1127
|
+
function qe(t) {
|
|
1114
1128
|
return Array.from(t.getClientRects());
|
|
1115
1129
|
}
|
|
1116
|
-
function
|
|
1130
|
+
function Ze(t) {
|
|
1117
1131
|
const e = j(t), n = mt(t), o = t.ownerDocument.body, r = $(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = $(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1118
1132
|
let s = -n.scrollLeft + ht(t);
|
|
1119
1133
|
const c = -n.scrollTop;
|
|
@@ -1124,8 +1138,8 @@ function Je(t) {
|
|
|
1124
1138
|
y: c
|
|
1125
1139
|
};
|
|
1126
1140
|
}
|
|
1127
|
-
const
|
|
1128
|
-
function
|
|
1141
|
+
const Nt = 25;
|
|
1142
|
+
function Ge(t, e) {
|
|
1129
1143
|
const n = _(t), o = j(t), r = n.visualViewport;
|
|
1130
1144
|
let i = o.clientWidth, s = o.clientHeight, c = 0, a = 0;
|
|
1131
1145
|
if (r) {
|
|
@@ -1136,8 +1150,8 @@ function Qe(t, e) {
|
|
|
1136
1150
|
const f = ht(o);
|
|
1137
1151
|
if (f <= 0) {
|
|
1138
1152
|
const l = o.ownerDocument, u = l.body, d = getComputedStyle(u), m = l.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - m);
|
|
1139
|
-
h <=
|
|
1140
|
-
} else f <=
|
|
1153
|
+
h <= Nt && (i -= h);
|
|
1154
|
+
} else f <= Nt && (i += f);
|
|
1141
1155
|
return {
|
|
1142
1156
|
width: i,
|
|
1143
1157
|
height: s,
|
|
@@ -1145,8 +1159,8 @@ function Qe(t, e) {
|
|
|
1145
1159
|
y: a
|
|
1146
1160
|
};
|
|
1147
1161
|
}
|
|
1148
|
-
function
|
|
1149
|
-
const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i =
|
|
1162
|
+
function Je(t, e) {
|
|
1163
|
+
const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = K(t) ? J(t) : I(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, a = r * i.x, f = o * i.y;
|
|
1150
1164
|
return {
|
|
1151
1165
|
width: s,
|
|
1152
1166
|
height: c,
|
|
@@ -1157,13 +1171,13 @@ function tn(t, e) {
|
|
|
1157
1171
|
function Wt(t, e, n) {
|
|
1158
1172
|
let o;
|
|
1159
1173
|
if (e === "viewport")
|
|
1160
|
-
o =
|
|
1174
|
+
o = Ge(t, n);
|
|
1161
1175
|
else if (e === "document")
|
|
1162
|
-
o =
|
|
1176
|
+
o = Ze(j(t));
|
|
1163
1177
|
else if (W(e))
|
|
1164
|
-
o =
|
|
1178
|
+
o = Je(e, n);
|
|
1165
1179
|
else {
|
|
1166
|
-
const r =
|
|
1180
|
+
const r = qt(t);
|
|
1167
1181
|
o = {
|
|
1168
1182
|
x: e.x - r.x,
|
|
1169
1183
|
y: e.y - r.y,
|
|
@@ -1174,34 +1188,34 @@ function Wt(t, e, n) {
|
|
|
1174
1188
|
return ft(o);
|
|
1175
1189
|
}
|
|
1176
1190
|
function Gt(t, e) {
|
|
1177
|
-
const n =
|
|
1191
|
+
const n = q(t);
|
|
1178
1192
|
return n === e || !W(n) || Q(n) ? !1 : V(n).position === "fixed" || Gt(n, e);
|
|
1179
1193
|
}
|
|
1180
|
-
function
|
|
1194
|
+
function Qe(t, e) {
|
|
1181
1195
|
const n = e.get(t);
|
|
1182
1196
|
if (n)
|
|
1183
1197
|
return n;
|
|
1184
1198
|
let o = ot(t, [], !1).filter((c) => W(c) && et(c) !== "body"), r = null;
|
|
1185
1199
|
const i = V(t).position === "fixed";
|
|
1186
|
-
let s = i ?
|
|
1200
|
+
let s = i ? q(t) : t;
|
|
1187
1201
|
for (; W(s) && !Q(s); ) {
|
|
1188
1202
|
const c = V(s), a = At(s);
|
|
1189
|
-
!a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || rt(s) && !a && Gt(t, s)) ? o = o.filter((l) => l !== s) : r = c, s =
|
|
1203
|
+
!a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || rt(s) && !a && Gt(t, s)) ? o = o.filter((l) => l !== s) : r = c, s = q(s);
|
|
1190
1204
|
}
|
|
1191
1205
|
return e.set(t, o), o;
|
|
1192
1206
|
}
|
|
1193
|
-
function
|
|
1207
|
+
function tn(t) {
|
|
1194
1208
|
let {
|
|
1195
1209
|
element: e,
|
|
1196
1210
|
boundary: n,
|
|
1197
1211
|
rootBoundary: o,
|
|
1198
1212
|
strategy: r
|
|
1199
1213
|
} = t;
|
|
1200
|
-
const s = [...n === "clippingAncestors" ? dt(e) ? [] :
|
|
1214
|
+
const s = [...n === "clippingAncestors" ? dt(e) ? [] : Qe(e, this._c) : [].concat(n), o], c = Wt(e, s[0], r);
|
|
1201
1215
|
let a = c.top, f = c.right, l = c.bottom, u = c.left;
|
|
1202
1216
|
for (let d = 1; d < s.length; d++) {
|
|
1203
1217
|
const m = Wt(e, s[d], r);
|
|
1204
|
-
a = $(m.top, a), f =
|
|
1218
|
+
a = $(m.top, a), f = Y(m.right, f), l = Y(m.bottom, l), u = $(m.left, u);
|
|
1205
1219
|
}
|
|
1206
1220
|
return {
|
|
1207
1221
|
width: f - u,
|
|
@@ -1210,18 +1224,18 @@ function nn(t) {
|
|
|
1210
1224
|
y: a
|
|
1211
1225
|
};
|
|
1212
1226
|
}
|
|
1213
|
-
function
|
|
1227
|
+
function en(t) {
|
|
1214
1228
|
const {
|
|
1215
1229
|
width: e,
|
|
1216
1230
|
height: n
|
|
1217
|
-
} =
|
|
1231
|
+
} = Yt(t);
|
|
1218
1232
|
return {
|
|
1219
1233
|
width: e,
|
|
1220
1234
|
height: n
|
|
1221
1235
|
};
|
|
1222
1236
|
}
|
|
1223
|
-
function
|
|
1224
|
-
const o =
|
|
1237
|
+
function nn(t, e, n) {
|
|
1238
|
+
const o = K(e), r = j(e), i = n === "fixed", s = G(t, !0, i, e);
|
|
1225
1239
|
let c = {
|
|
1226
1240
|
scrollLeft: 0,
|
|
1227
1241
|
scrollTop: 0
|
|
@@ -1248,7 +1262,7 @@ function pt(t) {
|
|
|
1248
1262
|
return V(t).position === "static";
|
|
1249
1263
|
}
|
|
1250
1264
|
function Vt(t, e) {
|
|
1251
|
-
if (!
|
|
1265
|
+
if (!K(t) || V(t).position === "fixed")
|
|
1252
1266
|
return null;
|
|
1253
1267
|
if (e)
|
|
1254
1268
|
return e(t);
|
|
@@ -1259,24 +1273,24 @@ function Jt(t, e) {
|
|
|
1259
1273
|
const n = _(t);
|
|
1260
1274
|
if (dt(t))
|
|
1261
1275
|
return n;
|
|
1262
|
-
if (!
|
|
1263
|
-
let r =
|
|
1276
|
+
if (!K(t)) {
|
|
1277
|
+
let r = q(t);
|
|
1264
1278
|
for (; r && !Q(r); ) {
|
|
1265
1279
|
if (W(r) && !pt(r))
|
|
1266
1280
|
return r;
|
|
1267
|
-
r =
|
|
1281
|
+
r = q(r);
|
|
1268
1282
|
}
|
|
1269
1283
|
return n;
|
|
1270
1284
|
}
|
|
1271
1285
|
let o = Vt(t, e);
|
|
1272
|
-
for (; o &&
|
|
1286
|
+
for (; o && Ie(o) && pt(o); )
|
|
1273
1287
|
o = Vt(o, e);
|
|
1274
|
-
return o && Q(o) && pt(o) && !At(o) ? n : o ||
|
|
1288
|
+
return o && Q(o) && pt(o) && !At(o) ? n : o || Xe(t) || n;
|
|
1275
1289
|
}
|
|
1276
|
-
const
|
|
1290
|
+
const on = async function(t) {
|
|
1277
1291
|
const e = this.getOffsetParent || Jt, n = this.getDimensions, o = await n(t.floating);
|
|
1278
1292
|
return {
|
|
1279
|
-
reference:
|
|
1293
|
+
reference: nn(t.reference, await e(t.floating), t.strategy),
|
|
1280
1294
|
floating: {
|
|
1281
1295
|
x: 0,
|
|
1282
1296
|
y: 0,
|
|
@@ -1285,25 +1299,25 @@ const sn = async function(t) {
|
|
|
1285
1299
|
}
|
|
1286
1300
|
};
|
|
1287
1301
|
};
|
|
1288
|
-
function
|
|
1302
|
+
function rn(t) {
|
|
1289
1303
|
return V(t).direction === "rtl";
|
|
1290
1304
|
}
|
|
1291
|
-
const
|
|
1292
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1305
|
+
const sn = {
|
|
1306
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ye,
|
|
1293
1307
|
getDocumentElement: j,
|
|
1294
|
-
getClippingRect:
|
|
1308
|
+
getClippingRect: tn,
|
|
1295
1309
|
getOffsetParent: Jt,
|
|
1296
|
-
getElementRects:
|
|
1297
|
-
getClientRects:
|
|
1298
|
-
getDimensions:
|
|
1310
|
+
getElementRects: on,
|
|
1311
|
+
getClientRects: qe,
|
|
1312
|
+
getDimensions: en,
|
|
1299
1313
|
getScale: J,
|
|
1300
1314
|
isElement: W,
|
|
1301
|
-
isRTL:
|
|
1315
|
+
isRTL: rn
|
|
1302
1316
|
};
|
|
1303
1317
|
function Qt(t, e) {
|
|
1304
1318
|
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
1305
1319
|
}
|
|
1306
|
-
function
|
|
1320
|
+
function cn(t, e) {
|
|
1307
1321
|
let n = null, o;
|
|
1308
1322
|
const r = j(t);
|
|
1309
1323
|
function i() {
|
|
@@ -1322,7 +1336,7 @@ function fn(t, e) {
|
|
|
1322
1336
|
return;
|
|
1323
1337
|
const h = it(u), p = it(r.clientWidth - (l + d)), w = it(r.clientHeight - (u + m)), y = it(l), v = {
|
|
1324
1338
|
rootMargin: -h + "px " + -p + "px " + -w + "px " + -y + "px",
|
|
1325
|
-
threshold: $(0,
|
|
1339
|
+
threshold: $(0, Y(1, a)) || 1
|
|
1326
1340
|
};
|
|
1327
1341
|
let x = !0;
|
|
1328
1342
|
function R(S) {
|
|
@@ -1349,7 +1363,7 @@ function fn(t, e) {
|
|
|
1349
1363
|
}
|
|
1350
1364
|
return s(!0), i;
|
|
1351
1365
|
}
|
|
1352
|
-
function
|
|
1366
|
+
function Ln(t, e, n, o) {
|
|
1353
1367
|
o === void 0 && (o = {});
|
|
1354
1368
|
const {
|
|
1355
1369
|
ancestorScroll: r = !0,
|
|
@@ -1363,7 +1377,7 @@ function Mn(t, e, n, o) {
|
|
|
1363
1377
|
passive: !0
|
|
1364
1378
|
}), i && y.addEventListener("resize", n);
|
|
1365
1379
|
});
|
|
1366
|
-
const u = f && c ?
|
|
1380
|
+
const u = f && c ? cn(f, n) : null;
|
|
1367
1381
|
let d = -1, m = null;
|
|
1368
1382
|
s && (m = new ResizeObserver((y) => {
|
|
1369
1383
|
let [b] = y;
|
|
@@ -1385,21 +1399,21 @@ function Mn(t, e, n, o) {
|
|
|
1385
1399
|
}), u == null || u(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(h);
|
|
1386
1400
|
};
|
|
1387
1401
|
}
|
|
1388
|
-
const
|
|
1402
|
+
const ln = We, fn = Ve, an = _e, un = ze, dn = Fe, Bt = $e, mn = Be, hn = (t, e, n) => {
|
|
1389
1403
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1390
|
-
platform:
|
|
1404
|
+
platform: sn,
|
|
1391
1405
|
...n
|
|
1392
1406
|
}, i = {
|
|
1393
1407
|
...r.platform,
|
|
1394
1408
|
_c: o
|
|
1395
1409
|
};
|
|
1396
|
-
return
|
|
1410
|
+
return ke(t, e, {
|
|
1397
1411
|
...r,
|
|
1398
1412
|
platform: i
|
|
1399
1413
|
});
|
|
1400
1414
|
};
|
|
1401
|
-
var
|
|
1402
|
-
}, st =
|
|
1415
|
+
var gn = typeof document < "u", pn = function() {
|
|
1416
|
+
}, st = gn ? ee : pn;
|
|
1403
1417
|
function at(t, e) {
|
|
1404
1418
|
if (t === e)
|
|
1405
1419
|
return !0;
|
|
@@ -1443,7 +1457,7 @@ function wt(t) {
|
|
|
1443
1457
|
e.current = t;
|
|
1444
1458
|
}), e;
|
|
1445
1459
|
}
|
|
1446
|
-
function
|
|
1460
|
+
function Dn(t) {
|
|
1447
1461
|
t === void 0 && (t = {});
|
|
1448
1462
|
const {
|
|
1449
1463
|
placement: e = "bottom",
|
|
@@ -1470,7 +1484,7 @@ function kn(t) {
|
|
|
1470
1484
|
C !== S.current && (S.current = C, p(C));
|
|
1471
1485
|
}, []), v = g.useCallback((C) => {
|
|
1472
1486
|
C !== A.current && (A.current = C, y(C));
|
|
1473
|
-
}, []), x = i || h, R = s || w, S = g.useRef(null), A = g.useRef(null), L = g.useRef(l),
|
|
1487
|
+
}, []), x = i || h, R = s || w, S = g.useRef(null), A = g.useRef(null), L = g.useRef(l), F = a != null, P = wt(a), N = wt(r), M = wt(f), D = g.useCallback(() => {
|
|
1474
1488
|
if (!S.current || !A.current)
|
|
1475
1489
|
return;
|
|
1476
1490
|
const C = {
|
|
@@ -1478,8 +1492,8 @@ function kn(t) {
|
|
|
1478
1492
|
strategy: n,
|
|
1479
1493
|
middleware: d
|
|
1480
1494
|
};
|
|
1481
|
-
|
|
1482
|
-
const
|
|
1495
|
+
N.current && (C.platform = N.current), hn(S.current, A.current, C).then((k) => {
|
|
1496
|
+
const U = {
|
|
1483
1497
|
...k,
|
|
1484
1498
|
// The floating element's position may be recomputed while it's closed
|
|
1485
1499
|
// but still mounted (such as when transitioning out). To ensure
|
|
@@ -1487,11 +1501,11 @@ function kn(t) {
|
|
|
1487
1501
|
// setting it to `true` when `open === false` (must be specified).
|
|
1488
1502
|
isPositioned: M.current !== !1
|
|
1489
1503
|
};
|
|
1490
|
-
O.current && !at(L.current,
|
|
1491
|
-
u(
|
|
1504
|
+
O.current && !at(L.current, U) && (L.current = U, ie.flushSync(() => {
|
|
1505
|
+
u(U);
|
|
1492
1506
|
}));
|
|
1493
1507
|
});
|
|
1494
|
-
}, [d, e, n,
|
|
1508
|
+
}, [d, e, n, N, M]);
|
|
1495
1509
|
st(() => {
|
|
1496
1510
|
f === !1 && L.current.isPositioned && (L.current.isPositioned = !1, u((C) => ({
|
|
1497
1511
|
...C,
|
|
@@ -1507,7 +1521,7 @@ function kn(t) {
|
|
|
1507
1521
|
return P.current(x, R, D);
|
|
1508
1522
|
D();
|
|
1509
1523
|
}
|
|
1510
|
-
}, [x, R, D, P,
|
|
1524
|
+
}, [x, R, D, P, F]);
|
|
1511
1525
|
const B = g.useMemo(() => ({
|
|
1512
1526
|
reference: S,
|
|
1513
1527
|
floating: A,
|
|
@@ -1524,17 +1538,17 @@ function kn(t) {
|
|
|
1524
1538
|
};
|
|
1525
1539
|
if (!E.floating)
|
|
1526
1540
|
return C;
|
|
1527
|
-
const k = zt(E.floating, l.x),
|
|
1541
|
+
const k = zt(E.floating, l.x), U = zt(E.floating, l.y);
|
|
1528
1542
|
return c ? {
|
|
1529
1543
|
...C,
|
|
1530
|
-
transform: "translate(" + k + "px, " +
|
|
1544
|
+
transform: "translate(" + k + "px, " + U + "px)",
|
|
1531
1545
|
...te(E.floating) >= 1.5 && {
|
|
1532
1546
|
willChange: "transform"
|
|
1533
1547
|
}
|
|
1534
1548
|
} : {
|
|
1535
1549
|
position: n,
|
|
1536
1550
|
left: k,
|
|
1537
|
-
top:
|
|
1551
|
+
top: U
|
|
1538
1552
|
};
|
|
1539
1553
|
}, [n, c, E.floating, l.x, l.y]);
|
|
1540
1554
|
return g.useMemo(() => ({
|
|
@@ -1545,7 +1559,7 @@ function kn(t) {
|
|
|
1545
1559
|
floatingStyles: T
|
|
1546
1560
|
}), [l, D, B, E, T]);
|
|
1547
1561
|
}
|
|
1548
|
-
const
|
|
1562
|
+
const wn = (t) => {
|
|
1549
1563
|
function e(n) {
|
|
1550
1564
|
return {}.hasOwnProperty.call(n, "current");
|
|
1551
1565
|
}
|
|
@@ -1566,97 +1580,75 @@ const xn = (t) => {
|
|
|
1566
1580
|
}).fn(n) : {};
|
|
1567
1581
|
}
|
|
1568
1582
|
};
|
|
1569
|
-
},
|
|
1570
|
-
const n =
|
|
1583
|
+
}, Tn = (t, e) => {
|
|
1584
|
+
const n = ln(t);
|
|
1571
1585
|
return {
|
|
1572
1586
|
name: n.name,
|
|
1573
1587
|
fn: n.fn,
|
|
1574
1588
|
options: [t, e]
|
|
1575
1589
|
};
|
|
1576
|
-
},
|
|
1577
|
-
const n =
|
|
1590
|
+
}, Mn = (t, e) => {
|
|
1591
|
+
const n = fn(t);
|
|
1578
1592
|
return {
|
|
1579
1593
|
name: n.name,
|
|
1580
1594
|
fn: n.fn,
|
|
1581
1595
|
options: [t, e]
|
|
1582
1596
|
};
|
|
1583
|
-
},
|
|
1584
|
-
fn:
|
|
1597
|
+
}, kn = (t, e) => ({
|
|
1598
|
+
fn: mn(t).fn,
|
|
1585
1599
|
options: [t, e]
|
|
1586
|
-
}),
|
|
1587
|
-
const n =
|
|
1600
|
+
}), $n = (t, e) => {
|
|
1601
|
+
const n = an(t);
|
|
1588
1602
|
return {
|
|
1589
1603
|
name: n.name,
|
|
1590
1604
|
fn: n.fn,
|
|
1591
1605
|
options: [t, e]
|
|
1592
1606
|
};
|
|
1593
|
-
},
|
|
1594
|
-
const n =
|
|
1607
|
+
}, _n = (t, e) => {
|
|
1608
|
+
const n = un(t);
|
|
1595
1609
|
return {
|
|
1596
1610
|
name: n.name,
|
|
1597
1611
|
fn: n.fn,
|
|
1598
1612
|
options: [t, e]
|
|
1599
1613
|
};
|
|
1600
|
-
},
|
|
1601
|
-
const n =
|
|
1614
|
+
}, Fn = (t, e) => {
|
|
1615
|
+
const n = dn(t);
|
|
1602
1616
|
return {
|
|
1603
1617
|
name: n.name,
|
|
1604
1618
|
fn: n.fn,
|
|
1605
1619
|
options: [t, e]
|
|
1606
1620
|
};
|
|
1607
|
-
},
|
|
1608
|
-
const n =
|
|
1621
|
+
}, Nn = (t, e) => {
|
|
1622
|
+
const n = wn(t);
|
|
1609
1623
|
return {
|
|
1610
1624
|
name: n.name,
|
|
1611
1625
|
fn: n.fn,
|
|
1612
1626
|
options: [t, e]
|
|
1613
1627
|
};
|
|
1614
1628
|
};
|
|
1615
|
-
function zn(t) {
|
|
1616
|
-
const [e, n] = g.useState(void 0);
|
|
1617
|
-
return bt(() => {
|
|
1618
|
-
if (t) {
|
|
1619
|
-
n({ width: t.offsetWidth, height: t.offsetHeight });
|
|
1620
|
-
const o = new ResizeObserver((r) => {
|
|
1621
|
-
if (!Array.isArray(r) || !r.length)
|
|
1622
|
-
return;
|
|
1623
|
-
const i = r[0];
|
|
1624
|
-
let s, c;
|
|
1625
|
-
if ("borderBoxSize" in i) {
|
|
1626
|
-
const a = i.borderBoxSize, f = Array.isArray(a) ? a[0] : a;
|
|
1627
|
-
s = f.inlineSize, c = f.blockSize;
|
|
1628
|
-
} else
|
|
1629
|
-
s = t.offsetWidth, c = t.offsetHeight;
|
|
1630
|
-
n({ width: s, height: c });
|
|
1631
|
-
});
|
|
1632
|
-
return o.observe(t, { box: "border-box" }), () => o.unobserve(t);
|
|
1633
|
-
} else
|
|
1634
|
-
n(void 0);
|
|
1635
|
-
}, [t]), e;
|
|
1636
|
-
}
|
|
1637
1629
|
export {
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1630
|
+
ye as B,
|
|
1631
|
+
bt as a,
|
|
1632
|
+
we as b,
|
|
1633
|
+
se as c,
|
|
1634
|
+
ue as d,
|
|
1635
|
+
Cn as e,
|
|
1636
|
+
Sn as f,
|
|
1637
|
+
An as g,
|
|
1638
|
+
Rn as h,
|
|
1639
|
+
En as i,
|
|
1640
|
+
xe as j,
|
|
1641
|
+
Dn as k,
|
|
1642
|
+
kn as l,
|
|
1643
|
+
$n as m,
|
|
1644
|
+
_n as n,
|
|
1645
|
+
Tn as o,
|
|
1646
|
+
Nn as p,
|
|
1647
|
+
Fn as q,
|
|
1648
|
+
Ln as r,
|
|
1649
|
+
Mn as s,
|
|
1650
|
+
On as t,
|
|
1651
|
+
bn as u,
|
|
1652
|
+
Pn as v,
|
|
1653
|
+
It as w
|
|
1662
1654
|
};
|