@grasp-labs/ds-microfrontends-integration 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/schemaFields/DictionaryField/DictionaryEntry.d.ts +1 -2
- package/dist/components/schemaFields/shared/EntryValueRenderer.d.ts +2 -2
- package/dist/{index-BoXm28ra.js → index-DOUsw_d8.js} +658 -656
- package/dist/{index.esm-fQDYRCEr-Bu5aF9wZ.js → index.esm-fQDYRCEr-DMrT-B4r.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as X, jsxs as Ue, Fragment as Or } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
|
-
import Q, { createContext as Un, useContext as Kn, useState as
|
|
3
|
+
import Q, { createContext as Un, useContext as Kn, useState as Je, useEffect as Ke, useLayoutEffect as En, lazy as pe, useRef as ze, useCallback as _e, forwardRef as xs, cloneElement as Gp, useMemo as bt, useId as Wo, createElement as Da, useReducer as Up, Suspense as Kp, Component as Zp } from "react";
|
|
4
4
|
import * as sn from "react-dom";
|
|
5
5
|
import { createPortal as Xp } from "react-dom";
|
|
6
6
|
import { Controller as At, useWatch as Yc, useController as Qp, get as Jp, useFormState as Gc, useForm as em } from "react-hook-form";
|
|
@@ -78,7 +78,7 @@ const ja = (t, e) => {
|
|
|
78
78
|
}, Yi = "app_language", La = "en", sm = () => typeof window < "u" ? localStorage.getItem(Yi) ?? La : La, Kc = Un(void 0), N7 = (t) => {
|
|
79
79
|
const e = Ve.c(8), {
|
|
80
80
|
children: n
|
|
81
|
-
} = t, [r, o] =
|
|
81
|
+
} = t, [r, o] = Je(lm);
|
|
82
82
|
let i;
|
|
83
83
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = (p) => {
|
|
84
84
|
typeof window < "u" && localStorage.setItem(Yi, p), o(p);
|
|
@@ -159,11 +159,11 @@ function dm() {
|
|
|
159
159
|
switch (typeof O.tag == "number" && console.error(
|
|
160
160
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
161
161
|
), O.$$typeof) {
|
|
162
|
-
case
|
|
162
|
+
case v:
|
|
163
163
|
return "Portal";
|
|
164
164
|
case x:
|
|
165
165
|
return O.displayName || "Context";
|
|
166
|
-
case
|
|
166
|
+
case b:
|
|
167
167
|
return (O._context.displayName || "Context") + ".Consumer";
|
|
168
168
|
case k:
|
|
169
169
|
var $ = O.render;
|
|
@@ -329,7 +329,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
329
329
|
function p(O) {
|
|
330
330
|
return typeof O == "object" && O !== null && O.$$typeof === m;
|
|
331
331
|
}
|
|
332
|
-
var h = Q, m = /* @__PURE__ */ Symbol.for("react.transitional.element"),
|
|
332
|
+
var h = Q, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), y = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.consumer"), x = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.forward_ref"), S = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), A = /* @__PURE__ */ Symbol.for("react.lazy"), L = /* @__PURE__ */ Symbol.for("react.activity"), R = /* @__PURE__ */ Symbol.for("react.client.reference"), D = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, T = Array.isArray, W = console.createTask ? console.createTask : function() {
|
|
333
333
|
return null;
|
|
334
334
|
};
|
|
335
335
|
h = {
|
|
@@ -515,15 +515,15 @@ const pm = (t, e) => {
|
|
|
515
515
|
const i = [];
|
|
516
516
|
let s = 0, a = 0, l = 0, c;
|
|
517
517
|
const u = o.length;
|
|
518
|
-
for (let
|
|
519
|
-
const y = o[
|
|
518
|
+
for (let v = 0; v < u; v++) {
|
|
519
|
+
const y = o[v];
|
|
520
520
|
if (s === 0 && a === 0) {
|
|
521
521
|
if (y === Wa) {
|
|
522
|
-
i.push(o.slice(l,
|
|
522
|
+
i.push(o.slice(l, v)), l = v + 1;
|
|
523
523
|
continue;
|
|
524
524
|
}
|
|
525
525
|
if (y === "/") {
|
|
526
|
-
c =
|
|
526
|
+
c = v;
|
|
527
527
|
continue;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
@@ -585,13 +585,13 @@ const pm = (t, e) => {
|
|
|
585
585
|
modifiers: p,
|
|
586
586
|
hasImportantModifier: h,
|
|
587
587
|
baseClassName: m,
|
|
588
|
-
maybePostfixModifierPosition:
|
|
588
|
+
maybePostfixModifierPosition: v
|
|
589
589
|
} = n(u);
|
|
590
590
|
if (d) {
|
|
591
591
|
l = u + (l.length > 0 ? " " + l : l);
|
|
592
592
|
continue;
|
|
593
593
|
}
|
|
594
|
-
let y = !!
|
|
594
|
+
let y = !!v, g = r(y ? m.substring(0, v) : m);
|
|
595
595
|
if (!g) {
|
|
596
596
|
if (!y) {
|
|
597
597
|
l = u + (l.length > 0 ? " " + l : l);
|
|
@@ -603,14 +603,14 @@ const pm = (t, e) => {
|
|
|
603
603
|
}
|
|
604
604
|
y = !1;
|
|
605
605
|
}
|
|
606
|
-
const f = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"),
|
|
606
|
+
const f = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"), b = h ? f + Gi : f, x = b + g;
|
|
607
607
|
if (s.indexOf(x) > -1)
|
|
608
608
|
continue;
|
|
609
609
|
s.push(x);
|
|
610
610
|
const k = o(g, y);
|
|
611
611
|
for (let S = 0; S < k.length; ++S) {
|
|
612
612
|
const M = k[S];
|
|
613
|
-
s.push(
|
|
613
|
+
s.push(b + M);
|
|
614
614
|
}
|
|
615
615
|
l = u + (l.length > 0 ? " " + l : l);
|
|
616
616
|
}
|
|
@@ -640,7 +640,7 @@ const pm = (t, e) => {
|
|
|
640
640
|
return o(l, u), u;
|
|
641
641
|
};
|
|
642
642
|
return i = s, (...l) => i(Jc(...l));
|
|
643
|
-
}, Pm = [],
|
|
643
|
+
}, Pm = [], et = (t) => {
|
|
644
644
|
const e = (n) => n[t] || Pm;
|
|
645
645
|
return e.isThemeGetter = !0, e;
|
|
646
646
|
}, tu = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, nu = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Rm = /^\d+\/\d+$/, jm = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Lm = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Am = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Vm = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zm = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Nn = (t) => Rm.test(t), me = (t) => !!t && !Number.isNaN(Number(t)), Qt = (t) => !!t && Number.isInteger(Number(t)), ci = (t) => t.endsWith("%") && me(t.slice(0, -1)), Ft = (t) => jm.test(t), Fm = () => !0, Wm = (t) => (
|
|
@@ -655,7 +655,7 @@ const pm = (t, e) => {
|
|
|
655
655
|
const r = nu.exec(t);
|
|
656
656
|
return r ? r[1] ? e(r[1]) : n : !1;
|
|
657
657
|
}, ou = (t) => t === "position" || t === "percentage", iu = (t) => t === "image" || t === "url", su = (t) => t === "length" || t === "size" || t === "bg-size", au = (t) => t === "length", Zm = (t) => t === "number", Xm = (t) => t === "family-name", lu = (t) => t === "shadow", Qm = () => {
|
|
658
|
-
const t =
|
|
658
|
+
const t = et("color"), e = et("font"), n = et("text"), r = et("font-weight"), o = et("tracking"), i = et("leading"), s = et("breakpoint"), a = et("container"), l = et("spacing"), c = et("radius"), u = et("shadow"), d = et("inset-shadow"), p = et("text-shadow"), h = et("drop-shadow"), m = et("blur"), v = et("perspective"), y = et("aspect"), g = et("ease"), f = et("animate"), b = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [
|
|
659
659
|
"center",
|
|
660
660
|
"top",
|
|
661
661
|
"bottom",
|
|
@@ -749,14 +749,14 @@ const pm = (t, e) => {
|
|
|
749
749
|
* @see https://tailwindcss.com/docs/break-after
|
|
750
750
|
*/
|
|
751
751
|
"break-after": [{
|
|
752
|
-
"break-after":
|
|
752
|
+
"break-after": b()
|
|
753
753
|
}],
|
|
754
754
|
/**
|
|
755
755
|
* Break Before
|
|
756
756
|
* @see https://tailwindcss.com/docs/break-before
|
|
757
757
|
*/
|
|
758
758
|
"break-before": [{
|
|
759
|
-
"break-before":
|
|
759
|
+
"break-before": b()
|
|
760
760
|
}],
|
|
761
761
|
/**
|
|
762
762
|
* Break Inside
|
|
@@ -2629,7 +2629,7 @@ const pm = (t, e) => {
|
|
|
2629
2629
|
* @see https://tailwindcss.com/docs/perspective
|
|
2630
2630
|
*/
|
|
2631
2631
|
perspective: [{
|
|
2632
|
-
perspective: [
|
|
2632
|
+
perspective: [v, ne, te]
|
|
2633
2633
|
}],
|
|
2634
2634
|
/**
|
|
2635
2635
|
* Perspective Origin
|
|
@@ -3211,7 +3211,7 @@ const Lr = ({
|
|
|
3211
3211
|
acceptOnly: d,
|
|
3212
3212
|
...p
|
|
3213
3213
|
}) => {
|
|
3214
|
-
const h = Wo(), m = typeof a == "string" ? a : h,
|
|
3214
|
+
const h = Wo(), m = typeof a == "string" ? a : h, v = typeof l == "string" ? l : void 0, y = de(
|
|
3215
3215
|
"self-stretch flex-1 px-4 py-2 inline-flex justify-start items-center gap-2 overflow-hidden bg-contrast",
|
|
3216
3216
|
t
|
|
3217
3217
|
), g = de(
|
|
@@ -3252,7 +3252,7 @@ const Lr = ({
|
|
|
3252
3252
|
disabled: i,
|
|
3253
3253
|
onChange: f,
|
|
3254
3254
|
id: m,
|
|
3255
|
-
name:
|
|
3255
|
+
name: v,
|
|
3256
3256
|
...p
|
|
3257
3257
|
}
|
|
3258
3258
|
),
|
|
@@ -3409,8 +3409,8 @@ function vg(t, e) {
|
|
|
3409
3409
|
c.set(p, h);
|
|
3410
3410
|
const m = l.get(p);
|
|
3411
3411
|
if (!m) return;
|
|
3412
|
-
const
|
|
3413
|
-
Math.abs(
|
|
3412
|
+
const v = m.left - h.left, y = m.top - h.top;
|
|
3413
|
+
Math.abs(v) < 0.5 && Math.abs(y) < 0.5 || (d.style.transform = `translate(${v}px, ${y}px)`, d.style.transition = "none", d.offsetHeight, requestAnimationFrame(() => {
|
|
3414
3414
|
d.style.transition = `transform ${n}ms ${r}`, d.style.transform = "translate(0, 0)";
|
|
3415
3415
|
}));
|
|
3416
3416
|
}), i.current = c;
|
|
@@ -3566,7 +3566,7 @@ const xg = {
|
|
|
3566
3566
|
name: d,
|
|
3567
3567
|
...p
|
|
3568
3568
|
}) => {
|
|
3569
|
-
const h = Wo(), m = u ?? d ?? h,
|
|
3569
|
+
const h = Wo(), m = u ?? d ?? h, v = !!(e || l);
|
|
3570
3570
|
return /* @__PURE__ */ Y.jsxs(
|
|
3571
3571
|
"label",
|
|
3572
3572
|
{
|
|
@@ -3603,7 +3603,7 @@ const xg = {
|
|
|
3603
3603
|
disabled: i
|
|
3604
3604
|
}
|
|
3605
3605
|
),
|
|
3606
|
-
|
|
3606
|
+
v && /* @__PURE__ */ Y.jsxs("span", { className: "w-fit text-sm leading-none", children: [
|
|
3607
3607
|
e,
|
|
3608
3608
|
l
|
|
3609
3609
|
] })
|
|
@@ -3612,7 +3612,7 @@ const xg = {
|
|
|
3612
3612
|
);
|
|
3613
3613
|
};
|
|
3614
3614
|
function Ho({ children: t, container: e }) {
|
|
3615
|
-
const [n, r] =
|
|
3615
|
+
const [n, r] = Je(!1);
|
|
3616
3616
|
En(() => {
|
|
3617
3617
|
r(!0);
|
|
3618
3618
|
}, []);
|
|
@@ -3638,7 +3638,7 @@ const _g = {
|
|
|
3638
3638
|
children: p,
|
|
3639
3639
|
headerClassName: h,
|
|
3640
3640
|
bodyClassName: m,
|
|
3641
|
-
footerClassName:
|
|
3641
|
+
footerClassName: v
|
|
3642
3642
|
}) => {
|
|
3643
3643
|
if (Ke(() => {
|
|
3644
3644
|
if (!t || !r) return;
|
|
@@ -3689,7 +3689,7 @@ const _g = {
|
|
|
3689
3689
|
),
|
|
3690
3690
|
headerClassName: h,
|
|
3691
3691
|
bodyClassName: m,
|
|
3692
|
-
footerClassName:
|
|
3692
|
+
footerClassName: v,
|
|
3693
3693
|
children: p
|
|
3694
3694
|
}
|
|
3695
3695
|
)
|
|
@@ -4048,7 +4048,7 @@ function Ds(t) {
|
|
|
4048
4048
|
function $e(t) {
|
|
4049
4049
|
return $o() ? t instanceof Element || t instanceof ft(t).Element : !1;
|
|
4050
4050
|
}
|
|
4051
|
-
function
|
|
4051
|
+
function rt(t) {
|
|
4052
4052
|
return $o() ? t instanceof HTMLElement || t instanceof ft(t).HTMLElement : !1;
|
|
4053
4053
|
}
|
|
4054
4054
|
function Xi(t) {
|
|
@@ -4085,7 +4085,7 @@ function Ts(t) {
|
|
|
4085
4085
|
}
|
|
4086
4086
|
function h1(t) {
|
|
4087
4087
|
let e = Gt(t);
|
|
4088
|
-
for (;
|
|
4088
|
+
for (; rt(e) && !vn(e); ) {
|
|
4089
4089
|
if (Ts(e))
|
|
4090
4090
|
return e;
|
|
4091
4091
|
if (Bo(e))
|
|
@@ -4127,7 +4127,7 @@ function Gt(t) {
|
|
|
4127
4127
|
}
|
|
4128
4128
|
function Pu(t) {
|
|
4129
4129
|
const e = Gt(t);
|
|
4130
|
-
return vn(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
4130
|
+
return vn(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : rt(e) && Ar(e) ? e : Pu(e);
|
|
4131
4131
|
}
|
|
4132
4132
|
function Mr(t, e, n) {
|
|
4133
4133
|
var r;
|
|
@@ -4212,38 +4212,38 @@ function ju(t = {}) {
|
|
|
4212
4212
|
const {
|
|
4213
4213
|
onClick: h,
|
|
4214
4214
|
onMouseDown: m,
|
|
4215
|
-
onKeyUp:
|
|
4215
|
+
onKeyUp: v,
|
|
4216
4216
|
onKeyDown: y,
|
|
4217
4217
|
onPointerDown: g,
|
|
4218
4218
|
...f
|
|
4219
4219
|
} = p;
|
|
4220
4220
|
return Ns({
|
|
4221
4221
|
type: o ? "button" : void 0,
|
|
4222
|
-
onClick(
|
|
4222
|
+
onClick(b) {
|
|
4223
4223
|
if (e) {
|
|
4224
|
-
|
|
4224
|
+
b.preventDefault();
|
|
4225
4225
|
return;
|
|
4226
4226
|
}
|
|
4227
|
-
h?.(
|
|
4227
|
+
h?.(b);
|
|
4228
4228
|
},
|
|
4229
|
-
onMouseDown(
|
|
4230
|
-
e || m?.(
|
|
4229
|
+
onMouseDown(b) {
|
|
4230
|
+
e || m?.(b);
|
|
4231
4231
|
},
|
|
4232
|
-
onKeyDown(
|
|
4233
|
-
if (e || (Zi(
|
|
4232
|
+
onKeyDown(b) {
|
|
4233
|
+
if (e || (Zi(b), y?.(b)), b.baseUIHandlerPrevented)
|
|
4234
4234
|
return;
|
|
4235
|
-
const x =
|
|
4236
|
-
x && ((S || k) &&
|
|
4235
|
+
const x = b.target === b.currentTarget && !o && !a() && !e, k = b.key === "Enter", S = b.key === " ";
|
|
4236
|
+
x && ((S || k) && b.preventDefault(), k && h?.(b));
|
|
4237
4237
|
},
|
|
4238
|
-
onKeyUp(
|
|
4239
|
-
e || (Zi(
|
|
4238
|
+
onKeyUp(b) {
|
|
4239
|
+
e || (Zi(b), v?.(b)), !b.baseUIHandlerPrevented && b.target === b.currentTarget && !o && !e && b.key === " " && h?.(b);
|
|
4240
4240
|
},
|
|
4241
|
-
onPointerDown(
|
|
4241
|
+
onPointerDown(b) {
|
|
4242
4242
|
if (e) {
|
|
4243
|
-
|
|
4243
|
+
b.preventDefault();
|
|
4244
4244
|
return;
|
|
4245
4245
|
}
|
|
4246
|
-
g?.(
|
|
4246
|
+
g?.(b);
|
|
4247
4247
|
}
|
|
4248
4248
|
}, o ? void 0 : {
|
|
4249
4249
|
role: "button"
|
|
@@ -4257,7 +4257,7 @@ function ju(t = {}) {
|
|
|
4257
4257
|
};
|
|
4258
4258
|
}
|
|
4259
4259
|
function v1(t) {
|
|
4260
|
-
return
|
|
4260
|
+
return rt(t) && t.tagName === "BUTTON";
|
|
4261
4261
|
}
|
|
4262
4262
|
const w1 = {
|
|
4263
4263
|
type: "regular-item"
|
|
@@ -4281,7 +4281,7 @@ function x1(t) {
|
|
|
4281
4281
|
disabled: n,
|
|
4282
4282
|
focusableWhenDisabled: !0,
|
|
4283
4283
|
native: s
|
|
4284
|
-
}),
|
|
4284
|
+
}), v = C.useCallback((g) => Ns({
|
|
4285
4285
|
id: o,
|
|
4286
4286
|
role: "menuitem",
|
|
4287
4287
|
tabIndex: r ? 0 : -1,
|
|
@@ -4305,17 +4305,17 @@ function x1(t) {
|
|
|
4305
4305
|
},
|
|
4306
4306
|
onMouseUp(f) {
|
|
4307
4307
|
if (u) {
|
|
4308
|
-
const
|
|
4309
|
-
if (u.initialCursorPointRef.current = null, d &&
|
|
4308
|
+
const b = u.initialCursorPointRef.current;
|
|
4309
|
+
if (u.initialCursorPointRef.current = null, d && b && Math.abs(f.clientX - b.x) <= 1 && Math.abs(f.clientY - b.y) <= 1)
|
|
4310
4310
|
return;
|
|
4311
4311
|
}
|
|
4312
4312
|
c.current && i.context.allowMouseUpTriggerRef.current && (!d || f.button === 2) && a.type === "regular-item" && c.current.click();
|
|
4313
4313
|
}
|
|
4314
4314
|
}, g, h), [o, r, h, e, p, i, d, u, a, l]), y = zn(c, m);
|
|
4315
4315
|
return C.useMemo(() => ({
|
|
4316
|
-
getItemProps:
|
|
4316
|
+
getItemProps: v,
|
|
4317
4317
|
itemRef: y
|
|
4318
|
-
}), [
|
|
4318
|
+
}), [v, y]);
|
|
4319
4319
|
}
|
|
4320
4320
|
const js = /* @__PURE__ */ C.createContext({
|
|
4321
4321
|
register: () => {
|
|
@@ -4358,8 +4358,8 @@ function Lu(t = {}) {
|
|
|
4358
4358
|
d.current += 1, p.current = g;
|
|
4359
4359
|
}
|
|
4360
4360
|
return p.current;
|
|
4361
|
-
} : -1)),
|
|
4362
|
-
if (
|
|
4361
|
+
} : -1)), v = C.useRef(null), y = C.useCallback((g) => {
|
|
4362
|
+
if (v.current = g, h !== -1 && g !== null && (c.current[h] = g, u)) {
|
|
4363
4363
|
const f = e !== void 0;
|
|
4364
4364
|
u.current[h] = f ? e : r?.current?.textContent ?? g.textContent;
|
|
4365
4365
|
}
|
|
@@ -4367,7 +4367,7 @@ function Lu(t = {}) {
|
|
|
4367
4367
|
return De(() => {
|
|
4368
4368
|
if (i != null)
|
|
4369
4369
|
return;
|
|
4370
|
-
const g =
|
|
4370
|
+
const g = v.current;
|
|
4371
4371
|
if (g)
|
|
4372
4372
|
return s(g, n), () => {
|
|
4373
4373
|
a(g);
|
|
@@ -4375,7 +4375,7 @@ function Lu(t = {}) {
|
|
|
4375
4375
|
}, [i, s, a, n]), De(() => {
|
|
4376
4376
|
if (i == null)
|
|
4377
4377
|
return l((g) => {
|
|
4378
|
-
const f =
|
|
4378
|
+
const f = v.current ? g.get(v.current)?.index : null;
|
|
4379
4379
|
f != null && m(f);
|
|
4380
4380
|
});
|
|
4381
4381
|
}, [i, l, m]), C.useMemo(() => ({
|
|
@@ -4557,7 +4557,7 @@ const D1 = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
4557
4557
|
label: i
|
|
4558
4558
|
}), d = Cu(!0), p = Au(o), {
|
|
4559
4559
|
store: h
|
|
4560
|
-
} = Qn(), m = h.useState("isActive", u.index),
|
|
4560
|
+
} = Qn(), m = h.useState("isActive", u.index), v = h.useState("itemProps"), {
|
|
4561
4561
|
getItemProps: y,
|
|
4562
4562
|
itemRef: g
|
|
4563
4563
|
} = x1({
|
|
@@ -4575,7 +4575,7 @@ const D1 = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
4575
4575
|
}), [a, m]);
|
|
4576
4576
|
return Jn("div", t, {
|
|
4577
4577
|
state: f,
|
|
4578
|
-
props: [
|
|
4578
|
+
props: [v, c, y],
|
|
4579
4579
|
ref: [g, e, u.ref]
|
|
4580
4580
|
});
|
|
4581
4581
|
});
|
|
@@ -4671,7 +4671,7 @@ function ot(t) {
|
|
|
4671
4671
|
return t?.ownerDocument || document;
|
|
4672
4672
|
}
|
|
4673
4673
|
function Vs(t) {
|
|
4674
|
-
return
|
|
4674
|
+
return rt(t) && t.matches(qu);
|
|
4675
4675
|
}
|
|
4676
4676
|
function nl(t) {
|
|
4677
4677
|
return t ? t.getAttribute("role") === "combobox" && Vs(t) : !1;
|
|
@@ -5236,15 +5236,15 @@ function v0(t, e, n, r) {
|
|
|
5236
5236
|
if (a.has(m))
|
|
5237
5237
|
p(m);
|
|
5238
5238
|
else {
|
|
5239
|
-
const
|
|
5240
|
-
g.set(m, f), u.set(m,
|
|
5239
|
+
const v = i ? m.getAttribute(i) : null, y = v !== null && v !== "false", g = ul(i), f = (g.get(m) || 0) + 1, b = (u.get(m) || 0) + 1;
|
|
5240
|
+
g.set(m, f), u.set(m, b), c.push(m), f === 1 && y && Jr.add(m), b === 1 && m.setAttribute(o, ""), !y && i && m.setAttribute(i, i === "inert" ? "" : "true");
|
|
5241
5241
|
}
|
|
5242
5242
|
});
|
|
5243
5243
|
}
|
|
5244
5244
|
return hi += 1, () => {
|
|
5245
5245
|
c.forEach((h) => {
|
|
5246
|
-
const m = ul(i),
|
|
5247
|
-
m.set(h,
|
|
5246
|
+
const m = ul(i), v = (m.get(h) || 0) - 1, y = (u.get(h) || 0) - 1;
|
|
5247
|
+
m.set(h, v), u.set(h, y), v || (!Jr.has(h) && i && h.removeAttribute(i), Jr.delete(h)), y || h.removeAttribute(o);
|
|
5248
5248
|
}), hi -= 1, hi || (Ln.inert = /* @__PURE__ */ new WeakMap(), Ln["aria-hidden"] = /* @__PURE__ */ new WeakMap(), Ln.none = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakSet(), eo = {});
|
|
5249
5249
|
};
|
|
5250
5250
|
}
|
|
@@ -5306,7 +5306,7 @@ const cd = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
5306
5306
|
ref: e,
|
|
5307
5307
|
componentProps: t,
|
|
5308
5308
|
elementProps: a
|
|
5309
|
-
}), u = C.useRef(null), d = C.useRef(null), p = C.useRef(null), h = C.useRef(null), [m,
|
|
5309
|
+
}), u = C.useRef(null), d = C.useRef(null), p = C.useRef(null), h = C.useRef(null), [m, v] = C.useState(null), y = m?.modal, g = m?.open, f = typeof s == "boolean" ? s : !!m && !m.modal && m.open && !!l;
|
|
5310
5310
|
C.useEffect(() => {
|
|
5311
5311
|
if (!l || y)
|
|
5312
5312
|
return;
|
|
@@ -5319,17 +5319,17 @@ const cd = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
5319
5319
|
}, [l, y]), C.useEffect(() => {
|
|
5320
5320
|
!l || g || ll(l);
|
|
5321
5321
|
}, [g, l]);
|
|
5322
|
-
const
|
|
5322
|
+
const b = C.useMemo(() => ({
|
|
5323
5323
|
beforeOutsideRef: u,
|
|
5324
5324
|
afterOutsideRef: d,
|
|
5325
5325
|
beforeInsideRef: p,
|
|
5326
5326
|
afterInsideRef: h,
|
|
5327
5327
|
portalNode: l,
|
|
5328
|
-
setFocusManagerState:
|
|
5328
|
+
setFocusManagerState: v
|
|
5329
5329
|
}), [l]);
|
|
5330
5330
|
return /* @__PURE__ */ Y.jsxs(C.Fragment, {
|
|
5331
5331
|
children: [c, /* @__PURE__ */ Y.jsxs(Bs.Provider, {
|
|
5332
|
-
value:
|
|
5332
|
+
value: b,
|
|
5333
5333
|
children: [f && l && /* @__PURE__ */ Y.jsx(wn, {
|
|
5334
5334
|
"data-type": "outside",
|
|
5335
5335
|
ref: u,
|
|
@@ -5409,11 +5409,11 @@ function O0(t) {
|
|
|
5409
5409
|
nextFocusableElement: p,
|
|
5410
5410
|
previousFocusableElement: h,
|
|
5411
5411
|
beforeContentFocusGuardRef: m,
|
|
5412
|
-
externalTree:
|
|
5413
|
-
} = t, y = "rootStore" in e ? e.rootStore : e, g = y.useState("open"), f = y.useState("domReferenceElement"),
|
|
5412
|
+
externalTree: v
|
|
5413
|
+
} = t, y = "rootStore" in e ? e.rootStore : e, g = y.useState("open"), f = y.useState("domReferenceElement"), b = y.useState("floatingElement"), {
|
|
5414
5414
|
events: x,
|
|
5415
5415
|
dataRef: k
|
|
5416
|
-
} = y.context, S = Fe(() => k.current.floatingContext?.nodeId), M = Fe(d), _ = i === !1, A = nl(f) && _, L = Nt(o), R = Nt(i), D = Nt(s), F = Nt(u), T = nr(
|
|
5416
|
+
} = y.context, S = Fe(() => k.current.floatingContext?.nodeId), M = Fe(d), _ = i === !1, A = nl(f) && _, L = Nt(o), R = Nt(i), D = Nt(s), F = Nt(u), T = nr(v), W = ld(), B = C.useRef(null), H = C.useRef(null), I = C.useRef(!1), K = C.useRef(!1), V = C.useRef(!1), O = C.useRef(-1), $ = C.useRef(""), j = C.useRef(""), w = an(), E = an(), N = As(), P = W != null, z = rl(b), q = Fe((ee = z) => ee ? Vr(ee, tr()) : []), U = Fe((ee) => {
|
|
5417
5417
|
const se = q(ee);
|
|
5418
5418
|
return L.current.map(() => se).filter(Boolean).flat();
|
|
5419
5419
|
});
|
|
@@ -5428,16 +5428,16 @@ function O0(t) {
|
|
|
5428
5428
|
se.removeEventListener("keydown", ee);
|
|
5429
5429
|
};
|
|
5430
5430
|
}, [r, f, z, l, L, A, q, U]), C.useEffect(() => {
|
|
5431
|
-
if (r || !
|
|
5431
|
+
if (r || !b)
|
|
5432
5432
|
return;
|
|
5433
5433
|
function ee(se) {
|
|
5434
5434
|
const Ee = hn(se), we = q().indexOf(Ee);
|
|
5435
5435
|
we !== -1 && (O.current = we);
|
|
5436
5436
|
}
|
|
5437
|
-
return
|
|
5438
|
-
|
|
5437
|
+
return b.addEventListener("focusin", ee), () => {
|
|
5438
|
+
b.removeEventListener("focusin", ee);
|
|
5439
5439
|
};
|
|
5440
|
-
}, [r,
|
|
5440
|
+
}, [r, b, q]), C.useEffect(() => {
|
|
5441
5441
|
if (r || !g)
|
|
5442
5442
|
return;
|
|
5443
5443
|
const ee = ot(z);
|
|
@@ -5445,7 +5445,7 @@ function O0(t) {
|
|
|
5445
5445
|
V.current = !1;
|
|
5446
5446
|
}
|
|
5447
5447
|
function Ee(Se) {
|
|
5448
|
-
const ce = hn(Se), be = Ae(
|
|
5448
|
+
const ce = hn(Se), be = Ae(b, ce) || Ae(f, ce) || Ae(W?.portalNode, ce);
|
|
5449
5449
|
V.current = !be, j.current = Se.pointerType || "keyboard";
|
|
5450
5450
|
}
|
|
5451
5451
|
function we() {
|
|
@@ -5454,7 +5454,7 @@ function O0(t) {
|
|
|
5454
5454
|
return ee.addEventListener("pointerdown", Ee, !0), ee.addEventListener("pointerup", se, !0), ee.addEventListener("pointercancel", se, !0), ee.addEventListener("keydown", we, !0), () => {
|
|
5455
5455
|
ee.removeEventListener("pointerdown", Ee, !0), ee.removeEventListener("pointerup", se, !0), ee.removeEventListener("pointercancel", se, !0), ee.removeEventListener("keydown", we, !0);
|
|
5456
5456
|
};
|
|
5457
|
-
}, [r,
|
|
5457
|
+
}, [r, b, f, z, g, W]), C.useEffect(() => {
|
|
5458
5458
|
if (r || !c)
|
|
5459
5459
|
return;
|
|
5460
5460
|
function ee() {
|
|
@@ -5465,16 +5465,16 @@ function O0(t) {
|
|
|
5465
5465
|
function se(ce) {
|
|
5466
5466
|
const be = ce.relatedTarget, qe = ce.currentTarget, We = hn(ce);
|
|
5467
5467
|
queueMicrotask(() => {
|
|
5468
|
-
const st = S(), xt = y.context.triggerElements, it = !(Ae(f, be) || Ae(
|
|
5468
|
+
const st = S(), xt = y.context.triggerElements, it = !(Ae(f, be) || Ae(b, be) || Ae(be, b) || Ae(W?.portalNode, be) || be != null && xt.hasElement(be) || xt.hasMatchingElement((Te) => Ae(Te, be)) || be?.hasAttribute(Ir("focus-guard")) || T && (ko(T.nodesRef.current, st).find((Te) => Ae(Te.context?.elements.floating, be) || Ae(Te.context?.elements.domReference, be)) || ol(T.nodesRef.current, st).find((Te) => [Te.context?.elements.floating, rl(Te.context?.elements.floating)].includes(be) || Te.context?.elements.domReference === be)));
|
|
5469
5469
|
if (qe === f && z && fl(z, L), a && qe !== f && !S0(We) && nn(ot(z)) === ot(z).body) {
|
|
5470
|
-
if (
|
|
5470
|
+
if (rt(z) && (z.focus(), a === "popup")) {
|
|
5471
5471
|
N.request(() => {
|
|
5472
5472
|
z.focus();
|
|
5473
5473
|
});
|
|
5474
5474
|
return;
|
|
5475
5475
|
}
|
|
5476
5476
|
const Te = O.current, at = q(), kt = at[Te] || at[at.length - 1] || z;
|
|
5477
|
-
|
|
5477
|
+
rt(kt) && kt.focus();
|
|
5478
5478
|
}
|
|
5479
5479
|
if (k.current.insideReactTree) {
|
|
5480
5480
|
k.current.insideReactTree = !1;
|
|
@@ -5495,30 +5495,30 @@ function O0(t) {
|
|
|
5495
5495
|
k.current.insideReactTree = !1;
|
|
5496
5496
|
}));
|
|
5497
5497
|
}
|
|
5498
|
-
const we =
|
|
5499
|
-
if (!(!
|
|
5498
|
+
const we = rt(f) ? f : null, Se = [];
|
|
5499
|
+
if (!(!b && !we))
|
|
5500
5500
|
return we && (we.addEventListener("focusout", se), we.addEventListener("pointerdown", ee), Se.push(() => {
|
|
5501
5501
|
we.removeEventListener("focusout", se), we.removeEventListener("pointerdown", ee);
|
|
5502
|
-
})),
|
|
5503
|
-
|
|
5502
|
+
})), b && (b.addEventListener("focusout", se), W && (b.addEventListener("focusout", Ee, !0), Se.push(() => {
|
|
5503
|
+
b.removeEventListener("focusout", Ee, !0);
|
|
5504
5504
|
})), Se.push(() => {
|
|
5505
|
-
|
|
5505
|
+
b.removeEventListener("focusout", se);
|
|
5506
5506
|
})), () => {
|
|
5507
5507
|
Se.forEach((ce) => {
|
|
5508
5508
|
ce();
|
|
5509
5509
|
});
|
|
5510
5510
|
};
|
|
5511
|
-
}, [r, f,
|
|
5511
|
+
}, [r, f, b, z, l, T, W, y, c, a, q, A, S, L, k, w, E, N]);
|
|
5512
5512
|
const ie = C.useRef(null), G = C.useRef(null), fe = zn(ie, m, W?.beforeInsideRef), J = zn(G, W?.afterInsideRef);
|
|
5513
5513
|
C.useEffect(() => {
|
|
5514
|
-
if (r || !
|
|
5514
|
+
if (r || !b || !g)
|
|
5515
5515
|
return;
|
|
5516
|
-
const ee = Array.from(W?.portalNode?.querySelectorAll(`[${Ir("portal")}]`) || []), se = (T ? ol(T.nodesRef.current, S()) : []).find((Se) => nl(Se.context?.elements.domReference || null))?.context?.elements.domReference, Ee = [
|
|
5516
|
+
const ee = Array.from(W?.portalNode?.querySelectorAll(`[${Ir("portal")}]`) || []), se = (T ? ol(T.nodesRef.current, S()) : []).find((Se) => nl(Se.context?.elements.domReference || null))?.context?.elements.domReference, Ee = [b, se, ...ee, ...M(), B.current, H.current, ie.current, G.current, W?.beforeOutsideRef.current, W?.afterOutsideRef.current, fn(h), fn(p), A ? f : null].filter((Se) => Se != null), we = w0(Ee, l || A);
|
|
5517
5517
|
return () => {
|
|
5518
5518
|
we();
|
|
5519
5519
|
};
|
|
5520
|
-
}, [g, r, f,
|
|
5521
|
-
if (!g || r || !
|
|
5520
|
+
}, [g, r, f, b, l, L, W, A, T, S, M, p, h]), De(() => {
|
|
5521
|
+
if (!g || r || !rt(z))
|
|
5522
5522
|
return;
|
|
5523
5523
|
const ee = ot(z), se = nn(ee);
|
|
5524
5524
|
queueMicrotask(() => {
|
|
@@ -5567,10 +5567,10 @@ function O0(t) {
|
|
|
5567
5567
|
}
|
|
5568
5568
|
return () => {
|
|
5569
5569
|
x.off("openchange", Ee);
|
|
5570
|
-
const ce = nn(ee), be = Ae(
|
|
5570
|
+
const ce = nn(ee), be = Ae(b, ce) || T && ko(T.nodesRef.current, S(), !1).some((We) => Ae(We.context?.elements.floating, ce)), qe = Se();
|
|
5571
5571
|
queueMicrotask(() => {
|
|
5572
5572
|
const We = _0(qe), st = typeof D.current != "boolean";
|
|
5573
|
-
D.current && !I.current &&
|
|
5573
|
+
D.current && !I.current && rt(We) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
5574
5574
|
// since it likely entered a different element which should be
|
|
5575
5575
|
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
|
5576
5576
|
(!(!st && We !== ce && ce !== ee.body) || be) && We.focus({
|
|
@@ -5578,7 +5578,7 @@ function O0(t) {
|
|
|
5578
5578
|
}), we.remove();
|
|
5579
5579
|
});
|
|
5580
5580
|
};
|
|
5581
|
-
}, [r,
|
|
5581
|
+
}, [r, b, z, D, k, x, T, P, f, S]), C.useEffect(() => {
|
|
5582
5582
|
queueMicrotask(() => {
|
|
5583
5583
|
I.current = !1;
|
|
5584
5584
|
});
|
|
@@ -5642,13 +5642,13 @@ function N0(t, e = {}) {
|
|
|
5642
5642
|
u.current = m.pointerType;
|
|
5643
5643
|
},
|
|
5644
5644
|
onMouseDown(m) {
|
|
5645
|
-
const
|
|
5646
|
-
if (m.button !== 0 || i === "click" || Fn(
|
|
5645
|
+
const v = u.current, y = m.nativeEvent, g = n.select("open");
|
|
5646
|
+
if (m.button !== 0 || i === "click" || Fn(v, !0) && a)
|
|
5647
5647
|
return;
|
|
5648
|
-
const f = r.current.openEvent,
|
|
5648
|
+
const f = r.current.openEvent, b = f?.type, x = n.select("domReferenceElement") !== m.currentTarget, k = g && x || !(g && s && (!(f && l) || b === "click" || b === "mousedown"));
|
|
5649
5649
|
if (Vs(y.target)) {
|
|
5650
5650
|
const M = Qe(mo, y, y.target);
|
|
5651
|
-
k &&
|
|
5651
|
+
k && v === "touch" && c > 0 ? p.start(c, () => {
|
|
5652
5652
|
n.setOpen(!0, M);
|
|
5653
5653
|
}) : n.setOpen(k, M);
|
|
5654
5654
|
return;
|
|
@@ -5656,7 +5656,7 @@ function N0(t, e = {}) {
|
|
|
5656
5656
|
const S = m.currentTarget;
|
|
5657
5657
|
d.request(() => {
|
|
5658
5658
|
const M = Qe(mo, y, S);
|
|
5659
|
-
k &&
|
|
5659
|
+
k && v === "touch" && c > 0 ? p.start(c, () => {
|
|
5660
5660
|
n.setOpen(!0, M);
|
|
5661
5661
|
}) : n.setOpen(k, M);
|
|
5662
5662
|
});
|
|
@@ -5664,17 +5664,17 @@ function N0(t, e = {}) {
|
|
|
5664
5664
|
onClick(m) {
|
|
5665
5665
|
if (i === "mousedown-only")
|
|
5666
5666
|
return;
|
|
5667
|
-
const
|
|
5668
|
-
if (i === "mousedown" &&
|
|
5667
|
+
const v = u.current;
|
|
5668
|
+
if (i === "mousedown" && v) {
|
|
5669
5669
|
u.current = void 0;
|
|
5670
5670
|
return;
|
|
5671
5671
|
}
|
|
5672
|
-
if (Fn(
|
|
5672
|
+
if (Fn(v, !0) && a)
|
|
5673
5673
|
return;
|
|
5674
|
-
const y = n.select("open"), g = r.current.openEvent, f = n.select("domReferenceElement") !== m.currentTarget,
|
|
5675
|
-
|
|
5674
|
+
const y = n.select("open"), g = r.current.openEvent, f = n.select("domReferenceElement") !== m.currentTarget, b = y && f || !(y && s && (!(g && l) || Yu(g))), x = Qe(mo, m.nativeEvent, m.currentTarget);
|
|
5675
|
+
b && v === "touch" && c > 0 ? p.start(c, () => {
|
|
5676
5676
|
n.setOpen(!0, x);
|
|
5677
|
-
}) : n.setOpen(
|
|
5677
|
+
}) : n.setOpen(b, x);
|
|
5678
5678
|
},
|
|
5679
5679
|
onKeyDown() {
|
|
5680
5680
|
u.current = void 0;
|
|
@@ -5747,13 +5747,13 @@ const M0 = async (t, e, n) => {
|
|
|
5747
5747
|
x: u,
|
|
5748
5748
|
y: d
|
|
5749
5749
|
} = pl(c, r, l), p = r, h = {}, m = 0;
|
|
5750
|
-
for (let
|
|
5750
|
+
for (let v = 0; v < a.length; v++) {
|
|
5751
5751
|
const {
|
|
5752
5752
|
name: y,
|
|
5753
5753
|
fn: g
|
|
5754
|
-
} = a[
|
|
5754
|
+
} = a[v], {
|
|
5755
5755
|
x: f,
|
|
5756
|
-
y:
|
|
5756
|
+
y: b,
|
|
5757
5757
|
data: x,
|
|
5758
5758
|
reset: k
|
|
5759
5759
|
} = await g({
|
|
@@ -5770,7 +5770,7 @@ const M0 = async (t, e, n) => {
|
|
|
5770
5770
|
floating: e
|
|
5771
5771
|
}
|
|
5772
5772
|
});
|
|
5773
|
-
u = f ?? u, d =
|
|
5773
|
+
u = f ?? u, d = b ?? d, h = {
|
|
5774
5774
|
...h,
|
|
5775
5775
|
[y]: {
|
|
5776
5776
|
...h[y],
|
|
@@ -5783,7 +5783,7 @@ const M0 = async (t, e, n) => {
|
|
|
5783
5783
|
}) : k.rects), {
|
|
5784
5784
|
x: u,
|
|
5785
5785
|
y: d
|
|
5786
|
-
} = pl(c, p, l)),
|
|
5786
|
+
} = pl(c, p, l)), v = -1);
|
|
5787
5787
|
}
|
|
5788
5788
|
return {
|
|
5789
5789
|
x: u,
|
|
@@ -5809,8 +5809,8 @@ async function Dr(t, e) {
|
|
|
5809
5809
|
elementContext: d = "floating",
|
|
5810
5810
|
altBoundary: p = !1,
|
|
5811
5811
|
padding: h = 0
|
|
5812
|
-
} = Ut(e, t), m = Gu(h),
|
|
5813
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(
|
|
5812
|
+
} = Ut(e, t), m = Gu(h), v = a[p ? d === "floating" ? "reference" : "floating" : d], y = _o(await i.getClippingRect({
|
|
5813
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
5814
5814
|
boundary: c,
|
|
5815
5815
|
rootBoundary: u,
|
|
5816
5816
|
strategy: l
|
|
@@ -5819,7 +5819,7 @@ async function Dr(t, e) {
|
|
|
5819
5819
|
y: o,
|
|
5820
5820
|
width: s.floating.width,
|
|
5821
5821
|
height: s.floating.height
|
|
5822
|
-
} : s.reference, f = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)),
|
|
5822
|
+
} : s.reference, f = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), b = await (i.isElement == null ? void 0 : i.isElement(f)) ? await (i.getScale == null ? void 0 : i.getScale(f)) || {
|
|
5823
5823
|
x: 1,
|
|
5824
5824
|
y: 1
|
|
5825
5825
|
} : {
|
|
@@ -5832,10 +5832,10 @@ async function Dr(t, e) {
|
|
|
5832
5832
|
strategy: l
|
|
5833
5833
|
}) : g);
|
|
5834
5834
|
return {
|
|
5835
|
-
top: (y.top - x.top + m.top) /
|
|
5836
|
-
bottom: (x.bottom - y.bottom + m.bottom) /
|
|
5837
|
-
left: (y.left - x.left + m.left) /
|
|
5838
|
-
right: (x.right - y.right + m.right) /
|
|
5835
|
+
top: (y.top - x.top + m.top) / b.y,
|
|
5836
|
+
bottom: (x.bottom - y.bottom + m.bottom) / b.y,
|
|
5837
|
+
left: (y.left - x.left + m.left) / b.x,
|
|
5838
|
+
right: (x.right - y.right + m.right) / b.x
|
|
5839
5839
|
};
|
|
5840
5840
|
}
|
|
5841
5841
|
const I0 = function(t) {
|
|
@@ -5857,13 +5857,13 @@ const I0 = function(t) {
|
|
|
5857
5857
|
fallbackPlacements: p,
|
|
5858
5858
|
fallbackStrategy: h = "bestFit",
|
|
5859
5859
|
fallbackAxisSideDirection: m = "none",
|
|
5860
|
-
flipAlignment:
|
|
5860
|
+
flipAlignment: v = !0,
|
|
5861
5861
|
...y
|
|
5862
5862
|
} = Ut(t, e);
|
|
5863
5863
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
5864
5864
|
return {};
|
|
5865
|
-
const g = vt(o), f = Ct(a),
|
|
5866
|
-
!p && S && k.push(...K1(a,
|
|
5865
|
+
const g = vt(o), f = Ct(a), b = vt(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), k = p || (b || !v ? [Co(a)] : q1(a)), S = m !== "none";
|
|
5866
|
+
!p && S && k.push(...K1(a, v, m, x));
|
|
5867
5867
|
const M = [a, ...k], _ = await Dr(e, y), A = [];
|
|
5868
5868
|
let L = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
5869
5869
|
if (u && A.push(_[g]), d) {
|
|
@@ -6053,23 +6053,23 @@ const P0 = function(t) {
|
|
|
6053
6053
|
}, u = await Dr(e, l), d = Ct(vt(o)), p = zs(d);
|
|
6054
6054
|
let h = c[p], m = c[d];
|
|
6055
6055
|
if (i) {
|
|
6056
|
-
const y = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", f = h + u[y],
|
|
6057
|
-
h = ns(f, h,
|
|
6056
|
+
const y = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", f = h + u[y], b = h - u[g];
|
|
6057
|
+
h = ns(f, h, b);
|
|
6058
6058
|
}
|
|
6059
6059
|
if (s) {
|
|
6060
|
-
const y = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", f = m + u[y],
|
|
6061
|
-
m = ns(f, m,
|
|
6060
|
+
const y = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", f = m + u[y], b = m - u[g];
|
|
6061
|
+
m = ns(f, m, b);
|
|
6062
6062
|
}
|
|
6063
|
-
const
|
|
6063
|
+
const v = a.fn({
|
|
6064
6064
|
...e,
|
|
6065
6065
|
[p]: h,
|
|
6066
6066
|
[d]: m
|
|
6067
6067
|
});
|
|
6068
6068
|
return {
|
|
6069
|
-
...
|
|
6069
|
+
...v,
|
|
6070
6070
|
data: {
|
|
6071
|
-
x:
|
|
6072
|
-
y:
|
|
6071
|
+
x: v.x - n,
|
|
6072
|
+
y: v.y - r,
|
|
6073
6073
|
enabled: {
|
|
6074
6074
|
[p]: i,
|
|
6075
6075
|
[d]: s
|
|
@@ -6097,21 +6097,21 @@ const P0 = function(t) {
|
|
|
6097
6097
|
y: r
|
|
6098
6098
|
}, d = Ct(o), p = zs(d);
|
|
6099
6099
|
let h = u[p], m = u[d];
|
|
6100
|
-
const
|
|
6101
|
-
mainAxis:
|
|
6100
|
+
const v = Ut(a, e), y = typeof v == "number" ? {
|
|
6101
|
+
mainAxis: v,
|
|
6102
6102
|
crossAxis: 0
|
|
6103
6103
|
} : {
|
|
6104
6104
|
mainAxis: 0,
|
|
6105
6105
|
crossAxis: 0,
|
|
6106
|
-
...
|
|
6106
|
+
...v
|
|
6107
6107
|
};
|
|
6108
6108
|
if (l) {
|
|
6109
|
-
const
|
|
6109
|
+
const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + y.mainAxis, k = i.reference[p] + i.reference[b] - y.mainAxis;
|
|
6110
6110
|
h < x ? h = x : h > k && (h = k);
|
|
6111
6111
|
}
|
|
6112
6112
|
if (c) {
|
|
6113
6113
|
var g, f;
|
|
6114
|
-
const
|
|
6114
|
+
const b = p === "y" ? "width" : "height", x = ud.has(vt(o)), k = i.reference[d] - i.floating[b] + (x && ((g = s.offset) == null ? void 0 : g[d]) || 0) + (x ? 0 : y.crossAxis), S = i.reference[d] + i.reference[b] + (x ? 0 : ((f = s.offset) == null ? void 0 : f[d]) || 0) - (x ? y.crossAxis : 0);
|
|
6115
6115
|
m < k ? m = k : m > S && (m = S);
|
|
6116
6116
|
}
|
|
6117
6117
|
return {
|
|
@@ -6137,15 +6137,15 @@ const P0 = function(t) {
|
|
|
6137
6137
|
...c
|
|
6138
6138
|
} = Ut(t, e), u = await Dr(e, c), d = vt(o), p = cn(o), h = Ct(o) === "y", {
|
|
6139
6139
|
width: m,
|
|
6140
|
-
height:
|
|
6140
|
+
height: v
|
|
6141
6141
|
} = i.floating;
|
|
6142
6142
|
let y, g;
|
|
6143
6143
|
d === "top" || d === "bottom" ? (y = d, g = p === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (g = d, y = p === "end" ? "top" : "bottom");
|
|
6144
|
-
const f =
|
|
6144
|
+
const f = v - u.top - u.bottom, b = m - u.left - u.right, x = Wn(v - u[y], f), k = Wn(m - u[g], b), S = !e.middlewareData.shift;
|
|
6145
6145
|
let M = x, _ = k;
|
|
6146
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (_ =
|
|
6146
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x && (_ = b), (r = e.middlewareData.shift) != null && r.enabled.y && (M = f), S && !p) {
|
|
6147
6147
|
const L = gt(u.left, 0), R = gt(u.right, 0), D = gt(u.top, 0), F = gt(u.bottom, 0);
|
|
6148
|
-
h ? _ = m - 2 * (L !== 0 || R !== 0 ? L + R : gt(u.left, u.right)) : M =
|
|
6148
|
+
h ? _ = m - 2 * (L !== 0 || R !== 0 ? L + R : gt(u.left, u.right)) : M = v - 2 * (D !== 0 || F !== 0 ? D + F : gt(u.top, u.bottom));
|
|
6149
6149
|
}
|
|
6150
6150
|
await l({
|
|
6151
6151
|
...e,
|
|
@@ -6153,7 +6153,7 @@ const P0 = function(t) {
|
|
|
6153
6153
|
availableHeight: M
|
|
6154
6154
|
});
|
|
6155
6155
|
const A = await s.getDimensions(a.floating);
|
|
6156
|
-
return m !== A.width ||
|
|
6156
|
+
return m !== A.width || v !== A.height ? {
|
|
6157
6157
|
reset: {
|
|
6158
6158
|
rects: !0
|
|
6159
6159
|
}
|
|
@@ -6164,7 +6164,7 @@ const P0 = function(t) {
|
|
|
6164
6164
|
function dd(t) {
|
|
6165
6165
|
const e = _t(t);
|
|
6166
6166
|
let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
|
|
6167
|
-
const o =
|
|
6167
|
+
const o = rt(t), i = o ? t.offsetWidth : n, s = o ? t.offsetHeight : r, a = Eo(n) !== i || Eo(r) !== s;
|
|
6168
6168
|
return a && (n = i, r = s), {
|
|
6169
6169
|
width: n,
|
|
6170
6170
|
height: r,
|
|
@@ -6176,7 +6176,7 @@ function Ys(t) {
|
|
|
6176
6176
|
}
|
|
6177
6177
|
function An(t) {
|
|
6178
6178
|
const e = Ys(t);
|
|
6179
|
-
if (!
|
|
6179
|
+
if (!rt(e))
|
|
6180
6180
|
return Lt(1);
|
|
6181
6181
|
const n = e.getBoundingClientRect(), {
|
|
6182
6182
|
width: r,
|
|
@@ -6209,10 +6209,10 @@ function xn(t, e, n, r) {
|
|
|
6209
6209
|
let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, u = o.width / s.x, d = o.height / s.y;
|
|
6210
6210
|
if (i) {
|
|
6211
6211
|
const p = ft(i), h = r && $e(r) ? ft(r) : r;
|
|
6212
|
-
let m = p,
|
|
6213
|
-
for (;
|
|
6214
|
-
const y = An(
|
|
6215
|
-
l *= y.x, c *= y.y, u *= y.x, d *= y.y, l +=
|
|
6212
|
+
let m = p, v = Qi(m);
|
|
6213
|
+
for (; v && r && h !== m; ) {
|
|
6214
|
+
const y = An(v), g = v.getBoundingClientRect(), f = _t(v), b = g.left + (v.clientLeft + parseFloat(f.paddingLeft)) * y.x, x = g.top + (v.clientTop + parseFloat(f.paddingTop)) * y.y;
|
|
6215
|
+
l *= y.x, c *= y.y, u *= y.x, d *= y.y, l += b, c += x, m = ft(v), v = Qi(m);
|
|
6216
6216
|
}
|
|
6217
6217
|
}
|
|
6218
6218
|
return _o({
|
|
@@ -6247,8 +6247,8 @@ function z0(t) {
|
|
|
6247
6247
|
scrollLeft: 0,
|
|
6248
6248
|
scrollTop: 0
|
|
6249
6249
|
}, c = Lt(1);
|
|
6250
|
-
const u = Lt(0), d =
|
|
6251
|
-
if ((d || !d && !i) && ((ln(r) !== "body" || Ar(s)) && (l = qo(r)),
|
|
6250
|
+
const u = Lt(0), d = rt(r);
|
|
6251
|
+
if ((d || !d && !i) && ((ln(r) !== "body" || Ar(s)) && (l = qo(r)), rt(r))) {
|
|
6252
6252
|
const h = xn(r);
|
|
6253
6253
|
c = An(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
|
|
6254
6254
|
}
|
|
@@ -6297,7 +6297,7 @@ function H0(t, e) {
|
|
|
6297
6297
|
}
|
|
6298
6298
|
const $0 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
6299
6299
|
function B0(t, e) {
|
|
6300
|
-
const n = xn(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, i =
|
|
6300
|
+
const n = xn(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, i = rt(t) ? An(t) : Lt(1), s = t.clientWidth * i.x, a = t.clientHeight * i.y, l = o * i.x, c = r * i.y;
|
|
6301
6301
|
return {
|
|
6302
6302
|
width: s,
|
|
6303
6303
|
height: a,
|
|
@@ -6370,7 +6370,7 @@ function G0(t) {
|
|
|
6370
6370
|
};
|
|
6371
6371
|
}
|
|
6372
6372
|
function U0(t, e, n) {
|
|
6373
|
-
const r =
|
|
6373
|
+
const r = rt(e), o = Vt(e), i = n === "fixed", s = xn(t, !0, i, e);
|
|
6374
6374
|
let a = {
|
|
6375
6375
|
scrollLeft: 0,
|
|
6376
6376
|
scrollTop: 0
|
|
@@ -6397,7 +6397,7 @@ function yi(t) {
|
|
|
6397
6397
|
return _t(t).position === "static";
|
|
6398
6398
|
}
|
|
6399
6399
|
function bl(t, e) {
|
|
6400
|
-
if (!
|
|
6400
|
+
if (!rt(t) || _t(t).position === "fixed")
|
|
6401
6401
|
return null;
|
|
6402
6402
|
if (e)
|
|
6403
6403
|
return e(t);
|
|
@@ -6408,7 +6408,7 @@ function hd(t, e) {
|
|
|
6408
6408
|
const n = ft(t);
|
|
6409
6409
|
if (Bo(t))
|
|
6410
6410
|
return n;
|
|
6411
|
-
if (!
|
|
6411
|
+
if (!rt(t)) {
|
|
6412
6412
|
let o = Gt(t);
|
|
6413
6413
|
for (; o && !vn(o); ) {
|
|
6414
6414
|
if ($e(o) && !yi(o))
|
|
@@ -6469,21 +6469,21 @@ function Q0(t, e) {
|
|
|
6469
6469
|
} = c;
|
|
6470
6470
|
if (a || e(), !p || !h)
|
|
6471
6471
|
return;
|
|
6472
|
-
const m = Qr(d),
|
|
6473
|
-
rootMargin: -m + "px " + -
|
|
6472
|
+
const m = Qr(d), v = Qr(o.clientWidth - (u + p)), y = Qr(o.clientHeight - (d + h)), g = Qr(u), f = {
|
|
6473
|
+
rootMargin: -m + "px " + -v + "px " + -y + "px " + -g + "px",
|
|
6474
6474
|
threshold: gt(0, Wn(1, l)) || 1
|
|
6475
6475
|
};
|
|
6476
|
-
let
|
|
6476
|
+
let b = !0;
|
|
6477
6477
|
function x(k) {
|
|
6478
6478
|
const S = k[0].intersectionRatio;
|
|
6479
6479
|
if (S !== l) {
|
|
6480
|
-
if (!
|
|
6480
|
+
if (!b)
|
|
6481
6481
|
return s();
|
|
6482
6482
|
S ? s(!1, S) : r = setTimeout(() => {
|
|
6483
6483
|
s(!1, 1e-7);
|
|
6484
6484
|
}, 1e3);
|
|
6485
6485
|
}
|
|
6486
|
-
S === 1 && !gd(c, t.getBoundingClientRect()) && s(),
|
|
6486
|
+
S === 1 && !gd(c, t.getBoundingClientRect()) && s(), b = !1;
|
|
6487
6487
|
}
|
|
6488
6488
|
try {
|
|
6489
6489
|
n = new IntersectionObserver(x, {
|
|
@@ -6517,15 +6517,15 @@ function vl(t, e, n, r) {
|
|
|
6517
6517
|
s && (h = new ResizeObserver((g) => {
|
|
6518
6518
|
let [f] = g;
|
|
6519
6519
|
f && f.target === c && h && (h.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
6520
|
-
var
|
|
6521
|
-
(
|
|
6520
|
+
var b;
|
|
6521
|
+
(b = h) == null || b.observe(e);
|
|
6522
6522
|
})), n();
|
|
6523
6523
|
}), c && !l && h.observe(c), h.observe(e));
|
|
6524
|
-
let m,
|
|
6524
|
+
let m, v = l ? xn(t) : null;
|
|
6525
6525
|
l && y();
|
|
6526
6526
|
function y() {
|
|
6527
6527
|
const g = xn(t);
|
|
6528
|
-
|
|
6528
|
+
v && !gd(v, g) && n(), v = g, m = requestAnimationFrame(y);
|
|
6529
6529
|
}
|
|
6530
6530
|
return n(), () => {
|
|
6531
6531
|
var g;
|
|
@@ -6615,9 +6615,9 @@ function ly(t) {
|
|
|
6615
6615
|
isPositioned: !1
|
|
6616
6616
|
}), [p, h] = C.useState(r);
|
|
6617
6617
|
Do(p, r) || h(r);
|
|
6618
|
-
const [m,
|
|
6619
|
-
I !== S.current && (S.current = I,
|
|
6620
|
-
}, []),
|
|
6618
|
+
const [m, v] = C.useState(null), [y, g] = C.useState(null), f = C.useCallback((I) => {
|
|
6619
|
+
I !== S.current && (S.current = I, v(I));
|
|
6620
|
+
}, []), b = C.useCallback((I) => {
|
|
6621
6621
|
I !== M.current && (M.current = I, g(I));
|
|
6622
6622
|
}, []), x = i || m, k = s || y, S = C.useRef(null), M = C.useRef(null), _ = C.useRef(u), A = l != null, L = bi(l), R = bi(o), D = bi(c), F = C.useCallback(() => {
|
|
6623
6623
|
if (!S.current || !M.current)
|
|
@@ -6661,8 +6661,8 @@ function ly(t) {
|
|
|
6661
6661
|
reference: S,
|
|
6662
6662
|
floating: M,
|
|
6663
6663
|
setReference: f,
|
|
6664
|
-
setFloating:
|
|
6665
|
-
}), [f,
|
|
6664
|
+
setFloating: b
|
|
6665
|
+
}), [f, b]), B = C.useMemo(() => ({
|
|
6666
6666
|
reference: x,
|
|
6667
6667
|
floating: k
|
|
6668
6668
|
}), [x, k]), H = C.useMemo(() => {
|
|
@@ -6914,13 +6914,13 @@ function bd(t, e = {}) {
|
|
|
6914
6914
|
if (typeof h == "function" || typeof h == "object" && h !== null) {
|
|
6915
6915
|
let m = a.o;
|
|
6916
6916
|
m === null && (a.o = m = /* @__PURE__ */ new WeakMap());
|
|
6917
|
-
const
|
|
6918
|
-
|
|
6917
|
+
const v = m.get(h);
|
|
6918
|
+
v === void 0 ? (a = to(), m.set(h, a)) : a = v;
|
|
6919
6919
|
} else {
|
|
6920
6920
|
let m = a.p;
|
|
6921
6921
|
m === null && (a.p = m = /* @__PURE__ */ new Map());
|
|
6922
|
-
const
|
|
6923
|
-
|
|
6922
|
+
const v = m.get(h);
|
|
6923
|
+
v === void 0 ? (a = to(), m.set(h, a)) : a = v;
|
|
6924
6924
|
}
|
|
6925
6925
|
}
|
|
6926
6926
|
const c = a;
|
|
@@ -6957,8 +6957,8 @@ function vd(t, ...e) {
|
|
|
6957
6957
|
memoizeOptions: p = [],
|
|
6958
6958
|
argsMemoize: h = bd,
|
|
6959
6959
|
argsMemoizeOptions: m = [],
|
|
6960
|
-
devModeChecks:
|
|
6961
|
-
} = u, y = xl(p), g = xl(m), f = xy(o),
|
|
6960
|
+
devModeChecks: v = {}
|
|
6961
|
+
} = u, y = xl(p), g = xl(m), f = xy(o), b = d(function() {
|
|
6962
6962
|
return i++, c.apply(
|
|
6963
6963
|
null,
|
|
6964
6964
|
arguments
|
|
@@ -6971,8 +6971,8 @@ function vd(t, ...e) {
|
|
|
6971
6971
|
f,
|
|
6972
6972
|
arguments
|
|
6973
6973
|
);
|
|
6974
|
-
if (a =
|
|
6975
|
-
const { identityFunctionCheck: M, inputStabilityCheck: _ } = ky(x,
|
|
6974
|
+
if (a = b.apply(null, S), process.env.NODE_ENV !== "production") {
|
|
6975
|
+
const { identityFunctionCheck: M, inputStabilityCheck: _ } = ky(x, v);
|
|
6976
6976
|
if (M.shouldRun && M.run(
|
|
6977
6977
|
c,
|
|
6978
6978
|
S,
|
|
@@ -6994,7 +6994,7 @@ function vd(t, ...e) {
|
|
|
6994
6994
|
}, ...g);
|
|
6995
6995
|
return Object.assign(k, {
|
|
6996
6996
|
resultFunc: c,
|
|
6997
|
-
memoizedResultFunc:
|
|
6997
|
+
memoizedResultFunc: b,
|
|
6998
6998
|
dependencies: f,
|
|
6999
6999
|
dependencyRecomputations: () => s,
|
|
7000
7000
|
resetDependencyRecomputations: () => {
|
|
@@ -7056,16 +7056,16 @@ function Py() {
|
|
|
7056
7056
|
}
|
|
7057
7057
|
var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, o = t.useEffect, i = t.useLayoutEffect, s = t.useDebugValue;
|
|
7058
7058
|
function a(d, p) {
|
|
7059
|
-
var h = p(), m = r({ inst: { value: h, getSnapshot: p } }),
|
|
7059
|
+
var h = p(), m = r({ inst: { value: h, getSnapshot: p } }), v = m[0].inst, y = m[1];
|
|
7060
7060
|
return i(
|
|
7061
7061
|
function() {
|
|
7062
|
-
|
|
7062
|
+
v.value = h, v.getSnapshot = p, l(v) && y({ inst: v });
|
|
7063
7063
|
},
|
|
7064
7064
|
[d, h, p]
|
|
7065
7065
|
), o(
|
|
7066
7066
|
function() {
|
|
7067
|
-
return l(
|
|
7068
|
-
l(
|
|
7067
|
+
return l(v) && y({ inst: v }), d(function() {
|
|
7068
|
+
l(v) && y({ inst: v });
|
|
7069
7069
|
});
|
|
7070
7070
|
},
|
|
7071
7071
|
[d]
|
|
@@ -7097,22 +7097,22 @@ function Ry() {
|
|
|
7097
7097
|
u || o.startTransition === void 0 || (u = !0, console.error(
|
|
7098
7098
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
7099
7099
|
));
|
|
7100
|
-
var
|
|
7100
|
+
var v = m();
|
|
7101
7101
|
if (!d) {
|
|
7102
7102
|
var y = m();
|
|
7103
|
-
i(
|
|
7103
|
+
i(v, y) || (console.error(
|
|
7104
7104
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
7105
7105
|
), d = !0);
|
|
7106
7106
|
}
|
|
7107
7107
|
y = s({
|
|
7108
|
-
inst: { value:
|
|
7108
|
+
inst: { value: v, getSnapshot: m }
|
|
7109
7109
|
});
|
|
7110
7110
|
var g = y[0].inst, f = y[1];
|
|
7111
7111
|
return l(
|
|
7112
7112
|
function() {
|
|
7113
|
-
g.value =
|
|
7113
|
+
g.value = v, g.getSnapshot = m, n(g) && f({ inst: g });
|
|
7114
7114
|
},
|
|
7115
|
-
[h,
|
|
7115
|
+
[h, v, m]
|
|
7116
7116
|
), a(
|
|
7117
7117
|
function() {
|
|
7118
7118
|
return n(g) && f({ inst: g }), h(function() {
|
|
@@ -7120,14 +7120,14 @@ function Ry() {
|
|
|
7120
7120
|
});
|
|
7121
7121
|
},
|
|
7122
7122
|
[h]
|
|
7123
|
-
), c(
|
|
7123
|
+
), c(v), v;
|
|
7124
7124
|
}
|
|
7125
7125
|
function n(h) {
|
|
7126
7126
|
var m = h.getSnapshot;
|
|
7127
7127
|
h = h.value;
|
|
7128
7128
|
try {
|
|
7129
|
-
var
|
|
7130
|
-
return !i(h,
|
|
7129
|
+
var v = m();
|
|
7130
|
+
return !i(h, v);
|
|
7131
7131
|
} catch {
|
|
7132
7132
|
return !0;
|
|
7133
7133
|
}
|
|
@@ -7156,25 +7156,25 @@ function Ly() {
|
|
|
7156
7156
|
return ki.useSyncExternalStoreWithSelector = function(c, u, d, p, h) {
|
|
7157
7157
|
var m = i(null);
|
|
7158
7158
|
if (m.current === null) {
|
|
7159
|
-
var
|
|
7160
|
-
m.current =
|
|
7161
|
-
} else
|
|
7159
|
+
var v = { hasValue: !1, value: null };
|
|
7160
|
+
m.current = v;
|
|
7161
|
+
} else v = m.current;
|
|
7162
7162
|
m = a(
|
|
7163
7163
|
function() {
|
|
7164
7164
|
function g(S) {
|
|
7165
7165
|
if (!f) {
|
|
7166
|
-
if (f = !0,
|
|
7167
|
-
var M =
|
|
7166
|
+
if (f = !0, b = S, S = p(S), h !== void 0 && v.hasValue) {
|
|
7167
|
+
var M = v.value;
|
|
7168
7168
|
if (h(M, S))
|
|
7169
7169
|
return x = M;
|
|
7170
7170
|
}
|
|
7171
7171
|
return x = S;
|
|
7172
7172
|
}
|
|
7173
|
-
if (M = x, r(
|
|
7173
|
+
if (M = x, r(b, S)) return M;
|
|
7174
7174
|
var _ = p(S);
|
|
7175
|
-
return h !== void 0 && h(M, _) ? (
|
|
7175
|
+
return h !== void 0 && h(M, _) ? (b = S, M) : (b = S, x = _);
|
|
7176
7176
|
}
|
|
7177
|
-
var f = !1,
|
|
7177
|
+
var f = !1, b, x, k = d === void 0 ? null : d;
|
|
7178
7178
|
return [
|
|
7179
7179
|
function() {
|
|
7180
7180
|
return g(u());
|
|
@@ -7189,7 +7189,7 @@ function Ly() {
|
|
|
7189
7189
|
var y = o(c, m[0], m[1]);
|
|
7190
7190
|
return s(
|
|
7191
7191
|
function() {
|
|
7192
|
-
|
|
7192
|
+
v.hasValue = !0, v.value = y;
|
|
7193
7193
|
},
|
|
7194
7194
|
[y]
|
|
7195
7195
|
), l(y), y;
|
|
@@ -7206,26 +7206,26 @@ function Ay() {
|
|
|
7206
7206
|
Ml.useSyncExternalStoreWithSelector = function(c, u, d, p, h) {
|
|
7207
7207
|
var m = i(null);
|
|
7208
7208
|
if (m.current === null) {
|
|
7209
|
-
var
|
|
7210
|
-
m.current =
|
|
7211
|
-
} else
|
|
7209
|
+
var v = { hasValue: !1, value: null };
|
|
7210
|
+
m.current = v;
|
|
7211
|
+
} else v = m.current;
|
|
7212
7212
|
m = a(
|
|
7213
7213
|
function() {
|
|
7214
7214
|
function g(S) {
|
|
7215
7215
|
if (!f) {
|
|
7216
|
-
if (f = !0,
|
|
7217
|
-
var M =
|
|
7216
|
+
if (f = !0, b = S, S = p(S), h !== void 0 && v.hasValue) {
|
|
7217
|
+
var M = v.value;
|
|
7218
7218
|
if (h(M, S))
|
|
7219
7219
|
return x = M;
|
|
7220
7220
|
}
|
|
7221
7221
|
return x = S;
|
|
7222
7222
|
}
|
|
7223
|
-
if (M = x, r(
|
|
7223
|
+
if (M = x, r(b, S))
|
|
7224
7224
|
return M;
|
|
7225
7225
|
var _ = p(S);
|
|
7226
|
-
return h !== void 0 && h(M, _) ? (
|
|
7226
|
+
return h !== void 0 && h(M, _) ? (b = S, M) : (b = S, x = _);
|
|
7227
7227
|
}
|
|
7228
|
-
var f = !1,
|
|
7228
|
+
var f = !1, b, x, k = d === void 0 ? null : d;
|
|
7229
7229
|
return [
|
|
7230
7230
|
function() {
|
|
7231
7231
|
return g(u());
|
|
@@ -7240,7 +7240,7 @@ function Ay() {
|
|
|
7240
7240
|
var y = o(c, m[0], m[1]);
|
|
7241
7241
|
return s(
|
|
7242
7242
|
function() {
|
|
7243
|
-
|
|
7243
|
+
v.hasValue = !0, v.value = y;
|
|
7244
7244
|
},
|
|
7245
7245
|
[y]
|
|
7246
7246
|
), l(y), y;
|
|
@@ -7714,7 +7714,7 @@ function Qy(t = {}) {
|
|
|
7714
7714
|
contextElement: M
|
|
7715
7715
|
} : M;
|
|
7716
7716
|
a(_), u.refs.setReference(_);
|
|
7717
|
-
}, [u.refs]), [p, h] = C.useState(null), [m,
|
|
7717
|
+
}, [u.refs]), [p, h] = C.useState(null), [m, v] = C.useState(null);
|
|
7718
7718
|
o.useSyncedValue("referenceElement", p), o.useSyncedValue("domReferenceElement", $e(p) ? p : null), o.useSyncedValue("floatingElement", m);
|
|
7719
7719
|
const y = C.useCallback((M) => {
|
|
7720
7720
|
($e(M) || M === null) && (l.current = M, h(M)), ($e(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
@@ -7722,14 +7722,14 @@ function Qy(t = {}) {
|
|
|
7722
7722
|
// callback ref.
|
|
7723
7723
|
M !== null && !$e(M)) && u.refs.setReference(M);
|
|
7724
7724
|
}, [u.refs, h]), g = C.useCallback((M) => {
|
|
7725
|
-
|
|
7725
|
+
v(M), u.refs.setFloating(M);
|
|
7726
7726
|
}, [u.refs]), f = C.useMemo(() => ({
|
|
7727
7727
|
...u.refs,
|
|
7728
7728
|
setReference: y,
|
|
7729
7729
|
setFloating: g,
|
|
7730
7730
|
setPositionReference: d,
|
|
7731
7731
|
domReference: l
|
|
7732
|
-
}), [u.refs, y, g, d]),
|
|
7732
|
+
}), [u.refs, y, g, d]), b = C.useMemo(() => ({
|
|
7733
7733
|
...u.elements,
|
|
7734
7734
|
domReference: i.domReference
|
|
7735
7735
|
}), [u.elements, i.domReference]), x = o.useState("open"), k = o.useState("floatingId"), S = C.useMemo(() => ({
|
|
@@ -7740,10 +7740,10 @@ function Qy(t = {}) {
|
|
|
7740
7740
|
events: o.context.events,
|
|
7741
7741
|
floatingId: k,
|
|
7742
7742
|
refs: f,
|
|
7743
|
-
elements:
|
|
7743
|
+
elements: b,
|
|
7744
7744
|
nodeId: e,
|
|
7745
7745
|
rootStore: o
|
|
7746
|
-
}), [u, f,
|
|
7746
|
+
}), [u, f, b, e, o, x, k]);
|
|
7747
7747
|
return De(() => {
|
|
7748
7748
|
o.context.dataRef.current.floatingContext = S;
|
|
7749
7749
|
const M = c?.nodesRef.current.find((_) => _.id === e);
|
|
@@ -7752,9 +7752,9 @@ function Qy(t = {}) {
|
|
|
7752
7752
|
...u,
|
|
7753
7753
|
context: S,
|
|
7754
7754
|
refs: f,
|
|
7755
|
-
elements:
|
|
7755
|
+
elements: b,
|
|
7756
7756
|
rootStore: o
|
|
7757
|
-
}), [u, f,
|
|
7757
|
+
}), [u, f, b, S, o]);
|
|
7758
7758
|
}
|
|
7759
7759
|
const Ei = T1 && Wu;
|
|
7760
7760
|
function Jy(t, e = {}) {
|
|
@@ -7771,16 +7771,16 @@ function Jy(t, e = {}) {
|
|
|
7771
7771
|
return;
|
|
7772
7772
|
const p = ft(d);
|
|
7773
7773
|
function h() {
|
|
7774
|
-
!n.select("open") &&
|
|
7774
|
+
!n.select("open") && rt(d) && d === nn(ot(d)) && (a.current = !0);
|
|
7775
7775
|
}
|
|
7776
7776
|
function m() {
|
|
7777
7777
|
c.current = !0;
|
|
7778
7778
|
}
|
|
7779
|
-
function
|
|
7779
|
+
function v() {
|
|
7780
7780
|
c.current = !1;
|
|
7781
7781
|
}
|
|
7782
|
-
return p.addEventListener("blur", h), Ei && (p.addEventListener("keydown", m, !0), p.addEventListener("pointerdown",
|
|
7783
|
-
p.removeEventListener("blur", h), Ei && (p.removeEventListener("keydown", m, !0), p.removeEventListener("pointerdown",
|
|
7782
|
+
return p.addEventListener("blur", h), Ei && (p.addEventListener("keydown", m, !0), p.addEventListener("pointerdown", v, !0)), () => {
|
|
7783
|
+
p.removeEventListener("blur", h), Ei && (p.removeEventListener("keydown", m, !0), p.removeEventListener("pointerdown", v, !0));
|
|
7784
7784
|
};
|
|
7785
7785
|
}, [n, i]), C.useEffect(() => {
|
|
7786
7786
|
if (!i)
|
|
@@ -7813,8 +7813,8 @@ function Jy(t, e = {}) {
|
|
|
7813
7813
|
a.current = !1;
|
|
7814
7814
|
const p = d.relatedTarget, h = d.nativeEvent, m = $e(p) && p.hasAttribute(Ir("focus-guard")) && p.getAttribute("data-type") === "outside";
|
|
7815
7815
|
l.start(0, () => {
|
|
7816
|
-
const
|
|
7817
|
-
!p && y ===
|
|
7816
|
+
const v = n.select("domReferenceElement"), y = nn(v ? v.ownerDocument : document);
|
|
7817
|
+
!p && y === v || Ae(o.current.floatingContext?.refs.floating.current, y) || Ae(v, y) || m || n.context.triggerElements.hasElement(d.relatedTarget) || n.setOpen(!1, Qe(Xa, h));
|
|
7818
7818
|
});
|
|
7819
7819
|
}
|
|
7820
7820
|
}), [o, n, s, l]);
|
|
@@ -7860,10 +7860,10 @@ function rb(t, e = {}) {
|
|
|
7860
7860
|
handlerRef: p,
|
|
7861
7861
|
performedPointerEventsMutationRef: h,
|
|
7862
7862
|
unbindMouseMoveRef: m,
|
|
7863
|
-
restTimeoutPendingRef:
|
|
7863
|
+
restTimeoutPendingRef: v,
|
|
7864
7864
|
openChangeTimeout: y,
|
|
7865
7865
|
handleCloseOptionsRef: g
|
|
7866
|
-
} = wd(n), f = nr(c),
|
|
7866
|
+
} = wd(n), f = nr(c), b = zr(), x = Fe(() => d.current ? !0 : s.current.openEvent ? nb.has(s.current.openEvent.type) : !1), k = Fe(() => {
|
|
7867
7867
|
const L = s.current.openEvent?.type;
|
|
7868
7868
|
return L?.includes("mouse") && L !== "mousedown";
|
|
7869
7869
|
}), S = C.useCallback((L, R = !0) => {
|
|
@@ -7885,20 +7885,20 @@ function rb(t, e = {}) {
|
|
|
7885
7885
|
d.current = !0;
|
|
7886
7886
|
});
|
|
7887
7887
|
De(() => {
|
|
7888
|
-
r || (u.current = void 0,
|
|
7889
|
-
}, [r, u,
|
|
7888
|
+
r || (u.current = void 0, v.current = !1, d.current = !1, M(), _());
|
|
7889
|
+
}, [r, u, v, d, M, _]), C.useEffect(() => () => {
|
|
7890
7890
|
M();
|
|
7891
7891
|
}, [M]), C.useEffect(() => _, [_]), De(() => {
|
|
7892
7892
|
if (a && r && g.current?.blockPointerEvents && k() && $e(i) && o) {
|
|
7893
7893
|
h.current = !0;
|
|
7894
7894
|
const L = ot(o).body;
|
|
7895
7895
|
L.setAttribute(ss, "");
|
|
7896
|
-
const R = i, D = o, F = f?.nodesRef.current.find((T) => T.id ===
|
|
7896
|
+
const R = i, D = o, F = f?.nodesRef.current.find((T) => T.id === b)?.context?.elements.floating;
|
|
7897
7897
|
return F && (F.style.pointerEvents = ""), L.style.pointerEvents = "none", R.style.pointerEvents = "auto", D.style.pointerEvents = "auto", () => {
|
|
7898
7898
|
L.style.pointerEvents = "", R.style.pointerEvents = "", D.style.pointerEvents = "";
|
|
7899
7899
|
};
|
|
7900
7900
|
}
|
|
7901
|
-
}, [a, r, i, o, g, k, f,
|
|
7901
|
+
}, [a, r, i, o, g, k, f, b, h]), C.useEffect(() => {
|
|
7902
7902
|
if (!a)
|
|
7903
7903
|
return;
|
|
7904
7904
|
function L(T) {
|
|
@@ -7943,11 +7943,11 @@ function sb(t, e = {}) {
|
|
|
7943
7943
|
externalTree: p,
|
|
7944
7944
|
isActiveTrigger: h = !0
|
|
7945
7945
|
} = e, m = nr(p), {
|
|
7946
|
-
pointerTypeRef:
|
|
7946
|
+
pointerTypeRef: v,
|
|
7947
7947
|
interactedInsideRef: y,
|
|
7948
7948
|
handlerRef: g,
|
|
7949
7949
|
blockMouseMoveRef: f,
|
|
7950
|
-
performedPointerEventsMutationRef:
|
|
7950
|
+
performedPointerEventsMutationRef: b,
|
|
7951
7951
|
unbindMouseMoveRef: x,
|
|
7952
7952
|
restTimeoutPendingRef: k,
|
|
7953
7953
|
openChangeTimeout: S,
|
|
@@ -7956,14 +7956,14 @@ function sb(t, e = {}) {
|
|
|
7956
7956
|
} = wd(n), A = Nt(a), L = Nt(s), R = Nt(c);
|
|
7957
7957
|
h && (_.current = A.current?.__options);
|
|
7958
7958
|
const D = Fe(() => y.current ? !0 : r.current.openEvent ? ["click", "mousedown"].includes(r.current.openEvent.type) : !1), F = C.useCallback((H, I = !0) => {
|
|
7959
|
-
const K = pi(L.current, "close",
|
|
7959
|
+
const K = pi(L.current, "close", v.current);
|
|
7960
7960
|
K && !g.current ? S.start(K, () => n.setOpen(!1, Qe(Tt, H))) : I && (S.clear(), n.setOpen(!1, Qe(Tt, H)));
|
|
7961
|
-
}, [L, g, n,
|
|
7961
|
+
}, [L, g, n, v, S]), T = Fe(() => {
|
|
7962
7962
|
x.current(), g.current = void 0;
|
|
7963
7963
|
}), W = Fe(() => {
|
|
7964
|
-
if (
|
|
7964
|
+
if (b.current) {
|
|
7965
7965
|
const H = ot(n.select("domReferenceElement")).body;
|
|
7966
|
-
H.style.pointerEvents = "", H.removeAttribute(ss),
|
|
7966
|
+
H.style.pointerEvents = "", H.removeAttribute(ss), b.current = !1;
|
|
7967
7967
|
}
|
|
7968
7968
|
});
|
|
7969
7969
|
C.useEffect(() => {
|
|
@@ -8000,9 +8000,9 @@ function sb(t, e = {}) {
|
|
|
8000
8000
|
if (!$e(H))
|
|
8001
8001
|
return;
|
|
8002
8002
|
function I(O) {
|
|
8003
|
-
if (S.clear(), f.current = !1, l && !Fn(
|
|
8003
|
+
if (S.clear(), f.current = !1, l && !Fn(v.current) || Ci(R.current) > 0 && !pi(L.current, "open"))
|
|
8004
8004
|
return;
|
|
8005
|
-
const $ = pi(L.current, "open",
|
|
8005
|
+
const $ = pi(L.current, "open", v.current), j = n.select("domReferenceElement"), w = n.context.triggerElements, E = (w.hasElement(O.target) || w.hasMatchingElement((z) => Ae(z, O.target))) && (!j || !Ae(j, O.target)), N = O.currentTarget ?? null, P = !n.select("open") || E;
|
|
8006
8006
|
$ ? S.start($, () => {
|
|
8007
8007
|
P && n.setOpen(!0, Qe(Tt, O, N));
|
|
8008
8008
|
}) : P && n.setOpen(!0, Qe(Tt, O, N));
|
|
@@ -8035,7 +8035,7 @@ function sb(t, e = {}) {
|
|
|
8035
8035
|
};
|
|
8036
8036
|
return;
|
|
8037
8037
|
}
|
|
8038
|
-
(
|
|
8038
|
+
(v.current !== "touch" || !Ae(n.select("floatingElement"), O.relatedTarget)) && F(O);
|
|
8039
8039
|
}
|
|
8040
8040
|
}
|
|
8041
8041
|
function V(O) {
|
|
@@ -8046,9 +8046,9 @@ function sb(t, e = {}) {
|
|
|
8046
8046
|
}), H.addEventListener("mouseenter", I), H.addEventListener("mouseleave", K), () => {
|
|
8047
8047
|
H.removeEventListener("mouseleave", V), u && H.removeEventListener("mousemove", I), H.removeEventListener("mouseenter", I), H.removeEventListener("mouseleave", K);
|
|
8048
8048
|
};
|
|
8049
|
-
}, [T, W, f, r, L, F, n, i, A, B, h, D, l, u,
|
|
8049
|
+
}, [T, W, f, r, L, F, n, i, A, B, h, D, l, u, v, R, M, k, S, d, m, x, g]), C.useMemo(() => {
|
|
8050
8050
|
function H(I) {
|
|
8051
|
-
|
|
8051
|
+
v.current = I.pointerType;
|
|
8052
8052
|
}
|
|
8053
8053
|
return {
|
|
8054
8054
|
onPointerDown: H,
|
|
@@ -8057,18 +8057,18 @@ function sb(t, e = {}) {
|
|
|
8057
8057
|
const {
|
|
8058
8058
|
nativeEvent: K
|
|
8059
8059
|
} = I, V = I.currentTarget, O = n.select("domReferenceElement"), $ = n.context.triggerElements, j = n.select("open"), w = ($.hasElement(I.target) || $.hasMatchingElement((N) => Ae(N, I.target))) && (!O || !Ae(O, I.target));
|
|
8060
|
-
if (l && !Fn(
|
|
8060
|
+
if (l && !Fn(v.current) || j && !w || Ci(R.current) === 0 || !w && k.current && I.movementX ** 2 + I.movementY ** 2 < 2)
|
|
8061
8061
|
return;
|
|
8062
8062
|
M.clear();
|
|
8063
8063
|
function E() {
|
|
8064
8064
|
!f.current && (!j || w) && n.setOpen(!0, Qe(Tt, K, V));
|
|
8065
8065
|
}
|
|
8066
|
-
|
|
8066
|
+
v.current === "touch" ? sn.flushSync(() => {
|
|
8067
8067
|
E();
|
|
8068
8068
|
}) : w && j ? E() : (k.current = !0, M.start(Ci(R.current), E));
|
|
8069
8069
|
}
|
|
8070
8070
|
};
|
|
8071
|
-
}, [f, l, n,
|
|
8071
|
+
}, [f, l, n, v, R, M, k]);
|
|
8072
8072
|
}
|
|
8073
8073
|
function ab(t = []) {
|
|
8074
8074
|
const e = t.map((c) => c?.reference), n = t.map((c) => c?.floating), r = t.map((c) => c?.item), o = t.map((c) => c?.trigger), i = C.useCallback(
|
|
@@ -8137,7 +8137,7 @@ function cb(t = {}) {
|
|
|
8137
8137
|
const h = performance.now(), m = h - l;
|
|
8138
8138
|
if (s === null || a === null || m === 0)
|
|
8139
8139
|
return s = d, a = p, l = h, null;
|
|
8140
|
-
const
|
|
8140
|
+
const v = d - s, y = p - a, g = Math.sqrt(v * v + y * y) / m;
|
|
8141
8141
|
return s = d, a = p, l = h, g;
|
|
8142
8142
|
}
|
|
8143
8143
|
const u = ({
|
|
@@ -8145,12 +8145,12 @@ function cb(t = {}) {
|
|
|
8145
8145
|
y: p,
|
|
8146
8146
|
placement: h,
|
|
8147
8147
|
elements: m,
|
|
8148
|
-
onClose:
|
|
8148
|
+
onClose: v,
|
|
8149
8149
|
nodeId: y,
|
|
8150
8150
|
tree: g
|
|
8151
8151
|
}) => function(f) {
|
|
8152
|
-
function
|
|
8153
|
-
o.clear(),
|
|
8152
|
+
function b() {
|
|
8153
|
+
o.clear(), v();
|
|
8154
8154
|
}
|
|
8155
8155
|
if (o.clear(), !m.domReference || !m.floating || h == null || d == null || p == null)
|
|
8156
8156
|
return;
|
|
@@ -8169,7 +8169,7 @@ function cb(t = {}) {
|
|
|
8169
8169
|
}) => E?.open))
|
|
8170
8170
|
return;
|
|
8171
8171
|
if (F === "top" && p >= R.bottom - 1 || F === "bottom" && p <= R.top + 1 || F === "left" && d >= R.right - 1 || F === "right" && d <= R.left + 1)
|
|
8172
|
-
return
|
|
8172
|
+
return b();
|
|
8173
8173
|
let j = [];
|
|
8174
8174
|
switch (F) {
|
|
8175
8175
|
case "top":
|
|
@@ -8209,13 +8209,13 @@ function cb(t = {}) {
|
|
|
8209
8209
|
}
|
|
8210
8210
|
if (!Pl([x, k], j)) {
|
|
8211
8211
|
if (i && !B)
|
|
8212
|
-
return
|
|
8212
|
+
return b();
|
|
8213
8213
|
if (!_ && r) {
|
|
8214
8214
|
const E = c(f.clientX, f.clientY);
|
|
8215
8215
|
if (E !== null && E < 0.1)
|
|
8216
|
-
return
|
|
8216
|
+
return b();
|
|
8217
8217
|
}
|
|
8218
|
-
Pl([x, k], w([d, p])) ? !i && r && o.start(40,
|
|
8218
|
+
Pl([x, k], w([d, p])) ? !i && r && o.start(40, b) : b();
|
|
8219
8219
|
}
|
|
8220
8220
|
};
|
|
8221
8221
|
return u.__options = {
|
|
@@ -8247,7 +8247,7 @@ const bb = {
|
|
|
8247
8247
|
} = Qn(), {
|
|
8248
8248
|
side: a,
|
|
8249
8249
|
align: l
|
|
8250
|
-
} = Cu(), c = ub() != null, u = s.useState("open"), d = s.useState("transitionStatus"), p = s.useState("popupProps"), h = s.useState("mounted"), m = s.useState("instantType"),
|
|
8250
|
+
} = Cu(), c = ub() != null, u = s.useState("open"), d = s.useState("transitionStatus"), p = s.useState("popupProps"), h = s.useState("mounted"), m = s.useState("instantType"), v = s.useState("activeTriggerElement"), y = s.useState("parent"), g = s.useState("lastOpenChangeReason"), f = s.useState("rootId"), b = s.useState("floatingRootContext"), x = s.useState("floatingTreeRoot"), k = s.useState("closeDelay"), S = s.useState("activeTriggerElement");
|
|
8251
8251
|
I1({
|
|
8252
8252
|
open: u,
|
|
8253
8253
|
ref: s.context.popupRef,
|
|
@@ -8263,7 +8263,7 @@ const bb = {
|
|
|
8263
8263
|
};
|
|
8264
8264
|
}, [x.events, s]);
|
|
8265
8265
|
const M = s.useState("hoverEnabled"), _ = s.useState("disabled");
|
|
8266
|
-
rb(
|
|
8266
|
+
rb(b, {
|
|
8267
8267
|
enabled: M && !_ && y.type !== "context-menu" && y.type !== "menubar",
|
|
8268
8268
|
closeDelay: k
|
|
8269
8269
|
});
|
|
@@ -8287,8 +8287,8 @@ const bb = {
|
|
|
8287
8287
|
}]
|
|
8288
8288
|
});
|
|
8289
8289
|
let R = y.type === void 0 || y.type === "context-menu";
|
|
8290
|
-
return (
|
|
8291
|
-
context:
|
|
8290
|
+
return (v || y.type === "menubar" && g !== Tu) && (R = !0), /* @__PURE__ */ Y.jsx(O0, {
|
|
8291
|
+
context: b,
|
|
8292
8292
|
modal: !1,
|
|
8293
8293
|
disabled: !h,
|
|
8294
8294
|
returnFocus: o === void 0 ? R : o,
|
|
@@ -8356,10 +8356,10 @@ const Cb = (t) => ({
|
|
|
8356
8356
|
const p = Gu(u), h = {
|
|
8357
8357
|
x: n,
|
|
8358
8358
|
y: r
|
|
8359
|
-
}, m = Ws(o),
|
|
8360
|
-
let _ = a.floating[x] || i.floating[
|
|
8361
|
-
(!_ || !await s.isElement?.(M)) && (_ = a.floating[x] || i.floating[
|
|
8362
|
-
const A = k / 2 - S / 2, L = _ / 2 - y[
|
|
8359
|
+
}, m = Ws(o), v = Fs(m), y = await s.getDimensions(c), g = m === "y", f = g ? "top" : "left", b = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", k = i.reference[v] + i.reference[m] - h[m] - i.floating[v], S = h[m] - i.reference[m], M = d === "real" ? await s.getOffsetParent?.(c) : a.floating;
|
|
8360
|
+
let _ = a.floating[x] || i.floating[v];
|
|
8361
|
+
(!_ || !await s.isElement?.(M)) && (_ = a.floating[x] || i.floating[v]);
|
|
8362
|
+
const A = k / 2 - S / 2, L = _ / 2 - y[v] / 2 - 1, R = Math.min(p[f], L), D = Math.min(p[b], L), F = R, T = _ - y[v] - D, W = _ / 2 - y[v] / 2 + A, B = ns(F, W, T), H = !l.arrow && cn(o) != null && W !== B && i.reference[v] / 2 - (W < F ? R : D) - y[v] / 2 < 0, I = H ? W < F ? W - F : W - T : 0;
|
|
8363
8363
|
return {
|
|
8364
8364
|
[m]: h[m] + I,
|
|
8365
8365
|
data: {
|
|
@@ -8439,15 +8439,15 @@ function Nb(t) {
|
|
|
8439
8439
|
keepMounted: p = !1,
|
|
8440
8440
|
floatingRootContext: h,
|
|
8441
8441
|
mounted: m,
|
|
8442
|
-
collisionAvoidance:
|
|
8442
|
+
collisionAvoidance: v,
|
|
8443
8443
|
shiftCrossAxis: y = !1,
|
|
8444
8444
|
nodeId: g,
|
|
8445
8445
|
adaptiveOrigin: f,
|
|
8446
|
-
lazyFlip:
|
|
8446
|
+
lazyFlip: b = !1,
|
|
8447
8447
|
externalTree: x
|
|
8448
8448
|
} = t, [k, S] = C.useState(null);
|
|
8449
8449
|
!m && k !== null && S(null);
|
|
8450
|
-
const M =
|
|
8450
|
+
const M = v.side || "flip", _ = v.align || "flip", A = v.fallbackAxisSide || "end", L = typeof e == "function" ? e : void 0, R = Fe(L), D = L ? R : e, F = Nt(e), T = Eb() === "rtl", W = k || {
|
|
8451
8451
|
top: "top",
|
|
8452
8452
|
right: "right",
|
|
8453
8453
|
bottom: "bottom",
|
|
@@ -8618,8 +8618,8 @@ function Nb(t) {
|
|
|
8618
8618
|
}, [p, m, J, Ee, G]);
|
|
8619
8619
|
const Te = vt(we), at = Od(r, Te, T), kt = cn(we) || "center", Hr = !!se.hide?.referenceHidden;
|
|
8620
8620
|
De(() => {
|
|
8621
|
-
|
|
8622
|
-
}, [
|
|
8621
|
+
b && m && ce && S(Te);
|
|
8622
|
+
}, [b, m, ce, Te]);
|
|
8623
8623
|
const $r = C.useMemo(() => ({
|
|
8624
8624
|
position: "absolute",
|
|
8625
8625
|
top: se.arrow?.y,
|
|
@@ -8655,11 +8655,11 @@ function Mb(t) {
|
|
|
8655
8655
|
l.delete(g), d.current += 1, u(d.current);
|
|
8656
8656
|
}), m = C.useMemo(() => {
|
|
8657
8657
|
const g = /* @__PURE__ */ new Map();
|
|
8658
|
-
return Array.from(l.keys()).filter((f) => f.isConnected).sort(Tb).forEach((f,
|
|
8658
|
+
return Array.from(l.keys()).filter((f) => f.isConnected).sort(Tb).forEach((f, b) => {
|
|
8659
8659
|
const x = l.get(f) ?? {};
|
|
8660
8660
|
g.set(f, {
|
|
8661
8661
|
...x,
|
|
8662
|
-
index:
|
|
8662
|
+
index: b
|
|
8663
8663
|
});
|
|
8664
8664
|
}), g;
|
|
8665
8665
|
}, [l, c]);
|
|
@@ -8667,13 +8667,13 @@ function Mb(t) {
|
|
|
8667
8667
|
if (typeof MutationObserver != "function" || m.size === 0)
|
|
8668
8668
|
return;
|
|
8669
8669
|
const g = new MutationObserver((f) => {
|
|
8670
|
-
const
|
|
8670
|
+
const b = /* @__PURE__ */ new Set(), x = (k) => b.has(k) ? b.delete(k) : b.add(k);
|
|
8671
8671
|
f.forEach((k) => {
|
|
8672
8672
|
k.removedNodes.forEach(x), k.addedNodes.forEach(x);
|
|
8673
|
-
}),
|
|
8673
|
+
}), b.size === 0 && (d.current += 1, u(d.current));
|
|
8674
8674
|
});
|
|
8675
|
-
return m.forEach((f,
|
|
8676
|
-
|
|
8675
|
+
return m.forEach((f, b) => {
|
|
8676
|
+
b.parentElement && g.observe(b.parentElement, {
|
|
8677
8677
|
childList: !0
|
|
8678
8678
|
});
|
|
8679
8679
|
}), () => {
|
|
@@ -8686,7 +8686,7 @@ function Mb(t) {
|
|
|
8686
8686
|
}, [n]), De(() => () => {
|
|
8687
8687
|
r && (r.current = []);
|
|
8688
8688
|
}, [r]);
|
|
8689
|
-
const
|
|
8689
|
+
const v = Fe((g) => (a.add(g), () => {
|
|
8690
8690
|
a.delete(g);
|
|
8691
8691
|
}));
|
|
8692
8692
|
De(() => {
|
|
@@ -8695,11 +8695,11 @@ function Mb(t) {
|
|
|
8695
8695
|
const y = C.useMemo(() => ({
|
|
8696
8696
|
register: p,
|
|
8697
8697
|
unregister: h,
|
|
8698
|
-
subscribeMapChange:
|
|
8698
|
+
subscribeMapChange: v,
|
|
8699
8699
|
elementsRef: n,
|
|
8700
8700
|
labelsRef: r,
|
|
8701
8701
|
nextIndexRef: s
|
|
8702
|
-
}), [p, h,
|
|
8702
|
+
}), [p, h, v, n, r, s]);
|
|
8703
8703
|
return /* @__PURE__ */ Y.jsx(js.Provider, {
|
|
8704
8704
|
value: y,
|
|
8705
8705
|
children: e
|
|
@@ -8766,19 +8766,19 @@ const Pb = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
8766
8766
|
arrowPadding: p = 5,
|
|
8767
8767
|
sticky: h = !1,
|
|
8768
8768
|
disableAnchorTracking: m = !1,
|
|
8769
|
-
collisionAvoidance:
|
|
8769
|
+
collisionAvoidance: v = $g,
|
|
8770
8770
|
...y
|
|
8771
8771
|
} = t, {
|
|
8772
8772
|
store: g
|
|
8773
|
-
} = Qn(), f = wb(),
|
|
8774
|
-
let T = n, W = l, B = c, H = a, I =
|
|
8773
|
+
} = Qn(), f = wb(), b = Is(!0), x = g.useState("parent"), k = g.useState("floatingRootContext"), S = g.useState("floatingTreeRoot"), M = g.useState("mounted"), _ = g.useState("open"), A = g.useState("modal"), L = g.useState("activeTriggerElement"), R = g.useState("lastOpenChangeReason"), D = g.useState("floatingNodeId"), F = g.useState("floatingParentNodeId");
|
|
8774
|
+
let T = n, W = l, B = c, H = a, I = v;
|
|
8775
8775
|
x.type === "context-menu" && (T = n ?? x.context?.anchor, H = H ?? "start", !s && H !== "center" && (B = t.alignOffset ?? 2, W = t.sideOffset ?? -5));
|
|
8776
8776
|
let K = s, V = H;
|
|
8777
8777
|
x.type === "menu" ? (K = K ?? "inline-end", V = V ?? "start", I = t.collisionAvoidance ?? Bg) : x.type === "menubar" && (K = K ?? "bottom", V = V ?? "start");
|
|
8778
8778
|
const O = x.type === "context-menu", $ = Nb({
|
|
8779
8779
|
anchor: T,
|
|
8780
8780
|
floatingRootContext: k,
|
|
8781
|
-
positionMethod:
|
|
8781
|
+
positionMethod: b ? "fixed" : r,
|
|
8782
8782
|
mounted: M,
|
|
8783
8783
|
side: K,
|
|
8784
8784
|
sideOffset: W,
|
|
@@ -8957,7 +8957,7 @@ function Vb(t) {
|
|
|
8957
8957
|
});
|
|
8958
8958
|
}
|
|
8959
8959
|
function Id(t) {
|
|
8960
|
-
if (
|
|
8960
|
+
if (rt(t) && t.hasAttribute("data-rootownerid"))
|
|
8961
8961
|
return t.getAttribute("data-rootownerid") ?? void 0;
|
|
8962
8962
|
if (!vn(t))
|
|
8963
8963
|
return Id(Gt(t));
|
|
@@ -8997,10 +8997,10 @@ const ro = 2, Fb = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
8997
8997
|
} = t, h = Qn(!0), m = u?.store ?? h?.store;
|
|
8998
8998
|
if (!m)
|
|
8999
8999
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle." : Zt(85));
|
|
9000
|
-
const
|
|
9000
|
+
const v = Au(s), y = m.useState("isTriggerActive", v), g = m.useState("floatingRootContext"), f = m.useState("isOpenedByTrigger", v), b = C.useRef(null), x = Hb(), k = Rs(!0), S = nr(), M = C.useMemo(() => S ?? new h0(), [S]), _ = g0(M), A = zr(), {
|
|
9001
9001
|
registerTrigger: L,
|
|
9002
9002
|
isMountedByThisTrigger: R
|
|
9003
|
-
} = Ky(
|
|
9003
|
+
} = Ky(v, b, m, {
|
|
9004
9004
|
payload: d,
|
|
9005
9005
|
closeDelay: c,
|
|
9006
9006
|
parent: x,
|
|
@@ -9047,7 +9047,7 @@ const ro = 2, Fb = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
9047
9047
|
delay: {
|
|
9048
9048
|
close: c
|
|
9049
9049
|
},
|
|
9050
|
-
triggerElementRef:
|
|
9050
|
+
triggerElementRef: b,
|
|
9051
9051
|
externalTree: M,
|
|
9052
9052
|
isActiveTrigger: y
|
|
9053
9053
|
}), O = Wb(f, m.select("lastOpenChangeReason")), $ = N0(g, {
|
|
@@ -9065,9 +9065,9 @@ const ro = 2, Fb = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
9065
9065
|
}), E = ab([$, j]), N = x.type === "menubar", P = C.useMemo(() => ({
|
|
9066
9066
|
disabled: F,
|
|
9067
9067
|
open: f
|
|
9068
|
-
}), [F, f]), z = m.useState("triggerProps", R), q = [B, e, W, L,
|
|
9068
|
+
}), [F, f]), z = m.useState("triggerProps", R), q = [B, e, W, L, b], U = [E.getReferenceProps(), V ?? yt, z, {
|
|
9069
9069
|
"aria-haspopup": "menu",
|
|
9070
|
-
id:
|
|
9070
|
+
id: v,
|
|
9071
9071
|
onMouseDown: (ye) => {
|
|
9072
9072
|
m.select("open") || (H.start(200, () => {
|
|
9073
9073
|
m.context.allowMouseUpTriggerRef.current = !0;
|
|
@@ -9089,7 +9089,7 @@ const ro = 2, Fb = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
9089
9089
|
sn.flushSync(() => {
|
|
9090
9090
|
m.setOpen(!1, Qe(xo, ye.nativeEvent, ye.currentTarget));
|
|
9091
9091
|
});
|
|
9092
|
-
let se = f0(
|
|
9092
|
+
let se = f0(b.current);
|
|
9093
9093
|
for (; se !== null && Ae(ee, se) || se?.hasAttribute("aria-hidden"); ) {
|
|
9094
9094
|
const Ee = se;
|
|
9095
9095
|
if (se = Hs(se), se === Ee)
|
|
@@ -9116,15 +9116,15 @@ const ro = 2, Fb = /* @__PURE__ */ C.forwardRef(function(t, e) {
|
|
|
9116
9116
|
children: [/* @__PURE__ */ Y.jsx(wn, {
|
|
9117
9117
|
ref: ie,
|
|
9118
9118
|
onFocus: G
|
|
9119
|
-
}, `${
|
|
9119
|
+
}, `${v}-pre-focus-guard`), /* @__PURE__ */ Y.jsx(C.Fragment, {
|
|
9120
9120
|
children: J
|
|
9121
|
-
},
|
|
9121
|
+
}, v), /* @__PURE__ */ Y.jsx(wn, {
|
|
9122
9122
|
ref: m.context.triggerFocusTargetRef,
|
|
9123
9123
|
onFocus: fe
|
|
9124
|
-
}, `${
|
|
9124
|
+
}, `${v}-post-focus-guard`)]
|
|
9125
9125
|
}) : /* @__PURE__ */ Y.jsx(C.Fragment, {
|
|
9126
9126
|
children: J
|
|
9127
|
-
},
|
|
9127
|
+
}, v);
|
|
9128
9128
|
});
|
|
9129
9129
|
process.env.NODE_ENV !== "production" && (Fb.displayName = "MenuTrigger");
|
|
9130
9130
|
function Wb(t, e) {
|
|
@@ -9333,7 +9333,7 @@ const Ks = ({
|
|
|
9333
9333
|
iconCancel: "var(--error)"
|
|
9334
9334
|
}
|
|
9335
9335
|
}, Ub = pe(
|
|
9336
|
-
() => import("./index.esm-fQDYRCEr-
|
|
9336
|
+
() => import("./index.esm-fQDYRCEr-DMrT-B4r.js").then((t) => ({
|
|
9337
9337
|
default: t.JsonEditor
|
|
9338
9338
|
}))
|
|
9339
9339
|
);
|
|
@@ -9431,8 +9431,8 @@ var oo = { exports: {} }, _i = { exports: {} }, Me = {}, zl;
|
|
|
9431
9431
|
function Qb() {
|
|
9432
9432
|
if (zl) return Me;
|
|
9433
9433
|
zl = 1;
|
|
9434
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, a = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, m = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116,
|
|
9435
|
-
function
|
|
9434
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, a = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, m = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, f = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
9435
|
+
function b(k) {
|
|
9436
9436
|
if (typeof k == "object" && k !== null) {
|
|
9437
9437
|
var S = k.$$typeof;
|
|
9438
9438
|
switch (S) {
|
|
@@ -9463,43 +9463,43 @@ function Qb() {
|
|
|
9463
9463
|
}
|
|
9464
9464
|
}
|
|
9465
9465
|
function x(k) {
|
|
9466
|
-
return
|
|
9466
|
+
return b(k) === c;
|
|
9467
9467
|
}
|
|
9468
9468
|
return Me.AsyncMode = l, Me.ConcurrentMode = c, Me.ContextConsumer = a, Me.ContextProvider = s, Me.Element = e, Me.ForwardRef = u, Me.Fragment = r, Me.Lazy = m, Me.Memo = h, Me.Portal = n, Me.Profiler = i, Me.StrictMode = o, Me.Suspense = d, Me.isAsyncMode = function(k) {
|
|
9469
|
-
return x(k) ||
|
|
9469
|
+
return x(k) || b(k) === l;
|
|
9470
9470
|
}, Me.isConcurrentMode = x, Me.isContextConsumer = function(k) {
|
|
9471
|
-
return
|
|
9471
|
+
return b(k) === a;
|
|
9472
9472
|
}, Me.isContextProvider = function(k) {
|
|
9473
|
-
return
|
|
9473
|
+
return b(k) === s;
|
|
9474
9474
|
}, Me.isElement = function(k) {
|
|
9475
9475
|
return typeof k == "object" && k !== null && k.$$typeof === e;
|
|
9476
9476
|
}, Me.isForwardRef = function(k) {
|
|
9477
|
-
return
|
|
9477
|
+
return b(k) === u;
|
|
9478
9478
|
}, Me.isFragment = function(k) {
|
|
9479
|
-
return
|
|
9479
|
+
return b(k) === r;
|
|
9480
9480
|
}, Me.isLazy = function(k) {
|
|
9481
|
-
return
|
|
9481
|
+
return b(k) === m;
|
|
9482
9482
|
}, Me.isMemo = function(k) {
|
|
9483
|
-
return
|
|
9483
|
+
return b(k) === h;
|
|
9484
9484
|
}, Me.isPortal = function(k) {
|
|
9485
|
-
return
|
|
9485
|
+
return b(k) === n;
|
|
9486
9486
|
}, Me.isProfiler = function(k) {
|
|
9487
|
-
return
|
|
9487
|
+
return b(k) === i;
|
|
9488
9488
|
}, Me.isStrictMode = function(k) {
|
|
9489
|
-
return
|
|
9489
|
+
return b(k) === o;
|
|
9490
9490
|
}, Me.isSuspense = function(k) {
|
|
9491
|
-
return
|
|
9491
|
+
return b(k) === d;
|
|
9492
9492
|
}, Me.isValidElementType = function(k) {
|
|
9493
|
-
return typeof k == "string" || typeof k == "function" || k === r || k === c || k === i || k === o || k === d || k === p || typeof k == "object" && k !== null && (k.$$typeof === m || k.$$typeof === h || k.$$typeof === s || k.$$typeof === a || k.$$typeof === u || k.$$typeof === y || k.$$typeof === g || k.$$typeof === f || k.$$typeof ===
|
|
9494
|
-
}, Me.typeOf =
|
|
9493
|
+
return typeof k == "string" || typeof k == "function" || k === r || k === c || k === i || k === o || k === d || k === p || typeof k == "object" && k !== null && (k.$$typeof === m || k.$$typeof === h || k.$$typeof === s || k.$$typeof === a || k.$$typeof === u || k.$$typeof === y || k.$$typeof === g || k.$$typeof === f || k.$$typeof === v);
|
|
9494
|
+
}, Me.typeOf = b, Me;
|
|
9495
9495
|
}
|
|
9496
9496
|
var Pe = {}, Fl;
|
|
9497
9497
|
function Jb() {
|
|
9498
9498
|
return Fl || (Fl = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
9499
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, a = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, m = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116,
|
|
9500
|
-
function
|
|
9499
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, a = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, p = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, h = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, m = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, f = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
9500
|
+
function b(G) {
|
|
9501
9501
|
return typeof G == "string" || typeof G == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
9502
|
-
G === r || G === c || G === i || G === o || G === d || G === p || typeof G == "object" && G !== null && (G.$$typeof === m || G.$$typeof === h || G.$$typeof === s || G.$$typeof === a || G.$$typeof === u || G.$$typeof === y || G.$$typeof === g || G.$$typeof === f || G.$$typeof ===
|
|
9502
|
+
G === r || G === c || G === i || G === o || G === d || G === p || typeof G == "object" && G !== null && (G.$$typeof === m || G.$$typeof === h || G.$$typeof === s || G.$$typeof === a || G.$$typeof === u || G.$$typeof === y || G.$$typeof === g || G.$$typeof === f || G.$$typeof === v);
|
|
9503
9503
|
}
|
|
9504
9504
|
function x(G) {
|
|
9505
9505
|
if (typeof G == "object" && G !== null) {
|
|
@@ -9573,7 +9573,7 @@ function Jb() {
|
|
|
9573
9573
|
function ie(G) {
|
|
9574
9574
|
return x(G) === d;
|
|
9575
9575
|
}
|
|
9576
|
-
Pe.AsyncMode = k, Pe.ConcurrentMode = S, Pe.ContextConsumer = M, Pe.ContextProvider = _, Pe.Element = A, Pe.ForwardRef = L, Pe.Fragment = R, Pe.Lazy = D, Pe.Memo = F, Pe.Portal = T, Pe.Profiler = W, Pe.StrictMode = B, Pe.Suspense = H, Pe.isAsyncMode = K, Pe.isConcurrentMode = V, Pe.isContextConsumer = O, Pe.isContextProvider = $, Pe.isElement = j, Pe.isForwardRef = w, Pe.isFragment = E, Pe.isLazy = N, Pe.isMemo = P, Pe.isPortal = z, Pe.isProfiler = q, Pe.isStrictMode = U, Pe.isSuspense = ie, Pe.isValidElementType =
|
|
9576
|
+
Pe.AsyncMode = k, Pe.ConcurrentMode = S, Pe.ContextConsumer = M, Pe.ContextProvider = _, Pe.Element = A, Pe.ForwardRef = L, Pe.Fragment = R, Pe.Lazy = D, Pe.Memo = F, Pe.Portal = T, Pe.Profiler = W, Pe.StrictMode = B, Pe.Suspense = H, Pe.isAsyncMode = K, Pe.isConcurrentMode = V, Pe.isContextConsumer = O, Pe.isContextProvider = $, Pe.isElement = j, Pe.isForwardRef = w, Pe.isFragment = E, Pe.isLazy = N, Pe.isMemo = P, Pe.isPortal = z, Pe.isProfiler = q, Pe.isStrictMode = U, Pe.isSuspense = ie, Pe.isValidElementType = b, Pe.typeOf = x;
|
|
9577
9577
|
})()), Pe;
|
|
9578
9578
|
}
|
|
9579
9579
|
var Wl;
|
|
@@ -9720,7 +9720,7 @@ function nv() {
|
|
|
9720
9720
|
string: g("string"),
|
|
9721
9721
|
symbol: g("symbol"),
|
|
9722
9722
|
any: f(),
|
|
9723
|
-
arrayOf:
|
|
9723
|
+
arrayOf: b,
|
|
9724
9724
|
element: x(),
|
|
9725
9725
|
elementType: k(),
|
|
9726
9726
|
instanceOf: S,
|
|
@@ -9734,10 +9734,10 @@ function nv() {
|
|
|
9734
9734
|
function m(V, O) {
|
|
9735
9735
|
return V === O ? V !== 0 || 1 / V === 1 / O : V !== V && O !== O;
|
|
9736
9736
|
}
|
|
9737
|
-
function
|
|
9737
|
+
function v(V, O) {
|
|
9738
9738
|
this.message = V, this.data = O && typeof O == "object" ? O : {}, this.stack = "";
|
|
9739
9739
|
}
|
|
9740
|
-
|
|
9740
|
+
v.prototype = Error.prototype;
|
|
9741
9741
|
function y(V) {
|
|
9742
9742
|
if (process.env.NODE_ENV !== "production")
|
|
9743
9743
|
var O = {}, $ = 0;
|
|
@@ -9756,7 +9756,7 @@ function nv() {
|
|
|
9756
9756
|
), O[fe] = !0, $++);
|
|
9757
9757
|
}
|
|
9758
9758
|
}
|
|
9759
|
-
return N[P] == null ? E ? N[P] === null ? new
|
|
9759
|
+
return N[P] == null ? E ? N[P] === null ? new v("The " + q + " `" + U + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new v("The " + q + " `" + U + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : V(N, P, z, q, U);
|
|
9760
9760
|
}
|
|
9761
9761
|
var w = j.bind(null, !1);
|
|
9762
9762
|
return w.isRequired = j.bind(null, !0), w;
|
|
@@ -9766,7 +9766,7 @@ function nv() {
|
|
|
9766
9766
|
var z = $[j], q = B(z);
|
|
9767
9767
|
if (q !== V) {
|
|
9768
9768
|
var U = H(z);
|
|
9769
|
-
return new
|
|
9769
|
+
return new v(
|
|
9770
9770
|
"Invalid " + E + " `" + N + "` of type " + ("`" + U + "` supplied to `" + w + "`, expected ") + ("`" + V + "`."),
|
|
9771
9771
|
{ expectedType: V }
|
|
9772
9772
|
);
|
|
@@ -9778,14 +9778,14 @@ function nv() {
|
|
|
9778
9778
|
function f() {
|
|
9779
9779
|
return y(s);
|
|
9780
9780
|
}
|
|
9781
|
-
function
|
|
9781
|
+
function b(V) {
|
|
9782
9782
|
function O($, j, w, E, N) {
|
|
9783
9783
|
if (typeof V != "function")
|
|
9784
|
-
return new
|
|
9784
|
+
return new v("Property `" + N + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
|
|
9785
9785
|
var P = $[j];
|
|
9786
9786
|
if (!Array.isArray(P)) {
|
|
9787
9787
|
var z = B(P);
|
|
9788
|
-
return new
|
|
9788
|
+
return new v("Invalid " + E + " `" + N + "` of type " + ("`" + z + "` supplied to `" + w + "`, expected an array."));
|
|
9789
9789
|
}
|
|
9790
9790
|
for (var q = 0; q < P.length; q++) {
|
|
9791
9791
|
var U = V(P, q, w, E, N + "[" + q + "]", n);
|
|
@@ -9801,7 +9801,7 @@ function nv() {
|
|
|
9801
9801
|
var N = O[$];
|
|
9802
9802
|
if (!a(N)) {
|
|
9803
9803
|
var P = B(N);
|
|
9804
|
-
return new
|
|
9804
|
+
return new v("Invalid " + w + " `" + E + "` of type " + ("`" + P + "` supplied to `" + j + "`, expected a single ReactElement."));
|
|
9805
9805
|
}
|
|
9806
9806
|
return null;
|
|
9807
9807
|
}
|
|
@@ -9812,7 +9812,7 @@ function nv() {
|
|
|
9812
9812
|
var N = O[$];
|
|
9813
9813
|
if (!t.isValidElementType(N)) {
|
|
9814
9814
|
var P = B(N);
|
|
9815
|
-
return new
|
|
9815
|
+
return new v("Invalid " + w + " `" + E + "` of type " + ("`" + P + "` supplied to `" + j + "`, expected a single ReactElement type."));
|
|
9816
9816
|
}
|
|
9817
9817
|
return null;
|
|
9818
9818
|
}
|
|
@@ -9822,7 +9822,7 @@ function nv() {
|
|
|
9822
9822
|
function O($, j, w, E, N) {
|
|
9823
9823
|
if (!($[j] instanceof V)) {
|
|
9824
9824
|
var P = V.name || p, z = K($[j]);
|
|
9825
|
-
return new
|
|
9825
|
+
return new v("Invalid " + E + " `" + N + "` of type " + ("`" + z + "` supplied to `" + w + "`, expected ") + ("instance of `" + P + "`."));
|
|
9826
9826
|
}
|
|
9827
9827
|
return null;
|
|
9828
9828
|
}
|
|
@@ -9841,17 +9841,17 @@ function nv() {
|
|
|
9841
9841
|
var G = H(ie);
|
|
9842
9842
|
return G === "symbol" ? String(ie) : ie;
|
|
9843
9843
|
});
|
|
9844
|
-
return new
|
|
9844
|
+
return new v("Invalid " + E + " `" + N + "` of value `" + String(P) + "` " + ("supplied to `" + w + "`, expected one of " + q + "."));
|
|
9845
9845
|
}
|
|
9846
9846
|
return y(O);
|
|
9847
9847
|
}
|
|
9848
9848
|
function _(V) {
|
|
9849
9849
|
function O($, j, w, E, N) {
|
|
9850
9850
|
if (typeof V != "function")
|
|
9851
|
-
return new
|
|
9851
|
+
return new v("Property `" + N + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
|
|
9852
9852
|
var P = $[j], z = B(P);
|
|
9853
9853
|
if (z !== "object")
|
|
9854
|
-
return new
|
|
9854
|
+
return new v("Invalid " + E + " `" + N + "` of type " + ("`" + z + "` supplied to `" + w + "`, expected an object."));
|
|
9855
9855
|
for (var q in P)
|
|
9856
9856
|
if (r(P, q)) {
|
|
9857
9857
|
var U = V(P, q, w, E, N + "." + q, n);
|
|
@@ -9880,18 +9880,18 @@ function nv() {
|
|
|
9880
9880
|
G.data && r(G.data, "expectedType") && q.push(G.data.expectedType);
|
|
9881
9881
|
}
|
|
9882
9882
|
var fe = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
|
|
9883
|
-
return new
|
|
9883
|
+
return new v("Invalid " + P + " `" + z + "` supplied to " + ("`" + N + "`" + fe + "."));
|
|
9884
9884
|
}
|
|
9885
9885
|
return y(j);
|
|
9886
9886
|
}
|
|
9887
9887
|
function L() {
|
|
9888
9888
|
function V(O, $, j, w, E) {
|
|
9889
|
-
return T(O[$]) ? null : new
|
|
9889
|
+
return T(O[$]) ? null : new v("Invalid " + w + " `" + E + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
9890
9890
|
}
|
|
9891
9891
|
return y(V);
|
|
9892
9892
|
}
|
|
9893
9893
|
function R(V, O, $, j, w) {
|
|
9894
|
-
return new
|
|
9894
|
+
return new v(
|
|
9895
9895
|
(V || "React class") + ": " + O + " type `" + $ + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
|
|
9896
9896
|
);
|
|
9897
9897
|
}
|
|
@@ -9899,7 +9899,7 @@ function nv() {
|
|
|
9899
9899
|
function O($, j, w, E, N) {
|
|
9900
9900
|
var P = $[j], z = B(P);
|
|
9901
9901
|
if (z !== "object")
|
|
9902
|
-
return new
|
|
9902
|
+
return new v("Invalid " + E + " `" + N + "` of type `" + z + "` " + ("supplied to `" + w + "`, expected `object`."));
|
|
9903
9903
|
for (var q in V) {
|
|
9904
9904
|
var U = V[q];
|
|
9905
9905
|
if (typeof U != "function")
|
|
@@ -9916,14 +9916,14 @@ function nv() {
|
|
|
9916
9916
|
function O($, j, w, E, N) {
|
|
9917
9917
|
var P = $[j], z = B(P);
|
|
9918
9918
|
if (z !== "object")
|
|
9919
|
-
return new
|
|
9919
|
+
return new v("Invalid " + E + " `" + N + "` of type `" + z + "` " + ("supplied to `" + w + "`, expected `object`."));
|
|
9920
9920
|
var q = e({}, $[j], V);
|
|
9921
9921
|
for (var U in q) {
|
|
9922
9922
|
var ie = V[U];
|
|
9923
9923
|
if (r(V, U) && typeof ie != "function")
|
|
9924
9924
|
return R(w, E, N, U, H(ie));
|
|
9925
9925
|
if (!ie)
|
|
9926
|
-
return new
|
|
9926
|
+
return new v(
|
|
9927
9927
|
"Invalid " + E + " `" + N + "` key `" + U + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify($[j], null, " ") + `
|
|
9928
9928
|
Valid keys: ` + JSON.stringify(Object.keys(V), null, " ")
|
|
9929
9929
|
);
|
|
@@ -10073,7 +10073,7 @@ function sv() {
|
|
|
10073
10073
|
Zl = 1;
|
|
10074
10074
|
var t = /* @__PURE__ */ Symbol.for("react.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.provider"), s = /* @__PURE__ */ Symbol.for("react.context"), a = /* @__PURE__ */ Symbol.for("react.server_context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.suspense_list"), d = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), h = /* @__PURE__ */ Symbol.for("react.offscreen"), m;
|
|
10075
10075
|
m = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
10076
|
-
function
|
|
10076
|
+
function v(y) {
|
|
10077
10077
|
if (typeof y == "object" && y !== null) {
|
|
10078
10078
|
var g = y.$$typeof;
|
|
10079
10079
|
switch (g) {
|
|
@@ -10108,44 +10108,44 @@ function sv() {
|
|
|
10108
10108
|
}, Ie.isConcurrentMode = function() {
|
|
10109
10109
|
return !1;
|
|
10110
10110
|
}, Ie.isContextConsumer = function(y) {
|
|
10111
|
-
return
|
|
10111
|
+
return v(y) === s;
|
|
10112
10112
|
}, Ie.isContextProvider = function(y) {
|
|
10113
|
-
return
|
|
10113
|
+
return v(y) === i;
|
|
10114
10114
|
}, Ie.isElement = function(y) {
|
|
10115
10115
|
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
10116
10116
|
}, Ie.isForwardRef = function(y) {
|
|
10117
|
-
return
|
|
10117
|
+
return v(y) === l;
|
|
10118
10118
|
}, Ie.isFragment = function(y) {
|
|
10119
|
-
return
|
|
10119
|
+
return v(y) === n;
|
|
10120
10120
|
}, Ie.isLazy = function(y) {
|
|
10121
|
-
return
|
|
10121
|
+
return v(y) === p;
|
|
10122
10122
|
}, Ie.isMemo = function(y) {
|
|
10123
|
-
return
|
|
10123
|
+
return v(y) === d;
|
|
10124
10124
|
}, Ie.isPortal = function(y) {
|
|
10125
|
-
return
|
|
10125
|
+
return v(y) === e;
|
|
10126
10126
|
}, Ie.isProfiler = function(y) {
|
|
10127
|
-
return
|
|
10127
|
+
return v(y) === o;
|
|
10128
10128
|
}, Ie.isStrictMode = function(y) {
|
|
10129
|
-
return
|
|
10129
|
+
return v(y) === r;
|
|
10130
10130
|
}, Ie.isSuspense = function(y) {
|
|
10131
|
-
return
|
|
10131
|
+
return v(y) === c;
|
|
10132
10132
|
}, Ie.isSuspenseList = function(y) {
|
|
10133
|
-
return
|
|
10133
|
+
return v(y) === u;
|
|
10134
10134
|
}, Ie.isValidElementType = function(y) {
|
|
10135
10135
|
return typeof y == "string" || typeof y == "function" || y === n || y === o || y === r || y === c || y === u || y === h || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === d || y.$$typeof === i || y.$$typeof === s || y.$$typeof === l || y.$$typeof === m || y.getModuleId !== void 0);
|
|
10136
|
-
}, Ie.typeOf =
|
|
10136
|
+
}, Ie.typeOf = v, Ie;
|
|
10137
10137
|
}
|
|
10138
10138
|
var Re = {}, Xl;
|
|
10139
10139
|
function av() {
|
|
10140
10140
|
return Xl || (Xl = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
10141
|
-
var t = /* @__PURE__ */ Symbol.for("react.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.provider"), s = /* @__PURE__ */ Symbol.for("react.context"), a = /* @__PURE__ */ Symbol.for("react.server_context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.suspense_list"), d = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), h = /* @__PURE__ */ Symbol.for("react.offscreen"), m = !1,
|
|
10142
|
-
|
|
10141
|
+
var t = /* @__PURE__ */ Symbol.for("react.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.provider"), s = /* @__PURE__ */ Symbol.for("react.context"), a = /* @__PURE__ */ Symbol.for("react.server_context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.suspense_list"), d = /* @__PURE__ */ Symbol.for("react.memo"), p = /* @__PURE__ */ Symbol.for("react.lazy"), h = /* @__PURE__ */ Symbol.for("react.offscreen"), m = !1, v = !1, y = !1, g = !1, f = !1, b;
|
|
10142
|
+
b = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
10143
10143
|
function x(J) {
|
|
10144
|
-
return !!(typeof J == "string" || typeof J == "function" || J === n || J === o || f || J === r || J === c || J === u || g || J === h || m ||
|
|
10144
|
+
return !!(typeof J == "string" || typeof J == "function" || J === n || J === o || f || J === r || J === c || J === u || g || J === h || m || v || y || typeof J == "object" && J !== null && (J.$$typeof === p || J.$$typeof === d || J.$$typeof === i || J.$$typeof === s || J.$$typeof === l || // This needs to include all possible module reference object
|
|
10145
10145
|
// types supported by any Flight configuration anywhere since
|
|
10146
10146
|
// we don't know which Flight build this will end up being used
|
|
10147
10147
|
// with.
|
|
10148
|
-
J.$$typeof ===
|
|
10148
|
+
J.$$typeof === b || J.getModuleId !== void 0));
|
|
10149
10149
|
}
|
|
10150
10150
|
function k(J) {
|
|
10151
10151
|
if (typeof J == "object" && J !== null) {
|
|
@@ -10260,19 +10260,19 @@ const ec = (t) => typeof t == "object" && t != null && t.nodeType === 1, tc = (t
|
|
|
10260
10260
|
}
|
|
10261
10261
|
p != null && p === document.body && io(p) && !io(document.documentElement) || p != null && io(p, l) && d.push(p);
|
|
10262
10262
|
}
|
|
10263
|
-
const h = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, m = (i = (o = window.visualViewport) == null ? void 0 : o.height) != null ? i : innerHeight, { scrollX:
|
|
10263
|
+
const h = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, m = (i = (o = window.visualViewport) == null ? void 0 : o.height) != null ? i : innerHeight, { scrollX: v, scrollY: y } = window, { height: g, width: f, top: b, right: x, bottom: k, left: S } = t.getBoundingClientRect(), { top: M, right: _, left: A } = ((F) => {
|
|
10264
10264
|
const T = window.getComputedStyle(F);
|
|
10265
10265
|
return { top: parseFloat(T.scrollMarginTop) || 0, right: parseFloat(T.scrollMarginRight) || 0, bottom: parseFloat(T.scrollMarginBottom) || 0, left: parseFloat(T.scrollMarginLeft) || 0 };
|
|
10266
10266
|
})(t);
|
|
10267
|
-
let L =
|
|
10267
|
+
let L = b - M, R = s === "center" ? S + f / 2 - A + _ : s === "end" ? x + _ : S - A;
|
|
10268
10268
|
const D = [];
|
|
10269
10269
|
for (let F = 0; F < d.length; F++) {
|
|
10270
10270
|
const T = d[F], { height: W, width: B, top: H, right: I, bottom: K, left: V } = T.getBoundingClientRect();
|
|
10271
|
-
if (
|
|
10271
|
+
if (b >= 0 && S >= 0 && k <= m && x <= h && (T === u && !io(T) || b >= H && k <= K && S >= V && x <= I)) return D;
|
|
10272
10272
|
const O = getComputedStyle(T), $ = parseInt(O.borderLeftWidth, 10), j = parseInt(O.borderTopWidth, 10), w = parseInt(O.borderRightWidth, 10), E = parseInt(O.borderBottomWidth, 10);
|
|
10273
10273
|
let N = 0, P = 0;
|
|
10274
10274
|
const z = "offsetWidth" in T ? T.offsetWidth - T.clientWidth - $ - w : 0, q = "offsetHeight" in T ? T.offsetHeight - T.clientHeight - j - E : 0, U = "offsetWidth" in T ? T.offsetWidth === 0 ? 0 : B / T.offsetWidth : 0, ie = "offsetHeight" in T ? T.offsetHeight === 0 ? 0 : W / T.offsetHeight : 0;
|
|
10275
|
-
if (u === T) N = so(y, y + m, m, j, E, y + L, y + L + g, g), P = s === "start" ? R : s === "center" ? R - h / 2 : s === "end" ? R - h : so(
|
|
10275
|
+
if (u === T) N = so(y, y + m, m, j, E, y + L, y + L + g, g), P = s === "start" ? R : s === "center" ? R - h / 2 : s === "end" ? R - h : so(v, v + h, h, $, w, v + R, v + R + f, f), N = Math.max(0, N + y), P = Math.max(0, P + v);
|
|
10276
10276
|
else {
|
|
10277
10277
|
N = so(H, K, W, j, E + q, L, L + g, g), P = s === "start" ? R - V - $ : s === "center" ? R - (V + B / 2) + z / 2 : s === "end" ? R - I + w + z : so(V, I, B, $, w + z, R, R + f, f);
|
|
10278
10278
|
const { scrollLeft: G, scrollTop: fe } = T;
|
|
@@ -10325,7 +10325,7 @@ function Js(t, e) {
|
|
|
10325
10325
|
}
|
|
10326
10326
|
return o.cancel = r, o;
|
|
10327
10327
|
}
|
|
10328
|
-
function
|
|
10328
|
+
function nt() {
|
|
10329
10329
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
10330
10330
|
e[n] = arguments[n];
|
|
10331
10331
|
return function(r) {
|
|
@@ -10477,24 +10477,24 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10477
10477
|
var i;
|
|
10478
10478
|
i = e.call(this, o) || this, i.id = i.props.id || "downshift-" + Rd(), i.menuId = i.props.menuId || i.id + "-menu", i.labelId = i.props.labelId || i.id + "-label", i.inputId = i.props.inputId || i.id + "-input", i.getItemId = i.props.getItemId || function(f) {
|
|
10479
10479
|
return i.id + "-item-" + f;
|
|
10480
|
-
}, i.items = [], i.itemCount = null, i.previousResultCount = 0, i.timeoutIds = [], i.internalSetTimeout = function(f,
|
|
10480
|
+
}, i.items = [], i.itemCount = null, i.previousResultCount = 0, i.timeoutIds = [], i.internalSetTimeout = function(f, b) {
|
|
10481
10481
|
var x = setTimeout(function() {
|
|
10482
10482
|
i.timeoutIds = i.timeoutIds.filter(function(k) {
|
|
10483
10483
|
return k !== x;
|
|
10484
10484
|
}), f();
|
|
10485
|
-
},
|
|
10485
|
+
}, b);
|
|
10486
10486
|
i.timeoutIds.push(x);
|
|
10487
10487
|
}, i.setItemCount = function(f) {
|
|
10488
10488
|
i.itemCount = f;
|
|
10489
10489
|
}, i.unsetItemCount = function() {
|
|
10490
10490
|
i.itemCount = null;
|
|
10491
|
-
}, i.isItemDisabled = function(f,
|
|
10492
|
-
var x = i.getItemNodeFromIndex(
|
|
10491
|
+
}, i.isItemDisabled = function(f, b) {
|
|
10492
|
+
var x = i.getItemNodeFromIndex(b);
|
|
10493
10493
|
return x && x.hasAttribute("disabled");
|
|
10494
|
-
}, i.setHighlightedIndex = function(f,
|
|
10495
|
-
f === void 0 && (f = i.props.defaultHighlightedIndex),
|
|
10494
|
+
}, i.setHighlightedIndex = function(f, b) {
|
|
10495
|
+
f === void 0 && (f = i.props.defaultHighlightedIndex), b === void 0 && (b = {}), b = ao(b), i.internalSetState(ge({
|
|
10496
10496
|
highlightedIndex: f
|
|
10497
|
-
},
|
|
10497
|
+
}, b));
|
|
10498
10498
|
}, i.clearSelection = function(f) {
|
|
10499
10499
|
i.internalSetState({
|
|
10500
10500
|
selectedItem: null,
|
|
@@ -10502,19 +10502,19 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10502
10502
|
highlightedIndex: i.props.defaultHighlightedIndex,
|
|
10503
10503
|
isOpen: i.props.defaultIsOpen
|
|
10504
10504
|
}, f);
|
|
10505
|
-
}, i.selectItem = function(f,
|
|
10506
|
-
|
|
10505
|
+
}, i.selectItem = function(f, b, x) {
|
|
10506
|
+
b = ao(b), i.internalSetState(ge({
|
|
10507
10507
|
isOpen: i.props.defaultIsOpen,
|
|
10508
10508
|
highlightedIndex: i.props.defaultHighlightedIndex,
|
|
10509
10509
|
selectedItem: f,
|
|
10510
10510
|
inputValue: i.props.itemToString(f)
|
|
10511
|
-
},
|
|
10512
|
-
}, i.selectItemAtIndex = function(f,
|
|
10511
|
+
}, b), x);
|
|
10512
|
+
}, i.selectItemAtIndex = function(f, b, x) {
|
|
10513
10513
|
var k = i.items[f];
|
|
10514
|
-
k != null && i.selectItem(k,
|
|
10515
|
-
}, i.selectHighlightedItem = function(f,
|
|
10516
|
-
return i.selectItemAtIndex(i.getState().highlightedIndex, f,
|
|
10517
|
-
}, i.internalSetState = function(f,
|
|
10514
|
+
k != null && i.selectItem(k, b, x);
|
|
10515
|
+
}, i.selectHighlightedItem = function(f, b) {
|
|
10516
|
+
return i.selectItemAtIndex(i.getState().highlightedIndex, f, b);
|
|
10517
|
+
}, i.internalSetState = function(f, b) {
|
|
10518
10518
|
var x, k, S = {}, M = typeof f == "function";
|
|
10519
10519
|
return !M && f.hasOwnProperty("inputValue") && i.props.onInputValueChange(f.inputValue, ge({}, i.getStateAndHelpers(), f)), i.setState(function(_) {
|
|
10520
10520
|
var A;
|
|
@@ -10526,20 +10526,20 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10526
10526
|
_[D] !== L[D] && (S[D] = L[D]), D !== "type" && (L[D], Ro(i.props, D) || (R[D] = L[D]));
|
|
10527
10527
|
}), M && L.hasOwnProperty("inputValue") && i.props.onInputValueChange(L.inputValue, ge({}, i.getStateAndHelpers(), L)), R;
|
|
10528
10528
|
}, function() {
|
|
10529
|
-
nc(
|
|
10529
|
+
nc(b)();
|
|
10530
10530
|
var _ = Object.keys(S).length > 1;
|
|
10531
10531
|
_ && i.props.onStateChange(S, i.getStateAndHelpers()), x && i.props.onSelect(f.selectedItem, i.getStateAndHelpers()), k !== void 0 && i.props.onChange(k, i.getStateAndHelpers()), i.props.onUserAction(S, i.getStateAndHelpers());
|
|
10532
10532
|
});
|
|
10533
10533
|
}, i.rootRef = function(f) {
|
|
10534
10534
|
return i._rootNode = f;
|
|
10535
|
-
}, i.getRootProps = function(f,
|
|
10536
|
-
var x, k = f === void 0 ? {} : f, S = k.refKey, M = S === void 0 ? "ref" : S, _ = k.ref, A = Ht(k, vv), L =
|
|
10535
|
+
}, i.getRootProps = function(f, b) {
|
|
10536
|
+
var x, k = f === void 0 ? {} : f, S = k.refKey, M = S === void 0 ? "ref" : S, _ = k.ref, A = Ht(k, vv), L = b === void 0 ? {} : b, R = L.suppressRefError, D = R === void 0 ? !1 : R;
|
|
10537
10537
|
i.getRootProps.called = !0, i.getRootProps.refKey = M, i.getRootProps.suppressRefError = D;
|
|
10538
10538
|
var F = i.getState(), T = F.isOpen;
|
|
10539
10539
|
return ge((x = {}, x[M] = Rn(_, i.rootRef), x.role = "combobox", x["aria-expanded"] = T, x["aria-haspopup"] = "listbox", x["aria-owns"] = T ? i.menuId : void 0, x["aria-labelledby"] = i.labelId, x), A);
|
|
10540
10540
|
}, i.keyDownHandlers = {
|
|
10541
10541
|
ArrowDown: function(f) {
|
|
10542
|
-
var
|
|
10542
|
+
var b = this;
|
|
10543
10543
|
if (f.preventDefault(), this.getState().isOpen) {
|
|
10544
10544
|
var x = f.shiftKey ? 5 : 1;
|
|
10545
10545
|
this.moveHighlightedIndex(x, {
|
|
@@ -10550,19 +10550,19 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10550
10550
|
isOpen: !0,
|
|
10551
10551
|
type: yo
|
|
10552
10552
|
}, function() {
|
|
10553
|
-
var k =
|
|
10553
|
+
var k = b.getItemCount();
|
|
10554
10554
|
if (k > 0) {
|
|
10555
|
-
var S =
|
|
10555
|
+
var S = b.getState(), M = S.highlightedIndex, _ = gn(M, 1, {
|
|
10556
10556
|
length: k
|
|
10557
|
-
},
|
|
10558
|
-
|
|
10557
|
+
}, b.isItemDisabled, !0);
|
|
10558
|
+
b.setHighlightedIndex(_, {
|
|
10559
10559
|
type: yo
|
|
10560
10560
|
});
|
|
10561
10561
|
}
|
|
10562
10562
|
});
|
|
10563
10563
|
},
|
|
10564
10564
|
ArrowUp: function(f) {
|
|
10565
|
-
var
|
|
10565
|
+
var b = this;
|
|
10566
10566
|
if (f.preventDefault(), this.getState().isOpen) {
|
|
10567
10567
|
var x = f.shiftKey ? -5 : -1;
|
|
10568
10568
|
this.moveHighlightedIndex(x, {
|
|
@@ -10573,12 +10573,12 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10573
10573
|
isOpen: !0,
|
|
10574
10574
|
type: go
|
|
10575
10575
|
}, function() {
|
|
10576
|
-
var k =
|
|
10576
|
+
var k = b.getItemCount();
|
|
10577
10577
|
if (k > 0) {
|
|
10578
|
-
var S =
|
|
10578
|
+
var S = b.getState(), M = S.highlightedIndex, _ = gn(M, -1, {
|
|
10579
10579
|
length: k
|
|
10580
|
-
},
|
|
10581
|
-
|
|
10580
|
+
}, b.isItemDisabled, !0);
|
|
10581
|
+
b.setHighlightedIndex(_, {
|
|
10582
10582
|
type: go
|
|
10583
10583
|
});
|
|
10584
10584
|
}
|
|
@@ -10586,7 +10586,7 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10586
10586
|
},
|
|
10587
10587
|
Enter: function(f) {
|
|
10588
10588
|
if (f.which !== 229) {
|
|
10589
|
-
var
|
|
10589
|
+
var b = this.getState(), x = b.isOpen, k = b.highlightedIndex;
|
|
10590
10590
|
if (x && k != null) {
|
|
10591
10591
|
f.preventDefault();
|
|
10592
10592
|
var S = this.items[k], M = this.getItemNodeFromIndex(k);
|
|
@@ -10614,7 +10614,7 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10614
10614
|
}
|
|
10615
10615
|
}), i.inputKeyDownHandlers = ge({}, i.keyDownHandlers, {
|
|
10616
10616
|
Home: function(f) {
|
|
10617
|
-
var
|
|
10617
|
+
var b = this.getState(), x = b.isOpen;
|
|
10618
10618
|
if (x) {
|
|
10619
10619
|
f.preventDefault();
|
|
10620
10620
|
var k = this.getItemCount();
|
|
@@ -10629,7 +10629,7 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10629
10629
|
}
|
|
10630
10630
|
},
|
|
10631
10631
|
End: function(f) {
|
|
10632
|
-
var
|
|
10632
|
+
var b = this.getState(), x = b.isOpen;
|
|
10633
10633
|
if (x) {
|
|
10634
10634
|
f.preventDefault();
|
|
10635
10635
|
var k = this.getItemCount();
|
|
@@ -10644,13 +10644,13 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10644
10644
|
}
|
|
10645
10645
|
}
|
|
10646
10646
|
}), i.getToggleButtonProps = function(f) {
|
|
10647
|
-
var
|
|
10648
|
-
|
|
10649
|
-
var k =
|
|
10650
|
-
onClick:
|
|
10651
|
-
onKeyDown:
|
|
10652
|
-
onKeyUp:
|
|
10653
|
-
onBlur:
|
|
10647
|
+
var b = f === void 0 ? {} : f, x = b.onClick;
|
|
10648
|
+
b.onPress;
|
|
10649
|
+
var k = b.onKeyDown, S = b.onKeyUp, M = b.onBlur, _ = Ht(b, wv), A = i.getState(), L = A.isOpen, R = {
|
|
10650
|
+
onClick: nt(x, i.buttonHandleClick),
|
|
10651
|
+
onKeyDown: nt(k, i.buttonHandleKeyDown),
|
|
10652
|
+
onKeyUp: nt(S, i.buttonHandleKeyUp),
|
|
10653
|
+
onBlur: nt(M, i.buttonHandleBlur)
|
|
10654
10654
|
}, D = _.disabled ? {} : R;
|
|
10655
10655
|
return ge({
|
|
10656
10656
|
type: "button",
|
|
@@ -10662,11 +10662,11 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10662
10662
|
}, i.buttonHandleKeyUp = function(f) {
|
|
10663
10663
|
f.preventDefault();
|
|
10664
10664
|
}, i.buttonHandleKeyDown = function(f) {
|
|
10665
|
-
var
|
|
10666
|
-
i.buttonKeyDownHandlers[
|
|
10665
|
+
var b = ls(f);
|
|
10666
|
+
i.buttonKeyDownHandlers[b] && i.buttonKeyDownHandlers[b].call(i, f);
|
|
10667
10667
|
}, i.buttonHandleClick = function(f) {
|
|
10668
10668
|
if (f.preventDefault(), i.props.environment) {
|
|
10669
|
-
var
|
|
10669
|
+
var b = i.props.environment.document, x = b.body, k = b.activeElement;
|
|
10670
10670
|
x && x === k && f.target.focus();
|
|
10671
10671
|
}
|
|
10672
10672
|
process.env.NODE_ENV === "test" ? i.toggleMenu({
|
|
@@ -10677,11 +10677,11 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10677
10677
|
});
|
|
10678
10678
|
});
|
|
10679
10679
|
}, i.buttonHandleBlur = function(f) {
|
|
10680
|
-
var
|
|
10680
|
+
var b = f.target;
|
|
10681
10681
|
i.internalSetTimeout(function() {
|
|
10682
10682
|
if (!(i.isMouseDown || !i.props.environment)) {
|
|
10683
10683
|
var x = i.props.environment.document.activeElement;
|
|
10684
|
-
(x == null || x.id !== i.inputId) && x !==
|
|
10684
|
+
(x == null || x.id !== i.inputId) && x !== b && i.reset({
|
|
10685
10685
|
type: Zd
|
|
10686
10686
|
});
|
|
10687
10687
|
}
|
|
@@ -10692,14 +10692,14 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10692
10692
|
id: i.labelId
|
|
10693
10693
|
}, f);
|
|
10694
10694
|
}, i.getInputProps = function(f) {
|
|
10695
|
-
var
|
|
10696
|
-
|
|
10697
|
-
var _ = Ht(
|
|
10695
|
+
var b = f === void 0 ? {} : f, x = b.onKeyDown, k = b.onBlur, S = b.onChange, M = b.onInput;
|
|
10696
|
+
b.onChangeText;
|
|
10697
|
+
var _ = Ht(b, xv), A, L = {};
|
|
10698
10698
|
A = "onChange";
|
|
10699
10699
|
var R = i.getState(), D = R.inputValue, F = R.isOpen, T = R.highlightedIndex;
|
|
10700
10700
|
if (!_.disabled) {
|
|
10701
10701
|
var W;
|
|
10702
|
-
L = (W = {}, W[A] =
|
|
10702
|
+
L = (W = {}, W[A] = nt(S, M, i.inputHandleChange), W.onKeyDown = nt(x, i.inputHandleKeyDown), W.onBlur = nt(k, i.inputHandleBlur), W);
|
|
10703
10703
|
}
|
|
10704
10704
|
return ge({
|
|
10705
10705
|
"aria-autocomplete": "list",
|
|
@@ -10713,8 +10713,8 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10713
10713
|
id: i.inputId
|
|
10714
10714
|
}, L, _);
|
|
10715
10715
|
}, i.inputHandleKeyDown = function(f) {
|
|
10716
|
-
var
|
|
10717
|
-
|
|
10716
|
+
var b = ls(f);
|
|
10717
|
+
b && i.inputKeyDownHandlers[b] && i.inputKeyDownHandlers[b].call(i, f);
|
|
10718
10718
|
}, i.inputHandleChange = function(f) {
|
|
10719
10719
|
i.internalSetState({
|
|
10720
10720
|
type: Ud,
|
|
@@ -10726,7 +10726,7 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10726
10726
|
i.internalSetTimeout(function() {
|
|
10727
10727
|
var f;
|
|
10728
10728
|
if (!(i.isMouseDown || !i.props.environment)) {
|
|
10729
|
-
var
|
|
10729
|
+
var b = i.props.environment.document.activeElement, x = (b == null || (f = b.dataset) == null ? void 0 : f.toggle) && i._rootNode && i._rootNode.contains(b);
|
|
10730
10730
|
x || i.reset({
|
|
10731
10731
|
type: Gd
|
|
10732
10732
|
});
|
|
@@ -10734,36 +10734,36 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10734
10734
|
});
|
|
10735
10735
|
}, i.menuRef = function(f) {
|
|
10736
10736
|
i._menuNode = f;
|
|
10737
|
-
}, i.getMenuProps = function(f,
|
|
10738
|
-
var x, k = f === void 0 ? {} : f, S = k.refKey, M = S === void 0 ? "ref" : S, _ = k.ref, A = Ht(k, kv), L =
|
|
10737
|
+
}, i.getMenuProps = function(f, b) {
|
|
10738
|
+
var x, k = f === void 0 ? {} : f, S = k.refKey, M = S === void 0 ? "ref" : S, _ = k.ref, A = Ht(k, kv), L = b === void 0 ? {} : b, R = L.suppressRefError, D = R === void 0 ? !1 : R;
|
|
10739
10739
|
return i.getMenuProps.called = !0, i.getMenuProps.refKey = M, i.getMenuProps.suppressRefError = D, ge((x = {}, x[M] = Rn(_, i.menuRef), x.role = "listbox", x["aria-labelledby"] = A && A["aria-label"] ? void 0 : i.labelId, x.id = i.menuId, x), A);
|
|
10740
10740
|
}, i.getItemProps = function(f) {
|
|
10741
|
-
var
|
|
10741
|
+
var b, x = f === void 0 ? {} : f, k = x.onMouseMove, S = x.onMouseDown, M = x.onClick;
|
|
10742
10742
|
x.onPress;
|
|
10743
10743
|
var _ = x.index, A = x.item, L = A === void 0 ? process.env.NODE_ENV === "production" ? (
|
|
10744
10744
|
/* istanbul ignore next */
|
|
10745
10745
|
void 0
|
|
10746
10746
|
) : pv("getItemProps", "item") : A, R = Ht(x, Ev);
|
|
10747
10747
|
_ === void 0 ? (i.items.push(L), _ = i.items.indexOf(L)) : i.items[_] = L;
|
|
10748
|
-
var D = "onClick", F = M, T = (
|
|
10748
|
+
var D = "onClick", F = M, T = (b = {
|
|
10749
10749
|
// onMouseMove is used over onMouseEnter here. onMouseMove
|
|
10750
10750
|
// is only triggered on actual mouse movement while onMouseEnter
|
|
10751
10751
|
// can fire on DOM changes, interrupting keyboard navigation
|
|
10752
|
-
onMouseMove:
|
|
10752
|
+
onMouseMove: nt(k, function() {
|
|
10753
10753
|
_ !== i.getState().highlightedIndex && (i.setHighlightedIndex(_, {
|
|
10754
10754
|
type: Wd
|
|
10755
10755
|
}), i.avoidScrolling = !0, i.internalSetTimeout(function() {
|
|
10756
10756
|
return i.avoidScrolling = !1;
|
|
10757
10757
|
}, 250));
|
|
10758
10758
|
}),
|
|
10759
|
-
onMouseDown:
|
|
10759
|
+
onMouseDown: nt(S, function(B) {
|
|
10760
10760
|
B.preventDefault();
|
|
10761
10761
|
})
|
|
10762
|
-
},
|
|
10762
|
+
}, b[D] = nt(F, function() {
|
|
10763
10763
|
i.selectItemAtIndex(_, {
|
|
10764
10764
|
type: Yd
|
|
10765
10765
|
});
|
|
10766
|
-
}),
|
|
10766
|
+
}), b), W = R.disabled ? {
|
|
10767
10767
|
onMouseDown: T.onMouseDown
|
|
10768
10768
|
} : T;
|
|
10769
10769
|
return ge({
|
|
@@ -10773,7 +10773,7 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10773
10773
|
}, W, R);
|
|
10774
10774
|
}, i.clearItems = function() {
|
|
10775
10775
|
i.items = [];
|
|
10776
|
-
}, i.reset = function(f,
|
|
10776
|
+
}, i.reset = function(f, b) {
|
|
10777
10777
|
f === void 0 && (f = {}), f = ao(f), i.internalSetState(function(x) {
|
|
10778
10778
|
var k = x.selectedItem;
|
|
10779
10779
|
return ge({
|
|
@@ -10781,8 +10781,8 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10781
10781
|
highlightedIndex: i.props.defaultHighlightedIndex,
|
|
10782
10782
|
inputValue: i.props.itemToString(k)
|
|
10783
10783
|
}, f);
|
|
10784
|
-
},
|
|
10785
|
-
}, i.toggleMenu = function(f,
|
|
10784
|
+
}, b);
|
|
10785
|
+
}, i.toggleMenu = function(f, b) {
|
|
10786
10786
|
f === void 0 && (f = {}), f = ao(f), i.internalSetState(function(x) {
|
|
10787
10787
|
var k = x.isOpen;
|
|
10788
10788
|
return ge({
|
|
@@ -10792,7 +10792,7 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10792
10792
|
}, f);
|
|
10793
10793
|
}, function() {
|
|
10794
10794
|
var x = i.getState(), k = x.isOpen, S = x.highlightedIndex;
|
|
10795
|
-
k && i.getItemCount() > 0 && typeof S == "number" && i.setHighlightedIndex(S, f), nc(
|
|
10795
|
+
k && i.getItemCount() > 0 && typeof S == "number" && i.setHighlightedIndex(S, f), nc(b)();
|
|
10796
10796
|
});
|
|
10797
10797
|
}, i.openMenu = function(f) {
|
|
10798
10798
|
i.internalSetState({
|
|
@@ -10805,16 +10805,16 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10805
10805
|
}, i.updateStatus = Js(function() {
|
|
10806
10806
|
var f;
|
|
10807
10807
|
if ((f = i.props) != null && (f = f.environment) != null && f.document) {
|
|
10808
|
-
var
|
|
10808
|
+
var b = i.getState(), x = i.items[b.highlightedIndex], k = i.getItemCount(), S = i.props.getA11yStatusMessage(ge({
|
|
10809
10809
|
itemToString: i.props.itemToString,
|
|
10810
10810
|
previousResultCount: i.previousResultCount,
|
|
10811
10811
|
resultCount: k,
|
|
10812
10812
|
highlightedItem: x
|
|
10813
|
-
},
|
|
10813
|
+
}, b));
|
|
10814
10814
|
i.previousResultCount = k, Vd(S, i.props.environment.document);
|
|
10815
10815
|
}
|
|
10816
10816
|
}, 200);
|
|
10817
|
-
var s = i.props, a = s.defaultHighlightedIndex, l = s.initialHighlightedIndex, c = l === void 0 ? a : l, u = s.defaultIsOpen, d = s.initialIsOpen, p = d === void 0 ? u : d, h = s.initialInputValue, m = h === void 0 ? "" : h,
|
|
10817
|
+
var s = i.props, a = s.defaultHighlightedIndex, l = s.initialHighlightedIndex, c = l === void 0 ? a : l, u = s.defaultIsOpen, d = s.initialIsOpen, p = d === void 0 ? u : d, h = s.initialInputValue, m = h === void 0 ? "" : h, v = s.initialSelectedItem, y = v === void 0 ? null : v, g = i.getState({
|
|
10818
10818
|
highlightedIndex: c,
|
|
10819
10819
|
isOpen: p,
|
|
10820
10820
|
inputValue: m,
|
|
@@ -10849,20 +10849,20 @@ var zd = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0,
|
|
|
10849
10849
|
this.setHighlightedIndex(c, i);
|
|
10850
10850
|
}
|
|
10851
10851
|
}, r.getStateAndHelpers = function() {
|
|
10852
|
-
var o = this.getState(), i = o.highlightedIndex, s = o.inputValue, a = o.selectedItem, l = o.isOpen, c = this.props.itemToString, u = this.id, d = this.getRootProps, p = this.getToggleButtonProps, h = this.getLabelProps, m = this.getMenuProps,
|
|
10852
|
+
var o = this.getState(), i = o.highlightedIndex, s = o.inputValue, a = o.selectedItem, l = o.isOpen, c = this.props.itemToString, u = this.id, d = this.getRootProps, p = this.getToggleButtonProps, h = this.getLabelProps, m = this.getMenuProps, v = this.getInputProps, y = this.getItemProps, g = this.openMenu, f = this.closeMenu, b = this.toggleMenu, x = this.selectItem, k = this.selectItemAtIndex, S = this.selectHighlightedItem, M = this.setHighlightedIndex, _ = this.clearSelection, A = this.clearItems, L = this.reset, R = this.setItemCount, D = this.unsetItemCount, F = this.internalSetState;
|
|
10853
10853
|
return {
|
|
10854
10854
|
// prop getters
|
|
10855
10855
|
getRootProps: d,
|
|
10856
10856
|
getToggleButtonProps: p,
|
|
10857
10857
|
getLabelProps: h,
|
|
10858
10858
|
getMenuProps: m,
|
|
10859
|
-
getInputProps:
|
|
10859
|
+
getInputProps: v,
|
|
10860
10860
|
getItemProps: y,
|
|
10861
10861
|
// actions
|
|
10862
10862
|
reset: L,
|
|
10863
10863
|
openMenu: g,
|
|
10864
10864
|
closeMenu: f,
|
|
10865
|
-
toggleMenu:
|
|
10865
|
+
toggleMenu: b,
|
|
10866
10866
|
selectItem: x,
|
|
10867
10867
|
selectItemAtIndex: k,
|
|
10868
10868
|
selectHighlightedItem: S,
|
|
@@ -11094,8 +11094,8 @@ function ef(t) {
|
|
|
11094
11094
|
function Tv(t, e, n, r) {
|
|
11095
11095
|
var o = ze(), i = ze(), s = _e(function(h, m) {
|
|
11096
11096
|
i.current = m, h = Po(h, m.props);
|
|
11097
|
-
var
|
|
11098
|
-
changes:
|
|
11097
|
+
var v = t(h, m), y = m.props.stateReducer(h, ge({}, m, {
|
|
11098
|
+
changes: v
|
|
11099
11099
|
}));
|
|
11100
11100
|
return y;
|
|
11101
11101
|
}, [t]), a = Up(s, e, n), l = a[0], c = a[1], u = ef(e), d = _e(function(h) {
|
|
@@ -11559,7 +11559,7 @@ var qv = ["onMouseLeave", "refKey", "ref"], Yv = ["item", "index", "refKey", "re
|
|
|
11559
11559
|
tn.stateChangeTypes = mf;
|
|
11560
11560
|
function tn(t) {
|
|
11561
11561
|
t === void 0 && (t = {}), hf(t, tn);
|
|
11562
|
-
var e = ge({}, $v, t), n = e.items, r = e.scrollIntoView, o = e.environment, i = e.getA11yStatusMessage, s = Hv(Bv, e, Fv, Av), a = s[0], l = s[1], c = a.isOpen, u = a.highlightedIndex, d = a.selectedItem, p = a.inputValue, h = ze(null), m = ze({}),
|
|
11562
|
+
var e = ge({}, $v, t), n = e.items, r = e.scrollIntoView, o = e.environment, i = e.getA11yStatusMessage, s = Hv(Bv, e, Fv, Av), a = s[0], l = s[1], c = a.isOpen, u = a.highlightedIndex, d = a.selectedItem, p = a.inputValue, h = ze(null), m = ze({}), v = ze(null), y = ze(null), g = Zo(), f = Iv(e), b = ze(), x = ef({
|
|
11563
11563
|
state: a,
|
|
11564
11564
|
props: e
|
|
11565
11565
|
}), k = _e(function(w) {
|
|
@@ -11579,22 +11579,22 @@ function tn(t) {
|
|
|
11579
11579
|
state: a
|
|
11580
11580
|
}), Ke(function() {
|
|
11581
11581
|
var w = kr(e, "isOpen");
|
|
11582
|
-
w &&
|
|
11582
|
+
w && v.current && v.current.focus();
|
|
11583
11583
|
}, []), Ke(function() {
|
|
11584
|
-
g || (
|
|
11584
|
+
g || (b.current = n.length);
|
|
11585
11585
|
});
|
|
11586
11586
|
var M = _e(function() {
|
|
11587
11587
|
x.current.state.isOpen && l({
|
|
11588
11588
|
type: Lo
|
|
11589
11589
|
});
|
|
11590
11590
|
}, [l, x]), _ = bt(function() {
|
|
11591
|
-
return [h, y,
|
|
11591
|
+
return [h, y, v];
|
|
11592
11592
|
}, []), A = Rv(o, M, _), L = tf("getInputProps", "getMenuProps");
|
|
11593
11593
|
Ke(function() {
|
|
11594
11594
|
c || (m.current = {});
|
|
11595
11595
|
}, [c]), Ke(function() {
|
|
11596
11596
|
var w;
|
|
11597
|
-
!c || !(o != null && o.document) || !(
|
|
11597
|
+
!c || !(o != null && o.document) || !(v != null && (w = v.current) != null && w.focus) || o.document.activeElement !== v.current && v.current.focus();
|
|
11598
11598
|
}, [c, o]);
|
|
11599
11599
|
var R = bt(function() {
|
|
11600
11600
|
return {
|
|
@@ -11652,7 +11652,7 @@ function tn(t) {
|
|
|
11652
11652
|
var N, P = w === void 0 ? {} : w, z = P.onMouseLeave, q = P.refKey, U = q === void 0 ? "ref" : q, ie = P.ref, G = Ht(P, qv), fe = E === void 0 ? {} : E, J = fe.suppressRefError, ye = J === void 0 ? !1 : J;
|
|
11653
11653
|
return L("getMenuProps", ye, U, h), ge((N = {}, N[U] = Rn(ie, function(ee) {
|
|
11654
11654
|
h.current = ee;
|
|
11655
|
-
}), N.id = f.menuId, N.role = "listbox", N["aria-labelledby"] = G && G["aria-label"] ? void 0 : "" + f.labelId, N.onMouseLeave =
|
|
11655
|
+
}), N.id = f.menuId, N.role = "listbox", N["aria-labelledby"] = G && G["aria-label"] ? void 0 : "" + f.labelId, N.onMouseLeave = nt(z, function() {
|
|
11656
11656
|
l({
|
|
11657
11657
|
type: of
|
|
11658
11658
|
});
|
|
@@ -11678,9 +11678,9 @@ function tn(t) {
|
|
|
11678
11678
|
};
|
|
11679
11679
|
return ge((E = {}, E[ie] = Rn(G, function(kt) {
|
|
11680
11680
|
kt && (m.current[f.getItemId(qe)] = kt);
|
|
11681
|
-
}), E["aria-disabled"] = We, E["aria-selected"] = qe === Se.highlightedIndex, E.id = f.getItemId(qe), E.role = "option", E), !We && (N = {}, N[st] =
|
|
11682
|
-
onMouseMove:
|
|
11683
|
-
onMouseDown:
|
|
11681
|
+
}), E["aria-disabled"] = We, E["aria-selected"] = qe === Se.highlightedIndex, E.id = f.getItemId(qe), E.role = "option", E), !We && (N = {}, N[st] = nt(xt, Te), N), {
|
|
11682
|
+
onMouseMove: nt(fe, it),
|
|
11683
|
+
onMouseDown: nt(J, at)
|
|
11684
11684
|
}, se);
|
|
11685
11685
|
}, [l, f, x, A, S]), W = _e(function(w) {
|
|
11686
11686
|
var E, N = w === void 0 ? {} : w, P = N.onClick;
|
|
@@ -11693,13 +11693,13 @@ function tn(t) {
|
|
|
11693
11693
|
return ge((E = {}, E[q] = Rn(U, function(J) {
|
|
11694
11694
|
y.current = J;
|
|
11695
11695
|
}), E["aria-controls"] = f.menuId, E["aria-expanded"] = G.isOpen, E.id = f.toggleButtonId, E.tabIndex = -1, E), !ie.disabled && ge({}, {
|
|
11696
|
-
onClick:
|
|
11696
|
+
onClick: nt(P, fe)
|
|
11697
11697
|
}), ie);
|
|
11698
11698
|
}, [l, x, f]), B = _e(function(w, E) {
|
|
11699
11699
|
var N, P = w === void 0 ? {} : w, z = P.onKeyDown, q = P.onChange, U = P.onInput, ie = P.onBlur;
|
|
11700
11700
|
P.onChangeText;
|
|
11701
11701
|
var G = P.onClick, fe = P.refKey, J = fe === void 0 ? "ref" : fe, ye = P.ref, ee = Ht(P, Uv), se = E === void 0 ? {} : E, Ee = se.suppressRefError, we = Ee === void 0 ? !1 : Ee;
|
|
11702
|
-
L("getInputProps", we, J,
|
|
11702
|
+
L("getInputProps", we, J, v);
|
|
11703
11703
|
var Se = x.current.state, ce = function(Te) {
|
|
11704
11704
|
var at = ls(Te);
|
|
11705
11705
|
at && R[at] && R[at](Te);
|
|
@@ -11723,10 +11723,10 @@ function tn(t) {
|
|
|
11723
11723
|
}, st = "onChange", xt = {};
|
|
11724
11724
|
if (!ee.disabled) {
|
|
11725
11725
|
var it;
|
|
11726
|
-
xt = (it = {}, it[st] =
|
|
11726
|
+
xt = (it = {}, it[st] = nt(q, U, be), it.onKeyDown = nt(z, ce), it.onBlur = nt(ie, qe), it.onClick = nt(G, We), it);
|
|
11727
11727
|
}
|
|
11728
11728
|
return ge((N = {}, N[J] = Rn(ye, function(Te) {
|
|
11729
|
-
|
|
11729
|
+
v.current = Te;
|
|
11730
11730
|
}), N["aria-activedescendant"] = Se.isOpen && Se.highlightedIndex > -1 ? f.getItemId(Se.highlightedIndex) : "", N["aria-autocomplete"] = "list", N["aria-controls"] = f.menuId, N["aria-expanded"] = Se.isOpen, N["aria-labelledby"] = ee && ee["aria-label"] ? void 0 : f.labelId, N.autoComplete = "off", N.id = f.inputId, N.role = "combobox", N.value = Se.inputValue, N), xt, ee);
|
|
11731
11731
|
}, [l, f, o, R, x, A, L]), H = _e(function() {
|
|
11732
11732
|
l({
|
|
@@ -11818,7 +11818,7 @@ const Zv = ({
|
|
|
11818
11818
|
triggerRef: e,
|
|
11819
11819
|
maxHeight: n
|
|
11820
11820
|
}) => {
|
|
11821
|
-
const [r, o] =
|
|
11821
|
+
const [r, o] = Je({
|
|
11822
11822
|
left: 0,
|
|
11823
11823
|
width: 0
|
|
11824
11824
|
}), i = ze(void 0), s = _e(() => {
|
|
@@ -12012,14 +12012,14 @@ const Zv = ({
|
|
|
12012
12012
|
id: p,
|
|
12013
12013
|
role: h = "dialog",
|
|
12014
12014
|
ariaLabel: m,
|
|
12015
|
-
ariaLabelledBy:
|
|
12015
|
+
ariaLabelledBy: v,
|
|
12016
12016
|
ariaDescribedBy: y,
|
|
12017
12017
|
initialFocusRef: g,
|
|
12018
12018
|
returnFocusOnClose: f = !0
|
|
12019
12019
|
}) => {
|
|
12020
|
-
const
|
|
12021
|
-
if (!n || !
|
|
12022
|
-
const T =
|
|
12020
|
+
const b = ze(null), x = ze(null), [k, S] = Je({}), [M, _] = Je({}), A = ze(null), L = Wo(), R = (p ?? `popover-${L}`).replace(/:/g, "-"), D = _e(() => {
|
|
12021
|
+
if (!n || !b.current || !x.current) return;
|
|
12022
|
+
const T = b.current.getBoundingClientRect(), W = x.current.getBoundingClientRect(), { styles: B, axis: H } = Xv(
|
|
12023
12023
|
s,
|
|
12024
12024
|
T,
|
|
12025
12025
|
W,
|
|
@@ -12045,7 +12045,7 @@ const Zv = ({
|
|
|
12045
12045
|
capture: !0
|
|
12046
12046
|
}), window.addEventListener("resize", H, { passive: !0 });
|
|
12047
12047
|
const I = typeof ResizeObserver < "u" ? new ResizeObserver(() => W()) : null;
|
|
12048
|
-
return I && (
|
|
12048
|
+
return I && (b.current && I.observe(b.current), x.current && I.observe(x.current)), () => {
|
|
12049
12049
|
T !== null && cancelAnimationFrame(T), window.removeEventListener("scroll", B, { capture: !0 }), window.removeEventListener("resize", H), I?.disconnect();
|
|
12050
12050
|
};
|
|
12051
12051
|
}, [n, D]), Ke(() => {
|
|
@@ -12053,7 +12053,7 @@ const Zv = ({
|
|
|
12053
12053
|
const T = [];
|
|
12054
12054
|
if (o) {
|
|
12055
12055
|
const W = (B) => {
|
|
12056
|
-
x.current && !x.current.contains(B.target) &&
|
|
12056
|
+
x.current && !x.current.contains(B.target) && b.current && !b.current.contains(B.target) && r();
|
|
12057
12057
|
};
|
|
12058
12058
|
document.addEventListener("pointerdown", W), T.push(() => {
|
|
12059
12059
|
document.removeEventListener("pointerdown", W);
|
|
@@ -12086,7 +12086,7 @@ const Zv = ({
|
|
|
12086
12086
|
role: h,
|
|
12087
12087
|
id: R,
|
|
12088
12088
|
"aria-label": m,
|
|
12089
|
-
"aria-labelledby":
|
|
12089
|
+
"aria-labelledby": v,
|
|
12090
12090
|
"aria-describedby": y,
|
|
12091
12091
|
tabIndex: -1,
|
|
12092
12092
|
children: [
|
|
@@ -12111,7 +12111,7 @@ const Zv = ({
|
|
|
12111
12111
|
/* @__PURE__ */ Y.jsx(
|
|
12112
12112
|
"div",
|
|
12113
12113
|
{
|
|
12114
|
-
ref:
|
|
12114
|
+
ref: b,
|
|
12115
12115
|
className: de("inline-block", l),
|
|
12116
12116
|
children: t
|
|
12117
12117
|
}
|
|
@@ -12124,7 +12124,7 @@ const Zv = ({
|
|
|
12124
12124
|
placement: n = "top",
|
|
12125
12125
|
className: r
|
|
12126
12126
|
}) => {
|
|
12127
|
-
const [o, i] =
|
|
12127
|
+
const [o, i] = Je(!1);
|
|
12128
12128
|
return /* @__PURE__ */ Y.jsx(
|
|
12129
12129
|
gf,
|
|
12130
12130
|
{
|
|
@@ -12155,7 +12155,7 @@ const Zv = ({
|
|
|
12155
12155
|
disabled: n,
|
|
12156
12156
|
...r
|
|
12157
12157
|
}) => {
|
|
12158
|
-
const [o, i] =
|
|
12158
|
+
const [o, i] = Je(!1), s = () => i((d) => !d), a = o ? e : t, l = o ? yg : gg, c = /* @__PURE__ */ Y.jsx(
|
|
12159
12159
|
Lr,
|
|
12160
12160
|
{
|
|
12161
12161
|
variant: "text",
|
|
@@ -12192,12 +12192,12 @@ const Zv = ({
|
|
|
12192
12192
|
disableSearch: p = !1,
|
|
12193
12193
|
className: h,
|
|
12194
12194
|
containerClassName: m,
|
|
12195
|
-
listClassName:
|
|
12195
|
+
listClassName: v,
|
|
12196
12196
|
maxHeight: y = 280
|
|
12197
12197
|
}) => {
|
|
12198
|
-
const [g, f] =
|
|
12198
|
+
const [g, f] = Je(
|
|
12199
12199
|
t ? Mn(t) : ""
|
|
12200
|
-
),
|
|
12200
|
+
), b = ze(null);
|
|
12201
12201
|
Ke(() => {
|
|
12202
12202
|
const T = t ? Mn(t) : "";
|
|
12203
12203
|
f(T);
|
|
@@ -12253,10 +12253,10 @@ const Zv = ({
|
|
|
12253
12253
|
}
|
|
12254
12254
|
}), F = Zv({
|
|
12255
12255
|
isOpen: k,
|
|
12256
|
-
triggerRef:
|
|
12256
|
+
triggerRef: b,
|
|
12257
12257
|
maxHeight: y
|
|
12258
12258
|
});
|
|
12259
|
-
return /* @__PURE__ */ Y.jsxs("div", { ref:
|
|
12259
|
+
return /* @__PURE__ */ Y.jsxs("div", { ref: b, className: de("relative", m), children: [
|
|
12260
12260
|
/* @__PURE__ */ Y.jsxs(
|
|
12261
12261
|
"div",
|
|
12262
12262
|
{
|
|
@@ -12308,7 +12308,7 @@ const Zv = ({
|
|
|
12308
12308
|
className: de(
|
|
12309
12309
|
"bg-contrast text-text z-dropdown fixed flex flex-col overflow-x-hidden overflow-y-auto rounded-lg p-0",
|
|
12310
12310
|
!k && "hidden",
|
|
12311
|
-
|
|
12311
|
+
v
|
|
12312
12312
|
),
|
|
12313
12313
|
style: {
|
|
12314
12314
|
top: F.top,
|
|
@@ -12553,11 +12553,11 @@ function yf(t) {
|
|
|
12553
12553
|
c.setUTCSeconds(0);
|
|
12554
12554
|
const u = o > 0 ? c.getSeconds() : (c.getSeconds() - 60) % 60, d = Math.round(-(yn(t.timeZone, t) * 60)) % 60;
|
|
12555
12555
|
(d || u) && (t.internal.setUTCSeconds(t.internal.getUTCSeconds() + d), Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + d + u));
|
|
12556
|
-
const p = yn(t.timeZone, t), h = p > 0 ? Math.floor(p) : Math.ceil(p), m = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - h,
|
|
12557
|
-
if (
|
|
12556
|
+
const p = yn(t.timeZone, t), h = p > 0 ? Math.floor(p) : Math.ceil(p), m = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - h, v = h !== n, y = m - l;
|
|
12557
|
+
if (v && y) {
|
|
12558
12558
|
Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + y);
|
|
12559
|
-
const g = yn(t.timeZone, t), f = g > 0 ? Math.floor(g) : Math.ceil(g),
|
|
12560
|
-
|
|
12559
|
+
const g = yn(t.timeZone, t), f = g > 0 ? Math.floor(g) : Math.ceil(g), b = h - f;
|
|
12560
|
+
b && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + b), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + b));
|
|
12561
12561
|
}
|
|
12562
12562
|
}
|
|
12563
12563
|
class ct extends jt {
|
|
@@ -15374,10 +15374,10 @@ function h5(t, e, n, r) {
|
|
|
15374
15374
|
Pf(y) && ps(y, e, t), Tf(y) && ps(y, e, t);
|
|
15375
15375
|
const g = y[0], f = l5[g];
|
|
15376
15376
|
if (f) {
|
|
15377
|
-
const { incompatibleTokens:
|
|
15378
|
-
if (Array.isArray(
|
|
15377
|
+
const { incompatibleTokens: b } = f;
|
|
15378
|
+
if (Array.isArray(b)) {
|
|
15379
15379
|
const k = p.find(
|
|
15380
|
-
(S) =>
|
|
15380
|
+
(S) => b.includes(S.token) || S.token === g
|
|
15381
15381
|
);
|
|
15382
15382
|
if (k)
|
|
15383
15383
|
throw new RangeError(
|
|
@@ -15415,12 +15415,12 @@ function h5(t, e, n, r) {
|
|
|
15415
15415
|
).map((y) => y[0]);
|
|
15416
15416
|
let m = ke(n, r?.in);
|
|
15417
15417
|
if (isNaN(+m)) return o();
|
|
15418
|
-
const
|
|
15418
|
+
const v = {};
|
|
15419
15419
|
for (const y of h) {
|
|
15420
15420
|
if (!y.validate(m, c))
|
|
15421
15421
|
return o();
|
|
15422
|
-
const g = y.set(m,
|
|
15423
|
-
Array.isArray(g) ? (m = g[0], Object.assign(
|
|
15422
|
+
const g = y.set(m, v, c);
|
|
15423
|
+
Array.isArray(g) ? (m = g[0], Object.assign(v, g[1])) : m = g;
|
|
15424
15424
|
}
|
|
15425
15425
|
return m;
|
|
15426
15426
|
}
|
|
@@ -15899,7 +15899,7 @@ function Bt(t, e, n = zt) {
|
|
|
15899
15899
|
});
|
|
15900
15900
|
}
|
|
15901
15901
|
function o3(t, e, n, r, o) {
|
|
15902
|
-
const { disabled: i, hidden: s, modifiers: a, showOutsideDays: l, broadcastCalendar: c, today: u = o.today() } = e, { isSameDay: d, isSameMonth: p, startOfMonth: h, isBefore: m, endOfMonth:
|
|
15902
|
+
const { disabled: i, hidden: s, modifiers: a, showOutsideDays: l, broadcastCalendar: c, today: u = o.today() } = e, { isSameDay: d, isSameMonth: p, startOfMonth: h, isBefore: m, endOfMonth: v, isAfter: y } = o, g = n && h(n), f = r && v(r), b = {
|
|
15903
15903
|
[He.focused]: [],
|
|
15904
15904
|
[He.outside]: [],
|
|
15905
15905
|
[He.disabled]: [],
|
|
@@ -15909,7 +15909,7 @@ function o3(t, e, n, r, o) {
|
|
|
15909
15909
|
for (const k of t) {
|
|
15910
15910
|
const { date: S, displayMonth: M } = k, _ = !!(M && !p(S, M)), A = !!(g && m(S, g)), L = !!(f && y(S, f)), R = !!(i && Bt(S, i, o)), D = !!(s && Bt(S, s, o)) || A || L || // Broadcast calendar will show outside days as default
|
|
15911
15911
|
!c && !l && _ || c && l === !1 && _, F = d(S, u);
|
|
15912
|
-
_ &&
|
|
15912
|
+
_ && b.outside.push(k), R && b.disabled.push(k), D && b.hidden.push(k), F && b.today.push(k), a && Object.keys(a).forEach((T) => {
|
|
15913
15913
|
const W = a?.[T];
|
|
15914
15914
|
W && Bt(S, W, o) && (x[T] ? x[T].push(k) : x[T] = [k]);
|
|
15915
15915
|
});
|
|
@@ -15922,8 +15922,8 @@ function o3(t, e, n, r, o) {
|
|
|
15922
15922
|
[He.outside]: !1,
|
|
15923
15923
|
[He.today]: !1
|
|
15924
15924
|
}, M = {};
|
|
15925
|
-
for (const _ in
|
|
15926
|
-
const A =
|
|
15925
|
+
for (const _ in b) {
|
|
15926
|
+
const A = b[_];
|
|
15927
15927
|
S[_] = A.some((L) => L === k);
|
|
15928
15928
|
}
|
|
15929
15929
|
for (const _ in x)
|
|
@@ -16227,34 +16227,34 @@ function D3(t, e, { classNames: n, months: r, focused: o, dateLib: i }) {
|
|
|
16227
16227
|
!(t.current instanceof HTMLElement) || // validation required for the animation to work as expected
|
|
16228
16228
|
r.length === 0 || c.length === 0 || r.length !== c.length)
|
|
16229
16229
|
return;
|
|
16230
|
-
const u = i.isSameMonth(r[0].date, c[0].date), d = i.isAfter(r[0].date, c[0].date), p = d ? n[mt.caption_after_enter] : n[mt.caption_before_enter], h = d ? n[mt.weeks_after_enter] : n[mt.weeks_before_enter], m = s.current,
|
|
16231
|
-
if (
|
|
16230
|
+
const u = i.isSameMonth(r[0].date, c[0].date), d = i.isAfter(r[0].date, c[0].date), p = d ? n[mt.caption_after_enter] : n[mt.caption_before_enter], h = d ? n[mt.weeks_after_enter] : n[mt.weeks_before_enter], m = s.current, v = t.current.cloneNode(!0);
|
|
16231
|
+
if (v instanceof HTMLElement ? (Ti(v).forEach((f) => {
|
|
16232
16232
|
if (!(f instanceof HTMLElement))
|
|
16233
16233
|
return;
|
|
16234
|
-
const
|
|
16235
|
-
|
|
16234
|
+
const b = N3(f);
|
|
16235
|
+
b && f.contains(b) && f.removeChild(b);
|
|
16236
16236
|
const x = Pi(f);
|
|
16237
16237
|
x && x.classList.remove(p);
|
|
16238
16238
|
const k = Ri(f);
|
|
16239
16239
|
k && k.classList.remove(h);
|
|
16240
|
-
}), s.current =
|
|
16240
|
+
}), s.current = v) : s.current = null, l.current || u || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
16241
16241
|
o)
|
|
16242
16242
|
return;
|
|
16243
16243
|
const y = m instanceof HTMLElement ? Ti(m) : [], g = Ti(t.current);
|
|
16244
16244
|
if (g?.every((f) => f instanceof HTMLElement) && y && y.every((f) => f instanceof HTMLElement)) {
|
|
16245
16245
|
l.current = !0, t.current.style.isolation = "isolate";
|
|
16246
16246
|
const f = M3(t.current);
|
|
16247
|
-
f && (f.style.zIndex = "1"), g.forEach((
|
|
16247
|
+
f && (f.style.zIndex = "1"), g.forEach((b, x) => {
|
|
16248
16248
|
const k = y[x];
|
|
16249
16249
|
if (!k)
|
|
16250
16250
|
return;
|
|
16251
|
-
|
|
16252
|
-
const S = Pi(
|
|
16251
|
+
b.style.position = "relative", b.style.overflow = "hidden";
|
|
16252
|
+
const S = Pi(b);
|
|
16253
16253
|
S && S.classList.add(p);
|
|
16254
|
-
const M = Ri(
|
|
16254
|
+
const M = Ri(b);
|
|
16255
16255
|
M && M.classList.add(h);
|
|
16256
16256
|
const _ = () => {
|
|
16257
|
-
l.current = !1, t.current && (t.current.style.isolation = ""), f && (f.style.zIndex = ""), S && S.classList.remove(p), M && M.classList.remove(h),
|
|
16257
|
+
l.current = !1, t.current && (t.current.style.isolation = ""), f && (f.style.zIndex = ""), S && S.classList.remove(p), M && M.classList.remove(h), b.style.position = "", b.style.overflow = "", b.contains(k) && b.removeChild(k);
|
|
16258
16258
|
};
|
|
16259
16259
|
k.style.pointerEvents = "none", k.style.position = "absolute", k.style.overflow = "hidden", k.setAttribute("aria-hidden", "true");
|
|
16260
16260
|
const A = I3(k);
|
|
@@ -16262,13 +16262,13 @@ function D3(t, e, { classNames: n, months: r, focused: o, dateLib: i }) {
|
|
|
16262
16262
|
const L = Pi(k);
|
|
16263
16263
|
L && (L.classList.add(d ? n[mt.caption_before_exit] : n[mt.caption_after_exit]), L.addEventListener("animationend", _));
|
|
16264
16264
|
const R = Ri(k);
|
|
16265
|
-
R && R.classList.add(d ? n[mt.weeks_before_exit] : n[mt.weeks_after_exit]),
|
|
16265
|
+
R && R.classList.add(d ? n[mt.weeks_before_exit] : n[mt.weeks_after_exit]), b.insertBefore(k, b.firstChild);
|
|
16266
16266
|
});
|
|
16267
16267
|
}
|
|
16268
16268
|
});
|
|
16269
16269
|
}
|
|
16270
16270
|
function T3(t, e, n, r) {
|
|
16271
|
-
const o = t[0], i = t[t.length - 1], { ISOWeek: s, fixedWeeks: a, broadcastCalendar: l } = n ?? {}, { addDays: c, differenceInCalendarDays: u, differenceInCalendarMonths: d, endOfBroadcastWeek: p, endOfISOWeek: h, endOfMonth: m, endOfWeek:
|
|
16271
|
+
const o = t[0], i = t[t.length - 1], { ISOWeek: s, fixedWeeks: a, broadcastCalendar: l } = n ?? {}, { addDays: c, differenceInCalendarDays: u, differenceInCalendarMonths: d, endOfBroadcastWeek: p, endOfISOWeek: h, endOfMonth: m, endOfWeek: v, isAfter: y, startOfBroadcastWeek: g, startOfISOWeek: f, startOfWeek: b } = r, x = l ? g(o, r) : s ? f(o) : b(o), k = l ? p(i) : s ? h(m(i)) : v(m(i)), S = e && (l ? p(e) : s ? h(e) : v(e)), M = S && y(k, S) ? S : k, _ = u(M, x), A = d(i, o) + 1, L = [];
|
|
16272
16272
|
for (let D = 0; D <= _; D++) {
|
|
16273
16273
|
const F = c(x, D);
|
|
16274
16274
|
L.push(F);
|
|
@@ -16311,27 +16311,27 @@ function gc(t, e, n, r) {
|
|
|
16311
16311
|
return e && c(l, e) < 0 && (l = e), d(l);
|
|
16312
16312
|
}
|
|
16313
16313
|
function j3(t, e, n, r) {
|
|
16314
|
-
const { addDays: o, endOfBroadcastWeek: i, endOfISOWeek: s, endOfMonth: a, endOfWeek: l, getISOWeek: c, getWeek: u, startOfBroadcastWeek: d, startOfISOWeek: p, startOfWeek: h } = r, m = t.reduce((
|
|
16315
|
-
const g = n.broadcastCalendar ? d(y, r) : n.ISOWeek ? p(y) : h(y), f = n.broadcastCalendar ? i(y) : n.ISOWeek ? s(a(y)) : l(a(y)),
|
|
16316
|
-
if (n.fixedWeeks &&
|
|
16314
|
+
const { addDays: o, endOfBroadcastWeek: i, endOfISOWeek: s, endOfMonth: a, endOfWeek: l, getISOWeek: c, getWeek: u, startOfBroadcastWeek: d, startOfISOWeek: p, startOfWeek: h } = r, m = t.reduce((v, y) => {
|
|
16315
|
+
const g = n.broadcastCalendar ? d(y, r) : n.ISOWeek ? p(y) : h(y), f = n.broadcastCalendar ? i(y) : n.ISOWeek ? s(a(y)) : l(a(y)), b = e.filter((M) => M >= g && M <= f), x = n.broadcastCalendar ? 35 : 42;
|
|
16316
|
+
if (n.fixedWeeks && b.length < x) {
|
|
16317
16317
|
const M = e.filter((_) => {
|
|
16318
|
-
const A = x -
|
|
16318
|
+
const A = x - b.length;
|
|
16319
16319
|
return _ > f && _ <= o(f, A);
|
|
16320
16320
|
});
|
|
16321
|
-
|
|
16321
|
+
b.push(...M);
|
|
16322
16322
|
}
|
|
16323
|
-
const k =
|
|
16323
|
+
const k = b.reduce((M, _) => {
|
|
16324
16324
|
const A = n.ISOWeek ? c(_) : u(_), L = M.find((D) => D.weekNumber === A), R = new Wf(_, y, r);
|
|
16325
16325
|
return L ? L.days.push(R) : M.push(new I5(A, [R])), M;
|
|
16326
16326
|
}, []), S = new M5(y, k);
|
|
16327
|
-
return
|
|
16327
|
+
return v.push(S), v;
|
|
16328
16328
|
}, []);
|
|
16329
16329
|
return n.reverseMonths ? m.reverse() : m;
|
|
16330
16330
|
}
|
|
16331
16331
|
function L3(t, e) {
|
|
16332
16332
|
let { startMonth: n, endMonth: r } = t;
|
|
16333
|
-
const { startOfYear: o, startOfDay: i, startOfMonth: s, endOfMonth: a, addYears: l, endOfYear: c, newDate: u, today: d } = e, { fromYear: p, toYear: h, fromMonth: m, toMonth:
|
|
16334
|
-
!n && m && (n = m), !n && p && (n = e.newDate(p, 0, 1)), !r &&
|
|
16333
|
+
const { startOfYear: o, startOfDay: i, startOfMonth: s, endOfMonth: a, addYears: l, endOfYear: c, newDate: u, today: d } = e, { fromYear: p, toYear: h, fromMonth: m, toMonth: v } = t;
|
|
16334
|
+
!n && m && (n = m), !n && p && (n = e.newDate(p, 0, 1)), !r && v && (r = v), !r && h && (r = u(h, 11, 31));
|
|
16335
16335
|
const y = t.captionLayout === "dropdown" || t.captionLayout === "dropdown-years";
|
|
16336
16336
|
return n ? n = s(n) : p ? n = u(p, 0, 1) : !n && y && (n = o(l(t.today ?? d(), -100))), r ? r = a(r) : h ? r = u(h, 11, 31) : !r && y && (r = c(t.today ?? d())), [
|
|
16337
16337
|
n && i(n),
|
|
@@ -16357,7 +16357,7 @@ function z3(t) {
|
|
|
16357
16357
|
return t.reduce((n, r) => n.concat(r.weeks.slice()), e.slice());
|
|
16358
16358
|
}
|
|
16359
16359
|
function ti(t, e) {
|
|
16360
|
-
const [n, r] =
|
|
16360
|
+
const [n, r] = Je(t);
|
|
16361
16361
|
return [e === void 0 ? n : e, r];
|
|
16362
16362
|
}
|
|
16363
16363
|
function F3(t, e) {
|
|
@@ -16371,11 +16371,11 @@ function F3(t, e) {
|
|
|
16371
16371
|
l(f);
|
|
16372
16372
|
}, [t.timeZone]);
|
|
16373
16373
|
const { months: c, weeks: u, days: d, previousMonth: p, nextMonth: h } = bt(() => {
|
|
16374
|
-
const f = R3(a, r, { numberOfMonths: t.numberOfMonths }, e),
|
|
16374
|
+
const f = R3(a, r, { numberOfMonths: t.numberOfMonths }, e), b = T3(f, t.endMonth ? i(t.endMonth) : void 0, {
|
|
16375
16375
|
ISOWeek: t.ISOWeek,
|
|
16376
16376
|
fixedWeeks: t.fixedWeeks,
|
|
16377
16377
|
broadcastCalendar: t.broadcastCalendar
|
|
16378
|
-
}, e), x = j3(f,
|
|
16378
|
+
}, e), x = j3(f, b, {
|
|
16379
16379
|
broadcastCalendar: t.broadcastCalendar,
|
|
16380
16380
|
fixedWeeks: t.fixedWeeks,
|
|
16381
16381
|
ISOWeek: t.ISOWeek,
|
|
@@ -16401,11 +16401,11 @@ function F3(t, e) {
|
|
|
16401
16401
|
t.numberOfMonths,
|
|
16402
16402
|
t.pagedNavigation,
|
|
16403
16403
|
t.reverseMonths
|
|
16404
|
-
]), { disableNavigation: m, onMonthChange:
|
|
16404
|
+
]), { disableNavigation: m, onMonthChange: v } = t, y = (f) => u.some((b) => b.days.some((x) => x.isEqualTo(f))), g = (f) => {
|
|
16405
16405
|
if (m)
|
|
16406
16406
|
return;
|
|
16407
|
-
let
|
|
16408
|
-
n &&
|
|
16407
|
+
let b = o(f);
|
|
16408
|
+
n && b < o(n) && (b = o(n)), r && b > o(r) && (b = o(r)), l(b), v?.(b);
|
|
16409
16409
|
};
|
|
16410
16410
|
return {
|
|
16411
16411
|
months: c,
|
|
@@ -16437,14 +16437,14 @@ function W3(t, e, n, r) {
|
|
|
16437
16437
|
return o || (o = t.find((s) => yc(e(s)))), o;
|
|
16438
16438
|
}
|
|
16439
16439
|
function H3(t, e, n, r, o, i, s) {
|
|
16440
|
-
const { ISOWeek: a, broadcastCalendar: l } = i, { addDays: c, addMonths: u, addWeeks: d, addYears: p, endOfBroadcastWeek: h, endOfISOWeek: m, endOfWeek:
|
|
16440
|
+
const { ISOWeek: a, broadcastCalendar: l } = i, { addDays: c, addMonths: u, addWeeks: d, addYears: p, endOfBroadcastWeek: h, endOfISOWeek: m, endOfWeek: v, max: y, min: g, startOfBroadcastWeek: f, startOfISOWeek: b, startOfWeek: x } = s;
|
|
16441
16441
|
let k = {
|
|
16442
16442
|
day: c,
|
|
16443
16443
|
week: d,
|
|
16444
16444
|
month: u,
|
|
16445
16445
|
year: p,
|
|
16446
|
-
startOfWeek: (S) => l ? f(S, s) : a ?
|
|
16447
|
-
endOfWeek: (S) => l ? h(S) : a ? m(S) :
|
|
16446
|
+
startOfWeek: (S) => l ? f(S, s) : a ? b(S) : x(S),
|
|
16447
|
+
endOfWeek: (S) => l ? h(S) : a ? m(S) : v(S)
|
|
16448
16448
|
}[t](n, e === "after" ? 1 : -1);
|
|
16449
16449
|
return e === "before" && r ? k = y([r, k]) : e === "after" && o && (k = g([o, k])), k;
|
|
16450
16450
|
}
|
|
@@ -16455,7 +16455,7 @@ function np(t, e, n, r, o, i, s, a = 0) {
|
|
|
16455
16455
|
return !c && !u ? p : np(t, e, p, r, o, i, s, a + 1);
|
|
16456
16456
|
}
|
|
16457
16457
|
function $3(t, e, n, r, o) {
|
|
16458
|
-
const { autoFocus: i } = t, [s, a] =
|
|
16458
|
+
const { autoFocus: i } = t, [s, a] = Je(), l = W3(e.days, n, r || (() => !1), s), [c, u] = Je(i ? l : void 0);
|
|
16459
16459
|
return {
|
|
16460
16460
|
isFocusTarget: (d) => !!l?.isEqualTo(d),
|
|
16461
16461
|
setFocused: u,
|
|
@@ -16476,14 +16476,14 @@ function B3(t, e) {
|
|
|
16476
16476
|
return {
|
|
16477
16477
|
selected: a,
|
|
16478
16478
|
select: (p, h, m) => {
|
|
16479
|
-
let
|
|
16479
|
+
let v = [...a ?? []];
|
|
16480
16480
|
if (c(p)) {
|
|
16481
16481
|
if (a?.length === u || r && a?.length === 1)
|
|
16482
16482
|
return;
|
|
16483
|
-
|
|
16483
|
+
v = a?.filter((y) => !l(y, p));
|
|
16484
16484
|
} else
|
|
16485
|
-
a?.length === d ?
|
|
16486
|
-
return o || s(
|
|
16485
|
+
a?.length === d ? v = [p] : v = [...v, p];
|
|
16486
|
+
return o || s(v), o?.(v, p, h, m), v;
|
|
16487
16487
|
},
|
|
16488
16488
|
isSelected: c
|
|
16489
16489
|
};
|
|
@@ -16554,8 +16554,8 @@ function U3(t, e) {
|
|
|
16554
16554
|
return {
|
|
16555
16555
|
selected: c,
|
|
16556
16556
|
select: (u, d, p) => {
|
|
16557
|
-
const { min: h, max: m } = t,
|
|
16558
|
-
return r && n &&
|
|
16557
|
+
const { min: h, max: m } = t, v = u ? q3(u, c, h, m, i, e) : void 0;
|
|
16558
|
+
return r && n && v?.from && v.to && G3({ from: v.from, to: v.to }, n, e) && (v.from = u, v.to = void 0), s || l(v), s?.(v, u, d, p), v;
|
|
16559
16559
|
},
|
|
16560
16560
|
isSelected: (u) => c && $t(c, u, !1, e)
|
|
16561
16561
|
};
|
|
@@ -16660,15 +16660,15 @@ function X3(t) {
|
|
|
16660
16660
|
e.classNames
|
|
16661
16661
|
]);
|
|
16662
16662
|
e.today || (e = { ...e, today: s.today() });
|
|
16663
|
-
const { captionLayout: c, mode: u, navLayout: d, numberOfMonths: p = 1, onDayBlur: h, onDayClick: m, onDayFocus:
|
|
16663
|
+
const { captionLayout: c, mode: u, navLayout: d, numberOfMonths: p = 1, onDayBlur: h, onDayClick: m, onDayFocus: v, onDayKeyDown: y, onDayMouseEnter: g, onDayMouseLeave: f, onNextClick: b, onPrevClick: x, showWeekNumber: k, styles: S } = e, { formatCaption: M, formatDay: _, formatMonthDropdown: A, formatWeekNumber: L, formatWeekNumberHeader: R, formatWeekdayName: D, formatYearDropdown: F } = o, T = F3(e, s), { days: W, months: B, navStart: H, navEnd: I, previousMonth: K, nextMonth: V, goToMonth: O } = T, $ = o3(W, e, H, I, s), { isSelected: j, select: w, selected: E } = Z3(e, s) ?? {}, { blur: N, focused: P, isFocusTarget: z, moveFocus: q, setFocused: U } = $3(e, T, $, j ?? (() => !1), s), { labelDayButton: ie, labelGridcell: G, labelGrid: fe, labelMonthDropdown: J, labelNav: ye, labelPrevious: ee, labelNext: se, labelWeekday: Ee, labelWeekNumber: we, labelWeekNumberHeader: Se, labelYearDropdown: ce } = i, be = bt(() => _3(s, e.ISOWeek, e.broadcastCalendar, e.today), [s, e.ISOWeek, e.broadcastCalendar, e.today]), qe = u !== void 0 || m !== void 0, We = _e(() => {
|
|
16664
16664
|
K && (O(K), x?.(K));
|
|
16665
16665
|
}, [K, O, x]), st = _e(() => {
|
|
16666
|
-
V && (O(V),
|
|
16667
|
-
}, [O, V,
|
|
16666
|
+
V && (O(V), b?.(V));
|
|
16667
|
+
}, [O, V, b]), xt = _e((ue, Ce) => (le) => {
|
|
16668
16668
|
le.preventDefault(), le.stopPropagation(), U(ue), !Ce.disabled && (w?.(ue.date, Ce, le), m?.(ue.date, Ce, le));
|
|
16669
16669
|
}, [w, m, U]), it = _e((ue, Ce) => (le) => {
|
|
16670
|
-
U(ue),
|
|
16671
|
-
}, [
|
|
16670
|
+
U(ue), v?.(ue.date, Ce, le);
|
|
16671
|
+
}, [v, U]), Te = _e((ue, Ce) => (le) => {
|
|
16672
16672
|
N(), h?.(ue.date, Ce, le);
|
|
16673
16673
|
}, [N, h]), at = _e((ue, Ce) => (le) => {
|
|
16674
16674
|
const Oe = {
|
|
@@ -17176,12 +17176,12 @@ var _r = (function(t) {
|
|
|
17176
17176
|
this.register = function(i) {
|
|
17177
17177
|
var s;
|
|
17178
17178
|
if (Sc.includes(i.type)) {
|
|
17179
|
-
var a = (s = i._wrapperState) !== null && s !== void 0 ? s : {}, l = a.initialValue, c = l === void 0 ? "" : l, u = a.controlled, d = u !== void 0 && u, p = n({ initialValue: i.value || c, controlled: d }), h = p.value, m = p.options,
|
|
17179
|
+
var a = (s = i._wrapperState) !== null && s !== void 0 ? s : {}, l = a.initialValue, c = l === void 0 ? "" : l, u = a.controlled, d = u !== void 0 && u, p = n({ initialValue: i.value || c, controlled: d }), h = p.value, m = p.options, v = { value: h, options: m, fallbackOptions: m }, y = { id: -1, cachedId: -1 }, g = { value: "", selectionStart: 0, selectionEnd: 0 }, f = Object.getOwnPropertyDescriptor("_valueTracker" in i ? i : HTMLInputElement.prototype, "value");
|
|
17180
17180
|
Object.defineProperty(i, "value", Cc(Cc({}, f), {}, { set: function(S) {
|
|
17181
17181
|
var M;
|
|
17182
17182
|
g.value = S, f == null || (M = f.set) === null || M === void 0 || M.call(i, S);
|
|
17183
17183
|
} })), i.value = h;
|
|
17184
|
-
var
|
|
17184
|
+
var b = function() {
|
|
17185
17185
|
var S = function() {
|
|
17186
17186
|
var M, _;
|
|
17187
17187
|
g.selectionStart = (M = i.selectionStart) !== null && M !== void 0 ? M : 0, g.selectionEnd = (_ = i.selectionEnd) !== null && _ !== void 0 ? _ : 0, y.id = window.setTimeout(S);
|
|
@@ -17204,14 +17204,14 @@ var _r = (function(t) {
|
|
|
17204
17204
|
var H = F.length - A.length;
|
|
17205
17205
|
W = L, B = L + H;
|
|
17206
17206
|
}
|
|
17207
|
-
|
|
17208
|
-
var I =
|
|
17209
|
-
i.value = O.value, i.setSelectionRange(O.selectionStart, O.selectionEnd),
|
|
17207
|
+
v.value !== F ? v.options = v.fallbackOptions : v.fallbackOptions = v.options;
|
|
17208
|
+
var I = v.options, K = r({ inputType: D, previousValue: F, previousOptions: I, value: A, addedValue: T, changeStart: W, changeEnd: B, selectionStart: L, selectionEnd: R }), V = K.options, O = ux(K, dx);
|
|
17209
|
+
i.value = O.value, i.setSelectionRange(O.selectionStart, O.selectionEnd), v.value = O.value, v.options = V, g.selectionStart = O.selectionStart, g.selectionEnd = O.selectionEnd, (M = i._valueTracker) === null || M === void 0 || (_ = M.setValue) === null || _ === void 0 || _.call(M, F);
|
|
17210
17210
|
} catch ($) {
|
|
17211
17211
|
if (i.value = g.value, i.setSelectionRange(g.selectionStart, g.selectionEnd), S.preventDefault(), S.stopPropagation(), $.name !== "SyntheticChangeError") throw $;
|
|
17212
17212
|
}
|
|
17213
17213
|
};
|
|
17214
|
-
document.activeElement === i &&
|
|
17214
|
+
document.activeElement === i && b(), i.addEventListener("focus", b), i.addEventListener("blur", x), i.addEventListener("input", k), o.set(i, { onFocus: b, onBlur: x, onInput: k });
|
|
17215
17215
|
} else process.env.NODE_ENV !== "production" && console.warn("Warn: The input element type does not match one of the types: ".concat(Sc.join(", "), "."));
|
|
17216
17216
|
}, this.unregister = function(i) {
|
|
17217
17217
|
var s = o.get(i);
|
|
@@ -17243,35 +17243,35 @@ var pp = (function(t) {
|
|
|
17243
17243
|
return J3(this, e), (n = Q3(this, e, [{ init: function(o) {
|
|
17244
17244
|
var i = o.initialValue, s = o.controlled, a = Tn(r), l = a.mask, c = a.replacement, u = a.separate, d = a.showMask;
|
|
17245
17245
|
return i = s || i ? i : d ? l : "", process.env.NODE_ENV !== "production" && (function(p) {
|
|
17246
|
-
var h = p.initialValue, m = p.mask,
|
|
17246
|
+
var h = p.initialValue, m = p.mask, v = p.replacement;
|
|
17247
17247
|
h.length > m.length && console.error(Li(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.", 'Invalid value: "'.concat(h, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
17248
|
-
var y = Object.keys(
|
|
17248
|
+
var y = Object.keys(v).filter((function(k) {
|
|
17249
17249
|
return k.length > 1;
|
|
17250
17250
|
}));
|
|
17251
17251
|
y.length > 0 && console.error(Li(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.", "Invalid keys: ".concat(y.join(", "), "."), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
17252
|
-
for (var g = m.slice(0, h.length), f = -1,
|
|
17253
|
-
var x = Object.prototype.hasOwnProperty.call(
|
|
17254
|
-
if (!(g[
|
|
17255
|
-
f =
|
|
17252
|
+
for (var g = m.slice(0, h.length), f = -1, b = 0; b < g.length; b++) {
|
|
17253
|
+
var x = Object.prototype.hasOwnProperty.call(v, g[b]);
|
|
17254
|
+
if (!(g[b] === h[b] || x && v[g[b]].test(h[b]))) {
|
|
17255
|
+
f = b;
|
|
17256
17256
|
break;
|
|
17257
17257
|
}
|
|
17258
17258
|
}
|
|
17259
17259
|
f !== -1 && console.error(Li(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(f, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(h, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
17260
17260
|
})({ initialValue: i, mask: l, replacement: c }), { value: i, options: { mask: l, replacement: c, separate: u } };
|
|
17261
17261
|
}, tracking: function(o) {
|
|
17262
|
-
var i = o.inputType, s = o.previousValue, a = o.previousOptions, l = o.addedValue, c = o.changeStart, u = o.changeEnd, d = Tn(r), p = d.track, h = d.modify, m = sp(d, px),
|
|
17262
|
+
var i = o.inputType, s = o.previousValue, a = o.previousOptions, l = o.addedValue, c = o.changeStart, u = o.changeEnd, d = Tn(r), p = d.track, h = d.modify, m = sp(d, px), v = m.mask, y = m.replacement, g = m.showMask, f = m.separate, b = lo(lo({}, i === "insert" ? { inputType: i, data: l } : { inputType: i, data: null }), {}, { value: s, selectionStart: c, selectionEnd: u }), x = p?.(b);
|
|
17263
17263
|
if (x === !1) throw new _r("Custom tracking stop.");
|
|
17264
17264
|
x === null ? l = "" : x !== !0 && x !== void 0 && (l = x);
|
|
17265
|
-
var k = h?.(
|
|
17266
|
-
k?.mask !== void 0 && (
|
|
17267
|
-
var S = hs(s, lo({ end: c }, a)), M = hs(s, lo({ start: u }, a)), _ = RegExp("[^".concat(Object.keys(y).join(""), "]"), "g"), A =
|
|
17265
|
+
var k = h?.(b);
|
|
17266
|
+
k?.mask !== void 0 && (v = k.mask), k?.replacement !== void 0 && (y = typeof k?.replacement == "string" ? ir(k?.replacement) : k.replacement), k?.showMask !== void 0 && (g = k.showMask), k?.separate !== void 0 && (f = k.separate);
|
|
17267
|
+
var S = hs(s, lo({ end: c }, a)), M = hs(s, lo({ start: u }, a)), _ = RegExp("[^".concat(Object.keys(y).join(""), "]"), "g"), A = v.replace(_, "");
|
|
17268
17268
|
if (S && (S = Cr(S, { replacementChars: A, replacement: y, separate: f }), A = A.slice(S.length)), l && (l = Cr(l, { replacementChars: A, replacement: y, separate: !1 }), A = A.slice(l.length)), i === "insert" && l === "") throw new _r("The character does not match the key value of the `replacement` object.");
|
|
17269
17269
|
if (f) {
|
|
17270
|
-
var L =
|
|
17270
|
+
var L = v.slice(c, u).replace(_, ""), R = L.length - l.length;
|
|
17271
17271
|
R < 0 ? M = M.slice(-R) : R > 0 && (M = L.slice(-R) + M);
|
|
17272
17272
|
}
|
|
17273
17273
|
M && (M = Cr(M, { replacementChars: A, replacement: y, separate: f }));
|
|
17274
|
-
var D = ap(S + l + M, { mask:
|
|
17274
|
+
var D = ap(S + l + M, { mask: v, replacement: y, separate: f, showMask: g }), F = (function(T) {
|
|
17275
17275
|
var W, B, H, I = T.inputType, K = T.value, V = T.addedValue, O = T.beforeChangeValue, $ = T.mask, j = T.replacement, w = T.separate, E = lp(K, { mask: $, replacement: j }).filter((function(U) {
|
|
17276
17276
|
var ie = U.type;
|
|
17277
17277
|
return ie === "input" || w && ie === "replacement";
|
|
@@ -17293,8 +17293,8 @@ var pp = (function(t) {
|
|
|
17293
17293
|
return Object.prototype.hasOwnProperty.call(j, U);
|
|
17294
17294
|
}));
|
|
17295
17295
|
return q !== -1 ? q : K.length;
|
|
17296
|
-
})({ inputType: i, value: D, addedValue: l, beforeChangeValue: S, mask:
|
|
17297
|
-
return { value: D, selectionStart: F, selectionEnd: F, options: { mask:
|
|
17296
|
+
})({ inputType: i, value: D, addedValue: l, beforeChangeValue: S, mask: v, replacement: y, separate: f });
|
|
17297
|
+
return { value: D, selectionStart: F, selectionEnd: F, options: { mask: v, replacement: y, separate: f } };
|
|
17298
17298
|
} }])).format = function(o) {
|
|
17299
17299
|
return cp(o, Tn(r));
|
|
17300
17300
|
}, n.formatToParts = function(o) {
|
|
@@ -17376,22 +17376,22 @@ const Sr = "_", qn = {
|
|
|
17376
17376
|
onSelectedDateChange: u,
|
|
17377
17377
|
...d
|
|
17378
17378
|
}) => {
|
|
17379
|
-
const p = Wo(), h = typeof t == "string" ? t : p, m = typeof e == "string" ? e : void 0,
|
|
17379
|
+
const p = Wo(), h = typeof t == "string" ? t : p, m = typeof e == "string" ? e : void 0, v = bt(
|
|
17380
17380
|
() => wx(o.code),
|
|
17381
17381
|
[o.code]
|
|
17382
|
-
), [y, g] =
|
|
17382
|
+
), [y, g] = Je(!1), [f, b] = Je(""), [x, k] = Je(() => r ?? /* @__PURE__ */ new Date()), S = ze(
|
|
17383
17383
|
null
|
|
17384
17384
|
);
|
|
17385
17385
|
Ke(() => {
|
|
17386
17386
|
if (r) {
|
|
17387
|
-
const A = bn(r,
|
|
17388
|
-
|
|
17387
|
+
const A = bn(r, v);
|
|
17388
|
+
b(
|
|
17389
17389
|
(L) => L === A ? L : A
|
|
17390
17390
|
), k(r);
|
|
17391
17391
|
return;
|
|
17392
17392
|
}
|
|
17393
|
-
S.current === "calendar" &&
|
|
17394
|
-
}, [r,
|
|
17393
|
+
S.current === "calendar" && b("");
|
|
17394
|
+
}, [r, v]);
|
|
17395
17395
|
const M = [
|
|
17396
17396
|
i ? { before: i } : null,
|
|
17397
17397
|
s ? { after: s } : null
|
|
@@ -17448,8 +17448,8 @@ const Sr = "_", qn = {
|
|
|
17448
17448
|
onChange: (A) => {
|
|
17449
17449
|
S.current = "text-input";
|
|
17450
17450
|
const L = A.target.value;
|
|
17451
|
-
|
|
17452
|
-
const R = kx(L,
|
|
17451
|
+
b(L);
|
|
17452
|
+
const R = kx(L, v);
|
|
17453
17453
|
R ? (k(R), u(R)) : u(null);
|
|
17454
17454
|
}
|
|
17455
17455
|
}
|
|
@@ -17831,7 +17831,7 @@ function Ux() {
|
|
|
17831
17831
|
"relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,
|
|
17832
17832
|
// the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types
|
|
17833
17833
|
// byte: https://github.com/miguelmota/is-base64
|
|
17834
|
-
byte:
|
|
17834
|
+
byte: b,
|
|
17835
17835
|
// signed 32 bit integer
|
|
17836
17836
|
int32: { type: "number", validate: S },
|
|
17837
17837
|
// signed 64 bit integer
|
|
@@ -17925,12 +17925,12 @@ function Ux() {
|
|
|
17925
17925
|
if (H !== void 0)
|
|
17926
17926
|
return H || c(T, B);
|
|
17927
17927
|
}
|
|
17928
|
-
const
|
|
17928
|
+
const v = /\/|:/, y = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
17929
17929
|
function g(R) {
|
|
17930
|
-
return
|
|
17930
|
+
return v.test(R) && y.test(R);
|
|
17931
17931
|
}
|
|
17932
17932
|
const f = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
17933
|
-
function
|
|
17933
|
+
function b(R) {
|
|
17934
17934
|
return f.lastIndex = 0, f.test(R);
|
|
17935
17935
|
}
|
|
17936
17936
|
const x = -2147483648, k = 2 ** 31 - 1;
|
|
@@ -17994,29 +17994,29 @@ function bs() {
|
|
|
17994
17994
|
}
|
|
17995
17995
|
get str() {
|
|
17996
17996
|
var f;
|
|
17997
|
-
return (f = this._str) !== null && f !== void 0 ? f : this._str = this._items.reduce((
|
|
17997
|
+
return (f = this._str) !== null && f !== void 0 ? f : this._str = this._items.reduce((b, x) => `${b}${x}`, "");
|
|
17998
17998
|
}
|
|
17999
17999
|
get names() {
|
|
18000
18000
|
var f;
|
|
18001
|
-
return (f = this._names) !== null && f !== void 0 ? f : this._names = this._items.reduce((
|
|
18001
|
+
return (f = this._names) !== null && f !== void 0 ? f : this._names = this._items.reduce((b, x) => (x instanceof n && (b[x.str] = (b[x.str] || 0) + 1), b), {});
|
|
18002
18002
|
}
|
|
18003
18003
|
}
|
|
18004
18004
|
t._Code = r, t.nil = new r("");
|
|
18005
18005
|
function o(g, ...f) {
|
|
18006
|
-
const
|
|
18006
|
+
const b = [g[0]];
|
|
18007
18007
|
let x = 0;
|
|
18008
18008
|
for (; x < f.length; )
|
|
18009
|
-
a(
|
|
18010
|
-
return new r(
|
|
18009
|
+
a(b, f[x]), b.push(g[++x]);
|
|
18010
|
+
return new r(b);
|
|
18011
18011
|
}
|
|
18012
18012
|
t._ = o;
|
|
18013
18013
|
const i = new r("+");
|
|
18014
18014
|
function s(g, ...f) {
|
|
18015
|
-
const
|
|
18015
|
+
const b = [h(g[0])];
|
|
18016
18016
|
let x = 0;
|
|
18017
18017
|
for (; x < f.length; )
|
|
18018
|
-
|
|
18019
|
-
return l(
|
|
18018
|
+
b.push(i), a(b, f[x]), b.push(i, h(g[++x]));
|
|
18019
|
+
return l(b), new r(b);
|
|
18020
18020
|
}
|
|
18021
18021
|
t.str = s;
|
|
18022
18022
|
function a(g, f) {
|
|
@@ -18027,9 +18027,9 @@ function bs() {
|
|
|
18027
18027
|
let f = 1;
|
|
18028
18028
|
for (; f < g.length - 1; ) {
|
|
18029
18029
|
if (g[f] === i) {
|
|
18030
|
-
const
|
|
18031
|
-
if (
|
|
18032
|
-
g.splice(f - 1, 3,
|
|
18030
|
+
const b = c(g[f - 1], g[f + 1]);
|
|
18031
|
+
if (b !== void 0) {
|
|
18032
|
+
g.splice(f - 1, 3, b);
|
|
18033
18033
|
continue;
|
|
18034
18034
|
}
|
|
18035
18035
|
g[f++] = "+";
|
|
@@ -18066,12 +18066,12 @@ function bs() {
|
|
|
18066
18066
|
return typeof g == "string" && t.IDENTIFIER.test(g) ? new r(`.${g}`) : o`[${g}]`;
|
|
18067
18067
|
}
|
|
18068
18068
|
t.getProperty = m;
|
|
18069
|
-
function
|
|
18069
|
+
function v(g) {
|
|
18070
18070
|
if (typeof g == "string" && t.IDENTIFIER.test(g))
|
|
18071
18071
|
return new r(`${g}`);
|
|
18072
18072
|
throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`);
|
|
18073
18073
|
}
|
|
18074
|
-
t.getEsmExportName =
|
|
18074
|
+
t.getEsmExportName = v;
|
|
18075
18075
|
function y(g) {
|
|
18076
18076
|
return new r(g.toString());
|
|
18077
18077
|
}
|
|
@@ -18143,14 +18143,14 @@ function Pc() {
|
|
|
18143
18143
|
if (u.ref === void 0)
|
|
18144
18144
|
throw new Error("CodeGen: ref must be passed in value");
|
|
18145
18145
|
const p = this.toName(c), { prefix: h } = p, m = (d = u.key) !== null && d !== void 0 ? d : u.ref;
|
|
18146
|
-
let
|
|
18147
|
-
if (
|
|
18148
|
-
const f =
|
|
18146
|
+
let v = this._values[h];
|
|
18147
|
+
if (v) {
|
|
18148
|
+
const f = v.get(m);
|
|
18149
18149
|
if (f)
|
|
18150
18150
|
return f;
|
|
18151
18151
|
} else
|
|
18152
|
-
|
|
18153
|
-
|
|
18152
|
+
v = this._values[h] = /* @__PURE__ */ new Map();
|
|
18153
|
+
v.set(m, p);
|
|
18154
18154
|
const y = this._scope[h] || (this._scope[h] = []), g = y.length;
|
|
18155
18155
|
return y[g] = u.ref, p.setValue(u, { property: h, itemIndex: g }), p;
|
|
18156
18156
|
}
|
|
@@ -18176,18 +18176,18 @@ function Pc() {
|
|
|
18176
18176
|
_reduceValues(c, u, d = {}, p) {
|
|
18177
18177
|
let h = e.nil;
|
|
18178
18178
|
for (const m in c) {
|
|
18179
|
-
const
|
|
18180
|
-
if (!
|
|
18179
|
+
const v = c[m];
|
|
18180
|
+
if (!v)
|
|
18181
18181
|
continue;
|
|
18182
18182
|
const y = d[m] = d[m] || /* @__PURE__ */ new Map();
|
|
18183
|
-
|
|
18183
|
+
v.forEach((g) => {
|
|
18184
18184
|
if (y.has(g))
|
|
18185
18185
|
return;
|
|
18186
18186
|
y.set(g, r.Started);
|
|
18187
18187
|
let f = u(g);
|
|
18188
18188
|
if (f) {
|
|
18189
|
-
const
|
|
18190
|
-
h = (0, e._)`${h}${
|
|
18189
|
+
const b = this.opts.es5 ? t.varKinds.var : t.varKinds.const;
|
|
18190
|
+
h = (0, e._)`${h}${b} ${g} = ${f};${this.opts._n}`;
|
|
18191
18191
|
} else if (f = p?.(g))
|
|
18192
18192
|
h = (0, e._)`${h}${f}${this.opts._n}`;
|
|
18193
18193
|
else
|
|
@@ -18371,7 +18371,7 @@ function vp() {
|
|
|
18371
18371
|
return "{" + w._n + super.render(w) + "}" + w._n;
|
|
18372
18372
|
}
|
|
18373
18373
|
}
|
|
18374
|
-
class
|
|
18374
|
+
class v extends h {
|
|
18375
18375
|
}
|
|
18376
18376
|
class y extends m {
|
|
18377
18377
|
}
|
|
@@ -18413,7 +18413,7 @@ function vp() {
|
|
|
18413
18413
|
class f extends m {
|
|
18414
18414
|
}
|
|
18415
18415
|
f.kind = "for";
|
|
18416
|
-
class
|
|
18416
|
+
class b extends f {
|
|
18417
18417
|
constructor(w) {
|
|
18418
18418
|
super(), this.iteration = w;
|
|
18419
18419
|
}
|
|
@@ -18507,7 +18507,7 @@ function vp() {
|
|
|
18507
18507
|
class R {
|
|
18508
18508
|
constructor(w, E = {}) {
|
|
18509
18509
|
this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...E, _n: E.lines ? `
|
|
18510
|
-
` : "" }, this._extScope = w, this._scope = new n.Scope({ parent: w }), this._nodes = [new
|
|
18510
|
+
` : "" }, this._extScope = w, this._scope = new n.Scope({ parent: w }), this._nodes = [new v()];
|
|
18511
18511
|
}
|
|
18512
18512
|
toString() {
|
|
18513
18513
|
return this._root.render(this.opts);
|
|
@@ -18598,7 +18598,7 @@ function vp() {
|
|
|
18598
18598
|
}
|
|
18599
18599
|
// a generic `for` clause (or statement if `forBody` is passed)
|
|
18600
18600
|
for(w, E) {
|
|
18601
|
-
return this._for(new
|
|
18601
|
+
return this._for(new b(w), E);
|
|
18602
18602
|
}
|
|
18603
18603
|
// `for` statement for a range of values
|
|
18604
18604
|
forRange(w, E, N, P, z = this.opts.es5 ? n.varKinds.var : n.varKinds.let) {
|
|
@@ -18786,30 +18786,30 @@ function Kx() {
|
|
|
18786
18786
|
const { gen: l, data: c, schemaCode: u, keyword: d, it: p } = a, { opts: h, self: m } = p;
|
|
18787
18787
|
if (!h.validateFormats)
|
|
18788
18788
|
return;
|
|
18789
|
-
const
|
|
18790
|
-
|
|
18789
|
+
const v = new e.KeywordCxt(p, m.RULES.all.format.definition, "format");
|
|
18790
|
+
v.$data ? y() : g();
|
|
18791
18791
|
function y() {
|
|
18792
|
-
const
|
|
18792
|
+
const b = l.scopeValue("formats", {
|
|
18793
18793
|
ref: m.formats,
|
|
18794
18794
|
code: h.code.formats
|
|
18795
|
-
}), x = l.const("fmt", (0, n._)`${
|
|
18795
|
+
}), x = l.const("fmt", (0, n._)`${b}[${v.schemaCode}]`);
|
|
18796
18796
|
a.fail$data((0, n.or)((0, n._)`typeof ${x} != "object"`, (0, n._)`${x} instanceof RegExp`, (0, n._)`typeof ${x}.compare != "function"`, f(x)));
|
|
18797
18797
|
}
|
|
18798
18798
|
function g() {
|
|
18799
|
-
const
|
|
18799
|
+
const b = v.schema, x = m.formats[b];
|
|
18800
18800
|
if (!x || x === !0)
|
|
18801
18801
|
return;
|
|
18802
18802
|
if (typeof x != "object" || x instanceof RegExp || typeof x.compare != "function")
|
|
18803
|
-
throw new Error(`"${d}": format "${
|
|
18803
|
+
throw new Error(`"${d}": format "${b}" does not define "compare" function`);
|
|
18804
18804
|
const k = l.scopeValue("formats", {
|
|
18805
|
-
key:
|
|
18805
|
+
key: b,
|
|
18806
18806
|
ref: x,
|
|
18807
|
-
code: h.code.formats ? (0, n._)`${h.code.formats}${(0, n.getProperty)(
|
|
18807
|
+
code: h.code.formats ? (0, n._)`${h.code.formats}${(0, n.getProperty)(b)}` : void 0
|
|
18808
18808
|
});
|
|
18809
18809
|
a.fail$data(f(k));
|
|
18810
18810
|
}
|
|
18811
|
-
function f(
|
|
18812
|
-
return (0, n._)`${
|
|
18811
|
+
function f(b) {
|
|
18812
|
+
return (0, n._)`${b}.compare(${c}, ${u}) ${o[d].fail} 0`;
|
|
18813
18813
|
}
|
|
18814
18814
|
},
|
|
18815
18815
|
dependencies: ["format"]
|
|
@@ -18837,8 +18837,8 @@ function Zx() {
|
|
|
18837
18837
|
function l(c, u, d, p) {
|
|
18838
18838
|
var h, m;
|
|
18839
18839
|
(h = (m = c.opts.code).formats) !== null && h !== void 0 || (m.formats = (0, o._)`require("ajv-formats/dist/formats").${p}`);
|
|
18840
|
-
for (const
|
|
18841
|
-
c.addFormat(
|
|
18840
|
+
for (const v of u)
|
|
18841
|
+
c.addFormat(v, d[v]);
|
|
18842
18842
|
}
|
|
18843
18843
|
t.exports = e = a, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = a;
|
|
18844
18844
|
})(co, co.exports)), co.exports;
|
|
@@ -18975,14 +18975,14 @@ function s4(t) {
|
|
|
18975
18975
|
const m = c ? Yn(c) : "";
|
|
18976
18976
|
l.onChange([...u, m]);
|
|
18977
18977
|
}, p = (m) => {
|
|
18978
|
-
const
|
|
18979
|
-
l.onChange(
|
|
18980
|
-
}, h = (m,
|
|
18978
|
+
const v = u.filter((y, g) => g !== m);
|
|
18979
|
+
l.onChange(v);
|
|
18980
|
+
}, h = (m, v) => {
|
|
18981
18981
|
const y = [...u];
|
|
18982
|
-
y[m] =
|
|
18982
|
+
y[m] = v, l.onChange(y);
|
|
18983
18983
|
};
|
|
18984
18984
|
return /* @__PURE__ */ Ue("div", { className: "flex flex-col gap-2", children: [
|
|
18985
|
-
u.map((m,
|
|
18985
|
+
u.map((m, v) => /* @__PURE__ */ X(i4, { item: m, index: v, isDisabled: n.isDisabled, onItemChange: h, onRemove: p }, `${n.fieldName}-${v}`)),
|
|
18986
18986
|
/* @__PURE__ */ X("div", { className: "self-start", children: /* @__PURE__ */ X(Nr, { variant: "text", type: "button", onClick: d, disabled: n.isDisabled, className: "px-3 py-1 text-sm disabled:opacity-50", children: o("schemaFields.addItem") }) })
|
|
18987
18987
|
] });
|
|
18988
18988
|
}, e[0] = n.fieldName, e[1] = n.isDisabled, e[2] = n.schema, e[3] = o, e[4] = i) : i = e[4];
|
|
@@ -19185,15 +19185,15 @@ const c4 = (t) => {
|
|
|
19185
19185
|
const i = [];
|
|
19186
19186
|
let s = 0, a = 0, l = 0, c;
|
|
19187
19187
|
const u = o.length;
|
|
19188
|
-
for (let
|
|
19189
|
-
const y = o[
|
|
19188
|
+
for (let v = 0; v < u; v++) {
|
|
19189
|
+
const y = o[v];
|
|
19190
19190
|
if (s === 0 && a === 0) {
|
|
19191
19191
|
if (y === zc) {
|
|
19192
|
-
i.push(o.slice(l,
|
|
19192
|
+
i.push(o.slice(l, v)), l = v + 1;
|
|
19193
19193
|
continue;
|
|
19194
19194
|
}
|
|
19195
19195
|
if (y === "/") {
|
|
19196
|
-
c =
|
|
19196
|
+
c = v;
|
|
19197
19197
|
continue;
|
|
19198
19198
|
}
|
|
19199
19199
|
}
|
|
@@ -19255,13 +19255,13 @@ const c4 = (t) => {
|
|
|
19255
19255
|
modifiers: p,
|
|
19256
19256
|
hasImportantModifier: h,
|
|
19257
19257
|
baseClassName: m,
|
|
19258
|
-
maybePostfixModifierPosition:
|
|
19258
|
+
maybePostfixModifierPosition: v
|
|
19259
19259
|
} = n(u);
|
|
19260
19260
|
if (d) {
|
|
19261
19261
|
l = u + (l.length > 0 ? " " + l : l);
|
|
19262
19262
|
continue;
|
|
19263
19263
|
}
|
|
19264
|
-
let y = !!
|
|
19264
|
+
let y = !!v, g = r(y ? m.substring(0, v) : m);
|
|
19265
19265
|
if (!g) {
|
|
19266
19266
|
if (!y) {
|
|
19267
19267
|
l = u + (l.length > 0 ? " " + l : l);
|
|
@@ -19273,14 +19273,14 @@ const c4 = (t) => {
|
|
|
19273
19273
|
}
|
|
19274
19274
|
y = !1;
|
|
19275
19275
|
}
|
|
19276
|
-
const f = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"),
|
|
19276
|
+
const f = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"), b = h ? f + ws : f, x = b + g;
|
|
19277
19277
|
if (s.indexOf(x) > -1)
|
|
19278
19278
|
continue;
|
|
19279
19279
|
s.push(x);
|
|
19280
19280
|
const k = o(g, y);
|
|
19281
19281
|
for (let S = 0; S < k.length; ++S) {
|
|
19282
19282
|
const M = k[S];
|
|
19283
|
-
s.push(
|
|
19283
|
+
s.push(b + M);
|
|
19284
19284
|
}
|
|
19285
19285
|
l = u + (l.length > 0 ? " " + l : l);
|
|
19286
19286
|
}
|
|
@@ -19310,7 +19310,7 @@ const c4 = (t) => {
|
|
|
19310
19310
|
return o(l, u), u;
|
|
19311
19311
|
};
|
|
19312
19312
|
return i = s, (...l) => i(D4(...l));
|
|
19313
|
-
}, P4 = [],
|
|
19313
|
+
}, P4 = [], tt = (t) => {
|
|
19314
19314
|
const e = (n) => n[t] || P4;
|
|
19315
19315
|
return e.isThemeGetter = !0, e;
|
|
19316
19316
|
}, Op = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Np = /^\((?:(\w[\w-]*):)?(.+)\)$/i, R4 = /^\d+\/\d+$/, j4 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, L4 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, A4 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, V4 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, z4 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Pn = (t) => R4.test(t), he = (t) => !!t && !Number.isNaN(Number(t)), en = (t) => !!t && Number.isInteger(Number(t)), Bi = (t) => t.endsWith("%") && he(t.slice(0, -1)), Wt = (t) => j4.test(t), F4 = () => !0, W4 = (t) => (
|
|
@@ -19325,7 +19325,7 @@ const c4 = (t) => {
|
|
|
19325
19325
|
const r = Np.exec(t);
|
|
19326
19326
|
return r ? r[1] ? e(r[1]) : n : !1;
|
|
19327
19327
|
}, Ip = (t) => t === "position" || t === "percentage", Dp = (t) => t === "image" || t === "url", Tp = (t) => t === "length" || t === "size" || t === "bg-size", Pp = (t) => t === "length", Z4 = (t) => t === "number", X4 = (t) => t === "family-name", Rp = (t) => t === "shadow", Q4 = () => {
|
|
19328
|
-
const t =
|
|
19328
|
+
const t = tt("color"), e = tt("font"), n = tt("text"), r = tt("font-weight"), o = tt("tracking"), i = tt("leading"), s = tt("breakpoint"), a = tt("container"), l = tt("spacing"), c = tt("radius"), u = tt("shadow"), d = tt("inset-shadow"), p = tt("text-shadow"), h = tt("drop-shadow"), m = tt("blur"), v = tt("perspective"), y = tt("aspect"), g = tt("ease"), f = tt("animate"), b = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => [
|
|
19329
19329
|
"center",
|
|
19330
19330
|
"top",
|
|
19331
19331
|
"bottom",
|
|
@@ -19419,14 +19419,14 @@ const c4 = (t) => {
|
|
|
19419
19419
|
* @see https://tailwindcss.com/docs/break-after
|
|
19420
19420
|
*/
|
|
19421
19421
|
"break-after": [{
|
|
19422
|
-
"break-after":
|
|
19422
|
+
"break-after": b()
|
|
19423
19423
|
}],
|
|
19424
19424
|
/**
|
|
19425
19425
|
* Break Before
|
|
19426
19426
|
* @see https://tailwindcss.com/docs/break-before
|
|
19427
19427
|
*/
|
|
19428
19428
|
"break-before": [{
|
|
19429
|
-
"break-before":
|
|
19429
|
+
"break-before": b()
|
|
19430
19430
|
}],
|
|
19431
19431
|
/**
|
|
19432
19432
|
* Break Inside
|
|
@@ -21299,7 +21299,7 @@ const c4 = (t) => {
|
|
|
21299
21299
|
* @see https://tailwindcss.com/docs/perspective
|
|
21300
21300
|
*/
|
|
21301
21301
|
perspective: [{
|
|
21302
|
-
perspective: [
|
|
21302
|
+
perspective: [v, oe, re]
|
|
21303
21303
|
}],
|
|
21304
21304
|
/**
|
|
21305
21305
|
* Perspective Origin
|
|
@@ -21809,11 +21809,11 @@ function J4(t) {
|
|
|
21809
21809
|
control: o,
|
|
21810
21810
|
name: l
|
|
21811
21811
|
}, e[0] = o, e[1] = l, e[2] = c) : c = e[2];
|
|
21812
|
-
const u = Yc(c), d = n.if, m = Qx(d, u ?? {}) ? n.then : n.else,
|
|
21813
|
-
if (!
|
|
21812
|
+
const u = Yc(c), d = n.if, m = Qx(d, u ?? {}) ? n.then : n.else, v = ut(m) ? m : null;
|
|
21813
|
+
if (!v)
|
|
21814
21814
|
return null;
|
|
21815
21815
|
let y;
|
|
21816
|
-
return e[3] !==
|
|
21816
|
+
return e[3] !== v || e[4] !== o || e[5] !== i || e[6] !== s || e[7] !== r || e[8] !== a ? (y = /* @__PURE__ */ X(Sn, { control: o, errors: i, schema: v, prefix: r, fieldDirection: s, renderField: a }), e[3] = v, e[4] = o, e[5] = i, e[6] = s, e[7] = r, e[8] = a, e[9] = y) : y = e[9], y;
|
|
21817
21817
|
}
|
|
21818
21818
|
function e7(t) {
|
|
21819
21819
|
const e = Ve.c(10), {
|
|
@@ -21935,10 +21935,10 @@ function Lp(t) {
|
|
|
21935
21935
|
} = Qp(c);
|
|
21936
21936
|
let d;
|
|
21937
21937
|
e[5] !== u.value || e[6] !== l ? (d = () => o7(u.value, l), e[5] = u.value, e[6] = l, e[7] = d) : d = e[7];
|
|
21938
|
-
const [p, h] =
|
|
21939
|
-
let
|
|
21940
|
-
e[8] !== m ? (
|
|
21941
|
-
const y =
|
|
21938
|
+
const [p, h] = Je(d), m = l[p];
|
|
21939
|
+
let v;
|
|
21940
|
+
e[8] !== m ? (v = sr(m), e[8] = m, e[9] = v) : v = e[9];
|
|
21941
|
+
const y = v;
|
|
21942
21942
|
let g;
|
|
21943
21943
|
if (e[10] !== a || e[11] !== l) {
|
|
21944
21944
|
let F;
|
|
@@ -21949,11 +21949,11 @@ function Lp(t) {
|
|
|
21949
21949
|
} else
|
|
21950
21950
|
g = e[12];
|
|
21951
21951
|
const f = g;
|
|
21952
|
-
let
|
|
21953
|
-
e[15] !== u || e[16] !== l ? (
|
|
21952
|
+
let b;
|
|
21953
|
+
e[15] !== u || e[16] !== l ? (b = (F) => {
|
|
21954
21954
|
h(F), u.onChange(Yn(l[F]));
|
|
21955
|
-
}, e[15] = u, e[16] = l, e[17] =
|
|
21956
|
-
const x =
|
|
21955
|
+
}, e[15] = u, e[16] = l, e[17] = b) : b = e[17];
|
|
21956
|
+
const x = b;
|
|
21957
21957
|
let k;
|
|
21958
21958
|
e[18] !== n.fieldName || e[19] !== n.key || e[20] !== m ? (k = ri(n.key, m, n.fieldName.split(".").slice(0, -1).join(".")), e[18] = n.fieldName, e[19] = n.key, e[20] = m, e[21] = k) : k = e[21];
|
|
21959
21959
|
const S = k, M = `${n.fieldName}.__variant`, _ = f[p] ?? null;
|
|
@@ -22013,12 +22013,12 @@ function Sn(t) {
|
|
|
22013
22013
|
e[14] !== n || e[15] !== r || e[16] !== c || e[17] !== l || e[18] !== a || e[19] !== o ? (h = o?.if && /* @__PURE__ */ X(J4, { schema: o, prefix: l, control: n, errors: r, fieldDirection: c, renderField: a }), e[14] = n, e[15] = r, e[16] = c, e[17] = l, e[18] = a, e[19] = o, e[20] = h) : h = e[20];
|
|
22014
22014
|
let m;
|
|
22015
22015
|
e[21] !== n || e[22] !== r || e[23] !== c || e[24] !== l || e[25] !== a || e[26] !== o ? (m = o?.dependentSchemas && /* @__PURE__ */ X(t7, { schema: o, prefix: l, control: n, errors: r, fieldDirection: c, renderField: a }), e[21] = n, e[22] = r, e[23] = c, e[24] = l, e[25] = a, e[26] = o, e[27] = m) : m = e[27];
|
|
22016
|
-
let
|
|
22017
|
-
return e[28] !== p || e[29] !== h || e[30] !== m ? (
|
|
22016
|
+
let v;
|
|
22017
|
+
return e[28] !== p || e[29] !== h || e[30] !== m ? (v = /* @__PURE__ */ Ue($b, { children: [
|
|
22018
22018
|
p,
|
|
22019
22019
|
h,
|
|
22020
22020
|
m
|
|
22021
|
-
] }), e[28] = p, e[29] = h, e[30] = m, e[31] =
|
|
22021
|
+
] }), e[28] = p, e[29] = h, e[30] = m, e[31] = v) : v = e[31], v;
|
|
22022
22022
|
}
|
|
22023
22023
|
function i7(t) {
|
|
22024
22024
|
const e = Ve.c(14), {
|
|
@@ -22049,7 +22049,7 @@ function i7(t) {
|
|
|
22049
22049
|
return e[11] !== u || e[12] !== d ? (p = /* @__PURE__ */ X(jr, { descriptor: u, control: d }), e[11] = u, e[12] = d, e[13] = p) : p = e[13], p;
|
|
22050
22050
|
}
|
|
22051
22051
|
function s7(t) {
|
|
22052
|
-
const e = Ve.c(
|
|
22052
|
+
const e = Ve.c(24), {
|
|
22053
22053
|
fieldName: n,
|
|
22054
22054
|
entryKey: r,
|
|
22055
22055
|
valueSchema: o,
|
|
@@ -22058,28 +22058,30 @@ function s7(t) {
|
|
|
22058
22058
|
control: a,
|
|
22059
22059
|
onKeyChange: l,
|
|
22060
22060
|
onRemove: c
|
|
22061
|
-
} = t;
|
|
22062
|
-
let u;
|
|
22063
|
-
e[0] !== r || e[1] !== l ? (u = (y) => {
|
|
22064
|
-
const g = y.target.value.trim();
|
|
22065
|
-
g && g !== r && l(g);
|
|
22066
|
-
}, e[0] = r, e[1] = l, e[2] = u) : u = e[2];
|
|
22067
|
-
let d;
|
|
22068
|
-
e[3] !== r || e[4] !== i || e[5] !== s || e[6] !== u ? (d = /* @__PURE__ */ X(rr, { defaultValue: r, onBlur: u, disabled: i, placeholder: s, className: "min-w-32 flex-1" }, r), e[3] = r, e[4] = i, e[5] = s, e[6] = u, e[7] = d) : d = e[7];
|
|
22061
|
+
} = t, [u, d] = Je(r);
|
|
22069
22062
|
let p;
|
|
22070
|
-
e[
|
|
22063
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = (b) => d(b.target.value), e[0] = p) : p = e[0];
|
|
22071
22064
|
let h;
|
|
22072
|
-
e[
|
|
22073
|
-
|
|
22074
|
-
|
|
22075
|
-
]
|
|
22065
|
+
e[1] !== r || e[2] !== u || e[3] !== l ? (h = () => {
|
|
22066
|
+
const b = u.trim();
|
|
22067
|
+
b && b !== r && l(b);
|
|
22068
|
+
}, e[1] = r, e[2] = u, e[3] = l, e[4] = h) : h = e[4];
|
|
22076
22069
|
let m;
|
|
22077
|
-
e[
|
|
22078
|
-
let
|
|
22079
|
-
|
|
22080
|
-
|
|
22081
|
-
|
|
22082
|
-
|
|
22070
|
+
e[5] !== i || e[6] !== s || e[7] !== u || e[8] !== h ? (m = /* @__PURE__ */ X(rr, { value: u, onChange: p, onBlur: h, disabled: i, placeholder: s, className: "min-w-32 flex-1" }), e[5] = i, e[6] = s, e[7] = u, e[8] = h, e[9] = m) : m = e[9];
|
|
22071
|
+
let v;
|
|
22072
|
+
e[10] !== i || e[11] !== c ? (v = /* @__PURE__ */ X(Ko, { icon: _s, type: "button", onClick: c, disabled: i, "aria-label": "Remove entry", size: "small", color: "danger" }), e[10] = i, e[11] = c, e[12] = v) : v = e[12];
|
|
22073
|
+
let y;
|
|
22074
|
+
e[13] !== m || e[14] !== v ? (y = /* @__PURE__ */ Ue("div", { className: "flex items-center gap-2", children: [
|
|
22075
|
+
m,
|
|
22076
|
+
v
|
|
22077
|
+
] }), e[13] = m, e[14] = v, e[15] = y) : y = e[15];
|
|
22078
|
+
let g;
|
|
22079
|
+
e[16] !== a || e[17] !== r || e[18] !== n || e[19] !== o ? (g = /* @__PURE__ */ X(i7, { fieldName: n, entryKey: r, valueSchema: o, control: a }), e[16] = a, e[17] = r, e[18] = n, e[19] = o, e[20] = g) : g = e[20];
|
|
22080
|
+
let f;
|
|
22081
|
+
return e[21] !== y || e[22] !== g ? (f = /* @__PURE__ */ Ue("div", { className: "flex flex-col gap-2 border-b border-slate-200 pb-3", children: [
|
|
22082
|
+
y,
|
|
22083
|
+
g
|
|
22084
|
+
] }), e[21] = y, e[22] = g, e[23] = f) : f = e[23], f;
|
|
22083
22085
|
}
|
|
22084
22086
|
function a7(t, e) {
|
|
22085
22087
|
for (const [n, r] of Object.entries(e))
|
|
@@ -22101,16 +22103,16 @@ function l7(t) {
|
|
|
22101
22103
|
e[2] !== n.schema ? (a = Vx(n.schema), e[2] = n.schema, e[3] = a) : a = e[3];
|
|
22102
22104
|
const l = a;
|
|
22103
22105
|
let c;
|
|
22104
|
-
e[4] !== l || e[5] !== s ? (c = (
|
|
22106
|
+
e[4] !== l || e[5] !== s ? (c = (v) => s ? a7(v, s) : l, e[4] = l, e[5] = s, e[6] = c) : c = e[6];
|
|
22105
22107
|
const u = c;
|
|
22106
22108
|
let d;
|
|
22107
22109
|
e[7] !== l || e[8] !== s ? (d = () => s ? "" : l ? Yn(l) : "", e[7] = l, e[8] = s, e[9] = d) : d = e[9];
|
|
22108
22110
|
const p = d;
|
|
22109
22111
|
let h;
|
|
22110
|
-
e[10] !== r || e[11] !== n.fieldName || e[12] !== n.isDisabled || e[13] !== p || e[14] !== u || e[15] !== s || e[16] !== o ? (h = (
|
|
22112
|
+
e[10] !== r || e[11] !== n.fieldName || e[12] !== n.isDisabled || e[13] !== p || e[14] !== u || e[15] !== s || e[16] !== o ? (h = (v) => {
|
|
22111
22113
|
const {
|
|
22112
22114
|
field: y
|
|
22113
|
-
} =
|
|
22115
|
+
} = v, g = y.value ?? {}, f = Object.keys(g), b = () => {
|
|
22114
22116
|
const x = c4(f);
|
|
22115
22117
|
y.onChange({
|
|
22116
22118
|
...g,
|
|
@@ -22125,7 +22127,7 @@ function l7(t) {
|
|
|
22125
22127
|
Object.keys(s).map(c7).join(", ")
|
|
22126
22128
|
] }),
|
|
22127
22129
|
f.map((x) => /* @__PURE__ */ X(s7, { fieldName: n.fieldName, entryKey: x, valueSchema: u(x), isDisabled: n.isDisabled, control: r, keyPlaceholder: o("schemaFields.keyPlaceholder"), onKeyChange: (k) => d4(g, x, k, y.onChange), onRemove: () => u4(g, x, y.onChange) }, x)),
|
|
22128
|
-
/* @__PURE__ */ X("div", { className: "self-start", children: /* @__PURE__ */ X(Nr, { variant: "text", type: "button", onClick:
|
|
22130
|
+
/* @__PURE__ */ X("div", { className: "self-start", children: /* @__PURE__ */ X(Nr, { variant: "text", type: "button", onClick: b, disabled: n.isDisabled, className: "px-3 py-1 text-sm disabled:opacity-50", children: o("schemaFields.addEntry") }) })
|
|
22129
22131
|
] });
|
|
22130
22132
|
}, e[10] = r, e[11] = n.fieldName, e[12] = n.isDisabled, e[13] = p, e[14] = u, e[15] = s, e[16] = o, e[17] = h) : h = e[17];
|
|
22131
22133
|
let m;
|
|
@@ -22212,8 +22214,8 @@ function m7(t) {
|
|
|
22212
22214
|
field: h,
|
|
22213
22215
|
fieldState: m
|
|
22214
22216
|
} = p;
|
|
22215
|
-
return /* @__PURE__ */ X(rr, { id: n.fieldName, type: "number", acceptOnly: "number", value: String(h.value ?? ""), onChange: (
|
|
22216
|
-
const y =
|
|
22217
|
+
return /* @__PURE__ */ X(rr, { id: n.fieldName, type: "number", acceptOnly: "number", value: String(h.value ?? ""), onChange: (v) => {
|
|
22218
|
+
const y = v.target.value;
|
|
22217
22219
|
h.onChange(y ? Number(y) : null);
|
|
22218
22220
|
}, className: "flex-1", disabled: n.isDisabled, placeholder: n.placeholder, min: a, max: c, step: o.multipleOf || (n.type === "integer" ? 1 : "any"), "aria-invalid": m.invalid });
|
|
22219
22221
|
}, e[8] = o.multipleOf, e[9] = n.fieldName, e[10] = n.isDisabled, e[11] = n.placeholder, e[12] = n.type, e[13] = c, e[14] = a, e[15] = u) : u = e[15];
|
|
@@ -22270,10 +22272,10 @@ function g7(t) {
|
|
|
22270
22272
|
/* @__PURE__ */ X("span", { className: "text-sm font-medium", children: h }),
|
|
22271
22273
|
/* @__PURE__ */ X(Sn, { control: r, errors: a, schema: u, prefix: m })
|
|
22272
22274
|
] }, d);
|
|
22273
|
-
const
|
|
22275
|
+
const v = ri(String(d), u, n.fieldName);
|
|
22274
22276
|
return /* @__PURE__ */ Ue(Ks, { children: [
|
|
22275
22277
|
/* @__PURE__ */ X(Zs, { htmlFor: m, children: h }),
|
|
22276
|
-
/* @__PURE__ */ X(Xs, { className: "w-full", children: /* @__PURE__ */ X(jr, { descriptor:
|
|
22278
|
+
/* @__PURE__ */ X(Xs, { className: "w-full", children: /* @__PURE__ */ X(jr, { descriptor: v, control: r }) })
|
|
22277
22279
|
] }, d);
|
|
22278
22280
|
}) }), e[4] = r, e[5] = n.fieldName, e[6] = n.label, e[7] = a, e[8] = i, e[9] = l) : l = e[9];
|
|
22279
22281
|
let c;
|
|
@@ -22302,25 +22304,25 @@ const Ap = Un(void 0), D7 = (t) => {
|
|
|
22302
22304
|
schema: i,
|
|
22303
22305
|
generateSecret: s,
|
|
22304
22306
|
updateSecret: a
|
|
22305
|
-
} = Vp(), [l, c] =
|
|
22307
|
+
} = Vp(), [l, c] = Je(!1), [u, d] = Je(null), p = _n(), h = !!n, m = bt(() => {
|
|
22306
22308
|
if (n)
|
|
22307
22309
|
return {
|
|
22308
22310
|
name: n.name,
|
|
22309
22311
|
description: n.description
|
|
22310
22312
|
};
|
|
22311
|
-
}, [n]),
|
|
22313
|
+
}, [n]), v = bt(() => bp(i, void 0, m) ?? {}, [m, i]), {
|
|
22312
22314
|
control: y,
|
|
22313
22315
|
handleSubmit: g,
|
|
22314
22316
|
reset: f,
|
|
22315
22317
|
formState: {
|
|
22316
|
-
errors:
|
|
22318
|
+
errors: b
|
|
22317
22319
|
}
|
|
22318
22320
|
} = em({
|
|
22319
|
-
defaultValues:
|
|
22321
|
+
defaultValues: v
|
|
22320
22322
|
});
|
|
22321
22323
|
Ke(() => {
|
|
22322
|
-
t && (f(
|
|
22323
|
-
}, [
|
|
22324
|
+
t && (f(v), d(null));
|
|
22325
|
+
}, [v, t, f]);
|
|
22324
22326
|
const x = l, k = p(h ? "vaultSecretDialog.editTitle" : "vaultSecretDialog.addTitle"), S = p(l ? h ? "vaultSecretDialog.saving" : "vaultSecretDialog.creating" : h ? "vaultSecretDialog.save" : "vaultSecretDialog.create"), M = p(h ? "vaultSecretDialog.updateError" : "vaultSecretDialog.createError"), _ = _e(async (L) => {
|
|
22325
22327
|
c(!0), d(null);
|
|
22326
22328
|
try {
|
|
@@ -22336,20 +22338,20 @@ const Ap = Un(void 0), D7 = (t) => {
|
|
|
22336
22338
|
const R = await s(L);
|
|
22337
22339
|
r?.(R);
|
|
22338
22340
|
}
|
|
22339
|
-
f(
|
|
22341
|
+
f(v), e();
|
|
22340
22342
|
} catch (R) {
|
|
22341
22343
|
console.error("Failed to submit secret form:", R), d(M);
|
|
22342
22344
|
} finally {
|
|
22343
22345
|
c(!1);
|
|
22344
22346
|
}
|
|
22345
|
-
}, [
|
|
22346
|
-
x || (f(
|
|
22347
|
-
}, [
|
|
22347
|
+
}, [v, s, h, e, r, o, f, n, M, a]), A = _e(() => {
|
|
22348
|
+
x || (f(v), d(null), e());
|
|
22349
|
+
}, [v, x, e, f]);
|
|
22348
22350
|
return /* @__PURE__ */ Ue(Sg, { isOpen: t, onClose: A, title: k, size: "sm", bodyClassName: "flex flex-col gap-4", closeOnBackdropClick: !x, closeOnEscape: !x, footerActions: /* @__PURE__ */ Ue("div", { className: "flex w-full items-center justify-end gap-2", children: [
|
|
22349
22351
|
/* @__PURE__ */ X(Nr, { variant: "text", onClick: A, disabled: x, children: p("vaultSecretDialog.cancel") }),
|
|
22350
22352
|
/* @__PURE__ */ X(Nr, { variant: "contained", color: "primary", onClick: g(_), disabled: x, className: "w-40", children: S })
|
|
22351
22353
|
] }), children: [
|
|
22352
|
-
/* @__PURE__ */ X("form", { onSubmit: g(_), className: "mx-auto flex w-full max-w-md flex-col gap-4", children: /* @__PURE__ */ X(Sn, { control: y, errors:
|
|
22354
|
+
/* @__PURE__ */ X("form", { onSubmit: g(_), className: "mx-auto flex w-full max-w-md flex-col gap-4", children: /* @__PURE__ */ X(Sn, { control: y, errors: b, schema: i }) }),
|
|
22353
22355
|
u && /* @__PURE__ */ X(qt, { error: !0, className: "mx-auto mt-4 w-full max-w-md", children: u })
|
|
22354
22356
|
] });
|
|
22355
22357
|
}, zp = (t) => {
|
|
@@ -22367,9 +22369,9 @@ const Ap = Un(void 0), D7 = (t) => {
|
|
|
22367
22369
|
className: p,
|
|
22368
22370
|
selectClassName: h,
|
|
22369
22371
|
toggleAriaLabel: m
|
|
22370
|
-
} = t,
|
|
22371
|
-
secretsList:
|
|
22372
|
-
} = Vp(), x = _n(), [k, S] =
|
|
22372
|
+
} = t, v = l === void 0 ? !1 : l, y = c === void 0 ? !1 : c, g = u === void 0 ? !1 : u, f = d === void 0 ? !1 : d, {
|
|
22373
|
+
secretsList: b
|
|
22374
|
+
} = Vp(), x = _n(), [k, S] = Je(!1), M = o ?? null, _ = n ?? `vault-input-${r ?? ""}`;
|
|
22373
22375
|
let A;
|
|
22374
22376
|
e[0] !== s || e[1] !== x ? (A = s ?? x("vaultInput.placeholder"), e[0] = s, e[1] = x, e[2] = A) : A = e[2];
|
|
22375
22377
|
const L = A;
|
|
@@ -22377,7 +22379,7 @@ const Ap = Un(void 0), D7 = (t) => {
|
|
|
22377
22379
|
e[3] !== a || e[4] !== x || e[5] !== m ? (R = m ?? a ?? x("vaultInput.toggleAriaLabel"), e[3] = a, e[4] = x, e[5] = m, e[6] = R) : R = e[6];
|
|
22378
22380
|
const D = R;
|
|
22379
22381
|
let F;
|
|
22380
|
-
e[7] !==
|
|
22382
|
+
e[7] !== b ? (F = b.map(b7), e[7] = b, e[8] = F) : F = e[8];
|
|
22381
22383
|
const T = F;
|
|
22382
22384
|
let W;
|
|
22383
22385
|
e: {
|
|
@@ -22415,7 +22417,7 @@ const Ap = Un(void 0), D7 = (t) => {
|
|
|
22415
22417
|
let N;
|
|
22416
22418
|
e[20] !== h ? (N = Gn("flex-1", h), e[20] = h, e[21] = N) : N = e[21];
|
|
22417
22419
|
let P;
|
|
22418
|
-
e[22] !== g || e[23] !== y || e[24] !==
|
|
22420
|
+
e[22] !== g || e[23] !== y || e[24] !== v || e[25] !== I || e[26] !== T || e[27] !== _ || e[28] !== L || e[29] !== D || e[30] !== B || e[31] !== N ? (P = /* @__PURE__ */ X(ha, { id: _, containerClassName: N, className: "w-full", value: B, setValue: I, options: T, placeholder: L, error: v, disabled: y, disableSearch: g, toggleAriaLabel: D }), e[22] = g, e[23] = y, e[24] = v, e[25] = I, e[26] = T, e[27] = _, e[28] = L, e[29] = D, e[30] = B, e[31] = N, e[32] = P) : P = e[32];
|
|
22419
22421
|
let z;
|
|
22420
22422
|
e[33] !== y || e[34] !== f || e[35] !== x ? (z = !f && /* @__PURE__ */ X(Ko, { icon: ku, onClick: V, disabled: y, "aria-label": x("vaultInput.addAriaLabel"), variant: "contained", color: "primary", size: "small", className: "self-center" }), e[33] = y, e[34] = f, e[35] = x, e[36] = z) : z = e[36];
|
|
22421
22423
|
let q;
|
|
@@ -22455,15 +22457,15 @@ const T7 = (t) => {
|
|
|
22455
22457
|
error: p,
|
|
22456
22458
|
...a
|
|
22457
22459
|
} = t, e[0] = t, e[1] = n, e[2] = r, e[3] = o, e[4] = i, e[5] = s, e[6] = a, e[7] = l, e[8] = c, e[9] = u, e[10] = d, e[11] = p) : (n = e[1], r = e[2], o = e[3], i = e[4], s = e[5], a = e[6], l = e[7], c = e[8], u = e[9], d = e[10], p = e[11]);
|
|
22458
|
-
const h = c === void 0 ? "vault-input" : c, m = u === void 0 ? "Secret" : u,
|
|
22460
|
+
const h = c === void 0 ? "vault-input" : c, m = u === void 0 ? "Secret" : u, v = d === void 0 ? !1 : d, y = p === void 0 ? !1 : p;
|
|
22459
22461
|
let g;
|
|
22460
22462
|
e[12] !== n ? (g = Gn("w-full", n), e[12] = n, e[13] = g) : g = e[13];
|
|
22461
22463
|
const f = g;
|
|
22462
|
-
let
|
|
22463
|
-
e[14] !== l ? (
|
|
22464
|
-
const x =
|
|
22464
|
+
let b;
|
|
22465
|
+
e[14] !== l ? (b = Gn("w-full", l), e[14] = l, e[15] = b) : b = e[15];
|
|
22466
|
+
const x = b, k = y && r, S = !k && s;
|
|
22465
22467
|
let M;
|
|
22466
|
-
e[16] !== h || e[17] !== m || e[18] !==
|
|
22468
|
+
e[16] !== h || e[17] !== m || e[18] !== v ? (M = /* @__PURE__ */ X(Zs, { htmlFor: h, required: v, children: m }), e[16] = h, e[17] = m, e[18] = v, e[19] = M) : M = e[19];
|
|
22467
22469
|
let _;
|
|
22468
22470
|
e[20] !== y || e[21] !== h || e[22] !== m || e[23] !== f || e[24] !== x || e[25] !== a ? (_ = /* @__PURE__ */ X(zp, { ...a, id: h, label: m, error: y, className: f, selectClassName: x }), e[20] = y, e[21] = h, e[22] = m, e[23] = f, e[24] = x, e[25] = a, e[26] = _) : _ = e[26];
|
|
22469
22471
|
let A;
|
|
@@ -22559,7 +22561,7 @@ const Fp = Un(void 0), w7 = 5e3, P7 = (t) => {
|
|
|
22559
22561
|
} = t;
|
|
22560
22562
|
let r;
|
|
22561
22563
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = [], e[0] = r) : r = e[0];
|
|
22562
|
-
const [o, i] =
|
|
22564
|
+
const [o, i] = Je(r);
|
|
22563
22565
|
let s;
|
|
22564
22566
|
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (y) => {
|
|
22565
22567
|
const g = crypto.randomUUID(), f = {
|
|
@@ -22567,10 +22569,10 @@ const Fp = Un(void 0), w7 = 5e3, P7 = (t) => {
|
|
|
22567
22569
|
id: g
|
|
22568
22570
|
};
|
|
22569
22571
|
i((x) => [...x, f]);
|
|
22570
|
-
const
|
|
22571
|
-
return
|
|
22572
|
+
const b = y.duration ?? w7;
|
|
22573
|
+
return b > 0 && setTimeout(() => {
|
|
22572
22574
|
i((x) => x.filter((k) => k.id !== g));
|
|
22573
|
-
},
|
|
22575
|
+
}, b), g;
|
|
22574
22576
|
}, e[1] = s) : s = e[1];
|
|
22575
22577
|
const a = s;
|
|
22576
22578
|
let l;
|
|
@@ -22592,11 +22594,11 @@ const Fp = Un(void 0), w7 = 5e3, P7 = (t) => {
|
|
|
22592
22594
|
const h = p;
|
|
22593
22595
|
let m;
|
|
22594
22596
|
e[5] !== o ? (m = /* @__PURE__ */ X(i2, { toasts: o, onDismiss: c }), e[5] = o, e[6] = m) : m = e[6];
|
|
22595
|
-
let
|
|
22596
|
-
return e[7] !== n || e[8] !== m ? (
|
|
22597
|
+
let v;
|
|
22598
|
+
return e[7] !== n || e[8] !== m ? (v = /* @__PURE__ */ Ue(Fp.Provider, { value: h, children: [
|
|
22597
22599
|
n,
|
|
22598
22600
|
m
|
|
22599
|
-
] }), e[7] = n, e[8] = m, e[9] =
|
|
22601
|
+
] }), e[7] = n, e[8] = m, e[9] = v) : v = e[9], v;
|
|
22600
22602
|
}, R7 = () => {
|
|
22601
22603
|
const t = Kn(Fp);
|
|
22602
22604
|
if (t === void 0)
|