1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3338],{23338:(e,l,n)=>{n.r(l),n.d(l,{default:()=>k});var t=n(37876),s=n(92658),a=n(74629),i=n(89155),o=n(69716),r=n(17543);let u=n(28484).Ay.h1.withConfig({componentId:"sc-68e21959-0"})(["text-indent:-999em;opacity:0;transform:scale(0);height:1px"]);var d=n(44693),m=n(60781),c=n(61286),v=n(93521),p=n(67899),b=n(70265),x=n(38632),h=n(13844),w=n(87105),g=n(69287),f=n(79048),y=n(28476),I=n(14232),j=n(78028),C=n(40517),A=n(77816);let k=e=>{var l,n,k,B,R;let{formatContent:P,...D}=(e=>{var l,n,t,s,a,i,o,r,u,d,m,c,v,p,b,x,h,w,g,C,A,k,B,R,P,D,N,E,T,M,S,_,L,H,O,V,W,F,U,z;let{content:J,landing:q,...Z}=e,G=null!=(k=null==Z?void 0:Z.menu)?k:{},K=null!=(B=null==Z?void 0:Z.preview)&&B,Q=null!=(R=null==Z?void 0:Z.preview)&&R,X=null==J?void 0:J.boxes,[Y,$]=(0,I.useState)(),ee=(0,y.Us)(),el=null==ee?void 0:ee.pagegrowler;null==el||el.setWidgetsLayout(null==Z?void 0:Z.widgetList);let en=null==Z||null==(l=Z.meta)?void 0:l.filter(e=>"refresh"==e.meta),et=[],es=null!=(P=null==q?void 0:q.title)?P:"",ea=(null==Z||null==(n=Z.properties)?void 0:n.bucketsHeader)?Z.properties.bucketsHeader:{opinion:[],liveblogs:[],ultimomento:[],urgent:[]},ei={sections:"home",section:"",pageType:"Home",nsSite:"clarin",name:"home.inicio",publishedDate:null!=(D=null==q?void 0:q.modificatedAt)?D:new Date},eo={pageType:"portada",section:"home",paywall:"free",category:"home"},er=!0,eu=!0,ed=(null==q?void 0:q.url)!="/"?(null==q||null==(t=q.url)?void 0:t.split("/")[1])+"/home":"home";(null==q?void 0:q.url)!="/"&&(null==q?void 0:q.dynamicIndex)&&(null==q||null==(a=q.dynamicIndex[0])||null==(s=a.metadata)?void 0:s.adsPath)&&(ed=(null==q||null==(E=q.dynamicIndex[0])||null==(N=E.metadata)?void 0:N.adsPath)+"/home");try{for(let l=0;l<(null==X?void 0:X.length);l++){let n=null==X||null==(S=X[l])||null==(M=S.innerBoxes)||null==(T=M[0])?void 0:T.subItems,t=null!=(H=null==n||null==(L=n[0])||null==(_=L.params)?void 0:_.content)?H:[];null==t||t.forEach(e=>{et.push(e)}),null==n||n.forEach((n,t)=>{var s,a,i,o,r,u,d,m,c,v,p,b,x,h,w,g,f,y,I,j,C;switch(null==X||null==(u=X[l])||null==(r=u.innerBoxes)||null==(o=r[0])||null==(i=o.subItems)||null==(a=i[t])||null==(s=a.params)||s.dynamicType,J.boxes[l].innerBoxes[0].subItems[t].params.templateFormat="TemplateBuilder",J.boxes[l].innerBoxes[0].subItems[t].params.adsPath=ed,n.template){case"Container6Pisos":case"Container7Pisos":case"Container5PisosExtra":case"Container7PisosVideo":case"Container5PisosVideo":X[l].innerBoxes[0].subItems[t].params.datalatest=null==ea?void 0:ea.ultimomento;break;case"Container3PisosOpinion":X[l].innerBoxes[0].subItems[t].params.dataopinion=null==ea?void 0:ea.opinion;break;case"PriceRural":X[l].innerBoxes[0].subItems[t].params.priceRural=null!=(m=null==Z||null==(d=Z.properties)?void 0:d.priceRural)?m:{};break;case"Container2PisosBanner":X[l].innerBoxes[0].subItems[t].params.newsCrossContent=null!=(v=null==Z||null==(c=Z.properties)?void 0:c.crossContent)?v:[];break;case"RevistaElle":X[l].innerBoxes[0].subItems[t].params.content=null==Z||null==(b=Z.properties)||null==(p=b.elleMagazines)?void 0:p.map(e=>{var l,n,t,s,a,i,o,r,u,d,m,c;return{...null==e?void 0:e.value,imageOriginUrl:"https://elle.clarin.com/images",section:null!=(d=null==e||null==(l=e.value)?void 0:l.sections)?d:[],images:null!=(m=null==e||null==(i=e.value)||null==(a=i.related)||null==(s=a.images)||null==(t=s[0])||null==(n=t.value)?void 0:n.clippings)?m:[],url:"https://elle.clarin.com".concat(null!=(c=null==e||null==(o=e.value)?void 0:o.url)?c:""),urlTarget:"_blank",title:(null==e?void 0:e.title)?e.title:null==e||null==(r=e.value)?void 0:r.title,subtitle:(null==e?void 0:e.subtitle)?e.subtitle:null==e||null==(u=e.value)?void 0:u.subtitle}});break;case"ContainerJokes":X[l].innerBoxes[0].subItems[t].params.content=!(null==Z||null==(h=Z.properties)||null==(x=h.jokes)?void 0:x.error)&&(null==Z||null==(g=Z.properties)||null==(w=g.jokes)?void 0:w.content)?Z.properties.jokes.content:[];break;case"MostViewed":X[l].innerBoxes[0].subItems[t].params.content=null!=(y=null==Z||null==(f=Z.properties)?void 0:f.mostReadNewsWidget)?y:[];break;case"Container3PisosC":case"Container3PisosD":J.boxes[l].innerBoxes[0].subItems[t].params.dataAgenda=null==e||null==(I=e.properties)?void 0:I.dataAgenda;break;case"ContainerList":J.boxes[l].innerBoxes[0].subItems[t].params.mostReadNews=null==e||null==(j=e.properties)?void 0:j.mostReadNews,J.boxes[l].innerBoxes[0].subItems[t].params.widgets=null==e?void 0:e.widgets,er=!1,eu=!1;break;case"MAMWorldCup":J.boxes[l].innerBoxes[0].subItems[t].params.MAMWorldCupContent=null==e||null==(C=e.properties)?void 0:C.MAMWorldCupContent}})}}catch(e){console.error("error setting boxes")}let em={},ec="home",ev=null!=(O=null==e||null==(u=e.landing)||null==(r=u.dynamicIndex)||null==(o=r[0])||null==(i=o.metadata)?void 0:i.adsPath)?O:"",ep="Clar\xedn";(null==q?void 0:q.url)==="/recetas"&&(em={nameIcon:"logoClarin-shrink",titleHeader:"Recetas",logoUrlSection:"recetas",showLinkRecipes:!0,isHome:!1,liveblogs:null,menuRecetas:null==Z||null==(F=Z.menu)||null==(W=F.menurecetas)||null==(V=W.item)?void 0:V.items},ep="",ec="recetas",ei.sections="recetas",ei.section="Recetas",ei.pageType="subhome",ei.nsSite="clarin-recetas",ei.name="home.inicio",ei.publishedDate=null!=(z=null==Z||null==(U=Z.properties)?void 0:U.publishedDate)?z:new Date,eo.section="recetas",eo.paywall="free",eo.sectionNames="Recetas",ev="Recetas"),(0,I.useEffect)(()=>{(()=>{let e=JSON.parse(localStorage.getItem("news_reads"))||[],l=new Date;e=e.filter(e=>l-new Date(e.readDate)<=2592e5),localStorage.setItem("news_reads",JSON.stringify(e))})(),(()=>{let e="randomDynamicNews";if(!(0,f.Ri8)(e)){let l=Math.floor(2*Math.random());(0,f.TVt)(e,l,30)}})()},[]);let eb=!0;(null==Z||null==(d=Z.properties)?void 0:d.sectionType)=="recipes"&&(eb=!1),(0,I.useEffect)(()=>{(null==X?void 0:X.some(e=>{var l;return null==e||null==(l=e.innerBoxes)?void 0:l.some(e=>{var l;return null==e||null==(l=e.subItems)?void 0:l.some(e=>{var l,n;return null==e||null==(n=e.params)||null==(l=n.content)?void 0:l.some(e=>(null==e?void 0:e.type)==="recipes")})})}))&&(async()=>{let e=new Set;
1if(null==X||X.forEach(l=>{var n;null==(n=l.innerBoxes)||n.forEach(l=>{var n;null==(n=l.subItems)||n.forEach(l=>{var n,t;null==(t=l.params)||null==(n=t.content)||n.forEach(l=>{l.elementID&&e.add(l.elementID)})})})}),0===e.size)return;let l=Array.from(e).map(e=>"externalSubjectIdList=_7_".concat(e)).join("&");try{let e=await j.A.get("".concat("https://razor.media","/review-api/subjectsummary?").concat(l)),n=(null==e?void 0:e.data)||[];$(n)}catch(e){console.log("Error al obtener los datos:",e)}})()},[]);let ex=(null==Z||null==(c=Z.meta)||null==(m=c.find(e=>{var l;return(null==(l=e.meta)?void 0:l.toLowerCase())==="description"&&"name"===e.type}))?void 0:m.value)||"",eh=(null==Z||null==(p=Z.meta)||null==(v=p.find(e=>{var l;return(null==(l=e.meta)?void 0:l.toLowerCase())==="title"&&"name"===e.type}))?void 0:v.value)||"",ew=(null==Z||null==(x=Z.meta)||null==(b=x.find(e=>{var l;return(null==(l=e.meta)?void 0:l.toLowerCase())==="keywords"&&"name"===e.type}))?void 0:b.value)||"",eg=!["/","/recetas"].includes(null==q?void 0:q.url);return{...Z,menu:G,preview:K,isPreview:Q,Pagegrowler:el,formatContent:{content:et,dataAnalitics:ei,dataMeter:eo,bucketsHeader:ea,adsPath:ed,sectionNameAds:ec,recipesReview:Y,h1MainTitle:ep,showLatestVideoRigthColumn:er,showInterestedRightColumn:eu,metaRefresh:{status:(null==en||null==(h=en[0])?void 0:h.value)!="0",timer:(null==en||null==(w=en[0])?void 0:w.value)&&!isNaN(null==en||null==(g=en[0])?void 0:g.value)?en[0].value:300},dataMetaTagsSubhome:{title:eh||es,section:ev,url:"",metaDescription:ex,keywords:ew},dataHeader:{urgent:null==ea?void 0:ea.urgent,liveblogs:null==ea?void 0:ea.liveblogs,newsToday:null==G||null==(A=G.noticiashoy)||null==(C=A.item)?void 0:C.items,menu:G,isHome:!0,showBannerH1App:eg,...em,showLiveblog:eb}}}})(e),N=(0,A.pZ)(null==e||null==(l=e.landing)?void 0:l.url),[E,T]=(0,I.useState)(!1);return(0,I.useEffect)(()=>{T(!0),window&&(window.abTestUpdate=()=>{let e="0"===(0,f.Ri8)("randomDynamicNews")?"1":"0";(0,f.TVt)("randomDynamicNews",e,30),console.info("AB Test","0"===e?"Fijo":"Din\xe1mico")}),(0,f.Ri8)("randomDynamicNews")},[]),(0,t.jsxs)(g.A,{data:{...D,content:P,handleCollections:N},children:[(0,t.jsx)(x.q,{}),!(null==D?void 0:D.preview)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.A,{}),(0,t.jsx)(d.A,{}),(0,t.jsx)(m.A,{}),(0,t.jsx)(c.A,{}),(0,t.jsx)(v.A,{}),(0,t.jsx)(p.A,{}),(0,t.jsx)(b.A,{}),E&&((null==e||null==(k=e.landing)||null==(n=k.url)?void 0:n.includes("/recetas"))?(0,t.jsx)(C.A,{}):(0,t.jsx)(i.A,{})),(0,t.jsx)(o.A,{})]}),(0,t.jsx)(a.A,{isPreview:null==D?void 0:D.preview,slotId:"1"}),(0,t.jsx)(a.A,{isPreview:null==D?void 0:D.preview,slotId:"3"}),(0,t.jsx)(a.A,{isPreview:null==D?void 0:D.preview,slotId:"5"}),(0,t.jsx)(a.A,{isPreview:null==D?void 0:D.preview,type:"logo"}),(0,t.jsxs)("div",{className:(null==D?void 0:D.preview)?"":"container-template",children:[(null==P?void 0:P.h1MainTitle)&&(0,t.jsx)(u,{children:"Clar\xedn"}),null==D?void 0:D.Pagegrowler.generateDOM(e,null==D?void 0:D.preview)]}),!(null==D?void 0:D.preview)&&(0,t.jsxs)(t.Fragment,{children:[(null==P||null==(B=P.metaRefresh)?void 0:B.status)&&(0,t.jsx)(w.A,{timerRefresh:null==P||null==(R=P.metaRefresh)?void 0:R.timer}),(0,t.jsx)(h.A,{}),(0,t.jsx)(r.A,{})]})]})}}}]); 2//# sourceMappingURL=3338.2704ad5397288f69-67003dfb.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.