PageSourceSearch

https://elxis.com/build/assets/Login-d4CEHhFw.js

js elxis.com collected 2026-09-24 22:11:20 UTC 4,555 bytes, 1 lines download raw bytes

1import{g as w,a as v,r as y,j as e,M as N,_ as s,B as t,I as m,f as b,H as C}from"./app-W4vvqFN5.js";import{I as _,L as S,B as k,C as P,p as B}from"./Layout-CjH7VPEp.js";import{B as D}from"./Breadcrumbs-DWRLZ6Vw.js";import{S as M}from"./houses-D2R4JZr0.js";/* empty css            */const E=({isOpen:h,onClose:p})=>{const{account:o}=w(),{data:f,setData:x,post:g,processing:j,errors:c,reset:r}=v({email:""}),[i,u]=y.useState(!1),n=()=>{r(),u(!1),p()},l=d=>{d.preventDefault(),g(o.urls.forgotPasswordUrl,{onSuccess:()=>u(!0)})};return e.jsx(N,{isOpen:h,onClose:n,title:s("my_account.forgot_password_title"),children:e.jsxs("div",{className:"flex flex-col gap-5 pt-5",children:[e.jsx("p",{className:"text-primary-900",children:s("my_account.forgot_password_description")}),i?e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsx("p",{className:"text-primary-700",children:s("my_account.forgot_password_email_sent")}),e.jsxs(t,{variant:"outline",type:"button",className:"flex! items-center justify-center gap-3",onClick:n,children:[s("my_account.forgot_password_close"),e.jsx(m,{name:"close",className:"h-4 w-4"})]})]}):e.jsxs("form",{onSubmit:l,className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(_,{type:"email",name:"email",label:s("email"),placeholder:s("email"),value:f.email,onChange:d=>x("email",d),required:!0}),c.email&&e.jsx("p",{className:"text-sm text-error-dark",children:c.email})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs(t,{variant:"primary",type:"submit",className:"flex! items-center justify-center gap-3",disabled:j,children:[s("my_account.forgot_password_send_recovery_link"),e.jsx(m,{name:"arrow-right",className:"h-4 w-4"})]}),e.jsxs(t,{variant:"outline",type:"button",className:"flex! items-center justify-center gap-3",onClick:n,children:[s("my_account.forgot_password_cancel"),e.jsx(m,{name:"close",className:"h-4 w-4"})]})]})]})]})})},O=()=>{const{url:h}=b(),{account:p}=w(),o=p.privacyPolicy,f=p.urls.registerUrl,[x,g]=y.useState(!1),[j,c]=y.useState(!1),{data:r,setData:i,post:u,processing:n,errors:l}=v({email:"",password:"",remember:!1,privacy_policy_accepted:!1}),d=a=>{a.preventDefault(),u(h,{onSuccess:()=>B("login",{userEmail:r.email})})};return e.jsxs(S,{children:[e.jsxs(k,{className:"py-3",children:[e.jsx(D,{}),e.jsxs("section",{className:"mt-4 grid grid-cols-1 overflow-hidden rounded-sm bg-white lg:grid-cols-2 lg:rounded-lg",children:[e.jsxs("div",{className:"flex flex-col gap-5 p-6 lg:py-15 lg:pr-30 lg:pl-24",children:[e.jsx(C,{as:"h1",variant:"h5",children:s("log_in")}),e.jsxs("form",{onSubmit:d,className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(_,{type:"email",name:"email",placeholder:s("email"),label:s("email"),value:r.email,onChange:a=>i("email",a),error:!!l.email}),l.email&&e.jsx("p",{className:"text-sm text-error-dark",children:l.email})]}),e.jsx(_,{type:x?"text":"password",name:"password",placeholder:s("password"),label:s("password"),value:r.password,onChange:a=>i("password",a),inputClassName:"pr-14",error:!!l.password,children:e.jsx("button",{type:"button",onClick:()=>g(a=>!a),className:"absolute top-1/2 right-3 -translate-y-1/2 cursor-pointer text-sm font-bold text-primary-950",children:x?s("hide_password"):s("show_password")})}),e.jsx(t,{variant:"link",className:"w-fit text-primary-600!",onClick:()=>c(!0),type:"button",children:s("forgot_password_question")})]}),o&&e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(P,{label:o.label,url:o.url,name:"privacy_policy_accepted",align:"start",required:!0,checked:r.privacy_policy_accepted,onChange:a=>i("privacy_policy_accepted",a)}),l.privacy_policy_accepted&&e.jsx("p",{className:"text-sm text-error-light",children:l.privacy_policy_accepted})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs(t,{variant:"primary",type:"submit",className:"flex! items-center justify-center gap-3",disabled:n,children:[s("log_in"),e.jsx(m,{name:"arrow-right",className:"h-4 w-4"})]}),e.jsxs(t,{variant:"outline",href:f??void 0,className:"flex! items-center justify-center gap-3",children:[s("or_sign_up"),e.jsx(m,{name:"arrow-right",className:"h-4 w-4"})]})]})]})]}),e.jsx("div",{className:"relative h-full min-h-0 w-full overflow-hidden rounded-l-lg max-lg:hidden",children:e.jsx(M,{className:"absolute inset-0 h-full w-full",preserveAspectRatio:"xMidYMid slice"})})]})]}),e.jsx(E,{isOpen:j,onClose:()=>c(!1)})]})};export{O 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.