import{aP as e,P as r,hl as a,K as c}from"./utils-lib.js?v=1761009159";import{c as o,aA as s,g as l,v as u,N as m,y as i}from"./base-lib.js?v=1761009159";import{j as t}from"./form-item.js?v=1761009159";import{m as n}from"./validator.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const{getSet:d}=e(),k=[{label:"默认",value:"default"},{label:"自定义",value:"custom"},{label:"二进制安装",value:"binary"}],p=[{label:"mirrors.aliyun.com/docker-ce(阿里云镜像)",value:"mirrors.aliyun.com/docker-ce"},{label:"mirrors.tencent.com/docker-ce(腾讯云镜像)",value:"mirrors.tencent.com/docker-ce"},{label:"repo.huaweicloud.com/docker-ce(华为云镜像)",value:"repo.huaweicloud.com/docker-ce"},{label:"mirror.azure.cn/docker-ce(微软 Azure 镜像)",value:"mirror.azure.cn/docker-ce"},{label:"mirrors.163.com/docker-ce(网易云镜像)",value:"mirrors.163.com/docker-ce"},{label:"mirrors.tuna.tsinghua.edu.cn/docker-ce(清华大学 TUNA 镜像)",value:"mirrors.tuna.tsinghua.edu.cn/docker-ce"},{label:"mirrors.pku.edu.cn/docker-ce(北京大学镜像)",value:"mirrors.pku.edu.cn/docker-ce"},{label:"mirrors.nju.edu.cn/docker-ce(南京大学镜像)",value:"mirrors.nju.edu.cn/docker-ce"},{label:"mirror.sjtu.edu.cn/docker-ce(上海交通大学镜像)",value:"mirror.sjtu.edu.cn/docker-ce"},{label:"mirrors.ustc.edu.cn/docker-ce(中国科技大学镜像)",value:"mirrors.ustc.edu.cn/docker-ce"},{label:"mirror.iscas.ac.cn/docker-ce(中国科学院计算技术研究所镜像)",value:"mirror.iscas.ac.cn/docker-ce"},{label:"download.docker.com(Docker 官方镜像)",value:"download.docker.com"}],b=o({__name:"index",setup(e,{expose:o}){const b=s("popupClose",()=>{}),{BtForm:v,submit:y,param:g}=c({data:()=>({url:"",installType:"default"}),options:()=>l(()=>[t("安装方式","installType",k,{attrs:{class:"!w-[47rem]"},rules:[{required:!0,message:"请选择安装方式",trigger:["blur","change"]}]}),..."custom"===g.value.installType?[t("镜像源","url",p,{attrs:{class:"!w-[47rem]"},rules:[{required:!0,message:"请选择镜像源",trigger:["blur","change"]}]})]:[]]),submit:async(e,c,o)=>{await c(),(async(e,c)=>{try{await r({request:a({type:"binary"===e.value.installType?1:0,..."custom"==e.value.installType?{url:e.value.url}:{}}),message:!0,success:({status:e})=>{e&&(n(),d(),c())}})}catch(o){}})(e,b)}});return o({onConfirm:y}),(e,r)=>(u(),m(i(v),{class:"p-[1.6rem]"}))}});export{b as default};
