define(["ember"],function(a){return BaubleCanvasComponent=a.Component.extend({layoutName:"bauble-book",classNames:["bauble-book"],width:840,height:560,pageIndex:0,total:0,page:null,pageNumber:function(){return this.get("pageIndex")+1}.property("pageIndex"),didPageChanged:function(){console.log(this.get("page"))}.observes("page"),preAble:function(){return 2<=this.get("total")&&1<=this.get("pageIndex")}.property("total","pageIndex"),nextAble:function(){return this.get("total")-1>this.get("pageIndex")}.property("total","pageIndex"),actions:{pre:function(){this.get("preAble")&&(this.decrementProperty("pageIndex"),this.sendAction("pre",this.get("pageIndex")))},next:function(){this.get("nextAble")&&(this.incrementProperty("pageIndex"),this.sendAction("next",this.get("pageIndex")))}}})});