PageSourceSearch

https://www.daswetter.at/js/bundle/Ad/6bfa0150e0e834e878dc.js

js daswetter.at collected 2026-09-29 13:13:52 UTC 8,356 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktiempo=self.webpackChunktiempo||[]).push([[4840,7560],{4840:function(t,e,i){i.r(e),i.d(e,{Ad:function(){return d},PAGE_IDS:function(){return s}});var n=i(4678),a=i(8023);const s={M_BOTTOM:"ad_mbottom",CLOSE_BOTTOM:"close_bottom",M_RIGHT1:"ad_mright1",LEFT3:"ad_left3",LEFT_SIDE_RAIL_OOP:"LEFT_SIDE_RAIL",TOP_PC:"ad_top"};class d{constructor(){this.ad_units=null}static init(){const t=document.getElementsByTagName("footer"),e=null!=document.getElementById("visor2");return!(!(null===googletag||void 0===googletag?void 0:googletag.apiReady)||!(t.length>0||e)||(this.paint(),0))}static getAdInstance(){return null==d._instance&&(d._instance=new d,d._instance.ad_units=new Map),d._instance}static paint(t,e,i){this.paintDynamicAds(t,e,i)}static checkCMP(){return new Promise(t=>{window.waitfordefineslots.then(()=>{t()})})}static paintDynamicAds(t,e,i){n.A.ad_tags&&this.applySideRailABTest(),this.checkCMP().then(()=>{n.A.ad_tags&&this.startAndDefineAllSlots(t,e,i),this.slotRenderEndedEvent(),this.waitEmptyM1()})}static checks(){return new Promise(t=>{t()})}static manejarPubli(t,e,i,n){let s=new a.i(t);i&&1==i&&(s.addTargeting({key:"carrusel",value:"1"}),s.addTargeting({key:"page_view_number",value:""+n})),t.ad_unit_targeting&&s.addTargetingMap(t.ad_unit_targeting),(i||s.adunit.ad_unit_paint_directly)&&this.adDefineSlotAndDisplay(s,e),this.getAdInstance().ad_units.set(t.ad_unit_id,s)}static checkAndDefineAllSlots(t,e){this.checkCMP().then(()=>{this.startAndDefineAllSlots(t,e)})}static applySideRailABTest(){if(!n.A.side_rail_ab_percent)return;if(!n.A.ad_tags.ad_units.some(t=>t.ad_unit_out_of_page===s.LEFT_SIDE_RAIL_OOP))return;const t=n.A.side_rail_ab_percent,e=Math.floor(100*Math.random())<t,i=e?"left_b":"left_a";if(n.A.ad_tags.ad_units=n.A.ad_tags.ad_units.filter(t=>e?t.ad_unit_id!==s.LEFT3:t.ad_unit_out_of_page!==s.LEFT_SIDE_RAIL_OOP),googletag.setConfig({targeting:{test_ab:i}}),e){const t=document.querySelector("aside.izq_sticky");t&&(t.style.display="none")}}static startAndDefineAllSlots(t,e,i){this.checks().then(()=>{var a,s;if(0==t){this.crearCapas();for(const a of n.A.ad_tags.ad_units)a.ad_unit_promo_carrusel&&this.manejarPubli(a,t,e,i)}else{e&&(n.A.ad_tags.ad_units=null===(s=null===(a=n.A.ad_tags)||void 0===a?void 0:a.ad_units)||void 0===s?void 0:s.filter(t=>"ad_mbottom"!==t.ad_unit_id));for(const a of n.A.ad_tags.ad_units)this.manejarPubli(a,t,e,i)}})}static adDefineSlotAndDisplay(t,e){return e&&t.setParentId(`${t.adunit.ad_unit_id}_container_${e}`),t.defineSlotAndDisplay()}static destroyAds(){this.deleteAllAdUnits()}static crearCapas(){for(const t of n.A.ad_tags.ad_units){let e=new a.i(t);e.setParentId(`${t.ad_unit_id}_container_0`),e.crearCapa()}}static deleteAdUnit(t){t.destroy(),t.getParentId()?t.deleteDivId():t.deleteAndCreateDivId(),this.getAdInstance().ad_units.delete(t.adunit.ad_unit_id)}static deleteAllAdUnits(){const t=this.getAdInstance().ad_units;t.delete("ad_mbottom");for(const e of t.values())this.deleteAdUnit(e)}static slotRenderEndedEvent(){this.checks().then(()=>{let t=this.extractedArrayReemplazos();googletag.pubads().addEventListener("slotRenderEnded",e=>{return i=this,n=void 0,s=function*(){const i=e.slot.getSlotElementId();if(!i.includes("interstitial")&&!i.includes("mtr_sticky_slot")){if(t.length>=1)for(const n of t)i===n.adunit.ad_unit_id&&e.slot.getAdUnitPath()===n.adunit.ad_unit_path&&e.isEmpty&&(yield n.reemplazoAdUnit());this.renderEndedEventDynamic(e),this.isMobileDevice()&&this.closeAdMBottom()}},new((a=void 0)||(a=Promise))(function(t,e){function d(t){try{l(s.next(t))}catch(t){e(t)}}function o(t){try{l(s.throw(t))}catch(t){e(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof a?i:new a(function(t){t(i)})).then(d,o)}l((s=s.apply(i,n||[])).next())});var i,n,a,s})})}static extractedArrayReemplazos(){let t=[];return this.getAdInstance().ad_units.forEach(e=>{const i=void 0!==e.adunit.ad_unit_passback_path;e.adunit.ad_unit_to_replace&&i&&t.push(e)}),t}static waitEmptyM1(){window.addEventListener("message",t=>{const e="string"==typeof t.data;let i=null;try{i=e?JSON.parse(t.data):t.data}catch(t){}i&&"empty_m1"===i.message&&this.getAdInstance().ad_units.get("ad_mright1").reemplazoAdUnit()})}static renderEndedEventDynamic(t){const{slot:e,isEmpty:i,size:n}=t,a=e.getSlotElementId();if(a.includes("interstitial"))return;const s=document.getElementById(a);if(!s)return;const d=this.getAdInstance().ad_units.get(a);!i||d&&d.adunit.ad_unit_path!==t.slot.getAdUnitPath()||this.emptySlot(s,d),i||this.creatividadDisplay(s,!1,d,n)}static emptySlot(t,e){var i,a;let d=t;if(this.isMobileDevice()||(null===(i=null==e?void 0:e.adunit)||void 0===i?void 0:i.ad_unit_id)!==s.TOP_PC||(d=null===(a=t.parentElement)||void 0===a?void 0:a.parentElement),d&&this.creatividadDisplay(d,!0),this.isMobileDevice()
1){if(!n.A.ad_csw&&t.id===s.M_BOTTOM){const t=document.getElementById(s.CLOSE_BOTTOM);t&&(t.style.display="none")}const e=t.parentElement,i=(null==e?void 0:e.classList.contains(`${t.id}_car`))?e:null;i&&(i.style.display="none")}}static creatividadDisplay(t,e,i,n){var a,d;if(e)t.classList.add("creatividad-dynamic-height"),t.addEventListener("transitionend",()=>{t.style.display="none"},{once:!0}),requestAnimationFrame(()=>{t.style.height="0px"});else{let e=t;this.isMobileDevice()||(null===(a=null==i?void 0:i.adunit)||void 0===a?void 0:a.ad_unit_id)!==s.TOP_PC||(e=null===(d=t.parentElement)||void 0===d?void 0:d.parentElement),"none"!==e.style.display?this.filledSlot(t,n):(e.style.display="block",e.style.overflow="hidden",e.classList.add("creatividad-dynamic-height"),requestAnimationFrame(()=>{e.style.height=""}),e.addEventListener("transitionend",()=>{this.filledSlot(t,n)},{once:!0}))}}static filledSlot(t,e){if("ad_sponsored_section_locality"===t.id)return void t.classList.add("creatividad-dynamic-display");let i=!1;if(Array.isArray(e)){const[n,a]=e;i=n<=1&&a<=1,i?this.animateToAutoHeight(t):t.style.height=`${a}px`}else this.animateToAutoHeight(t);t.classList.add("creatividad-dynamic-height"),this.isMobileDevice()&&this.mobileSpecificStyles(t,e,i)}static animateToAutoHeight(t){var e;const i=t.getBoundingClientRect().height,n=t.style.height,a=(null!==(e=this.autoHeightRunIdByElement.get(t))&&void 0!==e?e:0)+1;this.autoHeightRunIdByElement.set(t,a);let s=0,d=0;const o=e=>{if(e<=0||Math.abs(e-i)<1)return void(t.style.height="auto");t.style.height=n||`${i}px`,t.offsetHeight;const a=this.autoHeightTimeoutByElement.get(t);a&&(window.clearTimeout(a),this.autoHeightTimeoutByElement.delete(t));const s=()=>{t.removeEventListener("transitionend",d);const e=this.autoHeightTimeoutByElement.get(t);e&&(window.clearTimeout(e),this.autoHeightTimeoutByElement.delete(t)),t.style.height="auto"},d=e=>{e.target===t&&"height"===e.propertyName&&s()};t.addEventListener("transitionend",d);const o=window.setTimeout(s,2500);this.autoHeightTimeoutByElement.set(t,o),requestAnimationFrame(()=>{t.style.height=`${e}px`})},l=()=>{if(this.autoHeightRunIdByElement.get(t)!==a)return;const e=Math.max(t.scrollHeight,t.offsetHeight,Math.round(t.getBoundingClientRect().height),t.parentElement?t.parentElement.scrollHeight:0);Math.abs(e-d)<1&&e>0||s>=this.HEIGHT__MAX_INTENTOS?o(Math.max(e,i)):(d=e,s++,window.setTimeout(()=>requestAnimationFrame(l),80))};requestAnimationFrame(()=>requestAnimationFrame(l))}static mobileSpecificStyles(t,e,i){const a=document.getElementById(s.CLOSE_BOTTOM);t.id!==s.M_BOTTOM||n.A.ad_csw||!a||"none"!==window.getComputedStyle(a).display||a.classList.contains("close_forced")||(t.classList.add("creatividad-dynamic-display"),a.style.display="block"),t.id!==s.M_BOTTOM&&"mtr_sticky_slot"!==t.id&&window.screen.width>320&&(t.style.maxWidth=window.screen.width-16+"px");const d=t.parentElement,o=(null==d?void 0:d.classList.contains(`${t.id}_car`))?d:null;if(o){let t="auto";if(Array.isArray(e)&&!i){const[,i]=e;t=`${i+32}px`}o.style.height=t,"none"===o.style.display&&(o.style.display="block")}}static closeAdMBottom(){const t=document.getElementById(s.M_BOTTOM),e=document.getElementById(s.CLOSE_BOTTOM);t&&e&&e.addEventListener("click",()=>{t.style.display="none",e.style.display="none"})}static isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)}}d._instance=null,d.HEIGHT__MAX_INTENTOS=4,d.autoHeightTimeoutByElement=new WeakMap,d.autoHeightRunIdByElement=new WeakMap}}]);

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.