!function (a, b, c, d) { "use strict"; var e = function (b) { this.owl = b, this._thumbcontent = [], this._identifier = 0, this.owl_currentitem = this.owl.options.startPosition, this.$element = this.owl.$element, this._handlers = { "prepared.owl.carousel": a.proxy(function (b) { if (!b.namespace || !this.owl.options.thumbs || this.owl.options.thumbImage || this.owl.options.thumbsPrerendered || this.owl.options.thumbImage) { if (b.namespace && this.owl.options.thumbs && this.owl.options.thumbImage) { var c = a(b.content).find("img"); this._thumbcontent.push(c) } } else a(b.content).find("[data-thumb]").attr("data-thumb") !== d && this._thumbcontent.push(a(b.content).find("[data-thumb]").attr("data-thumb")) }, this), "initialized.owl.carousel": a.proxy(function (a) { a.namespace && this.owl.options.thumbs && (this.render(), this.listen(), this._identifier = this.owl.$element.data("slider-id"), this.setActive()) }, this), "changed.owl.carousel": a.proxy(function (a) { a.namespace && "position" === a.property.name && this.owl.options.thumbs && (this._identifier = this.owl.$element.data("slider-id"), this.setActive()) }, this) }, this.owl.options = a.extend({}, e.Defaults, this.owl.options), this.owl.$element.on(this._handlers) }; e.Defaults = { thumbs: !0, thumbImage: !1, thumbContainerClass: "owl-thumbs", thumbItemClass: "owl-thumb-item", moveThumbsInside: !1 }, e.prototype.listen = function () { var b = this.owl.options; b.thumbsPrerendered && (this._thumbcontent._thumbcontainer = a("." + b.thumbContainerClass)), a(this._thumbcontent._thumbcontainer).on("click", this._thumbcontent._thumbcontainer.children(), a.proxy(function (c) { this._identifier = a(c.target).closest("." + b.thumbContainerClass).data("slider-id"); var d = a(c.target).parent().is(this._thumbcontent._thumbcontainer) ? a(c.target).index() : a(c.target).closest("." + b.thumbItemClass).index(); b.thumbsPrerendered ? a("[data-slider-id=" + this._identifier + "]").trigger("to.owl.carousel", [d, b.dotsSpeed, !0]) : this.owl.to(d, b.dotsSpeed), c.preventDefault() }, this)) }, e.prototype.render = function () { var b = this.owl.options; b.thumbsPrerendered ? (this._thumbcontent._thumbcontainer = a("." + b.thumbContainerClass), b.moveThumbsInside && this._thumbcontent._thumbcontainer.appendTo(this.$element)) : this._thumbcontent._thumbcontainer = a("