main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import type { ResolvedMetadata } from '../types/metadata-interface';
import React from 'react';
export declare function AlternatesMetadata({ alternates, }: {
alternates: ResolvedMetadata['alternates'];
}): NonNullable<React.JSX.Element | (React.JSX.Element | null | undefined)[]>[] | null;

View File

@@ -0,0 +1,54 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "AlternatesMetadata", {
enumerable: true,
get: function() {
return AlternatesMetadata;
}
});
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _meta = require("./meta");
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function AlternateLink({ descriptor, ...props }) {
if (!descriptor.url) return null;
return /*#__PURE__*/ _react.default.createElement("link", {
...props,
...descriptor.title && {
title: descriptor.title
},
href: descriptor.url.toString()
});
}
function AlternatesMetadata({ alternates }) {
if (!alternates) return null;
const { canonical, languages, media, types } = alternates;
return (0, _meta.MetaFilter)([
canonical ? AlternateLink({
rel: "canonical",
descriptor: canonical
}) : null,
languages ? Object.entries(languages).flatMap(([locale, descriptors])=>descriptors == null ? void 0 : descriptors.map((descriptor)=>AlternateLink({
rel: "alternate",
hrefLang: locale,
descriptor
}))) : null,
media ? Object.entries(media).flatMap(([mediaName, descriptors])=>descriptors == null ? void 0 : descriptors.map((descriptor)=>AlternateLink({
rel: "alternate",
media: mediaName,
descriptor
}))) : null,
types ? Object.entries(types).flatMap(([type, descriptors])=>descriptors == null ? void 0 : descriptors.map((descriptor)=>AlternateLink({
rel: "alternate",
type,
descriptor
}))) : null
]);
}
//# sourceMappingURL=alternate.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/lib/metadata/generate/alternate.tsx"],"names":["AlternatesMetadata","AlternateLink","descriptor","props","url","link","title","href","toString","alternates","canonical","languages","media","types","MetaFilter","rel","Object","entries","flatMap","locale","descriptors","map","hrefLang","mediaName","type"],"mappings":";;;;+BAsBgBA;;;eAAAA;;;8DApBE;sBAES;;;;;;AAE3B,SAASC,cAAc,EACrBC,UAAU,EACV,GAAGC,OAGwC;IAC3C,IAAI,CAACD,WAAWE,GAAG,EAAE,OAAO;IAC5B,qBACE,6BAACC;QACE,GAAGF,KAAK;QACR,GAAID,WAAWI,KAAK,IAAI;YAAEA,OAAOJ,WAAWI,KAAK;QAAC,CAAC;QACpDC,MAAML,WAAWE,GAAG,CAACI,QAAQ;;AAGnC;AAEO,SAASR,mBAAmB,EACjCS,UAAU,EAGX;IACC,IAAI,CAACA,YAAY,OAAO;IAExB,MAAM,EAAEC,SAAS,EAAEC,SAAS,EAAEC,KAAK,EAAEC,KAAK,EAAE,GAAGJ;IAE/C,OAAOK,IAAAA,gBAAU,EAAC;QAChBJ,YACIT,cAAc;YAAEc,KAAK;YAAab,YAAYQ;QAAU,KACxD;QACJC,YACIK,OAAOC,OAAO,CAACN,WAAWO,OAAO,CAAC,CAAC,CAACC,QAAQC,YAAY,GACtDA,+BAAAA,YAAaC,GAAG,CAAC,CAACnB,aAChBD,cAAc;oBAAEc,KAAK;oBAAaO,UAAUH;oBAAQjB;gBAAW,OAGnE;QACJU,QACII,OAAOC,OAAO,CAACL,OAAOM,OAAO,CAAC,CAAC,CAACK,WAAWH,YAAY,GACrDA,+BAAAA,YAAaC,GAAG,CAAC,CAACnB,aAChBD,cAAc;oBAAEc,KAAK;oBAAaH,OAAOW;oBAAWrB;gBAAW,OAGnE;QACJW,QACIG,OAAOC,OAAO,CAACJ,OAAOK,OAAO,CAAC,CAAC,CAACM,MAAMJ,YAAY,GAChDA,+BAAAA,YAAaC,GAAG,CAAC,CAACnB,aAChBD,cAAc;oBAAEc,KAAK;oBAAaS;oBAAMtB;gBAAW,OAGvD;KACL;AACH"}

View File

