define(["exports","jquery","./Plugin"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=l(t),r=l(n);function l(e){return e&&e.__esModule?e:{default:e}}var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s="slidePanel",u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r.default),i(c,[{key:"getName",value:function(){return s}},{key:"render",value:function(){void 0!==o.default.slidePanel&&(this.options.url||(this.options.url=this.$el.attr("href"),this.options.url=this.options.url&&this.options.url.replace(/.*(?=#[^\s]*$)/,"")),this.$el.data("slidePanelWrapAPI",this))}},{key:"show",value:function(){var e=this.options;o.default.slidePanel.show({url:e.url},e)}}],[{key:"getDefaults",value:function(){return{closeSelector:".slidePanel-close",mouseDragHandler:".slidePanel-handler",loading:{template:function(e){return'<div class="'+e.classes.loading+'">\n                    <div class="loader loader-default"></div>\n                  </div>'},showCallback:function(e){this.$el.addClass(e.classes.loading+"-show")},hideCallback:function(e){this.$el.removeClass(e.classes.loading+"-show")}}}}},{key:"api",value:function(){return"click|show"}}]),c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}r.default.register(s,u),e.default=u});