PageSourceSearch

https://mrmaxdispatch.com/_next/static/chunks/app/layout-73579d9117e618f5.js

js mrmaxdispatch.com collected 2026-10-02 01:36:28 UTC 12,329 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{8345:function(e,t,r){Promise.resolve().then(r.t.bind(r,471,23)),Promise.resolve().then(r.t.bind(r,3054,23)),Promise.resolve().then(r.bind(r,4652)),Promise.resolve().then(r.bind(r,930)),Promise.resolve().then(r.bind(r,8480)),Promise.resolve().then(r.bind(r,2956)),Promise.resolve().then(r.bind(r,3256)),Promise.resolve().then(r.bind(r,2797)),Promise.resolve().then(r.bind(r,1551)),Promise.resolve().then(r.bind(r,7102))},4652:function(e,t,r){"use strict";r.d(t,{default:function(){return s}});var n=r(2265),o=r(3256);function s(){let{brandName:e,isReady:t}=(0,o.T)();return(0,n.useEffect)(()=>{t&&e&&(document.title="".concat(e," — Dispatch Services"))},[e,t]),null}},930:function(e,t,r){"use strict";r.d(t,{default:function(){return s}});var n=r(2265),o=r(3256);function s(){let{faviconImage:e}=(0,o.T)();return(0,n.useEffect)(()=>{let t=document.querySelector("link[rel~='icon']");t||((t=document.createElement("link")).rel="icon",document.head.appendChild(t)),e?t.href=e.startsWith("/uploads/")?"/api/image/".concat(e.split("/").pop()):e:t.href="/favicon.ico";let r=document.querySelector("link[rel='apple-touch-icon']");r||((r=document.createElement("link")).rel="apple-touch-icon",document.head.appendChild(r)),e?r.href=t.href:r.href="/favicon.ico"},[e]),null}},8480:function(e,t,r){"use strict";r.d(t,{default:function(){return o}});var n=r(2265);function o(){let[e,t]=(0,n.useState)({brand_color:"#22c55e",brand_color_light:"#a3e635",stats_bg:"#030f07",numbers_bg:"#0a0a0d"});return(0,n.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{e.brand_color&&t({brand_color:e.brand_color||"#22c55e",brand_color_light:e.brand_color_light||"#a3e635",stats_bg:e.stats_bg||"#030f07",numbers_bg:e.numbers_bg||"#0a0a0d"})}).catch(()=>{})},[]),(0,n.useEffect)(()=>{document.documentElement.style.setProperty("--brand",e.brand_color),document.documentElement.style.setProperty("--brand-light",e.brand_color_light),document.documentElement.style.setProperty("--stats-bg",e.stats_bg),document.documentElement.style.setProperty("--numbers-bg",e.numbers_bg)},[e]),null}},2956:function(e,t,r){"use strict";r.d(t,{default:function(){return d}});var n=r(7437),o=r(1551),s=r(2265),l=r(4887),a=r(7102);function i(e){let{type:t,onClose:r}=e,{t:o}=(0,a.Q)(),[l,i]=(0,s.useState)({firstName:"",driverType:"owner-operator",preferredContact:"telegram",contactValue:"",phone:""}),[c,d]=(0,s.useState)("idle"),[u,m]=(0,s.useState)({});(0,s.useEffect)(()=>{let e=window.scrollY,t=window.scrollX;return document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%",document.body.style.height="100%",document.body.style.top="-".concat(e,"px"),document.body.style.left="-".concat(t,"px"),()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width="",document.body.style.height="",document.body.style.top="",document.body.style.left="",window.scrollTo(t,e)}},[]);let h={driver:o("form.driverTitle"),carrier:o("form.carrierTitle"),dispatcher:o("form.dispatcherTitle")},x=e=>{let t=e.trim();return t.length<2?o("form.nameMin"):/^[a-zA-Zа-яА-ЯёЁ\s'-]+$/.test(t)?"":o("form.nameInvalid")},f=e=>{let t=e.replace(/\D/g,"");return t.length<10?o("form.phoneMin"):t.length>15?o("form.phoneMax"):""},b=()=>{let{preferredContact:e,contactValue:t}=l;if(!t)return"Required";if("gmail"===e){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))return o("form.emailInvalid")}else if("telegram"===e&&!t.startsWith("@")&&!t.includes("@"))return"Start with @ or enter username";return""},p=e=>t=>{let r=t.target.value;if(i(t=>({...t,[e]:r})),"firstName"===e){let e=x(r);m(t=>({...t,firstName:e}))}else if("phone"===e){let e=f(r);m(t=>({...t,phone:e}))}else if("contactValue"===e){let e=b();m(t=>({...t,contactValue:e}))}},v=async e=>{e.preventDefault();let r=x(l.firstName),n=f(l.phone),o=b();if(m({firstName:r||void 0,phone:n||void 0,contactValue:o||void 0}),!r&&!n&&!o){d("loading");try{let e=await fetch("/api/leads",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:t,name:l.firstName,phone:l.phone,email:"gmail"===l.preferredContact?l.contactValue:"",message:"".concat(l.driverType," | Contact: ").concat(l.preferredContact," (").concat(l.contactValue,")")})});d(e.ok?"ok":"err")}catch(e){d("err")}}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"fixed inset-0 z-[99999] flex items-center justify-center p-3 sm:p-4",style:{background:"rgba(0,0,0,0.7)",backdropFilter:"blur(8px)"},onClick:e=>e.target===e.currentTarget&&r(),children:(0,n.jsxs)("div",{className:"w-full max-w-md bg-[#0a0a0a] border border-white/[0.15] rounded-2xl overflow-hidden max-h-[85vh] sm:max-h-[90vh] flex flex-col overflow-y-auto",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 sm:px-6 py-3 sm:py-4 border-b border-white/[0.08] flex-shrink-0",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-brand text-xs font-semibold tracking-wide uppercase mb-0.5",children:"APPLICATION"}),(0,n.jsx)("h2",{className:"font-inter font-bold text-xl text-white",children:h[t]}),(0,n.jsx)("div",{className:"w-24 h-0.5 bg-brand mt-2 rounded-full"})]}),(0,n.jsx)("button",{onClick:r,className:"w-8 h-8 rounded-lg bg-white/[0.05] hover:bg-white/[0.1] flex items-center justify-center text-neutral-400 hover:text-white transition-all",children:(0,n.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,n.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,n.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,n.jsx)("div",{className:"p-4 sm:p-6 overflow-y-auto flex-1",children:"ok"===c?(0,n.jsxs)("div",{className:"text-center py-8",children:[(0,n.jsx)("div",{className:"w-16 h-16 bg-brand/10 border border-brand/30 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,n.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--brand)",strokeWidth:"2.5",children:(0,n.jsx)("polyline",{points:"20 6 9 17 4 12"})})}),(0,n.jsx)("h3",{className:"font-inter font-bold text-xl mb-2 text-white",children:o("form.success")}),(0,n.jsx)("p",{className:"text-neutral-400 text-sm mb-6",children:o("form.successDesc")}),(0,n.jsx)("button",{onClick:r,className:"bg-brand text-black font-inter font-bold text-sm px-8 py-3 rounded-xl hover:bg-brand/90 transition-colors",children:o("form.close")})]}):(0,n.jsxs)("form",{onSubmit:v,className:"flex flex-col gap-3",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-xs sm:text-sm text-neutral-400 mb-1.5 font-medium",children:[o("form.firstNameLabel")," ",(0,n.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,n.jsx)("input",{required:!0,value:l.firstName,onChange:p("firstName"),placeholder:"John",className:"w-full bg-[#0a0a0a] border rounded-xl px-3 sm:px-4 py-2.5 text-sm text-white placeholder:text-neutral-500 focus:outline-none transition-colors ".concat(u.firstName?"border-red-500/50 focus:border-red-500":"border-white/[0.12] focus:border-brand/50")}),u.firstName&&(0,n.jsx)("p",{className:"text-red-400 text-xs mt-1",children:u.firstName})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-xs sm:text-sm text-neutral-400 mb-1.5 font-medium",children:[o("form.driverTypeLabel")," ",(0,n.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("select",{value:l.driverType,onCh
1ange:p("driverType"),className:"w-full bg-[#0a0a0a] border border-white/[0.12] rounded-xl px-3 sm:px-4 py-2.5 text-sm text-white appearance-none focus:outline-none focus:border-brand/50 transition-colors cursor-pointer",children:[(0,n.jsx)("option",{value:"owner-operator",children:o("form.ownerOperator")}),(0,n.jsx)("option",{value:"company-driver",children:o("form.companyDriver")}),(0,n.jsx)("option",{value:"dispatcher",children:o("form.dispatcher")})]}),(0,n.jsx)("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none text-neutral-500",children:(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,n.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-xs sm:text-sm text-neutral-400 mb-1.5 font-medium",children:[o("form.preferredContactLabel")," ",(0,n.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("select",{value:l.preferredContact,onChange:p("preferredContact"),className:"w-full bg-[#0a0a0a] border border-white/[0.12] rounded-xl px-3 sm:px-4 py-2.5 text-sm text-white appearance-none focus:outline-none focus:border-brand/50 transition-colors cursor-pointer",children:[(0,n.jsx)("option",{value:"telegram",children:o("form.telegram")}),(0,n.jsx)("option",{value:"whatsapp",children:o("form.whatsapp")}),(0,n.jsx)("option",{value:"gmail",children:o("form.gmail")})]}),(0,n.jsx)("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none text-neutral-500",children:(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,n.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-xs sm:text-sm text-neutral-400 mb-1.5 font-medium",children:[o("form.contactValueLabel")," ",(0,n.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,n.jsx)("input",{required:!0,value:l.contactValue,onChange:p("contactValue"),placeholder:(()=>{switch(l.preferredContact){case"telegram":return"@username";case"whatsapp":return"+1 (555) 000-0000";case"gmail":return"[email protected]"}})(),className:"w-full bg-[#0a0a0a] border rounded-xl px-3 sm:px-4 py-2.5 text-sm text-white placeholder:text-neutral-500 focus:outline-none transition-colors ".concat(u.contactValue?"border-red-500/50 focus:border-red-500":"border-white/[0.12] focus:border-brand/50")}),u.contactValue&&(0,n.jsx)("p",{className:"text-red-400 text-xs mt-1",children:u.contactValue})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-xs sm:text-sm text-neutral-400 mb-1.5 font-medium",children:[o("form.phoneLabel")," ",(0,n.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,n.jsx)("input",{required:!0,value:l.phone,onChange:p("phone"),placeholder:"+1 (555) 000-0000",type:"tel",className:"w-full bg-[#0a0a0a] border rounded-xl px-3 sm:px-4 py-2.5 text-sm text-white placeholder:text-neutral-500 focus:outline-none transition-colors ".concat(u.phone?"border-red-500/50 focus:border-red-500":"border-white/[0.12] focus:border-brand/50")}),u.phone&&(0,n.jsx)("p",{className:"text-red-400 text-xs mt-1",children:u.phone})]}),"err"===c&&(0,n.jsx)("p",{className:"text-red-400 text-xs text-center bg-red-500/10 border border-red-500/20 rounded-lg py-2",children:"Something went wrong — please try again."}),(0,n.jsx)("button",{type:"submit",disabled:"loading"===c,className:"w-full bg-brand text-black font-inter font-bold text-sm py-2.5 sm:py-3 rounded-xl hover:bg-brand/90 transition-all disabled:opacity-60 disabled:cursor-not-allowed mt-2",children:"loading"===c?"Submitting...":o("form.submit")})]})})]})})})}function c(e){let{modalType:t,onClose:r}=e,[o,a]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{a(!0)},[]),o&&t&&"video"!==t)?(0,l.createPortal)((0,n.jsx)(i,{type:t,onClose:r}),document.body):null}function d(){let{modalType:e,closeModal:t}=(0,o.d)();return(0,n.jsx)(c,{modalType:e,onClose:t})}},1551:function(e,t,r){"use strict";r.d(t,{ModalProvider:function(){return l},d:function(){return a}});var n=r(7437),o=r(2265);let s=(0,o.createContext)(void 0);function l(e){let{children:t}=e,[r,l]=(0,o.useState)(null);return(0,n.jsx)(s.Provider,{value:{modalType:r,openModal:e=>l(e),closeModal:()=>l(null)},children:t})}function a(){let e=(0,o.useContext)(s);if(void 0===e)throw Error("useModal must be used within a ModalProvider");return e}},3054:function(){},471:function(e){e.exports={style:{fontFamily:"'__Inter_5c4a2f', '__Inter_Fallback_5c4a2f'",fontStyle:"normal"},className:"__className_5c4a2f",variable:"__variable_5c4a2f"}}},function(e){e.O(0,[546,865,971,23,744],function(){return e(e.s=8345)}),_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.