@theroutingcompany/components 0.0.44 → 0.0.45-alpha.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 +1 -1
- package/dist/trc-components.es.js +867 -860
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +46 -46
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/FormControl/FormControl.d.ts +1 -0
- package/types/components/Input/NumberInput/NumberInput.d.ts +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Z from "react";
|
|
2
|
-
import K, { useCallback as oe, forwardRef as
|
|
2
|
+
import K, { useCallback as oe, forwardRef as B, Children as Qt, isValidElement as qr, createElement as S, cloneElement as nn, Fragment as Cr, useEffect as X, createContext as Zr, useMemo as re, useContext as Ve, useRef as z, useState as J, useLayoutEffect as Mh, useReducer as OD, PureComponent as MD, useId as ND } from "react";
|
|
3
3
|
import * as Nh from "react-dom";
|
|
4
4
|
import Br, { flushSync as Fh, createPortal as Hi } from "react-dom";
|
|
5
5
|
import C, { keyframes as Be, css as De } from "styled-components";
|
|
@@ -95,10 +95,10 @@ function JD() {
|
|
|
95
95
|
Te.unshift("Warning: " + te), Function.prototype.apply.call(console[T], console, Te);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
var w = !1, P = !1,
|
|
98
|
+
var w = !1, P = !1, O = !1, k = !1, _ = !1, E;
|
|
99
99
|
E = Symbol.for("react.module.reference");
|
|
100
100
|
function F(T) {
|
|
101
|
-
return !!(typeof T == "string" || typeof T == "function" || T === n || T === a || _ || T === o || T === c || T === d || k || T === m || w || P ||
|
|
101
|
+
return !!(typeof T == "string" || typeof T == "function" || T === n || T === a || _ || T === o || T === c || T === d || k || T === m || w || P || O || typeof T == "object" && T !== null && (T.$$typeof === p || T.$$typeof === u || T.$$typeof === i || T.$$typeof === s || T.$$typeof === l || // This needs to include all possible module reference object
|
|
102
102
|
// types supported by any Flight configuration anywhere since
|
|
103
103
|
// we don't know which Flight build this will end up being used
|
|
104
104
|
// with.
|
|
@@ -114,7 +114,7 @@ function JD() {
|
|
|
114
114
|
function j(T) {
|
|
115
115
|
return T.displayName || "Context";
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function M(T) {
|
|
118
118
|
if (T == null)
|
|
119
119
|
return null;
|
|
120
120
|
if (typeof T.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof T == "function")
|
|
@@ -147,11 +147,11 @@ function JD() {
|
|
|
147
147
|
return D(T, T.render, "ForwardRef");
|
|
148
148
|
case u:
|
|
149
149
|
var ge = T.displayName || null;
|
|
150
|
-
return ge !== null ? ge :
|
|
150
|
+
return ge !== null ? ge : M(T.type) || "Memo";
|
|
151
151
|
case p: {
|
|
152
152
|
var Pe = T, Te = Pe._payload, we = Pe._init;
|
|
153
153
|
try {
|
|
154
|
-
return
|
|
154
|
+
return M(we(Te));
|
|
155
155
|
} catch {
|
|
156
156
|
return null;
|
|
157
157
|
}
|
|
@@ -159,18 +159,18 @@ function JD() {
|
|
|
159
159
|
}
|
|
160
160
|
return null;
|
|
161
161
|
}
|
|
162
|
-
var R = Object.assign, q = 0, N,
|
|
163
|
-
function
|
|
162
|
+
var R = Object.assign, q = 0, N, V, U, H, L, A, ee;
|
|
163
|
+
function G() {
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
G.__reactDisabledLog = !0;
|
|
166
166
|
function Y() {
|
|
167
167
|
{
|
|
168
168
|
if (q === 0) {
|
|
169
|
-
N = console.log,
|
|
169
|
+
N = console.log, V = console.info, U = console.warn, H = console.error, L = console.group, A = console.groupCollapsed, ee = console.groupEnd;
|
|
170
170
|
var T = {
|
|
171
171
|
configurable: !0,
|
|
172
172
|
enumerable: !0,
|
|
173
|
-
value:
|
|
173
|
+
value: G,
|
|
174
174
|
writable: !0
|
|
175
175
|
};
|
|
176
176
|
Object.defineProperties(console, {
|
|
@@ -186,7 +186,7 @@ function JD() {
|
|
|
186
186
|
q++;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function de() {
|
|
190
190
|
{
|
|
191
191
|
if (q--, q === 0) {
|
|
192
192
|
var T = {
|
|
@@ -199,13 +199,13 @@ function JD() {
|
|
|
199
199
|
value: N
|
|
200
200
|
}),
|
|
201
201
|
info: R({}, T, {
|
|
202
|
-
value:
|
|
202
|
+
value: V
|
|
203
203
|
}),
|
|
204
204
|
warn: R({}, T, {
|
|
205
205
|
value: U
|
|
206
206
|
}),
|
|
207
207
|
error: R({}, T, {
|
|
208
|
-
value:
|
|
208
|
+
value: H
|
|
209
209
|
}),
|
|
210
210
|
group: R({}, T, {
|
|
211
211
|
value: L
|
|
@@ -221,7 +221,7 @@ function JD() {
|
|
|
221
221
|
q < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var fe = $.ReactCurrentDispatcher, Q;
|
|
225
225
|
function se(T, te, ce) {
|
|
226
226
|
{
|
|
227
227
|
if (Q === void 0)
|
|
@@ -235,13 +235,13 @@ function JD() {
|
|
|
235
235
|
` + Q + T;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
var
|
|
238
|
+
var ue = !1, le;
|
|
239
239
|
{
|
|
240
240
|
var me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
241
241
|
le = new me();
|
|
242
242
|
}
|
|
243
243
|
function ae(T, te) {
|
|
244
|
-
if (!T ||
|
|
244
|
+
if (!T || ue)
|
|
245
245
|
return "";
|
|
246
246
|
{
|
|
247
247
|
var ce = le.get(T);
|
|
@@ -249,11 +249,11 @@ function JD() {
|
|
|
249
249
|
return ce;
|
|
250
250
|
}
|
|
251
251
|
var ge;
|
|
252
|
-
|
|
252
|
+
ue = !0;
|
|
253
253
|
var Pe = Error.prepareStackTrace;
|
|
254
254
|
Error.prepareStackTrace = void 0;
|
|
255
255
|
var Te;
|
|
256
|
-
Te =
|
|
256
|
+
Te = fe.current, fe.current = null, Y();
|
|
257
257
|
try {
|
|
258
258
|
if (te) {
|
|
259
259
|
var we = function() {
|
|
@@ -306,7 +306,7 @@ function JD() {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
} finally {
|
|
309
|
-
|
|
309
|
+
ue = !1, fe.current = Te, de(), Error.prepareStackTrace = Pe;
|
|
310
310
|
}
|
|
311
311
|
var yn = T ? T.displayName || T.name : "", Mf = yn ? se(yn) : "";
|
|
312
312
|
return typeof T == "function" && le.set(T, Mf), Mf;
|
|
@@ -423,8 +423,8 @@ function JD() {
|
|
|
423
423
|
}
|
|
424
424
|
function _D(T, te) {
|
|
425
425
|
if (typeof T.ref == "string" && vo.current && te && vo.current.stateNode !== te) {
|
|
426
|
-
var ce =
|
|
427
|
-
Xs[ce] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
426
|
+
var ce = M(vo.current.type);
|
|
427
|
+
Xs[ce] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', M(vo.current.type), T.ref), Xs[ce] = !0);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
function xD(T, te) {
|
|
@@ -512,7 +512,7 @@ function JD() {
|
|
|
512
512
|
function Cf() {
|
|
513
513
|
{
|
|
514
514
|
if (Js.current) {
|
|
515
|
-
var T =
|
|
515
|
+
var T = M(Js.current.type);
|
|
516
516
|
if (T)
|
|
517
517
|
return `
|
|
518
518
|
|
|
@@ -555,7 +555,7 @@ Check the top-level render call using <` + ce + ">.");
|
|
|
555
555
|
return;
|
|
556
556
|
Rf[ce] = !0;
|
|
557
557
|
var ge = "";
|
|
558
|
-
T && T._owner && T._owner !== Js.current && (ge = " It was passed a child from " +
|
|
558
|
+
T && T._owner && T._owner !== Js.current && (ge = " It was passed a child from " + M(T._owner.type) + "."), $n(T), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ce, ge), $n(null);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function If(T, te) {
|
|
@@ -592,11 +592,11 @@ Check the top-level render call using <` + ce + ">.");
|
|
|
592
592
|
else
|
|
593
593
|
return;
|
|
594
594
|
if (ce) {
|
|
595
|
-
var ge =
|
|
595
|
+
var ge = M(te);
|
|
596
596
|
At(ce, T.props, "prop", ge, T);
|
|
597
597
|
} else if (te.PropTypes !== void 0 && !Qs) {
|
|
598
598
|
Qs = !0;
|
|
599
|
-
var Pe =
|
|
599
|
+
var Pe = M(te);
|
|
600
600
|
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Pe || "Unknown");
|
|
601
601
|
}
|
|
602
602
|
typeof te.getDefaultProps == "function" && !te.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -623,7 +623,7 @@ Check the top-level render call using <` + ce + ">.");
|
|
|
623
623
|
var Je = PD(Pe);
|
|
624
624
|
Je ? xe += Je : xe += Cf();
|
|
625
625
|
var Ne;
|
|
626
|
-
T === null ? Ne = "null" : vn(T) ? Ne = "array" : T !== void 0 && T.$$typeof === t ? (Ne = "<" + (
|
|
626
|
+
T === null ? Ne = "null" : vn(T) ? Ne = "array" : T !== void 0 && T.$$typeof === t ? (Ne = "<" + (M(T.type) || "Unknown") + " />", xe = " Did you accidentally export a JSX literal instead of a component?") : Ne = typeof T, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ne, xe);
|
|
627
627
|
}
|
|
628
628
|
var Ke = SD(T, te, ce, Pe, Te);
|
|
629
629
|
if (Ke == null)
|
|
@@ -678,7 +678,7 @@ function Zi(...e) {
|
|
|
678
678
|
function _e(...e) {
|
|
679
679
|
return oe(Zi(...e), e);
|
|
680
680
|
}
|
|
681
|
-
const xr = /* @__PURE__ */
|
|
681
|
+
const xr = /* @__PURE__ */ B((e, t) => {
|
|
682
682
|
const { children: r, ...n } = e, o = Qt.toArray(r), a = o.find(eS);
|
|
683
683
|
if (a) {
|
|
684
684
|
const i = a.props.children, s = o.map((l) => l === a ? Qt.count(i) > 1 ? Qt.only(null) : /* @__PURE__ */ qr(i) ? i.props.children : null : l);
|
|
@@ -691,7 +691,7 @@ const xr = /* @__PURE__ */ V((e, t) => {
|
|
|
691
691
|
}), r);
|
|
692
692
|
});
|
|
693
693
|
xr.displayName = "Slot";
|
|
694
|
-
const bc = /* @__PURE__ */
|
|
694
|
+
const bc = /* @__PURE__ */ B((e, t) => {
|
|
695
695
|
const { children: r, ...n } = e;
|
|
696
696
|
return /* @__PURE__ */ qr(r) ? /* @__PURE__ */ nn(r, {
|
|
697
697
|
...tS(n, r.props),
|
|
@@ -742,7 +742,7 @@ const rS = [
|
|
|
742
742
|
"svg",
|
|
743
743
|
"ul"
|
|
744
744
|
], he = rS.reduce((e, t) => {
|
|
745
|
-
const r = /* @__PURE__ */
|
|
745
|
+
const r = /* @__PURE__ */ B((n, o) => {
|
|
746
746
|
const { asChild: a, ...i } = n, s = a ? xr : t;
|
|
747
747
|
return X(() => {
|
|
748
748
|
window[Symbol.for("radix-ui")] = !0;
|
|
@@ -760,7 +760,7 @@ function Od(e, t) {
|
|
|
760
760
|
() => e.dispatchEvent(t)
|
|
761
761
|
);
|
|
762
762
|
}
|
|
763
|
-
const Xi = /* @__PURE__ */
|
|
763
|
+
const Xi = /* @__PURE__ */ B((e, t) => /* @__PURE__ */ S(he.span, I({}, e, {
|
|
764
764
|
ref: t,
|
|
765
765
|
style: {
|
|
766
766
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -1091,7 +1091,7 @@ function Qe(e) {
|
|
|
1091
1091
|
e
|
|
1092
1092
|
]), e || (t ? `radix-${t}` : "");
|
|
1093
1093
|
}
|
|
1094
|
-
const jh = "Collapsible", [fS, Uh] = je(jh), [pS, Md] = fS(jh), mS = /* @__PURE__ */
|
|
1094
|
+
const jh = "Collapsible", [fS, Uh] = je(jh), [pS, Md] = fS(jh), mS = /* @__PURE__ */ B((e, t) => {
|
|
1095
1095
|
const { __scopeCollapsible: r, open: n, defaultOpen: o, disabled: a, onOpenChange: i, ...s } = e, [l = !1, c] = qe({
|
|
1096
1096
|
prop: n,
|
|
1097
1097
|
defaultProp: o,
|
|
@@ -1116,7 +1116,7 @@ const jh = "Collapsible", [fS, Uh] = je(jh), [pS, Md] = fS(jh), mS = /* @__PURE_
|
|
|
1116
1116
|
}, s, {
|
|
1117
1117
|
ref: t
|
|
1118
1118
|
})));
|
|
1119
|
-
}), hS = "CollapsibleTrigger", bS = /* @__PURE__ */
|
|
1119
|
+
}), hS = "CollapsibleTrigger", bS = /* @__PURE__ */ B((e, t) => {
|
|
1120
1120
|
const { __scopeCollapsible: r, ...n } = e, o = Md(hS, r);
|
|
1121
1121
|
return /* @__PURE__ */ S(he.button, I({
|
|
1122
1122
|
type: "button",
|
|
@@ -1129,7 +1129,7 @@ const jh = "Collapsible", [fS, Uh] = je(jh), [pS, Md] = fS(jh), mS = /* @__PURE_
|
|
|
1129
1129
|
ref: t,
|
|
1130
1130
|
onClick: ne(e.onClick, o.onOpenToggle)
|
|
1131
1131
|
}));
|
|
1132
|
-
}), Wh = "CollapsibleContent", gS = /* @__PURE__ */
|
|
1132
|
+
}), Wh = "CollapsibleContent", gS = /* @__PURE__ */ B((e, t) => {
|
|
1133
1133
|
const { forceMount: r, ...n } = e, o = Md(Wh, e.__scopeCollapsible);
|
|
1134
1134
|
return /* @__PURE__ */ S(
|
|
1135
1135
|
He,
|
|
@@ -1141,7 +1141,7 @@ const jh = "Collapsible", [fS, Uh] = je(jh), [pS, Md] = fS(jh), mS = /* @__PURE_
|
|
|
1141
1141
|
present: a
|
|
1142
1142
|
}))
|
|
1143
1143
|
);
|
|
1144
|
-
}), vS = /* @__PURE__ */
|
|
1144
|
+
}), vS = /* @__PURE__ */ B((e, t) => {
|
|
1145
1145
|
const { __scopeCollapsible: r, present: n, children: o, ...a } = e, i = Md(Wh, r), [s, l] = J(n), c = z(null), d = _e(t, c), u = z(0), p = u.current, m = z(0), h = m.current, b = i.open || s, g = z(b), $ = z();
|
|
1146
1146
|
return X(() => {
|
|
1147
1147
|
const v = requestAnimationFrame(
|
|
@@ -1292,7 +1292,7 @@ const [Gh, PS] = Qi(Rr), [Yh, TS] = Qi(Rr, {
|
|
|
1292
1292
|
return;
|
|
1293
1293
|
m.preventDefault();
|
|
1294
1294
|
let y = $;
|
|
1295
|
-
const w = 0, P = v - 1,
|
|
1295
|
+
const w = 0, P = v - 1, O = () => {
|
|
1296
1296
|
y = $ + 1, y > P && (y = w);
|
|
1297
1297
|
}, k = () => {
|
|
1298
1298
|
y = $ - 1, y < w && (y = P);
|
|
@@ -1305,13 +1305,13 @@ const [Gh, PS] = Qi(Rr), [Yh, TS] = Qi(Rr, {
|
|
|
1305
1305
|
y = P;
|
|
1306
1306
|
break;
|
|
1307
1307
|
case "ArrowRight":
|
|
1308
|
-
a === "horizontal" && (u ?
|
|
1308
|
+
a === "horizontal" && (u ? O() : k());
|
|
1309
1309
|
break;
|
|
1310
1310
|
case "ArrowDown":
|
|
1311
|
-
a === "vertical" &&
|
|
1311
|
+
a === "vertical" && O();
|
|
1312
1312
|
break;
|
|
1313
1313
|
case "ArrowLeft":
|
|
1314
|
-
a === "horizontal" && (u ? k() :
|
|
1314
|
+
a === "horizontal" && (u ? k() : O());
|
|
1315
1315
|
break;
|
|
1316
1316
|
case "ArrowUp":
|
|
1317
1317
|
a === "vertical" && k();
|
|
@@ -2854,7 +2854,7 @@ ot.displayName = "Box";
|
|
|
2854
2854
|
const Ie = ot, PP = C(ot)`
|
|
2855
2855
|
display: flex;
|
|
2856
2856
|
${({ $cursor: e }) => e && `cursor: ${e};`};
|
|
2857
|
-
`, ar =
|
|
2857
|
+
`, ar = B((e, t) => {
|
|
2858
2858
|
const { children: r, tabIndex: n, cursor: o, ...a } = e;
|
|
2859
2859
|
return /* @__PURE__ */ x(PP, { ...a, ref: t, "data-id": e["data-id"], tabIndex: n, $cursor: o, children: r });
|
|
2860
2860
|
});
|
|
@@ -3011,14 +3011,14 @@ const ab = /* @__PURE__ */ Zr({
|
|
|
3011
3011
|
layers: /* @__PURE__ */ new Set(),
|
|
3012
3012
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3013
3013
|
branches: /* @__PURE__ */ new Set()
|
|
3014
|
-
}), ao = /* @__PURE__ */
|
|
3014
|
+
}), ao = /* @__PURE__ */ B((e, t) => {
|
|
3015
3015
|
var r;
|
|
3016
3016
|
const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: o, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: s, onDismiss: l, ...c } = e, d = Ve(ab), [u, p] = J(null), m = (r = u == null ? void 0 : u.ownerDocument) !== null && r !== void 0 ? r : globalThis == null ? void 0 : globalThis.document, [, h] = J({}), b = _e(
|
|
3017
3017
|
t,
|
|
3018
3018
|
(_) => p(_)
|
|
3019
3019
|
), g = Array.from(d.layers), [$] = [
|
|
3020
3020
|
...d.layersWithOutsidePointerEventsDisabled
|
|
3021
|
-
].slice(-1), v = g.indexOf($), y = u ? g.indexOf(u) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, P = y >= v,
|
|
3021
|
+
].slice(-1), v = g.indexOf($), y = u ? g.indexOf(u) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, P = y >= v, O = VP((_) => {
|
|
3022
3022
|
const E = _.target, F = [
|
|
3023
3023
|
...d.branches
|
|
3024
3024
|
].some(
|
|
@@ -3061,9 +3061,9 @@ const ab = /* @__PURE__ */ Zr({
|
|
|
3061
3061
|
},
|
|
3062
3062
|
onFocusCapture: ne(e.onFocusCapture, k.onFocusCapture),
|
|
3063
3063
|
onBlurCapture: ne(e.onBlurCapture, k.onBlurCapture),
|
|
3064
|
-
onPointerDownCapture: ne(e.onPointerDownCapture,
|
|
3064
|
+
onPointerDownCapture: ne(e.onPointerDownCapture, O.onPointerDownCapture)
|
|
3065
3065
|
}));
|
|
3066
|
-
}), KP = /* @__PURE__ */
|
|
3066
|
+
}), KP = /* @__PURE__ */ B((e, t) => {
|
|
3067
3067
|
const r = Ve(ab), n = z(null), o = _e(t, n);
|
|
3068
3068
|
return X(() => {
|
|
3069
3069
|
const a = n.current;
|
|
@@ -3146,7 +3146,7 @@ function ib(e, t, r, { discrete: n }) {
|
|
|
3146
3146
|
const jP = ao, UP = KP, rl = "focusScope.autoFocusOnMount", nl = "focusScope.autoFocusOnUnmount", Hf = {
|
|
3147
3147
|
bubbles: !1,
|
|
3148
3148
|
cancelable: !0
|
|
3149
|
-
}, rs = /* @__PURE__ */
|
|
3149
|
+
}, rs = /* @__PURE__ */ B((e, t) => {
|
|
3150
3150
|
const { loop: r = !1, trapped: n = !1, onMountAutoFocus: o, onUnmountAutoFocus: a, ...i } = e, [s, l] = J(null), c = We(o), d = We(a), u = z(null), p = _e(
|
|
3151
3151
|
t,
|
|
3152
3152
|
(b) => l(b)
|
|
@@ -3323,7 +3323,7 @@ function ZP(e) {
|
|
|
3323
3323
|
(t) => t.tagName !== "A"
|
|
3324
3324
|
);
|
|
3325
3325
|
}
|
|
3326
|
-
const io = /* @__PURE__ */
|
|
3326
|
+
const io = /* @__PURE__ */ B((e, t) => {
|
|
3327
3327
|
var r;
|
|
3328
3328
|
const { container: n = globalThis == null || (r = globalThis.document) === null || r === void 0 ? void 0 : r.body, ...o } = e;
|
|
3329
3329
|
return n ? /* @__PURE__ */ Br.createPortal(/* @__PURE__ */ S(he.div, I({}, o, {
|
|
@@ -3725,13 +3725,13 @@ function S7(e) {
|
|
|
3725
3725
|
var s = Z.useCallback(function(b, g) {
|
|
3726
3726
|
if ("touches" in b && b.touches.length === 2)
|
|
3727
3727
|
return !i.current.allowPinchZoom;
|
|
3728
|
-
var $ = Aa(b), v = r.current, y = "deltaX" in b ? b.deltaX : v[0] - $[0], w = "deltaY" in b ? b.deltaY : v[1] - $[1], P,
|
|
3729
|
-
if ("touches" in b && k === "h" &&
|
|
3728
|
+
var $ = Aa(b), v = r.current, y = "deltaX" in b ? b.deltaX : v[0] - $[0], w = "deltaY" in b ? b.deltaY : v[1] - $[1], P, O = b.target, k = Math.abs(y) > Math.abs(w) ? "h" : "v";
|
|
3729
|
+
if ("touches" in b && k === "h" && O.type === "range")
|
|
3730
3730
|
return !1;
|
|
3731
|
-
var _ = Jf(k,
|
|
3731
|
+
var _ = Jf(k, O);
|
|
3732
3732
|
if (!_)
|
|
3733
3733
|
return !0;
|
|
3734
|
-
if (_ ? P = k : (P = k === "v" ? "h" : "v", _ = Jf(k,
|
|
3734
|
+
if (_ ? P = k : (P = k === "v" ? "h" : "v", _ = Jf(k, O)), !_)
|
|
3735
3735
|
return !1;
|
|
3736
3736
|
if (!n.current && "changedTouches" in b && (y || w) && (n.current = P), !P)
|
|
3737
3737
|
return !0;
|
|
@@ -3864,7 +3864,7 @@ const _b = "Dialog", [xb, wb] = je(_b), [C7, Et] = xb(_b), R7 = (e) => {
|
|
|
3864
3864
|
),
|
|
3865
3865
|
modal: i
|
|
3866
3866
|
}, r);
|
|
3867
|
-
}, A7 = "DialogTrigger", I7 = /* @__PURE__ */
|
|
3867
|
+
}, A7 = "DialogTrigger", I7 = /* @__PURE__ */ B((e, t) => {
|
|
3868
3868
|
const { __scopeDialog: r, ...n } = e, o = Et(A7, r), a = _e(t, o.triggerRef);
|
|
3869
3869
|
return /* @__PURE__ */ S(he.button, I({
|
|
3870
3870
|
type: "button",
|
|
@@ -3892,14 +3892,14 @@ const _b = "Dialog", [xb, wb] = je(_b), [C7, Et] = xb(_b), R7 = (e) => {
|
|
|
3892
3892
|
container: o
|
|
3893
3893
|
}, i))
|
|
3894
3894
|
));
|
|
3895
|
-
}, xc = "DialogOverlay", N7 = /* @__PURE__ */
|
|
3895
|
+
}, xc = "DialogOverlay", N7 = /* @__PURE__ */ B((e, t) => {
|
|
3896
3896
|
const r = Sb(xc, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = Et(xc, e.__scopeDialog);
|
|
3897
3897
|
return a.modal ? /* @__PURE__ */ S(He, {
|
|
3898
3898
|
present: n || a.open
|
|
3899
3899
|
}, /* @__PURE__ */ S(F7, I({}, o, {
|
|
3900
3900
|
ref: t
|
|
3901
3901
|
}))) : null;
|
|
3902
|
-
}), F7 = /* @__PURE__ */
|
|
3902
|
+
}), F7 = /* @__PURE__ */ B((e, t) => {
|
|
3903
3903
|
const { __scopeDialog: r, ...n } = e, o = Et(xc, r);
|
|
3904
3904
|
return (
|
|
3905
3905
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
@@ -3920,7 +3920,7 @@ const _b = "Dialog", [xb, wb] = je(_b), [C7, Et] = xb(_b), R7 = (e) => {
|
|
|
3920
3920
|
}
|
|
3921
3921
|
})))
|
|
3922
3922
|
);
|
|
3923
|
-
}), qn = "DialogContent", L7 = /* @__PURE__ */
|
|
3923
|
+
}), qn = "DialogContent", L7 = /* @__PURE__ */ B((e, t) => {
|
|
3924
3924
|
const r = Sb(qn, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = Et(qn, e.__scopeDialog);
|
|
3925
3925
|
return /* @__PURE__ */ S(He, {
|
|
3926
3926
|
present: n || a.open
|
|
@@ -3929,7 +3929,7 @@ const _b = "Dialog", [xb, wb] = je(_b), [C7, Et] = xb(_b), R7 = (e) => {
|
|
|
3929
3929
|
})) : /* @__PURE__ */ S(K7, I({}, o, {
|
|
3930
3930
|
ref: t
|
|
3931
3931
|
})));
|
|
3932
|
-
}), z7 = /* @__PURE__ */
|
|
3932
|
+
}), z7 = /* @__PURE__ */ B((e, t) => {
|
|
3933
3933
|
const r = Et(qn, e.__scopeDialog), n = z(null), o = _e(t, r.contentRef, n);
|
|
3934
3934
|
return X(() => {
|
|
3935
3935
|
const a = n.current;
|
|
@@ -3952,7 +3952,7 @@ const _b = "Dialog", [xb, wb] = je(_b), [C7, Et] = xb(_b), R7 = (e) => {
|
|
|
3952
3952
|
(a) => a.preventDefault()
|
|
3953
3953
|
)
|
|
3954
3954
|
}));
|
|
3955
|
-
}), K7 = /* @__PURE__ */
|
|
3955
|
+
}), K7 = /* @__PURE__ */ B((e, t) => {
|
|
3956
3956
|
const r = Et(qn, e.__scopeDialog), n = z(!1), o = z(!1);
|
|
3957
3957
|
return /* @__PURE__ */ S(Pb, I({}, e, {
|
|
3958
3958
|
ref: t,
|
|
@@ -3973,7 +3973,7 @@ const _b = "Dialog", [xb, wb] = je(_b), [C7, Et] = xb(_b), R7 = (e) => {
|
|
|
3973
3973
|
((s = r.triggerRef.current) === null || s === void 0 ? void 0 : s.contains(l)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
|
|
3974
3974
|
}
|
|
3975
3975
|
}));
|
|
3976
|
-
}), Pb = /* @__PURE__ */
|
|
3976
|
+
}), Pb = /* @__PURE__ */ B((e, t) => {
|
|
3977
3977
|
const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = Et(qn, r), l = z(null), c = _e(t, l);
|
|
3978
3978
|
return ns(), /* @__PURE__ */ S(Cr, null, /* @__PURE__ */ S(rs, {
|
|
3979
3979
|
asChild: !0,
|
|
@@ -3991,21 +3991,21 @@ const _b = "Dialog", [xb, wb] = je(_b), [C7, Et] = xb(_b), R7 = (e) => {
|
|
|
3991
3991
|
ref: c,
|
|
3992
3992
|
onDismiss: () => s.onOpenChange(!1)
|
|
3993
3993
|
}))), !1);
|
|
3994
|
-
}), Tb = "DialogTitle", V7 = /* @__PURE__ */
|
|
3994
|
+
}), Tb = "DialogTitle", V7 = /* @__PURE__ */ B((e, t) => {
|
|
3995
3995
|
const { __scopeDialog: r, ...n } = e, o = Et(Tb, r);
|
|
3996
3996
|
return /* @__PURE__ */ S(he.h2, I({
|
|
3997
3997
|
id: o.titleId
|
|
3998
3998
|
}, n, {
|
|
3999
3999
|
ref: t
|
|
4000
4000
|
}));
|
|
4001
|
-
}), B7 = "DialogDescription", j7 = /* @__PURE__ */
|
|
4001
|
+
}), B7 = "DialogDescription", j7 = /* @__PURE__ */ B((e, t) => {
|
|
4002
4002
|
const { __scopeDialog: r, ...n } = e, o = Et(B7, r);
|
|
4003
4003
|
return /* @__PURE__ */ S(he.p, I({
|
|
4004
4004
|
id: o.descriptionId
|
|
4005
4005
|
}, n, {
|
|
4006
4006
|
ref: t
|
|
4007
4007
|
}));
|
|
4008
|
-
}), U7 = "DialogClose", W7 = /* @__PURE__ */
|
|
4008
|
+
}), U7 = "DialogClose", W7 = /* @__PURE__ */ B((e, t) => {
|
|
4009
4009
|
const { __scopeDialog: r, ...n } = e, o = Et(U7, r);
|
|
4010
4010
|
return /* @__PURE__ */ S(he.button, I({
|
|
4011
4011
|
type: "button"
|
|
@@ -4031,7 +4031,7 @@ const H7 = "DialogTitleWarning", [G7, iB] = aS(H7, {
|
|
|
4031
4031
|
return /* @__PURE__ */ S(kb, I({}, n, r, {
|
|
4032
4032
|
modal: !0
|
|
4033
4033
|
}));
|
|
4034
|
-
}, X7 = /* @__PURE__ */
|
|
4034
|
+
}, X7 = /* @__PURE__ */ B((e, t) => {
|
|
4035
4035
|
const { __scopeAlertDialog: r, ...n } = e, o = cr(r);
|
|
4036
4036
|
return /* @__PURE__ */ S(Eb, I({}, o, n, {
|
|
4037
4037
|
ref: t
|
|
@@ -4039,12 +4039,12 @@ const H7 = "DialogTitleWarning", [G7, iB] = aS(H7, {
|
|
|
4039
4039
|
}), J7 = (e) => {
|
|
4040
4040
|
const { __scopeAlertDialog: t, ...r } = e, n = cr(t);
|
|
4041
4041
|
return /* @__PURE__ */ S(Cb, I({}, n, r));
|
|
4042
|
-
}, Q7 = /* @__PURE__ */
|
|
4042
|
+
}, Q7 = /* @__PURE__ */ B((e, t) => {
|
|
4043
4043
|
const { __scopeAlertDialog: r, ...n } = e, o = cr(r);
|
|
4044
4044
|
return /* @__PURE__ */ S(Rb, I({}, o, n, {
|
|
4045
4045
|
ref: t
|
|
4046
4046
|
}));
|
|
4047
|
-
}), Mb = "AlertDialogContent", [e3, t3] = q7(Mb), r3 = /* @__PURE__ */
|
|
4047
|
+
}), Mb = "AlertDialogContent", [e3, t3] = q7(Mb), r3 = /* @__PURE__ */ B((e, t) => {
|
|
4048
4048
|
const { __scopeAlertDialog: r, children: n, ...o } = e, a = cr(r), i = z(null), s = _e(t, i), l = z(null);
|
|
4049
4049
|
return /* @__PURE__ */ S(G7, {
|
|
4050
4050
|
contentName: Mb,
|
|
@@ -4066,22 +4066,22 @@ const H7 = "DialogTitleWarning", [G7, iB] = aS(H7, {
|
|
|
4066
4066
|
onPointerDownOutside: (c) => c.preventDefault(),
|
|
4067
4067
|
onInteractOutside: (c) => c.preventDefault()
|
|
4068
4068
|
}), /* @__PURE__ */ S(Id, null, n), !1)));
|
|
4069
|
-
}), n3 = "AlertDialogTitle", o3 = /* @__PURE__ */
|
|
4069
|
+
}), n3 = "AlertDialogTitle", o3 = /* @__PURE__ */ B((e, t) => {
|
|
4070
4070
|
const { __scopeAlertDialog: r, ...n } = e, o = cr(r);
|
|
4071
4071
|
return /* @__PURE__ */ S(Ib, I({}, o, n, {
|
|
4072
4072
|
ref: t
|
|
4073
4073
|
}));
|
|
4074
|
-
}), a3 = /* @__PURE__ */
|
|
4074
|
+
}), a3 = /* @__PURE__ */ B((e, t) => {
|
|
4075
4075
|
const { __scopeAlertDialog: r, ...n } = e, o = cr(r);
|
|
4076
4076
|
return /* @__PURE__ */ S(Ob, I({}, o, n, {
|
|
4077
4077
|
ref: t
|
|
4078
4078
|
}));
|
|
4079
|
-
}), i3 = /* @__PURE__ */
|
|
4079
|
+
}), i3 = /* @__PURE__ */ B((e, t) => {
|
|
4080
4080
|
const { __scopeAlertDialog: r, ...n } = e, o = cr(r);
|
|
4081
4081
|
return /* @__PURE__ */ S(ss, I({}, o, n, {
|
|
4082
4082
|
ref: t
|
|
4083
4083
|
}));
|
|
4084
|
-
}), s3 = "AlertDialogCancel", l3 = /* @__PURE__ */
|
|
4084
|
+
}), s3 = "AlertDialogCancel", l3 = /* @__PURE__ */ B((e, t) => {
|
|
4085
4085
|
const { __scopeAlertDialog: r, ...n } = e, { cancelRef: o } = t3(s3, r), a = cr(r), i = _e(t, o);
|
|
4086
4086
|
return /* @__PURE__ */ S(ss, I({}, a, n, {
|
|
4087
4087
|
ref: i
|
|
@@ -4195,13 +4195,13 @@ function v3() {
|
|
|
4195
4195
|
arrayOf: y,
|
|
4196
4196
|
element: w(),
|
|
4197
4197
|
elementType: P(),
|
|
4198
|
-
instanceOf:
|
|
4198
|
+
instanceOf: O,
|
|
4199
4199
|
node: F(),
|
|
4200
4200
|
objectOf: _,
|
|
4201
4201
|
oneOf: k,
|
|
4202
4202
|
oneOfType: E,
|
|
4203
4203
|
shape: j,
|
|
4204
|
-
exact:
|
|
4204
|
+
exact: M
|
|
4205
4205
|
};
|
|
4206
4206
|
function h(L, A) {
|
|
4207
4207
|
return L === A ? L !== 0 || 1 / L === 1 / A : L !== L && A !== A;
|
|
@@ -4213,7 +4213,7 @@ function v3() {
|
|
|
4213
4213
|
function g(L) {
|
|
4214
4214
|
if (process.env.NODE_ENV !== "production")
|
|
4215
4215
|
var A = {}, ee = 0;
|
|
4216
|
-
function
|
|
4216
|
+
function G(de, fe, Q, se, ue, le, me) {
|
|
4217
4217
|
if (se = se || p, le = le || Q, me !== r) {
|
|
4218
4218
|
if (l) {
|
|
4219
4219
|
var ae = new Error(
|
|
@@ -4228,18 +4228,18 @@ function v3() {
|
|
|
4228
4228
|
), A[be] = !0, ee++);
|
|
4229
4229
|
}
|
|
4230
4230
|
}
|
|
4231
|
-
return
|
|
4231
|
+
return fe[Q] == null ? de ? fe[Q] === null ? new b("The " + ue + " `" + le + "` is marked as required " + ("in `" + se + "`, but its value is `null`.")) : new b("The " + ue + " `" + le + "` is marked as required in " + ("`" + se + "`, but its value is `undefined`.")) : null : L(fe, Q, se, ue, le);
|
|
4232
4232
|
}
|
|
4233
|
-
var Y =
|
|
4234
|
-
return Y.isRequired =
|
|
4233
|
+
var Y = G.bind(null, !1);
|
|
4234
|
+
return Y.isRequired = G.bind(null, !0), Y;
|
|
4235
4235
|
}
|
|
4236
4236
|
function $(L) {
|
|
4237
|
-
function A(ee,
|
|
4238
|
-
var se = ee[
|
|
4239
|
-
if (
|
|
4240
|
-
var le =
|
|
4237
|
+
function A(ee, G, Y, de, fe, Q) {
|
|
4238
|
+
var se = ee[G], ue = N(se);
|
|
4239
|
+
if (ue !== L) {
|
|
4240
|
+
var le = V(se);
|
|
4241
4241
|
return new b(
|
|
4242
|
-
"Invalid " +
|
|
4242
|
+
"Invalid " + de + " `" + fe + "` of type " + ("`" + le + "` supplied to `" + Y + "`, expected ") + ("`" + L + "`."),
|
|
4243
4243
|
{ expectedType: L }
|
|
4244
4244
|
);
|
|
4245
4245
|
}
|
|
@@ -4251,16 +4251,16 @@ function v3() {
|
|
|
4251
4251
|
return g(i);
|
|
4252
4252
|
}
|
|
4253
4253
|
function y(L) {
|
|
4254
|
-
function A(ee,
|
|
4254
|
+
function A(ee, G, Y, de, fe) {
|
|
4255
4255
|
if (typeof L != "function")
|
|
4256
|
-
return new b("Property `" +
|
|
4257
|
-
var Q = ee[
|
|
4256
|
+
return new b("Property `" + fe + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
|
|
4257
|
+
var Q = ee[G];
|
|
4258
4258
|
if (!Array.isArray(Q)) {
|
|
4259
4259
|
var se = N(Q);
|
|
4260
|
-
return new b("Invalid " +
|
|
4260
|
+
return new b("Invalid " + de + " `" + fe + "` of type " + ("`" + se + "` supplied to `" + Y + "`, expected an array."));
|
|
4261
4261
|
}
|
|
4262
|
-
for (var
|
|
4263
|
-
var le = L(Q,
|
|
4262
|
+
for (var ue = 0; ue < Q.length; ue++) {
|
|
4263
|
+
var le = L(Q, ue, Y, de, fe + "[" + ue + "]", r);
|
|
4264
4264
|
if (le instanceof Error)
|
|
4265
4265
|
return le;
|
|
4266
4266
|
}
|
|
@@ -4269,32 +4269,32 @@ function v3() {
|
|
|
4269
4269
|
return g(A);
|
|
4270
4270
|
}
|
|
4271
4271
|
function w() {
|
|
4272
|
-
function L(A, ee,
|
|
4273
|
-
var
|
|
4274
|
-
if (!s(
|
|
4275
|
-
var Q = N(
|
|
4276
|
-
return new b("Invalid " + Y + " `" +
|
|
4272
|
+
function L(A, ee, G, Y, de) {
|
|
4273
|
+
var fe = A[ee];
|
|
4274
|
+
if (!s(fe)) {
|
|
4275
|
+
var Q = N(fe);
|
|
4276
|
+
return new b("Invalid " + Y + " `" + de + "` of type " + ("`" + Q + "` supplied to `" + G + "`, expected a single ReactElement."));
|
|
4277
4277
|
}
|
|
4278
4278
|
return null;
|
|
4279
4279
|
}
|
|
4280
4280
|
return g(L);
|
|
4281
4281
|
}
|
|
4282
4282
|
function P() {
|
|
4283
|
-
function L(A, ee,
|
|
4284
|
-
var
|
|
4285
|
-
if (!e.isValidElementType(
|
|
4286
|
-
var Q = N(
|
|
4287
|
-
return new b("Invalid " + Y + " `" +
|
|
4283
|
+
function L(A, ee, G, Y, de) {
|
|
4284
|
+
var fe = A[ee];
|
|
4285
|
+
if (!e.isValidElementType(fe)) {
|
|
4286
|
+
var Q = N(fe);
|
|
4287
|
+
return new b("Invalid " + Y + " `" + de + "` of type " + ("`" + Q + "` supplied to `" + G + "`, expected a single ReactElement type."));
|
|
4288
4288
|
}
|
|
4289
4289
|
return null;
|
|
4290
4290
|
}
|
|
4291
4291
|
return g(L);
|
|
4292
4292
|
}
|
|
4293
|
-
function
|
|
4294
|
-
function A(ee,
|
|
4295
|
-
if (!(ee[
|
|
4296
|
-
var Q = L.name || p, se =
|
|
4297
|
-
return new b("Invalid " +
|
|
4293
|
+
function O(L) {
|
|
4294
|
+
function A(ee, G, Y, de, fe) {
|
|
4295
|
+
if (!(ee[G] instanceof L)) {
|
|
4296
|
+
var Q = L.name || p, se = H(ee[G]);
|
|
4297
|
+
return new b("Invalid " + de + " `" + fe + "` of type " + ("`" + se + "` supplied to `" + Y + "`, expected ") + ("instance of `" + Q + "`."));
|
|
4298
4298
|
}
|
|
4299
4299
|
return null;
|
|
4300
4300
|
}
|
|
@@ -4305,28 +4305,28 @@ function v3() {
|
|
|
4305
4305
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
4306
4306
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
4307
4307
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
4308
|
-
function A(ee,
|
|
4309
|
-
for (var Q = ee[
|
|
4308
|
+
function A(ee, G, Y, de, fe) {
|
|
4309
|
+
for (var Q = ee[G], se = 0; se < L.length; se++)
|
|
4310
4310
|
if (h(Q, L[se]))
|
|
4311
4311
|
return null;
|
|
4312
|
-
var
|
|
4313
|
-
var be =
|
|
4312
|
+
var ue = JSON.stringify(L, function(me, ae) {
|
|
4313
|
+
var be = V(ae);
|
|
4314
4314
|
return be === "symbol" ? String(ae) : ae;
|
|
4315
4315
|
});
|
|
4316
|
-
return new b("Invalid " +
|
|
4316
|
+
return new b("Invalid " + de + " `" + fe + "` of value `" + String(Q) + "` " + ("supplied to `" + Y + "`, expected one of " + ue + "."));
|
|
4317
4317
|
}
|
|
4318
4318
|
return g(A);
|
|
4319
4319
|
}
|
|
4320
4320
|
function _(L) {
|
|
4321
|
-
function A(ee,
|
|
4321
|
+
function A(ee, G, Y, de, fe) {
|
|
4322
4322
|
if (typeof L != "function")
|
|
4323
|
-
return new b("Property `" +
|
|
4324
|
-
var Q = ee[
|
|
4323
|
+
return new b("Property `" + fe + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
|
|
4324
|
+
var Q = ee[G], se = N(Q);
|
|
4325
4325
|
if (se !== "object")
|
|
4326
|
-
return new b("Invalid " +
|
|
4327
|
-
for (var
|
|
4328
|
-
if (n(Q,
|
|
4329
|
-
var le = L(Q,
|
|
4326
|
+
return new b("Invalid " + de + " `" + fe + "` of type " + ("`" + se + "` supplied to `" + Y + "`, expected an object."));
|
|
4327
|
+
for (var ue in Q)
|
|
4328
|
+
if (n(Q, ue)) {
|
|
4329
|
+
var le = L(Q, ue, Y, de, fe + "." + ue, r);
|
|
4330
4330
|
if (le instanceof Error)
|
|
4331
4331
|
return le;
|
|
4332
4332
|
}
|
|
@@ -4344,39 +4344,39 @@ function v3() {
|
|
|
4344
4344
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + U(ee) + " at index " + A + "."
|
|
4345
4345
|
), i;
|
|
4346
4346
|
}
|
|
4347
|
-
function
|
|
4348
|
-
for (var
|
|
4349
|
-
var me = L[le], ae = me(Y,
|
|
4347
|
+
function G(Y, de, fe, Q, se) {
|
|
4348
|
+
for (var ue = [], le = 0; le < L.length; le++) {
|
|
4349
|
+
var me = L[le], ae = me(Y, de, fe, Q, se, r);
|
|
4350
4350
|
if (ae == null)
|
|
4351
4351
|
return null;
|
|
4352
|
-
ae.data && n(ae.data, "expectedType") &&
|
|
4352
|
+
ae.data && n(ae.data, "expectedType") && ue.push(ae.data.expectedType);
|
|
4353
4353
|
}
|
|
4354
|
-
var be =
|
|
4355
|
-
return new b("Invalid " + Q + " `" + se + "` supplied to " + ("`" +
|
|
4354
|
+
var be = ue.length > 0 ? ", expected one of type [" + ue.join(", ") + "]" : "";
|
|
4355
|
+
return new b("Invalid " + Q + " `" + se + "` supplied to " + ("`" + fe + "`" + be + "."));
|
|
4356
4356
|
}
|
|
4357
|
-
return g(
|
|
4357
|
+
return g(G);
|
|
4358
4358
|
}
|
|
4359
4359
|
function F() {
|
|
4360
|
-
function L(A, ee,
|
|
4361
|
-
return R(A[ee]) ? null : new b("Invalid " + Y + " `" +
|
|
4360
|
+
function L(A, ee, G, Y, de) {
|
|
4361
|
+
return R(A[ee]) ? null : new b("Invalid " + Y + " `" + de + "` supplied to " + ("`" + G + "`, expected a ReactNode."));
|
|
4362
4362
|
}
|
|
4363
4363
|
return g(L);
|
|
4364
4364
|
}
|
|
4365
|
-
function D(L, A, ee,
|
|
4365
|
+
function D(L, A, ee, G, Y) {
|
|
4366
4366
|
return new b(
|
|
4367
|
-
(L || "React class") + ": " + A + " type `" + ee + "." +
|
|
4367
|
+
(L || "React class") + ": " + A + " type `" + ee + "." + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Y + "`."
|
|
4368
4368
|
);
|
|
4369
4369
|
}
|
|
4370
4370
|
function j(L) {
|
|
4371
|
-
function A(ee,
|
|
4372
|
-
var Q = ee[
|
|
4371
|
+
function A(ee, G, Y, de, fe) {
|
|
4372
|
+
var Q = ee[G], se = N(Q);
|
|
4373
4373
|
if (se !== "object")
|
|
4374
|
-
return new b("Invalid " +
|
|
4375
|
-
for (var
|
|
4376
|
-
var le = L[
|
|
4374
|
+
return new b("Invalid " + de + " `" + fe + "` of type `" + se + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
4375
|
+
for (var ue in L) {
|
|
4376
|
+
var le = L[ue];
|
|
4377
4377
|
if (typeof le != "function")
|
|
4378
|
-
return D(Y,
|
|
4379
|
-
var me = le(Q,
|
|
4378
|
+
return D(Y, de, fe, ue, V(le));
|
|
4379
|
+
var me = le(Q, ue, Y, de, fe + "." + ue, r);
|
|
4380
4380
|
if (me)
|
|
4381
4381
|
return me;
|
|
4382
4382
|
}
|
|
@@ -4384,22 +4384,22 @@ function v3() {
|
|
|
4384
4384
|
}
|
|
4385
4385
|
return g(A);
|
|
4386
4386
|
}
|
|
4387
|
-
function
|
|
4388
|
-
function A(ee,
|
|
4389
|
-
var Q = ee[
|
|
4387
|
+
function M(L) {
|
|
4388
|
+
function A(ee, G, Y, de, fe) {
|
|
4389
|
+
var Q = ee[G], se = N(Q);
|
|
4390
4390
|
if (se !== "object")
|
|
4391
|
-
return new b("Invalid " +
|
|
4392
|
-
var
|
|
4393
|
-
for (var le in
|
|
4391
|
+
return new b("Invalid " + de + " `" + fe + "` of type `" + se + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
4392
|
+
var ue = t({}, ee[G], L);
|
|
4393
|
+
for (var le in ue) {
|
|
4394
4394
|
var me = L[le];
|
|
4395
4395
|
if (n(L, le) && typeof me != "function")
|
|
4396
|
-
return D(Y,
|
|
4396
|
+
return D(Y, de, fe, le, V(me));
|
|
4397
4397
|
if (!me)
|
|
4398
4398
|
return new b(
|
|
4399
|
-
"Invalid " +
|
|
4399
|
+
"Invalid " + de + " `" + fe + "` key `" + le + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(ee[G], null, " ") + `
|
|
4400
4400
|
Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
|
|
4401
4401
|
);
|
|
4402
|
-
var ae = me(Q, le, Y,
|
|
4402
|
+
var ae = me(Q, le, Y, de, fe + "." + le, r);
|
|
4403
4403
|
if (ae)
|
|
4404
4404
|
return ae;
|
|
4405
4405
|
}
|
|
@@ -4422,14 +4422,14 @@ Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
|
|
|
4422
4422
|
return !0;
|
|
4423
4423
|
var A = u(L);
|
|
4424
4424
|
if (A) {
|
|
4425
|
-
var ee = A.call(L),
|
|
4425
|
+
var ee = A.call(L), G;
|
|
4426
4426
|
if (A !== L.entries) {
|
|
4427
|
-
for (; !(
|
|
4428
|
-
if (!R(
|
|
4427
|
+
for (; !(G = ee.next()).done; )
|
|
4428
|
+
if (!R(G.value))
|
|
4429
4429
|
return !1;
|
|
4430
4430
|
} else
|
|
4431
|
-
for (; !(
|
|
4432
|
-
var Y =
|
|
4431
|
+
for (; !(G = ee.next()).done; ) {
|
|
4432
|
+
var Y = G.value;
|
|
4433
4433
|
if (Y && !R(Y[1]))
|
|
4434
4434
|
return !1;
|
|
4435
4435
|
}
|
|
@@ -4447,7 +4447,7 @@ Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
|
|
|
4447
4447
|
var A = typeof L;
|
|
4448
4448
|
return Array.isArray(L) ? "array" : L instanceof RegExp ? "object" : q(A, L) ? "symbol" : A;
|
|
4449
4449
|
}
|
|
4450
|
-
function
|
|
4450
|
+
function V(L) {
|
|
4451
4451
|
if (typeof L > "u" || L === null)
|
|
4452
4452
|
return "" + L;
|
|
4453
4453
|
var A = N(L);
|
|
@@ -4460,7 +4460,7 @@ Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
|
|
|
4460
4460
|
return A;
|
|
4461
4461
|
}
|
|
4462
4462
|
function U(L) {
|
|
4463
|
-
var A =
|
|
4463
|
+
var A = V(L);
|
|
4464
4464
|
switch (A) {
|
|
4465
4465
|
case "array":
|
|
4466
4466
|
case "object":
|
|
@@ -4473,7 +4473,7 @@ Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
|
|
|
4473
4473
|
return A;
|
|
4474
4474
|
}
|
|
4475
4475
|
}
|
|
4476
|
-
function
|
|
4476
|
+
function H(L) {
|
|
4477
4477
|
return !L.constructor || !L.constructor.name ? p : L.constructor.name;
|
|
4478
4478
|
}
|
|
4479
4479
|
return m.checkPropTypes = o, m.resetWarningCache = o.resetWarningCache, m.PropTypes = m, m;
|
|
@@ -4534,7 +4534,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
4534
4534
|
} else
|
|
4535
4535
|
wc.exports = $3()();
|
|
4536
4536
|
var ke = wc.exports;
|
|
4537
|
-
const
|
|
4537
|
+
const pe = /* @__PURE__ */ qi(ke);
|
|
4538
4538
|
var Dc = "data-focus-lock", Lb = "data-focus-lock-disabled", x3 = "data-no-focus-lock", w3 = "data-autofocus-inside", D3 = "data-no-autofocus", pl = {
|
|
4539
4539
|
width: "1px",
|
|
4540
4540
|
height: "0px",
|
|
@@ -4544,7 +4544,7 @@ var Dc = "data-focus-lock", Lb = "data-focus-lock-disabled", x3 = "data-no-focus
|
|
|
4544
4544
|
top: "1px",
|
|
4545
4545
|
left: "1px"
|
|
4546
4546
|
};
|
|
4547
|
-
process.env.NODE_ENV !== "production" &&
|
|
4547
|
+
process.env.NODE_ENV !== "production" && pe.node;
|
|
4548
4548
|
var zb = Hd({}, function(e) {
|
|
4549
4549
|
var t = e.target, r = e.currentTarget;
|
|
4550
4550
|
return {
|
|
@@ -4557,35 +4557,35 @@ var zb = Hd({}, function(e) {
|
|
|
4557
4557
|
// however, it might be required for JSDOM tests
|
|
4558
4558
|
// ssr: true,
|
|
4559
4559
|
}), T3 = [], qd = /* @__PURE__ */ Z.forwardRef(function(t, r) {
|
|
4560
|
-
var n, o = Z.useState(), a = o[0], i = o[1], s = Z.useRef(), l = Z.useRef(!1), c = Z.useRef(null), d = t.children, u = t.disabled, p = t.noFocusGuards, m = t.persistentFocus, h = t.crossFrame, b = t.autoFocus, g = t.allowTextSelection, $ = t.group, v = t.className, y = t.whiteList, w = t.hasPositiveIndices, P = t.shards,
|
|
4560
|
+
var n, o = Z.useState(), a = o[0], i = o[1], s = Z.useRef(), l = Z.useRef(!1), c = Z.useRef(null), d = t.children, u = t.disabled, p = t.noFocusGuards, m = t.persistentFocus, h = t.crossFrame, b = t.autoFocus, g = t.allowTextSelection, $ = t.group, v = t.className, y = t.whiteList, w = t.hasPositiveIndices, P = t.shards, O = P === void 0 ? T3 : P, k = t.as, _ = k === void 0 ? "div" : k, E = t.lockProps, F = E === void 0 ? {} : E, D = t.sideCar, j = t.returnFocus, M = t.focusOptions, R = t.onActivation, q = t.onDeactivation, N = Z.useState({}), V = N[0], U = Z.useCallback(function() {
|
|
4561
4561
|
c.current = c.current || document && document.activeElement, s.current && R && R(s.current), l.current = !0;
|
|
4562
|
-
}, [R]),
|
|
4562
|
+
}, [R]), H = Z.useCallback(function() {
|
|
4563
4563
|
l.current = !1, q && q(s.current);
|
|
4564
4564
|
}, [q]);
|
|
4565
4565
|
X(function() {
|
|
4566
4566
|
u || (c.current = null);
|
|
4567
4567
|
}, []);
|
|
4568
4568
|
var L = Z.useCallback(function(se) {
|
|
4569
|
-
var
|
|
4570
|
-
if (
|
|
4571
|
-
var le = typeof j == "function" ? j(
|
|
4569
|
+
var ue = c.current;
|
|
4570
|
+
if (ue && ue.focus) {
|
|
4571
|
+
var le = typeof j == "function" ? j(ue) : j;
|
|
4572
4572
|
if (le) {
|
|
4573
4573
|
var me = typeof le == "object" ? le : void 0;
|
|
4574
4574
|
c.current = null, se ? Promise.resolve().then(function() {
|
|
4575
|
-
return
|
|
4576
|
-
}) :
|
|
4575
|
+
return ue.focus(me);
|
|
4576
|
+
}) : ue.focus(me);
|
|
4577
4577
|
}
|
|
4578
4578
|
}
|
|
4579
4579
|
}, [j]), A = Z.useCallback(function(se) {
|
|
4580
4580
|
l.current && zb.useMedium(se);
|
|
4581
|
-
}, []), ee = Kb.useMedium,
|
|
4581
|
+
}, []), ee = Kb.useMedium, G = Z.useCallback(function(se) {
|
|
4582
4582
|
s.current !== se && (s.current = se, i(se));
|
|
4583
4583
|
}, []);
|
|
4584
4584
|
process.env.NODE_ENV !== "production" && (typeof g < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), Z.useEffect(function() {
|
|
4585
4585
|
!s.current && typeof _ != "string" && console.error("FocusLock: could not obtain ref to internal node");
|
|
4586
4586
|
}, []));
|
|
4587
|
-
var Y = I((n = {}, n[Lb] = u && "disabled", n[Dc] = $, n), F),
|
|
4588
|
-
return /* @__PURE__ */ Z.createElement(Z.Fragment, null,
|
|
4587
|
+
var Y = I((n = {}, n[Lb] = u && "disabled", n[Dc] = $, n), F), de = p !== !0, fe = de && p !== "tail", Q = cb([r, G]);
|
|
4588
|
+
return /* @__PURE__ */ Z.createElement(Z.Fragment, null, de && [
|
|
4589
4589
|
// nearest focus guard
|
|
4590
4590
|
/* @__PURE__ */ Z.createElement("div", {
|
|
4591
4591
|
key: "guard-first",
|
|
@@ -4601,7 +4601,7 @@ var zb = Hd({}, function(e) {
|
|
|
4601
4601
|
style: pl
|
|
4602
4602
|
}) : null
|
|
4603
4603
|
], !u && /* @__PURE__ */ Z.createElement(D, {
|
|
4604
|
-
id:
|
|
4604
|
+
id: V,
|
|
4605
4605
|
sideCar: P3,
|
|
4606
4606
|
observed: a,
|
|
4607
4607
|
disabled: u,
|
|
@@ -4609,18 +4609,18 @@ var zb = Hd({}, function(e) {
|
|
|
4609
4609
|
crossFrame: h,
|
|
4610
4610
|
autoFocus: b,
|
|
4611
4611
|
whiteList: y,
|
|
4612
|
-
shards:
|
|
4612
|
+
shards: O,
|
|
4613
4613
|
onActivation: U,
|
|
4614
|
-
onDeactivation:
|
|
4614
|
+
onDeactivation: H,
|
|
4615
4615
|
returnFocus: L,
|
|
4616
|
-
focusOptions:
|
|
4616
|
+
focusOptions: M
|
|
4617
4617
|
}), /* @__PURE__ */ Z.createElement(_, I({
|
|
4618
4618
|
ref: Q
|
|
4619
4619
|
}, Y, {
|
|
4620
4620
|
className: v,
|
|
4621
4621
|
onBlur: ee,
|
|
4622
4622
|
onFocus: A
|
|
4623
|
-
}), d),
|
|
4623
|
+
}), d), fe && /* @__PURE__ */ Z.createElement("div", {
|
|
4624
4624
|
"data-focus-guard": !0,
|
|
4625
4625
|
tabIndex: u ? -1 : 0,
|
|
4626
4626
|
style: pl
|
|
@@ -5161,7 +5161,7 @@ var dT = function(t) {
|
|
|
5161
5161
|
}, hT = function() {
|
|
5162
5162
|
return null;
|
|
5163
5163
|
};
|
|
5164
|
-
process.env.NODE_ENV !== "production" &&
|
|
5164
|
+
process.env.NODE_ENV !== "production" && pe.node.isRequired;
|
|
5165
5165
|
var ag = function() {
|
|
5166
5166
|
Bo = "just", tu(function() {
|
|
5167
5167
|
Bo = "meanwhile";
|
|
@@ -5604,22 +5604,22 @@ nu.default = mg;
|
|
|
5604
5604
|
const hg = /* @__PURE__ */ qi(us), bp = {
|
|
5605
5605
|
disabled: !1
|
|
5606
5606
|
};
|
|
5607
|
-
var pk = process.env.NODE_ENV !== "production" ?
|
|
5608
|
-
enter:
|
|
5609
|
-
exit:
|
|
5610
|
-
appear:
|
|
5607
|
+
var pk = process.env.NODE_ENV !== "production" ? pe.oneOfType([pe.number, pe.shape({
|
|
5608
|
+
enter: pe.number,
|
|
5609
|
+
exit: pe.number,
|
|
5610
|
+
appear: pe.number
|
|
5611
5611
|
}).isRequired]) : null;
|
|
5612
|
-
process.env.NODE_ENV !== "production" &&
|
|
5613
|
-
enter:
|
|
5614
|
-
exit:
|
|
5615
|
-
active:
|
|
5616
|
-
}),
|
|
5617
|
-
enter:
|
|
5618
|
-
enterDone:
|
|
5619
|
-
enterActive:
|
|
5620
|
-
exit:
|
|
5621
|
-
exitDone:
|
|
5622
|
-
exitActive:
|
|
5612
|
+
process.env.NODE_ENV !== "production" && pe.oneOfType([pe.string, pe.shape({
|
|
5613
|
+
enter: pe.string,
|
|
5614
|
+
exit: pe.string,
|
|
5615
|
+
active: pe.string
|
|
5616
|
+
}), pe.shape({
|
|
5617
|
+
enter: pe.string,
|
|
5618
|
+
enterDone: pe.string,
|
|
5619
|
+
enterActive: pe.string,
|
|
5620
|
+
exit: pe.string,
|
|
5621
|
+
exitDone: pe.string,
|
|
5622
|
+
exitActive: pe.string
|
|
5623
5623
|
})]);
|
|
5624
5624
|
const bg = K.createContext(null);
|
|
5625
5625
|
var mk = function(t) {
|
|
@@ -5766,10 +5766,10 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5766
5766
|
* (see
|
|
5767
5767
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
5768
5768
|
*/
|
|
5769
|
-
nodeRef:
|
|
5770
|
-
current: typeof Element > "u" ?
|
|
5769
|
+
nodeRef: pe.shape({
|
|
5770
|
+
current: typeof Element > "u" ? pe.any : function(e, t, r, n, o, a) {
|
|
5771
5771
|
var i = e[t];
|
|
5772
|
-
return
|
|
5772
|
+
return pe.instanceOf(i && "ownerDocument" in i ? i.ownerDocument.defaultView.Element : Element)(e, t, r, n, o, a);
|
|
5773
5773
|
}
|
|
5774
5774
|
}),
|
|
5775
5775
|
/**
|
|
@@ -5786,23 +5786,23 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5786
5786
|
* </Transition>
|
|
5787
5787
|
* ```
|
|
5788
5788
|
*/
|
|
5789
|
-
children:
|
|
5789
|
+
children: pe.oneOfType([pe.func.isRequired, pe.element.isRequired]).isRequired,
|
|
5790
5790
|
/**
|
|
5791
5791
|
* Show the component; triggers the enter or exit states
|
|
5792
5792
|
*/
|
|
5793
|
-
in:
|
|
5793
|
+
in: pe.bool,
|
|
5794
5794
|
/**
|
|
5795
5795
|
* By default the child component is mounted immediately along with
|
|
5796
5796
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
5797
5797
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
5798
5798
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
5799
5799
|
*/
|
|
5800
|
-
mountOnEnter:
|
|
5800
|
+
mountOnEnter: pe.bool,
|
|
5801
5801
|
/**
|
|
5802
5802
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
5803
5803
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
5804
5804
|
*/
|
|
5805
|
-
unmountOnExit:
|
|
5805
|
+
unmountOnExit: pe.bool,
|
|
5806
5806
|
/**
|
|
5807
5807
|
* By default the child component does not perform the enter transition when
|
|
5808
5808
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -5814,15 +5814,15 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5814
5814
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
5815
5815
|
* > differently.
|
|
5816
5816
|
*/
|
|
5817
|
-
appear:
|
|
5817
|
+
appear: pe.bool,
|
|
5818
5818
|
/**
|
|
5819
5819
|
* Enable or disable enter transitions.
|
|
5820
5820
|
*/
|
|
5821
|
-
enter:
|
|
5821
|
+
enter: pe.bool,
|
|
5822
5822
|
/**
|
|
5823
5823
|
* Enable or disable exit transitions.
|
|
5824
5824
|
*/
|
|
5825
|
-
exit:
|
|
5825
|
+
exit: pe.bool,
|
|
5826
5826
|
/**
|
|
5827
5827
|
* The duration of the transition, in milliseconds.
|
|
5828
5828
|
* Required unless `addEndListener` is provided.
|
|
@@ -5870,7 +5870,7 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5870
5870
|
* }}
|
|
5871
5871
|
* ```
|
|
5872
5872
|
*/
|
|
5873
|
-
addEndListener:
|
|
5873
|
+
addEndListener: pe.func,
|
|
5874
5874
|
/**
|
|
5875
5875
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
5876
5876
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -5879,7 +5879,7 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5879
5879
|
*
|
|
5880
5880
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
5881
5881
|
*/
|
|
5882
|
-
onEnter:
|
|
5882
|
+
onEnter: pe.func,
|
|
5883
5883
|
/**
|
|
5884
5884
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
5885
5885
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -5888,7 +5888,7 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5888
5888
|
*
|
|
5889
5889
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
5890
5890
|
*/
|
|
5891
|
-
onEntering:
|
|
5891
|
+
onEntering: pe.func,
|
|
5892
5892
|
/**
|
|
5893
5893
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
5894
5894
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -5897,7 +5897,7 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5897
5897
|
*
|
|
5898
5898
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
5899
5899
|
*/
|
|
5900
|
-
onEntered:
|
|
5900
|
+
onEntered: pe.func,
|
|
5901
5901
|
/**
|
|
5902
5902
|
* Callback fired before the "exiting" status is applied.
|
|
5903
5903
|
*
|
|
@@ -5905,7 +5905,7 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5905
5905
|
*
|
|
5906
5906
|
* @type Function(node: HtmlElement) -> void
|
|
5907
5907
|
*/
|
|
5908
|
-
onExit:
|
|
5908
|
+
onExit: pe.func,
|
|
5909
5909
|
/**
|
|
5910
5910
|
* Callback fired after the "exiting" status is applied.
|
|
5911
5911
|
*
|
|
@@ -5913,7 +5913,7 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5913
5913
|
*
|
|
5914
5914
|
* @type Function(node: HtmlElement) -> void
|
|
5915
5915
|
*/
|
|
5916
|
-
onExiting:
|
|
5916
|
+
onExiting: pe.func,
|
|
5917
5917
|
/**
|
|
5918
5918
|
* Callback fired after the "exited" status is applied.
|
|
5919
5919
|
*
|
|
@@ -5921,7 +5921,7 @@ dr.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
5921
5921
|
*
|
|
5922
5922
|
* @type Function(node: HtmlElement) -> void
|
|
5923
5923
|
*/
|
|
5924
|
-
onExited:
|
|
5924
|
+
onExited: pe.func
|
|
5925
5925
|
} : {};
|
|
5926
5926
|
function Sn() {
|
|
5927
5927
|
}
|
|
@@ -6099,7 +6099,7 @@ const _k = $g, sn = C(Ie)`
|
|
|
6099
6099
|
h5: Pk,
|
|
6100
6100
|
h6: Tk,
|
|
6101
6101
|
body: kk
|
|
6102
|
-
}, Zn =
|
|
6102
|
+
}, Zn = B((e, t) => {
|
|
6103
6103
|
const {
|
|
6104
6104
|
children: r,
|
|
6105
6105
|
weak: n = !1,
|
|
@@ -7066,7 +7066,7 @@ function cn(e) {
|
|
|
7066
7066
|
}), P = Ue((_) => {
|
|
7067
7067
|
let E = b.current;
|
|
7068
7068
|
E.isPressed && (E.isOverTarget && y(Wt(E.target, _), E.pointerType, !1), E.isPressed = !1, E.isOverTarget = !1, E.activePointerId = null, E.pointerType = null, $(), d || Na(E.target));
|
|
7069
|
-
}),
|
|
7069
|
+
}), O = Ue((_) => {
|
|
7070
7070
|
c && P(_);
|
|
7071
7071
|
}), k = re(() => {
|
|
7072
7072
|
let _ = b.current, E = {
|
|
@@ -7093,7 +7093,7 @@ function cn(e) {
|
|
|
7093
7093
|
_.pointerType = "virtual";
|
|
7094
7094
|
return;
|
|
7095
7095
|
}
|
|
7096
|
-
yl(R.currentTarget) && R.preventDefault(), _.pointerType = R.pointerType, R.stopPropagation(), _.isPressed || (_.isPressed = !0, _.isOverTarget = !0, _.activePointerId = R.pointerId, _.target = R.currentTarget, !i && !l && qt(R.currentTarget), d || xp(_.target), v(R, _.pointerType), g(document, "pointermove", D, !1), g(document, "pointerup", j, !1), g(document, "pointercancel",
|
|
7096
|
+
yl(R.currentTarget) && R.preventDefault(), _.pointerType = R.pointerType, R.stopPropagation(), _.isPressed || (_.isPressed = !0, _.isOverTarget = !0, _.activePointerId = R.pointerId, _.target = R.currentTarget, !i && !l && qt(R.currentTarget), d || xp(_.target), v(R, _.pointerType), g(document, "pointermove", D, !1), g(document, "pointerup", j, !1), g(document, "pointercancel", M, !1));
|
|
7097
7097
|
}
|
|
7098
7098
|
}, E.onMouseDown = (R) => {
|
|
7099
7099
|
R.currentTarget.contains(R.target) && R.button === 0 && (yl(R.currentTarget) && R.preventDefault(), R.stopPropagation());
|
|
@@ -7101,55 +7101,55 @@ function cn(e) {
|
|
|
7101
7101
|
!R.currentTarget.contains(R.target) || _.pointerType === "virtual" || R.button === 0 && Pn(R, R.currentTarget) && w(R, _.pointerType || R.pointerType);
|
|
7102
7102
|
};
|
|
7103
7103
|
let D = (R) => {
|
|
7104
|
-
R.pointerId === _.activePointerId && (Pn(R, _.target) ? _.isOverTarget || (_.isOverTarget = !0, v(Wt(_.target, R), _.pointerType)) : _.isOverTarget && (_.isOverTarget = !1, y(Wt(_.target, R), _.pointerType, !1),
|
|
7104
|
+
R.pointerId === _.activePointerId && (Pn(R, _.target) ? _.isOverTarget || (_.isOverTarget = !0, v(Wt(_.target, R), _.pointerType)) : _.isOverTarget && (_.isOverTarget = !1, y(Wt(_.target, R), _.pointerType, !1), O(R)));
|
|
7105
7105
|
}, j = (R) => {
|
|
7106
7106
|
R.pointerId === _.activePointerId && _.isPressed && R.button === 0 && (Pn(R, _.target) ? y(Wt(_.target, R), _.pointerType) : _.isOverTarget && y(Wt(_.target, R), _.pointerType, !1), _.isPressed = !1, _.isOverTarget = !1, _.activePointerId = null, _.pointerType = null, $(), d || Na(_.target));
|
|
7107
|
-
},
|
|
7107
|
+
}, M = (R) => {
|
|
7108
7108
|
P(R);
|
|
7109
7109
|
};
|
|
7110
7110
|
E.onDragStart = (R) => {
|
|
7111
7111
|
R.currentTarget.contains(R.target) && P(R);
|
|
7112
7112
|
};
|
|
7113
7113
|
} else {
|
|
7114
|
-
E.onMouseDown = (
|
|
7115
|
-
|
|
7116
|
-
}, E.onMouseEnter = (
|
|
7117
|
-
|
|
7118
|
-
}, E.onMouseLeave = (
|
|
7119
|
-
|
|
7120
|
-
}, E.onMouseUp = (
|
|
7121
|
-
|
|
7114
|
+
E.onMouseDown = (M) => {
|
|
7115
|
+
M.button !== 0 || !M.currentTarget.contains(M.target) || (yl(M.currentTarget) && M.preventDefault(), M.stopPropagation(), !_.ignoreEmulatedMouseEvents && (_.isPressed = !0, _.isOverTarget = !0, _.target = M.currentTarget, _.pointerType = Cc(M.nativeEvent) ? "virtual" : "mouse", !i && !l && qt(M.currentTarget), v(M, _.pointerType), g(document, "mouseup", D, !1)));
|
|
7116
|
+
}, E.onMouseEnter = (M) => {
|
|
7117
|
+
M.currentTarget.contains(M.target) && (M.stopPropagation(), _.isPressed && !_.ignoreEmulatedMouseEvents && (_.isOverTarget = !0, v(M, _.pointerType)));
|
|
7118
|
+
}, E.onMouseLeave = (M) => {
|
|
7119
|
+
M.currentTarget.contains(M.target) && (M.stopPropagation(), _.isPressed && !_.ignoreEmulatedMouseEvents && (_.isOverTarget = !1, y(M, _.pointerType, !1), O(M)));
|
|
7120
|
+
}, E.onMouseUp = (M) => {
|
|
7121
|
+
M.currentTarget.contains(M.target) && !_.ignoreEmulatedMouseEvents && M.button === 0 && w(M, _.pointerType);
|
|
7122
7122
|
};
|
|
7123
|
-
let D = (
|
|
7124
|
-
if (
|
|
7123
|
+
let D = (M) => {
|
|
7124
|
+
if (M.button === 0) {
|
|
7125
7125
|
if (_.isPressed = !1, $(), _.ignoreEmulatedMouseEvents) {
|
|
7126
7126
|
_.ignoreEmulatedMouseEvents = !1;
|
|
7127
7127
|
return;
|
|
7128
7128
|
}
|
|
7129
|
-
Pn(
|
|
7129
|
+
Pn(M, _.target) ? y(Wt(_.target, M), _.pointerType) : _.isOverTarget && y(Wt(_.target, M), _.pointerType, !1), _.isOverTarget = !1;
|
|
7130
7130
|
}
|
|
7131
7131
|
};
|
|
7132
|
-
E.onTouchStart = (
|
|
7133
|
-
if (!
|
|
7132
|
+
E.onTouchStart = (M) => {
|
|
7133
|
+
if (!M.currentTarget.contains(M.target))
|
|
7134
7134
|
return;
|
|
7135
|
-
|
|
7136
|
-
let R = mE(
|
|
7137
|
-
R && (_.activePointerId = R.identifier, _.ignoreEmulatedMouseEvents = !0, _.isOverTarget = !0, _.isPressed = !0, _.target =
|
|
7138
|
-
}, E.onTouchMove = (
|
|
7139
|
-
if (!
|
|
7135
|
+
M.stopPropagation();
|
|
7136
|
+
let R = mE(M.nativeEvent);
|
|
7137
|
+
R && (_.activePointerId = R.identifier, _.ignoreEmulatedMouseEvents = !0, _.isOverTarget = !0, _.isPressed = !0, _.target = M.currentTarget, _.pointerType = "touch", !i && !l && qt(M.currentTarget), d || xp(_.target), v(M, _.pointerType), g(window, "scroll", j, !0));
|
|
7138
|
+
}, E.onTouchMove = (M) => {
|
|
7139
|
+
if (!M.currentTarget.contains(M.target) || (M.stopPropagation(), !_.isPressed))
|
|
7140
7140
|
return;
|
|
7141
|
-
let R = wp(
|
|
7142
|
-
R && Pn(R,
|
|
7143
|
-
}, E.onTouchEnd = (
|
|
7144
|
-
if (!
|
|
7141
|
+
let R = wp(M.nativeEvent, _.activePointerId);
|
|
7142
|
+
R && Pn(R, M.currentTarget) ? _.isOverTarget || (_.isOverTarget = !0, v(M, _.pointerType)) : _.isOverTarget && (_.isOverTarget = !1, y(M, _.pointerType, !1), O(M));
|
|
7143
|
+
}, E.onTouchEnd = (M) => {
|
|
7144
|
+
if (!M.currentTarget.contains(M.target) || (M.stopPropagation(), !_.isPressed))
|
|
7145
7145
|
return;
|
|
7146
|
-
let R = wp(
|
|
7147
|
-
R && Pn(R,
|
|
7148
|
-
}, E.onTouchCancel = (
|
|
7149
|
-
|
|
7146
|
+
let R = wp(M.nativeEvent, _.activePointerId);
|
|
7147
|
+
R && Pn(R, M.currentTarget) ? (w(M, _.pointerType), y(M, _.pointerType)) : _.isOverTarget && y(M, _.pointerType, !1), _.isPressed = !1, _.activePointerId = null, _.isOverTarget = !1, _.ignoreEmulatedMouseEvents = !0, d || Na(_.target), $();
|
|
7148
|
+
}, E.onTouchCancel = (M) => {
|
|
7149
|
+
M.currentTarget.contains(M.target) && (M.stopPropagation(), _.isPressed && P(M));
|
|
7150
7150
|
};
|
|
7151
|
-
let j = (
|
|
7152
|
-
_.isPressed &&
|
|
7151
|
+
let j = (M) => {
|
|
7152
|
+
_.isPressed && M.target.contains(_.target) && P({
|
|
7153
7153
|
currentTarget: _.target,
|
|
7154
7154
|
shiftKey: !1,
|
|
7155
7155
|
ctrlKey: !1,
|
|
@@ -7157,8 +7157,8 @@ function cn(e) {
|
|
|
7157
7157
|
altKey: !1
|
|
7158
7158
|
});
|
|
7159
7159
|
};
|
|
7160
|
-
E.onDragStart = (
|
|
7161
|
-
|
|
7160
|
+
E.onDragStart = (M) => {
|
|
7161
|
+
M.currentTarget.contains(M.target) && P(M);
|
|
7162
7162
|
};
|
|
7163
7163
|
}
|
|
7164
7164
|
return E;
|
|
@@ -7169,7 +7169,7 @@ function cn(e) {
|
|
|
7169
7169
|
$,
|
|
7170
7170
|
d,
|
|
7171
7171
|
P,
|
|
7172
|
-
|
|
7172
|
+
O,
|
|
7173
7173
|
y,
|
|
7174
7174
|
v,
|
|
7175
7175
|
w
|
|
@@ -8074,7 +8074,7 @@ function qE(e, t) {
|
|
|
8074
8074
|
}
|
|
8075
8075
|
) : /* @__PURE__ */ x(Cp, { as: $, ...w, "data-id": g["data-id"], children: P });
|
|
8076
8076
|
}
|
|
8077
|
-
const vs =
|
|
8077
|
+
const vs = B(
|
|
8078
8078
|
qE
|
|
8079
8079
|
);
|
|
8080
8080
|
vs.displayName = "ButtonV2";
|
|
@@ -8140,7 +8140,7 @@ const QE = "default", Rp = "info", e6 = "success", t6 = "warning", r6 = "danger"
|
|
|
8140
8140
|
top: 0.8rem; // really close to size 300 and 350 but not quite
|
|
8141
8141
|
right: ${f.spacing_350};
|
|
8142
8142
|
height: 24px;
|
|
8143
|
-
`, qg =
|
|
8143
|
+
`, qg = B(function(t, r) {
|
|
8144
8144
|
const {
|
|
8145
8145
|
children: n,
|
|
8146
8146
|
onDismiss: o,
|
|
@@ -8258,10 +8258,10 @@ const Ip = (e) => ({ name: "arrow", options: e, async fn(t) {
|
|
|
8258
8258
|
if (l == null)
|
|
8259
8259
|
return {};
|
|
8260
8260
|
const d = Zg(c), u = { x: r, y: n }, p = dn(o), m = gu(p), h = await i.getDimensions(l), b = p === "y", g = b ? "top" : "left", $ = b ? "bottom" : "right", v = b ? "clientHeight" : "clientWidth", y = a.reference[m] + a.reference[p] - u[p] - a.floating[m], w = u[p] - a.reference[p], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
|
|
8261
|
-
let
|
|
8262
|
-
|
|
8263
|
-
const k = y / 2 - w / 2, _ =
|
|
8264
|
-
return { [p]: u[p] - q, data: { [p]: R, centerOffset:
|
|
8261
|
+
let O = P ? P[v] : 0;
|
|
8262
|
+
O && await (i.isElement == null ? void 0 : i.isElement(P)) || (O = s.floating[v] || a.floating[m]);
|
|
8263
|
+
const k = y / 2 - w / 2, _ = O / 2 - h[m] / 2 - 1, E = Ho(d[g], _), F = Ho(d[$], _), D = E, j = O - h[m] - F, M = O / 2 - h[m] / 2 + k, R = Mc(D, M, j), q = co(o) != null && M != R && a.reference[m] / 2 - (M < D ? E : F) - h[m] / 2 < 0 ? M < D ? D - M : j - M : 0;
|
|
8264
|
+
return { [p]: u[p] - q, data: { [p]: R, centerOffset: M - R + q } };
|
|
8265
8265
|
} }), Xg = ["top", "right", "bottom", "left"];
|
|
8266
8266
|
Xg.reduce((e, t) => e.concat(t, t + "-start", t + "-end"), []);
|
|
8267
8267
|
const i6 = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
@@ -8285,48 +8285,48 @@ const c6 = function(e) {
|
|
|
8285
8285
|
const j = wi(D);
|
|
8286
8286
|
return [xl(D), j, xl(j)];
|
|
8287
8287
|
}(i));
|
|
8288
|
-
u || m === "none" || y.push(...function(D, j,
|
|
8288
|
+
u || m === "none" || y.push(...function(D, j, M, R) {
|
|
8289
8289
|
const q = co(D);
|
|
8290
|
-
let N = function(
|
|
8291
|
-
const L = ["left", "right"], A = ["right", "left"], ee = ["top", "bottom"],
|
|
8292
|
-
switch (
|
|
8290
|
+
let N = function(V, U, H) {
|
|
8291
|
+
const L = ["left", "right"], A = ["right", "left"], ee = ["top", "bottom"], G = ["bottom", "top"];
|
|
8292
|
+
switch (V) {
|
|
8293
8293
|
case "top":
|
|
8294
8294
|
case "bottom":
|
|
8295
|
-
return
|
|
8295
|
+
return H ? U ? A : L : U ? L : A;
|
|
8296
8296
|
case "left":
|
|
8297
8297
|
case "right":
|
|
8298
|
-
return U ? ee :
|
|
8298
|
+
return U ? ee : G;
|
|
8299
8299
|
default:
|
|
8300
8300
|
return [];
|
|
8301
8301
|
}
|
|
8302
|
-
}(er(D),
|
|
8303
|
-
return q && (N = N.map((
|
|
8302
|
+
}(er(D), M === "start", R);
|
|
8303
|
+
return q && (N = N.map((V) => V + "-" + q), j && (N = N.concat(N.map(xl)))), N;
|
|
8304
8304
|
}(i, h, m, v));
|
|
8305
|
-
const w = [i, ...y], P = await Wo(t, b),
|
|
8305
|
+
const w = [i, ...y], P = await Wo(t, b), O = [];
|
|
8306
8306
|
let k = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
8307
|
-
if (c &&
|
|
8307
|
+
if (c && O.push(P[g]), d) {
|
|
8308
8308
|
const { main: D, cross: j } = s6(n, a, v);
|
|
8309
|
-
|
|
8309
|
+
O.push(P[D], P[j]);
|
|
8310
8310
|
}
|
|
8311
|
-
if (k = [...k, { placement: n, overflows:
|
|
8311
|
+
if (k = [...k, { placement: n, overflows: O }], !O.every((D) => D <= 0)) {
|
|
8312
8312
|
var _, E;
|
|
8313
8313
|
const D = (((_ = o.flip) == null ? void 0 : _.index) || 0) + 1, j = w[D];
|
|
8314
8314
|
if (j)
|
|
8315
8315
|
return { data: { index: D, overflows: k }, reset: { placement: j } };
|
|
8316
|
-
let
|
|
8317
|
-
if (!
|
|
8316
|
+
let M = (E = k.filter((R) => R.overflows[0] <= 0).sort((R, q) => R.overflows[1] - q.overflows[1])[0]) == null ? void 0 : E.placement;
|
|
8317
|
+
if (!M)
|
|
8318
8318
|
switch (p) {
|
|
8319
8319
|
case "bestFit": {
|
|
8320
8320
|
var F;
|
|
8321
|
-
const R = (F = k.map((q) => [q.placement, q.overflows.filter((N) => N > 0).reduce((N,
|
|
8322
|
-
R && (
|
|
8321
|
+
const R = (F = k.map((q) => [q.placement, q.overflows.filter((N) => N > 0).reduce((N, V) => N + V, 0)]).sort((q, N) => q[1] - N[1])[0]) == null ? void 0 : F[0];
|
|
8322
|
+
R && (M = R);
|
|
8323
8323
|
break;
|
|
8324
8324
|
}
|
|
8325
8325
|
case "initialPlacement":
|
|
8326
|
-
|
|
8326
|
+
M = i;
|
|
8327
8327
|
}
|
|
8328
|
-
if (n !==
|
|
8329
|
-
return { reset: { placement:
|
|
8328
|
+
if (n !== M)
|
|
8329
|
+
return { reset: { placement: M } };
|
|
8330
8330
|
}
|
|
8331
8331
|
return {};
|
|
8332
8332
|
} };
|
|
@@ -8395,8 +8395,8 @@ const f6 = function(e) {
|
|
|
8395
8395
|
}
|
|
8396
8396
|
if (c) {
|
|
8397
8397
|
var $, v;
|
|
8398
|
-
const y = u === "y" ? "width" : "height", w = ["top", "left"].includes(er(o)), P = a.reference[p] - a.floating[y] + (w && (($ = i.offset) == null ? void 0 : $[p]) || 0) + (w ? 0 : g.crossAxis),
|
|
8399
|
-
h < P ? h = P : h >
|
|
8398
|
+
const y = u === "y" ? "width" : "height", w = ["top", "left"].includes(er(o)), P = a.reference[p] - a.floating[y] + (w && (($ = i.offset) == null ? void 0 : $[p]) || 0) + (w ? 0 : g.crossAxis), O = a.reference[p] + a.reference[y] + (w ? 0 : ((v = i.offset) == null ? void 0 : v[p]) || 0) - (w ? g.crossAxis : 0);
|
|
8399
|
+
h < P ? h = P : h > O && (h = O);
|
|
8400
8400
|
}
|
|
8401
8401
|
return { [u]: m, [p]: h };
|
|
8402
8402
|
} };
|
|
@@ -8409,15 +8409,15 @@ const f6 = function(e) {
|
|
|
8409
8409
|
const g = m - l[h], $ = p - l[b], v = !t.middlewareData.shift;
|
|
8410
8410
|
let y = g, w = $;
|
|
8411
8411
|
if (u) {
|
|
8412
|
-
const
|
|
8413
|
-
w = d || v ? Ho($,
|
|
8412
|
+
const O = p - l.left - l.right;
|
|
8413
|
+
w = d || v ? Ho($, O) : O;
|
|
8414
8414
|
} else {
|
|
8415
|
-
const
|
|
8416
|
-
y = d || v ? Ho(g,
|
|
8415
|
+
const O = m - l.top - l.bottom;
|
|
8416
|
+
y = d || v ? Ho(g, O) : O;
|
|
8417
8417
|
}
|
|
8418
8418
|
if (v && !d) {
|
|
8419
|
-
const
|
|
8420
|
-
u ? w = p - 2 * (
|
|
8419
|
+
const O = zr(l.left, 0), k = zr(l.right, 0), _ = zr(l.top, 0), E = zr(l.bottom, 0);
|
|
8420
|
+
u ? w = p - 2 * (O !== 0 || k !== 0 ? O + k : zr(l.left, l.right)) : y = m - 2 * (_ !== 0 || E !== 0 ? _ + E : zr(l.top, l.bottom));
|
|
8421
8421
|
}
|
|
8422
8422
|
await i({ ...t, availableWidth: w, availableHeight: y });
|
|
8423
8423
|
const P = await o.getDimensions(a.floating);
|
|
@@ -8652,28 +8652,28 @@ function $6(e, t, r, n) {
|
|
|
8652
8652
|
function P() {
|
|
8653
8653
|
clearTimeout(v), y && y.disconnect(), y = null;
|
|
8654
8654
|
}
|
|
8655
|
-
return function
|
|
8655
|
+
return function O(k, _) {
|
|
8656
8656
|
k === void 0 && (k = !1), _ === void 0 && (_ = 1), P();
|
|
8657
8657
|
const { left: E, top: F, width: D, height: j } = g.getBoundingClientRect();
|
|
8658
8658
|
if (k || $(), !D || !j)
|
|
8659
8659
|
return;
|
|
8660
|
-
const
|
|
8660
|
+
const M = { rootMargin: -La(F) + "px " + -La(w.clientWidth - (E + D)) + "px " + -La(w.clientHeight - (F + j)) + "px " + -La(E) + "px", threshold: Bn(0, Fc(1, _)) || 1 };
|
|
8661
8661
|
let R = !0;
|
|
8662
8662
|
function q(N) {
|
|
8663
|
-
const
|
|
8664
|
-
if (
|
|
8663
|
+
const V = N[0].intersectionRatio;
|
|
8664
|
+
if (V !== _) {
|
|
8665
8665
|
if (!R)
|
|
8666
|
-
return
|
|
8667
|
-
|
|
8668
|
-
|
|
8666
|
+
return O();
|
|
8667
|
+
V ? O(!1, V) : v = setTimeout(() => {
|
|
8668
|
+
O(!1, 1e-7);
|
|
8669
8669
|
}, 100);
|
|
8670
8670
|
}
|
|
8671
8671
|
R = !1;
|
|
8672
8672
|
}
|
|
8673
8673
|
try {
|
|
8674
|
-
y = new IntersectionObserver(q, { ...
|
|
8674
|
+
y = new IntersectionObserver(q, { ...M, root: w.ownerDocument });
|
|
8675
8675
|
} catch {
|
|
8676
|
-
y = new IntersectionObserver(q,
|
|
8676
|
+
y = new IntersectionObserver(q, M);
|
|
8677
8677
|
}
|
|
8678
8678
|
y.observe(g);
|
|
8679
8679
|
}(!0), P;
|
|
@@ -8789,20 +8789,20 @@ function x6(e) {
|
|
|
8789
8789
|
}), [p, m] = Z.useState(n);
|
|
8790
8790
|
Pi(p, n) || m(n);
|
|
8791
8791
|
const [h, b] = Z.useState(null), [g, $] = Z.useState(null), v = Z.useCallback((N) => {
|
|
8792
|
-
N !=
|
|
8792
|
+
N != O.current && (O.current = N, b(N));
|
|
8793
8793
|
}, [b]), y = Z.useCallback((N) => {
|
|
8794
8794
|
N !== k.current && (k.current = N, $(N));
|
|
8795
|
-
}, [$]), w = a || h, P = i || g,
|
|
8796
|
-
if (!
|
|
8795
|
+
}, [$]), w = a || h, P = i || g, O = Z.useRef(null), k = Z.useRef(null), _ = Z.useRef(d), E = Vp(l), F = Vp(o), D = Z.useCallback(() => {
|
|
8796
|
+
if (!O.current || !k.current)
|
|
8797
8797
|
return;
|
|
8798
8798
|
const N = {
|
|
8799
8799
|
placement: t,
|
|
8800
8800
|
strategy: r,
|
|
8801
8801
|
middleware: p
|
|
8802
8802
|
};
|
|
8803
|
-
F.current && (N.platform = F.current), y6(
|
|
8803
|
+
F.current && (N.platform = F.current), y6(O.current, k.current, N).then((V) => {
|
|
8804
8804
|
const U = {
|
|
8805
|
-
...
|
|
8805
|
+
...V,
|
|
8806
8806
|
isPositioned: !0
|
|
8807
8807
|
};
|
|
8808
8808
|
j.current && !Pi(_.current, U) && (_.current = U, Nh.flushSync(() => {
|
|
@@ -8820,14 +8820,14 @@ function x6(e) {
|
|
|
8820
8820
|
ai(() => (j.current = !0, () => {
|
|
8821
8821
|
j.current = !1;
|
|
8822
8822
|
}), []), ai(() => {
|
|
8823
|
-
if (w && (
|
|
8823
|
+
if (w && (O.current = w), P && (k.current = P), w && P) {
|
|
8824
8824
|
if (E.current)
|
|
8825
8825
|
return E.current(w, P, D);
|
|
8826
8826
|
D();
|
|
8827
8827
|
}
|
|
8828
8828
|
}, [w, P, D, E]);
|
|
8829
|
-
const
|
|
8830
|
-
reference:
|
|
8829
|
+
const M = Z.useMemo(() => ({
|
|
8830
|
+
reference: O,
|
|
8831
8831
|
floating: k,
|
|
8832
8832
|
setReference: v,
|
|
8833
8833
|
setFloating: y
|
|
@@ -8842,28 +8842,28 @@ function x6(e) {
|
|
|
8842
8842
|
};
|
|
8843
8843
|
if (!R.floating)
|
|
8844
8844
|
return N;
|
|
8845
|
-
const
|
|
8845
|
+
const V = Kp(R.floating, d.x), U = Kp(R.floating, d.y);
|
|
8846
8846
|
return s ? {
|
|
8847
8847
|
...N,
|
|
8848
|
-
transform: "translate(" +
|
|
8848
|
+
transform: "translate(" + V + "px, " + U + "px)",
|
|
8849
8849
|
...a0(R.floating) >= 1.5 && {
|
|
8850
8850
|
willChange: "transform"
|
|
8851
8851
|
}
|
|
8852
8852
|
} : {
|
|
8853
8853
|
position: r,
|
|
8854
|
-
left:
|
|
8854
|
+
left: V,
|
|
8855
8855
|
top: U
|
|
8856
8856
|
};
|
|
8857
8857
|
}, [r, s, R.floating, d.x, d.y]);
|
|
8858
8858
|
return Z.useMemo(() => ({
|
|
8859
8859
|
...d,
|
|
8860
8860
|
update: D,
|
|
8861
|
-
refs:
|
|
8861
|
+
refs: M,
|
|
8862
8862
|
elements: R,
|
|
8863
8863
|
floatingStyles: q
|
|
8864
|
-
}), [d, D,
|
|
8864
|
+
}), [d, D, M, R, q]);
|
|
8865
8865
|
}
|
|
8866
|
-
const w6 = /* @__PURE__ */
|
|
8866
|
+
const w6 = /* @__PURE__ */ B((e, t) => {
|
|
8867
8867
|
const { children: r, width: n = 10, height: o = 5, ...a } = e;
|
|
8868
8868
|
return /* @__PURE__ */ S(he.svg, I({}, a, {
|
|
8869
8869
|
ref: t,
|
|
@@ -8914,19 +8914,19 @@ const i0 = "Popper", [s0, Ir] = je(i0), [S6, l0] = s0(i0), P6 = (e) => {
|
|
|
8914
8914
|
anchor: n,
|
|
8915
8915
|
onAnchorChange: o
|
|
8916
8916
|
}, r);
|
|
8917
|
-
}, T6 = "PopperAnchor", k6 = /* @__PURE__ */
|
|
8917
|
+
}, T6 = "PopperAnchor", k6 = /* @__PURE__ */ B((e, t) => {
|
|
8918
8918
|
const { __scopePopper: r, virtualRef: n, ...o } = e, a = l0(T6, r), i = z(null), s = _e(t, i);
|
|
8919
8919
|
return X(() => {
|
|
8920
8920
|
a.onAnchorChange((n == null ? void 0 : n.current) || i.current);
|
|
8921
8921
|
}), n ? null : /* @__PURE__ */ S(he.div, I({}, o, {
|
|
8922
8922
|
ref: s
|
|
8923
8923
|
}));
|
|
8924
|
-
}), c0 = "PopperContent", [E6, C6] = s0(c0), R6 = /* @__PURE__ */
|
|
8924
|
+
}), c0 = "PopperContent", [E6, C6] = s0(c0), R6 = /* @__PURE__ */ B((e, t) => {
|
|
8925
8925
|
var r, n, o, a, i, s, l, c;
|
|
8926
|
-
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: m = "center", alignOffset: h = 0, arrowPadding: b = 0, collisionBoundary: g = [], collisionPadding: $ = 0, sticky: v = "partial", hideWhenDetached: y = !1, avoidCollisions: w = !0, onPlaced: P, ...
|
|
8926
|
+
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: m = "center", alignOffset: h = 0, arrowPadding: b = 0, collisionBoundary: g = [], collisionPadding: $ = 0, sticky: v = "partial", hideWhenDetached: y = !1, avoidCollisions: w = !0, onPlaced: P, ...O } = e, k = l0(c0, d), [_, E] = J(null), F = _e(
|
|
8927
8927
|
t,
|
|
8928
8928
|
(ye) => E(ye)
|
|
8929
|
-
), [D, j] = J(null),
|
|
8929
|
+
), [D, j] = J(null), M = _s(D), R = (r = M == null ? void 0 : M.width) !== null && r !== void 0 ? r : 0, q = (n = M == null ? void 0 : M.height) !== null && n !== void 0 ? n : 0, N = u + (m !== "center" ? "-" + m : ""), V = typeof $ == "number" ? $ : {
|
|
8930
8930
|
top: 0,
|
|
8931
8931
|
right: 0,
|
|
8932
8932
|
bottom: 0,
|
|
@@ -8934,12 +8934,12 @@ const i0 = "Popper", [s0, Ir] = je(i0), [S6, l0] = s0(i0), P6 = (e) => {
|
|
|
8934
8934
|
...$
|
|
8935
8935
|
}, U = Array.isArray(g) ? g : [
|
|
8936
8936
|
g
|
|
8937
|
-
],
|
|
8938
|
-
padding:
|
|
8937
|
+
], H = U.length > 0, L = {
|
|
8938
|
+
padding: V,
|
|
8939
8939
|
boundary: U.filter(M6),
|
|
8940
8940
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
8941
|
-
altBoundary:
|
|
8942
|
-
}, { refs: A, floatingStyles: ee, placement:
|
|
8941
|
+
altBoundary: H
|
|
8942
|
+
}, { refs: A, floatingStyles: ee, placement: G, isPositioned: Y, middlewareData: de } = x6({
|
|
8943
8943
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
8944
8944
|
strategy: "fixed",
|
|
8945
8945
|
placement: N,
|
|
@@ -8980,14 +8980,14 @@ const i0 = "Popper", [s0, Ir] = je(i0), [S6, l0] = s0(i0), P6 = (e) => {
|
|
|
8980
8980
|
strategy: "referenceHidden"
|
|
8981
8981
|
})
|
|
8982
8982
|
]
|
|
8983
|
-
}), [
|
|
8983
|
+
}), [fe, Q] = d0(G), se = We(P);
|
|
8984
8984
|
_t(() => {
|
|
8985
8985
|
Y && (se == null || se());
|
|
8986
8986
|
}, [
|
|
8987
8987
|
Y,
|
|
8988
8988
|
se
|
|
8989
8989
|
]);
|
|
8990
|
-
const
|
|
8990
|
+
const ue = (o = de.arrow) === null || o === void 0 ? void 0 : o.x, le = (a = de.arrow) === null || a === void 0 ? void 0 : a.y, me = ((i = de.arrow) === null || i === void 0 ? void 0 : i.centerOffset) !== 0, [ae, be] = J();
|
|
8991
8991
|
return _t(() => {
|
|
8992
8992
|
_ && be(window.getComputedStyle(_).zIndex);
|
|
8993
8993
|
}, [
|
|
@@ -9002,30 +9002,30 @@ const i0 = "Popper", [s0, Ir] = je(i0), [S6, l0] = s0(i0), P6 = (e) => {
|
|
|
9002
9002
|
minWidth: "max-content",
|
|
9003
9003
|
zIndex: ae,
|
|
9004
9004
|
"--radix-popper-transform-origin": [
|
|
9005
|
-
(s =
|
|
9006
|
-
(l =
|
|
9005
|
+
(s = de.transformOrigin) === null || s === void 0 ? void 0 : s.x,
|
|
9006
|
+
(l = de.transformOrigin) === null || l === void 0 ? void 0 : l.y
|
|
9007
9007
|
].join(" ")
|
|
9008
9008
|
},
|
|
9009
9009
|
dir: e.dir
|
|
9010
9010
|
}, /* @__PURE__ */ S(E6, {
|
|
9011
9011
|
scope: d,
|
|
9012
|
-
placedSide:
|
|
9012
|
+
placedSide: fe,
|
|
9013
9013
|
onArrowChange: j,
|
|
9014
|
-
arrowX:
|
|
9014
|
+
arrowX: ue,
|
|
9015
9015
|
arrowY: le,
|
|
9016
9016
|
shouldHideArrow: me
|
|
9017
9017
|
}, /* @__PURE__ */ S(he.div, I({
|
|
9018
|
-
"data-side":
|
|
9018
|
+
"data-side": fe,
|
|
9019
9019
|
"data-align": Q
|
|
9020
|
-
},
|
|
9020
|
+
}, O, {
|
|
9021
9021
|
ref: F,
|
|
9022
9022
|
style: {
|
|
9023
|
-
...
|
|
9023
|
+
...O.style,
|
|
9024
9024
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
9025
9025
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
9026
9026
|
animation: Y ? void 0 : "none",
|
|
9027
9027
|
// hide the content if using the hide middleware and should be hidden
|
|
9028
|
-
opacity: (c =
|
|
9028
|
+
opacity: (c = de.hide) !== null && c !== void 0 && c.referenceHidden ? 0 : void 0
|
|
9029
9029
|
}
|
|
9030
9030
|
}))));
|
|
9031
9031
|
}), A6 = "PopperArrow", I6 = {
|
|
@@ -9033,7 +9033,7 @@ const i0 = "Popper", [s0, Ir] = je(i0), [S6, l0] = s0(i0), P6 = (e) => {
|
|
|
9033
9033
|
right: "left",
|
|
9034
9034
|
bottom: "top",
|
|
9035
9035
|
left: "right"
|
|
9036
|
-
}, O6 = /* @__PURE__ */
|
|
9036
|
+
}, O6 = /* @__PURE__ */ B(function(t, r) {
|
|
9037
9037
|
const { __scopePopper: n, ...o } = t, a = C6(A6, n), i = I6[a.placedSide];
|
|
9038
9038
|
return (
|
|
9039
9039
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
@@ -9132,7 +9132,7 @@ const da = P6, xs = k6, ws = R6, yu = O6, u0 = "Popover", [f0, PB] = je(u0, [
|
|
|
9132
9132
|
),
|
|
9133
9133
|
modal: i
|
|
9134
9134
|
}, r));
|
|
9135
|
-
}, L6 = "PopoverTrigger", m0 = /* @__PURE__ */
|
|
9135
|
+
}, L6 = "PopoverTrigger", m0 = /* @__PURE__ */ B((e, t) => {
|
|
9136
9136
|
const { __scopePopover: r, ...n } = e, o = un(L6, r), a = Ds(r), i = _e(t, o.triggerRef), s = /* @__PURE__ */ S(he.button, I({
|
|
9137
9137
|
type: "button",
|
|
9138
9138
|
"aria-haspopup": "dialog",
|
|
@@ -9159,7 +9159,7 @@ const da = P6, xs = k6, ws = R6, yu = O6, u0 = "Popover", [f0, PB] = je(u0, [
|
|
|
9159
9159
|
asChild: !0,
|
|
9160
9160
|
container: o
|
|
9161
9161
|
}, n)));
|
|
9162
|
-
}, Yo = "PopoverContent", b0 = /* @__PURE__ */
|
|
9162
|
+
}, Yo = "PopoverContent", b0 = /* @__PURE__ */ B((e, t) => {
|
|
9163
9163
|
const r = K6(Yo, e.__scopePopover), { forceMount: n = r.forceMount, ...o } = e, a = un(Yo, e.__scopePopover);
|
|
9164
9164
|
return /* @__PURE__ */ S(He, {
|
|
9165
9165
|
present: n || a.open
|
|
@@ -9168,7 +9168,7 @@ const da = P6, xs = k6, ws = R6, yu = O6, u0 = "Popover", [f0, PB] = je(u0, [
|
|
|
9168
9168
|
})) : /* @__PURE__ */ S(j6, I({}, o, {
|
|
9169
9169
|
ref: t
|
|
9170
9170
|
})));
|
|
9171
|
-
}), B6 = /* @__PURE__ */
|
|
9171
|
+
}), B6 = /* @__PURE__ */ B((e, t) => {
|
|
9172
9172
|
const r = un(Yo, e.__scopePopover), n = z(null), o = _e(t, n), a = z(!1);
|
|
9173
9173
|
return X(() => {
|
|
9174
9174
|
const i = n.current;
|
|
@@ -9199,7 +9199,7 @@ const da = P6, xs = k6, ws = R6, yu = O6, u0 = "Popover", [f0, PB] = je(u0, [
|
|
|
9199
9199
|
}
|
|
9200
9200
|
)
|
|
9201
9201
|
})));
|
|
9202
|
-
}), j6 = /* @__PURE__ */
|
|
9202
|
+
}), j6 = /* @__PURE__ */ B((e, t) => {
|
|
9203
9203
|
const r = un(Yo, e.__scopePopover), n = z(!1), o = z(!1);
|
|
9204
9204
|
return /* @__PURE__ */ S(g0, I({}, e, {
|
|
9205
9205
|
ref: t,
|
|
@@ -9220,7 +9220,7 @@ const da = P6, xs = k6, ws = R6, yu = O6, u0 = "Popover", [f0, PB] = je(u0, [
|
|
|
9220
9220
|
((s = r.triggerRef.current) === null || s === void 0 ? void 0 : s.contains(l)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
|
|
9221
9221
|
}
|
|
9222
9222
|
}));
|
|
9223
|
-
}), g0 = /* @__PURE__ */
|
|
9223
|
+
}), g0 = /* @__PURE__ */ B((e, t) => {
|
|
9224
9224
|
const { __scopePopover: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: a, disableOutsidePointerEvents: i, onEscapeKeyDown: s, onPointerDownOutside: l, onFocusOutside: c, onInteractOutside: d, ...u } = e, p = un(Yo, r), m = Ds(r);
|
|
9225
9225
|
return ns(), /* @__PURE__ */ S(rs, {
|
|
9226
9226
|
asChild: !0,
|
|
@@ -9251,7 +9251,7 @@ const da = P6, xs = k6, ws = R6, yu = O6, u0 = "Popover", [f0, PB] = je(u0, [
|
|
|
9251
9251
|
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
9252
9252
|
}
|
|
9253
9253
|
}))));
|
|
9254
|
-
}), U6 = "PopoverClose", W6 = /* @__PURE__ */
|
|
9254
|
+
}), U6 = "PopoverClose", W6 = /* @__PURE__ */ B((e, t) => {
|
|
9255
9255
|
const { __scopePopover: r, ...n } = e, o = un(U6, r);
|
|
9256
9256
|
return /* @__PURE__ */ S(he.button, I({
|
|
9257
9257
|
type: "button"
|
|
@@ -9262,7 +9262,7 @@ const da = P6, xs = k6, ws = R6, yu = O6, u0 = "Popover", [f0, PB] = je(u0, [
|
|
|
9262
9262
|
() => o.onOpenChange(!1)
|
|
9263
9263
|
)
|
|
9264
9264
|
}));
|
|
9265
|
-
}), H6 = /* @__PURE__ */
|
|
9265
|
+
}), H6 = /* @__PURE__ */ B((e, t) => {
|
|
9266
9266
|
const { __scopePopover: r, ...n } = e, o = Ds(r);
|
|
9267
9267
|
return /* @__PURE__ */ S(yu, I({}, o, n, {
|
|
9268
9268
|
ref: t
|
|
@@ -12214,7 +12214,7 @@ function jC({
|
|
|
12214
12214
|
/* @__PURE__ */ x(KC, { children: /* @__PURE__ */ x(Mv, { truncatedItems: e }) })
|
|
12215
12215
|
] }) });
|
|
12216
12216
|
}
|
|
12217
|
-
const UC =
|
|
12217
|
+
const UC = B(({ children: e, ...t }, r) => {
|
|
12218
12218
|
const { navProps: n } = AC(t);
|
|
12219
12219
|
FD(e) && console.warn(
|
|
12220
12220
|
"Passing a React fragment to Breadcrumbs will make it not work correctly!"
|
|
@@ -12231,7 +12231,7 @@ const UC = V(({ children: e, ...t }, r) => {
|
|
|
12231
12231
|
return /* @__PURE__ */ x("nav", { ...n, children: /* @__PURE__ */ x(qc, { ref: r, children: o }) });
|
|
12232
12232
|
});
|
|
12233
12233
|
UC.displayName = "Breadcrumbs";
|
|
12234
|
-
const WC =
|
|
12234
|
+
const WC = B((e, t) => {
|
|
12235
12235
|
const { LinkComponent: r = "a", disabled: n, ...o } = e, a = Ct(t), i = typeof r == "string", { children: s, href: l, isCurrent: c } = e, { itemProps: d } = RC(
|
|
12236
12236
|
{
|
|
12237
12237
|
isDisabled: n,
|
|
@@ -12596,7 +12596,7 @@ const Fv = {
|
|
|
12596
12596
|
low: t8,
|
|
12597
12597
|
medium: Fu,
|
|
12598
12598
|
high: XC
|
|
12599
|
-
}, eo =
|
|
12599
|
+
}, eo = B(
|
|
12600
12600
|
(e, t) => {
|
|
12601
12601
|
const {
|
|
12602
12602
|
size: r = "small",
|
|
@@ -13502,7 +13502,7 @@ function f8(e, t, r) {
|
|
|
13502
13502
|
i
|
|
13503
13503
|
]), $ = "";
|
|
13504
13504
|
"anchorDate" in t && d && !t.isReadOnly && p && (t.anchorDate ? $ = s.format("finishRangeSelectionPrompt") : $ = s.format("startRangeSelectionPrompt"));
|
|
13505
|
-
let v = hs($), y = z(!1), w = z(!1), P = z(null), { pressProps:
|
|
13505
|
+
let v = hs($), y = z(!1), w = z(!1), P = z(null), { pressProps: O, isPressed: k } = cn({
|
|
13506
13506
|
// When dragging to select a range, we don't want dragging over the original anchor
|
|
13507
13507
|
// again to trigger onPressStart. Cancel presses immediately when the pointer exits.
|
|
13508
13508
|
shouldCancelOnPointerExit: "anchorDate" in t && !!t.anchorDate,
|
|
@@ -13576,7 +13576,7 @@ function f8(e, t, r) {
|
|
|
13576
13576
|
"aria-selected": c || null,
|
|
13577
13577
|
"aria-invalid": m || null
|
|
13578
13578
|
},
|
|
13579
|
-
buttonProps: $e(
|
|
13579
|
+
buttonProps: $e(O, {
|
|
13580
13580
|
onFocus() {
|
|
13581
13581
|
o || t.setFocusedDate(n);
|
|
13582
13582
|
},
|
|
@@ -13735,13 +13735,13 @@ function g8({
|
|
|
13735
13735
|
currentMonth: o,
|
|
13736
13736
|
single: a
|
|
13737
13737
|
}) {
|
|
13738
|
-
const i = z(null), { cellProps: s, buttonProps: l, isSelected: c, isDisabled: d, formattedDate: u } = f8({ date: t, isDisabled: n }, e, i), p = !y4(o, t), m = e.highlightedRange ? Le(t, e.highlightedRange.start) : c, h = e.highlightedRange ? Le(t, e.highlightedRange.end) : c, { locale: b } = Ze(), g = Ts(t, b), $ = c && (m || g === 0 || t.day === 1), v = c && (h || g === 6 || t.day === t.calendar.getDaysInMonth(t)), y = [$ && "left", v && "right"].filter(Boolean).join(" "), { focusProps: w, isFocusVisible: P } = fn(),
|
|
13738
|
+
const i = z(null), { cellProps: s, buttonProps: l, isSelected: c, isDisabled: d, formattedDate: u } = f8({ date: t, isDisabled: n }, e, i), p = !y4(o, t), m = e.highlightedRange ? Le(t, e.highlightedRange.start) : c, h = e.highlightedRange ? Le(t, e.highlightedRange.end) : c, { locale: b } = Ze(), g = Ts(t, b), $ = c && (m || g === 0 || t.day === 1), v = c && (h || g === 6 || t.day === t.calendar.getDaysInMonth(t)), y = [$ && "left", v && "right"].filter(Boolean).join(" "), { focusProps: w, isFocusVisible: P } = fn(), O = Le(t, r), k = b8({
|
|
13739
13739
|
isDisabled: d,
|
|
13740
13740
|
isSelected: c,
|
|
13741
13741
|
isSelectionStart: m,
|
|
13742
13742
|
isSelectionEnd: h,
|
|
13743
13743
|
isFocusVisible: P,
|
|
13744
|
-
isToday:
|
|
13744
|
+
isToday: O
|
|
13745
13745
|
});
|
|
13746
13746
|
return /* @__PURE__ */ x(p8, { ...s, children: /* @__PURE__ */ x(
|
|
13747
13747
|
m8,
|
|
@@ -13926,7 +13926,7 @@ const Qc = {
|
|
|
13926
13926
|
secondary: y8,
|
|
13927
13927
|
danger: _8,
|
|
13928
13928
|
inverse: x8
|
|
13929
|
-
}, Fi =
|
|
13929
|
+
}, Fi = B(
|
|
13930
13930
|
(e, t) => {
|
|
13931
13931
|
const r = Ct(t), {
|
|
13932
13932
|
label: n,
|
|
@@ -13945,14 +13945,14 @@ const Qc = {
|
|
|
13945
13945
|
autoFocus: c
|
|
13946
13946
|
},
|
|
13947
13947
|
r
|
|
13948
|
-
), { isFocusVisible: g, focusProps: $ } = fn({ autoFocus: c }), v = Nv({ isFocusVisible: g, isPressed: b }), y = w8[a], w = y$[i], P = Qc[o],
|
|
13948
|
+
), { isFocusVisible: g, focusProps: $ } = fn({ autoFocus: c }), v = Nv({ isFocusVisible: g, isPressed: b }), y = w8[a], w = y$[i], P = Qc[o], O = $e($, u, h, {
|
|
13949
13949
|
"data-state": v
|
|
13950
13950
|
});
|
|
13951
13951
|
return /* @__PURE__ */ x(
|
|
13952
13952
|
y,
|
|
13953
13953
|
{
|
|
13954
13954
|
ref: r,
|
|
13955
|
-
...
|
|
13955
|
+
...O,
|
|
13956
13956
|
style: {
|
|
13957
13957
|
"--icon-button-size": P,
|
|
13958
13958
|
"--icon-button-border-radius": w
|
|
@@ -14096,7 +14096,7 @@ function x$(e) {
|
|
|
14096
14096
|
default:
|
|
14097
14097
|
return ed(v, a, n, i, s);
|
|
14098
14098
|
}
|
|
14099
|
-
}), [
|
|
14099
|
+
}), [O, k] = J(e.autoFocus || !1), _ = re(() => {
|
|
14100
14100
|
let N = {
|
|
14101
14101
|
...a
|
|
14102
14102
|
};
|
|
@@ -14120,12 +14120,12 @@ function x$(e) {
|
|
|
14120
14120
|
N = Ae(N, (p == null ? void 0 : p.calendar) || new et()), p && "hour" in p ? m(p.set(N)) : m(N);
|
|
14121
14121
|
}
|
|
14122
14122
|
}
|
|
14123
|
-
let
|
|
14123
|
+
let M = re(() => h ? c && c(h) ? !0 : Gn(h, i, s) : !1, [
|
|
14124
14124
|
h,
|
|
14125
14125
|
c,
|
|
14126
14126
|
i,
|
|
14127
14127
|
s
|
|
14128
|
-
]), R = e.validationState || (
|
|
14128
|
+
]), R = e.validationState || (M ? "invalid" : null), q = re(() => d === "visible" ? a : Il(a), [
|
|
14129
14129
|
d,
|
|
14130
14130
|
a
|
|
14131
14131
|
]);
|
|
@@ -14208,7 +14208,7 @@ function x$(e) {
|
|
|
14208
14208
|
selectDate(N) {
|
|
14209
14209
|
j(N);
|
|
14210
14210
|
},
|
|
14211
|
-
isFocused:
|
|
14211
|
+
isFocused: O,
|
|
14212
14212
|
setFocused: k,
|
|
14213
14213
|
isInvalid(N) {
|
|
14214
14214
|
return Gn(N, i, s);
|
|
@@ -14217,7 +14217,7 @@ function x$(e) {
|
|
|
14217
14217
|
return h != null && Le(N, h) && !this.isCellDisabled(N) && !this.isCellUnavailable(N);
|
|
14218
14218
|
},
|
|
14219
14219
|
isCellFocused(N) {
|
|
14220
|
-
return
|
|
14220
|
+
return O && v && Le(N, v);
|
|
14221
14221
|
},
|
|
14222
14222
|
isCellDisabled(N) {
|
|
14223
14223
|
return e.isDisabled || N.compare(w) < 0 || N.compare(_) > 0 || this.isInvalid(N, i, s);
|
|
@@ -14237,16 +14237,16 @@ function x$(e) {
|
|
|
14237
14237
|
});
|
|
14238
14238
|
return Le(N, _) || this.isInvalid(N, i, s);
|
|
14239
14239
|
},
|
|
14240
|
-
getDatesInWeek(N,
|
|
14241
|
-
let U =
|
|
14240
|
+
getDatesInWeek(N, V = w) {
|
|
14241
|
+
let U = V.add({
|
|
14242
14242
|
weeks: N
|
|
14243
|
-
}),
|
|
14243
|
+
}), H = [];
|
|
14244
14244
|
U = Zo(U, n);
|
|
14245
14245
|
let L = Ts(U, n);
|
|
14246
14246
|
for (let A = 0; A < L; A++)
|
|
14247
|
-
|
|
14248
|
-
for (;
|
|
14249
|
-
|
|
14247
|
+
H.push(null);
|
|
14248
|
+
for (; H.length < 7; ) {
|
|
14249
|
+
H.push(U);
|
|
14250
14250
|
let A = U.add({
|
|
14251
14251
|
days: 1
|
|
14252
14252
|
});
|
|
@@ -14254,9 +14254,9 @@ function x$(e) {
|
|
|
14254
14254
|
break;
|
|
14255
14255
|
U = A;
|
|
14256
14256
|
}
|
|
14257
|
-
for (;
|
|
14258
|
-
|
|
14259
|
-
return
|
|
14257
|
+
for (; H.length < 7; )
|
|
14258
|
+
H.push(null);
|
|
14259
|
+
return H;
|
|
14260
14260
|
}
|
|
14261
14261
|
};
|
|
14262
14262
|
}
|
|
@@ -14273,10 +14273,10 @@ function P8(e) {
|
|
|
14273
14273
|
months: 1
|
|
14274
14274
|
}, minValue: s, maxValue: l, ...c } = e, [d, u] = Tt(t, r || null, n), [p, m] = J(null), h = "center";
|
|
14275
14275
|
if (d && d.start && d.end) {
|
|
14276
|
-
let
|
|
14276
|
+
let V = ed(yt(d.start), i, a, s, l).add(i).subtract({
|
|
14277
14277
|
days: 1
|
|
14278
14278
|
});
|
|
14279
|
-
d.end.compare(
|
|
14279
|
+
d.end.compare(V) > 0 && (h = "start");
|
|
14280
14280
|
}
|
|
14281
14281
|
let b = z(null), [g, $] = J(null), v = re(() => Tu(s, g == null ? void 0 : g.start), [
|
|
14282
14282
|
s,
|
|
@@ -14298,8 +14298,8 @@ function P8(e) {
|
|
|
14298
14298
|
start: gm(N, w, -1),
|
|
14299
14299
|
end: gm(N, w, 1)
|
|
14300
14300
|
}, $(b.current)) : (b.current = null, $(null));
|
|
14301
|
-
}, [
|
|
14302
|
-
(!zc(w.visibleRange.start,
|
|
14301
|
+
}, [O, k] = J(w.visibleRange);
|
|
14302
|
+
(!zc(w.visibleRange.start, O.start) || !zc(w.visibleRange.end, O.end)) && (P(p), k(w.visibleRange));
|
|
14303
14303
|
let _ = (N) => {
|
|
14304
14304
|
N ? (m(N), P(N)) : (m(null), P(null));
|
|
14305
14305
|
}, E = p ? Ol(p, w.focusedDate) : d && Ol(d.start, d.end), F = (N) => {
|
|
@@ -14307,14 +14307,14 @@ function P8(e) {
|
|
|
14307
14307
|
if (!p)
|
|
14308
14308
|
_(N);
|
|
14309
14309
|
else {
|
|
14310
|
-
let
|
|
14310
|
+
let V = Ol(p, N);
|
|
14311
14311
|
u({
|
|
14312
|
-
start: bm(
|
|
14313
|
-
end: bm(
|
|
14312
|
+
start: bm(V.start, d == null ? void 0 : d.start),
|
|
14313
|
+
end: bm(V.end, d == null ? void 0 : d.end)
|
|
14314
14314
|
}), _(null);
|
|
14315
14315
|
}
|
|
14316
|
-
}, [D, j] = J(!1), { isDateUnavailable:
|
|
14317
|
-
|
|
14316
|
+
}, [D, j] = J(!1), { isDateUnavailable: M } = e, R = re(() => !d || p ? !1 : M && (M(d.start) || M(d.end)) ? !0 : Gn(d.start, s, l) || Gn(d.end, s, l), [
|
|
14317
|
+
M,
|
|
14318
14318
|
d,
|
|
14319
14319
|
p,
|
|
14320
14320
|
s,
|
|
@@ -14339,8 +14339,8 @@ function P8(e) {
|
|
|
14339
14339
|
return E && N.compare(E.start) >= 0 && N.compare(E.end) <= 0 && !w.isCellDisabled(N) && !w.isCellUnavailable(N);
|
|
14340
14340
|
},
|
|
14341
14341
|
isInvalid(N) {
|
|
14342
|
-
var
|
|
14343
|
-
return w.isInvalid(N) || Gn(N, (
|
|
14342
|
+
var V, U;
|
|
14343
|
+
return w.isInvalid(N) || Gn(N, (V = b.current) === null || V === void 0 ? void 0 : V.start, (U = b.current) === null || U === void 0 ? void 0 : U.end);
|
|
14344
14344
|
},
|
|
14345
14345
|
isDragging: D,
|
|
14346
14346
|
setDragging: j
|
|
@@ -14439,7 +14439,7 @@ const w$ = C(eo)`
|
|
|
14439
14439
|
line-height: 1;
|
|
14440
14440
|
font-size: ${f.font_size_deprecated_200};
|
|
14441
14441
|
}
|
|
14442
|
-
`, Li =
|
|
14442
|
+
`, Li = B((e, t) => {
|
|
14443
14443
|
const {
|
|
14444
14444
|
direction: r,
|
|
14445
14445
|
label: n = r === "left" ? "Previous" : "Next",
|
|
@@ -14462,7 +14462,7 @@ const k8 = C(w$)`
|
|
|
14462
14462
|
&[aria-current='true'] {
|
|
14463
14463
|
background-color: ${f.color_deprecated_overlay_secondary_selected_enabled};
|
|
14464
14464
|
}
|
|
14465
|
-
`, rd =
|
|
14465
|
+
`, rd = B((e, t) => {
|
|
14466
14466
|
const { children: r, ...n } = e;
|
|
14467
14467
|
return /* @__PURE__ */ x(
|
|
14468
14468
|
k8,
|
|
@@ -14644,7 +14644,7 @@ const O8 = [
|
|
|
14644
14644
|
N8,
|
|
14645
14645
|
Ir
|
|
14646
14646
|
]), Ku = Ir(), [F8, po] = fo(Is), [L8, z8] = fo(Is), K8 = (e) => {
|
|
14647
|
-
const { __scopeSelect: t, children: r, open: n, defaultOpen: o, onOpenChange: a, value: i, defaultValue: s, onValueChange: l, dir: c, name: d, autoComplete: u, disabled: p, required: m } = e, h = Ku(t), [b, g] = J(null), [$, v] = J(null), [y, w] = J(!1), P = oo(c), [
|
|
14647
|
+
const { __scopeSelect: t, children: r, open: n, defaultOpen: o, onOpenChange: a, value: i, defaultValue: s, onValueChange: l, dir: c, name: d, autoComplete: u, disabled: p, required: m } = e, h = Ku(t), [b, g] = J(null), [$, v] = J(null), [y, w] = J(!1), P = oo(c), [O = !1, k] = qe({
|
|
14648
14648
|
prop: n,
|
|
14649
14649
|
defaultProp: o,
|
|
14650
14650
|
onChange: a
|
|
@@ -14652,7 +14652,7 @@ const O8 = [
|
|
|
14652
14652
|
prop: i,
|
|
14653
14653
|
defaultProp: s,
|
|
14654
14654
|
onChange: l
|
|
14655
|
-
}), F = z(null), D = b ? !!b.closest("form") : !0, [j,
|
|
14655
|
+
}), F = z(null), D = b ? !!b.closest("form") : !0, [j, M] = J(/* @__PURE__ */ new Set()), R = Array.from(j).map(
|
|
14656
14656
|
(q) => q.props.value
|
|
14657
14657
|
).join(";");
|
|
14658
14658
|
return /* @__PURE__ */ S(da, h, /* @__PURE__ */ S(F8, {
|
|
@@ -14667,7 +14667,7 @@ const O8 = [
|
|
|
14667
14667
|
contentId: Qe(),
|
|
14668
14668
|
value: _,
|
|
14669
14669
|
onValueChange: E,
|
|
14670
|
-
open:
|
|
14670
|
+
open: O,
|
|
14671
14671
|
onOpenChange: k,
|
|
14672
14672
|
dir: P,
|
|
14673
14673
|
triggerPointerDownPosRef: F,
|
|
@@ -14677,14 +14677,14 @@ const O8 = [
|
|
|
14677
14677
|
}, /* @__PURE__ */ S(L8, {
|
|
14678
14678
|
scope: e.__scopeSelect,
|
|
14679
14679
|
onNativeOptionAdd: oe((q) => {
|
|
14680
|
-
|
|
14680
|
+
M(
|
|
14681
14681
|
(N) => new Set(N).add(q)
|
|
14682
14682
|
);
|
|
14683
14683
|
}, []),
|
|
14684
14684
|
onNativeOptionRemove: oe((q) => {
|
|
14685
|
-
|
|
14686
|
-
const
|
|
14687
|
-
return
|
|
14685
|
+
M((N) => {
|
|
14686
|
+
const V = new Set(N);
|
|
14687
|
+
return V.delete(q), V;
|
|
14688
14688
|
});
|
|
14689
14689
|
}, [])
|
|
14690
14690
|
}, r)), D ? /* @__PURE__ */ S(P$, {
|
|
@@ -14700,7 +14700,7 @@ const O8 = [
|
|
|
14700
14700
|
}, _ === void 0 ? /* @__PURE__ */ S("option", {
|
|
14701
14701
|
value: ""
|
|
14702
14702
|
}) : null, Array.from(j)) : null));
|
|
14703
|
-
}, V8 = "SelectTrigger", B8 = /* @__PURE__ */
|
|
14703
|
+
}, V8 = "SelectTrigger", B8 = /* @__PURE__ */ B((e, t) => {
|
|
14704
14704
|
const { __scopeSelect: r, disabled: n = !1, ...o } = e, a = Ku(r), i = po(V8, r), s = i.disabled || n, l = _e(t, i.onTriggerChange), c = zu(r), [d, u, p] = T$((h) => {
|
|
14705
14705
|
const b = c().filter(
|
|
14706
14706
|
(v) => !v.disabled
|
|
@@ -14744,7 +14744,7 @@ const O8 = [
|
|
|
14744
14744
|
})));
|
|
14745
14745
|
}), j8 = (e) => /* @__PURE__ */ S(io, I({
|
|
14746
14746
|
asChild: !0
|
|
14747
|
-
}, e)), to = "SelectContent", U8 = /* @__PURE__ */
|
|
14747
|
+
}, e)), to = "SelectContent", U8 = /* @__PURE__ */ B((e, t) => {
|
|
14748
14748
|
const r = po(to, e.__scopeSelect), [n, o] = J();
|
|
14749
14749
|
if (_t(() => {
|
|
14750
14750
|
o(new DocumentFragment());
|
|
@@ -14759,7 +14759,7 @@ const O8 = [
|
|
|
14759
14759
|
return /* @__PURE__ */ S(W8, I({}, e, {
|
|
14760
14760
|
ref: t
|
|
14761
14761
|
}));
|
|
14762
|
-
}), Gt = 10, [D$, Ms] = fo(to), W8 = /* @__PURE__ */
|
|
14762
|
+
}), Gt = 10, [D$, Ms] = fo(to), W8 = /* @__PURE__ */ B((e, t) => {
|
|
14763
14763
|
const {
|
|
14764
14764
|
__scopeSelect: r,
|
|
14765
14765
|
position: n = "item-aligned",
|
|
@@ -14778,10 +14778,10 @@ const O8 = [
|
|
|
14778
14778
|
avoidCollisions: g,
|
|
14779
14779
|
//
|
|
14780
14780
|
...$
|
|
14781
|
-
} = e, v = po(to, r), [y, w] = J(null), [P,
|
|
14781
|
+
} = e, v = po(to, r), [y, w] = J(null), [P, O] = J(null), k = _e(
|
|
14782
14782
|
t,
|
|
14783
14783
|
(Q) => w(Q)
|
|
14784
|
-
), [_, E] = J(null), [F, D] = J(null), j = zu(r), [
|
|
14784
|
+
), [_, E] = J(null), [F, D] = J(null), j = zu(r), [M, R] = J(!1), q = z(!1);
|
|
14785
14785
|
X(() => {
|
|
14786
14786
|
if (y)
|
|
14787
14787
|
return is(y);
|
|
@@ -14789,9 +14789,9 @@ const O8 = [
|
|
|
14789
14789
|
y
|
|
14790
14790
|
]), ns();
|
|
14791
14791
|
const N = oe((Q) => {
|
|
14792
|
-
const [se, ...
|
|
14792
|
+
const [se, ...ue] = j().map(
|
|
14793
14793
|
(ae) => ae.ref.current
|
|
14794
|
-
), [le] =
|
|
14794
|
+
), [le] = ue.slice(-1), me = document.activeElement;
|
|
14795
14795
|
for (const ae of Q)
|
|
14796
14796
|
if (ae === me || (ae == null || ae.scrollIntoView({
|
|
14797
14797
|
block: "nearest"
|
|
@@ -14800,7 +14800,7 @@ const O8 = [
|
|
|
14800
14800
|
}, [
|
|
14801
14801
|
j,
|
|
14802
14802
|
P
|
|
14803
|
-
]),
|
|
14803
|
+
]), V = oe(
|
|
14804
14804
|
() => N([
|
|
14805
14805
|
_,
|
|
14806
14806
|
y
|
|
@@ -14812,12 +14812,12 @@ const O8 = [
|
|
|
14812
14812
|
]
|
|
14813
14813
|
);
|
|
14814
14814
|
X(() => {
|
|
14815
|
-
|
|
14815
|
+
M && V();
|
|
14816
14816
|
}, [
|
|
14817
|
-
|
|
14818
|
-
|
|
14817
|
+
M,
|
|
14818
|
+
V
|
|
14819
14819
|
]);
|
|
14820
|
-
const { onOpenChange: U, triggerPointerDownPosRef:
|
|
14820
|
+
const { onOpenChange: U, triggerPointerDownPosRef: H } = v;
|
|
14821
14821
|
X(() => {
|
|
14822
14822
|
if (y) {
|
|
14823
14823
|
let Q = {
|
|
@@ -14827,17 +14827,17 @@ const O8 = [
|
|
|
14827
14827
|
const se = (le) => {
|
|
14828
14828
|
var me, ae, be, ye;
|
|
14829
14829
|
Q = {
|
|
14830
|
-
x: Math.abs(Math.round(le.pageX) - ((me = (ae =
|
|
14831
|
-
y: Math.abs(Math.round(le.pageY) - ((be = (ye =
|
|
14830
|
+
x: Math.abs(Math.round(le.pageX) - ((me = (ae = H.current) === null || ae === void 0 ? void 0 : ae.x) !== null && me !== void 0 ? me : 0)),
|
|
14831
|
+
y: Math.abs(Math.round(le.pageY) - ((be = (ye = H.current) === null || ye === void 0 ? void 0 : ye.y) !== null && be !== void 0 ? be : 0))
|
|
14832
14832
|
};
|
|
14833
|
-
},
|
|
14834
|
-
Q.x <= 10 && Q.y <= 10 ? le.preventDefault() : y.contains(le.target) || U(!1), document.removeEventListener("pointermove", se),
|
|
14833
|
+
}, ue = (le) => {
|
|
14834
|
+
Q.x <= 10 && Q.y <= 10 ? le.preventDefault() : y.contains(le.target) || U(!1), document.removeEventListener("pointermove", se), H.current = null;
|
|
14835
14835
|
};
|
|
14836
|
-
return
|
|
14836
|
+
return H.current !== null && (document.addEventListener("pointermove", se), document.addEventListener("pointerup", ue, {
|
|
14837
14837
|
capture: !0,
|
|
14838
14838
|
once: !0
|
|
14839
14839
|
})), () => {
|
|
14840
|
-
document.removeEventListener("pointermove", se), document.removeEventListener("pointerup",
|
|
14840
|
+
document.removeEventListener("pointermove", se), document.removeEventListener("pointerup", ue, {
|
|
14841
14841
|
capture: !0
|
|
14842
14842
|
});
|
|
14843
14843
|
};
|
|
@@ -14845,7 +14845,7 @@ const O8 = [
|
|
|
14845
14845
|
}, [
|
|
14846
14846
|
y,
|
|
14847
14847
|
U,
|
|
14848
|
-
|
|
14848
|
+
H
|
|
14849
14849
|
]), X(() => {
|
|
14850
14850
|
const Q = () => U(!1);
|
|
14851
14851
|
return window.addEventListener("blur", Q), window.addEventListener("resize", Q), () => {
|
|
@@ -14857,28 +14857,28 @@ const O8 = [
|
|
|
14857
14857
|
const [L, A] = T$((Q) => {
|
|
14858
14858
|
const se = j().filter(
|
|
14859
14859
|
(me) => !me.disabled
|
|
14860
|
-
),
|
|
14860
|
+
), ue = se.find(
|
|
14861
14861
|
(me) => me.ref.current === document.activeElement
|
|
14862
|
-
), le = k$(se, Q,
|
|
14862
|
+
), le = k$(se, Q, ue);
|
|
14863
14863
|
le && setTimeout(
|
|
14864
14864
|
() => le.ref.current.focus()
|
|
14865
14865
|
);
|
|
14866
|
-
}), ee = oe((Q, se,
|
|
14867
|
-
const le = !q.current && !
|
|
14866
|
+
}), ee = oe((Q, se, ue) => {
|
|
14867
|
+
const le = !q.current && !ue;
|
|
14868
14868
|
(v.value !== void 0 && v.value === se || le) && (E(Q), le && (q.current = !0));
|
|
14869
14869
|
}, [
|
|
14870
14870
|
v.value
|
|
14871
|
-
]),
|
|
14871
|
+
]), G = oe(
|
|
14872
14872
|
() => y == null ? void 0 : y.focus(),
|
|
14873
14873
|
[
|
|
14874
14874
|
y
|
|
14875
14875
|
]
|
|
14876
|
-
), Y = oe((Q, se,
|
|
14877
|
-
const le = !q.current && !
|
|
14876
|
+
), Y = oe((Q, se, ue) => {
|
|
14877
|
+
const le = !q.current && !ue;
|
|
14878
14878
|
(v.value !== void 0 && v.value === se || le) && D(Q);
|
|
14879
14879
|
}, [
|
|
14880
14880
|
v.value
|
|
14881
|
-
]),
|
|
14881
|
+
]), de = n === "popper" ? ym : H8, fe = de === ym ? {
|
|
14882
14882
|
side: s,
|
|
14883
14883
|
sideOffset: l,
|
|
14884
14884
|
align: c,
|
|
@@ -14894,15 +14894,15 @@ const O8 = [
|
|
|
14894
14894
|
scope: r,
|
|
14895
14895
|
content: y,
|
|
14896
14896
|
viewport: P,
|
|
14897
|
-
onViewportChange:
|
|
14897
|
+
onViewportChange: O,
|
|
14898
14898
|
itemRefCallback: ee,
|
|
14899
14899
|
selectedItem: _,
|
|
14900
|
-
onItemLeave:
|
|
14900
|
+
onItemLeave: G,
|
|
14901
14901
|
itemTextRefCallback: Y,
|
|
14902
|
-
focusSelectedItem:
|
|
14902
|
+
focusSelectedItem: V,
|
|
14903
14903
|
selectedItemText: F,
|
|
14904
14904
|
position: n,
|
|
14905
|
-
isPositioned:
|
|
14905
|
+
isPositioned: M,
|
|
14906
14906
|
searchRef: L
|
|
14907
14907
|
}, /* @__PURE__ */ S(as, {
|
|
14908
14908
|
as: xr,
|
|
@@ -14926,13 +14926,13 @@ const O8 = [
|
|
|
14926
14926
|
onPointerDownOutside: i,
|
|
14927
14927
|
onFocusOutside: (Q) => Q.preventDefault(),
|
|
14928
14928
|
onDismiss: () => v.onOpenChange(!1)
|
|
14929
|
-
}, /* @__PURE__ */ S(
|
|
14929
|
+
}, /* @__PURE__ */ S(de, I({
|
|
14930
14930
|
role: "listbox",
|
|
14931
14931
|
id: v.contentId,
|
|
14932
14932
|
"data-state": v.open ? "open" : "closed",
|
|
14933
14933
|
dir: v.dir,
|
|
14934
14934
|
onContextMenu: (Q) => Q.preventDefault()
|
|
14935
|
-
}, $,
|
|
14935
|
+
}, $, fe, {
|
|
14936
14936
|
onPlaced: () => R(!0),
|
|
14937
14937
|
ref: k,
|
|
14938
14938
|
style: {
|
|
@@ -14972,7 +14972,7 @@ const O8 = [
|
|
|
14972
14972
|
}
|
|
14973
14973
|
})
|
|
14974
14974
|
}))))));
|
|
14975
|
-
}), H8 = /* @__PURE__ */
|
|
14975
|
+
}), H8 = /* @__PURE__ */ B((e, t) => {
|
|
14976
14976
|
const { __scopeSelect: r, onPlaced: n, ...o } = e, a = po(to, r), i = Ms(to, r), [s, l] = J(null), [c, d] = J(null), u = _e(
|
|
14977
14977
|
t,
|
|
14978
14978
|
(k) => d(k)
|
|
@@ -14992,16 +14992,16 @@ const O8 = [
|
|
|
14992
14992
|
]);
|
|
14993
14993
|
s.style.minWidth = ye + "px", s.style.right = Rt + "px";
|
|
14994
14994
|
}
|
|
14995
|
-
const D = p(), j = window.innerHeight - Gt * 2,
|
|
14995
|
+
const D = p(), j = window.innerHeight - Gt * 2, M = b.scrollHeight, R = window.getComputedStyle(c), q = parseInt(R.borderTopWidth, 10), N = parseInt(R.paddingTop, 10), V = parseInt(R.borderBottomWidth, 10), U = parseInt(R.paddingBottom, 10), H = q + N + M + U + V, L = Math.min(g.offsetHeight * 5, H), A = window.getComputedStyle(b), ee = parseInt(A.paddingTop, 10), G = parseInt(A.paddingBottom, 10), Y = k.top + k.height / 2 - Gt, de = j - Y, fe = g.offsetHeight / 2, Q = g.offsetTop + fe, se = q + N + Q, ue = H - se;
|
|
14996
14996
|
if (se <= Y) {
|
|
14997
14997
|
const me = g === D[D.length - 1].ref.current;
|
|
14998
14998
|
s.style.bottom = "0px";
|
|
14999
|
-
const ae = c.clientHeight - b.offsetTop - b.offsetHeight, be = Math.max(
|
|
14999
|
+
const ae = c.clientHeight - b.offsetTop - b.offsetHeight, be = Math.max(de, fe + (me ? G : 0) + ae + V), ye = se + be;
|
|
15000
15000
|
s.style.height = ye + "px";
|
|
15001
15001
|
} else {
|
|
15002
15002
|
const me = g === D[0].ref.current;
|
|
15003
15003
|
s.style.top = "0px";
|
|
15004
|
-
const be = Math.max(Y, q + b.offsetTop + (me ? ee : 0) +
|
|
15004
|
+
const be = Math.max(Y, q + b.offsetTop + (me ? ee : 0) + fe) + ue;
|
|
15005
15005
|
s.style.height = be + "px", b.scrollTop = se - Y + b.offsetTop;
|
|
15006
15006
|
}
|
|
15007
15007
|
s.style.margin = `${Gt}px 0`, s.style.minHeight = L + "px", s.style.maxHeight = j + "px", n == null || n(), requestAnimationFrame(
|
|
@@ -15032,7 +15032,7 @@ const O8 = [
|
|
|
15032
15032
|
}, [
|
|
15033
15033
|
c
|
|
15034
15034
|
]);
|
|
15035
|
-
const
|
|
15035
|
+
const O = oe((k) => {
|
|
15036
15036
|
k && h.current === !0 && (y(), v == null || v(), h.current = !1);
|
|
15037
15037
|
}, [
|
|
15038
15038
|
y,
|
|
@@ -15042,7 +15042,7 @@ const O8 = [
|
|
|
15042
15042
|
scope: r,
|
|
15043
15043
|
contentWrapper: s,
|
|
15044
15044
|
shouldExpandOnScrollRef: m,
|
|
15045
|
-
onScrollButtonChange:
|
|
15045
|
+
onScrollButtonChange: O
|
|
15046
15046
|
}, /* @__PURE__ */ S("div", {
|
|
15047
15047
|
ref: l,
|
|
15048
15048
|
style: {
|
|
@@ -15062,7 +15062,7 @@ const O8 = [
|
|
|
15062
15062
|
...o.style
|
|
15063
15063
|
}
|
|
15064
15064
|
}))));
|
|
15065
|
-
}), ym = /* @__PURE__ */
|
|
15065
|
+
}), ym = /* @__PURE__ */ B((e, t) => {
|
|
15066
15066
|
const { __scopeSelect: r, align: n = "start", collisionPadding: o = Gt, ...a } = e, i = Ku(r);
|
|
15067
15067
|
return /* @__PURE__ */ S(ws, I({}, i, a, {
|
|
15068
15068
|
ref: t,
|
|
@@ -15079,7 +15079,7 @@ const O8 = [
|
|
|
15079
15079
|
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
15080
15080
|
}
|
|
15081
15081
|
}));
|
|
15082
|
-
}), [G8, Y8] = fo(to, {}), _m = "SelectViewport", q8 = /* @__PURE__ */
|
|
15082
|
+
}), [G8, Y8] = fo(to, {}), _m = "SelectViewport", q8 = /* @__PURE__ */ B((e, t) => {
|
|
15083
15083
|
const { __scopeSelect: r, ...n } = e, o = Ms(_m, r), a = Y8(_m, r), i = _e(t, o.onViewportChange), s = z(0);
|
|
15084
15084
|
return /* @__PURE__ */ S(Cr, null, /* @__PURE__ */ S("style", {
|
|
15085
15085
|
dangerouslySetInnerHTML: {
|
|
@@ -15118,7 +15118,7 @@ const O8 = [
|
|
|
15118
15118
|
}))));
|
|
15119
15119
|
}), Z8 = "SelectGroup";
|
|
15120
15120
|
fo(Z8);
|
|
15121
|
-
const nd = "SelectItem", [X8, S$] = fo(nd), J8 = /* @__PURE__ */
|
|
15121
|
+
const nd = "SelectItem", [X8, S$] = fo(nd), J8 = /* @__PURE__ */ B((e, t) => {
|
|
15122
15122
|
const { __scopeSelect: r, value: n, disabled: o = !1, textValue: a, ...i } = e, s = po(nd, r), l = Ms(nd, r), c = s.value === n, [d, u] = J(a ?? ""), [p, m] = J(!1), h = _e(t, ($) => {
|
|
15123
15123
|
var v;
|
|
15124
15124
|
return (v = l.itemRefCallback) === null || v === void 0 ? void 0 : v.call(l, $, n, o);
|
|
@@ -15182,7 +15182,7 @@ const nd = "SelectItem", [X8, S$] = fo(nd), J8 = /* @__PURE__ */ V((e, t) => {
|
|
|
15182
15182
|
((v = l.searchRef) === null || v === void 0 ? void 0 : v.current) !== "" && $.key === " " || (M8.includes($.key) && g(), $.key === " " && $.preventDefault());
|
|
15183
15183
|
})
|
|
15184
15184
|
}))));
|
|
15185
|
-
}), ja = "SelectItemText", Q8 = /* @__PURE__ */
|
|
15185
|
+
}), ja = "SelectItemText", Q8 = /* @__PURE__ */ B((e, t) => {
|
|
15186
15186
|
const { __scopeSelect: r, className: n, style: o, ...a } = e, i = po(ja, r), s = Ms(ja, r), l = S$(ja, r), c = z8(ja, r), [d, u] = J(null), p = _e(
|
|
15187
15187
|
t,
|
|
15188
15188
|
($) => u($),
|
|
@@ -15212,14 +15212,14 @@ const nd = "SelectItem", [X8, S$] = fo(nd), J8 = /* @__PURE__ */ V((e, t) => {
|
|
|
15212
15212
|
}, a, {
|
|
15213
15213
|
ref: p
|
|
15214
15214
|
})), l.isSelected && i.valueNode && !i.valueNodeHasChildren ? /* @__PURE__ */ Hi(a.children, i.valueNode) : null);
|
|
15215
|
-
}), e9 = "SelectItemIndicator", t9 = /* @__PURE__ */
|
|
15215
|
+
}), e9 = "SelectItemIndicator", t9 = /* @__PURE__ */ B((e, t) => {
|
|
15216
15216
|
const { __scopeSelect: r, ...n } = e;
|
|
15217
15217
|
return S$(e9, r).isSelected ? /* @__PURE__ */ S(he.span, I({
|
|
15218
15218
|
"aria-hidden": !0
|
|
15219
15219
|
}, n, {
|
|
15220
15220
|
ref: t
|
|
15221
15221
|
})) : null;
|
|
15222
|
-
}), P$ = /* @__PURE__ */
|
|
15222
|
+
}), P$ = /* @__PURE__ */ B((e, t) => {
|
|
15223
15223
|
const { value: r, ...n } = e, o = z(null), a = _e(t, o), i = As(r);
|
|
15224
15224
|
return X(() => {
|
|
15225
15225
|
const s = o.current, l = window.HTMLSelectElement.prototype, d = Object.getOwnPropertyDescriptor(l, "value").set;
|
|
@@ -15547,9 +15547,9 @@ function uy(e) {
|
|
|
15547
15547
|
g(), c(), t.current = window.setTimeout(() => {
|
|
15548
15548
|
(isNaN(a) || isNaN(r) || r < a) && P(60);
|
|
15549
15549
|
}, F);
|
|
15550
|
-
}),
|
|
15550
|
+
}), O = Ue((F) => {
|
|
15551
15551
|
g(), u(), t.current = window.setTimeout(() => {
|
|
15552
|
-
(isNaN(o) || isNaN(r) || r > o) &&
|
|
15552
|
+
(isNaN(o) || isNaN(r) || r > o) && O(60);
|
|
15553
15553
|
}, F);
|
|
15554
15554
|
});
|
|
15555
15555
|
let k = (F) => {
|
|
@@ -15581,7 +15581,7 @@ function uy(e) {
|
|
|
15581
15581
|
},
|
|
15582
15582
|
decrementButtonProps: {
|
|
15583
15583
|
onPressStart: () => {
|
|
15584
|
-
|
|
15584
|
+
O(400), _(window, "contextmenu", k);
|
|
15585
15585
|
},
|
|
15586
15586
|
onPressEnd: () => {
|
|
15587
15587
|
g(), E();
|
|
@@ -16423,8 +16423,8 @@ function v9(e, t, r) {
|
|
|
16423
16423
|
timeZone: u.timeZone
|
|
16424
16424
|
});
|
|
16425
16425
|
if (e.type === "month" && !e.isPlaceholder) {
|
|
16426
|
-
let
|
|
16427
|
-
d =
|
|
16426
|
+
let V = p.format(t.dateValue);
|
|
16427
|
+
d = V !== d ? `${d} – ${V}` : V;
|
|
16428
16428
|
} else
|
|
16429
16429
|
e.type === "hour" && !e.isPlaceholder && (d = m.format(t.dateValue));
|
|
16430
16430
|
let { spinButtonProps: h } = uy({
|
|
@@ -16462,16 +16462,16 @@ function v9(e, t, r) {
|
|
|
16462
16462
|
o
|
|
16463
16463
|
]), g = () => {
|
|
16464
16464
|
if (b.isValidPartialNumber(e.text) && !t.isReadOnly && !e.isPlaceholder) {
|
|
16465
|
-
let
|
|
16466
|
-
|
|
16465
|
+
let V = e.text.slice(0, -1), U = b.parse(V);
|
|
16466
|
+
V.length === 0 || U === 0 ? t.clearSegment(e.type) : t.setSegment(e.type, U), n.current = V;
|
|
16467
16467
|
} else
|
|
16468
16468
|
e.type === "dayPeriod" && t.clearSegment(e.type);
|
|
16469
|
-
}, $ = (
|
|
16470
|
-
if (
|
|
16471
|
-
switch (
|
|
16469
|
+
}, $ = (V) => {
|
|
16470
|
+
if (V.key === "a" && (ln() ? V.metaKey : V.ctrlKey) && V.preventDefault(), !(V.ctrlKey || V.metaKey || V.shiftKey || V.altKey))
|
|
16471
|
+
switch (V.key) {
|
|
16472
16472
|
case "Backspace":
|
|
16473
16473
|
case "Delete":
|
|
16474
|
-
|
|
16474
|
+
V.preventDefault(), V.stopPropagation(), g();
|
|
16475
16475
|
break;
|
|
16476
16476
|
}
|
|
16477
16477
|
}, { startsWith: v } = J0({
|
|
@@ -16480,59 +16480,59 @@ function v9(e, t, r) {
|
|
|
16480
16480
|
hour: "numeric",
|
|
16481
16481
|
hour12: !0
|
|
16482
16482
|
}), w = re(() => {
|
|
16483
|
-
let
|
|
16484
|
-
return
|
|
16483
|
+
let V = /* @__PURE__ */ new Date();
|
|
16484
|
+
return V.setHours(0), y.formatToParts(V).find((U) => U.type === "dayPeriod").value;
|
|
16485
16485
|
}, [
|
|
16486
16486
|
y
|
|
16487
16487
|
]), P = re(() => {
|
|
16488
|
-
let
|
|
16489
|
-
return
|
|
16488
|
+
let V = /* @__PURE__ */ new Date();
|
|
16489
|
+
return V.setHours(12), y.formatToParts(V).find((U) => U.type === "dayPeriod").value;
|
|
16490
16490
|
}, [
|
|
16491
16491
|
y
|
|
16492
|
-
]),
|
|
16492
|
+
]), O = Dt({
|
|
16493
16493
|
year: "numeric",
|
|
16494
16494
|
era: "narrow",
|
|
16495
16495
|
timeZone: "UTC"
|
|
16496
16496
|
}), k = re(() => {
|
|
16497
16497
|
if (e.type !== "era")
|
|
16498
16498
|
return [];
|
|
16499
|
-
let
|
|
16500
|
-
let A =
|
|
16499
|
+
let V = Ae(new Me(1, 1, 1), t.calendar), U = t.calendar.getEras().map((L) => {
|
|
16500
|
+
let A = V.set({
|
|
16501
16501
|
year: 1,
|
|
16502
16502
|
month: 1,
|
|
16503
16503
|
day: 1,
|
|
16504
16504
|
era: L
|
|
16505
|
-
}).toDate("UTC"),
|
|
16505
|
+
}).toDate("UTC"), G = O.formatToParts(A).find((Y) => Y.type === "era").value;
|
|
16506
16506
|
return {
|
|
16507
16507
|
era: L,
|
|
16508
|
-
formatted:
|
|
16508
|
+
formatted: G
|
|
16509
16509
|
};
|
|
16510
|
-
}),
|
|
16511
|
-
if (
|
|
16510
|
+
}), H = $9(U.map((L) => L.formatted));
|
|
16511
|
+
if (H)
|
|
16512
16512
|
for (let L of U)
|
|
16513
|
-
L.formatted = L.formatted.slice(
|
|
16513
|
+
L.formatted = L.formatted.slice(H);
|
|
16514
16514
|
return U;
|
|
16515
16515
|
}, [
|
|
16516
|
-
|
|
16516
|
+
O,
|
|
16517
16517
|
t.calendar,
|
|
16518
16518
|
e.type
|
|
16519
|
-
]), _ = (
|
|
16519
|
+
]), _ = (V) => {
|
|
16520
16520
|
if (t.isDisabled || t.isReadOnly)
|
|
16521
16521
|
return;
|
|
16522
|
-
let U = n.current +
|
|
16522
|
+
let U = n.current + V;
|
|
16523
16523
|
switch (e.type) {
|
|
16524
16524
|
case "dayPeriod":
|
|
16525
|
-
if (v(w,
|
|
16525
|
+
if (v(w, V))
|
|
16526
16526
|
t.setSegment("dayPeriod", 0);
|
|
16527
|
-
else if (v(P,
|
|
16527
|
+
else if (v(P, V))
|
|
16528
16528
|
t.setSegment("dayPeriod", 12);
|
|
16529
16529
|
else
|
|
16530
16530
|
break;
|
|
16531
16531
|
c.focusNext();
|
|
16532
16532
|
break;
|
|
16533
16533
|
case "era": {
|
|
16534
|
-
let
|
|
16535
|
-
|
|
16534
|
+
let H = k.find((L) => v(L.formatted, V));
|
|
16535
|
+
H && (t.setSegment("era", H.era), c.focusNext());
|
|
16536
16536
|
break;
|
|
16537
16537
|
}
|
|
16538
16538
|
case "day":
|
|
@@ -16543,23 +16543,23 @@ function v9(e, t, r) {
|
|
|
16543
16543
|
case "year": {
|
|
16544
16544
|
if (!b.isValidPartialNumber(U))
|
|
16545
16545
|
return;
|
|
16546
|
-
let
|
|
16546
|
+
let H = b.parse(U), L = H, A = e.minValue === 0;
|
|
16547
16547
|
if (e.type === "hour" && t.dateFormatter.resolvedOptions().hour12) {
|
|
16548
16548
|
switch (t.dateFormatter.resolvedOptions().hourCycle) {
|
|
16549
16549
|
case "h11":
|
|
16550
|
-
|
|
16550
|
+
H > 11 && (L = b.parse(V));
|
|
16551
16551
|
break;
|
|
16552
16552
|
case "h12":
|
|
16553
|
-
A = !1,
|
|
16553
|
+
A = !1, H > 12 && (L = b.parse(V));
|
|
16554
16554
|
break;
|
|
16555
16555
|
}
|
|
16556
|
-
e.value >= 12 &&
|
|
16556
|
+
e.value >= 12 && H > 1 && (H += 12);
|
|
16557
16557
|
} else
|
|
16558
|
-
|
|
16559
|
-
if (isNaN(
|
|
16558
|
+
H > e.maxValue && (L = b.parse(V));
|
|
16559
|
+
if (isNaN(H))
|
|
16560
16560
|
return;
|
|
16561
16561
|
let ee = L !== 0 || A;
|
|
16562
|
-
ee && t.setSegment(e.type, L), +(
|
|
16562
|
+
ee && t.setSegment(e.type, L), +(H + "0") > e.maxValue || U.length >= String(e.maxValue).length ? (n.current = "", ee && c.focusNext()) : n.current = U;
|
|
16563
16563
|
break;
|
|
16564
16564
|
}
|
|
16565
16565
|
}
|
|
@@ -16568,8 +16568,8 @@ function v9(e, t, r) {
|
|
|
16568
16568
|
containingElement: Xn(r.current)
|
|
16569
16569
|
}), window.getSelection().collapse(r.current);
|
|
16570
16570
|
}, F = z("");
|
|
16571
|
-
$r(r, "beforeinput", (
|
|
16572
|
-
switch (
|
|
16571
|
+
$r(r, "beforeinput", (V) => {
|
|
16572
|
+
switch (V.preventDefault(), V.inputType) {
|
|
16573
16573
|
case "deleteContentBackward":
|
|
16574
16574
|
case "deleteContentForward":
|
|
16575
16575
|
b.isValidPartialNumber(e.text) && !t.isReadOnly && g();
|
|
@@ -16578,20 +16578,20 @@ function v9(e, t, r) {
|
|
|
16578
16578
|
F.current = r.current.textContent, r.current.textContent = r.current.textContent;
|
|
16579
16579
|
break;
|
|
16580
16580
|
default:
|
|
16581
|
-
|
|
16581
|
+
V.data != null && _(V.data);
|
|
16582
16582
|
break;
|
|
16583
16583
|
}
|
|
16584
|
-
}), $r(r, "input", (
|
|
16585
|
-
let { inputType: U, data:
|
|
16584
|
+
}), $r(r, "input", (V) => {
|
|
16585
|
+
let { inputType: U, data: H } = V;
|
|
16586
16586
|
switch (U) {
|
|
16587
16587
|
case "insertCompositionText":
|
|
16588
|
-
r.current.textContent = F.current, (v(w,
|
|
16588
|
+
r.current.textContent = F.current, (v(w, H) || v(P, H)) && _(H);
|
|
16589
16589
|
break;
|
|
16590
16590
|
}
|
|
16591
16591
|
}), Oe(() => {
|
|
16592
|
-
let
|
|
16592
|
+
let V = r.current;
|
|
16593
16593
|
return () => {
|
|
16594
|
-
document.activeElement ===
|
|
16594
|
+
document.activeElement === V && (c.focusPrevious() || c.focusNext());
|
|
16595
16595
|
};
|
|
16596
16596
|
}, [
|
|
16597
16597
|
r,
|
|
@@ -16603,11 +16603,11 @@ function v9(e, t, r) {
|
|
|
16603
16603
|
"aria-valuemin": null,
|
|
16604
16604
|
"aria-valuetext": null,
|
|
16605
16605
|
"aria-valuenow": null
|
|
16606
|
-
} : {}, j = re(() => t.segments.find((
|
|
16606
|
+
} : {}, j = re(() => t.segments.find((V) => V.isEditable), [
|
|
16607
16607
|
t.segments
|
|
16608
16608
|
]);
|
|
16609
16609
|
e !== j && t.validationState !== "invalid" && (l = void 0);
|
|
16610
|
-
let
|
|
16610
|
+
let M = ut(), R = !t.isDisabled && !t.isReadOnly && e.isEditable, q = e.type === "literal" ? "" : a.of(e.type), N = Xr({
|
|
16611
16611
|
"aria-label": `${q}${i ? `, ${i}` : ""}${s ? ", " : ""}`,
|
|
16612
16612
|
"aria-labelledby": s
|
|
16613
16613
|
});
|
|
@@ -16617,7 +16617,7 @@ function v9(e, t, r) {
|
|
|
16617
16617
|
}
|
|
16618
16618
|
} : {
|
|
16619
16619
|
segmentProps: $e(h, N, {
|
|
16620
|
-
id:
|
|
16620
|
+
id: M,
|
|
16621
16621
|
...D,
|
|
16622
16622
|
"aria-invalid": t.validationState === "invalid" ? "true" : void 0,
|
|
16623
16623
|
"aria-describedby": l,
|
|
@@ -16638,11 +16638,11 @@ function v9(e, t, r) {
|
|
|
16638
16638
|
caretColor: "transparent"
|
|
16639
16639
|
},
|
|
16640
16640
|
// Prevent pointer events from reaching useDatePickerGroup, and allow native browser behavior to focus the segment.
|
|
16641
|
-
onPointerDown(
|
|
16642
|
-
|
|
16641
|
+
onPointerDown(V) {
|
|
16642
|
+
V.stopPropagation();
|
|
16643
16643
|
},
|
|
16644
|
-
onMouseDown(
|
|
16645
|
-
|
|
16644
|
+
onMouseDown(V) {
|
|
16645
|
+
V.stopPropagation();
|
|
16646
16646
|
}
|
|
16647
16647
|
})
|
|
16648
16648
|
};
|
|
@@ -17176,11 +17176,11 @@ function k9(e) {
|
|
|
17176
17176
|
c,
|
|
17177
17177
|
n,
|
|
17178
17178
|
y
|
|
17179
|
-
]),
|
|
17179
|
+
]), O = re(() => xm({}, P), [
|
|
17180
17180
|
P
|
|
17181
|
-
]), k = re(() => new Oo(t,
|
|
17181
|
+
]), k = re(() => new Oo(t, O), [
|
|
17182
17182
|
t,
|
|
17183
|
-
|
|
17183
|
+
O
|
|
17184
17184
|
]), _ = re(() => k.resolvedOptions(), [
|
|
17185
17185
|
k
|
|
17186
17186
|
]), E = re(() => k.formatToParts(/* @__PURE__ */ new Date()).filter((A) => Wa[A.type]).reduce((A, ee) => (A[ee.type] = !0, A), {}), [
|
|
@@ -17199,20 +17199,20 @@ function k9(e) {
|
|
|
17199
17199
|
]), m && Object.keys(F).length < Object.keys(E).length && (F = {
|
|
17200
17200
|
...E
|
|
17201
17201
|
}, D(F)), m == null && Object.keys(F).length === Object.keys(E).length && (F = {}, D(F), $(Ua(e.placeholderValue, l, p, c)));
|
|
17202
|
-
let
|
|
17202
|
+
let M = b && Object.keys(F).length >= Object.keys(E).length ? b : g, R = (A) => {
|
|
17203
17203
|
e.isDisabled || e.isReadOnly || (Object.keys(F).length >= Object.keys(E).length ? (A = Ae(A, (s == null ? void 0 : s.calendar) || new et()), h(A)) : $(A));
|
|
17204
|
-
}, q = re(() =>
|
|
17205
|
-
|
|
17204
|
+
}, q = re(() => M.toDate(d), [
|
|
17205
|
+
M,
|
|
17206
17206
|
d
|
|
17207
17207
|
]), N = re(() => k.formatToParts(q).map((A) => {
|
|
17208
17208
|
let ee = Wa[A.type];
|
|
17209
17209
|
A.type === "era" && p.getEras().length === 1 && (ee = !1);
|
|
17210
|
-
let
|
|
17210
|
+
let G = Wa[A.type] && !F[A.type], Y = Wa[A.type] ? P9(A.type, A.value, t) : null;
|
|
17211
17211
|
return {
|
|
17212
17212
|
type: T9[A.type] || A.type,
|
|
17213
|
-
text:
|
|
17214
|
-
...E9(
|
|
17215
|
-
isPlaceholder:
|
|
17213
|
+
text: G ? Y : A.value,
|
|
17214
|
+
...E9(M, A.type, _),
|
|
17215
|
+
isPlaceholder: G,
|
|
17216
17216
|
placeholder: Y,
|
|
17217
17217
|
isEditable: ee
|
|
17218
17218
|
};
|
|
@@ -17221,7 +17221,7 @@ function k9(e) {
|
|
|
17221
17221
|
F,
|
|
17222
17222
|
k,
|
|
17223
17223
|
_,
|
|
17224
|
-
|
|
17224
|
+
M,
|
|
17225
17225
|
p,
|
|
17226
17226
|
t
|
|
17227
17227
|
]);
|
|
@@ -17230,13 +17230,13 @@ function k9(e) {
|
|
|
17230
17230
|
})) : !E.era && F.era && (delete F.era, D({
|
|
17231
17231
|
...F
|
|
17232
17232
|
}));
|
|
17233
|
-
let
|
|
17233
|
+
let V = (A) => {
|
|
17234
17234
|
F[A] = !0, A === "year" && E.era && (F.era = !0), D({
|
|
17235
17235
|
...F
|
|
17236
17236
|
});
|
|
17237
17237
|
}, U = (A, ee) => {
|
|
17238
|
-
F[A] ? R(C9(
|
|
17239
|
-
},
|
|
17238
|
+
F[A] ? R(C9(M, A, ee, _)) : (V(A), Object.keys(F).length >= Object.keys(E).length && R(M));
|
|
17239
|
+
}, H = e.validationState || (_9(b, e.minValue, e.maxValue) ? "invalid" : null);
|
|
17240
17240
|
var L;
|
|
17241
17241
|
return {
|
|
17242
17242
|
value: b,
|
|
@@ -17245,7 +17245,7 @@ function k9(e) {
|
|
|
17245
17245
|
setValue: R,
|
|
17246
17246
|
segments: N,
|
|
17247
17247
|
dateFormatter: k,
|
|
17248
|
-
validationState:
|
|
17248
|
+
validationState: H,
|
|
17249
17249
|
granularity: l,
|
|
17250
17250
|
maxGranularity: (L = e.maxGranularity) !== null && L !== void 0 ? L : "year",
|
|
17251
17251
|
isDisabled: o,
|
|
@@ -17264,7 +17264,7 @@ function k9(e) {
|
|
|
17264
17264
|
U(A, -(wm[A] || 1));
|
|
17265
17265
|
},
|
|
17266
17266
|
setSegment(A, ee) {
|
|
17267
|
-
|
|
17267
|
+
V(A), R(R9(M, A, ee, _));
|
|
17268
17268
|
},
|
|
17269
17269
|
confirmPlaceholder() {
|
|
17270
17270
|
if (e.isDisabled || e.isReadOnly)
|
|
@@ -17272,25 +17272,25 @@ function k9(e) {
|
|
|
17272
17272
|
let A = Object.keys(F), ee = Object.keys(E);
|
|
17273
17273
|
A.length === ee.length - 1 && E.dayPeriod && !F.dayPeriod && (F = {
|
|
17274
17274
|
...E
|
|
17275
|
-
}, D(F), R(
|
|
17275
|
+
}, D(F), R(M.copy()));
|
|
17276
17276
|
},
|
|
17277
17277
|
clearSegment(A) {
|
|
17278
17278
|
delete F[A], D({
|
|
17279
17279
|
...F
|
|
17280
17280
|
});
|
|
17281
|
-
let ee = Ua(e.placeholderValue, l, p, c),
|
|
17282
|
-
if (A === "dayPeriod" && "hour" in
|
|
17283
|
-
let Y =
|
|
17284
|
-
Y && !
|
|
17285
|
-
hour:
|
|
17286
|
-
}) : !Y &&
|
|
17287
|
-
hour:
|
|
17281
|
+
let ee = Ua(e.placeholderValue, l, p, c), G = M;
|
|
17282
|
+
if (A === "dayPeriod" && "hour" in M && "hour" in ee) {
|
|
17283
|
+
let Y = M.hour >= 12, de = ee.hour >= 12;
|
|
17284
|
+
Y && !de ? G = M.set({
|
|
17285
|
+
hour: M.hour - 12
|
|
17286
|
+
}) : !Y && de && (G = M.set({
|
|
17287
|
+
hour: M.hour + 12
|
|
17288
17288
|
}));
|
|
17289
17289
|
} else
|
|
17290
|
-
A in
|
|
17290
|
+
A in M && (G = M.set({
|
|
17291
17291
|
[A]: ee[A]
|
|
17292
17292
|
}));
|
|
17293
|
-
h(null), R(
|
|
17293
|
+
h(null), R(G);
|
|
17294
17294
|
},
|
|
17295
17295
|
formatValue(A) {
|
|
17296
17296
|
if (!b)
|
|
@@ -17625,7 +17625,7 @@ function Q9({ size: e = "medium", ...t }) {
|
|
|
17625
17625
|
const eR = {
|
|
17626
17626
|
body: H9,
|
|
17627
17627
|
number: Q9
|
|
17628
|
-
}, Jt =
|
|
17628
|
+
}, Jt = B((e, t) => {
|
|
17629
17629
|
const {
|
|
17630
17630
|
type: r = "body",
|
|
17631
17631
|
color: n,
|
|
@@ -17837,7 +17837,7 @@ const fR = K.forwardRef(({ dateString: e, timeZone: t, onChange: r, ...n }, o) =
|
|
|
17837
17837
|
});
|
|
17838
17838
|
}, [r, t, $, v, y, w, h, b, g]);
|
|
17839
17839
|
const P = Ct(o);
|
|
17840
|
-
return /* @__PURE__ */ ie(n9, { ...n, onOpenChange: (
|
|
17840
|
+
return /* @__PURE__ */ ie(n9, { ...n, onOpenChange: (O) => s(O), children: [
|
|
17841
17841
|
/* @__PURE__ */ ie(iR, { children: [
|
|
17842
17842
|
/* @__PURE__ */ ie(ar, { maxWidth: "155px", overflow: "hidden", children: [
|
|
17843
17843
|
/* @__PURE__ */ x(lR, { children: /* @__PURE__ */ x(Jt, { children: uR(p) }) }),
|
|
@@ -17853,8 +17853,8 @@ const fR = K.forwardRef(({ dateString: e, timeZone: t, onChange: r, ...n }, o) =
|
|
|
17853
17853
|
l.millisecond
|
|
17854
17854
|
),
|
|
17855
17855
|
value: d,
|
|
17856
|
-
onChange: (
|
|
17857
|
-
const { hour: k, minute: _, second: E, millisecond: F } =
|
|
17856
|
+
onChange: (O) => {
|
|
17857
|
+
const { hour: k, minute: _, second: E, millisecond: F } = O;
|
|
17858
17858
|
u({ hour: k, minute: _, second: E, millisecond: F });
|
|
17859
17859
|
}
|
|
17860
17860
|
}
|
|
@@ -17866,8 +17866,8 @@ const fR = K.forwardRef(({ dateString: e, timeZone: t, onChange: r, ...n }, o) =
|
|
|
17866
17866
|
I8,
|
|
17867
17867
|
{
|
|
17868
17868
|
value: p,
|
|
17869
|
-
onChange: (
|
|
17870
|
-
const { day: k, month: _, year: E } =
|
|
17869
|
+
onChange: (O) => {
|
|
17870
|
+
const { day: k, month: _, year: E } = O;
|
|
17871
17871
|
m(new Me(E, _, k));
|
|
17872
17872
|
},
|
|
17873
17873
|
timeZone: t
|
|
@@ -17881,7 +17881,7 @@ const pR = K.forwardRef(({ children: e, ...t }, r) => /* @__PURE__ */ ie(l9, { .
|
|
|
17881
17881
|
/* @__PURE__ */ x(d9, { children: /* @__PURE__ */ x(Gi, {}) })
|
|
17882
17882
|
] }));
|
|
17883
17883
|
pR.displayName = "TimeDateSelectItem";
|
|
17884
|
-
const e_ = "Checkbox", [mR, AB] = je(e_), [hR, bR] = mR(e_), gR = /* @__PURE__ */
|
|
17884
|
+
const e_ = "Checkbox", [mR, AB] = je(e_), [hR, bR] = mR(e_), gR = /* @__PURE__ */ B((e, t) => {
|
|
17885
17885
|
const { __scopeCheckbox: r, name: n, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: c, ...d } = e, [u, p] = J(null), m = _e(
|
|
17886
17886
|
t,
|
|
17887
17887
|
(y) => p(y)
|
|
@@ -17934,7 +17934,7 @@ const e_ = "Checkbox", [mR, AB] = je(e_), [hR, bR] = mR(e_), gR = /* @__PURE__ *
|
|
|
17934
17934
|
transform: "translateX(-100%)"
|
|
17935
17935
|
}
|
|
17936
17936
|
}));
|
|
17937
|
-
}), vR = "CheckboxIndicator", $R = /* @__PURE__ */
|
|
17937
|
+
}), vR = "CheckboxIndicator", $R = /* @__PURE__ */ B((e, t) => {
|
|
17938
17938
|
const { __scopeCheckbox: r, forceMount: n, ...o } = e, a = bR(vR, r);
|
|
17939
17939
|
return /* @__PURE__ */ S(He, {
|
|
17940
17940
|
present: n || Gr(a.state) || a.state === !0
|
|
@@ -18452,21 +18452,21 @@ r_ = {
|
|
|
18452
18452
|
};
|
|
18453
18453
|
function PR(e, t, r) {
|
|
18454
18454
|
let { id: n, decrementAriaLabel: o, incrementAriaLabel: a, isDisabled: i, isReadOnly: s, isRequired: l, minValue: c, maxValue: d, autoFocus: u, validationState: p, label: m, formatOptions: h, onBlur: b = () => {
|
|
18455
|
-
}, onFocus: g, onFocusChange: $, onKeyDown: v, onKeyUp: y, description: w, errorMessage: P, ...
|
|
18455
|
+
}, onFocus: g, onFocusChange: $, onKeyDown: v, onKeyUp: y, description: w, errorMessage: P, ...O } = e, { increment: k, incrementToMax: _, decrement: E, decrementToMin: F, numberValue: D, inputValue: j, commit: M } = t;
|
|
18456
18456
|
const R = pt(/* @__PURE__ */ SR(r_));
|
|
18457
18457
|
let q = ut(n), { focusProps: N } = mu({
|
|
18458
18458
|
onBlur: () => {
|
|
18459
|
-
|
|
18459
|
+
M();
|
|
18460
18460
|
}
|
|
18461
|
-
}),
|
|
18462
|
-
|
|
18463
|
-
]),
|
|
18461
|
+
}), V = pm(h), U = re(() => V.resolvedOptions(), [
|
|
18462
|
+
V
|
|
18463
|
+
]), H = pm({
|
|
18464
18464
|
...h,
|
|
18465
18465
|
currencySign: void 0
|
|
18466
|
-
}), L = re(() => isNaN(D) ? "" :
|
|
18467
|
-
|
|
18466
|
+
}), L = re(() => isNaN(D) ? "" : H.format(D), [
|
|
18467
|
+
H,
|
|
18468
18468
|
D
|
|
18469
|
-
]), { spinButtonProps: A, incrementButtonProps: ee, decrementButtonProps:
|
|
18469
|
+
]), { spinButtonProps: A, incrementButtonProps: ee, decrementButtonProps: G } = uy({
|
|
18470
18470
|
isDisabled: i,
|
|
18471
18471
|
isReadOnly: s,
|
|
18472
18472
|
isRequired: l,
|
|
@@ -18478,9 +18478,9 @@ function PR(e, t, r) {
|
|
|
18478
18478
|
onDecrementToMin: F,
|
|
18479
18479
|
value: D,
|
|
18480
18480
|
textValue: L
|
|
18481
|
-
}), [Y,
|
|
18481
|
+
}), [Y, de] = J(!1), { focusWithinProps: fe } = lo({
|
|
18482
18482
|
isDisabled: i,
|
|
18483
|
-
onFocusWithinChange:
|
|
18483
|
+
onFocusWithinChange: de
|
|
18484
18484
|
}), Q = oe((ct) => {
|
|
18485
18485
|
Math.abs(ct.deltaY) <= Math.abs(ct.deltaX) || (ct.deltaY > 0 ? k() : ct.deltaY < 0 && E());
|
|
18486
18486
|
}, [
|
|
@@ -18491,12 +18491,12 @@ function PR(e, t, r) {
|
|
|
18491
18491
|
onScroll: Q,
|
|
18492
18492
|
isDisabled: i || s || !Y
|
|
18493
18493
|
}, r);
|
|
18494
|
-
let
|
|
18495
|
-
Cg() ? le ? me = "text" :
|
|
18494
|
+
let ue = U.maximumFractionDigits > 0, le = isNaN(t.minValue) || t.minValue < 0, me = "numeric";
|
|
18495
|
+
Cg() ? le ? me = "text" : ue && (me = "decimal") : Ag() && (le ? me = "numeric" : ue && (me = "decimal"));
|
|
18496
18496
|
let ae = (ct) => {
|
|
18497
18497
|
t.validate(ct) && t.setInputValue(ct);
|
|
18498
18498
|
}, be = Kt(e), { labelProps: ye, inputProps: mt, descriptionProps: ht, errorMessageProps: Rt } = DR({
|
|
18499
|
-
...
|
|
18499
|
+
...O,
|
|
18500
18500
|
...be,
|
|
18501
18501
|
label: m,
|
|
18502
18502
|
autoFocus: u,
|
|
@@ -18547,7 +18547,7 @@ function PR(e, t, r) {
|
|
|
18547
18547
|
allowFocusWhenDisabled: !0,
|
|
18548
18548
|
isDisabled: !t.canIncrement,
|
|
18549
18549
|
onPressStart: Bt
|
|
18550
|
-
}), Ta = $e(
|
|
18550
|
+
}), Ta = $e(G, {
|
|
18551
18551
|
"aria-label": o || R.format("decrease", {
|
|
18552
18552
|
fieldLabel: At
|
|
18553
18553
|
}).trim(),
|
|
@@ -18565,7 +18565,7 @@ function PR(e, t, r) {
|
|
|
18565
18565
|
role: "group",
|
|
18566
18566
|
"aria-disabled": i,
|
|
18567
18567
|
"aria-invalid": p === "invalid" ? "true" : void 0,
|
|
18568
|
-
...
|
|
18568
|
+
...fe
|
|
18569
18569
|
},
|
|
18570
18570
|
labelProps: ye,
|
|
18571
18571
|
inputProps: gn,
|
|
@@ -18595,8 +18595,8 @@ function TR(e) {
|
|
|
18595
18595
|
$
|
|
18596
18596
|
]), w = isNaN(n) ? 1 : n;
|
|
18597
18597
|
v.style === "percent" && isNaN(n) && (w = 0.01);
|
|
18598
|
-
let [P,
|
|
18599
|
-
(!Object.is(u, P) || l !== k || o !== E) && (h(y(u)),
|
|
18598
|
+
let [P, O] = J(u), [k, _] = J(l), [E, F] = J(o);
|
|
18599
|
+
(!Object.is(u, P) || l !== k || o !== E) && (h(y(u)), O(u), _(l), F(o));
|
|
18600
18600
|
let D = re(() => b.parse(m), [
|
|
18601
18601
|
b,
|
|
18602
18602
|
m
|
|
@@ -18611,24 +18611,24 @@ function TR(e) {
|
|
|
18611
18611
|
}
|
|
18612
18612
|
let A;
|
|
18613
18613
|
isNaN(n) ? A = mi(D, t, r) : A = Nr(D, t, r, n), A = b.parse(y(A)), p(A), h(y(a === void 0 ? A : u));
|
|
18614
|
-
},
|
|
18615
|
-
let
|
|
18616
|
-
if (isNaN(
|
|
18614
|
+
}, M = (A, ee) => {
|
|
18615
|
+
let G = D;
|
|
18616
|
+
if (isNaN(G)) {
|
|
18617
18617
|
let Y = isNaN(ee) ? 0 : ee;
|
|
18618
18618
|
return Nr(Y, t, r, w);
|
|
18619
18619
|
} else {
|
|
18620
|
-
let Y = Nr(
|
|
18621
|
-
return A === "+" && Y >
|
|
18620
|
+
let Y = Nr(G, t, r, w);
|
|
18621
|
+
return A === "+" && Y > G || A === "-" && Y < G ? Y : Nr(Nl(A, G, w), t, r, w);
|
|
18622
18622
|
}
|
|
18623
18623
|
}, R = () => {
|
|
18624
|
-
let A =
|
|
18624
|
+
let A = M("+", t);
|
|
18625
18625
|
A === u && h(y(A)), p(A);
|
|
18626
18626
|
}, q = () => {
|
|
18627
|
-
let A =
|
|
18627
|
+
let A = M("-", r);
|
|
18628
18628
|
A === u && h(y(A)), p(A);
|
|
18629
18629
|
}, N = () => {
|
|
18630
18630
|
r != null && p(Nr(r, t, r, w));
|
|
18631
|
-
},
|
|
18631
|
+
}, V = () => {
|
|
18632
18632
|
t != null && p(t);
|
|
18633
18633
|
}, U = re(() => !c && !d && (isNaN(D) || isNaN(r) || Nr(D, t, r, w) > D || Nl("+", D, w) <= r), [
|
|
18634
18634
|
c,
|
|
@@ -18637,7 +18637,7 @@ function TR(e) {
|
|
|
18637
18637
|
r,
|
|
18638
18638
|
w,
|
|
18639
18639
|
D
|
|
18640
|
-
]),
|
|
18640
|
+
]), H = re(() => !c && !d && (isNaN(D) || isNaN(t) || Nr(D, t, r, w) < D || Nl("-", D, w) >= t), [
|
|
18641
18641
|
c,
|
|
18642
18642
|
d,
|
|
18643
18643
|
t,
|
|
@@ -18650,9 +18650,9 @@ function TR(e) {
|
|
|
18650
18650
|
increment: R,
|
|
18651
18651
|
incrementToMax: N,
|
|
18652
18652
|
decrement: q,
|
|
18653
|
-
decrementToMin:
|
|
18653
|
+
decrementToMin: V,
|
|
18654
18654
|
canIncrement: U,
|
|
18655
|
-
canDecrement:
|
|
18655
|
+
canDecrement: H,
|
|
18656
18656
|
minValue: t,
|
|
18657
18657
|
maxValue: r,
|
|
18658
18658
|
numberValue: D,
|
|
@@ -18785,7 +18785,7 @@ function Sm(e, t) {
|
|
|
18785
18785
|
return t.indexOf(n);
|
|
18786
18786
|
}
|
|
18787
18787
|
}
|
|
18788
|
-
const z_ =
|
|
18788
|
+
const z_ = B(
|
|
18789
18789
|
(e, t) => {
|
|
18790
18790
|
const {
|
|
18791
18791
|
description: r,
|
|
@@ -18802,101 +18802,108 @@ const z_ = V(
|
|
|
18802
18802
|
max: p,
|
|
18803
18803
|
height: m,
|
|
18804
18804
|
locale: h = "en-US",
|
|
18805
|
-
|
|
18806
|
-
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
|
|
18810
|
-
|
|
18805
|
+
decimalPlaces: b = 3,
|
|
18806
|
+
...g
|
|
18807
|
+
} = e, $ = fr(), v = n ?? $, y = o, w = a, P = Ct(t), O = TR({
|
|
18808
|
+
...g,
|
|
18809
|
+
isDisabled: v,
|
|
18810
|
+
isReadOnly: y,
|
|
18811
|
+
isRequired: w,
|
|
18811
18812
|
minValue: u,
|
|
18812
18813
|
maxValue: p,
|
|
18813
18814
|
placeholder: c,
|
|
18814
|
-
locale: h
|
|
18815
|
+
locale: h,
|
|
18816
|
+
formatOptions: {
|
|
18817
|
+
maximumFractionDigits: b
|
|
18818
|
+
}
|
|
18815
18819
|
}), {
|
|
18816
|
-
labelProps:
|
|
18817
|
-
groupProps:
|
|
18818
|
-
inputProps:
|
|
18819
|
-
incrementButtonProps:
|
|
18820
|
-
decrementButtonProps:
|
|
18821
|
-
descriptionProps:
|
|
18822
|
-
errorMessageProps:
|
|
18820
|
+
labelProps: k,
|
|
18821
|
+
groupProps: _,
|
|
18822
|
+
inputProps: E,
|
|
18823
|
+
incrementButtonProps: F,
|
|
18824
|
+
decrementButtonProps: D,
|
|
18825
|
+
descriptionProps: j,
|
|
18826
|
+
errorMessageProps: M
|
|
18823
18827
|
} = PR(
|
|
18824
18828
|
{
|
|
18825
|
-
...
|
|
18826
|
-
isDisabled:
|
|
18827
|
-
isReadOnly:
|
|
18828
|
-
isRequired:
|
|
18829
|
+
...g,
|
|
18830
|
+
isDisabled: v,
|
|
18831
|
+
isReadOnly: y,
|
|
18832
|
+
isRequired: w,
|
|
18829
18833
|
minValue: u,
|
|
18830
18834
|
maxValue: p,
|
|
18831
18835
|
placeholder: c,
|
|
18832
|
-
label: s
|
|
18836
|
+
label: s,
|
|
18837
|
+
formatOptions: {
|
|
18838
|
+
maximumFractionDigits: b
|
|
18839
|
+
}
|
|
18833
18840
|
},
|
|
18834
|
-
|
|
18835
|
-
|
|
18841
|
+
O,
|
|
18842
|
+
P
|
|
18836
18843
|
);
|
|
18837
|
-
let
|
|
18838
|
-
typeof s == "string" ?
|
|
18839
|
-
const
|
|
18840
|
-
const { formatOptions:
|
|
18841
|
-
if ((
|
|
18842
|
-
const
|
|
18843
|
-
|
|
18844
|
-
|
|
18845
|
-
),
|
|
18846
|
-
let
|
|
18847
|
-
if (
|
|
18848
|
-
const
|
|
18849
|
-
if (
|
|
18850
|
-
const fe =
|
|
18851
|
-
|
|
18844
|
+
let R = null;
|
|
18845
|
+
typeof s == "string" ? R = /* @__PURE__ */ x(tt, { ...k, mb: f.spacing_100, children: s }) : qr(s) && (R = nn(s, { ...k, mb: f.spacing_100 }));
|
|
18846
|
+
const q = (N) => {
|
|
18847
|
+
const { formatOptions: V } = e;
|
|
18848
|
+
if ((V == null ? void 0 : V.style) === "unit") {
|
|
18849
|
+
const H = Intl.NumberFormat(h, V), L = H.formatToParts(1).filter((de) => de.type === "unit"), A = H.formatToParts(3).filter((de) => de.type === "unit"), ee = Sm(
|
|
18850
|
+
L,
|
|
18851
|
+
O.inputValue
|
|
18852
|
+
), G = Sm(A, O.inputValue);
|
|
18853
|
+
let Y;
|
|
18854
|
+
if (ee && ee > -1 ? Y = ee : G && G > -1 && (Y = G), Y) {
|
|
18855
|
+
const de = N.target.selectionStart;
|
|
18856
|
+
if (de && de > Y) {
|
|
18857
|
+
const fe = Y - 1;
|
|
18858
|
+
N.target.setSelectionRange(fe, fe);
|
|
18852
18859
|
}
|
|
18853
18860
|
}
|
|
18854
18861
|
}
|
|
18855
18862
|
};
|
|
18856
18863
|
return /* @__PURE__ */ ie(mn, { children: [
|
|
18857
|
-
|
|
18864
|
+
R,
|
|
18858
18865
|
d ? /* @__PURE__ */ ie(
|
|
18859
18866
|
kR,
|
|
18860
18867
|
{
|
|
18861
|
-
...
|
|
18868
|
+
..._,
|
|
18862
18869
|
height: typeof m == "string" ? m : void 0,
|
|
18863
18870
|
children: [
|
|
18864
18871
|
/* @__PURE__ */ x(
|
|
18865
18872
|
ER,
|
|
18866
18873
|
{
|
|
18867
18874
|
height: m,
|
|
18868
|
-
...
|
|
18875
|
+
...E,
|
|
18869
18876
|
paddingSize: i,
|
|
18870
|
-
ref:
|
|
18871
|
-
onClick:
|
|
18872
|
-
onFocus:
|
|
18877
|
+
ref: P,
|
|
18878
|
+
onClick: q,
|
|
18879
|
+
onFocus: q,
|
|
18873
18880
|
required: a
|
|
18874
18881
|
}
|
|
18875
18882
|
),
|
|
18876
|
-
/* @__PURE__ */ x(CR, { ...
|
|
18877
|
-
/* @__PURE__ */ x(RR, { ...
|
|
18883
|
+
/* @__PURE__ */ x(CR, { ...F, children: /* @__PURE__ */ x(zh, {}) }),
|
|
18884
|
+
/* @__PURE__ */ x(RR, { ...D, children: /* @__PURE__ */ x(Kh, {}) })
|
|
18878
18885
|
]
|
|
18879
18886
|
}
|
|
18880
18887
|
) : /* @__PURE__ */ x(
|
|
18881
18888
|
va,
|
|
18882
18889
|
{
|
|
18883
18890
|
height: m,
|
|
18884
|
-
ref:
|
|
18885
|
-
...
|
|
18891
|
+
ref: P,
|
|
18892
|
+
...E,
|
|
18886
18893
|
paddingSize: i,
|
|
18887
18894
|
required: a
|
|
18888
18895
|
}
|
|
18889
18896
|
),
|
|
18890
|
-
l ? /* @__PURE__ */ ie(Ns, { ...
|
|
18897
|
+
l ? /* @__PURE__ */ ie(Ns, { ...M, children: [
|
|
18891
18898
|
/* @__PURE__ */ x(Yi, {}),
|
|
18892
18899
|
l
|
|
18893
18900
|
] }) : null,
|
|
18894
|
-
r ? /* @__PURE__ */ x(Fs, { ...
|
|
18901
|
+
r ? /* @__PURE__ */ x(Fs, { ...j, children: r }) : null
|
|
18895
18902
|
] });
|
|
18896
18903
|
}
|
|
18897
18904
|
);
|
|
18898
18905
|
z_.displayName = "NumberInput";
|
|
18899
|
-
const K_ =
|
|
18906
|
+
const K_ = B((e, t) => {
|
|
18900
18907
|
const {
|
|
18901
18908
|
errorMessage: r,
|
|
18902
18909
|
description: n,
|
|
@@ -18948,7 +18955,7 @@ const Fl = C(Ie)`
|
|
|
18948
18955
|
&:focus-within {
|
|
18949
18956
|
position: relative;
|
|
18950
18957
|
}
|
|
18951
|
-
`, V_ =
|
|
18958
|
+
`, V_ = B(function(t, r) {
|
|
18952
18959
|
const { tabIndex: n, left: o, right: a, children: i, ...s } = t, c = {
|
|
18953
18960
|
...Mt(s, Ar.propNames ?? [])
|
|
18954
18961
|
};
|
|
@@ -18959,7 +18966,7 @@ const Fl = C(Ie)`
|
|
|
18959
18966
|
] });
|
|
18960
18967
|
});
|
|
18961
18968
|
V_.displayName = "Connect";
|
|
18962
|
-
const Bu = V_, B_ =
|
|
18969
|
+
const Bu = V_, B_ = B(
|
|
18963
18970
|
(e, t) => {
|
|
18964
18971
|
const {
|
|
18965
18972
|
focus: r,
|
|
@@ -18978,7 +18985,7 @@ const Bu = V_, B_ = V(
|
|
|
18978
18985
|
placeholder: b = "Enter text...",
|
|
18979
18986
|
className: g,
|
|
18980
18987
|
...$
|
|
18981
|
-
} = e, v = Ct(t), y = fr(), w = c ?? y, { labelProps: P, descriptionProps:
|
|
18988
|
+
} = e, v = Ct(t), y = fr(), w = c ?? y, { labelProps: P, descriptionProps: O, inputProps: k, errorMessageProps: _ } = $a(
|
|
18982
18989
|
{
|
|
18983
18990
|
...$,
|
|
18984
18991
|
isDisabled: w,
|
|
@@ -19014,7 +19021,7 @@ const Bu = V_, B_ = V(
|
|
|
19014
19021
|
/* @__PURE__ */ x(Yi, {}),
|
|
19015
19022
|
s
|
|
19016
19023
|
] }) : null,
|
|
19017
|
-
l ? /* @__PURE__ */ x(Fs, { ...
|
|
19024
|
+
l ? /* @__PURE__ */ x(Fs, { ...O, children: l }) : null
|
|
19018
19025
|
] });
|
|
19019
19026
|
}
|
|
19020
19027
|
);
|
|
@@ -19064,7 +19071,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19064
19071
|
window.clearTimeout(m.current), v(!1);
|
|
19065
19072
|
}, [
|
|
19066
19073
|
v
|
|
19067
|
-
]),
|
|
19074
|
+
]), O = oe(() => {
|
|
19068
19075
|
window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
19069
19076
|
g.current = !0, v(!0);
|
|
19070
19077
|
}, b);
|
|
@@ -19080,10 +19087,10 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19080
19087
|
trigger: d,
|
|
19081
19088
|
onTriggerChange: u,
|
|
19082
19089
|
onTriggerEnter: oe(() => {
|
|
19083
|
-
l.isOpenDelayed ?
|
|
19090
|
+
l.isOpenDelayed ? O() : w();
|
|
19084
19091
|
}, [
|
|
19085
19092
|
l.isOpenDelayed,
|
|
19086
|
-
|
|
19093
|
+
O,
|
|
19087
19094
|
w
|
|
19088
19095
|
]),
|
|
19089
19096
|
onTriggerLeave: oe(() => {
|
|
@@ -19096,7 +19103,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19096
19103
|
onClose: P,
|
|
19097
19104
|
disableHoverableContent: h
|
|
19098
19105
|
}, r));
|
|
19099
|
-
}, Pm = "TooltipTrigger", LR = /* @__PURE__ */
|
|
19106
|
+
}, Pm = "TooltipTrigger", LR = /* @__PURE__ */ B((e, t) => {
|
|
19100
19107
|
const { __scopeTooltip: r, ...n } = e, o = ya(Pm, r), a = ju(Pm, r), i = zs(r), s = z(null), l = _e(t, s, o.onTriggerChange), c = z(!1), d = z(!1), u = oe(
|
|
19101
19108
|
() => c.current = !1,
|
|
19102
19109
|
[]
|
|
@@ -19142,7 +19149,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19142
19149
|
asChild: !0,
|
|
19143
19150
|
container: o
|
|
19144
19151
|
}, n)));
|
|
19145
|
-
}, ta = "TooltipContent", BR = /* @__PURE__ */
|
|
19152
|
+
}, ta = "TooltipContent", BR = /* @__PURE__ */ B((e, t) => {
|
|
19146
19153
|
const r = KR(ta, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = e, i = ya(ta, e.__scopeTooltip);
|
|
19147
19154
|
return /* @__PURE__ */ S(He, {
|
|
19148
19155
|
present: n || i.open
|
|
@@ -19155,7 +19162,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19155
19162
|
}, a, {
|
|
19156
19163
|
ref: t
|
|
19157
19164
|
})));
|
|
19158
|
-
}), jR = /* @__PURE__ */
|
|
19165
|
+
}), jR = /* @__PURE__ */ B((e, t) => {
|
|
19159
19166
|
const r = ya(ta, e.__scopeTooltip), n = ju(ta, e.__scopeTooltip), o = z(null), a = _e(t, o), [i, s] = J(null), { trigger: l, onClose: c } = r, d = o.current, { onPointerInTransitChange: u } = n, p = oe(() => {
|
|
19160
19167
|
s(null), u(!1);
|
|
19161
19168
|
}, [
|
|
@@ -19208,7 +19215,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19208
19215
|
}));
|
|
19209
19216
|
}), [UR, WR] = Ls(Uu, {
|
|
19210
19217
|
isInside: !1
|
|
19211
|
-
}), U_ = /* @__PURE__ */
|
|
19218
|
+
}), U_ = /* @__PURE__ */ B((e, t) => {
|
|
19212
19219
|
const { __scopeTooltip: r, children: n, "aria-label": o, onEscapeKeyDown: a, onPointerDownOutside: i, ...s } = e, l = ya(ta, r), c = zs(r), { onClose: d } = l;
|
|
19213
19220
|
return X(() => (document.addEventListener(od, d), () => document.removeEventListener(od, d)), [
|
|
19214
19221
|
d
|
|
@@ -19253,7 +19260,7 @@ const [Ls, IB] = je("Tooltip", [
|
|
|
19253
19260
|
id: l.contentId,
|
|
19254
19261
|
role: "tooltip"
|
|
19255
19262
|
}, o || n))));
|
|
19256
|
-
}), HR = "TooltipArrow", GR = /* @__PURE__ */
|
|
19263
|
+
}), HR = "TooltipArrow", GR = /* @__PURE__ */ B((e, t) => {
|
|
19257
19264
|
const { __scopeTooltip: r, ...n } = e, o = zs(r);
|
|
19258
19265
|
return WR(HR, r).isInside ? null : /* @__PURE__ */ S(yu, I({}, o, n, {
|
|
19259
19266
|
ref: t
|
|
@@ -19459,7 +19466,7 @@ const pA = C(rA)`
|
|
|
19459
19466
|
background-color: unset;
|
|
19460
19467
|
padding: 0;
|
|
19461
19468
|
line-height: 1;
|
|
19462
|
-
`, W_ =
|
|
19469
|
+
`, W_ = B((e, t) => {
|
|
19463
19470
|
const { children: r, asChild: n, ...o } = e;
|
|
19464
19471
|
return /* @__PURE__ */ x(
|
|
19465
19472
|
pA,
|
|
@@ -19542,7 +19549,7 @@ function OB({
|
|
|
19542
19549
|
] }) : null
|
|
19543
19550
|
] }) });
|
|
19544
19551
|
}
|
|
19545
|
-
const vA =
|
|
19552
|
+
const vA = B((e, t) => {
|
|
19546
19553
|
const { label: r, tooltipContent: n, tooltipIcon: o, ...a } = e;
|
|
19547
19554
|
return /* @__PURE__ */ x(
|
|
19548
19555
|
B_,
|
|
@@ -19558,7 +19565,7 @@ const vA = V((e, t) => {
|
|
|
19558
19565
|
);
|
|
19559
19566
|
});
|
|
19560
19567
|
vA.displayName = "TextFormControl";
|
|
19561
|
-
const $A =
|
|
19568
|
+
const $A = B((e, t) => {
|
|
19562
19569
|
const { label: r, tooltipContent: n, tooltipIcon: o, ...a } = e;
|
|
19563
19570
|
return /* @__PURE__ */ x(
|
|
19564
19571
|
K_,
|
|
@@ -19573,7 +19580,7 @@ const $A = V((e, t) => {
|
|
|
19573
19580
|
);
|
|
19574
19581
|
});
|
|
19575
19582
|
$A.displayName = "TextAreaFormControl";
|
|
19576
|
-
const yA =
|
|
19583
|
+
const yA = B((e, t) => {
|
|
19577
19584
|
const { label: r, tooltipContent: n, tooltipIcon: o, ...a } = e;
|
|
19578
19585
|
return /* @__PURE__ */ x(
|
|
19579
19586
|
z_,
|
|
@@ -19683,7 +19690,7 @@ const _A = () => /* @__PURE__ */ x(
|
|
|
19683
19690
|
& > svg {
|
|
19684
19691
|
line-height: 1;
|
|
19685
19692
|
}
|
|
19686
|
-
`, Gu =
|
|
19693
|
+
`, Gu = B(
|
|
19687
19694
|
(e, t) => {
|
|
19688
19695
|
const { disabled: r, checked: n, invalid: o, onCheckedChange: a, ...i } = e, s = H_(r);
|
|
19689
19696
|
return /* @__PURE__ */ ie(
|
|
@@ -19807,18 +19814,18 @@ function Cm(e, t, r, n, o, a) {
|
|
|
19807
19814
|
return i === s ? Math.max(0, r[s] - e[s] - e.scroll[s] + t[s] - n[s] - n[zi[s]] - o) : Math.max(0, e[l] + e[s] + e.scroll[s] - t[s] - r[s] - r[l] - n[s] - n[zi[s]] - o);
|
|
19808
19815
|
}
|
|
19809
19816
|
function AA(e, t, r, n, o, a, i, s, l, c, d, u, p, m, h) {
|
|
19810
|
-
let b = Em(e), { size: g, crossAxis: $, crossSize: v, placement: y, crossPlacement: w } = b, P = zl(t, s, r, b, c, d, l, u, m, h),
|
|
19817
|
+
let b = Em(e), { size: g, crossAxis: $, crossSize: v, placement: y, crossPlacement: w } = b, P = zl(t, s, r, b, c, d, l, u, m, h), O = c, k = Cm(s, l, t, o, a + c, b);
|
|
19811
19818
|
if (i && n[g] > k) {
|
|
19812
|
-
let
|
|
19813
|
-
Cm(s, l, t, o, a + c,
|
|
19819
|
+
let V = Em(`${zi[y]} ${w}`), U = zl(t, s, r, V, c, d, l, u, m, h);
|
|
19820
|
+
Cm(s, l, t, o, a + c, V) > k && (b = V, P = U, O = c);
|
|
19814
19821
|
}
|
|
19815
19822
|
let _ = km($, P[$], r[v], s, a);
|
|
19816
19823
|
P[$] += _;
|
|
19817
19824
|
let E = RA(P, s, l, t, o, a);
|
|
19818
|
-
p && p < E && (E = p), r.height = Math.min(r.height, E), P = zl(t, s, r, b,
|
|
19825
|
+
p && p < E && (E = p), r.height = Math.min(r.height, E), P = zl(t, s, r, b, O, d, l, u, m, h), _ = km($, P[$], r[v], s, a), P[$] += _;
|
|
19819
19826
|
let F = {}, D = t[$] + 0.5 * t[v] - r[$];
|
|
19820
|
-
const j = m / 2 + h,
|
|
19821
|
-
return F[$] = mi(N, j,
|
|
19827
|
+
const j = m / 2 + h, M = r[v] - m / 2 - h, R = t[$] - r[$] + m / 2, q = t[$] + t[v] - r[$] - m / 2, N = mi(D, R, q);
|
|
19828
|
+
return F[$] = mi(N, j, M), {
|
|
19822
19829
|
position: P,
|
|
19823
19830
|
maxHeight: E,
|
|
19824
19831
|
arrowOffsetLeft: F.left,
|
|
@@ -19836,8 +19843,8 @@ function IA(e) {
|
|
|
19836
19843
|
}
|
|
19837
19844
|
let v = Yn(n), y = CA(n);
|
|
19838
19845
|
v.width += y.left + y.right, v.height += y.top + y.bottom;
|
|
19839
|
-
let w = EA(o), P = kA(s),
|
|
19840
|
-
return AA(t, $, v, w, y, a, i, P,
|
|
19846
|
+
let w = EA(o), P = kA(s), O = s.tagName === "BODY" ? Yn(m) : Rm(m, s);
|
|
19847
|
+
return AA(t, $, v, w, y, a, i, P, O, l, c, g, d, u, p);
|
|
19841
19848
|
}
|
|
19842
19849
|
function Yn(e) {
|
|
19843
19850
|
let { top: t, left: r, width: n, height: o } = e.getBoundingClientRect(), { scrollTop: a, scrollLeft: i, clientTop: s, clientLeft: l } = document.documentElement;
|
|
@@ -19960,7 +19967,7 @@ function NA(e) {
|
|
|
19960
19967
|
}, [
|
|
19961
19968
|
w
|
|
19962
19969
|
]);
|
|
19963
|
-
let
|
|
19970
|
+
let O = oe(() => {
|
|
19964
19971
|
P.current || h();
|
|
19965
19972
|
}, [
|
|
19966
19973
|
h,
|
|
@@ -19969,7 +19976,7 @@ function NA(e) {
|
|
|
19969
19976
|
return MA({
|
|
19970
19977
|
triggerRef: n,
|
|
19971
19978
|
isOpen: m,
|
|
19972
|
-
onClose: h &&
|
|
19979
|
+
onClose: h && O
|
|
19973
19980
|
}), {
|
|
19974
19981
|
overlayProps: {
|
|
19975
19982
|
style: {
|
|
@@ -20487,8 +20494,8 @@ function R1(e) {
|
|
|
20487
20494
|
let { selectionManager: t, keyboardDelegate: r, ref: n, autoFocus: o = !1, shouldFocusWrap: a = !1, disallowEmptySelection: i = !1, disallowSelectAll: s = !1, selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: c = !1, shouldUseVirtualFocus: d, allowsTabNavigation: u = !1, isVirtualized: p, scrollRef: m = n } = e, { direction: h } = Ze(), b = (_) => {
|
|
20488
20495
|
if (_.altKey && _.key === "Tab" && _.preventDefault(), !n.current.contains(_.target))
|
|
20489
20496
|
return;
|
|
20490
|
-
const E = (U,
|
|
20491
|
-
U != null && (t.setFocusedKey(U,
|
|
20497
|
+
const E = (U, H) => {
|
|
20498
|
+
U != null && (t.setFocusedKey(U, H), _.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(U) : l && !C1(_) && t.replaceSelection(U));
|
|
20492
20499
|
};
|
|
20493
20500
|
switch (_.key) {
|
|
20494
20501
|
case "ArrowDown":
|
|
@@ -20501,10 +20508,10 @@ function R1(e) {
|
|
|
20501
20508
|
break;
|
|
20502
20509
|
case "ArrowUp":
|
|
20503
20510
|
if (r.getKeyAbove) {
|
|
20504
|
-
var j,
|
|
20511
|
+
var j, M;
|
|
20505
20512
|
_.preventDefault();
|
|
20506
20513
|
let U = t.focusedKey != null ? r.getKeyAbove(t.focusedKey) : (j = r.getLastKey) === null || j === void 0 ? void 0 : j.call(r);
|
|
20507
|
-
U == null && a && (U = (
|
|
20514
|
+
U == null && a && (U = (M = r.getLastKey) === null || M === void 0 ? void 0 : M.call(r, t.focusedKey)), E(U);
|
|
20508
20515
|
}
|
|
20509
20516
|
break;
|
|
20510
20517
|
case "ArrowLeft":
|
|
@@ -20517,10 +20524,10 @@ function R1(e) {
|
|
|
20517
20524
|
break;
|
|
20518
20525
|
case "ArrowRight":
|
|
20519
20526
|
if (r.getKeyRightOf) {
|
|
20520
|
-
var N,
|
|
20527
|
+
var N, V;
|
|
20521
20528
|
_.preventDefault();
|
|
20522
20529
|
let U = r.getKeyRightOf(t.focusedKey);
|
|
20523
|
-
U == null && a && (U = h === "rtl" ? (N = r.getLastKey) === null || N === void 0 ? void 0 : N.call(r, t.focusedKey) : (
|
|
20530
|
+
U == null && a && (U = h === "rtl" ? (N = r.getLastKey) === null || N === void 0 ? void 0 : N.call(r, t.focusedKey) : (V = r.getFirstKey) === null || V === void 0 ? void 0 : V.call(r, t.focusedKey)), E(U, h === "rtl" ? "last" : "first");
|
|
20524
20531
|
}
|
|
20525
20532
|
break;
|
|
20526
20533
|
case "Home":
|
|
@@ -20564,11 +20571,11 @@ function R1(e) {
|
|
|
20564
20571
|
else {
|
|
20565
20572
|
let U = st(n.current, {
|
|
20566
20573
|
tabbable: !0
|
|
20567
|
-
}),
|
|
20574
|
+
}), H, L;
|
|
20568
20575
|
do
|
|
20569
|
-
L = U.lastChild(), L && (
|
|
20576
|
+
L = U.lastChild(), L && (H = L);
|
|
20570
20577
|
while (L);
|
|
20571
|
-
|
|
20578
|
+
H && !H.contains(document.activeElement) && qt(H);
|
|
20572
20579
|
}
|
|
20573
20580
|
break;
|
|
20574
20581
|
}
|
|
@@ -20590,8 +20597,8 @@ function R1(e) {
|
|
|
20590
20597
|
}
|
|
20591
20598
|
if (_.currentTarget.contains(_.target)) {
|
|
20592
20599
|
if (t.setFocused(!0), t.focusedKey == null) {
|
|
20593
|
-
let D = (
|
|
20594
|
-
|
|
20600
|
+
let D = (M) => {
|
|
20601
|
+
M != null && (t.setFocusedKey(M), l && t.replaceSelection(M));
|
|
20595
20602
|
}, j = _.relatedTarget;
|
|
20596
20603
|
var E, F;
|
|
20597
20604
|
j && _.currentTarget.compareDocumentPosition(j) & Node.DOCUMENT_POSITION_FOLLOWING ? D((E = t.lastSelectedKey) !== null && E !== void 0 ? E : r.getLastKey()) : D((F = t.firstSelectedKey) !== null && F !== void 0 ? F : r.getFirstKey());
|
|
@@ -20641,11 +20648,11 @@ function R1(e) {
|
|
|
20641
20648
|
onMouseDown(_) {
|
|
20642
20649
|
m.current === _.target && _.preventDefault();
|
|
20643
20650
|
}
|
|
20644
|
-
}, { typeSelectProps:
|
|
20651
|
+
}, { typeSelectProps: O } = Yu({
|
|
20645
20652
|
keyboardDelegate: r,
|
|
20646
20653
|
selectionManager: t
|
|
20647
20654
|
});
|
|
20648
|
-
c || (P = $e(
|
|
20655
|
+
c || (P = $e(O, P));
|
|
20649
20656
|
let k;
|
|
20650
20657
|
return d || (k = t.focusedKey == null ? 0 : -1), {
|
|
20651
20658
|
collectionProps: {
|
|
@@ -20700,7 +20707,7 @@ function qA(e) {
|
|
|
20700
20707
|
}, P.onPress = (D) => {
|
|
20701
20708
|
(D.pointerType === "touch" || D.pointerType === "pen" || D.pointerType === "virtual" || D.pointerType === "keyboard" && g && Fm() || D.pointerType === "mouse" && w.current) && (g ? l() : d(D));
|
|
20702
20709
|
}), u["data-key"] = r, P.preventFocusOnPress = a;
|
|
20703
|
-
let { pressProps:
|
|
20710
|
+
let { pressProps: O, isPressed: k } = cn(P), _ = b ? (D) => {
|
|
20704
20711
|
$.current === "mouse" && (D.stopPropagation(), D.preventDefault(), l());
|
|
20705
20712
|
} : void 0, { longPressProps: E } = Kg({
|
|
20706
20713
|
isDisabled: !v,
|
|
@@ -20709,7 +20716,7 @@ function qA(e) {
|
|
|
20709
20716
|
}
|
|
20710
20717
|
});
|
|
20711
20718
|
return {
|
|
20712
|
-
itemProps: $e(u, p || h ?
|
|
20719
|
+
itemProps: $e(u, p || h ? O : {}, v ? E : {}, {
|
|
20713
20720
|
onDoubleClick: _,
|
|
20714
20721
|
onDragStartCapture: (D) => {
|
|
20715
20722
|
$.current === "touch" && y.current && D.preventDefault();
|
|
@@ -21233,7 +21240,7 @@ function L1(e, t, r) {
|
|
|
21233
21240
|
let D = Number((w = t.collection.getItem(n)) === null || w === void 0 ? void 0 : w.index);
|
|
21234
21241
|
y["aria-posinset"] = Number.isNaN(D) ? void 0 : D + 1, y["aria-setsize"] = M1(t.collection);
|
|
21235
21242
|
}
|
|
21236
|
-
let { itemProps: P, isPressed:
|
|
21243
|
+
let { itemProps: P, isPressed: O, isFocused: k, hasAction: _, allowsSelection: E } = qA({
|
|
21237
21244
|
selectionManager: t.selectionManager,
|
|
21238
21245
|
key: n,
|
|
21239
21246
|
ref: r,
|
|
@@ -21268,7 +21275,7 @@ function L1(e, t, r) {
|
|
|
21268
21275
|
isFocusVisible: k && $i(),
|
|
21269
21276
|
isSelected: l,
|
|
21270
21277
|
isDisabled: i,
|
|
21271
|
-
isPressed:
|
|
21278
|
+
isPressed: O,
|
|
21272
21279
|
allowsSelection: E,
|
|
21273
21280
|
hasAction: _
|
|
21274
21281
|
};
|
|
@@ -22238,14 +22245,14 @@ function iI(e, t) {
|
|
|
22238
22245
|
ref: o,
|
|
22239
22246
|
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
22240
22247
|
isVirtualized: !0
|
|
22241
|
-
}), b = (
|
|
22242
|
-
switch (
|
|
22248
|
+
}), b = (G) => {
|
|
22249
|
+
switch (G.key) {
|
|
22243
22250
|
case "Enter":
|
|
22244
22251
|
case "Tab":
|
|
22245
|
-
t.isOpen &&
|
|
22252
|
+
t.isOpen && G.key === "Enter" && G.preventDefault(), t.commit();
|
|
22246
22253
|
break;
|
|
22247
22254
|
case "Escape":
|
|
22248
|
-
(t.selectedKey !== null || t.inputValue === "" || e.allowsCustomValue) &&
|
|
22255
|
+
(t.selectedKey !== null || t.inputValue === "" || e.allowsCustomValue) && G.continuePropagation(), t.revert();
|
|
22249
22256
|
break;
|
|
22250
22257
|
case "ArrowDown":
|
|
22251
22258
|
t.open("first", "manual");
|
|
@@ -22258,11 +22265,11 @@ function iI(e, t) {
|
|
|
22258
22265
|
t.selectionManager.setFocusedKey(null);
|
|
22259
22266
|
break;
|
|
22260
22267
|
}
|
|
22261
|
-
}, g = (
|
|
22268
|
+
}, g = (G) => {
|
|
22262
22269
|
var Y;
|
|
22263
|
-
|
|
22264
|
-
}, $ = (
|
|
22265
|
-
t.isFocused || (e.onFocus && e.onFocus(
|
|
22270
|
+
G.relatedTarget === (r == null ? void 0 : r.current) || !((Y = n.current) === null || Y === void 0) && Y.contains(G.relatedTarget) || (e.onBlur && e.onBlur(G), t.setFocused(!1));
|
|
22271
|
+
}, $ = (G) => {
|
|
22272
|
+
t.isFocused || (e.onFocus && e.onFocus(G), t.setFocused(!0));
|
|
22266
22273
|
}, { labelProps: v, inputProps: y, descriptionProps: w, errorMessageProps: P } = $a({
|
|
22267
22274
|
...e,
|
|
22268
22275
|
onChange: t.setInputValue,
|
|
@@ -22271,10 +22278,10 @@ function iI(e, t) {
|
|
|
22271
22278
|
value: t.inputValue,
|
|
22272
22279
|
onFocus: $,
|
|
22273
22280
|
autoComplete: "off"
|
|
22274
|
-
}, o),
|
|
22275
|
-
|
|
22276
|
-
}, k = (
|
|
22277
|
-
|
|
22281
|
+
}, o), O = (G) => {
|
|
22282
|
+
G.pointerType === "touch" && (o.current.focus(), t.toggle(null, "manual"));
|
|
22283
|
+
}, k = (G) => {
|
|
22284
|
+
G.pointerType !== "touch" && (o.current.focus(), t.toggle(G.pointerType === "keyboard" || G.pointerType === "virtual" ? "first" : null, "manual"));
|
|
22278
22285
|
}, _ = Xr({
|
|
22279
22286
|
id: u.id,
|
|
22280
22287
|
"aria-label": d.format("buttonLabel"),
|
|
@@ -22283,51 +22290,51 @@ function iI(e, t) {
|
|
|
22283
22290
|
id: p.id,
|
|
22284
22291
|
"aria-label": d.format("listboxLabel"),
|
|
22285
22292
|
"aria-labelledby": e["aria-labelledby"] || v.id
|
|
22286
|
-
}), F = z(0), D = (
|
|
22293
|
+
}), F = z(0), D = (G) => {
|
|
22287
22294
|
if (c || l)
|
|
22288
22295
|
return;
|
|
22289
|
-
if (
|
|
22290
|
-
|
|
22296
|
+
if (G.timeStamp - F.current < 500) {
|
|
22297
|
+
G.preventDefault(), o.current.focus();
|
|
22291
22298
|
return;
|
|
22292
22299
|
}
|
|
22293
|
-
let Y =
|
|
22294
|
-
|
|
22300
|
+
let Y = G.target.getBoundingClientRect(), de = G.changedTouches[0], fe = Math.ceil(Y.left + 0.5 * Y.width), Q = Math.ceil(Y.top + 0.5 * Y.height);
|
|
22301
|
+
de.clientX === fe && de.clientY === Q && (G.preventDefault(), o.current.focus(), t.toggle(null, "manual"), F.current = G.timeStamp);
|
|
22295
22302
|
}, j = t.selectionManager.focusedKey != null && t.isOpen ? t.collection.getItem(t.selectionManager.focusedKey) : void 0;
|
|
22296
|
-
var
|
|
22297
|
-
let R = (
|
|
22303
|
+
var M;
|
|
22304
|
+
let R = (M = j == null ? void 0 : j.parentKey) !== null && M !== void 0 ? M : null;
|
|
22298
22305
|
var q;
|
|
22299
|
-
let N = (q = t.selectionManager.focusedKey) !== null && q !== void 0 ? q : null,
|
|
22306
|
+
let N = (q = t.selectionManager.focusedKey) !== null && q !== void 0 ? q : null, V = z(R), U = z(N);
|
|
22300
22307
|
X(() => {
|
|
22301
22308
|
if (ni() && j != null && N !== U.current) {
|
|
22302
|
-
let
|
|
22303
|
-
isGroupChange: Y && R !==
|
|
22304
|
-
groupTitle:
|
|
22309
|
+
let G = t.selectionManager.isSelected(N), Y = R != null ? t.collection.getItem(R) : null, de = (Y == null ? void 0 : Y["aria-label"]) || (typeof (Y == null ? void 0 : Y.rendered) == "string" ? Y.rendered : "") || "", fe = d.format("focusAnnouncement", {
|
|
22310
|
+
isGroupChange: Y && R !== V.current,
|
|
22311
|
+
groupTitle: de,
|
|
22305
22312
|
groupCount: Y ? [
|
|
22306
22313
|
...Vs(Y, t.collection)
|
|
22307
22314
|
].length : 0,
|
|
22308
22315
|
optionText: j["aria-label"] || j.textValue || "",
|
|
22309
|
-
isSelected:
|
|
22316
|
+
isSelected: G
|
|
22310
22317
|
});
|
|
22311
|
-
Hn(
|
|
22318
|
+
Hn(fe);
|
|
22312
22319
|
}
|
|
22313
|
-
|
|
22320
|
+
V.current = R, U.current = N;
|
|
22314
22321
|
});
|
|
22315
|
-
let
|
|
22322
|
+
let H = M1(t.collection), L = z(H), A = z(t.isOpen);
|
|
22316
22323
|
X(() => {
|
|
22317
|
-
let
|
|
22318
|
-
if (t.isOpen && (
|
|
22324
|
+
let G = t.isOpen !== A.current && (t.selectionManager.focusedKey == null || ni());
|
|
22325
|
+
if (t.isOpen && (G || H !== L.current)) {
|
|
22319
22326
|
let Y = d.format("countAnnouncement", {
|
|
22320
|
-
optionCount:
|
|
22327
|
+
optionCount: H
|
|
22321
22328
|
});
|
|
22322
22329
|
Hn(Y);
|
|
22323
22330
|
}
|
|
22324
|
-
L.current =
|
|
22331
|
+
L.current = H, A.current = t.isOpen;
|
|
22325
22332
|
});
|
|
22326
22333
|
let ee = z(t.selectedKey);
|
|
22327
22334
|
return X(() => {
|
|
22328
22335
|
if (ni() && t.isFocused && t.selectedItem && t.selectedKey !== ee.current) {
|
|
22329
|
-
let
|
|
22330
|
-
optionText:
|
|
22336
|
+
let G = t.selectedItem["aria-label"] || t.selectedItem.textValue || "", Y = d.format("selectedAnnouncement", {
|
|
22337
|
+
optionText: G
|
|
22331
22338
|
});
|
|
22332
22339
|
Hn(Y);
|
|
22333
22340
|
}
|
|
@@ -22348,7 +22355,7 @@ function iI(e, t) {
|
|
|
22348
22355
|
...u,
|
|
22349
22356
|
..._,
|
|
22350
22357
|
excludeFromTabOrder: !0,
|
|
22351
|
-
onPress:
|
|
22358
|
+
onPress: O,
|
|
22352
22359
|
onPressStart: k,
|
|
22353
22360
|
isDisabled: c || l
|
|
22354
22361
|
},
|
|
@@ -22849,7 +22856,7 @@ function dI(e) {
|
|
|
22849
22856
|
...e,
|
|
22850
22857
|
onSelectionChange: h,
|
|
22851
22858
|
items: (b = e.items) !== null && b !== void 0 ? b : e.defaultItems
|
|
22852
|
-
}),
|
|
22859
|
+
}), O = g, k = re(() => (
|
|
22853
22860
|
// No default filter if items are controlled.
|
|
22854
22861
|
e.items != null || !r ? g : uI(g, p, r)
|
|
22855
22862
|
), [
|
|
@@ -22864,12 +22871,12 @@ function dI(e) {
|
|
|
22864
22871
|
},
|
|
22865
22872
|
isOpen: void 0,
|
|
22866
22873
|
defaultOpen: void 0
|
|
22867
|
-
}),
|
|
22874
|
+
}), M = (ae, be) => {
|
|
22868
22875
|
let ye = be === "manual" || be === "focus" && n === "focus";
|
|
22869
|
-
(o || k.size > 0 || ye &&
|
|
22876
|
+
(o || k.size > 0 || ye && O.size > 0 || e.items) && (ye && !j.isOpen && e.items === void 0 && l(!0), F.current = be, j.open(ae));
|
|
22870
22877
|
}, R = (ae, be) => {
|
|
22871
22878
|
let ye = be === "manual" || be === "focus" && n === "focus";
|
|
22872
|
-
!(o || k.size > 0 || ye &&
|
|
22879
|
+
!(o || k.size > 0 || ye && O.size > 0 || e.items) && !j.isOpen || (ye && !j.isOpen && e.items === void 0 && l(!0), j.isOpen || (F.current = be), q(ae));
|
|
22873
22880
|
}, q = oe((ae) => {
|
|
22874
22881
|
j.isOpen && E(k), j.toggle(ae);
|
|
22875
22882
|
}, [
|
|
@@ -22880,25 +22887,25 @@ function dI(e) {
|
|
|
22880
22887
|
}, [
|
|
22881
22888
|
j,
|
|
22882
22889
|
k
|
|
22883
|
-
]),
|
|
22890
|
+
]), V = z(p), U = () => {
|
|
22884
22891
|
var ae, be;
|
|
22885
22892
|
let ye = (be = (ae = g.getItem(v)) === null || ae === void 0 ? void 0 : ae.textValue) !== null && be !== void 0 ? be : "";
|
|
22886
|
-
|
|
22887
|
-
},
|
|
22893
|
+
V.current = ye, m(ye);
|
|
22894
|
+
}, H = z(!0);
|
|
22888
22895
|
var L, A;
|
|
22889
22896
|
let ee = z((A = (L = e.selectedKey) !== null && L !== void 0 ? L : e.defaultSelectedKey) !== null && A !== void 0 ? A : null);
|
|
22890
|
-
var
|
|
22891
|
-
let Y = z((
|
|
22897
|
+
var G;
|
|
22898
|
+
let Y = z((G = (t = g.getItem(v)) === null || t === void 0 ? void 0 : t.textValue) !== null && G !== void 0 ? G : "");
|
|
22892
22899
|
X(() => {
|
|
22893
22900
|
var ae;
|
|
22894
|
-
c && (k.size > 0 || o) && !j.isOpen && p !==
|
|
22901
|
+
c && (k.size > 0 || o) && !j.isOpen && p !== V.current && n !== "manual" && M(null, "input"), !s && !o && j.isOpen && k.size === 0 && N(), v != null && v !== ee.current && N(), p !== V.current && ($.setFocusedKey(null), l(!1), p === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && y(null)), H.current && e.inputValue === void 0 && e.defaultInputValue === void 0 && U(), v !== ee.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? U() : V.current = p;
|
|
22895
22902
|
var be;
|
|
22896
22903
|
let ye = (be = (ae = g.getItem(v)) === null || ae === void 0 ? void 0 : ae.textValue) !== null && be !== void 0 ? be : "";
|
|
22897
|
-
!c && v != null && e.inputValue === void 0 && v === ee.current && Y.current !== ye && (
|
|
22904
|
+
!c && v != null && e.inputValue === void 0 && v === ee.current && Y.current !== ye && (V.current = ye, m(ye)), H.current = !1, ee.current = v, Y.current = ye;
|
|
22898
22905
|
});
|
|
22899
|
-
let
|
|
22900
|
-
a && v == null ?
|
|
22901
|
-
},
|
|
22906
|
+
let de = () => {
|
|
22907
|
+
a && v == null ? fe() : Q();
|
|
22908
|
+
}, fe = () => {
|
|
22902
22909
|
ee.current = null, y(null), N();
|
|
22903
22910
|
}, Q = () => {
|
|
22904
22911
|
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
@@ -22906,20 +22913,20 @@ function dI(e) {
|
|
|
22906
22913
|
e.onSelectionChange(v);
|
|
22907
22914
|
var be;
|
|
22908
22915
|
let ye = (be = (ae = g.getItem(v)) === null || ae === void 0 ? void 0 : ae.textValue) !== null && be !== void 0 ? be : "";
|
|
22909
|
-
|
|
22916
|
+
V.current = ye, N();
|
|
22910
22917
|
} else
|
|
22911
22918
|
U(), N();
|
|
22912
22919
|
}, se = () => {
|
|
22913
|
-
j.isOpen && $.focusedKey != null ? v === $.focusedKey ? Q() : y($.focusedKey) : a ?
|
|
22914
|
-
},
|
|
22920
|
+
j.isOpen && $.focusedKey != null ? v === $.focusedKey ? Q() : y($.focusedKey) : a ? fe() : Q();
|
|
22921
|
+
}, ue = () => {
|
|
22915
22922
|
var ae, be;
|
|
22916
22923
|
let ye = (be = (ae = g.getItem(v)) === null || ae === void 0 ? void 0 : ae.textValue) !== null && be !== void 0 ? be : "";
|
|
22917
|
-
a && p !== ye ?
|
|
22924
|
+
a && p !== ye ? fe() : Q(), N();
|
|
22918
22925
|
}, le = (ae) => {
|
|
22919
|
-
ae ? n === "focus" &&
|
|
22920
|
-
}, me = re(() => j.isOpen ? s ?
|
|
22926
|
+
ae ? n === "focus" && M(null, "focus") : i && ue(), d(ae);
|
|
22927
|
+
}, me = re(() => j.isOpen ? s ? O : k : _, [
|
|
22921
22928
|
j.isOpen,
|
|
22922
|
-
|
|
22929
|
+
O,
|
|
22923
22930
|
k,
|
|
22924
22931
|
s,
|
|
22925
22932
|
_
|
|
@@ -22927,8 +22934,8 @@ function dI(e) {
|
|
|
22927
22934
|
return {
|
|
22928
22935
|
...j,
|
|
22929
22936
|
toggle: R,
|
|
22930
|
-
open:
|
|
22931
|
-
close:
|
|
22937
|
+
open: M,
|
|
22938
|
+
close: ue,
|
|
22932
22939
|
selectionManager: $,
|
|
22933
22940
|
selectedKey: v,
|
|
22934
22941
|
setSelectedKey: y,
|
|
@@ -22940,7 +22947,7 @@ function dI(e) {
|
|
|
22940
22947
|
inputValue: p,
|
|
22941
22948
|
setInputValue: m,
|
|
22942
22949
|
commit: se,
|
|
22943
|
-
revert:
|
|
22950
|
+
revert: de
|
|
22944
22951
|
};
|
|
22945
22952
|
}
|
|
22946
22953
|
function uI(e, t, r) {
|
|
@@ -23330,7 +23337,7 @@ const DI = pw, Um = C(Ie)`
|
|
|
23330
23337
|
justify-content: space-between;
|
|
23331
23338
|
align-items: center;
|
|
23332
23339
|
margin-bottom: ${f.spacing_300};
|
|
23333
|
-
`, PI =
|
|
23340
|
+
`, PI = B(function(t, r) {
|
|
23334
23341
|
const { children: n, actions: o = null, title: a, sticky: i } = t, { loading: s } = Ve(js);
|
|
23335
23342
|
return s ? /* @__PURE__ */ ie(Um, { ref: r, ...t, sticky: i, children: [
|
|
23336
23343
|
/* @__PURE__ */ x(rn.Header, { looksLike: "h2" }),
|
|
@@ -23573,18 +23580,18 @@ const Ul = "rovingFocusGroup.onEntryFocus", AI = {
|
|
|
23573
23580
|
cancelable: !0
|
|
23574
23581
|
}, ef = "RovingFocusGroup", [ld, mw, II] = aa(ef), [OI, ho] = je(ef, [
|
|
23575
23582
|
II
|
|
23576
|
-
]), [MI, NI] = OI(ef), FI = /* @__PURE__ */
|
|
23583
|
+
]), [MI, NI] = OI(ef), FI = /* @__PURE__ */ B((e, t) => /* @__PURE__ */ S(ld.Provider, {
|
|
23577
23584
|
scope: e.__scopeRovingFocusGroup
|
|
23578
23585
|
}, /* @__PURE__ */ S(ld.Slot, {
|
|
23579
23586
|
scope: e.__scopeRovingFocusGroup
|
|
23580
23587
|
}, /* @__PURE__ */ S(LI, I({}, e, {
|
|
23581
23588
|
ref: t
|
|
23582
|
-
}))))), LI = /* @__PURE__ */
|
|
23589
|
+
}))))), LI = /* @__PURE__ */ B((e, t) => {
|
|
23583
23590
|
const { __scopeRovingFocusGroup: r, orientation: n, loop: o = !1, dir: a, currentTabStopId: i, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: l, onEntryFocus: c, ...d } = e, u = z(null), p = _e(t, u), m = oo(a), [h = null, b] = qe({
|
|
23584
23591
|
prop: i,
|
|
23585
23592
|
defaultProp: s,
|
|
23586
23593
|
onChange: l
|
|
23587
|
-
}), [g, $] = J(!1), v = We(c), y = mw(r), w = z(!1), [P,
|
|
23594
|
+
}), [g, $] = J(!1), v = We(c), y = mw(r), w = z(!1), [P, O] = J(0);
|
|
23588
23595
|
return X(() => {
|
|
23589
23596
|
const k = u.current;
|
|
23590
23597
|
if (k)
|
|
@@ -23608,13 +23615,13 @@ const Ul = "rovingFocusGroup.onEntryFocus", AI = {
|
|
|
23608
23615
|
[]
|
|
23609
23616
|
),
|
|
23610
23617
|
onFocusableItemAdd: oe(
|
|
23611
|
-
() =>
|
|
23618
|
+
() => O(
|
|
23612
23619
|
(k) => k + 1
|
|
23613
23620
|
),
|
|
23614
23621
|
[]
|
|
23615
23622
|
),
|
|
23616
23623
|
onFocusableItemRemove: oe(
|
|
23617
|
-
() =>
|
|
23624
|
+
() => O(
|
|
23618
23625
|
(k) => k - 1
|
|
23619
23626
|
),
|
|
23620
23627
|
[]
|
|
@@ -23659,7 +23666,7 @@ const Ul = "rovingFocusGroup.onEntryFocus", AI = {
|
|
|
23659
23666
|
() => $(!1)
|
|
23660
23667
|
)
|
|
23661
23668
|
})));
|
|
23662
|
-
}), zI = "RovingFocusGroupItem", KI = /* @__PURE__ */
|
|
23669
|
+
}), zI = "RovingFocusGroupItem", KI = /* @__PURE__ */ B((e, t) => {
|
|
23663
23670
|
const { __scopeRovingFocusGroup: r, focusable: n = !0, active: o = !1, tabStopId: a, ...i } = e, s = Qe(), l = a || s, c = NI(zI, r), d = c.currentTabStopId === l, u = mw(r), { onFocusableItemAdd: p, onFocusableItemRemove: m } = c;
|
|
23664
23671
|
return X(() => {
|
|
23665
23672
|
if (n)
|
|
@@ -23823,7 +23830,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
23823
23830
|
dir: p,
|
|
23824
23831
|
modal: i
|
|
23825
23832
|
}, n)));
|
|
23826
|
-
}, yw = /* @__PURE__ */
|
|
23833
|
+
}, yw = /* @__PURE__ */ B((e, t) => {
|
|
23827
23834
|
const { __scopeMenu: r, ...n } = e, o = xa(r);
|
|
23828
23835
|
return /* @__PURE__ */ S(xs, I({}, o, n, {
|
|
23829
23836
|
ref: t
|
|
@@ -23841,7 +23848,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
23841
23848
|
asChild: !0,
|
|
23842
23849
|
container: o
|
|
23843
23850
|
}, n)));
|
|
23844
|
-
}, Pt = "MenuContent", [tO, nf] = bn(Pt), rO = /* @__PURE__ */
|
|
23851
|
+
}, Pt = "MenuContent", [tO, nf] = bn(Pt), rO = /* @__PURE__ */ B((e, t) => {
|
|
23845
23852
|
const r = xw(Pt, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, a = Or(Pt, e.__scopeMenu), i = wa(Pt, e.__scopeMenu);
|
|
23846
23853
|
return /* @__PURE__ */ S(ra.Provider, {
|
|
23847
23854
|
scope: e.__scopeMenu
|
|
@@ -23854,7 +23861,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
23854
23861
|
})) : /* @__PURE__ */ S(oO, I({}, o, {
|
|
23855
23862
|
ref: t
|
|
23856
23863
|
})))));
|
|
23857
|
-
}), nO = /* @__PURE__ */
|
|
23864
|
+
}), nO = /* @__PURE__ */ B((e, t) => {
|
|
23858
23865
|
const r = Or(Pt, e.__scopeMenu), n = z(null), o = _e(t, n);
|
|
23859
23866
|
return X(() => {
|
|
23860
23867
|
const a = n.current;
|
|
@@ -23874,7 +23881,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
23874
23881
|
),
|
|
23875
23882
|
onDismiss: () => r.onOpenChange(!1)
|
|
23876
23883
|
}));
|
|
23877
|
-
}), oO = /* @__PURE__ */
|
|
23884
|
+
}), oO = /* @__PURE__ */ B((e, t) => {
|
|
23878
23885
|
const r = Or(Pt, e.__scopeMenu);
|
|
23879
23886
|
return /* @__PURE__ */ S(of, I({}, e, {
|
|
23880
23887
|
ref: t,
|
|
@@ -23883,24 +23890,24 @@ const tf = FI, rf = KI, cd = [
|
|
|
23883
23890
|
disableOutsideScroll: !1,
|
|
23884
23891
|
onDismiss: () => r.onOpenChange(!1)
|
|
23885
23892
|
}));
|
|
23886
|
-
}), of = /* @__PURE__ */
|
|
23887
|
-
const { __scopeMenu: r, loop: n = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: s, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...b } = e, g = Or(Pt, r), $ = wa(Pt, r), v = xa(r), y = vw(r), w = qI(r), [P,
|
|
23893
|
+
}), of = /* @__PURE__ */ B((e, t) => {
|
|
23894
|
+
const { __scopeMenu: r, loop: n = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: s, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...b } = e, g = Or(Pt, r), $ = wa(Pt, r), v = xa(r), y = vw(r), w = qI(r), [P, O] = J(null), k = z(null), _ = _e(t, k, g.onContentChange), E = z(0), F = z(""), D = z(0), j = z(null), M = z("right"), R = z(0), q = h ? as : Cr, N = h ? {
|
|
23888
23895
|
as: xr,
|
|
23889
23896
|
allowPinchZoom: !0
|
|
23890
|
-
} : void 0,
|
|
23897
|
+
} : void 0, V = (H) => {
|
|
23891
23898
|
var L, A;
|
|
23892
|
-
const ee = F.current +
|
|
23893
|
-
(
|
|
23894
|
-
), Y = document.activeElement,
|
|
23895
|
-
(
|
|
23896
|
-
)) === null || L === void 0 ? void 0 : L.textValue,
|
|
23897
|
-
(
|
|
23898
|
-
), Q = DO(
|
|
23899
|
-
(
|
|
23899
|
+
const ee = F.current + H, G = w().filter(
|
|
23900
|
+
(ue) => !ue.disabled
|
|
23901
|
+
), Y = document.activeElement, de = (L = G.find(
|
|
23902
|
+
(ue) => ue.ref.current === Y
|
|
23903
|
+
)) === null || L === void 0 ? void 0 : L.textValue, fe = G.map(
|
|
23904
|
+
(ue) => ue.textValue
|
|
23905
|
+
), Q = DO(fe, ee, de), se = (A = G.find(
|
|
23906
|
+
(ue) => ue.textValue === Q
|
|
23900
23907
|
)) === null || A === void 0 ? void 0 : A.ref.current;
|
|
23901
|
-
(function
|
|
23908
|
+
(function ue(le) {
|
|
23902
23909
|
F.current = le, window.clearTimeout(E.current), le !== "" && (E.current = window.setTimeout(
|
|
23903
|
-
() =>
|
|
23910
|
+
() => ue(""),
|
|
23904
23911
|
1e3
|
|
23905
23912
|
));
|
|
23906
23913
|
})(ee), se && setTimeout(
|
|
@@ -23908,39 +23915,39 @@ const tf = FI, rf = KI, cd = [
|
|
|
23908
23915
|
);
|
|
23909
23916
|
};
|
|
23910
23917
|
X(() => () => window.clearTimeout(E.current), []), ns();
|
|
23911
|
-
const U = oe((
|
|
23918
|
+
const U = oe((H) => {
|
|
23912
23919
|
var L, A;
|
|
23913
|
-
return
|
|
23920
|
+
return M.current === ((L = j.current) === null || L === void 0 ? void 0 : L.side) && PO(H, (A = j.current) === null || A === void 0 ? void 0 : A.area);
|
|
23914
23921
|
}, []);
|
|
23915
23922
|
return /* @__PURE__ */ S(tO, {
|
|
23916
23923
|
scope: r,
|
|
23917
23924
|
searchRef: F,
|
|
23918
|
-
onItemEnter: oe((
|
|
23919
|
-
U(
|
|
23925
|
+
onItemEnter: oe((H) => {
|
|
23926
|
+
U(H) && H.preventDefault();
|
|
23920
23927
|
}, [
|
|
23921
23928
|
U
|
|
23922
23929
|
]),
|
|
23923
|
-
onItemLeave: oe((
|
|
23930
|
+
onItemLeave: oe((H) => {
|
|
23924
23931
|
var L;
|
|
23925
|
-
U(
|
|
23932
|
+
U(H) || ((L = k.current) === null || L === void 0 || L.focus(), O(null));
|
|
23926
23933
|
}, [
|
|
23927
23934
|
U
|
|
23928
23935
|
]),
|
|
23929
|
-
onTriggerLeave: oe((
|
|
23930
|
-
U(
|
|
23936
|
+
onTriggerLeave: oe((H) => {
|
|
23937
|
+
U(H) && H.preventDefault();
|
|
23931
23938
|
}, [
|
|
23932
23939
|
U
|
|
23933
23940
|
]),
|
|
23934
23941
|
pointerGraceTimerRef: D,
|
|
23935
|
-
onPointerGraceIntentChange: oe((
|
|
23936
|
-
j.current =
|
|
23942
|
+
onPointerGraceIntentChange: oe((H) => {
|
|
23943
|
+
j.current = H;
|
|
23937
23944
|
}, [])
|
|
23938
23945
|
}, /* @__PURE__ */ S(q, N, /* @__PURE__ */ S(rs, {
|
|
23939
23946
|
asChild: !0,
|
|
23940
23947
|
trapped: o,
|
|
23941
|
-
onMountAutoFocus: ne(a, (
|
|
23948
|
+
onMountAutoFocus: ne(a, (H) => {
|
|
23942
23949
|
var L;
|
|
23943
|
-
|
|
23950
|
+
H.preventDefault(), (L = k.current) === null || L === void 0 || L.focus();
|
|
23944
23951
|
}),
|
|
23945
23952
|
onUnmountAutoFocus: i
|
|
23946
23953
|
}, /* @__PURE__ */ S(ao, {
|
|
@@ -23958,9 +23965,9 @@ const tf = FI, rf = KI, cd = [
|
|
|
23958
23965
|
orientation: "vertical",
|
|
23959
23966
|
loop: n,
|
|
23960
23967
|
currentTabStopId: P,
|
|
23961
|
-
onCurrentTabStopIdChange:
|
|
23962
|
-
onEntryFocus: ne(l, (
|
|
23963
|
-
$.isUsingKeyboardRef.current ||
|
|
23968
|
+
onCurrentTabStopIdChange: O,
|
|
23969
|
+
onEntryFocus: ne(l, (H) => {
|
|
23970
|
+
$.isUsingKeyboardRef.current || H.preventDefault();
|
|
23964
23971
|
})
|
|
23965
23972
|
}), /* @__PURE__ */ S(ws, I({
|
|
23966
23973
|
role: "menu",
|
|
@@ -23974,44 +23981,44 @@ const tf = FI, rf = KI, cd = [
|
|
|
23974
23981
|
outline: "none",
|
|
23975
23982
|
...b.style
|
|
23976
23983
|
},
|
|
23977
|
-
onKeyDown: ne(b.onKeyDown, (
|
|
23978
|
-
const A =
|
|
23979
|
-
A && (
|
|
23984
|
+
onKeyDown: ne(b.onKeyDown, (H) => {
|
|
23985
|
+
const A = H.target.closest("[data-radix-menu-content]") === H.currentTarget, ee = H.ctrlKey || H.altKey || H.metaKey, G = H.key.length === 1;
|
|
23986
|
+
A && (H.key === "Tab" && H.preventDefault(), !ee && G && V(H.key));
|
|
23980
23987
|
const Y = k.current;
|
|
23981
|
-
if (
|
|
23988
|
+
if (H.target !== Y || !HI.includes(H.key))
|
|
23982
23989
|
return;
|
|
23983
|
-
|
|
23984
|
-
const
|
|
23990
|
+
H.preventDefault();
|
|
23991
|
+
const fe = w().filter(
|
|
23985
23992
|
(Q) => !Q.disabled
|
|
23986
23993
|
).map(
|
|
23987
23994
|
(Q) => Q.ref.current
|
|
23988
23995
|
);
|
|
23989
|
-
bw.includes(
|
|
23996
|
+
bw.includes(H.key) && fe.reverse(), xO(fe);
|
|
23990
23997
|
}),
|
|
23991
|
-
onBlur: ne(e.onBlur, (
|
|
23992
|
-
|
|
23998
|
+
onBlur: ne(e.onBlur, (H) => {
|
|
23999
|
+
H.currentTarget.contains(H.target) || (window.clearTimeout(E.current), F.current = "");
|
|
23993
24000
|
}),
|
|
23994
|
-
onPointerMove: ne(e.onPointerMove, na((
|
|
23995
|
-
const L =
|
|
23996
|
-
if (
|
|
23997
|
-
const ee =
|
|
23998
|
-
|
|
24001
|
+
onPointerMove: ne(e.onPointerMove, na((H) => {
|
|
24002
|
+
const L = H.target, A = R.current !== H.clientX;
|
|
24003
|
+
if (H.currentTarget.contains(L) && A) {
|
|
24004
|
+
const ee = H.clientX > R.current ? "right" : "left";
|
|
24005
|
+
M.current = ee, R.current = H.clientX;
|
|
23999
24006
|
}
|
|
24000
24007
|
}))
|
|
24001
24008
|
})))))));
|
|
24002
|
-
}), ww = /* @__PURE__ */
|
|
24009
|
+
}), ww = /* @__PURE__ */ B((e, t) => {
|
|
24003
24010
|
const { __scopeMenu: r, ...n } = e;
|
|
24004
24011
|
return /* @__PURE__ */ S(he.div, I({
|
|
24005
24012
|
role: "group"
|
|
24006
24013
|
}, n, {
|
|
24007
24014
|
ref: t
|
|
24008
24015
|
}));
|
|
24009
|
-
}), aO = /* @__PURE__ */
|
|
24016
|
+
}), aO = /* @__PURE__ */ B((e, t) => {
|
|
24010
24017
|
const { __scopeMenu: r, ...n } = e;
|
|
24011
24018
|
return /* @__PURE__ */ S(he.div, I({}, n, {
|
|
24012
24019
|
ref: t
|
|
24013
24020
|
}));
|
|
24014
|
-
}), dd = "MenuItem", Wm = "menu.itemSelect", af = /* @__PURE__ */
|
|
24021
|
+
}), dd = "MenuItem", Wm = "menu.itemSelect", af = /* @__PURE__ */ B((e, t) => {
|
|
24015
24022
|
const { disabled: r = !1, onSelect: n, ...o } = e, a = z(null), i = wa(dd, e.__scopeMenu), s = nf(dd, e.__scopeMenu), l = _e(t, a), c = z(!1), d = () => {
|
|
24016
24023
|
const u = a.current;
|
|
24017
24024
|
if (!r && u) {
|
|
@@ -24045,7 +24052,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
24045
24052
|
r || p && u.key === " " || cd.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
|
|
24046
24053
|
})
|
|
24047
24054
|
}));
|
|
24048
|
-
}), Dw = /* @__PURE__ */
|
|
24055
|
+
}), Dw = /* @__PURE__ */ B((e, t) => {
|
|
24049
24056
|
const { __scopeMenu: r, disabled: n = !1, textValue: o, ...a } = e, i = nf(dd, r), s = vw(r), l = z(null), c = _e(t, l), [d, u] = J(!1), [p, m] = J("");
|
|
24050
24057
|
return X(() => {
|
|
24051
24058
|
const h = l.current;
|
|
@@ -24085,7 +24092,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
24085
24092
|
() => u(!1)
|
|
24086
24093
|
)
|
|
24087
24094
|
}))));
|
|
24088
|
-
}), iO = /* @__PURE__ */
|
|
24095
|
+
}), iO = /* @__PURE__ */ B((e, t) => {
|
|
24089
24096
|
const { checked: r = !1, onCheckedChange: n, ...o } = e;
|
|
24090
24097
|
return /* @__PURE__ */ S(Pw, {
|
|
24091
24098
|
scope: e.__scopeMenu,
|
|
@@ -24108,7 +24115,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
24108
24115
|
value: void 0,
|
|
24109
24116
|
onValueChange: () => {
|
|
24110
24117
|
}
|
|
24111
|
-
}), dO = /* @__PURE__ */
|
|
24118
|
+
}), dO = /* @__PURE__ */ B((e, t) => {
|
|
24112
24119
|
const { value: r, onValueChange: n, ...o } = e, a = We(n);
|
|
24113
24120
|
return /* @__PURE__ */ S(lO, {
|
|
24114
24121
|
scope: e.__scopeMenu,
|
|
@@ -24117,7 +24124,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
24117
24124
|
}, /* @__PURE__ */ S(ww, I({}, o, {
|
|
24118
24125
|
ref: t
|
|
24119
24126
|
})));
|
|
24120
|
-
}), uO = "MenuRadioItem", fO = /* @__PURE__ */
|
|
24127
|
+
}), uO = "MenuRadioItem", fO = /* @__PURE__ */ B((e, t) => {
|
|
24121
24128
|
const { value: r, ...n } = e, o = cO(uO, e.__scopeMenu), a = r === o.value;
|
|
24122
24129
|
return /* @__PURE__ */ S(Pw, {
|
|
24123
24130
|
scope: e.__scopeMenu,
|
|
@@ -24137,7 +24144,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
24137
24144
|
})));
|
|
24138
24145
|
}), Sw = "MenuItemIndicator", [Pw, pO] = bn(Sw, {
|
|
24139
24146
|
checked: !1
|
|
24140
|
-
}), mO = /* @__PURE__ */
|
|
24147
|
+
}), mO = /* @__PURE__ */ B((e, t) => {
|
|
24141
24148
|
const { __scopeMenu: r, forceMount: n, ...o } = e, a = pO(Sw, r);
|
|
24142
24149
|
return /* @__PURE__ */ S(He, {
|
|
24143
24150
|
present: n || Ki(a.checked) || a.checked === !0
|
|
@@ -24145,7 +24152,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
24145
24152
|
ref: t,
|
|
24146
24153
|
"data-state": sf(a.checked)
|
|
24147
24154
|
})));
|
|
24148
|
-
}), hO = /* @__PURE__ */
|
|
24155
|
+
}), hO = /* @__PURE__ */ B((e, t) => {
|
|
24149
24156
|
const { __scopeMenu: r, ...n } = e;
|
|
24150
24157
|
return /* @__PURE__ */ S(he.div, I({
|
|
24151
24158
|
role: "separator",
|
|
@@ -24153,7 +24160,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
24153
24160
|
}, n, {
|
|
24154
24161
|
ref: t
|
|
24155
24162
|
}));
|
|
24156
|
-
}), bO = /* @__PURE__ */
|
|
24163
|
+
}), bO = /* @__PURE__ */ B((e, t) => {
|
|
24157
24164
|
const { __scopeMenu: r, ...n } = e, o = xa(r);
|
|
24158
24165
|
return /* @__PURE__ */ S(yu, I({}, o, n, {
|
|
24159
24166
|
ref: t
|
|
@@ -24176,7 +24183,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
24176
24183
|
trigger: s,
|
|
24177
24184
|
onTriggerChange: l
|
|
24178
24185
|
}, r)));
|
|
24179
|
-
}, qa = "MenuSubTrigger", $O = /* @__PURE__ */
|
|
24186
|
+
}, qa = "MenuSubTrigger", $O = /* @__PURE__ */ B((e, t) => {
|
|
24180
24187
|
const r = Or(qa, e.__scopeMenu), n = wa(qa, e.__scopeMenu), o = kw(qa, e.__scopeMenu), a = nf(qa, e.__scopeMenu), i = z(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: l } = a, c = {
|
|
24181
24188
|
__scopeMenu: e.__scopeMenu
|
|
24182
24189
|
}, d = oe(() => {
|
|
@@ -24264,7 +24271,7 @@ const tf = FI, rf = KI, cd = [
|
|
|
24264
24271
|
}
|
|
24265
24272
|
})
|
|
24266
24273
|
})));
|
|
24267
|
-
}), yO = "MenuSubContent", _O = /* @__PURE__ */
|
|
24274
|
+
}), yO = "MenuSubContent", _O = /* @__PURE__ */ B((e, t) => {
|
|
24268
24275
|
const r = xw(Pt, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, a = Or(Pt, e.__scopeMenu), i = wa(Pt, e.__scopeMenu), s = kw(yO, e.__scopeMenu), l = z(null), c = _e(t, l);
|
|
24269
24276
|
return /* @__PURE__ */ S(ra.Provider, {
|
|
24270
24277
|
scope: e.__scopeMenu
|
|
@@ -24386,7 +24393,7 @@ const TO = JI, kO = yw, EO = eO, CO = rO, RO = ww, AO = aO, IO = af, OO = iO, MO
|
|
|
24386
24393
|
dir: n,
|
|
24387
24394
|
modal: s
|
|
24388
24395
|
}), r));
|
|
24389
|
-
}, HO = "DropdownMenuTrigger", GO = /* @__PURE__ */
|
|
24396
|
+
}, HO = "DropdownMenuTrigger", GO = /* @__PURE__ */ B((e, t) => {
|
|
24390
24397
|
const { __scopeDropdownMenu: r, disabled: n = !1, ...o } = e, a = Rw(HO, r), i = Xe(r);
|
|
24391
24398
|
return /* @__PURE__ */ S(kO, I({
|
|
24392
24399
|
asChild: !0
|
|
@@ -24418,7 +24425,7 @@ const TO = JI, kO = yw, EO = eO, CO = rO, RO = ww, AO = aO, IO = af, OO = iO, MO
|
|
|
24418
24425
|
}), YO = (e) => {
|
|
24419
24426
|
const { __scopeDropdownMenu: t, ...r } = e, n = Xe(t);
|
|
24420
24427
|
return /* @__PURE__ */ S(EO, I({}, n, r));
|
|
24421
|
-
}, qO = "DropdownMenuContent", ZO = /* @__PURE__ */
|
|
24428
|
+
}, qO = "DropdownMenuContent", ZO = /* @__PURE__ */ B((e, t) => {
|
|
24422
24429
|
const { __scopeDropdownMenu: r, ...n } = e, o = Rw(qO, r), a = Xe(r), i = z(!1);
|
|
24423
24430
|
return /* @__PURE__ */ S(CO, I({
|
|
24424
24431
|
id: o.contentId,
|
|
@@ -24442,47 +24449,47 @@ const TO = JI, kO = yw, EO = eO, CO = rO, RO = ww, AO = aO, IO = af, OO = iO, MO
|
|
|
24442
24449
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
24443
24450
|
}
|
|
24444
24451
|
}));
|
|
24445
|
-
}), XO = /* @__PURE__ */
|
|
24452
|
+
}), XO = /* @__PURE__ */ B((e, t) => {
|
|
24446
24453
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24447
24454
|
return /* @__PURE__ */ S(RO, I({}, o, n, {
|
|
24448
24455
|
ref: t
|
|
24449
24456
|
}));
|
|
24450
|
-
}), JO = /* @__PURE__ */
|
|
24457
|
+
}), JO = /* @__PURE__ */ B((e, t) => {
|
|
24451
24458
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24452
24459
|
return /* @__PURE__ */ S(AO, I({}, o, n, {
|
|
24453
24460
|
ref: t
|
|
24454
24461
|
}));
|
|
24455
|
-
}), QO = /* @__PURE__ */
|
|
24462
|
+
}), QO = /* @__PURE__ */ B((e, t) => {
|
|
24456
24463
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24457
24464
|
return /* @__PURE__ */ S(IO, I({}, o, n, {
|
|
24458
24465
|
ref: t
|
|
24459
24466
|
}));
|
|
24460
|
-
}), eM = /* @__PURE__ */
|
|
24467
|
+
}), eM = /* @__PURE__ */ B((e, t) => {
|
|
24461
24468
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24462
24469
|
return /* @__PURE__ */ S(OO, I({}, o, n, {
|
|
24463
24470
|
ref: t
|
|
24464
24471
|
}));
|
|
24465
|
-
}), tM = /* @__PURE__ */
|
|
24472
|
+
}), tM = /* @__PURE__ */ B((e, t) => {
|
|
24466
24473
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24467
24474
|
return /* @__PURE__ */ S(MO, I({}, o, n, {
|
|
24468
24475
|
ref: t
|
|
24469
24476
|
}));
|
|
24470
|
-
}), rM = /* @__PURE__ */
|
|
24477
|
+
}), rM = /* @__PURE__ */ B((e, t) => {
|
|
24471
24478
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24472
24479
|
return /* @__PURE__ */ S(NO, I({}, o, n, {
|
|
24473
24480
|
ref: t
|
|
24474
24481
|
}));
|
|
24475
|
-
}), nM = /* @__PURE__ */
|
|
24482
|
+
}), nM = /* @__PURE__ */ B((e, t) => {
|
|
24476
24483
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24477
24484
|
return /* @__PURE__ */ S(FO, I({}, o, n, {
|
|
24478
24485
|
ref: t
|
|
24479
24486
|
}));
|
|
24480
|
-
}), oM = /* @__PURE__ */
|
|
24487
|
+
}), oM = /* @__PURE__ */ B((e, t) => {
|
|
24481
24488
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24482
24489
|
return /* @__PURE__ */ S(LO, I({}, o, n, {
|
|
24483
24490
|
ref: t
|
|
24484
24491
|
}));
|
|
24485
|
-
}), aM = /* @__PURE__ */
|
|
24492
|
+
}), aM = /* @__PURE__ */ B((e, t) => {
|
|
24486
24493
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24487
24494
|
return /* @__PURE__ */ S(zO, I({}, o, n, {
|
|
24488
24495
|
ref: t
|
|
@@ -24497,12 +24504,12 @@ const TO = JI, kO = yw, EO = eO, CO = rO, RO = ww, AO = aO, IO = af, OO = iO, MO
|
|
|
24497
24504
|
open: s,
|
|
24498
24505
|
onOpenChange: l
|
|
24499
24506
|
}), r);
|
|
24500
|
-
}, sM = /* @__PURE__ */
|
|
24507
|
+
}, sM = /* @__PURE__ */ B((e, t) => {
|
|
24501
24508
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24502
24509
|
return /* @__PURE__ */ S(VO, I({}, o, n, {
|
|
24503
24510
|
ref: t
|
|
24504
24511
|
}));
|
|
24505
|
-
}), lM = /* @__PURE__ */
|
|
24512
|
+
}), lM = /* @__PURE__ */ B((e, t) => {
|
|
24506
24513
|
const { __scopeDropdownMenu: r, ...n } = e, o = Xe(r);
|
|
24507
24514
|
return /* @__PURE__ */ S(BO, I({}, o, n, {
|
|
24508
24515
|
ref: t,
|
|
@@ -24554,7 +24561,7 @@ const TO = JI, kO = yw, EO = eO, CO = rO, RO = ww, AO = aO, IO = af, OO = iO, MO
|
|
|
24554
24561
|
}
|
|
24555
24562
|
`, kM = C(uM)`
|
|
24556
24563
|
${Iw}
|
|
24557
|
-
`, EM =
|
|
24564
|
+
`, EM = B((e, t) => {
|
|
24558
24565
|
const { children: r, forceMount: n, ...o } = e;
|
|
24559
24566
|
return /* @__PURE__ */ x(Aw, { forceMount: n, children: /* @__PURE__ */ x(
|
|
24560
24567
|
kM,
|
|
@@ -26314,15 +26321,15 @@ function WM(e) {
|
|
|
26314
26321
|
o.x = v.clientX, o.y = v.clientY;
|
|
26315
26322
|
let w = o.dropEffect;
|
|
26316
26323
|
if (y !== o.allowedOperations) {
|
|
26317
|
-
let P = Hl(y),
|
|
26324
|
+
let P = Hl(y), O = P[0];
|
|
26318
26325
|
if (typeof e.getDropOperation == "function") {
|
|
26319
26326
|
let k = new Za(v.dataTransfer);
|
|
26320
|
-
|
|
26327
|
+
O = Xa(y, e.getDropOperation(k, P));
|
|
26321
26328
|
}
|
|
26322
|
-
o.dropEffect = Wl[
|
|
26329
|
+
o.dropEffect = Wl[O] || "none";
|
|
26323
26330
|
}
|
|
26324
26331
|
if (typeof e.getDropOperationForPoint == "function") {
|
|
26325
|
-
let P = new Za(v.dataTransfer),
|
|
26332
|
+
let P = new Za(v.dataTransfer), O = v.currentTarget.getBoundingClientRect(), k = Xa(y, e.getDropOperationForPoint(P, Hl(y), o.x - O.x, o.y - O.y));
|
|
26326
26333
|
o.dropEffect = Wl[k] || "none";
|
|
26327
26334
|
}
|
|
26328
26335
|
if (o.allowedOperations = y, v.dataTransfer.dropEffect = o.dropEffect, o.dropEffect === "none" && w !== "none" ? i(v) : o.dropEffect !== "none" && w === "none" && a(v), typeof e.onDropMove == "function" && o.dropEffect !== "none") {
|
|
@@ -26348,12 +26355,12 @@ function WM(e) {
|
|
|
26348
26355
|
return;
|
|
26349
26356
|
let y = Zm(v), w = Hl(y), P = w[0];
|
|
26350
26357
|
if (typeof e.getDropOperation == "function") {
|
|
26351
|
-
let
|
|
26352
|
-
P = Xa(y, e.getDropOperation(
|
|
26358
|
+
let O = new Za(v.dataTransfer);
|
|
26359
|
+
P = Xa(y, e.getDropOperation(O, w));
|
|
26353
26360
|
}
|
|
26354
26361
|
if (typeof e.getDropOperationForPoint == "function") {
|
|
26355
|
-
let
|
|
26356
|
-
P = Xa(y, e.getDropOperationForPoint(
|
|
26362
|
+
let O = new Za(v.dataTransfer), k = v.currentTarget.getBoundingClientRect();
|
|
26363
|
+
P = Xa(y, e.getDropOperationForPoint(O, w, v.clientX - k.x, v.clientY - k.y));
|
|
26357
26364
|
}
|
|
26358
26365
|
o.x = v.clientX, o.y = v.clientY, o.allowedOperations = y, o.dropEffect = Wl[P] || "none", v.dataTransfer.dropEffect = o.dropEffect, P !== "cancel" && a(v);
|
|
26359
26366
|
}, c = (v) => {
|
|
@@ -26363,10 +26370,10 @@ function WM(e) {
|
|
|
26363
26370
|
o.dragOverElements.size > 0 || (o.dropEffect !== "none" && i(v), clearTimeout(o.dropActivateTimer));
|
|
26364
26371
|
}, d = (v) => {
|
|
26365
26372
|
if (v.preventDefault(), v.stopPropagation(), o.dropEffect, typeof e.onDrop == "function") {
|
|
26366
|
-
let w = Mw[o.dropEffect], P = MM(v.dataTransfer),
|
|
26373
|
+
let w = Mw[o.dropEffect], P = MM(v.dataTransfer), O = v.currentTarget.getBoundingClientRect(), k = {
|
|
26367
26374
|
type: "drop",
|
|
26368
|
-
x: v.clientX -
|
|
26369
|
-
y: v.clientY -
|
|
26375
|
+
x: v.clientX - O.x,
|
|
26376
|
+
y: v.clientY - O.y,
|
|
26370
26377
|
items: P,
|
|
26371
26378
|
dropOperation: w
|
|
26372
26379
|
};
|
|
@@ -26508,7 +26515,7 @@ const HM = C.div`
|
|
|
26508
26515
|
`, QM = new Intl.ListFormat("en", {
|
|
26509
26516
|
style: "long",
|
|
26510
26517
|
type: "conjunction"
|
|
26511
|
-
}), eN =
|
|
26518
|
+
}), eN = B(
|
|
26512
26519
|
(e, t) => {
|
|
26513
26520
|
const {
|
|
26514
26521
|
file: r,
|
|
@@ -26669,14 +26676,14 @@ const Xm = (e, t, r, n = []) => {
|
|
|
26669
26676
|
allowedOutsideClickContainers: m,
|
|
26670
26677
|
...h
|
|
26671
26678
|
}) => {
|
|
26672
|
-
const b = z(null), [g, $] = J(!1), [v, y] = J(!1), w = Mt(h, Ar.propNames ?? []), P = Mt(h, bu.propNames ?? []),
|
|
26679
|
+
const b = z(null), [g, $] = J(!1), [v, y] = J(!1), w = Mt(h, Ar.propNames ?? []), P = Mt(h, bu.propNames ?? []), O = oe(() => {
|
|
26673
26680
|
$(!1), s(!1), y(!1);
|
|
26674
26681
|
}, [s]), k = oe(() => {
|
|
26675
26682
|
s(!0), y(!0);
|
|
26676
26683
|
}, [s]), _ = oe(
|
|
26677
26684
|
(D) => {
|
|
26678
26685
|
if (n && n === r) {
|
|
26679
|
-
|
|
26686
|
+
O();
|
|
26680
26687
|
return;
|
|
26681
26688
|
}
|
|
26682
26689
|
$(!0), (async () => {
|
|
@@ -26686,16 +26693,16 @@ const Xm = (e, t, r, n = []) => {
|
|
|
26686
26693
|
throw new Error("failed to handle async inline edit change");
|
|
26687
26694
|
}
|
|
26688
26695
|
})().then(() => {
|
|
26689
|
-
|
|
26696
|
+
O();
|
|
26690
26697
|
}).catch(() => {
|
|
26691
|
-
|
|
26698
|
+
O();
|
|
26692
26699
|
});
|
|
26693
26700
|
},
|
|
26694
|
-
[n, i,
|
|
26701
|
+
[n, i, O, r]
|
|
26695
26702
|
);
|
|
26696
26703
|
X(() => {
|
|
26697
26704
|
const D = () => {
|
|
26698
|
-
|
|
26705
|
+
O(), l();
|
|
26699
26706
|
};
|
|
26700
26707
|
return document.addEventListener(
|
|
26701
26708
|
"mousedown",
|
|
@@ -26704,7 +26711,7 @@ const Xm = (e, t, r, n = []) => {
|
|
|
26704
26711
|
"mousedown",
|
|
26705
26712
|
(j) => Xm(j, b, D, m)
|
|
26706
26713
|
);
|
|
26707
|
-
}, [m, l,
|
|
26714
|
+
}, [m, l, O]), X(() => O, []);
|
|
26708
26715
|
const E = oe(() => u && typeof u == "string" ? /* @__PURE__ */ x(tt, { bold: !0, size: "medium", htmlFor: u, color: f.color_gray_52, onClick: () => !c && k(), mb: f.spacing_100, children: u }) : /* @__PURE__ */ x(Hr, { children: u }), [c, k, u]);
|
|
26709
26716
|
if (v)
|
|
26710
26717
|
return /* @__PURE__ */ ie(Hr, { children: [
|
|
@@ -26977,7 +26984,7 @@ const fN = C.span`
|
|
|
26977
26984
|
), { buttonProps: y } = uo(
|
|
26978
26985
|
{ ...g, autoFocus: r, excludeFromTabOrder: o, isDisabled: i },
|
|
26979
26986
|
p
|
|
26980
|
-
), w = h.selectionManager.isSelectAll, P = !w && !h.selectionManager.isEmpty,
|
|
26987
|
+
), w = h.selectionManager.isSelectAll, P = !w && !h.selectionManager.isEmpty, O = s, k = () => h.selectionManager.toggleSelectAll(), _ = (E) => {
|
|
26981
26988
|
var F;
|
|
26982
26989
|
return /* @__PURE__ */ x("span", { className: "truncate block", children: E.length > 1 ? E.map((D) => D.textValue).join(", ") : (F = E[0]) == null ? void 0 : F.textValue });
|
|
26983
26990
|
};
|
|
@@ -27010,7 +27017,7 @@ const fN = C.span`
|
|
|
27010
27017
|
}
|
|
27011
27018
|
) }),
|
|
27012
27019
|
h.isOpen ? /* @__PURE__ */ ie(Ju, { state: h, triggerRef: p, children: [
|
|
27013
|
-
|
|
27020
|
+
O ? /* @__PURE__ */ ie(Hr, { children: [
|
|
27014
27021
|
s ? /* @__PURE__ */ ie(eo, { type: "button", onClick: k, children: [
|
|
27015
27022
|
/* @__PURE__ */ x(
|
|
27016
27023
|
Gu,
|
|
@@ -27051,7 +27058,7 @@ const df = K.createContext({
|
|
|
27051
27058
|
}
|
|
27052
27059
|
}), bN = C.div`
|
|
27053
27060
|
position: relative;
|
|
27054
|
-
`, bo =
|
|
27061
|
+
`, bo = B((e, t) => {
|
|
27055
27062
|
const [r, n] = J(!1), o = Ct(t);
|
|
27056
27063
|
return X(() => {
|
|
27057
27064
|
const a = document.getElementById(cf);
|
|
@@ -27241,7 +27248,7 @@ const QB = Object.assign(bo, {
|
|
|
27241
27248
|
const { "data-id": n, children: o } = t;
|
|
27242
27249
|
return /* @__PURE__ */ x(ot, { ref: r, "data-id": n, borderRadius: f.border_radius_800, padding: f.spacing_400, border: `1px solid ${f.color_gray_opacity_12}`, children: o });
|
|
27243
27250
|
}
|
|
27244
|
-
), D2 = "Radio", [DN, S2] = je(D2), [SN, PN] = DN(D2), TN = /* @__PURE__ */
|
|
27251
|
+
), D2 = "Radio", [DN, S2] = je(D2), [SN, PN] = DN(D2), TN = /* @__PURE__ */ B((e, t) => {
|
|
27245
27252
|
const { __scopeRadio: r, name: n, checked: o = !1, required: a, disabled: i, value: s = "on", onCheck: l, ...c } = e, [d, u] = J(null), p = _e(
|
|
27246
27253
|
t,
|
|
27247
27254
|
(b) => u(b)
|
|
@@ -27275,7 +27282,7 @@ const QB = Object.assign(bo, {
|
|
|
27275
27282
|
transform: "translateX(-100%)"
|
|
27276
27283
|
}
|
|
27277
27284
|
}));
|
|
27278
|
-
}), kN = "RadioIndicator", EN = /* @__PURE__ */
|
|
27285
|
+
}), kN = "RadioIndicator", EN = /* @__PURE__ */ B((e, t) => {
|
|
27279
27286
|
const { __scopeRadio: r, forceMount: n, ...o } = e, a = PN(kN, r);
|
|
27280
27287
|
return /* @__PURE__ */ S(He, {
|
|
27281
27288
|
present: n || a.checked
|
|
@@ -27327,7 +27334,7 @@ const RN = [
|
|
|
27327
27334
|
], T2 = "RadioGroup", [AN, ij] = je(T2, [
|
|
27328
27335
|
ho,
|
|
27329
27336
|
S2
|
|
27330
|
-
]), k2 = ho(), E2 = S2(), [IN, ON] = AN(T2), MN = /* @__PURE__ */
|
|
27337
|
+
]), k2 = ho(), E2 = S2(), [IN, ON] = AN(T2), MN = /* @__PURE__ */ B((e, t) => {
|
|
27331
27338
|
const { __scopeRadioGroup: r, name: n, defaultValue: o, value: a, required: i = !1, disabled: s = !1, orientation: l, dir: c, loop: d = !0, onValueChange: u, ...p } = e, m = k2(r), h = oo(c), [b, g] = qe({
|
|
27332
27339
|
prop: a,
|
|
27333
27340
|
defaultProp: o,
|
|
@@ -27355,7 +27362,7 @@ const RN = [
|
|
|
27355
27362
|
}, p, {
|
|
27356
27363
|
ref: t
|
|
27357
27364
|
}))));
|
|
27358
|
-
}), NN = "RadioGroupItem", FN = /* @__PURE__ */
|
|
27365
|
+
}), NN = "RadioGroupItem", FN = /* @__PURE__ */ B((e, t) => {
|
|
27359
27366
|
const { __scopeRadioGroup: r, disabled: n, ...o } = e, a = ON(NN, r), i = a.disabled || n, s = k2(r), l = E2(r), c = z(null), d = _e(t, c), u = a.value === o.value, p = z(!1);
|
|
27360
27367
|
return X(() => {
|
|
27361
27368
|
const m = (b) => {
|
|
@@ -27385,7 +27392,7 @@ const RN = [
|
|
|
27385
27392
|
p.current && ((m = c.current) === null || m === void 0 || m.click());
|
|
27386
27393
|
})
|
|
27387
27394
|
})));
|
|
27388
|
-
}), LN = /* @__PURE__ */
|
|
27395
|
+
}), LN = /* @__PURE__ */ B((e, t) => {
|
|
27389
27396
|
const { __scopeRadioGroup: r, ...n } = e, o = E2(r);
|
|
27390
27397
|
return /* @__PURE__ */ S(EN, I({}, o, n, {
|
|
27391
27398
|
ref: t
|
|
@@ -29332,7 +29339,7 @@ process.env.NODE_ENV !== "production" && (Dd.propTypes = {
|
|
|
29332
29339
|
/**
|
|
29333
29340
|
* Your component tree.
|
|
29334
29341
|
*/
|
|
29335
|
-
children:
|
|
29342
|
+
children: pe.node.isRequired,
|
|
29336
29343
|
/**
|
|
29337
29344
|
* You can disable the generation of the styles with this option.
|
|
29338
29345
|
* It can be useful when traversing the React tree outside of the HTML
|
|
@@ -29340,25 +29347,25 @@ process.env.NODE_ENV !== "production" && (Dd.propTypes = {
|
|
|
29340
29347
|
* Let's say you are using react-apollo to extract all
|
|
29341
29348
|
* the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
|
|
29342
29349
|
*/
|
|
29343
|
-
disableGeneration:
|
|
29350
|
+
disableGeneration: pe.bool,
|
|
29344
29351
|
/**
|
|
29345
29352
|
* JSS's class name generator.
|
|
29346
29353
|
*/
|
|
29347
|
-
generateClassName:
|
|
29354
|
+
generateClassName: pe.func,
|
|
29348
29355
|
/**
|
|
29349
29356
|
* By default, the styles are injected last in the <head> element of the page.
|
|
29350
29357
|
* As a result, they gain more specificity than any other style sheet.
|
|
29351
29358
|
* If you want to override Material-UI's styles, set this prop.
|
|
29352
29359
|
*/
|
|
29353
|
-
injectFirst:
|
|
29360
|
+
injectFirst: pe.bool,
|
|
29354
29361
|
/**
|
|
29355
29362
|
* JSS's instance.
|
|
29356
29363
|
*/
|
|
29357
|
-
jss:
|
|
29364
|
+
jss: pe.object,
|
|
29358
29365
|
/**
|
|
29359
29366
|
* @ignore
|
|
29360
29367
|
*/
|
|
29361
|
-
serverGenerateClassName:
|
|
29368
|
+
serverGenerateClassName: pe.func,
|
|
29362
29369
|
/**
|
|
29363
29370
|
* @ignore
|
|
29364
29371
|
*
|
|
@@ -29366,7 +29373,7 @@ process.env.NODE_ENV !== "production" && (Dd.propTypes = {
|
|
|
29366
29373
|
*
|
|
29367
29374
|
* Cache for the sheets.
|
|
29368
29375
|
*/
|
|
29369
|
-
sheetsCache:
|
|
29376
|
+
sheetsCache: pe.object,
|
|
29370
29377
|
/**
|
|
29371
29378
|
* @ignore
|
|
29372
29379
|
*
|
|
@@ -29374,13 +29381,13 @@ process.env.NODE_ENV !== "production" && (Dd.propTypes = {
|
|
|
29374
29381
|
* It's deduplicating using the (theme, styles) couple.
|
|
29375
29382
|
* On the server, you should provide a new instance for each request.
|
|
29376
29383
|
*/
|
|
29377
|
-
sheetsManager:
|
|
29384
|
+
sheetsManager: pe.object,
|
|
29378
29385
|
/**
|
|
29379
29386
|
* @ignore
|
|
29380
29387
|
*
|
|
29381
29388
|
* Collect the sheets.
|
|
29382
29389
|
*/
|
|
29383
|
-
sheetsRegistry:
|
|
29390
|
+
sheetsRegistry: pe.object
|
|
29384
29391
|
});
|
|
29385
29392
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (Dd.propTypes = HN(Dd.propTypes));
|
|
29386
29393
|
var ac = -1e9;
|
|
@@ -29620,12 +29627,12 @@ var uz = function(t) {
|
|
|
29620
29627
|
/**
|
|
29621
29628
|
* Override or extend the styles applied to the component.
|
|
29622
29629
|
*/
|
|
29623
|
-
classes:
|
|
29630
|
+
classes: pe.object,
|
|
29624
29631
|
/**
|
|
29625
29632
|
* Use that prop to pass a ref to the decorated component.
|
|
29626
29633
|
* @deprecated
|
|
29627
29634
|
*/
|
|
29628
|
-
innerRef: M2(
|
|
29635
|
+
innerRef: M2(pe.oneOfType([pe.func, pe.object]), function(m) {
|
|
29629
29636
|
return m.innerRef == null, null;
|
|
29630
29637
|
})
|
|
29631
29638
|
}), process.env.NODE_ENV !== "production" && (p.displayName = "WithStyles(".concat(Fo(n), ")")), dz(p, n), process.env.NODE_ENV !== "production" && (p.Naked = n, p.options = r, p.useStyles = u), p;
|
|
@@ -30025,11 +30032,11 @@ const theme2 = createTheme({ palette: {
|
|
|
30025
30032
|
primary: { main: green[500] },
|
|
30026
30033
|
} });`) : Bi(5, JSON.stringify(E.main)));
|
|
30027
30034
|
return $h(E, "light", D, v), $h(E, "dark", j, v), E.contrastText || (E.contrastText = w(E.main)), E;
|
|
30028
|
-
},
|
|
30035
|
+
}, O = {
|
|
30029
30036
|
dark: fc,
|
|
30030
30037
|
light: vh
|
|
30031
30038
|
};
|
|
30032
|
-
process.env.NODE_ENV !== "production" && (
|
|
30039
|
+
process.env.NODE_ENV !== "production" && (O[h] || console.error("Material-UI: The palette type `".concat(h, "` is not supported.")));
|
|
30033
30040
|
var k = ro(I({
|
|
30034
30041
|
// A collection of common colors.
|
|
30035
30042
|
common: Wi,
|
|
@@ -30060,7 +30067,7 @@ const theme2 = createTheme({ palette: {
|
|
|
30060
30067
|
// two indexes within its tonal palette.
|
|
30061
30068
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
30062
30069
|
tonalOffset: v
|
|
30063
|
-
},
|
|
30070
|
+
}, O[h]), y);
|
|
30064
30071
|
return k;
|
|
30065
30072
|
}
|
|
30066
30073
|
function a5(e) {
|
|
@@ -30079,7 +30086,7 @@ function Ez(e, t) {
|
|
|
30079
30086
|
process.env.NODE_ENV !== "production" && (typeof i != "number" && console.error("Material-UI: `fontSize` is required to be a number."), typeof g != "number" && console.error("Material-UI: `htmlFontSize` is required to be a number."));
|
|
30080
30087
|
var w = i / 14, P = v || function(_) {
|
|
30081
30088
|
return "".concat(_ / g * w, "rem");
|
|
30082
|
-
},
|
|
30089
|
+
}, O = function(E, F, D, j, M) {
|
|
30083
30090
|
return I({
|
|
30084
30091
|
fontFamily: o,
|
|
30085
30092
|
fontWeight: E,
|
|
@@ -30088,21 +30095,21 @@ function Ez(e, t) {
|
|
|
30088
30095
|
lineHeight: D
|
|
30089
30096
|
}, o === xh ? {
|
|
30090
30097
|
letterSpacing: "".concat(a5(j / F), "em")
|
|
30091
|
-
} : {},
|
|
30098
|
+
} : {}, M, $);
|
|
30092
30099
|
}, k = {
|
|
30093
|
-
h1:
|
|
30094
|
-
h2:
|
|
30095
|
-
h3:
|
|
30096
|
-
h4:
|
|
30097
|
-
h5:
|
|
30098
|
-
h6:
|
|
30099
|
-
subtitle1:
|
|
30100
|
-
subtitle2:
|
|
30101
|
-
body1:
|
|
30102
|
-
body2:
|
|
30103
|
-
button:
|
|
30104
|
-
caption:
|
|
30105
|
-
overline:
|
|
30100
|
+
h1: O(l, 96, 1.167, -1.5),
|
|
30101
|
+
h2: O(l, 60, 1.2, -0.5),
|
|
30102
|
+
h3: O(d, 48, 1.167, 0),
|
|
30103
|
+
h4: O(d, 34, 1.235, 0.25),
|
|
30104
|
+
h5: O(d, 24, 1.334, 0),
|
|
30105
|
+
h6: O(p, 20, 1.6, 0.15),
|
|
30106
|
+
subtitle1: O(d, 16, 1.75, 0.15),
|
|
30107
|
+
subtitle2: O(p, 14, 1.57, 0.1),
|
|
30108
|
+
body1: O(d, 16, 1.5, 0.15),
|
|
30109
|
+
body2: O(d, 14, 1.43, 0.15),
|
|
30110
|
+
button: O(p, 14, 1.75, 0.4, _h),
|
|
30111
|
+
caption: O(d, 12, 1.66, 0.4),
|
|
30112
|
+
overline: O(d, 12, 2.66, 1, _h)
|
|
30106
30113
|
};
|
|
30107
30114
|
return ro(I({
|
|
30108
30115
|
htmlFontSize: g,
|
|
@@ -30130,7 +30137,7 @@ var Mz = {
|
|
|
30130
30137
|
borderRadius: 4
|
|
30131
30138
|
};
|
|
30132
30139
|
const Nz = Mz;
|
|
30133
|
-
var Fz = process.env.NODE_ENV !== "production" ?
|
|
30140
|
+
var Fz = process.env.NODE_ENV !== "production" ? pe.oneOfType([pe.number, pe.string, pe.object, pe.array]) : {};
|
|
30134
30141
|
const Lz = Fz;
|
|
30135
30142
|
var zz = ["m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY"];
|
|
30136
30143
|
function Kz(e) {
|
|
@@ -30252,11 +30259,11 @@ function Wz() {
|
|
|
30252
30259
|
if (h = g.reduce(function(w, P) {
|
|
30253
30260
|
return ro(w, P);
|
|
30254
30261
|
}, h), process.env.NODE_ENV !== "production") {
|
|
30255
|
-
var v = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"], y = function w(P,
|
|
30262
|
+
var v = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"], y = function w(P, O) {
|
|
30256
30263
|
var k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, _;
|
|
30257
30264
|
for (_ in P) {
|
|
30258
30265
|
var E = P[_];
|
|
30259
|
-
k === 1 ? _.indexOf("Mui") === 0 && E && w(E, _, k + 1) : v.indexOf(_) !== -1 && Object.keys(E).length > 0 && (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `".concat(
|
|
30266
|
+
k === 1 ? _.indexOf("Mui") === 0 && E && w(E, _, k + 1) : v.indexOf(_) !== -1 && Object.keys(E).length > 0 && (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `".concat(O, "` component increases ") + "the CSS specificity of the `".concat(_, "` internal state."), "You can not override it like this: ", JSON.stringify(P, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
|
|
30260
30267
|
root: Ln({}, "&$".concat(_), E)
|
|
30261
30268
|
}, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join(`
|
|
30262
30269
|
`)), P[_] = {});
|
|
@@ -30341,30 +30348,30 @@ process.env.NODE_ENV !== "production" && (_f.propTypes = {
|
|
|
30341
30348
|
/**
|
|
30342
30349
|
* Node passed into the SVG element.
|
|
30343
30350
|
*/
|
|
30344
|
-
children:
|
|
30351
|
+
children: pe.node,
|
|
30345
30352
|
/**
|
|
30346
30353
|
* Override or extend the styles applied to the component.
|
|
30347
30354
|
* See [CSS API](#css) below for more details.
|
|
30348
30355
|
*/
|
|
30349
|
-
classes:
|
|
30356
|
+
classes: pe.object,
|
|
30350
30357
|
/**
|
|
30351
30358
|
* @ignore
|
|
30352
30359
|
*/
|
|
30353
|
-
className:
|
|
30360
|
+
className: pe.string,
|
|
30354
30361
|
/**
|
|
30355
30362
|
* The color of the component. It supports those theme colors that make sense for this component.
|
|
30356
30363
|
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
30357
30364
|
*/
|
|
30358
|
-
color:
|
|
30365
|
+
color: pe.oneOf(["action", "disabled", "error", "inherit", "primary", "secondary"]),
|
|
30359
30366
|
/**
|
|
30360
30367
|
* The component used for the root node.
|
|
30361
30368
|
* Either a string to use a HTML element or a component.
|
|
30362
30369
|
*/
|
|
30363
|
-
component:
|
|
30370
|
+
component: pe.elementType,
|
|
30364
30371
|
/**
|
|
30365
30372
|
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
30366
30373
|
*/
|
|
30367
|
-
fontSize: M2(
|
|
30374
|
+
fontSize: M2(pe.oneOf(["default", "inherit", "large", "medium", "small"]), function(e) {
|
|
30368
30375
|
var t = e.fontSize;
|
|
30369
30376
|
if (t === "default")
|
|
30370
30377
|
throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.');
|
|
@@ -30373,18 +30380,18 @@ process.env.NODE_ENV !== "production" && (_f.propTypes = {
|
|
|
30373
30380
|
/**
|
|
30374
30381
|
* Applies a color attribute to the SVG element.
|
|
30375
30382
|
*/
|
|
30376
|
-
htmlColor:
|
|
30383
|
+
htmlColor: pe.string,
|
|
30377
30384
|
/**
|
|
30378
30385
|
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
30379
30386
|
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
30380
30387
|
* If you are having issues with blurry icons you should investigate this property.
|
|
30381
30388
|
*/
|
|
30382
|
-
shapeRendering:
|
|
30389
|
+
shapeRendering: pe.string,
|
|
30383
30390
|
/**
|
|
30384
30391
|
* Provides a human-readable title for the element that contains it.
|
|
30385
30392
|
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
30386
30393
|
*/
|
|
30387
|
-
titleAccess:
|
|
30394
|
+
titleAccess: pe.string,
|
|
30388
30395
|
/**
|
|
30389
30396
|
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
30390
30397
|
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
@@ -30392,7 +30399,7 @@ process.env.NODE_ENV !== "production" && (_f.propTypes = {
|
|
|
30392
30399
|
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
30393
30400
|
* to bottom right (50,20) and each unit will be worth 10px.
|
|
30394
30401
|
*/
|
|
30395
|
-
viewBox:
|
|
30402
|
+
viewBox: pe.string
|
|
30396
30403
|
});
|
|
30397
30404
|
_f.muiName = "SvgIcon";
|
|
30398
30405
|
const Th = Yz(qz, {
|
|
@@ -30889,7 +30896,7 @@ const CK = C.div`
|
|
|
30889
30896
|
&::-webkit-search-results-decoration {
|
|
30890
30897
|
-webkit-appearance: none;
|
|
30891
30898
|
}
|
|
30892
|
-
`, IK =
|
|
30899
|
+
`, IK = B(
|
|
30893
30900
|
(e, t) => {
|
|
30894
30901
|
const {
|
|
30895
30902
|
label: r,
|
|
@@ -31189,7 +31196,7 @@ function cj(e) {
|
|
|
31189
31196
|
t.isOpen ? /* @__PURE__ */ x(Ju, { state: t, triggerRef: o, children: /* @__PURE__ */ x(lw, { ...l, state: t }) }) : null
|
|
31190
31197
|
] });
|
|
31191
31198
|
}
|
|
31192
|
-
const W5 = "Switch", [VK, dj] = je(W5), [BK, jK] = VK(W5), UK = /* @__PURE__ */
|
|
31199
|
+
const W5 = "Switch", [VK, dj] = je(W5), [BK, jK] = VK(W5), UK = /* @__PURE__ */ B((e, t) => {
|
|
31193
31200
|
const { __scopeSwitch: r, name: n, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: c, ...d } = e, [u, p] = J(null), m = _e(
|
|
31194
31201
|
t,
|
|
31195
31202
|
(v) => p(v)
|
|
@@ -31230,7 +31237,7 @@ const W5 = "Switch", [VK, dj] = je(W5), [BK, jK] = VK(W5), UK = /* @__PURE__ */
|
|
|
31230
31237
|
transform: "translateX(-100%)"
|
|
31231
31238
|
}
|
|
31232
31239
|
}));
|
|
31233
|
-
}), WK = "SwitchThumb", HK = /* @__PURE__ */
|
|
31240
|
+
}), WK = "SwitchThumb", HK = /* @__PURE__ */ B((e, t) => {
|
|
31234
31241
|
const { __scopeSwitch: r, ...n } = e, o = jK(WK, r);
|
|
31235
31242
|
return /* @__PURE__ */ S(he.span, I({
|
|
31236
31243
|
"data-state": H5(o.checked),
|
|
@@ -31332,14 +31339,14 @@ const YK = UK, qK = HK, ZK = C(YK)`
|
|
|
31332
31339
|
&[data-state~='checked'] {
|
|
31333
31340
|
transform: translateX(19px);
|
|
31334
31341
|
}
|
|
31335
|
-
`, JK =
|
|
31342
|
+
`, JK = B((e, t) => {
|
|
31336
31343
|
const { disabled: r, ...n } = e, o = H_(r);
|
|
31337
31344
|
return /* @__PURE__ */ x(ZK, { ...n, ...o, ref: t, children: /* @__PURE__ */ x(XK, {}) });
|
|
31338
31345
|
});
|
|
31339
31346
|
JK.displayName = "Switch";
|
|
31340
31347
|
const G5 = "Tabs", [QK, uj] = je(G5, [
|
|
31341
31348
|
ho
|
|
31342
|
-
]), Y5 = ho(), [eV, wf] = QK(G5), tV = /* @__PURE__ */
|
|
31349
|
+
]), Y5 = ho(), [eV, wf] = QK(G5), tV = /* @__PURE__ */ B((e, t) => {
|
|
31343
31350
|
const { __scopeTabs: r, value: n, onValueChange: o, defaultValue: a, orientation: i = "horizontal", dir: s, activationMode: l = "automatic", ...c } = e, d = oo(s), [u, p] = qe({
|
|
31344
31351
|
prop: n,
|
|
31345
31352
|
onChange: o,
|
|
@@ -31359,7 +31366,7 @@ const G5 = "Tabs", [QK, uj] = je(G5, [
|
|
|
31359
31366
|
}, c, {
|
|
31360
31367
|
ref: t
|
|
31361
31368
|
})));
|
|
31362
|
-
}), rV = "TabsList", nV = /* @__PURE__ */
|
|
31369
|
+
}), rV = "TabsList", nV = /* @__PURE__ */ B((e, t) => {
|
|
31363
31370
|
const { __scopeTabs: r, loop: n = !0, ...o } = e, a = wf(rV, r), i = Y5(r);
|
|
31364
31371
|
return /* @__PURE__ */ S(tf, I({
|
|
31365
31372
|
asChild: !0
|
|
@@ -31373,7 +31380,7 @@ const G5 = "Tabs", [QK, uj] = je(G5, [
|
|
|
31373
31380
|
}, o, {
|
|
31374
31381
|
ref: t
|
|
31375
31382
|
})));
|
|
31376
|
-
}), oV = "TabsTrigger", aV = /* @__PURE__ */
|
|
31383
|
+
}), oV = "TabsTrigger", aV = /* @__PURE__ */ B((e, t) => {
|
|
31377
31384
|
const { __scopeTabs: r, value: n, disabled: o = !1, ...a } = e, i = wf(oV, r), s = Y5(r), l = q5(i.baseId, n), c = Z5(i.baseId, n), d = n === i.value;
|
|
31378
31385
|
return /* @__PURE__ */ S(rf, I({
|
|
31379
31386
|
asChild: !0
|
|
@@ -31405,7 +31412,7 @@ const G5 = "Tabs", [QK, uj] = je(G5, [
|
|
|
31405
31412
|
!d && !o && u && i.onValueChange(n);
|
|
31406
31413
|
})
|
|
31407
31414
|
})));
|
|
31408
|
-
}), iV = "TabsContent", sV = /* @__PURE__ */
|
|
31415
|
+
}), iV = "TabsContent", sV = /* @__PURE__ */ B((e, t) => {
|
|
31409
31416
|
const { __scopeTabs: r, value: n, forceMount: o, children: a, ...i } = e, s = wf(iV, r), l = q5(s.baseId, n), c = Z5(s.baseId, n), d = n === s.value, u = z(d);
|
|
31410
31417
|
return X(() => {
|
|
31411
31418
|
const p = requestAnimationFrame(
|
|
@@ -31615,7 +31622,7 @@ Df.Content = fV;
|
|
|
31615
31622
|
const Td = "horizontal", pV = [
|
|
31616
31623
|
"horizontal",
|
|
31617
31624
|
"vertical"
|
|
31618
|
-
], iD = /* @__PURE__ */
|
|
31625
|
+
], iD = /* @__PURE__ */ B((e, t) => {
|
|
31619
31626
|
const { decorative: r, orientation: n = Td, ...o } = e, a = sD(n) ? n : Td, s = r ? {
|
|
31620
31627
|
role: "none"
|
|
31621
31628
|
} : {
|
|
@@ -31686,7 +31693,7 @@ dD.propTypes = {
|
|
|
31686
31693
|
};
|
|
31687
31694
|
const $V = "ToastViewport", yV = [
|
|
31688
31695
|
"F8"
|
|
31689
|
-
], kd = "toast.viewportPause", Ed = "toast.viewportResume", _V = /* @__PURE__ */
|
|
31696
|
+
], kd = "toast.viewportPause", Ed = "toast.viewportResume", _V = /* @__PURE__ */ B((e, t) => {
|
|
31690
31697
|
const { __scopeToast: r, hotkey: n = yV, label: o = "Notifications ({hotkey})", ...a } = e, i = Ys($V, r), s = bV(r), l = z(null), c = z(null), d = z(null), u = z(null), p = _e(t, u, i.onViewportChange), m = n.join("+").replace(/Key/g, "").replace(/Digit/g, ""), h = i.toastCount > 0;
|
|
31691
31698
|
X(() => {
|
|
31692
31699
|
const g = ($) => {
|
|
@@ -31703,16 +31710,16 @@ const $V = "ToastViewport", yV = [
|
|
|
31703
31710
|
if (h && g && $) {
|
|
31704
31711
|
const v = () => {
|
|
31705
31712
|
if (!i.isClosePausedRef.current) {
|
|
31706
|
-
const
|
|
31707
|
-
$.dispatchEvent(
|
|
31713
|
+
const O = new CustomEvent(kd);
|
|
31714
|
+
$.dispatchEvent(O), i.isClosePausedRef.current = !0;
|
|
31708
31715
|
}
|
|
31709
31716
|
}, y = () => {
|
|
31710
31717
|
if (i.isClosePausedRef.current) {
|
|
31711
|
-
const
|
|
31712
|
-
$.dispatchEvent(
|
|
31718
|
+
const O = new CustomEvent(Ed);
|
|
31719
|
+
$.dispatchEvent(O), i.isClosePausedRef.current = !1;
|
|
31713
31720
|
}
|
|
31714
|
-
}, w = (
|
|
31715
|
-
!g.contains(
|
|
31721
|
+
}, w = (O) => {
|
|
31722
|
+
!g.contains(O.relatedTarget) && y();
|
|
31716
31723
|
}, P = () => {
|
|
31717
31724
|
g.contains(document.activeElement) || y();
|
|
31718
31725
|
};
|
|
@@ -31750,14 +31757,14 @@ const $V = "ToastViewport", yV = [
|
|
|
31750
31757
|
}
|
|
31751
31758
|
const j = b({
|
|
31752
31759
|
tabbingDirection: E ? "backwards" : "forwards"
|
|
31753
|
-
}),
|
|
31760
|
+
}), M = j.findIndex(
|
|
31754
31761
|
(R) => R === _
|
|
31755
31762
|
);
|
|
31756
|
-
if (mc(j.slice(
|
|
31763
|
+
if (mc(j.slice(M + 1)))
|
|
31757
31764
|
v.preventDefault();
|
|
31758
31765
|
else {
|
|
31759
|
-
var
|
|
31760
|
-
E ? (
|
|
31766
|
+
var O, k;
|
|
31767
|
+
E ? (O = c.current) === null || O === void 0 || O.focus() : (k = d.current) === null || k === void 0 || k.focus();
|
|
31761
31768
|
}
|
|
31762
31769
|
}
|
|
31763
31770
|
};
|
|
@@ -31797,7 +31804,7 @@ const $V = "ToastViewport", yV = [
|
|
|
31797
31804
|
mc(g);
|
|
31798
31805
|
}
|
|
31799
31806
|
}));
|
|
31800
|
-
}), xV = "ToastFocusProxy", Ah = /* @__PURE__ */
|
|
31807
|
+
}), xV = "ToastFocusProxy", Ah = /* @__PURE__ */ B((e, t) => {
|
|
31801
31808
|
const { __scopeToast: r, onFocusFromOutsideViewport: n, ...o } = e, a = Ys(xV, r);
|
|
31802
31809
|
return /* @__PURE__ */ S(Xi, I({
|
|
31803
31810
|
"aria-hidden": !0,
|
|
@@ -31813,7 +31820,7 @@ const $V = "ToastViewport", yV = [
|
|
|
31813
31820
|
!((s = a.viewport) !== null && s !== void 0 && s.contains(l)) && n();
|
|
31814
31821
|
}
|
|
31815
31822
|
}));
|
|
31816
|
-
}), qs = "Toast", wV = "toast.swipeStart", DV = "toast.swipeMove", SV = "toast.swipeCancel", PV = "toast.swipeEnd", TV = /* @__PURE__ */
|
|
31823
|
+
}), qs = "Toast", wV = "toast.swipeStart", DV = "toast.swipeMove", SV = "toast.swipeCancel", PV = "toast.swipeEnd", TV = /* @__PURE__ */ B((e, t) => {
|
|
31817
31824
|
const { forceMount: r, open: n, defaultOpen: o, onOpenChange: a, ...i } = e, [s = !0, l] = qe({
|
|
31818
31825
|
prop: n,
|
|
31819
31826
|
defaultProp: o,
|
|
@@ -31846,15 +31853,15 @@ const $V = "ToastViewport", yV = [
|
|
|
31846
31853
|
}), [kV, EV] = cD(qs, {
|
|
31847
31854
|
onClose() {
|
|
31848
31855
|
}
|
|
31849
|
-
}), uD = /* @__PURE__ */
|
|
31856
|
+
}), uD = /* @__PURE__ */ B((e, t) => {
|
|
31850
31857
|
const { __scopeToast: r, type: n = "foreground", duration: o, open: a, onClose: i, onEscapeKeyDown: s, onPause: l, onResume: c, onSwipeStart: d, onSwipeMove: u, onSwipeCancel: p, onSwipeEnd: m, ...h } = e, b = Ys(qs, r), [g, $] = J(null), v = _e(
|
|
31851
31858
|
t,
|
|
31852
31859
|
(R) => $(R)
|
|
31853
|
-
), y = z(null), w = z(null), P = o || b.duration,
|
|
31860
|
+
), y = z(null), w = z(null), P = o || b.duration, O = z(0), k = z(P), _ = z(0), { onToastAdd: E, onToastRemove: F } = b, D = We(() => {
|
|
31854
31861
|
var R;
|
|
31855
31862
|
(g == null ? void 0 : g.contains(document.activeElement)) && ((R = b.viewport) === null || R === void 0 || R.focus()), i();
|
|
31856
31863
|
}), j = oe((R) => {
|
|
31857
|
-
!R || R === 1 / 0 || (window.clearTimeout(_.current),
|
|
31864
|
+
!R || R === 1 / 0 || (window.clearTimeout(_.current), O.current = (/* @__PURE__ */ new Date()).getTime(), _.current = window.setTimeout(D, R));
|
|
31858
31865
|
}, [
|
|
31859
31866
|
D
|
|
31860
31867
|
]);
|
|
@@ -31864,8 +31871,8 @@ const $V = "ToastViewport", yV = [
|
|
|
31864
31871
|
const q = () => {
|
|
31865
31872
|
j(k.current), c == null || c();
|
|
31866
31873
|
}, N = () => {
|
|
31867
|
-
const
|
|
31868
|
-
k.current = k.current -
|
|
31874
|
+
const V = (/* @__PURE__ */ new Date()).getTime() - O.current;
|
|
31875
|
+
k.current = k.current - V, window.clearTimeout(_.current), l == null || l();
|
|
31869
31876
|
};
|
|
31870
31877
|
return R.addEventListener(kd, N), R.addEventListener(Ed, q), () => {
|
|
31871
31878
|
R.removeEventListener(kd, N), R.removeEventListener(Ed, q);
|
|
@@ -31888,15 +31895,15 @@ const $V = "ToastViewport", yV = [
|
|
|
31888
31895
|
E,
|
|
31889
31896
|
F
|
|
31890
31897
|
]);
|
|
31891
|
-
const
|
|
31898
|
+
const M = re(() => g ? hD(g) : null, [
|
|
31892
31899
|
g
|
|
31893
31900
|
]);
|
|
31894
|
-
return b.viewport ? /* @__PURE__ */ S(Cr, null,
|
|
31901
|
+
return b.viewport ? /* @__PURE__ */ S(Cr, null, M && /* @__PURE__ */ S(CV, {
|
|
31895
31902
|
__scopeToast: r,
|
|
31896
31903
|
role: "status",
|
|
31897
31904
|
"aria-live": n === "foreground" ? "assertive" : "polite",
|
|
31898
31905
|
"aria-atomic": !0
|
|
31899
|
-
},
|
|
31906
|
+
}, M), /* @__PURE__ */ S(kV, {
|
|
31900
31907
|
scope: r,
|
|
31901
31908
|
onClose: D
|
|
31902
31909
|
}, /* @__PURE__ */ Hi(/* @__PURE__ */ S(Sf.ItemSlot, {
|
|
@@ -31933,29 +31940,29 @@ const $V = "ToastViewport", yV = [
|
|
|
31933
31940
|
onPointerMove: ne(e.onPointerMove, (R) => {
|
|
31934
31941
|
if (!y.current)
|
|
31935
31942
|
return;
|
|
31936
|
-
const q = R.clientX - y.current.x, N = R.clientY - y.current.y,
|
|
31943
|
+
const q = R.clientX - y.current.x, N = R.clientY - y.current.y, V = !!w.current, U = [
|
|
31937
31944
|
"left",
|
|
31938
31945
|
"right"
|
|
31939
|
-
].includes(b.swipeDirection),
|
|
31946
|
+
].includes(b.swipeDirection), H = [
|
|
31940
31947
|
"left",
|
|
31941
31948
|
"up"
|
|
31942
|
-
].includes(b.swipeDirection) ? Math.min : Math.max, L = U ?
|
|
31949
|
+
].includes(b.swipeDirection) ? Math.min : Math.max, L = U ? H(0, q) : 0, A = U ? 0 : H(0, N), ee = R.pointerType === "touch" ? 10 : 2, G = {
|
|
31943
31950
|
x: L,
|
|
31944
31951
|
y: A
|
|
31945
31952
|
}, Y = {
|
|
31946
31953
|
originalEvent: R,
|
|
31947
|
-
delta:
|
|
31954
|
+
delta: G
|
|
31948
31955
|
};
|
|
31949
|
-
|
|
31956
|
+
V ? (w.current = G, ei(DV, u, Y, {
|
|
31950
31957
|
discrete: !1
|
|
31951
|
-
})) : Ih(
|
|
31958
|
+
})) : Ih(G, b.swipeDirection, ee) ? (w.current = G, ei(wV, d, Y, {
|
|
31952
31959
|
discrete: !1
|
|
31953
31960
|
}), R.target.setPointerCapture(R.pointerId)) : (Math.abs(q) > ee || Math.abs(N) > ee) && (y.current = null);
|
|
31954
31961
|
}),
|
|
31955
31962
|
onPointerUp: ne(e.onPointerUp, (R) => {
|
|
31956
31963
|
const q = w.current, N = R.target;
|
|
31957
31964
|
if (N.hasPointerCapture(R.pointerId) && N.releasePointerCapture(R.pointerId), w.current = null, y.current = null, q) {
|
|
31958
|
-
const
|
|
31965
|
+
const V = R.currentTarget, U = {
|
|
31959
31966
|
originalEvent: R,
|
|
31960
31967
|
delta: q
|
|
31961
31968
|
};
|
|
@@ -31963,9 +31970,9 @@ const $V = "ToastViewport", yV = [
|
|
|
31963
31970
|
discrete: !0
|
|
31964
31971
|
}) : ei(SV, p, U, {
|
|
31965
31972
|
discrete: !0
|
|
31966
|
-
}),
|
|
31973
|
+
}), V.addEventListener(
|
|
31967
31974
|
"click",
|
|
31968
|
-
(
|
|
31975
|
+
(H) => H.preventDefault(),
|
|
31969
31976
|
{
|
|
31970
31977
|
once: !0
|
|
31971
31978
|
}
|
|
@@ -31999,12 +32006,12 @@ const CV = (e) => {
|
|
|
31999
32006
|
}, []), s ? null : /* @__PURE__ */ S(io, {
|
|
32000
32007
|
asChild: !0
|
|
32001
32008
|
}, /* @__PURE__ */ S(Xi, n, a && /* @__PURE__ */ S(Cr, null, o.label, " ", r)));
|
|
32002
|
-
}, RV = /* @__PURE__ */
|
|
32009
|
+
}, RV = /* @__PURE__ */ B((e, t) => {
|
|
32003
32010
|
const { __scopeToast: r, ...n } = e;
|
|
32004
32011
|
return /* @__PURE__ */ S(he.div, I({}, n, {
|
|
32005
32012
|
ref: t
|
|
32006
32013
|
}));
|
|
32007
|
-
}), AV = "ToastAction", fD = /* @__PURE__ */
|
|
32014
|
+
}), AV = "ToastAction", fD = /* @__PURE__ */ B((e, t) => {
|
|
32008
32015
|
const { altText: r, ...n } = e;
|
|
32009
32016
|
return r ? /* @__PURE__ */ S(mD, {
|
|
32010
32017
|
altText: r,
|
|
@@ -32018,7 +32025,7 @@ fD.propTypes = {
|
|
|
32018
32025
|
return e.altText ? null : new Error(`Missing prop \`altText\` expected on \`${AV}\``);
|
|
32019
32026
|
}
|
|
32020
32027
|
};
|
|
32021
|
-
const IV = "ToastClose", pD = /* @__PURE__ */
|
|
32028
|
+
const IV = "ToastClose", pD = /* @__PURE__ */ B((e, t) => {
|
|
32022
32029
|
const { __scopeToast: r, ...n } = e, o = EV(IV, r);
|
|
32023
32030
|
return /* @__PURE__ */ S(mD, {
|
|
32024
32031
|
asChild: !0
|
|
@@ -32028,7 +32035,7 @@ const IV = "ToastClose", pD = /* @__PURE__ */ V((e, t) => {
|
|
|
32028
32035
|
ref: t,
|
|
32029
32036
|
onClick: ne(e.onClick, o.onClose)
|
|
32030
32037
|
})));
|
|
32031
|
-
}), mD = /* @__PURE__ */
|
|
32038
|
+
}), mD = /* @__PURE__ */ B((e, t) => {
|
|
32032
32039
|
const { __scopeToast: r, altText: n, ...o } = e;
|
|
32033
32040
|
return /* @__PURE__ */ S(he.div, I({
|
|
32034
32041
|
"data-radix-toast-announce-exclude": "",
|