import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-CgKUoL60.js?v=1773287522785";import{bm as w,h4 as $}from"./index-BTglIPU2.js?v=1773287522785";import{k as D,R as I,r as L,e as R,$ as C,Z as N,a0 as t,a9 as n,_ as B,S as r,j as V,N as y}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as E,au as S,b as U,av as j}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./index-K4YGya6V.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const M={class:"px-20px pt-24px pb-8px"},T={class:"w-240px"},K=D({__name:"index",props:{row:{}},setup(_,{expose:m}){const u=_,{t:c}=I(),i=w(),l=L(null),e=R({path:"",name:""}),f={name:{trigger:["blur","input"],validator:()=>e.name.trim()===""?new Error(c("Docker.LocalImage.export_4")):!0}};return m({onConfirm:async()=>{var o;await((o=l.value)==null?void 0:o.validate()),await $({...y(e),id:u.row.id}),i.setRefresh(!0)}}),(o,a)=>{const d=h,p=E,x=U,g=j,v=S,b=k;return C(),N("div",M,[t(b,{ref_key:"formRef",ref:l,model:r(e),rules:f},{default:n(()=>[t(p,{label:o.$t("Docker.LocalImage.index_22")},{default:n(()=>[B("div",T,[t(d,{value:r(e).path,"onUpdate:value":a[0]||(a[0]=s=>r(e).path=s),placeholder:o.$t("Docker.LocalImage.index_23")},null,8,["value","placeholder"])])]),_:1},8,["label"]),t(p,{label:o.$t("Docker.LocalImage.export_3"),path:"name"},{default:n(()=>[t(v,{class:"w-240px"},{default:n(()=>[t(x,{value:r(e).name,"onUpdate:value":a[1]||(a[1]=s=>r(e).name=s),placeholder:o.$t("Docker.LocalImage.export_4")},null,8,["value","placeholder"]),t(g,null,{default:n(()=>a[2]||(a[2]=[V(".tar")])),_:1,__:[2]})]),_:1})]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{K as default};
