(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-662181f4"],{"0184":function(e,t,l){"use strict";var a=l("f958"),s=l.n(a);s.a},"53ca":function(e,t,l){"use strict";l.d(t,"a",(function(){return a}));l("a4d3"),l("e01a"),l("d28b"),l("d3b7"),l("3ca3"),l("ddb0");function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}},"5e58":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("div",{staticClass:"filter-container"},[l("el-button",{staticClass:"filter-item",staticStyle:{"margin-bottom":"10px"},attrs:{type:"success",icon:"el-icon-plus"},on:{click:e.handleCreate}},[e._v("Add")])],1),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[l("el-table-column",{attrs:{align:"center",label:"ID",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.$index+1)+" ")]}}])}),l("el-table-column",{attrs:{label:"Name"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name)+" ")]}}])}),l("el-table-column",{attrs:{label:"User"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.user)+" ")]}}])}),l("el-table-column",{attrs:{label:"Group"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.group)+" ")]}}])}),l("el-table-column",{attrs:{label:"Working directory"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.working_directory)+" ")]}}])}),l("el-table-column",{attrs:{label:"Type"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",[e._v(e._s(e.langs[t.row.type]))])]}}])}),l("el-table-column",{attrs:{label:"Operation",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleUpdate(a)}}},[e._v("Update")]),"deleted"!=a.status?l("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.handleDelete(a)}}},[e._v("Delete")]):e._e()]}}])})],1),l("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[l("el-form",{ref:"form",staticStyle:{width:"700px"},attrs:{rules:e.rules,"show-message":!1,model:e.model,"label-position":"right","label-width":"140px"}},[l("el-form-item",{attrs:{label:"Name",prop:"name"}},[l("el-input",{staticStyle:{width:"150px"},attrs:{readonly:"update"==e.dialogStatus},model:{value:e.model.name,callback:function(t){e.$set(e.model,"name",t)},expression:"model.name"}})],1),l("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[l("el-tab-pane",{attrs:{label:"Generic",name:"generic"}},[l("el-form-item",{attrs:{label:"User"}},[l("el-input",{staticStyle:{width:"150px"},model:{value:e.model.user,callback:function(t){e.$set(e.model,"user",t)},expression:"model.user"}})],1),l("el-form-item",{attrs:{label:"Group"}},[l("el-input",{staticStyle:{width:"150px"},model:{value:e.model.group,callback:function(t){e.$set(e.model,"group",t)},expression:"model.group"}})],1),l("el-form-item",{attrs:{label:"Working directory"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.working_directory,callback:function(t){e.$set(e.model,"working_directory",t)},expression:"model.working_directory"}})],1)],1),l("el-tab-pane",{attrs:{label:"Isolation",name:"first"}},[l("el-form-item",{attrs:{label:"Namespaces"}},[l("el-checkbox",{staticStyle:{width:"60px"},model:{value:e.model.namespaces.cgroup,callback:function(t){e.$set(e.model.namespaces,"cgroup",t)},expression:"model.namespaces.cgroup"}},[e._v("Cgroup ")]),l("el-checkbox",{staticStyle:{width:"80px"},model:{value:e.model.namespaces.credential,callback:function(t){e.$set(e.model.namespaces,"credential",t)},expression:"model.namespaces.credential"}},[e._v("Credential ")]),l("el-checkbox",{staticStyle:{width:"50px"},model:{value:e.model.namespaces.mount,callback:function(t){e.$set(e.model.namespaces,"mount",t)},expression:"model.namespaces.mount"}},[e._v("Mount ")]),l("el-checkbox",{staticStyle:{width:"60px"},model:{value:e.model.namespaces.network,callback:function(t){e.$set(e.model.namespaces,"network",t)},expression:"model.namespaces.network"}},[e._v("Network ")]),l("el-checkbox",{staticStyle:{width:"30px"},model:{value:e.model.namespaces.pid,callback:function(t){e.$set(e.model.namespaces,"pid",t)},expression:"model.namespaces.pid"}},[e._v("Pid ")]),l("el-checkbox",{staticStyle:{width:"60px"},model:{value:e.model.namespaces.uname,callback:function(t){e.$set(e.model.namespaces,"uname",t)},expression:"model.namespaces.uname"}},[e._v("Uname ")])],1),l("el-form-item",{attrs:{label:"Uidmaps"}},[l("el-button",{attrs:{type:"success"},on:{click:function(t){return e.addUidmap()}}},[e._v("Add uidmap")])],1),e._l(e.model.uidmap,(function(t,a){return l("el-form-item",{key:"uidmap_"+a,attrs:{inline:!0}},[l("el-row",{attrs:{gutter:10}},[l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"uidmap."+a+".host"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Host"},model:{value:t.host,callback:function(l){e.$set(t,"host",l)},expression:"uidmap.host"}})],1)],1),l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"uidmap."+a+".container"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Container"},model:{value:t.container,callback:function(l){e.$set(t,"container",l)},expression:"uidmap.container"}})],1)],1),l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"uidmap."+a+".size"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Size"},model:{value:t.size,callback:function(l){e.$set(t,"size",l)},expression:"uidmap.size"}})],1)],1),l("el-col",{attrs:{span:6}},[l("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.removeUidmap(a)}}},[e._v("Delete")])],1)],1)],1)})),l("el-form-item",{attrs:{label:"Gidmaps"}},[l("el-button",{attrs:{type:"success"},on:{click:function(t){return e.addGidmap()}}},[e._v("Add gidmap")])],1),e._l(e.model.gidmap,(function(t,a){return l("el-form-item",{key:"gidmap_"+a,attrs:{inline:!0}},[l("el-row",{attrs:{gutter:10}},[l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"gidmap."+a+".host"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Host"},model:{value:t.host,callback:function(l){e.$set(t,"host",l)},expression:"gidmap.host"}})],1)],1),l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"gidmap."+a+".container"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Container"},model:{value:t.container,callback:function(l){e.$set(t,"container",l)},expression:"gidmap.container"}})],1)],1),l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"gidmap."+a+".size"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Size"},model:{value:t.size,callback:function(l){e.$set(t,"size",l)},expression:"gidmap.size"}})],1)],1),l("el-col",{attrs:{span:6}},[l("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.removeGidmap(a)}}},[e._v("Delete")])],1)],1)],1)})),l("el-form-item",{attrs:{label:"Rootfs"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.rootfs,callback:function(t){e.$set(e.model,"rootfs",t)},expression:"model.rootfs"}})],1)],2),l("el-tab-pane",{attrs:{label:"Limits",name:"second"}},[l("el-form-item",{attrs:{label:"Timeout"}},[l("el-input",{staticStyle:{width:"150px"},model:{value:e.model.limits.timeout,callback:function(t){e.$set(e.model.limits,"timeout",t)},expression:"model.limits.timeout"}})],1),l("el-form-item",{attrs:{label:"Requests"}},[l("el-input",{staticStyle:{width:"150px"},model:{value:e.model.limits.requests,callback:function(t){e.$set(e.model.limits,"requests",t)},expression:"model.limits.requests"}})],1)],1),l("el-tab-pane",{attrs:{label:"Processes",name:"third"}},[l("el-form-item",{attrs:{label:"Static"}},[l("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"Number"},model:{value:e.model.processes,callback:function(t){e.$set(e.model,"processes",t)},expression:"model.processes"}})],1),l("el-form-item",{attrs:{label:"Dynamic"}},[l("el-input",{staticStyle:{width:"150px","margin-right":"10px"},attrs:{placeholder:"Spare"},model:{value:e.model.spare,callback:function(t){e.$set(e.model,"spare",t)},expression:"model.spare"}}),l("el-input",{staticStyle:{width:"150px","margin-right":"10px"},attrs:{placeholder:"Max"},model:{value:e.model.max,callback:function(t){e.$set(e.model,"max",t)},expression:"model.max"}}),l("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"Idle Timeout"},model:{value:e.model.idle_timeout,callback:function(t){e.$set(e.model,"idle_timeout",t)},expression:"model.idle_timeout"}})],1)],1)],1),l("el-form-item",{staticStyle:{"margin-top":"15px"},attrs:{label:"Language",prop:"type"}},[l("el-select",{staticClass:"select-danger",staticStyle:{width:"150px"},attrs:{placeholder:"Select One"},model:{value:e.model.type,callback:function(t){e.$set(e.model,"type",t)},expression:"model.type"}},e._l(e.langs,(function(e,t){return l("el-option",{key:t,staticClass:"select-danger",attrs:{value:t,label:e}})})),1)],1),"go"===e.model.type?l("div",[l("el-form-item",{attrs:{label:"Executable"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.executable,callback:function(t){e.$set(e.model,"executable",t)},expression:"model.executable"}})],1),l("el-form-item",{attrs:{label:"Arguments"}},[l("el-button",{attrs:{type:"success"},on:{click:function(t){return e.addArgument()}}},[e._v("Add argument")])],1),e._l(e.model.arguments,(function(t,a){return l("el-form-item",{key:"arguments_"+a,attrs:{inline:!0}},[l("el-row",{attrs:{gutter:10}},[l("el-col",{attrs:{span:8}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"arguments."+a+".name"}},[l("el-input",{attrs:{placeholder:"Name",width:"100%"},model:{value:t.name,callback:function(l){e.$set(t,"name",l)},expression:"argument.name"}})],1)],1),l("el-col",{attrs:{span:16}},[l("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.removeArgument(a)}}},[e._v("Delete")])],1)],1)],1)}))],2):"php"===e.model.type?l("div",[l("el-form-item",{attrs:{label:"Targets"}},[l("el-button",{attrs:{type:"success"},on:{click:function(t){return e.addTarget()}}},[e._v("Add target")])],1),e._l(e.model.targets,(function(t,a){return l("el-form-item",{key:"targets_"+a,attrs:{label:"Target "+(a+1)}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"targets."+a+".name"}},[l("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"Name"},model:{value:t.name,callback:function(l){e.$set(t,"name",l)},expression:"target.name"}})],1),l("el-form-item",{attrs:{rules:[{required:!0}],prop:"targets."+a+".root"}},[l("el-input",{staticStyle:{width:"300px","margin-top":"10px"},attrs:{placeholder:"Root"},model:{value:t.root,callback:function(l){e.$set(t,"root",l)},expression:"target.root"}})],1),l("el-form-item",{attrs:{prop:"targets."+a+".php_script"}},[l("el-input",{staticStyle:{width:"300px","margin-top":"10px"},attrs:{placeholder:"Script"},model:{value:t.php_script,callback:function(l){e.$set(t,"php_script",l)},expression:"target.php_script"}})],1),l("el-form-item",{attrs:{prop:"targets."+a+".index"}},[l("el-input",{staticStyle:{width:"300px","margin-top":"10px"},attrs:{placeholder:"Index"},model:{value:t.index,callback:function(l){e.$set(t,"index",l)},expression:"target.index"}})],1),l("el-form-item",[l("el-button",{staticStyle:{"margin-top":"10px"},attrs:{type:"danger"},on:{click:function(t){return e.removeTarget(a)}}},[e._v("Delete ")])],1)],1)})),0==e.model.targets.length?l("el-form-item",{attrs:{label:"Root"}},[l("el-input",{staticStyle:{width:"300px"},attrs:{rules:[{required:!0}]},model:{value:e.model.root,callback:function(t){e.$set(e.model,"root",t)},expression:"model.root"}})],1):e._e(),0==e.model.targets.length?l("el-form-item",{attrs:{label:"Script"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.php_script,callback:function(t){e.$set(e.model,"php_script",t)},expression:"model.php_script"}})],1):e._e(),0==e.model.targets.length?l("el-form-item",{attrs:{label:"Index"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.index,callback:function(t){e.$set(e.model,"index",t)},expression:"model.index"}})],1):e._e(),l("el-form-item",{attrs:{label:"File"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.file,callback:function(t){e.$set(e.model,"file",t)},expression:"model.file"}})],1),l("el-form-item",{attrs:{label:"Admin"}},[l("el-button",{attrs:{type:"success"},on:{click:function(t){return e.addAdmin()}}},[e._v("Add directive")])],1),e._l(e.model.admins,(function(t,a){return l("el-form-item",{key:"admins_"+a,attrs:{inline:!0}},[l("el-row",{attrs:{gutter:10}},[l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"admins."+a+".name"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Name"},model:{value:t.name,callback:function(l){e.$set(t,"name",l)},expression:"item.name"}})],1)],1),l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"admins."+a+".value"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Value"},model:{value:t.value,callback:function(l){e.$set(t,"value",l)},expression:"item.value"}})],1)],1),l("el-col",{attrs:{span:12}},[l("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.removeAdmin(a)}}},[e._v("Delete")])],1)],1)],1)})),l("el-form-item",{attrs:{label:"User"}},[l("el-button",{attrs:{type:"success"},on:{click:function(t){return e.addUser()}}},[e._v("Add directive")])],1),e._l(e.model.users,(function(t,a){return l("el-form-item",{key:"users_"+a,attrs:{inline:!0}},[l("el-row",{attrs:{gutter:10}},[l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"users."+a+".name"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Name"},model:{value:t.name,callback:function(l){e.$set(t,"name",l)},expression:"item.name"}})],1)],1),l("el-col",{attrs:{span:6}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"users."+a+".value"}},[l("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Value"},model:{value:t.value,callback:function(l){e.$set(t,"value",l)},expression:"item.value"}})],1)],1),l("el-col",{attrs:{span:12}},[l("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.removeUser(a)}}},[e._v("Delete")])],1)],1)],1)}))],2):"perl"===e.model.type?l("div",[l("el-form-item",{attrs:{label:"Script"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.perl_script,callback:function(t){e.$set(e.model,"perl_script",t)},expression:"model.perl_script"}})],1)],1):"ruby"===e.model.type?l("div",[l("el-form-item",{attrs:{label:"Script"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.ruby_script,callback:function(t){e.$set(e.model,"ruby_script",t)},expression:"model.ruby_script"}})],1)],1):e._e(),"java"===e.model.type?l("div",[l("el-form-item",{attrs:{label:"Webapp"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.webapp,callback:function(t){e.$set(e.model,"webapp",t)},expression:"model.webapp"}})],1),l("el-form-item",{attrs:{label:"Unit jars"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.unit_jars,callback:function(t){e.$set(e.model,"unit_jars",t)},expression:"model.unit_jars"}})],1),l("el-form-item",{attrs:{label:"Classpath"}},[l("el-button",{attrs:{type:"success"},on:{click:function(t){return e.addClasspath()}}},[e._v("Add classpath")])],1),e._l(e.model.classpath,(function(t,a){return l("el-form-item",{key:"classpath_"+a,attrs:{inline:!0}},[l("el-row",{attrs:{gutter:10}},[l("el-col",{attrs:{span:8}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"classpath."+a+".name"}},[l("el-input",{attrs:{placeholder:"Name",width:"100%"},model:{value:t.name,callback:function(l){e.$set(t,"name",l)},expression:"cp.name"}})],1)],1),l("el-col",{attrs:{span:16}},[l("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.removeClasspath(a)}}},[e._v("Delete")])],1)],1)],1)})),l("el-form-item",{attrs:{label:"Options"}},[l("el-button",{attrs:{type:"success"},on:{click:function(t){return e.addOption()}}},[e._v("Add option")])],1),e._l(e.model.options,(function(t,a){return l("el-form-item",{key:"options_"+a,attrs:{inline:!0}},[l("el-row",{attrs:{gutter:10}},[l("el-col",{attrs:{span:8}},[l("el-form-item",{attrs:{rules:[{required:!0}],prop:"options."+a+".name"}},[l("el-input",{attrs:{placeholder:"Name",width:"100%"},model:{value:t.name,callback:function(l){e.$set(t,"name",l)},expression:"option.name"}})],1)],1),l("el-col",{attrs:{span:16}},[l("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.removeOption(a)}}},[e._v("Delete")])],1)],1)],1)}))],2):"python"===e.model.type?l("div",[l("el-form-item",{attrs:{label:"Module"}},[l("el-input",{staticStyle:{width:"150px"},model:{value:e.model.module,callback:function(t){e.$set(e.model,"module",t)},expression:"model.module"}})],1),l("el-form-item",{attrs:{label:"Path"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.path,callback:function(t){e.$set(e.model,"path",t)},expression:"model.path"}})],1),l("el-form-item",{attrs:{label:"Home"}},[l("el-input",{staticStyle:{width:"300px"},model:{value:e.model.home,callback:function(t){e.$set(e.model,"home",t)},expression:"model.home"}})],1)],1):e._e()],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("Cancel")]),l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitDataForm()}}},[e._v("Submit")])],1)],1)],1)},s=[],o=(l("4de4"),l("b0c0"),l("53ca")),i={namespaces:{},uidmap:[],gidmap:[],limits:{},type:"go",targets:[],admins:[],users:[],arguments:[],classpath:[],options:[]},r={filters:{statusFilter:function(e){var t={published:"success",draft:"gray",deleted:"danger"};return t[e]}},data:function(){return{activeName:"generic",langs:{go:"Go",php:"PHP",perl:"Perl",ruby:"Ruby",java:"Java",python:"Python"},list:null,listLoading:!1,model:Object.assign({},i),dialogFormVisible:!1,dialogStatus:"",textMap:{create:"Add application",update:"Update application"},rules:{name:[{required:!0,trigger:"blur"}],type:[{required:!0,trigger:"blur"}]}}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this.$store.getters.apps;if(e){var t,l,a,s=[];for(l in e){var i=e[l],r=i.isolation,n={},c=[],m=[];r&&(r.namespaces&&(n=r.namespaces),r.uidmap&&(c=r.uidmap),r.gidmap&&(m=r.gidmap));var u=i.limits?i.limits:{},d={name:l,user:i.user,group:i.group,working_directory:i.working_directory,namespaces:n,uidmap:c,gidmap:m,limits:u,type:i.type},p=i.processes;switch("object"===Object(o["a"])(p)?(d.max=p.max,d.spare=p.spare,d.idle_timeout=p.idle_timeout):d.processes=p,d.arguments=[],d.classpath=[],d.options=[],d.targets=[],d.admins=[],d.users=[],d.type){case"go":d.executable=i.executable;var f=[],h=i.arguments;if(h)for(t=0;t<h.length;t++)f.push({name:h[t]});d.arguments=f;break;case"php":if(i.targets){var b=[];for(l in i.targets){var g=i["targets"][l];b.push({name:l,root:g.root,php_script:g.script,index:g.index})}d.targets=b}else d.root=i.root,d.php_script=i.script,d.index=i.index;if(i.options){if(a=i.options,d.file=a.file,a.admin){var v=[];for(l in a.admin)v.push({name:l,value:a.admin[l]});d.admins=v}if(a.user){var y=[];for(l in a.user)y.push({name:l,value:a.user[l]});d.users=y}}break;case"perl":d.perl_script=i.script;break;case"ruby":d.ruby_script=i.script;break;case"java":d.webapp=i.webapp,d.unit_jars=i.unit_jars;var x=[],k=i.classpath;if(k)for(t=0;t<k.length;t++)x.push({name:k[t]});d.classpath=x,a=[];var _=i.options;if(_)for(t=0;t<_.length;t++)a.push({name:_[t]});d.options=a;break;case"python":d.module=i.module,d.path=i.path,d.home=i.home;break}s.push(d)}this.list=s}},resetFormModel:function(){this.model=Object.assign({},i)},submitDataForm:function(){var e=this;this.$refs.form.validate((function(t){t&&e.$store.dispatch("conf/saveApp",{data:e.model,list:e.list}).then((function(t){e.dialogFormVisible=!1,e.fetchData(),e.$notify({title:"Success",message:t,type:"success",duration:2e3})}))}))},handleCreate:function(){var e=this;this.resetFormModel(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs.form.clearValidate()}))},handleUpdate:function(e){var t=this;this.model=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs.form.clearValidate()}))},handleDelete:function(e){var t=this;this.$confirm("Are you sure?",{confirmButtonText:"Yes",cancelButtonText:"No"}).then((function(){t.$store.dispatch("conf/removeApp",e.name).then((function(e){t.fetchData(),t.$notify({title:"Success",message:e,type:"success",duration:2e3})}))})).catch((function(){}))},addUidmap:function(){this.model.uidmap.push({})},removeUidmap:function(e){this.model.uidmap=this.model.uidmap.filter((function(t,l){return l!==e}))},addGidmap:function(){this.model.gidmap.push({})},removeGidmap:function(e){this.model.gidmap=this.model.gidmap.filter((function(t,l){return l!==e}))},addTarget:function(){this.model.targets.push({})},removeTarget:function(e){this.model.targets=this.model.targets.filter((function(t,l){return l!==e}))},addAdmin:function(){this.model.admins.push({}),console.log(JSON.stringify(this.model.admins))},removeAdmin:function(e){this.model.admins=this.model.admins.filter((function(t,l){return l!==e}))},addUser:function(){this.model.users.push({}),console.log(JSON.stringify(this.model.users))},removeUser:function(e){this.model.users=this.model.users.filter((function(t,l){return l!==e}))},addArgument:function(){this.model.arguments.push({})},removeArgument:function(e){this.model.arguments=this.model.arguments.filter((function(t,l){return l!==e}))},addClasspath:function(){this.model.classpath.push({})},removeClasspath:function(e){this.model.classpath=this.model.classpath.filter((function(t,l){return l!==e}))},addOption:function(){this.model.options.push({})},removeOption:function(e){this.model.options=this.model.options.filter((function(t,l){return l!==e}))}}},n=r,c=(l("0184"),l("2877")),m=Object(c["a"])(n,a,s,!1,null,null,null);t["default"]=m.exports},f958:function(e,t,l){}}]);