1import{G as g,r as d,j as s,S as j}from"./app-Mnt2IEGe.js";import{G as y}from"./GuestLayout-BYnLiqFZ.js";import{T as o,I as l}from"./TextInput-DZZVw8So.js";import{I as m}from"./InputLabel-BswbtwQH.js";import{P as N}from"./PrimaryButton-CuAryFCM.js";import{M as b}from"./mail-Ce-sk81h.js";import{L as c}from"./lock-BIbd8j0O.js";import{E as v}from"./eye-off-0dWDFI1-.js";import{E as C}from"./eye-D7lGIL4B.js";import"./ApplicationLogo-JvKRx6b1.js";import"./x-B1Pn9Kmg.js";import"./message-circle-D4MbkUVn.js";import"./phone-DSAsYLtt.js";import"./chevron-down-BlAiga6f.js";import"./user-ad0RTXxq.js";import"./package-CT4joqbC.js";import"./map-pin-BuVEKMGp.js";import"./truck-CpGakV_6.js";import"./shopping-cart-DokKNEt4.js";import"./search-BeXkNHdv.js";import"./clock-Dnho5FNh.js";import"./shield-Da3uiB5y.js";function J({token:p,email:x}){const{data:a,setData:r,post:u,processing:i,errors:t,reset:w}=g({token:p,email:x,password:"",password_confirmation:""}),[n,h]=d.useState(!1);d.useEffect(()=>()=>{w("password","password_confirmation")},[]);const f=e=>{e.preventDefault(),u(route("password.store"))};return s.jsxs(y,{children:[s.jsx(j,{title:"Reset Password"}),s.jsxs("div",{className:"min-h-[60vh] grid lg:grid-cols-2 gap-8 items-center",children:[s.jsxs("div",{className:"hidden lg:block",children:[s.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Set a new password"}),s.jsx("p",{className:"text-gray-600",children:"Enter your new password below to access your account."})]}),s.jsx("div",{className:"max-w-md w-full mx-auto",children:s.jsxs("div",{className:"bg-white border-2 border-gray-100 rounded-2xl shadow-lg p-8",children:[s.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Set new password"}),s.jsx("p",{className:"text-sm text-gray-600 mb-8",children:"Choose a strong password for your account"}),s.jsxs("form",{onSubmit:f,className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx(m,{htmlFor:"email",value:"Email",className:"text-gray-700"}),s.jsxs("div",{className:"mt-2 relative",children:[s.jsx(b,{className:"w-5 h-5 text-gray-400 absolute left-3 top-2.5"}),s.jsx(o,{id:"email",type:"email",name:"email",value:a.email,className:"pl-10 mt-0 block w-full border-gray-300 focus:border-primary focus:ring-blue-500 rounded-xl shadow-sm",autoComplete:"username",onChange:e=>r("email",e.target.value)})]}),s.jsx(l,{message:t.email,className:"mt-2"})]}),s.jsxs("div",{children:[s.jsx(m,{htmlFor:"password",value:"New Password",className:"text-gray-700"}),s.jsxs("div",{className:"mt-2 relative",children:[s.jsx(c,{className:"w-5 h-5 text-gray-400 absolute left-3 top-2.5"}),s.jsx(o,{id:"password",type:n?"text":"password",name:"password",value:a.password,className:"pl-10 pr-10 mt-0 block w-full border-gray-300 focus:border-primary focus:ring-blue-500 rounded-xl shadow-sm",autoComplete:"new-password",isFocused:!0,onChange:e=>r("password",e.target.value)}),s.jsx("button",{type:"button",onClick:()=>h(e=>!e),className:"absolute right-3 top-2.5 text-gray-400 hover:text-gray-600 focus:outline-none focus:text-gray-600",children:n?s.jsx(v,{className:"w-5 h-5"}):s.jsx(C,{className:"w-5 h-5"})})]}),s.jsx(l,{message:t.password,className:"mt-2"})]}),s.jsxs("div",{children:[s.jsx(m,{htmlFor:"password_confirmation",value:"Confirm Password",className:"text-gray-700"}),s.jsxs("div",{className:"mt-2 relative",children:[s.jsx(c,{className:"w-5 h-5 text-gray-400 absolute left-3 top-2.5"}),s.jsx(o,{id:"password_confirmation",type:"password",name:"password_confirmation",value:a.password_confirmation,className:"pl-10 mt-0 block w-full border-gray-300 focus:border-primary focus:ring-blue-500 rounded-xl shadow-sm",autoComplete:"new-password",onChange:e=>r("password_confirmation",e.target.value)})]}),s.jsx(l,{message:t.password_confirmation,className:"mt-2"})]}),s.jsx("div",{className:"pt-2",children:s.jsx(N,{className:"w-full justify-center py-3 bg-gradient-to-r from-primary to-primary hover:from-primary hover:to-primary rounded-xl transition-all duration-200",disabled:i,children:i?s.jsxs("span",{className:"flex items-center justify-center",children:[s.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[s.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),s.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Updating..."]}):"Set new password"})})]})]})})]})]})}export{J 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.