function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}!function(t){var e=function(t,e){e(document).on("click",".nav-direction-icon",(function(t){if(t.preventDefault(),e(this).parent("a").next(".dp-menu").length){var i=e(this)[0],o=e(this).parent("a").next(".dp-menu"),n="true"===i.getAttribute("aria-expanded");i.setAttribute("aria-expanded",!n),n?(this.setAttribute("data-icon","+"),o.slideUp()):(o.slideDown(),this.setAttribute("data-icon","-"))}}));var i=t.find(".cwt-element-transfer-to-body");i.length&&(e(t.find(".cwt-element-transfer-to-body").prop("outerHTML")).appendTo("body"),i.remove());"object"===("undefined"==typeof gsap?"undefined":_typeof(gsap))&&gsap.timeline(),e(document).on("click",".cwt--animated-offcanvas",(function(t){if(t.preventDefault(),"object"===("undefined"==typeof gsap?"undefined":_typeof(gsap))){"undefined"!=typeof wcf_smoother&&wcf_smoother.paused(!0);var i=gsap.timeline();i.to(".cwt--offcanvas-area",{duration:.5,opacity:1,visibility:"visible","z-index":9999}),i.to(".cwt--offcanvas-left",{duration:.6,top:0,opacity:1,visibility:"visible"},"-==.5"),i.to(".cwt--offcanvas-right",{duration:.6,bottom:0,opacity:1,visibility:"visible"},"-=0.6")}else e(".cwt--offcanvas-area").css({opacity:1,visibility:"visible",transition:"all 0.5s","z-index":998}),e(".cwt--offcanvas-left").css({opacity:1,top:0,visibility:"visible",transition:"all 0.5s"}),e(".cwt--offcanvas-right").css({opacity:1,bottom:0,visibility:"visible",transition:"all 0.5s"}),e(".cwt--offcanvas-area").css({"z-index":9999})})),e(document).on("click",".offcanvas--close--button-js",(function(){if("object"===("undefined"==typeof gsap?"undefined":_typeof(gsap))){"undefined"!=typeof wcf_smoother&&wcf_smoother.paused(!1);var t=gsap.timeline();t.to(".cwt--offcanvas-right",{duration:.6,bottom:"-50%",opacity:0}),t.to(".cwt--offcanvas-left",{duration:.6,top:"-50%",opacity:0},"-=.6"),t.to(".cwt--offcanvas-area",{duration:.8,opacity:0,visibility:"hidden","z-index":-1}),e(".cwt--animated-offcanvas").css({cursor:"wait","pointer-events":"none"}),setTimeout((function(){e(".cwt--animated-offcanvas").removeAttr("style")}),1e3)}else e(".cwt--offcanvas-area").css({opacity:0,visibility:"hidden",transition:"all 0.5s","z-index":-1})}))};t(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/wcf--animated-offcanvas.default",e)}))}(jQuery);