1import{r as f,T as v,c as $,o as g,w as t,b as r,u as o,f as n,t as d,n as V,a as p}from"./app-DDSQZi8b.js";import{_ as y}from"./ActionMessage-CIJlOAlq.js";import{_ as P}from"./FormSection-BDQBAJV4.js";import{_ as u}from"./InputError-D8hO71hd.js";import{_ as m}from"./InputLabel-C8_IfeyK.js";import{_ as b}from"./PrimaryButton-BZDb06ez.js";import{_ as c}from"./TextInput-DBP7fcbj.js";import"./SectionTitle-CplT-p85.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const k={class:"col-span-6 sm:col-span-4"},S={class:"col-span-6 sm:col-span-4"},U={class:"col-span-6 sm:col-span-4"},q={__name:"UpdatePasswordForm",setup(B){const i=f(null),w=f(null),s=v({current_password:"",password:"",password_confirmation:""}),_=()=>{s.put(route("user-password.update"),{errorBag:"updatePassword",preserveScroll:!0,onSuccess:()=>s.reset(),onError:()=>{s.errors.password&&(s.reset("password","password_confirmation"),i.value.focus()),s.errors.current_password&&(s.reset("current_password"),w.value.focus())}})};return(a,e)=>(g(),$(P,{onSubmitted:_},{title:t(()=>[n(d(a.$t("Update Password")),1)]),description:t(()=>[n(d(a.$t("Ensure your account is using a long, random password to stay secure.")),1)]),form:t(()=>[p("div",k,[r(m,{for:"current_password",value:a.$t("Current Password")},null,8,["value"]),r(c,{id:"current_password",ref_key:"currentPasswordInput",ref:w,modelValue:o(s).current_password,"onUpdate:modelValue":e[0]||(e[0]=l=>o(s).current_password=l),type:"password",class:"mt-1 block w-full",autocomplete:"current-password"},null,8,["modelValue"]),r(u,{message:o(s).errors.current_password,class:"mt-2"},null,8,["message"])]),p("div",S,[r(m,{for:"password",value:a.$t("New Password")},null,8,["value"]),r(c,{id:"password",ref_key:"passwordInput",ref:i,modelValue:o(s).password,"onUpdate:modelValue":e[1]||(e[1]=l=>o(s).password=l),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),r(u,{message:o(s).errors.password,class:"mt-2"},null,8,["message"])]),p("div",U,[r(m,{for:"password_confirmation",value:a.$t("Confirm Password")},null,8,["value"]),r(c,{id:"password_confirmation",modelValue:o(s).password_confirmation,"onUpdate:modelValue":e[2]||(e[2]=l=>o(s).password_confirmation=l),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),r(u,{message:o(s).errors.password_confirmation,class:"mt-2"},null,8,["message"])])]),actions:t(()=>[r(y,{on:o(s).recentlySuccessful,class:"me-3"},{default:t(()=>[n(d(a.$t("Saved.")),1)]),_:1},8,["on"]),r(b,{class:V({"opacity-25":o(s).processing}),disabled:o(s).processing},{default:t(()=>[n(d(a.$t("Save")),1)]),_:1},8,["class","disabled"])]),_:1}))}};export{q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.