var touch,__extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();!function(t){var e=function(e){function i(){var t=e.call(this)||this;return t.adapterScreen(),Laya.stage.on(Laya.Event.RESIZE,t,t.onResize),t}return __extends(i,e),i.prototype.onResize=function(){this.adapterScreen()},i.prototype.adapterScreen=function(){var t=GameBaseData.getAdapterRatio();this.scale(t,t)},i.prototype.destroy=function(){e.prototype.destroy.call(this)},i.prototype.clear=function(){},i.show=function(e){var o=t.Pool.get("Notice",i);o.setData(e),o.zOrder=1e3,Laya.stage.addChild(o)},i.showUnopen=function(){i.show("Coming soon")},i.showLoading=function(){},i.closeLoading=function(){},i.prototype.setData=function(t){this.tfNotice.text=t,this.tfNotice.width=this.tfNotice.textField.textWidth;var e=this.tfNotice.textField.textWidth+40;e=e<200?200:e,this.imgBG.width=e,this.x=(GameBaseData.screenWidth-this.width*this.scaleX)/2,this.y=(GameBaseData.screenHeight-this.height*this.scaleY)/2,this.alpha=0,Laya.Tween.to(this,{alpha:1,y:this.y-60},200,null,Laya.Handler.create(this,this.onAppear))},i.prototype.setData1=function(t){this.tfNotice.text=t,this.tfNotice.width=this.tfNotice.textField.textWidth;var e=this.tfNotice.textField.textWidth+40;e=e<200?200:e,this.imgBG.width=e,this.x=(GameBaseData.screenWidth-this.width)/2,this.y=(GameBaseData.screenHeight-this.height)/2,this.alpha=0,Laya.Tween.to(this,{alpha:1,y:this.y-60},200,null,Laya.Handler.create(this,this.onAppear1))},i.prototype.onAppear=function(){Laya.Tween.to(this,{y:this.y-60},200,null,Laya.Handler.create(this,this.onWaitDisappear),600)},i.prototype.onAppear1=function(){},i.prototype.onWaitDisappear=function(){Laya.Tween.to(this,{alpha:0,y:this.y-60},300,null,Laya.Handler.create(this,this.onDisappear))},i.prototype.onDisappear=function(){null!=this&&(t.Pool.recover("Notice",this),Laya.stage.removeChild(this))},i}(ui.NoticeUI);t.Notice=e}(touch||(touch={}));