Liferay.Loader.define("frontend-js-spa-web@5.0.40/screen/Screen",["module","exports","require","frontend-js-web","../cacheable/Cacheable","../util/utils"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r("frontend-js-web"),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("../cacheable/Cacheable")),n=r("../util/utils");class Screen extends i.default{constructor(){super(),this.id=this.makeId_((0,n.getUid)()),this.metas=null,this.title=null}activate(){}beforeActivate(){}beforeDeactivate(){}beforeUpdateHistoryPath(e){return e}beforeUpdateHistoryState(e){return e}deactivate(){}disposeInternal(){super.disposeInternal()}evaluateScripts(e){return Object.keys(e).forEach((t=>{e[t].activeChild&&(0,s.runScriptsInElement)(e[t].activeChild)})),Promise.resolve()}evaluateStyles(){return Promise.resolve()}flip(e){const t=[];return Object.keys(e).forEach((r=>{const s=e[r].show(this.id);t.push(s)})),Promise.all(t)}getId(){return this.id}getMetas(){return this.metas}getSurfaceContent(){}getTitle(){return this.title}load(){return Promise.resolve()}makeId_(e){return"screen_"+e}setId(e){this.id=e}setMetas(e){this.metas=e}setTitle(e){this.title=e}toString(){return this.id}}Screen.isImplementedBy=function(e){return e instanceof Screen};var a=Screen;t.default=a}}));
//# sourceMappingURL=Screen.js.map