platypush/platypush/backend/http/webapp/dist/static/js/2072-legacy.5f0a7198.js.map

1 line
6.4 KiB
Plaintext

{"version":3,"file":"static/js/2072-legacy.5f0a7198.js","mappings":"+MAISA,IAAA,EAA+BC,MAAM,W,SACvCA,MAAM,mC,iEAJX,QAMM,OANDA,OAAK,SAAC,wBAAuB,qBACA,EAAAC,aAC7BC,OAAK,QAAE,EAAAC,iBAFZ,CAG4D,EAAAC,UAAA,WAA1D,QAAmE,MAAnE,IACsD,EAAAC,QAAA,WAAtD,QAA+D,IAA/D,iBACA,QAAqC,4BAAvB,EAAAC,eAAY,WAL5B,E,mCAYF,GACEC,KAAM,aACNC,WAAY,CAACC,KAAAA,EAAA,GACbC,MAAO,CACLN,QAAS,CACPO,KAAMC,QACNC,SAAS,GAGXR,MAAO,CACLM,KAAMC,QACNC,SAAS,GAGXC,KAAM,CACJH,KAAMI,OACNC,UAAU,GAGZC,aAAc,CACZN,KAAMC,QACNC,SAAS,IAIbK,KAzBa,WA0BX,MAAO,CACLC,UAAW,KACXC,cAAc,EAEjB,EAEDC,SAAU,CACRpB,UADQ,WAEN,OAAQqB,KAAKL,cAAgBK,KAAKR,KAAKS,MAASD,KAAKR,KAAKS,MAAQ,IACnE,EAEDpB,eALQ,WAMN,OAAOmB,KAAKrB,YAAcqB,KAAKjB,MAAQ,CAAC,WAAciB,KAAKrB,WAAa,CAAC,CAC1E,EAEDK,aATQ,WAUN,IAAMQ,GAAG,UAAQQ,KAAKR,MAGtB,OAFIQ,KAAKrB,kBACAa,EAAKS,MACPT,CACR,EAEDH,KAhBQ,WAiBN,IAAIa,EAAcF,KAAKG,OAAOd,MAAQ,GACtC,OAAOa,EAAWE,OAAO,GAAGC,cAAgBH,EAAWI,MAAM,EAC9D,I,UCzDL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O,uGCRO9B,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,2BAINA,MAAM,8B,6GAbf,QAoBM,MApBN,EAoBM,EAnBJ,OAkBM,MAlBN,EAkBM,EAjBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBc,MAAM,YAAAiB,MAAMC,YAAN,eAAYlB,OAAI,GACtBV,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,sCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCL,MAAM,O,aAAO,QAAmB,EAAN,MAACO,OAAhC,YAImB,MAAX,EAAAwB,MAAMA,QAAK,WADrB,QAKM,MALN,EAKM,CAFc,MAAV,EAAAA,MAAME,OAAI,WADlB,QAC8B,Q,MADxBjC,MAAM,O,aAAO,QAAmB,EAAN,MAACiC,OAAjC,4BAEA,OAA2C,QAArCjC,MAAM,Q,aAAQ,QAAoB,EAAP,MAAC+B,QAAlC,cAJF,kB,yBAcN,GACExB,KAAM,SACNC,WAAY,CAAC0B,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,a,UCxBX,MAAMP,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/EntityIcon.vue","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue?8abc","webpack://platypush/./src/components/panels/Entities/Sensor.vue","webpack://platypush/./src/components/panels/Entities/Sensor.vue?60a5"],"sourcesContent":["<template>\n <div class=\"entity-icon-container\"\n :class=\"{'with-color-fill': !!colorFill}\"\n :style=\"colorFillStyle\">\n <img src=\"@/assets/img/spinner.gif\" class=\"loading\" v-if=\"loading\">\n <i class=\"fas fa-circle-exclamation error\" v-else-if=\"error\" />\n <Icon v-bind=\"computedIcon\" v-else />\n </div>\n</template>\n\n<script>\nimport Icon from \"@/components/elements/Icon\";\n\nexport default {\n name: \"EntityIcon\",\n components: {Icon},\n props: {\n loading: {\n type: Boolean,\n default: false,\n },\n\n error: {\n type: Boolean,\n default: false,\n },\n\n icon: {\n type: Object,\n required: true,\n },\n\n hasColorFill: {\n type: Boolean,\n default: false,\n },\n },\n\n data() {\n return {\n component: null,\n modalVisible: false,\n }\n },\n\n computed: {\n colorFill() {\n return (this.hasColorFill && this.icon.color) ? this.icon.color : null\n },\n\n colorFillStyle() {\n return this.colorFill && !this.error ? {'background': this.colorFill} : {}\n },\n\n computedIcon() {\n const icon = {...this.icon}\n if (this.colorFill)\n delete icon.color\n return icon\n },\n\n type() {\n let entityType = (this.entity.type || '')\n return entityType.charAt(0).toUpperCase() + entityType.slice(1)\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"vars\";\n\n.entity-icon-container {\n width: 1.625em;\n height: 1.5em;\n display: inline-flex;\n margin-top: 0.25em;\n margin-left: 0.25em;\n position: relative;\n text-align: center;\n justify-content: center;\n align-items: center;\n\n &.with-color-fill {\n border-radius: 1em;\n }\n\n .loading {\n position: absolute;\n bottom: 0;\n transform: translate(0%, -50%);\n width: 1em;\n height: 1em;\n }\n\n .error {\n color: $error-fg;\n }\n}\n</style>\n","import { render } from \"./EntityIcon.vue?vue&type=template&id=e4043550&scoped=true\"\nimport script from \"./EntityIcon.vue?vue&type=script&lang=js\"\nexport * from \"./EntityIcon.vue?vue&type=script&lang=js\"\n\nimport \"./EntityIcon.vue?vue&type=style&index=0&id=e4043550&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-e4043550\"]])\n\nexport default __exports__","<template>\n <div class=\"entity sensor-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :icon=\"value.meta?.icon || {}\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 pull-right\"\n v-if=\"value.value != null\">\n <span class=\"unit\" v-text=\"value.unit\"\n v-if=\"value.unit != null\" />\n <span class=\"value\" v-text=\"value.value\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'Sensor',\n components: {EntityIcon},\n mixins: [EntityMixin],\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.sensor-container {\n .head {\n .value {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n\n .unit {\n margin-left: 0.2em;\n }\n }\n}\n</style>\n","import { render } from \"./Sensor.vue?vue&type=template&id=1db1da05&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=1db1da05&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-1db1da05\"]])\n\nexport default __exports__"],"names":["src","class","colorFill","style","colorFillStyle","loading","error","computedIcon","name","components","Icon","props","type","Boolean","default","icon","Object","required","hasColorFill","data","component","modalVisible","computed","this","color","entityType","entity","charAt","toUpperCase","slice","__exports__","render","value","meta","unit","EntityIcon","mixins","EntityMixin"],"sourceRoot":""}