zudoku 0.33.0 → 0.33.2-local.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/validators/common.d.ts +226 -8
- package/dist/config/validators/common.js +26 -8
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +89 -2
- package/dist/lib/authentication/hook.d.ts +1 -0
- package/dist/lib/authentication/hook.js +11 -1
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +6 -6
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/state.js +8 -2
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -1
- package/dist/lib/core/RouteGuard.js +24 -18
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +3 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +7 -4
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.js +1 -1
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +2 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -2
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +10 -7
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +66 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +31 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +3 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +37 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +7 -1
- package/dist/lib/ui/Command.js +2 -2
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +6 -8
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/build.js +4 -0
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +7 -2
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +8 -0
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/pagefind.d.ts +4 -0
- package/dist/vite/pagefind.js +15 -0
- package/dist/vite/pagefind.js.map +1 -0
- package/dist/vite/plugin-component.js +4 -0
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-search.js +4 -0
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/prerender/prerender.js +1 -1
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/lib/{AuthenticationPlugin-_gUMnGxb.js → AuthenticationPlugin-BCYuduZ9.js} +3 -3
- package/lib/{AuthenticationPlugin-_gUMnGxb.js.map → AuthenticationPlugin-BCYuduZ9.js.map} +1 -1
- package/lib/Command-CrTA1FX0.js +140 -0
- package/lib/Command-CrTA1FX0.js.map +1 -0
- package/lib/Dialog-mi6BrnrM.js +83 -0
- package/lib/Dialog-mi6BrnrM.js.map +1 -0
- package/lib/{Markdown-DePfm7oQ.js → Markdown-DofXBcqg.js} +2 -2
- package/lib/{Markdown-DePfm7oQ.js.map → Markdown-DofXBcqg.js.map} +1 -1
- package/lib/MdxPage-KJcNWIgt.js +200 -0
- package/lib/MdxPage-KJcNWIgt.js.map +1 -0
- package/lib/{OasProvider-Bvu4dDpX.js → OasProvider-HcqBeC4H.js} +4 -4
- package/lib/{OasProvider-Bvu4dDpX.js.map → OasProvider-HcqBeC4H.js.map} +1 -1
- package/lib/{OperationList-DWnNbwVg.js → OperationList-C3wnbFxp.js} +1857 -1816
- package/lib/OperationList-C3wnbFxp.js.map +1 -0
- package/lib/{Select-BmoX1iTH.js → Select-Co6MuS4j.js} +36 -36
- package/lib/{Select-BmoX1iTH.js.map → Select-Co6MuS4j.js.map} +1 -1
- package/lib/{SlotletProvider-DdtIOUi6.js → SlotletProvider-CYFNHuok.js} +4 -4
- package/lib/{SlotletProvider-DdtIOUi6.js.map → SlotletProvider-CYFNHuok.js.map} +1 -1
- package/lib/{chunk-IR6S3I6Y-D_3UmFIn.js → chunk-IR6S3I6Y-CRDBmIgK.js} +3 -3
- package/lib/{chunk-IR6S3I6Y-D_3UmFIn.js.map → chunk-IR6S3I6Y-CRDBmIgK.js.map} +1 -1
- package/lib/hook-LTe5qHSc.js +347 -0
- package/lib/hook-LTe5qHSc.js.map +1 -0
- package/lib/{index-DVBlM15k.js → index-CtkRMvMw.js} +696 -743
- package/lib/index-CtkRMvMw.js.map +1 -0
- package/lib/index-gQD2h1wX.js +447 -0
- package/lib/index-gQD2h1wX.js.map +1 -0
- package/lib/index-vn5bsvmU.js +1399 -0
- package/lib/index-vn5bsvmU.js.map +1 -0
- package/lib/{mutation-DTunCQKB.js → mutation-B81DztCT.js} +2 -2
- package/lib/{mutation-DTunCQKB.js.map → mutation-B81DztCT.js.map} +1 -1
- package/lib/ui/Command.js +105 -78
- package/lib/ui/Command.js.map +1 -1
- package/lib/{useExposedProps-RIvey2Oy.js → useExposedProps-D76yras4.js} +2 -2
- package/lib/{useExposedProps-RIvey2Oy.js.map → useExposedProps-D76yras4.js.map} +1 -1
- package/lib/useQuery-CQUwWR9i.js +1137 -0
- package/lib/useQuery-CQUwWR9i.js.map +1 -0
- package/lib/useScrollToAnchor-DKyrbZoy.js +977 -0
- package/lib/useScrollToAnchor-DKyrbZoy.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +29 -29
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +3 -3
- package/lib/zudoku.components.js +32 -1382
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +87 -71
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +16 -15
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +274 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/package.json +8 -3
- package/src/lib/authentication/hook.ts +12 -1
- package/src/lib/authentication/providers/clerk.tsx +10 -6
- package/src/lib/authentication/state.ts +8 -2
- package/src/lib/components/Banner.tsx +1 -0
- package/src/lib/components/Heading.tsx +1 -1
- package/src/lib/components/Layout.tsx +1 -0
- package/src/lib/core/RouteGuard.tsx +44 -18
- package/src/lib/plugins/api-catalog/Catalog.tsx +23 -7
- package/src/lib/plugins/api-catalog/index.tsx +1 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +5 -1
- package/src/lib/plugins/openapi/OperationList.tsx +15 -3
- package/src/lib/plugins/openapi/OperationListItem.tsx +8 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -1
- package/src/lib/plugins/openapi/playground/PathParams.tsx +8 -2
- package/src/lib/plugins/openapi/playground/Playground.tsx +61 -5
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +135 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +104 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +54 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/ui/Command.tsx +25 -3
- package/src/lib/util/useScrollToAnchor.ts +8 -8
- package/README.md +0 -121
- package/lib/MdxPage-DM9mE-G-.js +0 -193
- package/lib/MdxPage-DM9mE-G-.js.map +0 -1
- package/lib/OperationList-DWnNbwVg.js.map +0 -1
- package/lib/hook-4_6pQSo4.js +0 -1460
- package/lib/hook-4_6pQSo4.js.map +0 -1
- package/lib/index-DVBlM15k.js.map +0 -1
- package/lib/index-Du5aNddU.js +0 -509
- package/lib/index-Du5aNddU.js.map +0 -1
- package/lib/index.esm-CQHE3GEU.js +0 -691
- package/lib/index.esm-CQHE3GEU.js.map +0 -1
- package/lib/objectEntries-yMIkr2mI.js +0 -5
- package/lib/objectEntries-yMIkr2mI.js.map +0 -1
- package/lib/useScrollToAnchor-BW8y_cwU.js +0 -290
- package/lib/useScrollToAnchor-BW8y_cwU.js.map +0 -1
|
@@ -1,691 +0,0 @@
|
|
|
1
|
-
var ae = Object.defineProperty;
|
|
2
|
-
var ie = (e, t, r) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
-
var y = (e, t, r) => ie(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import T, { Component as L } from "react";
|
|
5
|
-
import { g as F } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
6
|
-
var P, N;
|
|
7
|
-
function oe() {
|
|
8
|
-
if (N) return P;
|
|
9
|
-
N = 1;
|
|
10
|
-
var e = typeof Element < "u", t = typeof Map == "function", r = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
11
|
-
function o(s, i) {
|
|
12
|
-
if (s === i) return !0;
|
|
13
|
-
if (s && i && typeof s == "object" && typeof i == "object") {
|
|
14
|
-
if (s.constructor !== i.constructor) return !1;
|
|
15
|
-
var l, a, c;
|
|
16
|
-
if (Array.isArray(s)) {
|
|
17
|
-
if (l = s.length, l != i.length) return !1;
|
|
18
|
-
for (a = l; a-- !== 0; )
|
|
19
|
-
if (!o(s[a], i[a])) return !1;
|
|
20
|
-
return !0;
|
|
21
|
-
}
|
|
22
|
-
var u;
|
|
23
|
-
if (t && s instanceof Map && i instanceof Map) {
|
|
24
|
-
if (s.size !== i.size) return !1;
|
|
25
|
-
for (u = s.entries(); !(a = u.next()).done; )
|
|
26
|
-
if (!i.has(a.value[0])) return !1;
|
|
27
|
-
for (u = s.entries(); !(a = u.next()).done; )
|
|
28
|
-
if (!o(a.value[1], i.get(a.value[0]))) return !1;
|
|
29
|
-
return !0;
|
|
30
|
-
}
|
|
31
|
-
if (r && s instanceof Set && i instanceof Set) {
|
|
32
|
-
if (s.size !== i.size) return !1;
|
|
33
|
-
for (u = s.entries(); !(a = u.next()).done; )
|
|
34
|
-
if (!i.has(a.value[0])) return !1;
|
|
35
|
-
return !0;
|
|
36
|
-
}
|
|
37
|
-
if (n && ArrayBuffer.isView(s) && ArrayBuffer.isView(i)) {
|
|
38
|
-
if (l = s.length, l != i.length) return !1;
|
|
39
|
-
for (a = l; a-- !== 0; )
|
|
40
|
-
if (s[a] !== i[a]) return !1;
|
|
41
|
-
return !0;
|
|
42
|
-
}
|
|
43
|
-
if (s.constructor === RegExp) return s.source === i.source && s.flags === i.flags;
|
|
44
|
-
if (s.valueOf !== Object.prototype.valueOf && typeof s.valueOf == "function" && typeof i.valueOf == "function") return s.valueOf() === i.valueOf();
|
|
45
|
-
if (s.toString !== Object.prototype.toString && typeof s.toString == "function" && typeof i.toString == "function") return s.toString() === i.toString();
|
|
46
|
-
if (c = Object.keys(s), l = c.length, l !== Object.keys(i).length) return !1;
|
|
47
|
-
for (a = l; a-- !== 0; )
|
|
48
|
-
if (!Object.prototype.hasOwnProperty.call(i, c[a])) return !1;
|
|
49
|
-
if (e && s instanceof Element) return !1;
|
|
50
|
-
for (a = l; a-- !== 0; )
|
|
51
|
-
if (!((c[a] === "_owner" || c[a] === "__v" || c[a] === "__o") && s.$$typeof) && !o(s[c[a]], i[c[a]]))
|
|
52
|
-
return !1;
|
|
53
|
-
return !0;
|
|
54
|
-
}
|
|
55
|
-
return s !== s && i !== i;
|
|
56
|
-
}
|
|
57
|
-
return P = function(i, l) {
|
|
58
|
-
try {
|
|
59
|
-
return o(i, l);
|
|
60
|
-
} catch (a) {
|
|
61
|
-
if ((a.message || "").match(/stack|recursion/i))
|
|
62
|
-
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
63
|
-
throw a;
|
|
64
|
-
}
|
|
65
|
-
}, P;
|
|
66
|
-
}
|
|
67
|
-
var le = oe();
|
|
68
|
-
const ce = /* @__PURE__ */ F(le);
|
|
69
|
-
var $, V;
|
|
70
|
-
function ue() {
|
|
71
|
-
if (V) return $;
|
|
72
|
-
V = 1;
|
|
73
|
-
var e = function(t, r, n, o, s, i, l, a) {
|
|
74
|
-
if (process.env.NODE_ENV !== "production" && r === void 0)
|
|
75
|
-
throw new Error("invariant requires an error message argument");
|
|
76
|
-
if (!t) {
|
|
77
|
-
var c;
|
|
78
|
-
if (r === void 0)
|
|
79
|
-
c = new Error(
|
|
80
|
-
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
81
|
-
);
|
|
82
|
-
else {
|
|
83
|
-
var u = [n, o, s, i, l, a], f = 0;
|
|
84
|
-
c = new Error(
|
|
85
|
-
r.replace(/%s/g, function() {
|
|
86
|
-
return u[f++];
|
|
87
|
-
})
|
|
88
|
-
), c.name = "Invariant Violation";
|
|
89
|
-
}
|
|
90
|
-
throw c.framesToPop = 1, c;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
return $ = e, $;
|
|
94
|
-
}
|
|
95
|
-
var fe = ue();
|
|
96
|
-
const B = /* @__PURE__ */ F(fe);
|
|
97
|
-
var I, Y;
|
|
98
|
-
function pe() {
|
|
99
|
-
return Y || (Y = 1, I = function(t, r, n, o) {
|
|
100
|
-
var s = n ? n.call(o, t, r) : void 0;
|
|
101
|
-
if (s !== void 0)
|
|
102
|
-
return !!s;
|
|
103
|
-
if (t === r)
|
|
104
|
-
return !0;
|
|
105
|
-
if (typeof t != "object" || !t || typeof r != "object" || !r)
|
|
106
|
-
return !1;
|
|
107
|
-
var i = Object.keys(t), l = Object.keys(r);
|
|
108
|
-
if (i.length !== l.length)
|
|
109
|
-
return !1;
|
|
110
|
-
for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < i.length; c++) {
|
|
111
|
-
var u = i[c];
|
|
112
|
-
if (!a(u))
|
|
113
|
-
return !1;
|
|
114
|
-
var f = t[u], m = r[u];
|
|
115
|
-
if (s = n ? n.call(o, f, m, u) : void 0, s === !1 || s === void 0 && f !== m)
|
|
116
|
-
return !1;
|
|
117
|
-
}
|
|
118
|
-
return !0;
|
|
119
|
-
}), I;
|
|
120
|
-
}
|
|
121
|
-
var de = pe();
|
|
122
|
-
const me = /* @__PURE__ */ F(de);
|
|
123
|
-
var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Q || {}), H = {
|
|
124
|
-
link: { rel: ["amphtml", "canonical", "alternate"] },
|
|
125
|
-
script: { type: ["application/ld+json"] },
|
|
126
|
-
meta: {
|
|
127
|
-
charset: "",
|
|
128
|
-
name: ["generator", "robots", "description"],
|
|
129
|
-
property: [
|
|
130
|
-
"og:type",
|
|
131
|
-
"og:title",
|
|
132
|
-
"og:url",
|
|
133
|
-
"og:image",
|
|
134
|
-
"og:image:alt",
|
|
135
|
-
"og:description",
|
|
136
|
-
"twitter:url",
|
|
137
|
-
"twitter:title",
|
|
138
|
-
"twitter:description",
|
|
139
|
-
"twitter:image",
|
|
140
|
-
"twitter:image:alt",
|
|
141
|
-
"twitter:card",
|
|
142
|
-
"twitter:site"
|
|
143
|
-
]
|
|
144
|
-
}
|
|
145
|
-
}, Z = Object.values(Q), U = {
|
|
146
|
-
accesskey: "accessKey",
|
|
147
|
-
charset: "charSet",
|
|
148
|
-
class: "className",
|
|
149
|
-
contenteditable: "contentEditable",
|
|
150
|
-
contextmenu: "contextMenu",
|
|
151
|
-
"http-equiv": "httpEquiv",
|
|
152
|
-
itemprop: "itemProp",
|
|
153
|
-
tabindex: "tabIndex"
|
|
154
|
-
}, he = Object.entries(U).reduce(
|
|
155
|
-
(e, [t, r]) => (e[r] = t, e),
|
|
156
|
-
{}
|
|
157
|
-
), h = "data-rh", E = {
|
|
158
|
-
DEFAULT_TITLE: "defaultTitle",
|
|
159
|
-
DEFER: "defer",
|
|
160
|
-
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
161
|
-
ON_CHANGE_CLIENT_STATE: "onChangeClientState",
|
|
162
|
-
TITLE_TEMPLATE: "titleTemplate",
|
|
163
|
-
PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
|
|
164
|
-
}, b = (e, t) => {
|
|
165
|
-
for (let r = e.length - 1; r >= 0; r -= 1) {
|
|
166
|
-
const n = e[r];
|
|
167
|
-
if (Object.prototype.hasOwnProperty.call(n, t))
|
|
168
|
-
return n[t];
|
|
169
|
-
}
|
|
170
|
-
return null;
|
|
171
|
-
}, ye = (e) => {
|
|
172
|
-
let t = b(
|
|
173
|
-
e,
|
|
174
|
-
"title"
|
|
175
|
-
/* TITLE */
|
|
176
|
-
);
|
|
177
|
-
const r = b(e, E.TITLE_TEMPLATE);
|
|
178
|
-
if (Array.isArray(t) && (t = t.join("")), r && t)
|
|
179
|
-
return r.replace(/%s/g, () => t);
|
|
180
|
-
const n = b(e, E.DEFAULT_TITLE);
|
|
181
|
-
return t || n || void 0;
|
|
182
|
-
}, Te = (e) => b(e, E.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
183
|
-
}), _ = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ge = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
|
|
184
|
-
if (!r.length) {
|
|
185
|
-
const o = Object.keys(n);
|
|
186
|
-
for (let s = 0; s < o.length; s += 1) {
|
|
187
|
-
const l = o[s].toLowerCase();
|
|
188
|
-
if (e.indexOf(l) !== -1 && n[l])
|
|
189
|
-
return r.concat(n);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return r;
|
|
193
|
-
}, []), ve = (e) => console && typeof console.warn == "function" && console.warn(e), O = (e, t, r) => {
|
|
194
|
-
const n = {};
|
|
195
|
-
return r.filter((o) => Array.isArray(o[e]) ? !0 : (typeof o[e] < "u" && ve(
|
|
196
|
-
`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`
|
|
197
|
-
), !1)).map((o) => o[e]).reverse().reduce((o, s) => {
|
|
198
|
-
const i = {};
|
|
199
|
-
s.filter((a) => {
|
|
200
|
-
let c;
|
|
201
|
-
const u = Object.keys(a);
|
|
202
|
-
for (let m = 0; m < u.length; m += 1) {
|
|
203
|
-
const p = u[m], g = p.toLowerCase();
|
|
204
|
-
t.indexOf(g) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (c = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (c = p);
|
|
205
|
-
}
|
|
206
|
-
if (!c || !a[c])
|
|
207
|
-
return !1;
|
|
208
|
-
const f = a[c].toLowerCase();
|
|
209
|
-
return n[c] || (n[c] = {}), i[c] || (i[c] = {}), n[c][f] ? !1 : (i[c][f] = !0, !0);
|
|
210
|
-
}).reverse().forEach((a) => o.push(a));
|
|
211
|
-
const l = Object.keys(i);
|
|
212
|
-
for (let a = 0; a < l.length; a += 1) {
|
|
213
|
-
const c = l[a], u = {
|
|
214
|
-
...n[c],
|
|
215
|
-
...i[c]
|
|
216
|
-
};
|
|
217
|
-
n[c] = u;
|
|
218
|
-
}
|
|
219
|
-
return o;
|
|
220
|
-
}, []).reverse();
|
|
221
|
-
}, Ae = (e, t) => {
|
|
222
|
-
if (Array.isArray(e) && e.length) {
|
|
223
|
-
for (let r = 0; r < e.length; r += 1)
|
|
224
|
-
if (e[r][t])
|
|
225
|
-
return !0;
|
|
226
|
-
}
|
|
227
|
-
return !1;
|
|
228
|
-
}, Ee = (e) => ({
|
|
229
|
-
baseTag: ge([
|
|
230
|
-
"href"
|
|
231
|
-
/* HREF */
|
|
232
|
-
], e),
|
|
233
|
-
bodyAttributes: _("bodyAttributes", e),
|
|
234
|
-
defer: b(e, E.DEFER),
|
|
235
|
-
encode: b(e, E.ENCODE_SPECIAL_CHARACTERS),
|
|
236
|
-
htmlAttributes: _("htmlAttributes", e),
|
|
237
|
-
linkTags: O(
|
|
238
|
-
"link",
|
|
239
|
-
[
|
|
240
|
-
"rel",
|
|
241
|
-
"href"
|
|
242
|
-
/* HREF */
|
|
243
|
-
],
|
|
244
|
-
e
|
|
245
|
-
),
|
|
246
|
-
metaTags: O(
|
|
247
|
-
"meta",
|
|
248
|
-
[
|
|
249
|
-
"name",
|
|
250
|
-
"charset",
|
|
251
|
-
"http-equiv",
|
|
252
|
-
"property",
|
|
253
|
-
"itemprop"
|
|
254
|
-
/* ITEM_PROP */
|
|
255
|
-
],
|
|
256
|
-
e
|
|
257
|
-
),
|
|
258
|
-
noscriptTags: O("noscript", [
|
|
259
|
-
"innerHTML"
|
|
260
|
-
/* INNER_HTML */
|
|
261
|
-
], e),
|
|
262
|
-
onChangeClientState: Te(e),
|
|
263
|
-
scriptTags: O(
|
|
264
|
-
"script",
|
|
265
|
-
[
|
|
266
|
-
"src",
|
|
267
|
-
"innerHTML"
|
|
268
|
-
/* INNER_HTML */
|
|
269
|
-
],
|
|
270
|
-
e
|
|
271
|
-
),
|
|
272
|
-
styleTags: O("style", [
|
|
273
|
-
"cssText"
|
|
274
|
-
/* CSS_TEXT */
|
|
275
|
-
], e),
|
|
276
|
-
title: ye(e),
|
|
277
|
-
titleAttributes: _("titleAttributes", e),
|
|
278
|
-
prioritizeSeoTags: Ae(e, E.PRIORITIZE_SEO_TAGS)
|
|
279
|
-
}), X = (e) => Array.isArray(e) ? e.join("") : e, be = (e, t) => {
|
|
280
|
-
const r = Object.keys(e);
|
|
281
|
-
for (let n = 0; n < r.length; n += 1)
|
|
282
|
-
if (t[r[n]] && t[r[n]].includes(e[r[n]]))
|
|
283
|
-
return !0;
|
|
284
|
-
return !1;
|
|
285
|
-
}, D = (e, t) => Array.isArray(e) ? e.reduce(
|
|
286
|
-
(r, n) => (be(n, t) ? r.priority.push(n) : r.default.push(n), r),
|
|
287
|
-
{ priority: [], default: [] }
|
|
288
|
-
) : { default: e, priority: [] }, G = (e, t) => ({
|
|
289
|
-
...e,
|
|
290
|
-
[t]: void 0
|
|
291
|
-
}), Oe = [
|
|
292
|
-
"noscript",
|
|
293
|
-
"script",
|
|
294
|
-
"style"
|
|
295
|
-
/* STYLE */
|
|
296
|
-
], M = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), ee = (e) => Object.keys(e).reduce((t, r) => {
|
|
297
|
-
const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
|
|
298
|
-
return t ? `${t} ${n}` : n;
|
|
299
|
-
}, ""), Ce = (e, t, r, n) => {
|
|
300
|
-
const o = ee(r), s = X(t);
|
|
301
|
-
return o ? `<${e} ${h}="true" ${o}>${M(
|
|
302
|
-
s,
|
|
303
|
-
n
|
|
304
|
-
)}</${e}>` : `<${e} ${h}="true">${M(
|
|
305
|
-
s,
|
|
306
|
-
n
|
|
307
|
-
)}</${e}>`;
|
|
308
|
-
}, we = (e, t, r = !0) => t.reduce((n, o) => {
|
|
309
|
-
const s = o, i = Object.keys(s).filter(
|
|
310
|
-
(c) => !(c === "innerHTML" || c === "cssText")
|
|
311
|
-
).reduce((c, u) => {
|
|
312
|
-
const f = typeof s[u] > "u" ? u : `${u}="${M(s[u], r)}"`;
|
|
313
|
-
return c ? `${c} ${f}` : f;
|
|
314
|
-
}, ""), l = s.innerHTML || s.cssText || "", a = Oe.indexOf(e) === -1;
|
|
315
|
-
return `${n}<${e} ${h}="true" ${i}${a ? "/>" : `>${l}</${e}>`}`;
|
|
316
|
-
}, ""), te = (e, t = {}) => Object.keys(e).reduce((r, n) => {
|
|
317
|
-
const o = U[n];
|
|
318
|
-
return r[o || n] = e[n], r;
|
|
319
|
-
}, t), Se = (e, t, r) => {
|
|
320
|
-
const n = {
|
|
321
|
-
key: t,
|
|
322
|
-
[h]: !0
|
|
323
|
-
}, o = te(r, n);
|
|
324
|
-
return [T.createElement("title", o, t)];
|
|
325
|
-
}, x = (e, t) => t.map((r, n) => {
|
|
326
|
-
const o = {
|
|
327
|
-
key: n,
|
|
328
|
-
[h]: !0
|
|
329
|
-
};
|
|
330
|
-
return Object.keys(r).forEach((s) => {
|
|
331
|
-
const l = U[s] || s;
|
|
332
|
-
if (l === "innerHTML" || l === "cssText") {
|
|
333
|
-
const a = r.innerHTML || r.cssText;
|
|
334
|
-
o.dangerouslySetInnerHTML = { __html: a };
|
|
335
|
-
} else
|
|
336
|
-
o[l] = r[s];
|
|
337
|
-
}), T.createElement(e, o);
|
|
338
|
-
}), d = (e, t, r = !0) => {
|
|
339
|
-
switch (e) {
|
|
340
|
-
case "title":
|
|
341
|
-
return {
|
|
342
|
-
toComponent: () => Se(e, t.title, t.titleAttributes),
|
|
343
|
-
toString: () => Ce(e, t.title, t.titleAttributes, r)
|
|
344
|
-
};
|
|
345
|
-
case "bodyAttributes":
|
|
346
|
-
case "htmlAttributes":
|
|
347
|
-
return {
|
|
348
|
-
toComponent: () => te(t),
|
|
349
|
-
toString: () => ee(t)
|
|
350
|
-
};
|
|
351
|
-
default:
|
|
352
|
-
return {
|
|
353
|
-
toComponent: () => x(e, t),
|
|
354
|
-
toString: () => we(e, t, r)
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
}, xe = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
|
|
358
|
-
const o = D(e, H.meta), s = D(t, H.link), i = D(r, H.script);
|
|
359
|
-
return {
|
|
360
|
-
priorityMethods: {
|
|
361
|
-
toComponent: () => [
|
|
362
|
-
...x("meta", o.priority),
|
|
363
|
-
...x("link", s.priority),
|
|
364
|
-
...x("script", i.priority)
|
|
365
|
-
],
|
|
366
|
-
toString: () => (
|
|
367
|
-
// generate all the tags as strings and concatenate them
|
|
368
|
-
`${d("meta", o.priority, n)} ${d(
|
|
369
|
-
"link",
|
|
370
|
-
s.priority,
|
|
371
|
-
n
|
|
372
|
-
)} ${d("script", i.priority, n)}`
|
|
373
|
-
)
|
|
374
|
-
},
|
|
375
|
-
metaTags: o.default,
|
|
376
|
-
linkTags: s.default,
|
|
377
|
-
scriptTags: i.default
|
|
378
|
-
};
|
|
379
|
-
}, Pe = (e) => {
|
|
380
|
-
const {
|
|
381
|
-
baseTag: t,
|
|
382
|
-
bodyAttributes: r,
|
|
383
|
-
encode: n = !0,
|
|
384
|
-
htmlAttributes: o,
|
|
385
|
-
noscriptTags: s,
|
|
386
|
-
styleTags: i,
|
|
387
|
-
title: l = "",
|
|
388
|
-
titleAttributes: a,
|
|
389
|
-
prioritizeSeoTags: c
|
|
390
|
-
} = e;
|
|
391
|
-
let { linkTags: u, metaTags: f, scriptTags: m } = e, p = {
|
|
392
|
-
toComponent: () => {
|
|
393
|
-
},
|
|
394
|
-
toString: () => ""
|
|
395
|
-
};
|
|
396
|
-
return c && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } = xe(e)), {
|
|
397
|
-
priority: p,
|
|
398
|
-
base: d("base", t, n),
|
|
399
|
-
bodyAttributes: d("bodyAttributes", r, n),
|
|
400
|
-
htmlAttributes: d("htmlAttributes", o, n),
|
|
401
|
-
link: d("link", u, n),
|
|
402
|
-
meta: d("meta", f, n),
|
|
403
|
-
noscript: d("noscript", s, n),
|
|
404
|
-
script: d("script", m, n),
|
|
405
|
-
style: d("style", i, n),
|
|
406
|
-
title: d("title", { title: l, titleAttributes: a }, n)
|
|
407
|
-
};
|
|
408
|
-
}, k = Pe, S = [], re = !!(typeof window < "u" && window.document && window.document.createElement), j = class {
|
|
409
|
-
constructor(e, t) {
|
|
410
|
-
y(this, "instances", []);
|
|
411
|
-
y(this, "canUseDOM", re);
|
|
412
|
-
y(this, "context");
|
|
413
|
-
y(this, "value", {
|
|
414
|
-
setHelmet: (e) => {
|
|
415
|
-
this.context.helmet = e;
|
|
416
|
-
},
|
|
417
|
-
helmetInstances: {
|
|
418
|
-
get: () => this.canUseDOM ? S : this.instances,
|
|
419
|
-
add: (e) => {
|
|
420
|
-
(this.canUseDOM ? S : this.instances).push(e);
|
|
421
|
-
},
|
|
422
|
-
remove: (e) => {
|
|
423
|
-
const t = (this.canUseDOM ? S : this.instances).indexOf(e);
|
|
424
|
-
(this.canUseDOM ? S : this.instances).splice(t, 1);
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = k({
|
|
429
|
-
baseTag: [],
|
|
430
|
-
bodyAttributes: {},
|
|
431
|
-
htmlAttributes: {},
|
|
432
|
-
linkTags: [],
|
|
433
|
-
metaTags: [],
|
|
434
|
-
noscriptTags: [],
|
|
435
|
-
scriptTags: [],
|
|
436
|
-
styleTags: [],
|
|
437
|
-
title: "",
|
|
438
|
-
titleAttributes: {}
|
|
439
|
-
}));
|
|
440
|
-
}
|
|
441
|
-
}, $e = {}, ne = T.createContext($e), v, Ie = (v = class extends L {
|
|
442
|
-
constructor(r) {
|
|
443
|
-
super(r);
|
|
444
|
-
y(this, "helmetData");
|
|
445
|
-
this.helmetData = new j(this.props.context || {}, v.canUseDOM);
|
|
446
|
-
}
|
|
447
|
-
render() {
|
|
448
|
-
return /* @__PURE__ */ T.createElement(ne.Provider, { value: this.helmetData.value }, this.props.children);
|
|
449
|
-
}
|
|
450
|
-
}, y(v, "canUseDOM", re), v), A = (e, t) => {
|
|
451
|
-
const r = document.head || document.querySelector(
|
|
452
|
-
"head"
|
|
453
|
-
/* HEAD */
|
|
454
|
-
), n = r.querySelectorAll(`${e}[${h}]`), o = [].slice.call(n), s = [];
|
|
455
|
-
let i;
|
|
456
|
-
return t && t.length && t.forEach((l) => {
|
|
457
|
-
const a = document.createElement(e);
|
|
458
|
-
for (const c in l)
|
|
459
|
-
if (Object.prototype.hasOwnProperty.call(l, c))
|
|
460
|
-
if (c === "innerHTML")
|
|
461
|
-
a.innerHTML = l.innerHTML;
|
|
462
|
-
else if (c === "cssText")
|
|
463
|
-
a.styleSheet ? a.styleSheet.cssText = l.cssText : a.appendChild(document.createTextNode(l.cssText));
|
|
464
|
-
else {
|
|
465
|
-
const u = c, f = typeof l[u] > "u" ? "" : l[u];
|
|
466
|
-
a.setAttribute(c, f);
|
|
467
|
-
}
|
|
468
|
-
a.setAttribute(h, "true"), o.some((c, u) => (i = u, a.isEqualNode(c))) ? o.splice(i, 1) : s.push(a);
|
|
469
|
-
}), o.forEach((l) => {
|
|
470
|
-
var a;
|
|
471
|
-
return (a = l.parentNode) == null ? void 0 : a.removeChild(l);
|
|
472
|
-
}), s.forEach((l) => r.appendChild(l)), {
|
|
473
|
-
oldTags: o,
|
|
474
|
-
newTags: s
|
|
475
|
-
};
|
|
476
|
-
}, q = (e, t) => {
|
|
477
|
-
const r = document.getElementsByTagName(e)[0];
|
|
478
|
-
if (!r)
|
|
479
|
-
return;
|
|
480
|
-
const n = r.getAttribute(h), o = n ? n.split(",") : [], s = [...o], i = Object.keys(t);
|
|
481
|
-
for (const l of i) {
|
|
482
|
-
const a = t[l] || "";
|
|
483
|
-
r.getAttribute(l) !== a && r.setAttribute(l, a), o.indexOf(l) === -1 && o.push(l);
|
|
484
|
-
const c = s.indexOf(l);
|
|
485
|
-
c !== -1 && s.splice(c, 1);
|
|
486
|
-
}
|
|
487
|
-
for (let l = s.length - 1; l >= 0; l -= 1)
|
|
488
|
-
r.removeAttribute(s[l]);
|
|
489
|
-
o.length === s.length ? r.removeAttribute(h) : r.getAttribute(h) !== i.join(",") && r.setAttribute(h, i.join(","));
|
|
490
|
-
}, He = (e, t) => {
|
|
491
|
-
typeof e < "u" && document.title !== e && (document.title = X(e)), q("title", t);
|
|
492
|
-
}, W = (e, t) => {
|
|
493
|
-
const {
|
|
494
|
-
baseTag: r,
|
|
495
|
-
bodyAttributes: n,
|
|
496
|
-
htmlAttributes: o,
|
|
497
|
-
linkTags: s,
|
|
498
|
-
metaTags: i,
|
|
499
|
-
noscriptTags: l,
|
|
500
|
-
onChangeClientState: a,
|
|
501
|
-
scriptTags: c,
|
|
502
|
-
styleTags: u,
|
|
503
|
-
title: f,
|
|
504
|
-
titleAttributes: m
|
|
505
|
-
} = e;
|
|
506
|
-
q("body", n), q("html", o), He(f, m);
|
|
507
|
-
const p = {
|
|
508
|
-
baseTag: A("base", r),
|
|
509
|
-
linkTags: A("link", s),
|
|
510
|
-
metaTags: A("meta", i),
|
|
511
|
-
noscriptTags: A("noscript", l),
|
|
512
|
-
scriptTags: A("script", c),
|
|
513
|
-
styleTags: A("style", u)
|
|
514
|
-
}, g = {}, K = {};
|
|
515
|
-
Object.keys(p).forEach((w) => {
|
|
516
|
-
const { newTags: z, oldTags: se } = p[w];
|
|
517
|
-
z.length && (g[w] = z), se.length && (K[w] = p[w].oldTags);
|
|
518
|
-
}), t && t(), a(e, g, K);
|
|
519
|
-
}, C = null, _e = (e) => {
|
|
520
|
-
C && cancelAnimationFrame(C), e.defer ? C = requestAnimationFrame(() => {
|
|
521
|
-
W(e, () => {
|
|
522
|
-
C = null;
|
|
523
|
-
});
|
|
524
|
-
}) : (W(e), C = null);
|
|
525
|
-
}, De = _e, J = class extends L {
|
|
526
|
-
constructor() {
|
|
527
|
-
super(...arguments);
|
|
528
|
-
y(this, "rendered", !1);
|
|
529
|
-
}
|
|
530
|
-
shouldComponentUpdate(t) {
|
|
531
|
-
return !me(t, this.props);
|
|
532
|
-
}
|
|
533
|
-
componentDidUpdate() {
|
|
534
|
-
this.emitChange();
|
|
535
|
-
}
|
|
536
|
-
componentWillUnmount() {
|
|
537
|
-
const { helmetInstances: t } = this.props.context;
|
|
538
|
-
t.remove(this), this.emitChange();
|
|
539
|
-
}
|
|
540
|
-
emitChange() {
|
|
541
|
-
const { helmetInstances: t, setHelmet: r } = this.props.context;
|
|
542
|
-
let n = null;
|
|
543
|
-
const o = Ee(
|
|
544
|
-
t.get().map((s) => {
|
|
545
|
-
const i = { ...s.props };
|
|
546
|
-
return delete i.context, i;
|
|
547
|
-
})
|
|
548
|
-
);
|
|
549
|
-
Ie.canUseDOM ? De(o) : k && (n = k(o)), r(n);
|
|
550
|
-
}
|
|
551
|
-
// componentWillMount will be deprecated
|
|
552
|
-
// for SSR, initialize on first render
|
|
553
|
-
// constructor is also unsafe in StrictMode
|
|
554
|
-
init() {
|
|
555
|
-
if (this.rendered)
|
|
556
|
-
return;
|
|
557
|
-
this.rendered = !0;
|
|
558
|
-
const { helmetInstances: t } = this.props.context;
|
|
559
|
-
t.add(this), this.emitChange();
|
|
560
|
-
}
|
|
561
|
-
render() {
|
|
562
|
-
return this.init(), null;
|
|
563
|
-
}
|
|
564
|
-
}, R, je = (R = class extends L {
|
|
565
|
-
shouldComponentUpdate(e) {
|
|
566
|
-
return !ce(G(this.props, "helmetData"), G(e, "helmetData"));
|
|
567
|
-
}
|
|
568
|
-
mapNestedChildrenToProps(e, t) {
|
|
569
|
-
if (!t)
|
|
570
|
-
return null;
|
|
571
|
-
switch (e.type) {
|
|
572
|
-
case "script":
|
|
573
|
-
case "noscript":
|
|
574
|
-
return {
|
|
575
|
-
innerHTML: t
|
|
576
|
-
};
|
|
577
|
-
case "style":
|
|
578
|
-
return {
|
|
579
|
-
cssText: t
|
|
580
|
-
};
|
|
581
|
-
default:
|
|
582
|
-
throw new Error(
|
|
583
|
-
`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`
|
|
584
|
-
);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
flattenArrayTypeChildren(e, t, r, n) {
|
|
588
|
-
return {
|
|
589
|
-
...t,
|
|
590
|
-
[e.type]: [
|
|
591
|
-
...t[e.type] || [],
|
|
592
|
-
{
|
|
593
|
-
...r,
|
|
594
|
-
...this.mapNestedChildrenToProps(e, n)
|
|
595
|
-
}
|
|
596
|
-
]
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
mapObjectTypeChildren(e, t, r, n) {
|
|
600
|
-
switch (e.type) {
|
|
601
|
-
case "title":
|
|
602
|
-
return {
|
|
603
|
-
...t,
|
|
604
|
-
[e.type]: n,
|
|
605
|
-
titleAttributes: { ...r }
|
|
606
|
-
};
|
|
607
|
-
case "body":
|
|
608
|
-
return {
|
|
609
|
-
...t,
|
|
610
|
-
bodyAttributes: { ...r }
|
|
611
|
-
};
|
|
612
|
-
case "html":
|
|
613
|
-
return {
|
|
614
|
-
...t,
|
|
615
|
-
htmlAttributes: { ...r }
|
|
616
|
-
};
|
|
617
|
-
default:
|
|
618
|
-
return {
|
|
619
|
-
...t,
|
|
620
|
-
[e.type]: { ...r }
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
mapArrayTypeChildrenToProps(e, t) {
|
|
625
|
-
let r = { ...t };
|
|
626
|
-
return Object.keys(e).forEach((n) => {
|
|
627
|
-
r = {
|
|
628
|
-
...r,
|
|
629
|
-
[n]: e[n]
|
|
630
|
-
};
|
|
631
|
-
}), r;
|
|
632
|
-
}
|
|
633
|
-
warnOnInvalidChildren(e, t) {
|
|
634
|
-
return B(
|
|
635
|
-
Z.some((r) => e.type === r),
|
|
636
|
-
typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${Z.join(
|
|
637
|
-
", "
|
|
638
|
-
)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
|
|
639
|
-
), B(
|
|
640
|
-
!t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
|
|
641
|
-
`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
|
|
642
|
-
), !0;
|
|
643
|
-
}
|
|
644
|
-
mapChildrenToProps(e, t) {
|
|
645
|
-
let r = {};
|
|
646
|
-
return T.Children.forEach(e, (n) => {
|
|
647
|
-
if (!n || !n.props)
|
|
648
|
-
return;
|
|
649
|
-
const { children: o, ...s } = n.props, i = Object.keys(s).reduce((a, c) => (a[he[c] || c] = s[c], a), {});
|
|
650
|
-
let { type: l } = n;
|
|
651
|
-
switch (typeof l == "symbol" ? l = l.toString() : this.warnOnInvalidChildren(n, o), l) {
|
|
652
|
-
case "Symbol(react.fragment)":
|
|
653
|
-
t = this.mapChildrenToProps(o, t);
|
|
654
|
-
break;
|
|
655
|
-
case "link":
|
|
656
|
-
case "meta":
|
|
657
|
-
case "noscript":
|
|
658
|
-
case "script":
|
|
659
|
-
case "style":
|
|
660
|
-
r = this.flattenArrayTypeChildren(
|
|
661
|
-
n,
|
|
662
|
-
r,
|
|
663
|
-
i,
|
|
664
|
-
o
|
|
665
|
-
);
|
|
666
|
-
break;
|
|
667
|
-
default:
|
|
668
|
-
t = this.mapObjectTypeChildren(n, t, i, o);
|
|
669
|
-
break;
|
|
670
|
-
}
|
|
671
|
-
}), this.mapArrayTypeChildrenToProps(r, t);
|
|
672
|
-
}
|
|
673
|
-
render() {
|
|
674
|
-
const { children: e, ...t } = this.props;
|
|
675
|
-
let r = { ...t }, { helmetData: n } = t;
|
|
676
|
-
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof j)) {
|
|
677
|
-
const o = n;
|
|
678
|
-
n = new j(o.context, !0), delete r.helmetData;
|
|
679
|
-
}
|
|
680
|
-
return n ? /* @__PURE__ */ T.createElement(J, { ...r, context: n.value }) : /* @__PURE__ */ T.createElement(ne.Consumer, null, (o) => /* @__PURE__ */ T.createElement(J, { ...r, context: o }));
|
|
681
|
-
}
|
|
682
|
-
}, y(R, "defaultProps", {
|
|
683
|
-
defer: !0,
|
|
684
|
-
encodeSpecialCharacters: !0,
|
|
685
|
-
prioritizeSeoTags: !1
|
|
686
|
-
}), R);
|
|
687
|
-
export {
|
|
688
|
-
je as H,
|
|
689
|
-
Ie as a
|
|
690
|
-
};
|
|
691
|
-
//# sourceMappingURL=index.esm-CQHE3GEU.js.map
|