function wp_zinc_tabs_init(){(function(t){wp_zinc_tabs_destroy();t(".wpzinc-js-tabs").each(function(){var a=t(this),n=t(a).data("panels-container"),e=t(a).data("panel"),i=t(a).data("active"),c=t(a).data("match-height");wp_zinc_tabs_update(a,n,e,i,t("a."+i,t(a)).attr("href"));if(typeof c!=="undefined"){t(n).height(t(c).innerHeight())}t(a).on("click.wpzinc_tabs","a",function(c){if(location.hostname===this.hostname||!this.hostname.length){c.preventDefault()}else{return true}wp_zinc_tabs_update(a,n,e,i,t(this).attr("href"))})});t(".wpzinc-tab-indicator").on("change.wpzinc_tab_indicator",function(a){var n=t(this).data("tab");if(t(this).is("input")){var e=t(this).prop("checked")}else if(t(this).is("select")){var e=t(this).val()}if(e==1){t("a[href=#"+n+"]").addClass("enabled")}else{t("a[href=#"+n+"]").removeClass("enabled")}})})(jQuery)}function wp_zinc_tabs_update(t,a,n,e,i){(function(c){if(typeof i=="undefined"){return}if(i.length==0){return}var s=c('a[href="'+i+'"]',c(t));c("a",c(t)).removeClass(e);c(n,c(a)).hide();c('a[href="'+i+'"]',c(t)).addClass(e);c(i).show();if(typeof c(s).data("documentation")!="undefined"){c("a.nav-tab.documentation").attr("href",c(s).data("documentation"))}setTimeout(function(){c(t).trigger("change",s)},500)})(jQuery)}function wp_zinc_tabs_destroy(){(function(t){t(".wpzinc-js-tabs").each(function(){t(this).off("click.wpzinc_tabs","a");t(this).off("change.wpzinc_tab_indicator")})})(jQuery)}jQuery(document).ready(function(t){if(t(".wpzinc-js-tabs").length>0){wp_zinc_tabs_init()}});