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