@@ -0,0 +1,17 @@
import type { ResolvedMetadata } from '../types/metadata-interface';
import React from 'react';
export declare function BasicMetadata({ metadata }: {
metadata: ResolvedMetadata;
}): NonNullable<React.JSX.Element | (React.JSX.Element | null)[]>[];
export declare function ItunesMeta({ itunes }: {
itunes: ResolvedMetadata['itunes'];
}): React.JSX.Element | null;
export declare function FormatDetectionMeta({ formatDetection, }: {
formatDetection: ResolvedMetadata['formatDetection'];
}): React.JSX.Element | null;
export declare function AppleWebAppMeta({ appleWebApp, }: {
appleWebApp: ResolvedMetadata['appleWebApp'];
}): NonNullable<React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.JSX.Element[]>[] | null;
export declare function VerificationMeta({ verification, }: {
verification: ResolvedMetadata['verification'];
}): NonNullable<React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[]>[][] | null;

224
node_modules/next/dist/lib/metadata/generate/basic.js generated vendored Normal file
View File

@@ -0,0 +1,224 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
BasicMetadata: null,
ItunesMeta: null,
FormatDetectionMeta: null,
AppleWebAppMeta: null,
VerificationMeta: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
BasicMetadata: function() {
return BasicMetadata;
},
ItunesMeta: function() {
return ItunesMeta;
},
FormatDetectionMeta: function() {
return FormatDetectionMeta;
},
AppleWebAppMeta: function() {
return AppleWebAppMeta;
},
VerificationMeta: function() {
return VerificationMeta;
}
});
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _meta = require("./meta");
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function BasicMetadata({ metadata }) {
var _metadata_keywords, _metadata_robots, _metadata_robots1;
return (0, _meta.MetaFilter)([
/*#__PURE__*/ _react.default.createElement("meta", {
charSet: "utf-8"
}),
metadata.title !== null && metadata.title.absolute ? /*#__PURE__*/ _react.default.createElement("title", null, metadata.title.absolute) : null,
(0, _meta.Meta)({
name: "description",
content: metadata.description
}),
(0, _meta.Meta)({
name: "application-name",
content: metadata.applicationName
}),
...metadata.authors ? metadata.authors.map((author)=>[
author.url ? /*#__PURE__*/ _react.default.createElement("link", {
rel: "author",
href: author.url.toString()
}) : null,
(0, _meta.Meta)({
name: "author",
content: author.name
})
]) : [],
metadata.manifest ? /*#__PURE__*/ _react.default.createElement("link", {
rel: "manifest",
href: metadata.manifest.toString()
}) : null,
(0, _meta.Meta)({
name: "generator",
content: metadata.generator
}),
(0, _meta.Meta)({
name: "keywords",
content: (_metadata_keywords = metadata.keywords) == null ? void 0 : _metadata_keywords.join(",")
}),
(0, _meta.Meta)({
name: "referrer",
content: metadata.referrer
}),
...metadata.themeColor ? metadata.themeColor.map((themeColor)=>(0, _meta.Meta)({
name: "theme-color",
content: themeColor.color,
media: themeColor.media
})) : [],
(0, _meta.Meta)({
name: "color-scheme",
content: metadata.colorScheme
}),
(0, _meta.Meta)({
name: "viewport",
content: metadata.viewport
}),
(0, _meta.Meta)({
name: "creator",
content: metadata.creator
}),
(0, _meta.Meta)({
name: "publisher",
content: metadata.publisher
}),
(0, _meta.Meta)({
name: "robots",
content: (_metadata_robots = metadata.robots) == null ? void 0 : _metadata_robots.basic
}),
(0, _meta.Meta)({
name: "googlebot",
content: (_metadata_robots1 = metadata.robots) == null ? void 0 : _metadata_robots1.googleBot
}),
(0, _meta.Meta)({
name: "abstract",
content: metadata.abstract
}),
...metadata.archives ? metadata.archives.map((archive)=>/*#__PURE__*/ _react.default.createElement("link", {
rel: "archives",
href: archive
})) : [],
...metadata.assets ? metadata.assets.map((asset)=>/*#__PURE__*/ _react.default.createElement("link", {
rel: "assets",
href: asset
})) : [],
...metadata.bookmarks ? metadata.bookmarks.map((bookmark)=>/*#__PURE__*/ _react.default.createElement("link", {
rel: "bookmarks",
href: bookmark
})) : [],
(0, _meta.Meta)({
name: "category",
content: metadata.category
}),
(0, _meta.Meta)({
name: "classification",
content: metadata.classification
}),
...metadata.other ? Object.entries(metadata.other).map(([name, content])=>(0, _meta.Meta)({
name,
content: Array.isArray(content) ? content.join(",") : content
})) : []
]);
}
function ItunesMeta({ itunes }) {
if (!itunes) return null;
const { appId, appArgument } = itunes;
let content = `app-id=${appId}`;
if (appArgument) {
content += `, app-argument=${appArgument}`;
}
return /*#__PURE__*/ _react.default.createElement("meta", {
name: "apple-itunes-app",
content: content
});
}
const formatDetectionKeys = [
"telephone",
"date",
"address",
"email",
"url"
];
function FormatDetectionMeta({ formatDetection }) {
if (!formatDetection) return null;
let content = "";
for (const key of formatDetectionKeys){
if (key in formatDetection) {
if (content) content += ", ";
content += `${key}=no`;
}
}
return /*#__PURE__*/ _react.default.createElement("meta", {
name: "format-detection",
content: content
});
}
function AppleWebAppMeta({ appleWebApp }) {
if (!appleWebApp) return null;
const { capable, title, startupImage, statusBarStyle } = appleWebApp;
return (0, _meta.MetaFilter)([
capable ? (0, _meta.Meta)({
name: "apple-mobile-web-app-capable",
content: "yes"
}) : null,
(0, _meta.Meta)({
name: "apple-mobile-web-app-title",
content: title
}),
startupImage ? startupImage.map((image)=>/*#__PURE__*/ _react.default.createElement("link", {
href: image.url,
media: image.media,
rel: "apple-touch-startup-image"
})) : null,
statusBarStyle ? (0, _meta.Meta)({
name: "apple-mobile-web-app-status-bar-style",
content: statusBarStyle
}) : null
]);
}
function VerificationMeta({ verification }) {
if (!verification) return null;
return (0, _meta.MetaFilter)([
(0, _meta.MultiMeta)({
namePrefix: "google-site-verification",
contents: verification.google
}),
(0, _meta.MultiMeta)({
namePrefix: "y_key",
contents: verification.yahoo
}),
(0, _meta.MultiMeta)({
namePrefix: "yandex-verification",
contents: verification.yandex
}),
(0, _meta.MultiMeta)({
namePrefix: "me",
contents: verification.me
}),
...verification.other ? Object.entries(verification.other).map(([key, value])=>(0, _meta.MultiMeta)({
namePrefix: key,
contents: value
})) : []
]);
}
//# sourceMappingURL=basic.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/lib/metadata/generate/basic.tsx"],"names":["BasicMetadata","ItunesMeta","FormatDetectionMeta","AppleWebAppMeta","VerificationMeta","metadata","MetaFilter","meta","charSet","title","absolute","Meta","name","content","description","applicationName","authors","map","author","url","link","rel","href","toString","manifest","generator","keywords","join","referrer","themeColor","color","media","colorScheme","viewport","creator","publisher","robots","basic","googleBot","abstract","archives","archive","assets","asset","bookmarks","bookmark","category","classification","other","Object","entries","Array","isArray","itunes","appId","appArgument","formatDetectionKeys","formatDetection","key","appleWebApp","capable","startupImage","statusBarStyle","image","verification","MultiMeta","namePrefix","contents","google","yahoo","yandex","me","value"],"mappings":";;;;;;;;;;;;;;;;;;IAKgBA,aAAa;eAAbA;;IAgEAC,UAAU;eAAVA;;IAiBAC,mBAAmB;eAAnBA;;IAgBAC,eAAe;eAAfA;;IAgCAC,gBAAgB;eAAhBA;;;8DApIE;sBAC0B;;;;;;AAErC,SAASJ,cAAc,EAAEK,QAAQ,EAAkC;QAoBpCA,oBAeFA,kBACGA;IAnCrC,OAAOC,IAAAA,gBAAU,EAAC;sBAChB,6BAACC;YAAKC,SAAQ;;QACdH,SAASI,KAAK,KAAK,QAAQJ,SAASI,KAAK,CAACC,QAAQ,iBAChD,6BAACD,eAAOJ,SAASI,KAAK,CAACC,QAAQ,IAC7B;QACJC,IAAAA,UAAI,EAAC;YAAEC,MAAM;YAAeC,SAASR,SAASS,WAAW;QAAC;QAC1DH,IAAAA,UAAI,EAAC;YAAEC,MAAM;YAAoBC,SAASR,SAASU,eAAe;QAAC;WAC/DV,SAASW,OAAO,GAChBX,SAASW,OAAO,CAACC,GAAG,CAAC,CAACC,SAAW;gBAC/BA,OAAOC,GAAG,iBACR,6BAACC;oBAAKC,KAAI;oBAASC,MAAMJ,OAAOC,GAAG,CAACI,QAAQ;qBAC1C;gBACJZ,IAAAA,UAAI,EAAC;oBAAEC,MAAM;oBAAUC,SAASK,OAAON,IAAI;gBAAC;aAC7C,IACD,EAAE;QACNP,SAASmB,QAAQ,iBACf,6BAACJ;YAAKC,KAAI;YAAWC,MAAMjB,SAASmB,QAA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
import type { ResolvedMetadata } from '../types/metadata-interface';
import React from 'react';
export declare function IconsMetadata({ icons }: {
icons: ResolvedMetadata['icons'];
}): React.JSX.Element[][] | null;

