{ "version": 3, "sources": ["../../meet/meet_state.ts"], "sourcesContent": ["import {observable, runInAction, makeObservable} from \"mobx\"\nimport type {BoardUID, BoardStyle, AccountUID, BoardType} from \"@cling/lib.shared.model\"\n\ntype MinBoardProps = {\n uid: BoardUID\n name: string\n board_style: BoardStyle\n board_type: BoardType\n people_board_shared_with: (current_user: AccountUID) => AccountUID\n}\n\nclass MeetState {\n private _board: MinBoardProps | undefined = undefined\n\n join = (board: MinBoardProps) => {\n runInAction(() => (this._board = board))\n }\n\n hangup = () => {\n runInAction(() => (this._board = undefined))\n }\n\n constructor() {\n makeObservable<MeetState, \"_board\">(this, {\n _board: observable,\n })\n }\n\n get board() {\n return this._board\n }\n}\n\nexport const meet_state = new MeetState()\n"], "mappings": "qGAWA,IAAMA,EAAN,MAAMA,CAAU,CAWZ,aAAc,CAVdC,EAAA,KAAQ,UAERA,EAAA,YAAOC,EAACC,GAAyB,CAC7BC,EAAY,IAAO,KAAK,OAASD,CAAM,CAC3C,EAFO,SAIPF,EAAA,cAASC,EAAA,IAAM,CACXE,EAAY,IAAO,KAAK,OAAS,MAAU,CAC/C,EAFS,WAKLC,EAAoC,KAAM,CACtC,OAAQC,CACZ,CAAC,CACL,CAEA,IAAI,OAAQ,CACR,OAAO,KAAK,MAChB,CACJ,EApBgBJ,EAAAF,EAAA,aAAhB,IAAMO,EAANP,EAsBaQ,EAAa,IAAID", "names": ["_MeetState", "__publicField", "__name", "board", "runInAction", "makeObservable", "observable", "MeetState", "meet_state"] }