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