PageSourceSearch

https://looksgenerous.com/_next/static/chunks/361.6fc0bc7e8ca395cd.js

js looksgenerous.com collected 2026-10-08 10:31:19 UTC 19,479 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[361],{1361:(e,t,r)=>{r.r(t),r.d(t,{default:()=>B});var a=r(5155),l=r(4988),s=r(2115),n=r(1521);let o=e=>{let{onComplete:t,isDarkBackground:r=!0}=e,[l,s,o]=(0,n.Mt)("projectType");return(0,a.jsxs)("div",{className:"flex flex-col gap-3 w-full ",children:[(0,a.jsx)("h2",{className:"text-sm font-medium transition-all duration-300 font-affair mt-4 mb-1 ".concat(r?"text-primary":"text-black2"),children:"Select Project Type:"}),(0,a.jsx)("div",{className:"flex flex-col gap-2 sm:gap-3",children:["Residential — Renovation","Residential — Furniture + Styling","Hospitality — Restaurant, Bar, Pub","Other — Hotel, Retail, Wellness"].map(e=>(0,a.jsxs)("label",{className:"flex items-center p-2 sm:p-2 rounded-md cursor-pointer transition-all font-affair italic  border-2 ".concat(l.value===e?" border-black3 bg-lightGrey text-black2":" border-lightGrey bg-lightGrey hover:border-black3 text-black2"),children:[(0,a.jsx)("input",{type:"radio",name:"projectType",value:e,checked:!!l.value&&l.value===e,onChange:()=>{o.setValue(e),o.setTouched(!0),o.setError(void 0),null==t||t({projectType:e})},onBlur:l.onBlur,className:"opacity-0 w-0 h-0 text-sm sm:text-base"}),(0,a.jsx)("span",{className:"break-words text-sm sm:text-base",children:e})]},e))}),s.touched&&s.error&&!l.value&&(0,a.jsx)("div",{className:"mt-2 p-3 bg-lightGrey border border-red2 rounded-md",children:(0,a.jsx)("p",{className:"text-xs text-red2 font-affair",children:s.error})})]})},i=e=>{let{onComplete:t,isDarkBackground:r=!0}=e,l=r?"text-primary":"text-black2",[s,o,i]=(0,n.Mt)("projectBudget");return(0,a.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[(0,a.jsxs)("h2",{className:"text-sm font-medium transition-all duration-300 font-affair mt-4 mb-1 text-primary ".concat(l),children:["Project Budget ",(0,a.jsx)("span",{className:l,children:"*"})]}),(0,a.jsx)("div",{className:"flex flex-col gap-2 sm:gap-3 min-w-[230px]",children:["500k","1m-2m","2m-5m","5m+"].map(e=>(0,a.jsxs)("label",{className:"flex items-center p-2 sm:p-2 rounded-md cursor-pointer transition-all font-affair italic text-sm border-2 ".concat(s.value===e?"border-black3 bg-lightGrey text-black2":"border-lightGrey bg-lightGrey hover:border-black3 text-black2"),children:[(0,a.jsx)("input",{type:"radio",name:"projectBudget",value:e,checked:!!s.value&&s.value===e,onChange:()=>{i.setValue(e),i.setTouched(!0),null==t||t({projectBudget:e})},onBlur:s.onBlur,className:"mr-2 sm:mr-3 w-4 h-4 text-black2 accent-black2 flex-shrink-0 text-base"}),(0,a.jsx)("span",{className:"sm:text-base text-sm",children:e})]},e))}),o.touched&&o.error&&(0,a.jsx)("div",{className:"mt-2 p-3 bg-lightGrey border border-red2 rounded-md",children:(0,a.jsx)("p",{className:"text-sm text-red2 font-affair",children:o.error})})]})},c=e=>{let{isDarkBackground:t=!0}=e,r=t?"text-primary":"text-black2",[l,s,o]=(0,n.Mt)("projectLocation"),[i,c,d]=(0,n.Mt)("listingUrl");return(0,a.jsxs)("div",{className:"flex flex-col gap-4 sm:gap-5 w-full min-w-[271.8px]",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium transition-all duration-300 font-affair mt-4 mb-1 text-primary ".concat(r),children:["Project Location ",(0,a.jsx)("span",{className:r,children:"*"})]}),(0,a.jsx)("input",{type:"text",...l,onChange:e=>{o.setValue(e.target.value),o.setTouched(!0)},onBlur:l.onBlur,placeholder:"Type Address",className:"bg-lightGrey placeholder:text-black3 rounded-md p-2 italic sm:text-base text-sm  w-full focus:outline-0 focus:border-primary border-2 border-transparent font-affair text-black2"}),s.touched&&s.error&&(0,a.jsx)("div",{className:"mt-2 p-3 bg-lightGrey border border-red2 rounded-md",children:(0,a.jsx)("p",{className:"text-sm text-red2 font-affair",children:s.error})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-normal font-affair mb-1 sm:mb-1 leading-tight ".concat(r),children:"Or add Real Estate Listing if you have one"}),(0,a.jsx)("input",{type:"url",...i,onChange:e=>{d.setValue(e.target.value),d.setTouched(!0)},onBlur:i.onBlur,placeholder:"URL Link",className:"bg-lightGrey placeholder:text-black3 sm:text-base text-sm rounded-md p-2 italic  w-full focus:outline-0 focus:border-primary border-2 border-transparent font-affair text-black2"}),c.touched&&c.error&&(0,a.jsx)("div",{className:"mt-2 p-3 bg-lightGrey border border-red2 rounded-md",children:(0,a.jsx)("p",{className:"text-sm text-red2 font-affair",children:c.error})})]})]})},d=e=>
1{let{isDarkBackground:t=!0}=e,r=t?"text-primary":"text-black2",[l,s,o]=(0,n.Mt)("firstName"),[i,c,d]=(0,n.Mt)("lastName"),[m,u,x]=(0,n.Mt)("email"),[p,h,b]=(0,n.Mt)("phone");return(0,a.jsxs)("div",{className:"flex flex-col gap-4 w-full min-w-[271.8px]",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium transition-all duration-300 font-affair mt-4 mb-1 text-primary ".concat(r),children:["First Name ",(0,a.jsx)("span",{className:r,children:"*"})]}),(0,a.jsx)("input",{type:"text",...l,onChange:e=>{o.setValue(e.target.value),o.setTouched(!0)},placeholder:"First Name",className:"bg-lightGrey placeholder:text-black3 rounded-md p-2 italic sm:text-base text-sm w-full focus:outline-0 border-2 border-transparent focus:border-primary font-affair text-black2"}),s.touched&&s.error&&(0,a.jsx)("div",{className:"mt-2 p-3 bg-lightGrey border border-red2 rounded-md animate-fade-in",children:(0,a.jsx)("p",{className:"text-xs text-red2 font-affair",children:s.error})})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium font-affair mb-1 ".concat(r),children:["Last Name ",(0,a.jsx)("span",{className:r,children:"*"})]}),(0,a.jsx)("input",{type:"text",...i,onChange:e=>{d.setValue(e.target.value),d.setTouched(!0)},onBlur:i.onBlur,placeholder:"Last Name",className:"bg-lightGrey placeholder:text-black3 rounded-md p-2 w-full focus:outline-0 border-2 sm:text-base text-sm  border-transparent focus:border-primary font-affair text-black2  italic"}),c.touched&&c.error&&(0,a.jsx)("div",{className:"mt-2 p-3 bg-lightGrey border border-red2 rounded-md animate-fade-in",children:(0,a.jsx)("p",{className:"text-xs text-red2 font-affair",children:c.error})})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium font-affair mb-1 ".concat(r),children:["Email ",(0,a.jsx)("span",{className:r,children:"*"})]}),(0,a.jsx)("input",{type:"email",...m,onChange:e=>{x.setValue(e.target.value),x.setTouched(!0)},onBlur:m.onBlur,placeholder:"Email",className:"bg-lightGrey placeholder:text-black3 rounded-md p-2 w-full focus:outline-0 border-2 border-transparent focus:border-primary font-affair text-black2  sm:text-base text-sm italic"}),u.touched&&u.error&&(0,a.jsx)("div",{className:"mt-2 p-3 bg-lightGrey border border-red2 rounded-md animate-fade-in",children:(0,a.jsx)("p",{className:"text-xs text-red2 font-affair",children:u.error})})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium font-affair mb-1 ".concat(r),children:["Phone ",(0,a.jsx)("span",{className:r,children:"*"})]}),(0,a.jsx)("input",{type:"tel",...p,onChange:e=>{let t=e.target.value.replace(/\s/g,"").replace(/[^0-9]/g,"").slice(0,10);b.setValue(t),b.setTouched(!0)},onBlur:p.onBlur,placeholder:"Phone",maxLength:10,className:"bg-lightGrey placeholder:text-black3 rounded-md p-2 w-full focus:outline-0 border-2 border-transparent focus:border-primary font-affair text-black2 sm:text-base text-sm italic"}),h.touched&&h.error&&(0,a.jsx)("div",{className:"mt-2 p-3 bg-lightGrey border border-red2 rounded-md animate-fade-in",children:(0,a.jsx)("p",{className:"text-xs text-red2 font-affair",children:h.error})})]})]})};var m=r(898),u=r(5068);let x=e=>"string"==typeof e?e.trim():e,p=e=>{if("string"!=typeof e)return e;let t=e.trim();return""===t?null:t},h=["Residential — Renovation","Residential — Furniture + Styling","Hospitality — Restaurant, Bar, Pub","Other — Hotel, Retail, Wellness"],b=["500k","1m-2m","2m-5m","5m+"];u.Ik().shape({projectType:u.Yj().required("Please select a project type to continue.").oneOf([...h],"Please select a valid project type."),projectBudget:u.Yj().required("Please select a project budget to continue.").oneOf([...b],"Please select a valid budget range."),projectLocation:u.Yj().transform(x).required("Please enter a project location to continue.").min(3,"Location must be at least 3 characters."),listingUrl:u.Yj().transform(p).nullable().optional(),firstName:u.Yj().transform(x).required("Please enter your first name.").max(50,"First name must be less than 50 characters."),lastName:u.Yj().transform(x).required("Please enter your last name.").max(50,"Last name must be less than 50 characters."),email:u.Yj().transform(x).required("Please enter your email address.").email("Please enter a valid email address."),phone:u.Yj().transform(x).required("Please enter your phone number.").matches(/^\d{10}$/,"Phone number must be exactly 10 digits.")});let f=u.Ik().shape({projectType:u.Yj().required("Please select a project type to continue.").oneOf([...h],"Please select a valid project type.")}),g=u.Ik().shape({projectBudget:u.Yj().required("Please select a project budget to continue.").oneOf([...b],"Please select a valid budget range.")}),j=u.Ik().shape({projectLocation:u.Yj().transform(x).required("Please enter a project location to continue.").min(3,"Location must be at least 3 characters."),listingUrl:u.Yj().transform(p).nullable().optional()}),y=u.Ik().shape({firstName:u.Yj().transform(x).required("Please enter your first name.").max(50,"First name must be less than 50 characters."),lastName:u.Yj().transform(x).required("Please enter your last name.").max(50,"Last name must be less than 50 characters."),email:u.Yj().transform(x).required("Please enter your email address.").email("Please enter a valid email address."),phone:u.Yj().transform(x).required("Please enter your phone number.").matches(/^\d{10}$/,"Phone number must be exactly 10 digits.")});var v=r(2619),N=r.n(v);let k=[{text:"NEXT STEPS"}],w={projectType:"",projectBudget:"",projectLocation:"",listingUrl:"",firstName:"",lastName:"",email:"",ph
1one:""},L=e=>{let{isDarkBackground:t=!0}=e,r=t?"text-primary":"text-black2",[u,x]=(0,s.useState)(1),[p,h]=(0,s.useState)(1),[b,v]=(0,s.useState)(!1),[w,L]=(0,s.useState)(!1),[B,C]=(0,s.useState)(!1),[P,T]=(0,s.useState)(!1),G=(0,n.j7)(),S=async e=>{let t=(()=>{switch(u){case 1:default:return f;case 2:return g;case 3:return j;case 4:return y}})();try{let r=e?{...G.values,...e}:G.values;return await t.validate(r,{abortEarly:!1}),!0}catch(e){if(e&&"object"==typeof e&&"inner"in e){let t={},r={};e.inner&&e.inner.forEach(e=>{e.path&&e.message&&(t[e.path]=e.message,r[e.path]=!0)}),4===u&&(r.firstName=!0,r.lastName=!0,r.email=!0,r.phone=!0);let a={...G.touched,...r};G.setErrors(t),G.setTouched(a,!1)}return!1}},Y=async e=>{if(u<4&&!b){if(!await S(e))return;let t=u+1;h(u),L(!1),v(!0),setTimeout(()=>x(t),10),setTimeout(()=>v(!1),310)}},q=()=>{if(u>1&&!b){let e=u-1;h(u),L(!0),v(!0),setTimeout(()=>x(e),10),setTimeout(()=>v(!1),310)}},M=async e=>{if((e.preventDefault(),!b&&!P)&&await S()){T(!0);try{await G.submitForm(),C(!0)}catch(e){console.error("Form submission error:",e)}finally{T(!1)}}},R=e=>{if(B)return null;switch(e){case 1:return(0,a.jsx)(o,{onComplete:e=>Y(e),isDarkBackground:t});case 2:return(0,a.jsx)(i,{onComplete:e=>Y(e),isDarkBackground:t});case 3:return(0,a.jsx)(c,{isDarkBackground:t});case 4:return(0,a.jsx)(d,{isDarkBackground:t});default:return null}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"max-w-screen-xl mx-auto h-full",children:[(0,a.jsx)("div",{className:"lgs-container absolute top-0 left-0 h-fit ",children:(0,a.jsx)(l.A,{data:k,textClass:"!".concat(r," transition-all duration-300")})}),(0,a.jsxs)("div",{className:"col-span-12 lg:col-span-8 lg:col-start-3   xl:col-span-4 xl:col-start-5 xl:mt-0 mt-10",children:[(0,a.jsxs)("p",{className:"text-base sm:text-lg md:text-2xl transition-all duration-300 font-affair text-center ".concat(r),children:["Reserve a clarity call ",(0,a.jsx)("br",{className:"lg:block  block"})," at a time that suits you:",(0,a.jsxs)(N(),{href:"https://www.picktime.com/dd59b938-4bd8-451c-88e7-c0f5d6b49668#book",target:"_blank",rel:"noopener noreferrer",className:"block underline cursor-pointer italic text-center my-5",children:[" ","Open Calendar"]})]}),(0,a.jsxs)("p",{className:"text-base sm:text-lg md:text-2xl transition-all duration-300 font-affair text-center mt-4 ".concat(r),children:["Or answer some simple ",(0,a.jsx)("br",{})," questions below and we'll ",(0,a.jsx)("br",{})," ","reach out to you:"]}),(0,a.jsx)("div",{className:"min-w-fit w-full mx-auto",children:(0,a.jsx)("div",{className:"mt-6",children:B?(0,a.jsx)("div",{className:"flex flex-col items-center justify-center py-12 mt-4 sm:mt-4",children:(0,a.jsxs)("div",{className:"text-center space-y-4 animate-fade-in",children:[(0,a.jsx)("div",{className:"w-16 h-16 mx-auto group-hover:bg-primary transition-all duration-300 bg-black2 rounded-full flex items-center justify-center border-2 border-primary",children:(0,a.jsx)(m.CMH,{className:"".concat(r," text-2xl")})}),(0,a.jsx)("h3",{className:"text-2xl font-affair transition-all duration-300 ".concat(r),children:"Thank You!"}),(0,a.jsx)("p",{className:"text-base transition-all duration-300 ".concat(r),children:"We've received your information and will contact you soon."})]})}):(0,a.jsxs)("form",{onSubmit:M,className:"flex flex-col gap-3 w-full mt-4 sm:mt-4",children:[(0,a.jsxs)("div",{className:"relative overflow-hidden min-h-[265px]",children:[(0,a.jsx)("div",{className:b?"opacity-0":"",children:R(u)},"current-".concat(u)),b&&(0,a.jsx)("div",{className:"absolute top-0 left-0 w-full pointer-events-none ".concat(w?"animate-slide-out-right":"animate-slide-out-left"),children:R(p)},"prev-".concat(p)),b&&(0,a.jsx)("div",{className:"absolute top-0 left-0 w-full pointer-events-none ".concat(w?"animate-slide-in-left":"animate-slide-in-right"),children:R(u)},"next-".concat(u))]}),(0,a.jsxs)("div",{className:"flex gap-3",children:[1==u&&(0,a.jsx)("button",{type:"button",onClick:q,disabled:b,className:"bg-primary invisible pointer-events-none h-10 group font-affair flex items-center justify-center rounded-md p-2 sm:p-2 max-w-1/2 mx-auto flex-1 border border-primary text-black2 hover:bg-primary/90 group-hover:bg-primary/90 group-hover:text-black2 cursor-pointer transition-all duration-300 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-primary disabled:hover:text-black2",children:(0,a.jsx)("span",{className:"inline",children:(0,a.jsx)("svg",{className:"rotate-180 transition-all duration-300 fill-black2 group-hover:fill-black2",width:"43",height:"8",viewBox:"0 0 43 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M41.902 4.03715C42.0973 3.84189 42.0973 3.52531 41.902 3.33004L38.72 0.148063C38.5248 -0.0471987 38.2082 -0.0471985 38.0129 0.148063C37.8177 0.343326 37.8177 0.659908 38.0129 0.85517L40.8413 3.6836L38.0129 6.51202C37.8176 6.70729 37.8176 7.02387 38.0129 7.21913C38.2082 7.41439 38.5248 7.41439 38.72 7.21913L41.902 4.03715ZM0 3.6836L3.02746e-09 4.1836L41.5484 4.1836L41.5484 3.6836L41.5484 3.1836L-3.02813e-09 3.1836L0 3.6836Z"})})})}),u>1&&(0,a.jsx)("button",{type:"button",onClick:q,disabled:b,className:"bg-primary h-10 group font-affair flex items-center justify-center rounded-md p-2 sm:p-2 max-w-1/2 mx-auto flex-1 border border-primary text-black2 hover:bg-primary/90 group-hover:bg-primary/90 group-hover:text-black2 cursor-pointer transition-all duration-300 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-primary disabled:hover:text-black2",children:(0,a.jsx)("span",{className:"inline",children:(0,a.jsx)("svg",{className:"rotate-180 transition-all duration-300 fill-black2 group-hover:fill-black2",width:"43",height:"8",viewBox:"0 0 43 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M41.902 4.03715C42.0973 3.84189 42.0973 3.52531 41.902 3.33004L38.72 0.148063C38.5248 -0.0471987 38.2082 -0.0471985 38.0129 0.148063C37.8177 0.343326 37.8177 0.659908 38.0129 0.85517L40.8413 3.6836L38.0129 6.51202C37.8176 6.70729 37.8176 7.02387 38.0129 7.21913C38.2082 7.41439 38.5248 7.41439 38.72 7.21913L41.902 4.03715ZM0 3.6836L3.02746e-09 4.1836L41.5484 4.1836L41.5484 3.6836L41.5484 3.1836L-3.02813e-09 3.1836L0 3.6836Z"})})})}),3===u&&u<4&&(0,a.jsx)("button",{type:"button",onClick:()=>Y(),disabled:b,className:"bg-primary h-10 group font-affair flex items-center justify-center rounded-md p-2 max-w-1/2 mx-auto text-black2 sm:p-2 flex-1 border border-primary hover:bg-primary/90 group-hover:bg-primary/90 group-hover:text-black2 cursor-pointer transition-all duration-300 disabled:cursor-not-allowed disabled:hover:bg-primary disabled:hover:text-black2 ".concat(b?"opacity-50 cursor-not-allowed hover:bg-primary hover:text-black2 ":""),children:(0,a.jsx)("span",{className:"inline",children:(0,a.jsx)("svg",{className:"group-hover:fill-black2 fill-black2 transition-all duration-300",width:"43",height:"8",viewBox:"0 0 43 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M41.902 4.03715C42.0973 3.84189 42.0973 3.52531 41.902 3.33004L38.72 0.148063C38.5248 -0.0471987 38.2082 -0.0471985 38.0129 0.148063C37.8177 0.343326 37.8177 0.659908 38.0129 0.85517L40.8413 3.6836L38.0129 6.51202C37.8176 6.70729 37.8176 7.02387 38.0129 7.21913C38.2082 7.41439 38.5248 7.41439 38.72 7.21913L41.902 4.03715ZM0 3.6836L3.02746e-09 4.1836L41.5484 4.1836L41.5484 3.6836L41.5484 3.1836L-3.02813e-09 3.1836L0 3.6836Z"})})})}),4===u&&(0,a.jsx)("button",{type:"submit",disabled:b||P,className:"bg-primary font-affair h-10 rounded-md p-2 sm:p-2 ".concat(u>1?"flex-1":"w-full"," border border-primary text-black2  hover:bg-transparent hover:text-primary hover:border-primary curs
1or-pointer transition-all duration-300 disabled:cursor-not-allowed disabled:hover:bg-primary flex items-center justify-center gap-2 ").concat(b||P?"opacity-50 cursor-not-allowed hover:bg-primary hover:text-black2":""),children:P?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.hW,{className:"animate-spin"}),(0,a.jsx)("span",{children:"Submitting..."})]}):"Submit"})]})]})})})]})]})})},B=e=>{let{bannerNavTex:t,isDarkBackground:r=!0}=e,l=async e=>{let t={name:"".concat(e.firstName," ").concat(e.lastName),email:e.email,mobile:e.phone,lookingFor:"Project Inquiry",address:e.projectLocation,projectType:e.projectType,projectBudget:e.projectBudget,projectLocation:e.projectLocation};try{let e=await fetch("/api/contact-us",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});(await e.json()).success||alert("Email send failed")}catch(e){console.error(e),alert("Something went wrong")}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{children:t}),(0,a.jsx)(n.l1,{initialValues:w,validationSchema:f,onSubmit:l,children:(0,a.jsx)(L,{isDarkBackground:r})})]})}},4988:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(5155);r(2115);let l=e=>{let{data:t,textClass:r}=e;return(0,a.jsx)("div",{className:"flex items-center  w-full  justify-center flex-wrap absolute z-10 left-0 right-0  top-5 BannerNavigation font-normal",children:t.map((e,t)=>(0,a.jsx)("span",{className:"font-founders tracking-wider md:text-lg  text-sm  ".concat(r," transition-all duration-300 uppercase font-normal"),children:e.text},t))})}}}]);

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.