design-system-silkhaus 3.13.0 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.js +1 -1
- package/dist/eslint-rules/tailwind/no-restricted-tokens.js +79 -0
- package/dist/{index-DoJhqBt6.js → index-DNx3uJWq.js} +415 -380
- package/dist/index.d.ts +20 -0
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +35 -0
- package/package.json +6 -2
|
@@ -10,7 +10,7 @@ var xr = (e, t, r) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
wr.call(t, r) && xr(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, $ = (e, t) => ho(e, mo(t));
|
|
13
|
-
var
|
|
13
|
+
var Ct = (e) => typeof e == "symbol" ? e : e + "", he = (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]);
|
|
@@ -86,38 +86,38 @@ function xo() {
|
|
|
86
86
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
87
87
|
function w(s) {
|
|
88
88
|
{
|
|
89
|
-
for (var b = arguments.length,
|
|
90
|
-
|
|
91
|
-
S("error", s,
|
|
89
|
+
for (var b = arguments.length, T = new Array(b > 1 ? b - 1 : 0), O = 1; O < b; O++)
|
|
90
|
+
T[O - 1] = arguments[O];
|
|
91
|
+
S("error", s, T);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function S(s, b,
|
|
94
|
+
function S(s, b, T) {
|
|
95
95
|
{
|
|
96
96
|
var O = x.ReactDebugCurrentFrame, Y = O.getStackAddendum();
|
|
97
|
-
Y !== "" && (b += "%s",
|
|
98
|
-
var K =
|
|
97
|
+
Y !== "" && (b += "%s", T = T.concat([Y]));
|
|
98
|
+
var K = T.map(function(B) {
|
|
99
99
|
return String(B);
|
|
100
100
|
});
|
|
101
101
|
K.unshift("Warning: " + b), Function.prototype.apply.call(console[s], console, K);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
var E = !1, z = !1,
|
|
104
|
+
var E = !1, z = !1, A = !1, N = !1, G = !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 || G || s === o || s === u || s === f || N || s === d || E || z ||
|
|
107
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === a || G || s === o || s === u || s === f || N || s === d || E || z || A || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === h || s.$$typeof === i || 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.
|
|
111
111
|
s.$$typeof === J || s.getModuleId !== void 0));
|
|
112
112
|
}
|
|
113
|
-
function V(s, b,
|
|
113
|
+
function V(s, b, T) {
|
|
114
114
|
var O = s.displayName;
|
|
115
115
|
if (O)
|
|
116
116
|
return O;
|
|
117
117
|
var Y = b.displayName || b.name || "";
|
|
118
|
-
return Y !== "" ?
|
|
118
|
+
return Y !== "" ? T + "(" + Y + ")" : T;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function P(s) {
|
|
121
121
|
return s.displayName || "Context";
|
|
122
122
|
}
|
|
123
123
|
function q(s) {
|
|
@@ -145,10 +145,10 @@ function xo() {
|
|
|
145
145
|
switch (s.$$typeof) {
|
|
146
146
|
case l:
|
|
147
147
|
var b = s;
|
|
148
|
-
return
|
|
148
|
+
return P(b) + ".Consumer";
|
|
149
149
|
case i:
|
|
150
|
-
var
|
|
151
|
-
return
|
|
150
|
+
var T = s;
|
|
151
|
+
return P(T._context) + ".Provider";
|
|
152
152
|
case c:
|
|
153
153
|
return V(s, s.render, "ForwardRef");
|
|
154
154
|
case h:
|
|
@@ -165,14 +165,14 @@ function xo() {
|
|
|
165
165
|
}
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
|
-
var
|
|
168
|
+
var _ = Object.assign, k = 0, C, M, H, I, W, F, xe;
|
|
169
169
|
function Le() {
|
|
170
170
|
}
|
|
171
171
|
Le.__reactDisabledLog = !0;
|
|
172
172
|
function rt() {
|
|
173
173
|
{
|
|
174
174
|
if (k === 0) {
|
|
175
|
-
|
|
175
|
+
C = console.log, M = console.info, H = console.warn, I = console.error, W = console.group, F = console.groupCollapsed, xe = console.groupEnd;
|
|
176
176
|
var s = {
|
|
177
177
|
configurable: !0,
|
|
178
178
|
enumerable: !0,
|
|
@@ -201,25 +201,25 @@ function xo() {
|
|
|
201
201
|
writable: !0
|
|
202
202
|
};
|
|
203
203
|
Object.defineProperties(console, {
|
|
204
|
-
log:
|
|
205
|
-
value:
|
|
204
|
+
log: _({}, s, {
|
|
205
|
+
value: C
|
|
206
206
|
}),
|
|
207
|
-
info:
|
|
207
|
+
info: _({}, s, {
|
|
208
208
|
value: M
|
|
209
209
|
}),
|
|
210
|
-
warn:
|
|
211
|
-
value:
|
|
210
|
+
warn: _({}, s, {
|
|
211
|
+
value: H
|
|
212
212
|
}),
|
|
213
|
-
error:
|
|
213
|
+
error: _({}, s, {
|
|
214
214
|
value: I
|
|
215
215
|
}),
|
|
216
|
-
group:
|
|
216
|
+
group: _({}, s, {
|
|
217
217
|
value: W
|
|
218
218
|
}),
|
|
219
|
-
groupCollapsed:
|
|
219
|
+
groupCollapsed: _({}, s, {
|
|
220
220
|
value: F
|
|
221
221
|
}),
|
|
222
|
-
groupEnd:
|
|
222
|
+
groupEnd: _({}, s, {
|
|
223
223
|
value: xe
|
|
224
224
|
})
|
|
225
225
|
});
|
|
@@ -228,7 +228,7 @@ function xo() {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
var se = x.ReactCurrentDispatcher, ge;
|
|
231
|
-
function Ie(s, b,
|
|
231
|
+
function Ie(s, b, T) {
|
|
232
232
|
{
|
|
233
233
|
if (ge === void 0)
|
|
234
234
|
try {
|
|
@@ -250,9 +250,9 @@ function xo() {
|
|
|
250
250
|
if (!s || yt)
|
|
251
251
|
return "";
|
|
252
252
|
{
|
|
253
|
-
var
|
|
254
|
-
if (
|
|
255
|
-
return
|
|
253
|
+
var T = nt.get(s);
|
|
254
|
+
if (T !== void 0)
|
|
255
|
+
return T;
|
|
256
256
|
}
|
|
257
257
|
var O;
|
|
258
258
|
yt = !0;
|
|
@@ -314,17 +314,17 @@ function xo() {
|
|
|
314
314
|
} finally {
|
|
315
315
|
yt = !1, se.current = K, re(), Error.prepareStackTrace = Y;
|
|
316
316
|
}
|
|
317
|
-
var
|
|
317
|
+
var Ae = s ? s.displayName || s.name : "", Me = Ae ? Ie(Ae) : "";
|
|
318
318
|
return typeof s == "function" && nt.set(s, Me), Me;
|
|
319
319
|
}
|
|
320
|
-
function In(s, b,
|
|
320
|
+
function In(s, b, T) {
|
|
321
321
|
return or(s, !1);
|
|
322
322
|
}
|
|
323
323
|
function $n(s) {
|
|
324
324
|
var b = s.prototype;
|
|
325
325
|
return !!(b && b.isReactComponent);
|
|
326
326
|
}
|
|
327
|
-
function ot(s, b,
|
|
327
|
+
function ot(s, b, T) {
|
|
328
328
|
if (s == null)
|
|
329
329
|
return "";
|
|
330
330
|
if (typeof s == "function")
|
|
@@ -342,11 +342,11 @@ function xo() {
|
|
|
342
342
|
case c:
|
|
343
343
|
return In(s.render);
|
|
344
344
|
case h:
|
|
345
|
-
return ot(s.type, b,
|
|
345
|
+
return ot(s.type, b, T);
|
|
346
346
|
case p: {
|
|
347
347
|
var O = s, Y = O._payload, K = O._init;
|
|
348
348
|
try {
|
|
349
|
-
return ot(K(Y), b,
|
|
349
|
+
return ot(K(Y), b, T);
|
|
350
350
|
} catch (B) {
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -356,12 +356,12 @@ function xo() {
|
|
|
356
356
|
var $e = Object.prototype.hasOwnProperty, ir = {}, ar = x.ReactDebugCurrentFrame;
|
|
357
357
|
function it(s) {
|
|
358
358
|
if (s) {
|
|
359
|
-
var b = s._owner,
|
|
360
|
-
ar.setExtraStackFrame(
|
|
359
|
+
var b = s._owner, T = ot(s.type, s._source, b ? b.type : null);
|
|
360
|
+
ar.setExtraStackFrame(T);
|
|
361
361
|
} else
|
|
362
362
|
ar.setExtraStackFrame(null);
|
|
363
363
|
}
|
|
364
|
-
function Vn(s, b,
|
|
364
|
+
function Vn(s, b, T, O, Y) {
|
|
365
365
|
{
|
|
366
366
|
var K = Function.call.bind($e);
|
|
367
367
|
for (var B in s)
|
|
@@ -369,14 +369,14 @@ function xo() {
|
|
|
369
369
|
var D = void 0;
|
|
370
370
|
try {
|
|
371
371
|
if (typeof s[B] != "function") {
|
|
372
|
-
var te = Error((O || "React class") + ": " +
|
|
372
|
+
var te = Error((O || "React class") + ": " + T + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
373
373
|
throw te.name = "Invariant Violation", te;
|
|
374
374
|
}
|
|
375
|
-
D = s[B](b, B, O,
|
|
375
|
+
D = s[B](b, B, O, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
376
376
|
} catch (Q) {
|
|
377
377
|
D = Q;
|
|
378
378
|
}
|
|
379
|
-
D && !(D instanceof Error) && (it(Y), w("%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",
|
|
379
|
+
D && !(D instanceof Error) && (it(Y), w("%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", T, B, typeof D), it(null)), D instanceof Error && !(D.message in ir) && (ir[D.message] = !0, it(Y), w("Failed %s type: %s", T, D.message), it(null));
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
@@ -386,8 +386,8 @@ function xo() {
|
|
|
386
386
|
}
|
|
387
387
|
function Un(s) {
|
|
388
388
|
{
|
|
389
|
-
var b = typeof Symbol == "function" && Symbol.toStringTag,
|
|
390
|
-
return
|
|
389
|
+
var b = typeof Symbol == "function" && Symbol.toStringTag, T = b && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
390
|
+
return T;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
function qn(s) {
|
|
@@ -431,34 +431,34 @@ function xo() {
|
|
|
431
431
|
}
|
|
432
432
|
function Zn(s, b) {
|
|
433
433
|
{
|
|
434
|
-
var
|
|
434
|
+
var T = function() {
|
|
435
435
|
ur || (ur = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
|
|
436
436
|
};
|
|
437
|
-
|
|
438
|
-
get:
|
|
437
|
+
T.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
438
|
+
get: T,
|
|
439
439
|
configurable: !0
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
function Qn(s, b) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
445
|
+
var T = function() {
|
|
446
446
|
dr || (dr = !0, w("%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));
|
|
447
447
|
};
|
|
448
|
-
|
|
449
|
-
get:
|
|
448
|
+
T.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
449
|
+
get: T,
|
|
450
450
|
configurable: !0
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
var eo = function(s, b,
|
|
454
|
+
var eo = function(s, b, T, O, Y, K, B) {
|
|
455
455
|
var D = {
|
|
456
456
|
// This tag allows us to uniquely identify this as a React Element
|
|
457
457
|
$$typeof: t,
|
|
458
458
|
// Built-in properties that belong on the element
|
|
459
459
|
type: s,
|
|
460
460
|
key: b,
|
|
461
|
-
ref:
|
|
461
|
+
ref: T,
|
|
462
462
|
props: B,
|
|
463
463
|
// Record the component responsible for creating this element.
|
|
464
464
|
_owner: K
|
|
@@ -480,10 +480,10 @@ function xo() {
|
|
|
480
480
|
value: Y
|
|
481
481
|
}), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
|
|
482
482
|
};
|
|
483
|
-
function to(s, b,
|
|
483
|
+
function to(s, b, T, O, Y) {
|
|
484
484
|
{
|
|
485
485
|
var K, B = {}, D = null, te = null;
|
|
486
|
-
|
|
486
|
+
T !== void 0 && (sr(T), D = "" + T), Xn(b) && (sr(b.key), D = "" + b.key), Kn(b) && (te = b.ref, Jn(b, Y));
|
|
487
487
|
for (K in b)
|
|
488
488
|
$e.call(b, K) && !Yn.hasOwnProperty(K) && (B[K] = b[K]);
|
|
489
489
|
if (s && s.defaultProps) {
|
|
@@ -499,10 +499,10 @@ function xo() {
|
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
var Rt = x.ReactCurrentOwner, fr = x.ReactDebugCurrentFrame;
|
|
502
|
-
function
|
|
502
|
+
function _e(s) {
|
|
503
503
|
if (s) {
|
|
504
|
-
var b = s._owner,
|
|
505
|
-
fr.setExtraStackFrame(
|
|
504
|
+
var b = s._owner, T = ot(s.type, s._source, b ? b.type : null);
|
|
505
|
+
fr.setExtraStackFrame(T);
|
|
506
506
|
} else
|
|
507
507
|
fr.setExtraStackFrame(null);
|
|
508
508
|
}
|
|
@@ -531,10 +531,10 @@ Check the render method of \`` + s + "`.";
|
|
|
531
531
|
{
|
|
532
532
|
var b = gr();
|
|
533
533
|
if (!b) {
|
|
534
|
-
var
|
|
535
|
-
|
|
534
|
+
var T = typeof s == "string" ? s : s.displayName || s.name;
|
|
535
|
+
T && (b = `
|
|
536
536
|
|
|
537
|
-
Check the top-level render call using <` +
|
|
537
|
+
Check the top-level render call using <` + T + ">.");
|
|
538
538
|
}
|
|
539
539
|
return b;
|
|
540
540
|
}
|
|
@@ -544,12 +544,12 @@ 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
|
|
548
|
-
if (hr[
|
|
547
|
+
var T = no(b);
|
|
548
|
+
if (hr[T])
|
|
549
549
|
return;
|
|
550
|
-
hr[
|
|
550
|
+
hr[T] = !0;
|
|
551
551
|
var O = "";
|
|
552
|
-
s && s._owner && s._owner !== Rt.current && (O = " It was passed a child from " + q(s._owner.type) + "."),
|
|
552
|
+
s && s._owner && s._owner !== Rt.current && (O = " It was passed a child from " + q(s._owner.type) + "."), _e(s), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, O), _e(null);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
function pr(s, b) {
|
|
@@ -557,8 +557,8 @@ Check the top-level render call using <` + C + ">.");
|
|
|
557
557
|
if (typeof s != "object")
|
|
558
558
|
return;
|
|
559
559
|
if (wt(s))
|
|
560
|
-
for (var
|
|
561
|
-
var O = s[
|
|
560
|
+
for (var T = 0; T < s.length; T++) {
|
|
561
|
+
var O = s[T];
|
|
562
562
|
St(O) && mr(O, b);
|
|
563
563
|
}
|
|
564
564
|
else if (St(s))
|
|
@@ -576,18 +576,18 @@ Check the top-level render call using <` + C + ">.");
|
|
|
576
576
|
var b = s.type;
|
|
577
577
|
if (b == null || typeof b == "string")
|
|
578
578
|
return;
|
|
579
|
-
var
|
|
579
|
+
var T;
|
|
580
580
|
if (typeof b == "function")
|
|
581
|
-
|
|
581
|
+
T = b.propTypes;
|
|
582
582
|
else if (typeof b == "object" && (b.$$typeof === c || // Note: Memo only checks outer props here.
|
|
583
583
|
// Inner props are checked in the reconciler.
|
|
584
584
|
b.$$typeof === h))
|
|
585
|
-
|
|
585
|
+
T = b.propTypes;
|
|
586
586
|
else
|
|
587
587
|
return;
|
|
588
|
-
if (
|
|
588
|
+
if (T) {
|
|
589
589
|
var O = q(b);
|
|
590
|
-
Vn(
|
|
590
|
+
Vn(T, s.props, "prop", O, s);
|
|
591
591
|
} else if (b.PropTypes !== void 0 && !Et) {
|
|
592
592
|
Et = !0;
|
|
593
593
|
var Y = q(b);
|
|
@@ -598,18 +598,18 @@ Check the top-level render call using <` + C + ">.");
|
|
|
598
598
|
}
|
|
599
599
|
function io(s) {
|
|
600
600
|
{
|
|
601
|
-
for (var b = Object.keys(s.props),
|
|
602
|
-
var O = b[
|
|
601
|
+
for (var b = Object.keys(s.props), T = 0; T < b.length; T++) {
|
|
602
|
+
var O = b[T];
|
|
603
603
|
if (O !== "children" && O !== "key") {
|
|
604
|
-
|
|
604
|
+
_e(s), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), _e(null);
|
|
605
605
|
break;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
-
s.ref !== null && (
|
|
608
|
+
s.ref !== null && (_e(s), w("Invalid attribute `ref` supplied to `React.Fragment`."), _e(null));
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
var vr = {};
|
|
612
|
-
function br(s, b,
|
|
612
|
+
function br(s, b, T, O, Y, K) {
|
|
613
613
|
{
|
|
614
614
|
var B = U(s);
|
|
615
615
|
if (!B) {
|
|
@@ -620,7 +620,7 @@ Check the top-level render call using <` + C + ">.");
|
|
|
620
620
|
var Q;
|
|
621
621
|
s === null ? Q = "null" : wt(s) ? Q = "array" : s !== void 0 && s.$$typeof === t ? (Q = "<" + (q(s.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof s, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, D);
|
|
622
622
|
}
|
|
623
|
-
var ee = to(s, b,
|
|
623
|
+
var ee = to(s, b, T, Y, K);
|
|
624
624
|
if (ee == null)
|
|
625
625
|
return ee;
|
|
626
626
|
if (B) {
|
|
@@ -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 (wt(ce)) {
|
|
631
|
-
for (var
|
|
632
|
-
pr(ce[
|
|
631
|
+
for (var Ae = 0; Ae < ce.length; Ae++)
|
|
632
|
+
pr(ce[Ae], s);
|
|
633
633
|
Object.freeze && Object.freeze(ce);
|
|
634
634
|
} else
|
|
635
635
|
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -639,25 +639,25 @@ Check the top-level render call using <` + C + ">.");
|
|
|
639
639
|
if ($e.call(b, "key")) {
|
|
640
640
|
var Me = q(s), ne = Object.keys(b).filter(function(fo) {
|
|
641
641
|
return fo !== "key";
|
|
642
|
-
}),
|
|
643
|
-
if (!vr[Me +
|
|
642
|
+
}), Tt = ne.length > 0 ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
643
|
+
if (!vr[Me + Tt]) {
|
|
644
644
|
var uo = ne.length > 0 ? "{" + ne.join(": ..., ") + ": ...}" : "{}";
|
|
645
645
|
w(`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} />`,
|
|
650
|
+
<%s key={someKey} {...props} />`, Tt, Me, uo, Me), vr[Me + Tt] = !0;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
return s === n ? io(ee) : oo(ee), ee;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function ao(s, b,
|
|
657
|
-
return br(s, b,
|
|
656
|
+
function ao(s, b, T) {
|
|
657
|
+
return br(s, b, T, !0);
|
|
658
658
|
}
|
|
659
|
-
function lo(s, b,
|
|
660
|
-
return br(s, b,
|
|
659
|
+
function lo(s, b, T) {
|
|
660
|
+
return br(s, b, T, !1);
|
|
661
661
|
}
|
|
662
662
|
var so = lo, co = ao;
|
|
663
663
|
Ge.Fragment = n, Ge.jsx = so, Ge.jsxs = co;
|
|
@@ -713,7 +713,7 @@ const Kt = "-", yo = (e) => {
|
|
|
713
713
|
}, Dt = (e, t, r, n) => {
|
|
714
714
|
e.forEach((o) => {
|
|
715
715
|
if (typeof o == "string") {
|
|
716
|
-
const a = o === "" ? t :
|
|
716
|
+
const a = o === "" ? t : Tr(t, o);
|
|
717
717
|
a.classGroupId = r;
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
@@ -729,10 +729,10 @@ const Kt = "-", yo = (e) => {
|
|
|
729
729
|
return;
|
|
730
730
|
}
|
|
731
731
|
Object.entries(o).forEach(([a, i]) => {
|
|
732
|
-
Dt(i,
|
|
732
|
+
Dt(i, Tr(t, a), r, n);
|
|
733
733
|
});
|
|
734
734
|
});
|
|
735
|
-
},
|
|
735
|
+
}, Tr = (e, t) => {
|
|
736
736
|
let r = e;
|
|
737
737
|
return t.split(Kt).forEach((n) => {
|
|
738
738
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
@@ -743,7 +743,7 @@ const Kt = "-", yo = (e) => {
|
|
|
743
743
|
}, Eo = (e) => e.isThemeGetter, So = (e, t) => t ? e.map(([r, n]) => {
|
|
744
744
|
const o = n.map((a) => typeof a == "string" ? t + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([i, l]) => [t + i, l])) : a);
|
|
745
745
|
return [r, o];
|
|
746
|
-
}) : e,
|
|
746
|
+
}) : e, To = (e) => {
|
|
747
747
|
if (e < 1)
|
|
748
748
|
return {
|
|
749
749
|
get: () => {
|
|
@@ -767,7 +767,7 @@ const Kt = "-", yo = (e) => {
|
|
|
767
767
|
r.has(a) ? r.set(a, i) : o(a, i);
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
|
-
}, Jr = "!",
|
|
770
|
+
}, Jr = "!", Co = (e) => {
|
|
771
771
|
const {
|
|
772
772
|
separator: t,
|
|
773
773
|
experimentalParseClassName: r
|
|
@@ -809,8 +809,8 @@ const Kt = "-", yo = (e) => {
|
|
|
809
809
|
n[0] === "[" ? (t.push(...r.sort(), n), r = []) : r.push(n);
|
|
810
810
|
}), t.push(...r.sort()), t;
|
|
811
811
|
}, zo = (e) => L({
|
|
812
|
-
cache:
|
|
813
|
-
parseClassName:
|
|
812
|
+
cache: To(e.cacheSize),
|
|
813
|
+
parseClassName: Co(e)
|
|
814
814
|
}, yo(e)), Lo = /\s+/, Mo = (e, t) => {
|
|
815
815
|
const {
|
|
816
816
|
parseClassName: r,
|
|
@@ -850,7 +850,7 @@ const Kt = "-", yo = (e) => {
|
|
|
850
850
|
}
|
|
851
851
|
return l;
|
|
852
852
|
};
|
|
853
|
-
function
|
|
853
|
+
function Ho() {
|
|
854
854
|
let e = 0, t, r, n = "";
|
|
855
855
|
for (; e < arguments.length; )
|
|
856
856
|
(t = arguments[e++]) && (r = Zr(t)) && (n && (n += " "), n += r);
|
|
@@ -878,13 +878,13 @@ function Bt(e, ...t) {
|
|
|
878
878
|
return o(c, f), f;
|
|
879
879
|
}
|
|
880
880
|
return function() {
|
|
881
|
-
return a(
|
|
881
|
+
return a(Ho.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
|
-
}, Qr = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
887
|
+
}, Qr = /^\[(?:([a-z-]+):)?(.+)\]$/i, Po = /^\d+\/\d+$/, _o = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ao = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Wo = /\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$/, Oo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, jo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pe = (e) => Oe(e) || _o.has(e) || Po.test(e), ye = (e) => Be(e, "length", Uo), Oe = (e) => !!e && !Number.isNaN(Number(e)), kt = (e) => Be(e, "number", Oe), Ue = (e) => !!e && Number.isInteger(Number(e)), Do = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), j = (e) => Qr.test(e), we = (e) => Ao.test(e), Bo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), No = (e) => Be(e, Bo, en), Io = (e) => Be(e, "position", en), $o = /* @__PURE__ */ new Set(["image", "url"]), Vo = (e) => Be(e, $o, Yo), Go = (e) => Be(e, "", qo), qe = () => !0, Be = (e, t, r) => {
|
|
888
888
|
const n = Qr.exec(e);
|
|
889
889
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
890
890
|
}, Uo = (e) => (
|
|
@@ -893,7 +893,7 @@ const Z = (e) => {
|
|
|
893
893
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
894
894
|
Wo.test(e) && !Oo.test(e)
|
|
895
895
|
), en = () => !1, qo = (e) => jo.test(e), Yo = (e) => Fo.test(e), Nt = () => {
|
|
896
|
-
const e = Z("colors"), t = Z("spacing"), r = Z("blur"), n = Z("brightness"), o = Z("borderColor"), a = Z("borderRadius"), i = Z("borderSpacing"), l = Z("borderWidth"), c = Z("contrast"), u = Z("grayscale"), f = Z("hueRotate"), h = Z("invert"), p = Z("gap"), d = Z("gradientColorStops"), g = Z("gradientColorStopPositions"), m = Z("inset"), y = Z("margin"), x = Z("opacity"), w = Z("padding"), S = Z("saturate"), E = Z("scale"), z = Z("sepia"),
|
|
896
|
+
const e = Z("colors"), t = Z("spacing"), r = Z("blur"), n = Z("brightness"), o = Z("borderColor"), a = Z("borderRadius"), i = Z("borderSpacing"), l = Z("borderWidth"), c = Z("contrast"), u = Z("grayscale"), f = Z("hueRotate"), h = Z("invert"), p = Z("gap"), d = Z("gradientColorStops"), g = Z("gradientColorStopPositions"), m = Z("inset"), y = Z("margin"), x = Z("opacity"), w = Z("padding"), S = Z("saturate"), E = Z("scale"), z = Z("sepia"), A = Z("skew"), N = Z("space"), G = Z("translate"), J = () => ["auto", "contain", "none"], U = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", j, t], P = () => [j, t], q = () => ["", pe, ye], _ = () => ["auto", Oe, j], k = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], C = () => ["solid", "dashed", "dotted", "double", "none"], M = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], I = () => ["", "0", j], W = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [Oe, j];
|
|
897
897
|
return {
|
|
898
898
|
cacheSize: 500,
|
|
899
899
|
separator: ":",
|
|
@@ -904,25 +904,25 @@ const Z = (e) => {
|
|
|
904
904
|
brightness: F(),
|
|
905
905
|
borderColor: [e],
|
|
906
906
|
borderRadius: ["none", "", "full", we, j],
|
|
907
|
-
borderSpacing:
|
|
907
|
+
borderSpacing: P(),
|
|
908
908
|
borderWidth: q(),
|
|
909
909
|
contrast: F(),
|
|
910
910
|
grayscale: I(),
|
|
911
911
|
hueRotate: F(),
|
|
912
912
|
invert: I(),
|
|
913
|
-
gap:
|
|
913
|
+
gap: P(),
|
|
914
914
|
gradientColorStops: [e],
|
|
915
915
|
gradientColorStopPositions: [Do, ye],
|
|
916
916
|
inset: V(),
|
|
917
917
|
margin: V(),
|
|
918
918
|
opacity: F(),
|
|
919
|
-
padding:
|
|
919
|
+
padding: P(),
|
|
920
920
|
saturate: F(),
|
|
921
921
|
scale: F(),
|
|
922
922
|
sepia: I(),
|
|
923
923
|
skew: F(),
|
|
924
|
-
space:
|
|
925
|
-
translate:
|
|
924
|
+
space: P(),
|
|
925
|
+
translate: P()
|
|
926
926
|
},
|
|
927
927
|
classGroups: {
|
|
928
928
|
// Layout
|
|
@@ -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": _()
|
|
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": _()
|
|
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": _()
|
|
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": _()
|
|
1252
1252
|
}],
|
|
1253
1253
|
/**
|
|
1254
1254
|
* Grid Auto Flow
|
|
@@ -1297,7 +1297,7 @@ const Z = (e) => {
|
|
|
1297
1297
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1298
1298
|
*/
|
|
1299
1299
|
"justify-content": [{
|
|
1300
|
-
justify: ["normal", ...
|
|
1300
|
+
justify: ["normal", ...H()]
|
|
1301
1301
|
}],
|
|
1302
1302
|
/**
|
|
1303
1303
|
* Justify Items
|
|
@@ -1318,7 +1318,7 @@ const Z = (e) => {
|
|
|
1318
1318
|
* @see https://tailwindcss.com/docs/align-content
|
|
1319
1319
|
*/
|
|
1320
1320
|
"align-content": [{
|
|
1321
|
-
content: ["normal", ...
|
|
1321
|
+
content: ["normal", ...H(), "baseline"]
|
|
1322
1322
|
}],
|
|
1323
1323
|
/**
|
|
1324
1324
|
* Align Items
|
|
@@ -1339,7 +1339,7 @@ const Z = (e) => {
|
|
|
1339
1339
|
* @see https://tailwindcss.com/docs/place-content
|
|
1340
1340
|
*/
|
|
1341
1341
|
"place-content": [{
|
|
1342
|
-
"place-content": [...
|
|
1342
|
+
"place-content": [...H(), "baseline"]
|
|
1343
1343
|
}],
|
|
1344
1344
|
/**
|
|
1345
1345
|
* Place Items
|
|
@@ -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: [...C(), "wavy"]
|
|
1712
1712
|
}],
|
|
1713
1713
|
/**
|
|
1714
1714
|
* Text Decoration Thickness
|
|
@@ -1753,7 +1753,7 @@ const Z = (e) => {
|
|
|
1753
1753
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1754
1754
|
*/
|
|
1755
1755
|
indent: [{
|
|
1756
|
-
indent:
|
|
1756
|
+
indent: P()
|
|
1757
1757
|
}],
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Vertical Alignment
|
|
@@ -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: [...C(), "hidden"]
|
|
2086
2086
|
}],
|
|
2087
2087
|
/**
|
|
2088
2088
|
* Divide Width X
|
|
@@ -2120,7 +2120,7 @@ const Z = (e) => {
|
|
|
2120
2120
|
* @see https://tailwindcss.com/docs/divide-style
|
|
2121
2121
|
*/
|
|
2122
2122
|
"divide-style": [{
|
|
2123
|
-
divide:
|
|
2123
|
+
divide: C()
|
|
2124
2124
|
}],
|
|
2125
2125
|
/**
|
|
2126
2126
|
* Border Color
|
|
@@ -2197,7 +2197,7 @@ const Z = (e) => {
|
|
|
2197
2197
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2198
2198
|
*/
|
|
2199
2199
|
"outline-style": [{
|
|
2200
|
-
outline: ["", ...
|
|
2200
|
+
outline: ["", ...C()]
|
|
2201
2201
|
}],
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Outline Offset
|
|
@@ -2573,14 +2573,14 @@ const Z = (e) => {
|
|
|
2573
2573
|
* @see https://tailwindcss.com/docs/skew
|
|
2574
2574
|
*/
|
|
2575
2575
|
"skew-x": [{
|
|
2576
|
-
"skew-x": [
|
|
2576
|
+
"skew-x": [A]
|
|
2577
2577
|
}],
|
|
2578
2578
|
/**
|
|
2579
2579
|
* Skew Y
|
|
2580
2580
|
* @see https://tailwindcss.com/docs/skew
|
|
2581
2581
|
*/
|
|
2582
2582
|
"skew-y": [{
|
|
2583
|
-
"skew-y": [
|
|
2583
|
+
"skew-y": [A]
|
|
2584
2584
|
}],
|
|
2585
2585
|
/**
|
|
2586
2586
|
* Transform Origin
|
|
@@ -2644,126 +2644,126 @@ const Z = (e) => {
|
|
|
2644
2644
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2645
2645
|
*/
|
|
2646
2646
|
"scroll-m": [{
|
|
2647
|
-
"scroll-m":
|
|
2647
|
+
"scroll-m": P()
|
|
2648
2648
|
}],
|
|
2649
2649
|
/**
|
|
2650
2650
|
* Scroll Margin X
|
|
2651
2651
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2652
2652
|
*/
|
|
2653
2653
|
"scroll-mx": [{
|
|
2654
|
-
"scroll-mx":
|
|
2654
|
+
"scroll-mx": P()
|
|
2655
2655
|
}],
|
|
2656
2656
|
/**
|
|
2657
2657
|
* Scroll Margin Y
|
|
2658
2658
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2659
2659
|
*/
|
|
2660
2660
|
"scroll-my": [{
|
|
2661
|
-
"scroll-my":
|
|
2661
|
+
"scroll-my": P()
|
|
2662
2662
|
}],
|
|
2663
2663
|
/**
|
|
2664
2664
|
* Scroll Margin Start
|
|
2665
2665
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2666
2666
|
*/
|
|
2667
2667
|
"scroll-ms": [{
|
|
2668
|
-
"scroll-ms":
|
|
2668
|
+
"scroll-ms": P()
|
|
2669
2669
|
}],
|
|
2670
2670
|
/**
|
|
2671
2671
|
* Scroll Margin End
|
|
2672
2672
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2673
2673
|
*/
|
|
2674
2674
|
"scroll-me": [{
|
|
2675
|
-
"scroll-me":
|
|
2675
|
+
"scroll-me": P()
|
|
2676
2676
|
}],
|
|
2677
2677
|
/**
|
|
2678
2678
|
* Scroll Margin Top
|
|
2679
2679
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2680
2680
|
*/
|
|
2681
2681
|
"scroll-mt": [{
|
|
2682
|
-
"scroll-mt":
|
|
2682
|
+
"scroll-mt": P()
|
|
2683
2683
|
}],
|
|
2684
2684
|
/**
|
|
2685
2685
|
* Scroll Margin Right
|
|
2686
2686
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2687
2687
|
*/
|
|
2688
2688
|
"scroll-mr": [{
|
|
2689
|
-
"scroll-mr":
|
|
2689
|
+
"scroll-mr": P()
|
|
2690
2690
|
}],
|
|
2691
2691
|
/**
|
|
2692
2692
|
* Scroll Margin Bottom
|
|
2693
2693
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2694
2694
|
*/
|
|
2695
2695
|
"scroll-mb": [{
|
|
2696
|
-
"scroll-mb":
|
|
2696
|
+
"scroll-mb": P()
|
|
2697
2697
|
}],
|
|
2698
2698
|
/**
|
|
2699
2699
|
* Scroll Margin Left
|
|
2700
2700
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2701
2701
|
*/
|
|
2702
2702
|
"scroll-ml": [{
|
|
2703
|
-
"scroll-ml":
|
|
2703
|
+
"scroll-ml": P()
|
|
2704
2704
|
}],
|
|
2705
2705
|
/**
|
|
2706
2706
|
* Scroll Padding
|
|
2707
2707
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2708
2708
|
*/
|
|
2709
2709
|
"scroll-p": [{
|
|
2710
|
-
"scroll-p":
|
|
2710
|
+
"scroll-p": P()
|
|
2711
2711
|
}],
|
|
2712
2712
|
/**
|
|
2713
2713
|
* Scroll Padding X
|
|
2714
2714
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2715
2715
|
*/
|
|
2716
2716
|
"scroll-px": [{
|
|
2717
|
-
"scroll-px":
|
|
2717
|
+
"scroll-px": P()
|
|
2718
2718
|
}],
|
|
2719
2719
|
/**
|
|
2720
2720
|
* Scroll Padding Y
|
|
2721
2721
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2722
2722
|
*/
|
|
2723
2723
|
"scroll-py": [{
|
|
2724
|
-
"scroll-py":
|
|
2724
|
+
"scroll-py": P()
|
|
2725
2725
|
}],
|
|
2726
2726
|
/**
|
|
2727
2727
|
* Scroll Padding Start
|
|
2728
2728
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2729
2729
|
*/
|
|
2730
2730
|
"scroll-ps": [{
|
|
2731
|
-
"scroll-ps":
|
|
2731
|
+
"scroll-ps": P()
|
|
2732
2732
|
}],
|
|
2733
2733
|
/**
|
|
2734
2734
|
* Scroll Padding End
|
|
2735
2735
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2736
2736
|
*/
|
|
2737
2737
|
"scroll-pe": [{
|
|
2738
|
-
"scroll-pe":
|
|
2738
|
+
"scroll-pe": P()
|
|
2739
2739
|
}],
|
|
2740
2740
|
/**
|
|
2741
2741
|
* Scroll Padding Top
|
|
2742
2742
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2743
2743
|
*/
|
|
2744
2744
|
"scroll-pt": [{
|
|
2745
|
-
"scroll-pt":
|
|
2745
|
+
"scroll-pt": P()
|
|
2746
2746
|
}],
|
|
2747
2747
|
/**
|
|
2748
2748
|
* Scroll Padding Right
|
|
2749
2749
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2750
2750
|
*/
|
|
2751
2751
|
"scroll-pr": [{
|
|
2752
|
-
"scroll-pr":
|
|
2752
|
+
"scroll-pr": P()
|
|
2753
2753
|
}],
|
|
2754
2754
|
/**
|
|
2755
2755
|
* Scroll Padding Bottom
|
|
2756
2756
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2757
2757
|
*/
|
|
2758
2758
|
"scroll-pb": [{
|
|
2759
|
-
"scroll-pb":
|
|
2759
|
+
"scroll-pb": P()
|
|
2760
2760
|
}],
|
|
2761
2761
|
/**
|
|
2762
2762
|
* Scroll Padding Left
|
|
2763
2763
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2764
2764
|
*/
|
|
2765
2765
|
"scroll-pl": [{
|
|
2766
|
-
"scroll-pl":
|
|
2766
|
+
"scroll-pl": P()
|
|
2767
2767
|
}],
|
|
2768
2768
|
/**
|
|
2769
2769
|
* Scroll Snap Align
|
|
@@ -2947,7 +2947,7 @@ const Z = (e) => {
|
|
|
2947
2947
|
const n = t[r];
|
|
2948
2948
|
n !== void 0 && (e[r] = (e[r] || []).concat(n));
|
|
2949
2949
|
}
|
|
2950
|
-
}, Zo = (e, ...t) => typeof e == "function" ? Bt(Nt, e, ...t) : Bt(() => Ko(Nt(), e), ...t), ct = /* @__PURE__ */ Bt(Nt),
|
|
2950
|
+
}, Zo = (e, ...t) => typeof e == "function" ? Bt(Nt, e, ...t) : Bt(() => Ko(Nt(), e), ...t), ct = /* @__PURE__ */ Bt(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"}`,
|
|
@@ -2975,6 +2975,13 @@ const nn = {
|
|
|
2975
2975
|
fontWeight: "var(--xLargeHero-TitleRegular-font-weight)"
|
|
2976
2976
|
}
|
|
2977
2977
|
],
|
|
2978
|
+
xLargeHeroTitleEmphasized: [
|
|
2979
|
+
"var(--xLargeHero-TitleEmphasized-font-size)",
|
|
2980
|
+
{
|
|
2981
|
+
lineHeight: "var(--xLargeHero-TitleEmphasized-line-height)",
|
|
2982
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
2983
|
+
}
|
|
2984
|
+
],
|
|
2978
2985
|
xLargeTitle1Regular: [
|
|
2979
2986
|
"var(--xLargeTitle-1Regular-font-size)",
|
|
2980
2987
|
{
|
|
@@ -3081,6 +3088,13 @@ const nn = {
|
|
|
3081
3088
|
fontWeight: "var(--LargeHero-TitleRegular-font-weight)"
|
|
3082
3089
|
}
|
|
3083
3090
|
],
|
|
3091
|
+
largeHeroTitleEmphasized: [
|
|
3092
|
+
"var(--LargeHero-TitleEmphasized-font-size)",
|
|
3093
|
+
{
|
|
3094
|
+
lineHeight: "var(--LargeHero-TitleEmphasized-line-height)",
|
|
3095
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
3096
|
+
}
|
|
3097
|
+
],
|
|
3084
3098
|
largeTitle1Regular: [
|
|
3085
3099
|
"var(--LargeTitle-1Regular-font-size)",
|
|
3086
3100
|
{
|
|
@@ -3187,6 +3201,13 @@ const nn = {
|
|
|
3187
3201
|
fontWeight: "var(--MediumHero-TitleRegular-font-weight)"
|
|
3188
3202
|
}
|
|
3189
3203
|
],
|
|
3204
|
+
mediumHeroTitleEmphasized: [
|
|
3205
|
+
"var(--MediumHero-TitleEmphasized-font-size)",
|
|
3206
|
+
{
|
|
3207
|
+
lineHeight: "var(--MediumHero-TitleEmphasized-line-height)",
|
|
3208
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
3209
|
+
}
|
|
3210
|
+
],
|
|
3190
3211
|
mediumTitle1Regular: [
|
|
3191
3212
|
"var(--MediumTitle-1Regular-font-size)",
|
|
3192
3213
|
{
|
|
@@ -3369,6 +3390,13 @@ const nn = {
|
|
|
3369
3390
|
fontWeight: "var(--SmallHero-TitleRegular-font-weight)"
|
|
3370
3391
|
}
|
|
3371
3392
|
],
|
|
3393
|
+
smallHeroTitleEmphasized: [
|
|
3394
|
+
"var(--SmallHero-TitleEmphasized-font-size)",
|
|
3395
|
+
{
|
|
3396
|
+
lineHeight: "var(--SmallHero-TitleEmphasized-line-height)",
|
|
3397
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
3398
|
+
}
|
|
3399
|
+
],
|
|
3372
3400
|
smallTitle1Regular: [
|
|
3373
3401
|
"var(--SmallTitle-1Regular-font-size)",
|
|
3374
3402
|
{
|
|
@@ -3531,6 +3559,13 @@ const nn = {
|
|
|
3531
3559
|
fontWeight: "var(--xSmallHero-TitleRegular-font-weight)"
|
|
3532
3560
|
}
|
|
3533
3561
|
],
|
|
3562
|
+
xSmallHeroTitleEmphasized: [
|
|
3563
|
+
"var(--xSmallHero-TitleEmphasized-font-size)",
|
|
3564
|
+
{
|
|
3565
|
+
lineHeight: "var(--xSmallHero-TitleEmphasized-line-height)",
|
|
3566
|
+
fontWeight: "var(--font-weight-semibold)"
|
|
3567
|
+
}
|
|
3568
|
+
],
|
|
3534
3569
|
xSmallTitle1Regular: [
|
|
3535
3570
|
"var(--xSmallTitle-1Regular-font-size)",
|
|
3536
3571
|
{
|
|
@@ -3856,9 +3891,9 @@ const Qa = (e, t = "AED") => {
|
|
|
3856
3891
|
)
|
|
3857
3892
|
}, p), {
|
|
3858
3893
|
children: /* @__PURE__ */ R.jsxs("div", { className: "ds-flex ds-items-center ds-gap-2", children: [
|
|
3859
|
-
a && /* @__PURE__ */ R.jsx(
|
|
3894
|
+
a && /* @__PURE__ */ R.jsx(Cr, { size: t, children: a }),
|
|
3860
3895
|
o && /* @__PURE__ */ R.jsx("div", { children: o }),
|
|
3861
|
-
l && /* @__PURE__ */ R.jsx(
|
|
3896
|
+
l && /* @__PURE__ */ R.jsx(Cr, { size: t, children: l })
|
|
3862
3897
|
] })
|
|
3863
3898
|
})
|
|
3864
3899
|
),
|
|
@@ -4008,7 +4043,7 @@ function Xt(e) {
|
|
|
4008
4043
|
}
|
|
4009
4044
|
function ii(e) {
|
|
4010
4045
|
let t = ve(e);
|
|
4011
|
-
for (; ae(t) && !
|
|
4046
|
+
for (; ae(t) && !Ce(t); ) {
|
|
4012
4047
|
if (Xt(t))
|
|
4013
4048
|
return t;
|
|
4014
4049
|
if (bt(t))
|
|
@@ -4020,7 +4055,7 @@ function ii(e) {
|
|
|
4020
4055
|
function Jt() {
|
|
4021
4056
|
return typeof CSS == "undefined" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
4022
4057
|
}
|
|
4023
|
-
function
|
|
4058
|
+
function Ce(e) {
|
|
4024
4059
|
return ["html", "body", "#document"].includes(Ne(e));
|
|
4025
4060
|
}
|
|
4026
4061
|
function de(e) {
|
|
@@ -4049,13 +4084,13 @@ function ve(e) {
|
|
|
4049
4084
|
}
|
|
4050
4085
|
function sn(e) {
|
|
4051
4086
|
const t = ve(e);
|
|
4052
|
-
return
|
|
4087
|
+
return Ce(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ae(t) && Ze(t) ? t : sn(t);
|
|
4053
4088
|
}
|
|
4054
|
-
function
|
|
4089
|
+
function Te(e, t, r) {
|
|
4055
4090
|
var n;
|
|
4056
4091
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
4057
4092
|
const o = sn(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = ie(o);
|
|
4058
|
-
return a ? t.concat(i, i.visualViewport || [], Ze(o) ? o : [], i.frameElement && r ?
|
|
4093
|
+
return a ? t.concat(i, i.visualViewport || [], Ze(o) ? o : [], i.frameElement && r ? Te(i.frameElement) : []) : t.concat(o, Te(o, [], r));
|
|
4059
4094
|
}
|
|
4060
4095
|
function $t(e) {
|
|
4061
4096
|
let t = e.activeElement;
|
|
@@ -4170,11 +4205,11 @@ function gn(e) {
|
|
|
4170
4205
|
function hn(e) {
|
|
4171
4206
|
return e === "y" ? "height" : "width";
|
|
4172
4207
|
}
|
|
4173
|
-
function
|
|
4208
|
+
function He(e) {
|
|
4174
4209
|
return ["top", "bottom"].includes(ze(e)) ? "y" : "x";
|
|
4175
4210
|
}
|
|
4176
4211
|
function mn(e) {
|
|
4177
|
-
return gn(
|
|
4212
|
+
return gn(He(e));
|
|
4178
4213
|
}
|
|
4179
4214
|
function hi(e, t, r) {
|
|
4180
4215
|
r === void 0 && (r = !1);
|
|
@@ -4302,11 +4337,11 @@ var yi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4302
4337
|
}, Si = function(t, r) {
|
|
4303
4338
|
var n = bn(t);
|
|
4304
4339
|
return n < 0 && r && !vn(t) ? 0 : n;
|
|
4305
|
-
},
|
|
4340
|
+
}, Ti = function(t, r) {
|
|
4306
4341
|
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
4307
4342
|
}, xn = function(t) {
|
|
4308
4343
|
return t.tagName === "INPUT";
|
|
4309
|
-
},
|
|
4344
|
+
}, Ci = function(t) {
|
|
4310
4345
|
return xn(t) && t.type === "hidden";
|
|
4311
4346
|
}, ki = function(t) {
|
|
4312
4347
|
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
@@ -4335,9 +4370,9 @@ var yi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4335
4370
|
return !a || a === t;
|
|
4336
4371
|
}, Mi = function(t) {
|
|
4337
4372
|
return xn(t) && t.type === "radio";
|
|
4338
|
-
},
|
|
4373
|
+
}, Hi = function(t) {
|
|
4339
4374
|
return Mi(t) && !Li(t);
|
|
4340
|
-
},
|
|
4375
|
+
}, Pi = function(t) {
|
|
4341
4376
|
var r, n = t && ht(t), o = (r = n) === null || r === void 0 ? void 0 : r.host, a = !1;
|
|
4342
4377
|
if (n && n !== t) {
|
|
4343
4378
|
var i, l, c;
|
|
@@ -4350,7 +4385,7 @@ var yi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4350
4385
|
}, Mr = function(t) {
|
|
4351
4386
|
var r = t.getBoundingClientRect(), n = r.width, o = r.height;
|
|
4352
4387
|
return n === 0 && o === 0;
|
|
4353
|
-
},
|
|
4388
|
+
}, _i = function(t, r) {
|
|
4354
4389
|
var n = r.displayCheck, o = r.getShadowRoot;
|
|
4355
4390
|
if (getComputedStyle(t).visibility === "hidden")
|
|
4356
4391
|
return !0;
|
|
@@ -4367,14 +4402,14 @@ var yi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4367
4402
|
}
|
|
4368
4403
|
t = l;
|
|
4369
4404
|
}
|
|
4370
|
-
if (
|
|
4405
|
+
if (Pi(t))
|
|
4371
4406
|
return !t.getClientRects().length;
|
|
4372
4407
|
if (n !== "legacy-full")
|
|
4373
4408
|
return !0;
|
|
4374
4409
|
} else if (n === "non-zero-area")
|
|
4375
4410
|
return Mr(t);
|
|
4376
4411
|
return !1;
|
|
4377
|
-
},
|
|
4412
|
+
}, Ai = function(t) {
|
|
4378
4413
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
4379
4414
|
for (var r = t.parentElement; r; ) {
|
|
4380
4415
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
@@ -4392,10 +4427,10 @@ var yi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4392
4427
|
return !(r.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
4393
4428
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
4394
4429
|
// note related to `candidateSelectors`)
|
|
4395
|
-
mt(r) ||
|
|
4396
|
-
ki(r) ||
|
|
4397
|
-
},
|
|
4398
|
-
return !(
|
|
4430
|
+
mt(r) || Ci(r) || _i(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
4431
|
+
ki(r) || Ai(r));
|
|
4432
|
+
}, Hr = function(t, r) {
|
|
4433
|
+
return !(Hi(r) || bn(r) < 0 || !Wi(t, r));
|
|
4399
4434
|
}, Oi = function(t) {
|
|
4400
4435
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
4401
4436
|
return !!(isNaN(r) || r >= 0);
|
|
@@ -4410,25 +4445,25 @@ var yi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4410
4445
|
isScope: i,
|
|
4411
4446
|
content: u
|
|
4412
4447
|
});
|
|
4413
|
-
}), n.sort(
|
|
4448
|
+
}), n.sort(Ti).reduce(function(o, a) {
|
|
4414
4449
|
return a.isScope ? o.push.apply(o, a.content) : o.push(a.content), o;
|
|
4415
4450
|
}, []).concat(r);
|
|
4416
4451
|
}, yn = function(t, r) {
|
|
4417
4452
|
r = r || {};
|
|
4418
4453
|
var n;
|
|
4419
4454
|
return r.getShadowRoot ? n = Ei([t], r.includeContainer, {
|
|
4420
|
-
filter:
|
|
4455
|
+
filter: Hr.bind(null, r),
|
|
4421
4456
|
flatten: !1,
|
|
4422
4457
|
getShadowRoot: r.getShadowRoot,
|
|
4423
4458
|
shadowRootFilter: Oi
|
|
4424
|
-
}) : n = Ri(t, r.includeContainer,
|
|
4459
|
+
}) : n = Ri(t, r.includeContainer, Hr.bind(null, r)), ji(n);
|
|
4425
4460
|
};
|
|
4426
|
-
function
|
|
4461
|
+
function Pr(e, t, r) {
|
|
4427
4462
|
let {
|
|
4428
4463
|
reference: n,
|
|
4429
4464
|
floating: o
|
|
4430
4465
|
} = e;
|
|
4431
|
-
const a =
|
|
4466
|
+
const a = He(t), i = mn(t), l = hn(i), c = ze(t), u = a === "y", f = n.x + n.width / 2 - o.width / 2, h = n.y + n.height / 2 - o.height / 2, p = n[l] / 2 - o[l] / 2;
|
|
4432
4467
|
let d;
|
|
4433
4468
|
switch (c) {
|
|
4434
4469
|
case "top":
|
|
@@ -4485,7 +4520,7 @@ const Fi = (e, t, r) => me(void 0, null, function* () {
|
|
|
4485
4520
|
}), {
|
|
4486
4521
|
x: f,
|
|
4487
4522
|
y: h
|
|
4488
|
-
} =
|
|
4523
|
+
} = Pr(u, n, c), p = n, d = {}, g = 0;
|
|
4489
4524
|
for (let m = 0; m < l.length; m++) {
|
|
4490
4525
|
const {
|
|
4491
4526
|
name: y,
|
|
@@ -4518,7 +4553,7 @@ const Fi = (e, t, r) => me(void 0, null, function* () {
|
|
|
4518
4553
|
}) : z.rects), {
|
|
4519
4554
|
x: f,
|
|
4520
4555
|
y: h
|
|
4521
|
-
} =
|
|
4556
|
+
} = Pr(u, p, c)), m = -1);
|
|
4522
4557
|
}
|
|
4523
4558
|
return {
|
|
4524
4559
|
x: f,
|
|
@@ -4606,55 +4641,55 @@ const Di = function(e) {
|
|
|
4606
4641
|
]);
|
|
4607
4642
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
4608
4643
|
return {};
|
|
4609
|
-
const w = ze(a), S =
|
|
4610
|
-
!d && N &&
|
|
4611
|
-
const G = [c, ...
|
|
4644
|
+
const w = ze(a), S = He(c), E = ze(c) === c, z = yield u.isRTL == null ? void 0 : u.isRTL(f.floating), A = d || (E || !y ? [ft(c)] : mi(c)), N = m !== "none";
|
|
4645
|
+
!d && N && A.push(...vi(c, y, m, z));
|
|
4646
|
+
const G = [c, ...A], J = yield Zt(r, x), U = [];
|
|
4612
4647
|
let V = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
4613
4648
|
if (h && U.push(J[w]), p) {
|
|
4614
|
-
const
|
|
4615
|
-
U.push(J[
|
|
4649
|
+
const C = hi(a, l, z);
|
|
4650
|
+
U.push(J[C[0]], J[C[1]]);
|
|
4616
4651
|
}
|
|
4617
4652
|
if (V = [...V, {
|
|
4618
4653
|
placement: a,
|
|
4619
4654
|
overflows: U
|
|
4620
|
-
}], !U.every((
|
|
4621
|
-
var
|
|
4622
|
-
const
|
|
4655
|
+
}], !U.every((C) => C <= 0)) {
|
|
4656
|
+
var P, q;
|
|
4657
|
+
const C = (((P = i.flip) == null ? void 0 : P.index) || 0) + 1, M = G[C];
|
|
4623
4658
|
if (M)
|
|
4624
4659
|
return {
|
|
4625
4660
|
data: {
|
|
4626
|
-
index:
|
|
4661
|
+
index: C,
|
|
4627
4662
|
overflows: V
|
|
4628
4663
|
},
|
|
4629
4664
|
reset: {
|
|
4630
4665
|
placement: M
|
|
4631
4666
|
}
|
|
4632
4667
|
};
|
|
4633
|
-
let
|
|
4634
|
-
if (!
|
|
4668
|
+
let H = (q = V.filter((I) => I.overflows[0] <= 0).sort((I, W) => I.overflows[1] - W.overflows[1])[0]) == null ? void 0 : q.placement;
|
|
4669
|
+
if (!H)
|
|
4635
4670
|
switch (g) {
|
|
4636
4671
|
case "bestFit": {
|
|
4637
|
-
var
|
|
4638
|
-
const I = (
|
|
4672
|
+
var _;
|
|
4673
|
+
const I = (_ = V.filter((W) => {
|
|
4639
4674
|
if (N) {
|
|
4640
|
-
const F =
|
|
4675
|
+
const F = He(W.placement);
|
|
4641
4676
|
return F === S || // Create a bias to the `y` side axis due to horizontal
|
|
4642
4677
|
// reading directions favoring greater width.
|
|
4643
4678
|
F === "y";
|
|
4644
4679
|
}
|
|
4645
4680
|
return !0;
|
|
4646
|
-
}).map((W) => [W.placement, W.overflows.filter((F) => F > 0).reduce((F, xe) => F + xe, 0)]).sort((W, F) => W[1] - F[1])[0]) == null ? void 0 :
|
|
4647
|
-
I && (
|
|
4681
|
+
}).map((W) => [W.placement, W.overflows.filter((F) => F > 0).reduce((F, xe) => F + xe, 0)]).sort((W, F) => W[1] - F[1])[0]) == null ? void 0 : _[0];
|
|
4682
|
+
I && (H = I);
|
|
4648
4683
|
break;
|
|
4649
4684
|
}
|
|
4650
4685
|
case "initialPlacement":
|
|
4651
|
-
|
|
4686
|
+
H = c;
|
|
4652
4687
|
break;
|
|
4653
4688
|
}
|
|
4654
|
-
if (a !==
|
|
4689
|
+
if (a !== H)
|
|
4655
4690
|
return {
|
|
4656
4691
|
reset: {
|
|
4657
|
-
placement:
|
|
4692
|
+
placement: H
|
|
4658
4693
|
}
|
|
4659
4694
|
};
|
|
4660
4695
|
}
|
|
@@ -4669,7 +4704,7 @@ function Bi(e, t) {
|
|
|
4669
4704
|
placement: r,
|
|
4670
4705
|
platform: n,
|
|
4671
4706
|
elements: o
|
|
4672
|
-
} = e, a = yield n.isRTL == null ? void 0 : n.isRTL(o.floating), i = ze(r), l = et(r), c =
|
|
4707
|
+
} = e, a = yield n.isRTL == null ? void 0 : n.isRTL(o.floating), i = ze(r), l = et(r), c = He(r) === "y", u = ["left", "top"].includes(i) ? -1 : 1, f = a && c ? -1 : 1, h = Qe(t, e);
|
|
4673
4708
|
let {
|
|
4674
4709
|
mainAxis: p,
|
|
4675
4710
|
crossAxis: d,
|
|
@@ -4747,7 +4782,7 @@ const Ni = function(e) {
|
|
|
4747
4782
|
]), f = {
|
|
4748
4783
|
x: n,
|
|
4749
4784
|
y: o
|
|
4750
|
-
}, h = yield Zt(r, u), p =
|
|
4785
|
+
}, h = yield Zt(r, u), p = He(ze(a)), d = gn(p);
|
|
4751
4786
|
let g = f[d], m = f[p];
|
|
4752
4787
|
if (i) {
|
|
4753
4788
|
const w = d === "y" ? "top" : "left", S = d === "y" ? "bottom" : "right", E = g + h[w], z = g - h[S];
|
|
@@ -4786,21 +4821,21 @@ const Ni = function(e) {
|
|
|
4786
4821
|
}
|
|
4787
4822
|
} = J, c = he(J, [
|
|
4788
4823
|
"apply"
|
|
4789
|
-
]), u = yield Zt(r, c), f = ze(n), h = et(n), p =
|
|
4824
|
+
]), u = yield Zt(r, c), f = ze(n), h = et(n), p = He(n) === "y", {
|
|
4790
4825
|
width: d,
|
|
4791
4826
|
height: g
|
|
4792
4827
|
} = o.floating;
|
|
4793
4828
|
let m, y;
|
|
4794
4829
|
f === "top" || f === "bottom" ? (m = f, y = h === ((yield a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = f, m = h === "end" ? "top" : "bottom");
|
|
4795
4830
|
const x = g - u.top - u.bottom, w = d - u.left - u.right, S = Se(g - u[m], x), E = Se(d - u[y], w), z = !r.middlewareData.shift;
|
|
4796
|
-
let
|
|
4797
|
-
if (p ? N = h || z ? Se(E, w) : w :
|
|
4798
|
-
const U = le(u.left, 0), V = le(u.right, 0),
|
|
4799
|
-
p ? N = d - 2 * (U !== 0 || V !== 0 ? U + V : le(u.left, u.right)) :
|
|
4831
|
+
let A = S, N = E;
|
|
4832
|
+
if (p ? N = h || z ? Se(E, w) : w : A = h || z ? Se(S, x) : x, z && !h) {
|
|
4833
|
+
const U = le(u.left, 0), V = le(u.right, 0), P = le(u.top, 0), q = le(u.bottom, 0);
|
|
4834
|
+
p ? N = d - 2 * (U !== 0 || V !== 0 ? U + V : le(u.left, u.right)) : A = g - 2 * (P !== 0 || q !== 0 ? P + q : le(u.top, u.bottom));
|
|
4800
4835
|
}
|
|
4801
4836
|
yield l($(L({}, r), {
|
|
4802
4837
|
availableWidth: N,
|
|
4803
|
-
availableHeight:
|
|
4838
|
+
availableHeight: A
|
|
4804
4839
|
}));
|
|
4805
4840
|
const G = yield a.getDimensions(i.floating);
|
|
4806
4841
|
return d !== G.width || g !== G.height ? {
|
|
@@ -4851,7 +4886,7 @@ function Rn(e) {
|
|
|
4851
4886
|
function Gi(e, t, r) {
|
|
4852
4887
|
return t === void 0 && (t = !1), !r || t && r !== ie(e) ? !1 : t;
|
|
4853
4888
|
}
|
|
4854
|
-
function
|
|
4889
|
+
function Pe(e, t, r, n) {
|
|
4855
4890
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
4856
4891
|
const o = e.getBoundingClientRect(), a = Qt(e);
|
|
4857
4892
|
let i = ke(1);
|
|
@@ -4889,7 +4924,7 @@ function Ui(e) {
|
|
|
4889
4924
|
}, u = ke(1);
|
|
4890
4925
|
const f = ke(0), h = ae(n);
|
|
4891
4926
|
if ((h || !h && !a) && ((Ne(n) !== "body" || Ze(i)) && (c = xt(n)), ae(n))) {
|
|
4892
|
-
const p =
|
|
4927
|
+
const p = Pe(n);
|
|
4893
4928
|
u = je(n), f.x = p.x + n.clientLeft, f.y = p.y + n.clientTop;
|
|
4894
4929
|
}
|
|
4895
4930
|
return {
|
|
@@ -4903,7 +4938,7 @@ function qi(e) {
|
|
|
4903
4938
|
return Array.from(e.getClientRects());
|
|
4904
4939
|
}
|
|
4905
4940
|
function En(e) {
|
|
4906
|
-
return
|
|
4941
|
+
return Pe(be(e)).left + xt(e).scrollLeft;
|
|
4907
4942
|
}
|
|
4908
4943
|
function Yi(e) {
|
|
4909
4944
|
const t = be(e), r = xt(e), n = e.ownerDocument.body, o = le(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = le(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
@@ -4932,7 +4967,7 @@ function Ki(e, t) {
|
|
|
4932
4967
|
};
|
|
4933
4968
|
}
|
|
4934
4969
|
function Xi(e, t) {
|
|
4935
|
-
const r =
|
|
4970
|
+
const r = Pe(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, a = ae(e) ? je(e) : ke(1), i = e.clientWidth * a.x, l = e.clientHeight * a.y, c = o * a.x, u = n * a.y;
|
|
4936
4971
|
return {
|
|
4937
4972
|
width: i,
|
|
4938
4973
|
height: l,
|
|
@@ -4940,7 +4975,7 @@ function Xi(e, t) {
|
|
|
4940
4975
|
y: u
|
|
4941
4976
|
};
|
|
4942
4977
|
}
|
|
4943
|
-
function
|
|
4978
|
+
function _r(e, t, r) {
|
|
4944
4979
|
let n;
|
|
4945
4980
|
if (t === "viewport")
|
|
4946
4981
|
n = Ki(e, r);
|
|
@@ -4959,16 +4994,16 @@ function Ar(e, t, r) {
|
|
|
4959
4994
|
}
|
|
4960
4995
|
function Sn(e, t) {
|
|
4961
4996
|
const r = ve(e);
|
|
4962
|
-
return r === t || !X(r) ||
|
|
4997
|
+
return r === t || !X(r) || Ce(r) ? !1 : de(r).position === "fixed" || Sn(r, t);
|
|
4963
4998
|
}
|
|
4964
4999
|
function Ji(e, t) {
|
|
4965
5000
|
const r = t.get(e);
|
|
4966
5001
|
if (r)
|
|
4967
5002
|
return r;
|
|
4968
|
-
let n =
|
|
5003
|
+
let n = Te(e, [], !1).filter((l) => X(l) && Ne(l) !== "body"), o = null;
|
|
4969
5004
|
const a = de(e).position === "fixed";
|
|
4970
5005
|
let i = a ? ve(e) : e;
|
|
4971
|
-
for (; X(i) && !
|
|
5006
|
+
for (; X(i) && !Ce(i); ) {
|
|
4972
5007
|
const l = de(i), c = Xt(i);
|
|
4973
5008
|
!c && l.position === "fixed" && (o = null), (a ? !c && !o : !c && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ze(i) && !c && Sn(e, i)) ? n = n.filter((f) => f !== i) : o = l, i = ve(i);
|
|
4974
5009
|
}
|
|
@@ -4982,9 +5017,9 @@ function Zi(e) {
|
|
|
4982
5017
|
strategy: o
|
|
4983
5018
|
} = e;
|
|
4984
5019
|
const i = [...r === "clippingAncestors" ? bt(t) ? [] : Ji(t, this._c) : [].concat(r), n], l = i[0], c = i.reduce((u, f) => {
|
|
4985
|
-
const h =
|
|
5020
|
+
const h = _r(t, f, o);
|
|
4986
5021
|
return u.top = le(h.top, u.top), u.right = Se(h.right, u.right), u.bottom = Se(h.bottom, u.bottom), u.left = le(h.left, u.left), u;
|
|
4987
|
-
},
|
|
5022
|
+
}, _r(t, l, o));
|
|
4988
5023
|
return {
|
|
4989
5024
|
width: c.right - c.left,
|
|
4990
5025
|
height: c.bottom - c.top,
|
|
@@ -5003,7 +5038,7 @@ function Qi(e) {
|
|
|
5003
5038
|
};
|
|
5004
5039
|
}
|
|
5005
5040
|
function ea(e, t, r) {
|
|
5006
|
-
const n = ae(t), o = be(t), a = r === "fixed", i =
|
|
5041
|
+
const n = ae(t), o = be(t), a = r === "fixed", i = Pe(e, !0, a, t);
|
|
5007
5042
|
let l = {
|
|
5008
5043
|
scrollLeft: 0,
|
|
5009
5044
|
scrollTop: 0
|
|
@@ -5011,7 +5046,7 @@ function ea(e, t, r) {
|
|
|
5011
5046
|
const c = ke(0);
|
|
5012
5047
|
if (n || !n && !a)
|
|
5013
5048
|
if ((Ne(t) !== "body" || Ze(o)) && (l = xt(t)), n) {
|
|
5014
|
-
const h =
|
|
5049
|
+
const h = Pe(t, !0, a, t);
|
|
5015
5050
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
5016
5051
|
} else o && (c.x = En(o));
|
|
5017
5052
|
const u = i.left + l.scrollLeft - c.x, f = i.top + l.scrollTop - c.y;
|
|
@@ -5025,30 +5060,30 @@ function ea(e, t, r) {
|
|
|
5025
5060
|
function Mt(e) {
|
|
5026
5061
|
return de(e).position === "static";
|
|
5027
5062
|
}
|
|
5028
|
-
function
|
|
5063
|
+
function Ar(e, t) {
|
|
5029
5064
|
return !ae(e) || de(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
5030
5065
|
}
|
|
5031
|
-
function
|
|
5066
|
+
function Tn(e, t) {
|
|
5032
5067
|
const r = ie(e);
|
|
5033
5068
|
if (bt(e))
|
|
5034
5069
|
return r;
|
|
5035
5070
|
if (!ae(e)) {
|
|
5036
5071
|
let o = ve(e);
|
|
5037
|
-
for (; o && !
|
|
5072
|
+
for (; o && !Ce(o); ) {
|
|
5038
5073
|
if (X(o) && !Mt(o))
|
|
5039
5074
|
return o;
|
|
5040
5075
|
o = ve(o);
|
|
5041
5076
|
}
|
|
5042
5077
|
return r;
|
|
5043
5078
|
}
|
|
5044
|
-
let n =
|
|
5079
|
+
let n = Ar(e, t);
|
|
5045
5080
|
for (; n && oi(n) && Mt(n); )
|
|
5046
|
-
n =
|
|
5047
|
-
return n &&
|
|
5081
|
+
n = Ar(n, t);
|
|
5082
|
+
return n && Ce(n) && Mt(n) && !Xt(n) ? r : n || ii(e) || r;
|
|
5048
5083
|
}
|
|
5049
5084
|
const ta = function(e) {
|
|
5050
5085
|
return me(this, null, function* () {
|
|
5051
|
-
const t = this.getOffsetParent ||
|
|
5086
|
+
const t = this.getOffsetParent || Tn, r = this.getDimensions, n = yield r(e.floating);
|
|
5052
5087
|
return {
|
|
5053
5088
|
reference: ea(e.reference, yield t(e.floating), e.strategy),
|
|
5054
5089
|
floating: {
|
|
@@ -5067,7 +5102,7 @@ const na = {
|
|
|
5067
5102
|
convertOffsetParentRelativeRectToViewportRelativeRect: Ui,
|
|
5068
5103
|
getDocumentElement: be,
|
|
5069
5104
|
getClippingRect: Zi,
|
|
5070
|
-
getOffsetParent:
|
|
5105
|
+
getOffsetParent: Tn,
|
|
5071
5106
|
getElementRects: ta,
|
|
5072
5107
|
getClientRects: qi,
|
|
5073
5108
|
getDimensions: Qi,
|
|
@@ -5098,11 +5133,11 @@ function oa(e, t) {
|
|
|
5098
5133
|
};
|
|
5099
5134
|
let S = !0;
|
|
5100
5135
|
function E(z) {
|
|
5101
|
-
const
|
|
5102
|
-
if (
|
|
5136
|
+
const A = z[0].intersectionRatio;
|
|
5137
|
+
if (A !== c) {
|
|
5103
5138
|
if (!S)
|
|
5104
5139
|
return i();
|
|
5105
|
-
|
|
5140
|
+
A ? i(!1, A) : n = setTimeout(() => {
|
|
5106
5141
|
i(!1, 1e-7);
|
|
5107
5142
|
}, 1e3);
|
|
5108
5143
|
}
|
|
@@ -5128,7 +5163,7 @@ function ia(e, t, r, n) {
|
|
|
5128
5163
|
elementResize: i = typeof ResizeObserver == "function",
|
|
5129
5164
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
5130
5165
|
animationFrame: c = !1
|
|
5131
|
-
} = n, u = Qt(e), f = o || a ? [...u ?
|
|
5166
|
+
} = n, u = Qt(e), f = o || a ? [...u ? Te(u) : [], ...Te(t)] : [];
|
|
5132
5167
|
f.forEach((x) => {
|
|
5133
5168
|
o && x.addEventListener("scroll", r, {
|
|
5134
5169
|
passive: !0
|
|
@@ -5143,10 +5178,10 @@ function ia(e, t, r, n) {
|
|
|
5143
5178
|
(S = d) == null || S.observe(t);
|
|
5144
5179
|
})), r();
|
|
5145
5180
|
}), u && !c && d.observe(u), d.observe(t));
|
|
5146
|
-
let g, m = c ?
|
|
5181
|
+
let g, m = c ? Pe(e) : null;
|
|
5147
5182
|
c && y();
|
|
5148
5183
|
function y() {
|
|
5149
|
-
const x =
|
|
5184
|
+
const x = Pe(e);
|
|
5150
5185
|
m && (x.x !== m.x || x.y !== m.y || x.width !== m.width || x.height !== m.height) && r(), m = x, g = requestAnimationFrame(y);
|
|
5151
5186
|
}
|
|
5152
5187
|
return r(), () => {
|
|
@@ -5197,11 +5232,11 @@ function pt(e, t) {
|
|
|
5197
5232
|
}
|
|
5198
5233
|
return e !== e && t !== t;
|
|
5199
5234
|
}
|
|
5200
|
-
function
|
|
5235
|
+
function Cn(e) {
|
|
5201
5236
|
return typeof window == "undefined" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5202
5237
|
}
|
|
5203
5238
|
function Wr(e, t) {
|
|
5204
|
-
const r =
|
|
5239
|
+
const r = Cn(e);
|
|
5205
5240
|
return Math.round(t * r) / r;
|
|
5206
5241
|
}
|
|
5207
5242
|
function Or(e) {
|
|
@@ -5234,19 +5269,19 @@ function da(e) {
|
|
|
5234
5269
|
}), [p, d] = v.useState(n);
|
|
5235
5270
|
pt(p, n) || d(n);
|
|
5236
5271
|
const [g, m] = v.useState(null), [y, x] = v.useState(null), w = v.useCallback((M) => {
|
|
5237
|
-
M !==
|
|
5272
|
+
M !== A.current && (A.current = M, m(M));
|
|
5238
5273
|
}, []), S = v.useCallback((M) => {
|
|
5239
5274
|
M !== N.current && (N.current = M, x(M));
|
|
5240
|
-
}, []), E = a || g, z = i || y,
|
|
5241
|
-
if (!
|
|
5275
|
+
}, []), E = a || g, z = i || y, A = v.useRef(null), N = v.useRef(null), G = v.useRef(f), J = c != null, U = Or(c), V = Or(o), P = v.useCallback(() => {
|
|
5276
|
+
if (!A.current || !N.current)
|
|
5242
5277
|
return;
|
|
5243
5278
|
const M = {
|
|
5244
5279
|
placement: t,
|
|
5245
5280
|
strategy: r,
|
|
5246
5281
|
middleware: p
|
|
5247
5282
|
};
|
|
5248
|
-
V.current && (M.platform = V.current), ua(
|
|
5249
|
-
const I = $(L({},
|
|
5283
|
+
V.current && (M.platform = V.current), ua(A.current, N.current, M).then((H) => {
|
|
5284
|
+
const I = $(L({}, H), {
|
|
5250
5285
|
isPositioned: !0
|
|
5251
5286
|
});
|
|
5252
5287
|
q.current && !pt(G.current, I) && (G.current = I, Kr.flushSync(() => {
|
|
@@ -5263,21 +5298,21 @@ function da(e) {
|
|
|
5263
5298
|
st(() => (q.current = !0, () => {
|
|
5264
5299
|
q.current = !1;
|
|
5265
5300
|
}), []), st(() => {
|
|
5266
|
-
if (E && (
|
|
5301
|
+
if (E && (A.current = E), z && (N.current = z), E && z) {
|
|
5267
5302
|
if (U.current)
|
|
5268
|
-
return U.current(E, z,
|
|
5269
|
-
|
|
5303
|
+
return U.current(E, z, P);
|
|
5304
|
+
P();
|
|
5270
5305
|
}
|
|
5271
|
-
}, [E, z,
|
|
5272
|
-
const
|
|
5273
|
-
reference:
|
|
5306
|
+
}, [E, z, P, U, J]);
|
|
5307
|
+
const _ = v.useMemo(() => ({
|
|
5308
|
+
reference: A,
|
|
5274
5309
|
floating: N,
|
|
5275
5310
|
setReference: w,
|
|
5276
5311
|
setFloating: S
|
|
5277
5312
|
}), [w, S]), k = v.useMemo(() => ({
|
|
5278
5313
|
reference: E,
|
|
5279
5314
|
floating: z
|
|
5280
|
-
}), [E, z]),
|
|
5315
|
+
}), [E, z]), C = v.useMemo(() => {
|
|
5281
5316
|
const M = {
|
|
5282
5317
|
position: r,
|
|
5283
5318
|
left: 0,
|
|
@@ -5285,23 +5320,23 @@ function da(e) {
|
|
|
5285
5320
|
};
|
|
5286
5321
|
if (!k.floating)
|
|
5287
5322
|
return M;
|
|
5288
|
-
const
|
|
5323
|
+
const H = Wr(k.floating, f.x), I = Wr(k.floating, f.y);
|
|
5289
5324
|
return l ? L($(L({}, M), {
|
|
5290
|
-
transform: "translate(" +
|
|
5291
|
-
}),
|
|
5325
|
+
transform: "translate(" + H + "px, " + I + "px)"
|
|
5326
|
+
}), Cn(k.floating) >= 1.5 && {
|
|
5292
5327
|
willChange: "transform"
|
|
5293
5328
|
}) : {
|
|
5294
5329
|
position: r,
|
|
5295
|
-
left:
|
|
5330
|
+
left: H,
|
|
5296
5331
|
top: I
|
|
5297
5332
|
};
|
|
5298
5333
|
}, [r, l, k.floating, f.x, f.y]);
|
|
5299
5334
|
return v.useMemo(() => $(L({}, f), {
|
|
5300
|
-
update:
|
|
5301
|
-
refs:
|
|
5335
|
+
update: P,
|
|
5336
|
+
refs: _,
|
|
5302
5337
|
elements: k,
|
|
5303
|
-
floatingStyles:
|
|
5304
|
-
}), [f,
|
|
5338
|
+
floatingStyles: C
|
|
5339
|
+
}), [f, P, _, k, C]);
|
|
5305
5340
|
}
|
|
5306
5341
|
const fa = (e, t) => $(L({}, aa(e)), {
|
|
5307
5342
|
options: [e, t]
|
|
@@ -5385,14 +5420,14 @@ const Ea = /* @__PURE__ */ v.createContext(null), Sa = /* @__PURE__ */ v.createC
|
|
|
5385
5420
|
function tt(e) {
|
|
5386
5421
|
return "data-floating-ui-" + e;
|
|
5387
5422
|
}
|
|
5388
|
-
function
|
|
5423
|
+
function Ht(e) {
|
|
5389
5424
|
const t = po(e);
|
|
5390
5425
|
return fe(() => {
|
|
5391
5426
|
t.current = e;
|
|
5392
5427
|
}), t;
|
|
5393
5428
|
}
|
|
5394
5429
|
const Dr = /* @__PURE__ */ tt("safe-polygon");
|
|
5395
|
-
function
|
|
5430
|
+
function Pt(e, t, r) {
|
|
5396
5431
|
return r && !Ke(r) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
5397
5432
|
}
|
|
5398
5433
|
function el(e, t) {
|
|
@@ -5410,19 +5445,19 @@ function el(e, t) {
|
|
|
5410
5445
|
mouseOnly: f = !1,
|
|
5411
5446
|
restMs: h = 0,
|
|
5412
5447
|
move: p = !0
|
|
5413
|
-
} = t, d = rr(), g = tr(), m =
|
|
5448
|
+
} = t, d = rr(), g = tr(), m = Ht(u), y = Ht(c), x = Ht(r), w = v.useRef(), S = v.useRef(-1), E = v.useRef(), z = v.useRef(-1), A = v.useRef(!0), N = v.useRef(!1), G = v.useRef(() => {
|
|
5414
5449
|
}), J = v.useCallback(() => {
|
|
5415
5450
|
var k;
|
|
5416
|
-
const
|
|
5417
|
-
return (
|
|
5451
|
+
const C = (k = o.current.openEvent) == null ? void 0 : k.type;
|
|
5452
|
+
return (C == null ? void 0 : C.includes("mouse")) && C !== "mousedown";
|
|
5418
5453
|
}, [o]);
|
|
5419
5454
|
v.useEffect(() => {
|
|
5420
5455
|
if (!l) return;
|
|
5421
|
-
function k(
|
|
5456
|
+
function k(C) {
|
|
5422
5457
|
let {
|
|
5423
5458
|
open: M
|
|
5424
|
-
} =
|
|
5425
|
-
M || (clearTimeout(S.current), clearTimeout(z.current),
|
|
5459
|
+
} = C;
|
|
5460
|
+
M || (clearTimeout(S.current), clearTimeout(z.current), A.current = !0);
|
|
5426
5461
|
}
|
|
5427
5462
|
return a.on("openchange", k), () => {
|
|
5428
5463
|
a.off("openchange", k);
|
|
@@ -5432,18 +5467,18 @@ function el(e, t) {
|
|
|
5432
5467
|
function k(M) {
|
|
5433
5468
|
J() && n(!1, M, "hover");
|
|
5434
5469
|
}
|
|
5435
|
-
const
|
|
5436
|
-
return
|
|
5437
|
-
|
|
5470
|
+
const C = Ee(i.floating).documentElement;
|
|
5471
|
+
return C.addEventListener("mouseleave", k), () => {
|
|
5472
|
+
C.removeEventListener("mouseleave", k);
|
|
5438
5473
|
};
|
|
5439
5474
|
}, [i.floating, r, n, l, m, J]);
|
|
5440
|
-
const U = v.useCallback(function(k,
|
|
5441
|
-
|
|
5442
|
-
const
|
|
5443
|
-
|
|
5475
|
+
const U = v.useCallback(function(k, C, M) {
|
|
5476
|
+
C === void 0 && (C = !0), M === void 0 && (M = "hover");
|
|
5477
|
+
const H = Pt(y.current, "close", w.current);
|
|
5478
|
+
H && !E.current ? (clearTimeout(S.current), S.current = window.setTimeout(() => n(!1, k, M), H)) : C && (clearTimeout(S.current), n(!1, k, M));
|
|
5444
5479
|
}, [y, n]), V = Re(() => {
|
|
5445
5480
|
G.current(), E.current = void 0;
|
|
5446
|
-
}),
|
|
5481
|
+
}), P = Re(() => {
|
|
5447
5482
|
if (N.current) {
|
|
5448
5483
|
const k = Ee(i.floating).body;
|
|
5449
5484
|
k.style.pointerEvents = "", k.removeAttribute(Dr), N.current = !1;
|
|
@@ -5454,10 +5489,10 @@ function el(e, t) {
|
|
|
5454
5489
|
function k() {
|
|
5455
5490
|
return o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1;
|
|
5456
5491
|
}
|
|
5457
|
-
function
|
|
5458
|
-
if (clearTimeout(S.current),
|
|
5492
|
+
function C(W) {
|
|
5493
|
+
if (clearTimeout(S.current), A.current = !1, f && !Ke(w.current) || h > 0 && !Pt(y.current, "open"))
|
|
5459
5494
|
return;
|
|
5460
|
-
const F =
|
|
5495
|
+
const F = Pt(y.current, "open", w.current);
|
|
5461
5496
|
F ? S.current = window.setTimeout(() => {
|
|
5462
5497
|
x.current || n(!0, W, "hover");
|
|
5463
5498
|
}, F) : n(!0, W, "hover");
|
|
@@ -5472,7 +5507,7 @@ function el(e, t) {
|
|
|
5472
5507
|
x: W.clientX,
|
|
5473
5508
|
y: W.clientY,
|
|
5474
5509
|
onClose() {
|
|
5475
|
-
|
|
5510
|
+
P(), V(), U(W, !0, "safe-polygon");
|
|
5476
5511
|
}
|
|
5477
5512
|
}));
|
|
5478
5513
|
const Le = E.current;
|
|
@@ -5483,63 +5518,63 @@ function el(e, t) {
|
|
|
5483
5518
|
}
|
|
5484
5519
|
(w.current === "touch" ? !De(i.floating, W.relatedTarget) : !0) && U(W);
|
|
5485
5520
|
}
|
|
5486
|
-
function
|
|
5521
|
+
function H(W) {
|
|
5487
5522
|
k() || o.current.floatingContext && (m.current == null || m.current($(L({}, o.current.floatingContext), {
|
|
5488
5523
|
tree: d,
|
|
5489
5524
|
x: W.clientX,
|
|
5490
5525
|
y: W.clientY,
|
|
5491
5526
|
onClose() {
|
|
5492
|
-
|
|
5527
|
+
P(), V(), U(W);
|
|
5493
5528
|
}
|
|
5494
5529
|
}))(W));
|
|
5495
5530
|
}
|
|
5496
5531
|
if (X(i.domReference)) {
|
|
5497
5532
|
var I;
|
|
5498
5533
|
const W = i.domReference;
|
|
5499
|
-
return r && W.addEventListener("mouseleave",
|
|
5534
|
+
return r && W.addEventListener("mouseleave", H), (I = i.floating) == null || I.addEventListener("mouseleave", H), p && W.addEventListener("mousemove", C, {
|
|
5500
5535
|
once: !0
|
|
5501
|
-
}), W.addEventListener("mouseenter",
|
|
5536
|
+
}), W.addEventListener("mouseenter", C), W.addEventListener("mouseleave", M), () => {
|
|
5502
5537
|
var F;
|
|
5503
|
-
r && W.removeEventListener("mouseleave",
|
|
5538
|
+
r && W.removeEventListener("mouseleave", H), (F = i.floating) == null || F.removeEventListener("mouseleave", H), p && W.removeEventListener("mousemove", C), W.removeEventListener("mouseenter", C), W.removeEventListener("mouseleave", M);
|
|
5504
5539
|
};
|
|
5505
5540
|
}
|
|
5506
|
-
}, [i, l, e, f, h, p, U, V,
|
|
5541
|
+
}, [i, l, e, f, h, p, U, V, P, n, r, x, d, y, m, o]), fe(() => {
|
|
5507
5542
|
var k;
|
|
5508
5543
|
if (l && r && (k = m.current) != null && k.__options.blockPointerEvents && J()) {
|
|
5509
5544
|
const M = Ee(i.floating).body;
|
|
5510
5545
|
M.setAttribute(Dr, ""), M.style.pointerEvents = "none", N.current = !0;
|
|
5511
|
-
const
|
|
5512
|
-
if (X(i.domReference) &&
|
|
5513
|
-
var
|
|
5514
|
-
const I = i.domReference, W = d == null || (
|
|
5515
|
-
return W && (W.style.pointerEvents = ""), I.style.pointerEvents = "auto",
|
|
5516
|
-
I.style.pointerEvents = "",
|
|
5546
|
+
const H = i.floating;
|
|
5547
|
+
if (X(i.domReference) && H) {
|
|
5548
|
+
var C;
|
|
5549
|
+
const I = i.domReference, W = d == null || (C = d.nodesRef.current.find((F) => F.id === g)) == null || (C = C.context) == null ? void 0 : C.elements.floating;
|
|
5550
|
+
return W && (W.style.pointerEvents = ""), I.style.pointerEvents = "auto", H.style.pointerEvents = "auto", () => {
|
|
5551
|
+
I.style.pointerEvents = "", H.style.pointerEvents = "";
|
|
5517
5552
|
};
|
|
5518
5553
|
}
|
|
5519
5554
|
}
|
|
5520
5555
|
}, [l, r, g, i, d, m, J]), fe(() => {
|
|
5521
|
-
r || (w.current = void 0, V(),
|
|
5522
|
-
}, [r, V,
|
|
5523
|
-
V(), clearTimeout(S.current), clearTimeout(z.current),
|
|
5524
|
-
}, [l, i.domReference, V,
|
|
5556
|
+
r || (w.current = void 0, V(), P());
|
|
5557
|
+
}, [r, V, P]), v.useEffect(() => () => {
|
|
5558
|
+
V(), clearTimeout(S.current), clearTimeout(z.current), P();
|
|
5559
|
+
}, [l, i.domReference, V, P]);
|
|
5525
5560
|
const q = v.useMemo(() => {
|
|
5526
|
-
function k(
|
|
5527
|
-
w.current =
|
|
5561
|
+
function k(C) {
|
|
5562
|
+
w.current = C.pointerType;
|
|
5528
5563
|
}
|
|
5529
5564
|
return {
|
|
5530
5565
|
onPointerDown: k,
|
|
5531
5566
|
onPointerEnter: k,
|
|
5532
|
-
onMouseMove(
|
|
5567
|
+
onMouseMove(C) {
|
|
5533
5568
|
const {
|
|
5534
5569
|
nativeEvent: M
|
|
5535
|
-
} =
|
|
5536
|
-
function
|
|
5537
|
-
!
|
|
5570
|
+
} = C;
|
|
5571
|
+
function H() {
|
|
5572
|
+
!A.current && !x.current && n(!0, M, "hover");
|
|
5538
5573
|
}
|
|
5539
|
-
f && !Ke(w.current) || r || h === 0 || (clearTimeout(z.current), w.current === "touch" ?
|
|
5574
|
+
f && !Ke(w.current) || r || h === 0 || (clearTimeout(z.current), w.current === "touch" ? H() : z.current = window.setTimeout(H, h));
|
|
5540
5575
|
}
|
|
5541
5576
|
};
|
|
5542
|
-
}, [f, n, r, x, h]),
|
|
5577
|
+
}, [f, n, r, x, h]), _ = v.useMemo(() => ({
|
|
5543
5578
|
onMouseEnter() {
|
|
5544
5579
|
clearTimeout(S.current);
|
|
5545
5580
|
},
|
|
@@ -5549,10 +5584,10 @@ function el(e, t) {
|
|
|
5549
5584
|
}), [U]);
|
|
5550
5585
|
return v.useMemo(() => l ? {
|
|
5551
5586
|
reference: q,
|
|
5552
|
-
floating:
|
|
5553
|
-
} : {}, [l, q,
|
|
5587
|
+
floating: _
|
|
5588
|
+
} : {}, [l, q, _]);
|
|
5554
5589
|
}
|
|
5555
|
-
function
|
|
5590
|
+
function _t(e, t) {
|
|
5556
5591
|
let r = e.filter((o) => {
|
|
5557
5592
|
var a;
|
|
5558
5593
|
return o.parentId === t && ((a = o.context) == null ? void 0 : a.open);
|
|
@@ -5582,13 +5617,13 @@ function Ln(e, t) {
|
|
|
5582
5617
|
const n = r.indexOf($t(Ee(e)));
|
|
5583
5618
|
return r.slice(n + 1)[0];
|
|
5584
5619
|
}
|
|
5585
|
-
function
|
|
5620
|
+
function Ta() {
|
|
5586
5621
|
return Ln(document.body, "next");
|
|
5587
5622
|
}
|
|
5588
|
-
function
|
|
5623
|
+
function Ca() {
|
|
5589
5624
|
return Ln(document.body, "prev");
|
|
5590
5625
|
}
|
|
5591
|
-
function
|
|
5626
|
+
function At(e, t) {
|
|
5592
5627
|
const r = t || e.currentTarget, n = e.relatedTarget;
|
|
5593
5628
|
return !n || !De(r, n);
|
|
5594
5629
|
}
|
|
@@ -5635,13 +5670,13 @@ const Nr = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
|
5635
5670
|
style: Mn
|
|
5636
5671
|
};
|
|
5637
5672
|
return /* @__PURE__ */ v.createElement("span", Ut({}, t, a));
|
|
5638
|
-
}),
|
|
5673
|
+
}), Hn = /* @__PURE__ */ v.createContext(null), Ir = /* @__PURE__ */ tt("portal");
|
|
5639
5674
|
function Ma(e) {
|
|
5640
5675
|
e === void 0 && (e = {});
|
|
5641
5676
|
const {
|
|
5642
5677
|
id: t,
|
|
5643
5678
|
root: r
|
|
5644
|
-
} = e, n = er(), o =
|
|
5679
|
+
} = e, n = er(), o = Pa(), [a, i] = v.useState(null), l = v.useRef(null);
|
|
5645
5680
|
return fe(() => () => {
|
|
5646
5681
|
a == null || a.remove(), queueMicrotask(() => {
|
|
5647
5682
|
l.current = null;
|
|
@@ -5662,7 +5697,7 @@ function Ma(e) {
|
|
|
5662
5697
|
f.id = n, f.setAttribute(Ir, ""), c = u || c, c.appendChild(f), l.current = f, i(f);
|
|
5663
5698
|
}, [t, r, n, o]), a;
|
|
5664
5699
|
}
|
|
5665
|
-
function
|
|
5700
|
+
function Ha(e) {
|
|
5666
5701
|
const {
|
|
5667
5702
|
children: t,
|
|
5668
5703
|
id: r,
|
|
@@ -5682,12 +5717,12 @@ function Pa(e) {
|
|
|
5682
5717
|
if (!a || !o || i != null && i.modal)
|
|
5683
5718
|
return;
|
|
5684
5719
|
function d(g) {
|
|
5685
|
-
a &&
|
|
5720
|
+
a && At(g) && (g.type === "focusin" ? za : ka)(a);
|
|
5686
5721
|
}
|
|
5687
5722
|
return a.addEventListener("focusin", d, !0), a.addEventListener("focusout", d, !0), () => {
|
|
5688
5723
|
a.removeEventListener("focusin", d, !0), a.removeEventListener("focusout", d, !0);
|
|
5689
5724
|
};
|
|
5690
|
-
}, [a, o, i == null ? void 0 : i.modal]), /* @__PURE__ */ v.createElement(
|
|
5725
|
+
}, [a, o, i == null ? void 0 : i.modal]), /* @__PURE__ */ v.createElement(Hn.Provider, {
|
|
5691
5726
|
value: v.useMemo(() => ({
|
|
5692
5727
|
preserveTabOrder: o,
|
|
5693
5728
|
beforeOutsideRef: c,
|
|
@@ -5701,11 +5736,11 @@ function Pa(e) {
|
|
|
5701
5736
|
"data-type": "outside",
|
|
5702
5737
|
ref: c,
|
|
5703
5738
|
onFocus: (d) => {
|
|
5704
|
-
if (
|
|
5739
|
+
if (At(d, a)) {
|
|
5705
5740
|
var g;
|
|
5706
5741
|
(g = f.current) == null || g.focus();
|
|
5707
5742
|
} else {
|
|
5708
|
-
const m =
|
|
5743
|
+
const m = Ca() || (i == null ? void 0 : i.refs.domReference.current);
|
|
5709
5744
|
m == null || m.focus();
|
|
5710
5745
|
}
|
|
5711
5746
|
}
|
|
@@ -5716,24 +5751,24 @@ function Pa(e) {
|
|
|
5716
5751
|
"data-type": "outside",
|
|
5717
5752
|
ref: u,
|
|
5718
5753
|
onFocus: (d) => {
|
|
5719
|
-
if (
|
|
5754
|
+
if (At(d, a)) {
|
|
5720
5755
|
var g;
|
|
5721
5756
|
(g = h.current) == null || g.focus();
|
|
5722
5757
|
} else {
|
|
5723
|
-
const m =
|
|
5758
|
+
const m = Ta() || (i == null ? void 0 : i.refs.domReference.current);
|
|
5724
5759
|
m == null || m.focus(), i != null && i.closeOnFocusOut && (i == null || i.onOpenChange(!1, d.nativeEvent));
|
|
5725
5760
|
}
|
|
5726
5761
|
}
|
|
5727
5762
|
}));
|
|
5728
5763
|
}
|
|
5729
|
-
const
|
|
5764
|
+
const Pa = () => v.useContext(Hn);
|
|
5730
5765
|
function $r(e) {
|
|
5731
5766
|
return ae(e.target) && e.target.tagName === "BUTTON";
|
|
5732
5767
|
}
|
|
5733
5768
|
function Vr(e) {
|
|
5734
5769
|
return fn(e);
|
|
5735
5770
|
}
|
|
5736
|
-
function
|
|
5771
|
+
function _a(e, t) {
|
|
5737
5772
|
t === void 0 && (t = {});
|
|
5738
5773
|
const {
|
|
5739
5774
|
open: r,
|
|
@@ -5775,7 +5810,7 @@ function Aa(e, t) {
|
|
|
5775
5810
|
reference: d
|
|
5776
5811
|
} : {}, [i, d]);
|
|
5777
5812
|
}
|
|
5778
|
-
const
|
|
5813
|
+
const Aa = {
|
|
5779
5814
|
pointerdown: "onPointerDown",
|
|
5780
5815
|
mousedown: "onMouseDown",
|
|
5781
5816
|
click: "onClick"
|
|
@@ -5811,65 +5846,65 @@ function Oa(e, t) {
|
|
|
5811
5846
|
escapeKey: E,
|
|
5812
5847
|
outsidePress: z
|
|
5813
5848
|
} = Gr(d), {
|
|
5814
|
-
escapeKey:
|
|
5849
|
+
escapeKey: A,
|
|
5815
5850
|
outsidePress: N
|
|
5816
|
-
} = Gr(g), G = Re((
|
|
5851
|
+
} = Gr(g), G = Re((_) => {
|
|
5817
5852
|
var k;
|
|
5818
|
-
if (!r || !i || !l ||
|
|
5853
|
+
if (!r || !i || !l || _.key !== "Escape")
|
|
5819
5854
|
return;
|
|
5820
|
-
const
|
|
5821
|
-
if (!E && (
|
|
5822
|
-
let
|
|
5855
|
+
const C = (k = a.current.floatingContext) == null ? void 0 : k.nodeId, M = m ? _t(m.nodesRef.current, C) : [];
|
|
5856
|
+
if (!E && (_.stopPropagation(), M.length > 0)) {
|
|
5857
|
+
let H = !0;
|
|
5823
5858
|
if (M.forEach((I) => {
|
|
5824
5859
|
var W;
|
|
5825
5860
|
if ((W = I.context) != null && W.open && !I.context.dataRef.current.__escapeKeyBubbles) {
|
|
5826
|
-
|
|
5861
|
+
H = !1;
|
|
5827
5862
|
return;
|
|
5828
5863
|
}
|
|
5829
|
-
}), !
|
|
5864
|
+
}), !H)
|
|
5830
5865
|
return;
|
|
5831
5866
|
}
|
|
5832
|
-
n(!1, ci(
|
|
5833
|
-
}), J = Re((
|
|
5867
|
+
n(!1, ci(_) ? _.nativeEvent : _, "escape-key");
|
|
5868
|
+
}), J = Re((_) => {
|
|
5834
5869
|
var k;
|
|
5835
|
-
const
|
|
5870
|
+
const C = () => {
|
|
5836
5871
|
var M;
|
|
5837
|
-
G(
|
|
5872
|
+
G(_), (M = We(_)) == null || M.removeEventListener("keydown", C);
|
|
5838
5873
|
};
|
|
5839
|
-
(k = We(
|
|
5840
|
-
}), U = Re((
|
|
5874
|
+
(k = We(_)) == null || k.addEventListener("keydown", C);
|
|
5875
|
+
}), U = Re((_) => {
|
|
5841
5876
|
var k;
|
|
5842
|
-
const
|
|
5877
|
+
const C = w.current;
|
|
5843
5878
|
w.current = !1;
|
|
5844
5879
|
const M = S.current;
|
|
5845
|
-
if (S.current = !1, u === "click" && M ||
|
|
5880
|
+
if (S.current = !1, u === "click" && M || C || typeof x == "function" && !x(_))
|
|
5846
5881
|
return;
|
|
5847
|
-
const
|
|
5848
|
-
let F = X(
|
|
5849
|
-
for (; F && !
|
|
5882
|
+
const H = We(_), I = "[" + tt("inert") + "]", W = Ee(o.floating).querySelectorAll(I);
|
|
5883
|
+
let F = X(H) ? H : null;
|
|
5884
|
+
for (; F && !Ce(F); ) {
|
|
5850
5885
|
const re = ve(F);
|
|
5851
|
-
if (
|
|
5886
|
+
if (Ce(re) || !X(re))
|
|
5852
5887
|
break;
|
|
5853
5888
|
F = re;
|
|
5854
5889
|
}
|
|
5855
|
-
if (W.length && X(
|
|
5856
|
-
!De(
|
|
5890
|
+
if (W.length && X(H) && !ui(H) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
5891
|
+
!De(H, o.floating) && // If the target root element contains none of the markers, then the
|
|
5857
5892
|
// element was injected after the floating element rendered.
|
|
5858
5893
|
Array.from(W).every((re) => !De(F, re)))
|
|
5859
5894
|
return;
|
|
5860
|
-
if (ae(
|
|
5861
|
-
const re =
|
|
5862
|
-
let ge = se &&
|
|
5863
|
-
if (se && de(
|
|
5895
|
+
if (ae(H) && q) {
|
|
5896
|
+
const re = H.clientWidth > 0 && H.scrollWidth > H.clientWidth, se = H.clientHeight > 0 && H.scrollHeight > H.clientHeight;
|
|
5897
|
+
let ge = se && _.offsetX > H.clientWidth;
|
|
5898
|
+
if (se && de(H).direction === "rtl" && (ge = _.offsetX <= H.offsetWidth - H.clientWidth), ge || re && _.offsetY > H.clientHeight)
|
|
5864
5899
|
return;
|
|
5865
5900
|
}
|
|
5866
|
-
const xe = (k = a.current.floatingContext) == null ? void 0 : k.nodeId, Le = m &&
|
|
5901
|
+
const xe = (k = a.current.floatingContext) == null ? void 0 : k.nodeId, Le = m && _t(m.nodesRef.current, xe).some((re) => {
|
|
5867
5902
|
var se;
|
|
5868
|
-
return Lt(
|
|
5903
|
+
return Lt(_, (se = re.context) == null ? void 0 : se.elements.floating);
|
|
5869
5904
|
});
|
|
5870
|
-
if (Lt(
|
|
5905
|
+
if (Lt(_, o.floating) || Lt(_, o.domReference) || Le)
|
|
5871
5906
|
return;
|
|
5872
|
-
const rt = m ?
|
|
5907
|
+
const rt = m ? _t(m.nodesRef.current, xe) : [];
|
|
5873
5908
|
if (rt.length > 0) {
|
|
5874
5909
|
let re = !0;
|
|
5875
5910
|
if (rt.forEach((se) => {
|
|
@@ -5881,44 +5916,44 @@ function Oa(e, t) {
|
|
|
5881
5916
|
}), !re)
|
|
5882
5917
|
return;
|
|
5883
5918
|
}
|
|
5884
|
-
n(!1,
|
|
5885
|
-
}), V = Re((
|
|
5919
|
+
n(!1, _, "outside-press");
|
|
5920
|
+
}), V = Re((_) => {
|
|
5886
5921
|
var k;
|
|
5887
|
-
const
|
|
5922
|
+
const C = () => {
|
|
5888
5923
|
var M;
|
|
5889
|
-
U(
|
|
5924
|
+
U(_), (M = We(_)) == null || M.removeEventListener(u, C);
|
|
5890
5925
|
};
|
|
5891
|
-
(k = We(
|
|
5926
|
+
(k = We(_)) == null || k.addEventListener(u, C);
|
|
5892
5927
|
});
|
|
5893
5928
|
v.useEffect(() => {
|
|
5894
5929
|
if (!r || !i)
|
|
5895
5930
|
return;
|
|
5896
5931
|
a.current.__escapeKeyBubbles = E, a.current.__outsidePressBubbles = z;
|
|
5897
|
-
function
|
|
5932
|
+
function _(M) {
|
|
5898
5933
|
n(!1, M, "ancestor-scroll");
|
|
5899
5934
|
}
|
|
5900
5935
|
const k = Ee(o.floating);
|
|
5901
|
-
l && k.addEventListener("keydown",
|
|
5902
|
-
let
|
|
5903
|
-
return p && (X(o.domReference) && (
|
|
5904
|
-
var
|
|
5905
|
-
return M !== ((
|
|
5906
|
-
}),
|
|
5907
|
-
M.addEventListener("scroll",
|
|
5936
|
+
l && k.addEventListener("keydown", A ? J : G, A), x && k.addEventListener(u, N ? V : U, N);
|
|
5937
|
+
let C = [];
|
|
5938
|
+
return p && (X(o.domReference) && (C = Te(o.domReference)), X(o.floating) && (C = C.concat(Te(o.floating))), !X(o.reference) && o.reference && o.reference.contextElement && (C = C.concat(Te(o.reference.contextElement)))), C = C.filter((M) => {
|
|
5939
|
+
var H;
|
|
5940
|
+
return M !== ((H = k.defaultView) == null ? void 0 : H.visualViewport);
|
|
5941
|
+
}), C.forEach((M) => {
|
|
5942
|
+
M.addEventListener("scroll", _, {
|
|
5908
5943
|
passive: !0
|
|
5909
5944
|
});
|
|
5910
5945
|
}), () => {
|
|
5911
|
-
l && k.removeEventListener("keydown",
|
|
5912
|
-
M.removeEventListener("scroll",
|
|
5946
|
+
l && k.removeEventListener("keydown", A ? J : G, A), x && k.removeEventListener(u, N ? V : U, N), C.forEach((M) => {
|
|
5947
|
+
M.removeEventListener("scroll", _);
|
|
5913
5948
|
});
|
|
5914
5949
|
};
|
|
5915
|
-
}, [a, o, l, x, u, r, n, p, i, E, z, G,
|
|
5950
|
+
}, [a, o, l, x, u, r, n, p, i, E, z, G, A, J, U, N, V]), v.useEffect(() => {
|
|
5916
5951
|
w.current = !1;
|
|
5917
5952
|
}, [x, u]);
|
|
5918
|
-
const
|
|
5953
|
+
const P = v.useMemo(() => ({
|
|
5919
5954
|
onKeyDown: G,
|
|
5920
|
-
[
|
|
5921
|
-
f && n(!1,
|
|
5955
|
+
[Aa[h]]: (_) => {
|
|
5956
|
+
f && n(!1, _.nativeEvent, "reference-press");
|
|
5922
5957
|
}
|
|
5923
5958
|
}), [G, n, f, h]), q = v.useMemo(() => ({
|
|
5924
5959
|
onKeyDown: G,
|
|
@@ -5933,9 +5968,9 @@ function Oa(e, t) {
|
|
|
5933
5968
|
}
|
|
5934
5969
|
}), [G, u]);
|
|
5935
5970
|
return v.useMemo(() => i ? {
|
|
5936
|
-
reference:
|
|
5971
|
+
reference: P,
|
|
5937
5972
|
floating: q
|
|
5938
|
-
} : {}, [i,
|
|
5973
|
+
} : {}, [i, P, q]);
|
|
5939
5974
|
}
|
|
5940
5975
|
function ja(e) {
|
|
5941
5976
|
const {
|
|
@@ -6102,8 +6137,8 @@ function jt(e, t, r) {
|
|
|
6102
6137
|
[Ot]: c
|
|
6103
6138
|
} = i;
|
|
6104
6139
|
a = he(i, [
|
|
6105
|
-
|
|
6106
|
-
|
|
6140
|
+
Ct(Wt),
|
|
6141
|
+
Ct(Ot)
|
|
6107
6142
|
]);
|
|
6108
6143
|
}
|
|
6109
6144
|
return L(L(L({}, r === "floating" && {
|
|
@@ -6217,7 +6252,7 @@ const $a = {
|
|
|
6217
6252
|
slideLeft: "slideRight",
|
|
6218
6253
|
slideRight: "slideLeft",
|
|
6219
6254
|
fadeIn: "fadeOut"
|
|
6220
|
-
},
|
|
6255
|
+
}, Pn = Yt((e, t) => {
|
|
6221
6256
|
const g = e, {
|
|
6222
6257
|
show: r,
|
|
6223
6258
|
handleClose: n,
|
|
@@ -6288,12 +6323,12 @@ const $a = {
|
|
|
6288
6323
|
} else
|
|
6289
6324
|
return null;
|
|
6290
6325
|
});
|
|
6291
|
-
|
|
6292
|
-
const
|
|
6326
|
+
Pn.displayName = "AnimatedModal";
|
|
6327
|
+
const _n = Number(
|
|
6293
6328
|
ut.theme.screens["ds-tablet"].min.replace("px", "")
|
|
6294
6329
|
), Va = Number(
|
|
6295
6330
|
ut.theme.screens["ds-desktop"].min.replace("px", "")
|
|
6296
|
-
), Ur = (e) => e <
|
|
6331
|
+
), Ur = (e) => e < _n ? "mobile" : e < Va ? "tablet" : "desktop", tl = () => {
|
|
6297
6332
|
const [e, t] = ue(document.documentElement.clientWidth), [r, n] = ue(document.documentElement.clientHeight), o = Ur(document.documentElement.clientWidth), [a, i] = ue(o), [l, c] = ue(o === "mobile"), [u, f] = ue(o === "tablet"), [h, p] = ue(o === "desktop");
|
|
6298
6333
|
return Je(() => {
|
|
6299
6334
|
const d = () => {
|
|
@@ -6305,7 +6340,7 @@ const An = Number(
|
|
|
6305
6340
|
window.removeEventListener("resize", d);
|
|
6306
6341
|
};
|
|
6307
6342
|
}, []), { documentWidth: e, documentHeight: r, screenSize: a, isMobile: l, isTablet: u, isDesktop: h };
|
|
6308
|
-
},
|
|
6343
|
+
}, An = Yt(
|
|
6309
6344
|
({ label: e, isChecked: t, onSelectionChange: r, disabled: n, className: o, labelPosition: a = "right" }, i) => /* @__PURE__ */ R.jsxs(
|
|
6310
6345
|
"label",
|
|
6311
6346
|
{
|
|
@@ -6344,7 +6379,7 @@ const An = Number(
|
|
|
6344
6379
|
}
|
|
6345
6380
|
)
|
|
6346
6381
|
);
|
|
6347
|
-
|
|
6382
|
+
An.displayName = "Checkbox";
|
|
6348
6383
|
const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
6349
6384
|
"div",
|
|
6350
6385
|
{
|
|
@@ -6452,12 +6487,12 @@ const qa = Yt(
|
|
|
6452
6487
|
}, [r]);
|
|
6453
6488
|
const x = (E, z) => {
|
|
6454
6489
|
z.currentTarget.blur();
|
|
6455
|
-
const
|
|
6456
|
-
N !== -1 ?
|
|
6490
|
+
const A = [...d], N = A.findIndex((G) => G.value === E.value);
|
|
6491
|
+
N !== -1 ? A.length > 1 ? (A.splice(N, 1), y("")) : y(u) : (A.push(E), y("")), g(A), o(A);
|
|
6457
6492
|
}, w = (E, z) => {
|
|
6458
6493
|
z.currentTarget.blur();
|
|
6459
|
-
const
|
|
6460
|
-
g(
|
|
6494
|
+
const A = [E];
|
|
6495
|
+
g(A), o(A);
|
|
6461
6496
|
};
|
|
6462
6497
|
return /* @__PURE__ */ R.jsxs(
|
|
6463
6498
|
"div",
|
|
@@ -6472,8 +6507,8 @@ const qa = Yt(
|
|
|
6472
6507
|
children: n.length > 0 ? n.map((E, z) => E.type === "separator" ? /* @__PURE__ */ R.jsx(Fe.Fragment, { children: E.component ? E.component : /* @__PURE__ */ R.jsx("div", { className: "ds-h-full ds-min-h-[30px] ds-w-[1px] ds-bg-Fills-terciary" }) }, `separator-${z}`) : /* @__PURE__ */ R.jsx(Fe.Fragment, { children: a ? /* @__PURE__ */ R.jsx(
|
|
6473
6508
|
vt,
|
|
6474
6509
|
{
|
|
6475
|
-
selected: d.some((
|
|
6476
|
-
onClick: (
|
|
6510
|
+
selected: d.some((A) => A.value === E.value),
|
|
6511
|
+
onClick: (A) => x(E, A),
|
|
6477
6512
|
color: "secondary",
|
|
6478
6513
|
style: { minWidth: l, width: c },
|
|
6479
6514
|
className: h,
|
|
@@ -6484,8 +6519,8 @@ const qa = Yt(
|
|
|
6484
6519
|
) : /* @__PURE__ */ R.jsx(
|
|
6485
6520
|
vt,
|
|
6486
6521
|
{
|
|
6487
|
-
selected: d.some((
|
|
6488
|
-
onClick: (
|
|
6522
|
+
selected: d.some((A) => A.value === E.value),
|
|
6523
|
+
onClick: (A) => w(E, A),
|
|
6489
6524
|
color: "secondary",
|
|
6490
6525
|
style: { minWidth: l, width: c },
|
|
6491
6526
|
className: h,
|
|
@@ -6503,7 +6538,7 @@ const qa = Yt(
|
|
|
6503
6538
|
}
|
|
6504
6539
|
);
|
|
6505
6540
|
qa.displayName = "ButtonsGroupSelector";
|
|
6506
|
-
const Ya = (e) => window.innerWidth <
|
|
6541
|
+
const Ya = (e) => window.innerWidth < _n ? /* @__PURE__ */ R.jsx(On, L({}, e)) : /* @__PURE__ */ R.jsx(Wn, L({}, e));
|
|
6507
6542
|
Ya.displayName = "Dropdown";
|
|
6508
6543
|
const Wn = ({
|
|
6509
6544
|
placement: e = "bottom-start",
|
|
@@ -6523,8 +6558,8 @@ const Wn = ({
|
|
|
6523
6558
|
const [d, g] = ue(), m = typeof f == "undefined" ? d : f, y = typeof f == "undefined" ? g : () => {
|
|
6524
6559
|
}, [x, w] = ue(!1), { refs: S, floatingStyles: E, context: z } = Fa({
|
|
6525
6560
|
open: x,
|
|
6526
|
-
onOpenChange: (
|
|
6527
|
-
w(
|
|
6561
|
+
onOpenChange: (P) => {
|
|
6562
|
+
w(P), o && o(P);
|
|
6528
6563
|
},
|
|
6529
6564
|
middleware: [
|
|
6530
6565
|
fa(8),
|
|
@@ -6534,14 +6569,14 @@ const Wn = ({
|
|
|
6534
6569
|
}),
|
|
6535
6570
|
ga({ padding: 4 }),
|
|
6536
6571
|
ma({
|
|
6537
|
-
apply({ availableWidth:
|
|
6538
|
-
a && (
|
|
6572
|
+
apply({ availableWidth: P, availableHeight: q, elements: _ }) {
|
|
6573
|
+
a && (_.floating.style.maxHeight = `${q - 4}px`), i && (_.floating.style.maxWidth = `${P - 4}px`);
|
|
6539
6574
|
}
|
|
6540
6575
|
})
|
|
6541
6576
|
],
|
|
6542
6577
|
whileElementsMounted: ia,
|
|
6543
6578
|
placement: e
|
|
6544
|
-
}),
|
|
6579
|
+
}), A = _a(z), N = Da(z), G = Oa(z), J = Ia(z), { getReferenceProps: U, getFloatingProps: V } = Ba([A, N, G, J]);
|
|
6545
6580
|
return t || (t = /* @__PURE__ */ R.jsx(
|
|
6546
6581
|
Fn,
|
|
6547
6582
|
{
|
|
@@ -6559,7 +6594,7 @@ const Wn = ({
|
|
|
6559
6594
|
children: t
|
|
6560
6595
|
})
|
|
6561
6596
|
),
|
|
6562
|
-
x && /* @__PURE__ */ R.jsx(
|
|
6597
|
+
x && /* @__PURE__ */ R.jsx(Ha, { children: /* @__PURE__ */ R.jsx(
|
|
6563
6598
|
"div",
|
|
6564
6599
|
$(L({
|
|
6565
6600
|
ref: S.setFloating,
|
|
@@ -6620,7 +6655,7 @@ const On = ({
|
|
|
6620
6655
|
}
|
|
6621
6656
|
),
|
|
6622
6657
|
/* @__PURE__ */ R.jsx(
|
|
6623
|
-
|
|
6658
|
+
Pn,
|
|
6624
6659
|
{
|
|
6625
6660
|
animation: "slideUp",
|
|
6626
6661
|
show: m,
|
|
@@ -6751,7 +6786,7 @@ const Fn = ({
|
|
|
6751
6786
|
),
|
|
6752
6787
|
r && !n && /* @__PURE__ */ R.jsx(ri, { className: "ds-size-4 ds-shrink-0" }),
|
|
6753
6788
|
n && /* @__PURE__ */ R.jsx(
|
|
6754
|
-
|
|
6789
|
+
An,
|
|
6755
6790
|
{
|
|
6756
6791
|
isChecked: r,
|
|
6757
6792
|
disabled: t.disabled
|
|
@@ -6761,18 +6796,18 @@ const Fn = ({
|
|
|
6761
6796
|
}
|
|
6762
6797
|
), nr = (e, t) => Array.isArray(e) ? t.filter((r) => e.includes(r.value)) : t.find((r) => r.value === e), Bn = (e) => Array.isArray(e) ? e.map((t) => t.label).join(", ") : e.label;
|
|
6763
6798
|
export {
|
|
6764
|
-
|
|
6799
|
+
Pn as A,
|
|
6765
6800
|
vt as B,
|
|
6766
6801
|
ti as C,
|
|
6767
6802
|
Ya as D,
|
|
6768
6803
|
ni as E,
|
|
6769
|
-
|
|
6804
|
+
Ha as F,
|
|
6770
6805
|
Va as G,
|
|
6771
6806
|
Ur as H,
|
|
6772
6807
|
On as M,
|
|
6773
6808
|
qa as a,
|
|
6774
6809
|
Wn as b,
|
|
6775
|
-
|
|
6810
|
+
Cr as c,
|
|
6776
6811
|
rn as d,
|
|
6777
6812
|
oe as e,
|
|
6778
6813
|
nr as f,
|
|
@@ -6788,12 +6823,12 @@ export {
|
|
|
6788
6823
|
ri as p,
|
|
6789
6824
|
an as q,
|
|
6790
6825
|
tl as r,
|
|
6791
|
-
|
|
6826
|
+
An as s,
|
|
6792
6827
|
ct as t,
|
|
6793
6828
|
Fa as u,
|
|
6794
|
-
|
|
6829
|
+
_n as v,
|
|
6795
6830
|
Qa as w,
|
|
6796
6831
|
ga as x,
|
|
6797
6832
|
ma as y,
|
|
6798
|
-
|
|
6833
|
+
_a as z
|
|
6799
6834
|
};
|