1import{h as B,B as C}from"./D0vYnmJG.js";import{I as k}from"./C1-WyH6U.js";import{d as z,q as x,r as c,s as I,L as O,o as g,ah as S,R as T,c as h,b as L,n as w,f as E,u as A,y as F,w as N,a as U,a3 as V,S as d,j as W}from"./fsxPX0i-.js";const q=["data-interscroller-active"],G=["aria-hidden"],K=z({__name:"InterscrollerBanner",props:{code:{},disabled:{type:Boolean},instanceKey:{}},emits:["empty","loaded"],setup(u,{emit:b}){const m=u,v=b,t=x(()=>m.disabled?null:m.code??null),e=c(!1),f=I("root"),y=c(0),o=c(0);let r=null,s=0;function l(){const i=f.value;i&&(y.value=-i.getBoundingClientRect().left,o.value=document.documentElement.clientWidth)}function a(){cancelAnimationFrame(s),s=requestAnimationFrame(l)}function n(){window.dispatchEvent(new CustomEvent(k))}function R(){e.value||(l(),e.value=!0,v("loaded"),d(n))}function p(){e.value=!1,v("empty"),d(n)}function _(){t.value||p()}return O(t,()=>{e.value=!1,d(_)}),B(f,()=>{a(),e.value&&n()}),g(()=>{l(),_(),window.addEventListener("resize",a),typeof ResizeObserver<"u"&&(r=new ResizeObserver(a),r.observe(document.body))}),S(()=>{cancelAnimationFrame(s),r?.disconnect(),window.removeEventListener("resize",a)}),T(n),(i,$)=>(L(),h("section",{ref:"root",class:w(["interscroller-slot",{"interscroller-slot--active":e.value}]),"data-interscroller-active":e.value?"":void 0},[E(A(F),null,{default:N(()=>[t.value&&o.value>0?(L(),h("div",{key:0,class:w(["interscroller-layer",{"interscroller-layer--active":e.value}]),style:V({left:`${y.value}px`,width:`${o.value}px`}),"aria-hidden":!e.value,"aria-label":"Реклама"},[E(C,{class:"interscroller-layer__creative",code:t.value,"instance-key":u.instanceKey??"area-218",immediate:"","disable-creative-scaling":"",onLoaded:R,onEmpty:p},null,8,["code","instance-key"])],14,G)):U("",!0)]),_:1})],10,q))}}),D=W(K,[["__scopeId","data-v-8237d901"]]);export{D as 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.