import{i as g}from"./DGtjvSSZ.js";function s(e){var i,r;const u=g().public.base,t={"@context":"https://schema.org","@type":e?"NewsArticle":"WebSite",publisher:{"@type":"Organization",name:"Pagina 7",logo:{"@type":"ImageObject",url:`${u}/img/P7-logo.png`,height:1024,width:1024},sameAs:["https://twitter.com/pagina7chile","https://www.facebook.com/pagina7chile","https://www.youtube.com/channel/UCuRKZqDJKZcFid5szGEbs5Q","https://www.tiktok.com/@pagina7chile","https://www.threads.net/@pagina7chile"]},inLanguage:"es-ES"};if(!e)return JSON.stringify(t);const a={headline:e.seo.title??e.title??"",datePublished:e.publishedAt,dateModified:e.publishedAt,image:[{"@type":"ImageObject",url:e.featuredImage.sizes.medium.url,width:e.featuredImage.sizes.medium.width,height:e.featuredImage.sizes.medium.height},{"@type":"ImageObject",url:e.featuredImage.sizes.mediumLarge.url,width:e.featuredImage.sizes.mediumLarge.width,height:e.featuredImage.sizes.mediumLarge.height},{"@type":"ImageObject",url:e.featuredImage.sizes.large.url,width:e.featuredImage.sizes.large.width,height:e.featuredImage.sizes.large.height}],url:e.url,author:[]};return(r=(i=e.authorsGroups)==null?void 0:i.authorsGroup)!=null&&r.authors&&(a.author=e.authorsGroups.authorsGroup.authors.map(h=>({"@type":"Person",name:h.name}))),JSON.stringify({...t,...a})}export{s as g};