65
node_modules/next/dist/lib/metadata/generate/icons.js generated vendored Normal file
View File

@@ -0,0 +1,65 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "IconsMetadata", {
enumerable: true,
get: function() {
return IconsMetadata;
}
});
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _meta = require("./meta");
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function IconDescriptorLink({ icon }) {
const { url, rel = "icon", ...props } = icon;
return /*#__PURE__*/ _react.default.createElement("link", {
rel: rel,
href: url.toString(),
...props
});
}
function IconLink({ rel, icon }) {
if (typeof icon === "object" && !(icon instanceof URL)) {
if (!icon.rel && rel) icon.rel = rel;
return IconDescriptorLink({
icon
});
} else {
const href = icon.toString();
return /*#__PURE__*/ _react.default.createElement("link", {
rel: rel,
href: href
});
}
}
function IconsMetadata({ icons }) {
if (!icons) return null;
const shortcutList = icons.shortcut;
const iconList = icons.icon;
const appleList = icons.apple;
const otherList = icons.other;
return (0, _meta.MetaFilter)([
shortcutList ? shortcutList.map((icon)=>IconLink({
rel: "shortcut icon",
icon
})) : null,
iconList ? iconList.map((icon)=>IconLink({
rel: "icon",
icon
})) : null,
appleList ? appleList.map((icon)=>IconLink({
rel: "apple-touch-icon",
icon
})) : null,
otherList ? otherList.map((icon)=>IconDescriptorLink({
icon
})) : null
]);
}
//# sourceMappingURL=icons.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/lib/metadata/generate/icons.tsx"],"names":["IconsMetadata","IconDescriptorLink","icon","url","rel","props","link","href","toString","IconLink","URL","icons","shortcutList","shortcut","iconList","appleList","apple","otherList","other","MetaFilter","map"],"mappings":";;;;+BAsBgBA;;;eAAAA;;;8DAnBE;sBACS;;;;;;AAE3B,SAASC,mBAAmB,EAAEC,IAAI,EAA4B;IAC5D,MAAM,EAAEC,GAAG,EAAEC,MAAM,MAAM,EAAE,GAAGC,OAAO,GAAGH;IAExC,qBAAO,6BAACI;QAAKF,KAAKA;QAAKG,MAAMJ,IAAIK,QAAQ;QAAK,GAAGH,KAAK;;AACxD;AAEA,SAASI,SAAS,EAAEL,GAAG,EAAEF,IAAI,EAAgC;IAC3D,IAAI,OAAOA,SAAS,YAAY,CAAEA,CAAAA,gBAAgBQ,GAAE,GAAI;QACtD,IAAI,CAACR,KAAKE,GAAG,IAAIA,KAAKF,KAAKE,GAAG,GAAGA;QACjC,OAAOH,mBAAmB;YAAEC;QAAK;IACnC,OAAO;QACL,MAAMK,OAAOL,KAAKM,QAAQ;QAC1B,qBAAO,6BAACF;YAAKF,KAAKA;YAAKG,MAAMA;;IAC/B;AACF;AAEO,SAASP,cAAc,EAAEW,KAAK,EAAwC;IAC3E,IAAI,CAACA,OAAO,OAAO;IAEnB,MAAMC,eAAeD,MAAME,QAAQ;IACnC,MAAMC,WAAWH,MAAMT,IAAI;IAC3B,MAAMa,YAAYJ,MAAMK,KAAK;IAC7B,MAAMC,YAAYN,MAAMO,KAAK;IAE7B,OAAOC,IAAAA,gBAAU,EAAC;QAChBP,eACIA,aAAaQ,GAAG,CAAC,CAAClB,OAASO,SAAS;gBAAEL,KAAK;gBAAiBF;YAAK,MACjE;QACJY,WAAWA,SAASM,GAAG,CAAC,CAAClB,OAASO,SAAS;gBAAEL,KAAK;gBAAQF;YAAK,MAAM;QACrEa,YACIA,UAAUK,GAAG,CAAC,CAAClB,OAASO,SAAS;gBAAEL,KAAK;gBAAoBF;YAAK,MACjE;QACJe,YAAYA,UAAUG,GAAG,CAAC,CAAClB,OAASD,mBAAmB;gBAAEC;YAAK,MAAM;KACrE;AACH"}

