PageSourceSearch

https://bank-statement-conversion.com/build/assets/SetPasswordPage-CUXkkhk3.js

js bank-statement-conversion.com collected 2026-09-24 13:58:19 UTC 3,269 bytes, 1 lines download raw bytes

1import{r as f,j as s,C as v,a as g,b as y,c as i,F as e,B as C}from"./bootstrap-vendor-BhheAoEU.js";import{a as P,P as n,r as S}from"./app-DXwX_1H5.js";import{A}from"./AppLayout-D-e4I7Xa.js";import{d as F,O as l}from"./icons-vendor-DOAVIvzV.js";/* empty css            */import"./Footer-Cy6QkrJd.js";function G({email:p,token:u}){const{data:c,setData:d,post:x,processing:m,errors:t,reset:h}=P({email:p,token:u,password:"",password_confirmation:""}),[a,w]=f.useState({length:!1,uppercase:!1,lowercase:!1,number:!1}),j=o=>{const r=o.target.value;d("password",r),w({length:r.length>=8,uppercase:/[A-Z]/.test(r),lowercase:/[a-z]/.test(r),number:/[0-9]/.test(r)})},b=o=>{o.preventDefault(),console.log("Submitting to:",n("password.set")),x(n("password.set"),{preserveState:!0,preserveScroll:!0,onSuccess:()=>{h("password","password_confirmation"),S.visit(n("dashboard"))},onError:r=>{console.error("Errors:",r)}})},N=Object.values(a).every(Boolean);return s.jsx(A,{title:"Set Your Account Password",description:"Complete your account setup by setting a secure password",children:s.jsx(v,{className:"py-5",children:s.jsx(g,{className:"justify-content-center",children:s.jsx(y,{md:6,children:s.jsx(i,{className:"shadow-sm border-0",children:s.jsxs(i.Body,{className:"p-4",children:[s.jsxs("div",{className:"text-center mb-4",children:[s.jsx(F,{size:40,className:"text-primary mb-3"}),s.jsx("h2",{className:"h3 mb-3",children:"Set Your Account Password"}),s.jsx("p",{className:"text-muted",children:"Create a secure password to protect your account"})]}),s.jsxs(e,{onSubmit:b,children:[s.jsxs(e.Group,{className:"mb-3",children:[s.jsx(e.Label,{children:"Email Address"}),s.jsx(e.Control,{type:"email",value:c.email,disabled:!0})]}),s.jsxs(e.Group,{className:"mb-3",children:[s.jsx(e.Label,{children:"Password"}),s.jsx(e.Control,{type:"password",value:c.password,onChange:j,isInvalid:!!t.password}),t.password&&s.jsx(e.Control.Feedback,{type:"invalid",children:t.password})]}),s.jsxs(e.Group,{className:"mb-3",children:[s.jsx(e.Label,{children:"Confirm Password"}),s.jsx(e.Control,{type:"password",value:c.password_confirmation,onChange:o=>d("password_confirmation",o.target.value),isInvalid:!!t.password_confirmation}),t.password_confirmation&&s.jsx(e.Control.Feedback,{type:"invalid",children:t.password_confirmation})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("h5",{className:"mb-2",children:"Password Requirements"}),s.jsxs("div",{className:"d-flex flex-column",children:[s.jsxs("small",{className:`mb-1 ${a.length?"text-success":"text-muted"}`,children:[a.length?s.jsx(l,{className:"me-2"}):"","At least 8 characters"]}),s.jsxs("small",{className:`mb-1 ${a.uppercase?"text-success":"text-muted"}`,children:[a.uppercase?s.jsx(l,{className:"me-2"}):"","At least one uppercase letter"]}),s.jsxs("small",{className:`mb-1 ${a.lowercase?"text-success":"text-muted"}`,children:[a.lowercase?s.jsx(l,{className:"me-2"}):"","At least one lowercase letter"]}),s.jsxs("small",{className:`mb-1 ${a.number?"text-success":"text-muted"}`,children:[a.number?s.jsx(l,{className:"me-2"}):"","At least one number"]})]})]}),s.jsx(C,{type:"submit",variant:"primary",className:"w-100",disabled:m||!N,children:m?"Setting Password...":"Set Password"})]})]})})})})})})}export{G 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.