gent_styleguide 7.2.3 → 7.2.4
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/build/css/main.css +1 -1
- package/build/css/styleguide.css +1 -1
- package/build/styleguide/fonts/gent-icons-v7.eot +0 -0
- package/build/styleguide/fonts/gent-icons-v7.svg +146 -146
- package/build/styleguide/fonts/gent-icons-v7.ttf +0 -0
- package/build/styleguide/fonts/gent-icons-v7.woff +0 -0
- package/build/styleguide/fonts/gent-icons-v7.woff2 +0 -0
- package/build/styleguide/sass/11-base/fonts/_icons.scss +172 -172
- package/build/styleguide/sass/31-molecules/partner-block/_partner-block.scss +8 -1
- package/build/styleguide/sass/31-molecules/teaser/_teaser.scss +51 -0
- package/build/styleguide/vendor/swiper/modules/a11y.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/a11y.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/a11y.mjs +4 -2
- package/build/styleguide/vendor/swiper/modules/autoplay.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/autoplay.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/autoplay.mjs +17 -14
- package/build/styleguide/vendor/swiper/modules/grid.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/grid.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/grid.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/keyboard.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/keyboard.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/keyboard.mjs +7 -5
- package/build/styleguide/vendor/swiper/modules/navigation-element.css +26 -6
- package/build/styleguide/vendor/swiper/modules/navigation-element.min.css +1 -1
- package/build/styleguide/vendor/swiper/modules/navigation.css +7 -0
- package/build/styleguide/vendor/swiper/modules/navigation.min.css +1 -1
- package/build/styleguide/vendor/swiper/modules/thumbs.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/thumbs.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/thumbs.mjs +23 -4
- package/build/styleguide/vendor/swiper/modules/zoom.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/zoom.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/zoom.mjs +2 -0
- package/build/styleguide/vendor/swiper/package.json +2 -2
- package/build/styleguide/vendor/swiper/shared/classes-to-selector.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/classes-to-selector.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/shared/classes-to-selector.mjs +2 -1
- package/build/styleguide/vendor/swiper/shared/swiper-core.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/swiper-core.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/shared/swiper-core.mjs +62 -11
- package/build/styleguide/vendor/swiper/shared/update-swiper.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/update-swiper.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/shared/update-swiper.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/utils.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/utils.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/shared/utils.mjs +1 -2
- package/build/styleguide/vendor/swiper/swiper-bundle.css +24 -3
- package/build/styleguide/vendor/swiper/swiper-bundle.js +125 -46
- package/build/styleguide/vendor/swiper/swiper-bundle.min.css +4 -4
- package/build/styleguide/vendor/swiper/swiper-bundle.min.js +4 -4
- package/build/styleguide/vendor/swiper/swiper-bundle.min.js.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-bundle.min.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper-bundle.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper-effect-utils.min.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper-effect-utils.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper-element-bundle.js +132 -53
- package/build/styleguide/vendor/swiper/swiper-element-bundle.min.js +4 -4
- package/build/styleguide/vendor/swiper/swiper-element-bundle.min.js.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-element-bundle.min.mjs +4 -4
- package/build/styleguide/vendor/swiper/swiper-element-bundle.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-element-bundle.mjs +6 -6
- package/build/styleguide/vendor/swiper/swiper-element.d.ts +16 -16
- package/build/styleguide/vendor/swiper/swiper-element.js +73 -23
- package/build/styleguide/vendor/swiper/swiper-element.min.js +4 -4
- package/build/styleguide/vendor/swiper/swiper-element.min.js.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-element.min.mjs +4 -4
- package/build/styleguide/vendor/swiper/swiper-element.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-element.mjs +6 -6
- package/build/styleguide/vendor/swiper/swiper-react.d.ts +16 -16
- package/build/styleguide/vendor/swiper/swiper-react.mjs +11 -5
- package/build/styleguide/vendor/swiper/swiper-vue.d.ts +20 -16
- package/build/styleguide/vendor/swiper/swiper-vue.mjs +11 -5
- package/build/styleguide/vendor/swiper/swiper.css +17 -3
- package/build/styleguide/vendor/swiper/swiper.js +66 -16
- package/build/styleguide/vendor/swiper/swiper.min.css +4 -4
- package/build/styleguide/vendor/swiper/swiper.min.js +4 -4
- package/build/styleguide/vendor/swiper/swiper.min.js.map +1 -1
- package/build/styleguide/vendor/swiper/swiper.min.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper.mjs +3 -3
- package/build/styleguide/vendor/swiper/types/modules/keyboard.d.ts +6 -0
- package/build/styleguide/vendor/swiper/types/modules/thumbs.d.ts +1 -1
- package/build/styleguide/vendor/swiper/types/swiper-options.d.ts +11 -2
- package/package.json +5 -4
|
@@ -362,6 +362,57 @@
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
&.teaser--with--address{
|
|
366
|
+
.content__second {
|
|
367
|
+
@include theme('background-color', 'color-none');
|
|
368
|
+
|
|
369
|
+
position: static;
|
|
370
|
+
padding: 20px 60px 20px 20px;
|
|
371
|
+
|
|
372
|
+
@include phablet {
|
|
373
|
+
padding: 30px 60px 30px 30px;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
h3 {
|
|
377
|
+
display: flex;
|
|
378
|
+
align-items: center;
|
|
379
|
+
margin: 10px 0;
|
|
380
|
+
|
|
381
|
+
@include phablet {
|
|
382
|
+
display: block;
|
|
383
|
+
height: auto;
|
|
384
|
+
margin: 0 15px 20px 0;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
span {
|
|
388
|
+
padding: 0;
|
|
389
|
+
background-color: transparent;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
p,
|
|
394
|
+
.opening-hours-accordion {
|
|
395
|
+
display: block;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.teaser-links {
|
|
399
|
+
display: block;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.read-more {
|
|
403
|
+
@include read-more-icon-link;
|
|
404
|
+
|
|
405
|
+
position: absolute;
|
|
406
|
+
right: 0;
|
|
407
|
+
bottom: 0;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
a.teaser-overlay-link {
|
|
412
|
+
top: 0;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
365
416
|
&.teaser--inverted {
|
|
366
417
|
.content__second {
|
|
367
418
|
@include theme('background-color', 'color-tertiary-light');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";import{c as classesToSelector}from"../shared/classes-to-selector.min.mjs";import{c as createElement,j as elementIndex,m as makeElementsArray,s as setInnerHTML}from"../shared/utils.min.mjs";function A11y({swiper:e,extendParams:a,on:t}){a({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let n,
|
|
1
|
+
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";import{c as classesToSelector}from"../shared/classes-to-selector.min.mjs";import{c as createElement,j as elementIndex,m as makeElementsArray,s as setInnerHTML}from"../shared/utils.min.mjs";function A11y({swiper:e,extendParams:a,on:t}){a({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let i,n,s=null,r=(new Date).getTime();function l(e){const a=s;0!==a.length&&setInnerHTML(a,e)}function o(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function c(e,a){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("role",a)})}function p(e,a){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-roledescription",a)})}function m(e,a){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-label",a)})}function g(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function u(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function E(a){if(13!==a.keyCode&&32!==a.keyCode)return;const t=e.params.a11y,i=a.target;if(!e.pagination||!e.pagination.el||i!==e.pagination.el&&!e.pagination.el.contains(a.target)||a.target.matches(classesToSelector(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const a=makeElementsArray(e.navigation.prevEl);makeElementsArray(e.navigation.nextEl).includes(i)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(t.lastSlideMessage):l(t.nextSlideMessage)),a.includes(i)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(t.firstSlideMessage):l(t.prevSlideMessage))}e.pagination&&i.matches(classesToSelector(e.params.pagination.bulletClass))&&i.click()}}function f(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function v(){return f()&&e.params.pagination.clickable}const b=(e,a,t)=>{o(e),"BUTTON"!==e.tagName&&(c(e,"button"),e.addEventListener("keydown",E)),m(e,t),function(e,a){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-controls",a)})}(e,a)},y=a=>{n&&n!==a.target&&!n.contains(a.target)&&(i=!0),e.a11y.clicked=!0},h=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},A=e=>{r=(new Date).getTime()},k=a=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-r<100)return;const t=a.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!t||!e.slides.includes(t))return;n=t;const s=e.virtual&&e.params.virtual.enabled,l=(s?parseInt(t.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(t))===e.activeIndex,o=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(t);l||o||a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(t.getAttribute("data-swiper-slide-index"))),0):s?e.slideTo(e.getSlideIndexWhenGrid(parseInt(t.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(t)),0),i=!1)}))},x=()=>{const a=e.params.a11y;a.itemRoleDescriptionMessage&&p(e.slides,a.itemRoleDescriptionMessage),a.slideRole&&c(e.slides,a.slideRole);const t=e.slides.length;a.slideLabelMessage&&e.slides.forEach((i,n)=>{const s=e.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):n;m(i,a.slideLabelMessage.replace(/\{\{index\}\}/,s+1).replace(/\{\{slidesLength\}\}/,t))})},M=()=>{const a=e.params.a11y;e.el.append(s);const t=e.el;a.containerRoleDescriptionMessage&&p(t,a.containerRoleDescriptionMessage),a.containerMessage&&m(t,a.containerMessage),a.containerRole&&c(t,a.containerRole);const i=e.wrapperEl,n=a.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`;var r;if(r=n,makeElementsArray(i).forEach(e=>{e.setAttribute("id",r)}),a.wrapperLiveRegion){!function(e,a){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-live",a)})}(i,e.params.autoplay&&e.params.autoplay.enabled?"off":"polite")}x();let{nextEl:l,prevEl:o}=e.navigation?e.navigation:{};if(l=makeElementsArray(l),o=makeElementsArray(o),l&&l.forEach(e=>b(e,n,a.nextSlideMessage)),o&&o.forEach(e=>b(e,n,a.prevSlideMessage)),v()){makeElementsArray(e.pagination.el).forEach(e=>{e.addEventListener("keydown",E)})}getDocument().addEventListener("visibilitychange",A),e.el.addEventListener("focus",k,!0),e.el.addEventListener("pointerdown",y,!0),e.el.addEventListener("pointerup",h,!0)};t("beforeInit",()=>{s=createElement("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),t("afterInit",()=>{e.params.a11y.enabled&&M()}),t("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&x()}),t("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:a,prevEl:t}=e.navigation;t&&(e.isBeginning?(g(t),d(t)):(u(t),o(t))),a&&(e.isEnd?(g(a),d(a)):(u(a),o(a)))}()}),t("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const a=e.params.a11y;f()&&e.pagination.bullets.forEach(t=>{e.params.pagination.clickable&&(o(t),e.params.pagination.renderBullet||(c(t,"button"),m(t,a.paginationBulletMessage.replace(/\{\{index\}\}/,elementIndex(t)+1)))),t.matches(classesToSelector(e.params.pagination.bulletActiveClass))?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}()}),t("destroy",()=>{e.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:a,prevEl:t}=e.navigation?e.navigation:{};a=makeElementsArray(a),t=makeElementsArray(t),a&&a.forEach(e=>e.removeEventListener("keydown",E)),t&&t.forEach(e=>e.removeEventListener("keydown",E)),v()&&makeElementsArray(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",E)});getDocument().removeEventListener("visibilitychange",A),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",k,!0),e.el.removeEventListener("pointerdown",y,!0),e.el.removeEventListener("pointerup",h,!0))}()})}export{A11y as default};
|
|
2
2
|
//# sourceMappingURL=a11y.min.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11y.mjs.mjs","names":["getDocument","classesToSelector","createElement","elementIndex","makeElementsArray","setInnerHTML","A11y","swiper","extendParams","on","a11y","enabled","notificationClass","prevSlideMessage","nextSlideMessage","firstSlideMessage","lastSlideMessage","paginationBulletMessage","slideLabelMessage","containerMessage","containerRoleDescriptionMessage","containerRole","itemRoleDescriptionMessage","slideRole","id","scrollOnFocus","wrapperLiveRegion","clicked","preventFocusHandler","focusTargetSlideEl","liveRegion","visibilityChangedTimestamp","Date","getTime","notify","message","notification","length","makeElFocusable","el","forEach","subEl","setAttribute","makeElNotFocusable","addElRole","role","addElRoleDescription","description","addElLabel","label","disableEl","enableEl","onEnterOrSpaceKey","e","keyCode","params","targetEl","target","pagination","contains","matches","bulletClass","navigation","prevEl","nextEl","prevEls","includes","isEnd","loop","slideNext","isBeginning","slidePrev","click","hasPagination","bullets","hasClickablePagination","clickable","initNavEl","wrapperId","tagName","addEventListener","controls","addElControls","handlePointerDown","handlePointerUp","requestAnimationFrame","destroyed","onVisibilityChange","handleFocus","slideEl","closest","slideClass","slides","isActive","indexOf","activeIndex","isVisible","watchSlidesProgress","visibleSlides","sourceCapabilities","firesTouchEvents","isHorizontal","scrollLeft","scrollTop","slideToLoop","getSlideIndexWhenGrid","
|
|
1
|
+
{"version":3,"file":"a11y.mjs.mjs","names":["getDocument","classesToSelector","createElement","elementIndex","makeElementsArray","setInnerHTML","A11y","swiper","extendParams","on","a11y","enabled","notificationClass","prevSlideMessage","nextSlideMessage","firstSlideMessage","lastSlideMessage","paginationBulletMessage","slideLabelMessage","containerMessage","containerRoleDescriptionMessage","containerRole","itemRoleDescriptionMessage","slideRole","id","scrollOnFocus","wrapperLiveRegion","clicked","preventFocusHandler","focusTargetSlideEl","liveRegion","visibilityChangedTimestamp","Date","getTime","notify","message","notification","length","makeElFocusable","el","forEach","subEl","setAttribute","makeElNotFocusable","addElRole","role","addElRoleDescription","description","addElLabel","label","disableEl","enableEl","onEnterOrSpaceKey","e","keyCode","params","targetEl","target","pagination","contains","matches","bulletClass","navigation","prevEl","nextEl","prevEls","includes","isEnd","loop","slideNext","isBeginning","slidePrev","click","hasPagination","bullets","hasClickablePagination","clickable","initNavEl","wrapperId","tagName","addEventListener","controls","addElControls","handlePointerDown","handlePointerUp","requestAnimationFrame","destroyed","onVisibilityChange","handleFocus","slideEl","closest","slideClass","slides","isVirtual","virtual","isActive","parseInt","getAttribute","indexOf","activeIndex","isVisible","watchSlidesProgress","visibleSlides","sourceCapabilities","firesTouchEvents","isHorizontal","scrollLeft","scrollTop","slideToLoop","getSlideIndexWhenGrid","slideTo","initSlides","slidesLength","index","slideIndex","replace","init","append","containerEl","wrapperEl","size","repeat","Math","round","random","toString","getRandomNumber","live","addElLive","autoplay","rewind","updateNavigation","bulletEl","renderBullet","bulletActiveClass","removeAttribute","updatePagination","remove","removeEventListener","destroy"],"sources":["0"],"mappings":"YAAcA,gBAAmB,+CACnBC,sBAAyB,oDACzBC,mBAAoBC,kBAAmBC,uBAAwBC,iBAAoB,0BAEjG,SAASC,MAAKC,OACZA,EAAMC,aACNA,EAAYC,GACZA,IAEAD,EAAa,CACXE,KAAM,CACJC,SAAS,EACTC,kBAAmB,sBACnBC,iBAAkB,iBAClBC,iBAAkB,aAClBC,kBAAmB,0BACnBC,iBAAkB,yBAClBC,wBAAyB,wBACzBC,kBAAmB,+BACnBC,iBAAkB,KAClBC,gCAAiC,KACjCC,cAAe,KACfC,2BAA4B,KAC5BC,UAAW,QACXC,GAAI,KACJC,eAAe,EACfC,mBAAmB,KAGvBnB,EAAOG,KAAO,CACZiB,SAAS,GAEX,IACIC,EACAC,EAFAC,EAAa,KAGbC,GAA6B,IAAIC,MAAOC,UAC5C,SAASC,EAAOC,GACd,MAAMC,EAAeN,EACO,IAAxBM,EAAaC,QACjBhC,aAAa+B,EAAcD,EAC7B,CAKA,SAASG,EAAgBC,IACvBA,EAAKnC,kBAAkBmC,IACpBC,QAAQC,IACTA,EAAMC,aAAa,WAAY,MAEnC,CACA,SAASC,EAAmBJ,IAC1BA,EAAKnC,kBAAkBmC,IACpBC,QAAQC,IACTA,EAAMC,aAAa,WAAY,OAEnC,CACA,SAASE,EAAUL,EAAIM,IACrBN,EAAKnC,kBAAkBmC,IACpBC,QAAQC,IACTA,EAAMC,aAAa,OAAQG,IAE/B,CACA,SAASC,EAAqBP,EAAIQ,IAChCR,EAAKnC,kBAAkBmC,IACpBC,QAAQC,IACTA,EAAMC,aAAa,uBAAwBK,IAE/C,CAOA,SAASC,EAAWT,EAAIU,IACtBV,EAAKnC,kBAAkBmC,IACpBC,QAAQC,IACTA,EAAMC,aAAa,aAAcO,IAErC,CAaA,SAASC,EAAUX,IACjBA,EAAKnC,kBAAkBmC,IACp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A2B,iBAAdhC,EAAOgC,KAC7BhC,EAAOgC,GAAGmG,oBAAoB,QAASlD,GAAa,GACpDjF,EAAOgC,GAAGmG,oBAAoB,cAAevD,GAAmB,GAChE5E,EAAOgC,GAAGmG,oBAAoB,YAAatD,GAAiB,GAEhE,CAwBEuD,IAEJ,QAESrI"}
|
|
@@ -221,7 +221,8 @@ function A11y({
|
|
|
221
221
|
const slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);
|
|
222
222
|
if (!slideEl || !swiper.slides.includes(slideEl)) return;
|
|
223
223
|
focusTargetSlideEl = slideEl;
|
|
224
|
-
const
|
|
224
|
+
const isVirtual = swiper.virtual && swiper.params.virtual.enabled;
|
|
225
|
+
const isActive = (isVirtual ? parseInt(slideEl.getAttribute('data-swiper-slide-index'), 10) : swiper.slides.indexOf(slideEl)) === swiper.activeIndex;
|
|
225
226
|
const isVisible = swiper.params.watchSlidesProgress && swiper.visibleSlides && swiper.visibleSlides.includes(slideEl);
|
|
226
227
|
if (isActive || isVisible) return;
|
|
227
228
|
if (e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents) return;
|
|
@@ -234,6 +235,8 @@ function A11y({
|
|
|
234
235
|
if (preventFocusHandler) return;
|
|
235
236
|
if (swiper.params.loop) {
|
|
236
237
|
swiper.slideToLoop(swiper.getSlideIndexWhenGrid(parseInt(slideEl.getAttribute('data-swiper-slide-index'))), 0);
|
|
238
|
+
} else if (isVirtual) {
|
|
239
|
+
swiper.slideTo(swiper.getSlideIndexWhenGrid(parseInt(slideEl.getAttribute('data-swiper-slide-index'), 10)), 0);
|
|
237
240
|
} else {
|
|
238
241
|
swiper.slideTo(swiper.getSlideIndexWhenGrid(swiper.slides.indexOf(slideEl)), 0);
|
|
239
242
|
}
|
|
@@ -311,7 +314,6 @@ function A11y({
|
|
|
311
314
|
const document = getDocument();
|
|
312
315
|
document.addEventListener('visibilitychange', onVisibilityChange);
|
|
313
316
|
swiper.el.addEventListener('focus', handleFocus, true);
|
|
314
|
-
swiper.el.addEventListener('focus', handleFocus, true);
|
|
315
317
|
swiper.el.addEventListener('pointerdown', handlePointerDown, true);
|
|
316
318
|
swiper.el.addEventListener('pointerup', handlePointerUp, true);
|
|
317
319
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";function Autoplay({swiper:e,extendParams:a,on:t,emit:n,params:i}){let r,o;e.autoplay={running:!1,paused:!1,timeLeft:0},a({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,l,p,u,d,y,m,c
|
|
1
|
+
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";function Autoplay({swiper:e,extendParams:a,on:t,emit:n,params:i}){let r,o;e.autoplay={running:!1,paused:!1,timeLeft:0},a({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,l,p,u,d,y,m,c=i&&i.autoplay?i.autoplay.delay:3e3,g=i&&i.autoplay?i.autoplay.delay:3e3,v=(new Date).getTime();function T(a){e&&!e.destroyed&&e.wrapperEl&&a.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",T),m||a.detail&&a.detail.bySwiperTouchMove||O())}const f=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(g=s,l=!1);const a=e.autoplay.paused?s:v+g-(new Date).getTime();e.autoplay.timeLeft=a,n("autoplayTimeLeft",a,a/c),o=requestAnimationFrame(()=>{f()})},w=()=>{let a=e.params.autoplay.delay;const t=(()=>{let a;if(a=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!a)return;return parseInt(a.getAttribute("data-swiper-autoplay"),10)})();return!Number.isNaN(t)&&t>0&&(a=t),a},b=a=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),f();let t=a;void 0===t&&(t=w(),c=t,g=t),s=t;const i=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(i,!0,!0),n("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,i,!0,!0),n("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(i,!0,!0),n("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,i,!0,!0),n("autoplay")),e.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame(()=>{b()})))};return t>0?(clearTimeout(r),r=setTimeout(()=>{l()},t)):requestAnimationFrame(()=>{l()}),t},E=()=>{v=(new Date).getTime(),e.autoplay.running=!0,b(),n("autoplayStart")},L=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(o),n("autoplayStop")},D=(a,t)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),a||(y=!0);const i=()=>{n("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",T):O()};if(e.autoplay.paused=!0,t)return void i();const o=s||e.params.autoplay.delay;s=o-((new Date).getTime()-v),e.isEnd&&s<0&&!e.params.loop||(s<0&&(s=0),i())},O=()=>{e.isEnd&&s<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=(new Date).getTime(),y?(y=!1,b(s)):b(),e.autoplay.paused=!1,n("autoplayResume"))},S=()=>{if(e.destroyed||!e.autoplay.running)return;const a=getDocument();"hidden"===a.visibilityState&&(y=!0,D(!0)),"visible"===a.visibilityState&&O()},M=a=>{"mouse"===a.pointerType&&(y=!0,m=!0,e.animating||e.autoplay.paused||D(!0))},h=a=>{"mouse"===a.pointerType&&(m=!1,e.autoplay.paused&&O())};t("init",()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",M),e.el.addEventListener("pointerleave",h)),getDocument().addEventListener("visibilitychange",S),E())}),t("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",M),e.el.removeEventListener("pointerleave",h)),getDocument().removeEventListener("visibilitychange",S),e.autoplay.running&&L()}),t("_freeModeStaticRelease",()=>{(u||y)&&O()}),t("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?L():D(!0,!0)}),t("beforeTransitionStart",(a,t,n)=>{!e.destroyed&&e.autoplay.running&&(n||!e.params.autoplay.disableOnInteraction?D(!0,!0):L())}),t("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?L():(p=!0,u=!1,y=!1,d=setTimeout(()=>{y=!0,u=!0,D(!0)},200)))}),t("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&p){if(clearTimeout(d),clearTimeout(r),e.params.autoplay.disableOnInteraction)return u=!1,void(p=!1);u&&e.params.cssMode&&O(),u=!1,p=!1}}),t("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(s=w(),c=w())}),Object.assign(e.autoplay,{start:E,stop:L,pause:D,resume:O})}export{Autoplay as default};
|
|
2
2
|
//# sourceMappingURL=autoplay.min.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoplay.mjs.mjs","names":["getDocument","Autoplay","swiper","extendParams","on","emit","params","timeout","raf","autoplay","running","paused","timeLeft","enabled","delay","waitForTransition","disableOnInteraction","stopOnLastSlide","reverseDirection","pauseOnMouseEnter","autoplayTimeLeft","wasPaused","isTouched","pausedByTouch","touchStartTimeout","
|
|
1
|
+
{"version":3,"file":"autoplay.mjs.mjs","names":["getDocument","Autoplay","swiper","extendParams","on","emit","params","timeout","raf","autoplay","running","paused","timeLeft","enabled","delay","waitForTransition","disableOnInteraction","stopOnLastSlide","reverseDirection","pauseOnMouseEnter","autoplayTimeLeft","wasPaused","isTouched","pausedByTouch","touchStartTimeout","pausedByInteraction","pausedByPointerEnter","autoplayDelayTotal","autoplayDelayCurrent","autoplayStartTime","Date","getTime","onTransitionEnd","e","destroyed","wrapperEl","target","removeEventListener","detail","bySwiperTouchMove","resume","calcTimeLeft","requestAnimationFrame","getTotalDelay","totalDelay","currentSlideDelay","activeSlideEl","virtual","slides","find","slideEl","classList","contains","activeIndex","parseInt","getAttribute","getSlideDelay","Number","isNaN","run","delayForce","cancelAnimationFrame","speed","proceed","isBeginning","loop","rewind","slidePrev","slideTo","length","isEnd","slideNext","cssMode","clearTimeout","setTimeout","start","stop","pause","internal","reset","addEventListener","onVisibilityChange","document","visibilityState","onPointerEnter","pointerType","animating","onPointerLeave","el","_s","Object","assign"],"sources":["0"],"mappings":"YAAcA,gBAAmB,mCAIjC,SAASC,UAASC,OAChBA,EAAMC,aACNA,EAAYC,GACZA,EAAEC,KACFA,EAAIC,OACJA,IAkBA,IAAIC,EACAC,EAjBJN,EAAOO,SAAW,CAChBC,SAAS,EACTC,QAAQ,EACRC,SAAU,GAEZT,EAAa,CACXM,SAAU,CACRI,SAAS,EACTC,MAAO,IACPC,mBAAmB,EACnBC,sBAAsB,EACtBC,iBAAiB,EACjBC,kBAAkB,EAClBC,mBAAmB,KAKvB,IAEIC,EAEAC,EACAC,EACAC,EACAC,EACAC,EACAC,EATAC,EAAqBrB,GAAUA,EAAOG,SAAWH,EAAOG,SAASK,MAAQ,IACzEc,EAAuBtB,GAAUA,EAAOG,SAAWH,EAAOG,SAASK,MAAQ,IAE3Ee,GAAoB,IAAIC,MAAOC,UAOnC,SAASC,EAAgBC,GAClB/B,IAAUA,EAAOgC,WAAchC,EAAOiC,WACvCF,EAAEG,SAAWlC,EAAOiC,YACxBjC,EAAOiC,UAAUE,oBAAoB,gBAAiBL,GAClDN,GAAwBO,EAAEK,QAAUL,EAAEK,OAAOC,mBAGjDC,IACF,CACA,MAAMC,EAAe,KACnB,GAAIvC,EAAOgC,YAAchC,EAAOO,SAASC,QAAS,OAC9CR,EAAOO,SAASE,OAClBU,GAAY,EACHA,IAC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Y,KACb,IAAIF,EAAOgC,WAAchC,EAAOO,SAASC,SAAYY,EAArD,CAGA,GAFAmD,aAAajD,GACbiD,aAAalE,GACTL,EAAOI,OAAOG,SAASO,qBAGzB,OAFAO,GAAgB,OAChBD,GAAY,GAGVC,GAAiBrB,EAAOI,OAAOkE,SAAShC,IAC5CjB,GAAgB,EAChBD,GAAY,CAV0D,IAYxElB,EAAG,cAAe,MACZF,EAAOgC,WAAchC,EAAOO,SAASC,SACrCR,EAAOO,SAASE,SAClBS,EAAmBuB,IACnBhB,EAAqBgB,OAGzB+C,OAAOC,OAAOzF,EAAOO,SAAU,CAC7BkE,QACAC,OACAC,QACArC,UAEJ,QAESvC"}
|
|
@@ -35,7 +35,6 @@ function Autoplay({
|
|
|
35
35
|
let isTouched;
|
|
36
36
|
let pausedByTouch;
|
|
37
37
|
let touchStartTimeout;
|
|
38
|
-
let slideChanged;
|
|
39
38
|
let pausedByInteraction;
|
|
40
39
|
let pausedByPointerEnter;
|
|
41
40
|
function onTransitionEnd(e) {
|
|
@@ -73,18 +72,23 @@ function Autoplay({
|
|
|
73
72
|
const currentSlideDelay = parseInt(activeSlideEl.getAttribute('data-swiper-autoplay'), 10);
|
|
74
73
|
return currentSlideDelay;
|
|
75
74
|
};
|
|
75
|
+
const getTotalDelay = () => {
|
|
76
|
+
let totalDelay = swiper.params.autoplay.delay;
|
|
77
|
+
const currentSlideDelay = getSlideDelay();
|
|
78
|
+
if (!Number.isNaN(currentSlideDelay) && currentSlideDelay > 0) {
|
|
79
|
+
totalDelay = currentSlideDelay;
|
|
80
|
+
}
|
|
81
|
+
return totalDelay;
|
|
82
|
+
};
|
|
76
83
|
const run = delayForce => {
|
|
77
84
|
if (swiper.destroyed || !swiper.autoplay.running) return;
|
|
78
85
|
cancelAnimationFrame(raf);
|
|
79
86
|
calcTimeLeft();
|
|
80
|
-
let delay =
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
delay = currentSlideDelay;
|
|
86
|
-
autoplayDelayTotal = currentSlideDelay;
|
|
87
|
-
autoplayDelayCurrent = currentSlideDelay;
|
|
87
|
+
let delay = delayForce;
|
|
88
|
+
if (typeof delay === 'undefined') {
|
|
89
|
+
delay = getTotalDelay();
|
|
90
|
+
autoplayDelayTotal = delay;
|
|
91
|
+
autoplayDelayCurrent = delay;
|
|
88
92
|
}
|
|
89
93
|
autoplayTimeLeft = delay;
|
|
90
94
|
const speed = swiper.params.speed;
|
|
@@ -156,10 +160,6 @@ function Autoplay({
|
|
|
156
160
|
};
|
|
157
161
|
swiper.autoplay.paused = true;
|
|
158
162
|
if (reset) {
|
|
159
|
-
if (slideChanged) {
|
|
160
|
-
autoplayTimeLeft = swiper.params.autoplay.delay;
|
|
161
|
-
}
|
|
162
|
-
slideChanged = false;
|
|
163
163
|
proceed();
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
@@ -290,7 +290,10 @@ function Autoplay({
|
|
|
290
290
|
});
|
|
291
291
|
on('slideChange', () => {
|
|
292
292
|
if (swiper.destroyed || !swiper.autoplay.running) return;
|
|
293
|
-
|
|
293
|
+
if (swiper.autoplay.paused) {
|
|
294
|
+
autoplayTimeLeft = getTotalDelay();
|
|
295
|
+
autoplayDelayTotal = getTotalDelay();
|
|
296
|
+
}
|
|
294
297
|
});
|
|
295
298
|
Object.assign(swiper.autoplay, {
|
|
296
299
|
start,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function Grid({swiper:e,extendParams:i,on:r}){let a,t,s,l;i({grid:{rows:1,fill:"column"}});const o=()=>{let i=e.params.spaceBetween;return"string"==typeof i&&i.indexOf("%")>=0?i=parseFloat(i.replace("%",""))/100*e.size:"string"==typeof i&&(i=parseFloat(i)),i};r("init",()=>{l=e.params.grid&&e.params.grid.rows>1}),r("update",()=>{const{params:i,el:r}=e,a=i.grid&&i.grid.rows>1;l&&!a?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),s=1,e.emitContainerClasses()):!l&&a&&(r.classList.add(`${i.containerModifierClass}grid`),"column"===i.grid.fill&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),l=a}),e.grid={initSlides:i=>{const{slidesPerView:r}=e.params,{rows:l,fill:o}=e.params.grid,n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:i.length;s=Math.floor(n/l),a=Math.floor(n/l)===n/l?n:Math.ceil(n/l)*l,"auto"!==r&&"row"===o&&(a=Math.max(a,r*l)),t=a/l},unsetSlides:()=>{e.slides&&e.slides.forEach(i=>{i.swiperSlideGridSet&&(i.style.height="",i.style[e.getDirectionLabel("margin-top")]="")})},updateSlide:(i,r,l)=>{const{slidesPerGroup:n}=e.params,d=o(),{rows:p,fill:c}=e.params.grid,g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:l.length;let u,h,m;if("row"===c&&n>1){const e=Math.floor(i/(n*p)),t=i-p*n*e,s=0===e?n:Math.min(Math.ceil((g-e*p*n)/p),n);m=Math.floor(t/s),h=t-m*s+e*n,u=h+m*a/p,r.style.order=u}else"column"===c?(h=Math.floor(i/p),m=i-h*p,(h>s||h===s&&m===p-1)&&(m+=1,m>=p&&(m=0,h+=1))):(m=Math.floor(i/t),h=i-m*t);r.row=m,r.column=h,r.style.height=`calc((100% - ${(p-1)*d}px) / ${p})`,r.style[e.getDirectionLabel("margin-top")]=0!==m?d&&`${d}px`:"",r.swiperSlideGridSet=!0},updateWrapperSize:(i,r)=>{const{centeredSlides:t,roundLengths:s}=e.params,l=o(),{rows:n}=e.params.grid;if(e.virtualSize=(i+l)*a,e.virtualSize=Math.ceil(e.virtualSize/n)-l,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+l}px`),t){const i=[];for(let a=0;a<r.length;a+=1){let t=r[a];s&&(t=Math.floor(t)),r[a]<e.virtualSize+r[0]&&i.push(t)}r.splice(0,r.length),r.push(...i)}}}}export{Grid as default};
|
|
1
|
+
function Grid({swiper:e,extendParams:i,on:r}){let a,t,s,l;i({grid:{rows:1,fill:"column"}});const o=()=>{let i=e.params.spaceBetween;return"string"==typeof i&&i.indexOf("%")>=0?i=parseFloat(i.replace("%",""))/100*e.size:"string"==typeof i&&(i=parseFloat(i)),i};r("init",()=>{l=e.params.grid&&e.params.grid.rows>1}),r("update",()=>{const{params:i,el:r}=e,a=i.grid&&i.grid.rows>1;l&&!a?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),s=1,e.emitContainerClasses()):!l&&a&&(r.classList.add(`${i.containerModifierClass}grid`),"column"===i.grid.fill&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),l=a}),e.grid={initSlides:i=>{const{slidesPerView:r}=e.params,{rows:l,fill:o}=e.params.grid,n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:i.length;s=Math.floor(n/l),a=Math.floor(n/l)===n/l?n:Math.ceil(n/l)*l,"auto"!==r&&"row"===o&&(a=Math.max(a,Math.floor(r)*l)),t=a/l},unsetSlides:()=>{e.slides&&e.slides.forEach(i=>{i.swiperSlideGridSet&&(i.style.height="",i.style[e.getDirectionLabel("margin-top")]="")})},updateSlide:(i,r,l)=>{const{slidesPerGroup:n}=e.params,d=o(),{rows:p,fill:c}=e.params.grid,g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:l.length;let u,h,m;if("row"===c&&n>1){const e=Math.floor(i/(n*p)),t=i-p*n*e,s=0===e?n:Math.min(Math.ceil((g-e*p*n)/p),n);m=Math.floor(t/s),h=t-m*s+e*n,u=h+m*a/p,r.style.order=u}else"column"===c?(h=Math.floor(i/p),m=i-h*p,(h>s||h===s&&m===p-1)&&(m+=1,m>=p&&(m=0,h+=1))):(m=Math.floor(i/t),h=i-m*t);r.row=m,r.column=h,r.style.height=`calc((100% - ${(p-1)*d}px) / ${p})`,r.style[e.getDirectionLabel("margin-top")]=0!==m?d&&`${d}px`:"",r.swiperSlideGridSet=!0},updateWrapperSize:(i,r)=>{const{centeredSlides:t,roundLengths:s}=e.params,l=o(),{rows:n}=e.params.grid;if(e.virtualSize=(i+l)*a,e.virtualSize=Math.ceil(e.virtualSize/n)-l,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+l}px`),t){const i=[];for(let a=0;a<r.length;a+=1){let t=r[a];s&&(t=Math.floor(t)),r[a]<e.virtualSize+r[0]&&i.push(t)}r.splice(0,r.length),r.push(...i)}}}}export{Grid as default};
|
|
2
2
|
//# sourceMappingURL=grid.min.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.mjs.mjs","names":["Grid","swiper","extendParams","on","slidesNumberEvenToRows","slidesPerRow","numFullColumns","wasMultiRow","grid","rows","fill","getSpaceBetween","spaceBetween","params","indexOf","parseFloat","replace","size","el","isMultiRow","classList","remove","containerModifierClass","emitContainerClasses","add","initSlides","slides","slidesPerView","slidesLength","virtual","enabled","length","Math","floor","ceil","max","unsetSlides","forEach","slide","swiperSlideGridSet","style","height","getDirectionLabel","updateSlide","i","slidesPerGroup","newSlideOrderIndex","column","row","groupIndex","slideIndexInGroup","columnsInGroup","min","order","updateWrapperSize","slideSize","snapGrid","centeredSlides","roundLengths","virtualSize","cssMode","wrapperEl","newSlidesGrid","slidesGridItem","push","splice"],"sources":["0"],"mappings":"AAAA,SAASA,MAAKC,OACZA,EAAMC,aACNA,EAAYC,GACZA,IAQA,IAAIC,EACAC,EACAC,EACAC,EATJL,EAAa,CACXM,KAAM,CACJC,KAAM,EACNC,KAAM,YAOV,MAAMC,EAAkB,KACtB,IAAIC,EAAeX,EAAOY,OAAOD,aAMjC,MAL4B,iBAAjBA,GAA6BA,EAAaE,QAAQ,MAAQ,EACnEF,EAAeG,WAAWH,EAAaI,QAAQ,IAAK,KAAO,IAAMf,EAAOgB,KACvC,iBAAjBL,IAChBA,EAAeG,WAAWH,IAErBA,GAyHTT,EAAG,OAtBY,KACbI,EAAcN,EAAOY,OAAOL,MAAQP,EAAOY,OAAOL,KAAKC,KAAO,IAsBhEN,EAAG,SApBc,KACf,MAAMU,OACJA,EAAMK,GACNA,GACEjB,EACEkB,EAAaN,EAAOL,MAAQK,EAAOL,KAAKC,KAAO,EACjDF,IAAgBY,GAClBD,EAAGE,UAAUC,OAAO,GAAGR,EAAOS,6BAA8B,GAAGT,EAAOS,qCACtEhB,EAAiB,EACjBL,EAAOsB,yBACGhB,GAAeY,IACzBD,EAAGE,UAAUI,IAAI,GAAGX,EAAOS,8BACF,WAArBT,EAAOL,KAAKE,MACdQ,EAAGE,UAAUI,IAAI,GAAGX,EAAOS,qCAE7BrB,EAAOsB,wBAEThB,EAAcY,IAIhBlB,EAAOO,KAAO,CACZiB,WA1HiBC,IACjB,MAAMC,cACJA,GACE1B,EAAOY,QACLJ,KACJA,EAAIC,KACJA,GACET,EAAOY,OAAOL,KACZoB,EAAe3B,EAAO4B,SAAW5B,EAAOY,OAAOgB,QAAQC,QAAU7B,EAAO4B,QAAQH,OAAOK,OAASL,EAAOK,OAC7GzB,EAAiB0B,KAAKC,MAAML,EAAenB,GAEzCL,EADE4B,KAAKC,MAAML,EAAenB,KAAUmB,EAAenB,EAC5BmB,EAEAI,KAAKE,KAAKN,EAAenB,GAAQA,EAEtC,SAAlBkB,GAAqC,QAATjB,IAC9BN,EAAyB4B,KAAKG,IAAI/B,
|
|
1
|
+
{"version":3,"file":"grid.mjs.mjs","names":["Grid","swiper","extendParams","on","slidesNumberEvenToRows","slidesPerRow","numFullColumns","wasMultiRow","grid","rows","fill","getSpaceBetween","spaceBetween","params","indexOf","parseFloat","replace","size","el","isMultiRow","classList","remove","containerModifierClass","emitContainerClasses","add","initSlides","slides","slidesPerView","slidesLength","virtual","enabled","length","Math","floor","ceil","max","unsetSlides","forEach","slide","swiperSlideGridSet","style","height","getDirectionLabel","updateSlide","i","slidesPerGroup","newSlideOrderIndex","column","row","groupIndex","slideIndexInGroup","columnsInGroup","min","order","updateWrapperSize","slideSize","snapGrid","centeredSlides","roundLengths","virtualS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ZV,EAAMS,OAASA,EACfT,EAAME,MAAMC,OAAS,iBAAiBhC,EAAO,GAAKG,UAAqBH,KACvE6B,EAAME,MAAMvC,EAAOyC,kBAAkB,eAAyB,IAARM,EAAYpC,GAAgB,GAAGA,MAAmB,GACxG0B,EAAMC,oBAAqB,GAuD3Be,kBArDwB,CAACC,EAAWC,KACpC,MAAMC,eACJA,EAAcC,aACdA,GACEzD,EAAOY,OACLD,EAAeD,KACfF,KACJA,GACER,EAAOY,OAAOL,KAMlB,GALAP,EAAO0D,aAAeJ,EAAY3C,GAAgBR,EAClDH,EAAO0D,YAAc3B,KAAKE,KAAKjC,EAAO0D,YAAclD,GAAQG,EACvDX,EAAOY,OAAO+C,UACjB3D,EAAO4D,UAAUrB,MAAMvC,EAAOyC,kBAAkB,UAAY,GAAGzC,EAAO0D,YAAc/C,OAElF6C,EAAgB,CAClB,MAAMK,EAAgB,GACtB,IAAK,IAAIlB,EAAI,EAAGA,EAAIY,EAASzB,OAAQa,GAAK,EAAG,CAC3C,IAAImB,EAAiBP,EAASZ,GAC1Bc,IAAcK,EAAiB/B,KAAKC,MAAM8B,IAC1CP,EAASZ,GAAK3C,EAAO0D,YAAcH,EAAS,IAAIM,EAAcE,KAAKD,EACzE,CACAP,EAASS,OAAO,EAAGT,EAASzB,QAC5ByB,EAASQ,QAAQF,EACnB,GAgCJ,QAES9D"}
|
|
@@ -38,7 +38,7 @@ function Grid({
|
|
|
38
38
|
slidesNumberEvenToRows = Math.ceil(slidesLength / rows) * rows;
|
|
39
39
|
}
|
|
40
40
|
if (slidesPerView !== 'auto' && fill === 'row') {
|
|
41
|
-
slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, slidesPerView * rows);
|
|
41
|
+
slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, Math.floor(slidesPerView) * rows);
|
|
42
42
|
}
|
|
43
43
|
slidesPerRow = slidesNumberEvenToRows / rows;
|
|
44
44
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as getDocument,a as getWindow}from"../shared/ssr-window.esm.min.mjs";import{d as elementParents,f as elementOffset}from"../shared/utils.min.mjs";function Keyboard({swiper:e,extendParams:t,on:n,emit:a}){const r=getDocument(),
|
|
1
|
+
import{g as getDocument,a as getWindow}from"../shared/ssr-window.esm.min.mjs";import{d as elementParents,f as elementOffset}from"../shared/utils.min.mjs";function Keyboard({swiper:e,extendParams:t,on:n,emit:a}){const r=getDocument(),i=getWindow();function l(t){if(!e.enabled)return;const{rtlTranslate:n}=e;let l=t;l.originalEvent&&(l=l.originalEvent);const o=l.keyCode||l.charCode,s=e.params.keyboard.pageUpDown,d=s&&33===o,f=s&&34===o,m=37===o,c=39===o,p=38===o,b=40===o;if(!e.allowSlideNext&&(e.isHorizontal()&&c||e.isVertical()&&b||f))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&m||e.isVertical()&&p||d))return!1;if(l.shiftKey||l.altKey||l.ctrlKey||l.metaKey)return;if(r.activeElement&&(r.activeElement.isContentEditable||r.activeElement.nodeName&&("input"===r.activeElement.nodeName.toLowerCase()||"textarea"===r.activeElement.nodeName.toLowerCase())))return;if(e.params.keyboard.onlyInViewport&&(d||f||m||c||p||b)){let t=!1;if(elementParents(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===elementParents(e.el,`.${e.params.slideActiveClass}`).length)return;const a=e.el,r=a.clientWidth,l=a.clientHeight,o=i.innerWidth,s=i.innerHeight,d=elementOffset(a);n&&(d.left-=a.scrollLeft);const f=[[d.left,d.top],[d.left+r,d.top],[d.left,d.top+l],[d.left+r,d.top+l]];for(let e=0;e<f.length;e+=1){const n=f[e];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=s){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const u=e.params.keyboard.speed;e.isHorizontal()?((d||f||m||c)&&(l.preventDefault?l.preventDefault():l.returnValue=!1),((f||c)&&!n||(d||m)&&n)&&e.slideNext(u),((d||m)&&!n||(f||c)&&n)&&e.slidePrev(u)):((d||f||p||b)&&(l.preventDefault?l.preventDefault():l.returnValue=!1),(f||b)&&e.slideNext(u),(d||p)&&e.slidePrev(u)),a("keyPress",o)}function o(){e.keyboard.enabled||(r.addEventListener("keydown",l),e.keyboard.enabled=!0)}function s(){e.keyboard.enabled&&(r.removeEventListener("keydown",l),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),n("init",()=>{e.params.keyboard.enabled&&o()}),n("destroy",()=>{e.keyboard.enabled&&s()}),Object.assign(e.keyboard,{enable:o,disable:s})}export{Keyboard as default};
|
|
2
2
|
//# sourceMappingURL=keyboard.min.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.mjs.mjs","names":["getDocument","getWindow","elementParents","elementOffset","Keyboard","swiper","extendParams","on","emit","document","window","handle","event","enabled","rtlTranslate","rtl","e","originalEvent","kc","keyCode","charCode","pageUpDown","params","keyboard","isPageUp","isPageDown","isArrowLeft","isArrowRight","isArrowUp","isArrowDown","allowSlideNext","isHorizontal","isVertical","allowSlidePrev","shiftKey","altKey","ctrlKey","metaKey","activeElement","isContentEditable","nodeName","toLowerCase","onlyInViewport","inView","el","slideClass","length","slideActiveClass","swiperWidth","clientWidth","swiperHeight","clientHeight","windowWidth","innerWidth","windowHeight","innerHeight","swiperOffset","left","scrollLeft","swiperCoord","top","i","point","preventDefault","returnValue","slideNext","slidePrev","enable","addEventListener","disable","removeEventListener","Object","assign"],"sources":["0"],"mappings":"YAAcA,iBAAkBC,cAAiB,+CACnCC,oBAAqBC,kBAAqB,0BAGxD,SAASC,UAASC,OAChBA,EAAMC,aACNA,EAAYC,GACZA,EAAEC,KACFA,IAEA,MAAMC,EAAWT,cACXU,EAAST,
|
|
1
|
+
{"version":3,"file":"keyboard.mjs.mjs","names":["getDocument","getWindow","elementParents","elementOffset","Keyboard","swiper","extendParams","on","emit","document","window","handle","event","enabled","rtlTranslate","rtl","e","originalEvent","kc","keyCode","charCode","pageUpDown","params","keyboard","isPageUp","isPageDown","isArrowLeft","isArrowRight","isArrowUp","isArrowDown","allowSlideNext","isHorizontal","isVertical","allowSlidePrev","shiftKey","altKey","ctrlKey","metaKey","activeElement","isContentEditable","nodeName","toLowerCase","onlyInViewport","inView","el","slideClass","length","slideActiveClass","swiperWidth","clientWidth","swiperHeight","clientHeight","windowWidth","innerWidth","windowHeight","innerHeight","swiperOffset","left","scrollLeft","swiperCoord","top","i","point","speed","preventDefault","returnValue","slideNext","slidePrev","enable","addEventListener","disable","removeEventListener","undefined","Object","assign"],"sources":["0"],"mappings":"YAAcA,iBAAkBC,cAAiB,+CACnCC,oBAAqBC,kBAAqB,0BAGxD,SAASC,UAASC,OAChBA,EAAMC,aACNA,EAAYC,GACZA,EAAEC,KACFA,IAEA,MAAMC,EAAWT,cACXU,EAAST,YAYf,SAASU,EAAOC,GACd,IAAKP,EAAOQ,QAAS,OACrB,MACEC,aAAcC,GACZV,EACJ,IAAIW,EAAIJ,EACJI,EAAEC,gBAAeD,EAAIA,EAAEC,eAC3B,MAAMC,EAAKF,EAAEG,SAAWH,EAAEI,SACpBC,EAAahB,EAAOiB,OAAOC,SAASF,WACpCG,EAAWH,GAAqB,KAAPH,EACzBO,EAAaJ,GAAqB,KAAPH,EAC3BQ,EAAqB,KAAPR,EACdS,EAAsB,KAAPT,EACfU,EAAmB,KAAPV,EACZW,EAAqB,KAAPX,EAEpB,IAAKb,EAAOyB,iBAAmBzB,EAAO0B,gBAAkBJ,GAAgBtB,EAAO2B,cAAgBH,GAAeJ,GAC5G,OAAO,EAET,IAAKpB,EAAO4B,iBAAmB5B,EAAO0B,gBAAkBL,GAAerB,EAAO2B,cAAgBJ,GAAaJ,GACzG,OAAO,EAET,GAAIR,EAAEkB,UAAYlB,EAAEmB,QAAUnB,EAAEoB,SAAWpB,EAAEqB,QAC3C,OAEF,GAAI5B,EAAS6B,gBAAkB7B,EAAS6B,cAAcC,m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,IAAgBX,IAAKV,EAAO6D,UAAUH,KAC1FvC,GAAYE,KAAiBX,IAAQU,GAAcE,IAAiBZ,IAAKV,EAAO8D,UAAUJ,MAE3FvC,GAAYC,GAAcG,GAAaC,KACrCb,EAAEgD,eAAgBhD,EAAEgD,iBAAsBhD,EAAEiD,aAAc,IAE5DxC,GAAcI,IAAaxB,EAAO6D,UAAUH,IAC5CvC,GAAYI,IAAWvB,EAAO8D,UAAUJ,IAE9CvD,EAAK,WAAYU,EAEnB,CACA,SAASkD,IACH/D,EAAOkB,SAASV,UACpBJ,EAAS4D,iBAAiB,UAAW1D,GACrCN,EAAOkB,SAASV,SAAU,EAC5B,CACA,SAASyD,IACFjE,EAAOkB,SAASV,UACrBJ,EAAS8D,oBAAoB,UAAW5D,GACxCN,EAAOkB,SAASV,SAAU,EAC5B,CAxFAR,EAAOkB,SAAW,CAChBV,SAAS,GAEXP,EAAa,CACXiB,SAAU,CACRV,SAAS,EACT6B,gBAAgB,EAChBrB,YAAY,EACZ0C,WAAOS,KAiFXjE,EAAG,OAAQ,KACLF,EAAOiB,OAAOC,SAASV,SACzBuD,MAGJ7D,EAAG,UAAW,KACRF,EAAOkB,SAASV,SAClByD,MAGJG,OAAOC,OAAOrE,EAAOkB,SAAU,CAC7B6C,SACAE,WAEJ,QAESlE"}
|
|
@@ -17,7 +17,8 @@ function Keyboard({
|
|
|
17
17
|
keyboard: {
|
|
18
18
|
enabled: false,
|
|
19
19
|
onlyInViewport: true,
|
|
20
|
-
pageUpDown: true
|
|
20
|
+
pageUpDown: true,
|
|
21
|
+
speed: undefined
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
24
|
function handle(event) {
|
|
@@ -71,18 +72,19 @@ function Keyboard({
|
|
|
71
72
|
}
|
|
72
73
|
if (!inView) return undefined;
|
|
73
74
|
}
|
|
75
|
+
const speed = swiper.params.keyboard.speed;
|
|
74
76
|
if (swiper.isHorizontal()) {
|
|
75
77
|
if (isPageUp || isPageDown || isArrowLeft || isArrowRight) {
|
|
76
78
|
if (e.preventDefault) e.preventDefault();else e.returnValue = false;
|
|
77
79
|
}
|
|
78
|
-
if ((isPageDown || isArrowRight) && !rtl || (isPageUp || isArrowLeft) && rtl) swiper.slideNext();
|
|
79
|
-
if ((isPageUp || isArrowLeft) && !rtl || (isPageDown || isArrowRight) && rtl) swiper.slidePrev();
|
|
80
|
+
if ((isPageDown || isArrowRight) && !rtl || (isPageUp || isArrowLeft) && rtl) swiper.slideNext(speed);
|
|
81
|
+
if ((isPageUp || isArrowLeft) && !rtl || (isPageDown || isArrowRight) && rtl) swiper.slidePrev(speed);
|
|
80
82
|
} else {
|
|
81
83
|
if (isPageUp || isPageDown || isArrowUp || isArrowDown) {
|
|
82
84
|
if (e.preventDefault) e.preventDefault();else e.returnValue = false;
|
|
83
85
|
}
|
|
84
|
-
if (isPageDown || isArrowDown) swiper.slideNext();
|
|
85
|
-
if (isPageUp || isArrowUp) swiper.slidePrev();
|
|
86
|
+
if (isPageDown || isArrowDown) swiper.slideNext(speed);
|
|
87
|
+
if (isPageUp || isArrowUp) swiper.slidePrev(speed);
|
|
86
88
|
}
|
|
87
89
|
emit('keyPress', kc);
|
|
88
90
|
return undefined;
|
|
@@ -33,7 +33,10 @@
|
|
|
33
33
|
.swiper-navigation-disabled .swiper-button-prev, .swiper-navigation-disabled .swiper-button-next {
|
|
34
34
|
display: none !important;
|
|
35
35
|
}
|
|
36
|
-
.swiper-button-prev svg,
|
|
36
|
+
.swiper-button-prev ::slotted(svg),
|
|
37
|
+
.swiper-button-prev svg,
|
|
38
|
+
.swiper-button-next ::slotted(svg),
|
|
39
|
+
.swiper-button-next svg {
|
|
37
40
|
width: 100%;
|
|
38
41
|
height: 100%;
|
|
39
42
|
object-fit: contain;
|
|
@@ -55,7 +58,8 @@
|
|
|
55
58
|
left: var(--swiper-navigation-sides-offset, 4px);
|
|
56
59
|
right: auto;
|
|
57
60
|
}
|
|
58
|
-
.swiper-button-prev .swiper-navigation-icon
|
|
61
|
+
.swiper-button-prev ::slotted(.swiper-navigation-icon),
|
|
62
|
+
.swiper-button-prev .swiper-navigation-icon {
|
|
59
63
|
transform: rotate(180deg);
|
|
60
64
|
}
|
|
61
65
|
.swiper-button-next {
|
|
@@ -84,10 +88,20 @@
|
|
|
84
88
|
right: var(--swiper-navigation-sides-offset, 4px);
|
|
85
89
|
left: auto;
|
|
86
90
|
}
|
|
87
|
-
.swiper-horizontal .swiper-button-prev .swiper-navigation-icon,
|
|
91
|
+
.swiper-horizontal .swiper-button-prev ::slotted(.swiper-navigation-icon),
|
|
92
|
+
.swiper-horizontal .swiper-button-prev .swiper-navigation-icon,
|
|
93
|
+
.swiper-horizontal ~ .swiper-button-prev ::slotted(.swiper-navigation-icon),
|
|
94
|
+
.swiper-horizontal ~ .swiper-button-prev .swiper-navigation-icon,
|
|
95
|
+
.swiper-horizontal.swiper-rtl .swiper-button-next ::slotted(.swiper-navigation-icon),
|
|
96
|
+
.swiper-horizontal.swiper-rtl .swiper-button-next .swiper-navigation-icon,
|
|
97
|
+
.swiper-horizontal.swiper-rtl ~ .swiper-button-next ::slotted(.swiper-navigation-icon),
|
|
98
|
+
.swiper-horizontal.swiper-rtl ~ .swiper-button-next .swiper-navigation-icon {
|
|
88
99
|
transform: rotate(180deg);
|
|
89
100
|
}
|
|
90
|
-
.swiper-horizontal.swiper-rtl .swiper-button-prev .swiper-navigation-icon,
|
|
101
|
+
.swiper-horizontal.swiper-rtl .swiper-button-prev ::slotted(.swiper-navigation-icon),
|
|
102
|
+
.swiper-horizontal.swiper-rtl .swiper-button-prev .swiper-navigation-icon,
|
|
103
|
+
.swiper-horizontal.swiper-rtl ~ .swiper-button-prev ::slotted(.swiper-navigation-icon),
|
|
104
|
+
.swiper-horizontal.swiper-rtl ~ .swiper-button-prev .swiper-navigation-icon {
|
|
91
105
|
transform: rotate(0deg);
|
|
92
106
|
}
|
|
93
107
|
.swiper-vertical .swiper-button-prev,
|
|
@@ -104,7 +118,10 @@
|
|
|
104
118
|
top: var(--swiper-navigation-sides-offset, 4px);
|
|
105
119
|
bottom: auto;
|
|
106
120
|
}
|
|
107
|
-
.swiper-vertical .swiper-button-prev .swiper-navigation-icon,
|
|
121
|
+
.swiper-vertical .swiper-button-prev ::slotted(.swiper-navigation-icon),
|
|
122
|
+
.swiper-vertical .swiper-button-prev .swiper-navigation-icon,
|
|
123
|
+
.swiper-vertical ~ .swiper-button-prev ::slotted(.swiper-navigation-icon),
|
|
124
|
+
.swiper-vertical ~ .swiper-button-prev .swiper-navigation-icon {
|
|
108
125
|
transform: rotate(-90deg);
|
|
109
126
|
}
|
|
110
127
|
.swiper-vertical .swiper-button-next,
|
|
@@ -112,6 +129,9 @@
|
|
|
112
129
|
bottom: var(--swiper-navigation-sides-offset, 4px);
|
|
113
130
|
top: auto;
|
|
114
131
|
}
|
|
115
|
-
.swiper-vertical .swiper-button-next .swiper-navigation-icon,
|
|
132
|
+
.swiper-vertical .swiper-button-next ::slotted(.swiper-navigation-icon),
|
|
133
|
+
.swiper-vertical .swiper-button-next .swiper-navigation-icon,
|
|
134
|
+
.swiper-vertical ~ .swiper-button-next ::slotted(.swiper-navigation-icon),
|
|
135
|
+
.swiper-vertical ~ .swiper-button-next .swiper-navigation-icon {
|
|
116
136
|
transform: rotate(90deg);
|
|
117
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;position:absolute;width:var(--swiper-navigation-size);z-index:10}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{height:100%;object-fit:contain;transform-origin:center;width:100%;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-next,.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-horizontal .swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl .swiper-button-next .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-next .swiper-navigation-icon,.swiper-horizontal~.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-horizontal.swiper-rtl .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-prev .swiper-navigation-icon{transform:rotate(0deg)}.swiper-vertical .swiper-button-next,.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-next,.swiper-vertical~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px)}.swiper-vertical .swiper-button-prev .swiper-navigation-icon,.swiper-vertical~.swiper-button-prev .swiper-navigation-icon{transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto}.swiper-vertical .swiper-button-next .swiper-navigation-icon,.swiper-vertical~.swiper-button-next .swiper-navigation-icon{transform:rotate(90deg)}
|
|
1
|
+
:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;position:absolute;width:var(--swiper-navigation-size);z-index:10}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next ::slotted(svg),.swiper-button-next svg,.swiper-button-prev ::slotted(svg),.swiper-button-prev svg{height:100%;object-fit:contain;transform-origin:center;width:100%;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-button-prev .swiper-navigation-icon,.swiper-button-prev ::slotted(.swiper-navigation-icon){transform:rotate(180deg)}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-next,.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-horizontal .swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal .swiper-button-prev ::slotted(.swiper-navigation-icon),.swiper-horizontal.swiper-rtl .swiper-button-next .swiper-navigation-icon,.swiper-horizontal.swiper-rtl .swiper-button-next ::slotted(.swiper-navigation-icon),.swiper-horizontal.swiper-rtl~.swiper-button-next .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-next ::slotted(.swiper-navigation-icon),.swiper-horizontal~.swiper-button-prev .swiper-navigation-icon,.swiper-horizontal~.swiper-button-prev ::slotted(.swiper-navigation-icon){transform:rotate(180deg)}.swiper-horizontal.swiper-rtl .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl .swiper-button-prev ::slotted(.swiper-navigation-icon),.swiper-horizontal.swiper-rtl~.swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-prev ::slotted(.swiper-navigation-icon){transform:rotate(0deg)}.swiper-vertical .swiper-button-next,.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-next,.swiper-vertical~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px)}.swiper-vertical .swiper-button-prev .swiper-navigation-icon,.swiper-vertical .swiper-button-prev ::slotted(.swiper-navigation-icon),.swiper-vertical~.swiper-button-prev .swiper-navigation-icon,.swiper-vertical~.swiper-button-prev ::slotted(.swiper-navigation-icon){transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto}.swiper-vertical .swiper-button-next .swiper-navigation-icon,.swiper-vertical .swiper-button-next ::slotted(.swiper-navigation-icon),.swiper-vertical~.swiper-button-next .swiper-navigation-icon,.swiper-vertical~.swiper-button-next ::slotted(.swiper-navigation-icon){transform:rotate(90deg)}
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
.swiper-navigation-disabled & {
|
|
33
33
|
display: none !important;
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
::slotted(svg),
|
|
35
37
|
svg {
|
|
36
38
|
width: 100%;
|
|
37
39
|
height: 100%;
|
|
@@ -54,6 +56,7 @@
|
|
|
54
56
|
.swiper-button-prev {
|
|
55
57
|
left: var(--swiper-navigation-sides-offset, 4px);
|
|
56
58
|
right: auto;
|
|
59
|
+
::slotted(.swiper-navigation-icon),
|
|
57
60
|
.swiper-navigation-icon {
|
|
58
61
|
transform: rotate(180deg);
|
|
59
62
|
}
|
|
@@ -89,12 +92,14 @@
|
|
|
89
92
|
& ~ .swiper-button-prev,
|
|
90
93
|
&.swiper-rtl .swiper-button-next,
|
|
91
94
|
&.swiper-rtl ~ .swiper-button-next {
|
|
95
|
+
::slotted(.swiper-navigation-icon),
|
|
92
96
|
.swiper-navigation-icon {
|
|
93
97
|
transform: rotate(180deg);
|
|
94
98
|
}
|
|
95
99
|
}
|
|
96
100
|
&.swiper-rtl .swiper-button-prev,
|
|
97
101
|
&.swiper-rtl ~ .swiper-button-prev {
|
|
102
|
+
::slotted(.swiper-navigation-icon),
|
|
98
103
|
.swiper-navigation-icon {
|
|
99
104
|
transform: rotate(0deg);
|
|
100
105
|
}
|
|
@@ -114,6 +119,7 @@
|
|
|
114
119
|
~ .swiper-button-prev {
|
|
115
120
|
top: var(--swiper-navigation-sides-offset, 4px);
|
|
116
121
|
bottom: auto;
|
|
122
|
+
::slotted(.swiper-navigation-icon),
|
|
117
123
|
.swiper-navigation-icon {
|
|
118
124
|
transform: rotate(-90deg);
|
|
119
125
|
}
|
|
@@ -122,6 +128,7 @@
|
|
|
122
128
|
~ .swiper-button-next {
|
|
123
129
|
bottom: var(--swiper-navigation-sides-offset, 4px);
|
|
124
130
|
top: auto;
|
|
131
|
+
::slotted(.swiper-navigation-icon),
|
|
125
132
|
.swiper-navigation-icon {
|
|
126
133
|
transform: rotate(90deg);
|
|
127
134
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;position:absolute;width:var(--swiper-navigation-size);z-index:10;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}svg{height:100%;object-fit:contain;transform-origin:center;width:100%;fill:currentColor;pointer-events:none}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;.swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{.swiper-button-next,.swiper-button-prev,~.swiper-button-next,~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,.swiper-button-prev{.swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{.swiper-navigation-icon{transform:rotate(0deg)}}}.swiper-vertical{.swiper-button-next,.swiper-button-prev,~.swiper-button-next,~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.swiper-button-prev,~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);.swiper-navigation-icon{transform:rotate(-90deg)}}.swiper-button-next,~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;.swiper-navigation-icon{transform:rotate(90deg)}}}
|
|
1
|
+
:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;position:absolute;width:var(--swiper-navigation-size);z-index:10;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}::slotted(svg),svg{height:100%;object-fit:contain;transform-origin:center;width:100%;fill:currentColor;pointer-events:none}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;.swiper-navigation-icon,::slotted(.swiper-navigation-icon){transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{.swiper-button-next,.swiper-button-prev,~.swiper-button-next,~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,.swiper-button-prev{.swiper-navigation-icon,::slotted(.swiper-navigation-icon){transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{.swiper-navigation-icon,::slotted(.swiper-navigation-icon){transform:rotate(0deg)}}}.swiper-vertical{.swiper-button-next,.swiper-button-prev,~.swiper-button-next,~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.swiper-button-prev,~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);.swiper-navigation-icon,::slotted(.swiper-navigation-icon){transform:rotate(-90deg)}}.swiper-button-next,~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;.swiper-navigation-icon,::slotted(.swiper-navigation-icon){transform:rotate(90deg)}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";import{p as isObject,e as elementChildren}from"../shared/utils.min.mjs";function Thumb({swiper:e,extendParams:s,on:i}){s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let t=!1,r=!1;function a(){const s=e.thumbs.swiper;if(!s||s.destroyed)return;const i=s.clickedIndex,t=s.clickedSlide;if(t&&t.classList.contains(e.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let r;r=s.params.loop?parseInt(s.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,e.params.loop?e.slideToLoop(r):e.slideTo(r)}function
|
|
1
|
+
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";import{p as isObject,e as elementChildren}from"../shared/utils.min.mjs";function Thumb({swiper:e,extendParams:s,on:i}){s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let t=!1,r=!1;function a(){const s=e.thumbs.swiper;return!(!s||s.destroyed)&&(s.params.virtual&&s.params.virtual.enabled)}function n(){const s=e.thumbs.swiper;if(!s||s.destroyed)return;const i=s.clickedIndex,t=s.clickedSlide;if(t&&t.classList.contains(e.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let r;r=s.params.loop?parseInt(s.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,e.params.loop?e.slideToLoop(r):e.slideTo(r)}function l(){const{thumbs:s}=e.params;if(t)return!1;t=!0;const i=e.constructor;if(s.swiper instanceof i){if(s.swiper.destroyed)return t=!1,!1;e.thumbs.swiper=s.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(isObject(s.swiper)){const t=Object.assign({},s.swiper);Object.assign(t,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(t),r=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",n),a()&&e.thumbs.swiper.on("virtualUpdate",()=>{d(!1,{autoScroll:!1})}),!0}function d(s,i){const t=e.thumbs.swiper;if(!t||t.destroyed)return;let r=1;const n=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(r=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),t.slides.forEach(e=>e.classList.remove(n)),t.params.loop||a())for(let s=0;s<r;s+=1)elementChildren(t.slidesEl,`[data-swiper-slide-index="${e.realIndex+s}"]`).forEach(e=>{e.classList.add(n)});else for(let s=0;s<r;s+=1)t.slides[e.realIndex+s]&&t.slides[e.realIndex+s].classList.add(n);(i?.autoScroll??1)&&function(s){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const t="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView,r=e.params.thumbs.autoScrollOffset,a=r&&!i.params.loop;if(e.realIndex!==i.realIndex||a){const n=i.activeIndex;let l,d;if(i.params.loop){const s=i.slides.find(s=>s.getAttribute("data-swiper-slide-index")===`${e.realIndex}`);l=i.slides.indexOf(s),d=e.activeIndex>e.previousIndex?"next":"prev"}else l=e.realIndex,d=l>e.previousIndex?"next":"prev";a&&(l+="next"===d?r:-1*r),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(l)<0&&(i.params.centeredSlides?l=l>n?l-Math.floor(t/2)+1:l+Math.floor(t/2)-1:l>n&&i.params.slidesPerGroup,i.slideTo(l,s))}}(s?0:void 0)}e.thumbs={swiper:null},i("beforeInit",()=>{const{thumbs:s}=e.params;if(s&&s.swiper)if("string"==typeof s.swiper||s.swiper instanceof HTMLElement){const i=getDocument(),t=()=>{const t="string"==typeof s.swiper?i.querySelector(s.swiper):s.swiper;if(t&&t.swiper)s.swiper=t.swiper,l(),d(!0);else if(t){const i=`${e.params.eventsPrefix}init`,r=a=>{s.swiper=a.detail[0],t.removeEventListener(i,r),l(),d(!0),s.swiper.update(),e.update()};t.addEventListener(i,r)}return t},r=()=>{if(e.destroyed)return;t()||requestAnimationFrame(r)};requestAnimationFrame(r)}else l(),d(!0)}),i("slideChange update resize observerUpdate",()=>{d()}),i("setTransition",(s,i)=>{const t=e.thumbs.swiper;t&&!t.destroyed&&t.setTransition(i)}),i("beforeDestroy",()=>{const s=e.thumbs.swiper;s&&!s.destroyed&&r&&s.destroy()}),Object.assign(e.thumbs,{init:l,update:d})}export{Thumb as default};
|
|
2
2
|
//# sourceMappingURL=thumbs.min.mjs.map
|