@mriqbox/ui-kit 3.5.2 → 3.7.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/README.md +561 -34
- package/bin/cli.js +5 -2
- package/dist/components/templates/MriDashboardLayout.d.ts +17 -0
- package/dist/components/templates/MriDashboardLayout.stories.d.ts +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +375 -347
- package/dist/index.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import be, { forwardRef as xs, createElement as va, useLayoutEffect as po, useState as de, useEffect as ye, useCallback as vo, useRef as Te, createContext as Mt, useContext as
|
|
2
|
+
import be, { forwardRef as xs, createElement as va, useLayoutEffect as po, useState as de, useEffect as ye, useCallback as vo, useRef as Te, createContext as Mt, useContext as _t, useMemo as mc } from "react";
|
|
3
3
|
import * as ys from "react-dom";
|
|
4
4
|
import pc from "react-dom";
|
|
5
5
|
var Kn = { exports: {} }, tr = {};
|
|
@@ -43,25 +43,25 @@ function gc() {
|
|
|
43
43
|
function b(y) {
|
|
44
44
|
if (y === null || typeof y != "object")
|
|
45
45
|
return null;
|
|
46
|
-
var
|
|
47
|
-
return typeof
|
|
46
|
+
var _ = g && y[g] || y[v];
|
|
47
|
+
return typeof _ == "function" ? _ : null;
|
|
48
48
|
}
|
|
49
49
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
50
|
function w(y) {
|
|
51
51
|
{
|
|
52
|
-
for (var
|
|
52
|
+
for (var _ = arguments.length, O = new Array(_ > 1 ? _ - 1 : 0), H = 1; H < _; H++)
|
|
53
53
|
O[H - 1] = arguments[H];
|
|
54
54
|
N("error", y, O);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function N(y,
|
|
57
|
+
function N(y, _, O) {
|
|
58
58
|
{
|
|
59
59
|
var H = x.ReactDebugCurrentFrame, J = H.getStackAddendum();
|
|
60
|
-
J !== "" && (
|
|
60
|
+
J !== "" && (_ += "%s", O = O.concat([J]));
|
|
61
61
|
var oe = O.map(function(K) {
|
|
62
62
|
return String(K);
|
|
63
63
|
});
|
|
64
|
-
oe.unshift("Warning: " +
|
|
64
|
+
oe.unshift("Warning: " + _), Function.prototype.apply.call(console[y], console, oe);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
var C = !1, j = !1, E = !1, k = !1, z = !1, L;
|
|
@@ -73,11 +73,11 @@ function gc() {
|
|
|
73
73
|
// with.
|
|
74
74
|
y.$$typeof === L || y.getModuleId !== void 0));
|
|
75
75
|
}
|
|
76
|
-
function $(y,
|
|
76
|
+
function $(y, _, O) {
|
|
77
77
|
var H = y.displayName;
|
|
78
78
|
if (H)
|
|
79
79
|
return H;
|
|
80
|
-
var J =
|
|
80
|
+
var J = _.displayName || _.name || "";
|
|
81
81
|
return J !== "" ? O + "(" + J + ")" : O;
|
|
82
82
|
}
|
|
83
83
|
function R(y) {
|
|
@@ -107,8 +107,8 @@ function gc() {
|
|
|
107
107
|
if (typeof y == "object")
|
|
108
108
|
switch (y.$$typeof) {
|
|
109
109
|
case i:
|
|
110
|
-
var
|
|
111
|
-
return R(
|
|
110
|
+
var _ = y;
|
|
111
|
+
return R(_) + ".Consumer";
|
|
112
112
|
case s:
|
|
113
113
|
var O = y;
|
|
114
114
|
return R(O._context) + ".Provider";
|
|
@@ -128,14 +128,14 @@ function gc() {
|
|
|
128
128
|
}
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
131
|
-
var T = Object.assign, A = 0, U, D, S, q, le, ie,
|
|
131
|
+
var T = Object.assign, A = 0, U, D, S, q, le, ie, P;
|
|
132
132
|
function Y() {
|
|
133
133
|
}
|
|
134
134
|
Y.__reactDisabledLog = !0;
|
|
135
135
|
function G() {
|
|
136
136
|
{
|
|
137
137
|
if (A === 0) {
|
|
138
|
-
U = console.log, D = console.info, S = console.warn, q = console.error, le = console.group, ie = console.groupCollapsed,
|
|
138
|
+
U = console.log, D = console.info, S = console.warn, q = console.error, le = console.group, ie = console.groupCollapsed, P = console.groupEnd;
|
|
139
139
|
var y = {
|
|
140
140
|
configurable: !0,
|
|
141
141
|
enumerable: !0,
|
|
@@ -183,7 +183,7 @@ function gc() {
|
|
|
183
183
|
value: ie
|
|
184
184
|
}),
|
|
185
185
|
groupEnd: T({}, y, {
|
|
186
|
-
value:
|
|
186
|
+
value: P
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}
|
|
@@ -191,7 +191,7 @@ function gc() {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
var Q = x.ReactCurrentDispatcher, Z;
|
|
194
|
-
function ue(y,
|
|
194
|
+
function ue(y, _, O) {
|
|
195
195
|
{
|
|
196
196
|
if (Z === void 0)
|
|
197
197
|
try {
|
|
@@ -209,7 +209,7 @@ function gc() {
|
|
|
209
209
|
var Mr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
210
210
|
Re = new Mr();
|
|
211
211
|
}
|
|
212
|
-
function er(y,
|
|
212
|
+
function er(y, _) {
|
|
213
213
|
if (!y || ce)
|
|
214
214
|
return "";
|
|
215
215
|
{
|
|
@@ -224,7 +224,7 @@ function gc() {
|
|
|
224
224
|
var oe;
|
|
225
225
|
oe = Q.current, Q.current = null, G();
|
|
226
226
|
try {
|
|
227
|
-
if (
|
|
227
|
+
if (_) {
|
|
228
228
|
var K = function() {
|
|
229
229
|
throw Error();
|
|
230
230
|
};
|
|
@@ -280,18 +280,18 @@ function gc() {
|
|
|
280
280
|
var Rt = y ? y.displayName || y.name : "", yt = Rt ? ue(Rt) : "";
|
|
281
281
|
return typeof y == "function" && Re.set(y, yt), yt;
|
|
282
282
|
}
|
|
283
|
-
function bt(y,
|
|
283
|
+
function bt(y, _, O) {
|
|
284
284
|
return er(y, !1);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
var
|
|
288
|
-
return !!(
|
|
286
|
+
function _r(y) {
|
|
287
|
+
var _ = y.prototype;
|
|
288
|
+
return !!(_ && _.isReactComponent);
|
|
289
289
|
}
|
|
290
|
-
function Et(y,
|
|
290
|
+
function Et(y, _, O) {
|
|
291
291
|
if (y == null)
|
|
292
292
|
return "";
|
|
293
293
|
if (typeof y == "function")
|
|
294
|
-
return er(y,
|
|
294
|
+
return er(y, _r(y));
|
|
295
295
|
if (typeof y == "string")
|
|
296
296
|
return ue(y);
|
|
297
297
|
switch (y) {
|
|
@@ -305,26 +305,26 @@ function gc() {
|
|
|
305
305
|
case c:
|
|
306
306
|
return bt(y.render);
|
|
307
307
|
case f:
|
|
308
|
-
return Et(y.type,
|
|
308
|
+
return Et(y.type, _, O);
|
|
309
309
|
case h: {
|
|
310
310
|
var H = y, J = H._payload, oe = H._init;
|
|
311
311
|
try {
|
|
312
|
-
return Et(oe(J),
|
|
312
|
+
return Et(oe(J), _, O);
|
|
313
313
|
} catch {
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
return "";
|
|
318
318
|
}
|
|
319
|
-
var xt = Object.prototype.hasOwnProperty,
|
|
319
|
+
var xt = Object.prototype.hasOwnProperty, Pr = {}, Er = x.ReactDebugCurrentFrame;
|
|
320
320
|
function et(y) {
|
|
321
321
|
if (y) {
|
|
322
|
-
var
|
|
322
|
+
var _ = y._owner, O = Et(y.type, y._source, _ ? _.type : null);
|
|
323
323
|
Er.setExtraStackFrame(O);
|
|
324
324
|
} else
|
|
325
325
|
Er.setExtraStackFrame(null);
|
|
326
326
|
}
|
|
327
|
-
function Ul(y,
|
|
327
|
+
function Ul(y, _, O, H, J) {
|
|
328
328
|
{
|
|
329
329
|
var oe = Function.call.bind(xt);
|
|
330
330
|
for (var K in y)
|
|
@@ -335,11 +335,11 @@ function gc() {
|
|
|
335
335
|
var Ce = Error((H || "React class") + ": " + O + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof y[K] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
336
336
|
throw Ce.name = "Invariant Violation", Ce;
|
|
337
337
|
}
|
|
338
|
-
X = y[K](
|
|
338
|
+
X = y[K](_, K, H, O, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
339
339
|
} catch (fe) {
|
|
340
340
|
X = fe;
|
|
341
341
|
}
|
|
342
|
-
X && !(X instanceof Error) && (et(J), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", H || "React class", O, K, typeof X), et(null)), X instanceof Error && !(X.message in
|
|
342
|
+
X && !(X instanceof Error) && (et(J), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", H || "React class", O, K, typeof X), et(null)), X instanceof Error && !(X.message in Pr) && (Pr[X.message] = !0, et(J), w("Failed %s type: %s", O, X.message), et(null));
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
}
|
|
@@ -349,7 +349,7 @@ function gc() {
|
|
|
349
349
|
}
|
|
350
350
|
function Gl(y) {
|
|
351
351
|
{
|
|
352
|
-
var
|
|
352
|
+
var _ = typeof Symbol == "function" && Symbol.toStringTag, O = _ && y[Symbol.toStringTag] || y.constructor.name || "Object";
|
|
353
353
|
return O;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -375,27 +375,27 @@ function gc() {
|
|
|
375
375
|
}, ia, la;
|
|
376
376
|
function Ql(y) {
|
|
377
377
|
if (xt.call(y, "ref")) {
|
|
378
|
-
var
|
|
379
|
-
if (
|
|
378
|
+
var _ = Object.getOwnPropertyDescriptor(y, "ref").get;
|
|
379
|
+
if (_ && _.isReactWarning)
|
|
380
380
|
return !1;
|
|
381
381
|
}
|
|
382
382
|
return y.ref !== void 0;
|
|
383
383
|
}
|
|
384
384
|
function Zl(y) {
|
|
385
385
|
if (xt.call(y, "key")) {
|
|
386
|
-
var
|
|
387
|
-
if (
|
|
386
|
+
var _ = Object.getOwnPropertyDescriptor(y, "key").get;
|
|
387
|
+
if (_ && _.isReactWarning)
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
390
|
return y.key !== void 0;
|
|
391
391
|
}
|
|
392
|
-
function Jl(y,
|
|
392
|
+
function Jl(y, _) {
|
|
393
393
|
typeof y.ref == "string" && sa.current;
|
|
394
394
|
}
|
|
395
|
-
function ec(y,
|
|
395
|
+
function ec(y, _) {
|
|
396
396
|
{
|
|
397
397
|
var O = function() {
|
|
398
|
-
ia || (ia = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
398
|
+
ia || (ia = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
399
399
|
};
|
|
400
400
|
O.isReactWarning = !0, Object.defineProperty(y, "key", {
|
|
401
401
|
get: O,
|
|
@@ -403,10 +403,10 @@ function gc() {
|
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function tc(y,
|
|
406
|
+
function tc(y, _) {
|
|
407
407
|
{
|
|
408
408
|
var O = function() {
|
|
409
|
-
la || (la = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
409
|
+
la || (la = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
410
410
|
};
|
|
411
411
|
O.isReactWarning = !0, Object.defineProperty(y, "ref", {
|
|
412
412
|
get: O,
|
|
@@ -414,13 +414,13 @@ function gc() {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
var rc = function(y,
|
|
417
|
+
var rc = function(y, _, O, H, J, oe, K) {
|
|
418
418
|
var X = {
|
|
419
419
|
// This tag allows us to uniquely identify this as a React Element
|
|
420
420
|
$$typeof: t,
|
|
421
421
|
// Built-in properties that belong on the element
|
|
422
422
|
type: y,
|
|
423
|
-
key:
|
|
423
|
+
key: _,
|
|
424
424
|
ref: O,
|
|
425
425
|
props: K,
|
|
426
426
|
// Record the component responsible for creating this element.
|
|
@@ -443,12 +443,12 @@ function gc() {
|
|
|
443
443
|
value: J
|
|
444
444
|
}), Object.freeze && (Object.freeze(X.props), Object.freeze(X)), X;
|
|
445
445
|
};
|
|
446
|
-
function nc(y,
|
|
446
|
+
function nc(y, _, O, H, J) {
|
|
447
447
|
{
|
|
448
448
|
var oe, K = {}, X = null, Ce = null;
|
|
449
|
-
O !== void 0 && (aa(O), X = "" + O), Zl(
|
|
450
|
-
for (oe in
|
|
451
|
-
xt.call(
|
|
449
|
+
O !== void 0 && (aa(O), X = "" + O), Zl(_) && (aa(_.key), X = "" + _.key), Ql(_) && (Ce = _.ref, Jl(_, J));
|
|
450
|
+
for (oe in _)
|
|
451
|
+
xt.call(_, oe) && !Kl.hasOwnProperty(oe) && (K[oe] = _[oe]);
|
|
452
452
|
if (y && y.defaultProps) {
|
|
453
453
|
var fe = y.defaultProps;
|
|
454
454
|
for (oe in fe)
|
|
@@ -464,7 +464,7 @@ function gc() {
|
|
|
464
464
|
var Nn = x.ReactCurrentOwner, ca = x.ReactDebugCurrentFrame;
|
|
465
465
|
function Dt(y) {
|
|
466
466
|
if (y) {
|
|
467
|
-
var
|
|
467
|
+
var _ = y._owner, O = Et(y.type, y._source, _ ? _.type : null);
|
|
468
468
|
ca.setExtraStackFrame(O);
|
|
469
469
|
} else
|
|
470
470
|
ca.setExtraStackFrame(null);
|
|
@@ -492,22 +492,22 @@ Check the render method of \`` + y + "`.";
|
|
|
492
492
|
var ua = {};
|
|
493
493
|
function ac(y) {
|
|
494
494
|
{
|
|
495
|
-
var
|
|
496
|
-
if (!
|
|
495
|
+
var _ = da();
|
|
496
|
+
if (!_) {
|
|
497
497
|
var O = typeof y == "string" ? y : y.displayName || y.name;
|
|
498
|
-
O && (
|
|
498
|
+
O && (_ = `
|
|
499
499
|
|
|
500
500
|
Check the top-level render call using <` + O + ">.");
|
|
501
501
|
}
|
|
502
|
-
return
|
|
502
|
+
return _;
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
function fa(y,
|
|
505
|
+
function fa(y, _) {
|
|
506
506
|
{
|
|
507
507
|
if (!y._store || y._store.validated || y.key != null)
|
|
508
508
|
return;
|
|
509
509
|
y._store.validated = !0;
|
|
510
|
-
var O = ac(
|
|
510
|
+
var O = ac(_);
|
|
511
511
|
if (ua[O])
|
|
512
512
|
return;
|
|
513
513
|
ua[O] = !0;
|
|
@@ -515,14 +515,14 @@ Check the top-level render call using <` + O + ">.");
|
|
|
515
515
|
y && y._owner && y._owner !== Nn.current && (H = " It was passed a child from " + F(y._owner.type) + "."), Dt(y), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, H), Dt(null);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function ha(y,
|
|
518
|
+
function ha(y, _) {
|
|
519
519
|
{
|
|
520
520
|
if (typeof y != "object")
|
|
521
521
|
return;
|
|
522
522
|
if (wn(y))
|
|
523
523
|
for (var O = 0; O < y.length; O++) {
|
|
524
524
|
var H = y[O];
|
|
525
|
-
jn(H) && fa(H,
|
|
525
|
+
jn(H) && fa(H, _);
|
|
526
526
|
}
|
|
527
527
|
else if (jn(y))
|
|
528
528
|
y._store && (y._store.validated = !0);
|
|
@@ -530,39 +530,39 @@ Check the top-level render call using <` + O + ">.");
|
|
|
530
530
|
var J = b(y);
|
|
531
531
|
if (typeof J == "function" && J !== y.entries)
|
|
532
532
|
for (var oe = J.call(y), K; !(K = oe.next()).done; )
|
|
533
|
-
jn(K.value) && fa(K.value,
|
|
533
|
+
jn(K.value) && fa(K.value, _);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
function sc(y) {
|
|
538
538
|
{
|
|
539
|
-
var
|
|
540
|
-
if (
|
|
539
|
+
var _ = y.type;
|
|
540
|
+
if (_ == null || typeof _ == "string")
|
|
541
541
|
return;
|
|
542
542
|
var O;
|
|
543
|
-
if (typeof
|
|
544
|
-
O =
|
|
545
|
-
else if (typeof
|
|
543
|
+
if (typeof _ == "function")
|
|
544
|
+
O = _.propTypes;
|
|
545
|
+
else if (typeof _ == "object" && (_.$$typeof === c || // Note: Memo only checks outer props here.
|
|
546
546
|
// Inner props are checked in the reconciler.
|
|
547
|
-
|
|
548
|
-
O =
|
|
547
|
+
_.$$typeof === f))
|
|
548
|
+
O = _.propTypes;
|
|
549
549
|
else
|
|
550
550
|
return;
|
|
551
551
|
if (O) {
|
|
552
|
-
var H = F(
|
|
552
|
+
var H = F(_);
|
|
553
553
|
Ul(O, y.props, "prop", H, y);
|
|
554
|
-
} else if (
|
|
554
|
+
} else if (_.PropTypes !== void 0 && !Cn) {
|
|
555
555
|
Cn = !0;
|
|
556
|
-
var J = F(
|
|
556
|
+
var J = F(_);
|
|
557
557
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", J || "Unknown");
|
|
558
558
|
}
|
|
559
|
-
typeof
|
|
559
|
+
typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
function ic(y) {
|
|
563
563
|
{
|
|
564
|
-
for (var
|
|
565
|
-
var H =
|
|
564
|
+
for (var _ = Object.keys(y.props), O = 0; O < _.length; O++) {
|
|
565
|
+
var H = _[O];
|
|
566
566
|
if (H !== "children" && H !== "key") {
|
|
567
567
|
Dt(y), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", H), Dt(null);
|
|
568
568
|
break;
|
|
@@ -572,7 +572,7 @@ Check the top-level render call using <` + O + ">.");
|
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
var ma = {};
|
|
575
|
-
function pa(y,
|
|
575
|
+
function pa(y, _, O, H, J, oe) {
|
|
576
576
|
{
|
|
577
577
|
var K = W(y);
|
|
578
578
|
if (!K) {
|
|
@@ -583,11 +583,11 @@ Check the top-level render call using <` + O + ">.");
|
|
|
583
583
|
var fe;
|
|
584
584
|
y === null ? fe = "null" : wn(y) ? fe = "array" : y !== void 0 && y.$$typeof === t ? (fe = "<" + (F(y.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : fe = typeof y, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", fe, X);
|
|
585
585
|
}
|
|
586
|
-
var he = nc(y,
|
|
586
|
+
var he = nc(y, _, O, J, oe);
|
|
587
587
|
if (he == null)
|
|
588
588
|
return he;
|
|
589
589
|
if (K) {
|
|
590
|
-
var Oe =
|
|
590
|
+
var Oe = _.children;
|
|
591
591
|
if (Oe !== void 0)
|
|
592
592
|
if (H)
|
|
593
593
|
if (wn(Oe)) {
|
|
@@ -599,8 +599,8 @@ Check the top-level render call using <` + O + ">.");
|
|
|
599
599
|
else
|
|
600
600
|
ha(Oe, y);
|
|
601
601
|
}
|
|
602
|
-
if (xt.call(
|
|
603
|
-
var yt = F(y), Se = Object.keys(
|
|
602
|
+
if (xt.call(_, "key")) {
|
|
603
|
+
var yt = F(y), Se = Object.keys(_).filter(function(hc) {
|
|
604
604
|
return hc !== "key";
|
|
605
605
|
}), kn = Se.length > 0 ? "{key: someKey, " + Se.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
606
606
|
if (!ma[yt + kn]) {
|
|
@@ -616,11 +616,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
616
616
|
return y === n ? ic(he) : sc(he), he;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function lc(y,
|
|
620
|
-
return pa(y,
|
|
619
|
+
function lc(y, _, O) {
|
|
620
|
+
return pa(y, _, O, !0);
|
|
621
621
|
}
|
|
622
|
-
function cc(y,
|
|
623
|
-
return pa(y,
|
|
622
|
+
function cc(y, _, O) {
|
|
623
|
+
return pa(y, _, O, !1);
|
|
624
624
|
}
|
|
625
625
|
var dc = cc, uc = lc;
|
|
626
626
|
rr.Fragment = n, rr.jsx = dc, rr.jsxs = uc;
|
|
@@ -832,12 +832,12 @@ const xa = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ya = Ns, C
|
|
|
832
832
|
cache: jc(e.cacheSize),
|
|
833
833
|
parseClassName: kc(e),
|
|
834
834
|
...xc(e)
|
|
835
|
-
}),
|
|
835
|
+
}), _c = /\s+/, Pc = (e, t) => {
|
|
836
836
|
const {
|
|
837
837
|
parseClassName: r,
|
|
838
838
|
getClassGroupId: n,
|
|
839
839
|
getConflictingClassGroupIds: o
|
|
840
|
-
} = t, a = [], s = e.trim().split(
|
|
840
|
+
} = t, a = [], s = e.trim().split(_c);
|
|
841
841
|
let i = "";
|
|
842
842
|
for (let c = s.length - 1; c >= 0; c -= 1) {
|
|
843
843
|
const d = s[c], {
|
|
@@ -895,7 +895,7 @@ function Dc(e, ...t) {
|
|
|
895
895
|
const d = n(c);
|
|
896
896
|
if (d)
|
|
897
897
|
return d;
|
|
898
|
-
const u =
|
|
898
|
+
const u = Pc(c, r);
|
|
899
899
|
return o(c, u), u;
|
|
900
900
|
}
|
|
901
901
|
return function() {
|
|
@@ -905,7 +905,7 @@ function Dc(e, ...t) {
|
|
|
905
905
|
const se = (e) => {
|
|
906
906
|
const t = (r) => r[e] || [];
|
|
907
907
|
return t.isThemeGetter = !0, t;
|
|
908
|
-
}, Ms = /^\[(?:([a-z-]+):)?(.+)\]$/i, Rc = /^\d+\/\d+$/, Oc = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ac = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Tc = /\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$/, Lc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Wc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ic = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tt = (e) => Ft(e) || Oc.has(e) || Rc.test(e), lt = (e) => Gt(e, "length", Uc), Ft = (e) => !!e && !Number.isNaN(Number(e)), Sn = (e) => Gt(e, "number", Ft), nr = (e) => !!e && Number.isInteger(Number(e)), Fc = (e) => e.endsWith("%") && Ft(e.slice(0, -1)), V = (e) => Ms.test(e), ct = (e) => Ac.test(e), $c = /* @__PURE__ */ new Set(["length", "size", "percentage"]), zc = (e) => Gt(e, $c,
|
|
908
|
+
}, Ms = /^\[(?:([a-z-]+):)?(.+)\]$/i, Rc = /^\d+\/\d+$/, Oc = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ac = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Tc = /\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$/, Lc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Wc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ic = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tt = (e) => Ft(e) || Oc.has(e) || Rc.test(e), lt = (e) => Gt(e, "length", Uc), Ft = (e) => !!e && !Number.isNaN(Number(e)), Sn = (e) => Gt(e, "number", Ft), nr = (e) => !!e && Number.isInteger(Number(e)), Fc = (e) => e.endsWith("%") && Ft(e.slice(0, -1)), V = (e) => Ms.test(e), ct = (e) => Ac.test(e), $c = /* @__PURE__ */ new Set(["length", "size", "percentage"]), zc = (e) => Gt(e, $c, _s), Bc = (e) => Gt(e, "position", _s), Yc = /* @__PURE__ */ new Set(["image", "url"]), Hc = (e) => Gt(e, Yc, Gc), Vc = (e) => Gt(e, "", qc), or = () => !0, Gt = (e, t, r) => {
|
|
909
909
|
const n = Ms.exec(e);
|
|
910
910
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
911
911
|
}, Uc = (e) => (
|
|
@@ -913,7 +913,7 @@ const se = (e) => {
|
|
|
913
913
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
914
914
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
915
915
|
Tc.test(e) && !Lc.test(e)
|
|
916
|
-
),
|
|
916
|
+
), _s = () => !1, qc = (e) => Wc.test(e), Gc = (e) => Ic.test(e), Xc = () => {
|
|
917
917
|
const e = se("colors"), t = se("spacing"), r = se("blur"), n = se("brightness"), o = se("borderColor"), a = se("borderRadius"), s = se("borderSpacing"), i = se("borderWidth"), c = se("contrast"), d = se("grayscale"), u = se("hueRotate"), f = se("invert"), h = se("gap"), p = se("gradientColorStops"), g = se("gradientColorStopPositions"), v = se("inset"), b = se("margin"), x = se("opacity"), w = se("padding"), N = se("saturate"), C = se("scale"), j = se("sepia"), E = se("skew"), k = se("space"), z = se("translate"), L = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", V, t], R = () => [V, t], F = () => ["", tt, lt], T = () => ["auto", Ft, V], A = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], D = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], S = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], q = () => ["", "0", V], le = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ie = () => [Ft, V];
|
|
918
918
|
return {
|
|
919
919
|
cacheSize: 500,
|
|
@@ -2943,11 +2943,11 @@ const se = (e) => {
|
|
|
2943
2943
|
}
|
|
2944
2944
|
};
|
|
2945
2945
|
}, Kc = /* @__PURE__ */ Dc(Xc);
|
|
2946
|
-
function
|
|
2946
|
+
function M(...e) {
|
|
2947
2947
|
return Kc(Ns(e));
|
|
2948
2948
|
}
|
|
2949
2949
|
function Ca({ className: e, variant: t, ...r }) {
|
|
2950
|
-
return /* @__PURE__ */ l.jsx("div", { className:
|
|
2950
|
+
return /* @__PURE__ */ l.jsx("div", { className: M(bc({ variant: t }), e), ...r });
|
|
2951
2951
|
}
|
|
2952
2952
|
function ja(e, t) {
|
|
2953
2953
|
if (typeof e == "function")
|
|
@@ -2977,14 +2977,14 @@ var Qc = Symbol.for("react.lazy"), Vr = m[" use ".trim().toString()];
|
|
|
2977
2977
|
function Zc(e) {
|
|
2978
2978
|
return typeof e == "object" && e !== null && "then" in e;
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function Ps(e) {
|
|
2981
2981
|
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Qc && "_payload" in e && Zc(e._payload);
|
|
2982
2982
|
}
|
|
2983
2983
|
// @__NO_SIDE_EFFECTS__
|
|
2984
2984
|
function Es(e) {
|
|
2985
2985
|
const t = /* @__PURE__ */ ed(e), r = m.forwardRef((n, o) => {
|
|
2986
2986
|
let { children: a, ...s } = n;
|
|
2987
|
-
|
|
2987
|
+
Ps(a) && typeof Vr == "function" && (a = Vr(a._payload));
|
|
2988
2988
|
const i = m.Children.toArray(a), c = i.find(rd);
|
|
2989
2989
|
if (c) {
|
|
2990
2990
|
const d = c.props.children, u = i.map((f) => f === c ? m.Children.count(d) > 1 ? m.Children.only(null) : m.isValidElement(d) ? d.props.children : null : f);
|
|
@@ -2999,7 +2999,7 @@ var Jc = /* @__PURE__ */ Es("Slot");
|
|
|
2999
2999
|
function ed(e) {
|
|
3000
3000
|
const t = m.forwardRef((r, n) => {
|
|
3001
3001
|
let { children: o, ...a } = r;
|
|
3002
|
-
if (
|
|
3002
|
+
if (Ps(o) && typeof Vr == "function" && (o = Vr(o._payload)), m.isValidElement(o)) {
|
|
3003
3003
|
const s = od(o), i = nd(a, o.props);
|
|
3004
3004
|
return o.type !== m.Fragment && (i.ref = n ? ft(n, s) : s), m.cloneElement(o, i);
|
|
3005
3005
|
}
|
|
@@ -3481,7 +3481,7 @@ const Nd = re("Zap", [
|
|
|
3481
3481
|
return /* @__PURE__ */ l.jsx(
|
|
3482
3482
|
d,
|
|
3483
3483
|
{
|
|
3484
|
-
className:
|
|
3484
|
+
className: M(Zn({ variant: t, size: r, className: e })),
|
|
3485
3485
|
ref: c,
|
|
3486
3486
|
disabled: u,
|
|
3487
3487
|
...i,
|
|
@@ -3497,11 +3497,11 @@ ee.displayName = "MriButton";
|
|
|
3497
3497
|
const Mb = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3498
3498
|
/* @__PURE__ */ l.jsx("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3499
3499
|
/* @__PURE__ */ l.jsx("circle", { cx: "12", cy: "9", r: "2.5", fill: "currentColor" })
|
|
3500
|
-
] }),
|
|
3500
|
+
] }), _b = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3501
3501
|
/* @__PURE__ */ l.jsx("path", { d: "M21 15v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3502
3502
|
/* @__PURE__ */ l.jsx("path", { d: "M7 10l5-5 5 5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3503
3503
|
/* @__PURE__ */ l.jsx("path", { d: "M12 5v12", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
3504
|
-
] }),
|
|
3504
|
+
] }), Pb = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3505
3505
|
/* @__PURE__ */ l.jsx("path", { d: "M21 12H7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3506
3506
|
/* @__PURE__ */ l.jsx("path", { d: "M11 16l-4-4 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
3507
3507
|
] }), Eb = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -3540,7 +3540,7 @@ const Mb = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, w
|
|
|
3540
3540
|
{
|
|
3541
3541
|
...a,
|
|
3542
3542
|
ref: s,
|
|
3543
|
-
className:
|
|
3543
|
+
className: M(
|
|
3544
3544
|
"w-full rounded-lg border bg-background/50 text-foreground focus:border-ring focus:outline-none placeholder:text-muted-foreground transition-colors disabled:opacity-50",
|
|
3545
3545
|
t === "default" ? "h-9 text-sm" : "h-8 text-xs",
|
|
3546
3546
|
r ? "pl-9" : "px-3",
|
|
@@ -3601,7 +3601,7 @@ function Md(e) {
|
|
|
3601
3601
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
3602
3602
|
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
3603
3603
|
}
|
|
3604
|
-
var
|
|
3604
|
+
var _d = [
|
|
3605
3605
|
"a",
|
|
3606
3606
|
"button",
|
|
3607
3607
|
"div",
|
|
@@ -3619,14 +3619,14 @@ var Pd = [
|
|
|
3619
3619
|
"span",
|
|
3620
3620
|
"svg",
|
|
3621
3621
|
"ul"
|
|
3622
|
-
], ve =
|
|
3622
|
+
], ve = _d.reduce((e, t) => {
|
|
3623
3623
|
const r = /* @__PURE__ */ wo(`Primitive.${t}`), n = m.forwardRef((o, a) => {
|
|
3624
3624
|
const { asChild: s, ...i } = o, c = s ? r : t;
|
|
3625
3625
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l.jsx(c, { ...i, ref: a });
|
|
3626
3626
|
});
|
|
3627
3627
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
3628
3628
|
}, {});
|
|
3629
|
-
function
|
|
3629
|
+
function Pd(e, t) {
|
|
3630
3630
|
e && ys.flushSync(() => e.dispatchEvent(t));
|
|
3631
3631
|
}
|
|
3632
3632
|
var ot = globalThis != null && globalThis.document ? m.useLayoutEffect : () => {
|
|
@@ -4298,7 +4298,7 @@ const Xr = m.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
4298
4298
|
Xs,
|
|
4299
4299
|
{
|
|
4300
4300
|
ref: n,
|
|
4301
|
-
className:
|
|
4301
|
+
className: M("relative overflow-hidden", e),
|
|
4302
4302
|
...r,
|
|
4303
4303
|
children: [
|
|
4304
4304
|
/* @__PURE__ */ l.jsx(Xd, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
@@ -4313,7 +4313,7 @@ const Ks = m.forwardRef(({ className: e, orientation: t = "vertical", ...r }, n)
|
|
|
4313
4313
|
{
|
|
4314
4314
|
ref: n,
|
|
4315
4315
|
orientation: t,
|
|
4316
|
-
className:
|
|
4316
|
+
className: M(
|
|
4317
4317
|
"flex touch-none select-none transition-colors",
|
|
4318
4318
|
t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
4319
4319
|
t === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
|
|
@@ -4330,7 +4330,7 @@ function Ib({
|
|
|
4330
4330
|
className: r,
|
|
4331
4331
|
size: n = "xs"
|
|
4332
4332
|
}) {
|
|
4333
|
-
return /* @__PURE__ */ l.jsx("span", { className:
|
|
4333
|
+
return /* @__PURE__ */ l.jsx("span", { className: M(
|
|
4334
4334
|
"font-semibold rounded-md border flex items-center justify-center font-mono whitespace-nowrap transition-all duration-200",
|
|
4335
4335
|
n === "xs" && "px-1.5 py-0.5 text-[9px] uppercase tracking-wider",
|
|
4336
4336
|
n === "sm" && "px-2 py-0.5 text-[10px] uppercase tracking-wider",
|
|
@@ -4360,7 +4360,7 @@ const Qd = ({ size: e = "md" }) => {
|
|
|
4360
4360
|
"div",
|
|
4361
4361
|
{
|
|
4362
4362
|
ref: r,
|
|
4363
|
-
className:
|
|
4363
|
+
className: M(
|
|
4364
4364
|
"rounded-xl border bg-card text-card-foreground shadow",
|
|
4365
4365
|
e
|
|
4366
4366
|
),
|
|
@@ -4372,7 +4372,7 @@ const Jd = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
|
|
|
4372
4372
|
"div",
|
|
4373
4373
|
{
|
|
4374
4374
|
ref: r,
|
|
4375
|
-
className:
|
|
4375
|
+
className: M("flex flex-col space-y-1.5 p-6", e),
|
|
4376
4376
|
...t
|
|
4377
4377
|
}
|
|
4378
4378
|
));
|
|
@@ -4381,7 +4381,7 @@ const eu = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
|
|
|
4381
4381
|
"div",
|
|
4382
4382
|
{
|
|
4383
4383
|
ref: r,
|
|
4384
|
-
className:
|
|
4384
|
+
className: M("font-semibold leading-none tracking-tight", e),
|
|
4385
4385
|
...t
|
|
4386
4386
|
}
|
|
4387
4387
|
));
|
|
@@ -4390,18 +4390,18 @@ const tu = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
|
|
|
4390
4390
|
"div",
|
|
4391
4391
|
{
|
|
4392
4392
|
ref: r,
|
|
4393
|
-
className:
|
|
4393
|
+
className: M("text-sm text-muted-foreground", e),
|
|
4394
4394
|
...t
|
|
4395
4395
|
}
|
|
4396
4396
|
));
|
|
4397
4397
|
tu.displayName = "MriCardDescription";
|
|
4398
|
-
const ru = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx("div", { ref: r, className:
|
|
4398
|
+
const ru = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx("div", { ref: r, className: M("p-6 pt-0", e), ...t }));
|
|
4399
4399
|
ru.displayName = "MriCardContent";
|
|
4400
4400
|
const nu = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
|
|
4401
4401
|
"div",
|
|
4402
4402
|
{
|
|
4403
4403
|
ref: r,
|
|
4404
|
-
className:
|
|
4404
|
+
className: M("flex items-center p-6 pt-0", e),
|
|
4405
4405
|
...t
|
|
4406
4406
|
}
|
|
4407
4407
|
));
|
|
@@ -4440,11 +4440,11 @@ var au = "DismissableLayer", Jn = "dismissableLayer.update", su = "dismissableLa
|
|
|
4440
4440
|
w === d.layers.size - 1 && (n == null || n(k), !k.defaultPrevented && i && (k.preventDefault(), i()));
|
|
4441
4441
|
}, h), m.useEffect(() => {
|
|
4442
4442
|
if (u)
|
|
4443
|
-
return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Ma = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u),
|
|
4443
|
+
return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Ma = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), _a(), () => {
|
|
4444
4444
|
r && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Ma);
|
|
4445
4445
|
};
|
|
4446
4446
|
}, [u, h, r, d]), m.useEffect(() => () => {
|
|
4447
|
-
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u),
|
|
4447
|
+
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), _a());
|
|
4448
4448
|
}, [u, d]), m.useEffect(() => {
|
|
4449
4449
|
const k = () => p({});
|
|
4450
4450
|
return document.addEventListener(Jn, k), () => document.removeEventListener(Jn, k);
|
|
@@ -4523,28 +4523,28 @@ function uu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4523
4523
|
onBlurCapture: () => n.current = !1
|
|
4524
4524
|
};
|
|
4525
4525
|
}
|
|
4526
|
-
function
|
|
4526
|
+
function _a() {
|
|
4527
4527
|
const e = new CustomEvent(Jn);
|
|
4528
4528
|
document.dispatchEvent(e);
|
|
4529
4529
|
}
|
|
4530
4530
|
function Zs(e, t, r, { discrete: n }) {
|
|
4531
4531
|
const o = r.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
4532
|
-
t && o.addEventListener(e, t, { once: !0 }), n ?
|
|
4532
|
+
t && o.addEventListener(e, t, { once: !0 }), n ? Pd(o, a) : o.dispatchEvent(a);
|
|
4533
4533
|
}
|
|
4534
4534
|
var Mn = 0;
|
|
4535
4535
|
function Js() {
|
|
4536
4536
|
m.useEffect(() => {
|
|
4537
4537
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
4538
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
4538
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Pa()), document.body.insertAdjacentElement("beforeend", e[1] ?? Pa()), Mn++, () => {
|
|
4539
4539
|
Mn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Mn--;
|
|
4540
4540
|
};
|
|
4541
4541
|
}, []);
|
|
4542
4542
|
}
|
|
4543
|
-
function
|
|
4543
|
+
function Pa() {
|
|
4544
4544
|
const e = document.createElement("span");
|
|
4545
4545
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
4546
4546
|
}
|
|
4547
|
-
var
|
|
4547
|
+
var _n = "focusScope.autoFocusOnMount", Pn = "focusScope.autoFocusOnUnmount", Ea = { bubbles: !1, cancelable: !0 }, fu = "FocusScope", Mo = m.forwardRef((e, t) => {
|
|
4548
4548
|
const {
|
|
4549
4549
|
loop: r = !1,
|
|
4550
4550
|
trapped: n = !1,
|
|
@@ -4586,13 +4586,13 @@ var Pn = "focusScope.autoFocusOnMount", _n = "focusScope.autoFocusOnUnmount", Ea
|
|
|
4586
4586
|
Ra.add(p);
|
|
4587
4587
|
const v = document.activeElement;
|
|
4588
4588
|
if (!i.contains(v)) {
|
|
4589
|
-
const x = new CustomEvent(
|
|
4590
|
-
i.addEventListener(
|
|
4589
|
+
const x = new CustomEvent(_n, Ea);
|
|
4590
|
+
i.addEventListener(_n, d), i.dispatchEvent(x), x.defaultPrevented || (hu(bu(ei(i)), { select: !0 }), document.activeElement === v && ut(i));
|
|
4591
4591
|
}
|
|
4592
4592
|
return () => {
|
|
4593
|
-
i.removeEventListener(
|
|
4594
|
-
const x = new CustomEvent(
|
|
4595
|
-
i.addEventListener(
|
|
4593
|
+
i.removeEventListener(_n, d), setTimeout(() => {
|
|
4594
|
+
const x = new CustomEvent(Pn, Ea);
|
|
4595
|
+
i.addEventListener(Pn, u), i.dispatchEvent(x), x.defaultPrevented || ut(v ?? document.body, { select: !0 }), i.removeEventListener(Pn, u), Ra.remove(p);
|
|
4596
4596
|
}, 0);
|
|
4597
4597
|
};
|
|
4598
4598
|
}
|
|
@@ -4681,7 +4681,7 @@ function qe(e) {
|
|
|
4681
4681
|
r((n) => n ?? String(yu++));
|
|
4682
4682
|
}, [e]), t ? `radix-${t}` : "";
|
|
4683
4683
|
}
|
|
4684
|
-
const wu = ["top", "right", "bottom", "left"], ht = Math.min,
|
|
4684
|
+
const wu = ["top", "right", "bottom", "left"], ht = Math.min, Pe = Math.max, Kr = Math.round, Rr = Math.floor, Ge = (e) => ({
|
|
4685
4685
|
x: e,
|
|
4686
4686
|
y: e
|
|
4687
4687
|
}), Nu = {
|
|
@@ -4694,7 +4694,7 @@ const wu = ["top", "right", "bottom", "left"], ht = Math.min, _e = Math.max, Kr
|
|
|
4694
4694
|
end: "start"
|
|
4695
4695
|
};
|
|
4696
4696
|
function eo(e, t, r) {
|
|
4697
|
-
return
|
|
4697
|
+
return Pe(e, ht(t, r));
|
|
4698
4698
|
}
|
|
4699
4699
|
function at(e, t) {
|
|
4700
4700
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -4705,10 +4705,10 @@ function st(e) {
|
|
|
4705
4705
|
function Xt(e) {
|
|
4706
4706
|
return e.split("-")[1];
|
|
4707
4707
|
}
|
|
4708
|
-
function
|
|
4708
|
+
function _o(e) {
|
|
4709
4709
|
return e === "x" ? "y" : "x";
|
|
4710
4710
|
}
|
|
4711
|
-
function
|
|
4711
|
+
function Po(e) {
|
|
4712
4712
|
return e === "y" ? "height" : "width";
|
|
4713
4713
|
}
|
|
4714
4714
|
const ju = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
@@ -4716,11 +4716,11 @@ function Ve(e) {
|
|
|
4716
4716
|
return ju.has(st(e)) ? "y" : "x";
|
|
4717
4717
|
}
|
|
4718
4718
|
function Eo(e) {
|
|
4719
|
-
return
|
|
4719
|
+
return _o(Ve(e));
|
|
4720
4720
|
}
|
|
4721
4721
|
function ku(e, t, r) {
|
|
4722
4722
|
r === void 0 && (r = !1);
|
|
4723
|
-
const n = Xt(e), o = Eo(e), a =
|
|
4723
|
+
const n = Xt(e), o = Eo(e), a = Po(o);
|
|
4724
4724
|
let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
4725
4725
|
return t.reference[a] > t.floating[a] && (s = Qr(s)), [s, Qr(s)];
|
|
4726
4726
|
}
|
|
@@ -4731,22 +4731,22 @@ function Su(e) {
|
|
|
4731
4731
|
function to(e) {
|
|
4732
4732
|
return e.replace(/start|end/g, (t) => Cu[t]);
|
|
4733
4733
|
}
|
|
4734
|
-
const Aa = ["left", "right"], Ta = ["right", "left"], Mu = ["top", "bottom"],
|
|
4735
|
-
function
|
|
4734
|
+
const Aa = ["left", "right"], Ta = ["right", "left"], Mu = ["top", "bottom"], _u = ["bottom", "top"];
|
|
4735
|
+
function Pu(e, t, r) {
|
|
4736
4736
|
switch (e) {
|
|
4737
4737
|
case "top":
|
|
4738
4738
|
case "bottom":
|
|
4739
4739
|
return r ? t ? Ta : Aa : t ? Aa : Ta;
|
|
4740
4740
|
case "left":
|
|
4741
4741
|
case "right":
|
|
4742
|
-
return t ? Mu :
|
|
4742
|
+
return t ? Mu : _u;
|
|
4743
4743
|
default:
|
|
4744
4744
|
return [];
|
|
4745
4745
|
}
|
|
4746
4746
|
}
|
|
4747
4747
|
function Eu(e, t, r, n) {
|
|
4748
4748
|
const o = Xt(e);
|
|
4749
|
-
let a =
|
|
4749
|
+
let a = Pu(st(e), r === "start", n);
|
|
4750
4750
|
return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(to)))), a;
|
|
4751
4751
|
}
|
|
4752
4752
|
function Qr(e) {
|
|
@@ -4792,7 +4792,7 @@ function La(e, t, r) {
|
|
|
4792
4792
|
reference: n,
|
|
4793
4793
|
floating: o
|
|
4794
4794
|
} = e;
|
|
4795
|
-
const a = Ve(t), s = Eo(t), i =
|
|
4795
|
+
const a = Ve(t), s = Eo(t), i = Po(s), c = st(t), d = a === "y", u = n.x + n.width / 2 - o.width / 2, f = n.y + n.height / 2 - o.height / 2, h = n[i] / 2 - o[i] / 2;
|
|
4796
4796
|
let p;
|
|
4797
4797
|
switch (c) {
|
|
4798
4798
|
case "top":
|
|
@@ -4962,7 +4962,7 @@ const Ou = (e) => ({
|
|
|
4962
4962
|
const f = ti(u), h = {
|
|
4963
4963
|
x: r,
|
|
4964
4964
|
y: n
|
|
4965
|
-
}, p = Eo(o), g =
|
|
4965
|
+
}, p = Eo(o), g = Po(p), v = await s.getDimensions(d), b = p === "y", x = b ? "top" : "left", w = b ? "bottom" : "right", N = b ? "clientHeight" : "clientWidth", C = a.reference[g] + a.reference[p] - h[p] - a.floating[g], j = h[p] - a.reference[p], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
4966
4966
|
let k = E ? E[N] : 0;
|
|
4967
4967
|
(!k || !await (s.isElement == null ? void 0 : s.isElement(E))) && (k = i.floating[N] || a.floating[g]);
|
|
4968
4968
|
const z = C / 2 - j / 2, L = k / 2 - v[g] / 2 - 1, W = ht(f[x], L), $ = ht(f[w], L), R = W, F = k - v[g] - $, T = k / 2 - v[g] / 2 + z, A = eo(R, T, F), U = !c.arrow && Xt(o) != null && T !== A && a.reference[g] / 2 - (T < R ? W : $) - v[g] / 2 < 0, D = U ? T < R ? T - R : T - F : 0;
|
|
@@ -5190,7 +5190,7 @@ const Wu = function(e) {
|
|
|
5190
5190
|
} = at(e, t), d = {
|
|
5191
5191
|
x: r,
|
|
5192
5192
|
y: n
|
|
5193
|
-
}, u = await dr(t, c), f = Ve(st(o)), h =
|
|
5193
|
+
}, u = await dr(t, c), f = Ve(st(o)), h = _o(f);
|
|
5194
5194
|
let p = d[h], g = d[f];
|
|
5195
5195
|
if (a) {
|
|
5196
5196
|
const b = h === "y" ? "top" : "left", x = h === "y" ? "bottom" : "right", w = p + u[b], N = p - u[x];
|
|
@@ -5235,7 +5235,7 @@ const Wu = function(e) {
|
|
|
5235
5235
|
} = at(e, t), u = {
|
|
5236
5236
|
x: r,
|
|
5237
5237
|
y: n
|
|
5238
|
-
}, f = Ve(o), h =
|
|
5238
|
+
}, f = Ve(o), h = _o(f);
|
|
5239
5239
|
let p = u[h], g = u[f];
|
|
5240
5240
|
const v = at(i, t), b = typeof v == "number" ? {
|
|
5241
5241
|
mainAxis: v,
|
|
@@ -5284,8 +5284,8 @@ const Wu = function(e) {
|
|
|
5284
5284
|
const w = v - u.top - u.bottom, N = g - u.left - u.right, C = ht(v - u[b], w), j = ht(g - u[x], N), E = !t.middlewareData.shift;
|
|
5285
5285
|
let k = C, z = j;
|
|
5286
5286
|
if ((r = t.middlewareData.shift) != null && r.enabled.x && (z = N), (n = t.middlewareData.shift) != null && n.enabled.y && (k = w), E && !h) {
|
|
5287
|
-
const W =
|
|
5288
|
-
p ? z = g - 2 * (W !== 0 || $ !== 0 ? W + $ :
|
|
5287
|
+
const W = Pe(u.left, 0), $ = Pe(u.right, 0), R = Pe(u.top, 0), F = Pe(u.bottom, 0);
|
|
5288
|
+
p ? z = g - 2 * (W !== 0 || $ !== 0 ? W + $ : Pe(u.left, u.right)) : k = v - 2 * (R !== 0 || F !== 0 ? R + F : Pe(u.top, u.bottom));
|
|
5289
5289
|
}
|
|
5290
5290
|
await c({
|
|
5291
5291
|
...t,
|
|
@@ -5518,10 +5518,10 @@ function Ju(e) {
|
|
|
5518
5518
|
return Array.from(e.getClientRects());
|
|
5519
5519
|
}
|
|
5520
5520
|
function ef(e) {
|
|
5521
|
-
const t = Je(e), r = un(e), n = e.ownerDocument.body, o =
|
|
5521
|
+
const t = Je(e), r = un(e), n = e.ownerDocument.body, o = Pe(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = Pe(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
5522
5522
|
let s = -r.scrollLeft + fn(e);
|
|
5523
5523
|
const i = -r.scrollTop;
|
|
5524
|
-
return Ie(n).direction === "rtl" && (s +=
|
|
5524
|
+
return Ie(n).direction === "rtl" && (s += Pe(t.clientWidth, n.clientWidth) - o), {
|
|
5525
5525
|
width: o,
|
|
5526
5526
|
height: a,
|
|
5527
5527
|
x: s,
|
|
@@ -5604,7 +5604,7 @@ function af(e) {
|
|
|
5604
5604
|
} = e;
|
|
5605
5605
|
const s = [...r === "clippingAncestors" ? dn(t) ? [] : of(t, this._c) : [].concat(r), n], i = s[0], c = s.reduce((d, u) => {
|
|
5606
5606
|
const f = za(t, u, o);
|
|
5607
|
-
return d.top =
|
|
5607
|
+
return d.top = Pe(f.top, d.top), d.right = ht(f.right, d.right), d.bottom = ht(f.bottom, d.bottom), d.left = Pe(f.left, d.left), d;
|
|
5608
5608
|
}, za(t, i, o));
|
|
5609
5609
|
return {
|
|
5610
5610
|
width: c.right - c.left,
|
|
@@ -5725,7 +5725,7 @@ function ff(e, t) {
|
|
|
5725
5725
|
return;
|
|
5726
5726
|
const g = Rr(f), v = Rr(o.clientWidth - (u + h)), b = Rr(o.clientHeight - (f + p)), x = Rr(u), N = {
|
|
5727
5727
|
rootMargin: -g + "px " + -v + "px " + -b + "px " + -x + "px",
|
|
5728
|
-
threshold:
|
|
5728
|
+
threshold: Pe(0, ht(1, c)) || 1
|
|
5729
5729
|
};
|
|
5730
5730
|
let C = !0;
|
|
5731
5731
|
function j(E) {
|
|
@@ -5978,10 +5978,10 @@ const jf = (e) => {
|
|
|
5978
5978
|
}), Mf = (e, t) => ({
|
|
5979
5979
|
...xf(e),
|
|
5980
5980
|
options: [e, t]
|
|
5981
|
-
}),
|
|
5981
|
+
}), _f = (e, t) => ({
|
|
5982
5982
|
...vf(e),
|
|
5983
5983
|
options: [e, t]
|
|
5984
|
-
}),
|
|
5984
|
+
}), Pf = (e, t) => ({
|
|
5985
5985
|
...gf(e),
|
|
5986
5986
|
options: [e, t]
|
|
5987
5987
|
}), Ef = (e, t) => ({
|
|
@@ -6086,12 +6086,12 @@ var To = "PopperContent", [Lf, Wf] = hi(To), xi = m.forwardRef(
|
|
|
6086
6086
|
limiter: f === "partial" ? Mf() : void 0,
|
|
6087
6087
|
...F
|
|
6088
6088
|
}),
|
|
6089
|
-
c &&
|
|
6090
|
-
|
|
6089
|
+
c && _f({ ...F }),
|
|
6090
|
+
Pf({
|
|
6091
6091
|
...F,
|
|
6092
|
-
apply: ({ elements: bt, rects:
|
|
6093
|
-
const { width:
|
|
6094
|
-
et.setProperty("--radix-popper-available-width", `${Et}px`), et.setProperty("--radix-popper-available-height", `${xt}px`), et.setProperty("--radix-popper-anchor-width", `${
|
|
6092
|
+
apply: ({ elements: bt, rects: _r, availableWidth: Et, availableHeight: xt }) => {
|
|
6093
|
+
const { width: Pr, height: Er } = _r.reference, et = bt.floating.style;
|
|
6094
|
+
et.setProperty("--radix-popper-available-width", `${Et}px`), et.setProperty("--radix-popper-available-height", `${xt}px`), et.setProperty("--radix-popper-anchor-width", `${Pr}px`), et.setProperty("--radix-popper-anchor-height", `${Er}px`);
|
|
6095
6095
|
}
|
|
6096
6096
|
}),
|
|
6097
6097
|
C && Df({ element: C, padding: i }),
|
|
@@ -6102,7 +6102,7 @@ var To = "PopperContent", [Lf, Wf] = hi(To), xi = m.forwardRef(
|
|
|
6102
6102
|
ot(() => {
|
|
6103
6103
|
D && (ie == null || ie());
|
|
6104
6104
|
}, [D, ie]);
|
|
6105
|
-
const
|
|
6105
|
+
const P = (Z = S.arrow) == null ? void 0 : Z.x, Y = (ue = S.arrow) == null ? void 0 : ue.y, G = ((ce = S.arrow) == null ? void 0 : ce.centerOffset) !== 0, [I, Q] = m.useState();
|
|
6106
6106
|
return ot(() => {
|
|
6107
6107
|
x && Q(window.getComputedStyle(x).zIndex);
|
|
6108
6108
|
}, [x]), /* @__PURE__ */ l.jsx(
|
|
@@ -6135,7 +6135,7 @@ var To = "PopperContent", [Lf, Wf] = hi(To), xi = m.forwardRef(
|
|
|
6135
6135
|
scope: r,
|
|
6136
6136
|
placedSide: q,
|
|
6137
6137
|
onArrowChange: j,
|
|
6138
|
-
arrowX:
|
|
6138
|
+
arrowX: P,
|
|
6139
6139
|
arrowY: Y,
|
|
6140
6140
|
shouldHideArrow: G,
|
|
6141
6141
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -6463,7 +6463,7 @@ function ah(e) {
|
|
|
6463
6463
|
var t = oh(null);
|
|
6464
6464
|
return t.options = Be({ async: !0, ssr: !1 }, e), t;
|
|
6465
6465
|
}
|
|
6466
|
-
var
|
|
6466
|
+
var _i = function(e) {
|
|
6467
6467
|
var t = e.sideCar, r = Mi(e, ["sideCar"]);
|
|
6468
6468
|
if (!t)
|
|
6469
6469
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
@@ -6472,11 +6472,11 @@ var Pi = function(e) {
|
|
|
6472
6472
|
throw new Error("Sidecar medium not found");
|
|
6473
6473
|
return m.createElement(n, Be({}, r));
|
|
6474
6474
|
};
|
|
6475
|
-
|
|
6475
|
+
_i.isSideCarExport = !0;
|
|
6476
6476
|
function sh(e, t) {
|
|
6477
|
-
return e.useMedium(t),
|
|
6477
|
+
return e.useMedium(t), _i;
|
|
6478
6478
|
}
|
|
6479
|
-
var
|
|
6479
|
+
var Pi = ah(), An = function() {
|
|
6480
6480
|
}, hn = m.forwardRef(function(e, t) {
|
|
6481
6481
|
var r = m.useRef(null), n = m.useState({
|
|
6482
6482
|
onScrollCapture: An,
|
|
@@ -6486,7 +6486,7 @@ var _i = ah(), An = function() {
|
|
|
6486
6486
|
return m.createElement(
|
|
6487
6487
|
m.Fragment,
|
|
6488
6488
|
null,
|
|
6489
|
-
u && m.createElement(j, { sideCar:
|
|
6489
|
+
u && m.createElement(j, { sideCar: Pi, removeScrollBar: d, shards: f, noRelative: p, noIsolation: g, inert: v, setCallbacks: a, allowPinchZoom: !!b, lockRef: r, gapMode: N }),
|
|
6490
6490
|
s ? m.cloneElement(m.Children.only(i), Be(Be({}, k), { ref: E })) : m.createElement(w, Be({}, k, { className: c, ref: E }), i)
|
|
6491
6491
|
);
|
|
6492
6492
|
});
|
|
@@ -6707,14 +6707,14 @@ var At = no ? { passive: !1 } : !1, yh = function(e) {
|
|
|
6707
6707
|
return e && "current" in e ? e.current : e;
|
|
6708
6708
|
}, Mh = function(e, t) {
|
|
6709
6709
|
return e[0] === t[0] && e[1] === t[1];
|
|
6710
|
-
},
|
|
6710
|
+
}, _h = function(e) {
|
|
6711
6711
|
return `
|
|
6712
6712
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
6713
6713
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
6714
6714
|
`);
|
|
6715
|
-
},
|
|
6715
|
+
}, Ph = 0, Tt = [];
|
|
6716
6716
|
function Eh(e) {
|
|
6717
|
-
var t = m.useRef([]), r = m.useRef([0, 0]), n = m.useRef(), o = m.useState(
|
|
6717
|
+
var t = m.useRef([]), r = m.useRef([0, 0]), n = m.useRef(), o = m.useState(Ph++)[0], a = m.useState(Ei)[0], s = m.useRef(e);
|
|
6718
6718
|
m.useEffect(function() {
|
|
6719
6719
|
s.current = e;
|
|
6720
6720
|
}, [e]), m.useEffect(function() {
|
|
@@ -6794,7 +6794,7 @@ function Eh(e) {
|
|
|
6794
6794
|
return m.createElement(
|
|
6795
6795
|
m.Fragment,
|
|
6796
6796
|
null,
|
|
6797
|
-
g ? m.createElement(a, { styles:
|
|
6797
|
+
g ? m.createElement(a, { styles: _h(o) }) : null,
|
|
6798
6798
|
p ? m.createElement(xh, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
6799
6799
|
);
|
|
6800
6800
|
}
|
|
@@ -6803,7 +6803,7 @@ function Dh(e) {
|
|
|
6803
6803
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
6804
6804
|
return t;
|
|
6805
6805
|
}
|
|
6806
|
-
const Rh = sh(
|
|
6806
|
+
const Rh = sh(Pi, Eh);
|
|
6807
6807
|
var Wo = m.forwardRef(function(e, t) {
|
|
6808
6808
|
return m.createElement(hn, Be({}, e, { ref: t, sideCar: Rh }));
|
|
6809
6809
|
});
|
|
@@ -7020,14 +7020,14 @@ function Yi(e) {
|
|
|
7020
7020
|
return e ? "open" : "closed";
|
|
7021
7021
|
}
|
|
7022
7022
|
var Hi = Ti, Vi = Ii, Ui = Fi, Fo = $i;
|
|
7023
|
-
const Qt = Hi, Zt = Vi,
|
|
7023
|
+
const Qt = Hi, Zt = Vi, Pt = m.forwardRef(({ className: e, align: t = "center", sideOffset: r = 4, portal: n = !0, ...o }, a) => {
|
|
7024
7024
|
const s = /* @__PURE__ */ l.jsx(
|
|
7025
7025
|
Fo,
|
|
7026
7026
|
{
|
|
7027
7027
|
ref: a,
|
|
7028
7028
|
align: t,
|
|
7029
7029
|
sideOffset: r,
|
|
7030
|
-
className:
|
|
7030
|
+
className: M(
|
|
7031
7031
|
"z-[100] w-72 rounded-md border border-border_primary bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
7032
7032
|
e
|
|
7033
7033
|
),
|
|
@@ -7036,7 +7036,7 @@ const Qt = Hi, Zt = Vi, _t = m.forwardRef(({ className: e, align: t = "center",
|
|
|
7036
7036
|
);
|
|
7037
7037
|
return n ? /* @__PURE__ */ l.jsx(Ui, { children: s }) : s;
|
|
7038
7038
|
});
|
|
7039
|
-
|
|
7039
|
+
Pt.displayName = Fo.displayName;
|
|
7040
7040
|
var Ka = 1, Yh = 0.9, Hh = 0.8, Vh = 0.17, Ln = 0.1, Wn = 0.999, Uh = 0.9999, qh = 0.99, Gh = /[\\\/_+.#"@\[\(\{&]/, Xh = /[\\\/_+.#"@\[\(\{&]/g, Kh = /[\s-]/, qi = /[\s-]/g;
|
|
7041
7041
|
function oo(e, t, r, n, o, a, s) {
|
|
7042
7042
|
if (a === t.length) return o === e.length ? Ka : qh;
|
|
@@ -7302,22 +7302,22 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7302
7302
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
7303
7303
|
}, {}), ar = '[cmdk-group=""]', In = '[cmdk-group-items=""]', fm = '[cmdk-group-heading=""]', fl = '[cmdk-item=""]', Za = `${fl}:not([aria-disabled="true"])`, ao = "cmdk-item-select", Wt = "data-value", hm = (e, t, r) => Qh(e, t, r), hl = m.createContext(void 0), br = () => m.useContext(hl), ml = m.createContext(void 0), Yo = () => m.useContext(ml), pl = m.createContext(void 0), vl = m.forwardRef((e, t) => {
|
|
7304
7304
|
let r = It(() => {
|
|
7305
|
-
var
|
|
7306
|
-
return { search: "", value: (Y = (
|
|
7305
|
+
var P, Y;
|
|
7306
|
+
return { search: "", value: (Y = (P = e.value) != null ? P : e.defaultValue) != null ? Y : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
7307
7307
|
}), n = It(() => /* @__PURE__ */ new Set()), o = It(() => /* @__PURE__ */ new Map()), a = It(() => /* @__PURE__ */ new Map()), s = It(() => /* @__PURE__ */ new Set()), i = gl(e), { label: c, children: d, value: u, onValueChange: f, filter: h, shouldFilter: p, loop: g, disablePointerSelection: v = !1, vimBindings: b = !0, ...x } = e, w = qe(), N = qe(), C = qe(), j = m.useRef(null), E = jm();
|
|
7308
7308
|
kt(() => {
|
|
7309
7309
|
if (u !== void 0) {
|
|
7310
|
-
let
|
|
7311
|
-
r.current.value =
|
|
7310
|
+
let P = u.trim();
|
|
7311
|
+
r.current.value = P, k.emit();
|
|
7312
7312
|
}
|
|
7313
7313
|
}, [u]), kt(() => {
|
|
7314
7314
|
E(6, F);
|
|
7315
7315
|
}, []);
|
|
7316
|
-
let k = m.useMemo(() => ({ subscribe: (
|
|
7316
|
+
let k = m.useMemo(() => ({ subscribe: (P) => (s.current.add(P), () => s.current.delete(P)), snapshot: () => r.current, setState: (P, Y, G) => {
|
|
7317
7317
|
var I, Q, Z, ue;
|
|
7318
|
-
if (!Object.is(r.current[
|
|
7319
|
-
if (r.current[
|
|
7320
|
-
else if (
|
|
7318
|
+
if (!Object.is(r.current[P], Y)) {
|
|
7319
|
+
if (r.current[P] = Y, P === "search") R(), W(), E(1, $);
|
|
7320
|
+
else if (P === "value") {
|
|
7321
7321
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
7322
7322
|
let ce = document.getElementById(C);
|
|
7323
7323
|
ce ? ce.focus() : (I = document.getElementById(w)) == null || I.focus();
|
|
@@ -7334,35 +7334,35 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7334
7334
|
k.emit();
|
|
7335
7335
|
}
|
|
7336
7336
|
}, emit: () => {
|
|
7337
|
-
s.current.forEach((
|
|
7338
|
-
} }), []), z = m.useMemo(() => ({ value: (
|
|
7337
|
+
s.current.forEach((P) => P());
|
|
7338
|
+
} }), []), z = m.useMemo(() => ({ value: (P, Y, G) => {
|
|
7339
7339
|
var I;
|
|
7340
|
-
Y !== ((I = a.current.get(
|
|
7340
|
+
Y !== ((I = a.current.get(P)) == null ? void 0 : I.value) && (a.current.set(P, { value: Y, keywords: G }), r.current.filtered.items.set(P, L(Y, G)), E(2, () => {
|
|
7341
7341
|
W(), k.emit();
|
|
7342
7342
|
}));
|
|
7343
|
-
}, item: (
|
|
7343
|
+
}, item: (P, Y) => (n.current.add(P), Y && (o.current.has(Y) ? o.current.get(Y).add(P) : o.current.set(Y, /* @__PURE__ */ new Set([P]))), E(3, () => {
|
|
7344
7344
|
R(), W(), r.current.value || $(), k.emit();
|
|
7345
7345
|
}), () => {
|
|
7346
|
-
a.current.delete(
|
|
7346
|
+
a.current.delete(P), n.current.delete(P), r.current.filtered.items.delete(P);
|
|
7347
7347
|
let G = T();
|
|
7348
7348
|
E(4, () => {
|
|
7349
|
-
R(), (G == null ? void 0 : G.getAttribute("id")) ===
|
|
7349
|
+
R(), (G == null ? void 0 : G.getAttribute("id")) === P && $(), k.emit();
|
|
7350
7350
|
});
|
|
7351
|
-
}), group: (
|
|
7352
|
-
a.current.delete(
|
|
7351
|
+
}), group: (P) => (o.current.has(P) || o.current.set(P, /* @__PURE__ */ new Set()), () => {
|
|
7352
|
+
a.current.delete(P), o.current.delete(P);
|
|
7353
7353
|
}), filter: () => i.current.shouldFilter, label: c || e["aria-label"], getDisablePointerSelection: () => i.current.disablePointerSelection, listId: w, inputId: C, labelId: N, listInnerRef: j }), []);
|
|
7354
|
-
function L(
|
|
7354
|
+
function L(P, Y) {
|
|
7355
7355
|
var G, I;
|
|
7356
7356
|
let Q = (I = (G = i.current) == null ? void 0 : G.filter) != null ? I : hm;
|
|
7357
|
-
return
|
|
7357
|
+
return P ? Q(P, r.current.search, Y) : 0;
|
|
7358
7358
|
}
|
|
7359
7359
|
function W() {
|
|
7360
7360
|
if (!r.current.search || i.current.shouldFilter === !1) return;
|
|
7361
|
-
let
|
|
7361
|
+
let P = r.current.filtered.items, Y = [];
|
|
7362
7362
|
r.current.filtered.groups.forEach((I) => {
|
|
7363
7363
|
let Q = o.current.get(I), Z = 0;
|
|
7364
7364
|
Q.forEach((ue) => {
|
|
7365
|
-
let ce =
|
|
7365
|
+
let ce = P.get(ue);
|
|
7366
7366
|
Z = Math.max(ce, Z);
|
|
7367
7367
|
}), Y.push([I, Z]);
|
|
7368
7368
|
});
|
|
@@ -7370,7 +7370,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7370
7370
|
A().sort((I, Q) => {
|
|
7371
7371
|
var Z, ue;
|
|
7372
7372
|
let ce = I.getAttribute("id"), Re = Q.getAttribute("id");
|
|
7373
|
-
return ((Z =
|
|
7373
|
+
return ((Z = P.get(Re)) != null ? Z : 0) - ((ue = P.get(ce)) != null ? ue : 0);
|
|
7374
7374
|
}).forEach((I) => {
|
|
7375
7375
|
let Q = I.closest(In);
|
|
7376
7376
|
Q ? Q.appendChild(I.parentElement === Q ? I : I.closest(`${In} > *`)) : G.appendChild(I.parentElement === G ? I : I.closest(`${In} > *`));
|
|
@@ -7381,11 +7381,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7381
7381
|
});
|
|
7382
7382
|
}
|
|
7383
7383
|
function $() {
|
|
7384
|
-
let
|
|
7384
|
+
let P = A().find((G) => G.getAttribute("aria-disabled") !== "true"), Y = P == null ? void 0 : P.getAttribute(Wt);
|
|
7385
7385
|
k.setState("value", Y || void 0);
|
|
7386
7386
|
}
|
|
7387
7387
|
function R() {
|
|
7388
|
-
var
|
|
7388
|
+
var P, Y, G, I;
|
|
7389
7389
|
if (!r.current.search || i.current.shouldFilter === !1) {
|
|
7390
7390
|
r.current.filtered.count = n.current.size;
|
|
7391
7391
|
return;
|
|
@@ -7393,7 +7393,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7393
7393
|
r.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
7394
7394
|
let Q = 0;
|
|
7395
7395
|
for (let Z of n.current) {
|
|
7396
|
-
let ue = (Y = (
|
|
7396
|
+
let ue = (Y = (P = a.current.get(Z)) == null ? void 0 : P.value) != null ? Y : "", ce = (I = (G = a.current.get(Z)) == null ? void 0 : G.keywords) != null ? I : [], Re = L(ue, ce);
|
|
7397
7397
|
r.current.filtered.items.set(Z, Re), Re > 0 && Q++;
|
|
7398
7398
|
}
|
|
7399
7399
|
for (let [Z, ue] of o.current) for (let ce of ue) if (r.current.filtered.items.get(ce) > 0) {
|
|
@@ -7403,70 +7403,70 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7403
7403
|
r.current.filtered.count = Q;
|
|
7404
7404
|
}
|
|
7405
7405
|
function F() {
|
|
7406
|
-
var
|
|
7406
|
+
var P, Y, G;
|
|
7407
7407
|
let I = T();
|
|
7408
|
-
I && (((
|
|
7408
|
+
I && (((P = I.parentElement) == null ? void 0 : P.firstChild) === I && ((G = (Y = I.closest(ar)) == null ? void 0 : Y.querySelector(fm)) == null || G.scrollIntoView({ block: "nearest" })), I.scrollIntoView({ block: "nearest" }));
|
|
7409
7409
|
}
|
|
7410
7410
|
function T() {
|
|
7411
|
-
var
|
|
7412
|
-
return (
|
|
7411
|
+
var P;
|
|
7412
|
+
return (P = j.current) == null ? void 0 : P.querySelector(`${fl}[aria-selected="true"]`);
|
|
7413
7413
|
}
|
|
7414
7414
|
function A() {
|
|
7415
|
-
var
|
|
7416
|
-
return Array.from(((
|
|
7415
|
+
var P;
|
|
7416
|
+
return Array.from(((P = j.current) == null ? void 0 : P.querySelectorAll(Za)) || []);
|
|
7417
7417
|
}
|
|
7418
|
-
function U(
|
|
7419
|
-
let Y = A()[
|
|
7418
|
+
function U(P) {
|
|
7419
|
+
let Y = A()[P];
|
|
7420
7420
|
Y && k.setState("value", Y.getAttribute(Wt));
|
|
7421
7421
|
}
|
|
7422
|
-
function D(
|
|
7422
|
+
function D(P) {
|
|
7423
7423
|
var Y;
|
|
7424
|
-
let G = T(), I = A(), Q = I.findIndex((ue) => ue === G), Z = I[Q +
|
|
7425
|
-
(Y = i.current) != null && Y.loop && (Z = Q +
|
|
7424
|
+
let G = T(), I = A(), Q = I.findIndex((ue) => ue === G), Z = I[Q + P];
|
|
7425
|
+
(Y = i.current) != null && Y.loop && (Z = Q + P < 0 ? I[I.length - 1] : Q + P === I.length ? I[0] : I[Q + P]), Z && k.setState("value", Z.getAttribute(Wt));
|
|
7426
7426
|
}
|
|
7427
|
-
function S(
|
|
7427
|
+
function S(P) {
|
|
7428
7428
|
let Y = T(), G = Y == null ? void 0 : Y.closest(ar), I;
|
|
7429
|
-
for (; G && !I; ) G =
|
|
7430
|
-
I ? k.setState("value", I.getAttribute(Wt)) : D(
|
|
7429
|
+
for (; G && !I; ) G = P > 0 ? Nm(G, ar) : Cm(G, ar), I = G == null ? void 0 : G.querySelector(Za);
|
|
7430
|
+
I ? k.setState("value", I.getAttribute(Wt)) : D(P);
|
|
7431
7431
|
}
|
|
7432
|
-
let q = () => U(A().length - 1), le = (
|
|
7433
|
-
|
|
7434
|
-
}, ie = (
|
|
7435
|
-
|
|
7432
|
+
let q = () => U(A().length - 1), le = (P) => {
|
|
7433
|
+
P.preventDefault(), P.metaKey ? q() : P.altKey ? S(1) : D(1);
|
|
7434
|
+
}, ie = (P) => {
|
|
7435
|
+
P.preventDefault(), P.metaKey ? U(0) : P.altKey ? S(-1) : D(-1);
|
|
7436
7436
|
};
|
|
7437
|
-
return m.createElement(gt.div, { ref: t, tabIndex: -1, ...x, "cmdk-root": "", onKeyDown: (
|
|
7437
|
+
return m.createElement(gt.div, { ref: t, tabIndex: -1, ...x, "cmdk-root": "", onKeyDown: (P) => {
|
|
7438
7438
|
var Y;
|
|
7439
|
-
(Y = x.onKeyDown) == null || Y.call(x,
|
|
7440
|
-
let G =
|
|
7441
|
-
if (!(
|
|
7439
|
+
(Y = x.onKeyDown) == null || Y.call(x, P);
|
|
7440
|
+
let G = P.nativeEvent.isComposing || P.keyCode === 229;
|
|
7441
|
+
if (!(P.defaultPrevented || G)) switch (P.key) {
|
|
7442
7442
|
case "n":
|
|
7443
7443
|
case "j": {
|
|
7444
|
-
b &&
|
|
7444
|
+
b && P.ctrlKey && le(P);
|
|
7445
7445
|
break;
|
|
7446
7446
|
}
|
|
7447
7447
|
case "ArrowDown": {
|
|
7448
|
-
le(
|
|
7448
|
+
le(P);
|
|
7449
7449
|
break;
|
|
7450
7450
|
}
|
|
7451
7451
|
case "p":
|
|
7452
7452
|
case "k": {
|
|
7453
|
-
b &&
|
|
7453
|
+
b && P.ctrlKey && ie(P);
|
|
7454
7454
|
break;
|
|
7455
7455
|
}
|
|
7456
7456
|
case "ArrowUp": {
|
|
7457
|
-
ie(
|
|
7457
|
+
ie(P);
|
|
7458
7458
|
break;
|
|
7459
7459
|
}
|
|
7460
7460
|
case "Home": {
|
|
7461
|
-
|
|
7461
|
+
P.preventDefault(), U(0);
|
|
7462
7462
|
break;
|
|
7463
7463
|
}
|
|
7464
7464
|
case "End": {
|
|
7465
|
-
|
|
7465
|
+
P.preventDefault(), q();
|
|
7466
7466
|
break;
|
|
7467
7467
|
}
|
|
7468
7468
|
case "Enter": {
|
|
7469
|
-
|
|
7469
|
+
P.preventDefault();
|
|
7470
7470
|
let I = T();
|
|
7471
7471
|
if (I) {
|
|
7472
7472
|
let Q = new Event(ao);
|
|
@@ -7474,7 +7474,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7474
7474
|
}
|
|
7475
7475
|
}
|
|
7476
7476
|
}
|
|
7477
|
-
} }, m.createElement("label", { "cmdk-label": "", htmlFor: z.inputId, id: z.labelId, style: Sm }, c), vn(e, (
|
|
7477
|
+
} }, m.createElement("label", { "cmdk-label": "", htmlFor: z.inputId, id: z.labelId, style: Sm }, c), vn(e, (P) => m.createElement(ml.Provider, { value: k }, m.createElement(hl.Provider, { value: z }, P))));
|
|
7478
7478
|
}), mm = m.forwardRef((e, t) => {
|
|
7479
7479
|
var r, n;
|
|
7480
7480
|
let o = qe(), a = m.useRef(null), s = m.useContext(pl), i = br(), c = gl(e), d = (n = (r = c.current) == null ? void 0 : r.forceMount) != null ? n : s == null ? void 0 : s.forceMount;
|
|
@@ -7532,7 +7532,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7532
7532
|
}), ym = m.forwardRef((e, t) => pt((r) => r.filtered.count === 0) ? m.createElement(gt.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), wm = m.forwardRef((e, t) => {
|
|
7533
7533
|
let { progress: r, children: n, label: o = "Loading...", ...a } = e;
|
|
7534
7534
|
return m.createElement(gt.div, { ref: t, ...a, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, vn(e, (s) => m.createElement("div", { "aria-hidden": !0 }, s)));
|
|
7535
|
-
}),
|
|
7535
|
+
}), _e = Object.assign(vl, { List: bm, Item: mm, Input: gm, Group: pm, Separator: vm, Dialog: xm, Empty: ym, Loading: wm });
|
|
7536
7536
|
function Nm(e, t) {
|
|
7537
7537
|
let r = e.nextElementSibling;
|
|
7538
7538
|
for (; r; ) {
|
|
@@ -7593,24 +7593,24 @@ function vn({ asChild: e, children: t }, r) {
|
|
|
7593
7593
|
}
|
|
7594
7594
|
var Sm = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
7595
7595
|
const xr = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
|
|
7596
|
-
|
|
7596
|
+
_e,
|
|
7597
7597
|
{
|
|
7598
7598
|
ref: r,
|
|
7599
|
-
className:
|
|
7599
|
+
className: M(
|
|
7600
7600
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
7601
7601
|
e
|
|
7602
7602
|
),
|
|
7603
7603
|
...t
|
|
7604
7604
|
}
|
|
7605
7605
|
));
|
|
7606
|
-
xr.displayName =
|
|
7606
|
+
xr.displayName = _e.displayName;
|
|
7607
7607
|
const yr = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
7608
7608
|
/* @__PURE__ */ l.jsx(xo, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
7609
7609
|
/* @__PURE__ */ l.jsx(
|
|
7610
|
-
|
|
7610
|
+
_e.Input,
|
|
7611
7611
|
{
|
|
7612
7612
|
ref: r,
|
|
7613
|
-
className:
|
|
7613
|
+
className: M(
|
|
7614
7614
|
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
7615
7615
|
e
|
|
7616
7616
|
),
|
|
@@ -7618,72 +7618,72 @@ const yr = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsxs("d
|
|
|
7618
7618
|
}
|
|
7619
7619
|
)
|
|
7620
7620
|
] }));
|
|
7621
|
-
yr.displayName =
|
|
7621
|
+
yr.displayName = _e.Input.displayName;
|
|
7622
7622
|
const gn = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
|
|
7623
|
-
|
|
7623
|
+
_e.List,
|
|
7624
7624
|
{
|
|
7625
7625
|
ref: r,
|
|
7626
|
-
className:
|
|
7626
|
+
className: M("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
7627
7627
|
...t
|
|
7628
7628
|
}
|
|
7629
7629
|
));
|
|
7630
|
-
gn.displayName =
|
|
7630
|
+
gn.displayName = _e.List.displayName;
|
|
7631
7631
|
const wr = m.forwardRef((e, t) => /* @__PURE__ */ l.jsx(
|
|
7632
|
-
|
|
7632
|
+
_e.Empty,
|
|
7633
7633
|
{
|
|
7634
7634
|
ref: t,
|
|
7635
7635
|
className: "py-6 text-center text-sm",
|
|
7636
7636
|
...e
|
|
7637
7637
|
}
|
|
7638
7638
|
));
|
|
7639
|
-
wr.displayName =
|
|
7639
|
+
wr.displayName = _e.Empty.displayName;
|
|
7640
7640
|
const Nr = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
|
|
7641
|
-
|
|
7641
|
+
_e.Group,
|
|
7642
7642
|
{
|
|
7643
7643
|
ref: r,
|
|
7644
|
-
className:
|
|
7644
|
+
className: M(
|
|
7645
7645
|
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
7646
7646
|
e
|
|
7647
7647
|
),
|
|
7648
7648
|
...t
|
|
7649
7649
|
}
|
|
7650
7650
|
));
|
|
7651
|
-
Nr.displayName =
|
|
7651
|
+
Nr.displayName = _e.Group.displayName;
|
|
7652
7652
|
const Mm = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
|
|
7653
|
-
|
|
7653
|
+
_e.Separator,
|
|
7654
7654
|
{
|
|
7655
7655
|
ref: r,
|
|
7656
|
-
className:
|
|
7656
|
+
className: M("-mx-1 h-px bg-border", e),
|
|
7657
7657
|
...t
|
|
7658
7658
|
}
|
|
7659
7659
|
));
|
|
7660
|
-
Mm.displayName =
|
|
7660
|
+
Mm.displayName = _e.Separator.displayName;
|
|
7661
7661
|
const Ut = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
|
|
7662
|
-
|
|
7662
|
+
_e.Item,
|
|
7663
7663
|
{
|
|
7664
7664
|
ref: r,
|
|
7665
|
-
className:
|
|
7665
|
+
className: M(
|
|
7666
7666
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
7667
7667
|
e
|
|
7668
7668
|
),
|
|
7669
7669
|
...t
|
|
7670
7670
|
}
|
|
7671
7671
|
));
|
|
7672
|
-
Ut.displayName =
|
|
7673
|
-
const
|
|
7672
|
+
Ut.displayName = _e.Item.displayName;
|
|
7673
|
+
const _m = ({
|
|
7674
7674
|
className: e,
|
|
7675
7675
|
...t
|
|
7676
7676
|
}) => /* @__PURE__ */ l.jsx(
|
|
7677
7677
|
"span",
|
|
7678
7678
|
{
|
|
7679
|
-
className:
|
|
7679
|
+
className: M(
|
|
7680
7680
|
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
7681
7681
|
e
|
|
7682
7682
|
),
|
|
7683
7683
|
...t
|
|
7684
7684
|
}
|
|
7685
7685
|
);
|
|
7686
|
-
|
|
7686
|
+
_m.displayName = "MriCommandShortcut";
|
|
7687
7687
|
function $b({
|
|
7688
7688
|
options: e,
|
|
7689
7689
|
value: t,
|
|
@@ -7707,7 +7707,7 @@ function $b({
|
|
|
7707
7707
|
size: i === "sm" ? "sm" : "icon",
|
|
7708
7708
|
disabled: s,
|
|
7709
7709
|
"aria-expanded": f,
|
|
7710
|
-
className:
|
|
7710
|
+
className: M(
|
|
7711
7711
|
"aspect-square p-0 border rounded-md bg-background/50 backdrop-blur-sm hover:bg-accent/50 text-muted-foreground hover:text-foreground transition-all duration-300 shadow-sm",
|
|
7712
7712
|
c ? "border-destructive text-destructive" : "border-input",
|
|
7713
7713
|
i === "default" && "!h-[42px] !w-[42px]",
|
|
@@ -7719,7 +7719,7 @@ function $b({
|
|
|
7719
7719
|
),
|
|
7720
7720
|
typeof c == "string" && /* @__PURE__ */ l.jsx("p", { className: "text-[10px] font-medium text-destructive animate-in fade-in slide-in-from-top-1 whitespace-nowrap", children: c })
|
|
7721
7721
|
] }) }),
|
|
7722
|
-
/* @__PURE__ */ l.jsx(
|
|
7722
|
+
/* @__PURE__ */ l.jsx(Pt, { portal: u, className: "w-[200px] p-0 border-border bg-popover", align: "start", children: /* @__PURE__ */ l.jsxs(xr, { className: "bg-transparent", children: [
|
|
7723
7723
|
/* @__PURE__ */ l.jsx(yr, { placeholder: n, className: "h-9" }),
|
|
7724
7724
|
/* @__PURE__ */ l.jsx(wr, { children: o }),
|
|
7725
7725
|
/* @__PURE__ */ l.jsx(
|
|
@@ -7740,7 +7740,7 @@ function $b({
|
|
|
7740
7740
|
/* @__PURE__ */ l.jsx(
|
|
7741
7741
|
pr,
|
|
7742
7742
|
{
|
|
7743
|
-
className:
|
|
7743
|
+
className: M(
|
|
7744
7744
|
"mr-2 h-4 w-4 text-primary",
|
|
7745
7745
|
String(t) === String(p.value) ? "opacity-100" : "opacity-0"
|
|
7746
7746
|
)
|
|
@@ -7781,7 +7781,7 @@ function Ho({
|
|
|
7781
7781
|
/* @__PURE__ */ l.jsx(
|
|
7782
7782
|
dl,
|
|
7783
7783
|
{
|
|
7784
|
-
className:
|
|
7784
|
+
className: M(
|
|
7785
7785
|
"fixed inset-0 z-50 transition-all duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
7786
7786
|
!o && "bg-background/80",
|
|
7787
7787
|
!n && "backdrop-blur-sm"
|
|
@@ -7800,7 +7800,7 @@ function Ho({
|
|
|
7800
7800
|
onInteractOutside: (s) => {
|
|
7801
7801
|
s.target instanceof Element && s.target.closest("[data-radix-popper-content-wrapper]") && s.preventDefault();
|
|
7802
7802
|
},
|
|
7803
|
-
className:
|
|
7803
|
+
className: M(
|
|
7804
7804
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-sm translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-card p-6 shadow-2xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl outline-none",
|
|
7805
7805
|
r
|
|
7806
7806
|
),
|
|
@@ -7822,7 +7822,7 @@ function zb({ title: e, children: t, onClose: r, className: n }) {
|
|
|
7822
7822
|
/* @__PURE__ */ l.jsx("div", { children: t })
|
|
7823
7823
|
] });
|
|
7824
7824
|
}
|
|
7825
|
-
function
|
|
7825
|
+
function Pm({
|
|
7826
7826
|
options: e,
|
|
7827
7827
|
value: t,
|
|
7828
7828
|
onChange: r,
|
|
@@ -7851,7 +7851,7 @@ function _m({
|
|
|
7851
7851
|
isLoading: c,
|
|
7852
7852
|
"aria-expanded": v,
|
|
7853
7853
|
size: f,
|
|
7854
|
-
className:
|
|
7854
|
+
className: M(
|
|
7855
7855
|
"w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",
|
|
7856
7856
|
d && "border-destructive focus:ring-destructive",
|
|
7857
7857
|
s
|
|
@@ -7864,7 +7864,7 @@ function _m({
|
|
|
7864
7864
|
),
|
|
7865
7865
|
typeof d == "string" && /* @__PURE__ */ l.jsx("p", { className: "text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1", children: d })
|
|
7866
7866
|
] }) }),
|
|
7867
|
-
/* @__PURE__ */ l.jsx(
|
|
7867
|
+
/* @__PURE__ */ l.jsx(Pt, { portal: u, className: "w-[--radix-popover-trigger-width] p-0 border-border bg-popover z-[100]", children: /* @__PURE__ */ l.jsxs(xr, { className: "bg-transparent text-popover-foreground", children: [
|
|
7868
7868
|
/* @__PURE__ */ l.jsx(
|
|
7869
7869
|
yr,
|
|
7870
7870
|
{
|
|
@@ -7911,7 +7911,7 @@ function _m({
|
|
|
7911
7911
|
/* @__PURE__ */ l.jsx(
|
|
7912
7912
|
pr,
|
|
7913
7913
|
{
|
|
7914
|
-
className:
|
|
7914
|
+
className: M(
|
|
7915
7915
|
"mr-2 h-4 w-4 text-primary",
|
|
7916
7916
|
String(t) === String(j.value) ? "opacity-100" : "opacity-0"
|
|
7917
7917
|
)
|
|
@@ -7972,7 +7972,7 @@ function Em({
|
|
|
7972
7972
|
disabled: i || c,
|
|
7973
7973
|
isLoading: c,
|
|
7974
7974
|
"aria-expanded": h,
|
|
7975
|
-
className:
|
|
7975
|
+
className: M(
|
|
7976
7976
|
"w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground min-h-[40px] h-auto py-2",
|
|
7977
7977
|
d && "border-destructive focus:ring-destructive",
|
|
7978
7978
|
s
|
|
@@ -8015,7 +8015,7 @@ function Em({
|
|
|
8015
8015
|
),
|
|
8016
8016
|
typeof d == "string" && /* @__PURE__ */ l.jsx("p", { className: "text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1", children: d })
|
|
8017
8017
|
] }) }),
|
|
8018
|
-
/* @__PURE__ */ l.jsx(
|
|
8018
|
+
/* @__PURE__ */ l.jsx(Pt, { portal: u, className: "w-[--radix-popover-trigger-width] p-0 border-border bg-popover z-[100] shadow-2xl overflow-hidden rounded-xl", children: /* @__PURE__ */ l.jsxs(xr, { className: "bg-transparent text-popover-foreground", children: [
|
|
8019
8019
|
/* @__PURE__ */ l.jsx(yr, { placeholder: o, className: "h-10 border-none focus:ring-0 bg-transparent" }),
|
|
8020
8020
|
/* @__PURE__ */ l.jsx(wr, { className: "py-6 text-sm text-center text-muted-foreground", children: a }),
|
|
8021
8021
|
/* @__PURE__ */ l.jsx(
|
|
@@ -8030,11 +8030,11 @@ function Em({
|
|
|
8030
8030
|
onSelect: () => g(b.value),
|
|
8031
8031
|
className: "aria-selected:bg-primary/10 aria-selected:text-primary rounded-lg cursor-pointer flex items-center justify-between py-2.5 px-3 transition-all active:scale-[0.98]",
|
|
8032
8032
|
children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
8033
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
8033
|
+
/* @__PURE__ */ l.jsx("div", { className: M(
|
|
8034
8034
|
"w-4 h-4 rounded border flex items-center justify-center transition-all duration-200",
|
|
8035
8035
|
t.includes(b.value) ? "bg-primary border-primary" : "border-border bg-background"
|
|
8036
8036
|
), children: t.includes(b.value) && /* @__PURE__ */ l.jsx(pr, { className: "h-3 w-3 text-primary-foreground stroke-[3px]" }) }),
|
|
8037
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
8037
|
+
/* @__PURE__ */ l.jsx("span", { className: M("text-sm font-medium", t.includes(b.value) ? "text-primary" : "text-foreground"), children: b.label })
|
|
8038
8038
|
] })
|
|
8039
8039
|
},
|
|
8040
8040
|
b.value
|
|
@@ -8045,7 +8045,7 @@ function Em({
|
|
|
8045
8045
|
] });
|
|
8046
8046
|
}
|
|
8047
8047
|
function Bb(e) {
|
|
8048
|
-
return e.multiple === !0 ? /* @__PURE__ */ l.jsx(Em, { ...e }) : /* @__PURE__ */ l.jsx(
|
|
8048
|
+
return e.multiple === !0 ? /* @__PURE__ */ l.jsx(Em, { ...e }) : /* @__PURE__ */ l.jsx(Pm, { ...e });
|
|
8049
8049
|
}
|
|
8050
8050
|
var Dm = (e, t, r, n, o, a, s, i) => {
|
|
8051
8051
|
let c = document.documentElement, d = ["light", "dark"];
|
|
@@ -8093,7 +8093,7 @@ const Yb = ({ themeLabel: e = "Tema", themeIconLabel: t = "Alterar tema", lightL
|
|
|
8093
8093
|
"div",
|
|
8094
8094
|
{
|
|
8095
8095
|
ref: d,
|
|
8096
|
-
className:
|
|
8096
|
+
className: M(
|
|
8097
8097
|
"flex items-center gap-1 p-1 border border-input rounded-md bg-background/50 backdrop-blur-sm transition-all duration-300 ease-in-out overflow-hidden shadow-sm",
|
|
8098
8098
|
i ? "w-[114px] bg-background" : "w-[42px] cursor-pointer hover:bg-accent/50"
|
|
8099
8099
|
),
|
|
@@ -8108,7 +8108,7 @@ const Yb = ({ themeLabel: e = "Tema", themeIconLabel: t = "Alterar tema", lightL
|
|
|
8108
8108
|
{
|
|
8109
8109
|
variant: "ghost",
|
|
8110
8110
|
size: "icon",
|
|
8111
|
-
className:
|
|
8111
|
+
className: M(
|
|
8112
8112
|
"h-8 w-8 rounded-md transition-all duration-300 shrink-0",
|
|
8113
8113
|
h ? "bg-primary/10 text-primary hover:bg-primary/20" : "text-muted-foreground hover:text-foreground"
|
|
8114
8114
|
),
|
|
@@ -8153,7 +8153,7 @@ function Hb({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteL
|
|
|
8153
8153
|
{
|
|
8154
8154
|
variant: "outline",
|
|
8155
8155
|
size: a,
|
|
8156
|
-
className:
|
|
8156
|
+
className: M(
|
|
8157
8157
|
"w-full min-w-[120px] justify-start pl-3 text-left font-normal",
|
|
8158
8158
|
!e && "text-muted-foreground",
|
|
8159
8159
|
s && "border-destructive focus:ring-destructive"
|
|
@@ -8167,7 +8167,7 @@ function Hb({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteL
|
|
|
8167
8167
|
),
|
|
8168
8168
|
typeof s == "string" && /* @__PURE__ */ l.jsx("p", { className: "text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1", children: s })
|
|
8169
8169
|
] }) }),
|
|
8170
|
-
/* @__PURE__ */ l.jsx(
|
|
8170
|
+
/* @__PURE__ */ l.jsx(Pt, { className: "w-auto p-0 bg-card border-border", align: "start", children: /* @__PURE__ */ l.jsxs("div", { className: "flex h-[300px] divide-x divide-border", children: [
|
|
8171
8171
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col", children: [
|
|
8172
8172
|
/* @__PURE__ */ l.jsx("div", { className: "p-2 text-center font-medium bg-muted/50 text-xs", children: n }),
|
|
8173
8173
|
/* @__PURE__ */ l.jsx(Xr, { className: "h-full w-[80px]", children: /* @__PURE__ */ l.jsx("div", { className: "p-2 space-y-1", children: x.map(({ value: C, disabled: j }) => /* @__PURE__ */ l.jsx(
|
|
@@ -8176,7 +8176,7 @@ function Hb({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteL
|
|
|
8176
8176
|
variant: "ghost",
|
|
8177
8177
|
size: "sm",
|
|
8178
8178
|
disabled: j,
|
|
8179
|
-
className:
|
|
8179
|
+
className: M(
|
|
8180
8180
|
"w-full justify-center text-sm font-normal",
|
|
8181
8181
|
f === C ? "bg-primary text-primary-foreground hover:bg-primary/90" : "text-muted-foreground hover:text-foreground"
|
|
8182
8182
|
),
|
|
@@ -8194,7 +8194,7 @@ function Hb({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteL
|
|
|
8194
8194
|
variant: "ghost",
|
|
8195
8195
|
size: "sm",
|
|
8196
8196
|
disabled: j,
|
|
8197
|
-
className:
|
|
8197
|
+
className: M(
|
|
8198
8198
|
"w-full justify-center text-sm font-normal",
|
|
8199
8199
|
h === C ? "bg-primary text-primary-foreground hover:bg-primary/90" : "text-muted-foreground hover:text-foreground"
|
|
8200
8200
|
),
|
|
@@ -8221,10 +8221,10 @@ function Vb({
|
|
|
8221
8221
|
{
|
|
8222
8222
|
size: "sm",
|
|
8223
8223
|
variant: n,
|
|
8224
|
-
className:
|
|
8224
|
+
className: M("p-0 text-muted-foreground hover:text-foreground", t),
|
|
8225
8225
|
onClick: o,
|
|
8226
8226
|
title: "Copy to clipboard",
|
|
8227
|
-
children: /* @__PURE__ */ l.jsx(ud, { className:
|
|
8227
|
+
children: /* @__PURE__ */ l.jsx(ud, { className: M(`w-${r} h-${r}`) })
|
|
8228
8228
|
}
|
|
8229
8229
|
);
|
|
8230
8230
|
}
|
|
@@ -8242,7 +8242,7 @@ function Ub({
|
|
|
8242
8242
|
return /* @__PURE__ */ l.jsxs("div", { className: "bg-card border border-border p-4 rounded-lg flex items-center justify-between", children: [
|
|
8243
8243
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
8244
8244
|
/* @__PURE__ */ l.jsx("div", { className: "text-xs text-muted-foreground font-bold uppercase", children: e }),
|
|
8245
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
8245
|
+
/* @__PURE__ */ l.jsx("div", { className: M("text-xl font-bold font-mono", r), children: c ? t : "••••••" })
|
|
8246
8246
|
] }),
|
|
8247
8247
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col items-end gap-1", children: [
|
|
8248
8248
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
@@ -8299,7 +8299,7 @@ const qb = ({
|
|
|
8299
8299
|
return /* @__PURE__ */ l.jsxs(
|
|
8300
8300
|
"div",
|
|
8301
8301
|
{
|
|
8302
|
-
className:
|
|
8302
|
+
className: M(
|
|
8303
8303
|
"group relative bg-card border border-border rounded-xl transition-all overflow-hidden",
|
|
8304
8304
|
p ? d ? "border-primary/50 ring-1 ring-primary/20" : "hover:border-primary/50 hover:bg-muted" : "hover:border-primary/50 hover:bg-muted cursor-pointer p-4 flex flex-col justify-between min-h-[100px]",
|
|
8305
8305
|
o && "opacity-50 pointer-events-none",
|
|
@@ -8310,7 +8310,7 @@ const qb = ({
|
|
|
8310
8310
|
/* @__PURE__ */ l.jsxs(
|
|
8311
8311
|
"div",
|
|
8312
8312
|
{
|
|
8313
|
-
className:
|
|
8313
|
+
className: M(
|
|
8314
8314
|
"flex flex-col gap-2 relative",
|
|
8315
8315
|
p ? "w-full p-4 cursor-pointer min-h-[100px]" : "h-full"
|
|
8316
8316
|
),
|
|
@@ -8320,7 +8320,7 @@ const qb = ({
|
|
|
8320
8320
|
/* @__PURE__ */ l.jsx(
|
|
8321
8321
|
"div",
|
|
8322
8322
|
{
|
|
8323
|
-
className:
|
|
8323
|
+
className: M(
|
|
8324
8324
|
"p-2 rounded-lg border border-border transition-colors",
|
|
8325
8325
|
p ? d ? "bg-muted border-primary/50 text-foreground" : "bg-muted/50 text-muted-foreground group-hover:border-primary/30 group-hover:text-primary" : "bg-muted text-muted-foreground group-hover:text-primary group-hover:border-primary/20"
|
|
8326
8326
|
),
|
|
@@ -8340,7 +8340,7 @@ const qb = ({
|
|
|
8340
8340
|
children: /* @__PURE__ */ l.jsx(
|
|
8341
8341
|
xd,
|
|
8342
8342
|
{
|
|
8343
|
-
className:
|
|
8343
|
+
className: M(
|
|
8344
8344
|
"h-4 w-4",
|
|
8345
8345
|
n && "fill-yellow-400 text-yellow-400"
|
|
8346
8346
|
)
|
|
@@ -8351,7 +8351,7 @@ const qb = ({
|
|
|
8351
8351
|
p && /* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground", children: d ? /* @__PURE__ */ l.jsx(cd, { className: "h-5 w-5" }) : /* @__PURE__ */ l.jsx(ir, { className: "h-5 w-5" }) })
|
|
8352
8352
|
] })
|
|
8353
8353
|
] }),
|
|
8354
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
8354
|
+
/* @__PURE__ */ l.jsx("span", { className: M(
|
|
8355
8355
|
"font-bold transition-colors",
|
|
8356
8356
|
p ? "text-card-foreground mt-auto" : "text-foreground/90 group-hover:text-foreground mt-auto"
|
|
8357
8357
|
), children: t }),
|
|
@@ -8363,7 +8363,7 @@ const qb = ({
|
|
|
8363
8363
|
p && d && /* @__PURE__ */ l.jsx("div", { className: "p-4 space-y-4 bg-muted/30", children: c.map((v, b) => {
|
|
8364
8364
|
if (v.option === "text")
|
|
8365
8365
|
return /* @__PURE__ */ l.jsxs("div", { className: "space-y-1.5", children: [
|
|
8366
|
-
/* @__PURE__ */ l.jsx("label", { className:
|
|
8366
|
+
/* @__PURE__ */ l.jsx("label", { className: M("text-xs font-medium text-muted-foreground ml-1", v.disabled && "opacity-40"), children: v.label }),
|
|
8367
8367
|
/* @__PURE__ */ l.jsx(
|
|
8368
8368
|
yo,
|
|
8369
8369
|
{
|
|
@@ -8380,7 +8380,7 @@ const qb = ({
|
|
|
8380
8380
|
if (v.option === "dropdown") {
|
|
8381
8381
|
const x = v.id;
|
|
8382
8382
|
return /* @__PURE__ */ l.jsxs("div", { className: "space-y-1.5", children: [
|
|
8383
|
-
/* @__PURE__ */ l.jsx("label", { className:
|
|
8383
|
+
/* @__PURE__ */ l.jsx("label", { className: M("text-xs font-medium text-muted-foreground ml-1", v.disabled && "opacity-40"), children: v.label }),
|
|
8384
8384
|
/* @__PURE__ */ l.jsxs(
|
|
8385
8385
|
Qt,
|
|
8386
8386
|
{
|
|
@@ -8402,7 +8402,7 @@ const qb = ({
|
|
|
8402
8402
|
]
|
|
8403
8403
|
}
|
|
8404
8404
|
) }),
|
|
8405
|
-
/* @__PURE__ */ l.jsx(
|
|
8405
|
+
/* @__PURE__ */ l.jsx(Pt, { className: "w-[300px] p-0 border-border bg-popover", children: /* @__PURE__ */ l.jsxs(xr, { className: "bg-transparent", children: [
|
|
8406
8406
|
/* @__PURE__ */ l.jsx(
|
|
8407
8407
|
yr,
|
|
8408
8408
|
{
|
|
@@ -8423,7 +8423,7 @@ const qb = ({
|
|
|
8423
8423
|
/* @__PURE__ */ l.jsx(
|
|
8424
8424
|
pr,
|
|
8425
8425
|
{
|
|
8426
|
-
className:
|
|
8426
|
+
className: M(
|
|
8427
8427
|
"mr-2 h-4 w-4 text-green-500",
|
|
8428
8428
|
v.selectedValue === w.value ? "opacity-100" : "opacity-0"
|
|
8429
8429
|
)
|
|
@@ -8476,10 +8476,10 @@ const qb = ({
|
|
|
8476
8476
|
destructive: "bg-destructive/10 text-destructive",
|
|
8477
8477
|
warning: "bg-yellow-500/10 text-yellow-500"
|
|
8478
8478
|
}, f = r === "destructive" ? "destructive" : "default";
|
|
8479
|
-
return /* @__PURE__ */ l.jsxs(Ho, { onClose: n, className:
|
|
8479
|
+
return /* @__PURE__ */ l.jsxs(Ho, { onClose: n, className: M("w-full", c), children: [
|
|
8480
8480
|
/* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-center mb-6", children: [
|
|
8481
8481
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
8482
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
8482
|
+
/* @__PURE__ */ l.jsx("div", { className: M("p-2 rounded-lg", u[r]), children: /* @__PURE__ */ l.jsx(t, { className: "w-5 h-5" }) }),
|
|
8483
8483
|
/* @__PURE__ */ l.jsx("p", { className: "font-bold text-lg text-foreground", children: e })
|
|
8484
8484
|
] }),
|
|
8485
8485
|
/* @__PURE__ */ l.jsx(
|
|
@@ -8497,7 +8497,7 @@ const qb = ({
|
|
|
8497
8497
|
o && /* @__PURE__ */ l.jsx(
|
|
8498
8498
|
ee,
|
|
8499
8499
|
{
|
|
8500
|
-
className:
|
|
8500
|
+
className: M(
|
|
8501
8501
|
"flex-1",
|
|
8502
8502
|
r === "destructive" && "bg-destructive hover:bg-destructive/90 text-destructive-foreground"
|
|
8503
8503
|
),
|
|
@@ -8523,7 +8523,7 @@ function Xb({
|
|
|
8523
8523
|
{
|
|
8524
8524
|
type: "button",
|
|
8525
8525
|
variant: "secondary",
|
|
8526
|
-
className:
|
|
8526
|
+
className: M(
|
|
8527
8527
|
"h-12 flex items-center justify-start gap-3 px-4 bg-card hover:bg-muted border border-border text-foreground hover:text-foreground transition-all min-w-0 w-full",
|
|
8528
8528
|
n === "destructive" && "text-red-400 hover:text-red-300 hover:bg-red-900/20 hover:border-red-900/50",
|
|
8529
8529
|
n === "warning" && "text-yellow-400 hover:text-yellow-300 hover:bg-yellow-900/20 hover:border-yellow-900/50",
|
|
@@ -8548,8 +8548,8 @@ function Kb({
|
|
|
8548
8548
|
size: a = "default",
|
|
8549
8549
|
error: s
|
|
8550
8550
|
}) {
|
|
8551
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
8552
|
-
/* @__PURE__ */ l.jsx(xo, { className:
|
|
8551
|
+
return /* @__PURE__ */ l.jsxs("div", { className: M("relative", o, n), children: [
|
|
8552
|
+
/* @__PURE__ */ l.jsx(xo, { className: M("absolute left-3 top-2.5 w-4 h-4 text-muted-foreground pointer-events-none z-10", a === "sm" && "top-2") }),
|
|
8553
8553
|
/* @__PURE__ */ l.jsx(
|
|
8554
8554
|
yo,
|
|
8555
8555
|
{
|
|
@@ -8558,13 +8558,13 @@ function Kb({
|
|
|
8558
8558
|
onChange: (i) => t(i.target.value),
|
|
8559
8559
|
size: a,
|
|
8560
8560
|
error: s,
|
|
8561
|
-
className:
|
|
8561
|
+
className: M("pl-9 bg-card border-border focus:border-primary/50 w-full transition-colors", a === "default" && "h-10")
|
|
8562
8562
|
}
|
|
8563
8563
|
)
|
|
8564
8564
|
] });
|
|
8565
8565
|
}
|
|
8566
8566
|
function Qb({ icon: e, title: t, className: r }) {
|
|
8567
|
-
return /* @__PURE__ */ l.jsxs("h3", { className:
|
|
8567
|
+
return /* @__PURE__ */ l.jsxs("h3", { className: M("text-muted-foreground text-xs font-bold uppercase tracking-widest mb-3 flex items-center gap-2", r), children: [
|
|
8568
8568
|
/* @__PURE__ */ l.jsx(e, { className: "w-3.5 h-3.5" }),
|
|
8569
8569
|
" ",
|
|
8570
8570
|
t
|
|
@@ -9796,8 +9796,8 @@ const ns = (e, t) => {
|
|
|
9796
9796
|
}, kp = {
|
|
9797
9797
|
p: Sl,
|
|
9798
9798
|
P: jp
|
|
9799
|
-
}, Sp = /^D+$/, Mp = /^Y+$/,
|
|
9800
|
-
function
|
|
9799
|
+
}, Sp = /^D+$/, Mp = /^Y+$/, _p = ["D", "DD", "YY", "YYYY"];
|
|
9800
|
+
function Pp(e) {
|
|
9801
9801
|
return Sp.test(e);
|
|
9802
9802
|
}
|
|
9803
9803
|
function Ep(e) {
|
|
@@ -9805,7 +9805,7 @@ function Ep(e) {
|
|
|
9805
9805
|
}
|
|
9806
9806
|
function Dp(e, t, r) {
|
|
9807
9807
|
const n = Rp(e, t, r);
|
|
9808
|
-
if (console.warn(n),
|
|
9808
|
+
if (console.warn(n), _p.includes(e)) throw new RangeError(n);
|
|
9809
9809
|
}
|
|
9810
9810
|
function Rp(e, t, r) {
|
|
9811
9811
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
@@ -9847,7 +9847,7 @@ function it(e, t, r) {
|
|
|
9847
9847
|
return c.map((w) => {
|
|
9848
9848
|
if (!w.isToken) return w.value;
|
|
9849
9849
|
const N = w.value;
|
|
9850
|
-
(!(r != null && r.useAdditionalWeekYearTokens) && Ep(N) || !(r != null && r.useAdditionalDayOfYearTokens) &&
|
|
9850
|
+
(!(r != null && r.useAdditionalWeekYearTokens) && Ep(N) || !(r != null && r.useAdditionalDayOfYearTokens) && Pp(N)) && Dp(N, t, String(e));
|
|
9851
9851
|
const C = es[N[0]];
|
|
9852
9852
|
return C(i, N, o.localize, d);
|
|
9853
9853
|
}).join("");
|
|
@@ -10301,7 +10301,7 @@ function xv(e, t) {
|
|
|
10301
10301
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
10302
10302
|
return r;
|
|
10303
10303
|
}
|
|
10304
|
-
function
|
|
10304
|
+
function _l(e, t, r) {
|
|
10305
10305
|
for (var n = 0, o = t.length, a; n < o; n++)
|
|
10306
10306
|
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
10307
10307
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
@@ -10384,9 +10384,9 @@ var Mv = /* @__PURE__ */ Object.freeze({
|
|
|
10384
10384
|
formatWeekNumber: jv,
|
|
10385
10385
|
formatWeekdayName: kv,
|
|
10386
10386
|
formatYearCaption: Sv
|
|
10387
|
-
}),
|
|
10387
|
+
}), _v = function(e, t, r) {
|
|
10388
10388
|
return it(e, "do MMMM (EEEE)", r);
|
|
10389
|
-
},
|
|
10389
|
+
}, Pv = function() {
|
|
10390
10390
|
return "Month: ";
|
|
10391
10391
|
}, Ev = function() {
|
|
10392
10392
|
return "Go to next month";
|
|
@@ -10400,8 +10400,8 @@ var Mv = /* @__PURE__ */ Object.freeze({
|
|
|
10400
10400
|
return "Year: ";
|
|
10401
10401
|
}, Tv = /* @__PURE__ */ Object.freeze({
|
|
10402
10402
|
__proto__: null,
|
|
10403
|
-
labelDay:
|
|
10404
|
-
labelMonthDropdown:
|
|
10403
|
+
labelDay: _v,
|
|
10404
|
+
labelMonthDropdown: Pv,
|
|
10405
10405
|
labelNext: Ev,
|
|
10406
10406
|
labelPrevious: Dv,
|
|
10407
10407
|
labelWeekNumber: Ov,
|
|
@@ -10431,17 +10431,17 @@ function Wv(e) {
|
|
|
10431
10431
|
toDate: s ? qt(s) : void 0
|
|
10432
10432
|
};
|
|
10433
10433
|
}
|
|
10434
|
-
var
|
|
10434
|
+
var Pl = Mt(void 0);
|
|
10435
10435
|
function Iv(e) {
|
|
10436
10436
|
var t, r = e.initialProps, n = Lv(), o = Wv(r), a = o.fromDate, s = o.toDate, i = (t = r.captionLayout) !== null && t !== void 0 ? t : n.captionLayout;
|
|
10437
10437
|
i !== "buttons" && (!a || !s) && (i = "buttons");
|
|
10438
10438
|
var c;
|
|
10439
10439
|
(xn(r) || jr(r) || kr(r)) && (c = r.onSelect);
|
|
10440
10440
|
var d = B(B(B({}, n), r), { captionLayout: i, classNames: B(B({}, n.classNames), r.classNames), components: B({}, r.components), formatters: B(B({}, n.formatters), r.formatters), fromDate: a, labels: B(B({}, n.labels), r.labels), mode: r.mode || n.mode, modifiers: B(B({}, n.modifiers), r.modifiers), modifiersClassNames: B(B({}, n.modifiersClassNames), r.modifiersClassNames), onSelect: c, styles: B(B({}, n.styles), r.styles), toDate: s });
|
|
10441
|
-
return l.jsx(
|
|
10441
|
+
return l.jsx(Pl.Provider, { value: d, children: e.children });
|
|
10442
10442
|
}
|
|
10443
10443
|
function ae() {
|
|
10444
|
-
var e =
|
|
10444
|
+
var e = _t(Pl);
|
|
10445
10445
|
if (!e)
|
|
10446
10446
|
throw new Error("useDayPicker must be used within a DayPickerProvider.");
|
|
10447
10447
|
return e;
|
|
@@ -10563,7 +10563,7 @@ function Gv(e) {
|
|
|
10563
10563
|
return l.jsx(Rl.Provider, { value: u, children: e.children });
|
|
10564
10564
|
}
|
|
10565
10565
|
function Sr() {
|
|
10566
|
-
var e =
|
|
10566
|
+
var e = _t(Rl);
|
|
10567
10567
|
if (!e)
|
|
10568
10568
|
throw new Error("useNavigation must be used within a NavigationProvider");
|
|
10569
10569
|
return e;
|
|
@@ -10659,7 +10659,7 @@ function ag(e) {
|
|
|
10659
10659
|
if (!g) {
|
|
10660
10660
|
var v = !!(!u.selected && a && (n == null ? void 0 : n.length) === a);
|
|
10661
10661
|
if (!v) {
|
|
10662
|
-
var b = n ?
|
|
10662
|
+
var b = n ? _l([], n) : [];
|
|
10663
10663
|
if (u.selected) {
|
|
10664
10664
|
var x = b.findIndex(function(w) {
|
|
10665
10665
|
return Me(d, w);
|
|
@@ -10687,7 +10687,7 @@ function ag(e) {
|
|
|
10687
10687
|
return l.jsx(Ko.Provider, { value: c, children: r });
|
|
10688
10688
|
}
|
|
10689
10689
|
function Qo() {
|
|
10690
|
-
var e =
|
|
10690
|
+
var e = _t(Ko);
|
|
10691
10691
|
if (!e)
|
|
10692
10692
|
throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");
|
|
10693
10693
|
return e;
|
|
@@ -10760,13 +10760,13 @@ function lg(e) {
|
|
|
10760
10760
|
return l.jsx(Zo.Provider, { value: { selected: n, onDayClick: d, modifiers: u }, children: r });
|
|
10761
10761
|
}
|
|
10762
10762
|
function Jo() {
|
|
10763
|
-
var e =
|
|
10763
|
+
var e = _t(Zo);
|
|
10764
10764
|
if (!e)
|
|
10765
10765
|
throw new Error("useSelectRange must be used within a SelectRangeProvider");
|
|
10766
10766
|
return e;
|
|
10767
10767
|
}
|
|
10768
10768
|
function Hr(e) {
|
|
10769
|
-
return Array.isArray(e) ?
|
|
10769
|
+
return Array.isArray(e) ? _l([], e) : e !== void 0 ? [e] : [];
|
|
10770
10770
|
}
|
|
10771
10771
|
function cg(e) {
|
|
10772
10772
|
var t = {};
|
|
@@ -10790,7 +10790,7 @@ function pg(e) {
|
|
|
10790
10790
|
return l.jsx(Ol.Provider, { value: s, children: e.children });
|
|
10791
10791
|
}
|
|
10792
10792
|
function Al() {
|
|
10793
|
-
var e =
|
|
10793
|
+
var e = _t(Ol);
|
|
10794
10794
|
if (!e)
|
|
10795
10795
|
throw new Error("useModifiers must be used within a ModifiersProvider");
|
|
10796
10796
|
return e;
|
|
@@ -10950,17 +10950,17 @@ function Mg(e) {
|
|
|
10950
10950
|
return l.jsx(Ll.Provider, { value: v, children: e.children });
|
|
10951
10951
|
}
|
|
10952
10952
|
function ta() {
|
|
10953
|
-
var e =
|
|
10953
|
+
var e = _t(Ll);
|
|
10954
10954
|
if (!e)
|
|
10955
10955
|
throw new Error("useFocusContext must be used within a FocusProvider");
|
|
10956
10956
|
return e;
|
|
10957
10957
|
}
|
|
10958
|
-
function
|
|
10958
|
+
function _g(e, t) {
|
|
10959
10959
|
var r = Al(), n = ea(e, r, t);
|
|
10960
10960
|
return n;
|
|
10961
10961
|
}
|
|
10962
10962
|
var ra = Mt(void 0);
|
|
10963
|
-
function
|
|
10963
|
+
function Pg(e) {
|
|
10964
10964
|
if (!xn(e.initialProps)) {
|
|
10965
10965
|
var t = {
|
|
10966
10966
|
selected: void 0
|
|
@@ -10984,7 +10984,7 @@ function Eg(e) {
|
|
|
10984
10984
|
return l.jsx(ra.Provider, { value: o, children: r });
|
|
10985
10985
|
}
|
|
10986
10986
|
function Wl() {
|
|
10987
|
-
var e =
|
|
10987
|
+
var e = _t(ra);
|
|
10988
10988
|
if (!e)
|
|
10989
10989
|
throw new Error("useSelectSingle must be used within a SelectSingleProvider");
|
|
10990
10990
|
return e;
|
|
@@ -11099,7 +11099,7 @@ function Tg(e, t) {
|
|
|
11099
11099
|
}), r;
|
|
11100
11100
|
}
|
|
11101
11101
|
function Lg(e, t, r) {
|
|
11102
|
-
var n, o, a, s = ae(), i = ta(), c =
|
|
11102
|
+
var n, o, a, s = ae(), i = ta(), c = _g(e, t), d = Dg(e, c), u = Rg(), f = !!(s.onDayClick || s.mode !== "default");
|
|
11103
11103
|
ye(function() {
|
|
11104
11104
|
var E;
|
|
11105
11105
|
c.outside || i.focusedDay && f && Me(i.focusedDay, e) && ((E = r.current) === null || E === void 0 || E.focus());
|
|
@@ -11231,7 +11231,7 @@ function Gg(e) {
|
|
|
11231
11231
|
}
|
|
11232
11232
|
function Xg(e) {
|
|
11233
11233
|
var t = e.children, r = xv(e, ["children"]);
|
|
11234
|
-
return l.jsx(Iv, { initialProps: r, children: l.jsx(Gv, { children: l.jsx(
|
|
11234
|
+
return l.jsx(Iv, { initialProps: r, children: l.jsx(Gv, { children: l.jsx(Pg, { initialProps: r, children: l.jsx(og, { initialProps: r, children: l.jsx(ig, { initialProps: r, children: l.jsx(pg, { children: l.jsx(Mg, { children: t }) }) }) }) }) }) });
|
|
11235
11235
|
}
|
|
11236
11236
|
function Kg(e) {
|
|
11237
11237
|
return l.jsx(Xg, B({}, e, { children: l.jsx(Gg, { initialProps: e }) }));
|
|
@@ -11272,7 +11272,7 @@ function Il({
|
|
|
11272
11272
|
variant: "ghost",
|
|
11273
11273
|
size: "sm",
|
|
11274
11274
|
disabled: w,
|
|
11275
|
-
className:
|
|
11275
|
+
className: M(
|
|
11276
11276
|
"h-9 font-normal justify-center",
|
|
11277
11277
|
x && "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground"
|
|
11278
11278
|
),
|
|
@@ -11295,7 +11295,7 @@ function Il({
|
|
|
11295
11295
|
variant: "ghost",
|
|
11296
11296
|
size: "sm",
|
|
11297
11297
|
disabled: w,
|
|
11298
|
-
className:
|
|
11298
|
+
className: M(
|
|
11299
11299
|
"h-9 font-normal justify-center",
|
|
11300
11300
|
x && "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground"
|
|
11301
11301
|
),
|
|
@@ -11321,7 +11321,7 @@ function Il({
|
|
|
11321
11321
|
}
|
|
11322
11322
|
)
|
|
11323
11323
|
};
|
|
11324
|
-
return o === "months" ? /* @__PURE__ */ l.jsxs("div", { className:
|
|
11324
|
+
return o === "months" ? /* @__PURE__ */ l.jsxs("div", { className: M("p-3", e), children: [
|
|
11325
11325
|
/* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-center mb-4 px-1", children: [
|
|
11326
11326
|
/* @__PURE__ */ l.jsx(f.CaptionLabel, {}),
|
|
11327
11327
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-1", children: [
|
|
@@ -11348,7 +11348,7 @@ function Il({
|
|
|
11348
11348
|
] })
|
|
11349
11349
|
] }),
|
|
11350
11350
|
d()
|
|
11351
|
-
] }) : o === "years" ? /* @__PURE__ */ l.jsxs("div", { className:
|
|
11351
|
+
] }) : o === "years" ? /* @__PURE__ */ l.jsxs("div", { className: M("p-3", e), children: [
|
|
11352
11352
|
/* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-center mb-4 px-1", children: [
|
|
11353
11353
|
/* @__PURE__ */ l.jsx(f.CaptionLabel, {}),
|
|
11354
11354
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-1", children: [
|
|
@@ -11377,7 +11377,7 @@ function Il({
|
|
|
11377
11377
|
Kg,
|
|
11378
11378
|
{
|
|
11379
11379
|
showOutsideDays: r,
|
|
11380
|
-
className:
|
|
11380
|
+
className: M("p-3", e),
|
|
11381
11381
|
month: s,
|
|
11382
11382
|
onMonthChange: c,
|
|
11383
11383
|
classNames: {
|
|
@@ -11387,7 +11387,7 @@ function Il({
|
|
|
11387
11387
|
caption_label: "hidden",
|
|
11388
11388
|
// Use custom caption component
|
|
11389
11389
|
nav: "space-x-1 flex items-center",
|
|
11390
|
-
nav_button:
|
|
11390
|
+
nav_button: M(
|
|
11391
11391
|
Zn({ variant: "outline" }),
|
|
11392
11392
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
11393
11393
|
),
|
|
@@ -11398,7 +11398,7 @@ function Il({
|
|
|
11398
11398
|
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
11399
11399
|
row: "flex w-full mt-2",
|
|
11400
11400
|
cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
|
|
11401
|
-
day:
|
|
11401
|
+
day: M(
|
|
11402
11402
|
Zn({ variant: "ghost" }),
|
|
11403
11403
|
"h-9 w-9 p-0 font-normal aria-selected:opacity-100"
|
|
11404
11404
|
),
|
|
@@ -11430,7 +11430,7 @@ function Zb({ value: e, onChange: t, placeholder: r = "Selecione", disabled: n,
|
|
|
11430
11430
|
{
|
|
11431
11431
|
variant: "outline",
|
|
11432
11432
|
size: a,
|
|
11433
|
-
className:
|
|
11433
|
+
className: M(
|
|
11434
11434
|
"w-full justify-start pl-3 text-left font-normal",
|
|
11435
11435
|
!e && "text-muted-foreground",
|
|
11436
11436
|
s && "border-destructive focus:ring-destructive"
|
|
@@ -11444,7 +11444,7 @@ function Zb({ value: e, onChange: t, placeholder: r = "Selecione", disabled: n,
|
|
|
11444
11444
|
),
|
|
11445
11445
|
typeof s == "string" && /* @__PURE__ */ l.jsx("p", { className: "text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1", children: s })
|
|
11446
11446
|
] }) }),
|
|
11447
|
-
/* @__PURE__ */ l.jsx(
|
|
11447
|
+
/* @__PURE__ */ l.jsx(Pt, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ l.jsx(
|
|
11448
11448
|
Il,
|
|
11449
11449
|
{
|
|
11450
11450
|
mode: "single",
|
|
@@ -11826,7 +11826,7 @@ const Jb = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
|
|
|
11826
11826
|
/* @__PURE__ */ l.jsx(Vi, { asChild: !0, children: /* @__PURE__ */ l.jsx(
|
|
11827
11827
|
"button",
|
|
11828
11828
|
{
|
|
11829
|
-
className:
|
|
11829
|
+
className: M(
|
|
11830
11830
|
"w-10 h-10 rounded-full flex items-center justify-center transition-transform hover:scale-110 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-background focus:ring-ring relative overflow-hidden",
|
|
11831
11831
|
r ? "ring-2 ring-offset-2 ring-offset-background ring-ring" : "border border-dashed border-muted-foreground/50 hover:border-solid hover:border-primary"
|
|
11832
11832
|
),
|
|
@@ -11848,7 +11848,7 @@ const Jb = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
|
|
|
11848
11848
|
"button",
|
|
11849
11849
|
{
|
|
11850
11850
|
onClick: () => c(g),
|
|
11851
|
-
className:
|
|
11851
|
+
className: M(
|
|
11852
11852
|
"flex-1 text-[10px] font-bold uppercase py-1 rounded-md transition-all",
|
|
11853
11853
|
i === g ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
11854
11854
|
),
|
|
@@ -11899,7 +11899,7 @@ const Jb = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
|
|
|
11899
11899
|
], bs = ({ val: e, color: t, hex: r, icon: n, label: o, onClick: a, onIconClick: s, disabled: i }) => /* @__PURE__ */ l.jsxs(
|
|
11900
11900
|
"div",
|
|
11901
11901
|
{
|
|
11902
|
-
className:
|
|
11902
|
+
className: M(
|
|
11903
11903
|
"flex items-center gap-3 w-full transition-all duration-300",
|
|
11904
11904
|
a && !i ? "cursor-pointer hover:bg-white/[0.03] p-1.5 -m-1.5 rounded-lg group/vbar active:scale-[0.98]" : "",
|
|
11905
11905
|
i && "opacity-40 grayscale pointer-events-none"
|
|
@@ -11910,7 +11910,7 @@ const Jb = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
|
|
|
11910
11910
|
/* @__PURE__ */ l.jsxs(
|
|
11911
11911
|
"div",
|
|
11912
11912
|
{
|
|
11913
|
-
className:
|
|
11913
|
+
className: M("relative", s && !i && "cursor-pointer hover:scale-110 transition-transform"),
|
|
11914
11914
|
onClick: (c) => {
|
|
11915
11915
|
s && !i && (c.stopPropagation(), s());
|
|
11916
11916
|
},
|
|
@@ -11924,14 +11924,14 @@ const Jb = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
|
|
|
11924
11924
|
/* @__PURE__ */ l.jsx(
|
|
11925
11925
|
"div",
|
|
11926
11926
|
{
|
|
11927
|
-
className:
|
|
11927
|
+
className: M("h-full transition-all duration-1000 ease-out relative z-10", t),
|
|
11928
11928
|
style: { width: `${e}%` }
|
|
11929
11929
|
}
|
|
11930
11930
|
),
|
|
11931
11931
|
/* @__PURE__ */ l.jsx(
|
|
11932
11932
|
"div",
|
|
11933
11933
|
{
|
|
11934
|
-
className:
|
|
11934
|
+
className: M("absolute inset-0 opacity-20 blur-[2px] z-0", t),
|
|
11935
11935
|
style: { width: `${e}%` }
|
|
11936
11936
|
}
|
|
11937
11937
|
)
|
|
@@ -11954,7 +11954,7 @@ function e0({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
|
|
|
11954
11954
|
const p = e[h] !== void 0 ? e[h] : (g = e.metadata) == null ? void 0 : g[h];
|
|
11955
11955
|
return h === "health" ? Math.max(0, Math.min(100, Math.round((p || 0) - 100))) : Math.max(0, Math.min(100, Math.round(p || 0)));
|
|
11956
11956
|
}, u = (h) => (a == null ? void 0 : a[h]) || h.charAt(0).toUpperCase() + h.slice(1);
|
|
11957
|
-
return t === "mini" ? /* @__PURE__ */ l.jsxs("div", { className:
|
|
11957
|
+
return t === "mini" ? /* @__PURE__ */ l.jsxs("div", { className: M("relative space-y-3", o), children: [
|
|
11958
11958
|
i && /* @__PURE__ */ l.jsx(Xn, { label: c }),
|
|
11959
11959
|
Gn.filter((h) => h.key !== "stress").map((h) => {
|
|
11960
11960
|
const p = d(h.key), g = u(h.key);
|
|
@@ -11973,14 +11973,14 @@ function e0({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
|
|
|
11973
11973
|
h.key
|
|
11974
11974
|
);
|
|
11975
11975
|
})
|
|
11976
|
-
] }) : t === "full" ? /* @__PURE__ */ l.jsxs("div", { className:
|
|
11976
|
+
] }) : t === "full" ? /* @__PURE__ */ l.jsxs("div", { className: M("relative grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4", o), children: [
|
|
11977
11977
|
i && /* @__PURE__ */ l.jsx(Xn, { label: c }),
|
|
11978
11978
|
Gn.map((h) => {
|
|
11979
11979
|
const p = d(h.key), g = u(h.key), v = p < 20 && h.key !== "stress", b = p > 80 && h.key === "stress", x = s.includes(h.key);
|
|
11980
11980
|
return /* @__PURE__ */ l.jsxs(
|
|
11981
11981
|
"div",
|
|
11982
11982
|
{
|
|
11983
|
-
className:
|
|
11983
|
+
className: M(
|
|
11984
11984
|
"group/vital relative space-y-3 p-4 rounded-xl bg-card border border-border/50 transition-all cursor-pointer select-none overflow-hidden",
|
|
11985
11985
|
"hover:border-primary/20 hover:bg-muted/50 hover:shadow-xl hover:shadow-black/20 active:scale-[0.98]",
|
|
11986
11986
|
(v || b) && "animate-pulse border-red-500/20 bg-red-500/[0.02]",
|
|
@@ -11991,7 +11991,7 @@ function e0({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
|
|
|
11991
11991
|
/* @__PURE__ */ l.jsx(
|
|
11992
11992
|
"div",
|
|
11993
11993
|
{
|
|
11994
|
-
className:
|
|
11994
|
+
className: M("absolute -right-4 -top-4 w-16 h-16 opacity-0 group-hover/vital:opacity-10 blur-2xl rounded-full transition-opacity duration-500", h.color)
|
|
11995
11995
|
}
|
|
11996
11996
|
),
|
|
11997
11997
|
/* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-center text-[10px] font-black uppercase tracking-widest text-muted-foreground/60 group-hover/vital:text-foreground transition-colors", children: [
|
|
@@ -11999,7 +11999,7 @@ function e0({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
|
|
|
11999
11999
|
/* @__PURE__ */ l.jsx(
|
|
12000
12000
|
"div",
|
|
12001
12001
|
{
|
|
12002
|
-
className:
|
|
12002
|
+
className: M("p-1 -m-1 rounded-md transition-all", n && !x && "hover:bg-white/10 cursor-pointer active:scale-90"),
|
|
12003
12003
|
onClick: (w) => {
|
|
12004
12004
|
n && !x && (w.stopPropagation(), n(h.key, g, p));
|
|
12005
12005
|
},
|
|
@@ -12017,7 +12017,7 @@ function e0({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
|
|
|
12017
12017
|
/* @__PURE__ */ l.jsx(
|
|
12018
12018
|
"div",
|
|
12019
12019
|
{
|
|
12020
|
-
className:
|
|
12020
|
+
className: M("h-full transition-all duration-1000 ease-out relative z-10", h.color),
|
|
12021
12021
|
style: { width: `${p}%` },
|
|
12022
12022
|
children: /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent animate-shimmer" })
|
|
12023
12023
|
}
|
|
@@ -12025,7 +12025,7 @@ function e0({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
|
|
|
12025
12025
|
/* @__PURE__ */ l.jsx(
|
|
12026
12026
|
"div",
|
|
12027
12027
|
{
|
|
12028
|
-
className:
|
|
12028
|
+
className: M("absolute inset-0 opacity-20 blur-[2px] z-0", h.color),
|
|
12029
12029
|
style: { width: `${p}%` }
|
|
12030
12030
|
}
|
|
12031
12031
|
)
|
|
@@ -12035,7 +12035,7 @@ function e0({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
|
|
|
12035
12035
|
h.key
|
|
12036
12036
|
);
|
|
12037
12037
|
})
|
|
12038
|
-
] }) : /* @__PURE__ */ l.jsxs("div", { className:
|
|
12038
|
+
] }) : /* @__PURE__ */ l.jsxs("div", { className: M("relative flex flex-col gap-4", o), children: [
|
|
12039
12039
|
i && /* @__PURE__ */ l.jsx(Xn, { label: c }),
|
|
12040
12040
|
Gn.map((h) => {
|
|
12041
12041
|
const p = d(h.key), g = u(h.key);
|
|
@@ -12091,7 +12091,7 @@ function t0({
|
|
|
12091
12091
|
/* @__PURE__ */ l.jsxs("div", { className: "p-6 pb-4 border-b border-border/40 relative overflow-hidden", children: [
|
|
12092
12092
|
/* @__PURE__ */ l.jsx("div", { className: `absolute top-0 right-0 w-32 h-32 ${N.bgColor}/5 blur-3xl rounded-full -mr-16 -mt-16` }),
|
|
12093
12093
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-4 relative z-10", children: [
|
|
12094
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12094
|
+
/* @__PURE__ */ l.jsx("div", { className: M(
|
|
12095
12095
|
"p-3 rounded-xl shadow-[0_0_15px_rgba(0,0,0,0.2)] border border-primary/20",
|
|
12096
12096
|
N.bgColor + "/10",
|
|
12097
12097
|
N.color,
|
|
@@ -12107,7 +12107,7 @@ function t0({
|
|
|
12107
12107
|
/* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-end", children: [
|
|
12108
12108
|
/* @__PURE__ */ l.jsx("span", { className: "text-xs font-bold text-muted-foreground uppercase tracking-widest", children: W }),
|
|
12109
12109
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-baseline gap-1", children: [
|
|
12110
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
12110
|
+
/* @__PURE__ */ l.jsx("span", { className: M("text-4xl font-black font-mono leading-none drop-shadow-sm", N.color), children: Math.round(x) }),
|
|
12111
12111
|
/* @__PURE__ */ l.jsx("span", { className: "text-lg font-bold text-muted-foreground", children: "%" })
|
|
12112
12112
|
] })
|
|
12113
12113
|
] }),
|
|
@@ -12122,7 +12122,7 @@ function t0({
|
|
|
12122
12122
|
value: x,
|
|
12123
12123
|
onChange: b ? void 0 : ($) => w(Number($.target.value)),
|
|
12124
12124
|
disabled: b,
|
|
12125
|
-
className:
|
|
12125
|
+
className: M("vital-adjust-slider", b && "opacity-40 grayscale cursor-not-allowed"),
|
|
12126
12126
|
style: {
|
|
12127
12127
|
background: `linear-gradient(to right, ${N.hex} ${x}%, ${c ? "var(--vital-color-20)" : "var(--muted)"} ${x}%)`,
|
|
12128
12128
|
"--vital-color": N.hex,
|
|
@@ -12159,7 +12159,7 @@ function t0({
|
|
|
12159
12159
|
{
|
|
12160
12160
|
variant: "default",
|
|
12161
12161
|
disabled: b,
|
|
12162
|
-
className:
|
|
12162
|
+
className: M(
|
|
12163
12163
|
"flex-1 h-12 gap-2 text-white uppercase text-xs transition-all active:scale-95",
|
|
12164
12164
|
N.bgColor,
|
|
12165
12165
|
"hover:brightness-110 shadow-lg",
|
|
@@ -12213,7 +12213,7 @@ function t0({
|
|
|
12213
12213
|
] });
|
|
12214
12214
|
}
|
|
12215
12215
|
function r0({ title: e, icon: t, count: r, countLabel: n, children: o, className: a, ...s }) {
|
|
12216
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
12216
|
+
return /* @__PURE__ */ l.jsxs("div", { className: M("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0", a), ...s, children: [
|
|
12217
12217
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
12218
12218
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
12219
12219
|
/* @__PURE__ */ l.jsx(t, { className: "w-6 h-6 text-primary" }),
|
|
@@ -12246,7 +12246,7 @@ function n0({
|
|
|
12246
12246
|
ee,
|
|
12247
12247
|
{
|
|
12248
12248
|
variant: "ghost",
|
|
12249
|
-
className:
|
|
12249
|
+
className: M(
|
|
12250
12250
|
"w-full justify-start gap-3 relative transition-all duration-200 border",
|
|
12251
12251
|
n && "justify-center px-0",
|
|
12252
12252
|
f ? "bg-primary/10 text-primary border-primary/50 shadow-[inset_3px_0_0_0_var(--primary)]" : "border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",
|
|
@@ -12257,14 +12257,14 @@ function n0({
|
|
|
12257
12257
|
},
|
|
12258
12258
|
title: n ? d.label : void 0,
|
|
12259
12259
|
children: [
|
|
12260
|
-
/* @__PURE__ */ l.jsx(u, { className:
|
|
12261
|
-
!n && /* @__PURE__ */ l.jsx("span", { className:
|
|
12260
|
+
/* @__PURE__ */ l.jsx(u, { className: M("h-5 w-5 shrink-0", f ? "text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]" : "") }),
|
|
12261
|
+
!n && /* @__PURE__ */ l.jsx("span", { className: M("truncate font-medium", f ? "text-foreground" : "text-muted-foreground"), children: d.label }),
|
|
12262
12262
|
n && f && /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 bg-primary/10 rounded-md z-[-1]" })
|
|
12263
12263
|
]
|
|
12264
12264
|
}
|
|
12265
12265
|
);
|
|
12266
12266
|
};
|
|
12267
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
12267
|
+
return /* @__PURE__ */ l.jsxs("div", { className: M("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card", n ? "w-16 px-2" : "w-60 px-3", i), children: [
|
|
12268
12268
|
/* @__PURE__ */ l.jsxs("div", { className: "flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar", children: [
|
|
12269
12269
|
e.map((d, u) => /* @__PURE__ */ l.jsx(c, { item: d }, u)),
|
|
12270
12270
|
s
|
|
@@ -12275,7 +12275,7 @@ function n0({
|
|
|
12275
12275
|
"button",
|
|
12276
12276
|
{
|
|
12277
12277
|
onClick: o,
|
|
12278
|
-
className:
|
|
12278
|
+
className: M(
|
|
12279
12279
|
"flex items-center justify-center p-2 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground w-full mt-2"
|
|
12280
12280
|
),
|
|
12281
12281
|
children: n ? /* @__PURE__ */ l.jsx(ir, { className: "h-5 w-5" }) : /* @__PURE__ */ l.jsx(Fr, { className: "h-5 w-5" })
|
|
@@ -12301,7 +12301,7 @@ function o0({
|
|
|
12301
12301
|
ee,
|
|
12302
12302
|
{
|
|
12303
12303
|
variant: "ghost",
|
|
12304
|
-
className:
|
|
12304
|
+
className: M(
|
|
12305
12305
|
"h-10 justify-start gap-2 relative transition-all duration-200 border px-3",
|
|
12306
12306
|
u ? "bg-primary/10 text-primary border-primary/50 shadow-[inset_0_-3px_0_0_var(--primary)]" : "border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",
|
|
12307
12307
|
s
|
|
@@ -12310,13 +12310,13 @@ function o0({
|
|
|
12310
12310
|
c.onClick && c.onClick(), c.route && r && r(c.route);
|
|
12311
12311
|
},
|
|
12312
12312
|
children: [
|
|
12313
|
-
/* @__PURE__ */ l.jsx(d, { className:
|
|
12314
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
12313
|
+
/* @__PURE__ */ l.jsx(d, { className: M("h-4 w-4 shrink-0", u ? "text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]" : "") }),
|
|
12314
|
+
/* @__PURE__ */ l.jsx("span", { className: M("truncate font-medium text-sm", u ? "text-foreground" : "text-muted-foreground"), children: c.label })
|
|
12315
12315
|
]
|
|
12316
12316
|
}
|
|
12317
12317
|
);
|
|
12318
12318
|
};
|
|
12319
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
12319
|
+
return /* @__PURE__ */ l.jsxs("div", { className: M("w-full h-16 flex items-center px-4 border-b border-border bg-card gap-4", s), children: [
|
|
12320
12320
|
n && /* @__PURE__ */ l.jsx("div", { className: "flex items-center shrink-0 mr-2", children: n }),
|
|
12321
12321
|
/* @__PURE__ */ l.jsxs("div", { className: "flex-1 flex items-center gap-1 overflow-x-auto no-scrollbar", children: [
|
|
12322
12322
|
e.map((c, d) => /* @__PURE__ */ l.jsx(i, { item: c }, d)),
|
|
@@ -12329,7 +12329,7 @@ const wt = ({ label: e, className: t, style: r, active: n }) => /* @__PURE__ */
|
|
|
12329
12329
|
"div",
|
|
12330
12330
|
{
|
|
12331
12331
|
style: r,
|
|
12332
|
-
className:
|
|
12332
|
+
className: M(
|
|
12333
12333
|
"h-8 flex items-center justify-center rounded-md border text-[10px] font-bold transition-all duration-100 select-none shrink-0 shadow-sm",
|
|
12334
12334
|
n ? "bg-primary text-primary-foreground border-primary shadow-[0_0_15px_rgba(var(--primary),0.5)] scale-90 z-10" : "bg-black/40 text-white/70 border-white/20 backdrop-blur-md",
|
|
12335
12335
|
t
|
|
@@ -12346,7 +12346,7 @@ const wt = ({ label: e, className: t, style: r, active: n }) => /* @__PURE__ */
|
|
|
12346
12346
|
style: i
|
|
12347
12347
|
}
|
|
12348
12348
|
);
|
|
12349
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
12349
|
+
return /* @__PURE__ */ l.jsxs("div", { className: M("p-4 bg-black/40 backdrop-blur-3xl rounded-3xl border border-white/10 flex gap-6 w-fit mx-auto shadow-2xl overflow-hidden", t), children: [
|
|
12350
12350
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-1.5 w-[480px] shrink-0", children: [
|
|
12351
12351
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-1.5 mb-1", children: [
|
|
12352
12352
|
n("ESC", void 0, "w-10 mr-4"),
|
|
@@ -12463,11 +12463,11 @@ const wt = ({ label: e, className: t, style: r, active: n }) => /* @__PURE__ */
|
|
|
12463
12463
|
] }),
|
|
12464
12464
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-2 w-24", children: [
|
|
12465
12465
|
/* @__PURE__ */ l.jsxs("div", { className: "h-32 border border-white/10 rounded-t-[2.5rem] flex relative overflow-hidden bg-black/20", children: [
|
|
12466
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12466
|
+
/* @__PURE__ */ l.jsx("div", { className: M(
|
|
12467
12467
|
"flex-1 border-r border-white/10 transition-all duration-100",
|
|
12468
12468
|
r("LMB") ? "bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]" : "bg-transparent"
|
|
12469
12469
|
) }),
|
|
12470
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12470
|
+
/* @__PURE__ */ l.jsx("div", { className: M(
|
|
12471
12471
|
"flex-1 transition-all duration-100",
|
|
12472
12472
|
r("RMB") ? "bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]" : "bg-transparent"
|
|
12473
12473
|
) }),
|
|
@@ -12629,7 +12629,7 @@ function a0({
|
|
|
12629
12629
|
}, [e, h, i, f, a, r, d, u, k]), ye(() => {
|
|
12630
12630
|
w.current && C.current && !w.current.srcObject && (w.current.srcObject = C.current, w.current.play().catch(() => {
|
|
12631
12631
|
}), queueMicrotask(() => v(!1)));
|
|
12632
|
-
}, []), /* @__PURE__ */ l.jsxs("div", { className:
|
|
12632
|
+
}, []), /* @__PURE__ */ l.jsxs("div", { className: M("relative bg-black flex items-center justify-center overflow-hidden group rounded-xl border border-white/5 shadow-2xl", t), children: [
|
|
12633
12633
|
g && /* @__PURE__ */ l.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-3 text-muted-foreground animate-in fade-in duration-500 z-10 bg-zinc-950/90 backdrop-blur-md", children: [
|
|
12634
12634
|
/* @__PURE__ */ l.jsxs("div", { className: "relative", children: [
|
|
12635
12635
|
/* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 animate-ping rounded-full bg-primary/20" }),
|
|
@@ -12707,12 +12707,39 @@ function a0({
|
|
|
12707
12707
|
/* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 pointer-events-none shadow-[inset_0_0_100px_rgba(0,0,0,0.5)] opacity-40" })
|
|
12708
12708
|
] });
|
|
12709
12709
|
}
|
|
12710
|
+
function s0({
|
|
12711
|
+
sidebar: e,
|
|
12712
|
+
topbar: t,
|
|
12713
|
+
header: r,
|
|
12714
|
+
footer: n,
|
|
12715
|
+
children: o,
|
|
12716
|
+
sidebarPosition: a = "left",
|
|
12717
|
+
topbarPlacement: s = "aside",
|
|
12718
|
+
className: i,
|
|
12719
|
+
contentClassName: c,
|
|
12720
|
+
mainClassName: d
|
|
12721
|
+
}) {
|
|
12722
|
+
const u = e ? /* @__PURE__ */ l.jsx("aside", { className: "shrink-0 h-full", children: e }) : null, f = /* @__PURE__ */ l.jsxs("div", { className: M("flex-1 flex flex-col min-w-0 h-full", c), children: [
|
|
12723
|
+
s === "aside" && t,
|
|
12724
|
+
r,
|
|
12725
|
+
/* @__PURE__ */ l.jsx("main", { className: M("flex-1 overflow-y-auto bg-background text-foreground", d), children: o }),
|
|
12726
|
+
n && /* @__PURE__ */ l.jsx("footer", { className: "shrink-0 border-t border-border bg-card", children: n })
|
|
12727
|
+
] }), h = /* @__PURE__ */ l.jsxs("div", { className: "flex-1 flex min-h-0", children: [
|
|
12728
|
+
a === "left" && u,
|
|
12729
|
+
f,
|
|
12730
|
+
a === "right" && u
|
|
12731
|
+
] });
|
|
12732
|
+
return /* @__PURE__ */ l.jsxs("div", { className: M("h-screen w-full flex flex-col bg-background text-foreground overflow-hidden", i), children: [
|
|
12733
|
+
s === "below" && t,
|
|
12734
|
+
h
|
|
12735
|
+
] });
|
|
12736
|
+
}
|
|
12710
12737
|
export {
|
|
12711
12738
|
qb as MriActionCard,
|
|
12712
12739
|
Gb as MriActionModal,
|
|
12713
12740
|
Ca as MriBadge,
|
|
12714
12741
|
Wb as MriBanIcon,
|
|
12715
|
-
|
|
12742
|
+
_b as MriBringIcon,
|
|
12716
12743
|
ee as MriButton,
|
|
12717
12744
|
Il as MriCalendar,
|
|
12718
12745
|
Zd as MriCard,
|
|
@@ -12730,9 +12757,10 @@ export {
|
|
|
12730
12757
|
Ut as MriCommandItem,
|
|
12731
12758
|
gn as MriCommandList,
|
|
12732
12759
|
Mm as MriCommandSeparator,
|
|
12733
|
-
|
|
12760
|
+
_m as MriCommandShortcut,
|
|
12734
12761
|
$b as MriCompactSearch,
|
|
12735
12762
|
Vb as MriCopyButton,
|
|
12763
|
+
s0 as MriDashboardLayout,
|
|
12736
12764
|
Zb as MriDatePicker,
|
|
12737
12765
|
zb as MriDialog,
|
|
12738
12766
|
Ub as MriEconomyCard,
|
|
@@ -12747,7 +12775,7 @@ export {
|
|
|
12747
12775
|
a0 as MriPlayerScreenStream,
|
|
12748
12776
|
e0 as MriPlayerVitals,
|
|
12749
12777
|
Qt as MriPopover,
|
|
12750
|
-
|
|
12778
|
+
Pt as MriPopoverContent,
|
|
12751
12779
|
Zt as MriPopoverTrigger,
|
|
12752
12780
|
Eb as MriReviveIcon,
|
|
12753
12781
|
Xr as MriScrollArea,
|
|
@@ -12755,7 +12783,7 @@ export {
|
|
|
12755
12783
|
Kb as MriSearchInput,
|
|
12756
12784
|
Qb as MriSectionHeader,
|
|
12757
12785
|
Bb as MriSelect,
|
|
12758
|
-
|
|
12786
|
+
Pb as MriSendBackIcon,
|
|
12759
12787
|
n0 as MriSidebar,
|
|
12760
12788
|
Qd as MriSpinner,
|
|
12761
12789
|
Ib as MriStatusBadge,
|
|
@@ -12766,7 +12794,7 @@ export {
|
|
|
12766
12794
|
Db as MriVerifyIcon,
|
|
12767
12795
|
t0 as MriVitalAdjustModal,
|
|
12768
12796
|
Tb as MriWarnIcon,
|
|
12769
|
-
|
|
12797
|
+
M as cn,
|
|
12770
12798
|
bc as mriBadgeVariants,
|
|
12771
12799
|
Zn as mriButtonVariants
|
|
12772
12800
|
};
|