const ideasSl=document.querySelector(".ls-ideas .swiper");ideasSl&&new Swiper(ideasSl,{loop:!1,watchSlidesProgress:!1,centeredSlides:!1,slidesPerView:1.2,spaceBetween:16,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},pagination:{el:".swiper-pagination"},breakpoints:{768:{slidesPerView:1.5,spaceBetween:16,loop:!1},1024:{slidesPerView:1.5,spaceBetween:32,loop:!1},1280:{slidesPerView:2,spaceBetween:24,initialSlide:2,centeredSlides:!1,loop:!0}}});const sliders=document.querySelectorAll(".sliders .swiper");sliders&&sliders.forEach((e=>{const t=e.dataset.count,s=e.dataset.countMob,i="true"===e.dataset.loop;new Swiper(e,{speed:800,slidesPerView:s,spaceBetween:0,loop:i,allowTouchMove:!0,breakpoints:{1280:{slidesPerView:t,spaceBetween:0,allowTouchMove:!1}}})}));const linksHash=document.querySelectorAll('a[href^="#"');linksHash.forEach((e=>{e.addEventListener("click",(function(e){const t=this.getAttribute("href").substring(1),s=document.getElementById(t);if(s){e.preventDefault(),document.body.classList.remove("lock");const t=s.getBoundingClientRect().top;window.scrollBy({top:t,behavior:"smooth"})}}))}));let getSiblings=function(e){let t=[];if(!e.parentNode)return t;let s=e.parentNode.firstChild;for(;s;)1===s.nodeType&&s!==e&&t.push(s),s=s.nextSibling;return t};const accordions=document.querySelectorAll(".ls-accordion");accordions.forEach((e=>{e.querySelectorAll(".ls-accordion__title").forEach((e=>{e&&e.addEventListener("click",(function(t){t.preventDefault(),this.parentNode.classList.toggle("active");const s=this.nextElementSibling;if(s.style.maxHeight)s.style.maxHeight=null;else{s.style.maxHeight=s.scrollHeight+"px";getSiblings(e.parentNode).map((e=>{e.querySelector(".ls-accordion__wrap")&&(e.classList.remove("active"),e.querySelector(".ls-accordion__title").classList.remove("active"),e.querySelector(".ls-accordion__wrap").style.maxHeight=null)}))}}))}))}));const inputs=document.querySelectorAll(".wpsc-create-ticket input");function getInputValue(){inputs.forEach((e=>{""!==e.value.trim()?e.closest(".wpsc-tff").classList.add("active"):e.closest(".wpsc-tff").classList.remove("active")}))}getInputValue(),inputs.forEach((e=>{e.addEventListener("input",getInputValue)}));const textareas=document.querySelectorAll(".wpsc_textarea");function getTextareaValue(){textareas.forEach((e=>{""!==e.value.trim()?e.closest(".description").classList.add("active"):e.closest(".description").classList.remove("active")}))}getTextareaValue(),textareas.forEach((e=>{e.addEventListener("input",getTextareaValue)}));