PageSourceSearch

https://squadbalance.com/build/assets/UpdatePasswordForm-D6p7tgoI.js

js squadbalance.com collected 2026-10-02 01:46:32 UTC 2,456 bytes, 1 lines download raw bytes

1import{r as u,j as s}from"./vendor-wHC2ntYA.js";import{I as n}from"./InputError-sYI1RUTE.js";import{I as c}from"./InputLabel-Ci6p2K74.js";import{P as h}from"./PrimaryButton-C8LzVF4J.js";import{T as d}from"./TextInput-bWCKf1zE.js";import{u as v}from"./inertia-BxUlTYdw.js";import{K as g}from"./transition-Bqy6qNzb.js";import"./open-closed-B0EDQEYK.js";function S({className:m=""}){const p=u.useRef(null),i=u.useRef(null),{data:e,setData:a,errors:o,put:w,reset:t,processing:f,recentlySuccessful:x}=v({current_password:"",password:"",password_confirmation:""}),j=r=>{r.preventDefault(),w(route("password.update"),{preserveScroll:!0,onSuccess:()=>t(),onError:l=>{l.password&&(t("password","password_confirmation"),p.current?.focus()),l.current_password&&(t("current_password"),i.current?.focus())}})};return s.jsxs("section",{className:m,children:[s.jsxs("header",{children:[s.jsx("h2",{className:"font-serif text-lg text-zinc-900",children:"Update Password"}),s.jsx("p",{className:"mt-1 text-sm text-zinc-600",children:"Ensure your account is using a long, random password to stay secure."})]}),s.jsxs("form",{onSubmit:j,className:"mt-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx(c,{htmlFor:"current_password",value:"Current Password"}),s.jsx(d,{id:"current_password",ref:i,value:e.current_password,onChange:r=>a("current_password",r.target.value),type:"password",className:"mt-1 block w-full",autoComplete:"current-password"}),s.jsx(n,{message:o.current_password,className:"mt-2"})]}),s.jsxs("div",{children:[s.jsx(c,{htmlFor:"password",value:"New Password"}),s.jsx(d,{id:"password",ref:p,value:e.password,onChange:r=>a("password",r.target.value),type:"password",className:"mt-1 block w-full",autoComplete:"new-password"}),s.jsx(n,{message:o.password,className:"mt-2"})]}),s.jsxs("div",{children:[s.jsx(c,{htmlFor:"password_confirmation",value:"Confirm Password"}),s.jsx(d,{id:"password_confirmation",value:e.password_confirmation,onChange:r=>a("password_confirmation",r.target.value),type:"password",className:"mt-1 block w-full",autoComplete:"new-password"}),s.jsx(n,{message:o.password_confirmation,className:"mt-2"})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(h,{disabled:f,children:"Save"}),s.jsx(g,{show:x,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:s.jsx("p",{className:"text-sm text-green-500",children:"Saved."})})]})]})]})}export{S 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.