System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,a){"use strict";var l,t,r,s,u,n,o,c,i,p,m,d,g,v,_,f,x;return{setters:[e=>{l=e._},e=>{t=e.bm,r=e.h3},e=>{s=e.k,u=e.R,n=e.r,o=e.e,c=e.$,i=e.Z,p=e.a0,m=e.a9,d=e._,g=e.S,v=e.N},e=>{_=e.a1,f=e.a6,x=e.b},null],execute:function(){const a={class:"px-20px pt-24px pb-8px"},b={class:"w-240px"},h={class:"w-240px"};e("default",s({__name:"index",props:{row:{},list:{default:()=>[]}},setup(e,{expose:s}){const y=e,{t:k}=u(),w=t(),j=n(null),D=o({name:"",tag:""}),I=n([]),L={tag:{trigger:["blur","input"],validator:()=>""===D.tag.trim()?new Error(k("Docker.LocalImage.push_4")):!!D.tag.includes(":")||new Error(k("Docker.LocalImage.push_5"))}};return(()=>{const e=y.list.filter((e=>"Docker public repository"!==e.name));I.value=e.map((e=>({label:e.name,value:e.name}))),D.name=e[0].name})(),s({onConfirm:async()=>{await(j.value?.validate()),await r({...v(D),id:y.row.id}),w.setRefresh(!0)}}),(e,t)=>{const r=f,s=_,u=x,n=l;return c(),i("div",a,[p(n,{ref_key:"formRef",ref:j,model:g(D),rules:L},{default:m((()=>[p(s,{label:e.$t("Docker.LocalImage.push_1")},{default:m((()=>[d("div",b,[p(r,{value:g(D).name,"onUpdate:value":t[0]||(t[0]=e=>g(D).name=e),options:g(I)},null,8,["value","options"])])])),_:1},8,["label"]),p(s,{label:e.$t("Docker.LocalImage.push_2"),path:"tag"},{default:m((()=>[d("div",h,[p(u,{value:g(D).tag,"onUpdate:value":t[1]||(t[1]=e=>g(D).tag=e),placeholder:e.$t("Docker.LocalImage.push_3")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
