!function(o){var n=new slidebars;o(n.events).on("init",function(){console.log("Init event")}),o(n.events).on("exit",function(){console.log("Exit event")}),o(n.events).on("css",function(){console.log("CSS event")}),o(n.events).on("opening",function(o,n){console.log("Opening event of slidebar with id "+n)}),o(n.events).on("opened",function(o,n){console.log("Opened event of slidebar with id "+n)}),o(n.events).on("closing",function(o,n){console.log("Closing event of slidebar with id "+n)}),o(n.events).on("closed",function(o,n){console.log("Closed event of slidebar with id "+n)}),n.init(),o(".js-open-left-slidebar").on("click",function(o){o.stopPropagation(),n.open("slidebar-1")}),o(".js-close-left-slidebar").on("click",function(o){o.stopPropagation(),n.close("slidebar-1")}),o(".js-toggle-left-slidebar").on("click",function(o){o.stopPropagation(),n.toggle("slidebar-1")}),o(".js-open-right-slidebar").on("click",function(o){o.stopPropagation(),n.open("slidebar-2")}),o(".js-close-right-slidebar").on("click",function(o){o.stopPropagation(),n.close("slidebar-2")}),o(".js-toggle-right-slidebar").on("click",function(o){o.stopPropagation(),n.toggle("slidebar-2")}),o(".js-open-top-slidebar").on("click",function(o){o.stopPropagation(),n.open("slidebar-3")}),o(".js-close-top-slidebar").on("click",function(o){o.stopPropagation(),n.close("slidebar-3")}),o(".js-toggle-top-slidebar").on("click",function(o){o.stopPropagation(),n.toggle("slidebar-3")}),o(".js-open-bottom-slidebar").on("click",function(o){o.stopPropagation(),n.open("slidebar-4")}),o(".js-close-bottom-slidebar").on("click",function(o){o.stopPropagation(),n.close("slidebar-4")}),o(".js-toggle-bottom-slidebar").on("click",function(o){o.stopPropagation(),n.toggle("slidebar-4")}),o(n.events).on("opened",function(){o('[canvas="container"]').addClass("js-close-any-slidebar")}),o(n.events).on("closed",function(){o('[canvas="container"]').removeClass("js-close-any-slidebar")}),o("body").on("click",".js-close-any-slidebar",function(o){o.stopPropagation(),n.close()}),o(".js-initialize-slidebars").on("click",function(o){o.stopPropagation(),n.init()}),o(".js-exit-slidebars").on("click",function(o){o.stopPropagation(),n.exit()}),o(".js-reset-slidebars-css").on("click",function(o){o.stopPropagation(),n.css()}),o(".js-is-active").on("click",function(o){o.stopPropagation(),console.log(n.isActive())}),o(".js-is-active-slidebar").on("click",function(o){o.stopPropagation();var i=prompt("Enter a Slidebar id");console.log(n.isActiveSlidebar(i))}),o(".js-get-active-slidebar").on("click",function(o){o.stopPropagation(),console.log(n.getActiveSlidebar())}),o(".js-get-all-slidebars").on("click",function(o){o.stopPropagation(),console.log(n.getSlidebars())}),o(".js-get-slidebar").on("click",function(o){o.stopPropagation();var i=prompt("Enter a Slidebar id");console.log(n.getSlidebar(i))}),o(".js-init-callback").on("click",function(o){o.stopPropagation(),n.init(function(){console.log("Init callback")})}),o(".js-exit-callback").on("click",function(o){o.stopPropagation(),n.exit(function(){console.log("Exit callback")})}),o(".js-css-callback").on("click",function(o){o.stopPropagation(),n.css(function(){console.log("CSS callback")})}),o(".js-open-callback").on("click",function(o){o.stopPropagation(),n.open("slidebar-1",function(){console.log("Open callback")})}),o(".js-close-callback").on("click",function(o){o.stopPropagation(),n.close(function(){console.log("Close callback")})}),o(".js-toggle-callback").on("click",function(o){o.stopPropagation(),n.toggle("slidebar-1",function(){console.log("Toggle callback")})})}(jQuery);