PageSourceSearch

https://www.teletica.com/_next/static/chunks/1036.768cab63ff34b0e2.js

js teletica.com collected 2026-09-24 09:23:03 UTC 12,224 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1036],{28111:(e,n,a)=>{a.d(n,{m:()=>l});var t=a(45794),i=a(67251),r=a(23745),l=function(){function e(){(0,i.A)(this,e)}return(0,r.A)(e,null,[{key:"timeSince",value:function(e){if(!e)return null;if(null!=(n=e)&&n.toLowerCase().includes("minutes")||null!=(a=e)&&a.toLowerCase().includes("minutos"))return e;var n,a,t=e.split("T")[0].split("-"),i=e.replace("Z","").split("T")[1],r=t[1]+"/"+t[2]+"/"+t[0],l=Math.floor((Date.parse(new Date().toISOString())-(e=Date.parse(this.convertUTCDateToLocalDate(r+" "+i))))/1e3);if(l<0)return"1 minuto";var s=Math.floor(l/31536e3);return s>=1?s+" a\xf1o"+(1!==s?"s":""):(s=Math.floor(l/2592e3))>=1?s+" mes"+(1!==s?"es":""):(s=Math.floor(l/86400))>=1?s+" d\xeda"+(1!==s?"s":""):(s=Math.floor(l/3600))>=1?s+" hora"+(1!==s?"s":""):(s=Math.floor(l/60))>=1?s+" minuto"+(1!==s?"s":""):Math.floor(l)+" segundo"+(1!==s?"s":"")}},{key:"longDateUtcTime",value:function(e){Date.parse(new Date().toISOString());var n=this.convertUTCDateToLocalDate(e),a=n.toLocaleString("es-ar",{month:"long"}),t=n.getDate(),i=n.getFullYear();return"".concat(t," de ").concat(a," de ").concat(i)}},{key:"longDateUtcTimeWithHour",value:function(e){if(!e)return"";var n=this.convertTZ(e),a=n.toLocaleString("es-ar",{month:"long"}),t=n.getDate(),i=n.getFullYear(),r=n.getHours(),l=(10>n.getMinutes()?"0":"")+n.getMinutes();return"".concat(t," de ").concat(a," de ").concat(i,", ").concat(r,":").concat(l," ").concat(r>=12?"PM":"AM")}},{key:"formatThreadDateTime",value:function(e){if(!e)return"";var n=this.convertTZ(e).toLocaleString("es-AR",{weekday:"long",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).split(", "),a=(0,t.A)(n,3),i=a[0],r=a[1],l=a[2],s=r.split("/"),o=(0,t.A)(s,3),c=o[0],d=o[1],u=o[2];return"".concat(i.charAt(0).toUpperCase()+i.slice(1)," ").concat(c,"/").concat(d,"/").concat(u,", ").concat(l)}},{key:"convertTZ",value:function(e){var n="string"==typeof e?new Date(e):e,a=n.toLocaleDateString("en-US",{timeZone:"america/costa_rica"}).replace(/\//g,"-").split("-"),t=a[2]+"-"+("0"+a[0]).slice(-2)+"-"+("0"+a[1]).slice(-2)+" ",i=n.toLocaleTimeString("en-US",{timeZone:"america/costa_rica",hour12:!1,hour:"2-digit",minute:"2-digit"}).split(":");return new Date(t+(i[0]+":"+i[1])+":00")}},{key:"convertUTCDateToLocalDate",value:function(e){if(!e)return null;if(null!=(n=e)&&n.toLowerCase().includes("minutes")||null!=(a=e)&&a.toLowerCase().includes("minutos"))return e;(e=new Date(e)).getTime(),e.getTimezoneOffset();var n,a,t=e.getTimezoneOffset()/60,i=e.getHours();return e.setHours(i-t),e}}]),e}()},31683:(e,n,a)=>{a.d(n,{A:()=>t});function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=Array(n);a<n;a++)t[a]=e[a];return t}},45794:(e,n,a)=>{a.d(n,{A:()=>i});var t=a(87430);function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,i,r,l,s=[],o=!0,c=!1;try{if(r=(a=a.call(e)).next,0===n){if(Object(a)!==a)return;o=!1}else for(;!(o=(t=r.call(a)).done)&&(s.push(t.value),s.length!==n);o=!0);}catch(e){c=!0,i=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(e,n)||(0,t.A)(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},67751:(e,n,a)=>{a.d(n,{A:()=>r});var t=a(14232),i=a(37876);
1function r(e){var n=e.id,a=e.classType,r=e.style,l=e.pushSlot,s=void 0!==l&&l,o=(0,t.useState)(!1),c=o[0],d=o[1],u=(0,t.useState)(!1),h=u[0],m=u[1];return a=a?"ad ".concat(a):"",(0,t.useEffect)(function(){if(s){var e=setInterval(function(){"undefined"!=typeof googletag&&"undefined"!=typeof googletag&&void 0!==googletag.cmd&&void 0!==googletag.cmd.push&&(d(!0),clearInterval(e))},1e3);c&&!h&&googletag.cmd.push(function(){googletag.display("".concat(n)),m(!0)})}},[c]),(0,i.jsx)("div",{id:n,className:a,style:r})}},71036:(e,n,a)=>{a.r(n),a.d(n,{default:()=>o});var t=a(24994);a(54587),a(48230);var i=a(88880),r=a(22294),l=a(28111),s=a(37876);function o(e){var n=e.props,a=n.channel,o=n.program,c=n.medias,d=n.assets,u=n.videoId,h=n.galleries,m=["Domingo","Lunes","Martes","Mi\xe9rcoles","Jueves","Viernes","S\xe1bado"];function g(e,n,a){return Array(n-String(e).length+1).join(a||"0")+e}if(u&&(A=null==c?void 0:c.find(function(e){return e.Id==u})),u&&!A&&(null==o||null==(S=o.GalleryId)?void 0:S.length)>0){var v=null==o?void 0:o.GalleryId[0];if(v){var f,j,x,p,N,y,A,S,I,w=null==h?void 0:h.find(function(e){return e.Id==v});null!=w&&(parsecontent=!0,(null==(I=w.MediaGalleryId)?void 0:I.length)>0&&(A=mediasMedias.find(function(e){return w.MediaGalleryId.includes(e.Id)})))}}return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.A,{micrositeClass:"main sectionLive",children:(0,s.jsxs)("div",{className:"wrapper",children:[(0,s.jsxs)("div",{className:"canal--links",children:[(0,s.jsx)("a",{rel:"noreferrer",href:"/vivo",children:"En Vivo"}),(0,s.jsx)("a",{rel:"noreferrer",href:"/programacion",children:"Programaci\xf3n"})]}),(0,s.jsx)("section",{className:"section section-vivo section-canales",children:(0,s.jsxs)("div",{className:"holder player active",children:[(0,s.jsx)("div",{className:"holder--aside active program--detail",children:(0,s.jsx)("div",{className:"canal--list",children:(0,s.jsxs)("div",{className:"canal--item active",children:[(0,s.jsxs)("div",{className:"canal--info",children:[(0,s.jsx)("div",{className:"canal--logo",children:(null==a||null==(f=a.MediaSizesPaths)?void 0:f.length)>0&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("img",{src:r.A.generateImageUrl(JSON.parse(a.MediaSizesPaths[0]).Size1Path),alt:a.Name})})}),(0,s.jsx)("div",{className:"programa--logo",children:(null==o||null==(j=o.MediaSizesPaths)?void 0:j.length)>0&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("img",{src:r.A.generateImageUrl(null==o?void 0:o.MediaSizesPaths[0].Size1Path),alt:o.ProgramName})})})]}),(0,s.jsx)("div",{className:"programa hola",children:(0,s.jsxs)("div",{className:"programa--info",children:[(0,s.jsx)("h4",{children:o.ProgramName}),(null==o||null==(x=o.Day)?void 0:x.length)>0&&(null==o?void 0:o.Day.map(function(e,n){var a=m[e],t=g(null==o?void 0:o.InitHour[n],2,"0")+":"+g(null==o?void 0:o.InitMinute[n],2,"0"),i=g(null==o?void 0:o.EndHour[n],2,"0")+":"+g(null==o?void 0:o.EndMinute[n],2,"0");return(0,s.jsxs)("p",{children:[a,": ",t+" / "+i]},n)}))]})})]})})}),(0,s.jsx)("div",{className:"holder--main player--view",children:(null==h?void 0:h.length)>0&&(null==(p=o.GalleryId)?void 0:p.length)>0?(0,s.jsx)(s.Fragment,{children:u?(0,s.jsx)(s.Fragment,{children:A?(0,s.jsx)("iframe",{width:"100%",height:"464",src:A.MediaUrl.replace("http","https")+"&autoplay=1&flashvars[autoPlay]=tru",allow:"autoplay"}):(0,s.jsx)("h4",{children:"En este momento no hay contenido disponible"})}):(0,s.jsx)("h4",{children:"En este momento no hay contenido disponible"})}):(0,s.jsx)("h4",{children:"En este momento no hay contenido disponible"})})]})}),(0,s.jsxs)("section",{className:"section section-programa",children:[(null==h?void 0:h.length)>0&&(null==o||null==(N=o.GalleryId)?void 0:N.length)>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"section-title",children:(0,s.jsx)("h4",{children:"Programas emitidos"})}),(0,s.jsx)("div",{className:"section-content",children:(0,s.jsx)("div",{className:"widget widget-slider widget-programa-multimedia",children:null==o||null==(y=o.GalleryId)?void 0:y.map(function(e,n){var a,i=h.find(function(n){return n.Id==e});return(0,s.jsx)(s.Fragment,{children:(null==i||null==(a=i.Title)?void 0:a.length)>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"widget-title",children:(0,s.jsx)("h4",{children:i.Name})}),(0,s.jsx)("div",{className:"widget-content",children:(0,s.jsx)("div",{className:"slider",children:i.MediaGalleryId.map(function(e,n){var a=c.find(function(n){return n.Id==e});if(a){var i,l,d=a.MediaUrl;
1d.includes("http://cdnapi.kaltura.com/html5")&&(d=d.replace("http","https"));var u=a.Title;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"component component--medium",children:(0,s.jsx)("div",{className:"holder",children:(0,s.jsx)("div",{className:"block",children:(0,s.jsxs)("div",{className:"nota nota-programa","data-href":"/".concat((i=null==o?void 0:o.ProgramName,l=null==o?void 0:o.Id,i&&l?"programa/"+(0,t.A)(i)+"_"+l:"programa"),"/").concat(a.Id),children:[(0,s.jsxs)("div",{className:"image progressive",children:[(0,s.jsx)("div",{className:"loadingImage",style:{background:'url("'.concat(r.A.generateImageUrl(null==a?void 0:a.SizesPaths.Size5Path),'")')},"data-image":r.A.generateImageUrl(null==a?void 0:a.SizesPaths.Size2Path),"data-player":d}),(0,s.jsx)("div",{className:"overlay"})]}),(0,s.jsx)("div",{className:"text",children:(0,s.jsx)("h2",{children:u})})]})})})},n)})}})})})]})})})})})]}),(null==d?void 0:d.length)>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"section-title",children:(0,s.jsx)("h4",{children:"Noticias"})}),(0,s.jsx)("div",{className:"section-content",children:(0,s.jsx)("div",{className:"widget widget-slider widget-programa-node",children:(0,s.jsx)("div",{className:"widget-content",children:(0,s.jsx)("div",{className:"slider",children:d.slice(0,4).map(function(e,n){var a=e.Nodes_en[e.Nodes_en.length-1],i=(0,t.A)(a)+"/"+e.Url+"_"+e.Id,o=r.A.generateImageUrl(null!=e.MediaSizesPaths?e.MediaSizesPaths.Size5Path:""),c=r.A.generateImageUrl(null!=e.MediaSizesPaths?e.MediaSizesPaths.Size2Path:""),d=e.Title_en,u=e.De
1scription_en,h=e.AuthorName?e.AuthorName[0]:"",m=e.AuthorId?e.AuthorId[0]:"",g=l.m.timeSince(e.PublicationDate);return(0,s.jsx)("div",{className:"component component--medium",children:(0,s.jsx)("div",{className:"holder",children:(0,s.jsx)("div",{className:"block",children:(0,s.jsxs)("div",{className:"nota",children:[(0,s.jsxs)("div",{className:"image progressive",children:[(0,s.jsx)("div",{className:"loadingImage",style:{background:'url("'.concat(o,'")')},"data-image":c}),(0,s.jsx)("div",{className:"overlay"})]}),(0,s.jsxs)("div",{className:"text",children:[(0,s.jsx)("h4",{children:a}),(0,s.jsx)("h2",{children:d}),(0,s.jsx)("p",{children:u}),(0,s.jsxs)("h6",{children:[(0,s.jsx)("span",{className:"author",children:(0,s.jsx)("a",{rel:"noreferrer",href:"/autor/".concat((0,t.A)(h+"_"+m)),children:(0,s.jsx)("strong",{children:h})})}),(0,s.jsxs)("span",{className:"date",children:["Hace ",(0,s.jsxs)("strong",{children:[" ",g]})]})]})]}),(0,s.jsx)("a",{rel:"noreferrer",className:"nota-link",href:"/"+i,children:d})]})})})},n)})})})})})]})]})]})})})}},87430:(e,n,a)=>{a.d(n,{A:()=>i});var t=a(31683);function i(e,n){if(e){if("string"==typeof e)return(0,t.A)(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);if("Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return(0,t.A)(e,n)}}},88880:(e,n,a)=>{a.d(n,{A:()=>u});var t=a(67751),i=a(37876);function r(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.A,{id:"div-gpt-ad-1648033296806-0",pushSlot:!0}),(0,i.jsx)(t.A,{id:"leaderboard",classType:"ad-leaderboard"}),(0,i.jsx)(t.A,{id:"interstitial",classType:"ad-interstitial"})]})}function l(e){return e.props,(0,i.jsx)(r,{})}var s=a(22007),o=a(30154),c=a(22294);function d(){var e=(0,s.Ay)("/api/news/getAlert",o.A,{revalidateOnFocus:!1}).data;return null!=e&&e.length?(0,i.jsx)("div",{className:"widget widget-alertNews",children:(0,i.jsxs)("div",{className:"wrapper",children:[(0,i.jsxs)("div",{className:"title",children:[(0,i.jsxs)("div",{className:"live-indicator",children:[(0,i.jsx)("span",{}),(0,i.jsx)("span",{})]}),(0,i.jsx)("span",{className:"titleName",children:"ALERTA"})]}),(0,i.jsx)("ul",{className:"content",children:null==e?void 0:e.map(function(e,n){return(0,i.jsx)("li",{className:"content-item",children:(0,i.jsx)("a",{href:c.A.generateUrl(e),children:e.Title_en})},n)})})]})}):null}function u(e){var n=e.children,a=e.micrositeClass,t=e.withAds;return(0,i.jsxs)("main",{id:"content",className:a,children:[(void 0===t||t)&&(0,i.jsx)(l,{}),(0,i.jsx)(d,{}),n]})}}}]);

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.