PageSourceSearch

https://real-udriver.vercel.app/_next/static/chunks/pages/index-33…?dpl=dpl_HuRMAXAou6eHXoDyBfofttZoPMm1

js real-udriver.vercel.app collected 2026-10-03 07:35:41 UTC 11,794 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(6262)}])},6768:function(e,i,t){"use strict";t.d(i,{D:function(){return o}});var n=t(8840),r=t(3351);let o=(e,i,t)=>{let o=(0,r.U)(t).get((null==e?void 0:e.formattedAddress)||"");i(void 0===o?n.P:o)}},6262:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return D}});var n=t(5893),r=t(7294),o=t(9008),l=t.n(o),d=t(9619),a=t(3490),s=t(8573),u=t(6788),p=t(7838),c=()=>{let{udriver:{hide_aria_labels:e}}=(0,p.z)();return(0,n.jsxs)(a.Z,{"aria-labelledby":e?"hero-heading hero-subheading":void 0,children:[(0,n.jsx)(u.Z,{variant:"h1",color:"#FFFFFF",sx:{fontSize:{xs:"40px",sm:"44px",md:"52px"},lineHeight:{xs:"48px",sm:"52px",md:"64px"}},fontWeight:"700",mb:"32px",children:"Go anywhere with Udriver"}),(0,n.jsx)(u.Z,{variant:"h1",color:"#FFFFFF",fontSize:"16px",fontWeight:"normal",lineHeight:"24px",letterSpacing:"0",children:"Request a ride, hop in, and go."})]})},x=t(1287),h=t(492),f=t(8840),m=t(5429),v=t(2190);let g={location:(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","data-baseweb":"icon",children:[(0,n.jsx)("title",{children:"search"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm5-2a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z",fill:"rgb(0, 0, 0)"})]}),destination:(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","data-baseweb":"icon",children:[(0,n.jsx)("title",{children:"search"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 10h-4v4h4v-4ZM7 7v10h10V7H7Z",fill:"rgb(0, 0, 0)"})]}),navigate:(0,n.jsxs)("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",tabIndex:0,role:"button",className:"pe-location-fetch css-bOZeEP",children:[(0,n.jsx)("title",{children:"Navigate right up"}),(0,n.jsx)("path",{d:"M10.5 13.5.5 11 21 3l-8 20.5-2.5-10Z",fill:" rgb(0, 0, 0)"})]}),clear:(0,n.jsxs)("svg",{"data-baseweb":"icon",viewBox:"0 0 24 24","aria-label":"Clear value",role:"button",height:24,width:24,cursor:"pointer",fill:"rgb(0, 0, 0)",color:"rgb(0, 0, 0)",children:[(0,n.jsx)("title",{children:"Clear value"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"})]})},b={backgroundColor:"rgb(255, 255, 255)",borderRadius:"8px",borderColor:"#F3F3F3",borderStyle:"solid",borderWidth:"2px",input:{color:"rgb(0, 0, 0)",fontSize:"16px",fontWeight:"normal",lineHeight:"24px",padding:"10px 36px 10px 4px","&::placeholder":{fontSize:"16px",fontWeight:"normal",lineHeight:"24px",fontFamily:"UberMoveText, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-seri"}},"& .MuiFilledInput-underline:before":{borderBottomColor:"rgb(255, 255, 255)"},"& .MuiFilledInput-underline:after":{borderBottomColor:"rgb(255, 255, 255)"},"& .MuiFilledInput-underline:hover":{borderBottomColor:"rgb(255, 255, 255)"},"& .MuiFilledInput-underline:hover:before":{borderBottomColor:"rgb(255, 255, 255)"},"& .MuiFilledInput-underline:hover:after":{borderBottomColor:"rgb(255, 255, 255)"}};var j=r.memo(e=>{let{placeholder:i,iconType:t,endIconType:o,options:l,onSearchSelection:d,value:s,inputId:u}=e,c=(0,m.TL)(),{focused:j,selection:w,inputValue:C,filteredOptions:y}=(0,m.CG)(e=>e.ui.searchInputs[u]||{focused:!1,selection:s,inputValue:(null==s?void 0:s.name)||"",filteredOptions:l}),{udriver:{hide_aria_labels:Z}}=(0,p.z)(),F=(0,r.useRef)(null);(0,r.useEffect)(()=>{s&&s.id!==w.id&&c((0,v.wu)({inputId:u,data:{selection:s,inputValue:s.name||""}}))},[s,w.id,c,u]),(0,r.useEffect)(()=>(F.current&&F.current.addEventListener("keydown",I),()=>{F.current&&F.current.removeEventListener("keydown",I)}),[y]);let P=(0,r.useMemo)(()=>l.sort((e,i)=>e.name.localeCompare(i.name)),[l]);(0,r.useEffect)(()=>{let e=setTimeout(()=>{let e;if(C){let[i]=C.split(" - "),t=i.toLowerCase();e=P.filter(e=>{var i,n;let r=e.name.toLowerCase().includes(t),o=null===(i=e.address)||void 0===i?void 0:i.toLowerCase().includes(t),l=null===(n=e.formattedAddress)||void 0===n?void 0:n.toLowerCase().includes(t);return r||o||l})}else e=P.slice(0,4);e.length===y.length&&e.every((e,i)=>y[i]&&e.id===y[i].id)||c((0,v.wu)({inputId:u,data:{filteredOptions:e}}))},150);return()=>clearTimeout(e)},[C,P,c,u,y]);let I=e=>{if("Enter"===e.key&&y.length>0){let i=y[0];i.id!==w.id&&(c((0,v.wu)({inputId:u,data:{selection:i,inputValue:i.name||""}})),d(i)),e.preventDefault()}},T=()=>{C?y.find(e=>e.name===C)?c((0,v.wu)({inputId:u,data:{focused:!1}})):c((0,v.wu)({inputId:u,data:{focused:!1,inputValue:w.name}})):w.id!==f.P.id?(c((0,v.wu)({inputId:u,data:{focused:!1,selection:f.P}})),d(f.P)):c((0,v.wu)({inputId:u,data:{focused:!1}}))},L=e=>{let i=e.target.value;i===C||(c((0,v.wu)({inputId:u,data:{inputValue:i,...""===i&&{selection:f.P}}})),i||d(f.P))};return(0,n.jsx)(x.Z,{options:[...y].sort((e,i)=>e.name.localeCompare(i.name)),getOptionLabel:e=>(null==e?void 0:e.name)?(null==e?void 0:e.name)+" - "+(null==e?void 0:e.address):"",getOptionKey:e=>e.identifier,value:w,onChange:(e,i)=>{let t=i||f.P;t.id!==w.id&&(c((0,v.wu)({inputId:u,data:{selection:t,inputValue:t.name||""}})),d(t))},inputValue:C,onInputChange:(e,i)=>{i!==C&&e&&"click"===e.type&&c((0,v.wu)({inputId:u,data:{inputValue:i}}
1))},noOptionsText:"No results",renderInput:e=>{var r;return(0,n.jsx)(h.Z,{...e,placeholder:i,variant:"filled",fullWidth:!0,inputRef:F,"aria-label":Z?"Location search input":void 0,sx:{...b,"& .MuiInputBase-root":{paddingTop:"6px",paddingRight:"12px !important"}},InputProps:{...e.InputProps,startAdornment:(0,n.jsx)(a.Z,{display:"flex",children:g[t]}),endAdornment:(null==w?void 0:null===(r=w.address)||void 0===r?void 0:r.length)>0?(0,n.jsx)(a.Z,{sx:{display:w&&j?"flex":"none",cursor:w&&j?"pointer":"inherit"},onClick:()=>{w.id!==f.P.id&&(c((0,v.wu)({inputId:u,data:{selection:f.P,inputValue:""}})),d(f.P))},children:g.clear}):o?(0,n.jsx)(a.Z,{display:"flex",children:g[o]}):null},onFocus:()=>c((0,v.wu)({inputId:u,data:{focused:!0}})),onBlur:T,onChange:L})}})}),w=t(6768),C=t(3351),y=t(4357),Z=()=>{let e=(0,m.TL)(),{pickupLocation:i,dropoffLocation:t}=(0,m.CG)(e=>e.ride),{udriver:{location_preset:r,hide_aria_labels:o}}=(0,p.z)(),l=Array.from((0,C.U)(r).values());return(0,n.jsxs)(a.Z,{display:"flex",flexDirection:"column",gap:"12px",mt:"16px",sx:{maxWidth:{xs:"80%",sm:"100%",md:"396px"},width:{xs:"80%",sm:"100%",md:"auto"}},"aria-live":o?"polite":void 0,children:[(0,n.jsx)(j,{inputId:"pickup-location",placeholder:"Enter Location",iconType:"location",endIconType:"navigate",value:i,options:l.filter(e=>e.identifier!==t.identifier),onSearchSelection:i=>{(0,w.D)(i,i=>e((0,y.PK)(i)),r)},"aria-label":o?"Search from location":void 0},"search-input-from-location"),(0,n.jsx)(j,{inputId:"dropoff-location",placeholder:"Enter Destination",iconType:"destination",value:t,options:l.filter(e=>e.identifier!==i.identifier),onSearchSelection:i=>{(0,w.D)(i,i=>e((0,y.tj)(i)),r)},"aria-label":o?"Search destination":void 0},"search-input-destination")]})},F=t(4677),P=t(1664),I=t.n(P),T=()=>{let e=(0,m.TL)(),{pickupLocation:i,dropoffLocation:t}=(0,m.CG)(e=>e.ride),{udriver:{hide_aria_labels:r}}=(0,p.z)();return(0,n.jsx)(a.Z,{mt:"16px","aria-live":r?"polite":void 0,children:(0,n.jsx)(I(),{href:"/ride/trip",passHref:!0,children:(0,n.jsx)(F.Z,{onClick:()=>{i.address&&t.address&&e((0,y.Pm)(!0))},"aria-label":r?"See prices for your ride":void 0,sx:{backgroundColor:"#FFFFFF",maxWidth:"fit-content",color:"#000000",cursor:"pointer",display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center",borderRadius:"8px",borderStyle:"none",borderWidth:0,outline:"none",boxShadow:"none",textDecoration:"none",transition:"background 200ms cubic-bezier(0, 0, 1, 1)",marginTop:"12px",padding:"14px 25px","&:hover":{backgroundColor:"#f0f0f0"}},children:(0,n.jsx)(u.Z,{fontSize:"16px",fontWeight:"500",lineHeight:"20px",textTransform:"none",children:"See prices"})})})})},L=()=>{let{udriver:{hide_aria_labels:e=!1}}=(0,p.z)();return(0,n.jsx)(s.ZP,{display:"grid",alignSelf:"center",order:"1",width:"100%",sx:{gridColumn:{xs:"1 / span 12",sm:"1 / span 12",md:"1 / span 5"}},"aria-label":e?"Hero Section":void 0,children:(0,n.jsxs)(a.Z,{display:"flex",flexDirection:"column",justifyContent:"space-between",children:[(0,n.jsx)(c,{}),(0,n.jsx)(Z,{}),(0,n.jsx)(T,{})]})})},S=t(9755),k=t.n(S),R=()=>{let{udriver:{hide_aria_labels:e}}=(0,p.z)();return(0,n.jsx)(s.ZP,{display:"grid",order:{xs:"2",sm:"2",md:"2"},width:"100%",gridColumn:{xs:"1 / span 12",sm:"1 / span 12",md:"7 / span 6"},position:"relative",sx:{display:{xs:"none",sm:"none",md:"block"},height:{xs:"25vh",sm:"30vh",md:"80vh"},maxHeight:{xs:"200px",sm:"250px",md:"700px"},minHeight:{xs:"150px",sm:"180px",md:"400px"}},"aria-label":e?"Hero Image Container":void 0,children:(0,n.jsx)(k(),{src:"/home-page-udriver.png",alt:"Udriver Ride Image",layout:"fill",objectFit:"contain",style:{width:"100%",height:"100%"}})})},E=()=>{let{udriver:{hide_aria_labels:e}}=(0,p.z)();return(0,n.jsx)(a.Z,{component:"section","aria-labelledby":e?"hero-heading hero-subheading":void 0,display:"flex",minHeight:"100vh",height:"100vh",margin:"0 auto",padding:"0",position:"relative",width:"100%",sx:{backgroundColor:"#000000"},children:(0,n.jsx)(a.Z,{width:"100%",mx:"auto",maxWidth:"1280px",py:"0",children:(0,n.jsx)(a.Z,{sx:{p:{xs:"24px",sm:"32px",md:"64px"},mt:{xs:10,md:0}},bgcolor:"transparent",color:"#ffffff",children:(0,n.jsxs)(s.ZP,{display:"grid",height:"100%",
1justifyItems:"inherit",gridTemplateColumns:"repeat(12, 1fr)",rowGap:"36px",columnGap:"36px",children:[(0,n.jsx)(L,{}),(0,n.jsx)(R,{})]})})})})},z=t(1163),M=t(5453),H=t(8745),_=t(2635),B=t(4723),W=()=>{var e;let i=(0,m.TL)(),{showBanner:t,showMobileAlert:o}=(0,m.CG)(e=>{var i,t;return null!==(t=null===(i=e.ui)||void 0===i?void 0:i.notifications)&&void 0!==t?t:{showBanner:!1,showMobileAlert:!1}}),l=(0,H.Z)(),d=(0,_.Z)(l.breakpoints.down("sm")),a=(0,p.z)();return((0,r.useEffect)(()=>{let e=setTimeout(()=>i((0,v.P9)(!1)),1e4);return()=>clearTimeout(e)},[i]),(0,r.useEffect)(()=>{let e=setTimeout(()=>i((0,v.J_)(!1)),1e4);return()=>clearTimeout(e)},[i]),null==a?void 0:null===(e=a.udriver)||void 0===e?void 0:e.removePopup)?null:(0,n.jsxs)(n.Fragment,{children:[d&&o&&(0,n.jsx)(B.Z,{severity:"warning",onClose:()=>i((0,v.J_)(!1)),sx:{position:"fixed",top:0,left:0,right:0,zIndex:9999,borderRadius:0},children:"For the best experience, please use a desktop or laptop computer."}),t&&(0,n.jsx)(B.Z,{severity:"info",onClose:()=>i((0,v.P9)(!1)),sx:{position:"fixed",top:d&&o?48:0,left:0,right:0,zIndex:9998,borderRadius:0},children:"This website is for educational and evaluation purposes only. It is not affiliated with any real company or service."})]})},D=()=>{let e=(0,z.useRouter)(),[i,t]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{e.isReady&&t(!1)},[e.isReady]),i)?(0,n.jsx)(M.Z,{message:"Udriver..."}):(0,n.jsxs)(a.Z,{component:"main",children:[(0,n.jsx)(l(),{children:(0,n.jsx)("title",{children:"Earn Money by Driving or Get a Ride Now | Udriver"})}),(0,n.jsx)(W,{}),(0,n.jsx)(d.Z,{}),(0,n.jsx)(E,{})]})}}},function(e){e.O(0,[142,664,735,675,978,886,291,918,573,755,619,888,774,179],function(){return e(e.s=8312)}),_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.