@huyooo/ui 0.5.36 → 0.5.37
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.
|
@@ -5,7 +5,7 @@ import { Spin as H } from "@arco-design/web-vue";
|
|
|
5
5
|
import { a as E } from "./useAuthkitUsersProfile-B1y2nleU.js";
|
|
6
6
|
import { u as K, a as Z } from "./auth-B864DrVx.js";
|
|
7
7
|
import { u as V } from "./useAuthkitAppsAuthPageInfo-Ct-ElH04.js";
|
|
8
|
-
import { a as B, f as R, w as L, b as D, d as O, c as ee } from "./useSEO-
|
|
8
|
+
import { a as B, f as R, w as L, b as D, d as O, c as ee } from "./useSEO-CDBhukDZ.js";
|
|
9
9
|
import "./useUploadCos-Ca4Mo5FD.js";
|
|
10
10
|
import { useRouter as G, useRoute as W } from "vue-router";
|
|
11
11
|
/* empty css */
|
package/dist/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-
|
|
1
|
+
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-CGy4PLm9.js";
|
|
2
2
|
import { C as i, a as f } from "./CollapseItem-Cw1vcdLu.js";
|
|
3
3
|
import { C as x, E as H } from "./CustomTable-B8i1SbFB.js";
|
|
4
4
|
import { M, a as g } from "./Menu-ejsosUdV.js";
|
package/dist/composables.js
CHANGED
|
@@ -5,7 +5,7 @@ import { u as m } from "./useAuthkitCreateAndUpdate-C7pOKxNA.js";
|
|
|
5
5
|
import { u as d } from "./useMessageNotifications-BUJtc-Us.js";
|
|
6
6
|
import { u as x, a as C } from "./useDownloads-B7Leb86s.js";
|
|
7
7
|
import { u as k } from "./useTableHandle-DGz8Wwsj.js";
|
|
8
|
-
import { f as w, u as E, a as M, b as O, d as P, c as S, w as U } from "./useSEO-
|
|
8
|
+
import { f as w, u as E, a as M, b as O, d as P, c as S, w as U } from "./useSEO-CDBhukDZ.js";
|
|
9
9
|
import { u as G } from "./useUploadCos-Ca4Mo5FD.js";
|
|
10
10
|
export {
|
|
11
11
|
w as findMenuPath,
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import { u as Z3 } from "./useMessageNotifications-BUJtc-Us.js";
|
|
|
6
6
|
import { a as e2 } from "./useDownloads-B7Leb86s.js";
|
|
7
7
|
import { u as E3 } from "./useDownloads-B7Leb86s.js";
|
|
8
8
|
import { u as S3 } from "./useTableHandle-DGz8Wwsj.js";
|
|
9
|
-
import { n as p2, e as I, U as f2, i as t2, V as h2, h as q, H as K, g as u2, v as _2 } from "./useSEO-
|
|
10
|
-
import { f as A3, u as G3, a as D3, b as P3, d as T3, c as O3, w as B3 } from "./useSEO-
|
|
9
|
+
import { n as p2, e as I, U as f2, i as t2, V as h2, h as q, H as K, g as u2, v as _2 } from "./useSEO-CDBhukDZ.js";
|
|
10
|
+
import { f as A3, u as G3, a as D3, b as P3, d as T3, c as O3, w as B3 } from "./useSEO-CDBhukDZ.js";
|
|
11
11
|
import { u as $3 } from "./useUploadCos-Ca4Mo5FD.js";
|
|
12
12
|
import { A as W3, a as R3, c as z3, b as j3, n as q3, E as K3, k as J3, l as Q3, _ as X3, O as Y3, f as e4, o as t4, P as o4, j as s4, R as a4, S as i4, i as n4, m as r4, d as c4, e as l4, g as C4, h as d4 } from "./AuthkitAuthModal-BUicw-gi.js";
|
|
13
13
|
import { A as f4, a as h4 } from "./AuthkitAuthorize--PZTQ6P_.js";
|
|
@@ -18,7 +18,7 @@ import { C as $4 } from "./Clipboard-07wvmu-K.js";
|
|
|
18
18
|
import { F as W4, a as R4, c as z4, b as j4, d as q4 } from "./FeedbackItem-CdNcEvhG.js";
|
|
19
19
|
import { L as J4, a as Q4, b as X4, c as Y4, B as e6, C as t6, d as o6, e as s6, x as a6, y as i6, f as n6, g as r6, z as c6, h as l6, i as C6, j as d6, k as p6, l as f6, m as h6, n as u6, D as _6, o as g6, p as m6, q as L6, r as y6, s as w6, T as F6, t as M6, A as v6, u as k6, v as x6, w as H6 } from "./LandingPageSectionTabs-Vk5dMIEO.js";
|
|
20
20
|
import { L as V6, a as E6, b as U6, c as S6, D as b6, d as A6, e as G6, f as D6, g as P6, h as T6, i as O6, j as B6, k as I6, l as $6, m as N6, n as W6 } from "./LandingPageSectionHeader-BWX7bHHG.js";
|
|
21
|
-
import { A as z6, a as j6, C as q6, D as K6, G as J6, H as Q6, b as X6, L as Y6, S as e7, W as t7 } from "./WidthContainer-
|
|
21
|
+
import { A as z6, a as j6, C as q6, D as K6, G as J6, H as Q6, b as X6, L as Y6, S as e7, W as t7 } from "./WidthContainer-CGy4PLm9.js";
|
|
22
22
|
import { C as s7, a as a7 } from "./CollapseItem-Cw1vcdLu.js";
|
|
23
23
|
import { C as n7, E as r7 } from "./CustomTable-B8i1SbFB.js";
|
|
24
24
|
import { M as l7, a as C7 } from "./Menu-ejsosUdV.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as I, computed as
|
|
1
|
+
import { ref as I, computed as d, watch as C, toValue as G, isRef as W, hasInjectionContext as B, inject as F, watchEffect as J, getCurrentInstance as Q, onBeforeUnmount as Z, onDeactivated as X, onActivated as Y } from "vue";
|
|
2
2
|
import { useRouter as _, useRoute as x } from "vue-router";
|
|
3
3
|
import { u as R } from "./useAuthkitAppsAuthPageInfo-Ct-ElH04.js";
|
|
4
4
|
import { a as U } from "./useAuthkitUsersProfile-B1y2nleU.js";
|
|
@@ -6,7 +6,7 @@ const v = I({
|
|
|
6
6
|
key: "",
|
|
7
7
|
name: ""
|
|
8
8
|
});
|
|
9
|
-
function
|
|
9
|
+
function we() {
|
|
10
10
|
function e(t, n) {
|
|
11
11
|
v.value.key = t, v.value.name = n;
|
|
12
12
|
}
|
|
@@ -15,7 +15,7 @@ function be() {
|
|
|
15
15
|
setActiveDoc: e
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Se(e, t = "default") {
|
|
19
19
|
const n = document;
|
|
20
20
|
if (n && typeof n.startViewTransition == "function") {
|
|
21
21
|
const r = document.body;
|
|
@@ -33,7 +33,7 @@ function we(e, t = "default") {
|
|
|
33
33
|
function K(e, t) {
|
|
34
34
|
return Array.isArray(e == null ? void 0 : e.menuTypes) ? e.menuTypes.includes(t) : !1;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Ae(e, t, n) {
|
|
37
37
|
for (let r = e.length - 1; r >= 0; r--) {
|
|
38
38
|
const o = e[r];
|
|
39
39
|
if (K(o.meta, t))
|
|
@@ -41,18 +41,18 @@ function Se(e, t, n) {
|
|
|
41
41
|
}
|
|
42
42
|
return n;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function $e(e) {
|
|
45
45
|
const t = _(), {
|
|
46
46
|
appsData: n
|
|
47
47
|
} = R(), {
|
|
48
48
|
isLoggedIn: r,
|
|
49
49
|
userProfile: o
|
|
50
|
-
} = U(), s =
|
|
50
|
+
} = U(), s = d(() => {
|
|
51
51
|
var p;
|
|
52
52
|
return !r.value || !o.value ? [] : ((p = o.value.permissions) == null ? void 0 : p.map((a) => a.permissionKey)) || [];
|
|
53
53
|
});
|
|
54
54
|
function i(p) {
|
|
55
|
-
return (n.value.publicRoutes || []).some((
|
|
55
|
+
return (n.value.publicRoutes || []).some((h) => h.permissionKey === p);
|
|
56
56
|
}
|
|
57
57
|
function c(p) {
|
|
58
58
|
return r.value ? s.value.includes(p) : !1;
|
|
@@ -63,11 +63,11 @@ function Ae(e) {
|
|
|
63
63
|
path: p.path,
|
|
64
64
|
name: p.name,
|
|
65
65
|
meta: p.meta,
|
|
66
|
-
children: (a = p.children) == null ? void 0 : a.map((
|
|
66
|
+
children: (a = p.children) == null ? void 0 : a.map((h) => l(h))
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
function u(p, a) {
|
|
70
|
-
const
|
|
70
|
+
const h = [];
|
|
71
71
|
for (const f of p) {
|
|
72
72
|
if (f.path === "/" || f.path === "/:catchAll(.*)")
|
|
73
73
|
continue;
|
|
@@ -75,38 +75,38 @@ function Ae(e) {
|
|
|
75
75
|
if (K(m, a)) {
|
|
76
76
|
const w = f.path;
|
|
77
77
|
if (i(w) || c(w)) {
|
|
78
|
-
const
|
|
78
|
+
const g = {
|
|
79
79
|
name: (m == null ? void 0 : m.menuName) || (m == null ? void 0 : m.title) || (typeof f.name == "string" ? f.name : f.path),
|
|
80
80
|
path: f.path,
|
|
81
81
|
icon: (m == null ? void 0 : m.menuIcon) || (m == null ? void 0 : m.icon),
|
|
82
82
|
hidden: m == null ? void 0 : m.hidden
|
|
83
83
|
};
|
|
84
84
|
if (f.children && f.children.length > 0) {
|
|
85
|
-
const
|
|
86
|
-
|
|
85
|
+
const P = u(f.children, a);
|
|
86
|
+
P.length > 0 && (g.children = P);
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
h.push(g);
|
|
89
89
|
}
|
|
90
90
|
} else if (f.children && f.children.length > 0) {
|
|
91
91
|
const w = u(f.children, a);
|
|
92
|
-
|
|
92
|
+
h.push(...w);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
return
|
|
95
|
+
return h;
|
|
96
96
|
}
|
|
97
97
|
return {
|
|
98
|
-
menus:
|
|
98
|
+
menus: d(() => {
|
|
99
99
|
if (!e)
|
|
100
100
|
return [];
|
|
101
|
-
const p = t.getRoutes(), a = p.find((
|
|
102
|
-
return console.log(u(
|
|
101
|
+
const p = t.getRoutes(), a = p.find((g) => g.path === "/"), h = a != null && a.children ? a.children.map((g) => l(g)) : [], f = new Set(h.map((g) => g.path)), w = p.filter((g) => g.path === "/" || g.path === "/:catchAll(.*)" || f.has(g.path) ? !1 : g.path.split("/").filter((N) => N).length === 1).map(l), T = [...h, ...w];
|
|
102
|
+
return console.log(u(T, e), "过滤菜单"), u(T, e);
|
|
103
103
|
}),
|
|
104
104
|
isRoutePublic: i,
|
|
105
105
|
hasPermission: (p) => i(p) ? !0 : c(p),
|
|
106
106
|
isLoggedIn: r
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Te() {
|
|
110
110
|
const e = _(), t = x(), {
|
|
111
111
|
appsAuthPageInfoApi: n,
|
|
112
112
|
appsData: r,
|
|
@@ -124,7 +124,7 @@ function $e() {
|
|
|
124
124
|
return !i.value || !s.value ? !1 : (((f = s.value.permissions) == null ? void 0 : f.map((m) => m.permissionKey)) || []).includes(a);
|
|
125
125
|
}
|
|
126
126
|
function p(a) {
|
|
127
|
-
var
|
|
127
|
+
var h, f;
|
|
128
128
|
if (!o.value) {
|
|
129
129
|
console.log("权限检查跳过:appsAuthPageInfoSuccess 未加载完成", a);
|
|
130
130
|
return;
|
|
@@ -142,7 +142,7 @@ function $e() {
|
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
144
|
b(a) ? console.log("权限检查通过:有权限", a) : (console.log("权限检查失败:无权限,重定向到首页", a, {
|
|
145
|
-
permissions: (f = (
|
|
145
|
+
permissions: (f = (h = s.value) == null ? void 0 : h.permissions) == null ? void 0 : f.map((m) => m.permissionKey)
|
|
146
146
|
}), e.replace("/")), l.value = !1;
|
|
147
147
|
}
|
|
148
148
|
return n(), C(() => t.path, (a) => {
|
|
@@ -155,14 +155,14 @@ function $e() {
|
|
|
155
155
|
hasPermission: b
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const ee = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), te = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]), Pe = /* @__PURE__ */ new Set([
|
|
159
159
|
"base",
|
|
160
160
|
"meta",
|
|
161
161
|
"link",
|
|
162
162
|
"style",
|
|
163
163
|
"script",
|
|
164
164
|
"noscript"
|
|
165
|
-
]),
|
|
165
|
+
]), ve = /* @__PURE__ */ new Set([
|
|
166
166
|
"title",
|
|
167
167
|
"base",
|
|
168
168
|
"htmlAttrs",
|
|
@@ -172,7 +172,7 @@ const Y = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), ee =
|
|
|
172
172
|
"style",
|
|
173
173
|
"script",
|
|
174
174
|
"noscript"
|
|
175
|
-
]),
|
|
175
|
+
]), ne = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]), re = /* @__PURE__ */ new Set(["key", "tagPosition", "tagPriority", "tagDuplicateStrategy", "innerHTML", "textContent", "processTemplateParams"]), je = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]), E = /* @__PURE__ */ new Set([
|
|
176
176
|
"theme-color",
|
|
177
177
|
"google-site-verification",
|
|
178
178
|
"og",
|
|
@@ -186,7 +186,7 @@ const Y = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), ee =
|
|
|
186
186
|
OG: /* @__PURE__ */ new Set(["og", "book", "article", "profile", "fb"]),
|
|
187
187
|
MEDIA: /* @__PURE__ */ new Set(["ogImage", "ogVideo", "ogAudio", "twitterImage"]),
|
|
188
188
|
HTTP_EQUIV: /* @__PURE__ */ new Set(["contentType", "defaultStyle", "xUaCompatible"])
|
|
189
|
-
},
|
|
189
|
+
}, oe = {
|
|
190
190
|
articleExpirationTime: "article:expiration_time",
|
|
191
191
|
articleModifiedTime: "article:modified_time",
|
|
192
192
|
articlePublishedTime: "article:published_time",
|
|
@@ -210,7 +210,7 @@ const Y = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), ee =
|
|
|
210
210
|
unpack: {
|
|
211
211
|
entrySeparator: ", ",
|
|
212
212
|
// @ts-expect-error untyped
|
|
213
|
-
resolve: ({ key: e, value: t }) => `${
|
|
213
|
+
resolve: ({ key: e, value: t }) => `${y(e)}=${t}`
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
refresh: {
|
|
@@ -225,7 +225,7 @@ const Y = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), ee =
|
|
|
225
225
|
unpack: {
|
|
226
226
|
entrySeparator: ", ",
|
|
227
227
|
// @ts-expect-error untyped
|
|
228
|
-
resolve: ({ key: e, value: t }) => typeof t == "boolean" ?
|
|
228
|
+
resolve: ({ key: e, value: t }) => typeof t == "boolean" ? y(e) : `${y(e)}:${t}`
|
|
229
229
|
}
|
|
230
230
|
},
|
|
231
231
|
contentSecurityPolicy: {
|
|
@@ -233,12 +233,12 @@ const Y = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), ee =
|
|
|
233
233
|
unpack: {
|
|
234
234
|
entrySeparator: "; ",
|
|
235
235
|
// @ts-expect-error untyped
|
|
236
|
-
resolve: ({ key: e, value: t }) => `${
|
|
236
|
+
resolve: ({ key: e, value: t }) => `${y(e)} ${t}`
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
239
|
charset: {}
|
|
240
240
|
};
|
|
241
|
-
function
|
|
241
|
+
function y(e) {
|
|
242
242
|
const t = e.replace(/([A-Z])/g, "-$1").toLowerCase(), n = t.indexOf("-");
|
|
243
243
|
return n === -1 ? t : S.META.has(t.slice(0, n)) || S.OG.has(t.slice(0, n)) ? e.replace(/([A-Z])/g, ":$1").toLowerCase() : t;
|
|
244
244
|
}
|
|
@@ -246,7 +246,7 @@ function D(e) {
|
|
|
246
246
|
return Object.fromEntries(Object.entries(e).filter(([t, n]) => String(n) !== "false" && t));
|
|
247
247
|
}
|
|
248
248
|
function j(e) {
|
|
249
|
-
return Array.isArray(e) ? e.map(j) : !e || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, n]) => [
|
|
249
|
+
return Array.isArray(e) ? e.map(j) : !e || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, n]) => [y(t), j(n)]));
|
|
250
250
|
}
|
|
251
251
|
function H(e, t = {}) {
|
|
252
252
|
const { entrySeparator: n = "", keyValueSeparator: r = "", wrapValue: o, resolve: s } = t;
|
|
@@ -261,13 +261,13 @@ function H(e, t = {}) {
|
|
|
261
261
|
}).join(n);
|
|
262
262
|
}
|
|
263
263
|
function V(e, t) {
|
|
264
|
-
const n = D(t), r =
|
|
264
|
+
const n = D(t), r = y(e), o = k(r);
|
|
265
265
|
if (!E.has(r))
|
|
266
266
|
return [{ [o]: r, ...n }];
|
|
267
267
|
const s = Object.fromEntries(
|
|
268
268
|
Object.entries(n).map(([i, c]) => [`${e}${i === "url" ? "" : `${i[0].toUpperCase()}${i.slice(1)}`}`, c])
|
|
269
269
|
);
|
|
270
|
-
return
|
|
270
|
+
return A(s || {}).sort((i, c) => {
|
|
271
271
|
var l, u;
|
|
272
272
|
return (((l = i[o]) == null ? void 0 : l.length) || 0) - (((u = c[o]) == null ? void 0 : u.length) || 0);
|
|
273
273
|
});
|
|
@@ -276,13 +276,13 @@ function k(e) {
|
|
|
276
276
|
var r;
|
|
277
277
|
if (((r = L[e]) == null ? void 0 : r.metaKey) === "http-equiv" || S.HTTP_EQUIV.has(e))
|
|
278
278
|
return "http-equiv";
|
|
279
|
-
const t =
|
|
279
|
+
const t = y(e), n = t.indexOf(":");
|
|
280
280
|
return n === -1 ? "name" : S.OG.has(t.slice(0, n)) ? "property" : "name";
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
return
|
|
282
|
+
function se(e) {
|
|
283
|
+
return oe[e] || y(e);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function ie(e, t) {
|
|
286
286
|
var n;
|
|
287
287
|
return t === "refresh" ? `${e.seconds};url=${e.url}` : H(j(e), {
|
|
288
288
|
keyValueSeparator: "=",
|
|
@@ -292,7 +292,7 @@ function se(e, t) {
|
|
|
292
292
|
...(n = L[t]) == null ? void 0 : n.unpack
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function A(e) {
|
|
296
296
|
const t = [], n = {};
|
|
297
297
|
for (const [o, s] of Object.entries(e)) {
|
|
298
298
|
if (Array.isArray(s)) {
|
|
@@ -306,12 +306,12 @@ function $(e) {
|
|
|
306
306
|
if (typeof i == "object" && i !== null) {
|
|
307
307
|
const c = [], l = [];
|
|
308
308
|
for (const [u, b] of Object.entries(i)) {
|
|
309
|
-
const p = `${o}${u === "url" ? "" : `:${u}`}`, a =
|
|
309
|
+
const p = `${o}${u === "url" ? "" : `:${u}`}`, a = A({ [p]: b });
|
|
310
310
|
(u === "url" ? c : l).push(...a);
|
|
311
311
|
}
|
|
312
312
|
t.push(...c, ...l);
|
|
313
313
|
} else
|
|
314
|
-
t.push(...typeof i == "string" ?
|
|
314
|
+
t.push(...typeof i == "string" ? A({ [o]: i }) : V(o, i));
|
|
315
315
|
continue;
|
|
316
316
|
}
|
|
317
317
|
if (typeof s == "object" && s)
|
|
@@ -330,54 +330,54 @@ function $(e) {
|
|
|
330
330
|
// @ts-expect-error untyped
|
|
331
331
|
content: b
|
|
332
332
|
});
|
|
333
|
-
} else E.has(
|
|
333
|
+
} else E.has(y(o)) ? t.push(...V(o, s)) : n[o] = D(s);
|
|
334
334
|
else
|
|
335
335
|
n[o] = s;
|
|
336
336
|
}
|
|
337
337
|
const r = Object.entries(n).map(([o, s]) => {
|
|
338
338
|
if (o === "charset")
|
|
339
339
|
return { charset: s === null ? "_null" : s };
|
|
340
|
-
const i = k(o), c =
|
|
340
|
+
const i = k(o), c = se(o), l = s === null ? "_null" : typeof s == "object" ? ie(s, o) : typeof s == "number" ? s.toString() : s;
|
|
341
341
|
return i === "http-equiv" ? { "http-equiv": c, content: l } : { [i]: c, content: l };
|
|
342
342
|
});
|
|
343
343
|
return [...t, ...r].map(
|
|
344
344
|
(o) => "content" in o && o.content === "_null" ? { ...o, content: null } : o
|
|
345
345
|
);
|
|
346
346
|
}
|
|
347
|
-
const
|
|
347
|
+
const ce = {
|
|
348
348
|
key: "flatMeta",
|
|
349
349
|
hooks: {
|
|
350
350
|
"entries:normalize": (e) => {
|
|
351
351
|
const t = [];
|
|
352
|
-
e.tags = e.tags.map((n) => n.tag !== "_flatMeta" ? n : (t.push(
|
|
352
|
+
e.tags = e.tags.map((n) => n.tag !== "_flatMeta" ? n : (t.push(A(n.props).map((r) => ({
|
|
353
353
|
...n,
|
|
354
354
|
tag: "meta",
|
|
355
355
|
props: r
|
|
356
356
|
}))), !1)).filter(Boolean).concat(...t);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
},
|
|
359
|
+
}, ae = ["name", "property", "http-equiv"], le = /* @__PURE__ */ new Set([
|
|
360
360
|
"viewport",
|
|
361
361
|
"description",
|
|
362
362
|
"keywords",
|
|
363
363
|
"robots"
|
|
364
364
|
]);
|
|
365
|
-
function
|
|
365
|
+
function Me(e) {
|
|
366
366
|
const t = e.split(":");
|
|
367
367
|
return t.length ? E.has(t[1]) : !1;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Ie(e) {
|
|
370
370
|
const { props: t, tag: n } = e;
|
|
371
|
-
if (
|
|
371
|
+
if (ne.has(n))
|
|
372
372
|
return n;
|
|
373
373
|
if (n === "link" && t.rel === "canonical")
|
|
374
374
|
return "canonical";
|
|
375
375
|
if (t.charset)
|
|
376
376
|
return "charset";
|
|
377
377
|
if (e.tag === "meta") {
|
|
378
|
-
for (const r of
|
|
378
|
+
for (const r of ae)
|
|
379
379
|
if (t[r] !== void 0) {
|
|
380
|
-
const o = t[r], s = o.includes(":"), i =
|
|
380
|
+
const o = t[r], s = o.includes(":"), i = le.has(o), l = !(s || i) && e.key ? `:key:${e.key}` : "";
|
|
381
381
|
return `${n}:${o}${l}`;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
@@ -385,33 +385,33 @@ function Me(e) {
|
|
|
385
385
|
return `${n}:key:${e.key}`;
|
|
386
386
|
if (t.id)
|
|
387
387
|
return `${n}:id:${t.id}`;
|
|
388
|
-
if (
|
|
388
|
+
if (te.has(n)) {
|
|
389
389
|
const r = e.textContent || e.innerHTML;
|
|
390
390
|
if (r)
|
|
391
391
|
return `${n}:content:${r}`;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Ee(e) {
|
|
395
395
|
const t = e._h || e._d;
|
|
396
396
|
if (t)
|
|
397
397
|
return t;
|
|
398
398
|
const n = e.textContent || e.innerHTML;
|
|
399
399
|
return n || `${e.tag}:${Object.entries(e.props).map(([r, o]) => `${r}:${String(o)}`).join(",")}`;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function $(e, t, n) {
|
|
402
402
|
typeof e === "function" && (!n || n !== "titleTemplate" && !(n[0] === "o" && n[1] === "n")) && (e = e());
|
|
403
403
|
let o;
|
|
404
404
|
if (t && (o = t(n, e)), Array.isArray(o))
|
|
405
|
-
return o.map((s) =>
|
|
405
|
+
return o.map((s) => $(s, t));
|
|
406
406
|
if ((o == null ? void 0 : o.constructor) === Object) {
|
|
407
407
|
const s = {};
|
|
408
408
|
for (const i of Object.keys(o))
|
|
409
|
-
s[i] =
|
|
409
|
+
s[i] = $(o[i], t, i);
|
|
410
410
|
return s;
|
|
411
411
|
}
|
|
412
412
|
return o;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ue(e, t) {
|
|
415
415
|
const n = e === "style" ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set();
|
|
416
416
|
function r(o) {
|
|
417
417
|
const s = o.trim();
|
|
@@ -426,17 +426,17 @@ function le(e, t) {
|
|
|
426
426
|
s && s !== "false" && (e === "style" ? n.set(o.trim(), s) : r(o));
|
|
427
427
|
}), n;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function pe(e, t) {
|
|
430
430
|
return e.props = e.props || {}, t ? e.tag === "templateParams" ? (e.props = t, e) : (Object.entries(t).forEach(([n, r]) => {
|
|
431
431
|
if (r === null) {
|
|
432
432
|
e.props[n] = null;
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
if (n === "class" || n === "style") {
|
|
436
|
-
e.props[n] =
|
|
436
|
+
e.props[n] = ue(n, r);
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
439
|
-
if (
|
|
439
|
+
if (re.has(n)) {
|
|
440
440
|
if (["textContent", "innerHTML"].includes(n) && typeof r == "object") {
|
|
441
441
|
let i = t.type;
|
|
442
442
|
if (t.type || (i = "application/json"), !(i != null && i.endsWith("json")) && i !== "speculationrules")
|
|
@@ -450,11 +450,11 @@ function ue(e, t) {
|
|
|
450
450
|
o === "true" || o === "" ? e.props[n] = s ? o : !0 : !r && s && o === "false" ? e.props[n] = "false" : r !== void 0 && (e.props[n] = r);
|
|
451
451
|
}), e) : e;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
const n = typeof t == "object" && typeof t != "function" ? t : { [e === "script" || e === "noscript" || e === "style" ? "innerHTML" : "textContent"]: t }, r =
|
|
455
|
-
return r.key &&
|
|
453
|
+
function fe(e, t) {
|
|
454
|
+
const n = typeof t == "object" && typeof t != "function" ? t : { [e === "script" || e === "noscript" || e === "style" ? "innerHTML" : "textContent"]: t }, r = pe({ tag: e, props: {} }, n);
|
|
455
|
+
return r.key && ee.has(r.tag) && (r.props["data-hid"] = r._h = r.key), r.tag === "script" && typeof r.innerHTML == "object" && (r.innerHTML = JSON.stringify(r.innerHTML), r.props.type = r.props.type || "application/json"), Array.isArray(r.props.content) ? r.props.content.map((o) => ({ ...r, props: { ...r.props, content: o } })) : r;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Oe(e, t) {
|
|
458
458
|
if (!e)
|
|
459
459
|
return [];
|
|
460
460
|
typeof e == "function" && (e = e());
|
|
@@ -465,15 +465,15 @@ function Ee(e, t) {
|
|
|
465
465
|
};
|
|
466
466
|
e = n(void 0, e);
|
|
467
467
|
const r = [];
|
|
468
|
-
return e =
|
|
468
|
+
return e = $(e, n), Object.entries(e || {}).forEach(([o, s]) => {
|
|
469
469
|
if (s !== void 0)
|
|
470
470
|
for (const i of Array.isArray(s) ? s : [s])
|
|
471
|
-
r.push(
|
|
471
|
+
r.push(fe(o, i));
|
|
472
472
|
}), r.flat();
|
|
473
473
|
}
|
|
474
|
-
const
|
|
474
|
+
const me = (e, t) => W(t) ? G(t) : t, q = "usehead";
|
|
475
475
|
// @__NO_SIDE_EFFECTS__
|
|
476
|
-
function
|
|
476
|
+
function Ce(e) {
|
|
477
477
|
return {
|
|
478
478
|
install(n) {
|
|
479
479
|
n.config.globalProperties.$unhead = e, n.config.globalProperties.$head = e, n.provide(q, e);
|
|
@@ -482,8 +482,8 @@ function Oe(e) {
|
|
|
482
482
|
}
|
|
483
483
|
// @__NO_SIDE_EFFECTS__
|
|
484
484
|
function z() {
|
|
485
|
-
if (
|
|
486
|
-
const e =
|
|
485
|
+
if (B()) {
|
|
486
|
+
const e = F(q);
|
|
487
487
|
if (!e)
|
|
488
488
|
throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
|
|
489
489
|
return e;
|
|
@@ -492,24 +492,24 @@ function z() {
|
|
|
492
492
|
}
|
|
493
493
|
function O(e, t = {}) {
|
|
494
494
|
const n = t.head || /* @__PURE__ */ z();
|
|
495
|
-
return n.ssr ? n.push(e || {}, t) :
|
|
495
|
+
return n.ssr ? n.push(e || {}, t) : he(n, e, t);
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function he(e, t, n = {}) {
|
|
498
498
|
const r = I(!1);
|
|
499
499
|
let o;
|
|
500
|
-
return
|
|
501
|
-
const i = r.value ? {} :
|
|
500
|
+
return J(() => {
|
|
501
|
+
const i = r.value ? {} : $(t, me);
|
|
502
502
|
o ? o.patch(i) : o = e.push(i, n);
|
|
503
|
-
}),
|
|
503
|
+
}), Q() && (Z(() => {
|
|
504
504
|
o.dispose();
|
|
505
|
-
}), Z(() => {
|
|
506
|
-
r.value = !0;
|
|
507
505
|
}), X(() => {
|
|
506
|
+
r.value = !0;
|
|
507
|
+
}), Y(() => {
|
|
508
508
|
r.value = !1;
|
|
509
509
|
})), o;
|
|
510
510
|
}
|
|
511
511
|
function M(e = {}, t = {}) {
|
|
512
|
-
(t.head || /* @__PURE__ */ z()).use(
|
|
512
|
+
(t.head || /* @__PURE__ */ z()).use(ce);
|
|
513
513
|
const { title: r, titleTemplate: o, ...s } = e;
|
|
514
514
|
return O({
|
|
515
515
|
title: r,
|
|
@@ -517,7 +517,7 @@ function M(e = {}, t = {}) {
|
|
|
517
517
|
_flatMeta: s
|
|
518
518
|
}, t);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Ve() {
|
|
521
521
|
function e(n) {
|
|
522
522
|
M({
|
|
523
523
|
ogSiteName: n.siteName,
|
|
@@ -559,11 +559,11 @@ function Ce() {
|
|
|
559
559
|
setPageSEO: t
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function _e() {
|
|
563
563
|
const e = x(), t = () => e.meta;
|
|
564
564
|
O({
|
|
565
|
-
title:
|
|
566
|
-
link:
|
|
565
|
+
title: d(() => t().title || ""),
|
|
566
|
+
link: d(() => {
|
|
567
567
|
const n = t();
|
|
568
568
|
return n.url ? [{
|
|
569
569
|
rel: "canonical",
|
|
@@ -571,49 +571,49 @@ function Ve() {
|
|
|
571
571
|
}] : [];
|
|
572
572
|
})
|
|
573
573
|
}), M({
|
|
574
|
-
description:
|
|
574
|
+
description: d(() => {
|
|
575
575
|
const r = t().description;
|
|
576
576
|
if (r)
|
|
577
577
|
return r.length > 155 ? `${r.substring(0, 152)}...` : r;
|
|
578
578
|
}),
|
|
579
|
-
keywords:
|
|
580
|
-
ogTitle:
|
|
581
|
-
ogDescription:
|
|
579
|
+
keywords: d(() => t().keywords),
|
|
580
|
+
ogTitle: d(() => t().title),
|
|
581
|
+
ogDescription: d(() => {
|
|
582
582
|
const r = t().description;
|
|
583
583
|
if (r)
|
|
584
584
|
return r.length > 155 ? `${r.substring(0, 152)}...` : r;
|
|
585
585
|
}),
|
|
586
|
-
ogType:
|
|
586
|
+
ogType: d(() => {
|
|
587
587
|
const r = t().type || "website";
|
|
588
588
|
return r === "product" ? void 0 : r;
|
|
589
589
|
}),
|
|
590
|
-
ogUrl:
|
|
591
|
-
ogImage:
|
|
590
|
+
ogUrl: d(() => t().url),
|
|
591
|
+
ogImage: d(() => t().image),
|
|
592
592
|
twitterCard: "summary_large_image",
|
|
593
|
-
twitterTitle:
|
|
594
|
-
twitterDescription:
|
|
593
|
+
twitterTitle: d(() => t().title),
|
|
594
|
+
twitterDescription: d(() => {
|
|
595
595
|
const r = t().description;
|
|
596
596
|
if (r)
|
|
597
597
|
return r.length > 155 ? `${r.substring(0, 152)}...` : r;
|
|
598
598
|
}),
|
|
599
|
-
twitterImage:
|
|
599
|
+
twitterImage: d(() => t().image)
|
|
600
600
|
});
|
|
601
601
|
}
|
|
602
602
|
export {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
603
|
+
Pe as H,
|
|
604
|
+
je as U,
|
|
605
|
+
ve as V,
|
|
606
|
+
$e as a,
|
|
607
|
+
Te as b,
|
|
608
|
+
Ve as c,
|
|
609
|
+
_e as d,
|
|
610
|
+
Ie as e,
|
|
611
|
+
Ae as f,
|
|
612
|
+
pe as g,
|
|
613
|
+
Ee as h,
|
|
614
|
+
Me as i,
|
|
615
|
+
Oe as n,
|
|
616
|
+
we as u,
|
|
617
|
+
Ce as v,
|
|
618
|
+
Se as w
|
|
619
619
|
};
|