UNPKG

30.5 kBJavaScriptView Raw
1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("swiper/core"),require("rxjs")):"function"==typeof define&&define.amd?define("swiper_angular",["exports","@angular/core","@angular/common","swiper/core","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).swiper_angular={},e.ng.core,e.ng.common,e.Swiper,e.rxjs)}(this,(function(e,t,i,n,s){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(n);
2/*! *****************************************************************************
3 Copyright (c) Microsoft Corporation.
4
5 Permission to use, copy, modify, and/or distribute this software for any
6 purpose with or without fee is hereby granted.
7
8 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 PERFORMANCE OF THIS SOFTWARE.
15 ***************************************************************************** */Object.create;function o(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,s,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(s)throw s.error}}return a}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e}Object.create;function p(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e,t){var i=["__proto__","constructor","prototype"];Object.keys(t).filter((function(e){return i.indexOf(e)<0})).forEach((function(i){void 0!==e[i]?e[i]&&!t[i]||(p(t[i])&&p(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:u(e[i],t[i]):e[i]=t[i]):e[i]=t[i]}))}function d(e){return null!=e&&""+e!="false"}var c=["pagination","navigation","scrollbar","virtual"];function g(e,t){return void 0===t&&(t={}),p(e)?e:!0===d(e)&&t}var h=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"].map((function(e){return e.replace(/_/,"")}));function f(e){void 0===e&&(e={});var t={on:{}},i={};u(t,a.default.defaults),u(t,a.default.extendedDefaults),t._emitClasses=!0;var n={};return Object.keys(e).forEach((function(s){var r=s.replace(/^_/,"");void 0!==e[r]&&(h.indexOf(r)>=0?p(e[r])?(t[r]={},i[r]={},u(t[r],e[r]),u(i[r],e[r])):(t[r]=e[r],i[r]=e[r]):n[r]=e[r])})),{params:t,passedParams:i,rest:n}}var y=function(){function e(e){this.template=e,this.class="",this.slideData={isActive:!1,isPrev:!1,isNext:!1,isVisible:!1,isDuplicate:!1}}return Object.defineProperty(e.prototype,"zoom",{get:function(){return this._zoom},set:function(e){this._zoom=d(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._classNames},set:function(e){this._classNames!==e&&(this._classNames=e,this.slideData={isActive:this._hasClass(["swiper-slide-active","swiper-slide-duplicate-active"]),isVisible:this._hasClass(["swiper-slide-visible"]),isDuplicate:this._hasClass(["swiper-slide-duplicate"]),isPrev:this._hasClass(["swiper-slide-prev","swiper-slide-duplicate-prev"]),isNext:this._hasClass(["swiper-slide-next","swiper-slide-duplicate-next"])})},enumerable:!1,configurable:!0}),e.prototype._hasClass=function(e){var t=this;return e.some((function(e){return t._classNames.indexOf(e)>=0}))},e}();y.decorators=[{type:t.Directive,args:[{selector:"ng-template[swiperSlide]"}]}],y.ctorParameters=function(){return[{type:t.TemplateRef}]},y.propDecorators={virtualIndex:[{type:t.Input}],class:[{type:t.Input}],zoom:[{type:t.Input}]};var v=function(){function e(e,i,n,r){var a=this;this._ngZone=e,this.elementRef=i,this._changeDetectorRef=n,this._platformId=r,this.slideClass="swiper-slide",this.wrapperClass="swiper-wrapper",this.showNavigation=!0,this.showPagination=!0,this.showScrollbar=!0,this.s__beforeBreakpoint=new t.EventEmitter,this.s__containerClasses=new t.EventEmitter,this.s__slideClass=new t.EventEmitter,this.s__swiper=new t.EventEmitter,this.s_activeIndexChange=new t.EventEmitter,this.s_afterInit=new t.EventEmitter,this.s_autoplay=new t.EventEmitter,this.s_autoplayStart=new t.EventEmitter,this.s_autoplayStop=new t.EventEmitter,this.s_beforeDestroy=new t.EventEmitter,this.s_beforeInit=new t.EventEmitter,this.s_beforeLoopFix=new t.EventEmitter,this.s_beforeResize=new t.EventEmitter,this.s_beforeSlideChangeStart=new t.EventEmitter,this.s_beforeTransitionStart=new t.EventEmitter,this.s_breakpoint=new t.EventEmitter,this.s_changeDirection=new t.EventEmitter,this.s_click=new t.EventEmitter,this.s_doubleTap=new t.EventEmitter,this.s_doubleClick=new t.EventEmitter,this.s_destroy=new t.EventEmitter,this.s_fromEdge=new t.EventEmitter,this.s_hashChange=new t.EventEmitter,this.s_hashSet=new t.EventEmitter,this.s_imagesReady=new t.EventEmitter,this.s_init=new t.EventEmitter,this.s_keyPress=new t.EventEmitter,this.s_lazyImageLoad=new t.EventEmitter,this.s_lazyImageReady=new t.EventEmitter,this.s_loopFix=new t.EventEmitter,this.s_momentumBounce=new t.EventEmitter,this.s_navigationHide=new t.EventEmitter,this.s_navigationShow=new t.EventEmitter,this.s_observerUpdate=new t.EventEmitter,this.s_orientationchange=new t.EventEmitter,this.s_paginationHide=new t.EventEmitter,this.s_paginationRender=new t.EventEmitter,this.s_paginationShow=new t.EventEmitter,this.s_paginationUpdate=new t.EventEmitter,this.s_progress=new t.EventEmitter,this.s_reachBeginning=new t.EventEmitter,this.s_reachEnd=new t.EventEmitter,this.s_realIndexChange=new t.EventEmitter,this.s_resize=new t.EventEmitter,this.s_scroll=new t.EventEmitter,this.s_scrollbarDragEnd=new t.EventEmitter,this.s_scrollbarDragMove=new t.EventEmitter,this.s_scrollbarDragStart=new t.EventEmitter,this.s_setTransition=new t.EventEmitter,this.s_setTranslate=new t.EventEmitter,this.s_slideChange=new t.EventEmitter,this.s_slideChangeTransitionEnd=new t.EventEmitter,this.s_slideChangeTransitionStart=new t.EventEmitter,this.s_slideNextTransitionEnd=new t.EventEmitter,this.s_slideNextTransitionStart=new t.EventEmitter,this.s_slidePrevTransitionEnd=new t.EventEmitter,this.s_slidePrevTransitionStart=new t.EventEmitter,this.s_slideResetTransitionStart=new t.EventEmitter,this.s_slideResetTransitionEnd=new t.EventEmitter,this.s_sliderMove=new t.EventEmitter,this.s_sliderFirstMove=new t.EventEmitter,this.s_slidesLengthChange=new t.EventEmitter,this.s_slidesGridLengthChange=new t.EventEmitter,this.s_snapGridLengthChange=new t.EventEmitter,this.s_snapIndexChange=new t.EventEmitter,this.s_tap=new t.EventEmitter,this.s_toEdge=new t.EventEmitter,this.s_touchEnd=new t.EventEmitter,this.s_touchMove=new t.EventEmitter,this.s_touchMoveOpposite=new t.EventEmitter,this.s_touchStart=new t.EventEmitter,this.s_transitionEnd=new t.EventEmitter,this.s_transitionStart=new t.EventEmitter,this.s_update=new t.EventEmitter,this.s_zoomChange=new t.EventEmitter,this.s_swiper=new t.EventEmitter,this.indexChange=new t.EventEmitter,this._activeSlides=new s.Subject,this.containerClasses="swiper-container",this.slidesChanges=function(e){a.slides=e.map((function(e,t){return e.slideIndex=t,e.classNames=a.slideClass,e})),a.loop&&!a.loopedSlides&&a.calcLoopedSlides(),a.virtual?a.swiperRef&&a.swiperRef.virtual&&a._ngZone.runOutsideAngular((function(){a.swiperRef.virtual.slides=a.slides,a.swiperRef.virtual.update(!0)})):(a.prependSlides=s.of(a.slides.slice(a.slides.length-a.loopedSlides)),a.appendSlides=s.of(a.slides.slice(0,a.loopedSlides))),a._changeDetectorRef.detectChanges()},this.style=null,this.updateVirtualSlides=function(e){var t;!a.swiperRef||a.currentVirtualData&&a.currentVirtualData.from===e.from&&a.currentVirtualData.to===e.to&&a.currentVirtualData.offset===e.offset||(a.style=a.swiperRef.isHorizontal()?((t={})[a.swiperRef.rtlTranslate?"right":"left"]=e.offset+"px",t):{top:e.offset+"px"},a.currentVirtualData=e,a._activeSlides.next(e.slides),a._changeDetectorRef.detectChanges(),a._ngZone.runOutsideAngular((function(){a.swiperRef.updateSlides(),a.swiperRef.updateProgress(),a.swiperRef.updateSlidesClasses(),a.swiperRef.lazy&&a.swiperRef.params.lazy.enabled&&a.swiperRef.lazy.load(),a.swiperRef.virtual.update(!0)})))}}return Object.defineProperty(e.prototype,"navigation",{get:function(){return this._navigation},set:function(e){var t,i,n,s,r,a,o,l,p="boolean"!=typeof this._navigation?null===(t=this._navigation)||void 0===t?void 0:t.nextEl:null,u="boolean"!=typeof this._navigation?null===(i=this._navigation)||void 0===i?void 0:i.prevEl:null;this._navigation=g(e,{nextEl:p||null,prevEl:u||null}),!0===d(e)||"boolean"==typeof this._navigation||(null===(n=this._navigation)||void 0===n?void 0:n.prevEl)===(null===(s=this._prevElRef)||void 0===s?void 0:s.nativeElement)||"string"!=typeof(null===(r=this._navigation)||void 0===r?void 0:r.nextEl)&&"string"!=typeof(null===(a=this._navigation)||void 0===a?void 0:a.prevEl)&&"object"!=typeof(null===(o=this._navigation)||void 0===o?void 0:o.nextEl)&&"object"!=typeof(null===(l=this._navigation)||void 0===l?void 0:l.prevEl)||(this.showNavigation=!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pagination",{get:function(){return this._pagination},set:function(e){var t,i,n,s,r,a="boolean"!=typeof this._pagination?null===(t=this._pagination)||void 0===t?void 0:t.el:null;this._pagination=g(e,{el:a||null}),!0===d(e)||"boolean"==typeof this._pagination||(null===(i=this._pagination)||void 0===i?void 0:i.el)===(null===(n=this._paginationElRef)||void 0===n?void 0:n.nativeElement)||"string"!=typeof(null===(s=this._pagination)||void 0===s?void 0:s.el)&&"object"!=typeof(null===(r=this._pagination)||void 0===r?void 0:r.el)||(this.showPagination=!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollbar",{get:function(){return this._scrollbar},set:function(e){var t,i,n,s,r,a="boolean"!=typeof this._scrollbar?null===(t=this._scrollbar)||void 0===t?void 0:t.el:null;this._scrollbar=g(e,{el:a||null}),!0===d(e)||"boolean"==typeof this._scrollbar||(null===(i=this._scrollbar)||void 0===i?void 0:i.el)===(null===(n=this._scrollbarElRef)||void 0===n?void 0:n.nativeElement)||"string"!=typeof(null===(s=this._scrollbar)||void 0===s?void 0:s.el)&&"object"!=typeof(null===(r=this._scrollbar)||void 0===r?void 0:r.el)||(this.showScrollbar=!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtual},set:function(e){this._virtual=g(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{set:function(e){this.setIndex(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{set:function(e){this.updateSwiper(e);var t=f(e).params;Object.assign(this,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevElRef",{set:function(e){this._prevElRef=e,this._setElement(e,this.navigation,"navigation","prevEl")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextElRef",{set:function(e){this._nextElRef=e,this._setElement(e,this.navigation,"navigation","nextEl")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollbarElRef",{set:function(e){this._scrollbarElRef=e,this._setElement(e,this.scrollbar,"scrollbar")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paginationElRef",{set:function(e){this._paginationElRef=e,this._setElement(e,this.pagination,"pagination")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeSlides",{get:function(){return this.virtual?this._activeSlides:s.of(this.slides)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomContainerClass",{get:function(){return"boolean"!=typeof this.zoom?this.zoom.containerClass:"swiper-zoom-container"},enumerable:!1,configurable:!0}),e.prototype._setElement=function(e,t,i,n){if(void 0===n&&(n="el"),e&&t){if(t&&e.nativeElement){if(t[n]===e.nativeElement)return;t[n]=e.nativeElement}var s={};s[i]=!0,this.updateInitSwiper(s)}},e.prototype.ngOnInit=function(){var e=f(this).params;Object.assign(this,e)},e.prototype.ngAfterViewInit=function(){var e=this;this.childrenSlidesInit(),this.initSwiper(),this._changeDetectorRef.detectChanges(),setTimeout((function(){e.s_swiper.emit(e.swiperRef)}))},e.prototype.childrenSlidesInit=function(){this.slidesChanges(this.slidesEl),this.slidesEl.changes.subscribe(this.slidesChanges)},Object.defineProperty(e.prototype,"isSwiperActive",{get:function(){return this.swiperRef&&!this.swiperRef.destroyed},enumerable:!1,configurable:!0}),e.prototype.initSwiper=function(){var e=this,t=f(this),n=t.params;t.passedParams;Object.assign(this,n),this._ngZone.runOutsideAngular((function(){n.init=!1,n.virtual||(n.observer=!0),n.onAny=function(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var s=e["s_"+t];s&&s.emit.apply(s,l(i))},Object.assign(n.on,{_containerClasses:function(e,t){this.containerClasses=t},_slideClasses:function(t,i){i.forEach((function(t,i){var n=t.slideEl,s=t.classNames,r=parseInt(n.getAttribute("data-swiper-slide-index"))||i;if(e.virtual){var a=e.slides.find((function(e){return e.virtualIndex&&e.virtualIndex===r}));if(a)return void(a.classNames=s)}e.slides[r]&&(e.slides[r].classNames=s)})),e._changeDetectorRef.detectChanges()}});var t=new a.default(n);if(t.loopCreate=function(){},t.loopDestroy=function(){},n.loop&&(t.loopedSlides=e.loopedSlides),t.virtual&&t.params.virtual.enabled){t.virtual.slides=e.slides;var s={cache:!1,renderExternal:e.updateVirtualSlides,renderExternalUpdate:!1};u(t.params.virtual,s),u(t.originalParams.virtual,s)}i.isPlatformBrowser(e._platformId)&&(e.swiperRef=t.init(e.elementRef.nativeElement),e.swiperRef.virtual&&e.swiperRef.params.virtual.enabled&&e.swiperRef.virtual.update(!0),e._changeDetectorRef.detectChanges(),t.on("slideChange",(function(){e.indexChange.emit(e.swiperRef.realIndex)})))}))},e.prototype.ngOnChanges=function(e){this.updateSwiper(e),this._changeDetectorRef.detectChanges()},e.prototype.updateInitSwiper=function(e){var t=this;e&&this.swiperRef&&!this.swiperRef.destroyed&&this._ngZone.runOutsideAngular((function(){var i=t.swiperRef,n=(i.params,i.pagination),s=i.navigation,r=i.scrollbar,a=(i.virtual,i.thumbs);(e.pagination&&(t.pagination&&"boolean"!=typeof t.pagination&&t.pagination.el&&n&&!n.el?(t.updateParameter("pagination",t.pagination),n.init(),n.render(),n.update()):(n.destroy(),n.el=null)),e.scrollbar&&(t.scrollbar&&"boolean"!=typeof t.scrollbar&&t.scrollbar.el&&r&&!r.el?(t.updateParameter("scrollbar",t.scrollbar),r.init(),r.updateSize(),r.setTranslate()):(r.destroy(),r.el=null)),e.navigation&&(t.navigation&&"boolean"!=typeof t.navigation&&t.navigation.prevEl&&t.navigation.nextEl&&s&&!s.prevEl&&!s.nextEl?(t.updateParameter("navigation",t.navigation),s.init(),s.update()):s.prevEl&&s.nextEl&&(s.destroy(),s.nextEl=null,s.prevEl=null)),e.thumbs&&t.thumbs&&t.thumbs.swiper)&&(t.updateParameter("thumbs",t.thumbs),a.init()&&a.update(!0));e.controller&&t.controller&&t.controller.control&&(t.swiperRef.controller.control=t.controller.control),t.swiperRef.update()}))},e.prototype.updateSwiper=function(e){var t=this;this._ngZone.runOutsideAngular((function(){var i,n;if(!e.config&&e&&t.swiperRef&&!t.swiperRef.destroyed){for(var s in e)if(!(c.indexOf(s)>=0)){var r=null!==(n=null===(i=e[s])||void 0===i?void 0:i.currentValue)&&void 0!==n?n:e[s];t.updateParameter(s,r)}e.allowSlideNext&&(t.swiperRef.allowSlideNext=t.allowSlideNext),e.allowSlidePrev&&(t.swiperRef.allowSlidePrev=t.allowSlidePrev),e.direction&&t.swiperRef.changeDirection(t.direction,!1),e.breakpoints&&(t.loop&&!t.loopedSlides&&t.calcLoopedSlides(),t.swiperRef.currentBreakpoint=null,t.swiperRef.setBreakpoint()),(e.thumbs||e.controller)&&t.updateInitSwiper(e),t.swiperRef.update()}}))},e.prototype.calcLoopedSlides=function(){if(this.loop){var e=this.slidesPerView;if(this.breakpoints){var t=a.default.prototype.getBreakpoint(this.breakpoints),i=t in this.breakpoints?this.breakpoints[t]:void 0;i&&i.slidesPerView&&(e=i.slidesPerView)}if("auto"===e)return this.loopedSlides=this.slides.length,this.slides.length;var n=this.loopedSlides||e;return(n+=this.loopAdditionalSlides)>this.slides.length&&(n=this.slides.length),this.loopedSlides=n,n}},e.prototype.updateParameter=function(e,t){if(this.swiperRef&&!this.swiperRef.destroyed){var i=e.replace(/^_/,"");Object.keys(this.swiperRef.modules).indexOf(i)>=0&&u(t,this.swiperRef.modules[i].params[i]),p(this.swiperRef.params[i])&&p(t)?u(this.swiperRef.params[i],t):this.swiperRef.params[i]=t}},e.prototype.setIndex=function(e,t,i){var n=this;this.isSwiperActive?e!==this.swiperRef.activeIndex&&this._ngZone.runOutsideAngular((function(){n.loop?n.swiperRef.slideToLoop(e,t,!i):n.swiperRef.slideTo(e,t,!i)})):this.initialSlide=e},e.prototype.ngOnDestroy=function(){var e=this;this._ngZone.runOutsideAngular((function(){var t;null===(t=e.swiperRef)||void 0===t||t.destroy()}))},e}();v.decorators=[{type:t.Component,args:[{selector:"swiper, [swiper]",template:'<ng-content select="[slot=container-start]"></ng-content>\n<ng-container *ngIf="navigation && showNavigation">\n <div class="swiper-button-prev" #prevElRef></div>\n <div class="swiper-button-next" #nextElRef></div>\n</ng-container>\n<div *ngIf="scrollbar && showScrollbar" class="swiper-scrollbar" #scrollbarElRef></div>\n<div *ngIf="pagination && showPagination" class="swiper-pagination" #paginationElRef></div>\n<div [ngClass]="wrapperClass">\n <ng-content select="[slot=wrapper-start]"></ng-content>\n <ng-template\n *ngTemplateOutlet="\n slidesTemplate;\n context: {\n loopSlides: prependSlides,\n key: \'prepend\'\n }\n "\n ></ng-template>\n <ng-template\n *ngTemplateOutlet="\n slidesTemplate;\n context: {\n loopSlides: activeSlides,\n key: \'\'\n }\n "\n ></ng-template>\n <ng-template\n *ngTemplateOutlet="\n slidesTemplate;\n context: {\n loopSlides: appendSlides,\n key: \'append\'\n }\n "\n ></ng-template>\n <ng-content select="[slot=wrapper-end]"></ng-content>\n</div>\n<ng-content select="[slot=container-end]"></ng-content>\n\n<ng-template #slidesTemplate let-loopSlides="loopSlides" let-slideKey="key">\n <div\n *ngFor="let slide of loopSlides | async"\n [ngClass]="\n (slide.class ? slide.class + \' \' : \'\') +\n slideClass +\n (slideKey !== \'\' ? \' \' + slideDuplicateClass : \'\')\n "\n [attr.data-swiper-slide-index]="slide.virtualIndex ? slide.virtualIndex : slide.slideIndex"\n [style]="style"\n [ngSwitch]="slide.zoom"\n >\n <div *ngSwitchCase="true" [ngClass]="zoomContainerClass">\n <ng-template\n [ngTemplateOutlet]="slide.template"\n [ngTemplateOutletContext]="{\n $implicit: slide.slideData\n }"\n ></ng-template>\n </div>\n <ng-container *ngSwitchDefault>\n <ng-template\n [ngTemplateOutlet]="slide.template"\n [ngTemplateOutletContext]="{\n $implicit: slide.slideData\n }"\n ></ng-template>\n </ng-container>\n </div>\n</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:["\n swiper {\n display: block;\n }\n "]}]}],v.ctorParameters=function(){return[{type:t.NgZone},{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},v.propDecorators={direction:[{type:t.Input}],touchEventsTarget:[{type:t.Input}],initialSlide:[{type:t.Input}],speed:[{type:t.Input}],cssMode:[{type:t.Input}],updateOnWindowResize:[{type:t.Input}],resizeObserver:[{type:t.Input}],nested:[{type:t.Input}],width:[{type:t.Input}],height:[{type:t.Input}],preventInteractionOnTransition:[{type:t.Input}],userAgent:[{type:t.Input}],url:[{type:t.Input}],edgeSwipeDetection:[{type:t.Input}],edgeSwipeThreshold:[{type:t.Input}],freeMode:[{type:t.Input}],freeModeMomentum:[{type:t.Input}],freeModeMomentumRatio:[{type:t.Input}],freeModeMomentumBounce:[{type:t.Input}],freeModeMomentumBounceRatio:[{type:t.Input}],freeModeMomentumVelocityRatio:[{type:t.Input}],freeModeSticky:[{type:t.Input}],freeModeMinimumVelocity:[{type:t.Input}],autoHeight:[{type:t.Input}],setWrapperSize:[{type:t.Input}],virtualTranslate:[{type:t.Input}],effect:[{type:t.Input}],breakpoints:[{type:t.Input}],spaceBetween:[{type:t.Input}],slidesPerView:[{type:t.Input}],slidesPerColumn:[{type:t.Input}],slidesPerColumnFill:[{type:t.Input}],slidesPerGroup:[{type:t.Input}],slidesPerGroupSkip:[{type:t.Input}],centeredSlides:[{type:t.Input}],centeredSlidesBounds:[{type:t.Input}],slidesOffsetBefore:[{type:t.Input}],slidesOffsetAfter:[{type:t.Input}],normalizeSlideIndex:[{type:t.Input}],centerInsufficientSlides:[{type:t.Input}],watchOverflow:[{type:t.Input}],roundLengths:[{type:t.Input}],touchRatio:[{type:t.Input}],touchAngle:[{type:t.Input}],simulateTouch:[{type:t.Input}],shortSwipes:[{type:t.Input}],longSwipes:[{type:t.Input}],longSwipesRatio:[{type:t.Input}],longSwipesMs:[{type:t.Input}],followFinger:[{type:t.Input}],allowTouchMove:[{type:t.Input}],threshold:[{type:t.Input}],touchMoveStopPropagation:[{type:t.Input}],touchStartPreventDefault:[{type:t.Input}],touchStartForcePreventDefault:[{type:t.Input}],touchReleaseOnEdges:[{type:t.Input}],uniqueNavElements:[{type:t.Input}],resistance:[{type:t.Input}],resistanceRatio:[{type:t.Input}],watchSlidesProgress:[{type:t.Input}],watchSlidesVisibility:[{type:t.Input}],grabCursor:[{type:t.Input}],preventClicks:[{type:t.Input}],preventClicksPropagation:[{type:t.Input}],slideToClickedSlide:[{type:t.Input}],preloadImages:[{type:t.Input}],updateOnImagesReady:[{type:t.Input}],loop:[{type:t.Input}],loopAdditionalSlides:[{type:t.Input}],loopedSlides:[{type:t.Input}],loopFillGroupWithBlank:[{type:t.Input}],loopPreventsSlide:[{type:t.Input}],allowSlidePrev:[{type:t.Input}],allowSlideNext:[{type:t.Input}],swipeHandler:[{type:t.Input}],noSwiping:[{type:t.Input}],noSwipingClass:[{type:t.Input}],noSwipingSelector:[{type:t.Input}],passiveListeners:[{type:t.Input}],containerModifierClass:[{type:t.Input}],slideClass:[{type:t.Input}],slideBlankClass:[{type:t.Input}],slideActiveClass:[{type:t.Input}],slideDuplicateActiveClass:[{type:t.Input}],slideVisibleClass:[{type:t.Input}],slideDuplicateClass:[{type:t.Input}],slideNextClass:[{type:t.Input}],slideDuplicateNextClass:[{type:t.Input}],slidePrevClass:[{type:t.Input}],slideDuplicatePrevClass:[{type:t.Input}],wrapperClass:[{type:t.Input}],runCallbacksOnInit:[{type:t.Input}],observeParents:[{type:t.Input}],observeSlideChildren:[{type:t.Input}],a11y:[{type:t.Input}],autoplay:[{type:t.Input}],controller:[{type:t.Input}],coverflowEffect:[{type:t.Input}],cubeEffect:[{type:t.Input}],fadeEffect:[{type:t.Input}],flipEffect:[{type:t.Input}],hashNavigation:[{type:t.Input}],history:[{type:t.Input}],keyboard:[{type:t.Input}],lazy:[{type:t.Input}],mousewheel:[{type:t.Input}],parallax:[{type:t.Input}],thumbs:[{type:t.Input}],zoom:[{type:t.Input}],navigation:[{type:t.Input}],pagination:[{type:t.Input}],scrollbar:[{type:t.Input}],virtual:[{type:t.Input}],index:[{type:t.Input}],config:[{type:t.Input}],s__beforeBreakpoint:[{type:t.Output,args:["_beforeBreakpoint"]}],s__containerClasses:[{type:t.Output,args:["_containerClasses"]}],s__slideClass:[{type:t.Output,args:["_slideClass"]}],s__swiper:[{type:t.Output,args:["_swiper"]}],s_activeIndexChange:[{type:t.Output,args:["activeIndexChange"]}],s_afterInit:[{type:t.Output,args:["afterInit"]}],s_autoplay:[{type:t.Output,args:["autoplay"]}],s_autoplayStart:[{type:t.Output,args:["autoplayStart"]}],s_autoplayStop:[{type:t.Output,args:["autoplayStop"]}],s_beforeDestroy:[{type:t.Output,args:["beforeDestroy"]}],s_beforeInit:[{type:t.Output,args:["beforeInit"]}],s_beforeLoopFix:[{type:t.Output,args:["beforeLoopFix"]}],s_beforeResize:[{type:t.Output,args:["beforeResize"]}],s_beforeSlideChangeStart:[{type:t.Output,args:["beforeSlideChangeStart"]}],s_beforeTransitionStart:[{type:t.Output,args:["beforeTransitionStart"]}],s_breakpoint:[{type:t.Output,args:["breakpoint"]}],s_changeDirection:[{type:t.Output,args:["changeDirection"]}],s_click:[{type:t.Output,args:["click"]}],s_doubleTap:[{type:t.Output,args:["doubleTap"]}],s_doubleClick:[{type:t.Output,args:["doubleClick"]}],s_destroy:[{type:t.Output,args:["destroy"]}],s_fromEdge:[{type:t.Output,args:["fromEdge"]}],s_hashChange:[{type:t.Output,args:["hashChange"]}],s_hashSet:[{type:t.Output,args:["hashSet"]}],s_imagesReady:[{type:t.Output,args:["imagesReady"]}],s_init:[{type:t.Output,args:["init"]}],s_keyPress:[{type:t.Output,args:["keyPress"]}],s_lazyImageLoad:[{type:t.Output,args:["lazyImageLoad"]}],s_lazyImageReady:[{type:t.Output,args:["lazyImageReady"]}],s_loopFix:[{type:t.Output,args:["loopFix"]}],s_momentumBounce:[{type:t.Output,args:["momentumBounce"]}],s_navigationHide:[{type:t.Output,args:["navigationHide"]}],s_navigationShow:[{type:t.Output,args:["navigationShow"]}],s_observerUpdate:[{type:t.Output,args:["observerUpdate"]}],s_orientationchange:[{type:t.Output,args:["orientationchange"]}],s_paginationHide:[{type:t.Output,args:["paginationHide"]}],s_paginationRender:[{type:t.Output,args:["paginationRender"]}],s_paginationShow:[{type:t.Output,args:["paginationShow"]}],s_paginationUpdate:[{type:t.Output,args:["paginationUpdate"]}],s_progress:[{type:t.Output,args:["progress"]}],s_reachBeginning:[{type:t.Output,args:["reachBeginning"]}],s_reachEnd:[{type:t.Output,args:["reachEnd"]}],s_realIndexChange:[{type:t.Output,args:["realIndexChange"]}],s_resize:[{type:t.Output,args:["resize"]}],s_scroll:[{type:t.Output,args:["scroll"]}],s_scrollbarDragEnd:[{type:t.Output,args:["scrollbarDragEnd"]}],s_scrollbarDragMove:[{type:t.Output,args:["scrollbarDragMove"]}],s_scrollbarDragStart:[{type:t.Output,args:["scrollbarDragStart"]}],s_setTransition:[{type:t.Output,args:["setTransition"]}],s_setTranslate:[{type:t.Output,args:["setTranslate"]}],s_slideChange:[{type:t.Output,args:["slideChange"]}],s_slideChangeTransitionEnd:[{type:t.Output,args:["slideChangeTransitionEnd"]}],s_slideChangeTransitionStart:[{type:t.Output,args:["slideChangeTransitionStart"]}],s_slideNextTransitionEnd:[{type:t.Output,args:["slideNextTransitionEnd"]}],s_slideNextTransitionStart:[{type:t.Output,args:["slideNextTransitionStart"]}],s_slidePrevTransitionEnd:[{type:t.Output,args:["slidePrevTransitionEnd"]}],s_slidePrevTransitionStart:[{type:t.Output,args:["slidePrevTransitionStart"]}],s_slideResetTransitionStart:[{type:t.Output,args:["slideResetTransitionStart"]}],s_slideResetTransitionEnd:[{type:t.Output,args:["slideResetTransitionEnd"]}],s_sliderMove:[{type:t.Output,args:["sliderMove"]}],s_sliderFirstMove:[{type:t.Output,args:["sliderFirstMove"]}],s_slidesLengthChange:[{type:t.Output,args:["slidesLengthChange"]}],s_slidesGridLengthChange:[{type:t.Output,args:["slidesGridLengthChange"]}],s_snapGridLengthChange:[{type:t.Output,args:["snapGridLengthChange"]}],s_snapIndexChange:[{type:t.Output,args:["snapIndexChange"]}],s_tap:[{type:t.Output,args:["tap"]}],s_toEdge:[{type:t.Output,args:["toEdge"]}],s_touchEnd:[{type:t.Output,args:["touchEnd"]}],s_touchMove:[{type:t.Output,args:["touchMove"]}],s_touchMoveOpposite:[{type:t.Output,args:["touchMoveOpposite"]}],s_touchStart:[{type:t.Output,args:["touchStart"]}],s_transitionEnd:[{type:t.Output,args:["transitionEnd"]}],s_transitionStart:[{type:t.Output,args:["transitionStart"]}],s_update:[{type:t.Output,args:["update"]}],s_zoomChange:[{type:t.Output,args:["zoomChange"]}],s_swiper:[{type:t.Output,args:["swiper"]}],indexChange:[{type:t.Output}],prevElRef:[{type:t.ViewChild,args:["prevElRef",{static:!1}]}],nextElRef:[{type:t.ViewChild,args:["nextElRef",{static:!1}]}],scrollbarElRef:[{type:t.ViewChild,args:["scrollbarElRef",{static:!1}]}],paginationElRef:[{type:t.ViewChild,args:["paginationElRef",{static:!1}]}],slidesEl:[{type:t.ContentChildren,args:[y,{descendants:!0,emitDistinctChangesOnly:!0}]}],containerClasses:[{type:t.HostBinding,args:["class"]}]};var _=function(){};_.decorators=[{type:t.NgModule,args:[{declarations:[v,y],exports:[v,y],imports:[i.CommonModule]}]}],e.SwiperComponent=v,e.SwiperModule=_,e.SwiperSlideDirective=y,Object.defineProperty(e,"__esModule",{value:!0})}));
16//# sourceMappingURL=swiper_angular.umd.min.js.map
\No newline at end of file