1import{u as h,a as f,j as e,H as j,L as o,c as w}from"./app-BW7s7uyW.js";import{B as b}from"./button-DVipS2rI.js";import{I as v}from"./input-Bs76onQo.js";import{I as N}from"./InputError-D7jaO5dP.js";import{R as y}from"./RecentBlogs-CkyrcpxC.js";import{S as k}from"./Spinner-DyJ2_3hU.js";import{G as P}from"./GuestLayout-BfHr9wAV.js";import{U as R,G as S}from"./undo-2-B64h1ACX.js";import"./index-DLsbnuD0.js";import"./external-link-DhR7HSU6.js";import"./createLucideIcon-CFRjRP62.js";import"./dropdown-menu-D1bQgLzl.js";import"./react-icons.esm-B9_X9wM2.js";import"./index-DtmF0WWA.js";import"./index-BvFaBkyL.js";import"./index-ClwgV9Ou.js";import"./index-BtZK7GpQ.js";import"./sun-C0vIwSd-.js";function Q({status:a,canRegisterDirectly:l,blogs:s}){const{data:n,setData:m,post:c,processing:r,errors:d}=h({email:""}),u=t=>{t.preventDefault(),c(route("password.email"))},{setTheme:B,theme:x}=f(),g={src:x==="dark"?"/images/logo/logo-framed-dark.svg":"/images/logo/logo-framed-default-light.svg"};let i=!1;const p=new URLSearchParams(window.location.search).has("pwr");return e.jsx(e.Fragment,{children:e.jsxs(P,{showThemeToggle:!1,children:[e.jsx(j,{title:"Forgot Password"}),e.jsxs("div",{className:w(s.length>0&&i?"lg:grid-cols-2":"lg:grid-cols-1","w-full lg:grid"),children:[e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsxs("div",{className:"mx-auto grid w-[400px] gap-6",children:[e.jsx("img",{src:g.src.toString(),alt:"CartStack",className:"w-72 mx-auto"}),e.jsxs("div",{className:"grid gap-2 text-center",children:[e.jsx("h1",{className:"text-2xl tracking-wide hidden",children:"Reset Password"}),e.jsx("p",{className:"text-balance text-sm",children:!r&&!p?"Enter your email below to reset your password.":"You must reset your password. Please enter your email below to continue."}),a&&e.jsx("div",{className:"mb-4 font-medium text-sm text-green-600",children:a})]}),r?e.jsx(k,{}):e.jsxs("form",{onSubmit:u,children:[e.jsx(v,{id:"email",type:"email",name:"email",required:!0,value:n.email,className:"mt-1 block w-full",onChange:t=>m("email",t.target.value)}),e.jsx(N,{message:d.email,className:"mt-2"}),e.jsx("div",{className:"flex items-center justify-end mt-4",children:e.jsx(b,{type:"submit",className:"w-full",disabled:r,children:"Email Password Reset Link"})}),e.jsx("div",{className:"py-4",children:e.jsxs(o,{href:route("login"),className:"flex items-center justify-center text-balance text-sm",children:[e.jsx(R,{size:16,className:"mr-2"}),"Back to login"]})})]}),l&&e.jsxs("div",{className:"mt-4 text-center text-sm",children:["Don't have an account?"," ",e.jsx(o,{href:route("register"),className:"underline",children:"Sign up"})]}),e.jsxs("div",{className:"mt-4 text-center",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"See a list of features we are working on or request a feature!"}),e.jsxs("a",{href:"https://cartstack.frill.co/roadmap",target:"_blank",className:"inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground h-8 rounded-md px-3 text-xs mt-2",children:[e.jsx(S,{size:16,className:"mr-2"}),"Feature Roadmap"]})]})]})}),s.length>0&&i&&e.jsx("div",{className:"items-center bg-gray-100 dark:bg-transparent border border-gray-200 dark:border-0 rounded-lg justify-center hidden lg:flex z-10",children:e.jsx(y,{blogs:s})})]})]})})}export{Q 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.