import{isEmpty}from"../base/helpers.mjs";class Controller{static confirmViewWidth=500;static confirmViewHeight=200;constructor(t){this.application=t}async initialize(){}get model(){return this.application.model}get images(){return this.application.images}get config(){return this.application.config}get engine(){return this.application.engine}get downloads(){return this.application.downloads}notify(t,i,n){return this.application.notifications.push(t,i,n)}spawnWindow(){return this.application.windows.spawnWindow.apply(this.application.windows,Array.from(arguments))}download(t,i,n){return this.downloads.download(t,i,n)}confirm(t){return this.application.confirm(t)}subscribe(t,i){this.application.subscribe(t,i)}publish(t,i=null){this.application.publish(t,i)}getState(t=!0){return{}}getDefaultState(){return{}}resetState(){this.setState(this.getDefaultState())}setState(t){}}export{Controller};
