import{c as e,q as a,v as l,N as s,B as o,e as d,y as r,ab as t,c1 as m,a9 as p}from"./base-lib.js?v=1761009159";import{k as u,$ as i}from"./utils-lib.js?v=1761009159";import{S as n,U as b,V as f,W as h,X as c,Y as V,Z as _,_ as j,e as w}from"./index473.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./site.js?v=1761009159";import"./column.js?v=1761009159";import"./index106.js?v=1761009159";import"./validator.js?v=1761009159";import"./useStore4.js?v=1761009159";const U=e({__name:"http-auth-add",setup:(e,{expose:U})=>(a(n),U({onConfirm:b}),(e,a)=>{const n=u,b=t,U=m,g=i,x=p;return l(),s(x,{ref_key:"authRef",ref:_,rules:r(j),disabled:r(w),model:r(f),class:"p-[2rem] addfrom","label-width":"5rem"},{default:o(()=>[d(b,{label:"名称",prop:"name"},{default:o(()=>[d(n,{modelValue:r(f).name,"onUpdate:modelValue":a[0]||(a[0]=e=>r(f).name=e),disabled:!!r(h),width:"20rem",placeholder:"请输入名称"},null,8,["modelValue","disabled"])]),_:1}),d(b,{label:"路径",prop:"path"},{default:o(()=>[d(U,{modelValue:r(f).path,"onUpdate:modelValue":a[1]||(a[1]=e=>r(f).path=e),class:"!w-[20rem]",disabled:!!r(h),"fetch-suggestions":r(c),placeholder:"请输入路径，例如：/web"},null,8,["modelValue","disabled","fetch-suggestions"])]),_:1}),d(b,{label:"用户名",prop:"user"},{default:o(()=>[d(n,{modelValue:r(f).user,"onUpdate:modelValue":a[2]||(a[2]=e=>r(f).user=e),width:"20rem",placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1}),d(b,{label:"密码",prop:"password"},{default:o(()=>[d(n,{modelValue:r(f).password,"onUpdate:modelValue":a[3]||(a[3]=e=>r(f).password=e),width:"20rem",placeholder:"请输入密码"},null,8,["modelValue"])]),_:1}),d(g,{options:r(V),class:"pl-[5.6rem] pt-[2.4rem]"},null,8,["options"])]),_:1},8,["rules","disabled","model"])})});export{U as default};
