!function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,function(t){return e[t]}.bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){class n extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{wrapper:".jeg-elementor-kit.jkit-off-canvas",sidebar:".offcanvas-sidebar",hamburger:".offcanvas-sidebar-button",close:".offcanvas-close-button",overlay:".bg-overlay"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$wrapper:this.$element.find(e.wrapper),$sidebar:this.$element.find(e.sidebar),$hamburger:this.$element.find(e.hamburger),$close:this.$element.find(e.close),$overlay:this.$element.find(e.overlay)}}bindEvents(){const e=this,t=this.getID();e.settings=e.getElementSettings(),e.elements.$hamburger.on("click.offcanvas_"+t,(function(t){t.preventDefault(),e.elements.$sidebar.hasClass("active")?e.sidebarClose():e.sidebarOpen()})),e.elements.$close.on("click.offcanvas_"+t,(function(t){t.preventDefault(),e.sidebarClose()})),e.elements.$overlay.on("click.offcanvas_"+t,(function(t){t.preventDefault(),e.sidebarClose()}))}offEvents(){const e=this.getID();this.elements.$hamburger.off("click.offcanvas_"+e),this.elements.$close.off("click.offcanvas_"+e),this.elements.$overlay.off("click.offcanvas_"+e)}sidebarOpen(){const e=this.getID();this.elements.$sidebar.addClass("active"),"yes"===this.settings.sg_setting_overflow_hidden&&jQuery("body").addClass("jkit-offcanvas-hide-scroll-"+e)}sidebarClose(){const e=this.getID();this.elements.$sidebar.removeClass("active"),"yes"===this.settings.sg_setting_overflow_hidden&&jQuery("body").removeClass("jkit-offcanvas-hide-scroll-"+e)}onElementChange(){this.offEvents(),this.bindEvents()}}jQuery(window).on("elementor/frontend/init",(()=>{elementorFrontend.hooks.addAction("frontend/element_ready/jkit_off_canvas.default",(e=>{elementorFrontend.elementsHandler.addHandler(n,{$element:e})}))}))}]);