1import{l,m as d,_ as h}from"./DLGzufiN.js";import{_ as c,B as u,f as a,c as s,g as m,d as b,w as f,x as y}from"./DlIvjfgN.js";const p={props:{forceMobile:{type:Boolean,default:!1},useTabletCompactSlot:{type:Boolean,default:!1}},setup(){return{config:u().public}},data:()=>({ready:!1,vw:0,vh:0,rz:null,pushed:!1,mounting:!1,abortController:null}),computed:{isTabletOrUp(){return!this.forceMobile&&this.vw>=728},slotTablet(){return this.config.adSlotTablet728x90},slotMobile(){return this.useTabletCompactSlot?this.config.adSlotTabletMobile320x50:this.config.adSlotMobile320x50},placeholderStyle(){return this.isTabletOrUp?"display:block;width:728px;height:90px;margin:0 auto;background:#e9ecef;border-radius:6px;":"display:block;width:320px;height:50px;margin:0 auto;background:#e9ecef;border-radius:6px;"}},mounted(){this.abortController=new AbortController,this.vw=document.documentElement.clientWidth,this.vh=document.documentElement.clientHeight,window.addEventListener("resize",this.onResize,{passive:!0}),document.addEventListener("visibilitychange",this.onMaybeRetry,{passive:!0}),window.addEventListener("orientationchange",this.onMaybeRetry,{passive:!0}),this.initAndMaybePush()},beforeUnmount(){this.abortController?.abort(),window.removeEventListener("resize",this.onResize),window.removeEventListener("orientationchange",this.onMaybeRetry),document.removeEventListener("visibilitychange",this.onMaybeRetry),this.rz&&clearTimeout(this.rz),this._r2&&clearTimeout(this._r2)},methods:{async initAndMaybePush(){if(this.pushed||this.mounting)return;this.mounting=!0;const e=this.abortController.signal;try{await l(this.config.adClient),await d({container:this.$refs.container,minWidth:200,signal:e,render:async n=>{this.ready=n,await this.$nextTick()},getSlot:()=>this.isTabletOrUp?this.$refs.slotTab:this.$refs.slotMobFixed})&&(this.pushed=!0)}catch{e.aborted||(this.ready=!1)}finally{this.mounting=!1}},onResize(){clearTimeout(this.rz),this.rz=setTimeout(()=>{this.vw=document.documentElement.clientWidth,this.vh=document.documentElement.clientHeight,this.onMaybeRetry()},150)},onMaybeRetry(){document.hidden||this.pushed||(clearTimeout(this._r2),this._r2=setTimeout(()=>this.initAndMaybePush(),120))}}},g={ref:"container",class:"advert"},_={class:"advert__inner"},v=["data-ad-client","data-adtest","data-ad-slot"],w=["data-ad-client","data-adtest","data-ad-slot"];function T(e,o,n,t,x,i){const r=h;return a(),s("section",g,[m("div",_,[b(r,null,{default:f(()=>[e.ready&&i.isTabletOrUp?(a(),s("ins",{key:0,ref:"slotTab",class:"adsbygoogle",style:{display:"block",width:"728px",height:"90px",margin:"0 auto"},"data-ad-client":t.config.adClient,"data-adtest":t.config.adTest,"data-ad-slot":i.slotTablet},null,8,v)):e.ready?(a(),s("ins",{key:1,ref:"slotMobFixed",class:"adsbygoogle",style:{display:"block",width:"320px",height:"50px",margin:"0 auto"},"data-ad-client":t.config.adClient,"data-adtest":t.config.adTest,"data-ad-slot":i.slotMobile},null,8,w)):(a(),s("div",{key:2,style:y(i.placeholderStyle),"aria-hidden":"true"},null,4))]),_:1})])],512)}const C=c(p,[["render",T],["__scopeId","data-v-9ff55431"]]);export{C as default};
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.