UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) • 668 B
import{__decorate as e}from"tslib";import{computed as r}from"mobx";export default class t{constructor(o){this.rootStore=o}get bookmarkedBooths(){return this.rootStore.boothStore.booths.filter(o=>o.exhibitors.length===0&&o.bookmarkedDirectly)}get total(){return this.rootStore.exhibitorStore.bookmarked.length+this.rootStore.eventStore.bookmarked.length+this.rootStore.speakerStore.bookmarked.length+this.bookmarkedBooths.length}get hasRoutableBookmarks(){return this.rootStore.exhibitorStore.bookmarked.length>0||this.bookmarkedBooths.length>0}}e([r],t.prototype,"bookmarkedBooths",null),e([r],t.prototype,"total",null),e([r],t.prototype,"hasRoutableBookmarks",null);