PageSourceSearch

https://www.notife.com/_next/static/chunks/1625.12d272824accd445.js

js notife.com collected 2026-10-02 06:43:59 UTC 12,229 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1625],{21625:function(e,n,r){"use strict";r.r(n),r.d(n,{LiveStreamBanner:function(){return S},resolveRefreshInterval:function(){return g}});var t=r(4637),a=r(59496),o=r(453),i=r(51478),l=r(74601),s=r(24952),c=r(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]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(!d(e,n))return!0;var t=r.getDay(),a=0===t?6:t-1,o=function(e){return e<10?"0".concat(e):"".concat(e)},i="".concat(o(r.getHours()),":").concat(o(r.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(a))});if(!l||0===l.length)return!1;var s=!0,c=!1,u=void 0;try{for(var v,f=l[Symbol.iterator]();!(s=(v=f.next()).done);s=!0){var _=v.value,m=_.start||"",h=_.end||"";if(m&&h){if(m<=h){if(i>=m&&i<h)return!0}else if(i>=m||i<h)return!0}}}catch(g){c=!0,u=g}finally{try{s||null==f.return||f.return()}finally{if(c)throw u}}return!1}if(e&&e.length>0&&!e.map(String).includes(String(a)))return!1;if(n&&n.length>0){var p=!0,y=!1,S=void 0;try{for(var L,k=n[Symbol.iterator]();!(p=(L=k.next()).done);p=!0){var w=L.value,B=w.start||"",x=w.end||"";if(B&&x){if(B<=x){if(i>=B&&i<x)return!0}else if(i>=B||i<x)return!0}}}catch(j){y=!0,S=j}finally{try{p||null==k.return||k.return()}finally{if(y)throw S}}}return!1},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(!d(e,n))return null;var t=r.getDay(),a=0===t?6:t-1,o=60*r.getHours()+r.getMinutes(),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime(),l=function(e){var n,r=(0,c.Z)(String(e).split(":").map(Number),2);return 60*r[0]+r[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(a))}):n&&n.length>0&&(!e||0===e.length||e.map(String).includes(String(a)))&&(u=n);var v=!0,f=!1,_=void 0;try{for(var m,h=u[Symbol.iterator]();!(v=(m=h.next()).done);v=!0){var g=m.value;if(g.start&&g.end){var p=l(g.start),y=l(g.end);if(p<=y){if(o>=p&&o<y)return{startTs:i+6e4*p,endTs:i+6e4*y}}else{if(o>=p)return{startTs:i+6e4*p,endTs:i+6e4*y+864e5};if(o<y)return{startTs:i+6e4*p-864e5,endTs:i+6e4*y}}}}}catch(S){f=!0,_=S}finally{try{v||null==h.return||h.return()}finally{if(f)throw _}}return null},_=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=r.hasSchedule,a=r.period;if(!n)return null;var o="".concat(e,"/youtube/live-status/").concat(n),i=new URLSearchParams;return i.append("has_schedule",t?"true":"false"),t&&a&&(i.append("period_start",String(Math.floor(a.startTs/1e3))),i.append("period_end",String(Math.floor(a.endTs/1e3)))),i.toString()&&(o+="?".concat(i.toString())),o},m=r(60805),h=r.n(m),g=function(e){if(!u(e))return 6e5;if(!e.cacheExpiresAt)return 3e5;var n,r=new Date(e.cacheExpiresAt).getTime();if(Number.isNaN(r))return 3e5;return Math.min(Math.max(r-Date.now()+2e3,3e4),e.degraded?18e5:6e5)},p=null,y=new Set,S=function(e){var n=e.data||{},r=n.show_section,c=n.youtube_channel_id,m=n.fontcolor,S=n.background,L=n.logo,k=n.show_logo,w=void 0===k||k,B=n.sponsors,x=void 0===B?[]:B,j=n.schedule_days,b=void 0===j?[]:j,T=n.schedule_ranges,N=void 0===T?[]:T,I=n.initialLiveData,P=void 0===I?null:I,C=(0,a.useState)(!1),E=C[0],D=C[1],A=(0,a.useState)(!0),Y=(A[0],A[1]),R=(0,a.useState)(!1),F=R[0],M=R[1],W=(0,a.useState)(function(){return!!u(P)||v(b,N)}),V=W[0],Z=W[1],G=(0,a.useState)(null),q=G[0],z=G[1],H=(0,a.useRef)(null),K=(0,a.useRef)(null),J=(0,a.useRef)(null),O=(0,a.useRef)(null),Q=(0,a.useRef)(!1),U=d(b,N);(0,a.useEffect)(function(){var e=function(){var e,n=v(b,N);n?z(null):Q.current&&(null===(e=O.current)||void 0===e?void 0:e.isLive)?z(Date.now()+9e5):z(function(e){return e&&Date.now()>=e?null:e}),Q.current=n,Z(n)};if(e(),U)return J.current=setInterval(e,6e4),function(){J.current&&clearInterval(J.current)}},[U,b,N]);var X=x.filter(function(e){return e&&e.image}),$=(0,o.ZP)(c&&r&&V?_("https://notifeapiv3.eleco.com.ar/api/v2",c,{hasSchedule:U,period:U?f(b,N):null}):null,i._,{fallbackData:u(P)?P:void 0,refreshInterval:g,dedupingInterval:1e4}),ee=$.data,en=$.isLoading,er=(null==ee?void 0:ee.isLive)&&(null==ee?void 0:ee.videoId)?ee:null,et=!V&&null!=q&&Date.now()<q,ea=V?er:et?O.current:null;return((0,a.useEffect)(function(){V&&(O.current=(null==er?void 0:er.isLive)?er:null)},[V,er]),(0,a.useEffect)(function(){Y(en)},[en]),(0,a.useEffect)(function(){if(!(null==ea?void 0:ea.videoId)){D(!1);return}var e=function(){if(K.current){if(H.current&&H.current.destroy){try{H.current.destroy()}catch(e){console.error("Error destroying player:",e)}H.current=null}
1try{H.current=new window.YT.Player(K.current,{videoId:ea.videoId,playerVars:{autoplay:1,mute:1,rel:0,modestbranding:1,controls:1},events:{onReady:function(){D(!0),Y(!1)},onStateChange:function(e){e.data===window.YT.PlayerState.ENDED&&(D(!1),z(null),O.current=null)},onError:function(){console.error("YouTube player error"),D(!1),Y(!1)}}})}catch(n){console.error("Error initializing YouTube player:",n),D(!1),Y(!1)}}};return y.add(e),(p||(p=new Promise(function(e){var n=null,r=null,t=function(){n&&clearTimeout(n),r&&clearInterval(r)},a=function(){t(),y.forEach(function(e){try{e()}catch(n){console.error("Error initializing YouTube player:",n)}}),y.clear(),e()};if(window.YT&&window.YT.Player){a();return}if(n=setTimeout(function(){t(),console.warn("YouTube API failed to load within timeout"),p=null,e()},1e4),document.querySelector('script[src*="youtube.com/iframe_api"]')){r=setInterval(function(){window.YT&&window.YT.Player&&a()},100);return}var o=document.createElement("script");o.src="https://www.youtube.com/iframe_api",o.async=!0,o.onerror=function(){t(),console.error("YouTube API script failed to load"),p=null,e()};var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(o,i);var l=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){if("function"==typeof l)try{l()}catch(e){console.error("Error in previous YouTube API handler:",e)}a()}}))).then(function(){window.YT&&window.YT.Player&&K.current&&(e(),y.delete(e))}),function(){if(y.delete(e),H.current&&H.current.destroy)try{H.current.destroy()}catch(n){console.error("Error destroying player:",n)}H.current=null}},[null==ea?void 0:ea.videoId]),r&&(V||et)&&(null==ea?void 0:ea.isLive))?(0,t.jsxs)("section",{className:"container ".concat(h().banner),children:[!E&&(0,t.jsxs)("div",{className:h().skeletonContent,children:[(0,t.jsxs)("div",{className:h().skeletonLeftColumn,children:[(0,t.jsx)("div",{className:"".concat(h().skeleton," ").concat(h().skeletonLiveBadge)}),(0,t.jsx)("div",{className:"".concat(h().skeleton," ").concat(h().skeletonLogo)}),(0,t.jsx)("div",{className:"".concat(h().skeleton," ").concat(h().skeletonTitle)}),(0,t.jsx)("div",{className:"".concat(h().skeleton," ").concat(h().skeletonViewers)}),X.length>0&&(0,t.jsx)("div",{className:"".concat(h().skeleton," ").concat(h().skeletonSponsors)})]}),(0,t.jsx)("div",{className:h().skeletonRightColumn,children:(0,t.jsx)("div",{className:h().skeletonPlayer,children:(0,t.jsx)("div",{className:h().skeletonPlayerInner,children:(0,t.jsx)("div",{className:"".concat(h().skeleton," ").concat(h().skeletonPlayIcon)})})})})]}),(null==ea?void 0:ea.isLive)&&(0,t.jsxs)("div",{className:"container ".concat(h().content),style:{display:E?"grid":"none",backgroundColor:S||"#000000"},children:[(0,t.jsxs)("div",{className:h().leftColumn,style:{color:"white"===m?"#ffffff":"black"===m?"#000000":"#ffffff"},children:[(0,t.jsxs)("div",{className:h().logoWrapper,children:[(0,t.jsxs)("div",{className:h().liveBadge,children:[(0,t.jsx)("span",{className:h().liveIndicator,children:"●"}),(0,t.jsx)("span",{className:h().liveText,children:"EN VIVO"})]}),w&&L?(0,t.jsx)("div",{className:h().logoContainer,children:(0,t.jsx)(l.Z,{src:L,alt:"Logo",width:200,height:80,objectFit:"contain"})}):null,w&&!L?(0,t.jsx)("div",{className:h().logoContainer,children:(0,t.jsx)(l.Z,{src:s.Z.logo,alt:"Logo",width:200,height:80,objectFit:"contain"})}):null]}),ea.title&&(0,t.jsx)("h2",{className:h().programTitle,children:ea.title}),ea.viewerCount&&(0,t.jsxs)("p",{className:h().viewerCount,children:["\uD83D\uDC65 ",ea.viewerCount.toLocaleString("es-AR")," espectadores"]}),x&&X.length>0&&(0,t.jsx)("div",{className:h().sponsorsContainer,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},children:(0,t.jsxs)("div",{className:h().sponsorsTrack,style:{animationPlayState:F?"paused":"running"},children:[X.map(function(e,n){return(0,t.jsx)("div",{className:h().sponsorItem,children:e.link?(0,t.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(l.Z,{src:e.image,alt:"Sponsor ".concat(n+1),width:150,height:60,objectFit:"contain"})}):(0,t.jsx)("div",{style:{cursor:"default"},children:(0,t.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,t.jsx)("div",{className:h().sponsorItem,children:e.link?(0,t.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(l.Z,{src:e.image,alt:"Sponsor ".concat(n+1),width:150,height:60,objectFit:"contain"})}):(0,t.jsx)("div",{style:{cursor:"default"},children:(0,t.jsx)(l.Z,{src:e.image,alt:"Sponsor ".concat(n+1),width:150,height:60,objectFit:"contain"})})},"duplicate-".concat(n))})]})})]}),(0,t.jsx)("div",{className:h().rightColumn,children:(0,t.jsx)("div",{className:h().playerWrapper,children:(0,t.jsx)("div",{ref:K,className:h().player})})})]})]}):null}},60805:function(e){e.exports={"grid-with-ads":"LiveStreamBanner_grid-with-ads__BQy4n",SectionGroup:"LiveStreamBanner_SectionGroup__rqf3A",grilla:"LiveStreamBanner_grilla__Wg9pb",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.