System.register(["./utils-lib-legacy.js?v=20260328163632","./naive-ui-legacy.js?v=20260328163632","./base-lib-legacy.js?v=20260328163632","./__commonjsHelpers__-legacy.js?v=20260328163632","./env-lib-legacy.js?v=20260328163632"],(function(a,t){"use strict";var s,e,l,c,n,r,o,p,i,u,f,m,d,x,v,D;return{setters:[function(a){s=a.l,e=a.a9,l=a._},function(a){c=a.A,n=a.B},function(a){r=a.k,o=a.c,p=a.V,i=a.W,u=a.X,f=a.Z,m=a.j,d=a.Y,x=a.O,v=a.a1,D=a.a3},null,null],execute:function(){var t={class:"create-web-bg"},y={class:"flex items-center justify-center mb-16px"},g={class:"text-24px font-bold"},_={key:0,class:"create-info"},b={class:"flex w-full px-24px pt-16px"},S={class:"flex-1"},j={key:0,class:"flex flex-col"},q={class:"flex items-center"},h={class:"flex items-center"},w={key:1,class:"text-danger my-8px"},k={key:2,class:"flex justify-center items-center w-full h-full text-light font-bold"},F={class:"flex-1"},P={key:0,class:"text-danger my-8px"},T={key:1,class:"flex justify-center items-center w-full h-full text-light font-bold"},C={key:2,class:"flex flex-col"},W={key:0,class:"flex items-center"},z={class:"flex items-center"},A={class:"flex items-center"},B={class:"flex justify-center my-8px"};a("default",l(r({__name:"add-result",props:{compData:{default:function(){return{ftp:!0,sql:!0,ftpStatus:!0,databaseStatus:!0,ftpData:{username:"",password:""},sqlData:{username:"",password:""},siteStatus:!0,site:{name:""},accessSite:"",record:{local_ip:"",rec_not_list:[],server_ip:""}}}}},setup:function(a){var l=a;o((function(){var a;if(null!==(a=l.compData)&&void 0!==a&&a.record){var t=l.compData.record.local_ip;return"echo ".concat(t," ").concat(l.compData.site.name," >> C:\\Windows\\System32\\drivers\\etc\\hosts")}return""})),o((function(){var a;if(null!==(a=l.compData)&&void 0!==a&&a.record){var t,s=null===(t=l.compData)||void 0===t?void 0:t.record,e=s.server_ip,c=s.rec_not_list;return"echo ".concat(e," ").concat(c.join(" ")," >> /etc/hosts")}return""}));var r=function(){var a=l.compData,t=a.ftp,c=a.ftpStatus,n=a.ftpData,r=a.sql,o=a.databaseStatus,p=a.sqlData,i=s("FTP账号资料")+"\n"+s("用户：")+n.username+"\n"+s("密码：")+n.password,u=s("数据库账号资料")+"\n"+s("数据库名：")+p.username+"\n"+s("用户：")+p.username+"\n"+s("密码：")+p.password,f=(t&&c?i:"")+(t&&c&&r&&o?"\n\n":"")+(r&&o?u:"");e({value:f})};return function(a,e){var l=c,o=n;return p(),i("div",t,[u("div",y,[e[0]||(e[0]=u("i",{class:"svgtofont-el-success-filled text-primary mr-10px !text-30px"},null,-1)),u("span",g,f(a.compData.title),1)]),a.compData.ftp||a.compData.sql?(p(),i("div",_,[u("div",b,[u("div",S,[a.compData.ftp&&a.compData.ftpStatus?(p(),i("div",j,[m(f(d(s)("FTP账号资料"))+" ",1),x(l,{class:"!my-8px",dashed:!0}),u("span",q,[m(f(d(s)("用户："))+" ",1),u("strong",null,f(a.compData.ftpData.username),1)]),u("span",h,[m(f(d(s)("密码："))+" ",1),u("strong",null,f(a.compData.ftpData.password),1)])])):v("",!0),a.compData.ftp&&!a.compData.ftpStatus?(p(),i("div",w,f(d(s)("FTP账号添加失败！")),1)):a.compData.ftp?v("",!0):(p(),i("div",k,[e[1]||(e[1]=u("span",{class:"ftp-img"},null,-1)),u("span",null,f(d(s)("未创建FTP")),1)]))]),x(l,{vertical:"",class:"!h-66px !mx-24px"}),u("div",F,[a.compData.sql&&!a.compData.databaseStatus?(p(),i("div",P,f(d(s)("数据库添加失败！")),1)):a.compData.sql?v("",!0):(p(),i("div",T,[e[2]||(e[2]=u("span",{class:"sql-img"},null,-1)),u("span",null,f(d(s)("未创建数据库")),1)])),a.compData.sql&&a.compData.databaseStatus?(p(),i("div",C,[m(f(d(s)("数据库账号资料"))+" ",1),x(l,{class:"!my-8px",dashed:!0}),a.compData.siteStatus?(p(),i("span",W,[m(f(d(s)("数据库名："))+" ",1),u("strong",null,f(a.compData.sqlData.username),1)])):v("",!0),u("span",z,[m(f(d(s)("用户："))+" ",1),u("strong",null,f(a.compData.sqlData.username),1)]),u("span",A,[m(f(d(s)("密码："))+" ",1),u("strong",null,f(a.compData.sqlData.password),1)])])):v("",!0)])]),u("div",B,[x(o,{type:"primary",size:"small",onClick:r},{default:D((function(){return[m(f(d(s)("一键复制"))+" ",1),e[3]||(e[3]=u("span",{class:"svgtofont-icon-copy text-14px ml-[4px]"},null,-1))]})),_:1})])])):v("",!0)])}}}),[["__scopeId","data-v-350bd279"]]))}}}));
