import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{i as t,n}from"./vendor-primevue-CIZeDNer.js";import"./vendor-firebase-yTFzdAQf.js";import{F as r,Ht as i,I as a,Lt as o,Ot as s,R as c,_t as l,et as u,k as d}from"./vendor-vue-core-IZuWV8u3.js";import"./vendor-other-DOjudfJ1.js";import"./useFeatureFlags-Clsy1Hhz.js";import"./api-BoVM1fMt.js";import"./vendor-markdown-th9BvURy.js";import"./colorUtil-CaOYwqZT.js";import"./i18n-CbR4AZxs.js";import"./vendor-reka-ui-NsM8zEZd.js";import{t as f}from"./Button-BonqIZfE.js";import{bi as p}from"./dialogService-DeXt-oC-.js";import"./extensionStore-B_7jnXF_.js";import"./dialogStore-qTsCyKDB.js";import"./userStore-ClejTuyc.js";import"./useErrorHandling-DSpiCwxA.js";import"./useExternalLink-C6SjfMkA.js";import"./vendor-tiptap-nOCIQysJ.js";import"./markdownRendererUtil-DO0bU-vH.js";import"./Popover-CTWL6O4Q.js";import{i as m}from"./signInSchema-les7jaaO.js";import{t as h}from"./PasswordFields-CuNVlwI_.js";var g=c({__name:`UpdatePasswordContent`,props:{onSuccess:{type:Function}},setup(e){let c=p(),g=s(!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,s)=>(u(),d(o(t),{class:`flex w-96 flex-col gap-6`,resolver:o(n)(o(m)),onSubmit},{default:l(()=>[a(h),a(f,{type:`submit`,class:`mt-4 h-10 font-medium`,loading:g.value},{default:l(()=>[r(i(e.$t(`userSettings.updatePassword`)),1)]),_:1},8,[`loading`])]),_:1},8,[`resolver`]))}});export{g as default};
//# sourceMappingURL=UpdatePasswordContent-GxSjKaS9.js.map