System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-VhnZCuRC.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-DWPn48Vb.js?v=1773287522785","./index-legacy-DEYz4m3y.js?v=1773287522785","./index-legacy-BJO1GMTD.js?v=1773287522785","./useSocket-legacy-D9BDJ2id.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785"],(function(e,l){"use strict";var t,n,a,r,i,s,u,c,o,d,g,p,_,f,y,v,x,m,j,b,S,h;return{setters:[e=>{t=e._},e=>{n=e._},e=>{a=e.bm,r=e._,i=e.h},e=>{s=e.s,u=e.d},e=>{c=e.k,o=e.R,d=e.r,g=e.$,p=e.Z,_=e.a0,f=e.a9,y=e._,v=e.S,x=e.X,m=e.aa,j=e.F,b=e.u},e=>{S=e.a1,h=e.a6},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:$}){const w=e,D=$,{t:C}=o(),O=a(),Z=d(null),P=d([]),B=({option:e})=>_(j,null,[e.title?`${e.value}(${e.title})`:e.label]),F=e=>{Z.value=e},G=async()=>{await D("refresh",(e=>{I(e)}))},I=e=>{P.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})`]),_(r,{type:"error",onClick:l=>{l.stopPropagation(),(async e=>{await u({registry_mirrors_address:e}),await G()})(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}))),P.value.push({label:C("Docker.Setting.url.index_5"),value:""})};return(()=>{const{url:e,mirrors:l}=w;e&&(Z.value=e),I(l)})(),c({onConfirm:({hide:e})=>(i({title:C("Docker.Setting.url.confirmTitle"),content:C("Docker.Setting.url.confirmContent"),onConfirm:async({hide:l})=>{await s({registry_mirrors_address:Z.value?Z.value:""}),O.getSetting(),D("refresh"),l(),e()}}),!1)}),(e,a)=>{const r=h,i=S,s=n,u=t;return g(),p("div",l,[_(s,null,{default:f((()=>[_(i,{label:e.$t("Docker.Setting.index_7"),"show-feedback":!1},{default:f((()=>[y("div",k,[_(r,{value:v(Z),"onUpdate:value":a[0]||(a[0]=e=>x(Z)?Z.value=e:null),filterable:!0,options:v(P),"consistent-menu-width":!1,"render-tag":B,placeholder:e.$t("Docker.Setting.url.index_1"),onSearch:F},null,8,["value","options","placeholder"])])])),_:1},8,["label"])])),_:1}),_(u,{class:"mt-24px"},{default:f((()=>[y("li",null,m(e.$t("Docker.Setting.url.index_2")),1),y("li",null,m(e.$t("Docker.Setting.url.index_3")),1),y("li",null,m(e.$t("Docker.Setting.url.index_4")),1)])),_:1})])}}}))}}}));
