design-system-silkhaus 4.1.0-beta.tickets.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-DoiZI9y1.js → index-BhaJhiDa.js} +1046 -976
- package/dist/index.d.ts +40 -0
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +70 -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-",
|
|
@@ -3908,13 +3978,13 @@ const ut = {
|
|
|
3908
3978
|
};
|
|
3909
3979
|
function an(e, t = "", r = []) {
|
|
3910
3980
|
const n = [];
|
|
3911
|
-
for (const
|
|
3912
|
-
const a = e[
|
|
3913
|
-
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("-")}`);
|
|
3914
3984
|
}
|
|
3915
3985
|
return n;
|
|
3916
3986
|
}
|
|
3917
|
-
const
|
|
3987
|
+
const Qi = Zi({
|
|
3918
3988
|
prefix: ut.prefix,
|
|
3919
3989
|
extend: {
|
|
3920
3990
|
classGroups: {
|
|
@@ -3923,15 +3993,15 @@ const ei = Qo({
|
|
|
3923
3993
|
}
|
|
3924
3994
|
}
|
|
3925
3995
|
});
|
|
3926
|
-
function
|
|
3927
|
-
return
|
|
3996
|
+
function ie(...e) {
|
|
3997
|
+
return Qi(nn(e));
|
|
3928
3998
|
}
|
|
3929
3999
|
const Qa = (e, t = "AED") => {
|
|
3930
4000
|
const r = Math.round(e) === e ? Number(e) : Number(e.toFixed(2)), n = r ? r.toLocaleString(void 0, {
|
|
3931
4001
|
minimumFractionDigits: Math.round(r) === r ? 0 : 2
|
|
3932
4002
|
}) : "";
|
|
3933
4003
|
return `${t} ${n}`;
|
|
3934
|
-
},
|
|
4004
|
+
}, zr = {
|
|
3935
4005
|
primary: (
|
|
3936
4006
|
// eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
|
|
3937
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"
|
|
@@ -3942,7 +4012,7 @@ const Qa = (e, t = "AED") => {
|
|
|
3942
4012
|
small: "ds-py-1.5 ds-px-8 ds_SmallBodyEmphasized",
|
|
3943
4013
|
large: "ds-py-3 ds-px-8 ds_MediumBodyEmphasized",
|
|
3944
4014
|
empty: ""
|
|
3945
|
-
},
|
|
4015
|
+
}, eo = {
|
|
3946
4016
|
primary: (
|
|
3947
4017
|
// eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
|
|
3948
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)]"
|
|
@@ -3958,9 +4028,9 @@ const Qa = (e, t = "AED") => {
|
|
|
3958
4028
|
size: t = "small",
|
|
3959
4029
|
disabled: r = !1,
|
|
3960
4030
|
className: n,
|
|
3961
|
-
children:
|
|
4031
|
+
children: i,
|
|
3962
4032
|
startIcon: a,
|
|
3963
|
-
selected:
|
|
4033
|
+
selected: o,
|
|
3964
4034
|
endIcon: l,
|
|
3965
4035
|
trackingId: c,
|
|
3966
4036
|
helperText: u,
|
|
@@ -3980,17 +4050,17 @@ const Qa = (e, t = "AED") => {
|
|
|
3980
4050
|
"helpterTextClassName",
|
|
3981
4051
|
"buttonClassName"
|
|
3982
4052
|
]);
|
|
3983
|
-
return /* @__PURE__ */ R.jsxs("div", { className:
|
|
4053
|
+
return /* @__PURE__ */ R.jsxs("div", { className: ie("ds-flex ds-flex-col ds-gap-1", n), children: [
|
|
3984
4054
|
/* @__PURE__ */ R.jsx(
|
|
3985
4055
|
"button",
|
|
3986
|
-
V(
|
|
4056
|
+
V(L({
|
|
3987
4057
|
"data-tracking-id": c,
|
|
3988
4058
|
ref: f,
|
|
3989
4059
|
disabled: r,
|
|
3990
4060
|
className: ct(
|
|
3991
|
-
|
|
3992
|
-
{ [
|
|
3993
|
-
|
|
4061
|
+
ie(
|
|
4062
|
+
{ [eo[e]]: o, [zr[e]]: !o },
|
|
4063
|
+
zr[t],
|
|
3994
4064
|
"ds-flex ds-w-full ds-flex-1 ds-items-center ds-justify-center",
|
|
3995
4065
|
g
|
|
3996
4066
|
)
|
|
@@ -3998,7 +4068,7 @@ const Qa = (e, t = "AED") => {
|
|
|
3998
4068
|
}, p), {
|
|
3999
4069
|
children: /* @__PURE__ */ R.jsxs("div", { className: "ds-flex ds-items-center ds-gap-2", children: [
|
|
4000
4070
|
a && /* @__PURE__ */ R.jsx(Cr, { size: t, children: a }),
|
|
4001
|
-
|
|
4071
|
+
i && /* @__PURE__ */ R.jsx("div", { children: i }),
|
|
4002
4072
|
l && /* @__PURE__ */ R.jsx(Cr, { size: t, children: l })
|
|
4003
4073
|
] })
|
|
4004
4074
|
})
|
|
@@ -4006,7 +4076,7 @@ const Qa = (e, t = "AED") => {
|
|
|
4006
4076
|
u && /* @__PURE__ */ R.jsx(
|
|
4007
4077
|
"div",
|
|
4008
4078
|
{
|
|
4009
|
-
className:
|
|
4079
|
+
className: ie(
|
|
4010
4080
|
"ds-w-full ds-text-right ds-text-mediumFootnoteRegular",
|
|
4011
4081
|
d
|
|
4012
4082
|
),
|
|
@@ -4017,7 +4087,7 @@ const Qa = (e, t = "AED") => {
|
|
|
4017
4087
|
}
|
|
4018
4088
|
);
|
|
4019
4089
|
ln.displayName = "Button";
|
|
4020
|
-
const
|
|
4090
|
+
const to = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
4021
4091
|
"svg",
|
|
4022
4092
|
{
|
|
4023
4093
|
width: "100%",
|
|
@@ -4044,7 +4114,7 @@ const ri = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
|
4044
4114
|
) }) })
|
|
4045
4115
|
]
|
|
4046
4116
|
}
|
|
4047
|
-
),
|
|
4117
|
+
), ro = ({ className: e }) => /* @__PURE__ */ R.jsx(R.Fragment, { children: /* @__PURE__ */ R.jsxs(
|
|
4048
4118
|
"svg",
|
|
4049
4119
|
{
|
|
4050
4120
|
width: "100%",
|
|
@@ -4071,7 +4141,7 @@ const ri = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
|
4071
4141
|
) }) })
|
|
4072
4142
|
]
|
|
4073
4143
|
}
|
|
4074
|
-
) }),
|
|
4144
|
+
) }), no = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
4075
4145
|
"svg",
|
|
4076
4146
|
{
|
|
4077
4147
|
width: "100%",
|
|
@@ -4102,7 +4172,7 @@ const ri = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
|
4102
4172
|
function De(e) {
|
|
4103
4173
|
return sn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
4104
4174
|
}
|
|
4105
|
-
function
|
|
4175
|
+
function oe(e) {
|
|
4106
4176
|
var t;
|
|
4107
4177
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
4108
4178
|
}
|
|
@@ -4111,27 +4181,27 @@ function be(e) {
|
|
|
4111
4181
|
return (t = (sn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
4112
4182
|
}
|
|
4113
4183
|
function sn(e) {
|
|
4114
|
-
return e instanceof Node || e instanceof
|
|
4184
|
+
return e instanceof Node || e instanceof oe(e).Node;
|
|
4115
4185
|
}
|
|
4116
4186
|
function X(e) {
|
|
4117
|
-
return e instanceof Element || e instanceof
|
|
4187
|
+
return e instanceof Element || e instanceof oe(e).Element;
|
|
4118
4188
|
}
|
|
4119
4189
|
function ae(e) {
|
|
4120
|
-
return e instanceof HTMLElement || e instanceof
|
|
4190
|
+
return e instanceof HTMLElement || e instanceof oe(e).HTMLElement;
|
|
4121
4191
|
}
|
|
4122
4192
|
function $t(e) {
|
|
4123
|
-
return typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
4193
|
+
return typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof oe(e).ShadowRoot;
|
|
4124
4194
|
}
|
|
4125
4195
|
function Ze(e) {
|
|
4126
4196
|
const {
|
|
4127
4197
|
overflow: t,
|
|
4128
4198
|
overflowX: r,
|
|
4129
4199
|
overflowY: n,
|
|
4130
|
-
display:
|
|
4200
|
+
display: i
|
|
4131
4201
|
} = de(e);
|
|
4132
|
-
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);
|
|
4133
4203
|
}
|
|
4134
|
-
function
|
|
4204
|
+
function io(e) {
|
|
4135
4205
|
return ["table", "td", "th"].includes(De(e));
|
|
4136
4206
|
}
|
|
4137
4207
|
function xt(e) {
|
|
@@ -4147,7 +4217,7 @@ function Jt(e) {
|
|
|
4147
4217
|
const t = Zt(), r = X(e) ? de(e) : e;
|
|
4148
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));
|
|
4149
4219
|
}
|
|
4150
|
-
function
|
|
4220
|
+
function oo(e) {
|
|
4151
4221
|
let t = ve(e);
|
|
4152
4222
|
for (; ae(t) && !Ce(t); ) {
|
|
4153
4223
|
if (Jt(t))
|
|
@@ -4165,7 +4235,7 @@ function Ce(e) {
|
|
|
4165
4235
|
return ["html", "body", "#document"].includes(De(e));
|
|
4166
4236
|
}
|
|
4167
4237
|
function de(e) {
|
|
4168
|
-
return
|
|
4238
|
+
return oe(e).getComputedStyle(e);
|
|
4169
4239
|
}
|
|
4170
4240
|
function yt(e) {
|
|
4171
4241
|
return X(e) ? {
|
|
@@ -4192,11 +4262,11 @@ function cn(e) {
|
|
|
4192
4262
|
const t = ve(e);
|
|
4193
4263
|
return Ce(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ae(t) && Ze(t) ? t : cn(t);
|
|
4194
4264
|
}
|
|
4195
|
-
function
|
|
4265
|
+
function Se(e, t, r) {
|
|
4196
4266
|
var n;
|
|
4197
4267
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
4198
|
-
const
|
|
4199
|
-
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));
|
|
4200
4270
|
}
|
|
4201
4271
|
function Vt(e) {
|
|
4202
4272
|
let t = e.activeElement;
|
|
@@ -4236,37 +4306,37 @@ function dn() {
|
|
|
4236
4306
|
return r + "/" + n;
|
|
4237
4307
|
}).join(" ") : navigator.userAgent;
|
|
4238
4308
|
}
|
|
4239
|
-
function
|
|
4240
|
-
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.
|
|
4241
4311
|
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
4242
4312
|
}
|
|
4243
4313
|
function fn() {
|
|
4244
4314
|
return /apple/i.test(navigator.vendor);
|
|
4245
4315
|
}
|
|
4246
|
-
function
|
|
4316
|
+
function kr() {
|
|
4247
4317
|
const e = /android/i;
|
|
4248
4318
|
return e.test(un()) || e.test(dn());
|
|
4249
4319
|
}
|
|
4250
|
-
function
|
|
4320
|
+
function lo() {
|
|
4251
4321
|
return un().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
|
|
4252
4322
|
}
|
|
4253
|
-
function
|
|
4323
|
+
function so() {
|
|
4254
4324
|
return dn().includes("jsdom/");
|
|
4255
4325
|
}
|
|
4256
4326
|
function Ke(e, t) {
|
|
4257
4327
|
const r = ["mouse", "pen"];
|
|
4258
4328
|
return t || r.push("", void 0), r.includes(e);
|
|
4259
4329
|
}
|
|
4260
|
-
function
|
|
4330
|
+
function co(e) {
|
|
4261
4331
|
return "nativeEvent" in e;
|
|
4262
4332
|
}
|
|
4263
|
-
function
|
|
4333
|
+
function uo(e) {
|
|
4264
4334
|
return e.matches("html,body");
|
|
4265
4335
|
}
|
|
4266
4336
|
function Ee(e) {
|
|
4267
4337
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
4268
4338
|
}
|
|
4269
|
-
function
|
|
4339
|
+
function Pt(e, t) {
|
|
4270
4340
|
if (t == null)
|
|
4271
4341
|
return !1;
|
|
4272
4342
|
if ("composedPath" in e)
|
|
@@ -4274,32 +4344,32 @@ function Lt(e, t) {
|
|
|
4274
4344
|
const r = e;
|
|
4275
4345
|
return r.target != null && t.contains(r.target);
|
|
4276
4346
|
}
|
|
4277
|
-
function
|
|
4347
|
+
function Ae(e) {
|
|
4278
4348
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
4279
4349
|
}
|
|
4280
|
-
const
|
|
4350
|
+
const fo = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
4281
4351
|
function gn(e) {
|
|
4282
|
-
return ae(e) && e.matches(
|
|
4352
|
+
return ae(e) && e.matches(fo);
|
|
4283
4353
|
}
|
|
4284
|
-
const
|
|
4354
|
+
const Te = Math.min, le = Math.max, dt = Math.round, lt = Math.floor, ze = (e) => ({
|
|
4285
4355
|
x: e,
|
|
4286
4356
|
y: e
|
|
4287
|
-
}),
|
|
4357
|
+
}), go = {
|
|
4288
4358
|
left: "right",
|
|
4289
4359
|
right: "left",
|
|
4290
4360
|
bottom: "top",
|
|
4291
4361
|
top: "bottom"
|
|
4292
|
-
},
|
|
4362
|
+
}, mo = {
|
|
4293
4363
|
start: "end",
|
|
4294
4364
|
end: "start"
|
|
4295
4365
|
};
|
|
4296
|
-
function
|
|
4297
|
-
return le(e,
|
|
4366
|
+
function Lr(e, t, r) {
|
|
4367
|
+
return le(e, Te(t, r));
|
|
4298
4368
|
}
|
|
4299
4369
|
function Qe(e, t) {
|
|
4300
4370
|
return typeof e == "function" ? e(t) : e;
|
|
4301
4371
|
}
|
|
4302
|
-
function
|
|
4372
|
+
function ke(e) {
|
|
4303
4373
|
return e.split("-")[0];
|
|
4304
4374
|
}
|
|
4305
4375
|
function et(e) {
|
|
@@ -4312,55 +4382,55 @@ function hn(e) {
|
|
|
4312
4382
|
return e === "y" ? "height" : "width";
|
|
4313
4383
|
}
|
|
4314
4384
|
function Me(e) {
|
|
4315
|
-
return ["top", "bottom"].includes(
|
|
4385
|
+
return ["top", "bottom"].includes(ke(e)) ? "y" : "x";
|
|
4316
4386
|
}
|
|
4317
4387
|
function pn(e) {
|
|
4318
4388
|
return mn(Me(e));
|
|
4319
4389
|
}
|
|
4320
|
-
function
|
|
4390
|
+
function ho(e, t, r) {
|
|
4321
4391
|
r === void 0 && (r = !1);
|
|
4322
|
-
const n = et(e),
|
|
4323
|
-
let
|
|
4324
|
-
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)];
|
|
4325
4395
|
}
|
|
4326
|
-
function
|
|
4396
|
+
function po(e) {
|
|
4327
4397
|
const t = ft(e);
|
|
4328
4398
|
return [Gt(e), t, Gt(t)];
|
|
4329
4399
|
}
|
|
4330
4400
|
function Gt(e) {
|
|
4331
|
-
return e.replace(/start|end/g, (t) =>
|
|
4401
|
+
return e.replace(/start|end/g, (t) => mo[t]);
|
|
4332
4402
|
}
|
|
4333
|
-
function
|
|
4334
|
-
const n = ["left", "right"],
|
|
4403
|
+
function vo(e, t, r) {
|
|
4404
|
+
const n = ["left", "right"], i = ["right", "left"], a = ["top", "bottom"], o = ["bottom", "top"];
|
|
4335
4405
|
switch (e) {
|
|
4336
4406
|
case "top":
|
|
4337
4407
|
case "bottom":
|
|
4338
|
-
return r ? t ?
|
|
4408
|
+
return r ? t ? i : n : t ? n : i;
|
|
4339
4409
|
case "left":
|
|
4340
4410
|
case "right":
|
|
4341
|
-
return t ? a :
|
|
4411
|
+
return t ? a : o;
|
|
4342
4412
|
default:
|
|
4343
4413
|
return [];
|
|
4344
4414
|
}
|
|
4345
4415
|
}
|
|
4346
|
-
function
|
|
4347
|
-
const
|
|
4348
|
-
let a =
|
|
4349
|
-
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;
|
|
4350
4420
|
}
|
|
4351
4421
|
function ft(e) {
|
|
4352
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4422
|
+
return e.replace(/left|right|bottom|top/g, (t) => go[t]);
|
|
4353
4423
|
}
|
|
4354
|
-
function
|
|
4355
|
-
return
|
|
4424
|
+
function xo(e) {
|
|
4425
|
+
return L({
|
|
4356
4426
|
top: 0,
|
|
4357
4427
|
right: 0,
|
|
4358
4428
|
bottom: 0,
|
|
4359
4429
|
left: 0
|
|
4360
4430
|
}, e);
|
|
4361
4431
|
}
|
|
4362
|
-
function
|
|
4363
|
-
return typeof e != "number" ?
|
|
4432
|
+
function yo(e) {
|
|
4433
|
+
return typeof e != "number" ? xo(e) : {
|
|
4364
4434
|
top: e,
|
|
4365
4435
|
right: e,
|
|
4366
4436
|
bottom: e,
|
|
@@ -4372,15 +4442,15 @@ function gt(e) {
|
|
|
4372
4442
|
x: t,
|
|
4373
4443
|
y: r,
|
|
4374
4444
|
width: n,
|
|
4375
|
-
height:
|
|
4445
|
+
height: i
|
|
4376
4446
|
} = e;
|
|
4377
4447
|
return {
|
|
4378
4448
|
width: n,
|
|
4379
|
-
height:
|
|
4449
|
+
height: i,
|
|
4380
4450
|
top: r,
|
|
4381
4451
|
left: t,
|
|
4382
4452
|
right: t + n,
|
|
4383
|
-
bottom: r +
|
|
4453
|
+
bottom: r + i,
|
|
4384
4454
|
x: t,
|
|
4385
4455
|
y: r
|
|
4386
4456
|
};
|
|
@@ -4389,7 +4459,7 @@ function gt(e) {
|
|
|
4389
4459
|
* tabbable 6.2.0
|
|
4390
4460
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4391
4461
|
*/
|
|
4392
|
-
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() {
|
|
4393
4463
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, mt = !vn && Element.prototype.getRootNode ? function(e) {
|
|
4394
4464
|
var t;
|
|
4395
4465
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -4398,184 +4468,184 @@ var wi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4398
4468
|
}, ht = function e(t, r) {
|
|
4399
4469
|
var n;
|
|
4400
4470
|
r === void 0 && (r = !0);
|
|
4401
|
-
var
|
|
4402
|
-
return
|
|
4403
|
-
},
|
|
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) {
|
|
4404
4474
|
var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
4405
4475
|
return n === "" || n === "true";
|
|
4406
|
-
},
|
|
4476
|
+
}, Eo = function(t, r, n) {
|
|
4407
4477
|
if (ht(t))
|
|
4408
4478
|
return [];
|
|
4409
|
-
var
|
|
4410
|
-
return r && Xe.call(t, Ut) &&
|
|
4411
|
-
},
|
|
4412
|
-
for (var
|
|
4413
|
-
var
|
|
4414
|
-
if (!ht(
|
|
4415
|
-
if (
|
|
4416
|
-
var l =
|
|
4417
|
-
n.flatten ?
|
|
4418
|
-
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,
|
|
4419
4489
|
candidates: u
|
|
4420
4490
|
});
|
|
4421
4491
|
} else {
|
|
4422
|
-
var d = Xe.call(
|
|
4423
|
-
d && n.filter(
|
|
4424
|
-
var g =
|
|
4425
|
-
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));
|
|
4426
4496
|
if (g && p) {
|
|
4427
|
-
var f = e(g === !0 ?
|
|
4428
|
-
n.flatten ?
|
|
4429
|
-
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,
|
|
4430
4500
|
candidates: f
|
|
4431
4501
|
});
|
|
4432
4502
|
} else
|
|
4433
|
-
a.unshift.apply(a,
|
|
4503
|
+
a.unshift.apply(a, o.children);
|
|
4434
4504
|
}
|
|
4435
4505
|
}
|
|
4436
|
-
return
|
|
4506
|
+
return i;
|
|
4437
4507
|
}, bn = function(t) {
|
|
4438
4508
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
4439
4509
|
}, xn = function(t) {
|
|
4440
4510
|
if (!t)
|
|
4441
4511
|
throw new Error("No node provided");
|
|
4442
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
4443
|
-
},
|
|
4512
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Ro(t)) && !bn(t) ? 0 : t.tabIndex;
|
|
4513
|
+
}, So = function(t, r) {
|
|
4444
4514
|
var n = xn(t);
|
|
4445
4515
|
return n < 0 && r && !bn(t) ? 0 : n;
|
|
4446
|
-
},
|
|
4516
|
+
}, Co = function(t, r) {
|
|
4447
4517
|
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
4448
4518
|
}, yn = function(t) {
|
|
4449
4519
|
return t.tagName === "INPUT";
|
|
4450
|
-
},
|
|
4520
|
+
}, zo = function(t) {
|
|
4451
4521
|
return yn(t) && t.type === "hidden";
|
|
4452
|
-
},
|
|
4522
|
+
}, ko = function(t) {
|
|
4453
4523
|
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
4454
4524
|
return n.tagName === "SUMMARY";
|
|
4455
4525
|
});
|
|
4456
4526
|
return r;
|
|
4457
|
-
},
|
|
4527
|
+
}, Lo = function(t, r) {
|
|
4458
4528
|
for (var n = 0; n < t.length; n++)
|
|
4459
4529
|
if (t[n].checked && t[n].form === r)
|
|
4460
4530
|
return t[n];
|
|
4461
|
-
},
|
|
4531
|
+
}, Po = function(t) {
|
|
4462
4532
|
if (!t.name)
|
|
4463
4533
|
return !0;
|
|
4464
4534
|
var r = t.form || mt(t), n = function(l) {
|
|
4465
4535
|
return r.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
4466
|
-
},
|
|
4536
|
+
}, i;
|
|
4467
4537
|
if (typeof window != "undefined" && typeof window.CSS != "undefined" && typeof window.CSS.escape == "function")
|
|
4468
|
-
|
|
4538
|
+
i = n(window.CSS.escape(t.name));
|
|
4469
4539
|
else
|
|
4470
4540
|
try {
|
|
4471
|
-
|
|
4472
|
-
} catch (
|
|
4473
|
-
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;
|
|
4474
4544
|
}
|
|
4475
|
-
var a =
|
|
4545
|
+
var a = Lo(i, t.form);
|
|
4476
4546
|
return !a || a === t;
|
|
4477
|
-
},
|
|
4547
|
+
}, Mo = function(t) {
|
|
4478
4548
|
return yn(t) && t.type === "radio";
|
|
4479
|
-
},
|
|
4480
|
-
return
|
|
4481
|
-
},
|
|
4482
|
-
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;
|
|
4483
4553
|
if (n && n !== t) {
|
|
4484
|
-
var
|
|
4485
|
-
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; ) {
|
|
4486
4556
|
var u, d, g;
|
|
4487
|
-
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));
|
|
4488
4558
|
}
|
|
4489
4559
|
}
|
|
4490
4560
|
return a;
|
|
4491
|
-
},
|
|
4492
|
-
var r = t.getBoundingClientRect(), n = r.width,
|
|
4493
|
-
return n === 0 &&
|
|
4494
|
-
},
|
|
4495
|
-
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;
|
|
4496
4566
|
if (getComputedStyle(t).visibility === "hidden")
|
|
4497
4567
|
return !0;
|
|
4498
|
-
var a = Xe.call(t, "details>summary:first-of-type"),
|
|
4499
|
-
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]) *"))
|
|
4500
4570
|
return !0;
|
|
4501
4571
|
if (!n || n === "full" || n === "legacy-full") {
|
|
4502
|
-
if (typeof
|
|
4572
|
+
if (typeof i == "function") {
|
|
4503
4573
|
for (var l = t; t; ) {
|
|
4504
4574
|
var c = t.parentElement, u = mt(t);
|
|
4505
|
-
if (c && !c.shadowRoot &&
|
|
4506
|
-
return
|
|
4575
|
+
if (c && !c.shadowRoot && i(c) === !0)
|
|
4576
|
+
return Pr(t);
|
|
4507
4577
|
t.assignedSlot ? t = t.assignedSlot : !c && u !== t.ownerDocument ? t = u.host : t = c;
|
|
4508
4578
|
}
|
|
4509
4579
|
t = l;
|
|
4510
4580
|
}
|
|
4511
|
-
if (
|
|
4581
|
+
if (_o(t))
|
|
4512
4582
|
return !t.getClientRects().length;
|
|
4513
4583
|
if (n !== "legacy-full")
|
|
4514
4584
|
return !0;
|
|
4515
4585
|
} else if (n === "non-zero-area")
|
|
4516
|
-
return
|
|
4586
|
+
return Pr(t);
|
|
4517
4587
|
return !1;
|
|
4518
|
-
},
|
|
4588
|
+
}, Ao = function(t) {
|
|
4519
4589
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
4520
4590
|
for (var r = t.parentElement; r; ) {
|
|
4521
4591
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
4522
4592
|
for (var n = 0; n < r.children.length; n++) {
|
|
4523
|
-
var
|
|
4524
|
-
if (
|
|
4525
|
-
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);
|
|
4526
4596
|
}
|
|
4527
4597
|
return !0;
|
|
4528
4598
|
}
|
|
4529
4599
|
r = r.parentElement;
|
|
4530
4600
|
}
|
|
4531
4601
|
return !1;
|
|
4532
|
-
},
|
|
4602
|
+
}, Oo = function(t, r) {
|
|
4533
4603
|
return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
4534
4604
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
4535
4605
|
// note related to `candidateSelectors`)
|
|
4536
|
-
ht(r) ||
|
|
4537
|
-
|
|
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));
|
|
4538
4608
|
}, Mr = function(t, r) {
|
|
4539
|
-
return !(
|
|
4540
|
-
},
|
|
4609
|
+
return !(Ho(r) || xn(r) < 0 || !Oo(t, r));
|
|
4610
|
+
}, jo = function(t) {
|
|
4541
4611
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
4542
4612
|
return !!(isNaN(r) || r >= 0);
|
|
4543
|
-
},
|
|
4613
|
+
}, Fo = function e(t) {
|
|
4544
4614
|
var r = [], n = [];
|
|
4545
|
-
return t.forEach(function(
|
|
4546
|
-
var
|
|
4547
|
-
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({
|
|
4548
4618
|
documentOrder: a,
|
|
4549
4619
|
tabIndex: c,
|
|
4550
|
-
item:
|
|
4551
|
-
isScope:
|
|
4620
|
+
item: i,
|
|
4621
|
+
isScope: o,
|
|
4552
4622
|
content: u
|
|
4553
4623
|
});
|
|
4554
|
-
}), n.sort(
|
|
4555
|
-
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;
|
|
4556
4626
|
}, []).concat(r);
|
|
4557
4627
|
}, wn = function(t, r) {
|
|
4558
4628
|
r = r || {};
|
|
4559
4629
|
var n;
|
|
4560
|
-
return r.getShadowRoot ? n =
|
|
4630
|
+
return r.getShadowRoot ? n = To([t], r.includeContainer, {
|
|
4561
4631
|
filter: Mr.bind(null, r),
|
|
4562
4632
|
flatten: !1,
|
|
4563
4633
|
getShadowRoot: r.getShadowRoot,
|
|
4564
|
-
shadowRootFilter:
|
|
4565
|
-
}) : n =
|
|
4634
|
+
shadowRootFilter: jo
|
|
4635
|
+
}) : n = Eo(t, r.includeContainer, Mr.bind(null, r)), Fo(n);
|
|
4566
4636
|
};
|
|
4567
4637
|
function Hr(e, t, r) {
|
|
4568
4638
|
let {
|
|
4569
4639
|
reference: n,
|
|
4570
|
-
floating:
|
|
4640
|
+
floating: i
|
|
4571
4641
|
} = e;
|
|
4572
|
-
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;
|
|
4573
4643
|
let f;
|
|
4574
4644
|
switch (c) {
|
|
4575
4645
|
case "top":
|
|
4576
4646
|
f = {
|
|
4577
4647
|
x: d,
|
|
4578
|
-
y: n.y -
|
|
4648
|
+
y: n.y - i.height
|
|
4579
4649
|
};
|
|
4580
4650
|
break;
|
|
4581
4651
|
case "bottom":
|
|
@@ -4592,7 +4662,7 @@ function Hr(e, t, r) {
|
|
|
4592
4662
|
break;
|
|
4593
4663
|
case "left":
|
|
4594
4664
|
f = {
|
|
4595
|
-
x: n.x -
|
|
4665
|
+
x: n.x - i.width,
|
|
4596
4666
|
y: g
|
|
4597
4667
|
};
|
|
4598
4668
|
break;
|
|
@@ -4604,25 +4674,25 @@ function Hr(e, t, r) {
|
|
|
4604
4674
|
}
|
|
4605
4675
|
switch (et(t)) {
|
|
4606
4676
|
case "start":
|
|
4607
|
-
f[
|
|
4677
|
+
f[o] -= p * (r && u ? -1 : 1);
|
|
4608
4678
|
break;
|
|
4609
4679
|
case "end":
|
|
4610
|
-
f[
|
|
4680
|
+
f[o] += p * (r && u ? -1 : 1);
|
|
4611
4681
|
break;
|
|
4612
4682
|
}
|
|
4613
4683
|
return f;
|
|
4614
4684
|
}
|
|
4615
|
-
const
|
|
4685
|
+
const Io = (e, t, r) => he(void 0, null, function* () {
|
|
4616
4686
|
const {
|
|
4617
4687
|
placement: n = "bottom",
|
|
4618
|
-
strategy:
|
|
4688
|
+
strategy: i = "absolute",
|
|
4619
4689
|
middleware: a = [],
|
|
4620
|
-
platform:
|
|
4621
|
-
} = r, l = a.filter(Boolean), c = yield
|
|
4622
|
-
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({
|
|
4623
4693
|
reference: e,
|
|
4624
4694
|
floating: t,
|
|
4625
|
-
strategy:
|
|
4695
|
+
strategy: i
|
|
4626
4696
|
}), {
|
|
4627
4697
|
x: d,
|
|
4628
4698
|
y: g
|
|
@@ -4634,29 +4704,29 @@ const Ii = (e, t, r) => he(void 0, null, function* () {
|
|
|
4634
4704
|
} = l[h], {
|
|
4635
4705
|
x: y,
|
|
4636
4706
|
y: E,
|
|
4637
|
-
data:
|
|
4638
|
-
reset:
|
|
4707
|
+
data: T,
|
|
4708
|
+
reset: P
|
|
4639
4709
|
} = yield x({
|
|
4640
4710
|
x: d,
|
|
4641
4711
|
y: g,
|
|
4642
4712
|
initialPlacement: n,
|
|
4643
4713
|
placement: p,
|
|
4644
|
-
strategy:
|
|
4714
|
+
strategy: i,
|
|
4645
4715
|
middlewareData: f,
|
|
4646
4716
|
rects: u,
|
|
4647
|
-
platform:
|
|
4717
|
+
platform: o,
|
|
4648
4718
|
elements: {
|
|
4649
4719
|
reference: e,
|
|
4650
4720
|
floating: t
|
|
4651
4721
|
}
|
|
4652
4722
|
});
|
|
4653
|
-
d = y != null ? y : d, g = E != null ? E : g, f = V(
|
|
4654
|
-
[w]:
|
|
4655
|
-
}),
|
|
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({
|
|
4656
4726
|
reference: e,
|
|
4657
4727
|
floating: t,
|
|
4658
|
-
strategy:
|
|
4659
|
-
}) :
|
|
4728
|
+
strategy: i
|
|
4729
|
+
}) : P.rects), {
|
|
4660
4730
|
x: d,
|
|
4661
4731
|
y: g
|
|
4662
4732
|
} = Hr(u, p, c)), h = -1);
|
|
@@ -4665,7 +4735,7 @@ const Ii = (e, t, r) => he(void 0, null, function* () {
|
|
|
4665
4735
|
x: d,
|
|
4666
4736
|
y: g,
|
|
4667
4737
|
placement: p,
|
|
4668
|
-
strategy:
|
|
4738
|
+
strategy: i,
|
|
4669
4739
|
middlewareData: f
|
|
4670
4740
|
};
|
|
4671
4741
|
});
|
|
@@ -4675,9 +4745,9 @@ function Qt(e, t) {
|
|
|
4675
4745
|
t === void 0 && (t = {});
|
|
4676
4746
|
const {
|
|
4677
4747
|
x: n,
|
|
4678
|
-
y:
|
|
4748
|
+
y: i,
|
|
4679
4749
|
platform: a,
|
|
4680
|
-
rects:
|
|
4750
|
+
rects: o,
|
|
4681
4751
|
elements: l,
|
|
4682
4752
|
strategy: c
|
|
4683
4753
|
} = e, {
|
|
@@ -4686,58 +4756,58 @@ function Qt(e, t) {
|
|
|
4686
4756
|
elementContext: g = "floating",
|
|
4687
4757
|
altBoundary: p = !1,
|
|
4688
4758
|
padding: f = 0
|
|
4689
|
-
} = Qe(t, e), m =
|
|
4759
|
+
} = Qe(t, e), m = yo(f), w = l[p ? g === "floating" ? "reference" : "floating" : g], x = gt(yield a.getClippingRect({
|
|
4690
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)),
|
|
4691
4761
|
boundary: u,
|
|
4692
4762
|
rootBoundary: d,
|
|
4693
4763
|
strategy: c
|
|
4694
4764
|
})), y = g === "floating" ? {
|
|
4695
4765
|
x: n,
|
|
4696
|
-
y:
|
|
4697
|
-
width:
|
|
4698
|
-
height:
|
|
4699
|
-
} :
|
|
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)) || {
|
|
4700
4770
|
x: 1,
|
|
4701
4771
|
y: 1
|
|
4702
4772
|
} : {
|
|
4703
4773
|
x: 1,
|
|
4704
4774
|
y: 1
|
|
4705
|
-
},
|
|
4775
|
+
}, P = gt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? yield a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4706
4776
|
elements: l,
|
|
4707
4777
|
rect: y,
|
|
4708
4778
|
offsetParent: E,
|
|
4709
4779
|
strategy: c
|
|
4710
4780
|
}) : y);
|
|
4711
4781
|
return {
|
|
4712
|
-
top: (x.top -
|
|
4713
|
-
bottom: (
|
|
4714
|
-
left: (x.left -
|
|
4715
|
-
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
|
|
4716
4786
|
};
|
|
4717
4787
|
});
|
|
4718
4788
|
}
|
|
4719
|
-
const
|
|
4789
|
+
const Bo = function(e) {
|
|
4720
4790
|
return e === void 0 && (e = {}), {
|
|
4721
4791
|
name: "flip",
|
|
4722
4792
|
options: e,
|
|
4723
4793
|
fn(r) {
|
|
4724
4794
|
return he(this, null, function* () {
|
|
4725
|
-
var n,
|
|
4795
|
+
var n, i;
|
|
4726
4796
|
const {
|
|
4727
4797
|
placement: a,
|
|
4728
|
-
middlewareData:
|
|
4798
|
+
middlewareData: o,
|
|
4729
4799
|
rects: l,
|
|
4730
4800
|
initialPlacement: c,
|
|
4731
4801
|
platform: u,
|
|
4732
4802
|
elements: d
|
|
4733
|
-
} = r,
|
|
4803
|
+
} = r, S = Qe(e, r), {
|
|
4734
4804
|
mainAxis: g = !0,
|
|
4735
4805
|
crossAxis: p = !0,
|
|
4736
4806
|
fallbackPlacements: f,
|
|
4737
4807
|
fallbackStrategy: m = "bestFit",
|
|
4738
4808
|
fallbackAxisSideDirection: h = "none",
|
|
4739
4809
|
flipAlignment: w = !0
|
|
4740
|
-
} =
|
|
4810
|
+
} = S, x = me(S, [
|
|
4741
4811
|
"mainAxis",
|
|
4742
4812
|
"crossAxis",
|
|
4743
4813
|
"fallbackPlacements",
|
|
@@ -4745,46 +4815,46 @@ const Bi = function(e) {
|
|
|
4745
4815
|
"fallbackAxisSideDirection",
|
|
4746
4816
|
"flipAlignment"
|
|
4747
4817
|
]);
|
|
4748
|
-
if ((n =
|
|
4818
|
+
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
4749
4819
|
return {};
|
|
4750
|
-
const y =
|
|
4751
|
-
!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));
|
|
4752
4822
|
const B = [c, ...H], J = yield Qt(r, x), U = [];
|
|
4753
|
-
let G = ((
|
|
4823
|
+
let G = ((i = o.flip) == null ? void 0 : i.overflows) || [];
|
|
4754
4824
|
if (g && U.push(J[y]), p) {
|
|
4755
|
-
const
|
|
4756
|
-
U.push(J[
|
|
4825
|
+
const z = ho(a, l, P);
|
|
4826
|
+
U.push(J[z[0]], J[z[1]]);
|
|
4757
4827
|
}
|
|
4758
4828
|
if (G = [...G, {
|
|
4759
4829
|
placement: a,
|
|
4760
4830
|
overflows: U
|
|
4761
|
-
}], !U.every((
|
|
4831
|
+
}], !U.every((z) => z <= 0)) {
|
|
4762
4832
|
var _, q;
|
|
4763
|
-
const
|
|
4764
|
-
if (
|
|
4833
|
+
const z = (((_ = o.flip) == null ? void 0 : _.index) || 0) + 1, k = B[z];
|
|
4834
|
+
if (k)
|
|
4765
4835
|
return {
|
|
4766
4836
|
data: {
|
|
4767
|
-
index:
|
|
4837
|
+
index: z,
|
|
4768
4838
|
overflows: G
|
|
4769
4839
|
},
|
|
4770
4840
|
reset: {
|
|
4771
|
-
placement:
|
|
4841
|
+
placement: k
|
|
4772
4842
|
}
|
|
4773
4843
|
};
|
|
4774
|
-
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;
|
|
4775
4845
|
if (!M)
|
|
4776
4846
|
switch (m) {
|
|
4777
4847
|
case "bestFit": {
|
|
4778
|
-
var
|
|
4779
|
-
const $ = (
|
|
4848
|
+
var W;
|
|
4849
|
+
const $ = (W = G.filter((A) => {
|
|
4780
4850
|
if (N) {
|
|
4781
|
-
const F = Me(
|
|
4851
|
+
const F = Me(A.placement);
|
|
4782
4852
|
return F === E || // Create a bias to the `y` side axis due to horizontal
|
|
4783
4853
|
// reading directions favoring greater width.
|
|
4784
4854
|
F === "y";
|
|
4785
4855
|
}
|
|
4786
4856
|
return !0;
|
|
4787
|
-
}).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];
|
|
4788
4858
|
$ && (M = $);
|
|
4789
4859
|
break;
|
|
4790
4860
|
}
|
|
@@ -4804,13 +4874,13 @@ const Bi = function(e) {
|
|
|
4804
4874
|
}
|
|
4805
4875
|
};
|
|
4806
4876
|
};
|
|
4807
|
-
function
|
|
4877
|
+
function Do(e, t) {
|
|
4808
4878
|
return he(this, null, function* () {
|
|
4809
4879
|
const {
|
|
4810
4880
|
placement: r,
|
|
4811
4881
|
platform: n,
|
|
4812
|
-
elements:
|
|
4813
|
-
} = 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);
|
|
4814
4884
|
let {
|
|
4815
4885
|
mainAxis: p,
|
|
4816
4886
|
crossAxis: f,
|
|
@@ -4819,7 +4889,7 @@ function Di(e, t) {
|
|
|
4819
4889
|
mainAxis: g,
|
|
4820
4890
|
crossAxis: 0,
|
|
4821
4891
|
alignmentAxis: null
|
|
4822
|
-
} :
|
|
4892
|
+
} : L({
|
|
4823
4893
|
mainAxis: 0,
|
|
4824
4894
|
crossAxis: 0,
|
|
4825
4895
|
alignmentAxis: null
|
|
@@ -4833,30 +4903,30 @@ function Di(e, t) {
|
|
|
4833
4903
|
};
|
|
4834
4904
|
});
|
|
4835
4905
|
}
|
|
4836
|
-
const
|
|
4906
|
+
const No = function(e) {
|
|
4837
4907
|
return e === void 0 && (e = 0), {
|
|
4838
4908
|
name: "offset",
|
|
4839
4909
|
options: e,
|
|
4840
4910
|
fn(r) {
|
|
4841
4911
|
return he(this, null, function* () {
|
|
4842
|
-
var n,
|
|
4912
|
+
var n, i;
|
|
4843
4913
|
const {
|
|
4844
4914
|
x: a,
|
|
4845
|
-
y:
|
|
4915
|
+
y: o,
|
|
4846
4916
|
placement: l,
|
|
4847
4917
|
middlewareData: c
|
|
4848
|
-
} = r, u = yield
|
|
4849
|
-
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 ? {} : {
|
|
4850
4920
|
x: a + u.x,
|
|
4851
|
-
y:
|
|
4852
|
-
data: V(
|
|
4921
|
+
y: o + u.y,
|
|
4922
|
+
data: V(L({}, u), {
|
|
4853
4923
|
placement: l
|
|
4854
4924
|
})
|
|
4855
4925
|
};
|
|
4856
4926
|
});
|
|
4857
4927
|
}
|
|
4858
4928
|
};
|
|
4859
|
-
}, $
|
|
4929
|
+
}, $o = function(e) {
|
|
4860
4930
|
return e === void 0 && (e = {}), {
|
|
4861
4931
|
name: "shift",
|
|
4862
4932
|
options: e,
|
|
@@ -4864,20 +4934,20 @@ const Ni = function(e) {
|
|
|
4864
4934
|
return he(this, null, function* () {
|
|
4865
4935
|
const {
|
|
4866
4936
|
x: n,
|
|
4867
|
-
y:
|
|
4937
|
+
y: i,
|
|
4868
4938
|
placement: a
|
|
4869
4939
|
} = r, x = Qe(e, r), {
|
|
4870
|
-
mainAxis:
|
|
4940
|
+
mainAxis: o = !0,
|
|
4871
4941
|
crossAxis: l = !1,
|
|
4872
4942
|
limiter: c = {
|
|
4873
4943
|
fn: (y) => {
|
|
4874
4944
|
let {
|
|
4875
4945
|
x: E,
|
|
4876
|
-
y:
|
|
4946
|
+
y: T
|
|
4877
4947
|
} = y;
|
|
4878
4948
|
return {
|
|
4879
4949
|
x: E,
|
|
4880
|
-
y:
|
|
4950
|
+
y: T
|
|
4881
4951
|
};
|
|
4882
4952
|
}
|
|
4883
4953
|
}
|
|
@@ -4887,31 +4957,31 @@ const Ni = function(e) {
|
|
|
4887
4957
|
"limiter"
|
|
4888
4958
|
]), d = {
|
|
4889
4959
|
x: n,
|
|
4890
|
-
y:
|
|
4891
|
-
}, g = yield Qt(r, u), p = Me(
|
|
4960
|
+
y: i
|
|
4961
|
+
}, g = yield Qt(r, u), p = Me(ke(a)), f = mn(p);
|
|
4892
4962
|
let m = d[f], h = d[p];
|
|
4893
|
-
if (
|
|
4894
|
-
const y = f === "y" ? "top" : "left", E = f === "y" ? "bottom" : "right",
|
|
4895
|
-
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);
|
|
4896
4966
|
}
|
|
4897
4967
|
if (l) {
|
|
4898
|
-
const y = p === "y" ? "top" : "left", E = p === "y" ? "bottom" : "right",
|
|
4899
|
-
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);
|
|
4900
4970
|
}
|
|
4901
|
-
const w = c.fn(V(
|
|
4971
|
+
const w = c.fn(V(L({}, r), {
|
|
4902
4972
|
[f]: m,
|
|
4903
4973
|
[p]: h
|
|
4904
4974
|
}));
|
|
4905
|
-
return V(
|
|
4975
|
+
return V(L({}, w), {
|
|
4906
4976
|
data: {
|
|
4907
4977
|
x: w.x - n,
|
|
4908
|
-
y: w.y -
|
|
4978
|
+
y: w.y - i
|
|
4909
4979
|
}
|
|
4910
4980
|
});
|
|
4911
4981
|
});
|
|
4912
4982
|
}
|
|
4913
4983
|
};
|
|
4914
|
-
},
|
|
4984
|
+
}, Vo = function(e) {
|
|
4915
4985
|
return e === void 0 && (e = {}), {
|
|
4916
4986
|
name: "size",
|
|
4917
4987
|
options: e,
|
|
@@ -4919,31 +4989,31 @@ const Ni = function(e) {
|
|
|
4919
4989
|
return he(this, null, function* () {
|
|
4920
4990
|
const {
|
|
4921
4991
|
placement: n,
|
|
4922
|
-
rects:
|
|
4992
|
+
rects: i,
|
|
4923
4993
|
platform: a,
|
|
4924
|
-
elements:
|
|
4994
|
+
elements: o
|
|
4925
4995
|
} = r, J = Qe(e, r), {
|
|
4926
4996
|
apply: l = () => {
|
|
4927
4997
|
}
|
|
4928
4998
|
} = J, c = me(J, [
|
|
4929
4999
|
"apply"
|
|
4930
|
-
]), u = yield Qt(r, c), d =
|
|
5000
|
+
]), u = yield Qt(r, c), d = ke(n), g = et(n), p = Me(n) === "y", {
|
|
4931
5001
|
width: f,
|
|
4932
5002
|
height: m
|
|
4933
|
-
} =
|
|
5003
|
+
} = i.floating;
|
|
4934
5004
|
let h, w;
|
|
4935
|
-
d === "top" || d === "bottom" ? (h = d, w = g === ((yield a.isRTL == null ? void 0 : a.isRTL(
|
|
4936
|
-
const x = m - u.top - u.bottom, y = f - u.left - u.right, E =
|
|
4937
|
-
let H = E, N =
|
|
4938
|
-
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) {
|
|
4939
5009
|
const U = le(u.left, 0), G = le(u.right, 0), _ = le(u.top, 0), q = le(u.bottom, 0);
|
|
4940
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));
|
|
4941
5011
|
}
|
|
4942
|
-
yield l(V(
|
|
5012
|
+
yield l(V(L({}, r), {
|
|
4943
5013
|
availableWidth: N,
|
|
4944
5014
|
availableHeight: H
|
|
4945
5015
|
}));
|
|
4946
|
-
const B = yield a.getDimensions(
|
|
5016
|
+
const B = yield a.getDimensions(o.floating);
|
|
4947
5017
|
return f !== B.width || m !== B.height ? {
|
|
4948
5018
|
reset: {
|
|
4949
5019
|
rects: !0
|
|
@@ -4956,8 +5026,8 @@ const Ni = function(e) {
|
|
|
4956
5026
|
function Rn(e) {
|
|
4957
5027
|
const t = de(e);
|
|
4958
5028
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
4959
|
-
const
|
|
4960
|
-
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), {
|
|
4961
5031
|
width: r,
|
|
4962
5032
|
height: n,
|
|
4963
5033
|
$: l
|
|
@@ -4969,42 +5039,42 @@ function er(e) {
|
|
|
4969
5039
|
function je(e) {
|
|
4970
5040
|
const t = er(e);
|
|
4971
5041
|
if (!ae(t))
|
|
4972
|
-
return
|
|
5042
|
+
return ze(1);
|
|
4973
5043
|
const r = t.getBoundingClientRect(), {
|
|
4974
5044
|
width: n,
|
|
4975
|
-
height:
|
|
5045
|
+
height: i,
|
|
4976
5046
|
$: a
|
|
4977
5047
|
} = Rn(t);
|
|
4978
|
-
let
|
|
4979
|
-
return (!
|
|
4980
|
-
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,
|
|
4981
5051
|
y: l
|
|
4982
5052
|
};
|
|
4983
5053
|
}
|
|
4984
|
-
const
|
|
5054
|
+
const Go = /* @__PURE__ */ ze(0);
|
|
4985
5055
|
function En(e) {
|
|
4986
|
-
const t =
|
|
4987
|
-
return !Zt() || !t.visualViewport ?
|
|
5056
|
+
const t = oe(e);
|
|
5057
|
+
return !Zt() || !t.visualViewport ? Go : {
|
|
4988
5058
|
x: t.visualViewport.offsetLeft,
|
|
4989
5059
|
y: t.visualViewport.offsetTop
|
|
4990
5060
|
};
|
|
4991
5061
|
}
|
|
4992
|
-
function
|
|
4993
|
-
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;
|
|
4994
5064
|
}
|
|
4995
5065
|
function He(e, t, r, n) {
|
|
4996
5066
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
4997
|
-
const
|
|
4998
|
-
let
|
|
4999
|
-
t && (n ? X(n) && (
|
|
5000
|
-
const l =
|
|
5001
|
-
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;
|
|
5002
5072
|
if (a) {
|
|
5003
|
-
const p =
|
|
5073
|
+
const p = oe(a), f = n && X(n) ? oe(n) : n;
|
|
5004
5074
|
let m = p, h = m.frameElement;
|
|
5005
5075
|
for (; h && n && f !== m; ) {
|
|
5006
|
-
const w = je(h), x = h.getBoundingClientRect(), y = de(h), E = x.left + (h.clientLeft + parseFloat(y.paddingLeft)) * w.x,
|
|
5007
|
-
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;
|
|
5008
5078
|
}
|
|
5009
5079
|
}
|
|
5010
5080
|
return gt({
|
|
@@ -5014,22 +5084,22 @@ function He(e, t, r, n) {
|
|
|
5014
5084
|
y: u
|
|
5015
5085
|
});
|
|
5016
5086
|
}
|
|
5017
|
-
function
|
|
5087
|
+
function qo(e) {
|
|
5018
5088
|
let {
|
|
5019
5089
|
elements: t,
|
|
5020
5090
|
rect: r,
|
|
5021
5091
|
offsetParent: n,
|
|
5022
|
-
strategy:
|
|
5092
|
+
strategy: i
|
|
5023
5093
|
} = e;
|
|
5024
|
-
const a =
|
|
5025
|
-
if (n ===
|
|
5094
|
+
const a = i === "fixed", o = be(n), l = t ? xt(t.floating) : !1;
|
|
5095
|
+
if (n === o || l && a)
|
|
5026
5096
|
return r;
|
|
5027
5097
|
let c = {
|
|
5028
5098
|
scrollLeft: 0,
|
|
5029
5099
|
scrollTop: 0
|
|
5030
|
-
}, u =
|
|
5031
|
-
const d =
|
|
5032
|
-
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))) {
|
|
5033
5103
|
const p = He(n);
|
|
5034
5104
|
u = je(n), d.x = p.x + n.clientLeft, d.y = p.y + n.clientTop;
|
|
5035
5105
|
}
|
|
@@ -5040,42 +5110,42 @@ function qi(e) {
|
|
|
5040
5110
|
y: r.y * u.y - c.scrollTop * u.y + d.y
|
|
5041
5111
|
};
|
|
5042
5112
|
}
|
|
5043
|
-
function
|
|
5113
|
+
function Yo(e) {
|
|
5044
5114
|
return Array.from(e.getClientRects());
|
|
5045
5115
|
}
|
|
5046
|
-
function
|
|
5116
|
+
function Tn(e) {
|
|
5047
5117
|
return He(be(e)).left + yt(e).scrollLeft;
|
|
5048
5118
|
}
|
|
5049
|
-
function
|
|
5050
|
-
const t = be(e), r = yt(e), n = e.ownerDocument.body,
|
|
5051
|
-
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);
|
|
5052
5122
|
const l = -r.scrollTop;
|
|
5053
|
-
return de(n).direction === "rtl" && (
|
|
5054
|
-
width:
|
|
5123
|
+
return de(n).direction === "rtl" && (o += le(t.clientWidth, n.clientWidth) - i), {
|
|
5124
|
+
width: i,
|
|
5055
5125
|
height: a,
|
|
5056
|
-
x:
|
|
5126
|
+
x: o,
|
|
5057
5127
|
y: l
|
|
5058
5128
|
};
|
|
5059
5129
|
}
|
|
5060
|
-
function
|
|
5061
|
-
const r =
|
|
5062
|
-
let a = n.clientWidth,
|
|
5063
|
-
if (
|
|
5064
|
-
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;
|
|
5065
5135
|
const u = Zt();
|
|
5066
|
-
(!u || u && t === "fixed") && (l =
|
|
5136
|
+
(!u || u && t === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
|
|
5067
5137
|
}
|
|
5068
5138
|
return {
|
|
5069
5139
|
width: a,
|
|
5070
|
-
height:
|
|
5140
|
+
height: o,
|
|
5071
5141
|
x: l,
|
|
5072
5142
|
y: c
|
|
5073
5143
|
};
|
|
5074
5144
|
}
|
|
5075
|
-
function
|
|
5076
|
-
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;
|
|
5077
5147
|
return {
|
|
5078
|
-
width:
|
|
5148
|
+
width: o,
|
|
5079
5149
|
height: l,
|
|
5080
5150
|
x: c,
|
|
5081
5151
|
y: u
|
|
@@ -5084,48 +5154,48 @@ function Ji(e, t) {
|
|
|
5084
5154
|
function _r(e, t, r) {
|
|
5085
5155
|
let n;
|
|
5086
5156
|
if (t === "viewport")
|
|
5087
|
-
n =
|
|
5157
|
+
n = Xo(e, r);
|
|
5088
5158
|
else if (t === "document")
|
|
5089
|
-
n =
|
|
5159
|
+
n = Ko(be(e));
|
|
5090
5160
|
else if (X(t))
|
|
5091
|
-
n =
|
|
5161
|
+
n = Jo(t, r);
|
|
5092
5162
|
else {
|
|
5093
|
-
const
|
|
5094
|
-
n = V(
|
|
5095
|
-
x: t.x -
|
|
5096
|
-
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
|
|
5097
5167
|
});
|
|
5098
5168
|
}
|
|
5099
5169
|
return gt(n);
|
|
5100
5170
|
}
|
|
5101
|
-
function
|
|
5171
|
+
function Sn(e, t) {
|
|
5102
5172
|
const r = ve(e);
|
|
5103
|
-
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);
|
|
5104
5174
|
}
|
|
5105
|
-
function
|
|
5175
|
+
function Zo(e, t) {
|
|
5106
5176
|
const r = t.get(e);
|
|
5107
5177
|
if (r)
|
|
5108
5178
|
return r;
|
|
5109
|
-
let n =
|
|
5179
|
+
let n = Se(e, [], !1).filter((l) => X(l) && De(l) !== "body"), i = null;
|
|
5110
5180
|
const a = de(e).position === "fixed";
|
|
5111
|
-
let
|
|
5112
|
-
for (; X(
|
|
5113
|
-
const l = de(
|
|
5114
|
-
!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);
|
|
5115
5185
|
}
|
|
5116
5186
|
return t.set(e, n), n;
|
|
5117
5187
|
}
|
|
5118
|
-
function
|
|
5188
|
+
function Qo(e) {
|
|
5119
5189
|
let {
|
|
5120
5190
|
element: t,
|
|
5121
5191
|
boundary: r,
|
|
5122
5192
|
rootBoundary: n,
|
|
5123
|
-
strategy:
|
|
5193
|
+
strategy: i
|
|
5124
5194
|
} = e;
|
|
5125
|
-
const
|
|
5126
|
-
const g = _r(t, d,
|
|
5127
|
-
return u.top = le(g.top, u.top), u.right =
|
|
5128
|
-
}, _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));
|
|
5129
5199
|
return {
|
|
5130
5200
|
width: c.right - c.left,
|
|
5131
5201
|
height: c.bottom - c.top,
|
|
@@ -5144,48 +5214,48 @@ function ea(e) {
|
|
|
5144
5214
|
};
|
|
5145
5215
|
}
|
|
5146
5216
|
function ta(e, t, r) {
|
|
5147
|
-
const n = ae(t),
|
|
5217
|
+
const n = ae(t), i = be(t), a = r === "fixed", o = He(e, !0, a, t);
|
|
5148
5218
|
let l = {
|
|
5149
5219
|
scrollLeft: 0,
|
|
5150
5220
|
scrollTop: 0
|
|
5151
5221
|
};
|
|
5152
|
-
const c =
|
|
5222
|
+
const c = ze(0);
|
|
5153
5223
|
if (n || !n && !a)
|
|
5154
|
-
if ((De(t) !== "body" || Ze(
|
|
5224
|
+
if ((De(t) !== "body" || Ze(i)) && (l = yt(t)), n) {
|
|
5155
5225
|
const g = He(t, !0, a, t);
|
|
5156
5226
|
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
5157
|
-
} else
|
|
5158
|
-
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;
|
|
5159
5229
|
return {
|
|
5160
5230
|
x: u,
|
|
5161
5231
|
y: d,
|
|
5162
|
-
width:
|
|
5163
|
-
height:
|
|
5232
|
+
width: o.width,
|
|
5233
|
+
height: o.height
|
|
5164
5234
|
};
|
|
5165
5235
|
}
|
|
5166
5236
|
function Mt(e) {
|
|
5167
5237
|
return de(e).position === "static";
|
|
5168
5238
|
}
|
|
5169
|
-
function
|
|
5239
|
+
function Wr(e, t) {
|
|
5170
5240
|
return !ae(e) || de(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
5171
5241
|
}
|
|
5172
5242
|
function Cn(e, t) {
|
|
5173
|
-
const r =
|
|
5243
|
+
const r = oe(e);
|
|
5174
5244
|
if (xt(e))
|
|
5175
5245
|
return r;
|
|
5176
5246
|
if (!ae(e)) {
|
|
5177
|
-
let
|
|
5178
|
-
for (;
|
|
5179
|
-
if (X(
|
|
5180
|
-
return
|
|
5181
|
-
|
|
5247
|
+
let i = ve(e);
|
|
5248
|
+
for (; i && !Ce(i); ) {
|
|
5249
|
+
if (X(i) && !Mt(i))
|
|
5250
|
+
return i;
|
|
5251
|
+
i = ve(i);
|
|
5182
5252
|
}
|
|
5183
5253
|
return r;
|
|
5184
5254
|
}
|
|
5185
|
-
let n =
|
|
5186
|
-
for (; n &&
|
|
5187
|
-
n =
|
|
5188
|
-
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;
|
|
5189
5259
|
}
|
|
5190
5260
|
const ra = function(e) {
|
|
5191
5261
|
return he(this, null, function* () {
|
|
@@ -5204,26 +5274,26 @@ const ra = function(e) {
|
|
|
5204
5274
|
function na(e) {
|
|
5205
5275
|
return de(e).direction === "rtl";
|
|
5206
5276
|
}
|
|
5207
|
-
const
|
|
5208
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5277
|
+
const ia = {
|
|
5278
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: qo,
|
|
5209
5279
|
getDocumentElement: be,
|
|
5210
|
-
getClippingRect:
|
|
5280
|
+
getClippingRect: Qo,
|
|
5211
5281
|
getOffsetParent: Cn,
|
|
5212
5282
|
getElementRects: ra,
|
|
5213
|
-
getClientRects:
|
|
5283
|
+
getClientRects: Yo,
|
|
5214
5284
|
getDimensions: ea,
|
|
5215
5285
|
getScale: je,
|
|
5216
5286
|
isElement: X,
|
|
5217
5287
|
isRTL: na
|
|
5218
5288
|
};
|
|
5219
|
-
function
|
|
5289
|
+
function oa(e, t) {
|
|
5220
5290
|
let r = null, n;
|
|
5221
|
-
const
|
|
5291
|
+
const i = be(e);
|
|
5222
5292
|
function a() {
|
|
5223
5293
|
var l;
|
|
5224
5294
|
clearTimeout(n), (l = r) == null || l.disconnect(), r = null;
|
|
5225
5295
|
}
|
|
5226
|
-
function
|
|
5296
|
+
function o(l, c) {
|
|
5227
5297
|
l === void 0 && (l = !1), c === void 0 && (c = 1), a();
|
|
5228
5298
|
const {
|
|
5229
5299
|
left: u,
|
|
@@ -5233,51 +5303,51 @@ function ia(e, t) {
|
|
|
5233
5303
|
} = e.getBoundingClientRect();
|
|
5234
5304
|
if (l || t(), !g || !p)
|
|
5235
5305
|
return;
|
|
5236
|
-
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 = {
|
|
5237
5307
|
rootMargin: -f + "px " + -m + "px " + -h + "px " + -w + "px",
|
|
5238
|
-
threshold: le(0,
|
|
5308
|
+
threshold: le(0, Te(1, c)) || 1
|
|
5239
5309
|
};
|
|
5240
5310
|
let E = !0;
|
|
5241
|
-
function
|
|
5242
|
-
const H =
|
|
5311
|
+
function T(P) {
|
|
5312
|
+
const H = P[0].intersectionRatio;
|
|
5243
5313
|
if (H !== c) {
|
|
5244
5314
|
if (!E)
|
|
5245
|
-
return
|
|
5246
|
-
H ?
|
|
5247
|
-
|
|
5315
|
+
return o();
|
|
5316
|
+
H ? o(!1, H) : n = setTimeout(() => {
|
|
5317
|
+
o(!1, 1e-7);
|
|
5248
5318
|
}, 1e3);
|
|
5249
5319
|
}
|
|
5250
5320
|
E = !1;
|
|
5251
5321
|
}
|
|
5252
5322
|
try {
|
|
5253
|
-
r = new IntersectionObserver(
|
|
5323
|
+
r = new IntersectionObserver(T, V(L({}, y), {
|
|
5254
5324
|
// Handle <iframe>s
|
|
5255
|
-
root:
|
|
5325
|
+
root: i.ownerDocument
|
|
5256
5326
|
}));
|
|
5257
|
-
} catch (
|
|
5258
|
-
r = new IntersectionObserver(
|
|
5327
|
+
} catch (P) {
|
|
5328
|
+
r = new IntersectionObserver(T, y);
|
|
5259
5329
|
}
|
|
5260
5330
|
r.observe(e);
|
|
5261
5331
|
}
|
|
5262
|
-
return
|
|
5332
|
+
return o(!0), a;
|
|
5263
5333
|
}
|
|
5264
5334
|
function aa(e, t, r, n) {
|
|
5265
5335
|
n === void 0 && (n = {});
|
|
5266
5336
|
const {
|
|
5267
|
-
ancestorScroll:
|
|
5337
|
+
ancestorScroll: i = !0,
|
|
5268
5338
|
ancestorResize: a = !0,
|
|
5269
|
-
elementResize:
|
|
5339
|
+
elementResize: o = typeof ResizeObserver == "function",
|
|
5270
5340
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
5271
5341
|
animationFrame: c = !1
|
|
5272
|
-
} = n, u = er(e), d =
|
|
5342
|
+
} = n, u = er(e), d = i || a ? [...u ? Se(u) : [], ...Se(t)] : [];
|
|
5273
5343
|
d.forEach((x) => {
|
|
5274
|
-
|
|
5344
|
+
i && x.addEventListener("scroll", r, {
|
|
5275
5345
|
passive: !0
|
|
5276
5346
|
}), a && x.addEventListener("resize", r);
|
|
5277
5347
|
});
|
|
5278
|
-
const g = u && l ?
|
|
5348
|
+
const g = u && l ? oa(u, r) : null;
|
|
5279
5349
|
let p = -1, f = null;
|
|
5280
|
-
|
|
5350
|
+
o && (f = new ResizeObserver((x) => {
|
|
5281
5351
|
let [y] = x;
|
|
5282
5352
|
y && y.target === u && f && (f.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
5283
5353
|
var E;
|
|
@@ -5293,17 +5363,17 @@ function aa(e, t, r, n) {
|
|
|
5293
5363
|
return r(), () => {
|
|
5294
5364
|
var x;
|
|
5295
5365
|
d.forEach((y) => {
|
|
5296
|
-
|
|
5366
|
+
i && y.removeEventListener("scroll", r), a && y.removeEventListener("resize", r);
|
|
5297
5367
|
}), g == null || g(), (x = f) == null || x.disconnect(), f = null, c && cancelAnimationFrame(m);
|
|
5298
5368
|
};
|
|
5299
5369
|
}
|
|
5300
|
-
const la =
|
|
5301
|
-
const n = /* @__PURE__ */ new Map(),
|
|
5302
|
-
platform:
|
|
5303
|
-
}, 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), {
|
|
5304
5374
|
_c: n
|
|
5305
5375
|
});
|
|
5306
|
-
return
|
|
5376
|
+
return Io(e, t, V(L({}, i), {
|
|
5307
5377
|
platform: a
|
|
5308
5378
|
}));
|
|
5309
5379
|
};
|
|
@@ -5315,7 +5385,7 @@ function pt(e, t) {
|
|
|
5315
5385
|
return !1;
|
|
5316
5386
|
if (typeof e == "function" && e.toString() === t.toString())
|
|
5317
5387
|
return !0;
|
|
5318
|
-
let r, n,
|
|
5388
|
+
let r, n, i;
|
|
5319
5389
|
if (e && t && typeof e == "object") {
|
|
5320
5390
|
if (Array.isArray(e)) {
|
|
5321
5391
|
if (r = e.length, r !== t.length) return !1;
|
|
@@ -5324,13 +5394,13 @@ function pt(e, t) {
|
|
|
5324
5394
|
return !1;
|
|
5325
5395
|
return !0;
|
|
5326
5396
|
}
|
|
5327
|
-
if (
|
|
5397
|
+
if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length)
|
|
5328
5398
|
return !1;
|
|
5329
5399
|
for (n = r; n-- !== 0; )
|
|
5330
|
-
if (!{}.hasOwnProperty.call(t,
|
|
5400
|
+
if (!{}.hasOwnProperty.call(t, i[n]))
|
|
5331
5401
|
return !1;
|
|
5332
5402
|
for (n = r; n-- !== 0; ) {
|
|
5333
|
-
const a =
|
|
5403
|
+
const a = i[n];
|
|
5334
5404
|
if (!(a === "_owner" && e.$$typeof) && !pt(e[a], t[a]))
|
|
5335
5405
|
return !1;
|
|
5336
5406
|
}
|
|
@@ -5338,11 +5408,11 @@ function pt(e, t) {
|
|
|
5338
5408
|
}
|
|
5339
5409
|
return e !== e && t !== t;
|
|
5340
5410
|
}
|
|
5341
|
-
function
|
|
5411
|
+
function zn(e) {
|
|
5342
5412
|
return typeof window == "undefined" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5343
5413
|
}
|
|
5344
|
-
function
|
|
5345
|
-
const r =
|
|
5414
|
+
function Ar(e, t) {
|
|
5415
|
+
const r = zn(e);
|
|
5346
5416
|
return Math.round(t * r) / r;
|
|
5347
5417
|
}
|
|
5348
5418
|
function Or(e) {
|
|
@@ -5357,10 +5427,10 @@ function fa(e) {
|
|
|
5357
5427
|
placement: t = "bottom",
|
|
5358
5428
|
strategy: r = "absolute",
|
|
5359
5429
|
middleware: n = [],
|
|
5360
|
-
platform:
|
|
5430
|
+
platform: i,
|
|
5361
5431
|
elements: {
|
|
5362
5432
|
reference: a,
|
|
5363
|
-
floating:
|
|
5433
|
+
floating: o
|
|
5364
5434
|
} = {},
|
|
5365
5435
|
transform: l = !0,
|
|
5366
5436
|
whileElementsMounted: c,
|
|
@@ -5374,20 +5444,20 @@ function fa(e) {
|
|
|
5374
5444
|
isPositioned: !1
|
|
5375
5445
|
}), [p, f] = v.useState(n);
|
|
5376
5446
|
pt(p, n) || f(n);
|
|
5377
|
-
const [m, h] = v.useState(null), [w, x] = v.useState(null), y = v.useCallback((
|
|
5378
|
-
|
|
5379
|
-
}, []), E = v.useCallback((
|
|
5380
|
-
|
|
5381
|
-
}, []),
|
|
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(() => {
|
|
5382
5452
|
if (!H.current || !N.current)
|
|
5383
5453
|
return;
|
|
5384
|
-
const
|
|
5454
|
+
const k = {
|
|
5385
5455
|
placement: t,
|
|
5386
5456
|
strategy: r,
|
|
5387
5457
|
middleware: p
|
|
5388
5458
|
};
|
|
5389
|
-
G.current && (
|
|
5390
|
-
const $ = V(
|
|
5459
|
+
G.current && (k.platform = G.current), da(H.current, N.current, k).then((M) => {
|
|
5460
|
+
const $ = V(L({}, M), {
|
|
5391
5461
|
isPositioned: !0
|
|
5392
5462
|
});
|
|
5393
5463
|
q.current && !pt(B.current, $) && (B.current = $, Xr.flushSync(() => {
|
|
@@ -5396,7 +5466,7 @@ function fa(e) {
|
|
|
5396
5466
|
});
|
|
5397
5467
|
}, [p, t, r, G]);
|
|
5398
5468
|
st(() => {
|
|
5399
|
-
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), {
|
|
5400
5470
|
isPositioned: !1
|
|
5401
5471
|
})));
|
|
5402
5472
|
}, [u]);
|
|
@@ -5404,55 +5474,55 @@ function fa(e) {
|
|
|
5404
5474
|
st(() => (q.current = !0, () => {
|
|
5405
5475
|
q.current = !1;
|
|
5406
5476
|
}), []), st(() => {
|
|
5407
|
-
if (
|
|
5477
|
+
if (T && (H.current = T), P && (N.current = P), T && P) {
|
|
5408
5478
|
if (U.current)
|
|
5409
|
-
return U.current(
|
|
5479
|
+
return U.current(T, P, _);
|
|
5410
5480
|
_();
|
|
5411
5481
|
}
|
|
5412
|
-
}, [
|
|
5413
|
-
const
|
|
5482
|
+
}, [T, P, _, U, J]);
|
|
5483
|
+
const W = v.useMemo(() => ({
|
|
5414
5484
|
reference: H,
|
|
5415
5485
|
floating: N,
|
|
5416
5486
|
setReference: y,
|
|
5417
5487
|
setFloating: E
|
|
5418
|
-
}), [y, E]),
|
|
5419
|
-
reference:
|
|
5420
|
-
floating:
|
|
5421
|
-
}), [
|
|
5422
|
-
const
|
|
5488
|
+
}), [y, E]), S = v.useMemo(() => ({
|
|
5489
|
+
reference: T,
|
|
5490
|
+
floating: P
|
|
5491
|
+
}), [T, P]), z = v.useMemo(() => {
|
|
5492
|
+
const k = {
|
|
5423
5493
|
position: r,
|
|
5424
5494
|
left: 0,
|
|
5425
5495
|
top: 0
|
|
5426
5496
|
};
|
|
5427
|
-
if (!
|
|
5428
|
-
return
|
|
5429
|
-
const M =
|
|
5430
|
-
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), {
|
|
5431
5501
|
transform: "translate(" + M + "px, " + $ + "px)"
|
|
5432
|
-
}),
|
|
5502
|
+
}), zn(S.floating) >= 1.5 && {
|
|
5433
5503
|
willChange: "transform"
|
|
5434
5504
|
}) : {
|
|
5435
5505
|
position: r,
|
|
5436
5506
|
left: M,
|
|
5437
5507
|
top: $
|
|
5438
5508
|
};
|
|
5439
|
-
}, [r, l,
|
|
5440
|
-
return v.useMemo(() => V(
|
|
5509
|
+
}, [r, l, S.floating, d.x, d.y]);
|
|
5510
|
+
return v.useMemo(() => V(L({}, d), {
|
|
5441
5511
|
update: _,
|
|
5442
|
-
refs:
|
|
5443
|
-
elements:
|
|
5444
|
-
floatingStyles:
|
|
5445
|
-
}), [d, _,
|
|
5512
|
+
refs: W,
|
|
5513
|
+
elements: S,
|
|
5514
|
+
floatingStyles: z
|
|
5515
|
+
}), [d, _, W, S, z]);
|
|
5446
5516
|
}
|
|
5447
|
-
const ga = (e, t) => V(
|
|
5517
|
+
const ga = (e, t) => V(L({}, la(e)), {
|
|
5448
5518
|
options: [e, t]
|
|
5449
|
-
}), ma = (e, t) => V(
|
|
5519
|
+
}), ma = (e, t) => V(L({}, sa(e)), {
|
|
5450
5520
|
options: [e, t]
|
|
5451
|
-
}), ha = (e, t) => V(
|
|
5521
|
+
}), ha = (e, t) => V(L({}, ca(e)), {
|
|
5452
5522
|
options: [e, t]
|
|
5453
|
-
}), pa = (e, t) => V(
|
|
5523
|
+
}), pa = (e, t) => V(L({}, ua(e)), {
|
|
5454
5524
|
options: [e, t]
|
|
5455
|
-
}),
|
|
5525
|
+
}), kn = L({}, v), va = kn.useInsertionEffect, ba = va || ((e) => e());
|
|
5456
5526
|
function Re(e) {
|
|
5457
5527
|
const t = v.useRef(() => {
|
|
5458
5528
|
if (process.env.NODE_ENV !== "production")
|
|
@@ -5461,8 +5531,8 @@ function Re(e) {
|
|
|
5461
5531
|
return ba(() => {
|
|
5462
5532
|
t.current = e;
|
|
5463
5533
|
}), v.useCallback(function() {
|
|
5464
|
-
for (var r = arguments.length, n = new Array(r),
|
|
5465
|
-
n[
|
|
5534
|
+
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
5535
|
+
n[i] = arguments[i];
|
|
5466
5536
|
return t.current == null ? void 0 : t.current(...n);
|
|
5467
5537
|
}, []);
|
|
5468
5538
|
}
|
|
@@ -5491,16 +5561,16 @@ function ya() {
|
|
|
5491
5561
|
jr = !0;
|
|
5492
5562
|
}, []), e;
|
|
5493
5563
|
}
|
|
5494
|
-
const wa =
|
|
5564
|
+
const wa = kn.useId, tr = wa || ya;
|
|
5495
5565
|
let Yt;
|
|
5496
5566
|
process.env.NODE_ENV !== "production" && (Yt = /* @__PURE__ */ new Set());
|
|
5497
5567
|
function Ra() {
|
|
5498
5568
|
for (var e, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
5499
5569
|
r[n] = arguments[n];
|
|
5500
|
-
const
|
|
5501
|
-
if (!((e = Yt) != null && e.has(
|
|
5570
|
+
const i = "Floating UI: " + r.join(" ");
|
|
5571
|
+
if (!((e = Yt) != null && e.has(i))) {
|
|
5502
5572
|
var a;
|
|
5503
|
-
(a = Yt) == null || a.add(
|
|
5573
|
+
(a = Yt) == null || a.add(i), console.error(i);
|
|
5504
5574
|
}
|
|
5505
5575
|
}
|
|
5506
5576
|
function Ea() {
|
|
@@ -5508,26 +5578,26 @@ function Ea() {
|
|
|
5508
5578
|
return {
|
|
5509
5579
|
emit(t, r) {
|
|
5510
5580
|
var n;
|
|
5511
|
-
(n = e.get(t)) == null || n.forEach((
|
|
5581
|
+
(n = e.get(t)) == null || n.forEach((i) => i(r));
|
|
5512
5582
|
},
|
|
5513
5583
|
on(t, r) {
|
|
5514
5584
|
e.set(t, [...e.get(t) || [], r]);
|
|
5515
5585
|
},
|
|
5516
5586
|
off(t, r) {
|
|
5517
5587
|
var n;
|
|
5518
|
-
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)) || []);
|
|
5519
5589
|
}
|
|
5520
5590
|
};
|
|
5521
5591
|
}
|
|
5522
|
-
const
|
|
5592
|
+
const Ta = /* @__PURE__ */ v.createContext(null), Sa = /* @__PURE__ */ v.createContext(null), rr = () => {
|
|
5523
5593
|
var e;
|
|
5524
|
-
return ((e = v.useContext(
|
|
5525
|
-
}, nr = () => v.useContext(
|
|
5594
|
+
return ((e = v.useContext(Ta)) == null ? void 0 : e.id) || null;
|
|
5595
|
+
}, nr = () => v.useContext(Sa);
|
|
5526
5596
|
function tt(e) {
|
|
5527
5597
|
return "data-floating-ui-" + e;
|
|
5528
5598
|
}
|
|
5529
5599
|
function Ht(e) {
|
|
5530
|
-
const t =
|
|
5600
|
+
const t = pi(e);
|
|
5531
5601
|
return fe(() => {
|
|
5532
5602
|
t.current = e;
|
|
5533
5603
|
}), t;
|
|
@@ -5541,9 +5611,9 @@ function el(e, t) {
|
|
|
5541
5611
|
const {
|
|
5542
5612
|
open: r,
|
|
5543
5613
|
onOpenChange: n,
|
|
5544
|
-
dataRef:
|
|
5614
|
+
dataRef: i,
|
|
5545
5615
|
events: a,
|
|
5546
|
-
elements:
|
|
5616
|
+
elements: o
|
|
5547
5617
|
} = e, {
|
|
5548
5618
|
enabled: l = !0,
|
|
5549
5619
|
delay: c = 0,
|
|
@@ -5551,164 +5621,164 @@ function el(e, t) {
|
|
|
5551
5621
|
mouseOnly: d = !1,
|
|
5552
5622
|
restMs: g = 0,
|
|
5553
5623
|
move: p = !0
|
|
5554
|
-
} = 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(() => {
|
|
5555
5625
|
}), J = v.useCallback(() => {
|
|
5556
|
-
var
|
|
5557
|
-
const
|
|
5558
|
-
return (
|
|
5559
|
-
}, [
|
|
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]);
|
|
5560
5630
|
v.useEffect(() => {
|
|
5561
5631
|
if (!l) return;
|
|
5562
|
-
function
|
|
5632
|
+
function S(z) {
|
|
5563
5633
|
let {
|
|
5564
|
-
open:
|
|
5565
|
-
} =
|
|
5566
|
-
|
|
5634
|
+
open: k
|
|
5635
|
+
} = z;
|
|
5636
|
+
k || (clearTimeout(E.current), clearTimeout(P.current), H.current = !0);
|
|
5567
5637
|
}
|
|
5568
|
-
return a.on("openchange",
|
|
5569
|
-
a.off("openchange",
|
|
5638
|
+
return a.on("openchange", S), () => {
|
|
5639
|
+
a.off("openchange", S);
|
|
5570
5640
|
};
|
|
5571
5641
|
}, [l, a]), v.useEffect(() => {
|
|
5572
5642
|
if (!l || !h.current || !r) return;
|
|
5573
|
-
function
|
|
5574
|
-
J() && n(!1,
|
|
5643
|
+
function S(k) {
|
|
5644
|
+
J() && n(!1, k, "hover");
|
|
5575
5645
|
}
|
|
5576
|
-
const
|
|
5577
|
-
return
|
|
5578
|
-
|
|
5646
|
+
const z = Ee(o.floating).documentElement;
|
|
5647
|
+
return z.addEventListener("mouseleave", S), () => {
|
|
5648
|
+
z.removeEventListener("mouseleave", S);
|
|
5579
5649
|
};
|
|
5580
|
-
}, [
|
|
5581
|
-
const U = v.useCallback(function(
|
|
5582
|
-
|
|
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");
|
|
5583
5653
|
const M = _t(w.current, "close", y.current);
|
|
5584
|
-
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));
|
|
5585
5655
|
}, [w, n]), G = Re(() => {
|
|
5586
|
-
B.current(),
|
|
5656
|
+
B.current(), T.current = void 0;
|
|
5587
5657
|
}), _ = Re(() => {
|
|
5588
5658
|
if (N.current) {
|
|
5589
|
-
const
|
|
5590
|
-
|
|
5659
|
+
const S = Ee(o.floating).body;
|
|
5660
|
+
S.style.pointerEvents = "", S.removeAttribute(Ir), N.current = !1;
|
|
5591
5661
|
}
|
|
5592
5662
|
});
|
|
5593
5663
|
v.useEffect(() => {
|
|
5594
5664
|
if (!l) return;
|
|
5595
|
-
function
|
|
5596
|
-
return
|
|
5665
|
+
function S() {
|
|
5666
|
+
return i.current.openEvent ? ["click", "mousedown"].includes(i.current.openEvent.type) : !1;
|
|
5597
5667
|
}
|
|
5598
|
-
function
|
|
5668
|
+
function z(A) {
|
|
5599
5669
|
if (clearTimeout(E.current), H.current = !1, d && !Ke(y.current) || g > 0 && !_t(w.current, "open"))
|
|
5600
5670
|
return;
|
|
5601
5671
|
const F = _t(w.current, "open", y.current);
|
|
5602
5672
|
F ? E.current = window.setTimeout(() => {
|
|
5603
|
-
x.current || n(!0,
|
|
5604
|
-
}, F) : n(!0,
|
|
5673
|
+
x.current || n(!0, A, "hover");
|
|
5674
|
+
}, F) : n(!0, A, "hover");
|
|
5605
5675
|
}
|
|
5606
|
-
function
|
|
5607
|
-
if (
|
|
5676
|
+
function k(A) {
|
|
5677
|
+
if (S()) return;
|
|
5608
5678
|
B.current();
|
|
5609
|
-
const F = Ee(
|
|
5610
|
-
if (clearTimeout(
|
|
5611
|
-
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), {
|
|
5612
5682
|
tree: f,
|
|
5613
|
-
x:
|
|
5614
|
-
y:
|
|
5683
|
+
x: A.clientX,
|
|
5684
|
+
y: A.clientY,
|
|
5615
5685
|
onClose() {
|
|
5616
|
-
_(), G(), U(
|
|
5686
|
+
_(), G(), U(A, !0, "safe-polygon");
|
|
5617
5687
|
}
|
|
5618
5688
|
}));
|
|
5619
|
-
const
|
|
5620
|
-
F.addEventListener("mousemove",
|
|
5621
|
-
F.removeEventListener("mousemove",
|
|
5689
|
+
const Le = T.current;
|
|
5690
|
+
F.addEventListener("mousemove", Le), B.current = () => {
|
|
5691
|
+
F.removeEventListener("mousemove", Le);
|
|
5622
5692
|
};
|
|
5623
5693
|
return;
|
|
5624
5694
|
}
|
|
5625
|
-
(y.current === "touch" ? !Ie(
|
|
5695
|
+
(y.current === "touch" ? !Ie(o.floating, A.relatedTarget) : !0) && U(A);
|
|
5626
5696
|
}
|
|
5627
|
-
function M(
|
|
5628
|
-
|
|
5697
|
+
function M(A) {
|
|
5698
|
+
S() || i.current.floatingContext && (h.current == null || h.current(V(L({}, i.current.floatingContext), {
|
|
5629
5699
|
tree: f,
|
|
5630
|
-
x:
|
|
5631
|
-
y:
|
|
5700
|
+
x: A.clientX,
|
|
5701
|
+
y: A.clientY,
|
|
5632
5702
|
onClose() {
|
|
5633
|
-
_(), G(), U(
|
|
5703
|
+
_(), G(), U(A);
|
|
5634
5704
|
}
|
|
5635
|
-
}))(
|
|
5705
|
+
}))(A));
|
|
5636
5706
|
}
|
|
5637
|
-
if (X(
|
|
5707
|
+
if (X(o.domReference)) {
|
|
5638
5708
|
var $;
|
|
5639
|
-
const
|
|
5640
|
-
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, {
|
|
5641
5711
|
once: !0
|
|
5642
|
-
}),
|
|
5712
|
+
}), A.addEventListener("mouseenter", z), A.addEventListener("mouseleave", k), () => {
|
|
5643
5713
|
var F;
|
|
5644
|
-
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);
|
|
5645
5715
|
};
|
|
5646
5716
|
}
|
|
5647
|
-
}, [
|
|
5648
|
-
var
|
|
5649
|
-
if (l && r && (
|
|
5650
|
-
const
|
|
5651
|
-
|
|
5652
|
-
const M =
|
|
5653
|
-
if (X(
|
|
5654
|
-
var
|
|
5655
|
-
const $ =
|
|
5656
|
-
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", () => {
|
|
5657
5727
|
$.style.pointerEvents = "", M.style.pointerEvents = "";
|
|
5658
5728
|
};
|
|
5659
5729
|
}
|
|
5660
5730
|
}
|
|
5661
|
-
}, [l, r, m,
|
|
5731
|
+
}, [l, r, m, o, f, h, J]), fe(() => {
|
|
5662
5732
|
r || (y.current = void 0, G(), _());
|
|
5663
5733
|
}, [r, G, _]), v.useEffect(() => () => {
|
|
5664
|
-
G(), clearTimeout(E.current), clearTimeout(
|
|
5665
|
-
}, [l,
|
|
5734
|
+
G(), clearTimeout(E.current), clearTimeout(P.current), _();
|
|
5735
|
+
}, [l, o.domReference, G, _]);
|
|
5666
5736
|
const q = v.useMemo(() => {
|
|
5667
|
-
function
|
|
5668
|
-
y.current =
|
|
5737
|
+
function S(z) {
|
|
5738
|
+
y.current = z.pointerType;
|
|
5669
5739
|
}
|
|
5670
5740
|
return {
|
|
5671
|
-
onPointerDown:
|
|
5672
|
-
onPointerEnter:
|
|
5673
|
-
onMouseMove(
|
|
5741
|
+
onPointerDown: S,
|
|
5742
|
+
onPointerEnter: S,
|
|
5743
|
+
onMouseMove(z) {
|
|
5674
5744
|
const {
|
|
5675
|
-
nativeEvent:
|
|
5676
|
-
} =
|
|
5745
|
+
nativeEvent: k
|
|
5746
|
+
} = z;
|
|
5677
5747
|
function M() {
|
|
5678
|
-
!H.current && !x.current && n(!0,
|
|
5748
|
+
!H.current && !x.current && n(!0, k, "hover");
|
|
5679
5749
|
}
|
|
5680
|
-
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));
|
|
5681
5751
|
}
|
|
5682
5752
|
};
|
|
5683
|
-
}, [d, n, r, x, g]),
|
|
5753
|
+
}, [d, n, r, x, g]), W = v.useMemo(() => ({
|
|
5684
5754
|
onMouseEnter() {
|
|
5685
5755
|
clearTimeout(E.current);
|
|
5686
5756
|
},
|
|
5687
|
-
onMouseLeave(
|
|
5688
|
-
U(
|
|
5757
|
+
onMouseLeave(S) {
|
|
5758
|
+
U(S.nativeEvent, !1);
|
|
5689
5759
|
}
|
|
5690
5760
|
}), [U]);
|
|
5691
5761
|
return v.useMemo(() => l ? {
|
|
5692
5762
|
reference: q,
|
|
5693
|
-
floating:
|
|
5694
|
-
} : {}, [l, q,
|
|
5763
|
+
floating: W
|
|
5764
|
+
} : {}, [l, q, W]);
|
|
5695
5765
|
}
|
|
5696
|
-
function
|
|
5697
|
-
let r = e.filter((
|
|
5766
|
+
function Wt(e, t) {
|
|
5767
|
+
let r = e.filter((i) => {
|
|
5698
5768
|
var a;
|
|
5699
|
-
return
|
|
5769
|
+
return i.parentId === t && ((a = i.context) == null ? void 0 : a.open);
|
|
5700
5770
|
}), n = r;
|
|
5701
5771
|
for (; n.length; )
|
|
5702
|
-
n = e.filter((
|
|
5772
|
+
n = e.filter((i) => {
|
|
5703
5773
|
var a;
|
|
5704
|
-
return (a = n) == null ? void 0 : a.some((
|
|
5774
|
+
return (a = n) == null ? void 0 : a.some((o) => {
|
|
5705
5775
|
var l;
|
|
5706
|
-
return
|
|
5776
|
+
return i.parentId === o.id && ((l = i.context) == null ? void 0 : l.open);
|
|
5707
5777
|
});
|
|
5708
5778
|
}), r = r.concat(n);
|
|
5709
5779
|
return r;
|
|
5710
5780
|
}
|
|
5711
|
-
const
|
|
5781
|
+
const Ln = () => ({
|
|
5712
5782
|
getShadowRoot: !0,
|
|
5713
5783
|
displayCheck: (
|
|
5714
5784
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -5717,28 +5787,28 @@ const Pn = () => ({
|
|
|
5717
5787
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
5718
5788
|
)
|
|
5719
5789
|
});
|
|
5720
|
-
function
|
|
5721
|
-
const r = wn(e,
|
|
5790
|
+
function Pn(e, t) {
|
|
5791
|
+
const r = wn(e, Ln());
|
|
5722
5792
|
t === "prev" && r.reverse();
|
|
5723
5793
|
const n = r.indexOf(Vt(Ee(e)));
|
|
5724
5794
|
return r.slice(n + 1)[0];
|
|
5725
5795
|
}
|
|
5726
5796
|
function Ca() {
|
|
5727
|
-
return
|
|
5797
|
+
return Pn(document.body, "next");
|
|
5728
5798
|
}
|
|
5729
|
-
function
|
|
5730
|
-
return
|
|
5799
|
+
function za() {
|
|
5800
|
+
return Pn(document.body, "prev");
|
|
5731
5801
|
}
|
|
5732
|
-
function
|
|
5802
|
+
function At(e, t) {
|
|
5733
5803
|
const r = t || e.currentTarget, n = e.relatedTarget;
|
|
5734
5804
|
return !n || !Ie(r, n);
|
|
5735
5805
|
}
|
|
5736
|
-
function
|
|
5737
|
-
wn(e,
|
|
5806
|
+
function ka(e) {
|
|
5807
|
+
wn(e, Ln()).forEach((r) => {
|
|
5738
5808
|
r.dataset.tabindex = r.getAttribute("tabindex") || "", r.setAttribute("tabindex", "-1");
|
|
5739
5809
|
});
|
|
5740
5810
|
}
|
|
5741
|
-
function
|
|
5811
|
+
function La(e) {
|
|
5742
5812
|
e.querySelectorAll("[data-tabindex]").forEach((r) => {
|
|
5743
5813
|
const n = r.dataset.tabindex;
|
|
5744
5814
|
delete r.dataset.tabindex, n ? r.setAttribute("tabindex", n) : r.removeAttribute("tabindex");
|
|
@@ -5757,13 +5827,13 @@ const Mn = {
|
|
|
5757
5827
|
top: 0,
|
|
5758
5828
|
left: 0
|
|
5759
5829
|
};
|
|
5760
|
-
let
|
|
5830
|
+
let Pa;
|
|
5761
5831
|
function Br(e) {
|
|
5762
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
5832
|
+
e.key === "Tab" && (e.target, clearTimeout(Pa));
|
|
5763
5833
|
}
|
|
5764
5834
|
const Dr = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
5765
|
-
const [n,
|
|
5766
|
-
fe(() => (fn() &&
|
|
5835
|
+
const [n, i] = v.useState();
|
|
5836
|
+
fe(() => (fn() && i("button"), document.addEventListener("keydown", Br), () => {
|
|
5767
5837
|
document.removeEventListener("keydown", Br);
|
|
5768
5838
|
}), []);
|
|
5769
5839
|
const a = {
|
|
@@ -5782,7 +5852,7 @@ function Ma(e) {
|
|
|
5782
5852
|
const {
|
|
5783
5853
|
id: t,
|
|
5784
5854
|
root: r
|
|
5785
|
-
} = e, n = tr(),
|
|
5855
|
+
} = e, n = tr(), i = _a(), [a, o] = v.useState(null), l = v.useRef(null);
|
|
5786
5856
|
return fe(() => () => {
|
|
5787
5857
|
a == null || a.remove(), queueMicrotask(() => {
|
|
5788
5858
|
l.current = null;
|
|
@@ -5792,61 +5862,61 @@ function Ma(e) {
|
|
|
5792
5862
|
const c = t ? document.getElementById(t) : null;
|
|
5793
5863
|
if (!c) return;
|
|
5794
5864
|
const u = document.createElement("div");
|
|
5795
|
-
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);
|
|
5796
5866
|
}, [t, n]), fe(() => {
|
|
5797
5867
|
if (!n || l.current) return;
|
|
5798
|
-
let c = r || (
|
|
5868
|
+
let c = r || (i == null ? void 0 : i.portalNode);
|
|
5799
5869
|
c && !X(c) && (c = c.current), c = c || document.body;
|
|
5800
5870
|
let u = null;
|
|
5801
5871
|
t && (u = document.createElement("div"), u.id = t, c.appendChild(u));
|
|
5802
5872
|
const d = document.createElement("div");
|
|
5803
|
-
d.id = n, d.setAttribute(Nr, ""), c = u || c, c.appendChild(d), l.current = d,
|
|
5804
|
-
}, [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;
|
|
5805
5875
|
}
|
|
5806
5876
|
function Ha(e) {
|
|
5807
5877
|
const {
|
|
5808
5878
|
children: t,
|
|
5809
5879
|
id: r,
|
|
5810
5880
|
root: n = null,
|
|
5811
|
-
preserveTabOrder:
|
|
5881
|
+
preserveTabOrder: i = !0
|
|
5812
5882
|
} = e, a = Ma({
|
|
5813
5883
|
id: r,
|
|
5814
5884
|
root: n
|
|
5815
|
-
}), [
|
|
5885
|
+
}), [o, l] = v.useState(null), c = v.useRef(null), u = v.useRef(null), d = v.useRef(null), g = v.useRef(null), p = (
|
|
5816
5886
|
// The FocusManager and therefore floating element are currently open/
|
|
5817
5887
|
// rendered.
|
|
5818
|
-
!!
|
|
5819
|
-
!
|
|
5820
|
-
|
|
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)
|
|
5821
5891
|
);
|
|
5822
5892
|
return v.useEffect(() => {
|
|
5823
|
-
if (!a || !
|
|
5893
|
+
if (!a || !i || o != null && o.modal)
|
|
5824
5894
|
return;
|
|
5825
5895
|
function f(m) {
|
|
5826
|
-
a &&
|
|
5896
|
+
a && At(m) && (m.type === "focusin" ? La : ka)(a);
|
|
5827
5897
|
}
|
|
5828
5898
|
return a.addEventListener("focusin", f, !0), a.addEventListener("focusout", f, !0), () => {
|
|
5829
5899
|
a.removeEventListener("focusin", f, !0), a.removeEventListener("focusout", f, !0);
|
|
5830
5900
|
};
|
|
5831
|
-
}, [a,
|
|
5901
|
+
}, [a, i, o == null ? void 0 : o.modal]), /* @__PURE__ */ v.createElement(Hn.Provider, {
|
|
5832
5902
|
value: v.useMemo(() => ({
|
|
5833
|
-
preserveTabOrder:
|
|
5903
|
+
preserveTabOrder: i,
|
|
5834
5904
|
beforeOutsideRef: c,
|
|
5835
5905
|
afterOutsideRef: u,
|
|
5836
5906
|
beforeInsideRef: d,
|
|
5837
5907
|
afterInsideRef: g,
|
|
5838
5908
|
portalNode: a,
|
|
5839
5909
|
setFocusManagerState: l
|
|
5840
|
-
}), [
|
|
5910
|
+
}), [i, a])
|
|
5841
5911
|
}, p && a && /* @__PURE__ */ v.createElement(Dr, {
|
|
5842
5912
|
"data-type": "outside",
|
|
5843
5913
|
ref: c,
|
|
5844
5914
|
onFocus: (f) => {
|
|
5845
|
-
if (
|
|
5915
|
+
if (At(f, a)) {
|
|
5846
5916
|
var m;
|
|
5847
5917
|
(m = d.current) == null || m.focus();
|
|
5848
5918
|
} else {
|
|
5849
|
-
const h =
|
|
5919
|
+
const h = za() || (o == null ? void 0 : o.refs.domReference.current);
|
|
5850
5920
|
h == null || h.focus();
|
|
5851
5921
|
}
|
|
5852
5922
|
}
|
|
@@ -5857,12 +5927,12 @@ function Ha(e) {
|
|
|
5857
5927
|
"data-type": "outside",
|
|
5858
5928
|
ref: u,
|
|
5859
5929
|
onFocus: (f) => {
|
|
5860
|
-
if (
|
|
5930
|
+
if (At(f, a)) {
|
|
5861
5931
|
var m;
|
|
5862
5932
|
(m = g.current) == null || m.focus();
|
|
5863
5933
|
} else {
|
|
5864
|
-
const h = Ca() || (
|
|
5865
|
-
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));
|
|
5866
5936
|
}
|
|
5867
5937
|
}
|
|
5868
5938
|
}));
|
|
@@ -5874,17 +5944,17 @@ function $r(e) {
|
|
|
5874
5944
|
function Vr(e) {
|
|
5875
5945
|
return gn(e);
|
|
5876
5946
|
}
|
|
5877
|
-
function
|
|
5947
|
+
function Wa(e, t) {
|
|
5878
5948
|
t === void 0 && (t = {});
|
|
5879
5949
|
const {
|
|
5880
5950
|
open: r,
|
|
5881
5951
|
onOpenChange: n,
|
|
5882
|
-
dataRef:
|
|
5952
|
+
dataRef: i,
|
|
5883
5953
|
elements: {
|
|
5884
5954
|
domReference: a
|
|
5885
5955
|
}
|
|
5886
5956
|
} = e, {
|
|
5887
|
-
enabled:
|
|
5957
|
+
enabled: o = !0,
|
|
5888
5958
|
event: l = "click",
|
|
5889
5959
|
toggle: c = !0,
|
|
5890
5960
|
ignoreMouse: u = !1,
|
|
@@ -5895,7 +5965,7 @@ function Aa(e, t) {
|
|
|
5895
5965
|
},
|
|
5896
5966
|
onMouseDown(m) {
|
|
5897
5967
|
const h = g.current;
|
|
5898
|
-
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"))));
|
|
5899
5969
|
},
|
|
5900
5970
|
onClick(m) {
|
|
5901
5971
|
const h = g.current;
|
|
@@ -5903,7 +5973,7 @@ function Aa(e, t) {
|
|
|
5903
5973
|
g.current = void 0;
|
|
5904
5974
|
return;
|
|
5905
5975
|
}
|
|
5906
|
-
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"));
|
|
5907
5977
|
},
|
|
5908
5978
|
onKeyDown(m) {
|
|
5909
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"));
|
|
@@ -5911,12 +5981,12 @@ function Aa(e, t) {
|
|
|
5911
5981
|
onKeyUp(m) {
|
|
5912
5982
|
m.defaultPrevented || !d || $r(m) || Vr(a) || m.key === " " && p.current && (p.current = !1, n(!(r && c), m.nativeEvent, "click"));
|
|
5913
5983
|
}
|
|
5914
|
-
}), [
|
|
5915
|
-
return v.useMemo(() =>
|
|
5984
|
+
}), [i, a, l, u, d, n, r, c]);
|
|
5985
|
+
return v.useMemo(() => o ? {
|
|
5916
5986
|
reference: f
|
|
5917
|
-
} : {}, [
|
|
5987
|
+
} : {}, [o, f]);
|
|
5918
5988
|
}
|
|
5919
|
-
const
|
|
5989
|
+
const Aa = {
|
|
5920
5990
|
pointerdown: "onPointerDown",
|
|
5921
5991
|
mousedown: "onMouseDown",
|
|
5922
5992
|
click: "onClick"
|
|
@@ -5936,10 +6006,10 @@ function ja(e, t) {
|
|
|
5936
6006
|
const {
|
|
5937
6007
|
open: r,
|
|
5938
6008
|
onOpenChange: n,
|
|
5939
|
-
elements:
|
|
6009
|
+
elements: i,
|
|
5940
6010
|
dataRef: a
|
|
5941
6011
|
} = e, {
|
|
5942
|
-
enabled:
|
|
6012
|
+
enabled: o = !0,
|
|
5943
6013
|
escapeKey: l = !0,
|
|
5944
6014
|
outsidePress: c = !0,
|
|
5945
6015
|
outsidePressEvent: u = "pointerdown",
|
|
@@ -5949,43 +6019,43 @@ function ja(e, t) {
|
|
|
5949
6019
|
bubbles: f,
|
|
5950
6020
|
capture: m
|
|
5951
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), {
|
|
5952
|
-
escapeKey:
|
|
5953
|
-
outsidePress:
|
|
6022
|
+
escapeKey: T,
|
|
6023
|
+
outsidePress: P
|
|
5954
6024
|
} = Gr(f), {
|
|
5955
6025
|
escapeKey: H,
|
|
5956
6026
|
outsidePress: N
|
|
5957
|
-
} = Gr(m), B = Re((
|
|
5958
|
-
var
|
|
5959
|
-
if (!r || !
|
|
6027
|
+
} = Gr(m), B = Re((W) => {
|
|
6028
|
+
var S;
|
|
6029
|
+
if (!r || !o || !l || W.key !== "Escape")
|
|
5960
6030
|
return;
|
|
5961
|
-
const
|
|
5962
|
-
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)) {
|
|
5963
6033
|
let M = !0;
|
|
5964
|
-
if (
|
|
5965
|
-
var
|
|
5966
|
-
if ((
|
|
6034
|
+
if (k.forEach(($) => {
|
|
6035
|
+
var A;
|
|
6036
|
+
if ((A = $.context) != null && A.open && !$.context.dataRef.current.__escapeKeyBubbles) {
|
|
5967
6037
|
M = !1;
|
|
5968
6038
|
return;
|
|
5969
6039
|
}
|
|
5970
6040
|
}), !M)
|
|
5971
6041
|
return;
|
|
5972
6042
|
}
|
|
5973
|
-
n(!1,
|
|
5974
|
-
}), J = Re((
|
|
5975
|
-
var
|
|
5976
|
-
const
|
|
5977
|
-
var
|
|
5978
|
-
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);
|
|
5979
6049
|
};
|
|
5980
|
-
(
|
|
5981
|
-
}), U = Re((
|
|
5982
|
-
var
|
|
5983
|
-
const
|
|
6050
|
+
(S = Ae(W)) == null || S.addEventListener("keydown", z);
|
|
6051
|
+
}), U = Re((W) => {
|
|
6052
|
+
var S;
|
|
6053
|
+
const z = y.current;
|
|
5984
6054
|
y.current = !1;
|
|
5985
|
-
const
|
|
5986
|
-
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))
|
|
5987
6057
|
return;
|
|
5988
|
-
const M =
|
|
6058
|
+
const M = Ae(W), $ = "[" + tt("inert") + "]", A = Ee(i.floating).querySelectorAll($);
|
|
5989
6059
|
let F = X(M) ? M : null;
|
|
5990
6060
|
for (; F && !Ce(F); ) {
|
|
5991
6061
|
const re = ve(F);
|
|
@@ -5993,24 +6063,24 @@ function ja(e, t) {
|
|
|
5993
6063
|
break;
|
|
5994
6064
|
F = re;
|
|
5995
6065
|
}
|
|
5996
|
-
if (
|
|
5997
|
-
!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
|
|
5998
6068
|
// element was injected after the floating element rendered.
|
|
5999
|
-
Array.from(
|
|
6069
|
+
Array.from(A).every((re) => !Ie(F, re)))
|
|
6000
6070
|
return;
|
|
6001
6071
|
if (ae(M) && q) {
|
|
6002
6072
|
const re = M.clientWidth > 0 && M.scrollWidth > M.clientWidth, se = M.clientHeight > 0 && M.scrollHeight > M.clientHeight;
|
|
6003
|
-
let ge = se &&
|
|
6004
|
-
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)
|
|
6005
6075
|
return;
|
|
6006
6076
|
}
|
|
6007
|
-
const xe = (
|
|
6077
|
+
const xe = (S = a.current.floatingContext) == null ? void 0 : S.nodeId, Le = h && Wt(h.nodesRef.current, xe).some((re) => {
|
|
6008
6078
|
var se;
|
|
6009
|
-
return
|
|
6079
|
+
return Pt(W, (se = re.context) == null ? void 0 : se.elements.floating);
|
|
6010
6080
|
});
|
|
6011
|
-
if (
|
|
6081
|
+
if (Pt(W, i.floating) || Pt(W, i.domReference) || Le)
|
|
6012
6082
|
return;
|
|
6013
|
-
const rt = h ?
|
|
6083
|
+
const rt = h ? Wt(h.nodesRef.current, xe) : [];
|
|
6014
6084
|
if (rt.length > 0) {
|
|
6015
6085
|
let re = !0;
|
|
6016
6086
|
if (rt.forEach((se) => {
|
|
@@ -6022,44 +6092,44 @@ function ja(e, t) {
|
|
|
6022
6092
|
}), !re)
|
|
6023
6093
|
return;
|
|
6024
6094
|
}
|
|
6025
|
-
n(!1,
|
|
6026
|
-
}), G = Re((
|
|
6027
|
-
var
|
|
6028
|
-
const
|
|
6029
|
-
var
|
|
6030
|
-
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);
|
|
6031
6101
|
};
|
|
6032
|
-
(
|
|
6102
|
+
(S = Ae(W)) == null || S.addEventListener(u, z);
|
|
6033
6103
|
});
|
|
6034
6104
|
v.useEffect(() => {
|
|
6035
|
-
if (!r || !
|
|
6105
|
+
if (!r || !o)
|
|
6036
6106
|
return;
|
|
6037
|
-
a.current.__escapeKeyBubbles =
|
|
6038
|
-
function
|
|
6039
|
-
n(!1,
|
|
6040
|
-
}
|
|
6041
|
-
const
|
|
6042
|
-
l &&
|
|
6043
|
-
let
|
|
6044
|
-
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) => {
|
|
6045
6115
|
var M;
|
|
6046
|
-
return
|
|
6047
|
-
}),
|
|
6048
|
-
|
|
6116
|
+
return k !== ((M = S.defaultView) == null ? void 0 : M.visualViewport);
|
|
6117
|
+
}), z.forEach((k) => {
|
|
6118
|
+
k.addEventListener("scroll", W, {
|
|
6049
6119
|
passive: !0
|
|
6050
6120
|
});
|
|
6051
6121
|
}), () => {
|
|
6052
|
-
l &&
|
|
6053
|
-
|
|
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);
|
|
6054
6124
|
});
|
|
6055
6125
|
};
|
|
6056
|
-
}, [a,
|
|
6126
|
+
}, [a, i, l, x, u, r, n, p, o, T, P, B, H, J, U, N, G]), v.useEffect(() => {
|
|
6057
6127
|
y.current = !1;
|
|
6058
6128
|
}, [x, u]);
|
|
6059
6129
|
const _ = v.useMemo(() => ({
|
|
6060
6130
|
onKeyDown: B,
|
|
6061
|
-
[
|
|
6062
|
-
d && n(!1,
|
|
6131
|
+
[Aa[g]]: (W) => {
|
|
6132
|
+
d && n(!1, W.nativeEvent, "reference-press");
|
|
6063
6133
|
}
|
|
6064
6134
|
}), [B, n, d, g]), q = v.useMemo(() => ({
|
|
6065
6135
|
onKeyDown: B,
|
|
@@ -6073,23 +6143,23 @@ function ja(e, t) {
|
|
|
6073
6143
|
y.current = !0;
|
|
6074
6144
|
}
|
|
6075
6145
|
}), [B, u]);
|
|
6076
|
-
return v.useMemo(() =>
|
|
6146
|
+
return v.useMemo(() => o ? {
|
|
6077
6147
|
reference: _,
|
|
6078
6148
|
floating: q
|
|
6079
|
-
} : {}, [
|
|
6149
|
+
} : {}, [o, _, q]);
|
|
6080
6150
|
}
|
|
6081
6151
|
function Fa(e) {
|
|
6082
6152
|
const {
|
|
6083
6153
|
open: t = !1,
|
|
6084
6154
|
onOpenChange: r,
|
|
6085
6155
|
elements: n
|
|
6086
|
-
} = e,
|
|
6156
|
+
} = e, i = tr(), a = v.useRef({}), [o] = v.useState(() => Ea()), l = rr() != null;
|
|
6087
6157
|
if (process.env.NODE_ENV !== "production") {
|
|
6088
6158
|
const f = n.reference;
|
|
6089
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.");
|
|
6090
6160
|
}
|
|
6091
6161
|
const [c, u] = v.useState(n.reference), d = Re((f, m, h) => {
|
|
6092
|
-
a.current.openEvent = f ? m : void 0,
|
|
6162
|
+
a.current.openEvent = f ? m : void 0, o.emit("openchange", {
|
|
6093
6163
|
open: f,
|
|
6094
6164
|
event: m,
|
|
6095
6165
|
reason: h,
|
|
@@ -6107,55 +6177,55 @@ function Fa(e) {
|
|
|
6107
6177
|
open: t,
|
|
6108
6178
|
onOpenChange: d,
|
|
6109
6179
|
elements: p,
|
|
6110
|
-
events:
|
|
6111
|
-
floatingId:
|
|
6180
|
+
events: o,
|
|
6181
|
+
floatingId: i,
|
|
6112
6182
|
refs: g
|
|
6113
|
-
}), [t, d, p,
|
|
6183
|
+
}), [t, d, p, o, i, g]);
|
|
6114
6184
|
}
|
|
6115
6185
|
function Ia(e) {
|
|
6116
6186
|
e === void 0 && (e = {});
|
|
6117
6187
|
const {
|
|
6118
6188
|
nodeId: t
|
|
6119
|
-
} = e, r = Fa(V(
|
|
6120
|
-
elements:
|
|
6189
|
+
} = e, r = Fa(V(L({}, e), {
|
|
6190
|
+
elements: L({
|
|
6121
6191
|
reference: null,
|
|
6122
6192
|
floating: null
|
|
6123
6193
|
}, e.elements)
|
|
6124
|
-
})), 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();
|
|
6125
6195
|
fe(() => {
|
|
6126
6196
|
d && (g.current = d);
|
|
6127
6197
|
}, [d]);
|
|
6128
|
-
const f = fa(V(
|
|
6129
|
-
elements:
|
|
6198
|
+
const f = fa(V(L({}, e), {
|
|
6199
|
+
elements: L(L({}, i), l && {
|
|
6130
6200
|
reference: l
|
|
6131
6201
|
})
|
|
6132
6202
|
})), m = v.useCallback((E) => {
|
|
6133
|
-
const
|
|
6203
|
+
const T = X(E) ? {
|
|
6134
6204
|
getBoundingClientRect: () => E.getBoundingClientRect(),
|
|
6135
6205
|
contextElement: E
|
|
6136
6206
|
} : E;
|
|
6137
|
-
c(
|
|
6207
|
+
c(T), f.refs.setReference(T);
|
|
6138
6208
|
}, [f.refs]), h = v.useCallback((E) => {
|
|
6139
|
-
(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
|
|
6140
6210
|
// `null` to support `positionReference` + an unstable `reference`
|
|
6141
6211
|
// callback ref.
|
|
6142
6212
|
E !== null && !X(E)) && f.refs.setReference(E);
|
|
6143
|
-
}, [f.refs]), w = v.useMemo(() => V(
|
|
6213
|
+
}, [f.refs]), w = v.useMemo(() => V(L({}, f.refs), {
|
|
6144
6214
|
setReference: h,
|
|
6145
6215
|
setPositionReference: m,
|
|
6146
6216
|
domReference: g
|
|
6147
|
-
}), [f.refs, h, m]), x = v.useMemo(() => V(
|
|
6217
|
+
}), [f.refs, h, m]), x = v.useMemo(() => V(L({}, f.elements), {
|
|
6148
6218
|
domReference: d
|
|
6149
|
-
}), [f.elements, d]), y = v.useMemo(() => V(
|
|
6219
|
+
}), [f.elements, d]), y = v.useMemo(() => V(L(L({}, f), n), {
|
|
6150
6220
|
refs: w,
|
|
6151
6221
|
elements: x,
|
|
6152
6222
|
nodeId: t
|
|
6153
6223
|
}), [f, w, x, t, n]);
|
|
6154
6224
|
return fe(() => {
|
|
6155
6225
|
n.dataRef.current.floatingContext = y;
|
|
6156
|
-
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);
|
|
6157
6227
|
E && (E.context = y);
|
|
6158
|
-
}), v.useMemo(() => V(
|
|
6228
|
+
}), v.useMemo(() => V(L({}, f), {
|
|
6159
6229
|
context: y,
|
|
6160
6230
|
refs: w,
|
|
6161
6231
|
elements: x
|
|
@@ -6166,18 +6236,18 @@ function Ba(e, t) {
|
|
|
6166
6236
|
const {
|
|
6167
6237
|
open: r,
|
|
6168
6238
|
onOpenChange: n,
|
|
6169
|
-
events:
|
|
6239
|
+
events: i,
|
|
6170
6240
|
dataRef: a,
|
|
6171
|
-
elements:
|
|
6241
|
+
elements: o
|
|
6172
6242
|
} = e, {
|
|
6173
6243
|
enabled: l = !0,
|
|
6174
6244
|
visibleOnly: c = !0
|
|
6175
6245
|
} = t, u = v.useRef(!1), d = v.useRef(), g = v.useRef(!0);
|
|
6176
6246
|
v.useEffect(() => {
|
|
6177
6247
|
if (!l) return;
|
|
6178
|
-
const f =
|
|
6248
|
+
const f = oe(o.domReference);
|
|
6179
6249
|
function m() {
|
|
6180
|
-
!r && ae(
|
|
6250
|
+
!r && ae(o.domReference) && o.domReference === Vt(Ee(o.domReference)) && (u.current = !0);
|
|
6181
6251
|
}
|
|
6182
6252
|
function h() {
|
|
6183
6253
|
g.current = !0;
|
|
@@ -6185,7 +6255,7 @@ function Ba(e, t) {
|
|
|
6185
6255
|
return f.addEventListener("blur", m), f.addEventListener("keydown", h, !0), () => {
|
|
6186
6256
|
f.removeEventListener("blur", m), f.removeEventListener("keydown", h, !0);
|
|
6187
6257
|
};
|
|
6188
|
-
}, [
|
|
6258
|
+
}, [o.domReference, r, l]), v.useEffect(() => {
|
|
6189
6259
|
if (!l) return;
|
|
6190
6260
|
function f(m) {
|
|
6191
6261
|
let {
|
|
@@ -6193,25 +6263,25 @@ function Ba(e, t) {
|
|
|
6193
6263
|
} = m;
|
|
6194
6264
|
(h === "reference-press" || h === "escape-key") && (u.current = !0);
|
|
6195
6265
|
}
|
|
6196
|
-
return
|
|
6197
|
-
|
|
6266
|
+
return i.on("openchange", f), () => {
|
|
6267
|
+
i.off("openchange", f);
|
|
6198
6268
|
};
|
|
6199
|
-
}, [
|
|
6269
|
+
}, [i, l]), v.useEffect(() => () => {
|
|
6200
6270
|
clearTimeout(d.current);
|
|
6201
6271
|
}, []);
|
|
6202
6272
|
const p = v.useMemo(() => ({
|
|
6203
6273
|
onPointerDown(f) {
|
|
6204
|
-
|
|
6274
|
+
ao(f.nativeEvent) || (g.current = !1);
|
|
6205
6275
|
},
|
|
6206
6276
|
onMouseLeave() {
|
|
6207
6277
|
u.current = !1;
|
|
6208
6278
|
},
|
|
6209
6279
|
onFocus(f) {
|
|
6210
6280
|
if (u.current) return;
|
|
6211
|
-
const m =
|
|
6281
|
+
const m = Ae(f.nativeEvent);
|
|
6212
6282
|
if (c && X(m))
|
|
6213
6283
|
try {
|
|
6214
|
-
if (fn() &&
|
|
6284
|
+
if (fn() && lo()) throw Error();
|
|
6215
6285
|
if (!m.matches(":focus-visible")) return;
|
|
6216
6286
|
} catch (h) {
|
|
6217
6287
|
if (!g.current && !gn(m))
|
|
@@ -6224,37 +6294,37 @@ function Ba(e, t) {
|
|
|
6224
6294
|
const m = f.relatedTarget, h = f.nativeEvent, w = X(m) && m.hasAttribute(tt("focus-guard")) && m.getAttribute("data-type") === "outside";
|
|
6225
6295
|
d.current = window.setTimeout(() => {
|
|
6226
6296
|
var x;
|
|
6227
|
-
const y = Vt(
|
|
6228
|
-
!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");
|
|
6229
6299
|
});
|
|
6230
6300
|
}
|
|
6231
|
-
}), [a,
|
|
6301
|
+
}), [a, o.domReference, n, c]);
|
|
6232
6302
|
return v.useMemo(() => l ? {
|
|
6233
6303
|
reference: p
|
|
6234
6304
|
} : {}, [l, p]);
|
|
6235
6305
|
}
|
|
6236
6306
|
const Ot = "active", jt = "selected";
|
|
6237
6307
|
function Ft(e, t, r) {
|
|
6238
|
-
const n = /* @__PURE__ */ new Map(),
|
|
6308
|
+
const n = /* @__PURE__ */ new Map(), i = r === "item";
|
|
6239
6309
|
let a = e;
|
|
6240
|
-
if (
|
|
6241
|
-
const
|
|
6310
|
+
if (i && e) {
|
|
6311
|
+
const o = e, {
|
|
6242
6312
|
[Ot]: l,
|
|
6243
6313
|
[jt]: c
|
|
6244
|
-
} =
|
|
6245
|
-
a = me(
|
|
6246
|
-
|
|
6247
|
-
|
|
6314
|
+
} = o;
|
|
6315
|
+
a = me(o, [
|
|
6316
|
+
zt(Ot),
|
|
6317
|
+
zt(jt)
|
|
6248
6318
|
]);
|
|
6249
6319
|
}
|
|
6250
|
-
return
|
|
6320
|
+
return L(L(L({}, r === "floating" && {
|
|
6251
6321
|
tabIndex: -1
|
|
6252
6322
|
}), a), t.map((l) => {
|
|
6253
6323
|
const c = l ? l[r] : null;
|
|
6254
6324
|
return typeof c == "function" ? e ? c(e) : null : c;
|
|
6255
6325
|
}).concat(e).reduce((l, c) => (c && Object.entries(c).forEach((u) => {
|
|
6256
6326
|
let [d, g] = u;
|
|
6257
|
-
if (!(
|
|
6327
|
+
if (!(i && [Ot, jt].includes(d)))
|
|
6258
6328
|
if (d.indexOf("on") === 0) {
|
|
6259
6329
|
if (n.has(d) || n.set(d, []), typeof g == "function") {
|
|
6260
6330
|
var p;
|
|
@@ -6270,7 +6340,7 @@ function Ft(e, t, r) {
|
|
|
6270
6340
|
}
|
|
6271
6341
|
function Da(e) {
|
|
6272
6342
|
e === void 0 && (e = []);
|
|
6273
|
-
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(
|
|
6274
6344
|
(l) => Ft(l, e, "reference"),
|
|
6275
6345
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6276
6346
|
t
|
|
@@ -6278,16 +6348,16 @@ function Da(e) {
|
|
|
6278
6348
|
(l) => Ft(l, e, "floating"),
|
|
6279
6349
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6280
6350
|
r
|
|
6281
|
-
),
|
|
6351
|
+
), o = v.useCallback(
|
|
6282
6352
|
(l) => Ft(l, e, "item"),
|
|
6283
6353
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6284
6354
|
n
|
|
6285
6355
|
);
|
|
6286
6356
|
return v.useMemo(() => ({
|
|
6287
|
-
getReferenceProps:
|
|
6357
|
+
getReferenceProps: i,
|
|
6288
6358
|
getFloatingProps: a,
|
|
6289
|
-
getItemProps:
|
|
6290
|
-
}), [
|
|
6359
|
+
getItemProps: o
|
|
6360
|
+
}), [i, a, o]);
|
|
6291
6361
|
}
|
|
6292
6362
|
const Na = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
6293
6363
|
function $a(e, t) {
|
|
@@ -6295,57 +6365,57 @@ function $a(e, t) {
|
|
|
6295
6365
|
t === void 0 && (t = {});
|
|
6296
6366
|
const {
|
|
6297
6367
|
open: n,
|
|
6298
|
-
floatingId:
|
|
6368
|
+
floatingId: i
|
|
6299
6369
|
} = e, {
|
|
6300
6370
|
enabled: a = !0,
|
|
6301
|
-
role:
|
|
6302
|
-
} = t, l = (r = Na.get(
|
|
6303
|
-
["aria-" + (
|
|
6304
|
-
} :
|
|
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({
|
|
6305
6375
|
"aria-expanded": n ? "true" : "false",
|
|
6306
6376
|
"aria-haspopup": l === "alertdialog" ? "dialog" : l,
|
|
6307
|
-
"aria-controls": n ?
|
|
6377
|
+
"aria-controls": n ? i : void 0
|
|
6308
6378
|
}, l === "listbox" && {
|
|
6309
6379
|
role: "combobox"
|
|
6310
6380
|
}), l === "menu" && {
|
|
6311
6381
|
id: c
|
|
6312
6382
|
}), l === "menu" && d && {
|
|
6313
6383
|
role: "menuitem"
|
|
6314
|
-
}),
|
|
6384
|
+
}), o === "select" && {
|
|
6315
6385
|
"aria-autocomplete": "none"
|
|
6316
|
-
}),
|
|
6386
|
+
}), o === "combobox" && {
|
|
6317
6387
|
"aria-autocomplete": "list"
|
|
6318
|
-
}), [l,
|
|
6319
|
-
const m =
|
|
6320
|
-
id:
|
|
6388
|
+
}), [l, i, d, n, c, o]), p = v.useMemo(() => {
|
|
6389
|
+
const m = L({
|
|
6390
|
+
id: i
|
|
6321
6391
|
}, l && {
|
|
6322
6392
|
role: l
|
|
6323
6393
|
});
|
|
6324
|
-
return l === "tooltip" ||
|
|
6394
|
+
return l === "tooltip" || o === "label" ? m : L(L({}, m), l === "menu" && {
|
|
6325
6395
|
"aria-labelledby": c
|
|
6326
6396
|
});
|
|
6327
|
-
}, [l,
|
|
6397
|
+
}, [l, i, c, o]), f = v.useCallback((m) => {
|
|
6328
6398
|
let {
|
|
6329
6399
|
active: h,
|
|
6330
6400
|
selected: w
|
|
6331
6401
|
} = m;
|
|
6332
|
-
const x =
|
|
6402
|
+
const x = L({
|
|
6333
6403
|
role: "option"
|
|
6334
6404
|
}, h && {
|
|
6335
|
-
id:
|
|
6405
|
+
id: i + "-option"
|
|
6336
6406
|
});
|
|
6337
|
-
switch (
|
|
6407
|
+
switch (o) {
|
|
6338
6408
|
case "select":
|
|
6339
|
-
return V(
|
|
6409
|
+
return V(L({}, x), {
|
|
6340
6410
|
"aria-selected": h && w
|
|
6341
6411
|
});
|
|
6342
6412
|
case "combobox":
|
|
6343
|
-
return
|
|
6413
|
+
return L(L({}, x), h && {
|
|
6344
6414
|
"aria-selected": !0
|
|
6345
6415
|
});
|
|
6346
6416
|
}
|
|
6347
6417
|
return {};
|
|
6348
|
-
}, [
|
|
6418
|
+
}, [i, o]);
|
|
6349
6419
|
return v.useMemo(() => a ? {
|
|
6350
6420
|
reference: g,
|
|
6351
6421
|
floating: p,
|
|
@@ -6362,9 +6432,9 @@ const Va = {
|
|
|
6362
6432
|
const m = e, {
|
|
6363
6433
|
show: r,
|
|
6364
6434
|
handleClose: n,
|
|
6365
|
-
animation:
|
|
6435
|
+
animation: i = "slideDown",
|
|
6366
6436
|
marginTop: a,
|
|
6367
|
-
maxWidth:
|
|
6437
|
+
maxWidth: o,
|
|
6368
6438
|
children: l,
|
|
6369
6439
|
className: c,
|
|
6370
6440
|
contentClassName: u,
|
|
@@ -6381,7 +6451,7 @@ const Va = {
|
|
|
6381
6451
|
"contentClassName",
|
|
6382
6452
|
"isDismissible",
|
|
6383
6453
|
"overlayBlur"
|
|
6384
|
-
]), f = Va[
|
|
6454
|
+
]), f = Va[i];
|
|
6385
6455
|
if (Je(() => {
|
|
6386
6456
|
const h = document.documentElement;
|
|
6387
6457
|
return r ? h.classList.add("modal-animated-open") : h.classList.remove("modal-animated-open"), () => {
|
|
@@ -6390,10 +6460,10 @@ const Va = {
|
|
|
6390
6460
|
}, [r]), r) {
|
|
6391
6461
|
const h = {
|
|
6392
6462
|
marginTop: a ? `${a}` : void 0,
|
|
6393
|
-
maxWidth:
|
|
6463
|
+
maxWidth: o ? `${o}` : void 0
|
|
6394
6464
|
}, w = /* @__PURE__ */ R.jsxs(
|
|
6395
6465
|
"div",
|
|
6396
|
-
V(
|
|
6466
|
+
V(L({
|
|
6397
6467
|
ref: t,
|
|
6398
6468
|
className: ct("modal-animated", r ? "show" : "hide", c)
|
|
6399
6469
|
}, p), {
|
|
@@ -6401,7 +6471,7 @@ const Va = {
|
|
|
6401
6471
|
/* @__PURE__ */ R.jsx(
|
|
6402
6472
|
"div",
|
|
6403
6473
|
{
|
|
6404
|
-
className:
|
|
6474
|
+
className: ie(
|
|
6405
6475
|
"modal-animated-backdrop",
|
|
6406
6476
|
// eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
|
|
6407
6477
|
g && "ds-bg-[RGBA(255,255,255,0.24)] ds-backdrop-blur-[12px]"
|
|
@@ -6414,7 +6484,7 @@ const Va = {
|
|
|
6414
6484
|
{
|
|
6415
6485
|
className: ct(
|
|
6416
6486
|
"modal-animated-content",
|
|
6417
|
-
r ?
|
|
6487
|
+
r ? i + "Open" : f + "Close",
|
|
6418
6488
|
u
|
|
6419
6489
|
),
|
|
6420
6490
|
style: h,
|
|
@@ -6426,36 +6496,36 @@ const Va = {
|
|
|
6426
6496
|
]
|
|
6427
6497
|
})
|
|
6428
6498
|
);
|
|
6429
|
-
return
|
|
6499
|
+
return vi(w, document.body);
|
|
6430
6500
|
} else
|
|
6431
6501
|
return null;
|
|
6432
6502
|
});
|
|
6433
6503
|
_n.displayName = "AnimatedModal";
|
|
6434
|
-
const
|
|
6504
|
+
const Wn = Number(
|
|
6435
6505
|
ut.theme.screens["ds-tablet"].min.replace("px", "")
|
|
6436
6506
|
), Ga = Number(
|
|
6437
6507
|
ut.theme.screens["ds-desktop"].min.replace("px", "")
|
|
6438
|
-
), Ur = (e) => e <
|
|
6439
|
-
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");
|
|
6440
6510
|
return Je(() => {
|
|
6441
6511
|
const f = () => {
|
|
6442
6512
|
t(document.documentElement.clientWidth), n(document.documentElement.clientHeight);
|
|
6443
6513
|
const m = Ur(document.documentElement.clientWidth);
|
|
6444
|
-
c(m === "mobile"), d(m === "tablet"), p(m === "desktop"),
|
|
6514
|
+
c(m === "mobile"), d(m === "tablet"), p(m === "desktop"), o(m);
|
|
6445
6515
|
};
|
|
6446
6516
|
return window.addEventListener("resize", f), f(), () => {
|
|
6447
6517
|
window.removeEventListener("resize", f);
|
|
6448
6518
|
};
|
|
6449
6519
|
}, []), { documentWidth: e, documentHeight: r, screenSize: a, isMobile: l, isTablet: u, isDesktop: g };
|
|
6450
|
-
},
|
|
6451
|
-
({ 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(
|
|
6452
6522
|
"label",
|
|
6453
6523
|
{
|
|
6454
|
-
className:
|
|
6524
|
+
className: ie(
|
|
6455
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",
|
|
6456
6526
|
n && "ds-cursor-default",
|
|
6457
6527
|
a === "left" && "ds-flex-row-reverse",
|
|
6458
|
-
|
|
6528
|
+
i
|
|
6459
6529
|
),
|
|
6460
6530
|
children: [
|
|
6461
6531
|
/* @__PURE__ */ R.jsx(
|
|
@@ -6468,14 +6538,14 @@ const An = Number(
|
|
|
6468
6538
|
checked: t,
|
|
6469
6539
|
onChange: r,
|
|
6470
6540
|
disabled: n,
|
|
6471
|
-
ref:
|
|
6541
|
+
ref: o,
|
|
6472
6542
|
onClick: (l) => l.stopPropagation()
|
|
6473
6543
|
}
|
|
6474
6544
|
),
|
|
6475
6545
|
/* @__PURE__ */ R.jsx(
|
|
6476
6546
|
"div",
|
|
6477
6547
|
{
|
|
6478
|
-
className:
|
|
6548
|
+
className: ie(
|
|
6479
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-['']",
|
|
6480
6550
|
t && "ds-bg-accentPrimary-100 after:ds-block"
|
|
6481
6551
|
)
|
|
@@ -6486,7 +6556,7 @@ const An = Number(
|
|
|
6486
6556
|
}
|
|
6487
6557
|
)
|
|
6488
6558
|
);
|
|
6489
|
-
|
|
6559
|
+
An.displayName = "Checkbox";
|
|
6490
6560
|
const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
6491
6561
|
"div",
|
|
6492
6562
|
{
|
|
@@ -6518,9 +6588,9 @@ const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
|
6518
6588
|
disabled: t = !1,
|
|
6519
6589
|
className: r,
|
|
6520
6590
|
children: n,
|
|
6521
|
-
startIcon:
|
|
6591
|
+
startIcon: i,
|
|
6522
6592
|
selected: a,
|
|
6523
|
-
endIcon:
|
|
6593
|
+
endIcon: o,
|
|
6524
6594
|
trackingId: l,
|
|
6525
6595
|
helperText: c,
|
|
6526
6596
|
helpterTextClassName: u,
|
|
@@ -6538,10 +6608,10 @@ const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
|
6538
6608
|
"helpterTextClassName",
|
|
6539
6609
|
"buttonClassName"
|
|
6540
6610
|
]);
|
|
6541
|
-
return /* @__PURE__ */ R.jsxs("div", { className:
|
|
6611
|
+
return /* @__PURE__ */ R.jsxs("div", { className: ie("ds-flex ds-flex-col ds-gap-1", r), children: [
|
|
6542
6612
|
/* @__PURE__ */ R.jsxs(
|
|
6543
6613
|
"button",
|
|
6544
|
-
V(
|
|
6614
|
+
V(L({
|
|
6545
6615
|
"data-tracking-id": l,
|
|
6546
6616
|
ref: p,
|
|
6547
6617
|
disabled: t,
|
|
@@ -6555,16 +6625,16 @@ const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
|
6555
6625
|
)
|
|
6556
6626
|
}, g), {
|
|
6557
6627
|
children: [
|
|
6558
|
-
|
|
6628
|
+
i && /* @__PURE__ */ R.jsx(qr, { children: i }),
|
|
6559
6629
|
n && /* @__PURE__ */ R.jsx("div", { children: n }),
|
|
6560
|
-
|
|
6630
|
+
o && /* @__PURE__ */ R.jsx(qr, { children: o })
|
|
6561
6631
|
]
|
|
6562
6632
|
})
|
|
6563
6633
|
),
|
|
6564
6634
|
c && /* @__PURE__ */ R.jsx(
|
|
6565
6635
|
"div",
|
|
6566
6636
|
{
|
|
6567
|
-
className:
|
|
6637
|
+
className: ie(
|
|
6568
6638
|
"ds-w-full ds-text-right ds-text-mediumFootnoteRegular",
|
|
6569
6639
|
u
|
|
6570
6640
|
),
|
|
@@ -6580,10 +6650,10 @@ const Ya = Kt(
|
|
|
6580
6650
|
const E = e, {
|
|
6581
6651
|
value: r,
|
|
6582
6652
|
options: n,
|
|
6583
|
-
onSelectionChange:
|
|
6653
|
+
onSelectionChange: i = () => {
|
|
6584
6654
|
},
|
|
6585
6655
|
isMultiSelect: a,
|
|
6586
|
-
noDataError:
|
|
6656
|
+
noDataError: o,
|
|
6587
6657
|
buttonMinWidth: l,
|
|
6588
6658
|
buttonWidth: c,
|
|
6589
6659
|
minSelectionError: u,
|
|
@@ -6604,50 +6674,50 @@ const Ya = Kt(
|
|
|
6604
6674
|
Je(() => {
|
|
6605
6675
|
r && r.length ? m(r) : m([]);
|
|
6606
6676
|
}, [r]);
|
|
6607
|
-
const x = (
|
|
6608
|
-
|
|
6609
|
-
const H = [...f], N = H.findIndex((B) => B.value ===
|
|
6610
|
-
N !== -1 ? H.length > 1 ? (H.splice(N, 1), w("")) : w(u) : (H.push(
|
|
6611
|
-
}, y = (
|
|
6612
|
-
|
|
6613
|
-
const H = [
|
|
6614
|
-
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);
|
|
6615
6685
|
};
|
|
6616
6686
|
return /* @__PURE__ */ R.jsxs(
|
|
6617
6687
|
"div",
|
|
6618
|
-
V(
|
|
6688
|
+
V(L({
|
|
6619
6689
|
ref: t
|
|
6620
6690
|
}, p), {
|
|
6621
6691
|
children: [
|
|
6622
6692
|
/* @__PURE__ */ R.jsx(
|
|
6623
6693
|
"div",
|
|
6624
6694
|
{
|
|
6625
|
-
className:
|
|
6626
|
-
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(
|
|
6627
6697
|
vt,
|
|
6628
6698
|
{
|
|
6629
|
-
selected: f.some((H) => H.value ===
|
|
6630
|
-
onClick: (H) => x(
|
|
6699
|
+
selected: f.some((H) => H.value === T.value),
|
|
6700
|
+
onClick: (H) => x(T, H),
|
|
6631
6701
|
color: "secondary",
|
|
6632
6702
|
style: { minWidth: l, width: c },
|
|
6633
6703
|
className: g,
|
|
6634
|
-
startIcon:
|
|
6635
|
-
endIcon:
|
|
6636
|
-
children:
|
|
6704
|
+
startIcon: T.startIcon,
|
|
6705
|
+
endIcon: T.endIcon,
|
|
6706
|
+
children: T.label
|
|
6637
6707
|
}
|
|
6638
6708
|
) : /* @__PURE__ */ R.jsx(
|
|
6639
6709
|
vt,
|
|
6640
6710
|
{
|
|
6641
|
-
selected: f.some((H) => H.value ===
|
|
6642
|
-
onClick: (H) => y(
|
|
6711
|
+
selected: f.some((H) => H.value === T.value),
|
|
6712
|
+
onClick: (H) => y(T, H),
|
|
6643
6713
|
color: "secondary",
|
|
6644
6714
|
style: { minWidth: l, width: c },
|
|
6645
6715
|
className: g,
|
|
6646
|
-
startIcon:
|
|
6647
|
-
endIcon:
|
|
6648
|
-
children:
|
|
6716
|
+
startIcon: T.startIcon,
|
|
6717
|
+
endIcon: T.endIcon,
|
|
6718
|
+
children: T.label
|
|
6649
6719
|
}
|
|
6650
|
-
) },
|
|
6720
|
+
) }, T.value)) : /* @__PURE__ */ R.jsx("div", { className: "ds_xSmallSubheadRegular ds-p-2 ds-text-error", children: o })
|
|
6651
6721
|
}
|
|
6652
6722
|
),
|
|
6653
6723
|
h && /* @__PURE__ */ R.jsx("div", { className: "ds_xSmallSubheadRegular ds-p-2 ds-text-error", children: h })
|
|
@@ -6662,14 +6732,14 @@ const On = ({
|
|
|
6662
6732
|
getSelectedValueDisplayText: t,
|
|
6663
6733
|
placeholder: r,
|
|
6664
6734
|
allSelectedLabel: n,
|
|
6665
|
-
value:
|
|
6735
|
+
value: i
|
|
6666
6736
|
}) => {
|
|
6667
6737
|
let a = !e || Array.isArray(e) && e.length === 0 ? r || "" : t(e);
|
|
6668
|
-
return
|
|
6738
|
+
return i === "select-all" && n && (a = n), /* @__PURE__ */ R.jsx(
|
|
6669
6739
|
vt,
|
|
6670
6740
|
{
|
|
6671
6741
|
color: "secondary",
|
|
6672
|
-
endIcon: /* @__PURE__ */ R.jsx(
|
|
6742
|
+
endIcon: /* @__PURE__ */ R.jsx(no, { className: "ds-size-4" }),
|
|
6673
6743
|
buttonClassName: "ds-justify-between",
|
|
6674
6744
|
children: a
|
|
6675
6745
|
}
|
|
@@ -6679,9 +6749,9 @@ const On = ({
|
|
|
6679
6749
|
isMultiSelect: t,
|
|
6680
6750
|
value: r,
|
|
6681
6751
|
setValue: n,
|
|
6682
|
-
setIsOpen:
|
|
6752
|
+
setIsOpen: i,
|
|
6683
6753
|
onChange: a,
|
|
6684
|
-
selectAllOptionLabel:
|
|
6754
|
+
selectAllOptionLabel: o = "Select all",
|
|
6685
6755
|
disableSelectAll: l
|
|
6686
6756
|
}) => {
|
|
6687
6757
|
const c = r === "select-all" || Array.isArray(r) && r.filter((u) => e.find((d) => d.value === u)).length === e.length;
|
|
@@ -6691,7 +6761,7 @@ const On = ({
|
|
|
6691
6761
|
{
|
|
6692
6762
|
showCheckbox: !0,
|
|
6693
6763
|
option: {
|
|
6694
|
-
label:
|
|
6764
|
+
label: o,
|
|
6695
6765
|
value: "select-all"
|
|
6696
6766
|
},
|
|
6697
6767
|
isSelected: c,
|
|
@@ -6709,7 +6779,7 @@ const On = ({
|
|
|
6709
6779
|
if (t && r !== "select-all") {
|
|
6710
6780
|
const g = r || [];
|
|
6711
6781
|
g.includes(u.value) ? d = g.filter((p) => p !== u.value) : d = [...g, u.value], d.length === e.length && (d = "select-all");
|
|
6712
|
-
} 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));
|
|
6713
6783
|
n(d), a && a(bt(d, e), d === "select-all");
|
|
6714
6784
|
},
|
|
6715
6785
|
option: u,
|
|
@@ -6728,7 +6798,7 @@ const On = ({
|
|
|
6728
6798
|
"div",
|
|
6729
6799
|
{
|
|
6730
6800
|
onClick: t.disabled ? void 0 : e,
|
|
6731
|
-
className:
|
|
6801
|
+
className: ie(
|
|
6732
6802
|
// eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
|
|
6733
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",
|
|
6734
6804
|
!n && "ds-transition-[padding] ds-duration-300 hover:ds-px-4"
|
|
@@ -6745,16 +6815,16 @@ const On = ({
|
|
|
6745
6815
|
/* @__PURE__ */ R.jsx(
|
|
6746
6816
|
"div",
|
|
6747
6817
|
{
|
|
6748
|
-
className:
|
|
6818
|
+
className: ie(
|
|
6749
6819
|
"ds-flex-grow",
|
|
6750
6820
|
!n && "ds-transition-[padding] ds-duration-300 group-hover:ds-pr-0 ds-tablet:ds-pr-4"
|
|
6751
6821
|
),
|
|
6752
6822
|
children: t.label
|
|
6753
6823
|
}
|
|
6754
6824
|
),
|
|
6755
|
-
r && !n && /* @__PURE__ */ R.jsx(
|
|
6825
|
+
r && !n && /* @__PURE__ */ R.jsx(ro, { className: "ds-size-4 ds-shrink-0" }),
|
|
6756
6826
|
n && /* @__PURE__ */ R.jsx(
|
|
6757
|
-
|
|
6827
|
+
An,
|
|
6758
6828
|
{
|
|
6759
6829
|
isChecked: r,
|
|
6760
6830
|
disabled: t.disabled
|
|
@@ -6762,16 +6832,16 @@ const On = ({
|
|
|
6762
6832
|
)
|
|
6763
6833
|
]
|
|
6764
6834
|
}
|
|
6765
|
-
), Ka = (e) => window.innerWidth <
|
|
6835
|
+
), Ka = (e) => window.innerWidth < Wn ? /* @__PURE__ */ R.jsx(Bn, L({}, e)) : /* @__PURE__ */ R.jsx(In, L({}, e));
|
|
6766
6836
|
Ka.displayName = "Dropdown";
|
|
6767
6837
|
const In = ({
|
|
6768
6838
|
placement: e = "bottom-start",
|
|
6769
6839
|
trigger: t,
|
|
6770
6840
|
triggerContainerClassName: r,
|
|
6771
6841
|
disabled: n,
|
|
6772
|
-
onOpenChange:
|
|
6842
|
+
onOpenChange: i,
|
|
6773
6843
|
adjustHeight: a = !0,
|
|
6774
|
-
adjustWidth:
|
|
6844
|
+
adjustWidth: o = !0,
|
|
6775
6845
|
options: l,
|
|
6776
6846
|
getSelectedValueDisplayText: c = jn,
|
|
6777
6847
|
placeholder: u,
|
|
@@ -6783,10 +6853,10 @@ const In = ({
|
|
|
6783
6853
|
disableSelectAll: h
|
|
6784
6854
|
}) => {
|
|
6785
6855
|
const [w, x] = ue(), y = typeof d == "undefined" ? w : d, E = typeof d == "undefined" ? x : () => {
|
|
6786
|
-
}, [
|
|
6787
|
-
open:
|
|
6788
|
-
onOpenChange: (
|
|
6789
|
-
|
|
6856
|
+
}, [T, P] = ue(!1), { refs: H, floatingStyles: N, context: B } = Ia({
|
|
6857
|
+
open: T,
|
|
6858
|
+
onOpenChange: (S) => {
|
|
6859
|
+
P(S), i && i(S);
|
|
6790
6860
|
},
|
|
6791
6861
|
middleware: [
|
|
6792
6862
|
ga(8),
|
|
@@ -6796,14 +6866,14 @@ const In = ({
|
|
|
6796
6866
|
}),
|
|
6797
6867
|
ma({ padding: 4 }),
|
|
6798
6868
|
pa({
|
|
6799
|
-
apply({ availableWidth:
|
|
6800
|
-
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`);
|
|
6801
6871
|
}
|
|
6802
6872
|
})
|
|
6803
6873
|
],
|
|
6804
6874
|
whileElementsMounted: aa,
|
|
6805
6875
|
placement: e
|
|
6806
|
-
}), J =
|
|
6876
|
+
}), J = Wa(B), U = Ba(B), G = ja(B), _ = $a(B), { getReferenceProps: q, getFloatingProps: W } = Da([J, U, G, _]);
|
|
6807
6877
|
return t || (t = /* @__PURE__ */ R.jsx(
|
|
6808
6878
|
On,
|
|
6809
6879
|
{
|
|
@@ -6816,23 +6886,23 @@ const In = ({
|
|
|
6816
6886
|
)), n ? /* @__PURE__ */ R.jsx("div", { className: r, children: t }) : /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
6817
6887
|
/* @__PURE__ */ R.jsx(
|
|
6818
6888
|
"div",
|
|
6819
|
-
V(
|
|
6820
|
-
className:
|
|
6889
|
+
V(L({
|
|
6890
|
+
className: ie("ds-cursor-pointer", r),
|
|
6821
6891
|
ref: H.setReference
|
|
6822
6892
|
}, q()), {
|
|
6823
6893
|
children: t
|
|
6824
6894
|
})
|
|
6825
6895
|
),
|
|
6826
|
-
|
|
6896
|
+
T && /* @__PURE__ */ R.jsx(Ha, { children: /* @__PURE__ */ R.jsx(
|
|
6827
6897
|
"div",
|
|
6828
|
-
V(
|
|
6898
|
+
V(L({
|
|
6829
6899
|
ref: H.setFloating,
|
|
6830
6900
|
style: N
|
|
6831
|
-
},
|
|
6832
|
-
className:
|
|
6901
|
+
}, W()), {
|
|
6902
|
+
className: ie(
|
|
6833
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",
|
|
6834
6904
|
a && "ds-overflow-y-auto",
|
|
6835
|
-
|
|
6905
|
+
o && "ds-overflow-x-auto"
|
|
6836
6906
|
),
|
|
6837
6907
|
children: /* @__PURE__ */ R.jsx(
|
|
6838
6908
|
Fn,
|
|
@@ -6841,7 +6911,7 @@ const In = ({
|
|
|
6841
6911
|
options: l,
|
|
6842
6912
|
value: y,
|
|
6843
6913
|
setValue: E,
|
|
6844
|
-
setIsOpen:
|
|
6914
|
+
setIsOpen: P,
|
|
6845
6915
|
onChange: p,
|
|
6846
6916
|
selectAllOptionLabel: f,
|
|
6847
6917
|
disableSelectAll: h
|
|
@@ -6857,9 +6927,9 @@ const Bn = ({
|
|
|
6857
6927
|
triggerContainerClassName: t,
|
|
6858
6928
|
disabled: r,
|
|
6859
6929
|
onOpenChange: n,
|
|
6860
|
-
getSelectedValueDisplayText:
|
|
6930
|
+
getSelectedValueDisplayText: i = jn,
|
|
6861
6931
|
placeholder: a,
|
|
6862
|
-
value:
|
|
6932
|
+
value: o,
|
|
6863
6933
|
options: l,
|
|
6864
6934
|
isMultiSelect: c,
|
|
6865
6935
|
onChange: u,
|
|
@@ -6868,14 +6938,14 @@ const Bn = ({
|
|
|
6868
6938
|
allSelectedLabel: p,
|
|
6869
6939
|
disableSelectAll: f
|
|
6870
6940
|
}) => {
|
|
6871
|
-
const [m, h] = ue(), w = typeof
|
|
6941
|
+
const [m, h] = ue(), w = typeof o == "undefined" ? m : o, x = typeof o == "undefined" ? h : () => {
|
|
6872
6942
|
}, [y, E] = ue(!1);
|
|
6873
6943
|
return e || (e = /* @__PURE__ */ R.jsx(
|
|
6874
6944
|
On,
|
|
6875
6945
|
{
|
|
6876
6946
|
value: w,
|
|
6877
6947
|
selectedOption: bt(w, l),
|
|
6878
|
-
getSelectedValueDisplayText:
|
|
6948
|
+
getSelectedValueDisplayText: i,
|
|
6879
6949
|
placeholder: a,
|
|
6880
6950
|
allSelectedLabel: p
|
|
6881
6951
|
}
|
|
@@ -6898,7 +6968,7 @@ const Bn = ({
|
|
|
6898
6968
|
handleClose: () => {
|
|
6899
6969
|
E(!1), n && n(!1);
|
|
6900
6970
|
},
|
|
6901
|
-
contentClassName:
|
|
6971
|
+
contentClassName: ie("ds-absolute ds-mb-0 ds-w-full"),
|
|
6902
6972
|
className: "ds-z-[29999]",
|
|
6903
6973
|
children: /* @__PURE__ */ R.jsx(
|
|
6904
6974
|
Dn,
|
|
@@ -6935,7 +7005,7 @@ const Dn = ({ onClose: e, closeButtonLabel: t, children: r, isMultiSelect: n })
|
|
|
6935
7005
|
{
|
|
6936
7006
|
onClick: e,
|
|
6937
7007
|
className: "ds-flex ds-size-5 ds-cursor-pointer ds-items-center ds-justify-center",
|
|
6938
|
-
children: /* @__PURE__ */ R.jsx(
|
|
7008
|
+
children: /* @__PURE__ */ R.jsx(to, { className: "ds-size-4" })
|
|
6939
7009
|
}
|
|
6940
7010
|
),
|
|
6941
7011
|
/* @__PURE__ */ R.jsx("div", { className: "ds-size-5" })
|
|
@@ -6954,11 +7024,11 @@ Dn.displayName = "MobilePopoverContentWrapper";
|
|
|
6954
7024
|
export {
|
|
6955
7025
|
_n as A,
|
|
6956
7026
|
vt as B,
|
|
6957
|
-
|
|
7027
|
+
to as C,
|
|
6958
7028
|
Ka as D,
|
|
6959
|
-
|
|
7029
|
+
Wa as E,
|
|
6960
7030
|
Ha as F,
|
|
6961
|
-
|
|
7031
|
+
no as G,
|
|
6962
7032
|
Ga as H,
|
|
6963
7033
|
Ur as I,
|
|
6964
7034
|
Bn as M,
|
|
@@ -6968,7 +7038,7 @@ export {
|
|
|
6968
7038
|
Yr as d,
|
|
6969
7039
|
Cr as e,
|
|
6970
7040
|
nn as f,
|
|
6971
|
-
|
|
7041
|
+
ie as g,
|
|
6972
7042
|
el as h,
|
|
6973
7043
|
Ba as i,
|
|
6974
7044
|
R as j,
|
|
@@ -6978,13 +7048,13 @@ export {
|
|
|
6978
7048
|
aa as n,
|
|
6979
7049
|
ga as o,
|
|
6980
7050
|
ha as p,
|
|
6981
|
-
|
|
7051
|
+
ro as q,
|
|
6982
7052
|
ln as r,
|
|
6983
7053
|
tl as s,
|
|
6984
7054
|
ct as t,
|
|
6985
7055
|
Ia as u,
|
|
6986
|
-
|
|
6987
|
-
|
|
7056
|
+
An as v,
|
|
7057
|
+
Wn as w,
|
|
6988
7058
|
Qa as x,
|
|
6989
7059
|
ma as y,
|
|
6990
7060
|
pa as z
|