(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{36253:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>u});var l=s(95155),a=s(91218);function x(){let{t:e}=(0,a.Bd)("common");return(0,l.jsx)("div",{className:"container mx-auto px-4 md:px-10 mt-10 pb-20",children:(0,l.jsxs)("div",{className:"flex flex-col md:flex-row items-start gap-8",children:[(0,l.jsxs)("div",{className:"w-full md:w-[45%]",children:[(0,l.jsx)("h1",{className:"text-3xl sm:text-4xl mb-2 text-black font-semibold mt-4 tracking-normal",children:e("home.AboutUs")}),(0,l.jsx)("div",{className:"mb-2",children:(0,l.jsx)("p",{className:"text-lg sm:text-xl md:text-2xl tracking-wide mt-4 font-medium text-black leading-relaxed md:leading-[40px]",children:e("home.AboutText")})})]}),(0,l.jsx)("div",{className:"w-full md:w-[55%] mt-6 md:mt-5 flex justify-center md:justify-start",children:(0,l.jsx)("div",{className:"rounded-xl overflow-hidden w-full max-w-[593px]",children:(0,l.jsx)("img",{src:"/about.jpg",alt:"Car Rental",className:"w-full h-auto object-cover"})})})]})})}var r=s(66766),i=s(29300),m=s.n(i);let c=()=>{let{t:e}=(0,a.Bd)("common");return(0,l.jsx)("section",{id:"services",children:(0,l.jsx)("div",{className:"mt-[50px] lg:mt-[97px] lg:h-[467px] mx-[2px] ml-[4px] mr-[5px] bg-[#353D4B] rounded-[32px]",children:(0,l.jsxs)("div",{className:"mx-5 md:mx-[46px] py-[34px]",children:[(0,l.jsx)("h1",{className:"text-center ml-0 lg:ml-[25px] mt-[10px] text-white tracking-[0.5px] leading-[60px] text-[40px] font-semibold ",children:(0,l.jsx)("span",{className:"border-b-2 border-[#EAD763] pb-[10px]",children:e("home.Services")})}),(0,l.jsx)("div",{className:"flex justify-center ml-0 lg:ml-[44px] mt-[9px]",children:(0,l.jsx)("div",{className:"font-normal max-w-auto lg:max-w-[483px] text-center text-[18px] leading-[32px] tracking-[0.5px] mt-[24px] text-[#FFFFFF]",children:e("home.ServiceText")})}),(0,l.jsx)("div",{className:"flex justify-center items-center",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 lsm:grid-cols-2 lg:grid-cols-4 gap-[10px] 2xl:gap-[47px] mt-[40px]",children:[(0,l.jsx)("a",{href:"https://apps.apple.com/app/id6670305720",target:"_blank",rel:"noopener noreferrer",className:"block h-full",children:(0,l.jsx)("div",{className:"bg-[#232323] max-w-auto lg:max-w-[277px] rounded-[24px] h-full",children:(0,l.jsxs)("div",{className:"flex justify-center items-center flex-col text-center px-2 py-[30px] text-white",children:[(0,l.jsx)(r.default,{src:"/userApp.svg",width:56,height:56,alt:"userApp",className:"mt-[-5px]"}),(0,l.jsx)("h4",{className:"font-medium text-[22px] leading-[26.82px] mt-[18px]",children:e("home.UserApp")}),(0,l.jsx)("p",{className:"font-normal text-[15px] leading-[22.5px] max-w-[242px] mt-[18px] tracking-[0.1px]",children:e("home.UserAppDescription")})]})})}),(0,l.jsx)("div",{className:"bg-[#232323] max-w-[277px] rounded-[24px]",children:(0,l.jsxs)("div",{className:"flex justify-center items-center flex-col text-center px-2 py-[30px] text-white",children:[(0,l.jsx)(r.default,{src:"/insurance.svg",width:56,height:56,alt:"userApp",className:"mt-[-5px]"}),(0,l.jsx)("h4",{className:m()("font-medium text-[22px] leading-[26.82px] mt-[18px]"),children:e("home.Insurance")}),(0,l.jsx)("p",{className:" font-normal text-[15px] leading-[22.5px] max-w-[242px] mt-[18px] tracking-[0.1px]",children:e("home.InsuranceDescription")})]})}),(0,l.jsx)("div",{className:"bg-[#232323] max-w-[277px] rounded-[24px]",children:(0,l.jsxs)("div",{className:"flex justify-center items-center flex-col text-center px-2 py-[30px] text-white",children:[(0,l.jsx)(r.default,{src:"/security.svg",width:56,height:56,alt:"userApp",className:"mt-[-5px]"}),(0,l.jsx)("h4",{className:m()("font-medium text-[22px] leading-[26.82px] mt-[18px]"),children:e("home.Security")}),(0,l.jsx)("p",{className:" font-normal text-[15px] leading-[22.5px] max-w-[242px] mt-[18px] tracking-[0.1px]",children:e("home.SecurityDescription")})]})}),(0,l.jsx)("div",{className:"bg-[#232323] max-w-[277px] rounded-[24px]",children:(0,l.jsxs)("div",{className:"flex justify-center items-center flex-col text-center px-2 py-[30px] text-white",children:[(0,l.jsx)(r.default,{src:"/officeApp.svg",width:56,height:56,alt:"userApp",className:"mt-[-5px]"}),(0,l.jsx)("h4",{className:m()("font-medium text-[22px] leading-[26.82px] mt-[18px]"),children:e("home.OfficeApp")}),(0,l.jsx)("p",{className:" font-normal text-[15px] leading-[22.5px] max-w-[242px] mt-[18px] tracking-[0.1px]",children:e("home.OfficeAppDescription")})]})})]})})]})})})};var d=s(12115),n=s(50584);function p(){let[e,t]=(0,d.useState)(null);return(0,l.jsx)("div",{className:"bg-white rounded-2xl shadow-lg px-2 md:px-8 py-4 border border-gray-200 md:pb-10 lg:pb-10",children:(0,l.jsx)(n.A,{onSearch:e=>{t(e)}})})}var o=s(40771),h=s(35695);function u(){let{t:e}=(0,a.Bd)("common"),t=(0,h.useSearchParams)().get("application");return(0,l.jsxs)("main",{className:"bg-white",children:["true"!==t&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"relative bg-primary pt-25 md:pt-32 pb-20 md:pb-20 z-10",children:(0,l.jsxs)("div",{className:"text-start text-white px-4 ms-4 md:ms-14 mx-auto",children:[(0,l.jsx)("h1",{className:"text-xl sm:text-2xl md:text-5xl lg:text-6xl font-bold leading-tight mb-2",children:e("home.Title")}),(0,l.jsx)("p",{className:"text-sm sm:text-base md:text-xl lg:text-2xl font-medium",children:e("home.Subtitle")})]})}),(0,l.jsx)("div",{className:"flex justify-center mt-[-60px] z-10 relative",children:(0,l.jsx)("div",{className:"w-full max-w-8xl px-4 md:px-12",children:(0,l.jsx)(p,{})})})]}),(0,l.jsx)("section",{id:"about",className:"bg-white max-w-7xl mx-auto mt-10 md:mt-20 scroll-mt-24",children:(0,l.jsx)(x,{})}),(0,l.jsx)("section",{id:"services",className:"bg-white max-w-7xl mx-auto mt-12 md:mt-24 scroll-mt-24 mb-20 md:mb-30",children:(0,l.jsx)(c,{})}),"true"!==t&&(0,l.jsx)("section",{id:"contact",className:"bg-white max-w-7xl mx-auto mt-12 md:mt-24 scroll-mt-24 mb-20 md:mb-30",children:(0,l.jsx)(o.B,{})})]})}},40771:(e,t,s)=>{"use strict";s.d(t,{B:()=>u});var l=s(95155),a=s(12115),x=s(66766),r=s(62177),i=s(62461),m=s(37129);let c=e=>m.Ik().shape({email:m.Yj().required(e("auth.EmailRequired")).email(e("auth.EmailInvalid")),name:m.Yj().required(e("auth.NameRequired")).min(2,e("auth.EnterName")).max(256,e("auth.MaxCharLimit")),phone:m.Yj().required(e("auth.PhoneRequired")),message:m.Yj().required(e("auth.MessageRequired")).min(2,e("auth.EnterMessage"))});var d=s(91218),n=s(23399),p=s(99558),o=s(29300),h=s.n(o);let u=e=>{var t,s,m,o;let{showHeadingInside:u}=e,[j,f]=(0,a.useState)({submitting:!1,success:!1,error:!1,feedback:""}),{t:b}=(0,d.Bd)("common"),{register:N,handleSubmit:w,reset:v,formState:{errors:y,isDirty:k,isValid:C}}=(0,r.mN)({reValidateMode:"onChange",mode:"all",defaultValues:{name:"",email:"",phone:"",message:""},resolver:(0,i.t)(c(b))}),A=async e=>{f(e=>({...e,submitting:!0,feedback:"",error:!1,success:!1}));let t=await fetch("https://api-dev.ajarlee.om/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();(null==s?void 0:s.success)?(f(e=>({...e,submitting:!1,success:!0,error:!1,feedback:b("home.SuccessMessage")})),v()):f(e=>({...e,submitting:!1,success:!1,error:!0,feedback:b("home.FormError")}))};return(0,l.jsx)("section",{id:"contact",children:(0,l.jsxs)("div",{className:"mt-[103px]",children:[!u&&(0,l.jsx)("h1",{className:"text-center text-white tracking-[0.5px] leading-[60px] text-[40px] font-semibold text-black",children:(0,l.jsx)("span",{className:"border-b-2 border-primary text-black pb-[10px]",children:b("home.ContactUs")})}),(0,l.jsx)("div",{className:"flex justify-center mt-[33px]",children:(0,l.jsxs)("div",{className:"w-auto 2xl:w-[1091px] z-[9] bg-[#ECEDF0] rounded-[32px] h-auto 2xl:min-h-[477px] px-5 md:px-[56px] py-[40px]",children:[u&&(0,l.jsx)("h1",{className:"text-center mb-10 text-white tracking-[0.5px] leading-[60px] text-[40px] font-semibold text-black",children:(0,l.jsx)("span",{className:"border-b-2 border-primary text-black pb-[10px]",children:b("home.ContactUs")})}),(0,l.jsx)("form",{onSubmit:w(A),children:(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-[0.5rem]",children:[(0,l.jsxs)("div",{className:"order-last md:order-first flex justify-center md:justify-start flex-col items-center md:items-start",children:[(0,l.jsx)("input",{...N("name"),type:"text",className:"px-4 py-2 max-w-[405px] h-[60px] rounded-[12px] border border-[#C4C4C4] w-full text-black placeholder-gray-500 bg-white",placeholder:b("home.YourName")}),(0,l.jsx)(g,{error:null==y||null==(t=y.name)?void 0:t.message}),(0,l.jsx)("input",{...N("email"),type:"text",className:"px-4 py-2 max-w-[405px] h-[60px] rounded-[12px] border border-[#C4C4C4] w-full mt-[25px] text-black placeholder-gray-500 bg-white",style:{direction:"ltr",textAlign:"left"},placeholder:b("home.YourEmail")}),(0,l.jsx)(g,{error:null==y||null==(s=y.email)?void 0:s.message}),(0,l.jsx)("input",{...N("phone"),type:"text",className:"px-4 py-2 max-w-[405px] h-[60px] rounded-[12px] border border-[#C4C4C4] w-full mt-[25px] text-black placeholder-gray-500 bg-white",style:{direction:"ltr",textAlign:"left"},placeholder:b("home.YourPhone")}),(0,l.jsx)(g,{error:null==y||null==(m=y.phone)?void 0:m.message}),(0,l.jsx)("textarea",{...N("message"),className:"px-4 py-2 max-w-[405px] min-h-[122px] rounded-[12px] border border-[#C4C4C4] w-full mt-[25px] text-black placeholder-gray-500 bg-white",placeholder:b("home.YourMessage")}),(0,l.jsx)(g,{error:null==y||null==(o=y.message)?void 0:o.message}),(0,l.jsx)("div",{className:"text-center flex flex-wrap justify-center",children:j.success&&(null==j?void 0:j.feedback)?(0,l.jsxs)("div",{className:"flex flex-wrap items-center mb-3 mt-1 text-green-500 text-sm",children:[(0,l.jsx)(n.A,{className:"h-5 w-5 mr-1"})," ",null==j?void 0:j.feedback]}):j.error&&(null==j?void 0:j.feedback)?(0,l.jsxs)("div",{className:"flex flex-wrap items-center mb-3 mt-1 text-rose-500 text-sm",children:[(0,l.jsx)(p.A,{className:"h-5 w-5 mr-1"})," ",null==j?void 0:j.feedback]}):null}),(0,l.jsxs)("button",{type:"submit",disabled:!C||!k||j.submitting,className:h()("flex justify-center space-x-[4px] disabled:bg-gray-400 items-center max-w-[405px] w-full tracking-[0.5px] h-[64px] rounded-[12px] mt-[33px] px-[24px] space-x-[21px] py-[10px] leading-[24px] text-[24px] font-medium bg-primary text-white"),children:[(0,l.jsx)("div",{className:"tracking-[1px] text-center",children:j.submitting?b("home.Sending"):b("home.Send")}),(0,l.jsx)(x.default,{src:"/send.svg",width:32,height:32,alt:"send"})]})]}),(0,l.jsx)("div",{children:(0,l.jsx)(x.default,{src:"/contact.svg",width:487,height:344,alt:"Right Arrow"})})]})})]})})]})})},g=e=>{let{error:t}=e;return t?(0,l.jsxs)("div",{className:"flex flex-wrap items-center mt-1 text-rose-500 text-sm",children:[(0,l.jsx)(p.A,{className:"h-5 w-5 mr-1"})," ",t]}):null}},54356:(e,t,s)=>{Promise.resolve().then(s.bind(s,36253))}},e=>{var t=t=>e(e.s=t);e.O(0,[8002,2545,3e3,2177,6757,2884,3456,7256,7734,584,8441,1684,7358],()=>t(54356)),_N_E=e.O()}]);