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GFC,QAAS,CACPX,QAAQY,GAEN,OADAA,EAAMC,mBACC,CACR,EAEDC,eAAeF,GACb,GAAKA,EAAMG,OAAOpB,OAAOe,OAAzB,CAIA,GADAxB,KAAK8B,MAAM,WAAW,GAClB9B,KAAKS,MAAMQ,cAAe,CAC5B,MAAMc,EAAO/B,KACbgC,YAAW,KACPD,EAAKE,MAAMf,OAAOT,MAAQ,EAA1B,GACD,IACL,CAEA,UACQT,KAAKkC,QAAQ,mBAAoB,CACrCC,GAAInC,KAAKS,MAAM0B,GACfC,OAAQ,YACRxC,KAAM8B,EAAMG,OAAOpB,OAIvB,CARA,QAOET,KAAK8B,MAAM,WAAW,EACxB,CAlBQ,CAmBT,I,UC/EL,MAAMvB,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/EnumSwitch.vue","webpack://platypush/./src/components/panels/Entities/EnumSwitch.vue?0a13"],"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 switch-container\">\n <div class=\"head\" :class=\"{expanded: expanded}\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :icon=\"this.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 buttons pull-right\">\n <button @click.stop=\"expanded = !expanded\" v-if=\"hasValues\">\n <i class=\"fas\"\n :class=\"{'fa-angle-up': expanded, 'fa-angle-down': !expanded}\" />\n </button>\n <span class=\"value\"\n v-text=\"value.value\"\n v-if=\"value?.value != null\" />\n </div>\n </div>\n\n <div class=\"body\" v-if=\"expanded\" @click.stop=\"prevent\">\n <div class=\"row\">\n <div class=\"input\">\n <select @input=\"setValue\" ref=\"values\">\n <option value=\"\" v-if=\"value.is_write_only\" selected>--</option>\n <option :value=\"v\" v-for=\"v in value.values\" :key=\"v\" v-text=\"v\" />\n </select>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'EnumSwitch',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n data() {\n return {\n expanded: false,\n }\n },\n\n computed: {\n hasValues() {\n return !!this?.value?.values?.length\n }\n },\n\n methods: {\n prevent(event) {\n event.stopPropagation()\n return false\n },\n\n async setValue(event) {\n if (!event.target.value?.length)\n return\n\n this.$emit('loading', true)\n if (this.value.is_write_only) {\n const self = this;\n setTimeout(() => {\n self.$refs.values.value = ''\n }, 1000)\n }\n\n try {\n await this.request('entities.execute', {\n id: this.value.id,\n action: 'set_value',\n data: event.target.value,\n })\n } finally {\n this.$emit('loading', false)\n }\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.switch-container {\n .head {\n .buttons {\n button {\n margin-right: 0.5em;\n }\n }\n\n .value {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n\n .body {\n .row {\n display: flex;\n\n .icon {\n width: 2em;\n text-align: center;\n }\n\n .input {\n width: calc(100% - 2em);\n\n select {\n width: 100%;\n }\n }\n }\n }\n}\n</style>\n","import { render } from \"./EnumSwitch.vue?vue&type=template&id=714faba4&scoped=true\"\nimport script from \"./EnumSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./EnumSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./EnumSwitch.vue?vue&type=style&index=0&id=714faba4&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-714faba4\"]])\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","selected","expanded","meta","hasValues","prevent","setValue","ref","is_write_only","values","v","key","EntityIcon","mixins","EntityMixin","length","methods","event","stopPropagation","async","target","$emit","self","setTimeout","$refs","request","id","action"],"sourceRoot":""}