16
node_modules/next/dist/lib/metadata/generate/meta.d.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
import React from 'react';
export declare function Meta({ name, property, content, media, }: {
name?: string;
property?: string;
media?: string;
content: string | number | URL | null | undefined;
}): React.ReactElement | null;
export declare function MetaFilter<T extends {} | {}[]>(items: (T | null)[]): NonNullable<T>[];
type ExtendMetaContent = Record<string, undefined | string | URL | number | boolean | null | undefined>;
type MultiMetaContent = (ExtendMetaContent | string | URL | number)[] | null | undefined;
export declare function MultiMeta({ propertyPrefix, namePrefix, contents, }: {
propertyPrefix?: string;
namePrefix?: string;
contents?: MultiMetaContent | null;
}): NonNullable<React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[]>[] | null;
export {};

115
node_modules/next/dist/lib/metadata/generate/meta.js generated vendored Normal file
View File

@@ -0,0 +1,115 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
Meta: null,
MetaFilter: null,
MultiMeta: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
Meta: function() {
return Meta;
},
MetaFilter: function() {
return MetaFilter;
},
MultiMeta: function() {
return MultiMeta;
}
});
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _nonnullable = require("../../non-nullable");
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function Meta({ name, property, content, media }) {
if (typeof content !== "undefined" && content !== null && content !== "") {
return /*#__PURE__*/ _react.default.createElement("meta", {
...name ? {
name
} : {
property
},
...media ? {
media
} : undefined,
content: typeof content === "string" ? content : content.toString()
});
}
return null;
}
function MetaFilter(items) {
const acc = [];
for (const item of items){
if (Array.isArray(item)) {
acc.push(...item.filter(_nonnullable.nonNullable));
} else if ((0, _nonnullable.nonNullable)(item)) {
acc.push(item);
}
}
return acc;
}
function camelToSnake(camelCaseStr) {
return camelCaseStr.replace(/([A-Z])/g, function(match) {
return "_" + match.toLowerCase();
});
}
function getMetaKey(prefix, key) {
// Use `twitter:image` and `og:image` instead of `twitter:image:url` and `og:image:url`
// to be more compatible as it's a more common format
if ((prefix === "og:image" || prefix === "twitter:image") && key === "url") {
return prefix;
}
if (prefix.startsWith("og:") || prefix.startsWith("twitter:")) {
key = camelToSnake(key);
}
return prefix + ":" + key;
}
function ExtendMeta({ content, namePrefix, propertyPrefix }) {
if (!content) return null;
return MetaFilter(Object.entries(content).map(([k, v])=>{
return typeof v === "undefined" ? null : Meta({
...propertyPrefix && {
property: getMetaKey(propertyPrefix, k)
},
...namePrefix && {
name: getMetaKey(namePrefix, k)
},
content: typeof v === "string" ? v : v == null ? void 0 : v.toString()
});
}));
}
function MultiMeta({ propertyPrefix, namePrefix, contents }) {
if (typeof contents === "undefined" || contents === null) {
return null;
}
return MetaFilter(contents.map((content)=>{
if (typeof content === "string" || typeof content === "number" || content instanceof URL) {
return Meta({
...propertyPrefix ? {
property: propertyPrefix
} : {
name: namePrefix
},
content
});
} else {
return ExtendMeta({
namePrefix,
propertyPrefix,
content
});
}
}));
}
//# sourceMappingURL=meta.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/lib/metadata/generate/meta.tsx"],"names":["Meta","MetaFilter","MultiMeta","name","property","content","media","meta","undefined","toString","items","acc","item","Array","isArray","push","filter","nonNullable","camelToSnake","camelCaseStr","replace","match","toLowerCase","getMetaKey","prefix","key","startsWith","ExtendMeta","namePrefix","propertyPrefix","Object","entries","map","k","v","contents","URL"],"mappings":";;;;;;;;;;;;;;;;IAGgBA,IAAI;eAAJA;;IAuBAC,UAAU;eAAVA;;IAgEAC,SAAS;eAATA;;;8DA1FE;6BACU;;;;;;AAErB,SAASF,KAAK,EACnBG,IAAI,EACJC,QAAQ,EACRC,OAAO,EACPC,KAAK,EAMN;IACC,IAAI,OAAOD,YAAY,eAAeA,YAAY,QAAQA,YAAY,IAAI;QACxE,qBACE,6BAACE;YACE,GAAIJ,OAAO;gBAAEA;YAAK,IAAI;gBAAEC;YAAS,CAAC;YAClC,GAAIE,QAAQ;gBAAEA;YAAM,IAAIE,SAAS;YAClCH,SAAS,OAAOA,YAAY,WAAWA,UAAUA,QA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AI,OAAOA,aAAa,eAAeA,aAAa,MAAM;QACxD,OAAO;IACT;IAEA,OAAOlC,WACLkC,SAASH,GAAG,CAAC,CAAC3B;QACZ,IACE,OAAOA,YAAY,YACnB,OAAOA,YAAY,YACnBA,mBAAmB+B,KACnB;YACA,OAAOpC,KAAK;gBACV,GAAI6B,iBACA;oBAAEzB,UAAUyB;gBAAe,IAC3B;oBAAE1B,MAAMyB;gBAAW,CAAC;gBACxBvB;YACF;QACF,OAAO;YACL,OAAOsB,WAAW;gBAChBC;gBACAC;gBACAxB;YACF;QACF;IACF;AAEJ"}

