1import{x as M,v as R,f as A}from"./CtDMneU4.js";function N(c){const{effect:e,swiper:t,on:n,setTranslate:m,setTransition:f,overwriteParams:o,perspective:r,recreateShadows:i,getEffectParams:s}=c;n("beforeInit",()=>{if(t.params.effect!==e)return;t.classNames.push(`${t.params.containerModifierClass}${e}`),r&&r()&&t.classNames.push(`${t.params.containerModifierClass}3d`);const u=o?o():{};Object.assign(t.params,u),Object.assign(t.originalParams,u)}),n("setTranslate _virtualUpdated",()=>{t.params.effect===e&&m()}),n("setTransition",(u,h)=>{t.params.effect===e&&f(h)}),n("transitionEnd",()=>{if(t.params.effect===e&&i){if(!s||!s().slideShadows)return;t.slides.forEach(u=>{u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(h=>h.remove())}),i()}});let d;n("virtualUpdate",()=>{t.params.effect===e&&(t.slides.length||(d=!0),requestAnimationFrame(()=>{d&&t.slides&&t.slides.length&&(m(),d=!1)}))})}function j(c,e){const t=M(e);return t!==e&&(t.style.backfaceVisibility="hidden",t.style["-webkit-backface-visibility"]="hidden"),t}function k(c){let{swiper:e,duration:t,transformElements:n,allSlides:m}=c;const{activeIndex:f}=e,o=r=>r.parentElement?r.parentElement:e.slides.find(s=>s.shadowRoot&&s.shadowRoot===r.parentNode);if(e.params.virtualTranslate&&t!==0){let r=!1,i;m?i=n:i=n.filter(s=>{const d=s.classList.contains("swiper-slide-transform")?o(s):s;return e.getSlideIndex(d)===f}),i.forEach(s=>{R(s,()=>{if(r||!e||e.destroyed)return;r=!0,e.animating=!1;const d=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(d)})})}}function D(c,e,t){const n=`swiper-slide-shadow${t?`-${t}`:""}${c?` swiper-slide-shadow-${c}`:""}`,m=M(e);let f=m.querySelector(`.${n.split(" ").join(".")}`);return f||(f=A("div",n.split(" ")),m.append(f)),f}function V(c){let{swiper:e,extendParams:t,on:n}=c;t({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),N({effect:"cards",swiper:e,on:n,setTranslate:()=>{const{slides:o,activeIndex:r,rtlTranslate:i}=e,s=e.params.cardsEffect,{startTranslate:d,isTouched:u}=e.touchEventsData,h=i?-e.translate:e.translate;for(let S=0;S<o.length;S+=1){const w=o[S],y=w.progress,a=Math.min(Math.max(y,-4),4);let b=w.swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&(e.wrapperEl.style.transform=`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(b-=o[0].swiperSlideOffset);let p=e.params.cssMode?-b-e.translate:-b,E=0;const x=-100*Math.abs(a);let g=1,v=-s.perSlideRotate*a,T=s.perSlideOffset-Math.abs(a)*.75;const $=e.virtual&&e.params.virtual.enabled?e.virtual.from+S:S,P=($===r||$===r-1)&&a>0&&a<1&&(u||e.params.cssMode)&&h<d,I=($===r||$===r+1)&&a<0&&a>-1&&(u||e.params.cssMode)&&h>d;if(P||I){const l=(1-Math.abs((Math.abs(a)-.5)/.5))**.5;v+=-28*a*l,g+=-.5*l,T+=96*l,E=`${-25*l*Math.abs(a)}%`}if(a<0?p=`calc(${p}px ${i?"-":"+"} (${T*Math.abs(a)}%))`:a>0?p=`calc(${p}px ${i?"-":"+"} (-${T*Math.abs(a)}%))`:p=`${p}px`,!e.isHorizontal()){const l=E;E=p,p=l}const O=a<0?`${1+(1-g)*a}`:`${1-(1-g)*a}`,q=` 2 translate3d(${p}, ${E}, ${x}px) 3 rotateZ(${s.rotate?i?-v:v:0}deg) 4 scale(${O}) 5 `;if(s.slideShadows){let l=w.querySelector(".swiper-slide-shadow");l||(l=D("cards",w)),l&&(l.style.opacity=Math.min(Math.max((Math.abs(a)-.5)/.5,0),1))}w.style.zIndex=-Math.abs(Math.round(y))+o.length;const C=j(s,w);C.style.transform=q}},setTransition:o=>{const r=e.slides.map(i=>M(i));r.forEach(i=>{i.style.transitionDuration=`${o}ms`,i.querySelectorAll(".swiper-slide-shadow").forEach(s=>{s.style.transitionDuration=`${o}ms`})}),k({swiper:e,duration:o,transformElements:r})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}export{V as E,j as a,k as b,D as c,N 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.