import{o as e,I as s,Q as a,e as t}from"./utils-lib.js?v=1761009159";import{c as o,h as r,r as l,B as d,C as i,p as n,k as m,l as c,e as p,x as u,N as g,P as f,a7 as _,a4 as b}from"./base-lib.js?v=1761009159";import{g as v,X as k}from"./useStore4.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const j={class:"p-[2rem]"},h=t(o({__name:"ipv6-setting-dialog",setup(t,{expose:o}){const{refs:{settingData:h},getDockerState:V}=v(),x=r({address:h.value.ipv6Address||"",loading:!1}),y=l(null);return o({onConfirm:async()=>{try{await e({title:"设置IPV6范围",content:"设置后需要重启docker，请确保可以重启docker再操作。是否继续？"}),s({request:k({status:1,ipaddr:x.address}),loading:"正在设置，请稍候...",success:V})}catch(a){console.log(a)}}}),(e,s)=>{const t=f,o=_,r=b,l=a,v=d("bt-loading");return i((m(),c("div",j,[p(r,{ref_key:"ipFormRef",ref:y,model:n(x),"label-position":"right",labelWidth:"9.6rem",onSubmit:s[1]||(s[1]=g((()=>{}),["prevent"]))},{default:u((()=>[p(o,{prop:"address",label:"ipv6范围"},{default:u((()=>[p(t,{class:"!w-[32rem]",modelValue:n(x).address,"onUpdate:modelValue":s[0]||(s[0]=e=>n(x).address=e)},null,8,["modelValue"])])),_:1})])),_:1},8,["model"]),p(l,{class:"ml-[7rem] mt-[2rem]",options:[{content:"此ipv6范围将会在默认的bridge网络中启用，请勿随意修改！"},{content:"设置范围后需要重启docker，请确保可以重启docker再操作。"}]})])),[[v,n(x).loading],[v,"正在获取，请稍候...","title"]])}}}),[["__scopeId","data-v-5ede8521"]]);export{h as default};
