@scbt-ecom/ui 0.45.0 → 0.45.2
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/{index-DV_MMMPA.js → index-MT92CfvO.js} +151 -150
- package/dist/{index-DV_MMMPA.js.map → index-MT92CfvO.js.map} +1 -1
- package/dist/shared/ui/formElements/uncontrolled/autocomplete/Autocomplete.d.ts +1 -5
- package/dist/shared/validation/base/number.validators.d.ts +1 -1
- package/dist/shared/validation/base/string.validators.d.ts +1 -1
- package/dist/ui.js +3 -3
- package/dist/{utils-DnWHDMk6.js → utils-Dx_j5QL2.js} +538 -525
- package/dist/utils-Dx_j5QL2.js.map +1 -0
- package/dist/validation.js +7 -7
- package/dist/validation.js.map +1 -1
- package/dist/widget.js +1 -1
- package/package.json +1 -1
- package/dist/utils-DnWHDMk6.js.map +0 -1
|
@@ -5,13 +5,13 @@ var Nu = (t, e, n) => e.has(t) || Zm("Cannot " + n);
|
|
|
5
5
|
var ge = (t, e, n) => (Nu(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ut = (t, e, n) => e.has(t) ? Zm("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Ke = (t, e, n, r) => (Nu(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), Ct = (t, e, n) => (Nu(t, e, "access private method"), n);
|
|
6
6
|
import { c as te, a as xT, T as qr } from "./typeGuards-yOWv7RXH.js";
|
|
7
7
|
import * as R from "react";
|
|
8
|
-
import ie, { forwardRef as lt, createContext as mt, useContext as He, useState as
|
|
8
|
+
import ie, { forwardRef as lt, createContext as mt, useContext as He, useState as Le, useEffect as ze, useMemo as je, useCallback as Ae, useRef as Te, useId as an, useInsertionEffect as $0, Children as No, isValidElement as Go, useLayoutEffect as cs, Fragment as Pn, createElement as Vp, Component as wT, cloneElement as zp, useReducer as Wp, useSyncExternalStore as kT, createRef as ST, memo as V0, useImperativeHandle as ET, useDebugValue as z0 } from "react";
|
|
9
9
|
import { a as CT, b as Wc, g as pn, f as TT, c as OT } from "./useDebounce-QgEEiWs9.js";
|
|
10
10
|
import { g as MT } from "./_commonjsHelpers-C6fGbg64.js";
|
|
11
11
|
import * as ra from "react-dom";
|
|
12
12
|
import W0, { createPortal as H0, flushSync as Di } from "react-dom";
|
|
13
13
|
import { m as Hc } from "./mergeRefs-qDToYXtM.js";
|
|
14
|
-
import { t as Mt, c as jn, g as eg, m as PT, e as U0, h as K0, j as G0, k as q0, l as AT, n as DT, o as Hp, i as Up, q as RT, r as NT, s as IT, w as jT, u as tf, v as Iu, x as bs, y as xs, A as LT, B as FT, C as _T, a as Y0, b as J0, d as bi, D as Bs, p as X0, f as ju, z as Lu } from "./utils-
|
|
14
|
+
import { t as Mt, c as jn, g as eg, m as PT, e as U0, h as K0, j as G0, k as q0, l as AT, n as DT, o as Hp, i as Up, q as RT, r as NT, s as IT, w as jT, u as tf, v as Iu, x as bs, y as xs, A as LT, B as FT, C as _T, a as Y0, b as J0, d as bi, D as Bs, p as X0, f as ju, z as Lu } from "./utils-Dx_j5QL2.js";
|
|
15
15
|
function Q0(t, e, n) {
|
|
16
16
|
const r = Mt(t, n == null ? void 0 : n.in);
|
|
17
17
|
if (isNaN(e)) return jn(t, NaN);
|
|
@@ -1222,7 +1222,7 @@ function hO() {
|
|
|
1222
1222
|
ref: !0,
|
|
1223
1223
|
__self: !0,
|
|
1224
1224
|
__source: !0
|
|
1225
|
-
}, Ce,
|
|
1225
|
+
}, Ce, Ne;
|
|
1226
1226
|
function bt(W) {
|
|
1227
1227
|
if (me.call(W, "ref")) {
|
|
1228
1228
|
var pe = Object.getOwnPropertyDescriptor(W, "ref").get;
|
|
@@ -1256,7 +1256,7 @@ function hO() {
|
|
|
1256
1256
|
function Dt(W, pe) {
|
|
1257
1257
|
{
|
|
1258
1258
|
var be = function() {
|
|
1259
|
-
|
|
1259
|
+
Ne || (Ne = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", pe));
|
|
1260
1260
|
};
|
|
1261
1261
|
be.isReactWarning = !0, Object.defineProperty(W, "ref", {
|
|
1262
1262
|
get: be,
|
|
@@ -2976,7 +2976,7 @@ function vP(t) {
|
|
|
2976
2976
|
return t.reduce((n, r) => [...n, ...r.weeks], e);
|
|
2977
2977
|
}
|
|
2978
2978
|
function Uc(t, e) {
|
|
2979
|
-
const [n, r] =
|
|
2979
|
+
const [n, r] = Le(t);
|
|
2980
2980
|
return [e === void 0 ? n : e, r];
|
|
2981
2981
|
}
|
|
2982
2982
|
function yP(t, e) {
|
|
@@ -3091,7 +3091,7 @@ function mx(t, e, n, r, i, o, s, a = 0) {
|
|
|
3091
3091
|
return !c && !u ? f : mx(t, e, f, r, i, o, s, a + 1);
|
|
3092
3092
|
}
|
|
3093
3093
|
function wP(t, e, n, r, i) {
|
|
3094
|
-
const { autoFocus: o } = t, [s, a] =
|
|
3094
|
+
const { autoFocus: o } = t, [s, a] = Le(), l = bP(e.days, n, r || (() => !1), s), [c, u] = Le(o ? l : void 0);
|
|
3095
3095
|
return {
|
|
3096
3096
|
isFocusTarget: (m) => !!(l != null && l.isEqualTo(m)),
|
|
3097
3097
|
setFocused: u,
|
|
@@ -3258,7 +3258,7 @@ function PP(t, e) {
|
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
3260
|
function AP(t) {
|
|
3261
|
-
const { components: e, formatters: n, labels: r, dateLib: i, locale: o, classNames: s } =
|
|
3261
|
+
const { components: e, formatters: n, labels: r, dateLib: i, locale: o, classNames: s } = je(() => {
|
|
3262
3262
|
const xe = { ...Hp, ...t.locale };
|
|
3263
3263
|
return {
|
|
3264
3264
|
dateLib: new Pr({
|
|
@@ -3290,7 +3290,7 @@ function AP(t) {
|
|
|
3290
3290
|
t.formatters,
|
|
3291
3291
|
t.labels,
|
|
3292
3292
|
t.classNames
|
|
3293
|
-
]), { captionLayout: a, mode: l, onDayBlur: c, onDayClick: u, onDayFocus: d, onDayKeyDown: f, onDayMouseEnter: p, onDayMouseLeave: h, onNextClick: m, onPrevClick: g, showWeekNumber: v, styles: y } = t, { formatCaption: S, formatDay: b, formatMonthDropdown: w, formatWeekNumber: x, formatWeekNumberHeader: E, formatWeekdayName: k, formatYearDropdown: C } = n, T = yP(t, i), { days: O, months: A, navStart: D, navEnd: I, previousMonth: B, nextMonth: F, goToMonth: j } = T, _ = kP(O, t, i), { isSelected: V, select: M, selected: N } = PP(t, i) ?? {}, { blur: $, focused: L, isFocusTarget: z, moveFocus: K, setFocused: Y } = wP(t, T, _, V ?? (() => !1), i), { labelDayButton: Z, labelGridcell: U, labelGrid: X, labelMonthDropdown: se, labelNav: ne, labelWeekday: H, labelWeekNumber: de, labelWeekNumberHeader: G, labelYearDropdown: re } = r, me =
|
|
3293
|
+
]), { captionLayout: a, mode: l, onDayBlur: c, onDayClick: u, onDayFocus: d, onDayKeyDown: f, onDayMouseEnter: p, onDayMouseLeave: h, onNextClick: m, onPrevClick: g, showWeekNumber: v, styles: y } = t, { formatCaption: S, formatDay: b, formatMonthDropdown: w, formatWeekNumber: x, formatWeekNumberHeader: E, formatWeekdayName: k, formatYearDropdown: C } = n, T = yP(t, i), { days: O, months: A, navStart: D, navEnd: I, previousMonth: B, nextMonth: F, goToMonth: j } = T, _ = kP(O, t, i), { isSelected: V, select: M, selected: N } = PP(t, i) ?? {}, { blur: $, focused: L, isFocusTarget: z, moveFocus: K, setFocused: Y } = wP(t, T, _, V ?? (() => !1), i), { labelDayButton: Z, labelGridcell: U, labelGrid: X, labelMonthDropdown: se, labelNav: ne, labelWeekday: H, labelWeekNumber: de, labelWeekNumberHeader: G, labelYearDropdown: re } = r, me = je(() => qM(i, t.ISOWeek), [i, t.ISOWeek]), oe = l !== void 0 || u !== void 0, le = Ae(() => {
|
|
3294
3294
|
B && (j(B), g == null || g(B));
|
|
3295
3295
|
}, [B, j, g]), ce = Ae(() => {
|
|
3296
3296
|
F && (j(F), m == null || m(F));
|
|
@@ -3327,10 +3327,10 @@ function AP(t) {
|
|
|
3327
3327
|
}, [i, j]), ye = Ae((xe) => (We) => {
|
|
3328
3328
|
const Fe = Number(We.target.value), Dt = i.setYear(i.startOfMonth(xe), Fe);
|
|
3329
3329
|
j(Dt);
|
|
3330
|
-
}, [i, j]), { className: we, style: Ce } =
|
|
3330
|
+
}, [i, j]), { className: we, style: Ce } = je(() => ({
|
|
3331
3331
|
className: [s[Me.Root], t.className].filter(Boolean).join(" "),
|
|
3332
3332
|
style: { ...y == null ? void 0 : y[Me.Root], ...t.style }
|
|
3333
|
-
}), [s, t.className, t.style, y]),
|
|
3333
|
+
}), [s, t.className, t.style, y]), Ne = jM(t), bt = {
|
|
3334
3334
|
dayPickerProps: t,
|
|
3335
3335
|
selected: N,
|
|
3336
3336
|
select: M,
|
|
@@ -3351,7 +3351,7 @@ function AP(t) {
|
|
|
3351
3351
|
{ value: bt },
|
|
3352
3352
|
ie.createElement(
|
|
3353
3353
|
e.Root,
|
|
3354
|
-
{ className: we, style: Ce, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], ...
|
|
3354
|
+
{ className: we, style: Ce, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], ...Ne },
|
|
3355
3355
|
ie.createElement(
|
|
3356
3356
|
e.Months,
|
|
3357
3357
|
{ className: s[Me.Months], style: y == null ? void 0 : y[Me.Months] },
|
|
@@ -3461,7 +3461,7 @@ const NP = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
|
|
|
3461
3461
|
if (!f)
|
|
3462
3462
|
return;
|
|
3463
3463
|
r && r();
|
|
3464
|
-
}, [a, r]), u =
|
|
3464
|
+
}, [a, r]), u = je(
|
|
3465
3465
|
() => ({
|
|
3466
3466
|
id: l,
|
|
3467
3467
|
initial: e,
|
|
@@ -3477,7 +3477,7 @@ const NP = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
|
|
|
3477
3477
|
*/
|
|
3478
3478
|
o ? [Math.random(), c] : [n, c]
|
|
3479
3479
|
);
|
|
3480
|
-
return
|
|
3480
|
+
return je(() => {
|
|
3481
3481
|
a.forEach((d, f) => a.set(f, !1));
|
|
3482
3482
|
}, [n]), R.useEffect(() => {
|
|
3483
3483
|
!n && !a.size && r && r();
|
|
@@ -3505,7 +3505,7 @@ function mg(t) {
|
|
|
3505
3505
|
}), e;
|
|
3506
3506
|
}
|
|
3507
3507
|
const Qp = typeof window < "u", vx = Qp ? cs : ze, yx = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: s = !1 }) => {
|
|
3508
|
-
const [a, l] = gx(s), c =
|
|
3508
|
+
const [a, l] = gx(s), c = je(() => mg(t), [t]), u = s && !a ? [] : c.map(Za), d = Te(!0), f = Te(c), p = Jp(() => /* @__PURE__ */ new Map()), [h, m] = Le(c), [g, v] = Le(c);
|
|
3509
3509
|
vx(() => {
|
|
3510
3510
|
d.current = !1, f.current = c;
|
|
3511
3511
|
for (let b = 0; b < g.length; b++) {
|
|
@@ -3761,7 +3761,7 @@ function WP(t, e) {
|
|
|
3761
3761
|
}
|
|
3762
3762
|
function HP(t) {
|
|
3763
3763
|
const { initial: e, animate: n } = WP(t, He(qc));
|
|
3764
|
-
return
|
|
3764
|
+
return je(() => ({ initial: e, animate: n }), [yg(e), yg(n)]);
|
|
3765
3765
|
}
|
|
3766
3766
|
function yg(t) {
|
|
3767
3767
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
@@ -4304,7 +4304,7 @@ function Lx(t, e, n) {
|
|
|
4304
4304
|
!Kt(e[r]) && !Ix(r, n) && (t[r] = e[r]);
|
|
4305
4305
|
}
|
|
4306
4306
|
function kA({ transformTemplate: t }, e) {
|
|
4307
|
-
return
|
|
4307
|
+
return je(() => {
|
|
4308
4308
|
const n = uh();
|
|
4309
4309
|
return lh(n, e, t), Object.assign({}, n.vars, n.style);
|
|
4310
4310
|
}, [e]);
|
|
@@ -4318,7 +4318,7 @@ function EA(t, e) {
|
|
|
4318
4318
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
|
4319
4319
|
}
|
|
4320
4320
|
function CA(t, e, n, r) {
|
|
4321
|
-
const i =
|
|
4321
|
+
const i = je(() => {
|
|
4322
4322
|
const o = Ax();
|
|
4323
4323
|
return ch(o, e, dh(r), t.transformTemplate), {
|
|
4324
4324
|
...o.attrs,
|
|
@@ -4333,7 +4333,7 @@ function CA(t, e, n, r) {
|
|
|
4333
4333
|
}
|
|
4334
4334
|
function TA(t = !1) {
|
|
4335
4335
|
return (n, r, i, { latestValues: o }, s) => {
|
|
4336
|
-
const l = (ih(n) ? CA : EA)(r, o, s, n), c = VP(r, typeof n == "string", t), u = n !== Pn ? { ...c, ...l, ref: i } : {}, { children: d } = r, f =
|
|
4336
|
+
const l = (ih(n) ? CA : EA)(r, o, s, n), c = VP(r, typeof n == "string", t), u = n !== Pn ? { ...c, ...l, ref: i } : {}, { children: d } = r, f = je(() => Kt(d) ? d.get() : d, [d]);
|
|
4337
4337
|
return Vp(n, {
|
|
4338
4338
|
...u,
|
|
4339
4339
|
children: f
|
|
@@ -8437,7 +8437,7 @@ const tI = (t, e) => ih(t) ? new eI(e) : new ZN(e, {
|
|
|
8437
8437
|
selectOptions: r,
|
|
8438
8438
|
...i
|
|
8439
8439
|
}) => {
|
|
8440
|
-
const [o, s] =
|
|
8440
|
+
const [o, s] = Le(null), a = (d) => {
|
|
8441
8441
|
s((f) => f === d ? null : d);
|
|
8442
8442
|
}, { goToMonth: l } = ao(), c = r && r.month !== void 0 ? r.month : Nv.month, u = r && r.year !== void 0 ? r.year : Nv.year;
|
|
8443
8443
|
return /* @__PURE__ */ P.jsxs(
|
|
@@ -8486,7 +8486,7 @@ const tI = (t, e) => ih(t) ? new eI(e) : new ZN(e, {
|
|
|
8486
8486
|
disabledAfterToday: s,
|
|
8487
8487
|
...a
|
|
8488
8488
|
}) => {
|
|
8489
|
-
const l =
|
|
8489
|
+
const l = je(
|
|
8490
8490
|
() => ({
|
|
8491
8491
|
today: te(bi.today, t == null ? void 0 : t.today),
|
|
8492
8492
|
outside: te(bi.outside, t == null ? void 0 : t.outside),
|
|
@@ -8846,7 +8846,7 @@ const tI = (t, e) => ih(t) ? new eI(e) : new ZN(e, {
|
|
|
8846
8846
|
Kw.displayName = "AccordionHeader";
|
|
8847
8847
|
const vI = lt(
|
|
8848
8848
|
({ children: t, label: e, classes: n, defaultOpen: r = !1, icon: i }, o) => {
|
|
8849
|
-
const [s, a] =
|
|
8849
|
+
const [s, a] = Le(r), l = () => a((c) => !c);
|
|
8850
8850
|
return /* @__PURE__ */ P.jsx("div", { className: te("flex flex-col gap-5", n == null ? void 0 : n.root), children: /* @__PURE__ */ P.jsxs("div", { className: te("w-full disabled:text-color-dark", n == null ? void 0 : n.wrapper), children: [
|
|
8851
8851
|
/* @__PURE__ */ P.jsx(Kw, { icon: i, classes: n == null ? void 0 : n.header, isOpen: s, onClick: l, children: e }),
|
|
8852
8852
|
/* @__PURE__ */ P.jsx(yx, { mode: "sync", initial: !1, children: s && /* @__PURE__ */ P.jsx(
|
|
@@ -11390,7 +11390,7 @@ function rd(t, e) {
|
|
|
11390
11390
|
return typeof t == "function" ? t(e) : t && (t.current = e), t;
|
|
11391
11391
|
}
|
|
11392
11392
|
function xL(t, e) {
|
|
11393
|
-
var n =
|
|
11393
|
+
var n = Le(function() {
|
|
11394
11394
|
return {
|
|
11395
11395
|
// value
|
|
11396
11396
|
value: t,
|
|
@@ -12409,7 +12409,7 @@ var RF = (t) => typeof t == "function", Jl = (t, e) => RF(t) ? t(e) : t, NF = /*
|
|
|
12409
12409
|
e(Al);
|
|
12410
12410
|
});
|
|
12411
12411
|
}, jF = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, LF = (t = {}) => {
|
|
12412
|
-
let [e, n] =
|
|
12412
|
+
let [e, n] = Le(Al);
|
|
12413
12413
|
ze(() => (Pl.push(n), () => {
|
|
12414
12414
|
let i = Pl.indexOf(n);
|
|
12415
12415
|
i > -1 && Pl.splice(i, 1);
|
|
@@ -13410,13 +13410,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13410
13410
|
function ee(Q, fe, ye, we) {
|
|
13411
13411
|
var Ce = M(ae[Q], ae, fe);
|
|
13412
13412
|
if (Ce.type !== "throw") {
|
|
13413
|
-
var
|
|
13413
|
+
var Ne = Ce.arg, bt = Ne.value;
|
|
13414
13414
|
return bt && c(bt) == "object" && A.call(bt, "__await") ? q.resolve(bt.__await).then(function(xe) {
|
|
13415
13415
|
ee("next", xe, ye, we);
|
|
13416
13416
|
}, function(xe) {
|
|
13417
13417
|
ee("throw", xe, ye, we);
|
|
13418
13418
|
}) : q.resolve(bt).then(function(xe) {
|
|
13419
|
-
|
|
13419
|
+
Ne.value = xe, ye(Ne);
|
|
13420
13420
|
}, function(xe) {
|
|
13421
13421
|
return ee("throw", xe, ye, we);
|
|
13422
13422
|
});
|
|
@@ -13562,8 +13562,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13562
13562
|
dispatchException: function(ae) {
|
|
13563
13563
|
if (this.done) throw ae;
|
|
13564
13564
|
var q = this;
|
|
13565
|
-
function ee(Ce,
|
|
13566
|
-
return fe.type = "throw", fe.arg = ae, q.next = Ce,
|
|
13565
|
+
function ee(Ce, Ne) {
|
|
13566
|
+
return fe.type = "throw", fe.arg = ae, q.next = Ce, Ne && (q.method = "next", q.arg = C), !!Ne;
|
|
13567
13567
|
}
|
|
13568
13568
|
for (var J = this.tryEntries.length - 1; J >= 0; --J) {
|
|
13569
13569
|
var Q = this.tryEntries[J], fe = Q.completion;
|
|
@@ -14349,7 +14349,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14349
14349
|
for (oe.reset(), D(ce).lastIndex = 0; q = D(ce).exec(ce.inputFormat); ) {
|
|
14350
14350
|
var ee;
|
|
14351
14351
|
if ((ee = A(q)) && ee[3]) {
|
|
14352
|
-
for (var J = ee[1], Q = oe[ee[2]], fe = ce.min[ee[2]], ye = ce.max ? ce.max[ee[2]] : fe + 1, we = [], Ce = !1,
|
|
14352
|
+
for (var J = ee[1], Q = oe[ee[2]], fe = ce.min[ee[2]], ye = ce.max ? ce.max[ee[2]] : fe + 1, we = [], Ce = !1, Ne = 0; Ne < fe.length; Ne++) ke.validPositions[Ne + q.index] !== void 0 || Ce ? (we[Ne] = Q[Ne], Ce = Ce || Q[Ne] > fe[Ne]) : (Ne + q.index == 0 && Q[Ne] < fe[Ne] ? (we[Ne] = Q[Ne], Ce = !0) : we[Ne] = fe[Ne], ee[2] === "year" && Q.length - 1 == Ne && fe != ye && (we = (parseInt(we.join("")) + 1).toString().split("")), ee[2] === "ampm" && fe != ye && ce.min.date.getTime() > oe.date.getTime() && (we[Ne] = ye[Ne]));
|
|
14353
14353
|
J.call(oe._date, we.join(""));
|
|
14354
14354
|
}
|
|
14355
14355
|
}
|
|
@@ -16079,7 +16079,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16079
16079
|
}
|
|
16080
16080
|
function le(q, ee, J) {
|
|
16081
16081
|
var Q, fe;
|
|
16082
|
-
if ((A.tests[q] || A.validPositions[q]) && (A.validPositions[q] ? [A.validPositions[q]] : A.tests[q]).every(function(Ce,
|
|
16082
|
+
if ((A.tests[q] || A.validPositions[q]) && (A.validPositions[q] ? [A.validPositions[q]] : A.tests[q]).every(function(Ce, Ne) {
|
|
16083
16083
|
if (Ce.mloc[ee]) return Q = Ce, !1;
|
|
16084
16084
|
var bt = J !== void 0 ? J : Ce.alternation, xe = Ce.locator[bt] !== void 0 ? Ce.locator[bt].toString().indexOf(ee) : -1;
|
|
16085
16085
|
return (fe === void 0 || xe < fe) && xe !== -1 && (Q = Ce, fe = xe), !0;
|
|
@@ -16148,7 +16148,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16148
16148
|
T.hasAlternator = !0;
|
|
16149
16149
|
var ee, J = G, Q = [], fe = _.slice(), ye = re.length, we = U.length > 0 ? U.shift() : -1;
|
|
16150
16150
|
if (we === -1 || typeof we == "string") {
|
|
16151
|
-
var Ce,
|
|
16151
|
+
var Ce, Ne = F, bt = U.slice(), xe = [];
|
|
16152
16152
|
if (typeof we == "string") xe = we.split(",");
|
|
16153
16153
|
else for (Ce = 0; Ce < J.matches.length; Ce++) xe.push(Ce.toString());
|
|
16154
16154
|
if (A.excludes[w] !== void 0) {
|
|
@@ -16158,13 +16158,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16158
16158
|
}
|
|
16159
16159
|
xe.length === 0 && (delete A.excludes[w], xe = We);
|
|
16160
16160
|
}
|
|
16161
|
-
(D.keepStatic === !0 || isFinite(parseInt(D.keepStatic)) &&
|
|
16161
|
+
(D.keepStatic === !0 || isFinite(parseInt(D.keepStatic)) && Ne >= D.keepStatic) && (xe = xe.slice(0, 1));
|
|
16162
16162
|
for (var Xt = 0; Xt < xe.length; Xt++) {
|
|
16163
16163
|
Ce = parseInt(xe[Xt]), _ = [], U = typeof we == "string" && le(F, Ce, ye) || bt.slice();
|
|
16164
16164
|
var Je = J.matches[Ce];
|
|
16165
16165
|
if (Je && ne(Je, [Ce].concat(re), me)) G = !0;
|
|
16166
16166
|
else if (Xt === 0 && (N = q(J)), Je && Je.matches && Je.matches.length > J.matches[0].matches.length) break;
|
|
16167
|
-
ee = _.slice(), F =
|
|
16167
|
+
ee = _.slice(), F = Ne, _ = [];
|
|
16168
16168
|
for (var Pt = 0; Pt < ee.length; Pt++) {
|
|
16169
16169
|
var Ee = ee[Pt], zn = !1;
|
|
16170
16170
|
Ee.alternation = Ee.alternation || ye, ke(Ee);
|
|
@@ -16917,14 +16917,14 @@ function X_() {
|
|
|
16917
16917
|
};
|
|
16918
16918
|
}
|
|
16919
16919
|
function T1(t) {
|
|
16920
|
-
let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: i } = t, [o, s] =
|
|
16920
|
+
let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: i } = t, [o, s] = Le(!1), a = Te({
|
|
16921
16921
|
isHovered: !1,
|
|
16922
16922
|
ignoreEmulatedMouseEvents: !1,
|
|
16923
16923
|
pointerType: "",
|
|
16924
16924
|
target: null
|
|
16925
16925
|
}).current;
|
|
16926
16926
|
ze(X_, []);
|
|
16927
|
-
let { hoverProps: l, triggerHoverEnd: c } =
|
|
16927
|
+
let { hoverProps: l, triggerHoverEnd: c } = je(() => {
|
|
16928
16928
|
let u = (p, h) => {
|
|
16929
16929
|
if (a.pointerType = h, i || h === "touch" || a.isHovered || !p.currentTarget.contains(p.target)) return;
|
|
16930
16930
|
a.isHovered = !0;
|
|
@@ -16980,7 +16980,7 @@ function O1(t = {}) {
|
|
|
16980
16980
|
let { autoFocus: e = !1, isTextInput: n, within: r } = t, i = Te({
|
|
16981
16981
|
isFocused: !1,
|
|
16982
16982
|
isFocusVisible: e || C1()
|
|
16983
|
-
}), [o, s] =
|
|
16983
|
+
}), [o, s] = Le(!1), [a, l] = Le(() => i.current.isFocused && i.current.isFocusVisible), c = Ae(() => l(i.current.isFocused && i.current.isFocusVisible), []), u = Ae((p) => {
|
|
16984
16984
|
i.current.isFocused = p, s(p), c();
|
|
16985
16985
|
}, [
|
|
16986
16986
|
c
|
|
@@ -17078,7 +17078,7 @@ function or() {
|
|
|
17078
17078
|
return e;
|
|
17079
17079
|
}
|
|
17080
17080
|
function Ha() {
|
|
17081
|
-
let [t] =
|
|
17081
|
+
let [t] = Le(or);
|
|
17082
17082
|
return ze(() => () => t.dispose(), [t]), t;
|
|
17083
17083
|
}
|
|
17084
17084
|
let ht = (t, e) => {
|
|
@@ -17090,7 +17090,7 @@ function po(t) {
|
|
|
17090
17090
|
e.current = t;
|
|
17091
17091
|
}, [t]), e;
|
|
17092
17092
|
}
|
|
17093
|
-
let
|
|
17093
|
+
let Ie = function(t) {
|
|
17094
17094
|
let e = po(t);
|
|
17095
17095
|
return ie.useCallback((...n) => e.current(...n), [e]);
|
|
17096
17096
|
};
|
|
@@ -17102,9 +17102,9 @@ function n2(t, e) {
|
|
|
17102
17102
|
return !(!t || !e || t.right < e.left || t.left > e.right || t.bottom < e.top || t.top > e.bottom);
|
|
17103
17103
|
}
|
|
17104
17104
|
function r2({ disabled: t = !1 } = {}) {
|
|
17105
|
-
let e = Te(null), [n, r] =
|
|
17105
|
+
let e = Te(null), [n, r] = Le(!1), i = Ha(), o = Ie(() => {
|
|
17106
17106
|
e.current = null, r(!1), i.dispose();
|
|
17107
|
-
}), s =
|
|
17107
|
+
}), s = Ie((a) => {
|
|
17108
17108
|
if (i.dispose(), e.current === null) {
|
|
17109
17109
|
e.current = a.currentTarget, r(!0);
|
|
17110
17110
|
{
|
|
@@ -17243,11 +17243,11 @@ function c2(t) {
|
|
|
17243
17243
|
return ie.version.split(".")[0] >= "19" ? t.props.ref : t.ref;
|
|
17244
17244
|
}
|
|
17245
17245
|
function u2(t, e, n) {
|
|
17246
|
-
let [r, i] =
|
|
17247
|
-
return o && !s.current && !a.current ? (a.current = !0, s.current = o, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !o && s.current && !l.current && (l.current = !0, s.current = o, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [o ? t : r,
|
|
17246
|
+
let [r, i] = Le(n), o = t !== void 0, s = Te(o), a = Te(!1), l = Te(!1);
|
|
17247
|
+
return o && !s.current && !a.current ? (a.current = !0, s.current = o, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !o && s.current && !l.current && (l.current = !0, s.current = o, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [o ? t : r, Ie((c) => (o || i(c), e == null ? void 0 : e(c)))];
|
|
17248
17248
|
}
|
|
17249
17249
|
function d2(t) {
|
|
17250
|
-
let [e] =
|
|
17250
|
+
let [e] = Le(t);
|
|
17251
17251
|
return e;
|
|
17252
17252
|
}
|
|
17253
17253
|
function A1(t = {}, e = null, n = []) {
|
|
@@ -17276,7 +17276,7 @@ function m2({ children: t }) {
|
|
|
17276
17276
|
return n ? H0(ie.createElement(ie.Fragment, null, t), n) : null;
|
|
17277
17277
|
}
|
|
17278
17278
|
function g2({ data: t, form: e, disabled: n, onReset: r, overrides: i }) {
|
|
17279
|
-
let [o, s] =
|
|
17279
|
+
let [o, s] = Le(null), a = Ha();
|
|
17280
17280
|
return ze(() => {
|
|
17281
17281
|
if (r && o) return a.addEventListener(o, "reset", r);
|
|
17282
17282
|
}, [o, e, r]), ie.createElement(m2, null, ie.createElement(v2, { setForm: s, formId: e }), A1(t).map(([l, c]) => ie.createElement(N1, { features: Xh.Hidden, ...Ci({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: e, disabled: n, name: l, value: c, ...i }) })));
|
|
@@ -17321,7 +17321,7 @@ function Dr(...t) {
|
|
|
17321
17321
|
ze(() => {
|
|
17322
17322
|
e.current = t;
|
|
17323
17323
|
}, [t]);
|
|
17324
|
-
let n =
|
|
17324
|
+
let n = Ie((r) => {
|
|
17325
17325
|
for (let i of e.current) i != null && (typeof i == "function" ? i(r) : i.current = r);
|
|
17326
17326
|
});
|
|
17327
17327
|
return t.every((r) => r == null || (r == null ? void 0 : r[j1])) ? void 0 : n;
|
|
@@ -17344,7 +17344,7 @@ let S2 = "p";
|
|
|
17344
17344
|
function E2(t, e) {
|
|
17345
17345
|
let n = an(), r = Yh(), { id: i = `headlessui-description-${n}`, ...o } = t, s = L1(), a = Dr(e);
|
|
17346
17346
|
ht(() => s.register(i), [i, s.register]);
|
|
17347
|
-
let l = r || !1, c =
|
|
17347
|
+
let l = r || !1, c = je(() => ({ ...s.slot, disabled: l }), [s.slot, l]), u = { ref: a, ...s.props, id: i };
|
|
17348
17348
|
return Bn()({ ourProps: u, theirProps: o, slot: c, defaultTag: S2, name: s.name || "Description" });
|
|
17349
17349
|
}
|
|
17350
17350
|
let C2 = $n(E2);
|
|
@@ -17366,12 +17366,12 @@ function fu(t) {
|
|
|
17366
17366
|
return ((r = t == null ? void 0 : t.length) != null ? r : 0) > 0 ? [i, ...t].filter(Boolean).join(" ") : i;
|
|
17367
17367
|
}
|
|
17368
17368
|
function T2({ inherit: t = !1 } = {}) {
|
|
17369
|
-
let e = fu(), [n, r] =
|
|
17370
|
-
return [i.length > 0 ? i.join(" ") : void 0,
|
|
17371
|
-
let s =
|
|
17369
|
+
let e = fu(), [n, r] = Le([]), i = t ? [e, ...n].filter(Boolean) : n;
|
|
17370
|
+
return [i.length > 0 ? i.join(" ") : void 0, je(() => function(o) {
|
|
17371
|
+
let s = Ie((l) => (r((c) => [...c, l]), () => r((c) => {
|
|
17372
17372
|
let u = c.slice(), d = u.indexOf(l);
|
|
17373
17373
|
return d !== -1 && u.splice(d, 1), u;
|
|
17374
|
-
}))), a =
|
|
17374
|
+
}))), a = je(() => ({ register: s, slot: o.slot, name: o.name, props: o.props, value: o.value }), [s, o.slot, o.name, o.props, o.value]);
|
|
17375
17375
|
return ie.createElement(du.Provider, { value: a }, o.children);
|
|
17376
17376
|
}, [r])];
|
|
17377
17377
|
}
|
|
@@ -17380,7 +17380,7 @@ function M2(t, e) {
|
|
|
17380
17380
|
var n;
|
|
17381
17381
|
let r = an(), i = F1(), o = I1(), s = Yh(), { id: a = `headlessui-label-${r}`, htmlFor: l = o ?? ((n = i.props) == null ? void 0 : n.htmlFor), passive: c = !1, ...u } = t, d = Dr(e);
|
|
17382
17382
|
ht(() => i.register(a), [a, i.register]);
|
|
17383
|
-
let f =
|
|
17383
|
+
let f = Ie((g) => {
|
|
17384
17384
|
let v = g.currentTarget;
|
|
17385
17385
|
if (v instanceof HTMLLabelElement && g.preventDefault(), i.props && "onClick" in i.props && typeof i.props.onClick == "function" && i.props.onClick(g), v instanceof HTMLLabelElement) {
|
|
17386
17386
|
let y = document.getElementById(v.htmlFor);
|
|
@@ -17392,7 +17392,7 @@ function M2(t, e) {
|
|
|
17392
17392
|
(y instanceof HTMLInputElement && (y.type === "radio" || y.type === "checkbox") || y.role === "radio" || y.role === "checkbox" || y.role === "switch") && y.click(), y.focus({ preventScroll: !0 });
|
|
17393
17393
|
}
|
|
17394
17394
|
}
|
|
17395
|
-
}), p = s || !1, h =
|
|
17395
|
+
}), p = s || !1, h = je(() => ({ ...i.slot, disabled: p }), [i.slot, p]), m = { ref: d, ...i.props, id: a, htmlFor: l, onClick: f };
|
|
17396
17396
|
return c && ("onClick" in m && (delete m.htmlFor, delete m.onClick), "onClick" in u && delete u.onClick), Bn()({ ourProps: m, theirProps: u, slot: h, defaultTag: l ? O2 : "div", name: i.name || "Label" });
|
|
17397
17397
|
}
|
|
17398
17398
|
let P2 = $n(M2), A2 = Object.assign(P2, {});
|
|
@@ -17926,7 +17926,7 @@ function U2(t) {
|
|
|
17926
17926
|
return { width: e, height: n };
|
|
17927
17927
|
}
|
|
17928
17928
|
function fy(t, e = !1) {
|
|
17929
|
-
let [n, r] = Wp(() => ({}), {}), i =
|
|
17929
|
+
let [n, r] = Wp(() => ({}), {}), i = je(() => U2(t), [t, n]);
|
|
17930
17930
|
return ht(() => {
|
|
17931
17931
|
if (!t) return;
|
|
17932
17932
|
let o = new ResizeObserver(r);
|
|
@@ -18117,7 +18117,7 @@ function iB(t, e, n) {
|
|
|
18117
18117
|
}, !0), rB(r, "blur", (l) => o(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
18118
18118
|
}
|
|
18119
18119
|
function pu(...t) {
|
|
18120
|
-
return
|
|
18120
|
+
return je(() => Wa(...t), [...t]);
|
|
18121
18121
|
}
|
|
18122
18122
|
function oB(t, e, n, r) {
|
|
18123
18123
|
let i = po(n);
|
|
@@ -18134,7 +18134,7 @@ function H1(t) {
|
|
|
18134
18134
|
return oB(t, "blur", (n) => {
|
|
18135
18135
|
let r = n.target;
|
|
18136
18136
|
r instanceof HTMLInputElement && (e.current = { value: r.value, selectionStart: r.selectionStart, selectionEnd: r.selectionEnd });
|
|
18137
|
-
}),
|
|
18137
|
+
}), Ie(() => {
|
|
18138
18138
|
if (document.activeElement !== t && t instanceof HTMLInputElement && t.isConnected) {
|
|
18139
18139
|
if (t.focus({ preventScroll: !0 }), t.value !== e.current.value) t.setSelectionRange(t.value.length, t.value.length);
|
|
18140
18140
|
else {
|
|
@@ -18146,7 +18146,7 @@ function H1(t) {
|
|
|
18146
18146
|
});
|
|
18147
18147
|
}
|
|
18148
18148
|
function sB(t, e) {
|
|
18149
|
-
return
|
|
18149
|
+
return je(() => {
|
|
18150
18150
|
var n;
|
|
18151
18151
|
if (t.type) return t.type;
|
|
18152
18152
|
let r = (n = t.as) != null ? n : "button";
|
|
@@ -18266,7 +18266,7 @@ function pB() {
|
|
|
18266
18266
|
} };
|
|
18267
18267
|
}
|
|
18268
18268
|
function hB(t = 0) {
|
|
18269
|
-
let [e, n] =
|
|
18269
|
+
let [e, n] = Le(t), r = Ae((l) => n(l), [e]), i = Ae((l) => n((c) => c | l), [e]), o = Ae((l) => (e & l) === l, [e]), s = Ae((l) => n((c) => c & ~l), [n]), a = Ae((l) => n((c) => c ^ l), [n]);
|
|
18270
18270
|
return { flags: e, setFlag: r, addFlag: i, hasFlag: o, removeFlag: s, toggleFlag: a };
|
|
18271
18271
|
}
|
|
18272
18272
|
var vy, yy;
|
|
@@ -18281,7 +18281,7 @@ function gB(t) {
|
|
|
18281
18281
|
return e;
|
|
18282
18282
|
}
|
|
18283
18283
|
function vB(t, e, n, r) {
|
|
18284
|
-
let [i, o] =
|
|
18284
|
+
let [i, o] = Le(n), { hasFlag: s, addFlag: a, removeFlag: l } = hB(t && i ? 3 : 0), c = Te(!1), u = Te(!1), d = Ha();
|
|
18285
18285
|
return ht(() => {
|
|
18286
18286
|
var f;
|
|
18287
18287
|
if (t) {
|
|
@@ -18342,7 +18342,7 @@ function wB(t, { container: e, accept: n, walk: r }) {
|
|
|
18342
18342
|
}, [e, t, i, o]);
|
|
18343
18343
|
}
|
|
18344
18344
|
function by(t, e) {
|
|
18345
|
-
let n = Te([]), r =
|
|
18345
|
+
let n = Te([]), r = Ie(t);
|
|
18346
18346
|
ze(() => {
|
|
18347
18347
|
let i = [...n.current];
|
|
18348
18348
|
for (let [o, s] of e.entries()) if (n.current[o] !== s) {
|
|
@@ -18703,7 +18703,7 @@ Ua.displayName = "FloatingContext";
|
|
|
18703
18703
|
let em = mt(null);
|
|
18704
18704
|
em.displayName = "PlacementContext";
|
|
18705
18705
|
function zB(t) {
|
|
18706
|
-
return
|
|
18706
|
+
return je(() => t ? typeof t == "string" ? { to: t } : t : null, [t]);
|
|
18707
18707
|
}
|
|
18708
18708
|
function WB() {
|
|
18709
18709
|
return He(Ua).setReference;
|
|
@@ -18714,7 +18714,7 @@ function HB() {
|
|
|
18714
18714
|
}
|
|
18715
18715
|
function UB(t = null) {
|
|
18716
18716
|
t === !1 && (t = null), typeof t == "string" && (t = { to: t });
|
|
18717
|
-
let e = He(em), n =
|
|
18717
|
+
let e = He(em), n = je(() => t, [JSON.stringify(t, (i, o) => {
|
|
18718
18718
|
var s;
|
|
18719
18719
|
return (s = o == null ? void 0 : o.outerHTML) != null ? s : o;
|
|
18720
18720
|
})]);
|
|
@@ -18722,11 +18722,11 @@ function UB(t = null) {
|
|
|
18722
18722
|
e == null || e(n ?? null);
|
|
18723
18723
|
}, [e, n]);
|
|
18724
18724
|
let r = He(Ua);
|
|
18725
|
-
return
|
|
18725
|
+
return je(() => [r.setFloating, t ? r.styles : {}], [r.setFloating, t, r.styles]);
|
|
18726
18726
|
}
|
|
18727
18727
|
let Cy = 4;
|
|
18728
18728
|
function KB({ children: t, enabled: e = !0 }) {
|
|
18729
|
-
let [n, r] =
|
|
18729
|
+
let [n, r] = Le(null), [i, o] = Le(0), s = Te(null), [a, l] = Le(null);
|
|
18730
18730
|
GB(a);
|
|
18731
18731
|
let c = e && n !== null && a !== null, { to: u = "bottom", gap: d = 0, offset: f = 0, padding: p = 0, inner: h } = qB(n, a), [m, g = "center"] = u.split(" ");
|
|
18732
18732
|
ht(() => {
|
|
@@ -18754,7 +18754,7 @@ function KB({ children: t, enabled: e = !0 }) {
|
|
|
18754
18754
|
Object.assign(D.floating.style, { overflow: "auto", maxWidth: `${O}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${A}px)` });
|
|
18755
18755
|
} })].filter(Boolean), whileElementsMounted: sk }), [b = m, w = g] = S.placement.split("-");
|
|
18756
18756
|
m === "selection" && (b = "selection");
|
|
18757
|
-
let x =
|
|
18757
|
+
let x = je(() => ({ anchor: [b, w].filter(Boolean).join(" ") }), [b, w]), E = VB(S, { overflowRef: s, onChange: o }), { getReferenceProps: k, getFloatingProps: C } = BB([E]), T = Ie((O) => {
|
|
18758
18758
|
l(O), v.setFloating(O);
|
|
18759
18759
|
});
|
|
18760
18760
|
return R.createElement(em.Provider, { value: r }, R.createElement(Ua.Provider, { value: { setFloating: T, setReference: v.setReference, styles: y, getReferenceProps: k, getFloatingProps: C, slot: x } }, t));
|
|
@@ -18779,7 +18779,7 @@ function qB(t, e) {
|
|
|
18779
18779
|
return { ...t, gap: o, offset: s, padding: a };
|
|
18780
18780
|
}
|
|
18781
18781
|
function pd(t, e, n = void 0) {
|
|
18782
|
-
let r = Ha(), i =
|
|
18782
|
+
let r = Ha(), i = Ie((l, c) => {
|
|
18783
18783
|
if (l == null) return [n, null];
|
|
18784
18784
|
if (typeof l == "number") return [l, null];
|
|
18785
18785
|
if (typeof l == "string") {
|
|
@@ -18808,7 +18808,7 @@ function pd(t, e, n = void 0) {
|
|
|
18808
18808
|
}];
|
|
18809
18809
|
}
|
|
18810
18810
|
return [n, null];
|
|
18811
|
-
}), o =
|
|
18811
|
+
}), o = je(() => i(t, e)[0], [t, e]), [s = o, a] = Le();
|
|
18812
18812
|
return ht(() => {
|
|
18813
18813
|
let [l, c] = i(t, e);
|
|
18814
18814
|
if (a(l), !!c) return c(a);
|
|
@@ -18835,7 +18835,7 @@ function YB({ children: t, freeze: e }) {
|
|
|
18835
18835
|
return ie.createElement(ie.Fragment, null, n);
|
|
18836
18836
|
}
|
|
18837
18837
|
function zf(t, e) {
|
|
18838
|
-
let [n, r] =
|
|
18838
|
+
let [n, r] = Le(e);
|
|
18839
18839
|
return !t && n !== e && r(e), t ? n : e;
|
|
18840
18840
|
}
|
|
18841
18841
|
let tm = mt(null);
|
|
@@ -18900,7 +18900,7 @@ function Oy(t, e) {
|
|
|
18900
18900
|
}
|
|
18901
18901
|
var nm = ((t) => (t[t.Left = 0] = "Left", t[t.Right = 2] = "Right", t))(nm || {});
|
|
18902
18902
|
function e$(t) {
|
|
18903
|
-
let e =
|
|
18903
|
+
let e = Ie(t), n = Te(!1);
|
|
18904
18904
|
ze(() => (n.current = !1, () => {
|
|
18905
18905
|
n.current = !0, M1(() => {
|
|
18906
18906
|
n.current && e();
|
|
@@ -18923,7 +18923,7 @@ function i$() {
|
|
|
18923
18923
|
return He(r$);
|
|
18924
18924
|
}
|
|
18925
18925
|
function o$(t) {
|
|
18926
|
-
let e = i$(), n = He(Y1), r = pu(t), [i, o] =
|
|
18926
|
+
let e = i$(), n = He(Y1), r = pu(t), [i, o] = Le(() => {
|
|
18927
18927
|
var s;
|
|
18928
18928
|
if (!e && n !== null) return (s = n.current) != null ? s : null;
|
|
18929
18929
|
if (Ui.isServer) return null;
|
|
@@ -18942,7 +18942,7 @@ function o$(t) {
|
|
|
18942
18942
|
let q1 = Pn, s$ = $n(function(t, e) {
|
|
18943
18943
|
let n = t, r = Te(null), i = Dr(w2((d) => {
|
|
18944
18944
|
r.current = d;
|
|
18945
|
-
}), e), o = pu(r), s = o$(r), [a] =
|
|
18945
|
+
}), e), o = pu(r), s = o$(r), [a] = Le(() => {
|
|
18946
18946
|
var d;
|
|
18947
18947
|
return Ui.isServer ? null : (d = o == null ? void 0 : o.createElement("div")) != null ? d : null;
|
|
18948
18948
|
}), l = He(u$), c = n$();
|
|
@@ -19041,7 +19041,7 @@ function Ka(t) {
|
|
|
19041
19041
|
}
|
|
19042
19042
|
let J1 = mt(null);
|
|
19043
19043
|
function b$(t) {
|
|
19044
|
-
let e = gs("VirtualProvider"), { options: n } = e.virtual, [r, i] =
|
|
19044
|
+
let e = gs("VirtualProvider"), { options: n } = e.virtual, [r, i] = je(() => {
|
|
19045
19045
|
let c = e.optionsElement;
|
|
19046
19046
|
if (!c) return [0, 0];
|
|
19047
19047
|
let u = window.getComputedStyle(c);
|
|
@@ -19050,7 +19050,7 @@ function b$(t) {
|
|
|
19050
19050
|
return 40;
|
|
19051
19051
|
}, getScrollElement() {
|
|
19052
19052
|
return e.optionsElement;
|
|
19053
|
-
}, overscan: 12 }), [s, a] =
|
|
19053
|
+
}, overscan: 12 }), [s, a] = Le(0);
|
|
19054
19054
|
ht(() => {
|
|
19055
19055
|
a((c) => c + 1);
|
|
19056
19056
|
}, [n]);
|
|
@@ -19078,7 +19078,7 @@ function x$(t, e) {
|
|
|
19078
19078
|
let w$ = Pn;
|
|
19079
19079
|
function k$(t, e) {
|
|
19080
19080
|
var n, r;
|
|
19081
|
-
let i = Yh(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: f, __demoMode: p = !1, multiple: h = !1, immediate: m = !1, virtual: g = null, nullable: v, ...y } = t, S = d2(s), [b = h ? [] : void 0, w] = u2(o, a, S), [x, E] = Wp(x$, { dataRef: ST(), comboboxState: p ? 0 : 1, isTyping: !1, options: [], virtual: g ? { options: g.options, disabled: (n = g.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: p }), k = Te(!1), C = Te({ static: !1, hold: !1 }), T = H2(u), O =
|
|
19081
|
+
let i = Yh(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: f, __demoMode: p = !1, multiple: h = !1, immediate: m = !1, virtual: g = null, nullable: v, ...y } = t, S = d2(s), [b = h ? [] : void 0, w] = u2(o, a, S), [x, E] = Wp(x$, { dataRef: ST(), comboboxState: p ? 0 : 1, isTyping: !1, options: [], virtual: g ? { options: g.options, disabled: (n = g.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: p }), k = Te(!1), C = Te({ static: !1, hold: !1 }), T = H2(u), O = Ie((G) => g ? u === null ? g.options.indexOf(G) : g.options.findIndex((re) => T(re, G)) : x.options.findIndex((re) => T(re.dataRef.current.value, G))), A = Ae((G) => wr(I.mode, { 1: () => b.some((re) => T(re, G)), 0: () => T(b, G) }), [b]), D = Ie((G) => x.activeOptionIndex === O(G)), I = je(() => ({ ...x, immediate: m, optionsPropsRef: C, value: b, defaultValue: S, disabled: d, mode: h ? 1 : 0, virtual: g ? x.virtual : null, get activeOptionIndex() {
|
|
19082
19082
|
if (k.current && x.activeOptionIndex === null && (g ? g.options.length > 0 : x.options.length > 0)) {
|
|
19083
19083
|
if (g) {
|
|
19084
19084
|
let re = g.options.findIndex((me) => {
|
|
@@ -19100,10 +19100,10 @@ function k$(t, e) {
|
|
|
19100
19100
|
}, [I]);
|
|
19101
19101
|
let B = I.comboboxState === 0;
|
|
19102
19102
|
iB(B, [I.buttonElement, I.inputElement, I.optionsElement], () => U.closeCombobox());
|
|
19103
|
-
let F =
|
|
19103
|
+
let F = je(() => {
|
|
19104
19104
|
var G, re, me;
|
|
19105
19105
|
return { open: I.comboboxState === 0, disabled: d, activeIndex: I.activeOptionIndex, activeOption: I.activeOptionIndex === null ? null : I.virtual ? I.virtual.options[(G = I.activeOptionIndex) != null ? G : 0] : (me = (re = I.options[I.activeOptionIndex]) == null ? void 0 : re.dataRef.current.value) != null ? me : null, value: b };
|
|
19106
|
-
}, [I, d, b]), j =
|
|
19106
|
+
}, [I, d, b]), j = Ie(() => {
|
|
19107
19107
|
if (I.activeOptionIndex !== null) {
|
|
19108
19108
|
if (U.setIsTyping(!1), I.virtual) L(I.virtual.options[I.activeOptionIndex]);
|
|
19109
19109
|
else {
|
|
@@ -19112,28 +19112,28 @@ function k$(t, e) {
|
|
|
19112
19112
|
}
|
|
19113
19113
|
U.goToOption(Tt.Specific, I.activeOptionIndex);
|
|
19114
19114
|
}
|
|
19115
|
-
}), _ =
|
|
19115
|
+
}), _ = Ie(() => {
|
|
19116
19116
|
E({ type: 0 }), k.current = !0;
|
|
19117
|
-
}), V =
|
|
19117
|
+
}), V = Ie(() => {
|
|
19118
19118
|
E({ type: 1 }), k.current = !1, f == null || f();
|
|
19119
|
-
}), M =
|
|
19119
|
+
}), M = Ie((G) => {
|
|
19120
19120
|
E({ type: 3, isTyping: G });
|
|
19121
|
-
}), N =
|
|
19121
|
+
}), N = Ie((G, re, me) => (k.current = !1, G === Tt.Specific ? E({ type: 2, focus: Tt.Specific, idx: re, trigger: me }) : E({ type: 2, focus: G, trigger: me }))), $ = Ie((G, re) => (E({ type: 4, payload: { id: G, dataRef: re } }), () => {
|
|
19122
19122
|
I.isActive(re.current.value) && (k.current = !0), E({ type: 5, id: G });
|
|
19123
|
-
})), L =
|
|
19123
|
+
})), L = Ie((G) => wr(I.mode, { 0() {
|
|
19124
19124
|
return w == null ? void 0 : w(G);
|
|
19125
19125
|
}, 1() {
|
|
19126
19126
|
let re = I.value.slice(), me = re.findIndex((oe) => T(oe, G));
|
|
19127
19127
|
return me === -1 ? re.push(G) : re.splice(me, 1), w == null ? void 0 : w(re);
|
|
19128
|
-
} })), z =
|
|
19128
|
+
} })), z = Ie((G) => {
|
|
19129
19129
|
E({ type: 6, trigger: G });
|
|
19130
|
-
}), K =
|
|
19130
|
+
}), K = Ie((G) => {
|
|
19131
19131
|
E({ type: 8, element: G });
|
|
19132
|
-
}), Y =
|
|
19132
|
+
}), Y = Ie((G) => {
|
|
19133
19133
|
E({ type: 9, element: G });
|
|
19134
|
-
}), Z =
|
|
19134
|
+
}), Z = Ie((G) => {
|
|
19135
19135
|
E({ type: 10, element: G });
|
|
19136
|
-
}), U =
|
|
19136
|
+
}), U = je(() => ({ onChange: L, registerOption: $, goToOption: N, setIsTyping: M, closeCombobox: V, openCombobox: _, setActivationTrigger: z, selectActiveOption: j, setInputElement: K, setButtonElement: Y, setOptionsElement: Z }), []), [X, se] = T2(), ne = e === null ? {} : { ref: e }, H = Ae(() => {
|
|
19137
19137
|
if (S !== void 0) return w == null ? void 0 : w(S);
|
|
19138
19138
|
}, [w, S]), de = Bn();
|
|
19139
19139
|
return ie.createElement(se, { value: X, props: { htmlFor: (r = I.inputElement) == null ? void 0 : r.id }, slot: { open: I.comboboxState === 0, disabled: d } }, ie.createElement(KB, null, ie.createElement(rm.Provider, { value: U }, ie.createElement(ma.Provider, { value: I }, ie.createElement(XB, { value: wr(I.comboboxState, { 0: ha.Open, 1: ha.Closed }) }, c != null && ie.createElement(g2, { disabled: d, data: b != null ? { [c]: b } : {}, form: l, onReset: H }), de({ ourProps: ne, theirProps: y, slot: F, defaultTag: w$, name: "Combobox" }))))));
|
|
@@ -19141,9 +19141,9 @@ function k$(t, e) {
|
|
|
19141
19141
|
let S$ = "input";
|
|
19142
19142
|
function E$(t, e) {
|
|
19143
19143
|
var n, r, i, o, s;
|
|
19144
|
-
let a = gs("Combobox.Input"), l = Ka("Combobox.Input"), c = an(), u = I1(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: f, displayValue: p, disabled: h = a.disabled || !1, autoFocus: m = !1, type: g = "text", ...v } = t, y = Te(null), S = Dr(y, e, WB(), l.setInputElement), b = pu(a.inputElement), w = Ha(), x =
|
|
19144
|
+
let a = gs("Combobox.Input"), l = Ka("Combobox.Input"), c = an(), u = I1(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: f, displayValue: p, disabled: h = a.disabled || !1, autoFocus: m = !1, type: g = "text", ...v } = t, y = Te(null), S = Dr(y, e, WB(), l.setInputElement), b = pu(a.inputElement), w = Ha(), x = Ie(() => {
|
|
19145
19145
|
l.onChange(null), a.optionsElement && (a.optionsElement.scrollTop = 0), l.goToOption(Tt.Nothing);
|
|
19146
|
-
}), E =
|
|
19146
|
+
}), E = je(() => {
|
|
19147
19147
|
var L;
|
|
19148
19148
|
return typeof p == "function" && a.value !== void 0 ? (L = p(a.value)) != null ? L : "" : typeof a.value == "string" ? a.value : "";
|
|
19149
19149
|
}, [a.value, p]);
|
|
@@ -19164,13 +19164,13 @@ function E$(t, e) {
|
|
|
19164
19164
|
K.value = "", K.value = Y, X !== null ? K.setSelectionRange(Z, U, X) : K.setSelectionRange(Z, U);
|
|
19165
19165
|
}
|
|
19166
19166
|
}, [a.comboboxState]);
|
|
19167
|
-
let k = Te(!1), C =
|
|
19167
|
+
let k = Te(!1), C = Ie(() => {
|
|
19168
19168
|
k.current = !0;
|
|
19169
|
-
}), T =
|
|
19169
|
+
}), T = Ie(() => {
|
|
19170
19170
|
w.nextFrame(() => {
|
|
19171
19171
|
k.current = !1;
|
|
19172
19172
|
});
|
|
19173
|
-
}), O =
|
|
19173
|
+
}), O = Ie((L) => {
|
|
19174
19174
|
switch (l.setIsTyping(!0), L.key) {
|
|
19175
19175
|
case tn.Enter:
|
|
19176
19176
|
if (a.comboboxState !== 0 || k.current) return;
|
|
@@ -19203,25 +19203,25 @@ function E$(t, e) {
|
|
|
19203
19203
|
a.mode === 0 && a.activationTrigger !== 1 && l.selectActiveOption(), l.closeCombobox();
|
|
19204
19204
|
break;
|
|
19205
19205
|
}
|
|
19206
|
-
}), A =
|
|
19206
|
+
}), A = Ie((L) => {
|
|
19207
19207
|
f == null || f(L), a.mode === 0 && L.target.value === "" && x(), l.openCombobox();
|
|
19208
|
-
}), D =
|
|
19208
|
+
}), D = Ie((L) => {
|
|
19209
19209
|
var z, K, Y;
|
|
19210
19210
|
let Z = (z = L.relatedTarget) != null ? z : Ti.find((U) => U !== L.currentTarget);
|
|
19211
19211
|
if (!((K = a.optionsElement) != null && K.contains(Z)) && !((Y = a.buttonElement) != null && Y.contains(Z)) && a.comboboxState === 0) return L.preventDefault(), a.mode === 0 && a.value === null && x(), l.closeCombobox();
|
|
19212
|
-
}), I =
|
|
19212
|
+
}), I = Ie((L) => {
|
|
19213
19213
|
var z, K, Y;
|
|
19214
19214
|
let Z = (z = L.relatedTarget) != null ? z : Ti.find((U) => U !== L.currentTarget);
|
|
19215
19215
|
(K = a.buttonElement) != null && K.contains(Z) || (Y = a.optionsElement) != null && Y.contains(Z) || a.disabled || a.immediate && a.comboboxState !== 0 && w.microTask(() => {
|
|
19216
19216
|
Di(() => l.openCombobox()), l.setActivationTrigger(1);
|
|
19217
19217
|
});
|
|
19218
|
-
}), B = fu(), F = k2(), { isFocused: j, focusProps: _ } = O1({ autoFocus: m }), { isHovered: V, hoverProps: M } = T1({ isDisabled: h }), N =
|
|
19218
|
+
}), B = fu(), F = k2(), { isFocused: j, focusProps: _ } = O1({ autoFocus: m }), { isHovered: V, hoverProps: M } = T1({ isDisabled: h }), N = je(() => ({ open: a.comboboxState === 0, disabled: h, hover: V, focus: j, autofocus: m }), [a, V, j, m, h]), $ = Jh({ ref: S, id: d, role: "combobox", type: g, "aria-controls": (n = a.optionsElement) == null ? void 0 : n.id, "aria-expanded": a.comboboxState === 0, "aria-activedescendant": a.activeOptionIndex === null ? void 0 : a.virtual ? (r = a.options.find((L) => !L.dataRef.current.disabled && a.compare(L.dataRef.current.value, a.virtual.options[a.activeOptionIndex]))) == null ? void 0 : r.id : (i = a.options[a.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": B, "aria-describedby": F, "aria-autocomplete": "list", defaultValue: (s = (o = t.defaultValue) != null ? o : a.defaultValue !== void 0 ? p == null ? void 0 : p(a.defaultValue) : null) != null ? s : a.defaultValue, disabled: h || void 0, autoFocus: m, onCompositionStart: C, onCompositionEnd: T, onKeyDown: O, onChange: A, onFocus: I, onBlur: D }, _, M);
|
|
19219
19219
|
return Bn()({ ourProps: $, theirProps: v, slot: N, defaultTag: S$, name: "Combobox.Input" });
|
|
19220
19220
|
}
|
|
19221
19221
|
let C$ = "button";
|
|
19222
19222
|
function T$(t, e) {
|
|
19223
19223
|
var n;
|
|
19224
|
-
let r = gs("Combobox.Button"), i = Ka("Combobox.Button"), o = Dr(e, i.setButtonElement), s = an(), { id: a = `headlessui-combobox-button-${s}`, disabled: l = r.disabled || !1, autoFocus: c = !1, ...u } = t, d = H1(r.inputElement), f =
|
|
19224
|
+
let r = gs("Combobox.Button"), i = Ka("Combobox.Button"), o = Dr(e, i.setButtonElement), s = an(), { id: a = `headlessui-combobox-button-${s}`, disabled: l = r.disabled || !1, autoFocus: c = !1, ...u } = t, d = H1(r.inputElement), f = Ie((E) => {
|
|
19225
19225
|
switch (E.key) {
|
|
19226
19226
|
case tn.Space:
|
|
19227
19227
|
case tn.Enter:
|
|
@@ -19240,9 +19240,9 @@ function T$(t, e) {
|
|
|
19240
19240
|
default:
|
|
19241
19241
|
return;
|
|
19242
19242
|
}
|
|
19243
|
-
}), p =
|
|
19243
|
+
}), p = Ie((E) => {
|
|
19244
19244
|
E.preventDefault(), !b2(E.currentTarget) && (E.button === nm.Left && (r.comboboxState === 0 ? i.closeCombobox() : i.openCombobox()), d());
|
|
19245
|
-
}), h = fu([a]), { isFocusVisible: m, focusProps: g } = O1({ autoFocus: c }), { isHovered: v, hoverProps: y } = T1({ isDisabled: l }), { pressed: S, pressProps: b } = r2({ disabled: l }), w =
|
|
19245
|
+
}), h = fu([a]), { isFocusVisible: m, focusProps: g } = O1({ autoFocus: c }), { isHovered: v, hoverProps: y } = T1({ isDisabled: l }), { pressed: S, pressProps: b } = r2({ disabled: l }), w = je(() => ({ open: r.comboboxState === 0, active: S || r.comboboxState === 0, disabled: l, value: r.value, hover: v, focus: m }), [r, v, m, S, l]), x = Jh({ ref: o, id: a, type: sB(t, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsElement) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": h, disabled: l || void 0, autoFocus: c, onMouseDown: p, onKeyDown: f }, g, y, b);
|
|
19246
19246
|
return Bn()({ ourProps: x, theirProps: u, slot: w, defaultTag: C$, name: "Combobox.Button" });
|
|
19247
19247
|
}
|
|
19248
19248
|
let O$ = "div", M$ = _f.RenderStrategy | _f.Static;
|
|
@@ -19250,7 +19250,7 @@ function P$(t, e) {
|
|
|
19250
19250
|
var n, r, i;
|
|
19251
19251
|
let o = an(), { id: s = `headlessui-combobox-options-${o}`, hold: a = !1, anchor: l, portal: c = !1, modal: u = !0, transition: d = !1, ...f } = t, p = gs("Combobox.Options"), h = Ka("Combobox.Options"), m = zB(l);
|
|
19252
19252
|
m && (c = !0);
|
|
19253
|
-
let [g, v] = UB(m), [y, S] =
|
|
19253
|
+
let [g, v] = UB(m), [y, S] = Le(null), b = HB(), w = Dr(e, m ? g : null, h.setOptionsElement, S), x = pu(p.optionsElement), E = JB(), [k, C] = vB(d, y, E !== null ? (E & ha.Open) === ha.Open : p.comboboxState === 0);
|
|
19254
19254
|
Y2(k, p.inputElement, h.closeCombobox);
|
|
19255
19255
|
let T = p.__demoMode ? !1 : u && p.comboboxState === 0;
|
|
19256
19256
|
fB(T, x);
|
|
@@ -19265,11 +19265,11 @@ function P$(t, e) {
|
|
|
19265
19265
|
}, walk($) {
|
|
19266
19266
|
$.setAttribute("role", "none");
|
|
19267
19267
|
} });
|
|
19268
|
-
let A = fu([(n = p.buttonElement) == null ? void 0 : n.id]), D =
|
|
19268
|
+
let A = fu([(n = p.buttonElement) == null ? void 0 : n.id]), D = je(() => ({ open: p.comboboxState === 0, option: void 0 }), [p.comboboxState]), I = Ie(() => {
|
|
19269
19269
|
h.setActivationTrigger(0);
|
|
19270
|
-
}), B =
|
|
19270
|
+
}), B = Ie(($) => {
|
|
19271
19271
|
$.preventDefault(), h.setActivationTrigger(0);
|
|
19272
|
-
}), F = Jh(m ? b() : {}, { "aria-labelledby": A, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: s, ref: w, style: { ...f.style, ...v, "--input-width": fy(p.inputElement, !0).width, "--button-width": fy(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : I, onMouseDown: B, ...gB(C) }), j = k && p.comboboxState === 1, _ = zf(j, (r = p.virtual) == null ? void 0 : r.options), V = zf(j, p.value), M =
|
|
19272
|
+
}), F = Jh(m ? b() : {}, { "aria-labelledby": A, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: s, ref: w, style: { ...f.style, ...v, "--input-width": fy(p.inputElement, !0).width, "--button-width": fy(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : I, onMouseDown: B, ...gB(C) }), j = k && p.comboboxState === 1, _ = zf(j, (r = p.virtual) == null ? void 0 : r.options), V = zf(j, p.value), M = Ie(($) => p.compare(V, $));
|
|
19273
19273
|
if (p.virtual) {
|
|
19274
19274
|
if (_ === void 0) throw new Error("Missing `options` in virtual mode");
|
|
19275
19275
|
Object.assign(f, { children: ie.createElement(ma.Provider, { value: _ !== p.virtual.options ? { ...p, virtual: { ...p.virtual, options: _ } } : p }, ie.createElement(b$, { slot: D }, f.children)) });
|
|
@@ -19280,7 +19280,7 @@ function P$(t, e) {
|
|
|
19280
19280
|
let A$ = "div";
|
|
19281
19281
|
function D$(t, e) {
|
|
19282
19282
|
var n, r, i, o;
|
|
19283
|
-
let s = gs("Combobox.Option"), a = Ka("Combobox.Option"), l = an(), { id: c = `headlessui-combobox-option-${l}`, value: u, disabled: d = (i = (r = (n = s.virtual) == null ? void 0 : n.disabled) == null ? void 0 : r.call(n, u)) != null ? i : !1, order: f = null, ...p } = t, h = H1(s.inputElement), m = s.virtual ? s.activeOptionIndex === s.calculateIndex(u) : s.activeOptionIndex === null ? !1 : ((o = s.options[s.activeOptionIndex]) == null ? void 0 : o.id) === c, g = s.isSelected(u), v = Te(null), y = po({ disabled: d, value: u, domRef: v, order: f }), S = He(J1), b = Dr(e, v, S ? S.measureElement : null), w =
|
|
19283
|
+
let s = gs("Combobox.Option"), a = Ka("Combobox.Option"), l = an(), { id: c = `headlessui-combobox-option-${l}`, value: u, disabled: d = (i = (r = (n = s.virtual) == null ? void 0 : n.disabled) == null ? void 0 : r.call(n, u)) != null ? i : !1, order: f = null, ...p } = t, h = H1(s.inputElement), m = s.virtual ? s.activeOptionIndex === s.calculateIndex(u) : s.activeOptionIndex === null ? !1 : ((o = s.options[s.activeOptionIndex]) == null ? void 0 : o.id) === c, g = s.isSelected(u), v = Te(null), y = po({ disabled: d, value: u, domRef: v, order: f }), S = He(J1), b = Dr(e, v, S ? S.measureElement : null), w = Ie(() => {
|
|
19284
19284
|
a.setIsTyping(!1), a.onChange(u);
|
|
19285
19285
|
});
|
|
19286
19286
|
ht(() => a.registerOption(c, y), [y, c]);
|
|
@@ -19295,19 +19295,19 @@ function D$(t, e) {
|
|
|
19295
19295
|
(F = (B = v.current) == null ? void 0 : B.scrollIntoView) == null || F.call(B, { block: "nearest" });
|
|
19296
19296
|
});
|
|
19297
19297
|
}, [v, m, s.comboboxState, s.activationTrigger, s.activeOptionIndex]);
|
|
19298
|
-
let E =
|
|
19298
|
+
let E = Ie((B) => {
|
|
19299
19299
|
B.preventDefault(), B.button === nm.Left && (d || (w(), W1() || requestAnimationFrame(() => h()), s.mode === 0 && a.closeCombobox()));
|
|
19300
|
-
}), k =
|
|
19300
|
+
}), k = Ie(() => {
|
|
19301
19301
|
if (d) return a.goToOption(Tt.Nothing);
|
|
19302
19302
|
let B = s.calculateIndex(u);
|
|
19303
19303
|
a.goToOption(Tt.Specific, B);
|
|
19304
|
-
}), C = pB(), T =
|
|
19304
|
+
}), C = pB(), T = Ie((B) => C.update(B)), O = Ie((B) => {
|
|
19305
19305
|
if (!C.wasMoved(B) || d || m) return;
|
|
19306
19306
|
let F = s.calculateIndex(u);
|
|
19307
19307
|
a.goToOption(Tt.Specific, F, 0);
|
|
19308
|
-
}), A =
|
|
19308
|
+
}), A = Ie((B) => {
|
|
19309
19309
|
C.wasMoved(B) && (d || m && (s.optionsPropsRef.current.hold || a.goToOption(Tt.Nothing)));
|
|
19310
|
-
}), D =
|
|
19310
|
+
}), D = je(() => ({ active: m, focus: m, selected: g, disabled: d }), [m, g, d]), I = { id: c, ref: b, role: "option", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onMouseDown: E, onFocus: k, onPointerEnter: T, onMouseEnter: T, onPointerMove: O, onMouseMove: O, onPointerLeave: A, onMouseLeave: A };
|
|
19311
19311
|
return Bn()({ ourProps: I, theirProps: p, slot: D, defaultTag: A$, name: "Combobox.Option" });
|
|
19312
19312
|
}
|
|
19313
19313
|
let R$ = $n(k$), Wf = $n(T$), X1 = $n(E$), N$ = A2, Q1 = $n(P$), Z1 = $n(D$), I$ = Object.assign(R$, { Input: X1, Button: Wf, Label: N$, Options: Q1, Option: Z1 });
|
|
@@ -19321,10 +19321,10 @@ const j$ = ({
|
|
|
19321
19321
|
externalOnInputChange: s,
|
|
19322
19322
|
externalHandlers: a
|
|
19323
19323
|
}) => {
|
|
19324
|
-
const [l, c] =
|
|
19324
|
+
const [l, c] = Le(""), u = (g) => e ? e(g) : g.label, d = (g) => {
|
|
19325
19325
|
const { value: v } = g.target;
|
|
19326
19326
|
c(v);
|
|
19327
|
-
}, f =
|
|
19327
|
+
}, f = je(() => i || !n ? t : t.filter(
|
|
19328
19328
|
(g) => u(g).toLowerCase().includes(o ? o.toLowerCase() : l.toLowerCase())
|
|
19329
19329
|
), [n, t, u, l, o, i]), p = (g) => {
|
|
19330
19330
|
if (g) {
|
|
@@ -19705,9 +19705,9 @@ const iS = lt(
|
|
|
19705
19705
|
iS.displayName = "CheckboxBase";
|
|
19706
19706
|
const oS = lt(
|
|
19707
19707
|
({ defaultOpen: t = !1, value: e, onChange: n, disabled: r, externalHandlers: i, classes: o, ...s }, a) => {
|
|
19708
|
-
const { onChange: l, onFocus: c, ...u } = i || {}, d = Te(null), [f, p] =
|
|
19708
|
+
const { onChange: l, onFocus: c, ...u } = i || {}, d = Te(null), [f, p] = Le(t), h = () => {
|
|
19709
19709
|
p((k) => !k);
|
|
19710
|
-
}, [m, g] =
|
|
19710
|
+
}, [m, g] = Le(/* @__PURE__ */ new Date()), [v, y] = Le(Bl(/* @__PURE__ */ new Date(), Bs));
|
|
19711
19711
|
Wc(d, () => p(!1));
|
|
19712
19712
|
const S = e ? new Date(e) : /* @__PURE__ */ new Date(), b = (k) => {
|
|
19713
19713
|
if (y(k), !/^(\d{2})\.(\d{2})\.(\d{4})$/.test(k))
|
|
@@ -19909,27 +19909,28 @@ const uS = lt(
|
|
|
19909
19909
|
);
|
|
19910
19910
|
uS.displayName = "SwitchBase";
|
|
19911
19911
|
const J$ = lt(
|
|
19912
|
-
({ formatter: t, query: e, value: n,
|
|
19913
|
-
const
|
|
19914
|
-
|
|
19915
|
-
|
|
19916
|
-
}, [n]);
|
|
19917
|
-
const d = u ? u.map(t) : [], f = (h) => {
|
|
19918
|
-
!h || Array.isArray(h) || i && i(r ? r(h) : h.value);
|
|
19919
|
-
}, p = Ne(() => d.find((h) => r ? r(h) : h.value === n), [d, r, n]);
|
|
19912
|
+
({ formatter: t, query: e, value: n, displayValue: r, onChange: i, externalHandlers: o, ...s }, a) => {
|
|
19913
|
+
const l = TT(n || "", 100), { data: c } = e(l), u = c ? c.map(t) : [], d = (f) => {
|
|
19914
|
+
!f || Array.isArray(f) || i && i(r ? r(f) : f.label);
|
|
19915
|
+
};
|
|
19920
19916
|
return /* @__PURE__ */ P.jsx(
|
|
19921
19917
|
Ft.SelectBase,
|
|
19922
19918
|
{
|
|
19923
|
-
...
|
|
19924
|
-
ref:
|
|
19925
|
-
options:
|
|
19919
|
+
...s,
|
|
19920
|
+
ref: a,
|
|
19921
|
+
options: u,
|
|
19926
19922
|
filterDisabled: !0,
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
inputValue: a,
|
|
19923
|
+
inputValue: n,
|
|
19924
|
+
onInputChange: i,
|
|
19930
19925
|
isSearchable: !0,
|
|
19931
19926
|
isMulti: !1,
|
|
19932
|
-
|
|
19927
|
+
displayValue: r,
|
|
19928
|
+
externalHandlers: {
|
|
19929
|
+
onChange: (f) => {
|
|
19930
|
+
d(f), o != null && o.onChange && (o == null || o.onChange(f));
|
|
19931
|
+
},
|
|
19932
|
+
...o
|
|
19933
|
+
}
|
|
19933
19934
|
}
|
|
19934
19935
|
);
|
|
19935
19936
|
}
|
|
@@ -20151,7 +20152,7 @@ function vS(t, e, n, r, i, o) {
|
|
|
20151
20152
|
var s = tV(function(h, m) {
|
|
20152
20153
|
var g, v;
|
|
20153
20154
|
return fS(h) ? (v = "", g = "") : typeof h == "number" || m ? (v = typeof h == "number" ? mS(h) : h, g = r(v)) : (v = i(h, void 0), g = r(v)), { formattedValue: g, numAsString: v };
|
|
20154
|
-
}), a =
|
|
20155
|
+
}), a = Le(function() {
|
|
20155
20156
|
return s(Lo(t) ? e : t, n);
|
|
20156
20157
|
}), l = a[0], c = a[1], u = function(h, m) {
|
|
20157
20158
|
h.formattedValue !== l.formattedValue && c({
|
|
@@ -20161,7 +20162,7 @@ function vS(t, e, n, r, i, o) {
|
|
|
20161
20162
|
}, d = t, f = n;
|
|
20162
20163
|
Lo(t) && (d = l.numAsString, f = !0);
|
|
20163
20164
|
var p = s(d, f);
|
|
20164
|
-
return
|
|
20165
|
+
return je(function() {
|
|
20165
20166
|
c(p);
|
|
20166
20167
|
}, [p.formattedValue]), [l, u];
|
|
20167
20168
|
}
|
|
@@ -20196,7 +20197,7 @@ function fV(t) {
|
|
|
20196
20197
|
S === void 0 && (S = va);
|
|
20197
20198
|
var b = t.isCharacterSame, w = dS(t, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), x = vS(v, l, !!c, s, a, u), E = x[0], k = E.formattedValue, C = E.numAsString, T = x[1], O = Te(), A = Te({ formattedValue: k, numAsString: C }), D = function(oe, le) {
|
|
20198
20199
|
A.current = { formattedValue: oe.formattedValue, numAsString: oe.value }, T(oe, le);
|
|
20199
|
-
}, I =
|
|
20200
|
+
}, I = Le(!1), B = I[0], F = I[1], j = Te(null), _ = Te({
|
|
20200
20201
|
setCaretTimeout: null,
|
|
20201
20202
|
focusTimeout: null
|
|
20202
20203
|
});
|
|
@@ -23976,13 +23977,13 @@ var Qf = {
|
|
|
23976
23977
|
fileRejections: []
|
|
23977
23978
|
};
|
|
23978
23979
|
function iE() {
|
|
23979
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = dt(dt({}, rE), t), n = e.accept, r = e.disabled, i = e.getFilesFromEvent, o = e.maxSize, s = e.minSize, a = e.multiple, l = e.maxFiles, c = e.onDragEnter, u = e.onDragLeave, d = e.onDragOver, f = e.onDrop, p = e.onDropAccepted, h = e.onDropRejected, m = e.onFileDialogCancel, g = e.onFileDialogOpen, v = e.useFsAccessApi, y = e.autoFocus, S = e.preventDropOnDocument, b = e.noClick, w = e.noKeyboard, x = e.noDrag, E = e.noDragEventsBubbling, k = e.onError, C = e.validator, T =
|
|
23980
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = dt(dt({}, rE), t), n = e.accept, r = e.disabled, i = e.getFilesFromEvent, o = e.maxSize, s = e.minSize, a = e.multiple, l = e.maxFiles, c = e.onDragEnter, u = e.onDragLeave, d = e.onDragOver, f = e.onDrop, p = e.onDropAccepted, h = e.onDropRejected, m = e.onFileDialogCancel, g = e.onFileDialogOpen, v = e.useFsAccessApi, y = e.autoFocus, S = e.preventDropOnDocument, b = e.noClick, w = e.noKeyboard, x = e.noDrag, E = e.noDragEventsBubbling, k = e.onError, C = e.validator, T = je(function() {
|
|
23980
23981
|
return Gz(n);
|
|
23981
|
-
}, [n]), O =
|
|
23982
|
+
}, [n]), O = je(function() {
|
|
23982
23983
|
return Kz(n);
|
|
23983
|
-
}, [n]), A =
|
|
23984
|
+
}, [n]), A = je(function() {
|
|
23984
23985
|
return typeof g == "function" ? g : Zy;
|
|
23985
|
-
}, [g]), D =
|
|
23986
|
+
}, [g]), D = je(function() {
|
|
23986
23987
|
return typeof m == "function" ? m : Zy;
|
|
23987
23988
|
}, [m]), I = Te(null), B = Te(null), F = Wp(l3, Qf), j = Ed(F, 2), _ = j[0], V = j[1], M = _.isFocused, N = _.isFileDialogActive, $ = Te(typeof window < "u" && window.isSecureContext && v && Uz()), L = function() {
|
|
23988
23989
|
!$.current && N && setTimeout(function() {
|
|
@@ -24057,7 +24058,7 @@ function iE() {
|
|
|
24057
24058
|
}, [I, u, E]), se = Ae(function(J, Q) {
|
|
24058
24059
|
var fe = [], ye = [];
|
|
24059
24060
|
J.forEach(function(we) {
|
|
24060
|
-
var Ce = QS(we, T),
|
|
24061
|
+
var Ce = QS(we, T), Ne = Ed(Ce, 2), bt = Ne[0], xe = Ne[1], We = ZS(we, s, o), Fe = Ed(We, 2), Dt = Fe[0], St = Fe[1], Xt = C ? C(we) : null;
|
|
24061
24062
|
if (bt && Dt && !Xt)
|
|
24062
24063
|
fe.push(we);
|
|
24063
24064
|
else {
|
|
@@ -24133,13 +24134,13 @@ function iE() {
|
|
|
24133
24134
|
return x ? null : oe(Q);
|
|
24134
24135
|
}, ke = function(Q) {
|
|
24135
24136
|
E && Q.stopPropagation();
|
|
24136
|
-
}, ae =
|
|
24137
|
+
}, ae = je(function() {
|
|
24137
24138
|
return function() {
|
|
24138
|
-
var J = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = J.refKey, fe = Q === void 0 ? "ref" : Q, ye = J.role, we = J.onKeyDown, Ce = J.onFocus,
|
|
24139
|
+
var J = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = J.refKey, fe = Q === void 0 ? "ref" : Q, ye = J.role, we = J.onKeyDown, Ce = J.onFocus, Ne = J.onBlur, bt = J.onClick, xe = J.onDragEnter, We = J.onDragOver, Fe = J.onDragLeave, Dt = J.onDrop, St = tc(J, Qz);
|
|
24139
24140
|
return dt(dt(Xf({
|
|
24140
24141
|
onKeyDown: le(Hn(we, de)),
|
|
24141
24142
|
onFocus: le(Hn(Ce, G)),
|
|
24142
|
-
onBlur: le(Hn(
|
|
24143
|
+
onBlur: le(Hn(Ne, re)),
|
|
24143
24144
|
onClick: oe(Hn(bt, me)),
|
|
24144
24145
|
onDragEnter: ce(Hn(xe, Z)),
|
|
24145
24146
|
onDragOver: ce(Hn(We, U)),
|
|
@@ -24152,9 +24153,9 @@ function iE() {
|
|
|
24152
24153
|
};
|
|
24153
24154
|
}, [I, de, G, re, me, Z, U, X, ne, w, x, r]), q = Ae(function(J) {
|
|
24154
24155
|
J.stopPropagation();
|
|
24155
|
-
}, []), ee =
|
|
24156
|
+
}, []), ee = je(function() {
|
|
24156
24157
|
return function() {
|
|
24157
|
-
var J = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = J.refKey, fe = Q === void 0 ? "ref" : Q, ye = J.onChange, we = J.onClick, Ce = tc(J, Zz),
|
|
24158
|
+
var J = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Q = J.refKey, fe = Q === void 0 ? "ref" : Q, ye = J.onChange, we = J.onClick, Ce = tc(J, Zz), Ne = Xf({
|
|
24158
24159
|
accept: T,
|
|
24159
24160
|
multiple: a,
|
|
24160
24161
|
type: "file",
|
|
@@ -24174,7 +24175,7 @@ function iE() {
|
|
|
24174
24175
|
onClick: oe(Hn(we, q)),
|
|
24175
24176
|
tabIndex: -1
|
|
24176
24177
|
}, fe, B);
|
|
24177
|
-
return dt(dt({},
|
|
24178
|
+
return dt(dt({}, Ne), Ce);
|
|
24178
24179
|
};
|
|
24179
24180
|
}, [B, n, a, ne, r]);
|
|
24180
24181
|
return dt(dt({}, _), {}, {
|
|
@@ -24225,7 +24226,7 @@ function l3(t, e) {
|
|
|
24225
24226
|
function Zy() {
|
|
24226
24227
|
}
|
|
24227
24228
|
const c3 = ({ dropzoneOptions: t, controlledFiles: e = [], onChange: n }) => {
|
|
24228
|
-
const [r, i] =
|
|
24229
|
+
const [r, i] = Le({}), o = (l) => {
|
|
24229
24230
|
const c = e == null ? void 0 : e.filter((u, d) => d !== l);
|
|
24230
24231
|
n && n(c);
|
|
24231
24232
|
}, a = iE({
|
|
@@ -24263,7 +24264,7 @@ const c3 = ({ dropzoneOptions: t, controlledFiles: e = [], onChange: n }) => {
|
|
|
24263
24264
|
});
|
|
24264
24265
|
return { filesStatus: r, removeFile: o, dropzoneState: a };
|
|
24265
24266
|
}, u3 = (t) => {
|
|
24266
|
-
const [e, n] =
|
|
24267
|
+
const [e, n] = Le(!1), r = Ae(() => {
|
|
24267
24268
|
const { current: i } = t, o = !!i && i.scrollWidth > i.clientWidth;
|
|
24268
24269
|
n(o);
|
|
24269
24270
|
}, [t]);
|
|
@@ -24449,8 +24450,8 @@ var lE = R.createContext({}), cE = R.forwardRef((t, e) => {
|
|
|
24449
24450
|
}
|
|
24450
24451
|
Q !== -1 && fe !== -1 && Q !== fe && D.current.setSelectionRange(Q, fe, ye);
|
|
24451
24452
|
}
|
|
24452
|
-
let we = Q !== -1 ? Q : ce, Ce = fe !== -1 ? fe : ke,
|
|
24453
|
-
$(we), z(Ce), F.current.prev = [we, Ce,
|
|
24453
|
+
let we = Q !== -1 ? Q : ce, Ce = fe !== -1 ? fe : ke, Ne = ye ?? ae;
|
|
24454
|
+
$(we), z(Ce), F.current.prev = [we, Ce, Ne];
|
|
24454
24455
|
}
|
|
24455
24456
|
if (document.addEventListener("selectionchange", me, { capture: !0 }), me(), document.activeElement === G && M(!0), !document.getElementById("input-otp-style")) {
|
|
24456
24457
|
let ce = document.createElement("style");
|
|
@@ -25520,9 +25521,9 @@ const kW = ({
|
|
|
25520
25521
|
onMonthChange: s,
|
|
25521
25522
|
...a
|
|
25522
25523
|
}) => {
|
|
25523
|
-
const { onChange: l, onFocus: c, ...u } = i || {}, d = Te(null), { calendar: f, ...p } = e || {}, [h, m] =
|
|
25524
|
+
const { onChange: l, onFocus: c, ...u } = i || {}, d = Te(null), { calendar: f, ...p } = e || {}, [h, m] = Le(!1), g = () => {
|
|
25524
25525
|
m((x) => !x);
|
|
25525
|
-
}, v = wW("single", n), [y, S] =
|
|
25526
|
+
}, v = wW("single", n), [y, S] = Le(db("single", n));
|
|
25526
25527
|
ze(() => {
|
|
25527
25528
|
n && !qr.isStringEmpty(n) && (S(db("single", n)), s && s(new Date(n)));
|
|
25528
25529
|
}, [n]), Wc(d, () => m(!1));
|
|
@@ -25598,7 +25599,7 @@ const kW = ({
|
|
|
25598
25599
|
disabled: n,
|
|
25599
25600
|
rules: r,
|
|
25600
25601
|
shouldUnregister: i
|
|
25601
|
-
}), { value: f, onChange: p, ...h } = u, { error: m, invalid: g } = d, { message: v, container: y, ...S } = l || {}, [b, w] =
|
|
25602
|
+
}), { value: f, onChange: p, ...h } = u, { error: m, invalid: g } = d, { message: v, container: y, ...S } = l || {}, [b, w] = Le(/* @__PURE__ */ new Date());
|
|
25602
25603
|
return /* @__PURE__ */ P.jsxs("div", { className: te("w-full", y), children: [
|
|
25603
25604
|
/* @__PURE__ */ P.jsx(
|
|
25604
25605
|
kW,
|
|
@@ -38188,7 +38189,7 @@ class j6 {
|
|
|
38188
38189
|
}
|
|
38189
38190
|
function L6(t) {
|
|
38190
38191
|
var e;
|
|
38191
|
-
const [n] =
|
|
38192
|
+
const [n] = Le(() => new j6(t.editor)), r = N6.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : A6);
|
|
38192
38193
|
return I6(() => n.watch(t.editor), [t.editor, n]), z0(r), r;
|
|
38193
38194
|
}
|
|
38194
38195
|
const S0 = process.env.NODE_ENV !== "production", Rp = typeof window > "u", F6 = Rp || !!(typeof window < "u" && window.next);
|
|
@@ -38332,7 +38333,7 @@ class Bm {
|
|
|
38332
38333
|
function _6(t = {}, e = []) {
|
|
38333
38334
|
const n = Te(t);
|
|
38334
38335
|
n.current = t;
|
|
38335
|
-
const [r] =
|
|
38336
|
+
const [r] = Le(() => new Bm(n)), i = Au.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
|
38336
38337
|
return z0(i), ze(r.onRender(e)), L6({
|
|
38337
38338
|
editor: i,
|
|
38338
38339
|
selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
|
|
@@ -41508,7 +41509,7 @@ const _9 = ({
|
|
|
41508
41509
|
const k = E.map((C) => a ? a(C) : C.value);
|
|
41509
41510
|
S(k);
|
|
41510
41511
|
} else F9(E) && S(a ? a(E) : E.value);
|
|
41511
|
-
}, x =
|
|
41512
|
+
}, x = je(() => Array.isArray(y) ? l.filter((E) => y.includes(a ? a(E) : E.value)) : l.find((E) => (a ? a(E) : E.value) === y), [l, a, y]);
|
|
41512
41513
|
return /* @__PURE__ */ P.jsxs("div", { className: te("w-full items-start gap-y-2", m), children: [
|
|
41513
41514
|
/* @__PURE__ */ P.jsx(
|
|
41514
41515
|
Ft.SelectBase,
|
|
@@ -41782,4 +41783,4 @@ export {
|
|
|
41782
41783
|
g1 as w,
|
|
41783
41784
|
sy as x
|
|
41784
41785
|
};
|
|
41785
|
-
//# sourceMappingURL=index-
|
|
41786
|
+
//# sourceMappingURL=index-MT92CfvO.js.map
|