{"ast":null,"code":"export default {\n props: {\n ready: {\n type: Number,\n required: true\n },\n occupied: {\n type: Number,\n required: true\n },\n offline: {\n type: Number,\n required: true\n }\n },\n computed: {\n total() {\n return this.ready + this.occupied + this.offline;\n },\n statuses() {\n const readyProgress = this.ready / this.total * 100;\n const occupiedProgress = this.occupied / this.total * 100;\n const offlineProgress = this.offline / this.total * 100;\n return [{\n label: 'Ready',\n progress: readyProgress,\n count: this.ready\n }, {\n label: 'Occupied',\n progress: occupiedProgress,\n count: this.occupied\n }, {\n label: 'Offline',\n progress: offlineProgress,\n count: this.offline\n }];\n }\n }\n};","map":{"version":3,"names":["props","ready","type","Number","required","occupied","offline","computed","total","statuses","readyProgress","occupiedProgress","offlineProgress","label","progress","count"],"sources":["src/components/StatusBar/index.vue"],"sourcesContent":["\n\n\n\n"],"mappings":"AAaA;EACAA,KAAA;IACAC,KAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,QAAA;IACA;IACAC,QAAA;MACAH,IAAA,EAAAC,MAAA;MACAC,QAAA;IACA;IACAE,OAAA;MACAJ,IAAA,EAAAC,MAAA;MACAC,QAAA;IACA;EACA;EACAG,QAAA;IACAC,MAAA;MACA,YAAAP,KAAA,QAAAI,QAAA,QAAAC,OAAA;IACA;IACAG,SAAA;MACA,MAAAC,aAAA,QAAAT,KAAA,QAAAO,KAAA;MACA,MAAAG,gBAAA,QAAAN,QAAA,QAAAG,KAAA;MACA,MAAAI,eAAA,QAAAN,OAAA,QAAAE,KAAA;MAEA,QACA;QAAAK,KAAA;QAAAC,QAAA,EAAAJ,aAAA;QAAAK,KAAA,OAAAd;MAAA,GACA;QAAAY,KAAA;QAAAC,QAAA,EAAAH,gBAAA;QAAAI,KAAA,OAAAV;MAAA,GACA;QAAAQ,KAAA;QAAAC,QAAA,EAAAF,eAAA;QAAAG,KAAA,OAAAT;MAAA,EACA;IACA;EACA;AACA"},"metadata":{},"sourceType":"module","externalDependencies":[]}