PageSourceSearch

https://nuevanews.com/_next/static/chunks/9332.4825d4f67ea6f63a.js

js nuevanews.com collected 2026-10-03 02:39:18 UTC 6,037 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9332],{1732:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>c});var l=s(5155),r=s(2115),a=s(6676),i=s(2762);i.GlobalWorkerOptions.workerSrc="/pdf.worker.min.js";let n=(0,r.forwardRef)((e,t)=>{let{pageNum:s,pdfDoc:a,isLoading:i}=e,n=(0,r.useRef)(null),[c,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!a||!n.current||s<1||s>a.numPages)return;let e=!1;return(async()=>{try{let t=await a.getPage(s),l=t.getViewport({scale:1.8}),r=n.current;r.width=l.width,r.height=l.height,await t.render({canvasContext:r.getContext("2d"),viewport:l}).promise,e||o(!0)}catch{}})(),()=>{e=!0}},[a,s]),(0,l.jsxs)("div",{ref:t,className:"relative w-full h-full bg-white overflow-hidden",children:[(!c||i)&&(0,l.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50",children:(0,l.jsx)("div",{className:"w-6 h-6 rounded-full border-2 border-t-transparent animate-spin",style:{borderColor:"#b91751",borderTopColor:"transparent"}})}),(0,l.jsx)("canvas",{ref:n,className:"w-full h-full object-fill"})]})});function c(e){let{pdfUrl:t,title:s,usePortrait:c=!1}=e,[o,d]=(0,r.useState)(null),[x,u]=(0,r.useState)(0),[h,f]=(0,r.useState)(!0),[p,m]=(0,r.useState)(""),[g,w]=(0,r.useState)(0),b=(0,r.useRef)(null);(0,r.useEffect)(()=>(f(!0),m(""),i.getDocument({url:t,withCredentials:!1}).promise.then(e=>{d(e),u(e.numPages),f(!1)}).catch(e=>{console.error("[PDFFlipBook] load error:",e),m("No se pudo cargar el peri\xf3dico. Intenta de nuevo."),f(!1)}),()=>{d(null)}),[t]);let j=Math.ceil(x/2);return h?(0,l.jsxs)("div",{className:"w-full h-full flex flex-col items-center justify-center gap-4 bg-[#1a0a0a]",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"w-16 h-20 rounded-lg flex items-center justify-center",style:{background:"linear-gradient(135deg,#7a0d35,#b91751)"},children:(0,l.jsx)("i",{className:"ri-newspaper-fill text-white text-3xl"})}),(0,l.jsx)("div",{className:"absolute -inset-2 rounded-xl border-2 border-[#b91751]/40 animate-ping"})]}),(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("p",{className:"text-white font-black",children:"Cargando peri\xf3dico…"}),(0,l.jsx)("p",{className:"text-white/50 text-sm mt-1",children:"Preparando las p\xe1ginas"})]})]}):p?(0,l.jsxs)("div",{className:"w-full h-full flex flex-col items-center justify-center gap-3 bg-[#1a0a0a]",children:[(0,l.jsx)("i",{className:"ri-error-warning-line text-4xl text-red-400"}),(0,l.jsx)("p",{className:"text-white text-sm",children:p}),(0,l.jsx)("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 rounded-full text-xs font-bold text-white cursor-pointer",style:{backgroundColor:"#b91751"},children:"Recargar"})]}):(0,l.jsxs)("div",{className:"w-full h-full flex flex-col bg-[#1a0a0a] rounded-2xl overflow-hidden select-none",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-4 py-2.5 flex-shrink-0",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(8px)"},children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"w-6 h-6 rounded-full flex items-center justify-center",style:{backgroundColor:"#b91751"},children:(0,l.jsx)("i",{className:"ri-newspaper-fill text-white",style:{fontSize:"11px"}})}),(0,l.jsx)("span",{className:"text-white text-xs font-black",children:s})]}),(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("span",{className:"text-white/50 text-xs",children:c?`P\xe1g. ${g+1} / ${x}`:`P\xe1g. ${2*g+1}–${Math.min(2*g+2,x)} / ${x}`}),(0,l.jsx)("button",{onClick:()=>b.current?.pageFlip().flipPrev(),className:"w-7 h-7 rounded-full bg-white/15 hover:bg-white/30 text-white flex items-center justify-center cursor-pointer transition-colors",children:(0,l.jsx)("i",{className:"ri-arrow-left-s-line text-sm"})}),(0,l.jsx)("button",{onClick:()=>b.current?.pageFlip().flipNext(),className:"w-7 h-7 rounded-full bg-white/15 hover:bg-white/30 text-white flex items-center justify-center cursor-pointer transition-colors",children:(0,l.jsx)("i",{className:"ri-arrow-right-s-line text-sm"})})]})]}),(0,l.jsx)("div",{className:"flex-1 flex items-center justify-center p-4 overflow-hidden",children:(0,l.jsx)(a.A,{ref:b,width:280,height:280,size:"stretch",minWidth:280,maxWidth:500,minHeight:400,maxHeight:700,drawShadow:!0,maxShadowOpacity:.5,flippingTime:700,usePortrait:c,orientation:c?"portrait":"auto",startPage:0,showCover:!c,mobileScrollSupport:!1,onFlip:e=>w(e.data),className:"shadow-2xl",style:{},startZIndex:0,autoSize:!0,clickEventForward:!0,useMouseEvents:!0,swipeDistance:30,showPageCorners:!0,disableFlipByClick:!1,children:Array.from({length:x},(e,t)=>(0,l.jsx)(n,{pageNum:t+1,pdfDoc:o,isLoading:h},t+1))})}),(0,l.jsx)("div",{className:"flex justify-center gap-1.5 py-2 flex-shrink-0",children:Array.from({length:c?x:j},(e,t)=>(0,l.jsx)("button",{onClick:()=>b.current?.pageFlip().flip(c?t:2*t),className:"rounded-full transition-all cursor-pointer",style:{width:g===t?"20px":"6px",height:"6px",backgroundColor:g===t?"#b91751":"rgba(255,255,255,0.25)"}},t))})]})}n.displayName="FlipPage",(0,r.forwardRef)((e,t)=>{let{pdfDoc:s,title:a}=e,i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{s&&i.current&&s.getPage(1).then(e=>{let t=e.getViewport({scale:1.8}
1),s=i.current;s.width=t.width,s.height=t.height,e.render({canvasContext:s.getContext("2d"),viewport:t})})},[s]),(0,l.jsxs)("div",{ref:t,className:"relative w-full h-full overflow-hidden shadow-2xl",style:{background:"#1a0a0a"},children:[(0,l.jsx)("canvas",{ref:i,className:"w-full h-full object-cover"}),(0,l.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-4",style:{background:"linear-gradient(to top, rgba(0,0,0,0.8), transparent)"},children:[(0,l.jsx)("p",{className:"text-white text-xs font-black uppercase tracking-widest opacity-70",children:"Nueva News"}),(0,l.jsx)("p",{className:"text-white text-sm font-black",children:a})]})]})}).displayName="CoverPage"},1815:()=>{},2787:()=>{},3237:()=>{},7492:()=>{},7640:()=>{}}]);

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.