PageSourceSearch

https://www.teletica.com/_next/static/chunks/pages/clima-54e582cf9bc870ae.js

js teletica.com collected 2026-09-24 09:22:18 UTC 6,230 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7932],{10375:(e,s,n)=>{"use strict";n.r(s),n.d(s,{__N_SSP:()=>x,default:()=>m});var i=n(63857),t=n(43081),a=n.n(t),r=n(14232),c=n(7033),d=n(4553),l=n(88880),o=n(4791),u=n(46094),h=n(37876),x=!0;function m(e){var s,n=e.section,t=e.cities,x=t[0],m=(0,r.useState)(x),j=m[0],g=m[1];(0,r.useEffect)(function(){b(x)},[]);var v=(0,r.useState)(null),p=v[0],f=v[1],N=function(e){var s=e.indexOf(" ");return e.substring(0,s)},w=function(e){var s,n;switch(e.toString()[0]){case"2":s="mdi-weather-lightning",n+="bg-lightning";break;case"3":s="mdi-weather-rainy",n+="bg-rainy";break;case"5":s="mdi-weather-pouring",n+="bg-pouring";break;case"6":s="mdi-weather-snowy",n+="bg-snowy";break;case"7":s="mdi-weather-fog",n+="bg-fog";break;case"8":"800"==e.toString()?s="mdi-weather-sunny":(s="mdi-weather-cloudy",n+="bg-cloudy")}return{icon:s,style:n}},b=(s=(0,i.A)(a().mark(function e(s){var n,i;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/service/weather?city=".concat(s));case 2:return n=e.sent,e.next=5,n.json();case 5:(i=e.sent)?f(i):f(null);case 7:case"end":return e.stop()}},e)})),function(e){return s.apply(this,arguments)});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(o.W,{props:e}),(0,h.jsx)(d.A,{section:n}),(0,h.jsx)(l.A,{micrositeClass:"main",id:"content",children:(0,h.jsx)("div",{className:"wrapper",children:(0,h.jsxs)("div",{className:"content-aside",children:[(0,h.jsx)("article",{children:(0,h.jsxs)("div",{id:"weatherWidget",className:"widget widget-weather",children:[(0,h.jsxs)("div",{className:"widget-title",children:[(0,h.jsx)("h4",{children:j}),(0,h.jsx)("div",{className:"select",children:(0,h.jsx)("select",{onChange:function(e){b(e.target.value),g(e.target.value)},id:"citySelector",value:j,required:!0,children:null==t?void 0:t.map(function(e,s){return(0,h.jsx)("option",{value:e,children:e},s)})})})]}),(0,h.jsx)("div",{className:"widget-content",children:(null==p?void 0:p.length)>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"today",children:(0,h.jsxs)("div",{className:"box bg-".concat(p[0].Icon?p[0].Icon:w(p[0].Id).style),children:[(0,h.jsxs)("div",{className:"current",children:[(0,h.jsx)("div",{className:"icon",children:(0,h.jsx)("i",{className:"mdi ".concat(w(p[0].Id).icon)})}),(0,h.jsxs)("div",{className:"temp",children:[(0,h.jsx)("h3",{children:(0,h.jsxs)("strong",{children:[p[0].CurrentTemperature," ",(0,h.jsx)("span",{children:"\xb0C"})]})}),(0,h.jsx)("h4",{children:p[0].Description})]})]}),(0,h.jsxs)("div",{className:"table",children:[(0,h.jsxs)("h5",{children:["M\xednima: ",(0,h.jsxs)("strong",{children:[p[0].Minimum," \xb0C"]})]}),(0,h.jsxs)("h5",{children:["M\xe1xima: ",(0,h.jsxs)("strong",{children:[p[0].Maximum," \xb0C"]})]}),(0,h.jsxs)("h5",{children:["Humedad: ",(0,h.jsxs)("strong",{children:[p[0].Humidity," %"]})]}),(0,h.jsxs)("h5",{children:["Presi\xf3n: ",(0,h.jsxs)("strong",{children:[p[0].Pressure," hPa"]})]}),(0,h.jsxs)("h5",{children:["Viento: ",(0,h.jsx)("strong",{children:p[0].WindSpeed})]})]})]})}),(0,h.jsx)("div",{className:"forecast",children:p.map(function(e,s){return 0!==s&&(0,h.jsxs)("div",{className:"box",children:[(0,h.jsx)("div",{className:"date",children:N(e.ShortDatetime)}),(0,h.jsx)("div",{className:"icon",children:(0,h.jsx)("i",{className:"mdi ".concat(w(e.Id).icon)})}),(0,h.jsx)("div",{className:"temp",children:(0,h.jsxs)("div",{className:"minmax",children:[(0,h.jsxs)("h5",{children:[(0,h.jsx)("strong",{children:e.Minimum}),"\xb0"]}),(0,h.jsxs)("h5",{children:[(0,h.jsx)("strong",{children:e.Maximum}),"\xb0"]})]})})]},s)})})]})})]})}),(0,h.jsx)("aside",{className:"aside",children:(0,h.jsx)(u.A,{assets:e.asideAssets})})]})})}),(0,h.jsx)(c.A,{})]})}},16899:(e,s,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/clima",function(){return n(10375)}])},46094:(e,s,n)=>{"use strict";n.d(s,{A:()=>c});var i=n(18847),t=n.n(i),a=n(37876);t()(function(){return Promise.all([n.e(4587),n.e(5490)]).then(n.bind(n,85490))},{loadableGenerated:{webpack:function(){return[85490]}}});var r=t()(function(){return Promise.all([n.e(4587),n.e(2792)]).then(n.bind(n,42792))},{loadableGenerated:{webpack:function(){return[42792]}}});function c(e){var s=e.assets,n=e.url,i=e.templateId,t=e.assetId;return(0,a.jsx)(r,{assets:s,url:n,templateId:i,assetId:t})}},67751:(e,s,n)=>{"use strict";n.d(s,{A:()=>a});var i=n(14232),t=n(37876);function a(e){var s=e.id,n=e.classType,a=e.style,r=e.pushSlot,c=void 0!==r&&r,d=(0,i.useState)(!1),l=d[0],o=d[1],u=(0,i.useState)(!1),h=u[0],x=u[1];return n=n?"ad ".concat(n):"",(0,i.useEffect)(function(){if(c){var e=setInterval(function(){"undefined"!=typeof googletag&&"undefined"!=typeof googletag&&void 0!==googletag.cmd&&void 0!==googletag.cmd.push&&(o(!0),clearInterval(e))},1e3);l&&!h&&googletag.cmd.push(function(){googletag.display("".concat(s)),x(!0)})}},[l]),(0,t.jsx)("div",{id:s,className:n,style:a})}},88880:(e,s,n)=>{"use strict";n.d(s,{A:()=>u});var i=n(67751),t=n(37876);function a(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.A,{id:"div-gpt-ad-1648033296806-0",pushSlot:!0}),(0,t.jsx)(i.A,{id:"leaderboard",classType:"ad-leaderboard"}),(0,t.jsx)(i.A,{id:"interstitial",classType:"ad-interstitial"})]})}function r(e){return e.props,(0,t.jsx)(a,{})}var c=n(22007),d=n(30154),l=n(22294);function o(){var e=(0,c.Ay)("/api/news/getAlert",d.A,{revalidateOnFocus:!1}).data;return null!=e&&e.length?(0,t.jsx)("div",{className:"widget widget-alertNews",children:(0,t.jsxs)("div",{className:"wrapper",children:[(0,t.jsxs)("div",{className:"title",children:[(0,t.jsxs)("div",{className:"live-indicator",children:[(0,t.jsx)("span",{}),(0,t.jsx)("span",{})]}),(0,t.jsx)("span",{className:"titleName",children:"ALERTA"})]}),(0,t.jsx)("ul",{className:"content",children:null==e?void 0:e.map(function(e,s){return(0,t.jsx)("li",{className:"content-item",children:(0,t.jsx)("a",{href:l.A.generateUrl(e),children:e.Title_en})},s)})})]})}):null}function u(e){var s=e.children,n=e.micrositeClass,i=e.withAds;return(0,t.jsxs)("main",{id:"content",className:n,children:[(void 0===i||i)&&(0,t.jsx)(r,{}),(0,t.jsx)(o,{}),s]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[3689,1575,636,6593,8792],()=>s(16899)),_N_E=e.O()}]);

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.