PageSourceSearch

https://www.meteored.cl/js/bundle/SearchV4/06d09ff28197e22e3091.js

js meteored.cl collected 2026-10-02 04:15:28 UTC 6,256 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktiempo=self.webpackChunktiempo||[]).push([[5585],{8050:function(e,t,s){s.d(t,{Y:function(){return r}});var n=s(4678),i=s(7623);class r{static init(){return this.isExpired("rfv_hint")&&(this.saveExpiry("rfv_hint"),this.createHint()),!0}static checkCMP(){return new Promise(e=>{window.waitfordefineslots.then(()=>{e()})})}static createHint(){this.checkCMP().then(()=>{n.A.hint_menu&&this.hintMenu(),n.A.hint_searcher&&this.hintSearch(),n.A.hint_scroll&&setTimeout(()=>{this.hintScroll()},10)})}static hintScroll(){return e=this,t=void 0,r=function*(){const e=(yield s.e(4068).then(s.t.bind(s,1262,23))).default,t=document.createRange().createContextualFragment(e({hint_scroll_text:n.A.hint_scroll_text})),i=document.querySelector(".cmp_banner");i&&(i.style.position="relative");const r=document.querySelector(".cmp-ad.meteored-ads");null==r||r.insertBefore(t,r.firstChild);const c=document.getElementById("hint_scroll");if(!c)return;const a=()=>{null==c||c.remove(),this.sendEventGA4("hint_hide","hint_scroll"),window.removeEventListener("scroll",a)};window.addEventListener("scroll",a,{once:!0}),this.sendEventGA4("hint_show","hint_scroll")},new((i=void 0)||(i=Promise))(function(s,n){function c(e){try{o(r.next(e))}catch(e){n(e)}}function a(e){try{o(r.throw(e))}catch(e){n(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(c,a)}o((r=r.apply(e,t||[])).next())});var e,t,i,r}static hintSearch(){const e=document.createElement("span");e.classList.add("hint"),document.getElementById("search_header").appendChild(e),this.sendEventGA4("hint_show","hint_searcher")}static hintMenu(){const e=document.createElement("span");e.classList.add("hint"),document.getElementById("menu_header").appendChild(e),this.sendEventGA4("hint_show","hint_menu")}static saveExpiry(e,t=30){const s=new Date,n=new Date(s.getTime()+24*t*60*60*1e3);localStorage.setItem(e,n.toISOString())}static isExpired(e){const t=localStorage.getItem(e);if(!t)return!0;const s=new Date(t);return new Date>s}static sendEventGA4(e,t="none"){const s=i.q.getGA4EventHint(e,t);i.q.push(s);const n=i.q.resetType();i.q.push(n)}}},864:function(e,t,s){s.r(t),s.d(t,{Search:function(){return c}});var n=s(2573),i=s(8367),r=s(4678);n.v.init=()=>(new c(r.A.search),!0);class c extends n.v{constructor(e){super(e,!1),this.resultados.classList.add("topMas")}entradaName(){return"search_pc"}anadirCajaResultados(){document.getElementById("buscador").appendChild(this.resultados)}hideResultadosSugeridosExec(e=!0){const t=document.getElementById("resultados").getElementsByTagName("footer")[0];t&&document.getElementById("resultados").firstChild.removeChild(t)}showResultadosSugeridosExec(){}showMasResultadosExec(e){const t=document.createElement("footer"),s=document.createElement("a");s.setAttribute("title",this.translate.plus),s.setAttribute("href",`${i.A.www}/s=prueba.html`),s.innerHTML='<span class="icono"><svg viewBox="0 0 24 24"><path d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" /></svg></span>'+this.translate.plus,t.appendChild(s),e.appendChild(t)}anadirBandera(e,t){const s=n.v.getFlagId(t);e.textContent="css/v3/svgs/"+n.v.getIconFolderName()+"/"+s+".svg"}delayed(){}formId(){return"buscador"}isMobile(){return!1}}},3676:function(e,t,s){var n=s(1149),i=s(4678),r=s(8367),c=s(5409);class a{constructor(e,t){var s;this.isGeoname="3",this.gpsUso=!1,this.uid=e.uid,this.type=e.type,this.name=e.name,this.description=Array.isArray(e.description)?e.description[0]:e.description,this.spec=e.spec,this.puntuacion=e.puntuacion,this.subtype=e.subtype,this.gn=e.uid.split("-")[0]==this.isGeoname,this.id=parseInt(e.uid.split("-")[1]);let n=null!==(s=e.url)&&void 0!==s?s:r.A.www+`/gn/${this.id}.htm`;"meteored.com.br"==r.A.base&&(n=n.replace("tempo.com","meteored.com.br")),this.url=n,this.nombre=null==e?void 0:e.nombre,this.descripcion=null==e?void 0:e.descripcion,this.gpsUso=t}clickExec(e){const t=new Request(e,{method:"GET",keepalive:!0});fetch(t).catch(()=>{}),c.A.buscador="",r.A.testing?window.location.assign(this.url.replace("://www.","://test-www.")):window.location.assign(this.url)}click(){let e=this.uid.slice(0,this.uid.lastIndexOf("-"));this.gpsUso?this.clickExec(`${r.A.services}
1/search/weather/v4/check/gps/${r.A.id}/${e}`):this.clickExec(`${r.A.services}/search/weather/v4/check/txt/${r.A.id}/${e}`)}}class o{constructor(e,t,s){this.localizacion=e.data.respuesta.localizacion,this.texto=t,this.hits=[],e.data.respuesta.localizacion.forEach(e=>{e.search.resultados.forEach(e=>{this.hits.push(new a(e,s))})})}static fromString(e,t){return new o(JSON.parse(e),void 0,t)}}t.Ay=new class{constructor(e){this.cfg=e}search(e){const t=e.indexOf(",");let s;return t>=3?(s=e.substr(t+1).trim(),e=e.substr(0,t).trim()):(s="",e=e.trim()),n.A.get(`${r.A.services}/search/weather/v4/txt/${r.A.id}/${r.A.lang}/${e}`+(s.length>0?`/${s}`:"")).then(t=>{const s=JSON.parse(t);return s.ok?new o(s,e):(console.log("Discarded request"),Promise.resolve(null))})}top(){return n.A.get(`${r.A.services}/search/weather/v4/top/${r.A.id}/${r.A.lang}/${this.cfg.cty}.json`).then(e=>{const t=JSON.parse(e);return t.ok?new o(t):(console.log("Discarded request"),Promise.resolve(null))})}uid(e){return n.A.get(`${r.A.services}/search/weather/v4/uid/last/${r.A.id}/${r.A.lang}/${e}`).then(e=>JSON.parse(e).data.respuesta)}gpsExec(e,t){const s=`000000000${Math.round(1e6*(e.latitude+180))}`.slice(-9),i=`000000000${Math.round(1e6*(e.longitude+180))}`.slice(-9);return n.A.get(`${r.A.services}/search/weather/v4/${t}/${r.A.id}/${r.A.lang}/${s}${i}.json`).then(e=>o.fromString(e,!0))}gps(e){return this.gpsExec(e,"gps")}start(e){return this.gpsExec(e,"start")}}(i.A.search)},1149:function(e,t){t.A=new class{get(e){return new Promise((t,s)=>{const n=new XMLHttpRequest;this.callback(n,t,s),n.open("GET",e,!0),n.send()})}post(e,t,s={}){return new Promise((n,i)=>{const r=new XMLHttpRequest;this.callback(r,n,i),r.open("POST",e,!0);for(const e of Object.keys(s))r.setRequestHeader(e,s[e]);r.send(t)})}head(e){const t=new XMLHttpRequest;t.open("HEAD",e,!0),t.send()}callback(e,t,s){e.onreadystatechange=()=>{4==e.readyState&&(200==e.status?t(e.responseText):s({status:e.statusText,response:e.responseText,code:e.status}))}}}}}]);

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.