/*! * WPBakery Page Builder v7.6.0 (https://wpbakery.com) * Copyright 2011-2024 Michael M, WPBakery * License: Commercial. More details: http://go.wpbakery.com/licensing */ // jscs:disable // jshint ignore: start !function(r){var o,t,e,i;function a(i,a){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=r(this),e=t.data("vc.tabs");e||(e=new o(t,r.extend(!0,{},a)),t.data("vc.tabs",e)),"string"==typeof i&&e[i].apply(e,n)})}(o=function(t,e){this.$element=r(t),this.activeClass="vc_active",this.tabSelector="[data-vc-tab]",this.useCacheFlag=void 0,this.$target=void 0,this.selector=void 0,this.$targetTab=void 0,this.$relatedAccordion=void 0,this.$container=void 0}).prototype.isCacheUsed=function(){var t=this;return void 0===this.useCacheFlag&&(this.useCacheFlag=function(){return!1!==t.$element.data("vcUseCache")}()),this.useCacheFlag},o.prototype.getContainer=function(){return this.isCacheUsed()?(void 0===this.$container&&(this.$container=this.findContainer()),this.$container):this.findContainer()},o.prototype.findContainer=function(){var t=this.$element.closest(this.$element.data("vcContainer"));return t=t.length?t:r("body")},o.prototype.getContainerAccordion=function(){return this.getContainer().find("[data-vc-accordion]")},o.prototype.getSelector=function(){var e=this.$element,t=function(){var t=e.data("vcTarget");return t=t||e.attr("href")};return this.isCacheUsed()?(void 0===this.selector&&(this.selector=t()),this.selector):t()},o.prototype.getTarget=function(){var t=this.getSelector();return this.isCacheUsed()?(void 0===this.$target&&(this.$target=this.getContainer().find(t)),this.$target):this.getContainer().find(t)},o.prototype.getRelatedAccordion=function(){var i=this,t=function(){var t=i.getContainerAccordion().filter(function(){var t=r(this),e=t.data("vc.accordion");return void 0===e&&(t.vcAccordion(),e=t.data("vc.accordion")),i.getSelector()===e.getSelector()});if(t.length)return t};return this.isCacheUsed()?(void 0===this.$relatedAccordion&&(this.$relatedAccordion=t()),this.$relatedAccordion):t()},o.prototype.triggerEvent=function(t){"string"==typeof t&&(t=r.Event(t),this.$element.trigger(t))},o.prototype.getTargetTab=function(){var t=this.$element;return this.isCacheUsed()?(void 0===this.$targetTab&&(this.$targetTab=t.closest(this.tabSelector)),this.$targetTab):t.closest(this.tabSelector)},o.prototype.tabClick=function(){this.getRelatedAccordion().trigger("click")},o.prototype.show=function(){this.getTargetTab().hasClass(this.activeClass)||(this.triggerEvent("show.vc.tab"),this.getTargetTab().addClass(this.activeClass))},o.prototype.hide=function(){this.getTargetTab().hasClass(this.activeClass)&&(this.triggerEvent("hide.vc.tab"),this.getTargetTab().removeClass(this.activeClass))},t=r.fn.vcTabs,r.fn.vcTabs=a,r.fn.vcTabs.Constructor=o,r.fn.vcTabs.noConflict=function(){return r.fn.vcTabs=t,this},e=function(t){var e=r(this);t.preventDefault(),a.call(e,"tabClick")},i=function(t){var i=r(t.target).data("vc.accordion");i&&(void 0===i.getRelatedTab&&(i.getRelatedTab=function(){var t=function(){return i.getContainer().find("[data-vc-tabs]").filter(function(){var t=r(this),e=t.data("vc.accordion");return void 0===e&&t.vcAccordion(),(e=t.data("vc.accordion")).getSelector()===i.getSelector()})};return i.isCacheUsed()?(void 0===i.relatedTab&&(i.relatedTab=t()),i.relatedTab):t()}),a.call(i.getRelatedTab(),t.type))},r(document).on("click.vc.tabs.data-api","[data-vc-tabs]",e),r(document).on("show.vc.accordion hide.vc.accordion",i)}(window.jQuery); Free - يلا نوفر
Browsing Tag

Free