buildgrid-ui 1.9.3 → 1.10.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/buildgrid-ui.es.js +831 -819
- package/dist/buildgrid-ui.umd.js +14 -14
- package/dist/lib/hooks/use-dialog.d.ts +15 -5
- package/package.json +1 -1
package/dist/buildgrid-ui.es.js
CHANGED
|
@@ -61,28 +61,28 @@ function xm() {
|
|
|
61
61
|
return "Profiler";
|
|
62
62
|
case P:
|
|
63
63
|
return "StrictMode";
|
|
64
|
-
case
|
|
64
|
+
case j:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case V:
|
|
67
67
|
return "SuspenseList";
|
|
68
68
|
}
|
|
69
69
|
if (typeof C == "object")
|
|
70
70
|
switch (typeof C.tag == "number" && console.error(
|
|
71
71
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
72
|
), C.$$typeof) {
|
|
73
|
-
case
|
|
73
|
+
case $:
|
|
74
74
|
return (C.displayName || "Context") + ".Provider";
|
|
75
75
|
case k:
|
|
76
76
|
return (C._context.displayName || "Context") + ".Consumer";
|
|
77
77
|
case z:
|
|
78
|
-
var
|
|
79
|
-
return C = C.displayName, C || (C =
|
|
80
|
-
case
|
|
81
|
-
return
|
|
82
|
-
case
|
|
83
|
-
|
|
78
|
+
var W = C.render;
|
|
79
|
+
return C = C.displayName, C || (C = W.displayName || W.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
|
|
80
|
+
case B:
|
|
81
|
+
return W = C.displayName || null, W !== null ? W : e(C.type) || "Memo";
|
|
82
|
+
case Q:
|
|
83
|
+
W = C._payload, C = C._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(C(
|
|
85
|
+
return e(C(W));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -94,15 +94,15 @@ function xm() {
|
|
|
94
94
|
function n(C) {
|
|
95
95
|
try {
|
|
96
96
|
t(C);
|
|
97
|
-
var
|
|
97
|
+
var W = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
W = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var _ =
|
|
101
|
+
if (W) {
|
|
102
|
+
W = console;
|
|
103
|
+
var _ = W.error, ae = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
104
104
|
return _.call(
|
|
105
|
-
|
|
105
|
+
W,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
107
|
ae
|
|
108
108
|
), t(C);
|
|
@@ -112,7 +112,7 @@ function xm() {
|
|
|
112
112
|
}
|
|
113
113
|
function o() {
|
|
114
114
|
if (K === 0) {
|
|
115
|
-
ie = console.log, le = console.info,
|
|
115
|
+
ie = console.log, le = console.info, I = console.warn, re = console.error, oe = console.group, ee = console.groupCollapsed, ne = console.groupEnd;
|
|
116
116
|
var C = {
|
|
117
117
|
configurable: !0,
|
|
118
118
|
enumerable: !0,
|
|
@@ -137,10 +137,10 @@ function xm() {
|
|
|
137
137
|
Object.defineProperties(console, {
|
|
138
138
|
log: X({}, C, { value: ie }),
|
|
139
139
|
info: X({}, C, { value: le }),
|
|
140
|
-
warn: X({}, C, { value:
|
|
140
|
+
warn: X({}, C, { value: I }),
|
|
141
141
|
error: X({}, C, { value: re }),
|
|
142
142
|
group: X({}, C, { value: oe }),
|
|
143
|
-
groupCollapsed: X({}, C, { value:
|
|
143
|
+
groupCollapsed: X({}, C, { value: ee }),
|
|
144
144
|
groupEnd: X({}, C, { value: ne })
|
|
145
145
|
});
|
|
146
146
|
}
|
|
@@ -153,14 +153,14 @@ function xm() {
|
|
|
153
153
|
try {
|
|
154
154
|
throw Error();
|
|
155
155
|
} catch (_) {
|
|
156
|
-
var
|
|
157
|
-
se =
|
|
156
|
+
var W = _.stack.trim().match(/\n( *(at )?)/);
|
|
157
|
+
se = W && W[1] || "", we = -1 < _.stack.indexOf(`
|
|
158
158
|
at`) ? " (<anonymous>)" : -1 < _.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
159
159
|
}
|
|
160
160
|
return `
|
|
161
161
|
` + se + C + we;
|
|
162
162
|
}
|
|
163
|
-
function i(C,
|
|
163
|
+
function i(C, W) {
|
|
164
164
|
if (!C || ge) return "";
|
|
165
165
|
var _ = Te.get(C);
|
|
166
166
|
if (_ !== void 0) return _;
|
|
@@ -171,7 +171,7 @@ function xm() {
|
|
|
171
171
|
var Re = {
|
|
172
172
|
DetermineComponentFrameRoot: function() {
|
|
173
173
|
try {
|
|
174
|
-
if (
|
|
174
|
+
if (W) {
|
|
175
175
|
var He = function() {
|
|
176
176
|
throw Error();
|
|
177
177
|
};
|
|
@@ -260,29 +260,29 @@ function xm() {
|
|
|
260
260
|
function l(C) {
|
|
261
261
|
if (C == null) return "";
|
|
262
262
|
if (typeof C == "function") {
|
|
263
|
-
var
|
|
263
|
+
var W = C.prototype;
|
|
264
264
|
return i(
|
|
265
265
|
C,
|
|
266
|
-
!(!
|
|
266
|
+
!(!W || !W.isReactComponent)
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
if (typeof C == "string") return s(C);
|
|
270
270
|
switch (C) {
|
|
271
|
-
case
|
|
271
|
+
case j:
|
|
272
272
|
return s("Suspense");
|
|
273
|
-
case
|
|
273
|
+
case V:
|
|
274
274
|
return s("SuspenseList");
|
|
275
275
|
}
|
|
276
276
|
if (typeof C == "object")
|
|
277
277
|
switch (C.$$typeof) {
|
|
278
278
|
case z:
|
|
279
279
|
return C = i(C.render, !1), C;
|
|
280
|
-
case
|
|
280
|
+
case B:
|
|
281
281
|
return l(C.type);
|
|
282
|
-
case
|
|
283
|
-
|
|
282
|
+
case Q:
|
|
283
|
+
W = C._payload, C = C._init;
|
|
284
284
|
try {
|
|
285
|
-
return l(C(
|
|
285
|
+
return l(C(W));
|
|
286
286
|
} catch {
|
|
287
287
|
}
|
|
288
288
|
}
|
|
@@ -293,17 +293,17 @@ function xm() {
|
|
|
293
293
|
return C === null ? null : C.getOwner();
|
|
294
294
|
}
|
|
295
295
|
function f(C) {
|
|
296
|
-
if (
|
|
297
|
-
var
|
|
298
|
-
if (
|
|
296
|
+
if (G.call(C, "key")) {
|
|
297
|
+
var W = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
298
|
+
if (W && W.isReactWarning) return !1;
|
|
299
299
|
}
|
|
300
300
|
return C.key !== void 0;
|
|
301
301
|
}
|
|
302
|
-
function p(C,
|
|
302
|
+
function p(C, W) {
|
|
303
303
|
function _() {
|
|
304
304
|
Ee || (Ee = !0, console.error(
|
|
305
305
|
"%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://react.dev/link/special-props)",
|
|
306
|
-
|
|
306
|
+
W
|
|
307
307
|
));
|
|
308
308
|
}
|
|
309
309
|
_.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
@@ -317,11 +317,11 @@ function xm() {
|
|
|
317
317
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
318
318
|
)), C = this.props.ref, C !== void 0 ? C : null;
|
|
319
319
|
}
|
|
320
|
-
function m(C,
|
|
320
|
+
function m(C, W, _, ae, Re, me) {
|
|
321
321
|
return _ = me.ref, C = {
|
|
322
322
|
$$typeof: N,
|
|
323
323
|
type: C,
|
|
324
|
-
key:
|
|
324
|
+
key: W,
|
|
325
325
|
props: me,
|
|
326
326
|
_owner: Re
|
|
327
327
|
}, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(C, "ref", {
|
|
@@ -339,12 +339,12 @@ function xm() {
|
|
|
339
339
|
value: null
|
|
340
340
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
341
341
|
}
|
|
342
|
-
function g(C,
|
|
343
|
-
if (typeof C == "string" || typeof C == "function" || C === R || C === A || C === P || C ===
|
|
344
|
-
var q =
|
|
342
|
+
function g(C, W, _, ae, Re, me) {
|
|
343
|
+
if (typeof C == "string" || typeof C == "function" || C === R || C === A || C === P || C === j || C === V || C === L || typeof C == "object" && C !== null && (C.$$typeof === Q || C.$$typeof === B || C.$$typeof === $ || C.$$typeof === k || C.$$typeof === z || C.$$typeof === U || C.getModuleId !== void 0)) {
|
|
344
|
+
var q = W.children;
|
|
345
345
|
if (q !== void 0)
|
|
346
346
|
if (ae)
|
|
347
|
-
if (
|
|
347
|
+
if (Y(q)) {
|
|
348
348
|
for (ae = 0; ae < q.length; ae++)
|
|
349
349
|
h(q[ae], C);
|
|
350
350
|
Object.freeze && Object.freeze(q);
|
|
@@ -354,14 +354,14 @@ function xm() {
|
|
|
354
354
|
);
|
|
355
355
|
else h(q, C);
|
|
356
356
|
} else
|
|
357
|
-
q = "", (C === void 0 || typeof C == "object" && C !== null && Object.keys(C).length === 0) && (q += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), C === null ? ae = "null" :
|
|
357
|
+
q = "", (C === void 0 || typeof C == "object" && C !== null && Object.keys(C).length === 0) && (q += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), C === null ? ae = "null" : Y(C) ? ae = "array" : C !== void 0 && C.$$typeof === N ? (ae = "<" + (e(C.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof C, console.error(
|
|
358
358
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
359
359
|
ae,
|
|
360
360
|
q
|
|
361
361
|
);
|
|
362
|
-
if (
|
|
362
|
+
if (G.call(W, "key")) {
|
|
363
363
|
q = e(C);
|
|
364
|
-
var Ve = Object.keys(
|
|
364
|
+
var Ve = Object.keys(W).filter(function(ve) {
|
|
365
365
|
return ve !== "key";
|
|
366
366
|
});
|
|
367
367
|
ae = 0 < Ve.length ? "{key: someKey, " + Ve.join(": ..., ") + ": ...}" : "{key: someKey}", Ae[q + ae] || (Ve = 0 < Ve.length ? "{" + Ve.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -377,36 +377,36 @@ React keys must be passed directly to JSX without using spread:
|
|
|
377
377
|
q
|
|
378
378
|
), Ae[q + ae] = !0);
|
|
379
379
|
}
|
|
380
|
-
if (q = null, _ !== void 0 && (n(_), q = "" + _), f(
|
|
380
|
+
if (q = null, _ !== void 0 && (n(_), q = "" + _), f(W) && (n(W.key), q = "" + W.key), "key" in W) {
|
|
381
381
|
_ = {};
|
|
382
|
-
for (var Ze in
|
|
383
|
-
Ze !== "key" && (_[Ze] =
|
|
384
|
-
} else _ =
|
|
382
|
+
for (var Ze in W)
|
|
383
|
+
Ze !== "key" && (_[Ze] = W[Ze]);
|
|
384
|
+
} else _ = W;
|
|
385
385
|
return q && p(
|
|
386
386
|
_,
|
|
387
387
|
typeof C == "function" ? C.displayName || C.name || "Unknown" : C
|
|
388
388
|
), m(C, q, me, Re, d(), _);
|
|
389
389
|
}
|
|
390
|
-
function h(C,
|
|
390
|
+
function h(C, W) {
|
|
391
391
|
if (typeof C == "object" && C && C.$$typeof !== $e) {
|
|
392
|
-
if (
|
|
392
|
+
if (Y(C))
|
|
393
393
|
for (var _ = 0; _ < C.length; _++) {
|
|
394
394
|
var ae = C[_];
|
|
395
|
-
b(ae) &&
|
|
395
|
+
b(ae) && x(ae, W);
|
|
396
396
|
}
|
|
397
397
|
else if (b(C))
|
|
398
398
|
C._store && (C._store.validated = 1);
|
|
399
|
-
else if (C === null || typeof C != "object" ? _ = null : (_ =
|
|
399
|
+
else if (C === null || typeof C != "object" ? _ = null : (_ = H && C[H] || C["@@iterator"], _ = typeof _ == "function" ? _ : null), typeof _ == "function" && _ !== C.entries && (_ = _.call(C), _ !== C))
|
|
400
400
|
for (; !(C = _.next()).done; )
|
|
401
|
-
b(C.value) &&
|
|
401
|
+
b(C.value) && x(C.value, W);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
function b(C) {
|
|
405
405
|
return typeof C == "object" && C !== null && C.$$typeof === N;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
if (C._store && !C._store.validated && C.key == null && (C._store.validated = 1,
|
|
409
|
-
it[
|
|
407
|
+
function x(C, W) {
|
|
408
|
+
if (C._store && !C._store.validated && C.key == null && (C._store.validated = 1, W = y(W), !it[W])) {
|
|
409
|
+
it[W] = !0;
|
|
410
410
|
var _ = "";
|
|
411
411
|
C && C._owner != null && C._owner !== d() && (_ = null, typeof C._owner.tag == "number" ? _ = e(C._owner.type) : typeof C._owner.name == "string" && (_ = C._owner.name), _ = " It was passed a child from " + _ + ".");
|
|
412
412
|
var ae = S.getCurrentStack;
|
|
@@ -415,26 +415,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
415
415
|
return ae && (Re += ae() || ""), Re;
|
|
416
416
|
}, console.error(
|
|
417
417
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
418
|
-
|
|
418
|
+
W,
|
|
419
419
|
_
|
|
420
420
|
), S.getCurrentStack = ae;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
var
|
|
425
|
-
return _ && (_ = e(_.type)) && (
|
|
423
|
+
function y(C) {
|
|
424
|
+
var W = "", _ = d();
|
|
425
|
+
return _ && (_ = e(_.type)) && (W = `
|
|
426
426
|
|
|
427
|
-
Check the render method of \`` + _ + "`."),
|
|
427
|
+
Check the render method of \`` + _ + "`."), W || (C = e(C)) && (W = `
|
|
428
428
|
|
|
429
|
-
Check the top-level render call using <` + C + ">."),
|
|
429
|
+
Check the top-level render call using <` + C + ">."), W;
|
|
430
430
|
}
|
|
431
|
-
var w = M, N = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"),
|
|
431
|
+
var w = M, N = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), V = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), Q = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), H = Symbol.iterator, F = Symbol.for("react.client.reference"), S = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, X = Object.assign, U = Symbol.for("react.client.reference"), Y = Array.isArray, K = 0, ie, le, I, re, oe, ee, ne;
|
|
432
432
|
r.__reactDisabledLog = !0;
|
|
433
433
|
var se, we, ge = !1, Te = new (typeof WeakMap == "function" ? WeakMap : Map)(), $e = Symbol.for("react.client.reference"), Ee, Ie = {}, Ae = {}, it = {};
|
|
434
|
-
dn.Fragment = R, dn.jsx = function(C,
|
|
435
|
-
return g(C,
|
|
436
|
-
}, dn.jsxs = function(C,
|
|
437
|
-
return g(C,
|
|
434
|
+
dn.Fragment = R, dn.jsx = function(C, W, _, ae, Re) {
|
|
435
|
+
return g(C, W, _, !1, ae, Re);
|
|
436
|
+
}, dn.jsxs = function(C, W, _, ae, Re) {
|
|
437
|
+
return g(C, W, _, !0, ae, Re);
|
|
438
438
|
};
|
|
439
439
|
}()), dn;
|
|
440
440
|
}
|
|
@@ -566,18 +566,18 @@ const _o = "-", wm = (e) => {
|
|
|
566
566
|
const l = [];
|
|
567
567
|
let d = 0, f = 0, p;
|
|
568
568
|
for (let b = 0; b < i.length; b++) {
|
|
569
|
-
let
|
|
569
|
+
let x = i[b];
|
|
570
570
|
if (d === 0) {
|
|
571
|
-
if (
|
|
571
|
+
if (x === o && (r || i.slice(b, b + a) === t)) {
|
|
572
572
|
l.push(i.slice(f, b)), f = b + a;
|
|
573
573
|
continue;
|
|
574
574
|
}
|
|
575
|
-
if (
|
|
575
|
+
if (x === "/") {
|
|
576
576
|
p = b;
|
|
577
577
|
continue;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
|
|
580
|
+
x === "[" ? d++ : x === "]" && d--;
|
|
581
581
|
}
|
|
582
582
|
const v = l.length === 0 ? i : i.substring(f), m = v.startsWith(di), g = m ? v.substring(1) : v, h = p && p > f ? p - f : void 0;
|
|
583
583
|
return {
|
|
@@ -629,14 +629,14 @@ const _o = "-", wm = (e) => {
|
|
|
629
629
|
}
|
|
630
630
|
g = !1;
|
|
631
631
|
}
|
|
632
|
-
const b = Mm(f).join(":"),
|
|
633
|
-
if (a.includes(
|
|
632
|
+
const b = Mm(f).join(":"), x = p ? b + di : b, y = x + h;
|
|
633
|
+
if (a.includes(y))
|
|
634
634
|
continue;
|
|
635
|
-
a.push(
|
|
635
|
+
a.push(y);
|
|
636
636
|
const w = o(h, g);
|
|
637
637
|
for (let N = 0; N < w.length; ++N) {
|
|
638
638
|
const E = w[N];
|
|
639
|
-
a.push(
|
|
639
|
+
a.push(x + E);
|
|
640
640
|
}
|
|
641
641
|
i = d + (i.length > 0 ? " " + i : i);
|
|
642
642
|
}
|
|
@@ -676,7 +676,7 @@ function Dm(e, ...t) {
|
|
|
676
676
|
const pe = (e) => {
|
|
677
677
|
const t = (n) => n[e] || [];
|
|
678
678
|
return t.isThemeGetter = !0, t;
|
|
679
|
-
}, mi = /^\[(?:([a-z-]+):)?(.+)\]$/i, Im = /^\d+\/\d+$/, _m = /* @__PURE__ */ new Set(["px", "full", "screen"]), Om = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Lm = /\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$/, $m = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Fm = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Bm = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ct = (e) => Gt(e) || _m.has(e) || Im.test(e), ht = (e) => tn(e, "length", Km), Gt = (e) => !!e && !Number.isNaN(Number(e)), Br = (e) => tn(e, "number", Gt), fn = (e) => !!e && Number.isInteger(Number(e)), Wm = (e) => e.endsWith("%") && Gt(e.slice(0, -1)),
|
|
679
|
+
}, mi = /^\[(?:([a-z-]+):)?(.+)\]$/i, Im = /^\d+\/\d+$/, _m = /* @__PURE__ */ new Set(["px", "full", "screen"]), Om = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Lm = /\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$/, $m = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Fm = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Bm = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ct = (e) => Gt(e) || _m.has(e) || Im.test(e), ht = (e) => tn(e, "length", Km), Gt = (e) => !!e && !Number.isNaN(Number(e)), Br = (e) => tn(e, "number", Gt), fn = (e) => !!e && Number.isInteger(Number(e)), Wm = (e) => e.endsWith("%") && Gt(e.slice(0, -1)), te = (e) => mi.test(e), gt = (e) => Om.test(e), zm = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Vm = (e) => tn(e, zm, pi), Hm = (e) => tn(e, "position", pi), Gm = /* @__PURE__ */ new Set(["image", "url"]), Ym = (e) => tn(e, Gm, Xm), Um = (e) => tn(e, "", qm), mn = () => !0, tn = (e, t, n) => {
|
|
680
680
|
const r = mi.exec(e);
|
|
681
681
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
682
682
|
}, Km = (e) => (
|
|
@@ -685,36 +685,36 @@ const pe = (e) => {
|
|
|
685
685
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
686
686
|
Lm.test(e) && !$m.test(e)
|
|
687
687
|
), pi = () => !1, qm = (e) => Fm.test(e), Xm = (e) => Bm.test(e), Zm = () => {
|
|
688
|
-
const e = pe("colors"), t = pe("spacing"), n = pe("blur"), r = pe("brightness"), o = pe("borderColor"), a = pe("borderRadius"), s = pe("borderSpacing"), i = pe("borderWidth"), l = pe("contrast"), d = pe("grayscale"), f = pe("hueRotate"), p = pe("invert"), v = pe("gap"), m = pe("gradientColorStops"), g = pe("gradientColorStopPositions"), h = pe("inset"), b = pe("margin"),
|
|
688
|
+
const e = pe("colors"), t = pe("spacing"), n = pe("blur"), r = pe("brightness"), o = pe("borderColor"), a = pe("borderRadius"), s = pe("borderSpacing"), i = pe("borderWidth"), l = pe("contrast"), d = pe("grayscale"), f = pe("hueRotate"), p = pe("invert"), v = pe("gap"), m = pe("gradientColorStops"), g = pe("gradientColorStopPositions"), h = pe("inset"), b = pe("margin"), x = pe("opacity"), y = pe("padding"), w = pe("saturate"), N = pe("scale"), E = pe("sepia"), R = pe("skew"), P = pe("space"), A = pe("translate"), k = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", te, t], j = () => [te, t], V = () => ["", ct, ht], B = () => ["auto", Gt, te], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], L = () => ["solid", "dashed", "dotted", "double", "none"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], S = () => ["", "0", te], G = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [Gt, te];
|
|
689
689
|
return {
|
|
690
690
|
cacheSize: 500,
|
|
691
691
|
separator: ":",
|
|
692
692
|
theme: {
|
|
693
693
|
colors: [mn],
|
|
694
694
|
spacing: [ct, ht],
|
|
695
|
-
blur: ["none", "", gt,
|
|
695
|
+
blur: ["none", "", gt, te],
|
|
696
696
|
brightness: X(),
|
|
697
697
|
borderColor: [e],
|
|
698
|
-
borderRadius: ["none", "", "full", gt,
|
|
699
|
-
borderSpacing:
|
|
700
|
-
borderWidth:
|
|
698
|
+
borderRadius: ["none", "", "full", gt, te],
|
|
699
|
+
borderSpacing: j(),
|
|
700
|
+
borderWidth: V(),
|
|
701
701
|
contrast: X(),
|
|
702
702
|
grayscale: S(),
|
|
703
703
|
hueRotate: X(),
|
|
704
704
|
invert: S(),
|
|
705
|
-
gap:
|
|
705
|
+
gap: j(),
|
|
706
706
|
gradientColorStops: [e],
|
|
707
707
|
gradientColorStopPositions: [Wm, ht],
|
|
708
708
|
inset: z(),
|
|
709
709
|
margin: z(),
|
|
710
710
|
opacity: X(),
|
|
711
|
-
padding:
|
|
711
|
+
padding: j(),
|
|
712
712
|
saturate: X(),
|
|
713
713
|
scale: X(),
|
|
714
714
|
sepia: S(),
|
|
715
715
|
skew: X(),
|
|
716
|
-
space:
|
|
717
|
-
translate:
|
|
716
|
+
space: j(),
|
|
717
|
+
translate: j()
|
|
718
718
|
},
|
|
719
719
|
classGroups: {
|
|
720
720
|
// Layout
|
|
@@ -723,7 +723,7 @@ const pe = (e) => {
|
|
|
723
723
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
724
724
|
*/
|
|
725
725
|
aspect: [{
|
|
726
|
-
aspect: ["auto", "square", "video",
|
|
726
|
+
aspect: ["auto", "square", "video", te]
|
|
727
727
|
}],
|
|
728
728
|
/**
|
|
729
729
|
* Container
|
|
@@ -742,14 +742,14 @@ const pe = (e) => {
|
|
|
742
742
|
* @see https://tailwindcss.com/docs/break-after
|
|
743
743
|
*/
|
|
744
744
|
"break-after": [{
|
|
745
|
-
"break-after":
|
|
745
|
+
"break-after": G()
|
|
746
746
|
}],
|
|
747
747
|
/**
|
|
748
748
|
* Break Before
|
|
749
749
|
* @see https://tailwindcss.com/docs/break-before
|
|
750
750
|
*/
|
|
751
751
|
"break-before": [{
|
|
752
|
-
"break-before":
|
|
752
|
+
"break-before": G()
|
|
753
753
|
}],
|
|
754
754
|
/**
|
|
755
755
|
* Break Inside
|
|
@@ -808,28 +808,28 @@ const pe = (e) => {
|
|
|
808
808
|
* @see https://tailwindcss.com/docs/object-position
|
|
809
809
|
*/
|
|
810
810
|
"object-position": [{
|
|
811
|
-
object: [...
|
|
811
|
+
object: [...Q(), te]
|
|
812
812
|
}],
|
|
813
813
|
/**
|
|
814
814
|
* Overflow
|
|
815
815
|
* @see https://tailwindcss.com/docs/overflow
|
|
816
816
|
*/
|
|
817
817
|
overflow: [{
|
|
818
|
-
overflow:
|
|
818
|
+
overflow: $()
|
|
819
819
|
}],
|
|
820
820
|
/**
|
|
821
821
|
* Overflow X
|
|
822
822
|
* @see https://tailwindcss.com/docs/overflow
|
|
823
823
|
*/
|
|
824
824
|
"overflow-x": [{
|
|
825
|
-
"overflow-x":
|
|
825
|
+
"overflow-x": $()
|
|
826
826
|
}],
|
|
827
827
|
/**
|
|
828
828
|
* Overflow Y
|
|
829
829
|
* @see https://tailwindcss.com/docs/overflow
|
|
830
830
|
*/
|
|
831
831
|
"overflow-y": [{
|
|
832
|
-
"overflow-y":
|
|
832
|
+
"overflow-y": $()
|
|
833
833
|
}],
|
|
834
834
|
/**
|
|
835
835
|
* Overscroll Behavior
|
|
@@ -930,7 +930,7 @@ const pe = (e) => {
|
|
|
930
930
|
* @see https://tailwindcss.com/docs/z-index
|
|
931
931
|
*/
|
|
932
932
|
z: [{
|
|
933
|
-
z: ["auto", fn,
|
|
933
|
+
z: ["auto", fn, te]
|
|
934
934
|
}],
|
|
935
935
|
// Flexbox and Grid
|
|
936
936
|
/**
|
|
@@ -959,7 +959,7 @@ const pe = (e) => {
|
|
|
959
959
|
* @see https://tailwindcss.com/docs/flex
|
|
960
960
|
*/
|
|
961
961
|
flex: [{
|
|
962
|
-
flex: ["1", "auto", "initial", "none",
|
|
962
|
+
flex: ["1", "auto", "initial", "none", te]
|
|
963
963
|
}],
|
|
964
964
|
/**
|
|
965
965
|
* Flex Grow
|
|
@@ -980,7 +980,7 @@ const pe = (e) => {
|
|
|
980
980
|
* @see https://tailwindcss.com/docs/order
|
|
981
981
|
*/
|
|
982
982
|
order: [{
|
|
983
|
-
order: ["first", "last", "none", fn,
|
|
983
|
+
order: ["first", "last", "none", fn, te]
|
|
984
984
|
}],
|
|
985
985
|
/**
|
|
986
986
|
* Grid Template Columns
|
|
@@ -995,22 +995,22 @@ const pe = (e) => {
|
|
|
995
995
|
*/
|
|
996
996
|
"col-start-end": [{
|
|
997
997
|
col: ["auto", {
|
|
998
|
-
span: ["full", fn,
|
|
999
|
-
},
|
|
998
|
+
span: ["full", fn, te]
|
|
999
|
+
}, te]
|
|
1000
1000
|
}],
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Grid Column Start
|
|
1003
1003
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1004
1004
|
*/
|
|
1005
1005
|
"col-start": [{
|
|
1006
|
-
"col-start":
|
|
1006
|
+
"col-start": B()
|
|
1007
1007
|
}],
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Grid Column End
|
|
1010
1010
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1011
1011
|
*/
|
|
1012
1012
|
"col-end": [{
|
|
1013
|
-
"col-end":
|
|
1013
|
+
"col-end": B()
|
|
1014
1014
|
}],
|
|
1015
1015
|
/**
|
|
1016
1016
|
* Grid Template Rows
|
|
@@ -1025,22 +1025,22 @@ const pe = (e) => {
|
|
|
1025
1025
|
*/
|
|
1026
1026
|
"row-start-end": [{
|
|
1027
1027
|
row: ["auto", {
|
|
1028
|
-
span: [fn,
|
|
1029
|
-
},
|
|
1028
|
+
span: [fn, te]
|
|
1029
|
+
}, te]
|
|
1030
1030
|
}],
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Grid Row Start
|
|
1033
1033
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1034
1034
|
*/
|
|
1035
1035
|
"row-start": [{
|
|
1036
|
-
"row-start":
|
|
1036
|
+
"row-start": B()
|
|
1037
1037
|
}],
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Grid Row End
|
|
1040
1040
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1041
1041
|
*/
|
|
1042
1042
|
"row-end": [{
|
|
1043
|
-
"row-end":
|
|
1043
|
+
"row-end": B()
|
|
1044
1044
|
}],
|
|
1045
1045
|
/**
|
|
1046
1046
|
* Grid Auto Flow
|
|
@@ -1054,14 +1054,14 @@ const pe = (e) => {
|
|
|
1054
1054
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1055
1055
|
*/
|
|
1056
1056
|
"auto-cols": [{
|
|
1057
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
1057
|
+
"auto-cols": ["auto", "min", "max", "fr", te]
|
|
1058
1058
|
}],
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Grid Auto Rows
|
|
1061
1061
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1062
1062
|
*/
|
|
1063
1063
|
"auto-rows": [{
|
|
1064
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
1064
|
+
"auto-rows": ["auto", "min", "max", "fr", te]
|
|
1065
1065
|
}],
|
|
1066
1066
|
/**
|
|
1067
1067
|
* Gap
|
|
@@ -1153,63 +1153,63 @@ const pe = (e) => {
|
|
|
1153
1153
|
* @see https://tailwindcss.com/docs/padding
|
|
1154
1154
|
*/
|
|
1155
1155
|
p: [{
|
|
1156
|
-
p: [
|
|
1156
|
+
p: [y]
|
|
1157
1157
|
}],
|
|
1158
1158
|
/**
|
|
1159
1159
|
* Padding X
|
|
1160
1160
|
* @see https://tailwindcss.com/docs/padding
|
|
1161
1161
|
*/
|
|
1162
1162
|
px: [{
|
|
1163
|
-
px: [
|
|
1163
|
+
px: [y]
|
|
1164
1164
|
}],
|
|
1165
1165
|
/**
|
|
1166
1166
|
* Padding Y
|
|
1167
1167
|
* @see https://tailwindcss.com/docs/padding
|
|
1168
1168
|
*/
|
|
1169
1169
|
py: [{
|
|
1170
|
-
py: [
|
|
1170
|
+
py: [y]
|
|
1171
1171
|
}],
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Padding Start
|
|
1174
1174
|
* @see https://tailwindcss.com/docs/padding
|
|
1175
1175
|
*/
|
|
1176
1176
|
ps: [{
|
|
1177
|
-
ps: [
|
|
1177
|
+
ps: [y]
|
|
1178
1178
|
}],
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Padding End
|
|
1181
1181
|
* @see https://tailwindcss.com/docs/padding
|
|
1182
1182
|
*/
|
|
1183
1183
|
pe: [{
|
|
1184
|
-
pe: [
|
|
1184
|
+
pe: [y]
|
|
1185
1185
|
}],
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Padding Top
|
|
1188
1188
|
* @see https://tailwindcss.com/docs/padding
|
|
1189
1189
|
*/
|
|
1190
1190
|
pt: [{
|
|
1191
|
-
pt: [
|
|
1191
|
+
pt: [y]
|
|
1192
1192
|
}],
|
|
1193
1193
|
/**
|
|
1194
1194
|
* Padding Right
|
|
1195
1195
|
* @see https://tailwindcss.com/docs/padding
|
|
1196
1196
|
*/
|
|
1197
1197
|
pr: [{
|
|
1198
|
-
pr: [
|
|
1198
|
+
pr: [y]
|
|
1199
1199
|
}],
|
|
1200
1200
|
/**
|
|
1201
1201
|
* Padding Bottom
|
|
1202
1202
|
* @see https://tailwindcss.com/docs/padding
|
|
1203
1203
|
*/
|
|
1204
1204
|
pb: [{
|
|
1205
|
-
pb: [
|
|
1205
|
+
pb: [y]
|
|
1206
1206
|
}],
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Padding Left
|
|
1209
1209
|
* @see https://tailwindcss.com/docs/padding
|
|
1210
1210
|
*/
|
|
1211
1211
|
pl: [{
|
|
1212
|
-
pl: [
|
|
1212
|
+
pl: [y]
|
|
1213
1213
|
}],
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Margin
|
|
@@ -1304,21 +1304,21 @@ const pe = (e) => {
|
|
|
1304
1304
|
* @see https://tailwindcss.com/docs/width
|
|
1305
1305
|
*/
|
|
1306
1306
|
w: [{
|
|
1307
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
1307
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", te, t]
|
|
1308
1308
|
}],
|
|
1309
1309
|
/**
|
|
1310
1310
|
* Min-Width
|
|
1311
1311
|
* @see https://tailwindcss.com/docs/min-width
|
|
1312
1312
|
*/
|
|
1313
1313
|
"min-w": [{
|
|
1314
|
-
"min-w": [
|
|
1314
|
+
"min-w": [te, t, "min", "max", "fit"]
|
|
1315
1315
|
}],
|
|
1316
1316
|
/**
|
|
1317
1317
|
* Max-Width
|
|
1318
1318
|
* @see https://tailwindcss.com/docs/max-width
|
|
1319
1319
|
*/
|
|
1320
1320
|
"max-w": [{
|
|
1321
|
-
"max-w": [
|
|
1321
|
+
"max-w": [te, t, "none", "full", "min", "max", "fit", "prose", {
|
|
1322
1322
|
screen: [gt]
|
|
1323
1323
|
}, gt]
|
|
1324
1324
|
}],
|
|
@@ -1327,28 +1327,28 @@ const pe = (e) => {
|
|
|
1327
1327
|
* @see https://tailwindcss.com/docs/height
|
|
1328
1328
|
*/
|
|
1329
1329
|
h: [{
|
|
1330
|
-
h: [
|
|
1330
|
+
h: [te, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1331
1331
|
}],
|
|
1332
1332
|
/**
|
|
1333
1333
|
* Min-Height
|
|
1334
1334
|
* @see https://tailwindcss.com/docs/min-height
|
|
1335
1335
|
*/
|
|
1336
1336
|
"min-h": [{
|
|
1337
|
-
"min-h": [
|
|
1337
|
+
"min-h": [te, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1338
1338
|
}],
|
|
1339
1339
|
/**
|
|
1340
1340
|
* Max-Height
|
|
1341
1341
|
* @see https://tailwindcss.com/docs/max-height
|
|
1342
1342
|
*/
|
|
1343
1343
|
"max-h": [{
|
|
1344
|
-
"max-h": [
|
|
1344
|
+
"max-h": [te, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1345
1345
|
}],
|
|
1346
1346
|
/**
|
|
1347
1347
|
* Size
|
|
1348
1348
|
* @see https://tailwindcss.com/docs/size
|
|
1349
1349
|
*/
|
|
1350
1350
|
size: [{
|
|
1351
|
-
size: [
|
|
1351
|
+
size: [te, t, "auto", "min", "max", "fit"]
|
|
1352
1352
|
}],
|
|
1353
1353
|
// Typography
|
|
1354
1354
|
/**
|
|
@@ -1417,7 +1417,7 @@ const pe = (e) => {
|
|
|
1417
1417
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1418
1418
|
*/
|
|
1419
1419
|
tracking: [{
|
|
1420
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
1420
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", te]
|
|
1421
1421
|
}],
|
|
1422
1422
|
/**
|
|
1423
1423
|
* Line Clamp
|
|
@@ -1431,21 +1431,21 @@ const pe = (e) => {
|
|
|
1431
1431
|
* @see https://tailwindcss.com/docs/line-height
|
|
1432
1432
|
*/
|
|
1433
1433
|
leading: [{
|
|
1434
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ct,
|
|
1434
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ct, te]
|
|
1435
1435
|
}],
|
|
1436
1436
|
/**
|
|
1437
1437
|
* List Style Image
|
|
1438
1438
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1439
1439
|
*/
|
|
1440
1440
|
"list-image": [{
|
|
1441
|
-
"list-image": ["none",
|
|
1441
|
+
"list-image": ["none", te]
|
|
1442
1442
|
}],
|
|
1443
1443
|
/**
|
|
1444
1444
|
* List Style Type
|
|
1445
1445
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1446
1446
|
*/
|
|
1447
1447
|
"list-style-type": [{
|
|
1448
|
-
list: ["none", "disc", "decimal",
|
|
1448
|
+
list: ["none", "disc", "decimal", te]
|
|
1449
1449
|
}],
|
|
1450
1450
|
/**
|
|
1451
1451
|
* List Style Position
|
|
@@ -1467,7 +1467,7 @@ const pe = (e) => {
|
|
|
1467
1467
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1468
1468
|
*/
|
|
1469
1469
|
"placeholder-opacity": [{
|
|
1470
|
-
"placeholder-opacity": [
|
|
1470
|
+
"placeholder-opacity": [x]
|
|
1471
1471
|
}],
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Text Alignment
|
|
@@ -1488,7 +1488,7 @@ const pe = (e) => {
|
|
|
1488
1488
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1489
1489
|
*/
|
|
1490
1490
|
"text-opacity": [{
|
|
1491
|
-
"text-opacity": [
|
|
1491
|
+
"text-opacity": [x]
|
|
1492
1492
|
}],
|
|
1493
1493
|
/**
|
|
1494
1494
|
* Text Decoration
|
|
@@ -1500,7 +1500,7 @@ const pe = (e) => {
|
|
|
1500
1500
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1501
1501
|
*/
|
|
1502
1502
|
"text-decoration-style": [{
|
|
1503
|
-
decoration: [
|
|
1503
|
+
decoration: [...L(), "wavy"]
|
|
1504
1504
|
}],
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Text Decoration Thickness
|
|
@@ -1514,7 +1514,7 @@ const pe = (e) => {
|
|
|
1514
1514
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1515
1515
|
*/
|
|
1516
1516
|
"underline-offset": [{
|
|
1517
|
-
"underline-offset": ["auto", ct,
|
|
1517
|
+
"underline-offset": ["auto", ct, te]
|
|
1518
1518
|
}],
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Text Decoration Color
|
|
@@ -1545,14 +1545,14 @@ const pe = (e) => {
|
|
|
1545
1545
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1546
1546
|
*/
|
|
1547
1547
|
indent: [{
|
|
1548
|
-
indent:
|
|
1548
|
+
indent: j()
|
|
1549
1549
|
}],
|
|
1550
1550
|
/**
|
|
1551
1551
|
* Vertical Alignment
|
|
1552
1552
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1553
1553
|
*/
|
|
1554
1554
|
"vertical-align": [{
|
|
1555
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1555
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", te]
|
|
1556
1556
|
}],
|
|
1557
1557
|
/**
|
|
1558
1558
|
* Whitespace
|
|
@@ -1580,7 +1580,7 @@ const pe = (e) => {
|
|
|
1580
1580
|
* @see https://tailwindcss.com/docs/content
|
|
1581
1581
|
*/
|
|
1582
1582
|
content: [{
|
|
1583
|
-
content: ["none",
|
|
1583
|
+
content: ["none", te]
|
|
1584
1584
|
}],
|
|
1585
1585
|
// Backgrounds
|
|
1586
1586
|
/**
|
|
@@ -1603,7 +1603,7 @@ const pe = (e) => {
|
|
|
1603
1603
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
1604
1604
|
*/
|
|
1605
1605
|
"bg-opacity": [{
|
|
1606
|
-
"bg-opacity": [
|
|
1606
|
+
"bg-opacity": [x]
|
|
1607
1607
|
}],
|
|
1608
1608
|
/**
|
|
1609
1609
|
* Background Origin
|
|
@@ -1617,7 +1617,7 @@ const pe = (e) => {
|
|
|
1617
1617
|
* @see https://tailwindcss.com/docs/background-position
|
|
1618
1618
|
*/
|
|
1619
1619
|
"bg-position": [{
|
|
1620
|
-
bg: [...
|
|
1620
|
+
bg: [...Q(), Hm]
|
|
1621
1621
|
}],
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Background Repeat
|
|
@@ -1867,14 +1867,14 @@ const pe = (e) => {
|
|
|
1867
1867
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
1868
1868
|
*/
|
|
1869
1869
|
"border-opacity": [{
|
|
1870
|
-
"border-opacity": [
|
|
1870
|
+
"border-opacity": [x]
|
|
1871
1871
|
}],
|
|
1872
1872
|
/**
|
|
1873
1873
|
* Border Style
|
|
1874
1874
|
* @see https://tailwindcss.com/docs/border-style
|
|
1875
1875
|
*/
|
|
1876
1876
|
"border-style": [{
|
|
1877
|
-
border: [
|
|
1877
|
+
border: [...L(), "hidden"]
|
|
1878
1878
|
}],
|
|
1879
1879
|
/**
|
|
1880
1880
|
* Divide Width X
|
|
@@ -1905,14 +1905,14 @@ const pe = (e) => {
|
|
|
1905
1905
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1906
1906
|
*/
|
|
1907
1907
|
"divide-opacity": [{
|
|
1908
|
-
"divide-opacity": [
|
|
1908
|
+
"divide-opacity": [x]
|
|
1909
1909
|
}],
|
|
1910
1910
|
/**
|
|
1911
1911
|
* Divide Style
|
|
1912
1912
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1913
1913
|
*/
|
|
1914
1914
|
"divide-style": [{
|
|
1915
|
-
divide:
|
|
1915
|
+
divide: L()
|
|
1916
1916
|
}],
|
|
1917
1917
|
/**
|
|
1918
1918
|
* Border Color
|
|
@@ -1989,14 +1989,14 @@ const pe = (e) => {
|
|
|
1989
1989
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1990
1990
|
*/
|
|
1991
1991
|
"outline-style": [{
|
|
1992
|
-
outline: ["",
|
|
1992
|
+
outline: ["", ...L()]
|
|
1993
1993
|
}],
|
|
1994
1994
|
/**
|
|
1995
1995
|
* Outline Offset
|
|
1996
1996
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1997
1997
|
*/
|
|
1998
1998
|
"outline-offset": [{
|
|
1999
|
-
"outline-offset": [ct,
|
|
1999
|
+
"outline-offset": [ct, te]
|
|
2000
2000
|
}],
|
|
2001
2001
|
/**
|
|
2002
2002
|
* Outline Width
|
|
@@ -2017,7 +2017,7 @@ const pe = (e) => {
|
|
|
2017
2017
|
* @see https://tailwindcss.com/docs/ring-width
|
|
2018
2018
|
*/
|
|
2019
2019
|
"ring-w": [{
|
|
2020
|
-
ring:
|
|
2020
|
+
ring: V()
|
|
2021
2021
|
}],
|
|
2022
2022
|
/**
|
|
2023
2023
|
* Ring Width Inset
|
|
@@ -2036,7 +2036,7 @@ const pe = (e) => {
|
|
|
2036
2036
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
2037
2037
|
*/
|
|
2038
2038
|
"ring-opacity": [{
|
|
2039
|
-
"ring-opacity": [
|
|
2039
|
+
"ring-opacity": [x]
|
|
2040
2040
|
}],
|
|
2041
2041
|
/**
|
|
2042
2042
|
* Ring Offset Width
|
|
@@ -2072,21 +2072,21 @@ const pe = (e) => {
|
|
|
2072
2072
|
* @see https://tailwindcss.com/docs/opacity
|
|
2073
2073
|
*/
|
|
2074
2074
|
opacity: [{
|
|
2075
|
-
opacity: [
|
|
2075
|
+
opacity: [x]
|
|
2076
2076
|
}],
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Mix Blend Mode
|
|
2079
2079
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2080
2080
|
*/
|
|
2081
2081
|
"mix-blend": [{
|
|
2082
|
-
"mix-blend": [...
|
|
2082
|
+
"mix-blend": [...H(), "plus-lighter", "plus-darker"]
|
|
2083
2083
|
}],
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Background Blend Mode
|
|
2086
2086
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2087
2087
|
*/
|
|
2088
2088
|
"bg-blend": [{
|
|
2089
|
-
"bg-blend":
|
|
2089
|
+
"bg-blend": H()
|
|
2090
2090
|
}],
|
|
2091
2091
|
// Filters
|
|
2092
2092
|
/**
|
|
@@ -2123,7 +2123,7 @@ const pe = (e) => {
|
|
|
2123
2123
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2124
2124
|
*/
|
|
2125
2125
|
"drop-shadow": [{
|
|
2126
|
-
"drop-shadow": ["", "none", gt,
|
|
2126
|
+
"drop-shadow": ["", "none", gt, te]
|
|
2127
2127
|
}],
|
|
2128
2128
|
/**
|
|
2129
2129
|
* Grayscale
|
|
@@ -2215,7 +2215,7 @@ const pe = (e) => {
|
|
|
2215
2215
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2216
2216
|
*/
|
|
2217
2217
|
"backdrop-opacity": [{
|
|
2218
|
-
"backdrop-opacity": [
|
|
2218
|
+
"backdrop-opacity": [x]
|
|
2219
2219
|
}],
|
|
2220
2220
|
/**
|
|
2221
2221
|
* Backdrop Saturate
|
|
@@ -2280,7 +2280,7 @@ const pe = (e) => {
|
|
|
2280
2280
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2281
2281
|
*/
|
|
2282
2282
|
transition: [{
|
|
2283
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
2283
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", te]
|
|
2284
2284
|
}],
|
|
2285
2285
|
/**
|
|
2286
2286
|
* Transition Duration
|
|
@@ -2294,7 +2294,7 @@ const pe = (e) => {
|
|
|
2294
2294
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2295
2295
|
*/
|
|
2296
2296
|
ease: [{
|
|
2297
|
-
ease: ["linear", "in", "out", "in-out",
|
|
2297
|
+
ease: ["linear", "in", "out", "in-out", te]
|
|
2298
2298
|
}],
|
|
2299
2299
|
/**
|
|
2300
2300
|
* Transition Delay
|
|
@@ -2308,7 +2308,7 @@ const pe = (e) => {
|
|
|
2308
2308
|
* @see https://tailwindcss.com/docs/animation
|
|
2309
2309
|
*/
|
|
2310
2310
|
animate: [{
|
|
2311
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
2311
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", te]
|
|
2312
2312
|
}],
|
|
2313
2313
|
// Transforms
|
|
2314
2314
|
/**
|
|
@@ -2344,7 +2344,7 @@ const pe = (e) => {
|
|
|
2344
2344
|
* @see https://tailwindcss.com/docs/rotate
|
|
2345
2345
|
*/
|
|
2346
2346
|
rotate: [{
|
|
2347
|
-
rotate: [fn,
|
|
2347
|
+
rotate: [fn, te]
|
|
2348
2348
|
}],
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Translate X
|
|
@@ -2379,7 +2379,7 @@ const pe = (e) => {
|
|
|
2379
2379
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2380
2380
|
*/
|
|
2381
2381
|
"transform-origin": [{
|
|
2382
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
2382
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", te]
|
|
2383
2383
|
}],
|
|
2384
2384
|
// Interactivity
|
|
2385
2385
|
/**
|
|
@@ -2401,7 +2401,7 @@ const pe = (e) => {
|
|
|
2401
2401
|
* @see https://tailwindcss.com/docs/cursor
|
|
2402
2402
|
*/
|
|
2403
2403
|
cursor: [{
|
|
2404
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2404
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", te]
|
|
2405
2405
|
}],
|
|
2406
2406
|
/**
|
|
2407
2407
|
* Caret Color
|
|
@@ -2436,126 +2436,126 @@ const pe = (e) => {
|
|
|
2436
2436
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2437
2437
|
*/
|
|
2438
2438
|
"scroll-m": [{
|
|
2439
|
-
"scroll-m":
|
|
2439
|
+
"scroll-m": j()
|
|
2440
2440
|
}],
|
|
2441
2441
|
/**
|
|
2442
2442
|
* Scroll Margin X
|
|
2443
2443
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2444
2444
|
*/
|
|
2445
2445
|
"scroll-mx": [{
|
|
2446
|
-
"scroll-mx":
|
|
2446
|
+
"scroll-mx": j()
|
|
2447
2447
|
}],
|
|
2448
2448
|
/**
|
|
2449
2449
|
* Scroll Margin Y
|
|
2450
2450
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2451
2451
|
*/
|
|
2452
2452
|
"scroll-my": [{
|
|
2453
|
-
"scroll-my":
|
|
2453
|
+
"scroll-my": j()
|
|
2454
2454
|
}],
|
|
2455
2455
|
/**
|
|
2456
2456
|
* Scroll Margin Start
|
|
2457
2457
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2458
2458
|
*/
|
|
2459
2459
|
"scroll-ms": [{
|
|
2460
|
-
"scroll-ms":
|
|
2460
|
+
"scroll-ms": j()
|
|
2461
2461
|
}],
|
|
2462
2462
|
/**
|
|
2463
2463
|
* Scroll Margin End
|
|
2464
2464
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2465
2465
|
*/
|
|
2466
2466
|
"scroll-me": [{
|
|
2467
|
-
"scroll-me":
|
|
2467
|
+
"scroll-me": j()
|
|
2468
2468
|
}],
|
|
2469
2469
|
/**
|
|
2470
2470
|
* Scroll Margin Top
|
|
2471
2471
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2472
2472
|
*/
|
|
2473
2473
|
"scroll-mt": [{
|
|
2474
|
-
"scroll-mt":
|
|
2474
|
+
"scroll-mt": j()
|
|
2475
2475
|
}],
|
|
2476
2476
|
/**
|
|
2477
2477
|
* Scroll Margin Right
|
|
2478
2478
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2479
2479
|
*/
|
|
2480
2480
|
"scroll-mr": [{
|
|
2481
|
-
"scroll-mr":
|
|
2481
|
+
"scroll-mr": j()
|
|
2482
2482
|
}],
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Scroll Margin Bottom
|
|
2485
2485
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2486
2486
|
*/
|
|
2487
2487
|
"scroll-mb": [{
|
|
2488
|
-
"scroll-mb":
|
|
2488
|
+
"scroll-mb": j()
|
|
2489
2489
|
}],
|
|
2490
2490
|
/**
|
|
2491
2491
|
* Scroll Margin Left
|
|
2492
2492
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2493
2493
|
*/
|
|
2494
2494
|
"scroll-ml": [{
|
|
2495
|
-
"scroll-ml":
|
|
2495
|
+
"scroll-ml": j()
|
|
2496
2496
|
}],
|
|
2497
2497
|
/**
|
|
2498
2498
|
* Scroll Padding
|
|
2499
2499
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2500
2500
|
*/
|
|
2501
2501
|
"scroll-p": [{
|
|
2502
|
-
"scroll-p":
|
|
2502
|
+
"scroll-p": j()
|
|
2503
2503
|
}],
|
|
2504
2504
|
/**
|
|
2505
2505
|
* Scroll Padding X
|
|
2506
2506
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2507
2507
|
*/
|
|
2508
2508
|
"scroll-px": [{
|
|
2509
|
-
"scroll-px":
|
|
2509
|
+
"scroll-px": j()
|
|
2510
2510
|
}],
|
|
2511
2511
|
/**
|
|
2512
2512
|
* Scroll Padding Y
|
|
2513
2513
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2514
2514
|
*/
|
|
2515
2515
|
"scroll-py": [{
|
|
2516
|
-
"scroll-py":
|
|
2516
|
+
"scroll-py": j()
|
|
2517
2517
|
}],
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Scroll Padding Start
|
|
2520
2520
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2521
2521
|
*/
|
|
2522
2522
|
"scroll-ps": [{
|
|
2523
|
-
"scroll-ps":
|
|
2523
|
+
"scroll-ps": j()
|
|
2524
2524
|
}],
|
|
2525
2525
|
/**
|
|
2526
2526
|
* Scroll Padding End
|
|
2527
2527
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2528
2528
|
*/
|
|
2529
2529
|
"scroll-pe": [{
|
|
2530
|
-
"scroll-pe":
|
|
2530
|
+
"scroll-pe": j()
|
|
2531
2531
|
}],
|
|
2532
2532
|
/**
|
|
2533
2533
|
* Scroll Padding Top
|
|
2534
2534
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2535
2535
|
*/
|
|
2536
2536
|
"scroll-pt": [{
|
|
2537
|
-
"scroll-pt":
|
|
2537
|
+
"scroll-pt": j()
|
|
2538
2538
|
}],
|
|
2539
2539
|
/**
|
|
2540
2540
|
* Scroll Padding Right
|
|
2541
2541
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2542
2542
|
*/
|
|
2543
2543
|
"scroll-pr": [{
|
|
2544
|
-
"scroll-pr":
|
|
2544
|
+
"scroll-pr": j()
|
|
2545
2545
|
}],
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Scroll Padding Bottom
|
|
2548
2548
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2549
2549
|
*/
|
|
2550
2550
|
"scroll-pb": [{
|
|
2551
|
-
"scroll-pb":
|
|
2551
|
+
"scroll-pb": j()
|
|
2552
2552
|
}],
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Scroll Padding Left
|
|
2555
2555
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2556
2556
|
*/
|
|
2557
2557
|
"scroll-pl": [{
|
|
2558
|
-
"scroll-pl":
|
|
2558
|
+
"scroll-pl": j()
|
|
2559
2559
|
}],
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Scroll Snap Align
|
|
@@ -2623,7 +2623,7 @@ const pe = (e) => {
|
|
|
2623
2623
|
* @see https://tailwindcss.com/docs/will-change
|
|
2624
2624
|
*/
|
|
2625
2625
|
"will-change": [{
|
|
2626
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2626
|
+
"will-change": ["auto", "scroll", "contents", "transform", te]
|
|
2627
2627
|
}],
|
|
2628
2628
|
// SVG
|
|
2629
2629
|
/**
|
|
@@ -3946,30 +3946,30 @@ function Xp(e) {
|
|
|
3946
3946
|
}
|
|
3947
3947
|
const Zp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Qp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Jp = /^'([^]*?)'?$/, eh = /''/g, th = /[a-zA-Z]/;
|
|
3948
3948
|
function Wr(e, t, n) {
|
|
3949
|
-
var f, p, v, m, g, h, b,
|
|
3950
|
-
const r = pr(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Oo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((p = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (v = r.locale) == null ? void 0 : v.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((h = (g = n == null ? void 0 : n.locale) == null ? void 0 : g.options) == null ? void 0 : h.weekStartsOn) ?? r.weekStartsOn ?? ((
|
|
3949
|
+
var f, p, v, m, g, h, b, x;
|
|
3950
|
+
const r = pr(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Oo, a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((p = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (v = r.locale) == null ? void 0 : v.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((h = (g = n == null ? void 0 : n.locale) == null ? void 0 : g.options) == null ? void 0 : h.weekStartsOn) ?? r.weekStartsOn ?? ((x = (b = r.locale) == null ? void 0 : b.options) == null ? void 0 : x.weekStartsOn) ?? 0, i = De(e, n == null ? void 0 : n.in);
|
|
3951
3951
|
if (!Xp(i))
|
|
3952
3952
|
throw new RangeError("Invalid time value");
|
|
3953
|
-
let l = t.match(Qp).map((
|
|
3954
|
-
const w =
|
|
3953
|
+
let l = t.match(Qp).map((y) => {
|
|
3954
|
+
const w = y[0];
|
|
3955
3955
|
if (w === "p" || w === "P") {
|
|
3956
3956
|
const N = Wp[w];
|
|
3957
|
-
return N(
|
|
3957
|
+
return N(y, o.formatLong);
|
|
3958
3958
|
}
|
|
3959
|
-
return
|
|
3960
|
-
}).join("").match(Zp).map((
|
|
3961
|
-
if (
|
|
3959
|
+
return y;
|
|
3960
|
+
}).join("").match(Zp).map((y) => {
|
|
3961
|
+
if (y === "''")
|
|
3962
3962
|
return { isToken: !1, value: "'" };
|
|
3963
|
-
const w =
|
|
3963
|
+
const w = y[0];
|
|
3964
3964
|
if (w === "'")
|
|
3965
|
-
return { isToken: !1, value: nh(
|
|
3965
|
+
return { isToken: !1, value: nh(y) };
|
|
3966
3966
|
if (as[w])
|
|
3967
|
-
return { isToken: !0, value:
|
|
3967
|
+
return { isToken: !0, value: y };
|
|
3968
3968
|
if (w.match(th))
|
|
3969
3969
|
throw new RangeError(
|
|
3970
3970
|
"Format string contains an unescaped latin alphabet character `" + w + "`"
|
|
3971
3971
|
);
|
|
3972
|
-
return { isToken: !1, value:
|
|
3972
|
+
return { isToken: !1, value: y };
|
|
3973
3973
|
});
|
|
3974
3974
|
o.localize.preprocessor && (l = o.localize.preprocessor(i, l));
|
|
3975
3975
|
const d = {
|
|
@@ -3977,9 +3977,9 @@ function Wr(e, t, n) {
|
|
|
3977
3977
|
weekStartsOn: s,
|
|
3978
3978
|
locale: o
|
|
3979
3979
|
};
|
|
3980
|
-
return l.map((
|
|
3981
|
-
if (!
|
|
3982
|
-
const w =
|
|
3980
|
+
return l.map((y) => {
|
|
3981
|
+
if (!y.isToken) return y.value;
|
|
3982
|
+
const w = y.value;
|
|
3983
3983
|
(!(n != null && n.useAdditionalWeekYearTokens) && Yp(w) || !(n != null && n.useAdditionalDayOfYearTokens) && Gp(w)) && Up(w, t, String(e));
|
|
3984
3984
|
const N = as[w[0]];
|
|
3985
3985
|
return N(i, w, o.localize, d);
|
|
@@ -4838,8 +4838,8 @@ function ye(e, t = []) {
|
|
|
4838
4838
|
const i = u.createContext(s), l = n.length;
|
|
4839
4839
|
n = [...n, s];
|
|
4840
4840
|
const d = (p) => {
|
|
4841
|
-
var
|
|
4842
|
-
const { scope: v, children: m, ...g } = p, h = ((
|
|
4841
|
+
var x;
|
|
4842
|
+
const { scope: v, children: m, ...g } = p, h = ((x = v == null ? void 0 : v[e]) == null ? void 0 : x[l]) || i, b = u.useMemo(() => g, Object.values(g));
|
|
4843
4843
|
return /* @__PURE__ */ c.jsx(h.Provider, { value: b, children: m });
|
|
4844
4844
|
};
|
|
4845
4845
|
d.displayName = a + "Provider";
|
|
@@ -4952,21 +4952,21 @@ function nn(e) {
|
|
|
4952
4952
|
t,
|
|
4953
4953
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
4954
4954
|
), s = (m) => {
|
|
4955
|
-
const { scope: g, children: h } = m, b = M.useRef(null),
|
|
4956
|
-
return /* @__PURE__ */ c.jsx(o, { scope: g, itemMap:
|
|
4955
|
+
const { scope: g, children: h } = m, b = M.useRef(null), x = M.useRef(/* @__PURE__ */ new Map()).current;
|
|
4956
|
+
return /* @__PURE__ */ c.jsx(o, { scope: g, itemMap: x, collectionRef: b, children: h });
|
|
4957
4957
|
};
|
|
4958
4958
|
s.displayName = t;
|
|
4959
4959
|
const i = e + "CollectionSlot", l = M.forwardRef(
|
|
4960
4960
|
(m, g) => {
|
|
4961
|
-
const { scope: h, children: b } = m,
|
|
4962
|
-
return /* @__PURE__ */ c.jsx(lt, { ref:
|
|
4961
|
+
const { scope: h, children: b } = m, x = a(i, h), y = Z(g, x.collectionRef);
|
|
4962
|
+
return /* @__PURE__ */ c.jsx(lt, { ref: y, children: b });
|
|
4963
4963
|
}
|
|
4964
4964
|
);
|
|
4965
4965
|
l.displayName = i;
|
|
4966
4966
|
const d = e + "CollectionItemSlot", f = "data-radix-collection-item", p = M.forwardRef(
|
|
4967
4967
|
(m, g) => {
|
|
4968
|
-
const { scope: h, children: b, ...
|
|
4969
|
-
return M.useEffect(() => (N.itemMap.set(
|
|
4968
|
+
const { scope: h, children: b, ...x } = m, y = M.useRef(null), w = Z(g, y), N = a(d, h);
|
|
4969
|
+
return M.useEffect(() => (N.itemMap.set(y, { ref: y, ...x }), () => void N.itemMap.delete(y))), /* @__PURE__ */ c.jsx(lt, { [f]: "", ref: w, children: b });
|
|
4970
4970
|
}
|
|
4971
4971
|
);
|
|
4972
4972
|
p.displayName = d;
|
|
@@ -4975,9 +4975,9 @@ function nn(e) {
|
|
|
4975
4975
|
return M.useCallback(() => {
|
|
4976
4976
|
const b = g.collectionRef.current;
|
|
4977
4977
|
if (!b) return [];
|
|
4978
|
-
const
|
|
4978
|
+
const x = Array.from(b.querySelectorAll(`[${f}]`));
|
|
4979
4979
|
return Array.from(g.itemMap.values()).sort(
|
|
4980
|
-
(N, E) =>
|
|
4980
|
+
(N, E) => x.indexOf(N.ref.current) - x.indexOf(E.ref.current)
|
|
4981
4981
|
);
|
|
4982
4982
|
}, [g.collectionRef, g.itemMap]);
|
|
4983
4983
|
}
|
|
@@ -4987,7 +4987,7 @@ function nn(e) {
|
|
|
4987
4987
|
r
|
|
4988
4988
|
];
|
|
4989
4989
|
}
|
|
4990
|
-
function
|
|
4990
|
+
function D(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
4991
4991
|
return function(o) {
|
|
4992
4992
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
4993
4993
|
return t == null ? void 0 : t(o);
|
|
@@ -5181,7 +5181,7 @@ var Ai = "CollapsibleTrigger", ki = u.forwardRef(
|
|
|
5181
5181
|
disabled: o.disabled,
|
|
5182
5182
|
...r,
|
|
5183
5183
|
ref: t,
|
|
5184
|
-
onClick:
|
|
5184
|
+
onClick: D(e.onClick, o.onOpenToggle)
|
|
5185
5185
|
}
|
|
5186
5186
|
);
|
|
5187
5187
|
}
|
|
@@ -5195,19 +5195,19 @@ var zo = "CollapsibleContent", ji = u.forwardRef(
|
|
|
5195
5195
|
);
|
|
5196
5196
|
ji.displayName = zo;
|
|
5197
5197
|
var fg = u.forwardRef((e, t) => {
|
|
5198
|
-
const { __scopeCollapsible: n, present: r, children: o, ...a } = e, s = Wo(zo, n), [i, l] = u.useState(r), d = u.useRef(null), f = Z(t, d), p = u.useRef(0), v = p.current, m = u.useRef(0), g = m.current, h = s.open || i, b = u.useRef(h),
|
|
5198
|
+
const { __scopeCollapsible: n, present: r, children: o, ...a } = e, s = Wo(zo, n), [i, l] = u.useState(r), d = u.useRef(null), f = Z(t, d), p = u.useRef(0), v = p.current, m = u.useRef(0), g = m.current, h = s.open || i, b = u.useRef(h), x = u.useRef(void 0);
|
|
5199
5199
|
return u.useEffect(() => {
|
|
5200
|
-
const
|
|
5201
|
-
return () => cancelAnimationFrame(
|
|
5200
|
+
const y = requestAnimationFrame(() => b.current = !1);
|
|
5201
|
+
return () => cancelAnimationFrame(y);
|
|
5202
5202
|
}, []), xe(() => {
|
|
5203
|
-
const
|
|
5204
|
-
if (
|
|
5205
|
-
|
|
5206
|
-
transitionDuration:
|
|
5207
|
-
animationName:
|
|
5208
|
-
},
|
|
5209
|
-
const w =
|
|
5210
|
-
p.current = w.height, m.current = w.width, b.current || (
|
|
5203
|
+
const y = d.current;
|
|
5204
|
+
if (y) {
|
|
5205
|
+
x.current = x.current || {
|
|
5206
|
+
transitionDuration: y.style.transitionDuration,
|
|
5207
|
+
animationName: y.style.animationName
|
|
5208
|
+
}, y.style.transitionDuration = "0s", y.style.animationName = "none";
|
|
5209
|
+
const w = y.getBoundingClientRect();
|
|
5210
|
+
p.current = w.height, m.current = w.width, b.current || (y.style.transitionDuration = x.current.transitionDuration, y.style.animationName = x.current.animationName), l(r);
|
|
5211
5211
|
}
|
|
5212
5212
|
}, [s.open, r]), /* @__PURE__ */ c.jsx(
|
|
5213
5213
|
O.div,
|
|
@@ -5303,27 +5303,27 @@ var [Ii, yg] = vr(ft), [_i, wg] = vr(
|
|
|
5303
5303
|
);
|
|
5304
5304
|
}), [Eg, br] = vr(ft), Oi = M.forwardRef(
|
|
5305
5305
|
(e, t) => {
|
|
5306
|
-
const { __scopeAccordion: n, disabled: r, dir: o, orientation: a = "vertical", ...s } = e, i = M.useRef(null), l = Z(i, t), d = bg(n), p = Pt(o) === "ltr", v =
|
|
5306
|
+
const { __scopeAccordion: n, disabled: r, dir: o, orientation: a = "vertical", ...s } = e, i = M.useRef(null), l = Z(i, t), d = bg(n), p = Pt(o) === "ltr", v = D(e.onKeyDown, (m) => {
|
|
5307
5307
|
var A;
|
|
5308
5308
|
if (!vg.includes(m.key)) return;
|
|
5309
5309
|
const g = m.target, h = d().filter((k) => {
|
|
5310
|
-
var
|
|
5311
|
-
return !((
|
|
5312
|
-
}), b = h.findIndex((k) => k.ref.current === g),
|
|
5310
|
+
var $;
|
|
5311
|
+
return !(($ = k.ref.current) != null && $.disabled);
|
|
5312
|
+
}), b = h.findIndex((k) => k.ref.current === g), x = h.length;
|
|
5313
5313
|
if (b === -1) return;
|
|
5314
5314
|
m.preventDefault();
|
|
5315
|
-
let
|
|
5316
|
-
const w = 0, N =
|
|
5317
|
-
|
|
5315
|
+
let y = b;
|
|
5316
|
+
const w = 0, N = x - 1, E = () => {
|
|
5317
|
+
y = b + 1, y > N && (y = w);
|
|
5318
5318
|
}, R = () => {
|
|
5319
|
-
|
|
5319
|
+
y = b - 1, y < w && (y = N);
|
|
5320
5320
|
};
|
|
5321
5321
|
switch (m.key) {
|
|
5322
5322
|
case "Home":
|
|
5323
|
-
|
|
5323
|
+
y = w;
|
|
5324
5324
|
break;
|
|
5325
5325
|
case "End":
|
|
5326
|
-
|
|
5326
|
+
y = N;
|
|
5327
5327
|
break;
|
|
5328
5328
|
case "ArrowRight":
|
|
5329
5329
|
a === "horizontal" && (p ? E() : R());
|
|
@@ -5338,7 +5338,7 @@ var [Ii, yg] = vr(ft), [_i, wg] = vr(
|
|
|
5338
5338
|
a === "vertical" && R();
|
|
5339
5339
|
break;
|
|
5340
5340
|
}
|
|
5341
|
-
const P =
|
|
5341
|
+
const P = y % x;
|
|
5342
5342
|
(A = h[P].ref.current) == null || A.focus();
|
|
5343
5343
|
});
|
|
5344
5344
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -5589,15 +5589,15 @@ var _g = "DismissableLayer", lo = "dismissableLayer.update", Og = "dismissableLa
|
|
|
5589
5589
|
onInteractOutside: s,
|
|
5590
5590
|
onDismiss: i,
|
|
5591
5591
|
...l
|
|
5592
|
-
} = e, d = u.useContext(Yi), [f, p] = u.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = u.useState({}), g = Z(t, (P) => p(P)), h = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1),
|
|
5593
|
-
const A = P.target, k = [...d.branches].some((
|
|
5592
|
+
} = e, d = u.useContext(Yi), [f, p] = u.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = u.useState({}), g = Z(t, (P) => p(P)), h = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(b), y = f ? h.indexOf(f) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, N = y >= x, E = Bg((P) => {
|
|
5593
|
+
const A = P.target, k = [...d.branches].some(($) => $.contains(A));
|
|
5594
5594
|
!N || k || (o == null || o(P), s == null || s(P), P.defaultPrevented || i == null || i());
|
|
5595
5595
|
}, v), R = Wg((P) => {
|
|
5596
5596
|
const A = P.target;
|
|
5597
|
-
[...d.branches].some((
|
|
5597
|
+
[...d.branches].some(($) => $.contains(A)) || (a == null || a(P), s == null || s(P), P.defaultPrevented || i == null || i());
|
|
5598
5598
|
}, v);
|
|
5599
5599
|
return Ig((P) => {
|
|
5600
|
-
|
|
5600
|
+
y === d.layers.size - 1 && (r == null || r(P), !P.defaultPrevented && i && (P.preventDefault(), i()));
|
|
5601
5601
|
}, v), u.useEffect(() => {
|
|
5602
5602
|
if (f)
|
|
5603
5603
|
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Ns = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), Es(), () => {
|
|
@@ -5617,9 +5617,9 @@ var _g = "DismissableLayer", lo = "dismissableLayer.update", Og = "dismissableLa
|
|
|
5617
5617
|
pointerEvents: w ? N ? "auto" : "none" : void 0,
|
|
5618
5618
|
...e.style
|
|
5619
5619
|
},
|
|
5620
|
-
onFocusCapture:
|
|
5621
|
-
onBlurCapture:
|
|
5622
|
-
onPointerDownCapture:
|
|
5620
|
+
onFocusCapture: D(e.onFocusCapture, R.onFocusCapture),
|
|
5621
|
+
onBlurCapture: D(e.onBlurCapture, R.onBlurCapture),
|
|
5622
|
+
onPointerDownCapture: D(
|
|
5623
5623
|
e.onPointerDownCapture,
|
|
5624
5624
|
E.onPointerDownCapture
|
|
5625
5625
|
)
|
|
@@ -5717,15 +5717,15 @@ var Yr = "focusScope.autoFocusOnMount", Ur = "focusScope.autoFocusOnUnmount", Rs
|
|
|
5717
5717
|
if (m.paused || !i) return;
|
|
5718
5718
|
const N = w.relatedTarget;
|
|
5719
5719
|
N !== null && (i.contains(N) || bt(p.current, { select: !0 }));
|
|
5720
|
-
},
|
|
5720
|
+
}, x = function(w) {
|
|
5721
5721
|
if (document.activeElement === document.body)
|
|
5722
5722
|
for (const E of w)
|
|
5723
5723
|
E.removedNodes.length > 0 && bt(i);
|
|
5724
5724
|
};
|
|
5725
5725
|
document.addEventListener("focusin", h), document.addEventListener("focusout", b);
|
|
5726
|
-
const
|
|
5727
|
-
return i &&
|
|
5728
|
-
document.removeEventListener("focusin", h), document.removeEventListener("focusout", b),
|
|
5726
|
+
const y = new MutationObserver(x);
|
|
5727
|
+
return i && y.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
5728
|
+
document.removeEventListener("focusin", h), document.removeEventListener("focusout", b), y.disconnect();
|
|
5729
5729
|
};
|
|
5730
5730
|
}
|
|
5731
5731
|
}, [r, i, m.paused]), u.useEffect(() => {
|
|
@@ -5733,13 +5733,13 @@ var Yr = "focusScope.autoFocusOnMount", Ur = "focusScope.autoFocusOnUnmount", Rs
|
|
|
5733
5733
|
Ss.add(m);
|
|
5734
5734
|
const h = document.activeElement;
|
|
5735
5735
|
if (!i.contains(h)) {
|
|
5736
|
-
const
|
|
5737
|
-
i.addEventListener(Yr, d), i.dispatchEvent(
|
|
5736
|
+
const x = new CustomEvent(Yr, Rs);
|
|
5737
|
+
i.addEventListener(Yr, d), i.dispatchEvent(x), x.defaultPrevented || (Vg(Kg(Ki(i)), { select: !0 }), document.activeElement === h && bt(i));
|
|
5738
5738
|
}
|
|
5739
5739
|
return () => {
|
|
5740
5740
|
i.removeEventListener(Yr, d), setTimeout(() => {
|
|
5741
|
-
const
|
|
5742
|
-
i.addEventListener(Ur, f), i.dispatchEvent(
|
|
5741
|
+
const x = new CustomEvent(Ur, Rs);
|
|
5742
|
+
i.addEventListener(Ur, f), i.dispatchEvent(x), x.defaultPrevented || bt(h ?? document.body, { select: !0 }), i.removeEventListener(Ur, f), Ss.remove(m);
|
|
5743
5743
|
}, 0);
|
|
5744
5744
|
};
|
|
5745
5745
|
}
|
|
@@ -5747,10 +5747,10 @@ var Yr = "focusScope.autoFocusOnMount", Ur = "focusScope.autoFocusOnUnmount", Rs
|
|
|
5747
5747
|
const g = u.useCallback(
|
|
5748
5748
|
(h) => {
|
|
5749
5749
|
if (!n && !r || m.paused) return;
|
|
5750
|
-
const b = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey,
|
|
5751
|
-
if (b &&
|
|
5752
|
-
const
|
|
5753
|
-
w && N ? !h.shiftKey &&
|
|
5750
|
+
const b = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, x = document.activeElement;
|
|
5751
|
+
if (b && x) {
|
|
5752
|
+
const y = h.currentTarget, [w, N] = Hg(y);
|
|
5753
|
+
w && N ? !h.shiftKey && x === N ? (h.preventDefault(), n && bt(w, { select: !0 })) : h.shiftKey && x === w && (h.preventDefault(), n && bt(N, { select: !0 })) : x === y && h.preventDefault();
|
|
5754
5754
|
}
|
|
5755
5755
|
},
|
|
5756
5756
|
[n, r, m.paused]
|
|
@@ -5990,12 +5990,12 @@ var Zi = ov(), Xr = function() {
|
|
|
5990
5990
|
onScrollCapture: Xr,
|
|
5991
5991
|
onWheelCapture: Xr,
|
|
5992
5992
|
onTouchMoveCapture: Xr
|
|
5993
|
-
}), o = r[0], a = r[1], s = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, v = e.sideCar, m = e.noIsolation, g = e.inert, h = e.allowPinchZoom, b = e.as,
|
|
5993
|
+
}), o = r[0], a = r[1], s = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, v = e.sideCar, m = e.noIsolation, g = e.inert, h = e.allowPinchZoom, b = e.as, x = b === void 0 ? "div" : b, y = e.gapMode, w = qi(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = v, E = tv([n, t]), R = rt(rt({}, w), o);
|
|
5994
5994
|
return u.createElement(
|
|
5995
5995
|
u.Fragment,
|
|
5996
5996
|
null,
|
|
5997
|
-
f && u.createElement(N, { sideCar: Zi, removeScrollBar: d, shards: p, noIsolation: m, inert: g, setCallbacks: a, allowPinchZoom: !!h, lockRef: n, gapMode:
|
|
5998
|
-
s ? u.cloneElement(u.Children.only(i), rt(rt({}, R), { ref: E })) : u.createElement(
|
|
5997
|
+
f && u.createElement(N, { sideCar: Zi, removeScrollBar: d, shards: p, noIsolation: m, inert: g, setCallbacks: a, allowPinchZoom: !!h, lockRef: n, gapMode: y }),
|
|
5998
|
+
s ? u.cloneElement(u.Children.only(i), rt(rt({}, R), { ref: E })) : u.createElement(x, rt({}, R, { className: l, ref: E }), i)
|
|
5999
5999
|
);
|
|
6000
6000
|
});
|
|
6001
6001
|
yr.defaultProps = {
|
|
@@ -6195,8 +6195,8 @@ var zt = uo ? { passive: !1 } : !1, xv = function(e) {
|
|
|
6195
6195
|
}, Rv = function(e, t, n, r, o) {
|
|
6196
6196
|
var a = Ev(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, l = t.contains(i), d = !1, f = s > 0, p = 0, v = 0;
|
|
6197
6197
|
do {
|
|
6198
|
-
var m = tc(e, i), g = m[0], h = m[1], b = m[2],
|
|
6199
|
-
(g ||
|
|
6198
|
+
var m = tc(e, i), g = m[0], h = m[1], b = m[2], x = h - b - a * g;
|
|
6199
|
+
(g || x) && ec(e, i) && (p += x, v += g), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
|
|
6200
6200
|
} while (
|
|
6201
6201
|
// portaled content
|
|
6202
6202
|
!l && i !== document.body || // self content
|
|
@@ -6237,7 +6237,7 @@ function Tv(e) {
|
|
|
6237
6237
|
var i = u.useCallback(function(h, b) {
|
|
6238
6238
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
6239
6239
|
return !s.current.allowPinchZoom;
|
|
6240
|
-
var
|
|
6240
|
+
var x = Wn(h), y = n.current, w = "deltaX" in h ? h.deltaX : y[0] - x[0], N = "deltaY" in h ? h.deltaY : y[1] - x[1], E, R = h.target, P = Math.abs(w) > Math.abs(N) ? "h" : "v";
|
|
6241
6241
|
if ("touches" in h && P === "h" && R.type === "range")
|
|
6242
6242
|
return !1;
|
|
6243
6243
|
var A = js(P, R);
|
|
@@ -6252,22 +6252,22 @@ function Tv(e) {
|
|
|
6252
6252
|
}, []), l = u.useCallback(function(h) {
|
|
6253
6253
|
var b = h;
|
|
6254
6254
|
if (!(!Vt.length || Vt[Vt.length - 1] !== a)) {
|
|
6255
|
-
var
|
|
6256
|
-
return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) && Pv(E.delta,
|
|
6255
|
+
var x = "deltaY" in b ? Ds(b) : Wn(b), y = t.current.filter(function(E) {
|
|
6256
|
+
return E.name === b.type && (E.target === b.target || b.target === E.shadowParent) && Pv(E.delta, x);
|
|
6257
6257
|
})[0];
|
|
6258
|
-
if (
|
|
6258
|
+
if (y && y.should) {
|
|
6259
6259
|
b.cancelable && b.preventDefault();
|
|
6260
6260
|
return;
|
|
6261
6261
|
}
|
|
6262
|
-
if (!
|
|
6262
|
+
if (!y) {
|
|
6263
6263
|
var w = (s.current.shards || []).map(Is).filter(Boolean).filter(function(E) {
|
|
6264
6264
|
return E.contains(b.target);
|
|
6265
6265
|
}), N = w.length > 0 ? i(b, w[0]) : !s.current.noIsolation;
|
|
6266
6266
|
N && b.cancelable && b.preventDefault();
|
|
6267
6267
|
}
|
|
6268
6268
|
}
|
|
6269
|
-
}, []), d = u.useCallback(function(h, b,
|
|
6270
|
-
var w = { name: h, delta: b, target:
|
|
6269
|
+
}, []), d = u.useCallback(function(h, b, x, y) {
|
|
6270
|
+
var w = { name: h, delta: b, target: x, should: y, shadowParent: Av(x) };
|
|
6271
6271
|
t.current.push(w), setTimeout(function() {
|
|
6272
6272
|
t.current = t.current.filter(function(N) {
|
|
6273
6273
|
return N !== w;
|
|
@@ -6340,8 +6340,8 @@ var jv = function(e) {
|
|
|
6340
6340
|
try {
|
|
6341
6341
|
var m = v.getAttribute(r), g = m !== null && m !== "false", h = (Ht.get(v) || 0) + 1, b = (a.get(v) || 0) + 1;
|
|
6342
6342
|
Ht.set(v, h), a.set(v, b), s.push(v), h === 1 && g && zn.set(v, !0), b === 1 && v.setAttribute(n, "true"), g || v.setAttribute(r, "true");
|
|
6343
|
-
} catch (
|
|
6344
|
-
console.error("aria-hidden: cannot operate on ", v,
|
|
6343
|
+
} catch (x) {
|
|
6344
|
+
console.error("aria-hidden: cannot operate on ", v, x);
|
|
6345
6345
|
}
|
|
6346
6346
|
});
|
|
6347
6347
|
};
|
|
@@ -6401,7 +6401,7 @@ var sc = "DialogTrigger", ic = u.forwardRef(
|
|
|
6401
6401
|
"data-state": Qo(o.open),
|
|
6402
6402
|
...r,
|
|
6403
6403
|
ref: a,
|
|
6404
|
-
onClick:
|
|
6404
|
+
onClick: D(e.onClick, o.onOpenToggle)
|
|
6405
6405
|
}
|
|
6406
6406
|
);
|
|
6407
6407
|
}
|
|
@@ -6458,15 +6458,15 @@ var $v = u.forwardRef(
|
|
|
6458
6458
|
ref: o,
|
|
6459
6459
|
trapFocus: n.open,
|
|
6460
6460
|
disableOutsidePointerEvents: !0,
|
|
6461
|
-
onCloseAutoFocus:
|
|
6461
|
+
onCloseAutoFocus: D(e.onCloseAutoFocus, (a) => {
|
|
6462
6462
|
var s;
|
|
6463
6463
|
a.preventDefault(), (s = n.triggerRef.current) == null || s.focus();
|
|
6464
6464
|
}),
|
|
6465
|
-
onPointerDownOutside:
|
|
6465
|
+
onPointerDownOutside: D(e.onPointerDownOutside, (a) => {
|
|
6466
6466
|
const s = a.detail.originalEvent, i = s.button === 0 && s.ctrlKey === !0;
|
|
6467
6467
|
(s.button === 2 || i) && a.preventDefault();
|
|
6468
6468
|
}),
|
|
6469
|
-
onFocusOutside:
|
|
6469
|
+
onFocusOutside: D(
|
|
6470
6470
|
e.onFocusOutside,
|
|
6471
6471
|
(a) => a.preventDefault()
|
|
6472
6472
|
)
|
|
@@ -6552,7 +6552,7 @@ var gc = "DialogClose", vc = u.forwardRef(
|
|
|
6552
6552
|
type: "button",
|
|
6553
6553
|
...r,
|
|
6554
6554
|
ref: t,
|
|
6555
|
-
onClick:
|
|
6555
|
+
onClick: D(e.onClick, () => o.onOpenChange(!1))
|
|
6556
6556
|
}
|
|
6557
6557
|
);
|
|
6558
6558
|
}
|
|
@@ -6623,7 +6623,7 @@ var Kt = "AlertDialogContent", [Kv, qv] = Hv(Kt), Mc = u.forwardRef(
|
|
|
6623
6623
|
...a,
|
|
6624
6624
|
...o,
|
|
6625
6625
|
ref: i,
|
|
6626
|
-
onOpenAutoFocus:
|
|
6626
|
+
onOpenAutoFocus: D(o.onOpenAutoFocus, (d) => {
|
|
6627
6627
|
var f;
|
|
6628
6628
|
d.preventDefault(), (f = l.current) == null || f.focus({ preventScroll: !0 });
|
|
6629
6629
|
}),
|
|
@@ -6737,9 +6737,9 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, tb = (e) =
|
|
|
6737
6737
|
}), m;
|
|
6738
6738
|
}, {})
|
|
6739
6739
|
}, v = o == null || (d = o.compoundVariants) === null || d === void 0 ? void 0 : d.reduce((m, g) => {
|
|
6740
|
-
let { class: h, className: b, ...
|
|
6741
|
-
return Object.entries(
|
|
6742
|
-
let [w, N] =
|
|
6740
|
+
let { class: h, className: b, ...x } = g;
|
|
6741
|
+
return Object.entries(x).every((y) => {
|
|
6742
|
+
let [w, N] = y;
|
|
6743
6743
|
const E = p[w];
|
|
6744
6744
|
return Array.isArray(N) ? N.includes(E) : E === N;
|
|
6745
6745
|
}) ? [
|
|
@@ -6953,7 +6953,7 @@ function VN({
|
|
|
6953
6953
|
}) {
|
|
6954
6954
|
const [o, a] = fe((r == null ? void 0 : r.label) || ""), [s, i] = fe([]), [l, d] = fe(!1), [f, p] = fe(-1), [v, m] = fe("down"), [g, h] = fe(
|
|
6955
6955
|
r || null
|
|
6956
|
-
), b = yt(null),
|
|
6956
|
+
), b = yt(null), x = yt(null), y = yt(null);
|
|
6957
6957
|
Me(() => {
|
|
6958
6958
|
const R = (P) => {
|
|
6959
6959
|
b.current && !b.current.contains(P.target) && d(!1);
|
|
@@ -6967,8 +6967,8 @@ function VN({
|
|
|
6967
6967
|
);
|
|
6968
6968
|
i(R), p(-1);
|
|
6969
6969
|
}, [o, e]), Me(() => {
|
|
6970
|
-
if (l &&
|
|
6971
|
-
const R =
|
|
6970
|
+
if (l && x.current) {
|
|
6971
|
+
const R = x.current.getBoundingClientRect(), P = window.innerHeight - R.bottom, A = R.top, k = Math.min(s.length * 40, 240);
|
|
6972
6972
|
m(
|
|
6973
6973
|
P >= k || P > A ? "down" : "up"
|
|
6974
6974
|
);
|
|
@@ -6999,12 +6999,12 @@ function VN({
|
|
|
6999
6999
|
}
|
|
7000
7000
|
};
|
|
7001
7001
|
return Me(() => {
|
|
7002
|
-
l &&
|
|
7002
|
+
l && y.current && f >= 0 && y.current.children[f].scrollIntoView({ block: "nearest" });
|
|
7003
7003
|
}, [f, l]), /* @__PURE__ */ c.jsxs("div", { ref: b, className: "relative w-full", children: [
|
|
7004
7004
|
/* @__PURE__ */ c.jsx(
|
|
7005
7005
|
Ko,
|
|
7006
7006
|
{
|
|
7007
|
-
ref:
|
|
7007
|
+
ref: x,
|
|
7008
7008
|
type: "text",
|
|
7009
7009
|
value: o,
|
|
7010
7010
|
onChange: w,
|
|
@@ -7033,7 +7033,7 @@ function VN({
|
|
|
7033
7033
|
"ul",
|
|
7034
7034
|
{
|
|
7035
7035
|
id: "autocomplete-list",
|
|
7036
|
-
ref:
|
|
7036
|
+
ref: y,
|
|
7037
7037
|
className: `absolute z-10 w-full bg-white border border-gray-300 rounded-md shadow-lg max-h-60 overflow-auto ${v === "up" ? "bottom-full mb-1" : "top-full mt-1"}`,
|
|
7038
7038
|
role: "listbox",
|
|
7039
7039
|
children: s.map((R, P) => /* @__PURE__ */ c.jsx(
|
|
@@ -7675,36 +7675,36 @@ var aa = "Checkbox", [ex, UN] = ye(aa), [tx, nx] = ex(aa), Jc = u.forwardRef(
|
|
|
7675
7675
|
onCheckedChange: d,
|
|
7676
7676
|
form: f,
|
|
7677
7677
|
...p
|
|
7678
|
-
} = e, [v, m] = u.useState(null), g = Z(t, (N) => m(N)), h = u.useRef(!1), b = v ? f || !!v.closest("form") : !0, [
|
|
7678
|
+
} = e, [v, m] = u.useState(null), g = Z(t, (N) => m(N)), h = u.useRef(!1), b = v ? f || !!v.closest("form") : !0, [x = !1, y] = Ce({
|
|
7679
7679
|
prop: o,
|
|
7680
7680
|
defaultProp: a,
|
|
7681
7681
|
onChange: d
|
|
7682
|
-
}), w = u.useRef(
|
|
7682
|
+
}), w = u.useRef(x);
|
|
7683
7683
|
return u.useEffect(() => {
|
|
7684
7684
|
const N = v == null ? void 0 : v.form;
|
|
7685
7685
|
if (N) {
|
|
7686
|
-
const E = () =>
|
|
7686
|
+
const E = () => y(w.current);
|
|
7687
7687
|
return N.addEventListener("reset", E), () => N.removeEventListener("reset", E);
|
|
7688
7688
|
}
|
|
7689
|
-
}, [v,
|
|
7689
|
+
}, [v, y]), /* @__PURE__ */ c.jsxs(tx, { scope: n, state: x, disabled: i, children: [
|
|
7690
7690
|
/* @__PURE__ */ c.jsx(
|
|
7691
7691
|
O.button,
|
|
7692
7692
|
{
|
|
7693
7693
|
type: "button",
|
|
7694
7694
|
role: "checkbox",
|
|
7695
|
-
"aria-checked": wt(
|
|
7695
|
+
"aria-checked": wt(x) ? "mixed" : x,
|
|
7696
7696
|
"aria-required": s,
|
|
7697
|
-
"data-state": nl(
|
|
7697
|
+
"data-state": nl(x),
|
|
7698
7698
|
"data-disabled": i ? "" : void 0,
|
|
7699
7699
|
disabled: i,
|
|
7700
7700
|
value: l,
|
|
7701
7701
|
...p,
|
|
7702
7702
|
ref: g,
|
|
7703
|
-
onKeyDown:
|
|
7703
|
+
onKeyDown: D(e.onKeyDown, (N) => {
|
|
7704
7704
|
N.key === "Enter" && N.preventDefault();
|
|
7705
7705
|
}),
|
|
7706
|
-
onClick:
|
|
7707
|
-
|
|
7706
|
+
onClick: D(e.onClick, (N) => {
|
|
7707
|
+
y((E) => wt(E) ? !0 : !E), b && (h.current = N.isPropagationStopped(), h.current || N.stopPropagation());
|
|
7708
7708
|
})
|
|
7709
7709
|
}
|
|
7710
7710
|
),
|
|
@@ -7715,7 +7715,7 @@ var aa = "Checkbox", [ex, UN] = ye(aa), [tx, nx] = ex(aa), Jc = u.forwardRef(
|
|
|
7715
7715
|
bubbles: !h.current,
|
|
7716
7716
|
name: r,
|
|
7717
7717
|
value: l,
|
|
7718
|
-
checked:
|
|
7718
|
+
checked: x,
|
|
7719
7719
|
required: s,
|
|
7720
7720
|
disabled: i,
|
|
7721
7721
|
form: f,
|
|
@@ -7812,13 +7812,13 @@ const sx = M.forwardRef(
|
|
|
7812
7812
|
} = e, d = yt(null);
|
|
7813
7813
|
hm(t, () => d.current);
|
|
7814
7814
|
const [f, p] = fe(""), v = (h) => {
|
|
7815
|
-
const b = h.toFixed(2).split("."),
|
|
7816
|
-
return `${n} ${
|
|
7815
|
+
const b = h.toFixed(2).split("."), x = b[0].replace(/\B(?=(\d{3})+(?!\d))/g, o);
|
|
7816
|
+
return `${n} ${x}${r}${b[1]}`;
|
|
7817
7817
|
}, m = (h) => {
|
|
7818
|
-
const b = h.target.value,
|
|
7819
|
-
p(v(
|
|
7820
|
-
var
|
|
7821
|
-
(
|
|
7818
|
+
const b = h.target.value, x = parseFloat(b.replace(/\D/g, "")) / 100;
|
|
7819
|
+
p(v(x)), a(x), d.current && window.requestAnimationFrame(() => {
|
|
7820
|
+
var y;
|
|
7821
|
+
(y = d.current) == null || y.setSelectionRange(
|
|
7822
7822
|
d.current.value.length,
|
|
7823
7823
|
d.current.value.length
|
|
7824
7824
|
);
|
|
@@ -8093,13 +8093,13 @@ const bx = async (e, t, n) => {
|
|
|
8093
8093
|
for (let h = 0; h < i.length; h++) {
|
|
8094
8094
|
const {
|
|
8095
8095
|
name: b,
|
|
8096
|
-
fn:
|
|
8096
|
+
fn: x
|
|
8097
8097
|
} = i[h], {
|
|
8098
|
-
x,
|
|
8098
|
+
x: y,
|
|
8099
8099
|
y: w,
|
|
8100
8100
|
data: N,
|
|
8101
8101
|
reset: E
|
|
8102
|
-
} = await
|
|
8102
|
+
} = await x({
|
|
8103
8103
|
x: f,
|
|
8104
8104
|
y: p,
|
|
8105
8105
|
initialPlacement: r,
|
|
@@ -8113,7 +8113,7 @@ const bx = async (e, t, n) => {
|
|
|
8113
8113
|
floating: t
|
|
8114
8114
|
}
|
|
8115
8115
|
});
|
|
8116
|
-
f =
|
|
8116
|
+
f = y ?? f, p = w ?? p, m = {
|
|
8117
8117
|
...m,
|
|
8118
8118
|
[b]: {
|
|
8119
8119
|
...m[b],
|
|
@@ -8152,12 +8152,12 @@ async function xn(e, t) {
|
|
|
8152
8152
|
elementContext: p = "floating",
|
|
8153
8153
|
altBoundary: v = !1,
|
|
8154
8154
|
padding: m = 0
|
|
8155
|
-
} = ut(t, e), g = sl(m), b = i[v ? p === "floating" ? "reference" : "floating" : p],
|
|
8155
|
+
} = ut(t, e), g = sl(m), b = i[v ? p === "floating" ? "reference" : "floating" : p], x = rr(await a.getClippingRect({
|
|
8156
8156
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(b))) == null || n ? b : b.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
|
|
8157
8157
|
boundary: d,
|
|
8158
8158
|
rootBoundary: f,
|
|
8159
8159
|
strategy: l
|
|
8160
|
-
})),
|
|
8160
|
+
})), y = p === "floating" ? {
|
|
8161
8161
|
x: r,
|
|
8162
8162
|
y: o,
|
|
8163
8163
|
width: s.floating.width,
|
|
@@ -8170,15 +8170,15 @@ async function xn(e, t) {
|
|
|
8170
8170
|
y: 1
|
|
8171
8171
|
}, E = rr(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
8172
8172
|
elements: i,
|
|
8173
|
-
rect:
|
|
8173
|
+
rect: y,
|
|
8174
8174
|
offsetParent: w,
|
|
8175
8175
|
strategy: l
|
|
8176
|
-
}) :
|
|
8176
|
+
}) : y);
|
|
8177
8177
|
return {
|
|
8178
|
-
top: (
|
|
8179
|
-
bottom: (E.bottom -
|
|
8180
|
-
left: (
|
|
8181
|
-
right: (E.right -
|
|
8178
|
+
top: (x.top - E.top + g.top) / N.y,
|
|
8179
|
+
bottom: (E.bottom - x.bottom + g.bottom) / N.y,
|
|
8180
|
+
left: (x.left - E.left + g.left) / N.x,
|
|
8181
|
+
right: (E.right - x.right + g.right) / N.x
|
|
8182
8182
|
};
|
|
8183
8183
|
}
|
|
8184
8184
|
const xx = (e) => ({
|
|
@@ -8202,20 +8202,20 @@ const xx = (e) => ({
|
|
|
8202
8202
|
const p = sl(f), v = {
|
|
8203
8203
|
x: n,
|
|
8204
8204
|
y: r
|
|
8205
|
-
}, m = fa(o), g = da(m), h = await s.getDimensions(d), b = m === "y",
|
|
8205
|
+
}, m = fa(o), g = da(m), h = await s.getDimensions(d), b = m === "y", x = b ? "top" : "left", y = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", N = a.reference[g] + a.reference[m] - v[m] - a.floating[g], E = v[m] - a.reference[m], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
8206
8206
|
let P = R ? R[w] : 0;
|
|
8207
8207
|
(!P || !await (s.isElement == null ? void 0 : s.isElement(R))) && (P = i.floating[w] || a.floating[g]);
|
|
8208
|
-
const A = N / 2 - E / 2, k = P / 2 - h[g] / 2 - 1,
|
|
8208
|
+
const A = N / 2 - E / 2, k = P / 2 - h[g] / 2 - 1, $ = Ct(p[x], k), z = Ct(p[y], k), j = $, V = P - h[g] - z, B = P / 2 - h[g] / 2 + A, Q = mo(j, B, V), L = !l.arrow && on(o) != null && B !== Q && a.reference[g] / 2 - (B < j ? $ : z) - h[g] / 2 < 0, H = L ? B < j ? B - j : B - V : 0;
|
|
8209
8209
|
return {
|
|
8210
|
-
[m]: v[m] +
|
|
8210
|
+
[m]: v[m] + H,
|
|
8211
8211
|
data: {
|
|
8212
|
-
[m]:
|
|
8213
|
-
centerOffset:
|
|
8214
|
-
|
|
8215
|
-
alignmentOffset:
|
|
8212
|
+
[m]: Q,
|
|
8213
|
+
centerOffset: B - Q - H,
|
|
8214
|
+
...L && {
|
|
8215
|
+
alignmentOffset: H
|
|
8216
8216
|
}
|
|
8217
8217
|
},
|
|
8218
|
-
reset:
|
|
8218
|
+
reset: L
|
|
8219
8219
|
};
|
|
8220
8220
|
}
|
|
8221
8221
|
}), yx = function(e) {
|
|
@@ -8242,55 +8242,55 @@ const xx = (e) => ({
|
|
|
8242
8242
|
} = ut(e, t);
|
|
8243
8243
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
8244
8244
|
return {};
|
|
8245
|
-
const
|
|
8245
|
+
const x = dt(o), y = Nt(i), w = dt(i) === i, N = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), E = v || (w || !h ? [nr(i)] : px(i)), R = g !== "none";
|
|
8246
8246
|
!v && R && E.push(...gx(i, h, g, N));
|
|
8247
8247
|
const P = [i, ...E], A = await xn(t, b), k = [];
|
|
8248
|
-
let
|
|
8249
|
-
if (f && k.push(A[
|
|
8250
|
-
const
|
|
8251
|
-
k.push(A[
|
|
8248
|
+
let $ = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
8249
|
+
if (f && k.push(A[x]), p) {
|
|
8250
|
+
const B = mx(o, s, N);
|
|
8251
|
+
k.push(A[B[0]], A[B[1]]);
|
|
8252
8252
|
}
|
|
8253
|
-
if (
|
|
8253
|
+
if ($ = [...$, {
|
|
8254
8254
|
placement: o,
|
|
8255
8255
|
overflows: k
|
|
8256
|
-
}], !k.every((
|
|
8257
|
-
var z,
|
|
8258
|
-
const
|
|
8259
|
-
if (
|
|
8256
|
+
}], !k.every((B) => B <= 0)) {
|
|
8257
|
+
var z, j;
|
|
8258
|
+
const B = (((z = a.flip) == null ? void 0 : z.index) || 0) + 1, Q = P[B];
|
|
8259
|
+
if (Q)
|
|
8260
8260
|
return {
|
|
8261
8261
|
data: {
|
|
8262
|
-
index:
|
|
8263
|
-
overflows:
|
|
8262
|
+
index: B,
|
|
8263
|
+
overflows: $
|
|
8264
8264
|
},
|
|
8265
8265
|
reset: {
|
|
8266
|
-
placement:
|
|
8266
|
+
placement: Q
|
|
8267
8267
|
}
|
|
8268
8268
|
};
|
|
8269
|
-
let
|
|
8270
|
-
if (
|
|
8269
|
+
let L = (j = $.filter((H) => H.overflows[0] <= 0).sort((H, F) => H.overflows[1] - F.overflows[1])[0]) == null ? void 0 : j.placement;
|
|
8270
|
+
if (!L)
|
|
8271
8271
|
switch (m) {
|
|
8272
8272
|
case "bestFit": {
|
|
8273
|
-
var
|
|
8274
|
-
const
|
|
8273
|
+
var V;
|
|
8274
|
+
const H = (V = $.filter((F) => {
|
|
8275
8275
|
if (R) {
|
|
8276
8276
|
const S = Nt(F.placement);
|
|
8277
|
-
return S ===
|
|
8277
|
+
return S === y || // Create a bias to the `y` side axis due to horizontal
|
|
8278
8278
|
// reading directions favoring greater width.
|
|
8279
8279
|
S === "y";
|
|
8280
8280
|
}
|
|
8281
8281
|
return !0;
|
|
8282
|
-
}).map((F) => [F.placement, F.overflows.filter((S) => S > 0).reduce((S,
|
|
8283
|
-
|
|
8282
|
+
}).map((F) => [F.placement, F.overflows.filter((S) => S > 0).reduce((S, G) => S + G, 0)]).sort((F, S) => F[1] - S[1])[0]) == null ? void 0 : V[0];
|
|
8283
|
+
H && (L = H);
|
|
8284
8284
|
break;
|
|
8285
8285
|
}
|
|
8286
8286
|
case "initialPlacement":
|
|
8287
|
-
|
|
8287
|
+
L = i;
|
|
8288
8288
|
break;
|
|
8289
8289
|
}
|
|
8290
|
-
if (o !==
|
|
8290
|
+
if (o !== L)
|
|
8291
8291
|
return {
|
|
8292
8292
|
reset: {
|
|
8293
|
-
placement:
|
|
8293
|
+
placement: L
|
|
8294
8294
|
}
|
|
8295
8295
|
};
|
|
8296
8296
|
}
|
|
@@ -8415,12 +8415,12 @@ const Nx = function(e) {
|
|
|
8415
8415
|
limiter: i = {
|
|
8416
8416
|
fn: (b) => {
|
|
8417
8417
|
let {
|
|
8418
|
-
x
|
|
8419
|
-
y
|
|
8418
|
+
x,
|
|
8419
|
+
y
|
|
8420
8420
|
} = b;
|
|
8421
8421
|
return {
|
|
8422
|
-
x
|
|
8423
|
-
y
|
|
8422
|
+
x,
|
|
8423
|
+
y
|
|
8424
8424
|
};
|
|
8425
8425
|
}
|
|
8426
8426
|
},
|
|
@@ -8431,12 +8431,12 @@ const Nx = function(e) {
|
|
|
8431
8431
|
}, f = await xn(t, l), p = Nt(dt(o)), v = ua(p);
|
|
8432
8432
|
let m = d[v], g = d[p];
|
|
8433
8433
|
if (a) {
|
|
8434
|
-
const b = v === "y" ? "top" : "left",
|
|
8435
|
-
m = mo(
|
|
8434
|
+
const b = v === "y" ? "top" : "left", x = v === "y" ? "bottom" : "right", y = m + f[b], w = m - f[x];
|
|
8435
|
+
m = mo(y, m, w);
|
|
8436
8436
|
}
|
|
8437
8437
|
if (s) {
|
|
8438
|
-
const b = p === "y" ? "top" : "left",
|
|
8439
|
-
g = mo(
|
|
8438
|
+
const b = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", y = g + f[b], w = g - f[x];
|
|
8439
|
+
g = mo(y, g, w);
|
|
8440
8440
|
}
|
|
8441
8441
|
const h = i.fn({
|
|
8442
8442
|
...t,
|
|
@@ -8488,8 +8488,8 @@ const Nx = function(e) {
|
|
|
8488
8488
|
m < N ? m = N : m > E && (m = E);
|
|
8489
8489
|
}
|
|
8490
8490
|
if (d) {
|
|
8491
|
-
var
|
|
8492
|
-
const w = v === "y" ? "width" : "height", N = ["top", "left"].includes(dt(o)), E = a.reference[p] - a.floating[w] + (N && ((
|
|
8491
|
+
var x, y;
|
|
8492
|
+
const w = v === "y" ? "width" : "height", N = ["top", "left"].includes(dt(o)), E = a.reference[p] - a.floating[w] + (N && ((x = s.offset) == null ? void 0 : x[p]) || 0) + (N ? 0 : b.crossAxis), R = a.reference[p] + a.reference[w] + (N ? 0 : ((y = s.offset) == null ? void 0 : y[p]) || 0) - (N ? b.crossAxis : 0);
|
|
8493
8493
|
g < E ? g = E : g > R && (g = R);
|
|
8494
8494
|
}
|
|
8495
8495
|
return {
|
|
@@ -8517,13 +8517,13 @@ const Nx = function(e) {
|
|
|
8517
8517
|
width: g,
|
|
8518
8518
|
height: h
|
|
8519
8519
|
} = a.floating;
|
|
8520
|
-
let b,
|
|
8521
|
-
p === "top" || p === "bottom" ? (b = p,
|
|
8522
|
-
const
|
|
8520
|
+
let b, x;
|
|
8521
|
+
p === "top" || p === "bottom" ? (b = p, x = v === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (x = p, b = v === "end" ? "top" : "bottom");
|
|
8522
|
+
const y = h - f.top - f.bottom, w = g - f.left - f.right, N = Ct(h - f[b], y), E = Ct(g - f[x], w), R = !t.middlewareData.shift;
|
|
8523
8523
|
let P = N, A = E;
|
|
8524
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = w), (r = t.middlewareData.shift) != null && r.enabled.y && (P =
|
|
8525
|
-
const
|
|
8526
|
-
m ? A = g - 2 * (
|
|
8524
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = w), (r = t.middlewareData.shift) != null && r.enabled.y && (P = y), R && !v) {
|
|
8525
|
+
const $ = Oe(f.left, 0), z = Oe(f.right, 0), j = Oe(f.top, 0), V = Oe(f.bottom, 0);
|
|
8526
|
+
m ? A = g - 2 * ($ !== 0 || z !== 0 ? $ + z : Oe(f.left, f.right)) : P = h - 2 * (j !== 0 || V !== 0 ? j + V : Oe(f.top, f.bottom));
|
|
8527
8527
|
}
|
|
8528
8528
|
await l({
|
|
8529
8529
|
...t,
|
|
@@ -8698,7 +8698,7 @@ function Ot(e, t, n, r) {
|
|
|
8698
8698
|
const v = Le(a), m = r && Ke(r) ? Le(r) : r;
|
|
8699
8699
|
let g = v, h = ho(g);
|
|
8700
8700
|
for (; h && r && m !== g; ) {
|
|
8701
|
-
const b = qt(h),
|
|
8701
|
+
const b = qt(h), x = h.getBoundingClientRect(), y = qe(h), w = x.left + (h.clientLeft + parseFloat(y.paddingLeft)) * b.x, N = x.top + (h.clientTop + parseFloat(y.paddingTop)) * b.y;
|
|
8702
8702
|
l *= b.x, d *= b.y, f *= b.x, p *= b.y, l += w, d += N, g = Le(h), h = ho(g);
|
|
8703
8703
|
}
|
|
8704
8704
|
}
|
|
@@ -8946,7 +8946,7 @@ function Vx(e, t) {
|
|
|
8946
8946
|
} = e.getBoundingClientRect();
|
|
8947
8947
|
if (i || t(), !p || !v)
|
|
8948
8948
|
return;
|
|
8949
|
-
const m = Hn(f), g = Hn(o.clientWidth - (d + p)), h = Hn(o.clientHeight - (f + v)), b = Hn(d),
|
|
8949
|
+
const m = Hn(f), g = Hn(o.clientWidth - (d + p)), h = Hn(o.clientHeight - (f + v)), b = Hn(d), y = {
|
|
8950
8950
|
rootMargin: -m + "px " + -g + "px " + -h + "px " + -b + "px",
|
|
8951
8951
|
threshold: Oe(0, Ct(1, l)) || 1
|
|
8952
8952
|
};
|
|
@@ -8964,12 +8964,12 @@ function Vx(e, t) {
|
|
|
8964
8964
|
}
|
|
8965
8965
|
try {
|
|
8966
8966
|
n = new IntersectionObserver(N, {
|
|
8967
|
-
...
|
|
8967
|
+
...y,
|
|
8968
8968
|
// Handle <iframe>s
|
|
8969
8969
|
root: o.ownerDocument
|
|
8970
8970
|
});
|
|
8971
8971
|
} catch {
|
|
8972
|
-
n = new IntersectionObserver(N,
|
|
8972
|
+
n = new IntersectionObserver(N, y);
|
|
8973
8973
|
}
|
|
8974
8974
|
n.observe(e);
|
|
8975
8975
|
}
|
|
@@ -8984,16 +8984,16 @@ function Hx(e, t, n, r) {
|
|
|
8984
8984
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
8985
8985
|
animationFrame: l = !1
|
|
8986
8986
|
} = r, d = ha(e), f = o || a ? [...d ? yn(d) : [], ...yn(t)] : [];
|
|
8987
|
-
f.forEach((
|
|
8988
|
-
o &&
|
|
8987
|
+
f.forEach((x) => {
|
|
8988
|
+
o && x.addEventListener("scroll", n, {
|
|
8989
8989
|
passive: !0
|
|
8990
|
-
}), a &&
|
|
8990
|
+
}), a && x.addEventListener("resize", n);
|
|
8991
8991
|
});
|
|
8992
8992
|
const p = d && i ? Vx(d, n) : null;
|
|
8993
8993
|
let v = -1, m = null;
|
|
8994
|
-
s && (m = new ResizeObserver((
|
|
8995
|
-
let [
|
|
8996
|
-
|
|
8994
|
+
s && (m = new ResizeObserver((x) => {
|
|
8995
|
+
let [y] = x;
|
|
8996
|
+
y && y.target === d && m && (m.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
8997
8997
|
var w;
|
|
8998
8998
|
(w = m) == null || w.observe(t);
|
|
8999
8999
|
})), n();
|
|
@@ -9001,14 +9001,14 @@ function Hx(e, t, n, r) {
|
|
|
9001
9001
|
let g, h = l ? Ot(e) : null;
|
|
9002
9002
|
l && b();
|
|
9003
9003
|
function b() {
|
|
9004
|
-
const
|
|
9005
|
-
h && (
|
|
9004
|
+
const x = Ot(e);
|
|
9005
|
+
h && (x.x !== h.x || x.y !== h.y || x.width !== h.width || x.height !== h.height) && n(), h = x, g = requestAnimationFrame(b);
|
|
9006
9006
|
}
|
|
9007
9007
|
return n(), () => {
|
|
9008
|
-
var
|
|
9009
|
-
f.forEach((
|
|
9010
|
-
o &&
|
|
9011
|
-
}), p == null || p(), (
|
|
9008
|
+
var x;
|
|
9009
|
+
f.forEach((y) => {
|
|
9010
|
+
o && y.removeEventListener("scroll", n), a && y.removeEventListener("resize", n);
|
|
9011
|
+
}), p == null || p(), (x = m) == null || x.disconnect(), m = null, l && cancelAnimationFrame(g);
|
|
9012
9012
|
};
|
|
9013
9013
|
}
|
|
9014
9014
|
const Gx = Nx, Yx = Ex, Ux = yx, Kx = Px, qx = wx, zs = xx, Xx = Rx, Zx = (e, t, n) => {
|
|
@@ -9091,11 +9091,11 @@ function Qx(e) {
|
|
|
9091
9091
|
isPositioned: !1
|
|
9092
9092
|
}), [v, m] = u.useState(r);
|
|
9093
9093
|
or(v, r) || m(r);
|
|
9094
|
-
const [g, h] = u.useState(null), [b,
|
|
9094
|
+
const [g, h] = u.useState(null), [b, x] = u.useState(null), y = u.useCallback((F) => {
|
|
9095
9095
|
F !== R.current && (R.current = F, h(F));
|
|
9096
9096
|
}, []), w = u.useCallback((F) => {
|
|
9097
|
-
F !== P.current && (P.current = F,
|
|
9098
|
-
}, []), N = a || g, E = s || b, R = u.useRef(null), P = u.useRef(null), A = u.useRef(f), k = l != null,
|
|
9097
|
+
F !== P.current && (P.current = F, x(F));
|
|
9098
|
+
}, []), N = a || g, E = s || b, R = u.useRef(null), P = u.useRef(null), A = u.useRef(f), k = l != null, $ = eo(l), z = eo(o), j = eo(d), V = u.useCallback(() => {
|
|
9099
9099
|
if (!R.current || !P.current)
|
|
9100
9100
|
return;
|
|
9101
9101
|
const F = {
|
|
@@ -9104,71 +9104,71 @@ function Qx(e) {
|
|
|
9104
9104
|
middleware: v
|
|
9105
9105
|
};
|
|
9106
9106
|
z.current && (F.platform = z.current), Zx(R.current, P.current, F).then((S) => {
|
|
9107
|
-
const
|
|
9107
|
+
const G = {
|
|
9108
9108
|
...S,
|
|
9109
9109
|
// The floating element's position may be recomputed while it's closed
|
|
9110
9110
|
// but still mounted (such as when transitioning out). To ensure
|
|
9111
9111
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
9112
9112
|
// setting it to `true` when `open === false` (must be specified).
|
|
9113
|
-
isPositioned:
|
|
9113
|
+
isPositioned: j.current !== !1
|
|
9114
9114
|
};
|
|
9115
|
-
|
|
9116
|
-
p(
|
|
9115
|
+
B.current && !or(A.current, G) && (A.current = G, mr.flushSync(() => {
|
|
9116
|
+
p(G);
|
|
9117
9117
|
}));
|
|
9118
9118
|
});
|
|
9119
|
-
}, [v, t, n, z,
|
|
9119
|
+
}, [v, t, n, z, j]);
|
|
9120
9120
|
qn(() => {
|
|
9121
9121
|
d === !1 && A.current.isPositioned && (A.current.isPositioned = !1, p((F) => ({
|
|
9122
9122
|
...F,
|
|
9123
9123
|
isPositioned: !1
|
|
9124
9124
|
})));
|
|
9125
9125
|
}, [d]);
|
|
9126
|
-
const
|
|
9127
|
-
qn(() => (
|
|
9128
|
-
|
|
9126
|
+
const B = u.useRef(!1);
|
|
9127
|
+
qn(() => (B.current = !0, () => {
|
|
9128
|
+
B.current = !1;
|
|
9129
9129
|
}), []), qn(() => {
|
|
9130
9130
|
if (N && (R.current = N), E && (P.current = E), N && E) {
|
|
9131
|
-
if (
|
|
9132
|
-
return
|
|
9133
|
-
|
|
9131
|
+
if ($.current)
|
|
9132
|
+
return $.current(N, E, V);
|
|
9133
|
+
V();
|
|
9134
9134
|
}
|
|
9135
|
-
}, [N, E,
|
|
9136
|
-
const
|
|
9135
|
+
}, [N, E, V, $, k]);
|
|
9136
|
+
const Q = u.useMemo(() => ({
|
|
9137
9137
|
reference: R,
|
|
9138
9138
|
floating: P,
|
|
9139
|
-
setReference:
|
|
9139
|
+
setReference: y,
|
|
9140
9140
|
setFloating: w
|
|
9141
|
-
}), [
|
|
9141
|
+
}), [y, w]), L = u.useMemo(() => ({
|
|
9142
9142
|
reference: N,
|
|
9143
9143
|
floating: E
|
|
9144
|
-
}), [N, E]),
|
|
9144
|
+
}), [N, E]), H = u.useMemo(() => {
|
|
9145
9145
|
const F = {
|
|
9146
9146
|
position: n,
|
|
9147
9147
|
left: 0,
|
|
9148
9148
|
top: 0
|
|
9149
9149
|
};
|
|
9150
|
-
if (
|
|
9150
|
+
if (!L.floating)
|
|
9151
9151
|
return F;
|
|
9152
|
-
const S = Vs(
|
|
9152
|
+
const S = Vs(L.floating, f.x), G = Vs(L.floating, f.y);
|
|
9153
9153
|
return i ? {
|
|
9154
9154
|
...F,
|
|
9155
|
-
transform: "translate(" + S + "px, " +
|
|
9156
|
-
...pl(
|
|
9155
|
+
transform: "translate(" + S + "px, " + G + "px)",
|
|
9156
|
+
...pl(L.floating) >= 1.5 && {
|
|
9157
9157
|
willChange: "transform"
|
|
9158
9158
|
}
|
|
9159
9159
|
} : {
|
|
9160
9160
|
position: n,
|
|
9161
9161
|
left: S,
|
|
9162
|
-
top:
|
|
9162
|
+
top: G
|
|
9163
9163
|
};
|
|
9164
|
-
}, [n, i,
|
|
9164
|
+
}, [n, i, L.floating, f.x, f.y]);
|
|
9165
9165
|
return u.useMemo(() => ({
|
|
9166
9166
|
...f,
|
|
9167
|
-
update:
|
|
9168
|
-
refs:
|
|
9169
|
-
elements:
|
|
9170
|
-
floatingStyles:
|
|
9171
|
-
}), [f,
|
|
9167
|
+
update: V,
|
|
9168
|
+
refs: Q,
|
|
9169
|
+
elements: L,
|
|
9170
|
+
floatingStyles: H
|
|
9171
|
+
}), [f, V, Q, L, H]);
|
|
9172
9172
|
}
|
|
9173
9173
|
const Jx = (e) => {
|
|
9174
9174
|
function t(n) {
|
|
@@ -9245,7 +9245,7 @@ var xl = "PopperAnchor", yl = u.forwardRef(
|
|
|
9245
9245
|
yl.displayName = xl;
|
|
9246
9246
|
var ba = "PopperContent", [uy, dy] = gl(ba), wl = u.forwardRef(
|
|
9247
9247
|
(e, t) => {
|
|
9248
|
-
var
|
|
9248
|
+
var I, re, oe, ee, ne, se;
|
|
9249
9249
|
const {
|
|
9250
9250
|
__scopePopper: n,
|
|
9251
9251
|
side: r = "bottom",
|
|
@@ -9261,12 +9261,12 @@ var ba = "PopperContent", [uy, dy] = gl(ba), wl = u.forwardRef(
|
|
|
9261
9261
|
updatePositionStrategy: m = "optimized",
|
|
9262
9262
|
onPlaced: g,
|
|
9263
9263
|
...h
|
|
9264
|
-
} = e, b = vl(ba, n), [
|
|
9265
|
-
padding:
|
|
9264
|
+
} = e, b = vl(ba, n), [x, y] = u.useState(null), w = Z(t, (we) => y(we)), [N, E] = u.useState(null), R = Nr(N), P = (R == null ? void 0 : R.width) ?? 0, A = (R == null ? void 0 : R.height) ?? 0, k = r + (a !== "center" ? "-" + a : ""), $ = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, z = Array.isArray(d) ? d : [d], j = z.length > 0, V = {
|
|
9265
|
+
padding: $,
|
|
9266
9266
|
boundary: z.filter(my),
|
|
9267
9267
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
9268
|
-
altBoundary:
|
|
9269
|
-
}, { refs:
|
|
9268
|
+
altBoundary: j
|
|
9269
|
+
}, { refs: B, floatingStyles: Q, placement: L, isPositioned: H, middlewareData: F } = Qx({
|
|
9270
9270
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
9271
9271
|
strategy: "fixed",
|
|
9272
9272
|
placement: k,
|
|
@@ -9282,11 +9282,11 @@ var ba = "PopperContent", [uy, dy] = gl(ba), wl = u.forwardRef(
|
|
|
9282
9282
|
mainAxis: !0,
|
|
9283
9283
|
crossAxis: !1,
|
|
9284
9284
|
limiter: p === "partial" ? ny() : void 0,
|
|
9285
|
-
...
|
|
9285
|
+
...V
|
|
9286
9286
|
}),
|
|
9287
|
-
l && ry({ ...
|
|
9287
|
+
l && ry({ ...V }),
|
|
9288
9288
|
oy({
|
|
9289
|
-
...
|
|
9289
|
+
...V,
|
|
9290
9290
|
apply: ({ elements: we, rects: ge, availableWidth: Te, availableHeight: $e }) => {
|
|
9291
9291
|
const { width: Ee, height: Ie } = ge.reference, Ae = we.floating.style;
|
|
9292
9292
|
Ae.setProperty("--radix-popper-available-width", `${Te}px`), Ae.setProperty("--radix-popper-available-height", `${$e}px`), Ae.setProperty("--radix-popper-anchor-width", `${Ee}px`), Ae.setProperty("--radix-popper-anchor-height", `${Ie}px`);
|
|
@@ -9294,28 +9294,28 @@ var ba = "PopperContent", [uy, dy] = gl(ba), wl = u.forwardRef(
|
|
|
9294
9294
|
}),
|
|
9295
9295
|
N && sy({ element: N, padding: i }),
|
|
9296
9296
|
py({ arrowWidth: P, arrowHeight: A }),
|
|
9297
|
-
v && ay({ strategy: "referenceHidden", ...
|
|
9297
|
+
v && ay({ strategy: "referenceHidden", ...V })
|
|
9298
9298
|
]
|
|
9299
|
-
}), [S,
|
|
9299
|
+
}), [S, G] = El(L), X = be(g);
|
|
9300
9300
|
xe(() => {
|
|
9301
|
-
|
|
9302
|
-
}, [
|
|
9303
|
-
const U = (
|
|
9301
|
+
H && (X == null || X());
|
|
9302
|
+
}, [H, X]);
|
|
9303
|
+
const U = (I = F.arrow) == null ? void 0 : I.x, Y = (re = F.arrow) == null ? void 0 : re.y, K = ((oe = F.arrow) == null ? void 0 : oe.centerOffset) !== 0, [ie, le] = u.useState();
|
|
9304
9304
|
return xe(() => {
|
|
9305
|
-
|
|
9306
|
-
}, [
|
|
9305
|
+
x && le(window.getComputedStyle(x).zIndex);
|
|
9306
|
+
}, [x]), /* @__PURE__ */ c.jsx(
|
|
9307
9307
|
"div",
|
|
9308
9308
|
{
|
|
9309
|
-
ref:
|
|
9309
|
+
ref: B.setFloating,
|
|
9310
9310
|
"data-radix-popper-content-wrapper": "",
|
|
9311
9311
|
style: {
|
|
9312
|
-
...
|
|
9313
|
-
transform:
|
|
9312
|
+
...Q,
|
|
9313
|
+
transform: H ? Q.transform : "translate(0, -200%)",
|
|
9314
9314
|
// keep off the page when measuring
|
|
9315
9315
|
minWidth: "max-content",
|
|
9316
9316
|
zIndex: ie,
|
|
9317
9317
|
"--radix-popper-transform-origin": [
|
|
9318
|
-
(
|
|
9318
|
+
(ee = F.transformOrigin) == null ? void 0 : ee.x,
|
|
9319
9319
|
(ne = F.transformOrigin) == null ? void 0 : ne.y
|
|
9320
9320
|
].join(" "),
|
|
9321
9321
|
// hide the content if using the hide middleware and should be hidden
|
|
@@ -9334,20 +9334,20 @@ var ba = "PopperContent", [uy, dy] = gl(ba), wl = u.forwardRef(
|
|
|
9334
9334
|
placedSide: S,
|
|
9335
9335
|
onArrowChange: E,
|
|
9336
9336
|
arrowX: U,
|
|
9337
|
-
arrowY:
|
|
9337
|
+
arrowY: Y,
|
|
9338
9338
|
shouldHideArrow: K,
|
|
9339
9339
|
children: /* @__PURE__ */ c.jsx(
|
|
9340
9340
|
O.div,
|
|
9341
9341
|
{
|
|
9342
9342
|
"data-side": S,
|
|
9343
|
-
"data-align":
|
|
9343
|
+
"data-align": G,
|
|
9344
9344
|
...h,
|
|
9345
9345
|
ref: w,
|
|
9346
9346
|
style: {
|
|
9347
9347
|
...h.style,
|
|
9348
9348
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
9349
9349
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
9350
|
-
animation:
|
|
9350
|
+
animation: H ? void 0 : "none"
|
|
9351
9351
|
}
|
|
9352
9352
|
}
|
|
9353
9353
|
)
|
|
@@ -9416,8 +9416,8 @@ var py = (e) => ({
|
|
|
9416
9416
|
name: "transformOrigin",
|
|
9417
9417
|
options: e,
|
|
9418
9418
|
fn(t) {
|
|
9419
|
-
var b,
|
|
9420
|
-
const { placement: n, rects: r, middlewareData: o } = t, s = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [d, f] = El(n), p = { start: "0%", center: "50%", end: "100%" }[f], v = (((
|
|
9419
|
+
var b, x, y;
|
|
9420
|
+
const { placement: n, rects: r, middlewareData: o } = t, s = ((b = o.arrow) == null ? void 0 : b.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [d, f] = El(n), p = { start: "0%", center: "50%", end: "100%" }[f], v = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + i / 2, m = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + l / 2;
|
|
9421
9421
|
let g = "", h = "";
|
|
9422
9422
|
return d === "bottom" ? (g = s ? p : `${v}px`, h = `${-l}px`) : d === "top" ? (g = s ? p : `${v}px`, h = `${r.floating.height + l}px`) : d === "right" ? (g = `${-l}px`, h = s ? p : `${m}px`) : d === "left" && (g = `${r.floating.width + l}px`, h = s ? p : `${m}px`), { data: { x: g, y: h } };
|
|
9423
9423
|
}
|
|
@@ -9449,7 +9449,7 @@ var yy = u.forwardRef((e, t) => {
|
|
|
9449
9449
|
prop: s,
|
|
9450
9450
|
defaultProp: i,
|
|
9451
9451
|
onChange: l
|
|
9452
|
-
}), [
|
|
9452
|
+
}), [x, y] = u.useState(!1), w = be(d), N = Rl(n), E = u.useRef(!1), [R, P] = u.useState(0);
|
|
9453
9453
|
return u.useEffect(() => {
|
|
9454
9454
|
const A = v.current;
|
|
9455
9455
|
if (A)
|
|
@@ -9466,7 +9466,7 @@ var yy = u.forwardRef((e, t) => {
|
|
|
9466
9466
|
(A) => b(A),
|
|
9467
9467
|
[b]
|
|
9468
9468
|
),
|
|
9469
|
-
onItemShiftTab: u.useCallback(() =>
|
|
9469
|
+
onItemShiftTab: u.useCallback(() => y(!0), []),
|
|
9470
9470
|
onFocusableItemAdd: u.useCallback(
|
|
9471
9471
|
() => P((A) => A + 1),
|
|
9472
9472
|
[]
|
|
@@ -9478,28 +9478,28 @@ var yy = u.forwardRef((e, t) => {
|
|
|
9478
9478
|
children: /* @__PURE__ */ c.jsx(
|
|
9479
9479
|
O.div,
|
|
9480
9480
|
{
|
|
9481
|
-
tabIndex:
|
|
9481
|
+
tabIndex: x || R === 0 ? -1 : 0,
|
|
9482
9482
|
"data-orientation": r,
|
|
9483
9483
|
...p,
|
|
9484
9484
|
ref: m,
|
|
9485
9485
|
style: { outline: "none", ...e.style },
|
|
9486
|
-
onMouseDown:
|
|
9486
|
+
onMouseDown: D(e.onMouseDown, () => {
|
|
9487
9487
|
E.current = !0;
|
|
9488
9488
|
}),
|
|
9489
|
-
onFocus:
|
|
9489
|
+
onFocus: D(e.onFocus, (A) => {
|
|
9490
9490
|
const k = !E.current;
|
|
9491
|
-
if (A.target === A.currentTarget && k && !
|
|
9492
|
-
const
|
|
9493
|
-
if (A.currentTarget.dispatchEvent(
|
|
9494
|
-
const z = N().filter((
|
|
9491
|
+
if (A.target === A.currentTarget && k && !x) {
|
|
9492
|
+
const $ = new CustomEvent(to, hy);
|
|
9493
|
+
if (A.currentTarget.dispatchEvent($), !$.defaultPrevented) {
|
|
9494
|
+
const z = N().filter((L) => L.focusable), j = z.find((L) => L.active), V = z.find((L) => L.id === h), Q = [j, V, ...z].filter(
|
|
9495
9495
|
Boolean
|
|
9496
|
-
).map((
|
|
9497
|
-
Tl(
|
|
9496
|
+
).map((L) => L.ref.current);
|
|
9497
|
+
Tl(Q, f);
|
|
9498
9498
|
}
|
|
9499
9499
|
}
|
|
9500
9500
|
E.current = !1;
|
|
9501
9501
|
}),
|
|
9502
|
-
onBlur:
|
|
9502
|
+
onBlur: D(e.onBlur, () => y(!1))
|
|
9503
9503
|
}
|
|
9504
9504
|
)
|
|
9505
9505
|
}
|
|
@@ -9530,11 +9530,11 @@ var yy = u.forwardRef((e, t) => {
|
|
|
9530
9530
|
"data-orientation": d.orientation,
|
|
9531
9531
|
...s,
|
|
9532
9532
|
ref: t,
|
|
9533
|
-
onMouseDown:
|
|
9533
|
+
onMouseDown: D(e.onMouseDown, (g) => {
|
|
9534
9534
|
r ? d.onItemFocus(l) : g.preventDefault();
|
|
9535
9535
|
}),
|
|
9536
|
-
onFocus:
|
|
9537
|
-
onKeyDown:
|
|
9536
|
+
onFocus: D(e.onFocus, () => d.onItemFocus(l)),
|
|
9537
|
+
onKeyDown: D(e.onKeyDown, (g) => {
|
|
9538
9538
|
if (g.key === "Tab" && g.shiftKey) {
|
|
9539
9539
|
d.onItemShiftTab();
|
|
9540
9540
|
return;
|
|
@@ -9544,14 +9544,14 @@ var yy = u.forwardRef((e, t) => {
|
|
|
9544
9544
|
if (h !== void 0) {
|
|
9545
9545
|
if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) return;
|
|
9546
9546
|
g.preventDefault();
|
|
9547
|
-
let
|
|
9548
|
-
if (h === "last")
|
|
9547
|
+
let x = p().filter((y) => y.focusable).map((y) => y.ref.current);
|
|
9548
|
+
if (h === "last") x.reverse();
|
|
9549
9549
|
else if (h === "prev" || h === "next") {
|
|
9550
|
-
h === "prev" &&
|
|
9551
|
-
const
|
|
9552
|
-
|
|
9550
|
+
h === "prev" && x.reverse();
|
|
9551
|
+
const y = x.indexOf(g.currentTarget);
|
|
9552
|
+
x = d.loop ? Ey(x, y + 1) : x.slice(y + 1);
|
|
9553
9553
|
}
|
|
9554
|
-
setTimeout(() => Tl(
|
|
9554
|
+
setTimeout(() => Tl(x));
|
|
9555
9555
|
}
|
|
9556
9556
|
})
|
|
9557
9557
|
}
|
|
@@ -9662,7 +9662,7 @@ var We = "MenuContent", [Iy, wa] = Ft(We), Ll = u.forwardRef(
|
|
|
9662
9662
|
trapFocus: n.open,
|
|
9663
9663
|
disableOutsidePointerEvents: n.open,
|
|
9664
9664
|
disableOutsideScroll: !0,
|
|
9665
|
-
onFocusOutside:
|
|
9665
|
+
onFocusOutside: D(
|
|
9666
9666
|
e.onFocusOutside,
|
|
9667
9667
|
(a) => a.preventDefault(),
|
|
9668
9668
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -9701,23 +9701,23 @@ var We = "MenuContent", [Iy, wa] = Ft(We), Ll = u.forwardRef(
|
|
|
9701
9701
|
onDismiss: m,
|
|
9702
9702
|
disableOutsideScroll: g,
|
|
9703
9703
|
...h
|
|
9704
|
-
} = e, b = Tt(We, n),
|
|
9705
|
-
var
|
|
9706
|
-
const
|
|
9707
|
-
(function oe(
|
|
9708
|
-
|
|
9709
|
-
})(
|
|
9704
|
+
} = e, b = Tt(We, n), x = Dn(We, n), y = jn(n), w = jl(n), N = Ty(n), [E, R] = u.useState(null), P = u.useRef(null), A = Z(t, P, b.onContentChange), k = u.useRef(0), $ = u.useRef(""), z = u.useRef(0), j = u.useRef(null), V = u.useRef("right"), B = u.useRef(0), Q = g ? Pn : u.Fragment, L = g ? { as: lt, allowPinchZoom: !0 } : void 0, H = (S) => {
|
|
9705
|
+
var I, re;
|
|
9706
|
+
const G = $.current + S, X = N().filter((oe) => !oe.disabled), U = document.activeElement, Y = (I = X.find((oe) => oe.ref.current === U)) == null ? void 0 : I.textValue, K = X.map((oe) => oe.textValue), ie = Ky(K, G, Y), le = (re = X.find((oe) => oe.textValue === ie)) == null ? void 0 : re.ref.current;
|
|
9707
|
+
(function oe(ee) {
|
|
9708
|
+
$.current = ee, window.clearTimeout(k.current), ee !== "" && (k.current = window.setTimeout(() => oe(""), 1e3));
|
|
9709
|
+
})(G), le && setTimeout(() => le.focus());
|
|
9710
9710
|
};
|
|
9711
9711
|
u.useEffect(() => () => window.clearTimeout(k.current), []), xr();
|
|
9712
9712
|
const F = u.useCallback((S) => {
|
|
9713
9713
|
var X, U;
|
|
9714
|
-
return
|
|
9714
|
+
return V.current === ((X = j.current) == null ? void 0 : X.side) && Xy(S, (U = j.current) == null ? void 0 : U.area);
|
|
9715
9715
|
}, []);
|
|
9716
9716
|
return /* @__PURE__ */ c.jsx(
|
|
9717
9717
|
Iy,
|
|
9718
9718
|
{
|
|
9719
9719
|
scope: n,
|
|
9720
|
-
searchRef:
|
|
9720
|
+
searchRef: $,
|
|
9721
9721
|
onItemEnter: u.useCallback(
|
|
9722
9722
|
(S) => {
|
|
9723
9723
|
F(S) && S.preventDefault();
|
|
@@ -9726,8 +9726,8 @@ var We = "MenuContent", [Iy, wa] = Ft(We), Ll = u.forwardRef(
|
|
|
9726
9726
|
),
|
|
9727
9727
|
onItemLeave: u.useCallback(
|
|
9728
9728
|
(S) => {
|
|
9729
|
-
var
|
|
9730
|
-
F(S) || ((
|
|
9729
|
+
var G;
|
|
9730
|
+
F(S) || ((G = P.current) == null || G.focus(), R(null));
|
|
9731
9731
|
},
|
|
9732
9732
|
[F]
|
|
9733
9733
|
),
|
|
@@ -9739,16 +9739,16 @@ var We = "MenuContent", [Iy, wa] = Ft(We), Ll = u.forwardRef(
|
|
|
9739
9739
|
),
|
|
9740
9740
|
pointerGraceTimerRef: z,
|
|
9741
9741
|
onPointerGraceIntentChange: u.useCallback((S) => {
|
|
9742
|
-
|
|
9742
|
+
j.current = S;
|
|
9743
9743
|
}, []),
|
|
9744
|
-
children: /* @__PURE__ */ c.jsx(
|
|
9744
|
+
children: /* @__PURE__ */ c.jsx(Q, { ...L, children: /* @__PURE__ */ c.jsx(
|
|
9745
9745
|
En,
|
|
9746
9746
|
{
|
|
9747
9747
|
asChild: !0,
|
|
9748
9748
|
trapped: o,
|
|
9749
|
-
onMountAutoFocus:
|
|
9750
|
-
var
|
|
9751
|
-
S.preventDefault(), (
|
|
9749
|
+
onMountAutoFocus: D(a, (S) => {
|
|
9750
|
+
var G;
|
|
9751
|
+
S.preventDefault(), (G = P.current) == null || G.focus({ preventScroll: !0 });
|
|
9752
9752
|
}),
|
|
9753
9753
|
onUnmountAutoFocus: s,
|
|
9754
9754
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -9766,13 +9766,13 @@ var We = "MenuContent", [Iy, wa] = Ft(We), Ll = u.forwardRef(
|
|
|
9766
9766
|
{
|
|
9767
9767
|
asChild: !0,
|
|
9768
9768
|
...w,
|
|
9769
|
-
dir:
|
|
9769
|
+
dir: x.dir,
|
|
9770
9770
|
orientation: "vertical",
|
|
9771
9771
|
loop: r,
|
|
9772
9772
|
currentTabStopId: E,
|
|
9773
9773
|
onCurrentTabStopIdChange: R,
|
|
9774
|
-
onEntryFocus:
|
|
9775
|
-
|
|
9774
|
+
onEntryFocus: D(l, (S) => {
|
|
9775
|
+
x.isUsingKeyboardRef.current || S.preventDefault();
|
|
9776
9776
|
}),
|
|
9777
9777
|
preventScrollOnEntryFocus: !0,
|
|
9778
9778
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -9782,30 +9782,30 @@ var We = "MenuContent", [Iy, wa] = Ft(We), Ll = u.forwardRef(
|
|
|
9782
9782
|
"aria-orientation": "vertical",
|
|
9783
9783
|
"data-state": eu(b.open),
|
|
9784
9784
|
"data-radix-menu-content": "",
|
|
9785
|
-
dir:
|
|
9786
|
-
...
|
|
9785
|
+
dir: x.dir,
|
|
9786
|
+
...y,
|
|
9787
9787
|
...h,
|
|
9788
9788
|
ref: A,
|
|
9789
9789
|
style: { outline: "none", ...h.style },
|
|
9790
|
-
onKeyDown:
|
|
9791
|
-
const X = S.target.closest("[data-radix-menu-content]") === S.currentTarget, U = S.ctrlKey || S.altKey || S.metaKey,
|
|
9792
|
-
X && (S.key === "Tab" && S.preventDefault(), !U &&
|
|
9790
|
+
onKeyDown: D(h.onKeyDown, (S) => {
|
|
9791
|
+
const X = S.target.closest("[data-radix-menu-content]") === S.currentTarget, U = S.ctrlKey || S.altKey || S.metaKey, Y = S.key.length === 1;
|
|
9792
|
+
X && (S.key === "Tab" && S.preventDefault(), !U && Y && H(S.key));
|
|
9793
9793
|
const K = P.current;
|
|
9794
9794
|
if (S.target !== K || !Py.includes(S.key)) return;
|
|
9795
9795
|
S.preventDefault();
|
|
9796
|
-
const le = N().filter((
|
|
9796
|
+
const le = N().filter((I) => !I.disabled).map((I) => I.ref.current);
|
|
9797
9797
|
Al.includes(S.key) && le.reverse(), Yy(le);
|
|
9798
9798
|
}),
|
|
9799
|
-
onBlur:
|
|
9800
|
-
S.currentTarget.contains(S.target) || (window.clearTimeout(k.current),
|
|
9799
|
+
onBlur: D(e.onBlur, (S) => {
|
|
9800
|
+
S.currentTarget.contains(S.target) || (window.clearTimeout(k.current), $.current = "");
|
|
9801
9801
|
}),
|
|
9802
|
-
onPointerMove:
|
|
9802
|
+
onPointerMove: D(
|
|
9803
9803
|
e.onPointerMove,
|
|
9804
9804
|
Cn((S) => {
|
|
9805
|
-
const
|
|
9806
|
-
if (S.currentTarget.contains(
|
|
9807
|
-
const U = S.clientX >
|
|
9808
|
-
|
|
9805
|
+
const G = S.target, X = B.current !== S.clientX;
|
|
9806
|
+
if (S.currentTarget.contains(G) && X) {
|
|
9807
|
+
const U = S.clientX > B.current ? "right" : "left";
|
|
9808
|
+
V.current = U, B.current = S.clientX;
|
|
9809
9809
|
}
|
|
9810
9810
|
})
|
|
9811
9811
|
)
|
|
@@ -9851,16 +9851,16 @@ var ar = "MenuItem", Hs = "menu.itemSelect", jr = u.forwardRef(
|
|
|
9851
9851
|
...o,
|
|
9852
9852
|
ref: l,
|
|
9853
9853
|
disabled: n,
|
|
9854
|
-
onClick:
|
|
9854
|
+
onClick: D(e.onClick, f),
|
|
9855
9855
|
onPointerDown: (p) => {
|
|
9856
9856
|
var v;
|
|
9857
9857
|
(v = e.onPointerDown) == null || v.call(e, p), d.current = !0;
|
|
9858
9858
|
},
|
|
9859
|
-
onPointerUp:
|
|
9859
|
+
onPointerUp: D(e.onPointerUp, (p) => {
|
|
9860
9860
|
var v;
|
|
9861
9861
|
d.current || (v = p.currentTarget) == null || v.click();
|
|
9862
9862
|
}),
|
|
9863
|
-
onKeyDown:
|
|
9863
|
+
onKeyDown: D(e.onKeyDown, (p) => {
|
|
9864
9864
|
const v = i.searchRef.current !== "";
|
|
9865
9865
|
n || v && p.key === " " || vo.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
|
|
9866
9866
|
})
|
|
@@ -9890,18 +9890,18 @@ var Fl = u.forwardRef(
|
|
|
9890
9890
|
"data-disabled": r ? "" : void 0,
|
|
9891
9891
|
...a,
|
|
9892
9892
|
ref: d,
|
|
9893
|
-
onPointerMove:
|
|
9893
|
+
onPointerMove: D(
|
|
9894
9894
|
e.onPointerMove,
|
|
9895
9895
|
Cn((g) => {
|
|
9896
9896
|
r ? s.onItemLeave(g) : (s.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus({ preventScroll: !0 }));
|
|
9897
9897
|
})
|
|
9898
9898
|
),
|
|
9899
|
-
onPointerLeave:
|
|
9899
|
+
onPointerLeave: D(
|
|
9900
9900
|
e.onPointerLeave,
|
|
9901
9901
|
Cn((g) => s.onItemLeave(g))
|
|
9902
9902
|
),
|
|
9903
|
-
onFocus:
|
|
9904
|
-
onBlur:
|
|
9903
|
+
onFocus: D(e.onFocus, () => p(!0)),
|
|
9904
|
+
onBlur: D(e.onBlur, () => p(!1))
|
|
9905
9905
|
}
|
|
9906
9906
|
) })
|
|
9907
9907
|
}
|
|
@@ -9918,7 +9918,7 @@ var Fl = u.forwardRef(
|
|
|
9918
9918
|
...o,
|
|
9919
9919
|
ref: t,
|
|
9920
9920
|
"data-state": Pa(n),
|
|
9921
|
-
onSelect:
|
|
9921
|
+
onSelect: D(
|
|
9922
9922
|
o.onSelect,
|
|
9923
9923
|
() => r == null ? void 0 : r(sr(n) ? !0 : !n),
|
|
9924
9924
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -9950,7 +9950,7 @@ var Vl = "MenuRadioItem", Hl = u.forwardRef(
|
|
|
9950
9950
|
...r,
|
|
9951
9951
|
ref: t,
|
|
9952
9952
|
"data-state": Pa(a),
|
|
9953
|
-
onSelect:
|
|
9953
|
+
onSelect: D(
|
|
9954
9954
|
r.onSelect,
|
|
9955
9955
|
() => {
|
|
9956
9956
|
var s;
|
|
@@ -10057,7 +10057,7 @@ var hn = "MenuSubTrigger", Zl = u.forwardRef(
|
|
|
10057
10057
|
var v;
|
|
10058
10058
|
(v = e.onClick) == null || v.call(e, p), !(e.disabled || p.defaultPrevented) && (p.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
10059
10059
|
},
|
|
10060
|
-
onPointerMove:
|
|
10060
|
+
onPointerMove: D(
|
|
10061
10061
|
e.onPointerMove,
|
|
10062
10062
|
Cn((p) => {
|
|
10063
10063
|
a.onItemEnter(p), !p.defaultPrevented && !e.disabled && !n.open && !s.current && (a.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
@@ -10065,23 +10065,23 @@ var hn = "MenuSubTrigger", Zl = u.forwardRef(
|
|
|
10065
10065
|
}, 100));
|
|
10066
10066
|
})
|
|
10067
10067
|
),
|
|
10068
|
-
onPointerLeave:
|
|
10068
|
+
onPointerLeave: D(
|
|
10069
10069
|
e.onPointerLeave,
|
|
10070
10070
|
Cn((p) => {
|
|
10071
10071
|
var m, g;
|
|
10072
10072
|
f();
|
|
10073
10073
|
const v = (m = n.content) == null ? void 0 : m.getBoundingClientRect();
|
|
10074
10074
|
if (v) {
|
|
10075
|
-
const h = (g = n.content) == null ? void 0 : g.dataset.side, b = h === "right",
|
|
10075
|
+
const h = (g = n.content) == null ? void 0 : g.dataset.side, b = h === "right", x = b ? -5 : 5, y = v[b ? "left" : "right"], w = v[b ? "right" : "left"];
|
|
10076
10076
|
a.onPointerGraceIntentChange({
|
|
10077
10077
|
area: [
|
|
10078
10078
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
10079
10079
|
// consistently within polygon bounds
|
|
10080
|
-
{ x: p.clientX +
|
|
10081
|
-
{ x, y: v.top },
|
|
10080
|
+
{ x: p.clientX + x, y: p.clientY },
|
|
10081
|
+
{ x: y, y: v.top },
|
|
10082
10082
|
{ x: w, y: v.top },
|
|
10083
10083
|
{ x: w, y: v.bottom },
|
|
10084
|
-
{ x, y: v.bottom }
|
|
10084
|
+
{ x: y, y: v.bottom }
|
|
10085
10085
|
],
|
|
10086
10086
|
side: h
|
|
10087
10087
|
}), window.clearTimeout(i.current), i.current = window.setTimeout(
|
|
@@ -10094,7 +10094,7 @@ var hn = "MenuSubTrigger", Zl = u.forwardRef(
|
|
|
10094
10094
|
}
|
|
10095
10095
|
})
|
|
10096
10096
|
),
|
|
10097
|
-
onKeyDown:
|
|
10097
|
+
onKeyDown: D(e.onKeyDown, (p) => {
|
|
10098
10098
|
var m;
|
|
10099
10099
|
const v = a.searchRef.current !== "";
|
|
10100
10100
|
e.disabled || v && p.key === " " || Sy[r.dir].includes(p.key) && (n.onOpenChange(!0), (m = n.content) == null || m.focus(), p.preventDefault());
|
|
@@ -10124,13 +10124,13 @@ var Ql = "MenuSubContent", Jl = u.forwardRef(
|
|
|
10124
10124
|
s.isUsingKeyboardRef.current && ((p = l.current) == null || p.focus()), f.preventDefault();
|
|
10125
10125
|
},
|
|
10126
10126
|
onCloseAutoFocus: (f) => f.preventDefault(),
|
|
10127
|
-
onFocusOutside:
|
|
10127
|
+
onFocusOutside: D(e.onFocusOutside, (f) => {
|
|
10128
10128
|
f.target !== i.trigger && a.onOpenChange(!1);
|
|
10129
10129
|
}),
|
|
10130
|
-
onEscapeKeyDown:
|
|
10130
|
+
onEscapeKeyDown: D(e.onEscapeKeyDown, (f) => {
|
|
10131
10131
|
s.onClose(), f.preventDefault();
|
|
10132
10132
|
}),
|
|
10133
|
-
onKeyDown:
|
|
10133
|
+
onKeyDown: D(e.onKeyDown, (f) => {
|
|
10134
10134
|
var m;
|
|
10135
10135
|
const p = f.currentTarget.contains(f.target), v = My[s.dir].includes(f.key);
|
|
10136
10136
|
p && v && (a.onOpenChange(!1), (m = i.trigger) == null || m.focus(), f.preventDefault());
|
|
@@ -10232,10 +10232,10 @@ var ru = "DropdownMenuTrigger", ou = u.forwardRef(
|
|
|
10232
10232
|
disabled: r,
|
|
10233
10233
|
...o,
|
|
10234
10234
|
ref: Nn(t, a.triggerRef),
|
|
10235
|
-
onPointerDown:
|
|
10235
|
+
onPointerDown: D(e.onPointerDown, (i) => {
|
|
10236
10236
|
!r && i.button === 0 && i.ctrlKey === !1 && (a.onOpenToggle(), a.open || i.preventDefault());
|
|
10237
10237
|
}),
|
|
10238
|
-
onKeyDown:
|
|
10238
|
+
onKeyDown: D(e.onKeyDown, (i) => {
|
|
10239
10239
|
r || (["Enter", " "].includes(i.key) && a.onOpenToggle(), i.key === "ArrowDown" && a.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(i.key) && i.preventDefault());
|
|
10240
10240
|
})
|
|
10241
10241
|
}
|
|
@@ -10259,11 +10259,11 @@ var su = "DropdownMenuContent", iu = u.forwardRef(
|
|
|
10259
10259
|
...a,
|
|
10260
10260
|
...r,
|
|
10261
10261
|
ref: t,
|
|
10262
|
-
onCloseAutoFocus:
|
|
10262
|
+
onCloseAutoFocus: D(e.onCloseAutoFocus, (i) => {
|
|
10263
10263
|
var l;
|
|
10264
10264
|
s.current || (l = o.triggerRef.current) == null || l.focus(), s.current = !1, i.preventDefault();
|
|
10265
10265
|
}),
|
|
10266
|
-
onInteractOutside:
|
|
10266
|
+
onInteractOutside: D(e.onInteractOutside, (i) => {
|
|
10267
10267
|
const l = i.detail.originalEvent, d = l.button === 0 && l.ctrlKey === !0, f = l.button === 2 || d;
|
|
10268
10268
|
(!o.modal || f) && (s.current = !0);
|
|
10269
10269
|
}),
|
|
@@ -10540,11 +10540,11 @@ var Au = Ma, sn = "NavigationMenu", [Ta, ku, Uw] = nn(sn), [bo, Kw, qw] = nn(sn)
|
|
|
10540
10540
|
orientation: l = "horizontal",
|
|
10541
10541
|
dir: d,
|
|
10542
10542
|
...f
|
|
10543
|
-
} = e, [p, v] = u.useState(null), m = Z(t, (k) => v(k)), g = Pt(d), h = u.useRef(0), b = u.useRef(0),
|
|
10543
|
+
} = e, [p, v] = u.useState(null), m = Z(t, (k) => v(k)), g = Pt(d), h = u.useRef(0), b = u.useRef(0), x = u.useRef(0), [y, w] = u.useState(!0), [N = "", E] = Ce({
|
|
10544
10544
|
prop: r,
|
|
10545
10545
|
onChange: (k) => {
|
|
10546
|
-
const
|
|
10547
|
-
|
|
10546
|
+
const $ = k !== "", z = i > 0;
|
|
10547
|
+
$ ? (window.clearTimeout(x.current), z && w(!1)) : (window.clearTimeout(x.current), x.current = window.setTimeout(
|
|
10548
10548
|
() => w(!0),
|
|
10549
10549
|
i
|
|
10550
10550
|
)), o == null || o(k);
|
|
@@ -10566,7 +10566,7 @@ var Au = Ma, sn = "NavigationMenu", [Ta, ku, Uw] = nn(sn), [bo, Kw, qw] = nn(sn)
|
|
|
10566
10566
|
[N, E, s]
|
|
10567
10567
|
);
|
|
10568
10568
|
return u.useEffect(() => () => {
|
|
10569
|
-
window.clearTimeout(h.current), window.clearTimeout(b.current), window.clearTimeout(
|
|
10569
|
+
window.clearTimeout(h.current), window.clearTimeout(b.current), window.clearTimeout(x.current);
|
|
10570
10570
|
}, []), /* @__PURE__ */ c.jsx(
|
|
10571
10571
|
Iu,
|
|
10572
10572
|
{
|
|
@@ -10577,7 +10577,7 @@ var Au = Ma, sn = "NavigationMenu", [Ta, ku, Uw] = nn(sn), [bo, Kw, qw] = nn(sn)
|
|
|
10577
10577
|
orientation: l,
|
|
10578
10578
|
rootNavigationMenu: p,
|
|
10579
10579
|
onTriggerEnter: (k) => {
|
|
10580
|
-
window.clearTimeout(h.current),
|
|
10580
|
+
window.clearTimeout(h.current), y ? A(k) : P(k);
|
|
10581
10581
|
},
|
|
10582
10582
|
onTriggerLeave: () => {
|
|
10583
10583
|
window.clearTimeout(h.current), R();
|
|
@@ -10585,7 +10585,7 @@ var Au = Ma, sn = "NavigationMenu", [Ta, ku, Uw] = nn(sn), [bo, Kw, qw] = nn(sn)
|
|
|
10585
10585
|
onContentEnter: () => window.clearTimeout(b.current),
|
|
10586
10586
|
onContentLeave: R,
|
|
10587
10587
|
onItemSelect: (k) => {
|
|
10588
|
-
E((
|
|
10588
|
+
E(($) => $ === k ? "" : k);
|
|
10589
10589
|
},
|
|
10590
10590
|
onItemDismiss: () => E(""),
|
|
10591
10591
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -10650,7 +10650,7 @@ var Iu = (e) => {
|
|
|
10650
10650
|
onTriggerLeave: p,
|
|
10651
10651
|
onContentEnter: v,
|
|
10652
10652
|
onContentLeave: m
|
|
10653
|
-
} = e, [g, h] = u.useState(null), [b,
|
|
10653
|
+
} = e, [g, h] = u.useState(null), [b, x] = u.useState(/* @__PURE__ */ new Map()), [y, w] = u.useState(null);
|
|
10654
10654
|
return /* @__PURE__ */ c.jsx(
|
|
10655
10655
|
Xw,
|
|
10656
10656
|
{
|
|
@@ -10664,7 +10664,7 @@ var Iu = (e) => {
|
|
|
10664
10664
|
orientation: a,
|
|
10665
10665
|
viewport: g,
|
|
10666
10666
|
onViewportChange: h,
|
|
10667
|
-
indicatorTrack:
|
|
10667
|
+
indicatorTrack: y,
|
|
10668
10668
|
onIndicatorTrackChange: w,
|
|
10669
10669
|
onTriggerEnter: be(f),
|
|
10670
10670
|
onTriggerLeave: be(p),
|
|
@@ -10673,10 +10673,10 @@ var Iu = (e) => {
|
|
|
10673
10673
|
onItemSelect: be(l),
|
|
10674
10674
|
onItemDismiss: be(d),
|
|
10675
10675
|
onViewportContentChange: u.useCallback((N, E) => {
|
|
10676
|
-
|
|
10676
|
+
x((R) => (R.set(N, E), new Map(R)));
|
|
10677
10677
|
}, []),
|
|
10678
10678
|
onViewportContentRemove: u.useCallback((N) => {
|
|
10679
|
-
|
|
10679
|
+
x((E) => E.has(N) ? (E.delete(N), new Map(E)) : E);
|
|
10680
10680
|
}, []),
|
|
10681
10681
|
children: /* @__PURE__ */ c.jsx(Ta.Provider, { scope: t, children: /* @__PURE__ */ c.jsx(Zw, { scope: t, items: b, children: s }) })
|
|
10682
10682
|
}
|
|
@@ -10736,25 +10736,25 @@ var xo = "NavigationMenuTrigger", Bu = u.forwardRef((e, t) => {
|
|
|
10736
10736
|
"aria-controls": f,
|
|
10737
10737
|
...o,
|
|
10738
10738
|
ref: l,
|
|
10739
|
-
onPointerEnter:
|
|
10739
|
+
onPointerEnter: D(e.onPointerEnter, () => {
|
|
10740
10740
|
v.current = !1, s.wasEscapeCloseRef.current = !1;
|
|
10741
10741
|
}),
|
|
10742
|
-
onPointerMove:
|
|
10742
|
+
onPointerMove: D(
|
|
10743
10743
|
e.onPointerMove,
|
|
10744
10744
|
ir(() => {
|
|
10745
10745
|
r || v.current || s.wasEscapeCloseRef.current || p.current || (a.onTriggerEnter(s.value), p.current = !0);
|
|
10746
10746
|
})
|
|
10747
10747
|
),
|
|
10748
|
-
onPointerLeave:
|
|
10748
|
+
onPointerLeave: D(
|
|
10749
10749
|
e.onPointerLeave,
|
|
10750
10750
|
ir(() => {
|
|
10751
10751
|
r || (a.onTriggerLeave(), p.current = !1);
|
|
10752
10752
|
})
|
|
10753
10753
|
),
|
|
10754
|
-
onClick:
|
|
10754
|
+
onClick: D(e.onClick, () => {
|
|
10755
10755
|
a.onItemSelect(s.value), v.current = m;
|
|
10756
10756
|
}),
|
|
10757
|
-
onKeyDown:
|
|
10757
|
+
onKeyDown: D(e.onKeyDown, (g) => {
|
|
10758
10758
|
const b = { horizontal: "ArrowDown", vertical: a.dir === "rtl" ? "ArrowLeft" : "ArrowRight" }[a.orientation];
|
|
10759
10759
|
m && g.key === b && (s.onEntryKeyDown(), g.preventDefault());
|
|
10760
10760
|
})
|
|
@@ -10768,8 +10768,8 @@ var xo = "NavigationMenuTrigger", Bu = u.forwardRef((e, t) => {
|
|
|
10768
10768
|
tabIndex: 0,
|
|
10769
10769
|
ref: s.focusProxyRef,
|
|
10770
10770
|
onFocus: (g) => {
|
|
10771
|
-
const h = s.contentRef.current, b = g.relatedTarget,
|
|
10772
|
-
(
|
|
10771
|
+
const h = s.contentRef.current, b = g.relatedTarget, x = b === i.current, y = h == null ? void 0 : h.contains(b);
|
|
10772
|
+
(x || !y) && s.onFocusProxyEnter(x ? "start" : "end");
|
|
10773
10773
|
}
|
|
10774
10774
|
}
|
|
10775
10775
|
),
|
|
@@ -10788,7 +10788,7 @@ var t0 = "NavigationMenuLink", Gs = "navigationMenu.linkSelect", Wu = u.forwardR
|
|
|
10788
10788
|
"aria-current": r ? "page" : void 0,
|
|
10789
10789
|
...a,
|
|
10790
10790
|
ref: t,
|
|
10791
|
-
onClick:
|
|
10791
|
+
onClick: D(
|
|
10792
10792
|
e.onClick,
|
|
10793
10793
|
(s) => {
|
|
10794
10794
|
const i = s.target, l = new CustomEvent(Gs, {
|
|
@@ -10872,8 +10872,8 @@ var n0 = u.forwardRef((e, t) => {
|
|
|
10872
10872
|
"data-state": Ia(i),
|
|
10873
10873
|
...l,
|
|
10874
10874
|
ref: s,
|
|
10875
|
-
onPointerEnter:
|
|
10876
|
-
onPointerLeave:
|
|
10875
|
+
onPointerEnter: D(e.onPointerEnter, o.onContentEnter),
|
|
10876
|
+
onPointerLeave: D(
|
|
10877
10877
|
e.onPointerLeave,
|
|
10878
10878
|
ir(o.onContentLeave)
|
|
10879
10879
|
),
|
|
@@ -10904,19 +10904,19 @@ var r0 = u.forwardRef((e, t) => {
|
|
|
10904
10904
|
onRootContentClose: i,
|
|
10905
10905
|
onContentFocusOutside: l,
|
|
10906
10906
|
...d
|
|
10907
|
-
} = e, f = ze(Qt, n), p = u.useRef(null), v = Z(p, t), m = Ku(f.baseId, r), g = qu(f.baseId, r), h = ku(n), b = u.useRef(null), { onItemDismiss:
|
|
10907
|
+
} = e, f = ze(Qt, n), p = u.useRef(null), v = Z(p, t), m = Ku(f.baseId, r), g = qu(f.baseId, r), h = ku(n), b = u.useRef(null), { onItemDismiss: x } = f;
|
|
10908
10908
|
u.useEffect(() => {
|
|
10909
10909
|
const w = p.current;
|
|
10910
10910
|
if (f.isRootMenu && w) {
|
|
10911
10911
|
const N = () => {
|
|
10912
10912
|
var E;
|
|
10913
|
-
|
|
10913
|
+
x(), i(), w.contains(document.activeElement) && ((E = o.current) == null || E.focus());
|
|
10914
10914
|
};
|
|
10915
10915
|
return w.addEventListener(Xn, N), () => w.removeEventListener(Xn, N);
|
|
10916
10916
|
}
|
|
10917
|
-
}, [f.isRootMenu, e.value, o,
|
|
10918
|
-
const
|
|
10919
|
-
const N = h().map((
|
|
10917
|
+
}, [f.isRootMenu, e.value, o, x, i]);
|
|
10918
|
+
const y = u.useMemo(() => {
|
|
10919
|
+
const N = h().map(($) => $.value);
|
|
10920
10920
|
f.dir === "rtl" && N.reverse();
|
|
10921
10921
|
const E = N.indexOf(f.value), R = N.indexOf(f.previousValue), P = r === f.value, A = R === N.indexOf(r);
|
|
10922
10922
|
if (!P && !A) return b.current;
|
|
@@ -10934,7 +10934,7 @@ var r0 = u.forwardRef((e, t) => {
|
|
|
10934
10934
|
{
|
|
10935
10935
|
id: g,
|
|
10936
10936
|
"aria-labelledby": m,
|
|
10937
|
-
"data-motion":
|
|
10937
|
+
"data-motion": y,
|
|
10938
10938
|
"data-orientation": f.orientation,
|
|
10939
10939
|
...d,
|
|
10940
10940
|
ref: v,
|
|
@@ -10947,13 +10947,13 @@ var r0 = u.forwardRef((e, t) => {
|
|
|
10947
10947
|
});
|
|
10948
10948
|
(N = p.current) == null || N.dispatchEvent(w);
|
|
10949
10949
|
},
|
|
10950
|
-
onFocusOutside:
|
|
10950
|
+
onFocusOutside: D(e.onFocusOutside, (w) => {
|
|
10951
10951
|
var E;
|
|
10952
10952
|
l();
|
|
10953
10953
|
const N = w.target;
|
|
10954
10954
|
(E = f.rootNavigationMenu) != null && E.contains(N) && w.preventDefault();
|
|
10955
10955
|
}),
|
|
10956
|
-
onPointerDownOutside:
|
|
10956
|
+
onPointerDownOutside: D(e.onPointerDownOutside, (w) => {
|
|
10957
10957
|
var P;
|
|
10958
10958
|
const N = w.target, E = h().some((A) => {
|
|
10959
10959
|
var k;
|
|
@@ -10961,15 +10961,15 @@ var r0 = u.forwardRef((e, t) => {
|
|
|
10961
10961
|
}), R = f.isRootMenu && ((P = f.viewport) == null ? void 0 : P.contains(N));
|
|
10962
10962
|
(E || R || !f.isRootMenu) && w.preventDefault();
|
|
10963
10963
|
}),
|
|
10964
|
-
onKeyDown:
|
|
10964
|
+
onKeyDown: D(e.onKeyDown, (w) => {
|
|
10965
10965
|
var R;
|
|
10966
10966
|
const N = w.altKey || w.ctrlKey || w.metaKey;
|
|
10967
10967
|
if (w.key === "Tab" && !N) {
|
|
10968
|
-
const P = yo(w.currentTarget), A = document.activeElement, k = P.findIndex((
|
|
10968
|
+
const P = yo(w.currentTarget), A = document.activeElement, k = P.findIndex((j) => j === A), z = w.shiftKey ? P.slice(0, k).reverse() : P.slice(k + 1, P.length);
|
|
10969
10969
|
Da(z) ? w.preventDefault() : (R = a.current) == null || R.focus();
|
|
10970
10970
|
}
|
|
10971
10971
|
}),
|
|
10972
|
-
onEscapeKeyDown:
|
|
10972
|
+
onEscapeKeyDown: D(e.onEscapeKeyDown, (w) => {
|
|
10973
10973
|
s.current = !0;
|
|
10974
10974
|
})
|
|
10975
10975
|
}
|
|
@@ -11000,19 +11000,19 @@ var o0 = u.forwardRef((e, t) => {
|
|
|
11000
11000
|
"--radix-navigation-menu-viewport-height": m,
|
|
11001
11001
|
...o.style
|
|
11002
11002
|
},
|
|
11003
|
-
onPointerEnter:
|
|
11004
|
-
onPointerLeave:
|
|
11005
|
-
children: Array.from(i.items).map(([
|
|
11006
|
-
const E = h ===
|
|
11003
|
+
onPointerEnter: D(e.onPointerEnter, a.onContentEnter),
|
|
11004
|
+
onPointerLeave: D(e.onPointerLeave, ir(a.onContentLeave)),
|
|
11005
|
+
children: Array.from(i.items).map(([x, { ref: y, forceMount: w, ...N }]) => {
|
|
11006
|
+
const E = h === x;
|
|
11007
11007
|
return /* @__PURE__ */ c.jsx(Ne, { present: w || E, children: /* @__PURE__ */ c.jsx(
|
|
11008
11008
|
Hu,
|
|
11009
11009
|
{
|
|
11010
11010
|
...N,
|
|
11011
|
-
ref: Nn(
|
|
11011
|
+
ref: Nn(y, (R) => {
|
|
11012
11012
|
E && R && p(R);
|
|
11013
11013
|
})
|
|
11014
11014
|
}
|
|
11015
|
-
) },
|
|
11015
|
+
) }, x);
|
|
11016
11016
|
})
|
|
11017
11017
|
}
|
|
11018
11018
|
);
|
|
@@ -11029,7 +11029,7 @@ var o0 = u.forwardRef((e, t) => {
|
|
|
11029
11029
|
{
|
|
11030
11030
|
...r,
|
|
11031
11031
|
ref: t,
|
|
11032
|
-
onKeyDown:
|
|
11032
|
+
onKeyDown: D(e.onKeyDown, (s) => {
|
|
11033
11033
|
if (["Home", "End", ...Ys].includes(s.key)) {
|
|
11034
11034
|
let l = o().map((p) => p.ref.current);
|
|
11035
11035
|
if ([a.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(s.key) && l.reverse(), Ys.includes(s.key)) {
|
|
@@ -11368,12 +11368,12 @@ function sE(e) {
|
|
|
11368
11368
|
hidePasswordLabel: a = "Hide password",
|
|
11369
11369
|
strengthTitle: s = "Password strength",
|
|
11370
11370
|
...i
|
|
11371
|
-
} = e, [l, d] = fe(""), [f, p] = fe(!1), v = (
|
|
11372
|
-
let
|
|
11373
|
-
return
|
|
11374
|
-
}, m = (
|
|
11375
|
-
var
|
|
11376
|
-
d(
|
|
11371
|
+
} = e, [l, d] = fe(""), [f, p] = fe(!1), v = (x) => {
|
|
11372
|
+
let y = 0;
|
|
11373
|
+
return x.length >= 8 && (y += 25), x.match(/[a-z]/) && (y += 25), x.match(/[A-Z]/) && (y += 25), x.match(/[0-9]/) && (y += 25), y;
|
|
11374
|
+
}, m = (x) => x === 0 ? r.veryWeak : x <= 25 ? r.weak : x <= 50 ? r.medium : x <= 75 ? r.strong : r.veryStrong, g = v(l), h = m(g), b = (x) => {
|
|
11375
|
+
var y;
|
|
11376
|
+
d(x.target.value), (y = e.onChange) == null || y.call(e, x);
|
|
11377
11377
|
};
|
|
11378
11378
|
return /* @__PURE__ */ c.jsxs("div", { className: "w-full space-y-4", children: [
|
|
11379
11379
|
/* @__PURE__ */ c.jsxs("div", { className: "relative", children: [
|
|
@@ -11464,7 +11464,7 @@ var vd = "PopoverTrigger", bd = u.forwardRef(
|
|
|
11464
11464
|
"data-state": Nd(o.open),
|
|
11465
11465
|
...r,
|
|
11466
11466
|
ref: s,
|
|
11467
|
-
onClick:
|
|
11467
|
+
onClick: D(e.onClick, o.onOpenToggle)
|
|
11468
11468
|
}
|
|
11469
11469
|
);
|
|
11470
11470
|
return o.hasCustomAnchor ? i : /* @__PURE__ */ c.jsx(An, { asChild: !0, ...a, children: i });
|
|
@@ -11498,11 +11498,11 @@ var P0 = u.forwardRef(
|
|
|
11498
11498
|
ref: o,
|
|
11499
11499
|
trapFocus: n.open,
|
|
11500
11500
|
disableOutsidePointerEvents: !0,
|
|
11501
|
-
onCloseAutoFocus:
|
|
11501
|
+
onCloseAutoFocus: D(e.onCloseAutoFocus, (s) => {
|
|
11502
11502
|
var i;
|
|
11503
11503
|
s.preventDefault(), a.current || (i = n.triggerRef.current) == null || i.focus();
|
|
11504
11504
|
}),
|
|
11505
|
-
onPointerDownOutside:
|
|
11505
|
+
onPointerDownOutside: D(
|
|
11506
11506
|
e.onPointerDownOutside,
|
|
11507
11507
|
(s) => {
|
|
11508
11508
|
const i = s.detail.originalEvent, l = i.button === 0 && i.ctrlKey === !0, d = i.button === 2 || l;
|
|
@@ -11510,7 +11510,7 @@ var P0 = u.forwardRef(
|
|
|
11510
11510
|
},
|
|
11511
11511
|
{ checkForDefaultPrevented: !1 }
|
|
11512
11512
|
),
|
|
11513
|
-
onFocusOutside:
|
|
11513
|
+
onFocusOutside: D(
|
|
11514
11514
|
e.onFocusOutside,
|
|
11515
11515
|
(s) => s.preventDefault(),
|
|
11516
11516
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -11606,7 +11606,7 @@ var P0 = u.forwardRef(
|
|
|
11606
11606
|
type: "button",
|
|
11607
11607
|
...r,
|
|
11608
11608
|
ref: t,
|
|
11609
|
-
onClick:
|
|
11609
|
+
onClick: D(e.onClick, () => o.onOpenChange(!1))
|
|
11610
11610
|
}
|
|
11611
11611
|
);
|
|
11612
11612
|
}
|
|
@@ -11663,7 +11663,7 @@ var Fa = "Radio", [O0, Rd] = ye(Fa), [L0, $0] = O0(Fa), Pd = u.forwardRef(
|
|
|
11663
11663
|
value: i,
|
|
11664
11664
|
...f,
|
|
11665
11665
|
ref: m,
|
|
11666
|
-
onClick:
|
|
11666
|
+
onClick: D(e.onClick, (b) => {
|
|
11667
11667
|
o || l == null || l(), h && (g.current = b.isPropagationStopped(), g.current || b.stopPropagation());
|
|
11668
11668
|
})
|
|
11669
11669
|
}
|
|
@@ -11818,10 +11818,10 @@ var Dd = "RadioGroupItem", Id = u.forwardRef(
|
|
|
11818
11818
|
name: a.name,
|
|
11819
11819
|
ref: f,
|
|
11820
11820
|
onCheck: () => a.onValueChange(o.value),
|
|
11821
|
-
onKeyDown:
|
|
11821
|
+
onKeyDown: D((m) => {
|
|
11822
11822
|
m.key === "Enter" && m.preventDefault();
|
|
11823
11823
|
}),
|
|
11824
|
-
onFocus:
|
|
11824
|
+
onFocus: D(o.onFocus, () => {
|
|
11825
11825
|
var m;
|
|
11826
11826
|
v.current && ((m = d.current) == null || m.click());
|
|
11827
11827
|
})
|
|
@@ -11884,29 +11884,29 @@ var K0 = [" ", "Enter", "ArrowUp", "ArrowDown"], q0 = [" ", "Enter"], _n = "Sele
|
|
|
11884
11884
|
disabled: v,
|
|
11885
11885
|
required: m,
|
|
11886
11886
|
form: g
|
|
11887
|
-
} = e, h = _r(t), [b,
|
|
11887
|
+
} = e, h = _r(t), [b, x] = u.useState(null), [y, w] = u.useState(null), [N, E] = u.useState(!1), R = Pt(d), [P = !1, A] = Ce({
|
|
11888
11888
|
prop: r,
|
|
11889
11889
|
defaultProp: o,
|
|
11890
11890
|
onChange: a
|
|
11891
|
-
}), [k,
|
|
11891
|
+
}), [k, $] = Ce({
|
|
11892
11892
|
prop: s,
|
|
11893
11893
|
defaultProp: i,
|
|
11894
11894
|
onChange: l
|
|
11895
|
-
}), z = u.useRef(null),
|
|
11895
|
+
}), z = u.useRef(null), j = b ? g || !!b.closest("form") : !0, [V, B] = u.useState(/* @__PURE__ */ new Set()), Q = Array.from(V).map((L) => L.props.value).join(";");
|
|
11896
11896
|
return /* @__PURE__ */ c.jsx(Tn, { ...h, children: /* @__PURE__ */ c.jsxs(
|
|
11897
11897
|
Z0,
|
|
11898
11898
|
{
|
|
11899
11899
|
required: m,
|
|
11900
11900
|
scope: t,
|
|
11901
11901
|
trigger: b,
|
|
11902
|
-
onTriggerChange:
|
|
11903
|
-
valueNode:
|
|
11902
|
+
onTriggerChange: x,
|
|
11903
|
+
valueNode: y,
|
|
11904
11904
|
onValueNodeChange: w,
|
|
11905
11905
|
valueNodeHasChildren: N,
|
|
11906
11906
|
onValueNodeHasChildrenChange: E,
|
|
11907
11907
|
contentId: Pe(),
|
|
11908
11908
|
value: k,
|
|
11909
|
-
onValueChange:
|
|
11909
|
+
onValueChange: $,
|
|
11910
11910
|
open: P,
|
|
11911
11911
|
onOpenChange: A,
|
|
11912
11912
|
dir: R,
|
|
@@ -11917,19 +11917,19 @@ var K0 = [" ", "Enter", "ArrowUp", "ArrowDown"], q0 = [" ", "Enter"], _n = "Sele
|
|
|
11917
11917
|
Q0,
|
|
11918
11918
|
{
|
|
11919
11919
|
scope: e.__scopeSelect,
|
|
11920
|
-
onNativeOptionAdd: u.useCallback((
|
|
11921
|
-
|
|
11920
|
+
onNativeOptionAdd: u.useCallback((L) => {
|
|
11921
|
+
B((H) => new Set(H).add(L));
|
|
11922
11922
|
}, []),
|
|
11923
|
-
onNativeOptionRemove: u.useCallback((
|
|
11924
|
-
|
|
11925
|
-
const F = new Set(
|
|
11926
|
-
return F.delete(
|
|
11923
|
+
onNativeOptionRemove: u.useCallback((L) => {
|
|
11924
|
+
B((H) => {
|
|
11925
|
+
const F = new Set(H);
|
|
11926
|
+
return F.delete(L), F;
|
|
11927
11927
|
});
|
|
11928
11928
|
}, []),
|
|
11929
11929
|
children: n
|
|
11930
11930
|
}
|
|
11931
11931
|
) }),
|
|
11932
|
-
|
|
11932
|
+
j ? /* @__PURE__ */ c.jsxs(
|
|
11933
11933
|
uf,
|
|
11934
11934
|
{
|
|
11935
11935
|
"aria-hidden": !0,
|
|
@@ -11938,15 +11938,15 @@ var K0 = [" ", "Enter", "ArrowUp", "ArrowDown"], q0 = [" ", "Enter"], _n = "Sele
|
|
|
11938
11938
|
name: f,
|
|
11939
11939
|
autoComplete: p,
|
|
11940
11940
|
value: k,
|
|
11941
|
-
onChange: (
|
|
11941
|
+
onChange: (L) => $(L.target.value),
|
|
11942
11942
|
disabled: v,
|
|
11943
11943
|
form: g,
|
|
11944
11944
|
children: [
|
|
11945
11945
|
k === void 0 ? /* @__PURE__ */ c.jsx("option", { value: "" }) : null,
|
|
11946
|
-
Array.from(
|
|
11946
|
+
Array.from(V)
|
|
11947
11947
|
]
|
|
11948
11948
|
},
|
|
11949
|
-
|
|
11949
|
+
Q
|
|
11950
11950
|
) : null
|
|
11951
11951
|
]
|
|
11952
11952
|
}
|
|
@@ -11956,8 +11956,8 @@ $d.displayName = _n;
|
|
|
11956
11956
|
var Fd = "SelectTrigger", Bd = u.forwardRef(
|
|
11957
11957
|
(e, t) => {
|
|
11958
11958
|
const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = _r(n), s = kt(Fd, n), i = s.disabled || r, l = Z(t, s.onTriggerChange), d = Ir(n), f = u.useRef("touch"), [p, v, m] = df((h) => {
|
|
11959
|
-
const b = d().filter((w) => !w.disabled),
|
|
11960
|
-
|
|
11959
|
+
const b = d().filter((w) => !w.disabled), x = b.find((w) => w.value === s.value), y = ff(b, h, x);
|
|
11960
|
+
y !== void 0 && s.onValueChange(y.value);
|
|
11961
11961
|
}), g = (h) => {
|
|
11962
11962
|
i || (s.onOpenChange(!0), m()), h && (s.triggerPointerDownPosRef.current = {
|
|
11963
11963
|
x: Math.round(h.pageX),
|
|
@@ -11980,15 +11980,15 @@ var Fd = "SelectTrigger", Bd = u.forwardRef(
|
|
|
11980
11980
|
"data-placeholder": lf(s.value) ? "" : void 0,
|
|
11981
11981
|
...o,
|
|
11982
11982
|
ref: l,
|
|
11983
|
-
onClick:
|
|
11983
|
+
onClick: D(o.onClick, (h) => {
|
|
11984
11984
|
h.currentTarget.focus(), f.current !== "mouse" && g(h);
|
|
11985
11985
|
}),
|
|
11986
|
-
onPointerDown:
|
|
11986
|
+
onPointerDown: D(o.onPointerDown, (h) => {
|
|
11987
11987
|
f.current = h.pointerType;
|
|
11988
11988
|
const b = h.target;
|
|
11989
11989
|
b.hasPointerCapture(h.pointerId) && b.releasePointerCapture(h.pointerId), h.button === 0 && h.ctrlKey === !1 && h.pointerType === "mouse" && (g(h), h.preventDefault());
|
|
11990
11990
|
}),
|
|
11991
|
-
onKeyDown:
|
|
11991
|
+
onKeyDown: D(o.onKeyDown, (h) => {
|
|
11992
11992
|
const b = p.current !== "";
|
|
11993
11993
|
!(h.ctrlKey || h.altKey || h.metaKey) && h.key.length === 1 && v(h.key), !(b && h.key === " ") && K0.includes(h.key) && (g(), h.preventDefault());
|
|
11994
11994
|
})
|
|
@@ -12058,65 +12058,65 @@ var Ye = 10, [Gd, jt] = cn(Lt), tC = "SelectContentImpl", Yd = u.forwardRef(
|
|
|
12058
12058
|
hideWhenDetached: h,
|
|
12059
12059
|
avoidCollisions: b,
|
|
12060
12060
|
//
|
|
12061
|
-
...
|
|
12062
|
-
} = e,
|
|
12061
|
+
...x
|
|
12062
|
+
} = e, y = kt(Lt, n), [w, N] = u.useState(null), [E, R] = u.useState(null), P = Z(t, (I) => N(I)), [A, k] = u.useState(null), [$, z] = u.useState(
|
|
12063
12063
|
null
|
|
12064
|
-
),
|
|
12064
|
+
), j = Ir(n), [V, B] = u.useState(!1), Q = u.useRef(!1);
|
|
12065
12065
|
u.useEffect(() => {
|
|
12066
12066
|
if (w) return wr(w);
|
|
12067
12067
|
}, [w]), xr();
|
|
12068
|
-
const
|
|
12069
|
-
(
|
|
12070
|
-
const [re, ...oe] =
|
|
12071
|
-
for (const se of
|
|
12072
|
-
if (se === ne || (se == null || se.scrollIntoView({ block: "nearest" }), se === re && E && (E.scrollTop = 0), se ===
|
|
12068
|
+
const L = u.useCallback(
|
|
12069
|
+
(I) => {
|
|
12070
|
+
const [re, ...oe] = j().map((se) => se.ref.current), [ee] = oe.slice(-1), ne = document.activeElement;
|
|
12071
|
+
for (const se of I)
|
|
12072
|
+
if (se === ne || (se == null || se.scrollIntoView({ block: "nearest" }), se === re && E && (E.scrollTop = 0), se === ee && E && (E.scrollTop = E.scrollHeight), se == null || se.focus(), document.activeElement !== ne)) return;
|
|
12073
12073
|
},
|
|
12074
|
-
[
|
|
12075
|
-
),
|
|
12076
|
-
() =>
|
|
12077
|
-
[
|
|
12074
|
+
[j, E]
|
|
12075
|
+
), H = u.useCallback(
|
|
12076
|
+
() => L([A, w]),
|
|
12077
|
+
[L, A, w]
|
|
12078
12078
|
);
|
|
12079
12079
|
u.useEffect(() => {
|
|
12080
|
-
|
|
12081
|
-
}, [
|
|
12082
|
-
const { onOpenChange: F, triggerPointerDownPosRef: S } =
|
|
12080
|
+
V && H();
|
|
12081
|
+
}, [V, H]);
|
|
12082
|
+
const { onOpenChange: F, triggerPointerDownPosRef: S } = y;
|
|
12083
12083
|
u.useEffect(() => {
|
|
12084
12084
|
if (w) {
|
|
12085
|
-
let
|
|
12086
|
-
const re = (
|
|
12085
|
+
let I = { x: 0, y: 0 };
|
|
12086
|
+
const re = (ee) => {
|
|
12087
12087
|
var ne, se;
|
|
12088
|
-
|
|
12089
|
-
x: Math.abs(Math.round(
|
|
12090
|
-
y: Math.abs(Math.round(
|
|
12088
|
+
I = {
|
|
12089
|
+
x: Math.abs(Math.round(ee.pageX) - (((ne = S.current) == null ? void 0 : ne.x) ?? 0)),
|
|
12090
|
+
y: Math.abs(Math.round(ee.pageY) - (((se = S.current) == null ? void 0 : se.y) ?? 0))
|
|
12091
12091
|
};
|
|
12092
|
-
}, oe = (
|
|
12093
|
-
|
|
12092
|
+
}, oe = (ee) => {
|
|
12093
|
+
I.x <= 10 && I.y <= 10 ? ee.preventDefault() : w.contains(ee.target) || F(!1), document.removeEventListener("pointermove", re), S.current = null;
|
|
12094
12094
|
};
|
|
12095
12095
|
return S.current !== null && (document.addEventListener("pointermove", re), document.addEventListener("pointerup", oe, { capture: !0, once: !0 })), () => {
|
|
12096
12096
|
document.removeEventListener("pointermove", re), document.removeEventListener("pointerup", oe, { capture: !0 });
|
|
12097
12097
|
};
|
|
12098
12098
|
}
|
|
12099
12099
|
}, [w, F, S]), u.useEffect(() => {
|
|
12100
|
-
const
|
|
12101
|
-
return window.addEventListener("blur",
|
|
12102
|
-
window.removeEventListener("blur",
|
|
12100
|
+
const I = () => F(!1);
|
|
12101
|
+
return window.addEventListener("blur", I), window.addEventListener("resize", I), () => {
|
|
12102
|
+
window.removeEventListener("blur", I), window.removeEventListener("resize", I);
|
|
12103
12103
|
};
|
|
12104
12104
|
}, [F]);
|
|
12105
|
-
const [
|
|
12106
|
-
const re =
|
|
12107
|
-
|
|
12105
|
+
const [G, X] = df((I) => {
|
|
12106
|
+
const re = j().filter((ne) => !ne.disabled), oe = re.find((ne) => ne.ref.current === document.activeElement), ee = ff(re, I, oe);
|
|
12107
|
+
ee && setTimeout(() => ee.ref.current.focus());
|
|
12108
12108
|
}), U = u.useCallback(
|
|
12109
|
-
(
|
|
12110
|
-
const
|
|
12111
|
-
(
|
|
12109
|
+
(I, re, oe) => {
|
|
12110
|
+
const ee = !Q.current && !oe;
|
|
12111
|
+
(y.value !== void 0 && y.value === re || ee) && (k(I), ee && (Q.current = !0));
|
|
12112
12112
|
},
|
|
12113
|
-
[
|
|
12114
|
-
),
|
|
12115
|
-
(
|
|
12116
|
-
const
|
|
12117
|
-
(
|
|
12113
|
+
[y.value]
|
|
12114
|
+
), Y = u.useCallback(() => w == null ? void 0 : w.focus(), [w]), K = u.useCallback(
|
|
12115
|
+
(I, re, oe) => {
|
|
12116
|
+
const ee = !Q.current && !oe;
|
|
12117
|
+
(y.value !== void 0 && y.value === re || ee) && z(I);
|
|
12118
12118
|
},
|
|
12119
|
-
[
|
|
12119
|
+
[y.value]
|
|
12120
12120
|
), ie = r === "popper" ? No : Ud, le = ie === No ? {
|
|
12121
12121
|
side: i,
|
|
12122
12122
|
sideOffset: l,
|
|
@@ -12138,24 +12138,24 @@ var Ye = 10, [Gd, jt] = cn(Lt), tC = "SelectContentImpl", Yd = u.forwardRef(
|
|
|
12138
12138
|
onViewportChange: R,
|
|
12139
12139
|
itemRefCallback: U,
|
|
12140
12140
|
selectedItem: A,
|
|
12141
|
-
onItemLeave:
|
|
12141
|
+
onItemLeave: Y,
|
|
12142
12142
|
itemTextRefCallback: K,
|
|
12143
|
-
focusSelectedItem:
|
|
12144
|
-
selectedItemText:
|
|
12143
|
+
focusSelectedItem: H,
|
|
12144
|
+
selectedItemText: $,
|
|
12145
12145
|
position: r,
|
|
12146
|
-
isPositioned:
|
|
12147
|
-
searchRef:
|
|
12146
|
+
isPositioned: V,
|
|
12147
|
+
searchRef: G,
|
|
12148
12148
|
children: /* @__PURE__ */ c.jsx(Pn, { as: lt, allowPinchZoom: !0, children: /* @__PURE__ */ c.jsx(
|
|
12149
12149
|
En,
|
|
12150
12150
|
{
|
|
12151
12151
|
asChild: !0,
|
|
12152
|
-
trapped:
|
|
12153
|
-
onMountAutoFocus: (
|
|
12154
|
-
|
|
12152
|
+
trapped: y.open,
|
|
12153
|
+
onMountAutoFocus: (I) => {
|
|
12154
|
+
I.preventDefault();
|
|
12155
12155
|
},
|
|
12156
|
-
onUnmountAutoFocus:
|
|
12156
|
+
onUnmountAutoFocus: D(o, (I) => {
|
|
12157
12157
|
var re;
|
|
12158
|
-
(re =
|
|
12158
|
+
(re = y.trigger) == null || re.focus({ preventScroll: !0 }), I.preventDefault();
|
|
12159
12159
|
}),
|
|
12160
12160
|
children: /* @__PURE__ */ c.jsx(
|
|
12161
12161
|
$t,
|
|
@@ -12164,19 +12164,19 @@ var Ye = 10, [Gd, jt] = cn(Lt), tC = "SelectContentImpl", Yd = u.forwardRef(
|
|
|
12164
12164
|
disableOutsidePointerEvents: !0,
|
|
12165
12165
|
onEscapeKeyDown: a,
|
|
12166
12166
|
onPointerDownOutside: s,
|
|
12167
|
-
onFocusOutside: (
|
|
12168
|
-
onDismiss: () =>
|
|
12167
|
+
onFocusOutside: (I) => I.preventDefault(),
|
|
12168
|
+
onDismiss: () => y.onOpenChange(!1),
|
|
12169
12169
|
children: /* @__PURE__ */ c.jsx(
|
|
12170
12170
|
ie,
|
|
12171
12171
|
{
|
|
12172
12172
|
role: "listbox",
|
|
12173
|
-
id:
|
|
12174
|
-
"data-state":
|
|
12175
|
-
dir:
|
|
12176
|
-
onContextMenu: (
|
|
12177
|
-
...
|
|
12173
|
+
id: y.contentId,
|
|
12174
|
+
"data-state": y.open ? "open" : "closed",
|
|
12175
|
+
dir: y.dir,
|
|
12176
|
+
onContextMenu: (I) => I.preventDefault(),
|
|
12177
|
+
...x,
|
|
12178
12178
|
...le,
|
|
12179
|
-
onPlaced: () =>
|
|
12179
|
+
onPlaced: () => B(!0),
|
|
12180
12180
|
ref: P,
|
|
12181
12181
|
style: {
|
|
12182
12182
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -12184,17 +12184,17 @@ var Ye = 10, [Gd, jt] = cn(Lt), tC = "SelectContentImpl", Yd = u.forwardRef(
|
|
|
12184
12184
|
flexDirection: "column",
|
|
12185
12185
|
// reset the outline by default as the content MAY get focused
|
|
12186
12186
|
outline: "none",
|
|
12187
|
-
...
|
|
12187
|
+
...x.style
|
|
12188
12188
|
},
|
|
12189
|
-
onKeyDown:
|
|
12190
|
-
const re =
|
|
12191
|
-
if (
|
|
12192
|
-
let
|
|
12193
|
-
if (["ArrowUp", "End"].includes(
|
|
12194
|
-
const ne =
|
|
12195
|
-
|
|
12189
|
+
onKeyDown: D(x.onKeyDown, (I) => {
|
|
12190
|
+
const re = I.ctrlKey || I.altKey || I.metaKey;
|
|
12191
|
+
if (I.key === "Tab" && I.preventDefault(), !re && I.key.length === 1 && X(I.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(I.key)) {
|
|
12192
|
+
let ee = j().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
|
|
12193
|
+
if (["ArrowUp", "End"].includes(I.key) && (ee = ee.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(I.key)) {
|
|
12194
|
+
const ne = I.target, se = ee.indexOf(ne);
|
|
12195
|
+
ee = ee.slice(se + 1);
|
|
12196
12196
|
}
|
|
12197
|
-
setTimeout(() =>
|
|
12197
|
+
setTimeout(() => L(ee)), I.preventDefault();
|
|
12198
12198
|
}
|
|
12199
12199
|
})
|
|
12200
12200
|
}
|
|
@@ -12209,11 +12209,11 @@ var Ye = 10, [Gd, jt] = cn(Lt), tC = "SelectContentImpl", Yd = u.forwardRef(
|
|
|
12209
12209
|
);
|
|
12210
12210
|
Yd.displayName = tC;
|
|
12211
12211
|
var nC = "SelectItemAlignedPosition", Ud = u.forwardRef((e, t) => {
|
|
12212
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = kt(Lt, n), s = jt(Lt, n), [i, l] = u.useState(null), [d, f] = u.useState(null), p = Z(t, (P) => f(P)), v = Ir(n), m = u.useRef(!1), g = u.useRef(!0), { viewport: h, selectedItem: b, selectedItemText:
|
|
12213
|
-
if (a.trigger && a.valueNode && i && d && h && b &&
|
|
12214
|
-
const P = a.trigger.getBoundingClientRect(), A = d.getBoundingClientRect(), k = a.valueNode.getBoundingClientRect(),
|
|
12212
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = kt(Lt, n), s = jt(Lt, n), [i, l] = u.useState(null), [d, f] = u.useState(null), p = Z(t, (P) => f(P)), v = Ir(n), m = u.useRef(!1), g = u.useRef(!0), { viewport: h, selectedItem: b, selectedItemText: x, focusSelectedItem: y } = s, w = u.useCallback(() => {
|
|
12213
|
+
if (a.trigger && a.valueNode && i && d && h && b && x) {
|
|
12214
|
+
const P = a.trigger.getBoundingClientRect(), A = d.getBoundingClientRect(), k = a.valueNode.getBoundingClientRect(), $ = x.getBoundingClientRect();
|
|
12215
12215
|
if (a.dir !== "rtl") {
|
|
12216
|
-
const ne =
|
|
12216
|
+
const ne = $.left - A.left, se = k.left - ne, we = P.left - se, ge = P.width + we, Te = Math.max(ge, A.width), $e = window.innerWidth - Ye, Ee = qs(se, [
|
|
12217
12217
|
Ye,
|
|
12218
12218
|
// Prevents the content from going off the starting edge of the
|
|
12219
12219
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -12224,20 +12224,20 @@ var nC = "SelectItemAlignedPosition", Ud = u.forwardRef((e, t) => {
|
|
|
12224
12224
|
]);
|
|
12225
12225
|
i.style.minWidth = ge + "px", i.style.left = Ee + "px";
|
|
12226
12226
|
} else {
|
|
12227
|
-
const ne = A.right -
|
|
12227
|
+
const ne = A.right - $.right, se = window.innerWidth - k.right - ne, we = window.innerWidth - P.right - se, ge = P.width + we, Te = Math.max(ge, A.width), $e = window.innerWidth - Ye, Ee = qs(se, [
|
|
12228
12228
|
Ye,
|
|
12229
12229
|
Math.max(Ye, $e - Te)
|
|
12230
12230
|
]);
|
|
12231
12231
|
i.style.minWidth = ge + "px", i.style.right = Ee + "px";
|
|
12232
12232
|
}
|
|
12233
|
-
const z = v(),
|
|
12233
|
+
const z = v(), j = window.innerHeight - Ye * 2, V = h.scrollHeight, B = window.getComputedStyle(d), Q = parseInt(B.borderTopWidth, 10), L = parseInt(B.paddingTop, 10), H = parseInt(B.borderBottomWidth, 10), F = parseInt(B.paddingBottom, 10), S = Q + L + V + F + H, G = Math.min(b.offsetHeight * 5, S), X = window.getComputedStyle(h), U = parseInt(X.paddingTop, 10), Y = parseInt(X.paddingBottom, 10), K = P.top + P.height / 2 - Ye, ie = j - K, le = b.offsetHeight / 2, I = b.offsetTop + le, re = Q + L + I, oe = S - re;
|
|
12234
12234
|
if (re <= K) {
|
|
12235
12235
|
const ne = z.length > 0 && b === z[z.length - 1].ref.current;
|
|
12236
12236
|
i.style.bottom = "0px";
|
|
12237
12237
|
const se = d.clientHeight - h.offsetTop - h.offsetHeight, we = Math.max(
|
|
12238
12238
|
ie,
|
|
12239
12239
|
le + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
12240
|
-
(ne ?
|
|
12240
|
+
(ne ? Y : 0) + se + H
|
|
12241
12241
|
), ge = re + we;
|
|
12242
12242
|
i.style.height = ge + "px";
|
|
12243
12243
|
} else {
|
|
@@ -12245,12 +12245,12 @@ var nC = "SelectItemAlignedPosition", Ud = u.forwardRef((e, t) => {
|
|
|
12245
12245
|
i.style.top = "0px";
|
|
12246
12246
|
const we = Math.max(
|
|
12247
12247
|
K,
|
|
12248
|
-
|
|
12248
|
+
Q + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
12249
12249
|
(ne ? U : 0) + le
|
|
12250
12250
|
) + oe;
|
|
12251
12251
|
i.style.height = we + "px", h.scrollTop = re - K + h.offsetTop;
|
|
12252
12252
|
}
|
|
12253
|
-
i.style.margin = `${Ye}px 0`, i.style.minHeight =
|
|
12253
|
+
i.style.margin = `${Ye}px 0`, i.style.minHeight = G + "px", i.style.maxHeight = j + "px", r == null || r(), requestAnimationFrame(() => m.current = !0);
|
|
12254
12254
|
}
|
|
12255
12255
|
}, [
|
|
12256
12256
|
v,
|
|
@@ -12260,7 +12260,7 @@ var nC = "SelectItemAlignedPosition", Ud = u.forwardRef((e, t) => {
|
|
|
12260
12260
|
d,
|
|
12261
12261
|
h,
|
|
12262
12262
|
b,
|
|
12263
|
-
|
|
12263
|
+
x,
|
|
12264
12264
|
a.dir,
|
|
12265
12265
|
r
|
|
12266
12266
|
]);
|
|
@@ -12271,9 +12271,9 @@ var nC = "SelectItemAlignedPosition", Ud = u.forwardRef((e, t) => {
|
|
|
12271
12271
|
}, [d]);
|
|
12272
12272
|
const R = u.useCallback(
|
|
12273
12273
|
(P) => {
|
|
12274
|
-
P && g.current === !0 && (w(),
|
|
12274
|
+
P && g.current === !0 && (w(), y == null || y(), g.current = !1);
|
|
12275
12275
|
},
|
|
12276
|
-
[w,
|
|
12276
|
+
[w, y]
|
|
12277
12277
|
);
|
|
12278
12278
|
return /* @__PURE__ */ c.jsx(
|
|
12279
12279
|
oC,
|
|
@@ -12375,14 +12375,14 @@ var [oC, Wa] = cn(Lt, {}), Eo = "SelectViewport", Kd = u.forwardRef(
|
|
|
12375
12375
|
overflow: "hidden auto",
|
|
12376
12376
|
...o.style
|
|
12377
12377
|
},
|
|
12378
|
-
onScroll:
|
|
12378
|
+
onScroll: D(o.onScroll, (d) => {
|
|
12379
12379
|
const f = d.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: v } = s;
|
|
12380
12380
|
if (v != null && v.current && p) {
|
|
12381
12381
|
const m = Math.abs(l.current - f.scrollTop);
|
|
12382
12382
|
if (m > 0) {
|
|
12383
|
-
const g = window.innerHeight - Ye * 2, h = parseFloat(p.style.minHeight), b = parseFloat(p.style.height),
|
|
12384
|
-
if (
|
|
12385
|
-
const
|
|
12383
|
+
const g = window.innerHeight - Ye * 2, h = parseFloat(p.style.minHeight), b = parseFloat(p.style.height), x = Math.max(h, b);
|
|
12384
|
+
if (x < g) {
|
|
12385
|
+
const y = x + m, w = Math.min(g, y), N = y - w;
|
|
12386
12386
|
p.style.height = w + "px", p.style.bottom === "0px" && (f.scrollTop = N > 0 ? N : 0, p.style.justifyContent = "flex-end");
|
|
12387
12387
|
}
|
|
12388
12388
|
}
|
|
@@ -12419,11 +12419,11 @@ var lr = "SelectItem", [iC, Jd] = cn(lr), ef = u.forwardRef(
|
|
|
12419
12419
|
...s
|
|
12420
12420
|
} = e, i = kt(lr, n), l = jt(lr, n), d = i.value === r, [f, p] = u.useState(a ?? ""), [v, m] = u.useState(!1), g = Z(
|
|
12421
12421
|
t,
|
|
12422
|
-
(
|
|
12422
|
+
(y) => {
|
|
12423
12423
|
var w;
|
|
12424
|
-
return (w = l.itemRefCallback) == null ? void 0 : w.call(l,
|
|
12424
|
+
return (w = l.itemRefCallback) == null ? void 0 : w.call(l, y, r, o);
|
|
12425
12425
|
}
|
|
12426
|
-
), h = Pe(), b = u.useRef("touch"),
|
|
12426
|
+
), h = Pe(), b = u.useRef("touch"), x = () => {
|
|
12427
12427
|
o || (i.onValueChange(r), i.onOpenChange(!1));
|
|
12428
12428
|
};
|
|
12429
12429
|
if (r === "")
|
|
@@ -12438,8 +12438,8 @@ var lr = "SelectItem", [iC, Jd] = cn(lr), ef = u.forwardRef(
|
|
|
12438
12438
|
disabled: o,
|
|
12439
12439
|
textId: h,
|
|
12440
12440
|
isSelected: d,
|
|
12441
|
-
onItemTextChange: u.useCallback((
|
|
12442
|
-
p((w) => w || ((
|
|
12441
|
+
onItemTextChange: u.useCallback((y) => {
|
|
12442
|
+
p((w) => w || ((y == null ? void 0 : y.textContent) ?? "").trim());
|
|
12443
12443
|
}, []),
|
|
12444
12444
|
children: /* @__PURE__ */ c.jsx(
|
|
12445
12445
|
Dr.ItemSlot,
|
|
@@ -12461,28 +12461,28 @@ var lr = "SelectItem", [iC, Jd] = cn(lr), ef = u.forwardRef(
|
|
|
12461
12461
|
tabIndex: o ? void 0 : -1,
|
|
12462
12462
|
...s,
|
|
12463
12463
|
ref: g,
|
|
12464
|
-
onFocus:
|
|
12465
|
-
onBlur:
|
|
12466
|
-
onClick:
|
|
12467
|
-
b.current !== "mouse" &&
|
|
12464
|
+
onFocus: D(s.onFocus, () => m(!0)),
|
|
12465
|
+
onBlur: D(s.onBlur, () => m(!1)),
|
|
12466
|
+
onClick: D(s.onClick, () => {
|
|
12467
|
+
b.current !== "mouse" && x();
|
|
12468
12468
|
}),
|
|
12469
|
-
onPointerUp:
|
|
12470
|
-
b.current === "mouse" &&
|
|
12469
|
+
onPointerUp: D(s.onPointerUp, () => {
|
|
12470
|
+
b.current === "mouse" && x();
|
|
12471
12471
|
}),
|
|
12472
|
-
onPointerDown:
|
|
12473
|
-
b.current =
|
|
12472
|
+
onPointerDown: D(s.onPointerDown, (y) => {
|
|
12473
|
+
b.current = y.pointerType;
|
|
12474
12474
|
}),
|
|
12475
|
-
onPointerMove:
|
|
12475
|
+
onPointerMove: D(s.onPointerMove, (y) => {
|
|
12476
12476
|
var w;
|
|
12477
|
-
b.current =
|
|
12477
|
+
b.current = y.pointerType, o ? (w = l.onItemLeave) == null || w.call(l) : b.current === "mouse" && y.currentTarget.focus({ preventScroll: !0 });
|
|
12478
12478
|
}),
|
|
12479
|
-
onPointerLeave:
|
|
12479
|
+
onPointerLeave: D(s.onPointerLeave, (y) => {
|
|
12480
12480
|
var w;
|
|
12481
|
-
|
|
12481
|
+
y.currentTarget === document.activeElement && ((w = l.onItemLeave) == null || w.call(l));
|
|
12482
12482
|
}),
|
|
12483
|
-
onKeyDown:
|
|
12483
|
+
onKeyDown: D(s.onKeyDown, (y) => {
|
|
12484
12484
|
var N;
|
|
12485
|
-
((N = l.searchRef) == null ? void 0 : N.current) !== "" &&
|
|
12485
|
+
((N = l.searchRef) == null ? void 0 : N.current) !== "" && y.key === " " || (q0.includes(y.key) && x(), y.key === " " && y.preventDefault());
|
|
12486
12486
|
})
|
|
12487
12487
|
}
|
|
12488
12488
|
)
|
|
@@ -12497,11 +12497,11 @@ var gn = "SelectItemText", tf = u.forwardRef(
|
|
|
12497
12497
|
(e, t) => {
|
|
12498
12498
|
const { __scopeSelect: n, className: r, style: o, ...a } = e, s = kt(gn, n), i = jt(gn, n), l = Jd(gn, n), d = J0(gn, n), [f, p] = u.useState(null), v = Z(
|
|
12499
12499
|
t,
|
|
12500
|
-
(
|
|
12500
|
+
(x) => p(x),
|
|
12501
12501
|
l.onItemTextChange,
|
|
12502
|
-
(
|
|
12503
|
-
var
|
|
12504
|
-
return (
|
|
12502
|
+
(x) => {
|
|
12503
|
+
var y;
|
|
12504
|
+
return (y = i.itemTextRefCallback) == null ? void 0 : y.call(i, x, l.value, l.disabled);
|
|
12505
12505
|
}
|
|
12506
12506
|
), m = f == null ? void 0 : f.textContent, g = u.useMemo(
|
|
12507
12507
|
() => /* @__PURE__ */ c.jsx("option", { value: l.value, disabled: l.disabled, children: m }, l.value),
|
|
@@ -12584,14 +12584,14 @@ var sf = u.forwardRef((e, t) => {
|
|
|
12584
12584
|
...o,
|
|
12585
12585
|
ref: t,
|
|
12586
12586
|
style: { flexShrink: 0, ...o.style },
|
|
12587
|
-
onPointerDown:
|
|
12587
|
+
onPointerDown: D(o.onPointerDown, () => {
|
|
12588
12588
|
s.current === null && (s.current = window.setInterval(r, 50));
|
|
12589
12589
|
}),
|
|
12590
|
-
onPointerMove:
|
|
12590
|
+
onPointerMove: D(o.onPointerMove, () => {
|
|
12591
12591
|
var d;
|
|
12592
12592
|
(d = a.onItemLeave) == null || d.call(a), s.current === null && (s.current = window.setInterval(r, 50));
|
|
12593
12593
|
}),
|
|
12594
|
-
onPointerLeave:
|
|
12594
|
+
onPointerLeave: D(o.onPointerLeave, () => {
|
|
12595
12595
|
l();
|
|
12596
12596
|
})
|
|
12597
12597
|
}
|
|
@@ -12818,27 +12818,27 @@ var za = "Switch", [EC, gE] = ye(za), [RC, PC] = EC(za), Ef = u.forwardRef(
|
|
|
12818
12818
|
onCheckedChange: d,
|
|
12819
12819
|
form: f,
|
|
12820
12820
|
...p
|
|
12821
|
-
} = e, [v, m] = u.useState(null), g = Z(t, (w) => m(w)), h = u.useRef(!1), b = v ? f || !!v.closest("form") : !0, [
|
|
12821
|
+
} = e, [v, m] = u.useState(null), g = Z(t, (w) => m(w)), h = u.useRef(!1), b = v ? f || !!v.closest("form") : !0, [x = !1, y] = Ce({
|
|
12822
12822
|
prop: o,
|
|
12823
12823
|
defaultProp: a,
|
|
12824
12824
|
onChange: d
|
|
12825
12825
|
});
|
|
12826
|
-
return /* @__PURE__ */ c.jsxs(RC, { scope: n, checked:
|
|
12826
|
+
return /* @__PURE__ */ c.jsxs(RC, { scope: n, checked: x, disabled: i, children: [
|
|
12827
12827
|
/* @__PURE__ */ c.jsx(
|
|
12828
12828
|
O.button,
|
|
12829
12829
|
{
|
|
12830
12830
|
type: "button",
|
|
12831
12831
|
role: "switch",
|
|
12832
|
-
"aria-checked":
|
|
12832
|
+
"aria-checked": x,
|
|
12833
12833
|
"aria-required": s,
|
|
12834
|
-
"data-state": Sf(
|
|
12834
|
+
"data-state": Sf(x),
|
|
12835
12835
|
"data-disabled": i ? "" : void 0,
|
|
12836
12836
|
disabled: i,
|
|
12837
12837
|
value: l,
|
|
12838
12838
|
...p,
|
|
12839
12839
|
ref: g,
|
|
12840
|
-
onClick:
|
|
12841
|
-
|
|
12840
|
+
onClick: D(e.onClick, (w) => {
|
|
12841
|
+
y((N) => !N), b && (h.current = w.isPropagationStopped(), h.current || w.stopPropagation());
|
|
12842
12842
|
})
|
|
12843
12843
|
}
|
|
12844
12844
|
),
|
|
@@ -12849,7 +12849,7 @@ var za = "Switch", [EC, gE] = ye(za), [RC, PC] = EC(za), Ef = u.forwardRef(
|
|
|
12849
12849
|
bubbles: !h.current,
|
|
12850
12850
|
name: r,
|
|
12851
12851
|
value: l,
|
|
12852
|
-
checked:
|
|
12852
|
+
checked: x,
|
|
12853
12853
|
required: s,
|
|
12854
12854
|
disabled: i,
|
|
12855
12855
|
form: f,
|
|
@@ -13086,13 +13086,13 @@ var Df = "TabsTrigger", If = u.forwardRef(
|
|
|
13086
13086
|
id: l,
|
|
13087
13087
|
...a,
|
|
13088
13088
|
ref: t,
|
|
13089
|
-
onMouseDown:
|
|
13089
|
+
onMouseDown: D(e.onMouseDown, (p) => {
|
|
13090
13090
|
!o && p.button === 0 && p.ctrlKey === !1 ? s.onValueChange(r) : p.preventDefault();
|
|
13091
13091
|
}),
|
|
13092
|
-
onKeyDown:
|
|
13092
|
+
onKeyDown: D(e.onKeyDown, (p) => {
|
|
13093
13093
|
[" ", "Enter"].includes(p.key) && s.onValueChange(r);
|
|
13094
13094
|
}),
|
|
13095
|
-
onFocus:
|
|
13095
|
+
onFocus: D(e.onFocus, () => {
|
|
13096
13096
|
const p = s.activationMode !== "manual";
|
|
13097
13097
|
!f && !o && p && s.onValueChange(r);
|
|
13098
13098
|
})
|
|
@@ -13275,80 +13275,80 @@ function f1(...e) {
|
|
|
13275
13275
|
}
|
|
13276
13276
|
var m1 = (e) => {
|
|
13277
13277
|
var t, n, r, o, a, s, i, l, d, f, p;
|
|
13278
|
-
let { invert: v, toast: m, unstyled: g, interacting: h, setHeights: b, visibleToasts:
|
|
13279
|
-
var
|
|
13280
|
-
return (
|
|
13278
|
+
let { invert: v, toast: m, unstyled: g, interacting: h, setHeights: b, visibleToasts: x, heights: y, index: w, toasts: N, expanded: E, removeToast: R, defaultRichColors: P, closeButton: A, style: k, cancelButtonStyle: $, actionButtonStyle: z, className: j = "", descriptionClassName: V = "", duration: B, position: Q, gap: L, loadingIcon: H, expandByDefault: F, classNames: S, icons: G, closeButtonAriaLabel: X = "Close toast", pauseWhenPageIsHidden: U, cn: Y } = e, [K, ie] = M.useState(!1), [le, I] = M.useState(!1), [re, oe] = M.useState(!1), [ee, ne] = M.useState(!1), [se, we] = M.useState(!1), [ge, Te] = M.useState(0), [$e, Ee] = M.useState(0), Ie = M.useRef(m.duration || B || Zs), Ae = M.useRef(null), it = M.useRef(null), C = w === 0, W = w + 1 <= x, _ = m.type, ae = m.dismissible !== !1, Re = m.className || "", me = m.descriptionClassName || "", q = M.useMemo(() => y.findIndex((J) => J.toastId === m.id) || 0, [y, m.id]), Ve = M.useMemo(() => {
|
|
13279
|
+
var J;
|
|
13280
|
+
return (J = m.closeButton) != null ? J : A;
|
|
13281
13281
|
}, [m.closeButton, A]);
|
|
13282
|
-
M.useMemo(() => m.duration ||
|
|
13283
|
-
let Ze = M.useRef(0), ve = M.useRef(0), Qe = M.useRef(0), Je = M.useRef(null), [He, Bt] =
|
|
13284
|
-
ve.current = M.useMemo(() => q *
|
|
13282
|
+
M.useMemo(() => m.duration || B || Zs, [m.duration, B]);
|
|
13283
|
+
let Ze = M.useRef(0), ve = M.useRef(0), Qe = M.useRef(0), Je = M.useRef(null), [He, Bt] = Q.split("-"), Fe = M.useMemo(() => y.reduce((J, ue, he) => he >= q ? J : J + ue.height, 0), [y, q]), Xa = JC(), fm = m.invert || v, Fr = _ === "loading";
|
|
13284
|
+
ve.current = M.useMemo(() => q * L + Fe, [q, Fe]), M.useEffect(() => {
|
|
13285
13285
|
ie(!0);
|
|
13286
13286
|
}, []), M.useEffect(() => {
|
|
13287
|
-
let
|
|
13288
|
-
if (
|
|
13289
|
-
let ue =
|
|
13287
|
+
let J = it.current;
|
|
13288
|
+
if (J) {
|
|
13289
|
+
let ue = J.getBoundingClientRect().height;
|
|
13290
13290
|
return Ee(ue), b((he) => [{ toastId: m.id, height: ue, position: m.position }, ...he]), () => b((he) => he.filter((Ge) => Ge.toastId !== m.id));
|
|
13291
13291
|
}
|
|
13292
13292
|
}, [b, m.id]), M.useLayoutEffect(() => {
|
|
13293
13293
|
if (!K) return;
|
|
13294
|
-
let
|
|
13295
|
-
|
|
13296
|
-
let he =
|
|
13297
|
-
|
|
13294
|
+
let J = it.current, ue = J.style.height;
|
|
13295
|
+
J.style.height = "auto";
|
|
13296
|
+
let he = J.getBoundingClientRect().height;
|
|
13297
|
+
J.style.height = ue, Ee(he), b((Ge) => Ge.find((et) => et.toastId === m.id) ? Ge.map((et) => et.toastId === m.id ? { ...et, height: he } : et) : [{ toastId: m.id, height: he, position: m.position }, ...Ge]);
|
|
13298
13298
|
}, [K, m.title, m.description, b, m.id]);
|
|
13299
13299
|
let pt = M.useCallback(() => {
|
|
13300
|
-
|
|
13300
|
+
I(!0), Te(ve.current), b((J) => J.filter((ue) => ue.toastId !== m.id)), setTimeout(() => {
|
|
13301
13301
|
R(m);
|
|
13302
13302
|
}, d1);
|
|
13303
13303
|
}, [m, R, b, ve]);
|
|
13304
13304
|
M.useEffect(() => {
|
|
13305
13305
|
if (m.promise && _ === "loading" || m.duration === 1 / 0 || m.type === "loading") return;
|
|
13306
|
-
let
|
|
13306
|
+
let J;
|
|
13307
13307
|
return E || h || U && Xa ? (() => {
|
|
13308
13308
|
if (Qe.current < Ze.current) {
|
|
13309
13309
|
let ue = (/* @__PURE__ */ new Date()).getTime() - Ze.current;
|
|
13310
13310
|
Ie.current = Ie.current - ue;
|
|
13311
13311
|
}
|
|
13312
13312
|
Qe.current = (/* @__PURE__ */ new Date()).getTime();
|
|
13313
|
-
})() : Ie.current !== 1 / 0 && (Ze.current = (/* @__PURE__ */ new Date()).getTime(),
|
|
13313
|
+
})() : Ie.current !== 1 / 0 && (Ze.current = (/* @__PURE__ */ new Date()).getTime(), J = setTimeout(() => {
|
|
13314
13314
|
var ue;
|
|
13315
13315
|
(ue = m.onAutoClose) == null || ue.call(m, m), pt();
|
|
13316
|
-
}, Ie.current)), () => clearTimeout(
|
|
13316
|
+
}, Ie.current)), () => clearTimeout(J);
|
|
13317
13317
|
}, [E, h, m, _, U, Xa, pt]), M.useEffect(() => {
|
|
13318
13318
|
m.delete && pt();
|
|
13319
13319
|
}, [pt, m.delete]);
|
|
13320
13320
|
function mm() {
|
|
13321
|
-
var
|
|
13322
|
-
return
|
|
13321
|
+
var J, ue, he;
|
|
13322
|
+
return G != null && G.loading ? M.createElement("div", { className: Y(S == null ? void 0 : S.loader, (J = m == null ? void 0 : m.classNames) == null ? void 0 : J.loader, "sonner-loader"), "data-visible": _ === "loading" }, G.loading) : H ? M.createElement("div", { className: Y(S == null ? void 0 : S.loader, (ue = m == null ? void 0 : m.classNames) == null ? void 0 : ue.loader, "sonner-loader"), "data-visible": _ === "loading" }, H) : M.createElement(UC, { className: Y(S == null ? void 0 : S.loader, (he = m == null ? void 0 : m.classNames) == null ? void 0 : he.loader), visible: _ === "loading" });
|
|
13323
13323
|
}
|
|
13324
|
-
return M.createElement("li", { tabIndex: 0, ref: it, className:
|
|
13325
|
-
Fr || !ae || (Ae.current = /* @__PURE__ */ new Date(), Te(ve.current),
|
|
13324
|
+
return M.createElement("li", { tabIndex: 0, ref: it, className: Y(j, Re, S == null ? void 0 : S.toast, (t = m == null ? void 0 : m.classNames) == null ? void 0 : t.toast, S == null ? void 0 : S.default, S == null ? void 0 : S[_], (n = m == null ? void 0 : m.classNames) == null ? void 0 : n[_]), "data-sonner-toast": "", "data-rich-colors": (r = m.richColors) != null ? r : P, "data-styled": !(m.jsx || m.unstyled || g), "data-mounted": K, "data-promise": !!m.promise, "data-swiped": se, "data-removed": le, "data-visible": W, "data-y-position": He, "data-x-position": Bt, "data-index": w, "data-front": C, "data-swiping": re, "data-dismissible": ae, "data-type": _, "data-invert": fm, "data-swipe-out": ee, "data-expanded": !!(E || F && K), style: { "--index": w, "--toasts-before": w, "--z-index": N.length - w, "--offset": `${le ? ge : ve.current}px`, "--initial-height": F ? "auto" : `${$e}px`, ...k, ...m.style }, onPointerDown: (J) => {
|
|
13325
|
+
Fr || !ae || (Ae.current = /* @__PURE__ */ new Date(), Te(ve.current), J.target.setPointerCapture(J.pointerId), J.target.tagName !== "BUTTON" && (oe(!0), Je.current = { x: J.clientX, y: J.clientY }));
|
|
13326
13326
|
}, onPointerUp: () => {
|
|
13327
|
-
var
|
|
13328
|
-
if (
|
|
13327
|
+
var J, ue, he, Ge;
|
|
13328
|
+
if (ee || !ae) return;
|
|
13329
13329
|
Je.current = null;
|
|
13330
|
-
let et = Number(((
|
|
13330
|
+
let et = Number(((J = it.current) == null ? void 0 : J.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), Ln = (/* @__PURE__ */ new Date()).getTime() - ((ue = Ae.current) == null ? void 0 : ue.getTime()), pm = Math.abs(et) / Ln;
|
|
13331
13331
|
if (Math.abs(et) >= u1 || pm > 0.11) {
|
|
13332
13332
|
Te(ve.current), (he = m.onDismiss) == null || he.call(m, m), pt(), ne(!0), we(!1);
|
|
13333
13333
|
return;
|
|
13334
13334
|
}
|
|
13335
13335
|
(Ge = it.current) == null || Ge.style.setProperty("--swipe-amount", "0px"), oe(!1);
|
|
13336
|
-
}, onPointerMove: (
|
|
13336
|
+
}, onPointerMove: (J) => {
|
|
13337
13337
|
var ue, he;
|
|
13338
13338
|
if (!Je.current || !ae) return;
|
|
13339
|
-
let Ge =
|
|
13339
|
+
let Ge = J.clientY - Je.current.y, et = ((ue = window.getSelection()) == null ? void 0 : ue.toString().length) > 0, Ln = He === "top" ? Math.min(0, Ge) : Math.max(0, Ge);
|
|
13340
13340
|
Math.abs(Ln) > 0 && we(!0), !et && ((he = it.current) == null || he.style.setProperty("--swipe-amount", `${Ln}px`));
|
|
13341
13341
|
} }, Ve && !m.jsx ? M.createElement("button", { "aria-label": X, "data-disabled": Fr, "data-close-button": !0, onClick: Fr || !ae ? () => {
|
|
13342
13342
|
} : () => {
|
|
13343
|
-
var
|
|
13344
|
-
pt(), (
|
|
13345
|
-
}, className:
|
|
13343
|
+
var J;
|
|
13344
|
+
pt(), (J = m.onDismiss) == null || J.call(m, m);
|
|
13345
|
+
}, className: Y(S == null ? void 0 : S.closeButton, (o = m == null ? void 0 : m.classNames) == null ? void 0 : o.closeButton) }, (a = G == null ? void 0 : G.close) != null ? a : QC) : null, m.jsx || M.isValidElement(m.title) ? m.jsx ? m.jsx : typeof m.title == "function" ? m.title() : m.title : M.createElement(M.Fragment, null, _ || m.icon || m.promise ? M.createElement("div", { "data-icon": "", className: Y(S == null ? void 0 : S.icon, (s = m == null ? void 0 : m.classNames) == null ? void 0 : s.icon) }, m.promise || m.type === "loading" && !m.icon ? m.icon || mm() : null, m.type !== "loading" ? m.icon || (G == null ? void 0 : G[_]) || GC(_) : null) : null, M.createElement("div", { "data-content": "", className: Y(S == null ? void 0 : S.content, (i = m == null ? void 0 : m.classNames) == null ? void 0 : i.content) }, M.createElement("div", { "data-title": "", className: Y(S == null ? void 0 : S.title, (l = m == null ? void 0 : m.classNames) == null ? void 0 : l.title) }, typeof m.title == "function" ? m.title() : m.title), m.description ? M.createElement("div", { "data-description": "", className: Y(V, me, S == null ? void 0 : S.description, (d = m == null ? void 0 : m.classNames) == null ? void 0 : d.description) }, typeof m.description == "function" ? m.description() : m.description) : null), M.isValidElement(m.cancel) ? m.cancel : m.cancel && Gn(m.cancel) ? M.createElement("button", { "data-button": !0, "data-cancel": !0, style: m.cancelButtonStyle || $, onClick: (J) => {
|
|
13346
13346
|
var ue, he;
|
|
13347
|
-
Gn(m.cancel) && ae && ((he = (ue = m.cancel).onClick) == null || he.call(ue,
|
|
13348
|
-
}, className:
|
|
13347
|
+
Gn(m.cancel) && ae && ((he = (ue = m.cancel).onClick) == null || he.call(ue, J), pt());
|
|
13348
|
+
}, className: Y(S == null ? void 0 : S.cancelButton, (f = m == null ? void 0 : m.classNames) == null ? void 0 : f.cancelButton) }, m.cancel.label) : null, M.isValidElement(m.action) ? m.action : m.action && Gn(m.action) ? M.createElement("button", { "data-button": !0, "data-action": !0, style: m.actionButtonStyle || z, onClick: (J) => {
|
|
13349
13349
|
var ue, he;
|
|
13350
|
-
Gn(m.action) && ((he = (ue = m.action).onClick) == null || he.call(ue,
|
|
13351
|
-
}, className:
|
|
13350
|
+
Gn(m.action) && ((he = (ue = m.action).onClick) == null || he.call(ue, J), !J.defaultPrevented && pt());
|
|
13351
|
+
}, className: Y(S == null ? void 0 : S.actionButton, (p = m == null ? void 0 : m.classNames) == null ? void 0 : p.actionButton) }, m.action.label) : null));
|
|
13352
13352
|
};
|
|
13353
13353
|
function Qs() {
|
|
13354
13354
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
@@ -13356,71 +13356,71 @@ function Qs() {
|
|
|
13356
13356
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
13357
13357
|
}
|
|
13358
13358
|
var p1 = jo(function(e, t) {
|
|
13359
|
-
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: s, className: i, offset: l, theme: d = "light", richColors: f, duration: p, style: v, visibleToasts: m = s1, toastOptions: g, dir: h = Qs(), gap: b = l1, loadingIcon:
|
|
13360
|
-
P((
|
|
13359
|
+
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: s, className: i, offset: l, theme: d = "light", richColors: f, duration: p, style: v, visibleToasts: m = s1, toastOptions: g, dir: h = Qs(), gap: b = l1, loadingIcon: x, icons: y, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: N, cn: E = f1 } = e, [R, P] = M.useState([]), A = M.useMemo(() => Array.from(new Set([r].concat(R.filter((U) => U.position).map((U) => U.position)))), [R, r]), [k, $] = M.useState([]), [z, j] = M.useState(!1), [V, B] = M.useState(!1), [Q, L] = M.useState(d !== "system" ? d : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), H = M.useRef(null), F = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = M.useRef(null), G = M.useRef(!1), X = M.useCallback((U) => {
|
|
13360
|
+
P((Y) => {
|
|
13361
13361
|
var K;
|
|
13362
|
-
return (K =
|
|
13362
|
+
return (K = Y.find((ie) => ie.id === U.id)) != null && K.delete || _e.dismiss(U.id), Y.filter(({ id: ie }) => ie !== U.id);
|
|
13363
13363
|
});
|
|
13364
13364
|
}, []);
|
|
13365
13365
|
return M.useEffect(() => _e.subscribe((U) => {
|
|
13366
13366
|
if (U.dismiss) {
|
|
13367
|
-
P((
|
|
13367
|
+
P((Y) => Y.map((K) => K.id === U.id ? { ...K, delete: !0 } : K));
|
|
13368
13368
|
return;
|
|
13369
13369
|
}
|
|
13370
13370
|
setTimeout(() => {
|
|
13371
13371
|
Do.flushSync(() => {
|
|
13372
|
-
P((
|
|
13373
|
-
let K =
|
|
13374
|
-
return K !== -1 ? [...
|
|
13372
|
+
P((Y) => {
|
|
13373
|
+
let K = Y.findIndex((ie) => ie.id === U.id);
|
|
13374
|
+
return K !== -1 ? [...Y.slice(0, K), { ...Y[K], ...U }, ...Y.slice(K + 1)] : [U, ...Y];
|
|
13375
13375
|
});
|
|
13376
13376
|
});
|
|
13377
13377
|
});
|
|
13378
13378
|
}), []), M.useEffect(() => {
|
|
13379
13379
|
if (d !== "system") {
|
|
13380
|
-
|
|
13380
|
+
L(d);
|
|
13381
13381
|
return;
|
|
13382
13382
|
}
|
|
13383
|
-
if (d === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ?
|
|
13383
|
+
if (d === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? L("dark") : L("light")), typeof window > "u") return;
|
|
13384
13384
|
let U = window.matchMedia("(prefers-color-scheme: dark)");
|
|
13385
13385
|
try {
|
|
13386
|
-
U.addEventListener("change", ({ matches:
|
|
13387
|
-
|
|
13386
|
+
U.addEventListener("change", ({ matches: Y }) => {
|
|
13387
|
+
L(Y ? "dark" : "light");
|
|
13388
13388
|
});
|
|
13389
13389
|
} catch {
|
|
13390
13390
|
U.addListener(({ matches: K }) => {
|
|
13391
13391
|
try {
|
|
13392
|
-
|
|
13392
|
+
L(K ? "dark" : "light");
|
|
13393
13393
|
} catch (ie) {
|
|
13394
13394
|
console.error(ie);
|
|
13395
13395
|
}
|
|
13396
13396
|
});
|
|
13397
13397
|
}
|
|
13398
13398
|
}, [d]), M.useEffect(() => {
|
|
13399
|
-
R.length <= 1 &&
|
|
13399
|
+
R.length <= 1 && j(!1);
|
|
13400
13400
|
}, [R]), M.useEffect(() => {
|
|
13401
|
-
let U = (
|
|
13401
|
+
let U = (Y) => {
|
|
13402
13402
|
var K, ie;
|
|
13403
|
-
o.every((le) =>
|
|
13403
|
+
o.every((le) => Y[le] || Y.code === le) && (j(!0), (K = H.current) == null || K.focus()), Y.code === "Escape" && (document.activeElement === H.current || (ie = H.current) != null && ie.contains(document.activeElement)) && j(!1);
|
|
13404
13404
|
};
|
|
13405
13405
|
return document.addEventListener("keydown", U), () => document.removeEventListener("keydown", U);
|
|
13406
13406
|
}, [o]), M.useEffect(() => {
|
|
13407
|
-
if (
|
|
13408
|
-
S.current && (S.current.focus({ preventScroll: !0 }), S.current = null,
|
|
13407
|
+
if (H.current) return () => {
|
|
13408
|
+
S.current && (S.current.focus({ preventScroll: !0 }), S.current = null, G.current = !1);
|
|
13409
13409
|
};
|
|
13410
|
-
}, [
|
|
13410
|
+
}, [H.current]), M.createElement("section", { "aria-label": `${w} ${F}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false" }, A.map((U, Y) => {
|
|
13411
13411
|
var K;
|
|
13412
13412
|
let [ie, le] = U.split("-");
|
|
13413
|
-
return R.length ? M.createElement("ol", { key: U, dir: h === "auto" ? Qs() : h, tabIndex: -1, ref:
|
|
13414
|
-
|
|
13415
|
-
}, onFocus: (
|
|
13416
|
-
|
|
13417
|
-
}, onMouseEnter: () =>
|
|
13418
|
-
|
|
13419
|
-
}, onPointerDown: (
|
|
13420
|
-
|
|
13421
|
-
}, onPointerUp: () =>
|
|
13422
|
-
var oe,
|
|
13423
|
-
return M.createElement(m1, { key:
|
|
13413
|
+
return R.length ? M.createElement("ol", { key: U, dir: h === "auto" ? Qs() : h, tabIndex: -1, ref: H, className: i, "data-sonner-toaster": !0, "data-theme": Q, "data-y-position": ie, "data-lifted": z && R.length > 1 && !a, "data-x-position": le, style: { "--front-toast-height": `${((K = k[0]) == null ? void 0 : K.height) || 0}px`, "--offset": typeof l == "number" ? `${l}px` : l || i1, "--width": `${c1}px`, "--gap": `${b}px`, ...v }, onBlur: (I) => {
|
|
13414
|
+
G.current && !I.currentTarget.contains(I.relatedTarget) && (G.current = !1, S.current && (S.current.focus({ preventScroll: !0 }), S.current = null));
|
|
13415
|
+
}, onFocus: (I) => {
|
|
13416
|
+
I.target instanceof HTMLElement && I.target.dataset.dismissible === "false" || G.current || (G.current = !0, S.current = I.relatedTarget);
|
|
13417
|
+
}, onMouseEnter: () => j(!0), onMouseMove: () => j(!0), onMouseLeave: () => {
|
|
13418
|
+
V || j(!1);
|
|
13419
|
+
}, onPointerDown: (I) => {
|
|
13420
|
+
I.target instanceof HTMLElement && I.target.dataset.dismissible === "false" || B(!0);
|
|
13421
|
+
}, onPointerUp: () => B(!1) }, R.filter((I) => !I.position && Y === 0 || I.position === U).map((I, re) => {
|
|
13422
|
+
var oe, ee;
|
|
13423
|
+
return M.createElement(m1, { key: I.id, icons: y, index: re, toast: I, defaultRichColors: f, duration: (oe = g == null ? void 0 : g.duration) != null ? oe : p, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: n, visibleToasts: m, closeButton: (ee = g == null ? void 0 : g.closeButton) != null ? ee : s, interacting: V, position: U, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: X, toasts: R.filter((ne) => ne.position == I.position), heights: k.filter((ne) => ne.position == I.position), setHeights: $, expandByDefault: a, gap: b, loadingIcon: x, expanded: z, pauseWhenPageIsHidden: N, cn: E });
|
|
13424
13424
|
})) : null;
|
|
13425
13425
|
}));
|
|
13426
13426
|
});
|
|
@@ -13454,7 +13454,7 @@ var h1 = "Toggle", Ga = u.forwardRef((e, t) => {
|
|
|
13454
13454
|
"data-disabled": e.disabled ? "" : void 0,
|
|
13455
13455
|
...a,
|
|
13456
13456
|
ref: t,
|
|
13457
|
-
onClick:
|
|
13457
|
+
onClick: D(e.onClick, () => {
|
|
13458
13458
|
e.disabled || i(!s);
|
|
13459
13459
|
})
|
|
13460
13460
|
}
|
|
@@ -13694,21 +13694,21 @@ var $r = "Tooltip", [R1, On] = Or($r), tm = (e) => {
|
|
|
13694
13694
|
onOpenChange: a,
|
|
13695
13695
|
disableHoverableContent: s,
|
|
13696
13696
|
delayDuration: i
|
|
13697
|
-
} = e, l = Ua($r, e.__scopeTooltip), d = Lr(t), [f, p] = u.useState(null), v = Pe(), m = u.useRef(0), g = s ?? l.disableHoverableContent, h = i ?? l.delayDuration, b = u.useRef(!1), [
|
|
13697
|
+
} = e, l = Ua($r, e.__scopeTooltip), d = Lr(t), [f, p] = u.useState(null), v = Pe(), m = u.useRef(0), g = s ?? l.disableHoverableContent, h = i ?? l.delayDuration, b = u.useRef(!1), [x = !1, y] = Ce({
|
|
13698
13698
|
prop: r,
|
|
13699
13699
|
defaultProp: o,
|
|
13700
13700
|
onChange: (P) => {
|
|
13701
13701
|
P ? (l.onOpen(), document.dispatchEvent(new CustomEvent(To))) : l.onClose(), a == null || a(P);
|
|
13702
13702
|
}
|
|
13703
|
-
}), w = u.useMemo(() =>
|
|
13704
|
-
window.clearTimeout(m.current), m.current = 0, b.current = !1,
|
|
13705
|
-
}, [
|
|
13706
|
-
window.clearTimeout(m.current), m.current = 0,
|
|
13707
|
-
}, [
|
|
13703
|
+
}), w = u.useMemo(() => x ? b.current ? "delayed-open" : "instant-open" : "closed", [x]), N = u.useCallback(() => {
|
|
13704
|
+
window.clearTimeout(m.current), m.current = 0, b.current = !1, y(!0);
|
|
13705
|
+
}, [y]), E = u.useCallback(() => {
|
|
13706
|
+
window.clearTimeout(m.current), m.current = 0, y(!1);
|
|
13707
|
+
}, [y]), R = u.useCallback(() => {
|
|
13708
13708
|
window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
13709
|
-
b.current = !0,
|
|
13709
|
+
b.current = !0, y(!0), m.current = 0;
|
|
13710
13710
|
}, h);
|
|
13711
|
-
}, [h,
|
|
13711
|
+
}, [h, y]);
|
|
13712
13712
|
return u.useEffect(() => () => {
|
|
13713
13713
|
m.current && (window.clearTimeout(m.current), m.current = 0);
|
|
13714
13714
|
}, []), /* @__PURE__ */ c.jsx(Tn, { ...d, children: /* @__PURE__ */ c.jsx(
|
|
@@ -13716,7 +13716,7 @@ var $r = "Tooltip", [R1, On] = Or($r), tm = (e) => {
|
|
|
13716
13716
|
{
|
|
13717
13717
|
scope: t,
|
|
13718
13718
|
contentId: v,
|
|
13719
|
-
open:
|
|
13719
|
+
open: x,
|
|
13720
13720
|
stateAttribute: w,
|
|
13721
13721
|
trigger: f,
|
|
13722
13722
|
onTriggerChange: p,
|
|
@@ -13744,20 +13744,20 @@ var Ao = "TooltipTrigger", nm = u.forwardRef(
|
|
|
13744
13744
|
"data-state": o.stateAttribute,
|
|
13745
13745
|
...r,
|
|
13746
13746
|
ref: l,
|
|
13747
|
-
onPointerMove:
|
|
13747
|
+
onPointerMove: D(e.onPointerMove, (v) => {
|
|
13748
13748
|
v.pointerType !== "touch" && !f.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), f.current = !0);
|
|
13749
13749
|
}),
|
|
13750
|
-
onPointerLeave:
|
|
13750
|
+
onPointerLeave: D(e.onPointerLeave, () => {
|
|
13751
13751
|
o.onTriggerLeave(), f.current = !1;
|
|
13752
13752
|
}),
|
|
13753
|
-
onPointerDown:
|
|
13753
|
+
onPointerDown: D(e.onPointerDown, () => {
|
|
13754
13754
|
d.current = !0, document.addEventListener("pointerup", p, { once: !0 });
|
|
13755
13755
|
}),
|
|
13756
|
-
onFocus:
|
|
13756
|
+
onFocus: D(e.onFocus, () => {
|
|
13757
13757
|
d.current || o.onOpen();
|
|
13758
13758
|
}),
|
|
13759
|
-
onBlur:
|
|
13760
|
-
onClick:
|
|
13759
|
+
onBlur: D(e.onBlur, o.onClose),
|
|
13760
|
+
onClick: D(e.onClick, o.onClose)
|
|
13761
13761
|
}
|
|
13762
13762
|
) });
|
|
13763
13763
|
}
|
|
@@ -13780,7 +13780,7 @@ var en = "TooltipContent", om = u.forwardRef(
|
|
|
13780
13780
|
i(null), p(!1);
|
|
13781
13781
|
}, [p]), m = u.useCallback(
|
|
13782
13782
|
(g, h) => {
|
|
13783
|
-
const b = g.currentTarget,
|
|
13783
|
+
const b = g.currentTarget, x = { x: g.clientX, y: g.clientY }, y = j1(x, b.getBoundingClientRect()), w = D1(x, y), N = I1(h.getBoundingClientRect()), E = O1([...w, ...N]);
|
|
13784
13784
|
i(E), p(!0);
|
|
13785
13785
|
},
|
|
13786
13786
|
[p]
|
|
@@ -13795,8 +13795,8 @@ var en = "TooltipContent", om = u.forwardRef(
|
|
|
13795
13795
|
}, [l, f, m, v]), u.useEffect(() => {
|
|
13796
13796
|
if (s) {
|
|
13797
13797
|
const g = (h) => {
|
|
13798
|
-
const b = h.target,
|
|
13799
|
-
|
|
13798
|
+
const b = h.target, x = { x: h.clientX, y: h.clientY }, y = (l == null ? void 0 : l.contains(b)) || (f == null ? void 0 : f.contains(b)), w = !_1(x, s);
|
|
13799
|
+
y ? v() : w && (v(), d());
|
|
13800
13800
|
};
|
|
13801
13801
|
return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
|
|
13802
13802
|
}
|
|
@@ -14316,7 +14316,7 @@ const ei = ({
|
|
|
14316
14316
|
isLoading: i = !1,
|
|
14317
14317
|
showItemsCounter: l = !0,
|
|
14318
14318
|
loadingVariant: d = "loader"
|
|
14319
|
-
} = e, [f, p] = fe(t), [v, m] = fe(r), g = Math.ceil(f.length / n), h = (v - 1) * n, b = v * n,
|
|
14319
|
+
} = e, [f, p] = fe(t), [v, m] = fe(r), g = Math.ceil(f.length / n), h = (v - 1) * n, b = v * n, x = f.slice(h, b), y = i ? /* @__PURE__ */ c.jsx("section", { className: "w-full", children: d === "loader" ? /* @__PURE__ */ c.jsx(NC, { size: "lg" }) : /* @__PURE__ */ c.jsx(CC, { className: "h-12 w-full", repeat: n }) }) : f.length === 0 ? s : void 0;
|
|
14320
14320
|
return /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-4 items-end", children: [
|
|
14321
14321
|
/* @__PURE__ */ c.jsx(
|
|
14322
14322
|
ei,
|
|
@@ -14326,12 +14326,12 @@ const ei = ({
|
|
|
14326
14326
|
totalItems: f.length,
|
|
14327
14327
|
totalPages: g,
|
|
14328
14328
|
currentPage: v,
|
|
14329
|
-
pageTotalItems:
|
|
14329
|
+
pageTotalItems: x.length,
|
|
14330
14330
|
onPageChange: m,
|
|
14331
14331
|
showItemsCounter: l
|
|
14332
14332
|
}
|
|
14333
14333
|
),
|
|
14334
|
-
|
|
14334
|
+
y ? /* @__PURE__ */ c.jsx("section", { className: "w-full", children: y }) : /* @__PURE__ */ c.jsx("section", { className: `w-full ${a}`, children: x.map((w, N) => /* @__PURE__ */ c.jsx(vm, { children: o(w, N) }, w.id)) }),
|
|
14335
14335
|
/* @__PURE__ */ c.jsx(
|
|
14336
14336
|
ei,
|
|
14337
14337
|
{
|
|
@@ -14340,7 +14340,7 @@ const ei = ({
|
|
|
14340
14340
|
totalItems: f.length,
|
|
14341
14341
|
totalPages: g,
|
|
14342
14342
|
currentPage: v,
|
|
14343
|
-
pageTotalItems:
|
|
14343
|
+
pageTotalItems: x.length,
|
|
14344
14344
|
onPageChange: m,
|
|
14345
14345
|
showItemsCounter: l
|
|
14346
14346
|
}
|
|
@@ -14469,47 +14469,47 @@ const cm = u.createContext(void 0), ti = {
|
|
|
14469
14469
|
custom: { icon: xs, className: "text-gray-500" }
|
|
14470
14470
|
};
|
|
14471
14471
|
function WE({ children: e }) {
|
|
14472
|
-
var h, b, y;
|
|
14472
|
+
var h, b, x, y, w, N, E, R, P, A, k, $, z;
|
|
14473
14473
|
const [t, n] = u.useState({
|
|
14474
14474
|
isOpen: !1,
|
|
14475
14475
|
options: null
|
|
14476
|
-
}), r = u.useCallback((
|
|
14477
|
-
n({ isOpen: !0, options:
|
|
14476
|
+
}), r = u.useCallback((j) => {
|
|
14477
|
+
n({ isOpen: !0, options: j });
|
|
14478
14478
|
}, []), o = u.useCallback(() => {
|
|
14479
|
-
n((
|
|
14479
|
+
n((j) => ({ ...j, isOpen: !1 }));
|
|
14480
14480
|
}, []), a = u.useCallback(
|
|
14481
|
-
(
|
|
14482
|
-
r({ ...
|
|
14481
|
+
(j) => {
|
|
14482
|
+
r({ ...j, type: "info" });
|
|
14483
14483
|
},
|
|
14484
14484
|
[r]
|
|
14485
14485
|
), s = u.useCallback(
|
|
14486
|
-
(
|
|
14487
|
-
r({ ...
|
|
14486
|
+
(j) => {
|
|
14487
|
+
r({ ...j, type: "success" });
|
|
14488
14488
|
},
|
|
14489
14489
|
[r]
|
|
14490
14490
|
), i = u.useCallback(
|
|
14491
|
-
(
|
|
14492
|
-
r({ ...
|
|
14491
|
+
(j) => {
|
|
14492
|
+
r({ ...j, type: "error" });
|
|
14493
14493
|
},
|
|
14494
14494
|
[r]
|
|
14495
14495
|
), l = u.useCallback(
|
|
14496
|
-
(
|
|
14497
|
-
r({ ...
|
|
14496
|
+
(j) => {
|
|
14497
|
+
r({ ...j, type: "warning" });
|
|
14498
14498
|
},
|
|
14499
14499
|
[r]
|
|
14500
14500
|
), d = u.useCallback(
|
|
14501
|
-
(
|
|
14502
|
-
r({ ...
|
|
14501
|
+
(j) => {
|
|
14502
|
+
r({ ...j, type: "custom" });
|
|
14503
14503
|
},
|
|
14504
14504
|
[r]
|
|
14505
14505
|
), f = u.useCallback(
|
|
14506
|
-
(
|
|
14507
|
-
r({ ...
|
|
14506
|
+
(j) => {
|
|
14507
|
+
r({ ...j, type: "confirm" });
|
|
14508
14508
|
},
|
|
14509
14509
|
[r]
|
|
14510
|
-
), p = (
|
|
14511
|
-
let
|
|
14512
|
-
return
|
|
14510
|
+
), p = (j, V) => {
|
|
14511
|
+
let B = ni[j].icon;
|
|
14512
|
+
return V && (B = V), /* @__PURE__ */ c.jsx(B, { className: T("h-24 w-24", ni[j].className) });
|
|
14513
14513
|
}, v = u.useMemo(
|
|
14514
14514
|
() => ({
|
|
14515
14515
|
open: r,
|
|
@@ -14525,7 +14525,7 @@ function WE({ children: e }) {
|
|
|
14525
14525
|
), [m, g] = u.useState(!1);
|
|
14526
14526
|
return /* @__PURE__ */ c.jsxs(cm.Provider, { value: v, children: [
|
|
14527
14527
|
e,
|
|
14528
|
-
/* @__PURE__ */ c.jsx(ol, { open: t.isOpen, onOpenChange: (
|
|
14528
|
+
/* @__PURE__ */ c.jsx(ol, { open: t.isOpen, onOpenChange: (j) => !j && o(), modal: !0, children: /* @__PURE__ */ c.jsxs(
|
|
14529
14529
|
sa,
|
|
14530
14530
|
{
|
|
14531
14531
|
className: T(
|
|
@@ -14538,26 +14538,38 @@ function WE({ children: e }) {
|
|
|
14538
14538
|
t.options.title && /* @__PURE__ */ c.jsx(ca, { className: "text-center", children: t.options.title }),
|
|
14539
14539
|
/* @__PURE__ */ c.jsx(la, { className: "text-center", children: t.options.message })
|
|
14540
14540
|
] }),
|
|
14541
|
-
((
|
|
14541
|
+
((x = t.options) == null ? void 0 : x.type) === "confirm" && /* @__PURE__ */ c.jsxs("div", { className: "flex justify-center gap-4 mt-4", children: [
|
|
14542
14542
|
/* @__PURE__ */ c.jsx(
|
|
14543
14543
|
Se,
|
|
14544
14544
|
{
|
|
14545
|
-
isLoading: m,
|
|
14545
|
+
isLoading: m ?? ((w = (y = t.options) == null ? void 0 : y.confirmButton) == null ? void 0 : w.loading),
|
|
14546
|
+
disabled: (E = (N = t.options) == null ? void 0 : N.confirmButton) == null ? void 0 : E.disabled,
|
|
14547
|
+
className: (R = t.options.confirmButton) == null ? void 0 : R.className,
|
|
14546
14548
|
onClick: () => {
|
|
14547
|
-
var
|
|
14548
|
-
if (!((
|
|
14549
|
+
var V, B, Q, L, H;
|
|
14550
|
+
if (!((B = (V = t.options) == null ? void 0 : V.confirmButton) != null && B.onClick))
|
|
14549
14551
|
throw new Error(
|
|
14550
14552
|
"Confirmation type dialog needs to implement the onConfirm function"
|
|
14551
14553
|
);
|
|
14552
|
-
const
|
|
14553
|
-
|
|
14554
|
+
const j = (H = (L = (Q = t.options) == null ? void 0 : Q.confirmButton) == null ? void 0 : L.onClick) == null ? void 0 : H.call(L);
|
|
14555
|
+
j instanceof Promise ? (g(!0), j.then(() => {
|
|
14554
14556
|
g(!1), o();
|
|
14555
14557
|
}).finally(() => g(!1))) : o();
|
|
14556
14558
|
},
|
|
14557
|
-
children: t.options.
|
|
14559
|
+
children: ((P = t.options.confirmButton) == null ? void 0 : P.label) ?? "Confirm"
|
|
14558
14560
|
}
|
|
14559
14561
|
),
|
|
14560
|
-
t.options.
|
|
14562
|
+
((A = t.options.cancelButton) == null ? void 0 : A.label) && /* @__PURE__ */ c.jsx(
|
|
14563
|
+
Se,
|
|
14564
|
+
{
|
|
14565
|
+
variant: "outline",
|
|
14566
|
+
onClick: o,
|
|
14567
|
+
className: t.options.cancelButton.className,
|
|
14568
|
+
isLoading: (k = t.options.cancelButton) == null ? void 0 : k.loading,
|
|
14569
|
+
disabled: m || (($ = t.options.cancelButton) == null ? void 0 : $.disabled),
|
|
14570
|
+
children: (z = t.options.cancelButton) == null ? void 0 : z.label
|
|
14571
|
+
}
|
|
14572
|
+
)
|
|
14561
14573
|
] })
|
|
14562
14574
|
]
|
|
14563
14575
|
}
|
|
@@ -14670,14 +14682,14 @@ var um = { exports: {} };
|
|
|
14670
14682
|
return !1;
|
|
14671
14683
|
}
|
|
14672
14684
|
}(), a = t.BlobBuilder || t.WebKitBlobBuilder || t.MozBlobBuilder || t.MSBlobBuilder, s = /^data:((.*?)(;charset=.*?)?)(;base64)?,/, i = (r || a) && t.atob && t.ArrayBuffer && t.Uint8Array && function(l) {
|
|
14673
|
-
var d, f, p, v, m, g, h, b,
|
|
14685
|
+
var d, f, p, v, m, g, h, b, x;
|
|
14674
14686
|
if (d = l.match(s), !d)
|
|
14675
14687
|
throw new Error("invalid data URI");
|
|
14676
14688
|
for (f = d[2] ? d[1] : "text/plain" + (d[3] || ";charset=US-ASCII"), p = !!d[4], v = l.slice(d[0].length), p ? m = atob(v) : m = decodeURIComponent(v), g = new ArrayBuffer(m.length), h = new Uint8Array(g), b = 0; b < m.length; b += 1)
|
|
14677
14689
|
h[b] = m.charCodeAt(b);
|
|
14678
14690
|
return r ? new Blob([o ? h : g], {
|
|
14679
14691
|
type: f
|
|
14680
|
-
}) : (
|
|
14692
|
+
}) : (x = new a(), x.append(g), x.getBlob(f));
|
|
14681
14693
|
};
|
|
14682
14694
|
t.HTMLCanvasElement && !n.toBlob && (n.mozGetAsFile ? n.toBlob = function(l, d, f) {
|
|
14683
14695
|
var p = this;
|
|
@@ -15021,48 +15033,48 @@ var iN = Rt.ArrayBuffer, no = Rt.FileReader, Dt = Rt.URL || Rt.webkitURL, cN = /
|
|
|
15021
15033
|
}, {
|
|
15022
15034
|
key: "draw",
|
|
15023
15035
|
value: function(n) {
|
|
15024
|
-
var r = this, o = n.naturalWidth, a = n.naturalHeight, s = n.rotate, i = s === void 0 ? 0 : s, l = n.scaleX, d = l === void 0 ? 1 : l, f = n.scaleY, p = f === void 0 ? 1 : f, v = this.file, m = this.image, g = this.options, h = document.createElement("canvas"), b = h.getContext("2d"),
|
|
15025
|
-
if (
|
|
15026
|
-
var
|
|
15027
|
-
w =
|
|
15036
|
+
var r = this, o = n.naturalWidth, a = n.naturalHeight, s = n.rotate, i = s === void 0 ? 0 : s, l = n.scaleX, d = l === void 0 ? 1 : l, f = n.scaleY, p = f === void 0 ? 1 : f, v = this.file, m = this.image, g = this.options, h = document.createElement("canvas"), b = h.getContext("2d"), x = Math.abs(i) % 180 === 90, y = (g.resize === "contain" || g.resize === "cover") && fr(g.width) && fr(g.height), w = Math.max(g.maxWidth, 0) || 1 / 0, N = Math.max(g.maxHeight, 0) || 1 / 0, E = Math.max(g.minWidth, 0) || 0, R = Math.max(g.minHeight, 0) || 0, P = o / a, A = g.width, k = g.height;
|
|
15037
|
+
if (x) {
|
|
15038
|
+
var $ = [N, w];
|
|
15039
|
+
w = $[0], N = $[1];
|
|
15028
15040
|
var z = [R, E];
|
|
15029
15041
|
E = z[0], R = z[1];
|
|
15030
|
-
var
|
|
15031
|
-
A =
|
|
15042
|
+
var j = [k, A];
|
|
15043
|
+
A = j[0], k = j[1];
|
|
15032
15044
|
}
|
|
15033
|
-
|
|
15034
|
-
var
|
|
15045
|
+
y && (P = A / k);
|
|
15046
|
+
var V = pn({
|
|
15035
15047
|
aspectRatio: P,
|
|
15036
15048
|
width: w,
|
|
15037
15049
|
height: N
|
|
15038
15050
|
}, "contain");
|
|
15039
|
-
w =
|
|
15040
|
-
var
|
|
15051
|
+
w = V.width, N = V.height;
|
|
15052
|
+
var B = pn({
|
|
15041
15053
|
aspectRatio: P,
|
|
15042
15054
|
width: E,
|
|
15043
15055
|
height: R
|
|
15044
15056
|
}, "cover");
|
|
15045
|
-
if (E =
|
|
15046
|
-
var
|
|
15057
|
+
if (E = B.width, R = B.height, y) {
|
|
15058
|
+
var Q = pn({
|
|
15047
15059
|
aspectRatio: P,
|
|
15048
15060
|
width: A,
|
|
15049
15061
|
height: k
|
|
15050
15062
|
}, g.resize);
|
|
15051
|
-
A =
|
|
15063
|
+
A = Q.width, k = Q.height;
|
|
15052
15064
|
} else {
|
|
15053
|
-
var
|
|
15065
|
+
var L = pn({
|
|
15054
15066
|
aspectRatio: P,
|
|
15055
15067
|
width: A,
|
|
15056
15068
|
height: k
|
|
15057
|
-
}),
|
|
15058
|
-
A =
|
|
15059
|
-
var F =
|
|
15069
|
+
}), H = L.width;
|
|
15070
|
+
A = H === void 0 ? o : H;
|
|
15071
|
+
var F = L.height;
|
|
15060
15072
|
k = F === void 0 ? a : F;
|
|
15061
15073
|
}
|
|
15062
15074
|
A = Math.floor(ci(Math.min(Math.max(A, E), w))), k = Math.floor(ci(Math.min(Math.max(k, R), N)));
|
|
15063
|
-
var S = -A / 2,
|
|
15064
|
-
if (
|
|
15065
|
-
var K = 0, ie = 0, le = o,
|
|
15075
|
+
var S = -A / 2, G = -k / 2, X = A, U = k, Y = [];
|
|
15076
|
+
if (y) {
|
|
15077
|
+
var K = 0, ie = 0, le = o, I = a, re = pn({
|
|
15066
15078
|
aspectRatio: P,
|
|
15067
15079
|
width: o,
|
|
15068
15080
|
height: a
|
|
@@ -15070,17 +15082,17 @@ var iN = Rt.ArrayBuffer, no = Rt.FileReader, Dt = Rt.URL || Rt.webkitURL, cN = /
|
|
|
15070
15082
|
contain: "cover",
|
|
15071
15083
|
cover: "contain"
|
|
15072
15084
|
}[g.resize]);
|
|
15073
|
-
le = re.width,
|
|
15085
|
+
le = re.width, I = re.height, K = (o - le) / 2, ie = (a - I) / 2, Y.push(K, ie, le, I);
|
|
15074
15086
|
}
|
|
15075
|
-
if (
|
|
15087
|
+
if (Y.push(S, G, X, U), x) {
|
|
15076
15088
|
var oe = [k, A];
|
|
15077
15089
|
A = oe[0], k = oe[1];
|
|
15078
15090
|
}
|
|
15079
15091
|
h.width = A, h.height = k, ko(g.mimeType) || (g.mimeType = v.type);
|
|
15080
|
-
var
|
|
15092
|
+
var ee = "transparent";
|
|
15081
15093
|
v.size > g.convertSize && g.convertTypes.indexOf(g.mimeType) >= 0 && (g.mimeType = "image/jpeg");
|
|
15082
15094
|
var ne = g.mimeType === "image/jpeg";
|
|
15083
|
-
if (ne && (
|
|
15095
|
+
if (ne && (ee = "#fff"), b.fillStyle = ee, b.fillRect(0, 0, A, k), g.beforeDraw && g.beforeDraw.call(this, b, h), !this.aborted && (b.save(), b.translate(A / 2, k / 2), b.rotate(i * Math.PI / 180), b.scale(d, p), b.drawImage.apply(b, [m].concat(Y)), b.restore(), g.drew && g.drew.call(this, b, h), !this.aborted)) {
|
|
15084
15096
|
var se = function(ge) {
|
|
15085
15097
|
if (!r.aborted) {
|
|
15086
15098
|
var Te = function(Ae) {
|