System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DEYz4m3y.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BtujQJPk.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-DaNJUJqN.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-DGWsVoxN.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./theme-monokai-legacy-fuYB_bfX.js?v=1773287522785","./ace-legacy-ConAV8RQ.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./file-legacy-Bt6Hxu9s.js?v=1773287522785"],(function(a,e){"use strict";var l,t,u,r,c,d,o,s,n,p,i,g,v,_,h,y,m,b,f,j;return{setters:[a=>{l=a._},a=>{t=a._},a=>{u=a._},a=>{r=a.k,c=a.R,d=a.r,o=a.e,s=a.$,n=a.Z,p=a.a0,i=a.a9,g=a._,v=a.S,_=a.l,h=a.v},a=>{y=a.bm,m=a.h2},a=>{b=a.default},a=>{f=a.a1,j=a.a6},null,null,null,null,null,null],execute:function(){const e={class:"p-20px"},x={class:"w-100px mr-10px"},k={class:"w-240px"},w={class:"w-350px"},L={class:"w-350px"};a("default",r({__name:"index",setup(a,{expose:r}){const{t:D}=c(),I=y(),$=d(null),U=o({type:"path",path:"",data:"",tag:""}),R=[{label:D("Docker.LocalImage.build_1"),value:"path"},{label:D("Docker.LocalImage.build_5"),value:"data"}],E={path:{trigger:["blur","input"],validator:()=>"path"!==U.type||""!==U.path.trim()||new Error(D("Docker.LocalImage.build_6"))},data:{trigger:["blur","input"],validator:()=>"data"!==U.type||""!==U.data.trim()||new Error(D("Docker.LocalImage.build_7"))}};return r({onConfirm:async()=>{await($.value?.validate());const a="path"===U.type?{path:U.path,tag:U.tag}:{data:U.data,tag:U.tag};await m(a),I.setRefresh(!0)}}),(a,r)=>{const c=j,d=u,o=f,y=t,m=l;return s(),n("div",e,[p(m,{ref_key:"formRef",ref:$,model:v(U),rules:E},{default:i((()=>[p(o,{label:a.$t("Docker.LocalImage.build_1"),path:"path"},{default:i((()=>[g("div",x,[p(c,{value:v(U).type,"onUpdate:value":r[0]||(r[0]=a=>v(U).type=a),options:R},null,8,["value"])]),_(g("div",k,[p(d,{value:v(U).path,"onUpdate:value":r[1]||(r[1]=a=>v(U).path=a),placeholder:a.$t("Docker.LocalImage.build_2")},null,8,["value","placeholder"])],512),[[h,"path"===v(U).type]])])),_:1},8,["label"]),_(p(o,{label:" ",path:"data"},{default:i((()=>[g("div",w,[p(b,{value:v(U).data,"onUpdate:value":r[2]||(r[2]=a=>v(U).data=a),lang:"json",theme:"monokai",height:"290","show-tips":!1},null,8,["value"])])])),_:1},512),[[h,"data"===v(U).type]]),p(o,{label:a.$t("Docker.LocalImage.build_3"),"show-feedback":!1},{default:i((()=>[g("div",L,[p(y,{value:v(U).tag,"onUpdate:value":r[3]||(r[3]=a=>v(U).tag=a),rows:3,placeholder:a.$t("Docker.LocalImage.build_4")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
