(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b3289"],{"26d3":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"settings"},[a("v-app-bar",{attrs:{app:"","clipped-left":"",color:"settings",dark:"",dense:"",flat:""}},[a("v-toolbar-title",[a("v-icon",{staticClass:"ma-2",domProps:{textContent:t._s("mdi-cogs")}}),t._v("\n      Settings\n    ")],1)],1),a("v-card",{staticStyle:{height:"calc(100vh - 48px)","overflow-y":"auto"},attrs:{color:"white",flat:"",tile:""}},[a("v-main",[a("v-container",[a("v-card",{attrs:{flat:"",tile:""}},[a("v-card-title",{domProps:{textContent:t._s("App")}}),a("v-card-text",[a("v-checkbox",{attrs:{label:"Development mode"},on:{change:function(e){return t.updateAppConfig({devMode:e||!1})}},model:{value:t.state.devMode,callback:function(e){t.$set(t.state,"devMode",e)},expression:"state.devMode"}}),a("v-checkbox",{attrs:{label:"Show help"},on:{change:function(e){return t.updateProjectConfig({showHelp:e||!1})}},model:{value:t.state.showHelp,callback:function(e){t.$set(t.state,"showHelp",e)},expression:"state.showHelp"}})],1)],1),a("v-card",{attrs:{flat:"",tile:""}},[a("v-card-title",{domProps:{textContent:t._s("Database")}}),a("v-card-text",[a("v-text-field",{attrs:{label:"Model database"},model:{value:t.state.app.config.databases.model.name,callback:function(e){t.$set(t.state.app.config.databases.model,"name",e)},expression:"state.app.config.databases.model.name"}}),a("v-text-field",{attrs:{label:"Project database"},model:{value:t.state.app.config.databases.project.name,callback:function(e){t.$set(t.state.app.config.databases.project,"name",e)},expression:"state.app.config.databases.project.name"}})],1)],1),a("v-card",{attrs:{flat:"",tile:""}},[a("v-card-title",{domProps:{textContent:t._s("Backend")}}),a("v-card-text",[a("v-text-field",{attrs:{label:"NEST Server"},model:{value:t.state.app.nestServer.url,callback:function(e){t.$set(t.state.app.nestServer,"url",e)},expression:"state.app.nestServer.url"}}),t.state.nestVersion?a("span",[t._v("\n              Response:\n              "),a("v-chip",{attrs:{color:"orange darken-3",dark:"",small:""}},[a("v-avatar",{attrs:{left:""}},[a("v-icon",{attrs:{small:""},domProps:{textContent:t._s("mdi-checkbox-marked-circle")}})],1),t._v("\n                NEST version: "+t._s(t.state.nestVersion)+"\n              ")],1)],1):t._e()],1),a("v-card-actions",[a("v-btn",{on:{click:t.checkNEST}},[t._v("Check")])],1)],1),a("v-card",{attrs:{flat:"",tile:""}},[a("v-card-title",{domProps:{textContent:t._s("Network")}}),a("v-card-text",[a("v-card",{attrs:{flat:"",tile:""}},[a("v-card-subtitle",{domProps:{textContent:t._s("Color cycle of nodes")}}),a("v-row",t._l(t.state.network.config.color.cycle,(function(t){return a("v-sheet",{key:t,staticClass:"flex",attrs:{color:t,height:40}})})),1)],1)],1)],1)],1)],1)],1)],1)},n=[],s=a("2b0e"),r=a("a6f4"),c=a("9885"),l=a("5339"),d=s["default"].extend({name:"Settings",setup:function(){var t=Object(r["e"])({app:l["a"].app,devMode:l["a"].app.config.devMode,nestVersion:"",network:new c["a"]("Network"),showHelp:l["a"].app.project.config.showHelp}),e=function(){l["a"].app.nestServer.check().then((function(e){t.nestVersion=e.state.simulatorVersion}))},a=function(t){l["a"].app.updateConfig(t)},o=function(t){l["a"].app.project.updateConfig(t)};return{checkNEST:e,state:t,updateAppConfig:a,updateProjectConfig:o}}}),i=d,p=a("2877"),v=a("6544"),f=a.n(v),u=a("40dc"),b=a("8212"),m=a("8336"),h=a("b0af"),x=a("99d9"),k=a("ac7c"),C=a("cc20"),g=a("a523"),w=a("132d"),V=a("f6c4"),_=a("0fd9"),S=a("8dd9"),j=a("8654"),P=a("2a7f"),T=Object(p["a"])(i,o,n,!1,null,null,null);e["default"]=T.exports;f()(T,{VAppBar:u["a"],VAvatar:b["a"],VBtn:m["a"],VCard:h["a"],VCardActions:x["a"],VCardSubtitle:x["b"],VCardText:x["c"],VCardTitle:x["d"],VCheckbox:k["a"],VChip:C["a"],VContainer:g["a"],VIcon:w["a"],VMain:V["a"],VRow:_["a"],VSheet:S["a"],VTextField:j["a"],VToolbarTitle:P["a"]})}}]);