import{D as e}from"./p-3c3b4f3f.js";var t;!function(e){e.Page="page",e.SideModal="side-modal",e.Dialog="dialog"}(t||(t={}));class i extends e{static decode(e){return Object.assign(Object.create(i.prototype),e)}getView(e){return this.views.find((t=>t._id===e))}getHomeView(){var e;if(0!==this.mainNavigation.items.length)return this.getView(null===(e=this.mainNavigation.items[0])||void 0===e?void 0:e.viewId)}}export{i as A,t as V}