import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{_ as e}from"./index99.js?v=1763625242172";import{_ as t}from"./index.vue_vue_type_script_setup_true_lang10.js?v=1763625242172";import{k as l,P as o,r,e as p,R as s,S as i,X as u,a3 as d,U as m,V as n,l as c,v as _}from"./vue.js?v=1763625242172";import{bU as v,gn as h}from"./page_layout.js?v=1763625242172";import"./public.js?v=1763625242172";import g from"./index100.js?v=1763625242172";import{dV as b,dP as f}from"./naive.js?v=1763625242172";import"./index98.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./common.js?v=1763625242172";import"./theme-monokai.js?v=1763625242172";import"./file.js?v=1763625242172";const j={class:"p-20px"},x={class:"w-100px mr-10px"},k={class:"w-240px"},y={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:""}),R=[{label:I("Docker.LocalImage.build_1"),value:"path"},{label:I("Docker.LocalImage.build_5"),value:"data"}],E={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=b,p=t,v=f,h=e,D=a;return s(),i("div",j,[u(D,{ref_key:"formRef",ref:U,model:n($),rules:E},{default:d((()=>[u(v,{label:l.$t("Docker.LocalImage.build_1"),path:"path"},{default:d((()=>[m("div",x,[u(r,{value:n($).type,"onUpdate:value":o[0]||(o[0]=a=>n($).type=a),options:R},null,8,["value"])]),c(m("div",k,[u(p,{value:n($).path,"onUpdate:value":o[1]||(o[1]=a=>n($).path=a),placeholder:l.$t("Docker.LocalImage.build_2")},null,8,["value","placeholder"])],512),[[_,"path"===n($).type]])])),_:1},8,["label"]),c(u(v,{label:" ",path:"data"},{default:d((()=>[m("div",y,[u(g,{value:n($).data,"onUpdate:value":o[2]||(o[2]=a=>n($).data=a),lang:"json",theme:"monokai",height:"290","show-tips":!1},null,8,["value"])])])),_:1},512),[[_,"data"===n($).type]]),u(v,{label:l.$t("Docker.LocalImage.build_3"),"show-feedback":!1},{default:d((()=>[m("div",w,[u(h,{value:n($).tag,"onUpdate:value":o[3]||(o[3]=a=>n($).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};
