PageSourceSearch

https://www.daswetter.com/js/bundle/Login/fdc3d9a55c27ed5f211c.js

js daswetter.com collected 2026-10-02 05:55:50 UTC 4,585 bytes, 1 lines download raw bytes

1(self.webpackChunktiempo=self.webpackChunktiempo||[]).push([[7094],{5022:function(e,n,t){"use strict";t.r(n),t.d(n,{Login:function(){return i}});var s=t(8367);class i{static instantiate(){return null}static init(){return document.getElementsByTagName("body").length>0&&(i._instance=i.instantiate(),new i,!0)}constructor(){this.user=null,this.inicia_sesion="Sign in",this.cerrar_sesion="Sign out",this.loadTranslate(),this.waitCMPStatus()}loadTranslate(){t(4869)(`./${s.A.lang}.json`).then(e=>{this.inicia_sesion=e.login.iniciar_sesion,this.cerrar_sesion=e.login.cerrar_sesion})}waitCMPStatus(){void 0!==window.__tcfapiprivate&&window.__tcfapiprivate("addEventListener","cmpReady",e=>{this.loadUserFromIndexedDB().then(()=>{this.initActions()}),window.__tcfapiprivate("addEventListener","ui",e=>{13===e.type&&this.redirectToLogin()})})}initActions(){const e=document.getElementById("loginUser");!this.user&&window.innerWidth>=768&&this.addDefaultImage(),e&&e.addEventListener("click",()=>this.handleLoginClick())}handleLoginClick(){const e=new URL(location.href),n=s.A.www;this.user?location.href=`${n}/users/?r=${e.pathname}`:this.redirectToLogin()}updateUserDisplay(e,n,t){const s=document.getElementById("loginUser");if(s){s.innerHTML="";const i=document.createElement("div");i.className="circle-avatar",t?this.createImage(t,e,i):this.createInitials(e,i),s.appendChild(i),window.innerWidth<=768&&this.addCloseSessionSpan(s),s.setAttribute("title",e?`${e} - ${n} - ${this.cerrar_sesion}`:`${n} - ${this.cerrar_sesion}`)}}createImage(e,n,t){const s=document.createElement("img");s.className="box",s.id="loginUserImg",s.src=e,s.width=window.innerWidth<=768?18:42,s.height=window.innerWidth<=768?18:42,s.style.padding="0px",s.alt=`${n} - ${this.cerrar_sesion}`,t.appendChild(s)}createInitials(e,n){const t=e?e.charAt(0).toUpperCase():"M";n.innerText=t}addCloseSessionSpan(e){const n=document.createElement("span");n.innerText=`${this.cerrar_sesion}`,e.appendChild(n)}redirectToLogin(){const e=new URL(location.href),n=s.A.www;location.href=`${n}/users/login?r=${e.pathname}`}loadUserFromIndexedDB(){return e=this,n=void 0,s=function*(){try{const e=yield this.openIndexedDB();e.transaction(i.FIREBASE_STORAGE_STORE_NAME,"readonly").objectStore(i.FIREBASE_STORAGE_STORE_NAME).openCursor().onsuccess=e=>{const n=e.target.result;if(n){const e=n.value;this.user=e.value,this.updateUserDisplay(this.user.displayName,this.user.email,this.user.photoURL)}}}catch(e){}},new((t=void 0)||(t=Promise))(function(i,o){function r(e){try{c(s.next(e))}catch(e){o(e)}}function a(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(r,a)}c((s=s.apply(e,n||[])).next())});var e,n,t,s}openIndexedDB(){return new Promise((e,n)=>{const t=window.indexedDB.open(i.FIREBASE_STORAGE_DB_NAME,1);t.onerror=()=>n(t.error),t.onsuccess=()=>{const n=t.result;e(n)}})}addDefaultImage(){const e=document.getElementById("loginUser");if(e){e.innerHTML="";const n=document.createElement("img");n.className="box",n.id="loginUserImg",n.src=i.DEFAULT_IMAGE_URL,n.width=24,n.height=24,n.alt=`${this.inicia_sesion}`,n.title=`${this.inicia_sesion}`,e.appendChild(n)}}}i.FIREBASE_STORAGE_DB_NAME="firebaseLocalStorageDb",i.FIREBASE_STORAGE_STORE_NAME="firebaseLocalStorage",i.DEFAULT_IMAGE_URL=s.A.www+"/css/v3/svgs/comun/login.svg"},4869:function(e,n,t){var s={"./ca-ES.json":[5385,[5385]],"./da-DK.json":[7605,[7605]],"./de-AT.json":[6153,[6153]],"./de-DE.json":[4635,[4635]],"./en-CA.json":[940,[940]],"./en-GB.json":[3029,[3029]],"./en-US.json":[3520,[3520]],"./es-AR.json":[342,[342]],"./es-BO.json":[3242,[3242]],"./es-CL.json":[2398,[2398]],"./es-CR.json":[1544,[1544]],"./es-DO.json":[5780,[5780]],"./es-EC.json":[3277,[3277]],"./es-ES.json":[2109,[2109]],"./es-HN.json":[7323,[7323]],"./es-MX.json":[5504,[5504]],"./es-PA.json":[3110,[3110]],"./es-PE.json":[9658,[9658]],"./es-PY.json":[2206,[2206]],"./es-UY.json":[2859,[2859]],"./es-VE.json":[9940,[9940]],"./eu-ES.json":[647,[647]],"./fr-FR.json":[9229,[9229]],"./hi-IN.json":[1119,[1119]],"./it-IT.json":[1043,[1043]],"./nl-NL.json":[7569,[7569]],"./pt-BR.json":[5749,[5749]],"./pt-PT.json":[6745,[6745]],"./ro-RO.json":[947,[947]],"./ru-RU.json":[7091,[7091]]};function i(e){try{if(!t.o(s,e))return Promise.resolve().then(function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n})}catch(e){return Promise.reject(e)}var n=s[e],i=n[0];return t.e(n[1][0]).then(function(){return t.t(i,19)})}i.keys=function(){return Object.keys(s)},i.id=4869,e.exports=i}}]);

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.