import{r as e}from"./rolldown-runtime-DCMCV6zW.js";import{i as t,n}from"./vendor-primevue-DxVRNMbC.js";import"./vendor-firebase-CdLSXhbt.js";import{Dt as r,F as i,I as a,It as o,R as s,Vt as c,et as l,gt as u,k as d}from"./vendor-vue-core-X6q-rGJs.js";import"./vendor-other-D7Cc5Ixw.js";import"./useFeatureFlags-B0oLxKlK.js";import"./api-Bo3xGkUk.js";import"./colorUtil-_hWBTBqR.js";import"./i18n-YWjgSklj.js";import"./vendor-reka-ui-DNqLZfNK.js";import{t as f}from"./Button-DREXX1Gv.js";import{_n as p}from"./dialogService-BTVFmf6F.js";import"./systemStatsStore-D-GJwPc7.js";import"./useErrorHandling-D_QKYdSx.js";import"./dialogStore-CUaBKWKw.js";import"./useCopyToClipboard-C_P-Vq1j.js";import"./vendor-tiptap-CjhX_1DY.js";import"./vendor-markdown-CyF8uRn7.js";import"./markdownRendererUtil-DU6rKHAL.js";import"./useExternalLink-Vt2OTFDR.js";import{i as m}from"./signInSchema-C5hG1b_-.js";import{t as h}from"./PasswordFields-DPyLz2pM.js";var g=s({__name:`UpdatePasswordContent`,props:{onSuccess:{type:Function}},setup(e){let s=p(),g=r(!1),onSubmit=async t=>{if(t.valid){g.value=!0;try{await s.updatePassword(t.values.password),e.onSuccess()}finally{g.value=!1}}};return(e,r)=>(l(),d(o(t),{class:`flex w-96 flex-col gap-6`,resolver:o(n)(o(m)),onSubmit},{default:u(()=>[a(h),a(f,{type:`submit`,class:`mt-4 h-10 font-medium`,loading:g.value},{default:u(()=>[i(c(e.$t(`userSettings.updatePassword`)),1)]),_:1},8,[`loading`])]),_:1},8,[`resolver`]))}});export{g as default};
//# sourceMappingURL=UpdatePasswordContent-BFGcdNPk.js.map