PageSourceSearch

https://www.clarin.com/_next/static/chunks/1259.a2ddca15ca8bbe71-67003dfb.js

js clarin.com collected 2026-09-27 20:56:06 UTC 3,043 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1259],{71259:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var r=a(37876),n=a(89099),o=a(14232),l=a(21980),i=a.n(l);let c=e=>{let t=(0,n.useRouter)().query.match[1],[a,l]=(0,o.useState)(),c=async()=>{try{let e=await fetch("/api/newsReport/".concat(t,"/10/0")),a=await e.json();if(Object.keys(a.data).length>0&&a.data.content.length>0){let e=a.data.pagination.total,r=0,n=[];if(e<=10)l(a.data.content);else{for(;r<e;){let e=await fetch("/api/newsReport/".concat(t,"/10/").concat(r)),a=(await e.json()).data.content;n.push(...a),r+=10}l(n)}}}catch(e){console.error("Error al obtener datos de la API:",e)}};(0,o.useEffect)(()=>{c()},[]);let d=async()=>{if((null==a?void 0:a.length)>0){let e=new(i()).Workbook,t=e.addWorksheet("Reporte"),r={font:{bold:!0,name:"Arial"},fill:{type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}}};t.columns=[{header:"id",key:"id"},{header:"created_date",key:"created_date"},{header:"created_time",key:"created_time"},{header:"published_date",key:"published_date"},{header:"published_time",key:"published_time"},{header:"title",key:"title"},{header:"primary_section",key:"primary_section"},{header:"authors",key:"authors"},{header:"tags",key:"tags"},{header:"url",key:"url"},{header:"content_restrictions",key:"content_restrictions"},{header:"type",key:"type"},{header:"created_by",key:"created_by"},{header:"primary_section_url",key:"primary_section_url"},{header:"parent_section",key:"parent_section"},{header:"created_hour",key:"created_hour"},{header:"origin",key:"origin"}],t.getRow(1).eachCell(e=>{e.fill=r.fill,e.font=r.font}),a.forEach(e=>{var a,r,n,o,l,i;let c=(e=>{if(e){let t=new Date(e),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),n=t.getFullYear(),o="".concat(a,"/").concat(r,"/").concat(n),l=t.getUTCHours(),i=t.getUTCMinutes(),c=t.getUTCSeconds();return{date:o,time:"".concat(l%12==0?12:l%12,":").concat(i,":").concat(c," ").concat(l>=12?"p. m.":"a. m."),hour:l}}})(e.publishedDate);t.addRow({id:e._id,created_date:c.date,created_time:c.time,published_date:c.date,published_time:c.time,title:e.title||null,primary_section:(null==(a=e.sections[0])?void 0:a.name)||null,authors:e.authors&&(null==(r=e.authors[0])?void 0:r.name)||"Redacci\xf3n Clar\xedn",tags:null==(n=e.tags)?void 0:n.map(e=>e.name).join(", "),url:"https://clarin.com"+e.url,content_restrictions:(null==(o=e.metadata)?void 0:o.payWallAccessControl)||null,type:"clarin",created_by:null,primary_section_url:"https://clarin.com/"+(null==(l=e.sections[0])?void 0:l.url),parent_section:"/",created_hour:c.hour,origin:(null==(i=e.metadata)?void 0:i.origin)||null})});let n=new Blob([await e.xlsx.writeBuffer()],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o=URL.createObjectURL(n),l=document.createElement("a");l.href=o,l.download="reporte.xlsx",l.click(),URL.revokeObjectURL(o)}};return(0,o.useEffect)(()=>{d()},[a]),(0,r.jsx)(r.Fragment,{})}}}]);
2//# sourceMappingURL=1259.a2ddca15ca8bbe71-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.