PageSourceSearch

https://nuevanews.com/_next/static/chunks/8961.b09b24694584be2a.js

js nuevanews.com collected 2026-10-03 02:39:16 UTC 9,657 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8961],{7217:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(5155),l=t(5191);function i(e){let{post:a,mediaType:t,size:i="sm",center:r=!0,className:n=""}=e;if(!a&&!t)return null;let o=a?(0,l.t9)(a):null,d=t||(o?o.type:"image");if(!(a?!!o&&o.hasMedia:"image"!==d)||"image"===d)return null;let c="video"===d,x=(0,s.jsx)("div",{className:`inline-flex items-center justify-center rounded-full text-white shadow-xl border border-white/90 transform transition-transform duration-300 group-hover:scale-115 pointer-events-none select-none ${{xs:"w-7 h-7 text-xs",sm:"w-8 h-8 text-sm",md:"w-11 h-11 text-lg",lg:"w-14 h-14 text-2xl"}[i]}`,style:{background:c?"linear-gradient(135deg, rgb(122, 13, 53), rgb(185, 23, 81))":"linear-gradient(135deg, #1f2937, #111827)",boxShadow:c?"0 4px 16px rgba(185, 23, 81, 0.5)":"0 4px 14px rgba(0, 0, 0, 0.5)"},title:c?"Video":"Audio","aria-label":c?"Video":"Audio",children:(0,s.jsx)("i",{className:c?"ri-play-fill translate-x-[0.5px]":"ri-volume-up-fill"})});return r?(0,s.jsx)("div",{className:`absolute inset-0 flex items-center justify-center pointer-events-none z-10 ${n}`,children:x}):(0,s.jsx)("span",{className:`inline-flex items-center justify-center z-10 ${n}`,children:x})}},8961:(e,a,t)=>{t.r(a),t.d(a,{default:()=>h});var s=t(5155),l=t(2115),i=t(63),r=t(2619),n=t.n(r),o=t(5239),d=t(9040),c=t(5975),x=t(5191),m=t(7217);let u={eeuu:"#1d4ed8","ee-uu":"#1d4ed8",politica:"#7c3aed",inmigracion:"#0891b2",deportes:"#16a34a",espectaculos:"#d97706",latinoamerica:"#dc2626",mundo:"#2563eb",economia:"#059669",california:"#7c3aed",salud:"#0284c7",tecnologia:"#6d28d9",opinion:"#b91751",tendencias:"#f59e0b"},p={eeuu:x.xD.eeuu,"ee-uu":x.xD.eeuu,politica:x.xD.politica,inmigracion:x.xD.inmigracion,deportes:x.xD.deportes,espectaculos:x.xD.espectaculos,latinoamerica:x.xD.latinoamerica,mund
1o:x.xD.mundo,economia:x.xD.economia,california:x.xD.california,salud:x.xD.salud,tecnologia:x.xD.tecnologia,opinion:x.xD.opinion,tendencias:x.xD.tendencias};function g(e){let a=Math.floor((Date.now()-new Date(e).getTime())/6e4);return a<60?`${a}m ago`:a<1440?`${Math.floor(a/60)}h ago`:`${Math.floor(a/1440)}d ago`}function h(){let{slug:e=""}=(0,i.useParams)(),a=(0,i.usePathname)().startsWith("/en/etiqueta"),[t,r]=(0,l.useState)(null),[h,f]=(0,l.useState)([]),[b,j]=(0,l.useState)(0),[v,w]=(0,l.useState)(!0),[N,y]=(0,l.useState)(!1),[k,D]=(0,l.useState)(1),[C,S]=(0,l.useState)(null),[A,$]=(0,l.useState)(null),_=Math.ceil(b/12),z=u[e]??"#b91751",T=t?.name??e.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase());(0,l.useEffect)(()=>{e&&(w(!0),f([]),r(null),D(1),S(null),$(null),(async()=>{if(a){let a=await (0,x.BZ)(e,"en");if(r(a),a){$(a.id);let e=await (0,x.K5)({tags:[a.id],per_page:12,lang:"en"});f(e.posts),j(e.total)}}else{let a=p[e];if(void 0!==a){S(a);let[t,s]=await Promise.all([(0,x.K5)({categories:a,per_page:12,lang:"en"}),(0,x.pI)(e,"en")]);f(t.posts),j(t.total),r(s)}else{let a=await (0,x.pI)(e,"en");if(r(a),a){S(a.id);let e=await (0,x.K5)({categories:a.id,per_page:12,lang:"en"});f(e.posts),j(e.total)}}}w(!1)})())},[e,a]);let K=async e=>{if(N)return;y(!0),window.scrollTo({top:0,behavior:"smooth"});let t=a&&null!==A?{tags:[A],per_page:12,page:e,lang:"en"}:null!==C?{categories:C,per_page:12,page:e,lang:"en"}:null;if(t){let a=await (0,x.K5)(t);a.posts.length>0&&(f(a.posts),j(a.total),D(e))}y(!1)},M=h[0],F=h.slice(1,3),I=h.slice(3,7);return h[7],h.slice(8,11),(0,s.jsxs)("div",{className:"min-h-screen bg-white dark:bg-[#0a0a0a] transition-colors duration-300",children:[(0,s.jsx)(d.default,{}),(0,s.jsx)("div",{className:"bg-white dark:bg-[#0a0a0a]",style:{borderBottom:`3px solid ${z}`},children:(0,s.jsx)("div",{className:"max-w-7xl mx-auto px-4 md:px-6 py-5",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-1.5 h-8 rounded-full",style:{backgroundColor:z}}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-3xl md:text-4xl font-black text-gray-900 dark:text-white uppercase tracking-tight",children:T}),b>0&&h[0]&&(0,s.jsxs)("p",{className:"text-xs text-gray-400 mt-0.5",children:[b,"+ articles \xb7 updated ",g(h[0].date)]})]}),(0,s.jsx)(n(),{href:`/categoria/${e}`,className:"ml-auto flex items-center gap-1.5 text-xs font-semibold px-3 py-1.5 rounded-full border border-gray-200 dark:border-white/10 text-gray-500 hover:border-[#b91751] hover:text-[#b91751] transition-all",children:"\uD83C\uDDF2\uD83C\uDDFD Espa\xf1ol"})]})})}),(0,s.jsxs)("main",{className:"max-w-7xl mx-auto px-4 md:px-6 py-8",children:[v&&(0,s.jsx)("div",{className:"animate-pulse space-y-8",children:(0,s.jsxs)("div",{className:"grid lg:grid-cols-12 gap-6",children:[(0,s.jsx)("div",{className:"lg:col-span-7 h-80 bg-gray-100 dark:bg-white/5 rounded-2xl"}),(0,s.jsxs)("div",{className:"lg:col-span-5 space-y-4",children:[(0,s.jsx)("div",{className:"h-36 bg-gray-100 dark:bg-white/5 rounded-2xl"}),(0,s.jsx)("div",{className:"h-36 bg-gray-100 dark:bg-white/5 rounded-2xl"})]})]})}),!v&&0===h.length&&(0,s.jsxs)("div",{className:"text-center py-20",children:[(0,s.jsx)("i",{className:"ri-article-line text-5xl text-gray-300 mb-4 block"}),(0,s.jsxs)("p",{className:"text-gray-500",children:["No articles found. ",(0,s.jsx)(n(),{href:`/categoria/${e}`,className:"text-[#b91751] hover:underline",children:"View in Spanish"})]})]}),!v&&h.length>0&&(0,s.jsxs)("div",{className:"space-y-8",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5",children:[M&&(0,s.jsxs)(n(),{href:(0,x.KI)(M),className:"lg:col-span-7 group relative rounded-2xl overflow-hidden block",style:{minHeight:"320px"},children:[(0,s.jsx)(o.default,{src:(0,x.AF)(M,"large"),alt:(0,x.pT)(M),fill:!0,priority:!0,sizes:"(max-width:1024px) 100vw, 58vw",className:"object-cover object-center group-hover:scale-105 transition-transform duration-700"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/60 to-black/10"}),(0,s.jsx)(m.A,{post:M,size:"lg"}),(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-end p-6",children:[(0,s.jsx)("span",{className:"inline-flex items-center text-xs font-bold uppercase tracking-wider text-white px-3 py-1 rounded-full self
1-start mb-3",style:{backgroundColor:z},children:(0,x.Vd)(M).name}),(0,s.jsx)("h2",{className:"text-xl md:text-2xl font-black text-white leading-tight mb-2 group-hover:text-[#f9a8c9] transition-colors",children:(0,x.pT)(M)}),(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs text-white/60",children:[(0,s.jsx)("time",{children:g(M.date)}),(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)("i",{className:"ri-time-line"})," ",(0,x.k6)(M)]})]})]})]}),(0,s.jsx)("div",{className:"lg:col-span-5 flex flex-col gap-4",children:F.map(e=>(0,s.jsxs)(n(),{href:(0,x.KI)(e),className:"group flex gap-4 p-4 rounded-2xl border border-gray-100 dark:border-white/10 bg-white dark:bg-[#111] hover:border-[#b91751]/30 transition-all",children:[(0,s.jsxs)("div",{className:"relative w-24 h-20 rounded-xl overflow-hidden flex-shrink-0",children:[(0,s.jsx)(o.default,{src:(0,x.AF)(e,"thumbnail"),alt:(0,x.pT)(e),fill:!0,sizes:"96px",className:"object-cover group-hover:scale-105 transition-transform duration-500"}),(0,s.jsx)(m.A,{post:e,size:"xs"})]}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("span",{className:"inline-flex items-center text-xs font-black text-white px-2 py-0.5 rounded-full mb-1.5",style:{backgroundColor:z},children:(0,x.Vd)(e).name}),(0,s.jsx)("h3",{className:"text-sm font-bold text-gray-900 dark:text-white leading-snug line-clamp-2 group-hover:text-[#b91751] transition-colors",children:(0,x.pT)(e)}),(0,s.jsx)("span",{className:"text-xs text-gray-400 mt-1 block",children:g(e.date)})]})]},e.id))})]}),I.length>0&&(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:I.map(e=>(0,s.jsxs)(n(),{href:(0,x.KI)(e),className:"group flex flex-col",children:[(0,s.jsxs)("div",{className:"relative w-full rounded-xl overflow-hidden mb-2.5",style:{height:"140px"},children:[(0,s.jsx)(o.default,{src:(0,x.AF)(e,"medium"),alt:(0,x.pT)(e),fill:!0,sizes:"(max-width:640px) 50vw, 25vw",className:"object-cover group-hover:scale-105 transition-transform duration-500"}),(0,s.jsx)(m.A,{post:e,size:"sm"})]}),(0,s.jsx)("h3",{className:"text-sm font-bold text-gray-900 dark:text-white leading-snug line-clamp-2 group-hover:text-[#b91751] transition-colors mb-1",children:(0,x.pT)(e)}),(0,s.jsx)("span",{className:"text-xs text-gray-400",children:g(e.date)})]},e.id))}),_>1&&(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 pt-6",children:[(0,s.jsx)("button",{onClick:()=>{k>1&&K(k-1)},disabled:1===k||N,className:"w-9 h-9 flex items-center justify-center rounded-full border-2 font-bold transition-all disabled:opacity-30",style:{borderColor:z,color:z},children:(0,s.jsx)("i",{className:"ri-arrow-left-s-line"})}),Array.from({length:Math.min(5,_)},(e,a)=>{let t=_<=5||k<=3?a+1:k>=_-2?_-4+a:k-2+a;return(0,s.jsx)("button",{onClick:()=>K(t),disabled:N,className:"w-9 h-9 flex items-center justify-center rounded-full border-2 text-sm font-black transition-all",style:k===t?{backgroundColor:z,borderColor:z,color:"#fff"}:{borderColor:"transparent",color:"inherit"},children:String(t)},t)}),(0,s.jsx)("button",{onClick:()=>{k<_&&K(k+1)},disabled:k>=_||N,className:"w-9 h-9 flex items-center justify-center rounded-full border-2 font-bold transition-all disabled:opacity-30",style:{borderColor:z,color:z},children:(0,s.jsx)("i",{className:"ri-arrow-right-s-line"})})]})]})]}),(0,s.jsx)(c.default,{})]})}}}]);

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.