design-system-silkhaus 4.0.1 → 4.1.0-beta.tickets.2
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/app/index.js +1 -1
- package/dist/{index-BT5jeJCy.js → index-BhaJhiDa.js} +1076 -979
- package/dist/index.d.ts +55 -0
- package/dist/index.js +2963 -2893
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +97 -0
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var gi = Object.defineProperty, mi = Object.defineProperties;
|
|
2
|
+
var hi = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var at = Object.getOwnPropertySymbols;
|
|
4
4
|
var yr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var xr = (e, t, r) => t in e ?
|
|
5
|
+
var xr = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, L = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
7
|
yr.call(t, r) && xr(e, r, t[r]);
|
|
8
8
|
if (at)
|
|
9
9
|
for (var r of at(t))
|
|
10
10
|
wr.call(t, r) && xr(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, V = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, V = (e, t) => mi(e, hi(t));
|
|
13
|
+
var zt = (e) => typeof e == "symbol" ? e : e + "", me = (e, t) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var n in e)
|
|
16
16
|
yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -19,26 +19,26 @@ var kt = (e) => typeof e == "symbol" ? e : e + "", me = (e, t) => {
|
|
|
19
19
|
t.indexOf(n) < 0 && wr.call(e, n) && (r[n] = e[n]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var he = (e, t, r) => new Promise((n,
|
|
22
|
+
var he = (e, t, r) => new Promise((n, i) => {
|
|
23
23
|
var a = (c) => {
|
|
24
24
|
try {
|
|
25
25
|
l(r.next(c));
|
|
26
26
|
} catch (u) {
|
|
27
|
-
|
|
27
|
+
i(u);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, o = (c) => {
|
|
30
30
|
try {
|
|
31
31
|
l(r.throw(c));
|
|
32
32
|
} catch (u) {
|
|
33
|
-
|
|
33
|
+
i(u);
|
|
34
34
|
}
|
|
35
|
-
}, l = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a,
|
|
35
|
+
}, l = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, o);
|
|
36
36
|
l((r = r.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
38
|
import * as v from "react";
|
|
39
|
-
import Fe, { useLayoutEffect as Kr, useEffect as Je, useRef as
|
|
39
|
+
import Fe, { useLayoutEffect as Kr, useEffect as Je, useRef as pi, forwardRef as Kt, useState as ue } from "react";
|
|
40
40
|
import * as Xr from "react-dom";
|
|
41
|
-
import { createPortal as
|
|
41
|
+
import { createPortal as vi } from "react-dom";
|
|
42
42
|
var It = { exports: {} }, Ve = {};
|
|
43
43
|
/**
|
|
44
44
|
* @license React
|
|
@@ -50,18 +50,18 @@ var It = { exports: {} }, Ve = {};
|
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
51
|
*/
|
|
52
52
|
var Rr;
|
|
53
|
-
function
|
|
53
|
+
function bi() {
|
|
54
54
|
if (Rr) return Ve;
|
|
55
55
|
Rr = 1;
|
|
56
|
-
var e = Fe, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty,
|
|
57
|
-
function
|
|
56
|
+
var e = Fe, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
57
|
+
function o(l, c, u) {
|
|
58
58
|
var d, g = {}, p = null, f = null;
|
|
59
59
|
u !== void 0 && (p = "" + u), c.key !== void 0 && (p = "" + c.key), c.ref !== void 0 && (f = c.ref);
|
|
60
60
|
for (d in c) n.call(c, d) && !a.hasOwnProperty(d) && (g[d] = c[d]);
|
|
61
61
|
if (l && l.defaultProps) for (d in c = l.defaultProps, c) g[d] === void 0 && (g[d] = c[d]);
|
|
62
|
-
return { $$typeof: t, type: l, key: p, ref: f, props: g, _owner:
|
|
62
|
+
return { $$typeof: t, type: l, key: p, ref: f, props: g, _owner: i.current };
|
|
63
63
|
}
|
|
64
|
-
return Ve.Fragment = r, Ve.jsx =
|
|
64
|
+
return Ve.Fragment = r, Ve.jsx = o, Ve.jsxs = o, Ve;
|
|
65
65
|
}
|
|
66
66
|
var Ge = {};
|
|
67
67
|
/**
|
|
@@ -74,9 +74,9 @@ var Ge = {};
|
|
|
74
74
|
* LICENSE file in the root directory of this source tree.
|
|
75
75
|
*/
|
|
76
76
|
var Er;
|
|
77
|
-
function
|
|
77
|
+
function xi() {
|
|
78
78
|
return Er || (Er = 1, process.env.NODE_ENV !== "production" && function() {
|
|
79
|
-
var e = Fe, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"),
|
|
79
|
+
var e = Fe, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = 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"), g = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), m = Symbol.iterator, h = "@@iterator";
|
|
80
80
|
function w(s) {
|
|
81
81
|
if (s === null || typeof s != "object")
|
|
82
82
|
return null;
|
|
@@ -101,10 +101,10 @@ function yo() {
|
|
|
101
101
|
K.unshift("Warning: " + b), Function.prototype.apply.call(console[s], console, K);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var T = !1, P = !1, H = !1, N = !1, B = !1, J;
|
|
105
105
|
J = Symbol.for("react.module.reference");
|
|
106
106
|
function U(s) {
|
|
107
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === a || B || s ===
|
|
107
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === a || B || s === i || s === u || s === d || N || s === f || T || P || H || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === g || s.$$typeof === o || s.$$typeof === l || s.$$typeof === c || // This needs to include all possible module reference object
|
|
108
108
|
// types supported by any Flight configuration anywhere since
|
|
109
109
|
// we don't know which Flight build this will end up being used
|
|
110
110
|
// with.
|
|
@@ -134,7 +134,7 @@ function yo() {
|
|
|
134
134
|
return "Portal";
|
|
135
135
|
case a:
|
|
136
136
|
return "Profiler";
|
|
137
|
-
case
|
|
137
|
+
case i:
|
|
138
138
|
return "StrictMode";
|
|
139
139
|
case u:
|
|
140
140
|
return "Suspense";
|
|
@@ -146,7 +146,7 @@ function yo() {
|
|
|
146
146
|
case l:
|
|
147
147
|
var b = s;
|
|
148
148
|
return _(b) + ".Consumer";
|
|
149
|
-
case
|
|
149
|
+
case o:
|
|
150
150
|
var C = s;
|
|
151
151
|
return _(C._context) + ".Provider";
|
|
152
152
|
case c:
|
|
@@ -165,18 +165,18 @@ function yo() {
|
|
|
165
165
|
}
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
|
-
var
|
|
169
|
-
function
|
|
168
|
+
var W = Object.assign, S = 0, z, k, M, $, A, F, xe;
|
|
169
|
+
function Le() {
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
Le.__reactDisabledLog = !0;
|
|
172
172
|
function rt() {
|
|
173
173
|
{
|
|
174
|
-
if (
|
|
175
|
-
|
|
174
|
+
if (S === 0) {
|
|
175
|
+
z = console.log, k = console.info, M = console.warn, $ = console.error, A = console.group, F = console.groupCollapsed, xe = console.groupEnd;
|
|
176
176
|
var s = {
|
|
177
177
|
configurable: !0,
|
|
178
178
|
enumerable: !0,
|
|
179
|
-
value:
|
|
179
|
+
value: Le,
|
|
180
180
|
writable: !0
|
|
181
181
|
};
|
|
182
182
|
Object.defineProperties(console, {
|
|
@@ -189,42 +189,42 @@ function yo() {
|
|
|
189
189
|
groupEnd: s
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
S++;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
function re() {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (S--, S === 0) {
|
|
198
198
|
var s = {
|
|
199
199
|
configurable: !0,
|
|
200
200
|
enumerable: !0,
|
|
201
201
|
writable: !0
|
|
202
202
|
};
|
|
203
203
|
Object.defineProperties(console, {
|
|
204
|
-
log:
|
|
205
|
-
value: k
|
|
206
|
-
}),
|
|
207
|
-
info: A({}, s, {
|
|
204
|
+
log: W({}, s, {
|
|
208
205
|
value: z
|
|
209
206
|
}),
|
|
210
|
-
|
|
207
|
+
info: W({}, s, {
|
|
208
|
+
value: k
|
|
209
|
+
}),
|
|
210
|
+
warn: W({}, s, {
|
|
211
211
|
value: M
|
|
212
212
|
}),
|
|
213
|
-
error:
|
|
213
|
+
error: W({}, s, {
|
|
214
214
|
value: $
|
|
215
215
|
}),
|
|
216
|
-
group:
|
|
217
|
-
value:
|
|
216
|
+
group: W({}, s, {
|
|
217
|
+
value: A
|
|
218
218
|
}),
|
|
219
|
-
groupCollapsed:
|
|
219
|
+
groupCollapsed: W({}, s, {
|
|
220
220
|
value: F
|
|
221
221
|
}),
|
|
222
|
-
groupEnd:
|
|
222
|
+
groupEnd: W({}, s, {
|
|
223
223
|
value: xe
|
|
224
224
|
})
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
S < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
var se = x.ReactCurrentDispatcher, ge;
|
|
@@ -246,7 +246,7 @@ function yo() {
|
|
|
246
246
|
var Nn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
247
247
|
nt = new Nn();
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function ir(s, b) {
|
|
250
250
|
if (!s || wt)
|
|
251
251
|
return "";
|
|
252
252
|
{
|
|
@@ -314,21 +314,21 @@ function yo() {
|
|
|
314
314
|
} finally {
|
|
315
315
|
wt = !1, se.current = K, re(), Error.prepareStackTrace = Y;
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
return typeof s == "function" && nt.set(s,
|
|
317
|
+
var We = s ? s.displayName || s.name : "", Pe = We ? Ne(We) : "";
|
|
318
|
+
return typeof s == "function" && nt.set(s, Pe), Pe;
|
|
319
319
|
}
|
|
320
320
|
function $n(s, b, C) {
|
|
321
|
-
return
|
|
321
|
+
return ir(s, !1);
|
|
322
322
|
}
|
|
323
323
|
function Vn(s) {
|
|
324
324
|
var b = s.prototype;
|
|
325
325
|
return !!(b && b.isReactComponent);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function it(s, b, C) {
|
|
328
328
|
if (s == null)
|
|
329
329
|
return "";
|
|
330
330
|
if (typeof s == "function")
|
|
331
|
-
return
|
|
331
|
+
return ir(s, Vn(s));
|
|
332
332
|
if (typeof s == "string")
|
|
333
333
|
return Ne(s);
|
|
334
334
|
switch (s) {
|
|
@@ -342,21 +342,21 @@ function yo() {
|
|
|
342
342
|
case c:
|
|
343
343
|
return $n(s.render);
|
|
344
344
|
case g:
|
|
345
|
-
return
|
|
345
|
+
return it(s.type, b, C);
|
|
346
346
|
case p: {
|
|
347
347
|
var O = s, Y = O._payload, K = O._init;
|
|
348
348
|
try {
|
|
349
|
-
return
|
|
349
|
+
return it(K(Y), b, C);
|
|
350
350
|
} catch (D) {
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
return "";
|
|
355
355
|
}
|
|
356
|
-
var $e = Object.prototype.hasOwnProperty,
|
|
357
|
-
function
|
|
356
|
+
var $e = Object.prototype.hasOwnProperty, or = {}, ar = x.ReactDebugCurrentFrame;
|
|
357
|
+
function ot(s) {
|
|
358
358
|
if (s) {
|
|
359
|
-
var b = s._owner, C =
|
|
359
|
+
var b = s._owner, C = it(s.type, s._source, b ? b.type : null);
|
|
360
360
|
ar.setExtraStackFrame(C);
|
|
361
361
|
} else
|
|
362
362
|
ar.setExtraStackFrame(null);
|
|
@@ -376,7 +376,7 @@ function yo() {
|
|
|
376
376
|
} catch (Q) {
|
|
377
377
|
I = Q;
|
|
378
378
|
}
|
|
379
|
-
I && !(I instanceof Error) && (
|
|
379
|
+
I && !(I instanceof Error) && (ot(Y), 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).", O || "React class", C, D, typeof I), ot(null)), I instanceof Error && !(I.message in or) && (or[I.message] = !0, ot(Y), y("Failed %s type: %s", C, I.message), ot(null));
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
@@ -440,7 +440,7 @@ function yo() {
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function ei(s, b) {
|
|
444
444
|
{
|
|
445
445
|
var C = function() {
|
|
446
446
|
dr || (dr = !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)", b));
|
|
@@ -451,7 +451,7 @@ function yo() {
|
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
var
|
|
454
|
+
var ti = function(s, b, C, O, Y, K, D) {
|
|
455
455
|
var I = {
|
|
456
456
|
// This tag allows us to uniquely identify this as a React Element
|
|
457
457
|
$$typeof: t,
|
|
@@ -480,7 +480,7 @@ function yo() {
|
|
|
480
480
|
value: Y
|
|
481
481
|
}), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
|
|
482
482
|
};
|
|
483
|
-
function
|
|
483
|
+
function ri(s, b, C, O, Y) {
|
|
484
484
|
{
|
|
485
485
|
var K, D = {}, I = null, te = null;
|
|
486
486
|
C !== void 0 && (sr(C), I = "" + C), Jn(b) && (sr(b.key), I = "" + b.key), Xn(b) && (te = b.ref, Zn(b, Y));
|
|
@@ -493,22 +493,22 @@ function yo() {
|
|
|
493
493
|
}
|
|
494
494
|
if (I || te) {
|
|
495
495
|
var ee = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
496
|
-
I && Qn(D, ee), te &&
|
|
496
|
+
I && Qn(D, ee), te && ei(D, ee);
|
|
497
497
|
}
|
|
498
|
-
return
|
|
498
|
+
return ti(s, I, te, Y, O, cr.current, D);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
var Et = x.ReactCurrentOwner, fr = x.ReactDebugCurrentFrame;
|
|
502
502
|
function _e(s) {
|
|
503
503
|
if (s) {
|
|
504
|
-
var b = s._owner, C =
|
|
504
|
+
var b = s._owner, C = it(s.type, s._source, b ? b.type : null);
|
|
505
505
|
fr.setExtraStackFrame(C);
|
|
506
506
|
} else
|
|
507
507
|
fr.setExtraStackFrame(null);
|
|
508
508
|
}
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
function
|
|
509
|
+
var Tt;
|
|
510
|
+
Tt = !1;
|
|
511
|
+
function St(s) {
|
|
512
512
|
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
513
513
|
}
|
|
514
514
|
function gr() {
|
|
@@ -523,11 +523,11 @@ Check the render method of \`` + s + "`.";
|
|
|
523
523
|
return "";
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function ni(s) {
|
|
527
527
|
return "";
|
|
528
528
|
}
|
|
529
529
|
var mr = {};
|
|
530
|
-
function
|
|
530
|
+
function ii(s) {
|
|
531
531
|
{
|
|
532
532
|
var b = gr();
|
|
533
533
|
if (!b) {
|
|
@@ -544,7 +544,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
544
544
|
if (!s._store || s._store.validated || s.key != null)
|
|
545
545
|
return;
|
|
546
546
|
s._store.validated = !0;
|
|
547
|
-
var C =
|
|
547
|
+
var C = ii(b);
|
|
548
548
|
if (mr[C])
|
|
549
549
|
return;
|
|
550
550
|
mr[C] = !0;
|
|
@@ -559,19 +559,19 @@ Check the top-level render call using <` + C + ">.");
|
|
|
559
559
|
if (Rt(s))
|
|
560
560
|
for (var C = 0; C < s.length; C++) {
|
|
561
561
|
var O = s[C];
|
|
562
|
-
|
|
562
|
+
St(O) && hr(O, b);
|
|
563
563
|
}
|
|
564
|
-
else if (
|
|
564
|
+
else if (St(s))
|
|
565
565
|
s._store && (s._store.validated = !0);
|
|
566
566
|
else if (s) {
|
|
567
567
|
var Y = w(s);
|
|
568
568
|
if (typeof Y == "function" && Y !== s.entries)
|
|
569
569
|
for (var K = Y.call(s), D; !(D = K.next()).done; )
|
|
570
|
-
|
|
570
|
+
St(D.value) && hr(D.value, b);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function oi(s) {
|
|
575
575
|
{
|
|
576
576
|
var b = s.type;
|
|
577
577
|
if (b == null || typeof b == "string")
|
|
@@ -588,15 +588,15 @@ Check the top-level render call using <` + C + ">.");
|
|
|
588
588
|
if (C) {
|
|
589
589
|
var O = q(b);
|
|
590
590
|
Gn(C, s.props, "prop", O, s);
|
|
591
|
-
} else if (b.PropTypes !== void 0 && !
|
|
592
|
-
|
|
591
|
+
} else if (b.PropTypes !== void 0 && !Tt) {
|
|
592
|
+
Tt = !0;
|
|
593
593
|
var Y = q(b);
|
|
594
594
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
|
|
595
595
|
}
|
|
596
596
|
typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function ai(s) {
|
|
600
600
|
{
|
|
601
601
|
for (var b = Object.keys(s.props), C = 0; C < b.length; C++) {
|
|
602
602
|
var O = b[C];
|
|
@@ -615,12 +615,12 @@ Check the top-level render call using <` + C + ">.");
|
|
|
615
615
|
if (!D) {
|
|
616
616
|
var I = "";
|
|
617
617
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
618
|
-
var te =
|
|
618
|
+
var te = ni();
|
|
619
619
|
te ? I += te : I += gr();
|
|
620
620
|
var Q;
|
|
621
621
|
s === null ? Q = "null" : Rt(s) ? Q = "array" : s !== void 0 && s.$$typeof === t ? (Q = "<" + (q(s.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, I);
|
|
622
622
|
}
|
|
623
|
-
var ee =
|
|
623
|
+
var ee = ri(s, b, C, Y, K);
|
|
624
624
|
if (ee == null)
|
|
625
625
|
return ee;
|
|
626
626
|
if (D) {
|
|
@@ -628,8 +628,8 @@ Check the top-level render call using <` + C + ">.");
|
|
|
628
628
|
if (ce !== void 0)
|
|
629
629
|
if (O)
|
|
630
630
|
if (Rt(ce)) {
|
|
631
|
-
for (var
|
|
632
|
-
pr(ce[
|
|
631
|
+
for (var We = 0; We < ce.length; We++)
|
|
632
|
+
pr(ce[We], s);
|
|
633
633
|
Object.freeze && Object.freeze(ce);
|
|
634
634
|
} else
|
|
635
635
|
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.");
|
|
@@ -637,69 +637,69 @@ Check the top-level render call using <` + C + ">.");
|
|
|
637
637
|
pr(ce, s);
|
|
638
638
|
}
|
|
639
639
|
if ($e.call(b, "key")) {
|
|
640
|
-
var
|
|
641
|
-
return
|
|
640
|
+
var Pe = q(s), ne = Object.keys(b).filter(function(fi) {
|
|
641
|
+
return fi !== "key";
|
|
642
642
|
}), Ct = ne.length > 0 ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
643
|
-
if (!vr[
|
|
644
|
-
var
|
|
643
|
+
if (!vr[Pe + Ct]) {
|
|
644
|
+
var di = ne.length > 0 ? "{" + ne.join(": ..., ") + ": ...}" : "{}";
|
|
645
645
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
646
646
|
let props = %s;
|
|
647
647
|
<%s {...props} />
|
|
648
648
|
React keys must be passed directly to JSX without using spread:
|
|
649
649
|
let props = %s;
|
|
650
|
-
<%s key={someKey} {...props} />`, Ct,
|
|
650
|
+
<%s key={someKey} {...props} />`, Ct, Pe, di, Pe), vr[Pe + Ct] = !0;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
return s === n ?
|
|
653
|
+
return s === n ? ai(ee) : oi(ee), ee;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function li(s, b, C) {
|
|
657
657
|
return br(s, b, C, !0);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function si(s, b, C) {
|
|
660
660
|
return br(s, b, C, !1);
|
|
661
661
|
}
|
|
662
|
-
var
|
|
663
|
-
Ge.Fragment = n, Ge.jsx =
|
|
662
|
+
var ci = si, ui = li;
|
|
663
|
+
Ge.Fragment = n, Ge.jsx = ci, Ge.jsxs = ui;
|
|
664
664
|
}()), Ge;
|
|
665
665
|
}
|
|
666
|
-
process.env.NODE_ENV === "production" ? It.exports =
|
|
666
|
+
process.env.NODE_ENV === "production" ? It.exports = bi() : It.exports = xi();
|
|
667
667
|
var R = It.exports;
|
|
668
|
-
const Xt = "-",
|
|
669
|
-
const t =
|
|
668
|
+
const Xt = "-", yi = (e) => {
|
|
669
|
+
const t = Ri(e), {
|
|
670
670
|
conflictingClassGroups: r,
|
|
671
671
|
conflictingClassGroupModifiers: n
|
|
672
672
|
} = e;
|
|
673
673
|
return {
|
|
674
|
-
getClassGroupId: (
|
|
675
|
-
const l =
|
|
676
|
-
return l[0] === "" && l.length !== 1 && l.shift(), Jr(l, t) ||
|
|
674
|
+
getClassGroupId: (o) => {
|
|
675
|
+
const l = o.split(Xt);
|
|
676
|
+
return l[0] === "" && l.length !== 1 && l.shift(), Jr(l, t) || wi(o);
|
|
677
677
|
},
|
|
678
|
-
getConflictingClassGroupIds: (
|
|
679
|
-
const c = r[
|
|
680
|
-
return l && n[
|
|
678
|
+
getConflictingClassGroupIds: (o, l) => {
|
|
679
|
+
const c = r[o] || [];
|
|
680
|
+
return l && n[o] ? [...c, ...n[o]] : c;
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
683
|
}, Jr = (e, t) => {
|
|
684
|
-
var
|
|
684
|
+
var o;
|
|
685
685
|
if (e.length === 0)
|
|
686
686
|
return t.classGroupId;
|
|
687
|
-
const r = e[0], n = t.nextPart.get(r),
|
|
688
|
-
if (
|
|
689
|
-
return
|
|
687
|
+
const r = e[0], n = t.nextPart.get(r), i = n ? Jr(e.slice(1), n) : void 0;
|
|
688
|
+
if (i)
|
|
689
|
+
return i;
|
|
690
690
|
if (t.validators.length === 0)
|
|
691
691
|
return;
|
|
692
692
|
const a = e.join(Xt);
|
|
693
|
-
return (
|
|
693
|
+
return (o = t.validators.find(({
|
|
694
694
|
validator: l
|
|
695
|
-
}) => l(a))) == null ? void 0 :
|
|
696
|
-
},
|
|
697
|
-
if (
|
|
698
|
-
const t =
|
|
695
|
+
}) => l(a))) == null ? void 0 : o.classGroupId;
|
|
696
|
+
}, Tr = /^\[(.+)\]$/, wi = (e) => {
|
|
697
|
+
if (Tr.test(e)) {
|
|
698
|
+
const t = Tr.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
699
699
|
if (r)
|
|
700
700
|
return "arbitrary.." + r;
|
|
701
701
|
}
|
|
702
|
-
},
|
|
702
|
+
}, Ri = (e) => {
|
|
703
703
|
const {
|
|
704
704
|
theme: t,
|
|
705
705
|
prefix: r
|
|
@@ -707,32 +707,32 @@ const Xt = "-", wo = (e) => {
|
|
|
707
707
|
nextPart: /* @__PURE__ */ new Map(),
|
|
708
708
|
validators: []
|
|
709
709
|
};
|
|
710
|
-
return
|
|
711
|
-
Bt(
|
|
710
|
+
return Ti(Object.entries(e.classGroups), r).forEach(([a, o]) => {
|
|
711
|
+
Bt(o, n, a, t);
|
|
712
712
|
}), n;
|
|
713
713
|
}, Bt = (e, t, r, n) => {
|
|
714
|
-
e.forEach((
|
|
715
|
-
if (typeof
|
|
716
|
-
const a =
|
|
714
|
+
e.forEach((i) => {
|
|
715
|
+
if (typeof i == "string") {
|
|
716
|
+
const a = i === "" ? t : Sr(t, i);
|
|
717
717
|
a.classGroupId = r;
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
|
-
if (typeof
|
|
721
|
-
if (
|
|
722
|
-
Bt(
|
|
720
|
+
if (typeof i == "function") {
|
|
721
|
+
if (Ei(i)) {
|
|
722
|
+
Bt(i(n), t, r, n);
|
|
723
723
|
return;
|
|
724
724
|
}
|
|
725
725
|
t.validators.push({
|
|
726
|
-
validator:
|
|
726
|
+
validator: i,
|
|
727
727
|
classGroupId: r
|
|
728
728
|
});
|
|
729
729
|
return;
|
|
730
730
|
}
|
|
731
|
-
Object.entries(
|
|
732
|
-
Bt(
|
|
731
|
+
Object.entries(i).forEach(([a, o]) => {
|
|
732
|
+
Bt(o, Sr(t, a), r, n);
|
|
733
733
|
});
|
|
734
734
|
});
|
|
735
|
-
},
|
|
735
|
+
}, Sr = (e, t) => {
|
|
736
736
|
let r = e;
|
|
737
737
|
return t.split(Xt).forEach((n) => {
|
|
738
738
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
@@ -740,10 +740,10 @@ const Xt = "-", wo = (e) => {
|
|
|
740
740
|
validators: []
|
|
741
741
|
}), r = r.nextPart.get(n);
|
|
742
742
|
}), r;
|
|
743
|
-
},
|
|
744
|
-
const
|
|
745
|
-
return [r,
|
|
746
|
-
}) : e,
|
|
743
|
+
}, Ei = (e) => e.isThemeGetter, Ti = (e, t) => t ? e.map(([r, n]) => {
|
|
744
|
+
const i = n.map((a) => typeof a == "string" ? t + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([o, l]) => [t + o, l])) : a);
|
|
745
|
+
return [r, i];
|
|
746
|
+
}) : e, Si = (e) => {
|
|
747
747
|
if (e < 1)
|
|
748
748
|
return {
|
|
749
749
|
get: () => {
|
|
@@ -752,32 +752,32 @@ const Xt = "-", wo = (e) => {
|
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
754
|
let t = 0, r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
755
|
-
const
|
|
756
|
-
r.set(a,
|
|
755
|
+
const i = (a, o) => {
|
|
756
|
+
r.set(a, o), t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ new Map());
|
|
757
757
|
};
|
|
758
758
|
return {
|
|
759
759
|
get(a) {
|
|
760
|
-
let
|
|
761
|
-
if (
|
|
762
|
-
return
|
|
763
|
-
if ((
|
|
764
|
-
return
|
|
760
|
+
let o = r.get(a);
|
|
761
|
+
if (o !== void 0)
|
|
762
|
+
return o;
|
|
763
|
+
if ((o = n.get(a)) !== void 0)
|
|
764
|
+
return i(a, o), o;
|
|
765
765
|
},
|
|
766
|
-
set(a,
|
|
767
|
-
r.has(a) ? r.set(a,
|
|
766
|
+
set(a, o) {
|
|
767
|
+
r.has(a) ? r.set(a, o) : i(a, o);
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
|
-
}, Zr = "!",
|
|
770
|
+
}, Zr = "!", Ci = (e) => {
|
|
771
771
|
const {
|
|
772
772
|
separator: t,
|
|
773
773
|
experimentalParseClassName: r
|
|
774
|
-
} = e, n = t.length === 1,
|
|
774
|
+
} = e, n = t.length === 1, i = t[0], a = t.length, o = (l) => {
|
|
775
775
|
const c = [];
|
|
776
776
|
let u = 0, d = 0, g;
|
|
777
777
|
for (let w = 0; w < l.length; w++) {
|
|
778
778
|
let x = l[w];
|
|
779
779
|
if (u === 0) {
|
|
780
|
-
if (x ===
|
|
780
|
+
if (x === i && (n || l.slice(w, w + a) === t)) {
|
|
781
781
|
c.push(l.slice(d, w)), d = w + a;
|
|
782
782
|
continue;
|
|
783
783
|
}
|
|
@@ -798,9 +798,9 @@ const Xt = "-", wo = (e) => {
|
|
|
798
798
|
};
|
|
799
799
|
return r ? (l) => r({
|
|
800
800
|
className: l,
|
|
801
|
-
parseClassName:
|
|
802
|
-
}) :
|
|
803
|
-
},
|
|
801
|
+
parseClassName: o
|
|
802
|
+
}) : o;
|
|
803
|
+
}, zi = (e) => {
|
|
804
804
|
if (e.length <= 1)
|
|
805
805
|
return e;
|
|
806
806
|
const t = [];
|
|
@@ -808,18 +808,18 @@ const Xt = "-", wo = (e) => {
|
|
|
808
808
|
return e.forEach((n) => {
|
|
809
809
|
n[0] === "[" ? (t.push(...r.sort(), n), r = []) : r.push(n);
|
|
810
810
|
}), t.push(...r.sort()), t;
|
|
811
|
-
},
|
|
812
|
-
cache:
|
|
813
|
-
parseClassName:
|
|
814
|
-
},
|
|
811
|
+
}, ki = (e) => L({
|
|
812
|
+
cache: Si(e.cacheSize),
|
|
813
|
+
parseClassName: Ci(e)
|
|
814
|
+
}, yi(e)), Li = /\s+/, Pi = (e, t) => {
|
|
815
815
|
const {
|
|
816
816
|
parseClassName: r,
|
|
817
817
|
getClassGroupId: n,
|
|
818
|
-
getConflictingClassGroupIds:
|
|
819
|
-
} = t, a = [],
|
|
818
|
+
getConflictingClassGroupIds: i
|
|
819
|
+
} = t, a = [], o = e.trim().split(Li);
|
|
820
820
|
let l = "";
|
|
821
|
-
for (let c =
|
|
822
|
-
const u =
|
|
821
|
+
for (let c = o.length - 1; c >= 0; c -= 1) {
|
|
822
|
+
const u = o[c], {
|
|
823
823
|
modifiers: d,
|
|
824
824
|
hasImportantModifier: g,
|
|
825
825
|
baseClassName: p,
|
|
@@ -837,20 +837,20 @@ const Xt = "-", wo = (e) => {
|
|
|
837
837
|
}
|
|
838
838
|
m = !1;
|
|
839
839
|
}
|
|
840
|
-
const w =
|
|
840
|
+
const w = zi(d).join(":"), x = g ? w + Zr : w, y = x + h;
|
|
841
841
|
if (a.includes(y))
|
|
842
842
|
continue;
|
|
843
843
|
a.push(y);
|
|
844
|
-
const E =
|
|
845
|
-
for (let
|
|
846
|
-
const
|
|
847
|
-
a.push(x +
|
|
844
|
+
const E = i(h, m);
|
|
845
|
+
for (let T = 0; T < E.length; ++T) {
|
|
846
|
+
const P = E[T];
|
|
847
|
+
a.push(x + P);
|
|
848
848
|
}
|
|
849
849
|
l = u + (l.length > 0 ? " " + l : l);
|
|
850
850
|
}
|
|
851
851
|
return l;
|
|
852
852
|
};
|
|
853
|
-
function
|
|
853
|
+
function Mi() {
|
|
854
854
|
let e = 0, t, r, n = "";
|
|
855
855
|
for (; e < arguments.length; )
|
|
856
856
|
(t = arguments[e++]) && (r = Qr(t)) && (n && (n += " "), n += r);
|
|
@@ -865,35 +865,35 @@ const Qr = (e) => {
|
|
|
865
865
|
return r;
|
|
866
866
|
};
|
|
867
867
|
function Dt(e, ...t) {
|
|
868
|
-
let r, n,
|
|
869
|
-
function
|
|
868
|
+
let r, n, i, a = o;
|
|
869
|
+
function o(c) {
|
|
870
870
|
const u = t.reduce((d, g) => g(d), e());
|
|
871
|
-
return r =
|
|
871
|
+
return r = ki(u), n = r.cache.get, i = r.cache.set, a = l, l(c);
|
|
872
872
|
}
|
|
873
873
|
function l(c) {
|
|
874
874
|
const u = n(c);
|
|
875
875
|
if (u)
|
|
876
876
|
return u;
|
|
877
|
-
const d =
|
|
878
|
-
return
|
|
877
|
+
const d = Pi(c, r);
|
|
878
|
+
return i(c, d), d;
|
|
879
879
|
}
|
|
880
880
|
return function() {
|
|
881
|
-
return a(
|
|
881
|
+
return a(Mi.apply(null, arguments));
|
|
882
882
|
};
|
|
883
883
|
}
|
|
884
884
|
const Z = (e) => {
|
|
885
885
|
const t = (r) => r[e] || [];
|
|
886
886
|
return t.isThemeGetter = !0, t;
|
|
887
|
-
}, en = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
887
|
+
}, en = /^\[(?:([a-z-]+):)?(.+)\]$/i, Hi = /^\d+\/\d+$/, _i = /* @__PURE__ */ new Set(["px", "full", "screen"]), Wi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ai = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Oi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ji = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fi = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pe = (e) => Oe(e) || _i.has(e) || Hi.test(e), ye = (e) => Be(e, "length", Ui), Oe = (e) => !!e && !Number.isNaN(Number(e)), kt = (e) => Be(e, "number", Oe), Ue = (e) => !!e && Number.isInteger(Number(e)), Ii = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), j = (e) => en.test(e), we = (e) => Wi.test(e), Bi = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Di = (e) => Be(e, Bi, tn), Ni = (e) => Be(e, "position", tn), $i = /* @__PURE__ */ new Set(["image", "url"]), Vi = (e) => Be(e, $i, Yi), Gi = (e) => Be(e, "", qi), qe = () => !0, Be = (e, t, r) => {
|
|
888
888
|
const n = en.exec(e);
|
|
889
889
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
890
|
-
},
|
|
890
|
+
}, Ui = (e) => (
|
|
891
891
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
892
892
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
893
893
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
894
|
-
|
|
895
|
-
), tn = () => !1,
|
|
896
|
-
const e = Z("colors"), t = Z("spacing"), r = Z("blur"), n = Z("brightness"),
|
|
894
|
+
Ai.test(e) && !Oi.test(e)
|
|
895
|
+
), tn = () => !1, qi = (e) => ji.test(e), Yi = (e) => Fi.test(e), Nt = () => {
|
|
896
|
+
const e = Z("colors"), t = Z("spacing"), r = Z("blur"), n = Z("brightness"), i = Z("borderColor"), a = Z("borderRadius"), o = Z("borderSpacing"), l = Z("borderWidth"), c = Z("contrast"), u = Z("grayscale"), d = Z("hueRotate"), g = Z("invert"), p = Z("gap"), f = Z("gradientColorStops"), m = Z("gradientColorStopPositions"), h = Z("inset"), w = Z("margin"), x = Z("opacity"), y = Z("padding"), E = Z("saturate"), T = Z("scale"), P = Z("sepia"), H = Z("skew"), N = Z("space"), B = Z("translate"), J = () => ["auto", "contain", "none"], U = () => ["auto", "hidden", "clip", "visible", "scroll"], G = () => ["auto", j, t], _ = () => [j, t], q = () => ["", pe, ye], W = () => ["auto", Oe, j], S = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], z = () => ["solid", "dashed", "dotted", "double", "none"], k = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], $ = () => ["", "0", j], A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [Oe, j];
|
|
897
897
|
return {
|
|
898
898
|
cacheSize: 500,
|
|
899
899
|
separator: ":",
|
|
@@ -912,7 +912,7 @@ const Z = (e) => {
|
|
|
912
912
|
invert: $(),
|
|
913
913
|
gap: _(),
|
|
914
914
|
gradientColorStops: [e],
|
|
915
|
-
gradientColorStopPositions: [
|
|
915
|
+
gradientColorStopPositions: [Ii, ye],
|
|
916
916
|
inset: G(),
|
|
917
917
|
margin: G(),
|
|
918
918
|
opacity: F(),
|
|
@@ -950,14 +950,14 @@ const Z = (e) => {
|
|
|
950
950
|
* @see https://tailwindcss.com/docs/break-after
|
|
951
951
|
*/
|
|
952
952
|
"break-after": [{
|
|
953
|
-
"break-after":
|
|
953
|
+
"break-after": A()
|
|
954
954
|
}],
|
|
955
955
|
/**
|
|
956
956
|
* Break Before
|
|
957
957
|
* @see https://tailwindcss.com/docs/break-before
|
|
958
958
|
*/
|
|
959
959
|
"break-before": [{
|
|
960
|
-
"break-before":
|
|
960
|
+
"break-before": A()
|
|
961
961
|
}],
|
|
962
962
|
/**
|
|
963
963
|
* Break Inside
|
|
@@ -1016,7 +1016,7 @@ const Z = (e) => {
|
|
|
1016
1016
|
* @see https://tailwindcss.com/docs/object-position
|
|
1017
1017
|
*/
|
|
1018
1018
|
"object-position": [{
|
|
1019
|
-
object: [...
|
|
1019
|
+
object: [...S(), j]
|
|
1020
1020
|
}],
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Overflow
|
|
@@ -1211,14 +1211,14 @@ const Z = (e) => {
|
|
|
1211
1211
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1212
1212
|
*/
|
|
1213
1213
|
"col-start": [{
|
|
1214
|
-
"col-start":
|
|
1214
|
+
"col-start": W()
|
|
1215
1215
|
}],
|
|
1216
1216
|
/**
|
|
1217
1217
|
* Grid Column End
|
|
1218
1218
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1219
1219
|
*/
|
|
1220
1220
|
"col-end": [{
|
|
1221
|
-
"col-end":
|
|
1221
|
+
"col-end": W()
|
|
1222
1222
|
}],
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Grid Template Rows
|
|
@@ -1241,14 +1241,14 @@ const Z = (e) => {
|
|
|
1241
1241
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1242
1242
|
*/
|
|
1243
1243
|
"row-start": [{
|
|
1244
|
-
"row-start":
|
|
1244
|
+
"row-start": W()
|
|
1245
1245
|
}],
|
|
1246
1246
|
/**
|
|
1247
1247
|
* Grid Row End
|
|
1248
1248
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1249
1249
|
*/
|
|
1250
1250
|
"row-end": [{
|
|
1251
|
-
"row-end":
|
|
1251
|
+
"row-end": W()
|
|
1252
1252
|
}],
|
|
1253
1253
|
/**
|
|
1254
1254
|
* Grid Auto Flow
|
|
@@ -1581,7 +1581,7 @@ const Z = (e) => {
|
|
|
1581
1581
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1582
1582
|
*/
|
|
1583
1583
|
"font-weight": [{
|
|
1584
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
1584
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", kt]
|
|
1585
1585
|
}],
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Font Family
|
|
@@ -1632,7 +1632,7 @@ const Z = (e) => {
|
|
|
1632
1632
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1633
1633
|
*/
|
|
1634
1634
|
"line-clamp": [{
|
|
1635
|
-
"line-clamp": ["none", Oe,
|
|
1635
|
+
"line-clamp": ["none", Oe, kt]
|
|
1636
1636
|
}],
|
|
1637
1637
|
/**
|
|
1638
1638
|
* Line Height
|
|
@@ -1708,7 +1708,7 @@ const Z = (e) => {
|
|
|
1708
1708
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1709
1709
|
*/
|
|
1710
1710
|
"text-decoration-style": [{
|
|
1711
|
-
decoration: [...
|
|
1711
|
+
decoration: [...z(), "wavy"]
|
|
1712
1712
|
}],
|
|
1713
1713
|
/**
|
|
1714
1714
|
* Text Decoration Thickness
|
|
@@ -1825,7 +1825,7 @@ const Z = (e) => {
|
|
|
1825
1825
|
* @see https://tailwindcss.com/docs/background-position
|
|
1826
1826
|
*/
|
|
1827
1827
|
"bg-position": [{
|
|
1828
|
-
bg: [...
|
|
1828
|
+
bg: [...S(), Ni]
|
|
1829
1829
|
}],
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Background Repeat
|
|
@@ -1841,7 +1841,7 @@ const Z = (e) => {
|
|
|
1841
1841
|
* @see https://tailwindcss.com/docs/background-size
|
|
1842
1842
|
*/
|
|
1843
1843
|
"bg-size": [{
|
|
1844
|
-
bg: ["auto", "cover", "contain",
|
|
1844
|
+
bg: ["auto", "cover", "contain", Di]
|
|
1845
1845
|
}],
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Background Image
|
|
@@ -1850,7 +1850,7 @@ const Z = (e) => {
|
|
|
1850
1850
|
"bg-image": [{
|
|
1851
1851
|
bg: ["none", {
|
|
1852
1852
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1853
|
-
},
|
|
1853
|
+
}, Vi]
|
|
1854
1854
|
}],
|
|
1855
1855
|
/**
|
|
1856
1856
|
* Background Color
|
|
@@ -2082,7 +2082,7 @@ const Z = (e) => {
|
|
|
2082
2082
|
* @see https://tailwindcss.com/docs/border-style
|
|
2083
2083
|
*/
|
|
2084
2084
|
"border-style": [{
|
|
2085
|
-
border: [...
|
|
2085
|
+
border: [...z(), "hidden"]
|
|
2086
2086
|
}],
|
|
2087
2087
|
/**
|
|
2088
2088
|
* Divide Width X
|
|
@@ -2120,84 +2120,84 @@ const Z = (e) => {
|
|
|
2120
2120
|
* @see https://tailwindcss.com/docs/divide-style
|
|
2121
2121
|
*/
|
|
2122
2122
|
"divide-style": [{
|
|
2123
|
-
divide:
|
|
2123
|
+
divide: z()
|
|
2124
2124
|
}],
|
|
2125
2125
|
/**
|
|
2126
2126
|
* Border Color
|
|
2127
2127
|
* @see https://tailwindcss.com/docs/border-color
|
|
2128
2128
|
*/
|
|
2129
2129
|
"border-color": [{
|
|
2130
|
-
border: [
|
|
2130
|
+
border: [i]
|
|
2131
2131
|
}],
|
|
2132
2132
|
/**
|
|
2133
2133
|
* Border Color X
|
|
2134
2134
|
* @see https://tailwindcss.com/docs/border-color
|
|
2135
2135
|
*/
|
|
2136
2136
|
"border-color-x": [{
|
|
2137
|
-
"border-x": [
|
|
2137
|
+
"border-x": [i]
|
|
2138
2138
|
}],
|
|
2139
2139
|
/**
|
|
2140
2140
|
* Border Color Y
|
|
2141
2141
|
* @see https://tailwindcss.com/docs/border-color
|
|
2142
2142
|
*/
|
|
2143
2143
|
"border-color-y": [{
|
|
2144
|
-
"border-y": [
|
|
2144
|
+
"border-y": [i]
|
|
2145
2145
|
}],
|
|
2146
2146
|
/**
|
|
2147
2147
|
* Border Color S
|
|
2148
2148
|
* @see https://tailwindcss.com/docs/border-color
|
|
2149
2149
|
*/
|
|
2150
2150
|
"border-color-s": [{
|
|
2151
|
-
"border-s": [
|
|
2151
|
+
"border-s": [i]
|
|
2152
2152
|
}],
|
|
2153
2153
|
/**
|
|
2154
2154
|
* Border Color E
|
|
2155
2155
|
* @see https://tailwindcss.com/docs/border-color
|
|
2156
2156
|
*/
|
|
2157
2157
|
"border-color-e": [{
|
|
2158
|
-
"border-e": [
|
|
2158
|
+
"border-e": [i]
|
|
2159
2159
|
}],
|
|
2160
2160
|
/**
|
|
2161
2161
|
* Border Color Top
|
|
2162
2162
|
* @see https://tailwindcss.com/docs/border-color
|
|
2163
2163
|
*/
|
|
2164
2164
|
"border-color-t": [{
|
|
2165
|
-
"border-t": [
|
|
2165
|
+
"border-t": [i]
|
|
2166
2166
|
}],
|
|
2167
2167
|
/**
|
|
2168
2168
|
* Border Color Right
|
|
2169
2169
|
* @see https://tailwindcss.com/docs/border-color
|
|
2170
2170
|
*/
|
|
2171
2171
|
"border-color-r": [{
|
|
2172
|
-
"border-r": [
|
|
2172
|
+
"border-r": [i]
|
|
2173
2173
|
}],
|
|
2174
2174
|
/**
|
|
2175
2175
|
* Border Color Bottom
|
|
2176
2176
|
* @see https://tailwindcss.com/docs/border-color
|
|
2177
2177
|
*/
|
|
2178
2178
|
"border-color-b": [{
|
|
2179
|
-
"border-b": [
|
|
2179
|
+
"border-b": [i]
|
|
2180
2180
|
}],
|
|
2181
2181
|
/**
|
|
2182
2182
|
* Border Color Left
|
|
2183
2183
|
* @see https://tailwindcss.com/docs/border-color
|
|
2184
2184
|
*/
|
|
2185
2185
|
"border-color-l": [{
|
|
2186
|
-
"border-l": [
|
|
2186
|
+
"border-l": [i]
|
|
2187
2187
|
}],
|
|
2188
2188
|
/**
|
|
2189
2189
|
* Divide Color
|
|
2190
2190
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2191
2191
|
*/
|
|
2192
2192
|
"divide-color": [{
|
|
2193
|
-
divide: [
|
|
2193
|
+
divide: [i]
|
|
2194
2194
|
}],
|
|
2195
2195
|
/**
|
|
2196
2196
|
* Outline Style
|
|
2197
2197
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2198
2198
|
*/
|
|
2199
2199
|
"outline-style": [{
|
|
2200
|
-
outline: ["", ...
|
|
2200
|
+
outline: ["", ...z()]
|
|
2201
2201
|
}],
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Outline Offset
|
|
@@ -2266,7 +2266,7 @@ const Z = (e) => {
|
|
|
2266
2266
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
2267
2267
|
*/
|
|
2268
2268
|
shadow: [{
|
|
2269
|
-
shadow: ["", "inner", "none", we,
|
|
2269
|
+
shadow: ["", "inner", "none", we, Gi]
|
|
2270
2270
|
}],
|
|
2271
2271
|
/**
|
|
2272
2272
|
* Box Shadow Color
|
|
@@ -2287,14 +2287,14 @@ const Z = (e) => {
|
|
|
2287
2287
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2288
2288
|
*/
|
|
2289
2289
|
"mix-blend": [{
|
|
2290
|
-
"mix-blend": [...
|
|
2290
|
+
"mix-blend": [...k(), "plus-lighter", "plus-darker"]
|
|
2291
2291
|
}],
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Background Blend Mode
|
|
2294
2294
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2295
2295
|
*/
|
|
2296
2296
|
"bg-blend": [{
|
|
2297
|
-
"bg-blend":
|
|
2297
|
+
"bg-blend": k()
|
|
2298
2298
|
}],
|
|
2299
2299
|
// Filters
|
|
2300
2300
|
/**
|
|
@@ -2366,7 +2366,7 @@ const Z = (e) => {
|
|
|
2366
2366
|
* @see https://tailwindcss.com/docs/sepia
|
|
2367
2367
|
*/
|
|
2368
2368
|
sepia: [{
|
|
2369
|
-
sepia: [
|
|
2369
|
+
sepia: [P]
|
|
2370
2370
|
}],
|
|
2371
2371
|
/**
|
|
2372
2372
|
* Backdrop Filter
|
|
@@ -2437,7 +2437,7 @@ const Z = (e) => {
|
|
|
2437
2437
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2438
2438
|
*/
|
|
2439
2439
|
"backdrop-sepia": [{
|
|
2440
|
-
"backdrop-sepia": [
|
|
2440
|
+
"backdrop-sepia": [P]
|
|
2441
2441
|
}],
|
|
2442
2442
|
// Tables
|
|
2443
2443
|
/**
|
|
@@ -2452,21 +2452,21 @@ const Z = (e) => {
|
|
|
2452
2452
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2453
2453
|
*/
|
|
2454
2454
|
"border-spacing": [{
|
|
2455
|
-
"border-spacing": [
|
|
2455
|
+
"border-spacing": [o]
|
|
2456
2456
|
}],
|
|
2457
2457
|
/**
|
|
2458
2458
|
* Border Spacing X
|
|
2459
2459
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2460
2460
|
*/
|
|
2461
2461
|
"border-spacing-x": [{
|
|
2462
|
-
"border-spacing-x": [
|
|
2462
|
+
"border-spacing-x": [o]
|
|
2463
2463
|
}],
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Border Spacing Y
|
|
2466
2466
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2467
2467
|
*/
|
|
2468
2468
|
"border-spacing-y": [{
|
|
2469
|
-
"border-spacing-y": [
|
|
2469
|
+
"border-spacing-y": [o]
|
|
2470
2470
|
}],
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Table Layout
|
|
@@ -2531,21 +2531,21 @@ const Z = (e) => {
|
|
|
2531
2531
|
* @see https://tailwindcss.com/docs/scale
|
|
2532
2532
|
*/
|
|
2533
2533
|
scale: [{
|
|
2534
|
-
scale: [
|
|
2534
|
+
scale: [T]
|
|
2535
2535
|
}],
|
|
2536
2536
|
/**
|
|
2537
2537
|
* Scale X
|
|
2538
2538
|
* @see https://tailwindcss.com/docs/scale
|
|
2539
2539
|
*/
|
|
2540
2540
|
"scale-x": [{
|
|
2541
|
-
"scale-x": [
|
|
2541
|
+
"scale-x": [T]
|
|
2542
2542
|
}],
|
|
2543
2543
|
/**
|
|
2544
2544
|
* Scale Y
|
|
2545
2545
|
* @see https://tailwindcss.com/docs/scale
|
|
2546
2546
|
*/
|
|
2547
2547
|
"scale-y": [{
|
|
2548
|
-
"scale-y": [
|
|
2548
|
+
"scale-y": [T]
|
|
2549
2549
|
}],
|
|
2550
2550
|
/**
|
|
2551
2551
|
* Rotate
|
|
@@ -2846,7 +2846,7 @@ const Z = (e) => {
|
|
|
2846
2846
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2847
2847
|
*/
|
|
2848
2848
|
"stroke-w": [{
|
|
2849
|
-
stroke: [pe, ye,
|
|
2849
|
+
stroke: [pe, ye, kt]
|
|
2850
2850
|
}],
|
|
2851
2851
|
/**
|
|
2852
2852
|
* Stroke
|
|
@@ -2921,33 +2921,33 @@ const Z = (e) => {
|
|
|
2921
2921
|
"font-size": ["leading"]
|
|
2922
2922
|
}
|
|
2923
2923
|
};
|
|
2924
|
-
},
|
|
2924
|
+
}, Ki = (e, {
|
|
2925
2925
|
cacheSize: t,
|
|
2926
2926
|
prefix: r,
|
|
2927
2927
|
separator: n,
|
|
2928
|
-
experimentalParseClassName:
|
|
2928
|
+
experimentalParseClassName: i,
|
|
2929
2929
|
extend: a = {},
|
|
2930
|
-
override:
|
|
2930
|
+
override: o = {}
|
|
2931
2931
|
}) => {
|
|
2932
|
-
Ye(e, "cacheSize", t), Ye(e, "prefix", r), Ye(e, "separator", n), Ye(e, "experimentalParseClassName",
|
|
2933
|
-
for (const l in
|
|
2934
|
-
|
|
2932
|
+
Ye(e, "cacheSize", t), Ye(e, "prefix", r), Ye(e, "separator", n), Ye(e, "experimentalParseClassName", i);
|
|
2933
|
+
for (const l in o)
|
|
2934
|
+
Xi(e[l], o[l]);
|
|
2935
2935
|
for (const l in a)
|
|
2936
|
-
|
|
2936
|
+
Ji(e[l], a[l]);
|
|
2937
2937
|
return e;
|
|
2938
2938
|
}, Ye = (e, t, r) => {
|
|
2939
2939
|
r !== void 0 && (e[t] = r);
|
|
2940
|
-
},
|
|
2940
|
+
}, Xi = (e, t) => {
|
|
2941
2941
|
if (t)
|
|
2942
2942
|
for (const r in t)
|
|
2943
2943
|
Ye(e, r, t[r]);
|
|
2944
|
-
},
|
|
2944
|
+
}, Ji = (e, t) => {
|
|
2945
2945
|
if (t)
|
|
2946
2946
|
for (const r in t) {
|
|
2947
2947
|
const n = t[r];
|
|
2948
2948
|
n !== void 0 && (e[r] = (e[r] || []).concat(n));
|
|
2949
2949
|
}
|
|
2950
|
-
},
|
|
2950
|
+
}, Zi = (e, ...t) => typeof e == "function" ? Dt(Nt, e, ...t) : Dt(() => Ki(Nt(), e), ...t), ct = /* @__PURE__ */ Dt(Nt), Cr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
2951
2951
|
"div",
|
|
2952
2952
|
{
|
|
2953
2953
|
className: `ds-flex ds-items-center ds-justify-center ${t === "small" ? "ds-h-5 ds-w-5" : "ds-h-6 ds-w-6"}`,
|
|
@@ -2958,13 +2958,13 @@ function rn(e) {
|
|
|
2958
2958
|
var t, r, n = "";
|
|
2959
2959
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
2960
2960
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2961
|
-
var
|
|
2962
|
-
for (t = 0; t <
|
|
2961
|
+
var i = e.length;
|
|
2962
|
+
for (t = 0; t < i; t++) e[t] && (r = rn(e[t])) && (n && (n += " "), n += r);
|
|
2963
2963
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
2964
2964
|
return n;
|
|
2965
2965
|
}
|
|
2966
2966
|
function nn() {
|
|
2967
|
-
for (var e, t, r = 0, n = "",
|
|
2967
|
+
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = rn(e)) && (n && (n += " "), n += t);
|
|
2968
2968
|
return n;
|
|
2969
2969
|
}
|
|
2970
2970
|
const on = {
|
|
@@ -2982,6 +2982,20 @@ const on = {
|
|
|
2982
2982
|
fontWeight: "var(--font-weight-semibold)"
|
|
2983
2983
|
}
|
|
2984
2984
|
],
|
|
2985
|
+
xLargeLargeTitleRegular: [
|
|
2986
|
+
"var(--xLargeLarge-TitleRegular-font-size)",
|
|
2987
|
+
{
|
|
2988
|
+
lineHeight: "var(--xLargeLarge-TitleRegular-line-height)",
|
|
2989
|
+
fontWeight: "var(--font-weight-normal)"
|
|
2990
|
+
}
|
|
2991
|
+
],
|
|
2992
|
+
xLargeLargeTitleEmphasized: [
|
|
2993
|
+
"var(--xLargeLarge-TitleEmphasized-font-size)",
|
|
2994
|
+
{
|
|
2995
|
+
lineHeight: "var(--xLargeLarge-TitleEmphasized-line-height)",
|
|
2996
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
2997
|
+
}
|
|
2998
|
+
],
|
|
2985
2999
|
xLargeTitle1Regular: [
|
|
2986
3000
|
"var(--xLargeTitle-1Regular-font-size)",
|
|
2987
3001
|
{
|
|
@@ -3095,6 +3109,20 @@ const on = {
|
|
|
3095
3109
|
fontWeight: "var(--font-weight-semibold)"
|
|
3096
3110
|
}
|
|
3097
3111
|
],
|
|
3112
|
+
largeLargeTitleRegular: [
|
|
3113
|
+
"var(--LargeLarge-TitleRegular-font-size)",
|
|
3114
|
+
{
|
|
3115
|
+
lineHeight: "var(--LargeLarge-TitleRegular-line-height)",
|
|
3116
|
+
fontWeight: "var(--font-weight-normal)"
|
|
3117
|
+
}
|
|
3118
|
+
],
|
|
3119
|
+
largeLargeTitleEmphasized: [
|
|
3120
|
+
"var(--LargeLarge-TitleEmphasized-font-size)",
|
|
3121
|
+
{
|
|
3122
|
+
lineHeight: "var(--LargeLarge-TitleEmphasized-line-height)",
|
|
3123
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
3124
|
+
}
|
|
3125
|
+
],
|
|
3098
3126
|
largeTitle1Regular: [
|
|
3099
3127
|
"var(--LargeTitle-1Regular-font-size)",
|
|
3100
3128
|
{
|
|
@@ -3208,6 +3236,20 @@ const on = {
|
|
|
3208
3236
|
fontWeight: "var(--font-weight-semibold)"
|
|
3209
3237
|
}
|
|
3210
3238
|
],
|
|
3239
|
+
mediumLargeTitleRegular: [
|
|
3240
|
+
"var(--MediumLarge-TitleRegular-font-size)",
|
|
3241
|
+
{
|
|
3242
|
+
lineHeight: "var(--MediumLarge-TitleRegular-line-height)",
|
|
3243
|
+
fontWeight: "var(--font-weight-normal)"
|
|
3244
|
+
}
|
|
3245
|
+
],
|
|
3246
|
+
mediumLargeTitleEmphasized: [
|
|
3247
|
+
"var(--MediumLarge-TitleEmphasized-font-size)",
|
|
3248
|
+
{
|
|
3249
|
+
lineHeight: "var(--MediumLarge-TitleEmphasized-line-height)",
|
|
3250
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
3251
|
+
}
|
|
3252
|
+
],
|
|
3211
3253
|
mediumTitle1Regular: [
|
|
3212
3254
|
"var(--MediumTitle-1Regular-font-size)",
|
|
3213
3255
|
{
|
|
@@ -3397,6 +3439,20 @@ const on = {
|
|
|
3397
3439
|
fontWeight: "var(--font-weight-semibold)"
|
|
3398
3440
|
}
|
|
3399
3441
|
],
|
|
3442
|
+
smallLargeTitleRegular: [
|
|
3443
|
+
"var(--SmallLarge-TitleRegular-font-size)",
|
|
3444
|
+
{
|
|
3445
|
+
lineHeight: "var(--SmallLarge-TitleRegular-line-height)",
|
|
3446
|
+
fontWeight: "var(--font-weight-normal)"
|
|
3447
|
+
}
|
|
3448
|
+
],
|
|
3449
|
+
smallLargeTitleEmphasized: [
|
|
3450
|
+
"var(--SmallLarge-TitleEmphasized-font-size)",
|
|
3451
|
+
{
|
|
3452
|
+
lineHeight: "var(--SmallLarge-TitleEmphasized-line-height)",
|
|
3453
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
3454
|
+
}
|
|
3455
|
+
],
|
|
3400
3456
|
smallTitle1Regular: [
|
|
3401
3457
|
"var(--SmallTitle-1Regular-font-size)",
|
|
3402
3458
|
{
|
|
@@ -3566,6 +3622,20 @@ const on = {
|
|
|
3566
3622
|
fontWeight: "var(--font-weight-semibold)"
|
|
3567
3623
|
}
|
|
3568
3624
|
],
|
|
3625
|
+
xSmallLargeTitleRegular: [
|
|
3626
|
+
"var(--xSmallLarge-TitleRegular-font-size)",
|
|
3627
|
+
{
|
|
3628
|
+
lineHeight: "var(--xSmallLarge-TitleRegular-line-height)",
|
|
3629
|
+
fontWeight: "var(--font-weight-normal)"
|
|
3630
|
+
}
|
|
3631
|
+
],
|
|
3632
|
+
xSmallLargeTitleEmphasized: [
|
|
3633
|
+
"var(--xSmallLarge-TitleEmphasized-font-size)",
|
|
3634
|
+
{
|
|
3635
|
+
lineHeight: "var(--xSmallLarge-TitleEmphasized-line-height)",
|
|
3636
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
3637
|
+
}
|
|
3638
|
+
],
|
|
3569
3639
|
xSmallTitle1Regular: [
|
|
3570
3640
|
"var(--xSmallTitle-1Regular-font-size)",
|
|
3571
3641
|
{
|
|
@@ -3727,11 +3797,11 @@ const on = {
|
|
|
3727
3797
|
fontWeight: "var(--callout-Regular-font-weight)"
|
|
3728
3798
|
}
|
|
3729
3799
|
]
|
|
3730
|
-
},
|
|
3800
|
+
}, Lt = Object.keys(on).map((e) => `ds-text-${e}`);
|
|
3731
3801
|
[
|
|
3732
|
-
...
|
|
3733
|
-
...
|
|
3734
|
-
...
|
|
3802
|
+
...Lt,
|
|
3803
|
+
...Lt.map((e) => `ds-tablet:${e}`),
|
|
3804
|
+
...Lt.map((e) => `ds-desktop:${e}`)
|
|
3735
3805
|
];
|
|
3736
3806
|
const ut = {
|
|
3737
3807
|
prefix: "ds-",
|
|
@@ -3768,6 +3838,27 @@ const ut = {
|
|
|
3768
3838
|
highlight: "var(--accent-primary-highlight)",
|
|
3769
3839
|
darkened: "var(--accent-primary-darkened)"
|
|
3770
3840
|
},
|
|
3841
|
+
accentInfo: {
|
|
3842
|
+
100: "var(--accent-info-100)",
|
|
3843
|
+
50: "var(--accent-info-50)",
|
|
3844
|
+
25: "var(--accent-info-25)",
|
|
3845
|
+
10: "var(--accent-info-10)",
|
|
3846
|
+
5: "var(--accent-info-5)"
|
|
3847
|
+
},
|
|
3848
|
+
accentSuccess: {
|
|
3849
|
+
100: "var(--accent--success-100)",
|
|
3850
|
+
50: "var(--accent--success-50)",
|
|
3851
|
+
25: "var(--accent--success-25)",
|
|
3852
|
+
10: "var(--accent--success-10)",
|
|
3853
|
+
5: "var(--accent--success-5)"
|
|
3854
|
+
},
|
|
3855
|
+
accentWarning: {
|
|
3856
|
+
100: "var(--accent--warning-100)",
|
|
3857
|
+
50: "var(--accent--warning-50)",
|
|
3858
|
+
25: "var(--accent--warning-25)",
|
|
3859
|
+
10: "var(--accent--warning-10)",
|
|
3860
|
+
5: "var(--accent--warning-5)"
|
|
3861
|
+
},
|
|
3771
3862
|
Fills: {
|
|
3772
3863
|
black: "var(--fills-black)",
|
|
3773
3864
|
// deprecated
|
|
@@ -3832,7 +3923,9 @@ const ut = {
|
|
|
3832
3923
|
accentInfo: {
|
|
3833
3924
|
100: "var(--accent-info-100)",
|
|
3834
3925
|
50: "var(--accent-info-50)",
|
|
3835
|
-
25: "var(--accent-info-25)"
|
|
3926
|
+
25: "var(--accent-info-25)",
|
|
3927
|
+
10: "var(--accent-info-10)",
|
|
3928
|
+
5: "var(--accent-info-5)"
|
|
3836
3929
|
},
|
|
3837
3930
|
accentTeal: {
|
|
3838
3931
|
100: "var(--accent-teal-100)",
|
|
@@ -3845,7 +3938,9 @@ const ut = {
|
|
|
3845
3938
|
accentSuccess: {
|
|
3846
3939
|
100: "var(--accent--success-100)",
|
|
3847
3940
|
50: "var(--accent--success-50)",
|
|
3848
|
-
25: "var(--accent--success-25)"
|
|
3941
|
+
25: "var(--accent--success-25)",
|
|
3942
|
+
10: "var(--accent--success-10)",
|
|
3943
|
+
5: "var(--accent--success-5)"
|
|
3849
3944
|
},
|
|
3850
3945
|
accentCarrot: {
|
|
3851
3946
|
100: "var(--accent-carrot-100)",
|
|
@@ -3858,7 +3953,9 @@ const ut = {
|
|
|
3858
3953
|
accentWarning: {
|
|
3859
3954
|
100: "var(--accent--warning-100)",
|
|
3860
3955
|
50: "var(--accent--warning-50)",
|
|
3861
|
-
25: "var(--accent--warning-25)"
|
|
3956
|
+
25: "var(--accent--warning-25)",
|
|
3957
|
+
10: "var(--accent--warning-10)",
|
|
3958
|
+
5: "var(--accent--warning-5)"
|
|
3862
3959
|
},
|
|
3863
3960
|
enabled: "var(--accent-primary-100)",
|
|
3864
3961
|
hover: "var(--background-hover)",
|
|
@@ -3881,13 +3978,13 @@ const ut = {
|
|
|
3881
3978
|
};
|
|
3882
3979
|
function an(e, t = "", r = []) {
|
|
3883
3980
|
const n = [];
|
|
3884
|
-
for (const
|
|
3885
|
-
const a = e[
|
|
3886
|
-
typeof a == "object" && a !== null && !Array.isArray(a) ? n.push(...an(a, t,
|
|
3981
|
+
for (const i in e) {
|
|
3982
|
+
const a = e[i], o = [...r, i];
|
|
3983
|
+
typeof a == "object" && a !== null && !Array.isArray(a) ? n.push(...an(a, t, o)) : n.push(`${t}-${o.join("-")}`);
|
|
3887
3984
|
}
|
|
3888
3985
|
return n;
|
|
3889
3986
|
}
|
|
3890
|
-
const
|
|
3987
|
+
const Qi = Zi({
|
|
3891
3988
|
prefix: ut.prefix,
|
|
3892
3989
|
extend: {
|
|
3893
3990
|
classGroups: {
|
|
@@ -3896,15 +3993,15 @@ const ei = Qo({
|
|
|
3896
3993
|
}
|
|
3897
3994
|
}
|
|
3898
3995
|
});
|
|
3899
|
-
function
|
|
3900
|
-
return
|
|
3996
|
+
function ie(...e) {
|
|
3997
|
+
return Qi(nn(e));
|
|
3901
3998
|
}
|
|
3902
3999
|
const Qa = (e, t = "AED") => {
|
|
3903
4000
|
const r = Math.round(e) === e ? Number(e) : Number(e.toFixed(2)), n = r ? r.toLocaleString(void 0, {
|
|
3904
4001
|
minimumFractionDigits: Math.round(r) === r ? 0 : 2
|
|
3905
4002
|
}) : "";
|
|
3906
4003
|
return `${t} ${n}`;
|
|
3907
|
-
},
|
|
4004
|
+
}, zr = {
|
|
3908
4005
|
primary: (
|
|
3909
4006
|
// eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
|
|
3910
4007
|
"ds-bg-Background-accentPrimary-100 ds-text-Text-textPrimaryInverse ds-rounded-sm hover:ds-text-Text-textPrimaryInverse hover:ds-bg-Background-accentPrimary-highlight active:ds-bg-Background-accentPrimary-darkened focus:ds-rounded-none focus:ds-bg-Background-accentPrimary-100 focus:ds-border focus:ds-border-Fills-inversePrimary focus:ds-shadow-[0px_0px_0px_1px_rgba(109,54,169,1)] disabled:focus:ds-shadow-none disabled:ds-bg-Background-accentPrimary-20"
|
|
@@ -3915,7 +4012,7 @@ const Qa = (e, t = "AED") => {
|
|
|
3915
4012
|
small: "ds-py-1.5 ds-px-8 ds_SmallBodyEmphasized",
|
|
3916
4013
|
large: "ds-py-3 ds-px-8 ds_MediumBodyEmphasized",
|
|
3917
4014
|
empty: ""
|
|
3918
|
-
},
|
|
4015
|
+
}, eo = {
|
|
3919
4016
|
primary: (
|
|
3920
4017
|
// eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
|
|
3921
4018
|
"ds-bg-Background-accentPrimary-100 ds-text-Text-textPrimaryInverse ds-rounded-none ds-border ds-border-Fills-inversePrimary ds-shadow-[0px_0px_0px_1px_rgba(109,54,169,1)]"
|
|
@@ -3931,9 +4028,9 @@ const Qa = (e, t = "AED") => {
|
|
|
3931
4028
|
size: t = "small",
|
|
3932
4029
|
disabled: r = !1,
|
|
3933
4030
|
className: n,
|
|
3934
|
-
children:
|
|
4031
|
+
children: i,
|
|
3935
4032
|
startIcon: a,
|
|
3936
|
-
selected:
|
|
4033
|
+
selected: o,
|
|
3937
4034
|
endIcon: l,
|
|
3938
4035
|
trackingId: c,
|
|
3939
4036
|
helperText: u,
|
|
@@ -3953,17 +4050,17 @@ const Qa = (e, t = "AED") => {
|
|
|
3953
4050
|
"helpterTextClassName",
|
|
3954
4051
|
"buttonClassName"
|
|
3955
4052
|
]);
|
|
3956
|
-
return /* @__PURE__ */ R.jsxs("div", { className:
|
|
4053
|
+
return /* @__PURE__ */ R.jsxs("div", { className: ie("ds-flex ds-flex-col ds-gap-1", n), children: [
|
|
3957
4054
|
/* @__PURE__ */ R.jsx(
|
|
3958
4055
|
"button",
|
|
3959
|
-
V(
|
|
4056
|
+
V(L({
|
|
3960
4057
|
"data-tracking-id": c,
|
|
3961
4058
|
ref: f,
|
|
3962
4059
|
disabled: r,
|
|
3963
4060
|
className: ct(
|
|
3964
|
-
|
|
3965
|
-
{ [
|
|
3966
|
-
|
|
4061
|
+
ie(
|
|
4062
|
+
{ [eo[e]]: o, [zr[e]]: !o },
|
|
4063
|
+
zr[t],
|
|
3967
4064
|
"ds-flex ds-w-full ds-flex-1 ds-items-center ds-justify-center",
|
|
3968
4065
|
g
|
|
3969
4066
|
)
|
|
@@ -3971,7 +4068,7 @@ const Qa = (e, t = "AED") => {
|
|
|
3971
4068
|
}, p), {
|
|
3972
4069
|
children: /* @__PURE__ */ R.jsxs("div", { className: "ds-flex ds-items-center ds-gap-2", children: [
|
|
3973
4070
|
a && /* @__PURE__ */ R.jsx(Cr, { size: t, children: a }),
|
|
3974
|
-
|
|
4071
|
+
i && /* @__PURE__ */ R.jsx("div", { children: i }),
|
|
3975
4072
|
l && /* @__PURE__ */ R.jsx(Cr, { size: t, children: l })
|
|
3976
4073
|
] })
|
|
3977
4074
|
})
|
|
@@ -3979,7 +4076,7 @@ const Qa = (e, t = "AED") => {
|
|
|
3979
4076
|
u && /* @__PURE__ */ R.jsx(
|
|
3980
4077
|
"div",
|
|
3981
4078
|
{
|
|
3982
|
-
className:
|
|
4079
|
+
className: ie(
|
|
3983
4080
|
"ds-w-full ds-text-right ds-text-mediumFootnoteRegular",
|
|
3984
4081
|
d
|
|
3985
4082
|
),
|
|
@@ -3990,7 +4087,7 @@ const Qa = (e, t = "AED") => {
|
|
|
3990
4087
|
}
|
|
3991
4088
|
);
|
|
3992
4089
|
ln.displayName = "Button";
|
|
3993
|
-
const
|
|
4090
|
+
const to = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
3994
4091
|
"svg",
|
|
3995
4092
|
{
|
|
3996
4093
|
width: "100%",
|
|
@@ -4017,7 +4114,7 @@ const ri = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
|
4017
4114
|
) }) })
|
|
4018
4115
|
]
|
|
4019
4116
|
}
|
|
4020
|
-
),
|
|
4117
|
+
), ro = ({ className: e }) => /* @__PURE__ */ R.jsx(R.Fragment, { children: /* @__PURE__ */ R.jsxs(
|
|
4021
4118
|
"svg",
|
|
4022
4119
|
{
|
|
4023
4120
|
width: "100%",
|
|
@@ -4044,7 +4141,7 @@ const ri = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
|
4044
4141
|
) }) })
|
|
4045
4142
|
]
|
|
4046
4143
|
}
|
|
4047
|
-
) }),
|
|
4144
|
+
) }), no = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
4048
4145
|
"svg",
|
|
4049
4146
|
{
|
|
4050
4147
|
width: "100%",
|
|
@@ -4075,7 +4172,7 @@ const ri = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
|
4075
4172
|
function De(e) {
|
|
4076
4173
|
return sn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
4077
4174
|
}
|
|
4078
|
-
function
|
|
4175
|
+
function oe(e) {
|
|
4079
4176
|
var t;
|
|
4080
4177
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
4081
4178
|
}
|
|
@@ -4084,27 +4181,27 @@ function be(e) {
|
|
|
4084
4181
|
return (t = (sn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
4085
4182
|
}
|
|
4086
4183
|
function sn(e) {
|
|
4087
|
-
return e instanceof Node || e instanceof
|
|
4184
|
+
return e instanceof Node || e instanceof oe(e).Node;
|
|
4088
4185
|
}
|
|
4089
4186
|
function X(e) {
|
|
4090
|
-
return e instanceof Element || e instanceof
|
|
4187
|
+
return e instanceof Element || e instanceof oe(e).Element;
|
|
4091
4188
|
}
|
|
4092
4189
|
function ae(e) {
|
|
4093
|
-
return e instanceof HTMLElement || e instanceof
|
|
4190
|
+
return e instanceof HTMLElement || e instanceof oe(e).HTMLElement;
|
|
4094
4191
|
}
|
|
4095
4192
|
function $t(e) {
|
|
4096
|
-
return typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
4193
|
+
return typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof oe(e).ShadowRoot;
|
|
4097
4194
|
}
|
|
4098
4195
|
function Ze(e) {
|
|
4099
4196
|
const {
|
|
4100
4197
|
overflow: t,
|
|
4101
4198
|
overflowX: r,
|
|
4102
4199
|
overflowY: n,
|
|
4103
|
-
display:
|
|
4200
|
+
display: i
|
|
4104
4201
|
} = de(e);
|
|
4105
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(
|
|
4202
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(i);
|
|
4106
4203
|
}
|
|
4107
|
-
function
|
|
4204
|
+
function io(e) {
|
|
4108
4205
|
return ["table", "td", "th"].includes(De(e));
|
|
4109
4206
|
}
|
|
4110
4207
|
function xt(e) {
|
|
@@ -4120,7 +4217,7 @@ function Jt(e) {
|
|
|
4120
4217
|
const t = Zt(), r = X(e) ? de(e) : e;
|
|
4121
4218
|
return r.transform !== "none" || r.perspective !== "none" || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
|
|
4122
4219
|
}
|
|
4123
|
-
function
|
|
4220
|
+
function oo(e) {
|
|
4124
4221
|
let t = ve(e);
|
|
4125
4222
|
for (; ae(t) && !Ce(t); ) {
|
|
4126
4223
|
if (Jt(t))
|
|
@@ -4138,7 +4235,7 @@ function Ce(e) {
|
|
|
4138
4235
|
return ["html", "body", "#document"].includes(De(e));
|
|
4139
4236
|
}
|
|
4140
4237
|
function de(e) {
|
|
4141
|
-
return
|
|
4238
|
+
return oe(e).getComputedStyle(e);
|
|
4142
4239
|
}
|
|
4143
4240
|
function yt(e) {
|
|
4144
4241
|
return X(e) ? {
|
|
@@ -4165,11 +4262,11 @@ function cn(e) {
|
|
|
4165
4262
|
const t = ve(e);
|
|
4166
4263
|
return Ce(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ae(t) && Ze(t) ? t : cn(t);
|
|
4167
4264
|
}
|
|
4168
|
-
function
|
|
4265
|
+
function Se(e, t, r) {
|
|
4169
4266
|
var n;
|
|
4170
4267
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
4171
|
-
const
|
|
4172
|
-
return a ? t.concat(
|
|
4268
|
+
const i = cn(e), a = i === ((n = e.ownerDocument) == null ? void 0 : n.body), o = oe(i);
|
|
4269
|
+
return a ? t.concat(o, o.visualViewport || [], Ze(i) ? i : [], o.frameElement && r ? Se(o.frameElement) : []) : t.concat(i, Se(i, [], r));
|
|
4173
4270
|
}
|
|
4174
4271
|
function Vt(e) {
|
|
4175
4272
|
let t = e.activeElement;
|
|
@@ -4209,37 +4306,37 @@ function dn() {
|
|
|
4209
4306
|
return r + "/" + n;
|
|
4210
4307
|
}).join(" ") : navigator.userAgent;
|
|
4211
4308
|
}
|
|
4212
|
-
function
|
|
4213
|
-
return
|
|
4309
|
+
function ao(e) {
|
|
4310
|
+
return so() ? !1 : !kr() && e.width === 0 && e.height === 0 || kr() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
4214
4311
|
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
4215
4312
|
}
|
|
4216
4313
|
function fn() {
|
|
4217
4314
|
return /apple/i.test(navigator.vendor);
|
|
4218
4315
|
}
|
|
4219
|
-
function
|
|
4316
|
+
function kr() {
|
|
4220
4317
|
const e = /android/i;
|
|
4221
4318
|
return e.test(un()) || e.test(dn());
|
|
4222
4319
|
}
|
|
4223
|
-
function
|
|
4320
|
+
function lo() {
|
|
4224
4321
|
return un().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
4225
4322
|
}
|
|
4226
|
-
function
|
|
4323
|
+
function so() {
|
|
4227
4324
|
return dn().includes("jsdom/");
|
|
4228
4325
|
}
|
|
4229
4326
|
function Ke(e, t) {
|
|
4230
4327
|
const r = ["mouse", "pen"];
|
|
4231
4328
|
return t || r.push("", void 0), r.includes(e);
|
|
4232
4329
|
}
|
|
4233
|
-
function
|
|
4330
|
+
function co(e) {
|
|
4234
4331
|
return "nativeEvent" in e;
|
|
4235
4332
|
}
|
|
4236
|
-
function
|
|
4333
|
+
function uo(e) {
|
|
4237
4334
|
return e.matches("html,body");
|
|
4238
4335
|
}
|
|
4239
4336
|
function Ee(e) {
|
|
4240
4337
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
4241
4338
|
}
|
|
4242
|
-
function
|
|
4339
|
+
function Pt(e, t) {
|
|
4243
4340
|
if (t == null)
|
|
4244
4341
|
return !1;
|
|
4245
4342
|
if ("composedPath" in e)
|
|
@@ -4247,32 +4344,32 @@ function Lt(e, t) {
|
|
|
4247
4344
|
const r = e;
|
|
4248
4345
|
return r.target != null && t.contains(r.target);
|
|
4249
4346
|
}
|
|
4250
|
-
function
|
|
4347
|
+
function Ae(e) {
|
|
4251
4348
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
4252
4349
|
}
|
|
4253
|
-
const
|
|
4350
|
+
const fo = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
4254
4351
|
function gn(e) {
|
|
4255
|
-
return ae(e) && e.matches(
|
|
4352
|
+
return ae(e) && e.matches(fo);
|
|
4256
4353
|
}
|
|
4257
|
-
const
|
|
4354
|
+
const Te = Math.min, le = Math.max, dt = Math.round, lt = Math.floor, ze = (e) => ({
|
|
4258
4355
|
x: e,
|
|
4259
4356
|
y: e
|
|
4260
|
-
}),
|
|
4357
|
+
}), go = {
|
|
4261
4358
|
left: "right",
|
|
4262
4359
|
right: "left",
|
|
4263
4360
|
bottom: "top",
|
|
4264
4361
|
top: "bottom"
|
|
4265
|
-
},
|
|
4362
|
+
}, mo = {
|
|
4266
4363
|
start: "end",
|
|
4267
4364
|
end: "start"
|
|
4268
4365
|
};
|
|
4269
|
-
function
|
|
4270
|
-
return le(e,
|
|
4366
|
+
function Lr(e, t, r) {
|
|
4367
|
+
return le(e, Te(t, r));
|
|
4271
4368
|
}
|
|
4272
4369
|
function Qe(e, t) {
|
|
4273
4370
|
return typeof e == "function" ? e(t) : e;
|
|
4274
4371
|
}
|
|
4275
|
-
function
|
|
4372
|
+
function ke(e) {
|
|
4276
4373
|
return e.split("-")[0];
|
|
4277
4374
|
}
|
|
4278
4375
|
function et(e) {
|
|
@@ -4285,55 +4382,55 @@ function hn(e) {
|
|
|
4285
4382
|
return e === "y" ? "height" : "width";
|
|
4286
4383
|
}
|
|
4287
4384
|
function Me(e) {
|
|
4288
|
-
return ["top", "bottom"].includes(
|
|
4385
|
+
return ["top", "bottom"].includes(ke(e)) ? "y" : "x";
|
|
4289
4386
|
}
|
|
4290
4387
|
function pn(e) {
|
|
4291
4388
|
return mn(Me(e));
|
|
4292
4389
|
}
|
|
4293
|
-
function
|
|
4390
|
+
function ho(e, t, r) {
|
|
4294
4391
|
r === void 0 && (r = !1);
|
|
4295
|
-
const n = et(e),
|
|
4296
|
-
let
|
|
4297
|
-
return t.reference[a] > t.floating[a] && (
|
|
4392
|
+
const n = et(e), i = pn(e), a = hn(i);
|
|
4393
|
+
let o = i === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
4394
|
+
return t.reference[a] > t.floating[a] && (o = ft(o)), [o, ft(o)];
|
|
4298
4395
|
}
|
|
4299
|
-
function
|
|
4396
|
+
function po(e) {
|
|
4300
4397
|
const t = ft(e);
|
|
4301
4398
|
return [Gt(e), t, Gt(t)];
|
|
4302
4399
|
}
|
|
4303
4400
|
function Gt(e) {
|
|
4304
|
-
return e.replace(/start|end/g, (t) =>
|
|
4401
|
+
return e.replace(/start|end/g, (t) => mo[t]);
|
|
4305
4402
|
}
|
|
4306
|
-
function
|
|
4307
|
-
const n = ["left", "right"],
|
|
4403
|
+
function vo(e, t, r) {
|
|
4404
|
+
const n = ["left", "right"], i = ["right", "left"], a = ["top", "bottom"], o = ["bottom", "top"];
|
|
4308
4405
|
switch (e) {
|
|
4309
4406
|
case "top":
|
|
4310
4407
|
case "bottom":
|
|
4311
|
-
return r ? t ?
|
|
4408
|
+
return r ? t ? i : n : t ? n : i;
|
|
4312
4409
|
case "left":
|
|
4313
4410
|
case "right":
|
|
4314
|
-
return t ? a :
|
|
4411
|
+
return t ? a : o;
|
|
4315
4412
|
default:
|
|
4316
4413
|
return [];
|
|
4317
4414
|
}
|
|
4318
4415
|
}
|
|
4319
|
-
function
|
|
4320
|
-
const
|
|
4321
|
-
let a =
|
|
4322
|
-
return
|
|
4416
|
+
function bo(e, t, r, n) {
|
|
4417
|
+
const i = et(e);
|
|
4418
|
+
let a = vo(ke(e), r === "start", n);
|
|
4419
|
+
return i && (a = a.map((o) => o + "-" + i), t && (a = a.concat(a.map(Gt)))), a;
|
|
4323
4420
|
}
|
|
4324
4421
|
function ft(e) {
|
|
4325
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4422
|
+
return e.replace(/left|right|bottom|top/g, (t) => go[t]);
|
|
4326
4423
|
}
|
|
4327
|
-
function
|
|
4328
|
-
return
|
|
4424
|
+
function xo(e) {
|
|
4425
|
+
return L({
|
|
4329
4426
|
top: 0,
|
|
4330
4427
|
right: 0,
|
|
4331
4428
|
bottom: 0,
|
|
4332
4429
|
left: 0
|
|
4333
4430
|
}, e);
|
|
4334
4431
|
}
|
|
4335
|
-
function
|
|
4336
|
-
return typeof e != "number" ?
|
|
4432
|
+
function yo(e) {
|
|
4433
|
+
return typeof e != "number" ? xo(e) : {
|
|
4337
4434
|
top: e,
|
|
4338
4435
|
right: e,
|
|
4339
4436
|
bottom: e,
|
|
@@ -4345,15 +4442,15 @@ function gt(e) {
|
|
|
4345
4442
|
x: t,
|
|
4346
4443
|
y: r,
|
|
4347
4444
|
width: n,
|
|
4348
|
-
height:
|
|
4445
|
+
height: i
|
|
4349
4446
|
} = e;
|
|
4350
4447
|
return {
|
|
4351
4448
|
width: n,
|
|
4352
|
-
height:
|
|
4449
|
+
height: i,
|
|
4353
4450
|
top: r,
|
|
4354
4451
|
left: t,
|
|
4355
4452
|
right: t + n,
|
|
4356
|
-
bottom: r +
|
|
4453
|
+
bottom: r + i,
|
|
4357
4454
|
x: t,
|
|
4358
4455
|
y: r
|
|
4359
4456
|
};
|
|
@@ -4362,7 +4459,7 @@ function gt(e) {
|
|
|
4362
4459
|
* tabbable 6.2.0
|
|
4363
4460
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4364
4461
|
*/
|
|
4365
|
-
var
|
|
4462
|
+
var wo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ut = /* @__PURE__ */ wo.join(","), vn = typeof Element == "undefined", Xe = vn ? function() {
|
|
4366
4463
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, mt = !vn && Element.prototype.getRootNode ? function(e) {
|
|
4367
4464
|
var t;
|
|
4368
4465
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -4371,184 +4468,184 @@ var wi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4371
4468
|
}, ht = function e(t, r) {
|
|
4372
4469
|
var n;
|
|
4373
4470
|
r === void 0 && (r = !0);
|
|
4374
|
-
var
|
|
4375
|
-
return
|
|
4376
|
-
},
|
|
4471
|
+
var i = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), a = i === "" || i === "true", o = a || r && t && e(t.parentNode);
|
|
4472
|
+
return o;
|
|
4473
|
+
}, Ro = function(t) {
|
|
4377
4474
|
var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
4378
4475
|
return n === "" || n === "true";
|
|
4379
|
-
},
|
|
4476
|
+
}, Eo = function(t, r, n) {
|
|
4380
4477
|
if (ht(t))
|
|
4381
4478
|
return [];
|
|
4382
|
-
var
|
|
4383
|
-
return r && Xe.call(t, Ut) &&
|
|
4384
|
-
},
|
|
4385
|
-
for (var
|
|
4386
|
-
var
|
|
4387
|
-
if (!ht(
|
|
4388
|
-
if (
|
|
4389
|
-
var l =
|
|
4390
|
-
n.flatten ?
|
|
4391
|
-
scopeParent:
|
|
4479
|
+
var i = Array.prototype.slice.apply(t.querySelectorAll(Ut));
|
|
4480
|
+
return r && Xe.call(t, Ut) && i.unshift(t), i = i.filter(n), i;
|
|
4481
|
+
}, To = function e(t, r, n) {
|
|
4482
|
+
for (var i = [], a = Array.from(t); a.length; ) {
|
|
4483
|
+
var o = a.shift();
|
|
4484
|
+
if (!ht(o, !1))
|
|
4485
|
+
if (o.tagName === "SLOT") {
|
|
4486
|
+
var l = o.assignedElements(), c = l.length ? l : o.children, u = e(c, !0, n);
|
|
4487
|
+
n.flatten ? i.push.apply(i, u) : i.push({
|
|
4488
|
+
scopeParent: o,
|
|
4392
4489
|
candidates: u
|
|
4393
4490
|
});
|
|
4394
4491
|
} else {
|
|
4395
|
-
var d = Xe.call(
|
|
4396
|
-
d && n.filter(
|
|
4397
|
-
var g =
|
|
4398
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(
|
|
4492
|
+
var d = Xe.call(o, Ut);
|
|
4493
|
+
d && n.filter(o) && (r || !t.includes(o)) && i.push(o);
|
|
4494
|
+
var g = o.shadowRoot || // check for an undisclosed shadow
|
|
4495
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(o), p = !ht(g, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
4399
4496
|
if (g && p) {
|
|
4400
|
-
var f = e(g === !0 ?
|
|
4401
|
-
n.flatten ?
|
|
4402
|
-
scopeParent:
|
|
4497
|
+
var f = e(g === !0 ? o.children : g.children, !0, n);
|
|
4498
|
+
n.flatten ? i.push.apply(i, f) : i.push({
|
|
4499
|
+
scopeParent: o,
|
|
4403
4500
|
candidates: f
|
|
4404
4501
|
});
|
|
4405
4502
|
} else
|
|
4406
|
-
a.unshift.apply(a,
|
|
4503
|
+
a.unshift.apply(a, o.children);
|
|
4407
4504
|
}
|
|
4408
4505
|
}
|
|
4409
|
-
return
|
|
4506
|
+
return i;
|
|
4410
4507
|
}, bn = function(t) {
|
|
4411
4508
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
4412
4509
|
}, xn = function(t) {
|
|
4413
4510
|
if (!t)
|
|
4414
4511
|
throw new Error("No node provided");
|
|
4415
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
4416
|
-
},
|
|
4512
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Ro(t)) && !bn(t) ? 0 : t.tabIndex;
|
|
4513
|
+
}, So = function(t, r) {
|
|
4417
4514
|
var n = xn(t);
|
|
4418
4515
|
return n < 0 && r && !bn(t) ? 0 : n;
|
|
4419
|
-
},
|
|
4516
|
+
}, Co = function(t, r) {
|
|
4420
4517
|
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
4421
4518
|
}, yn = function(t) {
|
|
4422
4519
|
return t.tagName === "INPUT";
|
|
4423
|
-
},
|
|
4520
|
+
}, zo = function(t) {
|
|
4424
4521
|
return yn(t) && t.type === "hidden";
|
|
4425
|
-
},
|
|
4522
|
+
}, ko = function(t) {
|
|
4426
4523
|
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
4427
4524
|
return n.tagName === "SUMMARY";
|
|
4428
4525
|
});
|
|
4429
4526
|
return r;
|
|
4430
|
-
},
|
|
4527
|
+
}, Lo = function(t, r) {
|
|
4431
4528
|
for (var n = 0; n < t.length; n++)
|
|
4432
4529
|
if (t[n].checked && t[n].form === r)
|
|
4433
4530
|
return t[n];
|
|
4434
|
-
},
|
|
4531
|
+
}, Po = function(t) {
|
|
4435
4532
|
if (!t.name)
|
|
4436
4533
|
return !0;
|
|
4437
4534
|
var r = t.form || mt(t), n = function(l) {
|
|
4438
4535
|
return r.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
4439
|
-
},
|
|
4536
|
+
}, i;
|
|
4440
4537
|
if (typeof window != "undefined" && typeof window.CSS != "undefined" && typeof window.CSS.escape == "function")
|
|
4441
|
-
|
|
4538
|
+
i = n(window.CSS.escape(t.name));
|
|
4442
4539
|
else
|
|
4443
4540
|
try {
|
|
4444
|
-
|
|
4445
|
-
} catch (
|
|
4446
|
-
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",
|
|
4541
|
+
i = n(t.name);
|
|
4542
|
+
} catch (o) {
|
|
4543
|
+
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
4447
4544
|
}
|
|
4448
|
-
var a =
|
|
4545
|
+
var a = Lo(i, t.form);
|
|
4449
4546
|
return !a || a === t;
|
|
4450
|
-
},
|
|
4547
|
+
}, Mo = function(t) {
|
|
4451
4548
|
return yn(t) && t.type === "radio";
|
|
4452
|
-
},
|
|
4453
|
-
return
|
|
4454
|
-
},
|
|
4455
|
-
var r, n = t && mt(t),
|
|
4549
|
+
}, Ho = function(t) {
|
|
4550
|
+
return Mo(t) && !Po(t);
|
|
4551
|
+
}, _o = function(t) {
|
|
4552
|
+
var r, n = t && mt(t), i = (r = n) === null || r === void 0 ? void 0 : r.host, a = !1;
|
|
4456
4553
|
if (n && n !== t) {
|
|
4457
|
-
var
|
|
4458
|
-
for (a = !!((
|
|
4554
|
+
var o, l, c;
|
|
4555
|
+
for (a = !!((o = i) !== null && o !== void 0 && (l = o.ownerDocument) !== null && l !== void 0 && l.contains(i) || t != null && (c = t.ownerDocument) !== null && c !== void 0 && c.contains(t)); !a && i; ) {
|
|
4459
4556
|
var u, d, g;
|
|
4460
|
-
n = mt(
|
|
4557
|
+
n = mt(i), i = (u = n) === null || u === void 0 ? void 0 : u.host, a = !!((d = i) !== null && d !== void 0 && (g = d.ownerDocument) !== null && g !== void 0 && g.contains(i));
|
|
4461
4558
|
}
|
|
4462
4559
|
}
|
|
4463
4560
|
return a;
|
|
4464
|
-
},
|
|
4465
|
-
var r = t.getBoundingClientRect(), n = r.width,
|
|
4466
|
-
return n === 0 &&
|
|
4467
|
-
},
|
|
4468
|
-
var n = r.displayCheck,
|
|
4561
|
+
}, Pr = function(t) {
|
|
4562
|
+
var r = t.getBoundingClientRect(), n = r.width, i = r.height;
|
|
4563
|
+
return n === 0 && i === 0;
|
|
4564
|
+
}, Wo = function(t, r) {
|
|
4565
|
+
var n = r.displayCheck, i = r.getShadowRoot;
|
|
4469
4566
|
if (getComputedStyle(t).visibility === "hidden")
|
|
4470
4567
|
return !0;
|
|
4471
|
-
var a = Xe.call(t, "details>summary:first-of-type"),
|
|
4472
|
-
if (Xe.call(
|
|
4568
|
+
var a = Xe.call(t, "details>summary:first-of-type"), o = a ? t.parentElement : t;
|
|
4569
|
+
if (Xe.call(o, "details:not([open]) *"))
|
|
4473
4570
|
return !0;
|
|
4474
4571
|
if (!n || n === "full" || n === "legacy-full") {
|
|
4475
|
-
if (typeof
|
|
4572
|
+
if (typeof i == "function") {
|
|
4476
4573
|
for (var l = t; t; ) {
|
|
4477
4574
|
var c = t.parentElement, u = mt(t);
|
|
4478
|
-
if (c && !c.shadowRoot &&
|
|
4479
|
-
return
|
|
4575
|
+
if (c && !c.shadowRoot && i(c) === !0)
|
|
4576
|
+
return Pr(t);
|
|
4480
4577
|
t.assignedSlot ? t = t.assignedSlot : !c && u !== t.ownerDocument ? t = u.host : t = c;
|
|
4481
4578
|
}
|
|
4482
4579
|
t = l;
|
|
4483
4580
|
}
|
|
4484
|
-
if (
|
|
4581
|
+
if (_o(t))
|
|
4485
4582
|
return !t.getClientRects().length;
|
|
4486
4583
|
if (n !== "legacy-full")
|
|
4487
4584
|
return !0;
|
|
4488
4585
|
} else if (n === "non-zero-area")
|
|
4489
|
-
return
|
|
4586
|
+
return Pr(t);
|
|
4490
4587
|
return !1;
|
|
4491
|
-
},
|
|
4588
|
+
}, Ao = function(t) {
|
|
4492
4589
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
4493
4590
|
for (var r = t.parentElement; r; ) {
|
|
4494
4591
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
4495
4592
|
for (var n = 0; n < r.children.length; n++) {
|
|
4496
|
-
var
|
|
4497
|
-
if (
|
|
4498
|
-
return Xe.call(r, "fieldset[disabled] *") ? !0 : !
|
|
4593
|
+
var i = r.children.item(n);
|
|
4594
|
+
if (i.tagName === "LEGEND")
|
|
4595
|
+
return Xe.call(r, "fieldset[disabled] *") ? !0 : !i.contains(t);
|
|
4499
4596
|
}
|
|
4500
4597
|
return !0;
|
|
4501
4598
|
}
|
|
4502
4599
|
r = r.parentElement;
|
|
4503
4600
|
}
|
|
4504
4601
|
return !1;
|
|
4505
|
-
},
|
|
4602
|
+
}, Oo = function(t, r) {
|
|
4506
4603
|
return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
4507
4604
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
4508
4605
|
// note related to `candidateSelectors`)
|
|
4509
|
-
ht(r) ||
|
|
4510
|
-
|
|
4606
|
+
ht(r) || zo(r) || Wo(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
4607
|
+
ko(r) || Ao(r));
|
|
4511
4608
|
}, Mr = function(t, r) {
|
|
4512
|
-
return !(
|
|
4513
|
-
},
|
|
4609
|
+
return !(Ho(r) || xn(r) < 0 || !Oo(t, r));
|
|
4610
|
+
}, jo = function(t) {
|
|
4514
4611
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
4515
4612
|
return !!(isNaN(r) || r >= 0);
|
|
4516
|
-
},
|
|
4613
|
+
}, Fo = function e(t) {
|
|
4517
4614
|
var r = [], n = [];
|
|
4518
|
-
return t.forEach(function(
|
|
4519
|
-
var
|
|
4520
|
-
c === 0 ?
|
|
4615
|
+
return t.forEach(function(i, a) {
|
|
4616
|
+
var o = !!i.scopeParent, l = o ? i.scopeParent : i, c = So(l, o), u = o ? e(i.candidates) : l;
|
|
4617
|
+
c === 0 ? o ? r.push.apply(r, u) : r.push(l) : n.push({
|
|
4521
4618
|
documentOrder: a,
|
|
4522
4619
|
tabIndex: c,
|
|
4523
|
-
item:
|
|
4524
|
-
isScope:
|
|
4620
|
+
item: i,
|
|
4621
|
+
isScope: o,
|
|
4525
4622
|
content: u
|
|
4526
4623
|
});
|
|
4527
|
-
}), n.sort(
|
|
4528
|
-
return a.isScope ?
|
|
4624
|
+
}), n.sort(Co).reduce(function(i, a) {
|
|
4625
|
+
return a.isScope ? i.push.apply(i, a.content) : i.push(a.content), i;
|
|
4529
4626
|
}, []).concat(r);
|
|
4530
4627
|
}, wn = function(t, r) {
|
|
4531
4628
|
r = r || {};
|
|
4532
4629
|
var n;
|
|
4533
|
-
return r.getShadowRoot ? n =
|
|
4630
|
+
return r.getShadowRoot ? n = To([t], r.includeContainer, {
|
|
4534
4631
|
filter: Mr.bind(null, r),
|
|
4535
4632
|
flatten: !1,
|
|
4536
4633
|
getShadowRoot: r.getShadowRoot,
|
|
4537
|
-
shadowRootFilter:
|
|
4538
|
-
}) : n =
|
|
4634
|
+
shadowRootFilter: jo
|
|
4635
|
+
}) : n = Eo(t, r.includeContainer, Mr.bind(null, r)), Fo(n);
|
|
4539
4636
|
};
|
|
4540
4637
|
function Hr(e, t, r) {
|
|
4541
4638
|
let {
|
|
4542
4639
|
reference: n,
|
|
4543
|
-
floating:
|
|
4640
|
+
floating: i
|
|
4544
4641
|
} = e;
|
|
4545
|
-
const a = Me(t),
|
|
4642
|
+
const a = Me(t), o = pn(t), l = hn(o), c = ke(t), u = a === "y", d = n.x + n.width / 2 - i.width / 2, g = n.y + n.height / 2 - i.height / 2, p = n[l] / 2 - i[l] / 2;
|
|
4546
4643
|
let f;
|
|
4547
4644
|
switch (c) {
|
|
4548
4645
|
case "top":
|
|
4549
4646
|
f = {
|
|
4550
4647
|
x: d,
|
|
4551
|
-
y: n.y -
|
|
4648
|
+
y: n.y - i.height
|
|
4552
4649
|
};
|
|
4553
4650
|
break;
|
|
4554
4651
|
case "bottom":
|
|
@@ -4565,7 +4662,7 @@ function Hr(e, t, r) {
|
|
|
4565
4662
|
break;
|
|
4566
4663
|
case "left":
|
|
4567
4664
|
f = {
|
|
4568
|
-
x: n.x -
|
|
4665
|
+
x: n.x - i.width,
|
|
4569
4666
|
y: g
|
|
4570
4667
|
};
|
|
4571
4668
|
break;
|
|
@@ -4577,25 +4674,25 @@ function Hr(e, t, r) {
|
|
|
4577
4674
|
}
|
|
4578
4675
|
switch (et(t)) {
|
|
4579
4676
|
case "start":
|
|
4580
|
-
f[
|
|
4677
|
+
f[o] -= p * (r && u ? -1 : 1);
|
|
4581
4678
|
break;
|
|
4582
4679
|
case "end":
|
|
4583
|
-
f[
|
|
4680
|
+
f[o] += p * (r && u ? -1 : 1);
|
|
4584
4681
|
break;
|
|
4585
4682
|
}
|
|
4586
4683
|
return f;
|
|
4587
4684
|
}
|
|
4588
|
-
const
|
|
4685
|
+
const Io = (e, t, r) => he(void 0, null, function* () {
|
|
4589
4686
|
const {
|
|
4590
4687
|
placement: n = "bottom",
|
|
4591
|
-
strategy:
|
|
4688
|
+
strategy: i = "absolute",
|
|
4592
4689
|
middleware: a = [],
|
|
4593
|
-
platform:
|
|
4594
|
-
} = r, l = a.filter(Boolean), c = yield
|
|
4595
|
-
let u = yield
|
|
4690
|
+
platform: o
|
|
4691
|
+
} = r, l = a.filter(Boolean), c = yield o.isRTL == null ? void 0 : o.isRTL(t);
|
|
4692
|
+
let u = yield o.getElementRects({
|
|
4596
4693
|
reference: e,
|
|
4597
4694
|
floating: t,
|
|
4598
|
-
strategy:
|
|
4695
|
+
strategy: i
|
|
4599
4696
|
}), {
|
|
4600
4697
|
x: d,
|
|
4601
4698
|
y: g
|
|
@@ -4607,29 +4704,29 @@ const Ii = (e, t, r) => he(void 0, null, function* () {
|
|
|
4607
4704
|
} = l[h], {
|
|
4608
4705
|
x: y,
|
|
4609
4706
|
y: E,
|
|
4610
|
-
data:
|
|
4611
|
-
reset:
|
|
4707
|
+
data: T,
|
|
4708
|
+
reset: P
|
|
4612
4709
|
} = yield x({
|
|
4613
4710
|
x: d,
|
|
4614
4711
|
y: g,
|
|
4615
4712
|
initialPlacement: n,
|
|
4616
4713
|
placement: p,
|
|
4617
|
-
strategy:
|
|
4714
|
+
strategy: i,
|
|
4618
4715
|
middlewareData: f,
|
|
4619
4716
|
rects: u,
|
|
4620
|
-
platform:
|
|
4717
|
+
platform: o,
|
|
4621
4718
|
elements: {
|
|
4622
4719
|
reference: e,
|
|
4623
4720
|
floating: t
|
|
4624
4721
|
}
|
|
4625
4722
|
});
|
|
4626
|
-
d = y != null ? y : d, g = E != null ? E : g, f = V(
|
|
4627
|
-
[w]:
|
|
4628
|
-
}),
|
|
4723
|
+
d = y != null ? y : d, g = E != null ? E : g, f = V(L({}, f), {
|
|
4724
|
+
[w]: L(L({}, f[w]), T)
|
|
4725
|
+
}), P && m <= 50 && (m++, typeof P == "object" && (P.placement && (p = P.placement), P.rects && (u = P.rects === !0 ? yield o.getElementRects({
|
|
4629
4726
|
reference: e,
|
|
4630
4727
|
floating: t,
|
|
4631
|
-
strategy:
|
|
4632
|
-
}) :
|
|
4728
|
+
strategy: i
|
|
4729
|
+
}) : P.rects), {
|
|
4633
4730
|
x: d,
|
|
4634
4731
|
y: g
|
|
4635
4732
|
} = Hr(u, p, c)), h = -1);
|
|
@@ -4638,7 +4735,7 @@ const Ii = (e, t, r) => he(void 0, null, function* () {
|
|
|
4638
4735
|
x: d,
|
|
4639
4736
|
y: g,
|
|
4640
4737
|
placement: p,
|
|
4641
|
-
strategy:
|
|
4738
|
+
strategy: i,
|
|
4642
4739
|
middlewareData: f
|
|
4643
4740
|
};
|
|
4644
4741
|
});
|
|
@@ -4648,9 +4745,9 @@ function Qt(e, t) {
|
|
|
4648
4745
|
t === void 0 && (t = {});
|
|
4649
4746
|
const {
|
|
4650
4747
|
x: n,
|
|
4651
|
-
y:
|
|
4748
|
+
y: i,
|
|
4652
4749
|
platform: a,
|
|
4653
|
-
rects:
|
|
4750
|
+
rects: o,
|
|
4654
4751
|
elements: l,
|
|
4655
4752
|
strategy: c
|
|
4656
4753
|
} = e, {
|
|
@@ -4659,58 +4756,58 @@ function Qt(e, t) {
|
|
|
4659
4756
|
elementContext: g = "floating",
|
|
4660
4757
|
altBoundary: p = !1,
|
|
4661
4758
|
padding: f = 0
|
|
4662
|
-
} = Qe(t, e), m =
|
|
4759
|
+
} = Qe(t, e), m = yo(f), w = l[p ? g === "floating" ? "reference" : "floating" : g], x = gt(yield a.getClippingRect({
|
|
4663
4760
|
element: (r = yield a.isElement == null ? void 0 : a.isElement(w)) == null || r ? w : w.contextElement || (yield a.getDocumentElement == null ? void 0 : a.getDocumentElement(l.floating)),
|
|
4664
4761
|
boundary: u,
|
|
4665
4762
|
rootBoundary: d,
|
|
4666
4763
|
strategy: c
|
|
4667
4764
|
})), y = g === "floating" ? {
|
|
4668
4765
|
x: n,
|
|
4669
|
-
y:
|
|
4670
|
-
width:
|
|
4671
|
-
height:
|
|
4672
|
-
} :
|
|
4766
|
+
y: i,
|
|
4767
|
+
width: o.floating.width,
|
|
4768
|
+
height: o.floating.height
|
|
4769
|
+
} : o.reference, E = yield a.getOffsetParent == null ? void 0 : a.getOffsetParent(l.floating), T = (yield a.isElement == null ? void 0 : a.isElement(E)) ? (yield a.getScale == null ? void 0 : a.getScale(E)) || {
|
|
4673
4770
|
x: 1,
|
|
4674
4771
|
y: 1
|
|
4675
4772
|
} : {
|
|
4676
4773
|
x: 1,
|
|
4677
4774
|
y: 1
|
|
4678
|
-
},
|
|
4775
|
+
}, P = gt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? yield a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4679
4776
|
elements: l,
|
|
4680
4777
|
rect: y,
|
|
4681
4778
|
offsetParent: E,
|
|
4682
4779
|
strategy: c
|
|
4683
4780
|
}) : y);
|
|
4684
4781
|
return {
|
|
4685
|
-
top: (x.top -
|
|
4686
|
-
bottom: (
|
|
4687
|
-
left: (x.left -
|
|
4688
|
-
right: (
|
|
4782
|
+
top: (x.top - P.top + m.top) / T.y,
|
|
4783
|
+
bottom: (P.bottom - x.bottom + m.bottom) / T.y,
|
|
4784
|
+
left: (x.left - P.left + m.left) / T.x,
|
|
4785
|
+
right: (P.right - x.right + m.right) / T.x
|
|
4689
4786
|
};
|
|
4690
4787
|
});
|
|
4691
4788
|
}
|
|
4692
|
-
const
|
|
4789
|
+
const Bo = function(e) {
|
|
4693
4790
|
return e === void 0 && (e = {}), {
|
|
4694
4791
|
name: "flip",
|
|
4695
4792
|
options: e,
|
|
4696
4793
|
fn(r) {
|
|
4697
4794
|
return he(this, null, function* () {
|
|
4698
|
-
var n,
|
|
4795
|
+
var n, i;
|
|
4699
4796
|
const {
|
|
4700
4797
|
placement: a,
|
|
4701
|
-
middlewareData:
|
|
4798
|
+
middlewareData: o,
|
|
4702
4799
|
rects: l,
|
|
4703
4800
|
initialPlacement: c,
|
|
4704
4801
|
platform: u,
|
|
4705
4802
|
elements: d
|
|
4706
|
-
} = r,
|
|
4803
|
+
} = r, S = Qe(e, r), {
|
|
4707
4804
|
mainAxis: g = !0,
|
|
4708
4805
|
crossAxis: p = !0,
|
|
4709
4806
|
fallbackPlacements: f,
|
|
4710
4807
|
fallbackStrategy: m = "bestFit",
|
|
4711
4808
|
fallbackAxisSideDirection: h = "none",
|
|
4712
4809
|
flipAlignment: w = !0
|
|
4713
|
-
} =
|
|
4810
|
+
} = S, x = me(S, [
|
|
4714
4811
|
"mainAxis",
|
|
4715
4812
|
"crossAxis",
|
|
4716
4813
|
"fallbackPlacements",
|
|
@@ -4718,46 +4815,46 @@ const Bi = function(e) {
|
|
|
4718
4815
|
"fallbackAxisSideDirection",
|
|
4719
4816
|
"flipAlignment"
|
|
4720
4817
|
]);
|
|
4721
|
-
if ((n =
|
|
4818
|
+
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
4722
4819
|
return {};
|
|
4723
|
-
const y =
|
|
4724
|
-
!f && N && H.push(...
|
|
4820
|
+
const y = ke(a), E = Me(c), T = ke(c) === c, P = yield u.isRTL == null ? void 0 : u.isRTL(d.floating), H = f || (T || !w ? [ft(c)] : po(c)), N = h !== "none";
|
|
4821
|
+
!f && N && H.push(...bo(c, w, h, P));
|
|
4725
4822
|
const B = [c, ...H], J = yield Qt(r, x), U = [];
|
|
4726
|
-
let G = ((
|
|
4823
|
+
let G = ((i = o.flip) == null ? void 0 : i.overflows) || [];
|
|
4727
4824
|
if (g && U.push(J[y]), p) {
|
|
4728
|
-
const
|
|
4729
|
-
U.push(J[
|
|
4825
|
+
const z = ho(a, l, P);
|
|
4826
|
+
U.push(J[z[0]], J[z[1]]);
|
|
4730
4827
|
}
|
|
4731
4828
|
if (G = [...G, {
|
|
4732
4829
|
placement: a,
|
|
4733
4830
|
overflows: U
|
|
4734
|
-
}], !U.every((
|
|
4831
|
+
}], !U.every((z) => z <= 0)) {
|
|
4735
4832
|
var _, q;
|
|
4736
|
-
const
|
|
4737
|
-
if (
|
|
4833
|
+
const z = (((_ = o.flip) == null ? void 0 : _.index) || 0) + 1, k = B[z];
|
|
4834
|
+
if (k)
|
|
4738
4835
|
return {
|
|
4739
4836
|
data: {
|
|
4740
|
-
index:
|
|
4837
|
+
index: z,
|
|
4741
4838
|
overflows: G
|
|
4742
4839
|
},
|
|
4743
4840
|
reset: {
|
|
4744
|
-
placement:
|
|
4841
|
+
placement: k
|
|
4745
4842
|
}
|
|
4746
4843
|
};
|
|
4747
|
-
let M = (q = G.filter(($) => $.overflows[0] <= 0).sort(($,
|
|
4844
|
+
let M = (q = G.filter(($) => $.overflows[0] <= 0).sort(($, A) => $.overflows[1] - A.overflows[1])[0]) == null ? void 0 : q.placement;
|
|
4748
4845
|
if (!M)
|
|
4749
4846
|
switch (m) {
|
|
4750
4847
|
case "bestFit": {
|
|
4751
|
-
var
|
|
4752
|
-
const $ = (
|
|
4848
|
+
var W;
|
|
4849
|
+
const $ = (W = G.filter((A) => {
|
|
4753
4850
|
if (N) {
|
|
4754
|
-
const F = Me(
|
|
4851
|
+
const F = Me(A.placement);
|
|
4755
4852
|
return F === E || // Create a bias to the `y` side axis due to horizontal
|
|
4756
4853
|
// reading directions favoring greater width.
|
|
4757
4854
|
F === "y";
|
|
4758
4855
|
}
|
|
4759
4856
|
return !0;
|
|
4760
|
-
}).map((
|
|
4857
|
+
}).map((A) => [A.placement, A.overflows.filter((F) => F > 0).reduce((F, xe) => F + xe, 0)]).sort((A, F) => A[1] - F[1])[0]) == null ? void 0 : W[0];
|
|
4761
4858
|
$ && (M = $);
|
|
4762
4859
|
break;
|
|
4763
4860
|
}
|
|
@@ -4777,13 +4874,13 @@ const Bi = function(e) {
|
|
|
4777
4874
|
}
|
|
4778
4875
|
};
|
|
4779
4876
|
};
|
|
4780
|
-
function
|
|
4877
|
+
function Do(e, t) {
|
|
4781
4878
|
return he(this, null, function* () {
|
|
4782
4879
|
const {
|
|
4783
4880
|
placement: r,
|
|
4784
4881
|
platform: n,
|
|
4785
|
-
elements:
|
|
4786
|
-
} = e, a = yield n.isRTL == null ? void 0 : n.isRTL(
|
|
4882
|
+
elements: i
|
|
4883
|
+
} = e, a = yield n.isRTL == null ? void 0 : n.isRTL(i.floating), o = ke(r), l = et(r), c = Me(r) === "y", u = ["left", "top"].includes(o) ? -1 : 1, d = a && c ? -1 : 1, g = Qe(t, e);
|
|
4787
4884
|
let {
|
|
4788
4885
|
mainAxis: p,
|
|
4789
4886
|
crossAxis: f,
|
|
@@ -4792,7 +4889,7 @@ function Di(e, t) {
|
|
|
4792
4889
|
mainAxis: g,
|
|
4793
4890
|
crossAxis: 0,
|
|
4794
4891
|
alignmentAxis: null
|
|
4795
|
-
} :
|
|
4892
|
+
} : L({
|
|
4796
4893
|
mainAxis: 0,
|
|
4797
4894
|
crossAxis: 0,
|
|
4798
4895
|
alignmentAxis: null
|
|
@@ -4806,30 +4903,30 @@ function Di(e, t) {
|
|
|
4806
4903
|
};
|
|
4807
4904
|
});
|
|
4808
4905
|
}
|
|
4809
|
-
const
|
|
4906
|
+
const No = function(e) {
|
|
4810
4907
|
return e === void 0 && (e = 0), {
|
|
4811
4908
|
name: "offset",
|
|
4812
4909
|
options: e,
|
|
4813
4910
|
fn(r) {
|
|
4814
4911
|
return he(this, null, function* () {
|
|
4815
|
-
var n,
|
|
4912
|
+
var n, i;
|
|
4816
4913
|
const {
|
|
4817
4914
|
x: a,
|
|
4818
|
-
y:
|
|
4915
|
+
y: o,
|
|
4819
4916
|
placement: l,
|
|
4820
4917
|
middlewareData: c
|
|
4821
|
-
} = r, u = yield
|
|
4822
|
-
return l === ((n = c.offset) == null ? void 0 : n.placement) && (
|
|
4918
|
+
} = r, u = yield Do(r, e);
|
|
4919
|
+
return l === ((n = c.offset) == null ? void 0 : n.placement) && (i = c.arrow) != null && i.alignmentOffset ? {} : {
|
|
4823
4920
|
x: a + u.x,
|
|
4824
|
-
y:
|
|
4825
|
-
data: V(
|
|
4921
|
+
y: o + u.y,
|
|
4922
|
+
data: V(L({}, u), {
|
|
4826
4923
|
placement: l
|
|
4827
4924
|
})
|
|
4828
4925
|
};
|
|
4829
4926
|
});
|
|
4830
4927
|
}
|
|
4831
4928
|
};
|
|
4832
|
-
}, $
|
|
4929
|
+
}, $o = function(e) {
|
|
4833
4930
|
return e === void 0 && (e = {}), {
|
|
4834
4931
|
name: "shift",
|
|
4835
4932
|
options: e,
|
|
@@ -4837,20 +4934,20 @@ const Ni = function(e) {
|
|
|
4837
4934
|
return he(this, null, function* () {
|
|
4838
4935
|
const {
|
|
4839
4936
|
x: n,
|
|
4840
|
-
y:
|
|
4937
|
+
y: i,
|
|
4841
4938
|
placement: a
|
|
4842
4939
|
} = r, x = Qe(e, r), {
|
|
4843
|
-
mainAxis:
|
|
4940
|
+
mainAxis: o = !0,
|
|
4844
4941
|
crossAxis: l = !1,
|
|
4845
4942
|
limiter: c = {
|
|
4846
4943
|
fn: (y) => {
|
|
4847
4944
|
let {
|
|
4848
4945
|
x: E,
|
|
4849
|
-
y:
|
|
4946
|
+
y: T
|
|
4850
4947
|
} = y;
|
|
4851
4948
|
return {
|
|
4852
4949
|
x: E,
|
|
4853
|
-
y:
|
|
4950
|
+
y: T
|
|
4854
4951
|
};
|
|
4855
4952
|
}
|
|
4856
4953
|
}
|
|
@@ -4860,31 +4957,31 @@ const Ni = function(e) {
|
|
|
4860
4957
|
"limiter"
|
|
4861
4958
|
]), d = {
|
|
4862
4959
|
x: n,
|
|
4863
|
-
y:
|
|
4864
|
-
}, g = yield Qt(r, u), p = Me(
|
|
4960
|
+
y: i
|
|
4961
|
+
}, g = yield Qt(r, u), p = Me(ke(a)), f = mn(p);
|
|
4865
4962
|
let m = d[f], h = d[p];
|
|
4866
|
-
if (
|
|
4867
|
-
const y = f === "y" ? "top" : "left", E = f === "y" ? "bottom" : "right",
|
|
4868
|
-
m =
|
|
4963
|
+
if (o) {
|
|
4964
|
+
const y = f === "y" ? "top" : "left", E = f === "y" ? "bottom" : "right", T = m + g[y], P = m - g[E];
|
|
4965
|
+
m = Lr(T, m, P);
|
|
4869
4966
|
}
|
|
4870
4967
|
if (l) {
|
|
4871
|
-
const y = p === "y" ? "top" : "left", E = p === "y" ? "bottom" : "right",
|
|
4872
|
-
h =
|
|
4968
|
+
const y = p === "y" ? "top" : "left", E = p === "y" ? "bottom" : "right", T = h + g[y], P = h - g[E];
|
|
4969
|
+
h = Lr(T, h, P);
|
|
4873
4970
|
}
|
|
4874
|
-
const w = c.fn(V(
|
|
4971
|
+
const w = c.fn(V(L({}, r), {
|
|
4875
4972
|
[f]: m,
|
|
4876
4973
|
[p]: h
|
|
4877
4974
|
}));
|
|
4878
|
-
return V(
|
|
4975
|
+
return V(L({}, w), {
|
|
4879
4976
|
data: {
|
|
4880
4977
|
x: w.x - n,
|
|
4881
|
-
y: w.y -
|
|
4978
|
+
y: w.y - i
|
|
4882
4979
|
}
|
|
4883
4980
|
});
|
|
4884
4981
|
});
|
|
4885
4982
|
}
|
|
4886
4983
|
};
|
|
4887
|
-
},
|
|
4984
|
+
}, Vo = function(e) {
|
|
4888
4985
|
return e === void 0 && (e = {}), {
|
|
4889
4986
|
name: "size",
|
|
4890
4987
|
options: e,
|
|
@@ -4892,31 +4989,31 @@ const Ni = function(e) {
|
|
|
4892
4989
|
return he(this, null, function* () {
|
|
4893
4990
|
const {
|
|
4894
4991
|
placement: n,
|
|
4895
|
-
rects:
|
|
4992
|
+
rects: i,
|
|
4896
4993
|
platform: a,
|
|
4897
|
-
elements:
|
|
4994
|
+
elements: o
|
|
4898
4995
|
} = r, J = Qe(e, r), {
|
|
4899
4996
|
apply: l = () => {
|
|
4900
4997
|
}
|
|
4901
4998
|
} = J, c = me(J, [
|
|
4902
4999
|
"apply"
|
|
4903
|
-
]), u = yield Qt(r, c), d =
|
|
5000
|
+
]), u = yield Qt(r, c), d = ke(n), g = et(n), p = Me(n) === "y", {
|
|
4904
5001
|
width: f,
|
|
4905
5002
|
height: m
|
|
4906
|
-
} =
|
|
5003
|
+
} = i.floating;
|
|
4907
5004
|
let h, w;
|
|
4908
|
-
d === "top" || d === "bottom" ? (h = d, w = g === ((yield a.isRTL == null ? void 0 : a.isRTL(
|
|
4909
|
-
const x = m - u.top - u.bottom, y = f - u.left - u.right, E =
|
|
4910
|
-
let H = E, N =
|
|
4911
|
-
if (p ? N = g ||
|
|
5005
|
+
d === "top" || d === "bottom" ? (h = d, w = g === ((yield a.isRTL == null ? void 0 : a.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (w = d, h = g === "end" ? "top" : "bottom");
|
|
5006
|
+
const x = m - u.top - u.bottom, y = f - u.left - u.right, E = Te(m - u[h], x), T = Te(f - u[w], y), P = !r.middlewareData.shift;
|
|
5007
|
+
let H = E, N = T;
|
|
5008
|
+
if (p ? N = g || P ? Te(T, y) : y : H = g || P ? Te(E, x) : x, P && !g) {
|
|
4912
5009
|
const U = le(u.left, 0), G = le(u.right, 0), _ = le(u.top, 0), q = le(u.bottom, 0);
|
|
4913
5010
|
p ? N = f - 2 * (U !== 0 || G !== 0 ? U + G : le(u.left, u.right)) : H = m - 2 * (_ !== 0 || q !== 0 ? _ + q : le(u.top, u.bottom));
|
|
4914
5011
|
}
|
|
4915
|
-
yield l(V(
|
|
5012
|
+
yield l(V(L({}, r), {
|
|
4916
5013
|
availableWidth: N,
|
|
4917
5014
|
availableHeight: H
|
|
4918
5015
|
}));
|
|
4919
|
-
const B = yield a.getDimensions(
|
|
5016
|
+
const B = yield a.getDimensions(o.floating);
|
|
4920
5017
|
return f !== B.width || m !== B.height ? {
|
|
4921
5018
|
reset: {
|
|
4922
5019
|
rects: !0
|
|
@@ -4929,8 +5026,8 @@ const Ni = function(e) {
|
|
|
4929
5026
|
function Rn(e) {
|
|
4930
5027
|
const t = de(e);
|
|
4931
5028
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
4932
|
-
const
|
|
4933
|
-
return l && (r = a, n =
|
|
5029
|
+
const i = ae(e), a = i ? e.offsetWidth : r, o = i ? e.offsetHeight : n, l = dt(r) !== a || dt(n) !== o;
|
|
5030
|
+
return l && (r = a, n = o), {
|
|
4934
5031
|
width: r,
|
|
4935
5032
|
height: n,
|
|
4936
5033
|
$: l
|
|
@@ -4942,42 +5039,42 @@ function er(e) {
|
|
|
4942
5039
|
function je(e) {
|
|
4943
5040
|
const t = er(e);
|
|
4944
5041
|
if (!ae(t))
|
|
4945
|
-
return
|
|
5042
|
+
return ze(1);
|
|
4946
5043
|
const r = t.getBoundingClientRect(), {
|
|
4947
5044
|
width: n,
|
|
4948
|
-
height:
|
|
5045
|
+
height: i,
|
|
4949
5046
|
$: a
|
|
4950
5047
|
} = Rn(t);
|
|
4951
|
-
let
|
|
4952
|
-
return (!
|
|
4953
|
-
x:
|
|
5048
|
+
let o = (a ? dt(r.width) : r.width) / n, l = (a ? dt(r.height) : r.height) / i;
|
|
5049
|
+
return (!o || !Number.isFinite(o)) && (o = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
5050
|
+
x: o,
|
|
4954
5051
|
y: l
|
|
4955
5052
|
};
|
|
4956
5053
|
}
|
|
4957
|
-
const
|
|
5054
|
+
const Go = /* @__PURE__ */ ze(0);
|
|
4958
5055
|
function En(e) {
|
|
4959
|
-
const t =
|
|
4960
|
-
return !Zt() || !t.visualViewport ?
|
|
5056
|
+
const t = oe(e);
|
|
5057
|
+
return !Zt() || !t.visualViewport ? Go : {
|
|
4961
5058
|
x: t.visualViewport.offsetLeft,
|
|
4962
5059
|
y: t.visualViewport.offsetTop
|
|
4963
5060
|
};
|
|
4964
5061
|
}
|
|
4965
|
-
function
|
|
4966
|
-
return t === void 0 && (t = !1), !r || t && r !==
|
|
5062
|
+
function Uo(e, t, r) {
|
|
5063
|
+
return t === void 0 && (t = !1), !r || t && r !== oe(e) ? !1 : t;
|
|
4967
5064
|
}
|
|
4968
5065
|
function He(e, t, r, n) {
|
|
4969
5066
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
4970
|
-
const
|
|
4971
|
-
let
|
|
4972
|
-
t && (n ? X(n) && (
|
|
4973
|
-
const l =
|
|
4974
|
-
let c = (
|
|
5067
|
+
const i = e.getBoundingClientRect(), a = er(e);
|
|
5068
|
+
let o = ze(1);
|
|
5069
|
+
t && (n ? X(n) && (o = je(n)) : o = je(e));
|
|
5070
|
+
const l = Uo(a, r, n) ? En(a) : ze(0);
|
|
5071
|
+
let c = (i.left + l.x) / o.x, u = (i.top + l.y) / o.y, d = i.width / o.x, g = i.height / o.y;
|
|
4975
5072
|
if (a) {
|
|
4976
|
-
const p =
|
|
5073
|
+
const p = oe(a), f = n && X(n) ? oe(n) : n;
|
|
4977
5074
|
let m = p, h = m.frameElement;
|
|
4978
5075
|
for (; h && n && f !== m; ) {
|
|
4979
|
-
const w = je(h), x = h.getBoundingClientRect(), y = de(h), E = x.left + (h.clientLeft + parseFloat(y.paddingLeft)) * w.x,
|
|
4980
|
-
c *= w.x, u *= w.y, d *= w.x, g *= w.y, c += E, u +=
|
|
5076
|
+
const w = je(h), x = h.getBoundingClientRect(), y = de(h), E = x.left + (h.clientLeft + parseFloat(y.paddingLeft)) * w.x, T = x.top + (h.clientTop + parseFloat(y.paddingTop)) * w.y;
|
|
5077
|
+
c *= w.x, u *= w.y, d *= w.x, g *= w.y, c += E, u += T, m = oe(h), h = m.frameElement;
|
|
4981
5078
|
}
|
|
4982
5079
|
}
|
|
4983
5080
|
return gt({
|
|
@@ -4987,22 +5084,22 @@ function He(e, t, r, n) {
|
|
|
4987
5084
|
y: u
|
|
4988
5085
|
});
|
|
4989
5086
|
}
|
|
4990
|
-
function
|
|
5087
|
+
function qo(e) {
|
|
4991
5088
|
let {
|
|
4992
5089
|
elements: t,
|
|
4993
5090
|
rect: r,
|
|
4994
5091
|
offsetParent: n,
|
|
4995
|
-
strategy:
|
|
5092
|
+
strategy: i
|
|
4996
5093
|
} = e;
|
|
4997
|
-
const a =
|
|
4998
|
-
if (n ===
|
|
5094
|
+
const a = i === "fixed", o = be(n), l = t ? xt(t.floating) : !1;
|
|
5095
|
+
if (n === o || l && a)
|
|
4999
5096
|
return r;
|
|
5000
5097
|
let c = {
|
|
5001
5098
|
scrollLeft: 0,
|
|
5002
5099
|
scrollTop: 0
|
|
5003
|
-
}, u =
|
|
5004
|
-
const d =
|
|
5005
|
-
if ((g || !g && !a) && ((De(n) !== "body" || Ze(
|
|
5100
|
+
}, u = ze(1);
|
|
5101
|
+
const d = ze(0), g = ae(n);
|
|
5102
|
+
if ((g || !g && !a) && ((De(n) !== "body" || Ze(o)) && (c = yt(n)), ae(n))) {
|
|
5006
5103
|
const p = He(n);
|
|
5007
5104
|
u = je(n), d.x = p.x + n.clientLeft, d.y = p.y + n.clientTop;
|
|
5008
5105
|
}
|
|
@@ -5013,42 +5110,42 @@ function qi(e) {
|
|
|
5013
5110
|
y: r.y * u.y - c.scrollTop * u.y + d.y
|
|
5014
5111
|
};
|
|
5015
5112
|
}
|
|
5016
|
-
function
|
|
5113
|
+
function Yo(e) {
|
|
5017
5114
|
return Array.from(e.getClientRects());
|
|
5018
5115
|
}
|
|
5019
|
-
function
|
|
5116
|
+
function Tn(e) {
|
|
5020
5117
|
return He(be(e)).left + yt(e).scrollLeft;
|
|
5021
5118
|
}
|
|
5022
|
-
function
|
|
5023
|
-
const t = be(e), r = yt(e), n = e.ownerDocument.body,
|
|
5024
|
-
let
|
|
5119
|
+
function Ko(e) {
|
|
5120
|
+
const t = be(e), r = yt(e), n = e.ownerDocument.body, i = le(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = le(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
5121
|
+
let o = -r.scrollLeft + Tn(e);
|
|
5025
5122
|
const l = -r.scrollTop;
|
|
5026
|
-
return de(n).direction === "rtl" && (
|
|
5027
|
-
width:
|
|
5123
|
+
return de(n).direction === "rtl" && (o += le(t.clientWidth, n.clientWidth) - i), {
|
|
5124
|
+
width: i,
|
|
5028
5125
|
height: a,
|
|
5029
|
-
x:
|
|
5126
|
+
x: o,
|
|
5030
5127
|
y: l
|
|
5031
5128
|
};
|
|
5032
5129
|
}
|
|
5033
|
-
function
|
|
5034
|
-
const r =
|
|
5035
|
-
let a = n.clientWidth,
|
|
5036
|
-
if (
|
|
5037
|
-
a =
|
|
5130
|
+
function Xo(e, t) {
|
|
5131
|
+
const r = oe(e), n = be(e), i = r.visualViewport;
|
|
5132
|
+
let a = n.clientWidth, o = n.clientHeight, l = 0, c = 0;
|
|
5133
|
+
if (i) {
|
|
5134
|
+
a = i.width, o = i.height;
|
|
5038
5135
|
const u = Zt();
|
|
5039
|
-
(!u || u && t === "fixed") && (l =
|
|
5136
|
+
(!u || u && t === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
|
|
5040
5137
|
}
|
|
5041
5138
|
return {
|
|
5042
5139
|
width: a,
|
|
5043
|
-
height:
|
|
5140
|
+
height: o,
|
|
5044
5141
|
x: l,
|
|
5045
5142
|
y: c
|
|
5046
5143
|
};
|
|
5047
5144
|
}
|
|
5048
|
-
function
|
|
5049
|
-
const r = He(e, !0, t === "fixed"), n = r.top + e.clientTop,
|
|
5145
|
+
function Jo(e, t) {
|
|
5146
|
+
const r = He(e, !0, t === "fixed"), n = r.top + e.clientTop, i = r.left + e.clientLeft, a = ae(e) ? je(e) : ze(1), o = e.clientWidth * a.x, l = e.clientHeight * a.y, c = i * a.x, u = n * a.y;
|
|
5050
5147
|
return {
|
|
5051
|
-
width:
|
|
5148
|
+
width: o,
|
|
5052
5149
|
height: l,
|
|
5053
5150
|
x: c,
|
|
5054
5151
|
y: u
|
|
@@ -5057,48 +5154,48 @@ function Ji(e, t) {
|
|
|
5057
5154
|
function _r(e, t, r) {
|
|
5058
5155
|
let n;
|
|
5059
5156
|
if (t === "viewport")
|
|
5060
|
-
n =
|
|
5157
|
+
n = Xo(e, r);
|
|
5061
5158
|
else if (t === "document")
|
|
5062
|
-
n =
|
|
5159
|
+
n = Ko(be(e));
|
|
5063
5160
|
else if (X(t))
|
|
5064
|
-
n =
|
|
5161
|
+
n = Jo(t, r);
|
|
5065
5162
|
else {
|
|
5066
|
-
const
|
|
5067
|
-
n = V(
|
|
5068
|
-
x: t.x -
|
|
5069
|
-
y: t.y -
|
|
5163
|
+
const i = En(e);
|
|
5164
|
+
n = V(L({}, t), {
|
|
5165
|
+
x: t.x - i.x,
|
|
5166
|
+
y: t.y - i.y
|
|
5070
5167
|
});
|
|
5071
5168
|
}
|
|
5072
5169
|
return gt(n);
|
|
5073
5170
|
}
|
|
5074
|
-
function
|
|
5171
|
+
function Sn(e, t) {
|
|
5075
5172
|
const r = ve(e);
|
|
5076
|
-
return r === t || !X(r) || Ce(r) ? !1 : de(r).position === "fixed" ||
|
|
5173
|
+
return r === t || !X(r) || Ce(r) ? !1 : de(r).position === "fixed" || Sn(r, t);
|
|
5077
5174
|
}
|
|
5078
|
-
function
|
|
5175
|
+
function Zo(e, t) {
|
|
5079
5176
|
const r = t.get(e);
|
|
5080
5177
|
if (r)
|
|
5081
5178
|
return r;
|
|
5082
|
-
let n =
|
|
5179
|
+
let n = Se(e, [], !1).filter((l) => X(l) && De(l) !== "body"), i = null;
|
|
5083
5180
|
const a = de(e).position === "fixed";
|
|
5084
|
-
let
|
|
5085
|
-
for (; X(
|
|
5086
|
-
const l = de(
|
|
5087
|
-
!c && l.position === "fixed" && (
|
|
5181
|
+
let o = a ? ve(e) : e;
|
|
5182
|
+
for (; X(o) && !Ce(o); ) {
|
|
5183
|
+
const l = de(o), c = Jt(o);
|
|
5184
|
+
!c && l.position === "fixed" && (i = null), (a ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ze(o) && !c && Sn(e, o)) ? n = n.filter((d) => d !== o) : i = l, o = ve(o);
|
|
5088
5185
|
}
|
|
5089
5186
|
return t.set(e, n), n;
|
|
5090
5187
|
}
|
|
5091
|
-
function
|
|
5188
|
+
function Qo(e) {
|
|
5092
5189
|
let {
|
|
5093
5190
|
element: t,
|
|
5094
5191
|
boundary: r,
|
|
5095
5192
|
rootBoundary: n,
|
|
5096
|
-
strategy:
|
|
5193
|
+
strategy: i
|
|
5097
5194
|
} = e;
|
|
5098
|
-
const
|
|
5099
|
-
const g = _r(t, d,
|
|
5100
|
-
return u.top = le(g.top, u.top), u.right =
|
|
5101
|
-
}, _r(t, l,
|
|
5195
|
+
const o = [...r === "clippingAncestors" ? xt(t) ? [] : Zo(t, this._c) : [].concat(r), n], l = o[0], c = o.reduce((u, d) => {
|
|
5196
|
+
const g = _r(t, d, i);
|
|
5197
|
+
return u.top = le(g.top, u.top), u.right = Te(g.right, u.right), u.bottom = Te(g.bottom, u.bottom), u.left = le(g.left, u.left), u;
|
|
5198
|
+
}, _r(t, l, i));
|
|
5102
5199
|
return {
|
|
5103
5200
|
width: c.right - c.left,
|
|
5104
5201
|
height: c.bottom - c.top,
|
|
@@ -5117,48 +5214,48 @@ function ea(e) {
|
|
|
5117
5214
|
};
|
|
5118
5215
|
}
|
|
5119
5216
|
function ta(e, t, r) {
|
|
5120
|
-
const n = ae(t),
|
|
5217
|
+
const n = ae(t), i = be(t), a = r === "fixed", o = He(e, !0, a, t);
|
|
5121
5218
|
let l = {
|
|
5122
5219
|
scrollLeft: 0,
|
|
5123
5220
|
scrollTop: 0
|
|
5124
5221
|
};
|
|
5125
|
-
const c =
|
|
5222
|
+
const c = ze(0);
|
|
5126
5223
|
if (n || !n && !a)
|
|
5127
|
-
if ((De(t) !== "body" || Ze(
|
|
5224
|
+
if ((De(t) !== "body" || Ze(i)) && (l = yt(t)), n) {
|
|
5128
5225
|
const g = He(t, !0, a, t);
|
|
5129
5226
|
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
5130
|
-
} else
|
|
5131
|
-
const u =
|
|
5227
|
+
} else i && (c.x = Tn(i));
|
|
5228
|
+
const u = o.left + l.scrollLeft - c.x, d = o.top + l.scrollTop - c.y;
|
|
5132
5229
|
return {
|
|
5133
5230
|
x: u,
|
|
5134
5231
|
y: d,
|
|
5135
|
-
width:
|
|
5136
|
-
height:
|
|
5232
|
+
width: o.width,
|
|
5233
|
+
height: o.height
|
|
5137
5234
|
};
|
|
5138
5235
|
}
|
|
5139
5236
|
function Mt(e) {
|
|
5140
5237
|
return de(e).position === "static";
|
|
5141
5238
|
}
|
|
5142
|
-
function
|
|
5239
|
+
function Wr(e, t) {
|
|
5143
5240
|
return !ae(e) || de(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
5144
5241
|
}
|
|
5145
5242
|
function Cn(e, t) {
|
|
5146
|
-
const r =
|
|
5243
|
+
const r = oe(e);
|
|
5147
5244
|
if (xt(e))
|
|
5148
5245
|
return r;
|
|
5149
5246
|
if (!ae(e)) {
|
|
5150
|
-
let
|
|
5151
|
-
for (;
|
|
5152
|
-
if (X(
|
|
5153
|
-
return
|
|
5154
|
-
|
|
5247
|
+
let i = ve(e);
|
|
5248
|
+
for (; i && !Ce(i); ) {
|
|
5249
|
+
if (X(i) && !Mt(i))
|
|
5250
|
+
return i;
|
|
5251
|
+
i = ve(i);
|
|
5155
5252
|
}
|
|
5156
5253
|
return r;
|
|
5157
5254
|
}
|
|
5158
|
-
let n =
|
|
5159
|
-
for (; n &&
|
|
5160
|
-
n =
|
|
5161
|
-
return n && Ce(n) && Mt(n) && !Jt(n) ? r : n ||
|
|
5255
|
+
let n = Wr(e, t);
|
|
5256
|
+
for (; n && io(n) && Mt(n); )
|
|
5257
|
+
n = Wr(n, t);
|
|
5258
|
+
return n && Ce(n) && Mt(n) && !Jt(n) ? r : n || oo(e) || r;
|
|
5162
5259
|
}
|
|
5163
5260
|
const ra = function(e) {
|
|
5164
5261
|
return he(this, null, function* () {
|
|
@@ -5177,26 +5274,26 @@ const ra = function(e) {
|
|
|
5177
5274
|
function na(e) {
|
|
5178
5275
|
return de(e).direction === "rtl";
|
|
5179
5276
|
}
|
|
5180
|
-
const
|
|
5181
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5277
|
+
const ia = {
|
|
5278
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: qo,
|
|
5182
5279
|
getDocumentElement: be,
|
|
5183
|
-
getClippingRect:
|
|
5280
|
+
getClippingRect: Qo,
|
|
5184
5281
|
getOffsetParent: Cn,
|
|
5185
5282
|
getElementRects: ra,
|
|
5186
|
-
getClientRects:
|
|
5283
|
+
getClientRects: Yo,
|
|
5187
5284
|
getDimensions: ea,
|
|
5188
5285
|
getScale: je,
|
|
5189
5286
|
isElement: X,
|
|
5190
5287
|
isRTL: na
|
|
5191
5288
|
};
|
|
5192
|
-
function
|
|
5289
|
+
function oa(e, t) {
|
|
5193
5290
|
let r = null, n;
|
|
5194
|
-
const
|
|
5291
|
+
const i = be(e);
|
|
5195
5292
|
function a() {
|
|
5196
5293
|
var l;
|
|
5197
5294
|
clearTimeout(n), (l = r) == null || l.disconnect(), r = null;
|
|
5198
5295
|
}
|
|
5199
|
-
function
|
|
5296
|
+
function o(l, c) {
|
|
5200
5297
|
l === void 0 && (l = !1), c === void 0 && (c = 1), a();
|
|
5201
5298
|
const {
|
|
5202
5299
|
left: u,
|
|
@@ -5206,51 +5303,51 @@ function ia(e, t) {
|
|
|
5206
5303
|
} = e.getBoundingClientRect();
|
|
5207
5304
|
if (l || t(), !g || !p)
|
|
5208
5305
|
return;
|
|
5209
|
-
const f = lt(d), m = lt(
|
|
5306
|
+
const f = lt(d), m = lt(i.clientWidth - (u + g)), h = lt(i.clientHeight - (d + p)), w = lt(u), y = {
|
|
5210
5307
|
rootMargin: -f + "px " + -m + "px " + -h + "px " + -w + "px",
|
|
5211
|
-
threshold: le(0,
|
|
5308
|
+
threshold: le(0, Te(1, c)) || 1
|
|
5212
5309
|
};
|
|
5213
5310
|
let E = !0;
|
|
5214
|
-
function
|
|
5215
|
-
const H =
|
|
5311
|
+
function T(P) {
|
|
5312
|
+
const H = P[0].intersectionRatio;
|
|
5216
5313
|
if (H !== c) {
|
|
5217
5314
|
if (!E)
|
|
5218
|
-
return
|
|
5219
|
-
H ?
|
|
5220
|
-
|
|
5315
|
+
return o();
|
|
5316
|
+
H ? o(!1, H) : n = setTimeout(() => {
|
|
5317
|
+
o(!1, 1e-7);
|
|
5221
5318
|
}, 1e3);
|
|
5222
5319
|
}
|
|
5223
5320
|
E = !1;
|
|
5224
5321
|
}
|
|
5225
5322
|
try {
|
|
5226
|
-
r = new IntersectionObserver(
|
|
5323
|
+
r = new IntersectionObserver(T, V(L({}, y), {
|
|
5227
5324
|
// Handle <iframe>s
|
|
5228
|
-
root:
|
|
5325
|
+
root: i.ownerDocument
|
|
5229
5326
|
}));
|
|
5230
|
-
} catch (
|
|
5231
|
-
r = new IntersectionObserver(
|
|
5327
|
+
} catch (P) {
|
|
5328
|
+
r = new IntersectionObserver(T, y);
|
|
5232
5329
|
}
|
|
5233
5330
|
r.observe(e);
|
|
5234
5331
|
}
|
|
5235
|
-
return
|
|
5332
|
+
return o(!0), a;
|
|
5236
5333
|
}
|
|
5237
5334
|
function aa(e, t, r, n) {
|
|
5238
5335
|
n === void 0 && (n = {});
|
|
5239
5336
|
const {
|
|
5240
|
-
ancestorScroll:
|
|
5337
|
+
ancestorScroll: i = !0,
|
|
5241
5338
|
ancestorResize: a = !0,
|
|
5242
|
-
elementResize:
|
|
5339
|
+
elementResize: o = typeof ResizeObserver == "function",
|
|
5243
5340
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
5244
5341
|
animationFrame: c = !1
|
|
5245
|
-
} = n, u = er(e), d =
|
|
5342
|
+
} = n, u = er(e), d = i || a ? [...u ? Se(u) : [], ...Se(t)] : [];
|
|
5246
5343
|
d.forEach((x) => {
|
|
5247
|
-
|
|
5344
|
+
i && x.addEventListener("scroll", r, {
|
|
5248
5345
|
passive: !0
|
|
5249
5346
|
}), a && x.addEventListener("resize", r);
|
|
5250
5347
|
});
|
|
5251
|
-
const g = u && l ?
|
|
5348
|
+
const g = u && l ? oa(u, r) : null;
|
|
5252
5349
|
let p = -1, f = null;
|
|
5253
|
-
|
|
5350
|
+
o && (f = new ResizeObserver((x) => {
|
|
5254
5351
|
let [y] = x;
|
|
5255
5352
|
y && y.target === u && f && (f.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
5256
5353
|
var E;
|
|
@@ -5266,17 +5363,17 @@ function aa(e, t, r, n) {
|
|
|
5266
5363
|
return r(), () => {
|
|
5267
5364
|
var x;
|
|
5268
5365
|
d.forEach((y) => {
|
|
5269
|
-
|
|
5366
|
+
i && y.removeEventListener("scroll", r), a && y.removeEventListener("resize", r);
|
|
5270
5367
|
}), g == null || g(), (x = f) == null || x.disconnect(), f = null, c && cancelAnimationFrame(m);
|
|
5271
5368
|
};
|
|
5272
5369
|
}
|
|
5273
|
-
const la =
|
|
5274
|
-
const n = /* @__PURE__ */ new Map(),
|
|
5275
|
-
platform:
|
|
5276
|
-
}, r), a = V(
|
|
5370
|
+
const la = No, sa = $o, ca = Bo, ua = Vo, da = (e, t, r) => {
|
|
5371
|
+
const n = /* @__PURE__ */ new Map(), i = L({
|
|
5372
|
+
platform: ia
|
|
5373
|
+
}, r), a = V(L({}, i.platform), {
|
|
5277
5374
|
_c: n
|
|
5278
5375
|
});
|
|
5279
|
-
return
|
|
5376
|
+
return Io(e, t, V(L({}, i), {
|
|
5280
5377
|
platform: a
|
|
5281
5378
|
}));
|
|
5282
5379
|
};
|
|
@@ -5288,7 +5385,7 @@ function pt(e, t) {
|
|
|
5288
5385
|
return !1;
|
|
5289
5386
|
if (typeof e == "function" && e.toString() === t.toString())
|
|
5290
5387
|
return !0;
|
|
5291
|
-
let r, n,
|
|
5388
|
+
let r, n, i;
|
|
5292
5389
|
if (e && t && typeof e == "object") {
|
|
5293
5390
|
if (Array.isArray(e)) {
|
|
5294
5391
|
if (r = e.length, r !== t.length) return !1;
|
|
@@ -5297,13 +5394,13 @@ function pt(e, t) {
|
|
|
5297
5394
|
return !1;
|
|
5298
5395
|
return !0;
|
|
5299
5396
|
}
|
|
5300
|
-
if (
|
|
5397
|
+
if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length)
|
|
5301
5398
|
return !1;
|
|
5302
5399
|
for (n = r; n-- !== 0; )
|
|
5303
|
-
if (!{}.hasOwnProperty.call(t,
|
|
5400
|
+
if (!{}.hasOwnProperty.call(t, i[n]))
|
|
5304
5401
|
return !1;
|
|
5305
5402
|
for (n = r; n-- !== 0; ) {
|
|
5306
|
-
const a =
|
|
5403
|
+
const a = i[n];
|
|
5307
5404
|
if (!(a === "_owner" && e.$$typeof) && !pt(e[a], t[a]))
|
|
5308
5405
|
return !1;
|
|
5309
5406
|
}
|
|
@@ -5311,11 +5408,11 @@ function pt(e, t) {
|
|
|
5311
5408
|
}
|
|
5312
5409
|
return e !== e && t !== t;
|
|
5313
5410
|
}
|
|
5314
|
-
function
|
|
5411
|
+
function zn(e) {
|
|
5315
5412
|
return typeof window == "undefined" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5316
5413
|
}
|
|
5317
|
-
function
|
|
5318
|
-
const r =
|
|
5414
|
+
function Ar(e, t) {
|
|
5415
|
+
const r = zn(e);
|
|
5319
5416
|
return Math.round(t * r) / r;
|
|
5320
5417
|
}
|
|
5321
5418
|
function Or(e) {
|
|
@@ -5330,10 +5427,10 @@ function fa(e) {
|
|
|
5330
5427
|
placement: t = "bottom",
|
|
5331
5428
|
strategy: r = "absolute",
|
|
5332
5429
|
middleware: n = [],
|
|
5333
|
-
platform:
|
|
5430
|
+
platform: i,
|
|
5334
5431
|
elements: {
|
|
5335
5432
|
reference: a,
|
|
5336
|
-
floating:
|
|
5433
|
+
floating: o
|
|
5337
5434
|
} = {},
|
|
5338
5435
|
transform: l = !0,
|
|
5339
5436
|
whileElementsMounted: c,
|
|
@@ -5347,20 +5444,20 @@ function fa(e) {
|
|
|
5347
5444
|
isPositioned: !1
|
|
5348
5445
|
}), [p, f] = v.useState(n);
|
|
5349
5446
|
pt(p, n) || f(n);
|
|
5350
|
-
const [m, h] = v.useState(null), [w, x] = v.useState(null), y = v.useCallback((
|
|
5351
|
-
|
|
5352
|
-
}, []), E = v.useCallback((
|
|
5353
|
-
|
|
5354
|
-
}, []),
|
|
5447
|
+
const [m, h] = v.useState(null), [w, x] = v.useState(null), y = v.useCallback((k) => {
|
|
5448
|
+
k !== H.current && (H.current = k, h(k));
|
|
5449
|
+
}, []), E = v.useCallback((k) => {
|
|
5450
|
+
k !== N.current && (N.current = k, x(k));
|
|
5451
|
+
}, []), T = a || m, P = o || w, H = v.useRef(null), N = v.useRef(null), B = v.useRef(d), J = c != null, U = Or(c), G = Or(i), _ = v.useCallback(() => {
|
|
5355
5452
|
if (!H.current || !N.current)
|
|
5356
5453
|
return;
|
|
5357
|
-
const
|
|
5454
|
+
const k = {
|
|
5358
5455
|
placement: t,
|
|
5359
5456
|
strategy: r,
|
|
5360
5457
|
middleware: p
|
|
5361
5458
|
};
|
|
5362
|
-
G.current && (
|
|
5363
|
-
const $ = V(
|
|
5459
|
+
G.current && (k.platform = G.current), da(H.current, N.current, k).then((M) => {
|
|
5460
|
+
const $ = V(L({}, M), {
|
|
5364
5461
|
isPositioned: !0
|
|
5365
5462
|
});
|
|
5366
5463
|
q.current && !pt(B.current, $) && (B.current = $, Xr.flushSync(() => {
|
|
@@ -5369,7 +5466,7 @@ function fa(e) {
|
|
|
5369
5466
|
});
|
|
5370
5467
|
}, [p, t, r, G]);
|
|
5371
5468
|
st(() => {
|
|
5372
|
-
u === !1 && B.current.isPositioned && (B.current.isPositioned = !1, g((
|
|
5469
|
+
u === !1 && B.current.isPositioned && (B.current.isPositioned = !1, g((k) => V(L({}, k), {
|
|
5373
5470
|
isPositioned: !1
|
|
5374
5471
|
})));
|
|
5375
5472
|
}, [u]);
|
|
@@ -5377,55 +5474,55 @@ function fa(e) {
|
|
|
5377
5474
|
st(() => (q.current = !0, () => {
|
|
5378
5475
|
q.current = !1;
|
|
5379
5476
|
}), []), st(() => {
|
|
5380
|
-
if (
|
|
5477
|
+
if (T && (H.current = T), P && (N.current = P), T && P) {
|
|
5381
5478
|
if (U.current)
|
|
5382
|
-
return U.current(
|
|
5479
|
+
return U.current(T, P, _);
|
|
5383
5480
|
_();
|
|
5384
5481
|
}
|
|
5385
|
-
}, [
|
|
5386
|
-
const
|
|
5482
|
+
}, [T, P, _, U, J]);
|
|
5483
|
+
const W = v.useMemo(() => ({
|
|
5387
5484
|
reference: H,
|
|
5388
5485
|
floating: N,
|
|
5389
5486
|
setReference: y,
|
|
5390
5487
|
setFloating: E
|
|
5391
|
-
}), [y, E]),
|
|
5392
|
-
reference:
|
|
5393
|
-
floating:
|
|
5394
|
-
}), [
|
|
5395
|
-
const
|
|
5488
|
+
}), [y, E]), S = v.useMemo(() => ({
|
|
5489
|
+
reference: T,
|
|
5490
|
+
floating: P
|
|
5491
|
+
}), [T, P]), z = v.useMemo(() => {
|
|
5492
|
+
const k = {
|
|
5396
5493
|
position: r,
|
|
5397
5494
|
left: 0,
|
|
5398
5495
|
top: 0
|
|
5399
5496
|
};
|
|
5400
|
-
if (!
|
|
5401
|
-
return
|
|
5402
|
-
const M =
|
|
5403
|
-
return l ?
|
|
5497
|
+
if (!S.floating)
|
|
5498
|
+
return k;
|
|
5499
|
+
const M = Ar(S.floating, d.x), $ = Ar(S.floating, d.y);
|
|
5500
|
+
return l ? L(V(L({}, k), {
|
|
5404
5501
|
transform: "translate(" + M + "px, " + $ + "px)"
|
|
5405
|
-
}),
|
|
5502
|
+
}), zn(S.floating) >= 1.5 && {
|
|
5406
5503
|
willChange: "transform"
|
|
5407
5504
|
}) : {
|
|
5408
5505
|
position: r,
|
|
5409
5506
|
left: M,
|
|
5410
5507
|
top: $
|
|
5411
5508
|
};
|
|
5412
|
-
}, [r, l,
|
|
5413
|
-
return v.useMemo(() => V(
|
|
5509
|
+
}, [r, l, S.floating, d.x, d.y]);
|
|
5510
|
+
return v.useMemo(() => V(L({}, d), {
|
|
5414
5511
|
update: _,
|
|
5415
|
-
refs:
|
|
5416
|
-
elements:
|
|
5417
|
-
floatingStyles:
|
|
5418
|
-
}), [d, _,
|
|
5512
|
+
refs: W,
|
|
5513
|
+
elements: S,
|
|
5514
|
+
floatingStyles: z
|
|
5515
|
+
}), [d, _, W, S, z]);
|
|
5419
5516
|
}
|
|
5420
|
-
const ga = (e, t) => V(
|
|
5517
|
+
const ga = (e, t) => V(L({}, la(e)), {
|
|
5421
5518
|
options: [e, t]
|
|
5422
|
-
}), ma = (e, t) => V(
|
|
5519
|
+
}), ma = (e, t) => V(L({}, sa(e)), {
|
|
5423
5520
|
options: [e, t]
|
|
5424
|
-
}), ha = (e, t) => V(
|
|
5521
|
+
}), ha = (e, t) => V(L({}, ca(e)), {
|
|
5425
5522
|
options: [e, t]
|
|
5426
|
-
}), pa = (e, t) => V(
|
|
5523
|
+
}), pa = (e, t) => V(L({}, ua(e)), {
|
|
5427
5524
|
options: [e, t]
|
|
5428
|
-
}),
|
|
5525
|
+
}), kn = L({}, v), va = kn.useInsertionEffect, ba = va || ((e) => e());
|
|
5429
5526
|
function Re(e) {
|
|
5430
5527
|
const t = v.useRef(() => {
|
|
5431
5528
|
if (process.env.NODE_ENV !== "production")
|
|
@@ -5434,8 +5531,8 @@ function Re(e) {
|
|
|
5434
5531
|
return ba(() => {
|
|
5435
5532
|
t.current = e;
|
|
5436
5533
|
}), v.useCallback(function() {
|
|
5437
|
-
for (var r = arguments.length, n = new Array(r),
|
|
5438
|
-
n[
|
|
5534
|
+
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
5535
|
+
n[i] = arguments[i];
|
|
5439
5536
|
return t.current == null ? void 0 : t.current(...n);
|
|
5440
5537
|
}, []);
|
|
5441
5538
|
}
|
|
@@ -5464,16 +5561,16 @@ function ya() {
|
|
|
5464
5561
|
jr = !0;
|
|
5465
5562
|
}, []), e;
|
|
5466
5563
|
}
|
|
5467
|
-
const wa =
|
|
5564
|
+
const wa = kn.useId, tr = wa || ya;
|
|
5468
5565
|
let Yt;
|
|
5469
5566
|
process.env.NODE_ENV !== "production" && (Yt = /* @__PURE__ */ new Set());
|
|
5470
5567
|
function Ra() {
|
|
5471
5568
|
for (var e, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
5472
5569
|
r[n] = arguments[n];
|
|
5473
|
-
const
|
|
5474
|
-
if (!((e = Yt) != null && e.has(
|
|
5570
|
+
const i = "Floating UI: " + r.join(" ");
|
|
5571
|
+
if (!((e = Yt) != null && e.has(i))) {
|
|
5475
5572
|
var a;
|
|
5476
|
-
(a = Yt) == null || a.add(
|
|
5573
|
+
(a = Yt) == null || a.add(i), console.error(i);
|
|
5477
5574
|
}
|
|
5478
5575
|
}
|
|
5479
5576
|
function Ea() {
|
|
@@ -5481,26 +5578,26 @@ function Ea() {
|
|
|
5481
5578
|
return {
|
|
5482
5579
|
emit(t, r) {
|
|
5483
5580
|
var n;
|
|
5484
|
-
(n = e.get(t)) == null || n.forEach((
|
|
5581
|
+
(n = e.get(t)) == null || n.forEach((i) => i(r));
|
|
5485
5582
|
},
|
|
5486
5583
|
on(t, r) {
|
|
5487
5584
|
e.set(t, [...e.get(t) || [], r]);
|
|
5488
5585
|
},
|
|
5489
5586
|
off(t, r) {
|
|
5490
5587
|
var n;
|
|
5491
|
-
e.set(t, ((n = e.get(t)) == null ? void 0 : n.filter((
|
|
5588
|
+
e.set(t, ((n = e.get(t)) == null ? void 0 : n.filter((i) => i !== r)) || []);
|
|
5492
5589
|
}
|
|
5493
5590
|
};
|
|
5494
5591
|
}
|
|
5495
|
-
const
|
|
5592
|
+
const Ta = /* @__PURE__ */ v.createContext(null), Sa = /* @__PURE__ */ v.createContext(null), rr = () => {
|
|
5496
5593
|
var e;
|
|
5497
|
-
return ((e = v.useContext(
|
|
5498
|
-
}, nr = () => v.useContext(
|
|
5594
|
+
return ((e = v.useContext(Ta)) == null ? void 0 : e.id) || null;
|
|
5595
|
+
}, nr = () => v.useContext(Sa);
|
|
5499
5596
|
function tt(e) {
|
|
5500
5597
|
return "data-floating-ui-" + e;
|
|
5501
5598
|
}
|
|
5502
5599
|
function Ht(e) {
|
|
5503
|
-
const t =
|
|
5600
|
+
const t = pi(e);
|
|
5504
5601
|
return fe(() => {
|
|
5505
5602
|
t.current = e;
|
|
5506
5603
|
}), t;
|
|
@@ -5514,9 +5611,9 @@ function el(e, t) {
|
|
|
5514
5611
|
const {
|
|
5515
5612
|
open: r,
|
|
5516
5613
|
onOpenChange: n,
|
|
5517
|
-
dataRef:
|
|
5614
|
+
dataRef: i,
|
|
5518
5615
|
events: a,
|
|
5519
|
-
elements:
|
|
5616
|
+
elements: o
|
|
5520
5617
|
} = e, {
|
|
5521
5618
|
enabled: l = !0,
|
|
5522
5619
|
delay: c = 0,
|
|
@@ -5524,164 +5621,164 @@ function el(e, t) {
|
|
|
5524
5621
|
mouseOnly: d = !1,
|
|
5525
5622
|
restMs: g = 0,
|
|
5526
5623
|
move: p = !0
|
|
5527
|
-
} = t, f = nr(), m = rr(), h = Ht(u), w = Ht(c), x = Ht(r), y = v.useRef(), E = v.useRef(-1),
|
|
5624
|
+
} = t, f = nr(), m = rr(), h = Ht(u), w = Ht(c), x = Ht(r), y = v.useRef(), E = v.useRef(-1), T = v.useRef(), P = v.useRef(-1), H = v.useRef(!0), N = v.useRef(!1), B = v.useRef(() => {
|
|
5528
5625
|
}), J = v.useCallback(() => {
|
|
5529
|
-
var
|
|
5530
|
-
const
|
|
5531
|
-
return (
|
|
5532
|
-
}, [
|
|
5626
|
+
var S;
|
|
5627
|
+
const z = (S = i.current.openEvent) == null ? void 0 : S.type;
|
|
5628
|
+
return (z == null ? void 0 : z.includes("mouse")) && z !== "mousedown";
|
|
5629
|
+
}, [i]);
|
|
5533
5630
|
v.useEffect(() => {
|
|
5534
5631
|
if (!l) return;
|
|
5535
|
-
function
|
|
5632
|
+
function S(z) {
|
|
5536
5633
|
let {
|
|
5537
|
-
open:
|
|
5538
|
-
} =
|
|
5539
|
-
|
|
5634
|
+
open: k
|
|
5635
|
+
} = z;
|
|
5636
|
+
k || (clearTimeout(E.current), clearTimeout(P.current), H.current = !0);
|
|
5540
5637
|
}
|
|
5541
|
-
return a.on("openchange",
|
|
5542
|
-
a.off("openchange",
|
|
5638
|
+
return a.on("openchange", S), () => {
|
|
5639
|
+
a.off("openchange", S);
|
|
5543
5640
|
};
|
|
5544
5641
|
}, [l, a]), v.useEffect(() => {
|
|
5545
5642
|
if (!l || !h.current || !r) return;
|
|
5546
|
-
function
|
|
5547
|
-
J() && n(!1,
|
|
5643
|
+
function S(k) {
|
|
5644
|
+
J() && n(!1, k, "hover");
|
|
5548
5645
|
}
|
|
5549
|
-
const
|
|
5550
|
-
return
|
|
5551
|
-
|
|
5646
|
+
const z = Ee(o.floating).documentElement;
|
|
5647
|
+
return z.addEventListener("mouseleave", S), () => {
|
|
5648
|
+
z.removeEventListener("mouseleave", S);
|
|
5552
5649
|
};
|
|
5553
|
-
}, [
|
|
5554
|
-
const U = v.useCallback(function(
|
|
5555
|
-
|
|
5650
|
+
}, [o.floating, r, n, l, h, J]);
|
|
5651
|
+
const U = v.useCallback(function(S, z, k) {
|
|
5652
|
+
z === void 0 && (z = !0), k === void 0 && (k = "hover");
|
|
5556
5653
|
const M = _t(w.current, "close", y.current);
|
|
5557
|
-
M && !
|
|
5654
|
+
M && !T.current ? (clearTimeout(E.current), E.current = window.setTimeout(() => n(!1, S, k), M)) : z && (clearTimeout(E.current), n(!1, S, k));
|
|
5558
5655
|
}, [w, n]), G = Re(() => {
|
|
5559
|
-
B.current(),
|
|
5656
|
+
B.current(), T.current = void 0;
|
|
5560
5657
|
}), _ = Re(() => {
|
|
5561
5658
|
if (N.current) {
|
|
5562
|
-
const
|
|
5563
|
-
|
|
5659
|
+
const S = Ee(o.floating).body;
|
|
5660
|
+
S.style.pointerEvents = "", S.removeAttribute(Ir), N.current = !1;
|
|
5564
5661
|
}
|
|
5565
5662
|
});
|
|
5566
5663
|
v.useEffect(() => {
|
|
5567
5664
|
if (!l) return;
|
|
5568
|
-
function
|
|
5569
|
-
return
|
|
5665
|
+
function S() {
|
|
5666
|
+
return i.current.openEvent ? ["click", "mousedown"].includes(i.current.openEvent.type) : !1;
|
|
5570
5667
|
}
|
|
5571
|
-
function
|
|
5668
|
+
function z(A) {
|
|
5572
5669
|
if (clearTimeout(E.current), H.current = !1, d && !Ke(y.current) || g > 0 && !_t(w.current, "open"))
|
|
5573
5670
|
return;
|
|
5574
5671
|
const F = _t(w.current, "open", y.current);
|
|
5575
5672
|
F ? E.current = window.setTimeout(() => {
|
|
5576
|
-
x.current || n(!0,
|
|
5577
|
-
}, F) : n(!0,
|
|
5673
|
+
x.current || n(!0, A, "hover");
|
|
5674
|
+
}, F) : n(!0, A, "hover");
|
|
5578
5675
|
}
|
|
5579
|
-
function
|
|
5580
|
-
if (
|
|
5676
|
+
function k(A) {
|
|
5677
|
+
if (S()) return;
|
|
5581
5678
|
B.current();
|
|
5582
|
-
const F = Ee(
|
|
5583
|
-
if (clearTimeout(
|
|
5584
|
-
r || clearTimeout(E.current),
|
|
5679
|
+
const F = Ee(o.floating);
|
|
5680
|
+
if (clearTimeout(P.current), h.current && i.current.floatingContext) {
|
|
5681
|
+
r || clearTimeout(E.current), T.current = h.current(V(L({}, i.current.floatingContext), {
|
|
5585
5682
|
tree: f,
|
|
5586
|
-
x:
|
|
5587
|
-
y:
|
|
5683
|
+
x: A.clientX,
|
|
5684
|
+
y: A.clientY,
|
|
5588
5685
|
onClose() {
|
|
5589
|
-
_(), G(), U(
|
|
5686
|
+
_(), G(), U(A, !0, "safe-polygon");
|
|
5590
5687
|
}
|
|
5591
5688
|
}));
|
|
5592
|
-
const
|
|
5593
|
-
F.addEventListener("mousemove",
|
|
5594
|
-
F.removeEventListener("mousemove",
|
|
5689
|
+
const Le = T.current;
|
|
5690
|
+
F.addEventListener("mousemove", Le), B.current = () => {
|
|
5691
|
+
F.removeEventListener("mousemove", Le);
|
|
5595
5692
|
};
|
|
5596
5693
|
return;
|
|
5597
5694
|
}
|
|
5598
|
-
(y.current === "touch" ? !Ie(
|
|
5695
|
+
(y.current === "touch" ? !Ie(o.floating, A.relatedTarget) : !0) && U(A);
|
|
5599
5696
|
}
|
|
5600
|
-
function M(
|
|
5601
|
-
|
|
5697
|
+
function M(A) {
|
|
5698
|
+
S() || i.current.floatingContext && (h.current == null || h.current(V(L({}, i.current.floatingContext), {
|
|
5602
5699
|
tree: f,
|
|
5603
|
-
x:
|
|
5604
|
-
y:
|
|
5700
|
+
x: A.clientX,
|
|
5701
|
+
y: A.clientY,
|
|
5605
5702
|
onClose() {
|
|
5606
|
-
_(), G(), U(
|
|
5703
|
+
_(), G(), U(A);
|
|
5607
5704
|
}
|
|
5608
|
-
}))(
|
|
5705
|
+
}))(A));
|
|
5609
5706
|
}
|
|
5610
|
-
if (X(
|
|
5707
|
+
if (X(o.domReference)) {
|
|
5611
5708
|
var $;
|
|
5612
|
-
const
|
|
5613
|
-
return r &&
|
|
5709
|
+
const A = o.domReference;
|
|
5710
|
+
return r && A.addEventListener("mouseleave", M), ($ = o.floating) == null || $.addEventListener("mouseleave", M), p && A.addEventListener("mousemove", z, {
|
|
5614
5711
|
once: !0
|
|
5615
|
-
}),
|
|
5712
|
+
}), A.addEventListener("mouseenter", z), A.addEventListener("mouseleave", k), () => {
|
|
5616
5713
|
var F;
|
|
5617
|
-
r &&
|
|
5714
|
+
r && A.removeEventListener("mouseleave", M), (F = o.floating) == null || F.removeEventListener("mouseleave", M), p && A.removeEventListener("mousemove", z), A.removeEventListener("mouseenter", z), A.removeEventListener("mouseleave", k);
|
|
5618
5715
|
};
|
|
5619
5716
|
}
|
|
5620
|
-
}, [
|
|
5621
|
-
var
|
|
5622
|
-
if (l && r && (
|
|
5623
|
-
const
|
|
5624
|
-
|
|
5625
|
-
const M =
|
|
5626
|
-
if (X(
|
|
5627
|
-
var
|
|
5628
|
-
const $ =
|
|
5629
|
-
return
|
|
5717
|
+
}, [o, l, e, d, g, p, U, G, _, n, r, x, f, w, h, i]), fe(() => {
|
|
5718
|
+
var S;
|
|
5719
|
+
if (l && r && (S = h.current) != null && S.__options.blockPointerEvents && J()) {
|
|
5720
|
+
const k = Ee(o.floating).body;
|
|
5721
|
+
k.setAttribute(Ir, ""), k.style.pointerEvents = "none", N.current = !0;
|
|
5722
|
+
const M = o.floating;
|
|
5723
|
+
if (X(o.domReference) && M) {
|
|
5724
|
+
var z;
|
|
5725
|
+
const $ = o.domReference, A = f == null || (z = f.nodesRef.current.find((F) => F.id === m)) == null || (z = z.context) == null ? void 0 : z.elements.floating;
|
|
5726
|
+
return A && (A.style.pointerEvents = ""), $.style.pointerEvents = "auto", M.style.pointerEvents = "auto", () => {
|
|
5630
5727
|
$.style.pointerEvents = "", M.style.pointerEvents = "";
|
|
5631
5728
|
};
|
|
5632
5729
|
}
|
|
5633
5730
|
}
|
|
5634
|
-
}, [l, r, m,
|
|
5731
|
+
}, [l, r, m, o, f, h, J]), fe(() => {
|
|
5635
5732
|
r || (y.current = void 0, G(), _());
|
|
5636
5733
|
}, [r, G, _]), v.useEffect(() => () => {
|
|
5637
|
-
G(), clearTimeout(E.current), clearTimeout(
|
|
5638
|
-
}, [l,
|
|
5734
|
+
G(), clearTimeout(E.current), clearTimeout(P.current), _();
|
|
5735
|
+
}, [l, o.domReference, G, _]);
|
|
5639
5736
|
const q = v.useMemo(() => {
|
|
5640
|
-
function
|
|
5641
|
-
y.current =
|
|
5737
|
+
function S(z) {
|
|
5738
|
+
y.current = z.pointerType;
|
|
5642
5739
|
}
|
|
5643
5740
|
return {
|
|
5644
|
-
onPointerDown:
|
|
5645
|
-
onPointerEnter:
|
|
5646
|
-
onMouseMove(
|
|
5741
|
+
onPointerDown: S,
|
|
5742
|
+
onPointerEnter: S,
|
|
5743
|
+
onMouseMove(z) {
|
|
5647
5744
|
const {
|
|
5648
|
-
nativeEvent:
|
|
5649
|
-
} =
|
|
5745
|
+
nativeEvent: k
|
|
5746
|
+
} = z;
|
|
5650
5747
|
function M() {
|
|
5651
|
-
!H.current && !x.current && n(!0,
|
|
5748
|
+
!H.current && !x.current && n(!0, k, "hover");
|
|
5652
5749
|
}
|
|
5653
|
-
d && !Ke(y.current) || r || g === 0 || (clearTimeout(
|
|
5750
|
+
d && !Ke(y.current) || r || g === 0 || (clearTimeout(P.current), y.current === "touch" ? M() : P.current = window.setTimeout(M, g));
|
|
5654
5751
|
}
|
|
5655
5752
|
};
|
|
5656
|
-
}, [d, n, r, x, g]),
|
|
5753
|
+
}, [d, n, r, x, g]), W = v.useMemo(() => ({
|
|
5657
5754
|
onMouseEnter() {
|
|
5658
5755
|
clearTimeout(E.current);
|
|
5659
5756
|
},
|
|
5660
|
-
onMouseLeave(
|
|
5661
|
-
U(
|
|
5757
|
+
onMouseLeave(S) {
|
|
5758
|
+
U(S.nativeEvent, !1);
|
|
5662
5759
|
}
|
|
5663
5760
|
}), [U]);
|
|
5664
5761
|
return v.useMemo(() => l ? {
|
|
5665
5762
|
reference: q,
|
|
5666
|
-
floating:
|
|
5667
|
-
} : {}, [l, q,
|
|
5763
|
+
floating: W
|
|
5764
|
+
} : {}, [l, q, W]);
|
|
5668
5765
|
}
|
|
5669
|
-
function
|
|
5670
|
-
let r = e.filter((
|
|
5766
|
+
function Wt(e, t) {
|
|
5767
|
+
let r = e.filter((i) => {
|
|
5671
5768
|
var a;
|
|
5672
|
-
return
|
|
5769
|
+
return i.parentId === t && ((a = i.context) == null ? void 0 : a.open);
|
|
5673
5770
|
}), n = r;
|
|
5674
5771
|
for (; n.length; )
|
|
5675
|
-
n = e.filter((
|
|
5772
|
+
n = e.filter((i) => {
|
|
5676
5773
|
var a;
|
|
5677
|
-
return (a = n) == null ? void 0 : a.some((
|
|
5774
|
+
return (a = n) == null ? void 0 : a.some((o) => {
|
|
5678
5775
|
var l;
|
|
5679
|
-
return
|
|
5776
|
+
return i.parentId === o.id && ((l = i.context) == null ? void 0 : l.open);
|
|
5680
5777
|
});
|
|
5681
5778
|
}), r = r.concat(n);
|
|
5682
5779
|
return r;
|
|
5683
5780
|
}
|
|
5684
|
-
const
|
|
5781
|
+
const Ln = () => ({
|
|
5685
5782
|
getShadowRoot: !0,
|
|
5686
5783
|
displayCheck: (
|
|
5687
5784
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -5690,28 +5787,28 @@ const Pn = () => ({
|
|
|
5690
5787
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
5691
5788
|
)
|
|
5692
5789
|
});
|
|
5693
|
-
function
|
|
5694
|
-
const r = wn(e,
|
|
5790
|
+
function Pn(e, t) {
|
|
5791
|
+
const r = wn(e, Ln());
|
|
5695
5792
|
t === "prev" && r.reverse();
|
|
5696
5793
|
const n = r.indexOf(Vt(Ee(e)));
|
|
5697
5794
|
return r.slice(n + 1)[0];
|
|
5698
5795
|
}
|
|
5699
5796
|
function Ca() {
|
|
5700
|
-
return
|
|
5797
|
+
return Pn(document.body, "next");
|
|
5701
5798
|
}
|
|
5702
|
-
function
|
|
5703
|
-
return
|
|
5799
|
+
function za() {
|
|
5800
|
+
return Pn(document.body, "prev");
|
|
5704
5801
|
}
|
|
5705
|
-
function
|
|
5802
|
+
function At(e, t) {
|
|
5706
5803
|
const r = t || e.currentTarget, n = e.relatedTarget;
|
|
5707
5804
|
return !n || !Ie(r, n);
|
|
5708
5805
|
}
|
|
5709
|
-
function
|
|
5710
|
-
wn(e,
|
|
5806
|
+
function ka(e) {
|
|
5807
|
+
wn(e, Ln()).forEach((r) => {
|
|
5711
5808
|
r.dataset.tabindex = r.getAttribute("tabindex") || "", r.setAttribute("tabindex", "-1");
|
|
5712
5809
|
});
|
|
5713
5810
|
}
|
|
5714
|
-
function
|
|
5811
|
+
function La(e) {
|
|
5715
5812
|
e.querySelectorAll("[data-tabindex]").forEach((r) => {
|
|
5716
5813
|
const n = r.dataset.tabindex;
|
|
5717
5814
|
delete r.dataset.tabindex, n ? r.setAttribute("tabindex", n) : r.removeAttribute("tabindex");
|
|
@@ -5730,13 +5827,13 @@ const Mn = {
|
|
|
5730
5827
|
top: 0,
|
|
5731
5828
|
left: 0
|
|
5732
5829
|
};
|
|
5733
|
-
let
|
|
5830
|
+
let Pa;
|
|
5734
5831
|
function Br(e) {
|
|
5735
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
5832
|
+
e.key === "Tab" && (e.target, clearTimeout(Pa));
|
|
5736
5833
|
}
|
|
5737
5834
|
const Dr = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
5738
|
-
const [n,
|
|
5739
|
-
fe(() => (fn() &&
|
|
5835
|
+
const [n, i] = v.useState();
|
|
5836
|
+
fe(() => (fn() && i("button"), document.addEventListener("keydown", Br), () => {
|
|
5740
5837
|
document.removeEventListener("keydown", Br);
|
|
5741
5838
|
}), []);
|
|
5742
5839
|
const a = {
|
|
@@ -5755,7 +5852,7 @@ function Ma(e) {
|
|
|
5755
5852
|
const {
|
|
5756
5853
|
id: t,
|
|
5757
5854
|
root: r
|
|
5758
|
-
} = e, n = tr(),
|
|
5855
|
+
} = e, n = tr(), i = _a(), [a, o] = v.useState(null), l = v.useRef(null);
|
|
5759
5856
|
return fe(() => () => {
|
|
5760
5857
|
a == null || a.remove(), queueMicrotask(() => {
|
|
5761
5858
|
l.current = null;
|
|
@@ -5765,61 +5862,61 @@ function Ma(e) {
|
|
|
5765
5862
|
const c = t ? document.getElementById(t) : null;
|
|
5766
5863
|
if (!c) return;
|
|
5767
5864
|
const u = document.createElement("div");
|
|
5768
|
-
u.id = n, u.setAttribute(Nr, ""), c.appendChild(u), l.current = u,
|
|
5865
|
+
u.id = n, u.setAttribute(Nr, ""), c.appendChild(u), l.current = u, o(u);
|
|
5769
5866
|
}, [t, n]), fe(() => {
|
|
5770
5867
|
if (!n || l.current) return;
|
|
5771
|
-
let c = r || (
|
|
5868
|
+
let c = r || (i == null ? void 0 : i.portalNode);
|
|
5772
5869
|
c && !X(c) && (c = c.current), c = c || document.body;
|
|
5773
5870
|
let u = null;
|
|
5774
5871
|
t && (u = document.createElement("div"), u.id = t, c.appendChild(u));
|
|
5775
5872
|
const d = document.createElement("div");
|
|
5776
|
-
d.id = n, d.setAttribute(Nr, ""), c = u || c, c.appendChild(d), l.current = d,
|
|
5777
|
-
}, [t, r, n,
|
|
5873
|
+
d.id = n, d.setAttribute(Nr, ""), c = u || c, c.appendChild(d), l.current = d, o(d);
|
|
5874
|
+
}, [t, r, n, i]), a;
|
|
5778
5875
|
}
|
|
5779
5876
|
function Ha(e) {
|
|
5780
5877
|
const {
|
|
5781
5878
|
children: t,
|
|
5782
5879
|
id: r,
|
|
5783
5880
|
root: n = null,
|
|
5784
|
-
preserveTabOrder:
|
|
5881
|
+
preserveTabOrder: i = !0
|
|
5785
5882
|
} = e, a = Ma({
|
|
5786
5883
|
id: r,
|
|
5787
5884
|
root: n
|
|
5788
|
-
}), [
|
|
5885
|
+
}), [o, l] = v.useState(null), c = v.useRef(null), u = v.useRef(null), d = v.useRef(null), g = v.useRef(null), p = (
|
|
5789
5886
|
// The FocusManager and therefore floating element are currently open/
|
|
5790
5887
|
// rendered.
|
|
5791
|
-
!!
|
|
5792
|
-
!
|
|
5793
|
-
|
|
5888
|
+
!!o && // Guards are only for non-modal focus management.
|
|
5889
|
+
!o.modal && // Don't render if unmount is transitioning.
|
|
5890
|
+
o.open && i && !!(n || a)
|
|
5794
5891
|
);
|
|
5795
5892
|
return v.useEffect(() => {
|
|
5796
|
-
if (!a || !
|
|
5893
|
+
if (!a || !i || o != null && o.modal)
|
|
5797
5894
|
return;
|
|
5798
5895
|
function f(m) {
|
|
5799
|
-
a &&
|
|
5896
|
+
a && At(m) && (m.type === "focusin" ? La : ka)(a);
|
|
5800
5897
|
}
|
|
5801
5898
|
return a.addEventListener("focusin", f, !0), a.addEventListener("focusout", f, !0), () => {
|
|
5802
5899
|
a.removeEventListener("focusin", f, !0), a.removeEventListener("focusout", f, !0);
|
|
5803
5900
|
};
|
|
5804
|
-
}, [a,
|
|
5901
|
+
}, [a, i, o == null ? void 0 : o.modal]), /* @__PURE__ */ v.createElement(Hn.Provider, {
|
|
5805
5902
|
value: v.useMemo(() => ({
|
|
5806
|
-
preserveTabOrder:
|
|
5903
|
+
preserveTabOrder: i,
|
|
5807
5904
|
beforeOutsideRef: c,
|
|
5808
5905
|
afterOutsideRef: u,
|
|
5809
5906
|
beforeInsideRef: d,
|
|
5810
5907
|
afterInsideRef: g,
|
|
5811
5908
|
portalNode: a,
|
|
5812
5909
|
setFocusManagerState: l
|
|
5813
|
-
}), [
|
|
5910
|
+
}), [i, a])
|
|
5814
5911
|
}, p && a && /* @__PURE__ */ v.createElement(Dr, {
|
|
5815
5912
|
"data-type": "outside",
|
|
5816
5913
|
ref: c,
|
|
5817
5914
|
onFocus: (f) => {
|
|
5818
|
-
if (
|
|
5915
|
+
if (At(f, a)) {
|
|
5819
5916
|
var m;
|
|
5820
5917
|
(m = d.current) == null || m.focus();
|
|
5821
5918
|
} else {
|
|
5822
|
-
const h =
|
|
5919
|
+
const h = za() || (o == null ? void 0 : o.refs.domReference.current);
|
|
5823
5920
|
h == null || h.focus();
|
|
5824
5921
|
}
|
|
5825
5922
|
}
|
|
@@ -5830,12 +5927,12 @@ function Ha(e) {
|
|
|
5830
5927
|
"data-type": "outside",
|
|
5831
5928
|
ref: u,
|
|
5832
5929
|
onFocus: (f) => {
|
|
5833
|
-
if (
|
|
5930
|
+
if (At(f, a)) {
|
|
5834
5931
|
var m;
|
|
5835
5932
|
(m = g.current) == null || m.focus();
|
|
5836
5933
|
} else {
|
|
5837
|
-
const h = Ca() || (
|
|
5838
|
-
h == null || h.focus(),
|
|
5934
|
+
const h = Ca() || (o == null ? void 0 : o.refs.domReference.current);
|
|
5935
|
+
h == null || h.focus(), o != null && o.closeOnFocusOut && (o == null || o.onOpenChange(!1, f.nativeEvent));
|
|
5839
5936
|
}
|
|
5840
5937
|
}
|
|
5841
5938
|
}));
|
|
@@ -5847,17 +5944,17 @@ function $r(e) {
|
|
|
5847
5944
|
function Vr(e) {
|
|
5848
5945
|
return gn(e);
|
|
5849
5946
|
}
|
|
5850
|
-
function
|
|
5947
|
+
function Wa(e, t) {
|
|
5851
5948
|
t === void 0 && (t = {});
|
|
5852
5949
|
const {
|
|
5853
5950
|
open: r,
|
|
5854
5951
|
onOpenChange: n,
|
|
5855
|
-
dataRef:
|
|
5952
|
+
dataRef: i,
|
|
5856
5953
|
elements: {
|
|
5857
5954
|
domReference: a
|
|
5858
5955
|
}
|
|
5859
5956
|
} = e, {
|
|
5860
|
-
enabled:
|
|
5957
|
+
enabled: o = !0,
|
|
5861
5958
|
event: l = "click",
|
|
5862
5959
|
toggle: c = !0,
|
|
5863
5960
|
ignoreMouse: u = !1,
|
|
@@ -5868,7 +5965,7 @@ function Aa(e, t) {
|
|
|
5868
5965
|
},
|
|
5869
5966
|
onMouseDown(m) {
|
|
5870
5967
|
const h = g.current;
|
|
5871
|
-
m.button === 0 && l !== "click" && (Ke(h, !0) && u || (r && c && (!
|
|
5968
|
+
m.button === 0 && l !== "click" && (Ke(h, !0) && u || (r && c && (!i.current.openEvent || i.current.openEvent.type === "mousedown") ? n(!1, m.nativeEvent, "click") : (m.preventDefault(), n(!0, m.nativeEvent, "click"))));
|
|
5872
5969
|
},
|
|
5873
5970
|
onClick(m) {
|
|
5874
5971
|
const h = g.current;
|
|
@@ -5876,7 +5973,7 @@ function Aa(e, t) {
|
|
|
5876
5973
|
g.current = void 0;
|
|
5877
5974
|
return;
|
|
5878
5975
|
}
|
|
5879
|
-
Ke(h, !0) && u || (r && c && (!
|
|
5976
|
+
Ke(h, !0) && u || (r && c && (!i.current.openEvent || i.current.openEvent.type === "click") ? n(!1, m.nativeEvent, "click") : n(!0, m.nativeEvent, "click"));
|
|
5880
5977
|
},
|
|
5881
5978
|
onKeyDown(m) {
|
|
5882
5979
|
g.current = void 0, !(m.defaultPrevented || !d || $r(m)) && (m.key === " " && !Vr(a) && (m.preventDefault(), p.current = !0), m.key === "Enter" && n(!(r && c), m.nativeEvent, "click"));
|
|
@@ -5884,12 +5981,12 @@ function Aa(e, t) {
|
|
|
5884
5981
|
onKeyUp(m) {
|
|
5885
5982
|
m.defaultPrevented || !d || $r(m) || Vr(a) || m.key === " " && p.current && (p.current = !1, n(!(r && c), m.nativeEvent, "click"));
|
|
5886
5983
|
}
|
|
5887
|
-
}), [
|
|
5888
|
-
return v.useMemo(() =>
|
|
5984
|
+
}), [i, a, l, u, d, n, r, c]);
|
|
5985
|
+
return v.useMemo(() => o ? {
|
|
5889
5986
|
reference: f
|
|
5890
|
-
} : {}, [
|
|
5987
|
+
} : {}, [o, f]);
|
|
5891
5988
|
}
|
|
5892
|
-
const
|
|
5989
|
+
const Aa = {
|
|
5893
5990
|
pointerdown: "onPointerDown",
|
|
5894
5991
|
mousedown: "onMouseDown",
|
|
5895
5992
|
click: "onClick"
|
|
@@ -5909,10 +6006,10 @@ function ja(e, t) {
|
|
|
5909
6006
|
const {
|
|
5910
6007
|
open: r,
|
|
5911
6008
|
onOpenChange: n,
|
|
5912
|
-
elements:
|
|
6009
|
+
elements: i,
|
|
5913
6010
|
dataRef: a
|
|
5914
6011
|
} = e, {
|
|
5915
|
-
enabled:
|
|
6012
|
+
enabled: o = !0,
|
|
5916
6013
|
escapeKey: l = !0,
|
|
5917
6014
|
outsidePress: c = !0,
|
|
5918
6015
|
outsidePressEvent: u = "pointerdown",
|
|
@@ -5922,43 +6019,43 @@ function ja(e, t) {
|
|
|
5922
6019
|
bubbles: f,
|
|
5923
6020
|
capture: m
|
|
5924
6021
|
} = t, h = nr(), w = Re(typeof c == "function" ? c : () => !1), x = typeof c == "function" ? w : c, y = v.useRef(!1), E = v.useRef(!1), {
|
|
5925
|
-
escapeKey:
|
|
5926
|
-
outsidePress:
|
|
6022
|
+
escapeKey: T,
|
|
6023
|
+
outsidePress: P
|
|
5927
6024
|
} = Gr(f), {
|
|
5928
6025
|
escapeKey: H,
|
|
5929
6026
|
outsidePress: N
|
|
5930
|
-
} = Gr(m), B = Re((
|
|
5931
|
-
var
|
|
5932
|
-
if (!r || !
|
|
6027
|
+
} = Gr(m), B = Re((W) => {
|
|
6028
|
+
var S;
|
|
6029
|
+
if (!r || !o || !l || W.key !== "Escape")
|
|
5933
6030
|
return;
|
|
5934
|
-
const
|
|
5935
|
-
if (!
|
|
6031
|
+
const z = (S = a.current.floatingContext) == null ? void 0 : S.nodeId, k = h ? Wt(h.nodesRef.current, z) : [];
|
|
6032
|
+
if (!T && (W.stopPropagation(), k.length > 0)) {
|
|
5936
6033
|
let M = !0;
|
|
5937
|
-
if (
|
|
5938
|
-
var
|
|
5939
|
-
if ((
|
|
6034
|
+
if (k.forEach(($) => {
|
|
6035
|
+
var A;
|
|
6036
|
+
if ((A = $.context) != null && A.open && !$.context.dataRef.current.__escapeKeyBubbles) {
|
|
5940
6037
|
M = !1;
|
|
5941
6038
|
return;
|
|
5942
6039
|
}
|
|
5943
6040
|
}), !M)
|
|
5944
6041
|
return;
|
|
5945
6042
|
}
|
|
5946
|
-
n(!1,
|
|
5947
|
-
}), J = Re((
|
|
5948
|
-
var
|
|
5949
|
-
const
|
|
5950
|
-
var
|
|
5951
|
-
B(
|
|
6043
|
+
n(!1, co(W) ? W.nativeEvent : W, "escape-key");
|
|
6044
|
+
}), J = Re((W) => {
|
|
6045
|
+
var S;
|
|
6046
|
+
const z = () => {
|
|
6047
|
+
var k;
|
|
6048
|
+
B(W), (k = Ae(W)) == null || k.removeEventListener("keydown", z);
|
|
5952
6049
|
};
|
|
5953
|
-
(
|
|
5954
|
-
}), U = Re((
|
|
5955
|
-
var
|
|
5956
|
-
const
|
|
6050
|
+
(S = Ae(W)) == null || S.addEventListener("keydown", z);
|
|
6051
|
+
}), U = Re((W) => {
|
|
6052
|
+
var S;
|
|
6053
|
+
const z = y.current;
|
|
5957
6054
|
y.current = !1;
|
|
5958
|
-
const
|
|
5959
|
-
if (E.current = !1, u === "click" &&
|
|
6055
|
+
const k = E.current;
|
|
6056
|
+
if (E.current = !1, u === "click" && k || z || typeof x == "function" && !x(W))
|
|
5960
6057
|
return;
|
|
5961
|
-
const M =
|
|
6058
|
+
const M = Ae(W), $ = "[" + tt("inert") + "]", A = Ee(i.floating).querySelectorAll($);
|
|
5962
6059
|
let F = X(M) ? M : null;
|
|
5963
6060
|
for (; F && !Ce(F); ) {
|
|
5964
6061
|
const re = ve(F);
|
|
@@ -5966,24 +6063,24 @@ function ja(e, t) {
|
|
|
5966
6063
|
break;
|
|
5967
6064
|
F = re;
|
|
5968
6065
|
}
|
|
5969
|
-
if (
|
|
5970
|
-
!Ie(M,
|
|
6066
|
+
if (A.length && X(M) && !uo(M) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
6067
|
+
!Ie(M, i.floating) && // If the target root element contains none of the markers, then the
|
|
5971
6068
|
// element was injected after the floating element rendered.
|
|
5972
|
-
Array.from(
|
|
6069
|
+
Array.from(A).every((re) => !Ie(F, re)))
|
|
5973
6070
|
return;
|
|
5974
6071
|
if (ae(M) && q) {
|
|
5975
6072
|
const re = M.clientWidth > 0 && M.scrollWidth > M.clientWidth, se = M.clientHeight > 0 && M.scrollHeight > M.clientHeight;
|
|
5976
|
-
let ge = se &&
|
|
5977
|
-
if (se && de(M).direction === "rtl" && (ge =
|
|
6073
|
+
let ge = se && W.offsetX > M.clientWidth;
|
|
6074
|
+
if (se && de(M).direction === "rtl" && (ge = W.offsetX <= M.offsetWidth - M.clientWidth), ge || re && W.offsetY > M.clientHeight)
|
|
5978
6075
|
return;
|
|
5979
6076
|
}
|
|
5980
|
-
const xe = (
|
|
6077
|
+
const xe = (S = a.current.floatingContext) == null ? void 0 : S.nodeId, Le = h && Wt(h.nodesRef.current, xe).some((re) => {
|
|
5981
6078
|
var se;
|
|
5982
|
-
return
|
|
6079
|
+
return Pt(W, (se = re.context) == null ? void 0 : se.elements.floating);
|
|
5983
6080
|
});
|
|
5984
|
-
if (
|
|
6081
|
+
if (Pt(W, i.floating) || Pt(W, i.domReference) || Le)
|
|
5985
6082
|
return;
|
|
5986
|
-
const rt = h ?
|
|
6083
|
+
const rt = h ? Wt(h.nodesRef.current, xe) : [];
|
|
5987
6084
|
if (rt.length > 0) {
|
|
5988
6085
|
let re = !0;
|
|
5989
6086
|
if (rt.forEach((se) => {
|
|
@@ -5995,44 +6092,44 @@ function ja(e, t) {
|
|
|
5995
6092
|
}), !re)
|
|
5996
6093
|
return;
|
|
5997
6094
|
}
|
|
5998
|
-
n(!1,
|
|
5999
|
-
}), G = Re((
|
|
6000
|
-
var
|
|
6001
|
-
const
|
|
6002
|
-
var
|
|
6003
|
-
U(
|
|
6095
|
+
n(!1, W, "outside-press");
|
|
6096
|
+
}), G = Re((W) => {
|
|
6097
|
+
var S;
|
|
6098
|
+
const z = () => {
|
|
6099
|
+
var k;
|
|
6100
|
+
U(W), (k = Ae(W)) == null || k.removeEventListener(u, z);
|
|
6004
6101
|
};
|
|
6005
|
-
(
|
|
6102
|
+
(S = Ae(W)) == null || S.addEventListener(u, z);
|
|
6006
6103
|
});
|
|
6007
6104
|
v.useEffect(() => {
|
|
6008
|
-
if (!r || !
|
|
6105
|
+
if (!r || !o)
|
|
6009
6106
|
return;
|
|
6010
|
-
a.current.__escapeKeyBubbles =
|
|
6011
|
-
function
|
|
6012
|
-
n(!1,
|
|
6013
|
-
}
|
|
6014
|
-
const
|
|
6015
|
-
l &&
|
|
6016
|
-
let
|
|
6017
|
-
return p && (X(
|
|
6107
|
+
a.current.__escapeKeyBubbles = T, a.current.__outsidePressBubbles = P;
|
|
6108
|
+
function W(k) {
|
|
6109
|
+
n(!1, k, "ancestor-scroll");
|
|
6110
|
+
}
|
|
6111
|
+
const S = Ee(i.floating);
|
|
6112
|
+
l && S.addEventListener("keydown", H ? J : B, H), x && S.addEventListener(u, N ? G : U, N);
|
|
6113
|
+
let z = [];
|
|
6114
|
+
return p && (X(i.domReference) && (z = Se(i.domReference)), X(i.floating) && (z = z.concat(Se(i.floating))), !X(i.reference) && i.reference && i.reference.contextElement && (z = z.concat(Se(i.reference.contextElement)))), z = z.filter((k) => {
|
|
6018
6115
|
var M;
|
|
6019
|
-
return
|
|
6020
|
-
}),
|
|
6021
|
-
|
|
6116
|
+
return k !== ((M = S.defaultView) == null ? void 0 : M.visualViewport);
|
|
6117
|
+
}), z.forEach((k) => {
|
|
6118
|
+
k.addEventListener("scroll", W, {
|
|
6022
6119
|
passive: !0
|
|
6023
6120
|
});
|
|
6024
6121
|
}), () => {
|
|
6025
|
-
l &&
|
|
6026
|
-
|
|
6122
|
+
l && S.removeEventListener("keydown", H ? J : B, H), x && S.removeEventListener(u, N ? G : U, N), z.forEach((k) => {
|
|
6123
|
+
k.removeEventListener("scroll", W);
|
|
6027
6124
|
});
|
|
6028
6125
|
};
|
|
6029
|
-
}, [a,
|
|
6126
|
+
}, [a, i, l, x, u, r, n, p, o, T, P, B, H, J, U, N, G]), v.useEffect(() => {
|
|
6030
6127
|
y.current = !1;
|
|
6031
6128
|
}, [x, u]);
|
|
6032
6129
|
const _ = v.useMemo(() => ({
|
|
6033
6130
|
onKeyDown: B,
|
|
6034
|
-
[
|
|
6035
|
-
d && n(!1,
|
|
6131
|
+
[Aa[g]]: (W) => {
|
|
6132
|
+
d && n(!1, W.nativeEvent, "reference-press");
|
|
6036
6133
|
}
|
|
6037
6134
|
}), [B, n, d, g]), q = v.useMemo(() => ({
|
|
6038
6135
|
onKeyDown: B,
|
|
@@ -6046,23 +6143,23 @@ function ja(e, t) {
|
|
|
6046
6143
|
y.current = !0;
|
|
6047
6144
|
}
|
|
6048
6145
|
}), [B, u]);
|
|
6049
|
-
return v.useMemo(() =>
|
|
6146
|
+
return v.useMemo(() => o ? {
|
|
6050
6147
|
reference: _,
|
|
6051
6148
|
floating: q
|
|
6052
|
-
} : {}, [
|
|
6149
|
+
} : {}, [o, _, q]);
|
|
6053
6150
|
}
|
|
6054
6151
|
function Fa(e) {
|
|
6055
6152
|
const {
|
|
6056
6153
|
open: t = !1,
|
|
6057
6154
|
onOpenChange: r,
|
|
6058
6155
|
elements: n
|
|
6059
|
-
} = e,
|
|
6156
|
+
} = e, i = tr(), a = v.useRef({}), [o] = v.useState(() => Ea()), l = rr() != null;
|
|
6060
6157
|
if (process.env.NODE_ENV !== "production") {
|
|
6061
6158
|
const f = n.reference;
|
|
6062
6159
|
f && !X(f) && Ra("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
6063
6160
|
}
|
|
6064
6161
|
const [c, u] = v.useState(n.reference), d = Re((f, m, h) => {
|
|
6065
|
-
a.current.openEvent = f ? m : void 0,
|
|
6162
|
+
a.current.openEvent = f ? m : void 0, o.emit("openchange", {
|
|
6066
6163
|
open: f,
|
|
6067
6164
|
event: m,
|
|
6068
6165
|
reason: h,
|
|
@@ -6080,55 +6177,55 @@ function Fa(e) {
|
|
|
6080
6177
|
open: t,
|
|
6081
6178
|
onOpenChange: d,
|
|
6082
6179
|
elements: p,
|
|
6083
|
-
events:
|
|
6084
|
-
floatingId:
|
|
6180
|
+
events: o,
|
|
6181
|
+
floatingId: i,
|
|
6085
6182
|
refs: g
|
|
6086
|
-
}), [t, d, p,
|
|
6183
|
+
}), [t, d, p, o, i, g]);
|
|
6087
6184
|
}
|
|
6088
6185
|
function Ia(e) {
|
|
6089
6186
|
e === void 0 && (e = {});
|
|
6090
6187
|
const {
|
|
6091
6188
|
nodeId: t
|
|
6092
|
-
} = e, r = Fa(V(
|
|
6093
|
-
elements:
|
|
6189
|
+
} = e, r = Fa(V(L({}, e), {
|
|
6190
|
+
elements: L({
|
|
6094
6191
|
reference: null,
|
|
6095
6192
|
floating: null
|
|
6096
6193
|
}, e.elements)
|
|
6097
|
-
})), n = e.rootContext || r,
|
|
6194
|
+
})), n = e.rootContext || r, i = n.elements, [a, o] = v.useState(null), [l, c] = v.useState(null), d = (i == null ? void 0 : i.reference) || a, g = v.useRef(null), p = nr();
|
|
6098
6195
|
fe(() => {
|
|
6099
6196
|
d && (g.current = d);
|
|
6100
6197
|
}, [d]);
|
|
6101
|
-
const f = fa(V(
|
|
6102
|
-
elements:
|
|
6198
|
+
const f = fa(V(L({}, e), {
|
|
6199
|
+
elements: L(L({}, i), l && {
|
|
6103
6200
|
reference: l
|
|
6104
6201
|
})
|
|
6105
6202
|
})), m = v.useCallback((E) => {
|
|
6106
|
-
const
|
|
6203
|
+
const T = X(E) ? {
|
|
6107
6204
|
getBoundingClientRect: () => E.getBoundingClientRect(),
|
|
6108
6205
|
contextElement: E
|
|
6109
6206
|
} : E;
|
|
6110
|
-
c(
|
|
6207
|
+
c(T), f.refs.setReference(T);
|
|
6111
6208
|
}, [f.refs]), h = v.useCallback((E) => {
|
|
6112
|
-
(X(E) || E === null) && (g.current = E,
|
|
6209
|
+
(X(E) || E === null) && (g.current = E, o(E)), (X(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
6113
6210
|
// `null` to support `positionReference` + an unstable `reference`
|
|
6114
6211
|
// callback ref.
|
|
6115
6212
|
E !== null && !X(E)) && f.refs.setReference(E);
|
|
6116
|
-
}, [f.refs]), w = v.useMemo(() => V(
|
|
6213
|
+
}, [f.refs]), w = v.useMemo(() => V(L({}, f.refs), {
|
|
6117
6214
|
setReference: h,
|
|
6118
6215
|
setPositionReference: m,
|
|
6119
6216
|
domReference: g
|
|
6120
|
-
}), [f.refs, h, m]), x = v.useMemo(() => V(
|
|
6217
|
+
}), [f.refs, h, m]), x = v.useMemo(() => V(L({}, f.elements), {
|
|
6121
6218
|
domReference: d
|
|
6122
|
-
}), [f.elements, d]), y = v.useMemo(() => V(
|
|
6219
|
+
}), [f.elements, d]), y = v.useMemo(() => V(L(L({}, f), n), {
|
|
6123
6220
|
refs: w,
|
|
6124
6221
|
elements: x,
|
|
6125
6222
|
nodeId: t
|
|
6126
6223
|
}), [f, w, x, t, n]);
|
|
6127
6224
|
return fe(() => {
|
|
6128
6225
|
n.dataRef.current.floatingContext = y;
|
|
6129
|
-
const E = p == null ? void 0 : p.nodesRef.current.find((
|
|
6226
|
+
const E = p == null ? void 0 : p.nodesRef.current.find((T) => T.id === t);
|
|
6130
6227
|
E && (E.context = y);
|
|
6131
|
-
}), v.useMemo(() => V(
|
|
6228
|
+
}), v.useMemo(() => V(L({}, f), {
|
|
6132
6229
|
context: y,
|
|
6133
6230
|
refs: w,
|
|
6134
6231
|
elements: x
|
|
@@ -6139,18 +6236,18 @@ function Ba(e, t) {
|
|
|
6139
6236
|
const {
|
|
6140
6237
|
open: r,
|
|
6141
6238
|
onOpenChange: n,
|
|
6142
|
-
events:
|
|
6239
|
+
events: i,
|
|
6143
6240
|
dataRef: a,
|
|
6144
|
-
elements:
|
|
6241
|
+
elements: o
|
|
6145
6242
|
} = e, {
|
|
6146
6243
|
enabled: l = !0,
|
|
6147
6244
|
visibleOnly: c = !0
|
|
6148
6245
|
} = t, u = v.useRef(!1), d = v.useRef(), g = v.useRef(!0);
|
|
6149
6246
|
v.useEffect(() => {
|
|
6150
6247
|
if (!l) return;
|
|
6151
|
-
const f =
|
|
6248
|
+
const f = oe(o.domReference);
|
|
6152
6249
|
function m() {
|
|
6153
|
-
!r && ae(
|
|
6250
|
+
!r && ae(o.domReference) && o.domReference === Vt(Ee(o.domReference)) && (u.current = !0);
|
|
6154
6251
|
}
|
|
6155
6252
|
function h() {
|
|
6156
6253
|
g.current = !0;
|
|
@@ -6158,7 +6255,7 @@ function Ba(e, t) {
|
|
|
6158
6255
|
return f.addEventListener("blur", m), f.addEventListener("keydown", h, !0), () => {
|
|
6159
6256
|
f.removeEventListener("blur", m), f.removeEventListener("keydown", h, !0);
|
|
6160
6257
|
};
|
|
6161
|
-
}, [
|
|
6258
|
+
}, [o.domReference, r, l]), v.useEffect(() => {
|
|
6162
6259
|
if (!l) return;
|
|
6163
6260
|
function f(m) {
|
|
6164
6261
|
let {
|
|
@@ -6166,25 +6263,25 @@ function Ba(e, t) {
|
|
|
6166
6263
|
} = m;
|
|
6167
6264
|
(h === "reference-press" || h === "escape-key") && (u.current = !0);
|
|
6168
6265
|
}
|
|
6169
|
-
return
|
|
6170
|
-
|
|
6266
|
+
return i.on("openchange", f), () => {
|
|
6267
|
+
i.off("openchange", f);
|
|
6171
6268
|
};
|
|
6172
|
-
}, [
|
|
6269
|
+
}, [i, l]), v.useEffect(() => () => {
|
|
6173
6270
|
clearTimeout(d.current);
|
|
6174
6271
|
}, []);
|
|
6175
6272
|
const p = v.useMemo(() => ({
|
|
6176
6273
|
onPointerDown(f) {
|
|
6177
|
-
|
|
6274
|
+
ao(f.nativeEvent) || (g.current = !1);
|
|
6178
6275
|
},
|
|
6179
6276
|
onMouseLeave() {
|
|
6180
6277
|
u.current = !1;
|
|
6181
6278
|
},
|
|
6182
6279
|
onFocus(f) {
|
|
6183
6280
|
if (u.current) return;
|
|
6184
|
-
const m =
|
|
6281
|
+
const m = Ae(f.nativeEvent);
|
|
6185
6282
|
if (c && X(m))
|
|
6186
6283
|
try {
|
|
6187
|
-
if (fn() &&
|
|
6284
|
+
if (fn() && lo()) throw Error();
|
|
6188
6285
|
if (!m.matches(":focus-visible")) return;
|
|
6189
6286
|
} catch (h) {
|
|
6190
6287
|
if (!g.current && !gn(m))
|
|
@@ -6197,37 +6294,37 @@ function Ba(e, t) {
|
|
|
6197
6294
|
const m = f.relatedTarget, h = f.nativeEvent, w = X(m) && m.hasAttribute(tt("focus-guard")) && m.getAttribute("data-type") === "outside";
|
|
6198
6295
|
d.current = window.setTimeout(() => {
|
|
6199
6296
|
var x;
|
|
6200
|
-
const y = Vt(
|
|
6201
|
-
!m && y ===
|
|
6297
|
+
const y = Vt(o.domReference ? o.domReference.ownerDocument : document);
|
|
6298
|
+
!m && y === o.domReference || Ie((x = a.current.floatingContext) == null ? void 0 : x.refs.floating.current, y) || Ie(o.domReference, y) || w || n(!1, h, "focus");
|
|
6202
6299
|
});
|
|
6203
6300
|
}
|
|
6204
|
-
}), [a,
|
|
6301
|
+
}), [a, o.domReference, n, c]);
|
|
6205
6302
|
return v.useMemo(() => l ? {
|
|
6206
6303
|
reference: p
|
|
6207
6304
|
} : {}, [l, p]);
|
|
6208
6305
|
}
|
|
6209
6306
|
const Ot = "active", jt = "selected";
|
|
6210
6307
|
function Ft(e, t, r) {
|
|
6211
|
-
const n = /* @__PURE__ */ new Map(),
|
|
6308
|
+
const n = /* @__PURE__ */ new Map(), i = r === "item";
|
|
6212
6309
|
let a = e;
|
|
6213
|
-
if (
|
|
6214
|
-
const
|
|
6310
|
+
if (i && e) {
|
|
6311
|
+
const o = e, {
|
|
6215
6312
|
[Ot]: l,
|
|
6216
6313
|
[jt]: c
|
|
6217
|
-
} =
|
|
6218
|
-
a = me(
|
|
6219
|
-
|
|
6220
|
-
|
|
6314
|
+
} = o;
|
|
6315
|
+
a = me(o, [
|
|
6316
|
+
zt(Ot),
|
|
6317
|
+
zt(jt)
|
|
6221
6318
|
]);
|
|
6222
6319
|
}
|
|
6223
|
-
return
|
|
6320
|
+
return L(L(L({}, r === "floating" && {
|
|
6224
6321
|
tabIndex: -1
|
|
6225
6322
|
}), a), t.map((l) => {
|
|
6226
6323
|
const c = l ? l[r] : null;
|
|
6227
6324
|
return typeof c == "function" ? e ? c(e) : null : c;
|
|
6228
6325
|
}).concat(e).reduce((l, c) => (c && Object.entries(c).forEach((u) => {
|
|
6229
6326
|
let [d, g] = u;
|
|
6230
|
-
if (!(
|
|
6327
|
+
if (!(i && [Ot, jt].includes(d)))
|
|
6231
6328
|
if (d.indexOf("on") === 0) {
|
|
6232
6329
|
if (n.has(d) || n.set(d, []), typeof g == "function") {
|
|
6233
6330
|
var p;
|
|
@@ -6243,7 +6340,7 @@ function Ft(e, t, r) {
|
|
|
6243
6340
|
}
|
|
6244
6341
|
function Da(e) {
|
|
6245
6342
|
e === void 0 && (e = []);
|
|
6246
|
-
const t = e.map((l) => l == null ? void 0 : l.reference), r = e.map((l) => l == null ? void 0 : l.floating), n = e.map((l) => l == null ? void 0 : l.item),
|
|
6343
|
+
const t = e.map((l) => l == null ? void 0 : l.reference), r = e.map((l) => l == null ? void 0 : l.floating), n = e.map((l) => l == null ? void 0 : l.item), i = v.useCallback(
|
|
6247
6344
|
(l) => Ft(l, e, "reference"),
|
|
6248
6345
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6249
6346
|
t
|
|
@@ -6251,16 +6348,16 @@ function Da(e) {
|
|
|
6251
6348
|
(l) => Ft(l, e, "floating"),
|
|
6252
6349
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6253
6350
|
r
|
|
6254
|
-
),
|
|
6351
|
+
), o = v.useCallback(
|
|
6255
6352
|
(l) => Ft(l, e, "item"),
|
|
6256
6353
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6257
6354
|
n
|
|
6258
6355
|
);
|
|
6259
6356
|
return v.useMemo(() => ({
|
|
6260
|
-
getReferenceProps:
|
|
6357
|
+
getReferenceProps: i,
|
|
6261
6358
|
getFloatingProps: a,
|
|
6262
|
-
getItemProps:
|
|
6263
|
-
}), [
|
|
6359
|
+
getItemProps: o
|
|
6360
|
+
}), [i, a, o]);
|
|
6264
6361
|
}
|
|
6265
6362
|
const Na = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
6266
6363
|
function $a(e, t) {
|
|
@@ -6268,57 +6365,57 @@ function $a(e, t) {
|
|
|
6268
6365
|
t === void 0 && (t = {});
|
|
6269
6366
|
const {
|
|
6270
6367
|
open: n,
|
|
6271
|
-
floatingId:
|
|
6368
|
+
floatingId: i
|
|
6272
6369
|
} = e, {
|
|
6273
6370
|
enabled: a = !0,
|
|
6274
|
-
role:
|
|
6275
|
-
} = t, l = (r = Na.get(
|
|
6276
|
-
["aria-" + (
|
|
6277
|
-
} :
|
|
6371
|
+
role: o = "dialog"
|
|
6372
|
+
} = t, l = (r = Na.get(o)) != null ? r : o, c = tr(), d = rr() != null, g = v.useMemo(() => l === "tooltip" || o === "label" ? {
|
|
6373
|
+
["aria-" + (o === "label" ? "labelledby" : "describedby")]: n ? i : void 0
|
|
6374
|
+
} : L(L(L(L(L({
|
|
6278
6375
|
"aria-expanded": n ? "true" : "false",
|
|
6279
6376
|
"aria-haspopup": l === "alertdialog" ? "dialog" : l,
|
|
6280
|
-
"aria-controls": n ?
|
|
6377
|
+
"aria-controls": n ? i : void 0
|
|
6281
6378
|
}, l === "listbox" && {
|
|
6282
6379
|
role: "combobox"
|
|
6283
6380
|
}), l === "menu" && {
|
|
6284
6381
|
id: c
|
|
6285
6382
|
}), l === "menu" && d && {
|
|
6286
6383
|
role: "menuitem"
|
|
6287
|
-
}),
|
|
6384
|
+
}), o === "select" && {
|
|
6288
6385
|
"aria-autocomplete": "none"
|
|
6289
|
-
}),
|
|
6386
|
+
}), o === "combobox" && {
|
|
6290
6387
|
"aria-autocomplete": "list"
|
|
6291
|
-
}), [l,
|
|
6292
|
-
const m =
|
|
6293
|
-
id:
|
|
6388
|
+
}), [l, i, d, n, c, o]), p = v.useMemo(() => {
|
|
6389
|
+
const m = L({
|
|
6390
|
+
id: i
|
|
6294
6391
|
}, l && {
|
|
6295
6392
|
role: l
|
|
6296
6393
|
});
|
|
6297
|
-
return l === "tooltip" ||
|
|
6394
|
+
return l === "tooltip" || o === "label" ? m : L(L({}, m), l === "menu" && {
|
|
6298
6395
|
"aria-labelledby": c
|
|
6299
6396
|
});
|
|
6300
|
-
}, [l,
|
|
6397
|
+
}, [l, i, c, o]), f = v.useCallback((m) => {
|
|
6301
6398
|
let {
|
|
6302
6399
|
active: h,
|
|
6303
6400
|
selected: w
|
|
6304
6401
|
} = m;
|
|
6305
|
-
const x =
|
|
6402
|
+
const x = L({
|
|
6306
6403
|
role: "option"
|
|
6307
6404
|
}, h && {
|
|
6308
|
-
id:
|
|
6405
|
+
id: i + "-option"
|
|
6309
6406
|
});
|
|
6310
|
-
switch (
|
|
6407
|
+
switch (o) {
|
|
6311
6408
|
case "select":
|
|
6312
|
-
return V(
|
|
6409
|
+
return V(L({}, x), {
|
|
6313
6410
|
"aria-selected": h && w
|
|
6314
6411
|
});
|
|
6315
6412
|
case "combobox":
|
|
6316
|
-
return
|
|
6413
|
+
return L(L({}, x), h && {
|
|
6317
6414
|
"aria-selected": !0
|
|
6318
6415
|
});
|
|
6319
6416
|
}
|
|
6320
6417
|
return {};
|
|
6321
|
-
}, [
|
|
6418
|
+
}, [i, o]);
|
|
6322
6419
|
return v.useMemo(() => a ? {
|
|
6323
6420
|
reference: g,
|
|
6324
6421
|
floating: p,
|
|
@@ -6335,9 +6432,9 @@ const Va = {
|
|
|
6335
6432
|
const m = e, {
|
|
6336
6433
|
show: r,
|
|
6337
6434
|
handleClose: n,
|
|
6338
|
-
animation:
|
|
6435
|
+
animation: i = "slideDown",
|
|
6339
6436
|
marginTop: a,
|
|
6340
|
-
maxWidth:
|
|
6437
|
+
maxWidth: o,
|
|
6341
6438
|
children: l,
|
|
6342
6439
|
className: c,
|
|
6343
6440
|
contentClassName: u,
|
|
@@ -6354,7 +6451,7 @@ const Va = {
|
|
|
6354
6451
|
"contentClassName",
|
|
6355
6452
|
"isDismissible",
|
|
6356
6453
|
"overlayBlur"
|
|
6357
|
-
]), f = Va[
|
|
6454
|
+
]), f = Va[i];
|
|
6358
6455
|
if (Je(() => {
|
|
6359
6456
|
const h = document.documentElement;
|
|
6360
6457
|
return r ? h.classList.add("modal-animated-open") : h.classList.remove("modal-animated-open"), () => {
|
|
@@ -6363,10 +6460,10 @@ const Va = {
|
|
|
6363
6460
|
}, [r]), r) {
|
|
6364
6461
|
const h = {
|
|
6365
6462
|
marginTop: a ? `${a}` : void 0,
|
|
6366
|
-
maxWidth:
|
|
6463
|
+
maxWidth: o ? `${o}` : void 0
|
|
6367
6464
|
}, w = /* @__PURE__ */ R.jsxs(
|
|
6368
6465
|
"div",
|
|
6369
|
-
V(
|
|
6466
|
+
V(L({
|
|
6370
6467
|
ref: t,
|
|
6371
6468
|
className: ct("modal-animated", r ? "show" : "hide", c)
|
|
6372
6469
|
}, p), {
|
|
@@ -6374,7 +6471,7 @@ const Va = {
|
|
|
6374
6471
|
/* @__PURE__ */ R.jsx(
|
|
6375
6472
|
"div",
|
|
6376
6473
|
{
|
|
6377
|
-
className:
|
|
6474
|
+
className: ie(
|
|
6378
6475
|
"modal-animated-backdrop",
|
|
6379
6476
|
// eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
|
|
6380
6477
|
g && "ds-bg-[RGBA(255,255,255,0.24)] ds-backdrop-blur-[12px]"
|
|
@@ -6387,7 +6484,7 @@ const Va = {
|
|
|
6387
6484
|
{
|
|
6388
6485
|
className: ct(
|
|
6389
6486
|
"modal-animated-content",
|
|
6390
|
-
r ?
|
|
6487
|
+
r ? i + "Open" : f + "Close",
|
|
6391
6488
|
u
|
|
6392
6489
|
),
|
|
6393
6490
|
style: h,
|
|
@@ -6399,36 +6496,36 @@ const Va = {
|
|
|
6399
6496
|
]
|
|
6400
6497
|
})
|
|
6401
6498
|
);
|
|
6402
|
-
return
|
|
6499
|
+
return vi(w, document.body);
|
|
6403
6500
|
} else
|
|
6404
6501
|
return null;
|
|
6405
6502
|
});
|
|
6406
6503
|
_n.displayName = "AnimatedModal";
|
|
6407
|
-
const
|
|
6504
|
+
const Wn = Number(
|
|
6408
6505
|
ut.theme.screens["ds-tablet"].min.replace("px", "")
|
|
6409
6506
|
), Ga = Number(
|
|
6410
6507
|
ut.theme.screens["ds-desktop"].min.replace("px", "")
|
|
6411
|
-
), Ur = (e) => e <
|
|
6412
|
-
const [e, t] = ue(document.documentElement.clientWidth), [r, n] = ue(document.documentElement.clientHeight),
|
|
6508
|
+
), Ur = (e) => e < Wn ? "mobile" : e < Ga ? "tablet" : "desktop", tl = () => {
|
|
6509
|
+
const [e, t] = ue(document.documentElement.clientWidth), [r, n] = ue(document.documentElement.clientHeight), i = Ur(document.documentElement.clientWidth), [a, o] = ue(i), [l, c] = ue(i === "mobile"), [u, d] = ue(i === "tablet"), [g, p] = ue(i === "desktop");
|
|
6413
6510
|
return Je(() => {
|
|
6414
6511
|
const f = () => {
|
|
6415
6512
|
t(document.documentElement.clientWidth), n(document.documentElement.clientHeight);
|
|
6416
6513
|
const m = Ur(document.documentElement.clientWidth);
|
|
6417
|
-
c(m === "mobile"), d(m === "tablet"), p(m === "desktop"),
|
|
6514
|
+
c(m === "mobile"), d(m === "tablet"), p(m === "desktop"), o(m);
|
|
6418
6515
|
};
|
|
6419
6516
|
return window.addEventListener("resize", f), f(), () => {
|
|
6420
6517
|
window.removeEventListener("resize", f);
|
|
6421
6518
|
};
|
|
6422
6519
|
}, []), { documentWidth: e, documentHeight: r, screenSize: a, isMobile: l, isTablet: u, isDesktop: g };
|
|
6423
|
-
},
|
|
6424
|
-
({ label: e, isChecked: t, onSelectionChange: r, disabled: n, className:
|
|
6520
|
+
}, An = Kt(
|
|
6521
|
+
({ label: e, isChecked: t, onSelectionChange: r, disabled: n, className: i, labelPosition: a = "right" }, o) => /* @__PURE__ */ R.jsxs(
|
|
6425
6522
|
"label",
|
|
6426
6523
|
{
|
|
6427
|
-
className:
|
|
6524
|
+
className: ie(
|
|
6428
6525
|
"ds-flex ds-cursor-pointer ds-select-none ds-items-center ds-gap-2 ds-text-xSmallSubheadRegular ds-tablet:ds-text-xSmallSubheadRegular ds-desktop:ds-text-mediumSubHeadRegular",
|
|
6429
6526
|
n && "ds-cursor-default",
|
|
6430
6527
|
a === "left" && "ds-flex-row-reverse",
|
|
6431
|
-
|
|
6528
|
+
i
|
|
6432
6529
|
),
|
|
6433
6530
|
children: [
|
|
6434
6531
|
/* @__PURE__ */ R.jsx(
|
|
@@ -6441,14 +6538,14 @@ const An = Number(
|
|
|
6441
6538
|
checked: t,
|
|
6442
6539
|
onChange: r,
|
|
6443
6540
|
disabled: n,
|
|
6444
|
-
ref:
|
|
6541
|
+
ref: o,
|
|
6445
6542
|
onClick: (l) => l.stopPropagation()
|
|
6446
6543
|
}
|
|
6447
6544
|
),
|
|
6448
6545
|
/* @__PURE__ */ R.jsx(
|
|
6449
6546
|
"div",
|
|
6450
6547
|
{
|
|
6451
|
-
className:
|
|
6548
|
+
className: ie(
|
|
6452
6549
|
"ds-relative ds-size-5 ds-flex-shrink-0 ds-rounded ds-border ds-border-Fills-tertiary ds-bg-Text-textPrimaryInverse ds-shadow-[inset_0_2px_2px_0_var(--fills-quaternary),inset_0_0_2px_0_var(--fills-quaternary)] after:ds-absolute after:ds-left-[7px] after:ds-top-[3px] after:ds-hidden after:ds-h-[10px] after:ds-w-[5px] after:ds-rotate-45 after:ds-border-b-[2px] after:ds-border-r-[2px] after:ds-border-Fills-inversePrimary after:ds-content-['']",
|
|
6453
6550
|
t && "ds-bg-accentPrimary-100 after:ds-block"
|
|
6454
6551
|
)
|
|
@@ -6459,7 +6556,7 @@ const An = Number(
|
|
|
6459
6556
|
}
|
|
6460
6557
|
)
|
|
6461
6558
|
);
|
|
6462
|
-
|
|
6559
|
+
An.displayName = "Checkbox";
|
|
6463
6560
|
const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
6464
6561
|
"div",
|
|
6465
6562
|
{
|
|
@@ -6491,9 +6588,9 @@ const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
|
6491
6588
|
disabled: t = !1,
|
|
6492
6589
|
className: r,
|
|
6493
6590
|
children: n,
|
|
6494
|
-
startIcon:
|
|
6591
|
+
startIcon: i,
|
|
6495
6592
|
selected: a,
|
|
6496
|
-
endIcon:
|
|
6593
|
+
endIcon: o,
|
|
6497
6594
|
trackingId: l,
|
|
6498
6595
|
helperText: c,
|
|
6499
6596
|
helpterTextClassName: u,
|
|
@@ -6511,10 +6608,10 @@ const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
|
6511
6608
|
"helpterTextClassName",
|
|
6512
6609
|
"buttonClassName"
|
|
6513
6610
|
]);
|
|
6514
|
-
return /* @__PURE__ */ R.jsxs("div", { className:
|
|
6611
|
+
return /* @__PURE__ */ R.jsxs("div", { className: ie("ds-flex ds-flex-col ds-gap-1", r), children: [
|
|
6515
6612
|
/* @__PURE__ */ R.jsxs(
|
|
6516
6613
|
"button",
|
|
6517
|
-
V(
|
|
6614
|
+
V(L({
|
|
6518
6615
|
"data-tracking-id": l,
|
|
6519
6616
|
ref: p,
|
|
6520
6617
|
disabled: t,
|
|
@@ -6528,16 +6625,16 @@ const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
|
6528
6625
|
)
|
|
6529
6626
|
}, g), {
|
|
6530
6627
|
children: [
|
|
6531
|
-
|
|
6628
|
+
i && /* @__PURE__ */ R.jsx(qr, { children: i }),
|
|
6532
6629
|
n && /* @__PURE__ */ R.jsx("div", { children: n }),
|
|
6533
|
-
|
|
6630
|
+
o && /* @__PURE__ */ R.jsx(qr, { children: o })
|
|
6534
6631
|
]
|
|
6535
6632
|
})
|
|
6536
6633
|
),
|
|
6537
6634
|
c && /* @__PURE__ */ R.jsx(
|
|
6538
6635
|
"div",
|
|
6539
6636
|
{
|
|
6540
|
-
className:
|
|
6637
|
+
className: ie(
|
|
6541
6638
|
"ds-w-full ds-text-right ds-text-mediumFootnoteRegular",
|
|
6542
6639
|
u
|
|
6543
6640
|
),
|
|
@@ -6553,10 +6650,10 @@ const Ya = Kt(
|
|
|
6553
6650
|
const E = e, {
|
|
6554
6651
|
value: r,
|
|
6555
6652
|
options: n,
|
|
6556
|
-
onSelectionChange:
|
|
6653
|
+
onSelectionChange: i = () => {
|
|
6557
6654
|
},
|
|
6558
6655
|
isMultiSelect: a,
|
|
6559
|
-
noDataError:
|
|
6656
|
+
noDataError: o,
|
|
6560
6657
|
buttonMinWidth: l,
|
|
6561
6658
|
buttonWidth: c,
|
|
6562
6659
|
minSelectionError: u,
|
|
@@ -6577,50 +6674,50 @@ const Ya = Kt(
|
|
|
6577
6674
|
Je(() => {
|
|
6578
6675
|
r && r.length ? m(r) : m([]);
|
|
6579
6676
|
}, [r]);
|
|
6580
|
-
const x = (
|
|
6581
|
-
|
|
6582
|
-
const H = [...f], N = H.findIndex((B) => B.value ===
|
|
6583
|
-
N !== -1 ? H.length > 1 ? (H.splice(N, 1), w("")) : w(u) : (H.push(
|
|
6584
|
-
}, y = (
|
|
6585
|
-
|
|
6586
|
-
const H = [
|
|
6587
|
-
m(H),
|
|
6677
|
+
const x = (T, P) => {
|
|
6678
|
+
P.currentTarget.blur();
|
|
6679
|
+
const H = [...f], N = H.findIndex((B) => B.value === T.value);
|
|
6680
|
+
N !== -1 ? H.length > 1 ? (H.splice(N, 1), w("")) : w(u) : (H.push(T), w("")), m(H), i(H);
|
|
6681
|
+
}, y = (T, P) => {
|
|
6682
|
+
P.currentTarget.blur();
|
|
6683
|
+
const H = [T];
|
|
6684
|
+
m(H), i(H);
|
|
6588
6685
|
};
|
|
6589
6686
|
return /* @__PURE__ */ R.jsxs(
|
|
6590
6687
|
"div",
|
|
6591
|
-
V(
|
|
6688
|
+
V(L({
|
|
6592
6689
|
ref: t
|
|
6593
6690
|
}, p), {
|
|
6594
6691
|
children: [
|
|
6595
6692
|
/* @__PURE__ */ R.jsx(
|
|
6596
6693
|
"div",
|
|
6597
6694
|
{
|
|
6598
|
-
className:
|
|
6599
|
-
children: n.length > 0 ? n.map((
|
|
6695
|
+
className: ie("ds-flex ds-flex-wrap ds-items-center ds-gap-2", d),
|
|
6696
|
+
children: n.length > 0 ? n.map((T, P) => T.type === "separator" ? /* @__PURE__ */ R.jsx(Fe.Fragment, { children: T.component ? T.component : /* @__PURE__ */ R.jsx("div", { className: "ds-h-full ds-min-h-[30px] ds-w-[1px] ds-bg-Fills-tertiary" }) }, `separator-${P}`) : /* @__PURE__ */ R.jsx(Fe.Fragment, { children: a ? /* @__PURE__ */ R.jsx(
|
|
6600
6697
|
vt,
|
|
6601
6698
|
{
|
|
6602
|
-
selected: f.some((H) => H.value ===
|
|
6603
|
-
onClick: (H) => x(
|
|
6699
|
+
selected: f.some((H) => H.value === T.value),
|
|
6700
|
+
onClick: (H) => x(T, H),
|
|
6604
6701
|
color: "secondary",
|
|
6605
6702
|
style: { minWidth: l, width: c },
|
|
6606
6703
|
className: g,
|
|
6607
|
-
startIcon:
|
|
6608
|
-
endIcon:
|
|
6609
|
-
children:
|
|
6704
|
+
startIcon: T.startIcon,
|
|
6705
|
+
endIcon: T.endIcon,
|
|
6706
|
+
children: T.label
|
|
6610
6707
|
}
|
|
6611
6708
|
) : /* @__PURE__ */ R.jsx(
|
|
6612
6709
|
vt,
|
|
6613
6710
|
{
|
|
6614
|
-
selected: f.some((H) => H.value ===
|
|
6615
|
-
onClick: (H) => y(
|
|
6711
|
+
selected: f.some((H) => H.value === T.value),
|
|
6712
|
+
onClick: (H) => y(T, H),
|
|
6616
6713
|
color: "secondary",
|
|
6617
6714
|
style: { minWidth: l, width: c },
|
|
6618
6715
|
className: g,
|
|
6619
|
-
startIcon:
|
|
6620
|
-
endIcon:
|
|
6621
|
-
children:
|
|
6716
|
+
startIcon: T.startIcon,
|
|
6717
|
+
endIcon: T.endIcon,
|
|
6718
|
+
children: T.label
|
|
6622
6719
|
}
|
|
6623
|
-
) },
|
|
6720
|
+
) }, T.value)) : /* @__PURE__ */ R.jsx("div", { className: "ds_xSmallSubheadRegular ds-p-2 ds-text-error", children: o })
|
|
6624
6721
|
}
|
|
6625
6722
|
),
|
|
6626
6723
|
h && /* @__PURE__ */ R.jsx("div", { className: "ds_xSmallSubheadRegular ds-p-2 ds-text-error", children: h })
|
|
@@ -6635,14 +6732,14 @@ const On = ({
|
|
|
6635
6732
|
getSelectedValueDisplayText: t,
|
|
6636
6733
|
placeholder: r,
|
|
6637
6734
|
allSelectedLabel: n,
|
|
6638
|
-
value:
|
|
6735
|
+
value: i
|
|
6639
6736
|
}) => {
|
|
6640
6737
|
let a = !e || Array.isArray(e) && e.length === 0 ? r || "" : t(e);
|
|
6641
|
-
return
|
|
6738
|
+
return i === "select-all" && n && (a = n), /* @__PURE__ */ R.jsx(
|
|
6642
6739
|
vt,
|
|
6643
6740
|
{
|
|
6644
6741
|
color: "secondary",
|
|
6645
|
-
endIcon: /* @__PURE__ */ R.jsx(
|
|
6742
|
+
endIcon: /* @__PURE__ */ R.jsx(no, { className: "ds-size-4" }),
|
|
6646
6743
|
buttonClassName: "ds-justify-between",
|
|
6647
6744
|
children: a
|
|
6648
6745
|
}
|
|
@@ -6652,9 +6749,9 @@ const On = ({
|
|
|
6652
6749
|
isMultiSelect: t,
|
|
6653
6750
|
value: r,
|
|
6654
6751
|
setValue: n,
|
|
6655
|
-
setIsOpen:
|
|
6752
|
+
setIsOpen: i,
|
|
6656
6753
|
onChange: a,
|
|
6657
|
-
selectAllOptionLabel:
|
|
6754
|
+
selectAllOptionLabel: o = "Select all",
|
|
6658
6755
|
disableSelectAll: l
|
|
6659
6756
|
}) => {
|
|
6660
6757
|
const c = r === "select-all" || Array.isArray(r) && r.filter((u) => e.find((d) => d.value === u)).length === e.length;
|
|
@@ -6664,7 +6761,7 @@ const On = ({
|
|
|
6664
6761
|
{
|
|
6665
6762
|
showCheckbox: !0,
|
|
6666
6763
|
option: {
|
|
6667
|
-
label:
|
|
6764
|
+
label: o,
|
|
6668
6765
|
value: "select-all"
|
|
6669
6766
|
},
|
|
6670
6767
|
isSelected: c,
|
|
@@ -6682,7 +6779,7 @@ const On = ({
|
|
|
6682
6779
|
if (t && r !== "select-all") {
|
|
6683
6780
|
const g = r || [];
|
|
6684
6781
|
g.includes(u.value) ? d = g.filter((p) => p !== u.value) : d = [...g, u.value], d.length === e.length && (d = "select-all");
|
|
6685
|
-
} else t && r === "select-all" ? d = e.map((g) => g.value).filter((g) => g !== u.value) : (d = u.value,
|
|
6782
|
+
} else t && r === "select-all" ? d = e.map((g) => g.value).filter((g) => g !== u.value) : (d = u.value, i(!1));
|
|
6686
6783
|
n(d), a && a(bt(d, e), d === "select-all");
|
|
6687
6784
|
},
|
|
6688
6785
|
option: u,
|
|
@@ -6701,7 +6798,7 @@ const On = ({
|
|
|
6701
6798
|
"div",
|
|
6702
6799
|
{
|
|
6703
6800
|
onClick: t.disabled ? void 0 : e,
|
|
6704
|
-
className:
|
|
6801
|
+
className: ie(
|
|
6705
6802
|
// eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
|
|
6706
6803
|
"ds-group ds-flex ds-min-h-[72px] ds-cursor-pointer ds-items-center ds-gap-4 ds-rounded ds-px-4 ds-py-2 ds-text-mediumSubHeadEmphasized hover:ds-bg-[#F6F8FC] ds-tablet:ds-min-h-[auto] ds-tablet:ds-gap-2 ds-tablet:ds-px-2 ds-desktop:ds-text-mediumFootnoteEmphasized",
|
|
6707
6804
|
!n && "ds-transition-[padding] ds-duration-300 hover:ds-px-4"
|
|
@@ -6718,16 +6815,16 @@ const On = ({
|
|
|
6718
6815
|
/* @__PURE__ */ R.jsx(
|
|
6719
6816
|
"div",
|
|
6720
6817
|
{
|
|
6721
|
-
className:
|
|
6818
|
+
className: ie(
|
|
6722
6819
|
"ds-flex-grow",
|
|
6723
6820
|
!n && "ds-transition-[padding] ds-duration-300 group-hover:ds-pr-0 ds-tablet:ds-pr-4"
|
|
6724
6821
|
),
|
|
6725
6822
|
children: t.label
|
|
6726
6823
|
}
|
|
6727
6824
|
),
|
|
6728
|
-
r && !n && /* @__PURE__ */ R.jsx(
|
|
6825
|
+
r && !n && /* @__PURE__ */ R.jsx(ro, { className: "ds-size-4 ds-shrink-0" }),
|
|
6729
6826
|
n && /* @__PURE__ */ R.jsx(
|
|
6730
|
-
|
|
6827
|
+
An,
|
|
6731
6828
|
{
|
|
6732
6829
|
isChecked: r,
|
|
6733
6830
|
disabled: t.disabled
|
|
@@ -6735,16 +6832,16 @@ const On = ({
|
|
|
6735
6832
|
)
|
|
6736
6833
|
]
|
|
6737
6834
|
}
|
|
6738
|
-
), Ka = (e) => window.innerWidth <
|
|
6835
|
+
), Ka = (e) => window.innerWidth < Wn ? /* @__PURE__ */ R.jsx(Bn, L({}, e)) : /* @__PURE__ */ R.jsx(In, L({}, e));
|
|
6739
6836
|
Ka.displayName = "Dropdown";
|
|
6740
6837
|
const In = ({
|
|
6741
6838
|
placement: e = "bottom-start",
|
|
6742
6839
|
trigger: t,
|
|
6743
6840
|
triggerContainerClassName: r,
|
|
6744
6841
|
disabled: n,
|
|
6745
|
-
onOpenChange:
|
|
6842
|
+
onOpenChange: i,
|
|
6746
6843
|
adjustHeight: a = !0,
|
|
6747
|
-
adjustWidth:
|
|
6844
|
+
adjustWidth: o = !0,
|
|
6748
6845
|
options: l,
|
|
6749
6846
|
getSelectedValueDisplayText: c = jn,
|
|
6750
6847
|
placeholder: u,
|
|
@@ -6756,10 +6853,10 @@ const In = ({
|
|
|
6756
6853
|
disableSelectAll: h
|
|
6757
6854
|
}) => {
|
|
6758
6855
|
const [w, x] = ue(), y = typeof d == "undefined" ? w : d, E = typeof d == "undefined" ? x : () => {
|
|
6759
|
-
}, [
|
|
6760
|
-
open:
|
|
6761
|
-
onOpenChange: (
|
|
6762
|
-
|
|
6856
|
+
}, [T, P] = ue(!1), { refs: H, floatingStyles: N, context: B } = Ia({
|
|
6857
|
+
open: T,
|
|
6858
|
+
onOpenChange: (S) => {
|
|
6859
|
+
P(S), i && i(S);
|
|
6763
6860
|
},
|
|
6764
6861
|
middleware: [
|
|
6765
6862
|
ga(8),
|
|
@@ -6769,14 +6866,14 @@ const In = ({
|
|
|
6769
6866
|
}),
|
|
6770
6867
|
ma({ padding: 4 }),
|
|
6771
6868
|
pa({
|
|
6772
|
-
apply({ availableWidth:
|
|
6773
|
-
a && (
|
|
6869
|
+
apply({ availableWidth: S, availableHeight: z, elements: k }) {
|
|
6870
|
+
a && (k.floating.style.maxHeight = `${z - 4}px`), o && (k.floating.style.maxWidth = `${S - 4}px`);
|
|
6774
6871
|
}
|
|
6775
6872
|
})
|
|
6776
6873
|
],
|
|
6777
6874
|
whileElementsMounted: aa,
|
|
6778
6875
|
placement: e
|
|
6779
|
-
}), J =
|
|
6876
|
+
}), J = Wa(B), U = Ba(B), G = ja(B), _ = $a(B), { getReferenceProps: q, getFloatingProps: W } = Da([J, U, G, _]);
|
|
6780
6877
|
return t || (t = /* @__PURE__ */ R.jsx(
|
|
6781
6878
|
On,
|
|
6782
6879
|
{
|
|
@@ -6789,23 +6886,23 @@ const In = ({
|
|
|
6789
6886
|
)), n ? /* @__PURE__ */ R.jsx("div", { className: r, children: t }) : /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
6790
6887
|
/* @__PURE__ */ R.jsx(
|
|
6791
6888
|
"div",
|
|
6792
|
-
V(
|
|
6793
|
-
className:
|
|
6889
|
+
V(L({
|
|
6890
|
+
className: ie("ds-cursor-pointer", r),
|
|
6794
6891
|
ref: H.setReference
|
|
6795
6892
|
}, q()), {
|
|
6796
6893
|
children: t
|
|
6797
6894
|
})
|
|
6798
6895
|
),
|
|
6799
|
-
|
|
6896
|
+
T && /* @__PURE__ */ R.jsx(Ha, { children: /* @__PURE__ */ R.jsx(
|
|
6800
6897
|
"div",
|
|
6801
|
-
V(
|
|
6898
|
+
V(L({
|
|
6802
6899
|
ref: H.setFloating,
|
|
6803
6900
|
style: N
|
|
6804
|
-
},
|
|
6805
|
-
className:
|
|
6901
|
+
}, W()), {
|
|
6902
|
+
className: ie(
|
|
6806
6903
|
"ds-z-[29999] ds-flex ds-min-w-[200px] ds-flex-col ds-gap-1 ds-rounded ds-bg-Background-primary ds-p-2 ds-shadow-md",
|
|
6807
6904
|
a && "ds-overflow-y-auto",
|
|
6808
|
-
|
|
6905
|
+
o && "ds-overflow-x-auto"
|
|
6809
6906
|
),
|
|
6810
6907
|
children: /* @__PURE__ */ R.jsx(
|
|
6811
6908
|
Fn,
|
|
@@ -6814,7 +6911,7 @@ const In = ({
|
|
|
6814
6911
|
options: l,
|
|
6815
6912
|
value: y,
|
|
6816
6913
|
setValue: E,
|
|
6817
|
-
setIsOpen:
|
|
6914
|
+
setIsOpen: P,
|
|
6818
6915
|
onChange: p,
|
|
6819
6916
|
selectAllOptionLabel: f,
|
|
6820
6917
|
disableSelectAll: h
|
|
@@ -6830,9 +6927,9 @@ const Bn = ({
|
|
|
6830
6927
|
triggerContainerClassName: t,
|
|
6831
6928
|
disabled: r,
|
|
6832
6929
|
onOpenChange: n,
|
|
6833
|
-
getSelectedValueDisplayText:
|
|
6930
|
+
getSelectedValueDisplayText: i = jn,
|
|
6834
6931
|
placeholder: a,
|
|
6835
|
-
value:
|
|
6932
|
+
value: o,
|
|
6836
6933
|
options: l,
|
|
6837
6934
|
isMultiSelect: c,
|
|
6838
6935
|
onChange: u,
|
|
@@ -6841,14 +6938,14 @@ const Bn = ({
|
|
|
6841
6938
|
allSelectedLabel: p,
|
|
6842
6939
|
disableSelectAll: f
|
|
6843
6940
|
}) => {
|
|
6844
|
-
const [m, h] = ue(), w = typeof
|
|
6941
|
+
const [m, h] = ue(), w = typeof o == "undefined" ? m : o, x = typeof o == "undefined" ? h : () => {
|
|
6845
6942
|
}, [y, E] = ue(!1);
|
|
6846
6943
|
return e || (e = /* @__PURE__ */ R.jsx(
|
|
6847
6944
|
On,
|
|
6848
6945
|
{
|
|
6849
6946
|
value: w,
|
|
6850
6947
|
selectedOption: bt(w, l),
|
|
6851
|
-
getSelectedValueDisplayText:
|
|
6948
|
+
getSelectedValueDisplayText: i,
|
|
6852
6949
|
placeholder: a,
|
|
6853
6950
|
allSelectedLabel: p
|
|
6854
6951
|
}
|
|
@@ -6871,7 +6968,7 @@ const Bn = ({
|
|
|
6871
6968
|
handleClose: () => {
|
|
6872
6969
|
E(!1), n && n(!1);
|
|
6873
6970
|
},
|
|
6874
|
-
contentClassName:
|
|
6971
|
+
contentClassName: ie("ds-absolute ds-mb-0 ds-w-full"),
|
|
6875
6972
|
className: "ds-z-[29999]",
|
|
6876
6973
|
children: /* @__PURE__ */ R.jsx(
|
|
6877
6974
|
Dn,
|
|
@@ -6908,7 +7005,7 @@ const Dn = ({ onClose: e, closeButtonLabel: t, children: r, isMultiSelect: n })
|
|
|
6908
7005
|
{
|
|
6909
7006
|
onClick: e,
|
|
6910
7007
|
className: "ds-flex ds-size-5 ds-cursor-pointer ds-items-center ds-justify-center",
|
|
6911
|
-
children: /* @__PURE__ */ R.jsx(
|
|
7008
|
+
children: /* @__PURE__ */ R.jsx(to, { className: "ds-size-4" })
|
|
6912
7009
|
}
|
|
6913
7010
|
),
|
|
6914
7011
|
/* @__PURE__ */ R.jsx("div", { className: "ds-size-5" })
|
|
@@ -6927,11 +7024,11 @@ Dn.displayName = "MobilePopoverContentWrapper";
|
|
|
6927
7024
|
export {
|
|
6928
7025
|
_n as A,
|
|
6929
7026
|
vt as B,
|
|
6930
|
-
|
|
7027
|
+
to as C,
|
|
6931
7028
|
Ka as D,
|
|
6932
|
-
|
|
7029
|
+
Wa as E,
|
|
6933
7030
|
Ha as F,
|
|
6934
|
-
|
|
7031
|
+
no as G,
|
|
6935
7032
|
Ga as H,
|
|
6936
7033
|
Ur as I,
|
|
6937
7034
|
Bn as M,
|
|
@@ -6941,7 +7038,7 @@ export {
|
|
|
6941
7038
|
Yr as d,
|
|
6942
7039
|
Cr as e,
|
|
6943
7040
|
nn as f,
|
|
6944
|
-
|
|
7041
|
+
ie as g,
|
|
6945
7042
|
el as h,
|
|
6946
7043
|
Ba as i,
|
|
6947
7044
|
R as j,
|
|
@@ -6951,13 +7048,13 @@ export {
|
|
|
6951
7048
|
aa as n,
|
|
6952
7049
|
ga as o,
|
|
6953
7050
|
ha as p,
|
|
6954
|
-
|
|
7051
|
+
ro as q,
|
|
6955
7052
|
ln as r,
|
|
6956
7053
|
tl as s,
|
|
6957
7054
|
ct as t,
|
|
6958
7055
|
Ia as u,
|
|
6959
|
-
|
|
6960
|
-
|
|
7056
|
+
An as v,
|
|
7057
|
+
Wn as w,
|
|
6961
7058
|
Qa as x,
|
|
6962
7059
|
ma as y,
|
|
6963
7060
|
pa as z
|