1import{r as c,n as p,c as m}from"./index-DS8uTh6M.js";import{a as d}from"./apps-D_nDLyRB.js";import{s as h}from"./shouldAnimate-CeW36j6E.js";import"./intersection-watcher-DADyd6E-.js";import"./media-queries-CokWIw5y.js";import"./delay-offset-CTJE-YpR.js";const n={tolstoy:"js-block-app",tolstoyContainer:".tolstoy-carousel-videos-container",progress:".js-progress"};c("apps",{onLoad(){m(this.container,n.tolstoy)&&this.handleTolstoy(),h(this.container)&&(this.animateApps=d(this.container))},async findElementsAsync(t=document,s,o=500,e=10){let r,a=0;return new Promise((i,y)=>{r=setInterval(()=>{a++;const l=t.querySelectorAll(s);l.length&&(clearInterval(r),i(l)),a>=e&&(clearInterval(r),console.warn(`Element ${s} not found!`),i([]))},o)})},async handleTolstoy(){const t=await this.findElementsAsync(this.container,n.tolstoyContainer);t&&t[0]&&(this.updateProgressBarTolstoy(t[0]),t[0].addEventListener("scroll",()=>{this.updateProgressBarTolstoy(t[0])}))},updateProgressBarTolstoy(t){const s=p(n.progress,this.container);if(!s)return;const o=100*t.scrollLeft/(t.scrollWidth-t.clientWidth),e="calc("+o.toFixed(0)+"% + 1px)";e&&o>0&&o<101&&setTimeout(()=>{s.style.setProperty("--progess-bar-width",e)},300)},onUnload(){var t;(t=this.animateApps)==null||t.destroy()}});
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.