1import{bA as h,bz as l,aj as g,bC as b,j as e,bD as f,bE as j,bF as y,ak as N}from"./index-2ed27e87.js";import{l as v}from"./large-lotus-flower-347efb26.js";import{r as x,B as m,n as k}from"./utils-40ed1a82.js";const q=[{text:"First name",placeholder:"Your first name here",required:!0},{text:"Last name",placeholder:"Your last name here",required:!0},{text:"Email",placeholder:"[email protected]",required:!0},{text:"Phone number",placeholder:"(123) 456-789",required:!1},{text:"Message",placeholder:"Write your message here:",required:!1,textarea:!0}],w=h({first_name:l().required("First name is required "),last_name:l().required("Last name is required "),email:l().email("Please enter a valid email address.").required("Email is required"),phone_number:l(),message:l()}).required(),S=({data:s,register:t,error:r})=>e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("label",{htmlFor:s.snakeCase,children:[s.text,s.required&&"*"]}),e.jsx("input",{...t(s.snakeCase),type:"text",id:s.snakeCase,className:"outline-none bg-transparent placeholder:text-secondary px-3",placeholder:s.placeholder}),e.jsx("div",{className:"w-full bg-secondary h-1"}),r&&e.jsx("p",{className:"text-red-500",children:r.message})]}),C=({data:s,register:t,error:r})=>e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("label",{htmlFor:s.snakeCase,children:[s.text,s.required&&"*"]}),e.jsx("textarea",{...t(s.snakeCase),className:"bg-transparent border-4 p-3 placeholder:text-secondary outline-none border-secondary",id:s.snakeCase,rows:"5",placeholder:s.placeholder}),r&&e.jsx("p",{className:"text-red-500",children:r.message})]}),L=()=>{const{register:s,handleSubmit:t,formState:{errors:r}}=g({resolver:N(w)}),[u,{isSuccess:n,isError:i}]=b(),[c,d]=x.useState(null),p=a=>{d(null),m.info("Submitting..."),u({...a})};return x.useEffect(()=>{(n||i)&&m.dismiss(),n&&d({text:"Thank you for reaching out to LifeBooks",color:"text-green-500"}),i&&d({text:"Unexpected error occured",color:"text-red-500"})},[i,n]),e.jsxs(e.Fragment,{children:[e.jsx(f,{data:j.contact}),e.jsx("div",{className:"text-secondary max-w-primary mx-auto px-mobile lg:px-primary font-PlayfairRegular pb-16 ",children:e.jsxs("div",{className:" relative z-20",children:[e.jsx("div",{className:"w-full h-full opacity-20 hidden lg:block absolute -z-10 ",children:e.jsx("img",{src:v,className:"w-full max-w-full h-full object-cover object-center",alt:""})}),e.jsxs("div",{className:" flex flex-col lg:flex-row gap-8",children:[e.jsxs("div",{className:"w-full lg:w-1/2",children:[e.jsx("h1",{className:"text-6xl text-secondary ",children:"Let's talk."}),e.jsx("p",{className:"text-2xl pr-8 lg:pr-40 font-EBGaramondSemibold mt-5 mb-9",children:"LifeBooks is a continuous collabration, and your inquiries and thoughts matter. Contact us, and we'll respond within 24 hours."}),e.jsxs("div",{className:"font-EBGaramondSemibold text-xl space-y-1",children:[e.jsx("p",{children:"Connect with our team today"}),e.jsxs("ul",{className:"pl-12 list-disc space-y-1",children:[e.jsx("li",{children:"Inquire about starting your LifeBook project."}),e.jsx("li",{children:"Explore the capabilities and assistance offered by the LifeBooks Engine."}),e.jsx("li",{children:"Share your thoughts and questions with us."})]})]}),e.jsx("div",{className:"mt-4 -mb-12 size-[150px] md:size-[200px] md:bg-[length:600px] md:-mb-16 lg:mb-0 lg:size-[400px] bg-[length:500px] lg:bg-[length:1300px] bg-center bg-no-repeat",style:{backgroundImage:`url(${y})`}})]}),e.jsx("div",{className:"w-full lg:w-1/2 border-8 font-EBGaramondSemibold bg-primary border-secondary px-4 lg:px-10 py-4 lg:py-8",children:e.jsxs("form",{onSubmit:t(p),className:"space-y-6 text-xl",children:[q.map(a=>{const o=k(a.text);return a.textarea?e.jsx(C,{error:r[o],register:s,data:{snakeCase:o,...a}}):e.jsx(S,{error:r[o],register:s,data:{snakeCase:o,...a}})}),c&&e.jsx("div",{className:` text-2xl ${c.color}`,children:c.text}),e.jsx("div",{className:"flex justify-center",children:e.jsx("button",{type:"submit",className:"px-8 mx-auto py-2 text-primary bg-secondary rounded-lg",children:"Send"})})]})})]})]})})]})};export{L 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.