import{n as e}from"./index-kSn5YXd0.js";import{t}from"./password-transfer-crypto-Bi7McejP.js";var n=async(e,n)=>t({url:n?`/user/login/${n}`:`/user/login`,method:`post`,data:e},[`password`]),r=t=>e({url:`/user/login/entry/validate`,method:`get`,data:t?{entry:t}:{}}),i=t=>e({url:`/user/login/verify-mode`,method:`get`,data:{username:t}}),a=()=>e({url:`/user/login/captcha`,method:`get`}),o=()=>e({url:`/user/login/session-config`,method:`get`}),s=()=>e({url:`/user/logout`,method:`post`}),c=()=>e({url:`/user/login/check`,method:`get`}),l=async e=>t({url:`/user/updatePwd`,method:`post`,data:e},[`oldPassword`,`newPassword`,`confirmPassword`]),u=()=>e({url:`/user/email`,method:`get`}),d=t=>e({url:`/user/email/code`,method:`post`,data:{email:t}}),f=e=>t({url:`/user/email/bind`,method:`post`,data:e},[`currentPassword`]),p=t=>e({url:`/user/password-reset/code`,method:`post`,data:t}),m=(t=``)=>e({url:`/user/password-reset/config`,method:`get`,data:t?{entry:t}:{}}),h=e=>t({url:`/user/password-reset/confirm`,method:`post`,data:e},[`password`,`confirmPassword`]),g=async e=>t({url:`/user/resetAdminPassword`,method:`put`,data:e},[`password`,`confirmPassword`]);export{m as a,a as c,p as d,g as f,r as h,u as i,i as l,l as m,c as n,o,d as p,h as r,n as s,f as t,s as u};