define(["./lib.owlcarousel.js","jquery"],function(t,n){return function(t){function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="/build/js/",n(n.s="./web/intranet/gallery/js/slider.js")}({"./web/intranet/gallery/js/slider.js":function(t,n,e){e(0),$=e(1);var i=function(t,n,e,i){this.sliderName=t,this.speed=n,this.pagination=Boolean(e),this.navigation_buttons=Boolean(i),this.$container=$("#carousel-"+this.sliderName).closest(".js-tile-body-container"),this.init()};i.prototype.init=function(){function t(t,i,o){n.owlCarousel({autoplay:!0,mouseDrag:e>1,touchDrag:e>1,autoplayTimeout:t,lazyLoad:!0,lazyLoadEager:2,items:1,loop:!0,autoplayHoverPause:!0,dots:i,nav:o,navText:['<ion-icon class="d-block" name="chevron-back"></ion-icon>','<ion-icon class="d-block" name="chevron-forward"></ion-icon>']})}var n=this.$container.find(".carousel-inner"),e=n.children().size();t(this.speed,this.pagination,this.navigation_buttons),$(".owl-dots").not(".disabled").parents(".owl-carousel").addClass("pagination-dots"),this.calcDisplaySize();var i=this;$("body").on("pages-started",function(){i.calcDisplaySize()}),n.closest(".js-tile").on("pages-tile-resize",function(e,o){setTimeout(function(){n.owlCarousel("destroy"),t(this.speed,this.pagination,this.navigation_buttons),i.calcDisplaySize()},600)})},i.prototype.calcDisplaySize=function(){var t=this.$container;if(t.length>0){var n=t.height();t.find(".carousel .item").height(n)}},t.exports=i},0:function(n,e){n.exports=t},1:function(t,e){t.exports=n}})});