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