my-header-yichong 3.3.5 → 3.3.6
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/my-header.js +299 -299
- package/my-header.umd.cjs +9 -9
- package/package.json +1 -1
- package/style.css +0 -18
package/my-header.js
CHANGED
|
@@ -304,21 +304,21 @@ function bo(e, t, n) {
|
|
|
304
304
|
const o = n.metaTokens, r = n.visitor || c, s = n.dots, a = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && S.isSpecCompliantForm(t);
|
|
305
305
|
if (!S.isFunction(r))
|
|
306
306
|
throw new TypeError("visitor must be a function");
|
|
307
|
-
function l(
|
|
308
|
-
if (
|
|
307
|
+
function l(f) {
|
|
308
|
+
if (f === null)
|
|
309
309
|
return "";
|
|
310
|
-
if (S.isDate(
|
|
311
|
-
return
|
|
312
|
-
if (!u && S.isBlob(
|
|
310
|
+
if (S.isDate(f))
|
|
311
|
+
return f.toISOString();
|
|
312
|
+
if (!u && S.isBlob(f))
|
|
313
313
|
throw new J("Blob is not supported. Use a Buffer instead.");
|
|
314
|
-
return S.isArrayBuffer(
|
|
314
|
+
return S.isArrayBuffer(f) || S.isTypedArray(f) ? u && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
315
315
|
}
|
|
316
|
-
function c(
|
|
317
|
-
let g =
|
|
318
|
-
if (
|
|
316
|
+
function c(f, v, _) {
|
|
317
|
+
let g = f;
|
|
318
|
+
if (f && !_ && typeof f == "object") {
|
|
319
319
|
if (S.endsWith(v, "{}"))
|
|
320
|
-
v = o ? v : v.slice(0, -2),
|
|
321
|
-
else if (S.isArray(
|
|
320
|
+
v = o ? v : v.slice(0, -2), f = JSON.stringify(f);
|
|
321
|
+
else if (S.isArray(f) && ku(f) || (S.isFileList(f) || S.endsWith(v, "[]")) && (g = S.toArray(f)))
|
|
322
322
|
return v = Ra(v), g.forEach(function(P, C) {
|
|
323
323
|
!(S.isUndefined(P) || P === null) && t.append(
|
|
324
324
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -327,24 +327,24 @@ function bo(e, t, n) {
|
|
|
327
327
|
);
|
|
328
328
|
}), !1;
|
|
329
329
|
}
|
|
330
|
-
return Xo(
|
|
330
|
+
return Xo(f) ? !0 : (t.append(cs(_, v, s), l(f)), !1);
|
|
331
331
|
}
|
|
332
|
-
const d = [],
|
|
332
|
+
const d = [], p = Object.assign(Tu, {
|
|
333
333
|
defaultVisitor: c,
|
|
334
334
|
convertValue: l,
|
|
335
335
|
isVisitable: Xo
|
|
336
336
|
});
|
|
337
|
-
function m(
|
|
338
|
-
if (!S.isUndefined(
|
|
339
|
-
if (d.indexOf(
|
|
337
|
+
function m(f, v) {
|
|
338
|
+
if (!S.isUndefined(f)) {
|
|
339
|
+
if (d.indexOf(f) !== -1)
|
|
340
340
|
throw Error("Circular reference detected in " + v.join("."));
|
|
341
|
-
d.push(
|
|
341
|
+
d.push(f), S.forEach(f, function(g, k) {
|
|
342
342
|
(!(S.isUndefined(g) || g === null) && r.call(
|
|
343
343
|
t,
|
|
344
344
|
g,
|
|
345
345
|
S.isString(k) ? k.trim() : k,
|
|
346
346
|
v,
|
|
347
|
-
|
|
347
|
+
p
|
|
348
348
|
)) === !0 && m(g, v ? v.concat(k) : [k]);
|
|
349
349
|
}), d.pop();
|
|
350
350
|
}
|
|
@@ -870,13 +870,13 @@ function Qu(e, t) {
|
|
|
870
870
|
return t = t !== void 0 ? t : 1e3, function(u) {
|
|
871
871
|
const l = Date.now(), c = o[s];
|
|
872
872
|
a || (a = l), n[r] = u, o[r] = l;
|
|
873
|
-
let d = s,
|
|
873
|
+
let d = s, p = 0;
|
|
874
874
|
for (; d !== r; )
|
|
875
|
-
|
|
875
|
+
p += n[d++], d = d % e;
|
|
876
876
|
if (r = (r + 1) % e, r === s && (s = (s + 1) % e), l - a < t)
|
|
877
877
|
return;
|
|
878
878
|
const m = c && l - c;
|
|
879
|
-
return m ? Math.round(
|
|
879
|
+
return m ? Math.round(p * 1e3 / m) : void 0;
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
882
|
function hs(e, t) {
|
|
@@ -908,8 +908,8 @@ const Xu = typeof XMLHttpRequest < "u", ec = Xu && function(e) {
|
|
|
908
908
|
S.isFormData(r) && (Be.isStandardBrowserEnv || Be.isStandardBrowserWebWorkerEnv ? s.setContentType(!1) : s.setContentType("multipart/form-data;", !1));
|
|
909
909
|
let l = new XMLHttpRequest();
|
|
910
910
|
if (e.auth) {
|
|
911
|
-
const m = e.auth.username || "",
|
|
912
|
-
s.set("Authorization", "Basic " + btoa(m + ":" +
|
|
911
|
+
const m = e.auth.username || "", f = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
912
|
+
s.set("Authorization", "Basic " + btoa(m + ":" + f));
|
|
913
913
|
}
|
|
914
914
|
const c = Ha(e.baseURL, e.url);
|
|
915
915
|
l.open(e.method.toUpperCase(), Fa(c, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
|
|
@@ -939,10 +939,10 @@ const Xu = typeof XMLHttpRequest < "u", ec = Xu && function(e) {
|
|
|
939
939
|
}, l.onerror = function() {
|
|
940
940
|
o(new J("Network Error", J.ERR_NETWORK, e, l)), l = null;
|
|
941
941
|
}, l.ontimeout = function() {
|
|
942
|
-
let
|
|
942
|
+
let f = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
943
943
|
const v = e.transitional || ja;
|
|
944
|
-
e.timeoutErrorMessage && (
|
|
945
|
-
|
|
944
|
+
e.timeoutErrorMessage && (f = e.timeoutErrorMessage), o(new J(
|
|
945
|
+
f,
|
|
946
946
|
v.clarifyTimeoutError ? J.ETIMEDOUT : J.ECONNABORTED,
|
|
947
947
|
e,
|
|
948
948
|
l
|
|
@@ -951,14 +951,14 @@ const Xu = typeof XMLHttpRequest < "u", ec = Xu && function(e) {
|
|
|
951
951
|
const m = (e.withCredentials || Yu(c)) && e.xsrfCookieName && Gu.read(e.xsrfCookieName);
|
|
952
952
|
m && s.set(e.xsrfHeaderName, m);
|
|
953
953
|
}
|
|
954
|
-
r === void 0 && s.setContentType(null), "setRequestHeader" in l && S.forEach(s.toJSON(), function(
|
|
955
|
-
l.setRequestHeader(v,
|
|
954
|
+
r === void 0 && s.setContentType(null), "setRequestHeader" in l && S.forEach(s.toJSON(), function(f, v) {
|
|
955
|
+
l.setRequestHeader(v, f);
|
|
956
956
|
}), S.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", hs(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", hs(e.onUploadProgress)), (e.cancelToken || e.signal) && (i = (m) => {
|
|
957
957
|
l && (o(!m || m.type ? new An(null, e, l) : m), l.abort(), l = null);
|
|
958
958
|
}, e.cancelToken && e.cancelToken.subscribe(i), e.signal && (e.signal.aborted ? i() : e.signal.addEventListener("abort", i)));
|
|
959
|
-
const
|
|
960
|
-
if (
|
|
961
|
-
o(new J("Unsupported protocol " +
|
|
959
|
+
const p = Zu(c);
|
|
960
|
+
if (p && Be.protocols.indexOf(p) === -1) {
|
|
961
|
+
o(new J("Unsupported protocol " + p + ":", J.ERR_BAD_REQUEST, e));
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
964
|
l.send(r || null);
|
|
@@ -1080,8 +1080,8 @@ function Dt(e, t) {
|
|
|
1080
1080
|
headers: (l, c) => r(vs(l), vs(c), !0)
|
|
1081
1081
|
};
|
|
1082
1082
|
return S.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
|
|
1083
|
-
const d = u[c] || r,
|
|
1084
|
-
S.isUndefined(
|
|
1083
|
+
const d = u[c] || r, p = d(e[c], t[c], c);
|
|
1084
|
+
S.isUndefined(p) && d !== i || (n[c] = p);
|
|
1085
1085
|
}), n;
|
|
1086
1086
|
}
|
|
1087
1087
|
const za = "1.4.0", Er = {};
|
|
@@ -1164,8 +1164,8 @@ class io {
|
|
|
1164
1164
|
s[n.method]
|
|
1165
1165
|
), a && S.forEach(
|
|
1166
1166
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1167
|
-
(
|
|
1168
|
-
delete s[
|
|
1167
|
+
(f) => {
|
|
1168
|
+
delete s[f];
|
|
1169
1169
|
}
|
|
1170
1170
|
), n.headers = et.concat(a, s);
|
|
1171
1171
|
const i = [];
|
|
@@ -1177,19 +1177,19 @@ class io {
|
|
|
1177
1177
|
this.interceptors.response.forEach(function(v) {
|
|
1178
1178
|
l.push(v.fulfilled, v.rejected);
|
|
1179
1179
|
});
|
|
1180
|
-
let c, d = 0,
|
|
1180
|
+
let c, d = 0, p;
|
|
1181
1181
|
if (!u) {
|
|
1182
|
-
const
|
|
1183
|
-
for (
|
|
1184
|
-
c = c.then(
|
|
1182
|
+
const f = [ms.bind(this), void 0];
|
|
1183
|
+
for (f.unshift.apply(f, i), f.push.apply(f, l), p = f.length, c = Promise.resolve(n); d < p; )
|
|
1184
|
+
c = c.then(f[d++], f[d++]);
|
|
1185
1185
|
return c;
|
|
1186
1186
|
}
|
|
1187
|
-
|
|
1187
|
+
p = i.length;
|
|
1188
1188
|
let m = n;
|
|
1189
|
-
for (d = 0; d <
|
|
1190
|
-
const
|
|
1189
|
+
for (d = 0; d < p; ) {
|
|
1190
|
+
const f = i[d++], v = i[d++];
|
|
1191
1191
|
try {
|
|
1192
|
-
m =
|
|
1192
|
+
m = f(m);
|
|
1193
1193
|
} catch (_) {
|
|
1194
1194
|
v.call(this, _);
|
|
1195
1195
|
break;
|
|
@@ -1197,10 +1197,10 @@ class io {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
try {
|
|
1199
1199
|
c = ms.call(this, m);
|
|
1200
|
-
} catch (
|
|
1201
|
-
return Promise.reject(
|
|
1200
|
+
} catch (f) {
|
|
1201
|
+
return Promise.reject(f);
|
|
1202
1202
|
}
|
|
1203
|
-
for (d = 0,
|
|
1203
|
+
for (d = 0, p = l.length; d < p; )
|
|
1204
1204
|
c = c.then(l[d++], l[d++]);
|
|
1205
1205
|
return c;
|
|
1206
1206
|
}
|
|
@@ -1538,8 +1538,8 @@ function eo(...e) {
|
|
|
1538
1538
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
1539
1539
|
const s = [], a = () => {
|
|
1540
1540
|
s.forEach((c) => c()), s.length = 0;
|
|
1541
|
-
}, i = (c, d,
|
|
1542
|
-
a(), c && s.push(...n.flatMap((
|
|
1541
|
+
}, i = (c, d, p, m) => (c.addEventListener(d, p, m), () => c.removeEventListener(d, p, m)), u = Y(() => [at(t), Or(r)], ([c, d]) => {
|
|
1542
|
+
a(), c && s.push(...n.flatMap((p) => o.map((m) => i(c, p, m, d))));
|
|
1543
1543
|
}, { immediate: !0, flush: "post" }), l = () => {
|
|
1544
1544
|
u(), a();
|
|
1545
1545
|
};
|
|
@@ -1550,37 +1550,37 @@ function pc(e, t, n = {}) {
|
|
|
1550
1550
|
const { window: o = kr, ignore: r = [], capture: s = !0, detectIframe: a = !1 } = n;
|
|
1551
1551
|
if (!o)
|
|
1552
1552
|
return;
|
|
1553
|
-
cc && !ws && (ws = !0, Array.from(o.document.body.children).forEach((
|
|
1553
|
+
cc && !ws && (ws = !0, Array.from(o.document.body.children).forEach((p) => p.addEventListener("click", Wa)));
|
|
1554
1554
|
let i = !0;
|
|
1555
|
-
const u = (
|
|
1555
|
+
const u = (p) => r.some((m) => {
|
|
1556
1556
|
if (typeof m == "string")
|
|
1557
|
-
return Array.from(o.document.querySelectorAll(m)).some((
|
|
1557
|
+
return Array.from(o.document.querySelectorAll(m)).some((f) => f === p.target || p.composedPath().includes(f));
|
|
1558
1558
|
{
|
|
1559
|
-
const
|
|
1560
|
-
return
|
|
1559
|
+
const f = at(m);
|
|
1560
|
+
return f && (p.target === f || p.composedPath().includes(f));
|
|
1561
1561
|
}
|
|
1562
1562
|
}), c = [
|
|
1563
|
-
eo(o, "click", (
|
|
1563
|
+
eo(o, "click", (p) => {
|
|
1564
1564
|
const m = at(e);
|
|
1565
|
-
if (!(!m || m ===
|
|
1566
|
-
if (
|
|
1565
|
+
if (!(!m || m === p.target || p.composedPath().includes(m))) {
|
|
1566
|
+
if (p.detail === 0 && (i = !u(p)), !i) {
|
|
1567
1567
|
i = !0;
|
|
1568
1568
|
return;
|
|
1569
1569
|
}
|
|
1570
|
-
t(
|
|
1570
|
+
t(p);
|
|
1571
1571
|
}
|
|
1572
1572
|
}, { passive: !0, capture: s }),
|
|
1573
|
-
eo(o, "pointerdown", (
|
|
1573
|
+
eo(o, "pointerdown", (p) => {
|
|
1574
1574
|
const m = at(e);
|
|
1575
|
-
m && (i = !
|
|
1575
|
+
m && (i = !p.composedPath().includes(m) && !u(p));
|
|
1576
1576
|
}, { passive: !0 }),
|
|
1577
|
-
a && eo(o, "blur", (
|
|
1577
|
+
a && eo(o, "blur", (p) => {
|
|
1578
1578
|
var m;
|
|
1579
|
-
const
|
|
1580
|
-
((m = o.document.activeElement) == null ? void 0 : m.tagName) === "IFRAME" && !(
|
|
1579
|
+
const f = at(e);
|
|
1580
|
+
((m = o.document.activeElement) == null ? void 0 : m.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && t(p);
|
|
1581
1581
|
})
|
|
1582
1582
|
].filter(Boolean);
|
|
1583
|
-
return () => c.forEach((
|
|
1583
|
+
return () => c.forEach((p) => p());
|
|
1584
1584
|
}
|
|
1585
1585
|
function hc(e, t = !1) {
|
|
1586
1586
|
const n = $(), o = () => n.value = !!e();
|
|
@@ -2132,8 +2132,8 @@ const ai = "__epPropKey", G = (e) => e, _f = (e) => Tt(e) && !!e[ai], So = (e, t
|
|
|
2132
2132
|
validator: n || a ? (l) => {
|
|
2133
2133
|
let c = !1, d = [];
|
|
2134
2134
|
if (n && (d = Array.from(n), Ps(e, "default") && d.push(r), c || (c = d.includes(l))), a && (c || (c = a(l))), !c && d.length > 0) {
|
|
2135
|
-
const
|
|
2136
|
-
$l(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${
|
|
2135
|
+
const p = [...new Set(d)].map((m) => JSON.stringify(m)).join(", ");
|
|
2136
|
+
$l(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${p}], got value ${JSON.stringify(l)}.`);
|
|
2137
2137
|
}
|
|
2138
2138
|
return c;
|
|
2139
2139
|
} : void 0,
|
|
@@ -2429,31 +2429,31 @@ const kf = (e) => (t, n) => Tf(t, n, b(e)), Tf = (e, t, n) => ef(n, e, e).replac
|
|
|
2429
2429
|
onShow: c,
|
|
2430
2430
|
onHide: d
|
|
2431
2431
|
}) => {
|
|
2432
|
-
const
|
|
2432
|
+
const p = je(), { emit: m } = p, f = p.props, v = E(() => ht(f[n])), _ = E(() => f[e] === null), g = (y) => {
|
|
2433
2433
|
a.value !== !0 && (a.value = !0, i && (i.value = y), ht(c) && c(y));
|
|
2434
2434
|
}, k = (y) => {
|
|
2435
2435
|
a.value !== !1 && (a.value = !1, i && (i.value = y), ht(d) && d(y));
|
|
2436
2436
|
}, P = (y) => {
|
|
2437
|
-
if (
|
|
2437
|
+
if (f.disabled === !0 || ht(l) && !l())
|
|
2438
2438
|
return;
|
|
2439
2439
|
const R = v.value && ve;
|
|
2440
2440
|
R && m(t, !0), (_.value || !R) && g(y);
|
|
2441
2441
|
}, C = (y) => {
|
|
2442
|
-
if (
|
|
2442
|
+
if (f.disabled === !0 || !ve)
|
|
2443
2443
|
return;
|
|
2444
2444
|
const R = v.value && ve;
|
|
2445
2445
|
R && m(t, !1), (_.value || !R) && k(y);
|
|
2446
2446
|
}, A = (y) => {
|
|
2447
|
-
Xa(y) && (
|
|
2447
|
+
Xa(y) && (f.disabled && y ? v.value && m(t, !1) : a.value !== y && (y ? g() : k()));
|
|
2448
2448
|
}, I = () => {
|
|
2449
2449
|
a.value ? C() : P();
|
|
2450
2450
|
};
|
|
2451
|
-
return Y(() =>
|
|
2452
|
-
...
|
|
2451
|
+
return Y(() => f[e], A), u && p.appContext.config.globalProperties.$route !== void 0 && Y(() => ({
|
|
2452
|
+
...p.proxy.$route
|
|
2453
2453
|
}), () => {
|
|
2454
2454
|
u.value && a.value && C();
|
|
2455
2455
|
}), X(() => {
|
|
2456
|
-
A(
|
|
2456
|
+
A(f[e]);
|
|
2457
2457
|
}), {
|
|
2458
2458
|
hide: C,
|
|
2459
2459
|
show: P,
|
|
@@ -2615,7 +2615,7 @@ var Yf = function(e, t) {
|
|
|
2615
2615
|
function Zf(e) {
|
|
2616
2616
|
var t, n = e.state, o = e.name, r = e.options, s = n.elements.arrow, a = n.modifiersData.popperOffsets, i = ze(n.placement), u = Fr(i), l = [we, Me].indexOf(i) >= 0, c = l ? "height" : "width";
|
|
2617
2617
|
if (!(!s || !a)) {
|
|
2618
|
-
var d = Yf(r.padding, n),
|
|
2618
|
+
var d = Yf(r.padding, n), p = Lr(s), m = u === "y" ? _e : we, f = u === "y" ? Ae : Me, v = n.rects.reference[c] + n.rects.reference[u] - a[u] - n.rects.popper[c], _ = a[u] - n.rects.reference[u], g = $n(s), k = g ? u === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, P = v / 2 - _ / 2, C = d[m], A = k - p[c] - d[f], I = k / 2 - p[c] / 2 + P, y = bn(C, I, A), R = u;
|
|
2619
2619
|
n.modifiersData[o] = (t = {}, t[R] = y, t.centerOffset = y - I, t);
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
@@ -2633,7 +2633,7 @@ function tp(e) {
|
|
|
2633
2633
|
return { x: Ut(t * r) / r || 0, y: Ut(n * r) / r || 0 };
|
|
2634
2634
|
}
|
|
2635
2635
|
function Fs(e) {
|
|
2636
|
-
var t, n = e.popper, o = e.popperRect, r = e.placement, s = e.variation, a = e.offsets, i = e.position, u = e.gpuAcceleration, l = e.adaptive, c = e.roundOffsets, d = e.isFixed,
|
|
2636
|
+
var t, n = e.popper, o = e.popperRect, r = e.placement, s = e.variation, a = e.offsets, i = e.position, u = e.gpuAcceleration, l = e.adaptive, c = e.roundOffsets, d = e.isFixed, p = a.x, m = p === void 0 ? 0 : p, f = a.y, v = f === void 0 ? 0 : f, _ = typeof c == "function" ? c({ x: m, y: v }) : { x: m, y: v };
|
|
2637
2637
|
m = _.x, v = _.y;
|
|
2638
2638
|
var g = a.hasOwnProperty("x"), k = a.hasOwnProperty("y"), P = we, C = _e, A = window;
|
|
2639
2639
|
if (l) {
|
|
@@ -2769,7 +2769,7 @@ function yi(e) {
|
|
|
2769
2769
|
}
|
|
2770
2770
|
function kn(e, t) {
|
|
2771
2771
|
t === void 0 && (t = {});
|
|
2772
|
-
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, s = n.boundary, a = s === void 0 ? If : s, i = n.rootBoundary, u = i === void 0 ? ci : i, l = n.elementContext, c = l === void 0 ? dn : l, d = n.altBoundary,
|
|
2772
|
+
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, s = n.boundary, a = s === void 0 ? If : s, i = n.rootBoundary, u = i === void 0 ? ci : i, l = n.elementContext, c = l === void 0 ? dn : l, d = n.altBoundary, p = d === void 0 ? !1 : d, m = n.padding, f = m === void 0 ? 0 : m, v = hi(typeof f != "number" ? f : mi(f, Mn)), _ = c === dn ? Nf : dn, g = e.rects.popper, k = e.elements[p ? _ : c], P = cp(zt(k) ? k : k.contextElement || lt(e.elements.popper), a, u), C = Vt(e.elements.reference), A = yi({ reference: C, element: g, strategy: "absolute", placement: r }), I = rr(Object.assign({}, g, A)), y = c === dn ? I : C, R = { top: P.top - y.top + v.top, bottom: y.bottom - P.bottom + v.bottom, left: P.left - y.left + v.left, right: y.right - P.right + v.right }, j = e.modifiersData.offset;
|
|
2773
2773
|
if (c === dn && j) {
|
|
2774
2774
|
var x = j[r];
|
|
2775
2775
|
Object.keys(R).forEach(function(w) {
|
|
@@ -2781,17 +2781,17 @@ function kn(e, t) {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
function dp(e, t) {
|
|
2783
2783
|
t === void 0 && (t = {});
|
|
2784
|
-
var n = t, o = n.placement, r = n.boundary, s = n.rootBoundary, a = n.padding, i = n.flipVariations, u = n.allowedAutoPlacements, l = u === void 0 ? Nr : u, c = Wt(o), d = c ? i ? Rs : Rs.filter(function(
|
|
2785
|
-
return Wt(
|
|
2786
|
-
}) : Mn,
|
|
2787
|
-
return l.indexOf(
|
|
2784
|
+
var n = t, o = n.placement, r = n.boundary, s = n.rootBoundary, a = n.padding, i = n.flipVariations, u = n.allowedAutoPlacements, l = u === void 0 ? Nr : u, c = Wt(o), d = c ? i ? Rs : Rs.filter(function(f) {
|
|
2785
|
+
return Wt(f) === c;
|
|
2786
|
+
}) : Mn, p = d.filter(function(f) {
|
|
2787
|
+
return l.indexOf(f) >= 0;
|
|
2788
2788
|
});
|
|
2789
|
-
|
|
2790
|
-
var m =
|
|
2791
|
-
return
|
|
2789
|
+
p.length === 0 && (p = d);
|
|
2790
|
+
var m = p.reduce(function(f, v) {
|
|
2791
|
+
return f[v] = kn(e, { placement: v, boundary: r, rootBoundary: s, padding: a })[ze(v)], f;
|
|
2792
2792
|
}, {});
|
|
2793
|
-
return Object.keys(m).sort(function(
|
|
2794
|
-
return m[
|
|
2793
|
+
return Object.keys(m).sort(function(f, v) {
|
|
2794
|
+
return m[f] - m[v];
|
|
2795
2795
|
});
|
|
2796
2796
|
}
|
|
2797
2797
|
function fp(e) {
|
|
@@ -2803,10 +2803,10 @@ function fp(e) {
|
|
|
2803
2803
|
function pp(e) {
|
|
2804
2804
|
var t = e.state, n = e.options, o = e.name;
|
|
2805
2805
|
if (!t.modifiersData[o]._skip) {
|
|
2806
|
-
for (var r = n.mainAxis, s = r === void 0 ? !0 : r, a = n.altAxis, i = a === void 0 ? !0 : a, u = n.fallbackPlacements, l = n.padding, c = n.boundary, d = n.rootBoundary,
|
|
2807
|
-
return ut.concat(ze(Je) === Ir ? dp(t, { placement: Je, boundary: c, rootBoundary: d, padding: l, flipVariations:
|
|
2806
|
+
for (var r = n.mainAxis, s = r === void 0 ? !0 : r, a = n.altAxis, i = a === void 0 ? !0 : a, u = n.fallbackPlacements, l = n.padding, c = n.boundary, d = n.rootBoundary, p = n.altBoundary, m = n.flipVariations, f = m === void 0 ? !0 : m, v = n.allowedAutoPlacements, _ = t.options.placement, g = ze(_), k = g === _, P = u || (k || !f ? [ro(_)] : fp(_)), C = [_].concat(P).reduce(function(ut, Je) {
|
|
2807
|
+
return ut.concat(ze(Je) === Ir ? dp(t, { placement: Je, boundary: c, rootBoundary: d, padding: l, flipVariations: f, allowedAutoPlacements: v }) : Je);
|
|
2808
2808
|
}, []), A = t.rects.reference, I = t.rects.popper, y = /* @__PURE__ */ new Map(), R = !0, j = C[0], x = 0; x < C.length; x++) {
|
|
2809
|
-
var w = C[x], M = ze(w), N = Wt(w) === Ht, W = [_e, Ae].indexOf(M) >= 0, q = W ? "width" : "height", z = kn(t, { placement: w, boundary: c, rootBoundary: d, altBoundary:
|
|
2809
|
+
var w = C[x], M = ze(w), N = Wt(w) === Ht, W = [_e, Ae].indexOf(M) >= 0, q = W ? "width" : "height", z = kn(t, { placement: w, boundary: c, rootBoundary: d, altBoundary: p, padding: l }), O = W ? N ? Me : we : N ? Ae : _e;
|
|
2810
2810
|
A[q] > I[q] && (O = ro(O));
|
|
2811
2811
|
var F = ro(O), K = [];
|
|
2812
2812
|
if (s && K.push(z[M] <= 0), i && K.push(z[O] <= 0, z[F] <= 0), K.every(function(ut) {
|
|
@@ -2818,7 +2818,7 @@ function pp(e) {
|
|
|
2818
2818
|
y.set(w, K);
|
|
2819
2819
|
}
|
|
2820
2820
|
if (R)
|
|
2821
|
-
for (var te =
|
|
2821
|
+
for (var te = f ? 3 : 1, Ke = function(ut) {
|
|
2822
2822
|
var Je = C.find(function(Rn) {
|
|
2823
2823
|
var sn = y.get(Rn);
|
|
2824
2824
|
if (sn)
|
|
@@ -2870,7 +2870,7 @@ function wp(e) {
|
|
|
2870
2870
|
return e === "x" ? "y" : "x";
|
|
2871
2871
|
}
|
|
2872
2872
|
function xp(e) {
|
|
2873
|
-
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, s = r === void 0 ? !0 : r, a = n.altAxis, i = a === void 0 ? !1 : a, u = n.boundary, l = n.rootBoundary, c = n.altBoundary, d = n.padding,
|
|
2873
|
+
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, s = r === void 0 ? !0 : r, a = n.altAxis, i = a === void 0 ? !1 : a, u = n.boundary, l = n.rootBoundary, c = n.altBoundary, d = n.padding, p = n.tether, m = p === void 0 ? !0 : p, f = n.tetherOffset, v = f === void 0 ? 0 : f, _ = kn(t, { boundary: u, rootBoundary: l, padding: d, altBoundary: c }), g = ze(t.placement), k = Wt(t.placement), P = !k, C = Fr(g), A = wp(C), I = t.modifiersData.popperOffsets, y = t.rects.reference, R = t.rects.popper, j = typeof v == "function" ? v(Object.assign({}, t.rects, { placement: t.placement })) : v, x = typeof j == "number" ? { mainAxis: j, altAxis: j } : Object.assign({ mainAxis: 0, altAxis: 0 }, j), w = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = { x: 0, y: 0 };
|
|
2874
2874
|
if (I) {
|
|
2875
2875
|
if (s) {
|
|
2876
2876
|
var N, W = C === "y" ? _e : we, q = C === "y" ? Ae : Me, z = C === "y" ? "height" : "width", O = I[C], F = O + _[W], K = O - _[q], te = m ? -R[z] / 2 : 0, Ke = k === Ht ? y[z] : R[z], Oe = k === Ht ? -R[z] : -y[z], Nn = t.elements.arrow, ut = m && Nn ? Lr(Nn) : { width: 0, height: 0 }, Je = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : pi(), Rn = Je[W], sn = Je[q], It = bn(0, y[z], ut[z]), Ol = P ? y[z] / 2 - te - It - Rn - x.mainAxis : Ke - It - Rn - x.mainAxis, kl = P ? -y[z] / 2 + te + It + sn + x.mainAxis : Oe + It + sn + x.mainAxis, Ao = t.elements.arrow && $n(t.elements.arrow), Tl = Ao ? C === "y" ? Ao.clientTop || 0 : Ao.clientLeft || 0 : 0, Qr = (N = w == null ? void 0 : w[C]) != null ? N : 0, Pl = O + Ol - Qr - Tl, Cl = O + kl - Qr, Xr = bn(m ? co(F, Pl) : F, O, m ? bt(K, Cl) : K);
|
|
@@ -2958,13 +2958,13 @@ function Hr(e) {
|
|
|
2958
2958
|
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, s = r === void 0 ? zs : r;
|
|
2959
2959
|
return function(a, i, u) {
|
|
2960
2960
|
u === void 0 && (u = s);
|
|
2961
|
-
var l = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, zs, s), modifiersData: {}, elements: { reference: a, popper: i }, attributes: {}, styles: {} }, c = [], d = !1,
|
|
2961
|
+
var l = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, zs, s), modifiersData: {}, elements: { reference: a, popper: i }, attributes: {}, styles: {} }, c = [], d = !1, p = { state: l, setOptions: function(v) {
|
|
2962
2962
|
var _ = typeof v == "function" ? v(l.options) : v;
|
|
2963
|
-
|
|
2963
|
+
f(), l.options = Object.assign({}, s, l.options, _), l.scrollParents = { reference: zt(a) ? yn(a) : a.contextElement ? yn(a.contextElement) : [], popper: yn(i) };
|
|
2964
2964
|
var g = Cp(Mp([].concat(o, l.options.modifiers)));
|
|
2965
2965
|
return l.orderedModifiers = g.filter(function(k) {
|
|
2966
2966
|
return k.enabled;
|
|
2967
|
-
}), m(),
|
|
2967
|
+
}), m(), p.update();
|
|
2968
2968
|
}, forceUpdate: function() {
|
|
2969
2969
|
if (!d) {
|
|
2970
2970
|
var v = l.elements, _ = v.reference, g = v.popper;
|
|
@@ -2978,38 +2978,38 @@ function Hr(e) {
|
|
|
2978
2978
|
continue;
|
|
2979
2979
|
}
|
|
2980
2980
|
var P = l.orderedModifiers[k], C = P.fn, A = P.options, I = A === void 0 ? {} : A, y = P.name;
|
|
2981
|
-
typeof C == "function" && (l = C({ state: l, options: I, name: y, instance:
|
|
2981
|
+
typeof C == "function" && (l = C({ state: l, options: I, name: y, instance: p }) || l);
|
|
2982
2982
|
}
|
|
2983
2983
|
}
|
|
2984
2984
|
}
|
|
2985
2985
|
}, update: Ap(function() {
|
|
2986
2986
|
return new Promise(function(v) {
|
|
2987
|
-
|
|
2987
|
+
p.forceUpdate(), v(l);
|
|
2988
2988
|
});
|
|
2989
2989
|
}), destroy: function() {
|
|
2990
|
-
|
|
2990
|
+
f(), d = !0;
|
|
2991
2991
|
} };
|
|
2992
2992
|
if (!Us(a, i))
|
|
2993
|
-
return
|
|
2994
|
-
|
|
2993
|
+
return p;
|
|
2994
|
+
p.setOptions(u).then(function(v) {
|
|
2995
2995
|
!d && u.onFirstUpdate && u.onFirstUpdate(v);
|
|
2996
2996
|
});
|
|
2997
2997
|
function m() {
|
|
2998
2998
|
l.orderedModifiers.forEach(function(v) {
|
|
2999
2999
|
var _ = v.name, g = v.options, k = g === void 0 ? {} : g, P = v.effect;
|
|
3000
3000
|
if (typeof P == "function") {
|
|
3001
|
-
var C = P({ state: l, name: _, instance:
|
|
3001
|
+
var C = P({ state: l, name: _, instance: p, options: k }), A = function() {
|
|
3002
3002
|
};
|
|
3003
3003
|
c.push(C || A);
|
|
3004
3004
|
}
|
|
3005
3005
|
});
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function f() {
|
|
3008
3008
|
c.forEach(function(v) {
|
|
3009
3009
|
return v();
|
|
3010
3010
|
}), c = [];
|
|
3011
3011
|
}
|
|
3012
|
-
return
|
|
3012
|
+
return p;
|
|
3013
3013
|
};
|
|
3014
3014
|
}
|
|
3015
3015
|
Hr();
|
|
@@ -3501,25 +3501,25 @@ const Ri = ce({
|
|
|
3501
3501
|
"onFocus",
|
|
3502
3502
|
"onBlur",
|
|
3503
3503
|
"onContextmenu"
|
|
3504
|
-
].forEach((
|
|
3504
|
+
].forEach((p) => {
|
|
3505
3505
|
var m;
|
|
3506
|
-
const
|
|
3507
|
-
|
|
3508
|
-
}), l = Y([s, a, i, u], (
|
|
3506
|
+
const f = n[p];
|
|
3507
|
+
f && (c.addEventListener(p.slice(2).toLowerCase(), f), (m = d == null ? void 0 : d.removeEventListener) == null || m.call(d, p.slice(2).toLowerCase(), f));
|
|
3508
|
+
}), l = Y([s, a, i, u], (p) => {
|
|
3509
3509
|
[
|
|
3510
3510
|
"aria-controls",
|
|
3511
3511
|
"aria-describedby",
|
|
3512
3512
|
"aria-haspopup",
|
|
3513
3513
|
"aria-expanded"
|
|
3514
|
-
].forEach((m,
|
|
3515
|
-
En(f
|
|
3514
|
+
].forEach((m, f) => {
|
|
3515
|
+
En(p[f]) ? c.removeAttribute(m) : c.setAttribute(m, p[f]);
|
|
3516
3516
|
});
|
|
3517
3517
|
}, { immediate: !0 })), Sn(d) && [
|
|
3518
3518
|
"aria-controls",
|
|
3519
3519
|
"aria-describedby",
|
|
3520
3520
|
"aria-haspopup",
|
|
3521
3521
|
"aria-expanded"
|
|
3522
|
-
].forEach((
|
|
3522
|
+
].forEach((p) => d.removeAttribute(p));
|
|
3523
3523
|
}, {
|
|
3524
3524
|
immediate: !0
|
|
3525
3525
|
});
|
|
@@ -3645,8 +3645,8 @@ const gh = () => {
|
|
|
3645
3645
|
const n = $();
|
|
3646
3646
|
let o, r;
|
|
3647
3647
|
const { focusReason: s } = _h();
|
|
3648
|
-
Dp((
|
|
3649
|
-
e.trapped && !a.paused && t("release-requested",
|
|
3648
|
+
Dp((f) => {
|
|
3649
|
+
e.trapped && !a.paused && t("release-requested", f);
|
|
3650
3650
|
});
|
|
3651
3651
|
const a = {
|
|
3652
3652
|
paused: !1,
|
|
@@ -3656,10 +3656,10 @@ const gh = () => {
|
|
|
3656
3656
|
resume() {
|
|
3657
3657
|
this.paused = !1;
|
|
3658
3658
|
}
|
|
3659
|
-
}, i = (
|
|
3659
|
+
}, i = (f) => {
|
|
3660
3660
|
if (!e.loop && !e.trapped || a.paused)
|
|
3661
3661
|
return;
|
|
3662
|
-
const { key: v, altKey: _, ctrlKey: g, metaKey: k, currentTarget: P, shiftKey: C } =
|
|
3662
|
+
const { key: v, altKey: _, ctrlKey: g, metaKey: k, currentTarget: P, shiftKey: C } = f, { loop: A } = e, I = v === me.tab && !_ && !g && !k, y = document.activeElement;
|
|
3663
3663
|
if (I && y) {
|
|
3664
3664
|
const R = P, [j, x] = mh(R);
|
|
3665
3665
|
if (j && x) {
|
|
@@ -3667,42 +3667,42 @@ const gh = () => {
|
|
|
3667
3667
|
const M = zn({
|
|
3668
3668
|
focusReason: s.value
|
|
3669
3669
|
});
|
|
3670
|
-
t("focusout-prevented", M), M.defaultPrevented || (
|
|
3670
|
+
t("focusout-prevented", M), M.defaultPrevented || (f.preventDefault(), A && rt(j, !0));
|
|
3671
3671
|
} else if (C && [j, R].includes(y)) {
|
|
3672
3672
|
const M = zn({
|
|
3673
3673
|
focusReason: s.value
|
|
3674
3674
|
});
|
|
3675
|
-
t("focusout-prevented", M), M.defaultPrevented || (
|
|
3675
|
+
t("focusout-prevented", M), M.defaultPrevented || (f.preventDefault(), A && rt(x, !0));
|
|
3676
3676
|
}
|
|
3677
3677
|
} else if (y === R) {
|
|
3678
3678
|
const M = zn({
|
|
3679
3679
|
focusReason: s.value
|
|
3680
3680
|
});
|
|
3681
|
-
t("focusout-prevented", M), M.defaultPrevented ||
|
|
3681
|
+
t("focusout-prevented", M), M.defaultPrevented || f.preventDefault();
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
3684
|
};
|
|
3685
3685
|
re(ph, {
|
|
3686
3686
|
focusTrapRef: n,
|
|
3687
3687
|
onKeydown: i
|
|
3688
|
-
}), Y(() => e.focusTrapEl, (
|
|
3689
|
-
|
|
3690
|
-
}, { immediate: !0 }), Y([n], ([
|
|
3691
|
-
|
|
3688
|
+
}), Y(() => e.focusTrapEl, (f) => {
|
|
3689
|
+
f && (n.value = f);
|
|
3690
|
+
}, { immediate: !0 }), Y([n], ([f], [v]) => {
|
|
3691
|
+
f && (f.addEventListener("keydown", i), f.addEventListener("focusin", c), f.addEventListener("focusout", d)), v && (v.removeEventListener("keydown", i), v.removeEventListener("focusin", c), v.removeEventListener("focusout", d));
|
|
3692
3692
|
});
|
|
3693
|
-
const u = (
|
|
3694
|
-
t(Zs,
|
|
3695
|
-
}, l = (
|
|
3693
|
+
const u = (f) => {
|
|
3694
|
+
t(Zs, f);
|
|
3695
|
+
}, l = (f) => t(Qs, f), c = (f) => {
|
|
3696
3696
|
const v = b(n);
|
|
3697
3697
|
if (!v)
|
|
3698
3698
|
return;
|
|
3699
|
-
const _ =
|
|
3700
|
-
e.trapped || g && v.contains(g) || (o = g), k && t("focusin",
|
|
3701
|
-
}, d = (
|
|
3699
|
+
const _ = f.target, g = f.relatedTarget, k = _ && v.contains(_);
|
|
3700
|
+
e.trapped || g && v.contains(g) || (o = g), k && t("focusin", f), !a.paused && e.trapped && (k ? r = _ : rt(r, !0));
|
|
3701
|
+
}, d = (f) => {
|
|
3702
3702
|
const v = b(n);
|
|
3703
3703
|
if (!(a.paused || !v))
|
|
3704
3704
|
if (e.trapped) {
|
|
3705
|
-
const _ =
|
|
3705
|
+
const _ = f.relatedTarget;
|
|
3706
3706
|
!En(_) && !v.contains(_) && setTimeout(() => {
|
|
3707
3707
|
if (!a.paused && e.trapped) {
|
|
3708
3708
|
const g = zn({
|
|
@@ -3712,41 +3712,41 @@ const gh = () => {
|
|
|
3712
3712
|
}
|
|
3713
3713
|
}, 0);
|
|
3714
3714
|
} else {
|
|
3715
|
-
const _ =
|
|
3716
|
-
_ && v.contains(_) || t("focusout",
|
|
3715
|
+
const _ = f.target;
|
|
3716
|
+
_ && v.contains(_) || t("focusout", f);
|
|
3717
3717
|
}
|
|
3718
3718
|
};
|
|
3719
|
-
async function
|
|
3719
|
+
async function p() {
|
|
3720
3720
|
await tt();
|
|
3721
|
-
const
|
|
3722
|
-
if (
|
|
3721
|
+
const f = b(n);
|
|
3722
|
+
if (f) {
|
|
3723
3723
|
ta.push(a);
|
|
3724
|
-
const v =
|
|
3725
|
-
if (o = v, !
|
|
3724
|
+
const v = f.contains(document.activeElement) ? o : document.activeElement;
|
|
3725
|
+
if (o = v, !f.contains(v)) {
|
|
3726
3726
|
const g = new Event(Ho, Ys);
|
|
3727
|
-
|
|
3727
|
+
f.addEventListener(Ho, u), f.dispatchEvent(g), g.defaultPrevented || tt(() => {
|
|
3728
3728
|
let k = e.focusStartEl;
|
|
3729
|
-
ye(k) || (rt(k), document.activeElement !== k && (k = "first")), k === "first" && bh(Li(
|
|
3729
|
+
ye(k) || (rt(k), document.activeElement !== k && (k = "first")), k === "first" && bh(Li(f), !0), (document.activeElement === v || k === "container") && rt(f);
|
|
3730
3730
|
});
|
|
3731
3731
|
}
|
|
3732
3732
|
}
|
|
3733
3733
|
}
|
|
3734
3734
|
function m() {
|
|
3735
|
-
const
|
|
3736
|
-
if (
|
|
3737
|
-
|
|
3735
|
+
const f = b(n);
|
|
3736
|
+
if (f) {
|
|
3737
|
+
f.removeEventListener(Ho, u);
|
|
3738
3738
|
const v = new CustomEvent(zo, {
|
|
3739
3739
|
...Ys,
|
|
3740
3740
|
detail: {
|
|
3741
3741
|
focusReason: s.value
|
|
3742
3742
|
}
|
|
3743
3743
|
});
|
|
3744
|
-
|
|
3744
|
+
f.addEventListener(zo, l), f.dispatchEvent(v), !v.defaultPrevented && (s.value == "keyboard" || !yh() || f.contains(document.activeElement)) && rt(o ?? document.body), f.removeEventListener(zo, l), ta.remove(a);
|
|
3745
3745
|
}
|
|
3746
3746
|
}
|
|
3747
3747
|
return X(() => {
|
|
3748
|
-
e.trapped &&
|
|
3749
|
-
|
|
3748
|
+
e.trapped && p(), Y(() => e.trapped, (f) => {
|
|
3749
|
+
f ? p() : m();
|
|
3750
3750
|
});
|
|
3751
3751
|
}), We(() => {
|
|
3752
3752
|
e.trapped && m();
|
|
@@ -3912,30 +3912,30 @@ const Mh = 0, $h = (e) => {
|
|
|
3912
3912
|
};
|
|
3913
3913
|
}), l = E(() => ({
|
|
3914
3914
|
onFirstUpdate: () => {
|
|
3915
|
-
|
|
3915
|
+
f();
|
|
3916
3916
|
},
|
|
3917
3917
|
...Th(e, [
|
|
3918
3918
|
b(u),
|
|
3919
3919
|
b(i)
|
|
3920
3920
|
])
|
|
3921
|
-
})), c = E(() => Ph(e.referenceEl) || b(o)), { attributes: d, state:
|
|
3921
|
+
})), c = E(() => Ph(e.referenceEl) || b(o)), { attributes: d, state: p, styles: m, update: f, forceUpdate: v, instanceRef: _ } = Rp(c, n, l);
|
|
3922
3922
|
return Y(_, (g) => t.value = g), X(() => {
|
|
3923
3923
|
Y(() => {
|
|
3924
3924
|
var g;
|
|
3925
3925
|
return (g = b(c)) == null ? void 0 : g.getBoundingClientRect();
|
|
3926
3926
|
}, () => {
|
|
3927
|
-
|
|
3927
|
+
f();
|
|
3928
3928
|
});
|
|
3929
3929
|
}), {
|
|
3930
3930
|
attributes: d,
|
|
3931
3931
|
arrowRef: s,
|
|
3932
3932
|
contentRef: n,
|
|
3933
3933
|
instanceRef: _,
|
|
3934
|
-
state:
|
|
3934
|
+
state: p,
|
|
3935
3935
|
styles: m,
|
|
3936
3936
|
role: r,
|
|
3937
3937
|
forceUpdate: v,
|
|
3938
|
-
update:
|
|
3938
|
+
update: f
|
|
3939
3939
|
};
|
|
3940
3940
|
}, Ih = (e, {
|
|
3941
3941
|
attributes: t,
|
|
@@ -4000,7 +4000,7 @@ const Mh = 0, $h = (e) => {
|
|
|
4000
4000
|
onFocusInTrap: u,
|
|
4001
4001
|
onFocusoutPrevented: l,
|
|
4002
4002
|
onReleaseRequested: c
|
|
4003
|
-
} = Nh(o, n), { attributes: d, arrowRef:
|
|
4003
|
+
} = Nh(o, n), { attributes: d, arrowRef: p, contentRef: m, styles: f, instanceRef: v, role: _, update: g } = $h(o), {
|
|
4004
4004
|
ariaModal: k,
|
|
4005
4005
|
arrowStyle: P,
|
|
4006
4006
|
contentAttrs: C,
|
|
@@ -4008,13 +4008,13 @@ const Mh = 0, $h = (e) => {
|
|
|
4008
4008
|
contentStyle: I,
|
|
4009
4009
|
updateZIndex: y
|
|
4010
4010
|
} = Ih(o, {
|
|
4011
|
-
styles:
|
|
4011
|
+
styles: f,
|
|
4012
4012
|
attributes: d,
|
|
4013
4013
|
role: _
|
|
4014
4014
|
}), R = Z(Ks, void 0), j = $();
|
|
4015
4015
|
re(Mi, {
|
|
4016
4016
|
arrowStyle: P,
|
|
4017
|
-
arrowRef:
|
|
4017
|
+
arrowRef: p,
|
|
4018
4018
|
arrowOffset: j
|
|
4019
4019
|
}), R && (R.addInputId || R.removeInputId) && re(Ks, {
|
|
4020
4020
|
...R,
|
|
@@ -4146,9 +4146,9 @@ const jh = Ct(oh), Wr = Symbol("elTooltip"), ji = ce({
|
|
|
4146
4146
|
const n = e, o = ae("tooltip"), { controlled: r, id: s, open: a, onOpen: i, onClose: u, onToggle: l } = Z(Wr, void 0), c = $(null), d = () => {
|
|
4147
4147
|
if (b(r) || n.disabled)
|
|
4148
4148
|
return !0;
|
|
4149
|
-
},
|
|
4149
|
+
}, p = Xe(n, "trigger"), m = Ze(d, Nt(p, "hover", i)), f = Ze(d, Nt(p, "hover", u)), v = Ze(d, Nt(p, "click", (C) => {
|
|
4150
4150
|
C.button === 0 && l(C);
|
|
4151
|
-
})), _ = Ze(d, Nt(
|
|
4151
|
+
})), _ = Ze(d, Nt(p, "focus", i)), g = Ze(d, Nt(p, "focus", u)), k = Ze(d, Nt(p, "contextmenu", (C) => {
|
|
4152
4152
|
C.preventDefault(), l(C);
|
|
4153
4153
|
})), P = Ze(d, (C) => {
|
|
4154
4154
|
const { code: A } = C;
|
|
@@ -4167,7 +4167,7 @@ const jh = Ct(oh), Wr = Symbol("elTooltip"), ji = ce({
|
|
|
4167
4167
|
onContextmenu: b(k),
|
|
4168
4168
|
onFocus: b(_),
|
|
4169
4169
|
onMouseenter: b(m),
|
|
4170
|
-
onMouseleave: b(
|
|
4170
|
+
onMouseleave: b(f),
|
|
4171
4171
|
onKeydown: b(P)
|
|
4172
4172
|
}, {
|
|
4173
4173
|
default: U(() => [
|
|
@@ -4191,9 +4191,9 @@ const Kh = H({
|
|
|
4191
4191
|
open: l,
|
|
4192
4192
|
trigger: c,
|
|
4193
4193
|
onClose: d,
|
|
4194
|
-
onOpen:
|
|
4194
|
+
onOpen: p,
|
|
4195
4195
|
onShow: m,
|
|
4196
|
-
onHide:
|
|
4196
|
+
onHide: f,
|
|
4197
4197
|
onBeforeShow: v,
|
|
4198
4198
|
onBeforeHide: _
|
|
4199
4199
|
} = Z(Wr, void 0), g = E(() => n.transition || `${r.namespace.value}-fade-in-linear`), k = E(() => process.env.NODE_ENV === "test" ? !0 : n.persistent);
|
|
@@ -4204,12 +4204,12 @@ const Kh = H({
|
|
|
4204
4204
|
var O;
|
|
4205
4205
|
return (O = n.style) != null ? O : {};
|
|
4206
4206
|
}), y = E(() => !b(l)), R = () => {
|
|
4207
|
-
|
|
4207
|
+
f();
|
|
4208
4208
|
}, j = () => {
|
|
4209
4209
|
if (b(i))
|
|
4210
4210
|
return !0;
|
|
4211
4211
|
}, x = Ze(j, () => {
|
|
4212
|
-
n.enterable && b(c) === "hover" &&
|
|
4212
|
+
n.enterable && b(c) === "hover" && p();
|
|
4213
4213
|
}), w = Ze(j, () => {
|
|
4214
4214
|
b(c) === "hover" && d();
|
|
4215
4215
|
}), M = () => {
|
|
@@ -4307,16 +4307,16 @@ const Zh = ["innerHTML"], Qh = { key: 1 }, Xh = H({
|
|
|
4307
4307
|
var g;
|
|
4308
4308
|
const k = b(s);
|
|
4309
4309
|
k && ((g = k.popperInstanceRef) == null || g.update());
|
|
4310
|
-
}, u = $(!1), l = $(), { show: c, hide: d, hasUpdateHandler:
|
|
4310
|
+
}, u = $(!1), l = $(), { show: c, hide: d, hasUpdateHandler: p } = Hh({
|
|
4311
4311
|
indicator: u,
|
|
4312
4312
|
toggleReason: l
|
|
4313
|
-
}), { onOpen: m, onClose:
|
|
4313
|
+
}), { onOpen: m, onClose: f } = Up({
|
|
4314
4314
|
showAfter: Xe(o, "showAfter"),
|
|
4315
4315
|
hideAfter: Xe(o, "hideAfter"),
|
|
4316
4316
|
autoClose: Xe(o, "autoClose"),
|
|
4317
4317
|
open: c,
|
|
4318
4318
|
close: d
|
|
4319
|
-
}), v = E(() => Xa(o.visible) && !
|
|
4319
|
+
}), v = E(() => Xa(o.visible) && !p.value);
|
|
4320
4320
|
re(Wr, {
|
|
4321
4321
|
controlled: v,
|
|
4322
4322
|
id: r,
|
|
@@ -4326,10 +4326,10 @@ const Zh = ["innerHTML"], Qh = { key: 1 }, Xh = H({
|
|
|
4326
4326
|
m(g);
|
|
4327
4327
|
},
|
|
4328
4328
|
onClose: (g) => {
|
|
4329
|
-
|
|
4329
|
+
f(g);
|
|
4330
4330
|
},
|
|
4331
4331
|
onToggle: (g) => {
|
|
4332
|
-
b(u) ?
|
|
4332
|
+
b(u) ? f(g) : m(g);
|
|
4333
4333
|
},
|
|
4334
4334
|
onShow: () => {
|
|
4335
4335
|
n("show", l.value);
|
|
@@ -4358,7 +4358,7 @@ const Zh = ["innerHTML"], Qh = { key: 1 }, Xh = H({
|
|
|
4358
4358
|
isFocusInsideContent: _,
|
|
4359
4359
|
updatePopper: i,
|
|
4360
4360
|
onOpen: m,
|
|
4361
|
-
onClose:
|
|
4361
|
+
onClose: f,
|
|
4362
4362
|
hide: d
|
|
4363
4363
|
}), (g, k) => (T(), ee(b(jh), {
|
|
4364
4364
|
ref_key: "popperRef",
|
|
@@ -5372,8 +5372,8 @@ var qr = H({
|
|
|
5372
5372
|
const l = Z(`subMenu:${s.value.uid}`);
|
|
5373
5373
|
l || uo(Wn, "can not inject sub menu");
|
|
5374
5374
|
const c = $({}), d = $({});
|
|
5375
|
-
let
|
|
5376
|
-
const m = $(!1),
|
|
5375
|
+
let p;
|
|
5376
|
+
const m = $(!1), f = $(), v = $(null), _ = E(() => R.value === "horizontal" && k.value ? "bottom-start" : "right-start"), g = E(() => R.value === "horizontal" && k.value || R.value === "vertical" && !u.props.collapse ? e.expandCloseIcon && e.expandOpenIcon ? I.value ? e.expandOpenIcon : e.expandCloseIcon : uf : e.collapseCloseIcon && e.collapseOpenIcon ? I.value ? e.collapseOpenIcon : e.collapseCloseIcon : df), k = E(() => l.level === 0), P = E(() => {
|
|
5377
5377
|
var z;
|
|
5378
5378
|
const O = (z = e.teleported) != null ? z : e.popperAppendToBody;
|
|
5379
5379
|
return O === void 0 ? k.value : O;
|
|
@@ -5417,12 +5417,12 @@ var qr = H({
|
|
|
5417
5417
|
});
|
|
5418
5418
|
}, W = (z, O = e.showTimeout) => {
|
|
5419
5419
|
var F;
|
|
5420
|
-
z.type !== "focus" && (u.props.menuTrigger === "click" && u.props.mode === "horizontal" || !u.props.collapse && u.props.mode === "vertical" || e.disabled || (l.mouseInChild.value = !0,
|
|
5420
|
+
z.type !== "focus" && (u.props.menuTrigger === "click" && u.props.mode === "horizontal" || !u.props.collapse && u.props.mode === "vertical" || e.disabled || (l.mouseInChild.value = !0, p == null || p(), { stop: p } = nr(() => {
|
|
5421
5421
|
u.openMenu(e.index, r.value);
|
|
5422
5422
|
}, O), P.value && ((F = s.value.vnode.el) == null || F.dispatchEvent(new MouseEvent("mouseenter")))));
|
|
5423
5423
|
}, q = (z = !1) => {
|
|
5424
5424
|
var O, F;
|
|
5425
|
-
u.props.menuTrigger === "click" && u.props.mode === "horizontal" || !u.props.collapse && u.props.mode === "vertical" || (
|
|
5425
|
+
u.props.menuTrigger === "click" && u.props.mode === "horizontal" || !u.props.collapse && u.props.mode === "vertical" || (p == null || p(), l.mouseInChild.value = !1, { stop: p } = nr(() => !m.value && u.closeMenu(e.index, r.value), e.hideTimeout), P.value && z && ((O = o.parent) == null ? void 0 : O.type.name) === "ElSubMenu" && ((F = l.handleMouseleave) == null || F.call(l, !0)));
|
|
5426
5426
|
};
|
|
5427
5427
|
Y(() => u.props.collapse, (z) => M(!!z));
|
|
5428
5428
|
{
|
|
@@ -5501,7 +5501,7 @@ var qr = H({
|
|
|
5501
5501
|
}) : V(ie, {}, [
|
|
5502
5502
|
V("div", {
|
|
5503
5503
|
class: i.e("title"),
|
|
5504
|
-
ref:
|
|
5504
|
+
ref: f,
|
|
5505
5505
|
onClick: N
|
|
5506
5506
|
}, O),
|
|
5507
5507
|
V(Rm, {}, {
|
|
@@ -5580,8 +5580,8 @@ var qm = H({
|
|
|
5580
5580
|
props: Vm,
|
|
5581
5581
|
emits: Wm,
|
|
5582
5582
|
setup(e, { emit: t, slots: n, expose: o }) {
|
|
5583
|
-
const r = je(), s = r.appContext.config.globalProperties.$router, a = $(), i = ae("menu"), u = ae("sub-menu"), l = $(-1), c = $(e.defaultOpeneds && !e.collapse ? e.defaultOpeneds.slice(0) : []), d = $(e.defaultActive),
|
|
5584
|
-
const w = d.value &&
|
|
5583
|
+
const r = je(), s = r.appContext.config.globalProperties.$router, a = $(), i = ae("menu"), u = ae("sub-menu"), l = $(-1), c = $(e.defaultOpeneds && !e.collapse ? e.defaultOpeneds.slice(0) : []), d = $(e.defaultActive), p = $({}), m = $({}), f = E(() => e.mode === "horizontal" || e.mode === "vertical" && e.collapse), v = () => {
|
|
5584
|
+
const w = d.value && p.value[d.value];
|
|
5585
5585
|
if (!w || e.mode === "horizontal" || e.collapse)
|
|
5586
5586
|
return;
|
|
5587
5587
|
w.indexPath.forEach((N) => {
|
|
@@ -5610,7 +5610,7 @@ var qm = H({
|
|
|
5610
5610
|
} else
|
|
5611
5611
|
d.value = M, t("select", M, N, { index: M, indexPath: N });
|
|
5612
5612
|
}, A = (w) => {
|
|
5613
|
-
const M =
|
|
5613
|
+
const M = p.value, N = M[w] || d.value && M[d.value] || M[e.defaultActive];
|
|
5614
5614
|
N ? d.value = N.index : d.value = w;
|
|
5615
5615
|
}, I = () => {
|
|
5616
5616
|
var w, M;
|
|
@@ -5639,10 +5639,10 @@ var qm = H({
|
|
|
5639
5639
|
R ? w() : y(w)(), R = !1;
|
|
5640
5640
|
};
|
|
5641
5641
|
Y(() => e.defaultActive, (w) => {
|
|
5642
|
-
|
|
5642
|
+
p.value[w] || (d.value = ""), A(w);
|
|
5643
5643
|
}), Y(() => e.collapse, (w) => {
|
|
5644
5644
|
w && (c.value = []);
|
|
5645
|
-
}), Y(
|
|
5645
|
+
}), Y(p.value, v);
|
|
5646
5646
|
let x;
|
|
5647
5647
|
$e(() => {
|
|
5648
5648
|
e.mode === "horizontal" && e.ellipsis ? x = qa(a, j).stop : x == null || x();
|
|
@@ -5656,15 +5656,15 @@ var qm = H({
|
|
|
5656
5656
|
re("rootMenu", Yt({
|
|
5657
5657
|
props: e,
|
|
5658
5658
|
openedMenus: c,
|
|
5659
|
-
items:
|
|
5659
|
+
items: p,
|
|
5660
5660
|
subMenus: m,
|
|
5661
5661
|
activeIndex: d,
|
|
5662
|
-
isMenuPopup:
|
|
5662
|
+
isMenuPopup: f,
|
|
5663
5663
|
addMenuItem: (q) => {
|
|
5664
|
-
|
|
5664
|
+
p.value[q.index] = q;
|
|
5665
5665
|
},
|
|
5666
5666
|
removeMenuItem: (q) => {
|
|
5667
|
-
delete
|
|
5667
|
+
delete p.value[q.index];
|
|
5668
5668
|
},
|
|
5669
5669
|
addSubMenu: w,
|
|
5670
5670
|
removeSubMenu: M,
|
|
@@ -5847,37 +5847,37 @@ function o0(e) {
|
|
|
5847
5847
|
originalOverflow: "",
|
|
5848
5848
|
visible: !1
|
|
5849
5849
|
});
|
|
5850
|
-
function r(
|
|
5851
|
-
o.text =
|
|
5850
|
+
function r(p) {
|
|
5851
|
+
o.text = p;
|
|
5852
5852
|
}
|
|
5853
5853
|
function s() {
|
|
5854
|
-
const
|
|
5855
|
-
if (!
|
|
5856
|
-
let
|
|
5857
|
-
|
|
5854
|
+
const p = o.parent, m = d.ns;
|
|
5855
|
+
if (!p.vLoadingAddClassList) {
|
|
5856
|
+
let f = p.getAttribute("loading-number");
|
|
5857
|
+
f = Number.parseInt(f) - 1, f ? p.setAttribute("loading-number", f.toString()) : (gt(p, m.bm("parent", "relative")), p.removeAttribute("loading-number")), gt(p, m.bm("parent", "hidden"));
|
|
5858
5858
|
}
|
|
5859
5859
|
a(), c.unmount();
|
|
5860
5860
|
}
|
|
5861
5861
|
function a() {
|
|
5862
|
-
var
|
|
5863
|
-
(m = (
|
|
5862
|
+
var p, m;
|
|
5863
|
+
(m = (p = d.$el) == null ? void 0 : p.parentNode) == null || m.removeChild(d.$el);
|
|
5864
5864
|
}
|
|
5865
5865
|
function i() {
|
|
5866
|
-
var
|
|
5867
|
-
e.beforeClose && !e.beforeClose() || (n.value = !0, clearTimeout(t), t = window.setTimeout(u, 400), o.visible = !1, (
|
|
5866
|
+
var p;
|
|
5867
|
+
e.beforeClose && !e.beforeClose() || (n.value = !0, clearTimeout(t), t = window.setTimeout(u, 400), o.visible = !1, (p = e.closed) == null || p.call(e));
|
|
5868
5868
|
}
|
|
5869
5869
|
function u() {
|
|
5870
5870
|
if (!n.value)
|
|
5871
5871
|
return;
|
|
5872
|
-
const
|
|
5873
|
-
n.value = !1,
|
|
5872
|
+
const p = o.parent;
|
|
5873
|
+
n.value = !1, p.vLoadingAddClassList = void 0, s();
|
|
5874
5874
|
}
|
|
5875
5875
|
const l = H({
|
|
5876
5876
|
name: "ElLoading",
|
|
5877
|
-
setup(
|
|
5878
|
-
const { ns:
|
|
5877
|
+
setup(p, { expose: m }) {
|
|
5878
|
+
const { ns: f, zIndex: v } = Ci("loading");
|
|
5879
5879
|
return m({
|
|
5880
|
-
ns:
|
|
5880
|
+
ns: f,
|
|
5881
5881
|
zIndex: v
|
|
5882
5882
|
}), () => {
|
|
5883
5883
|
const _ = o.spinner || o.svg, g = V("svg", {
|
|
@@ -5892,9 +5892,9 @@ function o0(e) {
|
|
|
5892
5892
|
r: "20",
|
|
5893
5893
|
fill: "none"
|
|
5894
5894
|
})
|
|
5895
|
-
]), k = o.text ? V("p", { class:
|
|
5895
|
+
]), k = o.text ? V("p", { class: f.b("text") }, [o.text]) : void 0;
|
|
5896
5896
|
return V(kt, {
|
|
5897
|
-
name:
|
|
5897
|
+
name: f.b("fade"),
|
|
5898
5898
|
onAfterLeave: u
|
|
5899
5899
|
}, {
|
|
5900
5900
|
default: U(() => [
|
|
@@ -5903,13 +5903,13 @@ function o0(e) {
|
|
|
5903
5903
|
backgroundColor: o.background || ""
|
|
5904
5904
|
},
|
|
5905
5905
|
class: [
|
|
5906
|
-
|
|
5906
|
+
f.b("mask"),
|
|
5907
5907
|
o.customClass,
|
|
5908
5908
|
o.fullscreen ? "is-fullscreen" : ""
|
|
5909
5909
|
]
|
|
5910
5910
|
}, [
|
|
5911
5911
|
V("div", {
|
|
5912
|
-
class:
|
|
5912
|
+
class: f.b("spinner")
|
|
5913
5913
|
}, [g, k])
|
|
5914
5914
|
]), [[Jt, o.visible]])
|
|
5915
5915
|
])
|
|
@@ -5983,10 +5983,10 @@ const lr = function(e = {}) {
|
|
|
5983
5983
|
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? gt(t, o.bm("parent", "relative")) : Ft(t, o.bm("parent", "relative")), e.fullscreen && e.lock ? Ft(t, o.bm("parent", "hidden")) : gt(t, o.bm("parent", "hidden"));
|
|
5984
5984
|
}, ur = Symbol("ElLoading"), la = (e, t) => {
|
|
5985
5985
|
var n, o, r, s;
|
|
5986
|
-
const a = t.instance, i = (
|
|
5987
|
-
const m = ye(
|
|
5986
|
+
const a = t.instance, i = (p) => Tt(t.value) ? t.value[p] : void 0, u = (p) => {
|
|
5987
|
+
const m = ye(p) && (a == null ? void 0 : a[p]) || p;
|
|
5988
5988
|
return m && $(m);
|
|
5989
|
-
}, l = (
|
|
5989
|
+
}, l = (p) => u(i(p) || e.getAttribute(`element-loading-${Tc(p)}`)), c = (n = i("fullscreen")) != null ? n : t.modifiers.fullscreen, d = {
|
|
5990
5990
|
text: l("text"),
|
|
5991
5991
|
svg: l("svg"),
|
|
5992
5992
|
svgViewBox: l("svgViewBox"),
|
|
@@ -6119,10 +6119,10 @@ const lr = function(e = {}) {
|
|
|
6119
6119
|
setup(e, { expose: t }) {
|
|
6120
6120
|
const n = e, { Close: o } = wf, { ns: r, zIndex: s } = Ci("message"), { currentZIndex: a, nextZIndex: i } = s, u = $(), l = $(!1), c = $(0);
|
|
6121
6121
|
let d;
|
|
6122
|
-
const
|
|
6122
|
+
const p = E(() => n.type ? n.type === "error" ? "danger" : n.type : "info"), m = E(() => {
|
|
6123
6123
|
const y = n.type;
|
|
6124
6124
|
return { [r.bm("icon", y)]: y && Ns[y] };
|
|
6125
|
-
}),
|
|
6125
|
+
}), f = E(() => n.icon || Ns[n.type] || ""), v = E(() => c0(n.id)), _ = E(() => d0(n.id, n.offset) + v.value), g = E(() => c.value + _.value), k = E(() => ({
|
|
6126
6126
|
top: `${_.value}px`,
|
|
6127
6127
|
zIndex: a.value
|
|
6128
6128
|
}));
|
|
@@ -6176,15 +6176,15 @@ const lr = function(e = {}) {
|
|
|
6176
6176
|
y.repeatNum > 1 ? (T(), ee(b(im), {
|
|
6177
6177
|
key: 0,
|
|
6178
6178
|
value: y.repeatNum,
|
|
6179
|
-
type: b(
|
|
6179
|
+
type: b(p),
|
|
6180
6180
|
class: se(b(r).e("badge"))
|
|
6181
6181
|
}, null, 8, ["value", "type", "class"])) : D("v-if", !0),
|
|
6182
|
-
b(
|
|
6182
|
+
b(f) ? (T(), ee(b(po), {
|
|
6183
6183
|
key: 1,
|
|
6184
6184
|
class: se([b(r).e("icon"), b(m)])
|
|
6185
6185
|
}, {
|
|
6186
6186
|
default: U(() => [
|
|
6187
|
-
(T(), ee(br(b(
|
|
6187
|
+
(T(), ee(br(b(f))))
|
|
6188
6188
|
]),
|
|
6189
6189
|
_: 1
|
|
6190
6190
|
}, 8, ["class"])) : D("v-if", !0),
|
|
@@ -6333,12 +6333,12 @@ function nn({ url: e, data: t = null, method: n = "GET", headers: o = null, cach
|
|
|
6333
6333
|
};
|
|
6334
6334
|
if (o && (l.headers = Object.assign(l.headers, o), o["Content-Type"] && o["Content-Type"].indexOf("application/x-www-form-urlencoded") != -1 && t)) {
|
|
6335
6335
|
let d = "";
|
|
6336
|
-
Object.keys(t).forEach((
|
|
6337
|
-
(t[
|
|
6336
|
+
Object.keys(t).forEach((p) => {
|
|
6337
|
+
(t[p] || t[p] == 0) && (d += `${p}=${t[p]}&`);
|
|
6338
6338
|
}), t = d.slice(0, d.length - 1);
|
|
6339
6339
|
}
|
|
6340
6340
|
t && (typeof t == "string" ? l.body = t : l.body = JSON.stringify(t)), i && (l.signal = i);
|
|
6341
|
-
const c = () => new Promise((d,
|
|
6341
|
+
const c = () => new Promise((d, p) => {
|
|
6342
6342
|
setTimeout(() => {
|
|
6343
6343
|
d(new Response("timeout", { status: 504, statusText: "timeout" })), a && a.abort();
|
|
6344
6344
|
}, 6e4);
|
|
@@ -6449,23 +6449,23 @@ function Ko({ props: e, attrs: t, slots: n, slot: o, name: r }) {
|
|
|
6449
6449
|
var s, a;
|
|
6450
6450
|
let { as: i, ...u } = T0(e, ["unmount", "static"]), l = (s = n.default) == null ? void 0 : s.call(n, o), c = {};
|
|
6451
6451
|
if (o) {
|
|
6452
|
-
let d = !1,
|
|
6453
|
-
for (let [m,
|
|
6454
|
-
typeof
|
|
6455
|
-
d && (c["data-headlessui-state"] =
|
|
6452
|
+
let d = !1, p = [];
|
|
6453
|
+
for (let [m, f] of Object.entries(o))
|
|
6454
|
+
typeof f == "boolean" && (d = !0), f === !0 && p.push(m);
|
|
6455
|
+
d && (c["data-headlessui-state"] = p.join(" "));
|
|
6456
6456
|
}
|
|
6457
6457
|
if (i === "template") {
|
|
6458
6458
|
if (l = Qi(l ?? []), Object.keys(u).length > 0 || Object.keys(t).length > 0) {
|
|
6459
|
-
let [d, ...
|
|
6460
|
-
if (!P0(d) ||
|
|
6459
|
+
let [d, ...p] = l ?? [];
|
|
6460
|
+
if (!P0(d) || p.length > 0)
|
|
6461
6461
|
throw new Error(['Passing props on "template"!', "", `The current component <${r} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(u).concat(Object.keys(t)).map((v) => v.trim()).filter((v, _, g) => g.indexOf(v) === _).sort((v, _) => v.localeCompare(_)).map((v) => ` - ${v}`).join(`
|
|
6462
6462
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((v) => ` - ${v}`).join(`
|
|
6463
6463
|
`)].join(`
|
|
6464
6464
|
`));
|
|
6465
|
-
let m = Xi((a = d.props) != null ? a : {}, u),
|
|
6465
|
+
let m = Xi((a = d.props) != null ? a : {}, u), f = Ea(d, m);
|
|
6466
6466
|
for (let v in m)
|
|
6467
|
-
v.startsWith("on") && (
|
|
6468
|
-
return
|
|
6467
|
+
v.startsWith("on") && (f.props || (f.props = {}), f.props[v] = m[v]);
|
|
6468
|
+
return f;
|
|
6469
6469
|
}
|
|
6470
6470
|
return Array.isArray(l) && l.length === 1 ? l[0] : l;
|
|
6471
6471
|
}
|
|
@@ -6624,7 +6624,7 @@ function B0(e, t = (n) => n) {
|
|
|
6624
6624
|
function Le(e, t, { sorted: n = !0, relativeTo: o = null, skipElements: r = [] } = {}) {
|
|
6625
6625
|
var s;
|
|
6626
6626
|
let a = (s = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? s : document, i = Array.isArray(e) ? n ? B0(e) : e : Po(e);
|
|
6627
|
-
r.length > 0 && i.length > 1 && (i = i.filter((
|
|
6627
|
+
r.length > 0 && i.length > 1 && (i = i.filter((f) => !r.includes(f))), o = o ?? a.activeElement;
|
|
6628
6628
|
let u = (() => {
|
|
6629
6629
|
if (t & 5)
|
|
6630
6630
|
return 1;
|
|
@@ -6641,20 +6641,20 @@ function Le(e, t, { sorted: n = !0, relativeTo: o = null, skipElements: r = [] }
|
|
|
6641
6641
|
if (t & 8)
|
|
6642
6642
|
return i.length - 1;
|
|
6643
6643
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
6644
|
-
})(), c = t & 32 ? { preventScroll: !0 } : {}, d = 0,
|
|
6644
|
+
})(), c = t & 32 ? { preventScroll: !0 } : {}, d = 0, p = i.length, m;
|
|
6645
6645
|
do {
|
|
6646
|
-
if (d >=
|
|
6646
|
+
if (d >= p || d + p <= 0)
|
|
6647
6647
|
return 0;
|
|
6648
|
-
let
|
|
6648
|
+
let f = l + d;
|
|
6649
6649
|
if (t & 16)
|
|
6650
|
-
|
|
6650
|
+
f = (f + p) % p;
|
|
6651
6651
|
else {
|
|
6652
|
-
if (
|
|
6652
|
+
if (f < 0)
|
|
6653
6653
|
return 3;
|
|
6654
|
-
if (
|
|
6654
|
+
if (f >= p)
|
|
6655
6655
|
return 1;
|
|
6656
6656
|
}
|
|
6657
|
-
m = i[
|
|
6657
|
+
m = i[f], m == null || m.focus(c), d += u;
|
|
6658
6658
|
} while (m !== a.activeElement);
|
|
6659
6659
|
return t & 6 && D0(m) && m.select(), 2;
|
|
6660
6660
|
}
|
|
@@ -6784,12 +6784,12 @@ let pn = Object.assign(H({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
6784
6784
|
q0({ ownerDocument: s, container: r, containers: e.containers, previousActiveElement: i }, E(() => a.value && !!(e.features & 8)));
|
|
6785
6785
|
let u = Jr();
|
|
6786
6786
|
function l(m) {
|
|
6787
|
-
let
|
|
6788
|
-
|
|
6787
|
+
let f = B(r);
|
|
6788
|
+
f && ((v) => v())(() => {
|
|
6789
6789
|
Se(u.value, { [Ee.Forwards]: () => {
|
|
6790
|
-
Le(
|
|
6790
|
+
Le(f, pe.First, { skipElements: [m.relatedTarget] });
|
|
6791
6791
|
}, [Ee.Backwards]: () => {
|
|
6792
|
-
Le(
|
|
6792
|
+
Le(f, pe.Last, { skipElements: [m.relatedTarget] });
|
|
6793
6793
|
} });
|
|
6794
6794
|
});
|
|
6795
6795
|
}
|
|
@@ -6799,17 +6799,17 @@ let pn = Object.assign(H({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
6799
6799
|
c.value = !1;
|
|
6800
6800
|
}));
|
|
6801
6801
|
}
|
|
6802
|
-
function
|
|
6802
|
+
function p(m) {
|
|
6803
6803
|
if (!a.value)
|
|
6804
6804
|
return;
|
|
6805
|
-
let
|
|
6806
|
-
B(r) instanceof HTMLElement &&
|
|
6805
|
+
let f = al(e.containers);
|
|
6806
|
+
B(r) instanceof HTMLElement && f.add(B(r));
|
|
6807
6807
|
let v = m.relatedTarget;
|
|
6808
|
-
v instanceof HTMLElement && v.dataset.headlessuiFocusGuard !== "true" && (ll(
|
|
6808
|
+
v instanceof HTMLElement && v.dataset.headlessuiFocusGuard !== "true" && (ll(f, v) || (c.value ? Le(B(r), Se(u.value, { [Ee.Forwards]: () => pe.Next, [Ee.Backwards]: () => pe.Previous }) | pe.WrapAround, { relativeTo: m.target }) : m.target instanceof HTMLElement && yt(m.target)));
|
|
6809
6809
|
}
|
|
6810
6810
|
return () => {
|
|
6811
|
-
let m = {},
|
|
6812
|
-
return V(ie, [!!(v & 4) && V(Gt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: St.Focusable }), he({ ourProps:
|
|
6811
|
+
let m = {}, f = { ref: r, onKeydown: d, onFocusout: p }, { features: v, initialFocus: _, containers: g, ...k } = e;
|
|
6812
|
+
return V(ie, [!!(v & 4) && V(Gt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: St.Focusable }), he({ ourProps: f, theirProps: { ...t, ...k }, slot: m, attrs: t, slots: n, name: "FocusTrap" }), !!(v & 4) && V(Gt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: St.Focusable })]);
|
|
6813
6813
|
};
|
|
6814
6814
|
} }), { features: il }), pt = [];
|
|
6815
6815
|
z0(() => {
|
|
@@ -6851,14 +6851,14 @@ function W0({ ownerDocument: e, container: t, initialFocus: n }, o) {
|
|
|
6851
6851
|
var l, c;
|
|
6852
6852
|
if (!s.value)
|
|
6853
6853
|
return;
|
|
6854
|
-
let d = B(n),
|
|
6854
|
+
let d = B(n), p = (l = e.value) == null ? void 0 : l.activeElement;
|
|
6855
6855
|
if (d) {
|
|
6856
|
-
if (d ===
|
|
6857
|
-
r.value =
|
|
6856
|
+
if (d === p) {
|
|
6857
|
+
r.value = p;
|
|
6858
6858
|
return;
|
|
6859
6859
|
}
|
|
6860
|
-
} else if (u.contains(
|
|
6861
|
-
r.value =
|
|
6860
|
+
} else if (u.contains(p)) {
|
|
6861
|
+
r.value = p;
|
|
6862
6862
|
return;
|
|
6863
6863
|
}
|
|
6864
6864
|
d ? yt(d) : Le(u, pe.First | pe.NoScroll) === Tn.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), r.value = (c = e.value) == null ? void 0 : c.activeElement;
|
|
@@ -7016,7 +7016,7 @@ function X0({ slot: e = $({}), name: t = "Description", props: n = {} } = {}) {
|
|
|
7016
7016
|
H({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${Ce()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
7017
7017
|
let o = Q0();
|
|
7018
7018
|
return X(() => Fe(o.register(e.id))), () => {
|
|
7019
|
-
let { name: r = "Description", slot: s = $({}), props: a = {} } = o, { id: i, ...u } = e, l = { ...Object.entries(a).reduce((c, [d,
|
|
7019
|
+
let { name: r = "Description", slot: s = $({}), props: a = {} } = o, { id: i, ...u } = e, l = { ...Object.entries(a).reduce((c, [d, p]) => Object.assign(c, { [d]: b(p) }), {}), id: i };
|
|
7020
7020
|
return he({ ourProps: l, theirProps: u, slot: s.value, attrs: t, slots: n, name: r });
|
|
7021
7021
|
};
|
|
7022
7022
|
} });
|
|
@@ -7168,42 +7168,42 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", lv = H({ name: "Dialog", inheri
|
|
|
7168
7168
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
7169
7169
|
if (typeof l.value != "boolean")
|
|
7170
7170
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l.value === Kn ? void 0 : e.open}`);
|
|
7171
|
-
let
|
|
7171
|
+
let p = E(() => a.value && l.value ? 0 : 1), m = E(() => p.value === 0), f = E(() => i.value > 1), v = Z(hr, null) !== null, [_, g] = dl(), { resolveContainers: k, mainTreeNodeRef: P, MainTreeNode: C } = ml({ portals: _, defaultContainers: [E(() => {
|
|
7172
7172
|
var O;
|
|
7173
7173
|
return (O = N.panelRef.value) != null ? O : c.value;
|
|
7174
|
-
})] }), A = E(() =>
|
|
7174
|
+
})] }), A = E(() => f.value ? "parent" : "leaf"), I = E(() => u !== null ? (u.value & Re.Closing) === Re.Closing : !1), y = E(() => v || I.value ? !1 : m.value), R = E(() => {
|
|
7175
7175
|
var O, F, K;
|
|
7176
7176
|
return (K = Array.from((F = (O = d.value) == null ? void 0 : O.querySelectorAll("body > *")) != null ? F : []).find((te) => te.id === "headlessui-portal-root" ? !1 : te.contains(B(P)) && te instanceof HTMLElement)) != null ? K : null;
|
|
7177
7177
|
});
|
|
7178
7178
|
ha(R, y);
|
|
7179
|
-
let j = E(() =>
|
|
7179
|
+
let j = E(() => f.value ? !0 : m.value), x = E(() => {
|
|
7180
7180
|
var O, F, K;
|
|
7181
7181
|
return (K = Array.from((F = (O = d.value) == null ? void 0 : O.querySelectorAll("[data-headlessui-portal]")) != null ? F : []).find((te) => te.contains(B(P)) && te instanceof HTMLElement)) != null ? K : null;
|
|
7182
7182
|
});
|
|
7183
|
-
ha(x, j), Z0({ type: "Dialog", enabled: E(() =>
|
|
7183
|
+
ha(x, j), Z0({ type: "Dialog", enabled: E(() => p.value === 0), element: c, onUpdate: (O, F) => {
|
|
7184
7184
|
if (F === "Dialog")
|
|
7185
7185
|
return Se(O, { [pr.Add]: () => i.value += 1, [pr.Remove]: () => i.value -= 1 });
|
|
7186
7186
|
} });
|
|
7187
|
-
let w = X0({ name: "DialogDescription", slot: E(() => ({ open: l.value })) }), M = $(null), N = { titleId: M, panelRef: $(null), dialogState:
|
|
7187
|
+
let w = X0({ name: "DialogDescription", slot: E(() => ({ open: l.value })) }), M = $(null), N = { titleId: M, panelRef: $(null), dialogState: p, setTitleId(O) {
|
|
7188
7188
|
M.value !== O && (M.value = O);
|
|
7189
7189
|
}, close() {
|
|
7190
7190
|
t("close", !1);
|
|
7191
7191
|
} };
|
|
7192
7192
|
re(hr, N);
|
|
7193
|
-
let W = E(() => !(!m.value ||
|
|
7193
|
+
let W = E(() => !(!m.value || f.value));
|
|
7194
7194
|
ol(k, (O, F) => {
|
|
7195
7195
|
N.close(), tt(() => F == null ? void 0 : F.focus());
|
|
7196
7196
|
}, W);
|
|
7197
|
-
let q = E(() => !(
|
|
7197
|
+
let q = E(() => !(f.value || p.value !== 0));
|
|
7198
7198
|
Yr((s = d.value) == null ? void 0 : s.defaultView, "keydown", (O) => {
|
|
7199
7199
|
q.value && (O.defaultPrevented || O.key === Qe.Escape && (O.preventDefault(), O.stopPropagation(), N.close()));
|
|
7200
7200
|
});
|
|
7201
|
-
let z = E(() => !(I.value ||
|
|
7201
|
+
let z = E(() => !(I.value || p.value !== 0 || v));
|
|
7202
7202
|
return av(d, z, (O) => {
|
|
7203
7203
|
var F;
|
|
7204
7204
|
return { containers: [...(F = O.containers) != null ? F : [], k] };
|
|
7205
7205
|
}), $e((O) => {
|
|
7206
|
-
if (
|
|
7206
|
+
if (p.value !== 0)
|
|
7207
7207
|
return;
|
|
7208
7208
|
let F = B(c);
|
|
7209
7209
|
if (!F)
|
|
@@ -7216,8 +7216,8 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", lv = H({ name: "Dialog", inheri
|
|
|
7216
7216
|
});
|
|
7217
7217
|
K.observe(F), O(() => K.disconnect());
|
|
7218
7218
|
}), () => {
|
|
7219
|
-
let { id: O, open: F, initialFocus: K, ...te } = e, Ke = { ...n, ref: c, id: O, role: "dialog", "aria-modal":
|
|
7220
|
-
return V(dr, { force: !0 }, () => [V(cl, () => V(J0, { target: c.value }, () => V(dr, { force: !1 }, () => V(pn, { initialFocus: K, containers: k, features: m.value ? Se(A.value, { parent: pn.features.RestoreFocus, leaf: pn.features.All & ~pn.features.FocusLock }) : pn.features.None }, () => V(g, {}, () => he({ ourProps: Ke, theirProps: { ...te, ...n }, slot: Oe, attrs: n, slots: o, visible:
|
|
7219
|
+
let { id: O, open: F, initialFocus: K, ...te } = e, Ke = { ...n, ref: c, id: O, role: "dialog", "aria-modal": p.value === 0 ? !0 : void 0, "aria-labelledby": M.value, "aria-describedby": w.value }, Oe = { open: p.value === 0 };
|
|
7220
|
+
return V(dr, { force: !0 }, () => [V(cl, () => V(J0, { target: c.value }, () => V(dr, { force: !1 }, () => V(pn, { initialFocus: K, containers: k, features: m.value ? Se(A.value, { parent: pn.features.RestoreFocus, leaf: pn.features.All & ~pn.features.FocusLock }) : pn.features.None }, () => V(g, {}, () => he({ ourProps: Ke, theirProps: { ...te, ...n }, slot: Oe, attrs: n, slots: o, visible: p.value === 0, features: Et.RenderStrategy | Et.Static, name: "Dialog" })))))), V(C)]);
|
|
7221
7221
|
};
|
|
7222
7222
|
} });
|
|
7223
7223
|
H({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${Ce()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
@@ -7282,7 +7282,7 @@ let _l = H({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
7282
7282
|
var r;
|
|
7283
7283
|
let s = $(null);
|
|
7284
7284
|
o({ el: s, $el: s });
|
|
7285
|
-
let a = $(1), i = $(null), u = $(null), l = $(null), c = $(null), d = E(() => Ge(s)),
|
|
7285
|
+
let a = $(1), i = $(null), u = $(null), l = $(null), c = $(null), d = E(() => Ge(s)), p = E(() => {
|
|
7286
7286
|
var A, I;
|
|
7287
7287
|
if (!B(i) || !B(c))
|
|
7288
7288
|
return !1;
|
|
@@ -7291,7 +7291,7 @@ let _l = H({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
7291
7291
|
return !0;
|
|
7292
7292
|
let y = Po(), R = y.indexOf(B(i)), j = (R + y.length - 1) % y.length, x = (R + 1) % y.length, w = y[j], M = y[x];
|
|
7293
7293
|
return !((A = B(c)) != null && A.contains(w)) && !((I = B(c)) != null && I.contains(M));
|
|
7294
|
-
}), m = { popoverState: a, buttonId: $(null), panelId: $(null), panel: c, button: i, isPortalled:
|
|
7294
|
+
}), m = { popoverState: a, buttonId: $(null), panelId: $(null), panel: c, button: i, isPortalled: p, beforePanelSentinel: u, afterPanelSentinel: l, togglePopover() {
|
|
7295
7295
|
a.value = Se(a.value, { [0]: 1, [1]: 0 });
|
|
7296
7296
|
}, closePopover() {
|
|
7297
7297
|
a.value !== 1 && (a.value = 1);
|
|
@@ -7301,14 +7301,14 @@ let _l = H({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
7301
7301
|
I == null || I.focus();
|
|
7302
7302
|
} };
|
|
7303
7303
|
re(vl, m), M0(E(() => Se(a.value, { [0]: Re.Open, [1]: Re.Closed })));
|
|
7304
|
-
let
|
|
7304
|
+
let f = { buttonId: m.buttonId, panelId: m.panelId, close() {
|
|
7305
7305
|
m.closePopover();
|
|
7306
7306
|
} }, v = bl(), _ = v == null ? void 0 : v.registerPopover, [g, k] = dl(), P = ml({ portals: g, defaultContainers: [i, c] });
|
|
7307
7307
|
function C() {
|
|
7308
7308
|
var A, I, y, R;
|
|
7309
7309
|
return (R = v == null ? void 0 : v.isFocusWithinPopoverGroup()) != null ? R : ((A = d.value) == null ? void 0 : A.activeElement) && (((I = B(i)) == null ? void 0 : I.contains(d.value.activeElement)) || ((y = B(c)) == null ? void 0 : y.contains(d.value.activeElement)));
|
|
7310
7310
|
}
|
|
7311
|
-
return $e(() => _ == null ? void 0 : _(
|
|
7311
|
+
return $e(() => _ == null ? void 0 : _(f)), Yr((r = d.value) == null ? void 0 : r.defaultView, "focus", (A) => {
|
|
7312
7312
|
var I, y;
|
|
7313
7313
|
A.target !== window && A.target instanceof HTMLElement && a.value === 0 && (C() || i && c && (P.contains(A.target) || (I = B(m.beforePanelSentinel)) != null && I.contains(A.target) || (y = B(m.afterPanelSentinel)) != null && y.contains(A.target) || m.closePopover()));
|
|
7314
7314
|
}, !0), ol(P.resolveContainers, (A, I) => {
|
|
@@ -7329,7 +7329,7 @@ let _l = H({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
7329
7329
|
l.value || $e(() => {
|
|
7330
7330
|
r.button.value = c.value;
|
|
7331
7331
|
});
|
|
7332
|
-
let
|
|
7332
|
+
let p = $0(E(() => ({ as: e.as, type: t.type })), c);
|
|
7333
7333
|
function m(P) {
|
|
7334
7334
|
var C, A, I, y, R;
|
|
7335
7335
|
if (l.value) {
|
|
@@ -7356,7 +7356,7 @@ let _l = H({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
7356
7356
|
break;
|
|
7357
7357
|
}
|
|
7358
7358
|
}
|
|
7359
|
-
function
|
|
7359
|
+
function f(P) {
|
|
7360
7360
|
l.value || P.key === Qe.Space && P.preventDefault();
|
|
7361
7361
|
}
|
|
7362
7362
|
function v(P) {
|
|
@@ -7377,7 +7377,7 @@ let _l = H({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
7377
7377
|
C();
|
|
7378
7378
|
}
|
|
7379
7379
|
return () => {
|
|
7380
|
-
let P = r.popoverState.value === 0, C = { open: P }, { id: A, ...I } = e, y = l.value ? { ref: c, type:
|
|
7380
|
+
let P = r.popoverState.value === 0, C = { open: P }, { id: A, ...I } = e, y = l.value ? { ref: c, type: p.value, onKeydown: m, onClick: v } : { ref: c, id: A, type: p.value, "aria-expanded": e.disabled ? void 0 : r.popoverState.value === 0, "aria-controls": B(r.panel) ? r.panelId.value : void 0, disabled: e.disabled ? !0 : void 0, onKeydown: m, onKeyup: f, onClick: v, onMousedown: _ };
|
|
7381
7381
|
return V(ie, [he({ ourProps: y, theirProps: { ...t, ...I }, slot: C, attrs: t, slots: n, name: "PopoverButton" }), P && !l.value && r.isPortalled.value && V(Gt, { id: d, features: St.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: k })]);
|
|
7382
7382
|
};
|
|
7383
7383
|
} });
|
|
@@ -7415,13 +7415,13 @@ let pv = H({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
7415
7415
|
break;
|
|
7416
7416
|
}
|
|
7417
7417
|
}
|
|
7418
|
-
function
|
|
7418
|
+
function p(_) {
|
|
7419
7419
|
var g, k, P, C, A;
|
|
7420
7420
|
let I = _.relatedTarget;
|
|
7421
7421
|
I && B(s.panel) && ((g = B(s.panel)) != null && g.contains(I) || (s.closePopover(), ((P = (k = B(s.beforePanelSentinel)) == null ? void 0 : k.contains) != null && P.call(k, I) || (A = (C = B(s.afterPanelSentinel)) == null ? void 0 : C.contains) != null && A.call(C, I)) && I.focus({ preventScroll: !0 })));
|
|
7422
7422
|
}
|
|
7423
7423
|
let m = Jr();
|
|
7424
|
-
function
|
|
7424
|
+
function f() {
|
|
7425
7425
|
let _ = B(s.panel);
|
|
7426
7426
|
if (!_)
|
|
7427
7427
|
return;
|
|
@@ -7460,10 +7460,10 @@ let pv = H({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
7460
7460
|
g();
|
|
7461
7461
|
}
|
|
7462
7462
|
return () => {
|
|
7463
|
-
let _ = { open: s.popoverState.value === 0, close: s.close }, { id: g, focus: k, ...P } = e, C = { ref: s.panel, id: g, onKeydown: d, onFocusout: r && s.popoverState.value === 0 ?
|
|
7463
|
+
let _ = { open: s.popoverState.value === 0, close: s.close }, { id: g, focus: k, ...P } = e, C = { ref: s.panel, id: g, onKeydown: d, onFocusout: r && s.popoverState.value === 0 ? p : void 0, tabIndex: -1 };
|
|
7464
7464
|
return he({ ourProps: C, theirProps: { ...t, ...P }, attrs: t, slot: _, slots: { ...n, default: (...A) => {
|
|
7465
7465
|
var I;
|
|
7466
|
-
return [V(ie, [c.value && s.isPortalled.value && V(Gt, { id: i, ref: s.beforePanelSentinel, features: St.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus:
|
|
7466
|
+
return [V(ie, [c.value && s.isPortalled.value && V(Gt, { id: i, ref: s.beforePanelSentinel, features: St.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: f }), (I = n.default) == null ? void 0 : I.call(n, ...A), c.value && s.isPortalled.value && V(Gt, { id: u, ref: s.afterPanelSentinel, features: St.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: v })])];
|
|
7467
7467
|
} }, features: Et.RenderStrategy | Et.Static, visible: c.value, name: "PopoverPanel" });
|
|
7468
7468
|
};
|
|
7469
7469
|
} });
|
|
@@ -7471,8 +7471,8 @@ H({ name: "PopoverGroup", props: { as: { type: [Object, String], default: "div"
|
|
|
7471
7471
|
let r = $(null), s = gr([]), a = E(() => Ge(r));
|
|
7472
7472
|
o({ el: r, $el: r });
|
|
7473
7473
|
function i(d) {
|
|
7474
|
-
let
|
|
7475
|
-
|
|
7474
|
+
let p = s.value.indexOf(d);
|
|
7475
|
+
p !== -1 && s.value.splice(p, 1);
|
|
7476
7476
|
}
|
|
7477
7477
|
function u(d) {
|
|
7478
7478
|
return s.value.push(d), () => {
|
|
@@ -7481,18 +7481,18 @@ H({ name: "PopoverGroup", props: { as: { type: [Object, String], default: "div"
|
|
|
7481
7481
|
}
|
|
7482
7482
|
function l() {
|
|
7483
7483
|
var d;
|
|
7484
|
-
let
|
|
7485
|
-
if (!
|
|
7484
|
+
let p = a.value;
|
|
7485
|
+
if (!p)
|
|
7486
7486
|
return !1;
|
|
7487
|
-
let m =
|
|
7488
|
-
return (d = B(r)) != null && d.contains(m) ? !0 : s.value.some((
|
|
7487
|
+
let m = p.activeElement;
|
|
7488
|
+
return (d = B(r)) != null && d.contains(m) ? !0 : s.value.some((f) => {
|
|
7489
7489
|
var v, _;
|
|
7490
|
-
return ((v =
|
|
7490
|
+
return ((v = p.getElementById(f.buttonId.value)) == null ? void 0 : v.contains(m)) || ((_ = p.getElementById(f.panelId.value)) == null ? void 0 : _.contains(m));
|
|
7491
7491
|
});
|
|
7492
7492
|
}
|
|
7493
7493
|
function c(d) {
|
|
7494
|
-
for (let
|
|
7495
|
-
|
|
7494
|
+
for (let p of s.value)
|
|
7495
|
+
p.buttonId.value !== d && p.close();
|
|
7496
7496
|
}
|
|
7497
7497
|
return re(gl, { registerPopover: u, unregisterPopover: i, isFocusWithinPopoverGroup: l, closeOthers: c }), () => he({ ourProps: { ref: r }, theirProps: e, slot: {}, attrs: t, slots: n, name: "PopoverGroup" });
|
|
7498
7498
|
} });
|
|
@@ -8067,10 +8067,10 @@ function ba(e, t, n, o) {
|
|
|
8067
8067
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
8068
8068
|
Zo($(r ? r() : {}).value)
|
|
8069
8069
|
) : Zo(n.state.value[e]);
|
|
8070
|
-
return ke(c, s, Object.keys(a || {}).reduce((d,
|
|
8070
|
+
return ke(c, s, Object.keys(a || {}).reduce((d, p) => (process.env.NODE_ENV !== "production" && p in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), d[p] = mn(E(() => {
|
|
8071
8071
|
ho(n);
|
|
8072
8072
|
const m = n._s.get(e);
|
|
8073
|
-
return a[
|
|
8073
|
+
return a[p].call(m, m);
|
|
8074
8074
|
})), d), {}));
|
|
8075
8075
|
}
|
|
8076
8076
|
return u = vr(e, l, t, n, o, !0), u;
|
|
@@ -8087,9 +8087,9 @@ function vr(e, t, n = {}, o, r, s) {
|
|
|
8087
8087
|
process.env.NODE_ENV !== "production" && !lc && (u.onTrigger = (x) => {
|
|
8088
8088
|
l ? m = x : l == !1 && !y._hotUpdating && (Array.isArray(m) ? m.push(x) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
8089
8089
|
});
|
|
8090
|
-
let l, c, d = [],
|
|
8091
|
-
const
|
|
8092
|
-
!s && !
|
|
8090
|
+
let l, c, d = [], p = [], m;
|
|
8091
|
+
const f = o.state.value[e];
|
|
8092
|
+
!s && !f && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
8093
8093
|
const v = $({});
|
|
8094
8094
|
let _;
|
|
8095
8095
|
function g(x) {
|
|
@@ -8121,7 +8121,7 @@ function vr(e, t, n = {}, o, r, s) {
|
|
|
8121
8121
|
} : El
|
|
8122
8122
|
);
|
|
8123
8123
|
function P() {
|
|
8124
|
-
a.stop(), d = [],
|
|
8124
|
+
a.stop(), d = [], p = [], o._s.delete(e);
|
|
8125
8125
|
}
|
|
8126
8126
|
function C(x, w) {
|
|
8127
8127
|
return function() {
|
|
@@ -8133,7 +8133,7 @@ function vr(e, t, n = {}, o, r, s) {
|
|
|
8133
8133
|
function z(F) {
|
|
8134
8134
|
W.push(F);
|
|
8135
8135
|
}
|
|
8136
|
-
Rt(
|
|
8136
|
+
Rt(p, {
|
|
8137
8137
|
args: M,
|
|
8138
8138
|
name: x,
|
|
8139
8139
|
store: y,
|
|
@@ -8158,7 +8158,7 @@ function vr(e, t, n = {}, o, r, s) {
|
|
|
8158
8158
|
_p: o,
|
|
8159
8159
|
// _s: scope,
|
|
8160
8160
|
$id: e,
|
|
8161
|
-
$onAction: va.bind(null,
|
|
8161
|
+
$onAction: va.bind(null, p),
|
|
8162
8162
|
$patch: g,
|
|
8163
8163
|
$reset: k,
|
|
8164
8164
|
$subscribe(x, w = {}) {
|
|
@@ -8187,7 +8187,7 @@ function vr(e, t, n = {}, o, r, s) {
|
|
|
8187
8187
|
for (const x in j) {
|
|
8188
8188
|
const w = j[x];
|
|
8189
8189
|
if (_t(w) && !ga(w) || yr(w))
|
|
8190
|
-
process.env.NODE_ENV !== "production" && r ? jn(v.value, x, Xe(j, x)) : s || (
|
|
8190
|
+
process.env.NODE_ENV !== "production" && r ? jn(v.value, x, Xe(j, x)) : s || (f && Kv(w) && (_t(w) ? w.value = f[x] : mr(w, f[x])), o.state.value[e][x] = w), process.env.NODE_ENV !== "production" && A.state.push(x);
|
|
8191
8191
|
else if (typeof w == "function") {
|
|
8192
8192
|
const M = process.env.NODE_ENV !== "production" && r ? w : C(x, w);
|
|
8193
8193
|
j[x] = M, process.env.NODE_ENV !== "production" && (A.actions[x] = w), i.actions[x] = w;
|
|
@@ -8264,7 +8264,7 @@ function vr(e, t, n = {}, o, r, s) {
|
|
|
8264
8264
|
})));
|
|
8265
8265
|
}), process.env.NODE_ENV !== "production" && y.$state && typeof y.$state == "object" && typeof y.$state.constructor == "function" && !y.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8266
8266
|
state: () => new MyClass()
|
|
8267
|
-
Found in store "${y.$id}".`),
|
|
8267
|
+
Found in store "${y.$id}".`), f && s && n.hydrate && n.hydrate(y.$state, f), l = !0, c = !0, y;
|
|
8268
8268
|
}
|
|
8269
8269
|
function Jv(e, t, n) {
|
|
8270
8270
|
let o, r;
|
|
@@ -8285,14 +8285,14 @@ This will fail in production.`);
|
|
|
8285
8285
|
i = gn, i._s.has(o) || (s ? vr(o, t, r, i) : ba(o, r, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
|
|
8286
8286
|
const c = i._s.get(o);
|
|
8287
8287
|
if (process.env.NODE_ENV !== "production" && u) {
|
|
8288
|
-
const d = "__hot:" + o,
|
|
8289
|
-
u._hotUpdate(
|
|
8288
|
+
const d = "__hot:" + o, p = s ? vr(d, t, r, i, !0) : ba(d, ke({}, r), i, !0);
|
|
8289
|
+
u._hotUpdate(p), delete i.state.value[d], i._s.delete(d);
|
|
8290
8290
|
}
|
|
8291
8291
|
if (process.env.NODE_ENV !== "production" && Zr) {
|
|
8292
8292
|
const d = je();
|
|
8293
8293
|
if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
|
|
8294
8294
|
!u) {
|
|
8295
|
-
const
|
|
8295
|
+
const p = d.proxy, m = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
8296
8296
|
m[o] = c;
|
|
8297
8297
|
}
|
|
8298
8298
|
}
|
|
@@ -8322,7 +8322,7 @@ const Zv = Jv("user", {
|
|
|
8322
8322
|
if (o) {
|
|
8323
8323
|
let { free_cnt: i, is_subscribed: u, detail: l } = r;
|
|
8324
8324
|
i || (i = 0), l && l.ends_at && (u = new Date(l.ends_at) > /* @__PURE__ */ new Date());
|
|
8325
|
-
const c = s && s.detail || null, d = c && !0 || !1,
|
|
8325
|
+
const c = s && s.detail || null, d = c && !0 || !1, p = u && l.name || d && c.name || "", m = { ...o, free_cnt: i, is_subscribed: u || d, subscribedType: p, detail: l || c, team_subscription: s, isMember: !u && s, drive: a };
|
|
8326
8326
|
this.user = m, window.userStatus = m;
|
|
8327
8327
|
}
|
|
8328
8328
|
t({ profile: o, subscription: r, is_subscribed: this.user && this.user.is_subscribed });
|
|
@@ -8342,11 +8342,11 @@ const Zv = Jv("user", {
|
|
|
8342
8342
|
let r = 1;
|
|
8343
8343
|
const s = () => {
|
|
8344
8344
|
ca(n).then(({ profile: a, subscription: i, team_subscription: u, drive: l }) => {
|
|
8345
|
-
let { free_cnt: c, is_subscribed: d, detail:
|
|
8346
|
-
c || (c = 0),
|
|
8347
|
-
const m = u && u.detail || null,
|
|
8348
|
-
if (d ||
|
|
8349
|
-
const _ = { ...a, free_cnt: c, is_subscribed: d ||
|
|
8345
|
+
let { free_cnt: c, is_subscribed: d, detail: p } = i;
|
|
8346
|
+
c || (c = 0), p && p.ends_at && (d = new Date(p.ends_at) > /* @__PURE__ */ new Date());
|
|
8347
|
+
const m = u && u.detail || null, f = m && !0 || !1, v = d && p.name || f && m.name || "";
|
|
8348
|
+
if (d || f || t == "purchase" && c) {
|
|
8349
|
+
const _ = { ...a, free_cnt: c, is_subscribed: d || f, subscribedType: v, detail: p || m, team_subscription: u, isMember: !d && u, drive: l };
|
|
8350
8350
|
if (this.user = _, window.userStatus = _, window.opener) {
|
|
8351
8351
|
const g = {
|
|
8352
8352
|
type: "subscribed"
|
|
@@ -8771,18 +8771,18 @@ const $t = (e) => (Zt("data-v-b9e2cd3f"), e = e(), Qt(), e), jg = /* @__PURE__ *
|
|
|
8771
8771
|
"a",
|
|
8772
8772
|
{
|
|
8773
8773
|
target: "_blank",
|
|
8774
|
-
href: "https://www.
|
|
8774
|
+
href: "https://www.livepolls.app/ai_image_generator/image-generator",
|
|
8775
8775
|
class: "cursor-pointer flex items-center bg-gradient-to-r h-24 from-purple-100 via-blue-100 to-purple-200 rounded-2xl w-96 p-3"
|
|
8776
8776
|
},
|
|
8777
8777
|
[
|
|
8778
8778
|
/* @__PURE__ */ h("img", {
|
|
8779
8779
|
style: { height: "64px", width: "64px", marginRight: "4px", borderRadius: "4px" },
|
|
8780
8780
|
class: "h-16 w-16 mr-1 rounded",
|
|
8781
|
-
src: "https://statics.imgkits.com/
|
|
8781
|
+
src: "https://statics.imgkits.com/text_to_image/1/logo.86344959.png"
|
|
8782
8782
|
}),
|
|
8783
8783
|
/* @__PURE__ */ h("div", { class: "flex flex-col pl-1" }, [
|
|
8784
|
-
/* @__PURE__ */ h("h3", { class: "text-lg font-semibold" }, "AI
|
|
8785
|
-
/* @__PURE__ */ h("div", { class: "text-gray-500 font-semibold text-sm" }, "
|
|
8784
|
+
/* @__PURE__ */ h("h3", { class: "text-lg font-semibold" }, "AI Image Generator"),
|
|
8785
|
+
/* @__PURE__ */ h("div", { class: "text-gray-500 font-semibold text-sm" }, "Turn text prompts into an image")
|
|
8786
8786
|
])
|
|
8787
8787
|
],
|
|
8788
8788
|
-1
|
|
@@ -9641,12 +9641,12 @@ const ge = (e) => (Zt("data-v-c970699f"), e = e(), Qt(), e), s1 = {
|
|
|
9641
9641
|
name: "More Edge Extensions >",
|
|
9642
9642
|
href: "https://www.livepolls.app/chrome_addons"
|
|
9643
9643
|
}
|
|
9644
|
-
]), l = $(n.isShenHe ? [{ name: "Privacy Policy", href: s + "/privacy", target: "_blank" }] : [{ name: "Pricing", href: s + "/pricing", target: "_self" }]), c = $(s || "/"), d = $(!1),
|
|
9644
|
+
]), l = $(n.isShenHe ? [{ name: "Privacy Policy", href: s + "/privacy", target: "_blank" }] : [{ name: "Pricing", href: s + "/pricing", target: "_self" }]), c = $(s || "/"), d = $(!1), p = $(null), m = E(() => n.userStore.user), f = () => {
|
|
9645
9645
|
n.userStore.showLogin(!0);
|
|
9646
9646
|
}, v = $(!1);
|
|
9647
9647
|
X(() => {
|
|
9648
9648
|
const R = new URL(location.href);
|
|
9649
|
-
|
|
9649
|
+
p.value = R.searchParams.get("from") || null, n.userStore.getUser(n.driveQuery).then(
|
|
9650
9650
|
({ profile: j }) => {
|
|
9651
9651
|
t("initUserCallback", j), console.log("login", j), !j && n.from != "login" && !n.isShenHe && A();
|
|
9652
9652
|
},
|
|
@@ -9802,12 +9802,12 @@ const ge = (e) => (Zt("data-v-c970699f"), e = e(), Qt(), e), s1 = {
|
|
|
9802
9802
|
h("div", b1, [
|
|
9803
9803
|
h("a", {
|
|
9804
9804
|
target: "_blank",
|
|
9805
|
-
href: "https://www.imgkits.com" + (
|
|
9805
|
+
href: "https://www.imgkits.com" + (p.value ? "?from=" + p.value : ""),
|
|
9806
9806
|
class: "cursor-pointer flex items-center bg-gradient-to-r h-24 mb-6 from-purple-100 via-blue-100 to-purple-200 rounded-2xl w-60 xl:w-72 p-3"
|
|
9807
9807
|
}, x1, 8, y1),
|
|
9808
9808
|
h("a", {
|
|
9809
9809
|
target: "_blank",
|
|
9810
|
-
href: "https://www.livepolls.app/ai_image_generator/image-generator" + (
|
|
9810
|
+
href: "https://www.livepolls.app/ai_image_generator/image-generator" + (p.value ? "?from=" + p.value : ""),
|
|
9811
9811
|
class: "cursor-pointer flex items-center bg-gradient-to-r h-24 from-purple-100 via-blue-100 to-purple-200 rounded-2xl w-60 xl:w-72 p-3"
|
|
9812
9812
|
}, k1, 8, E1)
|
|
9813
9813
|
])
|
|
@@ -9824,7 +9824,7 @@ const ge = (e) => (Zt("data-v-c970699f"), e = e(), Qt(), e), s1 = {
|
|
|
9824
9824
|
class: "flex items-center"
|
|
9825
9825
|
}, [
|
|
9826
9826
|
h("a", {
|
|
9827
|
-
href:
|
|
9827
|
+
href: p.value ? x.href + "?from=" + p.value : x.href,
|
|
9828
9828
|
class: "font-normal hover:underline block p-2 hover:text-indigo-600",
|
|
9829
9829
|
target: "_blank"
|
|
9830
9830
|
}, [
|
|
@@ -10004,7 +10004,7 @@ const ge = (e) => (Zt("data-v-c970699f"), e = e(), Qt(), e), s1 = {
|
|
|
10004
10004
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
10005
10005
|
)) : (T(), L("div", Y1, [
|
|
10006
10006
|
h("a", {
|
|
10007
|
-
onClick:
|
|
10007
|
+
onClick: f,
|
|
10008
10008
|
href: "javscript:void(0)",
|
|
10009
10009
|
class: "text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
|
|
10010
10010
|
}, [
|
|
@@ -10087,7 +10087,7 @@ const ge = (e) => (Zt("data-v-c970699f"), e = e(), Qt(), e), s1 = {
|
|
|
10087
10087
|
])) : (T(), L("div", pb, [
|
|
10088
10088
|
h("a", {
|
|
10089
10089
|
href: "#",
|
|
10090
|
-
onClick:
|
|
10090
|
+
onClick: f,
|
|
10091
10091
|
class: "-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
10092
10092
|
}, "Log in")
|
|
10093
10093
|
]))
|