1import{_ as h,l as u,i as w,r as a,g as S,N as B,D as x,c as t,o as n,a as f,b as o}from"./D-BtSUz6.js";const A={key:0,class:"adsense-placeholder"},I={key:1,class:"adsense-skeleton"},R={key:2,class:"adsense-block"},C=["data-ad-client","data-ad-slot"],D={__name:"AdSenseBlock",props:{slotId:{type:String,default:"adsense-1"}},setup(b){const k=b,v=w(),_=u(()=>v.public.adsenseClientId||""),g=u(()=>v.public.adsenseSlots?.[k.slotId]||""),l=u(()=>!!(_.value&&g.value)),d=a(!1),m=!1,r=a(!1),c=a(null),i=a(null);S(()=>{if(!c.value||!l.value)return;const s=new IntersectionObserver(e=>{e.forEach(p=>{p.isIntersecting&&(y(),s.unobserve(p.target))})},{rootMargin:"50px"});s.observe(c.value),B(()=>{s.disconnect()})});const y=async()=>{if(!(d.value||!l.value)&&(d.value=!0,await x(),!(!i.value||r.value))){if(i.value.getAttribute("data-adsbygoogle-status")){r.value=!0;return}if(typeof window<"u"){const s=window.adsbygoogle||(window.adsbygoogle=[]);try{s.push({}),r.value=!0}catch(e){console.error("AdSense error:",e)}}}};return(s,e)=>(n(),t("div",{ref_key:"blockRef",ref:c,class:"adsense-container"},[e[1]||(e[1]=f("div",{class:"adsense-label"}," Реклама ",-1)),!o(l)&&o(m)?(n(),t("div",A," AdSense is not configured for this slot. ")):o(d)?(n(),t("div",R,[f("ins",{class:"adsbygoogle",ref_key:"adRef",ref:i,"data-ad-client":o(_),"data-ad-slot":o(g),"data-ad-format":"auto","data-full-width-responsive":"true"},null,8,C)])):(n(),t("div",I,[...e[0]||(e[0]=[f("div",{class:"skeleton-shimmer"},null,-1)])]))],512))}},M=Object.assign(h(D,[["__scopeId","data-v-e9feec26"]]),{__name:"AdSenseBlock"});export{M as _};
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.