import{c as e,h as a,r as s,k as o,l as t,e as l,x as r,p as i,N as m,a7 as p,a4 as c}from"./base-lib.js?v=1761009159";import{_ as n}from"./index101.js?v=1761009159";import{f as u}from"./validator.js?v=1761009159";import{I as d,e as f}from"./utils-lib.js?v=1761009159";import{g as h,bh as _}from"./useStore4.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index104.js?v=1761009159";import"./column.js?v=1761009159";const b={class:"flex flex-col p-[1.6rem] lib-box"},g=f(e({__name:"import-mirror-dialog",props:{compData:{default:()=>({})}},emits:["close"],setup(e,{expose:f,emit:g}){const j=g,{refs:{isRefreshTableList:v}}=h(),x=a({path:""}),y=s(),k={path:[{required:!0,message:"请输入镜像路径",trigger:["blur","change"]}]},w=()=>{u({type:"file",change:e=>{x.path=e}})};return f({onConfirm:async()=>{await y.value.validate((async e=>{e&&d({request:_({data:JSON.stringify({path:x.path})}),message:!0,success:({status:e})=>{e&&(v.value=!0,j("close"))}})}))}}),(e,a)=>{const s=n,u=p,d=c;return o(),t("div",b,[l(d,{ref_key:"cmdFormRef",ref:y,size:"small",model:i(x),rules:k,class:"relative w-full","label-position":"right",onSubmit:a[2]||(a[2]=m((()=>{}),["prevent"]))},{default:r((()=>[l(u,{prop:"path",label:"路径"},{default:r((()=>[l(s,{modelValue:i(x).path,"onUpdate:modelValue":a[0]||(a[0]=e=>i(x).path=e),class:"!w-[24rem]",icon:"icon-file_mode",onIconClick:w,onChangePassive:a[1]||(a[1]=e=>{x.path=x.path.replace(/\s+/g,"")}),placeholder:"请输入镜像路径"},null,8,["modelValue"])])),_:1})])),_:1},8,["model"])])}}}),[["__scopeId","data-v-c6646ab0"]]);export{g as default};
