@openpawlabs/diy-guides-ui 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/GuideStep/GuideStep.d.ts.map +1 -1
- package/dist/components/MediaFigure/MediaFigure.stories.d.ts.map +1 -1
- package/dist/diy-guides-ui.cjs +5 -5
- package/dist/diy-guides-ui.cjs.map +1 -1
- package/dist/diy-guides-ui.js +841 -841
- package/dist/diy-guides-ui.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/diy-guides-ui.js
CHANGED
|
@@ -855,21 +855,21 @@ function Gt(t, e, n, r) {
|
|
|
855
855
|
function Dn(t, e, n = {}) {
|
|
856
856
|
let { block: r = "nearest", inline: o = "nearest" } = n;
|
|
857
857
|
if (t === e) return;
|
|
858
|
-
let i = t.scrollTop, l = t.scrollLeft, s = e.getBoundingClientRect(), a = t.getBoundingClientRect(), c = window.getComputedStyle(e), u = window.getComputedStyle(t), d = document.scrollingElement || document.documentElement, h = t === d, f = t === d ? 0 : a.top, m = t === d ? t.clientHeight : a.bottom, g = t === d ? 0 : a.left,
|
|
858
|
+
let i = t.scrollTop, l = t.scrollLeft, s = e.getBoundingClientRect(), a = t.getBoundingClientRect(), c = window.getComputedStyle(e), u = window.getComputedStyle(t), d = document.scrollingElement || document.documentElement, h = t === d, f = t === d ? 0 : a.top, m = t === d ? t.clientHeight : a.bottom, g = t === d ? 0 : a.left, y = t === d ? t.clientWidth : a.right, x = parseFloat(c.scrollMarginTop) || 0, v = parseFloat(c.scrollMarginBottom) || 0, T = parseFloat(c.scrollMarginLeft) || 0, w = parseFloat(c.scrollMarginRight) || 0, D = parseFloat(u.scrollPaddingTop) || 0, B = parseFloat(u.scrollPaddingBottom) || 0, N = parseFloat(u.scrollPaddingLeft) || 0, I = parseFloat(u.scrollPaddingRight) || 0, A = parseFloat(u.borderTopWidth) || 0, k = parseFloat(u.borderBottomWidth) || 0, O = parseFloat(u.borderLeftWidth) || 0, W = parseFloat(u.borderRightWidth) || 0, V = s.top - x, p = s.bottom + v, E = s.left - T, L = s.right + w, S = t === d ? 0 : O + W, M = t === d ? 0 : A + k, $ = t === d ? 0 : t.offsetWidth - t.clientWidth - S, P = t === d ? 0 : t.offsetHeight - t.clientHeight - M, R = f + (h ? 0 : A) + D, J = m - (h ? 0 : k) - B - P, ee = g + (h ? 0 : O) + N, te = y - (h ? 0 : W) - I;
|
|
859
859
|
u.direction === "rtl" && !pt() ? ee += $ : te -= $;
|
|
860
|
-
let ae =
|
|
861
|
-
if (ae && r === "start") i +=
|
|
862
|
-
else if (ae && r === "center") i += (
|
|
860
|
+
let ae = V < R || p > J, pe = E < ee || L > te;
|
|
861
|
+
if (ae && r === "start") i += V - R;
|
|
862
|
+
else if (ae && r === "center") i += (V + p) / 2 - (R + J) / 2;
|
|
863
863
|
else if (ae && r === "end") i += p - J;
|
|
864
864
|
else if (ae && r === "nearest") {
|
|
865
|
-
let ie =
|
|
865
|
+
let ie = V - R, Se = p - J;
|
|
866
866
|
i += Math.abs(ie) <= Math.abs(Se) ? ie : Se;
|
|
867
867
|
}
|
|
868
868
|
if (pe && o === "start") l += E - ee;
|
|
869
|
-
else if (pe && o === "center") l += (E +
|
|
870
|
-
else if (pe && o === "end") l +=
|
|
869
|
+
else if (pe && o === "center") l += (E + L) / 2 - (ee + te) / 2;
|
|
870
|
+
else if (pe && o === "end") l += L - te;
|
|
871
871
|
else if (pe && o === "nearest") {
|
|
872
|
-
let ie = E - ee, Se =
|
|
872
|
+
let ie = E - ee, Se = L - te;
|
|
873
873
|
l += Math.abs(ie) <= Math.abs(Se) ? ie : Se;
|
|
874
874
|
}
|
|
875
875
|
if (process.env.NODE_ENV === "test") {
|
|
@@ -1187,75 +1187,75 @@ var Ue = Zu(), Ju = (t) => {
|
|
|
1187
1187
|
defaultVariants: u = {}
|
|
1188
1188
|
} = r, d = { ...Xu, ...o }, h = i != null && i.base ? en(i.base, r == null ? void 0 : r.base) : r == null ? void 0 : r.base, f = i != null && i.variants && !Ce(i.variants) ? Fr(s, i.variants) : s, m = i != null && i.defaultVariants && !Ce(i.defaultVariants) ? { ...i.defaultVariants, ...u } : u;
|
|
1189
1189
|
!Ce(d.twMergeConfig) && !qu(d.twMergeConfig, Ue.cachedTwMergeConfig) && (Ue.didTwMergeConfigChange = !0, Ue.cachedTwMergeConfig = d.twMergeConfig);
|
|
1190
|
-
const g = Ce(i == null ? void 0 : i.slots),
|
|
1190
|
+
const g = Ce(i == null ? void 0 : i.slots), y = Ce(l) ? {} : {
|
|
1191
1191
|
// add "base" to the slots object
|
|
1192
1192
|
base: en(r == null ? void 0 : r.base, g && (i == null ? void 0 : i.base)),
|
|
1193
1193
|
...l
|
|
1194
|
-
},
|
|
1194
|
+
}, x = g ? y : Yu(
|
|
1195
1195
|
{ ...i == null ? void 0 : i.slots },
|
|
1196
|
-
Ce(
|
|
1197
|
-
),
|
|
1196
|
+
Ce(y) ? { base: r == null ? void 0 : r.base } : y
|
|
1197
|
+
), v = Ce(i == null ? void 0 : i.compoundVariants) ? a : Hl(i == null ? void 0 : i.compoundVariants, a), T = (D) => {
|
|
1198
1198
|
if (Ce(f) && Ce(l) && g)
|
|
1199
|
-
return t(h,
|
|
1200
|
-
if (
|
|
1199
|
+
return t(h, D == null ? void 0 : D.class, D == null ? void 0 : D.className)(d);
|
|
1200
|
+
if (v && !Array.isArray(v))
|
|
1201
1201
|
throw new TypeError(
|
|
1202
|
-
`The "compoundVariants" prop must be an array. Received: ${typeof
|
|
1202
|
+
`The "compoundVariants" prop must be an array. Received: ${typeof v}`
|
|
1203
1203
|
);
|
|
1204
1204
|
if (c && !Array.isArray(c))
|
|
1205
1205
|
throw new TypeError(
|
|
1206
1206
|
`The "compoundSlots" prop must be an array. Received: ${typeof c}`
|
|
1207
1207
|
);
|
|
1208
|
-
const
|
|
1208
|
+
const B = (p, E = f, L = null, S = null) => {
|
|
1209
1209
|
const M = E[p];
|
|
1210
1210
|
if (!M || Ce(M))
|
|
1211
1211
|
return null;
|
|
1212
|
-
const $ = (S == null ? void 0 : S[p]) ?? (
|
|
1212
|
+
const $ = (S == null ? void 0 : S[p]) ?? (D == null ? void 0 : D[p]);
|
|
1213
1213
|
if ($ === null) return null;
|
|
1214
1214
|
const P = ii($);
|
|
1215
1215
|
if (typeof P == "object")
|
|
1216
1216
|
return null;
|
|
1217
|
-
const
|
|
1217
|
+
const R = m == null ? void 0 : m[p], J = P ?? ii(R);
|
|
1218
1218
|
return M[J || "false"];
|
|
1219
1219
|
}, N = () => {
|
|
1220
1220
|
if (!f) return null;
|
|
1221
1221
|
const p = Object.keys(f), E = [];
|
|
1222
|
-
for (let
|
|
1223
|
-
const S =
|
|
1222
|
+
for (let L = 0; L < p.length; L++) {
|
|
1223
|
+
const S = B(p[L], f);
|
|
1224
1224
|
S && E.push(S);
|
|
1225
1225
|
}
|
|
1226
1226
|
return E;
|
|
1227
|
-
},
|
|
1227
|
+
}, I = (p, E) => {
|
|
1228
1228
|
if (!f || typeof f != "object") return null;
|
|
1229
|
-
const
|
|
1229
|
+
const L = [];
|
|
1230
1230
|
for (const S in f) {
|
|
1231
|
-
const M =
|
|
1232
|
-
$ &&
|
|
1231
|
+
const M = B(S, f, p, E), $ = p === "base" && typeof M == "string" ? M : M && M[p];
|
|
1232
|
+
$ && L.push($);
|
|
1233
1233
|
}
|
|
1234
|
-
return
|
|
1234
|
+
return L;
|
|
1235
1235
|
}, A = {};
|
|
1236
|
-
for (const p in
|
|
1237
|
-
const E =
|
|
1236
|
+
for (const p in D) {
|
|
1237
|
+
const E = D[p];
|
|
1238
1238
|
E !== void 0 && (A[p] = E);
|
|
1239
1239
|
}
|
|
1240
1240
|
const k = (p, E) => {
|
|
1241
1241
|
var S;
|
|
1242
|
-
const
|
|
1243
|
-
[p]: (S =
|
|
1242
|
+
const L = typeof (D == null ? void 0 : D[p]) == "object" ? {
|
|
1243
|
+
[p]: (S = D[p]) == null ? void 0 : S.initial
|
|
1244
1244
|
} : {};
|
|
1245
1245
|
return {
|
|
1246
1246
|
...m,
|
|
1247
1247
|
...A,
|
|
1248
|
-
...
|
|
1248
|
+
...L,
|
|
1249
1249
|
...E
|
|
1250
1250
|
};
|
|
1251
1251
|
}, O = (p = [], E) => {
|
|
1252
|
-
const
|
|
1252
|
+
const L = [], S = p.length;
|
|
1253
1253
|
for (let M = 0; M < S; M++) {
|
|
1254
|
-
const { class: $, className: P, ...
|
|
1254
|
+
const { class: $, className: P, ...R } = p[M];
|
|
1255
1255
|
let J = !0;
|
|
1256
1256
|
const ee = k(null, E);
|
|
1257
|
-
for (const te in
|
|
1258
|
-
const ae =
|
|
1257
|
+
for (const te in R) {
|
|
1258
|
+
const ae = R[te], pe = ee[te];
|
|
1259
1259
|
if (Array.isArray(ae)) {
|
|
1260
1260
|
if (!ae.includes(pe)) {
|
|
1261
1261
|
J = !1;
|
|
@@ -1270,36 +1270,36 @@ var Ue = Zu(), Ju = (t) => {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
J && ($ &&
|
|
1273
|
+
J && ($ && L.push($), P && L.push(P));
|
|
1274
1274
|
}
|
|
1275
|
-
return
|
|
1275
|
+
return L;
|
|
1276
1276
|
}, W = (p) => {
|
|
1277
|
-
const E = O(
|
|
1277
|
+
const E = O(v, p);
|
|
1278
1278
|
if (!Array.isArray(E)) return E;
|
|
1279
|
-
const
|
|
1279
|
+
const L = {}, S = t;
|
|
1280
1280
|
for (let M = 0; M < E.length; M++) {
|
|
1281
1281
|
const $ = E[M];
|
|
1282
1282
|
if (typeof $ == "string")
|
|
1283
|
-
|
|
1283
|
+
L.base = S(L.base, $)(d);
|
|
1284
1284
|
else if (typeof $ == "object")
|
|
1285
1285
|
for (const P in $)
|
|
1286
|
-
|
|
1286
|
+
L[P] = S(L[P], $[P])(d);
|
|
1287
1287
|
}
|
|
1288
|
-
return
|
|
1289
|
-
},
|
|
1288
|
+
return L;
|
|
1289
|
+
}, V = (p) => {
|
|
1290
1290
|
if (c.length < 1) return null;
|
|
1291
|
-
const E = {},
|
|
1291
|
+
const E = {}, L = k(null, p);
|
|
1292
1292
|
for (let S = 0; S < c.length; S++) {
|
|
1293
1293
|
const {
|
|
1294
1294
|
slots: M = [],
|
|
1295
1295
|
class: $,
|
|
1296
1296
|
className: P,
|
|
1297
|
-
...
|
|
1297
|
+
...R
|
|
1298
1298
|
} = c[S];
|
|
1299
|
-
if (!Ce(
|
|
1299
|
+
if (!Ce(R)) {
|
|
1300
1300
|
let J = !0;
|
|
1301
|
-
for (const ee in
|
|
1302
|
-
const te =
|
|
1301
|
+
for (const ee in R) {
|
|
1302
|
+
const te = L[ee], ae = R[ee];
|
|
1303
1303
|
if (te === void 0 || (Array.isArray(ae) ? !ae.includes(te) : ae !== te)) {
|
|
1304
1304
|
J = !1;
|
|
1305
1305
|
break;
|
|
@@ -1316,16 +1316,16 @@ var Ue = Zu(), Ju = (t) => {
|
|
|
1316
1316
|
};
|
|
1317
1317
|
if (!Ce(l) || !g) {
|
|
1318
1318
|
const p = {};
|
|
1319
|
-
if (typeof
|
|
1319
|
+
if (typeof x == "object" && !Ce(x)) {
|
|
1320
1320
|
const E = t;
|
|
1321
|
-
for (const
|
|
1322
|
-
p[
|
|
1323
|
-
const M = W(S), $ =
|
|
1321
|
+
for (const L in x)
|
|
1322
|
+
p[L] = (S) => {
|
|
1323
|
+
const M = W(S), $ = V(S);
|
|
1324
1324
|
return E(
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
M ? M[
|
|
1328
|
-
$ ? $[
|
|
1325
|
+
x[L],
|
|
1326
|
+
I(L, S),
|
|
1327
|
+
M ? M[L] : void 0,
|
|
1328
|
+
$ ? $[L] : void 0,
|
|
1329
1329
|
S == null ? void 0 : S.class,
|
|
1330
1330
|
S == null ? void 0 : S.className
|
|
1331
1331
|
)(d);
|
|
@@ -1336,15 +1336,15 @@ var Ue = Zu(), Ju = (t) => {
|
|
|
1336
1336
|
return t(
|
|
1337
1337
|
h,
|
|
1338
1338
|
N(),
|
|
1339
|
-
O(
|
|
1340
|
-
|
|
1341
|
-
|
|
1339
|
+
O(v),
|
|
1340
|
+
D == null ? void 0 : D.class,
|
|
1341
|
+
D == null ? void 0 : D.className
|
|
1342
1342
|
)(d);
|
|
1343
|
-
},
|
|
1343
|
+
}, w = () => {
|
|
1344
1344
|
if (!(!f || typeof f != "object"))
|
|
1345
1345
|
return Object.keys(f);
|
|
1346
1346
|
};
|
|
1347
|
-
return
|
|
1347
|
+
return T.variantKeys = w(), T.extend = i, T.base = h, T.slots = x, T.variants = f, T.defaultVariants = m, T.compoundSlots = c, T.compoundVariants = v, T;
|
|
1348
1348
|
};
|
|
1349
1349
|
return {
|
|
1350
1350
|
tv: e,
|
|
@@ -1498,18 +1498,18 @@ const Qu = (t, e) => {
|
|
|
1498
1498
|
let l = 0, s = 0, a = 0, c;
|
|
1499
1499
|
const u = o.length;
|
|
1500
1500
|
for (let g = 0; g < u; g++) {
|
|
1501
|
-
const
|
|
1501
|
+
const y = o[g];
|
|
1502
1502
|
if (l === 0 && s === 0) {
|
|
1503
|
-
if (
|
|
1503
|
+
if (y === si) {
|
|
1504
1504
|
i.push(o.slice(a, g)), a = g + 1;
|
|
1505
1505
|
continue;
|
|
1506
1506
|
}
|
|
1507
|
-
if (
|
|
1507
|
+
if (y === "/") {
|
|
1508
1508
|
c = g;
|
|
1509
1509
|
continue;
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
|
-
|
|
1512
|
+
y === "[" ? l++ : y === "]" ? l-- : y === "(" ? s++ : y === ")" && s--;
|
|
1513
1513
|
}
|
|
1514
1514
|
const d = i.length === 0 ? o : o.slice(a);
|
|
1515
1515
|
let h = d, f = !1;
|
|
@@ -1573,26 +1573,26 @@ const Qu = (t, e) => {
|
|
|
1573
1573
|
a = u + (a.length > 0 ? " " + a : a);
|
|
1574
1574
|
continue;
|
|
1575
1575
|
}
|
|
1576
|
-
let
|
|
1577
|
-
if (!
|
|
1578
|
-
if (!
|
|
1576
|
+
let y = !!g, x = r(y ? m.substring(0, g) : m);
|
|
1577
|
+
if (!x) {
|
|
1578
|
+
if (!y) {
|
|
1579
1579
|
a = u + (a.length > 0 ? " " + a : a);
|
|
1580
1580
|
continue;
|
|
1581
1581
|
}
|
|
1582
|
-
if (
|
|
1582
|
+
if (x = r(m), !x) {
|
|
1583
1583
|
a = u + (a.length > 0 ? " " + a : a);
|
|
1584
1584
|
continue;
|
|
1585
1585
|
}
|
|
1586
|
-
|
|
1586
|
+
y = !1;
|
|
1587
1587
|
}
|
|
1588
|
-
const
|
|
1589
|
-
if (l.indexOf(
|
|
1588
|
+
const v = h.length === 0 ? "" : h.length === 1 ? h[0] : i(h).join(":"), T = f ? v + _r : v, w = T + x;
|
|
1589
|
+
if (l.indexOf(w) > -1)
|
|
1590
1590
|
continue;
|
|
1591
|
-
l.push(
|
|
1592
|
-
const
|
|
1593
|
-
for (let
|
|
1594
|
-
const N =
|
|
1595
|
-
l.push(
|
|
1591
|
+
l.push(w);
|
|
1592
|
+
const D = o(x, y);
|
|
1593
|
+
for (let B = 0; B < D.length; ++B) {
|
|
1594
|
+
const N = D[B];
|
|
1595
|
+
l.push(T + N);
|
|
1596
1596
|
}
|
|
1597
1597
|
a = u + (a.length > 0 ? " " + a : a);
|
|
1598
1598
|
}
|
|
@@ -1630,14 +1630,14 @@ const Qu = (t, e) => {
|
|
|
1630
1630
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1631
1631
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1632
1632
|
wd.test(t) && !Ed.test(t)
|
|
1633
|
-
), Xl = () => !1, Td = (t) => Sd.test(t), Md = (t) => Pd.test(t), Nd = (t) => !
|
|
1633
|
+
), Xl = () => !1, Td = (t) => Sd.test(t), Md = (t) => Pd.test(t), Nd = (t) => !z(t) && !H(t), Dd = (t) => Ot(t, Ql, Xl), z = (t) => ql.test(t), ut = (t) => Ot(t, es, kd), $r = (t) => Ot(t, Od, re), ci = (t) => Ot(t, Zl, Xl), Id = (t) => Ot(t, Jl, Md), gn = (t) => Ot(t, ts, Td), H = (t) => Yl.test(t), Vt = (t) => At(t, es), Ld = (t) => At(t, Ad), ui = (t) => At(t, Zl), Rd = (t) => At(t, Ql), Kd = (t) => At(t, Jl), yn = (t) => At(t, ts, !0), Ot = (t, e, n) => {
|
|
1634
1634
|
const r = ql.exec(t);
|
|
1635
1635
|
return r ? r[1] ? e(r[1]) : n(r[2]) : !1;
|
|
1636
1636
|
}, At = (t, e, n = !1) => {
|
|
1637
1637
|
const r = Yl.exec(t);
|
|
1638
1638
|
return r ? r[1] ? e(r[1]) : n : !1;
|
|
1639
1639
|
}, Zl = (t) => t === "position" || t === "percentage", Jl = (t) => t === "image" || t === "url", Ql = (t) => t === "length" || t === "size" || t === "bg-size", es = (t) => t === "length", Od = (t) => t === "number", Ad = (t) => t === "family-name", ts = (t) => t === "shadow", Vr = () => {
|
|
1640
|
-
const t = ye("color"), e = ye("font"), n = ye("text"), r = ye("font-weight"), o = ye("tracking"), i = ye("leading"), l = ye("breakpoint"), s = ye("container"), a = ye("spacing"), c = ye("radius"), u = ye("shadow"), d = ye("inset-shadow"), h = ye("text-shadow"), f = ye("drop-shadow"), m = ye("blur"), g = ye("perspective"),
|
|
1640
|
+
const t = ye("color"), e = ye("font"), n = ye("text"), r = ye("font-weight"), o = ye("tracking"), i = ye("leading"), l = ye("breakpoint"), s = ye("container"), a = ye("spacing"), c = ye("radius"), u = ye("shadow"), d = ye("inset-shadow"), h = ye("text-shadow"), f = ye("drop-shadow"), m = ye("blur"), g = ye("perspective"), y = ye("aspect"), x = ye("ease"), v = ye("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], w = () => [
|
|
1641
1641
|
"center",
|
|
1642
1642
|
"top",
|
|
1643
1643
|
"bottom",
|
|
@@ -1655,30 +1655,30 @@ const Qu = (t, e) => {
|
|
|
1655
1655
|
"bottom-left",
|
|
1656
1656
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1657
1657
|
"left-bottom"
|
|
1658
|
-
],
|
|
1659
|
-
span: ["full", Je,
|
|
1660
|
-
}, Je,
|
|
1661
|
-
position: [
|
|
1658
|
+
], D = () => [...w(), H, z], B = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], I = () => [H, z, a], A = () => [xt, "full", "auto", ...I()], k = () => [Je, "none", "subgrid", H, z], O = () => ["auto", {
|
|
1659
|
+
span: ["full", Je, H, z]
|
|
1660
|
+
}, Je, H, z], W = () => [Je, "auto", H, z], V = () => ["auto", "min", "max", "fr", H, z], p = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], E = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...I()], S = () => [xt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...I()], M = () => [t, H, z], $ = () => [...w(), ui, ci, {
|
|
1661
|
+
position: [H, z]
|
|
1662
1662
|
}], P = () => ["no-repeat", {
|
|
1663
1663
|
repeat: ["", "x", "y", "space", "round"]
|
|
1664
|
-
}],
|
|
1665
|
-
size: [
|
|
1664
|
+
}], R = () => ["auto", "cover", "contain", Rd, Dd, {
|
|
1665
|
+
size: [H, z]
|
|
1666
1666
|
}], J = () => [vr, Vt, ut], ee = () => [
|
|
1667
1667
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1668
1668
|
"",
|
|
1669
1669
|
"none",
|
|
1670
1670
|
"full",
|
|
1671
1671
|
c,
|
|
1672
|
-
|
|
1673
|
-
|
|
1672
|
+
H,
|
|
1673
|
+
z
|
|
1674
1674
|
], te = () => ["", re, Vt, ut], ae = () => ["solid", "dashed", "dotted", "double"], pe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ie = () => [re, vr, ui, ci], Se = () => [
|
|
1675
1675
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1676
1676
|
"",
|
|
1677
1677
|
"none",
|
|
1678
1678
|
m,
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
], ze = () => ["none", re,
|
|
1679
|
+
H,
|
|
1680
|
+
z
|
|
1681
|
+
], ze = () => ["none", re, H, z], j = () => ["none", re, H, z], Ne = () => [re, H, z], Pe = () => [xt, "full", ...I()];
|
|
1682
1682
|
return {
|
|
1683
1683
|
cacheSize: 500,
|
|
1684
1684
|
theme: {
|
|
@@ -1711,7 +1711,7 @@ const Qu = (t, e) => {
|
|
|
1711
1711
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1712
1712
|
*/
|
|
1713
1713
|
aspect: [{
|
|
1714
|
-
aspect: ["auto", "square", xt,
|
|
1714
|
+
aspect: ["auto", "square", xt, z, H, y]
|
|
1715
1715
|
}],
|
|
1716
1716
|
/**
|
|
1717
1717
|
* Container
|
|
@@ -1724,21 +1724,21 @@ const Qu = (t, e) => {
|
|
|
1724
1724
|
* @see https://tailwindcss.com/docs/columns
|
|
1725
1725
|
*/
|
|
1726
1726
|
columns: [{
|
|
1727
|
-
columns: [re,
|
|
1727
|
+
columns: [re, z, H, s]
|
|
1728
1728
|
}],
|
|
1729
1729
|
/**
|
|
1730
1730
|
* Break After
|
|
1731
1731
|
* @see https://tailwindcss.com/docs/break-after
|
|
1732
1732
|
*/
|
|
1733
1733
|
"break-after": [{
|
|
1734
|
-
"break-after":
|
|
1734
|
+
"break-after": T()
|
|
1735
1735
|
}],
|
|
1736
1736
|
/**
|
|
1737
1737
|
* Break Before
|
|
1738
1738
|
* @see https://tailwindcss.com/docs/break-before
|
|
1739
1739
|
*/
|
|
1740
1740
|
"break-before": [{
|
|
1741
|
-
"break-before":
|
|
1741
|
+
"break-before": T()
|
|
1742
1742
|
}],
|
|
1743
1743
|
/**
|
|
1744
1744
|
* Break Inside
|
|
@@ -1802,28 +1802,28 @@ const Qu = (t, e) => {
|
|
|
1802
1802
|
* @see https://tailwindcss.com/docs/object-position
|
|
1803
1803
|
*/
|
|
1804
1804
|
"object-position": [{
|
|
1805
|
-
object:
|
|
1805
|
+
object: D()
|
|
1806
1806
|
}],
|
|
1807
1807
|
/**
|
|
1808
1808
|
* Overflow
|
|
1809
1809
|
* @see https://tailwindcss.com/docs/overflow
|
|
1810
1810
|
*/
|
|
1811
1811
|
overflow: [{
|
|
1812
|
-
overflow:
|
|
1812
|
+
overflow: B()
|
|
1813
1813
|
}],
|
|
1814
1814
|
/**
|
|
1815
1815
|
* Overflow X
|
|
1816
1816
|
* @see https://tailwindcss.com/docs/overflow
|
|
1817
1817
|
*/
|
|
1818
1818
|
"overflow-x": [{
|
|
1819
|
-
"overflow-x":
|
|
1819
|
+
"overflow-x": B()
|
|
1820
1820
|
}],
|
|
1821
1821
|
/**
|
|
1822
1822
|
* Overflow Y
|
|
1823
1823
|
* @see https://tailwindcss.com/docs/overflow
|
|
1824
1824
|
*/
|
|
1825
1825
|
"overflow-y": [{
|
|
1826
|
-
"overflow-y":
|
|
1826
|
+
"overflow-y": B()
|
|
1827
1827
|
}],
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Overscroll Behavior
|
|
@@ -1924,7 +1924,7 @@ const Qu = (t, e) => {
|
|
|
1924
1924
|
* @see https://tailwindcss.com/docs/z-index
|
|
1925
1925
|
*/
|
|
1926
1926
|
z: [{
|
|
1927
|
-
z: [Je, "auto",
|
|
1927
|
+
z: [Je, "auto", H, z]
|
|
1928
1928
|
}],
|
|
1929
1929
|
// ------------------------
|
|
1930
1930
|
// --- Flexbox and Grid ---
|
|
@@ -1934,7 +1934,7 @@ const Qu = (t, e) => {
|
|
|
1934
1934
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1935
1935
|
*/
|
|
1936
1936
|
basis: [{
|
|
1937
|
-
basis: [xt, "full", "auto", s, ...
|
|
1937
|
+
basis: [xt, "full", "auto", s, ...I()]
|
|
1938
1938
|
}],
|
|
1939
1939
|
/**
|
|
1940
1940
|
* Flex Direction
|
|
@@ -1955,28 +1955,28 @@ const Qu = (t, e) => {
|
|
|
1955
1955
|
* @see https://tailwindcss.com/docs/flex
|
|
1956
1956
|
*/
|
|
1957
1957
|
flex: [{
|
|
1958
|
-
flex: [re, xt, "auto", "initial", "none",
|
|
1958
|
+
flex: [re, xt, "auto", "initial", "none", z]
|
|
1959
1959
|
}],
|
|
1960
1960
|
/**
|
|
1961
1961
|
* Flex Grow
|
|
1962
1962
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1963
1963
|
*/
|
|
1964
1964
|
grow: [{
|
|
1965
|
-
grow: ["", re,
|
|
1965
|
+
grow: ["", re, H, z]
|
|
1966
1966
|
}],
|
|
1967
1967
|
/**
|
|
1968
1968
|
* Flex Shrink
|
|
1969
1969
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1970
1970
|
*/
|
|
1971
1971
|
shrink: [{
|
|
1972
|
-
shrink: ["", re,
|
|
1972
|
+
shrink: ["", re, H, z]
|
|
1973
1973
|
}],
|
|
1974
1974
|
/**
|
|
1975
1975
|
* Order
|
|
1976
1976
|
* @see https://tailwindcss.com/docs/order
|
|
1977
1977
|
*/
|
|
1978
1978
|
order: [{
|
|
1979
|
-
order: [Je, "first", "last", "none",
|
|
1979
|
+
order: [Je, "first", "last", "none", H, z]
|
|
1980
1980
|
}],
|
|
1981
1981
|
/**
|
|
1982
1982
|
* Grid Template Columns
|
|
@@ -2046,35 +2046,35 @@ const Qu = (t, e) => {
|
|
|
2046
2046
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
2047
2047
|
*/
|
|
2048
2048
|
"auto-cols": [{
|
|
2049
|
-
"auto-cols":
|
|
2049
|
+
"auto-cols": V()
|
|
2050
2050
|
}],
|
|
2051
2051
|
/**
|
|
2052
2052
|
* Grid Auto Rows
|
|
2053
2053
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
2054
2054
|
*/
|
|
2055
2055
|
"auto-rows": [{
|
|
2056
|
-
"auto-rows":
|
|
2056
|
+
"auto-rows": V()
|
|
2057
2057
|
}],
|
|
2058
2058
|
/**
|
|
2059
2059
|
* Gap
|
|
2060
2060
|
* @see https://tailwindcss.com/docs/gap
|
|
2061
2061
|
*/
|
|
2062
2062
|
gap: [{
|
|
2063
|
-
gap:
|
|
2063
|
+
gap: I()
|
|
2064
2064
|
}],
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Gap X
|
|
2067
2067
|
* @see https://tailwindcss.com/docs/gap
|
|
2068
2068
|
*/
|
|
2069
2069
|
"gap-x": [{
|
|
2070
|
-
"gap-x":
|
|
2070
|
+
"gap-x": I()
|
|
2071
2071
|
}],
|
|
2072
2072
|
/**
|
|
2073
2073
|
* Gap Y
|
|
2074
2074
|
* @see https://tailwindcss.com/docs/gap
|
|
2075
2075
|
*/
|
|
2076
2076
|
"gap-y": [{
|
|
2077
|
-
"gap-y":
|
|
2077
|
+
"gap-y": I()
|
|
2078
2078
|
}],
|
|
2079
2079
|
/**
|
|
2080
2080
|
* Justify Content
|
|
@@ -2149,133 +2149,133 @@ const Qu = (t, e) => {
|
|
|
2149
2149
|
* @see https://tailwindcss.com/docs/padding
|
|
2150
2150
|
*/
|
|
2151
2151
|
p: [{
|
|
2152
|
-
p:
|
|
2152
|
+
p: I()
|
|
2153
2153
|
}],
|
|
2154
2154
|
/**
|
|
2155
2155
|
* Padding X
|
|
2156
2156
|
* @see https://tailwindcss.com/docs/padding
|
|
2157
2157
|
*/
|
|
2158
2158
|
px: [{
|
|
2159
|
-
px:
|
|
2159
|
+
px: I()
|
|
2160
2160
|
}],
|
|
2161
2161
|
/**
|
|
2162
2162
|
* Padding Y
|
|
2163
2163
|
* @see https://tailwindcss.com/docs/padding
|
|
2164
2164
|
*/
|
|
2165
2165
|
py: [{
|
|
2166
|
-
py:
|
|
2166
|
+
py: I()
|
|
2167
2167
|
}],
|
|
2168
2168
|
/**
|
|
2169
2169
|
* Padding Start
|
|
2170
2170
|
* @see https://tailwindcss.com/docs/padding
|
|
2171
2171
|
*/
|
|
2172
2172
|
ps: [{
|
|
2173
|
-
ps:
|
|
2173
|
+
ps: I()
|
|
2174
2174
|
}],
|
|
2175
2175
|
/**
|
|
2176
2176
|
* Padding End
|
|
2177
2177
|
* @see https://tailwindcss.com/docs/padding
|
|
2178
2178
|
*/
|
|
2179
2179
|
pe: [{
|
|
2180
|
-
pe:
|
|
2180
|
+
pe: I()
|
|
2181
2181
|
}],
|
|
2182
2182
|
/**
|
|
2183
2183
|
* Padding Top
|
|
2184
2184
|
* @see https://tailwindcss.com/docs/padding
|
|
2185
2185
|
*/
|
|
2186
2186
|
pt: [{
|
|
2187
|
-
pt:
|
|
2187
|
+
pt: I()
|
|
2188
2188
|
}],
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Padding Right
|
|
2191
2191
|
* @see https://tailwindcss.com/docs/padding
|
|
2192
2192
|
*/
|
|
2193
2193
|
pr: [{
|
|
2194
|
-
pr:
|
|
2194
|
+
pr: I()
|
|
2195
2195
|
}],
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Padding Bottom
|
|
2198
2198
|
* @see https://tailwindcss.com/docs/padding
|
|
2199
2199
|
*/
|
|
2200
2200
|
pb: [{
|
|
2201
|
-
pb:
|
|
2201
|
+
pb: I()
|
|
2202
2202
|
}],
|
|
2203
2203
|
/**
|
|
2204
2204
|
* Padding Left
|
|
2205
2205
|
* @see https://tailwindcss.com/docs/padding
|
|
2206
2206
|
*/
|
|
2207
2207
|
pl: [{
|
|
2208
|
-
pl:
|
|
2208
|
+
pl: I()
|
|
2209
2209
|
}],
|
|
2210
2210
|
/**
|
|
2211
2211
|
* Margin
|
|
2212
2212
|
* @see https://tailwindcss.com/docs/margin
|
|
2213
2213
|
*/
|
|
2214
2214
|
m: [{
|
|
2215
|
-
m:
|
|
2215
|
+
m: L()
|
|
2216
2216
|
}],
|
|
2217
2217
|
/**
|
|
2218
2218
|
* Margin X
|
|
2219
2219
|
* @see https://tailwindcss.com/docs/margin
|
|
2220
2220
|
*/
|
|
2221
2221
|
mx: [{
|
|
2222
|
-
mx:
|
|
2222
|
+
mx: L()
|
|
2223
2223
|
}],
|
|
2224
2224
|
/**
|
|
2225
2225
|
* Margin Y
|
|
2226
2226
|
* @see https://tailwindcss.com/docs/margin
|
|
2227
2227
|
*/
|
|
2228
2228
|
my: [{
|
|
2229
|
-
my:
|
|
2229
|
+
my: L()
|
|
2230
2230
|
}],
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Margin Start
|
|
2233
2233
|
* @see https://tailwindcss.com/docs/margin
|
|
2234
2234
|
*/
|
|
2235
2235
|
ms: [{
|
|
2236
|
-
ms:
|
|
2236
|
+
ms: L()
|
|
2237
2237
|
}],
|
|
2238
2238
|
/**
|
|
2239
2239
|
* Margin End
|
|
2240
2240
|
* @see https://tailwindcss.com/docs/margin
|
|
2241
2241
|
*/
|
|
2242
2242
|
me: [{
|
|
2243
|
-
me:
|
|
2243
|
+
me: L()
|
|
2244
2244
|
}],
|
|
2245
2245
|
/**
|
|
2246
2246
|
* Margin Top
|
|
2247
2247
|
* @see https://tailwindcss.com/docs/margin
|
|
2248
2248
|
*/
|
|
2249
2249
|
mt: [{
|
|
2250
|
-
mt:
|
|
2250
|
+
mt: L()
|
|
2251
2251
|
}],
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Margin Right
|
|
2254
2254
|
* @see https://tailwindcss.com/docs/margin
|
|
2255
2255
|
*/
|
|
2256
2256
|
mr: [{
|
|
2257
|
-
mr:
|
|
2257
|
+
mr: L()
|
|
2258
2258
|
}],
|
|
2259
2259
|
/**
|
|
2260
2260
|
* Margin Bottom
|
|
2261
2261
|
* @see https://tailwindcss.com/docs/margin
|
|
2262
2262
|
*/
|
|
2263
2263
|
mb: [{
|
|
2264
|
-
mb:
|
|
2264
|
+
mb: L()
|
|
2265
2265
|
}],
|
|
2266
2266
|
/**
|
|
2267
2267
|
* Margin Left
|
|
2268
2268
|
* @see https://tailwindcss.com/docs/margin
|
|
2269
2269
|
*/
|
|
2270
2270
|
ml: [{
|
|
2271
|
-
ml:
|
|
2271
|
+
ml: L()
|
|
2272
2272
|
}],
|
|
2273
2273
|
/**
|
|
2274
2274
|
* Space Between X
|
|
2275
2275
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2276
2276
|
*/
|
|
2277
2277
|
"space-x": [{
|
|
2278
|
-
"space-x":
|
|
2278
|
+
"space-x": I()
|
|
2279
2279
|
}],
|
|
2280
2280
|
/**
|
|
2281
2281
|
* Space Between X Reverse
|
|
@@ -2287,7 +2287,7 @@ const Qu = (t, e) => {
|
|
|
2287
2287
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2288
2288
|
*/
|
|
2289
2289
|
"space-y": [{
|
|
2290
|
-
"space-y":
|
|
2290
|
+
"space-y": I()
|
|
2291
2291
|
}],
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Space Between Y Reverse
|
|
@@ -2388,21 +2388,21 @@ const Qu = (t, e) => {
|
|
|
2388
2388
|
* @see https://tailwindcss.com/docs/font-weight
|
|
2389
2389
|
*/
|
|
2390
2390
|
"font-weight": [{
|
|
2391
|
-
font: [r,
|
|
2391
|
+
font: [r, H, $r]
|
|
2392
2392
|
}],
|
|
2393
2393
|
/**
|
|
2394
2394
|
* Font Stretch
|
|
2395
2395
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
2396
2396
|
*/
|
|
2397
2397
|
"font-stretch": [{
|
|
2398
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", vr,
|
|
2398
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", vr, z]
|
|
2399
2399
|
}],
|
|
2400
2400
|
/**
|
|
2401
2401
|
* Font Family
|
|
2402
2402
|
* @see https://tailwindcss.com/docs/font-family
|
|
2403
2403
|
*/
|
|
2404
2404
|
"font-family": [{
|
|
2405
|
-
font: [Ld,
|
|
2405
|
+
font: [Ld, z, e]
|
|
2406
2406
|
}],
|
|
2407
2407
|
/**
|
|
2408
2408
|
* Font Variant Numeric
|
|
@@ -2439,14 +2439,14 @@ const Qu = (t, e) => {
|
|
|
2439
2439
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
2440
2440
|
*/
|
|
2441
2441
|
tracking: [{
|
|
2442
|
-
tracking: [o,
|
|
2442
|
+
tracking: [o, H, z]
|
|
2443
2443
|
}],
|
|
2444
2444
|
/**
|
|
2445
2445
|
* Line Clamp
|
|
2446
2446
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2447
2447
|
*/
|
|
2448
2448
|
"line-clamp": [{
|
|
2449
|
-
"line-clamp": [re, "none",
|
|
2449
|
+
"line-clamp": [re, "none", H, $r]
|
|
2450
2450
|
}],
|
|
2451
2451
|
/**
|
|
2452
2452
|
* Line Height
|
|
@@ -2456,7 +2456,7 @@ const Qu = (t, e) => {
|
|
|
2456
2456
|
leading: [
|
|
2457
2457
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2458
2458
|
i,
|
|
2459
|
-
...
|
|
2459
|
+
...I()
|
|
2460
2460
|
]
|
|
2461
2461
|
}],
|
|
2462
2462
|
/**
|
|
@@ -2464,7 +2464,7 @@ const Qu = (t, e) => {
|
|
|
2464
2464
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
2465
2465
|
*/
|
|
2466
2466
|
"list-image": [{
|
|
2467
|
-
"list-image": ["none",
|
|
2467
|
+
"list-image": ["none", H, z]
|
|
2468
2468
|
}],
|
|
2469
2469
|
/**
|
|
2470
2470
|
* List Style Position
|
|
@@ -2478,7 +2478,7 @@ const Qu = (t, e) => {
|
|
|
2478
2478
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
2479
2479
|
*/
|
|
2480
2480
|
"list-style-type": [{
|
|
2481
|
-
list: ["disc", "decimal", "none",
|
|
2481
|
+
list: ["disc", "decimal", "none", H, z]
|
|
2482
2482
|
}],
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Text Alignment
|
|
@@ -2519,7 +2519,7 @@ const Qu = (t, e) => {
|
|
|
2519
2519
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2520
2520
|
*/
|
|
2521
2521
|
"text-decoration-thickness": [{
|
|
2522
|
-
decoration: [re, "from-font", "auto",
|
|
2522
|
+
decoration: [re, "from-font", "auto", H, ut]
|
|
2523
2523
|
}],
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Text Decoration Color
|
|
@@ -2533,7 +2533,7 @@ const Qu = (t, e) => {
|
|
|
2533
2533
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2534
2534
|
*/
|
|
2535
2535
|
"underline-offset": [{
|
|
2536
|
-
"underline-offset": [re, "auto",
|
|
2536
|
+
"underline-offset": [re, "auto", H, z]
|
|
2537
2537
|
}],
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Text Transform
|
|
@@ -2557,14 +2557,14 @@ const Qu = (t, e) => {
|
|
|
2557
2557
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2558
2558
|
*/
|
|
2559
2559
|
indent: [{
|
|
2560
|
-
indent:
|
|
2560
|
+
indent: I()
|
|
2561
2561
|
}],
|
|
2562
2562
|
/**
|
|
2563
2563
|
* Vertical Alignment
|
|
2564
2564
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2565
2565
|
*/
|
|
2566
2566
|
"vertical-align": [{
|
|
2567
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2567
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", H, z]
|
|
2568
2568
|
}],
|
|
2569
2569
|
/**
|
|
2570
2570
|
* Whitespace
|
|
@@ -2599,7 +2599,7 @@ const Qu = (t, e) => {
|
|
|
2599
2599
|
* @see https://tailwindcss.com/docs/content
|
|
2600
2600
|
*/
|
|
2601
2601
|
content: [{
|
|
2602
|
-
content: ["none",
|
|
2602
|
+
content: ["none", H, z]
|
|
2603
2603
|
}],
|
|
2604
2604
|
// -------------------
|
|
2605
2605
|
// --- Backgrounds ---
|
|
@@ -2644,7 +2644,7 @@ const Qu = (t, e) => {
|
|
|
2644
2644
|
* @see https://tailwindcss.com/docs/background-size
|
|
2645
2645
|
*/
|
|
2646
2646
|
"bg-size": [{
|
|
2647
|
-
bg:
|
|
2647
|
+
bg: R()
|
|
2648
2648
|
}],
|
|
2649
2649
|
/**
|
|
2650
2650
|
* Background Image
|
|
@@ -2654,9 +2654,9 @@ const Qu = (t, e) => {
|
|
|
2654
2654
|
bg: ["none", {
|
|
2655
2655
|
linear: [{
|
|
2656
2656
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2657
|
-
}, Je,
|
|
2658
|
-
radial: ["",
|
|
2659
|
-
conic: [Je,
|
|
2657
|
+
}, Je, H, z],
|
|
2658
|
+
radial: ["", H, z],
|
|
2659
|
+
conic: [Je, H, z]
|
|
2660
2660
|
}, Kd, Id]
|
|
2661
2661
|
}],
|
|
2662
2662
|
/**
|
|
@@ -2999,7 +2999,7 @@ const Qu = (t, e) => {
|
|
|
2999
2999
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
3000
3000
|
*/
|
|
3001
3001
|
"outline-offset": [{
|
|
3002
|
-
"outline-offset": [re,
|
|
3002
|
+
"outline-offset": [re, H, z]
|
|
3003
3003
|
}],
|
|
3004
3004
|
/**
|
|
3005
3005
|
* Outline Width
|
|
@@ -3125,7 +3125,7 @@ const Qu = (t, e) => {
|
|
|
3125
3125
|
* @see https://tailwindcss.com/docs/opacity
|
|
3126
3126
|
*/
|
|
3127
3127
|
opacity: [{
|
|
3128
|
-
opacity: [re,
|
|
3128
|
+
opacity: [re, H, z]
|
|
3129
3129
|
}],
|
|
3130
3130
|
/**
|
|
3131
3131
|
* Mix Blend Mode
|
|
@@ -3247,7 +3247,7 @@ const Qu = (t, e) => {
|
|
|
3247
3247
|
"mask-y-to": M()
|
|
3248
3248
|
}],
|
|
3249
3249
|
"mask-image-radial": [{
|
|
3250
|
-
"mask-radial": [
|
|
3250
|
+
"mask-radial": [H, z]
|
|
3251
3251
|
}],
|
|
3252
3252
|
"mask-image-radial-from-pos": [{
|
|
3253
3253
|
"mask-radial-from": ie()
|
|
@@ -3271,7 +3271,7 @@ const Qu = (t, e) => {
|
|
|
3271
3271
|
}]
|
|
3272
3272
|
}],
|
|
3273
3273
|
"mask-image-radial-pos": [{
|
|
3274
|
-
"mask-radial-at":
|
|
3274
|
+
"mask-radial-at": w()
|
|
3275
3275
|
}],
|
|
3276
3276
|
"mask-image-conic-pos": [{
|
|
3277
3277
|
"mask-conic": [re]
|
|
@@ -3321,7 +3321,7 @@ const Qu = (t, e) => {
|
|
|
3321
3321
|
* @see https://tailwindcss.com/docs/mask-size
|
|
3322
3322
|
*/
|
|
3323
3323
|
"mask-size": [{
|
|
3324
|
-
mask:
|
|
3324
|
+
mask: R()
|
|
3325
3325
|
}],
|
|
3326
3326
|
/**
|
|
3327
3327
|
* Mask Type
|
|
@@ -3335,7 +3335,7 @@ const Qu = (t, e) => {
|
|
|
3335
3335
|
* @see https://tailwindcss.com/docs/mask-image
|
|
3336
3336
|
*/
|
|
3337
3337
|
"mask-image": [{
|
|
3338
|
-
mask: ["none",
|
|
3338
|
+
mask: ["none", H, z]
|
|
3339
3339
|
}],
|
|
3340
3340
|
// ---------------
|
|
3341
3341
|
// --- Filters ---
|
|
@@ -3349,8 +3349,8 @@ const Qu = (t, e) => {
|
|
|
3349
3349
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3350
3350
|
"",
|
|
3351
3351
|
"none",
|
|
3352
|
-
|
|
3353
|
-
|
|
3352
|
+
H,
|
|
3353
|
+
z
|
|
3354
3354
|
]
|
|
3355
3355
|
}],
|
|
3356
3356
|
/**
|
|
@@ -3365,14 +3365,14 @@ const Qu = (t, e) => {
|
|
|
3365
3365
|
* @see https://tailwindcss.com/docs/brightness
|
|
3366
3366
|
*/
|
|
3367
3367
|
brightness: [{
|
|
3368
|
-
brightness: [re,
|
|
3368
|
+
brightness: [re, H, z]
|
|
3369
3369
|
}],
|
|
3370
3370
|
/**
|
|
3371
3371
|
* Contrast
|
|
3372
3372
|
* @see https://tailwindcss.com/docs/contrast
|
|
3373
3373
|
*/
|
|
3374
3374
|
contrast: [{
|
|
3375
|
-
contrast: [re,
|
|
3375
|
+
contrast: [re, H, z]
|
|
3376
3376
|
}],
|
|
3377
3377
|
/**
|
|
3378
3378
|
* Drop Shadow
|
|
@@ -3400,35 +3400,35 @@ const Qu = (t, e) => {
|
|
|
3400
3400
|
* @see https://tailwindcss.com/docs/grayscale
|
|
3401
3401
|
*/
|
|
3402
3402
|
grayscale: [{
|
|
3403
|
-
grayscale: ["", re,
|
|
3403
|
+
grayscale: ["", re, H, z]
|
|
3404
3404
|
}],
|
|
3405
3405
|
/**
|
|
3406
3406
|
* Hue Rotate
|
|
3407
3407
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3408
3408
|
*/
|
|
3409
3409
|
"hue-rotate": [{
|
|
3410
|
-
"hue-rotate": [re,
|
|
3410
|
+
"hue-rotate": [re, H, z]
|
|
3411
3411
|
}],
|
|
3412
3412
|
/**
|
|
3413
3413
|
* Invert
|
|
3414
3414
|
* @see https://tailwindcss.com/docs/invert
|
|
3415
3415
|
*/
|
|
3416
3416
|
invert: [{
|
|
3417
|
-
invert: ["", re,
|
|
3417
|
+
invert: ["", re, H, z]
|
|
3418
3418
|
}],
|
|
3419
3419
|
/**
|
|
3420
3420
|
* Saturate
|
|
3421
3421
|
* @see https://tailwindcss.com/docs/saturate
|
|
3422
3422
|
*/
|
|
3423
3423
|
saturate: [{
|
|
3424
|
-
saturate: [re,
|
|
3424
|
+
saturate: [re, H, z]
|
|
3425
3425
|
}],
|
|
3426
3426
|
/**
|
|
3427
3427
|
* Sepia
|
|
3428
3428
|
* @see https://tailwindcss.com/docs/sepia
|
|
3429
3429
|
*/
|
|
3430
3430
|
sepia: [{
|
|
3431
|
-
sepia: ["", re,
|
|
3431
|
+
sepia: ["", re, H, z]
|
|
3432
3432
|
}],
|
|
3433
3433
|
/**
|
|
3434
3434
|
* Backdrop Filter
|
|
@@ -3439,8 +3439,8 @@ const Qu = (t, e) => {
|
|
|
3439
3439
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3440
3440
|
"",
|
|
3441
3441
|
"none",
|
|
3442
|
-
|
|
3443
|
-
|
|
3442
|
+
H,
|
|
3443
|
+
z
|
|
3444
3444
|
]
|
|
3445
3445
|
}],
|
|
3446
3446
|
/**
|
|
@@ -3455,56 +3455,56 @@ const Qu = (t, e) => {
|
|
|
3455
3455
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3456
3456
|
*/
|
|
3457
3457
|
"backdrop-brightness": [{
|
|
3458
|
-
"backdrop-brightness": [re,
|
|
3458
|
+
"backdrop-brightness": [re, H, z]
|
|
3459
3459
|
}],
|
|
3460
3460
|
/**
|
|
3461
3461
|
* Backdrop Contrast
|
|
3462
3462
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3463
3463
|
*/
|
|
3464
3464
|
"backdrop-contrast": [{
|
|
3465
|
-
"backdrop-contrast": [re,
|
|
3465
|
+
"backdrop-contrast": [re, H, z]
|
|
3466
3466
|
}],
|
|
3467
3467
|
/**
|
|
3468
3468
|
* Backdrop Grayscale
|
|
3469
3469
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3470
3470
|
*/
|
|
3471
3471
|
"backdrop-grayscale": [{
|
|
3472
|
-
"backdrop-grayscale": ["", re,
|
|
3472
|
+
"backdrop-grayscale": ["", re, H, z]
|
|
3473
3473
|
}],
|
|
3474
3474
|
/**
|
|
3475
3475
|
* Backdrop Hue Rotate
|
|
3476
3476
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3477
3477
|
*/
|
|
3478
3478
|
"backdrop-hue-rotate": [{
|
|
3479
|
-
"backdrop-hue-rotate": [re,
|
|
3479
|
+
"backdrop-hue-rotate": [re, H, z]
|
|
3480
3480
|
}],
|
|
3481
3481
|
/**
|
|
3482
3482
|
* Backdrop Invert
|
|
3483
3483
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3484
3484
|
*/
|
|
3485
3485
|
"backdrop-invert": [{
|
|
3486
|
-
"backdrop-invert": ["", re,
|
|
3486
|
+
"backdrop-invert": ["", re, H, z]
|
|
3487
3487
|
}],
|
|
3488
3488
|
/**
|
|
3489
3489
|
* Backdrop Opacity
|
|
3490
3490
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3491
3491
|
*/
|
|
3492
3492
|
"backdrop-opacity": [{
|
|
3493
|
-
"backdrop-opacity": [re,
|
|
3493
|
+
"backdrop-opacity": [re, H, z]
|
|
3494
3494
|
}],
|
|
3495
3495
|
/**
|
|
3496
3496
|
* Backdrop Saturate
|
|
3497
3497
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3498
3498
|
*/
|
|
3499
3499
|
"backdrop-saturate": [{
|
|
3500
|
-
"backdrop-saturate": [re,
|
|
3500
|
+
"backdrop-saturate": [re, H, z]
|
|
3501
3501
|
}],
|
|
3502
3502
|
/**
|
|
3503
3503
|
* Backdrop Sepia
|
|
3504
3504
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3505
3505
|
*/
|
|
3506
3506
|
"backdrop-sepia": [{
|
|
3507
|
-
"backdrop-sepia": ["", re,
|
|
3507
|
+
"backdrop-sepia": ["", re, H, z]
|
|
3508
3508
|
}],
|
|
3509
3509
|
// --------------
|
|
3510
3510
|
// --- Tables ---
|
|
@@ -3521,21 +3521,21 @@ const Qu = (t, e) => {
|
|
|
3521
3521
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3522
3522
|
*/
|
|
3523
3523
|
"border-spacing": [{
|
|
3524
|
-
"border-spacing":
|
|
3524
|
+
"border-spacing": I()
|
|
3525
3525
|
}],
|
|
3526
3526
|
/**
|
|
3527
3527
|
* Border Spacing X
|
|
3528
3528
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3529
3529
|
*/
|
|
3530
3530
|
"border-spacing-x": [{
|
|
3531
|
-
"border-spacing-x":
|
|
3531
|
+
"border-spacing-x": I()
|
|
3532
3532
|
}],
|
|
3533
3533
|
/**
|
|
3534
3534
|
* Border Spacing Y
|
|
3535
3535
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3536
3536
|
*/
|
|
3537
3537
|
"border-spacing-y": [{
|
|
3538
|
-
"border-spacing-y":
|
|
3538
|
+
"border-spacing-y": I()
|
|
3539
3539
|
}],
|
|
3540
3540
|
/**
|
|
3541
3541
|
* Table Layout
|
|
@@ -3559,7 +3559,7 @@ const Qu = (t, e) => {
|
|
|
3559
3559
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3560
3560
|
*/
|
|
3561
3561
|
transition: [{
|
|
3562
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
3562
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", H, z]
|
|
3563
3563
|
}],
|
|
3564
3564
|
/**
|
|
3565
3565
|
* Transition Behavior
|
|
@@ -3573,28 +3573,28 @@ const Qu = (t, e) => {
|
|
|
3573
3573
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3574
3574
|
*/
|
|
3575
3575
|
duration: [{
|
|
3576
|
-
duration: [re, "initial",
|
|
3576
|
+
duration: [re, "initial", H, z]
|
|
3577
3577
|
}],
|
|
3578
3578
|
/**
|
|
3579
3579
|
* Transition Timing Function
|
|
3580
3580
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3581
3581
|
*/
|
|
3582
3582
|
ease: [{
|
|
3583
|
-
ease: ["linear", "initial",
|
|
3583
|
+
ease: ["linear", "initial", x, H, z]
|
|
3584
3584
|
}],
|
|
3585
3585
|
/**
|
|
3586
3586
|
* Transition Delay
|
|
3587
3587
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3588
3588
|
*/
|
|
3589
3589
|
delay: [{
|
|
3590
|
-
delay: [re,
|
|
3590
|
+
delay: [re, H, z]
|
|
3591
3591
|
}],
|
|
3592
3592
|
/**
|
|
3593
3593
|
* Animation
|
|
3594
3594
|
* @see https://tailwindcss.com/docs/animation
|
|
3595
3595
|
*/
|
|
3596
3596
|
animate: [{
|
|
3597
|
-
animate: ["none",
|
|
3597
|
+
animate: ["none", v, H, z]
|
|
3598
3598
|
}],
|
|
3599
3599
|
// ------------------
|
|
3600
3600
|
// --- Transforms ---
|
|
@@ -3611,14 +3611,14 @@ const Qu = (t, e) => {
|
|
|
3611
3611
|
* @see https://tailwindcss.com/docs/perspective
|
|
3612
3612
|
*/
|
|
3613
3613
|
perspective: [{
|
|
3614
|
-
perspective: [g,
|
|
3614
|
+
perspective: [g, H, z]
|
|
3615
3615
|
}],
|
|
3616
3616
|
/**
|
|
3617
3617
|
* Perspective Origin
|
|
3618
3618
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
3619
3619
|
*/
|
|
3620
3620
|
"perspective-origin": [{
|
|
3621
|
-
"perspective-origin":
|
|
3621
|
+
"perspective-origin": D()
|
|
3622
3622
|
}],
|
|
3623
3623
|
/**
|
|
3624
3624
|
* Rotate
|
|
@@ -3707,14 +3707,14 @@ const Qu = (t, e) => {
|
|
|
3707
3707
|
* @see https://tailwindcss.com/docs/transform
|
|
3708
3708
|
*/
|
|
3709
3709
|
transform: [{
|
|
3710
|
-
transform: [
|
|
3710
|
+
transform: [H, z, "", "none", "gpu", "cpu"]
|
|
3711
3711
|
}],
|
|
3712
3712
|
/**
|
|
3713
3713
|
* Transform Origin
|
|
3714
3714
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
3715
3715
|
*/
|
|
3716
3716
|
"transform-origin": [{
|
|
3717
|
-
origin:
|
|
3717
|
+
origin: D()
|
|
3718
3718
|
}],
|
|
3719
3719
|
/**
|
|
3720
3720
|
* Transform Style
|
|
@@ -3792,7 +3792,7 @@ const Qu = (t, e) => {
|
|
|
3792
3792
|
* @see https://tailwindcss.com/docs/cursor
|
|
3793
3793
|
*/
|
|
3794
3794
|
cursor: [{
|
|
3795
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3795
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", H, z]
|
|
3796
3796
|
}],
|
|
3797
3797
|
/**
|
|
3798
3798
|
* Field Sizing
|
|
@@ -3827,126 +3827,126 @@ const Qu = (t, e) => {
|
|
|
3827
3827
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3828
3828
|
*/
|
|
3829
3829
|
"scroll-m": [{
|
|
3830
|
-
"scroll-m":
|
|
3830
|
+
"scroll-m": I()
|
|
3831
3831
|
}],
|
|
3832
3832
|
/**
|
|
3833
3833
|
* Scroll Margin X
|
|
3834
3834
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3835
3835
|
*/
|
|
3836
3836
|
"scroll-mx": [{
|
|
3837
|
-
"scroll-mx":
|
|
3837
|
+
"scroll-mx": I()
|
|
3838
3838
|
}],
|
|
3839
3839
|
/**
|
|
3840
3840
|
* Scroll Margin Y
|
|
3841
3841
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3842
3842
|
*/
|
|
3843
3843
|
"scroll-my": [{
|
|
3844
|
-
"scroll-my":
|
|
3844
|
+
"scroll-my": I()
|
|
3845
3845
|
}],
|
|
3846
3846
|
/**
|
|
3847
3847
|
* Scroll Margin Start
|
|
3848
3848
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3849
3849
|
*/
|
|
3850
3850
|
"scroll-ms": [{
|
|
3851
|
-
"scroll-ms":
|
|
3851
|
+
"scroll-ms": I()
|
|
3852
3852
|
}],
|
|
3853
3853
|
/**
|
|
3854
3854
|
* Scroll Margin End
|
|
3855
3855
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3856
3856
|
*/
|
|
3857
3857
|
"scroll-me": [{
|
|
3858
|
-
"scroll-me":
|
|
3858
|
+
"scroll-me": I()
|
|
3859
3859
|
}],
|
|
3860
3860
|
/**
|
|
3861
3861
|
* Scroll Margin Top
|
|
3862
3862
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3863
3863
|
*/
|
|
3864
3864
|
"scroll-mt": [{
|
|
3865
|
-
"scroll-mt":
|
|
3865
|
+
"scroll-mt": I()
|
|
3866
3866
|
}],
|
|
3867
3867
|
/**
|
|
3868
3868
|
* Scroll Margin Right
|
|
3869
3869
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3870
3870
|
*/
|
|
3871
3871
|
"scroll-mr": [{
|
|
3872
|
-
"scroll-mr":
|
|
3872
|
+
"scroll-mr": I()
|
|
3873
3873
|
}],
|
|
3874
3874
|
/**
|
|
3875
3875
|
* Scroll Margin Bottom
|
|
3876
3876
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3877
3877
|
*/
|
|
3878
3878
|
"scroll-mb": [{
|
|
3879
|
-
"scroll-mb":
|
|
3879
|
+
"scroll-mb": I()
|
|
3880
3880
|
}],
|
|
3881
3881
|
/**
|
|
3882
3882
|
* Scroll Margin Left
|
|
3883
3883
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3884
3884
|
*/
|
|
3885
3885
|
"scroll-ml": [{
|
|
3886
|
-
"scroll-ml":
|
|
3886
|
+
"scroll-ml": I()
|
|
3887
3887
|
}],
|
|
3888
3888
|
/**
|
|
3889
3889
|
* Scroll Padding
|
|
3890
3890
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3891
3891
|
*/
|
|
3892
3892
|
"scroll-p": [{
|
|
3893
|
-
"scroll-p":
|
|
3893
|
+
"scroll-p": I()
|
|
3894
3894
|
}],
|
|
3895
3895
|
/**
|
|
3896
3896
|
* Scroll Padding X
|
|
3897
3897
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3898
3898
|
*/
|
|
3899
3899
|
"scroll-px": [{
|
|
3900
|
-
"scroll-px":
|
|
3900
|
+
"scroll-px": I()
|
|
3901
3901
|
}],
|
|
3902
3902
|
/**
|
|
3903
3903
|
* Scroll Padding Y
|
|
3904
3904
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3905
3905
|
*/
|
|
3906
3906
|
"scroll-py": [{
|
|
3907
|
-
"scroll-py":
|
|
3907
|
+
"scroll-py": I()
|
|
3908
3908
|
}],
|
|
3909
3909
|
/**
|
|
3910
3910
|
* Scroll Padding Start
|
|
3911
3911
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3912
3912
|
*/
|
|
3913
3913
|
"scroll-ps": [{
|
|
3914
|
-
"scroll-ps":
|
|
3914
|
+
"scroll-ps": I()
|
|
3915
3915
|
}],
|
|
3916
3916
|
/**
|
|
3917
3917
|
* Scroll Padding End
|
|
3918
3918
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3919
3919
|
*/
|
|
3920
3920
|
"scroll-pe": [{
|
|
3921
|
-
"scroll-pe":
|
|
3921
|
+
"scroll-pe": I()
|
|
3922
3922
|
}],
|
|
3923
3923
|
/**
|
|
3924
3924
|
* Scroll Padding Top
|
|
3925
3925
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3926
3926
|
*/
|
|
3927
3927
|
"scroll-pt": [{
|
|
3928
|
-
"scroll-pt":
|
|
3928
|
+
"scroll-pt": I()
|
|
3929
3929
|
}],
|
|
3930
3930
|
/**
|
|
3931
3931
|
* Scroll Padding Right
|
|
3932
3932
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3933
3933
|
*/
|
|
3934
3934
|
"scroll-pr": [{
|
|
3935
|
-
"scroll-pr":
|
|
3935
|
+
"scroll-pr": I()
|
|
3936
3936
|
}],
|
|
3937
3937
|
/**
|
|
3938
3938
|
* Scroll Padding Bottom
|
|
3939
3939
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3940
3940
|
*/
|
|
3941
3941
|
"scroll-pb": [{
|
|
3942
|
-
"scroll-pb":
|
|
3942
|
+
"scroll-pb": I()
|
|
3943
3943
|
}],
|
|
3944
3944
|
/**
|
|
3945
3945
|
* Scroll Padding Left
|
|
3946
3946
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3947
3947
|
*/
|
|
3948
3948
|
"scroll-pl": [{
|
|
3949
|
-
"scroll-pl":
|
|
3949
|
+
"scroll-pl": I()
|
|
3950
3950
|
}],
|
|
3951
3951
|
/**
|
|
3952
3952
|
* Scroll Snap Align
|
|
@@ -4014,7 +4014,7 @@ const Qu = (t, e) => {
|
|
|
4014
4014
|
* @see https://tailwindcss.com/docs/will-change
|
|
4015
4015
|
*/
|
|
4016
4016
|
"will-change": [{
|
|
4017
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
4017
|
+
"will-change": ["auto", "scroll", "contents", "transform", H, z]
|
|
4018
4018
|
}],
|
|
4019
4019
|
// -----------
|
|
4020
4020
|
// --- SVG ---
|
|
@@ -5327,7 +5327,7 @@ class xn {
|
|
|
5327
5327
|
Mt = new WeakMap();
|
|
5328
5328
|
const gi = Symbol("linkClicked"), yi = "react-aria-pressable-style", vi = "data-react-aria-pressable";
|
|
5329
5329
|
function it(t) {
|
|
5330
|
-
let { onPress: e, onPressChange: n, onPressStart: r, onPressEnd: o, onPressUp: i, onClick: l, isDisabled: s, isPressed: a, preventFocusOnPress: c, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: h, ...f } = Mf(t), [m, g] = G(!1),
|
|
5330
|
+
let { onPress: e, onPressChange: n, onPressStart: r, onPressEnd: o, onPressUp: i, onClick: l, isDisabled: s, isPressed: a, preventFocusOnPress: c, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: h, ...f } = Mf(t), [m, g] = G(!1), y = K({
|
|
5331
5331
|
isPressed: !1,
|
|
5332
5332
|
ignoreEmulatedMouseEvents: !1,
|
|
5333
5333
|
didFirePressStart: !1,
|
|
@@ -5337,21 +5337,21 @@ function it(t) {
|
|
|
5337
5337
|
isOverTarget: !1,
|
|
5338
5338
|
pointerType: null,
|
|
5339
5339
|
disposables: []
|
|
5340
|
-
}), { addGlobalListener:
|
|
5341
|
-
let
|
|
5342
|
-
if (s ||
|
|
5340
|
+
}), { addGlobalListener: x, removeAllGlobalListeners: v } = Qn(), T = X((p, E) => {
|
|
5341
|
+
let L = y.current;
|
|
5342
|
+
if (s || L.didFirePressStart) return !1;
|
|
5343
5343
|
let S = !0;
|
|
5344
|
-
if (
|
|
5344
|
+
if (L.isTriggeringEvent = !0, r) {
|
|
5345
5345
|
let M = new xn("pressstart", E, p);
|
|
5346
5346
|
r(M), S = M.shouldStopPropagation;
|
|
5347
5347
|
}
|
|
5348
|
-
return n && n(!0),
|
|
5348
|
+
return n && n(!0), L.isTriggeringEvent = !1, L.didFirePressStart = !0, g(!0), S;
|
|
5349
5349
|
}, [
|
|
5350
5350
|
s,
|
|
5351
5351
|
r,
|
|
5352
5352
|
n
|
|
5353
|
-
]),
|
|
5354
|
-
let S =
|
|
5353
|
+
]), w = X((p, E, L = !0) => {
|
|
5354
|
+
let S = y.current;
|
|
5355
5355
|
if (!S.didFirePressStart) return !1;
|
|
5356
5356
|
S.didFirePressStart = !1, S.isTriggeringEvent = !0;
|
|
5357
5357
|
let M = !0;
|
|
@@ -5359,7 +5359,7 @@ function it(t) {
|
|
|
5359
5359
|
let $ = new xn("pressend", E, p);
|
|
5360
5360
|
o($), M = $.shouldStopPropagation;
|
|
5361
5361
|
}
|
|
5362
|
-
if (n && n(!1), g(!1), e &&
|
|
5362
|
+
if (n && n(!1), g(!1), e && L && !s) {
|
|
5363
5363
|
let $ = new xn("press", E, p);
|
|
5364
5364
|
e($), M && (M = $.shouldStopPropagation);
|
|
5365
5365
|
}
|
|
@@ -5369,33 +5369,33 @@ function it(t) {
|
|
|
5369
5369
|
o,
|
|
5370
5370
|
n,
|
|
5371
5371
|
e
|
|
5372
|
-
]),
|
|
5373
|
-
let
|
|
5372
|
+
]), D = Ke(w), B = X((p, E) => {
|
|
5373
|
+
let L = y.current;
|
|
5374
5374
|
if (s) return !1;
|
|
5375
5375
|
if (i) {
|
|
5376
|
-
|
|
5376
|
+
L.isTriggeringEvent = !0;
|
|
5377
5377
|
let S = new xn("pressup", E, p);
|
|
5378
|
-
return i(S),
|
|
5378
|
+
return i(S), L.isTriggeringEvent = !1, S.shouldStopPropagation;
|
|
5379
5379
|
}
|
|
5380
5380
|
return !0;
|
|
5381
5381
|
}, [
|
|
5382
5382
|
s,
|
|
5383
5383
|
i
|
|
5384
|
-
]), N = Ke(
|
|
5385
|
-
let E =
|
|
5384
|
+
]), N = Ke(B), I = X((p) => {
|
|
5385
|
+
let E = y.current;
|
|
5386
5386
|
if (E.isPressed && E.target) {
|
|
5387
|
-
E.didFirePressStart && E.pointerType != null &&
|
|
5388
|
-
for (let
|
|
5387
|
+
E.didFirePressStart && E.pointerType != null && w(dt(E.target, p), E.pointerType, !1), E.isPressed = !1, E.isOverTarget = !1, E.activePointerId = null, E.pointerType = null, v(), d || wr(E.target);
|
|
5388
|
+
for (let L of E.disposables) L();
|
|
5389
5389
|
E.disposables = [];
|
|
5390
5390
|
}
|
|
5391
5391
|
}, [
|
|
5392
5392
|
d,
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
]), A = Ke(
|
|
5393
|
+
v,
|
|
5394
|
+
w
|
|
5395
|
+
]), A = Ke(I);
|
|
5396
5396
|
Z(() => {
|
|
5397
|
-
s &&
|
|
5398
|
-
currentTarget:
|
|
5397
|
+
s && y.current.isPressed && A({
|
|
5398
|
+
currentTarget: y.current.target,
|
|
5399
5399
|
shiftKey: !1,
|
|
5400
5400
|
ctrlKey: !1,
|
|
5401
5401
|
metaKey: !1,
|
|
@@ -5405,10 +5405,10 @@ function it(t) {
|
|
|
5405
5405
|
s
|
|
5406
5406
|
]);
|
|
5407
5407
|
let k = X((p) => {
|
|
5408
|
-
u &&
|
|
5408
|
+
u && I(p);
|
|
5409
5409
|
}, [
|
|
5410
5410
|
u,
|
|
5411
|
-
|
|
5411
|
+
I
|
|
5412
5412
|
]), O = X((p) => {
|
|
5413
5413
|
s || l == null || l(p);
|
|
5414
5414
|
}, [
|
|
@@ -5416,49 +5416,49 @@ function it(t) {
|
|
|
5416
5416
|
l
|
|
5417
5417
|
]), W = X((p, E) => {
|
|
5418
5418
|
if (!s && l) {
|
|
5419
|
-
let
|
|
5420
|
-
ds(
|
|
5419
|
+
let L = new MouseEvent("click", p);
|
|
5420
|
+
ds(L, E), l(Co(L));
|
|
5421
5421
|
}
|
|
5422
5422
|
}, [
|
|
5423
5423
|
s,
|
|
5424
5424
|
l
|
|
5425
|
-
]),
|
|
5426
|
-
let p =
|
|
5425
|
+
]), V = Q(() => {
|
|
5426
|
+
let p = y.current, E = {
|
|
5427
5427
|
onKeyDown(S) {
|
|
5428
5428
|
var M;
|
|
5429
5429
|
if (Er(S.nativeEvent, S.currentTarget) && Y(S.currentTarget, _(S))) {
|
|
5430
5430
|
wi(_(S), S.key) && S.preventDefault();
|
|
5431
5431
|
let $ = !0;
|
|
5432
|
-
!p.isPressed && !S.repeat && (p.target = S.currentTarget, p.isPressed = !0, p.pointerType = "keyboard", $ =
|
|
5433
|
-
let P = S.currentTarget,
|
|
5432
|
+
!p.isPressed && !S.repeat && (p.target = S.currentTarget, p.isPressed = !0, p.pointerType = "keyboard", $ = T(S, "keyboard"));
|
|
5433
|
+
let P = S.currentTarget, R = (J) => {
|
|
5434
5434
|
Er(J, P) && !J.repeat && Y(P, _(J)) && p.target && N(dt(p.target, J), "keyboard");
|
|
5435
5435
|
};
|
|
5436
|
-
|
|
5436
|
+
x(se(S.currentTarget), "keyup", un(R, L), !0), $ && S.stopPropagation(), S.metaKey && ht() && ((M = p.metaKeyEvents) == null || M.set(S.key, S.nativeEvent));
|
|
5437
5437
|
} else S.key === "Meta" && (p.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
5438
5438
|
},
|
|
5439
5439
|
onClick(S) {
|
|
5440
5440
|
if (!(S && !Y(S.currentTarget, _(S))) && S && S.button === 0 && !p.isTriggeringEvent && !qe.isOpening) {
|
|
5441
5441
|
let M = !0;
|
|
5442
5442
|
if (s && S.preventDefault(), !p.ignoreEmulatedMouseEvents && !p.isPressed && (p.pointerType === "virtual" || Or(S.nativeEvent))) {
|
|
5443
|
-
let $ =
|
|
5444
|
-
O(S), M = $ && P &&
|
|
5443
|
+
let $ = T(S, "virtual"), P = N(S, "virtual"), R = D(S, "virtual");
|
|
5444
|
+
O(S), M = $ && P && R;
|
|
5445
5445
|
} else if (p.isPressed && p.pointerType !== "keyboard") {
|
|
5446
|
-
let $ = p.pointerType || S.nativeEvent.pointerType || "virtual", P = N(dt(S.currentTarget, S), $),
|
|
5447
|
-
M = P &&
|
|
5446
|
+
let $ = p.pointerType || S.nativeEvent.pointerType || "virtual", P = N(dt(S.currentTarget, S), $), R = D(dt(S.currentTarget, S), $, !0);
|
|
5447
|
+
M = P && R, p.isOverTarget = !1, O(S), A(S);
|
|
5448
5448
|
}
|
|
5449
5449
|
p.ignoreEmulatedMouseEvents = !1, M && S.stopPropagation();
|
|
5450
5450
|
}
|
|
5451
5451
|
}
|
|
5452
|
-
},
|
|
5452
|
+
}, L = (S) => {
|
|
5453
5453
|
var M, $, P;
|
|
5454
5454
|
if (p.isPressed && p.target && Er(S, p.target)) {
|
|
5455
5455
|
wi(_(S), S.key) && S.preventDefault();
|
|
5456
|
-
let
|
|
5457
|
-
|
|
5456
|
+
let R = _(S), J = Y(p.target, R);
|
|
5457
|
+
D(dt(p.target, S), "keyboard", J), J && W(S, p.target), v(), S.key !== "Enter" && ko(p.target) && Y(p.target, R) && !S[gi] && (S[gi] = !0, qe(p.target, S, !1)), p.isPressed = !1, (M = p.metaKeyEvents) == null || M.delete(S.key);
|
|
5458
5458
|
} else if (S.key === "Meta" && (($ = p.metaKeyEvents) != null && $.size)) {
|
|
5459
|
-
let
|
|
5459
|
+
let R = p.metaKeyEvents;
|
|
5460
5460
|
p.metaKeyEvents = void 0;
|
|
5461
|
-
for (let J of
|
|
5461
|
+
for (let J of R.values()) (P = p.target) == null || P.dispatchEvent(new KeyboardEvent("keyup", J));
|
|
5462
5462
|
}
|
|
5463
5463
|
};
|
|
5464
5464
|
if (typeof PointerEvent < "u") {
|
|
@@ -5471,9 +5471,9 @@ function it(t) {
|
|
|
5471
5471
|
p.pointerType = $.pointerType;
|
|
5472
5472
|
let P = !0;
|
|
5473
5473
|
if (!p.isPressed) {
|
|
5474
|
-
p.isPressed = !0, p.isOverTarget = !0, p.activePointerId = $.pointerId, p.target = $.currentTarget, d || mi(p.target), P =
|
|
5475
|
-
let
|
|
5476
|
-
"releasePointerCapture" in
|
|
5474
|
+
p.isPressed = !0, p.isOverTarget = !0, p.activePointerId = $.pointerId, p.target = $.currentTarget, d || mi(p.target), P = T($, p.pointerType);
|
|
5475
|
+
let R = _($);
|
|
5476
|
+
"releasePointerCapture" in R && ("hasPointerCapture" in R ? R.hasPointerCapture($.pointerId) && R.releasePointerCapture($.pointerId) : R.releasePointerCapture($.pointerId)), x(se($.currentTarget), "pointerup", S, !1), x(se($.currentTarget), "pointercancel", M, !1);
|
|
5477
5477
|
}
|
|
5478
5478
|
P && $.stopPropagation();
|
|
5479
5479
|
}, E.onMouseDown = ($) => {
|
|
@@ -5487,17 +5487,17 @@ function it(t) {
|
|
|
5487
5487
|
}, E.onPointerUp = ($) => {
|
|
5488
5488
|
!Y($.currentTarget, _($)) || p.pointerType === "virtual" || $.button === 0 && !p.isPressed && N($, p.pointerType || $.pointerType);
|
|
5489
5489
|
}, E.onPointerEnter = ($) => {
|
|
5490
|
-
$.pointerId === p.activePointerId && p.target && !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0,
|
|
5490
|
+
$.pointerId === p.activePointerId && p.target && !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, T(dt(p.target, $), p.pointerType));
|
|
5491
5491
|
}, E.onPointerLeave = ($) => {
|
|
5492
|
-
$.pointerId === p.activePointerId && p.target && p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1,
|
|
5492
|
+
$.pointerId === p.activePointerId && p.target && p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, D(dt(p.target, $), p.pointerType, !1), k($));
|
|
5493
5493
|
};
|
|
5494
5494
|
let S = ($) => {
|
|
5495
5495
|
if ($.pointerId === p.activePointerId && p.isPressed && $.button === 0 && p.target) {
|
|
5496
5496
|
if (Y(p.target, _($)) && p.pointerType != null) {
|
|
5497
|
-
let P = !1,
|
|
5497
|
+
let P = !1, R = setTimeout(() => {
|
|
5498
5498
|
p.isPressed && p.target instanceof HTMLElement && (P ? A($) : (ve(p.target), p.target.click()));
|
|
5499
5499
|
}, 80);
|
|
5500
|
-
|
|
5500
|
+
x($.currentTarget, "click", () => P = !0, !0), p.disposables.push(() => clearTimeout(R));
|
|
5501
5501
|
} else
|
|
5502
5502
|
A($);
|
|
5503
5503
|
p.isOverTarget = !1;
|
|
@@ -5515,19 +5515,19 @@ function it(t) {
|
|
|
5515
5515
|
$.stopPropagation();
|
|
5516
5516
|
return;
|
|
5517
5517
|
}
|
|
5518
|
-
if (p.isPressed = !0, p.isOverTarget = !0, p.target = $.currentTarget, p.pointerType = Or($.nativeEvent) ? "virtual" : "mouse", po(() =>
|
|
5519
|
-
let
|
|
5520
|
-
|
|
5518
|
+
if (p.isPressed = !0, p.isOverTarget = !0, p.target = $.currentTarget, p.pointerType = Or($.nativeEvent) ? "virtual" : "mouse", po(() => T($, p.pointerType)) && $.stopPropagation(), c) {
|
|
5519
|
+
let R = pi($.target);
|
|
5520
|
+
R && p.disposables.push(R);
|
|
5521
5521
|
}
|
|
5522
|
-
|
|
5522
|
+
x(se($.currentTarget), "mouseup", S, !1);
|
|
5523
5523
|
}, E.onMouseEnter = ($) => {
|
|
5524
5524
|
if (!Y($.currentTarget, _($))) return;
|
|
5525
5525
|
let P = !0;
|
|
5526
|
-
p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !0, P =
|
|
5526
|
+
p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !0, P = T($, p.pointerType)), P && $.stopPropagation();
|
|
5527
5527
|
}, E.onMouseLeave = ($) => {
|
|
5528
5528
|
if (!Y($.currentTarget, _($))) return;
|
|
5529
5529
|
let P = !0;
|
|
5530
|
-
p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !1, P =
|
|
5530
|
+
p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !1, P = D($, p.pointerType, !1), k($)), P && $.stopPropagation();
|
|
5531
5531
|
}, E.onMouseUp = ($) => {
|
|
5532
5532
|
Y($.currentTarget, _($)) && !p.ignoreEmulatedMouseEvents && $.button === 0 && !p.isPressed && N($, p.pointerType || "mouse");
|
|
5533
5533
|
};
|
|
@@ -5544,23 +5544,23 @@ function it(t) {
|
|
|
5544
5544
|
if (!Y($.currentTarget, _($))) return;
|
|
5545
5545
|
let P = Nf($.nativeEvent);
|
|
5546
5546
|
if (!P) return;
|
|
5547
|
-
p.activePointerId = P.identifier, p.ignoreEmulatedMouseEvents = !0, p.isOverTarget = !0, p.isPressed = !0, p.target = $.currentTarget, p.pointerType = "touch", d || mi(p.target),
|
|
5547
|
+
p.activePointerId = P.identifier, p.ignoreEmulatedMouseEvents = !0, p.isOverTarget = !0, p.isPressed = !0, p.target = $.currentTarget, p.pointerType = "touch", d || mi(p.target), T(Qe(p.target, $), p.pointerType) && $.stopPropagation(), x($e($.currentTarget), "scroll", M, !0);
|
|
5548
5548
|
}, E.onTouchMove = ($) => {
|
|
5549
5549
|
if (!Y($.currentTarget, _($))) return;
|
|
5550
5550
|
if (!p.isPressed) {
|
|
5551
5551
|
$.stopPropagation();
|
|
5552
5552
|
return;
|
|
5553
5553
|
}
|
|
5554
|
-
let P = $i($.nativeEvent, p.activePointerId),
|
|
5555
|
-
P && xi(P, $.currentTarget) ? !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0,
|
|
5554
|
+
let P = $i($.nativeEvent, p.activePointerId), R = !0;
|
|
5555
|
+
P && xi(P, $.currentTarget) ? !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, R = T(Qe(p.target, $), p.pointerType)) : p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, R = D(Qe(p.target, $), p.pointerType, !1), k(Qe(p.target, $))), R && $.stopPropagation();
|
|
5556
5556
|
}, E.onTouchEnd = ($) => {
|
|
5557
5557
|
if (!Y($.currentTarget, _($))) return;
|
|
5558
5558
|
if (!p.isPressed) {
|
|
5559
5559
|
$.stopPropagation();
|
|
5560
5560
|
return;
|
|
5561
5561
|
}
|
|
5562
|
-
let P = $i($.nativeEvent, p.activePointerId),
|
|
5563
|
-
P && xi(P, $.currentTarget) && p.pointerType != null ? (N(Qe(p.target, $), p.pointerType),
|
|
5562
|
+
let P = $i($.nativeEvent, p.activePointerId), R = !0;
|
|
5563
|
+
P && xi(P, $.currentTarget) && p.pointerType != null ? (N(Qe(p.target, $), p.pointerType), R = D(Qe(p.target, $), p.pointerType), W($.nativeEvent, p.target)) : p.isOverTarget && p.pointerType != null && (R = D(Qe(p.target, $), p.pointerType, !1)), R && $.stopPropagation(), p.isPressed = !1, p.activePointerId = null, p.isOverTarget = !1, p.ignoreEmulatedMouseEvents = !0, p.target && !d && wr(p.target), v();
|
|
5564
5564
|
}, E.onTouchCancel = ($) => {
|
|
5565
5565
|
Y($.currentTarget, _($)) && ($.stopPropagation(), p.isPressed && A(Qe(p.target, $)));
|
|
5566
5566
|
};
|
|
@@ -5579,13 +5579,13 @@ function it(t) {
|
|
|
5579
5579
|
}
|
|
5580
5580
|
return E;
|
|
5581
5581
|
}, [
|
|
5582
|
-
|
|
5582
|
+
x,
|
|
5583
5583
|
s,
|
|
5584
5584
|
c,
|
|
5585
|
-
|
|
5585
|
+
v,
|
|
5586
5586
|
d,
|
|
5587
5587
|
k,
|
|
5588
|
-
|
|
5588
|
+
T,
|
|
5589
5589
|
O,
|
|
5590
5590
|
W
|
|
5591
5591
|
]);
|
|
@@ -5595,8 +5595,8 @@ function it(t) {
|
|
|
5595
5595
|
if (!p || !p.head || p.getElementById(yi)) return;
|
|
5596
5596
|
const E = p.createElement("style");
|
|
5597
5597
|
E.id = yi;
|
|
5598
|
-
let
|
|
5599
|
-
|
|
5598
|
+
let L = Vl(p);
|
|
5599
|
+
L && (E.nonce = L), E.textContent = `
|
|
5600
5600
|
@layer {
|
|
5601
5601
|
[${vi}] {
|
|
5602
5602
|
touch-action: pan-x pan-y pinch-zoom;
|
|
@@ -5606,7 +5606,7 @@ function it(t) {
|
|
|
5606
5606
|
}, [
|
|
5607
5607
|
h
|
|
5608
5608
|
]), Z(() => {
|
|
5609
|
-
let p =
|
|
5609
|
+
let p = y.current;
|
|
5610
5610
|
return () => {
|
|
5611
5611
|
d || wr(p.target ?? void 0);
|
|
5612
5612
|
for (let E of p.disposables) E();
|
|
@@ -5616,7 +5616,7 @@ function it(t) {
|
|
|
5616
5616
|
d
|
|
5617
5617
|
]), {
|
|
5618
5618
|
isPressed: a || m,
|
|
5619
|
-
pressProps: ne(f,
|
|
5619
|
+
pressProps: ne(f, V, {
|
|
5620
5620
|
[vi]: !0
|
|
5621
5621
|
})
|
|
5622
5622
|
};
|
|
@@ -5703,8 +5703,8 @@ function vs(t, e) {
|
|
|
5703
5703
|
return t.type === "checkbox" || t.type === "radio" ? e === " " : Rf.has(t.type);
|
|
5704
5704
|
}
|
|
5705
5705
|
function Kf(t, e) {
|
|
5706
|
-
let { elementType: n = "button", isDisabled: r, onPress: o, onPressStart: i, onPressEnd: l, onPressUp: s, onPressChange: a, preventFocusOnPress: c, allowFocusWhenDisabled: u, onClick: d, href: h, target: f, rel: m, type: g = "button" } = t,
|
|
5707
|
-
n === "button" ?
|
|
5706
|
+
let { elementType: n = "button", isDisabled: r, onPress: o, onPressStart: i, onPressEnd: l, onPressUp: s, onPressChange: a, preventFocusOnPress: c, allowFocusWhenDisabled: u, onClick: d, href: h, target: f, rel: m, type: g = "button" } = t, y;
|
|
5707
|
+
n === "button" ? y = {
|
|
5708
5708
|
type: g,
|
|
5709
5709
|
disabled: r,
|
|
5710
5710
|
form: t.form,
|
|
@@ -5715,7 +5715,7 @@ function Kf(t, e) {
|
|
|
5715
5715
|
formTarget: t.formTarget,
|
|
5716
5716
|
name: t.name,
|
|
5717
5717
|
value: t.value
|
|
5718
|
-
} :
|
|
5718
|
+
} : y = {
|
|
5719
5719
|
role: "button",
|
|
5720
5720
|
href: n === "a" && !r ? h : void 0,
|
|
5721
5721
|
target: n === "a" ? f : void 0,
|
|
@@ -5724,7 +5724,7 @@ function Kf(t, e) {
|
|
|
5724
5724
|
"aria-disabled": !r || n === "input" ? void 0 : r,
|
|
5725
5725
|
rel: n === "a" ? m : void 0
|
|
5726
5726
|
};
|
|
5727
|
-
let { pressProps:
|
|
5727
|
+
let { pressProps: x, isPressed: v } = it({
|
|
5728
5728
|
onPressStart: i,
|
|
5729
5729
|
onPressEnd: l,
|
|
5730
5730
|
onPressChange: a,
|
|
@@ -5734,14 +5734,14 @@ function Kf(t, e) {
|
|
|
5734
5734
|
isDisabled: r,
|
|
5735
5735
|
preventFocusOnPress: c,
|
|
5736
5736
|
ref: e
|
|
5737
|
-
}), { focusableProps:
|
|
5738
|
-
u && (
|
|
5739
|
-
let
|
|
5737
|
+
}), { focusableProps: T } = fn(t, e);
|
|
5738
|
+
u && (T.tabIndex = r ? -1 : T.tabIndex);
|
|
5739
|
+
let w = ne(T, x, me(t, {
|
|
5740
5740
|
labelable: !0
|
|
5741
5741
|
}));
|
|
5742
5742
|
return {
|
|
5743
|
-
isPressed:
|
|
5744
|
-
buttonProps: ne(
|
|
5743
|
+
isPressed: v,
|
|
5744
|
+
buttonProps: ne(y, w, {
|
|
5745
5745
|
"aria-haspopup": t["aria-haspopup"],
|
|
5746
5746
|
"aria-expanded": t["aria-expanded"],
|
|
5747
5747
|
"aria-controls": t["aria-controls"],
|
|
@@ -5768,15 +5768,15 @@ function To(t) {
|
|
|
5768
5768
|
if (!i.current.isFocusWithin && m === h) {
|
|
5769
5769
|
r && r(d), o && o(!0), i.current.isFocusWithin = !0, c(d);
|
|
5770
5770
|
let g = d.currentTarget;
|
|
5771
|
-
l(f, "focus", (
|
|
5772
|
-
let
|
|
5773
|
-
if (i.current.isFocusWithin && !Y(g,
|
|
5774
|
-
let
|
|
5775
|
-
relatedTarget:
|
|
5771
|
+
l(f, "focus", (y) => {
|
|
5772
|
+
let x = _(y);
|
|
5773
|
+
if (i.current.isFocusWithin && !Y(g, x)) {
|
|
5774
|
+
let v = new f.defaultView.FocusEvent("blur", {
|
|
5775
|
+
relatedTarget: x
|
|
5776
5776
|
});
|
|
5777
|
-
ds(
|
|
5778
|
-
let
|
|
5779
|
-
a(
|
|
5777
|
+
ds(v, g);
|
|
5778
|
+
let T = Co(v);
|
|
5779
|
+
a(T);
|
|
5780
5780
|
}
|
|
5781
5781
|
}, {
|
|
5782
5782
|
capture: !0
|
|
@@ -5858,25 +5858,25 @@ function hn(t) {
|
|
|
5858
5858
|
}).current;
|
|
5859
5859
|
Z(Of, []);
|
|
5860
5860
|
let { addGlobalListener: a, removeAllGlobalListeners: c } = Qn(), { hoverProps: u, triggerHoverEnd: d } = Q(() => {
|
|
5861
|
-
let h = (g,
|
|
5862
|
-
if (s.pointerType =
|
|
5861
|
+
let h = (g, y) => {
|
|
5862
|
+
if (s.pointerType = y, o || y === "touch" || s.isHovered || !Y(g.currentTarget, _(g))) return;
|
|
5863
5863
|
s.isHovered = !0;
|
|
5864
|
-
let
|
|
5865
|
-
s.target =
|
|
5866
|
-
s.isHovered && s.target && !Y(s.target, _(
|
|
5864
|
+
let x = g.currentTarget;
|
|
5865
|
+
s.target = x, a(se(_(g)), "pointerover", (v) => {
|
|
5866
|
+
s.isHovered && s.target && !Y(s.target, _(v)) && f(v, v.pointerType);
|
|
5867
5867
|
}, {
|
|
5868
5868
|
capture: !0
|
|
5869
5869
|
}), e && e({
|
|
5870
5870
|
type: "hoverstart",
|
|
5871
|
-
target:
|
|
5872
|
-
pointerType:
|
|
5871
|
+
target: x,
|
|
5872
|
+
pointerType: y
|
|
5873
5873
|
}), n && n(!0), l(!0);
|
|
5874
|
-
}, f = (g,
|
|
5875
|
-
let
|
|
5876
|
-
s.pointerType = "", s.target = null, !(
|
|
5874
|
+
}, f = (g, y) => {
|
|
5875
|
+
let x = s.target;
|
|
5876
|
+
s.pointerType = "", s.target = null, !(y === "touch" || !s.isHovered || !x) && (s.isHovered = !1, c(), r && r({
|
|
5877
5877
|
type: "hoverend",
|
|
5878
|
-
target:
|
|
5879
|
-
pointerType:
|
|
5878
|
+
target: x,
|
|
5879
|
+
pointerType: y
|
|
5880
5880
|
}), n && n(!1), l(!1));
|
|
5881
5881
|
}, m = {};
|
|
5882
5882
|
return typeof PointerEvent < "u" ? (m.onPointerEnter = (g) => {
|
|
@@ -5931,31 +5931,31 @@ const $s = /* @__PURE__ */ q({}), No = /* @__PURE__ */ of(function(e, n) {
|
|
|
5931
5931
|
...e,
|
|
5932
5932
|
values: h,
|
|
5933
5933
|
defaultClassName: "react-aria-Button"
|
|
5934
|
-
}), m = xe(i.id), g = xe(),
|
|
5935
|
-
o && (
|
|
5936
|
-
let
|
|
5934
|
+
}), m = xe(i.id), g = xe(), y = i["aria-labelledby"];
|
|
5935
|
+
o && (y ? y = `${y} ${g}` : i["aria-label"] && (y = `${m} ${g}`));
|
|
5936
|
+
let x = K(o);
|
|
5937
5937
|
Z(() => {
|
|
5938
|
-
let
|
|
5939
|
-
"aria-labelledby":
|
|
5938
|
+
let T = {
|
|
5939
|
+
"aria-labelledby": y || m
|
|
5940
5940
|
};
|
|
5941
|
-
(!
|
|
5941
|
+
(!x.current && a && o || x.current && a && !o) && hi(T, "assertive"), x.current = o;
|
|
5942
5942
|
}, [
|
|
5943
5943
|
o,
|
|
5944
5944
|
a,
|
|
5945
|
-
|
|
5945
|
+
y,
|
|
5946
5946
|
m
|
|
5947
5947
|
]);
|
|
5948
|
-
let
|
|
5948
|
+
let v = me(e, {
|
|
5949
5949
|
global: !0
|
|
5950
5950
|
});
|
|
5951
|
-
return delete
|
|
5952
|
-
...ne(
|
|
5951
|
+
return delete v.onClick, /* @__PURE__ */ C.createElement(we.button, {
|
|
5952
|
+
...ne(v, f, i, s, u),
|
|
5953
5953
|
// When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).
|
|
5954
5954
|
// We do this by changing the button's type to button.
|
|
5955
5955
|
type: i.type === "submit" && o ? "button" : i.type,
|
|
5956
5956
|
id: m,
|
|
5957
5957
|
ref: n,
|
|
5958
|
-
"aria-labelledby":
|
|
5958
|
+
"aria-labelledby": y,
|
|
5959
5959
|
slot: e.slot || void 0,
|
|
5960
5960
|
"aria-disabled": o ? "true" : i["aria-disabled"],
|
|
5961
5961
|
"data-disabled": e.isDisabled || void 0,
|
|
@@ -6143,47 +6143,47 @@ let zt = /* @__PURE__ */ new WeakMap(), ke = [];
|
|
|
6143
6143
|
function ws(t, e) {
|
|
6144
6144
|
let n = $e(t == null ? void 0 : t[0]), r = e instanceof n.Element ? {
|
|
6145
6145
|
root: e
|
|
6146
|
-
} : e, o = (r == null ? void 0 : r.root) ?? document.body, i = (r == null ? void 0 : r.shouldUseInert) && Yf, l = new Set(t), s = /* @__PURE__ */ new Set(), a = (
|
|
6147
|
-
i &&
|
|
6146
|
+
} : e, o = (r == null ? void 0 : r.root) ?? document.body, i = (r == null ? void 0 : r.shouldUseInert) && Yf, l = new Set(t), s = /* @__PURE__ */ new Set(), a = (y) => i && y instanceof n.HTMLElement ? y.inert : y.getAttribute("aria-hidden") === "true", c = (y, x) => {
|
|
6147
|
+
i && y instanceof n.HTMLElement ? y.inert = x : x ? y.setAttribute("aria-hidden", "true") : (y.removeAttribute("aria-hidden"), y instanceof n.HTMLElement && (y.inert = !1));
|
|
6148
6148
|
}, u = /* @__PURE__ */ new Set();
|
|
6149
6149
|
if (We())
|
|
6150
|
-
for (let
|
|
6151
|
-
let
|
|
6152
|
-
for (;
|
|
6153
|
-
let
|
|
6154
|
-
"shadowRoot" in
|
|
6150
|
+
for (let y of t) {
|
|
6151
|
+
let x = y;
|
|
6152
|
+
for (; x && x !== o; ) {
|
|
6153
|
+
let v = x.getRootNode();
|
|
6154
|
+
"shadowRoot" in v && u.add(v.shadowRoot), x = v.parentNode;
|
|
6155
6155
|
}
|
|
6156
6156
|
}
|
|
6157
|
-
let d = (
|
|
6158
|
-
for (let
|
|
6159
|
-
let
|
|
6160
|
-
if (s.has(
|
|
6161
|
-
for (let
|
|
6162
|
-
if (Y(
|
|
6157
|
+
let d = (y) => {
|
|
6158
|
+
for (let w of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) l.add(w);
|
|
6159
|
+
let x = (w) => {
|
|
6160
|
+
if (s.has(w) || l.has(w) || w.parentElement && s.has(w.parentElement) && w.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
6161
|
+
for (let D of l)
|
|
6162
|
+
if (Y(w, D)) return NodeFilter.FILTER_SKIP;
|
|
6163
6163
|
return NodeFilter.FILTER_ACCEPT;
|
|
6164
|
-
},
|
|
6165
|
-
acceptNode:
|
|
6166
|
-
}),
|
|
6167
|
-
if (
|
|
6168
|
-
let
|
|
6169
|
-
for (;
|
|
6170
|
-
h(
|
|
6171
|
-
}
|
|
6172
|
-
}, h = (
|
|
6173
|
-
let
|
|
6174
|
-
a(
|
|
6164
|
+
}, v = Ll(se(y), y, NodeFilter.SHOW_ELEMENT, {
|
|
6165
|
+
acceptNode: x
|
|
6166
|
+
}), T = x(y);
|
|
6167
|
+
if (T === NodeFilter.FILTER_ACCEPT && h(y), T !== NodeFilter.FILTER_REJECT) {
|
|
6168
|
+
let w = v.nextNode();
|
|
6169
|
+
for (; w != null; )
|
|
6170
|
+
h(w), w = v.nextNode();
|
|
6171
|
+
}
|
|
6172
|
+
}, h = (y) => {
|
|
6173
|
+
let x = zt.get(y) ?? 0;
|
|
6174
|
+
a(y) && x === 0 || (x === 0 && c(y, !0), s.add(y), zt.set(y, x + 1));
|
|
6175
6175
|
};
|
|
6176
6176
|
ke.length && ke[ke.length - 1].disconnect(), d(o);
|
|
6177
|
-
let f = new MutationObserver((
|
|
6178
|
-
for (let
|
|
6179
|
-
if (
|
|
6180
|
-
if (
|
|
6177
|
+
let f = new MutationObserver((y) => {
|
|
6178
|
+
for (let x of y)
|
|
6179
|
+
if (x.type === "childList") {
|
|
6180
|
+
if (x.target.isConnected && ![
|
|
6181
6181
|
...l,
|
|
6182
6182
|
...s
|
|
6183
|
-
].some((
|
|
6184
|
-
(
|
|
6183
|
+
].some((v) => Y(v, x.target))) for (let v of x.addedNodes)
|
|
6184
|
+
(v instanceof HTMLElement || v instanceof SVGElement) && Pi(v) ? l.add(v) : v instanceof Element && d(v);
|
|
6185
6185
|
if (We()) {
|
|
6186
|
-
for (let
|
|
6186
|
+
for (let v of u) if (!v.isConnected) {
|
|
6187
6187
|
f.disconnect();
|
|
6188
6188
|
break;
|
|
6189
6189
|
}
|
|
@@ -6195,27 +6195,27 @@ function ws(t, e) {
|
|
|
6195
6195
|
subtree: !0
|
|
6196
6196
|
});
|
|
6197
6197
|
let m = /* @__PURE__ */ new Set();
|
|
6198
|
-
if (We()) for (let
|
|
6199
|
-
let
|
|
6200
|
-
for (let
|
|
6201
|
-
if (
|
|
6202
|
-
if (
|
|
6198
|
+
if (We()) for (let y of u) {
|
|
6199
|
+
let x = new MutationObserver((v) => {
|
|
6200
|
+
for (let T of v)
|
|
6201
|
+
if (T.type === "childList") {
|
|
6202
|
+
if (T.target.isConnected && ![
|
|
6203
6203
|
...l,
|
|
6204
6204
|
...s
|
|
6205
|
-
].some((
|
|
6206
|
-
(
|
|
6205
|
+
].some((w) => Y(w, T.target))) for (let w of T.addedNodes)
|
|
6206
|
+
(w instanceof HTMLElement || w instanceof SVGElement) && Pi(w) ? l.add(w) : w instanceof Element && d(w);
|
|
6207
6207
|
if (We()) {
|
|
6208
|
-
for (let
|
|
6208
|
+
for (let w of u) if (!w.isConnected) {
|
|
6209
6209
|
f.disconnect();
|
|
6210
6210
|
break;
|
|
6211
6211
|
}
|
|
6212
6212
|
}
|
|
6213
6213
|
}
|
|
6214
6214
|
});
|
|
6215
|
-
|
|
6215
|
+
x.observe(y, {
|
|
6216
6216
|
childList: !0,
|
|
6217
6217
|
subtree: !0
|
|
6218
|
-
}), m.add(
|
|
6218
|
+
}), m.add(x);
|
|
6219
6219
|
}
|
|
6220
6220
|
let g = {
|
|
6221
6221
|
visibleNodes: l,
|
|
@@ -6231,10 +6231,10 @@ function ws(t, e) {
|
|
|
6231
6231
|
}
|
|
6232
6232
|
};
|
|
6233
6233
|
return ke.push(g), () => {
|
|
6234
|
-
if (f.disconnect(), We()) for (let
|
|
6235
|
-
for (let
|
|
6236
|
-
let
|
|
6237
|
-
|
|
6234
|
+
if (f.disconnect(), We()) for (let y of m) y.disconnect();
|
|
6235
|
+
for (let y of s) {
|
|
6236
|
+
let x = zt.get(y);
|
|
6237
|
+
x != null && (x === 1 ? (c(y, !1), zt.delete(y)) : zt.set(y, x - 1));
|
|
6238
6238
|
}
|
|
6239
6239
|
g === ke[ke.length - 1] ? (ke.pop(), ke.length && ke[ke.length - 1].observe()) : ke.splice(ke.indexOf(g), 1);
|
|
6240
6240
|
};
|
|
@@ -6320,14 +6320,14 @@ function Ti(t) {
|
|
|
6320
6320
|
}, En[t];
|
|
6321
6321
|
}
|
|
6322
6322
|
function Sr(t, e, n, r, o, i, l, s, a, c, u) {
|
|
6323
|
-
let { placement: d, crossPlacement: h, axis: f, crossAxis: m, size: g, crossSize:
|
|
6324
|
-
|
|
6325
|
-
const
|
|
6326
|
-
if (
|
|
6327
|
-
let
|
|
6328
|
-
|
|
6329
|
-
} else
|
|
6330
|
-
return
|
|
6323
|
+
let { placement: d, crossPlacement: h, axis: f, crossAxis: m, size: g, crossSize: y } = r, x = {};
|
|
6324
|
+
x[m] = t[m] ?? 0, h === "center" ? x[m] += ((t[y] ?? 0) - (n[y] ?? 0)) / 2 : h !== m && (x[m] += (t[y] ?? 0) - (n[y] ?? 0)), x[m] += i;
|
|
6325
|
+
const v = t[m] - n[y] + a + c, T = t[m] + t[y] - a - c;
|
|
6326
|
+
if (x[m] = Vn(x[m], v, T), d === f) {
|
|
6327
|
+
let w = s ? u[g] : u[Es[g]];
|
|
6328
|
+
x[Gn[f]] = Math.floor(w - t[f] + o);
|
|
6329
|
+
} else x[f] = Math.floor(t[f] + t[g] + o);
|
|
6330
|
+
return x;
|
|
6331
6331
|
}
|
|
6332
6332
|
function th(t, e, n, r, o, i, l, s, a, c, u) {
|
|
6333
6333
|
let d = (t.top != null ? t.top : a[Es.height] - (t.bottom ?? 0) - l) - (a.scroll.top ?? 0), h = c ? n.top : 0, f = {
|
|
@@ -6352,61 +6352,61 @@ function Mi(t, e, n, r, o, i, l, s) {
|
|
|
6352
6352
|
(r[c] ?? 0) - // margins usually for arrows or other decorations
|
|
6353
6353
|
r[Gn[c]] - o) : Math.max(0, t[u] + t[c] + (s ? e[c] : 0) - n[c] - n[u] + (l.scroll[c] ?? 0) - (r[c] ?? 0) - r[Gn[c]] - o);
|
|
6354
6354
|
}
|
|
6355
|
-
function nh(t, e, n, r, o, i, l, s, a, c, u, d, h, f, m, g,
|
|
6356
|
-
let
|
|
6357
|
-
if (l && n[
|
|
6358
|
-
let ae = Ti(`${Gn[
|
|
6359
|
-
Mi(s, c, e, o, i + u, ae, a,
|
|
6355
|
+
function nh(t, e, n, r, o, i, l, s, a, c, u, d, h, f, m, g, y, x) {
|
|
6356
|
+
let v = Ti(t), { size: T, crossAxis: w, crossSize: D, placement: B, crossPlacement: N } = v, I = Sr(e, s, n, v, u, d, c, h, m, g, a), A = u, k = Mi(s, c, e, o, i + u, v, a, y);
|
|
6357
|
+
if (l && n[T] > k) {
|
|
6358
|
+
let ae = Ti(`${Gn[B]} ${N}`), pe = Sr(e, s, n, ae, u, d, c, h, m, g, a);
|
|
6359
|
+
Mi(s, c, e, o, i + u, ae, a, y) > k && (v = ae, I = pe, A = u);
|
|
6360
6360
|
}
|
|
6361
6361
|
let O = "bottom";
|
|
6362
|
-
|
|
6363
|
-
let W = ki(
|
|
6364
|
-
|
|
6365
|
-
let
|
|
6366
|
-
f && f <
|
|
6367
|
-
let p = {}, E = e[
|
|
6368
|
-
const S = m / 2 + g, M = Re[
|
|
6369
|
-
p[
|
|
6370
|
-
let ee =
|
|
6371
|
-
x:
|
|
6372
|
-
y:
|
|
6362
|
+
v.axis === "top" ? v.placement === "top" ? O = "top" : v.placement === "bottom" && (O = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? O = "bottom" : v.crossPlacement === "bottom" && (O = "top"));
|
|
6363
|
+
let W = ki(w, I[w], n[D], s, a, i, c);
|
|
6364
|
+
I[w] += W;
|
|
6365
|
+
let V = th(I, s, c, h, o, i, n.height, O, a, y, x);
|
|
6366
|
+
f && f < V && (V = f), n.height = Math.min(n.height, V), I = Sr(e, s, n, v, A, d, c, h, m, g, a), W = ki(w, I[w], n[D], s, a, i, c), I[w] += W;
|
|
6367
|
+
let p = {}, E = e[w] - I[w] - o[Re[w]], L = E + 0.5 * e[D];
|
|
6368
|
+
const S = m / 2 + g, M = Re[w] === "left" ? (o.left ?? 0) + (o.right ?? 0) : (o.top ?? 0) + (o.bottom ?? 0), $ = n[D] - M - m / 2 - g, P = e[w] + m / 2 - (I[w] + o[Re[w]]), R = e[w] + e[D] - m / 2 - (I[w] + o[Re[w]]), J = Vn(L, P, R);
|
|
6369
|
+
p[w] = Vn(J, S, $), { placement: B, crossPlacement: N } = v, m ? E = p[w] : N === "right" ? E += e[D] : N === "center" && (E += e[D] / 2);
|
|
6370
|
+
let ee = B === "left" || B === "top" ? n[T] : 0, te = {
|
|
6371
|
+
x: B === "top" || B === "bottom" ? E : ee,
|
|
6372
|
+
y: B === "left" || B === "right" ? E : ee
|
|
6373
6373
|
};
|
|
6374
6374
|
return {
|
|
6375
|
-
position:
|
|
6376
|
-
maxHeight:
|
|
6375
|
+
position: I,
|
|
6376
|
+
maxHeight: V,
|
|
6377
6377
|
arrowOffsetLeft: p.left,
|
|
6378
6378
|
arrowOffsetTop: p.top,
|
|
6379
|
-
placement:
|
|
6379
|
+
placement: B,
|
|
6380
6380
|
triggerAnchorPoint: te
|
|
6381
6381
|
};
|
|
6382
6382
|
}
|
|
6383
6383
|
function rh(t) {
|
|
6384
6384
|
let { placement: e, targetNode: n, overlayNode: r, scrollNode: o, padding: i, shouldFlip: l, boundaryElement: s, offset: a, crossOffset: c, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: h = 0 } = t, f = Jf(), m = r instanceof HTMLElement ? oh(r) : document.documentElement, g = m === document.documentElement;
|
|
6385
|
-
const
|
|
6386
|
-
let
|
|
6385
|
+
const y = window.getComputedStyle(m).position;
|
|
6386
|
+
let x = !!y && y !== "static", v = g ? ln(n, !1) : Ni(n, m, !1);
|
|
6387
6387
|
if (!g) {
|
|
6388
6388
|
let { marginTop: k, marginLeft: O } = window.getComputedStyle(n);
|
|
6389
|
-
|
|
6389
|
+
v.top += parseInt(k, 10) || 0, v.left += parseInt(O, 10) || 0;
|
|
6390
6390
|
}
|
|
6391
|
-
let
|
|
6392
|
-
|
|
6393
|
-
let
|
|
6391
|
+
let T = ln(r, !0), w = eh(r);
|
|
6392
|
+
T.width += (w.left ?? 0) + (w.right ?? 0), T.height += (w.top ?? 0) + (w.bottom ?? 0);
|
|
6393
|
+
let D = Qf(o), B = Ci(s, f), N = Ci(m, f), I;
|
|
6394
6394
|
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
|
|
6395
6395
|
let k = rr(m, !1);
|
|
6396
|
-
|
|
6397
|
-
top: -(k.top -
|
|
6398
|
-
left: -(k.left -
|
|
6396
|
+
I = {
|
|
6397
|
+
top: -(k.top - B.top),
|
|
6398
|
+
left: -(k.left - B.left),
|
|
6399
6399
|
width: 0,
|
|
6400
6400
|
height: 0
|
|
6401
6401
|
};
|
|
6402
|
-
} else (s.tagName === "BODY" || s.tagName === "HTML") && g ?
|
|
6402
|
+
} else (s.tagName === "BODY" || s.tagName === "HTML") && g ? I = {
|
|
6403
6403
|
top: 0,
|
|
6404
6404
|
left: 0,
|
|
6405
6405
|
width: 0,
|
|
6406
6406
|
height: 0
|
|
6407
|
-
} :
|
|
6407
|
+
} : I = Ni(s, m, !1);
|
|
6408
6408
|
let A = Y(s, m);
|
|
6409
|
-
return nh(e,
|
|
6409
|
+
return nh(e, v, T, D, w, i, l, B, N, I, a, c, x, u, d, h, A, f);
|
|
6410
6410
|
}
|
|
6411
6411
|
function rr(t, e) {
|
|
6412
6412
|
let { top: n, left: r, width: o, height: i } = t.getBoundingClientRect();
|
|
@@ -6468,7 +6468,7 @@ function ih(t) {
|
|
|
6468
6468
|
}
|
|
6469
6469
|
let be = typeof document < "u" ? window.visualViewport : null;
|
|
6470
6470
|
function lh(t) {
|
|
6471
|
-
let { direction: e } = $t(), { arrowSize: n, targetRef: r, overlayRef: o, arrowRef: i, scrollRef: l = o, placement: s = "bottom", containerPadding: a = 12, shouldFlip: c = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: h = 0, shouldUpdatePosition: f = !0, isOpen: m = !0, onClose: g, maxHeight:
|
|
6471
|
+
let { direction: e } = $t(), { arrowSize: n, targetRef: r, overlayRef: o, arrowRef: i, scrollRef: l = o, placement: s = "bottom", containerPadding: a = 12, shouldFlip: c = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: h = 0, shouldUpdatePosition: f = !0, isOpen: m = !0, onClose: g, maxHeight: y, arrowBoundaryOffset: x = 0 } = t, [v, T] = G(null), w = [
|
|
6472
6472
|
f,
|
|
6473
6473
|
s,
|
|
6474
6474
|
o.current,
|
|
@@ -6482,28 +6482,28 @@ function lh(t) {
|
|
|
6482
6482
|
h,
|
|
6483
6483
|
m,
|
|
6484
6484
|
e,
|
|
6485
|
-
|
|
6486
|
-
|
|
6485
|
+
y,
|
|
6486
|
+
x,
|
|
6487
6487
|
n
|
|
6488
|
-
],
|
|
6488
|
+
], D = K(be == null ? void 0 : be.scale);
|
|
6489
6489
|
Z(() => {
|
|
6490
|
-
m && (
|
|
6490
|
+
m && (D.current = be == null ? void 0 : be.scale);
|
|
6491
6491
|
}, [
|
|
6492
6492
|
m
|
|
6493
6493
|
]);
|
|
6494
|
-
let
|
|
6495
|
-
var
|
|
6496
|
-
if (f === !1 || !m || !o.current || !r.current || !u || (be == null ? void 0 : be.scale) !==
|
|
6494
|
+
let B = X(() => {
|
|
6495
|
+
var V, p;
|
|
6496
|
+
if (f === !1 || !m || !o.current || !r.current || !u || (be == null ? void 0 : be.scale) !== D.current) return;
|
|
6497
6497
|
let A = null;
|
|
6498
6498
|
if (l.current && Lt(l.current)) {
|
|
6499
|
-
let E = (
|
|
6499
|
+
let E = (V = ue()) == null ? void 0 : V.getBoundingClientRect(), L = l.current.getBoundingClientRect();
|
|
6500
6500
|
A = {
|
|
6501
6501
|
type: "top",
|
|
6502
|
-
offset: ((E == null ? void 0 : E.top) ?? 0) -
|
|
6503
|
-
}, A.offset >
|
|
6502
|
+
offset: ((E == null ? void 0 : E.top) ?? 0) - L.top
|
|
6503
|
+
}, A.offset > L.height / 2 && (A.type = "bottom", A.offset = ((E == null ? void 0 : E.bottom) ?? 0) - L.bottom);
|
|
6504
6504
|
}
|
|
6505
6505
|
let k = o.current;
|
|
6506
|
-
!
|
|
6506
|
+
!y && o.current && (k.style.top = "0px", k.style.bottom = "", k.style.maxHeight = (((p = window.visualViewport) == null ? void 0 : p.height) ?? window.innerHeight) + "px");
|
|
6507
6507
|
let O = rh({
|
|
6508
6508
|
placement: ah(s, e),
|
|
6509
6509
|
overlayNode: o.current,
|
|
@@ -6514,32 +6514,32 @@ function lh(t) {
|
|
|
6514
6514
|
boundaryElement: u,
|
|
6515
6515
|
offset: d,
|
|
6516
6516
|
crossOffset: h,
|
|
6517
|
-
maxHeight:
|
|
6517
|
+
maxHeight: y,
|
|
6518
6518
|
arrowSize: n ?? (i != null && i.current ? rr(i.current, !0).width : 0),
|
|
6519
|
-
arrowBoundaryOffset:
|
|
6519
|
+
arrowBoundaryOffset: x
|
|
6520
6520
|
});
|
|
6521
6521
|
if (!O.position) return;
|
|
6522
6522
|
k.style.top = "", k.style.bottom = "", k.style.left = "", k.style.right = "", Object.keys(O.position).forEach((E) => k.style[E] = O.position[E] + "px"), k.style.maxHeight = O.maxHeight != null ? O.maxHeight + "px" : "";
|
|
6523
6523
|
let W = ue();
|
|
6524
6524
|
if (A && W && l.current) {
|
|
6525
|
-
let E = W.getBoundingClientRect(),
|
|
6525
|
+
let E = W.getBoundingClientRect(), L = l.current.getBoundingClientRect(), S = E[A.type] - L[A.type];
|
|
6526
6526
|
l.current.scrollTop += S - A.offset;
|
|
6527
6527
|
}
|
|
6528
|
-
|
|
6529
|
-
},
|
|
6530
|
-
le(
|
|
6528
|
+
T(O);
|
|
6529
|
+
}, w);
|
|
6530
|
+
le(B, w), sh(B), On({
|
|
6531
6531
|
ref: o,
|
|
6532
|
-
onResize:
|
|
6532
|
+
onResize: B
|
|
6533
6533
|
}), On({
|
|
6534
6534
|
ref: r,
|
|
6535
|
-
onResize:
|
|
6535
|
+
onResize: B
|
|
6536
6536
|
});
|
|
6537
6537
|
let N = K(!1);
|
|
6538
6538
|
le(() => {
|
|
6539
6539
|
let A, k = () => {
|
|
6540
6540
|
N.current = !0, clearTimeout(A), A = setTimeout(() => {
|
|
6541
6541
|
N.current = !1;
|
|
6542
|
-
}, 500),
|
|
6542
|
+
}, 500), B();
|
|
6543
6543
|
}, O = () => {
|
|
6544
6544
|
N.current && k();
|
|
6545
6545
|
};
|
|
@@ -6547,9 +6547,9 @@ function lh(t) {
|
|
|
6547
6547
|
be == null || be.removeEventListener("resize", k), be == null || be.removeEventListener("scroll", O);
|
|
6548
6548
|
};
|
|
6549
6549
|
}, [
|
|
6550
|
-
|
|
6550
|
+
B
|
|
6551
6551
|
]);
|
|
6552
|
-
let
|
|
6552
|
+
let I = X(() => {
|
|
6553
6553
|
N.current || g == null || g();
|
|
6554
6554
|
}, [
|
|
6555
6555
|
g,
|
|
@@ -6558,29 +6558,29 @@ function lh(t) {
|
|
|
6558
6558
|
return ih({
|
|
6559
6559
|
triggerRef: r,
|
|
6560
6560
|
isOpen: m,
|
|
6561
|
-
onClose: g &&
|
|
6561
|
+
onClose: g && I
|
|
6562
6562
|
}), {
|
|
6563
6563
|
overlayProps: {
|
|
6564
6564
|
style: {
|
|
6565
|
-
position:
|
|
6566
|
-
top:
|
|
6567
|
-
left:
|
|
6565
|
+
position: v ? "absolute" : "fixed",
|
|
6566
|
+
top: v ? void 0 : 0,
|
|
6567
|
+
left: v ? void 0 : 0,
|
|
6568
6568
|
zIndex: 1e5,
|
|
6569
|
-
...
|
|
6570
|
-
maxHeight: (
|
|
6569
|
+
...v == null ? void 0 : v.position,
|
|
6570
|
+
maxHeight: (v == null ? void 0 : v.maxHeight) ?? "100vh"
|
|
6571
6571
|
}
|
|
6572
6572
|
},
|
|
6573
|
-
placement: (
|
|
6574
|
-
triggerAnchorPoint: (
|
|
6573
|
+
placement: (v == null ? void 0 : v.placement) ?? null,
|
|
6574
|
+
triggerAnchorPoint: (v == null ? void 0 : v.triggerAnchorPoint) ?? null,
|
|
6575
6575
|
arrowProps: {
|
|
6576
6576
|
"aria-hidden": "true",
|
|
6577
6577
|
role: "presentation",
|
|
6578
6578
|
style: {
|
|
6579
|
-
left:
|
|
6580
|
-
top:
|
|
6579
|
+
left: v == null ? void 0 : v.arrowOffsetLeft,
|
|
6580
|
+
top: v == null ? void 0 : v.arrowOffsetTop
|
|
6581
6581
|
}
|
|
6582
6582
|
},
|
|
6583
|
-
updatePosition:
|
|
6583
|
+
updatePosition: B
|
|
6584
6584
|
};
|
|
6585
6585
|
}
|
|
6586
6586
|
function sh(t) {
|
|
@@ -6618,11 +6618,11 @@ function Ps(t) {
|
|
|
6618
6618
|
n
|
|
6619
6619
|
]), le(() => {
|
|
6620
6620
|
var g;
|
|
6621
|
-
let h = (g = i.current) == null ? void 0 : g.nextSibling, f = [], m = (
|
|
6621
|
+
let h = (g = i.current) == null ? void 0 : g.nextSibling, f = [], m = (y) => y.stopPropagation();
|
|
6622
6622
|
for (; h && h !== l.current; )
|
|
6623
6623
|
f.push(h), h.addEventListener(Xr, m), h = h.nextSibling;
|
|
6624
6624
|
return s.current = f, () => {
|
|
6625
|
-
for (let
|
|
6625
|
+
for (let y of f) y.removeEventListener(Xr, m);
|
|
6626
6626
|
};
|
|
6627
6627
|
}, [
|
|
6628
6628
|
e
|
|
@@ -7658,7 +7658,7 @@ function Rh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
|
|
|
7658
7658
|
// If this is a submenu/subdialog, use the root popover's container
|
|
7659
7659
|
// to detect outside interaction and add aria-hidden.
|
|
7660
7660
|
groupRef: a ? s : l
|
|
7661
|
-
}, t), m = o.popoverRef, g = vo(m, !!h) || o.isEntering || !1,
|
|
7661
|
+
}, t), m = o.popoverRef, g = vo(m, !!h) || o.isEntering || !1, y = Ae({
|
|
7662
7662
|
...o,
|
|
7663
7663
|
defaultClassName: "react-aria-Popover",
|
|
7664
7664
|
values: {
|
|
@@ -7667,56 +7667,56 @@ function Rh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
|
|
|
7667
7667
|
isEntering: g,
|
|
7668
7668
|
isExiting: e
|
|
7669
7669
|
}
|
|
7670
|
-
}),
|
|
7670
|
+
}), x = !o.isNonModal || o.trigger === "SubmenuTrigger", [v, T] = G(!1);
|
|
7671
7671
|
le(() => {
|
|
7672
|
-
m.current && x
|
|
7672
|
+
m.current && T(x && !m.current.querySelector("[role=dialog]"));
|
|
7673
7673
|
}, [
|
|
7674
7674
|
m,
|
|
7675
|
-
|
|
7675
|
+
x
|
|
7676
7676
|
]), Z(() => {
|
|
7677
|
-
|
|
7677
|
+
v && (o.trigger !== "SubmenuTrigger" || rn() !== "pointer") && m.current && !Lt(m.current) && ot(m.current);
|
|
7678
7678
|
}, [
|
|
7679
|
-
|
|
7679
|
+
v,
|
|
7680
7680
|
m,
|
|
7681
7681
|
o.trigger
|
|
7682
7682
|
]);
|
|
7683
|
-
let
|
|
7684
|
-
let W =
|
|
7685
|
-
if (r) for (let
|
|
7683
|
+
let w = Q(() => {
|
|
7684
|
+
let W = y.children;
|
|
7685
|
+
if (r) for (let V of r) W = /* @__PURE__ */ C.createElement(V.Provider, {
|
|
7686
7686
|
value: null
|
|
7687
7687
|
}, W);
|
|
7688
7688
|
return W;
|
|
7689
7689
|
}, [
|
|
7690
|
-
|
|
7690
|
+
y.children,
|
|
7691
7691
|
r
|
|
7692
|
-
]), [
|
|
7693
|
-
o.triggerRef.current &&
|
|
7692
|
+
]), [D, B] = G(null), N = X(() => {
|
|
7693
|
+
o.triggerRef.current && B(o.triggerRef.current.getBoundingClientRect().width + "px");
|
|
7694
7694
|
}, [
|
|
7695
7695
|
o.triggerRef
|
|
7696
7696
|
]);
|
|
7697
7697
|
le(N, [
|
|
7698
7698
|
N
|
|
7699
7699
|
]), On({
|
|
7700
|
-
ref: (k =
|
|
7700
|
+
ref: (k = y.style) != null && k["--trigger-width"] ? void 0 : o.triggerRef,
|
|
7701
7701
|
onResize: N
|
|
7702
7702
|
});
|
|
7703
|
-
let
|
|
7703
|
+
let I = {
|
|
7704
7704
|
...c.style,
|
|
7705
7705
|
"--trigger-anchor-point": f ? `${f.x}px ${f.y}px` : void 0,
|
|
7706
|
-
...
|
|
7707
|
-
"--trigger-width": ((O =
|
|
7706
|
+
...y.style,
|
|
7707
|
+
"--trigger-width": ((O = y.style) == null ? void 0 : O["--trigger-width"]) || D
|
|
7708
7708
|
}, A = /* @__PURE__ */ C.createElement(we.div, {
|
|
7709
7709
|
...ne(me(o, {
|
|
7710
7710
|
global: !0
|
|
7711
7711
|
}), c),
|
|
7712
|
-
...
|
|
7713
|
-
role:
|
|
7714
|
-
tabIndex:
|
|
7712
|
+
...y,
|
|
7713
|
+
role: v ? "dialog" : void 0,
|
|
7714
|
+
tabIndex: v ? -1 : void 0,
|
|
7715
7715
|
"aria-label": o["aria-label"],
|
|
7716
7716
|
"aria-labelledby": o["aria-labelledby"],
|
|
7717
7717
|
ref: m,
|
|
7718
7718
|
slot: o.slot || void 0,
|
|
7719
|
-
style:
|
|
7719
|
+
style: I,
|
|
7720
7720
|
dir: o.dir,
|
|
7721
7721
|
"data-trigger": o.trigger,
|
|
7722
7722
|
"data-placement": h,
|
|
@@ -7730,17 +7730,17 @@ function Rh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
|
|
|
7730
7730
|
placement: h,
|
|
7731
7731
|
ref: i
|
|
7732
7732
|
}
|
|
7733
|
-
},
|
|
7733
|
+
}, w), /* @__PURE__ */ C.createElement(Qr, {
|
|
7734
7734
|
onDismiss: t.close
|
|
7735
7735
|
}));
|
|
7736
7736
|
return a ? /* @__PURE__ */ C.createElement(eo, {
|
|
7737
7737
|
...o,
|
|
7738
|
-
shouldContainFocus:
|
|
7738
|
+
shouldContainFocus: v,
|
|
7739
7739
|
isExiting: e,
|
|
7740
7740
|
portalContainer: n ?? (s == null ? void 0 : s.current) ?? void 0
|
|
7741
7741
|
}, A) : /* @__PURE__ */ C.createElement(eo, {
|
|
7742
7742
|
...o,
|
|
7743
|
-
shouldContainFocus:
|
|
7743
|
+
shouldContainFocus: v,
|
|
7744
7744
|
isExiting: e,
|
|
7745
7745
|
portalContainer: n
|
|
7746
7746
|
}, !o.isNonModal && t.isOpen && /* @__PURE__ */ C.createElement("div", {
|
|
@@ -8186,16 +8186,16 @@ function Fh() {
|
|
|
8186
8186
|
}
|
|
8187
8187
|
var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, o = t.useEffect, i = t.useLayoutEffect, l = t.useDebugValue;
|
|
8188
8188
|
function s(d, h) {
|
|
8189
|
-
var f = h(), m = r({ inst: { value: f, getSnapshot: h } }), g = m[0].inst,
|
|
8189
|
+
var f = h(), m = r({ inst: { value: f, getSnapshot: h } }), g = m[0].inst, y = m[1];
|
|
8190
8190
|
return i(
|
|
8191
8191
|
function() {
|
|
8192
|
-
g.value = f, g.getSnapshot = h, a(g) &&
|
|
8192
|
+
g.value = f, g.getSnapshot = h, a(g) && y({ inst: g });
|
|
8193
8193
|
},
|
|
8194
8194
|
[d, f, h]
|
|
8195
8195
|
), o(
|
|
8196
8196
|
function() {
|
|
8197
|
-
return a(g) &&
|
|
8198
|
-
a(g) &&
|
|
8197
|
+
return a(g) && y({ inst: g }), d(function() {
|
|
8198
|
+
a(g) && y({ inst: g });
|
|
8199
8199
|
});
|
|
8200
8200
|
},
|
|
8201
8201
|
[d]
|
|
@@ -8239,24 +8239,24 @@ function _h() {
|
|
|
8239
8239
|
));
|
|
8240
8240
|
var g = m();
|
|
8241
8241
|
if (!d) {
|
|
8242
|
-
var
|
|
8243
|
-
i(g,
|
|
8242
|
+
var y = m();
|
|
8243
|
+
i(g, y) || (console.error(
|
|
8244
8244
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
8245
8245
|
), d = !0);
|
|
8246
8246
|
}
|
|
8247
|
-
|
|
8247
|
+
y = l({
|
|
8248
8248
|
inst: { value: g, getSnapshot: m }
|
|
8249
8249
|
});
|
|
8250
|
-
var
|
|
8250
|
+
var x = y[0].inst, v = y[1];
|
|
8251
8251
|
return a(
|
|
8252
8252
|
function() {
|
|
8253
|
-
|
|
8253
|
+
x.value = g, x.getSnapshot = m, n(x) && v({ inst: x });
|
|
8254
8254
|
},
|
|
8255
8255
|
[f, g, m]
|
|
8256
8256
|
), s(
|
|
8257
8257
|
function() {
|
|
8258
|
-
return n(
|
|
8259
|
-
n(
|
|
8258
|
+
return n(x) && v({ inst: x }), f(function() {
|
|
8259
|
+
n(x) && v({ inst: x });
|
|
8260
8260
|
});
|
|
8261
8261
|
},
|
|
8262
8262
|
[f]
|
|
@@ -8892,8 +8892,8 @@ function gp(t) {
|
|
|
8892
8892
|
return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
|
|
8893
8893
|
}
|
|
8894
8894
|
function yp(t) {
|
|
8895
|
-
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: c = e.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: h = !1, scrollRef: f = r, linkBehavior: m = "action" } = t, { direction: g } = $t(),
|
|
8896
|
-
var
|
|
8895
|
+
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: c = e.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: h = !1, scrollRef: f = r, linkBehavior: m = "action" } = t, { direction: g } = $t(), y = cn(), x = (p) => {
|
|
8896
|
+
var L, S, M, $, P, R, J, ee, te, ae, pe, ie, Se, ze;
|
|
8897
8897
|
if (p.altKey && p.key === "Tab" && p.preventDefault(), !r.current || !Y(r.current, _(p))) return;
|
|
8898
8898
|
const E = (j, Ne) => {
|
|
8899
8899
|
if (j != null) {
|
|
@@ -8902,7 +8902,7 @@ function yp(t) {
|
|
|
8902
8902
|
e.setFocusedKey(j, Ne);
|
|
8903
8903
|
});
|
|
8904
8904
|
let Pe = Rn(r, j), ct = e.getItemProps(j);
|
|
8905
|
-
Pe &&
|
|
8905
|
+
Pe && y.open(Pe, p, ct.href, ct.routerOptions);
|
|
8906
8906
|
return;
|
|
8907
8907
|
}
|
|
8908
8908
|
if (e.setFocusedKey(j, Ne), e.isLink(j) && m === "override") return;
|
|
@@ -8912,14 +8912,14 @@ function yp(t) {
|
|
|
8912
8912
|
switch (p.key) {
|
|
8913
8913
|
case "ArrowDown":
|
|
8914
8914
|
if (n.getKeyBelow) {
|
|
8915
|
-
let j = e.focusedKey != null ? (
|
|
8915
|
+
let j = e.focusedKey != null ? (L = n.getKeyBelow) == null ? void 0 : L.call(n, e.focusedKey) : (S = n.getFirstKey) == null ? void 0 : S.call(n);
|
|
8916
8916
|
j == null && i && (j = (M = n.getFirstKey) == null ? void 0 : M.call(n, e.focusedKey)), j != null && (p.preventDefault(), E(j));
|
|
8917
8917
|
}
|
|
8918
8918
|
break;
|
|
8919
8919
|
case "ArrowUp":
|
|
8920
8920
|
if (n.getKeyAbove) {
|
|
8921
8921
|
let j = e.focusedKey != null ? ($ = n.getKeyAbove) == null ? void 0 : $.call(n, e.focusedKey) : (P = n.getLastKey) == null ? void 0 : P.call(n);
|
|
8922
|
-
j == null && i && (j = (
|
|
8922
|
+
j == null && i && (j = (R = n.getLastKey) == null ? void 0 : R.call(n, e.focusedKey)), j != null && (p.preventDefault(), E(j));
|
|
8923
8923
|
}
|
|
8924
8924
|
break;
|
|
8925
8925
|
case "ArrowLeft":
|
|
@@ -8984,19 +8984,19 @@ function yp(t) {
|
|
|
8984
8984
|
break;
|
|
8985
8985
|
}
|
|
8986
8986
|
}
|
|
8987
|
-
},
|
|
8987
|
+
}, v = K({
|
|
8988
8988
|
top: 0,
|
|
8989
8989
|
left: 0
|
|
8990
8990
|
});
|
|
8991
8991
|
Gt(f, "scroll", () => {
|
|
8992
8992
|
var p, E;
|
|
8993
|
-
|
|
8993
|
+
v.current = {
|
|
8994
8994
|
top: ((p = f.current) == null ? void 0 : p.scrollTop) ?? 0,
|
|
8995
8995
|
left: ((E = f.current) == null ? void 0 : E.scrollLeft) ?? 0
|
|
8996
8996
|
};
|
|
8997
8997
|
});
|
|
8998
|
-
let
|
|
8999
|
-
var E,
|
|
8998
|
+
let T = (p) => {
|
|
8999
|
+
var E, L;
|
|
9000
9000
|
if (e.isFocused) {
|
|
9001
9001
|
Y(p.currentTarget, _(p)) || e.setFocused(!1);
|
|
9002
9002
|
return;
|
|
@@ -9006,8 +9006,8 @@ function yp(t) {
|
|
|
9006
9006
|
let S = ($) => {
|
|
9007
9007
|
$ != null && (e.setFocusedKey($), c && !e.isSelected($) && e.replaceSelection($));
|
|
9008
9008
|
}, M = p.relatedTarget;
|
|
9009
|
-
M && p.currentTarget.compareDocumentPosition(M) & Node.DOCUMENT_POSITION_FOLLOWING ? S(e.lastSelectedKey ?? ((E = n.getLastKey) == null ? void 0 : E.call(n))) : S(e.firstSelectedKey ?? ((
|
|
9010
|
-
} else f.current && (f.current.scrollTop =
|
|
9009
|
+
M && p.currentTarget.compareDocumentPosition(M) & Node.DOCUMENT_POSITION_FOLLOWING ? S(e.lastSelectedKey ?? ((E = n.getLastKey) == null ? void 0 : E.call(n))) : S(e.firstSelectedKey ?? ((L = n.getFirstKey) == null ? void 0 : L.call(n)));
|
|
9010
|
+
} else f.current && (f.current.scrollTop = v.current.top, f.current.scrollLeft = v.current.left);
|
|
9011
9011
|
if (e.focusedKey != null && f.current) {
|
|
9012
9012
|
let S = Rn(r, e.focusedKey);
|
|
9013
9013
|
S instanceof HTMLElement && (!Lt(S) && !d && ve(S), rn() === "keyboard" && ni(S, {
|
|
@@ -9015,51 +9015,51 @@ function yp(t) {
|
|
|
9015
9015
|
}));
|
|
9016
9016
|
}
|
|
9017
9017
|
}
|
|
9018
|
-
},
|
|
9018
|
+
}, w = (p) => {
|
|
9019
9019
|
Y(p.currentTarget, p.relatedTarget) || e.setFocused(!1);
|
|
9020
|
-
},
|
|
9020
|
+
}, D = K(!1);
|
|
9021
9021
|
Gt(r, Jc, d ? (p) => {
|
|
9022
9022
|
let { detail: E } = p;
|
|
9023
|
-
p.stopPropagation(), e.setFocused(!0), (E == null ? void 0 : E.focusStrategy) === "first" && (
|
|
9023
|
+
p.stopPropagation(), e.setFocused(!0), (E == null ? void 0 : E.focusStrategy) === "first" && (D.current = !0);
|
|
9024
9024
|
} : void 0), ti(() => {
|
|
9025
9025
|
var p;
|
|
9026
|
-
if (
|
|
9026
|
+
if (D.current) {
|
|
9027
9027
|
let E = ((p = n.getFirstKey) == null ? void 0 : p.call(n)) ?? null;
|
|
9028
9028
|
if (E == null) {
|
|
9029
|
-
let
|
|
9030
|
-
Pa(r.current), Ca(
|
|
9029
|
+
let L = ue();
|
|
9030
|
+
Pa(r.current), Ca(L, null), e.collection.size > 0 && (D.current = !1);
|
|
9031
9031
|
} else
|
|
9032
|
-
e.setFocusedKey(E),
|
|
9032
|
+
e.setFocusedKey(E), D.current = !1;
|
|
9033
9033
|
}
|
|
9034
9034
|
}, [
|
|
9035
9035
|
e.collection
|
|
9036
9036
|
]), ti(() => {
|
|
9037
|
-
e.collection.size > 0 && (
|
|
9037
|
+
e.collection.size > 0 && (D.current = !1);
|
|
9038
9038
|
}, [
|
|
9039
9039
|
e.focusedKey
|
|
9040
9040
|
]), Gt(r, Zc, d ? (p) => {
|
|
9041
9041
|
var E;
|
|
9042
9042
|
p.stopPropagation(), e.setFocused(!1), (E = p.detail) != null && E.clearFocusKey && e.setFocusedKey(null);
|
|
9043
9043
|
} : void 0);
|
|
9044
|
-
const
|
|
9044
|
+
const B = K(o), N = K(!1);
|
|
9045
9045
|
Z(() => {
|
|
9046
9046
|
var p, E;
|
|
9047
|
-
if (
|
|
9048
|
-
let
|
|
9049
|
-
o === "first" && (
|
|
9047
|
+
if (B.current) {
|
|
9048
|
+
let L = null;
|
|
9049
|
+
o === "first" && (L = ((p = n.getFirstKey) == null ? void 0 : p.call(n)) ?? null), o === "last" && (L = ((E = n.getLastKey) == null ? void 0 : E.call(n)) ?? null);
|
|
9050
9050
|
let S = e.selectedKeys;
|
|
9051
9051
|
if (S.size) {
|
|
9052
9052
|
for (let M of S) if (e.canSelectItem(M)) {
|
|
9053
|
-
|
|
9053
|
+
L = M;
|
|
9054
9054
|
break;
|
|
9055
9055
|
}
|
|
9056
9056
|
}
|
|
9057
|
-
e.setFocused(!0), e.setFocusedKey(
|
|
9057
|
+
e.setFocused(!0), e.setFocusedKey(L), L == null && !d && r.current && ot(r.current), e.collection.size > 0 && (B.current = !1, N.current = !0);
|
|
9058
9058
|
}
|
|
9059
9059
|
});
|
|
9060
|
-
let
|
|
9060
|
+
let I = K(e.focusedKey), A = K(null);
|
|
9061
9061
|
Z(() => {
|
|
9062
|
-
if (e.isFocused && e.focusedKey != null && (e.focusedKey !==
|
|
9062
|
+
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== I.current || N.current) && f.current && r.current) {
|
|
9063
9063
|
let p = rn(), E = Rn(r, e.focusedKey);
|
|
9064
9064
|
if (!(E instanceof HTMLElement))
|
|
9065
9065
|
return;
|
|
@@ -9069,16 +9069,16 @@ function yp(t) {
|
|
|
9069
9069
|
}));
|
|
9070
9070
|
}));
|
|
9071
9071
|
}
|
|
9072
|
-
!d && e.isFocused && e.focusedKey == null &&
|
|
9072
|
+
!d && e.isFocused && e.focusedKey == null && I.current != null && r.current && ot(r.current), I.current = e.focusedKey, N.current = !1;
|
|
9073
9073
|
}), Z(() => () => {
|
|
9074
9074
|
A.current && cancelAnimationFrame(A.current);
|
|
9075
9075
|
}, []), Gt(r, "react-aria-focus-scope-restore", (p) => {
|
|
9076
9076
|
p.preventDefault(), e.setFocused(!0);
|
|
9077
9077
|
});
|
|
9078
9078
|
let k = {
|
|
9079
|
-
onKeyDown:
|
|
9080
|
-
onFocus:
|
|
9081
|
-
onBlur:
|
|
9079
|
+
onKeyDown: x,
|
|
9080
|
+
onFocus: T,
|
|
9081
|
+
onBlur: w,
|
|
9082
9082
|
onMouseDown(p) {
|
|
9083
9083
|
f.current === _(p) && p.preventDefault();
|
|
9084
9084
|
}
|
|
@@ -9089,11 +9089,11 @@ function yp(t) {
|
|
|
9089
9089
|
u || (k = ne(O, k));
|
|
9090
9090
|
let W;
|
|
9091
9091
|
d || (W = e.focusedKey == null ? 0 : -1);
|
|
9092
|
-
let
|
|
9092
|
+
let V = hp(e.collection);
|
|
9093
9093
|
return {
|
|
9094
9094
|
collectionProps: ne(k, {
|
|
9095
9095
|
tabIndex: W,
|
|
9096
|
-
"data-collection":
|
|
9096
|
+
"data-collection": V
|
|
9097
9097
|
})
|
|
9098
9098
|
};
|
|
9099
9099
|
}
|
|
@@ -9326,8 +9326,8 @@ function Ep(t) {
|
|
|
9326
9326
|
if (n.selectionMode === "none") return;
|
|
9327
9327
|
if (n.isLink(r)) {
|
|
9328
9328
|
if (d === "selection" && o.current) {
|
|
9329
|
-
let
|
|
9330
|
-
h.open(o.current, P,
|
|
9329
|
+
let R = n.getItemProps(r);
|
|
9330
|
+
h.open(o.current, P, R.href, R.routerOptions), n.setSelectedKeys(n.selectedKeys);
|
|
9331
9331
|
return;
|
|
9332
9332
|
} else if (d === "override" || d === "none") return;
|
|
9333
9333
|
}
|
|
@@ -9359,30 +9359,30 @@ function Ep(t) {
|
|
|
9359
9359
|
a,
|
|
9360
9360
|
r
|
|
9361
9361
|
]);
|
|
9362
|
-
let g = n.isLink(r) && d === "override",
|
|
9363
|
-
var
|
|
9364
|
-
c && (c(), (
|
|
9362
|
+
let g = n.isLink(r) && d === "override", y = c && t.UNSTABLE_itemBehavior === "action", x = n.isLink(r) && d !== "selection" && d !== "none", v = !a && n.canSelectItem(r) && !g && !y, T = (c || x) && !a, w = T && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), D = T && v && n.selectionBehavior === "replace", B = w || D, N = K(null), I = B && v, A = K(!1), k = K(!1), O = n.getItemProps(r), W = (P) => {
|
|
9363
|
+
var R;
|
|
9364
|
+
c && (c(), (R = o.current) == null || R.dispatchEvent(new CustomEvent("react-aria-item-action", {
|
|
9365
9365
|
bubbles: !0
|
|
9366
|
-
}))),
|
|
9367
|
-
},
|
|
9366
|
+
}))), x && o.current && h.open(o.current, P, O.href, O.routerOptions);
|
|
9367
|
+
}, V = {
|
|
9368
9368
|
ref: o
|
|
9369
9369
|
};
|
|
9370
|
-
if (i ? (
|
|
9371
|
-
N.current = P.pointerType, A.current =
|
|
9372
|
-
}, u ? (
|
|
9373
|
-
P.pointerType === "mouse" &&
|
|
9374
|
-
},
|
|
9375
|
-
P.pointerType !== "keyboard" && P.pointerType !== "mouse" &&
|
|
9376
|
-
}) :
|
|
9377
|
-
if (
|
|
9370
|
+
if (i ? (V.onPressStart = (P) => {
|
|
9371
|
+
N.current = P.pointerType, A.current = I, P.pointerType === "keyboard" && (!B || Ji(P.key)) && f(P);
|
|
9372
|
+
}, u ? (V.onPressUp = w ? void 0 : (P) => {
|
|
9373
|
+
P.pointerType === "mouse" && v && f(P);
|
|
9374
|
+
}, V.onPress = w ? W : (P) => {
|
|
9375
|
+
P.pointerType !== "keyboard" && P.pointerType !== "mouse" && v && f(P);
|
|
9376
|
+
}) : V.onPress = (P) => {
|
|
9377
|
+
if (w || D && P.pointerType !== "mouse") {
|
|
9378
9378
|
if (P.pointerType === "keyboard" && !Zi(P.key)) return;
|
|
9379
9379
|
W(P);
|
|
9380
|
-
} else P.pointerType !== "keyboard" &&
|
|
9381
|
-
}) : (
|
|
9382
|
-
N.current = P.pointerType, A.current =
|
|
9383
|
-
},
|
|
9384
|
-
(P.pointerType === "touch" || P.pointerType === "pen" || P.pointerType === "virtual" || P.pointerType === "keyboard" &&
|
|
9385
|
-
}), m["data-collection"] = pp(n.collection), m["data-key"] = r,
|
|
9380
|
+
} else P.pointerType !== "keyboard" && v && f(P);
|
|
9381
|
+
}) : (V.onPressStart = (P) => {
|
|
9382
|
+
N.current = P.pointerType, A.current = I, k.current = w, v && (P.pointerType === "mouse" && !w || P.pointerType === "keyboard" && (!T || Ji(P.key))) && f(P);
|
|
9383
|
+
}, V.onPress = (P) => {
|
|
9384
|
+
(P.pointerType === "touch" || P.pointerType === "pen" || P.pointerType === "virtual" || P.pointerType === "keyboard" && B && Zi(P.key) || P.pointerType === "mouse" && k.current) && (B ? W(P) : v && f(P));
|
|
9385
|
+
}), m["data-collection"] = pp(n.collection), m["data-key"] = r, V.preventFocusOnPress = l, l && (V = ne(V, {
|
|
9386
9386
|
onPressStart(P) {
|
|
9387
9387
|
P.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
|
|
9388
9388
|
},
|
|
@@ -9397,11 +9397,11 @@ function Ep(t) {
|
|
|
9397
9397
|
"onPress",
|
|
9398
9398
|
"onPressUp",
|
|
9399
9399
|
"onClick"
|
|
9400
|
-
]) O[P] && (
|
|
9401
|
-
let { pressProps: p, isPressed: E } = it(
|
|
9400
|
+
]) O[P] && (V[P] = un(V[P], O[P]));
|
|
9401
|
+
let { pressProps: p, isPressed: E } = it(V), L = D ? (P) => {
|
|
9402
9402
|
N.current === "mouse" && (P.stopPropagation(), P.preventDefault(), W(P));
|
|
9403
9403
|
} : void 0, { longPressProps: S } = cc({
|
|
9404
|
-
isDisabled: !
|
|
9404
|
+
isDisabled: !I,
|
|
9405
9405
|
onLongPress(P) {
|
|
9406
9406
|
P.pointerType === "touch" && (f(P), n.setSelectionBehavior("toggle"));
|
|
9407
9407
|
}
|
|
@@ -9413,10 +9413,10 @@ function Ep(t) {
|
|
|
9413
9413
|
return {
|
|
9414
9414
|
itemProps: ne(
|
|
9415
9415
|
m,
|
|
9416
|
-
|
|
9417
|
-
|
|
9416
|
+
v || w || l && !a ? p : {},
|
|
9417
|
+
I ? S : {},
|
|
9418
9418
|
{
|
|
9419
|
-
onDoubleClick:
|
|
9419
|
+
onDoubleClick: L,
|
|
9420
9420
|
onDragStartCapture: M,
|
|
9421
9421
|
onClick: $,
|
|
9422
9422
|
id: e
|
|
@@ -9430,8 +9430,8 @@ function Ep(t) {
|
|
|
9430
9430
|
isSelected: n.isSelected(r),
|
|
9431
9431
|
isFocused: n.isFocused && n.focusedKey === r,
|
|
9432
9432
|
isDisabled: a,
|
|
9433
|
-
allowsSelection:
|
|
9434
|
-
hasAction:
|
|
9433
|
+
allowsSelection: v,
|
|
9434
|
+
hasAction: B
|
|
9435
9435
|
};
|
|
9436
9436
|
}
|
|
9437
9437
|
function Zi(t) {
|
|
@@ -9454,15 +9454,15 @@ function Pp(t) {
|
|
|
9454
9454
|
return r(t), Qi.set(t, n), n;
|
|
9455
9455
|
}
|
|
9456
9456
|
function Cp(t, e, n) {
|
|
9457
|
-
let { id: r, key: o, closeOnSelect: i, shouldCloseOnSelect: l, isVirtualized: s, "aria-haspopup": a, onPressStart: c, onPressUp: u, onPress: d, onPressChange: h, onPressEnd: f, onClick: m, onHoverStart: g, onHoverChange:
|
|
9457
|
+
let { id: r, key: o, closeOnSelect: i, shouldCloseOnSelect: l, isVirtualized: s, "aria-haspopup": a, onPressStart: c, onPressUp: u, onPress: d, onPressChange: h, onPressEnd: f, onClick: m, onHoverStart: g, onHoverChange: y, onHoverEnd: x, onKeyDown: v, onKeyUp: T, onFocus: w, onFocusChange: D, onBlur: B, selectionManager: N = e.selectionManager } = t, I = !!a, A = I && t["aria-expanded"] === "true", k = t.isDisabled ?? N.isDisabled(o), O = t.isSelected ?? N.isSelected(o), W = dc.get(e), V = e.collection.getItem(o), p = t.onClose || W.onClose, E = cn(), L = () => {
|
|
9458
9458
|
var ce;
|
|
9459
|
-
if (!
|
|
9459
|
+
if (!I && ((ce = V == null ? void 0 : V.props) != null && ce.onAction ? V.props.onAction() : t.onAction && t.onAction(o), W.onAction)) {
|
|
9460
9460
|
let Bt = W.onAction;
|
|
9461
9461
|
Bt(o);
|
|
9462
9462
|
}
|
|
9463
9463
|
}, S = "menuitem";
|
|
9464
|
-
|
|
9465
|
-
let M = Nn(), $ = Nn(), P = Nn(),
|
|
9464
|
+
I || (N.selectionMode === "single" ? S = "menuitemradio" : N.selectionMode === "multiple" && (S = "menuitemcheckbox"));
|
|
9465
|
+
let M = Nn(), $ = Nn(), P = Nn(), R = {
|
|
9466
9466
|
id: r,
|
|
9467
9467
|
"aria-disabled": k || void 0,
|
|
9468
9468
|
role: S,
|
|
@@ -9477,9 +9477,9 @@ function Cp(t, e, n) {
|
|
|
9477
9477
|
"aria-haspopup": a,
|
|
9478
9478
|
"aria-expanded": t["aria-expanded"]
|
|
9479
9479
|
};
|
|
9480
|
-
if (N.selectionMode !== "none" && !
|
|
9481
|
-
let ce = Number(
|
|
9482
|
-
|
|
9480
|
+
if (N.selectionMode !== "none" && !I && (R["aria-checked"] = O), s) {
|
|
9481
|
+
let ce = Number(V == null ? void 0 : V.index);
|
|
9482
|
+
R["aria-posinset"] = Number.isNaN(ce) ? void 0 : ce + 1, R["aria-setsize"] = Pp(e.collection);
|
|
9483
9483
|
}
|
|
9484
9484
|
let J = K(!1), ee = (ce) => {
|
|
9485
9485
|
h == null || h(ce), J.current = ce;
|
|
@@ -9489,9 +9489,9 @@ function Cp(t, e, n) {
|
|
|
9489
9489
|
}), ce.pointerType === "mouse" && (J.current || ce.target.click()), u == null || u(ce);
|
|
9490
9490
|
}, pe = (ce) => {
|
|
9491
9491
|
var Go, jo;
|
|
9492
|
-
m == null || m(ce),
|
|
9492
|
+
m == null || m(ce), L(), Dl(ce, E, V.props.href, V == null ? void 0 : V.props.routerOptions);
|
|
9493
9493
|
let Bt = ((Go = te.current) == null ? void 0 : Go.pointerType) === "keyboard" ? ((jo = te.current) == null ? void 0 : jo.key) === "Enter" || N.selectionMode === "none" || N.isLink(o) : N.selectionMode !== "multiple" || N.isLink(o);
|
|
9494
|
-
Bt = l ?? i ?? Bt, p && !
|
|
9494
|
+
Bt = l ?? i ?? Bt, p && !I && Bt && p(), te.current = null;
|
|
9495
9495
|
}, { itemProps: ie, isFocused: Se } = Ep({
|
|
9496
9496
|
id: r,
|
|
9497
9497
|
selectionManager: N,
|
|
@@ -9517,8 +9517,8 @@ function Cp(t, e, n) {
|
|
|
9517
9517
|
onHoverStart(ce) {
|
|
9518
9518
|
!nn() && !(A && a) && (N.setFocused(!0), N.setFocusedKey(o)), g == null || g(ce);
|
|
9519
9519
|
},
|
|
9520
|
-
onHoverChange:
|
|
9521
|
-
onHoverEnd:
|
|
9520
|
+
onHoverChange: y,
|
|
9521
|
+
onHoverEnd: x
|
|
9522
9522
|
}), { keyboardProps: Pe } = ys({
|
|
9523
9523
|
onKeyDown: (ce) => {
|
|
9524
9524
|
if (ce.repeat) {
|
|
@@ -9539,25 +9539,25 @@ function Cp(t, e, n) {
|
|
|
9539
9539
|
}, _(ce).tagName !== "A" && _(ce).click(), Wr("keyboard");
|
|
9540
9540
|
break;
|
|
9541
9541
|
default:
|
|
9542
|
-
|
|
9542
|
+
I || ce.continuePropagation(), v == null || v(ce);
|
|
9543
9543
|
break;
|
|
9544
9544
|
}
|
|
9545
9545
|
},
|
|
9546
|
-
onKeyUp:
|
|
9546
|
+
onKeyUp: T
|
|
9547
9547
|
}), { focusableProps: ct } = fn({
|
|
9548
|
-
onBlur:
|
|
9549
|
-
onFocus:
|
|
9550
|
-
onFocusChange:
|
|
9551
|
-
}, n), Wo = me(
|
|
9548
|
+
onBlur: B,
|
|
9549
|
+
onFocus: w,
|
|
9550
|
+
onFocusChange: D
|
|
9551
|
+
}, n), Wo = me(V == null ? void 0 : V.props);
|
|
9552
9552
|
delete Wo.id;
|
|
9553
|
-
let Uc = Nl(
|
|
9553
|
+
let Uc = Nl(V == null ? void 0 : V.props);
|
|
9554
9554
|
return {
|
|
9555
9555
|
menuItemProps: {
|
|
9556
|
-
...
|
|
9556
|
+
...R,
|
|
9557
9557
|
...ne(
|
|
9558
9558
|
Wo,
|
|
9559
9559
|
Uc,
|
|
9560
|
-
|
|
9560
|
+
I ? {
|
|
9561
9561
|
onFocus: ie.onFocus,
|
|
9562
9562
|
"data-collection": ie["data-collection"],
|
|
9563
9563
|
"data-key": ie["data-key"]
|
|
@@ -9567,7 +9567,7 @@ function Cp(t, e, n) {
|
|
|
9567
9567
|
Pe,
|
|
9568
9568
|
ct,
|
|
9569
9569
|
// Prevent DOM focus from moving on mouse down when using virtual focus or this is a submenu/subdialog trigger.
|
|
9570
|
-
W.shouldUseVirtualFocus ||
|
|
9570
|
+
W.shouldUseVirtualFocus || I ? {
|
|
9571
9571
|
onMouseDown: (ce) => ce.preventDefault()
|
|
9572
9572
|
} : void 0,
|
|
9573
9573
|
k ? void 0 : {
|
|
@@ -9624,8 +9624,8 @@ function Np(t) {
|
|
|
9624
9624
|
});
|
|
9625
9625
|
let g = () => {
|
|
9626
9626
|
f(!1), d.current = kn, i.current = void 0;
|
|
9627
|
-
},
|
|
9628
|
-
h &&
|
|
9627
|
+
}, y = Sf(), x = Ke((v) => {
|
|
9628
|
+
h && v.preventDefault();
|
|
9629
9629
|
});
|
|
9630
9630
|
Z(() => {
|
|
9631
9631
|
h && e.current ? e.current.style.pointerEvents = "none" : e.current.style.pointerEvents = "";
|
|
@@ -9633,52 +9633,52 @@ function Np(t) {
|
|
|
9633
9633
|
e,
|
|
9634
9634
|
h
|
|
9635
9635
|
]), le(() => {
|
|
9636
|
-
let
|
|
9637
|
-
if (o || !
|
|
9636
|
+
let v = n.current, T = e.current;
|
|
9637
|
+
if (o || !v || !r || y !== "pointer" || !T) {
|
|
9638
9638
|
g();
|
|
9639
9639
|
return;
|
|
9640
9640
|
}
|
|
9641
|
-
l.current =
|
|
9642
|
-
let
|
|
9643
|
-
if (
|
|
9644
|
-
let
|
|
9645
|
-
if (
|
|
9641
|
+
l.current = v.getBoundingClientRect();
|
|
9642
|
+
let w = (D) => {
|
|
9643
|
+
if (D.pointerType === "touch" || D.pointerType === "pen") return;
|
|
9644
|
+
let B = Date.now();
|
|
9645
|
+
if (B - s.current < Tp) return;
|
|
9646
9646
|
clearTimeout(a.current), clearTimeout(c.current);
|
|
9647
|
-
let { clientX: N, clientY:
|
|
9647
|
+
let { clientX: N, clientY: I } = D;
|
|
9648
9648
|
if (!i.current) {
|
|
9649
9649
|
i.current = {
|
|
9650
9650
|
x: N,
|
|
9651
|
-
y:
|
|
9651
|
+
y: I
|
|
9652
9652
|
};
|
|
9653
9653
|
return;
|
|
9654
9654
|
}
|
|
9655
9655
|
if (!l.current) return;
|
|
9656
|
-
if (u.current || (u.current = N > l.current.right ? "left" : "right"), N <
|
|
9656
|
+
if (u.current || (u.current = N > l.current.right ? "left" : "right"), N < T.getBoundingClientRect().left || N > T.getBoundingClientRect().right || I < T.getBoundingClientRect().top || I > T.getBoundingClientRect().bottom) {
|
|
9657
9657
|
g();
|
|
9658
9658
|
return;
|
|
9659
9659
|
}
|
|
9660
|
-
let A = i.current.x, k = i.current.y, O = u.current === "right" ? l.current.left - A : A - l.current.right, W = Math.atan2(k - l.current.top, O) + el,
|
|
9661
|
-
d.current = E ? Math.min(d.current + 1, kn) : Math.max(d.current - 1, 0), d.current >= kn ? f(!0) : f(!1), s.current =
|
|
9660
|
+
let A = i.current.x, k = i.current.y, O = u.current === "right" ? l.current.left - A : A - l.current.right, W = Math.atan2(k - l.current.top, O) + el, V = Math.atan2(k - l.current.bottom, O) - el, p = Math.atan2(k - I, u.current === "left" ? -(N - A) : N - A), E = p < W && p > V;
|
|
9661
|
+
d.current = E ? Math.min(d.current + 1, kn) : Math.max(d.current - 1, 0), d.current >= kn ? f(!0) : f(!1), s.current = B, i.current = {
|
|
9662
9662
|
x: N,
|
|
9663
|
-
y:
|
|
9663
|
+
y: I
|
|
9664
9664
|
}, E && (a.current = setTimeout(() => {
|
|
9665
9665
|
g(), c.current = setTimeout(() => {
|
|
9666
|
-
let
|
|
9667
|
-
|
|
9666
|
+
let L = document.elementFromPoint(N, I);
|
|
9667
|
+
L && Y(T, L) && L.dispatchEvent(new PointerEvent("pointerover", {
|
|
9668
9668
|
bubbles: !0,
|
|
9669
9669
|
cancelable: !0
|
|
9670
9670
|
}));
|
|
9671
9671
|
}, 100);
|
|
9672
9672
|
}, Mp));
|
|
9673
9673
|
};
|
|
9674
|
-
return window.addEventListener("pointermove",
|
|
9675
|
-
window.removeEventListener("pointermove",
|
|
9674
|
+
return window.addEventListener("pointermove", w), process.env.NODE_ENV !== "test" && window.addEventListener("pointerdown", x, !0), () => {
|
|
9675
|
+
window.removeEventListener("pointermove", w), process.env.NODE_ENV !== "test" && window.removeEventListener("pointerdown", x, !0), clearTimeout(a.current), clearTimeout(c.current), d.current = kn;
|
|
9676
9676
|
};
|
|
9677
9677
|
}, [
|
|
9678
9678
|
o,
|
|
9679
9679
|
r,
|
|
9680
9680
|
e,
|
|
9681
|
-
|
|
9681
|
+
y,
|
|
9682
9682
|
f,
|
|
9683
9683
|
n
|
|
9684
9684
|
]);
|
|
@@ -9704,7 +9704,7 @@ function Dp(t, e, n) {
|
|
|
9704
9704
|
}, [
|
|
9705
9705
|
f
|
|
9706
9706
|
]);
|
|
9707
|
-
let
|
|
9707
|
+
let y = (N) => {
|
|
9708
9708
|
if (Lt(N.currentTarget))
|
|
9709
9709
|
switch (N.key) {
|
|
9710
9710
|
case "ArrowLeft":
|
|
@@ -9717,16 +9717,16 @@ function Dp(t, e, n) {
|
|
|
9717
9717
|
Y(o.current, _(N)) && (N.stopPropagation(), g(), !a && n.current && ve(n.current));
|
|
9718
9718
|
break;
|
|
9719
9719
|
}
|
|
9720
|
-
},
|
|
9720
|
+
}, x = {
|
|
9721
9721
|
id: u,
|
|
9722
9722
|
"aria-labelledby": c,
|
|
9723
9723
|
submenuLevel: e.submenuLevel,
|
|
9724
9724
|
...i === "menu" && {
|
|
9725
9725
|
onClose: e.closeAll,
|
|
9726
9726
|
autoFocus: e.focusStrategy ?? void 0,
|
|
9727
|
-
onKeyDown:
|
|
9727
|
+
onKeyDown: y
|
|
9728
9728
|
}
|
|
9729
|
-
},
|
|
9729
|
+
}, v = (N) => {
|
|
9730
9730
|
switch (N.key) {
|
|
9731
9731
|
case "ArrowRight":
|
|
9732
9732
|
l || (d === "ltr" ? (N.preventDefault(), e.isOpen || m("first"), i === "menu" && (o != null && o.current) && ue() === (n == null ? void 0 : n.current) && ve(o.current)) : e.isOpen ? g() : N.continuePropagation());
|
|
@@ -9738,11 +9738,11 @@ function Dp(t, e, n) {
|
|
|
9738
9738
|
N.continuePropagation();
|
|
9739
9739
|
break;
|
|
9740
9740
|
}
|
|
9741
|
-
}, x = (N) => {
|
|
9742
|
-
!l && (N.pointerType === "virtual" || N.pointerType === "keyboard") && m("first");
|
|
9743
9741
|
}, T = (N) => {
|
|
9742
|
+
!l && (N.pointerType === "virtual" || N.pointerType === "keyboard") && m("first");
|
|
9743
|
+
}, w = (N) => {
|
|
9744
9744
|
!l && (N.pointerType === "touch" || N.pointerType === "mouse") && m();
|
|
9745
|
-
},
|
|
9745
|
+
}, D = (N) => {
|
|
9746
9746
|
l || (N && !e.isOpen ? h.current || (h.current = setTimeout(() => {
|
|
9747
9747
|
m();
|
|
9748
9748
|
}, s)) : N || f());
|
|
@@ -9750,7 +9750,7 @@ function Dp(t, e, n) {
|
|
|
9750
9750
|
Gt(r, "focusin", (N) => {
|
|
9751
9751
|
e.isOpen && Y(r.current, _(N)) && _(N) !== n.current && g();
|
|
9752
9752
|
});
|
|
9753
|
-
let
|
|
9753
|
+
let B = (N) => N !== n.current;
|
|
9754
9754
|
return Np({
|
|
9755
9755
|
menuRef: r,
|
|
9756
9756
|
submenuRef: o,
|
|
@@ -9762,16 +9762,16 @@ function Dp(t, e, n) {
|
|
|
9762
9762
|
"aria-controls": e.isOpen ? u : void 0,
|
|
9763
9763
|
"aria-haspopup": l ? void 0 : i,
|
|
9764
9764
|
"aria-expanded": e.isOpen ? "true" : "false",
|
|
9765
|
-
onPressStart:
|
|
9766
|
-
onPress:
|
|
9767
|
-
onHoverChange:
|
|
9768
|
-
onKeyDown:
|
|
9765
|
+
onPressStart: T,
|
|
9766
|
+
onPress: w,
|
|
9767
|
+
onHoverChange: D,
|
|
9768
|
+
onKeyDown: v,
|
|
9769
9769
|
isOpen: e.isOpen
|
|
9770
9770
|
},
|
|
9771
|
-
submenuProps:
|
|
9771
|
+
submenuProps: x,
|
|
9772
9772
|
popoverProps: {
|
|
9773
9773
|
isNonModal: !0,
|
|
9774
|
-
shouldCloseOnInteractOutside:
|
|
9774
|
+
shouldCloseOnInteractOutside: B
|
|
9775
9775
|
}
|
|
9776
9776
|
};
|
|
9777
9777
|
}
|
|
@@ -10295,9 +10295,9 @@ class Ap {
|
|
|
10295
10295
|
wrapper: Fp(e.wrapper, h.wrapper)
|
|
10296
10296
|
}, this.getChildState(n, h), r ? `${r}${i.key}` : i.key, o)
|
|
10297
10297
|
];
|
|
10298
|
-
for (let
|
|
10299
|
-
if (
|
|
10300
|
-
u++, yield
|
|
10298
|
+
for (let y of g) {
|
|
10299
|
+
if (y.value = h.value ?? e.value ?? null, y.value && this.cache.set(y.value, y), e.type && y.type !== e.type) throw new Error(`Unsupported type <${Dr(y.type)}> in <${Dr((o == null ? void 0 : o.type) ?? "unknown parent type")}>. Only <${Dr(e.type)}> is supported.`);
|
|
10300
|
+
u++, yield y;
|
|
10301
10301
|
}
|
|
10302
10302
|
d = c.next(g);
|
|
10303
10303
|
}
|
|
@@ -10388,23 +10388,23 @@ function hc(t) {
|
|
|
10388
10388
|
t.defaultSelectedKeys
|
|
10389
10389
|
]), [f, m] = tr(d, h, t.onSelectionChange), g = Q(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
10390
10390
|
t.disabledKeys
|
|
10391
|
-
]), [
|
|
10392
|
-
o === "replace" &&
|
|
10393
|
-
let
|
|
10391
|
+
]), [y, x] = G(o);
|
|
10392
|
+
o === "replace" && y === "toggle" && typeof f == "object" && f.size === 0 && x("replace");
|
|
10393
|
+
let v = K(o);
|
|
10394
10394
|
return Z(() => {
|
|
10395
|
-
o !==
|
|
10395
|
+
o !== v.current && (x(o), v.current = o);
|
|
10396
10396
|
}, [
|
|
10397
10397
|
o
|
|
10398
10398
|
]), {
|
|
10399
10399
|
selectionMode: e,
|
|
10400
10400
|
disallowEmptySelection: n,
|
|
10401
|
-
selectionBehavior:
|
|
10402
|
-
setSelectionBehavior:
|
|
10401
|
+
selectionBehavior: y,
|
|
10402
|
+
setSelectionBehavior: x,
|
|
10403
10403
|
get isFocused() {
|
|
10404
10404
|
return l.current;
|
|
10405
10405
|
},
|
|
10406
|
-
setFocused(
|
|
10407
|
-
l.current =
|
|
10406
|
+
setFocused(T) {
|
|
10407
|
+
l.current = T, s(T);
|
|
10408
10408
|
},
|
|
10409
10409
|
get focusedKey() {
|
|
10410
10410
|
return a.current;
|
|
@@ -10412,12 +10412,12 @@ function hc(t) {
|
|
|
10412
10412
|
get childFocusStrategy() {
|
|
10413
10413
|
return c.current;
|
|
10414
10414
|
},
|
|
10415
|
-
setFocusedKey(
|
|
10416
|
-
a.current =
|
|
10415
|
+
setFocusedKey(T, w = "first") {
|
|
10416
|
+
a.current = T, c.current = w, u(T);
|
|
10417
10417
|
},
|
|
10418
10418
|
selectedKeys: f,
|
|
10419
|
-
setSelectedKeys(
|
|
10420
|
-
(r || !Bp(
|
|
10419
|
+
setSelectedKeys(T) {
|
|
10420
|
+
(r || !Bp(T, f)) && m(T);
|
|
10421
10421
|
},
|
|
10422
10422
|
disabledKeys: g,
|
|
10423
10423
|
disabledBehavior: i
|
|
@@ -10675,7 +10675,7 @@ class jp extends sr {
|
|
|
10675
10675
|
}
|
|
10676
10676
|
}
|
|
10677
10677
|
function bc(t, e, n, r = "react-aria-MenuSection") {
|
|
10678
|
-
var
|
|
10678
|
+
var y, x, v;
|
|
10679
10679
|
let o = F(ar), { CollectionBranch: i } = F(lr), [l, s] = os(), { headingProps: a, groupProps: c } = kp({
|
|
10680
10680
|
heading: s,
|
|
10681
10681
|
"aria-label": n.props["aria-label"] ?? void 0
|
|
@@ -10684,10 +10684,10 @@ function bc(t, e, n, r = "react-aria-MenuSection") {
|
|
|
10684
10684
|
id: void 0,
|
|
10685
10685
|
children: void 0,
|
|
10686
10686
|
defaultClassName: r,
|
|
10687
|
-
className: (
|
|
10688
|
-
style: (
|
|
10687
|
+
className: (y = n.props) == null ? void 0 : y.className,
|
|
10688
|
+
style: (x = n.props) == null ? void 0 : x.style,
|
|
10689
10689
|
values: void 0
|
|
10690
|
-
}), d = F(qn), h = hc(t), f = t.selectionMode != null ? new jp(d, h) : d, m = (
|
|
10690
|
+
}), d = F(qn), h = hc(t), f = t.selectionMode != null ? new jp(d, h) : d, m = (v = dn(Rt)) == null ? void 0 : v.shouldCloseOnSelect, g = me(t, {
|
|
10691
10691
|
global: !0
|
|
10692
10692
|
});
|
|
10693
10693
|
return delete g.id, /* @__PURE__ */ C.createElement(we.section, {
|
|
@@ -10719,9 +10719,9 @@ function bc(t, e, n, r = "react-aria-MenuSection") {
|
|
|
10719
10719
|
})));
|
|
10720
10720
|
}
|
|
10721
10721
|
const qp = /* @__PURE__ */ Ea(no, bc), Rt = /* @__PURE__ */ q(null), Yp = /* @__PURE__ */ wa(to, function(e, n, r) {
|
|
10722
|
-
var
|
|
10722
|
+
var T;
|
|
10723
10723
|
[e, n] = Fe(e, n, Rt);
|
|
10724
|
-
let o = (
|
|
10724
|
+
let o = (T = dn(Rt)) == null ? void 0 : T.id, i = F(ar), l = st(n), s = F(qn), { isVirtualized: a } = F(lr), { menuItemProps: c, labelProps: u, descriptionProps: d, keyboardShortcutProps: h, ...f } = Cp({
|
|
10725
10725
|
...e,
|
|
10726
10726
|
id: o,
|
|
10727
10727
|
key: r.key,
|
|
@@ -10729,7 +10729,7 @@ const qp = /* @__PURE__ */ Ea(no, bc), Rt = /* @__PURE__ */ q(null), Yp = /* @__
|
|
|
10729
10729
|
isVirtualized: a
|
|
10730
10730
|
}, i, l), { hoverProps: m, isHovered: g } = hn({
|
|
10731
10731
|
isDisabled: f.isDisabled
|
|
10732
|
-
}),
|
|
10732
|
+
}), y = Ae({
|
|
10733
10733
|
...e,
|
|
10734
10734
|
id: void 0,
|
|
10735
10735
|
children: r.rendered,
|
|
@@ -10743,11 +10743,11 @@ const qp = /* @__PURE__ */ Ea(no, bc), Rt = /* @__PURE__ */ q(null), Yp = /* @__
|
|
|
10743
10743
|
hasSubmenu: !!e["aria-haspopup"],
|
|
10744
10744
|
isOpen: e["aria-expanded"] === "true"
|
|
10745
10745
|
}
|
|
10746
|
-
}),
|
|
10746
|
+
}), x = e.href ? we.a : we.div, v = me(e, {
|
|
10747
10747
|
global: !0
|
|
10748
10748
|
});
|
|
10749
|
-
return delete
|
|
10750
|
-
...ne(
|
|
10749
|
+
return delete v.id, delete v.onClick, /* @__PURE__ */ C.createElement(x, {
|
|
10750
|
+
...ne(v, y, c, m),
|
|
10751
10751
|
ref: l,
|
|
10752
10752
|
"data-disabled": f.isDisabled || void 0,
|
|
10753
10753
|
"data-hovered": g || void 0,
|
|
@@ -10781,7 +10781,7 @@ const qp = /* @__PURE__ */ Ea(no, bc), Rt = /* @__PURE__ */ q(null), Yp = /* @__
|
|
|
10781
10781
|
}
|
|
10782
10782
|
]
|
|
10783
10783
|
]
|
|
10784
|
-
},
|
|
10784
|
+
}, y.children));
|
|
10785
10785
|
});
|
|
10786
10786
|
function Xp(t, e) {
|
|
10787
10787
|
let { role: n = "dialog" } = t, r = Nn();
|
|
@@ -10950,8 +10950,8 @@ const eb = /* @__PURE__ */ q(null), Oo = /* @__PURE__ */ q(null), tb = /* @__PUR
|
|
|
10950
10950
|
"isExiting",
|
|
10951
10951
|
"UNSTABLE_portalContainer",
|
|
10952
10952
|
"shouldCloseOnInteractOutside"
|
|
10953
|
-
]),
|
|
10954
|
-
console.warn(`This modal is already wrapped in a ModalOverlay, props [${
|
|
10953
|
+
]), y = Object.keys(e).filter((x) => g.has(x));
|
|
10954
|
+
console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`);
|
|
10955
10955
|
}
|
|
10956
10956
|
return /* @__PURE__ */ C.createElement(ol, {
|
|
10957
10957
|
...e,
|
|
@@ -11203,17 +11203,17 @@ function fb(t, e) {
|
|
|
11203
11203
|
ref: e
|
|
11204
11204
|
}), f = me(a, {
|
|
11205
11205
|
labelable: !0
|
|
11206
|
-
}), m = ne(u, d), g = cn(),
|
|
11206
|
+
}), m = ne(u, d), g = cn(), y = Nl(t);
|
|
11207
11207
|
return {
|
|
11208
11208
|
isPressed: h,
|
|
11209
|
-
linkProps: ne(f,
|
|
11209
|
+
linkProps: ne(f, y, {
|
|
11210
11210
|
...m,
|
|
11211
11211
|
...c,
|
|
11212
11212
|
"aria-disabled": s || void 0,
|
|
11213
11213
|
"aria-current": t["aria-current"],
|
|
11214
|
-
onClick: (
|
|
11215
|
-
var
|
|
11216
|
-
(
|
|
11214
|
+
onClick: (x) => {
|
|
11215
|
+
var v;
|
|
11216
|
+
(v = d.onClick) == null || v.call(d, x), Dl(x, g, t.href, t.routerOptions);
|
|
11217
11217
|
}
|
|
11218
11218
|
})
|
|
11219
11219
|
};
|
|
@@ -11315,20 +11315,20 @@ const gb = /* @__PURE__ */ q({}), yb = "__button_group_child", sl = ({
|
|
|
11315
11315
|
[yb]: c,
|
|
11316
11316
|
...u
|
|
11317
11317
|
}) => {
|
|
11318
|
-
const d = F(gb), h = c === !0, f = i ?? (h ? d == null ? void 0 : d.size : void 0), m = a ?? (h ? d == null ? void 0 : d.variant : void 0), g = r ?? (h ? d == null ? void 0 : d.isDisabled : void 0),
|
|
11319
|
-
fullWidth:
|
|
11318
|
+
const d = F(gb), h = c === !0, f = i ?? (h ? d == null ? void 0 : d.size : void 0), m = a ?? (h ? d == null ? void 0 : d.variant : void 0), g = r ?? (h ? d == null ? void 0 : d.isDisabled : void 0), y = n ?? (h ? d == null ? void 0 : d.fullWidth : void 0), x = nt({
|
|
11319
|
+
fullWidth: y,
|
|
11320
11320
|
isIconOnly: o,
|
|
11321
11321
|
size: f,
|
|
11322
11322
|
variant: m
|
|
11323
11323
|
});
|
|
11324
11324
|
return /* @__PURE__ */ b(No, {
|
|
11325
|
-
className: Ie(e,
|
|
11325
|
+
className: Ie(e, x),
|
|
11326
11326
|
"data-slot": "button",
|
|
11327
11327
|
isDisabled: g,
|
|
11328
11328
|
slot: l,
|
|
11329
11329
|
style: s,
|
|
11330
11330
|
...u,
|
|
11331
|
-
children: (
|
|
11331
|
+
children: (v) => typeof t == "function" ? t(v) : t
|
|
11332
11332
|
});
|
|
11333
11333
|
}, vb = Object.assign(sl, {
|
|
11334
11334
|
Root: sl
|
|
@@ -11507,24 +11507,24 @@ function Tb(t) {
|
|
|
11507
11507
|
r
|
|
11508
11508
|
]), [h, f] = G(u), [m, g] = G(!1);
|
|
11509
11509
|
u !== h && (f(u), g(!1));
|
|
11510
|
-
let
|
|
11510
|
+
let y = Q(() => ul(m ? [] : d), [
|
|
11511
11511
|
m,
|
|
11512
11512
|
d
|
|
11513
|
-
]),
|
|
11514
|
-
if (!
|
|
11513
|
+
]), x = K(Pt), [v, T] = G(Pt), w = K(Pt), D = () => {
|
|
11514
|
+
if (!B) return;
|
|
11515
11515
|
N(!1);
|
|
11516
|
-
let k = c || i ||
|
|
11517
|
-
Ir(k,
|
|
11518
|
-
}, [
|
|
11519
|
-
return Z(
|
|
11520
|
-
realtimeValidation: a ||
|
|
11521
|
-
displayValidation: s === "native" ? a ||
|
|
11516
|
+
let k = c || i || x.current;
|
|
11517
|
+
Ir(k, w.current) || (w.current = k, T(k));
|
|
11518
|
+
}, [B, N] = G(!1);
|
|
11519
|
+
return Z(D), {
|
|
11520
|
+
realtimeValidation: a || y || c || i || Pt,
|
|
11521
|
+
displayValidation: s === "native" ? a || y || v : a || y || c || i || v,
|
|
11522
11522
|
updateValidation(k) {
|
|
11523
|
-
s === "aria" && !Ir(
|
|
11523
|
+
s === "aria" && !Ir(v, k) ? T(k) : x.current = k;
|
|
11524
11524
|
},
|
|
11525
11525
|
resetValidation() {
|
|
11526
11526
|
let k = Pt;
|
|
11527
|
-
Ir(k,
|
|
11527
|
+
Ir(k, w.current) || (w.current = k, T(k)), s === "native" && N(!1), g(!0);
|
|
11528
11528
|
},
|
|
11529
11529
|
commitValidation() {
|
|
11530
11530
|
s === "native" && N(!0), g(!0);
|
|
@@ -11554,71 +11554,71 @@ function Ir(t, e) {
|
|
|
11554
11554
|
return t === e ? !0 : !!t && !!e && t.isInvalid === e.isInvalid && t.validationErrors.length === e.validationErrors.length && t.validationErrors.every((n, r) => n === e.validationErrors[r]) && Object.entries(t.validationDetails).every(([n, r]) => e.validationDetails[n] === r);
|
|
11555
11555
|
}
|
|
11556
11556
|
function Nb(t, e, n) {
|
|
11557
|
-
let { isDisabled: r = !1, isReadOnly: o = !1, value: i, name: l, form: s, children: a, isRequired: c, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": h, "aria-describedby": f, onPressStart: m, onPressEnd: g, onPressChange:
|
|
11557
|
+
let { isDisabled: r = !1, isReadOnly: o = !1, value: i, name: l, form: s, children: a, isRequired: c, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": h, "aria-describedby": f, onPressStart: m, onPressEnd: g, onPressChange: y, onPress: x, onPressUp: v, onClick: T } = t, w = xc({
|
|
11558
11558
|
...t,
|
|
11559
11559
|
value: e.isSelected
|
|
11560
|
-
}), { isInvalid:
|
|
11561
|
-
ab(t,
|
|
11562
|
-
let
|
|
11563
|
-
|
|
11560
|
+
}), { isInvalid: D, validationErrors: B, validationDetails: N } = w.displayValidation;
|
|
11561
|
+
ab(t, w, n);
|
|
11562
|
+
let I = (R) => {
|
|
11563
|
+
R.stopPropagation(), e.setSelected(_(R).checked);
|
|
11564
11564
|
}, A = a != null, k = d != null || h != null;
|
|
11565
11565
|
!A && !k && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
11566
11566
|
let { pressProps: O, isPressed: W } = it({
|
|
11567
11567
|
onPressStart: m,
|
|
11568
11568
|
onPressEnd: g,
|
|
11569
|
-
onPressChange:
|
|
11570
|
-
onPress:
|
|
11571
|
-
onPressUp:
|
|
11572
|
-
onClick:
|
|
11569
|
+
onPressChange: y,
|
|
11570
|
+
onPress: x,
|
|
11571
|
+
onPressUp: v,
|
|
11572
|
+
onClick: T,
|
|
11573
11573
|
isDisabled: r
|
|
11574
|
-
}), [
|
|
11575
|
-
onPressStart(
|
|
11576
|
-
if (
|
|
11577
|
-
|
|
11574
|
+
}), [V, p] = G(!1), { pressProps: E } = it({
|
|
11575
|
+
onPressStart(R) {
|
|
11576
|
+
if (R.pointerType === "keyboard" || R.pointerType === "virtual") {
|
|
11577
|
+
R.continuePropagation();
|
|
11578
11578
|
return;
|
|
11579
11579
|
}
|
|
11580
|
-
m == null || m(
|
|
11580
|
+
m == null || m(R), y == null || y(!0), p(!0);
|
|
11581
11581
|
},
|
|
11582
|
-
onPressEnd(
|
|
11583
|
-
if (
|
|
11584
|
-
|
|
11582
|
+
onPressEnd(R) {
|
|
11583
|
+
if (R.pointerType === "keyboard" || R.pointerType === "virtual") {
|
|
11584
|
+
R.continuePropagation();
|
|
11585
11585
|
return;
|
|
11586
11586
|
}
|
|
11587
|
-
g == null || g(
|
|
11587
|
+
g == null || g(R), y == null || y(!1), p(!1);
|
|
11588
11588
|
},
|
|
11589
|
-
onPressUp(
|
|
11590
|
-
if (
|
|
11591
|
-
|
|
11589
|
+
onPressUp(R) {
|
|
11590
|
+
if (R.pointerType === "keyboard" || R.pointerType === "virtual") {
|
|
11591
|
+
R.continuePropagation();
|
|
11592
11592
|
return;
|
|
11593
11593
|
}
|
|
11594
|
-
|
|
11594
|
+
v == null || v(R);
|
|
11595
11595
|
},
|
|
11596
|
-
onClick:
|
|
11597
|
-
onPress(
|
|
11596
|
+
onClick: T,
|
|
11597
|
+
onPress(R) {
|
|
11598
11598
|
var te;
|
|
11599
|
-
if (
|
|
11600
|
-
|
|
11599
|
+
if (R.pointerType === "keyboard" || R.pointerType === "virtual") {
|
|
11600
|
+
R.continuePropagation();
|
|
11601
11601
|
return;
|
|
11602
11602
|
}
|
|
11603
|
-
|
|
11604
|
-
let { [Yn]: J } = t, { commitValidation: ee } = J ||
|
|
11603
|
+
x == null || x(R), e.toggle(), (te = n.current) == null || te.focus();
|
|
11604
|
+
let { [Yn]: J } = t, { commitValidation: ee } = J || w;
|
|
11605
11605
|
ee();
|
|
11606
11606
|
},
|
|
11607
11607
|
isDisabled: r || o
|
|
11608
|
-
}), { focusableProps:
|
|
11608
|
+
}), { focusableProps: L } = fn(t, n), S = ne(O, L), M = me(t, {
|
|
11609
11609
|
labelable: !0
|
|
11610
11610
|
});
|
|
11611
11611
|
_u(n, e.defaultSelected, e.setSelected);
|
|
11612
11612
|
let $ = cl(), P = cl();
|
|
11613
11613
|
return {
|
|
11614
11614
|
labelProps: ne(E, {
|
|
11615
|
-
onClick: (
|
|
11615
|
+
onClick: (R) => R.preventDefault()
|
|
11616
11616
|
}),
|
|
11617
11617
|
inputProps: ne(M, {
|
|
11618
11618
|
checked: e.isSelected,
|
|
11619
11619
|
"aria-required": c && u === "aria" || void 0,
|
|
11620
11620
|
required: c && u === "native",
|
|
11621
|
-
"aria-invalid":
|
|
11621
|
+
"aria-invalid": D || t.validationState === "invalid" || void 0,
|
|
11622
11622
|
"aria-errormessage": t["aria-errormessage"],
|
|
11623
11623
|
"aria-controls": t["aria-controls"],
|
|
11624
11624
|
"aria-readonly": o || void 0,
|
|
@@ -11627,7 +11627,7 @@ function Nb(t, e, n) {
|
|
|
11627
11627
|
P.id,
|
|
11628
11628
|
f
|
|
11629
11629
|
].filter(Boolean).join(" ") || void 0,
|
|
11630
|
-
onChange:
|
|
11630
|
+
onChange: I,
|
|
11631
11631
|
disabled: r,
|
|
11632
11632
|
...i == null ? {} : {
|
|
11633
11633
|
value: i
|
|
@@ -11640,11 +11640,11 @@ function Nb(t, e, n) {
|
|
|
11640
11640
|
descriptionProps: $,
|
|
11641
11641
|
errorMessageProps: P,
|
|
11642
11642
|
isSelected: e.isSelected,
|
|
11643
|
-
isPressed: W ||
|
|
11643
|
+
isPressed: W || V,
|
|
11644
11644
|
isDisabled: r,
|
|
11645
11645
|
isReadOnly: o,
|
|
11646
|
-
isInvalid:
|
|
11647
|
-
validationErrors:
|
|
11646
|
+
isInvalid: D || t.validationState === "invalid",
|
|
11647
|
+
validationErrors: B,
|
|
11648
11648
|
validationDetails: N
|
|
11649
11649
|
};
|
|
11650
11650
|
}
|
|
@@ -11764,7 +11764,7 @@ function Rb(t, e, n) {
|
|
|
11764
11764
|
const Kb = /* @__PURE__ */ q(null), Ec = /* @__PURE__ */ q(null), Sc = /* @__PURE__ */ q(null), Ob = /* @__PURE__ */ Ee(function(e, n) {
|
|
11765
11765
|
let { inputRef: r = null, ...o } = e;
|
|
11766
11766
|
[e, n] = Fe(o, n, Kb);
|
|
11767
|
-
let i = F(Ec), [l, s] = Ab(e, r), { descriptionProps: a, errorMessageProps: c, isSelected: u, isDisabled: d, isReadOnly: h, isInvalid: f, validationDetails: m, validationErrors: g } = l,
|
|
11767
|
+
let i = F(Ec), [l, s] = Ab(e, r), { descriptionProps: a, errorMessageProps: c, isSelected: u, isDisabled: d, isReadOnly: h, isInvalid: f, validationDetails: m, validationErrors: g } = l, y = Ae({
|
|
11768
11768
|
...e,
|
|
11769
11769
|
defaultClassName: "react-aria-CheckboxField",
|
|
11770
11770
|
values: {
|
|
@@ -11775,11 +11775,11 @@ const Kb = /* @__PURE__ */ q(null), Ec = /* @__PURE__ */ q(null), Sc = /* @__PUR
|
|
|
11775
11775
|
isInvalid: f,
|
|
11776
11776
|
isRequired: e.isRequired || !1
|
|
11777
11777
|
}
|
|
11778
|
-
}),
|
|
11778
|
+
}), x = me(e, {
|
|
11779
11779
|
global: !0
|
|
11780
11780
|
});
|
|
11781
|
-
return delete
|
|
11782
|
-
...ne(
|
|
11781
|
+
return delete x.id, delete x.onClick, /* @__PURE__ */ C.createElement(we.div, {
|
|
11782
|
+
...ne(x, y),
|
|
11783
11783
|
ref: n,
|
|
11784
11784
|
slot: e.slot || void 0,
|
|
11785
11785
|
"data-selected": u || void 0,
|
|
@@ -11819,7 +11819,7 @@ const Kb = /* @__PURE__ */ q(null), Ec = /* @__PURE__ */ q(null), Sc = /* @__PUR
|
|
|
11819
11819
|
}
|
|
11820
11820
|
]
|
|
11821
11821
|
]
|
|
11822
|
-
},
|
|
11822
|
+
}, y.children));
|
|
11823
11823
|
});
|
|
11824
11824
|
function Ab(t, e) {
|
|
11825
11825
|
let { validationBehavior: n } = dn(sb) || {}, r = t.validationBehavior ?? n ?? "native", o = F(Ec), i = st(Q(() => vt(e, t.inputRef !== void 0 ? t.inputRef : null), [
|
|
@@ -11837,17 +11837,17 @@ function Ab(t, e) {
|
|
|
11837
11837
|
];
|
|
11838
11838
|
}
|
|
11839
11839
|
const Fb = /* @__PURE__ */ Ee(function(e, n) {
|
|
11840
|
-
let { labelProps: r, inputProps: o, isSelected: i, isDisabled: l, isReadOnly: s, isPressed: a, isInvalid: c, inputRef: u, defaultClassName: d, isIndeterminate: h, isRequired: f } = F(Sc), { isFocused: m, isFocusVisible: g, focusProps:
|
|
11840
|
+
let { labelProps: r, inputProps: o, isSelected: i, isDisabled: l, isReadOnly: s, isPressed: a, isInvalid: c, inputRef: u, defaultClassName: d, isIndeterminate: h, isRequired: f } = F(Sc), { isFocused: m, isFocusVisible: g, focusProps: y } = Mo(), x = l || s, { hoverProps: v, isHovered: T } = hn({
|
|
11841
11841
|
...e,
|
|
11842
|
-
isDisabled:
|
|
11843
|
-
}),
|
|
11842
|
+
isDisabled: x
|
|
11843
|
+
}), w = Ae({
|
|
11844
11844
|
...e,
|
|
11845
11845
|
defaultClassName: d,
|
|
11846
11846
|
values: {
|
|
11847
11847
|
isSelected: i,
|
|
11848
11848
|
isIndeterminate: h || !1,
|
|
11849
11849
|
isPressed: a,
|
|
11850
|
-
isHovered:
|
|
11850
|
+
isHovered: T,
|
|
11851
11851
|
isFocused: m,
|
|
11852
11852
|
isFocusVisible: g,
|
|
11853
11853
|
isDisabled: l,
|
|
@@ -11855,17 +11855,17 @@ const Fb = /* @__PURE__ */ Ee(function(e, n) {
|
|
|
11855
11855
|
isInvalid: c,
|
|
11856
11856
|
isRequired: f || !1
|
|
11857
11857
|
}
|
|
11858
|
-
}),
|
|
11858
|
+
}), D = me(e, {
|
|
11859
11859
|
global: !0
|
|
11860
11860
|
});
|
|
11861
|
-
return delete
|
|
11862
|
-
...ne(
|
|
11861
|
+
return delete D.id, delete D.onClick, /* @__PURE__ */ C.createElement(we.label, {
|
|
11862
|
+
...ne(D, r, v, w),
|
|
11863
11863
|
ref: n,
|
|
11864
11864
|
slot: e.slot || void 0,
|
|
11865
11865
|
"data-selected": i || void 0,
|
|
11866
11866
|
"data-indeterminate": h || void 0,
|
|
11867
11867
|
"data-pressed": a || void 0,
|
|
11868
|
-
"data-hovered":
|
|
11868
|
+
"data-hovered": T || void 0,
|
|
11869
11869
|
"data-focused": m || void 0,
|
|
11870
11870
|
"data-focus-visible": g || void 0,
|
|
11871
11871
|
"data-disabled": l || void 0,
|
|
@@ -11875,9 +11875,9 @@ const Fb = /* @__PURE__ */ Ee(function(e, n) {
|
|
|
11875
11875
|
}, /* @__PURE__ */ C.createElement(fa, {
|
|
11876
11876
|
elementType: "span"
|
|
11877
11877
|
}, /* @__PURE__ */ C.createElement("input", {
|
|
11878
|
-
...ne(o,
|
|
11878
|
+
...ne(o, y),
|
|
11879
11879
|
ref: u
|
|
11880
|
-
})),
|
|
11880
|
+
})), w.children);
|
|
11881
11881
|
}), _b = /* @__PURE__ */ q({}), cr = /* @__PURE__ */ q({}), ao = ({
|
|
11882
11882
|
children: t,
|
|
11883
11883
|
className: e,
|
|
@@ -12852,8 +12852,8 @@ function Sm({
|
|
|
12852
12852
|
const m = r.current;
|
|
12853
12853
|
if (!m)
|
|
12854
12854
|
return;
|
|
12855
|
-
const { width: g, height:
|
|
12856
|
-
g > 0 &&
|
|
12855
|
+
const { width: g, height: y } = m.getBoundingClientRect();
|
|
12856
|
+
g > 0 && y > 0 && s({ width: g, height: y });
|
|
12857
12857
|
}, []);
|
|
12858
12858
|
Z(() => {
|
|
12859
12859
|
if (!n)
|
|
@@ -12977,56 +12977,56 @@ function Nm({
|
|
|
12977
12977
|
annotations: t,
|
|
12978
12978
|
editing: e
|
|
12979
12979
|
}) {
|
|
12980
|
-
const { tool: n, color: r, selectedId: o, onSelect: i, onAdd: l, onChange: s, onRemove: a } = e, c = K(null), u = K(!1), [d, h] = G(null), [f, m] = G(null), g = n === "select",
|
|
12980
|
+
const { tool: n, color: r, selectedId: o, onSelect: i, onAdd: l, onChange: s, onRemove: a } = e, c = K(null), u = K(!1), [d, h] = G(null), [f, m] = G(null), g = n === "select", y = (k) => {
|
|
12981
12981
|
const O = c.current.getBoundingClientRect();
|
|
12982
12982
|
return {
|
|
12983
12983
|
x: Zn((k.clientX - O.left) / O.width * 100, 0, 100),
|
|
12984
12984
|
y: Zn((k.clientY - O.top) / O.height * 100, 0, 100)
|
|
12985
12985
|
};
|
|
12986
|
-
},
|
|
12986
|
+
}, x = (k, O) => {
|
|
12987
12987
|
var W;
|
|
12988
12988
|
(W = c.current) == null || W.setPointerCapture(k.pointerId), u.current = !1, h(O), m(wl(O.base));
|
|
12989
|
-
},
|
|
12989
|
+
}, v = (k) => {
|
|
12990
12990
|
if (g) {
|
|
12991
12991
|
i == null || i(null);
|
|
12992
12992
|
return;
|
|
12993
12993
|
}
|
|
12994
|
-
const O =
|
|
12995
|
-
|
|
12994
|
+
const O = y(k);
|
|
12995
|
+
x(k, {
|
|
12996
12996
|
mode: Tm(n),
|
|
12997
12997
|
id: null,
|
|
12998
12998
|
start: O,
|
|
12999
12999
|
base: km(n, O, r)
|
|
13000
13000
|
});
|
|
13001
|
-
},
|
|
13001
|
+
}, T = (k) => {
|
|
13002
13002
|
if (!d) return;
|
|
13003
13003
|
const O = c.current.getBoundingClientRect();
|
|
13004
|
-
u.current = !0, m(wl(Mm(d,
|
|
13005
|
-
},
|
|
13004
|
+
u.current = !0, m(wl(Mm(d, y(k), O.width / O.height)));
|
|
13005
|
+
}, w = (k) => {
|
|
13006
13006
|
var O;
|
|
13007
13007
|
d && f && ((O = c.current) == null || O.releasePointerCapture(k.pointerId), d.id === null ? l == null || l(f) : u.current && (s == null || s(d.id, f))), h(null), m(null);
|
|
13008
|
-
},
|
|
13009
|
-
var
|
|
13010
|
-
k.stopPropagation(), (
|
|
13011
|
-
},
|
|
13012
|
-
k.stopPropagation(),
|
|
13008
|
+
}, D = (k, O, W) => {
|
|
13009
|
+
var V;
|
|
13010
|
+
k.stopPropagation(), (V = c.current) == null || V.focus(), i == null || i(O), x(k, { mode: "move", id: O, start: y(k), base: W });
|
|
13011
|
+
}, B = (k, O, W) => {
|
|
13012
|
+
k.stopPropagation(), x(k, {
|
|
13013
13013
|
mode: "resize-circle",
|
|
13014
13014
|
id: O,
|
|
13015
|
-
start:
|
|
13015
|
+
start: y(k),
|
|
13016
13016
|
base: W
|
|
13017
13017
|
});
|
|
13018
|
-
}, N = (k, O, W,
|
|
13019
|
-
k.stopPropagation(),
|
|
13018
|
+
}, N = (k, O, W, V) => {
|
|
13019
|
+
k.stopPropagation(), x(k, {
|
|
13020
13020
|
mode: "resize-rect",
|
|
13021
13021
|
id: O,
|
|
13022
|
-
start:
|
|
13022
|
+
start: y(k),
|
|
13023
13023
|
base: Kc(W),
|
|
13024
|
-
corner:
|
|
13024
|
+
corner: V
|
|
13025
13025
|
});
|
|
13026
|
-
},
|
|
13026
|
+
}, I = (k) => {
|
|
13027
13027
|
(k.key === "Delete" || k.key === "Backspace") && o != null && (k.preventDefault(), a == null || a(o));
|
|
13028
13028
|
}, A = (k, O, W) => {
|
|
13029
|
-
const
|
|
13029
|
+
const V = W && O === o, p = rt[k.color ?? "GREY"], E = W ? "pointer-events-auto cursor-move" : "pointer-events-none", L = W ? (S) => D(S, O, k) : void 0;
|
|
13030
13030
|
if (Rc(k))
|
|
13031
13031
|
return /* @__PURE__ */ U("div", { children: [
|
|
13032
13032
|
/* @__PURE__ */ b(
|
|
@@ -13034,11 +13034,11 @@ function Nm({
|
|
|
13034
13034
|
{
|
|
13035
13035
|
role: "img",
|
|
13036
13036
|
"aria-label": k.title,
|
|
13037
|
-
onPointerDown:
|
|
13037
|
+
onPointerDown: L,
|
|
13038
13038
|
className: oe(
|
|
13039
13039
|
"absolute rounded-full border-2",
|
|
13040
13040
|
E,
|
|
13041
|
-
|
|
13041
|
+
V && "outline outline-2 outline-offset-2 outline-accent"
|
|
13042
13042
|
),
|
|
13043
13043
|
style: {
|
|
13044
13044
|
left: `${k.x}%`,
|
|
@@ -13051,18 +13051,18 @@ function Nm({
|
|
|
13051
13051
|
}
|
|
13052
13052
|
}
|
|
13053
13053
|
),
|
|
13054
|
-
|
|
13054
|
+
V && /* @__PURE__ */ b(
|
|
13055
13055
|
El,
|
|
13056
13056
|
{
|
|
13057
13057
|
x: k.x + k.radius,
|
|
13058
13058
|
y: k.y,
|
|
13059
13059
|
cursor: "ew-resize",
|
|
13060
|
-
onPointerDown: (S) =>
|
|
13060
|
+
onPointerDown: (S) => B(S, O, k)
|
|
13061
13061
|
}
|
|
13062
13062
|
)
|
|
13063
13063
|
] }, O);
|
|
13064
13064
|
if (bn(k)) {
|
|
13065
|
-
const S = Math.min(k.x1, k.x2), M = Math.min(k.y1, k.y2), $ = Math.abs(k.x2 - k.x1), P = Math.abs(k.y2 - k.y1),
|
|
13065
|
+
const S = Math.min(k.x1, k.x2), M = Math.min(k.y1, k.y2), $ = Math.abs(k.x2 - k.x1), P = Math.abs(k.y2 - k.y1), R = [
|
|
13066
13066
|
{ corner: "nw", x: S, y: M, cursor: "nwse-resize" },
|
|
13067
13067
|
{ corner: "ne", x: S + $, y: M, cursor: "nesw-resize" },
|
|
13068
13068
|
{ corner: "sw", x: S, y: M + P, cursor: "nesw-resize" },
|
|
@@ -13074,11 +13074,11 @@ function Nm({
|
|
|
13074
13074
|
{
|
|
13075
13075
|
role: "img",
|
|
13076
13076
|
"aria-label": k.title,
|
|
13077
|
-
onPointerDown:
|
|
13077
|
+
onPointerDown: L,
|
|
13078
13078
|
className: oe(
|
|
13079
13079
|
"absolute border-2",
|
|
13080
13080
|
E,
|
|
13081
|
-
|
|
13081
|
+
V && "outline outline-2 outline-offset-2 outline-accent"
|
|
13082
13082
|
),
|
|
13083
13083
|
style: {
|
|
13084
13084
|
left: `${S}%`,
|
|
@@ -13090,7 +13090,7 @@ function Nm({
|
|
|
13090
13090
|
}
|
|
13091
13091
|
}
|
|
13092
13092
|
),
|
|
13093
|
-
|
|
13093
|
+
V && R.map(({ corner: J, x: ee, y: te, cursor: ae }) => /* @__PURE__ */ b(
|
|
13094
13094
|
El,
|
|
13095
13095
|
{
|
|
13096
13096
|
x: ee,
|
|
@@ -13107,7 +13107,7 @@ function Nm({
|
|
|
13107
13107
|
{
|
|
13108
13108
|
role: "img",
|
|
13109
13109
|
"aria-label": k.title,
|
|
13110
|
-
onPointerDown:
|
|
13110
|
+
onPointerDown: L,
|
|
13111
13111
|
style: {
|
|
13112
13112
|
left: `${k.x}%`,
|
|
13113
13113
|
top: `${k.y}%`,
|
|
@@ -13117,7 +13117,7 @@ function Nm({
|
|
|
13117
13117
|
className: oe(
|
|
13118
13118
|
"absolute flex min-h-6 min-w-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full px-1.5 text-xs font-semibold shadow ring-2 ring-background",
|
|
13119
13119
|
E,
|
|
13120
|
-
|
|
13120
|
+
V && "outline outline-2 outline-offset-2 outline-accent"
|
|
13121
13121
|
),
|
|
13122
13122
|
children: k.label
|
|
13123
13123
|
},
|
|
@@ -13131,18 +13131,18 @@ function Nm({
|
|
|
13131
13131
|
tabIndex: 0,
|
|
13132
13132
|
role: "application",
|
|
13133
13133
|
"aria-label": "Annotation editor",
|
|
13134
|
-
onPointerDown:
|
|
13135
|
-
onPointerMove:
|
|
13136
|
-
onPointerUp:
|
|
13137
|
-
onKeyDown:
|
|
13134
|
+
onPointerDown: v,
|
|
13135
|
+
onPointerMove: T,
|
|
13136
|
+
onPointerUp: w,
|
|
13137
|
+
onKeyDown: I,
|
|
13138
13138
|
className: oe(
|
|
13139
13139
|
"absolute inset-0 focus:outline-none",
|
|
13140
13140
|
g ? "cursor-default" : "cursor-crosshair"
|
|
13141
13141
|
),
|
|
13142
13142
|
children: [
|
|
13143
13143
|
t.map((k, O) => {
|
|
13144
|
-
const W = k.id ?? String(O),
|
|
13145
|
-
return A(
|
|
13144
|
+
const W = k.id ?? String(O), V = (d == null ? void 0 : d.id) === W && f ? f : k;
|
|
13145
|
+
return A(V, W, g);
|
|
13146
13146
|
}),
|
|
13147
13147
|
(d == null ? void 0 : d.id) === null && f && A(f, "__draft__", !1)
|
|
13148
13148
|
]
|
|
@@ -13327,38 +13327,38 @@ function Pg({
|
|
|
13327
13327
|
}) {
|
|
13328
13328
|
const o = K(null), [i, l] = G(
|
|
13329
13329
|
null
|
|
13330
|
-
), [s, a] = G(null), [c, u] = G(null), d = (
|
|
13331
|
-
const
|
|
13332
|
-
|
|
13333
|
-
}, h = c ?? (i ? e ? fr(e, i.width, i.height) : $m(i.width, i.height) : null), f = (
|
|
13334
|
-
const
|
|
13330
|
+
), [s, a] = G(null), [c, u] = G(null), d = (v) => {
|
|
13331
|
+
const T = v.currentTarget;
|
|
13332
|
+
T.naturalWidth > 0 && T.naturalHeight > 0 && l({ width: T.naturalWidth, height: T.naturalHeight });
|
|
13333
|
+
}, h = c ?? (i ? e ? fr(e, i.width, i.height) : $m(i.width, i.height) : null), f = (v) => {
|
|
13334
|
+
const T = o.current.getBoundingClientRect();
|
|
13335
13335
|
return {
|
|
13336
|
-
x: (
|
|
13337
|
-
y: (
|
|
13336
|
+
x: (v.clientX - T.left) / T.width * i.width,
|
|
13337
|
+
y: (v.clientY - T.top) / T.height * i.height
|
|
13338
13338
|
};
|
|
13339
|
-
}, m = (
|
|
13340
|
-
var
|
|
13341
|
-
|
|
13342
|
-
}, g = (
|
|
13339
|
+
}, m = (v, T) => {
|
|
13340
|
+
var w;
|
|
13341
|
+
v.stopPropagation(), (w = o.current) == null || w.setPointerCapture(v.pointerId), a(T), u(T.base);
|
|
13342
|
+
}, g = (v) => {
|
|
13343
13343
|
if (!s || !i) return;
|
|
13344
|
-
const
|
|
13344
|
+
const T = f(v), w = s.mode === "move" ? _m(
|
|
13345
13345
|
s.base,
|
|
13346
|
-
|
|
13347
|
-
|
|
13346
|
+
T.x - s.start.x,
|
|
13347
|
+
T.y - s.start.y,
|
|
13348
13348
|
i.width,
|
|
13349
13349
|
i.height
|
|
13350
13350
|
) : Bm(
|
|
13351
13351
|
s.base,
|
|
13352
13352
|
s.corner,
|
|
13353
|
-
|
|
13353
|
+
T,
|
|
13354
13354
|
i.width,
|
|
13355
13355
|
i.height
|
|
13356
13356
|
);
|
|
13357
|
-
u(
|
|
13358
|
-
},
|
|
13359
|
-
var
|
|
13360
|
-
s && c && ((
|
|
13361
|
-
},
|
|
13357
|
+
u(w);
|
|
13358
|
+
}, y = (v) => {
|
|
13359
|
+
var T;
|
|
13360
|
+
s && c && ((T = o.current) == null || T.releasePointerCapture(v.pointerId), n(c)), a(null), u(null);
|
|
13361
|
+
}, x = h && i ? {
|
|
13362
13362
|
left: h.x / i.width * 100,
|
|
13363
13363
|
top: h.y / i.height * 100,
|
|
13364
13364
|
width: h.width / i.width * 100,
|
|
@@ -13376,7 +13376,7 @@ function Pg({
|
|
|
13376
13376
|
),
|
|
13377
13377
|
style: i ? { "--crop-aspect": i.width / i.height } : void 0,
|
|
13378
13378
|
onPointerMove: g,
|
|
13379
|
-
onPointerUp:
|
|
13379
|
+
onPointerUp: y,
|
|
13380
13380
|
children: [
|
|
13381
13381
|
/* @__PURE__ */ b(
|
|
13382
13382
|
"img",
|
|
@@ -13388,35 +13388,35 @@ function Pg({
|
|
|
13388
13388
|
className: "block h-auto w-full select-none"
|
|
13389
13389
|
}
|
|
13390
13390
|
),
|
|
13391
|
-
|
|
13391
|
+
x && /* @__PURE__ */ b(
|
|
13392
13392
|
"div",
|
|
13393
13393
|
{
|
|
13394
13394
|
className: "crop-region absolute cursor-move border-2 border-background",
|
|
13395
13395
|
style: {
|
|
13396
|
-
left: `${
|
|
13397
|
-
top: `${
|
|
13398
|
-
width: `${
|
|
13399
|
-
height: `${
|
|
13396
|
+
left: `${x.left}%`,
|
|
13397
|
+
top: `${x.top}%`,
|
|
13398
|
+
width: `${x.width}%`,
|
|
13399
|
+
height: `${x.height}%`,
|
|
13400
13400
|
boxShadow: "0 0 0 9999px rgba(0, 0, 0, 0.5)"
|
|
13401
13401
|
},
|
|
13402
|
-
onPointerDown: (
|
|
13403
|
-
children: Am.map(({ corner:
|
|
13402
|
+
onPointerDown: (v) => m(v, { mode: "move", start: f(v), base: h }),
|
|
13403
|
+
children: Am.map(({ corner: v, cursor: T }) => /* @__PURE__ */ b(
|
|
13404
13404
|
"span",
|
|
13405
13405
|
{
|
|
13406
13406
|
className: "crop-handle pointer-events-auto absolute size-3 -translate-x-1/2 -translate-y-1/2 rounded-sm border border-background bg-accent shadow",
|
|
13407
13407
|
style: {
|
|
13408
|
-
left:
|
|
13409
|
-
top:
|
|
13410
|
-
cursor:
|
|
13408
|
+
left: v === "nw" || v === "sw" ? "0%" : "100%",
|
|
13409
|
+
top: v === "nw" || v === "ne" ? "0%" : "100%",
|
|
13410
|
+
cursor: T
|
|
13411
13411
|
},
|
|
13412
|
-
onPointerDown: (
|
|
13412
|
+
onPointerDown: (w) => m(w, {
|
|
13413
13413
|
mode: "resize",
|
|
13414
|
-
corner:
|
|
13415
|
-
start: f(
|
|
13414
|
+
corner: v,
|
|
13415
|
+
start: f(w),
|
|
13416
13416
|
base: h
|
|
13417
13417
|
})
|
|
13418
13418
|
},
|
|
13419
|
-
|
|
13419
|
+
v
|
|
13420
13420
|
))
|
|
13421
13421
|
}
|
|
13422
13422
|
)
|
|
@@ -13719,22 +13719,22 @@ function Xm({
|
|
|
13719
13719
|
editing: i,
|
|
13720
13720
|
className: l
|
|
13721
13721
|
}) {
|
|
13722
|
-
const [s, a] = G(!1), [c, u] = G(null), [d, h] = G(null), { onAddItem: f, onRemoveItem: m, onReorderItem: g, onSelectItem:
|
|
13722
|
+
const [s, a] = G(!1), [c, u] = G(null), [d, h] = G(null), { onAddItem: f, onRemoveItem: m, onReorderItem: g, onSelectItem: y } = i, x = t[0], v = t.slice(1), T = nt({ variant: e, size: n }), w = g != null, D = () => {
|
|
13723
13723
|
u(null), h(null);
|
|
13724
|
-
},
|
|
13725
|
-
c != null && c !== N && (g == null || g(c, N)),
|
|
13724
|
+
}, B = (N) => {
|
|
13725
|
+
c != null && c !== N && (g == null || g(c, N)), D();
|
|
13726
13726
|
};
|
|
13727
13727
|
return /* @__PURE__ */ U("div", { className: oe("relative inline-flex flex-col items-start", l), children: [
|
|
13728
13728
|
/* @__PURE__ */ U("div", { className: So({ orientation: "horizontal" }).base(), children: [
|
|
13729
|
-
/* @__PURE__ */ U("span", { className: oe(
|
|
13729
|
+
/* @__PURE__ */ U("span", { className: oe(T, "cursor-text"), children: [
|
|
13730
13730
|
r,
|
|
13731
|
-
|
|
13731
|
+
x ? x.props.children : /* @__PURE__ */ b("span", { className: "opacity-60", children: "Add a link" })
|
|
13732
13732
|
] }),
|
|
13733
|
-
|
|
13733
|
+
x && y && /* @__PURE__ */ U(
|
|
13734
13734
|
"button",
|
|
13735
13735
|
{
|
|
13736
13736
|
type: "button",
|
|
13737
|
-
onClick: () =>
|
|
13737
|
+
onClick: () => y(0),
|
|
13738
13738
|
"aria-label": "Edit primary link",
|
|
13739
13739
|
className: nt({ variant: e, size: n, isIconOnly: !0 }),
|
|
13740
13740
|
children: [
|
|
@@ -13752,7 +13752,7 @@ function Xm({
|
|
|
13752
13752
|
"aria-expanded": s,
|
|
13753
13753
|
className: nt({ variant: e, size: n, isIconOnly: !0 }),
|
|
13754
13754
|
children: [
|
|
13755
|
-
!(
|
|
13755
|
+
!(x && y) && /* @__PURE__ */ b(ho, {}),
|
|
13756
13756
|
/* @__PURE__ */ b(Ac, {})
|
|
13757
13757
|
]
|
|
13758
13758
|
}
|
|
@@ -13768,28 +13768,28 @@ function Xm({
|
|
|
13768
13768
|
}
|
|
13769
13769
|
),
|
|
13770
13770
|
/* @__PURE__ */ U("div", { className: "absolute left-0 top-full z-50 mt-2 w-64 rounded-lg border border-default-200 bg-background p-2 shadow-lg", children: [
|
|
13771
|
-
|
|
13772
|
-
const A =
|
|
13771
|
+
v.length > 0 ? /* @__PURE__ */ b("ul", { className: "flex flex-col gap-0.5", children: v.map((N, I) => {
|
|
13772
|
+
const A = I + 1;
|
|
13773
13773
|
return /* @__PURE__ */ U(
|
|
13774
13774
|
"li",
|
|
13775
13775
|
{
|
|
13776
|
-
draggable:
|
|
13777
|
-
onDragStart:
|
|
13778
|
-
onDragOver:
|
|
13776
|
+
draggable: w || void 0,
|
|
13777
|
+
onDragStart: w ? () => u(A) : void 0,
|
|
13778
|
+
onDragOver: w ? (k) => {
|
|
13779
13779
|
k.preventDefault(), h(A);
|
|
13780
13780
|
} : void 0,
|
|
13781
|
-
onDrop:
|
|
13782
|
-
k.preventDefault(),
|
|
13781
|
+
onDrop: w ? (k) => {
|
|
13782
|
+
k.preventDefault(), B(A);
|
|
13783
13783
|
} : void 0,
|
|
13784
|
-
onDragEnd:
|
|
13784
|
+
onDragEnd: w ? D : void 0,
|
|
13785
13785
|
className: oe(
|
|
13786
13786
|
"flex items-center gap-1.5 rounded-md px-1.5 py-1 transition",
|
|
13787
|
-
|
|
13787
|
+
w && "cursor-grab",
|
|
13788
13788
|
c === A && "opacity-40",
|
|
13789
13789
|
d === A && c !== A && "ring-2 ring-accent"
|
|
13790
13790
|
),
|
|
13791
13791
|
children: [
|
|
13792
|
-
|
|
13792
|
+
w && /* @__PURE__ */ b("span", { className: "shrink-0 text-default-400", children: /* @__PURE__ */ b(Gm, {}) }),
|
|
13793
13793
|
/* @__PURE__ */ b("span", { className: "min-w-0 flex-1 text-sm", children: N.props.children }),
|
|
13794
13794
|
g && /* @__PURE__ */ b(
|
|
13795
13795
|
"button",
|
|
@@ -13801,11 +13801,11 @@ function Xm({
|
|
|
13801
13801
|
children: /* @__PURE__ */ b(Um, {})
|
|
13802
13802
|
}
|
|
13803
13803
|
),
|
|
13804
|
-
|
|
13804
|
+
y && /* @__PURE__ */ b(
|
|
13805
13805
|
"button",
|
|
13806
13806
|
{
|
|
13807
13807
|
type: "button",
|
|
13808
|
-
onClick: () =>
|
|
13808
|
+
onClick: () => y(A),
|
|
13809
13809
|
"aria-label": "Edit link",
|
|
13810
13810
|
className: "shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
|
|
13811
13811
|
children: /* @__PURE__ */ b(Pl, {})
|
|
@@ -14027,16 +14027,16 @@ function zc({
|
|
|
14027
14027
|
};
|
|
14028
14028
|
return /* @__PURE__ */ U("ul", { className: oe("flex flex-col gap-2", e), children: [
|
|
14029
14029
|
u.map(
|
|
14030
|
-
(g,
|
|
14031
|
-
key: g.key ??
|
|
14030
|
+
(g, y) => Nt(g, {
|
|
14031
|
+
key: g.key ?? y,
|
|
14032
14032
|
__edit: {
|
|
14033
14033
|
canReorder: d,
|
|
14034
|
-
isDragging: r ===
|
|
14035
|
-
isOver: i ===
|
|
14036
|
-
onRemove: h ? () => a == null ? void 0 : a(
|
|
14037
|
-
onDragStart: () => o(
|
|
14038
|
-
onDragOver: () => l(
|
|
14039
|
-
onDrop: () => m(
|
|
14034
|
+
isDragging: r === y,
|
|
14035
|
+
isOver: i === y && r !== y,
|
|
14036
|
+
onRemove: h ? () => a == null ? void 0 : a(y) : void 0,
|
|
14037
|
+
onDragStart: () => o(y),
|
|
14038
|
+
onDragOver: () => l(y),
|
|
14039
|
+
onDrop: () => m(y),
|
|
14040
14040
|
onDragEnd: f
|
|
14041
14041
|
}
|
|
14042
14042
|
})
|
|
@@ -14093,7 +14093,7 @@ function Hc(t) {
|
|
|
14093
14093
|
}
|
|
14094
14094
|
) : null, f = /* @__PURE__ */ b("div", { className: "min-w-0 flex-1", children: s });
|
|
14095
14095
|
else {
|
|
14096
|
-
const
|
|
14096
|
+
const T = r ?? tg[e], w = e === "caution" ? /* @__PURE__ */ b(ng, {}) : e === "reminder" ? /* @__PURE__ */ b(og, {}) : /* @__PURE__ */ b(rg, {});
|
|
14097
14097
|
h = i ? /* @__PURE__ */ b(
|
|
14098
14098
|
"button",
|
|
14099
14099
|
{
|
|
@@ -14101,12 +14101,12 @@ function Hc(t) {
|
|
|
14101
14101
|
onClick: i,
|
|
14102
14102
|
"aria-label": l ?? "Change bullet style",
|
|
14103
14103
|
className: "shrink-0 cursor-pointer rounded outline-none transition hover:opacity-70 focus-visible:ring-2 focus-visible:ring-accent",
|
|
14104
|
-
children:
|
|
14104
|
+
children: w
|
|
14105
14105
|
}
|
|
14106
|
-
) :
|
|
14106
|
+
) : w, f = /* @__PURE__ */ U("span", { className: "flex-1", children: [
|
|
14107
14107
|
!o && /* @__PURE__ */ U(gt, { children: [
|
|
14108
14108
|
/* @__PURE__ */ U("span", { className: "font-semibold", children: [
|
|
14109
|
-
|
|
14109
|
+
T,
|
|
14110
14110
|
":"
|
|
14111
14111
|
] }),
|
|
14112
14112
|
" "
|
|
@@ -14125,25 +14125,25 @@ function Hc(t) {
|
|
|
14125
14125
|
h,
|
|
14126
14126
|
f
|
|
14127
14127
|
] });
|
|
14128
|
-
const { canReorder: g, isDragging:
|
|
14128
|
+
const { canReorder: g, isDragging: y, isOver: x, onRemove: v } = c;
|
|
14129
14129
|
return /* @__PURE__ */ U(
|
|
14130
14130
|
"li",
|
|
14131
14131
|
{
|
|
14132
14132
|
className: oe(
|
|
14133
14133
|
"group rounded-md",
|
|
14134
14134
|
m,
|
|
14135
|
-
|
|
14136
|
-
|
|
14135
|
+
y && "opacity-40",
|
|
14136
|
+
x && "ring-2 ring-accent"
|
|
14137
14137
|
),
|
|
14138
14138
|
draggable: g && u ? !0 : void 0,
|
|
14139
|
-
onDragStart: g ? (
|
|
14140
|
-
|
|
14139
|
+
onDragStart: g ? (T) => {
|
|
14140
|
+
T.dataTransfer.effectAllowed = "move", c.onDragStart();
|
|
14141
14141
|
} : void 0,
|
|
14142
|
-
onDragOver: g ? (
|
|
14143
|
-
|
|
14142
|
+
onDragOver: g ? (T) => {
|
|
14143
|
+
T.preventDefault(), T.dataTransfer.dropEffect = "move", c.onDragOver();
|
|
14144
14144
|
} : void 0,
|
|
14145
|
-
onDrop: g ? (
|
|
14146
|
-
|
|
14145
|
+
onDrop: g ? (T) => {
|
|
14146
|
+
T.preventDefault(), c.onDrop();
|
|
14147
14147
|
} : void 0,
|
|
14148
14148
|
onDragEnd: g ? () => {
|
|
14149
14149
|
d(!1), c.onDragEnd();
|
|
@@ -14161,11 +14161,11 @@ function Hc(t) {
|
|
|
14161
14161
|
),
|
|
14162
14162
|
h,
|
|
14163
14163
|
f,
|
|
14164
|
-
|
|
14164
|
+
v && /* @__PURE__ */ b(
|
|
14165
14165
|
"button",
|
|
14166
14166
|
{
|
|
14167
14167
|
type: "button",
|
|
14168
|
-
onClick:
|
|
14168
|
+
onClick: v,
|
|
14169
14169
|
"aria-label": "Remove bullet",
|
|
14170
14170
|
className: "mt-1 shrink-0 rounded p-0.5 text-default-400 opacity-0 transition hover:text-danger focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent group-hover:opacity-100",
|
|
14171
14171
|
children: /* @__PURE__ */ b(_c, {})
|
|
@@ -14196,15 +14196,15 @@ function hg({
|
|
|
14196
14196
|
bullets: e,
|
|
14197
14197
|
mediaEditing: n
|
|
14198
14198
|
}) {
|
|
14199
|
-
const r = n != null, [o, i] = G(0), [l, s] = G(null), [a, c] = G(null), u = (n == null ? void 0 : n.activeIndex) ?? o, d = t[u] ?? t[0],
|
|
14200
|
-
var
|
|
14201
|
-
i(
|
|
14202
|
-
},
|
|
14199
|
+
const r = n != null, [o, i] = G(0), [l, s] = G(null), [a, c] = G(null), u = (n == null ? void 0 : n.activeIndex) ?? o, d = t[u] ?? t[0], f = ((d == null ? void 0 : d.props.type) ?? "image") === "image", m = (w) => {
|
|
14200
|
+
var D;
|
|
14201
|
+
i(w), (D = n == null ? void 0 : n.onSelectImage) == null || D.call(n, w);
|
|
14202
|
+
}, g = r && (n == null ? void 0 : n.onReorderImage) != null && t.length > 1, y = () => {
|
|
14203
14203
|
s(null), c(null);
|
|
14204
|
-
},
|
|
14205
|
-
var
|
|
14206
|
-
l != null && l !==
|
|
14207
|
-
}, v = r && ((n == null ? void 0 : n.canAddImage) ?? !0) && t.length >= 1 && t.length < Fc,
|
|
14204
|
+
}, x = (w) => {
|
|
14205
|
+
var D;
|
|
14206
|
+
l != null && l !== w && ((D = n == null ? void 0 : n.onReorderImage) == null || D.call(n, l, w)), y();
|
|
14207
|
+
}, v = r && ((n == null ? void 0 : n.canAddImage) ?? !0) && t.length >= 1 && t.length < Fc, T = r ? t.length >= 1 : t.length > 1;
|
|
14208
14208
|
return /* @__PURE__ */ U("div", { className: "grid grid-cols-1 gap-6 sm:grid-cols-2", children: [
|
|
14209
14209
|
/* @__PURE__ */ b("div", { className: "min-w-0", children: d ? r ? /* @__PURE__ */ U("div", { className: "group relative", children: [
|
|
14210
14210
|
Nt(d, {
|
|
@@ -14212,13 +14212,13 @@ function hg({
|
|
|
14212
14212
|
zoomable: !1
|
|
14213
14213
|
}),
|
|
14214
14214
|
/* @__PURE__ */ U("div", { className: "absolute inset-0 flex items-center justify-center gap-2 rounded-lg opacity-0 transition group-hover:bg-foreground/40 group-hover:opacity-100 focus-within:bg-foreground/40 focus-within:opacity-100", children: [
|
|
14215
|
-
/* @__PURE__ */ U(
|
|
14215
|
+
f && /* @__PURE__ */ U(
|
|
14216
14216
|
"button",
|
|
14217
14217
|
{
|
|
14218
14218
|
type: "button",
|
|
14219
14219
|
onClick: () => {
|
|
14220
|
-
var
|
|
14221
|
-
return (
|
|
14220
|
+
var w;
|
|
14221
|
+
return (w = n == null ? void 0 : n.onEditAnnotations) == null ? void 0 : w.call(n, u);
|
|
14222
14222
|
},
|
|
14223
14223
|
className: "flex items-center gap-1.5 rounded-md bg-background/90 px-2.5 py-1.5 text-sm font-semibold text-foreground shadow transition hover:bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
|
|
14224
14224
|
children: [
|
|
@@ -14227,13 +14227,13 @@ function hg({
|
|
|
14227
14227
|
]
|
|
14228
14228
|
}
|
|
14229
14229
|
),
|
|
14230
|
-
(n == null ? void 0 : n.onEditCrop) && /* @__PURE__ */ U(
|
|
14230
|
+
f && (n == null ? void 0 : n.onEditCrop) && /* @__PURE__ */ U(
|
|
14231
14231
|
"button",
|
|
14232
14232
|
{
|
|
14233
14233
|
type: "button",
|
|
14234
14234
|
onClick: () => {
|
|
14235
|
-
var
|
|
14236
|
-
return (
|
|
14235
|
+
var w;
|
|
14236
|
+
return (w = n == null ? void 0 : n.onEditCrop) == null ? void 0 : w.call(n, u);
|
|
14237
14237
|
},
|
|
14238
14238
|
className: "flex items-center gap-1.5 rounded-md bg-background/90 px-2.5 py-1.5 text-sm font-semibold text-foreground shadow transition hover:bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
|
|
14239
14239
|
children: [
|
|
@@ -14250,8 +14250,8 @@ function hg({
|
|
|
14250
14250
|
{
|
|
14251
14251
|
type: "button",
|
|
14252
14252
|
onClick: () => {
|
|
14253
|
-
var
|
|
14254
|
-
return (
|
|
14253
|
+
var w;
|
|
14254
|
+
return (w = n == null ? void 0 : n.onAddImage) == null ? void 0 : w.call(n);
|
|
14255
14255
|
},
|
|
14256
14256
|
className: "flex aspect-[4/3] w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-default bg-default-soft text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none",
|
|
14257
14257
|
children: [
|
|
@@ -14261,7 +14261,7 @@ function hg({
|
|
|
14261
14261
|
}
|
|
14262
14262
|
) }),
|
|
14263
14263
|
/* @__PURE__ */ U("div", { className: "flex min-w-0 flex-col gap-4", children: [
|
|
14264
|
-
(
|
|
14264
|
+
(T || v) && /* @__PURE__ */ U(
|
|
14265
14265
|
"div",
|
|
14266
14266
|
{
|
|
14267
14267
|
className: "flex flex-wrap gap-2",
|
|
@@ -14269,26 +14269,26 @@ function hg({
|
|
|
14269
14269
|
"aria-label": "Step images",
|
|
14270
14270
|
children: [
|
|
14271
14271
|
t.map(
|
|
14272
|
-
(
|
|
14272
|
+
(w, D) => r ? /* @__PURE__ */ U(
|
|
14273
14273
|
"div",
|
|
14274
14274
|
{
|
|
14275
14275
|
className: oe(
|
|
14276
14276
|
"relative rounded-md transition-shadow",
|
|
14277
|
-
|
|
14278
|
-
l ===
|
|
14279
|
-
a ===
|
|
14277
|
+
g && "cursor-grab",
|
|
14278
|
+
l === D && "opacity-40",
|
|
14279
|
+
a === D && l !== D && "ring-2 ring-accent ring-offset-2 ring-offset-background"
|
|
14280
14280
|
),
|
|
14281
|
-
draggable:
|
|
14282
|
-
onDragStart:
|
|
14283
|
-
|
|
14281
|
+
draggable: g || void 0,
|
|
14282
|
+
onDragStart: g ? (B) => {
|
|
14283
|
+
B.dataTransfer.effectAllowed = "move", s(D);
|
|
14284
14284
|
} : void 0,
|
|
14285
|
-
onDragOver:
|
|
14286
|
-
|
|
14285
|
+
onDragOver: g ? (B) => {
|
|
14286
|
+
B.preventDefault(), B.dataTransfer.dropEffect = "move", c(D);
|
|
14287
14287
|
} : void 0,
|
|
14288
|
-
onDrop:
|
|
14289
|
-
|
|
14288
|
+
onDrop: g ? (B) => {
|
|
14289
|
+
B.preventDefault(), x(D);
|
|
14290
14290
|
} : void 0,
|
|
14291
|
-
onDragEnd:
|
|
14291
|
+
onDragEnd: g ? y : void 0,
|
|
14292
14292
|
children: [
|
|
14293
14293
|
/* @__PURE__ */ b(
|
|
14294
14294
|
"button",
|
|
@@ -14296,16 +14296,16 @@ function hg({
|
|
|
14296
14296
|
type: "button",
|
|
14297
14297
|
className: oe(
|
|
14298
14298
|
"block overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",
|
|
14299
|
-
|
|
14299
|
+
D === u ? "border-accent shadow-md" : "border-default opacity-80 hover:opacity-100"
|
|
14300
14300
|
),
|
|
14301
|
-
onClick: () =>
|
|
14302
|
-
"aria-label": `Image ${
|
|
14303
|
-
"aria-pressed":
|
|
14301
|
+
onClick: () => m(D),
|
|
14302
|
+
"aria-label": `Image ${D + 1}`,
|
|
14303
|
+
"aria-pressed": D === u,
|
|
14304
14304
|
children: /* @__PURE__ */ b(
|
|
14305
14305
|
Sl,
|
|
14306
14306
|
{
|
|
14307
|
-
src:
|
|
14308
|
-
type:
|
|
14307
|
+
src: w.props.src,
|
|
14308
|
+
type: w.props.type,
|
|
14309
14309
|
className: "size-16 sm:size-20"
|
|
14310
14310
|
}
|
|
14311
14311
|
)
|
|
@@ -14316,39 +14316,39 @@ function hg({
|
|
|
14316
14316
|
{
|
|
14317
14317
|
type: "button",
|
|
14318
14318
|
onClick: () => {
|
|
14319
|
-
var
|
|
14320
|
-
return (
|
|
14319
|
+
var B;
|
|
14320
|
+
return (B = n == null ? void 0 : n.onRemoveImage) == null ? void 0 : B.call(n, D);
|
|
14321
14321
|
},
|
|
14322
|
-
"aria-label": `Remove image ${
|
|
14322
|
+
"aria-label": `Remove image ${D + 1}`,
|
|
14323
14323
|
className: "absolute -right-1.5 -top-1.5 flex size-5 items-center justify-center rounded-full bg-foreground text-background shadow transition hover:bg-danger focus-visible:bg-danger focus-visible:outline-none",
|
|
14324
14324
|
children: /* @__PURE__ */ b(_c, {})
|
|
14325
14325
|
}
|
|
14326
14326
|
)
|
|
14327
14327
|
]
|
|
14328
14328
|
},
|
|
14329
|
-
|
|
14329
|
+
w.key ?? w.props.src ?? D
|
|
14330
14330
|
) : /* @__PURE__ */ b(
|
|
14331
14331
|
"button",
|
|
14332
14332
|
{
|
|
14333
14333
|
type: "button",
|
|
14334
14334
|
className: oe(
|
|
14335
14335
|
"overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",
|
|
14336
|
-
|
|
14336
|
+
D === u ? "border-accent shadow-md" : "border-default opacity-80 hover:opacity-100"
|
|
14337
14337
|
),
|
|
14338
|
-
onMouseEnter: () =>
|
|
14339
|
-
onFocus: () =>
|
|
14340
|
-
"aria-label": `Image ${
|
|
14341
|
-
"aria-pressed":
|
|
14338
|
+
onMouseEnter: () => m(D),
|
|
14339
|
+
onFocus: () => m(D),
|
|
14340
|
+
"aria-label": `Image ${D + 1}`,
|
|
14341
|
+
"aria-pressed": D === u,
|
|
14342
14342
|
children: /* @__PURE__ */ b(
|
|
14343
14343
|
Sl,
|
|
14344
14344
|
{
|
|
14345
|
-
src:
|
|
14346
|
-
type:
|
|
14345
|
+
src: w.props.src,
|
|
14346
|
+
type: w.props.type,
|
|
14347
14347
|
className: "size-16 sm:size-20"
|
|
14348
14348
|
}
|
|
14349
14349
|
)
|
|
14350
14350
|
},
|
|
14351
|
-
|
|
14351
|
+
w.key ?? w.props.src ?? D
|
|
14352
14352
|
)
|
|
14353
14353
|
),
|
|
14354
14354
|
v && /* @__PURE__ */ b(
|
|
@@ -14356,8 +14356,8 @@ function hg({
|
|
|
14356
14356
|
{
|
|
14357
14357
|
type: "button",
|
|
14358
14358
|
onClick: () => {
|
|
14359
|
-
var
|
|
14360
|
-
return (
|
|
14359
|
+
var w;
|
|
14360
|
+
return (w = n == null ? void 0 : n.onAddImage) == null ? void 0 : w.call(n);
|
|
14361
14361
|
},
|
|
14362
14362
|
"aria-label": "Add image",
|
|
14363
14363
|
className: "flex size-16 items-center justify-center rounded-md border-2 border-dashed border-default text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none sm:size-20",
|