@wikicasa-dev/components 1.2.18 → 1.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BaseAutocomplete.vue_vue_type_script_setup_true_lang-BKT74JOA.cjs +1 -0
- package/dist/{BaseAutocomplete.vue_vue_type_script_setup_true_lang-CVOeKK-H.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang-CyKiFL9U.js} +80 -68
- package/dist/{CheckboxGroup.vue_vue_type_script_setup_true_lang-B28hp87l.js → CheckboxGroup.vue_vue_type_script_setup_true_lang-B7br31oI.js} +27 -26
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-r0BQC_c8.cjs +1 -0
- package/dist/ObjectUtils-B1Dk4qsM.js +12 -0
- package/dist/ObjectUtils-C5gq8MtL.cjs +1 -0
- package/dist/SwiperCarousel.vue_vue_type_style_index_0_lang-i2Sb9Y22.cjs +5 -0
- package/dist/{SwiperCarousel.vue_vue_type_style_index_0_lang-DUANcQKT.js → SwiperCarousel.vue_vue_type_style_index_0_lang-wAOLSjLf.js} +25 -24
- package/dist/{index-6DJ6N4f8.js → index-BgbVfPBC.js} +2 -2
- package/dist/{index-Dz30IWWY.cjs → index-zWmFcQq_.cjs} +1 -1
- package/dist/js.cookie-BMVAK0Pe.cjs +1 -0
- package/dist/js.cookie-BaTT4o7s.js +101 -0
- package/dist/lib/UIKit/BaseAutocomplete.cjs +1 -1
- package/dist/lib/UIKit/BaseAutocomplete.js +1 -1
- package/dist/lib/UIKit/BaseBtModal.cjs +1 -1
- package/dist/lib/UIKit/BaseBtModal.js +43 -35
- package/dist/lib/UIKit/BasePagination.cjs +1 -1
- package/dist/lib/UIKit/BasePagination.js +52 -39
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.cjs +1 -1
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/lib/components/carousel/SwiperCarousel.cjs +1 -1
- package/dist/lib/components/carousel/SwiperCarousel.js +1 -1
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/index.js +3 -3
- package/package.json +1 -1
- package/dist/BaseAutocomplete.vue_vue_type_script_setup_true_lang-LiuIZMOu.cjs +0 -1
- package/dist/CheckboxGroup.vue_vue_type_script_setup_true_lang-BkB2KUyO.cjs +0 -1
- package/dist/SwiperCarousel.vue_vue_type_style_index_0_lang-CQsYG4_e.cjs +0 -5
- package/dist/utilities-CBCDB5EB.js +0 -1558
- package/dist/utilities-gwVlEyWn.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./SwiperCarousel.vue_vue_type_style_index_0_lang-CQsYG4_e.cjs");function R(M){let{swiper:e,extendParams:D,on:p,emit:v}=M;const f=m.getDocument(),C=m.getWindow();e.keyboard={enabled:!1},D({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function w(i){if(!e.enabled)return;const{rtlTranslate:c}=e;let d=i;d.originalEvent&&(d=d.originalEvent);const u=d.keyCode||d.charCode,s=e.params.keyboard.pageUpDown,o=s&&u===33,r=s&&u===34,t=u===37,a=u===39,n=u===38,y=u===40;if(!e.allowSlideNext&&(e.isHorizontal()&&a||e.isVertical()&&y||r)||!e.allowSlidePrev&&(e.isHorizontal()&&t||e.isVertical()&&n||o))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(f.activeElement&&f.activeElement.nodeName&&(f.activeElement.nodeName.toLowerCase()==="input"||f.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(o||r||t||a||n||y)){let x=!1;if(m.elementParents(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&m.elementParents(e.el,`.${e.params.slideActiveClass}`).length===0)return;const A=e.el,P=A.clientWidth,g=A.clientHeight,b=C.innerWidth,E=C.innerHeight,I=m.elementOffset(A);c&&(I.left-=A.scrollLeft);const L=[[I.left,I.top],[I.left+P,I.top],[I.left,I.top+g],[I.left+P,I.top+g]];for(let k=0;k<L.length;k+=1){const S=L[k];if(S[0]>=0&&S[0]<=b&&S[1]>=0&&S[1]<=E){if(S[0]===0&&S[1]===0)continue;x=!0}}if(!x)return}e.isHorizontal()?((o||r||t||a)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((r||a)&&!c||(o||t)&&c)&&e.slideNext(),((o||t)&&!c||(r||a)&&c)&&e.slidePrev()):((o||r||n||y)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(r||y)&&e.slideNext(),(o||n)&&e.slidePrev()),v("keyPress",u)}}function h(){e.keyboard.enabled||(f.addEventListener("keydown",w),e.keyboard.enabled=!0)}function l(){e.keyboard.enabled&&(f.removeEventListener("keydown",w),e.keyboard.enabled=!1)}p("init",()=>{e.params.keyboard.enabled&&h()}),p("destroy",()=>{e.keyboard.enabled&&l()}),Object.assign(e.keyboard,{enable:h,disable:l})}function F(M,e,D,p){return M.params.createElements&&Object.keys(p).forEach(v=>{if(!D[v]&&D.auto===!0){let f=m.elementChildren(M.el,`.${p[v]}`)[0];f||(f=m.createElement("div",p[v]),f.className=p[v],M.el.append(f)),D[v]=f,e[v]=f}}),D}function V(M){let{swiper:e,extendParams:D,on:p,emit:v}=M;D({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 f(s){let o;return s&&typeof s=="string"&&e.isElement&&(o=e.el.querySelector(s),o)?o:(s&&(typeof s=="string"&&(o=[...document.querySelectorAll(s)]),e.params.uniqueNavElements&&typeof s=="string"&&o.length>1&&e.el.querySelectorAll(s).length===1&&(o=e.el.querySelector(s))),s&&!o?s:o)}function C(s,o){const r=e.params.navigation;s=m.makeElementsArray(s),s.forEach(t=>{t&&(t.classList[o?"add":"remove"](...r.disabledClass.split(" ")),t.tagName==="BUTTON"&&(t.disabled=o),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))})}function w(){const{nextEl:s,prevEl:o}=e.navigation;if(e.params.loop){C(o,!1),C(s,!1);return}C(o,e.isBeginning&&!e.params.rewind),C(s,e.isEnd&&!e.params.rewind)}function h(s){s.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),v("navigationPrev"))}function l(s){s.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),v("navigationNext"))}function i(){const s=e.params.navigation;if(e.params.navigation=F(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(s.nextEl||s.prevEl))return;let o=f(s.nextEl),r=f(s.prevEl);Object.assign(e.navigation,{nextEl:o,prevEl:r}),o=m.makeElementsArray(o),r=m.makeElementsArray(r);const t=(a,n)=>{a&&a.addEventListener("click",n==="next"?l:h),!e.enabled&&a&&a.classList.add(...s.lockClass.split(" "))};o.forEach(a=>t(a,"next")),r.forEach(a=>t(a,"prev"))}function c(){let{nextEl:s,prevEl:o}=e.navigation;s=m.makeElementsArray(s),o=m.makeElementsArray(o);const r=(t,a)=>{t.removeEventListener("click",a==="next"?l:h),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};s.forEach(t=>r(t,"next")),o.forEach(t=>r(t,"prev"))}p("init",()=>{e.params.navigation.enabled===!1?u():(i(),w())}),p("toEdge fromEdge lock unlock",()=>{w()}),p("destroy",()=>{c()}),p("enable disable",()=>{let{nextEl:s,prevEl:o}=e.navigation;if(s=m.makeElementsArray(s),o=m.makeElementsArray(o),e.enabled){w();return}[...s,...o].filter(r=>!!r).forEach(r=>r.classList.add(e.params.navigation.lockClass))}),p("click",(s,o)=>{let{nextEl:r,prevEl:t}=e.navigation;r=m.makeElementsArray(r),t=m.makeElementsArray(t);const a=o.target;if(e.params.navigation.hideOnClick&&!t.includes(a)&&!r.includes(a)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let n;r.length?n=r[0].classList.contains(e.params.navigation.hiddenClass):t.length&&(n=t[0].classList.contains(e.params.navigation.hiddenClass)),v(n===!0?"navigationShow":"navigationHide"),[...r,...t].filter(y=>!!y).forEach(y=>y.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),i(),w()},u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:d,disable:u,update:w,init:i,destroy:c})}function H(M){return M===void 0&&(M=""),`.${M.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function j(M){let{swiper:e,extendParams:D,on:p,emit:v}=M;const f="swiper-pagination";D({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${f}-bullet`,bulletActiveClass:`${f}-bullet-active`,modifierClass:`${f}-`,currentClass:`${f}-current`,totalClass:`${f}-total`,hiddenClass:`${f}-hidden`,progressbarFillClass:`${f}-progressbar-fill`,progressbarOppositeClass:`${f}-progressbar-opposite`,clickableClass:`${f}-clickable`,lockClass:`${f}-lock`,horizontalClass:`${f}-horizontal`,verticalClass:`${f}-vertical`,paginationDisabledClass:`${f}-disabled`}}),e.pagination={el:null,bullets:[]};let C,w=0;function h(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function l(t,a){const{bulletActiveClass:n}=e.params.pagination;t&&(t=t[`${a==="prev"?"previous":"next"}ElementSibling`],t&&(t.classList.add(`${n}-${a}`),t=t[`${a==="prev"?"previous":"next"}ElementSibling`],t&&t.classList.add(`${n}-${a}-${a}`)))}function i(t){const a=t.target.closest(H(e.params.pagination.bulletClass));if(!a)return;t.preventDefault();const n=m.elementIndex(a)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===n)return;e.slideToLoop(n)}else e.slideTo(n)}function c(){const t=e.rtl,a=e.params.pagination;if(h())return;let n=e.pagination.el;n=m.makeElementsArray(n);let y,x;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,P=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(x=e.previousRealIndex||0,y=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(y=e.snapIndex,x=e.previousSnapIndex):(x=e.previousIndex||0,y=e.activeIndex||0),a.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const g=e.pagination.bullets;let b,E,I;if(a.dynamicBullets&&(C=m.elementOuterSize(g[0],e.isHorizontal()?"width":"height",!0),n.forEach(L=>{L.style[e.isHorizontal()?"width":"height"]=`${C*(a.dynamicMainBullets+4)}px`}),a.dynamicMainBullets>1&&x!==void 0&&(w+=y-(x||0),w>a.dynamicMainBullets-1?w=a.dynamicMainBullets-1:w<0&&(w=0)),b=Math.max(y-w,0),E=b+(Math.min(g.length,a.dynamicMainBullets)-1),I=(E+b)/2),g.forEach(L=>{const k=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(S=>`${a.bulletActiveClass}${S}`)].map(S=>typeof S=="string"&&S.includes(" ")?S.split(" "):S).flat();L.classList.remove(...k)}),n.length>1)g.forEach(L=>{const k=m.elementIndex(L);k===y?L.classList.add(...a.bulletActiveClass.split(" ")):e.isElement&&L.setAttribute("part","bullet"),a.dynamicBullets&&(k>=b&&k<=E&&L.classList.add(...`${a.bulletActiveClass}-main`.split(" ")),k===b&&l(L,"prev"),k===E&&l(L,"next"))});else{const L=g[y];if(L&&L.classList.add(...a.bulletActiveClass.split(" ")),e.isElement&&g.forEach((k,S)=>{k.setAttribute("part",S===y?"bullet-active":"bullet")}),a.dynamicBullets){const k=g[b],S=g[E];for(let $=b;$<=E;$+=1)g[$]&&g[$].classList.add(...`${a.bulletActiveClass}-main`.split(" "));l(k,"prev"),l(S,"next")}}if(a.dynamicBullets){const L=Math.min(g.length,a.dynamicMainBullets+4),k=(C*L-C)/2-I*C,S=t?"right":"left";g.forEach($=>{$.style[e.isHorizontal()?S:"top"]=`${k}px`})}}n.forEach((g,b)=>{if(a.type==="fraction"&&(g.querySelectorAll(H(a.currentClass)).forEach(E=>{E.textContent=a.formatFractionCurrent(y+1)}),g.querySelectorAll(H(a.totalClass)).forEach(E=>{E.textContent=a.formatFractionTotal(P)})),a.type==="progressbar"){let E;a.progressbarOpposite?E=e.isHorizontal()?"vertical":"horizontal":E=e.isHorizontal()?"horizontal":"vertical";const I=(y+1)/P;let L=1,k=1;E==="horizontal"?L=I:k=I,g.querySelectorAll(H(a.progressbarFillClass)).forEach(S=>{S.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${k})`,S.style.transitionDuration=`${e.params.speed}ms`})}a.type==="custom"&&a.renderCustom?(g.innerHTML=a.renderCustom(e,y+1,P),b===0&&v("paginationRender",g)):(b===0&&v("paginationRender",g),v("paginationUpdate",g)),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](a.lockClass)})}function d(){const t=e.params.pagination;if(h())return;const a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let n=e.pagination.el;n=m.makeElementsArray(n);let y="";if(t.type==="bullets"){let x=e.params.loop?Math.ceil(a/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&x>a&&(x=a);for(let A=0;A<x;A+=1)t.renderBullet?y+=t.renderBullet.call(e,A,t.bulletClass):y+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}t.type==="fraction"&&(t.renderFraction?y=t.renderFraction.call(e,t.currentClass,t.totalClass):y=`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),t.type==="progressbar"&&(t.renderProgressbar?y=t.renderProgressbar.call(e,t.progressbarFillClass):y=`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],n.forEach(x=>{t.type!=="custom"&&(x.innerHTML=y||""),t.type==="bullets"&&e.pagination.bullets.push(...x.querySelectorAll(H(t.bulletClass)))}),t.type!=="custom"&&v("paginationRender",n[0])}function u(){e.params.pagination=F(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let a;typeof t.el=="string"&&e.isElement&&(a=e.el.querySelector(t.el)),!a&&typeof t.el=="string"&&(a=[...document.querySelectorAll(t.el)]),a||(a=t.el),!(!a||a.length===0)&&(e.params.uniqueNavElements&&typeof t.el=="string"&&Array.isArray(a)&&a.length>1&&(a=[...e.el.querySelectorAll(t.el)],a.length>1&&(a=a.filter(n=>m.elementParents(n,".swiper")[0]===e.el)[0])),Array.isArray(a)&&a.length===1&&(a=a[0]),Object.assign(e.pagination,{el:a}),a=m.makeElementsArray(a),a.forEach(n=>{t.type==="bullets"&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.type==="bullets"&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),w=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type==="progressbar"&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",i),e.enabled||n.classList.add(t.lockClass)}))}function s(){const t=e.params.pagination;if(h())return;let a=e.pagination.el;a&&(a=m.makeElementsArray(a),a.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",i))})),e.pagination.bullets&&e.pagination.bullets.forEach(n=>n.classList.remove(...t.bulletActiveClass.split(" ")))}p("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:a}=e.pagination;a=m.makeElementsArray(a),a.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),p("init",()=>{e.params.pagination.enabled===!1?r():(u(),d(),c())}),p("activeIndexChange",()=>{typeof e.snapIndex>"u"&&c()}),p("snapIndexChange",()=>{c()}),p("snapGridLengthChange",()=>{d(),c()}),p("destroy",()=>{s()}),p("enable disable",()=>{let{el:t}=e.pagination;t&&(t=m.makeElementsArray(t),t.forEach(a=>a.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),p("lock unlock",()=>{c()}),p("click",(t,a)=>{const n=a.target,y=m.makeElementsArray(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&y&&y.length>0&&!n.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&n===e.navigation.nextEl||e.navigation.prevEl&&n===e.navigation.prevEl))return;const x=y[0].classList.contains(e.params.pagination.hiddenClass);v(x===!0?"paginationShow":"paginationHide"),y.forEach(A=>A.classList.toggle(e.params.pagination.hiddenClass))}});const o=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=m.makeElementsArray(t),t.forEach(a=>a.classList.remove(e.params.pagination.paginationDisabledClass))),u(),d(),c()},r=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=m.makeElementsArray(t),t.forEach(a=>a.classList.add(e.params.pagination.paginationDisabledClass))),s()};Object.assign(e.pagination,{enable:o,disable:r,render:d,update:c,init:u,destroy:s})}function G(M){let{swiper:e,extendParams:D,on:p}=M;D({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function v(l,i){const c=function(){let o,r,t;return(a,n)=>{for(r=-1,o=a.length;o-r>1;)t=o+r>>1,a[t]<=n?r=t:o=t;return o}}();this.x=l,this.y=i,this.lastIndex=l.length-1;let d,u;return this.interpolate=function(o){return o?(u=c(this.x,o),d=u-1,(o-this.x[d])*(this.y[u]-this.y[d])/(this.x[u]-this.x[d])+this.y[d]):0},this}function f(l){e.controller.spline=e.params.loop?new v(e.slidesGrid,l.slidesGrid):new v(e.snapGrid,l.snapGrid)}function C(l,i){const c=e.controller.control;let d,u;const s=e.constructor;function o(r){if(r.destroyed)return;const t=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(f(r),u=-e.controller.spline.interpolate(-t)),(!u||e.params.controller.by==="container")&&(d=(r.maxTranslate()-r.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(d)||!Number.isFinite(d))&&(d=1),u=(t-e.minTranslate())*d+r.minTranslate()),e.params.controller.inverse&&(u=r.maxTranslate()-u),r.updateProgress(u),r.setTranslate(u,e),r.updateActiveIndex(),r.updateSlidesClasses()}if(Array.isArray(c))for(let r=0;r<c.length;r+=1)c[r]!==i&&c[r]instanceof s&&o(c[r]);else c instanceof s&&i!==c&&o(c)}function w(l,i){const c=e.constructor,d=e.controller.control;let u;function s(o){o.destroyed||(o.setTransition(l,e),l!==0&&(o.transitionStart(),o.params.autoHeight&&m.nextTick(()=>{o.updateAutoHeight()}),m.elementTransitionEnd(o.wrapperEl,()=>{d&&o.transitionEnd()})))}if(Array.isArray(d))for(u=0;u<d.length;u+=1)d[u]!==i&&d[u]instanceof c&&s(d[u]);else d instanceof c&&i!==d&&s(d)}function h(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}p("beforeInit",()=>{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const l=document.querySelector(e.params.controller.control);if(l&&l.swiper)e.controller.control=l.swiper;else if(l){const i=c=>{e.controller.control=c.detail[0],e.update(),l.removeEventListener("init",i)};l.addEventListener("init",i)}return}e.controller.control=e.params.controller.control}),p("update",()=>{h()}),p("resize",()=>{h()}),p("observerUpdate",()=>{h()}),p("setTranslate",(l,i,c)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(i,c)}),p("setTransition",(l,i,c)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(i,c)}),Object.assign(e.controller,{setTranslate:C,setTransition:w})}function U(M){let{swiper:e,extendParams:D,on:p,emit:v,params:f}=M;e.autoplay={running:!1,paused:!1,timeLeft:0},D({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let C,w,h=f&&f.autoplay?f.autoplay.delay:3e3,l=f&&f.autoplay?f.autoplay.delay:3e3,i,c=new Date().getTime(),d,u,s,o,r,t,a;function n(T){!e||e.destroyed||!e.wrapperEl||T.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",n),!a&&E())}const y=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&(l=i,d=!1);const T=e.autoplay.paused?i:c+l-new Date().getTime();e.autoplay.timeLeft=T,v("autoplayTimeLeft",T,T/h),w=requestAnimationFrame(()=>{y()})},x=()=>{let T;return e.virtual&&e.params.virtual.enabled?T=e.slides.filter(O=>O.classList.contains("swiper-slide-active"))[0]:T=e.slides[e.activeIndex],T?parseInt(T.getAttribute("data-swiper-autoplay"),10):void 0},A=T=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(w),y();let B=typeof T>"u"?e.params.autoplay.delay:T;h=e.params.autoplay.delay,l=e.params.autoplay.delay;const O=x();!Number.isNaN(O)&&O>0&&typeof T>"u"&&(B=O,h=O,l=O),i=B;const z=e.params.speed,N=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(z,!0,!0),v("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,z,!0,!0),v("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(z,!0,!0),v("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,z,!0,!0),v("autoplay")),e.params.cssMode&&(c=new Date().getTime(),requestAnimationFrame(()=>{A()})))};return B>0?(clearTimeout(C),C=setTimeout(()=>{N()},B)):requestAnimationFrame(()=>{N()}),B},P=()=>{c=new Date().getTime(),e.autoplay.running=!0,A(),v("autoplayStart")},g=()=>{e.autoplay.running=!1,clearTimeout(C),cancelAnimationFrame(w),v("autoplayStop")},b=(T,B)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(C),T||(t=!0);const O=()=>{v("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",n):E()};if(e.autoplay.paused=!0,B){r&&(i=e.params.autoplay.delay),r=!1,O();return}i=(i||e.params.autoplay.delay)-(new Date().getTime()-c),!(e.isEnd&&i<0&&!e.params.loop)&&(i<0&&(i=0),O())},E=()=>{e.isEnd&&i<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(c=new Date().getTime(),t?(t=!1,A(i)):A(),e.autoplay.paused=!1,v("autoplayResume"))},I=()=>{if(e.destroyed||!e.autoplay.running)return;const T=m.getDocument();T.visibilityState==="hidden"&&(t=!0,b(!0)),T.visibilityState==="visible"&&E()},L=T=>{T.pointerType==="mouse"&&(t=!0,a=!0,!(e.animating||e.autoplay.paused)&&b(!0))},k=T=>{T.pointerType==="mouse"&&(a=!1,e.autoplay.paused&&E())},S=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",L),e.el.addEventListener("pointerleave",k))},$=()=>{e.el.removeEventListener("pointerenter",L),e.el.removeEventListener("pointerleave",k)},q=()=>{m.getDocument().addEventListener("visibilitychange",I)},_=()=>{m.getDocument().removeEventListener("visibilitychange",I)};p("init",()=>{e.params.autoplay.enabled&&(S(),q(),P())}),p("destroy",()=>{$(),_(),e.autoplay.running&&g()}),p("_freeModeStaticRelease",()=>{(s||t)&&E()}),p("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?g():b(!0,!0)}),p("beforeTransitionStart",(T,B,O)=>{e.destroyed||!e.autoplay.running||(O||!e.params.autoplay.disableOnInteraction?b(!0,!0):g())}),p("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){g();return}u=!0,s=!1,t=!1,o=setTimeout(()=>{t=!0,s=!0,b(!0)},200)}}),p("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!u)){if(clearTimeout(o),clearTimeout(C),e.params.autoplay.disableOnInteraction){s=!1,u=!1;return}s&&e.params.cssMode&&E(),s=!1,u=!1}}),p("slideChange",()=>{e.destroyed||!e.autoplay.running||(r=!0)}),Object.assign(e.autoplay,{start:P,stop:g,pause:b,resume:E})}function K(M){let{swiper:e,extendParams:D,on:p}=M;D({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let v=!1,f=!1;e.thumbs={swiper:null};function C(){const l=e.thumbs.swiper;if(!l||l.destroyed)return;const i=l.clickedIndex,c=l.clickedSlide;if(c&&c.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof i>"u"||i===null)return;let d;l.params.loop?d=parseInt(l.clickedSlide.getAttribute("data-swiper-slide-index"),10):d=i,e.params.loop?e.slideToLoop(d):e.slideTo(d)}function w(){const{thumbs:l}=e.params;if(v)return!1;v=!0;const i=e.constructor;if(l.swiper instanceof i)e.thumbs.swiper=l.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(m.isObject(l.swiper)){const c=Object.assign({},l.swiper);Object.assign(c,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(c),f=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",C),!0}function h(l){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const c=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():i.params.slidesPerView;let d=1;const u=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),i.slides.forEach(r=>r.classList.remove(u)),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let r=0;r<d;r+=1)m.elementChildren(i.slidesEl,`[data-swiper-slide-index="${e.realIndex+r}"]`).forEach(t=>{t.classList.add(u)});else for(let r=0;r<d;r+=1)i.slides[e.realIndex+r]&&i.slides[e.realIndex+r].classList.add(u);const s=e.params.thumbs.autoScrollOffset,o=s&&!i.params.loop;if(e.realIndex!==i.realIndex||o){const r=i.activeIndex;let t,a;if(i.params.loop){const n=i.slides.filter(y=>y.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];t=i.slides.indexOf(n),a=e.activeIndex>e.previousIndex?"next":"prev"}else t=e.realIndex,a=t>e.previousIndex?"next":"prev";o&&(t+=a==="next"?s:-1*s),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(t)<0&&(i.params.centeredSlides?t>r?t=t-Math.floor(c/2)+1:t=t+Math.floor(c/2)-1:t>r&&i.params.slidesPerGroup,i.slideTo(t,l?0:void 0))}}p("beforeInit",()=>{const{thumbs:l}=e.params;if(!(!l||!l.swiper))if(typeof l.swiper=="string"||l.swiper instanceof HTMLElement){const i=m.getDocument(),c=()=>{const u=typeof l.swiper=="string"?i.querySelector(l.swiper):l.swiper;if(u&&u.swiper)l.swiper=u.swiper,w(),h(!0);else if(u){const s=o=>{l.swiper=o.detail[0],u.removeEventListener("init",s),w(),h(!0),l.swiper.update(),e.update()};u.addEventListener("init",s)}return u},d=()=>{if(e.destroyed)return;c()||requestAnimationFrame(d)};requestAnimationFrame(d)}else w(),h(!0)}),p("slideChange update resize observerUpdate",()=>{h()}),p("setTransition",(l,i)=>{const c=e.thumbs.swiper;!c||c.destroyed||c.setTransition(i)}),p("beforeDestroy",()=>{const l=e.thumbs.swiper;!l||l.destroyed||f&&l.destroy()}),Object.assign(e.thumbs,{init:w,update:h})}function W(M){let{swiper:e,extendParams:D,emit:p,once:v}=M;D({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function f(){if(e.params.cssMode)return;const h=e.getTranslate();e.setTranslate(h),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function C(){if(e.params.cssMode)return;const{touchEventsData:h,touches:l}=e;h.velocities.length===0&&h.velocities.push({position:l[e.isHorizontal()?"startX":"startY"],time:h.touchStartTime}),h.velocities.push({position:l[e.isHorizontal()?"currentX":"currentY"],time:m.now()})}function w(h){let{currentPos:l}=h;if(e.params.cssMode)return;const{params:i,wrapperEl:c,rtlTranslate:d,snapGrid:u,touchEventsData:s}=e,r=m.now()-s.touchStartTime;if(l<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(l>-e.maxTranslate()){e.slides.length<u.length?e.slideTo(u.length-1):e.slideTo(e.slides.length-1);return}if(i.freeMode.momentum){if(s.velocities.length>1){const g=s.velocities.pop(),b=s.velocities.pop(),E=g.position-b.position,I=g.time-b.time;e.velocity=E/I,e.velocity/=2,Math.abs(e.velocity)<i.freeMode.minimumVelocity&&(e.velocity=0),(I>150||m.now()-g.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeMode.momentumVelocityRatio,s.velocities.length=0;let t=1e3*i.freeMode.momentumRatio;const a=e.velocity*t;let n=e.translate+a;d&&(n=-n);let y=!1,x;const A=Math.abs(e.velocity)*20*i.freeMode.momentumBounceRatio;let P;if(n<e.maxTranslate())i.freeMode.momentumBounce?(n+e.maxTranslate()<-A&&(n=e.maxTranslate()-A),x=e.maxTranslate(),y=!0,s.allowMomentumBounce=!0):n=e.maxTranslate(),i.loop&&i.centeredSlides&&(P=!0);else if(n>e.minTranslate())i.freeMode.momentumBounce?(n-e.minTranslate()>A&&(n=e.minTranslate()+A),x=e.minTranslate(),y=!0,s.allowMomentumBounce=!0):n=e.minTranslate(),i.loop&&i.centeredSlides&&(P=!0);else if(i.freeMode.sticky){let g;for(let b=0;b<u.length;b+=1)if(u[b]>-n){g=b;break}Math.abs(u[g]-n)<Math.abs(u[g-1]-n)||e.swipeDirection==="next"?n=u[g]:n=u[g-1],n=-n}if(P&&v("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(d?t=Math.abs((-n-e.translate)/e.velocity):t=Math.abs((n-e.translate)/e.velocity),i.freeMode.sticky){const g=Math.abs((d?-n:n)-e.translate),b=e.slidesSizesGrid[e.activeIndex];g<b?t=i.speed:g<2*b?t=i.speed*1.5:t=i.speed*2.5}}else if(i.freeMode.sticky){e.slideToClosest();return}i.freeMode.momentumBounce&&y?(e.updateProgress(x),e.setTransition(t),e.setTranslate(n),e.transitionStart(!0,e.swipeDirection),e.animating=!0,m.elementTransitionEnd(c,()=>{!e||e.destroyed||!s.allowMomentumBounce||(p("momentumBounce"),e.setTransition(i.speed),setTimeout(()=>{e.setTranslate(x),m.elementTransitionEnd(c,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(p("_freeModeNoMomentumRelease"),e.updateProgress(n),e.setTransition(t),e.setTranslate(n),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,m.elementTransitionEnd(c,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(n),e.updateActiveIndex(),e.updateSlidesClasses()}else if(i.freeMode.sticky){e.slideToClosest();return}else i.freeMode&&p("_freeModeNoMomentumRelease");(!i.freeMode.momentum||r>=i.longSwipesMs)&&(p("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:f,onTouchMove:C,onTouchEnd:w}})}exports.Zoom=m.Zoom;exports.Autoplay=U;exports.Controller=G;exports.FreeMode=W;exports.Keyboard=R;exports.Navigation=V;exports.Pagination=j;exports.Thumbs=K;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./SwiperCarousel.vue_vue_type_style_index_0_lang-i2Sb9Y22.cjs");function R(M){let{swiper:e,extendParams:D,on:p,emit:v}=M;const f=m.getDocument(),C=m.getWindow();e.keyboard={enabled:!1},D({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function w(i){if(!e.enabled)return;const{rtlTranslate:c}=e;let d=i;d.originalEvent&&(d=d.originalEvent);const u=d.keyCode||d.charCode,s=e.params.keyboard.pageUpDown,o=s&&u===33,r=s&&u===34,t=u===37,a=u===39,n=u===38,y=u===40;if(!e.allowSlideNext&&(e.isHorizontal()&&a||e.isVertical()&&y||r)||!e.allowSlidePrev&&(e.isHorizontal()&&t||e.isVertical()&&n||o))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(f.activeElement&&f.activeElement.nodeName&&(f.activeElement.nodeName.toLowerCase()==="input"||f.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(o||r||t||a||n||y)){let x=!1;if(m.elementParents(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&m.elementParents(e.el,`.${e.params.slideActiveClass}`).length===0)return;const A=e.el,P=A.clientWidth,g=A.clientHeight,b=C.innerWidth,E=C.innerHeight,I=m.elementOffset(A);c&&(I.left-=A.scrollLeft);const L=[[I.left,I.top],[I.left+P,I.top],[I.left,I.top+g],[I.left+P,I.top+g]];for(let k=0;k<L.length;k+=1){const S=L[k];if(S[0]>=0&&S[0]<=b&&S[1]>=0&&S[1]<=E){if(S[0]===0&&S[1]===0)continue;x=!0}}if(!x)return}e.isHorizontal()?((o||r||t||a)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((r||a)&&!c||(o||t)&&c)&&e.slideNext(),((o||t)&&!c||(r||a)&&c)&&e.slidePrev()):((o||r||n||y)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(r||y)&&e.slideNext(),(o||n)&&e.slidePrev()),v("keyPress",u)}}function h(){e.keyboard.enabled||(f.addEventListener("keydown",w),e.keyboard.enabled=!0)}function l(){e.keyboard.enabled&&(f.removeEventListener("keydown",w),e.keyboard.enabled=!1)}p("init",()=>{e.params.keyboard.enabled&&h()}),p("destroy",()=>{e.keyboard.enabled&&l()}),Object.assign(e.keyboard,{enable:h,disable:l})}function F(M,e,D,p){return M.params.createElements&&Object.keys(p).forEach(v=>{if(!D[v]&&D.auto===!0){let f=m.elementChildren(M.el,`.${p[v]}`)[0];f||(f=m.createElement("div",p[v]),f.className=p[v],M.el.append(f)),D[v]=f,e[v]=f}}),D}function V(M){let{swiper:e,extendParams:D,on:p,emit:v}=M;D({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 f(s){let o;return s&&typeof s=="string"&&e.isElement&&(o=e.el.querySelector(s),o)?o:(s&&(typeof s=="string"&&(o=[...document.querySelectorAll(s)]),e.params.uniqueNavElements&&typeof s=="string"&&o.length>1&&e.el.querySelectorAll(s).length===1&&(o=e.el.querySelector(s))),s&&!o?s:o)}function C(s,o){const r=e.params.navigation;s=m.makeElementsArray(s),s.forEach(t=>{t&&(t.classList[o?"add":"remove"](...r.disabledClass.split(" ")),t.tagName==="BUTTON"&&(t.disabled=o),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))})}function w(){const{nextEl:s,prevEl:o}=e.navigation;if(e.params.loop){C(o,!1),C(s,!1);return}C(o,e.isBeginning&&!e.params.rewind),C(s,e.isEnd&&!e.params.rewind)}function h(s){s.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),v("navigationPrev"))}function l(s){s.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),v("navigationNext"))}function i(){const s=e.params.navigation;if(e.params.navigation=F(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(s.nextEl||s.prevEl))return;let o=f(s.nextEl),r=f(s.prevEl);Object.assign(e.navigation,{nextEl:o,prevEl:r}),o=m.makeElementsArray(o),r=m.makeElementsArray(r);const t=(a,n)=>{a&&a.addEventListener("click",n==="next"?l:h),!e.enabled&&a&&a.classList.add(...s.lockClass.split(" "))};o.forEach(a=>t(a,"next")),r.forEach(a=>t(a,"prev"))}function c(){let{nextEl:s,prevEl:o}=e.navigation;s=m.makeElementsArray(s),o=m.makeElementsArray(o);const r=(t,a)=>{t.removeEventListener("click",a==="next"?l:h),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};s.forEach(t=>r(t,"next")),o.forEach(t=>r(t,"prev"))}p("init",()=>{e.params.navigation.enabled===!1?u():(i(),w())}),p("toEdge fromEdge lock unlock",()=>{w()}),p("destroy",()=>{c()}),p("enable disable",()=>{let{nextEl:s,prevEl:o}=e.navigation;if(s=m.makeElementsArray(s),o=m.makeElementsArray(o),e.enabled){w();return}[...s,...o].filter(r=>!!r).forEach(r=>r.classList.add(e.params.navigation.lockClass))}),p("click",(s,o)=>{let{nextEl:r,prevEl:t}=e.navigation;r=m.makeElementsArray(r),t=m.makeElementsArray(t);const a=o.target;if(e.params.navigation.hideOnClick&&!t.includes(a)&&!r.includes(a)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let n;r.length?n=r[0].classList.contains(e.params.navigation.hiddenClass):t.length&&(n=t[0].classList.contains(e.params.navigation.hiddenClass)),v(n===!0?"navigationShow":"navigationHide"),[...r,...t].filter(y=>!!y).forEach(y=>y.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),i(),w()},u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:d,disable:u,update:w,init:i,destroy:c})}function H(M){return M===void 0&&(M=""),`.${M.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function j(M){let{swiper:e,extendParams:D,on:p,emit:v}=M;const f="swiper-pagination";D({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${f}-bullet`,bulletActiveClass:`${f}-bullet-active`,modifierClass:`${f}-`,currentClass:`${f}-current`,totalClass:`${f}-total`,hiddenClass:`${f}-hidden`,progressbarFillClass:`${f}-progressbar-fill`,progressbarOppositeClass:`${f}-progressbar-opposite`,clickableClass:`${f}-clickable`,lockClass:`${f}-lock`,horizontalClass:`${f}-horizontal`,verticalClass:`${f}-vertical`,paginationDisabledClass:`${f}-disabled`}}),e.pagination={el:null,bullets:[]};let C,w=0;function h(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function l(t,a){const{bulletActiveClass:n}=e.params.pagination;t&&(t=t[`${a==="prev"?"previous":"next"}ElementSibling`],t&&(t.classList.add(`${n}-${a}`),t=t[`${a==="prev"?"previous":"next"}ElementSibling`],t&&t.classList.add(`${n}-${a}-${a}`)))}function i(t){const a=t.target.closest(H(e.params.pagination.bulletClass));if(!a)return;t.preventDefault();const n=m.elementIndex(a)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===n)return;e.slideToLoop(n)}else e.slideTo(n)}function c(){const t=e.rtl,a=e.params.pagination;if(h())return;let n=e.pagination.el;n=m.makeElementsArray(n);let y,x;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,P=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(x=e.previousRealIndex||0,y=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(y=e.snapIndex,x=e.previousSnapIndex):(x=e.previousIndex||0,y=e.activeIndex||0),a.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const g=e.pagination.bullets;let b,E,I;if(a.dynamicBullets&&(C=m.elementOuterSize(g[0],e.isHorizontal()?"width":"height",!0),n.forEach(L=>{L.style[e.isHorizontal()?"width":"height"]=`${C*(a.dynamicMainBullets+4)}px`}),a.dynamicMainBullets>1&&x!==void 0&&(w+=y-(x||0),w>a.dynamicMainBullets-1?w=a.dynamicMainBullets-1:w<0&&(w=0)),b=Math.max(y-w,0),E=b+(Math.min(g.length,a.dynamicMainBullets)-1),I=(E+b)/2),g.forEach(L=>{const k=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(S=>`${a.bulletActiveClass}${S}`)].map(S=>typeof S=="string"&&S.includes(" ")?S.split(" "):S).flat();L.classList.remove(...k)}),n.length>1)g.forEach(L=>{const k=m.elementIndex(L);k===y?L.classList.add(...a.bulletActiveClass.split(" ")):e.isElement&&L.setAttribute("part","bullet"),a.dynamicBullets&&(k>=b&&k<=E&&L.classList.add(...`${a.bulletActiveClass}-main`.split(" ")),k===b&&l(L,"prev"),k===E&&l(L,"next"))});else{const L=g[y];if(L&&L.classList.add(...a.bulletActiveClass.split(" ")),e.isElement&&g.forEach((k,S)=>{k.setAttribute("part",S===y?"bullet-active":"bullet")}),a.dynamicBullets){const k=g[b],S=g[E];for(let $=b;$<=E;$+=1)g[$]&&g[$].classList.add(...`${a.bulletActiveClass}-main`.split(" "));l(k,"prev"),l(S,"next")}}if(a.dynamicBullets){const L=Math.min(g.length,a.dynamicMainBullets+4),k=(C*L-C)/2-I*C,S=t?"right":"left";g.forEach($=>{$.style[e.isHorizontal()?S:"top"]=`${k}px`})}}n.forEach((g,b)=>{if(a.type==="fraction"&&(g.querySelectorAll(H(a.currentClass)).forEach(E=>{E.textContent=a.formatFractionCurrent(y+1)}),g.querySelectorAll(H(a.totalClass)).forEach(E=>{E.textContent=a.formatFractionTotal(P)})),a.type==="progressbar"){let E;a.progressbarOpposite?E=e.isHorizontal()?"vertical":"horizontal":E=e.isHorizontal()?"horizontal":"vertical";const I=(y+1)/P;let L=1,k=1;E==="horizontal"?L=I:k=I,g.querySelectorAll(H(a.progressbarFillClass)).forEach(S=>{S.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${k})`,S.style.transitionDuration=`${e.params.speed}ms`})}a.type==="custom"&&a.renderCustom?(g.innerHTML=a.renderCustom(e,y+1,P),b===0&&v("paginationRender",g)):(b===0&&v("paginationRender",g),v("paginationUpdate",g)),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](a.lockClass)})}function d(){const t=e.params.pagination;if(h())return;const a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let n=e.pagination.el;n=m.makeElementsArray(n);let y="";if(t.type==="bullets"){let x=e.params.loop?Math.ceil(a/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&x>a&&(x=a);for(let A=0;A<x;A+=1)t.renderBullet?y+=t.renderBullet.call(e,A,t.bulletClass):y+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}t.type==="fraction"&&(t.renderFraction?y=t.renderFraction.call(e,t.currentClass,t.totalClass):y=`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),t.type==="progressbar"&&(t.renderProgressbar?y=t.renderProgressbar.call(e,t.progressbarFillClass):y=`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],n.forEach(x=>{t.type!=="custom"&&(x.innerHTML=y||""),t.type==="bullets"&&e.pagination.bullets.push(...x.querySelectorAll(H(t.bulletClass)))}),t.type!=="custom"&&v("paginationRender",n[0])}function u(){e.params.pagination=F(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let a;typeof t.el=="string"&&e.isElement&&(a=e.el.querySelector(t.el)),!a&&typeof t.el=="string"&&(a=[...document.querySelectorAll(t.el)]),a||(a=t.el),!(!a||a.length===0)&&(e.params.uniqueNavElements&&typeof t.el=="string"&&Array.isArray(a)&&a.length>1&&(a=[...e.el.querySelectorAll(t.el)],a.length>1&&(a=a.filter(n=>m.elementParents(n,".swiper")[0]===e.el)[0])),Array.isArray(a)&&a.length===1&&(a=a[0]),Object.assign(e.pagination,{el:a}),a=m.makeElementsArray(a),a.forEach(n=>{t.type==="bullets"&&t.clickable&&n.classList.add(...(t.clickableClass||"").split(" ")),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.type==="bullets"&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),w=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type==="progressbar"&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener("click",i),e.enabled||n.classList.add(t.lockClass)}))}function s(){const t=e.params.pagination;if(h())return;let a=e.pagination.el;a&&(a=m.makeElementsArray(a),a.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||"").split(" ")),n.removeEventListener("click",i))})),e.pagination.bullets&&e.pagination.bullets.forEach(n=>n.classList.remove(...t.bulletActiveClass.split(" ")))}p("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:a}=e.pagination;a=m.makeElementsArray(a),a.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),p("init",()=>{e.params.pagination.enabled===!1?r():(u(),d(),c())}),p("activeIndexChange",()=>{typeof e.snapIndex>"u"&&c()}),p("snapIndexChange",()=>{c()}),p("snapGridLengthChange",()=>{d(),c()}),p("destroy",()=>{s()}),p("enable disable",()=>{let{el:t}=e.pagination;t&&(t=m.makeElementsArray(t),t.forEach(a=>a.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),p("lock unlock",()=>{c()}),p("click",(t,a)=>{const n=a.target,y=m.makeElementsArray(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&y&&y.length>0&&!n.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&n===e.navigation.nextEl||e.navigation.prevEl&&n===e.navigation.prevEl))return;const x=y[0].classList.contains(e.params.pagination.hiddenClass);v(x===!0?"paginationShow":"paginationHide"),y.forEach(A=>A.classList.toggle(e.params.pagination.hiddenClass))}});const o=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=m.makeElementsArray(t),t.forEach(a=>a.classList.remove(e.params.pagination.paginationDisabledClass))),u(),d(),c()},r=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=m.makeElementsArray(t),t.forEach(a=>a.classList.add(e.params.pagination.paginationDisabledClass))),s()};Object.assign(e.pagination,{enable:o,disable:r,render:d,update:c,init:u,destroy:s})}function G(M){let{swiper:e,extendParams:D,on:p}=M;D({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function v(l,i){const c=function(){let o,r,t;return(a,n)=>{for(r=-1,o=a.length;o-r>1;)t=o+r>>1,a[t]<=n?r=t:o=t;return o}}();this.x=l,this.y=i,this.lastIndex=l.length-1;let d,u;return this.interpolate=function(o){return o?(u=c(this.x,o),d=u-1,(o-this.x[d])*(this.y[u]-this.y[d])/(this.x[u]-this.x[d])+this.y[d]):0},this}function f(l){e.controller.spline=e.params.loop?new v(e.slidesGrid,l.slidesGrid):new v(e.snapGrid,l.snapGrid)}function C(l,i){const c=e.controller.control;let d,u;const s=e.constructor;function o(r){if(r.destroyed)return;const t=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(f(r),u=-e.controller.spline.interpolate(-t)),(!u||e.params.controller.by==="container")&&(d=(r.maxTranslate()-r.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(d)||!Number.isFinite(d))&&(d=1),u=(t-e.minTranslate())*d+r.minTranslate()),e.params.controller.inverse&&(u=r.maxTranslate()-u),r.updateProgress(u),r.setTranslate(u,e),r.updateActiveIndex(),r.updateSlidesClasses()}if(Array.isArray(c))for(let r=0;r<c.length;r+=1)c[r]!==i&&c[r]instanceof s&&o(c[r]);else c instanceof s&&i!==c&&o(c)}function w(l,i){const c=e.constructor,d=e.controller.control;let u;function s(o){o.destroyed||(o.setTransition(l,e),l!==0&&(o.transitionStart(),o.params.autoHeight&&m.nextTick(()=>{o.updateAutoHeight()}),m.elementTransitionEnd(o.wrapperEl,()=>{d&&o.transitionEnd()})))}if(Array.isArray(d))for(u=0;u<d.length;u+=1)d[u]!==i&&d[u]instanceof c&&s(d[u]);else d instanceof c&&i!==d&&s(d)}function h(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}p("beforeInit",()=>{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const l=document.querySelector(e.params.controller.control);if(l&&l.swiper)e.controller.control=l.swiper;else if(l){const i=c=>{e.controller.control=c.detail[0],e.update(),l.removeEventListener("init",i)};l.addEventListener("init",i)}return}e.controller.control=e.params.controller.control}),p("update",()=>{h()}),p("resize",()=>{h()}),p("observerUpdate",()=>{h()}),p("setTranslate",(l,i,c)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(i,c)}),p("setTransition",(l,i,c)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(i,c)}),Object.assign(e.controller,{setTranslate:C,setTransition:w})}function U(M){let{swiper:e,extendParams:D,on:p,emit:v,params:f}=M;e.autoplay={running:!1,paused:!1,timeLeft:0},D({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let C,w,h=f&&f.autoplay?f.autoplay.delay:3e3,l=f&&f.autoplay?f.autoplay.delay:3e3,i,c=new Date().getTime(),d,u,s,o,r,t,a;function n(T){!e||e.destroyed||!e.wrapperEl||T.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",n),!a&&E())}const y=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&(l=i,d=!1);const T=e.autoplay.paused?i:c+l-new Date().getTime();e.autoplay.timeLeft=T,v("autoplayTimeLeft",T,T/h),w=requestAnimationFrame(()=>{y()})},x=()=>{let T;return e.virtual&&e.params.virtual.enabled?T=e.slides.filter(O=>O.classList.contains("swiper-slide-active"))[0]:T=e.slides[e.activeIndex],T?parseInt(T.getAttribute("data-swiper-autoplay"),10):void 0},A=T=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(w),y();let B=typeof T>"u"?e.params.autoplay.delay:T;h=e.params.autoplay.delay,l=e.params.autoplay.delay;const O=x();!Number.isNaN(O)&&O>0&&typeof T>"u"&&(B=O,h=O,l=O),i=B;const z=e.params.speed,N=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(z,!0,!0),v("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,z,!0,!0),v("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(z,!0,!0),v("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,z,!0,!0),v("autoplay")),e.params.cssMode&&(c=new Date().getTime(),requestAnimationFrame(()=>{A()})))};return B>0?(clearTimeout(C),C=setTimeout(()=>{N()},B)):requestAnimationFrame(()=>{N()}),B},P=()=>{c=new Date().getTime(),e.autoplay.running=!0,A(),v("autoplayStart")},g=()=>{e.autoplay.running=!1,clearTimeout(C),cancelAnimationFrame(w),v("autoplayStop")},b=(T,B)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(C),T||(t=!0);const O=()=>{v("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",n):E()};if(e.autoplay.paused=!0,B){r&&(i=e.params.autoplay.delay),r=!1,O();return}i=(i||e.params.autoplay.delay)-(new Date().getTime()-c),!(e.isEnd&&i<0&&!e.params.loop)&&(i<0&&(i=0),O())},E=()=>{e.isEnd&&i<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(c=new Date().getTime(),t?(t=!1,A(i)):A(),e.autoplay.paused=!1,v("autoplayResume"))},I=()=>{if(e.destroyed||!e.autoplay.running)return;const T=m.getDocument();T.visibilityState==="hidden"&&(t=!0,b(!0)),T.visibilityState==="visible"&&E()},L=T=>{T.pointerType==="mouse"&&(t=!0,a=!0,!(e.animating||e.autoplay.paused)&&b(!0))},k=T=>{T.pointerType==="mouse"&&(a=!1,e.autoplay.paused&&E())},S=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",L),e.el.addEventListener("pointerleave",k))},$=()=>{e.el.removeEventListener("pointerenter",L),e.el.removeEventListener("pointerleave",k)},q=()=>{m.getDocument().addEventListener("visibilitychange",I)},_=()=>{m.getDocument().removeEventListener("visibilitychange",I)};p("init",()=>{e.params.autoplay.enabled&&(S(),q(),P())}),p("destroy",()=>{$(),_(),e.autoplay.running&&g()}),p("_freeModeStaticRelease",()=>{(s||t)&&E()}),p("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?g():b(!0,!0)}),p("beforeTransitionStart",(T,B,O)=>{e.destroyed||!e.autoplay.running||(O||!e.params.autoplay.disableOnInteraction?b(!0,!0):g())}),p("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){g();return}u=!0,s=!1,t=!1,o=setTimeout(()=>{t=!0,s=!0,b(!0)},200)}}),p("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!u)){if(clearTimeout(o),clearTimeout(C),e.params.autoplay.disableOnInteraction){s=!1,u=!1;return}s&&e.params.cssMode&&E(),s=!1,u=!1}}),p("slideChange",()=>{e.destroyed||!e.autoplay.running||(r=!0)}),Object.assign(e.autoplay,{start:P,stop:g,pause:b,resume:E})}function K(M){let{swiper:e,extendParams:D,on:p}=M;D({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let v=!1,f=!1;e.thumbs={swiper:null};function C(){const l=e.thumbs.swiper;if(!l||l.destroyed)return;const i=l.clickedIndex,c=l.clickedSlide;if(c&&c.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof i>"u"||i===null)return;let d;l.params.loop?d=parseInt(l.clickedSlide.getAttribute("data-swiper-slide-index"),10):d=i,e.params.loop?e.slideToLoop(d):e.slideTo(d)}function w(){const{thumbs:l}=e.params;if(v)return!1;v=!0;const i=e.constructor;if(l.swiper instanceof i)e.thumbs.swiper=l.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(m.isObject(l.swiper)){const c=Object.assign({},l.swiper);Object.assign(c,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(c),f=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",C),!0}function h(l){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const c=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():i.params.slidesPerView;let d=1;const u=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),i.slides.forEach(r=>r.classList.remove(u)),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let r=0;r<d;r+=1)m.elementChildren(i.slidesEl,`[data-swiper-slide-index="${e.realIndex+r}"]`).forEach(t=>{t.classList.add(u)});else for(let r=0;r<d;r+=1)i.slides[e.realIndex+r]&&i.slides[e.realIndex+r].classList.add(u);const s=e.params.thumbs.autoScrollOffset,o=s&&!i.params.loop;if(e.realIndex!==i.realIndex||o){const r=i.activeIndex;let t,a;if(i.params.loop){const n=i.slides.filter(y=>y.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];t=i.slides.indexOf(n),a=e.activeIndex>e.previousIndex?"next":"prev"}else t=e.realIndex,a=t>e.previousIndex?"next":"prev";o&&(t+=a==="next"?s:-1*s),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(t)<0&&(i.params.centeredSlides?t>r?t=t-Math.floor(c/2)+1:t=t+Math.floor(c/2)-1:t>r&&i.params.slidesPerGroup,i.slideTo(t,l?0:void 0))}}p("beforeInit",()=>{const{thumbs:l}=e.params;if(!(!l||!l.swiper))if(typeof l.swiper=="string"||l.swiper instanceof HTMLElement){const i=m.getDocument(),c=()=>{const u=typeof l.swiper=="string"?i.querySelector(l.swiper):l.swiper;if(u&&u.swiper)l.swiper=u.swiper,w(),h(!0);else if(u){const s=o=>{l.swiper=o.detail[0],u.removeEventListener("init",s),w(),h(!0),l.swiper.update(),e.update()};u.addEventListener("init",s)}return u},d=()=>{if(e.destroyed)return;c()||requestAnimationFrame(d)};requestAnimationFrame(d)}else w(),h(!0)}),p("slideChange update resize observerUpdate",()=>{h()}),p("setTransition",(l,i)=>{const c=e.thumbs.swiper;!c||c.destroyed||c.setTransition(i)}),p("beforeDestroy",()=>{const l=e.thumbs.swiper;!l||l.destroyed||f&&l.destroy()}),Object.assign(e.thumbs,{init:w,update:h})}function W(M){let{swiper:e,extendParams:D,emit:p,once:v}=M;D({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function f(){if(e.params.cssMode)return;const h=e.getTranslate();e.setTranslate(h),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function C(){if(e.params.cssMode)return;const{touchEventsData:h,touches:l}=e;h.velocities.length===0&&h.velocities.push({position:l[e.isHorizontal()?"startX":"startY"],time:h.touchStartTime}),h.velocities.push({position:l[e.isHorizontal()?"currentX":"currentY"],time:m.now()})}function w(h){let{currentPos:l}=h;if(e.params.cssMode)return;const{params:i,wrapperEl:c,rtlTranslate:d,snapGrid:u,touchEventsData:s}=e,r=m.now()-s.touchStartTime;if(l<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(l>-e.maxTranslate()){e.slides.length<u.length?e.slideTo(u.length-1):e.slideTo(e.slides.length-1);return}if(i.freeMode.momentum){if(s.velocities.length>1){const g=s.velocities.pop(),b=s.velocities.pop(),E=g.position-b.position,I=g.time-b.time;e.velocity=E/I,e.velocity/=2,Math.abs(e.velocity)<i.freeMode.minimumVelocity&&(e.velocity=0),(I>150||m.now()-g.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeMode.momentumVelocityRatio,s.velocities.length=0;let t=1e3*i.freeMode.momentumRatio;const a=e.velocity*t;let n=e.translate+a;d&&(n=-n);let y=!1,x;const A=Math.abs(e.velocity)*20*i.freeMode.momentumBounceRatio;let P;if(n<e.maxTranslate())i.freeMode.momentumBounce?(n+e.maxTranslate()<-A&&(n=e.maxTranslate()-A),x=e.maxTranslate(),y=!0,s.allowMomentumBounce=!0):n=e.maxTranslate(),i.loop&&i.centeredSlides&&(P=!0);else if(n>e.minTranslate())i.freeMode.momentumBounce?(n-e.minTranslate()>A&&(n=e.minTranslate()+A),x=e.minTranslate(),y=!0,s.allowMomentumBounce=!0):n=e.minTranslate(),i.loop&&i.centeredSlides&&(P=!0);else if(i.freeMode.sticky){let g;for(let b=0;b<u.length;b+=1)if(u[b]>-n){g=b;break}Math.abs(u[g]-n)<Math.abs(u[g-1]-n)||e.swipeDirection==="next"?n=u[g]:n=u[g-1],n=-n}if(P&&v("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(d?t=Math.abs((-n-e.translate)/e.velocity):t=Math.abs((n-e.translate)/e.velocity),i.freeMode.sticky){const g=Math.abs((d?-n:n)-e.translate),b=e.slidesSizesGrid[e.activeIndex];g<b?t=i.speed:g<2*b?t=i.speed*1.5:t=i.speed*2.5}}else if(i.freeMode.sticky){e.slideToClosest();return}i.freeMode.momentumBounce&&y?(e.updateProgress(x),e.setTransition(t),e.setTranslate(n),e.transitionStart(!0,e.swipeDirection),e.animating=!0,m.elementTransitionEnd(c,()=>{!e||e.destroyed||!s.allowMomentumBounce||(p("momentumBounce"),e.setTransition(i.speed),setTimeout(()=>{e.setTranslate(x),m.elementTransitionEnd(c,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(p("_freeModeNoMomentumRelease"),e.updateProgress(n),e.setTransition(t),e.setTranslate(n),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,m.elementTransitionEnd(c,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(n),e.updateActiveIndex(),e.updateSlidesClasses()}else if(i.freeMode.sticky){e.slideToClosest();return}else i.freeMode&&p("_freeModeNoMomentumRelease");(!i.freeMode.momentum||r>=i.longSwipesMs)&&(p("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:f,onTouchMove:C,onTouchEnd:w}})}exports.Zoom=m.Zoom;exports.Autoplay=U;exports.Controller=G;exports.FreeMode=W;exports.Keyboard=R;exports.Navigation=V;exports.Pagination=j;exports.Thumbs=K;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let g;const y=new Uint8Array(16);function h(){if(!g&&(g=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!g))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return g(y)}const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function x(e,n=0){return(o[e[n+0]]+o[e[n+1]]+o[e[n+2]]+o[e[n+3]]+"-"+o[e[n+4]]+o[e[n+5]]+"-"+o[e[n+6]]+o[e[n+7]]+"-"+o[e[n+8]]+o[e[n+9]]+"-"+o[e[n+10]]+o[e[n+11]]+o[e[n+12]]+o[e[n+13]]+o[e[n+14]]+o[e[n+15]]).toLowerCase()}const C=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),U={randomUUID:C};function a(e,n,c){if(U.randomUUID&&!n&&!e)return U.randomUUID();e=e||{};const i=e.random||(e.rng||h)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,n){c=c||0;for(let r=0;r<16;++r)n[c+r]=i[r];return n}return x(i)}a();/*! js-cookie v3.0.5 | MIT */function l(e){for(var n=1;n<arguments.length;n++){var c=arguments[n];for(var i in c)e[i]=c[i]}return e}var I={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function v(e,n){function c(r,p,t){if(!(typeof document>"u")){t=l({},n,t),typeof t.expires=="number"&&(t.expires=new Date(Date.now()+t.expires*864e5)),t.expires&&(t.expires=t.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var u in t)t[u]&&(d+="; "+u,t[u]!==!0&&(d+="="+t[u].split(";")[0]));return document.cookie=r+"="+e.write(p,r)+d}}function i(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var p=document.cookie?document.cookie.split("; "):[],t={},d=0;d<p.length;d++){var u=p[d].split("="),s=u.slice(1).join("=");try{var m=decodeURIComponent(u[0]);if(t[m]=e.read(s,m),r===m)break}catch{}}return r?t[r]:t}}return Object.create({set:c,get:i,remove:function(r,p){c(r,"",l({},p,{expires:-1}))},withAttributes:function(r){return v(this.converter,l({},this.attributes,r))},withConverter:function(r){return v(l({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}v(I,{path:"/"});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
let g;
|
|
2
|
+
const h = new Uint8Array(16);
|
|
3
|
+
function s() {
|
|
4
|
+
if (!g && (g = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !g))
|
|
5
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6
|
+
return g(h);
|
|
7
|
+
}
|
|
8
|
+
const r = [];
|
|
9
|
+
for (let e = 0; e < 256; ++e)
|
|
10
|
+
r.push((e + 256).toString(16).slice(1));
|
|
11
|
+
function x(e, n = 0) {
|
|
12
|
+
return (r[e[n + 0]] + r[e[n + 1]] + r[e[n + 2]] + r[e[n + 3]] + "-" + r[e[n + 4]] + r[e[n + 5]] + "-" + r[e[n + 6]] + r[e[n + 7]] + "-" + r[e[n + 8]] + r[e[n + 9]] + "-" + r[e[n + 10]] + r[e[n + 11]] + r[e[n + 12]] + r[e[n + 13]] + r[e[n + 14]] + r[e[n + 15]]).toLowerCase();
|
|
13
|
+
}
|
|
14
|
+
const C = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), U = {
|
|
15
|
+
randomUUID: C
|
|
16
|
+
};
|
|
17
|
+
function a(e, n, c) {
|
|
18
|
+
if (U.randomUUID && !n && !e)
|
|
19
|
+
return U.randomUUID();
|
|
20
|
+
e = e || {};
|
|
21
|
+
const i = e.random || (e.rng || s)();
|
|
22
|
+
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, n) {
|
|
23
|
+
c = c || 0;
|
|
24
|
+
for (let o = 0; o < 16; ++o)
|
|
25
|
+
n[c + o] = i[o];
|
|
26
|
+
return n;
|
|
27
|
+
}
|
|
28
|
+
return x(i);
|
|
29
|
+
}
|
|
30
|
+
a();
|
|
31
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
32
|
+
function l(e) {
|
|
33
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
34
|
+
var c = arguments[n];
|
|
35
|
+
for (var i in c)
|
|
36
|
+
e[i] = c[i];
|
|
37
|
+
}
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
var I = {
|
|
41
|
+
read: function(e) {
|
|
42
|
+
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
43
|
+
},
|
|
44
|
+
write: function(e) {
|
|
45
|
+
return encodeURIComponent(e).replace(
|
|
46
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
47
|
+
decodeURIComponent
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
function v(e, n) {
|
|
52
|
+
function c(o, p, t) {
|
|
53
|
+
if (!(typeof document > "u")) {
|
|
54
|
+
t = l({}, n, t), typeof t.expires == "number" && (t.expires = new Date(Date.now() + t.expires * 864e5)), t.expires && (t.expires = t.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
55
|
+
var d = "";
|
|
56
|
+
for (var u in t)
|
|
57
|
+
t[u] && (d += "; " + u, t[u] !== !0 && (d += "=" + t[u].split(";")[0]));
|
|
58
|
+
return document.cookie = o + "=" + e.write(p, o) + d;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function i(o) {
|
|
62
|
+
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
63
|
+
for (var p = document.cookie ? document.cookie.split("; ") : [], t = {}, d = 0; d < p.length; d++) {
|
|
64
|
+
var u = p[d].split("="), y = u.slice(1).join("=");
|
|
65
|
+
try {
|
|
66
|
+
var m = decodeURIComponent(u[0]);
|
|
67
|
+
if (t[m] = e.read(y, m), o === m)
|
|
68
|
+
break;
|
|
69
|
+
} catch {
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return o ? t[o] : t;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return Object.create(
|
|
76
|
+
{
|
|
77
|
+
set: c,
|
|
78
|
+
get: i,
|
|
79
|
+
remove: function(o, p) {
|
|
80
|
+
c(
|
|
81
|
+
o,
|
|
82
|
+
"",
|
|
83
|
+
l({}, p, {
|
|
84
|
+
expires: -1
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
},
|
|
88
|
+
withAttributes: function(o) {
|
|
89
|
+
return v(this.converter, l({}, this.attributes, o));
|
|
90
|
+
},
|
|
91
|
+
withConverter: function(o) {
|
|
92
|
+
return v(l({}, this.converter, o), this.attributes);
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
attributes: { value: Object.freeze(n) },
|
|
97
|
+
converter: { value: Object.freeze(e) }
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
v(I, { path: "/" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../../BaseAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("../../BaseAutocomplete.vue_vue_type_script_setup_true_lang-BKT74JOA.cjs");module.exports=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue")
|
|
1
|
+
"use strict";const t=require("vue");require("../../js.cookie-BMVAK0Pe.cjs");const u=require("../../BaseButton.vue_vue_type_script_setup_true_lang-8iapE8e5.cjs"),r=require("../../CloseIcon-B0iqXdWk.cjs"),c=require("../composables/useBreakpoints.cjs"),m=require("../../_plugin-vue_export-helper-BHFhmbuH.cjs"),k=(e,o)=>new Promise((i,s)=>{setTimeout(()=>{try{e&&e(),i()}catch{s()}},o)}),p=["modal-sm","modal-md","modal-lg","modal-xl","modal-xxl","modal-desktop"],b=t.defineComponent({components:{BaseButton:u._sfc_main,CloseIcon:r.CloseIcon},props:{id:{type:String,default:"base-bt-modal"},size:{type:String,default:"modal-md"},customBackdropClasses:{type:String,default:""},customModalClasses:{type:String,default:""},customModalDialogClasses:{type:String,default:""},customModalContentClasses:{type:String,default:""},customModalHeaderClasses:{type:[String,Array],default:""},customModalBodyClasses:{type:String,default:""},customModalFooterClasses:{type:String,default:""},withCustomFooter:{type:Boolean,default:!1},withCloseIcon:{type:Boolean,default:!0},showModal:{type:Boolean,required:!0},closeIcon:{type:String,default:""},headerTitle:{type:String,default:""},autoClose:{type:Number},fullHeight:{type:Boolean,default:!1},closeOnClickOut:{type:Boolean,default:!0}},emits:["closed","opened"],setup(){const{isSmall:e}=c.useBreakpoints();return{isMobile:e}},data(){return{baseModalMaxWidthClass:""}},computed:{backdropEl(){return this.$refs.backdropEl},modalEl(){return this.$refs.modalEl}},watch:{showModal(e){e||this.closeModal()}},created(){document&&document.body.classList.add("uikit-no-scrolling","sm:uikit-pr-15px")},unmounted(){document&&document.body.classList.remove("uikit-no-scrolling","sm:uikit-pr-15px")},mounted(){this.openModal();const e=o=>{o.key==="Escape"&&(this.closeModal(),document&&document.body?.removeEventListener("keydown",e))};document&&document.body?.addEventListener("keydown",e)},methods:{async openModal(){const e=this.backdropEl,o=this.modalEl;e?.classList.add("uikit-flex","colored-backdrop");let i=this.customModalDialogClasses||"";i+=` ${this.size}`;const s=i.split(" ").find(l=>p.includes(l));o?.classList.add("show",`base-${s}`),this.autoClose!==void 0&&setTimeout(()=>{this.closeModal()},this.autoClose)},async closeOnBackdropClick({target:e}){!this.closeOnClickOut||this.isMobile&&!e.classList.contains("bbt-modal-wrapper")||!this.isMobile&&!e.classList.contains("bbt-backdrop")||await this.closeModal()},async closeModal(){this.backdropEl.classList.remove("colored-backdrop"),this.backdropEl.classList.add("uikit-flex","uikit-bg-transparent"),this.modalEl.classList.remove("show"),this.modalEl.classList.add("closed","uikit-overflow-hidden"),document&&document.body.classList.remove("no-scrolling"),await k(()=>{this.$emit("closed")},250)},async onClosed(){await this.closeModal(),this.$emit("closed")},async onOpened(){await this.openModal(),this.$emit("opened")}}}),f=["id","data-cy"],h=["innerHTML"];function y(e,o,i,s,l,w){const a=t.resolveComponent("close-icon"),d=t.resolveComponent("base-button");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createElementVNode("div",{ref:"backdropEl",class:t.normalizeClass(["bbt-backdrop uikit-fixed uikit-left-0 uikit-start-0 uikit-top-0 uikit-flex uikit-h-full uikit-w-full uikit-items-start uikit-justify-center uikit-overflow-y-auto uikit-px-0 uikit-pt-0 sm:uikit-px-5 sm:uikit-pt-[30px]",[e.customBackdropClasses]]),style:{"z-index":"1062"},onClick:o[0]||(o[0]=(...n)=>e.closeOnBackdropClick&&e.closeOnBackdropClick(...n))},[t.createElementVNode("dialog",{id:e.id,ref:"modalEl","data-cy":e.$attrs["data-cy"],class:t.normalizeClass(["custom-modal safe-bottom base-bt-modal transition-y !uikit-relative uikit-m-0 uikit-block uikit-h-full uikit-w-full uikit-overflow-x-hidden uikit-overflow-y-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-p-0 uikit-no-scrollbar max-sm:uikit-fixed max-sm:uikit-w-full max-sm:uikit-max-w-full max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none max-sm:uikit-border-0 sm:uikit-h-auto",[e.customModalClasses]])},[t.createElementVNode("div",{class:t.normalizeClass(["bbt-modal-wrapper uikit-relative uikit-h-full",[e.customModalDialogClasses]])},[t.createElementVNode("div",{class:t.normalizeClass(["uikit-modal-content uikit-fixed uikit-bottom-0 uikit-h-auto uikit-max-h-[90%] uikit-w-full uikit-overflow-x-hidden uikit-rounded uikit-bg-white uikit-py-0 uikit-no-scrollbar max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-relative sm:uikit-flex sm:uikit-flex-col sm:uikit-overflow-y-auto sm:uikit-py-0 sm:uikit-shadow-[0_3px_6px_#00000029]",[e.customModalContentClasses,"transition-y",{"full-height-mobile":e.fullHeight}]])},[t.createElementVNode("div",{class:t.normalizeClass(["default-header uikit-border-0 uikit-px-4 sm:uikit-px-6",[e.customModalHeaderClasses]])},[e.withCloseIcon?(t.openBlock(),t.createBlock(d,{key:0,id:"close-icon-btn","data-cy":"bbt-default-close-icon-btn",class:t.normalizeClass(["uikit-z-10 uikit-bg-transparent",e.$attrs["close-icon-btn-classes"]]),type:"button","aria-label":"Close","is-empty":!0,onClick:t.withModifiers(e.closeModal,["prevent","stop"])},{default:t.withCtx(()=>[t.createVNode(a,{class:"bbt-close-icon uikit-p-5px",width:30,height:30})]),_:1},8,["class","onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"header",{closeModal:e.closeModal},()=>[t.createElementVNode("span",{class:t.normalizeClass(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22",e.$attrs["title-classes"]]),innerHTML:e.headerTitle},null,10,h)],!0)],2),t.createElementVNode("div",{class:t.normalizeClass(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-4 uikit-pb-0 uikit-no-scrollbar sm:uikit-px-6 sm:uikit-pb-25px",[e.customModalBodyClasses]])},[t.renderSlot(e.$slots,"body",{},void 0,!0)],2),e.withCustomFooter?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["uikit-bbt-footer uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6",e.customModalFooterClasses])},[t.renderSlot(e.$slots,"footer",{closeModal:e.closeModal},void 0,!0)],2)):t.createCommentVNode("",!0)],2)],2),t.renderSlot(e.$slots,"fixed-bottom",{},void 0,!0)],10,f)],2)])}const C=m._export_sfc(b,[["render",y],["__scopeId","data-v-9bf40fea"]]);module.exports=C;
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { _ as
|
|
4
|
-
import { C as
|
|
5
|
-
import { useBreakpoints as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as b, resolveComponent as n, openBlock as d, createBlock as r, Teleport as f, createElementVNode as e, normalizeClass as o, withModifiers as h, withCtx as y, createVNode as C, createCommentVNode as c, renderSlot as a, createElementBlock as w } from "vue";
|
|
2
|
+
import "../../js.cookie-BaTT4o7s.js";
|
|
3
|
+
import { _ as M } from "../../BaseButton.vue_vue_type_script_setup_true_lang-hyGBRoUS.js";
|
|
4
|
+
import { C as v } from "../../CloseIcon-o6CokGLA.js";
|
|
5
|
+
import { useBreakpoints as g } from "../composables/useBreakpoints.js";
|
|
6
|
+
import { _ as x } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const B = (t, i) => new Promise((s, l) => {
|
|
8
|
+
setTimeout(() => {
|
|
9
|
+
try {
|
|
10
|
+
t && t(), s();
|
|
11
|
+
} catch {
|
|
12
|
+
l();
|
|
13
|
+
}
|
|
14
|
+
}, i);
|
|
15
|
+
}), E = [
|
|
8
16
|
"modal-sm",
|
|
9
17
|
"modal-md",
|
|
10
18
|
"modal-lg",
|
|
11
19
|
"modal-xl",
|
|
12
20
|
"modal-xxl",
|
|
13
21
|
"modal-desktop"
|
|
14
|
-
], $ =
|
|
15
|
-
components: { BaseButton:
|
|
22
|
+
], $ = b({
|
|
23
|
+
components: { BaseButton: M, CloseIcon: v },
|
|
16
24
|
props: {
|
|
17
25
|
id: { type: String, default: "base-bt-modal" },
|
|
18
26
|
size: {
|
|
@@ -37,7 +45,7 @@ const E = [
|
|
|
37
45
|
},
|
|
38
46
|
emits: ["closed", "opened"],
|
|
39
47
|
setup() {
|
|
40
|
-
const { isSmall: t } =
|
|
48
|
+
const { isSmall: t } = g();
|
|
41
49
|
return { isMobile: t };
|
|
42
50
|
},
|
|
43
51
|
data() {
|
|
@@ -66,20 +74,20 @@ const E = [
|
|
|
66
74
|
},
|
|
67
75
|
mounted() {
|
|
68
76
|
this.openModal();
|
|
69
|
-
const t = (
|
|
70
|
-
|
|
77
|
+
const t = (i) => {
|
|
78
|
+
i.key === "Escape" && (this.closeModal(), document && document.body?.removeEventListener("keydown", t));
|
|
71
79
|
};
|
|
72
80
|
document && document.body?.addEventListener("keydown", t);
|
|
73
81
|
},
|
|
74
82
|
methods: {
|
|
75
83
|
/** Opens the modal with a transition */
|
|
76
84
|
async openModal() {
|
|
77
|
-
const t = this.backdropEl,
|
|
85
|
+
const t = this.backdropEl, i = this.modalEl;
|
|
78
86
|
t?.classList.add("uikit-flex", "colored-backdrop");
|
|
79
|
-
let
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
87
|
+
let s = this.customModalDialogClasses || "";
|
|
88
|
+
s += ` ${this.size}`;
|
|
89
|
+
const l = s.split(" ").find((u) => E.includes(u));
|
|
90
|
+
i?.classList.add("show", `base-${l}`), this.autoClose !== void 0 && setTimeout(() => {
|
|
83
91
|
this.closeModal();
|
|
84
92
|
}, this.autoClose);
|
|
85
93
|
},
|
|
@@ -89,7 +97,7 @@ const E = [
|
|
|
89
97
|
},
|
|
90
98
|
/** Closes the modal with a transition */
|
|
91
99
|
async closeModal() {
|
|
92
|
-
this.backdropEl.classList.remove("colored-backdrop"), this.backdropEl.classList.add("uikit-flex", "uikit-bg-transparent"), this.modalEl.classList.remove("show"), this.modalEl.classList.add("closed", "uikit-overflow-hidden"), document && document.body.classList.remove("no-scrolling"), await
|
|
100
|
+
this.backdropEl.classList.remove("colored-backdrop"), this.backdropEl.classList.add("uikit-flex", "uikit-bg-transparent"), this.modalEl.classList.remove("show"), this.modalEl.classList.add("closed", "uikit-overflow-hidden"), document && document.body.classList.remove("no-scrolling"), await B(() => {
|
|
93
101
|
this.$emit("closed");
|
|
94
102
|
}, 250);
|
|
95
103
|
},
|
|
@@ -101,35 +109,35 @@ const E = [
|
|
|
101
109
|
}
|
|
102
110
|
}
|
|
103
111
|
}), L = ["id", "data-cy"], S = ["innerHTML"];
|
|
104
|
-
function O(t,
|
|
112
|
+
function O(t, i, s, l, u, H) {
|
|
105
113
|
const m = n("close-icon"), k = n("base-button");
|
|
106
|
-
return
|
|
107
|
-
|
|
114
|
+
return d(), r(f, { to: "body" }, [
|
|
115
|
+
e("div", {
|
|
108
116
|
ref: "backdropEl",
|
|
109
117
|
class: o(["bbt-backdrop uikit-fixed uikit-left-0 uikit-start-0 uikit-top-0 uikit-flex uikit-h-full uikit-w-full uikit-items-start uikit-justify-center uikit-overflow-y-auto uikit-px-0 uikit-pt-0 sm:uikit-px-5 sm:uikit-pt-[30px]", [t.customBackdropClasses]]),
|
|
110
118
|
style: { "z-index": "1062" },
|
|
111
|
-
onClick:
|
|
119
|
+
onClick: i[0] || (i[0] = (...p) => t.closeOnBackdropClick && t.closeOnBackdropClick(...p))
|
|
112
120
|
}, [
|
|
113
|
-
|
|
121
|
+
e("dialog", {
|
|
114
122
|
id: t.id,
|
|
115
123
|
ref: "modalEl",
|
|
116
124
|
"data-cy": t.$attrs["data-cy"],
|
|
117
125
|
class: o(["custom-modal safe-bottom base-bt-modal transition-y !uikit-relative uikit-m-0 uikit-block uikit-h-full uikit-w-full uikit-overflow-x-hidden uikit-overflow-y-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-p-0 uikit-no-scrollbar max-sm:uikit-fixed max-sm:uikit-w-full max-sm:uikit-max-w-full max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none max-sm:uikit-border-0 sm:uikit-h-auto", [t.customModalClasses]])
|
|
118
126
|
}, [
|
|
119
|
-
|
|
127
|
+
e("div", {
|
|
120
128
|
class: o(["bbt-modal-wrapper uikit-relative uikit-h-full", [t.customModalDialogClasses]])
|
|
121
129
|
}, [
|
|
122
|
-
|
|
130
|
+
e("div", {
|
|
123
131
|
class: o(["uikit-modal-content uikit-fixed uikit-bottom-0 uikit-h-auto uikit-max-h-[90%] uikit-w-full uikit-overflow-x-hidden uikit-rounded uikit-bg-white uikit-py-0 uikit-no-scrollbar max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-relative sm:uikit-flex sm:uikit-flex-col sm:uikit-overflow-y-auto sm:uikit-py-0 sm:uikit-shadow-[0_3px_6px_#00000029]", [
|
|
124
132
|
t.customModalContentClasses,
|
|
125
133
|
"transition-y",
|
|
126
134
|
{ "full-height-mobile": t.fullHeight }
|
|
127
135
|
]])
|
|
128
136
|
}, [
|
|
129
|
-
|
|
137
|
+
e("div", {
|
|
130
138
|
class: o(["default-header uikit-border-0 uikit-px-4 sm:uikit-px-6", [t.customModalHeaderClasses]])
|
|
131
139
|
}, [
|
|
132
|
-
t.withCloseIcon ? (
|
|
140
|
+
t.withCloseIcon ? (d(), r(k, {
|
|
133
141
|
key: 0,
|
|
134
142
|
id: "close-icon-btn",
|
|
135
143
|
"data-cy": "bbt-default-close-icon-btn",
|
|
@@ -148,32 +156,32 @@ function O(t, e, l, d, u, H) {
|
|
|
148
156
|
]),
|
|
149
157
|
_: 1
|
|
150
158
|
}, 8, ["class", "onClick"])) : c("", !0),
|
|
151
|
-
|
|
152
|
-
|
|
159
|
+
a(t.$slots, "header", { closeModal: t.closeModal }, () => [
|
|
160
|
+
e("span", {
|
|
153
161
|
class: o(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", t.$attrs["title-classes"]]),
|
|
154
162
|
innerHTML: t.headerTitle
|
|
155
163
|
}, null, 10, S)
|
|
156
164
|
], !0)
|
|
157
165
|
], 2),
|
|
158
|
-
|
|
166
|
+
e("div", {
|
|
159
167
|
class: o(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-4 uikit-pb-0 uikit-no-scrollbar sm:uikit-px-6 sm:uikit-pb-25px", [t.customModalBodyClasses]])
|
|
160
168
|
}, [
|
|
161
|
-
|
|
169
|
+
a(t.$slots, "body", {}, void 0, !0)
|
|
162
170
|
], 2),
|
|
163
|
-
t.withCustomFooter ? (
|
|
171
|
+
t.withCustomFooter ? (d(), w("div", {
|
|
164
172
|
key: 0,
|
|
165
173
|
class: o(["uikit-bbt-footer uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6", t.customModalFooterClasses])
|
|
166
174
|
}, [
|
|
167
|
-
|
|
175
|
+
a(t.$slots, "footer", { closeModal: t.closeModal }, void 0, !0)
|
|
168
176
|
], 2)) : c("", !0)
|
|
169
177
|
], 2)
|
|
170
178
|
], 2),
|
|
171
|
-
|
|
179
|
+
a(t.$slots, "fixed-bottom", {}, void 0, !0)
|
|
172
180
|
], 10, L)
|
|
173
181
|
], 2)
|
|
174
182
|
]);
|
|
175
183
|
}
|
|
176
|
-
const V = /* @__PURE__ */
|
|
184
|
+
const V = /* @__PURE__ */ x($, [["render", O], ["__scopeId", "data-v-9bf40fea"]]);
|
|
177
185
|
export {
|
|
178
186
|
V as default
|
|
179
187
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./BaseIcon.cjs")
|
|
1
|
+
"use strict";const a=require("./BaseIcon.cjs");require("../../js.cookie-BMVAK0Pe.cjs");const t=require("vue"),l=require("../../_plugin-vue_export-helper-BHFhmbuH.cjs");function u(e,i=!1){return e==null?"":k(i?Math.round(e):Math.floor(e),0)}function k(e,i){return!e&&e!==0?"":e.toLocaleString("it-IT",{minimumFractionDigits:i,maximumFractionDigits:i})}const c=t.defineComponent({name:"BasePagination",components:{BaseIcon:a},props:{offset:{type:Number,default:0},count:{type:Number,default:0},limit:{type:Number,default:25},siblings:{type:Number,default:3},additionalCount:{type:Number,default:0}},emits:["new-pagination-offset"],data(){return{activeHoverOnLeftIcon:!1,activeHoverOnRightIcon:!1}},methods:{handleHoverIcon(e,i){e?i==="LeftArrow"?this.activeHoverOnLeftIcon=!0:this.activeHoverOnRightIcon=!0:(this.activeHoverOnLeftIcon=!1,this.activeHoverOnRightIcon=!1)},getPages(){return Math.ceil((this.count+this.additionalCount)/this.limit)},getFormattedPages(){return u(Math.ceil((this.count+this.additionalCount)/this.limit))},getCurrentPage(){return Math.round(this.offset/this.limit)+1},getPreviousPages(){const e=Math.max(2,this.getCurrentPage()-this.siblings);let i=[];for(let n=e;n<this.getCurrentPage();n++)i.push(n);return i},getNextPages(){const e=Math.min(this.getPages()-1,this.getCurrentPage()+this.siblings);let i=[];for(let n=this.getCurrentPage()+1;n<=e;n++)i.push(n);return i},formatInteger(e){return u(e)},selectPage(e){this.$emit("new-pagination-offset",Math.round((e-1)*this.limit-this.additionalCount))},getCount(){return this.count}}}),g={"aria-label":"Page navigation"},m={key:0,class:"uikit-text-14 uikit-flex uikit-list-none uikit-content-center uikit-gap-4 uikit-pl-0 uikit-font-semibold sm:uikit-gap-5"},p={key:2,class:"font-weight-bold uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"},h=["onClick"],d={class:"selected uikit-pointer-events-none uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-bg-w-primary uikit-p-5px uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white"},v=["onClick"],f={key:3,class:"uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"};function P(e,i,n,y,C,b){const o=t.resolveComponent("baseIcon");return t.openBlock(),t.createElementBlock("nav",g,[e.getCount()>0?(t.openBlock(),t.createElementBlock("ul",m,[e.getCurrentPage()>1?(t.openBlock(),t.createElementBlock("li",{key:0,class:"arrow-button prev-page uikit-h-30x uikit-flex uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary md:uikit-mr-5 [&_>_img]:hover:uikit-brightness-0 [&_>_img]:hover:uikit-invert",onClick:i[0]||(i[0]=r=>e.selectPage(e.getCurrentPage()-1)),onMouseover:i[1]||(i[1]=r=>e.handleHoverIcon(!0,"LeftArrow")),onMouseout:i[2]||(i[2]=r=>e.handleHoverIcon(!1,"LeftArrow"))},[t.createVNode(o,{"icon-name":"arrow-sx-blue.svg","alt-attribute":"icona pagina successiva","icon-class":"uikit-mr-0"})],32)):t.createCommentVNode("",!0),e.getCurrentPage()>1?(t.openBlock(),t.createElementBlock("li",{key:1,class:"page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",onClick:i[3]||(i[3]=r=>e.selectPage(1))}," 1 ")):t.createCommentVNode("",!0),e.getCurrentPage()>e.siblings+2?(t.openBlock(),t.createElementBlock("li",p," ... ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.getPreviousPages(),r=>(t.openBlock(),t.createElementBlock("li",{key:r,class:"uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",onClick:s=>e.selectPage(r)},t.toDisplayString(e.formatInteger(r)),9,h))),128)),t.createElementVNode("li",d,t.toDisplayString(e.getCurrentPage()),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.getNextPages(),r=>(t.openBlock(),t.createElementBlock("li",{key:r,class:"uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",onClick:s=>e.selectPage(r)},t.toDisplayString(e.formatInteger(r)),9,v))),128)),e.getCurrentPage()<e.getPages()-e.siblings-1?(t.openBlock(),t.createElementBlock("li",f," ... ")):t.createCommentVNode("",!0),e.getCurrentPage()<e.getPages()?(t.openBlock(),t.createElementBlock("li",{key:4,class:"uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",onClick:i[4]||(i[4]=r=>e.selectPage(e.getPages()))},t.toDisplayString(e.getFormattedPages()),1)):t.createCommentVNode("",!0),e.getCurrentPage()<e.getPages()?(t.openBlock(),t.createElementBlock("li",{key:5,class:"arrow-button next-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary md:uikit-ml-5 [&_>_img]:hover:uikit-brightness-0 [&_>_img]:hover:uikit-invert",onClick:i[5]||(i[5]=r=>e.selectPage(e.getCurrentPage()+1)),onMouseover:i[6]||(i[6]=r=>e.handleHoverIcon(!0,"RightArrow")),onMouseout:i[7]||(i[7]=r=>e.handleHoverIcon(!1,"RightArrow"))},[t.createVNode(o,{"icon-name":"arrow-dx-blue.svg","alt-attribute":"icona pagina successiva","icon-class":"uikit-mr-0"})],32)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const w=l._export_sfc(c,[["render",P]]);module.exports=w;
|