System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./validator-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./column-legacy.js?v=1761009159"],function(e,l){"use strict";var n,a,o,t,r,u,s,p,i,c,m,d,f,_,V,v,y,h,b,j,g,T;return{setters:[function(e){n=e.c,a=e.s,o=e.q,t=e.a6,r=e.v,u=e.x,s=e.e,p=e.B,i=e.y,c=e.z,m=e.F,d=e.C,f=e.A,_=e.R,V=e.ab,v=e.T,y=e.G,h=e.a9},function(e){b=e.ag,j=e.$,g=e._},function(e){T=e.z},null,null,null],execute:function(){var l={class:"flex flex-col p-[2rem]"},w={class:"flex items-center mt-4px"};e("default",g(n({__name:"import",setup:function(e,n){var g=n.expose,x=a(T()),U=x.fileName,k=x.cmdForm,C=x.cmdFormRef,z=T(),P=z.cmdRules,q=z.helpList,F=z.projectTypeRadio,R=z.onConfirm,H=z.importPlugin,A=z.changeProjectType,I=z.initImportForm,S=z.$reset_import_form;return o(I),t(S),g({onConfirm:R}),function(e,n){var a=b,o=V,t=v,g=y,T=j,x=h;return r(),u("div",l,[s(x,{ref_key:"cmdFormRef",ref:C,size:"small",model:i(k),rules:i(P),class:"relative w-full","label-position":"right",onSubmit:n[9]||(n[9]=_(function(){},["prevent"]))},{default:p(function(){return[s(o,{label:"项目类型",prop:"project_type"},{default:p(function(){return[s(a,{type:"button",modelValue:i(k).project_type,"onUpdate:modelValue":n[0]||(n[0]=function(e){return i(k).project_type=e}),onChange:i(A),options:i(F)},null,8,["modelValue","onChange","options"])]}),_:1}),s(o,{prop:"name",label:"英文名"},{default:p(function(){return[s(t,{class:"!w-[19rem]",modelValue:i(k).name,"onUpdate:modelValue":n[1]||(n[1]=function(e){return i(k).name=e}),placeholder:"项目英文名"},null,8,["modelValue"]),n[10]||(n[10]=c("span",{class:"helpTip"},"格式: [0-9A-Za-z_-]+，不要带有空格和特殊字符",-1))]}),_:1,__:[10]}),s(o,{prop:"title",label:"中文名"},{default:p(function(){return[s(t,{class:"!w-[19rem]",modelValue:i(k).title,"onUpdate:modelValue":n[2]||(n[2]=function(e){return i(k).title=e}),placeholder:"项目中文名"},null,8,["modelValue"]),n[11]||(n[11]=c("span",{class:"helpTip"},"用于显示到列表的名称",-1))]}),_:1,__:[11]}),"java"!==i(k).project_type?(r(),u(m,{key:0},[s(o,{prop:"php",label:"PHP版本"},{default:p(function(){return[s(t,{class:"!w-[19rem]",modelValue:i(k).php,"onUpdate:modelValue":n[3]||(n[3]=function(e){return i(k).php=e}),placeholder:"如：53,54,55,56,70,71,72"},null,8,["modelValue"]),n[12]||(n[12]=c("span",{class:"helpTip"},'多个请使用","(逗号)隔开，不要使用PHP5.2',-1))]}),_:1,__:[12]}),s(o,{prop:"enable_functions",label:"解禁的函数"},{default:p(function(){return[s(t,{class:"!w-[19rem]",modelValue:i(k).enable_functions,"onUpdate:modelValue":n[4]||(n[4]=function(e){return i(k).enable_functions=e}),placeholder:"如：system,exec"},null,8,["modelValue"]),n[13]||(n[13]=c("span",{class:"helpTip"},'多个请使用","(逗号)隔开，只解禁必要函数',-1))]}),_:1,__:[13]})],64)):(r(),u(m,{key:1},[s(o,{prop:"java_version",label:"JDK版本"},{default:p(function(){return[s(t,{class:"!w-[19rem]",modelValue:i(k).java_version,"onUpdate:modelValue":n[5]||(n[5]=function(e){return i(k).java_version=e}),placeholder:"如：jdk1.8.0_371, jdk1.7.0_80"},null,8,["modelValue"]),n[14]||(n[14]=c("span",{class:"helpTip"},'多个请使用","(逗号)隔开',-1))]}),_:1,__:[14]}),s(o,{prop:"mysql_version",label:"Mysql版本"},{default:p(function(){return[s(t,{class:"!w-[19rem]",modelValue:i(k).mysql_version,"onUpdate:modelValue":n[6]||(n[6]=function(e){return i(k).mysql_version=e}),placeholder:"如：5.5,5.6,5.7,8.0"},null,8,["modelValue"]),n[15]||(n[15]=c("span",{class:"helpTip"},'多个请使用","(逗号)隔开',-1))]}),_:1,__:[15]})],64)),s(o,{prop:"version",label:"项目版本"},{default:p(function(){return[s(t,{class:"!w-[19rem]",modelValue:i(k).version,"onUpdate:modelValue":n[7]||(n[7]=function(e){return i(k).version=e}),placeholder:"如：5.2.1"},null,8,["modelValue"]),n[16]||(n[16]=c("span",{class:"helpTip"},"当前导入的项目版本",-1))]}),_:1,__:[16]}),s(o,{prop:"ps",label:"简介"},{default:p(function(){return[s(t,{class:"!w-[29rem]",modelValue:i(k).ps,"onUpdate:modelValue":n[8]||(n[8]=function(e){return i(k).ps=e})},null,8,["modelValue"])]}),_:1}),s(o,{prop:"dep_zip",label:"上传项目包"},{default:p(function(){return[c("div",w,[s(g,{title:"导入项目",size:"small",class:"!mr-[.5rem]",onClick:i(H)},{default:p(function(){return n[17]||(n[17]=[d("选择文件",-1)])}),_:1,__:[17]},8,["onClick"]),c("span",null,f(i(U)),1)])]}),_:1}),s(T,{class:"mt-[2rem] ml-[2rem]",options:i(q),"list-style":"disc"},null,8,["options"])]}),_:1},8,["model","rules"])])}}}),[["__scopeId","data-v-5973f6af"]]))}}});
