import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{_ as e}from"./index100.js?v=1753954525509";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang9.js?v=1753954525509";import{k as l,P as o,r,e as p,U as s,V as u,Q as i,a2 as d,W as m,X as _,l as c,v as n}from"./vue.js?v=1753954525509";import{bg as v,ft as h}from"./page_layout.js?v=1753954525509";import"./public.js?v=1753954525509";import{_ as g}from"./index.vue_vue_type_script_setup_true_lang14.js?v=1753954525509";import{cG as f,cA as b}from"./naive.js?v=1753954525509";import"./index96.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./common.js?v=1753954525509";import"./theme-chrome.js?v=1753954525509";import"./file2.js?v=1753954525509";const j={class:"p-20px"},x={class:"w-100px mr-10px"},y={class:"w-240px"},k={class:"w-350px"},w={class:"w-350px"},D=l({__name:"index",setup(l,{expose:D}){const{t:I}=o(),L=v(),U=r(null),$=p({type:"path",path:"",data:"",tag:""}),E=[{label:I("Docker.LocalImage.build_1"),value:"path"},{label:I("Docker.LocalImage.build_5"),value:"data"}],R={path:{trigger:["blur","input"],validator:()=>"path"!==$.type||""!==$.path.trim()||new Error(I("Docker.LocalImage.build_6"))},data:{trigger:["blur","input"],validator:()=>"data"!==$.type||""!==$.data.trim()||new Error(I("Docker.LocalImage.build_7"))}};return D({onConfirm:async()=>{var a;await(null==(a=U.value)?void 0:a.validate());const e="path"===$.type?{path:$.path,tag:$.tag}:{data:$.data,tag:$.tag};await h(e),L.setRefresh(!0)}}),(l,o)=>{const r=f,p=t,v=b,h=e,D=a;return s(),u("div",j,[i(D,{ref_key:"formRef",ref:U,model:_($),rules:R},{default:d((()=>[i(v,{label:l.$t("Docker.LocalImage.build_1"),path:"path"},{default:d((()=>[m("div",x,[i(r,{value:_($).type,"onUpdate:value":o[0]||(o[0]=a=>_($).type=a),options:E},null,8,["value"])]),c(m("div",y,[i(p,{value:_($).path,"onUpdate:value":o[1]||(o[1]=a=>_($).path=a),placeholder:l.$t("Docker.LocalImage.build_2")},null,8,["value","placeholder"])],512),[[n,"path"===_($).type]])])),_:1},8,["label"]),c(i(v,{label:" ",path:"data"},{default:d((()=>[m("div",k,[i(g,{value:_($).data,"onUpdate:value":o[2]||(o[2]=a=>_($).data=a),lang:"json",theme:"monokai",height:"290","show-tips":!1},null,8,["value"])])])),_:1},512),[[n,"data"===_($).type]]),i(v,{label:l.$t("Docker.LocalImage.build_3"),"show-feedback":!1},{default:d((()=>[m("div",w,[i(h,{value:_($).tag,"onUpdate:value":o[3]||(o[3]=a=>_($).tag=a),rows:3,placeholder:l.$t("Docker.LocalImage.build_4")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}});export{D as default};
