1import{f as d,j as t,B as r,y as o,x as u,H as _,q as c,i as v,T as y,G as g,a as w}from"./@vue-4474Gfnj.js";import{_ as p}from"./InputError-DRXmsDfx.js";import{_ as l,a as n}from"./TextInput-hPSqJxED.js";import{P as V}from"./PrimaryButton-BPUnXbti.js";import{a as x}from"./@inertiajs-7zqq8wgj.js";import"./app-CC255QP7.js";import"./axios-DjWHqwoD.js";import"./laravel-vite-plugin-DEL3ZhID.js";import"./@iconify-DROonR5K.js";import"./vue-fast-marquee-CkwowO8X.js";import"./qs-C7saBnVC.js";import"./side-channel-BLCytySV.js";import"./es-errors-B3qLL4WI.js";import"./object-inspect--bXPCECa.js";import"./side-channel-list-BCZJqq54.js";import"./side-channel-map-D4vBmt7j.js";import"./get-intrinsic-DvtG1oIa.js";import"./es-object-atoms-BR76m4z7.js";import"./math-intrinsics-DP1tGiab.js";import"./gopd-C1lCZ5Qs.js";import"./es-define-property-D_7cP-M3.js";import"./has-symbols-BaUvM3gb.js";import"./get-proto-MZ3MALak.js";import"./dunder-proto-C6VzgWTX.js";import"./call-bind-apply-helpers-C9UlVOU4.js";import"./function-bind-CHqF18-c.js";import"./hasown-DwiY0sux.js";import"./call-bound-B0s5y60d.js";import"./side-channel-weakmap-Kf8cPeRJ.js";import"./lodash-es-DY0-vtN4.js";import"./laravel-precognition-BqdyoEeO.js";const P={class:"flex items-center gap-4"},k={key:0,class:"text-sm text-gray-600"},es={__name:"UpdatePasswordForm",setup(b){const m=w(null),i=w(null),s=x({current_password:"",password:"",password_confirmation:""}),f=()=>{s.put(route("password.update"),{preserveScroll:!0,onSuccess:()=>s.reset(),onError:()=>{s.errors.password&&(s.reset("password","password_confirmation"),m.value.focus()),s.errors.current_password&&(s.reset("current_password"),i.value.focus())}})};return(S,e)=>(c(),d("section",null,[e[4]||(e[4]=t("header",null,[t("h2",{class:"text-lg font-medium text-gray-900"}," Update Password "),t("p",{class:"mt-1 text-sm text-gray-600"}," Ensure your account is using a long, random password to stay secure. ")],-1)),t("form",{onSubmit:g(f,["prevent"]),class:"mt-6 space-y-6"},[t("div",null,[r(l,{for:"current_password",value:"Current Password"}),r(n,{id:"current_password",ref_key:"currentPasswordInput",ref:i,modelValue:o(s).current_password,"onUpdate:modelValue":e[0]||(e[0]=a=>o(s).current_password=a),type:"password",class:"mt-1 block w-full",autocomplete:"current-password"},null,8,["modelValue"]),r(p,{message:o(s).errors.current_password,class:"mt-2"},null,8,["message"])]),t("div",null,[r(l,{for:"password",value:"New Password"}),r(n,{id:"password",ref_key:"passwordInput",ref:m,modelValue:o(s).password,"onUpdate:modelValue":e[1]||(e[1]=a=>o(s).password=a),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),r(p,{message:o(s).errors.password,class:"mt-2"},null,8,["message"])]),t("div",null,[r(l,{for:"password_confirmation",value:"Confirm Password"}),r(n,{id:"password_confirmation",modelValue:o(s).password_confirmation,"onUpdate:modelValue":e[2]||(e[2]=a=>o(s).password_confirmation=a),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),r(p,{message:o(s).errors.password_confirmation,class:"mt-2"},null,8,["message"])]),t("div",P,[r(V,{disabled:o(s).processing},{default:u(()=>[...e[3]||(e[3]=[_("Save",-1)])]),_:1},8,["disabled"]),r(y,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:u(()=>[o(s).recentlySuccessful?(c(),d("p",k," Saved. ")):v("",!0)]),_:1})])],32)]))}};export{es 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.