var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}();import{D as DataModel}from"./data-model-88af49fc.js";var ViewPlacement;(function(t){t["Page"]="page";t["SideModal"]="side-modal";t["Dialog"]="dialog"})(ViewPlacement||(ViewPlacement={}));var AppConfig=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.decode=function(t){return Object.assign(Object.create(e.prototype),t)};e.prototype.getView=function(t){return this.views.find((function(e){return e._id===t}))};e.prototype.getHomeView=function(){var t;if(this.mainNavigation.items.length===0){return undefined}return this.getView((t=this.mainNavigation.items[0])===null||t===void 0?void 0:t.viewId)};return e}(DataModel);export{AppConfig as A,ViewPlacement as V};