platypush/platypush/backend/http/webapp/dist/static/js/675-legacy.6f3d0433.js.map

1 line
2.6 KiB
Plaintext

{"version":3,"file":"static/js/675-legacy.6f3d0433.js","mappings":"gMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,Q,GAINA,MAAM,S,2GANf,QAYM,MAZN,EAYM,EAXJ,OAUM,MAVN,EAUM,EATJ,OAEM,MAFN,EAEM,EADJ,QAAgE,GAAnDC,OAAQ,EAAAC,MAAQC,QAAS,EAAAA,QAAUC,MAAO,EAAAA,OAAvD,wCAGF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCJ,MAAM,O,aAAO,QAAmB,EAAN,MAACK,OAAhC,aAGF,OAAqD,OAAhDL,MAAM,kB,aAAkB,QAAqB,EAAD,eAAjD,a,iDASN,GACEK,KAAM,gBACNC,WAAY,CAACC,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YACTC,SAAU,CACRC,aADQ,WAEN,GAAwB,MAApBC,KAAKV,MAAMA,MACb,OAAO,KAGT,IAAIW,EAAY,IAAMD,KAAKV,MAAMA,MACjC,OACEW,EAAUC,YAAcD,EAAUE,QAAQ,GACxCF,EAAUE,QAAQ,GAAKF,EAAUE,QAAQ,IACzC,GACL,I,UC5BL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/PercentSensor.vue","webpack://platypush/./src/components/panels/Entities/PercentSensor.vue?1f84"],"sourcesContent":["<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"icon\">\n <EntityIcon :entity=\"value\" :loading=\"loading\" :error=\"error\" />\n </div>\n\n <div class=\"label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"value-container\" v-text=\"displayValue\" />\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'PercentSensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n computed: {\n displayValue() {\n if (this.value.value == null) {\n return null\n }\n\n let normValue = 100 * this.value.value\n return (\n normValue.toString() == normValue.toFixed(0)\n ? normValue.toFixed(0) : normValue.toFixed(1)\n ) + '%'\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n</style>\n","import { render } from \"./PercentSensor.vue?vue&type=template&id=1b6c81c2&scoped=true\"\nimport script from \"./PercentSensor.vue?vue&type=script&lang=js\"\nexport * from \"./PercentSensor.vue?vue&type=script&lang=js\"\n\nimport \"./PercentSensor.vue?vue&type=style&index=0&id=1b6c81c2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1b6c81c2\"]])\n\nexport default __exports__"],"names":["class","entity","value","loading","error","name","components","EntityIcon","mixins","EntityMixin","computed","displayValue","this","normValue","toString","toFixed","__exports__","render"],"sourceRoot":""}