PageSourceSearch

https://bushride.com/_next/static/chunks/pages/publish/car-5b35676433a4cc65.js

js bushride.com collected 2026-10-02 00:29:40 UTC 7,836 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7861],{76606:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/publish/car",function(){return a(88122)}])},64711:function(e,t,a){"use strict";a.d(t,{Z:function(){return p}});var r=a(85893),i=a(11163),s=a(67294),n=a(9008),l=a.n(n),d=a(75063),c=a(82210),o=a(42429),u=a(65820);let h={hidden:{opacity:0,x:0,y:0},enter:{opacity:1,x:0,y:0},exit:{opacity:0,x:0,y:0}};function p(e){let{children:t}=e,a=(0,i.useRouter)(),[n,p]=(0,s.useState)(0),[m,x]=(0,s.useState)(0),[v,g]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{a.isReady&&(p(0),x(0),g(!1),("/publish/departure"==a.pathname||"/publish/departure/precise"==a.pathname)&&(p(0),x(11.11111111111111),g(!0)),("/publish/arrival"==a.pathname||"/publish/arrival/precise"==a.pathname)&&(p(11.11111111111111),x(22.22222222222222),g(!0)),"/publish/departure/date"==a.pathname&&(p(22.22222222222222),x(33.33333333333333),g(!0)),"/publish/departure/time"==a.pathname&&(p(33.33333333333333),x(44.44444444444444),g(!0)),"/publish/car"==a.pathname&&(p(44.44444444444444),x(50),g(!0)),"/publish/comfort"==a.pathname&&(p(44.44444444444444),x(55.55555555555556),g(!0)),"/publish/seats"==a.pathname&&(p(55.55555555555556),x(66.66666666666666),g(!0)),"/publish/price"==a.pathname&&(p(66.66666666666666),x(77.77777777777779),g(!0)),"/publish/pets"==a.pathname&&(p(77.77777777777779),x(88.88888888888889),g(!0)),"/publish/description"==a.pathname&&(p(88.88888888888889),x(100),g(!0)))},[a.isReady,a.query]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("meta",{property:"og:image",content:"https://".concat("ea.cdn.bushride.com","/bushride-og.png")}),(0,r.jsx)("meta",{name:"apple-itunes-app",content:"app-id=6459408637"})]}),(0,r.jsx)(d.Z,{isFocusMode:!0}),v?(0,r.jsx)("div",{className:"w-full overflow-hidden bg-gray-200",children:(0,r.jsx)(o.E.div,{initial:{width:"".concat(n,"%")},animate:{width:"".concat(m,"%")},transition:{duration:.5},className:"h-1 rounded-r-full bg-bushride-primary-50"})}):"",(0,r.jsx)(u.M,{mode:"wait",initial:!1,onExitComplete:()=>window.scrollTo(0,0),children:(0,r.jsx)(o.E.main,{variants:h,initial:"hidden",animate:"enter",exit:"exit",transition:{type:"linear",opacity:{duration:.1}},children:t},a.asPath)}),(0,r.jsx)(c.Z,{isFocusMode:!0})]})}},88122:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return f}});var r=a(85893),i=a(9008),s=a.n(i),n=a(64711),l=a(41664),d=a.n(l),c=a(11163),o=a(67294),u=a(1545),h=a(30749),p=a(61076);function m(e){let{pageHeading:t,children:a}=e,i=(0,c.useRouter)(),[s,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{i.isReady&&(i.query,"/book/"==i.pathname.substring(0,6)&&"/book/pending/"!=i.pathname.substring(0,14)&&n(!0))},[i.isReady]),(0,r.jsx)("div",{className:(0,p.Z)("bg-slate-100 ",s?"min-h-[calc(100vh-5rem)] sm:min-h-[calc(100vh-5.5rem)]":"min-h-[calc(100vh-5.25rem)] sm:min-h-[calc(100vh-5.75rem)]"),children:(0,r.jsx)("div",{className:"max-w-xl mx-auto",children:(0,r.jsxs)("div",{className:"flex flex-col justify-center items-center py-12",children:[(0,r.jsx)("h1",{className:"w-full px-4 sm:px-6 lg:px-8 text-3xl mb-6 mx-auto font-bold tracking-tight md:text-center md:text-4xl text-gray-600",children:t}),a]})})})}var x=a(54763),v=a(77426),g=a(61466);let y=[{id:1,hasChevron:!0,placeholderTitleWidth:"w-28",chevronWidth:"w-12",animationDelay:""},{id:2,hasChevron:!0,placeholderTitleWidth:"w-20",chevronWidth:"w-8",animationDelay:"animation-delay-[200ms]"},{id:3,hasChevron:!0,placeholderTitleWidth:"w-24",chevronWidth:"w-10",animationDelay:"animation-delay-[400ms]"}];function b(e){let{tripMode:t,pageHeading:a}=e,i=(0,c.useRouter)(),{userPrivate:s,setUserPrivate:n}=(0,o.useContext)(u.u);return(0,o.useEffect)(()=>{i.isReady&&(async()=>{let e;if(0==Object.keys(s).length){let t,a,r;try{a=await x.g.currentAuthenticatedUser({bypassCache:!1})}catch(e){console.error(e),i.push({pathname:"/login",query:{redirect:i.asPath}});return}t=a.signInUserSession.idToken.jwtToken;try{let i={id:a.signInUserSession.idToken.payload.sub,consistentRead:!1};if(r=await v.b.post("userapi","/get",{headers:{Authorization:t},body:i}),null==r.data.getUser)return;let s=r.data.getUser.reviewsReceivedOneStarCount+r.data.getUser.reviewsReceivedTwoStarCount+r.data.getUser.reviewsReceivedThreeStarCount+r.data.getUser.reviewsReceivedFourStarCount+r.data.getUser.reviewsReceivedFiveStarCount,l=null;0!=s&&(l=r.data.getUser.reviewsReceivedOneStarCount/s*1+r.data.getUser.reviewsReceivedTwoStarCount/s*2+r.data.getUser.reviewsReceivedThreeStarCount/s*3+r.data.getUser.reviewsReceivedFourStarCount/s*4+r.data.getUser.reviewsReceivedFiveStarCount/s*5);let d=r.data.getUser.ridesCompletedAsDriverCount+r.data.getUser.ridesCompletedAsPassengerCount;e={...r.data.getUser,totalReviews:s,averageRating:l,totalTrips:d,...null!=r.data.getUser.picture&&""!=r.data.getUser.picture&&{picture:"".concat(g.Z.bushride_assets.profile_picture_live_bucket.endpoint,"/").concat(a.signInUserSession.idToken.payload.sub,".jpg?").concat(Date.now())}},n(e)}catch(e){console.error(e)}}else e=s;0==Object.keys(e.vehicles).length&&("departure"==t?i.push({pathname:"/publish/comfort",query:{...i.query}}):"return"==t?i.push({pathname:"/rides/return/price/".concat(i.query.rideid),query:{...i.query}}):"duplicate"==t&&i.push({pathname:"/rides/duplicate/price/".concat(i.query.rideid),query:{...i.query}}))})()},[i.isReady]),(0,r.jsx)(m,{pageHeading:a,children:(0,r.jsx)("div",{className:"max-w-xl w-full",children:(0,r.jsx)("ul",{role:"list",className:"",children:0!=Object.keys(s).length?Object.keys(s.vehicles).map(e=>(0,r.jsx)("li",{className:"border-slate-300 border-b last:border-0",children:(0,r.jsx)(d(),{href:{pathname:"departure"==t?"/publish/comfort":"return"==t?"/rides/return/price/".concat(i.query.rideid):"duplicate"==t?"/rides/
1duplicate/price/".concat(i.query.rideid):"",query:{...i.query,vehicle_id:e}},passHref:!0,children:(0,r.jsxs)("div",{className:"flex items-center px-4 py-4 sm:px-6 focus:bg-bushride-primary-500 hover:bg-slate-200",children:[(0,r.jsx)("div",{className:"flex min-w-0 flex-1 items-center",children:(0,r.jsx)("div",{className:"min-w-0 flex-1 md:gap-4",children:(0,r.jsx)("div",{children:(0,r.jsxs)("h3",{className:"text-base font-medium text-gray-600 uppercase",children:[s.vehicles[e].make," ",s.vehicles[e].model]})})})}),(0,r.jsx)("div",{children:(0,r.jsx)(h.Z,{className:"h-6 w-6 text-gray-400","aria-hidden":"true"})})]})})},e)):y.map(e=>(0,r.jsx)("li",{className:"border-slate-300 border-b last:border-0",children:(0,r.jsxs)("div",{className:"mx-4 sm:mx-6 flex flex-row",children:[(0,r.jsx)("div",{className:"flex-grow",children:(0,r.jsx)("div",{className:"my-6 h-2.5 bg-slate-200 ".concat(e.placeholderTitleWidth," rounded-full animate-wave ").concat(e.animationDelay)})}),e.hasChevron?(0,r.jsx)("div",{className:"my-6 h-2.5 bg-slate-200 ".concat(e.chevronWidth," rounded-full animate-wave ").concat(e.animationDelay)}):""]})},e.id))})})})}function f(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s(),{children:[(0,r.jsx)("title",{children:"Car selection | Bushride"}),(0,r.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,r.jsx)(b,{tripMode:"departure",pageHeading:"What car will you be driving?"})]})}f.getLayout=function(e){return(0,r.jsx)(n.Z,{children:e})}},30749:function(e,t,a){"use strict";var r=a(67294);let i=r.forwardRef(function(e,t){let{title:a,titleId:i,...s}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":i},s),a?r.createElement("title",{id:i},a):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))});t.Z=i}},function(e){e.O(0,[4883,9970,8574,2888,9774,179],function(){return e(e.s=76606)}),_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.