(function(n){n(function(){var e={init:function(o){var t=this;if(t.offcanvasButton=o.elementToggle,t.offcanvasButtonOpen=o.elementOpen,t.offcanvasButtonClose=o.elementClose,n(".offcanvas-left").length==0)return t.offcanvasButton.remove(),t.offcanvasButtonOpen.remove(),t.offcanvasButtonClose.remove(),!1;t.UpdateButtonTop(),t.scrollPos=n(document).scrollTop(),t.isButtonScrolling=!1,t.isOffcanvasOpen=!1,t.setUpEventHandlers()},setUpEventHandlers:function(){var o=this;enquire.register("(max-width: 767px)",{match:function(){o.UpdateButtonTop()}}),o.offcanvasButton.on("click",function(t){o.toggleOffCanvas()}),o.offcanvasButtonClose.on("click",function(t){o.closeOffCanvas(),o.positionToggleButton()}),o.offcanvasButtonOpen.on("click",function(t){o.openOffCanvas()}),n(window).on("scroll",function(){scrollPos=n(document).scrollTop(),scrollPos>o.buttonTopDefault?o.isButtonScrolling=!0:o.isButtonScrolling=!1,o.positionToggleButton()})},openOffcanvas:function(){var o=this;n(".offcanvas-left").addClass("open"),n(".collection-wrapper").addClass("pushed-by-offcanvas"),o.isOffcanvasOpen=!0,o.isButtonScrolling&&o.positionToggleButtonHorizontally()},closeOffCanvas:function(){var o=this;n(".offcanvas-left").removeClass("open"),n(".collection-wrapper").removeClass("pushed-by-offcanvas"),o.isOffcanvasOpen=!1,o.positionToggleButton()},toggleOffCanvas:function(){var o=this;n(".offcanvas-left").toggleClass("open"),n(".collection-wrapper").toggleClass("pushed-by-offcanvas"),o.isOffcanvasOpen=!o.isOffcanvasOpen,o.isOffcanvasOpen||o.positionToggleButton()},positionToggleButtonHorizontally:function(){var o=this;o.isButtonScrolling?o.offcanvasButton.css({position:"fixed",left:"0"}):o.offcanvasButton.css({left:""})},positionToggleButtonVertically:function(){var o=this;o.isButtonScrolling?o.offcanvasButton.css({top:"20px",position:"fixed"}):o.offcanvasButton.css({top:"",position:"relative"})},positionToggleButton:function(){var o=this;o.positionToggleButtonVertically(),o.positionToggleButtonHorizontally()},UpdateButtonTop:function(){var o=this;o.buttonTopDefault=o.offcanvasButton.offset().top}};e.init({elementToggle:n(".offcanvas-toggle"),elementOpen:n(".offcanvas-open"),elementClose:n(".offcanvas-close")})})})(jQuery);
//# sourceMappingURL=/s/files/1/1068/0658/t/2/assets/dynamic-sidebar.js.map?v=137066162772230596121448030256