import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{i as t,n}from"./vendor-primevue-DGevbYGF.js";import"./vendor-firebase-yTFzdAQf.js";import{F as r,I as i,R as a,Rt as o,Ut as s,_t as c,et as l,k as u,kt as d}from"./vendor-vue-core-BdhYaYlO.js";import"./vendor-other-D9HJWI2D.js";import"./useFeatureFlags-DLStzqlx.js";import"./api-C1WIrB4Z.js";import"./vendor-markdown-th9BvURy.js";import"./colorUtil-DJbZtU1U.js";import"./i18n-DKtnmyh4.js";import"./vendor-reka-ui-CSo89nDv.js";import{t as f}from"./Button-DHxPjNdi.js";import{Jr as p}from"./dialogService-CwVeD8j9.js";import"./extensionStore-By6c6sCD.js";import"./userStore-ChcnLOkA.js";import"./useErrorHandling-CWU_3R6Y.js";import"./useExternalLink-DZBh_BZs.js";import"./vendor-tiptap-BZHcjrm1.js";import"./markdownRendererUtil-J4WlXR5e.js";import"./Popover-_oREh-V5.js";import{i as m}from"./signInSchema-zXDJh9bx.js";import{t as h}from"./PasswordFields-BxbA3nrO.js";var g=a({__name:`UpdatePasswordContent`,props:{onSuccess:{type:Function}},setup(e){let a=p(),g=d(!1),onSubmit=async t=>{if(t.valid){g.value=!0;try{await a.updatePassword(t.values.password),e.onSuccess()}finally{g.value=!1}}};return(e,a)=>(l(),u(o(t),{class:`flex w-96 flex-col gap-6`,resolver:o(n)(o(m)),onSubmit},{default:c(()=>[i(h),i(f,{type:`submit`,class:`mt-4 h-10 font-medium`,loading:g.value},{default:c(()=>[r(s(e.$t(`userSettings.updatePassword`)),1)]),_:1},8,[`loading`])]),_:1},8,[`resolver`]))}});export{g as default};
//# sourceMappingURL=UpdatePasswordContent-tkIyM5Hc.js.map