sass-template-common 0.13.2 → 0.13.3

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.
@@ -26,7 +26,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
26
26
  font-display: ${a};
27
27
  src: url("${t}") format('${n}');
28
28
  unicode-range: ${vu};
29
- }`,Eu=e=>{try{return new URL(e).origin}catch{return null}},xu=({config:e,fontUrl:t,isS3:a})=>{const n=e.fontDisplay??"swap",r=e.fontFormat??"woff2",o=Eu(t);return s.jsxs(s.Fragment,{children:[o&&!a&&s.jsx("link",{rel:"preconnect",href:o,crossOrigin:"anonymous"}),s.jsx("link",{rel:"preload",as:"font",href:t,type:`font/${r}`,crossOrigin:"anonymous",fetchPriority:"high"}),s.jsx("style",{dangerouslySetInnerHTML:{__html:Nu(e,t,n,r)}})]})},ko=({config:e})=>{const t=e.fontDisplay??"swap",{url:a,isS3:n}=Su(e);return a?s.jsx(xu,{config:e,fontUrl:a,isS3:n}):To(e.googleFontFamily)?s.jsxs(s.Fragment,{children:[s.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),s.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),s.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${t}`})]}):null},Da={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]":Ca(e.currentNew?.keywords),"[url_replace]":tr(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]":""})},Io=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("/","")},Ne=e=>{const a=e.replace(/^\/|\/$/g,"").split("/"),n=a.indexOf("page");return n>0?`${a[n-1]??""}`:`${a[a.length-1]??""}`},Lo={404:()=>"404",home:()=>"home",slug:e=>Ne(e.pathname),news:e=>er(e.pathname)?.slug,seccion:e=>Ne(e.pathname),tema:e=>Ne(e.pathname),pages:e=>Ne(e.pathname),auth:e=>Ne(e.pathname),buscar:e=>Ne(e.pathname),"ultimas-noticias":e=>Ne(e.pathname),anuncia:e=>Ne(e.pathname),contacto:e=>Ne(e.pathname),autor:e=>Ne(e.pathname),video:e=>Ne(e.pathname),videos:e=>Ne(e.pathname)},Ut=e=>{const t=e.split("/"),a=t[t.length-1]??"1";return Number(a)>0?Number(a):1},Tu=(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},Uo=({gpt:e=!1,googleAds:t=!1,syndication:a=!1,adsense:n=!1})=>s.jsxs(s.Fragment,{children:[e&&s.jsx("link",{rel:"preconnect",href:"https://securepubads.g.doubleclick.net",crossOrigin:"anonymous"}),t&&s.jsx("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net",crossOrigin:"anonymous"}),a&&s.jsx("link",{rel:"preconnect",href:"https://tpc.googlesyndication.com",crossOrigin:"anonymous"}),n&&s.jsx("link",{rel:"dns-prefetch",href:"https://pagead2.googlesyndication.com"})]}),qa=Symbol("bucket-retry-exhausted");class ku{exclude="keywords,gallery,related,relatedexternal,external,customfields";config={};imgSizes={};configVersion=".config";axiosApi=void 0;customMainImagesSize=void 0;contract;constructor(t,a,n,r,o,i){this.config=t,this.imgSizes=a,this.axiosApi=n,this.customMainImagesSize=o,this.contract=Ft(i).contract,t.configVersion&&(this.configVersion=t.configVersion),r&&(this.exclude=r)}async getNewsListZone(t){if(this.axiosApi)return this.axiosApi.get("/news-list-zone",{params:t}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),console.log(a),Promise.reject(a)))}async getOutstandingBlock(t){if(!this.axiosApi)return;const a=this.axiosApi,n=()=>a.get("/config/blocks",{params:{...t,path:this.config.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(o=>(console.log(`[/config/blocks] Error: ${o.message}`),console.log(o),Promise.reject(o))),r=L().BUCKET_ORIGIN;if(r?.destacado){const o=L().PUBLIC_IS_OFFLINE==="true",i={data:{data:[]}},l=Je(r,this.config.servicePrefix,"bloques","destacado",o),c=r.referer??ht,d=`origin:destacado:bucket:${l}`,u=await ut(d,()=>Nt(()=>Lt(r.proxyUrl??r.url,c).get(l),qa,{label:"bucket:destacado",endpoint:l,params:t}),{shouldCache:f=>f!==qa});return u===qa?(Qt("destacado",l),i):u}return n()}getNewsListZoneWrapper(t,a,n,r){return this.getNewsListZone({zone:a||"destacadas",size:n,onmainpage:t?"section":void 0,section:t,newstype:this.config.newsType,exclude:this.exclude,imagesizes:r})}async getNewsDestacadoDiario(t,a){try{const n=await this.getNewsListZoneWrapper(t,a,1,this.customMainImagesSize||`${this.contract.note.gallery}${this.contract.note.itemsListPrimary}`),r=await this.getNewsListZoneWrapper(t,a,5);return!n?.data?.data||!r?.data?.data?[]:(n.data.data=[...n.data.data,...r.data.data.slice(1)],n)}catch(n){return console.log(`[MainComponentServices.getNewsDestacadoDiario] Error: ${n?.message}`),[]}}async getNewsDestacadoDiarioImage(t,a){try{const n=await this.getNewsListZoneWrapper(t,a,1,this.customMainImagesSize||this.contract.note.itemsListPrimary),r=await this.getNewsListZoneWrapper(t,a,5,this.contract.note.featuredDiarioImageThumb);return!n?.data?.data||!r?.data?.data?[]:(n.data.data=[...n.data.data,...r.data.data.slice(1)],n)}catch(n){return console.log(`[MainComponentServices.getNewsDestacadoDiarioImage] Error: ${n?.message}`),[]}}async getNewsAltoImpacto(t,a){try{return await this.getNewsListZoneWrapper(t,a,1,`${this.contract.note.gallery}${this.contract.note.featuredSuperSecondary}`)}catch(n){console.log(`[MainComponentServices.getNewsAltoImpacto] Error: ${n?.message}`);return}}async getNewsDestacadoVertical(t,a){try{const n=await this.getNewsListZoneWrapper(t,a,1,`${this.contract.note.featuredVerticalPrimary}${this.contract.note.itemsListPrimary}`),r=await this.getNewsListZoneWrapper(t,a,3,`${this.contract.note.featuredVerticalPrimary}${this.contract.note.featuredVerticalSecondary}`);return!n?.data?.data||!r?.data?.data?[]:(n.data.data=[...n.data.data,...r.data.data.slice(1)],n)}catch(n){return console.log(`[MainComponentServices.getNewsDestacadoVertical] Error: ${n?.message}`),[]}}async getNewsDestacadoHorizontal(t,a){try{const n=await this.getNewsListZoneWrapper(t,a,1,`${this.contract.note.featuredHorizontalPrimary}${this.contract.note.itemsListPrimary}`),r=await this.getNewsListZoneWrapper(t,a,3,this.contract.note.featuredHorizontalSecondary);return!n?.data?.data||!r?.data?.data?[]:(n.data.data=[...n.data.data,...r.data.data.slice(1)],n)}catch(n){return console.log(`[MainComponentServices.getNewsDestacadoHorizontal] Error: ${n?.message}`),[]}}GetByOptions={Diario:(t,a)=>this.getNewsDestacadoDiario(t,a),"Diario con imagen":(t,a)=>this.getNewsDestacadoDiarioImage(t,a),"Diario en vivo":(t,a)=>this.getNewsDestacadoDiarioImage(t,a),Super:(t,a)=>this.getNewsAltoImpacto(t,a),"3 notas verticales":(t,a)=>this.getNewsDestacadoVertical(t,a),"3 notas horizontales":(t,a)=>this.getNewsDestacadoHorizontal(t,a)};async getMainBlockData(t,a,n){try{const o=(await this.getOutstandingBlock(t))?.data?.data?.[0]?.value||"";if(!o||!Object.keys(this.GetByOptions).includes(o))return{section:o,news:[]};const i=await this.GetByOptions[o](a,n);return{section:o,news:i?.data??[]}}catch(r){return console.log(`[MainComponentServices.getMainBlockData] Error: ${r?.message}`),{section:"",news:[]}}}}const Pt=Symbol("bucket-retry-exhausted");function Po(e){return Array.isArray(e?.data)?{...e,data:e.data.map(t=>t&&{...t,preview:yt(t.preview)})}:e}function qe(e,t,a){return e.get(t,{params:a}).then(n=>(n.data=Po(n.data),n)).catch(n=>(console.log(`[${t}] Error: ${n.message}`),Promise.reject(n)))}class Ze{constructor(t){this.props=t,this.contract=Ft(t?.imageSizes).contract,t?.config?.configVersion&&(this.configVersion=t.config.configVersion),t?.exclude&&(this.exclude=t.exclude)}configVersion=".config";exclude="keywords,gallery,related,relatedexternal,external,customfields";contract;generateTokenOffline=async t=>{const{PUBLIC_IS_OFFLINE:a,PUBLIC_USERNAME_OFFLINE:n,PUBLIC_PASSWORD_OFFLINE:r}=L();if(a==="true")try{return(await this.props?.axiosApi.get("/auth",{params:{username:n,password:r,browserid:t}}).catch(i=>(console.log(`[/auth]Error: ${i.message}`),Promise.reject(i))))?.data.data[0]?.token}catch(o){console.log(`[/auth] Error: ${o.message}`),console.log(o)}};getEntitySection=t=>this.props?.axiosApi.get("/entity-section",{params:t}).catch(a=>(console.log(`[/entity-section] Error: ${a.message}`),Promise.reject(a)));getMainMenu=async t=>{const a=L().BUCKET_ORIGIN,n={data:{data:[]}},r=()=>this.props.axiosApi.get("/config/menu",{params:t}).catch(i=>(console.log(`[/config/menu] Error: ${i.message}`),ge.add({service:"CommonServices.getMainMenu",endpoint:"/config/menu",method:"GET",params:t,message:i.message,status:i.response?.status,layer:"axios-service"}),Promise.reject(i)));if(a?.menu){const i=L().PUBLIC_IS_OFFLINE==="true",l=Ts(t.path),c=Je(a,this.props?.config?.servicePrefix,"menu",l,i),d=a.referer??ht,u=`origin:menu:bucket:${c}`,f=await ut(u,()=>Nt(()=>Lt(a.proxyUrl??a.url,d).get(c),Pt,{label:"bucket:menu",endpoint:c,params:t}),{shouldCache:h=>h!==Pt,staleOnError:!0});return f===Pt?(Qt("menu",c),n):f}const o=`origin:menu:api:${t.path??""}`;return ut(o,()=>r(),{staleOnError:!0}).catch(()=>n)};getNewsListZone=t=>qe(this.props.axiosApi,"/news-list-zone",t);getNewsListZoneSection=t=>qe(this.props.axiosApi,"/news-list-zone-section",t);getNewsList=t=>qe(this.props.axiosApi,"/news-list",t);getNewsListTag=t=>qe(this.props.axiosApi,"/news-list-tag",t);getNewsListSection=t=>qe(this.props.axiosApi,"/news-list-section",t);getNewsListAvanced=t=>qe(this.props.axiosApi,"/news-list-advanced",t);getNewsListTags=t=>qe(this.props.axiosApi,"/news-list-tag",t);getNewsListTagEntity=t=>qe(this.props.axiosApi,"/news-list-tag-entity",t);getNewsListTagLite=t=>qe(this.props.axiosApi,"/news-list-tag-lite",t);getNewsListAutor=t=>qe(this.props.axiosApi,"/news-list-author",t);getNewsSearch=t=>this.props?.axiosApi.get("/news-list-search",{params:t}).catch(a=>(console.log(`[/news-list-search] Error: ${a.message}`),Promise.reject(a)));getAutorInfo=t=>this.props?.axiosApi.get("/authors",{params:t}).catch(a=>(console.log(`[/authors] Error: ${a.message}`),Promise.reject(a)));getvideoListAdvanced=t=>this.props?.axiosApi.get("/videos-list-advanced",{params:t}).catch(a=>(console.log(`[/videos-list-advanced] Error: ${a.message}`),Promise.reject(a)));getVideos=t=>this.props?.axiosApi.get("/videos",{params:t}).catch(a=>(console.log(`[/videos] Error: ${a.message}`),Promise.reject(a)));getVideosList=t=>this.props?.axiosApi.get("/videos-list",{params:t}).catch(a=>(console.log(`[/videos-list] Error: ${a.message}`),Promise.reject(a)));getBanners=async t=>{const a=L().BUCKET_ORIGIN,n={data:{data:[]}},r=()=>{const c=t.path?t.path:`/${this.configVersion}/banners.html`;return this.props.axiosApi.get("/config/banners",{params:{...t,path:this.props?.config?.servicePrefix+c}}).catch(d=>(console.log(`[/config/banners] Error: ${d.message}`),ge.add({service:"CommonServices.getBanners",endpoint:"/config/banners",method:"GET",params:t,message:d.message,status:d.response?.status,layer:"axios-service"}),Promise.reject(d)))};if(a?.banners){const c=L().PUBLIC_IS_OFFLINE==="true",d=(t.template??"").toLowerCase(),u=Je(a,this.props?.config?.servicePrefix,"banners",d,c),f=a.referer??ht,h=`origin:banners:bucket:${u}`,p=await ut(h,()=>Nt(()=>Lt(a.proxyUrl??a.url,f).get(u),Pt,{label:"bucket:banners",endpoint:u,params:t}),{shouldCache:m=>m!==Pt,staleOnError:!0});return p===Pt?(Qt("banners",u),n):p}const o=t.path?t.path:`/${this.configVersion}/banners.html`,l=`origin:banners:api:${`${this.props?.config?.servicePrefix??""}${o}`}:${t.template??""}`;return ut(l,()=>r(),{staleOnError:!0}).catch(()=>n)};getPages=t=>this.props?.axiosApi.get("/config/pages",{params:t}).catch(a=>(console.log(`[/config/pages] Error: ${a.message}`),Promise.reject(a)));getRankingS3=async(t,a={Referer:ht})=>{if(!t||t==="")return{data:[]};const n=await Nt(()=>re.get(t,{headers:a}),{data:[]},{label:"bucket:ranking",endpoint:t});return $n(n)};getNews=t=>this.props?.axiosApi.get("/news",{params:{...t,exclude:`${t.exclude},pixel`}}).then(a=>(a.data=Po(a.data),a)).catch(a=>(console.log(`[/news] Error: ${a.message}`),Promise.reject(a)));getNewsMultimedia=t=>this.props?.axiosApi.get("/news-items-multimedia",{params:t}).catch(a=>(console.log(`[/news-items-multimedia] Error: ${a.message}`),Promise.reject(a)));getNewsItemsList=t=>this.props?.axiosApi.get("/news-items-list",{params:t}).catch(a=>(console.log(`[/news-items-list] Error: ${a.message}`),Promise.reject(a)));getNewsListPath=t=>this.props?.axiosApi.get("/news-list-paths",{params:t}).catch(a=>(console.log(`[/news-list-paths] Error: ${a.message}`),Promise.reject(a)));getNewsSchemasImages=t=>this.props?.axiosApi.get("/schemas/news-images",{params:t}).catch(a=>(console.log(`[/schemas/news-images] Error: ${a.message}`),Promise.reject(a)));getNewsItemsRelated=(t,a)=>this.props?.axiosApi.get("/news-items-related",{params:{path:t,imagesizes:this.contract.note.listStandard,exclude:this.exclude,...a}}).catch(n=>(console.log(`[/news-items-related] Error: ${n.message}`),{data:rr()}));sendEmail=t=>this.props?.axiosApi.post("/send/email",t,{headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:"JSESSIONID=21FDC2B9C2782893562BC53D52981A0B"}}).catch(a=>(console.log(`[/send/email] Error: ${a.message}`),Promise.reject(a)));searchData=async t=>{const a=await this.getNewsSearch(t);return a&&a?.data.data&&a?.data.data.length>0?{search:a}:{lastNews:await this.getNewsList(t)}};commonNewsServices=async(t,a={getNews:`${this.contract.note.detailMain}${this.contract.note.detailSecondary}${this.contract.note.relatedThumb}`,getNewsItemsList:`${this.contract.note.itemsListPrimary}${this.contract.note.detailSecondary}`,getAutorInfo:`${this.contract.author.avatar}`,getNewsItemsRelated:`${this.contract.note.relatedPrimary}${this.contract.note.relatedThumb}`},n={getNewsItemsRelated:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel",getAutorInfo:"groups"})=>{const[r,o]=await Promise.allSettled([this.getNews({imagesizes:a.getNews,path:t}),this.getNewsItemsList({path:t,imagesizes:a.getNewsItemsList})]),i=rt(r)?.data,l=i?.[0];let c=[];l?.authors?.length===1&&l?.config?.showauthor&&l.authors[0]?.internaluser&&(c=(await this.getAutorInfo({user:l.authors[0].name,exclude:n.getAutorInfo,imagesizes:a.getAutorInfo}))?.data.data??[]);const d=ps(l),f=(rt(o)?.data??[])[0]?.list?.items?.map(w=>ps(w)),h=[];f?.forEach(w=>{w&&w.length>0&&w.forEach(A=>{A.forEach(v=>{const S=this.getNews({path:v.replaceAll("|","/"),imagesizes:a.getNewsItemsRelated,exclude:n.getNewsItemsRelated});S&&h.push(S)})})});const m=(await Promise.allSettled([...h])).map(w=>rt(w)?.data),g=await Kn(d,this.getNews,`${this.contract.note.relatedPrimary}${this.contract.note.relatedThumb}`);let b=[];try{b=(await this.getNewsSchemasImages({path:t}))?.data?.data??[]}catch(w){console.warn("getNewsSchemasImages failed:",w),b=[]}return{news:i??[],autor:c,newsRelatedResponses:g,itemList:rt(o)?.data??[],newsRelatedListResponses:m,schemasImages:b??[]}}}class Oo extends Ze{MULTIPUBLICATION_FETCHES;PUBLIC_PUBLICATION_ID;IS_MULTIPUBLICATION;constructor(t){super(t);const{MULTIPUBLICATION_FETCHES:a,PUBLIC_PUBLICATION_ID:n}=L();this.MULTIPUBLICATION_FETCHES=a,this.PUBLIC_PUBLICATION_ID=n,this.IS_MULTIPUBLICATION=a!=null&&a!==""||n!=null&&n!==""}getBlockSass=async t=>{const a=await this.props?.axiosApi.get("/config/blocks-saas",{params:{...t,exclude:this.exclude,path:this.props?.config?.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(n=>(console.log(`[/config/blocks-saas] Error: ${n.message}`),Promise.reject(n)));return this.resolveSlotContent(a?.data?.data)};resolveSlotContent=async t=>{if(!t||t.length===0||!t[0]?.value||!t[0].block||!this.props?.imgSizes[t[0].block])return{blockSass:t};const a=t[0],n=a?.value.split("="),r=n[0]??"",o=n[1]??"",i=a?.block,l={videos:async()=>{const c={size:this.props?.imgSizes[i].size??5,imagesizes:`${this.contract.video.lg}${this.contract.video.md}`,query:"Keywords:("+(o??"videohome")+")"};this.IS_MULTIPUBLICATION&&(c.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const d=await this.getvideoListAdvanced(c);return{blockSass:t,content:d?d.data:void 0}}catch(d){return console.log(`[/videos-list-advanced] Error: ${d?.message}`),{blockSass:t,content:void 0}}},tag:async()=>{const{USE_QUOTE_IN_QUERY_TAG_HOME:c}=L(),d={query:c?'claves:("'+o+'")':"claves:("+o+")",size:this.props?.imgSizes[i]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[i]?.imageSizes};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const u=await this.getNewsListAvanced(d);return{blockSass:t,content:u?u.data:void 0}}catch(u){return console.log(`[/news-list-advanced] Error: ${u?.message}`),{blockSass:t,content:void 0}}},seccion:async()=>{const c={query:`seccion:(${o})`,size:this.props?.imgSizes[i]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[i]?.imageSizes};this.IS_MULTIPUBLICATION&&(c.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const d=await this.getNewsListAvanced(c);return{blockSass:t,content:d?d.data:void 0}}catch(d){return console.log(`[/news-list-advanced] Error: ${d?.message}`),{blockSass:t,content:void 0}}}};if(r in l){const c=l[r];return await c()}return{blockSass:t}}}class Iu{issuuApi="https://api.issuu.com/v2";api=void 0;q="";constructor(t){this.q=t.q,this.api=re.create({baseURL:t.issuuApi?t.issuuApi:this.issuuApi,params:{state:t.state?t.state:"PUBLISHED",size:t.size?t.size:16,q:t.q},headers:{Authorization:`Bearer ${t.token}`}})}async getListIssuuPublications({page:t=1}){try{return await this.api?.get("/publications",{params:{q:this.q,page:t}})}catch(a){throw a}}async getListIssuuPublicationBySlug(t){try{return await this.api?.get(`/publications/${t}/embed`)}catch(a){throw a}}}const Ga=Symbol("bucket-retry-exhausted"),Lu=async(e,t)=>{const a=L().BUCKET_ORIGIN;if(!a)return{};const n=L().PUBLIC_IS_OFFLINE==="true",r=Je(a,t.servicePrefix,"bloques","modulos-dinamicos",n),o=a.referer??ht,i=`origin:slots:bucket:${r}`,l=await ut(i,()=>Nt(()=>Lt(a.proxyUrl??a.url,o).get(r),Ga,{label:"bucket:slots",endpoint:r,params:{}}),{shouldCache:u=>u!==Ga});if(l===Ga)return Qt("slots",r),{};const c=l.data?.data??[],d={};return await Promise.all(c.map(async u=>{u?.key&&(d[u.key]=await e.resolveSlotContent([u]))})),d},Uu=async(e,t,a,n,r,o,i)=>{const l=new Oo({config:t,imgSizes:a,imageSizes:n,axiosApi:e,exclude:i}),c=async()=>{const d=[];for(let h=1;h<=r;h++)for(let p=1;p<=o;p++)d.push({func:l.getBlockSass,slot_id:h+"_"+p});const u=await Promise.allSettled([...d.map(h=>h.func({template:"Home_"+h.slot_id}))]),f={};for(let h=0;h<u.length;h++){const p=Mn(u[h]),m="Home_"+(Math.floor(h/o)+1)+"_"+(Math.floor(h%o)+1);p&&(f[m]={...p})}return f};return L().BUCKET_ORIGIN?.slots?Lu(l,t):c()},Pu=e=>{const t=rt(e);return t&&t.data?t.data:t},Ou=async e=>{const t=await Promise.allSettled(Object.values(e).map(r=>{const o=r.promise??Promise.resolve(void 0);return o.catch(()=>{}),o})),a=Object.keys(e),n={};for(const r in e){const o=e[r];if(!o)continue;const i=o.custom_extractData??Pu;n[r]=i(t[a.indexOf(r)])}return n},fe=(e,t,a=404)=>({title:t?.name?`Error ${a} | ${t.name}`:`Error ${a}`}),Bo=(e="")=>e.replace(/-/g," ").replace(/^./,t=>t.toUpperCase()),Jt=e=>{console.warn(`[metadata:fallback] ruta="${e}" — metaSource ausente, se fetcheó en SSR. Falta drilling en el repo consumidor.`)},Zt=e=>e.includes("/page/")?e.replace(/\/page\/\d+$/,""):e,Ee=e=>{try{const t=de();if(!t)return e;const a=new URL(e),n=a.pathname;return n===t||n.startsWith(`${t}/`)?e:a.origin+t+e.slice(a.origin.length)}catch{return e}},Ge=(e,t,a,n)=>{const r=Ee(t),o={...a?{title:a}:{},...n?{description:n}:{}};return{alternates:{...e.alternates,canonical:r},openGraph:{...e.openGraph,url:r,...o},twitter:{...e.twitter,url:r,...o}}},Mo={404:e=>{const{meta:t,config:a,statusCode:n=404}=e;return fe(t,a,n===500?500:404)},home:e=>{const{meta:t,config:a}=e;return{...t,...Ge(t,a.siteUrl,t.title)}},slug:e=>{const{meta:t,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Bo(n)}`;return{...t,title:o,...Ge(t,a.siteUrl+r,o)}},auth:e=>{const{meta:t,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Bo(n)}`;return{...t,title:o,...Ge(t,a.siteUrl+r,o)}},news:e=>{const{meta:t,config:a,currentNew:n,schemasImages:r}=e;if(!n)return fe(t,a);const o=Rn(t,n,a,r);return o?{...t,...o}:fe(t,a)},seccion:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o,metaSource:i}=e,{PUBLIC_LNG:l}=L(),d=Zt(n).split("/"),u=[],f=Ut(n),h=Number(a.newsListLimit)||0,p=l==="en";let m=i?.sectionName,g=i?.hasNextPage;if(m===void 0||g===void 0){Jt("seccion");const A=new Ze({config:a,axiosApi:o});try{let v,S;const y=await A.getNewsListSection({section:r,size:h,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:f});if(!y||(v=y.data.data,S=!(v.length<h),!v?.length))return fe(t,a);m=v[0].info.section?.name,g=S}catch(v){return console.error(v),fe(t,a,500)}}g&&u.push({rel:"next",url:Et(a,d,f)}),f>1&&u.push({rel:"prev",url:xt(a,d,f)});const b=p?`Latest News from ${m} | ${a.name}`:`Últimas Noticias de ${m} | ${a.name}`,w=p?`All the latest news from ${m} on ${a.name}`:`Todas las últimas noticias de ${m} en ${a.name}`;return{...t,title:b,description:w,alternates:{...t.alternates,canonical:Ee(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:u},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:b,description:w,type:"website",url:Ee(`${a.siteUrl}${n}`),locale:t.openGraph.locale},twitter:{...t.twitter,card:"summary_large_image",title:b,description:w,site:t.twitter.site,domain:new URL(a.siteUrl).hostname,url:Ee(`${a.siteUrl}${n}`)}}},tema:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o,metaSource:i}=e,c=Zt(n).split("/"),d=[],u=Ut(n),f=Number(a.newsListLimit)||0,{PUBLIC_TAG_TYPE:h,PUBLIC_LNG:p}=L(),m=p==="en";let g=i?.tagName,b=i?.hasNextPage;if(g===void 0||b===void 0){Jt("tema");const v=new Ze({config:a,axiosApi:o}),S=/([t][0-9]{4})\w+/.exec(r||""),y=S&&S?.length>0?S[0].replace("t",""):"";try{const N=await v.getNewsListTags({tagid:y,size:f,tagtype:Number(h),newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:u});if(!N)return fe(t,a);const k=N.data.entity;if(!k)return fe(t,a);g=k.name,b=!(N.data.data?.length<f)}catch(N){return console.error(N),fe(t,a,500)}}b&&d.push({rel:"next",url:Et(a,c,u)}),u>1&&d.push({rel:"prev",url:xt(a,c,u)});const w=m?`Latest news about ${g} | ${a.name}`:`Últimas noticias de ${g} | ${a.name}`,A=m?`The latest news about ${g} on ${a.name}`:`Las últimas noticias sobre ${g} en ${a.name}`;return{...t,title:w,description:A,alternates:{...t.alternates,canonical:Ee(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:w,description:A,type:"website",url:Ee(`${a.siteUrl}${n}`),locale:t.openGraph.locale},twitter:{...t.twitter,card:"summary_large_image",title:w,description:A,site:t.twitter.site,domain:new URL(a.siteUrl).hostname,url:Ee(`${a.siteUrl}${n}`)}}},"ultimas-noticias":async e=>{const{meta:t,config:a,pathname:n,texts:r,axiosApi:o,metaSource:i}=e,c=Zt(n).split("/"),d=[],u=Ut(n),f=Number(a.newsListLimit)||0,h=`${a.name} | ${r.lastNotesTitle}`,p={...t,title:h,...Ge(t,a.siteUrl+"/"+a.paths["ultimas-noticias"],h)};let m=i?.hasNextPage;if(m===void 0){if(Jt("ultimas-noticias"),!o)return p;const g=new Ze({config:a,axiosApi:o});try{const b=await g.getNewsList({size:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:u});if(!b)return p;m=!(b.data.data.length<f)}catch(b){return console.error(b),p}}return m&&d.push({rel:"next",url:Et(a,c,u)}),u>1&&d.push({rel:"prev",url:xt(a,c,u)}),{...t,title:h,...Ge(t,a.siteUrl+n,h),manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}},video:async e=>{const{meta:t,config:a,internalPath:n,axiosApi:r}=e,o=new Ze({config:a,axiosApi:r});try{const i=await o.getVideos({imagesizes:o.contract.og.social,path:n});return i?.data?.data?.length?{...t,...cr(t,i.data.data[0],a)??{}}:fe(t,a)}catch(i){return console.error("metadata (video) error:",i),fe(t,a,500)}},videos:async e=>{const{meta:t,config:a,pathname:n,axiosApi:r,metaSource:o}=e,l=Zt(n).split("/"),c=[],d=Ut(n),u=Number(a.newsListLimit)||0;let f=o?.hasNextPage;if(f===void 0){Jt("videos");const p=new Ze({config:a,axiosApi:r});try{const m=await p.getvideoListAdvanced({size:u,query:"Category:(videohome OR destacadoseccion OR seccion)",page:Number(d)});if(!m)return fe(t,a);f=!(m.data.data.length<u)}catch(m){return console.error(m),fe(t,a,500)}}f&&c.push({rel:"next",url:Et(a,l,d)}),d>1&&c.push({rel:"prev",url:xt(a,l,d)});const h="Videos | "+a.name;return{...t,title:h,...Ge(t,a.siteUrl+n,h),manifest:a.manifest,icons:{...a.icons,other:c},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}},pages:async(e,t)=>{const{meta:a,config:n,pathname:r,slug:o,axiosApi:i}=e,l=new Ze({config:n,axiosApi:i});try{const c=await l.getPages({path:t||n.servicePrefix+`/pages/${o}`});if(!c)return fe(a,n);const d=c.data.data[0]?.info.title??"",u=`${n.name} | ${d}`;return{...a,title:u,...Ge(a,n.siteUrl+r,u)}}catch(c){return console.error(c),fe(a,n,500)}},contacto:e=>{const{meta:t,config:a,pathname:n}=e,r=L().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Contact":"Contacto"}`;return{...t,title:o,...Ge(t,a.siteUrl+n,o)}},anuncia:e=>{const{meta:t,config:a,pathname:n}=e,r=L().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Advertise":"Anuncia"}`;return{...t,title:o,...Ge(t,a.siteUrl+n,o)}},buscar:e=>{const{meta:t,config:a,pathname:n,query:r,texts:o}=e;if(r&&r.trim()!==""){const i=`${a.name} | ${`${o.resultsOfPrefix}'${r}'`}`;return{...t,title:i,alternates:{...t.alternates,canonical:Ee(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...t.openGraph,title:i,type:"website",url:Ee(`${a.siteUrl}${n}${r?"?query="+r:""}`)},twitter:{...t.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:Ee(`${a.siteUrl}${n}${r?"?query="+r:""}`)}}}else{const i=`${a.name} | ${o.searchKeyWord}`;return{...t,title:i,alternates:{...t.alternates,canonical:Ee(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...t.openGraph,title:i,type:"website",url:Ee(`${a.siteUrl}${n}`)},twitter:{...t.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:Ee(`${a.siteUrl}${n}`)}}}},autor:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o,metaSource:i}=e,c=Zt(n).split("/"),d=[],u=Ut(n),f=L().PUBLIC_LNG==="en",h=Number(a.newsListLimit)||0;let p=i?.fullname,m=i?.hasNextPage;if(p===void 0||m===void 0){Jt("autor");const w=new Ze({config:a,axiosApi:o});try{const A=await w.getAutorInfo({user:r,exclude:"groups",imagesizes:w.contract.author.avatar}),v=await w.getNewsListAutor({size:h,user:r,page:u,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",imagesizes:w.contract.note.listStandard});if(!v)return fe(t,a);m=!(v.data.data.length<h),p=A?.data.data[0]?.info.fullname}catch(A){return console.error(A),fe(t,a,500)}}m&&d.push({rel:"next",url:Et(a,c,u)}),u>1&&d.push({rel:"prev",url:xt(a,c,u)});const g=f?`Latest News from ${p} | ${a.name}`:`Últimas Noticias de ${p} | ${a.name}`,b=f?`All the latest news from ${p} on ${a.name}`:`Todas las últimas noticias de ${p} en ${a.name}`;return{...t,title:g,description:b,...Ge(t,a.siteUrl+n,g,b),manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}},Bu=({autor:e,listAutor:t,config:a})=>{const n=t?.[0]??null,{DATE_TIMEZONE:r="America/Mexico_City",PUBLIC_ASSETS_URL:o,PUBLIC_LNG:i}=L(),l=i==="en",c=r,d=n?.info?.date?.modified?Ie(n.info.date.modified,c):void 0,u=e.addtional?.USER_JOBSTART?Ie(e.addtional.USER_JOBSTART,c):void 0,f=o&&o!=="false"?o:"",h=e.addtional,p=h?.USER_USERFB||h?.USER_PAGE_FACEBOOK||h?.USER_FACEBOOK_FAN_PAGE,m=h?.USER_USERTWT||h?.USER_PAGE_TWITTER,g=h?.USER_USERIG||h?.USER_PAGE_INSTAGRAM,b=h?.USER_USERLIN||h?.USER_PAGE_LINKEDIN,w=h?.USER_PAGE_TIKTOK,A=h?.USER_PAGE_YOUTUBE,v=h?.USER_PAGE_PINTEREST,S=l?h?.USER_POSITION_EN||"":h?.USER_JOBTITLE||h?.USER_POSITION||"",y=l?h?.USER_DESCRIPCION_EN||h?.USER_MIBIO_EN||"":h?.USER_DESCRIPCION||h?.USER_MIBIO||"",N=e?.addtional?.USER_SHOWEMAIL===!0||h?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",k=de(),O={"@context":"https://schema.org","@type":"ProfilePage",mainEntity:{"@type":"Person",name:e.info.fullname??e.info.name,alternateName:e.info.nickname?e.info.nickname:e.info.name,identifier:e.info.id,description:ho(y),image:e.info.image?e.info.image.sizes.map(($,q)=>q===0&&e.info.image.sizes.length!==1?null:f+$.url).filter(Boolean):[],sameAs:[p,g,b,m,w,A,v].filter(Boolean),jobTitle:S,url:a.siteUrl+k+(a.paths.autor!==""?`/${a.paths.autor}/`:"/")+e.info.name}};return u&&(O.dateCreated=u),d&&(O.dateModified=d),N&&(O.mainEntity.email=e.info.email),s.jsx("script",{type:"application/ld+json",children:JSON.stringify(_e(O))})},Mu=`(function(){"use strict";const Me="__html-audit-manifest";function je(e){const t=e.getElementById(Me);if(!t||!t.textContent)return null;try{const n=JSON.parse(t.textContent);return!n||typeof n!="object"||!n.expects?null:n}catch{return null}}function g(e,t,n,o,r){return{id:e,label:t,status:n,detail:o,expected:r}}function w(e,t,n,o,r){return o==null?g(e,t,n?"ok":"info",r,void 0):o?n?g(e,t,"ok",r,!0):g(e,t,"missing",r||"Esperado por config pero AUSENTE",!0):n?g(e,t,"warn",r||"Presente pero no estaba configurado",!1):g(e,t,"info",r||"No configurado",!1)}const ce={ok:0,info:1,warn:2,missing:3};function J(e,t){if(!t||!t.length)return e;e.issues=t;let n=e.status;for(const o of t)ce[o.status]>ce[n]&&(n=o.status);return e.status=n,e}function N(e,t){return!!e.querySelector(t)}function q(e,t){return e.querySelectorAll(t).length}function F(e){const t=[];return e.querySelectorAll('script[type="application/ld+json"]').forEach(o=>{if(o.textContent)try{const r=JSON.parse(o.textContent);Array.isArray(r)?t.push(...r):t.push(r)}catch{}}),t}function U(e,t){return F(e).some(n=>{const o=n?.["@type"];return typeof o=="string"?o===t:Array.isArray(o)?o.includes(t):!1})}function pe(e,t){const n=[],o=r=>{if(!r||typeof r!="object")return;if(Array.isArray(r)){r.forEach(o);return}const s=r,i=s["@type"];(i===t||Array.isArray(i)&&i.includes(t))&&n.push(s),Array.isArray(s["@graph"])&&s["@graph"].forEach(o)};return F(e).forEach(o),n}const qe=600,Ue=6e3;function de(e,t){return e.length>t?e.slice(0,t)+\`
29
+ }`,Eu=e=>{try{return new URL(e).origin}catch{return null}},xu=({config:e,fontUrl:t,isS3:a})=>{const n=e.fontDisplay??"swap",r=e.fontFormat??"woff2",o=Eu(t);return s.jsxs(s.Fragment,{children:[o&&!a&&s.jsx("link",{rel:"preconnect",href:o,crossOrigin:"anonymous"}),s.jsx("link",{rel:"preload",as:"font",href:t,type:`font/${r}`,crossOrigin:"anonymous",fetchPriority:"high"}),s.jsx("style",{dangerouslySetInnerHTML:{__html:Nu(e,t,n,r)}})]})},ko=({config:e})=>{const t=e.fontDisplay??"swap",{url:a,isS3:n}=Su(e);return a?s.jsx(xu,{config:e,fontUrl:a,isS3:n}):To(e.googleFontFamily)?s.jsxs(s.Fragment,{children:[s.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),s.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),s.jsx("link",{rel:"stylesheet",href:`https://fonts.googleapis.com/css2?${e.googleFontFamily}&display=${t}`})]}):null},Da={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]":Ca(e.currentNew?.keywords),"[url_replace]":tr(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]":""})},Io=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("/","")},Ne=e=>{const a=e.replace(/^\/|\/$/g,"").split("/"),n=a.indexOf("page");return n>0?`${a[n-1]??""}`:`${a[a.length-1]??""}`},Lo={404:()=>"404",home:()=>"home",slug:e=>Ne(e.pathname),news:e=>er(e.pathname)?.slug,seccion:e=>Ne(e.pathname),tema:e=>Ne(e.pathname),pages:e=>Ne(e.pathname),auth:e=>Ne(e.pathname),buscar:e=>Ne(e.pathname),"ultimas-noticias":e=>Ne(e.pathname),anuncia:e=>Ne(e.pathname),contacto:e=>Ne(e.pathname),autor:e=>Ne(e.pathname),video:e=>Ne(e.pathname),videos:e=>Ne(e.pathname)},Ut=e=>{const t=e.split("/"),a=t[t.length-1]??"1";return Number(a)>0?Number(a):1},Tu=(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},Uo=({gpt:e=!1,googleAds:t=!1,syndication:a=!1,adsense:n=!1})=>s.jsxs(s.Fragment,{children:[e&&s.jsx("link",{rel:"preconnect",href:"https://securepubads.g.doubleclick.net",crossOrigin:"anonymous"}),t&&s.jsx("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net",crossOrigin:"anonymous"}),a&&s.jsx("link",{rel:"preconnect",href:"https://tpc.googlesyndication.com",crossOrigin:"anonymous"}),n&&s.jsx("link",{rel:"dns-prefetch",href:"https://pagead2.googlesyndication.com"})]}),qa=Symbol("bucket-retry-exhausted");class ku{exclude="keywords,gallery,related,relatedexternal,external,customfields";config={};imgSizes={};configVersion=".config";axiosApi=void 0;customMainImagesSize=void 0;contract;constructor(t,a,n,r,o,i){this.config=t,this.imgSizes=a,this.axiosApi=n,this.customMainImagesSize=o,this.contract=Ft(i).contract,t.configVersion&&(this.configVersion=t.configVersion),r&&(this.exclude=r)}async getNewsListZone(t){if(this.axiosApi)return this.axiosApi.get("/news-list-zone",{params:t}).catch(a=>(console.log(`[/news-list-zone] Error: ${a.message}`),console.log(a),Promise.reject(a)))}async getOutstandingBlock(t){if(!this.axiosApi)return;const a=this.axiosApi,n=()=>a.get("/config/blocks",{params:{...t,path:this.config.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(o=>(console.log(`[/config/blocks] Error: ${o.message}`),console.log(o),Promise.reject(o))),r=L().BUCKET_ORIGIN;if(r?.destacado){const o=L().PUBLIC_IS_OFFLINE==="true",i={data:{data:[]}},l=Je(r,this.config.servicePrefix,"bloques","destacado",o),c=r.referer??ht,d=`origin:destacado:bucket:${l}`,u=await ut(d,()=>Nt(()=>Lt(r.proxyUrl??r.url,c).get(l),qa,{label:"bucket:destacado",endpoint:l,params:t}),{shouldCache:f=>f!==qa});return u===qa?(Qt("destacado",l),i):u}return n()}getNewsListZoneWrapper(t,a,n,r){return this.getNewsListZone({zone:a||"destacadas",size:n,onmainpage:t?"section":void 0,section:t,newstype:this.config.newsType,exclude:this.exclude,imagesizes:r})}async getNewsDestacadoDiario(t,a){try{const n=await this.getNewsListZoneWrapper(t,a,1,this.customMainImagesSize||`${this.contract.note.gallery}${this.contract.note.itemsListPrimary}`),r=await this.getNewsListZoneWrapper(t,a,5);return!n?.data?.data||!r?.data?.data?[]:(n.data.data=[...n.data.data,...r.data.data.slice(1)],n)}catch(n){return console.log(`[MainComponentServices.getNewsDestacadoDiario] Error: ${n?.message}`),[]}}async getNewsDestacadoDiarioImage(t,a){try{const n=await this.getNewsListZoneWrapper(t,a,1,this.customMainImagesSize||this.contract.note.itemsListPrimary),r=await this.getNewsListZoneWrapper(t,a,5,this.contract.note.featuredDiarioImageThumb);return!n?.data?.data||!r?.data?.data?[]:(n.data.data=[...n.data.data,...r.data.data.slice(1)],n)}catch(n){return console.log(`[MainComponentServices.getNewsDestacadoDiarioImage] Error: ${n?.message}`),[]}}async getNewsAltoImpacto(t,a){try{return await this.getNewsListZoneWrapper(t,a,1,`${this.contract.note.gallery}${this.contract.note.featuredSuperSecondary}`)}catch(n){console.log(`[MainComponentServices.getNewsAltoImpacto] Error: ${n?.message}`);return}}async getNewsDestacadoVertical(t,a){try{const n=await this.getNewsListZoneWrapper(t,a,1,`${this.contract.note.featuredVerticalPrimary}${this.contract.note.itemsListPrimary}`),r=await this.getNewsListZoneWrapper(t,a,3,`${this.contract.note.featuredVerticalPrimary}${this.contract.note.featuredVerticalSecondary}`);return!n?.data?.data||!r?.data?.data?[]:(n.data.data=[...n.data.data,...r.data.data.slice(1)],n)}catch(n){return console.log(`[MainComponentServices.getNewsDestacadoVertical] Error: ${n?.message}`),[]}}async getNewsDestacadoHorizontal(t,a){try{const n=await this.getNewsListZoneWrapper(t,a,1,`${this.contract.note.featuredHorizontalPrimary}${this.contract.note.itemsListPrimary}`),r=await this.getNewsListZoneWrapper(t,a,3,this.contract.note.featuredHorizontalSecondary);return!n?.data?.data||!r?.data?.data?[]:(n.data.data=[...n.data.data,...r.data.data.slice(1)],n)}catch(n){return console.log(`[MainComponentServices.getNewsDestacadoHorizontal] Error: ${n?.message}`),[]}}GetByOptions={Diario:(t,a)=>this.getNewsDestacadoDiario(t,a),"Diario con imagen":(t,a)=>this.getNewsDestacadoDiarioImage(t,a),"Diario en vivo":(t,a)=>this.getNewsDestacadoDiarioImage(t,a),Super:(t,a)=>this.getNewsAltoImpacto(t,a),"3 notas verticales":(t,a)=>this.getNewsDestacadoVertical(t,a),"3 notas horizontales":(t,a)=>this.getNewsDestacadoHorizontal(t,a)};async getMainBlockData(t,a,n){try{const o=(await this.getOutstandingBlock(t))?.data?.data?.[0]?.value||"";if(!o||!Object.keys(this.GetByOptions).includes(o))return{section:o,news:[]};const i=await this.GetByOptions[o](a,n);return{section:o,news:i?.data??[]}}catch(r){return console.log(`[MainComponentServices.getMainBlockData] Error: ${r?.message}`),{section:"",news:[]}}}}const Pt=Symbol("bucket-retry-exhausted");function Po(e){return Array.isArray(e?.data)?{...e,data:e.data.map(t=>t&&{...t,preview:yt(t.preview)})}:e}function qe(e,t,a){return e.get(t,{params:a}).then(n=>(n.data=Po(n.data),n)).catch(n=>(console.log(`[${t}] Error: ${n.message}`),Promise.reject(n)))}class Ze{constructor(t){this.props=t,this.contract=Ft(t?.imageSizes).contract,t?.config?.configVersion&&(this.configVersion=t.config.configVersion),t?.exclude&&(this.exclude=t.exclude)}configVersion=".config";exclude="keywords,gallery,related,relatedexternal,external,customfields";contract;generateTokenOffline=async t=>{const{PUBLIC_IS_OFFLINE:a,PUBLIC_USERNAME_OFFLINE:n,PUBLIC_PASSWORD_OFFLINE:r}=L();if(a==="true")try{return(await this.props?.axiosApi.get("/auth",{params:{username:n,password:r,browserid:t}}).catch(i=>(console.log(`[/auth]Error: ${i.message}`),Promise.reject(i))))?.data.data[0]?.token}catch(o){console.log(`[/auth] Error: ${o.message}`),console.log(o)}};getEntitySection=t=>this.props?.axiosApi.get("/entity-section",{params:t}).catch(a=>(console.log(`[/entity-section] Error: ${a.message}`),Promise.reject(a)));getMainMenu=async t=>{const a=L().BUCKET_ORIGIN,n={data:{data:[]}},r=()=>this.props.axiosApi.get("/config/menu",{params:t}).catch(i=>(console.log(`[/config/menu] Error: ${i.message}`),ge.add({service:"CommonServices.getMainMenu",endpoint:"/config/menu",method:"GET",params:t,message:i.message,status:i.response?.status,layer:"axios-service"}),Promise.reject(i)));if(a?.menu){const i=L().PUBLIC_IS_OFFLINE==="true",l=Ts(t.path),c=Je(a,this.props?.config?.servicePrefix,"menu",l,i),d=a.referer??ht,u=`origin:menu:bucket:${c}`,f=await ut(u,()=>Nt(()=>Lt(a.proxyUrl??a.url,d).get(c),Pt,{label:"bucket:menu",endpoint:c,params:t}),{shouldCache:h=>h!==Pt,staleOnError:!0});return f===Pt?(Qt("menu",c),n):f}const o=`origin:menu:api:${t.path??""}`;return ut(o,()=>r(),{staleOnError:!0}).catch(()=>n)};getNewsListZone=t=>qe(this.props.axiosApi,"/news-list-zone",t);getNewsListZoneSection=t=>qe(this.props.axiosApi,"/news-list-zone-section",t);getNewsList=t=>qe(this.props.axiosApi,"/news-list",t);getNewsListTag=t=>qe(this.props.axiosApi,"/news-list-tag",t);getNewsListSection=t=>qe(this.props.axiosApi,"/news-list-section",t);getNewsListAvanced=t=>qe(this.props.axiosApi,"/news-list-advanced",t);getNewsListTags=t=>qe(this.props.axiosApi,"/news-list-tag",t);getNewsListTagEntity=t=>qe(this.props.axiosApi,"/news-list-tag-entity",t);getNewsListTagLite=t=>qe(this.props.axiosApi,"/news-list-tag-lite",t);getNewsListAutor=t=>qe(this.props.axiosApi,"/news-list-author",t);getNewsSearch=t=>this.props?.axiosApi.get("/news-list-search",{params:t}).catch(a=>(console.log(`[/news-list-search] Error: ${a.message}`),Promise.reject(a)));getAutorInfo=t=>this.props?.axiosApi.get("/authors",{params:t}).catch(a=>(console.log(`[/authors] Error: ${a.message}`),Promise.reject(a)));getvideoListAdvanced=t=>this.props?.axiosApi.get("/videos-list-advanced",{params:t}).catch(a=>(console.log(`[/videos-list-advanced] Error: ${a.message}`),Promise.reject(a)));getVideos=t=>this.props?.axiosApi.get("/videos",{params:t}).catch(a=>(console.log(`[/videos] Error: ${a.message}`),Promise.reject(a)));getVideosList=t=>this.props?.axiosApi.get("/videos-list",{params:t}).catch(a=>(console.log(`[/videos-list] Error: ${a.message}`),Promise.reject(a)));getBanners=async t=>{const a=L().BUCKET_ORIGIN,n={data:{data:[]}},r=()=>{const c=t.path?t.path:`/${this.configVersion}/banners.html`;return this.props.axiosApi.get("/config/banners",{params:{...t,path:this.props?.config?.servicePrefix+c}}).catch(d=>(console.log(`[/config/banners] Error: ${d.message}`),ge.add({service:"CommonServices.getBanners",endpoint:"/config/banners",method:"GET",params:t,message:d.message,status:d.response?.status,layer:"axios-service"}),Promise.reject(d)))};if(a?.banners){const c=L().PUBLIC_IS_OFFLINE==="true",d=(t.template??"").toLowerCase(),u=Je(a,this.props?.config?.servicePrefix,"banners",d,c),f=a.referer??ht,h=`origin:banners:bucket:${u}`,p=await ut(h,()=>Nt(()=>Lt(a.proxyUrl??a.url,f).get(u),Pt,{label:"bucket:banners",endpoint:u,params:t}),{shouldCache:m=>m!==Pt,staleOnError:!0});return p===Pt?(Qt("banners",u),n):p}const o=t.path?t.path:`/${this.configVersion}/banners.html`,l=`origin:banners:api:${`${this.props?.config?.servicePrefix??""}${o}`}:${t.template??""}`;return ut(l,()=>r(),{staleOnError:!0}).catch(()=>n)};getPages=t=>this.props?.axiosApi.get("/config/pages",{params:t}).catch(a=>(console.log(`[/config/pages] Error: ${a.message}`),Promise.reject(a)));getRankingS3=async(t,a={Referer:ht})=>{if(!t||t==="")return{data:[]};const n=await Nt(()=>re.get(t,{headers:a}),{data:[]},{label:"bucket:ranking",endpoint:t});return $n(n)};getNews=t=>this.props?.axiosApi.get("/news",{params:{...t,exclude:`${t.exclude},pixel`}}).then(a=>(a.data=Po(a.data),a)).catch(a=>(console.log(`[/news] Error: ${a.message}`),Promise.reject(a)));getNewsMultimedia=t=>this.props?.axiosApi.get("/news-items-multimedia",{params:t}).catch(a=>(console.log(`[/news-items-multimedia] Error: ${a.message}`),Promise.reject(a)));getNewsItemsList=t=>this.props?.axiosApi.get("/news-items-list",{params:t}).catch(a=>(console.log(`[/news-items-list] Error: ${a.message}`),Promise.reject(a)));getNewsListPath=t=>this.props?.axiosApi.get("/news-list-paths",{params:t}).catch(a=>(console.log(`[/news-list-paths] Error: ${a.message}`),Promise.reject(a)));getNewsSchemasImages=t=>this.props?.axiosApi.get("/schemas/news-images",{params:t}).catch(a=>(console.log(`[/schemas/news-images] Error: ${a.message}`),Promise.reject(a)));getNewsItemsRelated=(t,a)=>this.props?.axiosApi.get("/news-items-related",{params:{path:t,imagesizes:this.contract.note.listStandard,exclude:this.exclude,...a}}).catch(n=>(console.log(`[/news-items-related] Error: ${n.message}`),{data:rr()}));sendEmail=t=>this.props?.axiosApi.post("/send/email",t,{headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:"JSESSIONID=21FDC2B9C2782893562BC53D52981A0B"}}).catch(a=>(console.log(`[/send/email] Error: ${a.message}`),Promise.reject(a)));searchData=async t=>{const a=await this.getNewsSearch(t);return a&&a?.data.data&&a?.data.data.length>0?{search:a}:{lastNews:await this.getNewsList(t)}};commonNewsServices=async(t,a={getNews:`${this.contract.note.detailMain}${this.contract.note.detailSecondary}${this.contract.note.relatedThumb}`,getNewsItemsList:`${this.contract.note.itemsListPrimary}${this.contract.note.detailSecondary}`,getAutorInfo:`${this.contract.author.avatar}`,getNewsItemsRelated:`${this.contract.note.relatedPrimary}${this.contract.note.relatedThumb}`},n={getNewsItemsRelated:"config,keywords,authors,body,related,relatedexternal,social,external,hascontent,customfields,pixel",getAutorInfo:"groups"})=>{const[r,o]=await Promise.allSettled([this.getNews({imagesizes:a.getNews,path:t}),this.getNewsItemsList({path:t,imagesizes:a.getNewsItemsList})]),i=rt(r)?.data,l=i?.[0];let c=[];l?.authors?.length===1&&l?.config?.showauthor&&l.authors[0]?.internaluser&&(c=(await this.getAutorInfo({user:l.authors[0].name,exclude:n.getAutorInfo,imagesizes:a.getAutorInfo}))?.data.data??[]);const d=ps(l),f=(rt(o)?.data??[])[0]?.list?.items?.map(w=>ps(w)),h=[];f?.forEach(w=>{w&&w.length>0&&w.forEach(A=>{A.forEach(v=>{const S=this.getNews({path:v.replaceAll("|","/"),imagesizes:a.getNewsItemsRelated,exclude:n.getNewsItemsRelated});S&&h.push(S)})})});const m=(await Promise.allSettled([...h])).map(w=>rt(w)?.data),g=await Kn(d,this.getNews,`${this.contract.note.relatedPrimary}${this.contract.note.relatedThumb}`);let b=[];try{b=(await this.getNewsSchemasImages({path:t}))?.data?.data??[]}catch(w){console.warn("getNewsSchemasImages failed:",w),b=[]}return{news:i??[],autor:c,newsRelatedResponses:g,itemList:rt(o)?.data??[],newsRelatedListResponses:m,schemasImages:b??[]}}}class Oo extends Ze{MULTIPUBLICATION_FETCHES;PUBLIC_PUBLICATION_ID;IS_MULTIPUBLICATION;constructor(t){super(t);const{MULTIPUBLICATION_FETCHES:a,PUBLIC_PUBLICATION_ID:n}=L();this.MULTIPUBLICATION_FETCHES=a,this.PUBLIC_PUBLICATION_ID=n,this.IS_MULTIPUBLICATION=a!=null&&a!==""||n!=null&&n!==""}getBlockSass=async t=>{const a=await this.props?.axiosApi.get("/config/blocks-saas",{params:{...t,exclude:this.exclude,path:this.props?.config?.servicePrefix+`/${this.configVersion}/columna_derecha.html`}}).catch(n=>(console.log(`[/config/blocks-saas] Error: ${n.message}`),Promise.reject(n)));return this.resolveSlotContent(a?.data?.data)};resolveSlotContent=async t=>{if(!t||t.length===0||!t[0]?.value||!t[0].block||!this.props?.imgSizes[t[0].block])return{blockSass:t};const a=t[0],n=a?.value.split("="),r=n[0]??"",o=n[1]??"",i=a?.block,l={videos:async()=>{const c={size:this.props?.imgSizes[i].size??5,imagesizes:`${this.contract.video.lg}${this.contract.video.md}`,query:"Keywords:("+(o??"videohome")+")"};this.IS_MULTIPUBLICATION&&(c.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const d=await this.getvideoListAdvanced(c);return{blockSass:t,content:d?d.data:void 0}}catch(d){return console.log(`[/videos-list-advanced] Error: ${d?.message}`),{blockSass:t,content:void 0}}},tag:async()=>{const{USE_QUOTE_IN_QUERY_TAG_HOME:c}=L(),d={query:c?'claves:("'+o+'")':"claves:("+o+")",size:this.props?.imgSizes[i]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[i]?.imageSizes};this.IS_MULTIPUBLICATION&&(d.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const u=await this.getNewsListAvanced(d);return{blockSass:t,content:u?u.data:void 0}}catch(u){return console.log(`[/news-list-advanced] Error: ${u?.message}`),{blockSass:t,content:void 0}}},seccion:async()=>{const c={query:`seccion:(${o})`,size:this.props?.imgSizes[i]?.size??3,newstype:this.props?.config?.newsType,exclude:this.exclude,imagesizes:this.props?.imgSizes[i]?.imageSizes};this.IS_MULTIPUBLICATION&&(c.publication=this.MULTIPUBLICATION_FETCHES??this.PUBLIC_PUBLICATION_ID);try{const d=await this.getNewsListAvanced(c);return{blockSass:t,content:d?d.data:void 0}}catch(d){return console.log(`[/news-list-advanced] Error: ${d?.message}`),{blockSass:t,content:void 0}}}};if(r in l){const c=l[r];return await c()}return{blockSass:t}}}class Iu{issuuApi="https://api.issuu.com/v2";api=void 0;q="";constructor(t){this.q=t.q,this.api=re.create({baseURL:t.issuuApi?t.issuuApi:this.issuuApi,params:{state:t.state?t.state:"PUBLISHED",size:t.size?t.size:16,q:t.q},headers:{Authorization:`Bearer ${t.token}`}})}async getListIssuuPublications({page:t=1}){try{return await this.api?.get("/publications",{params:{q:this.q,page:t}})}catch(a){throw a}}async getListIssuuPublicationBySlug(t){try{return await this.api?.get(`/publications/${t}/embed`)}catch(a){throw a}}}const Ga=Symbol("bucket-retry-exhausted"),Lu=async(e,t)=>{const a=L().BUCKET_ORIGIN;if(!a)return{};const n=L().PUBLIC_IS_OFFLINE==="true",r=Je(a,t.servicePrefix,"bloques","modulos-dinamicos",n),o=a.referer??ht,i=`origin:slots:bucket:${r}`,l=await ut(i,()=>Nt(()=>Lt(a.proxyUrl??a.url,o).get(r),Ga,{label:"bucket:slots",endpoint:r,params:{}}),{shouldCache:u=>u!==Ga});if(l===Ga)return Qt("slots",r),{};const c=l.data?.data??[],d={};return await Promise.all(c.map(async u=>{u?.key&&(d[u.key]=await e.resolveSlotContent([u]))})),d},Uu=async(e,t,a,n,r,o,i)=>{const l=new Oo({config:t,imgSizes:a,imageSizes:n,axiosApi:e,exclude:i}),c=async()=>{const d=[];for(let h=1;h<=r;h++)for(let p=1;p<=o;p++)d.push({func:l.getBlockSass,slot_id:h+"_"+p});const u=await Promise.allSettled([...d.map(h=>h.func({template:"Home_"+h.slot_id}))]),f={};for(let h=0;h<u.length;h++){const p=Mn(u[h]),m="Home_"+(Math.floor(h/o)+1)+"_"+(Math.floor(h%o)+1);p&&(f[m]={...p})}return f};return L().BUCKET_ORIGIN?.slots?Lu(l,t):c()},Pu=e=>{const t=rt(e);return t&&t.data?t.data:t},Ou=async e=>{const t=await Promise.allSettled(Object.values(e).map(r=>{const o=r.promise??Promise.resolve(void 0);return o.catch(()=>{}),o})),a=Object.keys(e),n={};for(const r in e){const o=e[r];if(!o)continue;const i=o.custom_extractData??Pu;n[r]=i(t[a.indexOf(r)])}return n},fe=(e,t,a=404)=>({title:t?.name?`Error ${a} | ${t.name}`:`Error ${a}`}),Bo=(e="")=>e.replace(/-/g," ").replace(/^./,t=>t.toUpperCase()),Jt=e=>{console.warn(`[metadata:fallback] ruta="${e}" — metaSource ausente, se fetcheó en SSR. Falta drilling en el repo consumidor.`)},Zt=e=>e.includes("/page/")?e.replace(/\/page\/\d+$/,""):e,Ee=e=>{try{const t=de();if(!t)return e;const a=new URL(e),n=a.pathname;return n===t||n.startsWith(`${t}/`)?e:a.origin+t+e.slice(a.origin.length)}catch{return e}},Ge=(e,t,a,n)=>{const r=Ee(t),o={...a?{title:a}:{},...n?{description:n}:{}};return{alternates:{...e.alternates,canonical:r},openGraph:{...e.openGraph,url:r,...o},twitter:{...e.twitter,url:r,...o}}},Mo={404:e=>{const{meta:t,config:a,statusCode:n=404}=e;return fe(t,a,n===500?500:404)},home:e=>{const{meta:t,config:a}=e;return{...t,...Ge(t,a.siteUrl,t.title)}},slug:e=>{const{meta:t,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Bo(n)}`;return{...t,title:o,...Ge(t,a.siteUrl+r,o)}},auth:e=>{const{meta:t,config:a,slug:n,pathname:r}=e,o=`${a.name} | ${Bo(n)}`;return{...t,title:o,...Ge(t,a.siteUrl+r,o)}},news:e=>{const{meta:t,config:a,currentNew:n,schemasImages:r}=e;if(!n)return fe(t,a);const o=Rn(t,n,a,r);return o?{...t,...o}:fe(t,a)},seccion:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o,metaSource:i}=e,{PUBLIC_LNG:l}=L(),d=Zt(n).split("/"),u=[],f=Ut(n),h=Number(a.newsListLimit)||0,p=l==="en";let m=i?.sectionName,g=i?.hasNextPage;if(m===void 0||g===void 0){Jt("seccion");const A=new Ze({config:a,axiosApi:o});try{let v,S;const y=await A.getNewsListSection({section:r,size:h,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:f});if(!y||(v=y.data.data,S=!(v.length<h),!v?.length))return fe(t,a);m=v[0].info.section?.name,g=S}catch(v){return console.error(v),fe(t,a,500)}}g&&u.push({rel:"next",url:Et(a,d,f)}),f>1&&u.push({rel:"prev",url:xt(a,d,f)});const b=p?`Latest News from ${m} | ${a.name}`:`Últimas Noticias de ${m} | ${a.name}`,w=p?`All the latest news from ${m} on ${a.name}`:`Todas las últimas noticias de ${m} en ${a.name}`;return{...t,title:b,description:w,alternates:{...t.alternates,canonical:Ee(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:u},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:b,description:w,type:"website",url:Ee(`${a.siteUrl}${n}`),locale:t.openGraph.locale},twitter:{...t.twitter,card:"summary_large_image",title:b,description:w,site:t.twitter.site,domain:new URL(a.siteUrl).hostname,url:Ee(`${a.siteUrl}${n}`)}}},tema:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o,metaSource:i}=e,c=Zt(n).split("/"),d=[],u=Ut(n),f=Number(a.newsListLimit)||0,{PUBLIC_TAG_TYPE:h,PUBLIC_LNG:p}=L(),m=p==="en";let g=i?.tagName,b=i?.hasNextPage;if(g===void 0||b===void 0){Jt("tema");const v=new Ze({config:a,axiosApi:o}),S=/([t][0-9]{4})\w+/.exec(r||""),y=S&&S?.length>0?S[0].replace("t",""):"";try{const N=await v.getNewsListTags({tagid:y,size:f,tagtype:Number(h),newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:u});if(!N)return fe(t,a);const k=N.data.entity;if(!k)return fe(t,a);g=k.name,b=!(N.data.data?.length<f)}catch(N){return console.error(N),fe(t,a,500)}}b&&d.push({rel:"next",url:Et(a,c,u)}),u>1&&d.push({rel:"prev",url:xt(a,c,u)});const w=m?`Latest news about ${g} | ${a.name}`:`Últimas noticias de ${g} | ${a.name}`,A=m?`The latest news about ${g} on ${a.name}`:`Las últimas noticias sobre ${g} en ${a.name}`;return{...t,title:w,description:A,alternates:{...t.alternates,canonical:Ee(a.siteUrl+n)},manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""},openGraph:{...t.openGraph,title:w,description:A,type:"website",url:Ee(`${a.siteUrl}${n}`),locale:t.openGraph.locale},twitter:{...t.twitter,card:"summary_large_image",title:w,description:A,site:t.twitter.site,domain:new URL(a.siteUrl).hostname,url:Ee(`${a.siteUrl}${n}`)}}},"ultimas-noticias":async e=>{const{meta:t,config:a,pathname:n,texts:r,axiosApi:o,metaSource:i}=e,c=Zt(n).split("/"),d=[],u=Ut(n),f=Number(a.newsListLimit)||0,h=`${a.name} | ${r.lastNotesTitle}`,p={...t,title:h,...Ge(t,a.siteUrl+"/"+a.paths["ultimas-noticias"],h)};let m=i?.hasNextPage;if(m===void 0){if(Jt("ultimas-noticias"),!o)return p;const g=new Ze({config:a,axiosApi:o});try{const b=await g.getNewsList({size:f,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",page:u});if(!b)return p;m=!(b.data.data.length<f)}catch(b){return console.error(b),p}}return m&&d.push({rel:"next",url:Et(a,c,u)}),u>1&&d.push({rel:"prev",url:xt(a,c,u)}),{...t,title:h,...Ge(t,a.siteUrl+n,h),manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}},video:async e=>{const{meta:t,config:a,internalPath:n,axiosApi:r}=e,o=new Ze({config:a,axiosApi:r});try{const i=await o.getVideos({imagesizes:o.contract.og.social,path:n});return i?.data?.data?.length?{...t,...cr(t,i.data.data[0],a)??{}}:fe(t,a)}catch(i){return console.error("metadata (video) error:",i),fe(t,a,500)}},videos:async e=>{const{meta:t,config:a,pathname:n,axiosApi:r,metaSource:o}=e,l=Zt(n).split("/"),c=[],d=Ut(n),u=Number(a.newsListLimit)||0;let f=o?.hasNextPage;if(f===void 0){Jt("videos");const p=new Ze({config:a,axiosApi:r});try{const m=await p.getvideoListAdvanced({size:u,query:"Category:(videohome OR destacadoseccion OR seccion)",page:Number(d)});if(!m)return fe(t,a);f=!(m.data.data.length<u)}catch(m){return console.error(m),fe(t,a,500)}}f&&c.push({rel:"next",url:Et(a,l,d)}),d>1&&c.push({rel:"prev",url:xt(a,l,d)});const h="Videos | "+a.name;return{...t,title:h,...Ge(t,a.siteUrl+n,h),manifest:a.manifest,icons:{...a.icons,other:c},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}},pages:async(e,t)=>{const{meta:a,config:n,pathname:r,slug:o,axiosApi:i}=e,l=new Ze({config:n,axiosApi:i});try{const c=await l.getPages({path:t||n.servicePrefix+`/pages/${o}`});if(!c)return fe(a,n);const d=c.data.data[0]?.info.title??"",u=`${n.name} | ${d}`;return{...a,title:u,...Ge(a,n.siteUrl+r,u)}}catch(c){return console.error(c),fe(a,n,500)}},contacto:e=>{const{meta:t,config:a,pathname:n}=e,r=L().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Contact":"Contacto"}`;return{...t,title:o,...Ge(t,a.siteUrl+n,o)}},anuncia:e=>{const{meta:t,config:a,pathname:n}=e,r=L().PUBLIC_LNG==="en",o=`${a.name} | ${r?"Advertise":"Anuncia"}`;return{...t,title:o,...Ge(t,a.siteUrl+n,o)}},buscar:e=>{const{meta:t,config:a,pathname:n,query:r,texts:o}=e;if(r&&r.trim()!==""){const i=`${a.name} | ${`${o.resultsOfPrefix}'${r}'`}`;return{...t,title:i,alternates:{...t.alternates,canonical:Ee(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...t.openGraph,title:i,type:"website",url:Ee(`${a.siteUrl}${n}${r?"?query="+r:""}`)},twitter:{...t.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:Ee(`${a.siteUrl}${n}${r?"?query="+r:""}`)}}}else{const i=`${a.name} | ${o.searchKeyWord}`;return{...t,title:i,alternates:{...t.alternates,canonical:Ee(a.siteUrl+n+(r?"?query="+r:""))},openGraph:{...t.openGraph,title:i,type:"website",url:Ee(`${a.siteUrl}${n}`)},twitter:{...t.twitter,card:"summary_large_image",title:i,domain:new URL(a.siteUrl).hostname,url:Ee(`${a.siteUrl}${n}`)}}}},autor:async e=>{const{meta:t,config:a,pathname:n,slug:r,axiosApi:o,metaSource:i}=e,c=Zt(n).split("/"),d=[],u=Ut(n),f=L().PUBLIC_LNG==="en",h=Number(a.newsListLimit)||0;let p=i?.fullname,m=i?.hasNextPage;if(p===void 0||m===void 0){Jt("autor");const w=new Ze({config:a,axiosApi:o});try{const A=await w.getAutorInfo({user:r,exclude:"groups",imagesizes:w.contract.author.avatar}),v=await w.getNewsListAutor({size:h,user:r,page:u,newstype:a.newsType,exclude:"keywords,gallery,related,relatedexternal,external,customfields",imagesizes:w.contract.note.listStandard});if(!v)return fe(t,a);m=!(v.data.data.length<h),p=A?.data.data[0]?.info.fullname}catch(A){return console.error(A),fe(t,a,500)}}m&&d.push({rel:"next",url:Et(a,c,u)}),u>1&&d.push({rel:"prev",url:xt(a,c,u)});const g=f?`Latest News from ${p} | ${a.name}`:`Últimas Noticias de ${p} | ${a.name}`,b=f?`All the latest news from ${p} on ${a.name}`:`Todas las últimas noticias de ${p} en ${a.name}`;return{...t,title:g,description:b,...Ge(t,a.siteUrl+n,g,b),manifest:a.manifest,icons:{...a.icons,other:d},other:{"msapplication-TileImage":a.msapplicationTileImage??""}}}},Bu=({autor:e,listAutor:t,config:a})=>{const n=t?.[0]??null,{DATE_TIMEZONE:r="America/Mexico_City",PUBLIC_ASSETS_URL:o,PUBLIC_LNG:i}=L(),l=i==="en",c=r,d=n?.info?.date?.modified?Ie(n.info.date.modified,c):void 0,u=e.addtional?.USER_JOBSTART?Ie(e.addtional.USER_JOBSTART,c):void 0,f=o&&o!=="false"?o:"",h=e.addtional,p=h?.USER_USERFB||h?.USER_PAGE_FACEBOOK||h?.USER_FACEBOOK_FAN_PAGE,m=h?.USER_USERTWT||h?.USER_PAGE_TWITTER,g=h?.USER_USERIG||h?.USER_PAGE_INSTAGRAM,b=h?.USER_USERLIN||h?.USER_PAGE_LINKEDIN,w=h?.USER_PAGE_TIKTOK,A=h?.USER_PAGE_YOUTUBE,v=h?.USER_PAGE_PINTEREST,S=l?h?.USER_POSITION_EN||"":h?.USER_JOBTITLE||h?.USER_POSITION||"",y=l?h?.USER_DESCRIPCION_EN||h?.USER_MIBIO_EN||"":h?.USER_DESCRIPCION||h?.USER_MIBIO||"",N=e?.addtional?.USER_SHOWEMAIL===!0||h?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",k=de(),O={"@context":"https://schema.org","@type":"ProfilePage",mainEntity:{"@type":"Person",name:e.info.fullname??e.info.name,alternateName:e.info.nickname?e.info.nickname:e.info.name,identifier:e.info.id,description:ho(y),image:e.info.image?e.info.image.sizes.map(($,q)=>q===0&&e.info.image.sizes.length!==1?null:f+$.url).filter(Boolean):[],sameAs:[p,g,b,m,w,A,v].filter(Boolean),jobTitle:S,url:a.siteUrl+k+(a.paths.autor!==""?`/${a.paths.autor}/`:"/")+e.info.name}};return u&&(O.dateCreated=u),d&&(O.dateModified=d),N&&(O.mainEntity.email=e.info.email),s.jsx("script",{type:"application/ld+json",children:JSON.stringify(_e(O))})},Mu=`(function(){"use strict";const Me="__html-audit-manifest";function je(e){const t=e.getElementById(Me);if(!t||!t.textContent)return null;try{const n=JSON.parse(t.textContent);return!n||typeof n!="object"||!n.expects?null:n}catch{return null}}function g(e,t,n,o,r){return{id:e,label:t,status:n,detail:o,expected:r}}function w(e,t,n,o,r){return o==null?g(e,t,n?"ok":"info",r,void 0):o?n?g(e,t,"ok",r,!0):g(e,t,"missing",r||"Esperado por config pero AUSENTE",!0):n?g(e,t,"warn",r||"Presente pero no estaba configurado",!1):g(e,t,"info",r||"No configurado",!1)}const ce={ok:0,info:1,warn:2,missing:3};function J(e,t){if(!t||!t.length)return e;e.issues=t;let n=e.status;for(const o of t)ce[o.status]>ce[n]&&(n=o.status);return e.status=n,e}function N(e,t){return!!e.querySelector(t)}function q(e,t){return e.querySelectorAll(t).length}function F(e){const t=[];return e.querySelectorAll('script[type="application/ld+json"]').forEach(o=>{if(o.textContent)try{const r=JSON.parse(o.textContent);Array.isArray(r)?t.push(...r):t.push(r)}catch{}}),t}function U(e,t){return F(e).some(n=>{const o=n?.["@type"];return typeof o=="string"?o===t:Array.isArray(o)?o.includes(t):!1})}function pe(e,t){const n=[],o=r=>{if(!r||typeof r!="object")return;if(Array.isArray(r)){r.forEach(o);return}const s=r,i=s["@type"];(i===t||Array.isArray(i)&&i.includes(t))&&n.push(s),Array.isArray(s["@graph"])&&s["@graph"].forEach(o)};return F(e).forEach(o),n}const qe=600,Ue=6e3;function de(e,t){return e.length>t?e.slice(0,t)+\`
30
30
  … (recortado)\`:e}function E(e,t=qe){return e?de(e.outerHTML||"",t):""}function h(e,t){return t&&t.length&&(e.evidence=t),e}function O(e,t){return Array.from(e.querySelectorAll(t)).map(n=>({label:n.getAttribute("property")||n.getAttribute("name")||n.getAttribute("rel")||n.getAttribute("type")||n.tagName.toLowerCase(),snippet:E(n)}))}function K(e,t){if(!e||typeof e!="object")return;if(Array.isArray(e)){e.forEach(r=>K(r,t));return}const n=e,o=n["@type"];typeof o=="string"?t.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&t.add(r)),Array.isArray(n["@graph"])&&K(n["@graph"],t)}function ue(e){const t=e.querySelectorAll('script[type="application/ld+json"]'),n=[];return t.forEach((o,r)=>{const s=o.textContent||"",i=new Set;let l=s,a=!0;try{const u=JSON.parse(s);K(u,i),l=JSON.stringify(u,null,2)}catch{a=!1}const c=o.id,p=[...i],d=p.length?p.join(", "):c||\`bloque #\${r+1}\`;n.push({types:p,label:a?d:\`\${d} (JSON inválido)\`,snippet:de(l,Ue)})}),n}function _(e,t){return ue(e).filter(n=>n.types.includes(t)).map(n=>({label:n.label,snippet:n.snippet}))}function _e(e){return ue(e).map(t=>({label:t.label,snippet:t.snippet}))}const Ie=(e,t)=>{const n=t?.expects,o=[],r=e.querySelector("meta[charset]");o.push(h(w("htmlAttrs.charset","<meta charset>",!!r,n?n.charset:null,"Falta <meta charset>"),r?[{label:"<meta charset>",snippet:E(r)}]:[]));const s=e.querySelector('meta[name="viewport"]');o.push(h(w("htmlAttrs.viewport","<meta name=viewport>",!!s,n?n.viewport:null,"Falta <meta name=viewport>"),s?[{label:"<meta name=viewport>",snippet:E(s)}]:[]));const i=e.documentElement.getAttribute("lang");o.push(g("htmlAttrs.lang","html[lang]",i?"ok":"info",i?\`lang="\${i}"\`:"No emitido por el paquete (lo agrega el sitio)"));const l=e.documentElement.getAttribute("dir");o.push(g("htmlAttrs.dir","html[dir]",l?"ok":"info",l?\`dir="\${l}"\`:"No emitido por el paquete"));const a=new Map;e.querySelectorAll("[id]").forEach(p=>{const d=p.id;d&&a.set(d,(a.get(d)||0)+1)});const c=[...a.entries()].filter(([,p])=>p>1).map(([p])=>p);return o.push(g("htmlAttrs.duplicateIds","IDs duplicados",c.length?"warn":"ok",c.length?\`Duplicados: \${c.slice(0,10).join(", ")}\`:"Sin IDs duplicados")),{key:"htmlAttrs",title:"HTML attrs",findings:o}},Fe=(e,t)=>{const n=t?.expects,o=[],r=e.querySelector('script[type="speculationrules"]');o.push(h(w("structure.speculationRules","Speculation rules",!!r,n?n.speculationRules:null,"Speculation rules desactivadas"),r?[{label:"speculationrules",snippet:E(r,2e3)}]:[])),t?.speculationType&&o.push(g("structure.speculationType","Speculation type","info",\`Tipo esperado: \${t.speculationType}\`));const s=q(e,"main");o.push(g("structure.main","<main>",s===1?"ok":s===0?"info":"warn",s===1?"1 <main>":s===0?"Sin <main> (lo arma el sitio)":\`\${s} <main> (debería ser 1)\`)),o.push(g("structure.header","<header>",N(e,"header")?"ok":"info",N(e,"header")?"Presente":"Sin <header>")),o.push(g("structure.footer","<footer>",N(e,"footer")?"ok":"info",N(e,"footer")?"Presente":"Sin <footer>"));const i=q(e,"h1");return o.push(g("structure.h1","<h1>",i===1?"ok":"warn",i===0?"Sin <h1>":i===1?"1 <h1>":\`\${i} <h1> (revisar jerarquía)\`)),{key:"structure",title:"Estructura",findings:o}},Pe=["og:title","og:description","og:type","og:url","og:site_name","og:locale","og:image"],He=["twitter:card","twitter:title","twitter:description","twitter:image","twitter:site"];function M(e,t){return{status:e,message:t}}function X(e,t=60){const n=e.trim();return n.length>t?n.slice(0,t)+"…":n}function P(e,t={}){const n=(e||"").trim();if(!n)return[];const o=[],r=t.absolute!==!1,s=t.https!==!1,i=/^[a-z][a-z0-9+.-]*:/i.test(n),l=n.startsWith("//");r&&!i&&!l&&o.push(M("warn",\`URL relativa ("\${X(n)}"); se espera absoluta\`));let a=null;try{a=new URL(n,t.base)}catch{return o.push(M("warn",\`URL malformada: "\${X(n)}"\`)),o}return(a.protocol==="http:"||a.protocol==="https:")&&(s&&a.protocol==="http:"&&o.push(M("warn","Usa http (inseguro); se espera https")),a.pathname.includes("//")&&o.push(M("warn",\`Doble slash en el path: "\${X(a.pathname)}"\`)),t.sameHost&&a.host!==t.sameHost&&o.push(M("warn",\`Host distinto: "\${a.host}" (se espera "\${t.sameHost}")\`))),o}function fe(e,t){const n=(e||"").trim();if(!n)return null;try{return new URL(n,t).href}catch{return null}}const Be={NewsArticle:["@context","headline","datePublished","image","author","publisher"]};function De(e){return e==null?!0:typeof e=="string"?e.trim()==="":Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function We(e,t){return t.filter(n=>De(e[n])).map(n=>M("warn",\`Falta campo requerido: \${n}\`))}function Ge(e){const t=e.itemListElement;return Array.isArray(t)?t.length:t?1:0}function z(e){return e===void 0||e==="meta"?null:e}function L(e,t,n,o,r,s,i){const l=e.querySelector(o),a=w(t,n,!!l,r,l?he(l):s);return l&&(h(a,[{label:n,snippet:E(l)}]),i&&J(a,i(l))),a}function he(e){const n=(e.getAttribute("content")||e.getAttribute("href")||e.textContent||"").trim();return n.length>80?n.slice(0,80)+"…":n||"presente"}const Ve=(e,t)=>{const n=t?.expects.metadata,o=[],r=e.location?.href,s=e.location?.host,i=e.querySelector('link[rel="canonical"]')?.getAttribute("href")||"",l=e.querySelector("title"),a=!!l&&!!l.textContent?.trim();o.push(h(w("metadata.title","<title>",a,z(n?.title),a?he(l):"Falta <title> o está vacío"),l?[{label:"<title>",snippet:E(l)}]:[])),o.push(L(e,"metadata.description","meta description",'meta[name="description"]',z(n?.description),"Falta <meta name=description>"));const c=e.querySelectorAll('meta[name="keywords"], meta[name="news_keywords"]');o.push(h(g("metadata.keywords","keywords / news_keywords",c.length?"ok":"info",c.length?\`\${c.length} tag(s)\`:"Sin keywords (opcional)"),O(e,'meta[name="keywords"], meta[name="news_keywords"]'))),o.push(L(e,"metadata.robots","meta robots",'meta[name="robots"]',z(n?.robots),"Sin meta robots (esperado solo en news/video)")),o.push(L(e,"metadata.canonical","link canonical",'link[rel="canonical"]',z(n?.canonical),"Falta <link rel=canonical>",m=>P(m.getAttribute("href"),{base:r,https:!0,sameHost:s})));const p=t?.expects.hreflang,d='link[rel="alternate"][hreflang]',u=e.querySelectorAll(d),x=Array.from(u).map(m=>m.getAttribute("hreflang")||""),C=p?.expected?p.langs.filter(m=>!x.includes(m)):[];o.push(h(w("metadata.hreflang","link alternate hreflang",u.length>0&&C.length===0,p?p.expected:null,p?.expected?C.length?\`Faltan hreflang: \${C.join(", ")}\`:\`\${u.length} hreflang (\${x.join(", ")})\`:u.length?\`\${u.length} hreflang (\${x.join(", ")})\`:"Sin hreflang (no esperado en esta ruta)"),O(e,d))),o.push(L(e,"metadata.og.title","og:title",'meta[property="og:title"]',z(n?.openGraph),"Falta og:title")),o.push(L(e,"metadata.og.image","og:image",'meta[property="og:image"]',z(n?.openGraph),"Falta og:image (sin imagen de preview al compartir)",m=>P(m.getAttribute("content"),{base:r,https:!0})));for(const m of Pe){if(m==="og:title"||m==="og:image")continue;const T="metadata."+m.replace(":","."),ae=m==="og:url"?le=>Je(le.getAttribute("content"),i,r):void 0;o.push(L(e,T,m,\`meta[property="\${m}"]\`,null,\`Sin \${m} (opcional)\`,ae))}const $=q(e,'meta[property^="og:"]');o.push(h(g("metadata.og.count","Tags og:* totales",$>0?"ok":"info",\`\${$} tag(s) og:*\`),O(e,'meta[property^="og:"]'))),o.push(L(e,"metadata.twitter.card","twitter:card",'meta[name="twitter:card"]',z(n?.twitter),"Falta twitter:card")),o.push(L(e,"metadata.twitter.image","twitter:image",'meta[name="twitter:image"]',z(n?.twitter),"Falta twitter:image",m=>P(m.getAttribute("content"),{base:r,https:!0})));for(const m of He){if(m==="twitter:card"||m==="twitter:image")continue;const T="metadata."+m.replace(":",".");o.push(L(e,T,m,\`meta[name="\${m}"]\`,null,\`Sin \${m} (opcional)\`))}const R=q(e,'meta[name^="twitter:"]');o.push(h(g("metadata.twitter.count","Tags twitter:* totales",R>0?"ok":"info",\`\${R} tag(s) twitter:*\`),O(e,'meta[name^="twitter:"]')));const j=q(e,'meta[property^="article:"]');o.push(h(w("metadata.article","article:* (published/modified/section/author/tag)",j>0,z(n?.article),j>0?\`\${j} tag(s) article:*\`:"Sin article:* (esperado solo en news)"),O(e,'meta[property^="article:"]'))),o.push(L(e,"metadata.rss","link alternate RSS",'link[rel="alternate"][type="application/rss+xml"]',z(n?.rss),"Sin alternate RSS (esperado solo en news)")),o.push(L(e,"metadata.manifest","link manifest",'link[rel="manifest"]',null,"Sin <link rel=manifest> (opcional)"));const k='link[rel="icon"], link[rel="apple-touch-icon"], link[rel="shortcut icon"], link[rel="mask-icon"]',A=q(e,k);return o.push(h(g("metadata.icons","favicons / icons",A?"ok":"info",A?\`\${A} icono(s)\`:"Sin favicons declarados"),O(e,k))),{key:"metadata",title:"Metadata",findings:o}};function Je(e,t,n){const o=P(e,{base:n,https:!0}),r=fe(e,n),s=fe(t,n);return r&&s&&r!==s&&o.push(M("warn",\`og:url no coincide con canonical (\${s})\`)),o}const Ke=(e,t)=>{const n=t?.expects.schemas,o=[];o.push(h(w("schemas.NewsMediaOrganization","NewsMediaOrganization (OrgList)",N(e,"script#WebsiteOrgListSchema")||U(e,"NewsMediaOrganization"),n?n.NewsMediaOrganization:!0,"Falta NewsMediaOrganization (se emite siempre)"),_(e,"NewsMediaOrganization"))),o.push(h(w("schemas.WebSite","WebSite (WebsiteList)",N(e,"script#WebsiteListSchema")||U(e,"WebSite"),n?n.WebSite:null,"Falta WebSite"),_(e,"WebSite")));{const a=h(w("schemas.NewsArticle","NewsArticle",U(e,"NewsArticle"),n?n.NewsArticle:null,"NewsArticle esperado pero AUSENTE (puede ser API vacía)"),_(e,"NewsArticle"));if(a.status==="ok"){const c=pe(e,"NewsArticle");c.length&&J(a,We(c[0],Be.NewsArticle))}o.push(a)}o.push(h(w("schemas.Videos","VideoObject",U(e,"VideoObject"),n?n.Videos:null,"VideoObject esperado pero AUSENTE"),_(e,"VideoObject"))),o.push(h(w("schemas.Autor","ProfilePage (Autor)",U(e,"ProfilePage"),n?n.Autor:null,"ProfilePage esperado pero AUSENTE"),_(e,"ProfilePage")));{const a=h(w("schemas.ItemList","ItemList",N(e,"script#webSiteItemListSchema")||U(e,"ItemList"),n?n.ItemList:null,"ItemList esperado pero AUSENTE (PuedeVacío)"),_(e,"ItemList"));if(a.status==="ok"){const c=pe(e,"ItemList"),p=c.reduce((d,u)=>d+Ge(u),0);a.detail=\`\${c.length} ItemList; \${p} entr\${p===1?"y":"ies"}\`,c.length&&p===0&&J(a,[M("warn","ItemList sin itemListElement (lista vacía)")])}o.push(a)}o.push(h(w("schemas.SoftwareApplication","SoftwareApplication",N(e,'script[id^="SoftwareApplicationSchema-"]')||U(e,"SoftwareApplication"),n?n.SoftwareApplication:null,"SoftwareApplication esperado pero AUSENTE"),_(e,"SoftwareApplication")));const r=e.querySelectorAll('script[type="application/ld+json"]');let s=0;r.forEach(a=>{if(a.textContent)try{JSON.parse(a.textContent)}catch{s++}});const i=Xe(e),l=i?\`; @graph: \${i} nodo(s)\`:"";return o.push(h(g("schemas.parsed","JSON-LD parseables",s?"warn":"ok",\`\${r.length} bloque(s); \${s} inválido(s)\${l}. Tipos: \${Qe(e)}\`),_e(e))),{key:"schemas",title:"Schemas JSON-LD",findings:o}};function Xe(e){let t=0;const n=o=>{if(!o||typeof o!="object")return;if(Array.isArray(o)){o.forEach(n);return}const r=o;Array.isArray(r["@graph"])&&(t+=r["@graph"].length,r["@graph"].forEach(n))};return F(e).forEach(n),t}function Qe(e){const t=new Set;return F(e).forEach(n=>{const o=n?.["@type"];typeof o=="string"?t.add(o):Array.isArray(o)&&o.forEach(r=>typeof r=="string"&&t.add(r))}),t.size?[...t].join(", "):"—"}const Ye=(e,t)=>{const n=t?.expects,o=e.querySelector('link[rel="amphtml"]');return{key:"amp",title:"AMP",findings:[h(w("amp.amphtml","link rel=amphtml",!!o,n?n.amp:null,o?\`href=\${o.getAttribute("href")||""}\`:"No hay AMP"),o?[{label:"link rel=amphtml",snippet:E(o)}]:[])]}};function H(e){return e.slice(0,8).map(t=>({label:t.getAttribute("src")||"(sin src)",snippet:E(t,300)}))}function me(e,t){const n=(e.getAttribute("src")||"").trim();if(!n||n.startsWith("data:"))return null;try{return new URL(n,t)}catch{return null}}const Ze=(e,t)=>{const n=Array.from(e.querySelectorAll("img")),o=[],r=e.location?.href;let s=null;if(t?.expects.assetsUrl)try{s=new URL(t.expects.assetsUrl).host}catch{s=null}o.push(g("images.count","<img> totales","info",\`\${n.length} imagen(es)\`));const i=n.filter(p=>!p.hasAttribute("alt"));o.push(h(g("images.alt","img sin atributo alt",i.length?"warn":"ok",i.length?\`\${i.length} <img> sin alt: \${Q(i)}\`:"Todas las <img> declaran alt"),H(i)));const l=n.filter(p=>p.getAttribute("loading")==="lazy").length;o.push(g("images.lazy","img loading=lazy","info",\`\${l}/\${n.length} lazy\`));const a=n.filter(p=>{const d=p.getAttribute("src");return d!==null&&d.trim()===""});o.push(h(g("images.emptySrc","img con src vacío",a.length?"warn":"ok",a.length?\`\${a.length} <img> con src=""\`:"Sin src vacíos"),H(a)));const c=n.filter(p=>me(p,r)?.protocol==="http:");if(o.push(h(g("images.insecure","img con src http (inseguro)",c.length?"warn":"ok",c.length?\`\${c.length} <img> en http: \${Q(c)}\`:"Sin imágenes http (mixed content)"),H(c))),s){const p=n.filter(d=>{const u=me(d,r);return!!u&&(u.protocol==="http:"||u.protocol==="https:")&&u.host!==s});o.push(h(g("images.offAssets",\`img fuera del dominio de assets (\${s})\`,"info",p.length?\`\${p.length} <img> en otro host: \${Q(p)}\`:"Todas las <img> absolutas vienen del dominio de assets"),H(p)))}return{key:"images",title:"Imágenes",findings:o}};function Q(e){return e.slice(0,5).map(t=>t.getAttribute("src")||"(sin src)").join(", ")}function Y(e,t){for(const n of t){const o=e.querySelector(n);if(o)return o}return null}function B(e,t){return e?[{label:t,snippet:E(e)}]:[]}const et=[Ie,Fe,Ve,Ke,Ye,(e,t)=>{const n=t?.expects,o=[],r=n?.assetsUrl;let s;r?s=Array.from(e.querySelectorAll('link[rel="preconnect"]')).some(c=>(c.getAttribute("href")||"").indexOf(r)===0):s=!!e.querySelector('link[rel="preconnect"]'),o.push(h(w("css.preconnectAssets","preconnect assets",s,n?n.preconnectAssets:null,"Falta <link rel=preconnect> a PUBLIC_ASSETS_URL"),O(e,'link[rel="preconnect"], link[rel="dns-prefetch"]'))),o.push(h(w("css.preloadImages","preload de imágenes",!!e.querySelector('link[rel="preload"][as="image"]'),n?n.preloadImages:null,"No hay preload de imágenes (preloadImages)"),O(e,'link[rel="preload"][as="image"]')));const i=!!e.querySelector('link[rel="preload"][as="font"]'),l=!!e.querySelector('link[href*="fonts.googleapis"], link[href*="fonts.gstatic"]'),a=n?.font;return a==="selfHosted"?o.push(w("css.font","Font self-hosted",i,!0,"Font self-hosted esperada pero sin <link as=font>")):a==="google"?o.push(w("css.font","Google Fonts",l,!0,"Google Fonts esperada pero ausente")):o.push(g("css.font","Fonts","info",i?"Font self-hosted presente":l?"Google Fonts presente":"Sin fuente configurada por el paquete")),o.push(h(g("css.stylesheets","<link rel=stylesheet> totales","info",\`\${q(e,'link[rel="stylesheet"]')} stylesheet(s) (los agrega el sitio)\`),O(e,'link[rel="stylesheet"]'))),{key:"cssImports",title:"CSS / preconnect / fonts",findings:o}},Ze,(e,t)=>{const n=t?.expects.analytics,o=[],r=Y(e,["script#googleanalytics",'script[src*="gtag/js"]']);o.push(h(w("content.ga4","GA4",!!r,n?n.ga4:null,"GA4 no configurado"),B(r,"GA4")));const s=Y(e,["script#GTM",'script[src*="googletagmanager.com/gtm.js"]','iframe[src*="googletagmanager.com/ns.html"]']);o.push(h(w("content.gtm","Google Tag Manager",!!s,n?n.gtm:null,"GTM no configurado"),B(s,"GTM")));const i=Y(e,["script#comscore",'script[src*="scorecardresearch"]']);o.push(h(w("content.comscore","Comscore",!!i,n?n.comscore:null,"Comscore no configurado"),B(i,"Comscore")));const l=e.querySelector('script[src*="marfeel"]')||Array.from(e.querySelectorAll("script")).find(u=>(u.textContent||"").includes("marfeel"))||null;o.push(h(w("content.marfeel","Marfeel",!!l,n?n.marfeel:null,"Marfeel no configurado"),B(l,"Marfeel")));const c=Array.from(e.querySelectorAll("h1,h2,h3,h4,h5,h6")).filter(u=>!(u.textContent||"").trim());o.push(h(g("content.emptyHeadings","Headings vacíos",c.length?"warn":"ok",c.length?\`\${c.length} heading(s) sin texto\`:"Sin headings vacíos"),c.slice(0,8).map(u=>({label:u.tagName.toLowerCase(),snippet:E(u,200)}))));const p=Array.from(e.querySelectorAll("a")),d=p.filter(u=>{const x=u.getAttribute("href");return x===null||x.trim()===""||x.trim()==="#"});return o.push(h(g("content.links","Links sin destino",d.length?"warn":"ok",\`\${p.length} link(s); \${d.length} sin href válido\`),d.slice(0,8).map(u=>({label:(u.textContent||"").trim().slice(0,40)||"(sin texto)",snippet:E(u,200)})))),{key:"content",title:"Contenido",findings:o}}];function ge(e,t){const n=et.map(r=>r(e,t)),o={ok:0,missing:0,warn:0,info:0};for(const r of n)for(const s of r.findings)o[s.status]++;return{route:t?t.route:null,hasManifest:!!t,totals:o,categories:n,blindSpots:t?t.blindSpots||[]:[]}}const tt=\`
31
31
  /* all: initial corta toda herencia del host; los resets explícitos de abajo pinean la
32
32
  base tipográfica para no depender del font-size/zoom de la página contenedora. */
@@ -427,7 +427,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
427
427
  c0.3-0.1,1.2-0.5,1.5-1.6c0.4-1.6,0.4-5.3,0.4-5.3c0-0.1,0.2-3.7-0.2-5.4c-0.1-0.4-0.5-1.3-1.6-1.6C22.5,7.7,17.1,7.6,15.1,7.6zM12.8,19.2c-0.1,0-0.3,0-0.4-0.1c-0.2-0.1-0.4-0.4-0.4-0.7v-6.9c0-0.3,0.1-0.5,0.4-0.6c0.2-0.1,0.5-0.1,0.7,0l5.9,3.4
428
428
  c0.2,0.1,0.4,0.4,0.4,0.6c0,0.3-0.1,0.5-0.4,0.7l-5.9,3.5C13.1,19.1,12.9,19.2,12.8,19.2z M13.6,12.9v4.3l3.7-2.2L13.6,12.9z`}),s.jsx("path",{fill:"currentColor",d:"M12.8,18.6v-6.9l5.9,3.4L12.8,18.6z"})]})},bh=["telegram"],wt={facebook:e=>s.jsx(zs,{...e}),instagram:e=>s.jsx($s,{...e}),whatsapp:e=>s.jsx(gh,{...e}),tiktok:e=>s.jsx(Ws,{...e}),youtube:e=>s.jsx(Ys,{...e}),x:e=>s.jsx(ze,{...e}),gnews:e=>s.jsx(uh,{...e}),podcast:e=>s.jsx(hh,{...e}),telegram:e=>s.jsx(mh,{...e}),linkedin:e=>s.jsx(Ve,{...e}),spotify:e=>s.jsx(fh,{...e}),threads:e=>s.jsx(ph,{...e}),pinterest:e=>s.jsx(Qs,{...e})},wh=e=>{const{freeZone:t,socials:a,menu:n,customBlock:r,custom_styles:o={}}=e,i=gt();return s.jsxs("footer",{className:"su-flex su-flex-col su-items-center su-justify-center sass-com-ft-content",style:o,children:[s.jsxs("section",{className:"su-flex su-items-center su-gap-8 sass-com-ft-brandContent",children:[s.jsx(M,{href:"/","aria-label":i.goToHomeAria??"Ir a la home",children:s.jsx("span",{className:"sass-com-ft-logoStyled",children:e.logo})}),s.jsx("div",{className:"su-flex-center su-gap-4 sass-com-ft-socialMedia",children:Object.keys(a).map(l=>!l||!a[l]||!wt[l]?null:a[l]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":a[l].title+" link",className:"su-flex-center sass-com-ft-linkSocialNetwoks",href:a[l].url,children:wt[l]({className:`${`sass-com-ft-social${l.charAt(0).toUpperCase()+l.slice(1)}`}`})},l))})]}),s.jsxs("section",{className:"sass-com-ft-sectionContent",children:[s.jsx("div",{className:"sass-com-ft-section",children:n.filter(l=>!l.subitem).map((l,c)=>s.jsx(M,{block_subPublication:!0,href:l.link?l.link:void 0,target:l.target,className:"sass-com-ft-menuItem footer-menu-item","aria-label":l.description,children:l.description},c))}),s.jsx("div",{className:"sass-com-ft-section",children:t&&t.map((l,c)=>s.jsx(M,{block_subPublication:!0,href:l.link?l?.link:void 0,target:l.target,className:"sass-com-ft-otherItems",children:l.description},c))})]}),r&&s.jsx(s.Fragment,{children:r}),s.jsxs("section",{className:"sass-com-ft-copyrigth",children:[s.jsx("p",{className:"sass-com-ft-copyrigthText",children:e.copyrigth}),s.jsx(M,{"aria-label":"Bluestack link",href:"https://www.bluestack.la",title:i.bluestackPlatformTitle??"Plataforma BLUESTACK CMS (antes CMS MEDIOS)",target:"_blank",rel:"noreferrer",children:s.jsx(dh,{})})]})]})},es=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/facebook-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"23",viewBox:"0 0 13 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M11.7376 0H8.80322C5.52359 0 3.36594 2.11766 3.36594 5.50591V8.0471H0.431531C0.172612 8.0471 0 8.21652 0 8.47064V12.113C0 12.3671 0.172612 12.5365 0.431531 12.5365H3.36594V21.7695C3.36594 22.0237 3.53855 22.1931 3.79747 22.1931H7.68125C7.94016 22.1931 8.11278 22.0237 8.11278 21.7695V12.5365H11.565C11.8239 12.5365 11.9966 12.3671 11.9966 12.113V8.47064C11.9966 8.38593 11.9102 8.21652 11.8239 8.13181C11.7376 8.0471 11.6513 7.9624 11.4787 7.9624H8.02647V5.84474C8.02647 4.82826 8.28539 4.32002 9.66629 4.32002H11.6513C11.9102 4.32002 12.0829 4.15061 12.0829 3.89649V0.508238C12.1692 0.169413 11.9966 0 11.7376 0Z",fill:"black"})})},$a=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/email.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"25",height:"21",viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M21.6424 1H3.33879C2.11855 1 1 2.01687 1 3.33879V17.0665C1 18.2867 2.01687 19.4053 3.33879 19.4053H21.6424C22.8626 19.4053 23.9812 18.3884 23.9812 17.0665V3.33879C23.9812 2.01687 22.8626 1 21.6424 1Z",stroke:"black",strokeWidth:"1.6"}),s.jsx("path",{d:"M21.6425 5.57591L12.5923 11.2704L3.33887 5.57591V3.33881L12.5923 8.93157L21.6425 3.33881V5.57591Z",fill:"black"})]})},Qa=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/email-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsxs("svg",{width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsx("path",{d:"M20.8752 0.195801H2.96092C1.76664 0.195801 0.671875 1.19104 0.671875 2.48485V15.9206C0.671875 17.1149 1.66711 18.2096 2.96092 18.2096H20.8752C22.0695 18.2096 23.1643 17.2144 23.1643 15.9206V2.48485C23.1643 1.19104 22.0695 0.195801 20.8752 0.195801Z",fill:"black"}),s.jsx("path",{d:"M20.8752 4.67439L12.0176 10.2477L2.96094 4.67439V2.48486L12.0176 7.95868L20.8752 2.48486V4.67439Z",fill:"white"})]})},Wa=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/facebook-note.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",width:17,height:23,src:a,alt:"",...e}):s.jsx("svg",{width:"13",height:"22",viewBox:"0 0 13 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{className:e.className,d:"M11.6659 1H8.99942C6.01924 1 4.0586 2.9084 4.0586 5.96183V8.25191H1.39213C1.15685 8.25191 1 8.40458 1 8.63359V11.916C1 12.145 1.15685 12.2977 1.39213 12.2977H4.0586V20.6183C4.0586 20.8473 4.21545 21 4.45073 21H7.97989C8.21516 21 8.37202 20.8473 8.37202 20.6183V12.2977H11.509C11.7443 12.2977 11.9012 12.145 11.9012 11.916V8.63359C11.9012 8.55725 11.8227 8.40458 11.7443 8.32824C11.6659 8.25191 11.5875 8.17557 11.4306 8.17557H8.29359V6.26718C8.29359 5.35115 8.52887 4.89313 9.78368 4.89313H11.5875C11.8227 4.89313 11.9796 4.74046 11.9796 4.51145V1.45802C12.058 1.15267 11.9012 1 11.6659 1Z",stroke:"black",strokeWidth:"1.6"})})},Ya=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/plus.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsx("svg",{width:"26",height:"25",viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10 5C9.45 5 9 5.45 9 6V9H6C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11H9V14C9 14.55 9.45 15 10 15C10.55 15 11 14.55 11 14V11H14C14.55 11 15 10.55 15 10C15 9.45 14.55 9 14 9H11V6C11 5.45 10.55 5 10 5ZM10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18Z",fill:"black"})})},Ah={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Wa,{className:e,forceSVG:!0}),solid:e=>s.jsx(es,{className:e,forceSVG:!0})}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(ze,{className:e,forceSVG:!0}),solid:e=>s.jsx(ze,{className:e,forceSVG:!0})}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Gs,{className:e,forceSVG:!0}),solid:e=>s.jsx(qs,{className:e,forceSVG:!0})}},Email:{url:e=>`mailto:?body=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx($a,{className:e,forceSVG:!0}),solid:e=>s.jsx(Qa,{className:e,forceSVG:!0})}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ve,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ve,{className:e,forceSVG:!0})}}};function Qo({noteShare:e}){const t=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");if(!e)return null;const a=gt();return s.jsxs("div",{className:"sass-com-ja3-socialNetworkSection",children:[e.options?.map(n=>{const r=Ah[n];if(!r)return null;const o=e.variant==="outline"?r.icon.outline:r.icon.solid,i=r.url(t);return s.jsx(M,{href:i,target:"_blank",rel:"noopener noreferrer","aria-label":`${a.shareOnPrefix??"Compartir en"} ${n}`,className:`sass-com-ja3-socialButton sass-com-ja3-${n.toLowerCase()}Button sass-com-ja3-${n.toLowerCase()}Styled`,children:o("")},n)}),s.jsx("button",{type:"button","data-text":a.linkCopied??"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja3-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(Fs,{forceSVG:!0})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja3-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(Ya,{})})]})}const yh=e=>{const t=`${e?.video.main.author} - `,a=e?.video.main.author?je(e.video.info.date.created,t):{},n=()=>e?.video.main.author?`${t}${Te(e.video.info.date.created)}`:e?.video.main.author;return s.jsx("div",{className:"sass-com-bv3-content",children:s.jsx(Bs,{children:s.jsxs("div",{className:"sass-com-bv3-videoContent",children:[s.jsx("p",{className:"sass-com-bv3-title",children:e.video.main.title}),e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:`https://www.youtube.com/embed/${e.video.main.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv3-iframeStyled",src:e.video.main.code,frameBorder:"0",allowFullScreen:!0}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv3-contentFrame",dangerouslySetInnerHTML:{__html:e.video.main.code}}),s.jsxs("div",{className:"sass-com-bv3-articleSection",children:[s.jsx("p",{className:"sass-com-bv3-article",children:Be(e.video.main.description)}),s.jsx("p",{className:"sass-com-bv3-correspondent",...a,children:n()})]})]})})})},Ka=e=>{const{currentPage:t,showNext:a,maxPages:n,pathname:r,query:o,block_subPublication:i}=e,l=(c,d,u)=>{let f="";const h=d.split("/");return h.indexOf("page")!==-1&&h.splice(f.indexOf("page")-1,h.length-1),h.forEach((p,m)=>{m!==0&&(f+=`/${p}`)}),c==="next"?f+=`/page/${t+1}${u?`?query=${u}`:""}`:f+=`/page/${t-1}${u?`?query=${u}`:""}`};return(t>1||a&&t<n)&&s.jsxs("section",{className:"sass-com-np-content",children:[t>1&&s.jsx(M,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("prev",r||"",o||""),children:e.texts.prevButtonText??"Anterior"}),a&&t<n&&s.jsx(M,{block_subPublication:i,className:"sass-com-np-linkStyled",href:l("next",r||"",o||""),children:e.texts.nextButtonText??"Siguiente"})]})},Ja=e=>{const{grid:t=3}=e;return s.jsxs("section",{className:"sass-com-nc-content",children:[s.jsx("div",{className:`sass-com-nc-contentGrid ${e.className?e.className:""} ${t===3?"sass-com-nc-contentGrid3":"sass-com-nc-contentGrid4"} news-content`,children:e.children}),s.jsx(s.Fragment,{children:e.paginatorComponent})]})},Wo=({homepreview:e="imagen",videos:t,external:a,preview:n,linkClassName:r="sass-com-sc1-image",linkHref:o,linkTarget:i,linkTitle:l,isVideo:c=!1,isLarge:d,priorityHigh:u=!1})=>{const{CONFIG_videoClipUrl:f}=L(),h=e??"imagen",p=Array.isArray(t)?t:[],m=()=>{const A=p[0]?.clip;return A?s.jsx("div",{className:"sass-com-sc1-videoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:s.jsx("source",{src:`${f}${A}`,type:"video/mp4"})})}):null},g=()=>{const A=p[0]?.code;return A?s.jsx("iframe",{className:"sass-com-sc1-videoIframeContainer",src:`https://www.youtube.com/embed/${A}`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,title:l}):null},b=()=>{const A=p.find($=>$.type==="video-embedded");if(!A?.code)return null;const S=/src\s*=\s*"([^"]+)"/.exec(A.code),y=S?S[1]:null;if(!y)return null;const N=n.original?.url??n.sizes?.[0]?.url??"",k=tt()??"",O=N.startsWith("http")||N.includes(k)||k===""?N:k+N;return s.jsx("iframe",{className:"sass-com-sc1-embeddedIframeContainer",src:y,frameBorder:"0",allowFullScreen:!0,title:l,style:{"--thumbnail-url":`url(${O})`}})},w=()=>s.jsx(M,{"aria-label":l,className:r,title:l,href:o,target:i,children:s.jsx(ve,{preview:n,isVideo:c,isLarge:d,priorityHigh:u})});switch(h){case"videoYouTube":return p[0]?.code?s.jsx(g,{}):s.jsx(w,{});case"videoEmbedded":return p.some(A=>A.type==="video-embedded"&&A.code)?s.jsx(b,{}):s.jsx(w,{});case"clip":return p[0]?.clip?s.jsx(m,{}):s.jsx(w,{});case"iframe":return a?.iframe?s.jsx("div",{className:"sass-com-sc1-iframeContainer",dangerouslySetInnerHTML:{__html:a.iframe}}):s.jsx(w,{});default:return s.jsx(w,{})}},Ue=e=>{const{main:t,authors:a,info:n,preview:r,share:o,isVideo:i,config:l,overImage:c="default",isTitle:d,priorityHigh:u=!1,isLarge:f,paths:h,keywords:p,speculationPrerenderClass:m}=e;return s.jsxs("section",{className:"sass-com-sc1-content",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"sass-com-sc1-contentWrapper",children:s.jsx(Wo,{homepreview:l?.homepreview,videos:e.videos,external:e.external,preview:r,linkClassName:"sass-com-sc1-image",linkHref:n?.link?.url,linkTarget:n?.link?.target,linkTitle:t?.title?.section,isVideo:i,isLarge:f,priorityHigh:u})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(He,{main:t,authors:a,info:n,preview:r,share:o,config:l,overImage:c,isTitle:d,paths:h,keywords:p,speculationPrerenderClass:m})})]})},ts=e=>{const{isVideo:t,info:a,main:n,overImage:r="default",titleGradient:o=!1,speculationPrerenderClass:i}=e,l=pt("sass-com-sc2-linkStyled",i),{SHOW_TAG_BY_SECTION:c,SUB_PUBLICATION_PREFIX_IN_ROUTES:d}=L(),u=()=>{if(c&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const f=e.keywords.tags[0],h=f.name;return f.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":h,block_subPublication:d?.tema,className:"sass-com-sc2-sectionDescription",href:Ye(f,e.paths),children:h})}):s.jsx("div",{className:"sass-com-sc2-sectionDescription",children:h})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-com-sc2-sectionDescription",href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.info.section.name})});return null};return s.jsxs("section",{className:"sass-com-sc2-content",children:[s.jsx(M,{className:"sass-com-sc2-imageLink",title:n?.title?.section,href:a.link.url,target:a.link.target,children:s.jsx(ve,{preview:e.preview,isVideo:t})}),s.jsxs("div",{className:["sass-com-sc2-boxInformation",o?"sass-com-sc2-titleGradient":""].join(" "),style:{width:r!=="default"?"90%":"",left:r==="left"?0:r==="right"?"calc(10% - 1px)":"auto",top:r!=="default"?"-1rem":""},children:[s.jsx(u,{}),s.jsx("h2",{className:"sass-com-sc2-articule",children:s.jsx(M,{className:l,href:e?.info?.link?.url,target:e?.info?.link?.target,children:e.main?.title?.section})})]})]})},Ch=e=>s.jsx("div",{className:"sass-com-lt-content",children:s.jsx(Bs,{className:`sass-com-lt-contentLayout ${e.className}`,children:e.children})}),vh=e=>{const t=e.logo;return s.jsxs("section",{className:"sass-com-err-content",children:[e.backgroundImgURL&&s.jsx("img",{className:"sass-com-err-before su-absolute su-inset-0 su-size-full su-object-cover",src:e.backgroundImgURL,alt:"Imagen de fondo del error"}),s.jsxs("div",{className:"sass-com-err-textContent error-text-content",children:[s.jsx(t,{}),s.jsx("p",{className:"sass-com-err-title",children:e.title}),s.jsx("p",{className:"sass-com-err-description",children:e.description}),s.jsx(M,{className:"sass-com-err-linkStyled su-no-underline su-flex-center",href:"/",children:e.buttonText??"Inicio"})]})]})},Sh=e=>s.jsxs("div",{className:"sass-com-cin-content",children:[s.jsxs("div",{className:"sass-com-cin-contentLabel",children:[s.jsx("label",{className:"sass-com-cin-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-cin-required",children:"*"})]}),s.jsx("input",{className:"sass-com-cin-input",...e})]}),Nh=e=>s.jsxs("div",{className:"sass-com-csel-content",children:[s.jsxs("div",{className:"sass-com-csel-contentLabel",children:[s.jsx("label",{className:"sass-com-csel-label",children:e.label}),e.required&&s.jsx("span",{className:"sass-com-csel-required",children:"*"})]}),s.jsxs("select",{className:"sass-com-csel-input",...e,children:[s.jsx("option",{value:"",children:"--Seleccione--"}),e.options.map((t,a)=>s.jsx("option",{value:t.value,children:t.label},a))]})]}),Eh=e=>s.jsxs("div",{className:"sass-com-cta-content",children:[s.jsx("label",{className:"sass-com-cta-label",children:e.label}),s.jsx("textarea",{className:"sass-com-cta-input",...e})]}),Yo=e=>{const t=yt(e.preview);let a="";return t.description&&(a=t.description),t.copyright&&(a=`${a} ${t.copyright}`),t.photographer&&(a=`${a} ${t.photographer}`),s.jsx("div",{className:"sass-com-in2-content",children:s.jsx(ve,{preview:t,isLarge:!0,priorityHigh:!0,figCaption:a})})},Ko=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const n=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:n}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],c=(Array.isArray(i?.videos)?i.videos:[]).find(d=>d?.type==="video-embedded");return c?.code?s.jsxs("div",{className:"sass-pg-veh-content",children:[s.jsx("div",{dangerouslySetInnerHTML:{__html:typeof c.code=="string"?c.code:""}}),c?.title&&s.jsx("p",{className:"sass-pg-veh-title",children:c.title})]}):null}catch{return null}},Jo=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const n=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNewsMultimedia({path:t,imagesizes:n}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const i=o[0],c=(Array.isArray(i?.videos)?i.videos:[]).find(d=>d?.type==="video-youtube");return!c?.code||typeof c.code!="string"?null:s.jsxs("div",{className:"sass-pg-vyh-content",children:[s.jsx("iframe",{className:"sass-pg-vyh-iframeStyled",src:`https://www.youtube.com/embed/${c.code}`,frameBorder:"0",allowFullScreen:!0}),c?.title&&s.jsx("p",{className:"sass-pg-vyh-title",children:c.title})]})}catch{return null}},Zo=async({newsformated:e,internal:t,commonServices:a})=>{if(!t)return null;try{const n=e?.preview?.sizes?.[0]?.scale??void 0,o=(await a.getNews({path:t,imagesizes:n}))?.data?.data;if(!Array.isArray(o)||o.length===0)return null;const l=o[0]?.external?.iframe;return typeof l!="string"||l.trim()===""?null:s.jsx("div",{className:"sass-pg-ifh-content",dangerouslySetInnerHTML:{__html:l}})}catch{return null}},Pe={imagen:"imagen",videoEmbedded:"videoEmbedded",videoYouTube:"videoYouTube",iframe:"iframe",fotoGaleria:"fotogaleria"},xh={[Pe.videoEmbedded]:Ko,[Pe.videoYouTube]:Jo,[Pe.iframe]:Zo},Xo=({news:e,commonServices:t})=>{const{config:a,info:n}=e;a||De("ArticulePreview","config");const r=a?.articlepreview,o=n?.link?.internal,i=r?xh[r]:null;return i?s.jsx("div",{className:"sass-pg-nap-content",children:s.jsx(i,{newsformated:e,internal:o,commonServices:t})}):null},Th=new Set([Pe.videoEmbedded,Pe.videoYouTube,Pe.iframe]),Ro=e=>{const t=e.config?.articlepreview,a=!!e.commonServices&&!!t&&t!==Pe.imagen&&Th.has(t);return console.log("useArticlePreview",t,a),s.jsx(s.Fragment,{children:s.jsxs("div",{className:"sass-com-lbh-boxInformation sass-liveblog-header",children:[a?s.jsx(Xo,{news:e,commonServices:e.commonServices}):s.jsx(Yo,{preview:e.preview}),s.jsxs("div",{className:"sass-com-lbh-textBox",children:[s.jsxs("div",{className:"sass-com-lbh-contentBox",children:[e?.info?.section&&s.jsx(M,{className:"sass-com-lbh-sectionDescription",href:e?.info?.section?.url,children:e?.info?.section?.name}),s.jsxs("div",{className:"sass-com-lbh-liveBox",children:[s.jsx("span",{className:"sass-com-lbh-dot"}),s.jsx("p",{children:"EN VIVO"})]})]}),s.jsx("h1",{className:"sass-com-lbh-articule",children:e.main?.title?.section}),e.config?.showsubtitle&&s.jsx("p",{className:"sass-com-lbh-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle},children:e.main.subtitle.striped})]})]})})},ei=e=>s.jsx("section",{className:"sass-com-tl-content sass-liveblog-time-line",children:e.itemList[0]?.list.items.map((t,a)=>s.jsxs("div",{className:"sass-com-tl-contentLine",children:[s.jsx("div",{className:"sass-com-tl-dateLink",children:Un(t.date)}),s.jsx(M,{className:"sass-com-tl-contentText",href:`#item-${a+1}`,children:(e.itemList[0]?.list.integrated,t.title)})]},a))}),ti=e=>{const{PUBLIC_ENV:t}=L(),a=ne("/linkedin-black.svg");return t!==""&&!e.forceSVG?s.jsx("img",{fetchPriority:"low",loading:"lazy",src:a,alt:"",...e}):s.jsx("svg",{version:"1.1",baseProfile:"tiny",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 30 30",overflow:"visible",xmlSpace:"preserve",...e,children:s.jsx("path",{fill:"currentColor",strokeWidth:"1.2656",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",d:`M10.2,8.3c0,1.1-0.9,2.1-2.2,2.1l0,0c-1.3,0-2.1-0.9-2.1-2.1c0-1.1,0.9-2.1,2.2-2.1C9.4,6.3,10.2,7.1,10.2,8.3z M6.1,23.7H10V11.9
429
429
  H6.1V23.7z M19.6,11.7c-2.1,0-3.5,2-3.5,2v-1.7h-3.9v11.8H16v-6.6c0-0.3,0-0.7,0.1-0.9c0.3-0.7,0.9-1.4,2-1.4c1.4,0,2,1.1,2,2.7v6.3
430
- h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})})},kh={tiktok:{hosts:["tiktok.com","vm.tiktok.com"],fromHandle:e=>`https://www.tiktok.com/@${e}`},youtube:{hosts:["youtube.com","youtu.be"],fromHandle:e=>/^UC[A-Za-z0-9_-]{22}$/.test(e)?`https://www.youtube.com/channel/${e}`:`https://www.youtube.com/@${e}`},pinterest:{hosts:["pinterest.com","pin.it","pinterest.es","pinterest.com.mx"],fromHandle:e=>`https://www.pinterest.com/${e}`}},Ih=new Set(["","-","--",".","#","n/a","na","no","null","undefined","false","none","ninguno","ninguna","sin dato","sin datos"]),Lh=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/,Uh=e=>e.replace(/^[\s"'<(\[]+/,"").replace(/[\s"'>)\].,;:]+$/,""),Ph=(e,t)=>/^https?:\/\//i.test(e)||/^www\./i.test(e)?!0:t.some(a=>e.toLowerCase().startsWith(`${a}/`)),Oh=e=>{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;let a;try{a=new URL(t)}catch{return null}return!a.hostname.includes(".")||/\s/.test(a.hostname)?null:a.toString()},$e=(e,t)=>{const a=kh[e];if(!a||typeof t!="string")return"";const n=Uh(t.trim());if(Ih.has(n.toLowerCase()))return"";if(Ph(n,a.hosts))return Oh(n)??"";const r=n.replace(/^[@/]+/,"").replace(/\/+$/,"");return Lh.test(r)?a.fromHandle(r):""},Ks=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},si=e=>!e||e.trim()===""?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),at=(e,t,a)=>s.jsx("img",{className:a,src:ne(`/autor-${e}.svg`),alt:t,fetchPriority:"low",loading:"lazy"}),Bh=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:n=!1,socialIconsCustom:r=!1,showPosition:o=!1,showEmailAsSocial:i=!1,allowBioHtml:l=!1}=e,c=a,{PUBLIC_LNG:d}=L(),u=d==="en",f=t?.addtional,h=t?.info?.image?.sizes?.[0]?.url??"",p=t?.info?.fullname??"",m=t?.info?.email??"",g=u?f?.USER_DESCRIPCION_EN||f?.USER_MIBIO_EN||"":f?.USER_DESCRIPCION||f?.USER_MIBIO||"",b=u?f?.USER_POSITION_EN||"":f?.USER_JOBTITLE||f?.USER_POSITION||"",w=Ks(t?.addtional?.USER_USERFB??""),A=Ks(t?.addtional?.USER_USERIG??""),v=Ks(t?.addtional?.USER_USERTWT??""),S=Ks(t?.addtional?.USER_USERLIN??""),y=$e("tiktok",f?.USER_PAGE_TIKTOK),N=$e("youtube",f?.USER_PAGE_YOUTUBE),k=$e("pinterest",f?.USER_PAGE_PINTEREST),O=()=>i||!m||m.trim()===""?!1:si(m),$=f?.USER_SHOWEMAIL===!0||f?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",q=i&&$&&si(m),B=G=>`mailto:${G.trim()}`;return s.jsx("section",{className:`sass-com-ah1-content su-flex-center su-relative su-w-full ${e.className??""}`,children:s.jsxs("div",{className:"sass-com-ah1-info",children:[h?s.jsx("div",{className:"sass-com-ah1-image-container sass-image-autor-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+p,className:"sass-com-ah1-image su-object-cover",src:await ue(h)})}):s.jsx("div",{className:"sass-com-ah1-icon-wrap sass-image-autor-wrapper su-flex-center",children:s.jsx(c,{})}),s.jsx("h1",{className:"sass-com-ah1-name",children:p}),o&&b&&s.jsx("p",{className:"sass-com-ah1-position",children:b}),O()&&s.jsx("a",{href:B(m),className:"sass-com-ah1-email","aria-label":`Enviar correo electrónico a ${m}`,title:`Enviar correo a ${m}`,children:m}),l?s.jsx("div",{className:"sass-com-ah1-description",dangerouslySetInnerHTML:{__html:Ls(g)}}):s.jsx("p",{className:"sass-com-ah1-description",children:g}),s.jsxs("div",{className:"sass-com-ah1-social",children:[w&&s.jsx("a",{href:w,target:"_blank",className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?at(n?"facebook-black":"facebook","Facebook","sass-com-ah1-social-icon sass-social-icon-facebook"):n?s.jsx(es,{className:"sass-com-ah1-social-icon sass-social-icon-facebook",forceSVG:!0}):s.jsx(zs,{className:"sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook",forceSVG:!0})}),A&&s.jsx("a",{href:A,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("instagram","Instagram","sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram"):s.jsx($s,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram",forceSVG:!0})}),v&&s.jsx("a",{href:v,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("x","X","sass-com-ah1-social-icon sass-com-ah1-social-icon-x"):s.jsx(ze,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-x",forceSVG:!0})}),S&&s.jsx("a",{href:S,target:"_blank",className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?at(n?"linkedin-black":"linkedin","LinkedIn","sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin"):n?s.jsx(ti,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0}):s.jsx(Ve,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0})}),y&&s.jsx("a",{href:y,target:"_blank","aria-label":"TikTok",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("tiktok","TikTok","sass-com-ah1-social-icon sass-com-ah1-social-icon-tiktok"):s.jsx(Ws,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-tiktok",forceSVG:!0,width:28,height:28})}),N&&s.jsx("a",{href:N,target:"_blank","aria-label":"YouTube",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("youtube","YouTube","sass-com-ah1-social-icon sass-com-ah1-social-icon-youtube"):s.jsx(Ys,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-youtube",forceSVG:!0,width:28,height:28})}),k&&s.jsx("a",{href:k,target:"_blank","aria-label":"Pinterest",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("pinterest","Pinterest","sass-com-ah1-social-icon sass-com-ah1-social-icon-pinterest"):s.jsx(Qs,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-pinterest",forceSVG:!0,width:28,height:28})}),q&&s.jsx("a",{href:B(m),"aria-label":`Enviar correo electrónico a ${m}`,title:`Enviar correo a ${m}`,className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"nofollow noreferrer",children:r?at(n?"email-black":"email","Email","sass-com-ah1-social-icon sass-com-ah1-social-icon-email"):n?s.jsx(Qa,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-email",forceSVG:!0}):s.jsx($a,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-email",forceSVG:!0})})]})]})})},Mh=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:n=!1,allowBioHtml:r=!1}=e,o=a,{PUBLIC_LNG:i}=L(),l=i==="en",c=t?.addtional,d=t?.info?.image?.sizes?.[0]?.url??"",u=t?.info?.fullname??"",f=t?.info?.email??"",h=c?.USER_SHOWEMAIL===!0||c?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",p=c?.USER_SHOWBIO??!1,m=l?c?.USER_DESCRIPCION_EN||c?.USER_MIBIO_EN||"":c?.USER_DESCRIPCION||c?.USER_MIBIO||"",g=t?.addtional?.USER_USERFB??"",b=t?.addtional?.USER_USERIG??"",w=t?.addtional?.USER_USERTWT??"",A=t?.addtional?.USER_USERLIN??"",v=$e("tiktok",c?.USER_PAGE_TIKTOK),S=$e("youtube",c?.USER_PAGE_YOUTUBE),y=$e("pinterest",c?.USER_PAGE_PINTEREST);return s.jsx("section",{className:"sass-com-ah2-content su-flex su-w-full su-items-center su-justify-end",children:s.jsxs("div",{className:"sass-com-ah2-contentInfo su-stack-center su-relative su-w-full su-gap-2 su-p-4",children:[d?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-ah2-imageStyled su-object-cover",src:await ue(d)}):s.jsx("div",{className:"sass-com-ah2-contentIconStyled su-flex-center",children:s.jsx(o,{})}),s.jsxs("div",{className:"sass-com-ah2-contentAuthor su-stack-center su-md:items-start",children:[s.jsx("h1",{className:"sass-com-ah2-name",children:u}),h&&s.jsx("p",{className:"sass-com-ah2-email",children:f}),p&&(r?s.jsx("div",{className:"sass-com-ah2-description",dangerouslySetInnerHTML:{__html:Ls(m)}}):s.jsx("p",{className:"sass-com-ah2-description",children:m})),s.jsxs("div",{className:"sass-com-ah2-contenSocialNetwork su-flex su-items-center su-gap-4 su-justify-start",children:[g&&s.jsx("a",{href:g,target:"_blank",className:n?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:n?s.jsx(es,{className:"sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0}):s.jsx(zs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0})}),b&&s.jsx("a",{href:b,target:"_blank",rel:"noreferrer",children:s.jsx($s,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-instagram",forceSVG:!0})}),w&&s.jsx("a",{href:w,target:"_blank",rel:"noreferrer",children:s.jsx(ze,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-x",forceSVG:!0})}),A&&s.jsx("a",{href:A,target:"_blank",className:n?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:n?s.jsx(ti,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0}):s.jsx(Ve,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0})}),v&&s.jsx("a",{href:v,target:"_blank","aria-label":"TikTok",rel:"noreferrer",children:s.jsx(Ws,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-tiktok",forceSVG:!0})}),S&&s.jsx("a",{href:S,target:"_blank","aria-label":"YouTube",rel:"noreferrer",children:s.jsx(Ys,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-youtube",forceSVG:!0})}),y&&s.jsx("a",{href:y,target:"_blank","aria-label":"Pinterest",rel:"noreferrer",children:s.jsx(Qs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-pinterest",forceSVG:!0})})]})]})]})})},ai=e=>s.jsxs("section",{className:"sass-com-lnc-content",children:[e.children,s.jsxs("div",{className:"sass-com-lnc-bannerSection",style:e.readestCustomStyles,children:[e.bannerTop,s.jsx(Vs,{content:e.ranking,title:e.readestTitle,videosSectionLabel:e.videosSectionLabel,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),e.banner]})]}),_h=async e=>{const t=Rt(),a={...e,main:{...e.main,title:{...e.main.title,article:Be(e.main.title.article,60)}}};return e&&e.info?s.jsxs("section",{className:"sass-com-sc7-content",children:[s.jsx("a",{className:"sass-com-sc7-linkImage",target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:s.jsxs("div",{style:{position:"relative"},children:[s.jsx("img",{src:await ue(e.preview.sizes[0]?.url||"")}),s.jsx(t,{className:"sass-com-sc7-playStyled saas-image-play-icon"})]})}),s.jsx("div",{className:"sass-com-sc7-newsDescription",children:s.jsx(He,{...a,paths:e.paths})})]}):null},Dh=e=>{let t=[];return e.videoList&&e.videoList.length>0&&(t=e.videoList?.filter(a=>a.info.path!==e.video.info.path)??[]),s.jsx("div",{className:"sass-com-bv4-content",children:s.jsxs(Bs,{className:"sass-com-bv4-contentLayoutVideoSection",children:[s.jsxs("a",{className:"sass-com-bv4-header",href:e.goBackLink??"/videos",children:[s.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"currentColor"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),s.jsxs("div",{className:"sass-com-bv4-videos",children:[s.jsxs("div",{className:"sass-com-bv4-videoContent",style:e.mainVideoStyles,children:[e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0,allow:"autoplay; fullscreen",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups"}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv4-contentFrame",dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),s.jsx("div",{className:"sass-com-bv4-articleSection",children:s.jsx(He,{isTitle:!0,cutSubtitle:!1,...At({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description,!0),paths:e.paths})})]}),s.jsxs("div",{className:"sass-com-bv4-sectionVideoList",style:e.listVideoStyles,children:[e.banner&&s.jsx(be,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&s.jsx("h2",{className:"sass-com-bv4-relatedTitle saas-video-related-title",children:e.relatedName}),Array.isArray(t)&&t.map((a,n)=>T.createElement(_h,{...At(a,!0,!1,!1),key:n,paths:e.paths}))]})]})]})})},he=T.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:n=!1,noHeading:r=!1}=e,o=r?s.jsx("div",{className:"sass-com-sec-title",children:e.title}):a?s.jsx("h1",{className:"sass-com-sec-title",children:e.title}):s.jsx("h2",{className:"sass-com-sec-title",children:e.title});return s.jsxs("section",{className:"sass-com-sec-content",children:[e.title&&s.jsxs("div",{className:["sass-com-sec-titleContent",e.className??""].join(" "),"data-after":`${n}`,children:[s.jsx("hr",{className:"sass-com-sec-startLine"}),e.titleUrl?s.jsx(M,{href:e.titleUrl,children:o}):o,s.jsx("hr",{className:"sass-com-sec-line"}),e.titleUrl&&s.jsx(M,{className:"sass-com-sec-readMore",href:e.titleUrl?.toString()??""})]}),e.title&&s.jsx("hr",{className:["sass-com-sec-bottomLine",e.className??""].join(" ")}),s.jsx("div",{className:"sass-com-sec-childrenContent",ref:t,children:e.children})]})}),Za=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),Js=e=>s.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:"currentColor"})}),qh=()=>s.jsx("div",{className:"sass-com-sb-buttonContent",children:s.jsx("label",{className:"sass-com-sb-buttonStyled",htmlFor:"side-bar-state",children:s.jsx(bt,{className:"sass-com-sb-icon"})})}),Gh=({action:e,placeholder:t,ariaLabel:a})=>s.jsx("div",{className:"sass-com-sb-inputContent",children:s.jsxs("form",{className:"sass-com-sb-inputStyled",action:e,method:"GET",children:[s.jsx("input",{className:"sass-com-sb-buscar",type:"text",name:"query",placeholder:t}),s.jsx("button",{type:"submit","aria-label":a,className:"sass-com-sb-searchSubmit",children:s.jsx(Za,{color:"var(--search-input-icons)"})})]})}),Fh=({item:e,index:t})=>{const a=`accordion_${t}`,n=Array.isArray(e.subitem);return s.jsxs("div",{className:"sass-com-sb-accordionStyled",children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"}}),s.jsx("span",{className:"sass-com-sb-accordionHeading",children:n?s.jsxs("div",{className:"sass-com-sb-accordionSummeryStyled",children:[e.link?s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link,target:e.target,children:e.description}):s.jsx("div",{className:"sass-com-sb-accordionTitle",children:e.description}),s.jsx("label",{className:"sass-com-sb-accordionToggle",htmlFor:a,"aria-label":`Expandir ${e.description}`,children:s.jsx(Js,{className:"sass-com-sb-accordionChevron",width:13,height:13})})]}):s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link??void 0,target:e.target,children:e.description})}),n&&s.jsx("div",{className:"sass-com-sb-accordionDetailsStyled",style:{"--max-height":`${e.subitem.length*45}px`},children:e.subitem.map((r,o)=>s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-subLinkStyled",href:r.link??void 0,target:r.target,children:r.description},o))})]})},jh=({socials:e,copyright:t})=>s.jsxs("div",{className:"sass-com-sb-footerSlider",children:[s.jsx("div",{className:"sass-com-sb-socialMedia",children:Object.keys(e).map(a=>e[a]?.show&&wt[a]?s.jsx("a",{href:e[a].url,target:"_blank",rel:"noreferrer","aria-label":`${e[a].title} link`,className:"sass-com-sb-linkSocialNetwork",children:wt[a]({className:`sass-com-sb-icon ${`sass-com-sb-icon-${a}`}`})},a):null)}),t&&s.jsx("p",{className:"sass-com-sb-copyRights",children:t})]}),Hh=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:n,searchKeyWord:r,searchLink:o,custom_styles:i={}})=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:l,CONFIG_buscar_html:c}=L(),d=l?.buscar?de():"",u=c?".html":"";return s.jsxs("aside",{className:"sass-com-sb-drawerStyled",id:"sidebar-expandable",style:i,children:[s.jsx("input",{type:"checkbox",id:"side-bar-state"}),s.jsxs("section",{className:"sass-com-sb-sidebarCustom",children:[s.jsx(qh,{}),s.jsx(Gh,{action:`${d}${o||"/buscar"}${u}`,placeholder:`${r}...`,ariaLabel:r}),s.jsxs("div",{className:"sass-com-sb-mainContent",children:[s.jsxs("div",{children:[n,e.map((f,h)=>s.jsx(Fh,{item:f,index:h},h))]}),s.jsx(jh,{socials:t,copyright:a})]})]})]})},ni=e=>s.jsx("svg",{width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M1.5 18H25.5C26.325 18 27 17.325 27 16.5C27 15.675 26.325 15 25.5 15H1.5C0.675 15 0 15.675 0 16.5C0 17.325 0.675 18 1.5 18ZM1.5 10.5H25.5C26.325 10.5 27 9.825 27 9C27 8.175 26.325 7.5 25.5 7.5H1.5C0.675 7.5 0 8.175 0 9C0 9.825 0.675 10.5 1.5 10.5ZM0 1.5C0 2.325 0.675 3 1.5 3H25.5C26.325 3 27 2.325 27 1.5C27 0.675 26.325 0 25.5 0H1.5C0.675 0 0 0.675 0 1.5Z",fill:e.color})}),ri=e=>{const{alertZone:t,id:a="close-alert"}=e,n=()=>s.jsx(M,{className:"sass-com-hlm-headLine",href:t?.data[0]?.info.link.url,target:t?.data[0]?.info.link.target,title:t?.data[0]?.main.title.home,children:t?.data[0]?.main?.title.home??""});return s.jsxs(s.Fragment,{children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(t&&t?.data&&t?.data[0]?.main?.title.home)}),t&&t?.data&&t?.data[0]?.main?.title.home&&s.jsxs("div",{id:"alert-chip",className:"sass-com-hlm-content",style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[s.jsxs("div",{className:"sass-com-hlm-live",children:[s.jsx("div",{className:"sass-com-hlm-chipStyled",children:t?.entity?.description}),e.forceShow&&s.jsx(n,{}),s.jsx("label",{htmlFor:a,children:s.jsx(bt,{className:"sass-com-hlm-closeLiveStyled"})})]}),s.jsx(n,{})]})]})},oi=e=>{const{cintillo:t,tapeTitle:a,socials:n}=e,r="",o=t?.findIndex(i=>i.link===r)??0;return(Array.isArray(t)||e.socialIcons)&&s.jsxs("section",{className:"sass-com-htape-content",children:[Array.isArray(t)&&s.jsxs("div",{className:"sass-com-htape-tabs header-page-tape-content",children:[a!==""&&s.jsx("p",{className:"sass-com-htape-title",children:`${a}`}),t&&t[o]&&s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",target:t[o]?.target,href:t[o]?.link,style:{color:t[o]?.link===r?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[o]?.link===r?"700":"400"},children:t[o]?.description},o),t&&t.map((i,l)=>{if(l!==o)return s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",href:i?.link,style:{color:i?.link===r?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===r?"700":"400"},children:i?.description},l)})]}),s.jsx("div",{className:"sass-com-htape-socialNetwork",children:Object.keys(n).map(i=>!i||!n[i]||!wt[i]?null:n[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[i].title+" link",className:"sass-com-htape-linkSocialNetwork",href:n[i].url,children:wt[i]({className:["sass-com-htape-icon",`sass-com-htape-${String(i)}`].join(" ")})},i))})]})},Vh=e=>{const{alertZone:t,custom_styles:a={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=L();return s.jsxs("header",{className:"sass-com-h1sk-headerStyled",style:a,id:"saas-header-sticky",children:[e.socialIcons&&e.headerTape?.sticky&&s.jsx(oi,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{className:`${t&&t?.data&&!e.showAlertPop?"sass-com-h1sk-headerContentAlert":"sass-com-h1sk-headerContent"} center-mobile-header-icon`,children:[s.jsx(za,{id:"button-app",className:"sass-com-h1sk-menuButton",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:s.jsx(ni,{className:"sass-com-h1sk-startIcon",color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27})}),s.jsxs("div",{className:"sass-com-h1sk-iconContent",children:[s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:T.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.icon)}),e.mobileIcon?s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky header-mobile-icon",style:{display:"flex"},children:T.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.mobileIcon())}):null]}),!e.showAlertPop&&t?.data&&s.jsxs("div",{className:"sass-com-h1sk-headLineContent",children:[s.jsx("div",{className:"sass-com-h1sk-headLineTitle headLineTitle",children:t.entity.description?`${t.entity.description}`:""}),s.jsx(M,{className:"sass-com-h1sk-headLine",href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:Be(t.data[0]?.main.title.home??"",120)})]}),s.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:["sass-com-h1sk-buttonSection",t?.data?"sass-com-h1sk-hasAlertZone":"","search-button"].join(" "),children:[s.jsx(M,{block_subPublication:n?.buscar,href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:"sass-com-h1sk-buttonSectionSearch search-button-icon",style:{display:"flex"},children:e.searchIcon??s.jsx(Za,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),e.customComponent&&e.customComponent,!e.showAlertPop&&s.jsx(ri,{alertZone:t,forceShow:e.showAlertPop})]})},zh=e=>{const{items:t}=e;return s.jsx("ul",{className:"sass-com-mopt-ul",children:t.map((a,n)=>s.jsxs("li",{className:"sass-com-mopt-liBefore sass-com-mopt-li",children:[a.link?s.jsxs(M,{block_subPublication:!0,"aria-label":a.description,className:"sass-com-mopt-linkStyled",href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&s.jsx(Js,{})]}):s.jsxs("span",{"aria-label":a.description,className:"sass-com-mopt-linkStyled",children:[a.description,Array.isArray(a.subitem)&&s.jsx(Js,{})]}),Array.isArray(a.subitem)&&s.jsx("ul",{className:"sass-com-mopt-ulContent",children:s.jsx("div",{className:"sass-com-mopt-contentModal",children:a.subitem.map((r,o)=>s.jsx("li",{className:"sass-com-mopt-li",children:s.jsx(M,{block_subPublication:!0,className:"sass-com-mopt-itemLink","aria-label":r.description,href:r.link?r.link:void 0,target:r.target,children:r.description})},o))})})]},n))})},$h=e=>{const{menu:t,alertZone:a,custom_styles:n={},prerender_classes:r}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:o}=L();return s.jsxs("header",{className:"sass-com-h1st-headerStyled",id:"saas-header-static",style:{...n,top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&s.jsx(oi,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:["sass-com-h1st-headerContent",a?.data?"sass-com-h1st-hasAlertZone":""].join(" "),children:[s.jsx("div",{className:"sass-com-h1st-menuButtonSection sass-header-menu-button",children:s.jsxs(za,{className:"sass-com-h1st-menuButton",id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[s.jsx(ni,{color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27}),s.jsx("p",{className:"sass-com-h1st-buttonText",style:{lineHeight:0},children:e.menuText})]})}),s.jsx("div",{className:"sass-com-h1st-logoContent",children:s.jsx(M,{href:"/","aria-label":"Home",className:"header-logo-link",children:T.createElement("span",{className:"sass-com-h1st-logoStyled"},e.icon)})}),s.jsxs("div",{className:"sass-com-h1st-buttonSection sass-header-right-button-section",children:[s.jsx(M,{block_subPublication:o?.buscar,href:e.searchLink?e.searchLink:"/buscar",className:"sass-com-h1st-buttonSectionSearch","aria-label":e.searchKeyWord,style:{display:"flex"},children:s.jsx(Za,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?s.jsxs("div",{className:"sass-com-h1st-headLineContent",children:[s.jsx("p",{className:"sass-com-h1st-headLineTitle headLineTitle",children:a.entity.description?`${a.entity.description}`:""}),s.jsx(M,{className:`sass-com-h1st-headLine ${r?.alert}`,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:Be(a.data[0]?.main.title.home??"",120)})]}):s.jsx("div",{className:"sass-com-h1st-line"}),s.jsx("div",{className:"sass-com-h1st-menuSection",style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&s.jsx(zh,{items:t})})]}),e.customComponent&&e.customComponent]})},Qh=e=>{const{alertZone:t,children:a,sidebar:n,custom_styles:r={}}=e,o=e.childrenContentTag??"div",i=s.jsxs(o,{className:["sass-com-h1-childrenContent",e.showAlertPop?"sass-com-h1-op2":"",t?.data?"sass-com-h1-childrenContentAux":""].join(" "),style:e.showOnlyStickyHeader?{...r,"--hasAlertMargin":"3.6rem !important"}:r,id:"content-layout",children:[e.showAlertPop&&s.jsx(ri,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]});return s.jsxs(s.Fragment,{children:[e.childrenContentPosition==="before-headers"&&i,s.jsx(Vh,{...e}),!e.showOnlyStickyHeader&&s.jsx($h,{...e}),e.childrenContentPosition!=="before-headers"&&i,s.jsx(Hh,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:n,searchLink:e.searchLink,socials:e.socials,copyrigth:e.copyrigth,custom_styles:e.custom_styles})]})},Wh=async e=>{const t=e.info&&typeof e.info=="object"?e.info.image:void 0,a=(t&&typeof t=="object"?t:void 0)||e.image,r=a?.sizes?.find(o=>o.width===100&&o.height===100)?.url||a?.sizes?.[0]?.url||a?.original?.url||"";return r&&await ue(r)||""},ii=({name:e,imageUrl:t})=>s.jsxs(s.Fragment,{children:[t?s.jsx("img",{className:"sass-com-ts-chipImage su-object-cover",src:t,alt:"",loading:"lazy",fetchPriority:"low"}):null,e]}),li=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=L();if(!e?.tags?.length)return null;const a=await Promise.all(e.tags.map(async n=>({item:n,imageUrl:await Wh(n)})));return s.jsx("section",{className:"sass-com-ts-content",children:s.jsxs("div",{className:"sass-com-ts-tags",children:[s.jsx("p",{className:"sass-com-ts-tagStyled",children:e.title?e.title:"Tags:"}),a.map(({item:n,imageUrl:r},o)=>n.approved?s.jsx(M,{block_subPublication:t?.tema,href:Ye(n,e.paths),children:s.jsx("div",{className:["sass-com-ts-chipStyled","sass-com-ts-tagLink",r?"sass-com-ts-chipStyled--withImage":""].filter(Boolean).join(" "),children:s.jsx(ii,{name:n.name,imageUrl:r})})},o):s.jsx("div",{className:["sass-com-ts-chipStyled",r?"sass-com-ts-chipStyled--withImage":""].filter(Boolean).join(" "),children:s.jsx(ii,{name:n.name,imageUrl:r})},o))]})})},ci=async e=>{const{autor:t}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,PUBLIC_LNG:n}=L(),r=de(),o=n==="en",i=t?.addtional,l=t?.info?.name??"",c=t?.info?.fullname??"",d=t?.info?.image?.sizes?.[0]?.url??"",u=o?i?.USER_DESCRIPCION_EN||i?.USER_MIBIO_EN||"":i?.USER_DESCRIPCION||i?.USER_MIBIO||"",f=Ls(u),h=t?.addtional?.USER_USERFB??"",p=t?.addtional?.USER_USERIG??"",m=t?.addtional?.USER_USERTWT??"",g=t?.addtional?.USER_USERLIN??"",b=$e("tiktok",i?.USER_PAGE_TIKTOK),w=$e("youtube",i?.USER_PAGE_YOUTUBE),A=$e("pinterest",i?.USER_PAGE_PINTEREST),v=`${r}/${e.paths.autor}/${l}`,N=u.replace(/<[^>]*>/g,"").replace(/&[^;]+;/g," ").trim().length>360,k=`ja2-bio-toggle-${l}`;return!!t&&s.jsx("section",{className:"sass-com-ja2-contentBox",children:s.jsxs("div",{className:"sass-com-ja2-content",children:[s.jsxs("div",{className:"sass-com-ja2-avatarContent",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:v,children:d?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+l,className:"sass-com-ja2-imageStyled",src:await ue(d)}):s.jsx("div",{className:"sass-com-ja2-contentIconStyled",children:e.autorIcon})}),s.jsxs("section",{className:"sass-com-ja2-journalistSection",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:v,children:c}),s.jsxs("section",{className:"sass-com-ja2-socialNetworkSection",children:[h&&s.jsx("a",{href:h,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),p&&s.jsx("a",{href:p,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[s.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),s.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),s.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_281_2357",children:s.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),m&&s.jsx("a",{href:m,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),g&&s.jsx("a",{href:g,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})}),b&&s.jsx("a",{href:b,target:"_blank","aria-label":"TikTok",rel:"noreferrer",children:s.jsx(Ws,{className:"sass-com-ja2-tiktokStyled",forceSVG:!0,width:24,height:24})}),w&&s.jsx("a",{href:w,target:"_blank","aria-label":"YouTube",rel:"noreferrer",children:s.jsx(Ys,{className:"sass-com-ja2-youtubeStyled",forceSVG:!0,width:24,height:24})}),A&&s.jsx("a",{href:A,target:"_blank","aria-label":"Pinterest",rel:"noreferrer",children:s.jsx(Qs,{className:"sass-com-ja2-pinterestStyled",forceSVG:!0,width:24,height:24})})]})]})]}),N?s.jsxs("div",{className:"sass-com-ja2-bioExpandable",children:[s.jsx("input",{type:"checkbox",id:k,className:"sass-com-ja2-bioToggle"}),s.jsx("div",{className:"sass-com-ja2-article sass-com-ja2-article-clamp",dangerouslySetInnerHTML:{__html:f}}),s.jsxs("div",{className:"sass-com-ja2-bioFooter",children:[s.jsxs("label",{htmlFor:k,className:"sass-com-ja2-bioToggleLink",children:[s.jsx("span",{className:"sass-com-ja2-bioToggleLinkMore",children:String(e.texts.authorViewMore??"Ver más")}),s.jsx("span",{className:"sass-com-ja2-bioToggleLinkLess",children:"Ver menos"})]}),s.jsx("label",{htmlFor:k,className:"sass-com-ja2-bioArrow","aria-label":"Leer más / Leer menos",children:s.jsx("svg",{viewBox:"0 0 24 24",fill:"none",width:"18",height:"18","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),s.jsx("a",{"aria-label":l,className:"sass-com-ja2-bioAuthorLink",href:v,children:String(e.texts.authorViewMore??"Ver más")})]}):s.jsx("div",{className:"sass-com-ja2-article",dangerouslySetInnerHTML:{__html:`${f} <a aria-label="${l}" href="${v}">${String(e.texts.authorViewMore??"Ver más")}</a>`}})]})})},di=async e=>{const{news:t,texts:a}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=L();return t?t.config?.showauthor&&t.authors?.length>1&&s.jsx("div",{className:"sass-com-jg-content su-flex su-w-full su-flex-col su-items-center su-justify-evenly su-gap-0 su-md:flex-row",children:Array.isArray(t.authors)&&t.authors?.map(async r=>s.jsxs("div",{className:"sass-com-jg-contentCard",children:[r.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-jg-imageStyled su-flex-center",src:await ue(r.image?.sizes?.[0]?.url||"")},r.fullname):s.jsx("div",{className:"sass-com-jg-contentIconStyled su-flex-center",children:e.autorIcon},r.fullname),s.jsxs("div",{className:"sass-com-jg-contentInfo",children:[r.internaluser?s.jsx(M,{block_subPublication:n?.autor,className:"sass-com-jg-fullName",href:`/${e.paths.autor}/${r.name}`,children:r.fullname}):s.jsx("p",{className:"sass-com-jg-fullName",children:r.fullname}),r.internaluser&&s.jsx(M,{block_subPublication:n?.autor,className:"sass-com-jg-LearnMoreLink",href:`/${e.paths.autor}/${r.name}`,children:String(a.JournalistGroupLink??"")})]})]},`author-${r.firstname}`))}):(De("JournalistGroup","news"),null)},Zs=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Yh=async e=>{const t=e.img?await ue(e.img):"",a=Zs(e.social?.facebook??""),n=Zs(e.social?.instagram??""),r=Zs(e.social?.twitter??""),o=Zs(e.social?.linkedin??""),i=e.social&&(a||n||r||o);return s.jsx("section",{className:`sass-com-th-content ${e.className}`,children:s.jsxs("div",{className:`sass-com-th-contentInfo ${t?"":"sass-com-th-contentInfoWithoutImg"}`,children:[e.img&&s.jsx("div",{className:"sass-com-th-imageContainer sass-image-tag-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-th-imageStyled su-object-cover",src:t})}),s.jsx("h1",{className:"sass-com-th-name",children:e.tag}),e.description&&s.jsx("div",{className:"sass-com-th-description",dangerouslySetInnerHTML:{__html:e.description}}),e.url&&s.jsx("a",{className:"sass-com-th-urlTag",href:e.url,children:e.url}),i&&s.jsxs("div",{className:"sass-com-th-contenSocialNetwork",children:[a&&s.jsx("a",{href:a,target:"_blank",className:"sass-com-th-socialFacebookIcon sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(zs,{className:"sass-com-th-faceBookIcon",forceSVG:!0})}),n&&s.jsx("a",{href:n,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx($s,{className:"sass-com-th-socialIcon",forceSVG:!0})}),r&&s.jsx("a",{href:r,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(ze,{className:"sass-com-th-socialIcon",forceSVG:!0})}),o&&s.jsx("a",{href:o,target:"_blank",className:"sass-com-th-socialIconLink sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Ve,{className:"sass-com-th-socialIcon",forceSVG:!0})})]})]})})},Xa=s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"20px",fill:"currentColor",children:s.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})});function Kh({googleSourceShare:e,googleProfile:t,whatsAppShare:a,text:n}){return s.jsxs("div",{className:"sass-com-src-container",children:[e&&s.jsxs("a",{className:"sass-com-src-button",href:e,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google Source",width:28,height:28}),n.sourceButtons?.googleSourceShare||"Añádenos como fuente preferida",Xa]}),t&&s.jsxs("a",{className:"sass-com-src-button",href:t,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-news-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google News",width:28,height:28}),n.sourceButtons?.googleProfile||"Google News",Xa]}),a&&s.jsxs("a",{className:"sass-com-src-button",href:a,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-whatsapp-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"WhatsApp",width:28,height:28}),n.sourceButtons?.whatsAppShare||"Sumate al canal de WhatsApp",Xa]})]})}function Jh(e){const{main:t,authors:a,info:n,preview:r,config:o,keywords:i,isVideo:l,isLarge:c,priorityHigh:d,share:u,overImage:f,isTitle:h,paths:p}=e,{CONFIG_videoClipUrl:m}=L(),g=o?.homepreview??"imagen",b=()=>{const y=e.videos?.[0]?.clip;return y?s.jsx("div",{className:"homeCardVideoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,width:"480",height:"535",children:s.jsx("source",{src:`${m}${y}`,type:"video/mp4"})})}):null},w=()=>{if(!e.videos)return null;const y=e.videos?.[0]?.code;return y?s.jsx("iframe",{className:"homeCardVideoIframeContainer",src:`https://www.youtube.com/embed/${y}`,frameBorder:"0",allowFullScreen:!0}):null},A=()=>{if(!e.videos)return null;const y=(e.videos??[]).find(G=>G.type==="video-embedded");if(!y?.code)return null;const k=/src\s*=\s*"([^"]+)"/.exec(y.code),O=k?k[1]:null;if(!O)return null;const $=r.original?.url??r.sizes?.[0]?.url??"",q=tt()??"",B=$.startsWith("http")||$.includes(q)||q===""?$:q+$;return s.jsx("iframe",{className:"homeCardEmbeddedIframeContainer",src:O,frameBorder:"0",allowFullScreen:!0,style:{"--thumbnail-url":`url(${B})`}})},v=()=>{const N=e.gallery??[];return N.length?s.jsx(Fe,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:N.map((k,O)=>{const $=k?.url||k?.id||`gallery-${O}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:n?.link?.url,target:n?.link?.target,children:s.jsx(ve,{preview:k,isVideo:l,isLarge:c,priorityHigh:d})},$)})}):null};let S=null;switch(g){case"fotogaleria":S=s.jsx(v,{});break;case"videoYouTube":S=s.jsx(w,{});break;case"videoEmbedded":S=s.jsx(A,{});break;case"clip":S=s.jsx(b,{});break;case"iframe":S=s.jsx("div",{className:"homeCardIframeContainer",dangerouslySetInnerHTML:{__html:e?.external?.iframe??""}});break;default:S=s.jsx(M,{"aria-label":e?.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:n?.link?.url,target:n?.link?.target,children:s.jsx(ve,{preview:r,isVideo:l,isLarge:c,priorityHigh:d})});break}return s.jsxs("section",{className:"homeCardContent",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"homeCardContentWrapper",children:S}),s.jsx("div",{className:"homeCardNewsDescription",children:s.jsx(He,{main:t,authors:a,info:n,preview:r,share:u,config:o,overImage:f,isTitle:h,paths:p,keywords:i})})]})}const Xs={FaceBook:"facebook",Instagram:"instagram",WhatsApp:"whatsapp",TikTok:"tiktok",Youtube:"youtube",X:"x",Gnews:"gnews",Podcast:"podcast",Telegram:"telegram",LinkedIn:"linkedin",Spotify:"spotify",Threads:"threads",Pinterest:"pinterest"},Rs=()=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M24 12.2727C24 11.4218 23.9221 10.6036 23.7774 9.81818H12.2449V14.4655H18.8349C18.5455 15.96 17.6772 17.2255 16.3748 18.0764V21.0982H20.3488C22.6642 19.0036 24 15.9273 24 12.2727Z",fill:"#4285F4"}),s.jsx("path",{d:"M12.2449 24C15.551 24 18.3228 22.9309 20.3488 21.0982L16.3748 18.0764C15.2839 18.7964 13.8924 19.2327 12.2449 19.2327C9.06122 19.2327 6.35622 17.1273 5.38776 14.2909H1.31354V17.3891C3.32839 21.3055 7.45826 24 12.2449 24Z",fill:"#34A853"}),s.jsx("path",{d:"M5.38776 14.28C5.14286 13.56 4.99814 12.7964 4.99814 12C4.99814 11.2036 5.14286 10.44 5.38776 9.72V6.62182H1.31354C0.478664 8.23636 0 10.0582 0 12C0 13.9418 0.478664 15.7636 1.31354 17.3782L4.48609 14.9564L5.38776 14.28Z",fill:"#FBBC05"}),s.jsx("path",{d:"M12.2449 4.77818C14.0482 4.77818 15.6512 5.38909 16.9314 6.56727L20.4378 3.13091C18.3117 1.18909 15.551 0 12.2449 0C7.45826 0 3.32839 2.69455 1.31354 6.62182L5.38776 9.72C6.35622 6.88364 9.06122 4.77818 12.2449 4.77818Z",fill:"#EA4335"})]}),ea=(e,t)=>a=>s.jsx("img",{className:a,src:ne(e),alt:t,fetchPriority:"low",loading:"lazy"}),Zh={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Wa,{className:e,forceSVG:!0}),solid:e=>s.jsx(es,{className:e,forceSVG:!0}),custom:ea("/ja-facebook.svg","Facebook")}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(ze,{className:e,forceSVG:!0}),solid:e=>s.jsx(ze,{className:e,forceSVG:!0}),custom:ea("/ja-x.svg","X")}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Gs,{className:e,forceSVG:!0}),solid:e=>s.jsx(qs,{className:e,forceSVG:!0}),custom:ea("/ja-whatsapp.svg","Whatsapp")}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ve,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ve,{className:e,forceSVG:!0}),custom:ea("/ja-linkedin.svg","LinkedIn")}}};function Xh({noteShare:e,GoogleProfile:t}){const a=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");if(!e)return null;const n=e.variant==="custom",r=gt();return s.jsxs("div",{className:"sass-com-ja5-socialNetworkSection",children:[e.options?.map(o=>{const i=Zh[o];if(!i)return null;const l=i.icon[e.variant]??i.icon.solid,c=i.url(a);return s.jsx(M,{href:c,target:"_blank",rel:"noopener noreferrer","aria-label":`${r.shareOnPrefix??"Compartir en"} ${o}`,className:`sass-com-ja5-socialButton sass-com-ja5-${o.toLowerCase()}Button sass-com-ja5-${o.toLowerCase()}Styled`,children:l("")},o)}),s.jsx("button",{type:"button","data-text":r.linkCopied??"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja5-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(Fs,{forceSVG:!n})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja5-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(Ya,{forceSVG:!n})}),e?.googleProfile&&e?.googleProfile.likeSocial&&e?.googleProfile.url!==""&&s.jsxs(M,{href:e?.googleProfile.url??"",className:"sass-com-ja5-socialActionLink sass-com-ja5-socialActionLinkGoogleMobile","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:String(t??"Seguir")}),s.jsx(Rs,{})]})]})}const ui=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:n}=e,{CONFIG_shareOnlyWhatsApp:r,DATE_TIMEZONE:o="America/Mexico_City",CONFIG_commentsV2:i,EXPERIMENTAL_commentsV2Paths:l}=L(),c=t.info?.link?.internal??"",d=i||(l??[]).some(w=>c===w||c.endsWith(w)),u=de(),f=w=>`${u}/${e.paths.autor}/${w}`,h=t.authors.map(w=>w.internaluser?`<a href="${f(w.name)}">${w.fullname}</a>`:w.fullname).join(", "),m=t.authors.length===1?"sass-com-ja5--singleAuthor":"sass-com-ja5--multiAuthor",b=`sass-com-ja5-imageContent--count${Math.min(t.authors.length,6)}`;return t.config?.showauthor&&s.jsx("div",{className:`sass-com-ja5-content sass-journalist-articule-5 ${m}`,children:s.jsxs("div",{className:"sass-com-ja5-avatarContent",children:[s.jsxs("div",{className:"sass-com-ja5-socialActionsRow",children:[s.jsxs("div",{className:"sass-com-ja5-socialActionDiv",children:[e.noteShare?.customButton&&(d?s.jsxs("a",{href:"#comentarios",className:"sass-journalist-articule-custom-button sass-com-ja5-comentarios","aria-label":"Custom button for the journalist article",children:[s.jsx("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M0 22V4C0 3.45 0.195833 2.97917 0.5875 2.5875C0.979167 2.19583 1.45 2 2 2H12.1C12.0333 2.33333 12 2.66667 12 3C12 3.33333 12.0333 3.66667 12.1 4H2V17.125L3.15 16H18V7.9C18.3833 7.81667 18.7417 7.70417 19.075 7.5625C19.4083 7.42083 19.7167 7.23333 20 7V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H4L0 22ZM14.875 5.125C14.2917 4.54167 14 3.83333 14 3C14 2.16667 14.2917 1.45833 14.875 0.875C15.4583 0.291667 16.1667 0 17 0C17.8333 0 18.5417 0.291667 19.125 0.875C19.7083 1.45833 20 2.16667 20 3C20 3.83333 19.7083 4.54167 19.125 5.125C18.5417 5.70833 17.8333 6 17 6C16.1667 6 15.4583 5.70833 14.875 5.125Z",fill:"currentColor"})}),s.jsx("span",{children:String(n.CommentButtonJournalist??"Sumate al debate")})]}):s.jsx("button",{type:"button",className:"sass-journalist-articule-custom-button sass-com-ja5-comentarios","data-hydrate":"CustomButton","aria-label":"Custom button for the journalist article"})),r&&s.jsxs("a",{className:"sass-com-ja5-socialActionLink",href:a[Xs.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]}),s.jsx("span",{children:String(n.WhatsAppLinkJournalist??"")})]}),e.noteShare?.googleSourceShare&&s.jsxs(M,{href:e.noteShare?.googleSourceShare??"",className:"sass-com-ja5-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M12.6458 13.125L15.4896 11.4063L18.3333 13.125L17.5833 9.875L20.0833 7.71875L16.8021 7.4375L15.4896 4.375L14.1771 7.4375L10.8958 7.71875L13.3958 9.875L12.6458 13.125ZM13.2396 21.25H20.2396C20.0938 21.7917 19.8438 22.2292 19.4896 22.5625C19.1354 22.8958 18.6771 23.1042 18.1146 23.1875L4.48958 24.8438C3.80208 24.9479 3.18229 24.7865 2.63021 24.3594C2.07813 23.9323 1.76042 23.375 1.67708 22.6875L0.0208333 9.03125C-0.0625 8.34375 0.104167 7.72917 0.520833 7.1875C0.9375 6.64583 1.48958 6.33333 2.17708 6.25L3.61458 6.0625V8.5625L2.48958 8.71875L4.17708 22.375L13.2396 21.25ZM8.61458 18.75C7.92708 18.75 7.33854 18.5052 6.84896 18.0156C6.35938 17.526 6.11458 16.9375 6.11458 16.25V2.5C6.11458 1.8125 6.35938 1.22396 6.84896 0.734375C7.33854 0.244792 7.92708 0 8.61458 0H22.3646C23.0521 0 23.6406 0.244792 24.1302 0.734375C24.6198 1.22396 24.8646 1.8125 24.8646 2.5V16.25C24.8646 16.9375 24.6198 17.526 24.1302 18.0156C23.6406 18.5052 23.0521 18.75 22.3646 18.75H8.61458ZM8.61458 16.25H22.3646V2.5H8.61458V16.25Z",fill:"#363131"})}),s.jsx("span",{children:String(n.GoogleSource??"Añadir como fuente preferida")})]}),e.noteShare?.googleProfile&&!e.noteShare?.googleProfile.likeSocial&&e.noteShare?.googleProfile.url!==""&&s.jsxs(M,{href:e.noteShare?.googleProfile.url??"",className:"sass-com-ja5-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx(Rs,{}),s.jsx("span",{children:String(n.GoogleProfile??"Seguir")})]})]}),s.jsx("div",{className:"sass-com-ja5-shareButtonsWrapper","data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(Xh,{noteShare:e.noteShare})})]}),s.jsxs("section",{className:["sass-com-ja5-journalistSection",m,t.config?.showtime&&"sass-com-ja5-journalistSection--withDate"].filter(Boolean).join(" "),children:[s.jsxs("div",{className:"sass-com-ja5-journalistMain",children:[s.jsx("div",{className:`sass-com-ja5-imageContent ${b}`,children:Array.isArray(t.authors)&&t.authors?.map(async w=>w.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+w.fullname,className:"sass-com-ja5-imageStyled sass-com-ja5-imageAutor su-object-cover su-flex-center",src:await ue(w.image.sizes[0]?.url||"")},w.fullname):s.jsx("div",{className:"sass-com-ja5-contentIconStyled sass-com-ja5-imageAutor su-flex-center",children:e.autorIcon},w.fullname))}),s.jsx("div",{className:`sass-com-ja5-journalistInfoLink ${m}`,dangerouslySetInnerHTML:{__html:`${n.JournalistPrefix} <span class="sass-com-ja5-journalistNames">${h??"Redaccion"}</span>`}})]}),t.config?.showtime&&s.jsx("time",{className:"sass-com-ja5-journalistInfoDate",dateTime:Ie(t.info.date.modified,o),...je(t.info.date.modified,void 0,"note"),children:Dt(t.info.date.modified)})]})]})})},Ot=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=L(),n=`${e?.authors[0]?.fullname} - `,r=e?.config?.showtime&&e.config?.showauthor?je(e.info?.date?.modified,n):e?.config?.showtime?je(e.info?.date?.modified):{},o=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${n}${Te(e.info?.date?.modified)}`;if(e.config?.showauthor)return e?.authors[0]?.fullname;if(e?.config?.showtime)return Te(e.info?.date?.modified)},i=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const c=e.keywords.tags[0],d=c.name;return c.approved?s.jsxs("h3",{children:[" ",s.jsx(M,{"aria-label":d,className:"sass-bmd-sup-tagmx",block_subPublication:a?.tema,href:Ye(c,e.paths),children:d})]}):s.jsx("div",{className:"sass-bmd-sup-tagmx",children:d})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tagmx",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},l=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const c=e.keywords.tags[0],d=c.name;return c.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":d,className:"sass-bmd-sup-tag",block_subPublication:a?.tema,href:Ye(c,e.paths),children:d})}):s.jsx("div",{className:"sass-bmd-sup-tag",children:d})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tag",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return s.jsxs("section",{className:"sass-bmd-sup-content destacado-super-content",children:[s.jsx(M,{href:e?.info?.link?.url,target:e?.info?.link?.target,"aria-label":e?.main?.title?.home,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:s.jsx(ve,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),s.jsxs("div",{className:"sass-bmd-sup-contentNews",style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[s.jsx(i,{}),s.jsxs("div",{style:{position:"relative"},children:[s.jsx(l,{}),s.jsx(M,{className:pt("sass-bmd-sup-linkTitle",e.speculationPrerenderClass),href:e?.info?.link?.url,target:e?.info?.link?.target,children:s.jsx("h1",{className:"sass-bmd-sup-titular",style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&s.jsx("div",{className:"sass-bmd-sup-description",dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&s.jsx(s.Fragment,{children:e.authors[0]?.internaluser?s.jsx(M,{block_subPublication:a?.autor,href:`/${e.paths?.autor??"autor"}/${e?.authors[0]?.name}`,className:"sass-bmd-sup-correspondent",...r,children:o()}):s.jsx("p",{className:"sass-bmd-sup-correspondentLink",...r,children:o()})})]})]})},hi=e=>{const{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,itemReverseOrder:l,imageSize:c,showSuper:d,textPosition:u,heightImageOverwrite:f,heightImageOverwriteMobile:h}=e;return s.jsxs("section",{className:"su-grid su-w-full su-gap-8 sass-bmd-dd-content",children:[d?s.jsx("section",{style:{...e.customSectionCardStyles},children:s.jsx(Ot,{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,paths:e.paths,textPosition:u,heightImageOverwrite:f,heightImageOverwriteMobile:h,speculationPrerenderClass:e.speculationPrerenderClass})}):s.jsx(Ue,{...e,main:t,authors:a,info:n,preview:r,isVideo:o,config:i,speculationPrerenderClass:e.speculationPrerenderClass,priorityHigh:!0,isTitle:!0}),e.banners&&s.jsx(be,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsx(Hs,{block:e.block,itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})},Rh="w:412,h:231,t:2;",ta=e=>Array.isArray(e)?e:[],e1=()=>{const e=Rt();return s.jsx("div",{className:"sass-bmd-ddl-fallback","aria-hidden":"true",children:s.jsx(e,{className:"sass-bmd-ddl-fallbackPlayIcon"})})};async function t1(e){const{main:t,info:a,preview:n,config:r,isVideo:o,commonServices:i}=e,l=r?.homepreview,c=async()=>{if(!i||!a?.link?.internal)return null;try{return(await i.getNewsMultimedia({path:a.link.internal,imagesizes:Rh}))?.data?.data?.[0]??null}catch{return null}};let d=null;switch(l){case"fotogaleria":{const u=await c(),f=ta(u?.gallery);f.length>0&&(d=s.jsx(Fe,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:f.map((h,p)=>{const m=h?.url||h?.id||`gallery-${p}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"sass-bmd-ddl-image",title:t?.title?.section,href:a?.link?.url,target:a?.link?.target,children:s.jsx(Va,{preview:n,isVideo:o})},m)})}));break}case"videoYouTube":{const u=await c(),f=ta(u?.videos).find(h=>h?.type==="video-youtube")?.code;f&&(d=s.jsx("iframe",{className:"sass-bmd-ddl-videoIframeContainer",src:`https://www.youtube.com/embed/${f}`,frameBorder:"0",allowFullScreen:!0}));break}case"videoEmbedded":{const u=await c(),f=ta(u?.videos).find(h=>h?.type==="video-embedded");if(f?.code){const p=/src\s*=\s*"([^"]+)"/.exec(f.code)?.[1];p&&(d=s.jsx("iframe",{className:"sass-bmd-ddl-embeddedIframeContainer",src:p,frameBorder:"0",allowFullScreen:!0}))}break}case"iframe":{const u=e.external?.iframe??"";u.trim()&&(d=s.jsx("div",{className:"sass-bmd-ddl-iframeContainer",dangerouslySetInnerHTML:{__html:u}}));break}case"videoFlash":{const u=await c(),f=ta(u?.videos).find(h=>h?.type==="video-link");f?.code&&(d=s.jsx("iframe",{src:f.code,frameBorder:"0",allowFullScreen:!0,className:"sass-bmd-ddl-embeddedIframeContainer"}));break}case"imagen":{n&&(d=s.jsx(M,{"aria-label":e.main?.title?.section,className:"sass-bmd-ddl-image",title:t?.title?.section,href:a?.link?.url,target:a?.link?.target,children:s.jsx(ve,{preview:n})}));break}}return s.jsx("section",{className:"sass-bmd-ddl-contentHomeCard",children:d??s.jsx(e1,{})})}const s1=e=>{const{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,itemReverseOrder:l,imageSize:c,commonServices:d}=e;return s.jsxs("section",{className:"sass-bmd-ddl-content",children:[s.jsx("div",{className:"sass-bmd-ddl-sectionCardWrapper",children:s.jsx(Ue,{...e,main:t,authors:a,info:n,preview:r,isVideo:o,config:i,isTitle:!0,priorityHigh:!0,speculationPrerenderClass:e.speculationPrerenderClass})}),s.jsxs("div",{className:"sass-bmd-ddl-newsDescriptionWrapper",children:[e.banners&&s.jsx(be,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsxs("section",{children:[s.jsx("div",{className:"sass-bmd-ddl-playerWrapper",style:e.customLiveStyles,children:s.jsx(t1,{...e.block[0],paths:e.paths,commonServices:d})}),s.jsx(Hs,{block:e.block.slice(2,4),itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})]})]})},a1=({content:e,customLargeSection:t,customSmallSection:a,paths:n,speculationPrerenderClass:r})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&s.jsxs("section",{className:"sass-bmd-dnh-content",children:[s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnh-firstSection",children:s.jsx(Ot,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})}),s.jsx("div",{style:a,className:"su-flex su-flex-col su-gap-2 su-w-full su-h-auto su-md:gap-0 sass-bmd-dnh-secondSection",children:e.map((i,l)=>l>0&&T.createElement(Ot,{...i,key:l,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r}))})]})},n1=({content:e,customLargeSection:t,customSlimSection:a,paths:n,speculationPrerenderClass:r})=>Array.isArray(e)&&e.length>0&&s.jsx("section",{className:"su-grid su-w-full su-gap-2 sass-bmd-dnv-content",children:e.map((o,i)=>i===0?s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnv-firstSection",children:s.jsx(Ot,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})},i):s.jsx("section",{style:a,children:T.createElement(Ot,{...o,key:i,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})},i))}),fi=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=L(),n=pt("sass-com-bh-title",e.speculationPrerenderClass),r=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],i=o.name;return o.approved?s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{"aria-label":i,className:"sass-com-bh-sectionDescription",block_subPublication:a?.tema,href:Ye(o,e.paths),children:i})}):s.jsx("div",{className:"sass-com-bh-sectionDescription",children:i})}else if(e.mainNew.info?.section?.url)return s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{className:"sass-com-bh-sectionDescription",href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return s.jsxs("div",{className:"sass-com-bh-content",children:[s.jsx(r,{}),s.jsx(M,{className:n,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-com-bh-subtitle",children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&s.jsx(M,{href:e.goTo.url,className:"sass-com-bh-linkStyled",children:e.goTo.description})]})},mi=e=>{const{content:t,title:a,isVideo:n,priorityHigh:r=!1,isLarge:o}=e;if(!t||!t[0]||t.length===0)return;const i=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),l={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:i?t[0].main.title.home:t[0].main.title.section}}},c=t.slice(1),d=l;return l&&c&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"su-flex su-flex-col-reverse su-overflow-hidden sass-bd-dn-headerSection",children:[s.jsx(fi,{mainNew:l,goTo:e.goTo,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),s.jsx(Wo,{homepreview:l.config?.homepreview,videos:d.videos,external:l.external,preview:l.preview,linkClassName:"sass-bd-dn-headerSectionLink sass-com-sc1-image",linkHref:l?.info?.link?.url,linkTarget:l?.info?.link?.target,linkTitle:l.main?.title?.section,isVideo:n,isLarge:o,priorityHigh:r})]}),s.jsxs("div",{className:"su-grid sass-bd-dn-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(c)&&c.map((u,f)=>{const h={...u,main:{...u.main,title:{...u.main.title,section:i?u.main.title.home:u.main.title.section}}};return s.jsx("div",{style:{order:f},children:s.jsx(Ue,{...h,isVideo:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},f)})]})]})},sa=async e=>{const{data:t,autorIcon:a,speculationPrerenderClass:n}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:r}=L(),o=Array.isArray(t?.authors)?t.authors[0]:void 0,i=o?.image?.sizes?.[0]?.url??"",l=i?await ue(i):"",c=()=>t?.config?.showtime?`${Te(t.info?.date?.modified)}`:"",d=s.jsxs("div",{className:"sass-com-oc2-autorContent",children:[l?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-oc2-image",src:l,alt:o?.fullname??""}):s.jsx("div",{className:"sass-com-oc2-contentIcon",children:a}),s.jsx("p",{className:"sass-com-oc2-autorName",children:Be(o?.fullname??"Redacción",18)}),s.jsx("p",{className:"sass-com-oc2-time",...t?.config?.showtime?je(t.info?.date?.modified):{},children:c()})]});return s.jsxs("div",{className:"sass-com-oc2-content",children:[o?.internaluser?s.jsx(M,{block_subPublication:r?.autor,href:o.internaluser?`/${e.paths.autor}/${o?.name}`:"#",children:d}):d,s.jsxs("div",{className:"sass-com-oc2-boxInformationContent",children:[s.jsx(M,{className:n?`${n} sass-com-oc2-title`:"sass-com-oc2-title",href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),s.jsx("p",{className:"sass-com-oc2-comment",children:Be(t?.main?.subtitle?.striped||"")})]})]})};function r1(e){const t=new Array(e.length),a=e.length/2;for(let n=0;n<e.length;n++)n%2===0?t[Math.floor(n/2)]=e[n]:t[a+Math.floor(n/2)]=e[n];return t}const o1=e=>{const{isOpinion:t=!1}=e,a=o=>s.jsx("div",{className:"sass-bs-mo-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mo-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},o),n=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];o===2&&n.push(a(o)),i&&n.push(s.jsx("div",{className:"sass-bs-mo-boxPosition",style:{order:o},children:s.jsx(sa,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${o}`))}const r=n.length%2===0?r1(n):n;return s.jsx("section",{style:e.customStyles,children:s.jsx(he,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:s.jsxs("div",{className:"sass-bs-mo-content",children:[s.jsx("div",{className:"sass-bs-mo-contentFlex",children:r}),s.jsx("div",{className:"sass-bs-mo-bannerContent",children:e.halfPageBanner})]})})})},i1=e=>{const{showTitle:t=!0}=e;return s.jsxs("div",{className:"sass-bs-eb1-content",children:[t&&s.jsx("p",{className:"sass-bs-eb1-title",children:"Editorial"}),s.jsx(He,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},l1=e=>{const{news:t}=e,a=e.isHome??!1;return Array.isArray(t)&&s.jsxs("div",{className:"sass-bs-m2c-content",children:[s.jsxs("div",{className:"sass-bs-m2c-newsContent",children:[e.bannerArray&&e.bannerArray.map((n,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition banner-context",style:{order:2+5*r},children:s.jsx("div",{className:"sass-bs-m2c-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:n})})},r)),t.map((n,r)=>{const o={...n,main:{...n.main,title:{...n.main.title,section:a?n.main.title.home:n.main.title.section}}};return s.jsx("div",{className:"sass-bs-m2c-boxPosition",style:{order:r},children:s.jsx(Ue,{...o,share:e.share,paths:e.paths})},r)})]}),s.jsx("div",{className:"sass-bs-m2c-bannerContent",children:e.halfPageBanner})]})},c1=e=>s.jsxs(s.Fragment,{children:[s.jsx(zo,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction,linkUrl:e.linkUrl}),s.jsx($o,{...e})]}),pi=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?"sass-bs-m3c-contentSeparator":"",n=[];let r=0,o=1;for(let i=0;i<t.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(n.push(s.jsx("section",{className:a(r),children:e.banners?.some(u=>u.key===`${e.slot_id}_${o}`)&&s.jsx(be,{banners:e.banners,name:`${e.slot_id}_${o}`})},r)),r++,o++);const l=e.isVideo?At(t[i],e.showVideoTime,e.showVideosubtitle,e.showVideoAuthor):t[i];if(!l)continue;const c=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),d={...l,main:{...l.main,title:{...l.main.title,section:c?l.main.title.home:l.main.title.section}}};n.push(s.jsx("section",{className:a(r),children:s.jsx(Ue,{...d,isVideo:e.isVideo,paths:e.paths,speculationPrerenderClass:Do(r,e.speculationPrerenderClass,e.speculationPrerender)})},r)),r++}return n.length===2&&n.push(s.jsx("div",{},r)),s.jsx("div",{className:`${e.hasLines?"sass-bs-m3c-newsContentWithLines":"sass-bs-m3c-newsContentWithoutLines"} sass-bs-m3c-newsContent`,children:n})};function d1(e){const t=new Array(e.length),a=e.length/2;for(let n=0;n<e.length;n++)n%2===0?t[Math.floor(n/2)]=e[n]:t[a+Math.floor(n/2)]=e[n];return t}const u1=e=>{const t=e.isHome??!1,a=s.jsx("div",{className:"sass-bs-mbn-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mbn-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},"banner-static"),n=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];if(o===2&&n.push(a),i){const l={...i,main:{...i.main,title:{...i.main.title,section:t?i.main.title.home:i.main.title.section}}};n.push(s.jsx("div",{className:"sass-bs-mbn-boxPosition",style:{order:o},children:s.jsx(He,{...l,paths:e.paths})},`description-block-2-odd-${o}`))}}n.length%2!==0&&n.push(s.jsx("div",{style:{order:n.length}},"extra_div"+n.length));const r=d1(n);return s.jsx(he,{title:e.title,titleUrl:e.titleUrl,children:s.jsxs("div",{className:"sass-bs-mbn-content",children:[s.jsx("div",{className:"sass-bs-mbn-contentFlex",children:r}),s.jsx("div",{className:"sass-bs-mbn-bannerContent",children:e.halfPageBanner})]})})},gi=e=>s.jsx(he,{title:e.title,titleUrl:e.titleUrl,children:s.jsx(pi,{content:e.content,paths:e.paths,slot_id:e.slot_id,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle,speculationPrerender:e.speculationPrerender,speculationPrerenderClass:e.speculationPrerenderClass})}),bi=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m14-newsContent ${e.hasLines?"sass-bd-m14-contentSeparator":""}`,children:t?.map((n,r)=>{const o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i={...n,main:{...n.main,title:{...n.main.title,section:o?n.main.title.home:n.main.title.section}}};return s.jsx("section",{children:s.jsx(Ue,{...i,share:e.share,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},r)})})})},wi=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m15-newsContent ${e.hasLines?"sass-bd-m15-contentSeparator":"sass-bd-m15-newsContentWhitoutLine"}`,children:t.map((n,r)=>{const o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i={...n,main:{...n.main,title:{...n.main.title,section:o?n.main.title.home:n.main.title.section}}};return s.jsx("section",{children:s.jsx(Ue,{...i,share:e.share,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},r)})})})},Ai=e=>{const{content:t,title:a,isVideo:n=!0}=e;if(!t||t.length===0)return;const r=t[0],o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i=t.slice(1);return r&&i&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"sass-bd-dv-headerSection",children:[s.jsx(fi,{goTo:e.goTo,mainNew:At(r),paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),s.jsx(M,{className:"sass-bd-dv-headerSectionLink",href:r?.info?.link.url,target:r?.info?.link.target,"aria-label":"Video",children:s.jsx(ve,{preview:{sizes:r?.main?.image.sizes,description:r?.main?.image.description},isVideo:n,isLarge:!0})})]}),s.jsxs("div",{className:"sass-bd-dv-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,c)=>{const d=At(l),u={...d,main:{...d.main,title:{...d.main.title,section:o?d.main.title.home:d.main.title.section}}};return s.jsx("div",{style:{order:c},children:T.createElement(Ue,{...u,isVideo:n,key:c,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},c)})]})]})},h1=async e=>{const{showNewsLikeTitle:t=!1,speculationPrerenderClass:a}=e;return e&&e.info?s.jsxs("section",{className:"sass-com-sc6-content",style:{"--heightImageOverwrite":"100%"},children:[s.jsx(M,{className:"sass-com-sc6-linkImage",target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:s.jsx(ve,{preview:e.preview})}),s.jsx("div",{className:"sass-com-sc6-textContent",children:s.jsx(He,{...e,paths:e.paths,speculationPrerenderClass:a})})]}):null},yi=e=>{if(!e.content||e.content.length===0)return;const t=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return s.jsx(he,{title:e.title,children:s.jsx("div",{className:`su-grid sass-bd-m13c-content ${e.hasLines?"sass-bd-m13c-contentSeparator":""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,n)=>{const r={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx("section",{className:e.hasLines?"sass-bd-m13-hasLinesBlock":"",children:T.createElement(h1,{...r,key:n,showNewsLikeTitle:e.showNewsLikeTitle,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},n)})})})},Ci=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(Fe,{slot_id:n,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:s.jsx(ts,{...l,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},i)})})})},f1=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=L(),{data:a,speculationPrerenderClass:n}=e,r=pt("sass-com-opt1-linkStyled",n);return s.jsxs("div",{className:"sass-com-opt1-content",children:[Array.isArray(a.authors)&&a?.authors[0]?.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-opt1-imageStyled",src:await ue(a?.authors[0]?.image?.sizes[0]?.url||""),alt:a?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-opt1-contentIcon",children:e.autorIcon}),s.jsxs("div",{className:"sass-com-opt1-boxInformation",children:[s.jsx("p",{className:"sass-com-opt1-authorName",children:a?.authors[0]?.internaluser?s.jsx(M,{block_subPublication:t?.autor,href:a.authors[0]?.internaluser?`/${e.paths.autor}/${a?.authors[0]?.name}`:"#",children:a?.authors[0]?.fullname??"Redacción"}):a?.authors[0]?.fullname??"Redacción"}),s.jsx("p",{className:"sass-com-opt1-title",children:s.jsx(M,{className:r,href:a?.info?.link?.url,target:a?.info?.link?.target,children:Be(a?.main?.title?.home,40)})}),s.jsx("p",{className:"sass-com-opt1-comment",children:a?.main?.subtitle?.striped}),s.jsx("p",{className:"sass-com-opt1-dateText",children:Ae(a.info.date.modified).locale("es").format("DD [De] MMMM")})]})]})},vi=e=>{const t=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return s.jsx(he,{titleUrl:e.titleUrl,title:e.title,children:s.jsx(Fe,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,n)=>{const r={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx(f1,{autorIcon:e.autorIcon,data:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},n)})})})},Si=({content:e,title:t,slot_id:a="video-carousel",titleUrl:n,identificador:r=0})=>{if(!e||e.length===0)return null;const o=Rt();return s.jsx("div",{style:{"--carrousel-button-top":"230px"},children:s.jsx(he,{title:t,titleUrl:n,children:s.jsx(Fe,{slot_id:a,cardWidth:330,paginationCircle:!0,children:e.map(async(i,l)=>s.jsxs("div",{className:"sass-bd-vc-card",children:[s.jsxs("a",{href:i.info?.link?.url,className:"sass-bd-vc-imageWrapper",children:[s.jsx("img",{src:await ue(i?.main?.image?.sizes[0]?.url??""),alt:i.main?.title||"Video",className:"sass-bd-vc-image",width:329,height:485,loading:r===0&&l<4?"eager":"lazy",fetchPriority:r===0&&l<4?"high":"low",decoding:"async"}),s.jsx(o,{className:"sass-bd-vc-playIcon"})]}),s.jsxs("div",{className:"sass-bd-vc-cardContent",children:[s.jsx("a",{href:i.info?.link?.url,className:"sass-bd-vc-cardTitle",children:i?.main?.title}),s.jsx("div",{className:"sass-bd-vc-time",children:Te(i?.info?.date?.modified??i?.info?.date?.created)})]})]},l))})})})},Ra=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent"});case"columnistasnacionales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(sa,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistaslocales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(sa,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistas":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(sa,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});default:return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Ue,{...t,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})}},m1=e=>{const{data:t,currentPage:a,banners:n,slug:r,ranking:o,pathname:i,texts:l={},custom_bannerPosition:c}=e,d=c||{3:1,8:2,13:3},u=d?Object.keys(d).map(f=>parseInt(f)):[];switch(e.option){case"op1":return s.jsx(ai,{ranking:o,readestTitle:l.readestTitle??"",videosSectionLabel:l.videosSectionTitle,paths:e.paths,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(be,{banners:n??[],name:"right_1"}),banner:s.jsx(be,{banners:n??[],name:"right_2"}),children:s.jsx("section",{className:"sass-pg-sec-content",children:t.length>0?s.jsx(Ja,{className:["sass-pg-sec-newsContentSection","padding-0"].join(" "),paginatorComponent:s.jsx(Ka,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((f,h)=>s.jsxs(T.Fragment,{children:[u.includes(h+1)&&s.jsx("div",{className:"sass-pg-sec-itemContent banner-context",children:s.jsx(be,{banners:n??[],name:`block_2_${d[h+1]}`})}),s.jsx(Ra,{autorIcon:e.autorIcon,item:f,option:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&h<e.speculationPrerender.length?e.speculationPrerender.class:void 0},h)]},h))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})})});case"op2":return s.jsx(s.Fragment,{children:t.length>0?s.jsx(Ja,{className:"padding-0",paginatorComponent:s.jsx(Ka,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((f,h)=>s.jsxs(T.Fragment,{children:[u.includes(h+1)&&s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(be,{banners:n??[],name:`block_2_${d[h+1]}`})}),s.jsx(Ra,{autorIcon:e.autorIcon,item:f,option:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&h<e.speculationPrerender.length?e.speculationPrerender.class:void 0},h)]},h))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})});default:return s.jsx(s.Fragment,{})}},p1=e=>{const{data:t}=e;return s.jsx("section",{className:"sass-pg-cont-content",children:t.map((a,n)=>s.jsx("div",{className:"sass-pg-cont-contactInfoContent",dangerouslySetInnerHTML:{__html:a.body.rendered}},n))})},g1=e=>s.jsxs("section",{className:"sass-com-lnoc-container",children:[s.jsx("div",{className:"sass-com-lnoc-note",children:e.children}),s.jsx("div",{className:"sass-com-lnoc-commercial",children:s.jsxs("div",{className:"sass-com-lnoc-commercialContent",children:[e.slug==="liveblogs"&&s.jsx(ei,{itemList:e.itemList}),e.bannerTop,s.jsx(Vs,{content:e.ranking,title:String(e.texts.readestTitle??""),videosSectionLabel:e.texts.videosSectionTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),s.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),s.jsx("div",{className:"sass-com-lnoc-complement",children:e.complement})]}),Ni=e=>{const t=e.option==="liveblogs",a=e.subtitleBeforeImage?"sass-pg-news-headerSection--subtitleBeforeImage":"",n=()=>{if(!e.news[0]?.main?.title)return De("HeaderSectionComponent","news[0].main.title"),null;const r={...e.news[0],config:{...e.news[0]?.config??{},zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{...e.news[0]?.info?.link,url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return s.jsx("header",{className:a||void 0,style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"auto","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.liveblogs},children:s.jsx(Ro,{...r,commonServices:e.commonServices,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return s.jsx("header",{className:["sass-pg-news-contentHeader",a].filter(Boolean).join(" "),style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.common},children:s.jsx(He,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!0,colorSubTitle:"black",isTitle:!0,paths:e.paths,newsDescriptionSectionTag:e.newsDescriptionSectionTag})})}};return s.jsxs(s.Fragment,{children:[s.jsx(n,{}),s.jsx(st,{banners:e.banners,index:1,scope:e.scope}),!t&&e.commonServices&&s.jsx(Xo,{news:e.news[0],commonServices:e.commonServices})]})},b1=e=>s.jsx("section",{className:"su-w-full sass-com-ccard-content",id:e.id,children:e.children}),w1=async(e,t,a)=>{if(!a)return e;const n=/(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g,r=[...e.matchAll(n)];let o=e;for(const i of r){const l=i[1],c=i[2]??"";let d;if(a.forEach(y=>{Array.isArray(y)&&!d&&(d=y.find(N=>c.replaceAll("/","|").includes(N?.info.link.internal||"")))}),!d){const y=l.replace(/class=["']([^"']*ck-related-news[^"']*)["']/,'class="$1-empty"');o=o.replace(l,y);continue}const u=d.preview?.sizes?.[0],f=u?await ue(u.url):"",h=d.info.section?.url??"#",p=d.info.section?.name??"Sección",m=d.info.link?.url??"#",g=d.main?.title.article??"Título",b=(await Promise.all(d.preview?.sizes?.map(async y=>{const N=await ue(y.url);return y.width<200?`<source srcset="${N}" media="(width < 750px)"/>`:`<source srcset="${N}" media="(width >= 750px)"/>`})||[])).reduce((y,N)=>y+=N,""),w=l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),A=w?w[0]:"",v=`
430
+ h3.9V17C24.1,13.3,22.2,11.7,19.6,11.7z`})})},kh={tiktok:{hosts:["tiktok.com","vm.tiktok.com"],fromHandle:e=>`https://www.tiktok.com/@${e}`},youtube:{hosts:["youtube.com","youtu.be"],fromHandle:e=>/^UC[A-Za-z0-9_-]{22}$/.test(e)?`https://www.youtube.com/channel/${e}`:`https://www.youtube.com/@${e}`},pinterest:{hosts:["pinterest.com","pin.it","pinterest.es","pinterest.com.mx"],fromHandle:e=>`https://www.pinterest.com/${e}`}},Ih=new Set(["","-","--",".","#","n/a","na","no","null","undefined","false","none","ninguno","ninguna","sin dato","sin datos"]),Lh=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/,Uh=e=>e.replace(/^[\s"'<(\[]+/,"").replace(/[\s"'>)\].,;:]+$/,""),Ph=(e,t)=>/^https?:\/\//i.test(e)||/^www\./i.test(e)?!0:t.some(a=>e.toLowerCase().startsWith(`${a}/`)),Oh=e=>{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;let a;try{a=new URL(t)}catch{return null}return!a.hostname.includes(".")||/\s/.test(a.hostname)?null:a.toString()},$e=(e,t)=>{const a=kh[e];if(!a||typeof t!="string")return"";const n=Uh(t.trim());if(Ih.has(n.toLowerCase()))return"";if(Ph(n,a.hosts))return Oh(n)??"";const r=n.replace(/^[@/]+/,"").replace(/\/+$/,"");return Lh.test(r)?a.fromHandle(r):""},Ks=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},si=e=>!e||e.trim()===""?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim()),at=(e,t,a)=>s.jsx("img",{className:a,src:ne(`/autor-${e}.svg`),alt:t,fetchPriority:"low",loading:"lazy"}),Bh=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:n=!1,socialIconsCustom:r=!1,showPosition:o=!1,showEmailAsSocial:i=!1,allowBioHtml:l=!1}=e,c=a,{PUBLIC_LNG:d}=L(),u=d==="en",f=t?.addtional,h=t?.info?.image?.sizes?.[0]?.url??"",p=t?.info?.fullname??"",m=t?.info?.email??"",g=u?f?.USER_DESCRIPCION_EN||f?.USER_MIBIO_EN||"":f?.USER_DESCRIPCION||f?.USER_MIBIO||"",b=u?f?.USER_POSITION_EN||"":f?.USER_JOBTITLE||f?.USER_POSITION||"",w=Ks(t?.addtional?.USER_USERFB??""),A=Ks(t?.addtional?.USER_USERIG??""),v=Ks(t?.addtional?.USER_USERTWT??""),S=Ks(t?.addtional?.USER_USERLIN??""),y=$e("tiktok",f?.USER_PAGE_TIKTOK),N=$e("youtube",f?.USER_PAGE_YOUTUBE),k=$e("pinterest",f?.USER_PAGE_PINTEREST),O=()=>i||!m||m.trim()===""?!1:si(m),$=f?.USER_SHOWEMAIL===!0||f?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",q=i&&$&&si(m),B=G=>`mailto:${G.trim()}`;return s.jsx("section",{className:`sass-com-ah1-content su-flex-center su-relative su-w-full ${e.className??""}`,children:s.jsxs("div",{className:"sass-com-ah1-info",children:[h?s.jsx("div",{className:"sass-com-ah1-image-container sass-image-autor-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+p,className:"sass-com-ah1-image su-object-cover",src:await ue(h)})}):s.jsx("div",{className:"sass-com-ah1-icon-wrap sass-image-autor-wrapper su-flex-center",children:s.jsx(c,{})}),s.jsx("h1",{className:"sass-com-ah1-name",children:p}),o&&b&&s.jsx("p",{className:"sass-com-ah1-position",children:b}),O()&&s.jsx("a",{href:B(m),className:"sass-com-ah1-email","aria-label":`Enviar correo electrónico a ${m}`,title:`Enviar correo a ${m}`,children:m}),l?s.jsx("div",{className:"sass-com-ah1-description",dangerouslySetInnerHTML:{__html:Ls(g)}}):s.jsx("p",{className:"sass-com-ah1-description",children:g}),s.jsxs("div",{className:"sass-com-ah1-social",children:[w&&s.jsx("a",{href:w,target:"_blank",className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?at(n?"facebook-black":"facebook","Facebook","sass-com-ah1-social-icon sass-social-icon-facebook"):n?s.jsx(es,{className:"sass-com-ah1-social-icon sass-social-icon-facebook",forceSVG:!0}):s.jsx(zs,{className:"sass-com-ah1-facebook-icon sass-com-ah1-social-icon-facebook",forceSVG:!0})}),A&&s.jsx("a",{href:A,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("instagram","Instagram","sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram"):s.jsx($s,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-instagram",forceSVG:!0})}),v&&s.jsx("a",{href:v,target:"_blank",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("x","X","sass-com-ah1-social-icon sass-com-ah1-social-icon-x"):s.jsx(ze,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-x",forceSVG:!0})}),S&&s.jsx("a",{href:S,target:"_blank",className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"noreferrer",children:r?at(n?"linkedin-black":"linkedin","LinkedIn","sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin"):n?s.jsx(ti,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0}):s.jsx(Ve,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-linkedin",forceSVG:!0})}),y&&s.jsx("a",{href:y,target:"_blank","aria-label":"TikTok",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("tiktok","TikTok","sass-com-ah1-social-icon sass-com-ah1-social-icon-tiktok"):s.jsx(Ws,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-tiktok",forceSVG:!0,width:28,height:28})}),N&&s.jsx("a",{href:N,target:"_blank","aria-label":"YouTube",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("youtube","YouTube","sass-com-ah1-social-icon sass-com-ah1-social-icon-youtube"):s.jsx(Ys,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-youtube",forceSVG:!0,width:28,height:28})}),k&&s.jsx("a",{href:k,target:"_blank","aria-label":"Pinterest",className:"sass-com-ah1-social-link",rel:"noreferrer",children:r?at("pinterest","Pinterest","sass-com-ah1-social-icon sass-com-ah1-social-icon-pinterest"):s.jsx(Qs,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-pinterest",forceSVG:!0,width:28,height:28})}),q&&s.jsx("a",{href:B(m),"aria-label":`Enviar correo electrónico a ${m}`,title:`Enviar correo a ${m}`,className:`sass-com-ah1-social-link ${n?"sass-com-ah1-social-filled":"sass-com-ah1-social-stroke"}`,rel:"nofollow noreferrer",children:r?at(n?"email-black":"email","Email","sass-com-ah1-social-icon sass-com-ah1-social-icon-email"):n?s.jsx(Qa,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-email",forceSVG:!0}):s.jsx($a,{className:"sass-com-ah1-social-icon sass-com-ah1-social-icon-email",forceSVG:!0})})]})]})})},Mh=async e=>{const{autor:t,autorIcon:a,socialIconsFilled:n=!1,allowBioHtml:r=!1}=e,o=a,{PUBLIC_LNG:i}=L(),l=i==="en",c=t?.addtional,d=t?.info?.image?.sizes?.[0]?.url??"",u=t?.info?.fullname??"",f=t?.info?.email??"",h=c?.USER_SHOWEMAIL===!0||c?.USER_MOSTRAR_MAIL?.toUpperCase()==="TRUE",p=c?.USER_SHOWBIO??!1,m=l?c?.USER_DESCRIPCION_EN||c?.USER_MIBIO_EN||"":c?.USER_DESCRIPCION||c?.USER_MIBIO||"",g=t?.addtional?.USER_USERFB??"",b=t?.addtional?.USER_USERIG??"",w=t?.addtional?.USER_USERTWT??"",A=t?.addtional?.USER_USERLIN??"",v=$e("tiktok",c?.USER_PAGE_TIKTOK),S=$e("youtube",c?.USER_PAGE_YOUTUBE),y=$e("pinterest",c?.USER_PAGE_PINTEREST);return s.jsx("section",{className:"sass-com-ah2-content su-flex su-w-full su-items-center su-justify-end",children:s.jsxs("div",{className:"sass-com-ah2-contentInfo su-stack-center su-relative su-w-full su-gap-2 su-p-4",children:[d?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-ah2-imageStyled su-object-cover",src:await ue(d)}):s.jsx("div",{className:"sass-com-ah2-contentIconStyled su-flex-center",children:s.jsx(o,{})}),s.jsxs("div",{className:"sass-com-ah2-contentAuthor su-stack-center su-md:items-start",children:[s.jsx("h1",{className:"sass-com-ah2-name",children:u}),h&&s.jsx("p",{className:"sass-com-ah2-email",children:f}),p&&(r?s.jsx("div",{className:"sass-com-ah2-description",dangerouslySetInnerHTML:{__html:Ls(m)}}):s.jsx("p",{className:"sass-com-ah2-description",children:m})),s.jsxs("div",{className:"sass-com-ah2-contenSocialNetwork su-flex su-items-center su-gap-4 su-justify-start",children:[g&&s.jsx("a",{href:g,target:"_blank",className:n?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:n?s.jsx(es,{className:"sass-com-ah2-blackIconFaceBook sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0}):s.jsx(zs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-facebook",forceSVG:!0})}),b&&s.jsx("a",{href:b,target:"_blank",rel:"noreferrer",children:s.jsx($s,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-instagram",forceSVG:!0})}),w&&s.jsx("a",{href:w,target:"_blank",rel:"noreferrer",children:s.jsx(ze,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-x",forceSVG:!0})}),A&&s.jsx("a",{href:A,target:"_blank",className:n?"sass-com-ah2-socialIconFilled":"sass-com-ah2-socialIconStroke",rel:"noreferrer",children:n?s.jsx(ti,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0}):s.jsx(Ve,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-linkedin",forceSVG:!0})}),v&&s.jsx("a",{href:v,target:"_blank","aria-label":"TikTok",rel:"noreferrer",children:s.jsx(Ws,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-tiktok",forceSVG:!0})}),S&&s.jsx("a",{href:S,target:"_blank","aria-label":"YouTube",rel:"noreferrer",children:s.jsx(Ys,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-youtube",forceSVG:!0})}),y&&s.jsx("a",{href:y,target:"_blank","aria-label":"Pinterest",rel:"noreferrer",children:s.jsx(Qs,{className:"sass-com-ah2-socialIcon sass-com-ah2-social-icon-pinterest",forceSVG:!0})})]})]})]})})},ai=e=>s.jsxs("section",{className:"sass-com-lnc-content",children:[e.children,s.jsxs("div",{className:"sass-com-lnc-bannerSection",style:e.readestCustomStyles,children:[e.bannerTop,s.jsx(Vs,{content:e.ranking,title:e.readestTitle,videosSectionLabel:e.videosSectionLabel,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px"}}),e.banner]})]}),_h=async e=>{const t=Rt(),a={...e,main:{...e.main,title:{...e.main.title,article:Be(e.main.title.article,60)}}};return e&&e.info?s.jsxs("section",{className:"sass-com-sc7-content",children:[s.jsx("a",{className:"sass-com-sc7-linkImage",target:e?.info?.link?.target,title:e?.main?.title?.section,href:e.info.link.url,children:s.jsxs("div",{style:{position:"relative"},children:[s.jsx("img",{src:await ue(e.preview.sizes[0]?.url||"")}),s.jsx(t,{className:"sass-com-sc7-playStyled saas-image-play-icon"})]})}),s.jsx("div",{className:"sass-com-sc7-newsDescription",children:s.jsx(He,{...a,paths:e.paths})})]}):null},Dh=e=>{let t=[];return e.videoList&&e.videoList.length>0&&(t=e.videoList?.filter(a=>a.info.path!==e.video.info.path)??[]),s.jsx("div",{className:"sass-com-bv4-content",children:s.jsxs(Bs,{className:"sass-com-bv4-contentLayoutVideoSection",children:[s.jsxs("a",{className:"sass-com-bv4-header",href:e.goBackLink??"/videos",children:[s.jsx("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6055 4.86193C12.8659 5.12228 12.8659 5.54439 12.6055 5.80474L8.41026 10L12.6055 14.1953C12.8659 14.4556 12.8659 14.8777 12.6055 15.1381C12.3452 15.3984 11.9231 15.3984 11.6627 15.1381L6.99604 10.4714C6.73569 10.2111 6.73569 9.78894 6.99604 9.52859L11.6627 4.86193C11.9231 4.60158 12.3452 4.60158 12.6055 4.86193Z",fill:"currentColor"})}),e.titleGoBack??"VOLVER A VIDEOS"]}),s.jsxs("div",{className:"sass-com-bv4-videos",children:[s.jsxs("div",{className:"sass-com-bv4-videoContent",style:e.mainVideoStyles,children:[e.type==="vy"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:`https://www.youtube.com/embed/${e.video?.main?.code}`,frameBorder:"0",allowFullScreen:!0}),e.type==="vf"&&s.jsx("iframe",{className:"sass-com-bv4-iframeStyled",src:e.video?.main?.code,frameBorder:"0",allowFullScreen:!0,allow:"autoplay; fullscreen",sandbox:"allow-scripts allow-same-origin allow-presentation allow-popups"}),e.type==="ve"&&s.jsx("div",{className:"sass-com-bv4-contentFrame",dangerouslySetInnerHTML:{__html:e.video?.main?.code??""}}),s.jsx("div",{className:"sass-com-bv4-articleSection",children:s.jsx(He,{isTitle:!0,cutSubtitle:!1,...At({...e?.video,info:{...e?.video?.info,link:{...e.video?.info?.link,url:""}}},!0,!!e.video?.main?.description,!0),paths:e.paths})})]}),s.jsxs("div",{className:"sass-com-bv4-sectionVideoList",style:e.listVideoStyles,children:[e.banner&&s.jsx(be,{banners:e.banner.banners,name:e.banner.bannerName}),e.relatedName&&s.jsx("h2",{className:"sass-com-bv4-relatedTitle saas-video-related-title",children:e.relatedName}),Array.isArray(t)&&t.map((a,n)=>T.createElement(_h,{...At(a,!0,!1,!1),key:n,paths:e.paths}))]})]})]})})},he=T.forwardRef((e,t)=>{const{isTitle:a=!1,isOpinion:n=!1,noHeading:r=!1}=e,o=r?s.jsx("div",{className:"sass-com-sec-title",children:e.title}):a?s.jsx("h1",{className:"sass-com-sec-title",children:e.title}):s.jsx("h2",{className:"sass-com-sec-title",children:e.title});return s.jsxs("section",{className:"sass-com-sec-content",children:[e.title&&s.jsxs("div",{className:["sass-com-sec-titleContent",e.className??""].join(" "),"data-after":`${n}`,children:[s.jsx("hr",{className:"sass-com-sec-startLine"}),e.titleUrl?s.jsx(M,{href:e.titleUrl,children:o}):o,s.jsx("hr",{className:"sass-com-sec-line"}),e.titleUrl&&s.jsx(M,{className:"sass-com-sec-readMore",href:e.titleUrl?.toString()??""})]}),e.title&&s.jsx("hr",{className:["sass-com-sec-bottomLine",e.className??""].join(" ")}),s.jsx("div",{className:"sass-com-sec-childrenContent",ref:t,children:e.children})]})}),Za=e=>s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"var(--header-icons)",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M10.5283 0.562859C13.1487 0.49118 15.6972 1.42576 17.6494 3.17516C19.6016 4.92465 20.8095 7.3565 21.0244 9.96911C21.2392 12.5816 20.4447 15.1772 18.8047 17.222L18.6641 17.3978L18.8232 17.556L23.1475 21.8451H23.1484C23.3137 22.016 23.4062 22.2451 23.4062 22.4828C23.4062 22.7194 23.3143 22.9469 23.1504 23.1175C23.0653 23.2033 22.964 23.2712 22.8525 23.3177C22.7409 23.3642 22.6209 23.388 22.5 23.3881C22.3791 23.3881 22.2591 23.3642 22.1475 23.3177C22.0358 23.2712 21.9338 23.2034 21.8486 23.1175L17.5547 18.8236L17.3965 18.6644L17.2217 18.805C15.1768 20.4451 12.5812 21.2395 9.96875 21.0248C7.35614 20.8099 4.9243 19.602 3.1748 17.6498C1.4254 15.6976 0.490821 13.149 0.5625 10.5287C0.634205 7.90823 1.70691 5.41454 3.56055 3.56091C5.41418 1.70727 7.90787 0.634563 10.5283 0.562859ZM14.0537 3.057C12.516 2.42011 10.8239 2.25385 9.19141 2.57848C7.55873 2.90324 6.05893 3.7051 4.88184 4.88219C3.70474 6.05929 2.90288 7.55909 2.57812 9.19176C2.25349 10.8242 2.41975 12.5163 3.05664 14.0541C3.69368 15.592 4.77311 16.9066 6.15723 17.8314C7.54131 18.7562 9.16841 19.2504 10.833 19.2504C13.0652 19.2504 15.2058 18.363 16.7842 16.7845C18.3626 15.2061 19.25 13.0656 19.25 10.8334C19.25 9.16877 18.7558 7.54167 17.8311 6.15759C16.9062 4.77347 15.5917 3.69404 14.0537 3.057Z",fill:"var(--header-icons)",stroke:"var(--header-icons)",strokeWidth:"0.5"})}),Js=e=>s.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.862254 3.39448C1.1226 3.13413 1.54471 3.13413 1.80506 3.39448L6.00033 7.58974L10.1956 3.39448C10.4559 3.13413 10.878 3.13413 11.1384 3.39448C11.3987 3.65483 11.3987 4.07694 11.1384 4.33729L6.47173 9.00396C6.21138 9.26431 5.78927 9.26431 5.52892 9.00396L0.862254 4.33729C0.601905 4.07694 0.601905 3.65483 0.862254 3.39448Z",fill:"currentColor"})}),qh=()=>s.jsx("div",{className:"sass-com-sb-buttonContent",children:s.jsx("label",{className:"sass-com-sb-buttonStyled",htmlFor:"side-bar-state",children:s.jsx(bt,{className:"sass-com-sb-icon"})})}),Gh=({action:e,placeholder:t,ariaLabel:a})=>s.jsx("div",{className:"sass-com-sb-inputContent",children:s.jsxs("form",{className:"sass-com-sb-inputStyled",action:e,method:"GET",children:[s.jsx("input",{className:"sass-com-sb-buscar",type:"text",name:"query",placeholder:t}),s.jsx("button",{type:"submit","aria-label":a,className:"sass-com-sb-searchSubmit",children:s.jsx(Za,{color:"var(--search-input-icons)"})})]})}),Fh=({item:e,index:t})=>{const a=`accordion_${t}`,n=Array.isArray(e.subitem);return s.jsxs("div",{className:"sass-com-sb-accordionStyled",children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"}}),s.jsx("span",{className:"sass-com-sb-accordionHeading",children:n?s.jsxs("div",{className:"sass-com-sb-accordionSummeryStyled",children:[e.link?s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link,target:e.target,children:e.description}):s.jsx("div",{className:"sass-com-sb-accordionTitle",children:e.description}),s.jsx("label",{className:"sass-com-sb-accordionToggle",htmlFor:a,"aria-label":`Expandir ${e.description}`,children:s.jsx(Js,{className:"sass-com-sb-accordionChevron",width:13,height:13})})]}):s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-linkStyled",href:e.link??void 0,target:e.target,children:e.description})}),n&&s.jsx("div",{className:"sass-com-sb-accordionDetailsStyled",style:{"--max-height":`${e.subitem.length*45}px`},children:e.subitem.map((r,o)=>s.jsx(M,{block_subPublication:!0,className:"sass-com-sb-subLinkStyled",href:r.link??void 0,target:r.target,children:r.description},o))})]})},jh=({socials:e,copyright:t})=>s.jsxs("div",{className:"sass-com-sb-footerSlider",children:[s.jsx("div",{className:"sass-com-sb-socialMedia",children:Object.keys(e).map(a=>e[a]?.show&&wt[a]?s.jsx("a",{href:e[a].url,target:"_blank",rel:"noreferrer","aria-label":`${e[a].title} link`,className:"sass-com-sb-linkSocialNetwork",children:wt[a]({className:`sass-com-sb-icon ${`sass-com-sb-icon-${a}`}`})},a):null)}),t&&s.jsx("p",{className:"sass-com-sb-copyRights",children:t})]}),Hh=({sidebar:e,socials:t,copyrigth:a,sidebarExtra:n,searchKeyWord:r,searchLink:o,custom_styles:i={}})=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:l,CONFIG_buscar_html:c}=L(),d=l?.buscar?de():"",u=c?".html":"";return s.jsxs("aside",{className:"sass-com-sb-drawerStyled",id:"sidebar-expandable",style:i,children:[s.jsx("input",{type:"checkbox",id:"side-bar-state"}),s.jsxs("section",{className:"sass-com-sb-sidebarCustom",children:[s.jsx(qh,{}),s.jsx(Gh,{action:`${d}${o||"/buscar"}${u}`,placeholder:`${r}...`,ariaLabel:r}),s.jsxs("div",{className:"sass-com-sb-mainContent",children:[s.jsxs("div",{children:[n,e.map((f,h)=>s.jsx(Fh,{item:f,index:h},h))]}),s.jsx(jh,{socials:t,copyright:a})]})]})]})},ni=e=>s.jsx("svg",{width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M1.5 18H25.5C26.325 18 27 17.325 27 16.5C27 15.675 26.325 15 25.5 15H1.5C0.675 15 0 15.675 0 16.5C0 17.325 0.675 18 1.5 18ZM1.5 10.5H25.5C26.325 10.5 27 9.825 27 9C27 8.175 26.325 7.5 25.5 7.5H1.5C0.675 7.5 0 8.175 0 9C0 9.825 0.675 10.5 1.5 10.5ZM0 1.5C0 2.325 0.675 3 1.5 3H25.5C26.325 3 27 2.325 27 1.5C27 0.675 26.325 0 25.5 0H1.5C0.675 0 0 0.675 0 1.5Z",fill:e.color})}),ri=e=>{const{alertZone:t,id:a="close-alert"}=e,n=()=>s.jsx(M,{className:"sass-com-hlm-headLine",href:t?.data[0]?.info.link.url,target:t?.data[0]?.info.link.target,title:t?.data[0]?.main.title.home,children:t?.data[0]?.main?.title.home??""});return s.jsxs(s.Fragment,{children:[s.jsx("input",{type:"checkbox",id:a,style:{display:"none"},defaultChecked:!(t&&t?.data&&t?.data[0]?.main?.title.home)}),t&&t?.data&&t?.data[0]?.main?.title.home&&s.jsxs("div",{id:"alert-chip",className:"sass-com-hlm-content",style:e.forceShow?{display:"flex",position:"sticky",top:100}:{},children:[s.jsxs("div",{className:"sass-com-hlm-live",children:[s.jsx("div",{className:"sass-com-hlm-chipStyled",children:t?.entity?.description}),e.forceShow&&s.jsx(n,{}),s.jsx("label",{htmlFor:a,children:s.jsx(bt,{className:"sass-com-hlm-closeLiveStyled"})})]}),s.jsx(n,{})]})]})},oi=e=>{const{cintillo:t,tapeTitle:a,socials:n}=e,r="",o=t?.findIndex(i=>i.link===r)??0;return(Array.isArray(t)||e.socialIcons)&&s.jsxs("section",{className:"sass-com-htape-content",children:[Array.isArray(t)&&s.jsxs("div",{className:"sass-com-htape-tabs header-page-tape-content",children:[a!==""&&s.jsx("p",{className:"sass-com-htape-title",children:`${a}`}),t&&t[o]&&s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",target:t[o]?.target,href:t[o]?.link,style:{color:t[o]?.link===r?"var(--header-tape-active-link)":"var(--header-tape-icons)",fontWeight:t[o]?.link===r?"700":"400"},children:t[o]?.description},o),t&&t.map((i,l)=>{if(l!==o)return s.jsx(M,{block_subPublication:!0,className:"sass-com-htape-linkStyled",href:i?.link,style:{color:i?.link===r?"var(--header-tape-active-link)":"var(--header-tape-color)",fontWeight:i?.link===r?"700":"400"},children:i?.description},l)})]}),s.jsx("div",{className:"sass-com-htape-socialNetwork",children:Object.keys(n).map(i=>!i||!n[i]||!wt[i]?null:n[i]?.show&&s.jsx("a",{target:"_blank",rel:"noreferrer","aria-label":n[i].title+" link",className:"sass-com-htape-linkSocialNetwork",href:n[i].url,children:wt[i]({className:["sass-com-htape-icon",`sass-com-htape-${String(i)}`].join(" ")})},i))})]})},Vh=e=>{const{alertZone:t,custom_styles:a={}}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=L();return s.jsxs("header",{className:"sass-com-h1sk-headerStyled",style:a,id:"saas-header-sticky",children:[e.socialIcons&&e.headerTape?.sticky&&s.jsx(oi,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{className:`${t&&t?.data&&!e.showAlertPop?"sass-com-h1sk-headerContentAlert":"sass-com-h1sk-headerContent"} center-mobile-header-icon`,children:[s.jsx(za,{id:"button-app",className:"sass-com-h1sk-menuButton",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:s.jsx(ni,{className:"sass-com-h1sk-startIcon",color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27})}),s.jsxs("div",{className:"sass-com-h1sk-iconContent",children:[s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky",style:{display:"flex"},children:T.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.icon)}),e.mobileIcon?s.jsx(M,{href:"/","aria-label":"Home",className:"icon header-logo-link-sticky header-mobile-icon",style:{display:"flex"},children:T.createElement("span",{className:"sass-com-h1sk-logoStyled"},e.mobileIcon())}):null]}),!e.showAlertPop&&t?.data&&s.jsxs("div",{className:"sass-com-h1sk-headLineContent",children:[s.jsx("div",{className:"sass-com-h1sk-headLineTitle headLineTitle",children:t.entity.description?`${t.entity.description}`:""}),s.jsx(M,{className:"sass-com-h1sk-headLine",href:t.data[0]?.info.link.url,target:t.data[0]?.info.link.target,title:t.data[0]?.main.title.home,children:Be(t.data[0]?.main.title.home??"",120)})]}),s.jsxs("div",{style:e.showAlertPop?{marginLeft:"auto"}:{},className:["sass-com-h1sk-buttonSection",t?.data?"sass-com-h1sk-hasAlertZone":"","search-button"].join(" "),children:[s.jsx(M,{block_subPublication:n?.buscar,href:e.searchLink?e.searchLink:"/buscar","aria-label":e.searchKeyWord,className:"sass-com-h1sk-buttonSectionSearch search-button-icon",style:{display:"flex"},children:e.searchIcon??s.jsx(Za,{width:28,height:28,color:"currentColor"})}),e.rightZone]})]}),e.customComponent&&e.customComponent,!e.showAlertPop&&s.jsx(ri,{alertZone:t,forceShow:e.showAlertPop})]})},zh=e=>{const{items:t}=e;return s.jsx("ul",{className:"sass-com-mopt-ul",children:t.map((a,n)=>s.jsxs("li",{className:"sass-com-mopt-liBefore sass-com-mopt-li",children:[a.link?s.jsxs(M,{block_subPublication:!0,"aria-label":a.description,className:"sass-com-mopt-linkStyled",href:a.link?a.link:void 0,target:a.target,children:[a.description,Array.isArray(a.subitem)&&s.jsx(Js,{})]}):s.jsxs("span",{"aria-label":a.description,className:"sass-com-mopt-linkStyled",children:[a.description,Array.isArray(a.subitem)&&s.jsx(Js,{})]}),Array.isArray(a.subitem)&&s.jsx("ul",{className:"sass-com-mopt-ulContent",children:s.jsx("div",{className:"sass-com-mopt-contentModal",children:a.subitem.map((r,o)=>s.jsx("li",{className:"sass-com-mopt-li",children:s.jsx(M,{block_subPublication:!0,className:"sass-com-mopt-itemLink","aria-label":r.description,href:r.link?r.link:void 0,target:r.target,children:r.description})},o))})})]},n))})},$h=e=>{const{menu:t,alertZone:a,custom_styles:n={},prerender_classes:r}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:o}=L();return s.jsxs("header",{className:"sass-com-h1st-headerStyled",id:"saas-header-static",style:{...n,top:e.cintillo||e.socialIcons&&!e.headerTape?.static?40:0},children:[e.socialIcons&&e.headerTape?.static&&s.jsx(oi,{socialIcons:e.socialIcons,cintillo:e.cintillo,tapeTitle:e.tapeTitle,socials:e.socials}),s.jsxs("div",{style:e.showAlertPop?{gap:0}:{},className:["sass-com-h1st-headerContent",a?.data?"sass-com-h1st-hasAlertZone":""].join(" "),children:[s.jsx("div",{className:"sass-com-h1st-menuButtonSection sass-header-menu-button",children:s.jsxs(za,{className:"sass-com-h1st-menuButton",id:"button-app",toggledrawerevent:"true","aria-label":"menu","aria-labelledby":"menu",title:"menu",children:[s.jsx(ni,{color:"var(--header-menu-icon-color, var(--header-icons))",width:27,height:27}),s.jsx("p",{className:"sass-com-h1st-buttonText",style:{lineHeight:0},children:e.menuText})]})}),s.jsx("div",{className:"sass-com-h1st-logoContent",children:s.jsx(M,{href:"/","aria-label":"Home",className:"header-logo-link",children:T.createElement("span",{className:"sass-com-h1st-logoStyled"},e.icon)})}),s.jsxs("div",{className:"sass-com-h1st-buttonSection sass-header-right-button-section",children:[s.jsx(M,{block_subPublication:o?.buscar,href:e.searchLink?e.searchLink:"/buscar",className:"sass-com-h1st-buttonSectionSearch","aria-label":e.searchKeyWord,style:{display:"flex"},children:s.jsx(Za,{width:28,height:28,color:"currentColor"})}),e.rightZone]}),!e.showAlertPop&&a?.data?s.jsxs("div",{className:"sass-com-h1st-headLineContent",children:[s.jsx("p",{className:"sass-com-h1st-headLineTitle headLineTitle",children:a.entity.description?`${a.entity.description}`:""}),s.jsx(M,{className:`sass-com-h1st-headLine ${r?.alert}`,href:a.data[0]?.info.link.url,target:a.data[0]?.info.link.target,title:a.data[0]?.main.title.home,children:Be(a.data[0]?.main.title.home??"",120)})]}):s.jsx("div",{className:"sass-com-h1st-line"}),s.jsx("div",{className:"sass-com-h1st-menuSection",style:e.showAlertPop?{"--showAlertPop":"0px"}:{},children:Array.isArray(t)&&s.jsx(zh,{items:t})})]}),e.customComponent&&e.customComponent]})},Qh=e=>{const{alertZone:t,children:a,sidebar:n,custom_styles:r={}}=e,o=e.childrenContentTag??"div",i=s.jsxs(o,{className:["sass-com-h1-childrenContent",e.showAlertPop?"sass-com-h1-op2":"",t?.data?"sass-com-h1-childrenContentAux":""].join(" "),style:e.showOnlyStickyHeader?{...r,"--hasAlertMargin":"3.6rem !important"}:r,id:"content-layout",children:[e.showAlertPop&&s.jsx(ri,{alertZone:t,forceShow:e.showAlertPop,id:"static-alert-chip"}),a]});return s.jsxs(s.Fragment,{children:[e.childrenContentPosition==="before-headers"&&i,s.jsx(Vh,{...e}),!e.showOnlyStickyHeader&&s.jsx($h,{...e}),e.childrenContentPosition!=="before-headers"&&i,s.jsx(Hh,{sidebarExtra:e.sidebarExtra,searchKeyWord:e.searchKeyWord,sidebar:n,searchLink:e.searchLink,socials:e.socials,copyrigth:e.copyrigth,custom_styles:e.custom_styles})]})},Wh=async e=>{const t=e.info&&typeof e.info=="object"?e.info.image:void 0,a=(t&&typeof t=="object"?t:void 0)||e.image,r=a?.sizes?.find(o=>o.width===100&&o.height===100)?.url||a?.sizes?.[0]?.url||a?.original?.url||"";return r&&await ue(r)||""},ii=({name:e,imageUrl:t})=>s.jsxs(s.Fragment,{children:[t?s.jsx("img",{className:"sass-com-ts-chipImage su-object-cover",src:t,alt:"",loading:"lazy",fetchPriority:"low"}):null,e]}),li=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=L();if(!e?.tags?.length)return null;const a=await Promise.all(e.tags.map(async n=>({item:n,imageUrl:await Wh(n)})));return s.jsx("section",{className:"sass-com-ts-content",children:s.jsxs("div",{className:"sass-com-ts-tags",children:[s.jsx("p",{className:"sass-com-ts-tagStyled",children:e.title?e.title:"Tags:"}),a.map(({item:n,imageUrl:r},o)=>n.approved?s.jsx(M,{block_subPublication:t?.tema,href:Ye(n,e.paths),children:s.jsx("div",{className:["sass-com-ts-chipStyled","sass-com-ts-tagLink",r?"sass-com-ts-chipStyled--withImage":""].filter(Boolean).join(" "),children:s.jsx(ii,{name:n.name,imageUrl:r})})},o):s.jsx("div",{className:["sass-com-ts-chipStyled",r?"sass-com-ts-chipStyled--withImage":""].filter(Boolean).join(" "),children:s.jsx(ii,{name:n.name,imageUrl:r})},o))]})})},ci=async e=>{const{autor:t}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,PUBLIC_LNG:n}=L(),r=de(),o=n==="en",i=t?.addtional,l=t?.info?.name??"",c=t?.info?.fullname??"",d=t?.info?.image?.sizes?.[0]?.url??"",u=o?i?.USER_DESCRIPCION_EN||i?.USER_MIBIO_EN||"":i?.USER_DESCRIPCION||i?.USER_MIBIO||"",f=Ls(u),h=t?.addtional?.USER_USERFB??"",p=t?.addtional?.USER_USERIG??"",m=t?.addtional?.USER_USERTWT??"",g=t?.addtional?.USER_USERLIN??"",b=$e("tiktok",i?.USER_PAGE_TIKTOK),w=$e("youtube",i?.USER_PAGE_YOUTUBE),A=$e("pinterest",i?.USER_PAGE_PINTEREST),v=`${r}/${e.paths.autor}/${l}`,N=u.replace(/<[^>]*>/g,"").replace(/&[^;]+;/g," ").trim().length>360,k=`ja2-bio-toggle-${l}`;return!!t&&s.jsx("section",{className:"sass-com-ja2-contentBox",children:s.jsxs("div",{className:"sass-com-ja2-content",children:[s.jsxs("div",{className:"sass-com-ja2-avatarContent",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:v,children:d?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+l,className:"sass-com-ja2-imageStyled",src:await ue(d)}):s.jsx("div",{className:"sass-com-ja2-contentIconStyled",children:e.autorIcon})}),s.jsxs("section",{className:"sass-com-ja2-journalistSection",children:[s.jsx(M,{block_subPublication:a?.autor,className:"sass-com-ja2-journalistInfo su-no-underline",href:v,children:c}),s.jsxs("section",{className:"sass-com-ja2-socialNetworkSection",children:[h&&s.jsx("a",{href:h,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M16.7266 4H14.545C12.1067 4 10.5025 5.52672 10.5025 7.96947V9.80153H8.32083C8.12833 9.80153 8 9.92366 8 10.1069V12.7328C8 12.916 8.12833 13.0382 8.32083 13.0382H10.5025V19.6947C10.5025 19.8779 10.6308 20 10.8233 20H13.7108C13.9033 20 14.0316 19.8779 14.0316 19.6947V13.0382H16.5983C16.7908 13.0382 16.9191 12.916 16.9191 12.7328V10.1069C16.9191 10.0458 16.855 9.92366 16.7908 9.8626C16.7266 9.80153 16.6625 9.74046 16.5341 9.74046H13.9675V8.21374C13.9675 7.48092 14.16 7.1145 15.1866 7.1145H16.6625C16.855 7.1145 16.9833 6.99237 16.9833 6.80916V4.36641C17.0475 4.12214 16.9191 4 16.7266 4Z",stroke:"black",strokeWidth:"1.4"})})}),p&&s.jsx("a",{href:p,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsxs("g",{clipPath:"url(#clip0_281_2357)",children:[s.jsx("path",{d:"M7.98634 4.06233C10.9335 4.1651 14.0152 3.89192 16.947 4.05106C19.1239 4.16908 20.8447 5.87246 20.9992 8.04131V17.0111C20.8646 19.1408 19.1378 20.8608 17.0113 21H8.04335C5.91354 20.8654 4.19406 19.1388 4.05551 17.0111C4.18345 14.0751 3.88383 10.9919 4.05353 8.07313C4.17682 5.95269 5.86648 4.21616 7.98634 4.06233ZM7.9532 5.4859C6.65331 5.64503 5.63713 6.68072 5.48201 7.97964L5.47804 17.0442C5.62586 18.3902 6.69175 19.4518 8.04136 19.5784L17.0445 19.5764C18.3901 19.4319 19.4514 18.3611 19.578 17.0131L19.576 8.00882C19.4321 6.67277 18.3788 5.6205 17.0445 5.47662L7.9532 5.4859Z",fill:"black"}),s.jsx("path",{d:"M15.527 9.52595C17.7019 11.7008 16.868 15.4802 13.9752 16.5079C10.6708 17.6815 7.47508 14.6354 8.47999 11.2771C9.38614 8.24892 13.2851 7.28484 15.5263 9.52662L15.527 9.52595ZM12.1894 9.72288C9.96615 9.94898 8.93936 12.6602 10.3771 14.3629C11.8149 16.0656 14.5877 15.4769 15.2168 13.3796C15.8458 11.2824 14.2529 9.51269 12.1894 9.72288Z",fill:"black"}),s.jsx("path",{d:"M17.0868 6.87507C18.5955 6.84324 18.4874 9.24614 16.8939 8.96965C15.7213 8.76609 15.8227 6.90159 17.0868 6.87507Z",fill:"black"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_281_2357",children:s.jsx("rect",{width:"17",height:"17",fill:"white",transform:"translate(4 4)"})})})]})}),m&&s.jsx("a",{href:m,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M3.43242 4.23888L10.0354 13.0628L3.39062 20.2389H4.88316L10.6981 13.9583L15.3966 20.2389H20.4832L13.51 10.9135L19.6951 4.23291H18.2026L12.8473 10.018L8.51898 4.23291H3.43242V4.23888ZM5.62943 5.33739H7.96973L18.2921 19.1404H15.9518L5.62943 5.33739Z",fill:"#010101"})})}),g&&s.jsx("a",{href:g,target:"_blank","aria-label":u,rel:"noreferrer",children:s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M13.1553 9.97173C13.2123 9.98635 13.2208 9.9478 13.2536 9.92189C13.9389 9.38958 14.1885 9.05464 15.1143 8.85195C17.735 8.27844 20.2954 9.68265 20.4618 12.5449C20.6046 15.0084 20.3504 17.6121 20.4618 20.0903C20.4316 20.4372 20.1892 20.6425 19.8557 20.6718C18.9876 20.7475 18.0154 20.6133 17.1361 20.6704C16.8583 20.6465 16.5825 20.4578 16.5609 20.1574C16.4875 18.1631 16.6637 16.0916 16.5642 14.1066C16.5334 13.4979 16.462 12.9835 15.9182 12.6353C14.805 11.9215 13.5333 12.6346 13.4495 13.9405C13.3197 15.9488 13.5484 18.1006 13.4521 20.1235C13.4383 20.4491 13.1795 20.6392 12.8768 20.6698C11.917 20.7675 10.8058 20.5967 9.82899 20.6718C9.59116 20.6478 9.35988 20.5422 9.2793 20.2989V9.41284C9.35006 9.20815 9.53219 9.08654 9.7353 9.04467C10.6604 9.10581 11.7061 8.95363 12.6161 9.04068C12.8126 9.05929 13.1553 9.2786 13.1553 9.49059V9.97239V9.97173ZM9.84668 20.1062H12.8768L12.926 20.0564V13.6766C12.926 12.7821 13.9657 11.877 14.8103 11.7999C16.2163 11.6717 17.0464 12.6253 17.1191 13.9763C17.2252 15.9468 17.0418 18.0115 17.1178 19.9919L17.1689 20.1062H19.8551L19.9062 19.9919L19.9042 12.5808C19.6992 9.46068 16.1671 8.36948 13.8924 10.104L12.6318 11.4005V9.60622H9.84733V20.1062H9.84668Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M4.6294 9.04917C5.38612 8.92822 6.41671 9.11629 7.2016 9.04917C7.53181 9.13755 7.79847 9.39274 7.8666 9.73698L7.88102 19.9233C7.84564 20.243 7.56326 20.5387 7.26581 20.6284C6.93888 20.7261 5.19219 20.7095 4.78926 20.667C4.38633 20.6244 4.10854 20.3958 3.99061 20.015L3.9834 9.75626C3.99781 9.43062 4.31885 9.09967 4.6294 9.04917ZM4.72702 9.61338C4.60319 9.64926 4.53243 9.75692 4.53833 9.88717L4.54685 19.8834C4.59729 20.0502 4.72767 20.0901 4.88426 20.1061C5.31012 20.1493 6.64078 20.1659 7.03781 20.0988C7.18064 20.0748 7.32085 19.9884 7.32478 19.825L7.31626 9.86392C7.29464 9.73831 7.20554 9.62933 7.07647 9.60872L4.72702 9.61404V9.61338Z",fill:"black",stroke:"black",strokeWidth:"0.5"}),s.jsx("path",{d:"M8.16428 6.20159C8.16428 7.45495 7.16252 8.47105 5.92687 8.47105C4.69121 8.47105 3.68945 7.45495 3.68945 6.20159C3.68945 4.94824 4.69121 3.93213 5.92687 3.93213C7.16252 3.93213 8.16428 4.94824 8.16428 6.20159ZM7.60345 6.20358C7.60345 5.2639 6.85263 4.50165 5.92556 4.50165C4.99849 4.50165 4.24766 5.26324 4.24766 6.20358C4.24766 7.14393 4.99849 7.90552 5.92556 7.90552C6.85263 7.90552 7.60345 7.14393 7.60345 6.20358Z",fill:"black",stroke:"black",strokeWidth:"0.5"})]})}),b&&s.jsx("a",{href:b,target:"_blank","aria-label":"TikTok",rel:"noreferrer",children:s.jsx(Ws,{className:"sass-com-ja2-tiktokStyled",forceSVG:!0,width:24,height:24})}),w&&s.jsx("a",{href:w,target:"_blank","aria-label":"YouTube",rel:"noreferrer",children:s.jsx(Ys,{className:"sass-com-ja2-youtubeStyled",forceSVG:!0,width:24,height:24})}),A&&s.jsx("a",{href:A,target:"_blank","aria-label":"Pinterest",rel:"noreferrer",children:s.jsx(Qs,{className:"sass-com-ja2-pinterestStyled",forceSVG:!0,width:24,height:24})})]})]})]}),N?s.jsxs("div",{className:"sass-com-ja2-bioExpandable",children:[s.jsx("input",{type:"checkbox",id:k,className:"sass-com-ja2-bioToggle"}),s.jsx("div",{className:"sass-com-ja2-article sass-com-ja2-article-clamp",dangerouslySetInnerHTML:{__html:f}}),s.jsxs("div",{className:"sass-com-ja2-bioFooter",children:[s.jsxs("label",{htmlFor:k,className:"sass-com-ja2-bioToggleLink",children:[s.jsx("span",{className:"sass-com-ja2-bioToggleLinkMore",children:String(e.texts.authorViewMore??"Ver más")}),s.jsx("span",{className:"sass-com-ja2-bioToggleLinkLess",children:"Ver menos"})]}),s.jsx("label",{htmlFor:k,className:"sass-com-ja2-bioArrow","aria-label":"Leer más / Leer menos",children:s.jsx("svg",{viewBox:"0 0 24 24",fill:"none",width:"18",height:"18","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),s.jsx("a",{"aria-label":l,className:"sass-com-ja2-bioAuthorLink",href:v,children:String(e.texts.authorViewMore??"Ver más")})]}):s.jsx("div",{className:"sass-com-ja2-article",dangerouslySetInnerHTML:{__html:`${f} <a aria-label="${l}" href="${v}">${String(e.texts.authorViewMore??"Ver más")}</a>`}})]})})},di=async e=>{const{news:t,texts:a}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:n}=L();return t?t.config?.showauthor&&t.authors?.length>1&&s.jsx("div",{className:"sass-com-jg-content su-flex su-w-full su-flex-col su-items-center su-justify-evenly su-gap-0 su-md:flex-row",children:Array.isArray(t.authors)&&t.authors?.map(async r=>s.jsxs("div",{className:"sass-com-jg-contentCard",children:[r.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-jg-imageStyled su-flex-center",src:await ue(r.image?.sizes?.[0]?.url||"")},r.fullname):s.jsx("div",{className:"sass-com-jg-contentIconStyled su-flex-center",children:e.autorIcon},r.fullname),s.jsxs("div",{className:"sass-com-jg-contentInfo",children:[r.internaluser?s.jsx(M,{block_subPublication:n?.autor,className:"sass-com-jg-fullName",href:`/${e.paths.autor}/${r.name}`,children:r.fullname}):s.jsx("p",{className:"sass-com-jg-fullName",children:r.fullname}),r.internaluser&&s.jsx(M,{block_subPublication:n?.autor,className:"sass-com-jg-LearnMoreLink",href:`/${e.paths.autor}/${r.name}`,children:String(a.JournalistGroupLink??"")})]})]},`author-${r.firstname}`))}):(De("JournalistGroup","news"),null)},Zs=e=>{if(!e||e.trim()==="")return e;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`https://${t}`},Yh=async e=>{const t=e.img?await ue(e.img):"",a=Zs(e.social?.facebook??""),n=Zs(e.social?.instagram??""),r=Zs(e.social?.twitter??""),o=Zs(e.social?.linkedin??""),i=e.social&&(a||n||r||o);return s.jsx("section",{className:`sass-com-th-content ${e.className}`,children:s.jsxs("div",{className:`sass-com-th-contentInfo ${t?"":"sass-com-th-contentInfoWithoutImg"}`,children:[e.img&&s.jsx("div",{className:"sass-com-th-imageContainer sass-image-tag-wrapper",children:s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-th-imageStyled su-object-cover",src:t})}),s.jsx("h1",{className:"sass-com-th-name",children:e.tag}),e.description&&s.jsx("div",{className:"sass-com-th-description",dangerouslySetInnerHTML:{__html:e.description}}),e.url&&s.jsx("a",{className:"sass-com-th-urlTag",href:e.url,children:e.url}),i&&s.jsxs("div",{className:"sass-com-th-contenSocialNetwork",children:[a&&s.jsx("a",{href:a,target:"_blank",className:"sass-com-th-socialFacebookIcon sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(zs,{className:"sass-com-th-faceBookIcon",forceSVG:!0})}),n&&s.jsx("a",{href:n,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx($s,{className:"sass-com-th-socialIcon",forceSVG:!0})}),r&&s.jsx("a",{href:r,target:"_blank",className:"sass-com-th-socialIconLink",rel:"noreferrer",children:s.jsx(ze,{className:"sass-com-th-socialIcon",forceSVG:!0})}),o&&s.jsx("a",{href:o,target:"_blank",className:"sass-com-th-socialIconLink sass-com-th-socialIconStroke",rel:"noreferrer",children:s.jsx(Ve,{className:"sass-com-th-socialIcon",forceSVG:!0})})]})]})})},Xa=s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"20px",fill:"currentColor",children:s.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})});function Kh({googleSourceShare:e,googleProfile:t,whatsAppShare:a,text:n}){return s.jsxs("div",{className:"sass-com-src-container",children:[e&&s.jsxs("a",{className:"sass-com-src-button",href:e,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google Source",width:28,height:28}),n.sourceButtons?.googleSourceShare||"Añádenos como fuente preferida",Xa]}),t&&s.jsxs("a",{className:"sass-com-src-button",href:t,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-google-news-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"Google News",width:28,height:28}),n.sourceButtons?.googleProfile||"Google News",Xa]}),a&&s.jsxs("a",{className:"sass-com-src-button",href:a,target:"_blank",rel:"noopener noreferrer",children:[s.jsx("img",{src:ne("/icono-whatsapp-plus-badge.svg"),loading:"lazy",fetchPriority:"low",alt:"WhatsApp",width:28,height:28}),n.sourceButtons?.whatsAppShare||"Sumate al canal de WhatsApp",Xa]})]})}function Jh(e){const{main:t,authors:a,info:n,preview:r,config:o,keywords:i,isVideo:l,isLarge:c,priorityHigh:d,share:u,overImage:f,isTitle:h,paths:p}=e,{CONFIG_videoClipUrl:m}=L(),g=o?.homepreview??"imagen",b=()=>{const y=e.videos?.[0]?.clip;return y?s.jsx("div",{className:"homeCardVideoClipContainer",children:s.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,width:"480",height:"535",children:s.jsx("source",{src:`${m}${y}`,type:"video/mp4"})})}):null},w=()=>{if(!e.videos)return null;const y=e.videos?.[0]?.code;return y?s.jsx("iframe",{className:"homeCardVideoIframeContainer",src:`https://www.youtube.com/embed/${y}`,frameBorder:"0",allowFullScreen:!0}):null},A=()=>{if(!e.videos)return null;const y=(e.videos??[]).find(G=>G.type==="video-embedded");if(!y?.code)return null;const k=/src\s*=\s*"([^"]+)"/.exec(y.code),O=k?k[1]:null;if(!O)return null;const $=r.original?.url??r.sizes?.[0]?.url??"",q=tt()??"",B=$.startsWith("http")||$.includes(q)||q===""?$:q+$;return s.jsx("iframe",{className:"homeCardEmbeddedIframeContainer",src:O,frameBorder:"0",allowFullScreen:!0,style:{"--thumbnail-url":`url(${B})`}})},v=()=>{const N=e.gallery??[];return N.length?s.jsx(Fe,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:N.map((k,O)=>{const $=k?.url||k?.id||`gallery-${O}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:n?.link?.url,target:n?.link?.target,children:s.jsx(ve,{preview:k,isVideo:l,isLarge:c,priorityHigh:d})},$)})}):null};let S=null;switch(g){case"fotogaleria":S=s.jsx(v,{});break;case"videoYouTube":S=s.jsx(w,{});break;case"videoEmbedded":S=s.jsx(A,{});break;case"clip":S=s.jsx(b,{});break;case"iframe":S=s.jsx("div",{className:"homeCardIframeContainer",dangerouslySetInnerHTML:{__html:e?.external?.iframe??""}});break;default:S=s.jsx(M,{"aria-label":e?.main?.title?.section,className:"homeCardImage",title:t?.title?.section,href:n?.link?.url,target:n?.link?.target,children:s.jsx(ve,{preview:r,isVideo:l,isLarge:c,priorityHigh:d})});break}return s.jsxs("section",{className:"homeCardContent",style:{...e.customSectionCardStyles},children:[s.jsx("div",{className:"homeCardContentWrapper",children:S}),s.jsx("div",{className:"homeCardNewsDescription",children:s.jsx(He,{main:t,authors:a,info:n,preview:r,share:u,config:o,overImage:f,isTitle:h,paths:p,keywords:i})})]})}const Xs={FaceBook:"facebook",Instagram:"instagram",WhatsApp:"whatsapp",TikTok:"tiktok",Youtube:"youtube",X:"x",Gnews:"gnews",Podcast:"podcast",Telegram:"telegram",LinkedIn:"linkedin",Spotify:"spotify",Threads:"threads",Pinterest:"pinterest"},Rs=()=>s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M24 12.2727C24 11.4218 23.9221 10.6036 23.7774 9.81818H12.2449V14.4655H18.8349C18.5455 15.96 17.6772 17.2255 16.3748 18.0764V21.0982H20.3488C22.6642 19.0036 24 15.9273 24 12.2727Z",fill:"#4285F4"}),s.jsx("path",{d:"M12.2449 24C15.551 24 18.3228 22.9309 20.3488 21.0982L16.3748 18.0764C15.2839 18.7964 13.8924 19.2327 12.2449 19.2327C9.06122 19.2327 6.35622 17.1273 5.38776 14.2909H1.31354V17.3891C3.32839 21.3055 7.45826 24 12.2449 24Z",fill:"#34A853"}),s.jsx("path",{d:"M5.38776 14.28C5.14286 13.56 4.99814 12.7964 4.99814 12C4.99814 11.2036 5.14286 10.44 5.38776 9.72V6.62182H1.31354C0.478664 8.23636 0 10.0582 0 12C0 13.9418 0.478664 15.7636 1.31354 17.3782L4.48609 14.9564L5.38776 14.28Z",fill:"#FBBC05"}),s.jsx("path",{d:"M12.2449 4.77818C14.0482 4.77818 15.6512 5.38909 16.9314 6.56727L20.4378 3.13091C18.3117 1.18909 15.551 0 12.2449 0C7.45826 0 3.32839 2.69455 1.31354 6.62182L5.38776 9.72C6.35622 6.88364 9.06122 4.77818 12.2449 4.77818Z",fill:"#EA4335"})]}),ea=(e,t)=>a=>s.jsx("img",{className:a,src:ne(e),alt:t,fetchPriority:"low",loading:"lazy"}),Zh={FaceBook:{url:e=>`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Wa,{className:e,forceSVG:!0}),solid:e=>s.jsx(es,{className:e,forceSVG:!0}),custom:ea("/ja-facebook.svg","Facebook")}},X:{url:e=>`https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(ze,{className:e,forceSVG:!0}),solid:e=>s.jsx(ze,{className:e,forceSVG:!0}),custom:ea("/ja-x.svg","X")}},Whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Gs,{className:e,forceSVG:!0}),solid:e=>s.jsx(qs,{className:e,forceSVG:!0}),custom:ea("/ja-whatsapp.svg","Whatsapp")}},LinkedIn:{url:e=>`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`,icon:{outline:e=>s.jsx(Ve,{className:e,forceSVG:!0}),solid:e=>s.jsx(Ve,{className:e,forceSVG:!0}),custom:ea("/ja-linkedin.svg","LinkedIn")}}};function Xh({noteShare:e,GoogleProfile:t}){const a=e&&e.url||(typeof window<"u"?window.location.href:"https://example.com");if(!e)return null;const n=e.variant==="custom",r=gt();return s.jsxs("div",{className:"sass-com-ja5-socialNetworkSection",children:[e.options?.map(o=>{const i=Zh[o];if(!i)return null;const l=i.icon[e.variant]??i.icon.solid,c=i.url(a);return s.jsx(M,{href:c,target:"_blank",rel:"noopener noreferrer","aria-label":`${r.shareOnPrefix??"Compartir en"} ${o}`,className:`sass-com-ja5-socialButton sass-com-ja5-${o.toLowerCase()}Button sass-com-ja5-${o.toLowerCase()}Styled`,children:l("")},o)}),s.jsx("button",{type:"button","data-text":r.linkCopied??"Link copiado","data-active":"false","aria-label":"copy",className:["sass-com-ja5-clipboardButton","clipbtn-id"].join(" "),children:s.jsx(Fs,{forceSVG:!n})}),s.jsx("button",{type:"button","aria-label":"share",className:["sass-com-ja5-clipboardButton","sharebtn-id"].join(" "),children:s.jsx(Ya,{forceSVG:!n})}),e?.googleProfile&&e?.googleProfile.likeSocial&&e?.googleProfile.url!==""&&s.jsxs(M,{href:e?.googleProfile.url??"",className:"sass-com-ja5-socialActionLink sass-com-ja5-socialActionLinkGoogleMobile","aria-label":"Follow on Google",children:[s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",children:s.jsx("path",{d:"M15.583 9.083h-6.5v6.5H6.916v-6.5h-6.5V6.917h6.5v-6.5h2.167v6.5h6.5v2.166Z"})}),s.jsx("span",{children:String(t??"Seguir")}),s.jsx(Rs,{})]})]})}const ui=async e=>{if(!e.news||!e.news.authors)return null;const{news:t,socials:a,texts:n}=e,{CONFIG_shareOnlyWhatsApp:r,DATE_TIMEZONE:o="America/Mexico_City",CONFIG_commentsV2:i,EXPERIMENTAL_commentsV2Paths:l}=L(),c=t.info?.link?.internal??"",d=i||(l??[]).some(w=>c===w||c.endsWith(w)),u=de(),f=w=>`${u}/${e.paths.autor}/${w}`,h=t.authors.map(w=>w.internaluser?`<a href="${f(w.name)}">${w.fullname}</a>`:w.fullname).join(", "),m=t.authors.length===1?"sass-com-ja5--singleAuthor":"sass-com-ja5--multiAuthor",b=`sass-com-ja5-imageContent--count${Math.min(t.authors.length,6)}`;return t.config?.showauthor&&s.jsx("div",{className:`sass-com-ja5-content sass-journalist-articule-5 ${m}`,children:s.jsxs("div",{className:"sass-com-ja5-avatarContent",children:[s.jsxs("div",{className:"sass-com-ja5-socialActionsRow",children:[s.jsxs("div",{className:"sass-com-ja5-socialActionDiv",children:[e.noteShare?.customButton&&(d?s.jsxs("a",{href:"#comentarios",className:"sass-journalist-articule-custom-button sass-com-ja5-comentarios","aria-label":"Custom button for the journalist article",children:[s.jsx("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M0 22V4C0 3.45 0.195833 2.97917 0.5875 2.5875C0.979167 2.19583 1.45 2 2 2H12.1C12.0333 2.33333 12 2.66667 12 3C12 3.33333 12.0333 3.66667 12.1 4H2V17.125L3.15 16H18V7.9C18.3833 7.81667 18.7417 7.70417 19.075 7.5625C19.4083 7.42083 19.7167 7.23333 20 7V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H4L0 22ZM14.875 5.125C14.2917 4.54167 14 3.83333 14 3C14 2.16667 14.2917 1.45833 14.875 0.875C15.4583 0.291667 16.1667 0 17 0C17.8333 0 18.5417 0.291667 19.125 0.875C19.7083 1.45833 20 2.16667 20 3C20 3.83333 19.7083 4.54167 19.125 5.125C18.5417 5.70833 17.8333 6 17 6C16.1667 6 15.4583 5.70833 14.875 5.125Z",fill:"currentColor"})}),s.jsx("span",{children:String(n.CommentButtonJournalist??"Sumate al debate")})]}):s.jsx("button",{type:"button",className:"sass-journalist-articule-custom-button sass-com-ja5-comentarios","data-hydrate":"CustomButton","aria-label":"Custom button for the journalist article"})),r&&s.jsxs("a",{className:"sass-com-ja5-socialActionLink",href:a[Xs.WhatsApp].url,rel:"noreferrer",target:"_blank",children:[s.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("g",{clipPath:"url(#clip0_2906_6960)",children:s.jsx("path",{d:"M25.6376 4.36364C22.8169 1.54545 19.0598 0 15.0628 0C6.82908 0 0.125619 6.67045 0.125619 14.8636C0.125619 17.4886 0.810811 20.0455 2.1241 22.2955L0 30L7.91397 27.9318C10.0952 29.1136 12.5504 29.7386 15.0514 29.7386C23.2851 29.7386 29.9886 23.0682 29.9886 14.875C29.9886 10.8977 28.4355 7.17045 25.6148 4.36364M15.0628 27.2273C12.8359 27.2273 10.6433 26.6364 8.74762 25.5L8.29083 25.2273L3.58584 26.4545L4.84202 21.8977L4.54511 21.4318C3.30034 19.4659 2.64941 17.1932 2.64941 14.8523C2.64941 8.04545 8.22231 2.5 15.0742 2.5C18.386 2.5 21.5036 3.78409 23.8561 6.125C26.1972 8.46591 27.4876 11.5682 27.4876 14.8636C27.4876 21.6818 21.9147 27.2159 15.0742 27.2159M21.8805 17.9773C21.5036 17.7955 19.6764 16.8977 19.3338 16.7727C18.9912 16.6477 18.74 16.5909 18.4888 16.9545C18.2375 17.3182 17.5295 18.1591 17.3011 18.4091C17.0841 18.6591 16.8671 18.6932 16.4903 18.5C16.1134 18.3068 14.9144 17.9205 13.4869 16.6591C12.3791 15.6705 11.6254 14.4545 11.4084 14.0909C11.1915 13.7273 11.3856 13.5227 11.5683 13.3295C11.7396 13.1591 11.9452 12.8977 12.1279 12.6818C12.3106 12.4659 12.3791 12.3068 12.5048 12.0568C12.6304 11.8068 12.5619 11.5909 12.4705 11.4091C12.3791 11.2273 11.6254 9.39773 11.3171 8.64773C11.0088 7.92045 10.7118 8.02273 10.472 8.01136C10.255 8.01136 10.0038 8 9.75257 8C9.50133 8 9.10164 8.09091 8.75904 8.46591C8.41644 8.84091 7.45718 9.73864 7.45718 11.5682C7.45718 13.3977 8.7933 15.1591 8.97602 15.4091C9.15874 15.6591 11.6026 19.4091 15.3483 21.0227C16.2391 21.4091 16.9357 21.6364 17.4724 21.8068C18.3632 22.0909 19.1854 22.0455 19.8249 21.9545C20.5443 21.8523 22.0289 21.0568 22.3487 20.1932C22.657 19.3295 22.657 18.5795 22.5657 18.4318C22.4743 18.2727 22.2231 18.1818 21.8462 18",fill:"#7AD16D"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_2906_6960",children:s.jsx("rect",{width:"30",height:"30",fill:"white"})})})]}),s.jsx("span",{children:String(n.WhatsAppLinkJournalist??"")})]}),e.noteShare?.googleSourceShare&&s.jsxs(M,{href:e.noteShare?.googleSourceShare??"",className:"sass-com-ja5-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M12.6458 13.125L15.4896 11.4063L18.3333 13.125L17.5833 9.875L20.0833 7.71875L16.8021 7.4375L15.4896 4.375L14.1771 7.4375L10.8958 7.71875L13.3958 9.875L12.6458 13.125ZM13.2396 21.25H20.2396C20.0938 21.7917 19.8438 22.2292 19.4896 22.5625C19.1354 22.8958 18.6771 23.1042 18.1146 23.1875L4.48958 24.8438C3.80208 24.9479 3.18229 24.7865 2.63021 24.3594C2.07813 23.9323 1.76042 23.375 1.67708 22.6875L0.0208333 9.03125C-0.0625 8.34375 0.104167 7.72917 0.520833 7.1875C0.9375 6.64583 1.48958 6.33333 2.17708 6.25L3.61458 6.0625V8.5625L2.48958 8.71875L4.17708 22.375L13.2396 21.25ZM8.61458 18.75C7.92708 18.75 7.33854 18.5052 6.84896 18.0156C6.35938 17.526 6.11458 16.9375 6.11458 16.25V2.5C6.11458 1.8125 6.35938 1.22396 6.84896 0.734375C7.33854 0.244792 7.92708 0 8.61458 0H22.3646C23.0521 0 23.6406 0.244792 24.1302 0.734375C24.6198 1.22396 24.8646 1.8125 24.8646 2.5V16.25C24.8646 16.9375 24.6198 17.526 24.1302 18.0156C23.6406 18.5052 23.0521 18.75 22.3646 18.75H8.61458ZM8.61458 16.25H22.3646V2.5H8.61458V16.25Z",fill:"#363131"})}),s.jsx("span",{children:String(n.GoogleSource??"Añadir como fuente preferida")})]}),e.noteShare?.googleProfile&&!e.noteShare?.googleProfile.likeSocial&&e.noteShare?.googleProfile.url!==""&&s.jsxs(M,{href:e.noteShare?.googleProfile.url??"",className:"sass-com-ja5-socialActionLink sass-journalist-articule-google-profile-button","aria-label":"Follow on Google",children:[s.jsx(Rs,{}),s.jsx("span",{children:String(n.GoogleProfile??"Seguir")})]})]}),s.jsx("div",{className:"sass-com-ja5-shareButtonsWrapper","data-hydrate":"ShareButtons","data-props":encodeURIComponent(JSON.stringify({noteShare:e.noteShare})),children:s.jsx(Xh,{noteShare:e.noteShare})})]}),s.jsxs("section",{className:["sass-com-ja5-journalistSection",m,t.config?.showtime&&"sass-com-ja5-journalistSection--withDate"].filter(Boolean).join(" "),children:[s.jsxs("div",{className:"sass-com-ja5-journalistMain",children:[s.jsx("div",{className:`sass-com-ja5-imageContent ${b}`,children:Array.isArray(t.authors)&&t.authors?.map(async w=>w.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",alt:"Imagen de perfil de "+w.fullname,className:"sass-com-ja5-imageStyled sass-com-ja5-imageAutor su-object-cover su-flex-center",src:await ue(w.image.sizes[0]?.url||"")},w.fullname):s.jsx("div",{className:"sass-com-ja5-contentIconStyled sass-com-ja5-imageAutor su-flex-center",children:e.autorIcon},w.fullname))}),s.jsx("div",{className:`sass-com-ja5-journalistInfoLink ${m}`,dangerouslySetInnerHTML:{__html:`${n.JournalistPrefix} <span class="sass-com-ja5-journalistNames">${h??"Redaccion"}</span>`}})]}),t.config?.showtime&&s.jsx("time",{className:"sass-com-ja5-journalistInfoDate",dateTime:Ie(t.info.date.modified,o),...je(t.info.date.modified,void 0,"note"),children:Dt(t.info.date.modified)})]})]})})},Ot=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=L(),n=e.authors?.[0],r=`${n?.fullname??""} - `,o=e?.config?.showtime&&e.config?.showauthor?je(e.info?.date?.modified,r):e?.config?.showtime?je(e.info?.date?.modified):{},i=()=>{if(e?.config?.showtime&&e.config?.showauthor)return`${r}${Te(e.info?.date?.modified)}`;if(e.config?.showauthor)return n?.fullname;if(e?.config?.showtime)return Te(e.info?.date?.modified)},l=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const d=e.keywords.tags[0],u=d.name;return d.approved?s.jsxs("h3",{children:[" ",s.jsx(M,{"aria-label":u,className:"sass-bmd-sup-tagmx",block_subPublication:a?.tema,href:Ye(d,e.paths),children:u})]}):s.jsx("div",{className:"sass-bmd-sup-tagmx",children:u})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tagmx",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null},c=()=>{if(t&&e.keywords?.tags?.length&&e.keywords.tags.length>0){const d=e.keywords.tags[0],u=d.name;return d.approved?s.jsx("h3",{children:s.jsx(M,{"aria-label":u,className:"sass-bmd-sup-tag",block_subPublication:a?.tema,href:Ye(d,e.paths),children:u})}):s.jsx("div",{className:"sass-bmd-sup-tag",children:u})}else if(e.info?.section?.url)return s.jsx("h3",{children:s.jsx(M,{className:"sass-bmd-sup-tag",href:e?.info?.section?.url,children:e?.info?.section?.name})});return null};return s.jsxs("section",{className:"sass-bmd-sup-content destacado-super-content",children:[s.jsx(M,{href:e?.info?.link?.url,target:e?.info?.link?.target,"aria-label":e?.main?.title?.home,style:{"--heightImageOverwrite":e.heightImageOverwrite?e.heightImageOverwrite:"51.8%","--heightImageOverwriteMobile":e.heightImageOverwriteMobile?e.heightImageOverwriteMobile:"491px","--fontSizeImageNewsTitleMobile":e.isVertical?"20px":"1.75rem","--lineHeightImageNewsTitleMobile":e.isVertical?"26px":"36px"},children:s.jsx(ve,{preview:e.preview,isLarge:!0,BackDropAuxHeigthMobile:"513px",priorityHigh:!0})}),s.jsxs("div",{className:"sass-bmd-sup-contentNews",style:{"--widthTextContent":e.textPosition==="start"?"100%":"80%"},children:[s.jsx(l,{}),s.jsxs("div",{style:{position:"relative"},children:[s.jsx(c,{}),s.jsx(M,{className:pt("sass-bmd-sup-linkTitle",e.speculationPrerenderClass),href:e?.info?.link?.url,target:e?.info?.link?.target,children:s.jsx("h1",{className:"sass-bmd-sup-titular",style:{"--titlePosition":e.textPosition==="start"?"initial":"center"},children:e?.main?.title?.home})})]}),e.config?.showsubtitle&&s.jsx("div",{className:"sass-bmd-sup-description",dangerouslySetInnerHTML:{__html:e.main.subtitle.striped}}),e?.config?.showtime&&e.config?.showauthor&&s.jsx(s.Fragment,{children:n?.internaluser?s.jsx(M,{block_subPublication:a?.autor,href:`/${e.paths?.autor??"autor"}/${n?.name}`,className:"sass-bmd-sup-correspondent",...o,children:i()}):s.jsx("p",{className:"sass-bmd-sup-correspondentLink",...o,children:i()})})]})]})},hi=e=>{const{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,itemReverseOrder:l,imageSize:c,showSuper:d,textPosition:u,heightImageOverwrite:f,heightImageOverwriteMobile:h}=e;return s.jsxs("section",{className:"su-grid su-w-full su-gap-8 sass-bmd-dd-content",children:[d?s.jsx("section",{style:{...e.customSectionCardStyles},children:s.jsx(Ot,{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,paths:e.paths,textPosition:u,heightImageOverwrite:f,heightImageOverwriteMobile:h,speculationPrerenderClass:e.speculationPrerenderClass})}):s.jsx(Ue,{...e,main:t,authors:a,info:n,preview:r,isVideo:o,config:i,speculationPrerenderClass:e.speculationPrerenderClass,priorityHigh:!0,isTitle:!0}),e.banners&&s.jsx(be,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsx(Hs,{block:e.block,itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})},Rh="w:412,h:231,t:2;",ta=e=>Array.isArray(e)?e:[],e1=()=>{const e=Rt();return s.jsx("div",{className:"sass-bmd-ddl-fallback","aria-hidden":"true",children:s.jsx(e,{className:"sass-bmd-ddl-fallbackPlayIcon"})})};async function t1(e){const{main:t,info:a,preview:n,config:r,isVideo:o,commonServices:i}=e,l=r?.homepreview,c=async()=>{if(!i||!a?.link?.internal)return null;try{return(await i.getNewsMultimedia({path:a.link.internal,imagesizes:Rh}))?.data?.data?.[0]??null}catch{return null}};let d=null;switch(l){case"fotogaleria":{const u=await c(),f=ta(u?.gallery);f.length>0&&(d=s.jsx(Fe,{slot_id:"home-card_"+e.info.link.url,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:f.map((h,p)=>{const m=h?.url||h?.id||`gallery-${p}`;return s.jsx(M,{"aria-label":e.main?.title?.section,className:"sass-bmd-ddl-image",title:t?.title?.section,href:a?.link?.url,target:a?.link?.target,children:s.jsx(Va,{preview:n,isVideo:o})},m)})}));break}case"videoYouTube":{const u=await c(),f=ta(u?.videos).find(h=>h?.type==="video-youtube")?.code;f&&(d=s.jsx("iframe",{className:"sass-bmd-ddl-videoIframeContainer",src:`https://www.youtube.com/embed/${f}`,frameBorder:"0",allowFullScreen:!0}));break}case"videoEmbedded":{const u=await c(),f=ta(u?.videos).find(h=>h?.type==="video-embedded");if(f?.code){const p=/src\s*=\s*"([^"]+)"/.exec(f.code)?.[1];p&&(d=s.jsx("iframe",{className:"sass-bmd-ddl-embeddedIframeContainer",src:p,frameBorder:"0",allowFullScreen:!0}))}break}case"iframe":{const u=e.external?.iframe??"";u.trim()&&(d=s.jsx("div",{className:"sass-bmd-ddl-iframeContainer",dangerouslySetInnerHTML:{__html:u}}));break}case"videoFlash":{const u=await c(),f=ta(u?.videos).find(h=>h?.type==="video-link");f?.code&&(d=s.jsx("iframe",{src:f.code,frameBorder:"0",allowFullScreen:!0,className:"sass-bmd-ddl-embeddedIframeContainer"}));break}case"imagen":{n&&(d=s.jsx(M,{"aria-label":e.main?.title?.section,className:"sass-bmd-ddl-image",title:t?.title?.section,href:a?.link?.url,target:a?.link?.target,children:s.jsx(ve,{preview:n})}));break}}return s.jsx("section",{className:"sass-bmd-ddl-contentHomeCard",children:d??s.jsx(e1,{})})}const s1=e=>{const{main:t,authors:a,info:n,preview:r,isVideo:o,config:i,itemReverseOrder:l,imageSize:c,commonServices:d}=e;return s.jsxs("section",{className:"sass-bmd-ddl-content",children:[s.jsx("div",{className:"sass-bmd-ddl-sectionCardWrapper",children:s.jsx(Ue,{...e,main:t,authors:a,info:n,preview:r,isVideo:o,config:i,isTitle:!0,priorityHigh:!0,speculationPrerenderClass:e.speculationPrerenderClass})}),s.jsxs("div",{className:"sass-bmd-ddl-newsDescriptionWrapper",children:[e.banners&&s.jsx(be,{banners:e.banners,name:"main_block_"+(e.rightOnlyBanner?1:2)}),!e.rightOnlyBanner&&s.jsxs("section",{children:[s.jsx("div",{className:"sass-bmd-ddl-playerWrapper",style:e.customLiveStyles,children:s.jsx(t1,{...e.block[0],paths:e.paths,commonServices:d})}),s.jsx(Hs,{block:e.block.slice(2,4),itemReverseOrder:l,priorityHigh:!0,imageSize:c,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})]})]})]})},a1=({content:e,customLargeSection:t,customSmallSection:a,paths:n,speculationPrerenderClass:r})=>{const o=e[0];return Array.isArray(e)&&e.length>0&&o&&s.jsxs("section",{className:"sass-bmd-dnh-content",children:[s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnh-firstSection",children:s.jsx(Ot,{...o,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})}),s.jsx("div",{style:a,className:"su-flex su-flex-col su-gap-2 su-w-full su-h-auto su-md:gap-0 sass-bmd-dnh-secondSection",children:e.map((i,l)=>l>0&&T.createElement(Ot,{...i,key:l,textPosition:"start",heightImageOverwrite:"256px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r}))})]})},n1=({content:e,customLargeSection:t,customSlimSection:a,paths:n,speculationPrerenderClass:r})=>Array.isArray(e)&&e.length>0&&s.jsx("section",{className:"su-grid su-w-full su-gap-2 sass-bmd-dnv-content",children:e.map((o,i)=>i===0?s.jsx("div",{style:t,className:"su-w-full sass-bmd-dnv-firstSection",children:s.jsx(Ot,{...o,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})},i):s.jsx("section",{style:a,children:T.createElement(Ot,{...o,key:i,isVertical:!0,textPosition:"start",heightImageOverwrite:"512px",heightImageOverwriteMobile:"270px",paths:n,speculationPrerenderClass:r})},i))}),fi=e=>{const{SHOW_TAG_BY_SECTION:t,SUB_PUBLICATION_PREFIX_IN_ROUTES:a}=L(),n=pt("sass-com-bh-title",e.speculationPrerenderClass),r=()=>{if(t&&e.mainNew.keywords?.tags?.length&&e.mainNew.keywords.tags.length>0){const o=e.mainNew.keywords.tags[0],i=o.name;return o.approved?s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{"aria-label":i,className:"sass-com-bh-sectionDescription",block_subPublication:a?.tema,href:Ye(o,e.paths),children:i})}):s.jsx("div",{className:"sass-com-bh-sectionDescription",children:i})}else if(e.mainNew.info?.section?.url)return s.jsx("h3",{className:"sass-com-bh-section",children:s.jsx(M,{className:"sass-com-bh-sectionDescription",href:e?.mainNew?.info?.section?.url,children:e?.mainNew?.info?.section?.name})});return null};return s.jsxs("div",{className:"sass-com-bh-content",children:[s.jsx(r,{}),s.jsx(M,{className:n,href:e?.mainNew?.info?.link?.url,target:e?.mainNew?.info?.link?.target,children:e?.mainNew?.main?.title.home}),e?.mainNew?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-com-bh-subtitle",children:e?.mainNew?.main?.subtitle?.striped}),e.goTo&&s.jsx(M,{href:e.goTo.url,className:"sass-com-bh-linkStyled",children:e.goTo.description})]})},mi=e=>{const{content:t,title:a,isVideo:n,priorityHigh:r=!1,isLarge:o}=e;if(!t||!t[0]||t.length===0)return;const i=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),l={...t[0],main:{...t[0].main,title:{...t[0].main.title,section:i?t[0].main.title.home:t[0].main.title.section}}},c=t.slice(1),d=l;return l&&c&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"su-flex su-flex-col-reverse su-overflow-hidden sass-bd-dn-headerSection",children:[s.jsx(fi,{mainNew:l,goTo:e.goTo,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),s.jsx(Wo,{homepreview:l.config?.homepreview,videos:d.videos,external:l.external,preview:l.preview,linkClassName:"sass-bd-dn-headerSectionLink sass-com-sc1-image",linkHref:l?.info?.link?.url,linkTarget:l?.info?.link?.target,linkTitle:l.main?.title?.section,isVideo:n,isLarge:o,priorityHigh:r})]}),s.jsxs("div",{className:"su-grid sass-bd-dn-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(c)&&c.map((u,f)=>{const h={...u,main:{...u.main,title:{...u.main.title,section:i?u.main.title.home:u.main.title.section}}};return s.jsx("div",{style:{order:f},children:s.jsx(Ue,{...h,isVideo:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},f)})]})]})},sa=async e=>{const{data:t,autorIcon:a,speculationPrerenderClass:n}=e,{SUB_PUBLICATION_PREFIX_IN_ROUTES:r}=L(),o=Array.isArray(t?.authors)?t.authors[0]:void 0,i=o?.image?.sizes?.[0]?.url??"",l=i?await ue(i):"",c=()=>t?.config?.showtime?`${Te(t.info?.date?.modified)}`:"",d=s.jsxs("div",{className:"sass-com-oc2-autorContent",children:[l?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-oc2-image",src:l,alt:o?.fullname??""}):s.jsx("div",{className:"sass-com-oc2-contentIcon",children:a}),s.jsx("p",{className:"sass-com-oc2-autorName",children:Be(o?.fullname??"Redacción",18)}),s.jsx("p",{className:"sass-com-oc2-time",...t?.config?.showtime?je(t.info?.date?.modified):{},children:c()})]});return s.jsxs("div",{className:"sass-com-oc2-content",children:[o?.internaluser?s.jsx(M,{block_subPublication:r?.autor,href:o.internaluser?`/${e.paths.autor}/${o?.name}`:"#",children:d}):d,s.jsxs("div",{className:"sass-com-oc2-boxInformationContent",children:[s.jsx(M,{className:n?`${n} sass-com-oc2-title`:"sass-com-oc2-title",href:t?.info?.link?.url,target:t?.info?.link?.target,children:t?.main?.title?.home}),s.jsx("p",{className:"sass-com-oc2-comment",children:Be(t?.main?.subtitle?.striped||"")})]})]})};function r1(e){const t=new Array(e.length),a=e.length/2;for(let n=0;n<e.length;n++)n%2===0?t[Math.floor(n/2)]=e[n]:t[a+Math.floor(n/2)]=e[n];return t}const o1=e=>{const{isOpinion:t=!1}=e,a=o=>s.jsx("div",{className:"sass-bs-mo-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mo-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},o),n=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];o===2&&n.push(a(o)),i&&n.push(s.jsx("div",{className:"sass-bs-mo-boxPosition",style:{order:o},children:s.jsx(sa,{data:i,autorIcon:e.autorIcon,paths:e.paths})},`description-block-2-odd-${o}`))}const r=n.length%2===0?r1(n):n;return s.jsx("section",{style:e.customStyles,children:s.jsx(he,{title:e.title,titleUrl:e.titleUrl,isOpinion:t,children:s.jsxs("div",{className:"sass-bs-mo-content",children:[s.jsx("div",{className:"sass-bs-mo-contentFlex",children:r}),s.jsx("div",{className:"sass-bs-mo-bannerContent",children:e.halfPageBanner})]})})})},i1=e=>{const{showTitle:t=!0}=e;return s.jsxs("div",{className:"sass-bs-eb1-content",children:[t&&s.jsx("p",{className:"sass-bs-eb1-title",children:"Editorial"}),s.jsx(He,{...e,info:{...e.info,section:{name:"",slug:"",url:""}}})]})},l1=e=>{const{news:t}=e,a=e.isHome??!1;return Array.isArray(t)&&s.jsxs("div",{className:"sass-bs-m2c-content",children:[s.jsxs("div",{className:"sass-bs-m2c-newsContent",children:[e.bannerArray&&e.bannerArray.map((n,r)=>s.jsx("div",{className:"sass-bs-m2c-boxPosition banner-context",style:{order:2+5*r},children:s.jsx("div",{className:"sass-bs-m2c-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:n})})},r)),t.map((n,r)=>{const o={...n,main:{...n.main,title:{...n.main.title,section:a?n.main.title.home:n.main.title.section}}};return s.jsx("div",{className:"sass-bs-m2c-boxPosition",style:{order:r},children:s.jsx(Ue,{...o,share:e.share,paths:e.paths})},r)})]}),s.jsx("div",{className:"sass-bs-m2c-bannerContent",children:e.halfPageBanner})]})},c1=e=>s.jsxs(s.Fragment,{children:[s.jsx(zo,{className:"display-on-lower-900px",...e,termsLink:e.termsLink,submitFunction:e.submitFunction,linkUrl:e.linkUrl}),s.jsx($o,{...e})]}),pi=e=>{const{content:t}=e;if(!t||t.length===0)return;const a=i=>e.hasLines&&(i+1)%3!==0?"sass-bs-m3c-contentSeparator":"",n=[];let r=0,o=1;for(let i=0;i<t.length;i++){e.banners&&e.bannerPositionIndex?.includes(i)&&(n.push(s.jsx("section",{className:a(r),children:e.banners?.some(u=>u.key===`${e.slot_id}_${o}`)&&s.jsx(be,{banners:e.banners,name:`${e.slot_id}_${o}`})},r)),r++,o++);const l=e.isVideo?At(t[i],e.showVideoTime,e.showVideosubtitle,e.showVideoAuthor):t[i];if(!l)continue;const c=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),d={...l,main:{...l.main,title:{...l.main.title,section:c?l.main.title.home:l.main.title.section}}};n.push(s.jsx("section",{className:a(r),children:s.jsx(Ue,{...d,isVideo:e.isVideo,paths:e.paths,speculationPrerenderClass:Do(r,e.speculationPrerenderClass,e.speculationPrerender)})},r)),r++}return n.length===2&&n.push(s.jsx("div",{},r)),s.jsx("div",{className:`${e.hasLines?"sass-bs-m3c-newsContentWithLines":"sass-bs-m3c-newsContentWithoutLines"} sass-bs-m3c-newsContent`,children:n})};function d1(e){const t=new Array(e.length),a=e.length/2;for(let n=0;n<e.length;n++)n%2===0?t[Math.floor(n/2)]=e[n]:t[a+Math.floor(n/2)]=e[n];return t}const u1=e=>{const t=e.isHome??!1,a=s.jsx("div",{className:"sass-bs-mbn-boxPosition banner-context",style:{order:2},children:s.jsx("div",{className:"sass-bs-mbn-bannerContentAux",children:s.jsx("div",{style:{position:"absolute",height:"270px",top:"0"},children:e.banner})})},"banner-static"),n=[];for(let o=0;o<e.news.length;o++){const i=e.news[o];if(o===2&&n.push(a),i){const l={...i,main:{...i.main,title:{...i.main.title,section:t?i.main.title.home:i.main.title.section}}};n.push(s.jsx("div",{className:"sass-bs-mbn-boxPosition",style:{order:o},children:s.jsx(He,{...l,paths:e.paths})},`description-block-2-odd-${o}`))}}n.length%2!==0&&n.push(s.jsx("div",{style:{order:n.length}},"extra_div"+n.length));const r=d1(n);return s.jsx(he,{title:e.title,titleUrl:e.titleUrl,children:s.jsxs("div",{className:"sass-bs-mbn-content",children:[s.jsx("div",{className:"sass-bs-mbn-contentFlex",children:r}),s.jsx("div",{className:"sass-bs-mbn-bannerContent",children:e.halfPageBanner})]})})},gi=e=>s.jsx(he,{title:e.title,titleUrl:e.titleUrl,children:s.jsx(pi,{content:e.content,paths:e.paths,slot_id:e.slot_id,hasLines:e.hasLines,bannerPositionIndex:e.bannerPositionIndex,isVideo:e.isVideo,banners:e.banners,showVideoTime:e.showVideoTime,showVideosubtitle:e.showVideosubtitle,speculationPrerender:e.speculationPrerender,speculationPrerenderClass:e.speculationPrerenderClass})}),bi=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0||!Array.isArray(t)))return s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m14-newsContent ${e.hasLines?"sass-bd-m14-contentSeparator":""}`,children:t?.map((n,r)=>{const o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i={...n,main:{...n.main,title:{...n.main.title,section:o?n.main.title.home:n.main.title.section}}};return s.jsx("section",{children:s.jsx(Ue,{...i,share:e.share,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},r)})})})},wi=e=>{const{content:t,title:a}=e;if(!(!t||t.length===0))return s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx("div",{className:`su-grid su-justify-center sass-bd-m15-newsContent ${e.hasLines?"sass-bd-m15-contentSeparator":"sass-bd-m15-newsContentWhitoutLine"}`,children:t.map((n,r)=>{const o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i={...n,main:{...n.main,title:{...n.main.title,section:o?n.main.title.home:n.main.title.section}}};return s.jsx("section",{children:s.jsx(Ue,{...i,share:e.share,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},r)})})})},Ai=e=>{const{content:t,title:a,isVideo:n=!0}=e;if(!t||t.length===0)return;const r=t[0],o=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1"),i=t.slice(1);return r&&i&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsxs("div",{className:"sass-bd-dv-headerSection",children:[s.jsx(fi,{goTo:e.goTo,mainNew:At(r),paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),s.jsx(M,{className:"sass-bd-dv-headerSectionLink",href:r?.info?.link.url,target:r?.info?.link.target,"aria-label":"Video",children:s.jsx(ve,{preview:{sizes:r?.main?.image.sizes,description:r?.main?.image.description},isVideo:n,isLarge:!0})})]}),s.jsxs("div",{className:"sass-bd-dv-newsContent",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),Array.isArray(i)&&i.map((l,c)=>{const d=At(l),u={...d,main:{...d.main,title:{...d.main.title,section:o?d.main.title.home:d.main.title.section}}};return s.jsx("div",{style:{order:c},children:T.createElement(Ue,{...u,isVideo:n,key:c,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},c)})]})]})},h1=async e=>{const{showNewsLikeTitle:t=!1,speculationPrerenderClass:a}=e;return e&&e.info?s.jsxs("section",{className:"sass-com-sc6-content",style:{"--heightImageOverwrite":"100%"},children:[s.jsx(M,{className:"sass-com-sc6-linkImage",target:e?.info?.link?.target,title:e.main?.title?.section,href:t?e.info.link.url:e?.info?.section?.url,children:s.jsx(ve,{preview:e.preview})}),s.jsx("div",{className:"sass-com-sc6-textContent",children:s.jsx(He,{...e,paths:e.paths,speculationPrerenderClass:a})})]}):null},yi=e=>{if(!e.content||e.content.length===0)return;const t=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return s.jsx(he,{title:e.title,children:s.jsx("div",{className:`su-grid sass-bd-m13c-content ${e.hasLines?"sass-bd-m13c-contentSeparator":""}`,style:{gap:e.hasLines?"30px":"0px"},children:Array.isArray(e.content)&&e.content?.map((a,n)=>{const r={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx("section",{className:e.hasLines?"sass-bd-m13-hasLinesBlock":"",children:T.createElement(h1,{...r,key:n,showNewsLikeTitle:e.showNewsLikeTitle,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},n)})})})},Ci=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(Fe,{slot_id:n,cardWidth:e.cardWidth,cardGap:e.cardGap,visibleItems:e.visibleItems,pagination:e.pagination,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx("div",{style:{"--heightImageOverwrite":e.heightImageOverwrite,"--heightImageOverwriteMobile":e.heightImageOverwriteMobile},children:s.jsx(ts,{...l,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},i)})})})},f1=async e=>{const{SUB_PUBLICATION_PREFIX_IN_ROUTES:t}=L(),{data:a,speculationPrerenderClass:n}=e,r=pt("sass-com-opt1-linkStyled",n);return s.jsxs("div",{className:"sass-com-opt1-content",children:[Array.isArray(a.authors)&&a?.authors[0]?.image?s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-opt1-imageStyled",src:await ue(a?.authors[0]?.image?.sizes[0]?.url||""),alt:a?.authors[0]?.fullname}):s.jsx("div",{className:"sass-com-opt1-contentIcon",children:e.autorIcon}),s.jsxs("div",{className:"sass-com-opt1-boxInformation",children:[s.jsx("p",{className:"sass-com-opt1-authorName",children:a?.authors?.[0]?.internaluser?s.jsx(M,{block_subPublication:t?.autor,href:a.authors?.[0]?.internaluser?`/${e.paths.autor}/${a?.authors?.[0]?.name}`:"#",children:a?.authors?.[0]?.fullname??"Redacción"}):a?.authors?.[0]?.fullname??"Redacción"}),s.jsx("p",{className:"sass-com-opt1-title",children:s.jsx(M,{className:r,href:a?.info?.link?.url,target:a?.info?.link?.target,children:Be(a?.main?.title?.home,40)})}),s.jsx("p",{className:"sass-com-opt1-comment",children:a?.main?.subtitle?.striped}),s.jsx("p",{className:"sass-com-opt1-dateText",children:Ae(a.info.date.modified).locale("es").format("DD [De] MMMM")})]})]})},vi=e=>{const t=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return s.jsx(he,{titleUrl:e.titleUrl,title:e.title,children:s.jsx(Fe,{slot_id:e.slot_id,cardGap:31,cardWidth:344,visibleItems:3,children:e.content&&e.content.map((a,n)=>{const r={...a,main:{...a.main,title:{...a.main.title,section:t?a.main.title.home:a.main.title.section}}};return s.jsx(f1,{autorIcon:e.autorIcon,data:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},n)})})})},Si=({content:e,title:t,slot_id:a="video-carousel",titleUrl:n,identificador:r=0})=>{if(!e||e.length===0)return null;const o=Rt();return s.jsx("div",{style:{"--carrousel-button-top":"230px"},children:s.jsx(he,{title:t,titleUrl:n,children:s.jsx(Fe,{slot_id:a,cardWidth:330,paginationCircle:!0,children:e.map(async(i,l)=>s.jsxs("div",{className:"sass-bd-vc-card",children:[s.jsxs("a",{href:i.info?.link?.url,className:"sass-bd-vc-imageWrapper",children:[s.jsx("img",{src:await ue(i?.main?.image?.sizes[0]?.url??""),alt:i.main?.title||"Video",className:"sass-bd-vc-image",width:329,height:485,loading:r===0&&l<4?"eager":"lazy",fetchPriority:r===0&&l<4?"high":"low",decoding:"async"}),s.jsx(o,{className:"sass-bd-vc-playIcon"})]}),s.jsxs("div",{className:"sass-bd-vc-cardContent",children:[s.jsx("a",{href:i.info?.link?.url,className:"sass-bd-vc-cardTitle",children:i?.main?.title}),s.jsx("div",{className:"sass-bd-vc-time",children:Te(i?.info?.date?.modified??i?.info?.date?.created)})]})]},l))})})})},Ra=e=>{const{item:t,option:a}=e;switch(a){case"ediciones":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent"});case"columnistasnacionales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(sa,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistaslocales":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(sa,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});case"columnistas":return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(sa,{data:t,autorIcon:e.autorIcon,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})});default:return s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(Ue,{...t,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})}},m1=e=>{const{data:t,currentPage:a,banners:n,slug:r,ranking:o,pathname:i,texts:l={},custom_bannerPosition:c}=e,d=c||{3:1,8:2,13:3},u=d?Object.keys(d).map(f=>parseInt(f)):[];switch(e.option){case"op1":return s.jsx(ai,{ranking:o,readestTitle:l.readestTitle??"",videosSectionLabel:l.videosSectionTitle,paths:e.paths,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(be,{banners:n??[],name:"right_1"}),banner:s.jsx(be,{banners:n??[],name:"right_2"}),children:s.jsx("section",{className:"sass-pg-sec-content",children:t.length>0?s.jsx(Ja,{className:["sass-pg-sec-newsContentSection","padding-0"].join(" "),paginatorComponent:s.jsx(Ka,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((f,h)=>s.jsxs(T.Fragment,{children:[u.includes(h+1)&&s.jsx("div",{className:"sass-pg-sec-itemContent banner-context",children:s.jsx(be,{banners:n??[],name:`block_2_${d[h+1]}`})}),s.jsx(Ra,{autorIcon:e.autorIcon,item:f,option:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&h<e.speculationPrerender.length?e.speculationPrerender.class:void 0},h)]},h))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})})});case"op2":return s.jsx(s.Fragment,{children:t.length>0?s.jsx(Ja,{className:"padding-0",paginatorComponent:s.jsx(Ka,{texts:l,pathname:i,query:"",currentPage:a,maxPages:e.PAGINATION_MAX_PAGES,showNext:!(t.length<e.NEWS_PER_SECTION)}),children:Array.isArray(t)&&t?.map((f,h)=>s.jsxs(T.Fragment,{children:[u.includes(h+1)&&s.jsx("div",{className:"sass-pg-sec-ItemCustomContent",children:s.jsx(be,{banners:n??[],name:`block_2_${d[h+1]}`})}),s.jsx(Ra,{autorIcon:e.autorIcon,item:f,option:r,paths:e.paths,speculationPrerenderClass:e.speculationPrerender?.length&&h<e.speculationPrerender.length?e.speculationPrerender.class:void 0},h)]},h))}):s.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:"2rem"},children:s.jsx("p",{style:{fontWeight:"var(--fw)",width:"100%",fontSize:"18px",lineHeight:"26px",textAlign:"center"},children:l.sectionNotResultMessage})})});default:return s.jsx(s.Fragment,{})}},p1=e=>{const{data:t}=e;return s.jsx("section",{className:"sass-pg-cont-content",children:t.map((a,n)=>s.jsx("div",{className:"sass-pg-cont-contactInfoContent",dangerouslySetInnerHTML:{__html:a.body.rendered}},n))})},g1=e=>s.jsxs("section",{className:"sass-com-lnoc-container",children:[s.jsx("div",{className:"sass-com-lnoc-note",children:e.children}),s.jsx("div",{className:"sass-com-lnoc-commercial",children:s.jsxs("div",{className:"sass-com-lnoc-commercialContent",children:[e.slug==="liveblogs"&&s.jsx(ei,{itemList:e.itemList}),e.bannerTop,s.jsx(Vs,{content:e.ranking,title:String(e.texts.readestTitle??""),videosSectionLabel:e.texts.videosSectionTitle,paths:e.paths,customNewsDescriptionStyles:{"--news-description-title-size-desk":"16px","--news-description-title-line-height-desk":"22px","--news-description-title-size-mobile":"16px","--news-description-title-line-height-mobile":"22px",...e.readestCustomStyles}}),s.jsx("div",{style:{position:"sticky",top:"110px"},children:e.banner})]})}),s.jsx("div",{className:"sass-com-lnoc-complement",children:e.complement})]}),Ni=e=>{const t=e.option==="liveblogs",a=e.subtitleBeforeImage?"sass-pg-news-headerSection--subtitleBeforeImage":"",n=()=>{if(!e.news[0]?.main?.title)return De("HeaderSectionComponent","news[0].main.title"),null;const r={...e.news[0],config:{...e.news[0]?.config??{},zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:",",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!0,showads:!1},main:{...e.news[0]?.main,title:{...e.news[0]?.main.title,section:e.news[0]?.main.title.article??""}},info:{...e.news[0]?.info,link:{...e.news[0]?.info?.link,url:void 0,target:void 0}}};switch(e.option){case"liveblogs":return s.jsx("header",{className:a||void 0,style:{"--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-image-height-desk":"600px","--news-image-height-mobile":"auto","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.liveblogs},children:s.jsx(Ro,{...r,commonServices:e.commonServices,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px"})});default:return s.jsx("header",{className:["sass-pg-news-contentHeader",a].filter(Boolean).join(" "),style:{"--section-card-chip-padding":"0 0 0 6px","--uppertitle-display":"block","--news-description-title-size-desk":"38px","--news-description-title-size-mobile":"30px","--news-description-title-line-height-desk":"46px","--news-description-title-line-height-mobile":"38px","--news-description-content-gap":"0px","--news-description-title-line-clamp":"none",...e.headerSectionStyles?.common},children:s.jsx(He,{...r,fontSizeSubTitle:"18px",lineHeightSubTitle:"28px",cutSubtitle:!0,colorSubTitle:"black",isTitle:!0,paths:e.paths,newsDescriptionSectionTag:e.newsDescriptionSectionTag})})}};return s.jsxs(s.Fragment,{children:[s.jsx(n,{}),s.jsx(st,{banners:e.banners,index:1,scope:e.scope}),!t&&e.commonServices&&s.jsx(Xo,{news:e.news[0],commonServices:e.commonServices})]})},b1=e=>s.jsx("section",{className:"su-w-full sass-com-ccard-content",id:e.id,children:e.children}),w1=async(e,t,a)=>{if(!a)return e;const n=/(<div[^>]*class=["'][^"']*ck-related-news[^"']*["'][^>]*>[\s\S]*?<span\b[^>]*data-src="([^"]+)"[^>]*>[\s\S]*?<\/span>[\s\S]*?<\/div>\s*<\/div>)/g,r=[...e.matchAll(n)];let o=e;for(const i of r){const l=i[1],c=i[2]??"";let d;if(a.forEach(y=>{Array.isArray(y)&&!d&&(d=y.find(N=>c.replaceAll("/","|").includes(N?.info.link.internal||"")))}),!d){const y=l.replace(/class=["']([^"']*ck-related-news[^"']*)["']/,'class="$1-empty"');o=o.replace(l,y);continue}const u=d.preview?.sizes?.[0],f=u?await ue(u.url):"",h=d.info.section?.url??"#",p=d.info.section?.name??"Sección",m=d.info.link?.url??"#",g=d.main?.title.article??"Título",b=(await Promise.all(d.preview?.sizes?.map(async y=>{const N=await ue(y.url);return y.width<200?`<source srcset="${N}" media="(width < 750px)"/>`:`<source srcset="${N}" media="(width >= 750px)"/>`})||[])).reduce((y,N)=>y+=N,""),w=l.match(/<span\b[^>]*data-src="[^"]+"[^>]*>[\s\S]*?<\/span>/),A=w?w[0]:"",v=`
431
431
  <span data-src="${c}">
432
432
  <picture style='display: flex'>
433
433
  ${b}
@@ -539,4 +539,4 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
539
539
  <figcaption>${k}</figcaption>
540
540
  </figure>
541
541
  `}}catch(w){console.error("insertVideos error for",p,w),b=""}else b=h;n=f,a+=b,r.lastIndex=f}return a+=e.slice(n),a=_1(a),a}async function V1(e){const{news:t,banners:a,newsRelatedResponses:n,newsRelatedListResponses:r,slug:o,itemList:i,socials:l,getVideos:c,commonServices:d}=e;t?.main||De("RigthSide2","main"),t?.config||De("RigthSide2","config");const u=t?.info?.section?.slug,f=u?{type:"seccion",value:u}:{type:"general"};let h=t?.body?.rendered??"";h=h.replace(/<script[^>]*src=["']https:\/\/platform\.twitter\.com\/widgets\.js["'][^>]*><\/script>/gi,""),h=h.replace(/&nbsp;/g,""),h=G1(h,a,f),h=F1(h),h=await D1(h),h=await j1(h,e.texts,n),h=await H1(h,c),h=B1(h),h=M1(h);const p=t.main?.sources??[],{NEWS_JOURNALIST_COMPONENT:m,CONFIG_blockDefaultTwitterHydrator:g}=L(),b=t.config?.articlepreview===Pe.fotoGaleria&&t.hascontent?.hasgalleryimages;return s.jsxs(s.Fragment,{children:[o!=="liveblogs"&&e.showHeaderImage?b?s.jsx(Ei,{commonServices:d,newsformated:t,internal:t.info?.link?.internal}):s.jsx(s.Fragment,{children:s.jsx(Yo,{preview:t.preview})}):null,e.subtitleBeforeImage&&t.main?.subtitle?.striped&&s.jsx("div",{className:"news-description-before-image",style:{"--news-description-subtitle-display":"-webkit-box",...o!=="liveblogs"?e.headerSectionStyles?.common:e.headerSectionStyles?.liveblogs},children:s.jsx(jo,{subtitle:t.main?.subtitle?.striped,cutSubtitle:!1})}),s.jsx(be,{banners:a,name:"block_1",scope:f}),s.jsxs("div",{className:"sass-pg-nrs-journalistArticleContent",children:[m==="op1"?s.jsx(T1,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):m==="op2"?s.jsx(O1,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}):s.jsx(ui,{autorIcon:e.autorIcon,socials:l,news:t,texts:e.texts,noteShare:e.noteShare,paths:e.paths}),e?.customAfterJournalistComponent]}),e.customSummary?e.customSummary:s.jsx(k1,{summary:t.main?.summary}),s.jsx("main",{className:"sass-pg-nrs-contentNews",suppressHydrationWarning:!0,id:"content-news-section",dangerouslySetInnerHTML:{__html:h}}),s.jsx(N1,{texts:e.texts,itemList:i,banners:a,slug:o,getVideos:c,newsRelatedListResponses:r??[],scope:f}),p.length>0&&s.jsxs("div",{className:"sass-pg-nrs-noteSource",children:[s.jsx(L1,{}),s.jsx("p",{children:String(e.texts.noteSource??"")+(p.length===1?"":"s")+": "+p.map(w=>w.name).join(", ")})]}),!g&&t&&t.hascontent&&t.hascontent.hasembeddedtwitter&&s.jsx("script",{async:!0,defer:!0,src:"https://platform.twitter.com/widgets.js"})]})}const z1=e=>{e.config||De("News_NoteContent.hasHeaderOption","config");const t=e.config?.articlepreview;return!![Pe.videoEmbedded,Pe.videoYouTube,Pe.iframe].includes(t)},xi=async e=>{const{texts:t,autorIcon:a,commonServices:n,slug:r,noteShare:o,paths:i,banners:l,news:c,newsRelatedResponses:d=[],newsRelatedListResponses:u=[],itemList:f=[],socials:h,getVideos:p,scope:m,customSummary:g,subtitleBeforeImage:b,headerSectionStyles:w,customAfterJournalistComponent:A}=e;if(c)return s.jsxs(s.Fragment,{children:[s.jsx(V1,{texts:t,autorIcon:a,socials:h,news:c,banners:l,newsRelatedResponses:d,newsRelatedListResponses:u,itemList:f,slug:r,getVideos:p,noteShare:o,paths:i,showHeaderImage:!z1(c),commonServices:n,customSummary:g,subtitleBeforeImage:b,headerSectionStyles:w,customAfterJournalistComponent:A}),s.jsx(be,{banners:l??[],name:"block_3",scope:m})]})},$1=async e=>{const{ranking:t=[],banners:a,autor:n=[],news:r=[],newsRelatedResponses:o=[],newsRelatedListResponses:i=[],itemList:l=[],socials:c,getVideos:d}=e;if(!r||!r[0])return;const u=r[0]?.info?.section?.slug,f=u?{type:"seccion",value:u}:{type:"general"};return s.jsxs(s.Fragment,{children:[s.jsx(Ni,{option:e.slug,news:r,paths:e.paths,commonServices:e.commonServices,banners:e.banners,headerSectionStyles:e.headerSectionStyles,newsDescriptionSectionTag:e.newsDescriptionSectionTag,scope:f,subtitleBeforeImage:e.subtitleBeforeImage}),s.jsx(g1,{texts:e.texts,paths:e.paths,slug:e.slug,itemList:l,ranking:t,readestCustomStyles:e.readestCustomStyles,bannerTop:s.jsx(be,{banners:a??[],name:"right_1",scope:f}),banner:s.jsx(be,{banners:a??[],name:"right_2",scope:f}),complement:s.jsxs("div",{id:"comentarios",className:"sass-pg-news-complementContent",suppressHydrationWarning:!0,children:[n.length>0&&s.jsx(ci,{texts:e.texts,autorIcon:e.autorIcon,autor:n[0],paths:e.paths}),r[0].authors.length>1&&s.jsx(di,{news:r[0],autorIcon:e.autorIcon,paths:e.paths,texts:e.texts}),r[0]?.keywords?.tags&&r[0]?.keywords?.tags?.length>0&&s.jsx("div",{className:"sass-pg-news-tagContent sass-note-tags-content",children:s.jsx(li,{tags:r[0]?.keywords?.tags,paths:e.paths})})]}),children:s.jsx(xi,{texts:e.texts,autorIcon:e.autorIcon,socials:c,news:r[0],banners:a,newsRelatedResponses:o,newsRelatedListResponses:i,itemList:l,slug:e.slug,getVideos:d,noteShare:e.noteShare,paths:e.paths,commonServices:e.commonServices,scope:f,customSummary:e.customSummary,subtitleBeforeImage:e.subtitleBeforeImage,headerSectionStyles:e.headerSectionStyles})})]})},Q1=e=>s.jsx("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("g",{children:s.jsx("path",{d:"M47.8043 46.6003L47.6635 46.7758L47.8232 46.9342L56.4762 55.5171C56.4768 55.5177 56.4774 55.5184 56.478 55.519C56.8524 55.9072 57.0616 56.4256 57.0616 56.965C57.0616 57.5048 56.8521 58.0234 56.4774 58.4117C56.2839 58.6065 56.0539 58.7611 55.8005 58.8667C55.5466 58.9724 55.2743 59.0269 54.9993 59.0269C54.7243 59.0269 54.452 58.9724 54.1981 58.8667C53.9442 58.7609 53.7138 58.6059 53.5201 58.4106L53.5194 58.4099L44.9327 49.8232L44.7743 49.6648L44.5995 49.805C40.4597 53.1252 35.2051 54.7331 29.9162 54.2981C24.6272 53.863 19.706 51.4181 16.1643 47.4661C12.6227 43.514 10.7298 38.3552 10.875 33.0503C11.0201 27.7455 13.1923 22.6979 16.9447 18.9455C20.6972 15.193 25.7448 13.0209 31.0496 12.8757C36.3544 12.7305 41.5133 14.6234 45.4653 18.165C49.4174 21.7067 51.8623 26.6279 52.2974 31.9169C52.7324 37.2058 51.1245 42.4604 47.8043 46.6003ZM22.4528 47.4552C25.1799 49.2774 28.3861 50.25 31.666 50.25C36.0641 50.25 40.2822 48.5029 43.3921 45.3929C46.5021 42.2829 48.2493 38.0649 48.2493 33.6667C48.2493 30.3868 47.2767 27.1806 45.4545 24.4535C43.6323 21.7264 41.0423 19.6008 38.0121 18.3457C34.9819 17.0905 31.6476 16.7621 28.4307 17.402C25.2139 18.0419 22.259 19.6213 19.9398 21.9405C17.6205 24.2597 16.0411 27.2146 15.4013 30.4314C14.7614 33.6483 15.0898 36.9827 16.345 40.0129C17.6001 43.0431 19.7256 45.633 22.4528 47.4552Z",fill:"white",stroke:"white",strokeWidth:"0.5"})})}),W1=e=>s.jsx("form",{className:"su-w-full su-flex su-justify-center su-gap-4 sass-pg-buscar-content",children:s.jsxs("div",{className:"sass-pg-buscar-inputStyled sass-buscar-form",children:[s.jsx("input",{className:"sass-pg-buscar-inputStyledTest",defaultValue:e.query,name:"query",placeholder:e.texts.searchKeyWord+"..."}),s.jsx("button",{className:"sass-pg-buscar-buttonStyled",type:"submit",children:s.jsx(Q1,{className:"sass-pg-buscar-searchStyled"})})]})}),Bt=({className:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:e,children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Y1={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},ss={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function K1(e){return{email:{label:e?.email??ss.email.label,required:!0},given_name:{label:e?.given_name??ss.given_name.label,required:!0},family_name:{label:e?.family_name??ss.family_name.label,required:!0},password:{label:e?.password??ss.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ss.confirmPassword.label,required:!0}}}const Qe=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],Ti=[{label:"La contraseña debe tener al menos 8 caracteres",test:Qe[0]},{label:"Usa un número",test:Qe[1]},{label:"Usa una letra minúscula",test:Qe[2]},{label:"Usa una letra mayúscula",test:Qe[3]},{label:"Usa un símbolo",test:Qe[4]}];function J1({texts:e,API_ENV:t,termsAndConditionsUrl:a}){const n={...Y1,...e?.comentarios},r=T.useMemo(()=>K1(e?.comentarios?.registerForm),[e?.comentarios?.registerForm]),o=T.useMemo(()=>[{label:n.passwordRuleMinLength,test:Qe[0]},{label:n.passwordRuleNumber,test:Qe[1]},{label:n.passwordRuleLowercase,test:Qe[2]},{label:n.passwordRuleUppercase,test:Qe[3]},{label:n.passwordRuleSymbol,test:Qe[4]}],[n.passwordRuleMinLength,n.passwordRuleNumber,n.passwordRuleLowercase,n.passwordRuleUppercase,n.passwordRuleSymbol]),[i,l]=T.useState({}),[c,d]=T.useState(!1),[u,f]=T.useState(!1),[h,p]=T.useState(null),[m,g]=T.useState("register"),b=async()=>{if(t.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}const y=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${y}`},w=(y,N)=>{l(k=>({...k,[y]:N}))},A=async y=>{y.preventDefault(),p(null),f(!0);try{const N=Object.keys(r).filter(G=>!["username","password","confirmPassword"].includes(G)).map(G=>({Name:G,Value:i[G]}));if(N.some(G=>{if(!G.Value||G.Value.trim()==="")return!0}))return f(!1),p(n.errorCompleteFields);if(i.password!==i.confirmPassword){p(n.errorPasswordMismatch);return}const k=i.password||"";if(o.some(G=>!G.test(k))){p(n.errorPasswordInvalid);return}const $=Math.floor(Date.now()/1e3);N.push({Name:"updated_at",Value:String($)});const q=t.PUBLIC_ENV==="local"?"token":await as("comment_register",t.CAPTCHA_KEY??"",t);if(!q)throw new Error("Captcha token no generado");const B=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,password:i.password,userAttributes:N,token:q})});if(!B.ok){const G=await B.json().catch(()=>({}));if(G.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email})}),g("confirm");return}throw new Error(G?.error||"Error al crear usuario")}g("confirm")}catch(N){console.log(N),p(N?.message||N?.error||n.errorUnexpected)}finally{f(!1)}},v=async y=>{if(y.preventDefault(),!i.confirmationCode){p(n.errorVerificationCodeRequired);return}p(null),f(!0);try{const N=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:i.email,code:i.confirmationCode})});if(!N.ok){const k=await N.json().catch(()=>({}));throw new Error(k?.error||"Error al confirmar usuario")}g("success")}catch(N){p(N?.message||n.errorUnexpected)}finally{f(!1)}},S=i.password||"";return s.jsxs(s.Fragment,{children:[m==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:b,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:n.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:A,className:"sass-pg-login-form","data-error":h?"true":"false",children:[s.jsx("ul",{className:"sass-pg-login-formUl",children:Object.entries(r).map(([y,{label:N}])=>s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:N}),s.jsx("input",{type:y.toLowerCase().includes("password")?c?"text":"password":y==="birthdate"?"date":y==="email"?"email":y==="phone_number"?"tel":"text",name:y,value:i[y]||"",onChange:k=>w(y,k.target.value),className:"sass-pg-login-input",placeholder:""}),y==="password"&&s.jsx("div",{className:"sass-pg-login-passwordChecker",children:o.map((k,O)=>{const $=k.test(S);return s.jsxs("div",{className:$?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:$?"✔":"○"}),s.jsx("div",{children:k.label})]},O)})}),y==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:c,onChange:k=>d(k.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-login-checkboxLabel",children:n.showPasswordsLabel})]})]},y))}),h&&s.jsx("p",{className:"sass-pg-login-error",children:h}),s.jsxs("p",{className:"sass-pg-login-terms",children:[n.termsPrefix," ",s.jsx("a",{href:a??"/pages/terminos-y-condiciones",target:"_blank",children:n.termsLinkText})," ",n.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:u,children:u?s.jsx(Bt,{}):n.createAccountButton})]})]}),m==="confirm"&&s.jsxs("form",{onSubmit:v,className:"sass-pg-login-form","data-error":h?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:n.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:i.confirmationCode||"",onChange:y=>w("confirmationCode",y.target.value),className:"sass-pg-login-input",required:!0})]}),h&&s.jsx("p",{className:"sass-pg-login-error",children:h}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:u,children:u?s.jsx(Bt,{}):n.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-login-switch",children:[n.alreadyConfirmedText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:n.loginButtonText})]})]}),m==="success"&&s.jsxs("form",{className:"sass-pg-login-form",children:[s.jsxs("div",{className:"sass-pg-login-successContainer",children:[s.jsx("div",{className:"sass-pg-login-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"currentColor",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-login-successMessage",children:[s.jsx("p",{children:n.successTitle}),s.jsx("p",{children:n.successMessage})]})]}),s.jsx("a",{href:"./login",type:"submit",className:"sass-pg-login-primary",children:n.loginButtonText})]}),m==="register"&&s.jsxs("p",{className:"sass-pg-login-switch",children:[n.alreadyHasAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./login",children:n.loginButtonText})]})]})}const Z1={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function X1({API_ENV:e,texts:t}){const a={...Z1,...t?.comentarios},[n,r]=T.useState("login"),[o,i]=T.useState(""),[l,c]=T.useState(""),[d,u]=T.useState(""),[f,h]=T.useState(""),[p,m]=T.useState(""),[g,b]=T.useState(!1),[w,A]=T.useState(!1),[v,S]=T.useState(null);T.useEffect(()=>{if(typeof window>"u")return;window.location.hash.includes("forgot")&&n==="login"&&r("forgot"),n==="login"&&N()});const y=B=>document.cookie.split("; ").find(G=>G.startsWith(B+"="))?.split("=")[1],N=async()=>{if(document.cookie.search(e.COGNITO_AUTH_PREFIX+"IS_AUTH=true")!==-1){if(!window)return;const B=y("redirect_after_login_1");console.log("Redirect path after login:",B,document.cookie,document.cookie.search("redirect_after_login_1=")!==-1),B&&B!==""?(window.location.pathname=B,window.location.hash="comentarios"):window.location.pathname=de(e)+"/auth/success"}},k=async()=>{if(e.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"});return}let B=de(e)+"/auth/login";const G=y("redirect_after_login_1");G&&G!==""&&(B=G),window.location.href=`/api/auth/login?redirect=${B}`},O=async B=>{if(!w){if(B.preventDefault(),o===""||l===""){S("Complete todos los campos");return}S(null),A(!0);try{const G=e.PUBLIC_ENV==="local"?"token":await as("comment_login",e.CAPTCHA_KEY||"",e);if(!G)throw new Error("Captcha token no generado");const z=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:l,token:G})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Ha ocurrido un error")}await N();return}catch(G){S(G?.message||"Error inesperado")}finally{A(!1)}}},$=async B=>{if(!w){B.preventDefault(),S(null),A(!0);try{const G=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o})});if(!G.ok){const z=await G.json().catch(()=>({}));throw new Error(z?.error||"Error al enviar código")}c(""),r("changePassword")}catch(G){S(G?.message||"Error inesperado")}finally{A(!1)}}},q=async B=>{if(w)return;if(B.preventDefault(),f!==p){S("Las contraseñas no coinciden");return}if(Ti.some(z=>!z.test(f))){S("La contraseña no cumple con los requisitos");return}S(null),A(!0);try{const z=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o,code:d,newPassword:f})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Error al cambiar contraseña")}r("feedback")}catch(z){S(z?.message||"Error inesperado")}finally{A(!1)}};return s.jsxs(s.Fragment,{children:[n==="login"&&s.jsx(R1,{email:o,password:l,showPassword:g,loading:w,error:v,setEmail:i,setPassword:c,setShowPassword:b,onSubmit:O,onForgot:()=>{S(null),r("forgot")},handleGoogleLogin:k,t:a}),n==="forgot"&&s.jsx(ef,{email:o,setEmail:i,loading:w,error:v,onSubmit:$,onBack:()=>{S(null),r("login")},t:a}),n==="changePassword"&&s.jsx(sf,{email:o,confirmationCode:d,newPassword:f,confirmNewPassword:p,showPassword:g,loading:w,error:v,setConfirmationCode:u,setNewPassword:h,setConfirmNewPassword:m,setShowPassword:b,onSubmit:q,onBack:()=>{S(null),r("forgot")},t:a}),n==="feedback"&&s.jsx(af,{onBackToLogin:()=>{S(null),r("login")},t:a})]})}function R1({email:e,password:t,showPassword:a,loading:n,error:r,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:c,onForgot:d,handleGoogleLogin:u,t:f}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:u,className:"sass-pg-login-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-login-googleIcon"}),s.jsx("span",{children:f.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-login-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:c,className:"sass-pg-login-form","data-error":r?"true":"false",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:f.email}),s.jsx("input",{type:"email",value:e,onChange:h=>o(h.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:f.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:h=>i(h.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:h=>l(h.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-login-checkboxLabel",children:f.showPassword})]})]}),r&&s.jsx("p",{className:"sass-pg-login-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:n,children:n?s.jsx(Bt,{className:"sass-pg-login-spin"}):f.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-login-switch",children:[f.noAccountText,s.jsx("a",{className:"sass-pg-login-toRegister",href:"./register",children:f.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-login-forgotPassword",onClick:d,children:f.forgotPasswordText})]})}function ef({email:e,setEmail:t,loading:a,error:n,onSubmit:r,onBack:o,t:i}){return s.jsxs("form",{onSubmit:r,className:"sass-pg-login-form","data-error":n?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-login-input",placeholder:""})]}),n&&s.jsx("p",{className:"sass-pg-login-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",disabled:a,children:a?s.jsx(Bt,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-login-switch",style:{margin:"0 0 16px"},children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function tf(e){const[t,a]=e.split("@");if(!t||!a)return e;let n="";t.length<=2?n=t[0]+"*":n=t[0]+"*".repeat(t.length-2)+t[t.length-1];const r=a.lastIndexOf(".");if(r===-1)return`${n}@${a}`;const o=a.slice(0,r),i=a.slice(r);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${n}@${l}${i}`}function sf({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:n,showPassword:r,loading:o,error:i,setConfirmationCode:l,setNewPassword:c,setConfirmNewPassword:d,setShowPassword:u,onSubmit:f,onBack:h,t:p}){const m=p.changePasswordMessage.replace("{{email}}",tf(e));return s.jsxs("form",{onSubmit:f,className:"sass-pg-login-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-login-message",children:m}),s.jsxs("ul",{className:"sass-pg-login-formUl",children:[s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-login-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.newPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:a,onChange:g=>c(g.target.value),className:"sass-pg-login-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-login-passwordChecker",children:Ti.map((g,b)=>{const w=g.test(a);return s.jsxs("div",{className:w?"sass-pg-login-valid":"sass-pg-login-invalid",children:[s.jsx("div",{children:w?"✔":"○"}),s.jsx("div",{children:g.label})]},b)})})]}),s.jsxs("div",{className:"sass-pg-login-field",children:[s.jsx("label",{className:"sass-pg-login-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:n,onChange:g=>d(g.target.value),className:"sass-pg-login-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-login-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:r,onChange:g=>u(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-login-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-login-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx(Bt,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-login-switch",children:s.jsx("button",{type:"button",onClick:h,children:p.backButton})})]})}function af({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-login-form",children:[s.jsx("p",{className:"sass-pg-login-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"submit",className:"sass-pg-login-primary",onClick:e,children:t.loginButtonText})]})}function nf({containerId:e,containerId2:t}){return T.useEffect(()=>{try{let a=function(){const u=window.twttr;u?.widgets?u.widgets.load(n):d<10?(d++,requestAnimationFrame(a)):console.warn("No se pudo cargar widgets de Twitter")};const n=document.getElementById(e),r=document.getElementById(t);if(!n&&!r)return;const o=n?.querySelectorAll("script[src]")??[],i=r?.querySelectorAll("script[src]")??[];[...o,...i].forEach(u=>{const f=document.createElement("script");Array.from(u.attributes).forEach(h=>{f.setAttribute(h.name,h.value)}),u.replaceWith(f)});const c=document.querySelectorAll('script[src*="platform.twitter.com/widgets.js"]');if(c)for(let u=0;u<c.length;u++)c[u]?.remove();let d=0;if(document.querySelector('script[src*="platform.twitter.com/widgets.js"]'))a();else{const u=document.createElement("script");u.src="https://platform.twitter.com/widgets.js",u.async=!0,u.onload=a,document.body.appendChild(u)}}catch(a){console.warn("Error al procesar embeds de Twitter",a)}},[e]),null}const rf=({currentNew:e})=>e&&e?.hascontent?.hasembeddedtwitter&&s.jsx("script",{src:"https://platform.twitter.com/widgets.js"}),of=e=>{const{isVideo:t=!1,isLarge:a=!1,hasShadow:n=!1,BackDropAuxHeigthMobile:r}=e,o=Ha(),i=T.useMemo(()=>{const h=e?.preview?.sizes;if(h&&Array.isArray(h)&&h.length>0)return h;const p=e?.preview?.original;return p?.url?[{url:p.url,width:p.width||0,height:p.height||0}]:[]},[e?.preview?.sizes,e?.preview?.original]);if(!i.length||!i[0]?.url||i[0]?.url==="")return s.jsx("div",{className:"sass-com-img-imagePlaceholder"});const{PUBLIC_API_HOST:l="",PUBLIC_ASSETS_URL:c}=e.API_ENV,d=i[0]?.url,u=c&&c!=="false"?c:l,f=d?.startsWith("http")||d?.includes(u)?d:u+d;return s.jsx("figure",{className:"sass-com-img-figure",children:s.jsxs("span",{className:"sass-com-img-backdrop",children:[s.jsx("span",{className:"sass-com-img-backdropAux",style:{height:r||"56.25%"}}),s.jsxs("picture",{children:[s.jsx("img",{fetchPriority:"low",loading:"lazy",className:"sass-com-img-imageStyled",alt:e.preview?.description||"",src:f,style:{boxShadow:n?"0px 4px 8px 0px #00000033":"0px"}}),t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-com-img-boxPlayIcon",style:{height:a?"40%":"72px"}}),s.jsx(o,{className:"sass-com-img-playStyled",style:{width:a?"3rem":"27px",height:a?"3rem":"27px",marginBottom:a?"18px":".5rem",marginLeft:a?"30px":".5rem"}})]})]})]})})},lf=e=>s.jsx("svg",{width:"41",height:"33",viewBox:"0 0 41 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:s.jsx("path",{d:"M17.9576 21.2985C16.8233 21.2985 15.9277 22.194 15.9277 23.3283C15.9277 24.4627 16.8233 25.3582 17.9576 25.3582C19.0919 25.3582 19.9874 24.4627 19.9874 23.3283C19.9874 22.194 19.0919 21.2985 17.9576 21.2985ZM17.9576 19.2686C19.0919 19.2686 19.9874 18.3731 19.9874 17.2388C19.9874 16.1045 19.0919 15.2089 17.9576 15.2089C16.8233 15.2089 15.9277 16.1045 15.9277 17.2388C15.9277 18.3731 16.8233 19.2686 17.9576 19.2686ZM17.9576 13.1791C19.0919 13.1791 19.9874 12.2836 19.9874 11.1492C19.9874 10.0149 19.0919 9.11938 17.9576 9.11938C16.8233 9.11938 15.9277 10.0149 15.9277 11.1492C15.9277 12.2836 16.8233 13.1791 17.9576 13.1791Z",fill:"#7B888A"})}),ki={info:{section:{name:"",slug:"",url:""},link:{url:"/",target:"",canonical:"",internal:""},date:{date:"",created:0,modified:0,firstpublish:0,lastpublish:0}},config:{zonehome:void 0,priorityhome:"",zonesection:"",prioritysection:"",homepreview:"",showcomments:!1,showtime:!1,showauthor:!1,showuppertitle:!1,showsubtitle:!1,showads:!1},main:{title:{home:"",section:"",article:""},subtitle:{rendered:"",striped:""},tags:[]},authors:[{firstname:"",lastname:"",fullname:"",image:void 0,name:"",internaluser:!1}],preview:void 0},cf=({section:e,internalPath:t,banner:a,isVisible:n=!1,stylesConfig:r,API_ENV:o,fetchConfig:i,paths:l})=>{const c=o.FETCH_SIZE_MORE_NEWS??6,[d,u]=T.useState({data:Array.from({length:c},()=>ki)}),[f,h]=T.useState(!1),p=T.useCallback(async()=>{if(!t)return;const b=new URLSearchParams({section:e,currentNewsLink:t}),w=await fetch(`/api/get-more-news?${b}`);if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);return await w.json()},[e,t]),m=T.useCallback(async()=>{const{PUBLIC_API_FRONT:b,PUBLIC_X_SECURITY_TOKEN:w,PUBLIC_API_PATH_VERSION:A,PUBLIC_PUBLICATION_ID:v}=o;if(!b||!w||!v||!A)throw new Error("Missing required environment variables");const S=await re.get(`${b}${A}/news-list-section`,{params:{size:c+1,newstype:i.newsType,section:e,imagesizes:i.imgSizes,publication:parseInt(v)},headers:{"x-api-token":w,"Content-Type":"application/json"}});return{...S.data,data:S.data.data.filter(y=>y.info.link.internal!==t)}},[e,t,o]),g=T.useCallback(async()=>{if(!(f||!t)){h(!0);try{let b;o.PUBLIC_ENV!=="prod"?b=await p():b=await m(),u({...b,data:b.data.slice(0,c)})}catch(b){console.error("[/api/get-more-news] Error:",b.message),u(void 0)}}},[f,t,o.PUBLIC_ENV,p,m]);return T.useEffect(()=>{n&&g()},[n,g]),!d?.data||d.data.length===0?null:s.jsx(df,{news:d.data,title:"Más Noticias",...r["Modulo 1x3 Client"]??r["Modulo 1x3"],hasLines:!0,showSubtitle:!0,rounded:!0,banner:a,API_ENV:o,paths:l,isVisible:n,LINK_REMOVE:o.LINK_REMOVE})},df=e=>{const{news:t,hasLines:a=!1,API_ENV:n}=e,r=o=>a&&(o+1)%3!==0?"sass-bd-m13-contentSeparator":"";return s.jsx("div",{className:"su-grid su-justify-center sass-bd-m13-newsContent",style:{gap:a?"30px":"20px","--gridTemplateModlule":a?"repeat(auto-fit, 343px);":"repeat(auto-fit, 380px);"},children:t.map((o,i)=>{const{main:l,authors:c,info:d,preview:u,isVideo:f=!1,config:h,overImage:p="default",isTitle:m=!1,isLarge:g=!1,keywords:b}=o;return s.jsx("div",{className:r(i),style:{order:i},children:s.jsxs("section",{className:"sass-com-sc1-content",children:[s.jsx(M,{title:l?.title?.section,href:d?.link?.url??"invalidUrl","aria-label":l?.title?.section??"nota",target:d?.link?.target,LINK_REMOVE:e.LINK_REMOVE,children:s.jsx(of,{isVisible:e.isVisible,preview:u,rounded:e.rounded,isVideo:f,isLarge:g,API_ENV:e.API_ENV,getImageUrl:e.getImageUrl})}),s.jsx("div",{className:"sass-com-sc1-newsDescription",children:s.jsx(hf,{main:l,SHOW_TAG_BY_SECTION:n.SHOW_TAG_BY_SECTION,authors:c,info:d,preview:u,share:e.share,config:h,overImage:p,isTitle:m,paths:e.paths,isVisible:e.isVisible,DATE_CONFIG:e.API_ENV,keywords:b,API_ENV:n,LINK_REMOVE:e.LINK_REMOVE})})]})},i)})})};function uf(e){return e?Array.isArray(e)?e:e&&typeof e=="object"?[e]:[]:[]}const hf=e=>{const{share:t=!1,cutSubtitle:a=!0,SHOW_TAG_BY_SECTION:n,keywords:r,info:o,paths:i}=e,c=uf(e.authors).slice(0,2),d=!!e.config?.showauthor,u=!!e.config?.showtime,f=e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.autor,h=w=>s.jsx("span",{className:"sass-com-nd-correspondentName",children:w}),p=()=>d?c.length===0?h("Redacción"):c.map((w,A)=>{const v=w.Figure||w.fullname||"Redacción",S=A>0?s.jsx("span",{className:"sass-com-nd-correspondentSeparator",children:", "}):null,y=w.internaluser?s.jsx(M,{block_subPublication:f,"aria-label":v,className:"sass-com-nd-correspondentLink",href:`/${i?.autor??"autor"}/${w.name}`,LINK_REMOVE:e.LINK_REMOVE,children:h(v)}):h(v);return s.jsxs(T.Fragment,{children:[S,y]},w.name||`${v}-${A}`)}):null,m=()=>!d&&!u?null:s.jsxs("span",{className:"sass-com-nd-correspondent",children:[p(),d&&u&&s.jsx("span",{className:"sass-com-nd-correspondentSeparator",children:" - "}),u&&s.jsx("time",{className:"sass-com-nd-correspondentTime",dateTime:Ie(e.info?.date?.modified,e.DATE_CONFIG?.DATE_TIMEZONE??"")||void 0,...je(e.info?.date?.modified),children:Te(e.info?.date?.modified,e.DATE_CONFIG)})]}),g=()=>e.main.uppertitle?s.jsx("p",{className:"sass-com-nd-uppertitle",title:e.main.uppertitle,children:e.main.uppertitle}):null,b=()=>{if(n&&r?.tags?.length&&r.tags.length>0){const w=r.tags[0],A=w.name;return s.jsxs("span",{className:"sass-com-nd-sectionDescriptionContainer",children:[w.approved?s.jsx(M,{"aria-label":A,block_subPublication:e.DATE_CONFIG?.SUB_PUBLICATION_PREFIX_IN_ROUTES?.tema,className:"sass-com-nd-sectionDescription",href:Ye(w,e.paths),children:A}):s.jsx("div",{className:"sass-com-nd-sectionDescription",children:A}),g()]})}else if(o?.section?.url){const w=o.section.name;return s.jsxs("span",{className:"sass-com-nd-sectionDescriptionContainer",children:[s.jsx(M,{"aria-label":w,className:"sass-com-nd-sectionDescription",href:o.section.url,children:w}),g()]})}return null};return s.jsxs("div",{className:"sass-com-nd-boxInformation",children:[t&&s.jsx(lf,{className:"sass-com-nd-dotStyles"}),s.jsx(b,{}),s.jsx("h2",{className:"sass-com-nd-articule",children:s.jsx(M,{className:"sass-com-nd-linkStyled",style:{"--isLink":e?.info?.link?.url?"underline":"none"},"aria-label":e.main?.title?.section??"nota",href:e?.info?.link?.url??"invalidUrl",target:e?.info?.link?.target,LINK_REMOVE:e.LINK_REMOVE,children:e.main?.title?.section})}),e.config?.showsubtitle&&e.main?.subtitle?.striped&&s.jsx("p",{className:"sass-com-nd-description",style:{"--fontSizeSubTitle":e.fontSizeSubTitle,"--lineHeightSubTitle":e.lineHeightSubTitle,"--colorSubTitle":e.colorSubTitle},children:a?Be(e.main?.subtitle?.striped):e.main?.subtitle?.striped}),m()]})},ff={userGreeting:"Hola {{name}}!",logoutButton:"Cerrar Sesion"},mf=({user:e,handleLogout:t,message:a,texts:n})=>{const r={...ff,...n?.comentarios},o=()=>{const c=document.querySelector(".user-actions-options");c&&c.classList.toggle("show")},i=e.firstname??"Usuario",l=r.userGreeting.replace("{{name}}",i);return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{style:{display:"flex",gap:"14px"},children:[e&&e.picture&&e.picture!==""?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:i.charAt(0).toUpperCase()}),s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate user-welcome",children:l}),s.jsx("div",{className:"user-actions-options su-hidden su-absolute su-p-2",children:s.jsx("button",{className:"su-bg-transparent su-border-none",onClick:()=>{t()},children:r.logoutButton})}),s.jsx("button",{className:"user-actions-span",onClick:o,children:s.jsx(Js,{width:13,height:13,fill:"black"})})]}),s.jsx("p",{className:"comment-text su-font-normal",children:a})]})]})})},Ii=async(e,t)=>{if(xe(t))return!0;if(!e)return!1;const{CAPTCHA_PROJECT:a,CAPTCHA_KEY_V2:n,COMMENTS_CAPTCHA_API_KEY:r}=t;try{const o=a,i=n,d=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${o}/assessments?key=${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:i}})})).json();return console.log("reCAPTCHA Enterprise verification result:",d),d.tokenProperties?.valid===!0}catch(o){return console.error("Error verificando reCAPTCHA Enterprise:",o),!1}};async function pf({publication:e,username:t,id:a,type:n,baseUrl:r,captchaToken:o,apiToken:i,securityToken:l,COMMENTS_VARS:c}){const d=xe(c);if(!e||!t||!a||!n||!d&&!o)throw new Error("Faltan parámetros requeridos: publication, username, id, type, captchaToken");if(typeof e!="string"||typeof t!="string"||typeof a!="string"||typeof n!="string"||!d&&typeof o!="string")throw new Error("Todos los parámetros deben ser strings");if(!await Ii(o,c))throw new Error("Token de captcha inválido");if(!i)throw new Error("Falta el token de API del CMS");const u=`${r}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/report`,f=encodeURIComponent(n),h=new URLSearchParams({publication:e,username:t??!1,id:a,type:f}),p=`${u}?${h.toString()}`;try{console.log("Reporting comment:",{publication:e,username:t,id:a,type:n,encodedType:f,url:p});const m=await re.get(p,{headers:{"User-Agent":"blu3st@ck-react","x-security-token":l,"x-api-token":i,"Content-Type":"application/json"}});if(console.log("Report response:",m.data),m.status===200||m.status===201)return{type:"success",message:"Comentario reportado exitosamente",status:m.status,data:m.data};throw new Error(`Respuesta inesperada del servidor: ${m.status}`)}catch(m){if(console.error("Error reporting comment:",m),re.isAxiosError(m)){const g=m.response?.status,b=m.response?.data;throw g===400?new Error("Datos inválidos para el reporte"):g===401?new Error("Token de API inválido"):g===403?new Error("Acceso denegado para reportar comentario"):g===404?new Error("Comentario no encontrado"):g===409?new Error("El comentario ya fue reportado por este usuario"):g===500?new Error("Error interno del servidor CMS"):new Error(b?.error||b?.message||`Error HTTP ${g}: No se pudo reportar el comentario`)}throw m}}const aa={spam:"Es spam o contenido comercial no deseado",inappropriate:"Lenguaje inadecuado",hate:"Discurso o símbolos de odio",misinformation:"Información falsa o fraude",terrorism:"Promueve el terrorismo",intellectual:"Violación de propiedad intelectual",bullying:"Bullying o acoso"};function gf(e){return aa[e]}const Xe=300,Re={username:"anonimo",firstname:"Usuario",lastname:"Anonimo"};function bf(e){const t=e.split(" ");if(t.length!==3)return e;const[a,n,r]=t,o=n.charAt(0).toUpperCase()+n.slice(1).toLowerCase();return`${a} ${o} ${r}`}const na=(e,t,a)=>{if(!e||!e.current)return{boolean:!1,text:""};const n=e.current?.value||"",r=n.length>Xe,{PUBLIC_ENV:o}=a,l=o==="local"||xe(a),c=n.trim()!==""&&(l||t!=="")&&!r,d=r?`No debes exceder el limite de ${Xe} caracteres.`:"Debes completar todos los campos para comentar.";return{boolean:c,text:d}},Li=e=>{const t=e.cookie.split("; ").find(a=>a.startsWith("reported="));if(!t)return[];try{return JSON.parse(decodeURIComponent(t.split("=")[1]??""))}catch{return[]}},wf=(e,t)=>{const a=Li(e);a.includes(t)||(a.push(t),e.cookie=`reported=${encodeURIComponent(JSON.stringify(a))}; path=/; max-age=${3600*24*1}`)};function Af(e){const[t,a]=e.split("@");if(!t||!a)return e;let n="";t.length<=2?n=t[0]+"*":n=t[0]+"*".repeat(t.length-2)+t[t.length-1];const r=a.lastIndexOf(".");if(r===-1)return`${n}@${a}`;const o=a.slice(0,r),i=a.slice(r);let l="";return o.length<=2?l=o[0]+"*":l=o[0]+"*".repeat(o.length-2)+o[o.length-1],`${n}@${l}${i}`}var ra={exports:{}},oa={exports:{}},oe={};var Ui;function yf(){if(Ui)return oe;Ui=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function v(y){if(typeof y=="object"&&y!==null){var N=y.$$typeof;switch(N){case t:switch(y=y.type,y){case c:case d:case n:case o:case r:case f:return y;default:switch(y=y&&y.$$typeof,y){case l:case u:case m:case p:case i:return y;default:return N}}case a:return N}}}function S(y){return v(y)===d}return oe.AsyncMode=c,oe.ConcurrentMode=d,oe.ContextConsumer=l,oe.ContextProvider=i,oe.Element=t,oe.ForwardRef=u,oe.Fragment=n,oe.Lazy=m,oe.Memo=p,oe.Portal=a,oe.Profiler=o,oe.StrictMode=r,oe.Suspense=f,oe.isAsyncMode=function(y){return S(y)||v(y)===c},oe.isConcurrentMode=S,oe.isContextConsumer=function(y){return v(y)===l},oe.isContextProvider=function(y){return v(y)===i},oe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},oe.isForwardRef=function(y){return v(y)===u},oe.isFragment=function(y){return v(y)===n},oe.isLazy=function(y){return v(y)===m},oe.isMemo=function(y){return v(y)===p},oe.isPortal=function(y){return v(y)===a},oe.isProfiler=function(y){return v(y)===o},oe.isStrictMode=function(y){return v(y)===r},oe.isSuspense=function(y){return v(y)===f},oe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===d||y===o||y===r||y===f||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===p||y.$$typeof===i||y.$$typeof===l||y.$$typeof===u||y.$$typeof===b||y.$$typeof===w||y.$$typeof===A||y.$$typeof===g)},oe.typeOf=v,oe}var ie={};var Pi;function Cf(){return Pi||(Pi=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function v(j){return typeof j=="string"||typeof j=="function"||j===n||j===d||j===o||j===r||j===f||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===p||j.$$typeof===i||j.$$typeof===l||j.$$typeof===u||j.$$typeof===b||j.$$typeof===w||j.$$typeof===A||j.$$typeof===g)}function S(j){if(typeof j=="object"&&j!==null){var we=j.$$typeof;switch(we){case t:var ma=j.type;switch(ma){case c:case d:case n:case o:case r:case f:return ma;default:var gl=ma&&ma.$$typeof;switch(gl){case l:case u:case m:case p:case i:return gl;default:return we}}case a:return we}}}var y=c,N=d,k=l,O=i,$=t,q=u,B=n,G=m,z=p,_=a,P=o,U=r,H=f,D=!1;function Y(j){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(j)||S(j)===c}function E(j){return S(j)===d}function I(j){return S(j)===l}function F(j){return S(j)===i}function Q(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function V(j){return S(j)===u}function W(j){return S(j)===n}function K(j){return S(j)===m}function Z(j){return S(j)===p}function te(j){return S(j)===a}function se(j){return S(j)===o}function X(j){return S(j)===r}function ce(j){return S(j)===f}ie.AsyncMode=y,ie.ConcurrentMode=N,ie.ContextConsumer=k,ie.ContextProvider=O,ie.Element=$,ie.ForwardRef=q,ie.Fragment=B,ie.Lazy=G,ie.Memo=z,ie.Portal=_,ie.Profiler=P,ie.StrictMode=U,ie.Suspense=H,ie.isAsyncMode=Y,ie.isConcurrentMode=E,ie.isContextConsumer=I,ie.isContextProvider=F,ie.isElement=Q,ie.isForwardRef=V,ie.isFragment=W,ie.isLazy=K,ie.isMemo=Z,ie.isPortal=te,ie.isProfiler=se,ie.isStrictMode=X,ie.isSuspense=ce,ie.isValidElementType=v,ie.typeOf=S})()),ie}var Oi;function en(){return Oi||(Oi=1,process.env.NODE_ENV==="production"?oa.exports=yf():oa.exports=Cf()),oa.exports}var tn,Bi;function vf(){if(Bi)return tn;Bi=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function r(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return tn=r()?Object.assign:function(o,i){for(var l,c=n(o),d,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){d=e(l);for(var h=0;h<d.length;h++)a.call(l,d[h])&&(c[d[h]]=l[d[h]])}}return c},tn}var sn,Mi;function an(){if(Mi)return sn;Mi=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return sn=e,sn}var nn,_i;function Di(){return _i||(_i=1,nn=Function.call.bind(Object.prototype.hasOwnProperty)),nn}var rn,qi;function Sf(){if(qi)return rn;qi=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=an(),a={},n=Di();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function r(o,i,l,c,d){if(process.env.NODE_ENV!=="production"){for(var u in o)if(n(o,u)){var f;try{if(typeof o[u]!="function"){var h=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=o[u](i,u,c,l,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var p=d?d():"";e("Failed "+l+" type: "+f.message+(p??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},rn=r,rn}var on,Gi;function Nf(){if(Gi)return on;Gi=1;var e=en(),t=vf(),a=an(),n=Di(),r=Sf(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return on=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(E){var I=E&&(d&&E[d]||E[u]);if(typeof I=="function")return I}var h="<<anonymous>>",p={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:A(),arrayOf:v,element:S(),elementType:y(),instanceOf:N,node:q(),objectOf:O,oneOf:k,oneOfType:$,shape:G,exact:z};function m(E,I){return E===I?E!==0||1/E===1/I:E!==E&&I!==I}function g(E,I){this.message=E,this.data=I&&typeof I=="object"?I:{},this.stack=""}g.prototype=Error.prototype;function b(E){if(process.env.NODE_ENV!=="production")var I={},F=0;function Q(W,K,Z,te,se,X,ce){if(te=te||h,X=X||Z,ce!==a){if(c){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=te+":"+Z;!I[we]&&F<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+te+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[we]=!0,F++)}}return K[Z]==null?W?K[Z]===null?new g("The "+se+" `"+X+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new g("The "+se+" `"+X+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:E(K,Z,te,se,X)}var V=Q.bind(null,!1);return V.isRequired=Q.bind(null,!0),V}function w(E){function I(F,Q,V,W,K,Z){var te=F[Q],se=U(te);if(se!==E){var X=H(te);return new g("Invalid "+W+" `"+K+"` of type "+("`"+X+"` supplied to `"+V+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return b(I)}function A(){return b(i)}function v(E){function I(F,Q,V,W,K){if(typeof E!="function")return new g("Property `"+K+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var Z=F[Q];if(!Array.isArray(Z)){var te=U(Z);return new g("Invalid "+W+" `"+K+"` of type "+("`"+te+"` supplied to `"+V+"`, expected an array."))}for(var se=0;se<Z.length;se++){var X=E(Z,se,V,W,K+"["+se+"]",a);if(X instanceof Error)return X}return null}return b(I)}function S(){function E(I,F,Q,V,W){var K=I[F];if(!l(K)){var Z=U(K);return new g("Invalid "+V+" `"+W+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return b(E)}function y(){function E(I,F,Q,V,W){var K=I[F];if(!e.isValidElementType(K)){var Z=U(K);return new g("Invalid "+V+" `"+W+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return b(E)}function N(E){function I(F,Q,V,W,K){if(!(F[Q]instanceof E)){var Z=E.name||h,te=Y(F[Q]);return new g("Invalid "+W+" `"+K+"` of type "+("`"+te+"` supplied to `"+V+"`, expected ")+("instance of `"+Z+"`."))}return null}return b(I)}function k(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function I(F,Q,V,W,K){for(var Z=F[Q],te=0;te<E.length;te++)if(m(Z,E[te]))return null;var se=JSON.stringify(E,function(ce,j){var we=H(j);return we==="symbol"?String(j):j});return new g("Invalid "+W+" `"+K+"` of value `"+String(Z)+"` "+("supplied to `"+V+"`, expected one of "+se+"."))}return b(I)}function O(E){function I(F,Q,V,W,K){if(typeof E!="function")return new g("Property `"+K+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var Z=F[Q],te=U(Z);if(te!=="object")return new g("Invalid "+W+" `"+K+"` of type "+("`"+te+"` supplied to `"+V+"`, expected an object."));for(var se in Z)if(n(Z,se)){var X=E(Z,se,V,W,K+"."+se,a);if(X instanceof Error)return X}return null}return b(I)}function $(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var I=0;I<E.length;I++){var F=E[I];if(typeof F!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+D(F)+" at index "+I+"."),i}function Q(V,W,K,Z,te){for(var se=[],X=0;X<E.length;X++){var ce=E[X],j=ce(V,W,K,Z,te,a);if(j==null)return null;j.data&&n(j.data,"expectedType")&&se.push(j.data.expectedType)}var we=se.length>0?", expected one of type ["+se.join(", ")+"]":"";return new g("Invalid "+Z+" `"+te+"` supplied to "+("`"+K+"`"+we+"."))}return b(Q)}function q(){function E(I,F,Q,V,W){return _(I[F])?null:new g("Invalid "+V+" `"+W+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return b(E)}function B(E,I,F,Q,V){return new g((E||"React class")+": "+I+" type `"+F+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function G(E){function I(F,Q,V,W,K){var Z=F[Q],te=U(Z);if(te!=="object")return new g("Invalid "+W+" `"+K+"` of type `"+te+"` "+("supplied to `"+V+"`, expected `object`."));for(var se in E){var X=E[se];if(typeof X!="function")return B(V,W,K,se,H(X));var ce=X(Z,se,V,W,K+"."+se,a);if(ce)return ce}return null}return b(I)}function z(E){function I(F,Q,V,W,K){var Z=F[Q],te=U(Z);if(te!=="object")return new g("Invalid "+W+" `"+K+"` of type `"+te+"` "+("supplied to `"+V+"`, expected `object`."));var se=t({},F[Q],E);for(var X in se){var ce=E[X];if(n(E,X)&&typeof ce!="function")return B(V,W,K,X,H(ce));if(!ce)return new g("Invalid "+W+" `"+K+"` key `"+X+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(F[Q],null," ")+`
542
- Valid keys: `+JSON.stringify(Object.keys(E),null," "));var j=ce(Z,X,V,W,K+"."+X,a);if(j)return j}return null}return b(I)}function _(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(_);if(E===null||l(E))return!0;var I=f(E);if(I){var F=I.call(E),Q;if(I!==E.entries){for(;!(Q=F.next()).done;)if(!_(Q.value))return!1}else for(;!(Q=F.next()).done;){var V=Q.value;if(V&&!_(V[1]))return!1}}else return!1;return!0;default:return!1}}function P(E,I){return E==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function U(E){var I=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":P(I,E)?"symbol":I}function H(E){if(typeof E>"u"||E===null)return""+E;var I=U(E);if(I==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return I}function D(E){var I=H(E);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function Y(E){return!E.constructor||!E.constructor.name?h:E.constructor.name}return p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},on}var ln,Fi;function Ef(){if(Fi)return ln;Fi=1;var e=an();function t(){}function a(){}return a.resetWarningCache=t,ln=function(){function n(i,l,c,d,u,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function r(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o},ln}var ji;function xf(){if(ji)return ra.exports;if(ji=1,process.env.NODE_ENV!=="production"){var e=en(),t=!0;ra.exports=Nf()(e.isElement,t)}else ra.exports=Ef()();return ra.exports}var Tf=xf();const Se=Mt(Tf);var kf=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},cn.apply(this,arguments)}function If(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function ia(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dn(e,t)}function dn(e,t){return dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},dn(e,t)}var la=(function(e){Lf(t,e);function t(){var n;return n=e.call(this)||this,n.handleExpired=n.handleExpired.bind(ia(n)),n.handleErrored=n.handleErrored.bind(ia(n)),n.handleChange=n.handleChange.bind(ia(n)),n.handleRecaptchaRef=n.handleRecaptchaRef.bind(ia(n)),n}var a=t.prototype;return a.getCaptchaFunction=function(r){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[r]:this.props.grecaptcha[r]:null},a.getValue=function(){var r=this.getCaptchaFunction("getResponse");return r&&this._widgetId!==void 0?r(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var r=this.getCaptchaFunction("execute");if(r&&this._widgetId!==void 0)return r(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var r=this;return new Promise(function(o,i){r.executionResolve=o,r.executionReject=i,r.execute()})},a.reset=function(){var r=this.getCaptchaFunction("reset");r&&this._widgetId!==void 0&&r(this._widgetId)},a.forceReset=function(){var r=this.getCaptchaFunction("reset");r&&r()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(r){this.props.onChange&&this.props.onChange(r),this.executionResolve&&(this.executionResolve(r),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var r=this.getCaptchaFunction("render");if(r&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=r(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(r){this.captcha=r},a.render=function(){var r=this.props;r.sitekey,r.onChange,r.theme,r.type,r.tabindex,r.onExpired,r.onErrored,r.size,r.stoken,r.grecaptcha,r.badge,r.hl,r.isolated;var o=If(r,kf);return vn.createElement("div",cn({},o,{ref:this.handleRecaptchaRef}))},t})(vn.Component);la.displayName="ReCAPTCHA",la.propTypes={sitekey:Se.string.isRequired,onChange:Se.func,grecaptcha:Se.object,theme:Se.oneOf(["dark","light"]),type:Se.oneOf(["image","audio"]),tabindex:Se.number,onExpired:Se.func,onErrored:Se.func,size:Se.oneOf(["compact","normal","invisible"]),stoken:Se.string,hl:Se.string,badge:Se.oneOf(["bottomright","bottomleft","inline"]),isolated:Se.bool},la.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var un,Hi;function Uf(){if(Hi)return un;Hi=1;var e=en(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=r;function i(m){return e.isMemo(m)?r:o[m.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function p(m,g,b){if(typeof g!="string"){if(h){var w=f(g);w&&w!==h&&p(m,w,b)}var A=c(g);d&&(A=A.concat(d(g)));for(var v=i(m),S=i(g),y=0;y<A.length;++y){var N=A[y];if(!a[N]&&!(b&&b[N])&&!(S&&S[N])&&!(v&&v[N])){var k=u(g,N);try{l(m,N,k)}catch{}}}}return m}return un=p,un}var Pf=Uf();const Of=Mt(Pf);function hn(){return hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},hn.apply(this,arguments)}function Bf(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function Mf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Oe={},_f=0;function Df(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=(function(l){Mf(c,l);function c(u,f){var h;return h=l.call(this,u,f)||this,h.state={},h.__scriptURL="",h}var d=c.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+_f++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(f){var h=this;this.setState(f,function(){return h.props.asyncScriptOnLoad&&h.props.asyncScriptOnLoad(h.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var f=Oe[this.__scriptURL];if(!f||!f.loaded)throw new Error("Script is not loaded.");for(var h in f.observers)f.observers[h](f);delete window[t.callbackName]},d.componentDidMount=function(){var f=this,h=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),m=t,g=m.globalName,b=m.callbackName,w=m.scriptId;if(g&&typeof window[g]<"u"&&(Oe[h]={loaded:!0,observers:{}}),Oe[h]){var A=Oe[h];if(A&&(A.loaded||A.errored)){this.asyncScriptLoaderHandleLoad(A);return}A.observers[p]=function(k){return f.asyncScriptLoaderHandleLoad(k)};return}var v={};v[p]=function(k){return f.asyncScriptLoaderHandleLoad(k)},Oe[h]={loaded:!1,observers:v};var S=document.createElement("script");S.src=h,S.async=!0;for(var y in t.attributes)S.setAttribute(y,t.attributes[y]);w&&(S.id=w);var N=function(O){if(Oe[h]){var $=Oe[h],q=$.observers;for(var B in q)O(q[B])&&delete q[B]}};b&&typeof window<"u"&&(window[b]=function(){return f.asyncScriptLoaderTriggerOnScriptLoaded()}),S.onload=function(){var k=Oe[h];k&&(k.loaded=!0,N(function(O){return b?!1:(O(k),!0)}))},S.onerror=function(){var k=Oe[h];k&&(k.errored=!0,N(function(O){return O(k),!0}))},document.body.appendChild(S)},d.componentWillUnmount=function(){var f=this.__scriptURL;if(t.removeOnUnmount===!0)for(var h=document.getElementsByTagName("script"),p=0;p<h.length;p+=1)h[p].src.indexOf(f)>-1&&h[p].parentNode&&h[p].parentNode.removeChild(h[p]);var m=Oe[f];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete Oe[f])},d.render=function(){var f=t.globalName,h=this.props;h.asyncScriptOnLoad;var p=h.forwardedRef,m=Bf(h,["asyncScriptOnLoad","forwardedRef"]);return f&&typeof window<"u"&&(m[f]=typeof window[f]<"u"?window[f]:void 0),m.ref=p,T.createElement(n,m)},c})(T.Component),i=T.forwardRef(function(l,c){return T.createElement(o,hn({},l,{forwardedRef:c}))});return i.displayName="AsyncScriptLoader("+r+")",i.propTypes={asyncScriptOnLoad:Se.func},Of(i,n)}}var fn="onloadcallback",qf="grecaptcha";function mn(){return typeof window<"u"&&window.recaptchaOptions||{}}function Gf(){var e=mn(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+fn+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+fn+"&render=explicit"}const Vi=Df(Gf,{callbackName:fn,globalName:qf,attributes:mn().nonce?{nonce:mn().nonce}:{}})(la),nt=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:"sass-pg-cmt-lp-spin",children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Ff={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},jf=({isOpen:e,onClose:t,commentId:a,publication:n,username:r,CAPTCHA_KEY_V2:o,blockRecaptcha:i=!1,texts:l})=>{const c={...Ff,...l?.comentarios},d={...aa,...c.reportReasons??{}},[u,f]=T.useState("form"),[h,p]=T.useState(""),[m,g]=T.useState(""),[b,w]=T.useState(""),A=[{id:"spam",label:d.spam},{id:"inappropriate",label:d.inappropriate},{id:"hate",label:d.hate},{id:"misinformation",label:d.misinformation},{id:"terrorism",label:d.terrorism},{id:"intellectual",label:d.intellectual},{id:"bullying",label:d.bullying}],v=async()=>{if(!(!h||!a)){if(Li(document).includes(a)){g(c.errorAlreadyReported);return}f("loading"),g("");try{const N=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:n,username:r,id:a,captchaToken:b,type:aa[h]})})).json();if(N.type==="success")wf(document,a),f("success"),setTimeout(()=>{S()},3e3);else throw new Error(N.message||c.errorReportComment)}catch(y){console.error("Error reporting comment:",y),g(y.message||c.errorReportComment),f("form")}}},S=()=>{f("form"),p(""),g(""),t()};return!e||!a||!r?null:s.jsx("div",{className:"sass-pg-cmt-rp-overlay",children:s.jsxs("div",{className:"sass-pg-cmt-rp-popup",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:S,children:s.jsx(bt,{})}),s.jsx("div",{className:"sass-pg-cmt-rp-title",children:c.reportAbuseTitle}),u==="loading"&&s.jsx("div",{className:"sass-pg-cmt-rp-loadingContainer",children:s.jsx(nt,{})}),u==="form"||u==="loading"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-pg-cmt-rp-optionsContainer",children:A.map(y=>s.jsxs("label",{className:"sass-pg-cmt-rp-option",children:[s.jsx("input",{type:"radio",name:"reportReason",value:y.id,checked:h===y.id,onChange:N=>p(N.target.value),className:"sass-pg-cmt-rp-radioInput"}),s.jsx("span",{className:"sass-pg-cmt-rp-radioCustom"}),s.jsx("span",{className:"sass-pg-cmt-rp-optionLabel",children:y.label})]},y.id))}),m&&s.jsx("div",{className:"sass-pg-cmt-rp-errorMessage",children:m}),!i&&s.jsx(Vi,{sitekey:o,theme:"light",size:"normal",onChange:y=>w(y??""),onExpired:()=>w("")}),s.jsxs("div",{className:"sass-pg-cmt-rp-buttons",children:[s.jsx("button",{onClick:S,className:"sass-pg-cmt-rp-cancelButton",children:c.cancelButton}),s.jsx("button",{onClick:v,disabled:!h,className:"sass-pg-cmt-rp-reportButton",children:c.reportButton})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sass-pg-cmt-rp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-rp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsx("p",{className:"sass-pg-cmt-rp-successMessage",children:c.reportSuccessMessage})]}),s.jsx("div",{className:"sass-pg-cmt-rp-buttons",children:s.jsx("button",{onClick:S,className:["sass-pg-cmt-rp-closeButton","sass-pg-cmt-rp-buttonAlone"].join(" "),children:c.reportCloseButton})})]})]})})};function Hf(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function ca(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?ca({comments:a.reply}).comments:a.reply};const{user:n,text:r}=Hf(a.text);return{...a,user:n||!1,text:r,reply:a.reply?ca({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function da({publication:e,path:t,size:a=5,sizereply:n=2,id:r,lastid:o,state:i="5,6",apiToken:l,API_ENV:c}){const{PUBLIC_ENV:d}=c;if(d==="prod"){const u=await zi({publication:e,path:t,size:a,sizereply:n,id:r,lastid:o,state:i,apiToken:l,API_ENV:c});return ca(u[0])}else{const u=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${n}&lastid=${o}`);if(!u.ok)throw new Error(`Error al obtener comentarios: ${u.status}`);const f=await u.json();return ca(f.data[0])}}async function zi({publication:e,path:t,size:a=5,sizereply:n=2,id:r,lastid:o,state:i="5,6",apiToken:l,API_ENV:c}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!l)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:u="dummy",PUBLIC_API_PATH:f,PUBLIC_API_PATH_VERSION:h}=c,p=parseInt(String(a),10),m=parseInt(String(n),10);if(isNaN(p)||p<=0)throw new Error("Invalid size parameter");if(isNaN(m)||m<0)throw new Error("Invalid sizereply parameter");const g=d!=="prod"?`${u}${f}`:"",b=new URLSearchParams({publication:e,path:t,size:p.toString(),sizereply:m.toString(),state:i});r&&b.append("id",r),o&&b.append("lastid",o);const w=`${g}${h}/newcomments/get?${b.toString()}`;try{const{data:A}=await re.get(w,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!A)throw new Error("No comments data received");return A.data||A||[]}catch(A){if(console.error("Error fetching comments:",A),re.isAxiosError(A)){const v=A.response?.status,S=A.response?.data;throw v===404?new Error("Comments not found"):v===403?new Error("Access forbidden - check API token"):v===401?new Error("Unauthorized - invalid API token"):v===500?new Error("Internal server error from CMS"):new Error(S?.error||S?.message||`HTTP ${v}: Failed to fetch comments`)}throw A}}const Vf=(e,t)=>{const[a,n]=T.useState(void 0),{PUBLIC_PUBLICATION_ID:r}=t,o=r;return T.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:l}=t;try{const c=await da({publication:o,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:l,API_ENV:t});n(c??[])}catch{n({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:n}},$i=({username:e,date:t,DATE_CONFIG:a})=>s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate",children:e}),s.jsx("span",{className:"comment-header-dot",children:"•"}),s.jsx("time",{className:"comment-date su-truncate",dateTime:Ie(Number(t),a?.DATE_TIMEZONE??"")||void 0,...je(Number(t),void 0,"note"),children:bf(Te(Number(t),a))})]}),Qi=({user:e})=>s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:e.picture?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),Wi=({isReply:e=!1,onReply:t,onFlag:a})=>s.jsxs("div",{className:"comment-actions su-flex",children:[!e&&t&&s.jsx("button",{onClick:t,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),s.jsx("button",{onClick:a,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),zf={commentInputLabel:"Comentario",commentInputPlaceholder:"Ingresa un comentario"},pn=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:n,texts:r})=>{const o={...zf,...r?.comentarios};return T.useEffect(()=>{const i=e.current;if(!i)return;const l=()=>{const d=i.value.length;i.parentElement&&(i.parentElement.dataset.text=`${d}/${Xe}`),i.classList.toggle("over-limit",d>Xe),a(!na(e,t,n).boolean)};return i.addEventListener("input",l),l(),()=>i.removeEventListener("input",l)},[e,t,a]),s.jsxs("div",{className:"su-relative",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:o.commentInputLabel}),s.jsx("textarea",{className:"su-w-full su-border-none su-outline-none",ref:e,name:"comment",placeholder:o.commentInputPlaceholder,rows:2})]})},gn=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:n,API_ENV:r})=>{const o=na(e,t,r);return s.jsxs("div",{className:"form-actions su-flex-between",children:[!xe(r)&&s.jsx(Vi,{sitekey:r.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),s.jsxs("div",{className:"submit-zone su-relative su-flex su-flex-col su-items-end",children:[n,!o.boolean&&s.jsx("p",{className:"submit-warning su-hidden su-font-normal su-p-0",children:o.text})]})]})},$f={anonimusContinueButton:"Continuar de forma anónima",anonimusDividerOr:"o",anonimusImageAlt:"Imagen incognito",popupCloseAriaLabel:"Cerrar"},Qf={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con GOOGLE",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Wf({onClose:e,handleGoogleLogin:t,icon:a,texts:n,API_ENV:r}){const o={...Qf,...$f,...n?.comentarios},i=de(r),l=f=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=i+"/auth/login"+(f?"#forgot":""))},c=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=i+"/auth/register")},{PUBLIC_ASSETS_URL:d}=r,u=(d&&d!=="false"?d:"")+"/versions/images/anonimus-img.png";return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:f=>{const h=f.target;h&&h.id==="pop-overlay"&&e()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:a?s.jsx("img",{src:a,alt:"Logo"}):null}),s.jsx("button",{onClick:()=>{e()},className:"sass-pg-cmt-lp-close","aria-label":o.popupCloseAriaLabel,children:s.jsx(bt,{})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-anonimusWrapper",children:[s.jsx("img",{className:"sass-pg-cmt-lp-anonimusImage",src:u,alt:o.anonimusImageAlt}),s.jsx("button",{onClick:()=>{e(!0)},className:"sass-pg-cmt-lp-anonimus",children:s.jsx("span",{children:o.anonimusContinueButton})})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:o.anonimusDividerOr})}),s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",onClick:()=>{l(!1)},children:o.loginButtonText}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.noAccountText,s.jsx("button",{type:"button",onClick:c,children:o.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:()=>{l(!0)},children:o.forgotPasswordText})]})})}const Yf={submitCommentButton:"Enviar Comentario"},bn=({onClick:e,isDisabled:t,API_ENV:a,icon:n,handleGoogleLogin:r,showAlert:o,texts:i})=>{const l={...Yf,...i?.comentarios},[c,d]=T.useState(!1),[u,f]=T.useState(!1),[h,p]=T.useState(!1);T.useEffect(()=>{let g=null;return c&&(g=setTimeout(()=>{d(!1)},2400)),()=>{g&&clearTimeout(g)}},[c]),T.useEffect(()=>{if(!u||!a.CONFIG_commentsV2||!o||!document)return;const g=document.getElementById("comment-button");if(!g)return;const b=g.closest(".comment-form"),w=b?.querySelector('input[name="username"]'),A=b?.querySelector('textarea[name="comment"]'),v=b?.querySelector("textarea.g-recaptcha-response")??document.querySelector("#g-recaptcha-response");w?.value?.trim()&&A?.value?.trim()&&(!xe(a)&&!v?.value?.trim()||g.click())});const m=ne("/Success.gif",a.PUBLIC_ASSETS_URL);return c?s.jsx("div",{className:"success-gif-container su-flex-center su-relative",children:s.jsx("img",{className:"success-gif su-absolute",src:m})}):s.jsxs(s.Fragment,{children:[h&&a.CONFIG_commentsV2&&o&&s.jsx(Wf,{API_ENV:a,icon:n,handleGoogleLogin:r,texts:i,onClose:g=>{g&&f(!0),p(!1)}}),s.jsxs("button",{type:"button",onClick:async g=>{if(!u&&a.CONFIG_commentsV2&&o){p(!0),console.log("open popup");return}await e(g)&&(a.CONFIG_commentsV2&&o&&f(!1),d(!0))},id:"comment-button",className:`submit-btn su-bg-transparent su-font-bold ${t?"disabled":"active"}`,children:[l.submitCommentButton,s.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})]})},wn=async({path:e,ref:t,captchaToken:a,button:n,user:r,id:o,addComment:i,API_ENV:l,anonimusUser:c})=>{const d=t.current?.value||"",{PUBLIC_PUBLICATION_ID:u}=l,f=u;if(console.log("check",r,c),!na(t,a,l).boolean||!r&&!c){console.log("warn");const p=n.nextElementSibling;return p&&(p.style.display="block"),!1}if(!r&&!c)return;const h=r?d:"[["+c+"]] "+d;try{const p=Date.now(),m=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:f,path:e,id:o,username:r?r.username:!1,comment:h,recaptchaResponse:a})});let g=null;try{g=await m.json()}catch(S){console.error("Error parsing JSON response:",S)}if(!m.ok)throw new Error(`Error al enviar comentario: ${g?.message} status: ${m.status}`);const b=Date.now(),w=Math.max(0,2400+Math.abs(b-p)),A=r||{username:c,firstname:c},v={username:A.username,firstname:A.firstname,...A.lastname&&{lastname:A.lastname},...A.picture&&{picture:A.picture}};return i({id:b.toString(),text:d,user:v,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),w}catch(p){return console.error("Error enviando comentario:",p),alert(p.message||"Error al enviar el comentario."),!1}},Kf=({replyingTo:e,commentRef:t,user:a,path:n,addReply:r,closeForm:o,API_ENV:i,texts:l})=>{const[c,d]=T.useState(!0),[u,f]=T.useState(""),h=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Xe}`),d(!0),o()};return s.jsxs("div",{className:"comment-form reply-form su-p-8 su-relative",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:h,children:s.jsx(bt,{})}),s.jsx(pn,{commentRef:t,captchaToken:u,setIsDisabled:d,API_ENV:i,texts:l}),s.jsx(gn,{commentRef:t,captchaToken:u,setCaptchaToken:f,API_ENV:i,children:s.jsx(bn,{onClick:async p=>{if(c)return;const m=await wn({path:n,ref:t,captchaToken:u,button:p.currentTarget,user:a,id:e,addComment:r,API_ENV:i});return m&&typeof m=="number"?(setTimeout(()=>{h()},m),!0):!1},isDisabled:c,API_ENV:i,texts:l})})]})},Jf={replyingToLabel:"Respondiendo a"},Zf=({reply:e,replyingTo:t,user:a,onFlag:n,DATE_CONFIG:r,texts:o})=>{const i={...Jf,...o?.comentarios},l=e.text;let c=`${Re.firstname} ${Re.lastname??""}`,d=Re.username;return e.user&&(c=`${e.user.firstname} ${e.user.lastname??""}`,d=e.user.username),s.jsx("div",{className:"comment-item reply",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative",children:[s.jsx(Qi,{user:e.user?e.user:Re}),s.jsxs("div",{style:{flex:1},children:[s.jsx($i,{username:c,date:e.date.time,DATE_CONFIG:r}),s.jsxs("div",{className:"comment-reply-to",children:[i.replyingToLabel," ",s.jsx("strong",{children:t})]}),s.jsx("p",{className:"comment-text su-font-normal",children:l}),a?.username.toLowerCase()!==d.toLowerCase()&&s.jsx(Wi,{isReply:!0,onFlag:()=>n(e.id)})]})]})})},Xf={moreRepliesButton:"Más Respuestas"},Rf=({comment:e,replyingTo:t,path:a,user:n,handleReplyingTo:r,onFlag:o,API_ENV:i,texts:l})=>{const c={...Xf,...l?.comentarios},d={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[u,f]=T.useState(d),[h,p]=T.useState(!1),{PUBLIC_PUBLICATION_ID:m,PUBLIC_X_SECURITY_TOKEN:g}=i,b=e.text,w=T.useRef(null);let A=`${Re.firstname} ${Re.lastname??""}`,v=Re.username;e.user&&(A=`${e.user.firstname} ${e.user.lastname??""}`,v=e.user.username);const S=y=>{f({morereply:u.morereply,reply:[y,...u.reply]})};return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative","data-hasreplies":u.reply.length>0?"true":"false",children:[s.jsx(Qi,{user:e.user?e.user:Re}),s.jsxs("div",{style:{flex:1},children:[s.jsx($i,{username:A,date:e.date.time,DATE_CONFIG:i}),s.jsx("p",{className:"comment-text su-font-normal",children:b}),n?.username.toLowerCase()!==v.toLowerCase()&&s.jsx(Wi,{onReply:()=>r(e.id),onFlag:()=>o(e.id)}),t===e.id&&n&&s.jsx(Kf,{replyingTo:t,commentRef:w,addReply:S,user:n,path:a,API_ENV:i,closeForm:()=>r(""),texts:l}),u.reply.length>0&&s.jsxs("div",{className:"comment-replies",children:[u.reply.map(y=>s.jsx(Zf,{user:n,reply:y,replyingTo:A,onFlag:o,DATE_CONFIG:i,texts:l},y.id)),h?s.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:s.jsx(nt,{})}):u.morereply&&s.jsx("button",{className:"comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",onClick:async()=>{const y=u.reply[u.reply.length-1]?.id;p(!0);try{const k=await da({publication:m??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:y,state:"5,6",apiToken:g??"",API_ENV:i});p(!1),f({morereply:k.morecomment,reply:[...u.reply,...k.comments]})}catch(N){throw p(!1),new Error(`Error al obtener comentarios: ${N}`)}},children:c.moreRepliesButton})]})]})]})})},em=({commentRef:e,user:t,path:a,addComment:n,API_ENV:r,texts:o})=>{const[i,l]=T.useState(!0),[c,d]=T.useState("");return s.jsxs("div",{className:"comment-form su-p-8 su-relative",children:[s.jsx(pn,{commentRef:e,captchaToken:c,setIsDisabled:l,API_ENV:r,texts:o}),s.jsx(gn,{API_ENV:r,commentRef:e,captchaToken:c,setCaptchaToken:d,children:s.jsx(bn,{onClick:async u=>{if(i)return;const f=await wn({path:a,ref:e,captchaToken:c,button:u.currentTarget,user:t,addComment:n,API_ENV:r});return f&&typeof f=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Xe}`),l(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Xe}`),l(!0)},f),!0):!1},isDisabled:i,API_ENV:r,texts:o})})]})},tm={usernameInputLabel:"Nombre",usernameInputPlaceholder:"Ingresa tu nombre"},sm=({usernameRef:e,texts:t})=>{const a={...tm,...t?.comentarios};return s.jsxs("div",{className:"comment-username su-font-bold su-truncate",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:a.usernameInputLabel}),s.jsx("input",{ref:e,name:"username",className:"su-w-full su-border-none su-outline-none",placeholder:a.usernameInputPlaceholder})]})},am=({usernameRef:e,commentRef:t,path:a,icon:n,handleGoogleLogin:r,addComment:o,API_ENV:i,texts:l})=>{const[c,d]=T.useState(!0),[u,f]=T.useState(""),h=async p=>{if(c){console.log("error");return}if(!na(t,u,i).boolean){console.log("invalidForm");return}const m=e.current.value,g=await wn({path:a,ref:t,captchaToken:u,button:p.currentTarget,user:void 0,addComment:o,API_ENV:i,anonimusUser:m});return f(""),g&&typeof g=="number"?(t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Xe}`),d(!0),setTimeout(()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Xe}`),d(!0)},g),!0):!1};return s.jsx(s.Fragment,{children:s.jsxs("div",{className:"comment-form anoninus-form su-p-8 su-relative",children:[s.jsx(sm,{usernameRef:e,texts:l}),s.jsx(pn,{commentRef:t,captchaToken:u,setIsDisabled:d,API_ENV:i,texts:l}),s.jsx(gn,{API_ENV:i,commentRef:t,captchaToken:u,setCaptchaToken:f,children:s.jsx(bn,{onClick:h,isDisabled:c,API_ENV:i,handleGoogleLogin:r,icon:n,showAlert:!0,texts:l})})]})})},nm={commentsSectionTitle:"COMENTARIOS",commentHeaderMessageEmpty:"Se el primero en compartir tu opinión de este artículo.",commentHeaderMessageWithComments:"Comparte tu opinión de este artículo.",loadMoreButton:"Más",moreRepliesButton:"Más Respuestas",anonimusPromptPrefix:"¿Querés debatir con otros lectores? Comentá ahora de forma anónima o ",anonimusPromptLinkText:"INICIA SESIÓN AQUÍ",anonimusPromptSuffix:" para responder a otros usuarios y ser parte activa de nuestra comunidad."},rm=({isAuthenticated:e,path:t,user:a,handleLogout:n,icon:r,handleGoogleLogin:o,API_ENV:i,texts:l})=>{const c={...nm,...l?.comentarios},{PUBLIC_PUBLICATION_ID:d,PUBLIC_X_SECURITY_TOKEN:u}=i,f=d??"",h=t.replaceAll("/","|"),[p,m]=T.useState(void 0),[g,b]=T.useState(""),{comments:w,setComments:A}=Vf(h,i),[v,S]=T.useState(!1),y=T.useRef(null),N=T.useRef(null),k=P=>{b(g===P?"":P)},O=P=>{A(w?{...w,comments:[P,...w.comments??[]]}:void 0)},$=P=>{m(P)},q=async()=>{if(!w||!w.morecomment||w.comments.length===0)return;const P=w.comments[w.comments.length-1];if(!P)return;S(!0);const U=P.id;try{const H=await da({publication:f,path:h??"",size:5,sizereply:2,id:void 0,lastid:U,state:"5,6",apiToken:u,API_ENV:i});A({morecomment:H.morecomment??!1,comments:[...w.comments,...H.comments]}),S(!1)}catch(H){throw S(!1),new Error(`Error al obtener comentarios: ${H}`)}},B=w?.comments&&w.comments.length>0,G=B?c.commentHeaderMessageWithComments:c.commentHeaderMessageEmpty,z=s.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:s.jsx(nt,{})}),_=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=de(i)+"/auth/login")};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-container",children:s.jsx(he,{noHeading:!0,title:i.CONFIG_commentsV2||B||e?c.commentsSectionTitle:!1,children:s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-header",children:e&&a?s.jsxs(s.Fragment,{children:[s.jsx(mf,{user:a,handleLogout:n,message:G,texts:l}),s.jsx(em,{commentRef:y,user:a,addComment:O,path:h,API_ENV:i,texts:l})]}):i.CONFIG_commentsV2?s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"anonimus-message",children:[c.anonimusPromptPrefix,s.jsx("button",{className:"su-border-none su-p-0",onClick:_,children:c.anonimusPromptLinkText}),c.anonimusPromptSuffix]}),s.jsx(am,{usernameRef:N,commentRef:y,icon:r,handleGoogleLogin:o,addComment:O,path:h,API_ENV:i,texts:l})]}):null}),w?w.comments&&w.comments.length>0?s.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[w.comments.map(P=>s.jsx(Rf,{comment:P,replyingTo:g,handleReplyingTo:k,onFlag:$,user:a??Re,path:h,API_ENV:i,texts:l},P.id)),v&&z]}):null:z,w?.morecomment&&!v&&s.jsx("button",{className:"comment-replies-button su-flex-center su-rounded-full",onClick:q,children:c.loadMoreButton})]})})}),s.jsx(jf,{username:a?.username??void 0,publication:f,commentId:p,isOpen:p!==void 0,onClose:()=>m(void 0),CAPTCHA_KEY_V2:i.CAPTCHA_KEY_V2??"",blockRecaptcha:xe(i),texts:l})]})},as=async(e,t,a)=>{if(xe(a))return Sn;if(!e)throw new Error("No action provided");if(!t)throw new Error("No site key provided");const n=window.grecaptcha;if(!n?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((r,o)=>{n.enterprise.ready(async()=>{try{const i=await n.enterprise.execute(t,{action:e});if(!i)throw new Error("Captcha token no generado");r(i)}catch(i){o(i)}})})},om={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tenés cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},ns={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function im(e){return{email:{label:e?.email??ns.email.label,required:!0},given_name:{label:e?.given_name??ns.given_name.label,required:!0},family_name:{label:e?.family_name??ns.family_name.label,required:!0},password:{label:e?.password??ns.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ns.confirmPassword.label,required:!0}}}const We=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],Yi=[{label:"La contraseña debe tener al menos 8 caracteres",test:We[0]},{label:"Usa un número",test:We[1]},{label:"Usa una letra minúscula",test:We[2]},{label:"Usa una letra mayúscula",test:We[3]},{label:"Usa un símbolo",test:We[4]}];function lm({goToLogin:e,handleGoogleLogin:t,API_ENV:a,texts:n,termsAndConditionsUrl:r}){const o={...om,...n?.comentarios},i=T.useMemo(()=>im(n?.comentarios?.registerForm),[n?.comentarios?.registerForm]),l=T.useMemo(()=>[{label:o.passwordRuleMinLength,test:We[0]},{label:o.passwordRuleNumber,test:We[1]},{label:o.passwordRuleLowercase,test:We[2]},{label:o.passwordRuleUppercase,test:We[3]},{label:o.passwordRuleSymbol,test:We[4]}],[o.passwordRuleMinLength,o.passwordRuleNumber,o.passwordRuleLowercase,o.passwordRuleUppercase,o.passwordRuleSymbol]),[c,d]=T.useState({}),[u,f]=T.useState(!1),[h,p]=T.useState(!1),[m,g]=T.useState(null),[b,w]=T.useState("register"),A=(N,k)=>{d(O=>({...O,[N]:k}))},v=async N=>{N.preventDefault(),g(null),p(!0);try{const k=Object.keys(i).filter(z=>!["username","password","confirmPassword"].includes(z)).map(z=>({Name:z,Value:c[z]}));if(k.some(z=>{if(!z.Value||z.Value.trim()==="")return!0}))return p(!1),g(o.errorCompleteFields);if(c.password!==c.confirmPassword){g(o.errorPasswordMismatch);return}const O=c.password||"";if(l.some(z=>!z.test(O))){g(o.errorPasswordInvalid);return}const q=Math.floor(Date.now()/1e3);k.push({Name:"updated_at",Value:String(q)});const B=a.PUBLIC_ENV==="local"?"token":await as("comment_register",a.CAPTCHA_KEY??"",a);if(!B)throw new Error("Captcha token no generado");const G=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,password:c.password,userAttributes:k,token:B})});if(!G.ok){const z=await G.json().catch(()=>({}));if(z.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email})}),w("confirm");return}throw new Error(z?.error||"Error al crear usuario")}w("confirm")}catch(k){console.log(k),g(k?.message||k?.error||o.errorUnexpected)}finally{p(!1)}},S=async N=>{if(N.preventDefault(),!c.confirmationCode){g(o.errorVerificationCodeRequired);return}g(null),p(!0);try{const k=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,code:c.confirmationCode})});if(!k.ok){const O=await k.json().catch(()=>({}));throw new Error(O?.error||"Error al confirmar usuario")}w("success")}catch(k){g(k?.message||o.errorUnexpected)}finally{p(!1)}},y=c.password||"";return s.jsxs(s.Fragment,{children:[b==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:v,className:"sass-pg-cmt-lp-form","data-error":m?"true":"false",children:[s.jsx("ul",{className:"sass-pg-cmt-lp-formUl",children:Object.entries(i).map(([N,{label:k}])=>s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:k}),s.jsx("input",{type:N.toLowerCase().includes("password")?u?"text":"password":N==="birthdate"?"date":N==="email"?"email":N==="phone_number"?"tel":"text",name:N,value:c[N]||"",onChange:O=>A(N,O.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),N==="password"&&s.jsx("div",{className:"sass-pg-cmt-lp-passwordChecker",children:l.map((O,$)=>{const q=O.test(y);return s.jsxs("div",{className:q?"sass-pg-cmt-lp-valid":"sass-pg-cmt-lp-invalid",children:[s.jsx("div",{children:q?"✔":"○"}),s.jsx("div",{children:O.label})]},$)})}),N==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:u,onChange:O=>f(O.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-cmt-lp-checkboxLabel",children:o.showPasswordsLabel})]})]},N))}),m&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:m}),s.jsxs("p",{className:"sass-pg-cmt-lp-terms",children:[o.termsPrefix," ",s.jsx("a",{href:r??"/pages/politicas-de-privacidad.html",target:"_blank",children:o.termsLinkText})," ",o.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:h,children:h?s.jsx(nt,{}):o.createAccountButton})]})]}),b==="confirm"&&s.jsxs("form",{onSubmit:S,className:"sass-pg-cmt-lp-form","data-error":m?"true":"false",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:o.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:c.confirmationCode||"",onChange:N=>A("confirmationCode",N.target.value),className:"sass-pg-cmt-lp-input",required:!0})]}),m&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:m}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:h,children:h?s.jsx(nt,{}):o.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.alreadyConfirmedText,s.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]}),b==="success"&&s.jsxs("form",{className:"sass-pg-cmt-lp-form",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-lp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-cmt-lp-successMessage",children:[s.jsx("p",{children:o.successTitle}),s.jsx("p",{children:o.successMessage})]})]}),s.jsx("button",{onClick:e,className:"sass-pg-cmt-lp-primary",children:o.loginButtonText})]}),b==="register"&&s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.alreadyHasAccountText,s.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]})}const cm={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function dm({onClose:e,checkAuth:t,goToRegister:a,handleGoogleLogin:n,API_ENV:r,texts:o}){const i={...cm,...o?.comentarios},[l,c]=T.useState("login"),[d,u]=T.useState(""),[f,h]=T.useState(""),[p,m]=T.useState(""),[g,b]=T.useState(""),[w,A]=T.useState(""),[v,S]=T.useState(!1),[y,N]=T.useState(!1),[k,O]=T.useState(null),$=async G=>{if(!y){G.preventDefault(),O(null),N(!0);try{const z=r.PUBLIC_ENV==="local"?"token":await as("comment_login",r.CAPTCHA_KEY||"",r);if(!z)throw new Error("Captcha token no generado");const _=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:d,password:f,token:z})});if(!_.ok){const P=await _.json().catch(()=>({}));throw new Error(P?.error||"Ha ocurrido un error")}e(),await t()}catch(z){O(z?.message||"Error inesperado")}finally{N(!1)}}},q=async G=>{if(!y){G.preventDefault(),O(null),N(!0);try{const z=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Error al enviar código")}h(""),c("changePassword")}catch(z){O(z?.message||"Error inesperado")}finally{N(!1)}}},B=async G=>{if(y)return;if(G.preventDefault(),g!==w){O("Las contraseñas no coinciden");return}if(Yi.some(_=>!_.test(g))){O("La contraseña no cumple con los requisitos");return}O(null),N(!0);try{const _=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d,code:p,newPassword:g})});if(!_.ok){const P=await _.json().catch(()=>({}));throw new Error(P?.error||"Error al cambiar contraseña")}c("feedback")}catch(_){O(_?.message||"Error inesperado")}finally{N(!1)}};return s.jsxs(s.Fragment,{children:[l==="login"&&s.jsx(um,{email:d,password:f,showPassword:v,loading:y,error:k,setEmail:u,setPassword:h,setShowPassword:S,onSubmit:$,onForgot:()=>{O(null),c("forgot")},onRegister:a,handleGoogleLogin:n,t:i}),l==="forgot"&&s.jsx(hm,{email:d,setEmail:u,loading:y,error:k,onSubmit:q,onBack:()=>{O(null),c("login")},t:i}),l==="changePassword"&&s.jsx(fm,{email:d,confirmationCode:p,newPassword:g,confirmNewPassword:w,showPassword:v,loading:y,error:k,setConfirmationCode:m,setNewPassword:b,setConfirmNewPassword:A,setShowPassword:S,onSubmit:B,onBack:()=>{O(null),c("forgot")},t:i}),l==="feedback"&&s.jsx(mm,{onBackToLogin:()=>{O(null),c("login")},t:i})]})}function um({email:e,password:t,showPassword:a,loading:n,error:r,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:c,onForgot:d,onRegister:u,handleGoogleLogin:f,t:h}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:f,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:h.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:c,className:"sass-pg-cmt-lp-form","data-error":r?"true":"false",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:h.email}),s.jsx("input",{type:"email",value:e,onChange:p=>o(p.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:h.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:p=>i(p.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:p=>l(p.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-cmt-lp-checkboxLabel",children:h.showPassword})]})]}),r&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:n,children:n?s.jsx(nt,{}):h.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[h.noAccountText,s.jsx("button",{type:"button",onClick:u,children:h.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:d,children:h.forgotPasswordText})]})}function hm({email:e,setEmail:t,loading:a,error:n,onSubmit:r,onBack:o,t:i}){return s.jsxs("form",{onSubmit:r,className:"sass-pg-cmt-lp-form","data-error":n?"true":"false",children:[s.jsx("p",{className:"sass-pg-cmt-lp-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),n&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:a,children:a?s.jsx(nt,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-cmt-lp-switch",children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function fm({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:n,showPassword:r,loading:o,error:i,setConfirmationCode:l,setNewPassword:c,setConfirmNewPassword:d,setShowPassword:u,onSubmit:f,onBack:h,t:p}){const m=p.changePasswordMessage.replace("{{email}}",Af(e));return s.jsxs("form",{onSubmit:f,className:"sass-pg-cmt-lp-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-cmt-lp-message",children:m}),s.jsxs("ul",{className:"sass-pg-cmt-lp-formUl",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.newPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:a,onChange:g=>c(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-cmt-lp-passwordChecker",children:Yi.map((g,b)=>{const w=g.test(a);return s.jsxs("div",{className:w?"sass-pg-cmt-lp-valid":"sass-pg-cmt-lp-invalid",children:[s.jsx("div",{children:w?"✔":"○"}),s.jsx("div",{children:g.label})]},b)})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:n,onChange:g=>d(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:r,onChange:g=>u(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-cmt-lp-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx(nt,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-cmt-lp-switch",children:s.jsx("button",{type:"button",onClick:h,children:p.backButton})})]})}function mm({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-cmt-lp-form",children:[s.jsx("p",{className:"sass-pg-cmt-lp-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-primary",onClick:e,children:t.loginButtonText})]})}function pm({handleGoogleLogin:e,onClose:t,checkAuth:a,icon:n,API_ENV:r,texts:o,termsAndConditionsUrl:i}){const[l,c]=T.useState("login");return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const u=d.target;u&&u.id==="pop-overlay"&&t()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:n?s.jsx("img",{src:n,alt:"Logo"}):null}),s.jsx("button",{onClick:t,className:"sass-pg-cmt-lp-close","aria-label":"Cerrar",children:s.jsx(bt,{})})]}),l==="login"&&s.jsx(dm,{onClose:t,checkAuth:a,handleGoogleLogin:e,goToRegister:()=>c("register"),API_ENV:r,texts:o}),l==="register"&&s.jsx(lm,{handleGoogleLogin:e,goToLogin:()=>c("login"),API_ENV:r,texts:o,termsAndConditionsUrl:i})]})})}const gm={commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",loginButtonText:"Iniciar Sesión"};function bm({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:n,path:r,checkAuth:o,icon:i,API_ENV:l,texts:c,termsAndConditionsUrl:d}){const[u,f]=T.useState(!1),h={...gm,...c?.comentarios},p=h.loginButtonText,m=async()=>{if(l.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const w=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(w)}`}},g=async w=>{w.preventDefault(),a&&f(!0)},b=async()=>{if(l.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),o();return}if(!a)return;const w=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${w}`};return s.jsxs(s.Fragment,{children:[u&&!l.CONFIG_commentsV2&&s.jsx(pm,{loginUrl:a,icon:i,checkAuth:o,handleGoogleLogin:b,API_ENV:l,texts:c,termsAndConditionsUrl:d,onClose:()=>{f(!1)}}),!e&&!l.CONFIG_commentsV2&&s.jsxs("div",{className:"auth-container",children:[s.jsx("p",{children:h.commentPromptMessage}),s.jsx("a",{href:a,onClick:g,className:"login-button",children:p})]}),s.jsx(rm,{isAuthenticated:e,handleLogout:m,handleGoogleLogin:b,icon:i,path:r,user:e?n:void 0,API_ENV:l,texts:c})]})}function wm({isVisible:e,path:t,icon:a,API_ENV:n,texts:r}){const[o,i]=T.useState(null),[l,c]=T.useState(null),d=n?.COGNITO_AUTH_PREFIX??"ASTRO_",u=T.useCallback(async()=>{if(e){if(document.cookie.search(d+"IS_AUTH=true")===-1){i(!1),c(null);return}try{const g=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(g.isAuthenticated??!1),c(g.user??null),document.cookie="redirect_after_login_1=; Max-Age=0; path=/"}catch(m){console.error("Error checking auth:",m),i(!1),c(null)}}},[e,d]);T.useEffect(()=>{u()},[u,e]),T.useEffect(()=>{if(!l||!e||typeof window>"u")return;const m=window;if(typeof m!="function"){console.warn("gtag no está disponible todavía");return}m.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const f="/api/auth/login",h=s.jsx("div",{className:"su-flex-center su-relative",style:{minHeight:310}});if(o===null)return h;const p=t.replaceAll("|","/");return e?s.jsx(bm,{icon:a,isAuthenticated:o,setIsAuthenticated:i,loginUrl:f,user:l??void 0,checkAuth:u,path:p,API_ENV:n,texts:r}):h}const Am=({internalPath:e,icon:t,API_ENV:a,texts:n})=>{const r=T.useMemo(()=>Na(a),[a]);return T.useEffect(()=>{if(!document||xe(r))return;if(document.getElementById("recaptcha-enterprise-script"))return console.log("recaptcha already appended");const i=document.createElement("script");i.id="recaptcha-enterprise-script",i.defer=!0,i.async=!0,i.src=`https://www.google.com/recaptcha/enterprise.js?render=${a.CAPTCHA_KEY}`,document.body.appendChild(i),console.log("appended recaptcha")},[]),s.jsx("div",{className:"sass-pg-news-commentLazyLoader",style:{width:"100%"},suppressHydrationWarning:!0,children:s.jsx(wm,{path:e,icon:t,isVisible:!0,API_ENV:r,texts:n})})},ym=({section:e,internalPath:t,stylesConfig:a,paths:n,API_ENV:r,fetchConfig:o})=>s.jsx("div",{suppressHydrationWarning:!0,style:a["Modulo 1x3 Client"]??a["Modulo 1x3"],children:s.jsx(cf,{section:e,internalPath:t,stylesConfig:a,isVisible:!0,paths:n,fetchConfig:o,API_ENV:Na(r)})});async function Cm({publication:e,path:t,username:a,comment:n,id:r,recaptchaResponse:o,baseUrl:i,apiToken:l,securityToken:c,COMMENTS_VARS:d}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:n,id:r,recaptchaResponse:o}),!e||!t||!n)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,n].some(m=>typeof m!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!n.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const u=await Ii(o,d);if(console.log("Verifying captcha token...",u),!u)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const f=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,h={publication:e,path:t.replace(/\|/gi,"/"),text:n.trim()};a&&(h.username=a),r&&(h.id=r);const p=new URLSearchParams(h);try{const{data:m}=await re.get(`${f}?${p.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":c,"x-api-token":l,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),re.isAxiosError(m)){const g=m.response?.status??500,b=m.response?.data;return g===400?{type:"error",message:b?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:g===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:g===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:b?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const vm=async({token:e,projectId:t,captchaKey:a,apiKey:n,captchaAction:r,config:o})=>{if(xe(o))return 1;if(!e)throw new Error("No token provided");if(!t||!a||!n)throw new Error("Missing project ID or site key");if(!r)throw new Error("No action provided");try{const l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:r}})})).json();if(!l?.tokenProperties?.valid)throw new Error(`The token was: ${l?.tokenProperties?.invalidReason}`);if(l.tokenProperties.action!==r)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return l?.riskAnalysis?.score??0}catch(i){throw console.error("Recaptcha verification failed",i),new Error(String(i))}},Sm=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(Fe,{slot_id:n,cardWidth:200,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx(ts,{...l,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},i)})})})},Nm=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(Fe,{slot_id:n,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx(ts,{...l,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},i)})})})},Em=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(Fe,{slot_id:n,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return T.createElement(ts,{...l,key:i,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})})})},ua=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},xm=e=>{const{content:t,title:a,isVideo:n}=e;if(!t||t.length===0)return;const r=t[0],o=t.slice(1),i=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return r&&o&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsx("div",{className:"sass-bd-dnfw-headerSection",children:s.jsxs("div",{className:"sass-bd-dnfw-image",style:{"--heightImageOverwriteMobile":"200%"},children:[s.jsxs("div",{className:"sass-bd-dnfw-blockHeadContainer",children:[s.jsx(M,{className:pt("sass-bd-dnfw-title",e.speculationPrerenderClass),href:r?.info?.link?.url,target:r?.info?.link?.target,children:r?.main?.title.home}),r?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-bd-dnfw-subtitle",children:r?.main?.subtitle?.striped})]}),s.jsx(M,{href:r?.info?.link?.url,target:r?.info?.link?.target,"aria-label":r?.main?.title.home,children:s.jsx(ve,{preview:r.preview})})]})}),s.jsxs("div",{className:"sass-bd-dnfw-containerCards",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),s.jsx("div",{className:"sass-bd-dnfw-newsContent",children:Array.isArray(o)&&o.map((l,c)=>{const d={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:c},children:s.jsx(Ue,{...d,isVideo:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},c)})})]})]})},Tm=({printEdition:e,title:t})=>e&&s.jsx(he,{title:t,children:s.jsx("div",{className:"sass-bd-mif-content iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),Ki={banner:e=>s.jsx(be,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>s.jsx(Vs,{...e}),"Modulo 1x3":e=>s.jsx(gi,{...e}),"Modulo 1x4":e=>s.jsx(bi,{...e}),"Modulo 1x5":e=>s.jsx(wi,{...e}),"Destacado noticias":e=>s.jsx(mi,{...e}),"Destacado full width":e=>s.jsx(xm,{...e}),"Destacado videos":e=>s.jsx(Ai,{...e}),"Carrusel card":e=>s.jsx(Ci,{...e}),"Carrusel story":e=>s.jsx(Sm,{...e}),"Carrusel owl":e=>s.jsx(Nm,{...e}),"Modulo fotogaleria":e=>s.jsx(Em,{...e}),"Carrusel opinion":e=>s.jsx(vi,{...e}),"Modulo 1x3 card":e=>s.jsx(yi,{...e}),"Modulo iframe":e=>s.jsx(Tm,{...e}),"Carrusel video":e=>s.jsx(Si,{...e})};function An({component:e,slot_id:t,data:a,banners:n,isHome:r}){if(n)return Ki[e]&&s.jsx("div",{className:"home-slot",style:ua(a),children:Ki[e]({...a,banners:n,slot_id:t,isHome:r})})}function km({children:e,stylesConfigEntry:t}){return s.jsx("div",{className:"home-slot",style:ua(t),children:e})}const Im=e=>e?.main?.title?{...e,main:{...e.main,title:{...e.main.title,section:e.main.title.home??e.main.title.section}}}:e,Ji={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(hi,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(hi,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},Super:e=>s.jsx(Ot,{...e.data[0],paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas verticales":e=>s.jsx(n1,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas horizontales":e=>s.jsx(a1,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"Diario en vivo":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(s1,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,customLiveStyles:e.customLiveStyles,paths:e.paths,commonServices:e.commonServices,speculationPrerenderClass:e.speculationPrerenderClass})}},rs=({component:e,data:t,banners:a,rightOnlyBanner:n,isHome:r,commonServices:o})=>{const i=r&&Array.isArray(t?.data)?{...t,data:t.data.map(Im)}:t;return s.jsx("div",{style:ua(t),children:Ji[e]&&Ji[e]({...i,rightOnlyBanner:n,banners:a,commonServices:o})})},Lm=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:n,config:r,banners:o,showTagBySection:i,pathname:l})=>{const c=so(l),d=[],u=t;let f=!0;const h=A=>A==="No Mostrar"||A?.toLowerCase()==="no mostrar",p=A=>{if(e[A].blockSass[0]?.block==="Modulo iframe")return!!e[A].blockSass[0]?.value;const S=e[A].content?.data;return Array.isArray(S)&&S.length>0},m=A=>{if(!f)return{};f=!1;const v=e[A].content?.data,S=Array.isArray(v)?v.length:0;return{speculationPrerenderClass:ja,speculationPrerender:{class:ja,length:S}}},g=(A,v,S,y)=>{if(!e[A]||!e[A].blockSass||!e[A].blockSass[0]||!e[A].blockSass[0].value||!e[A].blockSass[0].block||h(e[A].blockSass[0].block)||!p(A))return;const N=m(A);e[A].blockSass[0]?.block==="Modulo iframe"?d.push(s.jsxs(Fa,{id:e[A].blockSass[0].key,show:!!e[A].blockSass[0].value,order:v,children:[s.jsx(An,{component:e[A].blockSass[0].block,banners:o,slot_id:A,isHome:c,data:{printEdition:e[A]?.blockSass[0].value,title:e[A]?.blockSass[0].title??"",titleUrl:e[A].blockSass[0].link??void 0,...N}}),s.jsx(mt,{children:s.jsx(st,{banners:o,index:"dynamic_"+y})})]},S)):d.push(s.jsxs(Fa,{id:e[A].blockSass[0].key,show:!!e[A].content?.data,order:v,children:[s.jsx(An,{component:e[A].blockSass[0].block,banners:o,slot_id:A,isHome:c,data:{...e[A].blockSass[0].block?a[e[A].blockSass[0].block]:[],content:e[A].content?.data??[],title:e[A].blockSass[0].title??void 0,titleUrl:e[A].blockSass[0].link??void 0,autorIcon:s.jsx(n,{}),paths:r.paths,showTagBySection:i,...N}}),s.jsx(mt,{children:s.jsx(st,{banners:o,index:"dynamic_"+y})})]},S))},b=Object.keys(e);if(b.some(A=>/^Home_\d+$/.test(A))){const A=b.filter(v=>/^Home_\d+$/.test(v)).sort((v,S)=>Number(v.slice(5))-Number(S.slice(5)));for(const v of A){const S=Number(v.slice(5));g(v,Number.isFinite(S)?S-1:0,v,String(S))}}else{const v=b.length/u;for(let S=1;S<=v;S++)for(let y=1;y<=u;y++)g("Home_"+S+"_"+y,(S-1)*u+(y-1),S+"_"+y,S+"_"+y)}return d},Um=({mainBlock:e,StylesConfigMain:t,config:a,banners:n,commonServices:r})=>{const{PUBLIC_ENV:o}=L();if(o!=="local")return null;const i=e?.news?.data||[],l=(c,d)=>({...e?.news,...t[c],data:i.slice(0,d),paths:a.paths});return s.jsxs(s.Fragment,{children:[s.jsx(rs,{component:"Super",data:l("Super",1),banners:n}),s.jsx(mt,{children:s.jsx(st,{banners:n,index:1})}),s.jsx(rs,{component:"3 notas verticales",data:l("3 notas verticales",3),banners:n}),s.jsx(mt,{children:s.jsx(st,{banners:n,index:1})}),s.jsx(rs,{component:"3 notas horizontales",data:l("3 notas horizontales",3),banners:n}),s.jsx(mt,{children:s.jsx(st,{banners:n,index:1})}),s.jsx(rs,{component:"Diario en vivo",data:l("Diario en vivo",5),banners:n,commonServices:r}),s.jsx(mt,{children:s.jsx(st,{banners:n,index:1})})]})};function Pm({debugCfg:e}){return L().DEBUG_ENABLED?s.jsx(Om,{position:e?.buttonPosition??"bottom-right",initialErrors:e?.initialErrors,initialSuccesses:e?.initialSuccesses}):null}function Om({position:e,initialErrors:t,initialSuccesses:a}){const[n,r]=T.useState(0),[o,i]=T.useState(0),[l,c]=T.useState(!1),[d,u]=T.useState("errors"),[f,h]=T.useState([]),[p,m]=T.useState([]),g=T.useRef(null);T.useEffect(()=>{if(t&&t.length>0){const S=new Set(ge.getAll().map(y=>y.id));for(const y of t)S.has(y.id)||ge.add(y)}if(a&&a.length>0){const S=new Set(ge.getAllSuccesses().map(y=>y.id));for(const y of a)S.has(y.id)||ge.addSuccess(y)}r(ge.getCount()),i(ge.getSuccessCount());const A=S=>r(S.detail.count),v=S=>i(S.detail.count);return window.addEventListener("debug-fetch-error",A),window.addEventListener("debug-fetch-success",v),g.current=re.interceptors.response.use(S=>{const y=Bm(S.data);return ge.addSuccess({endpoint:S.config.url??"(unknown)",method:(S.config.method??"GET").toUpperCase(),params:S.config.params,status:S.status,responsePreview:y,layer:"axios-service"}),S},void 0),()=>{window.removeEventListener("debug-fetch-error",A),window.removeEventListener("debug-fetch-success",v),g.current!==null&&re.interceptors.response.eject(g.current)}},[]);function b(){h(ge.getAll()),m(ge.getAllSuccesses()),c(!0)}function w(){ge.clearAll(),h([]),m([]),r(0),i(0),c(!1)}return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:b,style:Gm(e),title:"Debug panel",children:["🐛",n>0&&s.jsx("span",{style:Zi("#e94560"),children:n}),o>0&&s.jsx("span",{style:Zi("#27ae60"),children:o})]}),l&&s.jsx("div",{style:Fm,onClick:()=>c(!1),children:s.jsxs("div",{style:jm,onClick:A=>A.stopPropagation(),children:[s.jsxs("div",{style:Hm,children:[s.jsx("strong",{children:"Debug Panel"}),s.jsx("button",{onClick:()=>c(!1),style:Qm,children:"✕"})]}),s.jsxs("div",{style:Vm,children:[s.jsxs("button",{onClick:()=>u("errors"),style:Xi(d==="errors","#e94560"),children:["Errors ",n>0&&s.jsx("span",{style:Ri("#e94560"),children:n})]}),s.jsxs("button",{onClick:()=>u("successes"),style:Xi(d==="successes","#27ae60"),children:["OK ",o>0&&s.jsx("span",{style:Ri("#27ae60"),children:o})]})]}),s.jsxs("div",{style:zm,children:[d==="errors"&&(f.length===0?s.jsx("p",{style:cl,children:"No hay errores acumulados."}):f.map(A=>s.jsx(_m,{error:A},A.id))),d==="successes"&&(p.length===0?s.jsx("p",{style:cl,children:"No hay fetches exitosos registrados aún."}):p.map(A=>s.jsx(Dm,{entry:A},A.id)))]}),s.jsx("div",{style:$m,children:s.jsx("button",{onClick:w,style:Wm,children:"Limpiar todo"})})]})})]})}function Bm(e){try{const t=JSON.stringify(e);return t.length>500?t.slice(0,500)+"…":t}catch{return"[non-serializable]"}}function Mm(e){const t=e.status?`${e.status}`:"Error",a=e.service?e.service.split(".").pop()??e.service:e.endpoint.split("/").filter(Boolean).pop()??e.endpoint;return`${t}: ${a}`}function _m({error:e}){const[t,a]=T.useState(!1);function n(){navigator.clipboard?.writeText(JSON.stringify(e,null,2))}return s.jsxs("div",{style:el("#1a0a0a","#3d1a1a"),children:[s.jsxs("button",{onClick:()=>a(r=>!r),style:tl,children:[s.jsx("span",{style:sl,children:t?"▼":"▶"}),s.jsx("span",{style:dl(e.layer),children:e.layer}),e.status!==void 0&&s.jsx("span",{style:ul(e.status),children:e.status}),s.jsx("span",{style:{fontWeight:600,fontSize:13,color:"#f87171"},children:Mm(e)}),s.jsxs("span",{style:al,children:[e.method," ",e.endpoint]})]}),t&&s.jsxs("div",{style:nl,children:[e.service&&s.jsx("div",{style:{fontSize:11,color:"#888",marginBottom:4},children:e.service}),s.jsx("div",{style:{fontSize:12,color:"#f87171",marginBottom:4},children:e.message}),e.params&&s.jsx("pre",{style:yn,children:JSON.stringify(e.params,null,2)}),s.jsxs("div",{style:ol,children:[s.jsx("span",{style:il,children:e.timestamp}),s.jsx("button",{onClick:n,style:ll,children:"Copy"})]})]})]})}function Dm({entry:e}){const[t,a]=T.useState(!1);function n(){navigator.clipboard?.writeText(JSON.stringify(e,null,2))}const r=e.service?e.service.split(".").pop()??e.service:e.endpoint.split("/").filter(Boolean).pop()??e.endpoint;return s.jsxs("div",{style:el("#0a1a0a","#1a3d1a"),children:[s.jsxs("button",{onClick:()=>a(o=>!o),style:tl,children:[s.jsx("span",{style:sl,children:t?"▼":"▶"}),s.jsx("span",{style:dl(e.layer),children:e.layer}),s.jsx("span",{style:ul(e.status),children:e.status}),s.jsx("span",{style:{fontWeight:600,fontSize:13,color:"#4ade80"},children:r}),s.jsxs("span",{style:al,children:[e.method," ",e.endpoint]}),e.responsePreview&&!t&&s.jsx("span",{style:Km,children:s.jsx("span",{style:Jm,children:e.responsePreview.length>80?e.responsePreview.slice(0,80)+"…":e.responsePreview})}),e.durationMs!==void 0&&s.jsxs("span",{style:Ym,children:[e.durationMs,"ms"]})]}),t&&s.jsxs("div",{style:nl,children:[e.service&&s.jsx("div",{style:{fontSize:11,color:"#888",marginBottom:4},children:e.service}),e.params&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:rl,children:"Params"}),s.jsx("pre",{style:yn,children:JSON.stringify(e.params,null,2)})]}),e.responsePreview&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:rl,children:"Response"}),s.jsx("pre",{style:{...yn,color:"#86efac"},children:e.responsePreview})]}),s.jsxs("div",{style:ol,children:[s.jsx("span",{style:il,children:e.timestamp}),s.jsx("button",{onClick:n,style:ll,children:"Copy"})]})]})]})}const qm={"bottom-right":{bottom:16,right:16},"bottom-left":{bottom:16,left:16},"top-right":{top:16,right:16},"top-left":{top:16,left:16}};function Gm(e){return{position:"fixed",zIndex:99999,...qm[e],background:"#1a1a2e",color:"#fff",border:"2px solid #e94560",borderRadius:8,padding:"8px 14px",fontSize:14,cursor:"pointer",display:"flex",alignItems:"center",gap:5,boxShadow:"0 4px 12px rgba(0,0,0,0.4)"}}function Zi(e){return{background:e,color:"#fff",borderRadius:"50%",width:18,height:18,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,flexShrink:0}}const Fm={position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:1e5,display:"flex",alignItems:"center",justifyContent:"center"},jm={background:"#1a1a2e",color:"#fff",borderRadius:12,width:"min(820px, 92vw)",maxHeight:"85vh",display:"flex",flexDirection:"column",boxShadow:"0 8px 32px rgba(0,0,0,0.6)",border:"1px solid #e94560"},Hm={display:"flex",justifyContent:"space-between",alignItems:"center",padding:"14px 20px",borderBottom:"1px solid #2a2a4e"},Vm={display:"flex",borderBottom:"1px solid #2a2a4e",padding:"0 12px",gap:4};function Xi(e,t){return{background:"none",border:"none",borderBottom:e?`2px solid ${t}`:"2px solid transparent",color:e?"#fff":"#888",cursor:"pointer",fontSize:13,fontWeight:e?700:400,padding:"8px 14px",display:"flex",alignItems:"center",gap:6,transition:"color 0.15s"}}function Ri(e){return{background:e,color:"#fff",borderRadius:10,padding:"1px 7px",fontSize:10,fontWeight:700}}const zm={overflowY:"auto",flex:1,padding:"12px 16px",display:"flex",flexDirection:"column",gap:8},$m={padding:"12px 20px",borderTop:"1px solid #2a2a4e",display:"flex",justifyContent:"flex-end"},Qm={background:"none",border:"none",color:"#fff",cursor:"pointer",fontSize:18},Wm={background:"#e94560",color:"#fff",border:"none",borderRadius:6,padding:"6px 16px",cursor:"pointer",fontSize:13};function el(e,t){return{background:e,border:`1px solid ${t}`,borderRadius:8,padding:10}}const tl={display:"flex",alignItems:"center",gap:7,background:"none",border:"none",color:"#fff",cursor:"pointer",width:"100%",textAlign:"left",padding:0,fontSize:13,flexWrap:"wrap"},sl={fontSize:10,color:"#aaa",flexShrink:0},al={fontSize:11,color:"#9ca3af",fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:300},Ym={fontSize:10,color:"#6b7280",marginLeft:"auto",flexShrink:0},Km={display:"flex",alignItems:"center",maxWidth:260,overflow:"hidden",flexShrink:1},Jm={fontFamily:"ui-monospace, monospace",fontSize:10,color:"#6b7280",background:"#0a0a14",borderRadius:3,padding:"1px 6px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},nl={marginTop:10,paddingTop:10,borderTop:"1px solid #2a2a4e"},rl={fontSize:10,textTransform:"uppercase",letterSpacing:"0.08em",color:"#9ca3af",marginBottom:3,marginTop:8},yn={background:"#0a0a14",borderRadius:4,padding:"6px 10px",fontSize:10,overflow:"auto",maxHeight:150,margin:"0 0 4px",whiteSpace:"pre-wrap",wordBreak:"break-all"},ol={display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8},il={fontSize:10,color:"#6b7280"},ll={background:"#2a2a4e",color:"#fff",border:"1px solid #444",borderRadius:6,padding:"4px 12px",cursor:"pointer",fontSize:11},cl={color:"#888",margin:0,fontSize:13};function dl(e){return{background:{"axios-service":"#3498db","fetch-api":"#9b59b6",captcha:"#f39c12",auth:"#e74c3c"}[e]??"#555",color:"#fff",borderRadius:4,padding:"2px 7px",fontSize:10,fontWeight:700,flexShrink:0}}function ul(e){return{background:e>=500?"#c0392b":e>=400?"#e67e22":"#27ae60",color:"#fff",borderRadius:4,padding:"2px 7px",fontSize:10,fontWeight:700,flexShrink:0}}function le(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function et(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function os(e,t){const{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,LINK_REMOVE:n,CONFIG_buscar_html:r}=L(),o=e??"",i=/[t][0-9]{4}\w+/.test(o),l=o.includes("/buscar"),c=!!a?.tema&&i,d=!!a?.buscar&&l,u=!t&&!c&&!d?de():"",f=/^(https?:)?\/\//.test(o)||/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(o),h=o.split("/")?.[1]===u.replace("/","");let p=(!f&&!h?u:"")+(u&&o==="/"?"":o);return p.startsWith("//")&&(p=p.slice(1)),n&&p.search(n)!==-1&&(p=p.replace(n,"")),r&&l&&!p.endsWith(".html")&&(p=p.replace("/buscar","/buscar.html")),{finalHref:p,isExternal:f}}const Zm={whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:"/whatsapp-note.svg"},message:{url:e=>`${e}#comentarios`,icon:"/message.svg"}};function Xm(e){const t=e.url||"",a=gt(),n=(e.options??[]).map(i=>{const l=String(i).toLowerCase(),c=Zm[l];if(!c)return"";const d=c.url(t),u=ne(c.icon);return`<a href="${le(d)}" target="_blank" rel="noopener noreferrer" aria-label="${le(a.shareOnPrefix??"Compartir en")} ${le(String(i))}" class="sass-com-nd-socialButton sass-com-nd-${le(l)}Button sass-com-nd-${le(l)}Styled"><img fetchpriority="low" loading="lazy" src="${le(u)}" alt=""></a>`}).join(""),r=ne("/send.svg"),o=ne("/clipboard.svg");return'<div class="sass-com-nd-socialNetworkSection sass-news-description-social-network-section">'+n+`<button type="button" aria-label="share" class="sass-com-nd-clipboardButton sharebtn-id"><img fetchpriority="low" loading="lazy" src="${le(r)}" alt=""></button><button type="button" data-text="${le(a.linkCopied??"Link copiado")}" data-active="false" aria-label="copy" class="sass-com-nd-clipboardButton clipbtn-id"><img fetchpriority="low" loading="lazy" src="${le(o)}" alt=""></button></div>`}function Rm(e,t){const a=e.sizes;if(!a||a.length===0)return"";const n=e.description?String(e.description):"",r=t?"high":"low",o=t?"eager":"lazy";if(a.length===1){const h=a[0]?.url?` src="${le(a[0].url)}"`:"";return`<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture><img fetchpriority="${r}" loading="${o}" class="sass-com-img-imageStyled su-flex-center su-object-cover" alt="${le(n)}"${h}></picture></span></figure>`}const i=t?"sync":"async",l=a.filter(h=>h.width<580).map(h=>`<source srcset="${le(h.url)}">`).join(""),c=a[0],d=c?.width!==void 0?` width="${c.width}"`:"",u=c?.height!==void 0?` height="${c.height}"`:"",f=c?.url??"";return'<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture>'+l+`<img fetchpriority="${r}" loading="${o}" decoding="${i}" class="sass-com-img-imageStyled su-flex-center su-object-cover"${d}${u} alt="${le(n)}" src="${le(f)}"></picture></span></figure>`}function ep(e){const{href:t,target:a,ariaLabel:n,preview:r,preRenderClass:o,priorityHigh:i}=e,{finalHref:l,isExternal:c}=os(t),d=o?`homeCardImage ${o}`:"homeCardImage",u=n!=null?` aria-label="${le(n)}"`:"",f=n!=null?` title="${le(n)}"`:"",h=a??void 0,p=h?` target="${le(h)}"`:"",m=c?' rel="noopener noreferrer"':"",g=Rm(r,i??!1);return`<a${u} class="${d}"${f} href="${le(l)}"${p}${m}>${g}</a>`}function tp(e,t,a){const n=a?.share,r=a?.newsDescriptionSectionTag??"h3",o=a?.speculationPrerenderClass,{SHOW_TAG_BY_SECTION:i,SUB_PUBLICATION_PREFIX_IN_ROUTES:l}=L();let c="";n&&(c=`<div style="width: 100%;" data-hydrate="ShareButtons" data-props="${encodeURIComponent(JSON.stringify({noteShare:n}))}">`+Xm(n)+"</div>");const d=()=>e.main.uppertitle?`<p class="sass-com-nd-uppertitle" title="${le(e.main.uppertitle)}">${et(e.main.uppertitle)}</p>`:"";let u="";const f=e.keywords,h=e.info;if(i&&f?.tags?.length&&f.tags.length>0){const A=f.tags[0],v=A.name;let S;if(A.approved){const y=Ye(A,t),{finalHref:N}=os(y,!!l?.tema);S=`<a aria-label="${le(v)}" class="sass-com-nd-sectionDescription" href="${le(N)}">${et(v)}</a>`}else S=`<div class="sass-com-nd-sectionDescription">${et(v)}</div>`;u=`<${r} class="sass-com-nd-sectionDescriptionContainer section">${S}${d()}</${r}>`}else if(h?.section?.url){const A=h.section.name,{finalHref:v}=os(h.section.url);u=`<${r} class="sass-com-nd-sectionDescriptionContainer section"><a aria-label="${le(A)}" class="sass-com-nd-sectionDescription" href="${le(v)}">${et(A)}</a>`+d()+`</${r}>`}const p=e.main?.title?.section??"",m=o?`${o} sass-com-nd-linkStyled su-no-underline`:"sass-com-nd-linkStyled su-no-underline";let g;if(e.info?.link?.url){const{finalHref:A,isExternal:v}=os(e.info.link.url),S=e.info.link.target,y=S?` target="${le(S)}"`:"",N=v?' rel="noopener noreferrer"':"";g=`<h2 class="sass-com-nd-articule"><a aria-label="${le(p)}" class="${m}" style="--isLink:var(--news-description-title-color-hover-decoration)" href="${le(A)}"${y}${N}>${et(p)}</a></h2>`}else g=`<h2 class="sass-com-nd-articule">${et(p)}</h2>`;let b="";if(e.config?.showsubtitle){const A=e.main?.subtitle?.striped??"";b=`<p class="sass-com-nd-description">${et(Be(A))}</p>`}let w="";if(e.config?.showtime||e.config?.showauthor){let A,v="";if(e.config?.showtime&&e.config?.showauthor){const S=`${e.authors[0]?.fullname??"Redacción"} - `;A=`${S}${Te(e.info?.date?.modified)}`,v=Ds(e.info?.date?.modified,S)}else e.config?.showauthor?A=e.authors[0]?.fullname??"Redacción":e.config?.showtime&&(A=Te(e.info?.date?.modified),v=Ds(e.info?.date?.modified));if(A!==void 0)if(e.authors[0]?.internaluser){const S=`/${t?.autor}/${e.authors[0]?.name}`,{finalHref:y}=os(S,!!l?.autor);w=`<h3><a aria-label="${le(A)}" class="sass-com-nd-correspondentLink" href="${le(y)}"${v}>${et(A)}</a></h3>`}else w=`<h3 class="sass-com-nd-correspondent"${v}>${et(A)}</h3>`}return'<div class="sass-com-nd-boxInformation sass-news-description">'+c+u+g+b+w+"</div>"}function sp(e,t,a,n,r=!1){const o=t<5?"nota-prerender":void 0,i=ep({href:e.info.link.url,target:e.info.link.target,ariaLabel:e.main?.title?.section,preview:e.preview,priorityHigh:r}),l=tp(e,a,{share:n,speculationPrerenderClass:o});return`<section class="homeCardContent"><div class="homeCardContentWrapper">${i}</div><div class="homeCardNewsDescription">${l}</div></section>`}const hl=" · ",Cn=24,ap=36e5,fl=new WeakMap;let ha,is;const ml=e=>{const t=L().CONFIG_relativeTime;return{enabled:e?.enabled??t?.enabled??!1,maxAgeHours:e?.maxAgeHours??t?.maxAgeHours??hs,scope:e?.scope??t?.scope??"all",keepAbsolute:e?.keepAbsolute??t?.keepAbsolute??"notes",separator:e?.separator??t?.separator??hl,refreshMs:e?.refreshMs??6e4,root:e?.root}},np="America/Mexico_City",rp=()=>typeof document>"u"?"":document.documentElement.getAttribute("lang")??"",op=e=>{const t=L();return{PUBLIC_LNG:(e?.PUBLIC_LNG||t.PUBLIC_LNG||rp()||"es").toLowerCase().split("-")[0],DATE_TIMEZONE:e?.DATE_TIMEZONE||t.DATE_TIMEZONE||np}},pl=(e,t)=>t==="none"?!1:t==="all"?!0:t==="notes"?e:!e,ip=/\d{1,2}:\d{2}(?::\d{2})?\s*(?:hs?|hrs?)?\.?\s*$/i,lp=e=>{const t=e.match(ip);if(!t||t.index===void 0)return;const a=e.slice(0,t.index);if(a.trim())return/\s$/.test(a)?a:a+" "},cp=(e,t)=>{const{original:a,isNote:n,ts:r,now:o,maxAgeHours:i}=t,l=pl(n,t.keepAbsolute),c=l?Math.min(i,Cn):i;if(!ba(r,o,c)||l&&o-r>=Cn*ap)return a;const d=Bn(r,o,c,t.DATE_CONFIG);if(l){const f=a.trim();if(!f)return d;const h=lp(f);return h!==void 0?h+d:f+t.separator+d}return(e.getAttribute(Ms)??"")+d},fa=e=>{if(typeof document>"u")return;const{enabled:t,maxAgeHours:a,scope:n,keepAbsolute:r,separator:o,root:i}=ml(e);if(!t)return;const l=Date.now(),c=op(e);(i??document).querySelectorAll(`[${Xt}]`).forEach(u=>{const f=u.getAttribute(_s)==="note";if(!pl(f,n))return;const h=Number(u.getAttribute(Xt));if(!Number.isFinite(h)||h<=0)return;let p=fl.get(u);p===void 0&&(p=u.textContent??"",fl.set(u,p));const m=cp(u,{original:p,isNote:f,ts:h,now:l,maxAgeHours:a,keepAbsolute:r,separator:o,DATE_CONFIG:c});u.textContent!==m&&(u.getAttribute("aria-label")===u.textContent&&u.setAttribute("aria-label",m),u.textContent=m)})},dp=e=>{if(typeof document>"u")return()=>{};const t=()=>{ha!==void 0&&clearInterval(ha),ha=void 0,is&&document.removeEventListener("visibilitychange",is),is=void 0};t();const{enabled:a,refreshMs:n}=ml(e);return a?(fa(e),n>0&&(ha=setInterval(()=>{document.visibilityState==="visible"&&fa(e)},n),is=()=>{document.visibilityState==="visible"&&fa(e)},document.addEventListener("visibilitychange",is)),t):()=>{}};C.AssetsPreconnect=lr,C.AutorHeader1=Bh,C.AutorHeader2=Mh,C.BannerAdvertising=be,C.BannerAdvertisingMiddle=st,C.BannersPreconnect=Uo,C.CarrouselCSR=Yu,C.CarrouselIRS=Fe,C.CarruselCard=Ci,C.CarruselOpinion=vi,C.CommentLazyLoader=Am,C.CommonServices=Ze,C.Comscore=En,C.ContactInfoServer=p1,C.ContactInput=Sh,C.ContactSelect=Nh,C.ContactTextarea=Eh,C.ContentLayout1=Bs,C.ContentLayoutTema=Ch,C.DEBUG_MainSlots=Um,C.DEFAULT_HEAD_CONFIG=_o,C.DEFAULT_RELATIVE_MAX_AGE_HOURS=hs,C.DEFAULT_RELATIVE_SEPARATOR=hl,C.DEFAULT_S3_REFERER=ht,C.DebugPanel=Pm,C.DebugStore=ge,C.DestacadoNoticias=mi,C.DestacadoVideos=Ai,C.DynamicBlockServices=Oo,C.DynamicComponents=Lm,C.DynamicMainSlot=rs,C.DynamicSlot=An,C.EMPTY_PREVIEW=_n,C.EditorialBlock=i1,C.ErrorComponent=vh,C.Font=ko,C.Footer=wh,C.FormatAfterScripts=ir,C.FormatScripts=va,C.GA4=fo,C.GTM=mo,C.GalleryHeader=Ei,C.GenerateBody=zu,C.GenerateHead=Vu,C.Header=Qh,C.HeaderSectionComponent=Ni,C.HomeCard=Jh,C.IframeHeader=Zo,C.ImageOffline=Vo,C.ImageOnline=ve,C.ImageOnlineClient=Va,C.IssuuServices=Iu,C.ItemListSchema=Co,C.JournalistArticule2=ci,C.JournalistArticule5=ui,C.JournalistGroup=di,C.KEEP_ABSOLUTE_MAX_AGE_HOURS=Cn,C.LayoutNewsComponent=ai,C.LinkComponent=M,C.LiveBlogHeader=Ro,C.Location=Qu,C.LoginForm=X1,C.MainComponentServices=ku,C.Marfeel=po,C.MasNoticiasLazyLoader=ym,C.MiddleSection=mt,C.Modulo1x3=gi,C.Modulo1x3Card=yi,C.Modulo1x4=bi,C.Modulo1x5=wi,C.Modulo2Columnas=l1,C.Modulo3Columnas=pi,C.ModuloBlockNews=u1,C.ModuloNewsletter=c1,C.ModuloOpinion=o1,C.NOTA_PRERENDER_CLASS=ja,C.NewDescriptionBlock=Hs,C.NewListResponseDataPH=ki,C.NewsArticle=So,C.NewsComponent=$1,C.NewsContent=Ja,C.NewsDescriptionComponent=He,C.News_Content=xi,C.NextPrev=Ka,C.OrgList=No,C.PreloadImages=Sa,C.RECAPTCHA_DISABLED_TOKEN=Sn,C.RELATIVE_TIME_ATTR=Xt,C.RELATIVE_TIME_PREFIX_ATTR=Ms,C.RELATIVE_TIME_SCOPE_ATTR=_s,C.REPORT_REASONS=aa,C.RESILIENT_FETCH_DEFAULTS=St,C.ReCaptchaRender=gu,C.Readest=Vs,C.RegisterForm=J1,C.ScriptHydrator=nf,C.SearchSection=W1,C.Section=he,C.SectionCard=Ue,C.SectionCard2=ts,C.SectionCard5=Ru,C.SectionCardServerComponent=Ra,C.SectionServerComponent=m1,C.ShowSection=Fa,C.SocialNetworks=Xs,C.SoftwareApplication=vo,C.SourceButtons=Kh,C.SpeculationRules=yo,C.Spin=Bt,C.StaticSlotWrapper=km,C.SubscribeColumn=zo,C.SubscribeRow=$o,C.SubscribeWhatsAppColumn=ch,C.TagHeader=Yh,C.TagSection=li,C.TimeLine=ei,C.TrimPathname=hc,C.TwitterHydration=rf,C.VideoBlock3=yh,C.VideoBlock4=Dh,C.VideoCarousel=Si,C.VideoEmbeddedHeader=Ko,C.VideoYoutubeHeader=Jo,C.VideosSchemas=xo,C.WebsiteList=Eo,C.addComment=Cm,C.applyRelativeTime=fa,C.assertImageSizesContract=Wn,C.assetsImagesPrefixer=ne,C.auditConfigOrigin=ft,C.bannersEnabledForRequest=Nn,C.bannersReplace=vt,C.becomeVideoObject=At,C.buildConfigMenuApiPath=Wt,C.buildTagUrl=Ye,C.buildVideoUrlFromInternal=Hn,C.checkImageSizes=Yl,C.cleanSchema=_e,C.clearConfigOriginAudit=ru,C.clearConfigOriginCache=Yd,C.clearConfigOriginComparisonCache=tu,C.coloringByStrokeSVGs=bh,C.compileStyleProps=ua,C.contractWarn=De,C.createAssessment=wc,C.cutString=Be,C.decodeApiEnv=Na,C.emptyNewListResponse=rr,C.encodeApiEnv=Cc,C.ensurePreview=yt,C.extractMainSlug=Ne,C.extractRealtedNews=Zl,C.extractRelatedNews=ps,C.fetchWithConfigCache=ut,C.formatConfigOriginComparisonTable=Rr,C.formatDate=Te,C.formatDateEdiciones=Pl,C.formatDateJournalistArticule=Dt,C.formatDateTimeline=Un,C.formatNewsMeta=Rn,C.formatRelativeDate=Bn,C.formatVideoData=cr,C.generalGetData=Ou,C.getBucketHttpClient=Lt,C.getCaptchaToken=as,C.getComments=zi,C.getConfig=L,C.getConfigCacheTtlMs=Zr,C.getConfigOriginAuditReport=to,C.getDynamicSlots=Uu,C.getEnvironmentUrl=tt,C.getEnvironmentUrlFront=Xl,C.getFrontPrefix=de,C.getHydratorPath=pc,C.getImageUrl=ue,C.getItemFormated=vc,C.getNextMeta=Et,C.getPage=Ut,C.getPlayIcon=Rt,C.getPreloadImages=Tu,C.getPrevMeta=xt,C.getRelatedNewsCarrousel=gc,C.getReportReasonLabel=gf,C.getResponse=rt,C.getResponsePromise=Mn,C.getSchemas=Us,C.getScriptReplaces=Da,C.getServicePrefix=ya,C.getSlugs=Lo,C.getTextsStringValue=Ac,C.getTitleString=qt,C.getTypeOfNews=fc,C.getVideoOp=wa,C.getVideoRealPath=mc,C.handleGetComments=da,C.homeCardImagenToHTMLString=sp,C.initLibrary=Al,C.initRelativeTime=dp,C.isConfigOriginAuditEnabled=Is,C.isHomePath=so,C.isPhotoGallery=yc,C.isRecaptchaBlocked=xe,C.isVideoContentItem=jn,C.isWithinRelativeWindow=ba,C.metadataToJSX=sr,C.metadata_defaults=Mo,C.new_speculationRules_home=go,C.new_speculationRules_note=wo,C.new_speculationRules_noteList=Ao,C.new_speculationRules_section=bo,C.normalizeAuthorSocialUrl=$e,C.normalizeRankingItem=zn,C.normalizeRankingList=Gt,C.normalizeRankingResponse=$n,C.parseConfigOriginCacheKey=_a,C.parseTags=Ca,C.pathnameSplit=er,C.pickBannerVariant=gs,C.printImageSizesReport=Kl,C.processExtractedRelatedNews=Kn,C.relativeTimeAttrs=je,C.relativeTimeAttrsHTML=Ds,C.removePages=Io,C.reportBucketOriginExhausted=Qt,C.reportComment=pf,C.resilientFetch=Nt,C.resolveBucketMenuSubtype=Ts,C.resolveBucketOriginUrl=Je,C.resolveImageSizes=Ft,C.resolveSpeculationPrerenderClass=Do,C.runConfigOriginComparison=eu,C.sanitizeRichText=Ls,C.shareButtons=Qo,C.socialIcons=wt,C.stripHtml=ho,C.takeConfigOriginAuditReport=nu,C.toISOWithTimeZone=Ie,C.toPublicEditionUrl=Ct,C.toPublicShareUrl=ec,C.urlReplaces=tr,C.usePlayIcon=Ha,C.validateHttpUrl=Jn,C.verifyCaptchaTokenEnterprise=vm,C.withPreviewFallback=ql,C.withSpeculationPrerenderClass=pt,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
542
+ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var j=ce(Z,X,V,W,K+"."+X,a);if(j)return j}return null}return b(I)}function _(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(_);if(E===null||l(E))return!0;var I=f(E);if(I){var F=I.call(E),Q;if(I!==E.entries){for(;!(Q=F.next()).done;)if(!_(Q.value))return!1}else for(;!(Q=F.next()).done;){var V=Q.value;if(V&&!_(V[1]))return!1}}else return!1;return!0;default:return!1}}function P(E,I){return E==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function U(E){var I=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":P(I,E)?"symbol":I}function H(E){if(typeof E>"u"||E===null)return""+E;var I=U(E);if(I==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return I}function D(E){var I=H(E);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function Y(E){return!E.constructor||!E.constructor.name?h:E.constructor.name}return p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},on}var ln,Fi;function Ef(){if(Fi)return ln;Fi=1;var e=an();function t(){}function a(){}return a.resetWarningCache=t,ln=function(){function n(i,l,c,d,u,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function r(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o},ln}var ji;function xf(){if(ji)return ra.exports;if(ji=1,process.env.NODE_ENV!=="production"){var e=en(),t=!0;ra.exports=Nf()(e.isElement,t)}else ra.exports=Ef()();return ra.exports}var Tf=xf();const Se=Mt(Tf);var kf=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},cn.apply(this,arguments)}function If(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function ia(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dn(e,t)}function dn(e,t){return dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},dn(e,t)}var la=(function(e){Lf(t,e);function t(){var n;return n=e.call(this)||this,n.handleExpired=n.handleExpired.bind(ia(n)),n.handleErrored=n.handleErrored.bind(ia(n)),n.handleChange=n.handleChange.bind(ia(n)),n.handleRecaptchaRef=n.handleRecaptchaRef.bind(ia(n)),n}var a=t.prototype;return a.getCaptchaFunction=function(r){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[r]:this.props.grecaptcha[r]:null},a.getValue=function(){var r=this.getCaptchaFunction("getResponse");return r&&this._widgetId!==void 0?r(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},a.execute=function(){var r=this.getCaptchaFunction("execute");if(r&&this._widgetId!==void 0)return r(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var r=this;return new Promise(function(o,i){r.executionResolve=o,r.executionReject=i,r.execute()})},a.reset=function(){var r=this.getCaptchaFunction("reset");r&&this._widgetId!==void 0&&r(this._widgetId)},a.forceReset=function(){var r=this.getCaptchaFunction("reset");r&&r()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(r){this.props.onChange&&this.props.onChange(r),this.executionResolve&&(this.executionResolve(r),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var r=this.getCaptchaFunction("render");if(r&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=r(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(r){this.captcha=r},a.render=function(){var r=this.props;r.sitekey,r.onChange,r.theme,r.type,r.tabindex,r.onExpired,r.onErrored,r.size,r.stoken,r.grecaptcha,r.badge,r.hl,r.isolated;var o=If(r,kf);return vn.createElement("div",cn({},o,{ref:this.handleRecaptchaRef}))},t})(vn.Component);la.displayName="ReCAPTCHA",la.propTypes={sitekey:Se.string.isRequired,onChange:Se.func,grecaptcha:Se.object,theme:Se.oneOf(["dark","light"]),type:Se.oneOf(["image","audio"]),tabindex:Se.number,onExpired:Se.func,onErrored:Se.func,size:Se.oneOf(["compact","normal","invisible"]),stoken:Se.string,hl:Se.string,badge:Se.oneOf(["bottomright","bottomleft","inline"]),isolated:Se.bool},la.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var un,Hi;function Uf(){if(Hi)return un;Hi=1;var e=en(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=r;function i(m){return e.isMemo(m)?r:o[m.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function p(m,g,b){if(typeof g!="string"){if(h){var w=f(g);w&&w!==h&&p(m,w,b)}var A=c(g);d&&(A=A.concat(d(g)));for(var v=i(m),S=i(g),y=0;y<A.length;++y){var N=A[y];if(!a[N]&&!(b&&b[N])&&!(S&&S[N])&&!(v&&v[N])){var k=u(g,N);try{l(m,N,k)}catch{}}}}return m}return un=p,un}var Pf=Uf();const Of=Mt(Pf);function hn(){return hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},hn.apply(this,arguments)}function Bf(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function Mf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Oe={},_f=0;function Df(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=(function(l){Mf(c,l);function c(u,f){var h;return h=l.call(this,u,f)||this,h.state={},h.__scriptURL="",h}var d=c.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+_f++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(f){var h=this;this.setState(f,function(){return h.props.asyncScriptOnLoad&&h.props.asyncScriptOnLoad(h.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var f=Oe[this.__scriptURL];if(!f||!f.loaded)throw new Error("Script is not loaded.");for(var h in f.observers)f.observers[h](f);delete window[t.callbackName]},d.componentDidMount=function(){var f=this,h=this.setupScriptURL(),p=this.asyncScriptLoaderGetScriptLoaderID(),m=t,g=m.globalName,b=m.callbackName,w=m.scriptId;if(g&&typeof window[g]<"u"&&(Oe[h]={loaded:!0,observers:{}}),Oe[h]){var A=Oe[h];if(A&&(A.loaded||A.errored)){this.asyncScriptLoaderHandleLoad(A);return}A.observers[p]=function(k){return f.asyncScriptLoaderHandleLoad(k)};return}var v={};v[p]=function(k){return f.asyncScriptLoaderHandleLoad(k)},Oe[h]={loaded:!1,observers:v};var S=document.createElement("script");S.src=h,S.async=!0;for(var y in t.attributes)S.setAttribute(y,t.attributes[y]);w&&(S.id=w);var N=function(O){if(Oe[h]){var $=Oe[h],q=$.observers;for(var B in q)O(q[B])&&delete q[B]}};b&&typeof window<"u"&&(window[b]=function(){return f.asyncScriptLoaderTriggerOnScriptLoaded()}),S.onload=function(){var k=Oe[h];k&&(k.loaded=!0,N(function(O){return b?!1:(O(k),!0)}))},S.onerror=function(){var k=Oe[h];k&&(k.errored=!0,N(function(O){return O(k),!0}))},document.body.appendChild(S)},d.componentWillUnmount=function(){var f=this.__scriptURL;if(t.removeOnUnmount===!0)for(var h=document.getElementsByTagName("script"),p=0;p<h.length;p+=1)h[p].src.indexOf(f)>-1&&h[p].parentNode&&h[p].parentNode.removeChild(h[p]);var m=Oe[f];m&&(delete m.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete Oe[f])},d.render=function(){var f=t.globalName,h=this.props;h.asyncScriptOnLoad;var p=h.forwardedRef,m=Bf(h,["asyncScriptOnLoad","forwardedRef"]);return f&&typeof window<"u"&&(m[f]=typeof window[f]<"u"?window[f]:void 0),m.ref=p,T.createElement(n,m)},c})(T.Component),i=T.forwardRef(function(l,c){return T.createElement(o,hn({},l,{forwardedRef:c}))});return i.displayName="AsyncScriptLoader("+r+")",i.propTypes={asyncScriptOnLoad:Se.func},Of(i,n)}}var fn="onloadcallback",qf="grecaptcha";function mn(){return typeof window<"u"&&window.recaptchaOptions||{}}function Gf(){var e=mn(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+fn+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+fn+"&render=explicit"}const Vi=Df(Gf,{callbackName:fn,globalName:qf,attributes:mn().nonce?{nonce:mn().nonce}:{}})(la),nt=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 32 32",className:"sass-pg-cmt-lp-spin",children:s.jsx("path",{d:"M18,4.181v2.021c4.559,0.929,8,4.97,8,9.798c0,5.514-4.486,10-10,10S6,21.514,6,16c0-4.829,3.441-8.869,8-9.798V4.181 C8.334,5.137,4,10.066,4,16c0,6.617,5.383,12,12,12s12-5.383,12-12C28,10.066,23.666,5.137,18,4.181z"})}),Ff={reportAbuseTitle:"Reportar Abuso",errorAlreadyReported:"Ya has reportado este comentario.",errorReportComment:"Error al reportar comentario",cancelButton:"Cancelar",reportButton:"Reportar",reportSuccessMessage:"¡Gracias por reportar!",reportCloseButton:"Cerrar"},jf=({isOpen:e,onClose:t,commentId:a,publication:n,username:r,CAPTCHA_KEY_V2:o,blockRecaptcha:i=!1,texts:l})=>{const c={...Ff,...l?.comentarios},d={...aa,...c.reportReasons??{}},[u,f]=T.useState("form"),[h,p]=T.useState(""),[m,g]=T.useState(""),[b,w]=T.useState(""),A=[{id:"spam",label:d.spam},{id:"inappropriate",label:d.inappropriate},{id:"hate",label:d.hate},{id:"misinformation",label:d.misinformation},{id:"terrorism",label:d.terrorism},{id:"intellectual",label:d.intellectual},{id:"bullying",label:d.bullying}],v=async()=>{if(!(!h||!a)){if(Li(document).includes(a)){g(c.errorAlreadyReported);return}f("loading"),g("");try{const N=await(await fetch("/api/comments-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:n,username:r,id:a,captchaToken:b,type:aa[h]})})).json();if(N.type==="success")wf(document,a),f("success"),setTimeout(()=>{S()},3e3);else throw new Error(N.message||c.errorReportComment)}catch(y){console.error("Error reporting comment:",y),g(y.message||c.errorReportComment),f("form")}}},S=()=>{f("form"),p(""),g(""),t()};return!e||!a||!r?null:s.jsx("div",{className:"sass-pg-cmt-rp-overlay",children:s.jsxs("div",{className:"sass-pg-cmt-rp-popup",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:S,children:s.jsx(bt,{})}),s.jsx("div",{className:"sass-pg-cmt-rp-title",children:c.reportAbuseTitle}),u==="loading"&&s.jsx("div",{className:"sass-pg-cmt-rp-loadingContainer",children:s.jsx(nt,{})}),u==="form"||u==="loading"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sass-pg-cmt-rp-optionsContainer",children:A.map(y=>s.jsxs("label",{className:"sass-pg-cmt-rp-option",children:[s.jsx("input",{type:"radio",name:"reportReason",value:y.id,checked:h===y.id,onChange:N=>p(N.target.value),className:"sass-pg-cmt-rp-radioInput"}),s.jsx("span",{className:"sass-pg-cmt-rp-radioCustom"}),s.jsx("span",{className:"sass-pg-cmt-rp-optionLabel",children:y.label})]},y.id))}),m&&s.jsx("div",{className:"sass-pg-cmt-rp-errorMessage",children:m}),!i&&s.jsx(Vi,{sitekey:o,theme:"light",size:"normal",onChange:y=>w(y??""),onExpired:()=>w("")}),s.jsxs("div",{className:"sass-pg-cmt-rp-buttons",children:[s.jsx("button",{onClick:S,className:"sass-pg-cmt-rp-cancelButton",children:c.cancelButton}),s.jsx("button",{onClick:v,disabled:!h,className:"sass-pg-cmt-rp-reportButton",children:c.reportButton})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"sass-pg-cmt-rp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-rp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsx("p",{className:"sass-pg-cmt-rp-successMessage",children:c.reportSuccessMessage})]}),s.jsx("div",{className:"sass-pg-cmt-rp-buttons",children:s.jsx("button",{onClick:S,className:["sass-pg-cmt-rp-closeButton","sass-pg-cmt-rp-buttonAlone"].join(" "),children:c.reportCloseButton})})]})]})})};function Hf(e){const t=/^\[\[([^\]]+)\]\]/,a=e.match(t);return a?{user:{username:a[1],firstname:a[1],lastname:""},text:e.replace("[["+a[1]+"]]","")}:{user:!1,text:e}}function ca(e){const t=e.comments.map(a=>{if(a.user)return{...a,user:a.user,text:a.text,reply:a.reply?ca({comments:a.reply}).comments:a.reply};const{user:n,text:r}=Hf(a.text);return{...a,user:n||!1,text:r,reply:a.reply?ca({comments:a.reply}).comments:a.reply}});return{...e,comments:t}}async function da({publication:e,path:t,size:a=5,sizereply:n=2,id:r,lastid:o,state:i="5,6",apiToken:l,API_ENV:c}){const{PUBLIC_ENV:d}=c;if(d==="prod"){const u=await zi({publication:e,path:t,size:a,sizereply:n,id:r,lastid:o,state:i,apiToken:l,API_ENV:c});return ca(u[0])}else{const u=await fetch(`/api/comments-get?publication=${e}&path=${t}&size=${a}&sizereply=${n}&lastid=${o}`);if(!u.ok)throw new Error(`Error al obtener comentarios: ${u.status}`);const f=await u.json();return ca(f.data[0])}}async function zi({publication:e,path:t,size:a=5,sizereply:n=2,id:r,lastid:o,state:i="5,6",apiToken:l,API_ENV:c}){if(!e||!t)throw new Error("Missing required parameters: publication and path");if(typeof e!="string"||typeof t!="string")throw new Error("Invalid input types for publication or path");if(!l)throw new Error("Missing CMS API token");const{PUBLIC_ENV:d,PUBLIC_API_HOST:u="dummy",PUBLIC_API_PATH:f,PUBLIC_API_PATH_VERSION:h}=c,p=parseInt(String(a),10),m=parseInt(String(n),10);if(isNaN(p)||p<=0)throw new Error("Invalid size parameter");if(isNaN(m)||m<0)throw new Error("Invalid sizereply parameter");const g=d!=="prod"?`${u}${f}`:"",b=new URLSearchParams({publication:e,path:t,size:p.toString(),sizereply:m.toString(),state:i});r&&b.append("id",r),o&&b.append("lastid",o);const w=`${g}${h}/newcomments/get?${b.toString()}`;try{const{data:A}=await re.get(w,{headers:{"x-api-token":l,"Cache-Control":"max-age=0, no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"}});if(!A)throw new Error("No comments data received");return A.data||A||[]}catch(A){if(console.error("Error fetching comments:",A),re.isAxiosError(A)){const v=A.response?.status,S=A.response?.data;throw v===404?new Error("Comments not found"):v===403?new Error("Access forbidden - check API token"):v===401?new Error("Unauthorized - invalid API token"):v===500?new Error("Internal server error from CMS"):new Error(S?.error||S?.message||`HTTP ${v}: Failed to fetch comments`)}throw A}}const Vf=(e,t)=>{const[a,n]=T.useState(void 0),{PUBLIC_PUBLICATION_ID:r}=t,o=r;return T.useEffect(()=>{if(a)return;(async()=>{const{PUBLIC_X_SECURITY_TOKEN:l}=t;try{const c=await da({publication:o,path:e??"",size:5,sizereply:2,id:void 0,lastid:void 0,state:"5,6",apiToken:l,API_ENV:t});n(c??[])}catch{n({comments:[],morecomment:!1})}})()},[a]),{comments:a,setComments:n}},$i=({username:e,date:t,DATE_CONFIG:a})=>s.jsxs("div",{className:"comment-header su-flex su-items-center su-relative su-flex-wrap",children:[s.jsx("span",{className:"comment-username su-font-bold su-truncate",children:e}),s.jsx("span",{className:"comment-header-dot",children:"•"}),s.jsx("time",{className:"comment-date su-truncate",dateTime:Ie(Number(t),a?.DATE_TIMEZONE??"")||void 0,...je(Number(t),void 0,"note"),children:bf(Te(Number(t),a))})]}),Qi=({user:e})=>s.jsx("div",{className:"comment-avatar su-flex-center su-rounded-full su-font-bold su-overflow-hidden",children:e.picture?s.jsx("img",{className:"comment-avatar-img su-h-full",src:e.picture,alt:e.username}):e.firstname.charAt(0).toUpperCase()}),Wi=({isReply:e=!1,onReply:t,onFlag:a})=>s.jsxs("div",{className:"comment-actions su-flex",children:[!e&&t&&s.jsx("button",{onClick:t,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M9.976 9V5l-6.983 7 6.983 7v-4.1c4.988 0 8.48 1.6 10.973 5.1-.997-5-3.99-10-10.973-11Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M0 0h23.942v24H0z"})})})]})}),s.jsx("button",{onClick:a,className:"comment-action-btn su-flex su-items-center su-gap-1 su-bg-transparent su-border-none",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",children:[s.jsx("g",{clipPath:"url(#a)",children:s.jsx("path",{fill:"#4D4E4E",d:"M20.133 2h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm0 14H5.303l-1.17 1.17V4h16v12Zm-9-11h2v6h-2V5Zm0 8h2v2h-2v-2Z"})}),s.jsx("defs",{children:s.jsx("clipPath",{id:"a",children:s.jsx("path",{fill:"#fff",d:"M.133 0h24v24h-24z"})})})]})})]}),zf={commentInputLabel:"Comentario",commentInputPlaceholder:"Ingresa un comentario"},pn=({commentRef:e,captchaToken:t="",setIsDisabled:a,API_ENV:n,texts:r})=>{const o={...zf,...r?.comentarios};return T.useEffect(()=>{const i=e.current;if(!i)return;const l=()=>{const d=i.value.length;i.parentElement&&(i.parentElement.dataset.text=`${d}/${Xe}`),i.classList.toggle("over-limit",d>Xe),a(!na(e,t,n).boolean)};return i.addEventListener("input",l),l(),()=>i.removeEventListener("input",l)},[e,t,a]),s.jsxs("div",{className:"su-relative",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:o.commentInputLabel}),s.jsx("textarea",{className:"su-w-full su-border-none su-outline-none",ref:e,name:"comment",placeholder:o.commentInputPlaceholder,rows:2})]})},gn=({commentRef:e,captchaToken:t="",setCaptchaToken:a,children:n,API_ENV:r})=>{const o=na(e,t,r);return s.jsxs("div",{className:"form-actions su-flex-between",children:[!xe(r)&&s.jsx(Vi,{sitekey:r.CAPTCHA_KEY_V2??"",theme:"light",size:"normal",onChange:i=>a(i??""),onExpired:()=>a("")}),s.jsxs("div",{className:"submit-zone su-relative su-flex su-flex-col su-items-end",children:[n,!o.boolean&&s.jsx("p",{className:"submit-warning su-hidden su-font-normal su-p-0",children:o.text})]})]})},$f={anonimusContinueButton:"Continuar de forma anónima",anonimusDividerOr:"o",anonimusImageAlt:"Imagen incognito",popupCloseAriaLabel:"Cerrar"},Qf={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con GOOGLE",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function Wf({onClose:e,handleGoogleLogin:t,icon:a,texts:n,API_ENV:r}){const o={...Qf,...$f,...n?.comentarios},i=de(r),l=f=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=i+"/auth/login"+(f?"#forgot":""))},c=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=i+"/auth/register")},{PUBLIC_ASSETS_URL:d}=r,u=(d&&d!=="false"?d:"")+"/versions/images/anonimus-img.png";return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:f=>{const h=f.target;h&&h.id==="pop-overlay"&&e()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:a?s.jsx("img",{src:a,alt:"Logo"}):null}),s.jsx("button",{onClick:()=>{e()},className:"sass-pg-cmt-lp-close","aria-label":o.popupCloseAriaLabel,children:s.jsx(bt,{})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-anonimusWrapper",children:[s.jsx("img",{className:"sass-pg-cmt-lp-anonimusImage",src:u,alt:o.anonimusImageAlt}),s.jsx("button",{onClick:()=>{e(!0)},className:"sass-pg-cmt-lp-anonimus",children:s.jsx("span",{children:o.anonimusContinueButton})})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:o.anonimusDividerOr})}),s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",onClick:()=>{l(!1)},children:o.loginButtonText}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.noAccountText,s.jsx("button",{type:"button",onClick:c,children:o.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:()=>{l(!0)},children:o.forgotPasswordText})]})})}const Yf={submitCommentButton:"Enviar Comentario"},bn=({onClick:e,isDisabled:t,API_ENV:a,icon:n,handleGoogleLogin:r,showAlert:o,texts:i})=>{const l={...Yf,...i?.comentarios},[c,d]=T.useState(!1),[u,f]=T.useState(!1),[h,p]=T.useState(!1);T.useEffect(()=>{let g=null;return c&&(g=setTimeout(()=>{d(!1)},2400)),()=>{g&&clearTimeout(g)}},[c]),T.useEffect(()=>{if(!u||!a.CONFIG_commentsV2||!o||!document)return;const g=document.getElementById("comment-button");if(!g)return;const b=g.closest(".comment-form"),w=b?.querySelector('input[name="username"]'),A=b?.querySelector('textarea[name="comment"]'),v=b?.querySelector("textarea.g-recaptcha-response")??document.querySelector("#g-recaptcha-response");w?.value?.trim()&&A?.value?.trim()&&(!xe(a)&&!v?.value?.trim()||g.click())});const m=ne("/Success.gif",a.PUBLIC_ASSETS_URL);return c?s.jsx("div",{className:"success-gif-container su-flex-center su-relative",children:s.jsx("img",{className:"success-gif su-absolute",src:m})}):s.jsxs(s.Fragment,{children:[h&&a.CONFIG_commentsV2&&o&&s.jsx(Wf,{API_ENV:a,icon:n,handleGoogleLogin:r,texts:i,onClose:g=>{g&&f(!0),p(!1)}}),s.jsxs("button",{type:"button",onClick:async g=>{if(!u&&a.CONFIG_commentsV2&&o){p(!0),console.log("open popup");return}await e(g)&&(a.CONFIG_commentsV2&&o&&f(!1),d(!0))},id:"comment-button",className:`submit-btn su-bg-transparent su-font-bold ${t?"disabled":"active"}`,children:[l.submitCommentButton,s.jsx("svg",{style:{minWidth:16},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1.39258 8.99997H12.5626L7.68258 13.88C7.29258 14.27 7.29258 14.91 7.68258 15.3C8.07258 15.69 8.70258 15.69 9.09258 15.3L15.6826 8.70997C16.0726 8.31997 16.0726 7.68997 15.6826 7.29997L9.10258 0.699971C8.71258 0.309971 8.08258 0.309971 7.69258 0.699971C7.30258 1.08997 7.30258 1.71997 7.69258 2.10997L12.5626 6.99997H1.39258C0.842578 6.99997 0.392578 7.44997 0.392578 7.99997C0.392578 8.54997 0.842578 8.99997 1.39258 8.99997Z",fill:"currentColor"})})]})]})},wn=async({path:e,ref:t,captchaToken:a,button:n,user:r,id:o,addComment:i,API_ENV:l,anonimusUser:c})=>{const d=t.current?.value||"",{PUBLIC_PUBLICATION_ID:u}=l,f=u;if(console.log("check",r,c),!na(t,a,l).boolean||!r&&!c){console.log("warn");const p=n.nextElementSibling;return p&&(p.style.display="block"),!1}if(!r&&!c)return;const h=r?d:"[["+c+"]] "+d;try{const p=Date.now(),m=await fetch("/api/comments-add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publication:f,path:e,id:o,username:r?r.username:!1,comment:h,recaptchaResponse:a})});let g=null;try{g=await m.json()}catch(S){console.error("Error parsing JSON response:",S)}if(!m.ok)throw new Error(`Error al enviar comentario: ${g?.message} status: ${m.status}`);const b=Date.now(),w=Math.max(0,2400+Math.abs(b-p)),A=r||{username:c,firstname:c},v={username:A.username,firstname:A.firstname,...A.lastname&&{lastname:A.lastname},...A.picture&&{picture:A.picture}};return i({id:b.toString(),text:d,user:v,date:{time:Date.now()},reply:[]}),t.current&&(t.current.value=""),w}catch(p){return console.error("Error enviando comentario:",p),alert(p.message||"Error al enviar el comentario."),!1}},Kf=({replyingTo:e,commentRef:t,user:a,path:n,addReply:r,closeForm:o,API_ENV:i,texts:l})=>{const[c,d]=T.useState(!0),[u,f]=T.useState(""),h=()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Xe}`),d(!0),o()};return s.jsxs("div",{className:"comment-form reply-form su-p-8 su-relative",children:[s.jsx("button",{className:"close-reply-form su-flex su-absolute su-p-0 su-bg-transparent su-border-none",onClick:h,children:s.jsx(bt,{})}),s.jsx(pn,{commentRef:t,captchaToken:u,setIsDisabled:d,API_ENV:i,texts:l}),s.jsx(gn,{commentRef:t,captchaToken:u,setCaptchaToken:f,API_ENV:i,children:s.jsx(bn,{onClick:async p=>{if(c)return;const m=await wn({path:n,ref:t,captchaToken:u,button:p.currentTarget,user:a,id:e,addComment:r,API_ENV:i});return m&&typeof m=="number"?(setTimeout(()=>{h()},m),!0):!1},isDisabled:c,API_ENV:i,texts:l})})]})},Jf={replyingToLabel:"Respondiendo a"},Zf=({reply:e,replyingTo:t,user:a,onFlag:n,DATE_CONFIG:r,texts:o})=>{const i={...Jf,...o?.comentarios},l=e.text;let c=`${Re.firstname} ${Re.lastname??""}`,d=Re.username;return e.user&&(c=`${e.user.firstname} ${e.user.lastname??""}`,d=e.user.username),s.jsx("div",{className:"comment-item reply",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative",children:[s.jsx(Qi,{user:e.user?e.user:Re}),s.jsxs("div",{style:{flex:1},children:[s.jsx($i,{username:c,date:e.date.time,DATE_CONFIG:r}),s.jsxs("div",{className:"comment-reply-to",children:[i.replyingToLabel," ",s.jsx("strong",{children:t})]}),s.jsx("p",{className:"comment-text su-font-normal",children:l}),a?.username.toLowerCase()!==d.toLowerCase()&&s.jsx(Wi,{isReply:!0,onFlag:()=>n(e.id)})]})]})})},Xf={moreRepliesButton:"Más Respuestas"},Rf=({comment:e,replyingTo:t,path:a,user:n,handleReplyingTo:r,onFlag:o,API_ENV:i,texts:l})=>{const c={...Xf,...l?.comentarios},d={morereply:e.morereply??!1,reply:e.reply?e.reply:[]},[u,f]=T.useState(d),[h,p]=T.useState(!1),{PUBLIC_PUBLICATION_ID:m,PUBLIC_X_SECURITY_TOKEN:g}=i,b=e.text,w=T.useRef(null);let A=`${Re.firstname} ${Re.lastname??""}`,v=Re.username;e.user&&(A=`${e.user.firstname} ${e.user.lastname??""}`,v=e.user.username);const S=y=>{f({morereply:u.morereply,reply:[y,...u.reply]})};return s.jsx("div",{className:"comment-item",children:s.jsxs("div",{className:"comment-header-container su-flex su-relative","data-hasreplies":u.reply.length>0?"true":"false",children:[s.jsx(Qi,{user:e.user?e.user:Re}),s.jsxs("div",{style:{flex:1},children:[s.jsx($i,{username:A,date:e.date.time,DATE_CONFIG:i}),s.jsx("p",{className:"comment-text su-font-normal",children:b}),n?.username.toLowerCase()!==v.toLowerCase()&&s.jsx(Wi,{onReply:()=>r(e.id),onFlag:()=>o(e.id)}),t===e.id&&n&&s.jsx(Kf,{replyingTo:t,commentRef:w,addReply:S,user:n,path:a,API_ENV:i,closeForm:()=>r(""),texts:l}),u.reply.length>0&&s.jsxs("div",{className:"comment-replies",children:[u.reply.map(y=>s.jsx(Zf,{user:n,reply:y,replyingTo:A,onFlag:o,DATE_CONFIG:i,texts:l},y.id)),h?s.jsx("div",{style:{marginLeft:"4rem",position:"relative"},children:s.jsx(nt,{})}):u.morereply&&s.jsx("button",{className:"comment-replies-button reply-button su-flex-center su-rounded-full su-border-none su-relative",onClick:async()=>{const y=u.reply[u.reply.length-1]?.id;p(!0);try{const k=await da({publication:m??"",path:a??"",size:2,sizereply:2,id:e.id,lastid:y,state:"5,6",apiToken:g??"",API_ENV:i});p(!1),f({morereply:k.morecomment,reply:[...u.reply,...k.comments]})}catch(N){throw p(!1),new Error(`Error al obtener comentarios: ${N}`)}},children:c.moreRepliesButton})]})]})]})})},em=({commentRef:e,user:t,path:a,addComment:n,API_ENV:r,texts:o})=>{const[i,l]=T.useState(!0),[c,d]=T.useState("");return s.jsxs("div",{className:"comment-form su-p-8 su-relative",children:[s.jsx(pn,{commentRef:e,captchaToken:c,setIsDisabled:l,API_ENV:r,texts:o}),s.jsx(gn,{API_ENV:r,commentRef:e,captchaToken:c,setCaptchaToken:d,children:s.jsx(bn,{onClick:async u=>{if(i)return;const f=await wn({path:a,ref:e,captchaToken:c,button:u.currentTarget,user:t,addComment:n,API_ENV:r});return f&&typeof f=="number"?(e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Xe}`),l(!0),setTimeout(()=>{e.current?.parentElement&&(e.current.parentElement.dataset.text=`0/${Xe}`),l(!0)},f),!0):!1},isDisabled:i,API_ENV:r,texts:o})})]})},tm={usernameInputLabel:"Nombre",usernameInputPlaceholder:"Ingresa tu nombre"},sm=({usernameRef:e,texts:t})=>{const a={...tm,...t?.comentarios};return s.jsxs("div",{className:"comment-username su-font-bold su-truncate",children:[s.jsx("label",{className:"su-block su-font-normal comment-input-label",children:a.usernameInputLabel}),s.jsx("input",{ref:e,name:"username",className:"su-w-full su-border-none su-outline-none",placeholder:a.usernameInputPlaceholder})]})},am=({usernameRef:e,commentRef:t,path:a,icon:n,handleGoogleLogin:r,addComment:o,API_ENV:i,texts:l})=>{const[c,d]=T.useState(!0),[u,f]=T.useState(""),h=async p=>{if(c){console.log("error");return}if(!na(t,u,i).boolean){console.log("invalidForm");return}const m=e.current.value,g=await wn({path:a,ref:t,captchaToken:u,button:p.currentTarget,user:void 0,addComment:o,API_ENV:i,anonimusUser:m});return f(""),g&&typeof g=="number"?(t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Xe}`),d(!0),setTimeout(()=>{t.current?.parentElement&&(t.current.parentElement.dataset.text=`0/${Xe}`),d(!0)},g),!0):!1};return s.jsx(s.Fragment,{children:s.jsxs("div",{className:"comment-form anoninus-form su-p-8 su-relative",children:[s.jsx(sm,{usernameRef:e,texts:l}),s.jsx(pn,{commentRef:t,captchaToken:u,setIsDisabled:d,API_ENV:i,texts:l}),s.jsx(gn,{API_ENV:i,commentRef:t,captchaToken:u,setCaptchaToken:f,children:s.jsx(bn,{onClick:h,isDisabled:c,API_ENV:i,handleGoogleLogin:r,icon:n,showAlert:!0,texts:l})})]})})},nm={commentsSectionTitle:"COMENTARIOS",commentHeaderMessageEmpty:"Se el primero en compartir tu opinión de este artículo.",commentHeaderMessageWithComments:"Comparte tu opinión de este artículo.",loadMoreButton:"Más",moreRepliesButton:"Más Respuestas",anonimusPromptPrefix:"¿Querés debatir con otros lectores? Comentá ahora de forma anónima o ",anonimusPromptLinkText:"INICIA SESIÓN AQUÍ",anonimusPromptSuffix:" para responder a otros usuarios y ser parte activa de nuestra comunidad."},rm=({isAuthenticated:e,path:t,user:a,handleLogout:n,icon:r,handleGoogleLogin:o,API_ENV:i,texts:l})=>{const c={...nm,...l?.comentarios},{PUBLIC_PUBLICATION_ID:d,PUBLIC_X_SECURITY_TOKEN:u}=i,f=d??"",h=t.replaceAll("/","|"),[p,m]=T.useState(void 0),[g,b]=T.useState(""),{comments:w,setComments:A}=Vf(h,i),[v,S]=T.useState(!1),y=T.useRef(null),N=T.useRef(null),k=P=>{b(g===P?"":P)},O=P=>{A(w?{...w,comments:[P,...w.comments??[]]}:void 0)},$=P=>{m(P)},q=async()=>{if(!w||!w.morecomment||w.comments.length===0)return;const P=w.comments[w.comments.length-1];if(!P)return;S(!0);const U=P.id;try{const H=await da({publication:f,path:h??"",size:5,sizereply:2,id:void 0,lastid:U,state:"5,6",apiToken:u,API_ENV:i});A({morecomment:H.morecomment??!1,comments:[...w.comments,...H.comments]}),S(!1)}catch(H){throw S(!1),new Error(`Error al obtener comentarios: ${H}`)}},B=w?.comments&&w.comments.length>0,G=B?c.commentHeaderMessageWithComments:c.commentHeaderMessageEmpty,z=s.jsx("div",{style:{display:"flex",width:"100%",justifyContent:"center"},children:s.jsx(nt,{})}),_=()=>{!window||!window.location||(document.cookie=`redirect_after_login_1=${window.location.pathname}; path=/; max-age=10000`,window.location.pathname=de(i)+"/auth/login")};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-container",children:s.jsx(he,{noHeading:!0,title:i.CONFIG_commentsV2||B||e?c.commentsSectionTitle:!1,children:s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"comments-header",children:e&&a?s.jsxs(s.Fragment,{children:[s.jsx(mf,{user:a,handleLogout:n,message:G,texts:l}),s.jsx(em,{commentRef:y,user:a,addComment:O,path:h,API_ENV:i,texts:l})]}):i.CONFIG_commentsV2?s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"anonimus-message",children:[c.anonimusPromptPrefix,s.jsx("button",{className:"su-border-none su-p-0",onClick:_,children:c.anonimusPromptLinkText}),c.anonimusPromptSuffix]}),s.jsx(am,{usernameRef:N,commentRef:y,icon:r,handleGoogleLogin:o,addComment:O,path:h,API_ENV:i,texts:l})]}):null}),w?w.comments&&w.comments.length>0?s.jsxs("div",{className:"comments-list","data-isauthenticated":`${e}`,children:[w.comments.map(P=>s.jsx(Rf,{comment:P,replyingTo:g,handleReplyingTo:k,onFlag:$,user:a??Re,path:h,API_ENV:i,texts:l},P.id)),v&&z]}):null:z,w?.morecomment&&!v&&s.jsx("button",{className:"comment-replies-button su-flex-center su-rounded-full",onClick:q,children:c.loadMoreButton})]})})}),s.jsx(jf,{username:a?.username??void 0,publication:f,commentId:p,isOpen:p!==void 0,onClose:()=>m(void 0),CAPTCHA_KEY_V2:i.CAPTCHA_KEY_V2??"",blockRecaptcha:xe(i),texts:l})]})},as=async(e,t,a)=>{if(xe(a))return Sn;if(!e)throw new Error("No action provided");if(!t)throw new Error("No site key provided");const n=window.grecaptcha;if(!n?.enterprise)throw new Error("grecaptcha not loaded");return new Promise((r,o)=>{n.enterprise.ready(async()=>{try{const i=await n.enterprise.execute(t,{action:e});if(!i)throw new Error("Captcha token no generado");r(i)}catch(i){o(i)}})})},om={GoogleButtonText:"Continuar con Google",loginButtonText:"Iniciar sesión",noAccountText:"¿Ya tenés cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",showPasswordsLabel:"Mostrar contraseñas",termsPrefix:"Al continuar, confirmo que he leído y aceptado los",termsLinkText:"Términos y Condiciones",termsSuffix:"de nuestra comunidad",createAccountButton:"Crear cuenta",verificationCodeLabel:"Código de verificación",confirmAccountButton:"Confirmar cuenta",alreadyConfirmedText:"¿Ya confirmaste antes?",successTitle:"Confirmación completa.",successMessage:"Ya eres parte de la comunidad!",passwordRuleMinLength:"La contraseña debe tener al menos 8 caracteres",passwordRuleNumber:"Usa un número",passwordRuleLowercase:"Usa una letra minúscula",passwordRuleUppercase:"Usa una letra mayúscula",passwordRuleSymbol:"Usa un símbolo",errorCompleteFields:"Complete todos los campos",errorPasswordMismatch:"Las contraseñas no coinciden",errorPasswordInvalid:"La contraseña no es válida",errorVerificationCodeRequired:"Debes ingresar el código de verificación",errorUnexpected:"Error inesperado"},ns={email:{label:"Email"},given_name:{label:"Nombre"},family_name:{label:"Apellido"},password:{label:"Contraseña"},confirmPassword:{label:"Confirmar contraseña"}};function im(e){return{email:{label:e?.email??ns.email.label,required:!0},given_name:{label:e?.given_name??ns.given_name.label,required:!0},family_name:{label:e?.family_name??ns.family_name.label,required:!0},password:{label:e?.password??ns.password.label,required:!0},confirmPassword:{label:e?.confirmPassword??ns.confirmPassword.label,required:!0}}}const We=[e=>e.length>=8,e=>/\d/.test(e),e=>/[a-z]/.test(e),e=>/[A-Z]/.test(e),e=>/[^A-Za-z0-9]/.test(e)],Yi=[{label:"La contraseña debe tener al menos 8 caracteres",test:We[0]},{label:"Usa un número",test:We[1]},{label:"Usa una letra minúscula",test:We[2]},{label:"Usa una letra mayúscula",test:We[3]},{label:"Usa un símbolo",test:We[4]}];function lm({goToLogin:e,handleGoogleLogin:t,API_ENV:a,texts:n,termsAndConditionsUrl:r}){const o={...om,...n?.comentarios},i=T.useMemo(()=>im(n?.comentarios?.registerForm),[n?.comentarios?.registerForm]),l=T.useMemo(()=>[{label:o.passwordRuleMinLength,test:We[0]},{label:o.passwordRuleNumber,test:We[1]},{label:o.passwordRuleLowercase,test:We[2]},{label:o.passwordRuleUppercase,test:We[3]},{label:o.passwordRuleSymbol,test:We[4]}],[o.passwordRuleMinLength,o.passwordRuleNumber,o.passwordRuleLowercase,o.passwordRuleUppercase,o.passwordRuleSymbol]),[c,d]=T.useState({}),[u,f]=T.useState(!1),[h,p]=T.useState(!1),[m,g]=T.useState(null),[b,w]=T.useState("register"),A=(N,k)=>{d(O=>({...O,[N]:k}))},v=async N=>{N.preventDefault(),g(null),p(!0);try{const k=Object.keys(i).filter(z=>!["username","password","confirmPassword"].includes(z)).map(z=>({Name:z,Value:c[z]}));if(k.some(z=>{if(!z.Value||z.Value.trim()==="")return!0}))return p(!1),g(o.errorCompleteFields);if(c.password!==c.confirmPassword){g(o.errorPasswordMismatch);return}const O=c.password||"";if(l.some(z=>!z.test(O))){g(o.errorPasswordInvalid);return}const q=Math.floor(Date.now()/1e3);k.push({Name:"updated_at",Value:String(q)});const B=a.PUBLIC_ENV==="local"?"token":await as("comment_register",a.CAPTCHA_KEY??"",a);if(!B)throw new Error("Captcha token no generado");const G=await fetch("/api/auth/create-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,password:c.password,userAttributes:k,token:B})});if(!G.ok){const z=await G.json().catch(()=>({}));if(z.code==="UsernameExistsException"){await fetch("/api/auth/resend-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email})}),w("confirm");return}throw new Error(z?.error||"Error al crear usuario")}w("confirm")}catch(k){console.log(k),g(k?.message||k?.error||o.errorUnexpected)}finally{p(!1)}},S=async N=>{if(N.preventDefault(),!c.confirmationCode){g(o.errorVerificationCodeRequired);return}g(null),p(!0);try{const k=await fetch("/api/auth/confirm-user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:c.email,code:c.confirmationCode})});if(!k.ok){const O=await k.json().catch(()=>({}));throw new Error(O?.error||"Error al confirmar usuario")}w("success")}catch(k){g(k?.message||o.errorUnexpected)}finally{p(!1)}},y=c.password||"";return s.jsxs(s.Fragment,{children:[b==="register"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:t,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:o.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:v,className:"sass-pg-cmt-lp-form","data-error":m?"true":"false",children:[s.jsx("ul",{className:"sass-pg-cmt-lp-formUl",children:Object.entries(i).map(([N,{label:k}])=>s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:k}),s.jsx("input",{type:N.toLowerCase().includes("password")?u?"text":"password":N==="birthdate"?"date":N==="email"?"email":N==="phone_number"?"tel":"text",name:N,value:c[N]||"",onChange:O=>A(N,O.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),N==="password"&&s.jsx("div",{className:"sass-pg-cmt-lp-passwordChecker",children:l.map((O,$)=>{const q=O.test(y);return s.jsxs("div",{className:q?"sass-pg-cmt-lp-valid":"sass-pg-cmt-lp-invalid",children:[s.jsx("div",{children:q?"✔":"○"}),s.jsx("div",{children:O.label})]},$)})}),N==="confirmPassword"&&s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordRegister",type:"checkbox",checked:u,onChange:O=>f(O.target.checked)}),s.jsx("label",{htmlFor:"showPasswordRegister",className:"sass-pg-cmt-lp-checkboxLabel",children:o.showPasswordsLabel})]})]},N))}),m&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:m}),s.jsxs("p",{className:"sass-pg-cmt-lp-terms",children:[o.termsPrefix," ",s.jsx("a",{href:r??"/pages/politicas-de-privacidad.html",target:"_blank",children:o.termsLinkText})," ",o.termsSuffix]}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:h,children:h?s.jsx(nt,{}):o.createAccountButton})]})]}),b==="confirm"&&s.jsxs("form",{onSubmit:S,className:"sass-pg-cmt-lp-form","data-error":m?"true":"false",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:o.verificationCodeLabel}),s.jsx("input",{type:"text",name:"confirmationCode",value:c.confirmationCode||"",onChange:N=>A("confirmationCode",N.target.value),className:"sass-pg-cmt-lp-input",required:!0})]}),m&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:m}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:h,children:h?s.jsx(nt,{}):o.confirmAccountButton}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.alreadyConfirmedText,s.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]}),b==="success"&&s.jsxs("form",{className:"sass-pg-cmt-lp-form",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-successContainer",children:[s.jsx("div",{className:"sass-pg-cmt-lp-thumbsUp",children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:132,height:120,fill:"none",children:s.jsx("path",{fill:"#0073BE",d:"M119.249 42.357H81.915l5.621-27.039.177-1.893a8.906 8.906 0 0 0-2.603-6.272L78.838.941 39.907 39.93c-2.19 2.13-3.491 5.089-3.491 8.343v59.167c0 6.508 5.325 11.833 11.833 11.833h53.25c4.911 0 9.112-2.958 10.887-7.218l17.868-41.713c.533-1.36.829-2.78.829-4.32V54.192c0-6.509-5.325-11.834-11.834-11.834Zm0 23.667-17.75 41.417h-53.25V48.274l25.679-25.678L67.36 54.19h51.889v11.833ZM.916 48.274h23.667v71H.916v-71Z"})})}),s.jsxs("div",{className:"sass-pg-cmt-lp-successMessage",children:[s.jsx("p",{children:o.successTitle}),s.jsx("p",{children:o.successMessage})]})]}),s.jsx("button",{onClick:e,className:"sass-pg-cmt-lp-primary",children:o.loginButtonText})]}),b==="register"&&s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[o.alreadyHasAccountText,s.jsx("button",{type:"button",onClick:e,children:o.loginButtonText})]})]})}const cm={title:"",button:"",commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",email:"Email",password:"Contraseña",showPassword:"Mostrar contraseña",loginButtonText:"Iniciar Sesión",backButton:"Volver",GoogleButtonText:"Continuar con Google",noAccountText:"¿No tienes cuenta?",alreadyHasAccountText:"¿Ya tienes cuenta?",registerButtonText:"Registrate",forgotPasswordText:"Olvidé mi contraseña",forgotMessage:"Ingrese su dirección de correo electrónico. Le enviaremos un mensaje con un código para restablecer la contraseña.",sendCodeButton:"Enviar código",changePasswordMessage:"Hemos enviado un código de restablecimiento de contraseña en un mensaje de Correo electrónico a {{email}}. Ingrese el código y la contraseña nueva.",verificationCodeLabel:"Código de verificación",newPasswordLabel:"Nueva contraseña",confirmPasswordLabel:"Confirmar contraseña",showPasswordsLabel:"Mostrar contraseñas",changePasswordButton:"Cambiar contraseña",feedbackSuccessMessage:"La contraseña fue cambiada con éxito"};function dm({onClose:e,checkAuth:t,goToRegister:a,handleGoogleLogin:n,API_ENV:r,texts:o}){const i={...cm,...o?.comentarios},[l,c]=T.useState("login"),[d,u]=T.useState(""),[f,h]=T.useState(""),[p,m]=T.useState(""),[g,b]=T.useState(""),[w,A]=T.useState(""),[v,S]=T.useState(!1),[y,N]=T.useState(!1),[k,O]=T.useState(null),$=async G=>{if(!y){G.preventDefault(),O(null),N(!0);try{const z=r.PUBLIC_ENV==="local"?"token":await as("comment_login",r.CAPTCHA_KEY||"",r);if(!z)throw new Error("Captcha token no generado");const _=await fetch("/api/auth/login-password",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:d,password:f,token:z})});if(!_.ok){const P=await _.json().catch(()=>({}));throw new Error(P?.error||"Ha ocurrido un error")}e(),await t()}catch(z){O(z?.message||"Error inesperado")}finally{N(!1)}}},q=async G=>{if(!y){G.preventDefault(),O(null),N(!0);try{const z=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d})});if(!z.ok){const _=await z.json().catch(()=>({}));throw new Error(_?.error||"Error al enviar código")}h(""),c("changePassword")}catch(z){O(z?.message||"Error inesperado")}finally{N(!1)}}},B=async G=>{if(y)return;if(G.preventDefault(),g!==w){O("Las contraseñas no coinciden");return}if(Yi.some(_=>!_.test(g))){O("La contraseña no cumple con los requisitos");return}O(null),N(!0);try{const _=await fetch("/api/auth/confirm-forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d,code:p,newPassword:g})});if(!_.ok){const P=await _.json().catch(()=>({}));throw new Error(P?.error||"Error al cambiar contraseña")}c("feedback")}catch(_){O(_?.message||"Error inesperado")}finally{N(!1)}};return s.jsxs(s.Fragment,{children:[l==="login"&&s.jsx(um,{email:d,password:f,showPassword:v,loading:y,error:k,setEmail:u,setPassword:h,setShowPassword:S,onSubmit:$,onForgot:()=>{O(null),c("forgot")},onRegister:a,handleGoogleLogin:n,t:i}),l==="forgot"&&s.jsx(hm,{email:d,setEmail:u,loading:y,error:k,onSubmit:q,onBack:()=>{O(null),c("login")},t:i}),l==="changePassword"&&s.jsx(fm,{email:d,confirmationCode:p,newPassword:g,confirmNewPassword:w,showPassword:v,loading:y,error:k,setConfirmationCode:m,setNewPassword:b,setConfirmNewPassword:A,setShowPassword:S,onSubmit:B,onBack:()=>{O(null),c("forgot")},t:i}),l==="feedback"&&s.jsx(mm,{onBackToLogin:()=>{O(null),c("login")},t:i})]})}function um({email:e,password:t,showPassword:a,loading:n,error:r,setEmail:o,setPassword:i,setShowPassword:l,onSubmit:c,onForgot:d,onRegister:u,handleGoogleLogin:f,t:h}){return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:f,className:"sass-pg-cmt-lp-google",children:[s.jsx("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",className:"sass-pg-cmt-lp-googleIcon"}),s.jsx("span",{children:h.GoogleButtonText})]}),s.jsx("div",{className:"sass-pg-cmt-lp-divider",children:s.jsx("span",{children:"o"})}),s.jsxs("form",{onSubmit:c,className:"sass-pg-cmt-lp-form","data-error":r?"true":"false",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:h.email}),s.jsx("input",{type:"email",value:e,onChange:p=>o(p.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:h.password}),s.jsx("input",{type:a?"text":"password",value:t,onChange:p=>i(p.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordLogin",type:"checkbox",checked:a,onChange:p=>l(p.target.checked)}),s.jsx("label",{htmlFor:"showPasswordLogin",className:"sass-pg-cmt-lp-checkboxLabel",children:h.showPassword})]})]}),r&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:r}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:n,children:n?s.jsx(nt,{}):h.loginButtonText})]}),s.jsxs("p",{className:"sass-pg-cmt-lp-switch",children:[h.noAccountText,s.jsx("button",{type:"button",onClick:u,children:h.registerButtonText})]}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-forgotPassword",onClick:d,children:h.forgotPasswordText})]})}function hm({email:e,setEmail:t,loading:a,error:n,onSubmit:r,onBack:o,t:i}){return s.jsxs("form",{onSubmit:r,className:"sass-pg-cmt-lp-form","data-error":n?"true":"false",children:[s.jsx("p",{className:"sass-pg-cmt-lp-message",children:i.forgotMessage}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:i.email}),s.jsx("input",{type:"email",value:e,name:"email",onChange:l=>t(l.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),n&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:n}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",disabled:a,children:a?s.jsx(nt,{}):i.sendCodeButton}),s.jsx("p",{className:"sass-pg-cmt-lp-switch",children:s.jsx("button",{type:"button",onClick:o,children:i.backButton})})]})}function fm({email:e,confirmationCode:t,newPassword:a,confirmNewPassword:n,showPassword:r,loading:o,error:i,setConfirmationCode:l,setNewPassword:c,setConfirmNewPassword:d,setShowPassword:u,onSubmit:f,onBack:h,t:p}){const m=p.changePasswordMessage.replace("{{email}}",Af(e));return s.jsxs("form",{onSubmit:f,className:"sass-pg-cmt-lp-form","data-error":i?"true":"false",children:[s.jsx("p",{className:"sass-pg-cmt-lp-message",children:m}),s.jsxs("ul",{className:"sass-pg-cmt-lp-formUl",children:[s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.verificationCodeLabel}),s.jsx("input",{type:"text",value:t,onChange:g=>l(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:""})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.newPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:a,onChange:g=>c(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:"",name:"password"}),s.jsx("div",{className:"sass-pg-cmt-lp-passwordChecker",children:Yi.map((g,b)=>{const w=g.test(a);return s.jsxs("div",{className:w?"sass-pg-cmt-lp-valid":"sass-pg-cmt-lp-invalid",children:[s.jsx("div",{children:w?"✔":"○"}),s.jsx("div",{children:g.label})]},b)})})]}),s.jsxs("div",{className:"sass-pg-cmt-lp-field",children:[s.jsx("label",{className:"sass-pg-cmt-lp-label",children:p.confirmPasswordLabel}),s.jsx("input",{type:r?"text":"password",value:n,onChange:g=>d(g.target.value),className:"sass-pg-cmt-lp-input",placeholder:""}),s.jsxs("div",{className:"sass-pg-cmt-lp-checkboxRow",children:[s.jsx("input",{id:"showPasswordForgot",type:"checkbox",checked:r,onChange:g=>u(g.target.checked)}),s.jsx("label",{htmlFor:"showPasswordForgot",className:"sass-pg-cmt-lp-checkboxLabel",children:p.showPasswordsLabel})]})]})]}),i&&s.jsx("p",{className:"sass-pg-cmt-lp-error",children:i}),s.jsx("button",{type:"submit",className:"sass-pg-cmt-lp-primary",style:{maxWidth:o?"revert-layer":"fit-content"},disabled:o,children:o?s.jsx(nt,{}):p.changePasswordButton}),s.jsx("p",{className:"sass-pg-cmt-lp-switch",children:s.jsx("button",{type:"button",onClick:h,children:p.backButton})})]})}function mm({onBackToLogin:e,t}){return s.jsxs("div",{className:"sass-pg-cmt-lp-form",children:[s.jsx("p",{className:"sass-pg-cmt-lp-success",children:t.feedbackSuccessMessage}),s.jsx("button",{type:"button",className:"sass-pg-cmt-lp-primary",onClick:e,children:t.loginButtonText})]})}function pm({handleGoogleLogin:e,onClose:t,checkAuth:a,icon:n,API_ENV:r,texts:o,termsAndConditionsUrl:i}){const[l,c]=T.useState("login");return s.jsx("div",{className:"sass-pg-cmt-lp-overlay",role:"dialog","aria-modal":"true",id:"pop-overlay",onClick:d=>{const u=d.target;u&&u.id==="pop-overlay"&&t()},children:s.jsxs("div",{className:"sass-pg-cmt-lp-card",children:[s.jsxs("header",{className:"sass-pg-cmt-lp-header",children:[s.jsx("div",{className:"sass-pg-cmt-lp-logo",children:n?s.jsx("img",{src:n,alt:"Logo"}):null}),s.jsx("button",{onClick:t,className:"sass-pg-cmt-lp-close","aria-label":"Cerrar",children:s.jsx(bt,{})})]}),l==="login"&&s.jsx(dm,{onClose:t,checkAuth:a,handleGoogleLogin:e,goToRegister:()=>c("register"),API_ENV:r,texts:o}),l==="register"&&s.jsx(lm,{handleGoogleLogin:e,goToLogin:()=>c("login"),API_ENV:r,texts:o,termsAndConditionsUrl:i})]})})}const gm={commentPromptMessage:"Súmate a la comunidad para dejar tu comentario",loginButtonText:"Iniciar Sesión"};function bm({isAuthenticated:e,setIsAuthenticated:t,loginUrl:a,user:n,path:r,checkAuth:o,icon:i,API_ENV:l,texts:c,termsAndConditionsUrl:d}){const[u,f]=T.useState(!1),h={...gm,...c?.comentarios},p=h.loginButtonText,m=async()=>{if(l.PUBLIC_ENV==="local")await fetch("/api/auth/logout",{method:"GET",credentials:"include"}),t(!1);else{const w=window.location.pathname;window.location.href=`${window.location.origin}/api/auth/logout?redirect=${encodeURIComponent(w)}`}},g=async w=>{w.preventDefault(),a&&f(!0)},b=async()=>{if(l.PUBLIC_ENV==="local"){await fetch("/api/auth/debug-login",{method:"GET",credentials:"include"}),localStorage.setItem("cognito-login","success:"+Date.now()),o();return}if(!a)return;const w=encodeURIComponent(window.location.pathname);window.location.href=`/api/auth/login?redirect=${w}`};return s.jsxs(s.Fragment,{children:[u&&!l.CONFIG_commentsV2&&s.jsx(pm,{loginUrl:a,icon:i,checkAuth:o,handleGoogleLogin:b,API_ENV:l,texts:c,termsAndConditionsUrl:d,onClose:()=>{f(!1)}}),!e&&!l.CONFIG_commentsV2&&s.jsxs("div",{className:"auth-container",children:[s.jsx("p",{children:h.commentPromptMessage}),s.jsx("a",{href:a,onClick:g,className:"login-button",children:p})]}),s.jsx(rm,{isAuthenticated:e,handleLogout:m,handleGoogleLogin:b,icon:i,path:r,user:e?n:void 0,API_ENV:l,texts:c})]})}function wm({isVisible:e,path:t,icon:a,API_ENV:n,texts:r}){const[o,i]=T.useState(null),[l,c]=T.useState(null),d=n?.COGNITO_AUTH_PREFIX??"ASTRO_",u=T.useCallback(async()=>{if(e){if(document.cookie.search(d+"IS_AUTH=true")===-1){i(!1),c(null);return}try{const g=await(await fetch("/api/auth/user",{credentials:"include"})).json();i(g.isAuthenticated??!1),c(g.user??null),document.cookie="redirect_after_login_1=; Max-Age=0; path=/"}catch(m){console.error("Error checking auth:",m),i(!1),c(null)}}},[e,d]);T.useEffect(()=>{u()},[u,e]),T.useEffect(()=>{if(!l||!e||typeof window>"u")return;const m=window;if(typeof m!="function"){console.warn("gtag no está disponible todavía");return}m.gtag("set",{user_id:l.username}),console.log("username setted successfully")},[l,e]);const f="/api/auth/login",h=s.jsx("div",{className:"su-flex-center su-relative",style:{minHeight:310}});if(o===null)return h;const p=t.replaceAll("|","/");return e?s.jsx(bm,{icon:a,isAuthenticated:o,setIsAuthenticated:i,loginUrl:f,user:l??void 0,checkAuth:u,path:p,API_ENV:n,texts:r}):h}const Am=({internalPath:e,icon:t,API_ENV:a,texts:n})=>{const r=T.useMemo(()=>Na(a),[a]);return T.useEffect(()=>{if(!document||xe(r))return;if(document.getElementById("recaptcha-enterprise-script"))return console.log("recaptcha already appended");const i=document.createElement("script");i.id="recaptcha-enterprise-script",i.defer=!0,i.async=!0,i.src=`https://www.google.com/recaptcha/enterprise.js?render=${a.CAPTCHA_KEY}`,document.body.appendChild(i),console.log("appended recaptcha")},[]),s.jsx("div",{className:"sass-pg-news-commentLazyLoader",style:{width:"100%"},suppressHydrationWarning:!0,children:s.jsx(wm,{path:e,icon:t,isVisible:!0,API_ENV:r,texts:n})})},ym=({section:e,internalPath:t,stylesConfig:a,paths:n,API_ENV:r,fetchConfig:o})=>s.jsx("div",{suppressHydrationWarning:!0,style:a["Modulo 1x3 Client"]??a["Modulo 1x3"],children:s.jsx(cf,{section:e,internalPath:t,stylesConfig:a,isVisible:!0,paths:n,fetchConfig:o,API_ENV:Na(r)})});async function Cm({publication:e,path:t,username:a,comment:n,id:r,recaptchaResponse:o,baseUrl:i,apiToken:l,securityToken:c,COMMENTS_VARS:d}){if(console.log("Adding comment with data:",{publication:e,path:t,username:a,comment:n,id:r,recaptchaResponse:o}),!e||!t||!n)return{type:"error",message:"Faltan campos obligatorios. Por favor, completa todos los campos.",status:400};if([e,t,n].some(m=>typeof m!="string"))return{type:"error",message:"Datos inválidos. Intenta de nuevo.",status:400};if(!n.trim())return{type:"error",message:"El comentario no puede estar vacío.",status:400};const u=await Ii(o,d);if(console.log("Verifying captcha token...",u),!u)return{type:"error",message:"Captcha inválido. Intenta nuevamente.",status:403};const f=`${i}/system/modules/com.tfsla.diario.base/templates/hit/5.0/1/newcomments/add`,h={publication:e,path:t.replace(/\|/gi,"/"),text:n.trim()};a&&(h.username=a),r&&(h.id=r);const p=new URLSearchParams(h);try{const{data:m}=await re.get(`${f}?${p.toString()}`,{headers:{"Content-Type":"application/json","x-security-token":c,"x-api-token":l,"User-Agent":"amplifyapp-comments-saas"}});return!m||m.error?(console.error("CMS error response:",m),{type:"error",message:"No se pudo guardar el comentario. Intenta nuevamente en unos minutos.",status:502}):(console.log("Comentario enviado con éxito",m),{type:"success",message:"Comentario enviado con éxito.",status:200})}catch(m){if(console.error("Error enviando comentario:",m),re.isAxiosError(m)){const g=m.response?.status??500,b=m.response?.data;return g===400?{type:"error",message:b?.message||"Solicitud inválida. Verifica que los campos sean correctos.",status:400}:g===403?{type:"error",message:"Captcha inválido o acceso prohibido.",status:403}:g===500?{type:"error",message:"Error interno del servidor del CMS.",status:500}:{type:"error",message:b?.message||"No se pudo enviar el comentario.",status:g}}return{type:"error",message:"Error inesperado. Intenta nuevamente.",status:500}}}const vm=async({token:e,projectId:t,captchaKey:a,apiKey:n,captchaAction:r,config:o})=>{if(xe(o))return 1;if(!e)throw new Error("No token provided");if(!t||!a||!n)throw new Error("Missing project ID or site key");if(!r)throw new Error("No action provided");try{const l=await(await fetch(`https://recaptchaenterprise.googleapis.com/v1/projects/${t}/assessments?key=${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:{token:e,siteKey:a,expectedAction:r}})})).json();if(!l?.tokenProperties?.valid)throw new Error(`The token was: ${l?.tokenProperties?.invalidReason}`);if(l.tokenProperties.action!==r)throw new Error("The action attribute in your reCAPTCHA tag does not match the action you are expecting to score");return l?.riskAnalysis?.score??0}catch(i){throw console.error("Recaptcha verification failed",i),new Error(String(i))}},Sm=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(Fe,{slot_id:n,cardWidth:200,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx(ts,{...l,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},i)})})})},Nm=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(Fe,{slot_id:n,cardWidth:343,cardGap:32,visibleItems:3,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return s.jsx(ts,{...l,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass},i)})})})},Em=e=>{const{content:t,title:a,slot_id:n}=e,r=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return t&&t.length!==0&&s.jsx(he,{title:a,titleUrl:e.titleUrl,children:s.jsx(Fe,{slot_id:n,fullPageWidth:!0,visibleItems:1,pagination:!0,cardGap:0,children:t.map((o,i)=>{const l={...o,main:{...o.main,title:{...o.main.title,section:r?o.main.title.home:o.main.title.section}}};return T.createElement(ts,{...l,key:i,titleGradient:!0,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})})})})},ua=e=>{const t={};for(const a in e)a.startsWith("--")&&(t[a]=e[a]);return t},xm=e=>{const{content:t,title:a,isVideo:n}=e;if(!t||t.length===0)return;const r=t[0],o=t.slice(1),i=e.isHome??(e.slot_id&&e.slot_id!=="Nota_1");return r&&o&&s.jsxs(he,{title:a,titleUrl:e.titleUrl,children:[s.jsx("div",{className:"sass-bd-dnfw-headerSection",children:s.jsxs("div",{className:"sass-bd-dnfw-image",style:{"--heightImageOverwriteMobile":"200%"},children:[s.jsxs("div",{className:"sass-bd-dnfw-blockHeadContainer",children:[s.jsx(M,{className:pt("sass-bd-dnfw-title",e.speculationPrerenderClass),href:r?.info?.link?.url,target:r?.info?.link?.target,children:r?.main?.title.home}),r?.main?.subtitle?.rendered&&s.jsx("p",{className:"sass-bd-dnfw-subtitle",children:r?.main?.subtitle?.striped})]}),s.jsx(M,{href:r?.info?.link?.url,target:r?.info?.link?.target,"aria-label":r?.main?.title.home,children:s.jsx(ve,{preview:r.preview})})]})}),s.jsxs("div",{className:"sass-bd-dnfw-containerCards",children:[s.jsx("div",{className:"banner-context",style:{order:1},children:e.banner}),s.jsx("div",{className:"sass-bd-dnfw-newsContent",children:Array.isArray(o)&&o.map((l,c)=>{const d={...l,main:{...l.main,title:{...l.main.title,section:i?l.main.title.home:l.main.title.section}}};return s.jsx("div",{style:{order:c},children:s.jsx(Ue,{...d,isVideo:n,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},c)})})]})]})},Tm=({printEdition:e,title:t})=>e&&s.jsx(he,{title:t,children:s.jsx("div",{className:"sass-bd-mif-content iframe-container",dangerouslySetInnerHTML:{__html:e||""}})}),Ki={banner:e=>s.jsx(be,{...e,name:e.slot_id.replace("Home","block")}),readest:e=>s.jsx(Vs,{...e}),"Modulo 1x3":e=>s.jsx(gi,{...e}),"Modulo 1x4":e=>s.jsx(bi,{...e}),"Modulo 1x5":e=>s.jsx(wi,{...e}),"Destacado noticias":e=>s.jsx(mi,{...e}),"Destacado full width":e=>s.jsx(xm,{...e}),"Destacado videos":e=>s.jsx(Ai,{...e}),"Carrusel card":e=>s.jsx(Ci,{...e}),"Carrusel story":e=>s.jsx(Sm,{...e}),"Carrusel owl":e=>s.jsx(Nm,{...e}),"Modulo fotogaleria":e=>s.jsx(Em,{...e}),"Carrusel opinion":e=>s.jsx(vi,{...e}),"Modulo 1x3 card":e=>s.jsx(yi,{...e}),"Modulo iframe":e=>s.jsx(Tm,{...e}),"Carrusel video":e=>s.jsx(Si,{...e})};function An({component:e,slot_id:t,data:a,banners:n,isHome:r}){if(n)return Ki[e]&&s.jsx("div",{className:"home-slot",style:ua(a),children:Ki[e]({...a,banners:n,slot_id:t,isHome:r})})}function km({children:e,stylesConfigEntry:t}){return s.jsx("div",{className:"home-slot",style:ua(t),children:e})}const Im=e=>e?.main?.title?{...e,main:{...e.main,title:{...e.main.title,section:e.main.title.home??e.main.title.section}}}:e,Ji={Diario:e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(hi,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,showSuper:e.showSuper,heightImageOverwrite:e.heightImageOverwrite,heightImageOverwriteMobile:e.heightImageOverwriteMobile,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,textPosition:e.textPosition,speculationPrerenderClass:e.speculationPrerenderClass})},"Diario con imagen":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(hi,{...e.data[0],itemReverseOrder:!0,isLarge:!0,showSuper:e.showSuper,block:t,banners:e.banners,rightOnlyBanner:e.rightOnlyBanner,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass})},Super:e=>s.jsx(Ot,{...e.data[0],paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas verticales":e=>s.jsx(n1,{content:e.data,customLargeSection:e.customLargeSection,customSlimSection:e.customSlimSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"3 notas horizontales":e=>s.jsx(a1,{content:e.data,customLargeSection:e.customLargeSection,customSmallSection:e.customSmallSection,paths:e.paths,speculationPrerenderClass:e.speculationPrerenderClass}),"Diario en vivo":e=>{if(!e?.data||e.data.length===0)return;const t=e.data.slice(1);return s.jsx(s1,{...e.data[0],itemReverseOrder:!0,isLarge:!0,block:t,banners:e.banners,customSectionCardStyles:e.customSectionCardStyles,customNewsDescriptionStyles:e.customNewsDescriptionStyles,customLiveStyles:e.customLiveStyles,paths:e.paths,commonServices:e.commonServices,speculationPrerenderClass:e.speculationPrerenderClass})}},rs=({component:e,data:t,banners:a,rightOnlyBanner:n,isHome:r,commonServices:o})=>{const i=r&&Array.isArray(t?.data)?{...t,data:t.data.map(Im)}:t;return s.jsx("div",{style:ua(t),children:Ji[e]&&Ji[e]({...i,rightOnlyBanner:n,banners:a,commonServices:o})})},Lm=({slots:e,DYNAMIC_SLOT_SUBINDEXES:t,stylesConfig:a,AutorIcon:n,config:r,banners:o,showTagBySection:i,pathname:l})=>{const c=so(l),d=[],u=t;let f=!0;const h=A=>A==="No Mostrar"||A?.toLowerCase()==="no mostrar",p=A=>{if(e[A].blockSass[0]?.block==="Modulo iframe")return!!e[A].blockSass[0]?.value;const S=e[A].content?.data;return Array.isArray(S)&&S.length>0},m=A=>{if(!f)return{};f=!1;const v=e[A].content?.data,S=Array.isArray(v)?v.length:0;return{speculationPrerenderClass:ja,speculationPrerender:{class:ja,length:S}}},g=(A,v,S,y)=>{if(!e[A]||!e[A].blockSass||!e[A].blockSass[0]||!e[A].blockSass[0].value||!e[A].blockSass[0].block||h(e[A].blockSass[0].block)||!p(A))return;const N=m(A);e[A].blockSass[0]?.block==="Modulo iframe"?d.push(s.jsxs(Fa,{id:e[A].blockSass[0].key,show:!!e[A].blockSass[0].value,order:v,children:[s.jsx(An,{component:e[A].blockSass[0].block,banners:o,slot_id:A,isHome:c,data:{printEdition:e[A]?.blockSass[0].value,title:e[A]?.blockSass[0].title??"",titleUrl:e[A].blockSass[0].link??void 0,...N}}),s.jsx(mt,{children:s.jsx(st,{banners:o,index:"dynamic_"+y})})]},S)):d.push(s.jsxs(Fa,{id:e[A].blockSass[0].key,show:!!e[A].content?.data,order:v,children:[s.jsx(An,{component:e[A].blockSass[0].block,banners:o,slot_id:A,isHome:c,data:{...e[A].blockSass[0].block?a[e[A].blockSass[0].block]:[],content:e[A].content?.data??[],title:e[A].blockSass[0].title??void 0,titleUrl:e[A].blockSass[0].link??void 0,autorIcon:s.jsx(n,{}),paths:r.paths,showTagBySection:i,...N}}),s.jsx(mt,{children:s.jsx(st,{banners:o,index:"dynamic_"+y})})]},S))},b=Object.keys(e);if(b.some(A=>/^Home_\d+$/.test(A))){const A=b.filter(v=>/^Home_\d+$/.test(v)).sort((v,S)=>Number(v.slice(5))-Number(S.slice(5)));for(const v of A){const S=Number(v.slice(5));g(v,Number.isFinite(S)?S-1:0,v,String(S))}}else{const v=b.length/u;for(let S=1;S<=v;S++)for(let y=1;y<=u;y++)g("Home_"+S+"_"+y,(S-1)*u+(y-1),S+"_"+y,S+"_"+y)}return d},Um=({mainBlock:e,StylesConfigMain:t,config:a,banners:n,commonServices:r})=>{const{PUBLIC_ENV:o}=L();if(o!=="local")return null;const i=e?.news?.data||[],l=(c,d)=>({...e?.news,...t[c],data:i.slice(0,d),paths:a.paths});return s.jsxs(s.Fragment,{children:[s.jsx(rs,{component:"Super",data:l("Super",1),banners:n}),s.jsx(mt,{children:s.jsx(st,{banners:n,index:1})}),s.jsx(rs,{component:"3 notas verticales",data:l("3 notas verticales",3),banners:n}),s.jsx(mt,{children:s.jsx(st,{banners:n,index:1})}),s.jsx(rs,{component:"3 notas horizontales",data:l("3 notas horizontales",3),banners:n}),s.jsx(mt,{children:s.jsx(st,{banners:n,index:1})}),s.jsx(rs,{component:"Diario en vivo",data:l("Diario en vivo",5),banners:n,commonServices:r}),s.jsx(mt,{children:s.jsx(st,{banners:n,index:1})})]})};function Pm({debugCfg:e}){return L().DEBUG_ENABLED?s.jsx(Om,{position:e?.buttonPosition??"bottom-right",initialErrors:e?.initialErrors,initialSuccesses:e?.initialSuccesses}):null}function Om({position:e,initialErrors:t,initialSuccesses:a}){const[n,r]=T.useState(0),[o,i]=T.useState(0),[l,c]=T.useState(!1),[d,u]=T.useState("errors"),[f,h]=T.useState([]),[p,m]=T.useState([]),g=T.useRef(null);T.useEffect(()=>{if(t&&t.length>0){const S=new Set(ge.getAll().map(y=>y.id));for(const y of t)S.has(y.id)||ge.add(y)}if(a&&a.length>0){const S=new Set(ge.getAllSuccesses().map(y=>y.id));for(const y of a)S.has(y.id)||ge.addSuccess(y)}r(ge.getCount()),i(ge.getSuccessCount());const A=S=>r(S.detail.count),v=S=>i(S.detail.count);return window.addEventListener("debug-fetch-error",A),window.addEventListener("debug-fetch-success",v),g.current=re.interceptors.response.use(S=>{const y=Bm(S.data);return ge.addSuccess({endpoint:S.config.url??"(unknown)",method:(S.config.method??"GET").toUpperCase(),params:S.config.params,status:S.status,responsePreview:y,layer:"axios-service"}),S},void 0),()=>{window.removeEventListener("debug-fetch-error",A),window.removeEventListener("debug-fetch-success",v),g.current!==null&&re.interceptors.response.eject(g.current)}},[]);function b(){h(ge.getAll()),m(ge.getAllSuccesses()),c(!0)}function w(){ge.clearAll(),h([]),m([]),r(0),i(0),c(!1)}return s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:b,style:Gm(e),title:"Debug panel",children:["🐛",n>0&&s.jsx("span",{style:Zi("#e94560"),children:n}),o>0&&s.jsx("span",{style:Zi("#27ae60"),children:o})]}),l&&s.jsx("div",{style:Fm,onClick:()=>c(!1),children:s.jsxs("div",{style:jm,onClick:A=>A.stopPropagation(),children:[s.jsxs("div",{style:Hm,children:[s.jsx("strong",{children:"Debug Panel"}),s.jsx("button",{onClick:()=>c(!1),style:Qm,children:"✕"})]}),s.jsxs("div",{style:Vm,children:[s.jsxs("button",{onClick:()=>u("errors"),style:Xi(d==="errors","#e94560"),children:["Errors ",n>0&&s.jsx("span",{style:Ri("#e94560"),children:n})]}),s.jsxs("button",{onClick:()=>u("successes"),style:Xi(d==="successes","#27ae60"),children:["OK ",o>0&&s.jsx("span",{style:Ri("#27ae60"),children:o})]})]}),s.jsxs("div",{style:zm,children:[d==="errors"&&(f.length===0?s.jsx("p",{style:cl,children:"No hay errores acumulados."}):f.map(A=>s.jsx(_m,{error:A},A.id))),d==="successes"&&(p.length===0?s.jsx("p",{style:cl,children:"No hay fetches exitosos registrados aún."}):p.map(A=>s.jsx(Dm,{entry:A},A.id)))]}),s.jsx("div",{style:$m,children:s.jsx("button",{onClick:w,style:Wm,children:"Limpiar todo"})})]})})]})}function Bm(e){try{const t=JSON.stringify(e);return t.length>500?t.slice(0,500)+"…":t}catch{return"[non-serializable]"}}function Mm(e){const t=e.status?`${e.status}`:"Error",a=e.service?e.service.split(".").pop()??e.service:e.endpoint.split("/").filter(Boolean).pop()??e.endpoint;return`${t}: ${a}`}function _m({error:e}){const[t,a]=T.useState(!1);function n(){navigator.clipboard?.writeText(JSON.stringify(e,null,2))}return s.jsxs("div",{style:el("#1a0a0a","#3d1a1a"),children:[s.jsxs("button",{onClick:()=>a(r=>!r),style:tl,children:[s.jsx("span",{style:sl,children:t?"▼":"▶"}),s.jsx("span",{style:dl(e.layer),children:e.layer}),e.status!==void 0&&s.jsx("span",{style:ul(e.status),children:e.status}),s.jsx("span",{style:{fontWeight:600,fontSize:13,color:"#f87171"},children:Mm(e)}),s.jsxs("span",{style:al,children:[e.method," ",e.endpoint]})]}),t&&s.jsxs("div",{style:nl,children:[e.service&&s.jsx("div",{style:{fontSize:11,color:"#888",marginBottom:4},children:e.service}),s.jsx("div",{style:{fontSize:12,color:"#f87171",marginBottom:4},children:e.message}),e.params&&s.jsx("pre",{style:yn,children:JSON.stringify(e.params,null,2)}),s.jsxs("div",{style:ol,children:[s.jsx("span",{style:il,children:e.timestamp}),s.jsx("button",{onClick:n,style:ll,children:"Copy"})]})]})]})}function Dm({entry:e}){const[t,a]=T.useState(!1);function n(){navigator.clipboard?.writeText(JSON.stringify(e,null,2))}const r=e.service?e.service.split(".").pop()??e.service:e.endpoint.split("/").filter(Boolean).pop()??e.endpoint;return s.jsxs("div",{style:el("#0a1a0a","#1a3d1a"),children:[s.jsxs("button",{onClick:()=>a(o=>!o),style:tl,children:[s.jsx("span",{style:sl,children:t?"▼":"▶"}),s.jsx("span",{style:dl(e.layer),children:e.layer}),s.jsx("span",{style:ul(e.status),children:e.status}),s.jsx("span",{style:{fontWeight:600,fontSize:13,color:"#4ade80"},children:r}),s.jsxs("span",{style:al,children:[e.method," ",e.endpoint]}),e.responsePreview&&!t&&s.jsx("span",{style:Km,children:s.jsx("span",{style:Jm,children:e.responsePreview.length>80?e.responsePreview.slice(0,80)+"…":e.responsePreview})}),e.durationMs!==void 0&&s.jsxs("span",{style:Ym,children:[e.durationMs,"ms"]})]}),t&&s.jsxs("div",{style:nl,children:[e.service&&s.jsx("div",{style:{fontSize:11,color:"#888",marginBottom:4},children:e.service}),e.params&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:rl,children:"Params"}),s.jsx("pre",{style:yn,children:JSON.stringify(e.params,null,2)})]}),e.responsePreview&&s.jsxs(s.Fragment,{children:[s.jsx("div",{style:rl,children:"Response"}),s.jsx("pre",{style:{...yn,color:"#86efac"},children:e.responsePreview})]}),s.jsxs("div",{style:ol,children:[s.jsx("span",{style:il,children:e.timestamp}),s.jsx("button",{onClick:n,style:ll,children:"Copy"})]})]})]})}const qm={"bottom-right":{bottom:16,right:16},"bottom-left":{bottom:16,left:16},"top-right":{top:16,right:16},"top-left":{top:16,left:16}};function Gm(e){return{position:"fixed",zIndex:99999,...qm[e],background:"#1a1a2e",color:"#fff",border:"2px solid #e94560",borderRadius:8,padding:"8px 14px",fontSize:14,cursor:"pointer",display:"flex",alignItems:"center",gap:5,boxShadow:"0 4px 12px rgba(0,0,0,0.4)"}}function Zi(e){return{background:e,color:"#fff",borderRadius:"50%",width:18,height:18,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,flexShrink:0}}const Fm={position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:1e5,display:"flex",alignItems:"center",justifyContent:"center"},jm={background:"#1a1a2e",color:"#fff",borderRadius:12,width:"min(820px, 92vw)",maxHeight:"85vh",display:"flex",flexDirection:"column",boxShadow:"0 8px 32px rgba(0,0,0,0.6)",border:"1px solid #e94560"},Hm={display:"flex",justifyContent:"space-between",alignItems:"center",padding:"14px 20px",borderBottom:"1px solid #2a2a4e"},Vm={display:"flex",borderBottom:"1px solid #2a2a4e",padding:"0 12px",gap:4};function Xi(e,t){return{background:"none",border:"none",borderBottom:e?`2px solid ${t}`:"2px solid transparent",color:e?"#fff":"#888",cursor:"pointer",fontSize:13,fontWeight:e?700:400,padding:"8px 14px",display:"flex",alignItems:"center",gap:6,transition:"color 0.15s"}}function Ri(e){return{background:e,color:"#fff",borderRadius:10,padding:"1px 7px",fontSize:10,fontWeight:700}}const zm={overflowY:"auto",flex:1,padding:"12px 16px",display:"flex",flexDirection:"column",gap:8},$m={padding:"12px 20px",borderTop:"1px solid #2a2a4e",display:"flex",justifyContent:"flex-end"},Qm={background:"none",border:"none",color:"#fff",cursor:"pointer",fontSize:18},Wm={background:"#e94560",color:"#fff",border:"none",borderRadius:6,padding:"6px 16px",cursor:"pointer",fontSize:13};function el(e,t){return{background:e,border:`1px solid ${t}`,borderRadius:8,padding:10}}const tl={display:"flex",alignItems:"center",gap:7,background:"none",border:"none",color:"#fff",cursor:"pointer",width:"100%",textAlign:"left",padding:0,fontSize:13,flexWrap:"wrap"},sl={fontSize:10,color:"#aaa",flexShrink:0},al={fontSize:11,color:"#9ca3af",fontFamily:"ui-monospace, monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:300},Ym={fontSize:10,color:"#6b7280",marginLeft:"auto",flexShrink:0},Km={display:"flex",alignItems:"center",maxWidth:260,overflow:"hidden",flexShrink:1},Jm={fontFamily:"ui-monospace, monospace",fontSize:10,color:"#6b7280",background:"#0a0a14",borderRadius:3,padding:"1px 6px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},nl={marginTop:10,paddingTop:10,borderTop:"1px solid #2a2a4e"},rl={fontSize:10,textTransform:"uppercase",letterSpacing:"0.08em",color:"#9ca3af",marginBottom:3,marginTop:8},yn={background:"#0a0a14",borderRadius:4,padding:"6px 10px",fontSize:10,overflow:"auto",maxHeight:150,margin:"0 0 4px",whiteSpace:"pre-wrap",wordBreak:"break-all"},ol={display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8},il={fontSize:10,color:"#6b7280"},ll={background:"#2a2a4e",color:"#fff",border:"1px solid #444",borderRadius:6,padding:"4px 12px",cursor:"pointer",fontSize:11},cl={color:"#888",margin:0,fontSize:13};function dl(e){return{background:{"axios-service":"#3498db","fetch-api":"#9b59b6",captcha:"#f39c12",auth:"#e74c3c"}[e]??"#555",color:"#fff",borderRadius:4,padding:"2px 7px",fontSize:10,fontWeight:700,flexShrink:0}}function ul(e){return{background:e>=500?"#c0392b":e>=400?"#e67e22":"#27ae60",color:"#fff",borderRadius:4,padding:"2px 7px",fontSize:10,fontWeight:700,flexShrink:0}}function le(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function et(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function os(e,t){const{SUB_PUBLICATION_PREFIX_IN_ROUTES:a,LINK_REMOVE:n,CONFIG_buscar_html:r}=L(),o=e??"",i=/[t][0-9]{4}\w+/.test(o),l=o.includes("/buscar"),c=!!a?.tema&&i,d=!!a?.buscar&&l,u=!t&&!c&&!d?de():"",f=/^(https?:)?\/\//.test(o)||/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(o),h=o.split("/")?.[1]===u.replace("/","");let p=(!f&&!h?u:"")+(u&&o==="/"?"":o);return p.startsWith("//")&&(p=p.slice(1)),n&&p.search(n)!==-1&&(p=p.replace(n,"")),r&&l&&!p.endsWith(".html")&&(p=p.replace("/buscar","/buscar.html")),{finalHref:p,isExternal:f}}const Zm={whatsapp:{url:e=>`https://wa.me/?text=${encodeURIComponent(e)}`,icon:"/whatsapp-note.svg"},message:{url:e=>`${e}#comentarios`,icon:"/message.svg"}};function Xm(e){const t=e.url||"",a=gt(),n=(e.options??[]).map(i=>{const l=String(i).toLowerCase(),c=Zm[l];if(!c)return"";const d=c.url(t),u=ne(c.icon);return`<a href="${le(d)}" target="_blank" rel="noopener noreferrer" aria-label="${le(a.shareOnPrefix??"Compartir en")} ${le(String(i))}" class="sass-com-nd-socialButton sass-com-nd-${le(l)}Button sass-com-nd-${le(l)}Styled"><img fetchpriority="low" loading="lazy" src="${le(u)}" alt=""></a>`}).join(""),r=ne("/send.svg"),o=ne("/clipboard.svg");return'<div class="sass-com-nd-socialNetworkSection sass-news-description-social-network-section">'+n+`<button type="button" aria-label="share" class="sass-com-nd-clipboardButton sharebtn-id"><img fetchpriority="low" loading="lazy" src="${le(r)}" alt=""></button><button type="button" data-text="${le(a.linkCopied??"Link copiado")}" data-active="false" aria-label="copy" class="sass-com-nd-clipboardButton clipbtn-id"><img fetchpriority="low" loading="lazy" src="${le(o)}" alt=""></button></div>`}function Rm(e,t){const a=e.sizes;if(!a||a.length===0)return"";const n=e.description?String(e.description):"",r=t?"high":"low",o=t?"eager":"lazy";if(a.length===1){const h=a[0]?.url?` src="${le(a[0].url)}"`:"";return`<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture><img fetchpriority="${r}" loading="${o}" class="sass-com-img-imageStyled su-flex-center su-object-cover" alt="${le(n)}"${h}></picture></span></figure>`}const i=t?"sync":"async",l=a.filter(h=>h.width<580).map(h=>`<source srcset="${le(h.url)}">`).join(""),c=a[0],d=c?.width!==void 0?` width="${c.width}"`:"",u=c?.height!==void 0?` height="${c.height}"`:"",f=c?.url??"";return'<figure class="sass-com-img-figure"><span class="sass-com-img-backdrop"><span class="sass-com-img-backdropAux"></span><picture>'+l+`<img fetchpriority="${r}" loading="${o}" decoding="${i}" class="sass-com-img-imageStyled su-flex-center su-object-cover"${d}${u} alt="${le(n)}" src="${le(f)}"></picture></span></figure>`}function ep(e){const{href:t,target:a,ariaLabel:n,preview:r,preRenderClass:o,priorityHigh:i}=e,{finalHref:l,isExternal:c}=os(t),d=o?`homeCardImage ${o}`:"homeCardImage",u=n!=null?` aria-label="${le(n)}"`:"",f=n!=null?` title="${le(n)}"`:"",h=a??void 0,p=h?` target="${le(h)}"`:"",m=c?' rel="noopener noreferrer"':"",g=Rm(r,i??!1);return`<a${u} class="${d}"${f} href="${le(l)}"${p}${m}>${g}</a>`}function tp(e,t,a){const n=a?.share,r=a?.newsDescriptionSectionTag??"h3",o=a?.speculationPrerenderClass,{SHOW_TAG_BY_SECTION:i,SUB_PUBLICATION_PREFIX_IN_ROUTES:l}=L();let c="";n&&(c=`<div style="width: 100%;" data-hydrate="ShareButtons" data-props="${encodeURIComponent(JSON.stringify({noteShare:n}))}">`+Xm(n)+"</div>");const d=()=>e.main.uppertitle?`<p class="sass-com-nd-uppertitle" title="${le(e.main.uppertitle)}">${et(e.main.uppertitle)}</p>`:"";let u="";const f=e.keywords,h=e.info;if(i&&f?.tags?.length&&f.tags.length>0){const A=f.tags[0],v=A.name;let S;if(A.approved){const y=Ye(A,t),{finalHref:N}=os(y,!!l?.tema);S=`<a aria-label="${le(v)}" class="sass-com-nd-sectionDescription" href="${le(N)}">${et(v)}</a>`}else S=`<div class="sass-com-nd-sectionDescription">${et(v)}</div>`;u=`<${r} class="sass-com-nd-sectionDescriptionContainer section">${S}${d()}</${r}>`}else if(h?.section?.url){const A=h.section.name,{finalHref:v}=os(h.section.url);u=`<${r} class="sass-com-nd-sectionDescriptionContainer section"><a aria-label="${le(A)}" class="sass-com-nd-sectionDescription" href="${le(v)}">${et(A)}</a>`+d()+`</${r}>`}const p=e.main?.title?.section??"",m=o?`${o} sass-com-nd-linkStyled su-no-underline`:"sass-com-nd-linkStyled su-no-underline";let g;if(e.info?.link?.url){const{finalHref:A,isExternal:v}=os(e.info.link.url),S=e.info.link.target,y=S?` target="${le(S)}"`:"",N=v?' rel="noopener noreferrer"':"";g=`<h2 class="sass-com-nd-articule"><a aria-label="${le(p)}" class="${m}" style="--isLink:var(--news-description-title-color-hover-decoration)" href="${le(A)}"${y}${N}>${et(p)}</a></h2>`}else g=`<h2 class="sass-com-nd-articule">${et(p)}</h2>`;let b="";if(e.config?.showsubtitle){const A=e.main?.subtitle?.striped??"";b=`<p class="sass-com-nd-description">${et(Be(A))}</p>`}let w="";if(e.config?.showtime||e.config?.showauthor){let A,v="";if(e.config?.showtime&&e.config?.showauthor){const S=`${e.authors?.[0]?.fullname??"Redacción"} - `;A=`${S}${Te(e.info?.date?.modified)}`,v=Ds(e.info?.date?.modified,S)}else e.config?.showauthor?A=e.authors?.[0]?.fullname??"Redacción":e.config?.showtime&&(A=Te(e.info?.date?.modified),v=Ds(e.info?.date?.modified));if(A!==void 0)if(e.authors?.[0]?.internaluser){const S=`/${t?.autor}/${e.authors?.[0]?.name}`,{finalHref:y}=os(S,!!l?.autor);w=`<h3><a aria-label="${le(A)}" class="sass-com-nd-correspondentLink" href="${le(y)}"${v}>${et(A)}</a></h3>`}else w=`<h3 class="sass-com-nd-correspondent"${v}>${et(A)}</h3>`}return'<div class="sass-com-nd-boxInformation sass-news-description">'+c+u+g+b+w+"</div>"}function sp(e,t,a,n,r=!1){const o=t<5?"nota-prerender":void 0,i=ep({href:e.info.link.url,target:e.info.link.target,ariaLabel:e.main?.title?.section,preview:e.preview,priorityHigh:r}),l=tp(e,a,{share:n,speculationPrerenderClass:o});return`<section class="homeCardContent"><div class="homeCardContentWrapper">${i}</div><div class="homeCardNewsDescription">${l}</div></section>`}const hl=" · ",Cn=24,ap=36e5,fl=new WeakMap;let ha,is;const ml=e=>{const t=L().CONFIG_relativeTime;return{enabled:e?.enabled??t?.enabled??!1,maxAgeHours:e?.maxAgeHours??t?.maxAgeHours??hs,scope:e?.scope??t?.scope??"all",keepAbsolute:e?.keepAbsolute??t?.keepAbsolute??"notes",separator:e?.separator??t?.separator??hl,refreshMs:e?.refreshMs??6e4,root:e?.root}},np="America/Mexico_City",rp=()=>typeof document>"u"?"":document.documentElement.getAttribute("lang")??"",op=e=>{const t=L();return{PUBLIC_LNG:(e?.PUBLIC_LNG||t.PUBLIC_LNG||rp()||"es").toLowerCase().split("-")[0],DATE_TIMEZONE:e?.DATE_TIMEZONE||t.DATE_TIMEZONE||np}},pl=(e,t)=>t==="none"?!1:t==="all"?!0:t==="notes"?e:!e,ip=/\d{1,2}:\d{2}(?::\d{2})?\s*(?:hs?|hrs?)?\.?\s*$/i,lp=e=>{const t=e.match(ip);if(!t||t.index===void 0)return;const a=e.slice(0,t.index);if(a.trim())return/\s$/.test(a)?a:a+" "},cp=(e,t)=>{const{original:a,isNote:n,ts:r,now:o,maxAgeHours:i}=t,l=pl(n,t.keepAbsolute),c=l?Math.min(i,Cn):i;if(!ba(r,o,c)||l&&o-r>=Cn*ap)return a;const d=Bn(r,o,c,t.DATE_CONFIG);if(l){const f=a.trim();if(!f)return d;const h=lp(f);return h!==void 0?h+d:f+t.separator+d}return(e.getAttribute(Ms)??"")+d},fa=e=>{if(typeof document>"u")return;const{enabled:t,maxAgeHours:a,scope:n,keepAbsolute:r,separator:o,root:i}=ml(e);if(!t)return;const l=Date.now(),c=op(e);(i??document).querySelectorAll(`[${Xt}]`).forEach(u=>{const f=u.getAttribute(_s)==="note";if(!pl(f,n))return;const h=Number(u.getAttribute(Xt));if(!Number.isFinite(h)||h<=0)return;let p=fl.get(u);p===void 0&&(p=u.textContent??"",fl.set(u,p));const m=cp(u,{original:p,isNote:f,ts:h,now:l,maxAgeHours:a,keepAbsolute:r,separator:o,DATE_CONFIG:c});u.textContent!==m&&(u.getAttribute("aria-label")===u.textContent&&u.setAttribute("aria-label",m),u.textContent=m)})},dp=e=>{if(typeof document>"u")return()=>{};const t=()=>{ha!==void 0&&clearInterval(ha),ha=void 0,is&&document.removeEventListener("visibilitychange",is),is=void 0};t();const{enabled:a,refreshMs:n}=ml(e);return a?(fa(e),n>0&&(ha=setInterval(()=>{document.visibilityState==="visible"&&fa(e)},n),is=()=>{document.visibilityState==="visible"&&fa(e)},document.addEventListener("visibilitychange",is)),t):()=>{}};C.AssetsPreconnect=lr,C.AutorHeader1=Bh,C.AutorHeader2=Mh,C.BannerAdvertising=be,C.BannerAdvertisingMiddle=st,C.BannersPreconnect=Uo,C.CarrouselCSR=Yu,C.CarrouselIRS=Fe,C.CarruselCard=Ci,C.CarruselOpinion=vi,C.CommentLazyLoader=Am,C.CommonServices=Ze,C.Comscore=En,C.ContactInfoServer=p1,C.ContactInput=Sh,C.ContactSelect=Nh,C.ContactTextarea=Eh,C.ContentLayout1=Bs,C.ContentLayoutTema=Ch,C.DEBUG_MainSlots=Um,C.DEFAULT_HEAD_CONFIG=_o,C.DEFAULT_RELATIVE_MAX_AGE_HOURS=hs,C.DEFAULT_RELATIVE_SEPARATOR=hl,C.DEFAULT_S3_REFERER=ht,C.DebugPanel=Pm,C.DebugStore=ge,C.DestacadoNoticias=mi,C.DestacadoVideos=Ai,C.DynamicBlockServices=Oo,C.DynamicComponents=Lm,C.DynamicMainSlot=rs,C.DynamicSlot=An,C.EMPTY_PREVIEW=_n,C.EditorialBlock=i1,C.ErrorComponent=vh,C.Font=ko,C.Footer=wh,C.FormatAfterScripts=ir,C.FormatScripts=va,C.GA4=fo,C.GTM=mo,C.GalleryHeader=Ei,C.GenerateBody=zu,C.GenerateHead=Vu,C.Header=Qh,C.HeaderSectionComponent=Ni,C.HomeCard=Jh,C.IframeHeader=Zo,C.ImageOffline=Vo,C.ImageOnline=ve,C.ImageOnlineClient=Va,C.IssuuServices=Iu,C.ItemListSchema=Co,C.JournalistArticule2=ci,C.JournalistArticule5=ui,C.JournalistGroup=di,C.KEEP_ABSOLUTE_MAX_AGE_HOURS=Cn,C.LayoutNewsComponent=ai,C.LinkComponent=M,C.LiveBlogHeader=Ro,C.Location=Qu,C.LoginForm=X1,C.MainComponentServices=ku,C.Marfeel=po,C.MasNoticiasLazyLoader=ym,C.MiddleSection=mt,C.Modulo1x3=gi,C.Modulo1x3Card=yi,C.Modulo1x4=bi,C.Modulo1x5=wi,C.Modulo2Columnas=l1,C.Modulo3Columnas=pi,C.ModuloBlockNews=u1,C.ModuloNewsletter=c1,C.ModuloOpinion=o1,C.NOTA_PRERENDER_CLASS=ja,C.NewDescriptionBlock=Hs,C.NewListResponseDataPH=ki,C.NewsArticle=So,C.NewsComponent=$1,C.NewsContent=Ja,C.NewsDescriptionComponent=He,C.News_Content=xi,C.NextPrev=Ka,C.OrgList=No,C.PreloadImages=Sa,C.RECAPTCHA_DISABLED_TOKEN=Sn,C.RELATIVE_TIME_ATTR=Xt,C.RELATIVE_TIME_PREFIX_ATTR=Ms,C.RELATIVE_TIME_SCOPE_ATTR=_s,C.REPORT_REASONS=aa,C.RESILIENT_FETCH_DEFAULTS=St,C.ReCaptchaRender=gu,C.Readest=Vs,C.RegisterForm=J1,C.ScriptHydrator=nf,C.SearchSection=W1,C.Section=he,C.SectionCard=Ue,C.SectionCard2=ts,C.SectionCard5=Ru,C.SectionCardServerComponent=Ra,C.SectionServerComponent=m1,C.ShowSection=Fa,C.SocialNetworks=Xs,C.SoftwareApplication=vo,C.SourceButtons=Kh,C.SpeculationRules=yo,C.Spin=Bt,C.StaticSlotWrapper=km,C.SubscribeColumn=zo,C.SubscribeRow=$o,C.SubscribeWhatsAppColumn=ch,C.TagHeader=Yh,C.TagSection=li,C.TimeLine=ei,C.TrimPathname=hc,C.TwitterHydration=rf,C.VideoBlock3=yh,C.VideoBlock4=Dh,C.VideoCarousel=Si,C.VideoEmbeddedHeader=Ko,C.VideoYoutubeHeader=Jo,C.VideosSchemas=xo,C.WebsiteList=Eo,C.addComment=Cm,C.applyRelativeTime=fa,C.assertImageSizesContract=Wn,C.assetsImagesPrefixer=ne,C.auditConfigOrigin=ft,C.bannersEnabledForRequest=Nn,C.bannersReplace=vt,C.becomeVideoObject=At,C.buildConfigMenuApiPath=Wt,C.buildTagUrl=Ye,C.buildVideoUrlFromInternal=Hn,C.checkImageSizes=Yl,C.cleanSchema=_e,C.clearConfigOriginAudit=ru,C.clearConfigOriginCache=Yd,C.clearConfigOriginComparisonCache=tu,C.coloringByStrokeSVGs=bh,C.compileStyleProps=ua,C.contractWarn=De,C.createAssessment=wc,C.cutString=Be,C.decodeApiEnv=Na,C.emptyNewListResponse=rr,C.encodeApiEnv=Cc,C.ensurePreview=yt,C.extractMainSlug=Ne,C.extractRealtedNews=Zl,C.extractRelatedNews=ps,C.fetchWithConfigCache=ut,C.formatConfigOriginComparisonTable=Rr,C.formatDate=Te,C.formatDateEdiciones=Pl,C.formatDateJournalistArticule=Dt,C.formatDateTimeline=Un,C.formatNewsMeta=Rn,C.formatRelativeDate=Bn,C.formatVideoData=cr,C.generalGetData=Ou,C.getBucketHttpClient=Lt,C.getCaptchaToken=as,C.getComments=zi,C.getConfig=L,C.getConfigCacheTtlMs=Zr,C.getConfigOriginAuditReport=to,C.getDynamicSlots=Uu,C.getEnvironmentUrl=tt,C.getEnvironmentUrlFront=Xl,C.getFrontPrefix=de,C.getHydratorPath=pc,C.getImageUrl=ue,C.getItemFormated=vc,C.getNextMeta=Et,C.getPage=Ut,C.getPlayIcon=Rt,C.getPreloadImages=Tu,C.getPrevMeta=xt,C.getRelatedNewsCarrousel=gc,C.getReportReasonLabel=gf,C.getResponse=rt,C.getResponsePromise=Mn,C.getSchemas=Us,C.getScriptReplaces=Da,C.getServicePrefix=ya,C.getSlugs=Lo,C.getTextsStringValue=Ac,C.getTitleString=qt,C.getTypeOfNews=fc,C.getVideoOp=wa,C.getVideoRealPath=mc,C.handleGetComments=da,C.homeCardImagenToHTMLString=sp,C.initLibrary=Al,C.initRelativeTime=dp,C.isConfigOriginAuditEnabled=Is,C.isHomePath=so,C.isPhotoGallery=yc,C.isRecaptchaBlocked=xe,C.isVideoContentItem=jn,C.isWithinRelativeWindow=ba,C.metadataToJSX=sr,C.metadata_defaults=Mo,C.new_speculationRules_home=go,C.new_speculationRules_note=wo,C.new_speculationRules_noteList=Ao,C.new_speculationRules_section=bo,C.normalizeAuthorSocialUrl=$e,C.normalizeRankingItem=zn,C.normalizeRankingList=Gt,C.normalizeRankingResponse=$n,C.parseConfigOriginCacheKey=_a,C.parseTags=Ca,C.pathnameSplit=er,C.pickBannerVariant=gs,C.printImageSizesReport=Kl,C.processExtractedRelatedNews=Kn,C.relativeTimeAttrs=je,C.relativeTimeAttrsHTML=Ds,C.removePages=Io,C.reportBucketOriginExhausted=Qt,C.reportComment=pf,C.resilientFetch=Nt,C.resolveBucketMenuSubtype=Ts,C.resolveBucketOriginUrl=Je,C.resolveImageSizes=Ft,C.resolveSpeculationPrerenderClass=Do,C.runConfigOriginComparison=eu,C.sanitizeRichText=Ls,C.shareButtons=Qo,C.socialIcons=wt,C.stripHtml=ho,C.takeConfigOriginAuditReport=nu,C.toISOWithTimeZone=Ie,C.toPublicEditionUrl=Ct,C.toPublicShareUrl=ec,C.urlReplaces=tr,C.usePlayIcon=Ha,C.validateHttpUrl=Jn,C.verifyCaptchaTokenEnterprise=vm,C.withPreviewFallback=ql,C.withSpeculationPrerenderClass=pt,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));