((e,o)=>{"use strict";const t=t=>{if(t=t.tfClass("sidemenu")[0]){const c=t.id,l=o.querySelector('a[href="#'+c+'"]');l&&(e.sideMenu(l,{panel:"#"+c,close:"#"+c+"_close"}),t.style.display="block")}},c=e=>{e.tfClass("tb_ov_co_icon_wrapper")[0]?.tfOn("click",(function(e){e.preventDefault();const o=this.closest(".module-overlay-content"),t=o.tfClass("tb_oc_expand_below")[0];t&&(t.style.minHeight=o.classList.contains("tb_oc_open")?0:t.scrollHeight+"px"),o.classList.toggle("tb_oc_open")}))};e.on("builder_load_module_partial",((l,_)=>{if(!0===_&&!l.classList.contains("module-overlay-content"))return;const n=e.selectWithParent("module-overlay-content",l),a=o.tfClass("body-overlay")[0],r=e.isTouch?"touchend":"click";for(let e=n.length-1;e>=0;--e){let o=n[e];"overlay"===o.dataset.overlay?(a&&o.tfClass("tb_oc_overlay_layer")[0].tfOn(r,(()=>{a.click()}),{passive:!0}),t(o)):c(o),o.tfClass("tb_active_builder")[0]&&o.classList.add("has_active_builder")}}))})(Themify,document);