PageSourceSearch

https://pilardetodos.com.ar/_next/static/chunks/1625.ef88bc37519d15ff.js

js pilardetodos.com.ar collected 2026-10-02 12:58:45 UTC 15,476 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1625],{74601:function(e,n,t){"use strict";var r=t(72006),i=t(4405),a=t(4637),o=t(88521),l=t(17251),s=t.n(l),c=t(60208),u=t.n(c),d=t(61016),v=t.n(d),h=t(93205),f=function(e){var n,t=e.src,l=e.focalPoint,c=void 0===l?null:l,d=e.alt,f=e.className,m=e.width,p=e.height,_=e.sizes,g=e.quality,y=e.objectFit,w=void 0===y?"cover":y,x=e.priority,S=void 0!==x&&x,L=e.isHero,k=void 0!==L&&L,j=e.layout,B=e.feed,b=void 0!==B&&B;if(!t)return null;var P=t.includes(o.mediaUrl)&&(0,h.dE)(t),N=h.eY&&h.Oq?h.xY:h.O,T=null==c?void 0:null===(n=c.thumbor)||void 0===n?void 0:n.objectPosition,I=T&&null!=T.x&&null!=T.y?"".concat(T.x,"% ").concat(T.y,"%"):void 0,C=9/16,E=function(e){return b?Math.round(e/C):m&&p&&!(100===m&&100===p)?Math.round(e*p/m):0},D=function(){if(!P)return t;var e=m?100==m?768:m:768;return N({src:t,width:e,height:E(e),quality:g||60,focalPoint:c,isHero:k,feed:b})};return m&&p?(0,a.jsxs)(a.Fragment,{children:[S&&(0,a.jsx)(v(),{children:(0,a.jsx)("link",{rel:"preload",as:"image",href:D(),fetchpriority:"high",imagesizes:_,imagesrcset:P?b?"".concat(N({src:t,width:405,height:E(405),quality:g||60,focalPoint:c,feed:b})," 405w,\n      ").concat(N({src:t,width:628,height:E(628),quality:g||60,focalPoint:c,feed:b})," 628w,\n      ").concat(N({src:t,width:720,height:E(720),quality:g||60,focalPoint:c,feed:b})," 720w,\n      ").concat(N({src:t,width:800,height:E(800),quality:g||60,focalPoint:c,feed:b})," 800w"):"".concat(N({src:t,width:384,height:E(384),quality:g||60,focalPoint:c,isHero:k})," 384w,\n    ").concat(N({src:t,width:768,height:E(768),quality:g||60,focalPoint:c,isHero:k})," 768w,\n    ").concat(N({src:t,width:1024,height:E(1024),quality:g||60,focalPoint:c,isHero:k})," 1024w,\n    ").concat(N({src:t,width:1500,height:E(1500),quality:g||60,focalPoint:c,isHero:k})," 1500w"):null})}),(0,a.jsx)(s(),{src:t,loader:function(e){return P?N((0,i.Z)((0,r.Z)({},e),{height:E(e.width),focalPoint:c,isHero:k,feed:b})):null},unoptimized:!P,alt:d,className:f,quality:g||"60",priority:S,fetchpriority:S?"high":"low",decoding:S?"sync":"async",width:m,height:b?Math.round(m/C):p,sizes:b?"(max-width: 875px) 628px, (max-width: 1200px) 405px, (max-width: 1400px) 720px, 800px":_||"(max-width: 768px) 100vw, (max-width: 991px) 70vw, 50vw",style:(0,r.Z)({objectFit:w},I&&{objectPosition:I})})]}):(0,a.jsxs)(a.Fragment,{children:[S&&(0,a.jsx)(v(),{children:(0,a.jsx)("link",{rel:"preload",as:"image",href:D(),fetchpriority:"high",imagesrcset:b?"(max-width: 875px) 628px, (max-width: 1200px) 405px, (max-width: 1400px) 720px, 800px":_||"(max-width: 576px) 100vw,(max-width: 768px) 100vw,(max-width: 991px) 80vw,(max-width: 1200px) 50vw"})}),(0,a.jsx)(u(),{src:t,loader:function(e){return P?N((0,i.Z)((0,r.Z)({},e),{focalPoint:c,isHero:k,feed:b})):null},unoptimized:!P,alt:d,className:f,quality:g||"60",layout:j||"fill",objectFit:b?"cover":w,objectPosition:I,priority:S,fetchpriority:S?"high":"low",decoding:S?"sync":"async",sizes:b?"(max-width: 875px) 628px, (max-width: 1200px) 405px, (max-width: 1400px) 720px, 800px":_||"(max-width: 576px) 100vw,(max-width: 768px) 100vw,(max-width: 991px) 80vw,(max-width: 1200px) 50vw"})]})};n.Z=f},21625:function(e,n,t){"use strict";t.r(n),t.d(n,{LiveStreamBanner:function(){return w},resolveRefreshInterval:function(){return _}});var r=t(4637),i=t(59496),a=t(31543),o=t(51478),l=t(74601),s=t(26181),c=t(2272),u=function(e){return!!e&&"object"==typeof e&&"boolean"==typeof e.isLive&&void 0===e.error&&void 0===e.code},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&e.length>0||n&&n.length>0},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(!d(e,n))return!0;var r=t.getDay(),i=0===r?6:r-1,a=function(e){return e<10?"0".concat(e):"".concat(e)},o="".concat(a(t.getHours()),":").concat(a(t.getMinutes()));if(n&&n.length&&n.some(function(e){return e&&Array.isArray(e.days)&&e.days.length>0})){var l=n.filter(function(e){return Array.isArray(e.days)&&e.days.map(String).includes(String(i))});if(!l||0===l.length)return!1;var s=!0,c=!1,u=void 0;try{for(var v,h=l[Symbol.iterator]();!(s=(v=h.next()).done);s=!0){var f=v.value,m=f.start||"",p=f.end||"";if(m&&p){if(m<=p){if(o>=m&&o<p)return!0}else if(o>=m||o<p)return!0}}}catch(_){c=!0,u=_}finally{try{s||null==h.return||h.return()}finally{if(c)throw u}}return!1}if(e&&e.length>0&&!e.map(String).includes(String(i)))return!1;if(n&&n.length>0){var g=!0,y=!1,w=void 0;try{for(var x,S=n[Symbol.iterator]();!(g=(x=S.next()).done);g=!0){var L=x.value,k=L.start||"",j=L.end||"";
1if(k&&j){if(k<=j){if(o>=k&&o<j)return!0}else if(o>=k||o<j)return!0}}}catch(B){y=!0,w=B}finally{try{g||null==S.return||S.return()}finally{if(y)throw w}}}return!1},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(!d(e,n))return null;var r=t.getDay(),i=0===r?6:r-1,a=60*t.getHours()+t.getMinutes(),o=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),l=function(e){var n,t=(0,c.Z)(String(e).split(":").map(Number),2);return 60*t[0]+t[1]},s=n&&n.length&&n.some(function(e){return e&&Array.isArray(e.days)&&e.days.length>0}),u=[];s?u=n.filter(function(e){return Array.isArray(e.days)&&e.days.map(String).includes(String(i))}):n&&n.length>0&&(!e||0===e.length||e.map(String).includes(String(i)))&&(u=n);var v=!0,h=!1,f=void 0;try{for(var m,p=u[Symbol.iterator]();!(v=(m=p.next()).done);v=!0){var _=m.value;if(_.start&&_.end){var g=l(_.start),y=l(_.end);if(g<=y){if(a>=g&&a<y)return{startTs:o+6e4*g,endTs:o+6e4*y}}else{if(a>=g)return{startTs:o+6e4*g,endTs:o+6e4*y+864e5};if(a<y)return{startTs:o+6e4*g-864e5,endTs:o+6e4*y}}}}}catch(w){h=!0,f=w}finally{try{v||null==p.return||p.return()}finally{if(h)throw f}}return null},f=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.hasSchedule,i=t.period;if(!n)return null;var a="".concat(e,"/youtube/live-status/").concat(n),o=new URLSearchParams;return o.append("has_schedule",r?"true":"false"),r&&i&&(o.append("period_start",String(Math.floor(i.startTs/1e3))),o.append("period_end",String(Math.floor(i.endTs/1e3)))),o.toString()&&(a+="?".concat(o.toString())),a},m=t(60805),p=t.n(m),_=function(e){if(!u(e))return 6e5;if(!e.cacheExpiresAt)return 3e5;var n,t=new Date(e.cacheExpiresAt).getTime();if(Number.isNaN(t))return 3e5;return Math.min(Math.max(t-Date.now()+2e3,3e4),e.degraded?18e5:6e5)},g=null,y=new Set,w=function(e){var n=e.data||{},t=n.show_section,c=n.youtube_channel_id,m=n.fontcolor,w=n.background,x=n.logo,S=n.show_logo,L=void 0===S||S,k=n.sponsors,j=void 0===k?[]:k,B=n.schedule_days,b=void 0===B?[]:B,P=n.schedule_ranges,N=void 0===P?[]:P,T=n.initialLiveData,I=void 0===T?null:T,C=(0,i.useState)(!1),E=C[0],D=C[1],Y=(0,i.useState)(!0),F=(Y[0],Y[1]),q=(0,i.useState)(!1),A=q[0],M=q[1],W=(0,i.useState)(function(){return!!u(I)||v(b,N)}),Z=W[0],R=W[1],z=(0,i.useState)(null),H=z[0],V=z[1],G=(0,i.useRef)(null),O=(0,i.useRef)(null),J=(0,i.useRef)(null),K=(0,i.useRef)(null),Q=(0,i.useRef)(!1),U=d(b,N);(0,i.useEffect)(function(){var e=function(){var e,n=v(b,N);n?V(null):Q.current&&(null===(e=K.current)||void 0===e?void 0:e.isLive)?V(Date.now()+9e5):V(function(e){return e&&Date.now()>=e?null:e}),Q.current=n,R(n)};if(e(),U)return J.current=setInterval(e,6e4),function(){J.current&&clearInterval(J.current)}},[U,b,N]);var X=j.filter(function(e){return e&&e.image}),$=(0,a.ZP)(c&&t&&Z?f("https://pilardetodosapiv3.eleco.com.ar/api/v2",c,{hasSchedule:U,period:U?h(b,N):null}):null,o._,{fallbackData:u(I)?I:void 0,refreshInterval:_,dedupingInterval:1e4}),ee=$.data,en=$.isLoading,et=(null==ee?void 0:ee.isLive)&&(null==ee?void 0:ee.videoId)?ee:null,er=!Z&&null!=H&&Date.now()<H,ei=Z?et:er?K.current:null;return((0,i.useEffect)(function(){Z&&(K.current=(null==et?void 0:et.isLive)?et:null)},[Z,et]),(0,i.useEffect)(function(){F(en)},[en]),(0,i.useEffect)(function(){if(!(null==ei?void 0:ei.videoId)){D(!1);return}var e=function(){if(O.current){if(G.current&&G.current.destroy){try{G.current.destroy()}catch(e){console.error("Error destroying player:",e)}G.current=null}try{G.current=new window.YT.Player(O.current,{videoId:ei.videoId,playerVars:{autoplay:1,mute:1,rel:0,modestbranding:1,controls:1},events:{onReady:function(){D(!0),F(!1)},onStateChange:function(e){e.data===window.YT.PlayerState.ENDED&&(D(!1),V(null),K.current=null)},onError:function(){console.error("YouTube player error"),D(!1),F(!1)}}})}catch(n){console.error("Error initializing YouTube player:",n),D(!1),F(!1)}}};return y.add(e),(g||(g=new Promise(function(e){var n=null,t=null,r=function(){n&&clearTimeout(n),t&&clearInterval(t)}
1,i=function(){r(),y.forEach(function(e){try{e()}catch(n){console.error("Error initializing YouTube player:",n)}}),y.clear(),e()};if(window.YT&&window.YT.Player){i();return}if(n=setTimeout(function(){r(),console.warn("YouTube API failed to load within timeout"),g=null,e()},1e4),document.querySelector('script[src*="youtube.com/iframe_api"]')){t=setInterval(function(){window.YT&&window.YT.Player&&i()},100);return}var a=document.createElement("script");a.src="https://www.youtube.com/iframe_api",a.async=!0,a.onerror=function(){r(),console.error("YouTube API script failed to load"),g=null,e()};var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(a,o);var l=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){if("function"==typeof l)try{l()}catch(e){console.error("Error in previous YouTube API handler:",e)}i()}}))).then(function(){window.YT&&window.YT.Player&&O.current&&(e(),y.delete(e))}),function(){if(y.delete(e),G.current&&G.current.destroy)try{G.current.destroy()}catch(n){console.error("Error destroying player:",n)}G.current=null}},[null==ei?void 0:ei.videoId]),t&&(Z||er)&&(null==ei?void 0:ei.isLive))?(0,r.jsxs)("section",{className:"container ".concat(p().banner),children:[!E&&(0,r.jsxs)("div",{className:p().skeletonContent,children:[(0,r.jsxs)("div",{className:p().skeletonLeftColumn,children:[(0,r.jsx)("div",{className:"".concat(p().skeleton," ").concat(p().skeletonLiveBadge)}),(0,r.jsx)("div",{className:"".concat(p().skeleton," ").concat(p().skeletonLogo)}),(0,r.jsx)("div",{className:"".concat(p().skeleton," ").concat(p().skeletonTitle)}),(0,r.jsx)("div",{className:"".concat(p().skeleton," ").concat(p().skeletonViewers)}),X.length>0&&(0,r.jsx)("div",{className:"".concat(p().skeleton," ").concat(p().skeletonSponsors)})]}),(0,r.jsx)("div",{className:p().skeletonRightColumn,children:(0,r.jsx)("div",{className:p().skeletonPlayer,children:(0,r.jsx)("div",{className:p().skeletonPlayerInner,children:(0,r.jsx)("div",{className:"".concat(p().skeleton," ").concat(p().skeletonPlayIcon)})})})})]}),(null==ei?void 0:ei.isLive)&&(0,r.jsxs)("div",{className:"container ".concat(p().content),style:{display:E?"grid":"none",backgroundColor:w||"#000000"},children:[(0,r.jsxs)("div",{className:p().leftColumn,style:{color:"white"===m?"#ffffff":"black"===m?"#000000":"#ffffff"},children:[(0,r.jsxs)("div",{className:p().logoWrapper,children:[(0,r.jsxs)("div",{className:p().liveBadge,children:[(0,r.jsx)("span",{className:p().liveIndicator,children:"●"}),(0,r.jsx)("span",{className:p().liveText,children:"EN VIVO"})]}),L&&x?(0,r.jsx)("div",{className:p().logoContainer,children:(0,r.jsx)(l.Z,{src:x,alt:"Logo",width:200,height:80,objectFit:"contain"})}):null,L&&!x?(0,r.jsx)("div",{className:p().logoContainer,children:(0,r.jsx)(l.Z,{src:s.Z.logo,alt:"Logo",width:200,height:80,objectFit:"contain"})}):null]}),ei.title&&(0,r.jsx)("h2",{className:p().programTitle,children:ei.title}),ei.viewerCount&&(0,r.jsxs)("p",{className:p().viewerCount,children:["\uD83D\uDC65 ",ei.viewerCount.toLocaleString("es-AR")," espectadores"]}),j&&X.length>0&&(0,r.jsx)("div",{className:p().sponsorsContainer,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},children:(0,r.jsxs)("div",{className:p().sponsorsTrack,style:{animationPlayState:A?"paused":"running"},children:[X.map(function(e,n){return(0,r.jsx)("div",{className:p().sponsorItem,children:e.link?(0,r.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(l.Z,{src:e.image,alt:"Sponsor ".concat(n+1),width:150,height:60,objectFit:"contain"})}):(0,r.jsx)("div",{style:{cursor:"default"},children:(0,r.jsx)(l.Z,{src:e.image,alt:"Sponsor ".concat(n+1),width:150,height:60,objectFit:"contain"})})},n)}),X.map(function(e,n){return(0,r.jsx)("div",{className:p().sponsorItem,children:e.link?(0,r.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(l.Z,{src:e.image,alt:"Sponsor ".concat(n+1),width:150,height:60,objectFit:"contain"})}):(0,r.jsx)("div",{style:{cursor:"default"},children:(0,r.jsx)(l.Z,{src:e.image,alt:"Sponsor ".concat(n+1),width:150,height:60,objectFit:"contain"})})},"duplicate-".concat(n))})]})})]}),(0,r.jsx)("div",{className:p().rightColumn,children:(0,r.jsx)("div",{className:p().playerWrapper,children:(0,r.jsx)("div",{ref:O,className:p().player})})})]})]}):null}},60805:function(e){e.exports={"grid-with-ads":"LiveStreamBanner_grid-with-ads__BQy4n",note:"LiveStreamBanner_note__0LWDq",maxWidthContainer:"LiveStreamBanner_maxWidthContainer__rrWkp",adPlaceholder:"LiveStreamBanner_adPlaceholder__Fh5nJ",advertisement:"LiveStreamBanner_advertisement__jQyzn",banner:"LiveStreamBanner_banner___urGP",slideIn:"LiveStreamBanner_slideIn__Bh4Gv",loadingOverlay:"LiveStreamBanner_loadingOverlay__LMcfH",spinner:"LiveStreamBanner_spinner__PtBMF",spin:"LiveStreamBanner_spin__I7Nyz",skeleton:"LiveStreamBanner_skeleton__upN6c",shimmer:"LiveStreamBanner_shimmer__wWp3u",skeletonPulse:"LiveStreamBanner_skeletonPulse__DzbTo",skeletonContent:"LiveStreamBanner_skeletonContent__A11kl",skeletonLeftColumn:"LiveStreamBanner_skeletonLeftColumn__q5_iD",skeletonLiveBadge:"LiveStreamBanner_skeletonLiveBadge__SiWdL",skeletonLogo:"LiveStreamBanner_skeletonLogo__LEWr0",skeletonTitle:"LiveStreamBanner_skeletonTitle__3W_G7",skeletonViewers:"LiveStreamBanner_skeletonViewers__QFIxI",skeletonSponsors:"LiveStreamBanner_skeletonSponsors__osJPG",skeletonRightColumn:"LiveStreamBanner_skeletonRightColumn__n87rP",skeletonPlayer:"LiveStreamBanner_skeletonPlayer__S9pkl",skeletonPlayerInner:"LiveStreamBanner_skeletonPlayerInner__LV58K",skeletonPlayIcon:"LiveStreamBanner_skeletonPlayIcon__3BcbV",content:"LiveStreamBanner_content__u0etQ",leftColumn:"LiveStreamBanner_leftColumn__vchgA",logoWrapper:"LiveStreamBanner_logoWrapper__4ITPN",liveBadge:"LiveStreamBanner_liveBadge__necke",badgePulse:"LiveStreamBanner_badgePulse__nebEk",liveIndicator:"LiveStreamBanner_liveIndicator__gox9F",pulse:"LiveStreamBanner_pulse__GCjVq",liveText:"LiveStreamBanner_liveText__jei2t",logoContainer:"LiveStreamBanner_logoContainer__XY4IW",programTitle:"LiveStreamBanner_programTitle__pEMMP",viewerCount:"LiveStreamBanner_viewerCount__Y1Fgi",sponsorsContainer:"LiveStreamBanner_sponsorsContainer__FcGDD",sponsorsTrack:"LiveStreamBanner_sponsorsTrack__5Jqne",infiniteScroll:"LiveStreamBanner_infiniteScroll___v4P4",sponsorItem:"LiveStreamBanner_sponsorItem__FHZWm",rightColumn:"LiveStreamBanner_rightColumn__gS1yb",playerWrapper:"LiveStreamBanner_playerWrapper__KbVp_",player:"LiveStreamBanner_player__7JKKz"}}}]);

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.