System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764830988434","./index-legacy97.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy10.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./public-legacy.js?v=1764830988434","./index-legacy98.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./index-legacy96.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./theme-monokai-legacy.js?v=1764830988434","./file-legacy.js?v=1764830988434"],function(e,a){"use strict";var l,t,u,o,c,p,r,d,s,n,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,s=e.V,n=e.W,i=e.a3,g=e.l,_=e.S,v=e.U,y=e.v},e=>{h=e.bq,m=e.gg},null,e=>{b=e.default},e=>{f=e.dR,j=e.dV},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=r({type:"path",path:"",data:"",tag:""}),$=[{label:I("Docker.LocalImage.build_1"),value:"path"},{label:I("Docker.LocalImage.build_5"),value:"data"}],E={path:{trigger:["blur","input"],validator:()=>"path"!==R.type||""!==R.path.trim()||new Error(I("Docker.LocalImage.build_6"))},data:{trigger:["blur","input"],validator:()=>"data"!==R.type||""!==R.data.trim()||new Error(I("Docker.LocalImage.build_7"))}};return o({onConfirm:async()=>{await(U.value?.validate());const e="path"===R.type?{path:R.path,tag:R.tag}:{data:R.data,tag:R.tag};await m(e),L.setRefresh(!0)}}),(e,o)=>{const c=j,p=u,r=f,h=t,m=l;return s(),d("div",a,[n(m,{ref_key:"formRef",ref:U,model:v(R),rules:E},{default:i(()=>[n(r,{label:e.$t("Docker.LocalImage.build_1"),path:"path"},{default:i(()=>[_("div",x,[n(c,{value:v(R).type,"onUpdate:value":o[0]||(o[0]=e=>v(R).type=e),options:$},null,8,["value"])]),g(_("div",k,[n(p,{value:v(R).path,"onUpdate:value":o[1]||(o[1]=e=>v(R).path=e),placeholder:e.$t("Docker.LocalImage.build_2")},null,8,["value","placeholder"])],512),[[y,"path"===v(R).type]])]),_:1},8,["label"]),g(n(r,{label:" ",path:"data"},{default:i(()=>[_("div",w,[n(b,{value:v(R).data,"onUpdate:value":o[2]||(o[2]=e=>v(R).data=e),lang:"json",theme:"monokai",height:"290","show-tips":!1},null,8,["value"])])]),_:1},512),[[y,"data"===v(R).type]]),n(r,{label:e.$t("Docker.LocalImage.build_3"),"show-feedback":!1},{default:i(()=>[_("div",D,[n(h,{value:v(R).tag,"onUpdate:value":o[3]||(o[3]=e=>v(R).tag=e),rows:3,placeholder:e.$t("Docker.LocalImage.build_4")},null,8,["value","placeholder"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}}))}}});
