1import{$ as a,d as g,i as d,a as n,s as v,b as y}from"./main-CAJkJqoY.js";let p=a(".history_slider").length>0?{init:!0}:{init:!1};const u=e=>{let t=!1,s=null;const l=()=>{const o=e.querySelector(".active"),h=o.nextElementSibling||o.parentNode.children[0];o.classList.remove("active"),h.classList.add("active")},i=()=>{t||(t=!0,s=setInterval(l,3e3))},c=()=>{t&&(t=!1,clearInterval(s),s=null)},r=()=>{window.innerWidth>768?i():c()};window.addEventListener("resize",r),r(),e.addEventListener("click",o=>{(o.target.classList.contains("info_block")||o.target.closest(".info_block"))&&!o.target.closest("li").classList.contains("active")&&(e.querySelector(".active").classList.remove("active"),o.target.closest("li").classList.add("active"),window.innerWidth>768&&(c(),i()))})},w=()=>{a(".history_block .description_block").forEach(e=>{const t=window.innerWidth>=1180?198:160;e.offsetHeight>t?e.closest(".history_block").querySelector(".details_toggle").classList.add("active"):e.closest(".history_block").querySelector(".details_toggle").classList.remove("active")})},f=e=>{const t=e&&e.classList.contains("details_toggle")?e.closest(".history_block"):n(".history_block.opened");if(console.log(t),t.classList.contains("opened"))t.classList.remove("opened");else{const s=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=t.getBoundingClientRect().top+s-20;v(l,300),t.classList.add("opened")}};g(()=>{y()});window.addEventListener("load",()=>{if(a(".main_slider .swiper-slide").length>0){const e={speed:500,loop:!0,slidesPerView:1,effect:"fade",fadeEffect:{crossFade:!0},autoplay:{delay:5e3,disableOnInteraction:!1},pagination:{el:".slider_dots"},navigation:{nextEl:".swiper-next",prevEl:".swiper-prev"}};setTimeout(()=>{const t=a(".main_slider img[data-src]"),s=a(".main_slider [data-srcset]");let l=0;s.forEach(i=>{i.srcset=i.dataset.srcset,delete i.dataset.srcset}),t.forEach(i=>{i.src=i.dataset.src,delete i.dataset.src,i.onload=()=>{l++,l===t.length&&d(".main_slider",0,e,null)}})},500)}if(document.onscroll=()=>{const e=window.scrollY;p.init&&d(".history_slider",e,{speed:500,slidesPerView:1.25,breakpoints:{481:{slidesPerView:1.75},641:{slidesPerView:2.25},769:{slidesPerView:2.75},1025:{slidesPerView:3},1281:{slidesPerView:4}},navigation:{nextEl:".swiper-next",prevEl:".swiper-prev"}},p)},document.dispatchEvent(new Event("scroll")),n(".strategy_section .steps_list")&&u(n(".steps_list")),n(".history_slider")){w();let e=null,t=window.innerWidth;window.addEventListener("resize",()=>{e&&clearTimeout(e),e=setTimeout(()=>{const s=window.innerWidth;t!==s&&(w(),n(".history_block.opened")&&f()),t=s},100)}),document.addEventListener("click",s=>{(s.target.classList.contains("details_toggle")||n(".history_block.opened")&&!s.target.closest(".history_block.opened"))&&f(s.target)})}});
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.