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","sources":["webpack://platypush/./src/components/panels/Entities/VariableModal.vue","webpack://platypush/./src/components/panels/Entities/VariableModal.vue?db72"],"sourcesContent":["<template>\n <Modal :visible=\"visible\" title=\"Set Variable\" ref=\"modal\"\n @open=\"onOpen\" @close=\"$emit('close', $event)\">\n <div class=\"variable-modal-container\">\n <form @submit.prevent=\"setValue\">\n <div class=\"row\">\n <div class=\"col-s-12 col-m-4 label\">\n <label for=\"name\">Variable Name</label>\n </div>\n <div class=\"col-s-12 col-m-8 value\">\n <input type=\"text\" id=\"variable-name\" v-model=\"varName\"\n placeholder=\"Variable Name\" :disabled=\"loading\" ref=\"varName\" />\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-s-12 col-m-4 label\">\n <label for=\"name\">Variable Value</label>\n </div>\n <div class=\"col-s-12 col-m-8 value\">\n <input type=\"text\" id=\"variable-value\" v-model=\"varValue\" ref=\"varValue\"\n placeholder=\"Variable Value\" :disabled=\"loading\" />\n </div>\n </div>\n\n <div class=\"row button-container\">\n <button type=\"submit\" title=\"Set\" :disabled=\"loading\">\n <i class=\"fas fa-check\" />\n </button>\n </div>\n </form>\n </div>\n </Modal>\n</template>\n\n<script>\nimport Modal from \"@/components/Modal\";\nimport Utils from \"@/Utils\";\n\nexport default {\n name: \"VariableModal\",\n components: {Modal},\n mixins: [Utils],\n emits: ['close'],\n props: {\n visible: {\n type: Boolean,\n default: false,\n },\n },\n data() {\n return {\n loading: false,\n varName: null,\n varValue: null,\n };\n },\n\n methods: {\n async clearValue() {\n this.loading = true\n try {\n await this.request('variable.unset', {name: this.varName.trim()})\n } finally {\n this.loading = false\n }\n },\n\n async setValue() {\n const varName = this.varName.trim()\n if (!varName?.length) {\n this.notifyWarning('No variable name has been specified')\n }\n\n const value = this.varValue\n if (!value?.length) {\n await this.clearValue()\n } else {\n this.loading = true\n try {\n const args = {}\n args[varName] = value\n await this.request('variable.set', args)\n } finally {\n this.loading = false\n }\n }\n\n this.$refs.varName.value = ''\n this.$refs.varValue.value = ''\n this.$refs.modal.close()\n },\n\n onOpen() {\n this.$nextTick(() => {\n this.$refs.varName.focus()\n })\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.variable-modal-container {\n form {\n padding: 1em 0;\n\n label {\n font-weight: bold;\n }\n\n .row {\n padding: 0.25em 1em;\n display: flex;\n align-items: center;\n\n @include until($tablet) {\n flex-direction: column;\n }\n\n input[type=text] {\n width: 100%;\n }\n }\n\n .button-container {\n display: flex;\n justify-content: center;\n margin-top: 0.5em;\n margin-bottom: -0.75em;\n padding-top: 0.5em;\n border-top: 1px solid $border-color-1;\n\n button {\n min-width: 10em;\n background: none;\n border-radius: 1.5em;\n\n &:hover {\n background: $hover-bg;\n }\n }\n }\n\n @include from($tablet) {\n .value {\n text-align: right;\n }\n }\n }\n}\n</style>\n","import { render } from \"./VariableModal.vue?vue&type=template&id=4e3d4a40&scoped=true\"\nimport script from \"./VariableModal.vue?vue&type=script&lang=js\"\nexport * from \"./VariableModal.vue?vue&type=script&lang=js\"\n\nimport \"./VariableModal.vue?vue&type=style&index=0&id=4e3d4a40&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4e3d4a40\"]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","_hoisted_12","_createBlock","_component_Modal","visible","$props","title","ref","onOpen","$options","onClose","_cache","$event","_ctx","$emit","_hoisted_1","onSubmit","_withModifiers","args","setValue","_hoisted_2","_hoisted_3","_hoisted_4","type","id","$data","varName","placeholder","disabled","loading","_hoisted_6","_hoisted_7","_hoisted_8","varValue","_hoisted_10","name","components","Modal","mixins","Utils","emits","props","Boolean","default","data","methods","clearValue","this","request","trim","length","notifyWarning","value","$refs","modal","close","$nextTick","focus","__exports__","render"],"sourceRoot":""}