PageSourceSearch

https://carflys-testing-new.vercel.app/_next/static/chunks/app/lay…?dpl=dpl_BTsqwRVangeP1yy9w6xBg89ckUA6

js carflys-testing-new.vercel.app collected 2026-10-03 06:22:08 UTC 50,104 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{46920:function(e,t,a){Promise.resolve().then(a.bind(a,16353)),Promise.resolve().then(a.t.bind(a,58877,23)),Promise.resolve().then(a.bind(a,91873)),Promise.resolve().then(a.bind(a,59121)),Promise.resolve().then(a.bind(a,69128)),Promise.resolve().then(a.bind(a,68058)),Promise.resolve().then(a.bind(a,18735)),Promise.resolve().then(a.bind(a,17240)),Promise.resolve().then(a.t.bind(a,40099,23)),Promise.resolve().then(a.bind(a,95956)),Promise.resolve().then(a.t.bind(a,44193,23))},16353:function(e,t,a){"use strict";a.d(t,{default:function(){return ey}});var s,r,l,n,i,o,c,d,m,u,h,p,x,f,g,v,b=a(57437),w=a(45018),y=a(4410);function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}var N=function(e){return y.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 976 1109"},e),s||(s=y.createElement("path",{fill:"#FD7E14",d:"M596.182 355.5 90 90l431.729 496.5zM527.725 594.5l75.952-237L787.562 696zM527.725 819.5l-5.996-218 263.334 104zM518.731 821l-4.497-219.5L252.898 1019zM794.557 687l-77.451-144 135.415-56zM849.523 529.5l10.993-42.5L886 554.5z"})))},C=a(8466),k=a(47842),E=a(41685),A=a(44843),S=a(54819),P=a(61645),_=a(66648),M=a(87138),F=a(39343),I={src:"/_next/static/media/google.36256ecd.webp",height:512,width:512,blurDataURL:"data:image/webp;base64,UklGRtgAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSD8AAAABYBXbtpL9GjH8ksAhikZxyOGEsR7MsxIRERB2XQjM8nlkRiRLITzob3CWNbfu9feRLISoZcQo30+OQNA0PgAAVlA4IHIAAAAwAgCdASoIAAgAAkA4JbACdLoA1AAC1jDVFAD8/eY7pJ/Vs6Yc39Mr8KQ7CtkcR1FVF/C6/J+oCuL0H1T/2twD19/8FDTPkN5/04tczo/jJP8m63JJH2wjff5r/x7p23jb/h3Ki1/sb/FFTPx9pbmgAAA=",blurWidth:8,blurHeight:8},O=a(25524),Z=a(31879),L=a(19737),V=a(55076),z=a(95956),T=a(18735),q=a(16463),H=e=>{let{}=e,t=(0,q.useRouter)(),a=(0,E.TL)(),{register:s,handleSubmit:r,watch:l,clearErrors:n,getValues:i,formState:{errors:o}}=(0,F.cI)({reValidateMode:"onChange",defaultValues:{email:"",password:"",rememberMe:!0}}),c=(0,T.Nq)({flow:"auth-code",onSuccess:async e=>{let t=(await Z.L.post("/auth/signin-with-google",{credentials:"customHooks",code:e.code})).data.data;a((0,V.av)({user:t,persist:i().rememberMe,mode:"login"})),z.Am.success("Logged in successfully"),a((0,P.Mr)())},onError:e=>console.log(e)}),d=(0,O.D)({mutationFn:async e=>(e.email=e.email.toLowerCase(),(await Z.L.post("/auth/login",e)).data.data),onSuccess:(e,s)=>{var r;a((0,V.av)({user:e,persist:s.rememberMe,mode:"login"})),"Seller"===e.userType&&(null===(r=e.dealership)||void 0===r?void 0:r.status)!=="Active"?(z.Am.success("Logged in successfully"),a((0,P.Mr)()),t.push("/verify-seller")):("Customer"===e.userType?(t.push("/vehicles"),z.Am.success("Logged in Successfully")):z.Am.success("Logged in successfully"),a((0,P.Mr)()))},onError:e=>{var t,a,s;console.log(null===(t=e.response)||void 0===t?void 0:t.data),z.Am.error((null===(s=e.response)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:a.message)||"There was an error logging in")}});return(0,b.jsxs)("form",{className:"relatice mt-4 space-y-4 px-4",onSubmit:r(e=>d.mutate(e)),noValidate:!0,children:[d.isPending&&(0,b.jsx)(L.Z,{}),(0,b.jsx)(A.Z,{type:"email",placeholder:"Email",errors:o,register:s,rules:{required:"Email is required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,message:"Invalid email address"}},...s("email"),classes:{input:"text-xl p-4"},required:!0}),(0,b.jsx)(A.Z,{type:"password",placeholder:"Password",errors:o,register:s,rules:{required:"Password is required"},...s("password"),classes:{input:"text-xl p-4"},required:!0}),(0,b.jsx)("button",{className:"w-full rounded-md bg-primary px-6 py-4 text-xl font-medium text-white",type:"submit",children:"Login"}),(0,b.jsxs)("div",{className:"!mt-6 flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("input",{type:"checkbox",id:"rememberMe",...s("rememberMe"),className:"h-6 w-6 rounded-md border border-gray-600/50 accent-primary"}),(0,b.jsx)("label",{htmlFor:"rememberMe",className:"select-none text-xl text-gray-500",children:"Remember me"})]}),(0,b.jsx)(M.default,{onClick:()=>{a((0,P.Mr)())},href:"/Forgot-password",className:"cursor-pointer text-xl text-primary hover:underline",children:"Forgot password?"})]}),(0,b.jsx)(S.Z,{label:"or",classes:{divider:"!my-8",label:"text-xl uppercase -top-3"}}),(0,b.jsxs)("button",{type:"button",className:"mx-auto flex items-center justify-center gap-4 roun
1ded-md border border-gray-600/50 px-8 py-2",onClick:()=>c(),children:[(0,b.jsx)(_.default,{src:I,alt:"Google Logo",width:48,height:48}),(0,b.jsx)("p",{className:"text-xl text-gray-600",children:"Sign in with Google"})]}),(0,b.jsxs)("p",{className:"text-center text-lg text-gray-500",children:["Don't have an account?"," ",(0,b.jsx)("button",{onClick:()=>{a((0,P.h7)({mode:"register"}))},className:"text-primary hover:underline",children:"Register Here"})]})]})},R=a(2736),B=a(2265),D=a(74204),U=e=>{let{}=e,t=(0,E.TL)(),[a,s]=(0,B.useState)(null),[r,l]=(0,B.useState)(!1),[n,i]=(0,B.useState)("Customer"),{register:o,handleSubmit:c,watch:d,clearErrors:m,formState:{errors:u}}=(0,F.cI)({reValidateMode:"onChange"}),h=(0,O.D)({mutationFn:async e=>(e.email=e.email.toLowerCase(),e.userType="Customer",(await Z.L.post("/auth/signup",e)).data.data),onSuccess:(e,a)=>{z.Am.success("You have successfully registered"),t((0,P.h7)({mode:"login"}))},onError:e=>{var t,a,s;console.log(null===(t=e.response)||void 0===t?void 0:t.data),z.Am.error((null===(s=e.response)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:a.message)||"There was an error registering")}}),p=(0,T.Nq)({flow:"auth-code",onSuccess:async e=>{s(e.code||null),l(!0)},onError:e=>{console.log(e),z.Am.error("Failed to signup using google.")}}),x=(0,O.D)({mutationFn:async()=>Z.L.post("/auth/signup-with-google",{code:a,credentials:"customHooks",userType:"Customer"}),onSuccess:e=>{z.Am.success(e.data.message),l(!1)},onError:e=>{console.log(e),z.Am.error(e.response.data.message||"Failed to signin with google.")}});return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("form",{className:"mt-4 space-y-2",onSubmit:c(e=>h.mutate(e)),noValidate:!0,children:[h.isPending&&(0,b.jsx)(L.Z,{}),(0,b.jsx)(A.Z,{type:"text",placeholder:"First Name",errors:u,register:o,rules:{required:"First Name is required",pattern:{value:/^[a-z ,.'-]+$/i,message:"Invalid First Name"},minLength:{value:2,message:"First Name should be atleast 2 characters"}},...o("firstName"),classes:{input:"text-xl px-4 py-3"},required:!0}),(0,b.jsx)(A.Z,{type:"text",placeholder:"Last Name",errors:u,register:o,rules:{required:"Last Name is required",pattern:{value:/^[a-z ,.'-]+$/i,message:"Invalid Last Name"},minLength:{value:2,message:"Last Name should be atleast 2 characters"}},...o("lastName"),classes:{input:"text-xl px-4 py-3"},required:!0}),(0,b.jsx)(A.Z,{type:"tel",placeholder:"Cell Number",mask:"+1(999)-999-9999",errors:u,register:o,rules:{required:"Cell Number is required",pattern:{value:/^(\+1\s?)?(\d{3}|\(\d{3}\))[\s\-]?\d{3}[\s\-]?\d{4}$/,message:"Invalid Cell Number"}},...o("phoneNumber"),classes:{input:"text-xl px-4 py-3"},required:!0}),(0,b.jsx)(A.Z,{type:"email",placeholder:"Email",errors:u,register:o,rules:{required:"Email is required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,message:"Invalid email address"}},...o("email"),classes:{input:"text-xl px-4 py-3"},required:!0}),(0,b.jsx)(A.Z,{type:"password",placeholder:"Password",errors:u,register:o,rules:{required:"Password is required",pattern:{value:/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,message:"Must Contain 8 Characters, 1 Uppercase, 1 Lowercase, 1 Number, 1 Special Character"}},...o("password"),classes:{input:"text-xl px-4 py-3"},required:!0}),(0,b.jsx)(A.Z,{type:"password",placeholder:"Confirm Password",errors:u,register:o,rules:{required:"Confirm Password is required",validate:e=>e===d("password")||"Passwords do not match"},...o("confirmPassword"),classes:{input:"text-xl px-4 py-3"},required:!0}),(0,b.jsx)("button",{className:"w-full rounded-md bg-primary px-6 py-4 text-xl font-medium text-white",type:"submit",children:"Sign Up"}),(0,b.jsx)(S.Z,{label:"or",classes:{divider:"!my-8",label:"text-xl uppercase -top-3"}}),(0,b.jsxs)("button",{type:"button",className:"mx-auto flex items-center justify-center gap-4 roun
1ded-md border border-gray-600/50 px-8 py-2",onClick:()=>p(),children:[(0,b.jsx)(_.default,{src:I,alt:"Google Logo",width:48,height:48}),(0,b.jsx)("p",{className:"text-xl text-gray-600",children:"Sign Up with Google"})]}),(0,b.jsxs)("p",{className:"text-center text-lg text-gray-500",children:["Already have an account?"," ",(0,b.jsx)("button",{onClick:()=>{t((0,P.h7)({mode:"login"}))},className:"text-primary hover:underline",children:"Login Here"})]})]}),(0,b.jsxs)(R.Z,{isOpen:r,setIsOpen:l,title:"Registration",childrenContainerClassName:"lg:max-w-[400px]",children:[(0,b.jsx)("div",{className:"form-control",children:(0,b.jsxs)("label",{className:"label cursor-pointer",children:[(0,b.jsx)("span",{className:"label-text text-lg",children:"Customer"}),(0,b.jsx)("input",{type:"radio",value:n,name:"user-type",className:"radio checked:bg-primary",checked:"Customer"===n,onChange:()=>i("Customer")})]})}),(0,b.jsx)("div",{className:"form-control",children:(0,b.jsxs)("label",{className:"label cursor-pointer",children:[(0,b.jsx)("span",{className:"label-text text-lg",children:"Seller"}),(0,b.jsx)("input",{type:"radio",value:n,name:"user-type",className:"radio checked:bg-primary",onChange:()=>i("Seller"),checked:"Seller"===n})]})}),(0,b.jsxs)("div",{className:"mt-8 flex w-full gap-2",children:[(0,b.jsx)(D.Z,{variant:"filled",onClick:()=>{s(null),l(!1)},className:"flex-1 border-red-500 bg-transparent text-red-500",label:"Cancel"}),(0,b.jsx)(D.Z,{onClick:()=>{x.mutate()},label:"Register",className:"flex-1"})]})]})]})},G=e=>{let{}=e,t=(0,E.CG)(e=>e.authModal.opened),a=(0,E.CG)(e=>e.authModal.mode),s=(0,E.CG)(e=>e.authModal.title),r=(0,E.CG)(e=>e.authModal.message),l=(0,E.TL)();return(0,b.jsx)(C.u,{appear:!0,show:t,children:(0,b.jsx)(k.Vq,{as:"div",className:"relative z-10 focus:outline-none",onClose:()=>{l((0,P.Mr)())},children:(0,b.jsx)("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto",children:(0,b.jsx)("div",{className:"flex min-h-full items-center justify-center bg-black/70 p-4 backdrop-blur-sm ",children:(0,b.jsx)(C.x,{enter:"ease-out duration-300",enterFrom:"opacity-0 transform-[scale(95%)]",enterTo:"opacity-100 transform-[scale(100%)]",leave:"ease-in duration-200",leaveFrom:"opacity-100 transform-[scale(100%)]",leaveTo:"opacity-0 transform-[scale(95%)]",children:(0,b.jsxs)(k.EM,{className:"w-full max-w-lg rounded-xl bg-white p-6",children:[(0,b.jsx)(_.default,{src:"/logo.svg",alt:"Logo",width:70,height:70,className:"mx-auto"}),(0,b.jsx)(k.$N,{as:"h3",className:"!smb-4 text-center text-4xl font-medium",children:(null==s?void 0:s.length)?s:"login"===a?"Login":"Sign Up"}),(null==r?void 0:r.length)?(0,b.jsx)("p",{className:"my-2 text-center text-gray-500",children:r}):null,"login"===a?(0,b.jsx)(H,{}):(0,b.jsx)(U,{})]})})})})})})},W=a(2614),J=a(42873),$=a(45923),Q=a(42421),Y=a(87140),X=a(89896),K=()=>{let e=(0,E.CG)(e=>e.user.user),t=(0,E.TL)(),a=(0,q.useRouter)();return(0,b.jsx)("div",{className:"relative z-50 w-56",children:(0,b.jsxs)($.v2,{children:[(0,b.jsxs)($.j2,{className:"inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-base font-semibold text-black focus:outline-none data-[hover]:bg-gray-100 data-[open]:bg-gray-100 data-[focus]:outline-1 data-[focus]:outline-white",children:[(0,b.jsx)(_.default,{src:(null==e?void 0:e.profilePicture)||"/default-avatar.png",alt:"avatar",width:32,height:32,className:"h-8 w-8 rounded-full object-cover"}),(0,b.jsxs)("p",{className:"truncate",children:[e.firstName," ",e.lastName]}),(0,b.jsx)(Q.Z,{className:"size-4 fill-white/60"})]}),(0,b.jsx)(C.u,{enter:"transition ease-out duration-75",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition ease-in duration-100",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,b.jsxs)($.sd,{anchor:"bottom end",className:"z-[999] mt-1 w-52 origin-top-right rounded-xl border border-black/5 bg-white  text-sm/6 text-black  focus:outline-none",children:[(0,b.jsx)($.sN,{children:(0,b.jsx)(M.default,{href:"/dashboard",children:(0,b.jsxs)("button",{className:"group flex w-full items-center gap-2 rounded-lg p-3 data-[focus]:bg-white/10",children:[(0,b.jsx)(Y.Z,{className:"size-4 fill-white/60"}),"Dashboard"]})})}),(0,b.jsx)($.sN,{children:(0,b.jsxs)("button",{onClick:()=>{t((0,V.pn)()),a.push("/")},className:"group flex w-full items-center gap-2 rounded-lg p-3 text-red-400 data-[focus]:bg-white/10",children:[(0,b.jsx)(X.Z,{className:"size-4 fill-white/60"}),"Logout"]})})]})})]})})},ee=()=>{let e=(0,q.usePathname)(),t=(0,q.useRouter)(),a=(0,E.CG)(e=>e.user.user),[s,r]=(0,B.useState)("light"),l=["dashboard"].includes((0,q.usePathname)().split("/")[1]),n=(0,E.TL)(),i=(0,E.CG)(e=>e.sidebar.isOpen),o=[{name:"Home",href:"/"},{name:"Used Cars",href:"/vehicles"},{name:"Finance Calculator",href:"/finance-calculator"},{name:"Blogs",href:"/blogs"},{name:"Contact Us",href:"/contact"}],c=e=>{e?n((0,W.wJ)()):n((0,W.Xp)())};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("header",{className:"".concat(l?"fixed z-[999] h-20":"h-28 xl:h-32"," z-10 flex  w-full items-center justify-between bg-white px-4 shadow-md  xl:px-8"),children:[(0,b.jsx)("div",{className:"flex items-center gap-3",children:(0,b.jsxs)(M.default,{href:"/",onDoubleClick:()=>{t.push("/")},onClick:l?e=>{e.preventDefault(),c(!i)}:()=>{},className:"flex flex-col items-center justify-center",children:[(0,b.jsx)(N,{className:(0,w.cn)("h-12 w-12 object-contain lg:h-20 lg:w-20 2xl:h-24 2xl:w-24",l&&"lg:h-12 lg:w-12 xl:h-12 xl:w-12 2xl:h-16 2xl:w-16")}),(0,b.jsxs)("p",{className:(0,w.cn)("select-none font-medium uppercase",l?"lg:text-xs xl:text-xs 2xl:text-xs ":"text-xs lg:text-base xl:text-xl xl:font-semibold 2xl:text-2xl"),children:[(0,b.jsx)("span",{className:"text-primary",children:"Car"}),(0,b.jsx)("span",{children:"flys"})]})]})}),(0,b.jsx)("nav",{className:"".concat(l?"lg:hidden":""," hidden items-center lg:flex"),children:o.map(t=>(0,b.jsx)(M.default,{href:t.href,className:(0,w.cn)("rounded-full px-2 py-1 text-lg transition-all duration-200 hover:text-primary xl:px-3 xl:py-2 xl:text-xl 2xl:text-[22px]",e.startsWith(t.href)&&("/"===e[t.href.length]||e.length===t.href.length)&&"bg-primary px-4 text-white  hover:text-white xl:px-6"),children:t.name}
1,t.name))}),(0,b.jsxs)("div",{className:"flex gap-4",children:[a.firstName?(0,b.jsx)(K,{}):(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("button",{className:"rounded-full bg-primary px-8 py-2 font-light text-white hover:brightness-110 2xl:text-lg",onClick:()=>{n((0,P.h7)({mode:"login"}))},children:"Login"}),(0,b.jsx)("button",{className:"hidden rounded-full border border-black px-8 py-2 font-light hover:border-primary hover:text-primary xl:inline-block 2xl:text-lg",onClick:()=>{n((0,P.h7)({mode:"register"}))},children:"Register"})]}),(0,b.jsxs)("nav",{className:"dropdown dropdown-end ".concat(l?"":"lg:hidden"),children:[(0,b.jsx)("div",{tabIndex:0,role:"button",className:"m-1 rounded-md border border-primaryText p-1",children:(0,b.jsx)(J.Z,{})}),(0,b.jsx)("div",{tabIndex:0,className:"menu dropdown-content z-[1000] w-64 rounded-box bg-primaryBg p-2 shadow",children:o.map(t=>(0,b.jsx)(M.default,{href:t.href,className:(0,w.cn)("rounded-full px-2 py-1 text-lg hover:bg-primary-50 xl:px-3 xl:py-2 xl:text-xl 2xl:text-[22px]",e.startsWith(t.href)&&("/"===e[t.href.length]||e.length===t.href.length)&&"bg-primary px-4 text-white hover:bg-primary  xl:px-6"),children:t.name},t.name))})]})]})]}),(0,b.jsx)(G,{})]})};function et(){return(et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}var ea=function(e){return y.createElement("svg",et({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),r||(r=y.createElement("g",{clipPath:"url(#linkedin_svg__a)"},y.createElement("path",{fill:"#fff",d:"M196 0H60C26.863 0 0 26.863 0 60v136c0 33.137 26.863 60 60 60h136c33.137 0 60-26.863 60-60V60c0-33.137-26.863-60-60-60"}),y.createElement("path",{fill:"#0A66C2",d:"M196 0H60C26.863 0 0 26.863 0 60v136c0 33.137 26.863 60 60 60h136c33.137 0 60-26.863 60-60V60c0-33.137-26.863-60-60-60"}),y.createElement("path",{fill:"#fff",d:"M184.715 217.685h29.27a4 4 0 0 0 4-3.999l.015-61.842c0-32.323-6.965-57.168-44.738-57.168-14.359-.534-27.9 6.868-35.207 19.228a.32.32 0 0 1-.595-.161V101.66a3.998 3.998 0 0 0-4-4h-27.777a4 4 0 0 0-4 4v112.02c0 1.061.421 2.078 1.172 2.828a4 4 0 0 0 2.828 1.172h29.268a4 4 0 0 0 2.828-1.172 4 4 0 0 0 1.172-2.828v-55.373c0-15.657 2.97-30.82 22.381-30.82 19.135 0 19.383 17.916 19.383 31.834v54.364c0 1.061.421 2.078 1.172 2.828a4 4 0 0 0 2.828 1.172M38 59.628c0 11.864 9.767 21.626 21.632 21.626 11.862-.001 21.623-9.769 21.623-21.631C81.253 47.761 71.491 38 59.628 38 47.762 38 38 47.764 38 59.628m6.959 158.057h29.307a3.997 3.997 0 0 0 4-4V101.66a4 4 0 0 0-4-4H44.959a4 4 0 0 0-4 4v112.025a4 4 0 0 0 4 4"}))),l||(l=y.createElement("defs",null,y.createElement("clipPath",{id:"linkedin_svg__a"},y.createElement("path",{fill:"#fff",d:"M0 0h256v256H0z"})))))};function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}var er=function(e){return y.createElement("svg",es({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),n||(n=y.createElement("g",{clipPath:"url(#pinterest_svg__a)"},y.createElement("path",{fill:"#CB1F27",d:"M0 128.002c0 52.414 31.518 97.442 76.619 117.239-.36-8.938-.064-19.668 2.228-29.393 2.461-10.391 16.47-69.748 16.47-69.748s-4.089-8.173-4.089-20.252c0-18.969 10.994-33.136 24.686-33.136 11.643 0 17.268 8.745 17.268 19.217 0 11.704-7.465 29.211-11.304 45.426-3.207 13.578 6.808 24.653 20.203 24.653 24.252 0 40.586-31.149 40.586-68.055 0-28.054-18.895-49.052-53.262-49.052-38.828 0-63.017 28.956-63.017 61.3 0 11.152 3.288 19.016 8.438 25.106 2.368 2.797 2.697 3.922 1.84 7.134-.614 2.355-2.024 8.025-2.608 10.272-.852 3.242-3.479 4.401-6.409 3.204-17.884-7.301-26.213-26.886-26.213-48.902 0-36.361 30.666-79.961 91.482-79.961 48.87 0 81.035 35.364 81.035 73.325 0 50.213-27.916 87.726-69.066 87.726-13.819 0-26.818-7.47-31.271-15.955 0 0-7.431 29.492-9.005 35.187-2.714 9.869-8.026 19.733-12.883 27.421a128 128 0 0 0 36.277 5.249c70.684 0 127.996-57.309 127.996-128.005C256.001 57.309 198.689 0 128.005 0 57.314 0 0 57.309 0 128.002"}))),i||(i=y.createElement("defs",null,y.createElement("clipPath",{id:"pinterest_svg__a"},y.createElement("path",{fill:"#fff",d:"M0 0h256v256H0z"})))))};function el(){return(el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}var en=function(e){return y.createElement("svg",el({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),o||(o=y.createElement("g",{clipPath:"url(#facebook_svg__a)"},y.createElement("path",{fill:"#1877F2",d:"M256 128C256 57.308 198.692 0 128 0S0 57.308 0 128c0 63.888 46.808 116.843 108 126.445V165H75.5v-37H108V99.8c0-32.08 19.11-49.8 48.348-49.8C170.352 50 185 52.5 185 52.5V84h-16.14C152.959 84 148 93.867 148 103.99V128h35.5l-5.675 37H148v89.445c61.192-9.602 108-62.556 108-126.445"}),y.createElement("path",{fill:"#fff",d:"m177.825 165 5.675-37H148v-24.01C148 93.866 152.959 84 168.86 84H185V52.5S170.352 50 156.347 50C127.11 50 108 67.72 108 99.8V128H75.5v37H108v89.445A129 129 0 0 0 128 256a129 129 0 0 0 20-1.555V165z"}
1))),c||(c=y.createElement("defs",null,y.createElement("clipPath",{id:"facebook_svg__a"},y.createElement("path",{fill:"#fff",d:"M0 0h256v256H0z"})))))};function ei(){return(ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}var eo=function(e){return y.createElement("svg",ei({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),d||(d=y.createElement("g",{clipPath:"url(#instagram_svg__a)"},y.createElement("path",{fill:"url(#instagram_svg__b)",d:"M196 0H60C26.863 0 0 26.863 0 60v136c0 33.137 26.863 60 60 60h136c33.137 0 60-26.863 60-60V60c0-33.137-26.863-60-60-60"}),y.createElement("path",{fill:"url(#instagram_svg__c)",d:"M196 0H60C26.863 0 0 26.863 0 60v136c0 33.137 26.863 60 60 60h136c33.137 0 60-26.863 60-60V60c0-33.137-26.863-60-60-60"}),y.createElement("path",{fill:"#fff",d:"M128.009 28c-27.158 0-30.567.119-41.233.604-10.646.488-17.913 2.173-24.271 4.646-6.578 2.554-12.157 5.971-17.715 11.531-5.563 5.559-8.98 11.138-11.542 17.713-2.48 6.36-4.167 13.63-4.646 24.271-.477 10.667-.602 14.077-.602 41.236s.12 30.557.604 41.223c.49 10.646 2.175 17.913 4.646 24.271 2.556 6.578 5.973 12.157 11.533 17.715 5.557 5.563 11.136 8.988 17.709 11.542 6.363 2.473 13.631 4.158 24.275 4.646 10.667.485 14.073.604 41.23.604 27.161 0 30.559-.119 41.225-.604 10.646-.488 17.921-2.173 24.284-4.646 6.575-2.554 12.146-5.979 17.702-11.542 5.563-5.558 8.979-11.137 11.542-17.712 2.458-6.361 4.146-13.63 4.646-24.272.479-10.666.604-14.066.604-41.225s-.125-30.567-.604-41.234c-.5-10.646-2.188-17.912-4.646-24.27-2.563-6.578-5.979-12.157-11.542-17.716-5.562-5.562-11.125-8.979-17.708-11.53-6.375-2.474-13.646-4.16-24.292-4.647-10.667-.485-14.063-.604-41.23-.604zm-8.971 18.021c2.663-.004 5.634 0 8.971 0 26.701 0 29.865.096 40.409.575 9.75.446 15.042 2.075 18.567 3.444 4.667 1.812 7.994 3.979 11.492 7.48 3.5 3.5 5.666 6.833 7.483 11.5 1.369 3.52 3 8.812 3.444 18.562.479 10.542.583 13.708.583 40.396s-.104 29.855-.583 40.396c-.446 9.75-2.075 15.042-3.444 18.563-1.812 4.667-3.983 7.99-7.483 11.488-3.5 3.5-6.823 5.666-11.492 7.479-3.521 1.375-8.817 3-18.567 3.446-10.542.479-13.708.583-40.409.583-26.702 0-29.867-.104-40.408-.583-9.75-.45-15.042-2.079-18.57-3.448-4.666-1.813-8-3.979-11.5-7.479s-5.666-6.825-7.483-11.494c-1.369-3.521-3-8.813-3.444-18.563-.479-10.542-.575-13.708-.575-40.413s.096-29.854.575-40.396c.446-9.75 2.075-15.042 3.444-18.567 1.813-4.667 3.983-8 7.484-11.5s6.833-5.667 11.5-7.483c3.525-1.375 8.819-3 18.569-3.448 9.225-.417 12.8-.542 31.437-.563zm62.351 16.604c-6.625 0-12 5.37-12 11.996 0 6.625 5.375 12 12 12s12-5.375 12-12-5.375-12-12-12zm-53.38 14.021c-28.36 0-51.354 22.994-51.354 51.355s22.994 51.344 51.354 51.344c28.361 0 51.347-22.983 51.347-51.344 0-28.36-22.988-51.355-51.349-51.355zm0 18.021c18.409 0 33.334 14.923 33.334 33.334 0 18.409-14.925 33.334-33.334 33.334s-33.333-14.925-33.333-33.334c0-18.411 14.923-33.334 33.333-33.334"}))),m||(m=y.createElement("defs",null,y.createElement("radialGradient",{id:"instagram_svg__b",cx:0,cy:0,r:1,gradientTransform:"matrix(0 -253.715 235.975 0 68 275.717)",gradientUnits:"userSpaceOnUse"},y.createElement("stop",{stopColor:"#FD5"}),y.createElement("stop",{offset:.1,stopColor:"#FD5"}),y.createElement("stop",{offset:.5,stopColor:"#FF543E"}),y.createElement("stop",{offset:1,stopColor:"#C837AB"})),y.createElement("radialGradient",{id:"instagram_svg__c",cx:0,cy:0,r:1,gradientTransform:"matrix(22.25952 111.2061 -458.39518 91.75449 -42.881 18.441)",gradientUnits:"userSpaceOnUse"},y.createElement("stop",{stopColor:"#3771C8"}),y.createElement("stop",{offset:.128,stopColor:"#3771C8"}),y.createElement("stop",{offset:1,stopColor:"#60F",stopOpacity:0})),y.createElement("clipPath",{id:"instagram_svg__a"},y.createElement("path",{fill:"#fff",d:"M0 0h256v256H0z"})))))};function ec(){return(ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}var ed=function(e){return y.createElement("svg",ec({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 290"},e),u||(u=y.createElement("g",{clipPath:"url(#tiktok_svg__a)"},y.createElement("path",{fill:"#FF004F",d:"M189.72 104.421c18.678 13.345 41.56 21.197 66.273 21.197v-47.53a67 67 0 0 1-13.918-1.456v37.413c-24.711 0-47.59-7.851-66.272-21.195v96.996c0 48.523-39.356 87.855-87.9 87.855-18.113 0-34.949-5.473-48.934-14.86 15.962 16.313 38.222 26.432 62.848 26.432 48.548 0 87.905-39.332 87.905-87.857v-96.995zm17.17-47.952c-9.546-10.423-15.814-23.893-17.17-38.785v-6.113h-13.189c3.32 18.927 14.645 35.097 30.359 44.898M69.673 225.607a40 40 0 0 1-8.203-24.33c0-22.192 18.001-40.186 40.21-40.186a40.3 40.3 0 0 1 12.197 1.883v-48.593c-4.61-.631-9.262-.9-13.912-.801v37.822a40.3 40.3 0 0 0-12.203-1.882c-22.208 0-40.208 17.992-40.208 40.187 0 15.694 8.997 29.281 22.119 35.9"}),y.createElement("path",{fill:"#000",d:"M175.803 92.849c18.683 13.344 41.56 21.195 66.272 21.195V76.631c-13.794-2.937-26.005-10.141-35.186-20.162-15.715-9.802-27.038-25.972-30.358-44.898h-34.643v189.843c-.079 22.132-18.049 40.052-40.21 40.052-13.058 0-24.66-6.221-32.007-15.86-13.12-6.618-22.118-20.206-22.118-35.898 0-22.193 18-40.187 40.208-40.187 4.255 0 8.356.662 12.203 1.882v-37.822c-47.692.985-86.047 39.933-86.047 87.834 0 23.912 9.551 45.589 25.053 61.428 13.985 9.385 30.82 14.86 48.934 14.86 48.545 0 87.9-39.335 87.9-87.857z"}),y.createElement("path",{fill:"#00F2EA",d:"M242.075 76.63V66.516a66.3 66.3 0 0 1-35.186-10.047 66.47 66.47 0 0 0 35.186 20.163M176.53 11.57a68 68 0 0 1-.728-5.457V0h-47.834v189.845c-.076 22.13-18.046 40.05-40.208 40.05a40.06 40.06 0 0 1-18.09-4.287c7.347 9.637 18.949 15.857 32.007 15.857 22.16 0 40.132-17.918 40.21-40.05V11.571zM99.966 113.58v-10.769a89 89 0 0 0-12.061-.818C39.355 101.993 0 141.327 0 189.845c0 30.419 15.467 57.227 38.971 72.996-15.502-15.838-25.053-37.516-25.053-61.427 0-47.9 38.354-86.849 86.048-87.834"}))),h||(h=y.createElement("defs",null,y.createElement("clipPath",{id:"tiktok_svg__a"},y.createElement("path",{fill:"#fff",d:"M0 0h256v290H0z"})))))};function em(){return(em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}var eu=function(e){return y.createElement("svg",em({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 180"},e),p||(p=y.createElement("g",{clipPath:"url(#youtube_svg__a)"},y.createElement("path",{fill:"red",d:"M250.346 28.075A32.17 32.17 0 0 0 227.69 5.418C207.824 0 127.87 0 127.87 0S47.912.164 28.046 5.582A32.18 32.18 0 0 0 5.39 28.24c-6.009 35.298-8.34 89.084.165 122.97a32.18 32.18 0 0 0 22.656 22.657c19.866 5.418 99.822 5.418 99.822 5.418s79.955 0 99.82-5.418a32.17 32.17 0 0 0 22.657-22.657c6.338-35.348 8.291-89.101-.164-123.135"}),y.createElement("path",{fill:"#fff",d:"m102.421 128.06 66.328-38.418-66.328-38.418z"}))),x||(x=y.createElement("defs",null,y.createElement("clipPath",{id:"youtube_svg__a"},y.createElement("path",{fill:"#fff",d:"M0 0h256v180H0z"})))))};function eh(){return(eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}var ep=function(e){return y.createElement("svg",eh({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),f||(f=y.createElement("path",{fill:"#000",d:"M126.635 232.16c-12.694 0-21.163-5.995-28.726-11.275-5.376-3.808-10.41-7.424-16.352-8.426a48.6 48.6 0 0 0-8.565-.704c-5.035 0-9.035.757-11.883 1.333-1.813.32-3.328.619-4.522.619-1.238 0-2.806-.342-3.414-2.432-.533-1.707-.864-3.328-1.194-4.896-.854-3.947-1.568-6.368-3.051-6.614-15.883-2.421-25.387-6.08-27.243-10.41-.149-.47-.33-.96-.33-1.334-.107-1.322.853-2.421 2.186-2.666 12.598-2.08 23.915-8.79 33.472-19.819 7.424-8.565 11.04-16.843 11.371-17.739 0-.106.096-.106.096-.106 1.813-3.744 2.187-6.934 1.088-9.547-2.048-4.907-8.8-6.997-13.408-8.427-1.184-.32-2.187-.704-3.04-.992-3.947-1.568-10.517-4.906-9.653-9.514.618-3.328 5.034-5.707 8.65-5.707 1.003 0 1.856.149 2.56.533 4.054 1.846 7.712 2.795 10.848 2.795 3.904 0 5.76-1.472 6.23-1.941q-.15-3.165-.374-6.326c-.96-14.56-2.048-32.629 2.56-42.986 13.846-31.008 43.232-33.494 51.936-33.494l3.798-.085h.533c8.693 0 38.08 2.421 51.925 33.483 4.662 10.357 3.52 28.48 2.56 42.986l-.096.715c-.085 1.941-.234 3.797-.32 5.707.47.373 2.176 1.802 5.696 1.845 3.051-.085 6.379-1.088 10.176-2.805a8.6 8.6 0 0 1 3.328-.704c1.334 0 2.667.32 3.808.704h.096c3.19 1.194 5.28 3.424 5.28 5.76.096 2.186-1.621 5.514-9.749 8.8-.853.32-1.856.714-3.04.992-4.523 1.386-11.275 3.573-13.419 8.426-1.184 2.56-.714 5.846 1.099 9.558 0 .085.096.085.096.085.523 1.333 14.261 32.533 44.843 37.621a2.623 2.623 0 0 1 2.186 2.667c.008.479-.106.952-.33 1.376-1.856 4.373-11.27
15 7.936-27.254 10.411-1.472.234-2.186 2.666-3.04 6.613a73 73 0 0 1-1.184 4.896c-.48 1.568-1.482 2.421-3.2 2.421h-.224a24 24 0 0 1-4.522-.522 56.3 56.3 0 0 0-11.894-1.238 53 53 0 0 0-8.554.715c-5.899.96-10.987 4.619-16.363 8.427-7.659 5.226-16.171 11.221-28.768 11.221z"})))};function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}var ef=function(e){return y.createElement("svg",ex({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),g||(g=y.createElement("g",{clipPath:"url(#twitter_svg__a)"},y.createElement("path",{fill:"#fff",d:"M196 0H60C26.863 0 0 26.863 0 60v136c0 33.137 26.863 60 60 60h136c33.137 0 60-26.863 60-60V60c0-33.137-26.863-60-60-60"}),y.createElement("path",{fill:"#1D9BF0",d:"M196 0H60C26.863 0 0 26.863 0 60v136c0 33.137 26.863 60 60 60h136c33.137 0 60-26.863 60-60V60c0-33.137-26.863-60-60-60"}),y.createElement("path",{fill:"#fff",d:"M199.572 91.411c.11 1.587.11 3.174.11 4.776 0 48.797-37.148 105.075-105.075 105.075v-.03A104.54 104.54 0 0 1 38 184.677q4.379.525 8.79.533a74.15 74.15 0 0 0 45.865-15.839 36.98 36.98 0 0 1-34.501-25.645 36.8 36.8 0 0 0 16.672-.636c-17.228-3.481-29.623-18.618-29.623-36.198v-.468a36.7 36.7 0 0 0 16.76 4.622c-16.226-10.845-21.228-32.432-11.43-49.31a104.81 104.81 0 0 0 76.111 38.582 36.95 36.95 0 0 1 10.683-35.283c14.874-13.982 38.267-13.265 52.249 1.601a74.1 74.1 0 0 0 23.451-8.965 37.06 37.06 0 0 1-16.234 20.424A73.4 73.4 0 0 0 218 72.282a75 75 0 0 1-18.428 19.129"}))),v||(v=y.createElement("defs",null,y.createElement("clipPath",{id:"twitter_svg__a"},y.createElement("path",{fill:"#fff",d:"M0 0h256v256H0z"})))))},eg=()=>(0,b.jsx)("div",{className:"mb-4 grid w-full grid-cols-2 md:grid-cols-4 xl:grid-cols-8",children:[{text:"Join us on LinkedIn",Icon:ea,href:"http://www.linkedin.com/company/carflysofficial",customClasses:"bg-[#2B5681]"},{text:"Join our new community",Icon:er,href:"https://www.pinterest.com/carflysofficial/",customClasses:"bg-[#581D0A]"},{text:"Like us on Facebook",Icon:en,href:"https://www.facebook.com/CarFlysOfficial/",customClasses:"bg-[#005CBB]"},{text:"Follow us on Instagram",Icon:eo,href:"https://www.instagram.com/carflysofficial/",customClasses:"bg-[#95297F]"},{text:"Follow us on TikTok",Icon:ed,href:"https://www.tiktok.com/@carflys.official",customClasses:"bg-[#1C012C]"},{text:"Subscribe to our YouTube channel",Icon:eu,href:"https://www.youtube.com/@CarFlysOfficial",customClasses:"bg-[#C41818]"},{text:"Add us on Snapchat",Icon:ep,href:"https://www.snapchat.com/add/carflysofficial",customClasses:"bg-[#FFF500] text-black"},{text:"Follow us on Twitter",Icon:ef,href:"http://www.twitter.com/CarFlysOfficial",customClasses:"bg-[#0885D2]"}].map((e,t)=>(0,b.jsxs)("a",{href:e.href,className:(0,w.cn)("flex items-center justify-start gap-2 px-4 py-3 text-center text-xs font-light text-white  sm:text-sm md:text-xs lg:text-sm",e.customClasses),target:"_blank",children:[(0,b.jsx)(e.Icon,{className:"h-8 w-8 sm:h-10 sm:w-10 xl:h-12 xl:w-12"}),(0,b.jsx)("p",{children:e.text})]},t))}),ev=()=>{let[e,t]=(0,B.useState)(""),a=async()=>{if(!e.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i)){z.Am.error("Please enter an valid email.");return}try{await Z.L.post("/newsletter/subscribe",{email:e}),z.Am.success("Successfully subscribed to Newsletter."),t("")}catch(e){console.log("Failed to subscribe to newsletter: ",e),z.Am.error("Failed to subscribe to Newsletter.")}};return(0,b.jsxs)("div",{className:"w-full max-w-[500px]",children:[(0,b.jsx)("p",{className:"text-base font-normal sm:text-lg ",children:"Subscribe to our newsletter"}),(0,b.jsxs)("div",{className:"relative flex items-center",children:[(0,b.jsx)("input",{type:"email",className:" w-full rounded-md border px-4 py-3 text-sm font-light sm:text-base",placeholder:"Your email address",required:!0,value:e,onChange:e=>t(e.target.value)}),(0,b.jsx)("button",{onClick:()=>a(),className:"lg:py-22xl:px-4 absolute right-2 rounded-sm bg-primary px-2 py-1 text-sm font-light text-white lg:rounded-md lg:px-3 2xl:py-3",children:"Subscribe"})]})]})},eb=a(40932),ew=()=>{let e=async()=>{try{return(await Z.L.get("/vehicle/get-search-params")).data.data}catch(e){return console.error("Error fetching filters:",e),[]}},{data:t,isError:a,isLoading:s}=(0,eb.a)({queryKey:["fetchActiveFilters"],queryFn:e}),r=(null==t?void 0:t.map(e=>e.makes).flat())||[],l=[{title:"Company",links:[{name:"Home",href:"/"},{name:"Used Cars",href:"/vehicles"},{name:"Register Dealership",href:"/register-dealership"},{name:"Finance Calculator",href:"/finance-calculator"},{name:"Blogs",href:"/blogs"},{name:"Support",href:"/contact"},{name:"About Us",href:"/about-us"}]},{title:"Our Brands",links:(r=(r=r.filter((e,t,a)=>t===a.findIndex(t=>t.make===e.make)).sort((e,t)=>
1t.models.length-e.models.length)).length>7?r.slice(0,7):r).length?r.map(e=>({name:e.make,href:"/vehicles?make=".concat(e.make)})):[{name:"Toyota",href:"/vehicles?make=Toyota"},{name:"Porsche",href:"/vehicles?make=Porsche"},{name:"Audi",href:"/vehicles?make=Audi"},{name:"BMW",href:"/vehicles?make=BMW"},{name:"Nissan",href:"/vehicles?make=Nissan"},{name:"Ford",href:"/vehicles?make=Ford"},{name:"Peugeot",href:"/vehicles?make=Peugeot"}]},{title:"Vehicle Type",links:[{name:"Sedan",href:"/vehicles?type=Sedan"},{name:"Hatchback",href:"/vehicles?type=Hatchback"},{name:"SUV",href:"/vehicles?type=SUV"},{name:"Wagon",href:"/vehicles?type=Wagon"},{name:"Coupe",href:"/vehicles?type=Coupe"},{name:"Pickup",href:"/vehicles?type=Pickup"},{name:"Convertible",href:"/vehicles?type=Convertible"},{name:"Van",href:"/vehicles?type=Van"},{name:"Minivan",href:"/vehicles?type=Minivan"}]}];return(0,b.jsxs)("footer",{className:"mt-8 flex w-full flex-col items-center border-t border-black",children:[(0,b.jsx)(eg,{}),(0,b.jsxs)("div",{className:"flex flex-col items-center justify-between gap-4 lg:container  max-lg:px-4 md:flex-row lg:flex-row",children:[(0,b.jsxs)("div",{className:"w-full max-w-[500px]",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 max-md:justify-center",children:[(0,b.jsxs)("p",{className:"text-4xl font-bold uppercase lg:text-4xl",children:[(0,b.jsx)("span",{className:"text-primary",children:"Car"}),(0,b.jsx)("span",{children:"Flys"})]}),(0,b.jsx)(_.default,{src:"/logo.svg",alt:"Carflys Logo",width:65,height:65,className:"h-10 w-10 object-contain sm:h-12 sm:w-12 md:h-14 md:w-14"})]}),(0,b.jsx)("p",{className:"text-base font-light lg:text-lg",children:"Visit Carflys today to explore our extensive inventory of high-quality used cars across the USA."})]}),(0,b.jsx)(ev,{})]}),(0,b.jsx)("div",{className:"my-4 h-[1px] w-full bg-black"}),(0,b.jsx)("div",{className:"container grid w-full grid-cols-2 gap-x-4 gap-y-4 max-lg:px-4 sm:grid-cols-3 lg:gap-y-12",children:l.map(e=>(0,b.jsxs)("div",{children:[(0,b.jsx)("h4",{className:"text-lg font-medium sm:text-xl md:text-2xl lg:text-3xl",children:e.title}),(0,b.jsx)("div",{className:"mt-4 flex flex-col gap-2",children:e.links.map(e=>(0,b.jsx)(M.default,{href:e.href,className:"block w-fit text-base font-light transition-all duration-200 hover:text-primary sm:text-lg md:text-xl",children:e.name},e.name))})]},e.title))}),(0,b.jsx)("div",{className:"my-4 h-[1px] w-full bg-black"}),(0,b.jsxs)("div",{className:"container flex flex-col items-center justify-between gap-4 pb-4 text-sm font-light   sm:flex-row sm:text-base",children:[(0,b.jsx)("p",{children:"\xa9 2024 Carflys.com, All rights reserved"}),(0,b.jsx)("p",{children:"Terms & Conditions . Privacy Notice"})]})]})},ey=e=>{let{children:t}=e,a=(0,q.usePathname)(),s=["a"],r=["dashboard"];return(0,b.jsxs)(b.Fragment,{children:[!(null==s?void 0:s.includes(a.split("/")[1]))&&(0,b.jsx)(ee,{}),t,!(null==r?void 0:r.includes(a.split("/")[1]))&&(0,b.jsx)(ew,{})]})}},91873:function(e,t,a){"use strict";var s=a(57437),r=a(66648),l=a(2265);t.default=()=>{let[e,t]=l.useState(!1),[a,n]=l.useState(!0);return((0,l.useEffect)(()=>{localStorage.getItem("allowTraffic"),n(!1),t(!1)},[]),a)?(0,s.jsxs)("div",{className:"fixed left-0 top-0 z-50 flex h-screen w-screen flex-col items-center justify-center overflow-hidden bg-white p-8",children:[(0,s.jsx)(r.default,{src:"/logo.svg",width:120,height:120,alt:"logo"}),(0,s.jsx)("h1",{className:"text-base text-gray-500",children:"Checking your location..."})]}):e?(0,s.jsxs)("div",{className:"fixed left-0 top-0 z-50 flex h-screen w-screen flex-col items-center justify-center overflow-hidden bg-white p-8",children:[(0,s.jsx)(r.default,{src:"/logo.svg",width:120,height:120,alt:"logo"}),(0,s.jsx)("h1",{className:"text-3xl font-semibold",children:"Sorry!"}),(0,s.jsx)("p",{className:"mt-2 max-w-md text-center text-base text-gray-500",children:"We're sorry but we do not allow traffic from outside the United States at this time."})]}):null}},59121:function(e,t,a){"use strict";var s=a(57437),r=a(66094),l=a(93191),n=a(79839);a(2265);let i=new r.S({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});t.default=e=>{let{children:t}=e;return(0,s.jsxs)(l.aH,{client:i,children:[t,(0,s.jsx)(n.t,{initialIsOpen:!1})]})}},69128:function(e,t,a){"use strict";a.d(t,{default:function(){return u}});var s=a(57437),r=a(2265),l=a(11444),n=a(69753),i=a(5675),o=a(55076),c=a(61645),d=a(2614);let m=()=>(0,n.xC)({reducer:{filter:i.ZP,user:o.ZP,authModal:c.ZP,sidebar:d.ZP}});function u(e){let{children:t}=e,a=(0,r.useRef)();return a.current||(a.current=m()),(0,s.jsx)(l.zt,{store:a.current,children:t})}},68058:function(e,t,a){"use strict";
1var s=a(2265),r=a(55076),l=a(41685),n=a(40932),i=a(31879),o=a(16463);t.default=()=>{let e=(0,l.CG)(e=>e.user.user),t=(0,l.TL)(),a=(0,o.usePathname)(),{isLoading:c}=(0,n.a)({queryKey:["personal-details"],queryFn:async()=>{let e=localStorage.getItem("token"),a=(await i.L.get("/profile/my-details",{headers:{Authorization:e}})).data.data;return t((0,r.av)({user:a,persist:!0,mode:"refetch"})),a},enabled:!!localStorage.getItem("token")});return(0,s.useEffect)(()=>{localStorage.getItem("token")||localStorage.getItem("randomId")&&"null"!==localStorage.getItem("randomId")||localStorage.setItem("randomId",(new Date().getTime()/1e3|0).toString(16)+"xxxxxxxxxxxxxxxx".replace(/[x]/g,function(){return(16*Math.random()|0).toString(16)}).toLowerCase())},[e,a]),null}},44843:function(e,t,a){"use strict";var s=a(57437),r=a(45018),l=a(2265),n=a(58918),i=a.n(n),o=a(47019),c=a(75733);t.Z=l.forwardRef((e,t)=>{var a,n,d;let{register:m,errors:u,watch:h,classes:p,onManualClick:x,override:f=!1,rules:g,mask:v="",label:b,required:w,icon:y,...j}=e,[N,C]=l.useState(!1);if(!j.name)throw Error("ControlledInput must have a name prop");let{readOnly:k,...E}=j;return(0,s.jsxs)("div",{className:(null==p?void 0:p.root)||"",children:[b&&(0,s.jsxs)("label",{htmlFor:j.name,className:(0,r.cn)("block text-sm font-light",null==p?void 0:p.label),children:[b,"Exterior Color"===b&&(0,s.jsx)("span",{onClick:x,className:"ml-1 cursor-pointer rounded bg-orange-300 p-1 text-xs text-orange-600",children:"Manual"}),"Interior Color"===b&&(0,s.jsx)("span",{onClick:x,className:"ml-1 cursor-pointer rounded bg-orange-300 p-1 text-xs text-orange-600",children:"Manual"}),w&&(0,s.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(i(),{mask:v,readOnly:k,onChange:j.onChange,value:j.value,onBlur:j.onBlur,disabled:j.disabled,children:(0,s.jsx)("input",{...E,...m?m(j.name,g):{},className:(0,r.cn)(f?"":"w-full rounded-md border border-gray-300 p-2 font-light focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary",k?"cursor-not-allowed select-none bg-gray-100":"",null==p?void 0:p.input,"password"===j.type&&"pr-10",y&&"pr-14"),type:"password"===j.type&&N?"text":j.type,ref:t})}),y&&(0,s.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 transform",children:y}),"password"===j.type&&(0,s.jsx)("button",{type:"button",className:(0,r.cn)("absolute right-2 top-1/2 -translate-y-1/2 transform focus:outline-none",null==p?void 0:p.button),children:N?(0,s.jsx)(o.Z,{className:(0,r.cn)("h-5 w-5 text-gray-500",null==p?void 0:p.icon),onClick:()=>C(!1)}):(0,s.jsx)(c.Z,{className:(0,r.cn)("h-5 w-5 text-gray-500",null==p?void 0:p.icon),onClick:()=>C(!0)})})]}),j.name&&u&&u[j.name]&&(null===(a=u[j.name])||void 0===a?void 0:a.message)&&(0,s.jsx)("span",{className:(0,r.cn)("text-xs text-red-500",null==p?void 0:p.error),children:null===(d=u[j.name])||void 0===d?void 0:null===(n=d.message)||void 0===n?void 0:n.toString()})]})})},54819:function(e,t,a){"use strict";var s=a(57437),r=a(45018);a(2265),t.Z=e=>{let t,{height:a="sm",label:l,classes:n}=e;switch(a){case"sm":default:t="h-[1px]";break;case"md":t="h-[2px]";break;case"lg":t="h-[3px]";break;case"xl":t="h-[4px]"}return(0,s.jsx)("div",{className:(0,r.cn)("relative my-4 w-full bg-gray-300",t,null==n?void 0:n.divider),children:l&&(0,s.jsx)("div",{className:(0,r.cn)("absolute left-1/2 top-[-10px] -translate-x-1/2 transform bg-white px-2 text-sm font-light text-gray-600",null==n?void 0:n.label),children:l})})}},19737:function(e,t,a){"use strict";var s=a(57437);a(2265),t.Z=()=>(0,s.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-white/50 backdrop-blur-sm",children:(0,s.jsx)("div",{className:"animate-pulse rounded-full border border-primary bg-primary px-6 py-1 text-xl text-white",children:"Loading..."})})},74204:function(e,t,a){"use strict";var s=a(57437),r=a(45018);a(2265),t.Z=e=>{let{label:t,onClick:a,variant:l="filled",className:n,Icon:i,IconClassName:o,isDisabled:c=!1,type:d="button"}=e,m="rounded-md border hover:shadow-md flex items-center gap-2 px-2 py-2 text-center ";return"filled"===l?c?m+=" bg-slate-300 text-slate-500 hover:shadow-none":m+=" text-primaryBg bg-primary":c?m+=" text-slate-300 hover:shadow-none":m+=" text-primary",(0,s.jsxs)("button",{className:(0,r.cn)("".concat(m," ").concat(n)),onClick:a,disabled:c,type:d||"button",children:[i&&(0,s.jsx)(i,{className:" ".concat(o)}),(0,s.jsx)("span",{className:"flex-1 text-center text-inherit",children:t})]})}},2736:function(e,t,a){"use strict";var s=a(57437),r=a(47842);a(2265);var l=a(74697);t.Z=e=>{let{isOpen:t,setIsOpen:a,children:n,title:i,titleClassName:o,modalContainerClassName:c,childrenContainerClassName:d,iconClassName:m}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.Vq,{open:t,onClose:()=>a(!1),className:"relative z-[100000]",children:(0,s.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center bg-black/50 p-2 ".concat(c),children:(0,s.jsxs)(r.EM,{className:"ax-w-lg relative max-h-[90vh] w-full min-w-[200px] max-w-[90vw] space-y-4 overflow-y-scroll roun
1ded-md border bg-white p-4 pt-6 shadow-xl md:max-w-[800px] ".concat(d),children:[(0,s.jsx)("button",{className:"absolute right-2 top-2 w-fit rounded-full p-1 text-red-500 hover:bg-red-500/[.1] ".concat(m),onClick:()=>a(!1),children:(0,s.jsx)(l.Z,{})}),i&&(0,s.jsx)(r.$N,{className:"text-center text-xl font-bold text-primary ".concat(o),children:i}),n]})})})})}},53818:function(e,t,a){"use strict";a.d(t,{_:function(){return s}});let s={dashboard:"/dashboard",nestedDashboard:"/dashboard/stats-details",auth:"/auth",verifySeller:"/verify-seller",waitForApproval:"/wait-for-approval",login:"/auth/login",forgetPassword:"/auth/forget-password",verifyToken:"/auth/verify-token",newPassword:"/auth/new-password",signup:"/auth/signup",register:"/register",contactUs:"/dashboard/contactUs",addEmployee:"/dashboard/staff-management/new",viewEmployee:"/dashboard/staff-management",editEmployee:"/dashboard/staff-management",addDealership:"/dashboard/add-dealership",viewDealerships:"/dashboard/dealership-management",editDealership:"/dashboard/dealership-management/new",addVehicle:"/dashboard/view-vehicles/new",viewVehicles:"/dashboard/view-vehicles",editVehicle:"/dashboard/view-vehicles/:id",addService:"/dashboard/add-service",addWarranty:"/dashboard/view-warranties/new",viewWarranties:"/dashboard/view-warranties",viewServices:"/dashboard/view-services",addOrder:"/dashboard/orders/new",viewOrders:"/dashboard/orders",addPayment:"/dashboard/payments/new",viewPayments:"/dashboard/payments",addRevenue:"/dashboard/accounting/view-revenue/new",viewRevenue:"/dashboard/accounting/view-revenue",viewProfitReport:"/dashboard/accounting/profit-report",addExpense:"/dashboard/accounting/view-expense/new",viewExpenses:"/dashboard/accounting/view-expense",viewReviews:"/dashboard/reviews",addReviews:"/dashboard/reviews/new",addComplaint:"/dashboard/complaints/new",viewComplaints:"/dashboard/complaints",settings:"/dashboard/settings",buyVehicle:"/buy/vehicle/:id",allVehicles:"/all-vehicles",home:"/",refresh:"/refresh",specificVehicle:"/all-vehicles/:id",oldSpecificVehicle:"/vehicle/:id",viewLeads:"/dashboard/view-leads",assignLeads:"/dashboard/assign-leads",becomeAPartner:"/become-a-partner",financeCalculator:"/finance-calculator",editFinancialInstitutes:"/dashboard/lenders/:fsId",viewLenders:"/dashboard/lenders",chat:"/dashboard/chat",importVehicles:"/dashboard/import-vehicles",addBlog:"/dashboard/view-blogs/new",viewBlogs:"/dashboard/view-blogs",blogs:"/blogs",contactSupport:"/contact-support",websiteManagement:"/dashboard/website-management"}},61645:function(e,t,a){"use strict";a.d(t,{Mr:function(){return l},h7:function(){return r}});let s=(0,a(69753).oM)({name:"authModal",initialState:{opened:!1,mode:"login",title:"",message:""},reducers:{openModal:(e,t)=>({opened:!0,mode:t.payload.mode,title:t.payload.title,message:t.payload.message}),closeModal:e=>({opened:!1,mode:"login",title:"",message:""})}}),{openModal:r,closeModal:l}=s.actions;t.ZP=s.reducer},2614:function(e,t,a){"use strict";a.d(t,{B6:function(){return o},Xp:function(){return i},wJ:function(){return n}});var s=a(69753);let r={isOpen:!0,sidebarContent:a(31307).U},l=(0,s.oM)({name:"counter",initialState:r,reducers:{openSidebar(e){e.isOpen=!0},closeSidebar(e){e.isOpen=!1},setSidebarContent(e,t){e.sidebarContent=t.payload}}}),{openSidebar:n,closeSidebar:i,setSidebarContent:o}=l.actions;t.ZP=l.reducer},5675:function(e,t,a){"use strict";a.d(t,{Dg:function(){return i},Tv:function(){return n}});var s=a(69753);let r={},l=(0,s.oM)({name:"filter",initialState:r,reducers:{setFilter:(e,t)=>({...e,...t.payload}),clearFilter:e=>r}}),{setFilter:n,clearFilter:i}=l.actions;t.ZP=l.reducer},55076:function(e,t,a){"use strict";a.d(t,{av:function(){return n},pn:function(){return i}});var s=a(69753);let r={user:{dealership:"none"}},l=(0,s.oM)({name:"user",initialState:r,reducers:{setUser:(e,t)=>{if("refetch"===t.payload.mode){let e=localStorage.getItem("token"),a=localStorage.getItem("ttl");return e&&a&&parseInt(a)>new Date().getTime()?{...t.payload,user:{...t.payload.user,token:e}}:r}if("login"===t.payload.mode&&t.payload.user.token&&t.payload.persist){let e=new Date().getTime()+2592e6;localStorage.setItem("token",t.payload.user.token),localStorage.setItem("ttl",e.toString())}return{...e,user:t.payload.user}},clearUser:e=>(localStorage.removeItem("token"),localStorage.removeItem("ttl"),r)}}),{setUser:n,clearUser:i}=l.actions;t.ZP=l.reducer},41685:function(e,t,a){"use strict";a.d(t,{CG:function(){return l},TL:function(){return r}});var s=a(11444);let r=s.I0.withTypes(),l=s.v9.withTypes();s.oR.withTypes()},31879:function(e,t,a){"use strict";a.d(t,{L:function(){return s}});let s=a(42126).default.create({baseURL:"https://carflys-backup-63dbda9067d2.herokuapp.com"})},45018:function(e,t,a){"use strict";a.d(t,{cn:function(){return l}});var s=a(44839),r=a(96164);let l=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,r.m6)((0,s.W)(t))}},31307:function(e,t,a){"use strict";a.d(t,{U:function(){return u}});var s=a(57437),r=a(53818),l=a(87140),n=a(98960),i=a(18189),o=a(29338),c=a(51077),d=a(37694),m=a(24258);let u=[{label:"Dashboard",link:r._.dashboard,Icon:(0,s.jsx)(l.Z,{}),isShowing:!0},{label:"Orders",link:r._.viewOrders,Icon:(0,s.jsx)(n.Z,{}),isShowing:!0},{label:"Complaints",Icon:(0,s.jsx)(i.Z,{}),link:r._.viewComplaints,isShowing:!0,links:[{label:"Add Complaint",Icon:(0,s.jsx)(i.Z,{}),link:r._.addComplaint,isShowing:!0},{label:"View Complaints",Icon:(0,s.jsx)(i.Z,{}),link:r._.viewComplaints,isShowing:!0}]},{label:"Reviews",Icon:(0,s.jsx)(o.Z,{}),isShowing:!0,link:r._.viewReviews,links:[{label:"Add Review",Icon:(0,s.jsx)(o.Z,{}),link:r._.addReviews,isShowing:!0},{label:"View Reviews",Icon:(0,s.jsx)(o.Z,{}),link:r._.viewReviews,isShowing:!0}]},{label:"Payments",link:r._.viewPayments,Icon:(0,s.jsx)(c.Z,{}),isShowing:!0},{label:"Chat",Icon:(0,s.jsx)(d.Z,{}),link:r._.chat,isShowing:!0},{label:"Settings",Icon:(0,s.jsx)(m.Z,{}),link:r._.settings,isShowing:!0}]},58877:function(){}},function(e){e.O(0,[404,9986,2126,4868,5956,4577,1444,932,727,2128,8173,9343,3926,7842,9753,231,5923,3639,978,2971,7023,1744],function(){return e(e.s=46920)}),_N_E=e.O()}]);

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.