1"use strict";(self.webpackChunktiempo=self.webpackChunktiempo||[]).push([[1573],{2751:function(t,e,n){n.r(e),n.d(e,{ButtonX:function(){return r}});var s=n(7623),o=n(4678);class r{constructor(t="/",e=".data-noticia"){this.home_url=t,this.selector=e,this.event_sent=!1,this.btn=this.createButton(),this.observe()}createButton(){const t=document.createElement("button");return t.className="article-close-btn",t.type="button",t.setAttribute("aria-label","Ir a home"),t.innerHTML='\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n <path d="M1 1L13 13M13 1L1 13" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>\n </svg>\n ',t.addEventListener("click",()=>{window.location.href=this.home_url,this.sendEventGA4("x_click")}),document.body.appendChild(t),t}observe(){const t=document.querySelector(this.selector),e=document.querySelector(".franjas"),n=this.btn;if(!t||!e||!n)return;const s=new IntersectionObserver(o=>{o.forEach(o=>{const r=o.target;if(r===t){const t=!o.isIntersecting&&o.boundingClientRect.top<0;n.classList.toggle("article-close-btn--visible",t),t&&!this.event_sent&&(this.sendEventGA4("x_show"),this.event_sent=!0)}r===e&&o.isIntersecting&&(n.classList.remove("article-close-btn--visible"),n.addEventListener("transitionend",()=>{n.remove(),s.disconnect()},{once:!0}))})});s.observe(t),s.observe(e)}sendEventGA4(t){const e=s.q.getGA4EventName(t);s.q.push(e)}static check(){const t=localStorage.getItem("x_button");if(null!==t)return"true"===t;const e=100*Math.random()<o.A.x_article_porcentaje;return localStorage.setItem("x_button",String(e)),e}static init(t,e){return!!r.check()&&(new r(t,e),!0)}}}}]);
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.