jQuery().ready(function(e){var t=function(){e("a.edb-sidebar-item").each(function(){e(this).hasClass("active")&&e(this).removeClass("active")})},i=function(){e(".edb-sidebar-cat-folded").each(function(){e(this).hasClass("edb-sidebar-cat-folded-active")&&(console.log(e(this).children("ul")),e(this).find("ul").slideUp("fast"),e(this).removeClass("edb-sidebar-cat-folded-active"))})},a=function(){e(".edb-sidebar-cat-folded-child").each(function(){e(this).hasClass("edb-sidebar-cat-folded-child-active")&&(console.log(e(this).children("ul")),e(this).find("ul").slideUp("fast"),e(this).removeClass("edb-sidebar-cat-folded-child-active"))})},d=function(){e("a.edb-sidebar-cat").each(function(){e(this).hasClass("active")&&e(this).removeClass("active")})},o=function(t){a(),console.log("has_child"),console.log(t),e(t).children("ul").slideDown("fast"),e(t).addClass("edb-sidebar-cat-folded-child-active",1e3,"easeOutBounce")};if(e("a.edb-sidebar-cat").each(function(){var a="";e(this).click(function(s){s.preventDefault();var n=e(this).parent();d();var c=e(this).attr("data-postid")||"";if(console.log("post-id = "+c),""!=c){var r="#document-"+c,l=40;e(this).addClass("active");var u=jQuery("body").find(r).offset();a=u.top,jQuery("html,body").animate({scrollTop:a-l},300),t()}e(n).hasClass("edb-sidebar-cat-folded-child")&&o(n),e(n).hasClass("edb-sidebar-cat-folded")&&(e(n).hasClass("edb-sidebar-cat-folded-active")||(i(),e(n).children("ul").slideDown("fast"),e(n).addClass("edb-sidebar-cat-folded-active",1e3,"easeOutBounce")))})}),e("a.edb-sidebar-item").each(function(){var i="";e(this).click(function(a){t(),d(),a.preventDefault();var o=e(this).attr("href");e(this).attr("data-edb-catid")||"";e(this).addClass("active");var s=40;"undefined"!=typeof edb_fixed_navigation_top&&(s+=parseInt(edb_fixed_navigation_top));var n=jQuery("body").find(o).offset();i=n.top,jQuery("html,body").animate({scrollTop:i-s},300)})}),e(".edb-share-direct").each(function(){e(this).on("click",function(){var t=e(this).attr("href");return t=window.location.href.split("?")[0]+t,window.prompt("Copy to clipboard: Ctrl+C, Enter",t),!1})}),"undefined"!=typeof edb_fixed_navigation&&edb_fixed_navigation){var s=0;"undefined"!=typeof edb_fixed_navigation_top&&(s=edb_fixed_navigation_top);var n=jQuery(".edb-end-content").position();jQuery.lockfixed("#edb-main #edb-sidebar .edb-sidebar",{offset:{top:s,bottom:document.body.clientHeight-n.top}});var c=function(){var t=jQuery(window).width();767>=t?e(".edb-sidebar").perfectScrollbar("destroy"):e(".edb-sidebar").perfectScrollbar()};e(window).scroll(c),e(window).resize(c),e(window).trigger("scroll")}}),jQuery().ready(function(){jQuery("a.edb-like-btn").click(function(){response_div=jQuery(this).parent().parent(),jQuery.ajax({url:EDB.base_url,data:{vote_like:jQuery(this).attr("post_id")},beforeSend:function(){},success:function(e){response_div.hide().html(e).fadeIn(400)},complete:function(){}})}),jQuery("a.edb-dislike-btn").click(function(){response_div=jQuery(this).parent().parent(),jQuery.ajax({url:EDB.base_url,data:{vote_dislike:jQuery(this).attr("post_id")},beforeSend:function(){},success:function(e){response_div.hide().html(e).fadeIn(400)},complete:function(){}})})}),jQuery(document).ready(function(e){var t=200,i=500,a=700,d=e(".cd-top");e(window).scroll(function(){e(this).scrollTop()>t?d.addClass("cd-is-visible"):d.removeClass("cd-is-visible cd-fade-out"),e(this).scrollTop()>i&&d.addClass("cd-fade-out")}),d.on("click",function(t){t.preventDefault(),e("body,html").animate({scrollTop:0},a)})}),jQuery().ready(function(e){e(".edb-documentation-search").length&&e(".edb-documentation-search").autocomplete({source:function(t,i){t.product=e(".edb-documentation-search").attr("data-product"),jQuery.getJSON(EDB.admin_url+"?callback=?&action=edb_search_results",t,i)},select:function(t,i){var a=i.item.slug,d=e(".edb-sidebar-item-"+a).parent().closest(".edb-sidebar-cat-folded");d.length&&e(d).find("a.edb-sidebar-cat").click(),e(".edb-sidebar-item-"+a).click()},delay:200,minLength:3}).autocomplete("widget").addClass("edb-sautocomplete")});