(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2056],{56791:function(e,t,s){Promise.resolve().then(s.bind(s,61811)),Promise.resolve().then(s.bind(s,48746))},94586:function(e,t,s){"use strict";var a=s(57437),r=s(96592),l=s(87138);s(2265);var i=s(29039),n=s(7210);let c=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Network response was not ok");return t.json()};t.Z=()=>{let{data:e}=(0,i.ZP)("/api/social-media",c,{onError:()=>r.ZP.error("Something went wrong")});return(0,a.jsx)("div",{className:"flex items-center gap-4",children:e&&e.length>0&&(0,a.jsx)(a.Fragment,{children:e.map((e,t)=>(0,a.jsx)(l.default,{href:e.url,rel:"noreferrer",target:"_blank",children:(0,a.jsx)("img",{src:(0,n._h)(null==e?void 0:e.icon),alt:e.name||"icon",className:"h-6 w-6 object-cover rounded-full"})},49*t))})})}},36864:function(e,t,s){"use strict";s.d(t,{X:function(){return r}}),s(87113);var a=s(20357);let r={title:"Supertruck",description:"SuperTruck was founded with a simple yet powerful vision: to transform the trucking industry by prioritizing the well-being of drivers. Our founders, who have extensive experience in the transportation sector, recognized the challenges and hardships that drivers face daily.",previewImage:"",keywords:"Supertruck, Supertruck.ai",APP_URL:a.env.NEXT_PUBLIC_APP_URL,REDIS_URL:a.env.NEXT_APP_REDIS_URL,DATABASE:a.env.NEXT_APP_MONGODB_URI||"",API_URL:"https://supertruck.ai/api",FIREBASE_FILE_URL:"https://firebasestorage.googleapis.com/v0/b/supertruck-cms.appspot.com/o",RECAPTCHA_SITE_KEY:a.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY||"",RECAPTCHA_SECRET_KEY:a.env.RECAPTCHA_SECRET_KEY||"",unAuthenticatedRoute:"/login",authenticatedRoute:"/dashboard/home",ACCESS_TOKEN:"access_token"}},61811:function(e,t,s){"use strict";s.d(t,{default:function(){return d}});var a=s(57437),r=s(87138);let l=[{label:"Privacy policy",path:"/privacy-policy"},{label:"Terms & Condition",path:"/terms-condition"},{label:"Features",path:"/features"},{label:"About Us",path:"/about-us"},{label:"Blog",path:"/blogs"}],i=[{label:"Start trucking career",path:"/career"},{label:"How To Use?",path:"/how-to-use"},{label:"Contact Us",path:"/contact-us"},{label:"FAQ",path:"/faq"},{label:"Join us",path:"/join-us"},{label:"Get a call",path:"/get-a-call"}];var n=s(94586),c=s(87113),d=()=>{let{setting:e}=(0,c.Z)(e=>e);return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"bg-black py-20",children:(0,a.jsxs)("div",{className:"container grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 sm:justify-items-center gap-10",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h6",{className:"text-white font-700 text-xl",children:"Learn"}),(0,a.jsx)("div",{className:"text-white space-y-2.5",children:l.map((e,t)=>(0,a.jsx)("div",{children:(0,a.jsx)(r.default,{href:e.path,children:e.label})},t-59))})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h6",{className:"text-white font-700 text-xl",children:"INFO"}),(0,a.jsx)("div",{className:"space-y-2.5 text-white",children:i.map((e,t)=>(0,a.jsx)("div",{children:(0,a.jsx)(r.default,{href:e.path,children:e.label})},t-59))})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h6",{className:"text-white font-700 text-xl",children:"Call us"}),(0,a.jsx)("div",{className:"space-y-2.5 text-white",children:(0,a.jsx)(r.default,{href:"tel:".concat(null==e?void 0:e.phoneNumber),children:(null==e?void 0:e.phoneNumber)||"N/A"})})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h6",{className:"text-white font-700 text-xl",children:"Email us"}),(0,a.jsx)("div",{className:"space-y-2.5 text-white",children:(0,a.jsx)(r.default,{href:"mailto:".concat(null==e?void 0:e.email),children:(null==e?void 0:e.email)||"N/A"})})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h6",{className:"text-white font-700 text-xl",children:"Address"}),(0,a.jsx)("div",{className:"space-y-2.5 text-white",children:(0,a.jsx)("div",{children:(null==e?void 0:e.address)||"N/A"})})]})]})]})}),(0,a.jsx)("div",{className:"bg-gray-light py-2",children:(0,a.jsxs)("div",{className:"container flex flex-col gap-4 sm:gap-0 sm:flex-row sm:justify-between items-center",children:[(0,a.jsx)("p",{children:"\xa9copyright 2024, supertruck.ai"}),(0,a.jsx)("div",{className:"flex items-center gap-6 underline",children:(0,a.jsx)(n.Z,{})})]})})]})}},48746:function(e,t,s){"use strict";s.d(t,{default:function(){return E}});var a=s(57437),r=s(2265),l=s(25622),i=s(16463),n=s(56800),c=s.n(n),d=s(66648),o=s(87138),h=e=>(0,a.jsx)("svg",{...e,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5 8H27M5 16H27M5 24H27",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),u=s(39387),p={src:"/_next/static/media/logo-white.6fc32ed8.svg",height:66,width:100,blurWidth:0,blurHeight:0},x=s(2142),m=s(82186),f=s(27585),v=s(22606),g=s(28681);let j=[{label:"Owner Operators",path:"/products/owner-operator"},{label:"Carriers",path:"/products/super-carrier"},{label:"Shippers",path:"/products/super-shipper"},{label:"Technology",children:[{label:"Super Carriers",desc:"Optimizes fleet efficiency and load management.",path:"/products/super-carrier",icon:f.Z},{label:"Super Dispatchers",path:"/products/super-dispatcher",desc:"Optimizes fleet efficiency and load management.",icon:v.Z},{label:"Super Brokers",path:"/products/super-broker",desc:"Optimizes fleet efficiency and load management.",icon:m.Z},{label:"Super Shippers",path:"/products/super-shipper",desc:"Optimizes fleet efficiency and load management.",icon:g.Z},{label:"Super Accountant",path:"/products/super-accountant",desc:"Optimizes fleet efficiency and load management.",icon:x.Z}]},{label:"Join us",path:"/join-us"}];var b=s(60063),N=()=>{let e=(0,i.usePathname)();return(0,a.jsx)(l.Disclosure.Panel,{className:"lg:hidden z-10 w-full overflow-y-auto bg-white container-sm pt-4 h-screen px-4",children:(0,a.jsx)(b.v2,{as:"div",className:"relative",children:(0,a.jsx)("div",{className:"space-y-2 mb-6",children:j.map((t,s)=>(0,a.jsx)("div",{className:c()(e===t.path&&"text-primary-900 font-600","font-500  hover:-translate-y- duration-500 text-black relative hover:text-primary-900 px-4 py-2 rounded-lg"),children:t.path?(0,a.jsx)(o.default,{href:t.path,className:c()("font-500 text-base",e===t.path&&"text-primary-900"),children:(0,a.jsx)(l.Disclosure.Button,{children:t.label})}):(0,a.jsxs)("div",{className:"font-500 text-base block group relative hover:cursor-pointer",children:[t.label,(0,a.jsx)("div",{className:"group-hover:absolute -left-0 z-10",children:(0,a.jsx)("div",{className:"mt-2 hidden group-hover:flex flex-col w-full bg-white shadow border p-5 rounded-lg gap-10",children:t.children&&t.children.map((e,t)=>(0,a.jsx)(o.default,{href:e.path,className:"text-sm text-black ",children:(0,a.jsxs)(l.Disclosure.Button,{className:"flex gap-4 h-full",children:[(0,a.jsx)("div",{className:"shrink-0 border rounded-lg flex items-center justify-center w-14",children:(0,a.jsx)(e.icon,{className:"h-10 w-full text-primary-900"})}),(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("h6",{className:"text-start",children:e.label}),(0,a.jsx)("p",{className:"font-400 text-xs text-secondary-900 text-start",children:e.desc})]})]})},456789*t))})})]})},t.label))})})})},w=s(50133),E=()=>{let e=(0,i.usePathname)(),[t,s]=(0,r.useState)(!1),[n,x]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{window.scrollTo(0,0);let e=()=>{window.scrollY>=1?s(!0):s(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsxs)(l.Disclosure,{as:"header",className:c()("sticky top-0 py-2 z-50 w-full duration-500  shadow-sm","/"===e?"".concat(t?"bg-white":"md:bg-black/20"):"bg-white"),children:[(0,a.jsxs)("div",{className:"container flex items-center justify-between w-full",children:[(0,a.jsx)(o.default,{href:"/",className:"block",children:(0,a.jsx)(d.default,{src:"/"===e?n?u.Z:t?u.Z:p:u.Z,alt:"logo",className:"h-10 w-20 sm:h-16 sm:w-[100px]"})}),(0,a.jsxs)("div",{className:c()("flex items-center gap-12 shrink-0","/"===e?"".concat(t?"text-black":"text-white"):"text-black"),children:[j.map((t,s)=>(0,a.jsx)("div",{children:t.path?(0,a.jsx)(o.default,{href:t.path,className:c()("font-500 text-base hidden lg:block",e===t.path&&"text-primary-900"),children:t.label},9*s):(0,a.jsxs)("div",{className:"font-500 text-base hidden lg:block group relative hover:cursor-pointer",children:[(0,a.jsxs)("div",{className:"flex items-center gap-0.5",children:[t.label,(0,a.jsx)(w.Z,{className:"group-hover:rotate-180 duration-500 h-5 w-5"})]}),(0,a.jsx)("div",{className:"group-hover:absolute -left-[500px]",children:(0,a.jsx)("div",{className:"mt-2 hidden group-hover:grid grid-cols-2 w-[700px] bg-white shadow border p-5 rounded-lg gap-10",children:t.children&&t.children.map((e,t)=>(0,a.jsxs)(o.default,{href:e.path,className:"text-sm text-black flex gap-4 h-full",children:[(0,a.jsx)("div",{className:"shrink-0 border rounded-lg flex items-center justify-center w-14",children:(0,a.jsx)(e.icon,{className:"h-10 w-full text-primary-900"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{children:e.label}),(0,a.jsx)("span",{className:"font-400 text-xs text-secondary-900",children:e.desc})]})]},456789*t))})})]})},784512*s)),(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(l.Disclosure.Button,{children:s=>{let{open:r}=s;return(0,a.jsx)(h,{onClick:()=>x(!n),className:c()("h-6 w-6",r&&"text-black","/"===e?"".concat(t?"text-black":"md:text-white"):"text-black")})}})})]})]}),(0,a.jsx)(N,{})]})}},87113:function(e,t,s){"use strict";let a=(0,s(39099).Ue)(e=>({setting:null,setSetting:t=>{e({setting:t})}}));t.Z=a},7210:function(e,t,s){"use strict";s.d(t,{Ny:function(){return o},N3:function(){return u},_h:function(){return h}});var a=s(36864),r=s(15236),l=s(99854),i=s(20357);let n={apiKey:i.env.NEXT_APP_FIREBASE_API_KEY,authDomain:i.env.NEXT_APP_FIREBASE_AUTH_DOMAIN,projectId:i.env.NEXT_APP_FIREBASE_PROJECT_ID,storageBucket:i.env.NEXT_APP_FIREBASE_STORAGE_BUCKET,messagingSenderId:i.env.NEXT_APP_FIREBASE_MESSAGING_SENDER_ID,appId:i.env.NEXT_APP_FIREBASE_MESSAGING_APP_ID},c=(0,r.ZF)(n);(0,l.cF)(c);var d=s(86623);function o(e){return new Date(e).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}).replace(",","")}function h(e){return"".concat(a.X.FIREBASE_FILE_URL,"/").concat(e,"?alt=media")}function u(e){var t,s;return e instanceof d.d7?null===(s=e.response)||void 0===s?void 0:null===(t=s.data)||void 0===t?void 0:t.message:"Something went wrong"}s(86300).Buffer}},function(e){e.O(0,[5501,6592,1071,9039,3479,8173,2596,7138,3498,5622,2141,5033,2971,7023,1744],function(){return e(e.s=56791)}),_N_E=e.O()}]);