import{e as k,c as O,m as d,S as B,A as N}from"./autoplay.BCXr_mXN.js";function P(r,e,v,o){return r.params.createElements&&Object.keys(o).forEach(l=>{if(!v[l]&&v.auto===!0){let c=k(r.el,`.${o[l]}`)[0];c||(c=O("div",o[l]),c.className=o[l],r.el.append(c)),v[l]=c,e[l]=c}}),v}function S(r){let{swiper:e,extendParams:v,on:o,emit:l}=r;v({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function c(n){let a;return n&&typeof n=="string"&&e.isElement&&(a=e.el.querySelector(n)||e.hostEl.querySelector(n),a)?a:(n&&(typeof n=="string"&&(a=[...document.querySelectorAll(n)]),e.params.uniqueNavElements&&typeof n=="string"&&a&&a.length>1&&e.el.querySelectorAll(n).length===1?a=e.el.querySelector(n):a&&a.length===1&&(a=a[0])),n&&!a?n:a)}function E(n,a){const t=e.params.navigation;n=d(n),n.forEach(i=>{i&&(i.classList[a?"add":"remove"](...t.disabledClass.split(" ")),i.tagName==="BUTTON"&&(i.disabled=a),e.params.watchOverflow&&e.enabled&&i.classList[e.isLocked?"add":"remove"](t.lockClass))})}function m(){const{nextEl:n,prevEl:a}=e.navigation;if(e.params.loop){E(a,!1),E(n,!1);return}E(a,e.isBeginning&&!e.params.rewind),E(n,e.isEnd&&!e.params.rewind)}function w(n){n.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function x(n){n.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function b(){const n=e.params.navigation;if(e.params.navigation=P(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(n.nextEl||n.prevEl))return;let a=c(n.nextEl),t=c(n.prevEl);Object.assign(e.navigation,{nextEl:a,prevEl:t}),a=d(a),t=d(t);const i=(s,u)=>{s&&s.addEventListener("click",u==="next"?x:w),!e.enabled&&s&&s.classList.add(...n.lockClass.split(" "))};a.forEach(s=>i(s,"next")),t.forEach(s=>i(s,"prev"))}function h(){let{nextEl:n,prevEl:a}=e.navigation;n=d(n),a=d(a);const t=(i,s)=>{i.removeEventListener("click",s==="next"?x:w),i.classList.remove(...e.params.navigation.disabledClass.split(" "))};n.forEach(i=>t(i,"next")),a.forEach(i=>t(i,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?y():(b(),m())}),o("toEdge fromEdge lock unlock",()=>{m()}),o("destroy",()=>{h()}),o("enable disable",()=>{let{nextEl:n,prevEl:a}=e.navigation;if(n=d(n),a=d(a),e.enabled){m();return}[...n,...a].filter(t=>!!t).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),o("click",(n,a)=>{let{nextEl:t,prevEl:i}=e.navigation;t=d(t),i=d(i);const s=a.target;let u=i.includes(s)||t.includes(s);if(e.isElement&&!u){const g=a.path||a.composedPath&&a.composedPath();g&&(u=g.find(f=>t.includes(f)||i.includes(f)))}if(e.params.navigation.hideOnClick&&!u){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===s||e.pagination.el.contains(s)))return;let g;t.length?g=t[0].classList.contains(e.params.navigation.hiddenClass):i.length&&(g=i[0].classList.contains(e.params.navigation.hiddenClass)),l(g===!0?"navigationShow":"navigationHide"),[...t,...i].filter(f=>!!f).forEach(f=>f.classList.toggle(e.params.navigation.hiddenClass))}});const L=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),b(),m()},y=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:L,disable:y,update:m,init:b,destroy:h})}new B(".swiper-beneficios",{slidesPerView:1,spaceBetween:60,navigation:{nextEl:".swiper-navigation-next",prevEl:".swiper-navigation-prev"},autoplay:{delay:2e3,disableOnInteraction:!0},modules:[S,N],breakpoints:{1024:{slidesPerView:2},1280:{slidesPerView:3}}});const p=document.getElementById("popover-manual-ia"),q=document.getElementById("btn-popover-ia");function D(){p.style.opacity="1",p.style.pointerEvents="auto"}function C(){p.style.opacity="0",p.style.pointerEvents="none"}q.addEventListener("click",r=>{r.stopPropagation(),p.style.opacity==="1"?C():D()});p.addEventListener("click",r=>{r.target===p&&C()});
