/*! sir-trevor-bootstrap 2014-04-16 */ (function(){var a;a='

Panel Heading

Panel body
',SirTrevor.Blocks.Accordion=SirTrevor.Block.extend({type:"accordion",title:"Accordion",editorHTML:'
',icon_name:"accordion",controllable:!0,constructor:function(){return this.controls={add:this.addPanel},SirTrevor.Block.apply(this,arguments)},addPanel:function(){return this.$(".panel-group").append(a),this._initTextBlocks()},onBlockRender:function(){return 0===this.$(".panel-group").children(".panel").length&&(this.$(".panel-group").append(a),this._initTextBlocks(!0)),this.$(".panel-group").on("click","button.close",function(){return confirm("Are you sure you want to remove this panel?")?$(this).closest(".panel").trigger("destroy").remove():void 0}),new Sortable(this.$(".panel-group")[0],{handle:".reorder",draggable:".panel"})},toData:function(){var a;return a={panels:[]},this.$(".panel").each(function(){return a.panels.push({title:$(this).find(".panel-title > a").html(),body:$(this).find(".panel-body").html()})}),this.setData(a)},loadData:function(b){var c,d,e,f,g,h;if("undefined"!=typeof b){for(this.$(".panel").remove(),g=b.panels,h=[],e=0,f=g.length;f>e;e++)d=g[e],c=$(a),c.find(".panel-title > a").html(d.title),c.find(".panel-body").html(d.body),h.push(this.$(".panel-group").append(c));return h}}})}).call(this),function(){var a,b={}.hasOwnProperty;a='Button',SirTrevor.Blocks.Button=SirTrevor.Block.extend({button_sizes:{"btn-xs":"X-Small","btn-sm":"Small","":"Default","btn-lg":"Large"},button_styles:{"btn-default":"Default","btn-primary":"Primary","btn-success":"Success","btn-info":"Info","btn-warning":"Warning","btn-danger":"Danger"},type:"button",title:"Button",editorHTML:'
'+a+"
",icon_name:"button",loadData:function(a){return this.$find(".btn").html(SirTrevor.toHTML(a.text,this.type))},_setBlockInner:function(){var a,c,d,e,f,g,h,i;SirTrevor.Block.prototype._setBlockInner.apply(this,arguments),c=this.$("[name=style]"),h=this.button_styles;for(g in h)b.call(h,g)&&(f=h[g],c.append($("