import{r,h as o}from"./p-d55626d1.js";import{c as s}from"./p-2fd22ed9.js";import"./p-0bc4f624.js";import"./p-9bfc48ee.js";import"./p-097729d8.js";import{s as e}from"./p-62c3d279.js";import{e as a}from"./p-c7f96882.js";const m=class{constructor(o){r(this,o),this.updatePasswordFormId="updatePassword"}async formEventHandler({detail:r}){if(r.formId==this.updatePasswordFormId)return this.updatePassword(r)}async updatePassword(r){const o={};Object.keys(r).map((s=>{r[s].key&&(o[r[s].key]=r[s].value)})),await s.client.mutate({mutation:e(a),variables:{userPasswordInput:o}})}render(){return o("corejam-box",null,o("corejam-box",{bWidthBottom:1,bColor:"gray-400",mb:8,mt:12},o("corejam-type",{as:"h3",size:"xl"},"Update Password")),o("corejam-form-container",{name:this.updatePasswordFormId},o("corejam-box",{flex:!0,mb:8},o("corejam-box",{w:"6"},o("corejam-form-input",{name:"oldPassword",type:"password",formId:this.updatePasswordFormId,label:"Current Password",placeholder:"Current password"}))),o("corejam-box",{flex:!0,mb:8},o("corejam-box",{w:"6"},o("corejam-form-input",{name:"password",type:"password",formId:this.updatePasswordFormId,label:"New Password",placeholder:"New password"}))),o("corejam-box",{flex:!0,mb:8},o("corejam-box",{w:"6"},o("corejam-form-input",{name:"passwordConfirm",type:"password",formId:this.updatePasswordFormId,label:"Confirm Password",placeholder:"Confirm password"}))),o("corejam-form-submit",{formId:this.updatePasswordFormId},o("corejam-type",{size:"sm",weight:"bold",transform:"uppercase",decoration:"underline"},"Save"))))}};export{m as auth_reset_password_form}