UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) 970 B
import{__esDecorate as o,__runInitializers as n}from"tslib";import{computed as i}from"mobx";let l=(()=>{let a=[],r,s;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[i({keepAlive:!0})],s=[i],o(this,null,r,{kind:"getter",name:"categoryById",static:!1,private:!1,access:{has:t=>"categoryById"in t,get:t=>t.categoryById},metadata:e},null,a),o(this,null,s,{kind:"getter",name:"seminarsCategory",static:!1,private:!1,access:{has:t=>"seminarsCategory"in t,get:t=>t.seminarsCategory},metadata:e},null,a),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}rootStore=n(this,a);categories=[];get categoryById(){return new Map(this.categories.map(e=>[e.id,e]))}get seminarsCategory(){return this.categories.find(e=>e.slug==="seminars")}constructor(e){this.rootStore=e}}})();export default l;export class Category{store;id;name;slug;sponsorship;exhibitors;entity={type:"category"}}