System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index-legacy99.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy10.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./index-legacy100.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./index-legacy98.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./theme-monokai-legacy.js?v=1763625242172","./file-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,t,u,o,c,p,r,d,n,s,i,g,_,v,y,h,m,b,f,j;return{setters:[e=>{l=e._},e=>{t=e._},e=>{u=e._},e=>{o=e.k,c=e.P,p=e.r,r=e.e,d=e.R,n=e.S,s=e.X,i=e.a3,g=e.U,_=e.V,v=e.l,y=e.v},e=>{h=e.bU,m=e.gn},null,e=>{b=e.default},e=>{f=e.dV,j=e.dP},null,null,null,null,null],execute:function(){const a={class:"p-20px"},x={class:"w-100px mr-10px"},k={class:"w-240px"},w={class:"w-350px"},D={class:"w-350px"};e("default",o({__name:"index",setup(e,{expose:o}){const{t:I}=c(),L=h(),U=p(null),$=r({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 o({onConfirm:async()=>{await(U.value?.validate());const e="path"===$.type?{path:$.path,tag:$.tag}:{data:$.data,tag:$.tag};await m(e),L.setRefresh(!0)}}),(e,o)=>{const c=f,p=u,r=j,h=t,m=l;return d(),n("div",a,[s(m,{ref_key:"formRef",ref:U,model:_($),rules:E},{default:i((()=>[s(r,{label:e.$t("Docker.LocalImage.build_1"),path:"path"},{default:i((()=>[g("div",x,[s(c,{value:_($).type,"onUpdate:value":o[0]||(o[0]=e=>_($).type=e),options:R},null,8,["value"])]),v(g("div",k,[s(p,{value:_($).path,"onUpdate:value":o[1]||(o[1]=e=>_($).path=e),placeholder:e.$t("Docker.LocalImage.build_2")},null,8,["value","placeholder"])],512),[[y,"path"===_($).type]])])),_:1},8,["label"]),v(s(r,{label:" ",path:"data"},{default:i((()=>[g("div",w,[s(b,{value:_($).data,"onUpdate:value":o[2]||(o[2]=e=>_($).data=e),lang:"json",theme:"monokai",height:"290","show-tips":!1},null,8,["value"])])])),_:1},512),[[y,"data"===_($).type]]),s(r,{label:e.$t("Docker.LocalImage.build_3"),"show-feedback":!1},{default:i((()=>[g("div",D,[s(h,{value:_($).tag,"onUpdate:value":o[3]||(o[3]=e=>_($).tag=e),rows:3,placeholder:e.$t("Docker.LocalImage.build_4")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
