SpyGuard/app/backend/dist/js/chunk-2d0c8321.78ca1407.js.map
2022-11-06 15:51:33 +01:00

1 line
31 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/views/edit-configuration.vue","webpack:///src/views/edit-configuration.vue","webpack:///./src/views/edit-configuration.vue?6838","webpack:///./src/views/edit-configuration.vue?2e5d"],"names":["render","_vm","this","_c","_self","staticClass","attrs","class","toaster","show","_v","_s","message","directives","name","rawName","value","config","device_uuid","expression","domProps","on","$event","target","composing","$set","frontend","virtual_keyboard","Array","isArray","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","switch_config","shutdown_option","backend_option","network","tokenized_ssids","download_links","sparklines","remote_access","backend","login","change_login","password","change_password","staticRenderFns","data","check_certificate","certificate","iocs_tags","type","props","methods","axios","timeout","headers","setTimeout","catch","load_config","then","created","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,kBAAkBC,MAAM,CAAC,GAAK,YAAY,CAACH,EAAG,MAAM,CAACI,MAAM,CAAE,wBAA0BN,EAAIO,QAAQC,KAAM,wBAA0BR,EAAIO,QAAQC,OAAQ,CAACR,EAAIS,GAAGT,EAAIU,GAAGV,EAAIO,QAAQI,YAAYT,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,KAAK,CAACE,YAAY,WAAW,CAACJ,EAAIS,GAAG,oBAAoBP,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,QAAQ,CAACE,YAAY,aAAaC,MAAM,CAAC,IAAM,eAAe,CAACL,EAAIS,GAAG,6BAA6BP,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,QAAQ,CAACU,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOf,EAAIgB,OAAOC,YAAaC,WAAW,uBAAuBd,YAAY,uBAAuBC,MAAM,CAAC,GAAK,YAAY,SAAW,YAA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,cAAAtD,UAAA,kBAEA,cAAAA,QAAAG,4BAAA6C,cACAM,sBAAA,cAAAtD,UAAA,mBAGAuD,0BAEAb,2BACAS,2EACAC,YACAC,SAAA,sBACA,SACA,eACA,cAAArD,QAAAG,2BAAA6C,gBACAM,sBAAA,cAAAtD,UAAA,kBAEA,cAAAA,QAAAG,+BAAA6C,cACAM,sBAAA,cAAAtD,UAAA,mBAGAuD,2BAGAG,mBACA,yBACA,uBClK4V,I,YCOxVC,EAAY,eACd,EACApE,EACAoD,GACA,EACA,KACA,KACA,MAIa,aAAAgB,E","file":"js/chunk-2d0c8321.78ca1407.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"backend-content\",attrs:{\"id\":\"content\"}},[_c('div',{class:{ 'alert-toaster-visible' : _vm.toaster.show, 'alert-toaster-hidden' : !_vm.toaster.show }},[_vm._v(_vm._s(_vm.toaster.message))]),_c('div',{staticClass:\"column col-8 col-xs-12\"},[_c('h3',{staticClass:\"s-title\"},[_vm._v(\"Configuration \")]),_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"user-login\"}},[_vm._v(\"Device UUID (read-only)\")]),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.device_uuid),expression:\"config.device_uuid\"}],staticClass:\"form-input read-only\",attrs:{\"id\":\"device-id\",\"readonly\":\"readonly\"},domProps:{\"value\":(_vm.config.device_uuid)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.config, \"device_uuid\", $event.target.value)}}})])]),_c('h5',{staticClass:\"s-subtitle\"},[_vm._v(\"Device configuration\")]),_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.frontend.virtual_keyboard),expression:\"config.frontend.virtual_keyboard\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.frontend.virtual_keyboard)?_vm._i(_vm.config.frontend.virtual_keyboard,null)>-1:(_vm.config.frontend.virtual_keyboard)},on:{\"change\":[function($event){var $$a=_vm.config.frontend.virtual_keyboard,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.frontend, \"virtual_keyboard\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.frontend, \"virtual_keyboard\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.frontend, \"virtual_keyboard\", $$c)}},function($event){return _vm.switch_config('frontend', 'virtual_keyboard')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Use virtual keyboard (for touch screen) \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.frontend.shutdown_option),expression:\"config.frontend.shutdown_option\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.frontend.shutdown_option)?_vm._i(_vm.config.frontend.shutdown_option,null)>-1:(_vm.config.frontend.shutdown_option)},on:{\"change\":[function($event){var $$a=_vm.config.frontend.shutdown_option,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.frontend, \"shutdown_option\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.frontend, \"shutdown_option\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.frontend, \"shutdown_option\", $$c)}},function($event){return _vm.switch_config('frontend', 'shutdown_option')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Allow the end-user to shutdown the device. \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.frontend.backend_option),expression:\"config.frontend.backend_option\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.frontend.backend_option)?_vm._i(_vm.config.frontend.backend_option,null)>-1:(_vm.config.frontend.backend_option)},on:{\"change\":[function($event){var $$a=_vm.config.frontend.backend_option,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.frontend, \"backend_option\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.frontend, \"backend_option\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.frontend, \"backend_option\", $$c)}},function($event){return _vm.switch_config('frontend', 'backend_option')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Allow the end-user to access to the backend. \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.network.tokenized_ssids),expression:\"config.network.tokenized_ssids\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.network.tokenized_ssids)?_vm._i(_vm.config.network.tokenized_ssids,null)>-1:(_vm.config.network.tokenized_ssids)},on:{\"change\":[function($event){var $$a=_vm.config.network.tokenized_ssids,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.network, \"tokenized_ssids\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.network, \"tokenized_ssids\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.network, \"tokenized_ssids\", $$c)}},function($event){return _vm.switch_config('network', 'tokenized_ssids')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Use tokenized SSIDs (eg. [ssid-name]-[hex-str]). \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.frontend.download_links),expression:\"config.frontend.download_links\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.frontend.download_links)?_vm._i(_vm.config.frontend.download_links,null)>-1:(_vm.config.frontend.download_links)},on:{\"change\":[function($event){var $$a=_vm.config.frontend.download_links,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.frontend, \"download_links\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.frontend, \"download_links\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.frontend, \"download_links\", $$c)}},function($event){return _vm.switch_config('frontend', 'download_links')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Use in-browser download for network captures. \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.frontend.sparklines),expression:\"config.frontend.sparklines\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.frontend.sparklines)?_vm._i(_vm.config.frontend.sparklines,null)>-1:(_vm.config.frontend.sparklines)},on:{\"change\":[function($event){var $$a=_vm.config.frontend.sparklines,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.frontend, \"sparklines\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.frontend, \"sparklines\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.frontend, \"sparklines\", $$c)}},function($event){return _vm.switch_config('frontend', 'sparklines')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Show background sparklines during the capture. \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.frontend.remote_access),expression:\"config.frontend.remote_access\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.frontend.remote_access)?_vm._i(_vm.config.frontend.remote_access,null)>-1:(_vm.config.frontend.remote_access)},on:{\"change\":[function($event){var $$a=_vm.config.frontend.remote_access,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.frontend, \"remote_access\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.frontend, \"remote_access\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.frontend, \"remote_access\", $$c)}},function($event){return _vm.switch_config('frontend', 'remote_access')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Allow remote access to the frontend. \")]),_c('label',{staticClass:\"form-switch\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.backend.remote_access),expression:\"config.backend.remote_access\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.config.backend.remote_access)?_vm._i(_vm.config.backend.remote_access,null)>-1:(_vm.config.backend.remote_access)},on:{\"change\":[function($event){var $$a=_vm.config.backend.remote_access,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.config.backend, \"remote_access\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.config.backend, \"remote_access\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.config.backend, \"remote_access\", $$c)}},function($event){return _vm.switch_config('backend', 'remote_access')}]}}),_c('i',{staticClass:\"form-icon\"}),_vm._v(\" Allow remote access to the backend. \")])]),_c('h5',{staticClass:\"s-subtitle\"},[_vm._v(\"User credentials\")]),_c('div',{staticClass:\"form-group\"},[_c('div',{staticClass:\"column col-10 col-xs-12\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"user-login\"}},[_vm._v(\"User login\")]),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.backend.login),expression:\"config.backend.login\"}],staticClass:\"form-input\",attrs:{\"id\":\"user-login\",\"type\":\"text\"},domProps:{\"value\":(_vm.config.backend.login)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.config.backend, \"login\", $event.target.value)}}}),_c('button',{staticClass:\"btn btn-primary input-group-btn px150\",on:{\"click\":function($event){return _vm.change_login()}}},[_vm._v(\"Update it\")])])]),_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"form-label\",attrs:{\"for\":\"user-login\"}},[_vm._v(\"User password\")]),_c('div',{staticClass:\"input-group\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.backend.password),expression:\"config.backend.password\"}],staticClass:\"form-input\",attrs:{\"id\":\"user-login\",\"type\":\"password\",\"placeholder\":\"●●●●●●\"},domProps:{\"value\":(_vm.config.backend.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.config.backend, \"password\", $event.target.value)}}}),_c('button',{staticClass:\"btn btn-primary input-group-btn px150\",on:{\"click\":function($event){return _vm.change_password()}}},[_vm._v(\"Update it\")])])]),_c('div',{staticClass:\"whitespace\"})])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"backend-content\" id=\"content\">\r\n <div v-bind:class=\"{ 'alert-toaster-visible' : toaster.show, 'alert-toaster-hidden' : !toaster.show }\">{{toaster.message}}</div>\r\n <div class=\"column col-8 col-xs-12\">\r\n <h3 class=\"s-title\">Configuration </h3>\r\n <div class=\"form-group\">\r\n <label class=\"form-label\" for=\"user-login\">Device UUID (read-only)</label>\r\n <div class=\"input-group\">\r\n <input class=\"form-input read-only\" id=\"device-id\" v-model=\"config.device_uuid\" readonly=\"readonly\">\r\n </div>\r\n </div>\r\n <h5 class=\"s-subtitle\">Device configuration</h5>\r\n <div class=\"form-group\">\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"switch_config('frontend', 'virtual_keyboard')\" v-model=\"config.frontend.virtual_keyboard\">\r\n <i class=\"form-icon\"></i> Use virtual keyboard (for touch screen)\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"switch_config('frontend', 'shutdown_option')\" v-model=\"config.frontend.shutdown_option\">\r\n <i class=\"form-icon\"></i> Allow the end-user to shutdown the device.\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"switch_config('frontend', 'backend_option')\" v-model=\"config.frontend.backend_option\">\r\n <i class=\"form-icon\"></i> Allow the end-user to access to the backend.\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"switch_config('network', 'tokenized_ssids')\" v-model=\"config.network.tokenized_ssids\">\r\n <i class=\"form-icon\"></i> Use tokenized SSIDs (eg. [ssid-name]-[hex-str]).\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"switch_config('frontend', 'download_links')\" v-model=\"config.frontend.download_links\">\r\n <i class=\"form-icon\"></i> Use in-browser download for network captures.\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"switch_config('frontend', 'sparklines')\" v-model=\"config.frontend.sparklines\">\r\n <i class=\"form-icon\"></i> Show background sparklines during the capture.\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"switch_config('frontend', 'remote_access')\" v-model=\"config.frontend.remote_access\">\r\n <i class=\"form-icon\"></i> Allow remote access to the frontend.\r\n </label>\r\n <label class=\"form-switch\">\r\n <input type=\"checkbox\" @change=\"switch_config('backend', 'remote_access')\" v-model=\"config.backend.remote_access\">\r\n <i class=\"form-icon\"></i> Allow remote access to the backend.\r\n </label>\r\n </div>\r\n <h5 class=\"s-subtitle\">User credentials</h5>\r\n <div class=\"form-group\">\r\n <div class=\"column col-10 col-xs-12\">\r\n <div class=\"form-group\">\r\n <label class=\"form-label\" for=\"user-login\">User login</label>\r\n <div class=\"input-group\">\r\n <input class=\"form-input\" id=\"user-login\" type=\"text\" v-model=\"config.backend.login\">\r\n <button class=\"btn btn-primary input-group-btn px150\" @click=\"change_login()\">Update it</button>\r\n </div>\r\n </div>\r\n <div class=\"form-group\">\r\n <label class=\"form-label\" for=\"user-login\">User password</label>\r\n <div class=\"input-group\">\r\n <input class=\"form-input\" id=\"user-login\" type=\"password\" placeholder=\"●●●●●●\" v-model=\"config.backend.password\">\r\n <button class=\"btn btn-primary input-group-btn px150\" @click=\"change_password()\">Update it</button>\r\n </div>\r\n </div>\r\n <div class=\"whitespace\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport axios from 'axios'\r\n\r\nexport default {\r\n name: 'edit-configuration',\r\n data() {\r\n return {\r\n config: {},\r\n check_certificate: false,\r\n certificate: \"\",\r\n iocs_tags: [],\r\n toaster: { show: false, message : \"\", type : null }\r\n }\r\n },\r\n props: {},\r\n methods: {\r\n switch_config: function(cat, key) {\r\n axios.get(`/api/config/switch/${cat}/${key}`, {\r\n timeout: 10000,\r\n headers: { 'X-Token': this.jwt }\r\n }).then(response => {\r\n if (response.data.status) {\r\n if (response.data.message == \"Key switched to true\") {\r\n this.toaster = { show : true, message : \"Configuration updated\", type : \"success\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n this.config[cat][key] = true\r\n } else if (response.data.message == \"Key switched to false\") {\r\n this.toaster = { show : true, message : \"Configuration updated\", type : \"success\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n this.config[cat][key] = false\r\n } else {\r\n this.toaster = { show : true, message : \"The key doesn't exist\", type : \"error\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n }\r\n }\r\n })\r\n .catch(err => (console.log(err)))\r\n },\r\n load_config: function() {\r\n axios.get(`/api/config/list`, {\r\n timeout: 10000,\r\n headers: { 'X-Token': this.jwt }\r\n }).then(response => {\r\n if (response.data) {\r\n this.config = response.data\r\n this.config.backend.password = \"\"\r\n }\r\n })\r\n .catch(err => (console.log(err)))\r\n },\r\n async get_jwt() {\r\n await axios.get(`/api/get-token`, { timeout: 10000 })\r\n .then(response => {\r\n if (response.data.token) {\r\n this.jwt = response.data.token\r\n }\r\n })\r\n .catch(err => (console.log(err)))\r\n },\r\n change_login: function() {\r\n axios.get(`/api/config/edit/backend/login/${this.config.backend.login}`, {\r\n timeout: 10000,\r\n headers: { 'X-Token': this.jwt }\r\n }).then(response => {\r\n if (response.data.status) {\r\n this.toaster = { show : true, message : \"Login changed\", type : \"success\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n } else {\r\n this.toaster = { show : true, message : \"Login not changed\", type : \"error\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n }\r\n })\r\n .catch(err => (console.log(err)))\r\n },\r\n change_password: function() {\r\n axios.get(`/api/config/edit/backend/password/${this.config.backend.password}`, {\r\n timeout: 10000,\r\n headers: { 'X-Token': this.jwt }\r\n }).then(response => {\r\n if (response.data.status) {\r\n this.toaster = { show : true, message : \"Password changed\", type : \"success\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n } else {\r\n this.toaster = { show : true, message : \"Password not changed\", type : \"error\" }\r\n setTimeout(function () { this.toaster = { show : false } }.bind(this), 1000)\r\n }\r\n })\r\n .catch(err => (console.log(err)))\r\n }\r\n },\r\n created: function() {\r\n this.get_jwt().then(() => {\r\n this.load_config();\r\n });\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit-configuration.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit-configuration.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit-configuration.vue?vue&type=template&id=603efc18&\"\nimport script from \"./edit-configuration.vue?vue&type=script&lang=js&\"\nexport * from \"./edit-configuration.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}