sass-template-common 0.9.22 → 0.9.23
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.
|
@@ -1543,11 +1543,16 @@ const Br = async ({
|
|
|
1543
1543
|
{
|
|
1544
1544
|
rel: "preload",
|
|
1545
1545
|
as: "font",
|
|
1546
|
+
media: "print",
|
|
1547
|
+
onLoad: (s) => {
|
|
1548
|
+
s.currentTarget.onload = null, s.currentTarget.media = "all";
|
|
1549
|
+
},
|
|
1546
1550
|
href: e.fontS3Url,
|
|
1547
1551
|
type: "font/woff2",
|
|
1548
1552
|
crossOrigin: "anonymous"
|
|
1549
1553
|
}
|
|
1550
1554
|
),
|
|
1555
|
+
/* @__PURE__ */ n("noscript", { children: /* @__PURE__ */ n("link", { rel: "stylesheet", href: e.fontS3Url }) }),
|
|
1551
1556
|
/* @__PURE__ */ n("style", { dangerouslySetInnerHTML: { __html: t } })
|
|
1552
1557
|
] }) : /* @__PURE__ */ n(
|
|
1553
1558
|
"link",
|
|
@@ -18,7 +18,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
18
18
|
src: url("${e.fontS3Url}") format('woff2');
|
|
19
19
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
20
20
|
}
|
|
21
|
-
`;return s.jsx(s.Fragment,{children:e.useS3Font?s.jsxs(s.Fragment,{children:[s.jsx("link",{rel:"preload",as:"font",href:e.fontS3Url,type:"font/woff2",crossOrigin:"anonymous"}),s.jsx("style",{dangerouslySetInnerHTML:{__html:t}})]}):s.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${e.fontDisplay??"swap"}`})})},as={404:()=>{},home:()=>({"[author_replace]":"","[section_replace]":"home","[tag_replace]":"","[url_replace]":""}),slug:e=>({"[author_replace]":"","[section_replace]":e.pathname==="/index.html"?"home":e.slug??"","[tag_replace]":"","[url_replace]":""}),news:e=>({"[author_replace]":e.currentNew?.authors[0]?.name??"","[section_replace]":e.currentNew?.info?.section?.slug??"","[tag_replace]":Xt(e.currentNew?.keywords),"[url_replace]":ha(e.internalPath??"")}),seccion:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.seccion+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),tema:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.tema+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),"ultimas-noticias":e=>({"[author_replace]":"","[section_replace]":e.config?.paths["ultimas-noticias"]??"","[tag_replace]":"","[url_replace]":""}),video:e=>({"[author_replace]":"","[section_replace]":e.slug,"[tag_replace]":"","[url_replace]":""}),videos:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/videos/")[1]??"","[tag_replace]":"","[url_replace]":""}),pages:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),auth:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),contacto:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.contacto??"contacto","[tag_replace]":"","[url_replace]":""}),anuncia:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.anuncia??"anuncia","[tag_replace]":"","[url_replace]":""}),buscar:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.buscar??"","[tag_replace]":"","[url_replace]":""}),autor:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.autor+"/")[1]??"","[tag_replace]":"","[url_replace]":""})},Ta=e=>{if(!e)return e??"";if(e.search("/page/")===-1)return e.replace("/","");const t=e.split("/"),a=t.indexOf("page")-1;return a<0?e:(t[a]??"").replace("/","")},pe=e=>{const a=e.replace(/^\/|\/$/g,"").split("/"),n=a.indexOf("page");return n>0?`${a[n-1]??""}`:`${a[a.length-1]??""}`},xa={404:()=>"404",home:()=>"home",slug:e=>pe(e.pathname),news:e=>da(e.pathname)?.slug,seccion:e=>pe(e.pathname),tema:e=>pe(e.pathname),pages:e=>pe(e.pathname),auth:e=>pe(e.pathname),buscar:e=>pe(e.pathname),"ultimas-noticias":e=>pe(e.pathname),anuncia:e=>pe(e.pathname),contacto:e=>pe(e.pathname),autor:e=>pe(e.pathname),video:e=>pe(e.pathname),videos:e=>pe(e.pathname)},Xe=e=>{const t=e.split("/"),a=t[t.length-1]??"1";return Number(a)>0?Number(a):1},yo=(e,t=2)=>{if(!e||e.length===0)return[];const a=[];for(let n=0;n<t;n++){if(!e[n]||!e[n].preview)continue;const r=e[n].preview?.sizes;r&&(r.length>1?a.push({href:r[0]?.url??"",media:"(min-width: 900px)"},{href:r[1]?.url??"",media:"(max-width: 900px)"}):a.push({href:r[0]?.url??""}))}return a},Co=e=>{try{return JSON.stringify(e,null,2)}catch{return String(e)}},No=e=>{const{SERVICE_DEBUG:t,PUBLIC_API_HOST:a,PUBLIC_ENV:n,PUBLIC_PUBLICATION_ID:r}=G(),o=new Date().toISOString(),i=t?.projectName??"";return`<!doctype html>
|
|
21
|
+
`;return s.jsx(s.Fragment,{children:e.useS3Font?s.jsxs(s.Fragment,{children:[s.jsx("link",{rel:"preload",as:"font",media:"print",onLoad:a=>{a.currentTarget.onload=null,a.currentTarget.media="all"},href:e.fontS3Url,type:"font/woff2",crossOrigin:"anonymous"}),s.jsx("noscript",{children:s.jsx("link",{rel:"stylesheet",href:e.fontS3Url})}),s.jsx("style",{dangerouslySetInnerHTML:{__html:t}})]}):s.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${e.fontDisplay??"swap"}`})})},as={404:()=>{},home:()=>({"[author_replace]":"","[section_replace]":"home","[tag_replace]":"","[url_replace]":""}),slug:e=>({"[author_replace]":"","[section_replace]":e.pathname==="/index.html"?"home":e.slug??"","[tag_replace]":"","[url_replace]":""}),news:e=>({"[author_replace]":e.currentNew?.authors[0]?.name??"","[section_replace]":e.currentNew?.info?.section?.slug??"","[tag_replace]":Xt(e.currentNew?.keywords),"[url_replace]":ha(e.internalPath??"")}),seccion:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.seccion+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),tema:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.tema+"/")[1]??"","[tag_replace]":"","[url_replace]":""}),"ultimas-noticias":e=>({"[author_replace]":"","[section_replace]":e.config?.paths["ultimas-noticias"]??"","[tag_replace]":"","[url_replace]":""}),video:e=>({"[author_replace]":"","[section_replace]":e.slug,"[tag_replace]":"","[url_replace]":""}),videos:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/videos/")[1]??"","[tag_replace]":"","[url_replace]":""}),pages:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),auth:e=>({"[author_replace]":"","[section_replace]":e.slug??"","[tag_replace]":"","[url_replace]":""}),contacto:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.contacto??"contacto","[tag_replace]":"","[url_replace]":""}),anuncia:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.anuncia??"anuncia","[tag_replace]":"","[url_replace]":""}),buscar:e=>({"[author_replace]":"","[section_replace]":e.config?.paths.buscar??"","[tag_replace]":"","[url_replace]":""}),autor:e=>({"[author_replace]":"","[section_replace]":e.pathname?.split("/"+e.config?.paths.autor+"/")[1]??"","[tag_replace]":"","[url_replace]":""})},Ta=e=>{if(!e)return e??"";if(e.search("/page/")===-1)return e.replace("/","");const t=e.split("/"),a=t.indexOf("page")-1;return a<0?e:(t[a]??"").replace("/","")},pe=e=>{const a=e.replace(/^\/|\/$/g,"").split("/"),n=a.indexOf("page");return n>0?`${a[n-1]??""}`:`${a[a.length-1]??""}`},xa={404:()=>"404",home:()=>"home",slug:e=>pe(e.pathname),news:e=>da(e.pathname)?.slug,seccion:e=>pe(e.pathname),tema:e=>pe(e.pathname),pages:e=>pe(e.pathname),auth:e=>pe(e.pathname),buscar:e=>pe(e.pathname),"ultimas-noticias":e=>pe(e.pathname),anuncia:e=>pe(e.pathname),contacto:e=>pe(e.pathname),autor:e=>pe(e.pathname),video:e=>pe(e.pathname),videos:e=>pe(e.pathname)},Xe=e=>{const t=e.split("/"),a=t[t.length-1]??"1";return Number(a)>0?Number(a):1},yo=(e,t=2)=>{if(!e||e.length===0)return[];const a=[];for(let n=0;n<t;n++){if(!e[n]||!e[n].preview)continue;const r=e[n].preview?.sizes;r&&(r.length>1?a.push({href:r[0]?.url??"",media:"(min-width: 900px)"},{href:r[1]?.url??"",media:"(max-width: 900px)"}):a.push({href:r[0]?.url??""}))}return a},Co=e=>{try{return JSON.stringify(e,null,2)}catch{return String(e)}},No=e=>{const{SERVICE_DEBUG:t,PUBLIC_API_HOST:a,PUBLIC_ENV:n,PUBLIC_PUBLICATION_ID:r}=G(),o=new Date().toISOString(),i=t?.projectName??"";return`<!doctype html>
|
|
22
22
|
<html lang="es">
|
|
23
23
|
<head>
|
|
24
24
|
<meta charset="utf-8" />
|