View File

@@ -0,0 +1,11 @@
/// <reference types="react" />
import type { ResolvedMetadata } from '../types/metadata-interface';
export declare function OpenGraphMetadata({ openGraph, }: {
openGraph: ResolvedMetadata['openGraph'];
}): NonNullable<import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | NonNullable<import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[]>[]>[] | null;
export declare function TwitterMetadata({ twitter, }: {
twitter: ResolvedMetadata['twitter'];
}): NonNullable<import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | (import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null)[] | NonNullable<import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[]>[]>[] | null;
export declare function AppLinksMeta({ appLinks, }: {
appLinks: ResolvedMetadata['appLinks'];
}): NonNullable<import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[]>[][] | null;

View File

@@ -0,0 +1,474 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
OpenGraphMetadata: null,
TwitterMetadata: null,
AppLinksMeta: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
OpenGraphMetadata: function() {
return OpenGraphMetadata;
},
TwitterMetadata: function() {
return TwitterMetadata;
},
AppLinksMeta: function() {
return AppLinksMeta;
}
});
const _meta = require("./meta");
function OpenGraphMetadata({ openGraph }) {
var _openGraph_title, _openGraph_url, _openGraph_ttl;
if (!openGraph) {
return null;
}
let typedOpenGraph;
if ("type" in openGraph) {
const openGraphType = openGraph.type;
switch(openGraphType){
case "website":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "website"
})
];
break;
case "article":
var _openGraph_publishedTime, _openGraph_modifiedTime, _openGraph_expirationTime;
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "article"
}),
(0, _meta.Meta)({
property: "article:published_time",
content: (_openGraph_publishedTime = openGraph.publishedTime) == null ? void 0 : _openGraph_publishedTime.toString()
}),
(0, _meta.Meta)({
property: "article:modified_time",
content: (_openGraph_modifiedTime = openGraph.modifiedTime) == null ? void 0 : _openGraph_modifiedTime.toString()
}),
(0, _meta.Meta)({
property: "article:expiration_time",
content: (_openGraph_expirationTime = openGraph.expirationTime) == null ? void 0 : _openGraph_expirationTime.toString()
}),
(0, _meta.MultiMeta)({
propertyPrefix: "article:author",
contents: openGraph.authors
}),
(0, _meta.Meta)({
property: "article:section",
content: openGraph.section
}),
(0, _meta.MultiMeta)({
propertyPrefix: "article:tag",
contents: openGraph.tags
})
];
break;
case "book":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "book"
}),
(0, _meta.Meta)({
property: "book:isbn",
content: openGraph.isbn
}),
(0, _meta.Meta)({
property: "book:release_date",
content: openGraph.releaseDate
}),
(0, _meta.MultiMeta)({
propertyPrefix: "book:author",
contents: openGraph.authors
}),
(0, _meta.MultiMeta)({
propertyPrefix: "book:tag",
contents: openGraph.tags
})
];
break;
case "profile":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "profile"
}),
(0, _meta.Meta)({
property: "profile:first_name",
content: openGraph.firstName
}),
(0, _meta.Meta)({
property: "profile:last_name",
content: openGraph.lastName
}),
(0, _meta.Meta)({
property: "profile:username",
content: openGraph.username
}),
(0, _meta.Meta)({
property: "profile:gender",
content: openGraph.gender
})
];
break;
case "music.song":
var _openGraph_duration;
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "music.song"
}),
(0, _meta.Meta)({
property: "music:duration",
content: (_openGraph_duration = openGraph.duration) == null ? void 0 : _openGraph_duration.toString()
}),
(0, _meta.MultiMeta)({
propertyPrefix: "music:album",
contents: openGraph.albums
}),
(0, _meta.MultiMeta)({
propertyPrefix: "music:musician",
contents: openGraph.musicians
})
];
break;
case "music.album":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "music.album"
}),
(0, _meta.MultiMeta)({
propertyPrefix: "music:song",
contents: openGraph.songs
}),
(0, _meta.MultiMeta)({
propertyPrefix: "music:musician",
contents: openGraph.musicians
}),
(0, _meta.Meta)({
property: "music:release_date",
content: openGraph.releaseDate
})
];
break;
case "music.playlist":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "music.playlist"
}),
(0, _meta.MultiMeta)({
propertyPrefix: "music:song",
contents: openGraph.songs
}),
(0, _meta.MultiMeta)({
propertyPrefix: "music:creator",
contents: openGraph.creators
})
];
break;
case "music.radio_station":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "music.radio_station"
}),
(0, _meta.MultiMeta)({
propertyPrefix: "music:creator",
contents: openGraph.creators
})
];
break;
case "video.movie":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "video.movie"
}),
(0, _meta.MultiMeta)({
propertyPrefix: "video:actor",
contents: openGraph.actors
}),
(0, _meta.MultiMeta)({
propertyPrefix: "video:director",
contents: openGraph.directors
}),
(0, _meta.MultiMeta)({
propertyPrefix: "video:writer",
contents: openGraph.writers
}),
(0, _meta.Meta)({
property: "video:duration",
content: openGraph.duration
}),
(0, _meta.Meta)({
property: "video:release_date",
content: openGraph.releaseDate
}),
(0, _meta.MultiMeta)({
propertyPrefix: "video:tag",
contents: openGraph.tags
})
];
break;
case "video.episode":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "video.episode"
}),
(0, _meta.MultiMeta)({
propertyPrefix: "video:actor",
contents: openGraph.actors
}),
(0, _meta.MultiMeta)({
propertyPrefix: "video:director",
contents: openGraph.directors
}),
(0, _meta.MultiMeta)({
propertyPrefix: "video:writer",
contents: openGraph.writers
}),
(0, _meta.Meta)({
property: "video:duration",
content: openGraph.duration
}),
(0, _meta.Meta)({
property: "video:release_date",
content: openGraph.releaseDate
}),
(0, _meta.MultiMeta)({
propertyPrefix: "video:tag",
contents: openGraph.tags
}),
(0, _meta.Meta)({
property: "video:series",
content: openGraph.series
})
];
break;
case "video.tv_show":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "video.tv_show"
})
];
break;
case "video.other":
typedOpenGraph = [
(0, _meta.Meta)({
property: "og:type",
content: "video.other"
})
];
break;
default:
const _exhaustiveCheck = openGraphType;
throw new Error(`Invalid OpenGraph type: ${_exhaustiveCheck}`);
}
}
return (0, _meta.MetaFilter)([
(0, _meta.Meta)({
property: "og:determiner",
content: openGraph.determiner
}),
(0, _meta.Meta)({
property: "og:title",
content: (_openGraph_title = openGraph.title) == null ? void 0 : _openGraph_title.absolute
}),
(0, _meta.Meta)({
property: "og:description",
content: openGraph.description
}),
(0, _meta.Meta)({
property: "og:url",
content: (_openGraph_url = openGraph.url) == null ? void 0 : _openGraph_url.toString()
}),
(0, _meta.Meta)({
property: "og:site_name",
content: openGraph.siteName
}),
(0, _meta.Meta)({
property: "og:locale",
content: openGraph.locale
}),
(0, _meta.Meta)({
property: "og:country_name",
content: openGraph.countryName
}),
(0, _meta.Meta)({
property: "og:ttl",
content: (_openGraph_ttl = openGraph.ttl) == null ? void 0 : _openGraph_ttl.toString()
}),
(0, _meta.MultiMeta)({
propertyPrefix: "og:image",
contents: openGraph.images
}),
(0, _meta.MultiMeta)({
propertyPrefix: "og:video",
contents: openGraph.videos
}),
(0, _meta.MultiMeta)({
propertyPrefix: "og:audio",
contents: openGraph.audio
}),
(0, _meta.MultiMeta)({
propertyPrefix: "og:email",
contents: openGraph.emails
}),
(0, _meta.MultiMeta)({
propertyPrefix: "og:phone_number",
contents: openGraph.phoneNumbers
}),
(0, _meta.MultiMeta)({
propertyPrefix: "og:fax_number",
contents: openGraph.faxNumbers
}),
(0, _meta.MultiMeta)({
propertyPrefix: "og:locale:alternate",
contents: openGraph.alternateLocale
}),
...typedOpenGraph ? typedOpenGraph : []
]);
}
function TwitterAppItem({ app, type }) {
var _app_url_type, _app_url;
return [
(0, _meta.Meta)({
name: `twitter:app:name:${type}`,
content: app.name
}),
(0, _meta.Meta)({
name: `twitter:app:id:${type}`,
content: app.id[type]
}),
(0, _meta.Meta)({
name: `twitter:app:url:${type}`,
content: (_app_url = app.url) == null ? void 0 : (_app_url_type = _app_url[type]) == null ? void 0 : _app_url_type.toString()
})
];
}
function TwitterMetadata({ twitter }) {
var _twitter_title;
if (!twitter) return null;
const { card } = twitter;
return (0, _meta.MetaFilter)([
(0, _meta.Meta)({
name: "twitter:card",
content: card
}),
(0, _meta.Meta)({
name: "twitter:site",
content: twitter.site
}),
(0, _meta.Meta)({
name: "twitter:site:id",
content: twitter.siteId
}),
(0, _meta.Meta)({
name: "twitter:creator",
content: twitter.creator
}),
(0, _meta.Meta)({
name: "twitter:creator:id",
content: twitter.creatorId
}),
(0, _meta.Meta)({
name: "twitter:title",
content: (_twitter_title = twitter.title) == null ? void 0 : _twitter_title.absolute
}),
(0, _meta.Meta)({
name: "twitter:description",
content: twitter.description
}),
(0, _meta.MultiMeta)({
namePrefix: "twitter:image",
contents: twitter.images
}),
...card === "player" ? twitter.players.flatMap((player)=>[
(0, _meta.Meta)({
name: "twitter:player",
content: player.playerUrl.toString()
}),
(0, _meta.Meta)({
name: "twitter:player:stream",
content: player.streamUrl.toString()
}),
(0, _meta.Meta)({
name: "twitter:player:width",
content: player.width
}),
(0, _meta.Meta)({
name: "twitter:player:height",
content: player.height
})
]) : [],
...card === "app" ? [
TwitterAppItem({
app: twitter.app,
type: "iphone"
}),
TwitterAppItem({
app: twitter.app,
type: "ipad"
}),
TwitterAppItem({
app: twitter.app,
type: "googleplay"
})
] : []
]);
}
function AppLinksMeta({ appLinks }) {
if (!appLinks) return null;
return (0, _meta.MetaFilter)([
(0, _meta.MultiMeta)({
propertyPrefix: "al:ios",
contents: appLinks.ios
}),
(0, _meta.MultiMeta)({
propertyPrefix: "al:iphone",
contents: appLinks.iphone
}),
(0, _meta.MultiMeta)({
propertyPrefix: "al:ipad",
contents: appLinks.ipad
}),
(0, _meta.MultiMeta)({
propertyPrefix: "al:android",
contents: appLinks.android
}),
(0, _meta.MultiMeta)({
propertyPrefix: "al:windows_phone",
contents: appLinks.windows_phone
}),
(0, _meta.MultiMeta)({
propertyPrefix: "al:windows",
contents: appLinks.windows
}),
(0, _meta.MultiMeta)({
propertyPrefix: "al:windows_universal",
contents: appLinks.windows_universal
}),
(0, _meta.MultiMeta)({
propertyPrefix: "al:web",
contents: appLinks.web
})
]);
}
//# sourceMappingURL=opengraph.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
declare function resolveArray<T>(value: T | T[]): T[];
declare function resolveAsArrayOrUndefined<T>(value: T | T[] | undefined | null): T extends undefined | null ? undefined : T[];
export { resolveAsArrayOrUndefined, resolveArray };

