module.exports=[285910,a=>{"use strict";var b=a.i(187924),c=a.i(462730),d=a.i(116592);a.i(224155);var e=a.i(362622);a.i(802407);var f=a.i(778134);a.i(373873);var g=a.i(271548),h=a.i(871639),i=a.i(695245),j=a.i(286978);a.i(274306);var k=a.i(746053);let l=h.object({password:h.string().required(),password_confirmation:h.string().nullable().oneOf([h.ref("password"),null])});a.s([],303332),a.i(303332),a.s(["default",0,({onSuccess:a})=>{let{t:h}=(0,f.useTranslation)(),{mutate:m,isLoading:n}=(0,c.useMutation)({mutationFn:a=>d.userService.updatePassword(a),onError:a=>{(0,e.error)(a.message)}}),{register:o,handleSubmit:p,formState:{errors:q}}=(0,i.useForm)({resolver:(0,j.yupResolver)(l)});return(0,b.jsxs)("div",{className:"p-5",children:[(0,b.jsx)("div",{className:"text-xl font-bold mb-8",children:h("update.password")}),(0,b.jsx)("form",{onSubmit:p(b=>{m(b,{onSuccess:()=>{(0,e.success)(h("successfully.updated")),a()}})}),children:(0,b.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,b.jsx)(g.Input,{type:"password",fullWidth:!0,label:h("password"),...o("password"),error:q.password?.message,required:!0}),(0,b.jsx)(g.Input,{type:"password",label:h("confirm.password"),fullWidth:!0,...o("password_confirmation"),error:q.password_confirmation?.message,required:!0}),(0,b.jsx)(k.Button,{loading:n,type:"submit",fullWidth:!0,children:h("save")})]})})]})}],285910)},779170,a=>{a.n(a.i(285910))}];

//# sourceMappingURL=app_%28store%29_%28settings%29_profile_components_password-form_index_ts_b3cc1135._.js.map