!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="24a69272-41f4-4bbe-8feb-2d1eddc1a5b0",e._sentryDebugIdIdentifier="sentry-dbid-24a69272-41f4-4bbe-8feb-2d1eddc1a5b0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{9951:function(e,t,r){Promise.resolve().then(r.bind(r,12433)),Promise.resolve().then(r.bind(r,64969)),Promise.resolve().then(r.t.bind(r,71693,23)),Promise.resolve().then(r.t.bind(r,15827,23)),Promise.resolve().then(r.bind(r,36799)),Promise.resolve().then(r.bind(r,62223)),Promise.resolve().then(r.bind(r,11785)),Promise.resolve().then(r.bind(r,34752))},36799:function(e,t,r){"use strict";r.d(t,{default:function(){return o}});var a=r(38449),s=r(16849),n=r(95406),l=r(28628),i=r(98016),c=r(94541);function o(){let[e,t]=(0,i.useState)(1),r=(0,n.useTranslations)(),o=(0,n.useLocale)();return(0,a.jsxs)("div",{className:"flex flex-col gap-4 relative",children:[(0,a.jsx)("h2",{className:"text-center text-new-dark-blue text-xl lg:text-2xl font-bold mb-4",children:r("landing.header3")}),(0,a.jsx)("div",{className:"justify-center flex w-full",children:(0,a.jsx)("div",{className:"flex flex-row justify-between w-full lg:w-1/2",children:(0,a.jsxs)("div",{className:"flex flex-row w-full justify-between",children:[(0,a.jsx)("span",{onClick:()=>t(1),className:(0,s.cn)("w-full flex-1 text-center border-b-2 pb-2 cursor-pointer transition-all","hover:text-new-primary-red hover:border-new-primary-red",1===e?"text-new-primary-red border-new-primary-red":"text-dark-gray border-dark-gray"),children:r("landing.tab1")}),(0,a.jsx)("span",{onClick:()=>t(2),className:(0,s.cn)("w-full flex-1 text-center border-b-2 pb-2 cursor-pointer transition-all","hover:text-new-primary-red hover:border-new-primary-red",2===e?"text-new-primary-red border-new-primary-red":"text-dark-gray border-dark-gray"),children:r("landing.tab2")}),(0,a.jsx)("span",{onClick:()=>t(3),className:(0,s.cn)("w-full flex-1 text-center border-b-2 pb-2 cursor-pointer transition-all","hover:text-new-primary-red hover:border-new-primary-red",3===e?"text-new-primary-red border-new-primary-red":"text-dark-gray border-dark-gray"),children:r("landing.tab3")})]})})}),(0,a.jsx)("div",{className:"flex justify-center w-full relative w-fit",children:(0,a.jsx)(l.default,{src:"/images/how-to-use-".concat(e,"-").concat(o,".png"),alt:"How to use",className:"lg:max-w-[1200px]",width:4525,height:1819})}),(0,a.jsxs)("div",{className:"hidden lg:flex",children:[(0,a.jsx)(c.U,{top:0,horizontal:5,rtl:"ar"===o}),(0,a.jsx)(c.y,{top:0,horizontal:5,rtl:"ar"===o}),(0,a.jsx)(c.y,{top:-10,horizontal:95,rtl:"ar"===o})]})]})}},62223:function(e,t,r){"use strict";r.d(t,{default:function(){return x}});var a=r(38449),s=r(28628),n=r(72509),l=r(95406),i=r(36320),c=r(130),o=r(9247),d=r(29859);function x(e){let{user:t}=e,r=(0,l.useTranslations)(),x=(0,l.useLocale)(),u=function(e,t){let r=[];return e&&r.push({path:"/dashboard",title:t("navbar.bookings")}),r.push({path:"/tracking",title:t("navbar.tracking")}),r.push({path:"/help",title:t("navbar.help")}),r}(t,r);return(0,a.jsx)("div",{className:"border-b py-4",children:(0,a.jsxs)("nav",{className:"px-6 lg:px-[9.4em] flex flex-row justify-between items-center ",children:[(0,a.jsxs)("div",{className:"flex-row items-center gap-8 hidden lg:flex",children:[(0,a.jsx)(h,{}),(0,a.jsx)(n.Z,{title:r("navbar.tracking"),href:"/tracking"}),(0,a.jsx)(n.Z,{title:r("navbar.help"),href:"/help"})]}),(0,a.jsxs)("div",{className:"lg:flex flex-row items-center gap-8 hidden",children:[(0,a.jsx)(i.LocaleSwitcher,{}),t?(0,a.jsx)(c.f,{title:r("navbar.ship"),testid:"ship-btn",href:"/request-quote"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.f,{outline:!0,title:r("navbar.login"),id:"login-btn",testid:"login-btn",href:"/auth/signin"}),(0,a.jsx)(c.f,{title:r("navbar.register"),href:"/auth/signup",id:"register-btn",testid:"register-btn"})]})]}),(0,a.jsx)("div",{className:"flex lg:hidden lg:flex-1 justify-center",children:(0,a.jsx)(d.rU,{href:"/",children:(0,a.jsx)(s.default,{className:"h-[35px]",src:"/icons/logo-red.png",alt:"Logo",height:35,width:100})})}),(0,a.jsx)("div",{className:"block lg:hidden",children:(0,a.jsx)(o.MobileNavbar,{user:t,rtl:"ar"===x,links:u})})]})})}function h(){return(0,a.jsx)(s.default,{className:"cursor-pointer",src:"/icons/logo-red.png",alt:"Logo",height:45,width:130})}},11785:function(e,t,r){"use strict";r.d(t,{default:function(){return d}});var a=r(38449),s=r(16849),n=r(69904),l=r(95406),i=r(28628),c=r(98016),o=r(94541);function d(){let[e,t]=(0,c.useState)(1),r=(0,l.useTranslations)(),d="ar"===(0,l.useLocale)();return(0,a.jsxs)("div",{className:"flex flex-col gap-8 relative",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"h-[1px] w-full hidden lg:flex flex-1 bg-dark-gray"}),(0,a.jsx)("span",{className:"text-center mx-auto text-xl lg:text-sm text-dark-gray",children:r("landing.joinWaared2")}),(0,a.jsx)("div",{className:"h-[1px] w-full hidden lg:flex flex-1 bg-dark-gray"})]}),(0,a.jsx)("div",{className:"lg:flex justify-around py-4 hidden",children:[,,,,,].fill(0).map((r,n)=>(0,a.jsx)(i.default,{onClick:()=>t(n+1),className:(0,s.cn)("grayscale hover:grayscale-0 cursor-pointer border-new-primary-red",e===n+1&&"grayscale-0 border-b-2"),src:"/icons/partner_logos/".concat(n+1,".png"),alt:"Waared",width:100,height:100},n))}),(0,a.jsxs)("div",{className:"lg:flex hidden flex-col mx-auto relative border border-[#D1D2D3] rounded-xl w-2/3 min-h-[360px] text-black shadow p-10",children:[(0,a.jsx)(x,{}),(0,a.jsx)(h,{}),[,,,,,].fill(0).map((t,n)=>(0,a.jsxs)("div",{className:(0,s.cn)("flex flex-col justify-between transition-all mx-auto h-full w-full flex-1",e!==n+1&&"hidden"),children:[(0,a.jsx)("p",{className:"line-clamp-3 max-w-prose leading-loose text-2xl",children:r("testimonials.t".concat(n+1,"-text"))}),(0,a.jsx)("div",{className:"flex justify-between items-center self-end mt-auto",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("b",{className:"text-2xl",children:r("testimonials.t".concat(n+1,"-author"))}),(0,a.jsx)("span",{children:r("testimonials.t".concat(n+1,"-title"))})]})})]},n))]}),(0,a.jsx)(n.M,{mode:"wait",initial:!1,children:(0,a.jsx)("div",{className:"overflow-x-auto lg:hidden block",children:(0,a.jsxs)("div",{className:(0,s.cn)("flex gap-8 overflow-x-auto w-fit px-8"),children:[(0,a.jsx)(x,{}),(0,a.jsx)(h,{}),[,,,,,].fill(0).map((e,t)=>(0,a.jsxs)("div",{className:(0,s.cn)("flex flex-col py-4 px-8 gap-8 transition-all w-[300px] border-[#D1D2D3] border rounded"),children:[(0,a.jsx)(i.default,{src:"/icons/partner_logos/".concat(t+1,".png"),alt:"Waared",className:"mx-auto",width:100,height:100}),(0,a.jsx)("p",{className:"line-clamp-3 max-w-prose leading-loose text-sm",children:r("testimonials.t".concat(t+1,"-text"))}),(0,a.jsx)("div",{className:"flex justify-between items-center self-end mt-auto",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("b",{className:"text-lg",children:r("testimonials.t".concat(t+1,"-author"))}),(0,a.jsx)("span",{children:r("testimonials.t".concat(t+1,"-title"))})]})})]},t))]})})}),(0,a.jsxs)("div",{className:"hidden lg:flex",children:[(0,a.jsx)(o.y,{top:50,horizontal:95,rtl:d}),(0,a.jsx)(o.U,{top:85,horizontal:0,rtl:d}),(0,a.jsx)(o.y,{top:85,horizontal:0,rtl:d})]})]})}function x(){let e="ar"===(0,l.useLocale)();return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,s.cn)("lg:block absolute hidden top-0 rotate-180",e?"right-0 translate-x-1/2 translate-y-1/2":"left-0 -translate-x-1/2 -translate-y-1/2"),width:"62",height:"44",fill:"none",viewBox:"0 0 62 44",children:(0,a.jsx)("path",{fill:"#EE4036",d:"M61.999 27.231c0 9.027-7.422 16.339-16.586 16.339h-1.106c-2.446 0-4.423-1.947-4.423-4.357s1.977-4.357 4.423-4.357h1.106c4.27 0 7.74-3.418 7.74-7.625v-1.089h-8.846c-4.879 0-8.846-3.908-8.846-8.714V8.714C35.461 3.908 39.428 0 44.307 0h8.846c4.879 0 8.846 3.908 8.846 8.714V27.231zm-35.383 0c0 9.027-7.423 16.339-16.586 16.339H8.924c-2.446 0-4.423-1.947-4.423-4.357s1.976-4.357 4.423-4.357h1.106c4.27 0 7.74-3.418 7.74-7.625v-1.089H8.924c-4.88 0-8.846-3.908-8.846-8.714V8.714C.078 3.908 4.045 0 8.924 0h8.846c4.879 0 8.846 3.908 8.846 8.714V27.231z"})})}function h(){let e="ar"===(0,l.useLocale)();return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,s.cn)("lg:block absolute hidden bottom-0",e?"left-0 translate-x-1/2 translate-y-1/2":"right-0 translate-x-1/2 translate-y-1/2"),width:"62",height:"44",fill:"none",viewBox:"0 0 62 44",children:(0,a.jsx)("path",{fill:"#EE4036",d:"M61.999 27.231c0 9.027-7.422 16.339-16.586 16.339h-1.106c-2.446 0-4.423-1.947-4.423-4.357s1.977-4.357 4.423-4.357h1.106c4.27 0 7.74-3.418 7.74-7.625v-1.089h-8.846c-4.879 0-8.846-3.908-8.846-8.714V8.714C35.461 3.908 39.428 0 44.307 0h8.846c4.879 0 8.846 3.908 8.846 8.714V27.231zm-35.383 0c0 9.027-7.423 16.339-16.586 16.339H8.924c-2.446 0-4.423-1.947-4.423-4.357s1.976-4.357 4.423-4.357h1.106c4.27 0 7.74-3.418 7.74-7.625v-1.089H8.924c-4.88 0-8.846-3.908-8.846-8.714V8.714C.078 3.908 4.045 0 8.924 0h8.846c4.879 0 8.846 3.908 8.846 8.714V27.231z"})})}},94541:function(e,t,r){"use strict";r.d(t,{U:function(){return l},y:function(){return n}});var a=r(38449);function s(){return(0,a.jsxs)("svg",{className:"watermark",xmlns:"http://www.w3.org/2000/svg",width:"44",height:"54",fill:"none",viewBox:"0 0 44 54",children:[(0,a.jsx)("path",{stroke:"#EF4037",strokeWidth:"1.5",d:"M41.125 18.647c2.833 1.636 2.833 5.726 0 7.362l-30 17.32c-2.833 1.636-6.375-.409-6.375-3.68V5.006c0-3.271 3.542-5.316 6.375-3.68l30 17.32z"}),(0,a.jsx)("path",{stroke:"#EF4037",strokeWidth:"1.5",d:"M4.5 6.328c-2 0-3.5 1.87-3.5 4.008v34.64c0 3.85 4.167 6.255 7.5 4.33l30-17.32c2.282-1.317 3.002-3.987 2.16-6.158"})]})}function n(e){let{top:t,horizontal:r,rtl:n}=e;return(0,a.jsx)("div",{style:n?{top:"".concat(t,"%"),right:"".concat(r,"%")}:{top:"".concat(t,"%"),left:"".concat(r,"%")},className:"absolute",children:(0,a.jsx)(s,{})})}function l(e){let{top:t,horizontal:r,rtl:s}=e;return(0,a.jsx)("div",{style:s?{top:"".concat(t,"%"),right:"".concat(r,"%")}:{top:"".concat(t,"%"),left:"".concat(r,"%")},className:"absolute w-[203px] h-[203px] rounded-full bg-new-primary-red opacity-30 -z-50 blur-[360px]"})}},36320:function(e,t,r){"use strict";r.d(t,{LocaleSwitcher:function(){return o}});var a=r(38449),s=r(29859),n=r(16849),l=r(95406),i=r(95325),c=r(98016);function o(e){let{l:t}=e,r=(0,l.useLocale)(),o=(0,s.tv)(),[d,x]=(0,c.useTransition)(),h=(0,s.jD)(),u=(0,i.useSearchParams)(),f=t?"ar"===t?"English":"العربية":"ar"===r?"English":"العربية";return(0,a.jsx)("label",{className:(0,n.cn)("relative ",d&&"transition-opacity [&:disabled]:opacity-30"),children:(0,a.jsx)("button",{className:"inline-flex appearance-none bg-transparent py-3 pl-2 px-6 text-sm",disabled:d,onClick:function(){let e="English"===f?"en":"ar";x(()=>{o.replace("".concat(h,"?").concat(new URLSearchParams(u.toString())),{locale:e})})},children:f})})}},9247:function(e,t,r){"use strict";r.d(t,{MobileNavbar:function(){return k}});var a=r(38449),s=r(49523),n=r(29859),l=r(16849),i=r(98426),c=r(93453),o=r(14592),d=r(716),x=r(97540),h=r(37093),u=r(46549),f=r(74001),p=r(39535),m=r(93199),g=r(98016),b=r(36320),w=r(95406),j=r(28628),v=r(65201),y=r(84738);function N(e){let{path:t}=e;switch(t){case"/":return(0,a.jsx)(i.Z,{});case"/auth/signin":return(0,a.jsx)(c.Z,{});case"/auth/signup":return(0,a.jsx)(o.Z,{});case"/profile":return(0,a.jsx)(d.Z,{});case"/dashboard":return(0,a.jsx)(x.Z,{});case"/help":return(0,a.jsx)(h.Z,{});case"/tracking":return(0,a.jsx)(u.Z,{});case"/logout":return(0,a.jsx)(f.Z,{});default:return null}}function k(e){let{user:t,rtl:r,links:i}=e,[c,o]=(0,g.useState)(!1),[d,x]=(0,g.useState)(!1),h=(0,w.useTranslations)(),u=(0,n.tv)();async function f(){x(!0),o(!1),await s.ZP.logout(),u.refresh(),x(!1)}return(0,a.jsxs)(a.Fragment,{children:[d&&(0,a.jsx)(y.Z,{}),(0,a.jsx)(p.Z,{onClick:()=>o(!c),className:"w-8 h-8 cursor-pointer"}),c&&(0,a.jsx)("div",{onClick:()=>o(!1),className:"fixed top-0 left-0 right-0 bottom-0 h-100 bg-black/[.5] z-50 m-0 p-0 ",children:(0,a.jsxs)(v.E.div,{initial:{translateX:r?"-100%":"100%"},animate:{translateX:0},transition:{delay:c?0:.5,duration:.5,ease:"easeInOut"},onClick:e=>e.stopPropagation(),className:(0,l.cn)("fixed transition-all top-0 w-3/4 h-full bg-new-dark-blue flex flex-col gap-4 z-50 pt-24",r?"left-0":"right-0"),children:[(0,a.jsx)(m.Z,{onClick:()=>o(!1),className:(0,l.cn)("absolute top-4 text-white",r?"left-4":"right-4")}),(0,a.jsxs)("div",{className:(0,l.cn)("flex flex-col text-white text-right gap-16",r?"items-start":"items-end"),children:[(0,a.jsx)(n.rU,{href:"/",className:"mx-auto",children:(0,a.jsx)(j.default,{height:50,width:175,src:"/icons/logo-white.png",alt:"Logo"})}),(0,a.jsxs)("ul",{className:"flex flex-col w-full",children:[t?(0,a.jsxs)("li",{className:(0,l.cn)("py-6 border-[#d1d1d1] text-white whitespace-nowrap my-1 w-full flex gap-2 items-center px-4","transition-all border-t border-b"),children:[(0,a.jsx)(N,{path:"/profile"}),(0,a.jsx)(n.rU,{"data-test":"nav-profile",href:"/profile",children:h("navbar.profile")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("li",{className:(0,l.cn)("py-6 border-[#d1d1d1] text-white whitespace-nowrap my-1 w-full flex gap-2 items-center px-4","transition-all border-t border-b"),children:[(0,a.jsx)(N,{path:"/auth/signup"}),(0,a.jsx)(n.rU,{"data-test":"nav-register",href:"/auth/signup",children:h("navbar.register")})]}),(0,a.jsxs)("li",{className:(0,l.cn)("py-6 border-[#d1d1d1] text-white whitespace-nowrap my-1 w-full flex gap-2 items-center px-4","transition-all border-b"),children:[(0,a.jsx)(N,{path:"/auth/signin"}),(0,a.jsx)(n.rU,{"data-test":"nav-register",href:"/auth/signin",children:h("navbar.login")})]})]}),i.map((e,t)=>(0,a.jsxs)("li",{className:(0,l.cn)("py-6 border-[#d1d1d1] text-white whitespace-nowrap my-1 w-full flex gap-2 items-center px-4","transition-all",t!==i.length-1&&"border-b"),children:[(0,a.jsx)(N,{path:e.path}),(0,a.jsx)(n.rU,{"data-test":"nav-".concat(e.title),href:e.path,children:e.title})]},t)),(0,a.jsxs)("div",{className:"flex justify-around border-t border-gray-700 items-center px-4 bg-[#1b1844] py-3 w-full",children:[(0,a.jsx)(b.LocaleSwitcher,{l:"ar"}),(0,a.jsx)(b.LocaleSwitcher,{l:"en"})]})]})]}),!!t&&(0,a.jsx)("div",{className:"mt-auto",children:(0,a.jsxs)("div",{className:(0,l.cn)("py-6 border-[#d1d1d1] text-white whitespace-nowrap my-1 w-full flex gap-2 items-center px-4","transition-all"),children:[(0,a.jsx)(N,{path:"/logout"}),(0,a.jsx)("button",{onClick:f,"data-test":"nav-logout",children:h("navbar.logout")})]})})]})})]})}},34752:function(e,t,r){"use strict";r.d(t,{Accordion:function(){return c},AccordionContent:function(){return x},AccordionItem:function(){return o},AccordionTrigger:function(){return d}});var a=r(38449),s=r(98016),n=r(53431),l=r(9995),i=r(16849);let c=n.fC,o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.ck,{ref:t,className:(0,i.cn)("border-b",r),...s})});o.displayName="AccordionItem";let d=s.forwardRef((e,t)=>{let{className:r,children:s,...c}=e;return(0,a.jsx)(n.h4,{className:"flex",children:(0,a.jsxs)(n.xz,{ref:t,className:(0,i.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",r),...c,children:[s,(0,a.jsx)(l.Z,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});d.displayName=n.xz.displayName;let x=s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsx)(n.VY,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...l,children:(0,a.jsx)("div",{className:(0,i.cn)("pb-4 pt-0",r),children:s})})});x.displayName=n.VY.displayName},84738:function(e,t,r){"use strict";var a=r(38449),s=r(95406);t.Z=e=>{let{text:t,spinner:r=!0}=e,n=(0,s.useTranslations)();return(0,a.jsx)("section",{className:"fixed top-0 left-0 right-0 bottom-0 h-100 bg-white/80 z-50 m-0 p-0",children:(0,a.jsxs)("div",{className:"absolute top-1/2 text-5xl cursor-default select-none text-bold m-0 p-0 left-1/2 -translate-y-1/2 -translate-x-1/2 text-new-primary-red flex flex-col gap-3",children:[(0,a.jsx)("div",{className:"font-bold",children:n("common.loading")}),(0,a.jsxs)("div",{dir:"ltr",className:"arrows",children:[(0,a.jsx)("div",{className:"arrow"}),(0,a.jsx)("div",{className:"arrow"}),(0,a.jsx)("div",{className:"arrow"})]})]})})}},72509:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var a=r(38449),s=r(29859),n=r(19116);let l=e=>{let{className:t,href:r,title:l,...i}=e;return(0,a.jsx)(s.rU,{className:(0,n.m6)("hover:opacity-80 transition-all",t),href:r,...i,children:l})}},130:function(e,t,r){"use strict";r.d(t,{f:function(){return l}});var a=r(38449),s=r(29859),n=r(16849);let l=e=>{let{className:t,outline:r,title:l,href:i,thick:c,testid:o,...d}=e,x=r?"px-8 py-2 rounded-[5px] whitespace-nowrap border-new-primary-red border-2 text-new-primary-red hover:opacity-80":c?"bg-new-primary-red w-full py-2 rounded-xl text-white font-bold\n		whitespace-nowrap border-2 border-new-primary-red hover:opacity-80 transition-all disabled:cursor-not-allowed":"bg-new-primary-red px-8 py-2 rounded-md text-white \n		whitespace-nowrap border-2 border-new-primary-red hover:opacity-80 transition-all";return i?(0,a.jsx)(s.rU,{className:(0,n.cn)(x,t),href:i,"data-testid":o,children:l}):(0,a.jsx)("button",{...d,className:(0,n.cn)(x,t),children:l})}}}]);