UNPKG

angular-responsive-carousel

Version:

Carousel for Angular. A simple solution for horizontal scrolling images with lazy loading.

2 lines 45.3 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("angular-responsive-carousel",["exports","@angular/core","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["angular-responsive-carousel"]={},e.ng.core,e.ng.common)}(this,(function(e,t,i){"use strict";var n=function(){function e(e){var t=this;this.eventType=void 0,this.handlers={},this.startX=0,this.startY=0,this.lastTap=0,this.doubleTapMinTimeout=300,this.tapMinTimeout=200,this.touchstartTime=0,this.i=0,this.isMousedown=!1,this._touchListeners={touchstart:"handleTouchstart",touchmove:"handleTouchmove",touchend:"handleTouchend"},this._mouseListeners={mousedown:"handleMousedown",mousemove:"handleMousemove",mouseup:"handleMouseup",wheel:"handleWheel"},this._otherListeners={resize:"handleResize"},this.handleTouchstart=function(e){t.elementPosition=t.getElementPosition(),t.touchstartTime=(new Date).getTime(),void 0===t.eventType&&t.getTouchstartPosition(e),t.runHandler("touchstart",e)},this.handleTouchmove=function(e){var i=e.touches;switch(t.detectPan(i)&&t.runHandler("pan",e),t.detectPinch(e)&&t.runHandler("pinch",e),t.detectLinearSwipe(e)){case"horizontal-swipe":e.swipeType="horizontal-swipe",t.runHandler("horizontal-swipe",e);break;case"vertical-swipe":e.swipeType="vertical-swipe",t.runHandler("vertical-swipe",e)}(t.detectLinearSwipe(e)||"horizontal-swipe"===t.eventType||"vertical-swipe"===t.eventType)&&t.handleLinearSwipe(e)},this.handleTouchend=function(e){var i=e.touches;t.detectDoubleTap()&&t.runHandler("double-tap",e),t.detectTap(),t.runHandler("touchend",e),t.eventType="touchend",i&&0===i.length&&(t.eventType=void 0,t.i=0)},this.handleMousedown=function(e){t.isMousedown=!0,t.elementPosition=t.getElementPosition(),t.touchstartTime=(new Date).getTime(),void 0===t.eventType&&t.getMousedownPosition(e),t.runHandler("mousedown",e)},this.handleMousemove=function(e){if(t.isMousedown){switch(t.runHandler("pan",e),t.detectLinearSwipe(e)){case"horizontal-swipe":e.swipeType="horizontal-swipe",t.runHandler("horizontal-swipe",e);break;case"vertical-swipe":e.swipeType="vertical-swipe",t.runHandler("vertical-swipe",e)}(t.detectLinearSwipe(e)||"horizontal-swipe"===t.eventType||"vertical-swipe"===t.eventType)&&t.handleLinearSwipe(e)}},this.handleMouseup=function(e){t.detectTap(),t.isMousedown=!1,t.runHandler("mouseup",e),t.eventType=void 0,t.i=0},this.handleWheel=function(e){t.runHandler("wheel",e)},this.handleResize=function(e){t.runHandler("resize",e)},this.properties=e,this.element=this.properties.element,this.elementPosition=this.getElementPosition(),this.toggleEventListeners("addEventListener")}return Object.defineProperty(e.prototype,"touchListeners",{get:function(){return this.properties.touchListeners?this.properties.touchListeners:this._touchListeners},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mouseListeners",{get:function(){return this.properties.mouseListeners?this.properties.mouseListeners:this._mouseListeners},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"otherListeners",{get:function(){return this.properties.otherListeners?this.properties.otherListeners:this._otherListeners},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.toggleEventListeners("removeEventListener")},e.prototype.toggleEventListeners=function(e){var t;for(var i in t="mouse and touch"===this.properties.listeners?Object.assign(this.touchListeners,this.mouseListeners):this.detectTouchScreen()?this.touchListeners:this.mouseListeners,this.properties.resize&&(t=Object.assign(t,this.otherListeners)),t){var n=t[i];"resize"===i?("addEventListener"===e&&window.addEventListener(i,this[n],!1),"removeEventListener"===e&&window.removeEventListener(i,this[n],!1)):"mouseup"===i||"mousemove"===i?("addEventListener"===e&&document.addEventListener(i,this[n],{passive:!1}),"removeEventListener"===e&&document.removeEventListener(i,this[n],!1)):("addEventListener"===e&&this.element.addEventListener(i,this[n],!1),"removeEventListener"===e&&this.element.removeEventListener(i,this[n],!1))}},e.prototype.addEventListeners=function(e){var t=this._mouseListeners[e];window.addEventListener(e,this[t],!1)},e.prototype.removeEventListeners=function(e){var t=this._mouseListeners[e];window.removeEventListener(e,this[t],!1)},e.prototype.handleLinearSwipe=function(e){this.i++,this.i>3&&(this.eventType=this.getLinearSwipeType(e)),"horizontal-swipe"===this.eventType&&this.runHandler("horizontal-swipe",e),"vertical-swipe"===this.eventType&&this.runHandler("vertical-swipe",e)},e.prototype.runHandler=function(e,t){this.handlers[e]&&this.handlers[e](t)},e.prototype.detectPan=function(e){return 1===e.length&&!this.eventType||"pan"===this.eventType},e.prototype.detectDoubleTap=function(){var e=this;if(null==this.eventType){var t=(new Date).getTime(),i=t-this.lastTap;if(clearTimeout(this.doubleTapTimeout),i<this.doubleTapMinTimeout&&i>0)return!0;this.doubleTapTimeout=setTimeout((function(){clearTimeout(e.doubleTapTimeout)}),this.doubleTapMinTimeout),this.lastTap=t}},e.prototype.detectTap=function(){if(null==this.eventType){var e=(new Date).getTime()-this.touchstartTime;e>0&&(e<this.tapMinTimeout?this.runHandler("tap",event):this.runHandler("longtap",event))}},e.prototype.detectPinch=function(e){return 2===e.touches.length&&void 0===this.eventType||"pinch"===this.eventType},e.prototype.detectLinearSwipe=function(e){var t=e.touches;if(t){if(1===t.length&&!this.eventType||"horizontal-swipe"===this.eventType||"vertical-swipe"===this.eventType)return this.getLinearSwipeType(e)}else if(!this.eventType||"horizontal-swipe"===this.eventType||"vertical-swipe"===this.eventType)return this.getLinearSwipeType(e)},e.prototype.getLinearSwipeType=function(e){if("horizontal-swipe"!==this.eventType&&"vertical-swipe"!==this.eventType){var t=Math.abs(this.moveLeft(0,e)-this.startX);return 3*Math.abs(this.moveTop(0,e)-this.startY)>t?"vertical-swipe":"horizontal-swipe"}return this.eventType},e.prototype.getElementPosition=function(){return this.element.getBoundingClientRect()},e.prototype.getTouchstartPosition=function(e){this.startX=e.touches[0].clientX-this.elementPosition.left,this.startY=e.touches[0].clientY-this.elementPosition.top},e.prototype.getMousedownPosition=function(e){this.startX=e.clientX-this.elementPosition.left,this.startY=e.clientY-this.elementPosition.top},e.prototype.moveLeft=function(e,t){var i=t.touches;return i?i[e].clientX-this.elementPosition.left:t.clientX-this.elementPosition.left},e.prototype.moveTop=function(e,t){var i=t.touches;return i?i[e].clientY-this.elementPosition.top:t.clientY-this.elementPosition.top},e.prototype.detectTouchScreen=function(){var e=" -webkit- -moz- -o- -ms- ".split(" ");return"ontouchstart"in window||function(e){return window.matchMedia(e).matches}(["(",e.join("touch-enabled),("),"heartz",")"].join(""))},e.prototype.on=function(e,t){e&&(this.handlers[e]=t)},e}(),s=function(){function e(e,t,i,n,s){var o=this;this.properties=e,this.utils=t,this.cells=i,this.container=n,this.slide=s,this.isSlideLengthLimited=!1,this.isContentImages=!0,this.isLazyLoad=!0,this.isContainerLocked=!0,this.alignCells="left",this.initialContainerPosition=0,this.containerPullLimit=100,this.handleTouchstart=function(e){o.container.handleTouchstart(),o.slide.handleTouchstart(e)},this.handleHorizontalSwipe=function(e){o.container.handleHorizontalSwipe()},this.handleTouchend=function(e){o.properties.freeScroll?o.container.handleTouchend():(o.container.handleTouchend(!0),o.slide.handleTouchend(e))},this.isNextArrowDisabled=function(){return o.slide.isNextArrowDisabled()},this.isPrevArrowDisabled=function(){return o.slide.isPrevArrowDisabled()},this.init()}return Object.defineProperty(e.prototype,"cellLength",{get:function(){return this.cells.cellLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellLengthInLightDOMMode",{get:function(){if(this.images){var e=this.numberOfVisibleCells+2*this.overflowCellsLimit;return e>this.images.length&&(e=this.images.length),e}return this.cellLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastCellIndex",{get:function(){return this.images.length?this.images.length-1:this.cells.cellLength-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflowCellsLimit",{get:function(){return this.utils.overflowCellsLimit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellLimit",{get:function(){if(this.isLightDOM){var e=this.numberOfVisibleCells+2*this.overflowCellsLimit;return e<this.numberOfVisibleCells&&(e=this.numberOfVisibleCells),e}return this.properties.images.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLightDOM",{get:function(){return this.properties.lightDOM||this.properties.loop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"images",{get:function(){return this.properties.images},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"margin",{get:function(){return this.properties.margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minSwipeDistance",{get:function(){return this.properties.minSwipeDistance},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitionDuration",{get:function(){return this.properties.transitionDuration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitionTimingFunction",{get:function(){return this.properties.transitionTimingFunction},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullCellWidth",{get:function(){return this.properties.cellWidth+this.margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberOfVisibleCells",{get:function(){return this.utils.numberOfVisibleCells},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lapCounter",{get:function(){return Math.floor(this.slide.counter/this.cellLengthInLightDOMMode)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideCounter",{get:function(){return this.slide.counter},enumerable:!1,configurable:!0}),e.prototype.updateProperties=function(e){this.properties=e},e.prototype.init=function(){this.cellsElement=this.properties.cellsElement,this.visibleWidth=this.properties.visibleWidth||this.cellsElement.parentElement.clientWidth},e.prototype.destroy=function(){clearInterval(this.autoplayId)},e.prototype.lineUpCells=function(){this.cells.lineUp()},e.prototype.handleTransitionend=function(){this.slide.handleTransitionend()},e.prototype.getImage=function(e){return this.cells.getImage(e)},e.prototype.next=function(e){void 0===e&&(e=1),this.isNextArrowDisabled()||this.slide.next(e)},e.prototype.prev=function(e){void 0===e&&(e=1),this.slide.prev(e)},e.prototype.autoplay=function(){var e=this;this.autoplayId=setInterval((function(){e.next()}),this.properties.autoplayInterval)},e.prototype.stopAutoplay=function(){this.autoplayId&&clearInterval(this.autoplayId)},e}(),o=function(){function e(e,t,i){this.carouselProperties=e,this.utils=t,this.cells=i,this.newPositionIndex=0,this.isPositionCorrection=!1,this.initialPositionX=0,this.initialElementPositionX=0,this.isLocked=!0,this.pullLimit=100,this.startTime=0,this.startX=0,this.moveX=0,this.isSwipeInProgress=!1,this.init()}return Object.defineProperty(e.prototype,"visibleWidth",{get:function(){return this.utils.visibleWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflowCellsLimit",{get:function(){return this.utils.overflowCellsLimit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"images",{get:function(){return this.carouselProperties.images},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.carouselProperties.cellsElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"freeScroll",{get:function(){return this.carouselProperties.freeScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullCellWidth",{get:function(){return this.carouselProperties.cellWidth+this.carouselProperties.margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberOfVisibleCells",{get:function(){return this.utils.numberOfVisibleCells},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitionDuration",{get:function(){return this.carouselProperties.transitionDuration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitionTimingFunction",{get:function(){return this.carouselProperties.transitionTimingFunction},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellLength",{get:function(){return this.images?this.images.length:this.cells.cellLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellLengthInLightDOMMode",{get:function(){if(this.images){var e=this.numberOfVisibleCells+2*this.overflowCellsLimit;return e>this.images.length&&(e=this.images.length),e}return this.cellLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tooFewCells",{get:function(){return this.numberOfVisibleCells>this.cellLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.tooFewCells},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"margin",{get:function(){return this.carouselProperties.margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLightDOM",{get:function(){return this.carouselProperties.lightDOM||this.carouselProperties.loop},enumerable:!1,configurable:!0}),e.prototype.updateProperties=function(e){this.carouselProperties=e},e.prototype.init=function(){this.setWidth()},e.prototype.handleTouchstart=function(){this.startX=this.utils.getStartX(event),this.startTime=(new Date).getTime(),this.initialElementPositionX=this.getInitialElementPositionX()},e.prototype.handleHorizontalSwipe=function(){this.disabled||(this.isSwipeInProgress||(this.startX=this.utils.getStartX(event),this.startTime=(new Date).getTime(),this.initialElementPositionX=this.getInitialElementPositionX()),this.isSwipeInProgress=!0,this.moveX=this.utils.getMoveX(event),this.move())},e.prototype.handleTouchend=function(e){void 0===e&&(e=!1),this.disabled||(e?this.isSwipeInProgress=!1:(this.isSwipeInProgress=!1,this.finishMoving(),this.clearInitialValues()))},e.prototype.move=function(){var e=this.getMovePositionX(),t=this.detectPulled(),i=this.getDirection();t&&("left"===t.edge&&"right"===i||"right"===t.edge&&"left"===i)&&(e=this.slowdownOnPull(e)),this.transformPositionX(e,0),this.freeScroll&&(this.initialPositionX=e),t&&("left"===t.edge&&t.overflowX>this.pullLimit&&(this.initialPositionX=0),"right"===t.edge&&t.overflowX>this.pullLimit&&(this.initialPositionX=e))},e.prototype.getMovePositionX=function(){var e=this.getDistance();return this.initialElementPositionX-e},e.prototype.getDistance=function(){return this.startX-this.moveX},e.prototype.detectPulled=function(){var e=this.getCurrentPositionX();return e>0?{edge:"left",positionX:e,overflowX:Math.abs(e)}:e<this.getEndPosition()?{edge:"right",positionX:e,overflowX:Math.abs(e-this.getEndPosition())}:void 0},e.prototype.slowdownOnPull=function(e){var t=Math.abs(this.getDistance()),i=this.getEndPosition(),n=this.detectPulled();if(!n)return 0;var s=3+n.overflowX/50,o=0;"left"===n.edge&&(this.initialElementPositionX<0&&(t-=Math.abs(this.initialElementPositionX)),o=r=t/s,this.initialElementPositionX>0&&(o=this.initialElementPositionX+r),o>this.pullLimit&&(o=this.pullLimit));if("right"===n.edge){var r=i+(this.initialElementPositionX-t-i)/s,l=this.getWidth();o=r,this.initialElementPositionX<-(l-this.visibleWidth)&&(o=l-this.visibleWidth+this.initialElementPositionX+r),o<i-this.pullLimit&&(o=i-this.pullLimit)}return o},e.prototype.finishMoving=function(){var e=this.getMovePositionX(),t=0;this.freeScroll&&(t=this.getInertia()),t=this.getAlignedPositionOnPull(t),this.transformPositionX(t),this.setInitialPosition(e)},e.prototype.getInertia=function(){var e=this.getDistance()/((new Date).getTime()-this.startTime)*100;return this.initialPositionX-e},e.prototype.getAlignedPositionOnPull=function(e){var t=this.getDirection();if("left"===t){var i=this.getEndPosition();if(e<i)return i}return"right"===t&&e>0?0:e},e.prototype.getCurrentPositionX=function(){var e=this.element.parentElement.getBoundingClientRect();return this.element.getBoundingClientRect().left-e.left},e.prototype.getEndPosition=function(){if(this.isLightDOM)return-(this.cells.imageUtils.getImages().length*this.fullCellWidth-this.visibleWidth-this.margin);var e=this.getWidth();return this.element.parentElement.clientWidth-e},e.prototype.transformPositionX=function(e,t){void 0===t&&(t=this.transitionDuration),void 0!==e&&(this.element.style.transition="transform "+t+"ms "+this.transitionTimingFunction,this.element.style.transform="translateX("+e+"px)")},e.prototype.getWidth=function(){var e=this.cellLengthInLightDOMMode*this.fullCellWidth,t=this.cellLength*this.fullCellWidth;return t<e&&(e=t),this.isLightDOM?e:t},e.prototype.setWidth=function(){var e=this.getWidth();this.element.style.width=e+"px"},e.prototype.setInitialPosition=function(e){this.initialPositionX=e},e.prototype.getElementPosition=function(){return this.element.getBoundingClientRect()},e.prototype.getInitialElementPositionX=function(){var e=this.utils.getCarouselElementPosition().left;return this.getElementPosition().left-e},e.prototype.clearInitialValues=function(){this.startX=this.moveX=0},e.prototype.getDirection=function(){var e=Math.sign(this.startX-this.moveX);return-1===e?"right":1===e?"left":void 0},e}(),r=function(){function e(e){this.cellStack=[],this.element=e}return e.prototype.getImages=function(){return this.cellStack.filter(this.filter)},e.prototype.filter=function(e){return void 0!==e.img},e}(),l=function(){function e(e,t){this.carouselProperties=e,this.utils=t,this.counter=0,this.imageUtils=new r(this.element),this.init(e)}return Object.defineProperty(e.prototype,"images",{get:function(){return this.carouselProperties.images},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellLength",{get:function(){return this.cells?this.cells.length:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullCellWidth",{get:function(){return this.carouselProperties.cellWidth+this.carouselProperties.margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellLengthInLightDOMMode",{get:function(){if(this.images){var e=this.numberOfVisibleCells+2*this.overflowCellsLimit;return e>this.images.length&&(e=this.images.length),e}return this.cellLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberOfVisibleCells",{get:function(){return this.utils.numberOfVisibleCells},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflowCellsLimit",{get:function(){return this.utils.overflowCellsLimit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLightDOM",{get:function(){return this.carouselProperties.lightDOM||this.carouselProperties.loop},enumerable:!1,configurable:!0}),e.prototype.updateProperties=function(e){this.carouselProperties=e},e.prototype.lineUp=function(){var e=this.element?this.element.children:[];this.imageUtils.cellStack=[];for(var t=0;t<e.length;t++){var i=e[t],n=this.getCellPositionInContainer(t);i.style.transform="translateX("+n+"px)",i.style.width=this.carouselProperties.cellWidth+"px",this.getImage(t)&&this.imageUtils.cellStack.push({index:t,positionX:n,img:this.getImage(t).image})}},e.prototype.ifSequenceOfCellsIsChanged=function(){return"translateX(0px)"!==this.element.children[0].style.transform},e.prototype.getCellPositionInContainer=function(e){return this.getCellIndexInContainer(e)*this.fullCellWidth},e.prototype.getCellIndexInContainer=function(e){var t;if(!this.isLightDOM)return e;var i=this.cellLengthInLightDOMMode,n=this.counter-this.overflowCellsLimit;return n>i&&(n%=i),n<0?e:((t=e-n)<0&&(t=i+t),t)},e.prototype.getImage=function(e){if(this.images){var t=this.getImageIndex(e),i=this.images[t];return i&&!i.type&&(i.type="image"),{image:this.images[t],imageIndex:t}}},e.prototype.getImageIndex=function(e){var t,i=this.getCellIndexInContainer(e);this.counter>this.overflowCellsLimit?(t=i+(this.counter-this.overflowCellsLimit),this.images&&this.carouselProperties.loop&&(t%=this.images.length)):t=e;return t},e.prototype.setCounter=function(e){this.counter=e},e.prototype.init=function(e){this.element=this.carouselProperties.cellsElement,this.cells=this.element.children,this.visibleWidth=this.carouselProperties.visibleWidth||this.element.parentElement.clientWidth},e}(),h=function(){function e(e,t,i,n){this.carouselProperties=e,this.utils=t,this.cells=i,this.container=n,this.slideLength=0,this.isSlideInProgress=!1,this.counter=0,this._counter=0,this.distance=0,this.distanceAbs=0,this.isNotClickOnArrow=!1,this.initialPositionX=0,this.currentPositionX=0,this.isSlideLengthLimited=!1,this.init()}return Object.defineProperty(e.prototype,"fullCellWidth",{get:function(){return this.carouselProperties.cellWidth+this.carouselProperties.margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"margin",{get:function(){return this.carouselProperties.margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minSwipeDistance",{get:function(){return this.carouselProperties.minSwipeDistance},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberOfVisibleCells",{get:function(){return this.utils.numberOfVisibleCells},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleCellsOverflowContainer",{get:function(){return this.utils.visibleCellsOverflowContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fixedContainerPosition",{get:function(){return-this.overflowCellsLimit*this.fullCellWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflowCellsLimit",{get:function(){return this.utils.overflowCellsLimit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"images",{get:function(){return this.carouselProperties.images},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellLength",{get:function(){return this.isLightDOM?this.cells.cellLengthInLightDOMMode:this.images?this.images.length:this.cells.cellLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLightDOM",{get:function(){return this.carouselProperties.lightDOM||this.carouselProperties.loop},enumerable:!1,configurable:!0}),e.prototype.updateProperties=function(e){this.carouselProperties=e,this.setVisibleWidth()},e.prototype.init=function(){this.visibleWidth=this.carouselProperties.visibleWidth||this.carouselProperties.hostElement.clientWidth},e.prototype.handleTouchstart=function(){this.isNotClickOnArrow=!0,this.isSlideLengthLimited=!1,this.isSlideInProgress||(this.initialPositionX=this.container.getCurrentPositionX())},e.prototype.handleTouchend=function(){this.isNotClickOnArrow&&(this.currentPositionX=this.container.getCurrentPositionX(),this.distanceAbs=Math.abs(this.initialPositionX-this.currentPositionX),this.distance=this.initialPositionX-this.currentPositionX,this.direction=this.getDirection(),this.isNotClickOnArrow=!1,this.handleSlide())},e.prototype.handleTransitionend=function(){this.setCounter(),this.isSlideInProgress=!1,this.isLightDOM&&this.alignContainerFast()},e.prototype.handleSlide=function(e){var t;if(void 0===e&&(e=void 0),!(e&&this.isSlideInProgress||!this.direction)){if(e?(this.slideLength=this.limitSlideLength(e),this.isSlideInProgress||(this.initialPositionX=this.container.getCurrentPositionX())):this.slideLength=this.getSlideLength(this.distanceAbs),this._counter=this.getPreliminaryCounter(),"left"===this.direction){e||(this.slideLength=this.limitSlideLength(this.getSlideLength(this.distanceAbs))),this._counter=this.getPreliminaryCounter();var i=this.isSlidesEnd(this._counter);t=this.getPositionByIndex(this._counter),i&&(this._counter=this.counter,t=this.getPositionByIndex(this.counter),this.slideLength=0)}"right"===this.direction&&(e||(this.slideLength=this.getSlideLength(this.distanceAbs)),this._counter<0&&(this._counter=this.counter,this.slideLength=this.counter),t=this.getPositionByIndex(this.counter-this.slideLength)),this.container.getCurrentPositionX()!==t&&(this.isSlideInProgress=!0,this.container.transformPositionX(t))}},e.prototype.next=function(e){void 0===e&&(e=1),this.direction="left",this.handleSlide(e)},e.prototype.prev=function(e){void 0===e&&(e=1),this.direction="right",this.handleSlide(e)},e.prototype.select=function(e){if(!(e>this.cellLength-1)){if(e>this.counter){var t=e-this.counter;this.next(t)}if(e<this.counter){t=this.counter-e;this.prev(t)}}},e.prototype.getPreliminaryCounter=function(){return"left"===this.direction?this.counter+this.slideLength:"right"===this.direction?this.counter-this.slideLength:0},e.prototype.limitSlideLength=function(e){if(e>1)for(var t=0;t<e;t++){var i=this.counter+(e-t);if(!this.isSlidesEnd(i)){e-=t,this.isSlideLengthLimited=t>0;break}}return e},e.prototype.getPositionCorrection=function(e){var t=0,i=this.isLastSlide(e);if(this.carouselProperties.loop||"right"===this.direction)return 0;if(this.isSlideLengthLimited||i){var n=this.cells.cellLengthInLightDOMMode*this.fullCellWidth;this.visibleWidth<n&&(t=-(this.numberOfVisibleCells*this.fullCellWidth-this.visibleWidth-this.margin)),t>=-this.margin&&(t=0)}return t},e.prototype.getSlideLength=function(e){this.isLastSlide(this.counter)&&"right"===this.direction&&(e+=this.visibleWidth%this.fullCellWidth);var t=Math.floor(e/this.fullCellWidth);return e%this.fullCellWidth>=this.minSwipeDistance&&t++,t},e.prototype.getDistanceAbs=function(){return Math.abs(this.initialPositionX-this.currentPositionX)},e.prototype.getDirection=function(){var e=Math.sign(this.initialPositionX-this.currentPositionX);return-1===e?"right":1===e?"left":void 0},e.prototype.isSlidesEnd=function(e){var t=this.visibleCellsOverflowContainer?1:0,i=this.images?this.images.length:this.cells.cellLength;return!this.carouselProperties.loop&&i-e+t<this.numberOfVisibleCells},e.prototype.isLastSlide=function(e){return this.isSlidesEnd(e+1)},e.prototype.setCounter=function(){"left"===this.direction&&(this.counter=this.counter+this.slideLength),"right"===this.direction&&(this.counter=this.counter-this.slideLength)},e.prototype.getPositionByIndex=function(e){var t,i=this.getPositionCorrection(this.counter+this.slideLength);(0!==i&&(i+=this.fullCellWidth),"right"===this.direction&&(i=0),this.isLightDOM&&this.isLightDOMMode(e)||this.isLightDOM&&this.ifLeftDOMModeAtEnd(e))?t=this.getPositionWithoutCorrection(this.initialPositionX)-((e-this.counter)*this.fullCellWidth-i):t=-(e*this.fullCellWidth-i);return t=this.provideSafePosition(t)},e.prototype.provideSafePosition=function(e){var t=this.container.getEndPosition();return"left"===this.direction&&e>0&&(e=0),"right"===this.direction&&e<t&&(e=t),e},e.prototype.getPositionWithoutCorrection=function(e){var t=Math.round(e)%this.fullCellWidth;return 0!==t?e-(this.fullCellWidth+t):e},e.prototype.isNextArrowDisabled=function(){return this.isLastSlide(this.counter)||!this.visibleCellsOverflowContainer&&this.cellLength<=this.numberOfVisibleCells||this.visibleCellsOverflowContainer&&this.cellLength<this.numberOfVisibleCells},e.prototype.isPrevArrowDisabled=function(){return 0===this.counter},e.prototype.alignContainerFast=function(){if(this.isLightDOMMode(this.counter)){var e=this.fixedContainerPosition;this.container.transformPositionX(e,0),this.cells.setCounter(this.counter),this.cells.lineUp()}else if(this.ifLeftDOMModeToBeginning(this.counter)){if(this.cells.ifSequenceOfCellsIsChanged()){e=-this.counter*this.fullCellWidth;this.container.transformPositionX(e,0),this.cells.setCounter(this.counter),this.cells.lineUp()}}else if(this.ifLeftDOMModeAtEnd(this.counter)){var t=this.container.getCurrentPositionX(),i=this.container.getWidth();if(this.visibleWidth,this.isLastSlide(this.counter)&&i+t>=this.visibleWidth)return;var n=this.getPositionCorrection(this.counter);0!==n&&(n+=this.fullCellWidth),"right"===this.direction&&(n=0);e=this.fixedContainerPosition+n;this.container.transformPositionX(e,0),this.cells.setCounter(this.counter),this.cells.lineUp()}},e.prototype.isLightDOMMode=function(e){var t,i=this.images.length-this.overflowCellsLimit-this.numberOfVisibleCells;return!!this.isLightDOM&&(e>this.overflowCellsLimit&&"left"===this.direction&&e<=i&&(t=!0),e>=this.overflowCellsLimit&&"right"===this.direction&&e<i&&(t=!0),this.counter>this.overflowCellsLimit&&"left"===this.direction&&this.counter<=i&&(t=!0),this.counter>=this.overflowCellsLimit&&"right"===this.direction&&this.counter<i&&(t=!0),t)},e.prototype.ifLeftDOMModeAtEnd=function(e){var t,i=this.images.length-this.overflowCellsLimit-this.numberOfVisibleCells;return e>=i&&(t=!0),this.counter>=i&&(t=!0),t},e.prototype.ifLeftDOMModeToBeginning=function(e){var t;return e<=this.overflowCellsLimit&&(t=!0),this.counter<=this.overflowCellsLimit&&(t=!0),t},e.prototype.setVisibleWidth=function(){this.visibleWidth=this.carouselProperties.visibleWidth||this.carouselProperties.hostElement.clientWidth},e}(),a=function(){function e(e){this.carouselProperties=e}return Object.defineProperty(e.prototype,"images",{get:function(){return this.carouselProperties.images},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"margin",{get:function(){return this.carouselProperties.margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflowCellsLimit",{get:function(){if(this.images&&this.isImagesLessCellLimit){var e=Math.floor((this.images.length-this.numberOfVisibleCells)/2);return e<0&&(e=0),e}return this.carouselProperties.overflowCellsLimit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isImagesLessCellLimit",{get:function(){return 2*this.carouselProperties.overflowCellsLimit+this.numberOfVisibleCells>this.images.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberOfVisibleCells",{get:function(){return Math.ceil(this.visibleWidth/this.fullCellWidth)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleCellsOverflowContainer",{get:function(){return this.numberOfVisibleCells*this.fullCellWidth-this.margin>this.visibleWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullCellWidth",{get:function(){return this.carouselProperties.cellWidth+this.carouselProperties.margin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleWidth",{get:function(){return this.carouselProperties.visibleWidth||this.carouselProperties.cellsElement.parentElement.clientWidth},enumerable:!1,configurable:!0}),e.prototype.updateProperties=function(e){this.carouselProperties=e},e.prototype.getStartX=function(e){var t=e.touches,i=this.getCarouselElementPosition().left;return t?t[0].clientX-i:e.clientX-i},e.prototype.getMoveX=function(e){var t=e.touches,i=this.getCarouselElementPosition().left;return t?t[0].clientX-i:e.clientX-i},e.prototype.getCarouselElementPosition=function(){return this.carouselProperties.hostElement.getBoundingClientRect()},e}(),u=function(){function e(e,i){var n=this;this.elementRef=e,this.ref=i,this.minTimeout=30,this.isVideoPlaying=!1,this._isCounter=!1,this._cellWidth=200,this._loop=!1,this._lightDOM=!1,this.isMoving=!1,this.isNgContent=!1,this.events=new t.EventEmitter,this.height=200,this.autoplay=!1,this.autoplayInterval=5e3,this.pauseOnHover=!0,this.dots=!1,this.margin=10,this.objectFit="cover",this.minSwipeDistance=10,this.transitionDuration=200,this.transitionTimingFunction="ease-out",this.counterSeparator=" / ",this.overflowCellsLimit=3,this.listeners="mouse and touch",this.cellsToScroll=1,this.freeScroll=!1,this.arrows=!0,this.arrowsOutside=!1,this.arrowsTheme="light",this.hostClassCarousel=!0,this.handleTouchstart=function(e){n.touches.addEventListeners("mousemove","handleMousemove"),n.carousel.handleTouchstart(e),n.isMoving=!0},this.handleHorizontalSwipe=function(e){e.preventDefault(),n.carousel.handleHorizontalSwipe(e)},this.handleTouchend=function(e){e.touches;n.carousel.handleTouchend(e),n.touches.removeEventListeners("mousemove","handleMousemove"),n.isMoving=!1},this.handleTap=function(e){var t=Array.prototype.slice.call(n.cellsElement.children),i=e.srcElement.closest(".carousel-cell");t.indexOf(i),t.indexOf(i);n.images}}return Object.defineProperty(e.prototype,"isContainerLocked",{get:function(){if(this.carousel)return this.carousel.isContainerLocked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideCounter",{get:function(){if(this.carousel)return this.carousel.slideCounter},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lapCounter",{get:function(){if(this.carousel)return this.carousel.lapCounter},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLandscape",{get:function(){return window.innerWidth>window.innerHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSafari",{get:function(){var e=navigator.userAgent.toLowerCase();if(-1!==e.indexOf("safari"))return!(e.indexOf("chrome")>-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"counter",{get:function(){return(this.loop?this.slideCounter%this.cellLength:this.slideCounter)+1+this.counterSeparator+this.cellLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellsElement",{get:function(){return this.elementRef.nativeElement.querySelector(".carousel-cells")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isArrows",{get:function(){return this.arrows&&!this.freeScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCounter",{get:function(){return this._isCounter&&this.cellLength>1},set:function(e){e&&(this._isCounter=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeDotIndex",{get:function(){return this.slideCounter%this.cellLength},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellLimit",{get:function(){if(this.carousel)return this.carousel.cellLimit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"carouselWidth",{get:function(){return this.elementRef.nativeElement.clientWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"images",{get:function(){return this._images},set:function(e){this._images=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellWidth",{set:function(e){e&&(this._cellWidth=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loop",{get:function(){return!!this.images&&this._loop},set:function(e){e&&(this._loop=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lightDOM",{get:function(){return!!this.images&&this._lightDOM},set:function(e){e&&(this._lightDOM=e)},enumerable:!1,configurable:!0}),e.prototype.onWindowResize=function(e){this.utils.visibleWidth!==this.savedCarouselWidth&&this.resize()},e.prototype.onMousemove=function(e){this.autoplay&&this.pauseOnHover&&this.carousel.stopAutoplay()},e.prototype.onMouseleave=function(e){this.autoplay&&this.pauseOnHover&&this.carousel.autoplay()},e.prototype.ngOnInit=function(){this.isNgContent=this.cellsElement.children.length>0,this.touches=new n({element:this.cellsElement,listeners:this.listeners,mouseListeners:{mousedown:"handleMousedown",mouseup:"handleMouseup"}}),this.touches.on("touchstart",this.handleTouchstart),this.touches.on("horizontal-swipe",this.handleHorizontalSwipe),this.touches.on("touchend",this.handleTouchend),this.touches.on("mousedown",this.handleTouchstart),this.touches.on("mouseup",this.handleTouchend),this.touches.on("tap",this.handleTap),this.setDimensions()},e.prototype.ngAfterViewInit=function(){this.initCarousel(),this.cellLength=this.getCellLength(),this.dotsArr=Array(this.cellLength).fill(1),this.ref.detectChanges(),this.carousel.lineUpCells(),this.savedCarouselWidth=this.carouselWidth,this.detectDomChanges()},e.prototype.ngOnChanges=function(e){(e.width||e.height||e.images)&&(this.setDimensions(),this.initCarousel(),this.carousel.lineUpCells(),this.ref.detectChanges())},e.prototype.ngOnDestroy=function(){this.touches.destroy()},e.prototype.initCarousel=function(){this.carouselProperties={id:this.id,cellsElement:this.elementRef.nativeElement.querySelector(".carousel-cells"),hostElement:this.elementRef.nativeElement,images:this.images,cellWidth:this.getCellWidth(),loop:this.loop,autoplayInterval:this.autoplayInterval,overflowCellsLimit:this.overflowCellsLimit,visibleWidth:this.width,margin:this.margin,minSwipeDistance:this.minSwipeDistance,transitionDuration:this.transitionDuration,transitionTimingFunction:this.transitionTimingFunction,videoProperties:this.videoProperties,eventHandler:this.events,freeScroll:this.freeScroll,lightDOM:this.lightDOM},this.utils=new a(this.carouselProperties),this.cells=new l(this.carouselProperties,this.utils),this.container=new o(this.carouselProperties,this.utils,this.cells),this.slide=new h(this.carouselProperties,this.utils,this.cells,this.container),this.carousel=new s(this.carouselProperties,this.utils,this.cells,this.container,this.slide),this.autoplay&&this.carousel.autoplay()},e.prototype.resize=function(){this.landscapeMode=this.isLandscape,this.savedCarouselWidth=this.carouselWidth,this.carouselProperties.cellWidth=this.getCellWidth(),this.cells.updateProperties(this.carouselProperties),this.carousel.updateProperties(this.carouselProperties),this.container.updateProperties(this.carouselProperties),this.slide.updateProperties(this.carouselProperties),this.utils.updateProperties(this.carouselProperties),this.carousel.lineUpCells(),this.slide.select(0),this.ref.detectChanges()},e.prototype.detectDomChanges=function(){var e=this;new MutationObserver((function(t){e.onDomChanges()})).observe(this.cellsElement,{attributes:!0,childList:!0,characterData:!0})},e.prototype.onDomChanges=function(){this.cellLength=this.getCellLength(),this.carousel.lineUpCells(),this.ref.detectChanges()},e.prototype.setDimensions=function(){this.hostStyleHeight=this.height+"px",this.hostStyleWidth=this.width+"px"},e.prototype.getImage=function(e){return this.carousel.getImage(e)},e.prototype.handleTransitionendCellContainer=function(e){"carousel-cells"===e.target.className&&this.carousel.handleTransitionend()},e.prototype.getCellWidth=function(){var e=this.carouselWidth;return this.cellsToShow?(e-(this.cellsToShow>1?this.margin:0)*(this.cellsToShow-1))/this.cellsToShow:"100%"===this._cellWidth?e:this._cellWidth},e.prototype.next=function(){this.carousel.next(this.cellsToScroll),this.carousel.stopAutoplay()},e.prototype.prev=function(){this.carousel.prev(this.cellsToScroll),this.carousel.stopAutoplay()},e.prototype.isNextArrowDisabled=function(){if(this.carousel)return this.carousel.isNextArrowDisabled()},e.prototype.isPrevArrowDisabled=function(){if(this.carousel)return this.carousel.isPrevArrowDisabled()},e.prototype.getCellLength=function(){return this.images?this.images.length:this.cellsElement.children.length},e}();u.decorators=[{type:t.Component,args:[{selector:"carousel, [carousel]",template:'<div class="carousel-counter" *ngIf="isCounter">{{counter}}</div>\r\n\r\n<div class="carousel-container" [class.carousel-moving]="isMoving">\r\n\t<div class="carousel-cells" #cells (transitionend)="handleTransitionendCellContainer($event)">\r\n\t\t<ng-content></ng-content>\r\n\r\n\t\t<ng-template ngFor let-image [ngForOf]="images" let-i="index">\r\n\t\t\t<div class="carousel-cell" \r\n\t\t\t\t[style.width]="getCellWidth()+\'px\'"\r\n\t\t\t\t[style.border-radius]="borderRadius+\'px\'"\r\n\t\t\t\t*ngIf="i < cellLimit">\r\n\t\t\t\t\x3c!-- Image --\x3e\r\n\t\t\t\t<img \r\n\t\t\t\t\t*ngIf="getImage(i) && getImage(i)[\'image\']" \r\n\t\t\t\t\t[src]="getImage(i)[\'image\'][\'path\']"\r\n\t\t\t\t\t[style.object-fit]="objectFit"\r\n\t\t\t\t\tdraggable="false" />\r\n\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t</div>\r\n\r\n\t<div class="carousel-dots" *ngIf="dots">\r\n\t\t<div class="carousel-dot" [class.carousel-dot-active]="i === activeDotIndex" *ngFor="let dot of dotsArr; index as i"></div>\r\n\t</div>\r\n</div>\r\n\r\n<div class="carousel-arrows" \r\n\t[class.carousel-arrows-outside]="arrowsOutside" \r\n\t[class.carousel-dark-arrows]="arrowsTheme === \'dark\'"\r\n\t*ngIf="isArrows">\r\n\t\r\n\t<div class="carousel-arrow carousel-arrow-prev" [class.carousel-arrow-disabled]="isPrevArrowDisabled()" (click)="prev()"></div>\r\n\t<div class="carousel-arrow carousel-arrow-next" [class.carousel-arrow-disabled]="isNextArrowDisabled()" (click)="next()"></div>\r\n</div>',styles:[":host{position:relative;display:block;top:0;left:0;width:100%;height:100%;-webkit-user-select:none;user-select:none;z-index:10000;transform-origin:top left;box-sizing:border-box}:host .carousel-container{overflow:hidden;width:100%;height:100%;cursor:grab}:host .carousel-container.carousel-moving{cursor:grabbing}:host .carousel-counter{text-align:right;position:absolute;z-index:30;transition:opacity .2s;top:8px;right:24px;border-radius:13px;background-color:rgba(23,37,68,.3);font-size:11px;color:#fff;padding:5px 7px;line-height:normal}:host ::ng-deep .carousel-cells{transition:transform .2s;width:100%;height:100%;display:block;will-change:transform}:host ::ng-deep .carousel-cells .carousel-cell.swiper-prev-image{transform:translate3d(-100%,0,0)}:host ::ng-deep .carousel-cells .carousel-cell.swiper-next-image{transform:translate3d(100%,0,0)}:host ::ng-deep .carousel-cells .carousel-cell{width:100%;height:100%;position:absolute;overflow:hidden}:host ::ng-deep .carousel-cells .carousel-cell img,:host ::ng-deep .carousel-cells .carousel-cell video{width:100%;height:100%;position:relative;object-fit:contain}:host ::ng-deep .carousel-cells .carousel-cell img.swiper-hide{display:none}:host ::ng-deep .carousel-cells .carousel-cell .carousel-play{position:absolute;top:0;left:0;bottom:0;right:0;z-index:1}:host .carousel-arrow{width:40px;height:40px;background-color:#fff;background-repeat:no-repeat;background-size:31px;background-position:50%;border-radius:100px;position:absolute;top:50%;margin-top:-20px;z-index:10;cursor:pointer;box-shadow:0 0 5px rgba(0,0,0,.15)}:host .carousel-arrow-prev{left:10px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij48cGF0aCBkPSJNMTUuNDEgMTYuNTlMMTAuODMgMTJsNC41OC00LjU5TDE0IDZsLTYgNiA2IDYgMS40MS0xLjQxeiIvPjxwYXRoIGQ9Ik0wIDBoMjR2MjRIMFYweiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==)}:host .carousel-arrow-next{right:10px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij48cGF0aCBkPSJNOC41OSAxNi41OUwxMy4xNyAxMiA4LjU5IDcuNDEgMTAgNmw2IDYtNiA2LTEuNDEtMS40MXoiLz48cGF0aCBkPSJNMCAwaDI0djI0SDBWMHoiIGZpbGw9Im5vbmUiLz48L3N2Zz4=)}:host .carousel-arrows-outside .carousel-arrow-prev{left:-60px}:host .carousel-arrows-outside .carousel-arrow-next{right:-60px}:host .carousel-dark-arrows .carousel-arrow{filter:invert(1)}:host .carousel-arrow-disabled{cursor:default;opacity:.5}:host .carousel-dots{position:absolute;left:0;right:0;bottom:0;z-index:10;text-align:center}:host .carousel-dots .carousel-dot{display:inline-block;border:2px solid #fff;border-radius:100px;margin:4px;width:8px;height:8px}:host .carousel-dots .carousel-dot-active{background-color:#fff}"]}]}],u.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},u.propDecorators={events:[{type:t.Output}],id:[{type:t.Input}],height:[{type:t.Input}],width:[{type:t.Input}],autoplay:[{type:t.Input}],autoplayInterval:[{type:t.Input}],pauseOnHover:[{type:t.Input}],dots:[{type:t.Input}],borderRadius:[{type:t.Input}],margin:[{type:t.Input}],objectFit:[{type:t.Input}],minSwipeDistance:[{type:t.Input}],transitionDuration:[{type:t.Input}],transitionTimingFunction:[{type:t.Input}],videoProperties:[{type:t.Input}],counterSeparator:[{type:t.Input}],overflowCellsLimit:[{type:t.Input}],listeners:[{type:t.Input}],cellsToShow:[{type:t.Input}],cellsToScroll:[{type:t.Input}],freeScroll:[{type:t.Input}],arrows:[{type:t.Input}],arrowsOutside:[{type:t.Input}],arrowsTheme:[{type:t.Input}],images:[{type:t.Input}],cellWidth:[{type:t.Input,args:["cellWidth"]}],isCounter:[{type:t.Input,args:["counter"]}],loop:[{type:t.Input,args:["loop"]}],lightDOM:[{type:t.Input,args:["lightDOM"]}],hostClassCarousel:[{type:t.HostBinding,args:["class.carousel"]}],hostStyleHeight:[{type:t.HostBinding,args:["style.height"]}],hostStyleWidth:[{type:t.HostBinding,args:["style.width"]}],onWindowResize:[{type:t.HostListener,args:["window:resize",["$event"]]}],onMousemove:[{type:t.HostListener,args:["mousemove",["$event"]]}],onMouseleave:[{type:t.HostListener,args:["mouseleave",["$event"]]}]};var c=function(){};c.decorators=[{type:t.NgModule,args:[{declarations:[u],imports:[i.CommonModule],exports:[u],providers:[],bootstrap:[],entryComponents:[u]}]}],e.CarouselComponent=u,e.IvyCarouselModule=c,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=angular-responsive-carousel.umd.min.js.map