(window["webpackJsonp_name_"] = window["webpackJsonp_name_"] || []).push([[31,73],{ /***/ 192: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); __webpack_require__(427); __webpack_require__(475); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var $ = __webpack_require__(434); window.$ = $; var OwlManager = function () { _createClass(OwlManager, null, [{ key: 'default', get: function get() { return { id: null, settings: {}, navTemplate: { prev: '', next: '' } }; } }]); function OwlManager(params) { _classCallCheck(this, OwlManager); this._params = Object.assign({}, OwlManager.default, params); this._init(); } _createClass(OwlManager, [{ key: '_init', value: function _init() { var _this = this; if (!this.id) { return false; } var carousel = Array.from(document.querySelectorAll('.' + this.id + ' .project-carousel__wrap')); carousel.forEach(function (elem) { var prev = _this.navTemplate.prev; var next = _this.navTemplate.next; var id = _this.id; var settings = // elem.classList.contains( 'project-carousel__post-gallery' ) ? { // arrows_position : 'on_slides', // pagination_position: 'on_slides', // prev : false, // next : false, // content_type : 'icon', // enable_prev_next : true, // enable_pagination : true, // gap : 0 // } : elem.classList.contains( 'project-carousel_image' ) ? { // arrows_position : 'on_slides', // pagination_position: 'on_slides', // prev : false, // next : false, // content_type : 'icon', // enable_prev_next : this.settings.enable_prev_next, // enable_pagination : false, // gap : 0, // thumbs: this.settings.thumbs, // // Class that will be used on the thumbnail container // thumbContainerClass: 'owl-thumbs', // // Class that will be used on the thumbnail item's // thumbItemClass: 'owl-thumb-item', // startPosition: this.settings.startPosition || 0, // partial: 0 // } : _this.settings || {}; var isLoop = function isLoop() { return window.innerWidth >= 992 ? settings.quantity > settings.per_view_md.number : window.innerWidth >= 768 ? settings.quantity > settings.per_view_sm.number : settings.quantity > settings.per_view_xs.number; }; (function ($) { var owl = $(elem).owlCarousel({ // main autoplay: settings.autoplay ? settings.autoplay : false, autoplaySpeed: settings.slide_speed ? settings.slide_speed / 2 : 250, autoplayTimeout: settings.slide_speed ? settings.slide_speed : 500, smartSpeed: settings.transition_speed ? settings.transition_speed : 250, loop: settings.loop ? isLoop() : false, stagePadding: settings.partial ? settings.partial : 0, nav: settings.enable_prev_next ? settings.enable_prev_next : false, dots: settings.enable_pagination ? settings.enable_pagination : false, // static margin: settings.gap || settings.gap === 0 ? settings.gap : 40, navText: [settings.prev || prev, settings.next || next], autoplayHoverPause: true, thumbs: settings.thumbs || false, thumbContainerClass: settings.thumbContainerClass || '', // Class that will be used on the thumbnail item's thumbItemClass: settings.thumbItemClass || '', startPosition: settings.startPosition || 0, animateOut: settings.animation_direction === "vertical" ? 'slideOutUp' : '', animateIn: settings.animation_direction === "vertical" ? 'slideInUp' : '', //animateOut: 'slideOutUp', //animateIn: 'slideInUp', items: settings.per_view_md ? settings.per_view_md.number : 1, responsive: { 768: { items: settings.per_view_xs ? settings.per_view_xs.number : 1 }, 992: { items: settings.per_view_sm ? settings.per_view_sm.number : 1 } }, onInitialized: function onInitialized(event) { 'use strict'; var target = event.target; var dots = target.querySelector('.owl-dots'); var next = target.querySelector('.owl-next'); var nav = target.querySelector('.owl-nav:not(.disabled)'); var owlOuter = target.querySelector('.owl-stage-outer'); var thumbs = target.querySelector('.owl-thumbs'); if (thumbs) { target.parentNode.appendChild(thumbs); } // pagination pos var pagPos = settings.pagination_position ? settings.pagination_position : 'default'; var preset = settings.pagination_preset ? settings.pagination_preset : 'round_shadow'; if (dots) { dots.classList.add(preset); } // arrows position var arrowPos = settings.arrows_position ? settings.arrows_position : 'default'; switch (arrowPos) { case 'on_slides': { if (nav) { nav.classList.add('on-slides'); owlOuter.appendChild(nav); } break; } case 'out_sides': { if (nav) { var _target = event.currentTarget; var parent = _target.parentNode; parent && parent.appendChild(nav); break; } } } switch (pagPos) { case 'on_slides': { if (dots) { dots.classList.add('on-slides'); owlOuter.appendChild(dots); } } break; } if (next && dots && nav && arrowPos === 'near_pagination' && pagPos === 'under_slides') { nav.insertBefore(dots, next); } if (nav && settings.content_type === 'icon') { nav.classList.add(settings.font || 'font-awesome'); } }, onResized: function onResized(event) { owl.trigger('refresh.owl.carousel'); } }); })(jQuery); }); } }, { key: 'id', get: function get() { return this._params.id; } }, { key: 'settings', get: function get() { return this._params.settings; } }, { key: 'navTemplate', get: function get() { return this._params.navTemplate; } }]); return OwlManager; }(); /*! owl.carousel2.thumbs - v0.1.8 | (c) 2016 @gijsroge | MIT license | https://github.com/gijsroge/OwlCarousel2-Thumbs */ /** * Thumbs Plugin * @version 2.0.0 * @author Gijs Rogé * @license The MIT License (MIT) */ exports.default = OwlManager; (function ($, window, document, undefined) { 'use strict'; /** * Creates the thumbs plugin. * @class The thumbs Plugin * @param {Owl} carousel - The Owl Carousel */ var Thumbs = function Thumbs(carousel) { /** * Reference to the core. * @protected * @type {Owl} */ this.owl = carousel; /** * All DOM elements for thumbnails * @protected * @type {Object} */ this._thumbcontent = []; /** * Instance identiefier * @type {number} * @private */ this._identifier = 0; /** * Return current item regardless of clones * @protected * @type {Object} */ this.owl_currentitem = this.owl.options.startPosition; /** * The carousel element. * @type {jQuery} */ this.$element = this.owl.$element; /** * All event handlers. * @protected * @type {Object} */ this._handlers = { 'prepared.owl.carousel': $.proxy(function (e) { if (e.namespace && this.owl.options.thumbs && !this.owl.options.thumbImage && !this.owl.options.thumbsPrerendered && !this.owl.options.thumbImage) { if ($(e.content).find('[data-thumb]').attr('data-thumb') !== undefined) { this._thumbcontent.push($(e.content).find('[data-thumb]').attr('data-thumb')); } } else if (e.namespace && this.owl.options.thumbs && this.owl.options.thumbImage) { var innerImage = $(e.content).find('img'); this._thumbcontent.push(innerImage); } }, this), 'initialized.owl.carousel': $.proxy(function (e) { if (e.namespace && this.owl.options.thumbs) { this.render(); this.listen(); this._identifier = this.owl.$element.data('slider-id'); this.setActive(); } }, this), 'changed.owl.carousel': $.proxy(function (e) { if (e.namespace && e.property.name === 'position' && this.owl.options.thumbs) { this._identifier = this.owl.$element.data('slider-id'); this.setActive(); } }, this) }; // set default options this.owl.options = $.extend({}, Thumbs.Defaults, this.owl.options); // register the event handlers this.owl.$element.on(this._handlers); }; /** * Default options. * @public */ Thumbs.Defaults = { thumbs: true, thumbImage: false, thumbContainerClass: 'owl-thumbs', thumbItemClass: 'owl-thumb-item', moveThumbsInside: false }; /** * Listen for thumbnail click * @protected */ Thumbs.prototype.listen = function () { //set default options var options = this.owl.options; if (options.thumbsPrerendered) { this._thumbcontent._thumbcontainer = $('.' + options.thumbContainerClass); } //check what thumbitem has been clicked and move slider to that item $(this._thumbcontent._thumbcontainer).on('click', this._thumbcontent._thumbcontainer.children(), $.proxy(function (e) { // find relative slider this._identifier = $(e.target).closest('.' + options.thumbContainerClass).data('slider-id'); // get index of clicked thumbnail var index = $(e.target).parent().is(this._thumbcontent._thumbcontainer) ? $(e.target).index() : $(e.target).closest('.' + options.thumbItemClass).index(); if (options.thumbsPrerendered) { // slide to slide :) $('[data-slider-id=' + this._identifier + ']').trigger('to.owl.carousel', [index, options.dotsSpeed, true]); } else { this.owl.to(index, options.dotsSpeed); } e.preventDefault(); }, this)); }; /** * Builds thumbnails * @protected */ Thumbs.prototype.render = function () { //set default options var options = this.owl.options; //create thumbcontainer if (!options.thumbsPrerendered) { this._thumbcontent._thumbcontainer = $('