@rinzai/zen 0.0.16 → 0.1.1
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/badge/index.d.ts +9 -10
- package/dist/badge/index.d.ts.map +1 -1
- package/dist/button/index.d.ts +8 -8
- package/dist/button/index.d.ts.map +1 -1
- package/dist/collapse/index.d.ts +1 -2
- package/dist/collapse/index.d.ts.map +1 -1
- package/dist/dropdown/index.d.ts +2 -2
- package/dist/dropdown/index.d.ts.map +1 -1
- package/dist/icons/chevron-down.d.ts +1 -1
- package/dist/icons/chevron-up.d.ts +1 -1
- package/dist/icons/icon.types.d.ts +2 -3
- package/dist/icons/icon.types.d.ts.map +1 -1
- package/dist/icons/search.d.ts +1 -1
- package/dist/icons/x-mark.d.ts +1 -1
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2524 -0
- package/dist/input/index.d.ts +2 -3
- package/dist/input/index.d.ts.map +1 -1
- package/dist/popover/index.d.ts +1 -2
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/toggle/index.d.ts +2 -2
- package/dist/toggle/index.d.ts.map +1 -1
- package/dist/utils/cva.d.ts +4 -3
- package/dist/utils/cva.d.ts.map +1 -1
- package/dist/utils/cx.d.ts +1 -1
- package/dist/utils/cx.d.ts.map +1 -1
- package/dist/utils/useClickOutside.d.ts +1 -1
- package/dist/utils/useClickOutside.d.ts.map +1 -1
- package/dist/zen/index.d.ts +191 -0
- package/dist/zen/index.d.ts.map +1 -0
- package/package.json +87 -83
- package/dist/badge/index.stories.d.ts +0 -5
- package/dist/badge/index.stories.d.ts.map +0 -1
- package/dist/button/index.stories.d.ts +0 -4
- package/dist/button/index.stories.d.ts.map +0 -1
- package/dist/collapse/index.stories.d.ts +0 -4
- package/dist/collapse/index.stories.d.ts.map +0 -1
- package/dist/component/index.d.ts +0 -13
- package/dist/component/index.d.ts.map +0 -1
- package/dist/component/index.stories.d.ts +0 -25
- package/dist/component/index.stories.d.ts.map +0 -1
- package/dist/container/index.d.ts +0 -5
- package/dist/container/index.d.ts.map +0 -1
- package/dist/container/index.stories.d.ts +0 -5
- package/dist/container/index.stories.d.ts.map +0 -1
- package/dist/dropdown/index.stories.d.ts +0 -7
- package/dist/dropdown/index.stories.d.ts.map +0 -1
- package/dist/input/index.stories.d.ts +0 -4
- package/dist/input/index.stories.d.ts.map +0 -1
- package/dist/style.css +0 -1
- package/dist/toggle/index.stories.d.ts +0 -4
- package/dist/toggle/index.stories.d.ts.map +0 -1
- package/dist/zen.js +0 -2662
package/dist/zen.js
DELETED
|
@@ -1,2662 +0,0 @@
|
|
|
1
|
-
import * as M from "react";
|
|
2
|
-
import At, { forwardRef as Ze, useLayoutEffect as En, useEffect as Se, useState as Me, useId as Rn, useMemo as Xe, useRef as It } from "react";
|
|
3
|
-
import * as Cn from "react-dom";
|
|
4
|
-
import { createPortal as On, flushSync as Sn } from "react-dom";
|
|
5
|
-
var Je = { exports: {} }, ge = {};
|
|
6
|
-
/**
|
|
7
|
-
* @license React
|
|
8
|
-
* react-jsx-runtime.development.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
var wt;
|
|
16
|
-
function Tn() {
|
|
17
|
-
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
18
|
-
var t = At, r = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = Symbol.iterator, b = "@@iterator";
|
|
19
|
-
function R(i) {
|
|
20
|
-
if (i === null || typeof i != "object")
|
|
21
|
-
return null;
|
|
22
|
-
var f = h && i[h] || i[b];
|
|
23
|
-
return typeof f == "function" ? f : null;
|
|
24
|
-
}
|
|
25
|
-
var p = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
26
|
-
function y(i) {
|
|
27
|
-
{
|
|
28
|
-
for (var f = arguments.length, v = new Array(f > 1 ? f - 1 : 0), E = 1; E < f; E++)
|
|
29
|
-
v[E - 1] = arguments[E];
|
|
30
|
-
T("error", i, v);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function T(i, f, v) {
|
|
34
|
-
{
|
|
35
|
-
var E = p.ReactDebugCurrentFrame, _ = E.getStackAddendum();
|
|
36
|
-
_ !== "" && (f += "%s", v = v.concat([_]));
|
|
37
|
-
var k = v.map(function(S) {
|
|
38
|
-
return String(S);
|
|
39
|
-
});
|
|
40
|
-
k.unshift("Warning: " + f), Function.prototype.apply.call(console[i], console, k);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
var j = !1, O = !1, D = !1, z = !1, F = !1, Z;
|
|
44
|
-
Z = Symbol.for("react.module.reference");
|
|
45
|
-
function re(i) {
|
|
46
|
-
return !!(typeof i == "string" || typeof i == "function" || i === n || i === s || F || i === o || i === u || i === d || z || i === g || j || O || D || typeof i == "object" && i !== null && (i.$$typeof === x || i.$$typeof === m || i.$$typeof === a || i.$$typeof === l || i.$$typeof === c || // This needs to include all possible module reference object
|
|
47
|
-
// types supported by any Flight configuration anywhere since
|
|
48
|
-
// we don't know which Flight build this will end up being used
|
|
49
|
-
// with.
|
|
50
|
-
i.$$typeof === Z || i.getModuleId !== void 0));
|
|
51
|
-
}
|
|
52
|
-
function J(i, f, v) {
|
|
53
|
-
var E = i.displayName;
|
|
54
|
-
if (E)
|
|
55
|
-
return E;
|
|
56
|
-
var _ = f.displayName || f.name || "";
|
|
57
|
-
return _ !== "" ? v + "(" + _ + ")" : v;
|
|
58
|
-
}
|
|
59
|
-
function W(i) {
|
|
60
|
-
return i.displayName || "Context";
|
|
61
|
-
}
|
|
62
|
-
function L(i) {
|
|
63
|
-
if (i == null)
|
|
64
|
-
return null;
|
|
65
|
-
if (typeof i.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
|
|
66
|
-
return i.displayName || i.name || null;
|
|
67
|
-
if (typeof i == "string")
|
|
68
|
-
return i;
|
|
69
|
-
switch (i) {
|
|
70
|
-
case n:
|
|
71
|
-
return "Fragment";
|
|
72
|
-
case e:
|
|
73
|
-
return "Portal";
|
|
74
|
-
case s:
|
|
75
|
-
return "Profiler";
|
|
76
|
-
case o:
|
|
77
|
-
return "StrictMode";
|
|
78
|
-
case u:
|
|
79
|
-
return "Suspense";
|
|
80
|
-
case d:
|
|
81
|
-
return "SuspenseList";
|
|
82
|
-
}
|
|
83
|
-
if (typeof i == "object")
|
|
84
|
-
switch (i.$$typeof) {
|
|
85
|
-
case l:
|
|
86
|
-
var f = i;
|
|
87
|
-
return W(f) + ".Consumer";
|
|
88
|
-
case a:
|
|
89
|
-
var v = i;
|
|
90
|
-
return W(v._context) + ".Provider";
|
|
91
|
-
case c:
|
|
92
|
-
return J(i, i.render, "ForwardRef");
|
|
93
|
-
case m:
|
|
94
|
-
var E = i.displayName || null;
|
|
95
|
-
return E !== null ? E : L(i.type) || "Memo";
|
|
96
|
-
case x: {
|
|
97
|
-
var _ = i, k = _._payload, S = _._init;
|
|
98
|
-
try {
|
|
99
|
-
return L(S(k));
|
|
100
|
-
} catch {
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return null;
|
|
106
|
-
}
|
|
107
|
-
var I = Object.assign, V = 0, A, Y, X, nt, rt, ot, it;
|
|
108
|
-
function st() {
|
|
109
|
-
}
|
|
110
|
-
st.__reactDisabledLog = !0;
|
|
111
|
-
function Jt() {
|
|
112
|
-
{
|
|
113
|
-
if (V === 0) {
|
|
114
|
-
A = console.log, Y = console.info, X = console.warn, nt = console.error, rt = console.group, ot = console.groupCollapsed, it = console.groupEnd;
|
|
115
|
-
var i = {
|
|
116
|
-
configurable: !0,
|
|
117
|
-
enumerable: !0,
|
|
118
|
-
value: st,
|
|
119
|
-
writable: !0
|
|
120
|
-
};
|
|
121
|
-
Object.defineProperties(console, {
|
|
122
|
-
info: i,
|
|
123
|
-
log: i,
|
|
124
|
-
warn: i,
|
|
125
|
-
error: i,
|
|
126
|
-
group: i,
|
|
127
|
-
groupCollapsed: i,
|
|
128
|
-
groupEnd: i
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
V++;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
function Gt() {
|
|
135
|
-
{
|
|
136
|
-
if (V--, V === 0) {
|
|
137
|
-
var i = {
|
|
138
|
-
configurable: !0,
|
|
139
|
-
enumerable: !0,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
log: I({}, i, {
|
|
144
|
-
value: A
|
|
145
|
-
}),
|
|
146
|
-
info: I({}, i, {
|
|
147
|
-
value: Y
|
|
148
|
-
}),
|
|
149
|
-
warn: I({}, i, {
|
|
150
|
-
value: X
|
|
151
|
-
}),
|
|
152
|
-
error: I({}, i, {
|
|
153
|
-
value: nt
|
|
154
|
-
}),
|
|
155
|
-
group: I({}, i, {
|
|
156
|
-
value: rt
|
|
157
|
-
}),
|
|
158
|
-
groupCollapsed: I({}, i, {
|
|
159
|
-
value: ot
|
|
160
|
-
}),
|
|
161
|
-
groupEnd: I({}, i, {
|
|
162
|
-
value: it
|
|
163
|
-
})
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
V < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
var Ve = p.ReactCurrentDispatcher, $e;
|
|
170
|
-
function ye(i, f, v) {
|
|
171
|
-
{
|
|
172
|
-
if ($e === void 0)
|
|
173
|
-
try {
|
|
174
|
-
throw Error();
|
|
175
|
-
} catch (_) {
|
|
176
|
-
var E = _.stack.trim().match(/\n( *(at )?)/);
|
|
177
|
-
$e = E && E[1] || "";
|
|
178
|
-
}
|
|
179
|
-
return `
|
|
180
|
-
` + $e + i;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
var Be = !1, xe;
|
|
184
|
-
{
|
|
185
|
-
var Zt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
186
|
-
xe = new Zt();
|
|
187
|
-
}
|
|
188
|
-
function at(i, f) {
|
|
189
|
-
if (!i || Be)
|
|
190
|
-
return "";
|
|
191
|
-
{
|
|
192
|
-
var v = xe.get(i);
|
|
193
|
-
if (v !== void 0)
|
|
194
|
-
return v;
|
|
195
|
-
}
|
|
196
|
-
var E;
|
|
197
|
-
Be = !0;
|
|
198
|
-
var _ = Error.prepareStackTrace;
|
|
199
|
-
Error.prepareStackTrace = void 0;
|
|
200
|
-
var k;
|
|
201
|
-
k = Ve.current, Ve.current = null, Jt();
|
|
202
|
-
try {
|
|
203
|
-
if (f) {
|
|
204
|
-
var S = function() {
|
|
205
|
-
throw Error();
|
|
206
|
-
};
|
|
207
|
-
if (Object.defineProperty(S.prototype, "props", {
|
|
208
|
-
set: function() {
|
|
209
|
-
throw Error();
|
|
210
|
-
}
|
|
211
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
212
|
-
try {
|
|
213
|
-
Reflect.construct(S, []);
|
|
214
|
-
} catch (Q) {
|
|
215
|
-
E = Q;
|
|
216
|
-
}
|
|
217
|
-
Reflect.construct(i, [], S);
|
|
218
|
-
} else {
|
|
219
|
-
try {
|
|
220
|
-
S.call();
|
|
221
|
-
} catch (Q) {
|
|
222
|
-
E = Q;
|
|
223
|
-
}
|
|
224
|
-
i.call(S.prototype);
|
|
225
|
-
}
|
|
226
|
-
} else {
|
|
227
|
-
try {
|
|
228
|
-
throw Error();
|
|
229
|
-
} catch (Q) {
|
|
230
|
-
E = Q;
|
|
231
|
-
}
|
|
232
|
-
i();
|
|
233
|
-
}
|
|
234
|
-
} catch (Q) {
|
|
235
|
-
if (Q && E && typeof Q.stack == "string") {
|
|
236
|
-
for (var C = Q.stack.split(`
|
|
237
|
-
`), $ = E.stack.split(`
|
|
238
|
-
`), P = C.length - 1, N = $.length - 1; P >= 1 && N >= 0 && C[P] !== $[N]; )
|
|
239
|
-
N--;
|
|
240
|
-
for (; P >= 1 && N >= 0; P--, N--)
|
|
241
|
-
if (C[P] !== $[N]) {
|
|
242
|
-
if (P !== 1 || N !== 1)
|
|
243
|
-
do
|
|
244
|
-
if (P--, N--, N < 0 || C[P] !== $[N]) {
|
|
245
|
-
var H = `
|
|
246
|
-
` + C[P].replace(" at new ", " at ");
|
|
247
|
-
return i.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", i.displayName)), typeof i == "function" && xe.set(i, H), H;
|
|
248
|
-
}
|
|
249
|
-
while (P >= 1 && N >= 0);
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
} finally {
|
|
254
|
-
Be = !1, Ve.current = k, Gt(), Error.prepareStackTrace = _;
|
|
255
|
-
}
|
|
256
|
-
var ue = i ? i.displayName || i.name : "", xt = ue ? ye(ue) : "";
|
|
257
|
-
return typeof i == "function" && xe.set(i, xt), xt;
|
|
258
|
-
}
|
|
259
|
-
function Qt(i, f, v) {
|
|
260
|
-
return at(i, !1);
|
|
261
|
-
}
|
|
262
|
-
function en(i) {
|
|
263
|
-
var f = i.prototype;
|
|
264
|
-
return !!(f && f.isReactComponent);
|
|
265
|
-
}
|
|
266
|
-
function we(i, f, v) {
|
|
267
|
-
if (i == null)
|
|
268
|
-
return "";
|
|
269
|
-
if (typeof i == "function")
|
|
270
|
-
return at(i, en(i));
|
|
271
|
-
if (typeof i == "string")
|
|
272
|
-
return ye(i);
|
|
273
|
-
switch (i) {
|
|
274
|
-
case u:
|
|
275
|
-
return ye("Suspense");
|
|
276
|
-
case d:
|
|
277
|
-
return ye("SuspenseList");
|
|
278
|
-
}
|
|
279
|
-
if (typeof i == "object")
|
|
280
|
-
switch (i.$$typeof) {
|
|
281
|
-
case c:
|
|
282
|
-
return Qt(i.render);
|
|
283
|
-
case m:
|
|
284
|
-
return we(i.type, f, v);
|
|
285
|
-
case x: {
|
|
286
|
-
var E = i, _ = E._payload, k = E._init;
|
|
287
|
-
try {
|
|
288
|
-
return we(k(_), f, v);
|
|
289
|
-
} catch {
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
return "";
|
|
294
|
-
}
|
|
295
|
-
var Ee = Object.prototype.hasOwnProperty, lt = {}, ct = p.ReactDebugCurrentFrame;
|
|
296
|
-
function Re(i) {
|
|
297
|
-
if (i) {
|
|
298
|
-
var f = i._owner, v = we(i.type, i._source, f ? f.type : null);
|
|
299
|
-
ct.setExtraStackFrame(v);
|
|
300
|
-
} else
|
|
301
|
-
ct.setExtraStackFrame(null);
|
|
302
|
-
}
|
|
303
|
-
function tn(i, f, v, E, _) {
|
|
304
|
-
{
|
|
305
|
-
var k = Function.call.bind(Ee);
|
|
306
|
-
for (var S in i)
|
|
307
|
-
if (k(i, S)) {
|
|
308
|
-
var C = void 0;
|
|
309
|
-
try {
|
|
310
|
-
if (typeof i[S] != "function") {
|
|
311
|
-
var $ = Error((E || "React class") + ": " + v + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
312
|
-
throw $.name = "Invariant Violation", $;
|
|
313
|
-
}
|
|
314
|
-
C = i[S](f, S, E, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
315
|
-
} catch (P) {
|
|
316
|
-
C = P;
|
|
317
|
-
}
|
|
318
|
-
C && !(C instanceof Error) && (Re(_), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", v, S, typeof C), Re(null)), C instanceof Error && !(C.message in lt) && (lt[C.message] = !0, Re(_), y("Failed %s type: %s", v, C.message), Re(null));
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
var nn = Array.isArray;
|
|
323
|
-
function We(i) {
|
|
324
|
-
return nn(i);
|
|
325
|
-
}
|
|
326
|
-
function rn(i) {
|
|
327
|
-
{
|
|
328
|
-
var f = typeof Symbol == "function" && Symbol.toStringTag, v = f && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
329
|
-
return v;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
function on(i) {
|
|
333
|
-
try {
|
|
334
|
-
return ut(i), !1;
|
|
335
|
-
} catch {
|
|
336
|
-
return !0;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
function ut(i) {
|
|
340
|
-
return "" + i;
|
|
341
|
-
}
|
|
342
|
-
function ft(i) {
|
|
343
|
-
if (on(i))
|
|
344
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rn(i)), ut(i);
|
|
345
|
-
}
|
|
346
|
-
var he = p.ReactCurrentOwner, sn = {
|
|
347
|
-
key: !0,
|
|
348
|
-
ref: !0,
|
|
349
|
-
__self: !0,
|
|
350
|
-
__source: !0
|
|
351
|
-
}, dt, mt, Ye;
|
|
352
|
-
Ye = {};
|
|
353
|
-
function an(i) {
|
|
354
|
-
if (Ee.call(i, "ref")) {
|
|
355
|
-
var f = Object.getOwnPropertyDescriptor(i, "ref").get;
|
|
356
|
-
if (f && f.isReactWarning)
|
|
357
|
-
return !1;
|
|
358
|
-
}
|
|
359
|
-
return i.ref !== void 0;
|
|
360
|
-
}
|
|
361
|
-
function ln(i) {
|
|
362
|
-
if (Ee.call(i, "key")) {
|
|
363
|
-
var f = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
364
|
-
if (f && f.isReactWarning)
|
|
365
|
-
return !1;
|
|
366
|
-
}
|
|
367
|
-
return i.key !== void 0;
|
|
368
|
-
}
|
|
369
|
-
function cn(i, f) {
|
|
370
|
-
if (typeof i.ref == "string" && he.current && f && he.current.stateNode !== f) {
|
|
371
|
-
var v = L(he.current.type);
|
|
372
|
-
Ye[v] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', L(he.current.type), i.ref), Ye[v] = !0);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
function un(i, f) {
|
|
376
|
-
{
|
|
377
|
-
var v = function() {
|
|
378
|
-
dt || (dt = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
379
|
-
};
|
|
380
|
-
v.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
381
|
-
get: v,
|
|
382
|
-
configurable: !0
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
function fn(i, f) {
|
|
387
|
-
{
|
|
388
|
-
var v = function() {
|
|
389
|
-
mt || (mt = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
390
|
-
};
|
|
391
|
-
v.isReactWarning = !0, Object.defineProperty(i, "ref", {
|
|
392
|
-
get: v,
|
|
393
|
-
configurable: !0
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
var dn = function(i, f, v, E, _, k, S) {
|
|
398
|
-
var C = {
|
|
399
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
400
|
-
$$typeof: r,
|
|
401
|
-
// Built-in properties that belong on the element
|
|
402
|
-
type: i,
|
|
403
|
-
key: f,
|
|
404
|
-
ref: v,
|
|
405
|
-
props: S,
|
|
406
|
-
// Record the component responsible for creating this element.
|
|
407
|
-
_owner: k
|
|
408
|
-
};
|
|
409
|
-
return C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
410
|
-
configurable: !1,
|
|
411
|
-
enumerable: !1,
|
|
412
|
-
writable: !0,
|
|
413
|
-
value: !1
|
|
414
|
-
}), Object.defineProperty(C, "_self", {
|
|
415
|
-
configurable: !1,
|
|
416
|
-
enumerable: !1,
|
|
417
|
-
writable: !1,
|
|
418
|
-
value: E
|
|
419
|
-
}), Object.defineProperty(C, "_source", {
|
|
420
|
-
configurable: !1,
|
|
421
|
-
enumerable: !1,
|
|
422
|
-
writable: !1,
|
|
423
|
-
value: _
|
|
424
|
-
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
425
|
-
};
|
|
426
|
-
function mn(i, f, v, E, _) {
|
|
427
|
-
{
|
|
428
|
-
var k, S = {}, C = null, $ = null;
|
|
429
|
-
v !== void 0 && (ft(v), C = "" + v), ln(f) && (ft(f.key), C = "" + f.key), an(f) && ($ = f.ref, cn(f, _));
|
|
430
|
-
for (k in f)
|
|
431
|
-
Ee.call(f, k) && !sn.hasOwnProperty(k) && (S[k] = f[k]);
|
|
432
|
-
if (i && i.defaultProps) {
|
|
433
|
-
var P = i.defaultProps;
|
|
434
|
-
for (k in P)
|
|
435
|
-
S[k] === void 0 && (S[k] = P[k]);
|
|
436
|
-
}
|
|
437
|
-
if (C || $) {
|
|
438
|
-
var N = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
|
|
439
|
-
C && un(S, N), $ && fn(S, N);
|
|
440
|
-
}
|
|
441
|
-
return dn(i, C, $, _, E, he.current, S);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
var Ue = p.ReactCurrentOwner, ht = p.ReactDebugCurrentFrame;
|
|
445
|
-
function ce(i) {
|
|
446
|
-
if (i) {
|
|
447
|
-
var f = i._owner, v = we(i.type, i._source, f ? f.type : null);
|
|
448
|
-
ht.setExtraStackFrame(v);
|
|
449
|
-
} else
|
|
450
|
-
ht.setExtraStackFrame(null);
|
|
451
|
-
}
|
|
452
|
-
var He;
|
|
453
|
-
He = !1;
|
|
454
|
-
function Ke(i) {
|
|
455
|
-
return typeof i == "object" && i !== null && i.$$typeof === r;
|
|
456
|
-
}
|
|
457
|
-
function gt() {
|
|
458
|
-
{
|
|
459
|
-
if (Ue.current) {
|
|
460
|
-
var i = L(Ue.current.type);
|
|
461
|
-
if (i)
|
|
462
|
-
return `
|
|
463
|
-
|
|
464
|
-
Check the render method of \`` + i + "`.";
|
|
465
|
-
}
|
|
466
|
-
return "";
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
function hn(i) {
|
|
470
|
-
{
|
|
471
|
-
if (i !== void 0) {
|
|
472
|
-
var f = i.fileName.replace(/^.*[\\\/]/, ""), v = i.lineNumber;
|
|
473
|
-
return `
|
|
474
|
-
|
|
475
|
-
Check your code at ` + f + ":" + v + ".";
|
|
476
|
-
}
|
|
477
|
-
return "";
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
var vt = {};
|
|
481
|
-
function gn(i) {
|
|
482
|
-
{
|
|
483
|
-
var f = gt();
|
|
484
|
-
if (!f) {
|
|
485
|
-
var v = typeof i == "string" ? i : i.displayName || i.name;
|
|
486
|
-
v && (f = `
|
|
487
|
-
|
|
488
|
-
Check the top-level render call using <` + v + ">.");
|
|
489
|
-
}
|
|
490
|
-
return f;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
function pt(i, f) {
|
|
494
|
-
{
|
|
495
|
-
if (!i._store || i._store.validated || i.key != null)
|
|
496
|
-
return;
|
|
497
|
-
i._store.validated = !0;
|
|
498
|
-
var v = gn(f);
|
|
499
|
-
if (vt[v])
|
|
500
|
-
return;
|
|
501
|
-
vt[v] = !0;
|
|
502
|
-
var E = "";
|
|
503
|
-
i && i._owner && i._owner !== Ue.current && (E = " It was passed a child from " + L(i._owner.type) + "."), ce(i), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, E), ce(null);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
function bt(i, f) {
|
|
507
|
-
{
|
|
508
|
-
if (typeof i != "object")
|
|
509
|
-
return;
|
|
510
|
-
if (We(i))
|
|
511
|
-
for (var v = 0; v < i.length; v++) {
|
|
512
|
-
var E = i[v];
|
|
513
|
-
Ke(E) && pt(E, f);
|
|
514
|
-
}
|
|
515
|
-
else if (Ke(i))
|
|
516
|
-
i._store && (i._store.validated = !0);
|
|
517
|
-
else if (i) {
|
|
518
|
-
var _ = R(i);
|
|
519
|
-
if (typeof _ == "function" && _ !== i.entries)
|
|
520
|
-
for (var k = _.call(i), S; !(S = k.next()).done; )
|
|
521
|
-
Ke(S.value) && pt(S.value, f);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
function vn(i) {
|
|
526
|
-
{
|
|
527
|
-
var f = i.type;
|
|
528
|
-
if (f == null || typeof f == "string")
|
|
529
|
-
return;
|
|
530
|
-
var v;
|
|
531
|
-
if (typeof f == "function")
|
|
532
|
-
v = f.propTypes;
|
|
533
|
-
else if (typeof f == "object" && (f.$$typeof === c || // Note: Memo only checks outer props here.
|
|
534
|
-
// Inner props are checked in the reconciler.
|
|
535
|
-
f.$$typeof === m))
|
|
536
|
-
v = f.propTypes;
|
|
537
|
-
else
|
|
538
|
-
return;
|
|
539
|
-
if (v) {
|
|
540
|
-
var E = L(f);
|
|
541
|
-
tn(v, i.props, "prop", E, i);
|
|
542
|
-
} else if (f.PropTypes !== void 0 && !He) {
|
|
543
|
-
He = !0;
|
|
544
|
-
var _ = L(f);
|
|
545
|
-
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
546
|
-
}
|
|
547
|
-
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
function pn(i) {
|
|
551
|
-
{
|
|
552
|
-
for (var f = Object.keys(i.props), v = 0; v < f.length; v++) {
|
|
553
|
-
var E = f[v];
|
|
554
|
-
if (E !== "children" && E !== "key") {
|
|
555
|
-
ce(i), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), ce(null);
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
i.ref !== null && (ce(i), y("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
function yt(i, f, v, E, _, k) {
|
|
563
|
-
{
|
|
564
|
-
var S = re(i);
|
|
565
|
-
if (!S) {
|
|
566
|
-
var C = "";
|
|
567
|
-
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
568
|
-
var $ = hn(_);
|
|
569
|
-
$ ? C += $ : C += gt();
|
|
570
|
-
var P;
|
|
571
|
-
i === null ? P = "null" : We(i) ? P = "array" : i !== void 0 && i.$$typeof === r ? (P = "<" + (L(i.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : P = typeof i, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, C);
|
|
572
|
-
}
|
|
573
|
-
var N = mn(i, f, v, _, k);
|
|
574
|
-
if (N == null)
|
|
575
|
-
return N;
|
|
576
|
-
if (S) {
|
|
577
|
-
var H = f.children;
|
|
578
|
-
if (H !== void 0)
|
|
579
|
-
if (E)
|
|
580
|
-
if (We(H)) {
|
|
581
|
-
for (var ue = 0; ue < H.length; ue++)
|
|
582
|
-
bt(H[ue], i);
|
|
583
|
-
Object.freeze && Object.freeze(H);
|
|
584
|
-
} else
|
|
585
|
-
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
586
|
-
else
|
|
587
|
-
bt(H, i);
|
|
588
|
-
}
|
|
589
|
-
return i === n ? pn(N) : vn(N), N;
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
function bn(i, f, v) {
|
|
593
|
-
return yt(i, f, v, !0);
|
|
594
|
-
}
|
|
595
|
-
function yn(i, f, v) {
|
|
596
|
-
return yt(i, f, v, !1);
|
|
597
|
-
}
|
|
598
|
-
var xn = yn, wn = bn;
|
|
599
|
-
ge.Fragment = n, ge.jsx = xn, ge.jsxs = wn;
|
|
600
|
-
}()), ge;
|
|
601
|
-
}
|
|
602
|
-
var ve = {};
|
|
603
|
-
/**
|
|
604
|
-
* @license React
|
|
605
|
-
* react-jsx-runtime.production.min.js
|
|
606
|
-
*
|
|
607
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
608
|
-
*
|
|
609
|
-
* This source code is licensed under the MIT license found in the
|
|
610
|
-
* LICENSE file in the root directory of this source tree.
|
|
611
|
-
*/
|
|
612
|
-
var Et;
|
|
613
|
-
function _n() {
|
|
614
|
-
if (Et)
|
|
615
|
-
return ve;
|
|
616
|
-
Et = 1;
|
|
617
|
-
var t = At, r = Symbol.for("react.element"), e = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
618
|
-
function a(l, c, u) {
|
|
619
|
-
var d, m = {}, x = null, g = null;
|
|
620
|
-
u !== void 0 && (x = "" + u), c.key !== void 0 && (x = "" + c.key), c.ref !== void 0 && (g = c.ref);
|
|
621
|
-
for (d in c)
|
|
622
|
-
n.call(c, d) && !s.hasOwnProperty(d) && (m[d] = c[d]);
|
|
623
|
-
if (l && l.defaultProps)
|
|
624
|
-
for (d in c = l.defaultProps, c)
|
|
625
|
-
m[d] === void 0 && (m[d] = c[d]);
|
|
626
|
-
return { $$typeof: r, type: l, key: x, ref: g, props: m, _owner: o.current };
|
|
627
|
-
}
|
|
628
|
-
return ve.Fragment = e, ve.jsx = a, ve.jsxs = a, ve;
|
|
629
|
-
}
|
|
630
|
-
process.env.NODE_ENV === "production" ? Je.exports = _n() : Je.exports = Tn();
|
|
631
|
-
var w = Je.exports;
|
|
632
|
-
const K = Ze(
|
|
633
|
-
({ tag: t, children: r, visible: e = !0, asChild: n, ...o }, s) => {
|
|
634
|
-
if (!e)
|
|
635
|
-
return /* @__PURE__ */ w.jsx(w.Fragment, {});
|
|
636
|
-
if (n) {
|
|
637
|
-
const l = Pt(r);
|
|
638
|
-
if (!l)
|
|
639
|
-
return /* @__PURE__ */ w.jsx(w.Fragment, {});
|
|
640
|
-
const { Tag: c, props: u } = l;
|
|
641
|
-
return /* @__PURE__ */ w.jsx(c, { ref: s, ...o, ...u });
|
|
642
|
-
}
|
|
643
|
-
const a = t ?? "div";
|
|
644
|
-
return /* @__PURE__ */ w.jsx(a, { ref: s, ...o, children: r });
|
|
645
|
-
}
|
|
646
|
-
), Pt = (t) => {
|
|
647
|
-
if (typeof t != "string") {
|
|
648
|
-
if (Array.isArray(t))
|
|
649
|
-
return t.reduce((r, e) => r || Pt(e), void 0);
|
|
650
|
-
if (typeof t == "object" && t !== null)
|
|
651
|
-
return {
|
|
652
|
-
Tag: t.type,
|
|
653
|
-
props: t.props
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
|
-
}, ee = Ze((t, r) => /* @__PURE__ */ w.jsx(K, { tag: "div", ...t, ref: r })), B = (...t) => t.reduce((r, e) => e == null || e === !1 ? r : typeof e == "string" || typeof e == "number" ? r + " " + e : Array.isArray(e) ? r + " " + B(...e) : typeof e == "object" ? r + " " + Object.entries(e).reduce((n, [o, s]) => s == null || s === !1 ? n : typeof s == "string" || typeof s == "number" ? n + " " + o + "-" + s : typeof s == "boolean" && s ? n + " " + o : n, "") : r, ""), Rt = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Mt = (t, r) => (e) => {
|
|
657
|
-
var c;
|
|
658
|
-
if ((r == null ? void 0 : r.variants) == null)
|
|
659
|
-
return B(t, e == null ? void 0 : e.class, e == null ? void 0 : e.className);
|
|
660
|
-
const { variants: n, defaultVariants: o } = r, s = Object.keys(n).map((u) => {
|
|
661
|
-
const d = e == null ? void 0 : e[u], m = o == null ? void 0 : o[u];
|
|
662
|
-
if (d === null)
|
|
663
|
-
return null;
|
|
664
|
-
const x = Rt(d) || Rt(m);
|
|
665
|
-
return n[u][x];
|
|
666
|
-
}), a = e && Object.entries(e).reduce(
|
|
667
|
-
(u, [d, m]) => (m === void 0 || (u[d] = m), u),
|
|
668
|
-
{}
|
|
669
|
-
), l = (c = r == null ? void 0 : r.compoundVariants) == null ? void 0 : c.reduce(
|
|
670
|
-
(u, { class: d, className: m, ...x }) => Object.entries(x).every(
|
|
671
|
-
([g, h]) => Array.isArray(h) ? h.includes(
|
|
672
|
-
{
|
|
673
|
-
...o,
|
|
674
|
-
...a
|
|
675
|
-
}[g]
|
|
676
|
-
) : {
|
|
677
|
-
...o,
|
|
678
|
-
...a
|
|
679
|
-
}[g] === h
|
|
680
|
-
) ? [...u, d, m] : u,
|
|
681
|
-
[]
|
|
682
|
-
);
|
|
683
|
-
return B(t, s, l, e == null ? void 0 : e.class, e == null ? void 0 : e.className);
|
|
684
|
-
}, Nt = Ze(function(r, e) {
|
|
685
|
-
const { variant: n, className: o, ...s } = r;
|
|
686
|
-
return /* @__PURE__ */ w.jsx(ee, { ...s, className: jn({ variant: n, className: o }), ref: e });
|
|
687
|
-
}), jn = Mt(
|
|
688
|
-
"zen__badge inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors whitespace-nowrap",
|
|
689
|
-
{
|
|
690
|
-
variants: {
|
|
691
|
-
variant: {
|
|
692
|
-
default: "border-transparent bg-primary text-primary-foreground shadow",
|
|
693
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
|
694
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground shadow",
|
|
695
|
-
outline: "text-foreground"
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
defaultVariants: {
|
|
699
|
-
variant: "default"
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
), kn = (t) => {
|
|
703
|
-
let { children: r, className: e, variant: n = "default", size: o = "default", ...s } = t;
|
|
704
|
-
return /* @__PURE__ */ w.jsx(K, { tag: "button", className: An({ variant: n, size: o, className: e }), ...s, children: r });
|
|
705
|
-
}, An = Mt(
|
|
706
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
707
|
-
{
|
|
708
|
-
variants: {
|
|
709
|
-
variant: {
|
|
710
|
-
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
711
|
-
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
712
|
-
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
713
|
-
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
714
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
715
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
716
|
-
icon: ""
|
|
717
|
-
},
|
|
718
|
-
size: {
|
|
719
|
-
default: "h-9 px-4 py-2",
|
|
720
|
-
sm: "h-8 rounded-md px-3 text-xs",
|
|
721
|
-
lg: "h-10 rounded-md px-8",
|
|
722
|
-
icon: ""
|
|
723
|
-
}
|
|
724
|
-
},
|
|
725
|
-
defaultVariants: {
|
|
726
|
-
variant: "default",
|
|
727
|
-
size: "default"
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
), Te = Math.min, se = Math.max, _e = Math.round, Ce = Math.floor, oe = (t) => ({
|
|
731
|
-
x: t,
|
|
732
|
-
y: t
|
|
733
|
-
}), In = {
|
|
734
|
-
left: "right",
|
|
735
|
-
right: "left",
|
|
736
|
-
bottom: "top",
|
|
737
|
-
top: "bottom"
|
|
738
|
-
}, Pn = {
|
|
739
|
-
start: "end",
|
|
740
|
-
end: "start"
|
|
741
|
-
};
|
|
742
|
-
function Ct(t, r, e) {
|
|
743
|
-
return se(t, Te(r, e));
|
|
744
|
-
}
|
|
745
|
-
function Ne(t, r) {
|
|
746
|
-
return typeof t == "function" ? t(r) : t;
|
|
747
|
-
}
|
|
748
|
-
function ae(t) {
|
|
749
|
-
return t.split("-")[0];
|
|
750
|
-
}
|
|
751
|
-
function De(t) {
|
|
752
|
-
return t.split("-")[1];
|
|
753
|
-
}
|
|
754
|
-
function Dt(t) {
|
|
755
|
-
return t === "x" ? "y" : "x";
|
|
756
|
-
}
|
|
757
|
-
function zt(t) {
|
|
758
|
-
return t === "y" ? "height" : "width";
|
|
759
|
-
}
|
|
760
|
-
function ze(t) {
|
|
761
|
-
return ["top", "bottom"].includes(ae(t)) ? "y" : "x";
|
|
762
|
-
}
|
|
763
|
-
function Ft(t) {
|
|
764
|
-
return Dt(ze(t));
|
|
765
|
-
}
|
|
766
|
-
function Mn(t, r, e) {
|
|
767
|
-
e === void 0 && (e = !1);
|
|
768
|
-
const n = De(t), o = Ft(t), s = zt(o);
|
|
769
|
-
let a = o === "x" ? n === (e ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
770
|
-
return r.reference[s] > r.floating[s] && (a = je(a)), [a, je(a)];
|
|
771
|
-
}
|
|
772
|
-
function Nn(t) {
|
|
773
|
-
const r = je(t);
|
|
774
|
-
return [Ge(t), r, Ge(r)];
|
|
775
|
-
}
|
|
776
|
-
function Ge(t) {
|
|
777
|
-
return t.replace(/start|end/g, (r) => Pn[r]);
|
|
778
|
-
}
|
|
779
|
-
function Dn(t, r, e) {
|
|
780
|
-
const n = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
|
|
781
|
-
switch (t) {
|
|
782
|
-
case "top":
|
|
783
|
-
case "bottom":
|
|
784
|
-
return e ? r ? o : n : r ? n : o;
|
|
785
|
-
case "left":
|
|
786
|
-
case "right":
|
|
787
|
-
return r ? s : a;
|
|
788
|
-
default:
|
|
789
|
-
return [];
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
function zn(t, r, e, n) {
|
|
793
|
-
const o = De(t);
|
|
794
|
-
let s = Dn(ae(t), e === "start", n);
|
|
795
|
-
return o && (s = s.map((a) => a + "-" + o), r && (s = s.concat(s.map(Ge)))), s;
|
|
796
|
-
}
|
|
797
|
-
function je(t) {
|
|
798
|
-
return t.replace(/left|right|bottom|top/g, (r) => In[r]);
|
|
799
|
-
}
|
|
800
|
-
function Fn(t) {
|
|
801
|
-
return {
|
|
802
|
-
top: 0,
|
|
803
|
-
right: 0,
|
|
804
|
-
bottom: 0,
|
|
805
|
-
left: 0,
|
|
806
|
-
...t
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
function Ln(t) {
|
|
810
|
-
return typeof t != "number" ? Fn(t) : {
|
|
811
|
-
top: t,
|
|
812
|
-
right: t,
|
|
813
|
-
bottom: t,
|
|
814
|
-
left: t
|
|
815
|
-
};
|
|
816
|
-
}
|
|
817
|
-
function ke(t) {
|
|
818
|
-
return {
|
|
819
|
-
...t,
|
|
820
|
-
top: t.y,
|
|
821
|
-
left: t.x,
|
|
822
|
-
right: t.x + t.width,
|
|
823
|
-
bottom: t.y + t.height
|
|
824
|
-
};
|
|
825
|
-
}
|
|
826
|
-
function Ot(t, r, e) {
|
|
827
|
-
let {
|
|
828
|
-
reference: n,
|
|
829
|
-
floating: o
|
|
830
|
-
} = t;
|
|
831
|
-
const s = ze(r), a = Ft(r), l = zt(a), c = ae(r), u = s === "y", d = n.x + n.width / 2 - o.width / 2, m = n.y + n.height / 2 - o.height / 2, x = n[l] / 2 - o[l] / 2;
|
|
832
|
-
let g;
|
|
833
|
-
switch (c) {
|
|
834
|
-
case "top":
|
|
835
|
-
g = {
|
|
836
|
-
x: d,
|
|
837
|
-
y: n.y - o.height
|
|
838
|
-
};
|
|
839
|
-
break;
|
|
840
|
-
case "bottom":
|
|
841
|
-
g = {
|
|
842
|
-
x: d,
|
|
843
|
-
y: n.y + n.height
|
|
844
|
-
};
|
|
845
|
-
break;
|
|
846
|
-
case "right":
|
|
847
|
-
g = {
|
|
848
|
-
x: n.x + n.width,
|
|
849
|
-
y: m
|
|
850
|
-
};
|
|
851
|
-
break;
|
|
852
|
-
case "left":
|
|
853
|
-
g = {
|
|
854
|
-
x: n.x - o.width,
|
|
855
|
-
y: m
|
|
856
|
-
};
|
|
857
|
-
break;
|
|
858
|
-
default:
|
|
859
|
-
g = {
|
|
860
|
-
x: n.x,
|
|
861
|
-
y: n.y
|
|
862
|
-
};
|
|
863
|
-
}
|
|
864
|
-
switch (De(r)) {
|
|
865
|
-
case "start":
|
|
866
|
-
g[a] -= x * (e && u ? -1 : 1);
|
|
867
|
-
break;
|
|
868
|
-
case "end":
|
|
869
|
-
g[a] += x * (e && u ? -1 : 1);
|
|
870
|
-
break;
|
|
871
|
-
}
|
|
872
|
-
return g;
|
|
873
|
-
}
|
|
874
|
-
const Vn = async (t, r, e) => {
|
|
875
|
-
const {
|
|
876
|
-
placement: n = "bottom",
|
|
877
|
-
strategy: o = "absolute",
|
|
878
|
-
middleware: s = [],
|
|
879
|
-
platform: a
|
|
880
|
-
} = e, l = s.filter(Boolean), c = await (a.isRTL == null ? void 0 : a.isRTL(r));
|
|
881
|
-
let u = await a.getElementRects({
|
|
882
|
-
reference: t,
|
|
883
|
-
floating: r,
|
|
884
|
-
strategy: o
|
|
885
|
-
}), {
|
|
886
|
-
x: d,
|
|
887
|
-
y: m
|
|
888
|
-
} = Ot(u, n, c), x = n, g = {}, h = 0;
|
|
889
|
-
for (let b = 0; b < l.length; b++) {
|
|
890
|
-
const {
|
|
891
|
-
name: R,
|
|
892
|
-
fn: p
|
|
893
|
-
} = l[b], {
|
|
894
|
-
x: y,
|
|
895
|
-
y: T,
|
|
896
|
-
data: j,
|
|
897
|
-
reset: O
|
|
898
|
-
} = await p({
|
|
899
|
-
x: d,
|
|
900
|
-
y: m,
|
|
901
|
-
initialPlacement: n,
|
|
902
|
-
placement: x,
|
|
903
|
-
strategy: o,
|
|
904
|
-
middlewareData: g,
|
|
905
|
-
rects: u,
|
|
906
|
-
platform: a,
|
|
907
|
-
elements: {
|
|
908
|
-
reference: t,
|
|
909
|
-
floating: r
|
|
910
|
-
}
|
|
911
|
-
});
|
|
912
|
-
if (d = y ?? d, m = T ?? m, g = {
|
|
913
|
-
...g,
|
|
914
|
-
[R]: {
|
|
915
|
-
...g[R],
|
|
916
|
-
...j
|
|
917
|
-
}
|
|
918
|
-
}, O && h <= 50) {
|
|
919
|
-
h++, typeof O == "object" && (O.placement && (x = O.placement), O.rects && (u = O.rects === !0 ? await a.getElementRects({
|
|
920
|
-
reference: t,
|
|
921
|
-
floating: r,
|
|
922
|
-
strategy: o
|
|
923
|
-
}) : O.rects), {
|
|
924
|
-
x: d,
|
|
925
|
-
y: m
|
|
926
|
-
} = Ot(u, x, c)), b = -1;
|
|
927
|
-
continue;
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
return {
|
|
931
|
-
x: d,
|
|
932
|
-
y: m,
|
|
933
|
-
placement: x,
|
|
934
|
-
strategy: o,
|
|
935
|
-
middlewareData: g
|
|
936
|
-
};
|
|
937
|
-
};
|
|
938
|
-
async function Lt(t, r) {
|
|
939
|
-
var e;
|
|
940
|
-
r === void 0 && (r = {});
|
|
941
|
-
const {
|
|
942
|
-
x: n,
|
|
943
|
-
y: o,
|
|
944
|
-
platform: s,
|
|
945
|
-
rects: a,
|
|
946
|
-
elements: l,
|
|
947
|
-
strategy: c
|
|
948
|
-
} = t, {
|
|
949
|
-
boundary: u = "clippingAncestors",
|
|
950
|
-
rootBoundary: d = "viewport",
|
|
951
|
-
elementContext: m = "floating",
|
|
952
|
-
altBoundary: x = !1,
|
|
953
|
-
padding: g = 0
|
|
954
|
-
} = Ne(r, t), h = Ln(g), R = l[x ? m === "floating" ? "reference" : "floating" : m], p = ke(await s.getClippingRect({
|
|
955
|
-
element: (e = await (s.isElement == null ? void 0 : s.isElement(R))) == null || e ? R : R.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
956
|
-
boundary: u,
|
|
957
|
-
rootBoundary: d,
|
|
958
|
-
strategy: c
|
|
959
|
-
})), y = m === "floating" ? {
|
|
960
|
-
...a.floating,
|
|
961
|
-
x: n,
|
|
962
|
-
y: o
|
|
963
|
-
} : a.reference, T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), j = await (s.isElement == null ? void 0 : s.isElement(T)) ? await (s.getScale == null ? void 0 : s.getScale(T)) || {
|
|
964
|
-
x: 1,
|
|
965
|
-
y: 1
|
|
966
|
-
} : {
|
|
967
|
-
x: 1,
|
|
968
|
-
y: 1
|
|
969
|
-
}, O = ke(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
970
|
-
rect: y,
|
|
971
|
-
offsetParent: T,
|
|
972
|
-
strategy: c
|
|
973
|
-
}) : y);
|
|
974
|
-
return {
|
|
975
|
-
top: (p.top - O.top + h.top) / j.y,
|
|
976
|
-
bottom: (O.bottom - p.bottom + h.bottom) / j.y,
|
|
977
|
-
left: (p.left - O.left + h.left) / j.x,
|
|
978
|
-
right: (O.right - p.right + h.right) / j.x
|
|
979
|
-
};
|
|
980
|
-
}
|
|
981
|
-
const $n = function(t) {
|
|
982
|
-
return t === void 0 && (t = {}), {
|
|
983
|
-
name: "flip",
|
|
984
|
-
options: t,
|
|
985
|
-
async fn(r) {
|
|
986
|
-
var e, n;
|
|
987
|
-
const {
|
|
988
|
-
placement: o,
|
|
989
|
-
middlewareData: s,
|
|
990
|
-
rects: a,
|
|
991
|
-
initialPlacement: l,
|
|
992
|
-
platform: c,
|
|
993
|
-
elements: u
|
|
994
|
-
} = r, {
|
|
995
|
-
mainAxis: d = !0,
|
|
996
|
-
crossAxis: m = !0,
|
|
997
|
-
fallbackPlacements: x,
|
|
998
|
-
fallbackStrategy: g = "bestFit",
|
|
999
|
-
fallbackAxisSideDirection: h = "none",
|
|
1000
|
-
flipAlignment: b = !0,
|
|
1001
|
-
...R
|
|
1002
|
-
} = Ne(t, r);
|
|
1003
|
-
if ((e = s.arrow) != null && e.alignmentOffset)
|
|
1004
|
-
return {};
|
|
1005
|
-
const p = ae(o), y = ae(l) === l, T = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), j = x || (y || !b ? [je(l)] : Nn(l));
|
|
1006
|
-
!x && h !== "none" && j.push(...zn(l, b, h, T));
|
|
1007
|
-
const O = [l, ...j], D = await Lt(r, R), z = [];
|
|
1008
|
-
let F = ((n = s.flip) == null ? void 0 : n.overflows) || [];
|
|
1009
|
-
if (d && z.push(D[p]), m) {
|
|
1010
|
-
const W = Mn(o, a, T);
|
|
1011
|
-
z.push(D[W[0]], D[W[1]]);
|
|
1012
|
-
}
|
|
1013
|
-
if (F = [...F, {
|
|
1014
|
-
placement: o,
|
|
1015
|
-
overflows: z
|
|
1016
|
-
}], !z.every((W) => W <= 0)) {
|
|
1017
|
-
var Z, re;
|
|
1018
|
-
const W = (((Z = s.flip) == null ? void 0 : Z.index) || 0) + 1, L = O[W];
|
|
1019
|
-
if (L)
|
|
1020
|
-
return {
|
|
1021
|
-
data: {
|
|
1022
|
-
index: W,
|
|
1023
|
-
overflows: F
|
|
1024
|
-
},
|
|
1025
|
-
reset: {
|
|
1026
|
-
placement: L
|
|
1027
|
-
}
|
|
1028
|
-
};
|
|
1029
|
-
let I = (re = F.filter((V) => V.overflows[0] <= 0).sort((V, A) => V.overflows[1] - A.overflows[1])[0]) == null ? void 0 : re.placement;
|
|
1030
|
-
if (!I)
|
|
1031
|
-
switch (g) {
|
|
1032
|
-
case "bestFit": {
|
|
1033
|
-
var J;
|
|
1034
|
-
const V = (J = F.map((A) => [A.placement, A.overflows.filter((Y) => Y > 0).reduce((Y, X) => Y + X, 0)]).sort((A, Y) => A[1] - Y[1])[0]) == null ? void 0 : J[0];
|
|
1035
|
-
V && (I = V);
|
|
1036
|
-
break;
|
|
1037
|
-
}
|
|
1038
|
-
case "initialPlacement":
|
|
1039
|
-
I = l;
|
|
1040
|
-
break;
|
|
1041
|
-
}
|
|
1042
|
-
if (o !== I)
|
|
1043
|
-
return {
|
|
1044
|
-
reset: {
|
|
1045
|
-
placement: I
|
|
1046
|
-
}
|
|
1047
|
-
};
|
|
1048
|
-
}
|
|
1049
|
-
return {};
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
|
-
};
|
|
1053
|
-
async function Bn(t, r) {
|
|
1054
|
-
const {
|
|
1055
|
-
placement: e,
|
|
1056
|
-
platform: n,
|
|
1057
|
-
elements: o
|
|
1058
|
-
} = t, s = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), a = ae(e), l = De(e), c = ze(e) === "y", u = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, m = Ne(r, t);
|
|
1059
|
-
let {
|
|
1060
|
-
mainAxis: x,
|
|
1061
|
-
crossAxis: g,
|
|
1062
|
-
alignmentAxis: h
|
|
1063
|
-
} = typeof m == "number" ? {
|
|
1064
|
-
mainAxis: m,
|
|
1065
|
-
crossAxis: 0,
|
|
1066
|
-
alignmentAxis: null
|
|
1067
|
-
} : {
|
|
1068
|
-
mainAxis: 0,
|
|
1069
|
-
crossAxis: 0,
|
|
1070
|
-
alignmentAxis: null,
|
|
1071
|
-
...m
|
|
1072
|
-
};
|
|
1073
|
-
return l && typeof h == "number" && (g = l === "end" ? h * -1 : h), c ? {
|
|
1074
|
-
x: g * d,
|
|
1075
|
-
y: x * u
|
|
1076
|
-
} : {
|
|
1077
|
-
x: x * u,
|
|
1078
|
-
y: g * d
|
|
1079
|
-
};
|
|
1080
|
-
}
|
|
1081
|
-
const Wn = function(t) {
|
|
1082
|
-
return t === void 0 && (t = 0), {
|
|
1083
|
-
name: "offset",
|
|
1084
|
-
options: t,
|
|
1085
|
-
async fn(r) {
|
|
1086
|
-
var e, n;
|
|
1087
|
-
const {
|
|
1088
|
-
x: o,
|
|
1089
|
-
y: s,
|
|
1090
|
-
placement: a,
|
|
1091
|
-
middlewareData: l
|
|
1092
|
-
} = r, c = await Bn(r, t);
|
|
1093
|
-
return a === ((e = l.offset) == null ? void 0 : e.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
|
|
1094
|
-
x: o + c.x,
|
|
1095
|
-
y: s + c.y,
|
|
1096
|
-
data: {
|
|
1097
|
-
...c,
|
|
1098
|
-
placement: a
|
|
1099
|
-
}
|
|
1100
|
-
};
|
|
1101
|
-
}
|
|
1102
|
-
};
|
|
1103
|
-
}, Yn = function(t) {
|
|
1104
|
-
return t === void 0 && (t = {}), {
|
|
1105
|
-
name: "shift",
|
|
1106
|
-
options: t,
|
|
1107
|
-
async fn(r) {
|
|
1108
|
-
const {
|
|
1109
|
-
x: e,
|
|
1110
|
-
y: n,
|
|
1111
|
-
placement: o
|
|
1112
|
-
} = r, {
|
|
1113
|
-
mainAxis: s = !0,
|
|
1114
|
-
crossAxis: a = !1,
|
|
1115
|
-
limiter: l = {
|
|
1116
|
-
fn: (R) => {
|
|
1117
|
-
let {
|
|
1118
|
-
x: p,
|
|
1119
|
-
y
|
|
1120
|
-
} = R;
|
|
1121
|
-
return {
|
|
1122
|
-
x: p,
|
|
1123
|
-
y
|
|
1124
|
-
};
|
|
1125
|
-
}
|
|
1126
|
-
},
|
|
1127
|
-
...c
|
|
1128
|
-
} = Ne(t, r), u = {
|
|
1129
|
-
x: e,
|
|
1130
|
-
y: n
|
|
1131
|
-
}, d = await Lt(r, c), m = ze(ae(o)), x = Dt(m);
|
|
1132
|
-
let g = u[x], h = u[m];
|
|
1133
|
-
if (s) {
|
|
1134
|
-
const R = x === "y" ? "top" : "left", p = x === "y" ? "bottom" : "right", y = g + d[R], T = g - d[p];
|
|
1135
|
-
g = Ct(y, g, T);
|
|
1136
|
-
}
|
|
1137
|
-
if (a) {
|
|
1138
|
-
const R = m === "y" ? "top" : "left", p = m === "y" ? "bottom" : "right", y = h + d[R], T = h - d[p];
|
|
1139
|
-
h = Ct(y, h, T);
|
|
1140
|
-
}
|
|
1141
|
-
const b = l.fn({
|
|
1142
|
-
...r,
|
|
1143
|
-
[x]: g,
|
|
1144
|
-
[m]: h
|
|
1145
|
-
});
|
|
1146
|
-
return {
|
|
1147
|
-
...b,
|
|
1148
|
-
data: {
|
|
1149
|
-
x: b.x - e,
|
|
1150
|
-
y: b.y - n
|
|
1151
|
-
}
|
|
1152
|
-
};
|
|
1153
|
-
}
|
|
1154
|
-
};
|
|
1155
|
-
};
|
|
1156
|
-
function ie(t) {
|
|
1157
|
-
return Vt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
1158
|
-
}
|
|
1159
|
-
function U(t) {
|
|
1160
|
-
var r;
|
|
1161
|
-
return (t == null || (r = t.ownerDocument) == null ? void 0 : r.defaultView) || window;
|
|
1162
|
-
}
|
|
1163
|
-
function ne(t) {
|
|
1164
|
-
var r;
|
|
1165
|
-
return (r = (Vt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : r.documentElement;
|
|
1166
|
-
}
|
|
1167
|
-
function Vt(t) {
|
|
1168
|
-
return t instanceof Node || t instanceof U(t).Node;
|
|
1169
|
-
}
|
|
1170
|
-
function te(t) {
|
|
1171
|
-
return t instanceof Element || t instanceof U(t).Element;
|
|
1172
|
-
}
|
|
1173
|
-
function G(t) {
|
|
1174
|
-
return t instanceof HTMLElement || t instanceof U(t).HTMLElement;
|
|
1175
|
-
}
|
|
1176
|
-
function St(t) {
|
|
1177
|
-
return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof U(t).ShadowRoot;
|
|
1178
|
-
}
|
|
1179
|
-
function be(t) {
|
|
1180
|
-
const {
|
|
1181
|
-
overflow: r,
|
|
1182
|
-
overflowX: e,
|
|
1183
|
-
overflowY: n,
|
|
1184
|
-
display: o
|
|
1185
|
-
} = q(t);
|
|
1186
|
-
return /auto|scroll|overlay|hidden|clip/.test(r + n + e) && !["inline", "contents"].includes(o);
|
|
1187
|
-
}
|
|
1188
|
-
function Un(t) {
|
|
1189
|
-
return ["table", "td", "th"].includes(ie(t));
|
|
1190
|
-
}
|
|
1191
|
-
function Qe(t) {
|
|
1192
|
-
const r = et(), e = q(t);
|
|
1193
|
-
return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !r && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !r && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (e.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (e.contain || "").includes(n));
|
|
1194
|
-
}
|
|
1195
|
-
function Hn(t) {
|
|
1196
|
-
let r = me(t);
|
|
1197
|
-
for (; G(r) && !Fe(r); ) {
|
|
1198
|
-
if (Qe(r))
|
|
1199
|
-
return r;
|
|
1200
|
-
r = me(r);
|
|
1201
|
-
}
|
|
1202
|
-
return null;
|
|
1203
|
-
}
|
|
1204
|
-
function et() {
|
|
1205
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1206
|
-
}
|
|
1207
|
-
function Fe(t) {
|
|
1208
|
-
return ["html", "body", "#document"].includes(ie(t));
|
|
1209
|
-
}
|
|
1210
|
-
function q(t) {
|
|
1211
|
-
return U(t).getComputedStyle(t);
|
|
1212
|
-
}
|
|
1213
|
-
function Le(t) {
|
|
1214
|
-
return te(t) ? {
|
|
1215
|
-
scrollLeft: t.scrollLeft,
|
|
1216
|
-
scrollTop: t.scrollTop
|
|
1217
|
-
} : {
|
|
1218
|
-
scrollLeft: t.pageXOffset,
|
|
1219
|
-
scrollTop: t.pageYOffset
|
|
1220
|
-
};
|
|
1221
|
-
}
|
|
1222
|
-
function me(t) {
|
|
1223
|
-
if (ie(t) === "html")
|
|
1224
|
-
return t;
|
|
1225
|
-
const r = (
|
|
1226
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
1227
|
-
t.assignedSlot || // DOM Element detected.
|
|
1228
|
-
t.parentNode || // ShadowRoot detected.
|
|
1229
|
-
St(t) && t.host || // Fallback.
|
|
1230
|
-
ne(t)
|
|
1231
|
-
);
|
|
1232
|
-
return St(r) ? r.host : r;
|
|
1233
|
-
}
|
|
1234
|
-
function $t(t) {
|
|
1235
|
-
const r = me(t);
|
|
1236
|
-
return Fe(r) ? t.ownerDocument ? t.ownerDocument.body : t.body : G(r) && be(r) ? r : $t(r);
|
|
1237
|
-
}
|
|
1238
|
-
function pe(t, r, e) {
|
|
1239
|
-
var n;
|
|
1240
|
-
r === void 0 && (r = []), e === void 0 && (e = !0);
|
|
1241
|
-
const o = $t(t), s = o === ((n = t.ownerDocument) == null ? void 0 : n.body), a = U(o);
|
|
1242
|
-
return s ? r.concat(a, a.visualViewport || [], be(o) ? o : [], a.frameElement && e ? pe(a.frameElement) : []) : r.concat(o, pe(o, [], e));
|
|
1243
|
-
}
|
|
1244
|
-
function Bt(t) {
|
|
1245
|
-
const r = q(t);
|
|
1246
|
-
let e = parseFloat(r.width) || 0, n = parseFloat(r.height) || 0;
|
|
1247
|
-
const o = G(t), s = o ? t.offsetWidth : e, a = o ? t.offsetHeight : n, l = _e(e) !== s || _e(n) !== a;
|
|
1248
|
-
return l && (e = s, n = a), {
|
|
1249
|
-
width: e,
|
|
1250
|
-
height: n,
|
|
1251
|
-
$: l
|
|
1252
|
-
};
|
|
1253
|
-
}
|
|
1254
|
-
function tt(t) {
|
|
1255
|
-
return te(t) ? t : t.contextElement;
|
|
1256
|
-
}
|
|
1257
|
-
function de(t) {
|
|
1258
|
-
const r = tt(t);
|
|
1259
|
-
if (!G(r))
|
|
1260
|
-
return oe(1);
|
|
1261
|
-
const e = r.getBoundingClientRect(), {
|
|
1262
|
-
width: n,
|
|
1263
|
-
height: o,
|
|
1264
|
-
$: s
|
|
1265
|
-
} = Bt(r);
|
|
1266
|
-
let a = (s ? _e(e.width) : e.width) / n, l = (s ? _e(e.height) : e.height) / o;
|
|
1267
|
-
return (!a || !Number.isFinite(a)) && (a = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1268
|
-
x: a,
|
|
1269
|
-
y: l
|
|
1270
|
-
};
|
|
1271
|
-
}
|
|
1272
|
-
const Kn = /* @__PURE__ */ oe(0);
|
|
1273
|
-
function Wt(t) {
|
|
1274
|
-
const r = U(t);
|
|
1275
|
-
return !et() || !r.visualViewport ? Kn : {
|
|
1276
|
-
x: r.visualViewport.offsetLeft,
|
|
1277
|
-
y: r.visualViewport.offsetTop
|
|
1278
|
-
};
|
|
1279
|
-
}
|
|
1280
|
-
function qn(t, r, e) {
|
|
1281
|
-
return r === void 0 && (r = !1), !e || r && e !== U(t) ? !1 : r;
|
|
1282
|
-
}
|
|
1283
|
-
function le(t, r, e, n) {
|
|
1284
|
-
r === void 0 && (r = !1), e === void 0 && (e = !1);
|
|
1285
|
-
const o = t.getBoundingClientRect(), s = tt(t);
|
|
1286
|
-
let a = oe(1);
|
|
1287
|
-
r && (n ? te(n) && (a = de(n)) : a = de(t));
|
|
1288
|
-
const l = qn(s, e, n) ? Wt(s) : oe(0);
|
|
1289
|
-
let c = (o.left + l.x) / a.x, u = (o.top + l.y) / a.y, d = o.width / a.x, m = o.height / a.y;
|
|
1290
|
-
if (s) {
|
|
1291
|
-
const x = U(s), g = n && te(n) ? U(n) : n;
|
|
1292
|
-
let h = x.frameElement;
|
|
1293
|
-
for (; h && n && g !== x; ) {
|
|
1294
|
-
const b = de(h), R = h.getBoundingClientRect(), p = q(h), y = R.left + (h.clientLeft + parseFloat(p.paddingLeft)) * b.x, T = R.top + (h.clientTop + parseFloat(p.paddingTop)) * b.y;
|
|
1295
|
-
c *= b.x, u *= b.y, d *= b.x, m *= b.y, c += y, u += T, h = U(h).frameElement;
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
return ke({
|
|
1299
|
-
width: d,
|
|
1300
|
-
height: m,
|
|
1301
|
-
x: c,
|
|
1302
|
-
y: u
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
function Xn(t) {
|
|
1306
|
-
let {
|
|
1307
|
-
rect: r,
|
|
1308
|
-
offsetParent: e,
|
|
1309
|
-
strategy: n
|
|
1310
|
-
} = t;
|
|
1311
|
-
const o = G(e), s = ne(e);
|
|
1312
|
-
if (e === s)
|
|
1313
|
-
return r;
|
|
1314
|
-
let a = {
|
|
1315
|
-
scrollLeft: 0,
|
|
1316
|
-
scrollTop: 0
|
|
1317
|
-
}, l = oe(1);
|
|
1318
|
-
const c = oe(0);
|
|
1319
|
-
if ((o || !o && n !== "fixed") && ((ie(e) !== "body" || be(s)) && (a = Le(e)), G(e))) {
|
|
1320
|
-
const u = le(e);
|
|
1321
|
-
l = de(e), c.x = u.x + e.clientLeft, c.y = u.y + e.clientTop;
|
|
1322
|
-
}
|
|
1323
|
-
return {
|
|
1324
|
-
width: r.width * l.x,
|
|
1325
|
-
height: r.height * l.y,
|
|
1326
|
-
x: r.x * l.x - a.scrollLeft * l.x + c.x,
|
|
1327
|
-
y: r.y * l.y - a.scrollTop * l.y + c.y
|
|
1328
|
-
};
|
|
1329
|
-
}
|
|
1330
|
-
function Jn(t) {
|
|
1331
|
-
return Array.from(t.getClientRects());
|
|
1332
|
-
}
|
|
1333
|
-
function Yt(t) {
|
|
1334
|
-
return le(ne(t)).left + Le(t).scrollLeft;
|
|
1335
|
-
}
|
|
1336
|
-
function Gn(t) {
|
|
1337
|
-
const r = ne(t), e = Le(t), n = t.ownerDocument.body, o = se(r.scrollWidth, r.clientWidth, n.scrollWidth, n.clientWidth), s = se(r.scrollHeight, r.clientHeight, n.scrollHeight, n.clientHeight);
|
|
1338
|
-
let a = -e.scrollLeft + Yt(t);
|
|
1339
|
-
const l = -e.scrollTop;
|
|
1340
|
-
return q(n).direction === "rtl" && (a += se(r.clientWidth, n.clientWidth) - o), {
|
|
1341
|
-
width: o,
|
|
1342
|
-
height: s,
|
|
1343
|
-
x: a,
|
|
1344
|
-
y: l
|
|
1345
|
-
};
|
|
1346
|
-
}
|
|
1347
|
-
function Zn(t, r) {
|
|
1348
|
-
const e = U(t), n = ne(t), o = e.visualViewport;
|
|
1349
|
-
let s = n.clientWidth, a = n.clientHeight, l = 0, c = 0;
|
|
1350
|
-
if (o) {
|
|
1351
|
-
s = o.width, a = o.height;
|
|
1352
|
-
const u = et();
|
|
1353
|
-
(!u || u && r === "fixed") && (l = o.offsetLeft, c = o.offsetTop);
|
|
1354
|
-
}
|
|
1355
|
-
return {
|
|
1356
|
-
width: s,
|
|
1357
|
-
height: a,
|
|
1358
|
-
x: l,
|
|
1359
|
-
y: c
|
|
1360
|
-
};
|
|
1361
|
-
}
|
|
1362
|
-
function Qn(t, r) {
|
|
1363
|
-
const e = le(t, !0, r === "fixed"), n = e.top + t.clientTop, o = e.left + t.clientLeft, s = G(t) ? de(t) : oe(1), a = t.clientWidth * s.x, l = t.clientHeight * s.y, c = o * s.x, u = n * s.y;
|
|
1364
|
-
return {
|
|
1365
|
-
width: a,
|
|
1366
|
-
height: l,
|
|
1367
|
-
x: c,
|
|
1368
|
-
y: u
|
|
1369
|
-
};
|
|
1370
|
-
}
|
|
1371
|
-
function Tt(t, r, e) {
|
|
1372
|
-
let n;
|
|
1373
|
-
if (r === "viewport")
|
|
1374
|
-
n = Zn(t, e);
|
|
1375
|
-
else if (r === "document")
|
|
1376
|
-
n = Gn(ne(t));
|
|
1377
|
-
else if (te(r))
|
|
1378
|
-
n = Qn(r, e);
|
|
1379
|
-
else {
|
|
1380
|
-
const o = Wt(t);
|
|
1381
|
-
n = {
|
|
1382
|
-
...r,
|
|
1383
|
-
x: r.x - o.x,
|
|
1384
|
-
y: r.y - o.y
|
|
1385
|
-
};
|
|
1386
|
-
}
|
|
1387
|
-
return ke(n);
|
|
1388
|
-
}
|
|
1389
|
-
function Ut(t, r) {
|
|
1390
|
-
const e = me(t);
|
|
1391
|
-
return e === r || !te(e) || Fe(e) ? !1 : q(e).position === "fixed" || Ut(e, r);
|
|
1392
|
-
}
|
|
1393
|
-
function er(t, r) {
|
|
1394
|
-
const e = r.get(t);
|
|
1395
|
-
if (e)
|
|
1396
|
-
return e;
|
|
1397
|
-
let n = pe(t, [], !1).filter((l) => te(l) && ie(l) !== "body"), o = null;
|
|
1398
|
-
const s = q(t).position === "fixed";
|
|
1399
|
-
let a = s ? me(t) : t;
|
|
1400
|
-
for (; te(a) && !Fe(a); ) {
|
|
1401
|
-
const l = q(a), c = Qe(a);
|
|
1402
|
-
!c && l.position === "fixed" && (o = null), (s ? !c && !o : !c && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || be(a) && !c && Ut(t, a)) ? n = n.filter((d) => d !== a) : o = l, a = me(a);
|
|
1403
|
-
}
|
|
1404
|
-
return r.set(t, n), n;
|
|
1405
|
-
}
|
|
1406
|
-
function tr(t) {
|
|
1407
|
-
let {
|
|
1408
|
-
element: r,
|
|
1409
|
-
boundary: e,
|
|
1410
|
-
rootBoundary: n,
|
|
1411
|
-
strategy: o
|
|
1412
|
-
} = t;
|
|
1413
|
-
const a = [...e === "clippingAncestors" ? er(r, this._c) : [].concat(e), n], l = a[0], c = a.reduce((u, d) => {
|
|
1414
|
-
const m = Tt(r, d, o);
|
|
1415
|
-
return u.top = se(m.top, u.top), u.right = Te(m.right, u.right), u.bottom = Te(m.bottom, u.bottom), u.left = se(m.left, u.left), u;
|
|
1416
|
-
}, Tt(r, l, o));
|
|
1417
|
-
return {
|
|
1418
|
-
width: c.right - c.left,
|
|
1419
|
-
height: c.bottom - c.top,
|
|
1420
|
-
x: c.left,
|
|
1421
|
-
y: c.top
|
|
1422
|
-
};
|
|
1423
|
-
}
|
|
1424
|
-
function nr(t) {
|
|
1425
|
-
return Bt(t);
|
|
1426
|
-
}
|
|
1427
|
-
function rr(t, r, e) {
|
|
1428
|
-
const n = G(r), o = ne(r), s = e === "fixed", a = le(t, !0, s, r);
|
|
1429
|
-
let l = {
|
|
1430
|
-
scrollLeft: 0,
|
|
1431
|
-
scrollTop: 0
|
|
1432
|
-
};
|
|
1433
|
-
const c = oe(0);
|
|
1434
|
-
if (n || !n && !s)
|
|
1435
|
-
if ((ie(r) !== "body" || be(o)) && (l = Le(r)), n) {
|
|
1436
|
-
const u = le(r, !0, s, r);
|
|
1437
|
-
c.x = u.x + r.clientLeft, c.y = u.y + r.clientTop;
|
|
1438
|
-
} else
|
|
1439
|
-
o && (c.x = Yt(o));
|
|
1440
|
-
return {
|
|
1441
|
-
x: a.left + l.scrollLeft - c.x,
|
|
1442
|
-
y: a.top + l.scrollTop - c.y,
|
|
1443
|
-
width: a.width,
|
|
1444
|
-
height: a.height
|
|
1445
|
-
};
|
|
1446
|
-
}
|
|
1447
|
-
function _t(t, r) {
|
|
1448
|
-
return !G(t) || q(t).position === "fixed" ? null : r ? r(t) : t.offsetParent;
|
|
1449
|
-
}
|
|
1450
|
-
function Ht(t, r) {
|
|
1451
|
-
const e = U(t);
|
|
1452
|
-
if (!G(t))
|
|
1453
|
-
return e;
|
|
1454
|
-
let n = _t(t, r);
|
|
1455
|
-
for (; n && Un(n) && q(n).position === "static"; )
|
|
1456
|
-
n = _t(n, r);
|
|
1457
|
-
return n && (ie(n) === "html" || ie(n) === "body" && q(n).position === "static" && !Qe(n)) ? e : n || Hn(t) || e;
|
|
1458
|
-
}
|
|
1459
|
-
const or = async function(t) {
|
|
1460
|
-
let {
|
|
1461
|
-
reference: r,
|
|
1462
|
-
floating: e,
|
|
1463
|
-
strategy: n
|
|
1464
|
-
} = t;
|
|
1465
|
-
const o = this.getOffsetParent || Ht, s = this.getDimensions;
|
|
1466
|
-
return {
|
|
1467
|
-
reference: rr(r, await o(e), n),
|
|
1468
|
-
floating: {
|
|
1469
|
-
x: 0,
|
|
1470
|
-
y: 0,
|
|
1471
|
-
...await s(e)
|
|
1472
|
-
}
|
|
1473
|
-
};
|
|
1474
|
-
};
|
|
1475
|
-
function ir(t) {
|
|
1476
|
-
return q(t).direction === "rtl";
|
|
1477
|
-
}
|
|
1478
|
-
const sr = {
|
|
1479
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: Xn,
|
|
1480
|
-
getDocumentElement: ne,
|
|
1481
|
-
getClippingRect: tr,
|
|
1482
|
-
getOffsetParent: Ht,
|
|
1483
|
-
getElementRects: or,
|
|
1484
|
-
getClientRects: Jn,
|
|
1485
|
-
getDimensions: nr,
|
|
1486
|
-
getScale: de,
|
|
1487
|
-
isElement: te,
|
|
1488
|
-
isRTL: ir
|
|
1489
|
-
};
|
|
1490
|
-
function ar(t, r) {
|
|
1491
|
-
let e = null, n;
|
|
1492
|
-
const o = ne(t);
|
|
1493
|
-
function s() {
|
|
1494
|
-
clearTimeout(n), e && e.disconnect(), e = null;
|
|
1495
|
-
}
|
|
1496
|
-
function a(l, c) {
|
|
1497
|
-
l === void 0 && (l = !1), c === void 0 && (c = 1), s();
|
|
1498
|
-
const {
|
|
1499
|
-
left: u,
|
|
1500
|
-
top: d,
|
|
1501
|
-
width: m,
|
|
1502
|
-
height: x
|
|
1503
|
-
} = t.getBoundingClientRect();
|
|
1504
|
-
if (l || r(), !m || !x)
|
|
1505
|
-
return;
|
|
1506
|
-
const g = Ce(d), h = Ce(o.clientWidth - (u + m)), b = Ce(o.clientHeight - (d + x)), R = Ce(u), y = {
|
|
1507
|
-
rootMargin: -g + "px " + -h + "px " + -b + "px " + -R + "px",
|
|
1508
|
-
threshold: se(0, Te(1, c)) || 1
|
|
1509
|
-
};
|
|
1510
|
-
let T = !0;
|
|
1511
|
-
function j(O) {
|
|
1512
|
-
const D = O[0].intersectionRatio;
|
|
1513
|
-
if (D !== c) {
|
|
1514
|
-
if (!T)
|
|
1515
|
-
return a();
|
|
1516
|
-
D ? a(!1, D) : n = setTimeout(() => {
|
|
1517
|
-
a(!1, 1e-7);
|
|
1518
|
-
}, 100);
|
|
1519
|
-
}
|
|
1520
|
-
T = !1;
|
|
1521
|
-
}
|
|
1522
|
-
try {
|
|
1523
|
-
e = new IntersectionObserver(j, {
|
|
1524
|
-
...y,
|
|
1525
|
-
// Handle <iframe>s
|
|
1526
|
-
root: o.ownerDocument
|
|
1527
|
-
});
|
|
1528
|
-
} catch {
|
|
1529
|
-
e = new IntersectionObserver(j, y);
|
|
1530
|
-
}
|
|
1531
|
-
e.observe(t);
|
|
1532
|
-
}
|
|
1533
|
-
return a(!0), s;
|
|
1534
|
-
}
|
|
1535
|
-
function lr(t, r, e, n) {
|
|
1536
|
-
n === void 0 && (n = {});
|
|
1537
|
-
const {
|
|
1538
|
-
ancestorScroll: o = !0,
|
|
1539
|
-
ancestorResize: s = !0,
|
|
1540
|
-
elementResize: a = typeof ResizeObserver == "function",
|
|
1541
|
-
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1542
|
-
animationFrame: c = !1
|
|
1543
|
-
} = n, u = tt(t), d = o || s ? [...u ? pe(u) : [], ...pe(r)] : [];
|
|
1544
|
-
d.forEach((p) => {
|
|
1545
|
-
o && p.addEventListener("scroll", e, {
|
|
1546
|
-
passive: !0
|
|
1547
|
-
}), s && p.addEventListener("resize", e);
|
|
1548
|
-
});
|
|
1549
|
-
const m = u && l ? ar(u, e) : null;
|
|
1550
|
-
let x = -1, g = null;
|
|
1551
|
-
a && (g = new ResizeObserver((p) => {
|
|
1552
|
-
let [y] = p;
|
|
1553
|
-
y && y.target === u && g && (g.unobserve(r), cancelAnimationFrame(x), x = requestAnimationFrame(() => {
|
|
1554
|
-
g && g.observe(r);
|
|
1555
|
-
})), e();
|
|
1556
|
-
}), u && !c && g.observe(u), g.observe(r));
|
|
1557
|
-
let h, b = c ? le(t) : null;
|
|
1558
|
-
c && R();
|
|
1559
|
-
function R() {
|
|
1560
|
-
const p = le(t);
|
|
1561
|
-
b && (p.x !== b.x || p.y !== b.y || p.width !== b.width || p.height !== b.height) && e(), b = p, h = requestAnimationFrame(R);
|
|
1562
|
-
}
|
|
1563
|
-
return e(), () => {
|
|
1564
|
-
d.forEach((p) => {
|
|
1565
|
-
o && p.removeEventListener("scroll", e), s && p.removeEventListener("resize", e);
|
|
1566
|
-
}), m && m(), g && g.disconnect(), g = null, c && cancelAnimationFrame(h);
|
|
1567
|
-
};
|
|
1568
|
-
}
|
|
1569
|
-
const cr = (t, r, e) => {
|
|
1570
|
-
const n = /* @__PURE__ */ new Map(), o = {
|
|
1571
|
-
platform: sr,
|
|
1572
|
-
...e
|
|
1573
|
-
}, s = {
|
|
1574
|
-
...o.platform,
|
|
1575
|
-
_c: n
|
|
1576
|
-
};
|
|
1577
|
-
return Vn(t, r, {
|
|
1578
|
-
...o,
|
|
1579
|
-
platform: s
|
|
1580
|
-
});
|
|
1581
|
-
};
|
|
1582
|
-
var Oe = typeof document < "u" ? En : Se;
|
|
1583
|
-
function Ae(t, r) {
|
|
1584
|
-
if (t === r)
|
|
1585
|
-
return !0;
|
|
1586
|
-
if (typeof t != typeof r)
|
|
1587
|
-
return !1;
|
|
1588
|
-
if (typeof t == "function" && t.toString() === r.toString())
|
|
1589
|
-
return !0;
|
|
1590
|
-
let e, n, o;
|
|
1591
|
-
if (t && r && typeof t == "object") {
|
|
1592
|
-
if (Array.isArray(t)) {
|
|
1593
|
-
if (e = t.length, e != r.length)
|
|
1594
|
-
return !1;
|
|
1595
|
-
for (n = e; n-- !== 0; )
|
|
1596
|
-
if (!Ae(t[n], r[n]))
|
|
1597
|
-
return !1;
|
|
1598
|
-
return !0;
|
|
1599
|
-
}
|
|
1600
|
-
if (o = Object.keys(t), e = o.length, e !== Object.keys(r).length)
|
|
1601
|
-
return !1;
|
|
1602
|
-
for (n = e; n-- !== 0; )
|
|
1603
|
-
if (!{}.hasOwnProperty.call(r, o[n]))
|
|
1604
|
-
return !1;
|
|
1605
|
-
for (n = e; n-- !== 0; ) {
|
|
1606
|
-
const s = o[n];
|
|
1607
|
-
if (!(s === "_owner" && t.$$typeof) && !Ae(t[s], r[s]))
|
|
1608
|
-
return !1;
|
|
1609
|
-
}
|
|
1610
|
-
return !0;
|
|
1611
|
-
}
|
|
1612
|
-
return t !== t && r !== r;
|
|
1613
|
-
}
|
|
1614
|
-
function Kt(t) {
|
|
1615
|
-
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1616
|
-
}
|
|
1617
|
-
function jt(t, r) {
|
|
1618
|
-
const e = Kt(t);
|
|
1619
|
-
return Math.round(r * e) / e;
|
|
1620
|
-
}
|
|
1621
|
-
function kt(t) {
|
|
1622
|
-
const r = M.useRef(t);
|
|
1623
|
-
return Oe(() => {
|
|
1624
|
-
r.current = t;
|
|
1625
|
-
}), r;
|
|
1626
|
-
}
|
|
1627
|
-
function ur(t) {
|
|
1628
|
-
t === void 0 && (t = {});
|
|
1629
|
-
const {
|
|
1630
|
-
placement: r = "bottom",
|
|
1631
|
-
strategy: e = "absolute",
|
|
1632
|
-
middleware: n = [],
|
|
1633
|
-
platform: o,
|
|
1634
|
-
elements: {
|
|
1635
|
-
reference: s,
|
|
1636
|
-
floating: a
|
|
1637
|
-
} = {},
|
|
1638
|
-
transform: l = !0,
|
|
1639
|
-
whileElementsMounted: c,
|
|
1640
|
-
open: u
|
|
1641
|
-
} = t, [d, m] = M.useState({
|
|
1642
|
-
x: 0,
|
|
1643
|
-
y: 0,
|
|
1644
|
-
strategy: e,
|
|
1645
|
-
placement: r,
|
|
1646
|
-
middlewareData: {},
|
|
1647
|
-
isPositioned: !1
|
|
1648
|
-
}), [x, g] = M.useState(n);
|
|
1649
|
-
Ae(x, n) || g(n);
|
|
1650
|
-
const [h, b] = M.useState(null), [R, p] = M.useState(null), y = M.useCallback((A) => {
|
|
1651
|
-
A != D.current && (D.current = A, b(A));
|
|
1652
|
-
}, [b]), T = M.useCallback((A) => {
|
|
1653
|
-
A !== z.current && (z.current = A, p(A));
|
|
1654
|
-
}, [p]), j = s || h, O = a || R, D = M.useRef(null), z = M.useRef(null), F = M.useRef(d), Z = kt(c), re = kt(o), J = M.useCallback(() => {
|
|
1655
|
-
if (!D.current || !z.current)
|
|
1656
|
-
return;
|
|
1657
|
-
const A = {
|
|
1658
|
-
placement: r,
|
|
1659
|
-
strategy: e,
|
|
1660
|
-
middleware: x
|
|
1661
|
-
};
|
|
1662
|
-
re.current && (A.platform = re.current), cr(D.current, z.current, A).then((Y) => {
|
|
1663
|
-
const X = {
|
|
1664
|
-
...Y,
|
|
1665
|
-
isPositioned: !0
|
|
1666
|
-
};
|
|
1667
|
-
W.current && !Ae(F.current, X) && (F.current = X, Cn.flushSync(() => {
|
|
1668
|
-
m(X);
|
|
1669
|
-
}));
|
|
1670
|
-
});
|
|
1671
|
-
}, [x, r, e, re]);
|
|
1672
|
-
Oe(() => {
|
|
1673
|
-
u === !1 && F.current.isPositioned && (F.current.isPositioned = !1, m((A) => ({
|
|
1674
|
-
...A,
|
|
1675
|
-
isPositioned: !1
|
|
1676
|
-
})));
|
|
1677
|
-
}, [u]);
|
|
1678
|
-
const W = M.useRef(!1);
|
|
1679
|
-
Oe(() => (W.current = !0, () => {
|
|
1680
|
-
W.current = !1;
|
|
1681
|
-
}), []), Oe(() => {
|
|
1682
|
-
if (j && (D.current = j), O && (z.current = O), j && O) {
|
|
1683
|
-
if (Z.current)
|
|
1684
|
-
return Z.current(j, O, J);
|
|
1685
|
-
J();
|
|
1686
|
-
}
|
|
1687
|
-
}, [j, O, J, Z]);
|
|
1688
|
-
const L = M.useMemo(() => ({
|
|
1689
|
-
reference: D,
|
|
1690
|
-
floating: z,
|
|
1691
|
-
setReference: y,
|
|
1692
|
-
setFloating: T
|
|
1693
|
-
}), [y, T]), I = M.useMemo(() => ({
|
|
1694
|
-
reference: j,
|
|
1695
|
-
floating: O
|
|
1696
|
-
}), [j, O]), V = M.useMemo(() => {
|
|
1697
|
-
const A = {
|
|
1698
|
-
position: e,
|
|
1699
|
-
left: 0,
|
|
1700
|
-
top: 0
|
|
1701
|
-
};
|
|
1702
|
-
if (!I.floating)
|
|
1703
|
-
return A;
|
|
1704
|
-
const Y = jt(I.floating, d.x), X = jt(I.floating, d.y);
|
|
1705
|
-
return l ? {
|
|
1706
|
-
...A,
|
|
1707
|
-
transform: "translate(" + Y + "px, " + X + "px)",
|
|
1708
|
-
...Kt(I.floating) >= 1.5 && {
|
|
1709
|
-
willChange: "transform"
|
|
1710
|
-
}
|
|
1711
|
-
} : {
|
|
1712
|
-
position: e,
|
|
1713
|
-
left: Y,
|
|
1714
|
-
top: X
|
|
1715
|
-
};
|
|
1716
|
-
}, [e, l, I.floating, d.x, d.y]);
|
|
1717
|
-
return M.useMemo(() => ({
|
|
1718
|
-
...d,
|
|
1719
|
-
update: J,
|
|
1720
|
-
refs: L,
|
|
1721
|
-
elements: I,
|
|
1722
|
-
floatingStyles: V
|
|
1723
|
-
}), [d, J, L, I, V]);
|
|
1724
|
-
}
|
|
1725
|
-
function fr(t, r) {
|
|
1726
|
-
const e = (n) => {
|
|
1727
|
-
!t.current || t.current.contains(n.target) || r(!0);
|
|
1728
|
-
};
|
|
1729
|
-
return document.addEventListener("mousedown", e), () => {
|
|
1730
|
-
document.removeEventListener("mousedown", e);
|
|
1731
|
-
};
|
|
1732
|
-
}
|
|
1733
|
-
const qt = (t) => {
|
|
1734
|
-
let {
|
|
1735
|
-
className: r,
|
|
1736
|
-
placement: e = "bottom-start",
|
|
1737
|
-
trigger: n = "hover",
|
|
1738
|
-
content: o,
|
|
1739
|
-
children: s,
|
|
1740
|
-
onClose: a,
|
|
1741
|
-
onOpen: l,
|
|
1742
|
-
disabled: c = !1,
|
|
1743
|
-
show: u = !1,
|
|
1744
|
-
setShow: d,
|
|
1745
|
-
role: m = "tooltip"
|
|
1746
|
-
} = t;
|
|
1747
|
-
const [x, g] = Me(u), h = () => d !== void 0 && u !== void 0 ? u : x, b = () => d !== void 0 && u !== void 0 ? d : g, { x: R, y: p, strategy: y, refs: T } = ur({
|
|
1748
|
-
open: h(),
|
|
1749
|
-
middleware: [Wn(4), $n(), Yn()],
|
|
1750
|
-
whileElementsMounted: lr,
|
|
1751
|
-
placement: e
|
|
1752
|
-
}), j = Rn();
|
|
1753
|
-
return Se(() => fr(T.floating, (O) => {
|
|
1754
|
-
O && b()(!1);
|
|
1755
|
-
}), []), /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
1756
|
-
/* @__PURE__ */ w.jsx(
|
|
1757
|
-
K,
|
|
1758
|
-
{
|
|
1759
|
-
className: "z-auto block min-w-max",
|
|
1760
|
-
id: `zen__popover-${j}`,
|
|
1761
|
-
ref: T.setReference,
|
|
1762
|
-
onClick: (O) => {
|
|
1763
|
-
if (n === "click") {
|
|
1764
|
-
if (c)
|
|
1765
|
-
return;
|
|
1766
|
-
h() ? (b()(!1), a == null || a()) : (b()(!0), l == null || l());
|
|
1767
|
-
}
|
|
1768
|
-
O.stopPropagation();
|
|
1769
|
-
},
|
|
1770
|
-
role: m,
|
|
1771
|
-
asChild: !0,
|
|
1772
|
-
children: s
|
|
1773
|
-
}
|
|
1774
|
-
),
|
|
1775
|
-
h() && On(
|
|
1776
|
-
/* @__PURE__ */ w.jsx(
|
|
1777
|
-
ee,
|
|
1778
|
-
{
|
|
1779
|
-
onClick: (O) => O.stopPropagation(),
|
|
1780
|
-
visible: h(),
|
|
1781
|
-
role: "tooltip",
|
|
1782
|
-
className: B(
|
|
1783
|
-
"zen__popover z-50 w-fit rounded border border-border bg-background shadow-secondary",
|
|
1784
|
-
r
|
|
1785
|
-
),
|
|
1786
|
-
ref: T.setFloating,
|
|
1787
|
-
style: {
|
|
1788
|
-
position: y,
|
|
1789
|
-
top: p ?? 0,
|
|
1790
|
-
left: R ?? 0
|
|
1791
|
-
},
|
|
1792
|
-
children: o
|
|
1793
|
-
}
|
|
1794
|
-
),
|
|
1795
|
-
document.body
|
|
1796
|
-
)
|
|
1797
|
-
] });
|
|
1798
|
-
}, dr = (t) => {
|
|
1799
|
-
var b, R;
|
|
1800
|
-
const {
|
|
1801
|
-
items: r = [],
|
|
1802
|
-
children: e,
|
|
1803
|
-
moreItemsLabel: n = "",
|
|
1804
|
-
parentRef: o,
|
|
1805
|
-
data: s,
|
|
1806
|
-
estimator: a = (p, y) => y + 30,
|
|
1807
|
-
font: l = "12px Inter",
|
|
1808
|
-
badgeVariant: c = "secondary",
|
|
1809
|
-
badgeStyles: u
|
|
1810
|
-
} = t, [d, m] = Me({
|
|
1811
|
-
visible: r,
|
|
1812
|
-
hidden: []
|
|
1813
|
-
}), x = Xe(() => {
|
|
1814
|
-
let y = document.createElement("canvas").getContext("2d");
|
|
1815
|
-
return y && (y.font = l), y;
|
|
1816
|
-
}, []), g = () => {
|
|
1817
|
-
const p = o == null ? void 0 : o.current;
|
|
1818
|
-
if (!p)
|
|
1819
|
-
return;
|
|
1820
|
-
const y = p.offsetWidth, T = [], j = [], O = a(n, x.measureText(n).width + 10);
|
|
1821
|
-
h == null || h.reduce((D, z, F) => (D + z + O > y - 20 ? j.push(r[F]) : T.push(r[F]), D + z), 0), m({
|
|
1822
|
-
visible: T,
|
|
1823
|
-
hidden: j
|
|
1824
|
-
});
|
|
1825
|
-
}, h = Xe(
|
|
1826
|
-
() => (r == null ? void 0 : r.map((p) => a(p, x.measureText(p).width))) ?? [],
|
|
1827
|
-
[r]
|
|
1828
|
-
);
|
|
1829
|
-
return Se(() => {
|
|
1830
|
-
g();
|
|
1831
|
-
}, [r]), Se(() => {
|
|
1832
|
-
if (!(o != null && o.current))
|
|
1833
|
-
return;
|
|
1834
|
-
const p = new ResizeObserver(() => {
|
|
1835
|
-
g();
|
|
1836
|
-
});
|
|
1837
|
-
return p.observe(o.current), () => {
|
|
1838
|
-
p.disconnect();
|
|
1839
|
-
};
|
|
1840
|
-
}, [r]), /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
1841
|
-
(b = d.visible) == null ? void 0 : b.map((p, y) => e(p, y, s == null ? void 0 : s[y])),
|
|
1842
|
-
((R = d.hidden) == null ? void 0 : R.length) > 0 && /* @__PURE__ */ w.jsx(
|
|
1843
|
-
qt,
|
|
1844
|
-
{
|
|
1845
|
-
trigger: "click",
|
|
1846
|
-
content: /* @__PURE__ */ w.jsx(ee, { className: "grid max-h-60 grid-flow-row grid-cols-2 gap-3 overflow-auto p-2", children: d.hidden.map(
|
|
1847
|
-
(p, y) => e(
|
|
1848
|
-
p,
|
|
1849
|
-
d.visible.length + y,
|
|
1850
|
-
s == null ? void 0 : s[d.visible.length + y]
|
|
1851
|
-
)
|
|
1852
|
-
) }),
|
|
1853
|
-
children: /* @__PURE__ */ w.jsx(Nt, { className: u, variant: c, children: /* @__PURE__ */ w.jsx(K, { tag: "p", children: `+${d.hidden.length} ${n}` }) }, "more_items_button")
|
|
1854
|
-
}
|
|
1855
|
-
)
|
|
1856
|
-
] });
|
|
1857
|
-
};
|
|
1858
|
-
function mr(t) {
|
|
1859
|
-
return /* @__PURE__ */ w.jsx(
|
|
1860
|
-
"svg",
|
|
1861
|
-
{
|
|
1862
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1863
|
-
fill: "none",
|
|
1864
|
-
viewBox: "0 0 24 24",
|
|
1865
|
-
strokeWidth: 1.5,
|
|
1866
|
-
stroke: "currentColor",
|
|
1867
|
-
className: "h-6 w-6",
|
|
1868
|
-
...t,
|
|
1869
|
-
children: /* @__PURE__ */ w.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m19.5 8.25-7.5 7.5-7.5-7.5" })
|
|
1870
|
-
}
|
|
1871
|
-
);
|
|
1872
|
-
}
|
|
1873
|
-
function hr(t) {
|
|
1874
|
-
return /* @__PURE__ */ w.jsx(
|
|
1875
|
-
"svg",
|
|
1876
|
-
{
|
|
1877
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1878
|
-
fill: "none",
|
|
1879
|
-
viewBox: "0 0 24 24",
|
|
1880
|
-
strokeWidth: 1.5,
|
|
1881
|
-
stroke: "currentColor",
|
|
1882
|
-
className: "h-6 w-6",
|
|
1883
|
-
...t,
|
|
1884
|
-
children: /* @__PURE__ */ w.jsx(
|
|
1885
|
-
"path",
|
|
1886
|
-
{
|
|
1887
|
-
strokeLinecap: "round",
|
|
1888
|
-
strokeLinejoin: "round",
|
|
1889
|
-
d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"
|
|
1890
|
-
}
|
|
1891
|
-
)
|
|
1892
|
-
}
|
|
1893
|
-
);
|
|
1894
|
-
}
|
|
1895
|
-
function gr(t) {
|
|
1896
|
-
return /* @__PURE__ */ w.jsx(
|
|
1897
|
-
"svg",
|
|
1898
|
-
{
|
|
1899
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1900
|
-
fill: "none",
|
|
1901
|
-
viewBox: "0 0 24 24",
|
|
1902
|
-
strokeWidth: 1.5,
|
|
1903
|
-
stroke: "currentColor",
|
|
1904
|
-
className: "h-6 w-6",
|
|
1905
|
-
...t,
|
|
1906
|
-
children: /* @__PURE__ */ w.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18 18 6M6 6l12 12" })
|
|
1907
|
-
}
|
|
1908
|
-
);
|
|
1909
|
-
}
|
|
1910
|
-
/**
|
|
1911
|
-
* react-virtual
|
|
1912
|
-
*
|
|
1913
|
-
* Copyright (c) TanStack
|
|
1914
|
-
*
|
|
1915
|
-
* This source code is licensed under the MIT license found in the
|
|
1916
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
1917
|
-
*
|
|
1918
|
-
* @license MIT
|
|
1919
|
-
*/
|
|
1920
|
-
function Ie() {
|
|
1921
|
-
return Ie = Object.assign ? Object.assign.bind() : function(t) {
|
|
1922
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
1923
|
-
var e = arguments[r];
|
|
1924
|
-
for (var n in e)
|
|
1925
|
-
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
1926
|
-
}
|
|
1927
|
-
return t;
|
|
1928
|
-
}, Ie.apply(this, arguments);
|
|
1929
|
-
}
|
|
1930
|
-
/**
|
|
1931
|
-
* virtual-core
|
|
1932
|
-
*
|
|
1933
|
-
* Copyright (c) TanStack
|
|
1934
|
-
*
|
|
1935
|
-
* This source code is licensed under the MIT license found in the
|
|
1936
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
1937
|
-
*
|
|
1938
|
-
* @license MIT
|
|
1939
|
-
*/
|
|
1940
|
-
function Pe() {
|
|
1941
|
-
return Pe = Object.assign ? Object.assign.bind() : function(t) {
|
|
1942
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
1943
|
-
var e = arguments[r];
|
|
1944
|
-
for (var n in e)
|
|
1945
|
-
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
1946
|
-
}
|
|
1947
|
-
return t;
|
|
1948
|
-
}, Pe.apply(this, arguments);
|
|
1949
|
-
}
|
|
1950
|
-
/**
|
|
1951
|
-
* virtual-core
|
|
1952
|
-
*
|
|
1953
|
-
* Copyright (c) TanStack
|
|
1954
|
-
*
|
|
1955
|
-
* This source code is licensed under the MIT license found in the
|
|
1956
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
1957
|
-
*
|
|
1958
|
-
* @license MIT
|
|
1959
|
-
*/
|
|
1960
|
-
function fe(t, r, e) {
|
|
1961
|
-
var n, o = (n = e.initialDeps) != null ? n : [], s;
|
|
1962
|
-
return function() {
|
|
1963
|
-
var a;
|
|
1964
|
-
e.key && e.debug != null && e.debug() && (a = Date.now());
|
|
1965
|
-
var l = t(), c = l.length !== o.length || l.some(function(h, b) {
|
|
1966
|
-
return o[b] !== h;
|
|
1967
|
-
});
|
|
1968
|
-
if (!c)
|
|
1969
|
-
return s;
|
|
1970
|
-
o = l;
|
|
1971
|
-
var u;
|
|
1972
|
-
if (e.key && e.debug != null && e.debug() && (u = Date.now()), s = r.apply(void 0, l), e.key && e.debug != null && e.debug()) {
|
|
1973
|
-
var d = Math.round((Date.now() - a) * 100) / 100, m = Math.round((Date.now() - u) * 100) / 100, x = m / 16, g = function(b, R) {
|
|
1974
|
-
for (b = String(b); b.length < R; )
|
|
1975
|
-
b = " " + b;
|
|
1976
|
-
return b;
|
|
1977
|
-
};
|
|
1978
|
-
console.info("%c⏱ " + g(m, 5) + " /" + g(d, 5) + " ms", `
|
|
1979
|
-
font-size: .6rem;
|
|
1980
|
-
font-weight: bold;
|
|
1981
|
-
color: hsl(` + Math.max(0, Math.min(120 - 120 * x, 120)) + "deg 100% 31%);", e == null ? void 0 : e.key);
|
|
1982
|
-
}
|
|
1983
|
-
return e == null || e.onChange == null || e.onChange(s), s;
|
|
1984
|
-
};
|
|
1985
|
-
}
|
|
1986
|
-
function qe(t, r) {
|
|
1987
|
-
if (t === void 0)
|
|
1988
|
-
throw new Error("Unexpected undefined" + (r ? ": " + r : ""));
|
|
1989
|
-
return t;
|
|
1990
|
-
}
|
|
1991
|
-
var vr = function(r, e) {
|
|
1992
|
-
return Math.abs(r - e) < 1;
|
|
1993
|
-
};
|
|
1994
|
-
/**
|
|
1995
|
-
* virtual-core
|
|
1996
|
-
*
|
|
1997
|
-
* Copyright (c) TanStack
|
|
1998
|
-
*
|
|
1999
|
-
* This source code is licensed under the MIT license found in the
|
|
2000
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
2001
|
-
*
|
|
2002
|
-
* @license MIT
|
|
2003
|
-
*/
|
|
2004
|
-
var pr = function(r) {
|
|
2005
|
-
return r;
|
|
2006
|
-
}, br = function(r) {
|
|
2007
|
-
for (var e = Math.max(r.startIndex - r.overscan, 0), n = Math.min(r.endIndex + r.overscan, r.count - 1), o = [], s = e; s <= n; s++)
|
|
2008
|
-
o.push(s);
|
|
2009
|
-
return o;
|
|
2010
|
-
}, yr = function(r, e) {
|
|
2011
|
-
var n = r.scrollElement;
|
|
2012
|
-
if (n) {
|
|
2013
|
-
var o = function(l) {
|
|
2014
|
-
var c = l.width, u = l.height;
|
|
2015
|
-
e({
|
|
2016
|
-
width: Math.round(c),
|
|
2017
|
-
height: Math.round(u)
|
|
2018
|
-
});
|
|
2019
|
-
};
|
|
2020
|
-
o(n.getBoundingClientRect());
|
|
2021
|
-
var s = new ResizeObserver(function(a) {
|
|
2022
|
-
var l = a[0];
|
|
2023
|
-
if (l != null && l.borderBoxSize) {
|
|
2024
|
-
var c = l.borderBoxSize[0];
|
|
2025
|
-
if (c) {
|
|
2026
|
-
o({
|
|
2027
|
-
width: c.inlineSize,
|
|
2028
|
-
height: c.blockSize
|
|
2029
|
-
});
|
|
2030
|
-
return;
|
|
2031
|
-
}
|
|
2032
|
-
}
|
|
2033
|
-
o(n.getBoundingClientRect());
|
|
2034
|
-
});
|
|
2035
|
-
return s.observe(n, {
|
|
2036
|
-
box: "border-box"
|
|
2037
|
-
}), function() {
|
|
2038
|
-
s.unobserve(n);
|
|
2039
|
-
};
|
|
2040
|
-
}
|
|
2041
|
-
}, xr = function(r, e) {
|
|
2042
|
-
var n = r.scrollElement;
|
|
2043
|
-
if (n) {
|
|
2044
|
-
var o = function() {
|
|
2045
|
-
e(n[r.options.horizontal ? "scrollLeft" : "scrollTop"]);
|
|
2046
|
-
};
|
|
2047
|
-
return o(), n.addEventListener("scroll", o, {
|
|
2048
|
-
passive: !0
|
|
2049
|
-
}), function() {
|
|
2050
|
-
n.removeEventListener("scroll", o);
|
|
2051
|
-
};
|
|
2052
|
-
}
|
|
2053
|
-
}, wr = function(r, e, n) {
|
|
2054
|
-
if (e != null && e.borderBoxSize) {
|
|
2055
|
-
var o = e.borderBoxSize[0];
|
|
2056
|
-
if (o) {
|
|
2057
|
-
var s = Math.round(o[n.options.horizontal ? "inlineSize" : "blockSize"]);
|
|
2058
|
-
return s;
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
return Math.round(r.getBoundingClientRect()[n.options.horizontal ? "width" : "height"]);
|
|
2062
|
-
}, Er = function(r, e, n) {
|
|
2063
|
-
var o, s, a = e.adjustments, l = a === void 0 ? 0 : a, c = e.behavior, u = r + l;
|
|
2064
|
-
(o = n.scrollElement) == null || o.scrollTo == null || o.scrollTo((s = {}, s[n.options.horizontal ? "left" : "top"] = u, s.behavior = c, s));
|
|
2065
|
-
}, Rr = function(r) {
|
|
2066
|
-
var e = this;
|
|
2067
|
-
this.unsubs = [], this.scrollElement = null, this.isScrolling = !1, this.isScrollingTimeoutId = null, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollDirection = null, this.scrollAdjustments = 0, this.measureElementCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ function() {
|
|
2068
|
-
var n = null, o = function() {
|
|
2069
|
-
return n || (typeof ResizeObserver < "u" ? n = new ResizeObserver(function(a) {
|
|
2070
|
-
a.forEach(function(l) {
|
|
2071
|
-
e._measureElement(l.target, l);
|
|
2072
|
-
});
|
|
2073
|
-
}) : null);
|
|
2074
|
-
};
|
|
2075
|
-
return {
|
|
2076
|
-
disconnect: function() {
|
|
2077
|
-
var a;
|
|
2078
|
-
return (a = o()) == null ? void 0 : a.disconnect();
|
|
2079
|
-
},
|
|
2080
|
-
observe: function(a) {
|
|
2081
|
-
var l;
|
|
2082
|
-
return (l = o()) == null ? void 0 : l.observe(a, {
|
|
2083
|
-
box: "border-box"
|
|
2084
|
-
});
|
|
2085
|
-
},
|
|
2086
|
-
unobserve: function(a) {
|
|
2087
|
-
var l;
|
|
2088
|
-
return (l = o()) == null ? void 0 : l.unobserve(a);
|
|
2089
|
-
}
|
|
2090
|
-
};
|
|
2091
|
-
}(), this.range = null, this.setOptions = function(n) {
|
|
2092
|
-
Object.entries(n).forEach(function(o) {
|
|
2093
|
-
var s = o[0], a = o[1];
|
|
2094
|
-
typeof a > "u" && delete n[s];
|
|
2095
|
-
}), e.options = Pe({
|
|
2096
|
-
debug: !1,
|
|
2097
|
-
initialOffset: 0,
|
|
2098
|
-
overscan: 1,
|
|
2099
|
-
paddingStart: 0,
|
|
2100
|
-
paddingEnd: 0,
|
|
2101
|
-
scrollPaddingStart: 0,
|
|
2102
|
-
scrollPaddingEnd: 0,
|
|
2103
|
-
horizontal: !1,
|
|
2104
|
-
getItemKey: pr,
|
|
2105
|
-
rangeExtractor: br,
|
|
2106
|
-
onChange: function() {
|
|
2107
|
-
},
|
|
2108
|
-
measureElement: wr,
|
|
2109
|
-
initialRect: {
|
|
2110
|
-
width: 0,
|
|
2111
|
-
height: 0
|
|
2112
|
-
},
|
|
2113
|
-
scrollMargin: 0,
|
|
2114
|
-
scrollingDelay: 150,
|
|
2115
|
-
indexAttribute: "data-index",
|
|
2116
|
-
initialMeasurementsCache: [],
|
|
2117
|
-
lanes: 1
|
|
2118
|
-
}, n);
|
|
2119
|
-
}, this.notify = function(n) {
|
|
2120
|
-
e.options.onChange == null || e.options.onChange(e, n);
|
|
2121
|
-
}, this.maybeNotify = fe(function() {
|
|
2122
|
-
return e.calculateRange(), [e.isScrolling, e.range ? e.range.startIndex : null, e.range ? e.range.endIndex : null];
|
|
2123
|
-
}, function(n) {
|
|
2124
|
-
e.notify(n);
|
|
2125
|
-
}, {
|
|
2126
|
-
key: process.env.NODE_ENV !== "production" && "maybeNotify",
|
|
2127
|
-
debug: function() {
|
|
2128
|
-
return e.options.debug;
|
|
2129
|
-
},
|
|
2130
|
-
initialDeps: [this.isScrolling, this.range ? this.range.startIndex : null, this.range ? this.range.endIndex : null]
|
|
2131
|
-
}), this.cleanup = function() {
|
|
2132
|
-
e.unsubs.filter(Boolean).forEach(function(n) {
|
|
2133
|
-
return n();
|
|
2134
|
-
}), e.unsubs = [], e.scrollElement = null;
|
|
2135
|
-
}, this._didMount = function() {
|
|
2136
|
-
return e.measureElementCache.forEach(e.observer.observe), function() {
|
|
2137
|
-
e.observer.disconnect(), e.cleanup();
|
|
2138
|
-
};
|
|
2139
|
-
}, this._willUpdate = function() {
|
|
2140
|
-
var n = e.options.getScrollElement();
|
|
2141
|
-
e.scrollElement !== n && (e.cleanup(), e.scrollElement = n, e._scrollToOffset(e.scrollOffset, {
|
|
2142
|
-
adjustments: void 0,
|
|
2143
|
-
behavior: void 0
|
|
2144
|
-
}), e.unsubs.push(e.options.observeElementRect(e, function(o) {
|
|
2145
|
-
e.scrollRect = o, e.maybeNotify();
|
|
2146
|
-
})), e.unsubs.push(e.options.observeElementOffset(e, function(o) {
|
|
2147
|
-
e.scrollAdjustments = 0, e.scrollOffset !== o && (e.isScrollingTimeoutId !== null && (clearTimeout(e.isScrollingTimeoutId), e.isScrollingTimeoutId = null), e.isScrolling = !0, e.scrollDirection = e.scrollOffset < o ? "forward" : "backward", e.scrollOffset = o, e.maybeNotify(), e.isScrollingTimeoutId = setTimeout(function() {
|
|
2148
|
-
e.isScrollingTimeoutId = null, e.isScrolling = !1, e.scrollDirection = null, e.maybeNotify();
|
|
2149
|
-
}, e.options.scrollingDelay));
|
|
2150
|
-
})));
|
|
2151
|
-
}, this.getSize = function() {
|
|
2152
|
-
return e.scrollRect[e.options.horizontal ? "width" : "height"];
|
|
2153
|
-
}, this.memoOptions = fe(function() {
|
|
2154
|
-
return [e.options.count, e.options.paddingStart, e.options.scrollMargin, e.options.getItemKey];
|
|
2155
|
-
}, function(n, o, s, a) {
|
|
2156
|
-
return e.pendingMeasuredCacheIndexes = [], {
|
|
2157
|
-
count: n,
|
|
2158
|
-
paddingStart: o,
|
|
2159
|
-
scrollMargin: s,
|
|
2160
|
-
getItemKey: a
|
|
2161
|
-
};
|
|
2162
|
-
}, {
|
|
2163
|
-
key: !1
|
|
2164
|
-
}), this.getFurthestMeasurement = function(n, o) {
|
|
2165
|
-
for (var s = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), l = o - 1; l >= 0; l--) {
|
|
2166
|
-
var c = n[l];
|
|
2167
|
-
if (!s.has(c.lane)) {
|
|
2168
|
-
var u = a.get(c.lane);
|
|
2169
|
-
if (u == null || c.end > u.end ? a.set(c.lane, c) : c.end < u.end && s.set(c.lane, !0), s.size === e.options.lanes)
|
|
2170
|
-
break;
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
return a.size === e.options.lanes ? Array.from(a.values()).sort(function(d, m) {
|
|
2174
|
-
return d.end - m.end;
|
|
2175
|
-
})[0] : void 0;
|
|
2176
|
-
}, this.getMeasurements = fe(function() {
|
|
2177
|
-
return [e.memoOptions(), e.itemSizeCache];
|
|
2178
|
-
}, function(n, o) {
|
|
2179
|
-
var s = n.count, a = n.paddingStart, l = n.scrollMargin, c = n.getItemKey, u = e.pendingMeasuredCacheIndexes.length > 0 ? Math.min.apply(Math, e.pendingMeasuredCacheIndexes) : 0;
|
|
2180
|
-
e.pendingMeasuredCacheIndexes = [];
|
|
2181
|
-
for (var d = e.measurementsCache.slice(0, u), m = u; m < s; m++) {
|
|
2182
|
-
var x = c(m), g = e.options.lanes === 1 ? d[m - 1] : e.getFurthestMeasurement(d, m), h = g ? g.end : a + l, b = o.get(x), R = typeof b == "number" ? b : e.options.estimateSize(m), p = h + R, y = g ? g.lane : m % e.options.lanes;
|
|
2183
|
-
d[m] = {
|
|
2184
|
-
index: m,
|
|
2185
|
-
start: h,
|
|
2186
|
-
size: R,
|
|
2187
|
-
end: p,
|
|
2188
|
-
key: x,
|
|
2189
|
-
lane: y
|
|
2190
|
-
};
|
|
2191
|
-
}
|
|
2192
|
-
return e.measurementsCache = d, d;
|
|
2193
|
-
}, {
|
|
2194
|
-
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
2195
|
-
debug: function() {
|
|
2196
|
-
return e.options.debug;
|
|
2197
|
-
}
|
|
2198
|
-
}), this.calculateRange = fe(function() {
|
|
2199
|
-
return [e.getMeasurements(), e.getSize(), e.scrollOffset];
|
|
2200
|
-
}, function(n, o, s) {
|
|
2201
|
-
return e.range = n.length > 0 && o > 0 ? Cr({
|
|
2202
|
-
measurements: n,
|
|
2203
|
-
outerSize: o,
|
|
2204
|
-
scrollOffset: s
|
|
2205
|
-
}) : null;
|
|
2206
|
-
}, {
|
|
2207
|
-
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
2208
|
-
debug: function() {
|
|
2209
|
-
return e.options.debug;
|
|
2210
|
-
}
|
|
2211
|
-
}), this.getIndexes = fe(function() {
|
|
2212
|
-
return [e.options.rangeExtractor, e.calculateRange(), e.options.overscan, e.options.count];
|
|
2213
|
-
}, function(n, o, s, a) {
|
|
2214
|
-
return o === null ? [] : n(Pe({}, o, {
|
|
2215
|
-
overscan: s,
|
|
2216
|
-
count: a
|
|
2217
|
-
}));
|
|
2218
|
-
}, {
|
|
2219
|
-
key: process.env.NODE_ENV !== "production" && "getIndexes",
|
|
2220
|
-
debug: function() {
|
|
2221
|
-
return e.options.debug;
|
|
2222
|
-
}
|
|
2223
|
-
}), this.indexFromElement = function(n) {
|
|
2224
|
-
var o = e.options.indexAttribute, s = n.getAttribute(o);
|
|
2225
|
-
return s ? parseInt(s, 10) : (console.warn("Missing attribute name '" + o + "={index}' on measured element."), -1);
|
|
2226
|
-
}, this._measureElement = function(n, o) {
|
|
2227
|
-
var s = e.measurementsCache[e.indexFromElement(n)];
|
|
2228
|
-
if (!s || !n.isConnected) {
|
|
2229
|
-
e.measureElementCache.forEach(function(c, u) {
|
|
2230
|
-
c === n && (e.observer.unobserve(n), e.measureElementCache.delete(u));
|
|
2231
|
-
});
|
|
2232
|
-
return;
|
|
2233
|
-
}
|
|
2234
|
-
var a = e.measureElementCache.get(s.key);
|
|
2235
|
-
a !== n && (a && e.observer.unobserve(a), e.observer.observe(n), e.measureElementCache.set(s.key, n));
|
|
2236
|
-
var l = e.options.measureElement(n, o, e);
|
|
2237
|
-
e.resizeItem(s, l);
|
|
2238
|
-
}, this.resizeItem = function(n, o) {
|
|
2239
|
-
var s, a = (s = e.itemSizeCache.get(n.key)) != null ? s : n.size, l = o - a;
|
|
2240
|
-
l !== 0 && (n.start < e.scrollOffset && (process.env.NODE_ENV !== "production" && e.options.debug && console.info("correction", l), e._scrollToOffset(e.scrollOffset, {
|
|
2241
|
-
adjustments: e.scrollAdjustments += l,
|
|
2242
|
-
behavior: void 0
|
|
2243
|
-
})), e.pendingMeasuredCacheIndexes.push(n.index), e.itemSizeCache = new Map(e.itemSizeCache.set(n.key, o)), e.notify(!1));
|
|
2244
|
-
}, this.measureElement = function(n) {
|
|
2245
|
-
n && e._measureElement(n, void 0);
|
|
2246
|
-
}, this.getVirtualItems = fe(function() {
|
|
2247
|
-
return [e.getIndexes(), e.getMeasurements()];
|
|
2248
|
-
}, function(n, o) {
|
|
2249
|
-
for (var s = [], a = 0, l = n.length; a < l; a++) {
|
|
2250
|
-
var c = n[a], u = o[c];
|
|
2251
|
-
s.push(u);
|
|
2252
|
-
}
|
|
2253
|
-
return s;
|
|
2254
|
-
}, {
|
|
2255
|
-
key: process.env.NODE_ENV !== "production" && "getIndexes",
|
|
2256
|
-
debug: function() {
|
|
2257
|
-
return e.options.debug;
|
|
2258
|
-
}
|
|
2259
|
-
}), this.getVirtualItemForOffset = function(n) {
|
|
2260
|
-
var o = e.getMeasurements();
|
|
2261
|
-
return qe(o[Xt(0, o.length - 1, function(s) {
|
|
2262
|
-
return qe(o[s]).start;
|
|
2263
|
-
}, n)]);
|
|
2264
|
-
}, this.getOffsetForAlignment = function(n, o) {
|
|
2265
|
-
var s = e.getSize();
|
|
2266
|
-
o === "auto" && (n <= e.scrollOffset ? o = "start" : n >= e.scrollOffset + s ? o = "end" : o = "start"), o === "start" ? n = n : o === "end" ? n = n - s : o === "center" && (n = n - s / 2);
|
|
2267
|
-
var a = e.options.horizontal ? "scrollWidth" : "scrollHeight", l = e.scrollElement ? "document" in e.scrollElement ? e.scrollElement.document.documentElement[a] : e.scrollElement[a] : 0, c = l - e.getSize();
|
|
2268
|
-
return Math.max(Math.min(c, n), 0);
|
|
2269
|
-
}, this.getOffsetForIndex = function(n, o) {
|
|
2270
|
-
o === void 0 && (o = "auto"), n = Math.max(0, Math.min(n, e.options.count - 1));
|
|
2271
|
-
var s = qe(e.getMeasurements()[n]);
|
|
2272
|
-
if (o === "auto")
|
|
2273
|
-
if (s.end >= e.scrollOffset + e.getSize() - e.options.scrollPaddingEnd)
|
|
2274
|
-
o = "end";
|
|
2275
|
-
else if (s.start <= e.scrollOffset + e.options.scrollPaddingStart)
|
|
2276
|
-
o = "start";
|
|
2277
|
-
else
|
|
2278
|
-
return [e.scrollOffset, o];
|
|
2279
|
-
var a = o === "end" ? s.end + e.options.scrollPaddingEnd : s.start - e.options.scrollPaddingStart;
|
|
2280
|
-
return [e.getOffsetForAlignment(a, o), o];
|
|
2281
|
-
}, this.isDynamicMode = function() {
|
|
2282
|
-
return e.measureElementCache.size > 0;
|
|
2283
|
-
}, this.cancelScrollToIndex = function() {
|
|
2284
|
-
e.scrollToIndexTimeoutId !== null && (clearTimeout(e.scrollToIndexTimeoutId), e.scrollToIndexTimeoutId = null);
|
|
2285
|
-
}, this.scrollToOffset = function(n, o) {
|
|
2286
|
-
var s = o === void 0 ? {} : o, a = s.align, l = a === void 0 ? "start" : a, c = s.behavior;
|
|
2287
|
-
e.cancelScrollToIndex(), c === "smooth" && e.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), e._scrollToOffset(e.getOffsetForAlignment(n, l), {
|
|
2288
|
-
adjustments: void 0,
|
|
2289
|
-
behavior: c
|
|
2290
|
-
});
|
|
2291
|
-
}, this.scrollToIndex = function(n, o) {
|
|
2292
|
-
var s = o === void 0 ? {} : o, a = s.align, l = a === void 0 ? "auto" : a, c = s.behavior;
|
|
2293
|
-
n = Math.max(0, Math.min(n, e.options.count - 1)), e.cancelScrollToIndex(), c === "smooth" && e.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");
|
|
2294
|
-
var u = e.getOffsetForIndex(n, l), d = u[0], m = u[1];
|
|
2295
|
-
e._scrollToOffset(d, {
|
|
2296
|
-
adjustments: void 0,
|
|
2297
|
-
behavior: c
|
|
2298
|
-
}), c !== "smooth" && e.isDynamicMode() && (e.scrollToIndexTimeoutId = setTimeout(function() {
|
|
2299
|
-
e.scrollToIndexTimeoutId = null;
|
|
2300
|
-
var x = e.measureElementCache.has(e.options.getItemKey(n));
|
|
2301
|
-
if (x) {
|
|
2302
|
-
var g = e.getOffsetForIndex(n, m), h = g[0];
|
|
2303
|
-
vr(h, e.scrollOffset) || e.scrollToIndex(n, {
|
|
2304
|
-
align: m,
|
|
2305
|
-
behavior: c
|
|
2306
|
-
});
|
|
2307
|
-
} else
|
|
2308
|
-
e.scrollToIndex(n, {
|
|
2309
|
-
align: m,
|
|
2310
|
-
behavior: c
|
|
2311
|
-
});
|
|
2312
|
-
}));
|
|
2313
|
-
}, this.scrollBy = function(n, o) {
|
|
2314
|
-
var s = o === void 0 ? {} : o, a = s.behavior;
|
|
2315
|
-
e.cancelScrollToIndex(), a === "smooth" && e.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), e._scrollToOffset(e.scrollOffset + n, {
|
|
2316
|
-
adjustments: void 0,
|
|
2317
|
-
behavior: a
|
|
2318
|
-
});
|
|
2319
|
-
}, this.getTotalSize = function() {
|
|
2320
|
-
var n;
|
|
2321
|
-
return (((n = e.getMeasurements()[e.options.count - 1]) == null ? void 0 : n.end) || e.options.paddingStart) - e.options.scrollMargin + e.options.paddingEnd;
|
|
2322
|
-
}, this._scrollToOffset = function(n, o) {
|
|
2323
|
-
var s = o.adjustments, a = o.behavior;
|
|
2324
|
-
e.options.scrollToFn(n, {
|
|
2325
|
-
behavior: a,
|
|
2326
|
-
adjustments: s
|
|
2327
|
-
}, e);
|
|
2328
|
-
}, this.measure = function() {
|
|
2329
|
-
e.itemSizeCache = /* @__PURE__ */ new Map(), e.notify(!1);
|
|
2330
|
-
}, this.setOptions(r), this.scrollRect = this.options.initialRect, this.scrollOffset = this.options.initialOffset, this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach(function(n) {
|
|
2331
|
-
e.itemSizeCache.set(n.key, n.size);
|
|
2332
|
-
}), this.maybeNotify();
|
|
2333
|
-
}, Xt = function(r, e, n, o) {
|
|
2334
|
-
for (; r <= e; ) {
|
|
2335
|
-
var s = (r + e) / 2 | 0, a = n(s);
|
|
2336
|
-
if (a < o)
|
|
2337
|
-
r = s + 1;
|
|
2338
|
-
else if (a > o)
|
|
2339
|
-
e = s - 1;
|
|
2340
|
-
else
|
|
2341
|
-
return s;
|
|
2342
|
-
}
|
|
2343
|
-
return r > 0 ? r - 1 : 0;
|
|
2344
|
-
};
|
|
2345
|
-
function Cr(t) {
|
|
2346
|
-
for (var r = t.measurements, e = t.outerSize, n = t.scrollOffset, o = r.length - 1, s = function(u) {
|
|
2347
|
-
return r[u].start;
|
|
2348
|
-
}, a = Xt(0, o, s, n), l = a; l < o && r[l].end < n + e; )
|
|
2349
|
-
l++;
|
|
2350
|
-
return {
|
|
2351
|
-
startIndex: a,
|
|
2352
|
-
endIndex: l
|
|
2353
|
-
};
|
|
2354
|
-
}
|
|
2355
|
-
/**
|
|
2356
|
-
* react-virtual
|
|
2357
|
-
*
|
|
2358
|
-
* Copyright (c) TanStack
|
|
2359
|
-
*
|
|
2360
|
-
* This source code is licensed under the MIT license found in the
|
|
2361
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
2362
|
-
*
|
|
2363
|
-
* @license MIT
|
|
2364
|
-
*/
|
|
2365
|
-
var Or = typeof document < "u" ? M.useLayoutEffect : M.useEffect;
|
|
2366
|
-
function Sr(t) {
|
|
2367
|
-
var r = M.useReducer(function() {
|
|
2368
|
-
return {};
|
|
2369
|
-
}, {})[1], e = Ie({}, t, {
|
|
2370
|
-
onChange: function(a, l) {
|
|
2371
|
-
l ? Sn(r) : r(), t.onChange == null || t.onChange(a, l);
|
|
2372
|
-
}
|
|
2373
|
-
}), n = M.useState(function() {
|
|
2374
|
-
return new Rr(e);
|
|
2375
|
-
}), o = n[0];
|
|
2376
|
-
return o.setOptions(e), M.useEffect(function() {
|
|
2377
|
-
return o._didMount();
|
|
2378
|
-
}, []), Or(function() {
|
|
2379
|
-
return o._willUpdate();
|
|
2380
|
-
}), o;
|
|
2381
|
-
}
|
|
2382
|
-
function Tr(t) {
|
|
2383
|
-
return Sr(Ie({
|
|
2384
|
-
observeElementRect: yr,
|
|
2385
|
-
observeElementOffset: xr,
|
|
2386
|
-
scrollToFn: Er
|
|
2387
|
-
}, t));
|
|
2388
|
-
}
|
|
2389
|
-
function Ar(t) {
|
|
2390
|
-
const {
|
|
2391
|
-
items: r,
|
|
2392
|
-
selected: e,
|
|
2393
|
-
className: n,
|
|
2394
|
-
onChange: o,
|
|
2395
|
-
disabled: s,
|
|
2396
|
-
placeholder: a = "Select an Item",
|
|
2397
|
-
multiple: l,
|
|
2398
|
-
width: c = "215px",
|
|
2399
|
-
height: u = "40px",
|
|
2400
|
-
mutable: d,
|
|
2401
|
-
onAdd: m,
|
|
2402
|
-
...x
|
|
2403
|
-
} = t, g = It(null), [h, b] = Me(!1);
|
|
2404
|
-
return /* @__PURE__ */ w.jsx(
|
|
2405
|
-
qt,
|
|
2406
|
-
{
|
|
2407
|
-
placement: "bottom",
|
|
2408
|
-
trigger: "click",
|
|
2409
|
-
show: h,
|
|
2410
|
-
setShow: b,
|
|
2411
|
-
role: "combobox",
|
|
2412
|
-
disabled: s,
|
|
2413
|
-
content: /* @__PURE__ */ w.jsx(
|
|
2414
|
-
_r,
|
|
2415
|
-
{
|
|
2416
|
-
...d ? { mutable: d, onAdd: m } : { mutable: d },
|
|
2417
|
-
...l ? { multiple: l, items: r, onChange: o, selected: e } : { items: r, onChange: o, selected: e },
|
|
2418
|
-
width: c
|
|
2419
|
-
}
|
|
2420
|
-
),
|
|
2421
|
-
children: /* @__PURE__ */ w.jsxs(
|
|
2422
|
-
ee,
|
|
2423
|
-
{
|
|
2424
|
-
style: { width: c, height: u },
|
|
2425
|
-
className: B(
|
|
2426
|
-
"inline-flex grow items-center justify-between rounded border-2 border-input bg-background p-2 transition",
|
|
2427
|
-
s ? "cursor-not-allowed bg-muted text-muted" : "cursor-pointer",
|
|
2428
|
-
h && "border-primary shadow-sm shadow-ring",
|
|
2429
|
-
n
|
|
2430
|
-
),
|
|
2431
|
-
children: [
|
|
2432
|
-
/* @__PURE__ */ w.jsx(
|
|
2433
|
-
ee,
|
|
2434
|
-
{
|
|
2435
|
-
className: B(
|
|
2436
|
-
"flex max-w-[calc(100%-30px)] flex-none grow items-center gap-1 text-sm",
|
|
2437
|
-
s ? "text-muted-foreground" : "text-foreground"
|
|
2438
|
-
),
|
|
2439
|
-
ref: g,
|
|
2440
|
-
children: l ? /* @__PURE__ */ w.jsx(
|
|
2441
|
-
dr,
|
|
2442
|
-
{
|
|
2443
|
-
items: e.map((R) => R.text),
|
|
2444
|
-
data: e,
|
|
2445
|
-
parentRef: g,
|
|
2446
|
-
badgeVariant: "secondary",
|
|
2447
|
-
badgeStyles: "!bg-input h-6 min-w-min gap-2 !bg-input",
|
|
2448
|
-
children: (R, p, y) => /* @__PURE__ */ w.jsxs(
|
|
2449
|
-
Nt,
|
|
2450
|
-
{
|
|
2451
|
-
className: "flex h-6 min-w-min gap-2 !bg-input pr-1",
|
|
2452
|
-
variant: "secondary",
|
|
2453
|
-
children: [
|
|
2454
|
-
R,
|
|
2455
|
-
/* @__PURE__ */ w.jsx(
|
|
2456
|
-
kn,
|
|
2457
|
-
{
|
|
2458
|
-
onClick: () => {
|
|
2459
|
-
o(e.filter((T) => T.key !== (y == null ? void 0 : y.key)));
|
|
2460
|
-
},
|
|
2461
|
-
variant: "icon",
|
|
2462
|
-
size: "icon",
|
|
2463
|
-
className: "group bg-muted p-0.5 hover:bg-muted-foreground ",
|
|
2464
|
-
children: /* @__PURE__ */ w.jsx(gr, { className: "size-3 transition duration-300 group-hover:rotate-90 group-hover:text-muted" })
|
|
2465
|
-
}
|
|
2466
|
-
)
|
|
2467
|
-
]
|
|
2468
|
-
},
|
|
2469
|
-
`collapsed_item_${p}`
|
|
2470
|
-
)
|
|
2471
|
-
}
|
|
2472
|
-
) : e.text ?? "Select an item"
|
|
2473
|
-
}
|
|
2474
|
-
),
|
|
2475
|
-
/* @__PURE__ */ w.jsx(
|
|
2476
|
-
mr,
|
|
2477
|
-
{
|
|
2478
|
-
className: B(
|
|
2479
|
-
"size-4 rounded-full bg-input p-0.5 transition duration-300 ease-in-out",
|
|
2480
|
-
h ? "rotate-180" : "rotate-0",
|
|
2481
|
-
s ? "text-muted-foreground" : "text-foreground"
|
|
2482
|
-
)
|
|
2483
|
-
}
|
|
2484
|
-
)
|
|
2485
|
-
]
|
|
2486
|
-
}
|
|
2487
|
-
)
|
|
2488
|
-
}
|
|
2489
|
-
);
|
|
2490
|
-
}
|
|
2491
|
-
const _r = (t) => {
|
|
2492
|
-
const { items: r, multiple: e, selected: n, onChange: o, width: s, mutable: a, onAdd: l } = t, [c, u] = Me(""), d = It(null), m = Xe(
|
|
2493
|
-
() => r.reduce((h, b, R, p) => ((!c.length || b.text.toLowerCase().includes(c.toLowerCase())) && h.push(b), h), []),
|
|
2494
|
-
[r, c]
|
|
2495
|
-
), x = Tr({
|
|
2496
|
-
count: m.length,
|
|
2497
|
-
getScrollElement: () => d.current,
|
|
2498
|
-
estimateSize: () => 35
|
|
2499
|
-
}), g = n instanceof Array ? n : [n];
|
|
2500
|
-
return /* @__PURE__ */ w.jsxs(
|
|
2501
|
-
ee,
|
|
2502
|
-
{
|
|
2503
|
-
className: "flex flex-col divide-y-2 divide-border overflow-hidden rounded border border-input bg-background",
|
|
2504
|
-
style: { width: s },
|
|
2505
|
-
children: [
|
|
2506
|
-
/* @__PURE__ */ w.jsxs(ee, { className: B("inline-flex grow items-center rounded px-3 py-2"), children: [
|
|
2507
|
-
/* @__PURE__ */ w.jsx(hr, { className: "left-3 top-3 mr-2 size-4 text-muted-foreground" }),
|
|
2508
|
-
/* @__PURE__ */ w.jsx(
|
|
2509
|
-
K,
|
|
2510
|
-
{
|
|
2511
|
-
tag: "input",
|
|
2512
|
-
className: "inline-flex grow bg-transparent text-sm text-foreground outline-none",
|
|
2513
|
-
placeholder: "Search",
|
|
2514
|
-
value: c,
|
|
2515
|
-
onChange: (h) => u(h.target.value)
|
|
2516
|
-
}
|
|
2517
|
-
)
|
|
2518
|
-
] }),
|
|
2519
|
-
/* @__PURE__ */ w.jsxs(
|
|
2520
|
-
K,
|
|
2521
|
-
{
|
|
2522
|
-
tag: "ul",
|
|
2523
|
-
className: B("max-h-60 grow overflow-auto shadow", "focus:outline-none focus:ring-0"),
|
|
2524
|
-
ref: d,
|
|
2525
|
-
children: [
|
|
2526
|
-
/* @__PURE__ */ w.jsx(
|
|
2527
|
-
ee,
|
|
2528
|
-
{
|
|
2529
|
-
style: {
|
|
2530
|
-
height: `${x.getTotalSize()}px`,
|
|
2531
|
-
width: "100%",
|
|
2532
|
-
position: "relative"
|
|
2533
|
-
},
|
|
2534
|
-
children: x.getVirtualItems().map((h) => /* @__PURE__ */ w.jsx(
|
|
2535
|
-
K,
|
|
2536
|
-
{
|
|
2537
|
-
tag: "li",
|
|
2538
|
-
style: {
|
|
2539
|
-
height: `${h.size}px`,
|
|
2540
|
-
transform: `translateY(${h.start}px)`
|
|
2541
|
-
},
|
|
2542
|
-
className: B(
|
|
2543
|
-
"absolute left-0 top-0 w-full cursor-pointer px-3 py-2 text-sm text-foreground",
|
|
2544
|
-
g.some((b) => b.key === m[h.index].key) ? "bg-primary/90 text-primary-foreground" : "transition hover:bg-primary/60"
|
|
2545
|
-
),
|
|
2546
|
-
onClick: () => {
|
|
2547
|
-
e ? g.some((b) => b.key === m[h.index].key) ? o(
|
|
2548
|
-
structuredClone(
|
|
2549
|
-
n.filter(
|
|
2550
|
-
(b) => b.key !== m[h.index].key
|
|
2551
|
-
)
|
|
2552
|
-
)
|
|
2553
|
-
) : o(structuredClone([...n, m[h.index]])) : o(m[h.index]);
|
|
2554
|
-
},
|
|
2555
|
-
children: m[h.index].text
|
|
2556
|
-
},
|
|
2557
|
-
h.key
|
|
2558
|
-
))
|
|
2559
|
-
}
|
|
2560
|
-
),
|
|
2561
|
-
c.length > 0 && m.length === 0 && (a ? /* @__PURE__ */ w.jsxs(
|
|
2562
|
-
K,
|
|
2563
|
-
{
|
|
2564
|
-
tag: "li",
|
|
2565
|
-
className: B("px-3 py-2 text-sm text-foreground"),
|
|
2566
|
-
onClick: () => {
|
|
2567
|
-
l({ text: c, key: c }), u("");
|
|
2568
|
-
},
|
|
2569
|
-
children: [
|
|
2570
|
-
"Add ",
|
|
2571
|
-
c
|
|
2572
|
-
]
|
|
2573
|
-
}
|
|
2574
|
-
) : /* @__PURE__ */ w.jsx(K, { tag: "li", className: B("cursor-not-allowed px-3 py-2 text-sm text-foreground"), children: "No results found" }))
|
|
2575
|
-
]
|
|
2576
|
-
}
|
|
2577
|
-
)
|
|
2578
|
-
]
|
|
2579
|
-
}
|
|
2580
|
-
);
|
|
2581
|
-
};
|
|
2582
|
-
function Ir(t) {
|
|
2583
|
-
return /* @__PURE__ */ w.jsx(
|
|
2584
|
-
"svg",
|
|
2585
|
-
{
|
|
2586
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2587
|
-
fill: "none",
|
|
2588
|
-
viewBox: "0 0 24 24",
|
|
2589
|
-
strokeWidth: 1.5,
|
|
2590
|
-
stroke: "currentColor",
|
|
2591
|
-
className: "h-6 w-6",
|
|
2592
|
-
...t,
|
|
2593
|
-
children: /* @__PURE__ */ w.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m4.5 15.75 7.5-7.5 7.5 7.5" })
|
|
2594
|
-
}
|
|
2595
|
-
);
|
|
2596
|
-
}
|
|
2597
|
-
function Pr(t) {
|
|
2598
|
-
const { className: r, ...e } = t;
|
|
2599
|
-
return /* @__PURE__ */ w.jsx(
|
|
2600
|
-
K,
|
|
2601
|
-
{
|
|
2602
|
-
tag: "input",
|
|
2603
|
-
className: B(
|
|
2604
|
-
"h-10 w-full rounded border-2 border-input bg-background px-3 py-2 text-sm text-foreground transition",
|
|
2605
|
-
"focus-visible:border-primary focus-visible:shadow-sm focus-visible:shadow-ring focus-visible:outline-none",
|
|
2606
|
-
"read-only:cursor-pointer read-only:!border-none read-only:bg-transparent read-only:text-foreground read-only:!shadow-none read-only:!outline-none",
|
|
2607
|
-
"disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted",
|
|
2608
|
-
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
2609
|
-
r
|
|
2610
|
-
),
|
|
2611
|
-
...e
|
|
2612
|
-
}
|
|
2613
|
-
);
|
|
2614
|
-
}
|
|
2615
|
-
function Mr(t) {
|
|
2616
|
-
const { className: r, checked: e, onChange: n, ...o } = t;
|
|
2617
|
-
return /* @__PURE__ */ w.jsxs(
|
|
2618
|
-
K,
|
|
2619
|
-
{
|
|
2620
|
-
tag: "div",
|
|
2621
|
-
className: B(
|
|
2622
|
-
"rounded-full",
|
|
2623
|
-
"h-5 w-10",
|
|
2624
|
-
"border border-muted bg-secondary",
|
|
2625
|
-
"flex items-center",
|
|
2626
|
-
r
|
|
2627
|
-
),
|
|
2628
|
-
onClick: () => {
|
|
2629
|
-
n(!e);
|
|
2630
|
-
},
|
|
2631
|
-
children: [
|
|
2632
|
-
/* @__PURE__ */ w.jsx(K, { tag: "input", type: "hidden", checked: e, ...o, onChange: () => {
|
|
2633
|
-
} }),
|
|
2634
|
-
/* @__PURE__ */ w.jsx(
|
|
2635
|
-
ee,
|
|
2636
|
-
{
|
|
2637
|
-
className: B(
|
|
2638
|
-
"h-4 w-4 rounded-full bg-primary transition",
|
|
2639
|
-
e ? "translate-x-5" : "translate-x-1"
|
|
2640
|
-
)
|
|
2641
|
-
}
|
|
2642
|
-
)
|
|
2643
|
-
]
|
|
2644
|
-
}
|
|
2645
|
-
);
|
|
2646
|
-
}
|
|
2647
|
-
export {
|
|
2648
|
-
Nt as Badge,
|
|
2649
|
-
kn as Button,
|
|
2650
|
-
Ir as ChevronDown,
|
|
2651
|
-
mr as ChevronUp,
|
|
2652
|
-
dr as Collapse,
|
|
2653
|
-
K as Component,
|
|
2654
|
-
ee as Container,
|
|
2655
|
-
Ar as Dropdown,
|
|
2656
|
-
Pr as Input,
|
|
2657
|
-
qt as Popover,
|
|
2658
|
-
hr as Search,
|
|
2659
|
-
Mr as Toggle,
|
|
2660
|
-
Mt as cva,
|
|
2661
|
-
B as cx
|
|
2662
|
-
};
|