buildgrid-ui 1.3.2 → 1.3.3
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 +266 -264
- package/dist/buildgrid-ui.umd.js +16 -16
- package/package.json +3 -2
package/dist/buildgrid-ui.es.js
CHANGED
|
@@ -47,12 +47,12 @@ var nn = {};
|
|
|
47
47
|
var Ra;
|
|
48
48
|
function mf() {
|
|
49
49
|
return Ra || (Ra = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
-
function e(
|
|
51
|
-
if (
|
|
52
|
-
if (typeof
|
|
53
|
-
return
|
|
54
|
-
if (typeof
|
|
55
|
-
switch (
|
|
50
|
+
function e(C) {
|
|
51
|
+
if (C == null) return null;
|
|
52
|
+
if (typeof C == "function")
|
|
53
|
+
return C.$$typeof === F ? null : C.displayName || C.name || null;
|
|
54
|
+
if (typeof C == "string") return C;
|
|
55
|
+
switch (C) {
|
|
56
56
|
case R:
|
|
57
57
|
return "Fragment";
|
|
58
58
|
case E:
|
|
@@ -66,46 +66,46 @@ function mf() {
|
|
|
66
66
|
case H:
|
|
67
67
|
return "SuspenseList";
|
|
68
68
|
}
|
|
69
|
-
if (typeof
|
|
70
|
-
switch (typeof
|
|
69
|
+
if (typeof C == "object")
|
|
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
73
|
case W:
|
|
74
|
-
return (
|
|
74
|
+
return (C.displayName || "Context") + ".Provider";
|
|
75
75
|
case I:
|
|
76
|
-
return (
|
|
76
|
+
return (C._context.displayName || "Context") + ".Consumer";
|
|
77
77
|
case z:
|
|
78
|
-
var $ =
|
|
79
|
-
return
|
|
78
|
+
var $ = C.render;
|
|
79
|
+
return C = C.displayName, C || (C = $.displayName || $.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
|
|
80
80
|
case B:
|
|
81
|
-
return $ =
|
|
81
|
+
return $ = C.displayName || null, $ !== null ? $ : e(C.type) || "Memo";
|
|
82
82
|
case ne:
|
|
83
|
-
$ =
|
|
83
|
+
$ = C._payload, C = C._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(
|
|
85
|
+
return e(C($));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
|
-
function t(
|
|
92
|
-
return "" +
|
|
91
|
+
function t(C) {
|
|
92
|
+
return "" + C;
|
|
93
93
|
}
|
|
94
|
-
function n(
|
|
94
|
+
function n(C) {
|
|
95
95
|
try {
|
|
96
|
-
t(
|
|
96
|
+
t(C);
|
|
97
97
|
var $ = !1;
|
|
98
98
|
} catch {
|
|
99
99
|
$ = !0;
|
|
100
100
|
}
|
|
101
101
|
if ($) {
|
|
102
102
|
$ = console;
|
|
103
|
-
var _ = $.error, te = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
103
|
+
var _ = $.error, te = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
104
104
|
return _.call(
|
|
105
105
|
$,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
107
|
te
|
|
108
|
-
), t(
|
|
108
|
+
), t(C);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function r() {
|
|
@@ -113,42 +113,42 @@ function mf() {
|
|
|
113
113
|
function o() {
|
|
114
114
|
if (q === 0) {
|
|
115
115
|
le = console.log, fe = console.info, k = console.warn, oe = console.error, ae = console.group, ee = console.groupCollapsed, re = console.groupEnd;
|
|
116
|
-
var
|
|
116
|
+
var C = {
|
|
117
117
|
configurable: !0,
|
|
118
118
|
enumerable: !0,
|
|
119
119
|
value: r,
|
|
120
120
|
writable: !0
|
|
121
121
|
};
|
|
122
122
|
Object.defineProperties(console, {
|
|
123
|
-
info:
|
|
124
|
-
log:
|
|
125
|
-
warn:
|
|
126
|
-
error:
|
|
127
|
-
group:
|
|
128
|
-
groupCollapsed:
|
|
129
|
-
groupEnd:
|
|
123
|
+
info: C,
|
|
124
|
+
log: C,
|
|
125
|
+
warn: C,
|
|
126
|
+
error: C,
|
|
127
|
+
group: C,
|
|
128
|
+
groupCollapsed: C,
|
|
129
|
+
groupEnd: C
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
q++;
|
|
133
133
|
}
|
|
134
134
|
function a() {
|
|
135
135
|
if (q--, q === 0) {
|
|
136
|
-
var
|
|
136
|
+
var C = { configurable: !0, enumerable: !0, writable: !0 };
|
|
137
137
|
Object.defineProperties(console, {
|
|
138
|
-
log: X({},
|
|
139
|
-
info: X({},
|
|
140
|
-
warn: X({},
|
|
141
|
-
error: X({},
|
|
142
|
-
group: X({},
|
|
143
|
-
groupCollapsed: X({},
|
|
144
|
-
groupEnd: X({},
|
|
138
|
+
log: X({}, C, { value: le }),
|
|
139
|
+
info: X({}, C, { value: fe }),
|
|
140
|
+
warn: X({}, C, { value: k }),
|
|
141
|
+
error: X({}, C, { value: oe }),
|
|
142
|
+
group: X({}, C, { value: ae }),
|
|
143
|
+
groupCollapsed: X({}, C, { value: ee }),
|
|
144
|
+
groupEnd: X({}, C, { value: re })
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
0 > q && console.error(
|
|
148
148
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
|
-
function s(
|
|
151
|
+
function s(C) {
|
|
152
152
|
if (se === void 0)
|
|
153
153
|
try {
|
|
154
154
|
throw Error();
|
|
@@ -158,11 +158,11 @@ function mf() {
|
|
|
158
158
|
at`) ? " (<anonymous>)" : -1 < _.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
159
159
|
}
|
|
160
160
|
return `
|
|
161
|
-
` + se +
|
|
161
|
+
` + se + C + ve;
|
|
162
162
|
}
|
|
163
|
-
function i(
|
|
164
|
-
if (!
|
|
165
|
-
var _ = Te.get(
|
|
163
|
+
function i(C, $) {
|
|
164
|
+
if (!C || Ne) return "";
|
|
165
|
+
var _ = Te.get(C);
|
|
166
166
|
if (_ !== void 0) return _;
|
|
167
167
|
Ne = !0, _ = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
168
168
|
var te = null;
|
|
@@ -185,14 +185,14 @@ function mf() {
|
|
|
185
185
|
} catch (Ie) {
|
|
186
186
|
var It = Ie;
|
|
187
187
|
}
|
|
188
|
-
Reflect.construct(
|
|
188
|
+
Reflect.construct(C, [], Le);
|
|
189
189
|
} else {
|
|
190
190
|
try {
|
|
191
191
|
Le.call();
|
|
192
192
|
} catch (Ie) {
|
|
193
193
|
It = Ie;
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
C.call(Le.prototype);
|
|
196
196
|
}
|
|
197
197
|
} else {
|
|
198
198
|
try {
|
|
@@ -200,7 +200,7 @@ function mf() {
|
|
|
200
200
|
} catch (Ie) {
|
|
201
201
|
It = Ie;
|
|
202
202
|
}
|
|
203
|
-
(Le =
|
|
203
|
+
(Le = C()) && typeof Le.catch == "function" && Le.catch(function() {
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
} catch (Ie) {
|
|
@@ -246,7 +246,7 @@ function mf() {
|
|
|
246
246
|
" at new ",
|
|
247
247
|
" at "
|
|
248
248
|
);
|
|
249
|
-
return
|
|
249
|
+
return C.displayName && Ke.includes("<anonymous>") && (Ke = Ke.replace("<anonymous>", C.displayName)), typeof C == "function" && Te.set(C, Ke), Ke;
|
|
250
250
|
}
|
|
251
251
|
while (1 <= ue && 0 <= U);
|
|
252
252
|
break;
|
|
@@ -255,112 +255,112 @@ function mf() {
|
|
|
255
255
|
} finally {
|
|
256
256
|
Ne = !1, S.H = te, a(), Error.prepareStackTrace = _;
|
|
257
257
|
}
|
|
258
|
-
return pe = (pe =
|
|
258
|
+
return pe = (pe = C ? C.displayName || C.name : "") ? s(pe) : "", typeof C == "function" && Te.set(C, pe), pe;
|
|
259
259
|
}
|
|
260
|
-
function u(
|
|
261
|
-
if (
|
|
262
|
-
if (typeof
|
|
263
|
-
var $ =
|
|
260
|
+
function u(C) {
|
|
261
|
+
if (C == null) return "";
|
|
262
|
+
if (typeof C == "function") {
|
|
263
|
+
var $ = C.prototype;
|
|
264
264
|
return i(
|
|
265
|
-
|
|
265
|
+
C,
|
|
266
266
|
!(!$ || !$.isReactComponent)
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
|
-
if (typeof
|
|
270
|
-
switch (
|
|
269
|
+
if (typeof C == "string") return s(C);
|
|
270
|
+
switch (C) {
|
|
271
271
|
case j:
|
|
272
272
|
return s("Suspense");
|
|
273
273
|
case H:
|
|
274
274
|
return s("SuspenseList");
|
|
275
275
|
}
|
|
276
|
-
if (typeof
|
|
277
|
-
switch (
|
|
276
|
+
if (typeof C == "object")
|
|
277
|
+
switch (C.$$typeof) {
|
|
278
278
|
case z:
|
|
279
|
-
return
|
|
279
|
+
return C = i(C.render, !1), C;
|
|
280
280
|
case B:
|
|
281
|
-
return u(
|
|
281
|
+
return u(C.type);
|
|
282
282
|
case ne:
|
|
283
|
-
$ =
|
|
283
|
+
$ = C._payload, C = C._init;
|
|
284
284
|
try {
|
|
285
|
-
return u(
|
|
285
|
+
return u(C($));
|
|
286
286
|
} catch {
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
return "";
|
|
290
290
|
}
|
|
291
291
|
function d() {
|
|
292
|
-
var
|
|
293
|
-
return
|
|
292
|
+
var C = S.A;
|
|
293
|
+
return C === null ? null : C.getOwner();
|
|
294
294
|
}
|
|
295
|
-
function f(
|
|
296
|
-
if (Y.call(
|
|
297
|
-
var $ = Object.getOwnPropertyDescriptor(
|
|
295
|
+
function f(C) {
|
|
296
|
+
if (Y.call(C, "key")) {
|
|
297
|
+
var $ = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
298
298
|
if ($ && $.isReactWarning) return !1;
|
|
299
299
|
}
|
|
300
|
-
return
|
|
300
|
+
return C.key !== void 0;
|
|
301
301
|
}
|
|
302
|
-
function p(
|
|
302
|
+
function p(C, $) {
|
|
303
303
|
function _() {
|
|
304
304
|
Oe || (Oe = !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
|
$
|
|
307
307
|
));
|
|
308
308
|
}
|
|
309
|
-
_.isReactWarning = !0, Object.defineProperty(
|
|
309
|
+
_.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
310
310
|
get: _,
|
|
311
311
|
configurable: !0
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
function g() {
|
|
315
|
-
var
|
|
316
|
-
return rt[
|
|
315
|
+
var C = e(this.type);
|
|
316
|
+
return rt[C] || (rt[C] = !0, console.error(
|
|
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(
|
|
321
|
-
return _ = ue.ref,
|
|
320
|
+
function m(C, $, _, te, xe, ue) {
|
|
321
|
+
return _ = ue.ref, C = {
|
|
322
322
|
$$typeof: N,
|
|
323
|
-
type:
|
|
323
|
+
type: C,
|
|
324
324
|
key: $,
|
|
325
325
|
props: ue,
|
|
326
326
|
_owner: xe
|
|
327
|
-
}, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(
|
|
327
|
+
}, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(C, "ref", {
|
|
328
328
|
enumerable: !1,
|
|
329
329
|
get: g
|
|
330
|
-
}) : Object.defineProperty(
|
|
330
|
+
}) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
331
331
|
configurable: !1,
|
|
332
332
|
enumerable: !1,
|
|
333
333
|
writable: !0,
|
|
334
334
|
value: 0
|
|
335
|
-
}), Object.defineProperty(
|
|
335
|
+
}), Object.defineProperty(C, "_debugInfo", {
|
|
336
336
|
configurable: !1,
|
|
337
337
|
enumerable: !1,
|
|
338
338
|
writable: !0,
|
|
339
339
|
value: null
|
|
340
|
-
}), Object.freeze && (Object.freeze(
|
|
340
|
+
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
341
341
|
}
|
|
342
|
-
function v(
|
|
343
|
-
if (typeof
|
|
342
|
+
function v(C, $, _, te, xe, ue) {
|
|
343
|
+
if (typeof C == "string" || typeof C == "function" || C === R || C === D || C === P || C === j || C === H || C === L || typeof C == "object" && C !== null && (C.$$typeof === ne || C.$$typeof === B || C.$$typeof === W || C.$$typeof === I || C.$$typeof === z || C.$$typeof === K || C.getModuleId !== void 0)) {
|
|
344
344
|
var U = $.children;
|
|
345
345
|
if (U !== void 0)
|
|
346
346
|
if (te)
|
|
347
347
|
if (G(U)) {
|
|
348
348
|
for (te = 0; te < U.length; te++)
|
|
349
|
-
h(U[te],
|
|
349
|
+
h(U[te], C);
|
|
350
350
|
Object.freeze && Object.freeze(U);
|
|
351
351
|
} else
|
|
352
352
|
console.error(
|
|
353
353
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
354
354
|
);
|
|
355
|
-
else h(U,
|
|
355
|
+
else h(U, C);
|
|
356
356
|
} else
|
|
357
|
-
U = "", (
|
|
357
|
+
U = "", (C === void 0 || typeof C == "object" && C !== null && Object.keys(C).length === 0) && (U += " 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 ? te = "null" : G(C) ? te = "array" : C !== void 0 && C.$$typeof === N ? (te = "<" + (e(C.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : te = 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
|
te,
|
|
360
360
|
U
|
|
361
361
|
);
|
|
362
362
|
if (Y.call($, "key")) {
|
|
363
|
-
U = e(
|
|
363
|
+
U = e(C);
|
|
364
364
|
var $e = Object.keys($).filter(function(pe) {
|
|
365
365
|
return pe !== "key";
|
|
366
366
|
});
|
|
@@ -384,34 +384,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
384
384
|
} else _ = $;
|
|
385
385
|
return U && p(
|
|
386
386
|
_,
|
|
387
|
-
typeof
|
|
388
|
-
), m(
|
|
389
|
-
}
|
|
390
|
-
function h(
|
|
391
|
-
if (typeof
|
|
392
|
-
if (G(
|
|
393
|
-
for (var _ = 0; _ <
|
|
394
|
-
var te =
|
|
387
|
+
typeof C == "function" ? C.displayName || C.name || "Unknown" : C
|
|
388
|
+
), m(C, U, ue, xe, d(), _);
|
|
389
|
+
}
|
|
390
|
+
function h(C, $) {
|
|
391
|
+
if (typeof C == "object" && C && C.$$typeof !== nt) {
|
|
392
|
+
if (G(C))
|
|
393
|
+
for (var _ = 0; _ < C.length; _++) {
|
|
394
|
+
var te = C[_];
|
|
395
395
|
w(te) && x(te, $);
|
|
396
396
|
}
|
|
397
|
-
else if (w(
|
|
398
|
-
|
|
399
|
-
else if (
|
|
400
|
-
for (; !(
|
|
401
|
-
w(
|
|
397
|
+
else if (w(C))
|
|
398
|
+
C._store && (C._store.validated = 1);
|
|
399
|
+
else if (C === null || typeof C != "object" ? _ = null : (_ = V && C[V] || C["@@iterator"], _ = typeof _ == "function" ? _ : null), typeof _ == "function" && _ !== C.entries && (_ = _.call(C), _ !== C))
|
|
400
|
+
for (; !(C = _.next()).done; )
|
|
401
|
+
w(C.value) && x(C.value, $);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function w(
|
|
405
|
-
return typeof
|
|
404
|
+
function w(C) {
|
|
405
|
+
return typeof C == "object" && C !== null && C.$$typeof === N;
|
|
406
406
|
}
|
|
407
|
-
function x(
|
|
408
|
-
if (
|
|
407
|
+
function x(C, $) {
|
|
408
|
+
if (C._store && !C._store.validated && C.key == null && (C._store.validated = 1, $ = b($), !ot[$])) {
|
|
409
409
|
ot[$] = !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 te = S.getCurrentStack;
|
|
413
413
|
S.getCurrentStack = function() {
|
|
414
|
-
var xe = u(
|
|
414
|
+
var xe = u(C.type);
|
|
415
415
|
return te && (xe += te() || ""), xe;
|
|
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.',
|
|
@@ -420,21 +420,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
420
420
|
), S.getCurrentStack = te;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
function b(
|
|
423
|
+
function b(C) {
|
|
424
424
|
var $ = "", _ = d();
|
|
425
425
|
return _ && (_ = e(_.type)) && ($ = `
|
|
426
426
|
|
|
427
|
-
Check the render method of \`` + _ + "`."), $ || (
|
|
427
|
+
Check the render method of \`` + _ + "`."), $ || (C = e(C)) && ($ = `
|
|
428
428
|
|
|
429
|
-
Check the top-level render call using <` +
|
|
429
|
+
Check the top-level render call using <` + C + ">."), $;
|
|
430
430
|
}
|
|
431
|
-
var
|
|
431
|
+
var y = M, N = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), W = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), ne = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), V = Symbol.iterator, F = Symbol.for("react.client.reference"), S = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, X = Object.assign, K = Symbol.for("react.client.reference"), G = Array.isArray, q = 0, le, fe, k, oe, ae, ee, re;
|
|
432
432
|
r.__reactDisabledLog = !0;
|
|
433
433
|
var se, ve, Ne = !1, Te = new (typeof WeakMap == "function" ? WeakMap : Map)(), nt = Symbol.for("react.client.reference"), Oe, rt = {}, He = {}, ot = {};
|
|
434
|
-
nn.Fragment = R, nn.jsx = function(
|
|
435
|
-
return v(
|
|
436
|
-
}, nn.jsxs = function(
|
|
437
|
-
return v(
|
|
434
|
+
nn.Fragment = R, nn.jsx = function(C, $, _, te, xe) {
|
|
435
|
+
return v(C, $, _, !1, te, xe);
|
|
436
|
+
}, nn.jsxs = function(C, $, _, te, xe) {
|
|
437
|
+
return v(C, $, _, !0, te, xe);
|
|
438
438
|
};
|
|
439
439
|
}()), nn;
|
|
440
440
|
}
|
|
@@ -633,9 +633,9 @@ const vo = "-", hf = (e) => {
|
|
|
633
633
|
if (a.includes(b))
|
|
634
634
|
continue;
|
|
635
635
|
a.push(b);
|
|
636
|
-
const
|
|
637
|
-
for (let N = 0; N <
|
|
638
|
-
const E =
|
|
636
|
+
const y = o(h, v);
|
|
637
|
+
for (let N = 0; N < y.length; ++N) {
|
|
638
|
+
const E = y[N];
|
|
639
639
|
a.push(x + E);
|
|
640
640
|
}
|
|
641
641
|
i = d + (i.length > 0 ? " " + i : i);
|
|
@@ -685,7 +685,7 @@ const de = (e) => {
|
|
|
685
685
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
686
686
|
Df.test(e) && !kf.test(e)
|
|
687
687
|
), _s = () => !1, Vf = (e) => If.test(e), Yf = (e) => _f.test(e), Hf = () => {
|
|
688
|
-
const e = de("colors"), t = de("spacing"), n = de("blur"), r = de("brightness"), o = de("borderColor"), a = de("borderRadius"), s = de("borderSpacing"), i = de("borderWidth"), u = de("contrast"), d = de("grayscale"), f = de("hueRotate"), p = de("invert"), g = de("gap"), m = de("gradientColorStops"), v = de("gradientColorStopPositions"), h = de("inset"), w = de("margin"), x = de("opacity"), b = de("padding"),
|
|
688
|
+
const e = de("colors"), t = de("spacing"), n = de("blur"), r = de("brightness"), o = de("borderColor"), a = de("borderRadius"), s = de("borderSpacing"), i = de("borderWidth"), u = de("contrast"), d = de("grayscale"), f = de("hueRotate"), p = de("invert"), g = de("gap"), m = de("gradientColorStops"), v = de("gradientColorStopPositions"), h = de("inset"), w = de("margin"), x = de("opacity"), b = de("padding"), y = de("saturate"), N = de("scale"), E = de("sepia"), R = de("skew"), P = de("space"), D = de("translate"), I = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", J, t], j = () => [J, t], H = () => ["", at, ft], B = () => ["auto", Lt, J], ne = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], L = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["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", J], Y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [Lt, J];
|
|
689
689
|
return {
|
|
690
690
|
cacheSize: 500,
|
|
691
691
|
separator: ":",
|
|
@@ -2151,7 +2151,7 @@ const de = (e) => {
|
|
|
2151
2151
|
* @see https://tailwindcss.com/docs/saturate
|
|
2152
2152
|
*/
|
|
2153
2153
|
saturate: [{
|
|
2154
|
-
saturate: [
|
|
2154
|
+
saturate: [y]
|
|
2155
2155
|
}],
|
|
2156
2156
|
/**
|
|
2157
2157
|
* Sepia
|
|
@@ -2222,7 +2222,7 @@ const de = (e) => {
|
|
|
2222
2222
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2223
2223
|
*/
|
|
2224
2224
|
"backdrop-saturate": [{
|
|
2225
|
-
"backdrop-saturate": [
|
|
2225
|
+
"backdrop-saturate": [y]
|
|
2226
2226
|
}],
|
|
2227
2227
|
/**
|
|
2228
2228
|
* Backdrop Sepia
|
|
@@ -3951,23 +3951,23 @@ function Mr(e, t, n) {
|
|
|
3951
3951
|
if (!Ym(i))
|
|
3952
3952
|
throw new RangeError("Invalid time value");
|
|
3953
3953
|
let u = t.match(Gm).map((b) => {
|
|
3954
|
-
const
|
|
3955
|
-
if (
|
|
3956
|
-
const N = jm[
|
|
3954
|
+
const y = b[0];
|
|
3955
|
+
if (y === "p" || y === "P") {
|
|
3956
|
+
const N = jm[y];
|
|
3957
3957
|
return N(b, o.formatLong);
|
|
3958
3958
|
}
|
|
3959
3959
|
return b;
|
|
3960
3960
|
}).join("").match(Hm).map((b) => {
|
|
3961
3961
|
if (b === "''")
|
|
3962
3962
|
return { isToken: !1, value: "'" };
|
|
3963
|
-
const
|
|
3964
|
-
if (
|
|
3963
|
+
const y = b[0];
|
|
3964
|
+
if (y === "'")
|
|
3965
3965
|
return { isToken: !1, value: Xm(b) };
|
|
3966
|
-
if (Ia[
|
|
3966
|
+
if (Ia[y])
|
|
3967
3967
|
return { isToken: !0, value: b };
|
|
3968
|
-
if (
|
|
3968
|
+
if (y.match(qm))
|
|
3969
3969
|
throw new RangeError(
|
|
3970
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
3970
|
+
"Format string contains an unescaped latin alphabet character `" + y + "`"
|
|
3971
3971
|
);
|
|
3972
3972
|
return { isToken: !1, value: b };
|
|
3973
3973
|
});
|
|
@@ -3979,10 +3979,10 @@ function Mr(e, t, n) {
|
|
|
3979
3979
|
};
|
|
3980
3980
|
return u.map((b) => {
|
|
3981
3981
|
if (!b.isToken) return b.value;
|
|
3982
|
-
const
|
|
3983
|
-
(!(n != null && n.useAdditionalWeekYearTokens) && Wm(
|
|
3984
|
-
const N = Ia[
|
|
3985
|
-
return N(i,
|
|
3982
|
+
const y = b.value;
|
|
3983
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Wm(y) || !(n != null && n.useAdditionalDayOfYearTokens) && Fm(y)) && Bm(y, t, String(e));
|
|
3984
|
+
const N = Ia[y[0]];
|
|
3985
|
+
return N(i, y, o.localize, d);
|
|
3986
3986
|
}).join("");
|
|
3987
3987
|
}
|
|
3988
3988
|
function Xm(e) {
|
|
@@ -4696,7 +4696,7 @@ var Ip = "DismissableLayer", qr = "dismissableLayer.update", _p = "dismissableLa
|
|
|
4696
4696
|
onInteractOutside: s,
|
|
4697
4697
|
onDismiss: i,
|
|
4698
4698
|
...u
|
|
4699
|
-
} = e, d = c.useContext(Ys), [f, p] = c.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = c.useState({}), v = Q(t, (P) => p(P)), h = Array.from(d.layers), [w] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(w), b = f ? h.indexOf(f) : -1,
|
|
4699
|
+
} = e, d = c.useContext(Ys), [f, p] = c.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = c.useState({}), v = Q(t, (P) => p(P)), h = Array.from(d.layers), [w] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(w), b = f ? h.indexOf(f) : -1, y = d.layersWithOutsidePointerEventsDisabled.size > 0, N = b >= x, E = Lp((P) => {
|
|
4700
4700
|
const D = P.target, I = [...d.branches].some((W) => W.contains(D));
|
|
4701
4701
|
!N || I || (o == null || o(P), s == null || s(P), P.defaultPrevented || i == null || i());
|
|
4702
4702
|
}, g), R = Fp((P) => {
|
|
@@ -4721,7 +4721,7 @@ var Ip = "DismissableLayer", qr = "dismissableLayer.update", _p = "dismissableLa
|
|
|
4721
4721
|
...u,
|
|
4722
4722
|
ref: v,
|
|
4723
4723
|
style: {
|
|
4724
|
-
pointerEvents:
|
|
4724
|
+
pointerEvents: y ? N ? "auto" : "none" : void 0,
|
|
4725
4725
|
...e.style
|
|
4726
4726
|
},
|
|
4727
4727
|
onFocusCapture: A(e.onFocusCapture, R.onFocusCapture),
|
|
@@ -4816,17 +4816,17 @@ var Ir = "focusScope.autoFocusOnMount", _r = "focusScope.autoFocusOnUnmount", Qa
|
|
|
4816
4816
|
}).current;
|
|
4817
4817
|
c.useEffect(() => {
|
|
4818
4818
|
if (r) {
|
|
4819
|
-
let h = function(
|
|
4819
|
+
let h = function(y) {
|
|
4820
4820
|
if (m.paused || !i) return;
|
|
4821
|
-
const N =
|
|
4821
|
+
const N = y.target;
|
|
4822
4822
|
i.contains(N) ? p.current = N : ht(p.current, { select: !0 });
|
|
4823
|
-
}, w = function(
|
|
4823
|
+
}, w = function(y) {
|
|
4824
4824
|
if (m.paused || !i) return;
|
|
4825
|
-
const N =
|
|
4825
|
+
const N = y.relatedTarget;
|
|
4826
4826
|
N !== null && (i.contains(N) || ht(p.current, { select: !0 }));
|
|
4827
|
-
}, x = function(
|
|
4827
|
+
}, x = function(y) {
|
|
4828
4828
|
if (document.activeElement === document.body)
|
|
4829
|
-
for (const E of
|
|
4829
|
+
for (const E of y)
|
|
4830
4830
|
E.removedNodes.length > 0 && ht(i);
|
|
4831
4831
|
};
|
|
4832
4832
|
document.addEventListener("focusin", h), document.addEventListener("focusout", w);
|
|
@@ -4856,8 +4856,8 @@ var Ir = "focusScope.autoFocusOnMount", _r = "focusScope.autoFocusOnUnmount", Qa
|
|
|
4856
4856
|
if (!n && !r || m.paused) return;
|
|
4857
4857
|
const w = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, x = document.activeElement;
|
|
4858
4858
|
if (w && x) {
|
|
4859
|
-
const b = h.currentTarget, [
|
|
4860
|
-
|
|
4859
|
+
const b = h.currentTarget, [y, N] = zp(b);
|
|
4860
|
+
y && N ? !h.shiftKey && x === N ? (h.preventDefault(), n && ht(y, { select: !0 })) : h.shiftKey && x === y && (h.preventDefault(), n && ht(N, { select: !0 })) : x === b && h.preventDefault();
|
|
4861
4861
|
}
|
|
4862
4862
|
},
|
|
4863
4863
|
[n, r, m.paused]
|
|
@@ -5162,7 +5162,7 @@ var qs = ah(), $r = function() {
|
|
|
5162
5162
|
onScrollCapture: $r,
|
|
5163
5163
|
onWheelCapture: $r,
|
|
5164
5164
|
onTouchMoveCapture: $r
|
|
5165
|
-
}), o = r[0], a = r[1], s = e.forwardProps, i = e.children, u = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noIsolation, v = e.inert, h = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, b = e.gapMode,
|
|
5165
|
+
}), o = r[0], a = r[1], s = e.forwardProps, i = e.children, u = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noIsolation, v = e.inert, h = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, b = e.gapMode, y = Us(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = g, E = nh([n, t]), R = Qe(Qe({}, y), o);
|
|
5166
5166
|
return c.createElement(
|
|
5167
5167
|
c.Fragment,
|
|
5168
5168
|
null,
|
|
@@ -5409,7 +5409,7 @@ function Ah(e) {
|
|
|
5409
5409
|
var i = c.useCallback(function(h, w) {
|
|
5410
5410
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
5411
5411
|
return !s.current.allowPinchZoom;
|
|
5412
|
-
var x = kn(h), b = n.current,
|
|
5412
|
+
var x = kn(h), b = n.current, y = "deltaX" in h ? h.deltaX : b[0] - x[0], N = "deltaY" in h ? h.deltaY : b[1] - x[1], E, R = h.target, P = Math.abs(y) > Math.abs(N) ? "h" : "v";
|
|
5413
5413
|
if ("touches" in h && P === "h" && R.type === "range")
|
|
5414
5414
|
return !1;
|
|
5415
5415
|
var D = as(P, R);
|
|
@@ -5417,10 +5417,10 @@ function Ah(e) {
|
|
|
5417
5417
|
return !0;
|
|
5418
5418
|
if (D ? E = P : (E = P === "v" ? "h" : "v", D = as(P, R)), !D)
|
|
5419
5419
|
return !1;
|
|
5420
|
-
if (!r.current && "changedTouches" in h && (
|
|
5420
|
+
if (!r.current && "changedTouches" in h && (y || N) && (r.current = E), !E)
|
|
5421
5421
|
return !0;
|
|
5422
5422
|
var I = r.current || E;
|
|
5423
|
-
return Rh(I, w, h, I === "h" ?
|
|
5423
|
+
return Rh(I, w, h, I === "h" ? y : N, !0);
|
|
5424
5424
|
}, []), u = c.useCallback(function(h) {
|
|
5425
5425
|
var w = h;
|
|
5426
5426
|
if (!(!Ot.length || Ot[Ot.length - 1] !== a)) {
|
|
@@ -5432,17 +5432,17 @@ function Ah(e) {
|
|
|
5432
5432
|
return;
|
|
5433
5433
|
}
|
|
5434
5434
|
if (!b) {
|
|
5435
|
-
var
|
|
5435
|
+
var y = (s.current.shards || []).map(is).filter(Boolean).filter(function(E) {
|
|
5436
5436
|
return E.contains(w.target);
|
|
5437
|
-
}), N =
|
|
5437
|
+
}), N = y.length > 0 ? i(w, y[0]) : !s.current.noIsolation;
|
|
5438
5438
|
N && w.cancelable && w.preventDefault();
|
|
5439
5439
|
}
|
|
5440
5440
|
}
|
|
5441
5441
|
}, []), d = c.useCallback(function(h, w, x, b) {
|
|
5442
|
-
var
|
|
5443
|
-
t.current.push(
|
|
5442
|
+
var y = { name: h, delta: w, target: x, should: b, shadowParent: Dh(x) };
|
|
5443
|
+
t.current.push(y), setTimeout(function() {
|
|
5444
5444
|
t.current = t.current.filter(function(N) {
|
|
5445
|
-
return N !==
|
|
5445
|
+
return N !== y;
|
|
5446
5446
|
});
|
|
5447
5447
|
}, 1);
|
|
5448
5448
|
}, []), f = c.useCallback(function(h) {
|
|
@@ -6458,7 +6458,7 @@ const Ig = async (e, t, n) => {
|
|
|
6458
6458
|
fn: x
|
|
6459
6459
|
} = i[h], {
|
|
6460
6460
|
x: b,
|
|
6461
|
-
y
|
|
6461
|
+
y,
|
|
6462
6462
|
data: N,
|
|
6463
6463
|
reset: E
|
|
6464
6464
|
} = await x({
|
|
@@ -6475,7 +6475,7 @@ const Ig = async (e, t, n) => {
|
|
|
6475
6475
|
floating: t
|
|
6476
6476
|
}
|
|
6477
6477
|
});
|
|
6478
|
-
f = b ?? f, p =
|
|
6478
|
+
f = b ?? f, p = y ?? p, m = {
|
|
6479
6479
|
...m,
|
|
6480
6480
|
[w]: {
|
|
6481
6481
|
...m[w],
|
|
@@ -6524,7 +6524,7 @@ async function ln(e, t) {
|
|
|
6524
6524
|
y: o,
|
|
6525
6525
|
width: s.floating.width,
|
|
6526
6526
|
height: s.floating.height
|
|
6527
|
-
} : s.reference,
|
|
6527
|
+
} : s.reference, y = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(i.floating)), N = await (a.isElement == null ? void 0 : a.isElement(y)) ? await (a.getScale == null ? void 0 : a.getScale(y)) || {
|
|
6528
6528
|
x: 1,
|
|
6529
6529
|
y: 1
|
|
6530
6530
|
} : {
|
|
@@ -6533,7 +6533,7 @@ async function ln(e, t) {
|
|
|
6533
6533
|
}, E = Un(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
6534
6534
|
elements: i,
|
|
6535
6535
|
rect: b,
|
|
6536
|
-
offsetParent:
|
|
6536
|
+
offsetParent: y,
|
|
6537
6537
|
strategy: u
|
|
6538
6538
|
}) : b);
|
|
6539
6539
|
return {
|
|
@@ -6564,9 +6564,9 @@ const _g = (e) => ({
|
|
|
6564
6564
|
const p = Vi(f), g = {
|
|
6565
6565
|
x: n,
|
|
6566
6566
|
y: r
|
|
6567
|
-
}, m = jo(o), v = _o(m), h = await s.getDimensions(d), w = m === "y", x = w ? "top" : "left", b = w ? "bottom" : "right",
|
|
6568
|
-
let P = R ? R[
|
|
6569
|
-
(!P || !await (s.isElement == null ? void 0 : s.isElement(R))) && (P = i.floating[
|
|
6567
|
+
}, m = jo(o), v = _o(m), h = await s.getDimensions(d), w = m === "y", x = w ? "top" : "left", b = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", N = a.reference[v] + a.reference[m] - g[m] - a.floating[v], E = g[m] - a.reference[m], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
6568
|
+
let P = R ? R[y] : 0;
|
|
6569
|
+
(!P || !await (s.isElement == null ? void 0 : s.isElement(R))) && (P = i.floating[y] || a.floating[v]);
|
|
6570
6570
|
const D = N / 2 - E / 2, I = P / 2 - h[v] / 2 - 1, W = vt(p[x], I), z = vt(p[b], I), j = W, H = P - h[v] - z, B = P / 2 - h[v] / 2 + D, ne = Zr(j, B, H), L = !u.arrow && Xt(o) != null && B !== ne && a.reference[v] / 2 - (B < j ? W : z) - h[v] / 2 < 0, V = L ? B < j ? B - j : B - H : 0;
|
|
6571
6571
|
return {
|
|
6572
6572
|
[m]: g[m] + V,
|
|
@@ -6604,7 +6604,7 @@ const _g = (e) => ({
|
|
|
6604
6604
|
} = ct(e, t);
|
|
6605
6605
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
6606
6606
|
return {};
|
|
6607
|
-
const x = lt(o), b = wt(i),
|
|
6607
|
+
const x = lt(o), b = wt(i), y = lt(i) === i, N = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), E = g || (y || !h ? [Gn(i)] : Tg(i)), R = v !== "none";
|
|
6608
6608
|
!g && R && E.push(...Dg(i, h, v, N));
|
|
6609
6609
|
const P = [i, ...E], D = await ln(t, w), I = [];
|
|
6610
6610
|
let W = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -6793,12 +6793,12 @@ const Lg = function(e) {
|
|
|
6793
6793
|
}, f = await ln(t, u), p = wt(lt(o)), g = Io(p);
|
|
6794
6794
|
let m = d[g], v = d[p];
|
|
6795
6795
|
if (a) {
|
|
6796
|
-
const w = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", b = m + f[w],
|
|
6797
|
-
m = Zr(b, m,
|
|
6796
|
+
const w = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", b = m + f[w], y = m - f[x];
|
|
6797
|
+
m = Zr(b, m, y);
|
|
6798
6798
|
}
|
|
6799
6799
|
if (s) {
|
|
6800
|
-
const w = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", b = v + f[w],
|
|
6801
|
-
v = Zr(b, v,
|
|
6800
|
+
const w = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", b = v + f[w], y = v - f[x];
|
|
6801
|
+
v = Zr(b, v, y);
|
|
6802
6802
|
}
|
|
6803
6803
|
const h = i.fn({
|
|
6804
6804
|
...t,
|
|
@@ -6846,12 +6846,12 @@ const Lg = function(e) {
|
|
|
6846
6846
|
...h
|
|
6847
6847
|
};
|
|
6848
6848
|
if (u) {
|
|
6849
|
-
const
|
|
6849
|
+
const y = g === "y" ? "height" : "width", N = a.reference[g] - a.floating[y] + w.mainAxis, E = a.reference[g] + a.reference[y] - w.mainAxis;
|
|
6850
6850
|
m < N ? m = N : m > E && (m = E);
|
|
6851
6851
|
}
|
|
6852
6852
|
if (d) {
|
|
6853
6853
|
var x, b;
|
|
6854
|
-
const
|
|
6854
|
+
const y = g === "y" ? "width" : "height", N = ["top", "left"].includes(lt(o)), E = a.reference[p] - a.floating[y] + (N && ((x = s.offset) == null ? void 0 : x[p]) || 0) + (N ? 0 : w.crossAxis), R = a.reference[p] + a.reference[y] + (N ? 0 : ((b = s.offset) == null ? void 0 : b[p]) || 0) - (N ? w.crossAxis : 0);
|
|
6855
6855
|
v < E ? v = E : v > R && (v = R);
|
|
6856
6856
|
}
|
|
6857
6857
|
return {
|
|
@@ -6881,9 +6881,9 @@ const Lg = function(e) {
|
|
|
6881
6881
|
} = a.floating;
|
|
6882
6882
|
let w, x;
|
|
6883
6883
|
p === "top" || p === "bottom" ? (w = p, x = g === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (x = p, w = g === "end" ? "top" : "bottom");
|
|
6884
|
-
const b = h - f.top - f.bottom,
|
|
6884
|
+
const b = h - f.top - f.bottom, y = v - f.left - f.right, N = vt(h - f[w], b), E = vt(v - f[x], y), R = !t.middlewareData.shift;
|
|
6885
6885
|
let P = N, D = E;
|
|
6886
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (D =
|
|
6886
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = y), (r = t.middlewareData.shift) != null && r.enabled.y && (P = b), R && !g) {
|
|
6887
6887
|
const W = De(f.left, 0), z = De(f.right, 0), j = De(f.top, 0), H = De(f.bottom, 0);
|
|
6888
6888
|
m ? D = v - 2 * (W !== 0 || z !== 0 ? W + z : De(f.left, f.right)) : P = h - 2 * (j !== 0 || H !== 0 ? j + H : De(f.top, f.bottom));
|
|
6889
6889
|
}
|
|
@@ -7060,8 +7060,8 @@ function Mt(e, t, n, r) {
|
|
|
7060
7060
|
const g = ke(a), m = r && ze(r) ? ke(r) : r;
|
|
7061
7061
|
let v = g, h = Jr(v);
|
|
7062
7062
|
for (; h && r && m !== v; ) {
|
|
7063
|
-
const w = zt(h), x = h.getBoundingClientRect(), b = Ve(h),
|
|
7064
|
-
u *= w.x, d *= w.y, f *= w.x, p *= w.y, u +=
|
|
7063
|
+
const w = zt(h), x = h.getBoundingClientRect(), b = Ve(h), y = x.left + (h.clientLeft + parseFloat(b.paddingLeft)) * w.x, N = x.top + (h.clientTop + parseFloat(b.paddingTop)) * w.y;
|
|
7064
|
+
u *= w.x, d *= w.y, f *= w.x, p *= w.y, u += y, d += N, v = ke(h), h = Jr(v);
|
|
7065
7065
|
}
|
|
7066
7066
|
}
|
|
7067
7067
|
return Un({
|
|
@@ -7312,17 +7312,17 @@ function ov(e, t) {
|
|
|
7312
7312
|
rootMargin: -m + "px " + -v + "px " + -h + "px " + -w + "px",
|
|
7313
7313
|
threshold: De(0, vt(1, u)) || 1
|
|
7314
7314
|
};
|
|
7315
|
-
let
|
|
7315
|
+
let y = !0;
|
|
7316
7316
|
function N(E) {
|
|
7317
7317
|
const R = E[0].intersectionRatio;
|
|
7318
7318
|
if (R !== u) {
|
|
7319
|
-
if (!
|
|
7319
|
+
if (!y)
|
|
7320
7320
|
return s();
|
|
7321
7321
|
R ? s(!1, R) : r = setTimeout(() => {
|
|
7322
7322
|
s(!1, 1e-7);
|
|
7323
7323
|
}, 1e3);
|
|
7324
7324
|
}
|
|
7325
|
-
|
|
7325
|
+
y = !1;
|
|
7326
7326
|
}
|
|
7327
7327
|
try {
|
|
7328
7328
|
n = new IntersectionObserver(N, {
|
|
@@ -7356,8 +7356,8 @@ function av(e, t, n, r) {
|
|
|
7356
7356
|
s && (m = new ResizeObserver((x) => {
|
|
7357
7357
|
let [b] = x;
|
|
7358
7358
|
b && b.target === d && m && (m.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
|
|
7359
|
-
var
|
|
7360
|
-
(
|
|
7359
|
+
var y;
|
|
7360
|
+
(y = m) == null || y.observe(t);
|
|
7361
7361
|
})), n();
|
|
7362
7362
|
}), d && !u && m.observe(d), m.observe(t));
|
|
7363
7363
|
let v, h = u ? Mt(e) : null;
|
|
@@ -7455,7 +7455,7 @@ function mv(e) {
|
|
|
7455
7455
|
Kn(g, r) || m(r);
|
|
7456
7456
|
const [v, h] = c.useState(null), [w, x] = c.useState(null), b = c.useCallback((F) => {
|
|
7457
7457
|
F !== R.current && (R.current = F, h(F));
|
|
7458
|
-
}, []),
|
|
7458
|
+
}, []), y = c.useCallback((F) => {
|
|
7459
7459
|
F !== P.current && (P.current = F, x(F));
|
|
7460
7460
|
}, []), N = a || v, E = s || w, R = c.useRef(null), P = c.useRef(null), D = c.useRef(f), I = u != null, W = Br(u), z = Br(o), j = Br(d), H = c.useCallback(() => {
|
|
7461
7461
|
if (!R.current || !P.current)
|
|
@@ -7499,8 +7499,8 @@ function mv(e) {
|
|
|
7499
7499
|
reference: R,
|
|
7500
7500
|
floating: P,
|
|
7501
7501
|
setReference: b,
|
|
7502
|
-
setFloating:
|
|
7503
|
-
}), [b,
|
|
7502
|
+
setFloating: y
|
|
7503
|
+
}), [b, y]), L = c.useMemo(() => ({
|
|
7504
7504
|
reference: N,
|
|
7505
7505
|
floating: E
|
|
7506
7506
|
}), [N, E]), V = c.useMemo(() => {
|
|
@@ -7646,7 +7646,7 @@ var Bo = "PopperContent", [Sv, Rv] = Ji(Bo), oc = c.forwardRef(
|
|
|
7646
7646
|
updatePositionStrategy: m = "optimized",
|
|
7647
7647
|
onPlaced: v,
|
|
7648
7648
|
...h
|
|
7649
|
-
} = e, w = ec(Bo, n), [x, b] = c.useState(null),
|
|
7649
|
+
} = e, w = ec(Bo, n), [x, b] = c.useState(null), y = Q(t, (ve) => b(ve)), [N, E] = c.useState(null), R = fr(N), P = (R == null ? void 0 : R.width) ?? 0, D = (R == null ? void 0 : R.height) ?? 0, I = r + (a !== "center" ? "-" + a : ""), W = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, z = Array.isArray(d) ? d : [d], j = z.length > 0, H = {
|
|
7650
7650
|
padding: W,
|
|
7651
7651
|
boundary: z.filter(Mv),
|
|
7652
7652
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -7727,7 +7727,7 @@ var Bo = "PopperContent", [Sv, Rv] = Ji(Bo), oc = c.forwardRef(
|
|
|
7727
7727
|
"data-side": S,
|
|
7728
7728
|
"data-align": Y,
|
|
7729
7729
|
...h,
|
|
7730
|
-
ref:
|
|
7730
|
+
ref: y,
|
|
7731
7731
|
style: {
|
|
7732
7732
|
...h.style,
|
|
7733
7733
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -8063,7 +8063,7 @@ function RC(e) {
|
|
|
8063
8063
|
} else E.key === "Escape" && (p([]), m(-1));
|
|
8064
8064
|
}, b = (E) => {
|
|
8065
8065
|
h(!1), d(E.label), n == null || n(E.value), p(r), m(-1);
|
|
8066
|
-
},
|
|
8066
|
+
}, y = () => {
|
|
8067
8067
|
h(!0);
|
|
8068
8068
|
}, N = () => {
|
|
8069
8069
|
h(!1);
|
|
@@ -8077,8 +8077,8 @@ function RC(e) {
|
|
|
8077
8077
|
value: u,
|
|
8078
8078
|
onChange: w,
|
|
8079
8079
|
onKeyDown: x,
|
|
8080
|
-
onClick:
|
|
8081
|
-
onFocus:
|
|
8080
|
+
onClick: y,
|
|
8081
|
+
onFocus: y,
|
|
8082
8082
|
onBlur: N,
|
|
8083
8083
|
className: T("pr-10", o),
|
|
8084
8084
|
"aria-label": "Search field",
|
|
@@ -8707,11 +8707,11 @@ var Ho = "Checkbox", [Iw, AC] = we(Ho), [_w, jw] = Iw(Ho), Ac = c.forwardRef(
|
|
|
8707
8707
|
prop: o,
|
|
8708
8708
|
defaultProp: a,
|
|
8709
8709
|
onChange: d
|
|
8710
|
-
}),
|
|
8710
|
+
}), y = c.useRef(x);
|
|
8711
8711
|
return c.useEffect(() => {
|
|
8712
8712
|
const N = g == null ? void 0 : g.form;
|
|
8713
8713
|
if (N) {
|
|
8714
|
-
const E = () => b(
|
|
8714
|
+
const E = () => b(y.current);
|
|
8715
8715
|
return N.addEventListener("reset", E), () => N.removeEventListener("reset", E);
|
|
8716
8716
|
}
|
|
8717
8717
|
}, [g, b]), /* @__PURE__ */ l.jsxs(_w, { scope: n, state: x, disabled: i, children: [
|
|
@@ -8968,8 +8968,8 @@ function Cn(e) {
|
|
|
8968
8968
|
u.displayName = i;
|
|
8969
8969
|
const d = e + "CollectionItemSlot", f = "data-radix-collection-item", p = M.forwardRef(
|
|
8970
8970
|
(m, v) => {
|
|
8971
|
-
const { scope: h, children: w, ...x } = m, b = M.useRef(null),
|
|
8972
|
-
return M.useEffect(() => (N.itemMap.set(b, { ref: b, ...x }), () => void N.itemMap.delete(b))), /* @__PURE__ */ l.jsx(st, { [f]: "", ref:
|
|
8971
|
+
const { scope: h, children: w, ...x } = m, b = M.useRef(null), y = Q(v, b), N = a(d, h);
|
|
8972
|
+
return M.useEffect(() => (N.itemMap.set(b, { ref: b, ...x }), () => void N.itemMap.delete(b))), /* @__PURE__ */ l.jsx(st, { [f]: "", ref: y, children: w });
|
|
8973
8973
|
}
|
|
8974
8974
|
);
|
|
8975
8975
|
p.displayName = d;
|
|
@@ -9018,12 +9018,12 @@ var qw = c.forwardRef((e, t) => {
|
|
|
9018
9018
|
prop: s,
|
|
9019
9019
|
defaultProp: i,
|
|
9020
9020
|
onChange: u
|
|
9021
|
-
}), [x, b] = c.useState(!1),
|
|
9021
|
+
}), [x, b] = c.useState(!1), y = he(d), N = $c(n), E = c.useRef(!1), [R, P] = c.useState(0);
|
|
9022
9022
|
return c.useEffect(() => {
|
|
9023
9023
|
const D = g.current;
|
|
9024
9024
|
if (D)
|
|
9025
|
-
return D.addEventListener(zr,
|
|
9026
|
-
}, [
|
|
9025
|
+
return D.addEventListener(zr, y), () => D.removeEventListener(zr, y);
|
|
9026
|
+
}, [y]), /* @__PURE__ */ l.jsx(
|
|
9027
9027
|
Uw,
|
|
9028
9028
|
{
|
|
9029
9029
|
scope: n,
|
|
@@ -9270,7 +9270,7 @@ var _e = "MenuContent", [lb, Qo] = kt(_e), qc = c.forwardRef(
|
|
|
9270
9270
|
onDismiss: m,
|
|
9271
9271
|
disableOutsideScroll: v,
|
|
9272
9272
|
...h
|
|
9273
|
-
} = e, w = Nt(_e, n), x = Sn(_e, n), b = En(n),
|
|
9273
|
+
} = e, w = Nt(_e, n), x = Sn(_e, n), b = En(n), y = Yc(n), N = ob(n), [E, R] = c.useState(null), P = c.useRef(null), D = Q(t, P, w.onContentChange), I = c.useRef(0), W = c.useRef(""), z = c.useRef(0), j = c.useRef(null), H = c.useRef("right"), B = c.useRef(0), ne = v ? gn : c.Fragment, L = v ? { as: st, allowPinchZoom: !0 } : void 0, V = (S) => {
|
|
9274
9274
|
var k, oe;
|
|
9275
9275
|
const Y = W.current + S, X = N().filter((ae) => !ae.disabled), K = document.activeElement, G = (k = X.find((ae) => ae.ref.current === K)) == null ? void 0 : k.textValue, q = X.map((ae) => ae.textValue), le = Nb(q, Y, G), fe = (oe = X.find((ae) => ae.textValue === le)) == null ? void 0 : oe.ref.current;
|
|
9276
9276
|
(function ae(ee) {
|
|
@@ -9334,7 +9334,7 @@ var _e = "MenuContent", [lb, Qo] = kt(_e), qc = c.forwardRef(
|
|
|
9334
9334
|
gr,
|
|
9335
9335
|
{
|
|
9336
9336
|
asChild: !0,
|
|
9337
|
-
...
|
|
9337
|
+
...y,
|
|
9338
9338
|
dir: x.dir,
|
|
9339
9339
|
orientation: "vertical",
|
|
9340
9340
|
loop: r,
|
|
@@ -9641,15 +9641,15 @@ var an = "MenuSubTrigger", ll = c.forwardRef(
|
|
|
9641
9641
|
f();
|
|
9642
9642
|
const g = (m = n.content) == null ? void 0 : m.getBoundingClientRect();
|
|
9643
9643
|
if (g) {
|
|
9644
|
-
const h = (v = n.content) == null ? void 0 : v.dataset.side, w = h === "right", x = w ? -5 : 5, b = g[w ? "left" : "right"],
|
|
9644
|
+
const h = (v = n.content) == null ? void 0 : v.dataset.side, w = h === "right", x = w ? -5 : 5, b = g[w ? "left" : "right"], y = g[w ? "right" : "left"];
|
|
9645
9645
|
a.onPointerGraceIntentChange({
|
|
9646
9646
|
area: [
|
|
9647
9647
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
9648
9648
|
// consistently within polygon bounds
|
|
9649
9649
|
{ x: p.clientX + x, y: p.clientY },
|
|
9650
9650
|
{ x: b, y: g.top },
|
|
9651
|
-
{ x:
|
|
9652
|
-
{ x:
|
|
9651
|
+
{ x: y, y: g.top },
|
|
9652
|
+
{ x: y, y: g.bottom },
|
|
9653
9653
|
{ x: b, y: g.bottom }
|
|
9654
9654
|
],
|
|
9655
9655
|
side: h
|
|
@@ -10109,12 +10109,12 @@ var zl = aa, Qt = "NavigationMenu", [sa, Vl, Cx] = Cn(Qt), [no, Nx, Ex] = Cn(Qt)
|
|
|
10109
10109
|
orientation: u = "horizontal",
|
|
10110
10110
|
dir: d,
|
|
10111
10111
|
...f
|
|
10112
|
-
} = e, [p, g] = c.useState(null), m = Q(t, (I) => g(I)), v = Dt(d), h = c.useRef(0), w = c.useRef(0), x = c.useRef(0), [b,
|
|
10112
|
+
} = e, [p, g] = c.useState(null), m = Q(t, (I) => g(I)), v = Dt(d), h = c.useRef(0), w = c.useRef(0), x = c.useRef(0), [b, y] = c.useState(!0), [N = "", E] = Ce({
|
|
10113
10113
|
prop: r,
|
|
10114
10114
|
onChange: (I) => {
|
|
10115
10115
|
const W = I !== "", z = i > 0;
|
|
10116
|
-
W ? (window.clearTimeout(x.current), z &&
|
|
10117
|
-
() =>
|
|
10116
|
+
W ? (window.clearTimeout(x.current), z && y(!1)) : (window.clearTimeout(x.current), x.current = window.setTimeout(
|
|
10117
|
+
() => y(!0),
|
|
10118
10118
|
i
|
|
10119
10119
|
)), o == null || o(I);
|
|
10120
10120
|
},
|
|
@@ -10219,7 +10219,7 @@ var Gl = (e) => {
|
|
|
10219
10219
|
onTriggerLeave: p,
|
|
10220
10220
|
onContentEnter: g,
|
|
10221
10221
|
onContentLeave: m
|
|
10222
|
-
} = e, [v, h] = c.useState(null), [w, x] = c.useState(/* @__PURE__ */ new Map()), [b,
|
|
10222
|
+
} = e, [v, h] = c.useState(null), [w, x] = c.useState(/* @__PURE__ */ new Map()), [b, y] = c.useState(null);
|
|
10223
10223
|
return /* @__PURE__ */ l.jsx(
|
|
10224
10224
|
Sx,
|
|
10225
10225
|
{
|
|
@@ -10234,7 +10234,7 @@ var Gl = (e) => {
|
|
|
10234
10234
|
viewport: v,
|
|
10235
10235
|
onViewportChange: h,
|
|
10236
10236
|
indicatorTrack: b,
|
|
10237
|
-
onIndicatorTrackChange:
|
|
10237
|
+
onIndicatorTrackChange: y,
|
|
10238
10238
|
onTriggerEnter: he(f),
|
|
10239
10239
|
onTriggerLeave: he(p),
|
|
10240
10240
|
onContentEnter: he(g),
|
|
@@ -10475,13 +10475,13 @@ var kx = c.forwardRef((e, t) => {
|
|
|
10475
10475
|
...d
|
|
10476
10476
|
} = e, f = je(Ht, n), p = c.useRef(null), g = Q(p, t), m = su(f.baseId, r), v = iu(f.baseId, r), h = Vl(n), w = c.useRef(null), { onItemDismiss: x } = f;
|
|
10477
10477
|
c.useEffect(() => {
|
|
10478
|
-
const
|
|
10479
|
-
if (f.isRootMenu &&
|
|
10478
|
+
const y = p.current;
|
|
10479
|
+
if (f.isRootMenu && y) {
|
|
10480
10480
|
const N = () => {
|
|
10481
10481
|
var E;
|
|
10482
|
-
x(), i(),
|
|
10482
|
+
x(), i(), y.contains(document.activeElement) && ((E = o.current) == null || E.focus());
|
|
10483
10483
|
};
|
|
10484
|
-
return
|
|
10484
|
+
return y.addEventListener(Wn, N), () => y.removeEventListener(Wn, N);
|
|
10485
10485
|
}
|
|
10486
10486
|
}, [f.isRootMenu, e.value, o, x, i]);
|
|
10487
10487
|
const b = c.useMemo(() => {
|
|
@@ -10510,35 +10510,35 @@ var kx = c.forwardRef((e, t) => {
|
|
|
10510
10510
|
disableOutsidePointerEvents: !1,
|
|
10511
10511
|
onDismiss: () => {
|
|
10512
10512
|
var N;
|
|
10513
|
-
const
|
|
10513
|
+
const y = new Event(Wn, {
|
|
10514
10514
|
bubbles: !0,
|
|
10515
10515
|
cancelable: !0
|
|
10516
10516
|
});
|
|
10517
|
-
(N = p.current) == null || N.dispatchEvent(
|
|
10517
|
+
(N = p.current) == null || N.dispatchEvent(y);
|
|
10518
10518
|
},
|
|
10519
|
-
onFocusOutside: A(e.onFocusOutside, (
|
|
10519
|
+
onFocusOutside: A(e.onFocusOutside, (y) => {
|
|
10520
10520
|
var E;
|
|
10521
10521
|
u();
|
|
10522
|
-
const N =
|
|
10523
|
-
(E = f.rootNavigationMenu) != null && E.contains(N) &&
|
|
10522
|
+
const N = y.target;
|
|
10523
|
+
(E = f.rootNavigationMenu) != null && E.contains(N) && y.preventDefault();
|
|
10524
10524
|
}),
|
|
10525
|
-
onPointerDownOutside: A(e.onPointerDownOutside, (
|
|
10525
|
+
onPointerDownOutside: A(e.onPointerDownOutside, (y) => {
|
|
10526
10526
|
var P;
|
|
10527
|
-
const N =
|
|
10527
|
+
const N = y.target, E = h().some((D) => {
|
|
10528
10528
|
var I;
|
|
10529
10529
|
return (I = D.ref.current) == null ? void 0 : I.contains(N);
|
|
10530
10530
|
}), R = f.isRootMenu && ((P = f.viewport) == null ? void 0 : P.contains(N));
|
|
10531
|
-
(E || R || !f.isRootMenu) &&
|
|
10531
|
+
(E || R || !f.isRootMenu) && y.preventDefault();
|
|
10532
10532
|
}),
|
|
10533
|
-
onKeyDown: A(e.onKeyDown, (
|
|
10533
|
+
onKeyDown: A(e.onKeyDown, (y) => {
|
|
10534
10534
|
var R;
|
|
10535
|
-
const N =
|
|
10536
|
-
if (
|
|
10537
|
-
const P = oo(
|
|
10538
|
-
ua(z) ?
|
|
10535
|
+
const N = y.altKey || y.ctrlKey || y.metaKey;
|
|
10536
|
+
if (y.key === "Tab" && !N) {
|
|
10537
|
+
const P = oo(y.currentTarget), D = document.activeElement, I = P.findIndex((j) => j === D), z = y.shiftKey ? P.slice(0, I).reverse() : P.slice(I + 1, P.length);
|
|
10538
|
+
ua(z) ? y.preventDefault() : (R = a.current) == null || R.focus();
|
|
10539
10539
|
}
|
|
10540
10540
|
}),
|
|
10541
|
-
onEscapeKeyDown: A(e.onEscapeKeyDown, (
|
|
10541
|
+
onEscapeKeyDown: A(e.onEscapeKeyDown, (y) => {
|
|
10542
10542
|
s.current = !0;
|
|
10543
10543
|
})
|
|
10544
10544
|
}
|
|
@@ -10571,9 +10571,9 @@ var Ix = c.forwardRef((e, t) => {
|
|
|
10571
10571
|
},
|
|
10572
10572
|
onPointerEnter: A(e.onPointerEnter, a.onContentEnter),
|
|
10573
10573
|
onPointerLeave: A(e.onPointerLeave, Zn(a.onContentLeave)),
|
|
10574
|
-
children: Array.from(i.items).map(([x, { ref: b, forceMount:
|
|
10574
|
+
children: Array.from(i.items).map(([x, { ref: b, forceMount: y, ...N }]) => {
|
|
10575
10575
|
const E = h === x;
|
|
10576
|
-
return /* @__PURE__ */ l.jsx(be, { present:
|
|
10576
|
+
return /* @__PURE__ */ l.jsx(be, { present: y || E, children: /* @__PURE__ */ l.jsx(
|
|
10577
10577
|
nu,
|
|
10578
10578
|
{
|
|
10579
10579
|
...N,
|
|
@@ -11237,7 +11237,7 @@ var dy = [" ", "Enter", "ArrowUp", "ArrowDown"], fy = [" ", "Enter"], Rn = "Sele
|
|
|
11237
11237
|
disabled: g,
|
|
11238
11238
|
required: m,
|
|
11239
11239
|
form: v
|
|
11240
|
-
} = e, h = Cr(t), [w, x] = c.useState(null), [b,
|
|
11240
|
+
} = e, h = Cr(t), [w, x] = c.useState(null), [b, y] = c.useState(null), [N, E] = c.useState(!1), R = Dt(d), [P = !1, D] = Ce({
|
|
11241
11241
|
prop: r,
|
|
11242
11242
|
defaultProp: o,
|
|
11243
11243
|
onChange: a
|
|
@@ -11254,7 +11254,7 @@ var dy = [" ", "Enter", "ArrowUp", "ArrowDown"], fy = [" ", "Enter"], Rn = "Sele
|
|
|
11254
11254
|
trigger: w,
|
|
11255
11255
|
onTriggerChange: x,
|
|
11256
11256
|
valueNode: b,
|
|
11257
|
-
onValueNodeChange:
|
|
11257
|
+
onValueNodeChange: y,
|
|
11258
11258
|
valueNodeHasChildren: N,
|
|
11259
11259
|
onValueNodeHasChildrenChange: E,
|
|
11260
11260
|
contentId: Se(),
|
|
@@ -11309,7 +11309,7 @@ Lu.displayName = Rn;
|
|
|
11309
11309
|
var Fu = "SelectTrigger", Wu = c.forwardRef(
|
|
11310
11310
|
(e, t) => {
|
|
11311
11311
|
const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = Cr(n), s = Et(Fu, n), i = s.disabled || r, u = Q(t, s.onTriggerChange), d = yr(n), f = c.useRef("touch"), [p, g, m] = ud((h) => {
|
|
11312
|
-
const w = d().filter((
|
|
11312
|
+
const w = d().filter((y) => !y.disabled), x = w.find((y) => y.value === s.value), b = dd(w, h, x);
|
|
11313
11313
|
b !== void 0 && s.onValueChange(b.value);
|
|
11314
11314
|
}), v = (h) => {
|
|
11315
11315
|
i || (s.onOpenChange(!0), m()), h && (s.triggerPointerDownPosRef.current = {
|
|
@@ -11412,12 +11412,12 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
|
|
|
11412
11412
|
avoidCollisions: w,
|
|
11413
11413
|
//
|
|
11414
11414
|
...x
|
|
11415
|
-
} = e, b = Et(Tt, n), [
|
|
11415
|
+
} = e, b = Et(Tt, n), [y, N] = c.useState(null), [E, R] = c.useState(null), P = Q(t, (k) => N(k)), [D, I] = c.useState(null), [W, z] = c.useState(
|
|
11416
11416
|
null
|
|
11417
11417
|
), j = yr(n), [H, B] = c.useState(!1), ne = c.useRef(!1);
|
|
11418
11418
|
c.useEffect(() => {
|
|
11419
|
-
if (
|
|
11420
|
-
}, [
|
|
11419
|
+
if (y) return ar(y);
|
|
11420
|
+
}, [y]), rr();
|
|
11421
11421
|
const L = c.useCallback(
|
|
11422
11422
|
(k) => {
|
|
11423
11423
|
const [oe, ...ae] = j().map((se) => se.ref.current), [ee] = ae.slice(-1), re = document.activeElement;
|
|
@@ -11426,15 +11426,15 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
|
|
|
11426
11426
|
},
|
|
11427
11427
|
[j, E]
|
|
11428
11428
|
), V = c.useCallback(
|
|
11429
|
-
() => L([D,
|
|
11430
|
-
[L, D,
|
|
11429
|
+
() => L([D, y]),
|
|
11430
|
+
[L, D, y]
|
|
11431
11431
|
);
|
|
11432
11432
|
c.useEffect(() => {
|
|
11433
11433
|
H && V();
|
|
11434
11434
|
}, [H, V]);
|
|
11435
11435
|
const { onOpenChange: F, triggerPointerDownPosRef: S } = b;
|
|
11436
11436
|
c.useEffect(() => {
|
|
11437
|
-
if (
|
|
11437
|
+
if (y) {
|
|
11438
11438
|
let k = { x: 0, y: 0 };
|
|
11439
11439
|
const oe = (ee) => {
|
|
11440
11440
|
var re, se;
|
|
@@ -11443,13 +11443,13 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
|
|
|
11443
11443
|
y: Math.abs(Math.round(ee.pageY) - (((se = S.current) == null ? void 0 : se.y) ?? 0))
|
|
11444
11444
|
};
|
|
11445
11445
|
}, ae = (ee) => {
|
|
11446
|
-
k.x <= 10 && k.y <= 10 ? ee.preventDefault() :
|
|
11446
|
+
k.x <= 10 && k.y <= 10 ? ee.preventDefault() : y.contains(ee.target) || F(!1), document.removeEventListener("pointermove", oe), S.current = null;
|
|
11447
11447
|
};
|
|
11448
11448
|
return S.current !== null && (document.addEventListener("pointermove", oe), document.addEventListener("pointerup", ae, { capture: !0, once: !0 })), () => {
|
|
11449
11449
|
document.removeEventListener("pointermove", oe), document.removeEventListener("pointerup", ae, { capture: !0 });
|
|
11450
11450
|
};
|
|
11451
11451
|
}
|
|
11452
|
-
}, [
|
|
11452
|
+
}, [y, F, S]), c.useEffect(() => {
|
|
11453
11453
|
const k = () => F(!1);
|
|
11454
11454
|
return window.addEventListener("blur", k), window.addEventListener("resize", k), () => {
|
|
11455
11455
|
window.removeEventListener("blur", k), window.removeEventListener("resize", k);
|
|
@@ -11464,7 +11464,7 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
|
|
|
11464
11464
|
(b.value !== void 0 && b.value === oe || ee) && (I(k), ee && (ne.current = !0));
|
|
11465
11465
|
},
|
|
11466
11466
|
[b.value]
|
|
11467
|
-
), G = c.useCallback(() =>
|
|
11467
|
+
), G = c.useCallback(() => y == null ? void 0 : y.focus(), [y]), q = c.useCallback(
|
|
11468
11468
|
(k, oe, ae) => {
|
|
11469
11469
|
const ee = !ne.current && !ae;
|
|
11470
11470
|
(b.value !== void 0 && b.value === oe || ee) && z(k);
|
|
@@ -11486,7 +11486,7 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
|
|
|
11486
11486
|
Hu,
|
|
11487
11487
|
{
|
|
11488
11488
|
scope: n,
|
|
11489
|
-
content:
|
|
11489
|
+
content: y,
|
|
11490
11490
|
viewport: E,
|
|
11491
11491
|
onViewportChange: R,
|
|
11492
11492
|
itemRefCallback: K,
|
|
@@ -11562,7 +11562,7 @@ var We = 10, [Hu, St] = Jt(Tt), wy = "SelectContentImpl", Gu = c.forwardRef(
|
|
|
11562
11562
|
);
|
|
11563
11563
|
Gu.displayName = wy;
|
|
11564
11564
|
var by = "SelectItemAlignedPosition", Uu = c.forwardRef((e, t) => {
|
|
11565
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Et(Tt, n), s = St(Tt, n), [i, u] = c.useState(null), [d, f] = c.useState(null), p = Q(t, (P) => f(P)), g = yr(n), m = c.useRef(!1), v = c.useRef(!0), { viewport: h, selectedItem: w, selectedItemText: x, focusSelectedItem: b } = s,
|
|
11565
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Et(Tt, n), s = St(Tt, n), [i, u] = c.useState(null), [d, f] = c.useState(null), p = Q(t, (P) => f(P)), g = yr(n), m = c.useRef(!1), v = c.useRef(!0), { viewport: h, selectedItem: w, selectedItemText: x, focusSelectedItem: b } = s, y = c.useCallback(() => {
|
|
11566
11566
|
if (a.trigger && a.valueNode && i && d && h && w && x) {
|
|
11567
11567
|
const P = a.trigger.getBoundingClientRect(), D = d.getBoundingClientRect(), I = a.valueNode.getBoundingClientRect(), W = x.getBoundingClientRect();
|
|
11568
11568
|
if (a.dir !== "rtl") {
|
|
@@ -11617,16 +11617,16 @@ var by = "SelectItemAlignedPosition", Uu = c.forwardRef((e, t) => {
|
|
|
11617
11617
|
a.dir,
|
|
11618
11618
|
r
|
|
11619
11619
|
]);
|
|
11620
|
-
ge(() =>
|
|
11620
|
+
ge(() => y(), [y]);
|
|
11621
11621
|
const [N, E] = c.useState();
|
|
11622
11622
|
ge(() => {
|
|
11623
11623
|
d && E(window.getComputedStyle(d).zIndex);
|
|
11624
11624
|
}, [d]);
|
|
11625
11625
|
const R = c.useCallback(
|
|
11626
11626
|
(P) => {
|
|
11627
|
-
P && v.current === !0 && (
|
|
11627
|
+
P && v.current === !0 && (y(), b == null || b(), v.current = !1);
|
|
11628
11628
|
},
|
|
11629
|
-
[
|
|
11629
|
+
[y, b]
|
|
11630
11630
|
);
|
|
11631
11631
|
return /* @__PURE__ */ l.jsx(
|
|
11632
11632
|
yy,
|
|
@@ -11735,8 +11735,8 @@ var [yy, ga] = Jt(Tt, {}), io = "SelectViewport", Ku = c.forwardRef(
|
|
|
11735
11735
|
if (m > 0) {
|
|
11736
11736
|
const v = window.innerHeight - We * 2, h = parseFloat(p.style.minHeight), w = parseFloat(p.style.height), x = Math.max(h, w);
|
|
11737
11737
|
if (x < v) {
|
|
11738
|
-
const b = x + m,
|
|
11739
|
-
p.style.height =
|
|
11738
|
+
const b = x + m, y = Math.min(v, b), N = b - y;
|
|
11739
|
+
p.style.height = y + "px", p.style.bottom === "0px" && (f.scrollTop = N > 0 ? N : 0, p.style.justifyContent = "flex-end");
|
|
11740
11740
|
}
|
|
11741
11741
|
}
|
|
11742
11742
|
}
|
|
@@ -11773,8 +11773,8 @@ var Jn = "SelectItem", [Ey, Ju] = Jt(Jn), ed = c.forwardRef(
|
|
|
11773
11773
|
} = e, i = Et(Jn, n), u = St(Jn, n), d = i.value === r, [f, p] = c.useState(a ?? ""), [g, m] = c.useState(!1), v = Q(
|
|
11774
11774
|
t,
|
|
11775
11775
|
(b) => {
|
|
11776
|
-
var
|
|
11777
|
-
return (
|
|
11776
|
+
var y;
|
|
11777
|
+
return (y = u.itemRefCallback) == null ? void 0 : y.call(u, b, r, o);
|
|
11778
11778
|
}
|
|
11779
11779
|
), h = Se(), w = c.useRef("touch"), x = () => {
|
|
11780
11780
|
o || (i.onValueChange(r), i.onOpenChange(!1));
|
|
@@ -11792,7 +11792,7 @@ var Jn = "SelectItem", [Ey, Ju] = Jt(Jn), ed = c.forwardRef(
|
|
|
11792
11792
|
textId: h,
|
|
11793
11793
|
isSelected: d,
|
|
11794
11794
|
onItemTextChange: c.useCallback((b) => {
|
|
11795
|
-
p((
|
|
11795
|
+
p((y) => y || ((b == null ? void 0 : b.textContent) ?? "").trim());
|
|
11796
11796
|
}, []),
|
|
11797
11797
|
children: /* @__PURE__ */ l.jsx(
|
|
11798
11798
|
xr.ItemSlot,
|
|
@@ -11826,12 +11826,12 @@ var Jn = "SelectItem", [Ey, Ju] = Jt(Jn), ed = c.forwardRef(
|
|
|
11826
11826
|
w.current = b.pointerType;
|
|
11827
11827
|
}),
|
|
11828
11828
|
onPointerMove: A(s.onPointerMove, (b) => {
|
|
11829
|
-
var
|
|
11830
|
-
w.current = b.pointerType, o ? (
|
|
11829
|
+
var y;
|
|
11830
|
+
w.current = b.pointerType, o ? (y = u.onItemLeave) == null || y.call(u) : w.current === "mouse" && b.currentTarget.focus({ preventScroll: !0 });
|
|
11831
11831
|
}),
|
|
11832
11832
|
onPointerLeave: A(s.onPointerLeave, (b) => {
|
|
11833
|
-
var
|
|
11834
|
-
b.currentTarget === document.activeElement && ((
|
|
11833
|
+
var y;
|
|
11834
|
+
b.currentTarget === document.activeElement && ((y = u.onItemLeave) == null || y.call(u));
|
|
11835
11835
|
}),
|
|
11836
11836
|
onKeyDown: A(s.onKeyDown, (b) => {
|
|
11837
11837
|
var N;
|
|
@@ -12128,7 +12128,7 @@ var va = "Switch", [Wy, XC] = we(va), [By, zy] = Wy(va), yd = c.forwardRef(
|
|
|
12128
12128
|
onCheckedChange: d,
|
|
12129
12129
|
form: f,
|
|
12130
12130
|
...p
|
|
12131
|
-
} = e, [g, m] = c.useState(null), v = Q(t, (
|
|
12131
|
+
} = e, [g, m] = c.useState(null), v = Q(t, (y) => m(y)), h = c.useRef(!1), w = g ? f || !!g.closest("form") : !0, [x = !1, b] = Ce({
|
|
12132
12132
|
prop: o,
|
|
12133
12133
|
defaultProp: a,
|
|
12134
12134
|
onChange: d
|
|
@@ -12147,8 +12147,8 @@ var va = "Switch", [Wy, XC] = we(va), [By, zy] = Wy(va), yd = c.forwardRef(
|
|
|
12147
12147
|
value: u,
|
|
12148
12148
|
...p,
|
|
12149
12149
|
ref: v,
|
|
12150
|
-
onClick: A(e.onClick, (
|
|
12151
|
-
b((N) => !N), w && (h.current =
|
|
12150
|
+
onClick: A(e.onClick, (y) => {
|
|
12151
|
+
b((N) => !N), w && (h.current = y.isPropagationStopped(), h.current || y.stopPropagation());
|
|
12152
12152
|
})
|
|
12153
12153
|
}
|
|
12154
12154
|
),
|
|
@@ -12585,7 +12585,7 @@ function M0(...e) {
|
|
|
12585
12585
|
}
|
|
12586
12586
|
var T0 = (e) => {
|
|
12587
12587
|
var t, n, r, o, a, s, i, u, d, f, p;
|
|
12588
|
-
let { invert: g, toast: m, unstyled: v, interacting: h, setHeights: w, visibleToasts: x, heights: b, index:
|
|
12588
|
+
let { invert: g, toast: m, unstyled: v, interacting: h, setHeights: w, visibleToasts: x, heights: b, index: y, toasts: N, expanded: E, removeToast: R, defaultRichColors: P, closeButton: D, style: I, cancelButtonStyle: W, actionButtonStyle: z, className: j = "", descriptionClassName: H = "", duration: B, position: ne, gap: L, loadingIcon: V, expandByDefault: F, classNames: S, icons: Y, closeButtonAriaLabel: X = "Close toast", pauseWhenPageIsHidden: K, cn: G } = e, [q, le] = M.useState(!1), [fe, k] = M.useState(!1), [oe, ae] = M.useState(!1), [ee, re] = M.useState(!1), [se, ve] = M.useState(!1), [Ne, Te] = M.useState(0), [nt, Oe] = M.useState(0), rt = M.useRef(m.duration || B || Ns), He = M.useRef(null), ot = M.useRef(null), C = y === 0, $ = y + 1 <= x, _ = m.type, te = m.dismissible !== !1, xe = m.className || "", ue = m.descriptionClassName || "", U = M.useMemo(() => b.findIndex((Z) => Z.toastId === m.id) || 0, [b, m.id]), $e = M.useMemo(() => {
|
|
12589
12589
|
var Z;
|
|
12590
12590
|
return (Z = m.closeButton) != null ? Z : D;
|
|
12591
12591
|
}, [m.closeButton, D]);
|
|
@@ -12631,7 +12631,7 @@ var T0 = (e) => {
|
|
|
12631
12631
|
var Z, ce, me;
|
|
12632
12632
|
return Y != null && Y.loading ? M.createElement("div", { className: G(S == null ? void 0 : S.loader, (Z = m == null ? void 0 : m.classNames) == null ? void 0 : Z.loader, "sonner-loader"), "data-visible": _ === "loading" }, Y.loading) : V ? M.createElement("div", { className: G(S == null ? void 0 : S.loader, (ce = m == null ? void 0 : m.classNames) == null ? void 0 : ce.loader, "sonner-loader"), "data-visible": _ === "loading" }, V) : M.createElement(l0, { className: G(S == null ? void 0 : S.loader, (me = m == null ? void 0 : m.classNames) == null ? void 0 : me.loader), visible: _ === "loading" });
|
|
12633
12633
|
}
|
|
12634
|
-
return M.createElement("li", { tabIndex: 0, ref: ot, className: G(j, xe, 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 || v), "data-mounted": q, "data-promise": !!m.promise, "data-swiped": se, "data-removed": fe, "data-visible": $, "data-y-position": Le, "data-x-position": It, "data-index":
|
|
12634
|
+
return M.createElement("li", { tabIndex: 0, ref: ot, className: G(j, xe, 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 || v), "data-mounted": q, "data-promise": !!m.promise, "data-swiped": se, "data-removed": fe, "data-visible": $, "data-y-position": Le, "data-x-position": It, "data-index": y, "data-front": C, "data-swiping": oe, "data-dismissible": te, "data-type": _, "data-invert": sf, "data-swipe-out": ee, "data-expanded": !!(E || F && q), style: { "--index": y, "--toasts-before": y, "--z-index": N.length - y, "--offset": `${fe ? Ne : pe.current}px`, "--initial-height": F ? "auto" : `${nt}px`, ...I, ...m.style }, onPointerDown: (Z) => {
|
|
12635
12635
|
Rr || !te || (He.current = /* @__PURE__ */ new Date(), Te(pe.current), Z.target.setPointerCapture(Z.pointerId), Z.target.tagName !== "BUTTON" && (ae(!0), Ke.current = { x: Z.clientX, y: Z.clientY }));
|
|
12636
12636
|
}, onPointerUp: () => {
|
|
12637
12637
|
var Z, ce, me, Fe;
|
|
@@ -12666,7 +12666,7 @@ function Es() {
|
|
|
12666
12666
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
12667
12667
|
}
|
|
12668
12668
|
var A0 = ho(function(e, t) {
|
|
12669
|
-
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: s, className: i, offset: u, theme: d = "light", richColors: f, duration: p, style: g, visibleToasts: m = C0, toastOptions: v, dir: h = Es(), gap: w = S0, loadingIcon: x, icons: b, containerAriaLabel:
|
|
12669
|
+
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: s, className: i, offset: u, theme: d = "light", richColors: f, duration: p, style: g, visibleToasts: m = C0, toastOptions: v, dir: h = Es(), gap: w = S0, loadingIcon: x, icons: b, containerAriaLabel: y = "Notifications", pauseWhenPageIsHidden: N, cn: E = M0 } = e, [R, P] = M.useState([]), D = M.useMemo(() => Array.from(new Set([r].concat(R.filter((K) => K.position).map((K) => K.position)))), [R, r]), [I, W] = M.useState([]), [z, j] = M.useState(!1), [H, B] = M.useState(!1), [ne, L] = M.useState(d !== "system" ? d : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), V = M.useRef(null), F = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), S = M.useRef(null), Y = M.useRef(!1), X = M.useCallback((K) => {
|
|
12670
12670
|
P((G) => {
|
|
12671
12671
|
var q;
|
|
12672
12672
|
return (q = G.find((le) => le.id === K.id)) != null && q.delete || Ae.dismiss(K.id), G.filter(({ id: le }) => le !== K.id);
|
|
@@ -12717,7 +12717,7 @@ var A0 = ho(function(e, t) {
|
|
|
12717
12717
|
if (V.current) return () => {
|
|
12718
12718
|
S.current && (S.current.focus({ preventScroll: !0 }), S.current = null, Y.current = !1);
|
|
12719
12719
|
};
|
|
12720
|
-
}, [V.current]), M.createElement("section", { "aria-label": `${
|
|
12720
|
+
}, [V.current]), M.createElement("section", { "aria-label": `${y} ${F}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false" }, D.map((K, G) => {
|
|
12721
12721
|
var q;
|
|
12722
12722
|
let [le, fe] = K.split("-");
|
|
12723
12723
|
return R.length ? M.createElement("ol", { key: K, dir: h === "auto" ? Es() : h, tabIndex: -1, ref: V, className: i, "data-sonner-toaster": !0, "data-theme": ne, "data-y-position": le, "data-lifted": z && R.length > 1 && !a, "data-x-position": fe, style: { "--front-toast-height": `${((q = I[0]) == null ? void 0 : q.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || N0, "--width": `${E0}px`, "--gap": `${w}px`, ...g }, onBlur: (k) => {
|
|
@@ -13010,7 +13010,7 @@ var Sr = "Tooltip", [B0, Pn] = Nr(Sr), Qd = (e) => {
|
|
|
13010
13010
|
onChange: (P) => {
|
|
13011
13011
|
P ? (u.onOpen(), document.dispatchEvent(new CustomEvent(mo))) : u.onClose(), a == null || a(P);
|
|
13012
13012
|
}
|
|
13013
|
-
}),
|
|
13013
|
+
}), y = c.useMemo(() => x ? w.current ? "delayed-open" : "instant-open" : "closed", [x]), N = c.useCallback(() => {
|
|
13014
13014
|
window.clearTimeout(m.current), m.current = 0, w.current = !1, b(!0);
|
|
13015
13015
|
}, [b]), E = c.useCallback(() => {
|
|
13016
13016
|
window.clearTimeout(m.current), m.current = 0, b(!1);
|
|
@@ -13027,7 +13027,7 @@ var Sr = "Tooltip", [B0, Pn] = Nr(Sr), Qd = (e) => {
|
|
|
13027
13027
|
scope: t,
|
|
13028
13028
|
contentId: g,
|
|
13029
13029
|
open: x,
|
|
13030
|
-
stateAttribute:
|
|
13030
|
+
stateAttribute: y,
|
|
13031
13031
|
trigger: f,
|
|
13032
13032
|
onTriggerChange: p,
|
|
13033
13033
|
onTriggerEnter: c.useCallback(() => {
|
|
@@ -13090,7 +13090,7 @@ var Gt = "TooltipContent", tf = c.forwardRef(
|
|
|
13090
13090
|
i(null), p(!1);
|
|
13091
13091
|
}, [p]), m = c.useCallback(
|
|
13092
13092
|
(v, h) => {
|
|
13093
|
-
const w = v.currentTarget, x = { x: v.clientX, y: v.clientY }, b = K0(x, w.getBoundingClientRect()),
|
|
13093
|
+
const w = v.currentTarget, x = { x: v.clientX, y: v.clientY }, b = K0(x, w.getBoundingClientRect()), y = q0(x, b), N = X0(h.getBoundingClientRect()), E = Q0([...y, ...N]);
|
|
13094
13094
|
i(E), p(!0);
|
|
13095
13095
|
},
|
|
13096
13096
|
[p]
|
|
@@ -13105,8 +13105,8 @@ var Gt = "TooltipContent", tf = c.forwardRef(
|
|
|
13105
13105
|
}, [u, f, m, g]), c.useEffect(() => {
|
|
13106
13106
|
if (s) {
|
|
13107
13107
|
const v = (h) => {
|
|
13108
|
-
const w = h.target, x = { x: h.clientX, y: h.clientY }, b = (u == null ? void 0 : u.contains(w)) || (f == null ? void 0 : f.contains(w)),
|
|
13109
|
-
b ? g() :
|
|
13108
|
+
const w = h.target, x = { x: h.clientX, y: h.clientY }, b = (u == null ? void 0 : u.contains(w)) || (f == null ? void 0 : f.contains(w)), y = !Z0(x, s);
|
|
13109
|
+
b ? g() : y && (g(), d());
|
|
13110
13110
|
};
|
|
13111
13111
|
return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
|
|
13112
13112
|
}
|
|
@@ -13530,9 +13530,9 @@ function gN({ children: e }) {
|
|
|
13530
13530
|
r({ ...b, type: "confirm" });
|
|
13531
13531
|
},
|
|
13532
13532
|
[r]
|
|
13533
|
-
), p = (b,
|
|
13533
|
+
), p = (b, y) => {
|
|
13534
13534
|
let N = Ps[b].icon;
|
|
13535
|
-
return
|
|
13535
|
+
return y && (N = y), /* @__PURE__ */ l.jsx(N, { className: T("h-24 w-24", Ps[b].className) });
|
|
13536
13536
|
}, g = c.useMemo(
|
|
13537
13537
|
() => ({
|
|
13538
13538
|
open: r,
|
|
@@ -13567,13 +13567,15 @@ function gN({ children: e }) {
|
|
|
13567
13567
|
{
|
|
13568
13568
|
isLoading: m,
|
|
13569
13569
|
onClick: () => {
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13570
|
+
var y, N;
|
|
13571
|
+
if (!((y = t.options) != null && y.onConfirm))
|
|
13572
|
+
throw new Error(
|
|
13573
|
+
"Confirmation type dialog needs to implement the onConfirm function"
|
|
13574
|
+
);
|
|
13575
|
+
const b = (N = t.options) == null ? void 0 : N.onConfirm();
|
|
13576
|
+
b instanceof Promise ? (v(!0), b.then(() => {
|
|
13577
|
+
v(!1), o();
|
|
13578
|
+
}).finally(() => v(!1))) : o();
|
|
13577
13579
|
},
|
|
13578
13580
|
children: t.options.confirmLabel || "Confirm"
|
|
13579
13581
|
}
|