!function(v){v.jqx.jqxWidget("jqxResponsivePanel","",{}),v.extend(v.jqx._jqxResponsivePanel.prototype,{defineInstance:function(){var e={width:null,height:null,collapseBreakpoint:1e3,collapseWidth:null,toggleButton:null,toggleButtonSize:30,animationType:"fade",animationDirection:"left",animationShowDelay:"fast",animationHideDelay:"fast",autoClose:!0,initContent:null,_collapsed:!1,_opened:!1,_init:!1,_ie7:v.jqx.browser.msie&&v.jqx.browser.version<8,events:["collapse","expand","open","close"]};return this===v.jqx._jqxResponsivePanel.prototype||v.extend(!0,this,e),e},createInstance:function(){var e=this;e.initContent&&!1===e._init&&(e.initContent(),e._init=!0),e._render(!0)},_render:function(e){var t=this;if(!0===e&&t.toggleButton){if(t._toggleButton=v(t.toggleButton),0===t._toggleButton.length)throw new Error('jqxResponsivePanel: Invalid toggleButton selector: "'+t.toggleButton+'".');var n=v('
');t._toggleButton.append(n)}t._setSize(),t._addClasses(),!1===e&&t._removeHandlers(),t._addHandlers(),t._checkWindowSize()},render:function(){this._render(!1)},refresh:function(e){!0!==e&&this._checkWindowSize()},destroy:function(e){var t=this;t._removeHandlers(),t.host.remove(),!0!==e&&t.toggleButton&&t._toggleButton.remove()},propertyChangedHandler:function(e,t,n,o){if(o!==n&&"toggleButton"!==t&&"initContent"!==t)switch(t){case"width":case"height":e.host.css(t,o);break;case"collapseBreakpoint":e._checkWindowSize();break;case"toggleButtonSize":e.toggleButton&&e._toggleButton.css({width:o,height:o});break;default:e.render()}},open:function(){var e=this;if(!0===e._collapsed&&!1===e._opened){function t(){e.host.show(),e._opened=!0,e._raiseEvent("2"),e.initContent&&!1===e._init&&(e.initContent(),e._init=!0)}if(!0!==e._ie7)switch(e.animationType){case"fade":e.host.fadeIn(e.animationShowDelay,function(){e._raiseEvent("2"),e._opened=!0,e.initContent&&!1===e._init&&(e.initContent(),e._init=!0)});break;case"slide":var n=e.animationDirection;"top"===n?n="up":"bottom"===n&&(n="down"),e._slide(e.host,{mode:"show",direction:n,duration:e.animationShowDelay});break;case"none":t()}else t()}},close:function(){var e=this;if(!0===e._collapsed&&!0===e._opened){if(!0===e._ie7)return e.host.hide(),e._opened=!1,void e._raiseEvent("3");switch(e.animationType){case"fade":e.host.fadeOut(e.animationHideDelay,function(){e._opened=!1,e._raiseEvent("3")});break;case"slide":var t=e.animationDirection;"top"===t?t="up":"bottom"===t&&(t="down"),e._slide(e.host,{mode:"hide",direction:t,duration:e.animationHideDelay});break;case"none":e.host.hide(),e._opened=!1,e._raiseEvent("3")}}},_raiseEvent:function(e,t){void 0===t&&(t={owner:null});e=this.events[e];t.owner=this;e=new v.Event(e);return e.owner=this,e.args=t,e.preventDefault&&e.preventDefault(),this.host.trigger(e)},_setSize:function(){var e=this;e.host.css("width",e.width),e.host.css("height",e.height),e.toggleButton&&e._toggleButton.css({width:e.toggleButtonSize,height:e.toggleButtonSize})},_addClasses:function(){var e=this;e.host.addClass(e.toThemeProperty("jqx-responsive-panel")),e.host.addClass(e.toThemeProperty("jqx-widget")),e.host.addClass(e.toThemeProperty("jqx-widget-content")),e.host.addClass(e.toThemeProperty("jqx-rc-all")),e.toggleButton&&(e._toggleButton.addClass(e.toThemeProperty("jqx-responsive-panel-button")),e._toggleButton.addClass(e.toThemeProperty("jqx-fill-state-normal")),e._toggleButton.addClass(e.toThemeProperty("jqx-rc-all")))},isCollapsed:function(){return this._collapsed},isOpened:function(){return this._opened},_addHandlers:function(){var t=this,e=t.element.id;t.addHandler(t.host,"click.jqxResponsivePanel"+e,function(e){e.stopPropagation()}),t.addHandler(v(document),"click.jqxResponsivePanel"+e,function(){!0===t._collapsed&&!0===t.autoClose&&t.close()}),t.addHandler(v(window),"resize.jqxResponsivePanel"+e,function(){setTimeout(function(){t._checkWindowSize()},0)}),t.toggleButton&&(t.addHandler(t._toggleButton,"mouseenter.jqxResponsivePanel"+e,function(){t._toggleButton.addClass(t.toThemeProperty("jqx-fill-state-hover"))}),t.addHandler(t._toggleButton,"mouseleave.jqxResponsivePanel"+e,function(){t._toggleButton.removeClass(t.toThemeProperty("jqx-fill-state-hover"))}),t.addHandler(t._toggleButton,"mousedown.jqxResponsivePanel"+e,function(){t._toggleButton.addClass(t.toThemeProperty("jqx-fill-state-pressed"))}),t.addHandler(v(document),"mouseup.jqxResponsivePanel"+e,function(){t._toggleButton.removeClass(t.toThemeProperty("jqx-fill-state-pressed"))}),t.addHandler(t._toggleButton,"click.jqxResponsivePanel"+e,function(e){e.stopPropagation(),!0===t._opened?t.close():t.open()}))},_removeHandlers:function(){var e=this,t=e.element.id;e.removeHandler(e.host,"click.jqxResponsivePanel"+t),e.removeHandler(v(document),"click.jqxResponsivePanel"+t),e.removeHandler(v(window),"resize.jqxResponsivePanel"+t),e.toggleButton&&(e.removeHandler(e._toggleButton,"mouseenter.jqxResponsivePanel"+t),e.removeHandler(e._toggleButton,"mouseleave.jqxResponsivePanel"+t),e.removeHandler(e._toggleButton,"mousedown.jqxResponsivePanel"+t),e.removeHandler(v(document),"mouseup.jqxResponsivePanel"+t),e.removeHandler(e._toggleButton,"click.jqxResponsivePanel"+t))},_checkWindowSize:function(){var e=this,t=this.host.parent().width();"jqx-responsive-panel"===this.host.parent()[0].nodeName.toLowerCase()&&(t=this.host.parent().parent().width()),!1===e._collapsed&&t<=e.collapseBreakpoint?(e.toggleButton&&e._toggleButton.show(),!1===e._opened&&e.host.hide(),e.host.removeClass(e.toThemeProperty("jqx-responsive-panel-expanded")),e.host.addClass(e.toThemeProperty("jqx-responsive-panel-collapsed")),e._collapsed=!0,e._raiseEvent("0"),e.collapseWidth&&e.host.width(e.collapseWidth),e.host.trigger("resize")):!0===e._collapsed&&t>e.collapseBreakpoint&&(e.collapseWidth&&e.host.width(e.width),e.toggleButton&&e._toggleButton.hide(),!1===e._opened&&e.host.show(),e.host.removeClass(e.toThemeProperty("jqx-responsive-panel-collapsed")),e.host.addClass(e.toThemeProperty("jqx-responsive-panel-expanded")),e._collapsed=!1,e._raiseEvent("1"),e.initContent&&!1===e._init&&(e.initContent(),e._init=!0),e.host.trigger("resize"))},_slide:function(e,t){var n=this;if(n.activeAnimations||(n.activeAnimations=[]),0