!function(s){"use strict";function o(e,t){this.$el=e,this.$window=s(window),this.$contentWrapper=e.find(".minimog-tabs__content"),this.ACTIVE_CLASS="active",this.SWITCHING_CLASS="switching",this.defaults={navType:"list",contentHeight:0},this.settings=s.extend({},this.defaults,t),this.triggerMethod=(t,i)=>{"function"==typeof this[t]&&this[t](i)},this.setOptions=function(t){this.settings=s.extend({},this.settings,t=t||{})},this.getOptions=function(){return this.settings},this.update=function(t){this.setOptions(t),this.updateContentHeight()},this.init=function(){var i,t,n=this;"dropdown"===n.settings.navType?(e.on("change",".tab-select",function(t){var i=s(this).val();n.switchTab(i)}),s.fn.MinimogNiceSelect()&&e.find(".tab-select").MinimogNiceSelect()):(e.on("click",".tab-title",function(t){t.preventDefault();var t=s(this),i=t.data("tab");t.hasClass(n.ACTIVE_CLASS)||(t.siblings().removeClass(n.ACTIVE_CLASS),t.addClass(n.ACTIVE_CLASS),n.switchTab(i))}),s.fn.perfectScrollbar&&!window.minimog.Helpers.isHandheld()&&e.find(".minimog-tabs__header-inner").perfectScrollbar({suppressScrollY:!0,useBothWheelAxes:!0})),s.fn.laziestloader&&e.find(".tab-content.active").find(".ll-image").on("loaded",function(t){clearTimeout(i),i=setTimeout(function(){n.updateLayout()},100)}),s.fn.MinimogAccordion&&0<(t=n.$el.find(".minimog-accordion")).length&&(t.on("MinimogAccordionBeforeChange",function(){n.$el.addClass(n.SWITCHING_CLASS)}),t.on("MinimogAccordionChange",function(){n.updateLayout(),setTimeout(function(){n.$el.removeClass(n.SWITCHING_CLASS)},400)})),this.$window.on("resize",function(){n.updateLayout()}),this.$window.on("load",function(){n.updateLayout()}),this.updateLayout(),e.addClass("initialized")},this.switchTab=function(t){var i=this,n=(e.addClass(i.SWITCHING_CLASS),e.find(".tab-content")),n=(n.removeClass(i.ACTIVE_CLASS),n.filter('[data-tab="'+t+'"]').addClass(i.ACTIVE_CLASS));i.updateLayout(),setTimeout(function(){e.removeClass(i.SWITCHING_CLASS)},400),s(document.body).trigger("MinimogTabChange",[e,n])},this.updateLayout=function(){var t=e.find(".tab-content.active");this.settings.contentHeight=t.outerHeight(),this.updateContentHeight()},this.updateContentHeight=function(){this.$contentWrapper.css("height",this.settings.contentHeight)},this.init()}const a="minimogTabPanel";s.fn.extend({MinimogTabPanel:function(n,e){return this.length?"options"===n?s.data(this.get(0),a).getOptions():this.each(function(){var t=s(this);let i=s.data(this,a);i?i.triggerMethod(n,e):(i=new o(t,n),s.data(this,a,i))}):this}})}(jQuery);