module.exports = "(function(e,t,i){var s=i(5894),a=i(7358),n=i(9133);e.exports={initialize:function(){this.__state={views:{},apiNamesToViews:{}},this.on(a.DATA_LOADED,this.__loadData)},getAll:function(){return n.safeReference(s.values(this.__state.views))},getPagesMap:function(){return n.safeReference(this.__state.views)},get:function(e){return n.safeReference(this.__state.views[e])},getByApiName:function(e){return n.safeReference(this.__state.apiNamesToViews[e])},apiNameToId:function(e){var t=this.__state.apiNamesToViews[e];if(t)return t.id},idToApiName:function(e){var t=this.__state.views[e];if(t)return t.apiName},getNumberOfPages:function(){return s.keys(this.__state.views).length},getAllViewsForActivationType:function(e){return s.filter(this.__state.views,{activationType:e})},__loadData:function(e){s.isEmpty(e.data.views)||(s.each(e.data.views,s.bind((function(e){n.deepFreeze(e),this.__state.views[e.id]=e,this.__state.apiNamesToViews[e.apiName]=e}),this)),this.emitChange())}}})";