@danxbot/ui 18.1.0 → 18.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +804 -798
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Button.d.ts +16 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -524,7 +524,7 @@ const T2 = (e, t) => {
|
|
|
524
524
|
"left-bottom"
|
|
525
525
|
], E = () => [...C(), je, Be], S = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], k = () => [je, Be, c], R = () => [fo, "full", "auto", ...k()], M = () => [Er, "none", "subgrid", je, Be], T = () => ["auto", {
|
|
526
526
|
span: ["full", Er, je, Be]
|
|
527
|
-
}, Er, je, Be],
|
|
527
|
+
}, Er, je, Be], A = () => [Er, "auto", je, Be], _ = () => ["auto", "min", "max", "fr", je, Be], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...k()], z = () => [fo, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], V = () => [fo, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...k()], H = () => [fo, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...k()], P = () => [e, je, Be], L = () => [...C(), Yx, qx, {
|
|
528
528
|
position: [je, Be]
|
|
529
529
|
}], $ = () => ["no-repeat", {
|
|
530
530
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -902,14 +902,14 @@ const T2 = (e, t) => {
|
|
|
902
902
|
* @see https://tailwindcss.com/docs/grid-column
|
|
903
903
|
*/
|
|
904
904
|
"col-start": [{
|
|
905
|
-
"col-start":
|
|
905
|
+
"col-start": A()
|
|
906
906
|
}],
|
|
907
907
|
/**
|
|
908
908
|
* Grid Column End
|
|
909
909
|
* @see https://tailwindcss.com/docs/grid-column
|
|
910
910
|
*/
|
|
911
911
|
"col-end": [{
|
|
912
|
-
"col-end":
|
|
912
|
+
"col-end": A()
|
|
913
913
|
}],
|
|
914
914
|
/**
|
|
915
915
|
* Grid Template Rows
|
|
@@ -930,14 +930,14 @@ const T2 = (e, t) => {
|
|
|
930
930
|
* @see https://tailwindcss.com/docs/grid-row
|
|
931
931
|
*/
|
|
932
932
|
"row-start": [{
|
|
933
|
-
"row-start":
|
|
933
|
+
"row-start": A()
|
|
934
934
|
}],
|
|
935
935
|
/**
|
|
936
936
|
* Grid Row End
|
|
937
937
|
* @see https://tailwindcss.com/docs/grid-row
|
|
938
938
|
*/
|
|
939
939
|
"row-end": [{
|
|
940
|
-
"row-end":
|
|
940
|
+
"row-end": A()
|
|
941
941
|
}],
|
|
942
942
|
/**
|
|
943
943
|
* Grid Auto Flow
|
|
@@ -993,14 +993,14 @@ const T2 = (e, t) => {
|
|
|
993
993
|
* @see https://tailwindcss.com/docs/justify-items
|
|
994
994
|
*/
|
|
995
995
|
"justify-items": [{
|
|
996
|
-
"justify-items": [...
|
|
996
|
+
"justify-items": [...O(), "normal"]
|
|
997
997
|
}],
|
|
998
998
|
/**
|
|
999
999
|
* Justify Self
|
|
1000
1000
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1001
1001
|
*/
|
|
1002
1002
|
"justify-self": [{
|
|
1003
|
-
"justify-self": ["auto", ...
|
|
1003
|
+
"justify-self": ["auto", ...O()]
|
|
1004
1004
|
}],
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Align Content
|
|
@@ -1014,7 +1014,7 @@ const T2 = (e, t) => {
|
|
|
1014
1014
|
* @see https://tailwindcss.com/docs/align-items
|
|
1015
1015
|
*/
|
|
1016
1016
|
"align-items": [{
|
|
1017
|
-
items: [...
|
|
1017
|
+
items: [...O(), {
|
|
1018
1018
|
baseline: ["", "last"]
|
|
1019
1019
|
}]
|
|
1020
1020
|
}],
|
|
@@ -1023,7 +1023,7 @@ const T2 = (e, t) => {
|
|
|
1023
1023
|
* @see https://tailwindcss.com/docs/align-self
|
|
1024
1024
|
*/
|
|
1025
1025
|
"align-self": [{
|
|
1026
|
-
self: ["auto", ...
|
|
1026
|
+
self: ["auto", ...O(), {
|
|
1027
1027
|
baseline: ["", "last"]
|
|
1028
1028
|
}]
|
|
1029
1029
|
}],
|
|
@@ -1039,14 +1039,14 @@ const T2 = (e, t) => {
|
|
|
1039
1039
|
* @see https://tailwindcss.com/docs/place-items
|
|
1040
1040
|
*/
|
|
1041
1041
|
"place-items": [{
|
|
1042
|
-
"place-items": [...
|
|
1042
|
+
"place-items": [...O(), "baseline"]
|
|
1043
1043
|
}],
|
|
1044
1044
|
/**
|
|
1045
1045
|
* Place Self
|
|
1046
1046
|
* @see https://tailwindcss.com/docs/place-self
|
|
1047
1047
|
*/
|
|
1048
1048
|
"place-self": [{
|
|
1049
|
-
"place-self": ["auto", ...
|
|
1049
|
+
"place-self": ["auto", ...O()]
|
|
1050
1050
|
}],
|
|
1051
1051
|
// Spacing
|
|
1052
1052
|
/**
|
|
@@ -4240,8 +4240,8 @@ var kn = QP(), JP = (e) => {
|
|
|
4240
4240
|
return hf;
|
|
4241
4241
|
let R = !!k, M;
|
|
4242
4242
|
if (R) {
|
|
4243
|
-
const
|
|
4244
|
-
M = r(
|
|
4243
|
+
const O = N.substring(0, k);
|
|
4244
|
+
M = r(O);
|
|
4245
4245
|
const D = M && n[M] ? r(N) : void 0;
|
|
4246
4246
|
D && D !== M && (M = D, R = !1);
|
|
4247
4247
|
} else
|
|
@@ -4251,12 +4251,12 @@ var kn = QP(), JP = (e) => {
|
|
|
4251
4251
|
return hf;
|
|
4252
4252
|
R = !1;
|
|
4253
4253
|
}
|
|
4254
|
-
const T = E.length === 0 ? "" : E.length === 1 ? E[0] : t(E).join(":"),
|
|
4255
|
-
for (let
|
|
4256
|
-
F.push(g(
|
|
4254
|
+
const T = E.length === 0 ? "" : E.length === 1 ? E[0] : t(E).join(":"), A = S ? T + OO : T, _ = o(M, R), F = [];
|
|
4255
|
+
for (let O = 0; O < _.length; O++)
|
|
4256
|
+
F.push(g(A + _[O]));
|
|
4257
4257
|
return {
|
|
4258
4258
|
isExternal: !1,
|
|
4259
|
-
classId: g(
|
|
4259
|
+
classId: g(A + M),
|
|
4260
4260
|
conflictIds: F
|
|
4261
4261
|
};
|
|
4262
4262
|
}, x = (v) => {
|
|
@@ -4285,20 +4285,20 @@ var kn = QP(), JP = (e) => {
|
|
|
4285
4285
|
for (let M = E - 1; M >= 0; M -= 1) {
|
|
4286
4286
|
const T = C[M];
|
|
4287
4287
|
k += T.length;
|
|
4288
|
-
const
|
|
4289
|
-
if (
|
|
4288
|
+
const A = x(T);
|
|
4289
|
+
if (A.isExternal) {
|
|
4290
4290
|
u[M] = 1;
|
|
4291
4291
|
continue;
|
|
4292
4292
|
}
|
|
4293
|
-
const _ =
|
|
4293
|
+
const _ = A.classId;
|
|
4294
4294
|
if (c[_] === S) {
|
|
4295
4295
|
u[M] = 0, N = !0;
|
|
4296
4296
|
continue;
|
|
4297
4297
|
}
|
|
4298
4298
|
c[_] = S;
|
|
4299
|
-
const F =
|
|
4300
|
-
for (let
|
|
4301
|
-
c[F[
|
|
4299
|
+
const F = A.conflictIds;
|
|
4300
|
+
for (let O = 0; O < F.length; O++)
|
|
4301
|
+
c[F[O]] = S;
|
|
4302
4302
|
u[M] = 1;
|
|
4303
4303
|
}
|
|
4304
4304
|
if (!N && !p && v.length === k + E - 1)
|
|
@@ -4361,7 +4361,7 @@ var kn = QP(), JP = (e) => {
|
|
|
4361
4361
|
Sr,
|
|
4362
4362
|
Ge,
|
|
4363
4363
|
He
|
|
4364
|
-
],
|
|
4364
|
+
], A = () => [Sr, "auto", Ge, He], _ = () => ["auto", "min", "max", "fr", Ge, He], F = () => [
|
|
4365
4365
|
"start",
|
|
4366
4366
|
"end",
|
|
4367
4367
|
"center",
|
|
@@ -4372,7 +4372,7 @@ var kn = QP(), JP = (e) => {
|
|
|
4372
4372
|
"baseline",
|
|
4373
4373
|
"center-safe",
|
|
4374
4374
|
"end-safe"
|
|
4375
|
-
],
|
|
4375
|
+
], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...k()], z = () => [
|
|
4376
4376
|
po,
|
|
4377
4377
|
"auto",
|
|
4378
4378
|
"full",
|
|
@@ -4791,12 +4791,12 @@ var kn = QP(), JP = (e) => {
|
|
|
4791
4791
|
* Grid Column Start
|
|
4792
4792
|
* @see https://tailwindcss.com/docs/grid-column
|
|
4793
4793
|
*/
|
|
4794
|
-
"col-start": [{ "col-start":
|
|
4794
|
+
"col-start": [{ "col-start": A() }],
|
|
4795
4795
|
/**
|
|
4796
4796
|
* Grid Column End
|
|
4797
4797
|
* @see https://tailwindcss.com/docs/grid-column
|
|
4798
4798
|
*/
|
|
4799
|
-
"col-end": [{ "col-end":
|
|
4799
|
+
"col-end": [{ "col-end": A() }],
|
|
4800
4800
|
/**
|
|
4801
4801
|
* Grid Template Rows
|
|
4802
4802
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
@@ -4811,12 +4811,12 @@ var kn = QP(), JP = (e) => {
|
|
|
4811
4811
|
* Grid Row Start
|
|
4812
4812
|
* @see https://tailwindcss.com/docs/grid-row
|
|
4813
4813
|
*/
|
|
4814
|
-
"row-start": [{ "row-start":
|
|
4814
|
+
"row-start": [{ "row-start": A() }],
|
|
4815
4815
|
/**
|
|
4816
4816
|
* Grid Row End
|
|
4817
4817
|
* @see https://tailwindcss.com/docs/grid-row
|
|
4818
4818
|
*/
|
|
4819
|
-
"row-end": [{ "row-end":
|
|
4819
|
+
"row-end": [{ "row-end": A() }],
|
|
4820
4820
|
/**
|
|
4821
4821
|
* Grid Auto Flow
|
|
4822
4822
|
* @see https://tailwindcss.com/docs/grid-auto-flow
|
|
@@ -4856,12 +4856,12 @@ var kn = QP(), JP = (e) => {
|
|
|
4856
4856
|
* Justify Items
|
|
4857
4857
|
* @see https://tailwindcss.com/docs/justify-items
|
|
4858
4858
|
*/
|
|
4859
|
-
"justify-items": [{ "justify-items": [...
|
|
4859
|
+
"justify-items": [{ "justify-items": [...O(), "normal"] }],
|
|
4860
4860
|
/**
|
|
4861
4861
|
* Justify Self
|
|
4862
4862
|
* @see https://tailwindcss.com/docs/justify-self
|
|
4863
4863
|
*/
|
|
4864
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
4864
|
+
"justify-self": [{ "justify-self": ["auto", ...O()] }],
|
|
4865
4865
|
/**
|
|
4866
4866
|
* Align Content
|
|
4867
4867
|
* @see https://tailwindcss.com/docs/align-content
|
|
@@ -4871,12 +4871,12 @@ var kn = QP(), JP = (e) => {
|
|
|
4871
4871
|
* Align Items
|
|
4872
4872
|
* @see https://tailwindcss.com/docs/align-items
|
|
4873
4873
|
*/
|
|
4874
|
-
"align-items": [{ items: [...
|
|
4874
|
+
"align-items": [{ items: [...O(), { baseline: ["", "last"] }] }],
|
|
4875
4875
|
/**
|
|
4876
4876
|
* Align Self
|
|
4877
4877
|
* @see https://tailwindcss.com/docs/align-self
|
|
4878
4878
|
*/
|
|
4879
|
-
"align-self": [{ self: ["auto", ...
|
|
4879
|
+
"align-self": [{ self: ["auto", ...O(), { baseline: ["", "last"] }] }],
|
|
4880
4880
|
/**
|
|
4881
4881
|
* Place Content
|
|
4882
4882
|
* @see https://tailwindcss.com/docs/place-content
|
|
@@ -4886,12 +4886,12 @@ var kn = QP(), JP = (e) => {
|
|
|
4886
4886
|
* Place Items
|
|
4887
4887
|
* @see https://tailwindcss.com/docs/place-items
|
|
4888
4888
|
*/
|
|
4889
|
-
"place-items": [{ "place-items": [...
|
|
4889
|
+
"place-items": [{ "place-items": [...O(), "baseline"] }],
|
|
4890
4890
|
/**
|
|
4891
4891
|
* Place Self
|
|
4892
4892
|
* @see https://tailwindcss.com/docs/place-self
|
|
4893
4893
|
*/
|
|
4894
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
4894
|
+
"place-self": [{ "place-self": ["auto", ...O()] }],
|
|
4895
4895
|
// Spacing
|
|
4896
4896
|
/**
|
|
4897
4897
|
* Padding
|
|
@@ -7532,12 +7532,12 @@ function uD(e, {
|
|
|
7532
7532
|
let b = !1, x = 0;
|
|
7533
7533
|
{
|
|
7534
7534
|
let R = null, M = -1;
|
|
7535
|
-
e.forEach((T,
|
|
7535
|
+
e.forEach((T, A) => {
|
|
7536
7536
|
if (T == null)
|
|
7537
7537
|
return;
|
|
7538
7538
|
x += 1;
|
|
7539
7539
|
const _ = T.closest('[role="row"]');
|
|
7540
|
-
_ && (b = !0), (_ !== R || M === -1) && (R = _, M += 1, m[M] = []), m[M].push(
|
|
7540
|
+
_ && (b = !0), (_ !== R || M === -1) && (R = _, M += 1, m[M] = []), m[M].push(A), g[A] = M;
|
|
7541
7541
|
});
|
|
7542
7542
|
}
|
|
7543
7543
|
let w = !1, v = 0;
|
|
@@ -7552,8 +7552,8 @@ function uD(e, {
|
|
|
7552
7552
|
const M = g[u];
|
|
7553
7553
|
if (M == null)
|
|
7554
7554
|
return;
|
|
7555
|
-
const T = m[M].indexOf(u),
|
|
7556
|
-
for (let _ = M +
|
|
7555
|
+
const T = m[M].indexOf(u), A = R === "up" ? -1 : 1;
|
|
7556
|
+
for (let _ = M + A, F = 0; F < m.length; F += 1, _ += A) {
|
|
7557
7557
|
if (_ < 0 || _ >= m.length) {
|
|
7558
7558
|
if (!r || C)
|
|
7559
7559
|
return;
|
|
@@ -7562,9 +7562,9 @@ function uD(e, {
|
|
|
7562
7562
|
_ = g[V] ?? _;
|
|
7563
7563
|
}
|
|
7564
7564
|
}
|
|
7565
|
-
const
|
|
7566
|
-
for (let D = Math.min(T,
|
|
7567
|
-
const z =
|
|
7565
|
+
const O = m[_];
|
|
7566
|
+
for (let D = Math.min(T, O.length - 1); D >= 0; D -= 1) {
|
|
7567
|
+
const z = O[D];
|
|
7568
7568
|
if (!ni(e, z, a))
|
|
7569
7569
|
return z;
|
|
7570
7570
|
}
|
|
@@ -7572,12 +7572,12 @@ function uD(e, {
|
|
|
7572
7572
|
}, N = (R) => {
|
|
7573
7573
|
if (!C || u === -1)
|
|
7574
7574
|
return;
|
|
7575
|
-
const M = u % E, T = R === "up" ? -E : E,
|
|
7576
|
-
for (let F = u - M + T,
|
|
7575
|
+
const M = u % E, T = R === "up" ? -E : E, A = l - l % E, _ = Qo(l / E) + 1;
|
|
7576
|
+
for (let F = u - M + T, O = 0; O < _; O += 1, F += T) {
|
|
7577
7577
|
if (F < 0 || F > l) {
|
|
7578
7578
|
if (!r)
|
|
7579
7579
|
return;
|
|
7580
|
-
F = F < 0 ?
|
|
7580
|
+
F = F < 0 ? A : 0;
|
|
7581
7581
|
}
|
|
7582
7582
|
const D = Math.min(F + E - 1, l);
|
|
7583
7583
|
for (let z = Math.min(F + M, D); z >= F; z -= 1)
|
|
@@ -8161,7 +8161,7 @@ function _a(e) {
|
|
|
8161
8161
|
} = e, g = "rootStore" in t ? t.rootStore : t, b = g.useState("open"), x = g.useState("domReferenceElement"), w = g.useState("floatingElement"), {
|
|
8162
8162
|
events: v,
|
|
8163
8163
|
dataRef: C
|
|
8164
|
-
} = g.context, E = ge(() => C.current.floatingContext?.nodeId), S = o === !1, N = Dp(x) && S, k = Ot(o), R = Ot(s), M = Ot(l), T = Ot(b),
|
|
8164
|
+
} = g.context, E = ge(() => C.current.floatingContext?.nodeId), S = o === !1, N = Dp(x) && S, k = Ot(o), R = Ot(s), M = Ot(l), T = Ot(b), A = $o(h), _ = hC(), F = y.useRef(!1), O = y.useRef(!1), D = y.useRef(!1), z = y.useRef(null), V = y.useRef(""), H = y.useRef(""), P = y.useRef(null), L = y.useRef(null), $ = bn(P, f, _?.beforeInsideRef), U = bn(L, _?.afterInsideRef), G = Nt(), Y = Nt(), W = us(), X = _ != null, K = Oc(w), j = ge((te = K) => te ? Da(te) : []), Z = ge(() => m?.().filter((te) => te != null) ?? []);
|
|
8165
8165
|
y.useEffect(() => {
|
|
8166
8166
|
if (r || !a)
|
|
8167
8167
|
return;
|
|
@@ -8179,8 +8179,8 @@ function _a(e) {
|
|
|
8179
8179
|
}
|
|
8180
8180
|
function J(fe) {
|
|
8181
8181
|
const pe = Et(fe), ce = Z(), le = Oe(w, pe) || Oe(x, pe) || Oe(_?.portalNode, pe) || ce.some((ie) => ie === pe || Oe(ie, pe));
|
|
8182
|
-
D.current = !le, H.current = fe.pointerType || "keyboard", pe?.closest(`[${fm}]`) && (
|
|
8183
|
-
|
|
8182
|
+
D.current = !le, H.current = fe.pointerType || "keyboard", pe?.closest(`[${fm}]`) && (O.current = !0, Y.start(0, () => {
|
|
8183
|
+
O.current = !1;
|
|
8184
8184
|
}));
|
|
8185
8185
|
}
|
|
8186
8186
|
function se() {
|
|
@@ -8200,8 +8200,8 @@ function _a(e) {
|
|
|
8200
8200
|
return;
|
|
8201
8201
|
const te = Ze(K);
|
|
8202
8202
|
function q() {
|
|
8203
|
-
|
|
8204
|
-
|
|
8203
|
+
O.current = !0, Y.start(0, () => {
|
|
8204
|
+
O.current = !1;
|
|
8205
8205
|
});
|
|
8206
8206
|
}
|
|
8207
8207
|
function J(ce) {
|
|
@@ -8211,7 +8211,7 @@ function _a(e) {
|
|
|
8211
8211
|
function se(ce) {
|
|
8212
8212
|
const le = ce.relatedTarget, ie = ce.currentTarget, he = Et(ce);
|
|
8213
8213
|
a && le == null && he != null && Oe(w, he) && Mv(he), queueMicrotask(() => {
|
|
8214
|
-
const we = E(), oe = g.context.triggerElements, ee = Z(), de = le?.hasAttribute(fa("focus-guard")) && [P.current, L.current, _?.beforeInsideRef.current, _?.afterInsideRef.current, _?.beforeOutsideRef.current, _?.afterOutsideRef.current, Hr(p), Hr(u)].includes(le), xe = !(Oe(x, le) || Oe(w, le) || Oe(le, w) || Oe(_?.portalNode, le) || ee.some((Q) => Q === le || Oe(Q, le)) || oe.hasMatchingElement((Q) => Oe(Q, le)) || de ||
|
|
8214
|
+
const we = E(), oe = g.context.triggerElements, ee = Z(), de = le?.hasAttribute(fa("focus-guard")) && [P.current, L.current, _?.beforeInsideRef.current, _?.afterInsideRef.current, _?.beforeOutsideRef.current, _?.afterOutsideRef.current, Hr(p), Hr(u)].includes(le), xe = !(Oe(x, le) || Oe(w, le) || Oe(le, w) || Oe(_?.portalNode, le) || ee.some((Q) => Q === le || Oe(Q, le)) || oe.hasMatchingElement((Q) => Oe(Q, le)) || de || A && (Io(A.nodesRef.current, we).find((Q) => Oe(Q.context?.elements.floating, le) || Oe(Q.context?.elements.domReference, le)) || yv(A.nodesRef.current, we).find((Q) => [Q.context?.elements.floating, Oc(Q.context?.elements.floating)].includes(le) || Q.context?.elements.domReference === le)));
|
|
8215
8215
|
if (ie === x && K && Pv(K), i && ie !== x && !zu(he) && $t(te) === te.body) {
|
|
8216
8216
|
if (wt(K) && (K.focus(), i === "popup")) {
|
|
8217
8217
|
W.request(() => {
|
|
@@ -8226,7 +8226,7 @@ function _a(e) {
|
|
|
8226
8226
|
C.current.insideReactTree = !1;
|
|
8227
8227
|
return;
|
|
8228
8228
|
}
|
|
8229
|
-
(N || !a) && le && xe && !
|
|
8229
|
+
(N || !a) && le && xe && !O.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
8230
8230
|
// For an "untrapped" typeable combobox (input role=combobox with
|
|
8231
8231
|
// initialFocus=false), re-opening the popup and tabbing out should still close it even
|
|
8232
8232
|
// when the previously focused element (e.g. the next tabbable outside the popup) is
|
|
@@ -8244,17 +8244,17 @@ function _a(e) {
|
|
|
8244
8244
|
const pe = wt(x) ? x : null;
|
|
8245
8245
|
if (!(!w && !pe))
|
|
8246
8246
|
return rr(pe && et(pe, "focusout", se), pe && et(pe, "pointerdown", q), w && et(w, "focusin", J), w && et(w, "focusout", se), w && _ && et(w, "focusout", fe, !0));
|
|
8247
|
-
}, [r, x, w, K, a,
|
|
8247
|
+
}, [r, x, w, K, a, A, _, g, c, i, j, N, E, C, G, Y, W, u, p, Z]), y.useEffect(() => {
|
|
8248
8248
|
if (r || !w || !b)
|
|
8249
8249
|
return;
|
|
8250
|
-
const te = Array.from(_?.portalNode?.querySelectorAll(`[${fa("portal")}]`) || []), J = (
|
|
8250
|
+
const te = Array.from(_?.portalNode?.querySelectorAll(`[${fa("portal")}]`) || []), J = (A ? yv(A.nodesRef.current, E()) : []).find((ie) => Dp(ie.context?.elements.domReference || null))?.context?.elements.domReference, fe = [...[w, ...te, P.current, L.current, _?.beforeOutsideRef.current, _?.afterOutsideRef.current, ...Z()], J, Hr(p), Hr(u), N ? x : null].filter((ie) => ie != null), pe = kv(fe, {
|
|
8251
8251
|
ariaHidden: a || N,
|
|
8252
8252
|
mark: !1
|
|
8253
8253
|
}), ce = [w, ...te].filter((ie) => ie != null), le = kv(ce);
|
|
8254
8254
|
return () => {
|
|
8255
8255
|
le(), pe();
|
|
8256
8256
|
};
|
|
8257
|
-
}, [b, r, x, w, a, _, N,
|
|
8257
|
+
}, [b, r, x, w, a, _, N, A, E, u, p, Z]), ye(() => {
|
|
8258
8258
|
if (!b || r || !wt(K))
|
|
8259
8259
|
return;
|
|
8260
8260
|
V.current = "", H.current = "";
|
|
@@ -8313,7 +8313,7 @@ function _a(e) {
|
|
|
8313
8313
|
}
|
|
8314
8314
|
return () => {
|
|
8315
8315
|
v.off("openchange", se);
|
|
8316
|
-
const pe = $t(te), ce = Z(), le = Oe(w, pe) || ce.some((oe) => oe === pe || Oe(oe, pe)) ||
|
|
8316
|
+
const pe = $t(te), ce = Z(), le = Oe(w, pe) || ce.some((oe) => oe === pe || Oe(oe, pe)) || A && Io(A.nodesRef.current, E(), !1).some((oe) => Oe(oe.context?.elements.floating, pe)), ie = R.current, he = V.current, we = fe(he);
|
|
8317
8317
|
queueMicrotask(() => {
|
|
8318
8318
|
const oe = OD(we), ee = typeof ie != "boolean";
|
|
8319
8319
|
if (ie && !F.current && wt(oe) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
@@ -8328,7 +8328,7 @@ function _a(e) {
|
|
|
8328
8328
|
F.current = !1;
|
|
8329
8329
|
});
|
|
8330
8330
|
};
|
|
8331
|
-
}, [r, w, K, R, M, v,
|
|
8331
|
+
}, [r, w, K, R, M, v, A, x, E, Z]), ye(() => {
|
|
8332
8332
|
if (!ar || b || !w)
|
|
8333
8333
|
return;
|
|
8334
8334
|
const te = $t(Ze(w));
|
|
@@ -8537,12 +8537,12 @@ function mi(e, t = {}) {
|
|
|
8537
8537
|
} = l.context, h = $o(c), m = ge(typeof o == "function" ? o : () => !1), g = typeof o == "function" ? m : o, b = g !== !1, x = ge(() => s), {
|
|
8538
8538
|
escapeKey: w,
|
|
8539
8539
|
outsidePress: v
|
|
8540
|
-
} = FD(a), C = y.useRef(!1), E = y.useRef(!1), S = y.useRef(!1), N = y.useRef(!1), k = y.useRef(""), R = y.useRef(null), M = Nt(), T = Nt(),
|
|
8540
|
+
} = FD(a), C = y.useRef(!1), E = y.useRef(!1), S = y.useRef(!1), N = y.useRef(!1), k = y.useRef(""), R = y.useRef(null), M = Nt(), T = Nt(), A = ge(() => {
|
|
8541
8541
|
T.clear(), f.current.insideReactTree = !1;
|
|
8542
8542
|
}), _ = ge(($) => {
|
|
8543
8543
|
const U = f.current.floatingContext?.nodeId;
|
|
8544
8544
|
return (h ? Io(h.nodesRef.current, U) : []).some((Y) => Y.context?.open && !Y.context.dataRef.current[$]);
|
|
8545
|
-
}), F = ge(($) => xf($, l.select("floatingElement")) || xf($, l.select("domReferenceElement"))),
|
|
8545
|
+
}), F = ge(($) => xf($, l.select("floatingElement")) || xf($, l.select("domReferenceElement"))), O = ge(($) => {
|
|
8546
8546
|
i() && l.setOpen(!1, Se(_r, $.nativeEvent));
|
|
8547
8547
|
}), D = ge(($) => {
|
|
8548
8548
|
if (!u || !n || !r || $.key !== "Escape" || N.current || !w && _("__escapeKeyBubbles"))
|
|
@@ -8550,7 +8550,7 @@ function mi(e, t = {}) {
|
|
|
8550
8550
|
const U = DA($) ? $.nativeEvent : $, G = Se(xs, U);
|
|
8551
8551
|
l.setOpen(!1, G), G.isCanceled || $.preventDefault(), !w && !G.isPropagationAllowed && $.stopPropagation();
|
|
8552
8552
|
}), z = ge(() => {
|
|
8553
|
-
f.current.insideReactTree = !0, T.start(0,
|
|
8553
|
+
f.current.insideReactTree = !0, T.start(0, A);
|
|
8554
8554
|
}), V = ge(($) => {
|
|
8555
8555
|
if (!u || !n || $.button !== 0)
|
|
8556
8556
|
return;
|
|
@@ -8561,7 +8561,7 @@ function mi(e, t = {}) {
|
|
|
8561
8561
|
});
|
|
8562
8562
|
y.useEffect(() => {
|
|
8563
8563
|
if (!u || !n)
|
|
8564
|
-
return
|
|
8564
|
+
return A;
|
|
8565
8565
|
f.current.__escapeKeyBubbles = w, f.current.__outsidePressBubbles = v;
|
|
8566
8566
|
const $ = new Mn(), U = new Mn();
|
|
8567
8567
|
function G() {
|
|
@@ -8599,11 +8599,11 @@ function mi(e, t = {}) {
|
|
|
8599
8599
|
}
|
|
8600
8600
|
function ne(ee) {
|
|
8601
8601
|
if (j(ee)) {
|
|
8602
|
-
ee.type !== "click" && !F(ee) && (U.clear(), S.current = !1),
|
|
8602
|
+
ee.type !== "click" && !F(ee) && (U.clear(), S.current = !1), A();
|
|
8603
8603
|
return;
|
|
8604
8604
|
}
|
|
8605
8605
|
if (f.current.insideReactTree) {
|
|
8606
|
-
|
|
8606
|
+
A();
|
|
8607
8607
|
return;
|
|
8608
8608
|
}
|
|
8609
8609
|
const de = Et(ee), xe = `[${fa("inert")}]`, Q = ct(de) ? de.getRootNode() : null, re = Array.from((Qs(Q) ? Q : Ze(l.select("floatingElement"))).querySelectorAll(xe)), be = l.context.triggerElements;
|
|
@@ -8630,7 +8630,7 @@ function mi(e, t = {}) {
|
|
|
8630
8630
|
U.clear(), S.current = !1;
|
|
8631
8631
|
return;
|
|
8632
8632
|
}
|
|
8633
|
-
typeof g == "function" && !g(ee) || _("__outsidePressBubbles") || (l.setOpen(!1, Se(Aa, ee)),
|
|
8633
|
+
typeof g == "function" && !g(ee) || _("__outsidePressBubbles") || (l.setOpen(!1, Se(Aa, ee)), A());
|
|
8634
8634
|
}
|
|
8635
8635
|
}
|
|
8636
8636
|
}
|
|
@@ -8681,7 +8681,7 @@ function mi(e, t = {}) {
|
|
|
8681
8681
|
W();
|
|
8682
8682
|
return;
|
|
8683
8683
|
}
|
|
8684
|
-
typeof g == "function" && !g(ee) || (U.clear(), S.current = !0,
|
|
8684
|
+
typeof g == "function" && !g(ee) || (U.clear(), S.current = !0, A());
|
|
8685
8685
|
}
|
|
8686
8686
|
}
|
|
8687
8687
|
}
|
|
@@ -8705,14 +8705,14 @@ function mi(e, t = {}) {
|
|
|
8705
8705
|
}
|
|
8706
8706
|
const we = Ze(p), oe = rr(r && rr(et(we, "keydown", D), et(we, "compositionstart", G), et(we, "compositionend", Y)), b && rr(et(we, "click", fe, !0), et(we, "pointerdown", fe, !0), et(we, "pointerup", pe, !0), et(we, "pointercancel", pe, !0), et(we, "mousedown", fe, !0), et(we, "mouseup", pe, !0), et(we, "touchstart", se, !0), et(we, "touchmove", le, !0), et(we, "touchend", he, !0)));
|
|
8707
8707
|
return () => {
|
|
8708
|
-
oe(), $.clear(), U.clear(), X(), S.current = !1,
|
|
8708
|
+
oe(), $.clear(), U.clear(), X(), S.current = !1, A();
|
|
8709
8709
|
};
|
|
8710
|
-
}, [f, p, r, b, g, u, n, w, v, D,
|
|
8710
|
+
}, [f, p, r, b, g, u, n, w, v, D, A, x, _, F, h, l, M]);
|
|
8711
8711
|
const P = y.useMemo(() => ({
|
|
8712
8712
|
onKeyDown: D,
|
|
8713
|
-
onPointerDown:
|
|
8714
|
-
onClick:
|
|
8715
|
-
}), [D,
|
|
8713
|
+
onPointerDown: O,
|
|
8714
|
+
onClick: O
|
|
8715
|
+
}), [D, O]), L = y.useMemo(() => ({
|
|
8716
8716
|
onKeyDown: D,
|
|
8717
8717
|
// `onMouseDown` may be blocked if `event.preventDefault()` is called in
|
|
8718
8718
|
// `onPointerDown`, such as with <NumberField.ScrubArea>.
|
|
@@ -8919,9 +8919,9 @@ const VD = 50, LD = async (e, t, n) => {
|
|
|
8919
8919
|
placement: o,
|
|
8920
8920
|
overflows: R
|
|
8921
8921
|
}], !R.every((F) => F <= 0)) {
|
|
8922
|
-
var T,
|
|
8923
|
-
const F = (((T = s.flip) == null ? void 0 : T.index) || 0) + 1,
|
|
8924
|
-
if (
|
|
8922
|
+
var T, A;
|
|
8923
|
+
const F = (((T = s.flip) == null ? void 0 : T.index) || 0) + 1, O = N[F];
|
|
8924
|
+
if (O && (!(p === "alignment" ? w !== er(O) : !1) || // We leave the current main axis only if every placement on that axis
|
|
8925
8925
|
// overflows the main axis.
|
|
8926
8926
|
M.every((V) => er(V.placement) === w ? V.overflows[0] > 0 : !0)))
|
|
8927
8927
|
return {
|
|
@@ -8930,10 +8930,10 @@ const VD = 50, LD = async (e, t, n) => {
|
|
|
8930
8930
|
overflows: M
|
|
8931
8931
|
},
|
|
8932
8932
|
reset: {
|
|
8933
|
-
placement:
|
|
8933
|
+
placement: O
|
|
8934
8934
|
}
|
|
8935
8935
|
};
|
|
8936
|
-
let D = (
|
|
8936
|
+
let D = (A = M.filter((z) => z.overflows[0] <= 0).sort((z, V) => z.overflows[1] - V.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
8937
8937
|
if (!D)
|
|
8938
8938
|
switch (h) {
|
|
8939
8939
|
case "bestFit": {
|
|
@@ -9594,7 +9594,7 @@ function m_(e) {
|
|
|
9594
9594
|
V !== S.current && (S.current = V, g(V));
|
|
9595
9595
|
}, []), v = y.useCallback((V) => {
|
|
9596
9596
|
V !== N.current && (N.current = V, x(V));
|
|
9597
|
-
}, []), C = s || m, E = i || b, S = y.useRef(null), N = y.useRef(null), k = y.useRef(u), R = c != null, M = Sf(c), T = Sf(o),
|
|
9597
|
+
}, []), C = s || m, E = i || b, S = y.useRef(null), N = y.useRef(null), k = y.useRef(u), R = c != null, M = Sf(c), T = Sf(o), A = Sf(l), _ = y.useCallback(() => {
|
|
9598
9598
|
if (!S.current || !N.current)
|
|
9599
9599
|
return;
|
|
9600
9600
|
const V = {
|
|
@@ -9609,13 +9609,13 @@ function m_(e) {
|
|
|
9609
9609
|
// but still mounted (such as when transitioning out). To ensure
|
|
9610
9610
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
9611
9611
|
// setting it to `true` when `open === false` (must be specified).
|
|
9612
|
-
isPositioned:
|
|
9612
|
+
isPositioned: A.current !== !1
|
|
9613
9613
|
};
|
|
9614
9614
|
F.current && !Dc(k.current, P) && (k.current = P, In.flushSync(() => {
|
|
9615
9615
|
p(P);
|
|
9616
9616
|
}));
|
|
9617
9617
|
});
|
|
9618
|
-
}, [f, t, n, T,
|
|
9618
|
+
}, [f, t, n, T, A]);
|
|
9619
9619
|
xc(() => {
|
|
9620
9620
|
l === !1 && k.current.isPositioned && (k.current.isPositioned = !1, p((V) => ({
|
|
9621
9621
|
...V,
|
|
@@ -9632,7 +9632,7 @@ function m_(e) {
|
|
|
9632
9632
|
_();
|
|
9633
9633
|
}
|
|
9634
9634
|
}, [C, E, _, M, R]);
|
|
9635
|
-
const
|
|
9635
|
+
const O = y.useMemo(() => ({
|
|
9636
9636
|
reference: S,
|
|
9637
9637
|
floating: N,
|
|
9638
9638
|
setReference: w,
|
|
@@ -9664,10 +9664,10 @@ function m_(e) {
|
|
|
9664
9664
|
return y.useMemo(() => ({
|
|
9665
9665
|
...u,
|
|
9666
9666
|
update: _,
|
|
9667
|
-
refs:
|
|
9667
|
+
refs: O,
|
|
9668
9668
|
elements: D,
|
|
9669
9669
|
floatingStyles: z
|
|
9670
|
-
}), [u, _,
|
|
9670
|
+
}), [u, _, O, D, z]);
|
|
9671
9671
|
}
|
|
9672
9672
|
const g_ = (e, t) => {
|
|
9673
9673
|
const n = a_(e);
|
|
@@ -10826,12 +10826,12 @@ function H_(e, t) {
|
|
|
10826
10826
|
}), v = ct(p) ? p : null, C = h === void 0 ? t.state.floatingElement : h;
|
|
10827
10827
|
t.useSyncedValue("referenceElement", p ?? null), t.useSyncedValue("domReferenceElement", p === void 0 ? i : v), t.useSyncedValue("floatingElement", C);
|
|
10828
10828
|
const E = y.useCallback((T) => {
|
|
10829
|
-
const
|
|
10829
|
+
const A = ct(T) ? {
|
|
10830
10830
|
getBoundingClientRect: () => T.getBoundingClientRect(),
|
|
10831
10831
|
getClientRects: () => T.getClientRects(),
|
|
10832
10832
|
contextElement: T
|
|
10833
10833
|
} : T;
|
|
10834
|
-
u(
|
|
10834
|
+
u(A), w.refs.setReference(A);
|
|
10835
10835
|
}, [w.refs]), S = y.useCallback((T) => {
|
|
10836
10836
|
(ct(T) || T === null) && (g.current = T, f(T)), (ct(w.refs.reference.current) || w.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
10837
10837
|
// `null` to support `positionReference` + an unstable `reference`
|
|
@@ -10864,7 +10864,7 @@ function H_(e, t) {
|
|
|
10864
10864
|
i && (g.current = i);
|
|
10865
10865
|
}, [i]), ye(() => {
|
|
10866
10866
|
t.context.dataRef.current.floatingContext = M;
|
|
10867
|
-
const T = b?.nodesRef.current.find((
|
|
10867
|
+
const T = b?.nodesRef.current.find((A) => A.id === n);
|
|
10868
10868
|
T && (T.context = M);
|
|
10869
10869
|
}), y.useMemo(() => ({
|
|
10870
10870
|
...w,
|
|
@@ -11049,7 +11049,7 @@ function Tm(e, t = {}) {
|
|
|
11049
11049
|
if (Pc(k.relatedTarget, s.context.triggerElements))
|
|
11050
11050
|
return;
|
|
11051
11051
|
const R = l.current.floatingContext?.nodeId ?? o, M = k.relatedTarget;
|
|
11052
|
-
if (!(u && R && ct(M) && Io(u.nodesRef.current, R, !1).some((
|
|
11052
|
+
if (!(u && R && ct(M) && Io(u.nodesRef.current, R, !1).some((A) => Oe(A.context?.elements.floating, M)))) {
|
|
11053
11053
|
if (f.handler) {
|
|
11054
11054
|
f.handler(k);
|
|
11055
11055
|
return;
|
|
@@ -11089,7 +11089,7 @@ function Pm(e, t = {}) {
|
|
|
11089
11089
|
} = t, g = "rootStore" in e ? e.rootStore : e, {
|
|
11090
11090
|
dataRef: b,
|
|
11091
11091
|
events: x
|
|
11092
|
-
} = g.context, w = $o(l), v = Mm(g), C = y.useRef(!1), E = Ot(o), S = Ot(r), N = Ot(i), k = Ot(n), R = Ot(h), M = Ot(f), T = ge(() => X1(b.current.openEvent?.type, v.interactedInside)),
|
|
11092
|
+
} = g.context, w = $o(l), v = Mm(g), C = y.useRef(!1), E = Ot(o), S = Ot(r), N = Ot(i), k = Ot(n), R = Ot(h), M = Ot(f), T = ge(() => X1(b.current.openEvent?.type, v.interactedInside)), A = ge(() => R.current?.() !== !1), _ = ge((D, z, V) => {
|
|
11093
11093
|
const H = g.context.triggerElements;
|
|
11094
11094
|
if (H.hasElement(z))
|
|
11095
11095
|
return !D || !Oe(D, z);
|
|
@@ -11101,7 +11101,7 @@ function Pm(e, t = {}) {
|
|
|
11101
11101
|
if (!v.handler)
|
|
11102
11102
|
return;
|
|
11103
11103
|
Ze(g.select("domReferenceElement")).removeEventListener("mousemove", v.handler), v.handler = void 0;
|
|
11104
|
-
}),
|
|
11104
|
+
}), O = ge(() => {
|
|
11105
11105
|
Fc(v);
|
|
11106
11106
|
});
|
|
11107
11107
|
return u && (v.handleCloseOptions = E.current?.__options), y.useEffect(() => F, [F]), y.useEffect(() => {
|
|
@@ -11140,16 +11140,16 @@ function Pm(e, t = {}) {
|
|
|
11140
11140
|
ct(W) && ct(X) && !g.context.triggerElements.hasElement(W) && Oe(W, X) && (K = X);
|
|
11141
11141
|
const j = K == null ? !1 : _(X, K, Y), Z = g.select("open"), ne = M.current?.() ?? g.select("transitionStatus") === "ending", te = !Z && ne && C.current, q = !j && ct(K) && ct(X) && Oe(X, K) && te, J = U > 0 && !G, se = j && (Z || te) || q, fe = !Z || j;
|
|
11142
11142
|
if (se) {
|
|
11143
|
-
|
|
11143
|
+
A() && g.setOpen(!0, Se(jt, $, K));
|
|
11144
11144
|
return;
|
|
11145
11145
|
}
|
|
11146
11146
|
J || (G ? v.openChangeTimeout.start(G, () => {
|
|
11147
|
-
fe &&
|
|
11148
|
-
}) : fe &&
|
|
11147
|
+
fe && A() && g.setOpen(!0, Se(jt, $, K));
|
|
11148
|
+
}) : fe && A() && g.setOpen(!0, Se(jt, $, K)));
|
|
11149
11149
|
}
|
|
11150
11150
|
function H($) {
|
|
11151
11151
|
if (T()) {
|
|
11152
|
-
|
|
11152
|
+
O();
|
|
11153
11153
|
return;
|
|
11154
11154
|
}
|
|
11155
11155
|
F();
|
|
@@ -11167,7 +11167,7 @@ function Pm(e, t = {}) {
|
|
|
11167
11167
|
x: $.clientX,
|
|
11168
11168
|
y: $.clientY,
|
|
11169
11169
|
onClose() {
|
|
11170
|
-
|
|
11170
|
+
O(), F(), k.current && !T() && X === g.select("domReferenceElement") && D($, !0);
|
|
11171
11171
|
}
|
|
11172
11172
|
}), G.addEventListener("mousemove", v.handler), v.handler($);
|
|
11173
11173
|
return;
|
|
@@ -11181,7 +11181,7 @@ function Pm(e, t = {}) {
|
|
|
11181
11181
|
return a ? rr(et(z, "mousemove", V, {
|
|
11182
11182
|
once: !0
|
|
11183
11183
|
}), et(z, "mouseenter", V), et(z, "mouseleave", H), L) : rr(et(z, "mouseenter", V), et(z, "mouseleave", H), L);
|
|
11184
|
-
}, [F,
|
|
11184
|
+
}, [F, O, b, S, g, n, E, v, u, _, T, s, a, N, c, w, k, p, M, A, m]), y.useMemo(() => {
|
|
11185
11185
|
if (!n)
|
|
11186
11186
|
return;
|
|
11187
11187
|
function D(z) {
|
|
@@ -11215,14 +11215,14 @@ function Pm(e, t = {}) {
|
|
|
11215
11215
|
if (v.restTimeoutPending = !1, T())
|
|
11216
11216
|
return;
|
|
11217
11217
|
const Y = g.select("open");
|
|
11218
|
-
!v.blockMouseMove && (!Y || $) &&
|
|
11218
|
+
!v.blockMouseMove && (!Y || $) && A() && g.setOpen(!0, Se(jt, V, H));
|
|
11219
11219
|
}
|
|
11220
11220
|
v.pointerType === "touch" ? In.flushSync(() => {
|
|
11221
11221
|
G();
|
|
11222
11222
|
}) : $ && L ? G() : (v.restTimeoutPending = !0, v.restTimeout.start(U, G));
|
|
11223
11223
|
}
|
|
11224
11224
|
};
|
|
11225
|
-
}, [n, v, T, _, s, g, N,
|
|
11225
|
+
}, [n, v, T, _, s, g, N, A]);
|
|
11226
11226
|
}
|
|
11227
11227
|
const j_ = "Escape";
|
|
11228
11228
|
function Gv(e) {
|
|
@@ -11276,7 +11276,7 @@ function Om(e, t) {
|
|
|
11276
11276
|
grid: E
|
|
11277
11277
|
} = t, S = E != null;
|
|
11278
11278
|
process.env.NODE_ENV !== "production" && (a && (c || console.warn("`useListNavigation` looping must be enabled to allow escaping."), p || console.warn("`useListNavigation` must be virtual to allow escaping.")), b === "vertical" && S && console.warn("In grid list navigation mode, the `orientation` should", 'be either "horizontal" or "both".'));
|
|
11279
|
-
const N = "rootStore" in e ? e.rootStore : e, k = N.useState("open"), R = N.useState("floatingElement"), M = N.useState("domReferenceElement"), T = N.context.dataRef,
|
|
11279
|
+
const N = "rootStore" in e ? e.rootStore : e, k = N.useState("open"), R = N.useState("floatingElement"), M = N.useState("domReferenceElement"), T = N.context.dataRef, A = Oc(R), _ = Dp(M), F = Ot(A), O = Fo(), D = $o(C), z = y.useRef(f), V = y.useRef(i ?? -1), H = y.useRef(null), P = y.useRef(!0), L = ge((ee) => {
|
|
11280
11280
|
o(V.current === -1 ? null : V.current, ee);
|
|
11281
11281
|
}), $ = y.useRef(!!R), U = y.useRef(k), G = y.useRef(!1), Y = y.useRef(!1), W = y.useRef(null), X = Ot(g), K = Ot(k), j = Ot(i), Z = Ot(v), ne = us(), te = us(), q = ge(() => {
|
|
11282
11282
|
function ee(re) {
|
|
@@ -11323,11 +11323,11 @@ function Om(e, t) {
|
|
|
11323
11323
|
}, [s, k, R, r, j, l, n, b, u, L, q, te]), ye(() => {
|
|
11324
11324
|
if (!s || R || !D || p || !$.current)
|
|
11325
11325
|
return;
|
|
11326
|
-
const ee = D.nodesRef.current, de = ee.find((re) => re.id ===
|
|
11326
|
+
const ee = D.nodesRef.current, de = ee.find((re) => re.id === O)?.context?.elements.floating, xe = $t(Ze(M ?? de ?? null)), Q = ee.some((re) => re.context && Oe(re.context.elements.floating, xe));
|
|
11327
11327
|
de && !Q && P.current && de.focus({
|
|
11328
11328
|
preventScroll: !0
|
|
11329
11329
|
});
|
|
11330
|
-
}, [s, R, M, D,
|
|
11330
|
+
}, [s, R, M, D, O, p]), ye(() => {
|
|
11331
11331
|
U.current = k, $.current = !!R;
|
|
11332
11332
|
}), ye(() => {
|
|
11333
11333
|
k || (H.current = null, z.current = f);
|
|
@@ -11337,7 +11337,7 @@ function Om(e, t) {
|
|
|
11337
11337
|
return;
|
|
11338
11338
|
const de = n.current.indexOf(ee.currentTarget);
|
|
11339
11339
|
de !== -1 && (V.current !== de || r !== de) && (V.current = de, L(ee));
|
|
11340
|
-
}), fe = ge(() => x ?? D?.nodesRef.current.find((ee) => ee.id ===
|
|
11340
|
+
}), fe = ge(() => x ?? D?.nodesRef.current.find((ee) => ee.id === O)?.context?.dataRef?.current.orientation), pe = ge(() => gc(n, X.current)), ce = ge((ee) => {
|
|
11341
11341
|
if (P.current = !1, G.current = !0, ee.which === 229 || !K.current && ee.currentTarget === F.current)
|
|
11342
11342
|
return;
|
|
11343
11343
|
if (l && W_(ee.key, b, u, S)) {
|
|
@@ -11478,13 +11478,13 @@ function Am(e, t) {
|
|
|
11478
11478
|
return r?.current[F];
|
|
11479
11479
|
}
|
|
11480
11480
|
function S(F) {
|
|
11481
|
-
const
|
|
11482
|
-
return
|
|
11481
|
+
const O = E(F);
|
|
11482
|
+
return O && !zu(O) || O?.matches(":disabled") ? !1 : i == null || !ni(Nn, F, i);
|
|
11483
11483
|
}
|
|
11484
|
-
function N(F,
|
|
11484
|
+
function N(F, O, D = 0) {
|
|
11485
11485
|
if (F.length === 0)
|
|
11486
11486
|
return -1;
|
|
11487
|
-
const z = (D % F.length + F.length) % F.length, V =
|
|
11487
|
+
const z = (D % F.length + F.length) % F.length, V = O.toLowerCase();
|
|
11488
11488
|
for (let H = 0; H < F.length; H += 1) {
|
|
11489
11489
|
const P = (z + H) % F.length;
|
|
11490
11490
|
if (!(!F[P]?.toLowerCase().startsWith(V) || !S(P)))
|
|
@@ -11499,10 +11499,10 @@ function Am(e, t) {
|
|
|
11499
11499
|
return;
|
|
11500
11500
|
f && C.key !== " " && (kt(C), a?.(!0));
|
|
11501
11501
|
const R = m.current === "";
|
|
11502
|
-
R && (g.current = u ?? o ?? -1), k.every((F,
|
|
11502
|
+
R && (g.current = u ?? o ?? -1), k.every((F, O) => F && S(O) ? F[0]?.toLowerCase() !== F[1]?.toLowerCase() : !0) && m.current === C.key && (m.current = "", g.current = b.current), m.current += C.key, h.start(l, () => {
|
|
11503
11503
|
m.current = "", g.current = b.current, a?.(!1);
|
|
11504
11504
|
});
|
|
11505
|
-
const
|
|
11505
|
+
const A = ((R ? u ?? o ?? -1 : g.current) ?? 0) + 1, _ = N(k, m.current, A);
|
|
11506
11506
|
_ !== -1 ? (s?.(_), b.current = _) : C.key !== " " && (m.current = "", a?.(!1));
|
|
11507
11507
|
}), w = ge((C) => {
|
|
11508
11508
|
const E = C.relatedTarget, S = p.select("domReferenceElement"), N = p.select("floatingElement");
|
|
@@ -11576,15 +11576,15 @@ function Dm(e = {}) {
|
|
|
11576
11576
|
}
|
|
11577
11577
|
if (R && ct(v.relatedTarget) && Oe(E, v.relatedTarget))
|
|
11578
11578
|
return;
|
|
11579
|
-
function
|
|
11579
|
+
function A() {
|
|
11580
11580
|
return !!(u && Io(u.nodesRef.current, l).length > 0);
|
|
11581
11581
|
}
|
|
11582
11582
|
function _() {
|
|
11583
|
-
|
|
11583
|
+
A() || x();
|
|
11584
11584
|
}
|
|
11585
|
-
if (
|
|
11585
|
+
if (A())
|
|
11586
11586
|
return;
|
|
11587
|
-
const F = C.getBoundingClientRect(),
|
|
11587
|
+
const F = C.getBoundingClientRect(), O = E.getBoundingClientRect(), D = o > O.right - O.width / 2, z = s > O.bottom - O.height / 2, V = O.width > F.width, H = O.height > F.height, P = (V ? F : O).left, L = (V ? F : O).right, $ = (H ? F : O).top, U = (H ? F : O).bottom;
|
|
11588
11588
|
if (p === "top" && s >= F.bottom - 1 || p === "bottom" && s <= F.top + 1 || p === "left" && o >= F.right - 1 || p === "right" && o <= F.left + 1) {
|
|
11589
11589
|
_();
|
|
11590
11590
|
return;
|
|
@@ -11592,16 +11592,16 @@ function Dm(e = {}) {
|
|
|
11592
11592
|
let G = !1;
|
|
11593
11593
|
switch (p) {
|
|
11594
11594
|
case "top":
|
|
11595
|
-
G = Vl(S, N, P, F.top + 1, L,
|
|
11595
|
+
G = Vl(S, N, P, F.top + 1, L, O.bottom - 1);
|
|
11596
11596
|
break;
|
|
11597
11597
|
case "bottom":
|
|
11598
|
-
G = Vl(S, N, P,
|
|
11598
|
+
G = Vl(S, N, P, O.top + 1, L, F.bottom - 1);
|
|
11599
11599
|
break;
|
|
11600
11600
|
case "left":
|
|
11601
|
-
G = Vl(S, N,
|
|
11601
|
+
G = Vl(S, N, O.right - 1, U, F.left + 1, $);
|
|
11602
11602
|
break;
|
|
11603
11603
|
case "right":
|
|
11604
|
-
G = Vl(S, N, F.right - 1, U,
|
|
11604
|
+
G = Vl(S, N, F.right - 1, U, O.left + 1, $);
|
|
11605
11605
|
break;
|
|
11606
11606
|
}
|
|
11607
11607
|
if (G)
|
|
@@ -11617,23 +11617,23 @@ function Dm(e = {}) {
|
|
|
11617
11617
|
let Y = !1;
|
|
11618
11618
|
switch (p) {
|
|
11619
11619
|
case "top": {
|
|
11620
|
-
const W = V ? Pt / 2 : Pt * 4, X = V || D ? o + W : o - W, K = V ? o - W : D ? o + W : o - W, j = s + Pt + 1, Z = D || V ?
|
|
11621
|
-
Y = $l(S, N, X, j, K, j,
|
|
11620
|
+
const W = V ? Pt / 2 : Pt * 4, X = V || D ? o + W : o - W, K = V ? o - W : D ? o + W : o - W, j = s + Pt + 1, Z = D || V ? O.bottom - Pt : O.top, ne = D ? V ? O.bottom - Pt : O.top : O.bottom - Pt;
|
|
11621
|
+
Y = $l(S, N, X, j, K, j, O.left, Z, O.right, ne);
|
|
11622
11622
|
break;
|
|
11623
11623
|
}
|
|
11624
11624
|
case "bottom": {
|
|
11625
|
-
const W = V ? Pt / 2 : Pt * 4, X = V || D ? o + W : o - W, K = V ? o - W : D ? o + W : o - W, j = s - Pt, Z = D || V ?
|
|
11626
|
-
Y = $l(S, N, X, j, K, j,
|
|
11625
|
+
const W = V ? Pt / 2 : Pt * 4, X = V || D ? o + W : o - W, K = V ? o - W : D ? o + W : o - W, j = s - Pt, Z = D || V ? O.top + Pt : O.bottom, ne = D ? V ? O.top + Pt : O.bottom : O.top + Pt;
|
|
11626
|
+
Y = $l(S, N, X, j, K, j, O.left, Z, O.right, ne);
|
|
11627
11627
|
break;
|
|
11628
11628
|
}
|
|
11629
11629
|
case "left": {
|
|
11630
|
-
const W = H ? Pt / 2 : Pt * 4, X = H || z ? s + W : s - W, K = H ? s - W : z ? s + W : s - W, j = o + Pt + 1, Z = z || H ?
|
|
11631
|
-
Y = $l(S, N, Z,
|
|
11630
|
+
const W = H ? Pt / 2 : Pt * 4, X = H || z ? s + W : s - W, K = H ? s - W : z ? s + W : s - W, j = o + Pt + 1, Z = z || H ? O.right - Pt : O.left, ne = z ? H ? O.right - Pt : O.left : O.right - Pt;
|
|
11631
|
+
Y = $l(S, N, Z, O.top, ne, O.bottom, j, X, j, K);
|
|
11632
11632
|
break;
|
|
11633
11633
|
}
|
|
11634
11634
|
case "right": {
|
|
11635
|
-
const W = H ? Pt / 2 : Pt * 4, X = H || z ? s + W : s - W, K = H ? s - W : z ? s + W : s - W, j = o - Pt, Z = z || H ?
|
|
11636
|
-
Y = $l(S, N, j, X, j, K, Z,
|
|
11635
|
+
const W = H ? Pt / 2 : Pt * 4, X = H || z ? s + W : s - W, K = H ? s - W : z ? s + W : s - W, j = o - Pt, Z = z || H ? O.left + Pt : O.right, ne = z ? H ? O.left + Pt : O.right : O.left + Pt;
|
|
11636
|
+
Y = $l(S, N, j, X, j, K, Z, O.top, ne, O.bottom);
|
|
11637
11637
|
break;
|
|
11638
11638
|
}
|
|
11639
11639
|
}
|
|
@@ -11914,7 +11914,7 @@ function zt(e = {}) {
|
|
|
11914
11914
|
onKeyDown(C) {
|
|
11915
11915
|
if (t || (Ic(C), x?.(C), C.baseUIHandlerPrevented))
|
|
11916
11916
|
return;
|
|
11917
|
-
const E = C.target === C.currentTarget, S = C.currentTarget, N = Ll(S), k = !o && nF(S), R = E && (o ? N : !k), M = C.key === "Enter", T = C.key === " ",
|
|
11917
|
+
const E = C.target === C.currentTarget, S = C.currentTarget, N = Ll(S), k = !o && nF(S), R = E && (o ? N : !k), M = C.key === "Enter", T = C.key === " ", A = S.getAttribute("role"), _ = A?.startsWith("menuitem") || A === "option" || A === "gridcell";
|
|
11918
11918
|
if (E && c && T) {
|
|
11919
11919
|
if (C.defaultPrevented && _)
|
|
11920
11920
|
return;
|
|
@@ -12110,8 +12110,8 @@ const LC = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
12110
12110
|
disabled: i,
|
|
12111
12111
|
openOnHover: u,
|
|
12112
12112
|
closeDelay: f
|
|
12113
|
-
}), M = x.useState("openChangeReason"), T = x.useState("stickIfOpen"),
|
|
12114
|
-
enabled: !i && u && (
|
|
12113
|
+
}), M = x.useState("openChangeReason"), T = x.useState("stickIfOpen"), A = x.useState("openMethod"), _ = x.useState("focusManagerModal"), F = Pm(C, {
|
|
12114
|
+
enabled: !i && u && (A !== "touch" || M !== _r),
|
|
12115
12115
|
mouseOnly: !0,
|
|
12116
12116
|
move: !1,
|
|
12117
12117
|
handleClose: Dm(),
|
|
@@ -12122,7 +12122,7 @@ const LC = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
12122
12122
|
triggerElementRef: N,
|
|
12123
12123
|
isActiveTrigger: v,
|
|
12124
12124
|
isClosing: () => x.select("transitionStatus") === "ending"
|
|
12125
|
-
}),
|
|
12125
|
+
}), O = hi(C, {
|
|
12126
12126
|
stickIfOpen: T
|
|
12127
12127
|
}), D = $m(() => x.select("open"), (X) => {
|
|
12128
12128
|
x.set("openMethod", X);
|
|
@@ -12146,7 +12146,7 @@ const LC = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
12146
12146
|
open: E
|
|
12147
12147
|
},
|
|
12148
12148
|
ref: [H, n, k, N],
|
|
12149
|
-
props: [
|
|
12149
|
+
props: [O.reference, F, z, D, {
|
|
12150
12150
|
[fm]: "",
|
|
12151
12151
|
id: w,
|
|
12152
12152
|
"aria-haspopup": "dialog",
|
|
@@ -12231,12 +12231,12 @@ const pF = (e) => ({
|
|
|
12231
12231
|
}, m = cm(o), g = lm(m), b = await i.getDimensions(l), x = m === "y", w = x ? "top" : "left", v = x ? "bottom" : "right", C = x ? "clientHeight" : "clientWidth", E = s.reference[g] + s.reference[m] - h[m] - s.floating[g], S = h[m] - s.reference[m], N = p === "real" ? await i.getOffsetParent?.(l) : a.floating;
|
|
12232
12232
|
let k = a.floating[C] || s.floating[g];
|
|
12233
12233
|
(!k || !await i.isElement?.(N)) && (k = a.floating[C] || s.floating[g]);
|
|
12234
|
-
const R = E / 2 - S / 2, M = k / 2 - b[g] / 2 - 1, T = Math.min(f[w], M),
|
|
12234
|
+
const R = E / 2 - S / 2, M = k / 2 - b[g] / 2 - 1, T = Math.min(f[w], M), A = Math.min(f[v], M), _ = T, F = k - b[g] - A, O = k / 2 - b[g] / 2 + R, D = eC(_, O, F), z = !c.arrow && _o(o) != null && O !== D && s.reference[g] / 2 - (O < _ ? T : A) - b[g] / 2 < 0, V = z ? O < _ ? O - _ : O - F : 0;
|
|
12235
12235
|
return {
|
|
12236
12236
|
[m]: h[m] + V,
|
|
12237
12237
|
data: {
|
|
12238
12238
|
[m]: D,
|
|
12239
|
-
centerOffset:
|
|
12239
|
+
centerOffset: O - D - V,
|
|
12240
12240
|
...z && {
|
|
12241
12241
|
alignmentOffset: V
|
|
12242
12242
|
}
|
|
@@ -12325,7 +12325,7 @@ function bF(e, t) {
|
|
|
12325
12325
|
externalTree: S
|
|
12326
12326
|
} = e, [N, k] = y.useState(null);
|
|
12327
12327
|
!b && N !== null && k(null);
|
|
12328
|
-
const R = x.side || "flip", M = x.align || "flip", T = x.fallbackAxisSide || "end",
|
|
12328
|
+
const R = x.side || "flip", M = x.align || "flip", T = x.fallbackAxisSide || "end", A = w?.crossAxis ?? !1, _ = w?.rootBoundary, F = typeof n == "function" ? n : void 0, O = ge(F), D = F ? O : n, z = Ot(n), V = Ot(b), P = lr() === "rtl", L = N || {
|
|
12329
12329
|
top: "top",
|
|
12330
12330
|
right: "right",
|
|
12331
12331
|
bottom: "bottom",
|
|
@@ -12357,7 +12357,7 @@ function bF(e, t) {
|
|
|
12357
12357
|
alignmentAxis: vt
|
|
12358
12358
|
};
|
|
12359
12359
|
}, [q, J, P, o]));
|
|
12360
|
-
const fe = M === "none" && R !== "shift", pe = !fe && (u ||
|
|
12360
|
+
const fe = M === "none" && R !== "shift", pe = !fe && (u || A || R === "shift"), ce = R === "none" ? null : v_({
|
|
12361
12361
|
...j,
|
|
12362
12362
|
// Ensure the popup flips if it's been limited by its --available-height and it resizes.
|
|
12363
12363
|
// Since the size() padding is smaller than the flip() padding, flip() will take precedence.
|
|
@@ -12367,7 +12367,7 @@ function bF(e, t) {
|
|
|
12367
12367
|
bottom: U.bottom + G + W,
|
|
12368
12368
|
left: U.left + G + X
|
|
12369
12369
|
},
|
|
12370
|
-
mainAxis: !
|
|
12370
|
+
mainAxis: !A && R === "flip",
|
|
12371
12371
|
crossAxis: M === "flip" ? "alignment" : !1,
|
|
12372
12372
|
fallbackAxisSideDirection: T
|
|
12373
12373
|
}), le = fe ? null : b_({
|
|
@@ -12376,7 +12376,7 @@ function bF(e, t) {
|
|
|
12376
12376
|
rootBoundary: _,
|
|
12377
12377
|
mainAxis: M !== "none",
|
|
12378
12378
|
crossAxis: pe,
|
|
12379
|
-
limiter: u ||
|
|
12379
|
+
limiter: u || A ? void 0 : x_((Ke) => {
|
|
12380
12380
|
if (!Z.current)
|
|
12381
12381
|
return {};
|
|
12382
12382
|
const {
|
|
@@ -12387,7 +12387,7 @@ function bF(e, t) {
|
|
|
12387
12387
|
offset: Xe / 2 + lt / 2
|
|
12388
12388
|
};
|
|
12389
12389
|
})
|
|
12390
|
-
}, [j, u,
|
|
12390
|
+
}, [j, u, A, _, U, M]);
|
|
12391
12391
|
R === "shift" || M === "shift" || i === "center" ? se.push(le, ce) : se.push(ce, le), se.push(y_({
|
|
12392
12392
|
...j,
|
|
12393
12393
|
apply({
|
|
@@ -12732,7 +12732,7 @@ const GC = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
12732
12732
|
disableAnchorTracking: b = !1,
|
|
12733
12733
|
collisionAvoidance: x = hm,
|
|
12734
12734
|
...w
|
|
12735
|
-
} = t, v = ys(), C = fF(), E = vm(), S = v.useState("floatingRootContext"), N = v.useState("mounted"), k = v.useState("open"), R = v.useState("openChangeReason"), M = v.useState("activeTriggerElement"), T = v.useState("modal"),
|
|
12735
|
+
} = t, v = ys(), C = fF(), E = vm(), S = v.useState("floatingRootContext"), N = v.useState("mounted"), k = v.useState("open"), R = v.useState("openChangeReason"), M = v.useState("activeTriggerElement"), T = v.useState("modal"), A = v.useState("openMethod"), _ = v.useState("positionerElement"), F = v.useState("instantType"), O = v.useState("transitionStatus"), D = v.useState("adaptiveOrigin"), z = y.useRef(null), V = ju(_), H = $a({
|
|
12736
12736
|
anchor: i,
|
|
12737
12737
|
floatingRootContext: S,
|
|
12738
12738
|
positionMethod: a,
|
|
@@ -12764,7 +12764,7 @@ const GC = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
12764
12764
|
}
|
|
12765
12765
|
}, [P, V, v]);
|
|
12766
12766
|
const L = T === !0 && R !== jt;
|
|
12767
|
-
od(k && L,
|
|
12767
|
+
od(k && L, A === "touch", _, M);
|
|
12768
12768
|
const $ = v.useStateSetter("positionerElement"), U = {
|
|
12769
12769
|
open: k,
|
|
12770
12770
|
side: H.side,
|
|
@@ -12773,7 +12773,7 @@ const GC = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
12773
12773
|
instant: F
|
|
12774
12774
|
}, G = Va(t, U, {
|
|
12775
12775
|
styles: H.positionerStyles,
|
|
12776
|
-
transitionStatus:
|
|
12776
|
+
transitionStatus: O,
|
|
12777
12777
|
props: w,
|
|
12778
12778
|
refs: [n, $],
|
|
12779
12779
|
hidden: !N,
|
|
@@ -12873,7 +12873,7 @@ const YC = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
12873
12873
|
} = t, l = ys(), u = BC(), p = Vo(!0) != null, {
|
|
12874
12874
|
context: f,
|
|
12875
12875
|
hasClosePart: h
|
|
12876
|
-
} = RF(), m = l.useState("open"), g = l.useState("openMethod"), b = l.useState("instantType"), x = l.useState("transitionStatus"), w = l.useState("popupProps"), v = l.useState("titleElementId"), C = l.useState("descriptionElementId"), E = l.useState("modal"), S = l.useState("mounted"), N = l.useState("openChangeReason"), k = l.useState("activeTriggerElement"), R = l.useState("floatingRootContext"), M = R.useState("floatingId"), T = l.useState("disabled"),
|
|
12876
|
+
} = RF(), m = l.useState("open"), g = l.useState("openMethod"), b = l.useState("instantType"), x = l.useState("transitionStatus"), w = l.useState("popupProps"), v = l.useState("titleElementId"), C = l.useState("descriptionElementId"), E = l.useState("modal"), S = l.useState("mounted"), N = l.useState("openChangeReason"), k = l.useState("activeTriggerElement"), R = l.useState("floatingRootContext"), M = R.useState("floatingId"), T = l.useState("disabled"), A = l.useState("openOnHover"), _ = l.useState("closeDelay");
|
|
12877
12877
|
Jt({
|
|
12878
12878
|
open: m,
|
|
12879
12879
|
ref: l.context.popupRef,
|
|
@@ -12881,11 +12881,11 @@ const YC = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
12881
12881
|
m && l.context.onOpenChangeComplete?.(!0);
|
|
12882
12882
|
}
|
|
12883
12883
|
}), Tm(R, {
|
|
12884
|
-
enabled:
|
|
12884
|
+
enabled: A && !T,
|
|
12885
12885
|
closeDelay: _
|
|
12886
12886
|
});
|
|
12887
|
-
const F = i === void 0 ? PC(l.context.popupRef) : i,
|
|
12888
|
-
l.useSyncedValue("focusManagerModal",
|
|
12887
|
+
const F = i === void 0 ? PC(l.context.popupRef) : i, O = E !== !1 && h;
|
|
12888
|
+
l.useSyncedValue("focusManagerModal", O);
|
|
12889
12889
|
const D = l.useStateSetter("popupElement"), z = {
|
|
12890
12890
|
open: m,
|
|
12891
12891
|
side: u.side,
|
|
@@ -12910,7 +12910,7 @@ const YC = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
12910
12910
|
return /* @__PURE__ */ d(_a, {
|
|
12911
12911
|
context: R,
|
|
12912
12912
|
openInteractionType: g,
|
|
12913
|
-
modal:
|
|
12913
|
+
modal: O,
|
|
12914
12914
|
disabled: !S || N === jt,
|
|
12915
12915
|
initialFocus: F,
|
|
12916
12916
|
returnFocus: a,
|
|
@@ -13074,12 +13074,12 @@ const QC = Em(function(t) {
|
|
|
13074
13074
|
triggerId: p,
|
|
13075
13075
|
defaultTriggerId: f = null,
|
|
13076
13076
|
children: h
|
|
13077
|
-
} = t, m = Sm((T,
|
|
13077
|
+
} = t, m = Sm((T, A) => new PF({
|
|
13078
13078
|
open: r,
|
|
13079
13079
|
openProp: o,
|
|
13080
13080
|
activeTriggerId: f,
|
|
13081
13081
|
triggerIdProp: p
|
|
13082
|
-
}, T,
|
|
13082
|
+
}, T, A));
|
|
13083
13083
|
m.useControlledProp("openProp", o), m.useControlledProp("triggerIdProp", p), m.useContextCallback("onOpenChange", c), m.useContextCallback("onOpenChangeComplete", l);
|
|
13084
13084
|
const g = m.useState("open"), b = !n && g, x = m.useState("activeTriggerId"), w = m.useState("mounted"), v = m.useState("payload");
|
|
13085
13085
|
m.useSyncedValues({
|
|
@@ -13191,13 +13191,13 @@ const eE = RC(function(t, n) {
|
|
|
13191
13191
|
closeDelay: N
|
|
13192
13192
|
}), M = _F(), {
|
|
13193
13193
|
delayRef: T,
|
|
13194
|
-
isInstantPhase:
|
|
13194
|
+
isInstantPhase: A,
|
|
13195
13195
|
hasProvider: _
|
|
13196
13196
|
} = XA(C, {
|
|
13197
13197
|
open: v
|
|
13198
13198
|
}), F = Mm(C);
|
|
13199
|
-
b.useSyncedValue("isInstantPhase",
|
|
13200
|
-
const
|
|
13199
|
+
b.useSyncedValue("isInstantPhase", A);
|
|
13200
|
+
const O = b.useState("disabled"), D = c ?? O, z = Ot(D), V = b.useState("trackCursorAxis"), H = b.useState("disableHoverablePopup"), P = y.useRef(!1), L = Nt(), $ = y.useRef(void 0);
|
|
13201
13201
|
function U() {
|
|
13202
13202
|
return _ ? No(T.current, "open") === 0 ? 0 : l ?? M ?? iy : S;
|
|
13203
13203
|
}
|
|
@@ -13349,7 +13349,7 @@ const rE = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
13349
13349
|
collisionAvoidance: b = hm,
|
|
13350
13350
|
style: x,
|
|
13351
13351
|
...w
|
|
13352
|
-
} = t, v = La(), C = $F(), E = v.useState("open"), S = v.useState("mounted"), N = v.useState("trackCursorAxis"), k = v.useState("disableHoverablePopup"), R = v.useState("floatingRootContext"), M = v.useState("instantType"), T = v.useState("transitionStatus"),
|
|
13352
|
+
} = t, v = La(), C = $F(), E = v.useState("open"), S = v.useState("mounted"), N = v.useState("trackCursorAxis"), k = v.useState("disableHoverablePopup"), R = v.useState("floatingRootContext"), M = v.useState("instantType"), T = v.useState("transitionStatus"), A = v.useState("adaptiveOrigin"), _ = $a({
|
|
13353
13353
|
anchor: s,
|
|
13354
13354
|
positionMethod: i,
|
|
13355
13355
|
floatingRootContext: R,
|
|
@@ -13365,14 +13365,14 @@ const rE = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
13365
13365
|
disableAnchorTracking: g,
|
|
13366
13366
|
keepMounted: C,
|
|
13367
13367
|
collisionAvoidance: b,
|
|
13368
|
-
adaptiveOrigin:
|
|
13368
|
+
adaptiveOrigin: A
|
|
13369
13369
|
}), F = y.useMemo(() => ({
|
|
13370
13370
|
open: E,
|
|
13371
13371
|
side: _.side,
|
|
13372
13372
|
align: _.align,
|
|
13373
13373
|
anchorHidden: _.anchorHidden,
|
|
13374
13374
|
instant: N !== "none" ? "tracking-cursor" : M
|
|
13375
|
-
}), [E, _.side, _.align, _.anchorHidden, N, M]),
|
|
13375
|
+
}), [E, _.side, _.align, _.anchorHidden, N, M]), O = Va(t, F, {
|
|
13376
13376
|
styles: _.positionerStyles,
|
|
13377
13377
|
transitionStatus: T,
|
|
13378
13378
|
props: w,
|
|
@@ -13382,7 +13382,7 @@ const rE = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
13382
13382
|
});
|
|
13383
13383
|
return /* @__PURE__ */ d(Km.Provider, {
|
|
13384
13384
|
value: _,
|
|
13385
|
-
children:
|
|
13385
|
+
children: O
|
|
13386
13386
|
});
|
|
13387
13387
|
});
|
|
13388
13388
|
process.env.NODE_ENV !== "production" && (rE.displayName = "TooltipPositioner");
|
|
@@ -13836,60 +13836,66 @@ function Je({
|
|
|
13836
13836
|
onClick: f,
|
|
13837
13837
|
disabledReason: h,
|
|
13838
13838
|
disabledReasonTooltip: m = !0,
|
|
13839
|
-
|
|
13840
|
-
|
|
13841
|
-
|
|
13839
|
+
attention: g = !1,
|
|
13840
|
+
ref: b,
|
|
13841
|
+
"aria-disabled": x,
|
|
13842
|
+
...w
|
|
13842
13843
|
}) {
|
|
13843
|
-
const [
|
|
13844
|
-
function
|
|
13845
|
-
if (
|
|
13846
|
-
|
|
13844
|
+
const [v, C] = ae([]), E = ve(0), S = Tt(), N = h !== void 0, k = N ? !0 : x, R = i || l || N || k === !0 || k === "true";
|
|
13845
|
+
function M(_) {
|
|
13846
|
+
if (N) {
|
|
13847
|
+
_.preventDefault();
|
|
13847
13848
|
return;
|
|
13848
13849
|
}
|
|
13849
|
-
f?.(
|
|
13850
|
+
f?.(_);
|
|
13850
13851
|
}
|
|
13851
|
-
function
|
|
13852
|
-
if (p?.(
|
|
13853
|
-
const
|
|
13854
|
-
id:
|
|
13855
|
-
x:
|
|
13856
|
-
y:
|
|
13857
|
-
size:
|
|
13852
|
+
function T(_) {
|
|
13853
|
+
if (p?.(_), t === "link" || n === "2xs" || R) return;
|
|
13854
|
+
const F = _.currentTarget.getBoundingClientRect(), O = Math.max(_.clientX - F.left, F.right - _.clientX), D = Math.max(_.clientY - F.top, F.bottom - _.clientY), z = 2 * Math.hypot(O, D), V = {
|
|
13855
|
+
id: E.current++,
|
|
13856
|
+
x: _.clientX - F.left,
|
|
13857
|
+
y: _.clientY - F.top,
|
|
13858
|
+
size: z
|
|
13858
13859
|
};
|
|
13859
|
-
|
|
13860
|
+
C((H) => [...H, V]);
|
|
13860
13861
|
}
|
|
13861
|
-
const
|
|
13862
|
+
const A = Mu({
|
|
13862
13863
|
render: s,
|
|
13863
|
-
ref:
|
|
13864
|
+
ref: b,
|
|
13864
13865
|
defaultTagName: "button",
|
|
13865
13866
|
props: {
|
|
13866
|
-
className: B(
|
|
13867
|
+
className: B(
|
|
13868
|
+
pE({ variant: t, size: n, iconOnly: r, fullWidth: o }),
|
|
13869
|
+
g && !R && "dx-attention",
|
|
13870
|
+
e
|
|
13871
|
+
),
|
|
13872
|
+
"data-attention": g && !R ? "" : void 0,
|
|
13867
13873
|
disabled: l ?? i,
|
|
13868
|
-
"aria-disabled":
|
|
13874
|
+
"aria-disabled": k,
|
|
13869
13875
|
/* The tooltip below carries the VISUAL reason; Base UI's tooltip does not
|
|
13870
13876
|
wire `aria-describedby` back to its trigger (measured, not assumed —
|
|
13871
13877
|
see `IconButton`'s own header), so a screen reader would announce the
|
|
13872
13878
|
button, dimmed, and never say why without this. */
|
|
13873
|
-
"aria-describedby":
|
|
13879
|
+
"aria-describedby": N ? S : void 0,
|
|
13874
13880
|
"data-loading": i || void 0,
|
|
13875
13881
|
"aria-busy": i || void 0,
|
|
13876
|
-
onPointerDown:
|
|
13877
|
-
onClick:
|
|
13882
|
+
onPointerDown: T,
|
|
13883
|
+
onClick: M,
|
|
13878
13884
|
children: /* @__PURE__ */ I(tt, { children: [
|
|
13879
|
-
|
|
13885
|
+
v.map((_) => /* @__PURE__ */ d(
|
|
13880
13886
|
"span",
|
|
13881
13887
|
{
|
|
13882
13888
|
"aria-hidden": !0,
|
|
13883
|
-
onAnimationEnd: () =>
|
|
13889
|
+
onAnimationEnd: () => C((F) => F.filter((O) => O.id !== _.id)),
|
|
13884
13890
|
className: "pointer-events-none absolute rounded-full bg-current opacity-0 [animation:dx-ripple_var(--dur-slower)_var(--ease-standard)_forwards]",
|
|
13885
13891
|
style: {
|
|
13886
|
-
left:
|
|
13887
|
-
top:
|
|
13888
|
-
width:
|
|
13889
|
-
height:
|
|
13892
|
+
left: _.x - _.size / 2,
|
|
13893
|
+
top: _.y - _.size / 2,
|
|
13894
|
+
width: _.size,
|
|
13895
|
+
height: _.size
|
|
13890
13896
|
}
|
|
13891
13897
|
},
|
|
13892
|
-
|
|
13898
|
+
_.id
|
|
13893
13899
|
)),
|
|
13894
13900
|
i && /* @__PURE__ */ d("span", { className: "absolute inset-0 grid place-items-center", children: /* @__PURE__ */ d(Ao, { size: BF[n ?? "md"] }) }),
|
|
13895
13901
|
/* @__PURE__ */ I(
|
|
@@ -13906,12 +13912,12 @@ function Je({
|
|
|
13906
13912
|
]
|
|
13907
13913
|
}
|
|
13908
13914
|
),
|
|
13909
|
-
|
|
13915
|
+
N && /* @__PURE__ */ d("span", { id: S, className: "sr-only", children: h })
|
|
13910
13916
|
] }),
|
|
13911
|
-
...
|
|
13917
|
+
...w
|
|
13912
13918
|
}
|
|
13913
13919
|
});
|
|
13914
|
-
return !
|
|
13920
|
+
return !N || !m ? A : /* @__PURE__ */ d(Kt, { content: h, side: "top", children: A });
|
|
13915
13921
|
}
|
|
13916
13922
|
function pY({
|
|
13917
13923
|
leading: e,
|
|
@@ -14665,13 +14671,13 @@ function ZF(e) {
|
|
|
14665
14671
|
};
|
|
14666
14672
|
uy(P, b), M($, L), r($);
|
|
14667
14673
|
}
|
|
14668
|
-
const
|
|
14674
|
+
const A = b.size > 0 ? cy(b, t.current) : g.current;
|
|
14669
14675
|
if (k) {
|
|
14670
|
-
if (l.valid !== !1 || !
|
|
14676
|
+
if (l.valid !== !1 || !A)
|
|
14671
14677
|
return;
|
|
14672
|
-
const P =
|
|
14678
|
+
const P = A.validity;
|
|
14673
14679
|
if (!P.valueMissing) {
|
|
14674
|
-
T(
|
|
14680
|
+
T(A, !1);
|
|
14675
14681
|
return;
|
|
14676
14682
|
}
|
|
14677
14683
|
for (const L of Pf)
|
|
@@ -14691,15 +14697,15 @@ function ZF(e) {
|
|
|
14691
14697
|
return $ && !c.current && (L.valid = !0, L.valueMissing = !1), L;
|
|
14692
14698
|
}
|
|
14693
14699
|
m.clear();
|
|
14694
|
-
let F = null,
|
|
14695
|
-
const D =
|
|
14700
|
+
let F = null, O = [];
|
|
14701
|
+
const D = A ? _(A) : {
|
|
14696
14702
|
...ha,
|
|
14697
14703
|
valid: !0
|
|
14698
14704
|
};
|
|
14699
14705
|
let z;
|
|
14700
14706
|
const V = u();
|
|
14701
|
-
if (
|
|
14702
|
-
z =
|
|
14707
|
+
if (A && A.validationMessage && !V)
|
|
14708
|
+
z = A.validationMessage, O = [A.validationMessage];
|
|
14703
14709
|
else {
|
|
14704
14710
|
const P = Array.from(n.current.fields.values()).reduce(($, U) => (U.name && ($[U.name] = U.getValue()), $), {}), L = o(N, P);
|
|
14705
14711
|
if (typeof L == "object" && L !== null && "then" in L) {
|
|
@@ -14707,14 +14713,14 @@ function ZF(e) {
|
|
|
14707
14713
|
return;
|
|
14708
14714
|
} else
|
|
14709
14715
|
F = L;
|
|
14710
|
-
F !== null ? (D.valid = !1, D.customError = !0, Array.isArray(F) ? (
|
|
14711
|
-
`))) : F && (
|
|
14716
|
+
F !== null ? (D.valid = !1, D.customError = !0, Array.isArray(F) ? (O = F, A?.setCustomValidity(F.join(`
|
|
14717
|
+
`))) : F && (O = [F], A?.setCustomValidity(F))) : V && (uy(A, b), D.customError = !1, A && A.validationMessage ? (z = A.validationMessage, O = [A.validationMessage]) : (!A || A.validity.valid) && !D.valid && (D.valid = !0));
|
|
14712
14718
|
}
|
|
14713
14719
|
const H = {
|
|
14714
14720
|
value: N,
|
|
14715
14721
|
state: D,
|
|
14716
14722
|
error: z ?? (Array.isArray(F) ? F[0] : F ?? ""),
|
|
14717
|
-
errors:
|
|
14723
|
+
errors: O,
|
|
14718
14724
|
initialValue: s.initialValue
|
|
14719
14725
|
};
|
|
14720
14726
|
M(H), r(H);
|
|
@@ -14833,7 +14839,7 @@ const wE = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
14833
14839
|
actionsRef: b,
|
|
14834
14840
|
style: x,
|
|
14835
14841
|
...w
|
|
14836
|
-
} = t, v = ld(!0)?.disabled, C = ge(c || (() => null)), E = v || f, [S, N] = y.useState(!1), [k, R] = y.useState(!1), [M, T] = y.useState(!1), [
|
|
14842
|
+
} = t, v = ld(!0)?.disabled, C = ge(c || (() => null)), E = v || f, [S, N] = y.useState(!1), [k, R] = y.useState(!1), [M, T] = y.useState(!1), [A, _] = y.useState(!1), F = m ?? k, O = g ?? S, D = y.useRef(F), z = y.useRef(void 0), [V, H] = y.useState(), P = p ?? V;
|
|
14837
14843
|
ye(() => {
|
|
14838
14844
|
m !== void 0 && (D.current = m);
|
|
14839
14845
|
}, [m]);
|
|
@@ -14849,12 +14855,12 @@ const wE = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
14849
14855
|
initialValue: null
|
|
14850
14856
|
}), j = !W && (E ? null : X.state.valid), Z = y.useMemo(() => ({
|
|
14851
14857
|
disabled: E,
|
|
14852
|
-
touched:
|
|
14858
|
+
touched: O,
|
|
14853
14859
|
dirty: F,
|
|
14854
14860
|
valid: j,
|
|
14855
14861
|
filled: M,
|
|
14856
|
-
focused:
|
|
14857
|
-
}), [E,
|
|
14862
|
+
focused: A
|
|
14863
|
+
}), [E, O, F, j, M, A]), ne = ZF({
|
|
14858
14864
|
setValidityData: K,
|
|
14859
14865
|
validate: C,
|
|
14860
14866
|
validityData: X,
|
|
@@ -14994,14 +15000,14 @@ const JF = {
|
|
|
14994
15000
|
const S = y.useRef(null), [N, k] = y.useState(null), [R, M] = y.useState(null);
|
|
14995
15001
|
let T = u.error;
|
|
14996
15002
|
!x && b ? T = g : u.errors.length > 1 && (T = u.errors);
|
|
14997
|
-
let
|
|
14998
|
-
Array.isArray(T) && (
|
|
15003
|
+
let A = T;
|
|
15004
|
+
Array.isArray(T) && (A = T.length > 1 ? /* @__PURE__ */ d("ul", {
|
|
14999
15005
|
children: T.map((D) => /* @__PURE__ */ d("li", {
|
|
15000
15006
|
children: D
|
|
15001
15007
|
}, D))
|
|
15002
15008
|
}) : T[0]);
|
|
15003
15009
|
const _ = Array.isArray(T) ? JSON.stringify(T) : T;
|
|
15004
|
-
w && _ !== R && (M(_), k(
|
|
15010
|
+
w && _ !== R && (M(_), k(A)), Jt({
|
|
15005
15011
|
open: w,
|
|
15006
15012
|
ref: S,
|
|
15007
15013
|
onComplete() {
|
|
@@ -15011,17 +15017,17 @@ const JF = {
|
|
|
15011
15017
|
const F = {
|
|
15012
15018
|
...p,
|
|
15013
15019
|
transitionStatus: C
|
|
15014
|
-
},
|
|
15020
|
+
}, O = Ee("div", t, {
|
|
15015
15021
|
ref: [n, S],
|
|
15016
15022
|
state: F,
|
|
15017
15023
|
props: [{
|
|
15018
15024
|
id: l,
|
|
15019
|
-
children: w ?
|
|
15025
|
+
children: w ? A : N
|
|
15020
15026
|
}, c],
|
|
15021
15027
|
stateAttributesMapping: JF,
|
|
15022
15028
|
enabled: v
|
|
15023
15029
|
});
|
|
15024
|
-
return v ?
|
|
15030
|
+
return v ? O : null;
|
|
15025
15031
|
});
|
|
15026
15032
|
process.env.NODE_ENV !== "production" && (kE.displayName = "FieldError");
|
|
15027
15033
|
const NE = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
@@ -15154,7 +15160,7 @@ const RE = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
15154
15160
|
...m,
|
|
15155
15161
|
disabled: R
|
|
15156
15162
|
}, {
|
|
15157
|
-
labelId:
|
|
15163
|
+
labelId: A
|
|
15158
15164
|
} = hn(), _ = Lr({
|
|
15159
15165
|
id: s
|
|
15160
15166
|
});
|
|
@@ -15166,12 +15172,12 @@ const RE = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
15166
15172
|
ye(() => {
|
|
15167
15173
|
p && F.current === $t(Ze(F.current)) && C(!0);
|
|
15168
15174
|
}, [p, C]);
|
|
15169
|
-
const [
|
|
15175
|
+
const [O] = cn({
|
|
15170
15176
|
controlled: a,
|
|
15171
15177
|
default: u,
|
|
15172
15178
|
name: "FieldControl",
|
|
15173
15179
|
state: "value"
|
|
15174
|
-
}), D = a !== void 0, z = D ?
|
|
15180
|
+
}), D = a !== void 0, z = D ? O : void 0, V = ge(() => N.inputRef.current?.value);
|
|
15175
15181
|
return io(N.inputRef, _, z, V, !R, i), Ee("input", t, {
|
|
15176
15182
|
ref: [n, F],
|
|
15177
15183
|
state: T,
|
|
@@ -15180,7 +15186,7 @@ const RE = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
15180
15186
|
disabled: R,
|
|
15181
15187
|
name: M,
|
|
15182
15188
|
ref: N.inputRef,
|
|
15183
|
-
"aria-labelledby":
|
|
15189
|
+
"aria-labelledby": A,
|
|
15184
15190
|
autoFocus: p,
|
|
15185
15191
|
...D ? {
|
|
15186
15192
|
value: z
|
|
@@ -15590,13 +15596,13 @@ function AE(e) {
|
|
|
15590
15596
|
function C(R) {
|
|
15591
15597
|
g(!1), a(t.current.failureMessage), t.current.onError?.(R), l((M) => M + 1);
|
|
15592
15598
|
}
|
|
15593
|
-
function E(R, M, T,
|
|
15599
|
+
function E(R, M, T, A) {
|
|
15594
15600
|
const _ = (F) => {
|
|
15595
15601
|
h.current = null;
|
|
15596
15602
|
try {
|
|
15597
|
-
M === p.current ? T(F) : ("error" in F && t.current.onError?.(F.error),
|
|
15603
|
+
M === p.current ? T(F) : ("error" in F && t.current.onError?.(F.error), A?.(F));
|
|
15598
15604
|
} finally {
|
|
15599
|
-
for (const
|
|
15605
|
+
for (const O of m.current.splice(0)) O();
|
|
15600
15606
|
}
|
|
15601
15607
|
};
|
|
15602
15608
|
h.current = R.then(
|
|
@@ -15638,7 +15644,7 @@ function AE(e) {
|
|
|
15638
15644
|
});
|
|
15639
15645
|
return;
|
|
15640
15646
|
}
|
|
15641
|
-
const
|
|
15647
|
+
const A = p.current;
|
|
15642
15648
|
let _;
|
|
15643
15649
|
try {
|
|
15644
15650
|
_ = t.current.onCommit(R, f.current);
|
|
@@ -15650,7 +15656,7 @@ function AE(e) {
|
|
|
15650
15656
|
N(_);
|
|
15651
15657
|
return;
|
|
15652
15658
|
}
|
|
15653
|
-
g(!0), E(_,
|
|
15659
|
+
g(!0), E(_, A, (F) => "error" in F ? C(F.error) : N(F.outcome));
|
|
15654
15660
|
}
|
|
15655
15661
|
return {
|
|
15656
15662
|
pending: n,
|
|
@@ -15843,19 +15849,19 @@ function c$({ delayMs: e, session: t, elRef: n, openRef: r, composingRef: o, ...
|
|
|
15843
15849
|
return;
|
|
15844
15850
|
}
|
|
15845
15851
|
const T = t.token();
|
|
15846
|
-
let
|
|
15852
|
+
let A;
|
|
15847
15853
|
try {
|
|
15848
|
-
|
|
15854
|
+
A = m.current.onCommit(R, u.current);
|
|
15849
15855
|
} catch (_) {
|
|
15850
15856
|
t.fail(_);
|
|
15851
15857
|
return;
|
|
15852
15858
|
}
|
|
15853
|
-
if (!TE(
|
|
15854
|
-
S(R, k, { outcome:
|
|
15859
|
+
if (!TE(A)) {
|
|
15860
|
+
S(R, k, { outcome: A });
|
|
15855
15861
|
return;
|
|
15856
15862
|
}
|
|
15857
15863
|
k === "commit" ? t.setPending(!0) : c(!0), t.track(
|
|
15858
|
-
|
|
15864
|
+
A,
|
|
15859
15865
|
T,
|
|
15860
15866
|
(_) => S(R, k, _),
|
|
15861
15867
|
(_) => {
|
|
@@ -15867,8 +15873,8 @@ function c$({ delayMs: e, session: t, elRef: n, openRef: r, composingRef: o, ...
|
|
|
15867
15873
|
c(!1);
|
|
15868
15874
|
const T = "outcome" in M && !yc(M.outcome);
|
|
15869
15875
|
T && (u.current = k);
|
|
15870
|
-
const
|
|
15871
|
-
if (f.current = "none",
|
|
15876
|
+
const A = f.current;
|
|
15877
|
+
if (f.current = "none", A === "cancel") {
|
|
15872
15878
|
"error" in M && m.current.onError?.(M.error), m.current.close();
|
|
15873
15879
|
return;
|
|
15874
15880
|
}
|
|
@@ -15877,7 +15883,7 @@ function c$({ delayMs: e, session: t, elRef: n, openRef: r, composingRef: o, ...
|
|
|
15877
15883
|
"error" in M ? t.fail(M.error) : yc(M.outcome) && t.refuse(M.outcome.refusal, "onCommit");
|
|
15878
15884
|
return;
|
|
15879
15885
|
}
|
|
15880
|
-
if (R === "commit" ||
|
|
15886
|
+
if (R === "commit" || A === "commit") {
|
|
15881
15887
|
E("commit");
|
|
15882
15888
|
return;
|
|
15883
15889
|
}
|
|
@@ -15914,7 +15920,7 @@ function bY(e) {
|
|
|
15914
15920
|
`InlineEdit: autosaveMs must be a positive number of milliseconds, got ${String(l)}. Omit it to commit only on blur or Enter.`
|
|
15915
15921
|
);
|
|
15916
15922
|
Qm("InlineEdit", f, h);
|
|
15917
|
-
const v = c === "multiline", C = e.failureMessage ?? PE(v && l === void 0 ? "Ctrl+Enter" : "Enter"), E = s$({ size: a }), S = f !== void 0, [N, k] = Ws(f, !1, h), [R, M] = ae(t.length === 0), T = ve(null),
|
|
15923
|
+
const v = c === "multiline", C = e.failureMessage ?? PE(v && l === void 0 ? "Ctrl+Enter" : "Enter"), E = s$({ size: a }), S = f !== void 0, [N, k] = Ws(f, !1, h), [R, M] = ae(t.length === 0), T = ve(null), A = ve(!1), _ = ve(!1), F = ve(!1), O = AE({
|
|
15918
15924
|
component: "InlineEdit",
|
|
15919
15925
|
value: t,
|
|
15920
15926
|
onCommit: n,
|
|
@@ -15924,15 +15930,15 @@ function bY(e) {
|
|
|
15924
15930
|
refocus: () => T.current?.focus()
|
|
15925
15931
|
}), D = c$({
|
|
15926
15932
|
delayMs: l,
|
|
15927
|
-
session:
|
|
15933
|
+
session: O,
|
|
15928
15934
|
elRef: T,
|
|
15929
|
-
openRef:
|
|
15935
|
+
openRef: A,
|
|
15930
15936
|
composingRef: _,
|
|
15931
15937
|
validate: r,
|
|
15932
15938
|
onCommit: n,
|
|
15933
15939
|
onError: p,
|
|
15934
15940
|
close: K
|
|
15935
|
-
}), { pending: z, refusal: V, blocked: H } =
|
|
15941
|
+
}), { pending: z, refusal: V, blocked: H } = O, P = Tt(), L = Tt(), $ = u !== void 0, U = N && !$;
|
|
15936
15942
|
Ae(() => {
|
|
15937
15943
|
S && N && $ && k(!1);
|
|
15938
15944
|
}, [S, N, $, k]);
|
|
@@ -15942,7 +15948,7 @@ function bY(e) {
|
|
|
15942
15948
|
Ae(() => {
|
|
15943
15949
|
const ie = T.current;
|
|
15944
15950
|
if (!ie) return;
|
|
15945
|
-
U && !F.current ? (
|
|
15951
|
+
U && !F.current ? (O.begin(t, o?.(t) ?? null), D.seed(t), A.current = !0, py(ie, t), _E(ie), ie.focus(), M(t.length === 0)) : U || (A.current && X(), py(ie, t), M(t.length === 0)), F.current = U;
|
|
15946
15952
|
}, [U, t]);
|
|
15947
15953
|
function Y() {
|
|
15948
15954
|
return T.current ? DE(T.current) : "";
|
|
@@ -15952,18 +15958,18 @@ function bY(e) {
|
|
|
15952
15958
|
S || $ || U || z || k(!0);
|
|
15953
15959
|
}
|
|
15954
15960
|
function X() {
|
|
15955
|
-
|
|
15961
|
+
A.current = !1, O.end(), D.reset();
|
|
15956
15962
|
}
|
|
15957
15963
|
function K() {
|
|
15958
15964
|
X(), k(!1);
|
|
15959
15965
|
}
|
|
15960
15966
|
function j() {
|
|
15961
|
-
_.current ||
|
|
15967
|
+
_.current || O.commit(Y(), r);
|
|
15962
15968
|
}
|
|
15963
15969
|
function Z() {
|
|
15964
15970
|
if (_.current) return;
|
|
15965
15971
|
const ie = Y();
|
|
15966
|
-
M(ie.length === 0),
|
|
15972
|
+
M(ie.length === 0), O.setRefusal(o?.(ie) ?? null), O.clearFailure(), D.noteText(ie);
|
|
15967
15973
|
}
|
|
15968
15974
|
function ne() {
|
|
15969
15975
|
_.current = !0;
|
|
@@ -15998,7 +16004,7 @@ function bY(e) {
|
|
|
15998
16004
|
`), Z();
|
|
15999
16005
|
}
|
|
16000
16006
|
function fe() {
|
|
16001
|
-
!
|
|
16007
|
+
!A.current || z || _.current || H === null && (D.enabled ? D.save("commit") : j());
|
|
16002
16008
|
}
|
|
16003
16009
|
const pe = [H !== null ? L : null, $ ? P : null].filter(Boolean).join(" ") || void 0, ce = Mu({
|
|
16004
16010
|
render: m,
|
|
@@ -17008,7 +17014,7 @@ function W$(e, t, n, r, o, s) {
|
|
|
17008
17014
|
if (ga(F.text) >= k) {
|
|
17009
17015
|
if (M.length) {
|
|
17010
17016
|
f = !0;
|
|
17011
|
-
for (const
|
|
17017
|
+
for (const O of M) R.push({ text: "", start: O.start });
|
|
17012
17018
|
M.length = 0;
|
|
17013
17019
|
}
|
|
17014
17020
|
R.push(ba(F, k)), h++;
|
|
@@ -17025,8 +17031,8 @@ function W$(e, t, n, r, o, s) {
|
|
|
17025
17031
|
F && (c ? F[3] : F[2]) === l && (f = !0);
|
|
17026
17032
|
}
|
|
17027
17033
|
let T = null;
|
|
17028
|
-
const
|
|
17029
|
-
|
|
17034
|
+
const A = A$.exec(R[0].text);
|
|
17035
|
+
A && (T = A[1] !== " ", v.checked = T, Zt(n, R[0].start, R[0].start + 3, "marker"), R[0] = { text: R[0].text.slice(A[0].length), start: R[0].start + A[0].length }), p.push({ checked: T, children: pd(R, n, r + 1, o) });
|
|
17030
17036
|
const _ = R[R.length - 1];
|
|
17031
17037
|
Jn(n, _.start + _.text.length);
|
|
17032
17038
|
}
|
|
@@ -17365,7 +17371,7 @@ const rV = {
|
|
|
17365
17371
|
w && l.context.onOpenChangeComplete?.(!0);
|
|
17366
17372
|
}
|
|
17367
17373
|
});
|
|
17368
|
-
const k = a === void 0 ? PC(l.context.popupRef) : a, R = x > 0, M = l.useStateSetter("popupElement"),
|
|
17374
|
+
const k = a === void 0 ? PC(l.context.popupRef) : a, R = x > 0, M = l.useStateSetter("popupElement"), A = Ee("div", t, {
|
|
17369
17375
|
state: {
|
|
17370
17376
|
open: w,
|
|
17371
17377
|
nested: b,
|
|
@@ -17398,7 +17404,7 @@ const rV = {
|
|
|
17398
17404
|
returnFocus: i,
|
|
17399
17405
|
modal: m !== !1,
|
|
17400
17406
|
restoreFocus: "popup",
|
|
17401
|
-
children:
|
|
17407
|
+
children: A
|
|
17402
17408
|
});
|
|
17403
17409
|
});
|
|
17404
17410
|
process.env.NODE_ENV !== "production" && (ja.displayName = "DialogPopup");
|
|
@@ -17548,13 +17554,13 @@ function qE(e, t) {
|
|
|
17548
17554
|
disablePointerDismissal: b,
|
|
17549
17555
|
nested: v,
|
|
17550
17556
|
role: x
|
|
17551
|
-
}, E = Sm((T,
|
|
17557
|
+
}, E = Sm((T, A) => new iV({
|
|
17552
17558
|
open: o,
|
|
17553
17559
|
openProp: r,
|
|
17554
17560
|
activeTriggerId: f,
|
|
17555
17561
|
triggerIdProp: p,
|
|
17556
17562
|
...C
|
|
17557
|
-
}, T,
|
|
17563
|
+
}, T, A), !0);
|
|
17558
17564
|
E.useControlledProp("openProp", r), E.useControlledProp("triggerIdProp", p), E.useSyncedValues(C), E.useContextCallback("onOpenChange", s), E.useContextCallback("onOpenChangeComplete", i);
|
|
17559
17565
|
const S = E.useState("open"), N = E.useState("mounted"), k = E.useState("payload");
|
|
17560
17566
|
OC(E, S), qu(E);
|
|
@@ -17624,8 +17630,8 @@ const md = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
17624
17630
|
} = zt({
|
|
17625
17631
|
disabled: i,
|
|
17626
17632
|
native: a
|
|
17627
|
-
}), k = hi(b), R = $m(() => m.select("open"), (
|
|
17628
|
-
m.set("openMethod",
|
|
17633
|
+
}), k = hi(b), R = $m(() => m.select("open"), (A) => {
|
|
17634
|
+
m.set("openMethod", A);
|
|
17629
17635
|
}), M = {
|
|
17630
17636
|
disabled: i,
|
|
17631
17637
|
open: x
|
|
@@ -19124,15 +19130,15 @@ const aS = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
19124
19130
|
}, R = [N, n], M = [{
|
|
19125
19131
|
"aria-pressed": C,
|
|
19126
19132
|
onClick(_) {
|
|
19127
|
-
const F = !C,
|
|
19128
|
-
a?.(F,
|
|
19133
|
+
const F = !C, O = Se(Mt, _.nativeEvent);
|
|
19134
|
+
a?.(F, O), !O.isCanceled && (g && b?.setGroupValue?.(g, F, O), !O.isCanceled && E(F));
|
|
19129
19135
|
}
|
|
19130
19136
|
}, m, S], T = Ee("button", t, {
|
|
19131
19137
|
enabled: !b,
|
|
19132
19138
|
state: k,
|
|
19133
19139
|
ref: R,
|
|
19134
19140
|
props: M
|
|
19135
|
-
}),
|
|
19141
|
+
}), A = y.useMemo(() => ({
|
|
19136
19142
|
disabled: v,
|
|
19137
19143
|
focusableWhenDisabled: !1
|
|
19138
19144
|
}), [v]);
|
|
@@ -19141,7 +19147,7 @@ const aS = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
19141
19147
|
render: l,
|
|
19142
19148
|
className: r,
|
|
19143
19149
|
style: h,
|
|
19144
|
-
metadata:
|
|
19150
|
+
metadata: A,
|
|
19145
19151
|
state: k,
|
|
19146
19152
|
refs: R,
|
|
19147
19153
|
props: M
|
|
@@ -19280,14 +19286,14 @@ function yL(e) {
|
|
|
19280
19286
|
modifierKeys: f = vL
|
|
19281
19287
|
} = e, [h, m] = y.useState(0), g = r != null, b = y.useRef(null), x = bn(b, c), w = y.useRef([]), v = y.useRef(!1), C = i ?? h, E = ge((M, T = !1) => {
|
|
19282
19288
|
if ((a ?? m)(M), T) {
|
|
19283
|
-
const
|
|
19284
|
-
ry(b.current,
|
|
19289
|
+
const A = w.current[M];
|
|
19290
|
+
ry(b.current, A, s, n);
|
|
19285
19291
|
}
|
|
19286
19292
|
}), S = ge((M) => {
|
|
19287
19293
|
if (M.size === 0 || v.current)
|
|
19288
19294
|
return;
|
|
19289
19295
|
v.current = !0;
|
|
19290
|
-
const T = Array.from(M.keys()),
|
|
19296
|
+
const T = Array.from(M.keys()), A = T.find((F) => F?.hasAttribute(hg)) ?? null, _ = A ? M.get(A)?.index ?? -1 : -1;
|
|
19291
19297
|
if (_ !== -1)
|
|
19292
19298
|
E(_);
|
|
19293
19299
|
else if (ni(T, C, p)) {
|
|
@@ -19296,7 +19302,7 @@ function yL(e) {
|
|
|
19296
19302
|
});
|
|
19297
19303
|
So(T, F) || E(F);
|
|
19298
19304
|
}
|
|
19299
|
-
ry(b.current,
|
|
19305
|
+
ry(b.current, A, s, n);
|
|
19300
19306
|
});
|
|
19301
19307
|
ye(() => {
|
|
19302
19308
|
if (p == null || i != null || !v.current)
|
|
@@ -19309,11 +19315,11 @@ function yL(e) {
|
|
|
19309
19315
|
So(M, T) || E(T);
|
|
19310
19316
|
}
|
|
19311
19317
|
}, [p, i, C, w, E]);
|
|
19312
|
-
const N = ge((M, T,
|
|
19318
|
+
const N = ge((M, T, A) => o ? o(M, T, A, w) : A), k = ge((M) => {
|
|
19313
19319
|
const T = M.key === Hc || M.key === Uc;
|
|
19314
19320
|
if (!Es.has(M.key) || !l && T || wL(M, f) || !b.current)
|
|
19315
19321
|
return;
|
|
19316
|
-
const _ = s === "rtl", F = _ ? zc : Bc,
|
|
19322
|
+
const _ = s === "rtl", F = _ ? zc : Bc, O = _ ? Bc : zc, D = n === "vertical" ? Lc : F, z = n === "vertical" ? Vc : O, V = Et(M.nativeEvent);
|
|
19317
19323
|
if (V != null && ny(V) && !cS(V)) {
|
|
19318
19324
|
const G = V.selectionStart, Y = V.selectionEnd, W = V.value;
|
|
19319
19325
|
if (G == null || M.shiftKey || G !== Y || M.key !== z && G < W.length || M.key !== D && G > 0)
|
|
@@ -19333,7 +19339,7 @@ function yL(e) {
|
|
|
19333
19339
|
orientation: n,
|
|
19334
19340
|
rtl: _
|
|
19335
19341
|
}));
|
|
19336
|
-
const $ = n !== "vertical" && M.key === F || n !== "horizontal" && M.key === Lc, U = n !== "vertical" && M.key ===
|
|
19342
|
+
const $ = n !== "vertical" && M.key === F || n !== "horizontal" && M.key === Lc, U = n !== "vertical" && M.key === O || n !== "horizontal" && M.key === Vc;
|
|
19337
19343
|
l && (M.key === Hc ? H = P : M.key === Uc && (H = L)), H === C && ($ || U) && (t && H === L && $ ? (H = P, o && (H = o(M, C, H, w))) : t && H === P && U ? (H = L, o && (H = o(M, C, H, w))) : H = dn(w.current, {
|
|
19338
19344
|
startingIndex: H,
|
|
19339
19345
|
decrement: U,
|
|
@@ -19346,8 +19352,8 @@ function yL(e) {
|
|
|
19346
19352
|
props: {
|
|
19347
19353
|
ref: x,
|
|
19348
19354
|
onFocus(M) {
|
|
19349
|
-
const T = b.current,
|
|
19350
|
-
!T ||
|
|
19355
|
+
const T = b.current, A = Et(M.nativeEvent);
|
|
19356
|
+
!T || A == null || !ny(A) || A.setSelectionRange(0, A.value.length);
|
|
19351
19357
|
},
|
|
19352
19358
|
onKeyDown: k
|
|
19353
19359
|
},
|
|
@@ -19393,7 +19399,7 @@ function xd(e) {
|
|
|
19393
19399
|
highlightedIndex: R,
|
|
19394
19400
|
onHighlightedIndexChange: M,
|
|
19395
19401
|
elementsRef: T,
|
|
19396
|
-
onMapChange:
|
|
19402
|
+
onMapChange: A,
|
|
19397
19403
|
relayKeyboardEvent: _
|
|
19398
19404
|
} = yL({
|
|
19399
19405
|
grid: p,
|
|
@@ -19413,18 +19419,18 @@ function xd(e) {
|
|
|
19413
19419
|
ref: o,
|
|
19414
19420
|
props: [k, ...s, S],
|
|
19415
19421
|
stateAttributesMapping: a
|
|
19416
|
-
}),
|
|
19422
|
+
}), O = y.useMemo(() => ({
|
|
19417
19423
|
highlightedIndex: R,
|
|
19418
19424
|
onHighlightedIndexChange: M,
|
|
19419
19425
|
highlightItemOnHover: C,
|
|
19420
19426
|
relayKeyboardEvent: _
|
|
19421
19427
|
}), [R, M, C, _]);
|
|
19422
19428
|
return /* @__PURE__ */ d(Fm.Provider, {
|
|
19423
|
-
value:
|
|
19429
|
+
value: O,
|
|
19424
19430
|
children: /* @__PURE__ */ d(ao, {
|
|
19425
19431
|
elementsRef: T,
|
|
19426
19432
|
onMapChange: (D) => {
|
|
19427
|
-
g?.(D),
|
|
19433
|
+
g?.(D), A(D);
|
|
19428
19434
|
},
|
|
19429
19435
|
children: F
|
|
19430
19436
|
})
|
|
@@ -19454,8 +19460,8 @@ const uS = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
19454
19460
|
name: "ToggleGroup",
|
|
19455
19461
|
state: "value"
|
|
19456
19462
|
}), C = ge((R, M, T) => {
|
|
19457
|
-
let
|
|
19458
|
-
c ? (
|
|
19463
|
+
let A;
|
|
19464
|
+
c ? (A = w.slice(), M ? A.push(R) : A.splice(w.indexOf(R), 1)) : A = M ? [R] : [], i?.(A, T), !T.isCanceled && v(A);
|
|
19459
19465
|
}), E = {
|
|
19460
19466
|
disabled: x,
|
|
19461
19467
|
multiple: c,
|
|
@@ -19822,17 +19828,17 @@ function bS({
|
|
|
19822
19828
|
const [S, N] = Ws(e, t ?? "", n), [k, R] = Ws(u, p, f), M = SL(o), T = Te(
|
|
19823
19829
|
() => M ? r ? ["source", "rendered"] : ["source", "rendered", "split"] : ["source"],
|
|
19824
19830
|
[M, r]
|
|
19825
|
-
), [
|
|
19831
|
+
), [A, _] = Ws(
|
|
19826
19832
|
h,
|
|
19827
19833
|
m ?? (M && r ? "rendered" : "source"),
|
|
19828
19834
|
g
|
|
19829
|
-
), F = T.includes(
|
|
19835
|
+
), F = T.includes(A) ? A : "source", O = Te(() => S.split(`
|
|
19830
19836
|
`).length, [S]), [D, z] = ae(!1), V = ve(void 0), H = ke(() => {
|
|
19831
19837
|
za(S).then(() => {
|
|
19832
19838
|
z(!0), clearTimeout(V.current), V.current = setTimeout(() => z(!1), 1600);
|
|
19833
19839
|
}).catch(() => {
|
|
19834
19840
|
});
|
|
19835
|
-
}, [S]), P = r && l !== void 0 &&
|
|
19841
|
+
}, [S]), P = r && l !== void 0 && O > l, [L, $] = ae(!1), U = P && !L, [G, Y] = ae(!1), W = Te(
|
|
19836
19842
|
() => ({
|
|
19837
19843
|
value: S,
|
|
19838
19844
|
language: o ?? null,
|
|
@@ -19845,7 +19851,7 @@ function bS({
|
|
|
19845
19851
|
views: T,
|
|
19846
19852
|
copy: H,
|
|
19847
19853
|
copied: D,
|
|
19848
|
-
lineCount:
|
|
19854
|
+
lineCount: O
|
|
19849
19855
|
}),
|
|
19850
19856
|
[
|
|
19851
19857
|
S,
|
|
@@ -19859,7 +19865,7 @@ function bS({
|
|
|
19859
19865
|
T,
|
|
19860
19866
|
H,
|
|
19861
19867
|
D,
|
|
19862
|
-
|
|
19868
|
+
O
|
|
19863
19869
|
]
|
|
19864
19870
|
), X = ks(), K = U ? l : c, j = K === void 0 ? void 0 : { maxHeight: `calc(${K} * 1lh + 2 * var(--code-pad-y))` };
|
|
19865
19871
|
return /* @__PURE__ */ d(IV, { value: W, children: /* @__PURE__ */ I(
|
|
@@ -19920,7 +19926,7 @@ function bS({
|
|
|
19920
19926
|
className: X.expand(),
|
|
19921
19927
|
children: [
|
|
19922
19928
|
/* @__PURE__ */ d(ue, { name: L ? "chevron-up" : "chevron-down", size: "xs" }),
|
|
19923
|
-
L ? "Collapse" : `Show all ${
|
|
19929
|
+
L ? "Collapse" : `Show all ${O} lines`
|
|
19924
19930
|
]
|
|
19925
19931
|
}
|
|
19926
19932
|
),
|
|
@@ -22753,11 +22759,11 @@ const Tg = {
|
|
|
22753
22759
|
highlighted: E,
|
|
22754
22760
|
checked: N
|
|
22755
22761
|
}), [C, E, N]);
|
|
22756
|
-
function
|
|
22757
|
-
const
|
|
22762
|
+
function A(F) {
|
|
22763
|
+
const O = Se(Eo, F.nativeEvent, void 0, {
|
|
22758
22764
|
preventUnmountOnClose: bt
|
|
22759
22765
|
});
|
|
22760
|
-
f?.(!N,
|
|
22766
|
+
f?.(!N, O), !O.isCanceled && k((D) => !D);
|
|
22761
22767
|
}
|
|
22762
22768
|
const _ = Ee("div", t, {
|
|
22763
22769
|
state: T,
|
|
@@ -22765,7 +22771,7 @@ const Tg = {
|
|
|
22765
22771
|
props: [S, {
|
|
22766
22772
|
role: "menuitemcheckbox",
|
|
22767
22773
|
"aria-checked": N,
|
|
22768
|
-
onClick:
|
|
22774
|
+
onClick: A
|
|
22769
22775
|
}, m, R],
|
|
22770
22776
|
ref: [M, n, g.ref]
|
|
22771
22777
|
});
|
|
@@ -22892,7 +22898,7 @@ const ok = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
22892
22898
|
enabled: k && !R && !T && w.type !== "menubar",
|
|
22893
22899
|
closeDelay: N
|
|
22894
22900
|
});
|
|
22895
|
-
const
|
|
22901
|
+
const A = c.useStateSetter("popupElement"), _ = {
|
|
22896
22902
|
transitionStatus: h,
|
|
22897
22903
|
side: l,
|
|
22898
22904
|
align: u,
|
|
@@ -22901,7 +22907,7 @@ const ok = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
22901
22907
|
instant: b
|
|
22902
22908
|
}, F = Ee("div", t, {
|
|
22903
22909
|
state: _,
|
|
22904
|
-
ref: [n, c.context.popupRef,
|
|
22910
|
+
ref: [n, c.context.popupRef, A],
|
|
22905
22911
|
stateAttributesMapping: nd,
|
|
22906
22912
|
props: [m, {
|
|
22907
22913
|
onKeyDown(D) {
|
|
@@ -22911,13 +22917,13 @@ const ok = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
22911
22917
|
"data-rootownerid": C
|
|
22912
22918
|
}]
|
|
22913
22919
|
});
|
|
22914
|
-
let
|
|
22915
|
-
return (x || w.type === "menubar" && v !== Aa) && (
|
|
22920
|
+
let O = w.type === void 0 || T;
|
|
22921
|
+
return (x || w.type === "menubar" && v !== Aa) && (O = !0), /* @__PURE__ */ d(_a, {
|
|
22916
22922
|
context: E,
|
|
22917
22923
|
openInteractionType: M,
|
|
22918
22924
|
modal: T,
|
|
22919
22925
|
disabled: !g,
|
|
22920
|
-
returnFocus: i === void 0 ?
|
|
22926
|
+
returnFocus: i === void 0 ? O : i,
|
|
22921
22927
|
initialFocus: w.type !== "menu",
|
|
22922
22928
|
restoreFocus: !0,
|
|
22923
22929
|
externalTree: w.type !== "menubar" ? S : void 0,
|
|
@@ -22972,7 +22978,7 @@ const ik = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
22972
22978
|
...w
|
|
22973
22979
|
} = t, {
|
|
22974
22980
|
store: v
|
|
22975
|
-
} = zo(), C = u5(), E = Rg(!0), S = v.useState("parent"), N = v.useState("floatingRootContext"), k = v.useState("floatingTreeRoot"), R = v.useState("mounted"), M = v.useState("open"), T = v.useState("modal"),
|
|
22981
|
+
} = zo(), C = u5(), E = Rg(!0), S = v.useState("parent"), N = v.useState("floatingRootContext"), k = v.useState("floatingTreeRoot"), R = v.useState("mounted"), M = v.useState("open"), T = v.useState("modal"), A = v.useState("openMethod"), _ = v.useState("activeTriggerElement"), F = v.useState("transitionStatus"), O = v.useState("positionerElement"), D = v.useState("instantType"), z = v.useState("adaptiveOrigin"), V = v.useState("lastOpenChangeReason"), H = v.useState("floatingNodeId"), P = v.useState("floatingParentNodeId"), L = N.useState("domReferenceElement"), $ = y.useRef(null), U = ju(O);
|
|
22976
22982
|
let G = r, Y = l, W = u, X = c, K = b;
|
|
22977
22983
|
S.type === "context-menu" && (G = r ?? S.context?.anchor, X = X ?? "start", !a && X !== "center" && (W = t.alignOffset ?? 2, Y = t.sideOffset ?? -5));
|
|
22978
22984
|
let j = a, Z = X;
|
|
@@ -23066,7 +23072,7 @@ const ik = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
23066
23072
|
nested: S.type === "menu",
|
|
23067
23073
|
instant: D
|
|
23068
23074
|
}, se = S.type === "menubar" && S.context.modal;
|
|
23069
|
-
od(M && (se || T && V !== jt),
|
|
23075
|
+
od(M && (se || T && V !== jt), A === "touch", O, _);
|
|
23070
23076
|
const pe = Va(t, J, {
|
|
23071
23077
|
styles: te.positionerStyles,
|
|
23072
23078
|
transitionStatus: F,
|
|
@@ -23189,11 +23195,11 @@ const lk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
23189
23195
|
highlighted: x,
|
|
23190
23196
|
checked: k
|
|
23191
23197
|
}), [N, x, k]);
|
|
23192
|
-
function
|
|
23193
|
-
const
|
|
23198
|
+
function A(F) {
|
|
23199
|
+
const O = Se(Eo, F.nativeEvent, void 0, {
|
|
23194
23200
|
preventUnmountOnClose: bt
|
|
23195
23201
|
});
|
|
23196
|
-
C(u,
|
|
23202
|
+
C(u, O);
|
|
23197
23203
|
}
|
|
23198
23204
|
const _ = Ee("div", t, {
|
|
23199
23205
|
state: T,
|
|
@@ -23201,7 +23207,7 @@ const lk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
23201
23207
|
props: [w, {
|
|
23202
23208
|
role: "menuitemradio",
|
|
23203
23209
|
"aria-checked": k,
|
|
23204
|
-
onClick:
|
|
23210
|
+
onClick: A
|
|
23205
23211
|
}, f, R],
|
|
23206
23212
|
ref: [M, n, h.ref]
|
|
23207
23213
|
});
|
|
@@ -23393,12 +23399,12 @@ const pk = Em(function(t) {
|
|
|
23393
23399
|
parent: E
|
|
23394
23400
|
});
|
|
23395
23401
|
S.useControlledProp("openProp", r), S.useControlledProp("triggerIdProp", m), S.useContextCallback("onOpenChangeComplete", s);
|
|
23396
|
-
const N = Mo(), k = Mo(), R = S.useState("floatingTreeRoot"), M = vm(R), T = Fo(),
|
|
23402
|
+
const N = Mo(), k = Mo(), R = S.useState("floatingTreeRoot"), M = vm(R), T = Fo(), A = S.useState("open"), _ = S.useState("activeTriggerElement"), F = S.useState("positionerElement"), O = S.useState("hoverEnabled"), D = S.useState("disabled"), z = S.useState("lastOpenChangeReason"), V = S.useState("parent"), H = S.useState("activeIndex"), P = S.useState("payload"), L = S.useState("floatingParentNodeId"), $ = y.useRef(null), U = y.useRef(V.type !== "context-menu"), G = Nt(), Y = y.useRef(!0), W = Nt(), X = L != null;
|
|
23397
23403
|
process.env.NODE_ENV !== "production" && V.type !== void 0 && c !== void 0 && console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");
|
|
23398
23404
|
const {
|
|
23399
23405
|
openMethod: K,
|
|
23400
23406
|
triggerProps: j
|
|
23401
|
-
} = Vm(
|
|
23407
|
+
} = Vm(A);
|
|
23402
23408
|
S.useSyncedValues({
|
|
23403
23409
|
disabled: a,
|
|
23404
23410
|
highlightItemOnHover: b,
|
|
@@ -23408,7 +23414,7 @@ const pk = Em(function(t) {
|
|
|
23408
23414
|
}), qu(S);
|
|
23409
23415
|
const {
|
|
23410
23416
|
forceUnmount: Z
|
|
23411
|
-
} = Yu(
|
|
23417
|
+
} = Yu(A, S, () => {
|
|
23412
23418
|
S.set("allowMouseEnter", !1);
|
|
23413
23419
|
});
|
|
23414
23420
|
ye(() => {
|
|
@@ -23424,8 +23430,8 @@ const pk = Em(function(t) {
|
|
|
23424
23430
|
floatingParentNodeId: T
|
|
23425
23431
|
});
|
|
23426
23432
|
}, [x, w, M, T, S]), y.useEffect(() => {
|
|
23427
|
-
if (
|
|
23428
|
-
if (!
|
|
23433
|
+
if (A || ($.current = null), V.type === "context-menu") {
|
|
23434
|
+
if (!A) {
|
|
23429
23435
|
G.clear(), U.current = !1;
|
|
23430
23436
|
return;
|
|
23431
23437
|
}
|
|
@@ -23433,12 +23439,12 @@ const pk = Em(function(t) {
|
|
|
23433
23439
|
U.current = !0;
|
|
23434
23440
|
});
|
|
23435
23441
|
}
|
|
23436
|
-
}, [G,
|
|
23437
|
-
!
|
|
23438
|
-
}, [
|
|
23442
|
+
}, [G, A, V.type]), ye(() => {
|
|
23443
|
+
!A && !O && S.set("hoverEnabled", !0);
|
|
23444
|
+
}, [A, O, S]);
|
|
23439
23445
|
const ne = ge((re, be) => {
|
|
23440
23446
|
const Ce = be.reason;
|
|
23441
|
-
if (!re && !S.select("open") ||
|
|
23447
|
+
if (!re && !S.select("open") || A === re && be.trigger === _ && z === Ce)
|
|
23442
23448
|
return;
|
|
23443
23449
|
const De = km(be);
|
|
23444
23450
|
if (!re && be.trigger == null && (be.trigger = _ ?? void 0), o?.(re, be), be.isCanceled)
|
|
@@ -23515,7 +23521,7 @@ const pk = Em(function(t) {
|
|
|
23515
23521
|
activeIndex: H,
|
|
23516
23522
|
resetMs: ED,
|
|
23517
23523
|
onMatch: (re) => {
|
|
23518
|
-
|
|
23524
|
+
A && re !== H && S.set("activeIndex", re);
|
|
23519
23525
|
},
|
|
23520
23526
|
onTyping: ie
|
|
23521
23527
|
}), we = y.useMemo(() => {
|
|
@@ -23524,8 +23530,8 @@ const pk = Em(function(t) {
|
|
|
23524
23530
|
S.set("allowMouseEnter", !0);
|
|
23525
23531
|
}
|
|
23526
23532
|
}, j);
|
|
23527
|
-
return re["aria-haspopup"] = "menu", re["aria-expanded"] =
|
|
23528
|
-
}, [S, he.reference, le.reference, fe.reference, j,
|
|
23533
|
+
return re["aria-haspopup"] = "menu", re["aria-expanded"] = A, re;
|
|
23534
|
+
}, [S, he.reference, le.reference, fe.reference, j, A]), oe = y.useMemo(() => {
|
|
23529
23535
|
const re = pn(le.trigger, fe.trigger, j);
|
|
23530
23536
|
return re["aria-haspopup"] = "menu", re["aria-expanded"] = !1, re;
|
|
23531
23537
|
}, [le.trigger, fe.trigger, j]), ee = y.useMemo(() => pn(gi, {
|
|
@@ -23633,15 +23639,15 @@ const mk = RC(function(t, n) {
|
|
|
23633
23639
|
} = t, g = zo(!0), x = Ju(f) ?? g?.store;
|
|
23634
23640
|
if (!x)
|
|
23635
23641
|
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." : Qe(85));
|
|
23636
|
-
const w = St(c), v = x.useState("isTriggerActive", w), C = x.useState("floatingRootContext"), E = x.useState("isOpenedByTrigger", w), S = x.useState("triggerPopupId", w), N = y.useRef(null), k = C5(), R = td(!0), M = $o(), T = y.useMemo(() => M ?? new gm(), [M]),
|
|
23642
|
+
const w = St(c), v = x.useState("isTriggerActive", w), C = x.useState("floatingRootContext"), E = x.useState("isOpenedByTrigger", w), S = x.useState("triggerPopupId", w), N = y.useRef(null), k = C5(), R = td(!0), M = $o(), T = y.useMemo(() => M ?? new gm(), [M]), A = vm(T), _ = Fo(), {
|
|
23637
23643
|
registerTrigger: F,
|
|
23638
|
-
isMountedByThisTrigger:
|
|
23644
|
+
isMountedByThisTrigger: O
|
|
23639
23645
|
} = Ku(w, N, x, {
|
|
23640
23646
|
payload: h,
|
|
23641
23647
|
closeDelay: p,
|
|
23642
23648
|
parent: k,
|
|
23643
23649
|
floatingTreeRoot: T,
|
|
23644
|
-
floatingNodeId:
|
|
23650
|
+
floatingNodeId: A,
|
|
23645
23651
|
floatingParentNodeId: _,
|
|
23646
23652
|
keyboardEventRelay: R?.relayKeyboardEvent
|
|
23647
23653
|
}), D = k.type === "menubar", z = x.useState("disabled"), V = i || z || D && k.context.disabled, {
|
|
@@ -23670,7 +23676,7 @@ const mk = RC(function(t, n) {
|
|
|
23670
23676
|
});
|
|
23671
23677
|
}, [E, U, x]);
|
|
23672
23678
|
const G = D && k.context.hasSubmenuOpen, W = Pm(C, {
|
|
23673
|
-
enabled: (l ?? G) && !V && (!D || G && !
|
|
23679
|
+
enabled: (l ?? G) && !V && (!D || G && !O),
|
|
23674
23680
|
handleClose: Dm({
|
|
23675
23681
|
blockPointerEvents: !D
|
|
23676
23682
|
}),
|
|
@@ -23696,7 +23702,7 @@ const mk = RC(function(t, n) {
|
|
|
23696
23702
|
open: E,
|
|
23697
23703
|
enabled: D,
|
|
23698
23704
|
mouseDownAction: "open"
|
|
23699
|
-
}), ne = y.useMemo(() => pn(j.reference, K.reference), [j.reference, K.reference]), te = x.useState("triggerProps",
|
|
23705
|
+
}), ne = y.useMemo(() => pn(j.reference, K.reference), [j.reference, K.reference]), te = x.useState("triggerProps", O), {
|
|
23700
23706
|
preFocusGuardRef: q,
|
|
23701
23707
|
handlePreFocusGuardFocus: J,
|
|
23702
23708
|
handleFocusTargetFocus: se
|
|
@@ -24588,7 +24594,7 @@ function J5({
|
|
|
24588
24594
|
S.current = E;
|
|
24589
24595
|
const N = ve(p);
|
|
24590
24596
|
N.current = p;
|
|
24591
|
-
const [k, R] = ae(e.length === 0), M = Tt(), T = ve(l), [
|
|
24597
|
+
const [k, R] = ae(e.length === 0), M = Tt(), T = ve(l), [A, _] = ae(null), [F, O] = ae(0), [D, z] = ae(null), V = ve(t);
|
|
24592
24598
|
V.current = t, Ae(() => {
|
|
24593
24599
|
if (!g.current) return;
|
|
24594
24600
|
const K = new s5({
|
|
@@ -24605,7 +24611,7 @@ function J5({
|
|
|
24605
24611
|
const j = new n5(g.current, e, {
|
|
24606
24612
|
images: K.resolve,
|
|
24607
24613
|
onChange: (q) => {
|
|
24608
|
-
R(q.length === 0),
|
|
24614
|
+
R(q.length === 0), O((J) => J + 1), K.sync(), V.current?.(q);
|
|
24609
24615
|
},
|
|
24610
24616
|
/* THE SAME ENGINE `CodeEditor` USES, on the same token names, so a fenced
|
|
24611
24617
|
block looks identical whether it is being edited here or displayed
|
|
@@ -24695,7 +24701,7 @@ function J5({
|
|
|
24695
24701
|
if (!j) return;
|
|
24696
24702
|
const Z = j.getSelection() ?? { anchor: 0, head: 0 }, ne = K(j.getSource(), Z);
|
|
24697
24703
|
ne && (j.breakUndoGroup(), j.apply(ne.splice, ne.select, "other"), j.root.focus());
|
|
24698
|
-
}, []), Y = F5(
|
|
24704
|
+
}, []), Y = F5(A, F), W = Te(() => {
|
|
24699
24705
|
const K = /* @__PURE__ */ new Map();
|
|
24700
24706
|
for (const j of Sg) {
|
|
24701
24707
|
const Z = K.get(j.group) ?? [];
|
|
@@ -24779,12 +24785,12 @@ function J5({
|
|
|
24779
24785
|
children: [
|
|
24780
24786
|
/* @__PURE__ */ d("span", { id: M, className: o ? "sr-only" : "px-3 pt-2 text-sm font-medium text-secondary", children: r }),
|
|
24781
24787
|
m ? /* @__PURE__ */ d("div", { className: "absolute inset-x-0 bottom-full z-20 mb-1", children: X }) : X,
|
|
24782
|
-
m && !n && /* @__PURE__ */ d(Uy, { surface:
|
|
24788
|
+
m && !n && /* @__PURE__ */ d(Uy, { surface: A, state: Y, run: G, container: D, external: !0 }),
|
|
24783
24789
|
/* @__PURE__ */ I("div", { ref: z, className: "relative min-w-0 overflow-x-auto", children: [
|
|
24784
24790
|
!n && /* @__PURE__ */ I(tt, { children: [
|
|
24785
|
-
!m && /* @__PURE__ */ d(Uy, { surface:
|
|
24786
|
-
/* @__PURE__ */ d(V5, { surface:
|
|
24787
|
-
/* @__PURE__ */ d(H5, { surface:
|
|
24791
|
+
!m && /* @__PURE__ */ d(Uy, { surface: A, state: Y, run: G, container: D }),
|
|
24792
|
+
/* @__PURE__ */ d(V5, { surface: A, state: Y, run: G, container: D }),
|
|
24793
|
+
/* @__PURE__ */ d(H5, { surface: A, state: Y, run: G, container: D })
|
|
24788
24794
|
] }),
|
|
24789
24795
|
k && s && /* @__PURE__ */ d(
|
|
24790
24796
|
"p",
|
|
@@ -24931,13 +24937,13 @@ function s4({
|
|
|
24931
24937
|
const m = ve(e);
|
|
24932
24938
|
m.current = e;
|
|
24933
24939
|
const [g, b] = ae(!1), [x, w] = ae(null), [v, C] = ae(0), E = ve(g), S = ve(x), N = ve(null), k = ve(null), R = ve(null), M = ve(void 0), T = ve([]);
|
|
24934
|
-
function
|
|
24940
|
+
function A() {
|
|
24935
24941
|
const L = N.current;
|
|
24936
24942
|
if (!L) throw new Error("ReadMore: content element is not mounted.");
|
|
24937
24943
|
return L.getBoundingClientRect();
|
|
24938
24944
|
}
|
|
24939
24945
|
function _() {
|
|
24940
|
-
return
|
|
24946
|
+
return A().height;
|
|
24941
24947
|
}
|
|
24942
24948
|
const F = ve(() => {
|
|
24943
24949
|
T.current.forEach((G) => cancelAnimationFrame(G)), T.current = [];
|
|
@@ -24985,7 +24991,7 @@ function s4({
|
|
|
24985
24991
|
}
|
|
24986
24992
|
return L.addEventListener("transitionend", $), () => L.removeEventListener("transitionend", $);
|
|
24987
24993
|
}, []);
|
|
24988
|
-
const
|
|
24994
|
+
const O = ve(() => {
|
|
24989
24995
|
const L = N.current;
|
|
24990
24996
|
if (!L) return;
|
|
24991
24997
|
const $ = m.current, U = o4(L, $), G = U.length > $, Y = G ? Math.min(U[$ - 1].bottom, U[$].top) : null, W = U[$ - 1] ? U[$ - 1].bottom - U[$ - 1].top : 0, X = $ >= 2 && U[$ - 2] ? U[$ - 2].bottom : 0, K = G ? Math.max(0, Y - X) : 0, j = G ? Math.min(W * Math.min(1, ($ - 1) / 2), K) : 0;
|
|
@@ -24994,8 +25000,8 @@ function s4({
|
|
|
24994
25000
|
Cn(() => {
|
|
24995
25001
|
const L = N.current;
|
|
24996
25002
|
if (!L) return;
|
|
24997
|
-
|
|
24998
|
-
const $ = new ResizeObserver(() =>
|
|
25003
|
+
O();
|
|
25004
|
+
const $ = new ResizeObserver(() => O());
|
|
24999
25005
|
return $.observe(L), () => $.disconnect();
|
|
25000
25006
|
}, []);
|
|
25001
25007
|
const D = ve(!1);
|
|
@@ -25004,7 +25010,7 @@ function s4({
|
|
|
25004
25010
|
D.current = !0;
|
|
25005
25011
|
return;
|
|
25006
25012
|
}
|
|
25007
|
-
|
|
25013
|
+
O();
|
|
25008
25014
|
}, [e]);
|
|
25009
25015
|
const z = ve(!1);
|
|
25010
25016
|
Cn(() => {
|
|
@@ -25019,7 +25025,7 @@ function s4({
|
|
|
25019
25025
|
}
|
|
25020
25026
|
function H(L) {
|
|
25021
25027
|
if (!g || p || x === null) return;
|
|
25022
|
-
const $ =
|
|
25028
|
+
const $ = A().top;
|
|
25023
25029
|
L.target.getBoundingClientRect().bottom - $ > x + Ca && f(!0);
|
|
25024
25030
|
}
|
|
25025
25031
|
const P = g && !p;
|
|
@@ -25242,7 +25248,7 @@ function d4({
|
|
|
25242
25248
|
ref: x
|
|
25243
25249
|
}) {
|
|
25244
25250
|
const w = u4(), [v, C] = ae(!1), [E, S] = ae(!1), N = e.kind === "cleared", k = e.kind === "set" ? e.value : "", R = i && e.kind === "set", M = n && e.kind === "unchanged", T = n && !N;
|
|
25245
|
-
function
|
|
25251
|
+
function A(z) {
|
|
25246
25252
|
const V = z.target.value;
|
|
25247
25253
|
t(V === "" ? { kind: "unchanged" } : { kind: "set", value: V });
|
|
25248
25254
|
}
|
|
@@ -25252,17 +25258,17 @@ function d4({
|
|
|
25252
25258
|
function F() {
|
|
25253
25259
|
t({ kind: "unchanged" });
|
|
25254
25260
|
}
|
|
25255
|
-
const
|
|
25261
|
+
const O = f4(o, s), D = l || M ? /* @__PURE__ */ I("span", { className: "flex flex-col gap-1", children: [
|
|
25256
25262
|
l,
|
|
25257
25263
|
M && /* @__PURE__ */ d("span", { className: "sr-only", children: "A secret value is currently stored for this field." }),
|
|
25258
|
-
M && (r ||
|
|
25264
|
+
M && (r || O) && /* @__PURE__ */ I("span", { className: w.metaRow(), children: [
|
|
25259
25265
|
r && /* @__PURE__ */ I("span", { className: w.hint(), children: [
|
|
25260
25266
|
r.prefix,
|
|
25261
25267
|
"…",
|
|
25262
25268
|
r.suffix
|
|
25263
25269
|
] }),
|
|
25264
|
-
r &&
|
|
25265
|
-
|
|
25270
|
+
r && O && /* @__PURE__ */ d("span", { "aria-hidden": !0, children: "·" }),
|
|
25271
|
+
O && /* @__PURE__ */ d("span", { children: O })
|
|
25266
25272
|
] })
|
|
25267
25273
|
] }) : void 0;
|
|
25268
25274
|
return /* @__PURE__ */ d(
|
|
@@ -25282,7 +25288,7 @@ function d4({
|
|
|
25282
25288
|
ref: x,
|
|
25283
25289
|
type: R && v ? "text" : "password",
|
|
25284
25290
|
value: k,
|
|
25285
|
-
onChange:
|
|
25291
|
+
onChange: A,
|
|
25286
25292
|
placeholder: N ? "Will be removed on save" : m ?? (n ? "••••••••••••" : "Not set"),
|
|
25287
25293
|
disabled: f || N,
|
|
25288
25294
|
required: p,
|
|
@@ -25481,7 +25487,7 @@ const m4 = {
|
|
|
25481
25487
|
} = x4(s), f = St(), h = Nt(), m = Nt(), {
|
|
25482
25488
|
nonce: g,
|
|
25483
25489
|
disableStyleElements: b
|
|
25484
|
-
} = zg(), [x, w] = y.useState(!1), [v, C] = y.useState(!1), [E, S] = y.useState(!1), [N, k] = y.useState(!1), [R, M] = y.useState(!1), [T,
|
|
25490
|
+
} = zg(), [x, w] = y.useState(!1), [v, C] = y.useState(!1), [E, S] = y.useState(!1), [N, k] = y.useState(!1), [R, M] = y.useState(!1), [T, A] = y.useState(Wy), [_, F] = y.useState(Wy), [O, D] = y.useState(g4), [z, V] = y.useState(b4), H = y.useRef(null), P = y.useRef(null), L = y.useRef(null), $ = y.useRef(null), U = y.useRef(null), G = y.useRef(null), Y = y.useRef(null), W = y.useRef(null), X = y.useRef(0), K = y.useRef(0), j = y.useRef(0), Z = y.useRef(0), ne = y.useRef("vertical"), te = y.useRef(m4), q = y.useRef(null);
|
|
25485
25491
|
function J(xe) {
|
|
25486
25492
|
const Q = xe ? S : C, re = xe ? h : m;
|
|
25487
25493
|
Q(!0), re.start(p4, () => {
|
|
@@ -25535,12 +25541,12 @@ const m4 = {
|
|
|
25535
25541
|
scrolling: v || E,
|
|
25536
25542
|
hasOverflowX: !z.x,
|
|
25537
25543
|
hasOverflowY: !z.y,
|
|
25538
|
-
overflowXStart:
|
|
25539
|
-
overflowXEnd:
|
|
25540
|
-
overflowYStart:
|
|
25541
|
-
overflowYEnd:
|
|
25544
|
+
overflowXStart: O.xStart,
|
|
25545
|
+
overflowXEnd: O.xEnd,
|
|
25546
|
+
overflowYStart: O.yStart,
|
|
25547
|
+
overflowYEnd: O.yEnd,
|
|
25542
25548
|
cornerHidden: z.corner
|
|
25543
|
-
}), [v, E, z.x, z.y, z.corner,
|
|
25549
|
+
}), [v, E, z.x, z.y, z.corner, O]), oe = {
|
|
25544
25550
|
role: "presentation",
|
|
25545
25551
|
onPointerEnter: he,
|
|
25546
25552
|
onPointerMove: he,
|
|
@@ -25565,7 +25571,7 @@ const m4 = {
|
|
|
25565
25571
|
handleScroll: se,
|
|
25566
25572
|
disableViewportSnap: fe,
|
|
25567
25573
|
cornerSize: T,
|
|
25568
|
-
setCornerSize:
|
|
25574
|
+
setCornerSize: A,
|
|
25569
25575
|
thumbSize: _,
|
|
25570
25576
|
setThumbSize: F,
|
|
25571
25577
|
hasMeasuredScrollbar: R,
|
|
@@ -25584,7 +25590,7 @@ const m4 = {
|
|
|
25584
25590
|
rootId: f,
|
|
25585
25591
|
hiddenState: z,
|
|
25586
25592
|
setHiddenState: V,
|
|
25587
|
-
overflowEdges:
|
|
25593
|
+
overflowEdges: O,
|
|
25588
25594
|
setOverflowEdges: D,
|
|
25589
25595
|
viewportState: we,
|
|
25590
25596
|
overflowEdgeThreshold: {
|
|
@@ -25593,7 +25599,7 @@ const m4 = {
|
|
|
25593
25599
|
yStart: u,
|
|
25594
25600
|
yEnd: p
|
|
25595
25601
|
}
|
|
25596
|
-
}), [pe, le, ce, se, fe, T, _, R, N, v, E, x, f, z,
|
|
25602
|
+
}), [pe, le, ce, se, fe, T, _, R, N, v, E, x, f, z, O, we, c, l, u, p]);
|
|
25597
25603
|
return /* @__PURE__ */ I(Lg.Provider, {
|
|
25598
25604
|
value: de,
|
|
25599
25605
|
children: [!b && si.getElement(g), ee]
|
|
@@ -25678,11 +25684,11 @@ const Mk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25678
25684
|
setOverflowEdges: N,
|
|
25679
25685
|
overflowEdgeThreshold: k,
|
|
25680
25686
|
viewportState: R
|
|
25681
|
-
} = Nd(), M = lr(), T = y.useRef(!0),
|
|
25687
|
+
} = Nd(), M = lr(), T = y.useRef(!0), A = y.useRef([NaN, NaN, NaN, NaN]), _ = Nt(), F = Nt(), O = ge(() => {
|
|
25682
25688
|
const P = a.current, L = c.current, $ = l.current, U = u.current, G = p.current, Y = f.current;
|
|
25683
25689
|
if (!P)
|
|
25684
25690
|
return;
|
|
25685
|
-
const W = P.scrollHeight, X = P.scrollWidth, K = P.clientHeight, j = P.clientWidth, Z = P.scrollTop, ne = P.scrollLeft, te =
|
|
25691
|
+
const W = P.scrollHeight, X = P.scrollWidth, K = P.clientHeight, j = P.clientWidth, Z = P.scrollTop, ne = P.scrollLeft, te = A.current, q = Number.isNaN(te[0]);
|
|
25686
25692
|
if (te[0] = K, te[1] = W, te[2] = j, te[3] = X, q && v(!0), W === 0 || X === 0)
|
|
25687
25693
|
return;
|
|
25688
25694
|
const J = w4(P), se = J.y, fe = J.x, pe = j / X, ce = K / W, le = Math.max(0, X - j), ie = Math.max(0, W - K);
|
|
@@ -25721,8 +25727,8 @@ const Mk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25721
25727
|
ye(() => {
|
|
25722
25728
|
y4();
|
|
25723
25729
|
}, []), ye(() => {
|
|
25724
|
-
queueMicrotask(
|
|
25725
|
-
}, [
|
|
25730
|
+
queueMicrotask(O);
|
|
25731
|
+
}, [O, w, M, k.xStart, k.xEnd, k.yStart, k.yEnd]), ye(() => {
|
|
25726
25732
|
a.current?.matches(":hover") && S(!0);
|
|
25727
25733
|
}, [a, S]), ye(() => {
|
|
25728
25734
|
const P = a.current;
|
|
@@ -25732,22 +25738,22 @@ const Mk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25732
25738
|
const $ = new ResizeObserver(() => {
|
|
25733
25739
|
if (!L) {
|
|
25734
25740
|
L = !0;
|
|
25735
|
-
const U =
|
|
25741
|
+
const U = A.current;
|
|
25736
25742
|
if (U[0] === P.clientHeight && U[1] === P.scrollHeight && U[2] === P.clientWidth && U[3] === P.scrollWidth)
|
|
25737
25743
|
return;
|
|
25738
25744
|
}
|
|
25739
|
-
|
|
25745
|
+
O();
|
|
25740
25746
|
});
|
|
25741
25747
|
return $.observe(P), F.start(0, () => {
|
|
25742
25748
|
const U = P.getAnimations({
|
|
25743
25749
|
subtree: !0
|
|
25744
25750
|
});
|
|
25745
|
-
U.length !== 0 && Promise.allSettled(U.map((G) => G.finished)).then(
|
|
25751
|
+
U.length !== 0 && Promise.allSettled(U.map((G) => G.finished)).then(O).catch(() => {
|
|
25746
25752
|
});
|
|
25747
25753
|
}), () => {
|
|
25748
25754
|
$.disconnect(), F.clear();
|
|
25749
25755
|
};
|
|
25750
|
-
}, [
|
|
25756
|
+
}, [O, a, F]);
|
|
25751
25757
|
function D() {
|
|
25752
25758
|
T.current = !1;
|
|
25753
25759
|
}
|
|
@@ -25764,7 +25770,7 @@ const Mk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25764
25770
|
overflow: "scroll"
|
|
25765
25771
|
},
|
|
25766
25772
|
onScroll() {
|
|
25767
|
-
a.current && (
|
|
25773
|
+
a.current && (O(), (E || !T.current) && C({
|
|
25768
25774
|
x: a.current.scrollLeft,
|
|
25769
25775
|
y: a.current.scrollTop
|
|
25770
25776
|
}), _.start(100, () => {
|
|
@@ -25781,8 +25787,8 @@ const Mk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25781
25787
|
props: [z, i],
|
|
25782
25788
|
stateAttributesMapping: Rd
|
|
25783
25789
|
}), H = y.useMemo(() => ({
|
|
25784
|
-
computeThumbPosition:
|
|
25785
|
-
}), [
|
|
25790
|
+
computeThumbPosition: O
|
|
25791
|
+
}), [O]);
|
|
25786
25792
|
return /* @__PURE__ */ d(Bg.Provider, {
|
|
25787
25793
|
value: H,
|
|
25788
25794
|
children: V
|
|
@@ -25846,9 +25852,9 @@ const nh = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25846
25852
|
hovering: l,
|
|
25847
25853
|
scrolling: M ? p : u,
|
|
25848
25854
|
orientation: s
|
|
25849
|
-
},
|
|
25855
|
+
}, A = lr(), _ = !k && !i, F = M ? f.y : f.x, O = i || !F;
|
|
25850
25856
|
y.useEffect(() => {
|
|
25851
|
-
if (!
|
|
25857
|
+
if (!O)
|
|
25852
25858
|
return;
|
|
25853
25859
|
const V = g.current, H = M ? h.current : m.current;
|
|
25854
25860
|
if (!H)
|
|
@@ -25859,7 +25865,7 @@ const nh = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25859
25865
|
const $ = !M, U = $ ? "scrollLeft" : "scrollTop", G = $ ? L.deltaX : L.deltaY;
|
|
25860
25866
|
if (G === 0)
|
|
25861
25867
|
return;
|
|
25862
|
-
const Y = $ ? V.scrollWidth - V.clientWidth : V.scrollHeight - V.clientHeight, W = $ &&
|
|
25868
|
+
const Y = $ ? V.scrollWidth - V.clientWidth : V.scrollHeight - V.clientHeight, W = $ && A === "rtl" ? -Y : 0, X = $ && A === "rtl" ? 0 : Y, K = V[U];
|
|
25863
25869
|
K <= W && G < 0 || K >= X && G > 0 || (L.preventDefault(), V[U] = Math.min(X, Math.max(W, K + G)), C({
|
|
25864
25870
|
x: V.scrollLeft,
|
|
25865
25871
|
y: V.scrollTop
|
|
@@ -25868,7 +25874,7 @@ const nh = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25868
25874
|
return et(H, "wheel", P, {
|
|
25869
25875
|
passive: !1
|
|
25870
25876
|
});
|
|
25871
|
-
}, [
|
|
25877
|
+
}, [A, C, M, m, h, O, g]);
|
|
25872
25878
|
const D = {
|
|
25873
25879
|
...S && {
|
|
25874
25880
|
"data-id": `${S}-scrollbar`
|
|
@@ -25889,7 +25895,7 @@ const nh = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25889
25895
|
if (te <= 0)
|
|
25890
25896
|
return;
|
|
25891
25897
|
const q = K / te, J = j - Z;
|
|
25892
|
-
E(), M ? L.scrollTop = q * J :
|
|
25898
|
+
E(), M ? L.scrollTop = q * J : A === "rtl" ? L.scrollLeft = -(1 - q) * J : L.scrollLeft = q * J, C({
|
|
25893
25899
|
x: L.scrollLeft,
|
|
25894
25900
|
y: L.scrollTop
|
|
25895
25901
|
}), w(V);
|
|
@@ -25922,7 +25928,7 @@ const nh = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25922
25928
|
props: [D, c],
|
|
25923
25929
|
stateAttributesMapping: Rd
|
|
25924
25930
|
});
|
|
25925
|
-
return
|
|
25931
|
+
return O ? /* @__PURE__ */ d(Hg.Provider, {
|
|
25926
25932
|
value: s,
|
|
25927
25933
|
children: z
|
|
25928
25934
|
}) : null;
|
|
@@ -26155,15 +26161,15 @@ function $k(e) {
|
|
|
26155
26161
|
} = e, p = y.useRef(null), f = y.useRef(null), [h, m] = y.useState(_i), g = y.useRef(_i), b = y.useRef(!1), x = y.useRef(a), w = y.useRef(!1), [v, C] = y.useState(!1), E = y.useRef(null), S = bn(t, p), N = Ot(a), k = ju(p), R = !a && !s, M = v ? "idle" : u, T = a && // These 2 refs are safe to read in render, they are only written from committed
|
|
26156
26162
|
// layout/effect paths and gate one-shot motion suppression for the next open
|
|
26157
26163
|
// lifecycle. They intentionally expose the last committed motion snapshot.
|
|
26158
|
-
(x.current || w.current),
|
|
26164
|
+
(x.current || w.current), A = !a && s && // These 2 refs are also safe to read in render, both hold the last committed
|
|
26159
26165
|
// animation mode and measurement. This fallback only restores a previously
|
|
26160
26166
|
// measured pixel size after the live dimensions state has been reset back to `auto`.
|
|
26161
26167
|
f.current === "css-animation" && h.height === void 0 && h.width === void 0 ? g.current : h, _ = n && R && f.current !== "css-animation", F = ge((H, P = !0) => {
|
|
26162
26168
|
P && (g.current = H), m(H);
|
|
26163
|
-
}),
|
|
26169
|
+
}), O = ge(() => {
|
|
26164
26170
|
E.current?.(), E.current = null;
|
|
26165
26171
|
}), D = ge((H) => {
|
|
26166
|
-
|
|
26172
|
+
O(), E.current = () => {
|
|
26167
26173
|
E.current = null, H();
|
|
26168
26174
|
};
|
|
26169
26175
|
}), z = ge(() => {
|
|
@@ -26172,12 +26178,12 @@ function $k(e) {
|
|
|
26172
26178
|
ye(() => {
|
|
26173
26179
|
!v || u === "starting" || C(!1);
|
|
26174
26180
|
}, [v, u]), y.useEffect(() => () => {
|
|
26175
|
-
z(),
|
|
26176
|
-
}, [z,
|
|
26181
|
+
z(), O();
|
|
26182
|
+
}, [z, O]), ye(() => {
|
|
26177
26183
|
const H = p.current;
|
|
26178
26184
|
if (!H)
|
|
26179
26185
|
return;
|
|
26180
|
-
!a && E.current &&
|
|
26186
|
+
!a && E.current && O();
|
|
26181
26187
|
const P = R4(H, T);
|
|
26182
26188
|
if (f.current = P, a && u === "idle" && x.current && P === "css-animation") {
|
|
26183
26189
|
g.current = Ds(H);
|
|
@@ -26226,7 +26232,7 @@ function $k(e) {
|
|
|
26226
26232
|
return;
|
|
26227
26233
|
}
|
|
26228
26234
|
F(L), P === "css-animation" && Gl(H, "animation-name", "none")();
|
|
26229
|
-
}, [s, a,
|
|
26235
|
+
}, [s, a, O, F, c, D, T, u]), Jt({
|
|
26230
26236
|
enabled: a && s && M === "idle",
|
|
26231
26237
|
open: !0,
|
|
26232
26238
|
ref: p,
|
|
@@ -26261,7 +26267,7 @@ function $k(e) {
|
|
|
26261
26267
|
}, [i, l]);
|
|
26262
26268
|
const V = o || n || s || a;
|
|
26263
26269
|
return {
|
|
26264
|
-
height:
|
|
26270
|
+
height: A.height,
|
|
26265
26271
|
props: {
|
|
26266
26272
|
..._ ? {
|
|
26267
26273
|
[Ug.startingStyle]: ""
|
|
@@ -26273,7 +26279,7 @@ function $k(e) {
|
|
|
26273
26279
|
shouldPreventOpenAnimation: T,
|
|
26274
26280
|
shouldRender: V,
|
|
26275
26281
|
transitionStatus: M,
|
|
26276
|
-
width:
|
|
26282
|
+
width: A.width
|
|
26277
26283
|
};
|
|
26278
26284
|
}
|
|
26279
26285
|
function Ds(e) {
|
|
@@ -26359,7 +26365,7 @@ const Vk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
26359
26365
|
ref: R,
|
|
26360
26366
|
shouldPreventOpenAnimation: M,
|
|
26361
26367
|
shouldRender: T,
|
|
26362
|
-
transitionStatus:
|
|
26368
|
+
transitionStatus: A,
|
|
26363
26369
|
width: _
|
|
26364
26370
|
} = $k({
|
|
26365
26371
|
externalRef: n,
|
|
@@ -26374,8 +26380,8 @@ const Vk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
26374
26380
|
transitionStatus: w
|
|
26375
26381
|
}), F = {
|
|
26376
26382
|
...x,
|
|
26377
|
-
transitionStatus:
|
|
26378
|
-
},
|
|
26383
|
+
transitionStatus: A
|
|
26384
|
+
}, O = Uh(c, F), D = Ee("div", {
|
|
26379
26385
|
...t,
|
|
26380
26386
|
style: void 0
|
|
26381
26387
|
}, {
|
|
@@ -26390,8 +26396,8 @@ const Vk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
26390
26396
|
}
|
|
26391
26397
|
},
|
|
26392
26398
|
l,
|
|
26393
|
-
|
|
26394
|
-
style:
|
|
26399
|
+
O ? {
|
|
26400
|
+
style: O
|
|
26395
26401
|
} : void 0,
|
|
26396
26402
|
// Resolve the public `style` prop so temporary `animationName: 'none'`
|
|
26397
26403
|
// can still win after user's inline styles have been merged.
|
|
@@ -26992,10 +26998,10 @@ const V4 = "data-parent", jk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
26992
26998
|
name: R,
|
|
26993
26999
|
setDirty: M,
|
|
26994
27000
|
setFilled: T,
|
|
26995
|
-
setFocused:
|
|
27001
|
+
setFocused: A,
|
|
26996
27002
|
setTouched: _,
|
|
26997
27003
|
state: F,
|
|
26998
|
-
validationMode:
|
|
27004
|
+
validationMode: O,
|
|
26999
27005
|
validityData: D,
|
|
27000
27006
|
validation: z
|
|
27001
27007
|
} = en(), V = dd(), {
|
|
@@ -27113,11 +27119,11 @@ const V4 = "data-parent", jk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
27113
27119
|
"aria-labelledby": Ie,
|
|
27114
27120
|
[V4]: m ? "" : void 0,
|
|
27115
27121
|
onFocus() {
|
|
27116
|
-
W ||
|
|
27122
|
+
W || A(!0);
|
|
27117
27123
|
},
|
|
27118
27124
|
onBlur() {
|
|
27119
27125
|
const Me = re.current;
|
|
27120
|
-
Me && (_(!0),
|
|
27126
|
+
Me && (_(!0), A(!1), O === "onBlur" && oe.commit(U ? pe : Me.checked));
|
|
27121
27127
|
},
|
|
27122
27128
|
onKeyDown(Me) {
|
|
27123
27129
|
if (Me.key !== "Enter" || (Me.preventBaseUIHandler(), Me.defaultPrevented))
|
|
@@ -27237,13 +27243,13 @@ const Wk = {
|
|
|
27237
27243
|
validityData: R,
|
|
27238
27244
|
setFilled: M,
|
|
27239
27245
|
setFocused: T,
|
|
27240
|
-
validationMode:
|
|
27246
|
+
validationMode: A,
|
|
27241
27247
|
disabled: _,
|
|
27242
27248
|
name: F,
|
|
27243
|
-
validation:
|
|
27249
|
+
validation: O
|
|
27244
27250
|
} = en(), {
|
|
27245
27251
|
labelId: D
|
|
27246
|
-
} = hn(), z = _ || g, V = F ?? u, H = y.useRef(null), P = bn(H, l,
|
|
27252
|
+
} = hn(), z = _ || g, V = F ?? u, H = y.useRef(null), P = bn(H, l, O.inputRef), L = y.useRef(null), $ = St(), U = Lr({
|
|
27247
27253
|
id: c,
|
|
27248
27254
|
implicit: !1,
|
|
27249
27255
|
controlRef: L
|
|
@@ -27256,7 +27262,7 @@ const Wk = {
|
|
|
27256
27262
|
io(L, $, Y, void 0, !z, u), ye(() => {
|
|
27257
27263
|
H.current && M(H.current.checked);
|
|
27258
27264
|
}, [M]), tr(Y, () => {
|
|
27259
|
-
E(V), k(Y !== R.initialValue), M(Y),
|
|
27265
|
+
E(V), k(Y !== R.initialValue), M(Y), O.change(Y);
|
|
27260
27266
|
});
|
|
27261
27267
|
const {
|
|
27262
27268
|
getButtonProps: X,
|
|
@@ -27276,7 +27282,7 @@ const Wk = {
|
|
|
27276
27282
|
},
|
|
27277
27283
|
onBlur() {
|
|
27278
27284
|
const J = H.current;
|
|
27279
|
-
!J || z || (N(!0), T(!1),
|
|
27285
|
+
!J || z || (N(!0), T(!1), A === "onBlur" && O.commit(J.checked));
|
|
27280
27286
|
},
|
|
27281
27287
|
onClick(J) {
|
|
27282
27288
|
if (h || z)
|
|
@@ -27286,7 +27292,7 @@ const Wk = {
|
|
|
27286
27292
|
se && ts(se, J);
|
|
27287
27293
|
}
|
|
27288
27294
|
}, ne = {
|
|
27289
|
-
...
|
|
27295
|
+
...O.getValidationProps(z),
|
|
27290
27296
|
checked: Y,
|
|
27291
27297
|
disabled: z,
|
|
27292
27298
|
form: a,
|
|
@@ -27328,7 +27334,7 @@ const Wk = {
|
|
|
27328
27334
|
}), [S, Y, z, h, m]), q = Ee("span", t, {
|
|
27329
27335
|
state: te,
|
|
27330
27336
|
ref: [n, L, K],
|
|
27331
|
-
props: [Z, C, X, (J) =>
|
|
27337
|
+
props: [Z, C, X, (J) => O.getValidationProps(z, J)],
|
|
27332
27338
|
stateAttributesMapping: Wk
|
|
27333
27339
|
});
|
|
27334
27340
|
return /* @__PURE__ */ I(qg.Provider, {
|
|
@@ -27423,19 +27429,19 @@ const Yk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
27423
27429
|
registerInputRef: M = bt
|
|
27424
27430
|
} = g ?? {}, {
|
|
27425
27431
|
setTouched: T,
|
|
27426
|
-
setFilled:
|
|
27432
|
+
setFilled: A,
|
|
27427
27433
|
state: _,
|
|
27428
27434
|
disabled: F
|
|
27429
|
-
} = en(),
|
|
27435
|
+
} = en(), O = dd(), {
|
|
27430
27436
|
labelId: D,
|
|
27431
27437
|
getDescriptionProps: z
|
|
27432
|
-
} = hn(), V = F ||
|
|
27438
|
+
} = hn(), V = F || O.disabled || b || s, H = x || i, P = w || a, L = v, $ = g ? C === l : l === "", U = y.useRef(null), G = y.useRef(null), Y = S?.registerInput, W = y.useCallback((we) => Y?.(we, {
|
|
27433
27439
|
controlRef: U,
|
|
27434
27440
|
value: void 0
|
|
27435
27441
|
}), [Y]), X = bn(u, G, M, W);
|
|
27436
27442
|
ye(() => {
|
|
27437
|
-
G.current?.checked &&
|
|
27438
|
-
}, [
|
|
27443
|
+
G.current?.checked && A(!0);
|
|
27444
|
+
}, [A]), ye(() => {
|
|
27439
27445
|
if (G.current) {
|
|
27440
27446
|
if (V && $) {
|
|
27441
27447
|
M(null);
|
|
@@ -27592,9 +27598,9 @@ const H4 = [qC], Zk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
27592
27598
|
} = en(), {
|
|
27593
27599
|
labelId: T
|
|
27594
27600
|
} = hn(), {
|
|
27595
|
-
clearErrors:
|
|
27601
|
+
clearErrors: A,
|
|
27596
27602
|
elementRef: _
|
|
27597
|
-
} = jn(), F = ld(!0),
|
|
27603
|
+
} = jn(), F = ld(!0), O = E || s, D = C ?? f, z = St(m), [V, H] = cn({
|
|
27598
27604
|
controlled: l,
|
|
27599
27605
|
default: u,
|
|
27600
27606
|
name: "RadioGroup",
|
|
@@ -27627,19 +27633,19 @@ const H4 = [qC], Zk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
27627
27633
|
return V ?? null;
|
|
27628
27634
|
return null;
|
|
27629
27635
|
});
|
|
27630
|
-
io(G, z, V ?? null, j, !
|
|
27631
|
-
|
|
27636
|
+
io(G, z, V ?? null, j, !O, f), tr(V, () => {
|
|
27637
|
+
A(D), k(V !== M.initialValue), R(V != null), N.change(V);
|
|
27632
27638
|
const J = W.current;
|
|
27633
27639
|
V == null && J && !J.disabled && X(J);
|
|
27634
27640
|
});
|
|
27635
27641
|
const Z = T ?? F?.legendId, ne = {
|
|
27636
27642
|
...S,
|
|
27637
|
-
disabled:
|
|
27643
|
+
disabled: O ?? !1,
|
|
27638
27644
|
required: a ?? !1,
|
|
27639
27645
|
readOnly: i ?? !1
|
|
27640
27646
|
}, te = y.useMemo(() => ({
|
|
27641
27647
|
checkedValue: V,
|
|
27642
|
-
disabled:
|
|
27648
|
+
disabled: O,
|
|
27643
27649
|
form: p,
|
|
27644
27650
|
validation: N,
|
|
27645
27651
|
name: D,
|
|
@@ -27649,11 +27655,11 @@ const H4 = [qC], Zk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
27649
27655
|
setCheckedValue: $,
|
|
27650
27656
|
setTouched: L,
|
|
27651
27657
|
touched: P
|
|
27652
|
-
}), [V,
|
|
27658
|
+
}), [V, O, p, N, D, i, K, a, $, L, P]), q = {
|
|
27653
27659
|
id: m,
|
|
27654
27660
|
role: "radiogroup",
|
|
27655
27661
|
"aria-required": a || void 0,
|
|
27656
|
-
"aria-disabled":
|
|
27662
|
+
"aria-disabled": O || void 0,
|
|
27657
27663
|
"aria-readonly": i || void 0,
|
|
27658
27664
|
"aria-labelledby": Z,
|
|
27659
27665
|
onFocus() {
|
|
@@ -27673,7 +27679,7 @@ const H4 = [qC], Zk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
27673
27679
|
className: o,
|
|
27674
27680
|
style: g,
|
|
27675
27681
|
state: ne,
|
|
27676
|
-
props: [q, b, (J) => N.getValidationProps(
|
|
27682
|
+
props: [q, b, (J) => N.getValidationProps(O ?? !1, J)],
|
|
27677
27683
|
refs: [n],
|
|
27678
27684
|
stateAttributesMapping: An,
|
|
27679
27685
|
enableHomeAndEndKeys: !1,
|
|
@@ -28455,7 +28461,7 @@ const eN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
28455
28461
|
function T(H) {
|
|
28456
28462
|
H.pointerType === "touch" && (f.current = !0);
|
|
28457
28463
|
}
|
|
28458
|
-
function
|
|
28464
|
+
function A(H) {
|
|
28459
28465
|
H.pointerType === "touch" && (f.current = !1, N());
|
|
28460
28466
|
}
|
|
28461
28467
|
function _() {
|
|
@@ -28468,7 +28474,7 @@ const eN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
28468
28474
|
function F(H) {
|
|
28469
28475
|
!g || Oe(c.state.viewport, H.relatedTarget) || (c.set("focused", !1), R());
|
|
28470
28476
|
}
|
|
28471
|
-
const
|
|
28477
|
+
const O = {
|
|
28472
28478
|
tabIndex: -1,
|
|
28473
28479
|
role: "region",
|
|
28474
28480
|
"aria-live": "polite",
|
|
@@ -28483,8 +28489,8 @@ const eN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
28483
28489
|
onKeyDown: S,
|
|
28484
28490
|
onClick: _,
|
|
28485
28491
|
onPointerDown: T,
|
|
28486
|
-
onPointerUp:
|
|
28487
|
-
onPointerCancel:
|
|
28492
|
+
onPointerUp: A,
|
|
28493
|
+
onPointerCancel: A,
|
|
28488
28494
|
style: {
|
|
28489
28495
|
"--toast-frontmost-height": w ? `${w}px` : void 0
|
|
28490
28496
|
}
|
|
@@ -28495,7 +28501,7 @@ const eN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
28495
28501
|
}), V = Ee("div", t, {
|
|
28496
28502
|
ref: [n, c.setViewport],
|
|
28497
28503
|
state: D,
|
|
28498
|
-
props: [
|
|
28504
|
+
props: [O, a, {
|
|
28499
28505
|
children: /* @__PURE__ */ I(y.Fragment, {
|
|
28500
28506
|
children: [z, i, z]
|
|
28501
28507
|
})
|
|
@@ -28586,7 +28592,7 @@ const o3 = {
|
|
|
28586
28592
|
x: 0,
|
|
28587
28593
|
y: 0,
|
|
28588
28594
|
scale: 1
|
|
28589
|
-
}), [N, k] = y.useState(), [R, M] = y.useState(), [T,
|
|
28595
|
+
}), [N, k] = y.useState(), [R, M] = y.useState(), [T, A] = y.useState(null), _ = y.useRef(null), F = y.useRef(void 0), O = y.useRef({
|
|
28590
28596
|
x: 0,
|
|
28591
28597
|
y: 0
|
|
28592
28598
|
}), D = y.useRef({
|
|
@@ -28651,7 +28657,7 @@ const o3 = {
|
|
|
28651
28657
|
const q = ge((oe) => {
|
|
28652
28658
|
if (oe.pointerId !== U.current)
|
|
28653
28659
|
return;
|
|
28654
|
-
U.current = null, G.current?.abort(), G.current = null, b(!1), w(!1),
|
|
28660
|
+
U.current = null, G.current?.abort(), G.current = null, b(!1), w(!1), A(null);
|
|
28655
28661
|
const ee = D.current;
|
|
28656
28662
|
if (oe.type === "pointercancel" || H.current) {
|
|
28657
28663
|
ne({
|
|
@@ -28675,15 +28681,15 @@ const o3 = {
|
|
|
28675
28681
|
function J(oe) {
|
|
28676
28682
|
if (oe.button !== 0 || (oe.pointerType === "touch" && f.pauseTimers(), Et(oe.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${a3}`)))
|
|
28677
28683
|
return;
|
|
28678
|
-
H.current = !1, z.current = void 0, V.current = 0, U.current = oe.pointerId,
|
|
28684
|
+
H.current = !1, z.current = void 0, V.current = 0, U.current = oe.pointerId, O.current = {
|
|
28679
28685
|
x: oe.clientX,
|
|
28680
28686
|
y: oe.clientY
|
|
28681
|
-
}, P.current =
|
|
28687
|
+
}, P.current = O.current;
|
|
28682
28688
|
const xe = oe.currentTarget, Q = r3(xe);
|
|
28683
28689
|
D.current = Q, S(Q), ne({
|
|
28684
28690
|
x: Q.x,
|
|
28685
28691
|
y: Q.y
|
|
28686
|
-
}), f.set("hovering", !0), b(!0), w(!1),
|
|
28692
|
+
}), f.set("hovering", !0), b(!0), w(!1), A(null), L.current = !0, G.current?.abort();
|
|
28687
28693
|
const re = new AbortController();
|
|
28688
28694
|
G.current = re;
|
|
28689
28695
|
const be = Ze(xe);
|
|
@@ -28696,7 +28702,7 @@ const o3 = {
|
|
|
28696
28702
|
function se(oe) {
|
|
28697
28703
|
if (oe.pointerId !== U.current)
|
|
28698
28704
|
return;
|
|
28699
|
-
oe.preventDefault(), L.current && (
|
|
28705
|
+
oe.preventDefault(), L.current && (O.current = {
|
|
28700
28706
|
x: oe.clientX,
|
|
28701
28707
|
y: oe.clientY
|
|
28702
28708
|
}, L.current = !1);
|
|
@@ -28713,14 +28719,14 @@ const o3 = {
|
|
|
28713
28719
|
x: de,
|
|
28714
28720
|
y: P.current.y
|
|
28715
28721
|
});
|
|
28716
|
-
const re = de -
|
|
28722
|
+
const re = de - O.current.x, be = ee - O.current.y, Ce = ee - P.current.y, De = de - P.current.x;
|
|
28717
28723
|
let Pe = T;
|
|
28718
28724
|
if (!x && Math.sqrt(re * re + be * be) >= i3) {
|
|
28719
28725
|
w(!0);
|
|
28720
28726
|
const We = u.includes("left") || u.includes("right"), rt = u.includes("up") || u.includes("down");
|
|
28721
28727
|
if (We && rt) {
|
|
28722
28728
|
const Ke = Math.abs(re), nt = Math.abs(be);
|
|
28723
|
-
Pe = Ke > nt ? "horizontal" : "vertical",
|
|
28729
|
+
Pe = Ke > nt ? "horizontal" : "vertical", A(Pe);
|
|
28724
28730
|
}
|
|
28725
28731
|
}
|
|
28726
28732
|
let Ie;
|
|
@@ -29203,10 +29209,10 @@ const mN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29203
29209
|
value: N,
|
|
29204
29210
|
style: k,
|
|
29205
29211
|
...R
|
|
29206
|
-
} = t, M = St(a), T = c3(M),
|
|
29212
|
+
} = t, M = St(a), T = c3(M), A = ge(x), _ = ge(w), {
|
|
29207
29213
|
clearErrors: F
|
|
29208
29214
|
} = jn(), {
|
|
29209
|
-
state:
|
|
29215
|
+
state: O,
|
|
29210
29216
|
disabled: D,
|
|
29211
29217
|
name: z,
|
|
29212
29218
|
setTouched: V,
|
|
@@ -29240,7 +29246,7 @@ const mN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29240
29246
|
value: Le,
|
|
29241
29247
|
name: X
|
|
29242
29248
|
}
|
|
29243
|
-
}), Me.event = rt,
|
|
29249
|
+
}), Me.event = rt, A(Le, Me), Me.isCanceled ? !1 : (fe.current = Me.reason, j(Le), !0);
|
|
29244
29250
|
}), Ie = ge((Le, Me, $e) => {
|
|
29245
29251
|
const We = pN(Le, Me, h, f, be, Ce);
|
|
29246
29252
|
if (hN(We, C, m)) {
|
|
@@ -29257,7 +29263,7 @@ const mN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29257
29263
|
Oe(Z.current, Le) && Le.blur(), pe !== -1 && Q(-1);
|
|
29258
29264
|
}, [pe, W, Q]);
|
|
29259
29265
|
const Re = y.useMemo(() => ({
|
|
29260
|
-
...
|
|
29266
|
+
...O,
|
|
29261
29267
|
activeThumbIndex: pe,
|
|
29262
29268
|
disabled: W,
|
|
29263
29269
|
dragging: he,
|
|
@@ -29267,7 +29273,7 @@ const mN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29267
29273
|
minStepsBetweenValues: m,
|
|
29268
29274
|
step: C,
|
|
29269
29275
|
values: Ce
|
|
29270
|
-
}), [
|
|
29276
|
+
}), [O, pe, W, he, f, h, m, v, C, Ce]), Ye = y.useMemo(() => ({
|
|
29271
29277
|
active: pe,
|
|
29272
29278
|
controlRef: ne,
|
|
29273
29279
|
disabled: W,
|
|
@@ -29447,10 +29453,10 @@ function d3(e, t, n, r, o, s, i, a, c, l) {
|
|
|
29447
29453
|
const $ = p[L];
|
|
29448
29454
|
return $ ?? u[L];
|
|
29449
29455
|
});
|
|
29450
|
-
let
|
|
29451
|
-
k ?
|
|
29452
|
-
const _ = ow(m, M,
|
|
29453
|
-
let z =
|
|
29456
|
+
let A = s;
|
|
29457
|
+
k ? A = Math.max(s, m[M]) : A = Math.min(s, m[M]);
|
|
29458
|
+
const _ = ow(m, M, A, i, a, c, l, T), F = k ? M - 1 : M + 1, O = _[F - 1], D = _[F + 1];
|
|
29459
|
+
let z = O != null ? O + h : i;
|
|
29454
29460
|
z = Math.max(z, i + F * h);
|
|
29455
29461
|
let V = D != null ? D - h : a;
|
|
29456
29462
|
V = Math.min(V, a - (_.length - 1 - F) * h);
|
|
@@ -29532,10 +29538,10 @@ const vN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29532
29538
|
step: R,
|
|
29533
29539
|
thumbCollisionBehavior: M,
|
|
29534
29540
|
thumbRefs: T,
|
|
29535
|
-
values:
|
|
29536
|
-
} = tl(), _ = lr(), F =
|
|
29541
|
+
values: A
|
|
29542
|
+
} = tl(), _ = lr(), F = A.length > 1, O = g === "vertical", D = y.useRef(null), z = y.useRef(null), V = ge((ce) => {
|
|
29537
29543
|
ce && z.current == null && (z.current = xt(ce).getComputedStyle(ce));
|
|
29538
|
-
}), H = y.useRef(null), P = y.useRef(0), L = y.useRef(0), $ = y.useRef(null), U = Ot(
|
|
29544
|
+
}), H = y.useRef(null), P = y.useRef(0), L = y.useRef(0), $ = y.useRef(null), U = Ot(A);
|
|
29539
29545
|
function G(ce) {
|
|
29540
29546
|
return ce?.querySelector('input[type="range"]');
|
|
29541
29547
|
}
|
|
@@ -29550,41 +29556,41 @@ const vN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29550
29556
|
}
|
|
29551
29557
|
function K(ce) {
|
|
29552
29558
|
const le = D.current, ie = x.current;
|
|
29553
|
-
if (!le || ie < 0 || ie >=
|
|
29554
|
-
return ie >=
|
|
29559
|
+
if (!le || ie < 0 || ie >= A.length)
|
|
29560
|
+
return ie >= A.length && ($.current = null), null;
|
|
29555
29561
|
const {
|
|
29556
29562
|
width: he,
|
|
29557
29563
|
height: we,
|
|
29558
29564
|
bottom: oe,
|
|
29559
29565
|
left: ee,
|
|
29560
29566
|
right: de
|
|
29561
|
-
} = le.getBoundingClientRect(), xe = p3(z.current,
|
|
29567
|
+
} = le.getBoundingClientRect(), xe = p3(z.current, O), Q = L.current, re = (O ? we : he) - xe.start - xe.end - Q * 2, be = b.current ?? 0, Ce = ce.x - be, De = ce.y - be, Pe = O ? oe - De - xe.end : (_ === "rtl" ? de - Ce : Ce - ee) - xe.start, Ie = Vt((Pe - Q) / re, 0, 1);
|
|
29562
29568
|
let Re = (p - f) * Ie + f;
|
|
29563
|
-
return Re = xN(Re, R, f), Re = Vt(Re, f, p), F ? d3(M,
|
|
29569
|
+
return Re = xN(Re, R, f), Re = Vt(Re, f, p), F ? d3(M, A, U.current, w.current, ie, Re, f, p, R, h) : {
|
|
29564
29570
|
value: Re,
|
|
29565
29571
|
thumbIndex: ie,
|
|
29566
29572
|
didSwap: !1
|
|
29567
29573
|
};
|
|
29568
29574
|
}
|
|
29569
29575
|
function j(ce) {
|
|
29570
|
-
w.current = F ?
|
|
29576
|
+
w.current = F ? A.slice() : null, $.current = null, U.current = A;
|
|
29571
29577
|
const le = x.current;
|
|
29572
29578
|
let ie = le;
|
|
29573
|
-
if (le > -1 && le <
|
|
29574
|
-
if (
|
|
29579
|
+
if (le > -1 && le < A.length) {
|
|
29580
|
+
if (A[le] === p) {
|
|
29575
29581
|
let he = le;
|
|
29576
|
-
for (; he > 0 &&
|
|
29582
|
+
for (; he > 0 && A[he - 1] === p; )
|
|
29577
29583
|
he -= 1;
|
|
29578
29584
|
ie = he;
|
|
29579
29585
|
}
|
|
29580
29586
|
} else {
|
|
29581
|
-
const he =
|
|
29587
|
+
const he = O ? "y" : "x";
|
|
29582
29588
|
let we;
|
|
29583
29589
|
ie = -1;
|
|
29584
29590
|
for (let oe = 0; oe < T.current.length; oe += 1) {
|
|
29585
29591
|
const ee = T.current[oe];
|
|
29586
29592
|
if (ct(ee) && !G(ee)?.disabled) {
|
|
29587
|
-
const de = bN(ee,
|
|
29593
|
+
const de = bN(ee, O), xe = Math.abs(ce[he] - de);
|
|
29588
29594
|
(we === void 0 || xe <= we) && (ie = oe, we = xe);
|
|
29589
29595
|
}
|
|
29590
29596
|
}
|
|
@@ -29592,7 +29598,7 @@ const vN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29592
29598
|
if (ie > -1 && ie !== le && Y(ie), l) {
|
|
29593
29599
|
const he = T.current[ie];
|
|
29594
29600
|
if (ct(he)) {
|
|
29595
|
-
const we = he.getBoundingClientRect(), oe =
|
|
29601
|
+
const we = he.getBoundingClientRect(), oe = O ? "height" : "width";
|
|
29596
29602
|
L.current = we[oe] / 2;
|
|
29597
29603
|
}
|
|
29598
29604
|
}
|
|
@@ -29625,7 +29631,7 @@ const vN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29625
29631
|
}), q = ge((ce) => {
|
|
29626
29632
|
E(-1), S(!1), b.current = null;
|
|
29627
29633
|
const le = $.current;
|
|
29628
|
-
if (Array.isArray(le) && le.length !==
|
|
29634
|
+
if (Array.isArray(le) && le.length !== A.length && ($.current = null), $.current != null) {
|
|
29629
29635
|
const ie = u.current;
|
|
29630
29636
|
m($.current, zn(ie, ce));
|
|
29631
29637
|
}
|
|
@@ -29797,10 +29803,10 @@ const EN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29797
29803
|
controlRef: R,
|
|
29798
29804
|
disabled: M,
|
|
29799
29805
|
validation: T,
|
|
29800
|
-
format:
|
|
29806
|
+
format: A,
|
|
29801
29807
|
handleInputChange: _,
|
|
29802
29808
|
inset: F,
|
|
29803
|
-
labelId:
|
|
29809
|
+
labelId: O,
|
|
29804
29810
|
largeStep: D,
|
|
29805
29811
|
locale: z,
|
|
29806
29812
|
max: V,
|
|
@@ -29877,11 +29883,11 @@ const EN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29877
29883
|
fe && (vt = pe ? "vertical-rl" : "vertical-lr");
|
|
29878
29884
|
const Xe = typeof p == "function" ? p(Pe) : a, lt = pn({
|
|
29879
29885
|
"aria-label": Xe,
|
|
29880
|
-
"aria-labelledby": c ?? (Xe == null ?
|
|
29886
|
+
"aria-labelledby": c ?? (Xe == null ? O : void 0),
|
|
29881
29887
|
"aria-describedby": i,
|
|
29882
29888
|
"aria-orientation": U,
|
|
29883
29889
|
"aria-valuenow": Re,
|
|
29884
|
-
"aria-valuetext": typeof f == "function" ? f(fr(Re, z,
|
|
29890
|
+
"aria-valuetext": typeof f == "function" ? f(fr(Re, z, A), Re, Pe) : l ?? v3(te, Pe, A, z),
|
|
29885
29891
|
disabled: J,
|
|
29886
29892
|
form: L,
|
|
29887
29893
|
id: re,
|
|
@@ -31701,8 +31707,8 @@ function KN({
|
|
|
31701
31707
|
const F = _[0];
|
|
31702
31708
|
if (!F) return;
|
|
31703
31709
|
N();
|
|
31704
|
-
const
|
|
31705
|
-
E.current =
|
|
31710
|
+
const O = URL.createObjectURL(F);
|
|
31711
|
+
E.current = O, b(O), C(null), w(!0);
|
|
31706
31712
|
try {
|
|
31707
31713
|
const D = await n(F);
|
|
31708
31714
|
t?.(D);
|
|
@@ -31715,7 +31721,7 @@ function KN({
|
|
|
31715
31721
|
function R() {
|
|
31716
31722
|
C(null), t?.(null);
|
|
31717
31723
|
}
|
|
31718
|
-
const M = g ?? e ?? null, T = !!M,
|
|
31724
|
+
const M = g ?? e ?? null, T = !!M, A = r === "circle" ? "rounded-full" : "rounded-lg";
|
|
31719
31725
|
return /* @__PURE__ */ I("div", { ref: m, className: B("flex flex-col gap-2", h), children: [
|
|
31720
31726
|
l && /* @__PURE__ */ d("span", { className: "text-xs font-medium text-secondary", children: l }),
|
|
31721
31727
|
T ? /* @__PURE__ */ I("div", { className: "flex items-center gap-3", children: [
|
|
@@ -31725,7 +31731,7 @@ function KN({
|
|
|
31725
31731
|
className: B(
|
|
31726
31732
|
"relative shrink-0 overflow-hidden border border-border bg-surface-inset",
|
|
31727
31733
|
tB[o],
|
|
31728
|
-
|
|
31734
|
+
A
|
|
31729
31735
|
),
|
|
31730
31736
|
children: [
|
|
31731
31737
|
/* @__PURE__ */ d("img", { src: M ?? void 0, alt: "", className: "size-full object-cover" }),
|
|
@@ -31734,7 +31740,7 @@ function KN({
|
|
|
31734
31740
|
{
|
|
31735
31741
|
className: B(
|
|
31736
31742
|
"absolute inset-0 grid place-items-center bg-surface/70",
|
|
31737
|
-
|
|
31743
|
+
A
|
|
31738
31744
|
),
|
|
31739
31745
|
children: /* @__PURE__ */ d(Ao, { size: "sm" })
|
|
31740
31746
|
}
|
|
@@ -32662,10 +32668,10 @@ const rR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
32662
32668
|
style: M,
|
|
32663
32669
|
...T
|
|
32664
32670
|
} = t, {
|
|
32665
|
-
setDirty:
|
|
32671
|
+
setDirty: A,
|
|
32666
32672
|
validityData: _,
|
|
32667
32673
|
disabled: F,
|
|
32668
|
-
setFilled:
|
|
32674
|
+
setFilled: O,
|
|
32669
32675
|
name: D,
|
|
32670
32676
|
state: z,
|
|
32671
32677
|
validation: V
|
|
@@ -32680,8 +32686,8 @@ const rR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
32680
32686
|
state: "value"
|
|
32681
32687
|
}), J = te ?? null, se = Ot(J);
|
|
32682
32688
|
ye(() => {
|
|
32683
|
-
|
|
32684
|
-
}, [
|
|
32689
|
+
O(J !== null);
|
|
32690
|
+
}, [O, J]);
|
|
32685
32691
|
const fe = MC(), pe = Ot(E), ce = y.useRef(!1), le = ge((Ie, Re) => {
|
|
32686
32692
|
ce.current = !1, x?.(Ie, Re);
|
|
32687
32693
|
}), ie = y.useRef(!0), he = y.useRef(null), [we, oe] = y.useState(() => fr(J, S, E)), [ee, de] = y.useState("numeric"), xe = ge(() => {
|
|
@@ -32696,7 +32702,7 @@ const rR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
32696
32702
|
if (We) {
|
|
32697
32703
|
if (b?.($e, Re), Re.isCanceled)
|
|
32698
32704
|
return !1;
|
|
32699
|
-
q($e),
|
|
32705
|
+
q($e), A($e !== _.initialValue), ce.current = !0;
|
|
32700
32706
|
}
|
|
32701
32707
|
return he.current = $e, ie.current && oe(fr($e, S, E)), fe(), We;
|
|
32702
32708
|
}), be = ge((Ie, {
|
|
@@ -32974,7 +32980,7 @@ function sR(e, t, n) {
|
|
|
32974
32980
|
readOnly: k,
|
|
32975
32981
|
value: R,
|
|
32976
32982
|
inputValue: M
|
|
32977
|
-
} = w, T = R != null && (n ? R >= g : R <= b),
|
|
32983
|
+
} = w, T = R != null && (n ? R >= g : R <= b), A = s || N || T, _ = n ? jA : GA;
|
|
32978
32984
|
function F(L) {
|
|
32979
32985
|
const $ = !l.current;
|
|
32980
32986
|
if (l.current = !0, !$) {
|
|
@@ -32988,10 +32994,10 @@ function sR(e, t, n) {
|
|
|
32988
32994
|
}
|
|
32989
32995
|
}
|
|
32990
32996
|
const {
|
|
32991
|
-
pointerHandlers:
|
|
32997
|
+
pointerHandlers: O,
|
|
32992
32998
|
shouldSkipClick: D
|
|
32993
32999
|
} = qB({
|
|
32994
|
-
disabled:
|
|
33000
|
+
disabled: A || k,
|
|
32995
33001
|
elementRef: m,
|
|
32996
33002
|
tick(L) {
|
|
32997
33003
|
const $ = p(L);
|
|
@@ -33006,7 +33012,7 @@ function sR(e, t, n) {
|
|
|
33006
33012
|
S($, zn(_, L));
|
|
33007
33013
|
}
|
|
33008
33014
|
}), z = {
|
|
33009
|
-
disabled:
|
|
33015
|
+
disabled: A,
|
|
33010
33016
|
"aria-label": n ? "Increase" : "Decrease",
|
|
33011
33017
|
"aria-controls": f,
|
|
33012
33018
|
// Keyboard users shouldn't have access to the buttons, since they can use the input element
|
|
@@ -33014,9 +33020,9 @@ function sR(e, t, n) {
|
|
|
33014
33020
|
// readers should be able to use the buttons.
|
|
33015
33021
|
tabIndex: -1,
|
|
33016
33022
|
style: YB,
|
|
33017
|
-
...
|
|
33023
|
+
...O,
|
|
33018
33024
|
onClick(L) {
|
|
33019
|
-
const $ =
|
|
33025
|
+
const $ = A || k;
|
|
33020
33026
|
if (L.defaultPrevented || $ || D(L))
|
|
33021
33027
|
return;
|
|
33022
33028
|
F(L.nativeEvent);
|
|
@@ -33030,7 +33036,7 @@ function sR(e, t, n) {
|
|
|
33030
33036
|
Y !== G && S(Y, zn(_, L.nativeEvent));
|
|
33031
33037
|
},
|
|
33032
33038
|
onPointerDown(L) {
|
|
33033
|
-
L.defaultPrevented || k || L.button ||
|
|
33039
|
+
L.defaultPrevented || k || L.button || A || (F(L.nativeEvent), E.current = null, $s(L.pointerType) || m.current?.focus(), O.onPointerDown(L));
|
|
33034
33040
|
}
|
|
33035
33041
|
}, {
|
|
33036
33042
|
getButtonProps: V,
|
|
@@ -33039,12 +33045,12 @@ function sR(e, t, n) {
|
|
|
33039
33045
|
// Read-only steppers are exposed as unavailable through button disabled semantics, while
|
|
33040
33046
|
// `data-readonly` (from `state`) is preserved for styling. `aria-readonly` isn't valid on the
|
|
33041
33047
|
// `button` role, so it's intentionally not set.
|
|
33042
|
-
disabled:
|
|
33048
|
+
disabled: A || k,
|
|
33043
33049
|
native: i,
|
|
33044
33050
|
focusableWhenDisabled: !0
|
|
33045
33051
|
}), P = {
|
|
33046
33052
|
...w,
|
|
33047
|
-
disabled:
|
|
33053
|
+
disabled: A
|
|
33048
33054
|
};
|
|
33049
33055
|
return Ee("button", e, {
|
|
33050
33056
|
ref: [t, H],
|
|
@@ -33090,10 +33096,10 @@ const XB = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
33090
33096
|
valueRef: M
|
|
33091
33097
|
} = il(), {
|
|
33092
33098
|
disabled: T,
|
|
33093
|
-
readOnly:
|
|
33099
|
+
readOnly: A,
|
|
33094
33100
|
required: _,
|
|
33095
33101
|
value: F,
|
|
33096
|
-
inputValue:
|
|
33102
|
+
inputValue: O
|
|
33097
33103
|
} = v, {
|
|
33098
33104
|
clearErrors: D
|
|
33099
33105
|
} = jn(), {
|
|
@@ -33124,9 +33130,9 @@ const XB = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
33124
33130
|
id: p,
|
|
33125
33131
|
required: _,
|
|
33126
33132
|
disabled: T,
|
|
33127
|
-
readOnly:
|
|
33133
|
+
readOnly: A,
|
|
33128
33134
|
inputMode: h,
|
|
33129
|
-
value:
|
|
33135
|
+
value: O,
|
|
33130
33136
|
type: "text",
|
|
33131
33137
|
autoComplete: "off",
|
|
33132
33138
|
autoCorrect: "off",
|
|
@@ -33145,17 +33151,17 @@ const XB = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
33145
33151
|
Z.setSelectionRange(ne, ne);
|
|
33146
33152
|
},
|
|
33147
33153
|
onBlur(j) {
|
|
33148
|
-
if (j.defaultPrevented || T || (V(!0), H(!1),
|
|
33154
|
+
if (j.defaultPrevented || T || (V(!0), H(!1), A))
|
|
33149
33155
|
return;
|
|
33150
33156
|
const Z = !a.current, ne = R.current;
|
|
33151
|
-
if (a.current = !0,
|
|
33157
|
+
if (a.current = !0, O.trim() === "") {
|
|
33152
33158
|
const he = Se($n, j.nativeEvent);
|
|
33153
33159
|
if (w(null, he), he.isCanceled)
|
|
33154
33160
|
return;
|
|
33155
33161
|
z === "onBlur" && $.commit(null), (Z || ne || F !== null) && N(null, zn($n, j.nativeEvent));
|
|
33156
33162
|
return;
|
|
33157
33163
|
}
|
|
33158
|
-
const te = c.current, q = zs(
|
|
33164
|
+
const te = c.current, q = zs(O, E, te);
|
|
33159
33165
|
if (q === null)
|
|
33160
33166
|
return;
|
|
33161
33167
|
const J = fb(te);
|
|
@@ -33173,7 +33179,7 @@ const XB = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
33173
33179
|
}
|
|
33174
33180
|
z === "onBlur" && $.commit(le), ce && N(le, fe);
|
|
33175
33181
|
const ie = fr(le, E, te);
|
|
33176
|
-
|
|
33182
|
+
O !== ie && C(ie);
|
|
33177
33183
|
},
|
|
33178
33184
|
onChange(j) {
|
|
33179
33185
|
if (j.nativeEvent.defaultPrevented)
|
|
@@ -33193,7 +33199,7 @@ const XB = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
33193
33199
|
C(Z), q !== null && w(q, Se(nr, j.nativeEvent));
|
|
33194
33200
|
},
|
|
33195
33201
|
onKeyDown(j) {
|
|
33196
|
-
if (j.defaultPrevented ||
|
|
33202
|
+
if (j.defaultPrevented || A || T)
|
|
33197
33203
|
return;
|
|
33198
33204
|
const Z = j.nativeEvent, ne = !a.current, te = l();
|
|
33199
33205
|
let q = te.has(j.key);
|
|
@@ -33201,15 +33207,15 @@ const XB = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
33201
33207
|
decimal: J,
|
|
33202
33208
|
currency: se,
|
|
33203
33209
|
percentSign: fe
|
|
33204
|
-
} = db(E, c.current), pe = j.currentTarget.selectionStart, ce = j.currentTarget.selectionEnd, le = pe === 0 && ce ===
|
|
33210
|
+
} = db(E, c.current), pe = j.currentTarget.selectionStart, ce = j.currentTarget.selectionEnd, le = pe === 0 && ce === O.length, ie = (be) => pe != null && ce != null && be >= pe && be < ce;
|
|
33205
33211
|
[[Gf, JN], [vw, eR]].forEach(([be, Ce]) => {
|
|
33206
33212
|
if (be.test(j.key) && Array.from(te).some((De) => be.test(De))) {
|
|
33207
|
-
const De =
|
|
33208
|
-
q = !(Gf.test(
|
|
33213
|
+
const De = O.search(Ce), Pe = De !== -1 && ie(De);
|
|
33214
|
+
q = !(Gf.test(O) || vw.test(O)) || le || Pe;
|
|
33209
33215
|
}
|
|
33210
33216
|
}), [J, se, fe].forEach((be) => {
|
|
33211
33217
|
if (j.key === be) {
|
|
33212
|
-
const Ce =
|
|
33218
|
+
const Ce = O.indexOf(be), De = ie(Ce);
|
|
33213
33219
|
q = Ce === -1 || le || De;
|
|
33214
33220
|
}
|
|
33215
33221
|
});
|
|
@@ -33224,7 +33230,7 @@ const XB = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
33224
33230
|
let ee = null;
|
|
33225
33231
|
if (j.key === "Home" && g != null ? ee = g : j.key === "End" && m != null && (ee = m), j.key.length > 1 && !oe && ee === null)
|
|
33226
33232
|
return;
|
|
33227
|
-
const de = ne ? zs(
|
|
33233
|
+
const de = ne ? zs(O, E, c.current) : null, xe = u(j);
|
|
33228
33234
|
j.preventDefault(), j.stopPropagation();
|
|
33229
33235
|
const Q = zn(Dr, Z);
|
|
33230
33236
|
let re = !1;
|
|
@@ -33236,7 +33242,7 @@ const XB = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
33236
33242
|
})) : ee !== null && (re = w(ee, Se(Dr, Z))), re && N(k.current, Q);
|
|
33237
33243
|
},
|
|
33238
33244
|
onPaste(j) {
|
|
33239
|
-
if (j.defaultPrevented ||
|
|
33245
|
+
if (j.defaultPrevented || A || T)
|
|
33240
33246
|
return;
|
|
33241
33247
|
let Z = "";
|
|
33242
33248
|
try {
|
|
@@ -33249,7 +33255,7 @@ const XB = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
33249
33255
|
return;
|
|
33250
33256
|
}
|
|
33251
33257
|
j.preventDefault();
|
|
33252
|
-
const ne = j.currentTarget, te = ne.selectionStart, q = ne.selectionEnd, J =
|
|
33258
|
+
const ne = j.currentTarget, te = ne.selectionStart, q = ne.selectionEnd, J = O.slice(0, te) + Z + O.slice(q), se = zs(J, E, c.current);
|
|
33253
33259
|
se !== null && (a.current = !1, W.current = te + Z.length, w(se, Se(ca, j.nativeEvent)), C(J));
|
|
33254
33260
|
}
|
|
33255
33261
|
}, i, (j) => $.getValidationProps(T, j)],
|
|
@@ -33318,7 +33324,7 @@ const JB = {
|
|
|
33318
33324
|
} = u, E = y.useRef(null), S = y.useRef(!1), N = y.useRef(!1), k = y.useRef(null), R = y.useRef(null), M = y.useRef({
|
|
33319
33325
|
x: 0,
|
|
33320
33326
|
y: 0
|
|
33321
|
-
}), T = Nt(), [
|
|
33327
|
+
}), T = Nt(), [A, _] = y.useState(!1), [F, O] = y.useState(!1), [D, z] = y.useState(!1);
|
|
33322
33328
|
function V(G, Y, W) {
|
|
33323
33329
|
const X = xt(G).visualViewport?.scale ?? 1;
|
|
33324
33330
|
G.style.transform = `translate3d(${Y}px,${W}px,0) scale(${1 / X})`;
|
|
@@ -33422,9 +33428,9 @@ const JB = {
|
|
|
33422
33428
|
const Y = G.pointerType === "touch";
|
|
33423
33429
|
if (_(Y), G.pointerType === "mouse" && (G.preventDefault(), f.current?.focus()), S.current = !0, N.current = !1, k.current = Et(G.nativeEvent), P(!0, G.nativeEvent), !Y && !ar)
|
|
33424
33430
|
try {
|
|
33425
|
-
await Ze(E.current).body.requestPointerLock(),
|
|
33431
|
+
await Ze(E.current).body.requestPointerLock(), O(!1);
|
|
33426
33432
|
} catch {
|
|
33427
|
-
|
|
33433
|
+
O(!0);
|
|
33428
33434
|
} finally {
|
|
33429
33435
|
S.current && P(!0, G.nativeEvent);
|
|
33430
33436
|
}
|
|
@@ -33433,10 +33439,10 @@ const JB = {
|
|
|
33433
33439
|
stateAttributesMapping: Ei
|
|
33434
33440
|
}), U = y.useMemo(() => ({
|
|
33435
33441
|
isScrubbing: D,
|
|
33436
|
-
isTouchInput:
|
|
33442
|
+
isTouchInput: A,
|
|
33437
33443
|
isPointerLockDenied: F,
|
|
33438
33444
|
scrubAreaCursorRef: R
|
|
33439
|
-
}), [D,
|
|
33445
|
+
}), [D, A, F]);
|
|
33440
33446
|
return /* @__PURE__ */ d(hb.Provider, {
|
|
33441
33447
|
value: U,
|
|
33442
33448
|
children: $
|
|
@@ -33700,10 +33706,10 @@ const fR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33700
33706
|
...M
|
|
33701
33707
|
} = t, {
|
|
33702
33708
|
setDirty: T,
|
|
33703
|
-
validityData:
|
|
33709
|
+
validityData: A,
|
|
33704
33710
|
disabled: _,
|
|
33705
33711
|
setFilled: F,
|
|
33706
|
-
invalid:
|
|
33712
|
+
invalid: O,
|
|
33707
33713
|
name: D,
|
|
33708
33714
|
state: z,
|
|
33709
33715
|
validation: V,
|
|
@@ -33754,7 +33760,7 @@ const fR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33754
33760
|
u?.(Xe, lt), h && Ue();
|
|
33755
33761
|
}
|
|
33756
33762
|
tr(ee, () => {
|
|
33757
|
-
$(W), T(ee !==
|
|
33763
|
+
$(W), T(ee !== A.initialValue), V.change(ee);
|
|
33758
33764
|
const Xe = ne.current;
|
|
33759
33765
|
Xe != null && (ne.current = null, Xe.value === ee && Re(Xe.index));
|
|
33760
33766
|
const lt = te.current;
|
|
@@ -33801,7 +33807,7 @@ const fR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33801
33807
|
handleInputFocus: We,
|
|
33802
33808
|
inputMode: we,
|
|
33803
33809
|
inputAriaLabelledBy: fe,
|
|
33804
|
-
invalid:
|
|
33810
|
+
invalid: O,
|
|
33805
33811
|
length: f,
|
|
33806
33812
|
mask: m,
|
|
33807
33813
|
pattern: ie,
|
|
@@ -33813,7 +33819,7 @@ const fR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33813
33819
|
state: nt,
|
|
33814
33820
|
validationType: b,
|
|
33815
33821
|
value: ee
|
|
33816
|
-
}), [Ie, i, Y, Re, p, Ke, rt, We, we, fe,
|
|
33822
|
+
}), [Ie, i, Y, Re, p, Ke, rt, We, we, fe, O, f, m, ie, Ye, v, $e, C, x, Me, nt, b, ee]), vt = Ee("div", t, {
|
|
33817
33823
|
ref: [n, j],
|
|
33818
33824
|
state: nt,
|
|
33819
33825
|
props: [{
|
|
@@ -33915,16 +33921,16 @@ const pR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33915
33921
|
readOnly: R,
|
|
33916
33922
|
required: M,
|
|
33917
33923
|
normalizeValue: T,
|
|
33918
|
-
setValue:
|
|
33924
|
+
setValue: A,
|
|
33919
33925
|
state: _,
|
|
33920
33926
|
validationType: F,
|
|
33921
|
-
value:
|
|
33927
|
+
value: O
|
|
33922
33928
|
} = iH(), {
|
|
33923
33929
|
ref: D,
|
|
33924
33930
|
index: z
|
|
33925
33931
|
} = xr({
|
|
33926
33932
|
guess: !0
|
|
33927
|
-
}), V = y.useRef(null), H = lr(), P =
|
|
33933
|
+
}), V = y.useRef(null), H = lr(), P = O[z] ?? "", L = aH(_, P, z), $ = r, U = o ?? v, G = z === 0 ? void 0 : $;
|
|
33928
33934
|
process.env.NODE_ENV !== "production" && y.useEffect(() => {
|
|
33929
33935
|
if (z !== 0 || $ == null || V.current?.labels?.length)
|
|
33930
33936
|
return;
|
|
@@ -33965,10 +33971,10 @@ const pR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33965
33971
|
return;
|
|
33966
33972
|
const K = X.currentTarget.value, [j, Z] = su(K, E, F, T);
|
|
33967
33973
|
if (Z && k(K, zn(nr, X.nativeEvent)), j === "") {
|
|
33968
|
-
K === "" ?
|
|
33974
|
+
K === "" ? A(Wf(O, z), Se($n, X.nativeEvent)) : P !== "" && (X.currentTarget.value = P, X.currentTarget.select());
|
|
33969
33975
|
return;
|
|
33970
33976
|
}
|
|
33971
|
-
const ne = Cw(
|
|
33977
|
+
const ne = Cw(O, z, j, E, F, T), te = A(ne, Se(nr, X.nativeEvent));
|
|
33972
33978
|
if (te != null) {
|
|
33973
33979
|
const q = Math.min(z + j.length, E - 1);
|
|
33974
33980
|
m(q, te);
|
|
@@ -33977,7 +33983,7 @@ const pR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33977
33983
|
onKeyDown(X) {
|
|
33978
33984
|
if (X.defaultPrevented || p)
|
|
33979
33985
|
return;
|
|
33980
|
-
const K = 0, j = Math.max(E - 1, K), Z = Math.min(
|
|
33986
|
+
const K = 0, j = Math.max(E - 1, K), Z = Math.min(O.length, j), ne = (X.ctrlKey || X.metaKey) && !X.altKey, te = H === "rtl", q = te ? "ArrowRight" : "ArrowLeft", J = te ? "ArrowLeft" : "ArrowRight";
|
|
33981
33987
|
if (X.key === q) {
|
|
33982
33988
|
kt(X), h(ne ? K : Math.max(K, z - 1));
|
|
33983
33989
|
return;
|
|
@@ -33997,7 +34003,7 @@ const pR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33997
34003
|
if (R)
|
|
33998
34004
|
return;
|
|
33999
34005
|
function se(ce, le) {
|
|
34000
|
-
const ie =
|
|
34006
|
+
const ie = A(ce, Se(Dr, X.nativeEvent));
|
|
34001
34007
|
ie != null && m(le, ie);
|
|
34002
34008
|
}
|
|
34003
34009
|
if (X.key === "Backspace" && ne) {
|
|
@@ -34005,7 +34011,7 @@ const pR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
34005
34011
|
return;
|
|
34006
34012
|
}
|
|
34007
34013
|
if (X.key === "Delete") {
|
|
34008
|
-
kt(X), se(Wf(
|
|
34014
|
+
kt(X), se(Wf(O, z), z);
|
|
34009
34015
|
return;
|
|
34010
34016
|
}
|
|
34011
34017
|
const fe = X.currentTarget.value, pe = X.currentTarget.selectionStart === 0 && X.currentTarget.selectionEnd === fe.length;
|
|
@@ -34016,7 +34022,7 @@ const pR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
34016
34022
|
if (X.key === "Backspace") {
|
|
34017
34023
|
kt(X);
|
|
34018
34024
|
const ce = Math.max(K, z - 1);
|
|
34019
|
-
se(Wf(
|
|
34025
|
+
se(Wf(O, P === "" ? ce : z), ce);
|
|
34020
34026
|
}
|
|
34021
34027
|
},
|
|
34022
34028
|
onPaste(X) {
|
|
@@ -34036,7 +34042,7 @@ const pR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
34036
34042
|
const [j, Z] = su(K, E, F, T);
|
|
34037
34043
|
if (Z && k(K, zn(ca, X.nativeEvent)), j === "")
|
|
34038
34044
|
return;
|
|
34039
|
-
const ne =
|
|
34045
|
+
const ne = A(Cw(O, z, j, E, F, T), Se(ca, X.nativeEvent));
|
|
34040
34046
|
if (ne != null) {
|
|
34041
34047
|
const te = Math.min(z + j.length, E - 1);
|
|
34042
34048
|
m(te, ne);
|
|
@@ -34353,10 +34359,10 @@ function yH(e) {
|
|
|
34353
34359
|
highlightItemOnHover: R = !0,
|
|
34354
34360
|
loopFocus: M = !0,
|
|
34355
34361
|
itemToStringLabel: T,
|
|
34356
|
-
itemToStringValue:
|
|
34362
|
+
itemToStringValue: A,
|
|
34357
34363
|
isItemEqualToValue: _ = mR,
|
|
34358
34364
|
virtualized: F = !1,
|
|
34359
|
-
inline:
|
|
34365
|
+
inline: O = !1,
|
|
34360
34366
|
fillInputOnItemPress: D = !0,
|
|
34361
34367
|
modal: z = !1,
|
|
34362
34368
|
limit: V = -1,
|
|
@@ -34445,7 +34451,7 @@ function yH(e) {
|
|
|
34445
34451
|
return _e;
|
|
34446
34452
|
}, [C, yn, v, It, tn, V, Xe, T, qt]), nn = y.useMemo(() => It ? un.flatMap((ze) => ze.items) : un, [un, It]), ot = Lt(() => {
|
|
34447
34453
|
let _e = null;
|
|
34448
|
-
return
|
|
34454
|
+
return O && Fe && rt && u !== "none" && (_e = Kf(nn, Ve, _, Me)), new IC({
|
|
34449
34455
|
id: J,
|
|
34450
34456
|
labelId: void 0,
|
|
34451
34457
|
selectedValue: Ve,
|
|
@@ -34482,7 +34488,7 @@ function yH(e) {
|
|
|
34482
34488
|
mounted: !1,
|
|
34483
34489
|
forceMounted: !1,
|
|
34484
34490
|
transitionStatus: "idle",
|
|
34485
|
-
inline:
|
|
34491
|
+
inline: O,
|
|
34486
34492
|
activeIndex: null,
|
|
34487
34493
|
selectedIndex: _e,
|
|
34488
34494
|
popupProps: {},
|
|
@@ -34512,7 +34518,7 @@ function yH(e) {
|
|
|
34512
34518
|
forceMount: bt,
|
|
34513
34519
|
requestSubmit: bt
|
|
34514
34520
|
});
|
|
34515
|
-
}).current, cr = u === "none" ? dt : Ve, n2 = y.useMemo(() => u === "none" ? cr : Array.isArray(Ve) ? Ve.map((_e) => dr(_e,
|
|
34521
|
+
}).current, cr = u === "none" ? dt : Ve, n2 = y.useMemo(() => u === "none" ? cr : Array.isArray(Ve) ? Ve.map((_e) => dr(_e, A)) : dr(Ve, A), [cr, A, u, Ve]), r2 = ge(p), Ox = ge(n), Ax = me(ot, Ne.activeIndex), o2 = me(ot, Ne.selectedIndex), ml = me(ot, Ne.positionerElement), Dx = me(ot, Ne.listElement), Ii = me(ot, Ne.triggerElement), gl = me(ot, Ne.inputElement), s2 = me(ot, Ne.inputGroupElement), Dn = me(ot, Ne.inline), yr = me(ot, Ne.inputInsidePopup), i2 = me(ot, Ne.inputOwnsFormValue), a2 = Ot(Ii), {
|
|
34516
34522
|
mounted: _x,
|
|
34517
34523
|
setMounted: l2,
|
|
34518
34524
|
transitionStatus: of
|
|
@@ -34797,7 +34803,7 @@ function yH(e) {
|
|
|
34797
34803
|
}, [Ts.item]);
|
|
34798
34804
|
hR(() => {
|
|
34799
34805
|
ot.update({
|
|
34800
|
-
inline:
|
|
34806
|
+
inline: O,
|
|
34801
34807
|
popupProps: cf,
|
|
34802
34808
|
listProps: uf,
|
|
34803
34809
|
inputProps: lf,
|
|
@@ -34820,7 +34826,7 @@ function yH(e) {
|
|
|
34820
34826
|
mounted: _x,
|
|
34821
34827
|
transitionStatus: of,
|
|
34822
34828
|
items: v,
|
|
34823
|
-
inline:
|
|
34829
|
+
inline: O,
|
|
34824
34830
|
popupProps: cf,
|
|
34825
34831
|
listProps: uf,
|
|
34826
34832
|
inputProps: lf,
|
|
@@ -34842,16 +34848,16 @@ function yH(e) {
|
|
|
34842
34848
|
isItemEqualToValue: _,
|
|
34843
34849
|
submitOnItemClick: $,
|
|
34844
34850
|
hasInputValue: We,
|
|
34845
|
-
inputOwnsFormValue: u === "none" && (
|
|
34851
|
+
inputOwnsFormValue: u === "none" && (O || !ot.state.inputInsidePopup)
|
|
34846
34852
|
});
|
|
34847
|
-
}, [ot, J, Ve, Fe, _x, of, v, cf, uf, lf, df, Fx, sf, u, Le, Ue, g, b, w, F, S, T, z, _, $, We,
|
|
34853
|
+
}, [ot, J, Ve, Fe, _x, of, v, cf, uf, lf, df, Fx, sf, u, Le, Ue, g, b, w, F, S, T, z, _, $, We, O, nt, h]);
|
|
34848
34854
|
const h2 = bn(x, te.inputRef), m2 = y.useMemo(() => ({
|
|
34849
34855
|
query: qe,
|
|
34850
34856
|
hasItems: rt,
|
|
34851
34857
|
filteredItems: un,
|
|
34852
34858
|
flatFilteredItems: nn
|
|
34853
|
-
}), [qe, rt, un, nn]), g2 = y.useMemo(() => Array.isArray(cr) ? "" : dr(cr,
|
|
34854
|
-
const ze = dr(_e,
|
|
34859
|
+
}), [qe, rt, un, nn]), g2 = y.useMemo(() => Array.isArray(cr) ? "" : dr(cr, A), [cr, A]), b2 = Me && Array.isArray(Ve) && Ve.length > 0, ff = Me || u === "none" && i2 ? void 0 : Le, x2 = y.useMemo(() => !Me || !Array.isArray(Ve) || !Le ? null : Ve.map((_e) => {
|
|
34860
|
+
const ze = dr(_e, A);
|
|
34855
34861
|
return /* @__PURE__ */ d("input", {
|
|
34856
34862
|
type: "hidden",
|
|
34857
34863
|
form: h,
|
|
@@ -34859,7 +34865,7 @@ function yH(e) {
|
|
|
34859
34865
|
value: ze,
|
|
34860
34866
|
disabled: Ue
|
|
34861
34867
|
}, ze);
|
|
34862
|
-
}), [Me, Ve, h, Le,
|
|
34868
|
+
}), [Me, Ve, h, Le, A, Ue]), v2 = /* @__PURE__ */ I(y.Fragment, {
|
|
34863
34869
|
children: [e.children, /* @__PURE__ */ d("input", {
|
|
34864
34870
|
...te.getValidationProps(Ue, {
|
|
34865
34871
|
// Move focus when the hidden input is focused.
|
|
@@ -34874,7 +34880,7 @@ function yH(e) {
|
|
|
34874
34880
|
onChange(_e) {
|
|
34875
34881
|
if (_e.nativeEvent.defaultPrevented || Ue || g)
|
|
34876
34882
|
return;
|
|
34877
|
-
const ze = _e.currentTarget.value, At = ze.toLowerCase(), Dt = Se(Mt, _e.nativeEvent), rn = () => Re.current.findIndex((Bt) => dr(Bt,
|
|
34883
|
+
const ze = _e.currentTarget.value, At = ze.toLowerCase(), Dt = Se(Mt, _e.nativeEvent), rn = () => Re.current.findIndex((Bt) => dr(Bt, A).toLowerCase() === At || Xn(Bt, T).toLowerCase() === At);
|
|
34878
34884
|
function _n() {
|
|
34879
34885
|
if (Me)
|
|
34880
34886
|
return;
|
|
@@ -35032,7 +35038,7 @@ const Ib = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35032
35038
|
validation: m
|
|
35033
35039
|
} = en(), {
|
|
35034
35040
|
labelId: g
|
|
35035
|
-
} = hn(), b = ER(), w = !!Nb(!0), v = Sn(), C = wb(), E = lr(), S = me(v, Ne.required), N = me(v, Ne.disabled), k = me(v, Ne.readOnly), R = me(v, Ne.name), M = me(v, Ne.form), T = me(v, Ne.selectionMode),
|
|
35041
|
+
} = hn(), b = ER(), w = !!Nb(!0), v = Sn(), C = wb(), E = lr(), S = me(v, Ne.required), N = me(v, Ne.disabled), k = me(v, Ne.readOnly), R = me(v, Ne.name), M = me(v, Ne.form), T = me(v, Ne.selectionMode), A = me(v, Ne.autoHighlight), _ = me(v, Ne.inputProps), F = me(v, Ne.triggerProps), O = me(v, Ne.open), D = me(v, Ne.mounted), z = me(v, Ne.selectedValue), V = me(v, Ne.id), H = me(v, Ne.inline), P = me(v, Ne.modal), L = !!A, $ = SR(v), U = u || N || s, G = $d(), Y = w || H, W = !Y || P, X = St(i ?? (Y ? void 0 : V)), K = w ? mE : l, [j, Z] = y.useState(null), ne = y.useRef(!1), te = y.useRef(null), q = y.useRef(!1), J = T === "none" && !w, se = ge((oe) => {
|
|
35036
35042
|
const ee = w || v.state.inline;
|
|
35037
35043
|
ee && !v.state.hasInputValue && v.state.setInputValue("", Se(Mt)), v.update({
|
|
35038
35044
|
inputElement: oe,
|
|
@@ -35052,7 +35058,7 @@ const Ib = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35052
35058
|
}
|
|
35053
35059
|
const le = {
|
|
35054
35060
|
...K,
|
|
35055
|
-
open:
|
|
35061
|
+
open: O,
|
|
35056
35062
|
disabled: U,
|
|
35057
35063
|
readOnly: k,
|
|
35058
35064
|
popupSide: $,
|
|
@@ -35096,7 +35102,7 @@ const Ib = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35096
35102
|
onBlur() {
|
|
35097
35103
|
p(!0), f(!1);
|
|
35098
35104
|
const oe = v.state.activeIndex;
|
|
35099
|
-
if (H && oe !== null &&
|
|
35105
|
+
if (H && oe !== null && A !== "always" && (te.current = oe, q.current = !0, v.state.setIndices({
|
|
35100
35106
|
activeIndex: null
|
|
35101
35107
|
})), h === "onBlur") {
|
|
35102
35108
|
const ee = T === "none" ? C : z;
|
|
@@ -35120,14 +35126,14 @@ const Ib = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35120
35126
|
const Pe = oe.currentTarget.value;
|
|
35121
35127
|
Z(Pe), Pe === "" && !v.state.openOnInputClick && !v.state.inputInsidePopup && v.state.setOpen(!1, Se($n, ee));
|
|
35122
35128
|
const Ie = Pe.trim(), Re = L && Ie !== "";
|
|
35123
|
-
re(Ie),
|
|
35129
|
+
re(Ie), O && v.state.activeIndex !== null && !Re && pe();
|
|
35124
35130
|
return;
|
|
35125
35131
|
}
|
|
35126
35132
|
const be = Se(nr, ee);
|
|
35127
35133
|
if (v.state.setInputValue(oe.currentTarget.value, be), be.isCanceled)
|
|
35128
35134
|
return;
|
|
35129
35135
|
const Ce = oe.currentTarget.value === "", De = Se($n, ee);
|
|
35130
|
-
Ce && !v.state.inputInsidePopup && (T === "single" && v.state.setSelectedValue(null, De), v.state.openOnInputClick || v.state.setOpen(!1, De)), re(oe.currentTarget.value.trim()),
|
|
35136
|
+
Ce && !v.state.inputInsidePopup && (T === "single" && v.state.setSelectedValue(null, De), v.state.openOnInputClick || v.state.setOpen(!1, De)), re(oe.currentTarget.value.trim()), O && v.state.activeIndex !== null && !L && pe();
|
|
35131
35137
|
},
|
|
35132
35138
|
onKeyDown(oe) {
|
|
35133
35139
|
if (U || k || oe.ctrlKey || oe.shiftKey || oe.altKey || oe.metaKey)
|
|
@@ -35157,7 +35163,7 @@ const Ib = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35157
35163
|
return;
|
|
35158
35164
|
}
|
|
35159
35165
|
const Q = b?.highlightedChipIndex !== void 0, re = ie(oe);
|
|
35160
|
-
if (b?.setHighlightedChipIndex(re), re !== void 0 ? b?.chipsRef.current[re]?.focus() : Q && v.state.inputRef.current?.focus(), oe.which !== 229 && oe.key === "Enter" &&
|
|
35166
|
+
if (b?.setHighlightedChipIndex(re), re !== void 0 ? b?.chipsRef.current[re]?.focus() : Q && v.state.inputRef.current?.focus(), oe.which !== 229 && oe.key === "Enter" && O) {
|
|
35161
35167
|
const be = v.state.activeIndex, Ce = oe.nativeEvent;
|
|
35162
35168
|
if (be === null) {
|
|
35163
35169
|
if (H)
|
|
@@ -35177,7 +35183,7 @@ const Ib = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35177
35183
|
children: he
|
|
35178
35184
|
}) : he;
|
|
35179
35185
|
return /* @__PURE__ */ I(y.Fragment, {
|
|
35180
|
-
children: [
|
|
35186
|
+
children: [O && W && /* @__PURE__ */ d(Rb, {
|
|
35181
35187
|
ref: v.state.startDismissRef
|
|
35182
35188
|
}), we]
|
|
35183
35189
|
});
|
|
@@ -35207,11 +35213,11 @@ const IR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35207
35213
|
validation: g
|
|
35208
35214
|
} = en(), {
|
|
35209
35215
|
labelId: b
|
|
35210
|
-
} = hn(), x = Sn(), w = me(x, Ne.selectionMode), v = me(x, Ne.disabled), C = me(x, Ne.readOnly), E = me(x, Ne.required), S = me(x, Ne.positionerElement), N = me(x, Ne.listElement), k = me(x, Ne.popupId), R = me(x, Ne.triggerProps), M = me(x, Ne.inputInsidePopup), T = me(x, Ne.id),
|
|
35216
|
+
} = hn(), x = Sn(), w = me(x, Ne.selectionMode), v = me(x, Ne.disabled), C = me(x, Ne.readOnly), E = me(x, Ne.required), S = me(x, Ne.positionerElement), N = me(x, Ne.listElement), k = me(x, Ne.popupId), R = me(x, Ne.triggerProps), M = me(x, Ne.inputInsidePopup), T = me(x, Ne.id), A = me(x, Ne.labelId), _ = me(x, Ne.open), F = me(x, Ne.selectedValue), O = me(x, Ne.activeIndex), D = me(x, Ne.selectedIndex), z = me(x, Ne.hasSelectedValue), V = Fd(), H = wb(), P = Nt(), L = p || v || i, $ = $d(), U = SR(x);
|
|
35211
35217
|
Lr({
|
|
35212
35218
|
id: M ? a : void 0
|
|
35213
35219
|
});
|
|
35214
|
-
const G = M ? a ?? T : a, Y = eb(b,
|
|
35220
|
+
const G = M ? a ?? T : a, Y = eb(b, A);
|
|
35215
35221
|
let W;
|
|
35216
35222
|
_ && M ? W = k ?? vR(T) : _ && (W = N?.id);
|
|
35217
35223
|
const X = y.useRef("");
|
|
@@ -35223,7 +35229,7 @@ const IR = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35223
35229
|
} = Am(V, {
|
|
35224
35230
|
enabled: !_ && !C && !v && w === "single",
|
|
35225
35231
|
listRef: x.state.labelsRef,
|
|
35226
|
-
activeIndex:
|
|
35232
|
+
activeIndex: O,
|
|
35227
35233
|
selectedIndex: D,
|
|
35228
35234
|
onMatch(fe) {
|
|
35229
35235
|
const pe = x.state.valuesRef.current[fe];
|
|
@@ -35334,10 +35340,10 @@ const Tb = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35334
35340
|
} = t, l = Sn(), u = Fd(), p = !!Nb(!0), {
|
|
35335
35341
|
filteredItems: f,
|
|
35336
35342
|
hasItems: h
|
|
35337
|
-
} = al(), m = me(l, Ne.selectionMode), g = me(l, Ne.grid), b = me(l, Ne.listProps), x = me(l, Ne.virtualized), w = me(l, Ne.forceMounted), v = m === "multiple", C = f.length === 0, E = ge((
|
|
35338
|
-
l.set("positionerElement",
|
|
35339
|
-
}), S = ge((
|
|
35340
|
-
l.set("listElement",
|
|
35343
|
+
} = al(), m = me(l, Ne.selectionMode), g = me(l, Ne.grid), b = me(l, Ne.listProps), x = me(l, Ne.virtualized), w = me(l, Ne.forceMounted), v = m === "multiple", C = f.length === 0, E = ge((A) => {
|
|
35344
|
+
l.set("positionerElement", A);
|
|
35345
|
+
}), S = ge((A) => {
|
|
35346
|
+
l.set("listElement", A);
|
|
35341
35347
|
}), N = y.useMemo(() => typeof a == "function" ? r || (r = /* @__PURE__ */ d(kH, {
|
|
35342
35348
|
children: a
|
|
35343
35349
|
})) : a, [a]), k = {
|
|
@@ -35351,12 +35357,12 @@ const Tb = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35351
35357
|
id: R,
|
|
35352
35358
|
role: g ? "grid" : "listbox",
|
|
35353
35359
|
"aria-multiselectable": v ? "true" : void 0,
|
|
35354
|
-
onKeyDown(
|
|
35355
|
-
if (!(l.state.disabled || l.state.readOnly) &&
|
|
35360
|
+
onKeyDown(A) {
|
|
35361
|
+
if (!(l.state.disabled || l.state.readOnly) && A.key === "Enter") {
|
|
35356
35362
|
const _ = l.state.activeIndex;
|
|
35357
35363
|
if (_ == null)
|
|
35358
35364
|
return;
|
|
35359
|
-
kt(
|
|
35365
|
+
kt(A), RR(l, _, A.nativeEvent);
|
|
35360
35366
|
}
|
|
35361
35367
|
},
|
|
35362
35368
|
onKeyDownCapture() {
|
|
@@ -35448,8 +35454,8 @@ const Ab = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35448
35454
|
collisionAvoidance: b = pm,
|
|
35449
35455
|
style: x,
|
|
35450
35456
|
...w
|
|
35451
|
-
} = t, v = Sn(), C = Fd(), E = TH(), S = me(v, Ne.modal), N = me(v, Ne.open), k = me(v, Ne.mounted), R = me(v, Ne.openMethod), M = me(v, Ne.positionerElement), T = me(v, Ne.triggerElement),
|
|
35452
|
-
anchor: s ?? (F ? T : _ ??
|
|
35457
|
+
} = t, v = Sn(), C = Fd(), E = TH(), S = me(v, Ne.modal), N = me(v, Ne.open), k = me(v, Ne.mounted), R = me(v, Ne.openMethod), M = me(v, Ne.positionerElement), T = me(v, Ne.triggerElement), A = me(v, Ne.inputElement), _ = me(v, Ne.inputGroupElement), F = me(v, Ne.inputInsidePopup), O = me(v, Ne.transitionStatus), D = $d(), V = $a({
|
|
35458
|
+
anchor: s ?? (F ? T : _ ?? A),
|
|
35453
35459
|
floatingRootContext: C,
|
|
35454
35460
|
positionMethod: i,
|
|
35455
35461
|
mounted: k,
|
|
@@ -35481,7 +35487,7 @@ const Ab = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35481
35487
|
v.set("positionerElement", $);
|
|
35482
35488
|
}), L = Va(t, H, {
|
|
35483
35489
|
styles: V.positionerStyles,
|
|
35484
|
-
transitionStatus:
|
|
35490
|
+
transitionStatus: O,
|
|
35485
35491
|
props: w,
|
|
35486
35492
|
refs: [n, P],
|
|
35487
35493
|
hidden: !k,
|
|
@@ -35491,7 +35497,7 @@ const Ab = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
35491
35497
|
value: V,
|
|
35492
35498
|
children: [k && S && /* @__PURE__ */ d(xi, {
|
|
35493
35499
|
inert: Cs(!N),
|
|
35494
|
-
cutout: _ ??
|
|
35500
|
+
cutout: _ ?? A ?? T
|
|
35495
35501
|
}), L]
|
|
35496
35502
|
});
|
|
35497
35503
|
});
|
|
@@ -35539,17 +35545,17 @@ const PH = {
|
|
|
35539
35545
|
}), M = i === void 0 ? x ? (_) => _ === "touch" ? l.state.popupRef.current : w : !1 : i;
|
|
35540
35546
|
let T;
|
|
35541
35547
|
a != null ? T = a : T = x ? void 0 : !1;
|
|
35542
|
-
const
|
|
35548
|
+
const A = !x || v;
|
|
35543
35549
|
return /* @__PURE__ */ d(_a, {
|
|
35544
35550
|
context: p,
|
|
35545
35551
|
disabled: !f,
|
|
35546
|
-
modal:
|
|
35552
|
+
modal: A,
|
|
35547
35553
|
openInteractionType: m,
|
|
35548
35554
|
initialFocus: M,
|
|
35549
35555
|
returnFocus: T,
|
|
35550
35556
|
getInsideElements: () => [l.state.startDismissRef.current, l.state.endDismissRef.current],
|
|
35551
35557
|
children: /* @__PURE__ */ I(y.Fragment, {
|
|
35552
|
-
children: [k,
|
|
35558
|
+
children: [k, A && /* @__PURE__ */ d(Rb, {
|
|
35553
35559
|
ref: l.state.endDismissRef
|
|
35554
35560
|
})]
|
|
35555
35561
|
})
|
|
@@ -35659,7 +35665,7 @@ function DR(e) {
|
|
|
35659
35665
|
guess: !0,
|
|
35660
35666
|
index: l,
|
|
35661
35667
|
textRef: h
|
|
35662
|
-
}), g = Sn(), b = AH(), x = mH(), w = me(g, Ne.selectionMode), v = me(g, Ne.disabled), C = me(g, Ne.readOnly), E = me(g, Ne.isItemEqualToValue), S = v || u, N = w !== "none", k = l ?? o ?? m.index, R = k !== -1, M = me(g, Ne.id), T = me(g, Ne.isActive, k),
|
|
35668
|
+
}), g = Sn(), b = AH(), x = mH(), w = me(g, Ne.selectionMode), v = me(g, Ne.disabled), C = me(g, Ne.readOnly), E = me(g, Ne.isItemEqualToValue), S = v || u, N = w !== "none", k = l ?? o ?? m.index, R = k !== -1, M = me(g, Ne.id), T = me(g, Ne.isActive, k), A = me(g, Ne.isSelected, c), _ = me(g, Ne.itemProps), F = y.useRef(null), O = M != null && R ? `${M}-${k}` : void 0, D = A && N;
|
|
35663
35669
|
ye(() => {
|
|
35664
35670
|
if (!(R && (r || l != null)))
|
|
35665
35671
|
return;
|
|
@@ -35700,7 +35706,7 @@ function DR(e) {
|
|
|
35700
35706
|
g.state.submitOnItemClick ? (In.flushSync(Y), g.state.requestSubmit()) : Y();
|
|
35701
35707
|
}
|
|
35702
35708
|
const L = {
|
|
35703
|
-
id:
|
|
35709
|
+
id: O,
|
|
35704
35710
|
role: b ? "gridcell" : "option",
|
|
35705
35711
|
"aria-selected": N ? D : void 0,
|
|
35706
35712
|
// Focusable items steal focus from the input upon mouseup.
|
|
@@ -36321,16 +36327,16 @@ function $H(e) {
|
|
|
36321
36327
|
} = jn(), {
|
|
36322
36328
|
setDirty: M,
|
|
36323
36329
|
setTouched: T,
|
|
36324
|
-
setFocused:
|
|
36330
|
+
setFocused: A,
|
|
36325
36331
|
validityData: _,
|
|
36326
36332
|
setFilled: F,
|
|
36327
|
-
name:
|
|
36333
|
+
name: O,
|
|
36328
36334
|
disabled: D,
|
|
36329
36335
|
validation: z,
|
|
36330
36336
|
validationMode: V
|
|
36331
36337
|
} = en(), H = Lr({
|
|
36332
36338
|
id: t
|
|
36333
|
-
}), P = D || p, L =
|
|
36339
|
+
}), P = D || p, L = O ?? c, [$, U] = cn({
|
|
36334
36340
|
controlled: n,
|
|
36335
36341
|
default: v ? r ?? Nn : r,
|
|
36336
36342
|
name: "Select",
|
|
@@ -36399,7 +36405,7 @@ function $H(e) {
|
|
|
36399
36405
|
R(L), M(Ue($)), z.change($);
|
|
36400
36406
|
});
|
|
36401
36407
|
const Le = ge((qe, yt) => {
|
|
36402
|
-
a?.(qe, yt), !yt.isCanceled && (Y(qe), !qe && (yt.reason === Jr || yt.reason === Aa) && (T(!0),
|
|
36408
|
+
a?.(qe, yt), !yt.isCanceled && (Y(qe), !qe && (yt.reason === Jr || yt.reason === Aa) && (T(!0), A(!1), V === "onBlur" && z.commit($)));
|
|
36403
36409
|
}), Me = ge(() => {
|
|
36404
36410
|
le(!1), oe.update({
|
|
36405
36411
|
activeIndex: null,
|
|
@@ -36598,7 +36604,7 @@ const VH = 400, LH = {
|
|
|
36598
36604
|
required: E,
|
|
36599
36605
|
alignItemWithTriggerActiveRef: S,
|
|
36600
36606
|
disabled: N
|
|
36601
|
-
} = lo(), k = m || N || i, R = me(b, at.open), M = me(b, at.mounted), T = me(b, at.value),
|
|
36607
|
+
} = lo(), k = m || N || i, R = me(b, at.open), M = me(b, at.mounted), T = me(b, at.value), A = me(b, at.triggerProps), _ = me(b, at.positionerElement), F = me(b, at.listElement), O = me(b, at.popupSide), D = me(b, at.id), z = me(b, at.labelId), V = me(b, at.hasSelectedValue), H = M && _ ? O : null, P = s ?? D, L = eb(g, z);
|
|
36602
36608
|
Lr({
|
|
36603
36609
|
id: P
|
|
36604
36610
|
});
|
|
@@ -36622,7 +36628,7 @@ const VH = 400, LH = {
|
|
|
36622
36628
|
dragY: 0
|
|
36623
36629
|
}, K.clear();
|
|
36624
36630
|
}, [R, w, K, j]);
|
|
36625
|
-
const Z = pn(
|
|
36631
|
+
const Z = pn(A, {
|
|
36626
36632
|
id: P,
|
|
36627
36633
|
role: "combobox",
|
|
36628
36634
|
"aria-expanded": R,
|
|
@@ -36783,15 +36789,15 @@ const QR = {
|
|
|
36783
36789
|
valuesRef: R,
|
|
36784
36790
|
initialValueRef: M,
|
|
36785
36791
|
popupRef: T,
|
|
36786
|
-
setValue:
|
|
36792
|
+
setValue: A,
|
|
36787
36793
|
floatingContext: _
|
|
36788
|
-
} = lo(), F = me(C, at.open),
|
|
36789
|
-
!
|
|
36794
|
+
} = lo(), F = me(C, at.open), O = me(C, at.mounted), D = me(C, at.modal), z = me(C, at.value), V = me(C, at.openMethod), H = me(C, at.positionerElement), P = me(C, at.triggerElement), L = me(C, at.isItemEqualToValue), $ = me(C, at.transitionStatus), U = y.useRef(null), G = y.useRef(null), [Y, W] = y.useState(b), X = O && Y && V !== "touch";
|
|
36795
|
+
!O && Y !== b && W(b), y.useImperativeHandle(N, () => X), od((X || D) && F, V === "touch", H, P);
|
|
36790
36796
|
const K = $a({
|
|
36791
36797
|
anchor: r,
|
|
36792
36798
|
floatingRootContext: _,
|
|
36793
36799
|
positionMethod: i,
|
|
36794
|
-
mounted:
|
|
36800
|
+
mounted: O,
|
|
36795
36801
|
side: a,
|
|
36796
36802
|
sideOffset: l,
|
|
36797
36803
|
align: c,
|
|
@@ -36817,7 +36823,7 @@ const QR = {
|
|
|
36817
36823
|
transitionStatus: $,
|
|
36818
36824
|
props: v,
|
|
36819
36825
|
refs: [n, te],
|
|
36820
|
-
hidden: !
|
|
36826
|
+
hidden: !O,
|
|
36821
36827
|
inert: !F
|
|
36822
36828
|
}), J = y.useRef(0), se = ge((pe) => {
|
|
36823
36829
|
if (R.current.length === 0)
|
|
@@ -36828,11 +36834,11 @@ const QR = {
|
|
|
36828
36834
|
const le = Se(Mt);
|
|
36829
36835
|
if (ce !== 0 && !C.state.multiple && z !== null && is(R.current, z, L) === -1) {
|
|
36830
36836
|
const he = M.current, oe = he != null && is(R.current, he, L) !== -1 ? he : null;
|
|
36831
|
-
|
|
36837
|
+
A(oe, le), oe === null && (C.set("selectedIndex", null), k.current = null);
|
|
36832
36838
|
}
|
|
36833
36839
|
if (ce !== 0 && C.state.multiple && Array.isArray(z)) {
|
|
36834
36840
|
const ie = z.filter((he) => is(R.current, he, L) !== -1);
|
|
36835
|
-
ie.length !== z.length && (
|
|
36841
|
+
ie.length !== z.length && (A(ie, le), ie.length === 0 && (C.set("selectedIndex", null), k.current = null));
|
|
36836
36842
|
}
|
|
36837
36843
|
if (F && X) {
|
|
36838
36844
|
C.update({
|
|
@@ -36858,7 +36864,7 @@ const QR = {
|
|
|
36858
36864
|
onMapChange: se,
|
|
36859
36865
|
children: /* @__PURE__ */ I(zb.Provider, {
|
|
36860
36866
|
value: fe,
|
|
36861
|
-
children: [
|
|
36867
|
+
children: [O && D && /* @__PURE__ */ d(xi, {
|
|
36862
36868
|
inert: Cs(!F),
|
|
36863
36869
|
cutout: P
|
|
36864
36870
|
}), q]
|
|
@@ -36897,9 +36903,9 @@ const HH = {
|
|
|
36897
36903
|
isPositioned: k,
|
|
36898
36904
|
setControlledAlignItemWithTrigger: R
|
|
36899
36905
|
} = ZR(), M = Vo(!0) != null, T = lr(), {
|
|
36900
|
-
nonce:
|
|
36906
|
+
nonce: A,
|
|
36901
36907
|
disableStyleElements: _
|
|
36902
|
-
} = zg(), F = me(c, at.id),
|
|
36908
|
+
} = zg(), F = me(c, at.id), O = me(c, at.open), D = me(c, at.openMethod), z = me(c, at.mounted), V = me(c, at.popupProps), H = me(c, at.transitionStatus), P = me(c, at.triggerElement), L = me(c, at.positionerElement), $ = me(c, at.listElement), U = y.useRef(!1), G = y.useRef(!1), Y = y.useRef({}), W = us(), X = ge((ne) => {
|
|
36903
36909
|
if (!L || !l.current || !G.current)
|
|
36904
36910
|
return;
|
|
36905
36911
|
const te = L.style.top === "0px", q = L.style.bottom === "0px";
|
|
@@ -36931,14 +36937,14 @@ const HH = {
|
|
|
36931
36937
|
be >= we - Ur && (U.current = !0), b(ne);
|
|
36932
36938
|
});
|
|
36933
36939
|
y.useImperativeHandle(x, () => X, [X]), Jt({
|
|
36934
|
-
open:
|
|
36940
|
+
open: O,
|
|
36935
36941
|
ref: l,
|
|
36936
36942
|
onComplete() {
|
|
36937
|
-
|
|
36943
|
+
O && u?.(!0);
|
|
36938
36944
|
}
|
|
36939
36945
|
});
|
|
36940
36946
|
const K = {
|
|
36941
|
-
open:
|
|
36947
|
+
open: O,
|
|
36942
36948
|
transitionStatus: H,
|
|
36943
36949
|
side: E,
|
|
36944
36950
|
align: S
|
|
@@ -36956,10 +36962,10 @@ const HH = {
|
|
|
36956
36962
|
marginBottom: L.style.marginBottom
|
|
36957
36963
|
});
|
|
36958
36964
|
}, [l, L]), ye(() => {
|
|
36959
|
-
|
|
36960
|
-
}, [
|
|
36965
|
+
O || N || (G.current = !1, U.current = !1, au(L, Y.current));
|
|
36966
|
+
}, [O, N, L, l]), ye(() => {
|
|
36961
36967
|
const ne = l.current;
|
|
36962
|
-
if (!
|
|
36968
|
+
if (!O || !P || !L || !ne || N && !k || c.state.transitionStatus === "ending")
|
|
36963
36969
|
return;
|
|
36964
36970
|
if (G.current = !0, ne.style.removeProperty("--transform-origin"), !N) {
|
|
36965
36971
|
W.request(() => b($ || ne));
|
|
@@ -37002,15 +37008,15 @@ const HH = {
|
|
|
37002
37008
|
} finally {
|
|
37003
37009
|
te();
|
|
37004
37010
|
}
|
|
37005
|
-
}, [c,
|
|
37006
|
-
if (!N || !L || !
|
|
37011
|
+
}, [c, O, L, P, f, h, m, l, b, N, R, W, $, w, v, T, k]), y.useEffect(() => {
|
|
37012
|
+
if (!N || !L || !O)
|
|
37007
37013
|
return;
|
|
37008
37014
|
const ne = xt(L);
|
|
37009
37015
|
function te(q) {
|
|
37010
37016
|
p(!1, Se(KA, q));
|
|
37011
37017
|
}
|
|
37012
37018
|
return et(ne, "resize", te);
|
|
37013
|
-
}, [p, N, L,
|
|
37019
|
+
}, [p, N, L, O]);
|
|
37014
37020
|
const j = {
|
|
37015
37021
|
...$ ? {
|
|
37016
37022
|
role: "presentation",
|
|
@@ -37039,7 +37045,7 @@ const HH = {
|
|
|
37039
37045
|
props: [V, j, vi(H), a]
|
|
37040
37046
|
});
|
|
37041
37047
|
return /* @__PURE__ */ I(y.Fragment, {
|
|
37042
|
-
children: [!_ && si.getElement(
|
|
37048
|
+
children: [!_ && si.getElement(A), /* @__PURE__ */ d(_a, {
|
|
37043
37049
|
context: C,
|
|
37044
37050
|
modal: !1,
|
|
37045
37051
|
disabled: !z,
|
|
@@ -37150,7 +37156,7 @@ const nI = /* @__PURE__ */ y.memo(/* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
37150
37156
|
selectedItemTextRef: E,
|
|
37151
37157
|
disabled: S,
|
|
37152
37158
|
readOnly: N
|
|
37153
|
-
} = lo(), k = S || c, R = me(h, at.isActive, f.index), M = me(h, at.open), T = me(h, at.isSelected, i),
|
|
37159
|
+
} = lo(), k = S || c, R = me(h, at.isActive, f.index), M = me(h, at.open), T = me(h, at.isSelected, i), A = me(h, at.isSelectedByFocus, f.index), _ = me(h, at.isItemEqualToValue), F = f.index, O = y.useRef(null);
|
|
37154
37160
|
ye(() => {
|
|
37155
37161
|
const W = v.current;
|
|
37156
37162
|
return W[F] = i, () => {
|
|
@@ -37217,18 +37223,18 @@ const nI = /* @__PURE__ */ y.memo(/* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
37217
37223
|
if ($(), k || D.current === "touch" || z.current)
|
|
37218
37224
|
return;
|
|
37219
37225
|
const W = !x.current.allowSelectedMouseUp && T, X = !x.current.allowUnselectedMouseUp && !T;
|
|
37220
|
-
W || X || (z.current = !0,
|
|
37226
|
+
W || X || (z.current = !0, O.current?.click(), z.current = !1);
|
|
37221
37227
|
}
|
|
37222
37228
|
}, G = Ee("div", t, {
|
|
37223
|
-
ref: [H, n, f.ref,
|
|
37229
|
+
ref: [H, n, f.ref, O],
|
|
37224
37230
|
state: P,
|
|
37225
37231
|
props: [m, U, u, V]
|
|
37226
37232
|
}), Y = y.useMemo(() => ({
|
|
37227
37233
|
selected: T,
|
|
37228
37234
|
index: F,
|
|
37229
37235
|
textRef: p,
|
|
37230
|
-
selectedByFocus:
|
|
37231
|
-
}), [T, F, p,
|
|
37236
|
+
selectedByFocus: A
|
|
37237
|
+
}), [T, F, p, A]);
|
|
37232
37238
|
return /* @__PURE__ */ d(Bb.Provider, {
|
|
37233
37239
|
value: Y,
|
|
37234
37240
|
children: G
|
|
@@ -37889,17 +37895,17 @@ const ll = {
|
|
|
37889
37895
|
} = S;
|
|
37890
37896
|
let M = R, T = !1;
|
|
37891
37897
|
k !== g && (M = Mw(k, g, i, w), T = k != null && g != null && E(g) == null);
|
|
37892
|
-
const
|
|
37898
|
+
const A = T ? k : g, _ = k !== A || R !== M;
|
|
37893
37899
|
ye(() => {
|
|
37894
37900
|
_ && N({
|
|
37895
|
-
previousValue:
|
|
37901
|
+
previousValue: A,
|
|
37896
37902
|
tabActivationDirection: M
|
|
37897
37903
|
});
|
|
37898
|
-
}, [
|
|
37904
|
+
}, [A, _, M]);
|
|
37899
37905
|
const F = ge((K, j) => {
|
|
37900
37906
|
const Z = Mw(g, K, i, w);
|
|
37901
37907
|
j.activationDirection = Z, s?.(K, j), !j.isCanceled && b(K);
|
|
37902
|
-
}),
|
|
37908
|
+
}), O = ge((K, j) => {
|
|
37903
37909
|
s?.(K, Se(j, void 0, void 0, {
|
|
37904
37910
|
activationDirection: "none"
|
|
37905
37911
|
}));
|
|
@@ -37943,7 +37949,7 @@ const ll = {
|
|
|
37943
37949
|
b(te), N({
|
|
37944
37950
|
previousValue: te,
|
|
37945
37951
|
tabActivationDirection: "none"
|
|
37946
|
-
}),
|
|
37952
|
+
}), O(te, q), $.current = !1;
|
|
37947
37953
|
}
|
|
37948
37954
|
if (w.size === 0) {
|
|
37949
37955
|
Y.current && g !== null && !C.current?.isConnected && K(null, hv);
|
|
@@ -37964,8 +37970,8 @@ const ll = {
|
|
|
37964
37970
|
ne ? q = mv : j && (q = Q1), K(te, q);
|
|
37965
37971
|
return;
|
|
37966
37972
|
}
|
|
37967
|
-
ne && P != null && (
|
|
37968
|
-
}, [L, x,
|
|
37973
|
+
ne && P != null && (O(g, mv), $.current = !1);
|
|
37974
|
+
}, [L, x, O, P, b, w, g]);
|
|
37969
37975
|
const X = Ee("div", t, {
|
|
37970
37976
|
state: {
|
|
37971
37977
|
orientation: i,
|
|
@@ -38042,8 +38048,8 @@ const dI = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
38042
38048
|
// because the index is needed for Tab internals
|
|
38043
38049
|
} = iS({
|
|
38044
38050
|
metadata: S
|
|
38045
|
-
}), M = i === p, T = y.useRef(!1),
|
|
38046
|
-
|
|
38051
|
+
}), M = i === p, T = y.useRef(!1), A = y.useRef(null), _ = ge((Y) => {
|
|
38052
|
+
A.current?.(), A.current = Y ? x(Y) : null;
|
|
38047
38053
|
});
|
|
38048
38054
|
ye(() => {
|
|
38049
38055
|
if (T.current) {
|
|
@@ -38062,7 +38068,7 @@ const dI = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
38062
38068
|
}, [M, R, v, C, o, w]);
|
|
38063
38069
|
const {
|
|
38064
38070
|
getButtonProps: F,
|
|
38065
|
-
buttonRef:
|
|
38071
|
+
buttonRef: O
|
|
38066
38072
|
} = zt({
|
|
38067
38073
|
disabled: o,
|
|
38068
38074
|
native: c,
|
|
@@ -38097,7 +38103,7 @@ const dI = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
38097
38103
|
orientation: m,
|
|
38098
38104
|
tabActivationDirection: g
|
|
38099
38105
|
},
|
|
38100
|
-
ref: [n,
|
|
38106
|
+
ref: [n, O, k, _],
|
|
38101
38107
|
props: [N, {
|
|
38102
38108
|
role: "tab",
|
|
38103
38109
|
"aria-controls": D,
|
|
@@ -38139,21 +38145,21 @@ const t6 = {
|
|
|
38139
38145
|
y.useEffect(() => h(m), [h, m]);
|
|
38140
38146
|
let g = 0, b = 0, x = 0, w = 0, v = 0, C = 0, E = !1;
|
|
38141
38147
|
if (p != null && f != null) {
|
|
38142
|
-
const
|
|
38143
|
-
if (
|
|
38148
|
+
const A = c(p);
|
|
38149
|
+
if (A != null) {
|
|
38144
38150
|
E = !0;
|
|
38145
38151
|
const {
|
|
38146
38152
|
width: _,
|
|
38147
38153
|
height: F
|
|
38148
|
-
} = sy(
|
|
38149
|
-
width:
|
|
38154
|
+
} = sy(A), {
|
|
38155
|
+
width: O,
|
|
38150
38156
|
height: D
|
|
38151
|
-
} = sy(f), z =
|
|
38157
|
+
} = sy(f), z = A.getBoundingClientRect(), V = f.getBoundingClientRect(), H = O > 0 ? V.width / O : 1, P = D > 0 ? V.height / D : 1;
|
|
38152
38158
|
if (H > Number.EPSILON && P > Number.EPSILON) {
|
|
38153
38159
|
const $ = z.left - V.left, U = z.top - V.top;
|
|
38154
38160
|
g = $ / H + f.scrollLeft - f.clientLeft, x = U / P + f.scrollTop - f.clientTop;
|
|
38155
38161
|
} else
|
|
38156
|
-
g =
|
|
38162
|
+
g = A.offsetLeft, x = A.offsetTop;
|
|
38157
38163
|
v = _, C = F, b = f.scrollWidth - g - v, w = f.scrollHeight - x - C;
|
|
38158
38164
|
}
|
|
38159
38165
|
}
|
|
@@ -38540,7 +38546,7 @@ const r6 = {
|
|
|
38540
38546
|
return;
|
|
38541
38547
|
v(T);
|
|
38542
38548
|
} else {
|
|
38543
|
-
const T = w.filter((
|
|
38549
|
+
const T = w.filter((A) => A !== k);
|
|
38544
38550
|
if (l?.(T, M), M.isCanceled)
|
|
38545
38551
|
return;
|
|
38546
38552
|
v(T);
|
|
@@ -38632,13 +38638,13 @@ const Yb = {
|
|
|
38632
38638
|
index: p,
|
|
38633
38639
|
disabled: v,
|
|
38634
38640
|
open: C
|
|
38635
|
-
}), [S.mounted, v, p, C, g]), M = St(), [T,
|
|
38641
|
+
}), [S.mounted, v, p, C, g]), M = St(), [T, A] = y.useState(), _ = T === null ? void 0 : T ?? M, F = y.useMemo(() => ({
|
|
38636
38642
|
defaultTriggerId: M,
|
|
38637
38643
|
open: C,
|
|
38638
38644
|
state: R,
|
|
38639
|
-
setTriggerId:
|
|
38645
|
+
setTriggerId: A,
|
|
38640
38646
|
triggerId: _
|
|
38641
|
-
}), [M, C, R,
|
|
38647
|
+
}), [M, C, R, A, _]), O = Ee("div", t, {
|
|
38642
38648
|
state: R,
|
|
38643
38649
|
ref: f,
|
|
38644
38650
|
props: l,
|
|
@@ -38648,7 +38654,7 @@ const Yb = {
|
|
|
38648
38654
|
value: k,
|
|
38649
38655
|
children: /* @__PURE__ */ d(Kb.Provider, {
|
|
38650
38656
|
value: F,
|
|
38651
|
-
children:
|
|
38657
|
+
children: O
|
|
38652
38658
|
})
|
|
38653
38659
|
});
|
|
38654
38660
|
});
|
|
@@ -38746,7 +38752,7 @@ const SI = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
38746
38752
|
props: R,
|
|
38747
38753
|
ref: M,
|
|
38748
38754
|
shouldPreventOpenAnimation: T,
|
|
38749
|
-
shouldRender:
|
|
38755
|
+
shouldRender: A,
|
|
38750
38756
|
transitionStatus: _,
|
|
38751
38757
|
width: F
|
|
38752
38758
|
} = $k({
|
|
@@ -38761,10 +38767,10 @@ const SI = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
38761
38767
|
setOpen: x,
|
|
38762
38768
|
transitionStatus: v
|
|
38763
38769
|
}), {
|
|
38764
|
-
state:
|
|
38770
|
+
state: O,
|
|
38765
38771
|
triggerId: D
|
|
38766
38772
|
} = qb(), z = {
|
|
38767
|
-
...
|
|
38773
|
+
...O,
|
|
38768
38774
|
transitionStatus: _
|
|
38769
38775
|
}, V = Uh(c, z), H = Ee("div", {
|
|
38770
38776
|
...t,
|
|
@@ -38796,7 +38802,7 @@ const SI = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
38796
38802
|
],
|
|
38797
38803
|
stateAttributesMapping: Yb
|
|
38798
38804
|
});
|
|
38799
|
-
return
|
|
38805
|
+
return A ? H : null;
|
|
38800
38806
|
});
|
|
38801
38807
|
process.env.NODE_ENV !== "production" && (SI.displayName = "AccordionPanel");
|
|
38802
38808
|
function zd({ className: e, children: t, ref: n, ...r }) {
|
|
@@ -39394,7 +39400,7 @@ function xX({
|
|
|
39394
39400
|
// `ordered` reads a ref, so `membership` is what makes this recompute.
|
|
39395
39401
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
39396
39402
|
[f, S]
|
|
39397
|
-
), k = N.some((P) => P.id === b) ? b : N[0]?.id ?? null, R = l === "tabs" && N.length >= 2, M = Tt(), T = ke((P) => `${M}-tab-${P}`, [M]),
|
|
39403
|
+
), k = N.some((P) => P.id === b) ? b : N[0]?.id ?? null, R = l === "tabs" && N.length >= 2, M = Tt(), T = ke((P) => `${M}-tab-${P}`, [M]), A = ke((P) => `${M}-panel-${P}`, [M]);
|
|
39398
39404
|
Cn(() => {
|
|
39399
39405
|
const P = S();
|
|
39400
39406
|
if (P.length === 0) return;
|
|
@@ -39426,7 +39432,7 @@ function xX({
|
|
|
39426
39432
|
0
|
|
39427
39433
|
);
|
|
39428
39434
|
return Math.max(1, L - $);
|
|
39429
|
-
}, [t]),
|
|
39435
|
+
}, [t]), O = ke(
|
|
39430
39436
|
(P, L, $) => {
|
|
39431
39437
|
v((U) => {
|
|
39432
39438
|
const G = U[P.id], Y = U[L.id];
|
|
@@ -39465,12 +39471,12 @@ function xX({
|
|
|
39465
39471
|
tabbed: R,
|
|
39466
39472
|
selected: k,
|
|
39467
39473
|
tabDomId: T,
|
|
39468
|
-
panelDomId:
|
|
39474
|
+
panelDomId: A,
|
|
39469
39475
|
sizes: w,
|
|
39470
39476
|
dragging: m,
|
|
39471
39477
|
register: E,
|
|
39472
39478
|
neighbours: _,
|
|
39473
|
-
resizeBy:
|
|
39479
|
+
resizeBy: O,
|
|
39474
39480
|
toggleCollapse: D,
|
|
39475
39481
|
resetLayout: z,
|
|
39476
39482
|
measure: F,
|
|
@@ -39482,12 +39488,12 @@ function xX({
|
|
|
39482
39488
|
R,
|
|
39483
39489
|
k,
|
|
39484
39490
|
T,
|
|
39485
|
-
|
|
39491
|
+
A,
|
|
39486
39492
|
w,
|
|
39487
39493
|
m,
|
|
39488
39494
|
E,
|
|
39489
39495
|
_,
|
|
39490
|
-
|
|
39496
|
+
O,
|
|
39491
39497
|
D,
|
|
39492
39498
|
z,
|
|
39493
39499
|
F
|
|
@@ -39550,7 +39556,7 @@ function xX({
|
|
|
39550
39556
|
{
|
|
39551
39557
|
value: P.id,
|
|
39552
39558
|
id: T(P.id),
|
|
39553
|
-
"aria-controls":
|
|
39559
|
+
"aria-controls": A(P.id),
|
|
39554
39560
|
children: P.label
|
|
39555
39561
|
},
|
|
39556
39562
|
P.id
|
|
@@ -42321,7 +42327,7 @@ function ka({
|
|
|
42321
42327
|
opt-in is meant to prevent. */
|
|
42322
42328
|
...N ? { getPaginationRowModel: MU(), onPaginationChange: R } : {},
|
|
42323
42329
|
...w ? { getRowId: w } : {}
|
|
42324
|
-
}),
|
|
42330
|
+
}), A = T.getRowModel().rows, _ = !i && A.length === 0, F = M.length, O = T.getFilteredRowModel().rows.length, D = T.getAllLeafColumns().some((H) => H.columnDef.footer !== void 0), z = Array.from(
|
|
42325
42331
|
/* @__PURE__ */ new Set([...u ?? _U, k.pageSize])
|
|
42326
42332
|
).sort((H, P) => H - P);
|
|
42327
42333
|
function V(H) {
|
|
@@ -42400,7 +42406,7 @@ function ka({
|
|
|
42400
42406
|
style: { animationDelay: `${Math.min(P, 8) * 40}ms` }
|
|
42401
42407
|
}
|
|
42402
42408
|
) }, $)) }, `skeleton-${P}`)),
|
|
42403
|
-
!i &&
|
|
42409
|
+
!i && A.map((H) => {
|
|
42404
42410
|
const P = H.getIsSelected();
|
|
42405
42411
|
return /* @__PURE__ */ d(
|
|
42406
42412
|
"tr",
|
|
@@ -42469,10 +42475,10 @@ function ka({
|
|
|
42469
42475
|
/* @__PURE__ */ d("span", { className: "font-semibold text-accent-text", children: T.getSelectedRowModel().rows.length }),
|
|
42470
42476
|
" ",
|
|
42471
42477
|
"of ",
|
|
42472
|
-
|
|
42478
|
+
O,
|
|
42473
42479
|
" selected"
|
|
42474
42480
|
] }),
|
|
42475
|
-
N && !i &&
|
|
42481
|
+
N && !i && O > 0 && /* @__PURE__ */ d(
|
|
42476
42482
|
l6,
|
|
42477
42483
|
{
|
|
42478
42484
|
mode: "numbered",
|
|
@@ -42480,7 +42486,7 @@ function ka({
|
|
|
42480
42486
|
page: k.pageIndex + 1,
|
|
42481
42487
|
pageSize: k.pageSize,
|
|
42482
42488
|
pageSizeOptions: z,
|
|
42483
|
-
total:
|
|
42489
|
+
total: O,
|
|
42484
42490
|
onPageChange: (H) => T.setPageIndex(H - 1),
|
|
42485
42491
|
onPageSizeChange: V
|
|
42486
42492
|
}
|
|
@@ -44538,8 +44544,8 @@ function AX({
|
|
|
44538
44544
|
[t]
|
|
44539
44545
|
), v = Te(() => {
|
|
44540
44546
|
const T = /* @__PURE__ */ new Map();
|
|
44541
|
-
for (const
|
|
44542
|
-
for (const _ of
|
|
44547
|
+
for (const A of t)
|
|
44548
|
+
for (const _ of A.items) T.set(String(n(_)), A.id);
|
|
44543
44549
|
return T;
|
|
44544
44550
|
}, [t, n]), C = Te(
|
|
44545
44551
|
() => ({
|
|
@@ -44553,9 +44559,9 @@ function AX({
|
|
|
44553
44559
|
[n, v]
|
|
44554
44560
|
), E = ke(
|
|
44555
44561
|
(T) => {
|
|
44556
|
-
for (const
|
|
44557
|
-
if (
|
|
44558
|
-
const F = t.find((
|
|
44562
|
+
for (const A of T.moves) {
|
|
44563
|
+
if (A.to.columnId === A.from.columnId && A.to.index === A.from.index) continue;
|
|
44564
|
+
const F = t.find((O) => O.id === A.to.columnId);
|
|
44559
44565
|
if (F?.refusal !== void 0)
|
|
44560
44566
|
return { ok: !1, reason: F.refusal };
|
|
44561
44567
|
}
|
|
@@ -44564,11 +44570,11 @@ function AX({
|
|
|
44564
44570
|
[t]
|
|
44565
44571
|
), S = ke(
|
|
44566
44572
|
(T) => {
|
|
44567
|
-
for (const
|
|
44573
|
+
for (const A of T.moves)
|
|
44568
44574
|
i({
|
|
44569
|
-
id: String(
|
|
44570
|
-
from: { lane: String(
|
|
44571
|
-
to: { lane: String(
|
|
44575
|
+
id: String(A.itemId),
|
|
44576
|
+
from: { lane: String(A.from.columnId), index: A.from.index },
|
|
44577
|
+
to: { lane: String(A.to.columnId), index: A.to.index }
|
|
44572
44578
|
});
|
|
44573
44579
|
},
|
|
44574
44580
|
[i]
|
|
@@ -44578,7 +44584,7 @@ function AX({
|
|
|
44578
44584
|
accessors: C,
|
|
44579
44585
|
validateMove: E,
|
|
44580
44586
|
onMove: S
|
|
44581
|
-
}), k = (T) => x.find((
|
|
44587
|
+
}), k = (T) => x.find((A) => String(n(A)) === T);
|
|
44582
44588
|
return (
|
|
44583
44589
|
/* THE HEIGHT CHAIN STARTS HERE, ONE ELEMENT ABOVE THE BOARD.
|
|
44584
44590
|
|
|
@@ -44623,8 +44629,8 @@ function AX({
|
|
|
44623
44629
|
if (_.ok)
|
|
44624
44630
|
b(null);
|
|
44625
44631
|
else {
|
|
44626
|
-
const F = k(String(T.id)),
|
|
44627
|
-
b(`${
|
|
44632
|
+
const F = k(String(T.id)), O = F === void 0 ? String(T.id) : r(F);
|
|
44633
|
+
b(`${O} was not moved. ${_.reason}`), a?.({
|
|
44628
44634
|
id: String(T.id),
|
|
44629
44635
|
lane: String(T.to.container),
|
|
44630
44636
|
reason: _.reason
|
|
@@ -44632,8 +44638,8 @@ function AX({
|
|
|
44632
44638
|
}
|
|
44633
44639
|
},
|
|
44634
44640
|
renderCarried: (T) => {
|
|
44635
|
-
const
|
|
44636
|
-
return
|
|
44641
|
+
const A = k(String(T));
|
|
44642
|
+
return A === void 0 ? null : (s ?? o)(A);
|
|
44637
44643
|
},
|
|
44638
44644
|
strings: l,
|
|
44639
44645
|
className: "flex min-h-0 min-w-0 flex-1 flex-col",
|
|
@@ -44647,7 +44653,7 @@ function AX({
|
|
|
44647
44653
|
role: "group",
|
|
44648
44654
|
"aria-label": e,
|
|
44649
44655
|
children: t.map((T) => {
|
|
44650
|
-
const
|
|
44656
|
+
const A = T.refusal !== void 0, _ = Yw({ refusing: A }), F = N.columns.find((z) => z.id === T.id), O = F?.count ?? 0, D = F?.overWip ?? !1;
|
|
44651
44657
|
return /* @__PURE__ */ I("section", { className: _.lane(), "aria-label": T.label, children: [
|
|
44652
44658
|
/* @__PURE__ */ I("div", { className: h.laneHeader(), children: [
|
|
44653
44659
|
/* @__PURE__ */ I("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
@@ -44667,8 +44673,8 @@ function AX({
|
|
|
44667
44673
|
ut,
|
|
44668
44674
|
{
|
|
44669
44675
|
size: "sm",
|
|
44670
|
-
tone: D ? "danger" :
|
|
44671
|
-
children: T.limit === void 0 ? String(
|
|
44676
|
+
tone: D ? "danger" : O === 0 ? "neutral" : "accent",
|
|
44677
|
+
children: T.limit === void 0 ? String(O) : `${O} / ${T.limit}`
|
|
44672
44678
|
}
|
|
44673
44679
|
)
|
|
44674
44680
|
] }),
|
|
@@ -44697,7 +44703,7 @@ function AX({
|
|
|
44697
44703
|
},
|
|
44698
44704
|
n(z)
|
|
44699
44705
|
)),
|
|
44700
|
-
|
|
44706
|
+
O === 0 && /* @__PURE__ */ d("p", { className: h.laneEmpty(), children: T.empty ?? c })
|
|
44701
44707
|
]
|
|
44702
44708
|
}
|
|
44703
44709
|
)
|
|
@@ -45379,12 +45385,12 @@ function oG({
|
|
|
45379
45385
|
T.key !== "Enter" || T.shiftKey || T.nativeEvent.isComposing || (T.preventDefault(), N());
|
|
45380
45386
|
}, R = (T) => {
|
|
45381
45387
|
if (!o) return;
|
|
45382
|
-
const
|
|
45383
|
-
|
|
45388
|
+
const A = [...T.clipboardData.files];
|
|
45389
|
+
A.length !== 0 && (T.preventDefault(), o(A));
|
|
45384
45390
|
}, M = (T) => {
|
|
45385
45391
|
if (T.preventDefault(), C(!1), !o) return;
|
|
45386
|
-
const
|
|
45387
|
-
|
|
45392
|
+
const A = [...T.dataTransfer.files];
|
|
45393
|
+
A.length > 0 && o(A);
|
|
45388
45394
|
};
|
|
45389
45395
|
return /* @__PURE__ */ I("div", { className: B("flex flex-col gap-1.5", b), children: [
|
|
45390
45396
|
/* @__PURE__ */ I(
|
|
@@ -45445,8 +45451,8 @@ function oG({
|
|
|
45445
45451
|
multiple: !0,
|
|
45446
45452
|
accept: m,
|
|
45447
45453
|
onChange: (T) => {
|
|
45448
|
-
const
|
|
45449
|
-
|
|
45454
|
+
const A = [...T.target.files ?? []];
|
|
45455
|
+
A.length > 0 && o(A), T.target.value = "";
|
|
45450
45456
|
},
|
|
45451
45457
|
className: "sr-only",
|
|
45452
45458
|
tabIndex: -1,
|
|
@@ -46568,10 +46574,10 @@ function CG({
|
|
|
46568
46574
|
className: E,
|
|
46569
46575
|
...S
|
|
46570
46576
|
}) {
|
|
46571
|
-
const [N, k] = ae(null), R = (
|
|
46572
|
-
if (!
|
|
46577
|
+
const [N, k] = ae(null), R = (A) => {
|
|
46578
|
+
if (!A.url) return;
|
|
46573
46579
|
const _ = document.createElement("a");
|
|
46574
|
-
_.href =
|
|
46580
|
+
_.href = A.url, _.download = A.name, _.click();
|
|
46575
46581
|
}, M = /* @__PURE__ */ I(tt, { children: [
|
|
46576
46582
|
c && l !== void 0 && u && /* @__PURE__ */ d(
|
|
46577
46583
|
vG,
|
|
@@ -46618,20 +46624,20 @@ function CG({
|
|
|
46618
46624
|
title: "No messages yet",
|
|
46619
46625
|
description: "Ask a question to start the conversation."
|
|
46620
46626
|
}
|
|
46621
|
-
) : e.map((
|
|
46627
|
+
) : e.map((A, _) => /* @__PURE__ */ d(
|
|
46622
46628
|
bG,
|
|
46623
46629
|
{
|
|
46624
|
-
message:
|
|
46630
|
+
message: A,
|
|
46625
46631
|
renderers: t,
|
|
46626
46632
|
components: n,
|
|
46627
46633
|
appContext: r,
|
|
46628
|
-
actions:
|
|
46634
|
+
actions: A.role === "assistant" ? b : void 0,
|
|
46629
46635
|
showTimestamp: x,
|
|
46630
|
-
grouped: _ > 0 && e[_ - 1].role ===
|
|
46636
|
+
grouped: _ > 0 && e[_ - 1].role === A.role,
|
|
46631
46637
|
onPreviewFile: k,
|
|
46632
46638
|
onDownloadFile: R
|
|
46633
46639
|
},
|
|
46634
|
-
|
|
46640
|
+
A.id
|
|
46635
46641
|
)) }),
|
|
46636
46642
|
/* @__PURE__ */ I("div", { className: "shrink-0 px-4 pt-1 pb-4", children: [
|
|
46637
46643
|
w && /* @__PURE__ */ d("div", { className: "px-1 pb-1.5", children: w }),
|
|
@@ -47329,29 +47335,29 @@ function QX({
|
|
|
47329
47335
|
() => x.map((N) => {
|
|
47330
47336
|
const k = [];
|
|
47331
47337
|
for (const F of n) {
|
|
47332
|
-
const
|
|
47333
|
-
|
|
47338
|
+
const O = F.allDay ? $M(N, F) : yh(t, N, F);
|
|
47339
|
+
O && k.push(O);
|
|
47334
47340
|
}
|
|
47335
|
-
const R = k.map((F,
|
|
47336
|
-
key: `${F.event.id}:${
|
|
47341
|
+
const R = k.map((F, O) => ({
|
|
47342
|
+
key: `${F.event.id}:${O}`,
|
|
47337
47343
|
startColumn: F.startColumn,
|
|
47338
47344
|
endColumn: F.endColumn,
|
|
47339
47345
|
/* All-day bars sort above timed chips: a bar spanning the row is the
|
|
47340
47346
|
structure of the week, and burying it under single-day chips makes
|
|
47341
47347
|
the week unreadable. */
|
|
47342
47348
|
priority: F.event.allDay ? 0 : 1
|
|
47343
|
-
})), M = FM(R, { columns: N.length, maxRows: l }), T = new Map(R.map((F,
|
|
47349
|
+
})), M = FM(R, { columns: N.length, maxRows: l }), T = new Map(R.map((F, O) => [F.key, k[O]])), A = M.placed.map((F) => ({
|
|
47344
47350
|
...T.get(F.key),
|
|
47345
47351
|
row: F.row
|
|
47346
47352
|
})), _ = N.map(() => []);
|
|
47347
47353
|
for (const F of M.hidden) {
|
|
47348
|
-
const
|
|
47349
|
-
for (let D = Math.max(0,
|
|
47350
|
-
_[D].push(
|
|
47354
|
+
const O = T.get(F.key);
|
|
47355
|
+
for (let D = Math.max(0, O.startColumn); D <= Math.min(N.length - 1, O.endColumn); D++)
|
|
47356
|
+
_[D].push(O.event);
|
|
47351
47357
|
}
|
|
47352
47358
|
return {
|
|
47353
47359
|
days: N,
|
|
47354
|
-
placed:
|
|
47360
|
+
placed: A,
|
|
47355
47361
|
overflow: M.overflow,
|
|
47356
47362
|
hiddenByColumn: _,
|
|
47357
47363
|
rows: M.rows
|
|
@@ -47385,7 +47391,7 @@ function QX({
|
|
|
47385
47391
|
Ln(N)
|
|
47386
47392
|
)) }) }),
|
|
47387
47393
|
/* @__PURE__ */ d("tbody", { children: E.map((N) => /* @__PURE__ */ d("tr", { children: N.days.map((k, R) => {
|
|
47388
|
-
const M = Ln(k), T = GG(k, e),
|
|
47394
|
+
const M = Ln(k), T = GG(k, e), A = o ? ss(k, o) : !1, _ = s ? ss(k, s) : !1, F = ss(k, w.focusedDay), O = N.placed.filter((V) => V.startColumn === R), D = N.hiddenByColumn[R], z = N.placed.filter((V) => V.startColumn <= R && V.endColumn >= R).length + D.length;
|
|
47389
47395
|
return /* @__PURE__ */ d(
|
|
47390
47396
|
"td",
|
|
47391
47397
|
{
|
|
@@ -47395,9 +47401,9 @@ function QX({
|
|
|
47395
47401
|
tabIndex: F ? 0 : -1,
|
|
47396
47402
|
"aria-label": s0(k, z, u),
|
|
47397
47403
|
"aria-selected": _ || void 0,
|
|
47398
|
-
"aria-current":
|
|
47404
|
+
"aria-current": A ? "date" : void 0,
|
|
47399
47405
|
"data-in-month": T ? "" : void 0,
|
|
47400
|
-
"data-today":
|
|
47406
|
+
"data-today": A ? "" : void 0,
|
|
47401
47407
|
className: m.cell(),
|
|
47402
47408
|
onClick: () => {
|
|
47403
47409
|
w.setFocusedDay(k), i?.(k);
|
|
@@ -47424,13 +47430,13 @@ function QX({
|
|
|
47424
47430
|
className: B(
|
|
47425
47431
|
m.dayNumber(),
|
|
47426
47432
|
!T && "text-tertiary",
|
|
47427
|
-
T && !
|
|
47428
|
-
|
|
47433
|
+
T && !A && "text-secondary",
|
|
47434
|
+
A && "bg-accent font-semibold text-accent-contrast"
|
|
47429
47435
|
),
|
|
47430
47436
|
children: VM(k, u)
|
|
47431
47437
|
}
|
|
47432
47438
|
),
|
|
47433
|
-
/* @__PURE__ */ d("div", { className: m.bars(), style: { height: `${N.rows * ip}px` }, children:
|
|
47439
|
+
/* @__PURE__ */ d("div", { className: m.bars(), style: { height: `${N.rows * ip}px` }, children: O.map((V) => {
|
|
47434
47440
|
const H = V.endColumn - V.startColumn + 1, P = Ia(V.event.paletteKey);
|
|
47435
47441
|
return /* @__PURE__ */ d(
|
|
47436
47442
|
"button",
|
|
@@ -47695,9 +47701,9 @@ function QG(e) {
|
|
|
47695
47701
|
), E = ke(
|
|
47696
47702
|
(_) => (F) => {
|
|
47697
47703
|
if (!F || l) return;
|
|
47698
|
-
const
|
|
47704
|
+
const O = _.event, D = _.kind;
|
|
47699
47705
|
return Na(F, {
|
|
47700
|
-
onPress: () =>
|
|
47706
|
+
onPress: () => O.editable !== !1,
|
|
47701
47707
|
onActivate: (V) => {
|
|
47702
47708
|
x.current.point = V, w();
|
|
47703
47709
|
const H = Bi(V, {
|
|
@@ -47705,7 +47711,7 @@ function QG(e) {
|
|
|
47705
47711
|
columns: x.current.columns,
|
|
47706
47712
|
snapMinutes: b.current.snapMinutes
|
|
47707
47713
|
});
|
|
47708
|
-
H && (x.current.origin = { event:
|
|
47714
|
+
H && (x.current.origin = { event: O, kind: D, from: H }, x.current.last = H, x.current.spoken = null, p({ id: O.id, kind: D, delta: {} }));
|
|
47709
47715
|
},
|
|
47710
47716
|
onMove: (V) => {
|
|
47711
47717
|
x.current.point = V;
|
|
@@ -47719,7 +47725,7 @@ function QG(e) {
|
|
|
47719
47725
|
if (!L) return;
|
|
47720
47726
|
x.current.last = L;
|
|
47721
47727
|
const $ = ap(H, L, b.current.zone);
|
|
47722
|
-
g($.invalid !== void 0), p({ id:
|
|
47728
|
+
g($.invalid !== void 0), p({ id: O.id, kind: D, delta: $.delta }), $.invalid || v(L);
|
|
47723
47729
|
},
|
|
47724
47730
|
onRelease: (V, H) => {
|
|
47725
47731
|
if (x.current.point = null, H) {
|
|
@@ -47734,8 +47740,8 @@ function QG(e) {
|
|
|
47734
47740
|
if (!L) return;
|
|
47735
47741
|
const $ = ap(P, L, b.current.zone);
|
|
47736
47742
|
!$.moved || $.invalid || b.current.onCommit?.(
|
|
47737
|
-
|
|
47738
|
-
a0(
|
|
47743
|
+
O,
|
|
47744
|
+
a0(O, D, $.delta, b.current.zone)
|
|
47739
47745
|
);
|
|
47740
47746
|
},
|
|
47741
47747
|
onCancel: () => {
|
|
@@ -47746,36 +47752,36 @@ function QG(e) {
|
|
|
47746
47752
|
[v, l, w]
|
|
47747
47753
|
), S = ke(
|
|
47748
47754
|
(_, F) => {
|
|
47749
|
-
const
|
|
47750
|
-
let D = C.current.get(
|
|
47755
|
+
const O = `${_.id}:${F}`;
|
|
47756
|
+
let D = C.current.get(O);
|
|
47751
47757
|
return D || (D = { event: _, kind: F, cb: () => {
|
|
47752
|
-
} }, D.cb = E(D), C.current.set(
|
|
47758
|
+
} }, D.cb = E(D), C.current.set(O, D)), D.event = _, D.cb;
|
|
47753
47759
|
},
|
|
47754
47760
|
[E]
|
|
47755
47761
|
), N = ve(null), k = ke(
|
|
47756
47762
|
(_) => !_ || l || !i ? void 0 : Na(_, {
|
|
47757
|
-
onPress: (
|
|
47758
|
-
onActivate: (
|
|
47759
|
-
x.current.point =
|
|
47760
|
-
const D = Bi(
|
|
47763
|
+
onPress: (O, D) => !D.target?.closest("button"),
|
|
47764
|
+
onActivate: (O) => {
|
|
47765
|
+
x.current.point = O, w();
|
|
47766
|
+
const D = Bi(O, {
|
|
47761
47767
|
zone: b.current.zone,
|
|
47762
47768
|
columns: x.current.columns,
|
|
47763
47769
|
snapMinutes: b.current.snapMinutes
|
|
47764
47770
|
});
|
|
47765
47771
|
D && (x.current.anchor = D, x.current.last = D, x.current.spoken = null, h(lc(D, D)));
|
|
47766
47772
|
},
|
|
47767
|
-
onMove: (
|
|
47768
|
-
x.current.point =
|
|
47773
|
+
onMove: (O) => {
|
|
47774
|
+
x.current.point = O;
|
|
47769
47775
|
const D = x.current.anchor;
|
|
47770
47776
|
if (!D) return;
|
|
47771
|
-
const V = Bi(
|
|
47777
|
+
const V = Bi(O, {
|
|
47772
47778
|
zone: b.current.zone,
|
|
47773
47779
|
columns: x.current.columns,
|
|
47774
47780
|
snapMinutes: b.current.snapMinutes
|
|
47775
47781
|
}) ?? x.current.last;
|
|
47776
47782
|
V && (x.current.last = V, h(lc(D, V)), v(V));
|
|
47777
47783
|
},
|
|
47778
|
-
onRelease: (
|
|
47784
|
+
onRelease: (O, D) => {
|
|
47779
47785
|
if (x.current.point = null, D) {
|
|
47780
47786
|
const H = (P) => {
|
|
47781
47787
|
P.stopPropagation(), P.preventDefault();
|
|
@@ -47793,7 +47799,7 @@ function QG(e) {
|
|
|
47793
47799
|
), R = ke(() => (N.current || (N.current = k), N.current), [k]), M = ke(() => x.current.point, []), T = ke(
|
|
47794
47800
|
(_) => {
|
|
47795
47801
|
w();
|
|
47796
|
-
const F = x.current.origin,
|
|
47802
|
+
const F = x.current.origin, O = x.current.anchor, z = Bi(_, {
|
|
47797
47803
|
zone: b.current.zone,
|
|
47798
47804
|
columns: x.current.columns,
|
|
47799
47805
|
snapMinutes: b.current.snapMinutes
|
|
@@ -47802,14 +47808,14 @@ function QG(e) {
|
|
|
47802
47808
|
if (x.current.last = z, F) {
|
|
47803
47809
|
const V = ap(F, z, b.current.zone);
|
|
47804
47810
|
g(V.invalid !== void 0), p({ id: F.event.id, kind: F.kind, delta: V.delta }), V.invalid || v(z);
|
|
47805
|
-
} else
|
|
47811
|
+
} else O && (h(lc(O, z)), v(z));
|
|
47806
47812
|
},
|
|
47807
47813
|
[v, w]
|
|
47808
|
-
),
|
|
47814
|
+
), A = ke(
|
|
47809
47815
|
(_) => !u || u.id !== _.id ? _ : a0(_, u.kind, u.delta, t),
|
|
47810
47816
|
[u, t]
|
|
47811
47817
|
);
|
|
47812
|
-
return { draft: u, creating: f, invalid: m, bindEvent: S, bindCanvas: R, preview:
|
|
47818
|
+
return { draft: u, creating: f, invalid: m, bindEvent: S, bindCanvas: R, preview: A, getPoint: M, onScrolled: T };
|
|
47813
47819
|
}
|
|
47814
47820
|
const JG = ft({
|
|
47815
47821
|
slots: {
|
|
@@ -48067,7 +48073,7 @@ function JX({
|
|
|
48067
48073
|
const E = o8(), S = ve(null), N = ve([]), [k, R] = ae(""), M = XG({ fixed: p }), T = Te(
|
|
48068
48074
|
() => e.length > 0 ? r0(t, e[0], s) : [],
|
|
48069
48075
|
[e, t, s]
|
|
48070
|
-
),
|
|
48076
|
+
), A = Te(() => e.reduce(
|
|
48071
48077
|
(U, G) => Math.max(U, r0(t, G, s).length),
|
|
48072
48078
|
1
|
|
48073
48079
|
) * i, [e, t, s, i]), _ = Te(() => {
|
|
@@ -48092,7 +48098,7 @@ function JX({
|
|
|
48092
48098
|
rows: G.rows
|
|
48093
48099
|
};
|
|
48094
48100
|
}, [e, n, t, c]), F = Te(() => {
|
|
48095
|
-
const $ = l0 / Math.max(1,
|
|
48101
|
+
const $ = l0 / Math.max(1, A);
|
|
48096
48102
|
return e.map((U, G) => {
|
|
48097
48103
|
const Y = [];
|
|
48098
48104
|
for (const j of n) {
|
|
@@ -48114,11 +48120,11 @@ function JX({
|
|
|
48114
48120
|
}))
|
|
48115
48121
|
};
|
|
48116
48122
|
});
|
|
48117
|
-
}, [e, n, t, u, l,
|
|
48123
|
+
}, [e, n, t, u, l, A]), O = e.map(Ln).join(","), D = Te(() => {
|
|
48118
48124
|
if (e.length === 0) return null;
|
|
48119
48125
|
const $ = e[0], U = fn(t, $) + a * 36e5;
|
|
48120
|
-
return Math.max(0, Math.min(1, Ra(t, $, U))) *
|
|
48121
|
-
}, [
|
|
48126
|
+
return Math.max(0, Math.min(1, Ra(t, $, U))) * A;
|
|
48127
|
+
}, [O, t, a, A]);
|
|
48122
48128
|
Ae(() => {
|
|
48123
48129
|
const $ = S.current;
|
|
48124
48130
|
!$ || D === null || ($.scrollTop = D);
|
|
@@ -48227,20 +48233,20 @@ function JX({
|
|
|
48227
48233
|
"div",
|
|
48228
48234
|
{
|
|
48229
48235
|
className: E.gutter(),
|
|
48230
|
-
style: { width: cc, height:
|
|
48236
|
+
style: { width: cc, height: A },
|
|
48231
48237
|
"aria-hidden": "true",
|
|
48232
48238
|
children: T.map(($, U) => /* @__PURE__ */ d(
|
|
48233
48239
|
"div",
|
|
48234
48240
|
{
|
|
48235
48241
|
className: E.railLabel(),
|
|
48236
|
-
style: { position: "absolute", top: $.fraction *
|
|
48242
|
+
style: { position: "absolute", top: $.fraction * A, width: cc },
|
|
48237
48243
|
children: U === 0 ? "" : oo($.instant, t, x, $.minute !== 0)
|
|
48238
48244
|
},
|
|
48239
48245
|
`${$.instant}:${U}`
|
|
48240
48246
|
))
|
|
48241
48247
|
}
|
|
48242
48248
|
),
|
|
48243
|
-
/* @__PURE__ */ I("div", { className: E.columns(), style: { height:
|
|
48249
|
+
/* @__PURE__ */ I("div", { className: E.columns(), style: { height: A }, children: [
|
|
48244
48250
|
/* @__PURE__ */ d(
|
|
48245
48251
|
"div",
|
|
48246
48252
|
{
|
|
@@ -48274,7 +48280,7 @@ function JX({
|
|
|
48274
48280
|
"aria-label": `Events on ${pu($.day, x)}`,
|
|
48275
48281
|
children: [
|
|
48276
48282
|
$.events.map(({ event: U, top: G, bottom: Y, isStart: W, isEnd: X, placement: K }) => {
|
|
48277
|
-
const j = Ia(U.paletteKey), Z = H.preview(V.preview(U)), ne = H.grabbedId === U.id, te = V.draft?.id === U.id || ne, q = te ? Hi(t, $.day, Z.start) : K.start, J = te ? Hi(t, $.day, Z.endExclusive) : K.end, fe = (Y - G) *
|
|
48283
|
+
const j = Ia(U.paletteKey), Z = H.preview(V.preview(U)), ne = H.grabbedId === U.id, te = V.draft?.id === U.id || ne, q = te ? Hi(t, $.day, Z.start) : K.start, J = te ? Hi(t, $.day, Z.endExclusive) : K.end, fe = (Y - G) * A < 30, pe = !!h && U.editable !== !1;
|
|
48278
48284
|
return /* @__PURE__ */ I("li", { className: "contents", children: [
|
|
48279
48285
|
/* @__PURE__ */ d(
|
|
48280
48286
|
s8,
|
|
@@ -48311,8 +48317,8 @@ function JX({
|
|
|
48311
48317
|
ref: pe ? V.bindEvent(U, "move") : void 0,
|
|
48312
48318
|
"data-dragging": te ? "" : void 0,
|
|
48313
48319
|
style: {
|
|
48314
|
-
top: q *
|
|
48315
|
-
height: Math.max(l0, (J - q) *
|
|
48320
|
+
top: q * A,
|
|
48321
|
+
height: Math.max(l0, (J - q) * A),
|
|
48316
48322
|
left: `calc(${K.left * 100}% + 1px)`,
|
|
48317
48323
|
width: `calc(${K.width * 100}% - 2px)`,
|
|
48318
48324
|
zIndex: 10 + K.zIndex,
|
|
@@ -48340,7 +48346,7 @@ function JX({
|
|
|
48340
48346
|
{
|
|
48341
48347
|
"aria-hidden": "true",
|
|
48342
48348
|
className: B(E.resizeHandle(), "top-0"),
|
|
48343
|
-
style: { top: q *
|
|
48349
|
+
style: { top: q * A, left: `calc(${K.left * 100}% + 1px)`, width: `calc(${K.width * 100}% - 2px)`, position: "absolute", zIndex: 20 + K.zIndex },
|
|
48344
48350
|
ref: V.bindEvent(U, "resize-start")
|
|
48345
48351
|
}
|
|
48346
48352
|
),
|
|
@@ -48349,7 +48355,7 @@ function JX({
|
|
|
48349
48355
|
{
|
|
48350
48356
|
"aria-hidden": "true",
|
|
48351
48357
|
className: B(E.resizeHandle()),
|
|
48352
|
-
style: { top: J *
|
|
48358
|
+
style: { top: J * A - 20, left: `calc(${K.left * 100}% + 1px)`, width: `calc(${K.width * 100}% - 2px)`, position: "absolute", zIndex: 20 + K.zIndex },
|
|
48353
48359
|
ref: V.bindEvent(U, "resize-end")
|
|
48354
48360
|
}
|
|
48355
48361
|
)
|
|
@@ -48360,8 +48366,8 @@ function JX({
|
|
|
48360
48366
|
{
|
|
48361
48367
|
className: E.ghost(),
|
|
48362
48368
|
style: {
|
|
48363
|
-
top: Hi(t, $.day, V.creating.start) *
|
|
48364
|
-
height: (Hi(t, $.day, V.creating.endExclusive) - Hi(t, $.day, V.creating.start)) *
|
|
48369
|
+
top: Hi(t, $.day, V.creating.start) * A,
|
|
48370
|
+
height: (Hi(t, $.day, V.creating.endExclusive) - Hi(t, $.day, V.creating.start)) * A,
|
|
48365
48371
|
left: 2,
|
|
48366
48372
|
right: 2
|
|
48367
48373
|
}
|
|
@@ -48374,7 +48380,7 @@ function JX({
|
|
|
48374
48380
|
"div",
|
|
48375
48381
|
{
|
|
48376
48382
|
className: E.nowLine(),
|
|
48377
|
-
style: { top: L *
|
|
48383
|
+
style: { top: L * A },
|
|
48378
48384
|
"aria-hidden": "true",
|
|
48379
48385
|
children: /* @__PURE__ */ d("span", { className: E.nowDot() })
|
|
48380
48386
|
}
|
|
@@ -49651,7 +49657,7 @@ function hZ({
|
|
|
49651
49657
|
className: l
|
|
49652
49658
|
}) {
|
|
49653
49659
|
const [u, p] = ae(!1), [f, h] = ae(""), [m, g] = ae(""), [b, x] = ae(null), [w, v] = ae(!1), [C, E] = ae(null), [S, N] = ae(null), [k, R] = ae({ kind: "unchanged" }), M = Tt(), T = new Set(o);
|
|
49654
|
-
function
|
|
49660
|
+
function A() {
|
|
49655
49661
|
h(""), g(""), x(null), E(null), p(!0);
|
|
49656
49662
|
}
|
|
49657
49663
|
async function _() {
|
|
@@ -49674,12 +49680,12 @@ function hZ({
|
|
|
49674
49680
|
} catch {
|
|
49675
49681
|
}
|
|
49676
49682
|
}
|
|
49677
|
-
const
|
|
49683
|
+
const O = T8(a, i);
|
|
49678
49684
|
return /* @__PURE__ */ I("div", { className: l, children: [
|
|
49679
49685
|
/* @__PURE__ */ I("div", { className: "flex flex-col gap-3", children: [
|
|
49680
49686
|
/* @__PURE__ */ I("div", { className: "flex items-center justify-between gap-3", children: [
|
|
49681
49687
|
/* @__PURE__ */ d("h2", { className: "text-xs font-semibold tracking-widest text-tertiary uppercase", children: "API keys" }),
|
|
49682
|
-
/* @__PURE__ */ d(Je, { size: "sm", leadingIcon: /* @__PURE__ */ d(ue, { name: "plus", size: "sm" }), onClick:
|
|
49688
|
+
/* @__PURE__ */ d(Je, { size: "sm", leadingIcon: /* @__PURE__ */ d(ue, { name: "plus", size: "sm" }), onClick: A, children: "Create key" })
|
|
49683
49689
|
] }),
|
|
49684
49690
|
e.length === 0 ? c ?? /* @__PURE__ */ d(
|
|
49685
49691
|
cl,
|
|
@@ -49688,14 +49694,14 @@ function hZ({
|
|
|
49688
49694
|
title: "No API keys yet",
|
|
49689
49695
|
description: "Create one to let a script or an agent act as you, with the access of the role you pick."
|
|
49690
49696
|
}
|
|
49691
|
-
) : /* @__PURE__ */ d(ka, { columns:
|
|
49697
|
+
) : /* @__PURE__ */ d(ka, { columns: O, data: e, getRowId: (D) => String(D.id) })
|
|
49692
49698
|
] }),
|
|
49693
49699
|
t.length > 0 && /* @__PURE__ */ I("div", { className: "mt-6 flex flex-col gap-3", children: [
|
|
49694
49700
|
/* @__PURE__ */ I("div", { className: "flex flex-col gap-1", children: [
|
|
49695
49701
|
/* @__PURE__ */ d("h2", { className: "text-xs font-semibold tracking-widest text-tertiary uppercase", children: "Agent keys" }),
|
|
49696
49702
|
/* @__PURE__ */ d("p", { className: "text-sm text-secondary", children: "Minted by your workers to run cards as you. Revoking one stops that agent immediately." })
|
|
49697
49703
|
] }),
|
|
49698
|
-
/* @__PURE__ */ d(ka, { columns:
|
|
49704
|
+
/* @__PURE__ */ d(ka, { columns: O, data: t, getRowId: (D) => String(D.id) })
|
|
49699
49705
|
] }),
|
|
49700
49706
|
/* @__PURE__ */ d(
|
|
49701
49707
|
ps,
|
|
@@ -50299,9 +50305,9 @@ function CZ({
|
|
|
50299
50305
|
Ae(() => {
|
|
50300
50306
|
e && T(e);
|
|
50301
50307
|
}, []);
|
|
50302
|
-
const
|
|
50308
|
+
const A = f.status === "valid", _ = f.status === "valid" ? f.emailLock : null, F = A && e !== void 0 && u === e, O = _ ?? w, D = n(S), z = D.every((P) => P.met), V = A && m.trim() !== "" && b.trim() !== "" && O.trim() !== "" && C.trim() !== "" && S !== "" && z && k && !i;
|
|
50303
50309
|
function H(P) {
|
|
50304
|
-
if (P.preventDefault(), !
|
|
50310
|
+
if (P.preventDefault(), !A) {
|
|
50305
50311
|
u.trim() !== "" && f.status !== "checking" && T(u);
|
|
50306
50312
|
return;
|
|
50307
50313
|
}
|
|
@@ -50309,7 +50315,7 @@ function CZ({
|
|
|
50309
50315
|
code: u.trim(),
|
|
50310
50316
|
name: m.trim(),
|
|
50311
50317
|
username: b.trim(),
|
|
50312
|
-
email:
|
|
50318
|
+
email: O.trim(),
|
|
50313
50319
|
teamName: C.trim(),
|
|
50314
50320
|
password: S,
|
|
50315
50321
|
acceptedTerms: !0
|
|
@@ -50341,7 +50347,7 @@ function CZ({
|
|
|
50341
50347
|
)
|
|
50342
50348
|
}
|
|
50343
50349
|
),
|
|
50344
|
-
!
|
|
50350
|
+
!A && /* @__PURE__ */ d(
|
|
50345
50351
|
Je,
|
|
50346
50352
|
{
|
|
50347
50353
|
type: "submit",
|
|
@@ -50351,7 +50357,7 @@ function CZ({
|
|
|
50351
50357
|
children: "Continue"
|
|
50352
50358
|
}
|
|
50353
50359
|
),
|
|
50354
|
-
|
|
50360
|
+
A && /* @__PURE__ */ I(tt, { children: [
|
|
50355
50361
|
/* @__PURE__ */ d(mt, { label: "Your name", children: /* @__PURE__ */ d(
|
|
50356
50362
|
Ft,
|
|
50357
50363
|
{
|
|
@@ -50382,7 +50388,7 @@ function CZ({
|
|
|
50382
50388
|
Ft,
|
|
50383
50389
|
{
|
|
50384
50390
|
type: "email",
|
|
50385
|
-
value:
|
|
50391
|
+
value: O,
|
|
50386
50392
|
onChange: (P) => v(P.target.value),
|
|
50387
50393
|
readOnly: _ !== null,
|
|
50388
50394
|
disabled: i,
|
|
@@ -51005,16 +51011,16 @@ function ZM({
|
|
|
51005
51011
|
}
|
|
51006
51012
|
function k(R) {
|
|
51007
51013
|
if (!R.moved) return;
|
|
51008
|
-
const M = eM(C, R.from.index, R.to.index).map((T,
|
|
51014
|
+
const M = eM(C, R.from.index, R.to.index).map((T, A) => ({
|
|
51009
51015
|
...T,
|
|
51010
|
-
order:
|
|
51016
|
+
order: A
|
|
51011
51017
|
}));
|
|
51012
51018
|
u(M);
|
|
51013
51019
|
}
|
|
51014
51020
|
return /* @__PURE__ */ I(Td, { variant: "sunken", padding: "md", className: B("gap-4", h), children: [
|
|
51015
51021
|
/* @__PURE__ */ d(Lk, { title: t, description: n }),
|
|
51016
51022
|
C.length === 0 ? /* @__PURE__ */ d("p", { className: "text-sm text-tertiary", children: r }) : /* @__PURE__ */ d(rx, { onDragEnd: k, children: /* @__PURE__ */ d(ox, { id: i, label: a, children: C.map((R, M) => {
|
|
51017
|
-
const { badge: T, disabledReason:
|
|
51023
|
+
const { badge: T, disabledReason: A } = f(R);
|
|
51018
51024
|
return /* @__PURE__ */ d(sx, { id: R.id, index: M, label: R.name, children: /* @__PURE__ */ I("div", { className: "flex items-center gap-2 rounded-lg border border-border-subtle bg-surface p-2", children: [
|
|
51019
51025
|
/* @__PURE__ */ d(gM, {}),
|
|
51020
51026
|
b === R.id ? /* @__PURE__ */ d(
|
|
@@ -51049,7 +51055,7 @@ function ZM({
|
|
|
51049
51055
|
icon: /* @__PURE__ */ d(ue, { name: "trash-2", size: "sm" }),
|
|
51050
51056
|
label: `Delete ${R.name}`,
|
|
51051
51057
|
tone: "danger",
|
|
51052
|
-
disabledReason:
|
|
51058
|
+
disabledReason: A,
|
|
51053
51059
|
onClick: () => p(R.id)
|
|
51054
51060
|
}
|
|
51055
51061
|
)
|
|
@@ -52855,21 +52861,21 @@ function ST(e, t, n, r, o) {
|
|
|
52855
52861
|
let b = null, x = o;
|
|
52856
52862
|
typeof r == "boolean" ? (x = r, b = null) : r !== void 0 && (b = r);
|
|
52857
52863
|
let w = e.children(t), v = e.node(t), C = v ? v.borderLeft : void 0, E = v ? v.borderRight : void 0, S = {};
|
|
52858
|
-
C && (w = w.filter((
|
|
52864
|
+
C && (w = w.filter((A) => A !== C && A !== E));
|
|
52859
52865
|
let N = V7(e, w);
|
|
52860
|
-
N.forEach((
|
|
52861
|
-
if (e.children(
|
|
52862
|
-
let { result: _ } = ST(e,
|
|
52863
|
-
S[
|
|
52866
|
+
N.forEach((A) => {
|
|
52867
|
+
if (e.children(A.v).length) {
|
|
52868
|
+
let { result: _ } = ST(e, A.v, n, b, x);
|
|
52869
|
+
S[A.v] = _, Object.hasOwn(_, "barycenter") && G7(A, _);
|
|
52864
52870
|
}
|
|
52865
52871
|
});
|
|
52866
52872
|
let k = L7(N, n);
|
|
52867
52873
|
j7(k, S);
|
|
52868
52874
|
let R = {}, M = !1;
|
|
52869
|
-
for (let
|
|
52870
|
-
let F = (l = (c = k[
|
|
52875
|
+
for (let A = 0; A < k.length; A++) for (let _ = A + 1; _ < k.length; _++) if (!(!k[A] || !k[_] || !((s = k[A]) != null && s.barycenter) || !((i = k[_]) != null && i.barycenter)) && ((a = k[A]) == null ? void 0 : a.barycenter) === k[_].barycenter) {
|
|
52876
|
+
let F = (l = (c = k[A]) == null ? void 0 : c.vs[0]) != null ? l : "", O = (p = (u = k[_]) == null ? void 0 : u.vs[0]) != null ? p : "", D = e.node(F), z = e.node(O);
|
|
52871
52877
|
if (D.dummy === "edge" && z.dummy === "edge" && ((f = D.edgeObj) == null ? void 0 : f.v) === ((h = z.edgeObj) == null ? void 0 : h.v) && ((m = D.edgeObj) == null ? void 0 : m.w) === ((g = z.edgeObj) == null ? void 0 : g.w)) if (D.edgeLabel.reversed) {
|
|
52872
|
-
R[
|
|
52878
|
+
R[O] = k[A], k.splice(A, 1), A--;
|
|
52873
52879
|
break;
|
|
52874
52880
|
} else R[F] = k[_], k.splice(_, 1), _--;
|
|
52875
52881
|
else M = !0;
|
|
@@ -52877,10 +52883,10 @@ function ST(e, t, n, r, o) {
|
|
|
52877
52883
|
let T = H7(k, R, b, e, x);
|
|
52878
52884
|
if (C && E) {
|
|
52879
52885
|
T.vs = [C, T.vs, E].flat(1);
|
|
52880
|
-
let
|
|
52881
|
-
if (
|
|
52882
|
-
let _ = e.node(
|
|
52883
|
-
Object.hasOwn(T, "barycenter") || (T.barycenter = 0, T.weight = 0), T.barycenter = (T.barycenter * T.weight + _.order +
|
|
52886
|
+
let A = e.predecessors(C);
|
|
52887
|
+
if (A && A.length) {
|
|
52888
|
+
let _ = e.node(A[0]), F = e.predecessors(E), O = e.node(F[0]);
|
|
52889
|
+
Object.hasOwn(T, "barycenter") || (T.barycenter = 0, T.weight = 0), T.barycenter = (T.barycenter * T.weight + _.order + O.order) / (T.weight + 2), T.weight += 2;
|
|
52884
52890
|
}
|
|
52885
52891
|
}
|
|
52886
52892
|
return Object.defineProperty(T, "result", { value: T, enumerable: !1, configurable: !0, writable: !0 }), Object.defineProperty(T, "usedBias", { value: M, enumerable: !1, configurable: !0, writable: !0 }), T;
|
|
@@ -53246,17 +53252,17 @@ function RT(e, t, n) {
|
|
|
53246
53252
|
C.setGraph({ rankdir: v.rankdir });
|
|
53247
53253
|
let E = e.children(w);
|
|
53248
53254
|
E.forEach((F) => {
|
|
53249
|
-
let
|
|
53250
|
-
C.setNode(F,
|
|
53255
|
+
let O = { ...e.node(F) };
|
|
53256
|
+
C.setNode(F, O);
|
|
53251
53257
|
let D = e.parent(F);
|
|
53252
53258
|
D && D !== w && E.includes(D) && C.setParent(F, D);
|
|
53253
53259
|
});
|
|
53254
53260
|
let S = /* @__PURE__ */ new Set();
|
|
53255
53261
|
e.edges().forEach((F) => {
|
|
53256
|
-
let
|
|
53257
|
-
if (
|
|
53258
|
-
let z = `${
|
|
53259
|
-
S.has(z) || (S.add(z), C.setEdge(
|
|
53262
|
+
let O = M0(e, F.v, w), D = M0(e, F.w, w);
|
|
53263
|
+
if (O && D && O !== D) {
|
|
53264
|
+
let z = `${O}\0${D}`;
|
|
53265
|
+
S.has(z) || (S.add(z), C.setEdge(O, D, { ...e.edge(F) }));
|
|
53260
53266
|
}
|
|
53261
53267
|
}), RT(C, t, n);
|
|
53262
53268
|
let N = A0(C);
|
|
@@ -53264,11 +53270,11 @@ function RT(e, t, n) {
|
|
|
53264
53270
|
let k = 1 / 0, R = 1 / 0, M = -1 / 0, T = -1 / 0;
|
|
53265
53271
|
C.nodes().forEach((F) => {
|
|
53266
53272
|
if (F === w) return;
|
|
53267
|
-
let
|
|
53268
|
-
|
|
53273
|
+
let O = C.node(F);
|
|
53274
|
+
O && typeof O.x == "number" && typeof O.y == "number" && typeof O.width == "number" && typeof O.height == "number" && (k = Math.min(k, O.x - O.width / 2), M = Math.max(M, O.x + O.width / 2), R = Math.min(R, O.y - O.height / 2), T = Math.max(T, O.y + O.height / 2));
|
|
53269
53275
|
}), (!isFinite(k) || !isFinite(R) || !isFinite(M) || !isFinite(T)) && (k = R = 0, M = T = 0);
|
|
53270
|
-
let
|
|
53271
|
-
s[w] = { minX: k, minY: R, maxX: M, maxY: T, width:
|
|
53276
|
+
let A = M - k, _ = T - R;
|
|
53277
|
+
s[w] = { minX: k, minY: R, maxX: M, maxY: T, width: A, height: _, offsetX: k, offsetY: R }, v._dagreClusterSubgraph = C;
|
|
53272
53278
|
}
|
|
53273
53279
|
});
|
|
53274
53280
|
let i = [], a = (w) => {
|
|
@@ -53321,27 +53327,27 @@ function RT(e, t, n) {
|
|
|
53321
53327
|
e.hasEdge(C, E) && e.removeEdge(C, E);
|
|
53322
53328
|
}), i.forEach(({ clusterId: w, subgraph: v, bounds: C, removedNodes: E, removedEdges: S }) => {
|
|
53323
53329
|
var N, k;
|
|
53324
|
-
let R = e.node(w), M = (N = R?.x) != null ? N : 0, T = (k = R?.y) != null ? k : 0,
|
|
53325
|
-
E.forEach(({ id: F, node:
|
|
53326
|
-
e.setNode(F,
|
|
53327
|
-
}), S.forEach(({ edge: F, label:
|
|
53328
|
-
e.setEdge(F,
|
|
53330
|
+
let R = e.node(w), M = (N = R?.x) != null ? N : 0, T = (k = R?.y) != null ? k : 0, A = (C.minX + C.maxX) / 2, _ = (C.minY + C.maxY) / 2;
|
|
53331
|
+
E.forEach(({ id: F, node: O, parent: D }) => {
|
|
53332
|
+
e.setNode(F, O), D !== void 0 && e.setParent(F, D);
|
|
53333
|
+
}), S.forEach(({ edge: F, label: O }) => {
|
|
53334
|
+
e.setEdge(F, O);
|
|
53329
53335
|
}), v.nodes().forEach((F) => {
|
|
53330
53336
|
if (F === w) return;
|
|
53331
|
-
let
|
|
53332
|
-
D &&
|
|
53337
|
+
let O = v.node(F), D = e.node(F);
|
|
53338
|
+
D && O && typeof O.x == "number" && typeof O.y == "number" && (D.x = M + (O.x - A), D.y = T + (O.y - _));
|
|
53333
53339
|
}), delete R._dagreClusterSubgraph;
|
|
53334
53340
|
}), o.forEach((w) => {
|
|
53335
53341
|
var v, C;
|
|
53336
53342
|
let E = e.node(w), S = s[w];
|
|
53337
53343
|
if (E && E.rankdir && E._dagreClusterSubgraph && S) {
|
|
53338
53344
|
let N = E._dagreClusterSubgraph, k = (v = E.x) != null ? v : 0, R = (C = E.y) != null ? C : 0, M = (S.minX + S.maxX) / 2, T = (S.minY + S.maxY) / 2;
|
|
53339
|
-
N.nodes().forEach((
|
|
53340
|
-
if (
|
|
53341
|
-
let _ = N.node(
|
|
53345
|
+
N.nodes().forEach((A) => {
|
|
53346
|
+
if (A === w) return;
|
|
53347
|
+
let _ = N.node(A), F = e.node(A);
|
|
53342
53348
|
if (F && _ && typeof _.x == "number" && typeof _.y == "number") {
|
|
53343
|
-
let
|
|
53344
|
-
F.x = k +
|
|
53349
|
+
let O = _.x - M, D = _.y - T;
|
|
53350
|
+
F.x = k + O, F.y = R + D;
|
|
53345
53351
|
}
|
|
53346
53352
|
}), delete E._dagreClusterSubgraph;
|
|
53347
53353
|
}
|
|
@@ -53765,9 +53771,9 @@ function VW(e) {
|
|
|
53765
53771
|
(R) => {
|
|
53766
53772
|
const M = m.current.drag;
|
|
53767
53773
|
if (!M) return;
|
|
53768
|
-
const T = b(R),
|
|
53769
|
-
if (!T || !
|
|
53770
|
-
const { width: _, height: F } = f.current.planeSize,
|
|
53774
|
+
const T = b(R), A = f.current.layoutBoxOf(M.id);
|
|
53775
|
+
if (!T || !A) return;
|
|
53776
|
+
const { width: _, height: F } = f.current.planeSize, O = D0(T.x - M.grab.x, 0, Math.max(0, _ - A.width)), D = D0(T.y - M.grab.y, 0, Math.max(0, F - A.height)), z = { x: O - A.x, y: D - A.y };
|
|
53771
53777
|
M.latest = z, a((V) => ({ ...V, [M.id]: z }));
|
|
53772
53778
|
},
|
|
53773
53779
|
[b]
|
|
@@ -53779,8 +53785,8 @@ function VW(e) {
|
|
|
53779
53785
|
const R = (M) => {
|
|
53780
53786
|
if (M.key !== "Escape") return;
|
|
53781
53787
|
const T = m.current.drag;
|
|
53782
|
-
T && (M.preventDefault(), a((
|
|
53783
|
-
const _ = { ...
|
|
53788
|
+
T && (M.preventDefault(), a((A) => {
|
|
53789
|
+
const _ = { ...A };
|
|
53784
53790
|
return T.restore ? _[T.id] = T.restore : delete _[T.id], _;
|
|
53785
53791
|
}), w());
|
|
53786
53792
|
};
|
|
@@ -53808,19 +53814,19 @@ function VW(e) {
|
|
|
53808
53814
|
(R) => (M) => {
|
|
53809
53815
|
if (M)
|
|
53810
53816
|
return Na(M, {
|
|
53811
|
-
onPress: (T,
|
|
53817
|
+
onPress: (T, A) => !(f.current.disabled || A.target?.closest("button, a, input, textarea, select, [role='button']")),
|
|
53812
53818
|
onActivate: (T) => {
|
|
53813
53819
|
g(), m.current.point = T;
|
|
53814
|
-
const
|
|
53815
|
-
if (!
|
|
53820
|
+
const A = b(T), _ = f.current.layoutBoxOf(R);
|
|
53821
|
+
if (!A || !_) return;
|
|
53816
53822
|
const F = f.current.offsets[R] ?? null;
|
|
53817
53823
|
m.current.drag = {
|
|
53818
53824
|
id: R,
|
|
53819
53825
|
/* Where inside the node it was grabbed, so it tracks the point that
|
|
53820
53826
|
was picked up rather than snapping a corner to the cursor. */
|
|
53821
53827
|
grab: {
|
|
53822
|
-
x:
|
|
53823
|
-
y:
|
|
53828
|
+
x: A.x - (_.x + (F?.x ?? 0)),
|
|
53829
|
+
y: A.y - (_.y + (F?.y ?? 0))
|
|
53824
53830
|
},
|
|
53825
53831
|
restore: F,
|
|
53826
53832
|
latest: F
|
|
@@ -53829,9 +53835,9 @@ function VW(e) {
|
|
|
53829
53835
|
onMove: (T) => {
|
|
53830
53836
|
m.current.point = T, x(T);
|
|
53831
53837
|
},
|
|
53832
|
-
onRelease: (T,
|
|
53838
|
+
onRelease: (T, A) => {
|
|
53833
53839
|
const _ = m.current.drag;
|
|
53834
|
-
if (w(), !
|
|
53840
|
+
if (w(), !A) {
|
|
53835
53841
|
f.current.disabled || f.current.onNodeClick(R);
|
|
53836
53842
|
return;
|
|
53837
53843
|
}
|
|
@@ -53839,8 +53845,8 @@ function VW(e) {
|
|
|
53839
53845
|
},
|
|
53840
53846
|
onCancel: () => {
|
|
53841
53847
|
const T = m.current.drag;
|
|
53842
|
-
T && a((
|
|
53843
|
-
const _ = { ...
|
|
53848
|
+
T && a((A) => {
|
|
53849
|
+
const _ = { ...A };
|
|
53844
53850
|
return T.restore ? _[T.id] = T.restore : delete _[T.id], _;
|
|
53845
53851
|
}), w();
|
|
53846
53852
|
}
|
|
@@ -53855,7 +53861,7 @@ function VW(e) {
|
|
|
53855
53861
|
[E]
|
|
53856
53862
|
), N = ke(
|
|
53857
53863
|
(R) => (h.current = R, R ? Na(R, {
|
|
53858
|
-
onPress: (T,
|
|
53864
|
+
onPress: (T, A) => f.current.disabled ? !1 : !A.target?.closest("[data-canvas-node]"),
|
|
53859
53865
|
onActivate: (T) => {
|
|
53860
53866
|
g(), m.current.pan = {
|
|
53861
53867
|
origin: T,
|
|
@@ -53863,8 +53869,8 @@ function VW(e) {
|
|
|
53863
53869
|
}, p(!0);
|
|
53864
53870
|
},
|
|
53865
53871
|
onMove: (T) => {
|
|
53866
|
-
const
|
|
53867
|
-
|
|
53872
|
+
const A = m.current.pan;
|
|
53873
|
+
A && (R.scrollLeft = A.scroll.left - (T.x - A.origin.x), R.scrollTop = A.scroll.top - (T.y - A.origin.y));
|
|
53868
53874
|
},
|
|
53869
53875
|
onRelease: () => {
|
|
53870
53876
|
m.current.pan = null, p(!1);
|
|
@@ -53924,12 +53930,12 @@ function FZ({
|
|
|
53924
53930
|
), [S, N] = ae(null), k = Te(
|
|
53925
53931
|
() => S ? { cycleMemberIds: S } : C,
|
|
53926
53932
|
[S, C]
|
|
53927
|
-
), [R, M] = ae(null), [T,
|
|
53933
|
+
), [R, M] = ae(null), [T, A] = ae("canvas"), _ = ve(!1);
|
|
53928
53934
|
Ae(() => {
|
|
53929
|
-
_.current || (_.current = !0, typeof window < "u" && window.matchMedia("(max-width: 640px)").matches &&
|
|
53935
|
+
_.current || (_.current = !0, typeof window < "u" && window.matchMedia("(max-width: 640px)").matches && A("list"));
|
|
53930
53936
|
}, []);
|
|
53931
|
-
const F = ve(e.nodes),
|
|
53932
|
-
(F.current !== e.nodes ||
|
|
53937
|
+
const F = ve(e.nodes), O = ve(e.edges);
|
|
53938
|
+
(F.current !== e.nodes || O.current !== e.edges) && (F.current = e.nodes, O.current = e.edges, u === void 0 && v(p), N(null), M(null));
|
|
53933
53939
|
const D = Te(
|
|
53934
53940
|
() => IT(e, t, k, { orientation: i, nodeWidth: a, nodeHeight: c }),
|
|
53935
53941
|
[e, t, k, i, a, c]
|
|
@@ -54109,7 +54115,7 @@ function FZ({
|
|
|
54109
54115
|
multiple: !1,
|
|
54110
54116
|
"aria-label": "View",
|
|
54111
54117
|
value: [T],
|
|
54112
|
-
onValueChange: (Q) =>
|
|
54118
|
+
onValueChange: (Q) => A(Q[0] === "list" ? "list" : "canvas"),
|
|
54113
54119
|
children: [
|
|
54114
54120
|
/* @__PURE__ */ d(Kc, { value: "canvas", iconOnly: !0, "aria-label": "Chart view", children: /* @__PURE__ */ d(ue, { name: "git-branch", size: "xs" }) }),
|
|
54115
54121
|
/* @__PURE__ */ d(Kc, { value: "list", iconOnly: !0, "aria-label": "List view", children: /* @__PURE__ */ d(ue, { name: "list", size: "xs" }) })
|
|
@@ -54470,7 +54476,7 @@ function tK(e) {
|
|
|
54470
54476
|
}, []), M = ke(() => {
|
|
54471
54477
|
const L = v.current;
|
|
54472
54478
|
L.width === 0 || L.height === 0 || k(OT(S.current.contentBox, L, S.current.fitBounds));
|
|
54473
|
-
}, [k]), T = ve(!1), [
|
|
54479
|
+
}, [k]), T = ve(!1), [A, _] = ae(XW);
|
|
54474
54480
|
Ae(() => {
|
|
54475
54481
|
if (!C) return;
|
|
54476
54482
|
const L = v.current, $ = S.current.frameBox ?? S.current.contentBox, U = { ...S.current.fitBounds, padding: S.current.framePadding ?? Ar.fitPadding }, { camera: G, overflow: Y } = UW($, L, {
|
|
@@ -54488,13 +54494,13 @@ function tK(e) {
|
|
|
54488
54494
|
k(Rh(U, G, Y));
|
|
54489
54495
|
},
|
|
54490
54496
|
[k]
|
|
54491
|
-
),
|
|
54497
|
+
), O = ke(
|
|
54492
54498
|
(L) => {
|
|
54493
54499
|
const $ = v.current, U = { x: $.width / 2, y: $.height / 2 };
|
|
54494
54500
|
k(xp(S.current.camera, U, L, S.current.zoomBounds));
|
|
54495
54501
|
},
|
|
54496
54502
|
[k]
|
|
54497
|
-
), D = ke(() =>
|
|
54503
|
+
), D = ke(() => O(1.35), [O]), z = ke(() => O(1 / 1.35), [O]), V = ve({
|
|
54498
54504
|
pointers: /* @__PURE__ */ new Map(),
|
|
54499
54505
|
mode: "idle",
|
|
54500
54506
|
frame: null,
|
|
@@ -54578,7 +54584,7 @@ function tK(e) {
|
|
|
54578
54584
|
N.current !== null && window.clearTimeout(N.current);
|
|
54579
54585
|
},
|
|
54580
54586
|
[]
|
|
54581
|
-
), { camera: h, panning: g, animating: x, frameOverflow:
|
|
54587
|
+
), { camera: h, panning: g, animating: x, frameOverflow: A, bindViewport: P, zoomIn: D, zoomOut: z, fitAll: M, flyTo: F };
|
|
54582
54588
|
}
|
|
54583
54589
|
const nK = "32rem", rK = "28rem", oK = 16, sK = 2, iK = 13, aK = 14, lK = iK / aK;
|
|
54584
54590
|
function cK(e) {
|
|
@@ -54638,7 +54644,7 @@ function z0({
|
|
|
54638
54644
|
), M = Te(
|
|
54639
54645
|
() => KW(R, t, { nodeWidth: c, nodeHeight: l }),
|
|
54640
54646
|
[R, t, c, l]
|
|
54641
|
-
), T = Te(() => new Map(M.nodes.map((q) => [q.id, q])), [M.nodes]),
|
|
54647
|
+
), T = Te(() => new Map(M.nodes.map((q) => [q.id, q])), [M.nodes]), A = ke((q) => T.get(q) ?? null, [T]), _ = Te(() => {
|
|
54642
54648
|
const q = new Map(R.nodes.map((fe) => [fe.id, fe.parentId])), J = /* @__PURE__ */ new Map();
|
|
54643
54649
|
function se(fe) {
|
|
54644
54650
|
const pe = J.get(fe);
|
|
@@ -54648,14 +54654,14 @@ function z0({
|
|
|
54648
54654
|
}
|
|
54649
54655
|
for (const fe of R.nodes) se(fe.id);
|
|
54650
54656
|
return J;
|
|
54651
|
-
}, [R]), F = Te(() => o ? qW(M, o) : null, [o, M]),
|
|
54657
|
+
}, [R]), F = Te(() => o ? qW(M, o) : null, [o, M]), O = Te(() => o ? A(o) : null, [o, A]), D = tK({
|
|
54652
54658
|
contentBox: { x: 0, y: 0, width: M.width, height: M.height },
|
|
54653
54659
|
frameBox: F,
|
|
54654
54660
|
frameKey: o,
|
|
54655
54661
|
framePadding: h,
|
|
54656
54662
|
minReadableScale: m,
|
|
54657
|
-
focusBox:
|
|
54658
|
-
boxOf:
|
|
54663
|
+
focusBox: O,
|
|
54664
|
+
boxOf: A,
|
|
54659
54665
|
disabled: p,
|
|
54660
54666
|
resetKey: f,
|
|
54661
54667
|
onClick: ({ target: q }) => {
|
|
@@ -54962,12 +54968,12 @@ function fK({
|
|
|
54962
54968
|
showToolbar: !0
|
|
54963
54969
|
}
|
|
54964
54970
|
) });
|
|
54965
|
-
const M = v ? YW(e, v) : null, T = e.nodes.find((_) => _.parentId === null) ?? e.nodes[0],
|
|
54971
|
+
const M = v ? YW(e, v) : null, T = e.nodes.find((_) => _.parentId === null) ?? e.nodes[0], A = M ?? { nodes: T ? [{ ...T, parentId: null }] : [] };
|
|
54966
54972
|
return /* @__PURE__ */ I("div", { className: B("relative", b), children: [
|
|
54967
54973
|
/* @__PURE__ */ d(
|
|
54968
54974
|
z0,
|
|
54969
54975
|
{
|
|
54970
|
-
tree:
|
|
54976
|
+
tree: A,
|
|
54971
54977
|
crossLinks: t,
|
|
54972
54978
|
label: `${n} — minimap`,
|
|
54973
54979
|
focusId: v,
|
|
@@ -55150,69 +55156,69 @@ function $Z({
|
|
|
55150
55156
|
label: c,
|
|
55151
55157
|
className: l
|
|
55152
55158
|
}) {
|
|
55153
|
-
const u = Tt(), p = Te(() => bK(t.map((
|
|
55154
|
-
const
|
|
55155
|
-
return n &&
|
|
55159
|
+
const u = Tt(), p = Te(() => bK(t.map((O) => O.id)), [t]), f = ol("sm"), h = ve(null), [m, g] = ae({ top: 0, bottom: 0 }), b = Te(() => {
|
|
55160
|
+
const O = [];
|
|
55161
|
+
return n && O.push({ node: n, role: "parent", leftPct: H0.leftPct, topPct: H0.topPct, index: null, tier: null, placement: "beside" }), O.push({ node: e, role: "center", leftPct: Zo.leftPct, topPct: Zo.topPct, index: null, tier: null, placement: "below" }), t.forEach((D, z) => {
|
|
55156
55162
|
const V = p[z], H = V.topPct < Zo.topPct - 1 ? "above" : "below";
|
|
55157
|
-
|
|
55158
|
-
}), EK(
|
|
55163
|
+
O.push({ node: D, role: "ring", leftPct: V.leftPct, topPct: V.topPct, index: z, tier: V.tier, placement: H });
|
|
55164
|
+
}), EK(O.map((D) => D.node.id)), O;
|
|
55159
55165
|
}, [e, n, t, p]), x = SK(b), [w, v] = ae(null), [C, E] = ae(() => ({
|
|
55160
55166
|
key: x,
|
|
55161
|
-
ids: new Set(b.map((
|
|
55162
|
-
entering: new Set(b.map((
|
|
55167
|
+
ids: new Set(b.map((O) => O.node.id)),
|
|
55168
|
+
entering: new Set(b.map((O) => O.node.id))
|
|
55163
55169
|
}));
|
|
55164
55170
|
if (C.key !== x) {
|
|
55165
|
-
const
|
|
55166
|
-
E({ key: x, ids:
|
|
55171
|
+
const O = new Set(b.map((D) => D.node.id));
|
|
55172
|
+
E({ key: x, ids: O, entering: new Set([...O].filter((D) => !C.ids.has(D))) }), v(null);
|
|
55167
55173
|
}
|
|
55168
|
-
const [S, N] = ae(null), k = S && t.some((
|
|
55169
|
-
(
|
|
55170
|
-
N(
|
|
55174
|
+
const [S, N] = ae(null), k = S && t.some((O) => O.id === S) ? S : t[0]?.id ?? null, R = ke(
|
|
55175
|
+
(O) => {
|
|
55176
|
+
N(O), r(O);
|
|
55171
55177
|
},
|
|
55172
55178
|
[r]
|
|
55173
55179
|
);
|
|
55174
|
-
function M(
|
|
55175
|
-
|
|
55180
|
+
function M(O) {
|
|
55181
|
+
O && (N(O), document.getElementById(j0(u, O))?.focus());
|
|
55176
55182
|
}
|
|
55177
|
-
function T(
|
|
55183
|
+
function T(O) {
|
|
55178
55184
|
if (t.length === 0) return;
|
|
55179
55185
|
const D = Math.max(
|
|
55180
55186
|
0,
|
|
55181
55187
|
t.findIndex((z) => z.id === k)
|
|
55182
55188
|
);
|
|
55183
|
-
M(t[(D +
|
|
55189
|
+
M(t[(D + O + t.length) % t.length].id);
|
|
55184
55190
|
}
|
|
55185
|
-
function O
|
|
55186
|
-
switch (
|
|
55191
|
+
function A(O, D) {
|
|
55192
|
+
switch (O.key) {
|
|
55187
55193
|
case "ArrowLeft":
|
|
55188
|
-
|
|
55194
|
+
O.preventDefault(), T(-1);
|
|
55189
55195
|
return;
|
|
55190
55196
|
case "ArrowRight":
|
|
55191
|
-
|
|
55197
|
+
O.preventDefault(), T(1);
|
|
55192
55198
|
return;
|
|
55193
55199
|
case "Home":
|
|
55194
|
-
|
|
55200
|
+
O.preventDefault(), M(t[0]?.id);
|
|
55195
55201
|
return;
|
|
55196
55202
|
case "End":
|
|
55197
|
-
|
|
55203
|
+
O.preventDefault(), M(t[t.length - 1]?.id);
|
|
55198
55204
|
return;
|
|
55199
55205
|
case "Enter":
|
|
55200
55206
|
case " ":
|
|
55201
|
-
|
|
55207
|
+
O.preventDefault(), R(D);
|
|
55202
55208
|
return;
|
|
55203
55209
|
default:
|
|
55204
|
-
n && vK.has(
|
|
55210
|
+
n && vK.has(O.key) && (O.preventDefault(), o?.());
|
|
55205
55211
|
}
|
|
55206
55212
|
}
|
|
55207
55213
|
const _ = !!a;
|
|
55208
55214
|
Cn(() => {
|
|
55209
|
-
const
|
|
55210
|
-
if (!
|
|
55215
|
+
const O = h.current;
|
|
55216
|
+
if (!O) return;
|
|
55211
55217
|
const D = () => {
|
|
55212
|
-
const V =
|
|
55218
|
+
const V = O.clientHeight;
|
|
55213
55219
|
if (V === 0) return;
|
|
55214
55220
|
const H = new Map(b.map(($) => [$.node.id, $])), P = [];
|
|
55215
|
-
for (const $ of
|
|
55221
|
+
for (const $ of O.querySelectorAll("[data-focus-web-node]")) {
|
|
55216
55222
|
const U = H.get($.dataset.focusWebNode ?? "");
|
|
55217
55223
|
U && P.push({
|
|
55218
55224
|
topPct: U.topPct,
|
|
@@ -55227,8 +55233,8 @@ function $Z({
|
|
|
55227
55233
|
};
|
|
55228
55234
|
D();
|
|
55229
55235
|
const z = new ResizeObserver(D);
|
|
55230
|
-
z.observe(
|
|
55231
|
-
for (const V of
|
|
55236
|
+
z.observe(O);
|
|
55237
|
+
for (const V of O.querySelectorAll("[data-focus-web-node]")) z.observe(V);
|
|
55232
55238
|
return () => z.disconnect();
|
|
55233
55239
|
}, [b, _, f]);
|
|
55234
55240
|
const F = f ? "3 / 4" : t.length > AT ? "16 / 9" : "12 / 5";
|
|
@@ -55247,35 +55253,35 @@ function $Z({
|
|
|
55247
55253
|
viewBox: "0 0 100 100",
|
|
55248
55254
|
preserveAspectRatio: "none",
|
|
55249
55255
|
className: "pointer-events-none absolute inset-0 size-full overflow-visible",
|
|
55250
|
-
children: b.filter((
|
|
55251
|
-
const D =
|
|
55256
|
+
children: b.filter((O) => O.role === "ring").map((O) => {
|
|
55257
|
+
const D = O.node.id === w, z = O.node.id === s;
|
|
55252
55258
|
return /* @__PURE__ */ d(
|
|
55253
55259
|
"line",
|
|
55254
55260
|
{
|
|
55255
55261
|
x1: Zo.leftPct,
|
|
55256
55262
|
y1: Zo.topPct,
|
|
55257
|
-
x2:
|
|
55258
|
-
y2:
|
|
55263
|
+
x2: O.leftPct,
|
|
55264
|
+
y2: O.topPct,
|
|
55259
55265
|
vectorEffect: "non-scaling-stroke",
|
|
55260
55266
|
"data-active": D || z ? "" : void 0,
|
|
55261
55267
|
"data-selected": z ? "" : void 0,
|
|
55262
55268
|
className: "dx-focus-web__spoke",
|
|
55263
|
-
style: { ...U0(
|
|
55269
|
+
style: { ...U0(O.node.paletteKey), "--dx-fw-order": String(O.index ?? 0) }
|
|
55264
55270
|
},
|
|
55265
|
-
`spoke-${e.id}-${
|
|
55271
|
+
`spoke-${e.id}-${O.node.id}`
|
|
55266
55272
|
);
|
|
55267
55273
|
})
|
|
55268
55274
|
}
|
|
55269
55275
|
),
|
|
55270
|
-
b.map((
|
|
55271
|
-
const { node: D, role: z } =
|
|
55276
|
+
b.map((O) => {
|
|
55277
|
+
const { node: D, role: z } = O, V = z === "ring", H = V && D.id === s, P = V && D.id === k, L = z !== "center" || !!i, $ = z !== "center" && D.id === w, U = z === "center" ? "location" : H ? "page" : void 0, G = {
|
|
55272
55278
|
role: z,
|
|
55273
|
-
index:
|
|
55274
|
-
tier:
|
|
55279
|
+
index: O.index,
|
|
55280
|
+
tier: O.tier,
|
|
55275
55281
|
isTabStop: P,
|
|
55276
55282
|
active: $,
|
|
55277
55283
|
selected: H,
|
|
55278
|
-
labelPlacement:
|
|
55284
|
+
labelPlacement: O.placement,
|
|
55279
55285
|
compact: f
|
|
55280
55286
|
}, Y = C.entering.has(D.id);
|
|
55281
55287
|
return /* @__PURE__ */ I(
|
|
@@ -55293,11 +55299,11 @@ function $Z({
|
|
|
55293
55299
|
),
|
|
55294
55300
|
style: {
|
|
55295
55301
|
...U0(D.paletteKey),
|
|
55296
|
-
left: `${
|
|
55297
|
-
top: `${
|
|
55298
|
-
translate: CK(
|
|
55302
|
+
left: `${O.leftPct}%`,
|
|
55303
|
+
top: `${O.topPct}%`,
|
|
55304
|
+
translate: CK(O.placement, _),
|
|
55299
55305
|
"--fw-disc-size": wK(z, f),
|
|
55300
|
-
"--dx-fw-order": String(
|
|
55306
|
+
"--dx-fw-order": String(O.index ?? 0)
|
|
55301
55307
|
},
|
|
55302
55308
|
children: [
|
|
55303
55309
|
/* @__PURE__ */ d("div", { "aria-hidden": L ? "true" : void 0, children: a ? a(D, G) : /* @__PURE__ */ d(yK, { node: D, context: G }) }),
|
|
@@ -55317,7 +55323,7 @@ function $Z({
|
|
|
55317
55323
|
z !== "center" && v(D.id), V && N(D.id);
|
|
55318
55324
|
},
|
|
55319
55325
|
onBlur: () => v((W) => W === D.id ? null : W),
|
|
55320
|
-
onKeyDown: V ? (W) =>
|
|
55326
|
+
onKeyDown: V ? (W) => A(W, D.id) : void 0,
|
|
55321
55327
|
onClick: () => V ? R(D.id) : z === "parent" ? o?.() : i?.(),
|
|
55322
55328
|
className: B(
|
|
55323
55329
|
"absolute -inset-1.5 cursor-pointer rounded-xl outline-none",
|
|
@@ -57198,11 +57204,11 @@ function nQ(e, t) {
|
|
|
57198
57204
|
return;
|
|
57199
57205
|
}
|
|
57200
57206
|
const S = new ZT(async () => {
|
|
57201
|
-
const k = g.current ?? Qd(), R = Uq(n), M = (T) => f((
|
|
57207
|
+
const k = g.current ?? Qd(), R = Uq(n), M = (T) => f((A) => ({ slot: n, status: T(A.slot === n ? A.status : kc) }));
|
|
57202
57208
|
M((T) => ({ ...T, inFlight: !0 }));
|
|
57203
57209
|
try {
|
|
57204
57210
|
const T = await m.current();
|
|
57205
|
-
nq(T.items, { source: "fetch", tag: r, tenant: k }), Hq(n, T.items.map((
|
|
57211
|
+
nq(T.items, { source: "fetch", tag: r, tenant: k }), Hq(n, T.items.map((A) => eY(A, e.type)).filter(tY), T.meta, R), b.current && M(() => ({ inFlight: !1, settled: !0, error: void 0 }));
|
|
57206
57212
|
} catch (T) {
|
|
57207
57213
|
b.current && M(() => ({ inFlight: !1, settled: !0, error: e2(T) }));
|
|
57208
57214
|
}
|