import{d as b,L as k,h as c,Y as w,r as u,o as y,f as U,w as t,b as o,a7 as _,a8 as m,l as r,E as C}from"./index.e3896b23.js";import{g as v,u as E}from"./metadata.0c954be9.js";const B=r("\u7F16\u8F91"),x=r("\u4FDD\u5B58"),A=r("\u524D\u5F80\u67E5\u770B"),V=r("\u53D6\u6D88"),N=b({name:"Data-developmentSys-configIndex"}),O=b({...N,setup(R){k(()=>{v().then(n=>{Object.assign(e,n.data),e.neo4jUrl||(e.neo4jUrl="http://localhost:7474/")})});const p=c(),h=c({neo4jUrl:[{required:!0,message:"\u5FC5\u586B\u9879\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),a=c(!0),e=w({neo4jUrl:"http://localhost:7474/"}),j=()=>{p.value.validate(n=>{if(!n)return!1;E(e).then(l=>{C.success("\u63D0\u4EA4\u6210\u529F"),v().then(d=>{Object.assign(e,d.data)}),a.value=!0})})},F=()=>{window.open(e.neo4jUrl,"_blank")};return(n,l)=>{const d=u("el-input"),f=u("el-form-item"),s=u("el-button"),g=u("el-form"),D=u("el-card");return y(),U(D,{"body-style":"height: calc(100vh - 170px )"},{default:t(()=>[o(g,{ref_key:"dataFormRef",ref:p,rules:h.value,"label-width":"auto",model:e},{default:t(()=>[o(f,{label:"neo4j \u8BBF\u95EE\u5730\u5740","label-width":"auto"},{default:t(()=>[o(d,{disabled:a.value,modelValue:e.neo4jUrl,"onUpdate:modelValue":l[0]||(l[0]=i=>e.neo4jUrl=i)},null,8,["disabled","modelValue"])]),_:1}),o(f,{"label-width":"auto"},{default:t(()=>[_(o(s,{type:"primary",onClick:l[1]||(l[1]=i=>a.value=!1)},{default:t(()=>[B]),_:1},512),[[m,a.value]]),_(o(s,{type:"success",onClick:j},{default:t(()=>[x]),_:1},512),[[m,!a.value]]),o(s,{type:"primary",onClick:F},{default:t(()=>[A]),_:1}),_(o(s,{onClick:l[2]||(l[2]=i=>a.value=!0)},{default:t(()=>[V]),_:1},512),[[m,!a.value]])]),_:1})]),_:1},8,["rules","model"])]),_:1})}}});export{O as default};
