sass-template-common 0.1.35 → 0.1.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.
@@ -1,3 +1,4 @@
1
+ import './dynamicMainSlot.css';
1
2
  import { D as i } from "./dynamicMainSlot-BQxEis6R.js";
2
3
  export {
3
4
  i as DynamicMainSlot
@@ -1 +1,2 @@
1
+ require('./dynamicMainSlot.css');
1
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./dynamicMainSlot-7gASyhub.cjs");exports.DynamicMainSlot=i.DynamicMainSlot;
@@ -1,3 +1,4 @@
1
+ import './dynamicSlot.css';
1
2
  import { D as m } from "./dynamicSlot-CIjuUYqf.js";
2
3
  export {
3
4
  m as DynamicSlot
@@ -1 +1,2 @@
1
+ require('./dynamicSlot.css');
1
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./dynamicSlot-6TFhTtis.cjs");exports.DynamicSlot=t.DynamicSlot;
@@ -0,0 +1 @@
1
+ export { }
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ "use strict";
package/dist/Section.js CHANGED
@@ -1,3 +1,4 @@
1
+ import './section.card.css';
1
2
  import { S as r } from "./index-DqY93RSP.js";
2
3
  export {
3
4
  r as Section
@@ -1 +1,2 @@
1
+ require('./section.card.css');
1
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BvxjhgQy.cjs");exports.Section=e.Section;
@@ -1,3 +1,4 @@
1
+ import './sass-template-common.css';
1
2
  import { C as Mt } from "./Comscore-Bq6K5xi3.js";
2
3
  import { d as jt, G as Dt } from "./GA4-2trwkmRz.js";
3
4
  import { G as zt } from "./GTM-BYKEijOo.js";
@@ -1,3 +1,4 @@
1
+ require('./sass-template-common.css');
1
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const gt=require("./Comscore-DMCbZ32O.cjs"),Ue=require("./GA4-BHcMQc6X.cjs"),yt=require("./GTM-DUpgJ4I-.cjs"),vt=require("./Marfeel-C-_4NuGW.cjs"),V=require("./PreloadImage-CnJUVuFd.cjs"),xt=require("./cut-string-B_KYH_LD.cjs"),ar=require("./become-video-object-WRT2JnXP.cjs"),de=require("./image-environtment-n-o8Wvct.cjs"),B=require("./config-BzB6kHCH.cjs"),n=require("react/jsx-runtime"),Ce=require("./index-E63jFk_r.cjs"),or=require("./build-tag-url-BMptN9hq.cjs"),_=require("react"),H=require("./comments-DB8EFXt7.cjs"),ir=require("./index-CrqMIuml.cjs"),cr=require("./index-DG5AJVRO.cjs"),lr=require("./index-B9BK2M6P.cjs"),ur=require("./CarrouselCSR-DYd0tK22.cjs"),dr=require("./index-CrRmOv9N.cjs"),we=require("./index-BhJcbgps.cjs"),be=require("./index-V-J_R5-M.cjs"),mr=require("./index-D7OPcLbW.cjs"),pr=require("./index-Crk9bWh-.cjs"),hr=require("./index-Cfw-z8xA.cjs"),fr=require("./index-CVZ6pe_v.cjs"),gr=require("./index-awsHS_US.cjs"),yr=require("./index-BTATfxw3.cjs"),vr=require("./index-B44ONT01.cjs"),xr=require("./index-DOKV7mWM.cjs"),wr=require("./index-BMVOVUqe.cjs"),De=require("./index-DaYUh_52.cjs"),br=require("./index-d8nN15g8.cjs"),Sr=require("./index-BVxIjyTu.cjs"),jr=require("./index-pTs46L3d.cjs"),_r=require("./index-BTXm1q5D.cjs"),Cr=require("./index-C731eubZ.cjs"),Er=require("./index-BUqygcci.cjs"),Nr=require("./index-Z58tQL2j.cjs"),Tr=require("./index-DAQF8x39.cjs"),ae=require("./image-offline.client-r9irG9ar.cjs"),Pr=require("./index-ByqRcrmr.cjs"),Lr=require("./index-CaKVjYQx.cjs"),$r=require("./index-AOhQz8B7.cjs"),Rr=require("./index-C0V-2Y3F.cjs"),wt=require("./index-BvxjhgQy.cjs"),bt=require("./index-BiDQeLSe.cjs"),kr=require("./index-DqOsfxCq.cjs"),Ir=require("./index-CbzRRNeZ.cjs"),Or=require("./index-acARkfKm.cjs"),Ar=require("./index-BQ4m8CSd.cjs"),Mr=require("./index-w8Wp4avx.cjs"),Ur=require("./index-Dw3nrCgB.cjs"),Dr=require("./index-C1b9RnKU.cjs"),qr=require("./index-D4aYrwX5.cjs"),qe=require("./index-8ydwCXM2.cjs"),Br=require("./index-CZnJNr_-.cjs"),Fr=require("./index-DvWa7T7x.cjs"),zr=require("./index-ulfDPRWe.cjs"),Hr=require("./index-CkEGKGNq.cjs"),Vr=require("./index-Cm1R7NCc.cjs"),Yr=require("./index-C1yrpXf6.cjs"),Gr=require("./index-DqoL7iqu.cjs"),Wr=require("./index-BWnZC_6p.cjs"),Jr=require("./index-D4cVrh_r.cjs"),Zr=require("./index-DYFMfLMT.cjs"),Kr=require("./index-DFl5LOA2.cjs"),Xr=require("./index-BbpSaTTa.cjs"),Qr=require("./index-t7y5omIk.cjs"),en=require("./section.card.server-D4OCsd_w.cjs"),te=require("./index-DiRNYGIB.cjs"),tn=require("./Play-DtFrAVg_.cjs"),Se=require("./Link-CHPphz3c.cjs"),Ye=require("./Close-C-8qzSDP.cjs");;/* empty css */;/* empty css */const rn=require("./dynamicSlot-6TFhTtis.cjs"),nn=require("./staticSlotWrapper-CmDA3CVW.cjs"),je=require("./dynamicMainSlot-7gASyhub.cjs"),sn=require("./DynamicComponents-DYjDE9AS.cjs"),an=require("./compileStyleProps-5AwxR1Kg.cjs"),St=require("./SocialIcons-T8ywDEIw.cjs");function on(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const tt=on(_);function jt(e){return e&&e.status==="fulfilled"?e.value.data:null}function _t(e){return e&&e.status==="fulfilled"?e.value:null}function cn(e){const r=[],t=e.match(/<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<\/div>/gi);if(!t)return r;for(const s of t){const a=[],o=s.match(/data-src=["']([^"']+)["']/gi);if(o)for(const i of o){const c=i.replace(/data-src=["']([^"']+)["']/,"$1");a.push(c)}r.push(a)}return r}const Ct=(e,r)=>{if(!e)return{};const{PUBLIC_ASSETS_URL:t,PUBLIC_API_FRONT:s}=B.getConfig(),a=Ge(e.keywords)??"",o=e?.preview?.sizes?e?.preview?.sizes[0]?.url:"",i=(t!=="false"?t:s)??"";return{title:(e?.main?.title?.seo??e?.main?.title?.article)+" | "+r.name,robots:"index, follow, max-image-preview:large",alternates:{types:{"application/rss+xml":(r.siteUrl??"")+"/rss/feed.xml"},canonical:e?.info?.link?.canonical},description:e?.main?.subtitle?.striped??"",news_keywords:a,keywords:a,openGraph:{title:e?.social?.title??e?.main?.title?.article,url:e?.info?.link?.canonical,type:"article",description:e?.social?.description??e?.main?.subtitle?.striped??"",images:[{url:i+(e?.social?.images?.facebook??o),width:r.landscapeLogo.width,height:r.landscapeLogo.height}],siteName:r.name.toLocaleUpperCase()},twitter:{title:e?.main?.title?.article,card:"summary_large_image",site:r.siteUrl,description:e?.main?.subtitle?.striped??"",images:[{url:i+(e?.social?.images?.twitter??o),width:r.twitterSummaryCard.width,height:r.twitterSummaryCard.height}]}}},Ge=e=>!e||!e?.tags||e?.tags?.length===0?"":e?.tags?.map(r=>r.name).join(", ").replaceAll('"',"'").replaceAll("`","'"),Et=e=>{const r=e?.match(/^\/(?:[^/]+\/)?([^/]+)\/([^/]+\.html)$/);return r?{slug:r[1]??"",path:r[2]??""}:{slug:"",path:""}},Nt=e=>e.replaceAll("/","").replaceAll("_","").replace(".html",""),ln={description:{attr:"name",value:"description"},robots:{attr:"name",value:"robots"},keywords:{attr:"name",value:"keywords"},news_keywords:{attr:"name",value:"news_keywords"},"openGraph.title":{attr:"property",value:"og:title"},"openGraph.description":{attr:"property",value:"og:description"},"openGraph.type":{attr:"property",value:"og:type"},"openGraph.url":{attr:"property",value:"og:url"},"openGraph.siteName":{attr:"property",value:"og:site_name"},"twitter.card":{attr:"name",value:"twitter:card"},"twitter.title":{attr:"name",value:"twitter:title"},"twitter.description":{attr:"name",value:"twitter:description"},"twitter.site":{attr:"name",value:"twitter:site"},"twitter.creator":{attr:"name",value:"twitter:creator"}},Tt=e=>{const r=[];let t=0;const s=i=>r.push(i);return e.title&&typeof e.title=="string"&&s(n.jsx("title",{children:e.title},`title-${t++}`)),Object.entries(ln).forEach(([i,c])=>{const u=i.split(".").reduce((l,d)=>l?.[d],e);u&&s(n.jsx("meta",{[c.attr]:c.value,content:String(u)},`meta-${t++}`))}),(e.openGraph?.images?Array.isArray(e.openGraph.images)?e.openGraph.images:[e.openGraph.images]:[]).forEach(i=>{i&&(typeof i=="string"?s(n.jsx("meta",{property:"og:image",content:i},`og-img-${t++}`)):(i.url&&s(n.jsx("meta",{property:"og:image",content:i.url},`og-img-${t++}`)),i.width&&s(n.jsx("meta",{property:"og:image:width",content:String(i.width)},`og-img-w-${t++}`)),i.height&&s(n.jsx("meta",{property:"og:image:height",content:String(i.height)},`og-img-h-${t++}`))))}),(e.twitter?.images?Array.isArray(e.twitter.images)?e.twitter.images:[e.twitter.images]:[]).forEach(i=>{const c=typeof i=="string"?i:i.url;c&&s(n.jsx("meta",{name:"twitter:image",content:c},`tw-img-${t++}`))}),e.alternates?.canonical&&s(n.jsx("link",{rel:"canonical",href:String(e.alternates.canonical)},`link-${t++}`)),e.manifest&&s(n.jsx("link",{rel:"manifest",href:String(e.manifest)},`link-${t++}`)),e.alternates?.types&&Object.entries(e.alternates.types).forEach(([i,c])=>{typeof c=="string"&&s(n.jsx("link",{rel:"alternate",type:i,href:c},`alt-${t++}`))}),e.icons&&[...e.icons?.icon??[],...e.icons?.other??[]].forEach(c=>{c&&s(typeof c=="string"?n.jsx("link",{rel:"icon",href:c},`icon-${t++}`):n.jsx("link",{rel:c.rel||"icon",href:c.url,...c.type&&{type:c.type},...c.sizes&&{sizes:c.sizes}},`icon-${t++}`))}),e.other&&Object.entries(e.other).forEach(([i,c])=>{c&&s(n.jsx("meta",{name:i,content:String(c)},`other-${t++}`))}),r},We=e=>{const r=e.banners.find(o=>o.key===e.name);if(!r||!r.show)return null;const t=Ce.bannersReplace(r.value||"",e.replaces),s=/<script([^>]*)>([\s\S]*?)<\/script\s*>/gi,a=[...t.matchAll(s)];return n.jsx(n.Fragment,{children:a.map((o,i)=>{const c=o[1]||"",u=o[2]?.trim()||"",l=c.match(/src=["']([^"']+)["']/i);if(l){const d=l[1];return n.jsx("script",{src:d,async:!0},i)}else return n.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:u}},i)})})},Pt=e=>{const r=e.banners.find(a=>a.key===e.name);if(!r||!r.show)return null;const s=Ce.bannersReplace(r.value||"",e.replaces).split(/(<script[\s\S]*?<\/script\s*>)/gi);return n.jsx(n.Fragment,{children:s.map((a,o)=>{const i=a.match(/<script([^>]*)>([\s\S]*?)<\/script\s*>/i);if(i){const c=i[1]||"",u=i[2]?.trim()||"",l=c.match(/src=["']([^"']+)["']/i);if(l){const d=l[1];return n.jsx("script",{src:d,async:!0},o)}else return n.jsx("script",{id:e.name,dangerouslySetInnerHTML:{__html:u}},o)}else if(a.trim())return n.jsx("div",{dangerouslySetInnerHTML:{__html:a}},o);return null})})},me=(e,r,t)=>{let s=e.siteUrl;return r.forEach((a,o)=>{o>0&&(s+=`/${a}`)}),`${s}/page/${t+1}`},pe=(e,r,t)=>{let s=e.siteUrl;return r.forEach((a,o)=>{o>0&&(s+=`/${a}`)}),`${s}/page/${t-1}`};function un(e){const r=e.length;return r>1&&e.charCodeAt(r-1)===47?e.slice(0,r-1):e}const Lt=()=>{const{PUBLIC_ASSETS_URL:e}=B.getConfig();return e&&e!=="false"&&n.jsx("link",{rel:"preconnect",href:e,crossOrigin:"anonymous"})},$t=(e,r)=>{if(!e)return{};const{PUBLIC_API_FRONT:t}=B.getConfig();return{title:e?.main?.title+" | "+r.name,robots:"index, follow, max-image-preview:large",alternates:{canonical:r.siteUrl+e?.info?.link?.url},description:e.main.description??"",news_keywords:e.main.tags,keywords:e.main.tags,openGraph:{title:e.main.title,url:e?.info?.link?.canonical,type:"article",description:e.main.description??"",images:[{url:(t??"")+e?.main.image.sizes[0]?.url,width:r.landscapeLogo.width,height:r.landscapeLogo.height}],siteName:r.name.toLocaleUpperCase()},twitter:{title:e?.main?.title,card:"summary_large_image",site:r.siteUrl,description:e?.main.description??"",images:[{url:(t??"")+e?.main.image.sizes[0]?.url,width:r.twitterSummaryCard.width,height:r.twitterSummaryCard.height}]}}},dn=e=>{let r="";if(e.params.news.match(/.*t[0-9]*.html/g)){const t=e.params.news.split("-"),s=t[t.length-1]??"",a=s.substring(1,9),o=s.substring(9,13);r=`/listas/${V.dayjs(a).format("YYYY/MM/DD")}/lista_${o}.html`}else if(e.params.news.match(/.*lb[0-9]*.html/g)){const t=e.params.news.split("-"),s=t[t.length-1]??"",a=s.substring(2,10),o=s.substring(10,14);r=`/liveblog/${V.dayjs(a).format("YYYY/MM/DD")}/liveblog_${o}.html`}else{const s=e.params.news.replace(/\.html$/g,"").split("-");Array.isArray(s)&&(r=`/contenidos/${V.dayjs(s[s.length-2]).format("YYYY/MM/DD")}/noticia_${s[s.length-1]}.html`)}return e.config.servicePrefix+r};function mn(e){const r=e.split("-"),t=r[r.length-1]?.split("."),s=t&&t[0]?t[0]:"",a=s.substring(0,2),o=s.substring(2,10),i=s.substring(10);return{path:{vy:u=>`/videos/video-youtube/${V.dayjs(o).format("YYYY/MM/DD")}/videoYouTube_${u}.lnk`,ve:u=>`/videos/video-embedded/${V.dayjs(o).format("YYYY/MM/DD")}/videoEmbedded_${u}.lnk`,vf:u=>`/videos/video-flash/${V.dayjs(o).format("YYYY/MM/DD")}/${r[0]}.${u}`}[a]?.(i)??"",op:a}}const pn=e=>{const{AssetsPrefix:r="",AssetsPath:t="src",isDev:s=!1}=e;return s?"src":r+t},Rt={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"immediate"}]},kt={prerender:[{where:{and:[{href_matches:"/*(-|-t|-lb)([0-9]{8})(-|)([0-9]{4,6}).html"},{not:{selector_matches:"[rel~=nofollow]"}}]},eagerness:"immediate"},{eagerness:"immediate",urls:["/"]}]},hn={Home:Rt,Common:kt},It=({active:e,type:r,customSpeculation:t})=>e&&n.jsx("script",{type:"speculationrules",dangerouslySetInnerHTML:{__html:JSON.stringify(t??hn[r])}}),Ee=async(e,r,t)=>{if(!t)return;const s=r==="/news-breadcrumb"?{...e,prefixtag:"/tema"}:e;return t.get(`/schemas${r}`,{params:s}).catch(a=>{console.log(`[/schemas${r}] Error: ${a.message}`)})},fn={autor:"autor",seccion:"seccion",tema:"claves","ultimas-noticias":"seccion"},Ot=async({config:e,axiosApi:r,pathname:t,ROUTE:s})=>{let a=[];const o=t==="/"||t==="/index.html"?void 0:Ft(zt[s]({pathname:t,config:e})),i=fn[s]??void 0,c={newstype:e.newsType,publication:"35",...o&&i?{query:`${i}:('${o}')`}:{}};try{const u=await Ee(c,"/news-list-summary",r);u?.data?.data?a=u.data.data:console.warn("getSchemas responded but did not contain expected data:",u)}catch(u){console.log("Error fetching schemas:",u)}return Object.keys(a).length>0&&n.jsx("script",{id:"webSiteItemListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}})};function At(e){const{PUBLIC_ASSETS_URL:r}=B.getConfig();if(!r||r==="false")return e;const t=r.replace(/\/+$/,""),s=/https?:\/\/[^/\s]+\/(arte|__export)\//g;return e.replace(s,(a,o)=>`${t}/${o}/`)}const Mt=async({realPath:e,config:r,BASE_URL:t,axiosApi:s})=>{let a=[];try{const o=r.socialBlockLogo?.url?new URL(r.socialBlockLogo.url).pathname:void 0,i=r.landscapeLogo?.url?new URL(r.landscapeLogo.url).pathname:void 0,c={path:e,image:i,logo:o,url:r.siteUrl,name:r.name,logow:r.socialBlockLogo?.width,logoh:r.socialBlockLogo?.height,authorurl:t+"/autor/"},u=e.split("/")[1],l=u=="liveblogs"||u=="liveblog"?["/news","/news-breadcrumb","/news-liveblog"]:["/news","/news-breadcrumb"];a=(await Promise.all(l.map(async m=>await Ee(c,m,s)))).map(m=>m?.data?.data??[])}catch(o){console.log("Error fetching schemas:",o)}return a.map((o,i)=>n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(o))}},i))},Ut=({config:e,socials:r})=>{const t={"@context":"https://schema.org","@type":"NewsMediaOrganization",name:e.name,description:e.description,email:e.email,url:e.siteUrl,logo:e.squareLogo.url,sameAs:Object.keys(r).filter(s=>r[s]?.show).map(s=>r[s]?.url)};return(!e.description||e.description==="")&&delete t.description,n.jsx("script",{id:"WebsiteOrgListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})},Dt=({config:e})=>{const r={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:e.siteUrl,potentialAction:{"@type":"SearchAction",target:e.siteUrl+"/buscar?query={search_term_string}","query-input":"required name=search_term_string"}};return n.jsx("script",{id:"WebsiteListSchema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})},qt=async({realPath:e,config:r,axiosApi:t})=>{try{const s={path:e,image:r.landscapeLogo?.url?new URL(r.landscapeLogo.url).pathname:void 0,logo:r.socialBlockLogo?.url?new URL(r.socialBlockLogo.url).pathname:void 0,url:r.siteUrl,name:r.name,logow:r.socialBlockLogo?.width,logoh:r.socialBlockLogo?.height,authorurl:`${r.siteUrl}/autor/`},o=(await Ee(s,"/videos",t))?.data.data;return o?n.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:At(JSON.stringify(o))}}):void 0}catch(s){return console.error("Error fetching video schemas:",s),null}},Bt=({config:e})=>{const r=`@font-face {
2
3
  font-family: '${e.fontName}';
3
4
  font-style: normal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"