import{H as e}from"./store2.js?v=20260328163632";import{k as s,ah as a,o as l,az as t,V as c,W as o,X as n,Z as i,Y as p,j as r,F as d,L as m,O as u,K as x,_ as v,a1 as f,a3 as k}from"./base-lib.js?v=20260328163632";import{u as h,l as b,h as y,_ as w}from"./utils-lib.js?v=20260328163632";import{n as _,b as g,N as j,k as S,F as U,l as z,B as C}from"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const W={class:"h-full p-20px"},F={class:"commend-title"},H={class:"text-16px inline-block"},L={class:"commend-msg"},M={key:0},N={class:"flex recommend-soft-list overflow-y-auto flex-wrap gap-[15px]"},O={class:"rounded-4px recommend-cont"},V={class:"mb-[10px] pl-5px recommend-title text-center inline-block w-full font-bold text-[18px]"},q={class:"soft-list"},A={key:0,class:"flex items-baseline my-8"},B={class:"mr-10px whitespace-nowrap"},D={class:"whitespace-nowrap"},I={class:"whitespace-nowrap"},K={key:0,class:"pt-20px pb-10px text-danger text-center"},P={href:"https://www.bt.cn/bbs/thread-34406-1-1.html",target:"_blank",class:"btlink"},R={key:1,class:"h-47px"},X={class:"flex justify-center"},Y=w(s({__name:"index",emits:["close"],setup(s,{emit:w}){const{isWin:Y}=h(),Z=e(),{recommend:E,emits:G}=a(Z),J=w;return G.value=J,l((()=>{t(document.querySelector(".close-ad"),"click",(()=>{Z.cancelShowRec()}))})),(e,s)=>{const a=_,l=g,t=j,h=S,w=U,G=z,J=C;return c(),o("div",W,[n("div",F,[n("div",H,i(p(b)("一键安装套件")),1),n("div",L,[r("  -- "+i(p(b)("我们为您提供以下套件一键安装，请按需选择或在")),1),n("span",{class:"text-primary cursor-pointer hover:text-[#1d9534]",onClick:s[0]||(s[0]=(...e)=>p(Z).goSoft&&p(Z).goSoft(...e))},i(p(b)("软件商店")),1),r(i(p(b)("页面中手动安装，推荐安装")),1),p(Y)?(c(),o(d,{key:1},[r(i(p(b)("Nginx套件，兼容性最佳。")),1)],64)):(c(),o("span",M,'"'+i(p(b)("LAMP"))+'"',1))])]),n("div",N,[(c(!0),o(d,null,m(p(E),((e,s)=>(c(),o("div",{key:e.type,class:"recommend-soft-item flex-1"},[n("div",O,[n("span",V,i(e.title),1),n("ul",q,[(c(!0),o(d,null,m(e.soft,((e,n)=>(c(),o("li",{key:n,class:"flex items-center"},[u(p(y),{type:"icons",src:"soft/ico-".concat(e.icon).concat(e.icon.includes(".png")?"":".svg"),class:x(["ml-2px mr-10px","docker"!==e.icon?"!w-[32px] !max-h-[32px]":"!mr-[6px] !w-[55px] !h-[32px]"])},null,8,["src","class"]),"docker"!==e.icon?(c(),v(a,{key:0,value:e.value,"onUpdate:value":[s=>e.value=s,a=>p(Z).changeSoftwareVersion(e,s)],class:"flex-1 mr-[20px]",size:"small",options:e.options,consistentMenuWidth:!1},null,8,["value","onUpdate:value","options"])):f("",!0),"docker"===e.icon?(c(),v(l,{key:1,class:"no-drap mr-[20px]",value:p(b)("Docker服务"),readOnly:""},null,8,["value"])):f("",!0),u(t,{size:"large",checked:e.selected,"onUpdate:checked":s=>e.selected=s,disabled:e.disabled},null,8,["checked","onUpdate:checked","disabled"])])))),128))]),p(Y)?(c(),o(d,{key:1},["apache"===e.type?(c(),o("div",K,[r(i(p(b)("需要专业运维，否则会占用大量内存"))+" ",1),n("a",P," > "+i(p(b)("使用帮助")),1)])):(c(),o("div",R))],64)):(c(),o("div",A,[n("span",B,i(p(b)("安装方式"))+"：",1),u(G,{value:e.install,"onUpdate:value":s=>e.install=s,class:"whitespace-nowrap"},{default:k((()=>[u(w,{class:"item popper-dark",placement:"top-start"},{default:k((()=>[n("div",D,i(p(b)("即rpm/deb，安装时间极快（5-10分钟），版本与稳定性略低于编译安装，适合快速部署测试")),1)])),trigger:k((()=>[u(h,{class:"!mr-[12px]",value:1},{default:k((()=>[r(i(p(b)("极速安装")),1)])),_:1})])),_:1}),u(w,{class:"item popper-dark",placement:"top-start"},{default:k((()=>[n("div",I,i(p(b)("安装时间长（30分钟到2小时），性能最大化，适合生产环境")),1)])),trigger:k((()=>[u(h,{class:"!mr-0",value:0},{default:k((()=>[r(i(p(b)("编译安装")),1)])),_:1})])),_:1})])),_:2},1032,["value","onUpdate:value"])])),n("div",X,[u(J,{type:"primary",onClick:e=>p(Z).installSoft(s)},{default:k((()=>[r(i(p(b)("一键安装")),1)])),_:2},1032,["onClick"])])])])))),128))])])}}}),[["__scopeId","data-v-b9ab7632"]]);export{Y as default};
