PageSourceSearch

https://www.ahrcm-srmo.org/build/assets/UpdatePasswordForm.1440c111.js

js ahrcm-srmo.org collected 2026-10-06 18:25:25 UTC 2,603 bytes, 1 lines download raw bytes

1import{d as w,u as v,c as g,w as t,o as V,g as n,t as d,a as u,b as o,h as r,n as y}from"./app.1c75f29f.js";import{_ as P}from"./ActionMessage.3139b8ed.js";import{_ as b}from"./Button.020d0614.js";import{_ as k}from"./FormSection.dbae0914.js";import{_ as p}from"./Input.2e43aca7.js";import{_ as m}from"./InputError.2c862126.js";import{_ as c}from"./Label.f4cb0fc0.js";import"./_plugin-vue_export-helper.cdc0426e.js";const S={class:"col-span-12"},$={class:"col-span-12"},U={class:"col-span-12"},h={__name:"UpdatePasswordForm",setup(B){const i=w(null),_=w(null),s=v({current_password:"",password:"",password_confirmation:""}),f=()=>{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"),_.value.focus())}})};return(a,e)=>(V(),g(k,{onSubmitted:f},{title:t(()=>[n(d(a.__("Update Password")),1)]),description:t(()=>[n(d(a.__("Ensure your account is using a long, random password to stay secure.")),1)]),form:t(()=>[u("div",S,[o(c,{for:"current_password",value:a.__("Current Password")},null,8,["value"]),o(p,{id:"current_password",ref_key:"currentPasswordInput",ref:_,modelValue:r(s).current_password,"onUpdate:modelValue":e[0]||(e[0]=l=>r(s).current_password=l),type:"password",class:"mt-1 block w-full",autocomplete:"current-password"},null,8,["modelValue"]),o(m,{message:r(s).errors.current_password,class:"mt-2"},null,8,["message"])]),u("div",$,[o(c,{for:"password",value:a.__("New Password")},null,8,["value"]),o(p,{id:"password",ref_key:"passwordInput",ref:i,modelValue:r(s).password,"onUpdate:modelValue":e[1]||(e[1]=l=>r(s).password=l),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),o(m,{message:r(s).errors.password,class:"mt-2"},null,8,["message"])]),u("div",U,[o(c,{for:"password_confirmation",value:a.__("Confirm Password")},null,8,["value"]),o(p,{id:"password_confirmation",modelValue:r(s).password_confirmation,"onUpdate:modelValue":e[2]||(e[2]=l=>r(s).password_confirmation=l),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),o(m,{message:r(s).errors.password_confirmation,class:"mt-2"},null,8,["message"])])]),actions:t(()=>[o(P,{on:r(s).recentlySuccessful,class:"mr-3"},{default:t(()=>[n(d(a.__("Saved.")),1)]),_:1},8,["on"]),o(b,{class:y({"opacity-25":r(s).processing}),disabled:r(s).processing},{default:t(()=>[n(d(a.__("Save")),1)]),_:1},8,["class","disabled"])]),_:1}))}};export{h 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.