!function(t,i){"use strict";var o=function(t,i){var o=t.find(".bdt-show-hide-container"),e=o.find(".bdt-show-hide");if(o.length){var s=e.data("settings"),n=s.id,l=s.scrollspy_time,d=s.scrollspy_top_offset,a=s.by_widget_selector_status,h=s.toggle_initially_open,f=s.source_selector,g=s.widget_visibility,c=s.widget_visibility_tablet,b=s.widget_visibility_mobile,w=s.viewport_lg,r=s.viewport_md,u=g;"undefined"!=s.widget_visibility&&null!=s.widget_visibility||(u=g=0),"undefined"!=s.widget_visibility_tablet&&null!=s.widget_visibility_tablet||(c=g),"undefined"!=s.widget_visibility_mobile&&null!=s.widget_visibility_mobile||(b=g),i(window).resize((function(){u=window.outerWidth>w?g:window.outerWidth>r?c:b})),i(e).find(".bdt-show-hide-title").off("click").on("click",(function(t){var o=i(this);!function(t,o,e,n,l){if("yes"===s.status_scrollspy&&"yes"!==a){if(i(t).find(".bdt-show-hide-item")){"yes"===s.hash_location&&(window.location.hash=i.trim(o));var d=i("#bdt-show-hide-"+o).find(".bdt-show-hide-item");i("html, body").animate({easing:"slow",scrollTop:i(d).offset().top-l},n,(function(){})).promise().then((function(){i(e).siblings(".bdt-show-hide-content").slideToggle("slow",(function(){i(e).parent().toggleClass("bdt-open")}))}))}}else"yes"===a?(i(e).parent().toggleClass("bdt-open"),i(e).siblings(".bdt-show-hide-content").slideToggle("slow",(function(){}))):i(e).siblings(".bdt-show-hide-content").slideToggle("slow",(function(){i(e).parent().toggleClass("bdt-open")}))}(e,n,o,l,d)})),i(window).on("load",(function(){0!=i(o).find("#bdt-show-hide-"+window.location.hash.substring(1)).length&&"yes"===s.hash_location&&function(){n=window.location.hash.substring(1);var t=i("#bdt-show-hide-"+n).find(".bdt-show-hide-title"),o=i("#bdt-show-hide-"+n).find(".bdt-show-hide-item");i("html, body").animate({easing:"slow",scrollTop:i(o).offset().top-d},l,(function(){})).promise().then((function(){i(t).siblings(".bdt-show-hide-content").slideToggle("slow",(function(){i(t).parent().toggleClass("bdt-open")}))}))}()})),"yes"===a&&(i(e).find(".bdt-show-hide-title").on("click",(function(){"yes"===s.status_scrollspy?i("html, body").animate({easing:"slow",scrollTop:i(f).offset().top-d},l,(function(){})).promise().then((function(){i(f).hasClass("bdt-fold-close")?(i(f).removeClass("bdt-fold-close toggle_initially_open").addClass("bdt-fold-open"),_(i(f),500)):i(f).css({height:u+"px"}).addClass("bdt-fold-close").removeClass("bdt-fold-open")})):i(f).hasClass("bdt-fold-close")?(i(f).removeClass("bdt-fold-close toggle_initially_open").addClass("bdt-fold-open"),_(i(f),500)):i(f).css({height:u+"px",transition:"all 1s ease-in-out 0s"}).addClass("bdt-fold-close").removeClass("bdt-fold-open")})),"yes"===h?i(f).addClass("bdt-fold-toggle bdt-fold-open toggle_initially_open"):i(f).addClass("bdt-fold-toggle bdt-fold-close toggle_initially_open"),i(window).resize((function(){p()})),p())}function _(t,i){var o=t.height(),e=t.css("height","auto").height();t.height(o),t.stop().animate({height:e},i)}function p(){i(f).hasClass("bdt-fold-close")?i(f).css({height:u+"px"}):_(i(f),500)}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-toggle.default",o)}))}(jQuery,window.elementorFrontend);