38
node_modules/next/dist/lib/metadata/generate/utils.js generated vendored Normal file
View File

@@ -0,0 +1,38 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
resolveAsArrayOrUndefined: null,
resolveArray: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
resolveAsArrayOrUndefined: function() {
return resolveAsArrayOrUndefined;
},
resolveArray: function() {
return resolveArray;
}
});
function resolveArray(value) {
if (Array.isArray(value)) {
return value;
}
return [
value
];
}
function resolveAsArrayOrUndefined(value) {
if (typeof value === "undefined" || value === null) {
return undefined;
}
return resolveArray(value);
}
//# sourceMappingURL=utils.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/lib/metadata/generate/utils.ts"],"names":["resolveAsArrayOrUndefined","resolveArray","value","Array","isArray","undefined"],"mappings":";;;;;;;;;;;;;;;IAgBSA,yBAAyB;eAAzBA;;IAA2BC,YAAY;eAAZA;;;AAhBpC,SAASA,aAAgBC,KAAc;IACrC,IAAIC,MAAMC,OAAO,CAACF,QAAQ;QACxB,OAAOA;IACT;IACA,OAAO;QAACA;KAAM;AAChB;AAEA,SAASF,0BACPE,KAAiC;IAEjC,IAAI,OAAOA,UAAU,eAAeA,UAAU,MAAM;QAClD,OAAOG;IACT;IACA,OAAOJ,aAAaC;AACtB"}