define(["jquery","libs/underscore","libs/backbone"],function(a,b,c){"use strict";var d=160,e=800,f=c.View.extend({initialize:function(a){this.view=a.view,this.hidden=!1,this.saved_size=null,this.hiddenByTool=!1},$center:function(){return this.$el.siblings("#center")},$toggleButton:function(){return this.$(".unified-panel-footer > .panel-collapse")},render:function(){var a=this,c=this.view,d=this.view.model.attributes||{};this.$el.html(this._templatePanel(this.id)),b.each(d.buttons,function(b){a.$(".panel-header-buttons").append(b.$el)}),this.$el.addClass(d.cls),this.$(".panel-header-text").html(b.escape(d.title)),this.$(".unified-panel-body").append(c.$el),c.render()},_templatePanel:function(){return[this._templateHeader(),this._templateBody(),this._templateFooter()].join("")},_templateHeader:function(){return['
','
','
','
',"
","
"].join("")},_templateBody:function(){return'
'},_templateFooter:function(){return['