import{r as e}from"./rolldown-runtime-DCMCV6zW.js";import{i as t,n}from"./vendor-primevue-DsBxnwSO.js";import"./vendor-firebase-CdLSXhbt.js";import{$ as r,Bt as i,Et as a,F as o,Ft as s,L as c,O as l,P as u,ht as d}from"./vendor-vue-core-D3IvUUeM.js";import"./vendor-other-C_YjAAj3.js";import"./useFeatureFlags-Bfb3fghV.js";import"./api-Ckh8-1rW.js";import"./colorUtil-DCPbkdH3.js";import"./i18n-C2nvaQjh.js";import"./vendor-reka-ui-djAAohzU.js";import{t as f}from"./Button-CJj3KtkO.js";import{gn as p}from"./dialogService-Daa_oID7.js";import"./systemStatsStore-CSnXy46l.js";import"./useErrorHandling-BfFOVBcK.js";import"./dialogStore-CBXn_TDV.js";import"./useCopyToClipboard-DcMopO23.js";import"./vendor-tiptap-CjhX_1DY.js";import"./vendor-markdown-CyF8uRn7.js";import"./markdownRendererUtil-DU6rKHAL.js";import"./useExternalLink-C8tDmXU8.js";import{i as m}from"./signInSchema-C47j13Az.js";import{t as h}from"./PasswordFields-BmUd4eyu.js";var g=c({__name:`UpdatePasswordContent`,props:{onSuccess:{type:Function}},setup(e){let c=p(),g=a(!1),onSubmit=async t=>{if(t.valid){g.value=!0;try{await c.updatePassword(t.values.password),e.onSuccess()}finally{g.value=!1}}};return(e,a)=>(r(),l(s(t),{class:`flex w-96 flex-col gap-6`,resolver:s(n)(s(m)),onSubmit},{default:d(()=>[o(h),o(f,{type:`submit`,class:`mt-4 h-10 font-medium`,loading:g.value},{default:d(()=>[u(i(e.$t(`userSettings.updatePassword`)),1)]),_:1},8,[`loading`])]),_:1},8,[`resolver`]))}});export{g as default};
//# sourceMappingURL=UpdatePasswordContent-Dqj79JPA.js.map