PageSourceSearch

https://www.avis.com/_next/_v/2.9.2.s15.31/_next/static/chunks/3403.112b30623a3bc6eb.js

js avis.com collected 2026-09-24 08:43:55 UTC 5,284 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3403],{20874:(e,t,a)=>{a.d(t,{G:()=>m});var i=a(47388),r=a(61872),n=a(59917),o=a(67297),l=a(81966),s=a(19690),c=a(49507);let d=async(e,t,a)=>{if(!(0,s.r)(t))return null;try{let i=new URLSearchParams({"context.locale":(0,c.M)(e),mnemonic:t}),r=await a.refdata(`/location/station?${i}`,{useBffOrigin:!0});if(!r?.address)return null;return{...r.address,isTruck:r.isTruck??!1}}catch{return null}};var p=a(52886),u=a(35355);let f=async(e,t,a,i,r,n)=>{try{let[o,l]=a.split("_"),s=l?.toUpperCase()??"US",c=`${o}-${s}`,d=async e=>{let t;if(!e||0===e.length)return[];let a=new URLSearchParams({...i&&{locationMnemonic:i},vehicleGroups:JSON.stringify((e=>{let t=[];for(let a of e)for(let e of a.carList){let a=e.code.length>1?e.code.charAt(0):"_",i=e.code.length>1?[e.code.slice(1)]:[e.code.charAt(0)];t.push({vehicleCategoryCode:a,subVehicleGroupCode:i})}return t})(e)),"context.locale":c,"context.domainCountry":s}),o=await n.refdata(`/fleet?${a.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}});return t=l??"US",e.map(e=>{let a=e.carList.map(e=>{let a=o.find(t=>(t.vehicleType.includes("_")?t.vehicleType.replaceAll("_",""):t.vehicleType)===e.code),i=a?.images?.[0]?.path&&a.images[0].path.trim().length>0?a.images:[{path:u.default}];return{...a?{...a}:{},images:i,description:e.description??a?.description,link:(0,p.o)(r,t,e.code),carName:a?.description??e.description,code:e.code,group:a?.group??e.code,id:a?.id}});return{...e,carList:a}})};return i&&t[0]?.carList.length?await d(t):await d(e)}catch{return[]}},h=async(e,t)=>{try{if(!e)return console.error("No mnemonic provided. Cannot fetch recommended vehicles data."),[];let a=await t.recommendations(e);return a?.data?.recommendationsList.items[0]?.recommendedVehicleJson||[]}catch(e){return[]}};async function g({aemLocationService:e,bffClient:t,locationId:a,vehicleDetailsNavigationLink:i,country:r,carTypesList:n,locale:o}){let l=await h(a,e),s=[];if(l&&a){let e=l.slice(0,3);s.push({carList:e.map(e=>({code:e?.vehicleGroup,group:"",id:"",description:e?.groupLabel||"",link:(0,p.o)(i||"",r,e?.vehicleGroup)}))})}let c=[],d=n.length>1&&0===s.length,u=(c??[]).length>0?c:n;return{fleetCarList:await f(u,s,o,a??"",i,t),hasVehicles:c,hasTabs:d}}let m=({carTypesList:e=[],locale:t,brand:a,i18n:s,styleParts:c={},locationId:p,pageContext:u,headline:f,description:h})=>{let{country:m,navigationLinks:x,config:{bff:b}}=u,y=(0,r.useMemo)(()=>(0,o.ae)(b,t,m),[b,t,m]),v=(0,n.useLocationService)(),[C,S]=(0,r.useState)(null);(0,r.useEffect)(()=>{!async function(){S(await d(t,p??"",y))}()},[y,t,p]);let[T,w]=(0,r.useState)(null);return((0,r.useEffect)(()=>{!async function(){w(await g({aemLocationService:v,bffClient:y,locationId:p,vehicleDetailsNavigationLink:x?.vehicleDetails,country:m,carTypesList:e,locale:t}))}()},[v,y,e,m,t,p,x?.vehicleDetails]),T)?(0,i.jsx)(l.Fleet,{brand:a,locationId:p,location:C,hasVehicles:T.hasVehicles,fleetCarsData:T.fleetCarList,locale:t,carTypesList:e,hasTabs:T.hasTabs,i18n:s,styleParts:c,pageContext:u,headline:f,description:h}):null}},43403:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var i=a(47388),r=a(52949);a(61872);var n=a(27903),o=a(20874),l=a(55494);let s={fleetContainer:{backgroundColor:"#F2F5FA",borderRadius:"32px",padding:{xs:"40px 16px",md:"80px 56px"}},fleetTitleContainer:{padding:{xs:0,md:"0 48px"},width:{xs:"100$",sm:"50%"},margin:"0 auto",gap:"24px"},fleetTitle:{fontSize:{xs:"48px",md:"60px"},lineHeight:1,fontWeight:700},fleetSubtitle:{fontSize:"20px",color:"#494E57"},fleetTabContainer:{padding:"4px 8px",gap:"8px",marginTop:{xs:"24px",md:"32px"},backgroundColor:"#fff",borderRadius:"16px","&.meet-the-fleet":{".MuiTabScrollButton-root.Mui-disabled":{display:"none"},".MuiTabs-flexContainer":{gap:"8px",".MuiTab-root":{color:"#000",borderRadius:"24px",transition:".1s ease-in background-color, color","&.Mui-selected":{backgroundColor:"#C9D9F0",color:"#000"}}},".MuiTabs-indicator":{display:"none"}}},fleetTabTitle:{fontSize:"14px",lineHeight:"15px",fontWeight:700,textTransform:"capitalize",fontFamily:l.QU},carCode:{fontSize:"26px",lineHeight:"32px",fontWeight:700,textTransform:"capitalize",fontFamily:l.QU},carDescription:{fontSize:"15px",lineHeight:"24px",fontFamily:l.QU},carDetails:{color:"#736D6D",fontSize:"13px",fontFamily:'"Budget Sans", sans-serif'},carInfoButton:{borderRadius:"24px",border:"1px solid #00285F !important",cursor:"pointer"},carReserve:{borderRadius:"24px",backgroundColor:"#00285F",color:"#fff",cursor:"pointer "},passengerDetails:{fontFamily:l.QU}},c=({aemAttributes:e,model:t,config:a,pageContext:l})=>{let{locale:c,brand:d,locationId:p}=a,u={...t,i18n:{...t.i18n,"fleet.section.title.favoriteState":(0,n.S)(t.i18n["fleet.section.title.favoriteState"]??"")}};return(0,i.jsx)(r.default,{...e,"data-aue-type":"component",sx:{position:"relative",width:"100%"},children:(0,i.jsx)(o.G,{...u,locale:c??"en-US",brand:d,styleParts:s,locationId:p,pageContext:l})})}},52886:(e,t,a)=>{a.d(t,{o:()=>i});let i=(e,t,a)=>`${e}/${t}/${a?.toLocaleLowerCase()}`},55494:(e,t,a)=>{a.d(t,{QU:()=>n,UN:()=>o,bO:()=>i,zf:()=>r});let i="--abg-font-primary",r="--abg-font-headline",n=`var(${i}), sans-serif`,o=`var(${r}), sans-serif`}}]);
2//# sourceMappingURL=3403.112b30623a3bc6eb.js.map

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.