System.register(["./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./index-legacy38.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./index-legacy.js?v=1763625242172","./index-legacy132.js?v=1763625242172","./index-legacy99.js?v=1763625242172","./index-legacy104.js?v=1763625242172"],(function(e,l){"use strict";var t,n,r,a,i,s,u,c,o,d,g,p,_,y,f,v,m,x,j,b,S,h;return{setters:[e=>{t=e.a,n=e._},e=>{r=e._},e=>{a=e.bU,i=e.o},e=>{s=e.s,u=e.d},e=>{c=e.k,o=e.P,d=e.r,g=e.R,p=e.S,_=e.X,y=e.a3,f=e.U,v=e.V,m=e.aj,x=e.a4,j=e.F,b=e.u},e=>{S=e.dV,h=e.dP},null,null,null,null,null,null],execute:function(){const l={class:"p-20px"},k={class:"w-460px"};e("default",c({__name:"index",props:{url:{default:""},mirrors:{default:()=>({})}},emits:["refresh"],setup(e,{expose:c,emit:w}){const D=e,$=w,{t:C}=o(),P=a(),O=d(null),U=d([]),V=({option:e})=>_(j,null,[e.title?`${e.value}(${e.title})`:e.label]),B=e=>{O.value=e},F=async()=>{await $("refresh",(e=>{H(e)}))},H=e=>{U.value=Object.entries(e).map((([e,l])=>({label:()=>{let t;return _("div",{class:"flex items-center justify-between w-full"},[_("span",{class:"mr-16px"},[`${e}(${l})`]),_(i,{type:"error",onClick:l=>{l.stopPropagation(),(async e=>{await u({registry_mirrors_address:e}),await F()})(e)}},(n=t=C("Public.Btn.Del"),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!b(n)?t:{default:()=>[t]}))]);var n},title:l,value:e}))),U.value.push({label:C("Docker.Setting.url.index_5"),value:""})};return(()=>{const{url:e,mirrors:l}=D;e&&(O.value=e),H(l)})(),c({onConfirm:({hide:e})=>(t({title:C("Docker.Setting.url.confirmTitle"),content:C("Docker.Setting.url.confirmContent"),onConfirm:async({hide:l})=>{await s({registry_mirrors_address:O.value?O.value:""}),P.getSetting(),$("refresh"),l(),e()}}),!1)}),(e,t)=>{const a=S,i=h,s=r,u=n;return g(),p("div",l,[_(s,null,{default:y((()=>[_(i,{label:e.$t("Docker.Setting.index_7"),"show-feedback":!1},{default:y((()=>[f("div",k,[_(a,{value:v(O),"onUpdate:value":t[0]||(t[0]=e=>m(O)?O.value=e:null),filterable:!0,options:v(U),"consistent-menu-width":!1,"render-tag":V,placeholder:e.$t("Docker.Setting.url.index_1"),onSearch:B},null,8,["value","options","placeholder"])])])),_:1},8,["label"])])),_:1}),_(u,{class:"mt-24px"},{default:y((()=>[f("li",null,x(e.$t("Docker.Setting.url.index_2")),1),f("li",null,x(e.$t("Docker.Setting.url.index_3")),1),f("li",null,x(e.$t("Docker.Setting.url.index_4")),1)])),_:1})])}}}))}}}));
