import{g as O,S as z,N as G}from"./navigation.1wJW8ksF.js";function H(c){let{swiper:e,extendParams:C,on:s,emit:i,params:p}=c;e.autoplay={running:!1,paused:!1,timeLeft:0},C({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let f,b,L=p&&p.autoplay?p.autoplay.delay:3e3,E=p&&p.autoplay?p.autoplay.delay:3e3,n,m=new Date().getTime(),S,T,d,I,h,o,D;function M(t){!e||e.destroyed||!e.wrapperEl||t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",M),!(D||t.detail&&t.detail.bySwiperTouchMove)&&l())}const P=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?S=!0:S&&(E=n,S=!1);const t=e.autoplay.paused?n:m+E-new Date().getTime();e.autoplay.timeLeft=t,i("autoplayTimeLeft",t,t/L),b=requestAnimationFrame(()=>{P()})},V=()=>{let t;return e.virtual&&e.params.virtual.enabled?t=e.slides.find(a=>a.classList.contains("swiper-slide-active")):t=e.slides[e.activeIndex],t?parseInt(t.getAttribute("data-swiper-autoplay"),10):void 0},w=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(b),P();let r=typeof t>"u"?e.params.autoplay.delay:t;L=e.params.autoplay.delay,E=e.params.autoplay.delay;const a=V();!Number.isNaN(a)&&a>0&&typeof t>"u"&&(r=a,L=a,E=a),n=r;const g=e.params.speed,x=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(g,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,g,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(g,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,g,!0,!0),i("autoplay")),e.params.cssMode&&(m=new Date().getTime(),requestAnimationFrame(()=>{w()})))};return r>0?(clearTimeout(f),f=setTimeout(()=>{x()},r)):requestAnimationFrame(()=>{x()}),r},A=()=>{m=new Date().getTime(),e.autoplay.running=!0,w(),i("autoplayStart")},v=()=>{e.autoplay.running=!1,clearTimeout(f),cancelAnimationFrame(b),i("autoplayStop")},y=(t,r)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(f),t||(o=!0);const a=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",M):l()};if(e.autoplay.paused=!0,r){h&&(n=e.params.autoplay.delay),h=!1,a();return}n=(n||e.params.autoplay.delay)-(new Date().getTime()-m),!(e.isEnd&&n<0&&!e.params.loop)&&(n<0&&(n=0),a())},l=()=>{e.isEnd&&n<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(m=new Date().getTime(),o?(o=!1,w(n)):w(),e.autoplay.paused=!1,i("autoplayResume"))},B=()=>{if(e.destroyed||!e.autoplay.running)return;const t=O();t.visibilityState==="hidden"&&(o=!0,y(!0)),t.visibilityState==="visible"&&l()},N=t=>{t.pointerType==="mouse"&&(o=!0,D=!0,!(e.animating||e.autoplay.paused)&&y(!0))},F=t=>{t.pointerType==="mouse"&&(D=!1,e.autoplay.paused&&l())},q=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",N),e.el.addEventListener("pointerleave",F))},R=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",N),e.el.removeEventListener("pointerleave",F))},_=()=>{O().addEventListener("visibilitychange",B)},j=()=>{O().removeEventListener("visibilitychange",B)};s("init",()=>{e.params.autoplay.enabled&&(q(),_(),A())}),s("destroy",()=>{R(),j(),e.autoplay.running&&v()}),s("_freeModeStaticRelease",()=>{(d||o)&&l()}),s("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?v():y(!0,!0)}),s("beforeTransitionStart",(t,r,a)=>{e.destroyed||!e.autoplay.running||(a||!e.params.autoplay.disableOnInteraction?y(!0,!0):v())}),s("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){v();return}T=!0,d=!1,o=!1,I=setTimeout(()=>{o=!0,d=!0,y(!0)},200)}}),s("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!T)){if(clearTimeout(I),clearTimeout(f),e.params.autoplay.disableOnInteraction){d=!1,T=!1;return}d&&e.params.cssMode&&l(),d=!1,T=!1}}),s("slideChange",()=>{e.destroyed||!e.autoplay.running||(h=!0)}),Object.assign(e.autoplay,{start:A,stop:v,pause:y,resume:l})}new z(".swiper-beneficios",{slidesPerView:1,spaceBetween:60,navigation:{nextEl:".swiper-navigation-next",prevEl:".swiper-navigation-prev"},autoplay:{delay:2e3,disableOnInteraction:!0},modules:[G,H],breakpoints:{1024:{slidesPerView:2},1280:{slidesPerView:3}}});const u=document.getElementById("popover-manual-ia"),J=document.getElementById("btn-popover-ia");function K(){u.style.opacity="1",u.style.pointerEvents="auto"}function k(){u.style.opacity="0",u.style.pointerEvents="none"}J.addEventListener("click",c=>{c.stopPropagation(),u.style.opacity==="1"?k():K()});u.addEventListener("click",c=>{c.target===u&&k()});
