1import{a as p,e as m}from"./swiper-core-Dt8Y_ItT.js";function h(f){const{effect:t,swiper:e,on:a,setTranslate:l,setTransition:c,overwriteParams:d,perspective:r,recreateShadows:i,getEffectParams:s}=f;a("beforeInit",()=>{if(e.params.effect!==t)return;e.classNames.push(`${e.params.containerModifierClass}${t}`),r&&r()&&e.classNames.push(`${e.params.containerModifierClass}3d`);const o=d?d():{};Object.assign(e.params,o),Object.assign(e.originalParams,o)}),a("setTranslate",()=>{e.params.effect===t&&l()}),a("setTransition",(o,u)=>{e.params.effect===t&&c(u)}),a("transitionEnd",()=>{if(e.params.effect===t&&i){if(!s||!s().slideShadows)return;e.slides.forEach(o=>{o.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>u.remove())}),i()}});let n;a("virtualUpdate",()=>{e.params.effect===t&&(e.slides.length||(n=!0),requestAnimationFrame(()=>{n&&e.slides&&e.slides.length&&(l(),n=!1)}))})}function g(f,t){const e=p(t);return e!==t&&(e.style.backfaceVisibility="hidden",e.style["-webkit-backface-visibility"]="hidden"),e}function b(f){let{swiper:t,duration:e,transformElements:a,allSlides:l}=f;const{activeIndex:c}=t,d=r=>r.parentElement?r.parentElement:t.slides.find(s=>s.shadowRoot&&s.shadowRoot===r.parentNode);if(t.params.virtualTranslate&&e!==0){let r=!1,i;l?i=a:i=a.filter(s=>{const n=s.classList.contains("swiper-slide-transform")?d(s):s;return t.getSlideIndex(n)===c}),i.forEach(s=>{m(s,()=>{if(r||!t||t.destroyed)return;r=!0,t.animating=!1;const n=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(n)})})}}export{g as a,b,h as e};
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.