PageSourceSearch

https://www.terra.com.mx/_next/static/chunks/2baby7z63zi2i.js

js terra.com.mx collected 2026-10-02 02:38:58 UTC 5,519 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60763,e=>{"use strict";var t=e.i(280515),l=e.i(556220);e.s(["GptPageTargeting",0,function(e){let{targeting:r}=e;return(0,t.useEffect)(()=>{(0,l.setPageTargeting)(r)},[r]),null}])},833772,e=>{"use strict";var t=e.i(280515);e.s(["PageContext",0,function(e){let{tipo:l,seccionId:r,seccionSlug:i,temaId:n,autorId:o,noticiaId:s,tenantSlug:a}=e;return(0,t.useEffect)(()=>{let e=document.documentElement,t=["page","seccion","seccionId","temaId","autorId","noticiaId","e80Tenant"],d={};for(let l of t)d[l]=e.dataset[l];let c=(t,l)=>{null==l||""===l?delete e.dataset[t]:e.dataset[t]=String(l)};return c("page",l),c("seccion",i),c("seccionId",r),c("temaId",n),c("autorId",o),c("noticiaId",s),c("e80Tenant",a),()=>{for(let l of t)void 0===d[l]?delete e.dataset[l]:e.dataset[l]=d[l]}},[l,r,i,n,o,s,a]),null}])},932793,e=>{"use strict";var t=e.i(289704),l=e.i(280515);e.s(["MobilePortadaReels",0,function(e){var r;let{pills:i,reels:n}=e,o=(0,l.useRef)(null),s=(0,l.useRef)([]),a=(0,l.useRef)({}),d=(0,l.useRef)(!1),[c,u]=(0,l.useState)((null==(r=i[0])?void 0:r.id)??null);(0,l.useEffect)(()=>{let e=o.current;if(!e)return;let t=()=>{let t=e.getBoundingClientRect().top+window.scrollY;e.style.height=`${Math.max(0,window.innerHeight-t)}px`},l=document.documentElement,r=l.style.overflow,i=document.body.style.overflow;window.scrollTo(0,0),l.style.overflow="hidden",document.body.style.overflow="hidden",t();let n=requestAnimationFrame(t);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{cancelAnimationFrame(n),l.style.overflow=r,document.body.style.overflow=i,window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[]),(0,l.useEffect)(()=>{let e=o.current;if(!e)return;let t=new IntersectionObserver(e=>{if(d.current)return;let t=null;for(let l of e){if(!l.isIntersecting)continue;let e=s.current.indexOf(l.target);e<0||(!t||l.intersectionRatio>t.ratio)&&(t={idx:e,ratio:l.intersectionRatio})}if(t&&t.ratio>=.5){var l;let e=null==(l=n[t.idx])?void 0:l.pillId;null!=e&&u(e)}},{root:e,threshold:[.5,.75]});for(let e of s.current)e&&t.observe(e);return()=>t.disconnect()},[n]),(0,l.useEffect)(()=>{var e;null!=c&&(null==(e=a.current[c])||e.scrollIntoView({inline:"center",block:"nearest",behavior:"smooth"}))},[c]);let m=(0,l.useCallback)(e=>{let t=n.findIndex(t=>t.pillId===e),l=s.current[t];!(t<0)&&l&&(d.current=!0,u(e),l.scrollIntoView({behavior:"smooth",block:"start"}),window.setTimeout(()=>{d.current=!1},500))},[n]);return(0,t.jsxs)("div",{className:"mobile-portada",children:[(0,t.jsx)("div",{className:"mobile-portada-pills",children:i.map(e=>(0,t.jsx)("button",{ref:t=>{a.current[e.id]=t},type:"button",onClick:()=>m(e.id),"aria-current":e.id===c?"true":void 0,className:e.id===c?"mobile-portada-pill mobile-portada-pill--active":"mobile-portada-pill",children:e.label},e.id))}),(0,t.jsx)("div",{ref:o,className:"mobile-portada-feed",children:n.map((e,l)=>(0,t.jsx)("section",{ref:e=>{s.current[l]=e},className:"mobile-portada-reel-slot",children:e.content},e.id))})]})}])},289128,e=>{"use strict";var t=e.i(289704),l=e.i(280515),r=e.i(734461),i=e.i(867165),n=e.i(736264),o=e.i(322426);let s=(0,r.default)(()=>e.A(198636).then(e=>e.VideoPlayer),{loadableGenerated:{modules:[789278]},ssr:!1});e.s(["MobilePortadaVideoReel",0,function(e){let{item:r}=e,a=(0,l.useRef)(null),[d,c]=(0,l.useState)(!1),u=(0,n.useLocale)(),m=r.thumbnailUrl??(r.bunnyVideoId?`https://${r.videoCdnHost}/${r.bunnyVideoId}/thumbnail.jpg`:null);return(0,l.useEffect)(()=>{if(!d)return;let e=a.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;t&&t.intersectionRatio<.5&&c(!1)},{threshold:[0,.5]});return t.observe(e),()=>t.disconnect()},[d]),(0,t.jsx)("div",{ref:a,className:"mp-reel mp-reel--video",children:d?(0,t.jsxs)(t.Fragment,{children:[r.videoUrl?(0,t.jsx)("video",{className:"mp-reel__video",src:r.videoUrl,poster:m??void 0,controls:!0,autoPlay:!0,playsInline:!0,children:(0,o.t)(u,"Tu navegador no soporta video HTML5.","Your browser does not support HTML5 video.")}):r.bunnyVideoId?(0,t.jsx)(s,{cdnHostname:r.videoCdnHost,videoId:r.bunnyVideoId,autoplay:!0,orientation:"vertical",poster:m,title:r.titulo,className:"absolute inset-0 h-full w-full"}):null,(0,t.jsxs)("div",{className:"mp-reel__links",children:[(0,t.jsx)("a",{href:r.landingHref,className:"mp-reel__link",children:(0,o.t)(u,"Ver página del video","Go to video page")}),r.articleHref&&(0,t.jsx)("a",{href:r.articleHref,className:"mp-reel__link",children:(0,o.t)(u,"Ver la nota","Read the story")})]})]}):(0,t.jsxs)(t.Fragment,{children:[m?(0,t.jsx)("img",{className:"mp-reel__img",src:m,alt:"",loading:"lazy",decoding:"async"}):(0,t.jsx)("div",{className:"mp-reel__img mp-reel__img--placeholder"}),(0,t.jsx)("div",{className:"mp-reel__scrim"}),(0,t.jsxs)("div",{className:"mp-reel__content",children:[(0,t.jsx)("span",{className:"mp-reel__kicker",children:r.kicker||"Video"}),(0,t.jsx)("h2",{className:"mp-reel__title",children:(0,t.jsx)("span",{children:r.titulo})})]}),(0,t.jsx)("button",{type:"button",className:"mp-reel__play",onClick:()=>c(!0),"aria-label":`${(0,o.t)(u,"Reproducir","Play")}: ${r.titulo}`,children:(0,t.jsx)("span",{className:"mp-reel__play-icon","aria-hidden":"true",children:(0,t.jsx)(i.Play,{className:"size-8 fill-current"})})})]})})}])},198636,e=>{e.v(t=>Promise.all(["static/chunks/2mks_-ola6m44.js"].map(t=>e.l(t))).then(()=>t(789278)))}]);

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.