1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7125],{4273:(e,t,i)=>{i.d(t,{$m:()=>p,nW:()=>u});var n=i(37876),r=i(14232),a=i(46483),o=i.n(a),l=i(50046),s=i.n(l),c=i(41946),d=i.n(c);let x={search:"",searchType:i(44898).J.NONE,isFullPage:!1,questions:[]},h=r.createContext(null),u=()=>{let e=(0,r.useContext)(h);if(!e)throw Error('"useFAQContext" was called without "FAQContext" Provider.');return e},m=(e,t)=>{switch(t.type){case"update-search":return{...e,search:t.payload.search};case"add-question":return{...e,questions:o()([...e.questions,t.payload],d())};case"remove-question":return{...e,questions:e.questions.filter(e=>e.question!==t.payload.question&&e.answer!==t.payload.answer)};default:return e}},p=({children:e,defaultValues:t})=>{let i=(0,r.useReducer)(m,s()({},x,t));return(0,n.jsx)(h.Provider,{value:i,children:e})}},6935:(e,t,i)=>{i.d(t,{M:()=>n});let n=i(14232).createContext({})},9136:(e,t,i)=>{i.d(t,{Ay:()=>_});var n=i(37876),r=i(15702),a=i(14232),o=i(87856),l=i(61850),s=i(78203),c=i(15412),d=i(30915),x=i.n(d),h=i(26075),u=i(30180),m=i(89099),p=i(32019);let g=({costEstimates:e=[],start:t,end:i,isLink:o=!1,rideType:s=p.Wv})=>{let c=(0,m.useRouter)(),d=(0,a.useMemo)(()=>new h.Ay().browserSessionId,[]),g=()=>{let n=(({start:e,end:t,rideType:i,browserSessionId:n,asPath:r,urlParams:a})=>{let o={pcrn:a.keyword,psn:`${p.sb}${r}`},l={cid:n,ride_id:i,pickup_lat:e.lat,pickup_long:e.lng,dest_lat:t.lat,dest_long:t.lng},s=x().stringify({...o,...l});return`${p.NZ}&${s}`})({asPath:c.asPath,urlParams:c.query,costEstimates:e,start:t,end:i,isLink:o,rideType:s,browserSessionId:d});(()=>{let{eventName:n}=p.PU,r=e?e.reduce((e,t)=>{let{rideType:i,currency:n,estimatedCostCentsMin:r,estimatedCostCentsMax:a}=t;return e[i]={estimatedCostCentsMin:r,estimatedCostCentsMax:a,currency:n},e},{}):{},{lyft:a={}}=r,o=r[s]||{},l={eventName:n,path:c.asPath,fareEstimateCentsStandardMin:a.estimatedCostCentsMin,fareEstimateCentsStandardMax:a.estimatedCostCentsMax,origin:t.input,originLat:t.lat,originLng:t.lng,destination:i.input,destinationLat:i.lat,destinationLng:i.lng,currency:a.currency,rideType:s,rideAmountCentsMin:o.estimatedCostCentsMin,rideAmountCentsMax:o.estimatedCostCentsMax};u.CC.send(l)})(),document.location.href=n};return o?(0,n.jsx)(l.fu,{icon:r.hIg,iconPosition:"end",onClick:g,children:p.Zt}):(0,n.jsx)(l.gT,{onClick:g,children:p.Zt})},f=o.Ay.div.withConfig({componentId:"sc-37d3a5b7-0"})(["display:flex;justify-content:flex-end;"]),y=({title:e,items:t=[],pricingBreakdown:i,bookingLink:r})=>{let{link:o,text:s}=i,c=[{id:"heading",accessor:"heading",renderCell:({value:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Yx,{vertical:!0,unit:"two",unitM:"zero"}),(0,n.jsx)(l.pT,{textStyle:"headlineW1",children:e}),(0,n.jsx)(l.Yx,{vertical:!0,unit:"one",unitM:"zero"})]})},{id:"description",accessor:"description"},{id:"info",accessor:"info"},{id:"rideType",accessor:"rideType",renderCell:({value:e})=>(0,n.jsx)(n.Fragment,{children:a.cloneElement(r,{value:e})})}];return(0,n.jsxs)("div",{children:[e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.pT,{"data-testid":"cost-estimates-title",tagName:"h3",textStyle:"titleW1",children:e}),(0,n.jsx)(l.Yx,{vertical:!0,unit:"three",unitM:"four"})]}),(0,n.jsx)(l.sZ,{tableStyles:{innerBorder:"rows",outerBorder:!1},compact:!0,columns:c,data:t}),o&&s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Yx,{vertical:!0,unit:"two"}),(0,n.jsx)(f,{children:(0,n.jsx)(l.pT,{"data-testid":"pricing-breakdown",tagName:"a",href:o,textStyle:"labelW1Heavy",children:s})})]})]})};var j=i(89509),w=i(52516),v=i(79996);function b({rideType:e},{rideType:t}){let i=v.xF.indexOf(e),n=v.xF.indexOf(t);return -1===i?1:-1===n||i<n?-1:+(i>n)}var C=i(71030),k=i(21809),S=i(9963),A=i(31475);let I=o.I4.div.withConfig({componentId:"sc-91df636c-0"})(["@media screen and (min-width:","px){display:none;}"],l.GL.m),T=o.I4.div.withConfig({componentId:"sc-91df636c-1"})(["height:25rem;@media screen and (min-width:","px){height:31rem;}"],l.GL.m),L=o.I4.div.withConfig({componentId:"sc-91df636c-2"})(["@media screen and (min-width:","px){text-align:center;}"],l.GL.m),E=o.I4.div.withConfig({componentId:"sc-91df636c-3"})(["width:100%;small{color:",";}"],l.ml.red60.color),$=o.I4.div.withConfig({componentId:"sc-91df636c-4"})(["width:100%;@media screen and (min-width:","px){width:70%;}"],l.GL.m),M=(0,o.I4)($).withConfig({componentId:"sc-91df636c-5"})(["",""],({$shouldHide:e})=>e&&` 2 @media screen and (max-width: ${l.GL.m-1}px) { 3 display: none; 4 } 5 `),P=o.I4.div.withConfig({componentId:"sc-91df636c-6"})(["background-color:",";padding:0.5rem;width:100%;"],l.ml.gray5.color),N=o.I4.div.withConfig({componentId:"sc-91df636c-7"})(["margin-left:0.25rem;"]),W=e=>`/pricing/${e}`,R=({costData:e,origin:t,destination:i,regionCode:o,regionSlug:d,isMapInitiallyVisible:x,header:h,showFareEstimatesBeforeMap:u=!1,isRideBookingEnabled:m=!1})=>{let p,f,{fareEstimate:A}=(0,a.useContext)(C.$m),[$,R]=(0,a.useState)(),[_,F]=(0,a.useState)(),[Y,G]=(0,a.useState)(),[O,U]=(0,a.useState)(!1),[D,H]=(0,a.useState)(v.WL),[z,B]=(0,a.useState)(v.WL),[V,q]=(0,a.useState)(!1),[J,Q]=(0,a.useState)(),[
5K,X]=(0,a.useState)(!1),Z=(0,l.al)({initialValue:!1,breakpoint:l.GL.m}),ee=e=>{var t;let i,n=(i=(t=e.data).costEstimates.filter(e=>e.isValidEstimate),{...t,filteredCostEstimates:i}),{resultsTableCopy:r}=A||{};if(!r||"object"!=typeof r)return e;let a=$||o,l=function(e,t={}){let i;return e?((i=[...e.costEstimates]).sort(b),i).map(e=>(function(e,t){let i,n,{displayName:r,rideType:a,estimatedDurationSeconds:o,estimatedCostCentsMin:l,estimatedCostCentsMax:s}=e,c=(r||"").replace("Lyft ","");return{heading:c,description:t[a]||"",info:`${i=parseFloat(`${l/100}`).toFixed(0),i===(n=parseFloat(`${s/100}`).toFixed(0))?`$${n}`:`$${i}-${n}`} | ${function(e,t){let{minutesAbbrv:i="",hourAbbrv:n="",hoursAbbrv:r=""}=t;if(e<v.MA){let t=parseFloat(`${e/60}`).toFixed(0);return`${t}${i}`}let a=parseInt(`${e/v.MA}`,10),o=parseFloat(`${e%v.MA/60}`).toFixed(0);return`${a}${1===a?n:r} ${o}${i}`}(o,t)}`,rideType:a}})(e,t)):[]}(n,r),s=a&&W(a),c=r.fareDetails||"";return F(n.costEstimates),G(l),U(l.length>0),q(!0),Q({link:s,text:c}),X(!1),e};(0,a.useEffect)(()=>{t&&H({input:t.name,lat:t.lat,lng:t.lng,validity:{valid:!0}}),i&&B({input:i.name,lat:i.lat,lng:i.lng,validity:{valid:!0}}),e&&t&&i&&o&&(R(o),ee({data:e}))},[]);let et=async(e,t)=>{let i=t?.suggestionValue;if(i){let{lat:e,lng:t}=await (0,k.fx)(i);H(i=>({...i,lat:e,lng:t})),(e=>{let{slug:t,code:i}=(0,w.Q$)(e)||{};if(!t){let{errorMessages:e}=A;return Promise.reject(Error(e[v.LM]))}return R(i)})(await (0,k.Tl)({lat:e,lng:t}))}},ei=async(e,t)=>{let i=t?.suggestionValue;if(i){let{lat:e,lng:t}=await (0,k.fx)(i);B(i=>({...i,lat:e,lng:t}))}return null},en=async()=>{ee(await k.Ay.request(v.yE,{params:{start_lat:D.lat,start_lng:D.lng,end_lat:z.lat,end_lng:z.lng}}))},er=({legalCopy:e,termsOfService:t,priceDetailsText:i})=>(0,n.jsx)(j.A,{content:((e="",t="",i="",n="region-disclaimers")=>e.replace("{terms}",`[${t}](${void 0!==d?v.tf[d]:v.WE})`).replace("{priceDetails}",`[${i}](#${n})`))(e,t,i),textStyleOverride:"bodyW3"}),ea=(e,t)=>{let i=m&&(0,n.jsx)(g,{start:D,end:z,costEstimates:_,isLink:!0});return O&&(0,n.jsxs)("div",{children:[(0,n.jsx)(l.Yx,{vertical:!0,unit:"eight"}),i&&Y&&J&&(0,n.jsx)(y,{"data-testid":"cost-estimates",title:t,items:Y,pricingBreakdown:J,bookingLink:i}),m&&(0,n.jsxs)(L,{children:[(0,n.jsx)(l.Yx,{vertical:!0,unit:"four"}),(0,n.jsx)(g,{start:D,end:z,costEstimates:_})]}),(0,n.jsxs)(I,{children:[(0,n.jsx)(l.Yx,{vertical:!0,unit:"five",unitM:"eight"}),er(e)]})]})},eo=e=>{13===e.which&&e.preventDefault()};if(!A||"object"!=typeof A)return(0,n.jsx)("div",{"data-testid":"base-fare-estimate"});
5let{copy:el,resultsTableCopy:es,errorMessages:ec}=A,{heading:ed}=es,ex=x||O,eh=$||o;return(0,n.jsxs)(l.yo,{interactiveColor:"textPrimary",children:[h&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.A,{content:h,tagName:"h2",textStyle:"headlineW1"}),(0,n.jsx)(l.Yx,{vertical:!0,unit:"five"})]}),(0,n.jsx)("form",{onSubmit:e=>{e&&e.preventDefault(),en().catch(()=>X(!0))},children:(0,n.jsxs)(l.aH,{vertical:Z,alignItems:Z?"flex-start":"center",children:[(p=V&&!O,f=V&&O&&!(Y&&Y.length>0)||p||K||!O&&t&&i,(0,n.jsxs)(l.aH,{fullWidth:Z,children:[(0,n.jsxs)(l.aH,{fullWidth:Z,vertical:Z,children:[(0,n.jsx)(E,{"data-testid":"autocomplete",children:(0,n.jsx)(c.q,{name:v.a5,value:D.input,validity:D.validity,inputProps:{placeholder:el.fareStartPlaceholder,startContent:(0,n.jsx)(l.hw,{icon:r.fSS,size:"extraSmall",color:v.gN.pickup}),fullWidth:!0,required:!0,onClear:()=>H(v.WL),onKeyPress:eo},onChange:(e,{newValue:t})=>H({...v.WL,input:t}),onSuggestionSelected:et,onValidityChange:e=>H(t=>({...t,validity:e})),highlightFirstSuggestion:!0,inputValue:D.input?D.input:"",required:!0,usePlaceAutocompleteApi:!0})}),(0,n.jsx)(l.Yx,{horizontal:!0,unit:"one"}),(0,n.jsx)(l.Yx,{vertical:!0,unit:"one",unitM:"zero"}),(0,n.jsx)(E,{children:(0,n.jsx)(c.q,{"data-testid":"end-location-autocomplete",name:v.jk,value:z.input,validity:z.validity,inputProps:{placeholder:el.fareEndPlaceholder,startContent:(0,n.jsx)(l.hw,{icon:r.fSS,size:"extraSmall",color:v.gN.dropoff}),fullWidth:!0,required:!0,onClear:()=>B(v.WL),onKeyPress:eo},onChange:(e,{newValue:t})=>B({...v.WL,input:t}),onSuggestionSelected:ei,onValidityChange:e=>B(t=>({...t,validity:e})),highlightFirstSuggestion:!0,inputValue:z.input?z.input:"",required:!0,usePlaceAutocompleteApi:!0})}),(0,n.jsx)(l.Yx,{horizontal:!0,unit:"zero",unitM:"one"})]}),f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Yx,{vertical:!0,unit:"three"}),(0,n.jsxs)(P,{children:[(0,n.jsx)(l.hw,{icon:r.mJl,size:"extraSmall"}),(0,n.jsx)(l.aH,{vertical:!0,children:(0,n.jsxs)(N,{children:[(0,n.jsx)(l.pT,{textStyle:"titleW3",children:ec.attemptSubmitFailedHeader}),(0,n.jsxs)(l.pT,{textStyle:"bodyW3",children:[ec.attemptSubmitFailedText,ec.californiaShutdownEnabled&&(0,n.jsx)("a",{href:ec.learnMore.href,children:ec.learnMore.text})]})]})})]})]})]})),(0,n.jsx)(l.Yx,{vertical:!0,unit:"one",unitM:"zero"}),(0,n.jsx)(S.z4,{type:"submit",children:el.buttonText})]})}),!O&&eh&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Yx,{vertical:!0,unit:"two"}),(0,n.jsx)(l.pT,{tagName:"a",href:W(eh),textStyle:"labelW1Heavy",children:es.fareDetails})]}),(0,n.jsxs)(M,{$shouldHide:O,children:[(0,n.jsx)(l.Yx,{vertical:!0,unit:"four"}),er(el)]}),u&&ea(el,ed),ex&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Yx,{vertical:!0,unit:"five",unitM:"eight"}),(0,n.jsx)(T,{})]}),!u&&ea(el,ed)]})},_=e=>{let{isFareEstimateDisabled:t}=(0,A.O)();return t?null:(0,n.jsx)(R,{...e})}},10485:(e,t,i)=>{i.d(t,{$r:()=>n,Ai:()=>r,BB:()=>d,aX:()=>a,b5:()=>c,c_:()=>o});let n="/ride-with-lyft/runway",r="https://lyft.sng.link/A9g65/ico9r?_smtype=3",a="https://lyft.sng.link/Ednq0/nz8r?_smtype=3",o="runway";var l,s,c=((l={}).PHONE_NUMBER_SUBMITTED="phoneNumberSubmitted",l.SMS_SENT_SUCCESS="smsSentSuccess",l.SMS_SENT_FAIL="smsSentFail",l),d=((s={}).LEAD_CAPTURE_SCREEN_SUCCESS="leadCaptureScreenSuccess",s.LEAD_CAPTURE_SCREEN_FAIL="leadCaptureScreenFail",s)},11053:(e,t,i)=>{i.d(t,{d:()=>n});let n={promise:!0,maxAge:36e5,normalizer:JSON.stringify,preFetch:!0}},14761:(e,t,i)=>{i.d(t,{TT:()=>l,a3:()=>a,p3:()=>s,tX:()=>o,zX:()=>r});var n=i(61850);function r(e,t){let i=e.replace("#",""),n=parseInt(i.substring(0,2),16),r=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16);return`rgba(${n},${r},${a},${t||1})`}let a=e=>n.ml[e].alias,o=e=>!!e&&!!n.ml[e]?.value,l=(e,t)=>{let i=((e,t)=>{function i(e){let t,i,n;return 4===e.length?(t=parseInt(e[1]+e[1],16),i=parseInt(e[2]+e[2],16),n=parseInt(e[3]+e[3],16)):(t=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16)),{r:t,g:i,b:n}}function n(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function r(e){return .2126*n(e.r)+.7152*n(e.g)+.0722*n(e.b)}let a=i(e),o=i(t),l=r(a),s=r(o);return parseFloat(((Math.max(l,s)+.05)/(Math.min(l,s)+.05)).toFixed(2))})(e,t);return{isAccessible:i>=4.5,isAccessibleLargeText:i>=3,contrastRatio:i}},s=e=>!!e.hex},15412:(e,t,i)=>{i.d(t,{q:()=>d});var n=i(37876);i(14232);var r=i(40818),a=i(2029),o=i(61850),l=i(91494);let s=(0,a.o)(o.nj),c=(0,a.o)(l.A),d=e=>{let{ipLocation:{lat:t,lng:i}={}}=(0,r.yI)(),a={lat:void 0!==t?parseFloat(`${t}`):t,lng:void 0!==i?parseFloat(`${i}`):i,...e.additionalFetchParams},o={serviceUrl:"https://www.lyft.com",...e.clientConfigOverride};if("search"===e.inputType){let{inputType:t,...i}=e;return(0,n.jsx)(c,{additionalFetchParams:a,clientConfigOverride:o,...i})}let{inputType:l,...d}=e;return(0,n.jsx)(s,{additionalFetchParams:a,clientConfigOverride:o,...d})}},16776:(e,t,i)=>{i.d(t,{U:()=>r});var n,r=((n={}).AudioPlayer="AudioPlayer",n.AppRedirect="AppRedirect",n.Banner="Banner",n.NotTranslatedBanner="NotTranslatedBanner",n.BonusList="BonusList",n.CollapsibleArea="CollapsibleArea",n.ComparisonTable="ComparisonTable",n.ComponentGroup="ComponentGroup",n.ContentList="ContentList",n.Divider="Divider",n.DriverEarnings="DriverEarnings",n.DwlHero="DwlHero",n.DynamicBanner="DynamicBanner",n.Experiment="Experiment",n.FAQ="FAQ",n.FAQEntry="FAQEntry",n.FareEstimate="FareEstimate",n.BlogBanner="BlogBanner",n.Form="Form",n.Financial
5StatementTable="FinancialStatementTable",n.FinancialStatementItem="FinancialStatementItem",n.FullWidthImage="FullWidthImage",n.FullPageExperimentWrapper="FullPageExperimentWrapper",n.Hero="Hero",n.HtmlContent="HtmlContent",n.ImageCarousel="ImageCarousel",n.InfoCardCarousel="InfoCardCarousel",n.InfoCardCarouselEntry="infoCardCarouselEntry",n.JsonLdTag="JsonLdTag",n.LargeImageModule="LargeImageModule",n.LargeVideoModule="LargeVideoModule",n.LegalText="LegalText",n.LinkList="LinkList",n.LinkPanelList="LinkPanelList",n.LogoCarousel="LogoCarousel",n.MetaTag="MetaTag",n.MultiColumnModule="MultiColumnModule",n.Paragraph="Paragraph",n.PhoneCarousel="PhoneCarousel",n.Quote="Quote",n.QuoteCarousel="QuoteCarousel",n.Randomizer="Randomizer",n.RegionDisclaimers="RegionDisclaimers",n.RideModeSelector="RideModeSelector",n.RiderPromoList="RiderPromoList",n.Search="Search",n.StackedTextImageModule="StackedTextImageModule",n.StylizedTextImageModule="StylizedTextImageModule",n.ServiceAreaMap="ServiceAreaMap",n.SimpleHeader="SimpleHeader",n.SupportedCities="SupportedCities",n.SupportedAirports="SupportedAirports",n.TableCategoryEntry="TableCategoryEntry",n.TableRowEntry="TableRowEntry",n.CtaWithLoggedInAction="CtaWithLoggedInAction",n.TextCarousel="TextCarousel",n.TextImageModule="TextImageModule",n.ThreeColumnModule="ThreeColumnModule",n.TrendingVenues="TrendingVenues",n.TwoCtaHero="TwoCtaHero",n.TwoColumnModule="TwoColumnModule",n.VisibilityToggleList="VisibilityToggleList",n.VisibilityToggle="VisibilityToggle",n.TBSMap="TBSMap",n.Page="Page",n.DriveWithLyftPage="DriveWithLyftPage",n.RideWithLyftConfiguration="RideWithLyftConfiguration",n.RideWithLyftHero="RideWithLyft",n)},17108:(e,t,i)=>{i.d(t,{BD:()=>s,IE:()=>d,TV:()=>x,Ww:()=>c,gd:()=>h,kk:()=>l,nV:()=>o});var n=i(74023),r=i.n(n),a=i(87640);let o=async e=>{await a.VD.post("/api/ride_with_lyft",{data:e,snakeCaseRequest:!1})},l=async e=>{let t={snakeCaseRequest:!1,camelCaseResponse:!1,params:{}};return e?.searchKey&&(t.params.last_evaluated_key=e.searchKey),e?.pageSize&&(t.params.limit=e.pageSize),(await a.vv.get("/api/click_routes",t)).data},s=async e=>(await a.vv.post("/api/click_routes",{data:e,snakeCaseRequest:!1})).data,c=async e=>(await a.vv.put("/api/click_routes",{data:r()(e,["author","hits","save_date"]),snakeCaseRequest:!1})).data,d=async e=>{await a.vv.del("/api/click_routes",{data:{key:e}})},x=async(e,t)=>{let i,n="/api/translations/request-translation";return t&&t.ids.app&&(i=(await t.cma.appSignedRequest.create({appDefinitionId:t.ids.app},{path:n,method:"POST",headers:{},body:JSON.stringify(e)})).additionalHeaders),(await a.VD.post(n,{data:e,snakeCaseRequest:!1,camelCaseResponse:!1,headers:{...i}})).data},h=async(e,t)=>{let i,n="/api/translations/refresh-contentful-translations";return t&&t.ids.app&&(i=(await t.cma.appSignedRequest.create({appDefinitionId:t.ids.app},{path:n,method:"POST",headers:{},body:JSON.stringify(e)})).additionalHeaders),(await a.VD.post(n,{data:e,snakeCaseRequest:!1,camelCaseResponse:!1,headers:{...i}})).data}},17125:(e,t,i)=>{let n;i.d(t,{C:()=>dm,p:()=>dp});var r,a,o,l,s,c,d,x,h,u,m,p,g,f,y=i(14232),j=i(18847),w=i.n(j),v=i(36972),b=i(39463);let C=({target:e=""})=>(b.S$||(0,v.A)(window.navigator).any&&window.location.replace(e),null);var k=i(37876),S=i(15702),A=i(50259),I=i.n(A),T=i(87856),L=i(61850),E=i(89509),$=i(6935),M=i(4871);let P="1 Year",N="Until Page Reload";var W=i(85940);let R=W._t("qio0jh",""),_=T.I4.section.withConfig({componentId:"sc-f0ffcb71-0"})(["background-color:",";"],e=>e.backgroundColor?L.ml[e.backgroundColor].color:L.ml.yellow20.color),F=(0,T.I4)(E.A).withConfig({componentId:"sc-f0ffcb71-1"})(["width:100%;text-align:",";"],({alignment:e})=>e),Y=T.I4.div.withConfig({componentId:"sc-f0ffcb71-2"})(["display:flex;position:relative;min-height:","px;margin-right:","px;@media screen and (min-width:","px){position:absolute;left:","px;}"],L.l$.two,L.l$.one,L.GL.xl,L.l$.three),G=T.I4.div.withConfig({componentId:"sc-f0ffcb71-3"})(["flex-grow:2;display:flex;align-items:center;min-height:","px;"],L.l$.six),O=T.I4.div.withConfig({componentId:"sc-f0ffcb71-4"})(["position:relative;display:flex;@media screen and (max-width:","px){margin-left:-","px;right:-","px;}@media screen and (min-width:","px){position:absolute;right:","px;}"],L.GL.m,L.l$.two+1,L.l$.two,L.GL.xl,L.l$.two),U=T.I4.div.withConfig({componentId:"sc-f0ffcb71-5"})(["width:100%;position:relative;display:flex;align-items:center;justify-content:space-between;padding:","px ","px;@media (max-width:","px){padding:20px ","px;}"],L.l$.two,L.l$.ten,L.GL.l-1,L.l$.two),D=({content:e,contentAlignment:t="left",hideIcon:i,displayName:n,backgroundColor:r,textColor:a="textPrimary",interactiveColor:o,hideDuration:l=P})=>{let s=y.useContext($.M)||{},c=`lyftBanner-${n}
5`,d=l===N||"true"!==s[c],[x,h]=(0,y.useState)(d);return((0,y.useEffect)(()=>{l===N&&new(I())().remove(c)},[l,c]),x)?(0,k.jsx)(_,{backgroundColor:r,"data-testid":"Banner","data-tracking-action":"view","data-tracking-category":"Banner","data-tracking-label":n,children:(0,k.jsx)(L.en,{maxWidth:"standard",children:(0,k.jsxs)(U,{children:[(0,k.jsx)(Y,{children:!i&&(0,k.jsx)(L.hw,{icon:S.as3,size:"small"})}),(0,k.jsx)(G,{children:(0,k.jsx)(F,{content:e,textStyleOverride:"bodyW1",alignment:t,textColor:a,interactiveColor:o||a})}),(0,k.jsx)(O,{children:(0,k.jsx)(L.Ve,{"aria-label":R.t(),icon:S.gzW,iconSize:"extraSmall",color:"iconSecondary",onClick:()=>{(0,M.c5)({event:"notification_banner",eventName:"banner_close_button"}),l!==N&&new(I())().set(c,"true",{maxAge:31536e3}),h(!1)},label:R.t()})})]})})}):null};var H=i(40818),z=i(6158),B=i(78203),V=i(6071),q=i(84795),J=i(89099),Q=i(48447),K=i(30180),X=i(99617),Z=i(86667),ee=i(1317),et=i(71030),ei=i(1533),en=i(9963),er=i(60566),ea=i(55412);let eo=(e=100)=>{let[t,i]=(0,y.useState)(()=>window.singularSdk||null);return(0,y.useEffect)(()=>{if(t)return()=>{};let n=setInterval(()=>{window.singularSdk&&(i(()=>window.singularSdk),clearInterval(n))},e);return()=>{clearInterval(n)}},[t,e]),t},el=({copy:e,href:t,buttonType:i,buttonStyle:n,riderCopy:r,riderHref:a,driverCopy:o,driverHref:l,driverApplicantCopy:s,driverApplicantHref:c,trackingLabel:d,trackingAction:x,trackingCategory:h,trackingValue:u,stat:m,withSingularTracking:p=!1})=>{let{browserSessionId:g}=(0,er.bp)(),f=(0,J.useRouter)(),{user:y}=(0,ei.D5)(),j=y.roles||[],w=eo(),v=(e,t)=>{let r={href:p&&(0,ea.Hv)(t)?(0,ea.ln)(t,{deepLinkQueryParams:{[ea.wF]:g,[ea.yb]:f.asPath.split("?")[0]}},w):t,trackingCategory:h,trackingAction:x,trackingLabel:d,trackingValue:u,onClick:()=>void(m&&ee.f.incr(m))};return"text"===i?(0,k.jsx)(en.$J,{...r,textButton:!0,children:e}):(0,k.jsx)(en.$J,{...r,buttonStyle:n||"primary",children:e})};return j.includes("driver")&&o&&l?v(o,l):j.includes("driverApplicant")&&s&&c?v(s,c):j.includes("passenger")&&r&&a?v(r,a):v(e,t)};var es=i(92449);let ec=T.I4.div.withConfig({componentId:"sc-2ce82f56-0"})(["border-radius:","px;border:1px solid ",";padding:","px;display:flex;flex-direction:column;@media screen and (min-width:","px){flex-direction:row;justify-content:space-between;}"],L.l$.two,L.ml.gray20.color,L.l$.three,L.GL.m),ed=T.I4.div.withConfig({componentId:"sc-2ce82f56-1"})(["text-align:center;@media screen and (min-width:","px){text-align:",";}"],L.GL.m,e=>e.align),ex=({bonus:e,applyCodeButton:t,bonusRequirement:i,displayName:n,codeCopiedText:r,copiedCodeToastCta:a})=>{let o=(0,J.useRouter)(),[l,s]=(0,y.useState)(!1),{pathname:c}=o,{code:d,rewardAmountCents:x,currency:h="USD",requirements:u,rewardType:m,timeRequirementMs:p=0}=e,{rides:g=""}=u,{href:f}=t,j=`${f}&ref=${d}`;return(0,k.jsxs)(ec,{children:[(0,k.jsxs)(ed,{align:"left",children:[(0,k.jsx)(L.pT,{textStyle:"headlineW1",children:(0,k.jsx)(et.$m.Consumer,{children:({earningsGuarantee:e,bonus:t})=>(0,k.jsxs)(L.pT,{textStyle:"headlineW1",children:[(0,Z.Rv)({amount:x,currency:h,exponent:2})," ",["paid_acq","pax_dvr_upsell","guarantee","acq_guarantee"].includes(m)?e:t]})})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),(0,k.jsx)(L.pT,{textStyle:"bodyW3",children:(0,X.G)(i,{tripsCount:g.toString(),numDays:p/es.Gf})})]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),(0,k.jsxs)(ed,{align:"center",children:[(0,k.jsx)(Q.CopyToClipboard,{text:d,onCopy:()=>s(!0),children:(0,k.jsx)(L.pT,{onClick:()=>{ee.f.incr("bonus-list-entry.click"),K.CC.send({eventName:"www_btn_click",action:"click",action_type:"click",sending_service:"lyftcomfe",source:"lyftcomfe",category:"DriverPromoCouponSelected",code:d,path:c})},textStyle:"titleW1",children:d})}),(0,k.jsx)(L.$W,{text:r,dismissible:!0,show:l,sentiment:"positive",autoHide:!1,onDismiss:()=>s(!1),action:()=>o.replace(j),actionText:a,position:"top"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),(0,k.jsx)(el,{...t,href:j,trackingCategory:n,trackingAction:"click",trackingLabel:n,trackingValue:t.copy,stat:"bonus-list-entry.click"})]})]})},eh=T.I4.div.withConfig({componentId:"sc-fc8a4ec8-0"})(["text-align:center;"]),eu=e=>{let{title:t,subtitle:i,terms:n,displayName:r,noBonusesFoundText:a,isPageHeader:o}=e,{bonuses:l=[]}=(0,y.useContext)(q.A),s="CA"===((0,H.yI)()?.country||"US"),c=s||!l.length;return(0,k.jsx)(z.Ay,{trackingAction:"view",trackingCategory:"BonusList",trackingLabel:r,children:(0,k.jsxs)(V.Ay,{children:[(0,k.jsxs)(eh,{children:[(0,k.jsx)(B.A,{content:t,tagName:o?"h1":"h2",textStyle:"displayW2"}),i&&!s&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"two",vertical:!0}),(0,k.jsx)(L.pT,{textStyle:"bodyW2",children:i})]})]}),(0,k.jsx)(L.Yx,{unit:"four",vertical:!0}),c?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(eh,{children:(0,k.jsx)(L.pT,{color:"textSecondary",textStyle:"bodyW1",children:a})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"})]}):(0,k.jsx)(k.Fragment,{children:l.map(t=>(0,k.jsxs)("div",{children:[(0,k.jsx)(ex,{bonus:t,...e}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"})]},t.code))}),(0,k.jsx)(L.Yx,{unit:"one",vertical:!0}),!c&&(0,k.jsx)(eh,{children:(0,k.jsx)(E.A,{content:n,textStyleOverride:"bodyW3"})})]})})};var em=((r={}).DEFAULT="Content Row (Default)",r.HEADING="Heading Row",r.HEADING_DENSE="Dense Heading Row",r);let ep=T.I4.div.withConfig({componentId:"sc-e87e7652-0"})(["display:flex;flex-wrap:wrap;justify-content:space-between;padding:0;"]),eg=T.I4.div.withConfig({componentId:"sc-e87e7652-1"})(["padding:","px 0;border-bottom:2px solid ",";display:inline-block;width:100%;@media screen and (min-width:","px){padding:","px ","px;}"],L.l$.two,L.ml.strokeTertiary.color,L.GL.m,L.l$.three,L.l$.two),ef=T.I4.div.withConfig({componentId:"sc-e87e7652-2"})(["padding:","px 0;max-width:48%;text-align:",";align-self:center;@media screen and (min-width:","px){flex:",";text-align:",";padding:","px ","px;max-width:100%;}@media screen and (max-width:","px){display:",";}"],L.l$.two,e=>0===e.idx?"left":"end",L.GL.m,e=>0===e.idx?2:1,e=>0===e.idx?"left":"center",L.l$.three,L.l$.two,L.GL.m-1,e=>e.idx>0&&e.idx!==e.col?"none":"inline-block"),ey=({col:e,rowType:t=em.DEFAULT,content:i=""})=>{let n=i.split("|");return(0,k.jsx)(ep,{children:n.map((n,r)=>{let a=`${n}-${r}`;return t===em.HEADING?(0,k.jsx)(eg,{children:(0,k.jsx)(L.pT,{tagName:"h3",textStyle:"titleW1",children:i})},a):(0,k.jsx)(ef,{col:e,idx:r,children:(0,k.jsx)(E.A,{content:n})},a)})})};var ej=i(25190);let ew=(0,T.I4)(ej.Ay).withConfig({componentId:"sc-c9110c96-0"})(["width:2rem;height:auto;"]),ev=T.I4.div.withConfig({componentId:"sc-c9110c96-1"})(["display:flex;align-items:center;position:absolute;right:0;height:100%;@media screen and (min-width:","px){display:none;}"],L.GL.m),eb=T.I4.div.withConfig({componentId:"sc-c9110c96-2"})(["display:flex;align-items:center;flex-direction:row;position:relative;width:100%;padding:","px 0;",";@media screen and (min-width:","px){flex-direction:column;padding:0 ","px;}"],L.l$.two,e=>e.isTitleCell?` 6 flex: 2; 7 text-align: left; 8 `:` 9 flex: 1; 10 text-align: center; 11 `,L.GL.m,L.l$.two),eC=({categoryName:e,image:t,isMobileOnly:i,isTitleCell:n,isExpandedArrow:r})=>(0,k.jsxs)(eb,{isMobileOnly:i,isTitleCell:n,children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"zero",unitM:"two"}),t?.src&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ew,{src:t.src,alt:t.alt,height:t.height,width:t.width}),(0,k.jsx)(L.Yx,{horizontal:!0,unit:"two",unitM:"zero"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"zero",unitM:"one"})]}),(0,k.jsx)(L.pT,{tagName:"h2",textStyle:"headlineW2",children:e}),(0,k.jsx)(L.Yx,{horizontal:!0,unit:"two",unitM:"zero"}),(0,k.jsx)(ev,{children:(0,k.jsx)(L.hw,{icon:r?S.rIS:S.owb,size:"extraSmall"})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"zero",unitM:"oneAndHalf"})]}),ek=T.I4.div.withConfig({componentId:"sc-77b5335b-0"})(["@media screen and (min-width:","px){display:",";}"],L.GL.m,e=>e.idx>0?"none":"inherit"),eS=T.I4.button.withConfig({componentId:"sc-77b5335b-1"})(["padding:0;border:0;outline:0;width:100%;background:none;-webkit-appearance:none;-moz-appearance:none;color:",";@media screen and (min-width:","px){display:none;}"],L.ml.textPrimary.color,L.GL.m),eA=T.I4.div.withConfig({componentId:"sc-77b5335b-2"})(["@media screen and (max-width:","px){display:",";}"],L.GL.m-1,e=>e.isExpanded?"inherit":"none"),eI=T.I4.div.withConfig({componentId:"sc-77b5335b-3"})(["padding:0 ","px;@media screen and (min-width:","px){display:none;}"],L.l$.oneAndHalf,L.GL.m),eT=T.I4.div.withConfig({componentId:"sc-77b5335b-4"})(["",";@media screen and (min-width:","px){border-top-width:2px;}"],({hasDivider:e})=>e?`border-top: 1px solid ${L.ml.strokeTertiary.color};
11`:"",L.GL.m),eL=({displayName:e,idx:t,category:i,entries:n=[],hasDivider:r,isExtendedByDefault:a})=>{let{categoryGroup:o,categorySubname:l,ctaCopy:s,ctaHref:c,ctaAriaLabel:d,ctaStyle:x}=i,[h,u]=(0,y.useState)(a);return(0,k.jsxs)(ek,{idx:t,children:[(0,k.jsx)(eS,{type:"button",onClick:()=>u(!h),children:(0,k.jsx)(eC,{isExpandedArrow:h,isMobileOnly:!0,...i},i.categoryName)}),(0,k.jsxs)(eA,{isExpanded:h,children:[(0,k.jsxs)(eI,{children:[o&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{textStyle:"bodyW2",children:o}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}),l&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{textStyle:"titleW2",children:l}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"oneAndHalf"})]}),s&&c&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(en.$J,{textButton:!0,buttonStyle:x,href:c,"aria-label":d,trackingCategory:"ComparisonTable",trackingLabel:e,trackingValue:s,children:s}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"})]})]}),(0,k.jsx)(eT,{hasDivider:r,children:n.map(e=>(0,k.jsx)(ey,{col:t+1,...e},e.content))})]})]})},eE=T.I4.div.withConfig({componentId:"sc-3fc9c854-0"})(["display:flex;text-align:center;& + &{margin-top:","px;}"],L.l$.two),e$=T.I4.div.withConfig({componentId:"sc-3fc9c854-1"})(["flex:",";padding:0 ","px;"],({isTitleCell:e})=>e?2:1,L.l$.two),eM=(0,T.I4)(eE).withConfig({componentId:"sc-bc113349-0"})([""," + &{margin-top:0;}"],eE),eP=({categories:e})=>e.some(({categorySubname:e})=>e)?(0,k.jsxs)(eM,{children:[(0,k.jsx)(e$,{isTitleCell:!0},"empty"),e.map(({categorySubname:e})=>(0,k.jsx)(e$,{children:e&&(0,k.jsx)(L.pT,{textStyle:"titleW2",children:e})},e))]}):null,eN=({categories:e=[],displayName:t})=>e.some(({ctaHref:e,ctaCopy:t})=>e&&t)?(0,k.jsxs)(eE,{children:[(0,k.jsx)(e$,{isTitleCell:!0},"empty"),e.map(({categoryName:e,ctaStyle:i,ctaHref:n,ctaCopy:r,ctaAriaLabel:a})=>(0,k.jsx)(e$,{children:n&&r&&(0,k.jsx)(en.$J,{textButton:!0,buttonStyle:i,href:n,"aria-label":a,trackingCategory:"ComparisonTable",trackingLabel:t,trackingValue:r,children:r})},e))]}):null,eW=T.I4.div.withConfig({componentId:"sc-4250840d-0"})(["padding:","px ","px;flex:",";margin:0 ","px;",""],L.l$.one,L.l$.two,({span:e})=>e,L.l$.oneAndHalf,({hasBackground:e})=>e?`background-color: ${L.ml.gray10.color};`:""),eR=({categories:e=[]})=>{let t=e.reduce((e,t)=>{let i=e[e.length-1];return i&&t.categoryGroup&&i.title===t.categoryGroup?(i.span+=1,e):e.concat([{title:t.categoryGroup||"",span:1}])},[]);return t.some(e=>!!e.title)?(0,k.jsxs)(eE,{children:[(0,k.jsx)(eW,{span:2},"empty"),t.map(({title:e,span:t})=>(0,k.jsx)(eW,{span:t,hasBackground:!!e,children:(0,k.jsx)(L.pT,{textStyle:"titleW2",children:e})},e))]}):null},e_=T.I4.div.withConfig({componentId:"sc-812f6b64-0"})(["@media screen and (max-width:","px){border-bottom:1px solid ",";padding-left:","px;padding-right:","px;margin-left:-","px;margin-right:-","px;",";}"],L.GL.m-1,L.ml.strokeTertiary.color,L.l$.two,L.l$.two,L.l$.two,L.l$.two,({$hasBottomCta:e})=>e?` 12 &:last-of-type { 13 border-bottom: none; 14 } 15 `:""),eF=T.I4.div.withConfig({componentId:"sc-812f6b64-1"})(["display:inherit;width:100%;"]),eY=T.I4.div.withConfig({componentId:"sc-812f6b64-2"})(["display:block;@media screen and (max-width:","px){display:none;}"],L.GL.m-1),eG=T.I4.div.withConfig({componentId:"sc-812f6b64-3"})(["display:inherit;width:100%;"]),eO=T.I4.div.withConfig({componentId:"sc-812f6b64-4"})(["width:100%;display:flex;justify-content:center;@media screen and (max-width:","px){justify-content:left;}"],L.GL.m-1),eU=({eyebrow:e,header:t,subheader:i,hideHeaderLine:n,categories:r=[],entries:a=[],referenceId:o,displayName:l,headerDivider:s=!1,defaultExtendedCategoryNumber:c=1,bottomCta:d})=>{let x=[(0,k.jsx)(eC,{isTitleCell:!0},"empty")].concat(r.map(e=>(0,k.jsx)(eC,{...e},e.categoryName))),h=r.map((e,t)=>{let i=t===Math.min(Math.max(c-1,0),r.length-1);return(0,k.jsx)(e_,{$hasBottomCta:!!d,children:(0,k.jsx)(eL,{displayName:l,idx:t,category:e,entries:a,hasDivider:s,isExtendedByDefault:i})},e.categoryName)});return(0,k.jsxs)(z.Ay,{referenceId:o,trackingAction:"view",trackingCategory:"ComparisonTable",trackingLabel:l,children:[(e||t||i)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(z.w,{eyebrow:e,header:t,subheader:i,hideHeaderLine:n}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one",unitM:"three"})]}),(0,k.jsxs)(V.Ay,{children:[(0,k.jsxs)(eF,{children:[(0,k.jsxs)(eY,{children:[(0,k.jsx)(eR,{categories:r}),(0,k.jsx)(eE,{children:x}),(0,k.jsx)(eP,{categories:r}
15),(0,k.jsx)(eN,{categories:r,displayName:l}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"oneAndHalf"})]}),(0,k.jsx)(eG,{children:h})]}),!!d&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"oneAndHalf"}),(0,k.jsx)(eO,{children:(0,k.jsx)(el,{...d,trackingAction:"click",trackingCategory:l,trackingLabel:d.displayName})})]})]})]})};var eD=i(92133);let eH={hideSpacing:!0,transparentBackground:!0},ez=({backgroundColor:e,components:t,renderComponent:i})=>(0,k.jsx)(z.Ay,{backgroundColor:e,children:(0,k.jsx)(eD.d.Provider,{value:eH,children:Array.isArray(t)&&t.map((e,n)=>(0,k.jsxs)(y.Fragment,{children:[i(e),n!==t.length-1&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"six"})]},e.displayName))})});var eB=i(47372);let eV=T.I4.div.withConfig({componentId:"sc-5e49e732-0"})(["&:not(:first-child){padding-top:",";}"],e=>e.expandable?`${L.l$.three}px`:`${L.l$.five}px`),eq=(0,T.I4)(ej.Ay).withConfig({componentId:"sc-5e49e732-1"})(["max-width:110px;@media screen and (min-width:","px){max-width:",";}"],L.GL.m,e=>e.expandable?"60%":"80%"),eJ=T.I4.div.withConfig({componentId:"sc-5e49e732-2"})(["@media screen and (min-width:","px){display:flex;flex-direction:column;justify-content:center;","}"],L.GL.m,e=>e.expandable?`margin-top: ${L.l$.four}px`:"height: 100%;"),eQ=T.I4.div.withConfig({componentId:"sc-5e49e732-3"})(["display:flex;align-items:center;justify-content:space-between;cursor:pointer;"]),eK=({content:e,header:t,image:i={},subheader:n,referenceId:r,expandable:a,isFullPage:o,withDivider:l=!0})=>{let[s,c]=(0,y.useState)(!1);return(0,k.jsxs)(eV,{id:r,expandable:a,children:[(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{cols:0,colsM:1}),i.src&&(0,k.jsxs)(L.J2,{colsM:2,children:[(0,k.jsx)(eq,{src:i.src,assetWidth:ej.ll.SMALL,alt:i.alt,loading:"lazy",expandable:a}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"})]}),(0,k.jsx)(L.J2,{colsM:o?8:6,children:(0,k.jsx)(eJ,{expandable:a,children:a?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(eQ,{onClick:()=>c(!s),onKeyPress:()=>c(!s),role:"button",tabIndex:0,"aria-expanded":s,children:[(0,k.jsx)(B.A,{content:t,tagName:"h3",textStyle:"headlineW1"}),(0,k.jsx)(L.hw,{icon:s?S.owb:S.rIS,size:"small"})]}),n?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"}),(0,k.jsx)(L.pT,{tagName:"h4",textStyle:"titleW2",children:n})]}):null,s&&e&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(E.A,{"data-testid":"content",content:e})]})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(B.A,{content:t,tagName:"h3",textStyle:"headlineW1"}),n?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"}),(0,k.jsx)(L.pT,{tagName:"h4",textStyle:"titleW2",children:n})]}):null,e&&(0,k.jsxs)("div",{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(E.A,{content:e})]})]})})})]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:a?"three":"five"}),(0,k.jsx)(V.Ay,{colsM:o?10:8,children:l&&(0,k.jsx)(L.J8,{type:"item","data-testid":"content-entry-divider"})})]})},eX=({referenceId:e,entries:t=[],eyebrow:i,header:n,content:r,displayName:a,expandable:o,isFullPage:l,backgroundColor:s,withDividers:c=!0,ctaText:d,ctaHref:x,ctaStyle:h="primary"})=>(0,k.jsxs)(z.Ay,{referenceId:e,trackingAction:"view",trackingCategory:"ContentList",trackingLabel:a,backgroundColor:s,children:[i&&(0,k.jsx)(eB.A,{content:i,tagName:"h2",noMargin:!0}),n&&(0,k.jsxs)(k.Fragment,{children:[i?(0,k.jsx)(L.Yx,{vertical:!0,unit:"two",unitM:"one"}):null,(0,k.jsx)(V.Ay,{children:(0,k.jsx)(B.A,{content:n,tagName:"h2",textStyle:"displayW2"})})]}),i||n?(0,k.jsx)(L.Yx,{vertical:!0,unit:"two",unitM:"three"}):null,r&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(V.Ay,{colsM:l?10:8,children:(0,k.jsx)(E.A,{content:r})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}),(0,k.jsx)("div",{children:t.map(e=>(0,y.createElement)(eK,{...e,key:e.header,expandable:o,isFullPage:l,withDivider:c}))}),d&&x?(0,k.jsxs)(k.Fragment,{children:[c&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"eight"}),(0,k.jsx)(V.Ay,{children:(0,k.jsx)(L.gT,{"data-testid":"content-list-cta-button",href:x,"data-tracking-category":"ContentList","data-tracking-action":"click","data-tracking-value":x,buttonStyle:h,children:d})})]}):null]}),eZ=()=>(0,k.jsx)(V.Ay,{removeOffset:!0,children:(0,k.jsx)(L.J8,{type:"item"})});var e0=i(52275);let e1=new e0.Nl({serviceUrl:"https://www.lyft.com",service:"acquisitionbonuses",requestTimeout:2e3}),e2=(0,T.I4)(ej.Ay).withConfig({componentId:"sc-3d3f640-0"}
15)(["height:auto;max-width:150px;"]),e3=T.I4.div.withConfig({componentId:"sc-3d3f640-1"})(["position:relative;background:",";display:flex;align-items:center;flex-direction:column;border-radius:","px;padding:","px;"],L.ml.indigo5.color,L.l$.two,L.l$.three),e4=({image:e,displayName:t,referenceId:i,backgroundColor:n})=>{let[r,a]=(0,y.useState)(void 0),{code:o,generalName:l}=(0,H.yI)()||{};if((0,y.useEffect)(()=>{(async()=>{if(o)try{let e=await e1.get(`/api/driver_hourly_earnings/${o}`);e.data&&a(e.data)}catch{ee.f.incr("brand.driver-earnings.failed")}})()},[o]),ee.f.incr(`driver_earnings.generalName.${l}`),!(r&&l))return null;let s=l.split(",")[0];return ee.f.incr(`driver_earnings.regionDisplayName.${s}`),(0,k.jsx)(z.Ay,{backgroundColor:n,referenceId:i,trackingAction:"view",trackingCategory:"DriverEarnings",trackingLabel:t,children:(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{colsM:2}),(0,k.jsx)(L.J2,{cols:4,colsM:8,children:(0,k.jsxs)(e3,{"data-testid":"driver-earnings",children:[e&&(0,k.jsx)(e2,{src:e.src,alt:e.alt,height:e.height,width:e.width}),(0,k.jsx)(L.Yx,{unit:"two"}),(0,k.jsx)(et.$m.Consumer,{children:({driverEarningsHeadline:e="",driverEarningsInfoText:t=""})=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{textStyle:"headlineW2",children:e.replace("{{region}}",s||"").replace("{{earnings}}",String(r))}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"}),(0,k.jsx)(L.pT,{textStyle:"subtitleW2",children:t.replace("{{region}}",s||"")})]})})]})})]})})};var e8=i(37562);let e6=({currentUser:e={},logInLink:t,buttonColor:i=es.VJ,textColor:n=es.Ah})=>{let[r,a]=(0,y.useState)(""),{returningUser:{continueApplication:o,goToDashboard:l,startNewApplicationPrompt:s,switchUser:c,welcomeBack:d}}=(0,y.useContext)(et.$m),x=(0,X.G)(d,{firstName:e.firstName||""}),h=(0,X.G)(c,{firstName:e.firstName||""});(0,y.useEffect)(()=>{a(window.location.href)},[]);let u=e.roles||[];return(0,k.jsxs)(V.Ay,{children:[(0,k.jsx)(B.A,{content:x,tagName:"h1",textStyle:"displayW1",color:n}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsxs)(L.J2,{cols:4,colsS:3,colsM:8,colsL:5,children:[(0,k.jsx)(L.yo,{interactiveColor:i,children:(0,k.jsx)(L.gT,{id:"continue-dashboard-btn",buttonStyle:"primary",type:"submit",href:t,children:u.includes(es.NX)?l:o})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)(E.A,{content:`${h} [${s}](https://account.lyft.com/logout?next=${r})`,textColor:n})]})]})};var e5=i(94699),e7=i(52947),e9=i(88907),te=((a={}).PhoneNumber="phoneNumber",a.PromoCode="promoCode",a.City="city",a.HaveACar="haveACar",a.NeedACar="needACar",a);let tt={phoneNumber:{value:""},haveACar:{value:!0},needACar:{value:!1},city:{value:{city:"",country:"USA"}},promoCode:{value:""}};var ti=((o={}).MOBILE="Mobile",o.LANDLINE="Landline",o.TOLLFREE="TollFree",o.INVALID="Invalid",o);let tn="phone submit error",tr=["phoneNumber"];function ta(e,t){let i={...e},{itemType:n,itemValue:r,error:a}=t;if("setItemAndError"===t.type){let t={value:r};if(a&&(t.error=a),n===te.PhoneNumber){let{error:i}=e.phoneNumber;i&&(t.error=i)}i[n]=t}return i}let to=new e0.Nl({serviceUrl:"https://www.lyft.com",service:"wwwdriveronboardingfe",requestTimeout:1e3});async function tl(e){return(await to.get(`/api/driverapplicant/phonecheck/${e}`)).data}let ts=async e=>{let t={isValid:!0,formattedPhoneNumber:e,isExistingUserDriver:!1,isExistingUserApplicant:!1,errors:{required:!1,tooLong:!1},phoneNumberWithCountryCode:e};if(!e)return t.isValid=!1,t.errors.required=!0,t;if(!function(e=""){return!!e&&!(e.length<10)}(e))return t.isValid=!1,t.errors.tooLong=!0,t;if(!b.KV)return t;let i=function(e=""){return e.replace(/\D/g,"")}(e);try{let{isValid:n,lineType:r,phoneNumber:a,isExistingUserDriver:o,isExistingUserApplicant:l,countryCallingCode:s}=await tl(i);return t.formattedPhoneNumber=a||e,t.phoneNumberWithCountryCode=`${s||""}${a}`,t.isExistingUserDriver=o,t.isExistingUserApplicant=l,n&&r===ti.MOBILE||(t.isValid=!1),t}catch{return t.isValid=!1,t}};var tc=i(3536);function td(e,t){let{phoneNumber:i,city:n,haveACar:r,promoCode:a}=e,{lat:o="",lng:l="",city:s,country:c}=n?.value,d=r.value?es.YQ:es.Bx,x={phone:i.value,region:s,country:c,expressDrive:d,location_latitude:o,location_longitude:l,driver_lead_tracking_id:t},h={};return a&&(h={code:a.value}),{...x,...h}}var tx=i(84799),th=i(53848);let tu=".lyft.com";var tm=i(81278);let tp=(0,e5.tZ)({name:"drive_with_lyft"}),tg={formState:tt,promoVerificationRealTimeAndModal:!1,query:{},termsUrl:e7.WE,buttonColor:es.VJ,textColor:es.Ah,isFormInvalid:!1,primaryFormSubHeaderText:"",secondaryFormSubHeaderText:"",setFormState:()=>void 0,submitForm:async()=>tt,setSkipStepOne:()=>void 0},tf=y.createContext(tg),ty=e=>{let{children:t,termsUrl:i,needCarRadioSelected:n=!1,promoVerificationRealTimeAndModal:r=!1,buttonColor:a,textColor:o,query:l}=e,[s,c]=(0,y.useState)(i),[d,x]=(0,y.useState)(!1),h=(0,tm.x)(),{incentive:u,promoCode:m,regionInfo:p}=(0,y.useContext)(th.Zz),g=u?.code||m||"",{applicationFormData:f}=(0,y.useContext)(et.$m),j=e9.Ay.cookie;(0,y.useEffect)(()=>{j&&(0,tc.d1)(l,g)},[g,l,j]);let[w,v]=(0,y.useReducer)(ta,tt,()=>{let e;return e={},g&&(e.promoCode={value:g}),p&&(e.city={value:p}),n&&(e.needACar={value:!0},e.haveACar={value:!1}),{...tt,...e}}),b=(0,y.useMemo)(()=>Object.values(w).some(e=>!!e.error),[w]),C=(0,y.useCallback)((e,t=!0)=>{(0,tc.Mh)(l,t,e)},[l]),S=(0,y.useCallback)((e,t)=>{let i=function(e){let t=[];for(let[i,n]of Object.entries(e)){let{value:e}=n;(function(e,t,i){let n;if(tr.includes(e))if(e===te.City){let{city:e,lat:r,lng:a}=t;e&&r&&a||(n=i)}else t||(n=i);return n})(i,e,"error")&&t.push(i)}return t.toString()}(t);(0,tc.KO)(l,e,i)},[l]),A=(0,y.useCallback)(async e=>{let{errorMessage:t=""}=f[te.PhoneNumber],i=e?.phoneNumber?.value||"";i="object"==typeof i?JSON.stringify(i):i.toString();let n=e;C({category:es.sH,phone:i}),S(td(e,j),e);try{let{isValid:r,formattedPhoneNumber:a,isExistingUserDriver:o,isExistingUserApplicant:l,phoneNumberWithCountryCode:s}=await ts(i),c=r?"":t;n={...e,[te.PhoneNumber]:{value:a,error:c}},(o||l)&&(ee.f.incr("drive_with_lyft.phone_auth_new.existing_account"),tp.info(`phone auth existing account: ${a}`));let d={type:"setItemAndError",itemType:te.PhoneNumber,itemValue:a,error:c};if(v(d),c)throw Error(tn);let x={phone:(0,tx.gg)((0,tx.mC)(s))};(0,tc.sx)(es.LX.driverFormPhoneSubmit,es.qO,{...x,variant:"control"
15===h?es.kI.dwlresume:es.kI.onboarding});let{href:u}=window.location;window.mParticle.Identity.login({userIdentities:{phone_number_2:s}},null),window.mParticle.logEvent(es.sH,window.mParticle.EventType.Transaction,{},{"Facebook.ActionSource":"website","Facebook.EventSourceUrl":u})}catch{ee.f.incr("drive_with_lyft.form.submit.fail"),(0,tc.sx)(es.LX.driverFormPhoneSubmit,es.vR)}return n},[f,h,C,S,j]),T=(0,y.useCallback)(async e=>{let{errorMessage:t=""}=f[te.PhoneNumber],i=e?.phoneNumber?.value||"";i="object"==typeof i?JSON.stringify(i):i.toString();let n=e;C({category:es.sH,phone:i}),S(td(e,j),e);try{let{formattedPhoneNumber:r,isValid:a,phoneNumberWithCountryCode:o}=await ts(i),l=a?"":t;n={...e,[te.PhoneNumber]:{value:r,error:l}};let s={type:"setItemAndError",itemType:te.PhoneNumber,itemValue:r,error:l};if(v(s),l)throw Error(tn);let c={phone:(0,tx.gg)((0,tx.mC)(o))};(0,tc.sx)(es.LX.driverFormPhoneSubmit,es.qO,c);let{href:d}=window.location;window.mParticle.Identity.login({userIdentities:{phone_number_2:o}},null),window.mParticle.logEvent(es.sH,window.mParticle.EventType.Transaction,{},{"Facebook.ActionSource":"website","Facebook.EventSourceUrl":d})}catch{ee.f.incr("drive_with_lyft.form.submit.fail"),(0,tc.sx)(es.LX.driverFormPhoneSubmit,es.vR)}return n},[f,C,S,j]);(0,y.useEffect)(()=>{!async function(){try{let e,{phone:t,termsUrl:i}={phone:(e=new(I())(void 0)).get(es.og),termsUrl:e.get(es.ak)};t&&i&&(c(i),await T({...tt,phoneNumber:{value:t}}),x(!0))}catch{ee.f.incr("drive_with_lyft.form.cookie.fail")}}()},[T]);let L=(0,y.useMemo)(()=>({...e,formState:w,termsUrl:s,promoVerificationRealTimeAndModal:r,buttonColor:a,textColor:o,skipStepOne:d,isFormInvalid:b,setFormState:v,submitForm:A,setSkipStepOne:x}),[a,w,b,r,e,d,o,s,A,x]);return(0,k.jsx)(tf.Provider,{value:L,children:t})};var tj=i(73383),tw=((l={}).standard="standard",l.onboardingFlow="onboardingFlow",l),tv=i(71869),tb=i(4917),tC=i.n(tb);let tk=T.I4.div.withConfig({componentId:"sc-ad1c389d-0"})(["color:",";"],({textColor:e})=>e?L.ml[e].color:L.ml.textPrimary.color),tS=({message:e,textColor:t})=>(0,k.jsx)(tk,{textColor:t,children:(0,k.jsxs)(L.Sx,{align:"start",children:[(0,k.jsx)(L.hw,{icon:S.QGd,size:"small"}),(0,k.jsx)(L.pT,{textStyle:"bodyW2",color:t,children:e})]})}),tA=({label:e,item:t,rawValue:i,error:n,onChange:r,disabled:a})=>{let{textColor:o}=(0,y.useContext)(tf),[l,s]=(0,y.useState)(!1),c=i;"boolean"!=typeof i&&(c=decodeURIComponent(i));let d=()=>{s(!0)},x=()=>{s(!1)},h=e=>{r(t,e)};return(0,k.jsxs)(L.UY,{spacer:"one",children:[t===te.PhoneNumber?(0,k.jsx)(L.Vl,{name:t,value:c,label:e,brandThemed:!0,fullWidth:!0,onChange:(e,t)=>
15{let{formatted:i}=t;h(i)},onFocus:d,onBlur:x,disabled:a}):(0,k.jsx)(L.nj,{name:t,fullWidth:!0,label:e,value:c,brandThemed:!0,onChange:e=>h(e.target.value),onFocus:d,onBlur:x,disabled:a},t),!l&&n&&(0,k.jsx)(tS,{textColor:o,message:n})]})};(0,e5.tZ)({name:"driveWithLyft.incentives"});let tI=({promoCodeOverrides:e,promoCodeBatchOverrides:t},i)=>{if(i){if(e&&Object.keys(e).find(e=>e.toLowerCase()===i.toLowerCase())){let t;return(t=Object.keys(e).find(e=>e.toLowerCase()===i.toLowerCase()))?e[t]:void 0}if(t){let e=t.find(({codes:e})=>e.map(e=>e.toLowerCase()).includes(i.toLowerCase()));return e?.overrides}}},tT=({buttonText:e,textColor:t,termsUrl:i})=>{let{incentive:n}=(0,y.useContext)(th.Zz),{dwlHideTermsCheckboxCopy:{privacyPolicy:r,d2dPrivacyPolicy:a},dwlIncentiveData:{promoCodeOverrides:o,promoCodeBatchOverrides:l}}=(0,y.useContext)(et.$m),s=tI({promoCodeOverrides:o,promoCodeBatchOverrides:l},n?.code),c=n?.type==="d2d"&&a||r,d=(0,y.useMemo)(()=>(0,X.G)(s?.privacyPolicy||c,{termsUrl:i,referralTosUrl:es._K,buttonText:e}),[e,s,c,i]);return(0,k.jsx)(L.yo,{interactiveColor:t,children:(0,k.jsx)(L.aH,{vertical:!0,gap:"one",children:(0,k.jsx)(E.A,{content:d,textStyleOverride:"bodyW3",textColor:t})})})},tL=({buttonText:e,textColor:t})=>{let{dwlHideTermsCheckboxCopy:{textMessages:i}}=(0,y.useContext)(et.$m),n=(0,X.G)(i,{buttonText:e});return(0,k.jsx)(L.pT,{tagName:"p",textStyle:"bodyW3",color:t,children:n})},tE=({children:e})=>(0,k.jsx)(L.J2,{cols:4,colsS:3,colsM:8,colsL:6,children:e}),t$=T.I4.div.withConfig({componentId:"sc-f0094271-0"})(["max-width:450px;"]),tM=({onSubmit:e,phoneNumber:t,isLoading:i,error:n,onChange:r,spacingType:a})=>{let{applicationFormData:o}=(0,y.useContext)(et.$m),{textColor:l,primaryFormSubHeaderText:s,buttonColor:c,termsUrl:d}=(0,y.useContext)(tf),{label:x}=o[te.PhoneNumber],h=o.submit,u=t=>{t.preventDefault(),e()};return(0,k.jsxs)("form",{onSubmit:u,"data-testid":"onboarding-flow-form",children:[(0,k.jsx)(L.pT,{tagName:"p",textStyle:"subtitleW1",color:l,children:s}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"standard"===a?"three":"four"}),(0,k.jsx)(t$,{children:(0,k.jsx)(tA,{item:te.PhoneNumber,label:x,rawValue:t,error:n||void 0,onChange:(e,t)=>
15r(t),disabled:i})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsxs)(L.UY,{spacer:"one",children:[(0,k.jsx)(tT,{buttonText:h,termsUrl:d,textColor:l}),(0,k.jsx)(tL,{buttonText:h,textColor:l}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"standard"===a?"oneAndHalf":"three",unitM:"standard"===a?"oneAndHalf":"four"}),(0,k.jsx)(tE,{children:(0,k.jsx)(L.aH,{justifyContent:"space-between",alignItems:"center",children:(0,k.jsx)(L.yo,{interactiveColor:c,children:(0,k.jsx)(L.gT,{type:"submit",onClick:e=>u(e),disabled:i,children:h})})})})]})]})},tP=T.I4.div.withConfig({componentId:"sc-14344e25-0"})(["display:flex;"]);var tN=((s=tN||{}).haveCar="has car",s.needCar="needs car",s);let tW=({textColor:e,needCarRadioSelected:t})=>{let[i,n]=(0,y.useState)(t?"needs car":"has car"),{applicationFormData:r}=(0,et.tA)();return(0,k.jsx)(L.yo,{interactiveColor:e,children:(0,k.jsxs)(tP,{children:[(0,k.jsx)(L.$o,{checked:"has car"===i,label:(0,k.jsx)(L.pT,{textStyle:"bodyW2",color:e,brandThemed:!0,children:r.haveACar.label}),value:"has car",name:r.haveACar.label,id:"have-a-car",brandThemed:!0,onChange:()=>{n("has car")}}),(0,k.jsx)(L.Yx,{unit:"five",horizontal:!0}),(0,k.jsx)(L.$o,{id:"need-a-car",checked:"needs car"===i,label:(0,k.jsx)(L.pT,{textStyle:"bodyW2",color:e,brandThemed:!0,children:r.needACar.label}),value:"needs car",name:r.needACar.label,brandThemed:!0,onChange:()=>{n("needs car")}})]})})};tW.displayName="CarNeedInput";let tR=({spacingType:e="standard"})=>{let{xsrfToken:t}=(0,y.useContext)(th.Zz),{applicationFormData:i}=(0,y.useContext)(et.$m),{submitForm:n,formState:r,skipStepOne:a,setFormState:o,customAuthPageVariant:l,hideHaveACarRadio:s,needCarRadioSelected:c,setSkipStepOne:d,textColor:x}=(0,y.useContext)(tf),[h,u]=(0,y.useState)(null),[m,p]=(0,y.useState)(!1),[g,f]=(0,y.useState)(r[te.PhoneNumber].value||""),{errorMessage:j,errors:w}=i[te.PhoneNumber],v=(0,y.useCallback)((e,t)=>e?null:t?.required&&w?.required?w.required:j||"",[j,w]),C=(0,y.useMemo)(()=>tC()(async e=>{let{isValid:t,errors:i}=await ts(e);u(v(t,i))},500),[v]);(0,y.useEffect)(()=>()=>C.cancel(),[C]);let S=async e=>{p(!0);let{isValid:i,formattedPhoneNumber:o,errors:s}=await ts(e),c=v(i,s);if(u(c),await n({...r,phoneNumber:{value:o,error:c||void 0}}),i){let e,i;ee.f.incr(`drive_with_lyft.form.${tw.onboardingFlow}.submit.success`);let n=(0,tv.T9)(window.location.search),r=n.ref,a=(0,tv.Sk)(n);r&&new(I())(void 0).set(es.tn,r,{secure:!1,path:"/",domain:tu});let s=Array.isArray(n[es.Pr])?n[es.Pr][0]:n[es.Pr];s&&(e=new(I())(void 0),i={domain:tu,secure:b.KV},e.set(es.LH,s,i)),window.location.assign((0,tv.PC)(o,{code:r,trackingQuery:a,xsrf:t,customAuthPageVariant:l}))}else ee.f.incr(`drive_with_lyft.form.${tw.onboardingFlow}.submit.failure`);p(!1),a&&d(!1)};return(0,y.useEffect)(()=>{if(a&&g){let e;S(g),(e=new(I())(void 0)).remove(es.og),e.remove(es.ak)}},[g,a]),(0,k.jsxs)("div",{children:[s?null:(0,k.jsxs)("div",{children:[(0,k.jsx)(L.Yx,{unit:"two",vertical:!0}),(0,k.jsx)(tW,{textColor:x,needCarRadioSelected:c})]}),(0,k.jsx)(tM,{onSubmit:()=>void S(g),error:h,isLoading:m,phoneNumber:g,onChange:e=>{f(e),C(e),o({type:"setItemAndError",itemType:te.PhoneNumber,itemValue:e})},spacingType:e})]})},t_=({children:e,eyebrow:t,textColor:i})=>(0,k.jsxs)(L.aH,{center:!0,wrapped:!0,children:[t&&(0,k.jsx)(L.pT,{tagName:"h3",textStyle:"titleW1",color:i,children:t}),e?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"five"}),e]}):null]}),tF=({eyebrow:e,eyebrowLink:t,textColor:i,title:n,subHeader:r,spacingType:a})=>(0,k.jsxs)(L.UY,{children:[(e||t)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(t_,{eyebrow:e,textColor:i,children:t&&(0,k.jsx)(L.fu,{href:t.href,icon:S.ftX,children:t.text})}),(0,k.jsx)(L.Yx,{unit:"standard"===a?"one":"two",vertical:!0})]}),(0,k.jsx)(L.pT,{tagName:"h1",textStyle:"headlineW1",textAlign:"left","data-testid":"hero",color:i,children:n}),(0,k.jsx)(L.Yx,{unit:"standard"===a?"half":"one",unitM:"standard"===a?"half":"two",vertical:!0}),r&&(0,k.jsx)(L.pT,{tagName:"h2",textStyle:"headlineW2",textAlign:"left","data-testid":"subhero",color:i,children:r})]}),tY=(0,T.I4)(ej.Ay).withConfig({componentId:"sc-746321ac-0"})(["width:100%;"]),tG=({imageCtaLink:e,...t})=>e?(0,k.jsx)("a",{href:e,"data-testid":"hero-image-href",children:(0,k.jsx)(tY,{...t})}):(0,k.jsx)(tY,{...t}),tO=(0,T.I4)(e8.Ay).withConfig({componentId:"sc-d006549d-0"})(["background-color:",";"],({backgroundColor:e})=>e?L.ml[e].color:void 0),tU=T.I4.div.withConfig({componentId:"sc-d006549d-1"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){",";width:80%;margin:0 auto;padding-top:20px;}"],L.GL.m,({$withBorder:e})=>e&&` 16 border: 1px solid lightgrey; 17 border-radius: 15px; 18 `),tD=T.I4.section.withConfig({componentId:"sc-d006549d-2"})(["@media screen and (min-width:","px){text-align:left;}"],L.GL.m),tH=T.I4.div.withConfig({componentId:"sc-d006549d-3"})(["flex-direction:column;width:100%;"]),tz=T.I4.div.withConfig({componentId:"sc-d006549d-4"})(["display:flex;flex-direction:row;width:100%;@media screen and (max-width:","px){flex-direction:column;}"],L.GL.m),tB=T.I4.div.withConfig({componentId:"sc-d006549d-5"})(["@media screen and (max-width:","px){display:none;}",";",";"],L.GL.l-1,({$fullWidth:e})=>e&&"width: 100%",({$marginType:e,$fullWidth:t})=>{let i="right"===e?"margin-right":"margin-left",n=`${i}: ${L.l$.four}px`;return t?` 19 ${n}; 20 @media screen and (min-width: ${L.GL.xl-1}px) { 21 ${i}: ${L.l$.seven}px; 22 } 23 `:n}),tV=T.I4.div.withConfig({componentId:"sc-d006549d-6"})(["@media screen and (min-width:","px){display:none;}",";"],L.GL.l,({$marginType:e})=>"top"===e?`margin-bottom: ${L.l$.one}px`:`margin-top: ${L.l$.four}px`),tq=T.I4.div.withConfig({componentId:"sc-d006549d-7"})(["@media screen and (min-width:","px){padding-top:","px;padding-bottom:","px;}"],L.GL.l,L.l$.five,L.l$.eight),tJ=({displayName:e,textColor:t=es.Ah,backgroundColor:i,backgroundImage:n,mobileBackgroun
23dImage:r,backgroundImageYOffset:a,heroImage:o,mobileHeroImage:l,heroImageLocation:s="aboveForm",buttonColor:c=es.VJ,eyebrowTextLeft:d,drivingInCaLink:x,drivingInCaLinkHidden:h,heroHeader:u,heroSubHeader:m,formHeader:p,primaryFormSubHeaderText:g,secondaryFormSubHeaderText:f,haveOrNeedCarRadioHidden:j,needCarRadioSelected:w,returningUserLoginHidden:v,promoVerificationRealTimeAndModal:b=!1,desktopHeroImageLocation:C="right",fullWidth:S=!1,largeDesktopImage:A=!1,desktopHeroImage:T,spacingType:$="standard",authPageVariant:M,formFooterText:P,imageCtaLink:N})=>{let W,{returningUser:R,logIn:_,dwlHeroFallbackHeader:F,dwlNotPlanningOnDrivingIn:Y,dwlIncentiveData:G}=(0,y.useContext)(et.$m),{alreadyApplied:O}=R,{user:U}=(0,ei.D5)(),D=(W=[es.NX,es.Sj],U?.roles?.some(e=>W.includes(e))?U:void 0),H=T||o,{query:z,incentive:q,termsUrl:J,regionName:Q="",envVariables:K,eyebrowOverride:Z}=(0,y.useContext)(th.Zz),{lyftComUrl:ee,accountUrl:en}=K,er=(0,tv.oz)(en,ee,z,M),ea=(0,y.useMemo)(()=>q?q.subheader:"",[q]),eo=u.includes("{{region}}"),el=!!(eo||q);function ec(){return q?q.header:eo?Q?(0,X.G)(u,{region:Q}):F:u}let ed=(0,y.useMemo)(()=>tw.onboardingFlow,[]),ex=()=>!q&&p&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(B.A,{content:p,tagName:"h3",textStyle:"titleW1",color:t}),(0,k.jsx)(L.Yx,{unit:"one",vertical:!0})]}),eh=(0,y.useMemo)(()=>tI(G,q?.code),[G,q]),eu=(0,y.useMemo)(()=>Z||(eh?.eyebrowText?eh.eyebrowText:d),[Z,d,eh]),em=(0,y.useMemo)(()=>{if(eh?.eyebrowLink){let{text:e,href:t}=eh.eyebrowLink;if(e&&t)return eh.eyebrowLink}if(!h&&x){let e=(0,tj.sB)(`${ee}${x?.href}`,(0,tv.uS)(z));return{text:x.text,href:e}}},[eh,h,x,ee,z]);return(0,y.useEffect)(()=>{ed&&new(I())(void 0).set(es.SY,ed,{secure:!1,path:"/",domain:tu})},[ed]),(0,k.jsxs)(tO,{backgroundColor:i,imageSrc:n?.src,mobileImageSrc:r?.src,positionY:a,children:[(0,k.jsx)(L.Yx,{unit:"five",vertical:!0}),(0,k.jsx)(tD,{children:(0,k.jsx)(L.yo,{"tracking-label":e,interactiveColor:c,textColor:t,children:D?(0,k.jsx)(tq,{children:(0,k.jsx)(e6,{currentUser:D,buttonColor:c,logInLink:er,textColor:t})}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(tU,{$withBorder:!S,children:["right"===C&&(0,k.jsx)(V.Ay,{removeOffset:S,children:(0,k.jsx)(tF,{eyebrow:eu,textColor:t,eyebrowLink:em,title:ec(),subHeader:m&&!q?m:void 0,spacingType:$})}),l?.src&&"aboveForm"===s&&(0,k.jsx)(tV,{$marginType:"bottom",children:(0,k.jsx)(tG,{src:l.src,alt:l.alt,imageCtaLink:N})}),(0,k.jsx)(V.Ay,{removeOffset:S,children:(0,k.jsxs)(L.UY,{spacer:"zero",children:["right"===C&&ex(),(0,k.jsxs)(tz,{children:[H?.src&&"left"===C&&(0,k.jsx)(tB,{$marginType:"right",$fullWidth:A,children:(0,k.jsx)(tG,{src:H.src,alt:H.alt,imageCtaLink:N})}),(0,k.jsxs)(tH,{children:["left"===C&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(tF,{eyebrow:eu,textColor:t,eyebrowLink:em,title:ec(),subHeader:m&&!q?m:void 0,spacingType:$}),ex()]}),(0,k.jsx)(ty,{...{customAuthPageVariant:M,textColor:t,buttonColor:c,hideHaveACarRadio:j,needCarRadioSelected:w,promoVerificationRealTimeAndModal:b,termsUrl:J,query:z,primaryFormSubHeaderText:ea||g,secondaryFormSubHeaderText:ea||f},children:(0,k.jsx)(tR,{spacingType:$})}),(0,k.jsx)(L.Yx,{unit:"two",unitM:"standard"===$?"two":"three",vertical:!0}),!v&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(E.A,{content:`${O} [${_}](${er})`,textStyleOverride:"bodyW2",textColor:t}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}),P?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(E.A,{content:P,textStyleOverride:"bodyW2",textColor:t}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}):null,el&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(E.A,{content:(0,X.G)(Y,{region:Q}),textStyleOverride:"bodyW2",textColor:t}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]})]}),H?.src&&"left"!==C&&(0,k.jsx)(tB,{$marginType:"left",$fullWidth:A,children:(0,k.jsx)(tG,{src:H.src,alt:H.alt,imageCtaLink:N})})]})]})}),l?.src&&"aboveForm"!==s&&(0,k.jsx)(tV,{$marginType:"top",children:(0,k.jsx)(tG,{src:l.src,alt:l.alt,imageCtaLink:N})})]}),!D&&q&&(0,k.jsxs)(V.Ay,{removeOffset:S,children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(E.A,{content:q.legalTerms})]})]})})})]})};var tQ=i(68335);let tK=W._t("1fdi4l2",""),tX=T.I4.div.withConfig({componentId:"sc-e319df0a-0"})(["border:1px solid ",";padding:","px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;position:fixed;width:100%;bottom:0;background-color:",";z-index:100;"],L.ml.gray5,L.l$.two,L.ml.alwaysWhite),tZ=T.I4.div.withConfig({componentId:"sc-e319df0a-1"})(["display:flex;align-items:center;justify-content:center;flex-wrap:wrap;"]),t0=T.I4.div.withConfig({componentId:"sc-e319df0a-2"})(["margin:","px ","px ","px ","px;"],L.l$.one,L.l$.one,L.l$.zero,L.l$.one),t1=T.I4.div.withConfig({componentId:"sc-e319df0a-3"})(["position:absolute;top:0;right:0;",""],e=>"rtl"===e.dir&&(0,T.AH)(["right:auto;left:0;"])),t2=({header:e,firstButton:t,secondButton:i,screenPercentageToDisplayAt:n,backgroundColor:r,displayName:a})=>{let o,l=new(I()),s=(o=e.split("").reduce((e,t)=>
23(e<<5)-e+t.charCodeAt(0)|0,0),`h${o}`),c=`lyftDynamicBanner-${s}`,d=(()=>{try{return"true"===l.get(c)}catch{return!1}})(),[x,h]=(0,y.useState)(!1),[u,m]=(0,y.useState)(d),p=(0,y.useContext)(tQ.l),g=()=>{let e=window.pageYOffset,t=document.body.scrollHeight*n;!x&&e>t?h(!0):x&&0===e&&h(!1)};(0,y.useEffect)(()=>{let e=tC()(g,200);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}});let f=()=>{m(!0)},j=(e,t)=>(0,k.jsx)(t0,{children:(0,k.jsx)(L.gT,{buttonStyle:e.buttonStyle||"primary",href:e.buttonHref,target:e.openInNewTab?"_blank":"",onClick:f,"data-tracking-category":`DynamicBanner ${t} button`,"data-tracking-action":"click","data-tracking-label":a,"data-tracking-value":e.buttonText,children:e.buttonText})}),w=r?L.ml[r].color:L.ml.alwaysWhite.color;return u||!x?null:(0,k.jsxs)(tX,{style:{backgroundColor:w},"data-tracking-action":"view","data-tracking-category":"DynamicBanner","data-tracking-label":a,children:[(0,k.jsx)(t1,{dir:p,children:(0,k.jsx)(L.r3,{"data-test":"dynamic-banner-close-icon",icon:S.gzW,buttonStyle:"primaryNeutral",onClick:()=>{l.set(c,"true",{maxAge:31536e3}),f()},label:tK.t()})}),(0,k.jsx)(E.A,{content:e}),(0,k.jsx)(L.Yx,{horizontal:!0,unitL:"two"}),(0,k.jsxs)(tZ,{children:[t&&j(t,"primary"),i&&j(i,"secondary")]})]})};t2.description="A banner which sticks to the bottom of the screen";var t3=i(80802),t4=i(47533),t8=i(44069),t6=i(92426),t5=i(38549),t7=((c={}).AB="AB",c.BANDIT="BANDIT",c.CONTEXTUAL_BANDIT="CONTEXTUAL_BANDIT",c);let t9=(0,e5.tZ)({name:"pagelauncher_experiment_module"}),ie=(e,{control:t,renderComponent:i,treatments:n})=>{if(n&&e&&"control"!==e){let t=n[parseInt(/^treatment([\d]+)$/.exec(e)?.[1]||"",10)-1];if(t)return i(t)}return t?i(t):null},it=({experiments:e,experimentName:t,control:i,renderComponent:n,treatments:r})=>{let a=(0,t4.Wk)(),o=(0,y.useContext)(t5.Ay),{code:l}=(0,H.yI)()||{};(0,y.useEffect)(()=>{let e=a.experiments.assignments[t];e&&(0,M.c5)({event:"web_experiment",experiment_name:t,experiment_variant:e,experiment_type:"TCS"})},[t,a.experiments.assignments]);let s=[(0,k.jsx)(t3.Ec,{name:"control",children:i?n(i):(0,k.jsx)(y.Fragment,{},"empty-control")},"control-treatment"),...r.map((e,i)=>{let r=n(e),a=`treatment${i+1}`;if(r)return(0,k.jsx)(t3.KT,{name:a,children:r},e.displayName);let s=`${t} "${a}" variant did not return any content, now rendering null instead of crashing. However, this "treatment" will still emit an exposure event and should be fixed.`;return t9.warn({availableServiceInRegion:JSON.stringify(o),regionCode:l},s),(0,k.jsx)(y.Fragment,{},"empty-treatment")})];return(0,k.jsx)(t3.aj,{experiments:e,name:t,sendingService:"lyftcomfe",children:s})},ii=e=>{let{experimentName:t,control:i,renderComponent:n,treatments:r=[]}=e,{experiments:a}=(0,t4.Wk)(),{banditExperimentVariants:o}=(0,t8.Cb)(),{queryParams:l}=(0,t6.sq)();if(!t)return i?n(i):null;let s=(0,t6.Aj)(t,l);if(s)return ie(s,e);if(e.experimentType===t7.BANDIT||e.experimentType===t7.CONTEXTUAL_BANDIT){let t;return t=o.find(t=>t.experimentId===e.experimentName),ie(t?.armId,e)}return(0,k.jsx)(it,{experiments:a,experimentName:t,control:i,renderComponent:n,treatments:r})};var ir=i(75718),ia=i(36561),io=i(44898),il=i(4273);let is=({question:e,answer:t,referenceId:i,headerStyle:n="headlineW1"})=>{let[{searchType:r,search:a,isFullPage:o},l]=(0,il.nW)(),s=(0,y.useMemo)(()=>r===io.J.NONE||e.toLowerCase().includes(a.toLowerCase())?t:t.split("\n").filter(e=>e.replace(/[#*`_]/g,"").toLowerCase().includes(a.toLowerCase())).join("\n"),[r,t,e,a]);return((0,y.useEffect)(()=>(l({type:"add-question",payload:{question:e,answer:t}}),()=>l({type:"remove-question",payload:{question:e,answer:t}})),[t,e,l]),s)?(0,k.jsx)(ia.T,{question:e,answer:s,referenceId:i,headerStyle:n,isFullPage:o}):null};var ic=i(31475),id=i(67758),ix=i(9136),ih=i(19859),iu=i(30915),im=i.n(iu),ip=i(26075),ig=i(21809),iy=i(15412),ij=i(79996),iw=i(32019);let iv=T.I4.div.withConfig({componentId:"sc-a8690eec-0"})(["border-radius:","px;background-color:",";height:56px;"],12,L.ml.alwaysWhite.color),ib=e=>{13===e.which&&e.preventDefault()},iC=({header:e,ctaCopy:t,textColor:i,displayName:n})=>{let r,[a,o]=(0,y.useState)(ij.WL),[l,s]=(0,y.useState)(ij.WL),[c,d]=(0,y.useState)(!1),[x,h]=(0,y.useState)(!1),{fareEstimate:u}=(0,y.useContext)(et.$m),{copy:{fareStartPlaceholder:m="",fareEndPlaceholder:p=""},errorMessages:{invalidLocation:g=""}}=u,{asPath:f,query:j}=(0,J.useRouter)();(0,y.useEffect)(()=>{r=new ip.Ay().browserSessionId});let w=(e,t)=>(0,ig.fx)(e).then(i=>{t===ij.d3?o({...a,input:e,lat:i.lat,lng:i.lng}):t===ij.Kp&&s({...l,input:e,lat:i.lat,lng:i.lng})}),v=async(e,t)=>{let i=t?.suggestionValue;h(!1),await w(i,ij.d3)},b=async(e,t)=>{let i=t?.suggestionValue;d(!1),await w(i,ij.Kp)};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five"}),(0,k.jsx)("form",{"data-testid":"rider-web-fare-estimate",onSubmit:e=>{if(e&&e.preventDefault(),d(!(l.lat&&l.lng)),h(!(a.lat&&a.lng)),a.lat&&a.lng&&l.lat&&l.lng){var t;let e,i,n,o,s=(t=r,e={pcrn:j.keyword,psn:`https://www.lyft.com${f}`},i={cid:t,pickup_lat:a.lat,pickup_long:a.lng,dest_lat:l.lat,dest_long:l.lng},n=im().stringify({...e,...i}),o=iw.NZ,`${o}&${n}`);window.location.href=s}},children:(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{cols:0,colsM:1}),e&&(0,k.jsx)(L.J2,{colsM:3,children:(0,k.jsx)(E.A,{content:e,textStyleOverride:"headlineW2",textColor:i})}),(0,k.jsxs)(L.J2,{colsM:3,children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"}),(0,k.jsx)(iv,{children:(0,k.jsx)(iy.q,{name:ij.a5,value:a.input,validity:{valid:!0},inputProps:{placeholder:m,startContent:(0,k.jsx)(L.hw,{icon:S.fSS,color:ij.gN.pickup,size:"extraSmall"}),fullWidth:!0,required:!0,onClear:()=>{o(ij.WL)},onKeyPress:ib},highlightFirstSuggestion:!0,onSuggestionSelected:v,onValidityChange:e=>{o({...a,validity:e})},inputValue:a.input?a.input:"",required:!0,usePlaceAutocompleteApi:!0})}),x&&(0,k.jsx)(L.pT,{textStyle:"bodyW2",color:i,children:g})]}),(0,k.jsxs)(L.J2,{colsM:3,children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five",unitM:"zero"}),(0,k.jsx)(iv,{children:(0,k.jsx)(iy.q,{name:ij.jk,value:l.input,validity:{valid:!0},inputProps:{placeholder:p,startContent:(0,k.jsx)(L.hw,{icon:S.fSS,color:ij.gN.dropoff,size:"extraSmall"}),fullWidth:!0,required:!0,onClear:()=>{s(ij.WL)},onKeyPress:ib},highlightFirstSuggestion:!0,onSuggestionSelected:b,onValidityChange:e=>{s({...l,validity:e})},inputValue:l.input?l.input:"",required:!0,usePlaceAutocompleteApi:!0})}),c&&(0,k.jsx)(L.pT,{textStyle:"bodyW2",color:i,children:g})]}),(0,k.jsxs)(L.J2,{colsM:2,children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five",unitM:"zero"}),(0,k.jsx)(L.gT,{"data-testid":"button",buttonStyle:"primaryNeutral",type:"submit","data-tracking-category":"FareEstimate primary button","data-tracking-action":"click","data-tracking-label":n,"data-tracking-value":t,children:t})]})]})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"five"})]})}
23,ik=({header:e,referenceId:t,backgroundColor:i,ctaCopy:n,textColor:r,riderWeb:a,displayName:o,serviceAreaRegionCode:l})=>{let{isFareEstimateDisabled:s}=(0,ic.O)(),{regionServiceArea:c}=(0,id.E)(l),d=(0,y.useMemo)(()=>({hideSpacing:!!a,transparentBackground:!1}),[a]),x=(0,ih.M)();return s?null:(0,k.jsx)(eD.d.Provider,{value:d,children:(0,k.jsx)(z.Ay,{referenceId:t,backgroundColor:i,trackingAction:"view",trackingCategory:"FareEstimate",trackingLabel:o,children:a?(0,k.jsx)(iC,{header:e,ctaCopy:n,textColor:r,displayName:o}):(0,k.jsx)(V.Ay,{children:(0,k.jsx)(ix.Ay,{header:e,googleMapsKey:x.CREDENTIALS_FRONTEND_GOOGLE_MAPS_KEY,serviceAreaGeoJson:c,regionCode:l,showFareEstimatesBeforeMap:!0,isRideBookingEnabled:!0})})})})};var iS=i(82768),iA=i(90839),iI=i(1554),iT=i(38876),iL=i(4941),iE=i(22888);let i$=T.I4.a.withConfig({componentId:"sc-7859123a-0"})(["height:100%;display:",";flex-direction:",";",";text-decoration:none;&:hover{text-decoration:none;}"],({type:e="flex"})=>e,({direction:e})=>"vertical"===e?"column":"row",({padding:e})=>void 0!==e&&`padding: ${e}`),iM=T.I4.div.withConfig({componentId:"sc-7859123a-1"})(["width:100%;display:flex;flex-direction:row;padding:0 0 0 ","px;color:",";text-decoration:none;"],L.l$.two,L.ml.textPrimary.color),iP=(0,T.I4)(iI.w).withConfig({componentId:"sc-7859123a-2"})(["width:90%;"]),iN=({post:e,className:t})=>{let i=(0,L.al)({breakpoint:L.GL.s}),n=(0,iE.No)();if(!e)return null;let{title:r,slug:a,createdDate:o,author:l,categories:s}=e,c=(0,iT.FP)({poster:i&&e.mobilePoster||e.poster,posterVideo:e.posterVideo});return(0,k.jsxs)(i$,{className:t,href:(0,iT.A1)(iL.k.Driver,a),children:[(0,k.jsx)(iP,{image:c,borderRadius:`${L.l$.two}px`}),(0,k.jsx)(iM,{children:(0,k.jsxs)(L.UY,{spacer:"one",children:[s?.[0]?.name&&(0,k.jsx)(L.pT,{textStyle:i?"subtitleW3":"labelW1",children:s[0].name}),(0,k.jsx)(L.pT,{textStyle:i?"subtitleW3":"subtitleW2",tagName:"h1",children:r}),(0,k.jsxs)(L.pT,{textStyle:i?"bodyW3":"labelW2",color:"gray60",children:[`${l?.firstName} ${l?.lastName} - `,(0,iT.p4)({createdDate:o},n)]})]})})]})},iW=T.I4.div.withConfig({componentId:"sc-b23dd46f-0"})(["width:100%;border-radius:30px;padding:32px 24px;background-color:",";@media screen and (min-width:","px){padding:40px 24px;}@media screen and (min-width:","px){padding:80px 48px;}> div{align-items:center;}"],L.ml.gray5.color,L.GL.m,L.GL.l),iR=({displayName:e,header:t,subheader:i,ctaText:n,ctaHref:r,fullWidth:a=!1,withTopMargin:o=!0,withBottomMargin:l=!0})=>{let s=(0,L.al)({breakpoint:L.GL.m}),{riderPosts:c=[]}=(0,y.useContext)(iS.B);return(0,k.jsxs)(V.Ay,{removeOffset:a,children:[o?(0,k.jsx)(L.Yx,{unit:"five",unitM:"ten",vertical:!0}):null,(0,k.jsx)(iW,{children:(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsxs)(L.J2,{cols:12,colsM:5,children:[(0,k.jsx)(iA.C,{width:54,height:19}),(0,k.jsx)(L.Yx,{unit:"two",vertical:!0}),(0,k.jsx)(L.pT,{tagName:"h5",textStyle:"headlineW1",children:t}),i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"three",vertical:!0}),(0,k.jsx)(L.pT,{tagName:"p",textStyle:s?"bodyW2":"bodyW1",children:i})]}),n&&r?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"three",vertical:!0}),(0,k.jsx)(L.gT,{href:r,"data-tracking-category":"BlogBanner","data-tracking-action":"click","data-tracking-label":e,"data-tracking-value":r,children:n})]}):null]}),(0,k.jsx)(L.J2,{cols:0,colsM:1}),(0,k.jsxs)(L.J2,{cols:12,colsM:6,children:[(0,k.jsx)(L.Yx,{unit:"three",unitM:"zero",vertical:!0}),c.map(e=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(iN,{post:e},e.slug),(0,k.jsx)(L.Yx,{unit:"two",unitM:"four",vertical:!0})]}))]})]})}),l?(0,k.jsx)(L.Yx,{unit:"five",unitM:"ten",vertical:!0}):null]})};var i_=i(74529),iF=i(56300);let iY=(0,T.I4)(e8.Ay).withConfig({componentId:"sc-20fee4a6-0"})(["height:375px;@media screen and (min-width:","px){height:530px;}"],L.GL.m),iG=T.I4.div.withConfig({componentId:"sc-20fee4a6-1"})(["width:100%;padding-left:","px;padding-right:","px;"],L.l$.three,L.l$.three),iO=({image:e,mobileImage:t,referenceId:i,displayName:n,caption:r,captionStyle:a="titleW1",captionColor:o,captionAlign:l="left",margins:s="all",captionSpacing:c=!0})=>{let d=(0,y.useMemo)(()=>
23({hideSpacing:"none"===s,transparentBackground:!1}),[s]);return(0,k.jsx)(eD.d.Provider,{value:d,children:(0,k.jsxs)(z.Ay,{referenceId:i,trackingAction:"view",trackingCategory:"FullWidthImage",trackingLabel:n,children:[(0,k.jsx)(iY,{imageSrc:e.src,mobileImageSrc:t?.src,title:e.alt}),(r||"all"===s)&&c&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"five"}),(0,k.jsx)(iG,{children:(0,k.jsx)(iF.o,{textStyle:a,textAlign:l,color:o,children:r})})]})})},iU=({components:e,renderComponent:t})=>(0,k.jsx)(k.Fragment,{children:e.map(t)});var iD=i(87640),iH=i(92927),iz=i(1217);let iB=W._t("17ges17",""),iV="https://business.lyft.com/signup",iq=T.Ay.form.withConfig({componentId:"sc-2847aebf-0"})(["display:none;"]),iJ=({formRef:e,email:t})=>(0,k.jsx)(iq,{ref:e,action:iV,method:"POST","aria-hidden":"true",children:(0,k.jsx)("input",{name:"email",value:t||""})}),iQ=(0,e5.tZ)({name:"Hero.BusinessForm"}),iK=T.Ay.div.withConfig({componentId:"sc-3a7a7d8f-0"})(["width:20rem;"]),iX=T.Ay.div.withConfig({componentId:"sc-3a7a7d8f-1"})(["display:flex;flex-direction:column;margin-top:","px;@media screen and (min-width:","px){align-items:center;flex-direction:row;}"],L.l$.four,L.GL.l),iZ=T.Ay.div.withConfig({componentId:"sc-3a7a7d8f-2"})(["margin-top:","px;"],L.l$.two),i0=({useBrandThemedInput:e,useLightColor:t,coreUITextColor:i,formCtaText:n,displayName:r,ctaStyle:a})=>{let o=(0,y.useRef)(null),[l,s]=(0,y.useState)(!1),[c,d]=(0,y.useState)(!1),[x,h]=(0,y.useState)(""),[u,m]=(0,y.useState)(!1),{heroFormEmailPlaceholder:p,heroFormBusinessCta:g,lyftBusinessLegalText:f,lyftPrivacyPolicy:j}=(0,y.useContext)(et.$m),w=(0,y.useCallback)(async e=>{e.preventDefault();try{let e=new ip.Ay;s(!0);let t=(0,iH.y_)(),i={...t,browser_session_id:e.browserSessionId,email:x};await iD.Ay.post(iz.oy,{data:{url:"http://go.lyftbusiness.com/l/571903/2019-04-29/95ck4",formType:"pardot",data:i},snakeCaseRequest:!1});let n=Object.keys(t).filter(e=>t[e]).reduce((e,i)=>(e[i]=t[i],e),{}),r=(0,tj.sB)(iV,n);o.current?(o.current.action=r,o.current.submit()):window.location.assign(r)}catch(e){ee.f.incr("business.hero.pardot-form.failed"),iQ.debug(`Form was not submitted: ${e.message}`),d(!0)}finally{s(!1)}},[x]);return(0,y.useEffect)(()=>{d(!1)},[x,u]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(iJ,{email:x,formRef:o}),(0,k.jsxs)("form",{onSubmit:w,children:[(0,k.jsxs)(iX,{children:[(0,k.jsx)(iK,{children:(0,k.jsx)(L.yo,{interactiveColor:"textPrimary",children:(0,k.jsx)(L.nj,{name:"email",type:"email",value:x,label:p,onClear:()=>h(""),onFocus:()=>m(!0),brandThemed:e,required:!0,onChange:e=>h(e.target.value),fullWidth:!0})})}),(0,k.jsx)(L.Yx,{unit:"zero",unitL:"three"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(L.gT,{buttonStyle:a||(t?"primaryNeutral":"primary"),type:"submit","data-tracking-category":"Hero BusinessForm button","data-tracking-action":"click","data-tracking-label":r,"data-tracking-value":n||g,disabled:l,children:n||g})]}),(0,k.jsx)(iZ,{children:u&&(0,k.jsxs)(L.pT,{textStyle:"bodyW2",color:i,children:[f,(0,k.jsx)("a",{href:"https://www.lyft.com/privacy",target:"_blank",rel:"noopener noreferrer",title:j,children:j}),"."]})}),c&&(0,k.jsx)(L.pT,{textStyle:"bodyW2",tagName:"h1",color:"textNegative",children:iB.t()})]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]})};var i1=i(29338),i2=i(39287),i3=i(77198),i4=i(32776);let i8=(0,T.I4)(i2.k4).withConfig({componentId:"sc-497b3223-0"})(["height:100%;width:100%;max-width:","px;min-width:","px;"],L.l$.ten,L.l$.five),i6=({desktopVerticalAlign:e,desktopHorizontalAlign:t,mobileVerticalAlign:i,mobileHorizontalAlign:n,imagePlaceholder:r,embeddedVideo:a,className:o,autoplay:l,hidePlayIcon:s,playIcon:c=i8,iconColor:d})=>{let[x,h]=(0,y.useState)(!1),u=(0,L.al)({initialValue:!1,breakpoint:L.GL.s}),m=(0,y.useMemo)(()=>{if(r)return r;let e=(0,i3.Uv)(a);if(e)return{src:e}},[a,r]);return a&&m?(0,k.jsxs)("div",{className:o,children:[(0,k.jsx)(iI.w,{image:m,icon:c,aspectRatio:16/9,borderRadius:"0",onClick:()=>h(!0),iconHorizontalAlignment:u?n:t,iconVerticalAlignment:u?i:e,iconColor:d,hideIcon:s}),(0,k.jsx)(i4.z,{opened:x,onClose:()=>h(!1),autoplay:l,embeddedVideoUrl:a,imageAspectRatio:16/9,borderRadius:"0"})]}):null},i5=(0,T.I4)(z.Ay).withConfig({componentId:"sc-2ffc869f-0"})(["width:100%;"]),i7={top:"start",bottom:"end",center:"center",left:"start",right:"end"},i9=({embeddedVideo:e,header:t,placeholder:i,subheader:n,headerPlacement:r="Bottom",video:a=[],iconColor:o,referenceId:l,displayName:s,videoIsGif:c=!1,desktopVerticalAlign:d="bottom",desktopHorizontalAlign:x="left",mobileVerticalAlign:h="center",mobileHorizontalAlign:u="center",previewType:m="inline",autoplay:p=!1,buttonType:g="normal",hidePlayIcon:f=!1,fullWidth:j=!1}
23)=>{let w=(0,y.useRef)(void 0),v=(0,y.useRef)(null),b=(0,y.useMemo)(()=>e&&(0,i3.uA)(e)&&void 0!==p?(0,i3.Vc)(e,{autoplay:p,enablejsapi:!0}):e,[p,e]),C=(0,y.useCallback)(()=>{let e=()=>v?.current?.querySelector("iframe"),t=e=>{e.addEventListener("load",()=>{e.contentWindow?.postMessage('{"event":"command","func":"playVideo","args":""}',"*")})},i=new MutationObserver((i,n)=>{for(let r of i)if("childList"===r.type){let i=e();i&&(n.disconnect(),t(i))}});v.current&&(i.observe(v.current,{childList:!0,subtree:!0}),w.current=i)},[]),A=(0,y.useCallback)(()=>{"u">typeof document&&v.current&&"inline"===m&&C()},[m,C]),I="filled"===g?i2.k4:S.AYg,T="filled"===g?"gray100":"alwaysWhite",$=(t||n)&&(0,k.jsxs)(V.Ay,{colsM:7,children:[t&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"eight"}),(0,k.jsx)(B.A,{content:t,tagName:"h2",textStyle:"headlineW1"})]}),n&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(E.A,{content:n})]})]});(0,y.useEffect)(()=>{w.current&&w.current.disconnect()},[]);let M=()=>(0,k.jsx)("div",{ref:v,children:"inline"!==m&&b?(0,k.jsx)(i6,{embeddedVideo:b,imagePlaceholder:i,desktopVerticalAlign:d,desktopHorizontalAlign:x,mobileVerticalAlign:h,mobileHorizontalAlign:u,autoplay:p,hidePlayIcon:f,playIcon:I,iconColor:o||T}):(0,k.jsx)(i1.O1,{poster:i?.src,src:b,iconCoreuiColor:o||T,autoPlay:c,loop:c,muted:c,controls:!c,playButtonDesktopAlign:i7[d],playButtonDesktopJustify:i7[x],playButtonMobileAlign:i7[h],playButtonMobileJustify:i7[u],hidePlayIcon:f,customCoverIcon:I,onPlay:A,children:a.length?a.map(e=>(0,k.jsx)("source",{src:e.src},e.src)):null})});return(0,k.jsxs)(i5,{referenceId:l,trackingAction:"view",trackingCategory:"LargeVideoModule",trackingLabel:s,children:["Top"===r&&(0,k.jsxs)(k.Fragment,{children:[$,(0,k.jsx)(L.Yx,{unit:"six",vertical:!0})]}),j?M():(0,k.jsx)(V.Ay,{removeOffset:!0,children:M()}),"Bottom"===r&&$]})},ne=T.Ay.div.withConfig({componentId:"sc-d83d327f-0"})([""]),nt=T.Ay.div.withConfig({componentId:"sc-d83d327f-1"})(["@media screen and (min-width:","px){h1,h2,h3{font-style:normal;font-weight:600;font-size:73px;line-height:77px;}}"],L.GL.m),ni={hideSpacing:!0,transparentBackground:!0},nn=({displayName:e,referenceId:t,header:i,eyebrow:n,coreUITextColor:r,content:a,isSecondaryHero:o,backgroundImage:l,headerStyle:s="displayW2",videoPlayerFormVideo:c})=>(0,k.jsx)(ne,{children:(0,k.jsx)(z.Ay,{referenceId:t,trackingAction:"view",trackingCategory:"Hero",trackingLabel:e,backgroundImage:l,children:(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{cols:0,colsL:1}),(0,k.jsxs)(L.J2,{cols:12,colsM:4,children:[n&&(0,k.jsx)(eB.A,{content:n,textColor:r,removeOffset:!0,textStyle:"titleW2"}),(0,k.jsx)(nt,{children:(0,k.jsx)(B.A,{tagName:o?"h2":"h1",content:i,textStyle:s,color:r})}),a&&(0,k.jsxs)("div",{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)(E.A,{content:a,textColor:r})]}),(0,k.jsx)(L.Yx,{unit:"five",unitM:"zero",vertical:!0})]}),(0,k.jsx)(L.J2,{cols:12,colsM:7,children:(0,k.jsx)(eD.d.Provider,{value:ni,children:c&&(0,k.jsx)(i9,{...c})})})]})})});new e0.Nl({serviceUrl:"https://www.lyft.com",service:"account",requestTimeout:1e3});let nr=new e0.Nl({serviceUrl:"https://api.lyft.com",service:"account",requestTimeout:200});var na=i(94723);let no=T.Ay.div.withConfig({componentId:"sc-72f4d3de-0"})(["max-width:20rem;"]),nl=T.Ay.div.withConfig({componentId:"sc-72f4d3de-1"})(["width:100%;"]),ns=T.Ay.div.withConfig({componentId:"sc-72f4d3de-2"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:center;flex-direction:row;}"],L.GL.l),nc=T.Ay.div.withConfig({componentId:"sc-72f4d3de-3"})(["order:2;@media screen and (min-width:","px){order:1;}"],L.GL.l),nd=T.Ay.div.withConfig({componentId:"sc-72f4d3de-4"})(["order:1;display:flex;@media screen and (min-width:","px){order:2;margin-bottom:0;}"],L.GL.l),nx=({useBrandThemedInput:e,formCtaText:t,useLightColor:i,displayName:n,coreUITextColor:r,ctaStyle:a,defaultPhoneCountry:o})=>{let[l,s]=(0,y.useState)(""),{heroFormPhonePlaceholder:c,riderAutoSubmitCta:d,riderAutoSubmitInfoText:x}=(0,y.useContext)(et.$m),h=(0,y.useMemo)(()=>{let e=L.PS.icons.findIndex(e=>e.label===o);return -1===e?L.PS.US_COUNTRY_IDX:e},[o]),u=async e=>{e.preventDefault();let t=await nr.post("/v1/autosubmittoken",{data:{phoneNumber:l}});window.location.href=`https://account.lyft.com/auth/verify?token=${t.data.token}&next=${encodeURIComponent("https://ride.lyft.com")}`};return(0,k.jsx)(nl,{children:(0,k.jsxs)("form",{onSubmit:u,children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)(no,{children:(0,k.jsx)(L.yo,{interactiveColor:"alwaysBlack",children:(0,k.jsx)(L.Kh,{name:"phone",label:c,options:L.PS.icons,selectedIndex:h,onClear:()=>s(""),brandThemed:e,required:!0,fullWidth:!0,onChange:(e,t)=>
23{s((0,na.H2)(t))}})})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"five"}),(0,k.jsxs)(ns,{children:[(0,k.jsxs)(nc,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five",unitL:"zero"}),(0,k.jsx)(en.$J,{buttonStyle:a||(i?"primaryNeutral":"primary"),trackingLabel:n,trackingValue:t||d,type:"submit",children:t||d})]}),(0,k.jsxs)(nd,{children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"zero",unitL:"five"}),(0,k.jsx)(E.A,{content:x,textColor:r})]})]})]})})};var nh=i(14e3);let nu=({opened:e,dismissible:t,onDismiss:i,buttonText:n,icon:r,message:a,processing:o})=>(0,k.jsx)(L.Xd,{"data-testid":"error-modal",show:e,dismissible:t,onDismiss:i,bottom:(0,k.jsx)(L.Sx,{align:"center",children:(0,k.jsx)(L.gT,{buttonStyle:"primary",onClick:i,processing:o,children:n})}),"aria-label":"Error modal",children:(0,k.jsxs)(L.UY,{align:"center",spacer:"two",children:[(0,k.jsx)(L._r,{primaryIcon:r||S.zzQ,secondaryIcon:S.l9D,sentiment:"negative"}),(0,k.jsx)(L.pT,{textAlign:"center",textStyle:"bodyW2",color:"textPrimary",children:a})]})});var nm=((d={}).default="Default",d.ctaOnMobile="CTA on mobile",d),np=i(47359),ng=i(20289);let nf=({url:e,type:t="replace",shouldRedirect:i=!0})=>{let n=(0,nh.useRouter)(),{logger:r}=(0,e5.Ul)();if((0,y.useEffect)(()=>{i&&(r.info(`Client Redirect to ${e.toString()}`),"push"===t?n.push(e):n.replace(e))},[e,t,n,r,i]),!i)return null;if(b.S$){let t=new URL(e,"https://www.lyft.com");throw r.info(`SSR Redirect to ${t.toString()}`),new ng.L(t)}return null};var ny=((x={}).PERCENT_OFF="percentOff",x.CREDIT="credit",x.FIXED_FARE="fixed_fare",x),nj=((h={}).PassengerReferralCode="p2p",h.PromoCode="b2p",h);let nw=({discountRatio:e,maxRideDiscount:t})=>e?ny.PERCENT_OFF:t?ny.FIXED_FARE:ny.CREDIT,nv=({pageMeta:e})=>e?.title?nj.PassengerReferralCode:nj.PromoCode,nb=()=>{let{code:e}=(0,H.yI)();return{termsUrl:(0,y.useMemo)(()=>(0,e7.Xs)(e),[e])}};var nC=i(94633);let nk="https://lyft.sng.link/Adnq0/xr70?_dl=lyft%3A%2F%2Fride",nS="/ride-with-lyft/fallback",nA=({supportedCoupons:e,couponHeaderOverride:t,blockNotSupportedCoupons:i=!1,formCtaTextOverride:n,couponDescriptionOverride:r,rideWithLyftLegalTextAppend:a,formType:o=nm.default,formPartnershipType:l})=>{let s=(0,np.k)(),c=(0,nh.usePathname)(),{termsUrl:d}=nb(),{rideWithLyftContext:x}=(0,nC.NM)(),{rideWithLyft:h}=(0,y.useContext)(et.$m),{couponOverrides:u}=h,m=nv(x?.passengerReferral||{}),p=!x||x.valid,g=(0,y.useMemo)(()=>!!x&&!!x.valid&&x.partnership?.partnershipType===l&&(nS===c||(e?.length?e.some(e=>e.toLowerCase()===x.code.toLowerCase()):!i)),[x,l,c,e,i]),f=(0,y.useMemo)(()=>{if(!x?.passengerReferral)return;let e=Object.keys(u).find(e=>e.toLowerCase()===x.code.toLowerCase());return e?u[e]:void 0},[u,x]),j=m===nj.PassengerReferralCode?h.p2pSubmitCta:h.submitCta,w=!!(p&&g&&x?.passengerReferral);o===nm.ctaOnMobile&&"mobile"===s&&(j=w?h.mobileCtaText.withCoupon:h.mobileCtaText.withoutCoupon),n&&(j=n);let{couponTitle:v,couponDescription:b}=(0,y.useMemo)(()=>{if(!w||!x?.passengerReferral)return{};let{amount:e,maxRideDiscount:i,currency:n,discountRatio:a,ridesValid:o=0,city:l,referringUser:s,claimabilityCopy:c}=x.passengerReferral,d=nw(x.passengerReferral),u=m===nj.PromoCode,{coupons:p}=h,{firstName:g}=s||{};switch(d){case ny.FIXED_FARE:{let a=(0,Z.VV)(e,n),s=(0,Z.VV)(i,n),d=o>1?p.p2pFixedPriceCouponWithRidesAndCityTitle:p.p2pFixedPriceCouponTitle,h=o>1?p.fixedFareCouponWithRidesTitle:p.fixedFareCouponTitle,m=1===o&&p.p2pGenericCouponDescriptionSingleRide||p.p2pGenericCouponDescription,y=t||f?.claimabilityCopy||c||(u?h:d),j=r||(u?void 0:m);return{couponTitle:(0,X.G)(y,{couponAmount:a,couponMaxDiscountPerRide:s,rides:o,region:l,firstName:g}),couponDescription:j?(0,X.G)(j,{couponAmount:a,rides:o||1,maxRideAmount:s,daysValid:14,promoCode:x.partnership?.partnershipCode||x.code}):void 0}}case ny.PERCENT_OFF:{let e=`${Math.round(100*(a||0))}%`,s=(0,Z.VV)(i,n),d=o>1&&l?p.p2pPercentOffCouponWithRidesAndCityTitle:p.p2pPercentOffCouponTitle,h=o>1?p.percentOffCouponWithRidesTitle:p.percentOffCouponTitle,m=1===o&&p.p2pGenericCouponDescriptionSingleRide||p.p2pGenericCouponDescription,y=t||f?.claimabilityCopy||c||(u?h:d),j=r||(u?void 0:m);return{couponTitle:(0,X.G)(y,{couponAmount:e,rides:o,maxRideAmount:s,region:l,firstName:g}),couponDescription:j?(0,X.G)(j,{couponAmount:e,rides:o||1,maxRideAmount:s,daysValid:14,promoCode:x.partnership?.partnershipCode||x.code}):void 0}}
23case ny.CREDIT:{let i=(0,Z.VV)(e,n),a=o>1&&l?p.p2pGenericCouponWithRidesAndCityTitle:p.p2pGenericCouponTitle,s=o>1?p.genericCouponWithRidesTitle:p.genericCouponTitle,d=1===o&&p.p2pGenericCouponDescriptionSingleRide||p.p2pGenericCouponDescription,h=t||f?.claimabilityCopy||c||(u?s:a),m=r||(u?void 0:d);return{couponTitle:(0,X.G)(h,{couponAmount:i,rides:o,region:l,firstName:g}),couponDescription:m?(0,X.G)(m,{couponAmount:i,rides:o||1,maxRideAmount:i,daysValid:14,promoCode:x.partnership?.partnershipCode||x.code}):void 0}}default:return{}}},[w,x,m,h,t,f?.claimabilityCopy,r]),C=(0,y.useMemo)(()=>{let e=[],t=h.legal,i=(0,X.G)(t.privacyPolicy||"",{termsUrl:d,buttonText:j}),n=(0,X.G)(t.textMessages||"",{buttonText:j});if(o===nm.ctaOnMobile?w&&e.push(i):e.push(i,n),!x?.passengerReferral)return e;let{city:r,termsAndConditions:a}=x.passengerReferral;return m===nj.PromoCode?[...e,f?.tosText||a]:[(0,X.G)(h.legal.p2pCouponNotes,{city:r}),(0,X.G)(h.legal.p2pTermsOfService,{termsUrl:d})]},[h,d,j,o,w,x,m,f]),k=(0,y.useMemo)(()=>a?[...C,a].filter(e=>!!e):C.filter(e=>!!e),[a,C]);return{ctaText:j,couponReferralType:m,couponTitle:v,couponDescription:b,isSupportedCoupon:g,isValidCoupon:p,hasCoupon:!!x?.code,couponTermsAndConditions:k,couponCode:x?.code}},nI={US:"US",USA:"US",CA:"CA",CAN:"CA",Canada:"CA","United States":"US"},nT={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FM:"Federated States of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Northeast",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming",ON:"Ontario"};var nL=i(26564);let nE=async(e,t)=>await nL.A.request("api/region",{params:{contains_lat:e,contains_lng:t}}),n$=async e=>{let{data:t}=await nE(e.lat,e.lng)||{},{regions:i}=t||{};if(i){let e=Object.values(i);if(e.length){let{generalName:t}=e[0],{country:i}=e[0];return"US"===i&&(i="USA"),`${t}, ${i}`}}return null},nM=async(e,t,i=[])=>{if(!i.length||!e||!t)return null;let n=(e=>{let[t="",i="",n=""]=e.split(", ").toReversed(),r=i.split(" ")[0];return[n,r=Object.keys(nT).find(e=>i===nT[e])||r,"United States"===t?"USA":t].filter(e=>e).join(", ")})(e),r=i.find(e=>e.text===n);if(r)return r;let a=await n$(t),o=i.find(e=>e.text===a);if(o)return o;let l=(e=>{let[t,i]=e.split(", ").toReversed();return i?`${i}, ${t}`:null})(n);return i.find(e=>e.text===l)},nP=({errorText:e,results:t,searchPlaceholder:i="",types:n="city"})=>{let[r,a]=(0,y.useState)(!1),o=async(e,i)=>{if(!i)return void a(!0);let{suggestionValue:n,suggestion:r}=i,o=await nM(n,r,t);o?(a(!1),window.location.assign(o.href)):a(!0)};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(iy.q,{name:"search-regions",additionalFetchParams:{types:n},inputProps:{placeholder:i},onSuggestionSelected:o,highlightFirstSuggestion:!0,clientConfigOverride:{serviceUrl:"https://www.lyft.com"},inputType:"search",required:!0}),r&&e&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(E.A,{content:e})]})]})},nN=e=>(0,k.jsx)(V.Ay,{children:(0,k.jsx)(nP,{...e})});var nW=i(75603),nR=i(43274);let n_=T.Ay.div.withConfig({componentId:"sc-c9522a63-0"})(["position:absolute;top:0;left:0;z-index:0;height:100%;width:100%;"]),nF=(0,T.Ay)(e8.Ay).withConfig({componentId:"sc-c9522a63-1"})(["position:absolute;top:0;left:0;z-index:0;height:100%;width:100%;background-repeat:no-repeat;background-size:cover;background-position:center;
23"]),nY=({isMobile:e,image:t,mobileBackgroundImage:i,videos:n,mobileVideos:r,mediaPlacement:a})=>{let o=(0,y.useRef)(null),l=(0,y.useMemo)(()=>e&&r||n||[],[e,r,n]);return((0,y.useEffect)(()=>{o.current?.load()},[l]),a!==nR.Q.BACKGROUND)?null:l.length?(0,k.jsx)(n_,{children:(0,k.jsx)(i1.Qt,{ref:o,poster:t?.src,children:l.map(e=>(0,k.jsx)("source",{...e},e.src))})}):t?.src?(0,k.jsx)(nF,{imageSrc:t.src,imageAlt:t.alt,mobileImageSrc:i?.src,mobileImageAlt:i?.alt}):null},nG=(0,T.Ay)(i1.Kf).withConfig({componentId:"sc-80567da7-0"})(["width:100%;height:100%;"]);var nO=((u=nO||{})[u.mobile=1e3]="mobile",u[u.tablet=1500]="tablet",u[u.desktop=2500]="desktop",u);let nU=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-80567da7-1"})(["width:100%;",";object-position:top;",";"],({$fitType:e})=>"contain"===e?"object-fit: contain;":"",({$fullSize:e})=>e?` 24 @media screen and (min-width: ${L.GL.l}px) { 25 height: 100%; 26 object-fit: cover; 27 } 28 `:"max-width: 100%;"),nD=({fullSize:e,lazyImage:t,videos:i,image:n})=>{let r=(0,np.k)();return i?(0,k.jsx)(nG,{poster:n?.src,children:i.map(e=>(0,k.jsx)("source",{...e},e.type))}):n?(0,k.jsx)(nU,{src:n.src,assetWidth:nO[r],alt:n.alt,loading:t?"lazy":void 0,$fitType:e?void 0:"contain",$fullSize:!!e}):null};var nH=i(42129);let nz=T.Ay.div.withConfig({componentId:"sc-69b2aad8-0"})(["display:flex;align-items:center;flex-wrap:wrap;@media screen and (max-width:","px){flex-direction:column;align-items:flex-start;}"],L.GL.l-1),nB=T.Ay.a.withConfig({componentId:"sc-69b2aad8-1"})(["display:flex;align-items:center;margin-left:","px;@media screen and (max-width:","px){margin-top:","px;margin-left:0;}"],L.l$.four,L.GL.l-1,L.l$.two),nV=({color:e,eyebrow:t,eyebrowLinkHref:i,eyebrowLinkText:n,eyebrowLinkIcon:r})=>{let a=r&&nH.Z[r];return(0,k.jsxs)(nz,{children:[(0,k.jsx)(L.pT,{textStyle:"titleW1",color:e,children:t}),i&&n&&(0,k.jsx)(L.pT,{textStyle:"bodyW2",color:e,children:(0,k.jsxs)(nB,{href:i,children:[a&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.hw,{icon:a,size:"extraSmall"}),(0,k.jsx)(L.Yx,{horizontal:!0,unit:"half"})]}),n]})})]})},nq=T.Ay.div.withConfig({componentId:"sc-a232026b-0"})(["width:100%;@include layer(1);",";",";@media screen and (min-width:","px){",";}"],({centered:e})=>e&&"text-align: center;",({$suppress:e})=>e&&` 29 text-indent: -10000px; 30 31 /** 32 * If the heading has multiple lines, DynamicContent will add a <br>, which 33 * prevents the content after it from being properly moved off the screen. 34 * Remove <br> from DOM to allow all text to be indented correctly. 35 */ 36 br { 37 display: none; 38 } 39 `,L.GL.xl-L.l$.nine,({noDesktopWrap:e})=>!!e&&"white-space: nowrap;"),nJ=T.Ay.img.withConfig({componentId:"sc-a232026b-1"})(["display:block;"]),nQ=({header:e,isSecondaryHero:t,coreUITextColor:i,centerHeading:n,textStyle:r="displayL",className:a,headerNoWrapOnDesktop:o=!1,children:l,suppressHeading:s,headerImage:c})=>e?(0,k.jsxs)(nq,{centered:n,className:a,noDesktopWrap:o,$suppress:s,children:[c&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(nJ,{...c}),(0,k.jsx)(L.Yx,{unit:"four",vertical:!0})]}),(0,k.jsx)(B.A,{content:e,tagName:t?"h2":"h1",textStyle:r,color:i}),l]}):null,nK={[nR.Q.RIGHT]:{mediaBelow:{mobile:{body:1,spacer:2,image:3},desktop:{body:1,spacer:2,image:3}},mediaOnTop:{mobile:{body:3,spacer:2,image:1},desktop:{body:1,spacer:2,image:3}}},[nR.Q.LEFT]:{mediaBelow:{mobile:{body:1,spacer:2,image:3},desktop:{body:3,spacer:2,image:1}},mediaOnTop:{mobile:{body:3,spacer:2,image:1},desktop:{body:3,spacer:2,image:1}}},[nR.Q.BACKGROUND]:{mediaBelow:{mobile:{body:1,spacer:2,image:3},desktop:{body:1,spacer:2,image:3}},mediaOnTop:{mobile:{body:1,spacer:2,image:3},desktop:{body:1,spacer:2,image:3}}}},nX={default:{mobile:{body:"auto",spacer:"0",image:"auto"},desktop:{body:"7fr",spacer:"1fr",image:"5fr"},largeDesktop:{body:"6fr",spacer:"minmax(auto, 100px)",image:"5fr"}},fullSize:{mobile:{body:"auto",spacer:"0",image:"auto"},desktop:{body:"5fr",spacer:"1fr",image:"6fr"},largeDesktop:{body:"5fr",spacer:"minmax(auto, 100px)",image:"6fr"}},wideImage:{mobile:{body:"auto",spacer:"0",image:"auto"},desktop:{body:"4fr",spacer:"1fr",image:"7fr"},largeDesktop:{body:"4fr",spacer:"minmax(auto, 100px)",image:"7fr"}},onlyContent:{mobile:{body:"auto",spacer:"0",image:"0"},desktop:{body:"1fr",spacer:"0",image:"0"}}},nZ=["body","spacer","image"],n0=(e,t)=>{let i=[...nZ].toSorted((t,i)=>e[t]-e[i]);return t?i.map(e=>`"${e}"`).join(" "):`"${i.join(" ")}"`},n1=(e,t)=>[...nZ].toSorted((e,i)=>t[e]-t[i]).map(t=>e[t]).join(" "),n2=T.Ay.div.withConfig({componentId:"sc-bc46f060-0"})(["display:grid;",";"],({$configuration:e})=>e),n3=T.Ay.div.withConfig({componentId:"sc-bc46f060-1"})(["grid-area:body;"]),n4=T.Ay.div.withConfig({componentId:"sc-bc46f060-2"})(["grid-area:spacer;"]),n8=T.Ay.div.withConfig({componentId:"sc-bc46f060-3"})(["grid-area:image;"]),n6="/ride-with-lyft",n5="/ride-with-lyft/fallback",n7={"Lyft Business | Bill":{src:"https://cdn.lyft.com/static/lpl/illustrations/v1/Logo/Bill/[email protected]",width:291,height:42,alt:"Lyft Business | Bill logo"}},n9=T.Ay.div.withConfig({componentId:"sc-fd28e506-0"})(["width:100%;"]),re=(0,T.Ay)(nW.C).withConfig({componentId:"sc-fd28e506-1"})(["position:relative;",";
39"],({$withBackgroundImage:e})=>e?` 40 align-content: center; 41 min-height: 600px; 42 `:""),rt=T.Ay.div.withConfig({componentId:"sc-fd28e506-2"})(["height:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;position:relative;z-index:100;",";@media (max-width:","px){padding:","px 0px;",";",";}@media (max-width:","px){padding:","px 0px;",";",";}",";"],({$fullSize:e,$horizontalPosition:t})=>e?` 43 padding: ${L.l$.seven}px; 44 ${"left"===t?"padding-right: 0":"padding-left: 0"}; 45 `:"",L.GL.l-1,L.l$.five,({$fullSize:e})=>e?` 46 padding-left: ${L.l$.two}px; 47 padding-right: ${L.l$.two}px; 48 `:"",({$verticalPosition:e})=>"top"===e?"padding-top: 0":"padding-bottom: 0",L.GL.m-1,L.l$.four,({$fullSize:e})=>e?` 49 padding-left: ${L.l$.two}px; 50 padding-right: ${L.l$.two}px; 51 `:"",({$verticalPosition:e})=>"top"===e?"padding-top: 0":"padding-bottom: 0",({$centerTextOnMobile:e})=>e&&` 52 @media screen and (max-width: ${L.GL.l-1}px) { 53 text-align: center; 54 }
55 `),ri=({coreUITextColor:e,children:t,backgroundColor:i,centerHeading:n,centerTextOnMobile:r,content:a,displayName:o,eyebrow:l,eyebrowLinkHref:s,eyebrowLinkIcon:c,eyebrowLinkText:d,formType:x=nR.j.NONE,header:h,headerStyle:u,headerNoWrapOnDesktop:m,image:p,isSecondaryHero:g,largeSideMedia:f,mediaOnTopMobile:y,mediaPlacement:j=nR.Q.BACKGROUND,mobileBackgroundImage:w,mobileVideo:v,referenceId:b,search:C,fullSize:S,subCopy:A,video:I,lazyImage:T=!1,customHeader:$,dontOverrideLinksColor:M,suppressHeading:P,headerLogo:N})=>{let W=(0,np.k)(),R=(e=>{if(e)return n7[e]})(N),_=x===nR.j.DRIVE_WITH_LYFT||x===nR.j.EXPRESS_DRIVE||x===nR.j.EXPRESS_DRIVE_PARTNER,F=I&&I.length>0,Y=!!(j===nR.Q.BACKGROUND&&(p||F)),G=[nR.Q.RIGHT,nR.Q.LEFT].includes(j)&&!_,O=(({fullSize:e,largeSideMedia:t,mediaOnTopMobile:i,mediaPlacement:n,hasImage:r})=>{let a=nX[(({fullSize:e,largeSideMedia:t,mediaPlacement:i,hasImage:n})=>n&&i!==nR.Q.BACKGROUND?t?"wideImage":e?"fullSize":"default":"onlyContent")({fullSize:e,largeSideMedia:t,mediaPlacement:n,hasImage:r})],o=nK[n][i?"mediaOnTop":"mediaBelow"],l=n1(a.mobile,o.mobile),s=n1(a.desktop,o.desktop),c=a.largeDesktop?n1(a.largeDesktop,o.desktop):void 0,d=n0(o.mobile,!0),x=n0(o.desktop,!1);return` 56 grid-template-columns: auto; 57 grid-template-rows: ${l}; 58 grid-template-areas: ${d}; 59 60 @media screen and (min-width: ${L.GL.l}px) { 61 grid-template-columns: ${s}; 62 grid-template-rows: auto; 63 grid-template-areas: ${x}; 64 } 65 66 @media screen and (min-width: ${L.GL.xl}px) { 67 ${c?`grid-template-columns: ${c}`:""}; 68 } 69 `})({fullSize:_||!G||S,largeSideMedia:f,mediaOnTopMobile:y,mediaPlacement:j,hasImage:!!((p||F)&&(Y||G))}),U=M?void 0:e;return(0,k.jsx)(re,{id:b,containerSpacing:(()=>{if(Y)return(0,nW.f)({hideSpacing:!1,hasBackgroundColor:!0});if(S){let e={value:0,unit:"px"};return(0,nW.f)({hideSpacing:!1,hasBackgroundColor:!!i},{desktop:{top:e,bottom:e},tablet:{...y?{top:e}:{},...y?{}:{bottom:e}},mobile:{...y?{top:e}:{},...y?{}:{bottom:e}}})}})(),testId:"hero-form-container",trackingAction:"view",trackingCategory:"Hero",trackingLabel:o,widthType:S?"maxWidth":"standard",backgroundColor:i,$withBackgroundImage:Y,children:(0,k.jsxs)(n2,{$configuration:O,children:[(0,k.jsx)(nY,{isMobile:"desktop"!==W,image:p,mobileBackgroundImage:w,videos:I,mobileVideos:v,mediaPlacement:j}),(0,k.jsx)(n3,{children:(0,k.jsxs)(rt,{$fullSize:S,$horizontalPosition:j===nR.Q.LEFT?"right":"left",$verticalPosition:y?"bottom":"top",$centerTextOnMobile:r,children:[l&&(0,k.jsxs)("div",{children:[(0,k.jsx)(nV,{color:e,eyebrow:l,eyebrowLinkHref:s,eyebrowLinkText:d,eyebrowLinkIcon:c}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}),$||(0,k.jsx)(nQ,{suppressHeading:P,centerHeading:n,coreUITextColor:e,header:h,headerNoWrapOnDesktop:m,textStyle:u||(({fullSize:e})=>e?"displayW1":"displayL")({fullSize:S}),isSecondaryHero:g,headerImage:R}),a&&(0,k.jsxs)("div",{children:[!!($||h)&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(E.A,{content:a,textColor:e,interactiveColor:U})]}),t,C?(0,k.jsxs)(n9,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five"}),(0,k.jsx)(nP,{...C})]}):null,A&&(0,k.jsxs)("div",{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(E.A,{content:A,textColor:e,interactiveColor:U})]})]})}),(0,k.jsx)(n4,{}),(0,k.jsx)(n8,{children:G&&(p||I)&&(0,k.jsx)(nD,{image:p,videos:I,fullSize:S,lazyImage:T})})]})})};var rn=i(57737),rr=i(6550);let ra=new(i(44663)).Ay({serviceUrl:"https://www.lyft.com",service:"grow",requestTimeout:1e3}),ro="/api/passenger_referrals",rl=(0,e5.tZ)({name:"grow"}),rs=async e=>{try{let t=await ra.get(`${ro}/${e}`);return{valid:!0,code:e,passengerReferral:t.data}}catch(t){return rl.warn(`Was not able to get coupon referrals for "${e}". Error: ${t.message}`),{valid:!1,code:e,passengerReferral:null}}},rc=async({localeLanguage:e,...t})=>{let i={...t,page:"invite",sms:!0};return e&&(i.localeLanguage=e===rr.o.EN?"en":e),(await ra.post(`${ro}/${t.couponCode}`,{data:i})).data};var rd=i(17108),rx=i(96968);let rh=(0,e5.tZ)({name:"hero.ride_with_lyft_hook"});
69class ru extends Error{constructor(e,t){super(t),this.type=e}}let rm=({checked:e,onChange:t,error:i,description:n})=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.D1,{id:"tos-checkbox","data-testid":"tos-checkbox",checked:e,onChange:()=>t(!e),label:(0,k.jsx)(L.pT,{textStyle:"bodyW3",tagName:"label",children:n}),verticalAlign:"start","aria-invalid":!i}),i?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"half",vertical:!0}),(0,k.jsx)(L.CV,{sentiment:"negative",icon:S.QGd,children:i})]}):null]});var rp=i(31047);let rg="https://lyft.sng.link/Adnq0/xr70?_dl=lyft%3A%2F%2Fride",rf=T.Ay.div.withConfig({componentId:"sc-dd00c4c5-0"})(["max-width:20rem;"]),ry=T.Ay.form.withConfig({componentId:"sc-dd00c4c5-1"})(["width:100%;"]),rj=T.Ay.div.withConfig({componentId:"sc-dd00c4c5-2"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:center;flex-direction:row;}"],L.GL.l),rw=T.Ay.div.withConfig({componentId:"sc-dd00c4c5-3"})(["order:2;@media screen and (min-width:","px){order:1;}"],L.GL.l),rv=T.Ay.div.withConfig({componentId:"sc-dd00c4c5-4"})(["order:1;display:flex;@media screen and (min-width:","px){order:2;margin-bottom:0;}"],L.GL.l),rb=({formCtaText:e,useLightColor:t,coreUITextColor:i,ctaStyle:n,defaultPhoneCountry:r,displayName:a,content:o,couponContent:l,showAlwaysDefaultHeader:s,validCouponCodes:c=[],p2pImage:d,image:x,couponErrorHandlerType:h="Show error modal",rideWithLyftSMSDownloadLink:u,rideWithLyftLegalTextAppend:m,rideWithLyftConfiguration:p,incentiveHeader:g,...f})=>{let[j,w]=(0,y.useState)(!1),{browserSessionId:v}=(0,er.bp)(),b=(0,np.k)(),C=(0,nh.useSearchParams)(),S=(0,nh.usePathname)(),A=eo(),{queryParams:I}=(0,t6.sq)(),{heroFormPhonePlaceholder:T,rideWithLyft:$}=(0,y.useContext)(et.$m),[M,P]=(0,y.useState)(()=>{let e=L.PS.icons.findIndex(e=>e.label===r);return -1===e?L.PS.US_COUNTRY_IDX:e}),N="mobile"===b,W=p?.formType,R=N&&W===nm.ctaOnMobile,{ctaText:_,isSupportedCoupon:F,isValidCoupon:Y,couponTitle:G,hasCoupon:O,couponTermsAndConditions:U,couponCode:D,couponDescription:H,couponReferralType:z}=nA({supportedCoupons:c,blockNotSupportedCoupons:p?.blockNotSupportedCoupons,formCtaTextOverride:e,rideWithLyftLegalTextAppend:m,formType:R?W:nm.default,couponDescriptionOverride:l,formPartnershipType:p?.partnership,couponHeaderOverride:g}),{isSubmitting:B,submitForm:V,wasSubmitted:q,phoneNumber:Q,tosChecked:K,updateValue:X,serverError:Z}=(({formType:e,couponCode:t})=>{let{asPath:i}=(0,J.useRouter)(),{rideWithLyft:n}=(0,y.useContext)(et.$m),[r,a]=(0,y.useState)(!1),[o,l]=(0,y.useState)(!1),[s,c]=(0,y.useState)(null),[d,x]=(0,y.useState)({value:""}),[h,u]=(0,y.useState)({value:!1}),m=(0,iE.No)(),{getToken:p}=(0,rx.V)(),g=(0,y.useCallback)(e=>{switch(e){case"phone":x(e=>({...e,error:void 0}));break;case"server":c(null);break;case"tos":u(e=>({...e,error:void 0}))}},[]),f=(0,y.useCallback)(async e=>{try{await rc(e)}catch(t){let e=n.genericErrorMessage;if((0,rn.d)(t))switch(t.response?.status){case 422:e=n.coupons.invalidPhoneMessage;break;case 400:e=n.coupons.couponAlreadyAppliedMessage}throw new ru("server",e)}},[n]),j=(0,y.useCallback)(async e=>{try{await (0,rd.nV)(e)}catch(t){let e=n.genericErrorMessage;throw(0,rn.d)(t)&&(e=t.response?.data?.message?.phone||e),rh.info(`RideWithLyft without coupon form was not submitted: ${t.message}`),new ru("server",e)}},[n.genericErrorMessage]),w=(0,y.useCallback)(()=>{if("p2p"===e&&!h.value)throw new ru("tos",n.tosCheckbox.requiredError)},[e,n,h.value]),v=async({heroFormId:e,queryParams:n})=>{let r=(i||"").split("?")[0];a(!0);try{if(w(),t)await f({phone:d.value,couponCode:t,...n,pathname:r,localeLanguage:m,heroFormId:e}),ee.f.incr("ride_with_lyft.with_coupon.submit.success");else{let t=await p();await j({phone:d.value,rideWithLyftForm:e,locale:m,captchaToken:t,queryParams:n}),ee.f.incr("ride_with_lyft.no_coupon.submit.success")}l(!0)}catch(e){if(e instanceof ru)switch(e.type){case"tos":u(t=>({...t,error:e.message}));break;case"phone":x(t=>({...t,error:e.message}));break;default:c(e.message),t?ee.f.incr("ride_with_lyft.with_coupon.submit.failure"):ee.f.incr("ride_with_lyft.no_coupon.submit.failure")}}a(!1)};return{isSubmitting:r,wasSubmitted:o,phoneNumber:d,tosChecked:h,updateV
69alue:(0,y.useCallback)(({field:e,value:t})=>{switch(c(null),e){case"phoneNumber":x({value:t,error:void 0});break;case"tosChecked":u({value:t,error:void 0})}},[]),serverError:s,submitForm:v,resetError:g}})({formType:z,couponCode:Y&&F?D:void 0}),ei="p2p"===z,en=ei&&d||x,el=O&&Y&&F,es=(0,y.useMemo)(()=>(({couponCode:e,downloadLinkWithCoupon:t,downloadLinkWithoutCoupon:i,downloadLinkOverridesPerCoupon:n={},deepLinkTrackingParams:r={},defaultUrl:a=rg,singularSdk:o=null})=>{let l=a;if(e){let i=Object.keys(n).find(t=>t.toLowerCase()===e.toLowerCase());l=(i?n[i]:null)||t||l}else l=i||l;return(0,ea.Hv)(l)?l=e?(0,ea.ln)(l,{appPath:(0,rp.D4)(e),deepLinkQueryParams:r,isRideWithLyftPage:!0},o):(0,ea.ln)(l,{deepLinkQueryParams:r,isRideWithLyftPage:!0},o):l})({...p,couponCode:el&&D?D:void 0,downloadLinkWithoutCoupon:u,deepLinkTrackingParams:{[ea.wF]:v},singularSdk:A}),[p,el,D,u,v,A]),ec=(0,y.useCallback)(async()=>{if(N&&W===nm.ctaOnMobile)return void window.location.assign(es);let e=(0,ea.T8)((0,tj.Mx)(I),es);if(!e.utm_source){let t=e.utm_campaign?"paid":"organic";e.utm_source="p2p"===z?"referral":t}V({heroFormId:f.id,queryParams:e})},[z,f.id,I,V,W,es,N]);(0,y.useEffect)(()=>{O&&!Y&&"Show error modal"===h&&w(!0)},[h,O,Y]);let ed=(S||"").split("?")[0]===n5,ex=(0,y.useMemo)(()=>C.toString()?`${n5}?${C.toString()}`:n5,[C]),eh=f.headerStyle||(el?"displayW2":void 0);if(q){let{successText:e}=$;return el&&(e=ei?$.coupons.p2pSuccessfulPhoneSubmit:$.coupons.successfulPhoneSubmit),(0,k.jsx)(ri,{...f,displayName:a,coreUITextColor:i,image:en,customHeader:(0,k.jsx)(nQ,{...f,header:e,coreUITextColor:i,textStyle:eh})})}let eu=G||f.header;return s&&(eu=f.header),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(nf,{shouldRedirect:!ed&&O&&Y&&!F,url:ex}),(0,k.jsx)(nu,{opened:j,onDismiss:()=>w(!1),buttonText:$.coupons.ok,message:Y?$.coupons.notSupportedErrorMessage:$.coupons.couponErrorMessage,dismissible:!1}),(0,k.jsx)(ri,{...f,displayName:a,coreUITextColor:i,content:O&&Y&&F&&H||o,image:en,customHeader:(0,k.jsx)(nQ,{...f,header:eu,coreUITextColor:i,textStyle:eh}),mediaOnTopMobile:f.mediaOnTopMobile||ei,children:(0,k.jsxs)(ry,{onSubmit:e=>{e.preventDefault(),ec()},children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),!R&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(rf,{children:(0,k.jsx)(L.yo,{interactiveColor:"alwaysBlack",children:(0,k.jsx)(L.Kh,{name:"phone","data-testid":"phone",label:T,options:L.PS.icons,selectedIndex:M,onClear:()=>X({field:"phoneNumber",value:""}),brandThemed:!1,disabled:B,required:!0,fullWidth:!0,onChange:(e,t)=>
69{X({field:"phoneNumber",value:(0,na.H2)(t)})},onCountryChange:e=>P(e)})})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}),!R&&ei&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(rm,{checked:K.value,onChange:e=>X({field:"tosChecked",value:e}),description:$.tosCheckbox.description,error:K.error}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"oneAndHalf"})]}),U.map((e,t)=>(0,k.jsxs)(y.Fragment,{children:[(0,k.jsx)(E.A,{textStyleOverride:"bodyW3",content:e,textColor:i}),t!==U.length-1&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"})]},e)),(0,k.jsx)(L.Yx,{vertical:!0,unit:"zero",unitL:"three"}),(0,k.jsxs)(rj,{children:[(0,k.jsxs)(rw,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:0===U.length?"zero":"five",unitL:"zero"}),N&&W===nm.ctaOnMobile?(0,k.jsx)(L.gT,{buttonStyle:n||(t?"primaryNeutral":"primary"),"data-tracking-label":a,"data-tracking-value":_,href:es,children:_}):(0,k.jsx)(L.gT,{processing:B,buttonStyle:n||(t?"primaryNeutral":"primary"),"data-tracking-label":a,"data-tracking-value":_,type:"submit",children:_})]}),(0,k.jsxs)(rv,{children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"zero",unitL:"five"}),(0,k.jsx)(E.A,{content:Z||Q.error||$.infoText,textColor:Z||Q.error?"sunset60":i})]})]})]})})]})};var rC=i(67899),rk=i.n(rC),rS=i(92634);let rA=T.Ay.div.withConfig({componentId:"sc-83a8e571-0"})(["max-width:20rem;"]),rI=T.Ay.div.withConfig({componentId:"sc-83a8e571-1"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:center;flex-direction:row;}"],L.GL.l),rT=T.Ay.div.withConfig({componentId:"sc-83a8e571-2"})(["order:2;@media screen and (min-width:","px){order:1;}"],L.GL.l),rL=T.Ay.div.withConfig({componentId:"sc-83a8e571-3"})(["order:1;display:flex;@media screen and (min-width:","px){order:2;margin-bottom:0;}"],L.GL.l),rE=({coreUITextColor:e,ctaStyle:t,displayName:i,formCtaText:n,isDriver:r,isDriverApplicant:a,useBrandThemedInput:o,useLightColor:l})=>{let s=(0,y.useMemo)(()=>(0,e7.Xs)(),[]),[c,d]=(0,y.useState)(""),[x,h]=(0,y.useState)(!1),u=(0,y.useContext)(et.$m),m=(0,tm.x)();(0,y.useEffect)(()=>{(0,M.c5)({event:"driver_signup_driver_pageview",variant:"control"===m?es.kI.dwlresume:es.kI.onboarding})},[m]);let p=(0,y.useCallback)(e=>{e?.preventDefault(),(({phone:e,termsUrl:t})=>{let i=new(I())(void 0),n={secure:!1,path:"/",domain:tu};i.set(es.ak,t,n),i.set(es.og,e,n)})({phone:c,termsUrl:s});let t=window.location.pathname.split("/"),i=t.slice(1,3).join(".");ee.f.incr("hero.driver-form.submit",1,{path:i});let n=t.includes(rS.Wm),r=(0,iu.parse)(window.location.search.replace("?","")),a=rk()(r,es.x3),o=a;n&&(o={...a,utm_source:rS.Wm});let l=`/drive-with-lyft${(0,iu.stringify)(o,{addQueryPrefix:!0})}`,d=e9.Ay.cookie;(0,M.c5)({event:"driver_signup_driver_phone_number_submit",tracking_id:d,variant:"control"===m?es.kI.dwlresume:es.kI.onboarding}),window.location.assign(l)},[c,s]);if(r||a){let{heroFormDriverDashboardCta:e,heroFormDriverApplicantCta:n}=u,r=a?n:e;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five"}),(0,k.jsx)(en.$J,{buttonStyle:t||(l?"primaryNeutral":"primary"),href:"/login/jump",trackingCategory:"Hero DriverForm dashboard button",trackingAction:"click",trackingLabel:i,trackingValue:r,children:r})]})}let{heroFormPhonePlaceholder:g,heroFormDriverCta:f,heroFormTerms:j,dwlHideTermsCheckboxCopy:{textMessages:w}}=u,v=(0,X.G)(w,{buttonText:n||f});return(0,k.jsxs)("form",{onSubmit:p,children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(rA,{children:(0,k.jsx)(L.yo,{interactiveColor:"alwaysBlack",children:(0,k.jsx)(L.Vl,{name:"phone",label:g,onClear:()=>d(""),brandThemed:o,required:!0,"data-testid":"phone",fullWidth:!0,onChange:(e,t)=>
69d(t.value)})})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(L.pT,{tagName:"p",textStyle:"bodyW3",color:e,children:v}),(0,k.jsx)(L.Yx,{unit:"oneAndHalf"}),(0,k.jsxs)(rI,{children:[(0,k.jsxs)(rT,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitL:"zero"}),(0,k.jsx)(en.$J,{buttonStyle:t||(l?"primaryNeutral":"primary"),type:"submit",children:n||f})]}),(0,k.jsxs)(rL,{children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"zero",unitL:"three"}),(0,k.jsx)(L.D1,{name:"tos",checked:x,required:!0,brandThemed:"textInteractive"===e,label:(0,k.jsx)(E.A,{content:j.replace("{{termsUrl}}",(0,e7.A)(s)),textColor:e}),onChange:e=>h(!!e.target.checked)})]})]})]})},r$=(0,e5.tZ)({name:"hero.drive_with_lyft_hook"}),rM=T.Ay.div.withConfig({componentId:"sc-831c82d-0"})(["max-width:20rem;"]),rP=T.Ay.form.withConfig({componentId:"sc-831c82d-1"})(["width:100%;"]),rN=T.Ay.div.withConfig({componentId:"sc-831c82d-2"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:center;flex-direction:row;}"],L.GL.l),rW=T.Ay.div.withConfig({componentId:"sc-831c82d-3"})(["order:2;@media screen and (min-width:","px){order:1;}"],L.GL.l),rR=T.Ay.div.withConfig({componentId:"sc-831c82d-4"})(["order:1;display:flex;@media screen and (min-width:","px){order:2;margin-bottom:0;}"],L.GL.l),r_=({formCtaText:e,useLightColor:t,coreUITextColor:i,ctaStyle:n,defaultPhoneCountry:r,displayName:a,content:o,...l})=>{let{termsUrl:s}=nb(),{heroFormPhonePlaceholder:c,driveWithLyft:d}=(0,y.useContext)(et.$m),{queryParams:x}=(0,t6.sq)(),{submitForm:h,isSubmitting:u,wasSubmitted:m,phoneNumber:p,updatePhoneNumber:g,serverError:f}=((e="simple")=>{let{driveWithLyft:t}=(0,y.useContext)(et.$m),[i,n]=(0,y.useState)(!1),[r,a]=(0,y.useState)(!1),[o,l]=(0,y.useState)(null),[s,c]=(0,y.useState)({value:""}),d=(0,y.useCallback)(e=>{switch(e){case"phone":c(e=>({...e,error:void 0}));break;case"server":l(null)}},[]),x=async({utmSource:i,utmCampaign:r,heroFormId:o})=>{n(!0);try{await (0,rd.nV)({phone:s.value,rideWithLyftForm:o,queryParams:{utm_source:i,utm_campaign:r}}),ee.f.incr(`drive_with_lyft.${e}.submit.success`),a(!0)}catch(i){if("phone"===i.type)c(e=>({...e,error:i.message})),r$.info(`Drive with lyft "${e}" was not submitted: ${i.message}`);else{let n=t.downloadApp.genericErrorMessage;(0,rn.d)(i)&&(n=i.response?.data?.message?.phone||n),l(n),ee.f.incr(`drive_with_lyft.${e}.submit.failure`),r$.info(`Drive with lyft "${e}" was not submitted: ${n}`)}}n(!1)};return{isSubmitting:i,wasSubmitted:r,phoneNumber:s,updatePhoneNumber:(0,y.useCallback)(e=>{l(null),c({value:e,error:void 0})},[]),serverError:o,submitForm:x,resetError:d}})(),{submitCta:j}=d.downloadApp,w=(0,y.useMemo)(()=>{let e=L.PS.icons.findIndex(e=>e.label===r);return -1===e?L.PS.US_COUNTRY_IDX:e},[r]),v=(0,y.useMemo)(()=>[(0,X.G)(d.downloadApp.legal?.privacyPolicy||"",{termsUrl:s,buttonText:j}),(0,X.G)(d.downloadApp.legal?.textMessages||"",{buttonText:j})],[j,d,s]);return m?(0,k.jsx)(ri,{...l,displayName:a,coreUITextColor:i,customHeader:(0,k.jsx)(nQ,{...l,header:d.downloadApp.successfulPhoneSubmit,coreUITextColor:i,textStyle:l.headerStyle})}):(0,k.jsx)(ri,{...l,displayName:a,coreUITextColor:i,content:o,customHeader:(0,k.jsx)(nQ,{...l,coreUITextColor:i,textStyle:l.headerStyle}),children:(0,k.jsxs)(rP,{onSubmit:e=>{e.preventDefault(),h({utmSource:(0,tj.mn)(x?.utm_source),utmCampaign:(0,tj.mn)(x?.utm_campaign),heroFormId:l.id})},children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)(rM,{children:(0,k.jsx)(L.yo,{interactiveColor:"alwaysBlack",children:(0,k.jsx)(L.Kh,{name:"phone","data-testid":"phone",label:c,options:L.PS.icons,selectedIndex:w,onClear:()=>g(""),brandThemed:!1,disabled:u,required:!0,fullWidth:!0,onChange:(e,t)=>
69{g((0,na.H2)(t))}})})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),v.map((e,t)=>(0,k.jsxs)(y.Fragment,{children:[(0,k.jsx)(E.A,{textStyleOverride:"bodyW3",content:e,textColor:i}),t!==v.length-1&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"})]},e)),(0,k.jsx)(L.Yx,{vertical:!0,unit:"zero",unitL:"three"}),(0,k.jsxs)(rN,{children:[(0,k.jsxs)(rW,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five",unitL:"zero"}),(0,k.jsx)(L.gT,{processing:u,buttonStyle:n||(t?"primaryNeutral":"primary"),"data-tracking-label":a,"data-tracking-value":j,type:"submit",children:j})]}),(0,k.jsxs)(rR,{children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"zero",unitL:"five"}),(0,k.jsx)(E.A,{content:f||p.error||d.downloadApp.infoText,textColor:f||p.error?"sunset60":i})]})]})]})})};var rF=i(75872),rY=i.n(rF),rG=i(39708);let rO=rY()(async(e,t,i)=>(await rG.A.post("/api/expressdrive/onboarding/b2b2c-partners/get-config",{data:{partnerName:e,lat:t,lng:i}})).data,{promise:!0,normalizer:JSON.stringify}),rU=T.Ay.div.withConfig({componentId:"sc-8fcf9626-0"})(["width:100%;"]),rD=({expressDrivePartnerName:e})=>{if(!e)throw Error("Missing XD partner name");let t=(0,y.useRef)({}),i=(0,y.useCallback)(async(i,n)=>{try{return(await rO(e,i,n)).skipDoFunnel&&(t.current.redirect="xd"),!0}catch{return!1}},[e]),n={textColor:es.Ah,buttonColor:es.VJ,needCarRadioSelected:!0,termsUrl:e7.WE,query:t.current,hideHaveACarRadio:!1,primaryFormSubHeaderText:"",secondaryFormSubHeaderText:"",onValidateLocation:i};return(0,k.jsx)(rU,{children:(0,k.jsx)(ty,{...n,children:(0,k.jsx)(tR,{})})})};rD.displayName="ExpressDrivePartnerForm";var rH=i(48370),rz=i.n(rH),rB=i(71950),rV=i(23227);let rq=(0,e5.tZ)({name:"hero.warwick_hook"}),rJ=T.Ay.div.withConfig({componentId:"sc-778cf519-0"})(["max-width:20rem;"]),rQ=T.Ay.form.withConfig({componentId:"sc-778cf519-1"})(["width:100%;"]),rK=T.Ay.div.withConfig({componentId:"sc-778cf519-2"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:center;flex-direction:row;}"],L.GL.l),rX=T.Ay.div.withConfig({componentId:"sc-778cf519-3"})(["order:2;@media screen and (min-width:","px){order:1;}"],L.GL.l),rZ=T.Ay.div.withConfig({componentId:"sc-778cf519-4"})(["order:1;display:flex;@media screen and (min-width:","px){order:2;margin-bottom:0;}"],L.GL.l),r0=({useLightColor:e,coreUITextColor:t,ctaStyle:i,defaultPhoneCountry:n,displayName:r,content:a,image:o,...l})=>{var s;let c,d=(0,y.useRef)(null),x=(0,J.useRouter)(),{queryParams:h}=(0,t6.sq)(),{heroFormPhonePlaceholder:u,rideWithLyft:m,partnerships:p,navbarWidget:g}=(0,y.useContext)(et.$m),{termsUrl:f}=nb(),j=(0,tj.mn)(h?.p_id)||"",w=(0,tj.mn)(h?.p_ctx)||"",v=(s={id:j,context:w},c=b.KV?rV.sP:rV.S4,(0,ea.ln)(c,{appPath:`lyft://link-account?p_id=${s.id}&p_ctx=${s.context}`}));(0,y.useEffect)(()=>{w?(0,M.in)({category:rV.IZ,label:rV.DL.LEAD_CAPTURE_SCREEN_SUCCESS}):x.replace(n6)},[w,x]);let{phoneNumber:C,updateValue:S,submitForm:A,isSubmitting:I,wasSubmitSuccessful:T,serverError:$}=(()=>{let{rideWithLyft:e}=(0,y.useContext)(et.$m),[t,i]=(0,y.useState)({value:""}),[n,r]=(0,y.useState)(!1),[a,o]=(0,y.useState)(!1),[l,s]=(0,y.useState)(null),c=(0,y.useCallback)(({value:e})=>{s(null),i({value:e,error:void 0})},[]),d=async({heroFormId:i,partnership:n,utmSource:a,utmCampaign:l})=>{r(!0);try{(0,M.w)({category:rV.IZ,action:rV.Vh.PHONE_NUMBER_SUBMITTED,value:t.value,label:n.context}),await (0,rd.nV)({phone:t.value,rideWithLyftForm:i,partnership:n,queryParams:{utm_source:a,utm_campaign:l}}),(0,M.sx)({category:rV.IZ,action:rV.Vh.SMS_SENT_SUCCESS,value:t.value,label:n.context}),o(!0)}catch(r){let i=r.response?.data?.message?.phone||e.genericErrorMessage;s(i),(0,M.sx)({category:rV.IZ,action:rV.Vh.SMS_SENT_FAIL,value:t.value,label:n.context}),rq.info(`Warwick form failed to submit: ${i}`)}r(!1)};return{phoneNumber:t,updateValue:c,submitForm:d,isSubmitting:n,wasSubmitSuccessful:a,serverError:l}})();(0,y.useEffect)(()=>{d?.current&&rz()(d.current,"input.input.input.autocomplete","off")},[d]);let P=(0,y.useMemo)(()=>{let e=L.PS.icons.findIndex(e=>e.label===n);return -1===e?L.PS.US_COUNTRY_IDX:e},[n]),N=(0,X.G)(m.legal?.privacyPolicy||"",{termsUrl:f,buttonText:m.submitCta}),W=(0,X.G)(m.legal?.textMessages||"",{buttonText:m.submitCta});if(T){let{successHeader:e,successDescription:i}=p.warwick,n=(0,X.G)(i,{phoneNumber:C.value});return(0,k.jsx)(ri,{...l,displayName:r,coreUITextColor:t,customHeader:(0,k.jsx)(nQ,{...l,header:e,coreUITextColor:t,textStyle:l.headerStyle,children:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"two"}),(0,k.jsxs)(L.aH,{vertical:!0,gap:"three",children:[(0,k.jsx)(L.pT,{textStyle:"bodyW2",children:n}),(0,k.jsx)(rB.hp,{value:v||g.ctaLink,"data-testid":"qr-code"})]})]})})})}return(0,k.jsx)(ri,{...l,displayName:r,coreUITextColor:t,content:a,image:o,customHeader:(0,k.jsx)(nQ,{...l,header:l.header,coreUITextColor:t,textStyle:l.headerStyle}),mediaOnTopMobile:l.mediaOnTopMobile,children:(0,k.jsxs)(rQ,{onSubmit:e=>{e.preventDefault();let t=(0,tj.mn)(h?.utm_source),i=(0,tj.mn)(h?.utm_campaign);A({heroFormId:l.id,utmSource:t,utmCampaign:i,partnership:{id:j,context:w}})},children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)(rJ,{children:(0,k.jsx)(L.yo,{interactiveColor:"alwaysBlack",children:(0,k.jsx)(L.Kh,{name:"phone","data-testid":"phone",label:u,options:L.PS.icons,selectedIndex:P,onClear:()=>S({field:"phoneNumber",value:""}),brandThemed:!1,disabled:I,required:!0,fullWidth:!0,ref:d,onChange:(e,t)=>
69{S({field:"phoneNumber",value:(0,na.H2)(t)})}})})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(E.A,{textStyleOverride:"bodyW3",content:N,textColor:t}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),(0,k.jsx)(E.A,{textStyleOverride:"bodyW3",content:W,textColor:t}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"zero",unitL:"three"}),(0,k.jsxs)(rK,{children:[(0,k.jsxs)(rX,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five",unitL:"zero"}),(0,k.jsx)(L.gT,{processing:I,buttonStyle:i||(e?"primaryNeutral":"primary"),"data-tracking-label":r,"data-tracking-value":m.submitCta,type:"submit",children:m.submitCta})]}),(0,k.jsxs)(rZ,{children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"zero",unitL:"five"}),(0,k.jsx)(E.A,{content:$||C.error||m.infoText,textColor:$||C.error?"sunset60":t})]})]})]})})},r1=({header:e,centerHeading:t,suppressHeading:i,className:n,headerNoWrapOnDesktop:r,isSecondaryHero:a,textStyle:o,coreUITextColor:l,children:s})=>{let c=a?"h2":"h1";return(0,k.jsxs)(nq,{centered:t,$suppress:i,className:n,noDesktopWrap:r,children:[(0,k.jsx)(E.A,{textStyleOverride:o||"displayW1",content:`<${c}>${e}</${c}>`,textColor:l}),s]})};var r2=i(10485);let r3=(0,e5.tZ)({name:"hero.runway_hook"}),r4=T.Ay.div.withConfig({componentId:"sc-73d3ddac-0"})(["max-width:20rem;"]),r8=T.Ay.form.withConfig({componentId:"sc-73d3ddac-1"})(["width:100%;"]),r6=T.Ay.div.withConfig({componentId:"sc-73d3ddac-2"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:center;flex-direction:row;}"],L.GL.l),r5=T.Ay.div.withConfig({componentId:"sc-73d3ddac-3"})(["order:2;@media screen and (min-width:","px){order:1;}"],L.GL.l),r7=T.Ay.div.withConfig({componentId:"sc-73d3ddac-4"})(["order:1;display:flex;@media screen and (min-width:","px){order:2;margin-bottom:0;}"],L.GL.l),r9=({useLightColor:e,coreUITextColor:t,ctaStyle:i,defaultPhoneCountry:n,displayName:r,content:a,image:o,...l})=>{let s=(0,y.useRef)(null),c=(0,J.useRouter)(),{queryParams:d}=(0,t6.sq)(),{heroFormPhonePlaceholder:x,rideWithLyft:h,partnerships:u,navbarWidget:m}=(0,y.useContext)(et.$m),{browserSessionId:p}=(0,y.useContext)(er.Fe),{termsUrl:g}=nb(),f=eo(),j=(0,tj.mn)(d?.p_id)||"",w=(0,tj.mn)(d?.p_ctx)||"",v=(0,y.useMemo)(()=>{var e;let t,i=(e={id:j,context:w},t=b.KV?r2.aX:r2.Ai,(0,ea.ln)(t,{appPath:`lyft://link-account?p_id=${e.id}&p_ctx=${e.context}`}));return(0,ea.ln)(i,{deepLinkQueryParams:{ssid:p||""},isRideWithLyftPage:!0},f)},[p,w,j,f]);(0,y.useEffect)(()=>{w?(0,M.in)({category:r2.c_,label:r2.BB.LEAD_CAPTURE_SCREEN_SUCCESS}):c.replace(n6)},[w,c]);let{phoneNumber:C,updateValue:S,submitForm:A,isSubmitting:I,wasSubmitSuccessful:T,serverError:$}=(()=>{let{rideWithLyft:e}=(0,y.useContext)(et.$m),[t,i]=(0,y.useState)({value:""}),[n,r]=(0,y.useState)(!1),[a,o]=(0,y.useState)(!1),[l,s]=(0,y.useState)(null),c=(0,y.useCallback)(({value:e})=>{s(null),i({value:e,error:void 0})},[]),d=async({heroFormId:i,partnership:n,utmSource:a,utmCampaign:l})=>{r(!0);try{(0,M.w)({category:r2.c_,action:r2.b5.PHONE_NUMBER_SUBMITTED,value:t.value,label:n.context}),await (0,rd.nV)({phone:t.value,rideWithLyftForm:i,partnership:n,queryParams:{utm_source:a,utm_campaign:l}}),(0,M.sx)({category:r2.c_,action:r2.b5.SMS_SENT_SUCCESS,value:t.value,label:n.context}),o(!0)}catch(r){let i=r.response?.data?.message?.phone||e.genericErrorMessage;s(i),(0,M.sx)({category:r2.c_,action:r2.b5.SMS_SENT_FAIL,value:t.value,label:n.context}),r3.info(`Runway form failed to submit: ${i}`)}r(!1)};return{phoneNumber:t,updateValue:c,submitForm:d,isSubmitting:n,wasSubmitSuccessful:a,serverError:l}})();(0,y.useEffect)(()=>{s?.current&&rz()(s.current,"input.input.input.autocomplete","off")},[s]);let P=(0,y.useMemo)(()=>{let e=L.PS.icons.findIndex(e=>e.label===n);return -1===e?L.PS.US_COUNTRY_IDX:e},[n]),N=(0,X.G)(h.legal?.privacyPolicy||"",{termsUrl:g,buttonText:h.submitCta}),W=u.runway.legal,R=(0,X.G)(W?.textMessages||h.legal?.textMessages||"",{buttonText:h.submitCta});if(T){let{successHeader:e,successDescription:i}=u.runway,n=(0,X.G)(i,{phoneNumber:C.value});return(0,k.jsx)(ri,{...l,displayName:r,coreUITextColor:t,image:o,customHeader:(0,k.jsxs)(r1,{...l,header:e,coreUITextColor:t,textStyle:l.headerStyle,children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"two"}),(0,k.jsxs)(L.aH,{vertical:!0,gap:"three",children:[(0,k.jsx)(L.pT,{textStyle:"bodyW2",children:n}),(0,k.jsx)(rB.hp,{value:v||m.ctaLink,"data-testid":"qr-code"})]})]}),dontOverrideLinksColor:!0})}return(0,k.jsx)(ri,{...l,displayName:r,coreUITextColor:t,content:a,image:o,customHeader:(0,k.jsx)(r1,{...l,header:l.header,coreUITextColor:t,textStyle:l.headerStyle}),mediaOnTopMobile:l.mediaOnTopMobile,dontOverrideLinksColor:!0,children:(0,k.jsxs)(r8,{onSubmit:e=>{e.preventDefault();let t=(0,tj.mn)(d?.utm_source),i=(0,tj.mn)(d?.utm_campaign);A({heroFormId:l.id,utmSource:t,utmCampaign:i,partnership:{id:j,context:w}})},children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(r4,{children:(0,k.jsx)(L.yo,{interactiveColor:"alwaysBlack",children:(0,k.jsx)(L.Kh,{name:"phone","data-testid":"phone",label:x,options:L.PS.icons,selectedIndex:P,onClear:()=>S({field:"phoneNumber",value:""}),brandThemed:!1,disabled:I,required:!0,fullWidth:!0,ref:s,onChange:(e,t)=>
69{S({field:"phoneNumber",value:(0,na.H2)(t)})}})})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsxs)(r6,{children:[(0,k.jsxs)(r5,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five",unitL:"zero"}),(0,k.jsx)(L.gT,{processing:I,buttonStyle:i||(e?"primaryNeutral":"primary"),"data-tracking-label":r,"data-tracking-value":h.submitCta,type:"submit",children:h.submitCta})]}),(0,k.jsxs)(r7,{children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"zero",unitL:"five"}),(0,k.jsx)(E.A,{content:$||C.error||h.infoText,textColor:$||C.error?"sunset60":t})]})]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(E.A,{textStyleOverride:"bodyW3",content:N,textColor:t}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),(0,k.jsx)(E.A,{textStyleOverride:"bodyW3",content:R,textColor:t})]})})},ae=T.Ay.div.withConfig({componentId:"sc-26b69c27-0"})(["display:inline-block;"]),at=T.Ay.div.withConfig({componentId:"sc-26b69c27-1"})(["width:100%;display:flex;flex-wrap:wrap;gap:","px;@media screen and (max-width:","px){",";}"],L.l$.two,L.GL.l-1,({$centerTextOnMobile:e})=>e&&"justify-content: center"),ai=({formCtaText:e,formCtaHref:t,formCtaAriaLabel:i,useLightColor:n,displayName:r,formSecondaryCta:a,ctaStyle:o,centerTextOnMobile:l})=>{let{browserSessionId:s}=(0,er.bp)(),c=(0,J.useRouter)(),d=eo(),x=(0,y.useMemo)(()=>{if(t)return(0,ea.Hv)(t)?(0,ea.ln)(t,{deepLinkQueryParams:{[ea.wF]:s,[ea.yb]:c.asPath.split("?")[0]}},d):t},[s,t,c.asPath,d]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsxs)(at,{$centerTextOnMobile:l,children:[(0,k.jsx)(ae,{children:(0,k.jsx)(L.gT,{buttonStyle:o||(n?"primaryNeutral":"primary"),href:x,"aria-label":i,"data-tracking-category":"Hero Link Button","data-tracking-action":"click","data-tracking-label":r,"data-tracking-value":e,children:e})}),a&&(0,k.jsx)(el,{...a,buttonStyle:a?.buttonStyle||"primaryNeutral",trackingAction:"click",trackingCategory:"Hero Secondary Link Button",trackingLabel:r,trackingValue:a?.copy,withSingularTracking:!0})]})]})},an=T.Ay.div.withConfig({componentId:"sc-faffaf11-0"})(["width:100%;"]),ar=({coreUITextColor:e,heroProps:t})=>{let{user:i}=(0,ei.D5)(),n=(0,y.useContext)(et.$m),r=i.roles??[],{query:a}=(0,J.useRouter)(),o=(0,tj.KR)(a);switch(t.formType){case nR.j.LINK:return(0,k.jsx)(ri,{...t,coreUITextColor:e,children:(0,k.jsx)(ai,{...t})});case nR.j.DRIVER:{let{formCtaText:a,useLightColor:o,displayName:l,ctaStyle:s,useThemeColor:c,backgroundColor:d}=t,x=!!(c||d||o),h=r.includes("driver")&&i.firstName?(0,k.jsx)(B.A,{content:n.heroWelcomeBackMessage.replace("{{firstName}}",i.firstName||""),tagName:"h1",textStyle:"displayW1",color:e}):void 0;return(0,k.jsx)(ri,{...t,coreUITextColor:e,customHeader:h,children:(0,k.jsx)(rE,{coreUITextColor:e,isDriver:r.includes("driver"),isDriverApplicant:r.includes("driverApplicant"),formCtaText:a,useLightColor:o,ctaStyle:s,useBrandThemedInput:x,displayName:l})})}case nR.j.DRIVE_WITH_LYFT:{let i={textColor:es.Ah,buttonColor:es.VJ,termsUrl:e7.WE,query:o,primaryFormSubHeaderText:"",secondaryFormSubHeaderText:"",...t.dwlOverrideProps};return(0,k.jsx)(ri,{...t,coreUITextColor:e,children:(0,k.jsx)(an,{children:(0,k.jsx)(ty,{...i,children:(0,k.jsx)(tR,{})})})})}case nR.j.DRIVER_APP_DOWNLOAD:{let{useLightColor:i,useThemeColor:n,backgroundColor:r}=t;return(0,k.jsx)(r_,{...t,coreUITextColor:e,useBrandThemedInput:!!(n||r||i)})}case nR.j.EXPRESS_DRIVE:{let i={...{textColor:es.Ah,buttonColor:es.VJ,termsUrl:e7.WE,query:o,hideHaveACarRadio:!1,primaryFormSubHeaderText:"",secondaryFormSubHeaderText:"",...t.dwlOverrideProps},needCarRadioSelected:!0};return(0,k.jsx)(ri,{...t,coreUITextColor:e,children:(0,k.jsx)(an,{children:(0,k.jsx)(ty,{...i,children:(0,k.jsx)(tR,{})})})})}case nR.j.EXPRESS_DRIVE_PARTNER:{let{expressDrivePartnerName:i}=t;return(0,k.jsx)(ri,{...t,coreUITextColor:e,children:(0,k.jsx)(rD,{expressDrivePartnerName:i})})}case nR.j.VIDEO_PLAYER:return(0,k.jsx)(nn,{...t,coreUITextColor:e});case nR.j.RIDER:{let{useLightColor:i}=t,{heroFormRiderCta:r,getRideCtaText:a}=n;return(0,k.jsxs)(ri,{...t,coreUITextColor:e,children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)(en.f8,{buttonStyle:i?"primaryNeutral":"primary",trackingLabel:"hero",signupCtaText:r,getRideCtaText:a,trackingValue:void 0})]})}case nR.j.RIDER_AUTO_SUBMIT:{let{formCtaText:i,useLightColor:n,displayName:r,ctaStyle:a,defaultPhoneCountry:o,useThemeColor:l,backgroundColor:s}=t;return(0,k.jsx)(ri,{...t,coreUITextColor:e,children:(0,k.jsx)(nx,{coreUITextColor:e,formCtaText:i,useLightColor:!!n,useBrandThemedInput
69:!!(l||s||n),displayName:r,ctaStyle:a,defaultPhoneCountry:o})})}case nR.j.RIDER_RIDE_WITH_LYFT:{let{useLightColor:i,useThemeColor:n,backgroundColor:r}=t;return(0,k.jsx)(rb,{...t,coreUITextColor:e,useBrandThemedInput:!!(n||r||i)})}case nR.j.WARWICK:{let{useLightColor:i,useThemeColor:n,backgroundColor:r}=t;return(0,k.jsx)(r0,{...t,coreUITextColor:e,useBrandThemedInput:!!(n||r||i)})}case nR.j.RUNWAY:{let{useLightColor:i,useThemeColor:n,backgroundColor:r}=t;return(0,k.jsx)(r9,{...t,coreUITextColor:e,useBrandThemedInput:!!(n||r||i)})}case nR.j.BUSINESS:{let{formCtaText:i,useLightColor:n,displayName:r,ctaStyle:a,useThemeColor:o,backgroundColor:l}=t;return(0,k.jsx)(ri,{...t,coreUITextColor:e,children:(0,k.jsx)(i0,{useBrandThemedInput:!!(o||l||n),formCtaText:i,useLightColor:!!n,coreUITextColor:e,displayName:r,ctaStyle:a})})}case nR.j.NONE:default:return(0,k.jsx)(ri,{...t,coreUITextColor:e})}};ar.displayName="HeroForm";let aa=e=>{let{useThemeColor:t=!1,useLightColor:i=!1}=e,n="textPrimary";return t&&!i?n="textInteractive":i&&(n="textPrimaryInverse"),(0,k.jsx)(ar,{coreUITextColor:n,heroProps:e})},ao=(0,e5.tZ)({name:"hero.ride_with_lyft_hook"});class al extends Error{constructor(e,t){super(t),this.type=e}}let as=({checked:e,onChange:t,error:i,description:n})=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.D1,{id:"tos-checkbox","data-testid":"tos-checkbox",checked:e,onChange:()=>t(!e),label:(0,k.jsx)(L.pT,{textStyle:"bodyW3",tagName:"label",children:n}),verticalAlign:"start","aria-invalid":!i}),i?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"half",vertical:!0}),(0,k.jsx)(L.CV,{sentiment:"negative",icon:S.QGd,children:i})]}):null]}),ac=T.Ay.div.withConfig({componentId:"sc-91e1a3ba-0"})(["max-width:20rem;"]),ad=T.Ay.form.withConfig({componentId:"sc-91e1a3ba-1"})(["width:100%;"]),ax=T.Ay.div.withConfig({componentId:"sc-91e1a3ba-2"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:center;flex-direction:row;}"],L.GL.l),ah=T.Ay.div.withConfig({componentId:"sc-91e1a3ba-3"})(["order:2;@media screen and (min-width:","px){order:1;}"],L.GL.l),au=T.Ay.div.withConfig({componentId:"sc-91e1a3ba-4"})(["order:1;display:flex;@media screen and (min-width:","px){order:2;margin-bottom:0;}"],L.GL.l),am=({formCtaText:e,defaultPhoneCountry:t,displayName:i,content:n,couponContent:r,showAlwaysDefaultHeader:a,validCouponCodes:o=[],p2pImage:l,image:s,couponErrorHandlerType:c="Show error modal",rideWithLyftSMSDownloadLink:d,rideWithLyftLegalTextAppend:x,rideWithLyftConfiguration:h,incentiveHeader:u,customSuccessMessage:m,...p})=>{let[g,f]=(0,y.useState)(!1),{browserSessionId:j}=(0,er.bp)(),w=(0,np.k)(),v=(0,nh.useSearchParams)(),b=(0,nh.usePathname)(),C=eo(),{queryParams:S}=(0,t6.sq)(),{heroFormPhonePlaceholder:A,rideWithLyft:I}=(0,y.useContext)(et.$m),[T,$]=(0,y.useState)(()=>{let e=L.PS.icons.findIndex(e=>e.label===t);return -1===e?L.PS.US_COUNTRY_IDX:e}),M="mobile"===w,P=h?.formType,N=M&&P===nm.ctaOnMobile,{ctaText:W,isSupportedCoupon:R,isValidCoupon:_,couponTitle:F,hasCoupon:Y,couponTermsAndConditions:G,couponCode:O,couponDescription:U,couponReferralType:D}=nA({supportedCoupons:o,blockNotSupportedCoupons:h?.blockNotSupportedCoupons,formCtaTextOverride:e,rideWithLyftLegalTextAppend:x,formType:N?P:nm.default,couponDescriptionOverride:r,formPartnershipType:h?.partnership,couponHeaderOverride:u}),{isSubmitting:H,submitForm:z,wasSubmitted:B,phoneNumber:V,tosChecked:q,updateValue:Q,serverError:K}=(({formType:e,couponCode:t})=>{let{asPath:i}=(0,J.useRouter)(),{rideWithLyft:n}=(0,y.useContext)(et.$m),[r,a]=(0,y.useState)(!1),[o,l]=(0,y.useState)(!1),[s,c]=(0,y.useState)(null),[d,x]=(0,y.useState)({value:""}),[h,u]=(0,y.useState)({value:!1}),m=(0,iE.No)(),{getToken:p}=(0,rx.V)(),g=(0,y.useCallback)(e=>{switch(e){case"phone":x(e=>({...e,error:void 0}));break;case"server":c(null);break;case"tos":u(e=>({...e,error:void 0}))}},[]),f=(0,y.useCallback)(async e=>{try{await rc(e)}catch(t){let e=n.genericErrorMessage;if((0,rn.d)(t))switch(t.response?.status){case 422:e=n.coupons.invalidPhoneMessage;break;case 400:e=n.coupons.couponAlreadyAppliedMessage}throw new al("server",e)}},[n]),j=(0,y.useCallback)(async e=>{try{await (0,rd.nV)(e)}catch(t){let e=n.genericErrorMessage;throw(0,rn.d)(t)&&(e=t.response?.data?.message?.phone||e),ao.info(`RideWithLyft without coupon form was not submitted: ${t.message}`),new al("server",e)}},[n.genericErrorMessage]),w=(0,y.useCallback)(()=>
69{if("p2p"===e&&!h.value)throw new al("tos",n.tosCheckbox.requiredError)},[e,n,h.value]),v=async({heroFormId:e,queryParams:n})=>{let r=(i||"").split("?")[0];a(!0);try{if(w(),t)await f({phone:d.value,couponCode:t,...n,pathname:r,localeLanguage:m,heroFormId:e}),ee.f.incr("ride_with_lyft.with_coupon.submit.success");else{let t=await p();await j({phone:d.value,rideWithLyftForm:e,locale:m,captchaToken:t,queryParams:n}),ee.f.incr("ride_with_lyft.no_coupon.submit.success")}l(!0)}catch(e){if(e instanceof al)switch(e.type){case"tos":u(t=>({...t,error:e.message}));break;case"phone":x(t=>({...t,error:e.message}));break;default:c(e.message),t?ee.f.incr("ride_with_lyft.with_coupon.submit.failure"):ee.f.incr("ride_with_lyft.no_coupon.submit.failure")}}a(!1)};return{isSubmitting:r,wasSubmitted:o,phoneNumber:d,tosChecked:h,updateValue:(0,y.useCallback)(({field:e,value:t})=>{switch(c(null),e){case"phoneNumber":x({value:t,error:void 0});break;case"tosChecked":u({value:t,error:void 0})}},[]),serverError:s,submitForm:v,resetError:g}})({formType:D,couponCode:_&&R?O:void 0}),X="p2p"===D,Z=X&&l||s,ei=Y&&_&&R,en=(b||"").split("?")[0]===nS,el=(0,y.useMemo)(()=>{let e=new URLSearchParams(v);return e.toString()?`${nS}?${e.toString()}`:nS},[v]),es=(0,y.useMemo)(()=>(({couponCode:e,downloadLinkWithCoupon:t,downloadLinkWithoutCoupon:i,downloadLinkOverridesPerCoupon:n={},deepLinkTrackingParams:r={},defaultUrl:a=nk,singularSdk:o=null})=>{let l=a;if(e){let i=Object.keys(n).find(t=>t.toLowerCase()===e.toLowerCase());l=(i?n[i]:null)||t||l}else l=i||l;return(0,ea.Hv)(l)?l=e?(0,ea.ln)(l,{appPath:(0,rp.D4)(e),deepLinkQueryParams:r,isRideWithLyftPage:!0},o):(0,ea.ln)(l,{deepLinkQueryParams:r,isRideWithLyftPage:!0},o):l})({...h,couponCode:ei&&O?O:void 0,downloadLinkWithoutCoupon:d,deepLinkTrackingParams:{[ea.wF]:j},singularSdk:C}),[h,ei,O,d,j,C]),ec=(0,y.useCallback)(async()=>{if(M&&P===nm.ctaOnMobile)return void window.location.assign(es);let e=(0,ea.T8)((0,tj.Mx)(S),es);if(!e.utm_source){let t=e.utm_campaign?"paid":"organic";e.utm_source="p2p"===D?"referral":t}z({heroFormId:p.id,queryParams:e})},[D,p.id,S,z,P,es,M]);(0,y.useEffect)(()=>{Y&&!_&&"Show error modal"===c&&f(!0)},[c,Y,_]);let ed=p.headerStyle||(ei?"displayW2":void 0);if(B){let{successText:e}=I;return ei&&(e=X?I.coupons.p2pSuccessfulPhoneSubmit:I.coupons.successfulPhoneSubmit),(0,k.jsx)(ri,{...p,mediaPlacement:nR.Q.RIGHT,coreUITextColor:"textPrimary",displayName:i,image:Z,eyebrow:m?"":p.eyebrow,header:m?"":e,content:m,headerStyle:ed})}let ex=F||p.header;return a&&(ex=p.header),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(nf,{shouldRedirect:!en&&Y&&_&&!R,url:el}),(0,k.jsx)(nu,{opened:g,onDismiss:()=>f(!1),buttonText:I.coupons.ok,message:_?I.coupons.notSupportedErrorMessage:I.coupons.couponErrorMessage,dismissible:!1}),(0,k.jsx)(ri,{...p,coreUITextColor:"textPrimary",mediaPlacement:nR.Q.RIGHT,displayName:i,content:Y&&_&&R&&U||n,image:Z,header:ex,mediaOnTopMobile:p.mediaOnTopMobile||X,headerStyle:ed,children:(0,k.jsxs)(ad,{onSubmit:e=>{e.preventDefault(),ec()},children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),!N&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(ac,{children:(0,k.jsx)(L.yo,{interactiveColor:"alwaysBlack",children:(0,k.jsx)(L.Kh,{name:"phone","data-testid":"phone",label:A,options:L.PS.icons,selectedIndex:T,onClear:()=>Q({field:"phoneNumber",value:""}),brandThemed:!1,disabled:H,required:!0,fullWidth:!0,onChange:(e,t)=>
69{Q({field:"phoneNumber",value:(0,na.H2)(t)})},onCountryChange:e=>$(e)})})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}),!N&&X&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(as,{checked:q.value,onChange:e=>Q({field:"tosChecked",value:e}),description:I.tosCheckbox.description,error:q.error}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"oneAndHalf"})]}),G.map((e,t)=>(0,k.jsxs)(y.Fragment,{children:[(0,k.jsx)(E.A,{textStyleOverride:"bodyW3",content:e}),t!==G.length-1&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"})]},e)),(0,k.jsx)(L.Yx,{vertical:!0,unit:"zero",unitL:"three"}),(0,k.jsxs)(ax,{children:[(0,k.jsxs)(ah,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:0===G.length?"zero":"five",unitL:"zero"}),M&&P===nm.ctaOnMobile?(0,k.jsx)(L.gT,{buttonStyle:"primary","data-tracking-label":i,"data-tracking-value":W,href:es,children:W}):(0,k.jsx)(L.gT,{processing:H,buttonStyle:"primary","data-tracking-label":i,"data-tracking-value":W,type:"submit",children:W})]}),(0,k.jsxs)(au,{children:[(0,k.jsx)(L.Yx,{horizontal:!0,unit:"zero",unitL:"five"}),(0,k.jsx)(E.A,{content:K||V.error||I.infoText,textColor:K||V.error?"sunset60":void 0})]})]})]})})]})},ap=({displayName:e,header:t,content:i})=>(0,k.jsxs)(z.Ay,{trackingAction:"view",trackingCategory:"HtmlContent",trackingLabel:e,children:[t&&(0,k.jsx)(z.w,{header:t}),i]}),ag=(0,T.Ay)(e8.Ay).withConfig({componentId:"sc-e8c6bbc7-0"})(["height:375px;@media screen and (min-width:","px){height:530px;}"],L.GL.m),af=({images:e=[],referenceId:t,displayName:i})=>(0,k.jsx)(z.Ay,{referenceId:t,trackingAction:"view",trackingCategory:"ImageCarousel",trackingLabel:i,children:(0,k.jsx)(L.yL,{buttonStyle:"compact",children:e.map(({src:e,alt:t})=>(0,k.jsx)(ag,{imageSrc:e,title:t},e))})});var ay=i(75579),aj=i(86192),aw=i(81512),av=i(54547);let ab=T.I4.strong.withConfig({componentId:"sc-59fa835d-0"})(["color:",";"],L.ml.textPositive.color),aC=T.I4.span.withConfig({componentId:"sc-59fa835d-1"})(["text-decoration:line-through;"]),ak=T.I4.span.withConfig({componentId:"sc-59fa835d-2"})(["height:16px;width:16px;display:inline-flex;align-items:center;justify-content:center;vertical-align:-3px;margin-left:2px;"]),aS=({displayPrice:e,displaySubtext:t,estimatedRange:i,isDiscounted:n,originalPrice:r,promoOffers:a})=>{let o=n?(0,aw.FH)(av.Sx.t({data:{discountedPrice:e,originalPrice:r}}),{PositiveText:(0,k.jsx)(ab,{"data-testid":"discounted-price"}),StrikethroughText:(0,k.jsx)(aC,{"data-testid":"original-price"})}):av.lO.t({data:{price:e}}),[l,s]=(0,y.useState)(!1),[c,d]=(0,y.useState)(!1),x=e=>{e.stopPropagation()};return(0,y.useEffect)(()=>{d(!0)},[]),(0,k.jsxs)(L.aH,{vertical:!0,children:[(0,k.jsxs)(L.pT,{textStyle:"titleW3",color:"textPrimary",tagName:"p",children:[o,c&&n&&(0,k.jsx)(ak,{children:(0,k.jsx)(L.Ve,{iconSize:"extraSmall",compact:!0,"aria-label":av.Se.t(),icon:S.mJl,onClick:e=>{e.stopPropagation(),K.CC.send({sending_service:"lyftcomfe",eventName:"www_modal_view",modal_type:"express_drive_promo_details"}),s(!0)},label:av.Se.t()})})]}),n&&(0,k.jsx)(L.Xd,{show:l,onDismiss:()=>s(!1),bottom:(0,k.jsx)(L.gT,{buttonStyle:"primary",fullWidth:!0,onClick:()=>s(!1),children:av.OK.t()}),onPointerDown:x,onBlur:x,onFocus:x,onClick:x,"aria-label":"",children:a.map((e,t)=>(0,k.jsx)("div",{dangerouslySetInnerHTML:{__html:e.termsHtml}},t))}),t&&(0,k.jsx)(L.pT,{textStyle:"bodyW3",color:"textPositive",tagName:"p",children:t}),null!==i&&i>0&&(0,k.jsxs)(L.aH,{alignItems:"center",justifyContent:"center",children:[(0,k.jsx)(L.hw,{icon:S.TAP,color:"iconSecondary",size:"extraSmall"}),(0,k.jsx)(L.Yx,{horizontal:!0,unit:"one"}),(0,k.jsx)(L.pT,{textStyle:"bodyW3",color:"textSecondary",tagName:"p",children:av.X.t({data:{miles:i}})})]})]})};aS.displayName="VehicleClassDisplayPrice";let aA=T.I4.div.withConfig({componentId:"sc-48df2eb1-0"})(["@media screen and (max-width:","px){width:",";height:","px;}@media screen and (min-width:","px) and (max-width:","px){width:",";height:","px;}@media screen and (min-width:","px){width:","px;height:","px;}position:relative;border:none;border-radius:","px;background:white;transition-duration:","ms;display:flex;align-items:center;flex-direction:column;padding:","px ","px;text-align:center;"," ",";"],L.GL.s,e=>e.$fullWidthOnMobile?"100%":`${function({isExpanded:e,isLargeMobileCard:t}){return e?280:t?260:212}(e)}px`,e=>(function({isExpanded:e,isLargeMobileCard:t}){return e?343:t?284:256})(e),L.GL.s+1,L.GL.l-1,e=>e.$fullWidthOnMobile?"100%":`${e.isExpanded?"374":"280"}px`,e=>e.isExpanded?"366":"284",L.GL.l,e=>e.isExpanded?"374":"280",e=>e.isExpanded?"366":"284",L.l$.two,L.ol.durations.short,L.l$.three,L.l$.two,e=>e.isExpandable?` 70 & :hover { 71 cursor: pointer; 72 }`:"",({isExpanded:e})=>e&&"justify-content: center;"),aI=(0,T.I4)(ej.Ay).withConfig({componentId:"sc-48df2eb1-1"})(["@media screen and (max-width:","px){width:101px;height:80px;display:",";}@media screen and (min-width:","px){width:122px;height:96px;}"],L.GL.s,e=>
72e.isExpanded?"none":"block",L.GL.s+1),aT=T.I4.div.withConfig({componentId:"sc-48df2eb1-2"})(["margin-left:","px;margin-right:","px;"],L.l$.three,L.l$.three),aL=(0,T.I4)(ej.Ay).withConfig({componentId:"sc-48df2eb1-3"})(["display:block;width:100%;height:100%;"," object-fit:contain;"],({aspectRatio:e})=>e?`aspect-ratio: ${e};`:""),aE=T.I4.div.withConfig({componentId:"sc-48df2eb1-4"})(["display:flex;align-items:center;min-height:","px;height:","px;"],L.l$.five+L.l$.half,L.l$.five+L.l$.half),a$=T.I4.div.withConfig({componentId:"sc-48df2eb1-5"})(["text-align:center;@media screen and (max-width:","px){width:200px;}@media screen and (min-width:","px){width:342px;}"],L.GL.s,L.GL.s+1),aM=T.I4.span.withConfig({componentId:"sc-48df2eb1-6"})(["border-radius:","px;border:1px solid ",";padding:0 ","px;position:absolute;background-color:",";top:","px;right:","px;@media screen and (min-width:","px){top:","px;right:","px;}"],L.l$.three,L.ml.pink60.color,L.l$.one,L.ml.pink0.color,L.l$.one,L.l$.one,L.GL.s+1,L.l$.two,L.l$.two),aP=({autoSizeImages:e=!1,autoSizeImagesAspectRatio:t,title:i,copy:n,expandedCopy:r,ctaTrackingCategory:a="InfoCardCarouselEntryCTA",ctaCopy:o,ctaHref:l,image:s,tag:c,expandable:d,onKeyboardFocus:x,displayName:h,largeMobileCards:u=!1,fullWidthOnMobile:m})=>{let[p,g]=(0,y.useState)(!1),f=(0,y.useRef)(null),j=(0,y.useRef)(null),w=(0,y.useRef)(null),v=(0,y.useRef)(!1),b=d&&!!r,{FocusRing:C,props:S}=(0,L.og)({ref:f});(0,y.useEffect)(()=>{let e=e=>{f.current&&(e.composedPath().includes(f.current)||g(!1)),j.current&&w.current===j.current&&("#"===l?(0,aj.e)():j?.current?.click()),w.current=null};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[l]);let A=(0,y.useMemo)(()=>r?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"}),"string"==typeof r?(0,k.jsx)(a$,{children:(0,k.jsx)(E.A,{content:r,textStyleOverride:"subtitleW2",textColor:"textSecondary"})}):(0,k.jsx)(aS,{displayPrice:r.displayPrice,displaySubtext:r.displaySubtext,isDiscounted:r.isDiscounted,originalPrice:r.originalPrice,estimatedRange:r.estimatedRange,promoOffers:r.promoOffers},"same-as-expanded"),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"half"}),l&&o&&(0,k.jsx)(en.z4,{ref:e=>{e&&(j.current=e.button)},href:l,"data-tracking-category":a,onClick:e=>{"#"===l&&e.preventDefault()},color:"red50",children:o})]}):null,[o,l,a,r]),I=null;return s&&(I=e?(0,k.jsx)(aT,{children:(0,k.jsx)(aL,{"data-testid":"image",...s,aspectRatio:t})}):(0,k.jsx)(aI,{"data-testid":"image",...s,isExpanded:p})),(0,k.jsx)(C,{...S,children:(0,k.jsxs)(aA,{ref:f,as:b?"button":"div",isExpanded:p,isExpandable:b,isLargeMobileCard:u,onPointerDown:()=>{v.current=!0},onBlur:()=>{v.current=!1},onFocus:e=>{w.current=e.target,v.current||x?.()},onClick:()=>{b&&g(!p)},"aria-expanded":p,"data-tracking-category":"InfoCardCarouselEntry","data-tracking-label":h,"data-tracking-action":"click","data-tracking-value":i,"data-testid":"card",$fullWidthOnMobile:m,children:[(0,k.jsx)(aE,{children:(0,k.jsx)(L.pT,{textStyle:"headlineW3",textAlign:"center","data-testid":"text",color:"textPrimary",children:i})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),I,p?A:(0,k.jsxs)(k.Fragment,{children:[c&&(0,k.jsx)(aM,{children:(0,k.jsx)(L.pT,{textStyle:"subtitleW3",color:"pink60",children:c})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),"string"==typeof n?(0,k.jsx)(E.A,{content:n,textStyleOverride:"subtitleW3",textColor:"textSecondary"}):(0,k.jsx)(aS,{displayPrice:n.displayPrice,displaySubtext:n.displaySubtext,isDiscounted:n.isDiscounted,originalPrice:n.originalPrice,estimatedRange:n.estimatedRange,promoOffers:n.promoOffers},"same-as-expanded")]})]})})},aN=W._t("pdoypm",""),aW=W._t("uhfm62",""),aR=L.l$.one,a_=T.I4.div.withConfig({componentId:"sc-4ca28619-0"})([""," ",""],(n=L.ml.surfaceInteractive.color,(0,T.AH)(["position:relative;&:focus:not(.focus-visible){outline:none;}&.focus-visible:not(:disabled):not([disabled]):focus{outline:1px solid ",";outline-offset:1px;&::after{content:'';position:absolute;top:-","px;left:-","px;bottom:-","px;right:-","px;box-shadow:0 0 0 3px ",";opacity:0.3;pointer-events:none;}}"],()=>n,2,2,2,2,()=>n)),({$stackedMobile:e})=>e&&(0,T.AH)(["@media screen and (max-width:","px){margin-top:","px;}"],L.GL.l-1,L.l$.four)),aF=T.I4.div.withConfig({componentId:"sc-4ca28619-1"})(["width:100%;position:relative;"]),aY=T.I4.div.withConfig({componentId:"sc-4ca28619-2"})(["@media screen and (max-width:","px){height:374px;}@media screen and (min-width:","px){height:400px;}position:relative;display:flex;justify-content:",";align-items:center;will-change:transform;transition-timing-function:",";transition-duration:","ms;",""],L.GL.s,L.GL.s+1,({$justifyContent:e})=>e,L.ol.curves.change,L.ol.durations.long,({$stackedMobile:e})=>e&&(0,T.AH)(["@media screen and (max-width:","px){flex-direction:column;align-items:stretch;justify-content:flex-start !important;height:auto !important;transform:none !important;}"],L.GL.l-1)),aG=T.I4.div.withConfig({componentId:"sc-4ca28619-3"})(["flex:0 0 auto;max-width:100%;margin-right:","px;user-select:none;overflow:hidden;img{pointer-events:none;}
72box-shadow:",";border-radius:","px;",""],L.l$.one,L.R4.level2.shadow,L.l$.two,({$stackedMobile:e})=>e&&(0,T.AH)(["@media screen and (max-width:","px){width:100%;margin-right:0;margin-bottom:","px;&:last-child{margin-bottom:","px;}}"],L.GL.l-1,L.l$.two,L.l$.half)),aO=T.I4.div.withConfig({componentId:"sc-4ca28619-4"})(["margin:0 ","px;will-change:transform;"],L.l$.three),aU=T.I4.div.withConfig({componentId:"sc-4ca28619-5"})(["display:flex;align-items:center;flex-wrap:wrap;flex-direction:column;justify-content:center;@media screen and (min-width:","px){justify-content:",";flex-direction:",";gap:","px;}"],L.GL.l,({$textAlignment:e})=>"center"===e?"center":"space-between",({$textAlignment:e})=>"center"===e?"column":"row",L.l$.two),aD=T.I4.div.withConfig({componentId:"sc-4ca28619-6"})(["display:flex;align-items:center;justify-content:center;margin-top:","px;",""],L.l$.three,({$hideOnMobile:e})=>e&&(0,T.AH)(["@media screen and (max-width:","px){display:none;}"],L.GL.l-1)),aH=T.I4.div.withConfig({componentId:"sc-4ca28619-7"})(["display:flex;flex-direction:column;text-align:",";@media screen and (min-width:","px){margin-bottom:","px;}"],({$textAlignment:e})=>e,L.GL.l,L.l$.two),az=T.I4.div.withConfig({componentId:"sc-4ca28619-8"})(["text-align:",";"],({$textAlignment:e})=>e),aB=T.I4.div.withConfig({componentId:"sc-4ca28619-9"})(["overflow:hidden;"]),aV=T.I4.div.withConfig({componentId:"sc-4ca28619-10"})(["text-align:",";@media screen and (max-width:","px){display:none;}"],({$textAlignment:e})=>e,L.GL.l-1),aq=T.I4.div.withConfig({componentId:"sc-4ca28619-11"})(["text-align:",";@media screen and (min-width:","px){display:none;}"],({$textAlignment:e})=>e,L.GL.l);class aJ extends y.Component{componentDidMount(){this.initFixedPageWidths(),window.addEventListener("resize",this.initFixedPageWidths)}componentWillUnmount(){window.removeEventListener("resize",this.initFixedPageWidths)}render(){let{autoSizeImages:e,autoSizeImagesAspectRatio:t,entries:i,legalText:n,header:r,subheader:a,subheaderStyle:o="subtitleW2",textAlignment:l="left",surroundingTextColor:s,backgroundColor:c,displayName:d,expandable:x=!0,largeMobileCards:h,referenceId:u,mobileRenderType:m="carousel"}=this.props,p="stacked"===m,{pageIndex:g,offset:f,enableRightButton:y,showControls:j}=this.state,w=this.getPageCount(),v=this.renderCtaButton(),b=v&&(0,k.jsx)(aq,{$textAlignment:l,children:v});return(0,k.jsx)(z.Ay,{referenceId:u,backgroundColor:c,trackingAction:"view",trackingCategory:"InfoCardCarousel",trackingLabel:d,children:(0,k.jsx)(aB,{children:(0,k.jsx)(V.Ay,{children:(0,k.jsxs)("div",{role:"group","aria-roledescription":"carousel","aria-label":"Slides",children:[(0,k.jsxs)(aU,{$textAlignment:l,children:[(0,k.jsxs)(aH,{$textAlignment:l,children:[r&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(B.A,{content:r,tagName:"h2",textStyle:"headlineW1",color:s}),(0,k.jsx)(L.Yx,{vertical:!0,unitM:j?"one":"three",unitS:j&&!a?"zero":"two"})]}),a&&(0,k.jsx)(E.A,{content:a,textStyleOverride:o,textColor:s})]}),v&&(0,k.jsx)(aV,{$textAlignment:l,children:v}),j&&(0,k.jsxs)(aD,{$hideOnMobile:p,children:[(0,k.jsx)(aO,{children:(0,k.jsx)(L.Ve,{"aria-label":aW.t(),icon:S.Gk,onClick:this.moveLeft,iconSize:"medium",disabled:0===g,label:aW.t()})}),(0,k.jsx)(aO,{children:(0,k.jsx)(L.r3,{"aria-label":aN.t(),icon:g===w-1?S.VsF:S.hIg,buttonStyle:"primary",onClick:this.moveRight,disabled:!y,label:aN.t()})})]})]}),p&&b,(0,k.jsx)(a_,{tabIndex:0,onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,$stackedMobile:p,children:(0,k.jsx)(aF,{children:(0,k.jsx)(aY,{ref:e=>{this.scrollWrapperRef=e},style:{transform:`translate(${-f}px)`},$justifyContent:3!==i.length||h?"flex-start":"space-between",$stackedMobile:p,children:i.map((n,r)=>(0,k.jsx)(aG,{"aria-label":`${r+1} of ${i.length}`,role:"tabpanel",$stackedMobile:p,children:(0,k.jsx)(aP,{...n,autoSizeImages:e,autoSizeImagesAspectRatio:t,expandable:x,onKeyboardFocus:()=>this.moveToIndex(r),largeMobileCards:h,fullWidthOnMobile:p})},n.id))})})}),!p&&b,n&&(0,k.jsx)(az,{$textAlignment:l,children:(0,k.jsx)(E.A,{content:n,interactiveColor:s,textStyleOverride:"bodyW3",textColor:"textSecondary"})})]})})})})}constructor(...e){super(...e),this.scrollWrapperRef=null,this.state={offset:0,pageIndex:0,fixedPageWidths:[],startIndex:0,startOffset:0,startPosition:0,startTimestamp:0,enableRightButton:!0,showControls:!0},this.initFixedPageWidths=()=>
72{if(!this.scrollWrapperRef)return;let{showArrows:e=!0}=this.props,t=[];Array.from(this.scrollWrapperRef.children).forEach(e=>{let i=e.getBoundingClientRect().width+aR;t.push(i)});let i=this.scrollWrapperRef.scrollWidth-this.scrollWrapperRef.offsetWidth;this.setState({fixedPageWidths:t,showControls:e&&i>0},()=>this.setScrollOffset(this.state.offset))},this.getPageCount=()=>this.state.fixedPageWidths.length,this.setScrollOffset=e=>{let{fixedPageWidths:t}=this.state;if(!this.scrollWrapperRef)return;let i=Math.max(Math.min(e,this.scrollWrapperRef.scrollWidth-this.scrollWrapperRef.offsetWidth),0),n=0;if(this.scrollWrapperRef){n=t.length-1;let e=i;for(let i=0;i<t.length;i+=1){if(e<=0){n=i;break}e-=t[i]}}this.setState({offset:i,pageIndex:n,enableRightButton:e+this.scrollWrapperRef.offsetWidth<this.scrollWrapperRef.scrollWidth})},this.moveToIndex=e=>{let t=0;for(let i=0;i<e;i+=1)t+=this.state.fixedPageWidths[i]||0;this.setScrollOffset(t)},this.moveLeft=()=>{this.moveToIndex(this.state.pageIndex-1)},this.moveRight=()=>{this.state.pageIndex!==this.getPageCount()-1&&this.moveToIndex(this.state.pageIndex+1)},this.dragStart=(e,t)=>{this.scrollWrapperRef&&(this.scrollWrapperRef.style.transitionProperty="none",this.setState(i=>({startIndex:i.pageIndex,startOffset:i.offset,startPosition:e,startTimestamp:t})))},this.dragMove=(e,t)=>{this.setScrollOffset(this.state.startOffset+this.state.startPosition-e);let i=e-this.state.startPosition,n=t-this.state.startTimestamp;if(this.scrollWrapperRef){let e=this.scrollWrapperRef.offsetWidth;n>500&&Math.abs(i)<e/3?(this.scrollWrapperRef.style.transitionDuration=`${L.ol.durations.medium}ms`,this.scrollWrapperRef.style.transitionTimingFunction=L.ol.curves.exit):(this.scrollWrapperRef.style.transitionDuration=`${L.ol.durations.long}ms`,this.scrollWrapperRef.style.transitionTimingFunction=L.ol.curves.change)}},this.dragEnd=(e,t)=>{if(!this.scrollWrapperRef)return;this.scrollWrapperRef.style.transitionDuration=`${L.ol.durations.long}ms`,this.scrollWrapperRef.style.transitionTimingFunction=L.ol.curves.change,this.scrollWrapperRef.style.transitionProperty="transform";let i=e-this.state.startPosition,n=t-this.state.startTimestamp,r=0;r=n<500&&Math.abs(i)>20?this.state.startIndex-Math.sign(i):this.state.pageIndex,this.moveToIndex(r)},this.onKeyDown=e=>{37===e.keyCode?this.moveLeft():(39===e.keyCode||32===e.keyCode)&&this.moveRight()},this.onMouseDown=e=>{this.dragStart(e.screenX,e.timeStamp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)},this.onMouseMove=e=>{this.dragMove(e.screenX,e.timeStamp)},this.onMouseUp=e=>{document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.dragEnd(e.screenX,e.timeStamp)},this.onTouchStart=e=>{this.dragStart(e.changedTouches[0].screenX,e.timeStamp),document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd)},this.onTouchMove=e=>{this.dragMove(e.changedTouches[0].screenX,e.timeStamp)},this.onTouchEnd=e=>{document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),this.dragEnd(e.changedTouches[0].screenX,e.timeStamp)},this.renderCtaButton=()=>{let{ctaStyle:e,ctaType:t="text",ctaAriaLabel:i,surroundingTextColor:n,displayName:r,ctaCopy:a,ctaHref:o}=this.props;return o&&a?(0,k.jsx)(ay.l,{interactiveColor:n,children:(0,k.jsx)(en.$J,{href:o,buttonStyle:e,textButton:"text"===t,"aria-label":i,trackingCategory:"InfoCardCarousel",trackingLabel:r,trackingValue:a,children:a})}):null}}}var aQ=i(77328),aK=i.n(aQ),aX=i(7950);let aZ=({jsonString:e})=>{let t=y.useContext(aX._),i=(0,X.G)(e,t);return(0,k.jsx)(aK(),{children:(0,k.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:i}})})};aZ.description="Add a JSON+LD tag by providing raw JSON to define the object in the graph.";let a0=y.memo(aZ);var a1=((m={}).headline1="displayW1",m.headline3="displayW2",m.subhead1="headlineW1",m.subhead3="headlineW2",m.body1="headlineW3",m.body3="titleW2",m),a2=((p={}).headline1="displayW1",p.subhead1="headlineW1",p),a3=((g={}).subhead3="headlineW2",g.legal="bodyW3",g);let a4=(0,T.I4)(e8.Ay).withConfig({componentId:"sc-7b6c2f70-0"}
72)(["height:390px;@media screen and (min-width:","px){height:650px;}"],L.GL.m),a8=(0,T.I4)(ej.Ay).withConfig({componentId:"sc-7b6c2f70-1"})(["width:100%;height:auto;"]),a6=T.I4.div.withConfig({componentId:"sc-7b6c2f70-2"})(["width:100%;"]),a5=({header:e,images:t=[],subheader:i,referenceId:n,displayTextAboveImage:r,imageHref:a,mobileImage:o,displayName:l,ctaText:s,ctaHref:c,textViewType:d="rows"})=>{let x;if(1===t.length){let e=(0,k.jsx)(a8,{src:t[0].src,alt:t[0].alt,height:t[0].height,width:t[0].width,loading:"lazy",media:`(max-width:${L.GL.m}px)`,mobileImage:o});x=a?(0,k.jsx)("a",{href:a,children:e}):e}else x=(0,k.jsx)(L.yL,{buttonStyle:"compact",children:t.map(({src:e,alt:t})=>(0,k.jsx)(a4,{imageSrc:e,title:t},e))});let h=c&&s?(0,k.jsx)(en.$J,{buttonStyle:"primary",href:c,trackingCategory:"Large image module cta",trackingLabel:l,trackingValue:s,textButton:!0,children:s}):null,u=()=>e||i?"rows"===d?(0,k.jsxs)(L.J2,{cols:12,children:[!r&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"four"}),e&&(0,k.jsx)(L.pT,{tagName:"h2",textStyle:"headlineW1",children:e}),e&&i&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),i&&(0,k.jsx)(E.A,{content:i}),h,r&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"eight"})]}):(0,k.jsxs)(k.Fragment,{children:[!r&&(0,k.jsx)(L.J2,{cols:12,children:(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"four"})}),e&&(0,k.jsx)(L.J2,{cols:4,colsM:i?4:12,children:(0,k.jsx)(L.pT,{tagName:"h2",textStyle:a2.subhead1,children:e})}),(i||h)&&(0,k.jsxs)(L.J2,{cols:4,colsM:e?8:12,children:[i&&(0,k.jsx)(E.A,{content:i}),i&&h&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),h]}),r&&(0,k.jsx)(L.J2,{cols:12,children:(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"four"})})]}):null;return(0,k.jsx)(z.Ci,{id:n,trackingAction:"view",trackingCategory:"LargeImageModule",trackingLabel:l,children:(0,k.jsxs)(L.en,{noMargins:!0,children:[r&&u(),(0,k.jsx)(L.J2,{cols:12,children:(0,k.jsx)(a6,{children:x})}),!r&&u()]})})},a7=(0,T.I4)(E.A).withConfig({componentId:"sc-9fb3edc7-0"})(["text-align:",";"],({alignment:e})=>e),a9=({header:e,content:t,useGreyBackground:i,referenceId:n="",displayName:r,textStyleOverride:a="bodyW3",textAlignment:o="left",contextHighestHeadingLevel:l=2})=>(0,k.jsx)(z.Ay,{referenceId:n,useGreyBackground:i,trackingAction:"view",trackingCategory:"LegalText",trackingLabel:r,children:(0,k.jsxs)(V.Ay,{children:[e&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{textStyle:"titleW1",children:e}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"})]}),(0,k.jsx)(a7,{content:t,textStyleOverride:a,highestHeadingLevel:l,alignment:o})]})}),oe=T.I4.li.withConfig({componentId:"sc-35ef01a4-0"})(["&:not(:last-child){padding-bottom:","px;@media screen and (min-width:","){padding-bottom:","px;}}"],L.l$.four,L.GL.m,L.l$.five),ot=({text:e,href:t})=>{let i=t?(0,k.jsx)("a",{href:t,children:e}):e;return(0,k.jsxs)(oe,{children:[(0,k.jsx)(L.pT,{textStyle:"headlineW1",children:i}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"five",unitM:"six"}),(0,k.jsx)(L.J8,{type:"item","aria-hidden":"true"})]},e)},oi=T.I4.ul.withConfig({componentId:"sc-106e65b8-0"})(["list-style:none;margin:0;padding:0;border:0;font:inherit;vertical-align:baseline;"]),on=({referenceId:e,entries:t=[],eyebrow:i,displayName:n})=>(0,k.jsxs)(z.Ay,{referenceId:e,trackingAction:"view",trackingCategory:"LinkList",trackingLabel:n,children:[i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(eB.A,{content:i,tagName:"h2",noMargin:!0}),(0,k.jsx)(L.Yx,{horizontal:!0,unit:"one",unitM:"half"})]}),(0,k.jsxs)(V.Ay,{children:[t.length>0&&(0,k.jsx)(L.Yx,{horizontal:!0,unit:"four",unitM:"five"}),(0,k.jsx)(oi,{children:t.map(e=>(0,y.createElement)(ot,{...e,key:e.text}))})]})]});on.description="A stack of links";var or=i(83623);let oa=(0,T.AH)(["display:none;"]),oo=T.I4.div.withConfig({componentId:"sc-6a031e7d-0"})(["@media screen and (max-width:","px){border-bottom:1px solid ",";.mobile-heading-wrapper{",";}}"],L.GL.m-1,L.ml.strokeTertiary.color,({first:e})=>e?"padding-top: 0":""),ol=T.I4.div.withConfig({componentId:"sc-6a031e7d-1"})(["@media screen and (max-width:","px){",";}"],L.GL.m-1,oa),os=T.I4.ul.withConfig({componentId:"sc-6a031e7d-2"})(["list-style-type:none;padding-left:0;margin-top:0;@media screen and (max-width:","px){",";}"],L.GL.m-1,({expanded:e})=>e?"":oa),oc=T.I4.button.withConfig({componentId:"sc-6a031e7d-3"})(["border:0;width:100%;background:none;-webkit-tap-highlight-color:transparent;outline:none;text-align:left;@media screen and (min-width:","px){",";}@media screen and (max-width:","px){display:flex;justify-content:space-between;align-content:center;padding:","px 0;cursor:pointer;}"],L.GL.m,oa,L.GL.m-1,L.l$.four),od=({heading:e,list:t,baseUrl:i,isFirst:n})=>{let[r,a]=(0,y.useState)(!1);return(0,k.jsxs)(oo,{first:n,children:[(0,k.jsx)(ol,{children:(0,k.jsx)(L.pT,{tagName:"h2",textStyle:"titleW1",color:"textPrimary",children:e})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"zero",unitM:"three"}),(0,k.jsxs)(oc,{className:"mobile-heading-wrapper",type:"button",onClick:()=>a(!r),children:[(0,k.jsx)(L.pT,{tagName:"h3",textStyle:"titleW1",color:"textPrimary",children:e}),(0,k.jsx)(L.hw,{icon:r?S.owb:S.rIS,size:"extraSmall",color:"textPrimary"})]}
72),(0,k.jsx)(os,{expanded:r,children:t.map(({text:t,href:n})=>(0,k.jsx)("li",{children:(0,k.jsx)(or.A,{href:i?`${i}/${n}`:n,text:t})},`${e}-${t}-${n}`))}),(0,k.jsx)(L.Yx,{vertical:!0,unit:r?"two":"zero",unitM:"two"})]})};od.displayName="LinkPanels.LinkPanel";var ox=i(92021);let oh=({baseUrl:e,list:t,isTwoColumnLayout:i})=>(0,k.jsx)(ox.r,{twoColumns:i,children:t.map(({heading:t,subList:i},n)=>!!(i&&i.length)&&(0,k.jsx)(ox.a,{children:(0,k.jsx)(od,{heading:t,list:i,baseUrl:e,isFirst:0===n})},t))});var ou=i(33371);let om=T.Ay.div.withConfig({componentId:"sc-36e5d69b-0"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:flex-end;}"],L.GL.m),op=({filterDefaultOption:e,header:t,referenceId:i,showPanelHeaders:n,displayName:r,isTwoColumnLayout:a,lists:o,filterName:l,filterOptions:s})=>{let[c,d]=(0,y.useState)(e),x=(0,y.useCallback)(e=>(c?e.filter(e=>e.filterOption===c):e).map(e=>({text:e.text,href:e.href})),[c]),h=(0,y.useMemo)(()=>{let e=o.reduce((e,t)=>e.concat(x(t.entries)),[]);return(0,k.jsx)(ou.A,{links:e,isTwoColumnLayout:a})},[x,o,a]),u=(0,y.useMemo)(()=>{let e=o.map(e=>({heading:e.eyebrow||"",subList:x(e.entries)}));return(0,k.jsx)(oh,{list:e,isTwoColumnLayout:a})},[x,a,o]),m=(0,y.useMemo)(()=>{if(l&&"object"==typeof s){let e=Object.entries(s).map(([e,t])=>({label:t,value:e})),t=e.findIndex(({value:e})=>e===c);return(0,k.jsx)(om,{children:(0,k.jsx)(L.xC,{name:l,label:l,onSelectItem:e=>d(e?.value),options:e,selectedIndex:t})})}return null},[l,c,s]);return(0,k.jsxs)(z.Ay,{referenceId:i,trackingAction:"view",trackingCategory:"LinkPanelList",trackingLabel:r,children:[t?(0,k.jsx)(z.w,{header:t,bottomSpacing:{unit:"two",unitM:"four"}}):null,(0,k.jsxs)(V.Ay,{children:[m,n?u:h]})]})},og=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-abec1b0e-0"})(["max-height:160px;min-width:100px;"]),of=({eyebrow:e,content:t,images:i=[],useGreyBackground:n,referenceId:r,displayName:a})=>{let[o,l]=(0,y.useState)({}),s=({currentTarget:e})=>{l({...o,[e.src]:!0})};return(0,k.jsxs)(z.Ay,{referenceId:r,useGreyBackground:n,trackingAction:"view",trackingCategory:"LogoCarousel",trackingLabel:a,children:[e&&(0,k.jsx)(eB.A,{content:e,tagName:"h2",noMargin:!!t}),t&&(0,k.jsxs)(k.Fragment,{children:[e?(0,k.jsx)(L.Yx,{vertical:!0,unit:"two",unitM:"one"}):null,(0,k.jsx)(V.Ay,{children:(0,k.jsx)(E.A,{content:t})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two",unitM:"three"})]}),(0,k.jsx)(V.Ay,{children:(0,k.jsx)(L.yL,{contentStyle:"setWidth",buttonStyle:"compact",children:i.map(({src:e,alt:t})=>(0,k.jsx)(og,{src:e,assetWidth:320,alt:t,onLoad:s,loading:"lazy"},e))})})]})},oy=({name:e,content:t,httpEquiv:i})=>(0,k.jsx)(aK(),{children:(0,k.jsx)("meta",{name:e,content:t,...i?{"http-equiv":i}:{}})}),oj=T.Ay.span.withConfig({componentId:"sc-efbcf145-0"})(["display:block;position:relative;margin:0 auto;overflow:hidden;"]),ow=T.Ay.span.withConfig({componentId:"sc-efbcf145-1"})(["opacity:0;"]),ov=(0,T.i7)(["0%{top:-100%;}100%{top:0;}"]),ob=(0,T.AH)(["animation-name:",";animation-duration:","ms;animation-iteration-count:once;"],ov,L.ol.durations.long),oC=T.Ay.span.withConfig({componentId:"sc-efbcf145-2"})(["top:0;width:100%;display:block;position:absolute;",""],e=>e.selected?ob:` 73 will-transition: top; 74 transition-property: top; 75 transition-duration: ${L.ol.durations.long}ms; 76 top: 100%; 77 `),ok=({rotatingWords:e})=>{let[t,i]=y.useState(0);return y.useEffect(()=>{let t=setInterval(()=>{i(t=>t<e.length-1?t+1:0)},2500);return()=>{clearInterval(t)}},[]),(0,k.jsxs)(oj,{children:[(0,k.jsx)(ow,{children:e[0]}),e.map((e,i)=>(0,k.jsx)(oC,{selected:i===t,children:e},e))]})},oS=T.Ay.div.withConfig({componentId:"sc-1f6b9c58-0"})([""," ",""],({$centerAlign:e})=>e&&` 78 text-align: center; 79 `,({$compactWidth:e})=>e&&` 80 max-width: 800px; 81 margin: 0 auto; 82 `),oA=T.Ay.div.withConfig({componentId:"sc-1f6b9c58-1"})(["display:flex;flex-direction:column;justify-content:space-between;@media (min-width:","px){","}img{max-width:100%;}"],L.GL.l,({direction:e})=>"row"===e?` 83 flex-direction: row; 84 align-items: center; 85 `:"flex-direction: column"),oI=T.Ay.div.withConfig({componentId:"sc-1f6b9c58-2"})(["display:flex;flex-direction:row;justify-content:",";align-items:center;white-space:nowrap;@media (max-width:","px){flex-direction:column;flex-wrap:wrap;row-gap:","px;}"],({justify:e})=>e,L.GL.l,L.l$.one),oT=T.Ay.hr.withConfig({componentId:"sc-1f6b9c58-3"})(["background-color:",";border:none;margin:0;height:0.25rem;"],L.ml.textPrimary.color),oL=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-1f6b9c58-4"})(["margin:0 auto;max-width:150px;height:auto;"]),oE=({eyebrow:e,logo:t,header:i,rotatingHeaderContent:n="",subheader:r,content:a,centerAlign:o,compact:l,backgroundColor:s,hideHeaderLine:c,referenceId:d,ctaHref:x,ctaText:h,ctaAriaLabel:u,ctaFormRequestValues:m,ctaFormRequestMethod:p,learnMoreLinkText:g,learnMoreLinkAriaLabel:f,learnMoreLinkHref:j,learnMoreUseButton:w,learnMoreButtonStyle:v,useSecondary:b,displayName:C,backgroundImage:A,mobileBackgroun
85dImage:I,textColor:T,ctaStyle:$,ctaPlacement:M="Bottom",widthType:P="default"})=>{let N=(0,J.useRouter)(),{browserSessionId:W}=(0,er.bp)(),R=n.split("|"),_="Right"===M?"vertical":"horizontal",F=eo(),Y=(0,y.useMemo)(()=>{if(x)return(0,ea.Hv)(x)?(0,ea.ln)(x,{deepLinkQueryParams:{[ea.wF]:W,[ea.yb]:N.asPath.split("?")[0]}},F):x},[W,x,N.asPath,F]);return(0,k.jsx)(z.Ay,{referenceId:d,backgroundColor:s,backgroundImage:A,mobileBackgroundImage:I,trackingAction:"view",trackingCategory:"Paragraph",trackingLabel:C,children:(0,k.jsxs)(oS,{$centerAlign:!!o,$compactWidth:"compact"===P,children:[e&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(eB.A,{content:e,tagName:i?"span":"h2",textColor:T,noMargin:!0}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}),(0,k.jsxs)(V.Ay,{colsM:l?6:void 0,offsetColsM:l?3:void 0,children:[t&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(oL,{src:t.src,alt:t.alt,width:t.width,height:t.height}),(0,k.jsx)(L.Yx,{unit:"one",vertical:!0})]}),i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("h2",{children:[(0,k.jsx)(L.pT,{textStyle:"headlineW1",color:T,children:i}),R.length>1&&(0,k.jsx)(L.pT,{textStyle:"headlineW1",color:T||"textSecondary",children:(0,k.jsx)(ok,{rotatingWords:R})})]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}),r&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(E.A,{content:r,textColor:T}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}),!c&&(i||r)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(oT,{"aria-hidden":"true"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"four",unitM:"six"})]}),(0,k.jsxs)(oA,{direction:"vertical"===_?"row":"column",children:[a&&(0,k.jsx)(E.A,{content:a,highestHeadingLevel:e||i?3:2,textColor:T}),(x&&h||j&&g)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"zero",unitL:"three",vertical:"vertical"===_}),(0,k.jsx)(L.Yx,{unit:"zero",unitL:"three",vertical:"horizontal"===_}),(0,k.jsx)(L.Yx,{unit:"three",unitL:"zero",vertical:!0})]}),(0,k.jsxs)(oI,{justify:o?"center":"flex-start",children:[x&&h&&(0,k.jsxs)(k.Fragment,{children:[p?(0,k.jsxs)("form",{method:p,action:Y,children:[Object.entries(m||{}).map(([e,t])=>(0,k.jsx)("input",{type:"hidden",name:e,value:t,"data-testId":"cta-request-input"},e)),(0,k.jsx)(L.gT,{type:"submit",buttonStyle:$||(b?"primaryNeutral":"primary"),"aria-label":u,"data-testid":"paragraphFormButton",children:h})]}):(0,k.jsx)(L.gT,{buttonStyle:$||(b?"primaryNeutral":"primary"),href:Y,"aria-label":u,"data-tracking-category":"Paragraph primary button","data-tracking-action":"click","data-tracking-label":C,"data-tracking-value":h,"data-testid":"paragraphButton",children:h}),(0,k.jsx)(L.Yx,{unit:"zero",unitM:"two",horizontal:!0})]}),g&&j?w?(0,k.jsx)(L.gT,{buttonStyle:v,href:j,"aria-label":f,"data-tracking-category":"Paragraph primary button","data-tracking-action":"click","data-tracking-label":C,"data-tracking-value":g,"data-testid":"paragraphSecondaryButton",children:g}):(0,k.jsx)(L.fu,{href:j,icon:S.hIg,iconPosition:"end",buttonStyle:"secondary","aria-label":f,"data-tracking-category":"Paragraph secondary button","data-tracking-action":"click","data-tracking-label":C,"data-tracking-value":g,children:g}):null]})]})]})]})})};var o$=i(41812);let oM=(0,T.AH)(["position:absolute;top:0;right:0;bottom:0;left:0;"]),oP={"iPhone 8":{WRAPPER:(0,T.AH)(["width:171px;height:307px;@media (min-width:","px){width:343px;height:614px;}"],L.GL.m),FRAME:(0,T.AH)(["background-image:url(",");"],"https://cdn.lyft.com/lyftcomfe/_next/static/media/frame-8.075e93af.png"),CONTENT:(0,T.AH)(["margin:36px 24px 56px 26px;@media (min-width:","px){margin:72px 49px 113px 53px;}"],L.GL.m)},"iPhone X":{WRAPPER:(0,T.AH)(["width:147px;height:300px;@media (min-width:","px){width:293px;height:600px;}"],L.GL.m),FRAME:(0,T.AH)(["background-image:url(",");z-index:2;"],"https://cdn.lyft.com/lyftcomfe/_next/static/media/frame-x.82fa6ac9.png"),CONTENT:(0,T.AH)(["margin:8px 9px 17px;@media (min-width:","px){margin:17px 19px 32px;}"],L.GL.m)},"Generic iPhone 11":{WRAPPER:(0,T.AH)(["width:147px;height:300px;@media (min-width:","px){width:293px;height:600px;}"],L.GL.m),FRAME:(0,T.AH)(["background-image:url(",");z-index:2;"],"https://cdn.lyft.com/lyftcomfe/_next/static/media/GenericPhone_11.c7bd81d3.png"),CONTENT:(0,T.AH)(["margin:5px 7px;@media (min-width:","px){margin:10px 13px;}"],L.GL.m)},"Generic iPhone 13":{WRAPPER:(0,T.AH)(["width:147px;height:300px;@media (min-width:","px){width:293px;height:600px;}"],L.GL.m),FRAME:(0,T.AH)(["background-image:url(",");z-index:2;"],"https://cdn.lyft.com/lyftcomfe/_next/static/media/GenericPhone_13.b9bbe758.png"),CONTENT:(0,T.AH)(["margin:7px 9px 20px;@media (min-width:","px){margin:14px 18px 36px;}"],L.GL.m)},"No Shell":{WRAPPER:(0,T.AH)(["width:147px;height:300px;@media (min-width:","px){width:293px;height:600px;}"],L.GL.m),FRAME:(0,T.AH)(["z-index:2;"]),CONTENT:(0,T.AH)(["margin:7px 9px 20px;@media (min-width:","px){margin:14px 18px 36px;}"],L.GL.m)},"Rounded No Shell":{WRAPPER:(0,T.AH)(["width:147px;height:300px;@media (min-width:","px){width:293px;height:600px;}"],L.GL.m),FRAME:(0,T.AH)(["z-index:2;"]),CONTENT:(0,T.AH)(["margin:7px 9px 20px;border-radius:23px;box-shadow:0 0 9px ","26;@media (min-width:","px){margin:14px 18px 36px;border-radius:39px;box-shadow:0 0 13px ","26;}"],L.ml.brandMidnight.hex,L.GL.m,L.ml.brandMidnight.hex)}},oN=T.Ay.div.withConfig({componentId:"sc-976a4ed5-0"})(["@media (min-width:","px){display:flex;align-items:flex-start;}"],L.GL.m),oW=T.Ay.div.withConfig({componentId:"sc-976a4ed5-1"})(["@media (min-width:","px){flex:1;margin-top:","px;order:",";}"],L.GL.m,500,e=>e.orderM),oR=T.Ay.div.withConfig({componentId:"sc-976a4ed5-2"})(["",";position:relative;margin:","px auto 0;@media (min-width:","px){margin:","px ","px 0;}"],e=>oP[e.$phoneType].WRAPPER,L.l$.five,L.GL.m,L.l$.eight,L.l$.eight),o_=T.Ay.div.withConfig({componentId:"sc-976a4ed5-3"})(["",";",";background-size:100% 100%;background-position:center center;background-repeat:no-repeat;"],e=>oP[e.$phoneType].FRAME,oM),oF=T.Ay.div.withConfig({componentId:"sc-976a4ed5-4"})(["",";",";background-size:cover;background-position:center center;background-repeat:no-repeat;background-image:",";@media screen and (min-width:","px){background-image:",";}"],e=>oP[e.$phoneType].CONTENT,oM,e=>`url(${(0,o$.IW)(e.imageSrc,{w:300,q:75})})`,L.GL.m,e=>`url(${(0,o$.IW)(e.imageSrc,{w:700,q:75})})`),oY=({carouselHeader:e,phoneType:t,header:i,content:n,image:r={},learnMoreLinkText:a,learnMoreLinkHref:o,headerDisplayType:l})=>{let s=t&&oP[t]?t:"No Shell",c="Default"===l?e:i,d="Default"===l?i:void 0,x=(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"five"});return(0,k.jsx)(V.Ay,{children:(0,k.jsxs)(oN,{children:[(0,k.jsxs)(oR,{$phoneType:s,children:[(0,k.jsx)(o_,{$phoneType:s,"aria-hidden":"true","data-testid":"iphone-frame"}),(0,k.jsx)(oF,{$phoneType:s,imageSrc:r?.src,title:r?.alt,"aria-hidden":"true"})]}),(0,k.jsx)(oW,{orderM:-1,"data-testid":"left-content",children:c&&(0,k.jsxs)(k.Fragment,{children:[x,(0,k.jsx)(B.A,{content:c,tagName:"h2",textStyle:a1.subhead1})]})}),(0,k.jsxs)(oW,{"data-testid":"right-content",children:[(d||n)&&x,d&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(B.A,{content:d,tagName:"h3",textStyle:"titleW1"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}),n&&(0,k.jsx)(L.pT,{textStyle:a3.subhead3,children:(0,k.jsx)(E.A,{content:n})}),a&&o&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"two",vertical:!0}),(0,k.jsx)(L.fu,{href:o,icon:S.hIg,iconPosition:"end",buttonStyle:"secondary",children:a})]})]})]})})},oG={value:0,unit:"px"},oO=T.Ay.div.withConfig({componentId:"sc-f8e23622-0"})(["width:100%;position:relative;"]),oU=(0,T.Ay)(e8.Ay).withConfig({componentId:"sc-f8e23622-1"})(["position:absolute;top:0;left:0;right:0;height:","px;@media (min-width:","px){height:","px;}"],280,L.GL.m,500),oD=T.Ay.div.withConfig({componentId:"sc-f8e23622-2"})(["position:relative;z-index:2;"]),oH=({entries:e=[],header:t,image:i,mobileImage:n,phoneType:r,referenceId:a,displayName:o,headerDisplayType:l="Default"})=>{let s=!!(i?.src||n?.src),c=e=>(0,y.createElement)(oY,{...e,key:e.displayName,carouselHeader:t,phoneType:r||"Rounded No Shell",headerDisplayType:l});return(0,k.jsx)(nW.C,{id:a,trackingAction:"view",trackingCategory:"PhoneCarousel",trackingLabel:o,widthType:"maxWidth",containerSpacing:(e=>
85{if(e)return(0,nW.f)({hideSpacing:!1,hasBackgroundColor:!1},{mobile:{top:oG},tablet:{top:oG},desktop:{top:oG}})})(s),children:(0,k.jsxs)(oO,{children:[(0,k.jsx)(oD,{children:1===e.length?c(e[0]):(0,k.jsx)(L.yL,{buttonStyle:"compact",children:e.map(c)})}),s&&(0,k.jsx)(oU,{imageSrc:i.src,mobileImageSrc:n?.src,"aria-hidden":"true"})]})})};var oz=i(14761);let oB=T.Ay.div.withConfig({componentId:"sc-525c87ab-0"})(["text-align:center;width:100%;"]),oV=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-525c87ab-1"})(["height:8rem;max-width:8rem;object-fit:contain;margin:0 auto;"]),oq=T.Ay.div.withConfig({componentId:"sc-525c87ab-2"})(["font-style:italic;"]),oJ=({content:e,name:t,description:i,linkHref:n,linkText:r,image:a,hideQuotationMarks:o,textColor:l})=>{let s=(0,oz.tX)(l)?l:void 0;return(0,k.jsxs)(oB,{children:[a&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(oV,{src:a.src,assetWidth:ej.ll.SMALL,alt:a.alt,loading:"lazy"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"four"})]}),(0,k.jsx)(et.$m.Consumer,{children:({quoteFormat:t="â{{content}}â"})=>(0,k.jsx)(L.pT,{tagName:"p",textStyle:"bodyW1",color:s,children:o?e:t.replace("{{content}}",e)})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"four"}),t&&(0,k.jsxs)(L.pT,{tagName:"p",textStyle:"subtitleW2",color:s,children:["â ",t]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),i&&(0,k.jsx)(oq,{children:(0,k.jsx)(L.pT,{tagName:"p",textStyle:"bodyW2",color:s,children:i})}),n&&r&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)("a",{href:n,children:(0,k.jsx)(L.pT,{textStyle:"titleW1",color:s,children:r})})]})]})},oQ=({id:e,componentType:t,content:i,name:n,description:r,linkHref:a,linkText:o,image:l,hideQuotationMarks:s,referenceId:c,displayName:d,backgroundColor:x,textColor:h})=>(0,k.jsx)(z.Ay,{referenceId:c,useGreyBackground:!0,trackingAction:"view",trackingCategory:"Quote",trackingLabel:d,backgroundColor:x,children:(0,k.jsx)(V.Ay,{children:(0,k.jsx)(oJ,{id:e,componentType:t,content:i,name:n,description:r,linkHref:a,linkText:o,image:l,hideQuotationMarks:s,textColor:h})})}),oK=y.createContext({currentIndex:0,isTransitioning:!1}),oX=W._t("pdoypm",""),oZ=W._t("uhfm62",""),o0=T.Ay.div.withConfig({componentId:"sc-ebd88a6a-0"})(["width:100%;display:flex;flex-direction:column;"]),o1=T.Ay.div.withConfig({componentId:"sc-ebd88a6a-1"})(["display:flex;width:100%;position:relative;"]),o2=T.Ay.div.withConfig({componentId:"sc-ebd88a6a-2"})(["overflow:hidden;width:100%;height:100%;"]),o3=T.Ay.div.withConfig({componentId:"sc-ebd88a6a-3"})(["display:flex;transition:all ","ms linear;> *{width:calc(100% / ",");flex-shrink:0;flex-grow:1;cursor:default;}"],L.ol.durations.long,e=>e.show),o4=T.Ay.div.withConfig({componentId:"sc-ebd88a6a-4"})(["display:flex;align-items:center;justify-content:center;"]),o8=T.Ay.div.withConfig({componentId:"sc-ebd88a6a-5"})(["margin:0 ","px;"],L.l$.three),o6=({children:e})=>{let t=y.useMemo(()=>y.Children.count(e),[e]),[i,n]=y.useState(1),[r,a]=y.useState(!0),[o,l]=y.useState(!1),[s,c]=y.useState(null),d=(0,y.useMemo)(()=>{let t=y.Children.toArray(e),i=t.pop();return i&&t.unshift(i),t},[e]);y.useEffect(()=>{(3===i||i===t)&&a(!0)},[i,t]);let x=()=>{o||(l(!0),n(e=>e+1))},h=()=>{o||(l(!0),n(e=>e-1))},u=y.useMemo(()=>{let e=[];for(let i=0;i<3;i+=1)e.push(d[t-1-i]);return e.reverse(),e},[d,t]),m=y.useMemo(()=>{let e=[];for(let t=0;t<3;t+=1)e.push(d[t]);return e},[d]),p=i-3<0?t+(i-3):i-3,g=y.useMemo(()=>({currentIndex:p,isTransitioning:o}),[p,o]);return(0,k.jsxs)("div",{children:[(0,k.jsx)(o0,{children:(0,k.jsx)(o1,{children:(0,k.jsx)(o2,{onTouchStart:e=>{c(e.touches[0].clientX)},onTouchMove:e=>{if(null===s)return;let t=s-e.touches[0].clientX;t>5&&x(),t<-5&&h(),c(null)},children:(0,k.jsx)(o3,{show:3,style:{transform:`translateX(-${33.333333333333336*i}%)`,transition:r?void 0:"none"},onTransitionEnd:()=>void(0===i?(a(!1),n(t)):i===t+3&&(a(!1),n(3)),l(!1)),children:(0,k.jsxs)(oK.Provider,{value:g,children:[u,d,m]})})})})}),(0,k.jsx)(L.Yx,{unit:"three",vertical:!0}),(0,k.jsxs)(o4,{large:!1,children:[(0,k.jsx)(o8,{children:(0,k.jsx)(en.Mg,{"aria-label":oZ.t(),icon:S.Gk,onClick:h,label:oZ.t(),compact:!0})}),(0,k.jsx)(L.Gf,{count:d.length,role:"tablist",index:p,onSelect:e=>n(e-1)}),(0,k.jsx)(o8,{children:(0,k.jsx)(en.Mg,{"aria-label":oX.t(),icon:S.hIg,compact:!0,onClick:x,label:oX.t()})})]})]})},o5=T.Ay.div.withConfig({componentId:"sc-5900bd94-0"})(["text-align:center;padding:0 ","px;position:relative;height:100%;"],L.l$.four),o7=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-5900bd94-1"}
85)(["height:auto;max-width:80px;object-fit:contain;margin:0 auto;will-change:transform;",""],({$isSelected:e,$shrinkSideSlides:t})=>e?` 86 transform: scale(1); 87 transition: transform ${L.ol.durations.short}ms; 88 `:` 89 ${t?"transform: scale(.6)":""}; 90 opacity: .6; 91 `),o9=T.Ay.div.withConfig({componentId:"sc-5900bd94-2"})(["font-style:italic;"]),le=({name:e,image:t,description:i,content:n,linkHref:r,linkText:a,hideQuotationMarks:o,index:l,customContent:s,shrinkSideSlides:c})=>(0,k.jsx)(oK.Consumer,{children:({currentIndex:d,isTransitioning:x})=>{let h=d===l,u=h?"alwaysBlack":"gray60";return(0,k.jsxs)(o5,{children:[t&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(o7,{src:t.src,alt:t.alt,height:t.height,width:t.width,assetWidth:ej.ll.SMALL,loading:"lazy",$isSelected:h&&!x,$shrinkSideSlides:c}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"four"})]}),s?(0,k.jsx)(E.A,{content:s,highestHeadingLevel:3}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(et.$m.Consumer,{children:({quoteFormat:e="â{{content}}â"})=>(0,k.jsx)(L.pT,{tagName:"p",textStyle:"bodyW1",color:u,children:o||!e?n:e.replace("{{content}}",n)})}),e&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"four"}),(0,k.jsxs)(L.pT,{tagName:"p",textStyle:"subtitleW2",color:u,children:["â ",e," ",(0,k.jsx)("br",{})]})]}),i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),(0,k.jsx)(o9,{children:(0,k.jsx)(L.pT,{tagName:"p",textStyle:"bodyW2",color:u,children:i})})]})]}),r&&a&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)("a",{href:r,children:(0,k.jsx)(L.pT,{textStyle:"titleW1",color:u,children:a})})]})]})}}),lt=({entries:e,doNotShrinkSideSlides:t})=>(0,k.jsx)(V.Ay,{removeOffset:!0,dataTestId:"multiquote-carousel",children:(0,k.jsx)(o6,{children:e.map((e,i)=>(0,y.createElement)(le,{...e,index:i,key:JSON.stringify(e),shrinkSideSlides:!t}))})}),li=({entries:e=[],referenceId:t,showMultipleQuotes:i,backgroundColor:n,displayName:r,doNotShrinkSideSlides:a=!1})=>{let o=(0,np.k)(),l=e.length>=3;return(0,k.jsx)(z.Ay,{useGreyBackground:!(n||i),backgroundColor:n,referenceId:t,trackingAction:"view",trackingCategory:"QuoteCarousel",trackingLabel:r,children:i&&l&&"mobile"!==o?(0,k.jsx)(lt,{entries:e,doNotShrinkSideSlides:a}):(0,k.jsx)(L.yL,{buttonStyle:"compact",children:e.map(e=>(0,k.jsxs)(V.Ay,{children:[(0,k.jsx)(oJ,{...e}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]},e.content))})})},ln=({renderComponent:e,components:t=[]})=>{let[i,n]=(0,y.useState)(null);return(0,y.useEffect)(()=>{n(Math.floor(Math.random()*t.length))},[]),null!==i&&t[i]?e(t[i]):null},lr=T.I4.div.withConfig({componentId:"sc-850bc63b-0"})(["display:flex;align-items:center;justify-content:center;"]),la=T.I4.div.withConfig({componentId:"sc-850bc63b-1"})(["margin:0 ","px;"],L.l$.three),lo=({moveLeft:e,moveRight:t,pageIndex:i,pageCount:n})=>(0,k.jsxs)(lr,{children:[(0,k.jsx)(la,{children:(0,k.jsx)(L.Ve,{"aria-label":aW.t(),icon:S.Gk,onClick:e,iconSize:"medium",label:aW.t(),disabled:0===i})}),(0,k.jsx)(la,{children:(0,k.jsx)(L.r3,{"aria-label":aN.t(),icon:i===n-1?S.VsF:S.hIg,buttonStyle:"primary",onClick:t,label:aN.t()})})]}),ll=T.I4.div.withConfig({componentId:"sc-82a4e89d-0"})(["[data-testid='core-ui-carousel-page-indicator']{display:none;}[data-testid='core-ui-carousel']{> div:first-of-type{",";}}"],({$showOverflow:e})=>e?"overflow: visible !important":""),ls=T.I4.div.withConfig({componentId:"sc-82a4e89d-1"})(["display:flex;justify-content:space-between;"]),lc=({children:e,header:t,showOverflow:i=!1})=>{let n=(0,y.useRef)(null),[r,a]=(0,y.useState)(0),[o,l]=(0,y.useState)(0);return(0,k.jsxs)(ll,{$showOverflow:i,children:[(0,k.jsxs)(ls,{children:[(0,k.jsx)("div",{children:t}),(0,k.jsx)(lo,{pageIndex:r,pageCount:o,moveRight:()=>n.current?.moveRight(),moveLeft:()=>n.current?.moveLeft()})]}),(0,k.jsx)(L.Yx,{unit:"four",vertical:!0}),(0,k.jsx)(L.yL,{buttonStyle:void 0,ref:n,contentStyle:"setWidth",onSlide:(e,t)=>{a(e),l(t)},fadePeekingSlides:!0,children:e})]})};var ld=i(48230),lx=i.n(ld),lh=i(51624),lu=i(96134),lm=i(81688),lp=i(34998);let lg=T.I4.div.withConfig({componentId:"sc-e1b138b-0"})(["@media screen and (max-width:","px){width:","px;min-height:","px;}@media screen and (min-width:","px){width:","px;min-height:","px;}position:relative;border:none;border-radius:","px;background:white;transition-duration:","ms;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:","px ","px;text-align:center;"," ",";"],L.GL.s,e=>(function({isExpanded:e,isLargeMobileCard:t}){return e?280:t?260:212})(e),e=>(function({isExpanded:e,isLargeMobileCard:t}){return e?343:t?284:256})(e),L.GL.s+1,e=>e.isExpanded?"374":"280",e=>e.isExpanded?"0":"284",L.l$.two,L.ol.durations.short,L.l$.four,L.l$.three,e=>e.isExpandable?` 92 & :hover { 93 cursor: pointer; 94 }`:"",({isExpanded:e})=>e&&"justify-content: center;"),lf=T.I4.div.withConfig({componentId:"sc-e1b138b-1"})(["flex:0 0 auto;max-width:100%;margin-right:","px;margin-bottom:","px;margin-top:","px;margin-left:","px;user-select:none;overflow:hidden;img{pointer-events:none;}
94box-shadow:",";border-radius:","px;"],L.l$.one,L.l$.half,L.l$.half,L.l$.half,L.R4.level2.shadow,L.l$.two),ly=({className:e,largeMobileCards:t=!1,children:i,dataTrackingCategory:n,dataTrackingLabel:r,dataTrackingAction:a,dataTrackingValue:o,onKeyboardFocus:l,expandable:s=!1,onExpand:c})=>{let[d,x]=(0,y.useState)(!1),h=(0,y.useRef)(null),u=(0,y.useRef)(null),m=(0,y.useRef)(!1);return(0,k.jsx)(L.H4,{onOutsideClick:()=>x(!1),children:(0,k.jsx)(lf,{className:e,children:(0,k.jsx)(lg,{ref:h,"data-testid":"carousel-card",className:"carousel-card",as:s?"button":"div",isExpanded:d,isExpandable:s,isLargeMobileCard:t,onPointerDown:()=>{m.current=!0},onBlur:()=>{m.current=!1},onFocus:e=>{u.current=e.target,!m.current&&l&&l()},onClick:()=>{s&&(x(!d),c?.())},"aria-expanded":d,"data-tracking-category":n,"data-tracking-label":r,"data-tracking-action":a,"data-tracking-value":o,children:i({isExpanded:d})})})})},lj=T.Ay.div.withConfig({componentId:"sc-90dc3632-0"})(["min-height:64px;display:flex;@media screen and (max-width:","px){",";}margin-bottom:","px;"],L.GL.s,({$isExpanded:e})=>e?"display: none;":"",L.l$.three),lw=T.Ay.div.withConfig({componentId:"sc-90dc3632-1"})(["display:flex;align-items:center;min-height:","px;height:","px;"],L.l$.five+L.l$.half,L.l$.five+L.l$.half),lv=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-90dc3632-2"})(["@media screen and (max-width:","px){width:101px;height:80px;}@media screen and (min-width:","px){width:122px;height:96px;}"],L.GL.s,L.GL.s+1),lb=({description:e,name:t,cta:i,expandedDescription:n,image:r})=>(0,k.jsx)(ly,{expandable:!!(i||n),children:({isExpanded:a})=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(lw,{children:(0,k.jsx)(L.pT,{textStyle:"headlineW3",textAlign:"center","data-testid":"text",color:"textPrimary",children:t})}),(0,k.jsx)(L.Yx,{unit:"two",vertical:!0}),(0,k.jsx)(lj,{$isExpanded:a,children:(0,k.jsx)(lv,{src:r,isExpanded:a})}),(0,k.jsx)(L.pT,{textStyle:"bodyW3",color:"textSecondary",children:(0,k.jsx)(E.A,{content:a&&n||e})}),a&&i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"three",vertical:!0}),(0,k.jsx)(en.z4,{href:i.link,onClick:e=>{e.stopPropagation()},children:i.text})]})]})}),lC=({header:e,subheader:t})=>(0,k.jsxs)("div",{children:[(0,k.jsx)(B.A,{content:e,tagName:"h2",textStyle:"headlineW1"}),(0,k.jsx)(L.Yx,{unit:"two",vertical:!0}),t&&(0,k.jsx)(L.pT,{textStyle:"bodyW2",children:t})]});W._t("1wq0bgt","");let lk=W._t("o5zgr2","");W._t("1f9tgoq","");let lS=W._t("1cly50n",""),lA=(0,T.Ay)(z.Ay).withConfig({componentId:"sc-a18c27be-0"})(["overflow:hidden;"]),lI=({header:e,cityName:t,extraModeTypes:i,referenceId:n,displayName:r,regionCode:a,luxDescription:o,lineDescription:l,plusDescription:s,luxsuvDescription:c,premierDescription:d,standardDescription:x})=>{let{modes:h,cityName:u,hasPricingDetails:m}=(({regionCode:e,descriptionOverrides:t,extraModeTypes:i})=>{let n=(0,lm.N)(),r=(0,y.useContext)(lu.A),{rideModesContent:a,rideModesContentExtraComfortOverwrites:o,rideModeSelectorContent:l}=(0,y.useContext)(et.$m),s=(0,y.useMemo)(()=>{let s=(0,lp.nN)(r).map(i=>{let r,s=(0,lp.C0)(i);if(i===lh.T.PREMIER&&n.includes(e)&&(r=o?.[i]),r||(r=s&&l?.[s]||a[i]),r){let e={...r,type:s||i},n=t?.[i];return n&&(e.description=n),e}}).filter(e=>!!e);return(i||[]).forEach(e=>{let t=l?.[e];t&&!s.some(t=>t.type===e)&&s.push({...t,type:e})}),(0,lp.O8)(s)},[r,e,i,n,o,l,a,t]);return{cityName:r?.cityName||"",modes:s,hasPricingDetails:!!r?.pricing}})({regionCode:a,descriptionOverrides:(0,y.useMemo)(()=>{let e={};return o&&(e.lux=o),l&&(e.line=l),s&&(e.plus=s),c&&(e.luxsuv=c),d&&(e.premier=d),x&&(e.standard=x),e},[l,o,c,s,d,x]),extraModeTypes:i});return(0,k.jsx)("div",{children:h.length>0&&(0,k.jsx)(lA,{referenceId:n,trackingAction:"view",trackingCategory:"RideModeSelector",trackingLabel:r,children:(0,k.jsxs)(V.Ay,{children:[(0,k.jsx)(lc,{header:(0,k.jsx)(lC,{header:e,subheader:lS.t({data:{city:t||u||a}})}),showOverflow:!0,children:h.map(e=>(0,y.createElement)(lb,{...e,key:e.type}))}),a&&m?(0,k.jsx)(lx(),{href:`/pricing/${a}`,children:(0,k.jsx)(L.pT,{textStyle:"headlineW2",color:"textInteractive",children:lk.t()})}):null]})})})},lT=({riderPromoRequirement:e,promoRequirementStyle:t,promo:i,promoLabelStyle:n})=>{let{couponValue:r}=(0,y.useContext)(et.$m),{amount:a=0,ridesValid:o=1,currency:l="USD"}=i,s=a/o,c=s%1>0?(0,Z.jR)({amount:s,currency:l,exponent:0}):(0,Z.Rv)({amount:s,currency:l,exponent:0}),d=(0,Z.Rv)({amount:a,currency:l,exponent:0}),x=(0,X.G)(e,{creditPerRide:c,ridesValid:o});return(0,k.jsxs)(L.pT,{tagName:"p",textStyle:t,children:[x," ",(0,k.jsx)(iF.o,{tagName:"span",textStyle:n,children:`(${d} ${r})`})]})},lL=({promoRequirementStyle:e,promo:t,promoLabelStyle:i,requirementOverride:n})=>{let{riderPromoList:r}=(0,y.useContext)(et.$m),{maxDiscountPerRide:a,couponInfo:o}=r.percentOffCoupon||{},{ridesValid:l=1,currency:s="USD",discountRatio:c=0,maxRideDiscount:d=0}=t,x=(0,Z.Rv)({amount:d,currency:s,exponent:0}),h=(0,X.G)(n||o,{discount:`${100*c}%`,ridesValid:l}),u=(0,X.G)(a,{maxDiscount:x});return(0,k.jsxs)(iF.o,{tagName:"p",textStyle:e,children:[(0,k.jsx)(iF.o,{tagName:"span",textStyle:i,children:h}),"\xa0",u]})},lE=T.Ay.div.withConfig({componentId:"sc-4c5058e1-0"})(["border-radius:","px;border:1px solid ",";padding:","px;display:flex;flex-direction:column;@media screen and (min-width:","px){flex-direction:row;justify-content:space-between;}"],L.l$.two,L.ml.gray20.color,L.l$.three,L.GL.m),l$=T.Ay.div.withConfig({componentId:"sc-4c5058e1-1"})(["display:flex;text-align:center;align-items:center;@media screen and (min-width:","px){text-align:left;}"],L.GL.m),lM=T.Ay.div.withConfig({componentId:"sc-4c5058e1-2"})(["text-align:center;"]),lP=({promo:e,applyCodeButton:t,displayName:i,codeCopiedText:n,codeCopiedToastCta:r,riderPromoRequirement:a,promoRequirementStyle:o,promoLabelStyle:l,percentOffRequirementOverride:s})=>{let c=(0,J.useRouter)(),[d,x]=(0,y.useState)(!1),{pathname:h}=c,u=nw(e),{code:m}=e,{href:p}=t,g=(0,y.useMemo)(()=>p.includes("{code}")?p.replace("{code}",m):`${p}/${m}`,[p,m]);return(0,k.jsxs)(lE,{children:[(0,k.jsx)(l$,{children:u===ny.PERCENT_OFF?(0,k.jsx)(lL,{promo:e,promoRequirementStyle:o,promoLabelStyle:l,requirementOverride:s}):(0,k.jsx)(lT,{promo:e,promoRequirementStyle:o,riderPromoRequirement:a,promoLabelStyle:l})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),(0,k.jsxs)(lM,{children:[(0,k.jsx)(Q.CopyToClipboard,{text:m,onCopy:()=>x(!0),children:(0,k.jsx)(L.pT,{onClick:()=>{ee.f.incr("rider-promo-list-entry.click"),K.CC.send({eventName:"www_btn_click",action:"click",action_type:"click",
94sending_service:"lyftcomfe",source:"lyftcomfe",category:"RiderPromoCouponSelected",code:m,path:h})},textStyle:"titleW1",children:m})}),(0,k.jsx)(L.$W,{text:n,dismissible:!0,show:d,sentiment:"positive",autoHide:!1,onDismiss:()=>x(!1),action:()=>c.replace(g),actionText:r,position:"top"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),(0,k.jsx)(el,{...t,href:g,trackingCategory:i,trackingAction:"click",trackingLabel:i,trackingValue:t.copy,stat:"rider-promo-list-entry.click"})]})]})},lN=T.Ay.div.withConfig({componentId:"sc-f882fb89-0"})(["text-align:center;"]),lW=({displayName:e,title:t,subtitle:i,riderPromoCodeList:n,terms:r,noPromoFoundText:a,isPageHeader:o,entryConfiguration:l,...s})=>{let{loading:c,promos:d}=(e=>{let{logger:t}=(0,e5.Ul)(),[i,n]=(0,y.useState)(!0),[r,a]=(0,y.useState)([]),o=(0,y.useCallback)(async()=>{n(!0),a([]),a((await Promise.all(e.map(e=>rs(e)))).map(e=>{if(e.valid)return e.passengerReferral;t.info("RiderPromoList: invalid promo code",{code:e.code}),ee.f.incr("promo-list.code.failure",void 0,{code:e.code})}).filter(e=>!!e)),n(!1)},[t,e]);return(0,y.useEffect)(()=>{o()},[o]),{loading:i,promos:r}})(n);return(0,k.jsx)(z.Ci,{containerSpacing:l?.containerSpacing,trackingAction:"view",trackingCategory:"PromoList",trackingLabel:e,children:(0,k.jsxs)(V.Ay,{children:[!!(t||i)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(lN,{children:[t&&(0,k.jsx)(B.A,{content:t,tagName:o?"h1":"h2",textStyle:"displayW2"}),i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"oneAndHalf",vertical:!0}),(0,k.jsx)(L.pT,{textStyle:"bodyW2",children:i})]})]}),(0,k.jsx)(L.Yx,{unit:"three",vertical:!0})]}),c?(0,k.jsx)(L.ye,{preset:{...L.au.CoreUIDisplayCard.compact,width:void 0,height:128}}):0===d.length?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(lN,{children:(0,k.jsx)(L.pT,{color:"textSecondary",textStyle:"bodyW1",children:a})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"})]}):(0,k.jsxs)("div",{children:[r&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(lN,{children:(0,k.jsx)(E.A,{content:r||""})}),(0,k.jsx)(L.Yx,{unit:"one",vertical:!0})]}),d.map((t,i)=>(0,k.jsxs)("div",{children:[(0,k.jsx)(lP,{...s,promo:t,displayName:e}),i!==d.length-1&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"})]},t.code))]})]})})};var lR=i(16776);let l_=W._t("1dvrvk1",""),lF=e=>{let{fareEstimate:t}=(0,y.useContext)(et.$m),i=(0,y.useContext)(lu.A),{id:n,referenceId:r,displayName:a}=e;if(!i?.disclaimers)return null;let{airport:o,eventFee:l,general:s,surcharges:c,tolls:d,city:x}=i.disclaimers,h=[s,c,o,l,d||l_.t(),x].filter(e=>e).join("\n\n");return(0,k.jsx)(a9,{id:n,componentType:lR.U.LegalText,header:t?.resultsTableCopy?.priceDetails,content:h,referenceId:r,displayName:a,textStyleOverride:"bodyW2"})};var lY=i(91494);let lG=T.I4.div.withConfig({componentId:"sc-2432ac89-0"})(["user-select:none;height:1px;margin:-1px;overflow:hidden;"]),lO=({children:e})=>(0,k.jsx)(lG,{role:"status","aria-live":"polite",children:e}),lU={CATEGORY:"category",SEARCH:"search",LOCATION:"location"},lD=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],lH=e=>e&&e.location?e.location.name.trim():null,lz=e=>{let t=(e&&e.metadata||[]).find(e=>"Career Site Category"===e.name);return t?t.value:null},lB=(e,t)=>{let i=e;t&&Object.keys(t).length&&(i=e.filter(e=>Object.keys(t).filter(i=>{let n=decodeURIComponent((t[i]||"").toLowerCase());switch(i){case lU.SEARCH:return e.title.toLowerCase().indexOf(n)>-1;case lU.LOCATION:return n===(lH(e)||"").toLowerCase();case lU.CATEGORY:return n===(lz(e)||"").toLowerCase();default:return!1}}).length===Object.keys(t).length));let n={};return i.forEach(e=>{let t=lz(e);t&&(n[t]||(n[t]=[]),n[t].push(e))}),n},lV={[lU.CATEGORY]:"University"},lq={[lU.CATEGORY]:"Talent Acquisition"},lJ=e=>e.universityOnly?lV:e.talentAcquisitionOnly?lq:{},lQ=W._t("um8r66",""),lK=W._t("1umxzbd",""),lX=T.Ay.button.withConfig({componentId:"sc-d314000e-0"})(["background:none;color:inherit;border:none;font:inherit;outline:inherit;text-align:inherit;border-bottom:4px solid ",";padding:","px 0;width:100%;display:flex;align-items:center;"],L.ml.textPrimary.color,L.l$.four),lZ=T.Ay.div.withConfig({componentId:"sc-d314000e-1"})(["flex:1;margin:0;"]),l0=T.Ay.a.withConfig({componentId:"sc-d314000e-2"})(["border-bottom:1px solid "," display:inline-block;text-decoration:none;color:"," !important;width:100%;&:hover{text-decoration:none;}"],L.ml.strokeTertiary.color,L.ml.textPrimary.color),l1=({category:e,items:t,...i})=>{var n;let r,[a,o]=(0,y.useState)(i.defaultExpanded),[l,s]=(0,y.useState)(i.defaultExpanded),{newTabLinkTitleText:c="Opens in a new tab"}=(0,y.useContext)(et.$m),d=[],{query:x}=(0,J.useRouter)(),h=(r={}
94,Object.keys(n=rk()(x,lD)).forEach(e=>{r[e]=n[e]?.toString()||""}),r);return(0,y.useEffect)(()=>{l!==i.defaultExpanded&&(s(i.defaultExpanded),o(i.defaultExpanded))},[l,i]),a&&t.length&&(d=t),(0,k.jsxs)("div",{children:[(0,k.jsxs)(lX,{type:"button",onClick:()=>o(!a),children:[(0,k.jsx)(lZ,{children:(0,k.jsx)(L.pT,{tagName:"h2",textStyle:"headlineW1",children:e})}),(0,k.jsx)(L.hw,{icon:a?S.owb:S.rIS,size:"small"})]}),a&&(0,k.jsxs)(k.Fragment,{children:[d.map(e=>(0,k.jsxs)(l0,{target:"_blank",title:c,rel:"noopener noreferrer",href:(0,tj.sB)(e.absolute_url,h),children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(L.pT,{tagName:"h3",textStyle:"titleW2",children:e.title}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one"}),(0,k.jsx)(L.pT,{tagName:"p",textStyle:"bodyW2",children:lH(e)}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(lG,{children:lQ.t()})]},e.absolute_url)),(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"})]})]})},l2=T.Ay.div.withConfig({componentId:"sc-4f834184-0"})(["display:flex;flex-direction:column;align-items:center;@media screen and (min-width:","px){flex-direction:row;}"],L.GL.m),l3=T.Ay.span.withConfig({componentId:"sc-4f834184-1"})(["flex:1;@media screen and (max-width:","px){display:none;}"],L.GL.m-1),l4=T.Ay.div.withConfig({componentId:"sc-4f834184-2"})(["margin-bottom:","px;@media screen and (min-width:","px){margin-bottom:","px;","}"],L.l$.two,L.GL.m,L.l$.one,({leftMargin:e})=>e?`margin-left: ${L.l$.four}px;`:""),l8=T.Ay.div.withConfig({componentId:"sc-4f834184-3"})(["@media screen and (min-width:","px){margin-bottom:","px;margin-left:","px;}"],L.GL.m,L.l$.one,L.l$.four),l6=e=>{let[t,i]=(0,y.useState)(null),[n,r]=(0,y.useState)({}),[a,o]=(0,y.useState)({}),[l,s]=(0,y.useState)(null),[c,d]=(0,y.useState)({}),x=(0,y.useRef)(null),{careerSearchCategoryDefaultText:h="",careerSearchClearText:u="",careerSearchFilterLabelText:m="",careerSearchLocationDefaultText:p="",careerSearchNotFoundText:g="",careerSearchPlaceholderText:f=""}=(0,y.useContext)(et.$m),j=!!(e.universityOnly||e.talentAcquisitionOnly),w=async()=>{let t,n,a,l,c,{jobs:h}=await fetch("https://api.greenhouse.io/v1/boards/lyft/jobs?content=true").then(e=>e.json()).catch(()=>{}),u=lJ(e),m={};if(window.location.search.length>1){let e=im().parse(window.location.search.substring(1)),t=Object.values(lU);Object.keys(e).forEach(i=>{let n=e[i],r="string"==typeof n?n:"";t.includes(i)?u[i]=r:m[i]=r})}o(m),r(u),i(h),d((t=(e,t)=>
94e.label.toLowerCase().localeCompare(t.label.toLowerCase()),n={},a=[],l={},c=[],h.forEach(e=>{let t=lz(e);if(t){let e=t.toLowerCase();n[e]||(n[e]=!0,a.push({label:t,value:encodeURIComponent(e)}))}let i=lH(e);if(i){let e=i.toLowerCase();l[i]||(l[i]=!0,c.push({label:i,value:encodeURIComponent(e)}))}}),a.sort(t),c.sort(t),{[lU.CATEGORY]:a,[lU.LOCATION]:c})),s(lB(h,u));let p=Object.keys(u).length;x&&x.current&&(p>1&&j||p>0&&!j)&&x.current.scrollIntoView({behavior:"smooth"})};(0,y.useEffect)(()=>{w()},[]);let v=i=>{if(!t)return;let n={...lJ(e),...i};r(n),s(lB(t,n));let o={...n};j&&o[lU.CATEGORY]&&delete o[lU.CATEGORY];let l=window.location.href.split("?")[0],c=im().stringify({...a,...o});c&&(l=`${l}?${c}`),window.history.replaceState({},"",l)},b=(e,t)=>{let i={...n};t?i[e]=t:delete i[e],v(i)};if(!l||!c)return(0,k.jsx)(V.Ay,{children:(0,k.jsx)(L.aH,{center:!0,vertical:!0,children:(0,k.jsx)(L.NV,{})})});let C=c&&c[lU.CATEGORY].findIndex(e=>e.value===n[lU.CATEGORY]),S=c&&c[lU.LOCATION].findIndex(e=>e.value===n[lU.LOCATION]),A=Object.values(l).reduce((e,t)=>e+t.length,0);return(0,k.jsx)("div",{ref:x,children:(0,k.jsxs)(V.Ay,{children:[(0,k.jsx)(lY.A,{type:"search",name:"search",customColor:"pink80",value:n[lU.SEARCH]||"",placeholder:f,onChange:e=>b(lU.SEARCH,e.target.value)}),(0,k.jsx)(lO,{children:lK.t({data:{searchResults:A,totalAmount:t?.length||0}})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"five"}),(0,k.jsxs)(l2,{children:[(0,k.jsx)(l3,{children:(0,k.jsx)(L.pT,{textStyle:"subtitleW2",children:m})}),!j&&c[lU.CATEGORY]&&(0,k.jsx)(l4,{children:(0,k.jsx)(L.xC,{name:"categoryFiter",label:h,onSelectItem:e=>b(lU.CATEGORY,e?.value),selectedIndex:C,options:c[lU.CATEGORY]})}),c[lU.LOCATION]&&(0,k.jsx)(l4,{leftMargin:!0,children:(0,k.jsx)(L.xC,{name:"locationFilter",label:p,onSelectItem:e=>{b(lU.LOCATION,e?.value)},options:c[lU.LOCATION],selectedIndex:S})}),!j&&Object.keys(n).length||j&&Object.keys(n).length>1?(0,k.jsx)(l8,{children:(0,k.jsx)(en.z4,{onClick:e=>{v({}),e.preventDefault()},children:u})}):null]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"five"}),Object.keys(l).length?Object.keys(l).toSorted().map(e=>(0,k.jsx)(l1,{category:e,items:l[e],defaultExpanded:Object.keys(n).length>0},e)):(0,k.jsx)(L.pT,{textStyle:"headlineW1",children:g})]})})};var l5=i(73291),l7=i.n(l5),l9=i(53703);let se=({results:e=[],searchPlaceholder:t})=>{let[i,n]=(0,y.useState)([]);return(0,k.jsx)(V.Ay,{children:(0,k.jsx)(l9.P,{name:"text-search",searchPlaceholder:t,onSuggestionSelected:(t,i)=>{let n=e?.find(({text:e})=>e===i.suggestionValue);n&&n.href&&window.location.assign(n?.href)},suggestions:i,onSuggestionsFetchRequested:t=>n((({value:t})=>{if(t.length<2)return[];let i=e.map(({text:e})=>e),n=l7().filter(t,i).filter(e=>e.score>5).map(({original:e})=>e),r=e.find(e=>{let{href:i=""}=e;return!!i.includes("rider/airports/")&&i.split("/").pop()===t});return r&&n.unshift(r.text),[...new Set(n)]})(t)),onSuggestionsClearRequested:()=>n([]),getSuggestionValue:e=>e,highlightFirstSuggestion:!0,color:"pink60"})})},st=({errorText:e,results:t,searchPlaceholder:i,searchType:n,referenceId:r,displayName:a})=>(0,k.jsx)(z.Ay,{referenceId:r,trackingAction:"view",trackingCategory:"Search",trackingLabel:a,children:(()=>{switch(n){case"Careers":return(0,k.jsx)(l6,{});case"Careers - University":return(0,k.jsx)(l6,{universityOnly:!0});case"Careers - Talent Acquisition":return(0,k.jsx)(l6,{talentAcquisitionOnly:!0});case"Regions":return(0,k.jsx)(nN,{errorText:e,results:t,searchPlaceholder:i,types:"regions"});case"Cities":return(0,k.jsx)(nN,{errorText:e,results:t,searchPlaceholder:i,types:"cities"});case"Text":return t&&(0,k.jsx)(se,{results:t,searchPlaceholder:i});default:return null}})()});var si=i(68827),sn=i.n(si);let sr={src:"https://cdn.lyft.com/lyftcomfe/_next/static/media/RunwayLogo.cda43554.svg",height:36,width:170,blurWidth:0,blurHeight:0};var sa=i(79064),so=i(54112),sl=i(98477),ss=i(39089);let sc=T.Ay.div.withConfig({componentId:"sc-b84c5418-0"})(["position:fixed;top:0;width:100%;z-index:",";"," transition:transform ","ms ",";will-change:transform;"],401,({collapsed:e,mainNavHeight:t})=>e?`transform: translateY(-${t}px);`:"",L.ol.durations.short,({collapsed:e})=>e?L.ol.curves.exit:L.ol.curves.enter),sd=({children:e,className:t,mainNavHeight:i})=>{let[n,r]=(0,y.useState)(!1),[a,o]=(0,y.useState)(0),l=(0,y.useRef)(null),s="u">typeof document?document.getElementById(ss.FA):null,c=!!s,d=(0,y.useCallback)(()=>
94{if(window){let e=window.pageYOffset||0;e>a?e>i&&r(!0):r(!1),o(e)}},[i,a]);(0,y.useEffect)(()=>(window.addEventListener("scroll",d),()=>window.removeEventListener("scroll",d)),[d]),(0,y.useEffect)(()=>{let e=window.getComputedStyle(document.body).marginTop;return c||(document.body.style.marginTop=`${i}px`),()=>{document.body.style.marginTop=e}},[i,c]);let x=(0,k.jsx)(sc,{ref:l,collapsed:n,mainNavHeight:i,className:t,children:e});return c?(0,sl.createPortal)(x,s):x},sx=T.Ay.nav.withConfig({componentId:"sc-848d5cf6-0"})(["display:flex;width:100%;justify-content:space-between;align-items:center;height:","px;padding:24px 44px 24px 33px;border-bottom:1px solid ",";background-color:white;@media (min-width:","px){padding:13px 24px;}"],ss.JQ,L.ml.strokeTertiary.color,L.GL.m),sh=T.Ay.div.withConfig({componentId:"sc-848d5cf6-1"})(["display:flex;"]),su=T.Ay.div.withConfig({componentId:"sc-848d5cf6-2"})(["height:","px;display:flex;align-items:center;justify-content:center;@media (min-width:","px){width:218px;}"],ss._Q,L.GL.m),sm=T.Ay.a.withConfig({componentId:"sc-848d5cf6-3"})(["line-height:0;color:"," !important;&:hover{color:"," !important;}",";"],L.ml.lyftPink.color,L.ml.textPrimary.color,({$logoType:e})=>e&&["Warwick","WarwickCanada"].includes(e)?`padding-right: ${L.l$.two}px;`:""),sp=T.Ay.img.withConfig({componentId:"sc-848d5cf6-4"})(["width:100%;"]),sg=T.Ay.div.withConfig({componentId:"sc-848d5cf6-5"})(["background:",";width:1px;margin:-19px 0;"],L.ml.strokeTertiary.color),sf=({logoType:e,locale:t})=>{switch(e){case"Runway":return(0,k.jsx)(sn(),{src:sr,height:ss._Q,alt:"Runway logo"});case"Warwick":return(0,k.jsx)(sp,{src:"https://cdn.lyft.com/static/lpl/illustrations/v1/Logo/Warwick/[email protected]",alt:"Warwick logo"});case"WarwickCanada":{let{src:e,alt:i}="fr"===t?{src:"https://cdn.lyft.com/static/lpl/illustrations/v1/Logo/DashPassFR/[email protected]",alt:"Lyft x Doordash logo"}:{src:"https://cdn.lyft.com/static/lpl/illustrations/v1/Logo/DashPassCAN/[email protected]",alt:"Lyft x Doordash logo"};return(0,k.jsx)(sp,{src:e,alt:i})}default:return(0,k.jsx)(L.hw,{icon:S.BMO,size:"extraLarge"})}},sy=({hideLogo:e,hideLoginButton:t,logoType:i})=>{let{width:n}=(0,sa.l)(),r=n<=L.GL.m,{logIn:a}=(0,y.useContext)(et.$m),o=(0,iE.No)();return e&&t?null:(0,k.jsx)(sd,{mainNavHeight:ss.JQ,children:(0,k.jsxs)(sx,{"data-testid":ss.Fd,children:[e?(0,k.jsx)(sh,{}):(0,k.jsxs)(sh,{children:[(0,k.jsx)(su,{children:(0,k.jsx)(sm,{id:"xd-logo","data-testid":"xd-logo",href:"/","aria-label":"Home link",$logoType:i,children:(0,k.jsx)(sf,{logoType:i,locale:o})})}),!r&&(0,k.jsx)(sg,{})]}),t?(0,k.jsx)(sh,{}):(0,k.jsx)(L.gT,{"data-testid":"xd-login-button",href:"/login",children:a}),(0,k.jsx)(so.B,{alwaysRenderPopupMenu:!0})]})})},sj=(e="search")=>{let t=(0,J.useRouter)(),[i,n]=(0,y.useState)(()=>((e,t)=>{let i=e[t];if(i)return Array.isArray(i)?i[0]:i})(t.query,e));return{search:i,updateSearch:(0,y.useCallback)(i=>{n(i);let r={...t.query,[e]:i};void 0===i&&delete r[e],t.push({query:r},void 0,{shallow:!0})},[t,e])}},sw=W._t("1qxgony",""),sv=T.Ay.span.withConfig({componentId:"sc-b2f124f1-0"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){flex-direction:row;}"],L.GL.m),sb=T.Ay.a.withConfig({componentId:"sc-b2f124f1-1"})(["display:inline-flex;margin-left:0;margin-top:","px;@media screen and (min-width:","px){align-items:center;margin-left:","px;}"],L.l$.one,L.GL.m,L.l$.one),sC=T.Ay.span.withConfig({componentId:"sc-b2f124f1-2"})(["margin-left:","px;"],L.l$.half),sk=({heading:e,text:t})=>(0,k.jsxs)(L.pT,{tagName:"p",textStyle:"titleW3",role:"alert",children:[e,(0,k.jsxs)(sv,{children:[t,(0,k.jsxs)(sb,{href:"https://x.com/intent/tweet?text=Hey%20%40Lyft%2C%20I%20want%20you%20to%20%23BringMeLyft%20because%E2%80%A6",children:[(0,k.jsx)(L.hw,{icon:S.MRt,size:"extraSmall"}),(0,k.jsx)(sC,{children:sw.t()})]})]})]});var sS=((f={}).RiderCities="Rider: Cities",f.DriverCities="Driver: Cities",f);let sA=({name:e,slug:t},i="")=>{let n=e.trim().toLowerCase().split("/").map(e=>e.trim()).join("-").replaceAll(" ","-"),r=t.startsWith(n)?t:`${t}/${n}`;return`${i}/${r}`},sI=T.I4.div.withConfig({componentId:"sc-187c4fa2-0"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:flex-end;}"],L.GL.m),sT=({tableType:e})=>{let t=(0,J.useRouter)(),{search:i="US",updateSearch:n}=sj("country"),[r,a]=(0,y.useState)(!1),[o,l]=(0,y.useState)(!1),s=(e=>{let{supportedCitiesContext:t}=(0,nC.NM)();return e===sS.RiderCities?t?.riderCities||null:e===sS.DriverCities&&t?.driverCities||null})(e),c=e===sS.DriverCities?"/driver/cities":"/rider/cities",d=(0,y.useCallback)(async(e,i)=>{try{let n=await (0,ig._m)({params:{contains_lat:e,contains_lng:i}}),r=Object.values(n)[0];if(r){let e=sA({name:r.cityName,slug:r.slug},c);await t.push(e)}else l(!0)}catch(e){l(!0)}},[c,t]),x=async(e,i)=>{try{a(!0);let{suggestionValue:e="",suggestion:{lat:n=0,lng:r=0}={}}=i||{},o=((e,t)=>{let{city:i,state:n,country:r}=(e=>{let[t="",i="",n=""]=e.split(", ");return{city:t,state:i,country:n}})(e),a=nI[r],o=nT[n],l=t[a].find(e=>e.name===o||e.name===n);return l&&l.cities.find(e=>e.name===i)})(e,s?.regions||{});if(o){let e=sA(o,c);await t.push(e)}else await d(n,r)}catch{}finally{a(!1)}},h=i&&s?.countryDropdownData.countryMapping[i]?i:"US";if(!s||!s.regions[h])return(0,k.jsx)(L.NV,{});let{regions:u,countryDropdownData:m,citiesCommonData:p}=s,{searchPlaceholder:g,errorCopy:f}=p,j=Object.entries(m.countryMapping).map(([e,t])=>({value:e,label:t})),w=j.findIndex(e=>e.value===h),v=u[h];return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(z.Ci,{children:[(0,k.jsx)(iy.q,{name:"search-cities",additionalFetchParams:{types:"city"},inputProps:{placeholder:g,loading:r},onSuggestionSelected:(...e)=>void x(...e),highlightFirstSuggestion:!0,inputType:"search",required:!0}),o&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(sk,{text:f.errorText,heading:f.errorHeading}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"six"}),(0,k.jsx)(sI,{children:(0,k.jsx)(L.xC,{name:"countries",label:m.country,onSelectItem:e=>{e?.value&&n(e.value)},options:j,selectedIndex:w})})]}),v&&(0,k.jsx)(z.Ci,{children:(0,k.jsx)(oh,{list:v.map(e=>({heading:e.name,subList:e.cities.map(({name:e,slug:t})=>({text:e,href:sA({name:e,slug:t},c)}))}))})})]})},sL=T.Ay.div.withConfig({componentId:"sc-d0c9d8d-0"})(["break-inside:avoid;@media screen and (max-width:","px){border-bottom:1px solid ",";}"],L.GL.m-1,L.ml.strokeTertiary.color),sE=T.Ay.ul.withConfig({componentId:"sc-d0c9d8d-1"})(["list-style-type:none;padding-left:0;margin-top:0;@media screen and (max-width:","px){display:",";}"],L.GL.m-1,({$isExpanded:e})=>e?"block":"none"),s$=T.Ay.div.withConfig({componentId:"sc-d0c9d8d-2"})(["@media screen and (max-width:","px){display:none;}"],L.GL.m-1),sM=T.Ay.button.withConfig({componentId:"sc-d0c9d8d-3"})(["border:0;outline:none;width:100%;background:none;-webkit-tap-highlight-color:transparent;text-align:left;display:flex;justify-content:space-between;align-content:center;padding:","px 0;cursor:pointer;@media screen and (min-width:","px){display:none;}"],L.l$.four,L.GL.m),sP=({locality:e,airports:t,baseUrl:i})=>{let[n,r]=(0,y.useState)(!1),a=e.toUpperCase();return(0,k.jsxs)(sL,{children:[(0,k.jsxs)(s$,{children:[(0,k.jsx)(L.pT,{tagName:"h2",textStyle:"titleW1",children:a}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}),(0,k.jsxs)(sM,{onClick:()=>r(!n),type:"button",children:[(0,k.jsx)(L.pT,{tagName:"h2",textStyle:"titleW1",children:a}),(0,k.jsx)(L.hw,{icon:n?S.owb:S.rIS,size:"extraSmall"})]}),(0,k.jsx)(sE,{$isExpanded:n,children:t.map(({name:e,slug:t})=>(0,k.jsx)("li",{children:(0,k.jsx)("a",{href:`${i}/${t}`,children:e})},t))}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"zero",unitM:"two"})]})},sN="/rider/airports",sW=T.Ay.div.withConfig({componentId:"sc-e1618c1e-0"})(["column-count:1;@media screen and (min-width:","px){column-count:2;}"],L.GL.m),sR=T.Ay.div.withConfig({componentId:"sc-e1618c1e-1"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){align-items:flex-end;}"],L.GL.m),s_=[],sF=({referenceId:e})=>{let t=(()=>{let{supportedAirportsContext:e}=(0,nC.NM)();return e?.riderAirports?e.riderAirports:null})(),{search:i="US",updateSearch:n}=sj("country"),r=(0,J.useRouter)(),[a,o]=(0,y.useState)(!1),[l,s]=(0,y.useState)([]),c=i&&t?.airports[i]?i:"US",d=(0,y.useMemo)(()=>{let e;return t?.airports[c]?Object.keys(e=t.airports[c]).reduce((t,i)=>(t.push({...e[i],slug:i}),t),[]):s_},[c,t?.airports]),x=(0,y.useMemo)(()=>{let e;return e=new Map,d.forEach(t=>{e.has(t.locality)||e.set(t.locality,[]),e.get(t.locality).push(t)}),[...e.keys()].toSorted().map(t=>{let i=e.get(t)||[];return{locality:t,airports:i.map(({slug:e,name:t})=>({slug:e,name:t}))}})},[d]);if(!t)return(0,k.jsx)(V.Ay,{children:(0,k.jsx)(z.Ay,{children:(0,k.jsx)(L.NV,{})})});let{countryDropdownData:h,airportsCommonData:u}=t,m=Object.entries(h.countryMapping).map(([e,t])=>({value:e,label:t})),{searchPlaceholder:p}=u,g=async(e,t)=>{try{o(!0);let e=d.find(({name:e})=>e===t.suggestionValue);e&&await r.push(`${sN}/${e.slug}`)}finally{o(!1)}},f=m.findIndex(e=>e.value===c);return(0,k.jsxs)(V.Ay,{children:[(0,k.jsxs)(z.Ay,{referenceId:e,children:[(0,k.jsx)(l9.P,{name:"search-airports",color:"indigo80",searchPlaceholder:p,onSuggestionSelected:(...e)=>void g(...e),suggestions:l,onSuggestionsFetchRequested:e=>s((({value:e})=>
94{if(e.length<2)return[];let t=d.map(({name:e})=>e);return l7().filter(e,t).map(({original:e})=>e)})(e)),onSuggestionsClearRequested:()=>s([]),getSuggestionValue:e=>e,highlightFirstSuggestion:!0,loading:a}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"six"}),(0,k.jsx)(sR,{children:(0,k.jsx)(L.xC,{name:"categoryFiter",label:h.country,onSelectItem:e=>{e?.value&&n(e.value)},selectedIndex:f,options:m})})]}),(0,k.jsx)(z.Ay,{children:(0,k.jsx)(sW,{children:x.map(e=>(0,y.createElement)(sP,{...e,key:`${c}-${e.locality}`,baseUrl:sN}))})})]})},sY=(0,T.I4)(ej.Ay).withConfig({componentId:"sc-5242ca57-0"})(["width:100%;height:auto;",""],e=>e.borderRadius&&` 95 border-${e.borderRadius}-radius: 125px; 96 97 @media screen and (min-width: ${L.GL.l}px) { 98 border-${e.borderRadius}-radius: 140px; 99 } 100 101 `),sG=({src:e,alt:t,borderRadius:i,loading:n,assetWidth:r,width:a,height:o})=>(0,k.jsx)(sY,{src:e,alt:t,width:a,height:o,borderRadius:i,loading:n,assetWidth:r}),sO=T.Ay.div.withConfig({componentId:"sc-d1b298cf-0"})(["display:flex;height:100%;"]),sU=T.Ay.div.withConfig({componentId:"sc-d1b298cf-1"})(["text-align:",";@media screen and (min-width:","px){text-align:left;margin-top:auto;margin-bottom:auto;}"],e=>e.$centerTextOnMobile?"center":"left",L.GL.l),sD=T.Ay.div.withConfig({componentId:"sc-d1b298cf-2"})(["max-width:100%;display:flex;justify-content:center;align-items:",";@media (min-width:","px){height:100%;}"],({$desktopVerticalPosition:e})=>{switch(e){case"bottom":return"flex-end";case"center":return"center";default:return"flex-start"}},L.GL.m),sH=(0,T.Ay)(i1.Kf).withConfig({componentId:"sc-d1b298cf-3"})(["width:100%;height:100%;"]),sz=T.Ay.div.withConfig({componentId:"sc-d1b298cf-4"})(["display:flex;flex-direction:row;justify-content:space-around;@media screen and (min-width:","px){justify-content:flex-start;}"],L.GL.l),sB=T.Ay.div.withConfig({componentId:"sc-d1b298cf-5"})(["border:none;@media screen and (min-width:","px){"," margin-right:","px;padding-left:","px;}"],L.GL.l,({$borderColor:e})=>` 102 border-left: 2px solid ${e&&L.ml[e]?L.ml[e].color:L.ml.indigo40.color}; 103 `,L.l$.five,L.l$.two),sV=T.Ay.div.withConfig({componentId:"sc-d1b298cf-6"})(["width:100%;display:flex;gap:","px;@media screen and (max-width:","px){flex-wrap:wrap;}"],L.l$.two,L.GL.l-1),sq=({content:e,eyebrow:t,header:i,image:n={src:"",alt:""},mobileImagePlacement:r="above",video:a,videoIsGif:o,linkButtonHref:l,linkButtonText:s,linkButtonStyle:c,linkButtonAriaLabel:d,useGreyBackground:x,referenceId:h,imageBorderRadius:u,desktopImagePlacement:m="left",metrics:p,metricBorderColor:g,backgroundColor:f,textColor:y,learnMoreLinkHref:j,learnMoreLinkText:w,learnMoreLinkStyle:v="secondary",learnMoreLinkAriaLabel:b,displayName:C,centerTextOnMobile:S,mediaPosition:A="top"})=>{let I=!!(s&&l);return(0,k.jsx)(z.Ci,{id:h,backgroundColor:f||(x?"backgroundSecondary":void 0),trackingAction:"view",trackingCategory:"TextImageModule",trackingLabel:C,children:(0,k.jsxs)(L.en,{noMargins:!0,children:[(0,k.jsx)(L.J2,{cols:0,colsM:1,order:1}),(0,k.jsxs)(L.J2,{cols:4,colsM:5,order:"above"===r?2:4,orderM:"right"===m?4:2,children:[a?(0,k.jsx)(sH,{poster:n.src,autoPlay:o,muted:o,loop:o,controls:!o,children:a.map(e=>(0,k.jsx)("source",{...e},e.type))}):(0,k.jsx)(sD,{$desktopVerticalPosition:A,children:(0,k.jsx)(sG,{src:n.src,alt:n.alt,height:n.height,width:n.width,assetWidth:ej.ll.LARGE,loading:"lazy",borderRadius:u})}),"above"===r&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"})]}),(0,k.jsx)(L.J2,{cols:0,colsM:1,order:3}),(0,k.jsxs)(L.J2,{cols:4,colsM:4,order:"above"===r?4:2,orderM:"right"===m?2:4,children:[(0,k.jsx)(sO,{children:(0,k.jsxs)(sU,{$centerTextOnMobile:S,children:[t&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{color:y,textStyle:"titleW1",children:t}),(0,k.jsx)(L.Yx,{unit:"two",unitM:"one",vertical:!0})]}),i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(B.A,{content:i,tagName:"h2",textStyle:"headlineW1"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two",unitM:"three"})]}),Array.isArray(p)&&p.length&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(sz,{children:p.map(({metric:e,label:t})=>(0,k.jsxs)(sB,{$borderColor:g,children:[(0,k.jsx)(L.pT,{color:y,textStyle:"headlineW3",tagName:"p",children:e}),(0,k.jsx)(L.Yx,{unit:"half",vertical:!0}),(0,k.jsx)(L.pT,{color:y,textStyle:"titleW3",tagName:"p",children:t})]},`${e}-${t}`))}),(0,k.jsx)(L.Yx,{unit:"five",vertical:!0})]}),e&&(0,k.jsx)(E.A,{textColor:y,content:e}),(I||w&&j)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsxs)(sV,{children:[I&&(0,k.jsx)(en.$J,{href:l,"aria-label":d,trackingCategory:"TextImageModule primary button",trackingLabel:C,trackingValue:s,buttonStyle:c,children:s}),w&&j&&(0,k.jsx)(en.$J,{textButton:!0,href:j,buttonStyle:v,"aria-label":b,trackingCategory:"TextImageModule secondary button",trackingLabel:C,trackingValue:w,children:w})]})]})]})}),"below"===r&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"})]}),(0,k.jsx)(L.J2,{cols:0,colsM:1,order:5})]})})},sJ=({children:e,href:t})=>t?(0,k.jsx)("a",{href:t,children:e}):e,sQ=T.Ay.div.withConfig({componentId:"sc-bb68728f-0"})(["&:not(:last-child){padding-bottom:",";@media screen and (min-width:","px){padding-bottom:","px;}}",""],e=>e?`${L.l$.eight}px`:`${L.l$.five}px`,L.GL.m,L.l$.eight,e=>e.backgroundColor&&` 104 padding-top: ${L.l$.eight}px; 105 padding-bottom: ${L.l$.eight}px; 106 background-color: ${L.ml[e.backgroundColor].color}; 107 &:not(:last-child) { 108 @media screen and (min-width: ${L.GL.m}px) { 109 padding-bottom: ${L.l$.eight}px; 110 } 111 } 112 `),sK=T.Ay.div.withConfig({componentId:"sc-bb68728f-1"})(["display:flex;flex-direction:column;justify-content:center;height:100%;"]),sX=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-bb68728f-2"})(["max-width:100%;height:auto;"]),sZ=(0,T.Ay)(i1.Kf).withConfig({componentId:"sc-bb68728f-3"})(["width:100%;height:100%;
112"]),s0={hideSpacing:!0,transparentBackground:!0},s1=({content:e,header:t,backgroundColor:i,textColor:n,image:r={src:"",alt:""},mobileImagePlacement:a="above",imageHref:o,largeVideo:l,video:s,videoIsGif:c,rightAlign:d,referenceId:x,ctaCopy:h,ctaHref:u,ctaStyle:m,ctaAriaLabel:p,useTextButton:g,oneTrustCta:f})=>{let j=(0,y.useRef)(null);return(0,k.jsx)(sQ,{id:x,backgroundColor:i,children:(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{cols:0,colsM:1,orderM:1}),(0,k.jsxs)(L.J2,{colsM:5,order:"above"===a?1:3,orderM:d?4:2,children:[l?(0,k.jsx)(eD.d.Provider,{value:s0,children:(0,k.jsx)(i9,{...l,fullWidth:!0})}):s?(0,k.jsx)(sZ,{poster:r.src,autoPlay:c,muted:c,loop:c,controls:!c,children:s.map(e=>(0,k.jsx)("source",{...e},e.type))}):(0,k.jsx)(sJ,{href:o,children:(0,k.jsx)(sX,{src:r.src,assetWidth:ej.ll.LARGE,alt:r.alt,height:r.height,width:r.width,loading:"lazy"})}),"above"===a&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"})]}),(0,k.jsx)(L.J2,{cols:0,colsM:1,orderM:3}),(0,k.jsx)(L.J2,{colsM:4,order:"above"===a?4:2,orderM:d?2:4,children:(0,k.jsxs)(sK,{children:[t&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{tagName:"h3",textStyle:"headlineW1",color:n,children:t}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}),(0,k.jsx)(E.A,{content:e,textColor:n}),h&&u&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)(en.$J,{textButton:g,buttonStyle:m,"aria-label":p,href:u,children:h})]}),h&&f&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}),(0,k.jsx)(L.gT,{buttonStyle:m,onClick:()=>{j.current?.click()},children:h}),(0,k.jsx)("button",{ref:j,id:"ot-sdk-btn",className:"ot-sdk-show-settings",type:"button",hidden:!0,children:h})]}),"below"===a&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"})]})})]})})},s2=({alignment:e="Left",entries:t=[],eyebrow:i,header:n,subheader:r,useGreyBackground:a,hideHeaderLine:o,referenceId:l,displayName:s})=>(0,k.jsxs)(z.Ay,{useGreyBackground:a,referenceId:l,trackingAction:"view",trackingCategory:"StackedTextImageModule",trackingLabel:s,children:[(i||n||r)&&(0,k.jsx)(z.w,{eyebrow:i,eyeBrowTextStyle:"titleW2",header:n,subheader:r,hideHeaderLine:o}),(0,k.jsx)("div",{children:t.map((t,i)=>(0,k.jsx)(s1,{...t,rightAlign:function(e,t){switch(e){case"Alternate starting left":return t%2==1;case"Alternate starting right":return t%2==0;case"Right":return!0;default:return!1}}(e,i)},t.displayName))})]}),s3=T.Ay.div.withConfig({componentId:"sc-d7f80d38-0"})(["display:flex;flex-direction:column;"]),s4=T.Ay.div.withConfig({componentId:"sc-d7f80d38-1"})(["display:flex;flex-direction:column;@media screen and (min-width:","px){flex-direction:row;}"],L.GL.l),s8=T.Ay.div.withConfig({componentId:"sc-d7f80d38-2"})([""]),s6=({displayName:e,cta:t,belowCTACopy:i,textColor:n,linkButtonHref:r,linkButtonText:a})=>{let o=(0,L.pq)({query:`(min-width: ${L.GL.l}px)`}),l=()=>i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"}),(0,k.jsx)(E.A,{textColor:n,content:i,textStyleOverride:"bodyW3"})]});return(0,k.jsxs)(s3,{children:[(0,k.jsxs)(s4,{"data-testid":"image-module-buttons-wrapper",children:[t&&(0,k.jsxs)(s8,{children:[(0,k.jsx)(L.gT,{href:t.href,buttonStyle:t.buttonStyle,"data-tracking-category":"StylizedTextImageModule primary button","data-tracking-action":"click","data-tracking-label":e,"data-tracking-value":t.copy,children:t.copy}),(0,k.jsx)(L.Yx,{unit:"zero",unitL:"three"}),!o&&l()]}),a&&r&&(0,k.jsxs)(k.Fragment,{children:[t&&(0,k.jsx)(L.Yx,{unit:"two",unitM:"zero",vertical:!0}),(0,k.jsx)(L.fu,{href:r,icon:S.hIg,iconPosition:"end",buttonStyle:"secondary","data-tracking-category":"StylizedTextImageModule secondary button","data-tracking-action":"click","data-tracking-label":e,"data-tracking-value":a,children:a})]})]}),t&&o&&l()]})},s5=({eyebrow:e,header:t,textColor:i})=>(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{color:i,textStyle:"titleW1",children:e}),(0,k.jsx)(L.Yx,{unit:"one",vertical:!0})]}),t&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(B.A,{content:t,tagName:"h2",textStyle:"headlineW1",color:i}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]})]}),s7=T.Ay.div.withConfig({componentId:"sc-cf1e4aa6-0"})(["display:flex;height:100%;"]),s9=T.Ay.div.withConfig({componentId:"sc-cf1e4aa6-1"})(["margin-top:auto;margin-bottom:auto;text-align:",";@media screen and (min-width:","px){text-align:left;}"],e=>e.centerTextOnMobile?"center":"left",L.GL.l),ce=T.Ay.div.withConfig({componentId:"sc-cf1e4aa6-2"})(["max-width:100%;display:flex;align-items:center;justify-content:center;"]),ct=T.Ay.span.withConfig({componentId:"sc-cf1e4aa6-3"})(["padding:16px 16px 8px 16px;",""],e=>e.$isSelected&&` 113 background-color: ${L.ml.alwaysWhite.color}; 114 box-shadow: ${L.R4.level4.shadow}; 115 border-radius: 999px; 116 border: 1px solid ${L.ml.brandInteractive.color} 117 `),ci=T.Ay.div.withConfig({componentId:"sc-cf1e4aa6-4"})(["display:flex;flex-direction:column;text-align:left;"]),cn=T.Ay.div.withConfig({componentId:"sc-cf1e4aa6-5"})(["text-align:center;@media screen and (min-width:","px){display:none;}"],L.GL.l),cr=T.Ay.div.withConfig({componentId:"sc-cf1e4aa6-6"})(["@media screen and (max-width:","px){display:none;}"],L.GL.l-1),ca=T.Ay.div.withConfig({componentId:"sc-cf1e4aa6-7"}
117)(["height:100%;display:flex;flex-direction:column;justify-content:",";"],({position:e})=>{switch(e){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}}),co=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-cf1e4aa6-8"})(["width:100px;height:auto;"]);class cl extends y.Component{constructor(e){super(e),this.renderLowerCopyAndImage=()=>{let{lowerCopy:e,lowerImage:t,lowerImageHref:i,textColor:n}=this.props;return(0,k.jsxs)(k.Fragment,{children:[(e||t)&&(0,k.jsx)(L.Yx,{unit:"five",unitS:"two",vertical:!0}),t&&(0,k.jsx)(sJ,{href:i,children:(0,k.jsx)(co,{src:t.src,alt:t.alt,width:t.width,height:t.height})}),e&&t&&(0,k.jsx)(L.Yx,{unit:"one",vertical:!0}),e&&(0,k.jsx)(E.A,{textColor:n,content:e,textStyleOverride:"bodyW3"}),(0,k.jsx)(L.Yx,{unit:"four",vertical:!0})]})},this.renderTabs=()=>{let{tabs:e,textColor:t,iconColor:i,iconSize:n}=this.props,{isTabbed:r,currentTab:a}=this.state;return e.map(({id:o,heading:l,subheading:s,href:c,icon:d,displayName:x},h)=>{let u=d?nH.Z[d]:void 0;return r?(0,k.jsxs)("div",{children:[(0,k.jsx)(ct,{$isSelected:h===a,"data-testid":`tabWrapper-${h}`,children:(0,k.jsx)(L.yo,{interactiveColor:t||"alwaysBlack",children:(0,k.jsx)(L.fu,{icon:u,onClick:()=>{this.setState({currentTab:h})},"data-tracking-category":"StylizedTextImageModuleTab","data-tracking-label":x,"data-tracking-action":"click","data-tracking-value":l,children:l})})}),h<e.length-1&&(0,k.jsx)(L.Yx,{unit:"half",vertical:!0})]},o):(0,k.jsxs)(ci,{children:[(0,k.jsxs)(L.aH,{alignItems:"center",children:[u&&(0,k.jsx)(L.hw,{"data-testid":`icon-${u.name}`,icon:u,size:n||"small",color:i}),(0,k.jsx)(L.Yx,{unit:"one"}),c?(0,k.jsx)(en.z4,{href:c,children:l}):(0,k.jsx)(L.pT,{textStyle:"bodyW2",tagName:"strong",color:t,children:(0,k.jsx)("strong",{children:l})})]}),!c&&(0,k.jsx)(L.Yx,{unit:"half",vertical:!0}),(0,k.jsxs)(L.aH,{children:[(0,k.jsx)(L.Yx,{unit:"four"}),(0,k.jsxs)("div",{children:[s&&(0,k.jsx)(E.A,{textColor:t,content:s}),h<e.length-1&&(0,k.jsx)(L.Yx,{unit:"three",vertical:!0})]})]})]},o)})};const{tabs:t}=e,i=t.length>0&&t.every(e=>!!e.image);this.state={isTabbed:i,currentTab:0}}render(){let{content:e,eyebrow:t,header:i,image:n,mobileImage:r,mobileImagePlacement:a="above",linkButtonHref:o,linkButtonText:l,referenceId:s,belowCTACopy:c,imageBorderRadius:d,desktopImagePlacement:x="left",backgroundColor:h,cta:u,textColor:m,tabs:p,displayName:g,centerTextOnMobile:f=!1,mediaPosition:y="top",lowerCopyMobilePosition:j="After content"}=this.props,{isTabbed:w,currentTab:v}=this.state,b=w?p[v].image:n,C=w?p[v].image:r;return(0,k.jsx)(z.Ay,{backgroundColor:h,referenceId:s,trackingAction:"view",trackingCategory:"StylizedTextImageModule",trackingLabel:g,children:(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{cols:0,colsM:1,orderM:"right"===x?3:1}),(0,k.jsx)(L.J2,{cols:4,colsM:4,order:"below"===a?4:2,orderM:"right"===x?4:2,children:(0,k.jsxs)(ca,{position:y,children:[(0,k.jsx)(L.Yx,{unit:"six",unitM:"zero"}),"Below headline"===a&&(0,k.jsx)(cn,{children:(0,k.jsx)(s5,{header:i,eyebrow:t,textColor:m})}),(0,k.jsxs)(ce,{children:[(0,k.jsx)(cr,{children:b&&(0,k.jsx)(sG,{src:b.src,alt:b.alt,height:b.height,width:b.width,assetWidth:ej.ll.LARGE,loading:"lazy",borderRadius:d})}),(0,k.jsx)(cn,{children:C&&(0,k.jsx)(sG,{src:C.src,alt:C.alt,height:C.height,width:C.width,assetWidth:ej.ll.LARGE,loading:"lazy",borderRadius:d})})]}),"above"===a&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"}),"Under image"===j?(0,k.jsx)(cn,{children:this.renderLowerCopyAndImage()}):null]})}),(0,k.jsx)(L.J2,{cols:0,colsM:1,orderM:"right"===x?1:3}),(0,k.jsxs)(L.J2,{cols:4,colsM:5,order:"above"===a?4:2,orderM:"right"===x?2:4,children:[(0,k.jsx)(s7,{children:(0,k.jsxs)(s9,{centerTextOnMobile:f,children:[(0,k.jsx)(cr,{children:(0,k.jsx)(s5,{header:i,eyebrow:t,textColor:m})}),"Below headline"!==a&&(0,k.jsx)(cn,{children:(0,k.jsx)(s5,{header:i,eyebrow:t,textColor:m})}),e&&(0,k.jsx)(E.A,{textColor:m,content:e}),(0,k.jsx)(L.Yx,{unit:"three",vertical:!0}),this.renderTabs(),(u||l&&o)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"five"}),(0,k.jsx)(s6,{displayName:g,cta:u,belowCTACopy:c,textColor:m,linkButtonText:l,linkButtonHref:o})]}),"After content"===j?this.renderLowerCopyAndImage():(0,k.jsx)(cr,{children:this.renderLowerCopyAndImage()})]})}),"below"===a&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"})]})]})})}}let cs=T.Ay.div.withConfig({componentId:"sc-5b71b756-0"})(["text-align:center;"]),cc=({compact:e,content:t})=>(0,k.jsxs)(V.Ay,{colsM:e?6:void 0,offsetColsM:e?3:void 0,children:[(0,k.jsx)(cs,{children:(0,k.jsx)(E.A,{content:t})}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}
117),cd=({entries:e=[],backgroundColor:t,useGreyBackground:i,compact:n,referenceId:r,displayName:a})=>(0,k.jsx)(z.Ay,{backgroundColor:t,useGreyBackground:i,referenceId:r,trackingAction:"view",trackingCategory:"TextCarousel",trackingLabel:a,children:(0,k.jsx)(L.yL,{buttonStyle:"compact",children:e.map(e=>(0,y.createElement)(cc,{...e,compact:n,key:e.content}))})}),cx={left:"flex-start",center:"center",right:"flex-end"},ch=T.Ay.div.withConfig({componentId:"sc-9c777eab-0"})(["display:flex;flex-direction:column;align-items:",";@media screen and (min-width:","px){"," flex:1;}&:not(:last-child){@media screen and (max-width:","px){margin-bottom:","px;}}"],({alignment:e})=>cx[e],L.GL.m,({alignment:e})=>{switch(e){case"center":return` 118 padding-left: ${L.l$.three}px; 119 padding-right: ${L.l$.three}px; 120 `;case"right":return`padding-left: ${L.l$.six}px;`;default:return`padding-right: ${L.l$.six}px;`}},L.GL.m-1,L.l$.five),cu=T.Ay.div.withConfig({componentId:"sc-9c777eab-1"})(["display:flex;justify-content:",";"],({alignment:e})=>cx[e]||"flex-end"),cm=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-9c777eab-2"})(["max-width:100%;height:auto;"]),cp=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-9c777eab-3"})(["max-width:250px;height:auto;"]),cg=(0,T.Ay)(E.A).withConfig({componentId:"sc-9c777eab-4"})(["text-align:",";"],({alignment:e})=>e),cf={hideSpacing:!0,transparentBackground:!0},cy=({content:e,referenceId:t,header:i,headerTag:n,headerTextStyle:r="headlineW1",image:a,logo:o,ctaCopy:l,ctaHref:s,ctaStyle:c="secondary",ctaAriaLabel:d,video:x,textColor:h,displayName:u,entryAlignment:m,useTextButton:p=!1})=>{let g=(0,b.Kn)(s),f=(0,y.useMemo)(()=>a?.src?(0,k.jsx)(cm,{src:a.src,assetWidth:ej.ll.LARGE,alt:a.alt,loading:"lazy",height:a.height,width:a.width}):null,[a]);return(0,k.jsxs)(ch,{id:t,alignment:m,children:[x?(0,k.jsx)(eD.d.Provider,{value:cf,children:(0,k.jsx)(i9,{...x,fullWidth:!0})}):f,(x||a?.src)&&(0,k.jsx)(L.Yx,{vertical:!0,unit:o?"two":"three",unitM:o?"three":"four"}),o&&o.src&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(cp,{src:o.src,assetWidth:500,alt:o.alt,height:o.height,width:o.width,loading:"lazy"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:i?"three":"two"})]}),(0,k.jsxs)("div",{children:[i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(iF.o,{tagName:n,textStyle:r,color:h,textAlign:m,children:i}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}),e&&(0,k.jsx)(cg,{content:e,textColor:h,alignment:m,highestHeadingLevel:"h2"===n?3:4}),l&&s&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"}),(0,k.jsx)(cu,{alignment:m,children:(0,k.jsx)(en.$J,{href:g,buttonStyle:c,"aria-label":d,trackingCategory:"ThreeColumnEntry primary button",trackingLabel:u,trackingValue:l,textButton:p,children:l})})]})]})]})},cj=T.Ay.div.withConfig({componentId:"sc-a6f23a47-0"})(["width:100%;overflow:hidden;"]),cw=T.Ay.div.withConfig({componentId:"sc-a6f23a47-1"})(["@media screen and (min-width:","px){display:flex;align-items:center;height:100%;}"],L.GL.m),cv=T.Ay.div.withConfig({componentId:"sc-a6f23a47-2"})(["width:100%;@media screen and (min-width:","px){display:flex;}"],L.GL.m),cb=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-a6f23a47-3"})(["height:auto;max-height:25rem;width:auto;@media screen and (max-width:","px){max-width:100%;}"],L.GL.m-1),cC=(0,T.Ay)(E.A).withConfig({componentId:"sc-a6f23a47-4"})(["text-align:",";"],({alignment:e})=>e),ck=({entries:e=[],entriesAlignment:t="left",eyebrow:i,eyebrowAlignment:n="left",header:r,headerAlignment:a="left",subheader:o,subheaderAlignment:l="left",content:s,contentAlignment:c="left",image:d,useGreyBackground:x,referenceId:h,displayName:u,backgroundColor:m,textColor:p="textPrimary"})=>{let g=(0,y.useMemo)(()=>{let e=L.ml[m||"textInteractive"],t=L.ml[p];return(0,oz.p3)(e)&&(0,oz.p3)(t)?(0,oz.TT)(e.hex,t.hex):{isAccessible:!0}},[m,p]),f="textPrimary"!==p,j=g.isAccessible?"textInteractive":"brandInteractive",w=!!(x||m);return(0,k.jsx)(z.Ay,{useGreyBackground:x,backgroundColor:m,referenceId:h,trackingAction:"view",trackingCategory:"ThreeColumnModule",trackingLabel:u,children:(0,k.jsxs)(L.yo,{interactiveColor:f?p:j,linkHoverColor:f?p:"textPrimary",children:[i&&(0,k.jsx)(eB.A,{content:i,tagName:"h2",textColor:p,al
120ignment:n}),(0,k.jsxs)(V.Ay,{children:[r&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(B.A,{content:r,tagName:"p",textStyle:"headlineW1",color:p,textAlign:a}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}),o&&(0,k.jsxs)("div",{children:[(0,k.jsx)(B.A,{content:o,tagName:"p",textStyle:"headlineW1",color:p,textAlign:l}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"})]}),s&&(0,k.jsx)(cC,{content:s,textColor:p,alignment:c}),!!(s||w)&&(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"})]}),(0,k.jsx)(cj,{children:(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{cols:0,colsM:1}),(0,k.jsx)(L.J2,{colsM:1,orderM:1,children:d&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(cb,{src:d.src,assetWidth:ej.ll.LARGE,alt:d.alt,loading:"lazy",height:d.height,width:d.width}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"})]})}),(0,k.jsx)(L.J2,{colsM:d?9:10,children:(0,k.jsx)(cw,{children:(0,k.jsx)(cv,{children:e.map(e=>(0,y.createElement)(cy,{...e,key:e.content,headerTag:i?"h3":"h2",textColor:p,entryAlignment:t}))})})})]})})]})})},cS=T.Ay.div.withConfig({componentId:"sc-cd315d3b-0"})(["text-align:center;@media screen and (min-width:","px){text-align:left;}"],L.GL.l),cA=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-cd315d3b-1"})(["width:100%;height:auto;"]),cI=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-cd315d3b-2"})(["display:none;height:auto;@media screen and (min-width:","px){display:block;position:absolute;max-width:100%;height:auto;bottom:20px;left:-24%;}@media screen and (min-width:","px){display:block;position:absolute;max-width:100%;bottom:20px;}"],L.GL.l,L.GL.xl),cT=T.Ay.div.withConfig({componentId:"sc-cd315d3b-3"})(["position:relative;height:100%;width:100%;"]),cL=T.Ay.div.withConfig({componentId:"sc-cd315d3b-4"})(["@media screen and (min-width:","px){padding-bottom:115px;}@media screen and (min-width:","px){padding-bottom:144px;}"],L.GL.l,L.GL.xl),cE=T.Ay.div.withConfig({componentId:"sc-cd315d3b-5"})(["position:absolute;bottom:0;width:100%;z-index:-1;@media screen and (min-width:","px){padding-bottom:115px;}@media screen and (min-width:","px){padding-bottom:144px;}",""],L.GL.l,L.GL.xl,e=>e.backgroundColor&&L.ml[e.backgroundColor]&&` 121 background-color: ${L.ml[e.backgroundColor].color}; 122 `),c$=T.Ay.span.withConfig({componentId:"sc-cd315d3b-6"})(["@media screen and (min-width:","px){display:none;}"],L.GL.l),cM=T.Ay.div.withConfig({componentId:"sc-cd315d3b-7"})(["position:relative;"]),cP=({eyebrow:e,heading:t,image:i,lowerImage:n,primaryCta:r,secondaryCta:a,copy:o,backgroundTransitionColor:l,displayName:s})=>(0,k.jsxs)(cM,{"data-tracking-action":"view","data-tracking-category":"TwoCtaHero","data-tracking-label":s,children:[(0,k.jsx)(L.Yx,{unit:"five",vertical:!0}),(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{cols:4,colsM:12,colsL:6,children:(0,k.jsxs)(cS,{children:[(0,k.jsx)(L.Yx,{unit:"zero",unitM:"five",vertical:!0}),(0,k.jsx)(L.pT,{textStyle:"titleW1",children:e}),(0,k.jsx)(L.Yx,{unit:"two",unitM:"two",vertical:!0}),(0,k.jsx)(B.A,{content:t,tagName:"h1",textStyle:"displayW1"}),(0,k.jsx)(L.Yx,{unit:"three",unitM:"six",vertical:!0}),r&&(0,k.jsx)(el,{...r,trackingCategory:"TwoCtaHero primary button",trackingAction:"click",trackingLabel:s,trackingValue:r.copy}),(0,k.jsx)(c$,{children:(0,k.jsx)(L.Yx,{unit:"two",unitL:"zero",vertical:!0})}),(0,k.jsx)(L.Yx,{unit:"zero",unitM:"one",horizontal:!0}),a&&(0,k.jsx)(el,{...a,trackingCategory:"TwoCtaHero secondary button",trackingAction:"click",trackingLabel:s,trackingValue:a.copy,buttonStyle:"secondary"}),o&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.Yx,{unit:"three",vertical:!0}),(0,k.jsx)(E.A,{content:o})]}),(0,k.jsx)(L.Yx,{unit:"five",vertical:!0}),(0,k.jsx)(cL,{})]})}),(0,k.jsx)(L.J2,{cols:0,colsM:1}),(0,k.jsx)(L.J2,{cols:4,colsM:10,colsL:5,children:(0,k.jsxs)(cT,{children:[i&&(0,k.jsx)(cA,{src:i.src,width:i.width,height:i.height,assetWidth:1e3,alt:i.alt}),(0,k.jsx)(L.Yx,{unit:"five",unitM:"zero"}),(0,k.jsx)(cL,{}),n&&(0,k.jsx)(cI,{src:n.src,width:n.width,height:n.height,assetWidth:800,alt:n.alt})]})})]}),(0,k.jsx)(cE,{backgroundColor:l})]}),cN={left:"flex-start",center:"center",right:"flex-end"},cW=T.Ay.div.withConfig({componentId:"sc-7a5b85e9-0"})(["display:flex;flex-direction:column;align-items:",";picture{display:flex;flex-direction:column;align-items:",";}"],({alignment:e})=>cN[e],({alignment:e})=>cN[e]),cR=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-7a5b85e9-1"})(["max-width:",";width:",";@media screen and (min-width:","px){max-width:100%;}height:auto;"],e=>e.fullWidth?"unset":"66%",e=>e.fullWidth?"100%":"auto",L.GL.m),c_=(0,T.Ay)(E.A).withConfig({componentId:"sc-7a5b85e9-2"})(["text-align:",";"],({alignment:e})=>e),cF=T.Ay.div.withConfig({componentId:"sc-7a5b85e9-3"})(["display:flex;justify-content:",";"],({alignment:e})=>cN[e]||"flex-start"),cY=T.Ay.div.withConfig({componentId:"sc-7a5b85e9-4"})(["@media screen and (min-width:","px){max-width:400px;}
122"],L.GL.m),cG={hideSpacing:!0,transparentBackground:!0},cO=({referenceId:e,content:t,header:i,image:n,video:r,imageHref:a,useFullWidthImages:o,ctaCopy:l,ctaHref:s,ctaStyle:c,ctaAriaLabel:d,textColor:x="textPrimary",imageBorderRadius:h,displayName:u,useLyftBrandColorButton:m,useTextButton:p=!1,entryAlignment:g})=>{let f=!!h,j="TwoColumnEntry primary button",w=(0,b.Kn)(s),v=(0,y.useMemo)(()=>n?(0,k.jsx)(sJ,{href:a,children:f?(0,k.jsx)(sG,{src:n.src,alt:n.alt,width:n.width,height:n.height,loading:"lazy",assetWidth:ej.ll.LARGE,borderRadius:h}):(0,k.jsx)(cR,{src:n.src,alt:n.alt,height:n.height,width:n.width,assetWidth:ej.ll.LARGE,fullWidth:o,loading:"lazy"})}):null,[n,h,a,o,f]);return(0,k.jsxs)(cW,{id:e,"data-testid":"Two-Column-Entry",alignment:g,children:[r?(0,k.jsx)(eD.d.Provider,{value:cG,children:(0,k.jsx)(i9,{...r,fullWidth:!0})}):v,n||r?(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"four"}):null,(0,k.jsxs)(cY,{children:[i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{color:x,tagName:"h3",textStyle:"headlineW2",textAlign:g,children:i}),t?(0,k.jsx)(L.Yx,{vertical:!0,unit:"two",unitM:"three"}):null]}),t&&(0,k.jsx)(c_,{textColor:x,interactiveColor:x,content:t,alignment:g}),i||t?(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"}):null,l&&s?(0,k.jsx)(cF,{alignment:g,children:p?(0,k.jsx)(L.fu,{href:w,icon:S.hIg,iconPosition:"end",buttonStyle:c,"aria-label":d,"data-tracking-category":j,"data-tracking-action":"click","data-tracking-label":u,"data-tracking-value":l,children:l}):(0,k.jsx)(L.yo,{interactiveColor:m?"brandInteractive":"textPrimary",children:(0,k.jsx)(L.gT,{buttonStyle:c,href:w,"aria-label":d,"data-tracking-category":j,"data-tracking-action":"click","data-tracking-label":u,"data-tracking-value":l,children:l})})}):null]})]})},cU=T.Ay.div.withConfig({componentId:"sc-5dfb8868-0"})(["display:none;@media screen and (min-width:","px){display:block;border-left:1px solid ",";height:100%;}"],L.GL.m,L.ml.strokeTertiary.color),cD=({entries:e=[],entriesAlignment:t="left",eyebrow:i,eyebrowAlignment:n,header:r,headerAlignment:a,content:o,contentAlignment:l,useFullWidthImages:s,useGreyBackground:c,referenceId:d,backgroundColor:x,textColor:h,displayName:u,hideHeaderLine:m,centerHeader:p,hideDivider:g,dividerType:f="line",ctaCopy:y,ctaHref:j,ctaStyle:w,ctaAlignment:v,ctaAriaLabel:b,useTextButton:C})=>(0,k.jsxs)(z.Ay,{backgroundColor:x,useGreyBackground:c,referenceId:d,trackingAction:"view",trackingCategory:"TwoColumnModule",trackingLabel:u,children:[i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(V.Ay,{children:(0,k.jsx)(L.pT,{color:h,textStyle:"titleW1",tagName:"p",textAlign:n,children:i})}),(0,k.jsx)(L.Yx,{unit:"three"})]}),(r||o)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(z.w,{header:r,headerAlignment:a||(p?"center":void 0),subheader:o,subheaderAlignment:l,hideHeaderLine:m,subheaderCta:y&&j&&(0,k.jsx)(en.$J,{buttonStyle:w,href:j,textButton:C,"aria-label":b,trackingCategory:"TwoColumnModule primary button",trackingLabel:u,trackingValue:y,children:y}),subheaderCtaAlignment:v}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"one",unitM:"three"})]}),(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{cols:0,colsM:1}),(0,k.jsx)(L.J2,{colsM:s?5:4,children:e[0]&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(cO,{textColor:h,useFullWidthImages:s,entryAlignment:t,...e[0]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"five",unitM:"zero"})]})}),!s&&(0,k.jsx)(L.J2,{cols:0,colsM:1}),!s&&!g&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.J2,{cols:0,colsM:1,children:"line"===f&&(0,k.jsx)(cU,{})}),(0,k.jsx)(L.Yx,{unit:"one"})]}),(0,k.jsx)(L.J2,{colsM:s?5:4,children:e[1]&&(0,k.jsx)(cO,{textColor:h,useFullWidthImages:s,entryAlignment:t,...e[1]})})]})]}),cH=T.Ay.img.withConfig({componentId:"sc-243fde97-0"})(["object-fit:cover;object-position:center;height:300px;width:300px;margin-bottom:15px;@media screen and (max-width:","px){width:400px;}"],L.GL.m-1),cz=T.Ay.div.withConfig({componentId:"sc-243fde97-1"})(["width:280px;"]),cB=T.Ay.a.withConfig({componentId:"sc-243fde97-2"})(["text-decoration:none;color:",";&:hover{text-decoration:none;color:",";}&:focus{color:",";}"],L.ml.alwaysBlack,L.ml.alwaysBlack,L.ml.alwaysBlack),cV=({header:e,trendingVenues:t})=>{let{trendingVenueWrapperCarouselVenueTitle:i="Top {{count}} Most Visited {{verticalName}}"}=(0,y.useContext)(et.$m);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{tagName:"h2",textStyle:"titleW2",children:e}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"six"}),(0,k.jsx)(L.yL,{contentStyle:"setWidth",buttonStyle:"compact",children:t.map(e=>{let t;return(0,k.jsxs)(cB,{href:(t=e.slug,`https://www.lyft.com/rider/city-guides/${t}`),children:[(0,k.jsx)(cH,{src:e.images.carouselLarge,title:e.verticalName,alt:e.verticalName}),(0,k.jsx)(cz,{children:(0,k.jsx)(L.pT,{tagName:"h3",textStyle:"titleW1",children:i.replace("{{count}}",e.count.toString()).replace("{{verticalName}}",e.verticalName)})})]},e.slug)})})]})},{CREDENTIALS_ROBOCOP_API_KEY:cq,CREDENTIALS_ROBOCOP_API_USERNAME:cJ}=i(99742).env||{},cQ=new e0.Nl({serviceUrl:"https://www.lyft.com",service:"robocop",requestTimeout:1e3});new e0.Nl({service:"robocop",serviceUrl:"https://brand.lyft.net",authType:e0.D3,user:cJ,key:cq});let cK=({slug:e,header:t})=>{let{cities:i,loading:n}=(e=>{let{data:t,loading:i}=(e=>{let[t,i]=(0,y.useState)(null),[n,r]=(0,y.useState)(!0);return(0,y.useEffect)(()=>{r(!0),cQ.get(e).then(e=>{i(e||null)}
122).catch(()=>{i(null)}).then(()=>{r(!1)})},[e]),{data:t,loading:n,error:null}})("/api/cities_metadata/"+e);return{cities:t?.data||[],loading:i}})(e);return!n&&i.length>3?(0,k.jsx)(V.Ay,{children:(0,k.jsx)(cV,{header:t,trendingVenues:i})}):null},cX=(0,i(871).b)()("stateCode","regionCode","country","availableService","deviceType","trafficSource","dwlPromoType","rwlPromoType"),cZ=({listOfVisibilityToggles:e,renderComponent:t})=>{let{query:i}=(0,J.useRouter)(),{deviceType:n,availableServices:r,trafficSource:a,country:o,regionCode:l,dwlPromoType:s,rwlPromoType:c,stateCode:d}=(()=>{let{incentive:e}=(0,th.kk)(),{rideWithLyftContext:t}=(0,nC.NM)(),i=(0,np.k)(),n=(0,t5.bG)(),{code:r,country:a,state:o}=(0,H.yI)(),{trafficSource:l}=(0,er.bp)(),s=(0,nh.useSearchParams)(),c=(0,y.useMemo)(()=>(e=>{let t={};for(let i of e.getAll("visibilityToggleOverrides")){let[e,n]=i.split(":");cX.includes(e)&&("availableService"===e?t[e]={[n]:!0}:t[e]=n)}return t})(s),[s]),d=(0,y.useMemo)(()=>t?.passengerReferral?nv(t.passengerReferral)===nj.PassengerReferralCode?"Passenger Referral Code":"Promo Code":"No Promo",[t]);return{stateCode:c.stateCode??o,regionCode:c.regionCode??r,country:c.country??a,availableServices:c.availableService??n,deviceType:c.deviceType??i,trafficSource:c.trafficSource??l,dwlPromoType:c.dwlPromoType??e?.type??"noPromo",rwlPromoType:c.rwlPromoType??d}})(),x=e.find(e=>{let t=!e.urlParamName||(({urlParamName:e,urlParamValue:t},i)=>{let n=!t&&e&&e in i,r=e&&e in i&&i[e]===t;return!e||n||!!r})(e,i),x=!e.trafficSource||(({trafficSource:e=[]},t)=>e.some(e=>e===t))(e,a),h=!e.regions||(({regions:e=[]},t="")=>{let i=e.map(e=>e.toUpperCase());return!!t&&i.length>0&&i.includes(t.toUpperCase())})(e,l),u=!e.stateCodes||(({stateCodes:e=[]},t)=>{let i=e.map(e=>e.toUpperCase());return!!t&&i.length>0&&i.includes(t.toUpperCase())})(e,d),m=!e.countryCodes||(({countryCodes:e=[]},t="")=>{let i=e.map(e=>e.toUpperCase());return!!t&&i.length>0&&i.includes(t.toUpperCase())})(e,o),p=!e.services||!(e.services.length>0)||e.services.some(e=>r[e]),g=!e.deviceSizeTypes||(({deviceSizeTypes:e=[]},t)=>e.some(e=>e===t))(e,n),f=!e.dwlPromoTypes||e.dwlPromoTypes.includes(s),y=!e.rwlPromoTypes||e.rwlPromoTypes.includes(c);return t&&h&&u&&m&&p&&g&&x&&f&&y});return x&&(x.component||x.componentList)?(0,k.jsxs)(k.Fragment,{children:[x.component&&t(x.component),x.componentList&&x.componentList?.map(t)]}):null},c0=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-c55e2d84-0"})(["width:",";max-width:100%;height:auto;"],e=>e.fullWidth?"100%":"auto"),c1=T.Ay.div.withConfig({componentId:"sc-c55e2d84-1"})(["@media screen and (min-width:","px){max-width:400px;}"],L.GL.m),c2=T.Ay.div.withConfig({componentId:"sc-c55e2d84-2"})(["width:100%;@media screen and (min-width:","px){"," flex:1;}&:not(:last-child){@media screen and (max-width:","px){margin-bottom:","px;}}"],L.GL.m,({alignment:e})=>{switch(e){case"center":return` 123 padding-left: ${L.l$.three}px; 124 padding-right: ${L.l$.three}px; 125 `;case"right":return`padding-left: ${L.l$.six}px;`;default:return`padding-right: ${L.l$.six}px;`}},L.GL.m-1,L.l$.five),c3=(0,T.Ay)(E.A).withConfig({componentId:"sc-c55e2d84-3"})(["text-align:",";"],({alignment:e})=>e),c4=({content:e,header:t,image:i,imageHref:n,useFullWidthImages:r,ctaCopy:a,ctaHref:o,ctaStyle:l,textColor:s,imageBorderRadius:c,displayName:d,ctaInteractiveColor:x="textPrimary",headerTag:h,entryAlignment:u})=>{let m=(0,b.Kn)(o),p=(0,y.useMemo)(()=>{if(!i)return null;let e=c?(0,k.jsx)(sG,{src:i.src,alt:i.alt,width:i.width,height:i.height,loading:"lazy",assetWidth:1500,borderRadius:c}):(0,k.jsx)(c0,{src:i.src,alt:i.alt,height:i.height,width:i.width,assetWidth:1500,fullWidth:r,loading:"lazy","aria-hidden":"true"});return n?(0,k.jsx)(sJ,{href:n,children:e}):e},[i,c,n,r]);return(0,k.jsxs)(c2,{"data-testid":"multi-column-entry",alignment:u,children:[p,(0,k.jsx)(L.Yx,{vertical:!0,unit:"two"}),(0,k.jsxs)(c1,{children:[t&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{tagName:h,textStyle:"headlineW1",color:s,textAlign:u,children:t}),(0,k.jsx)(L.Yx,{vertical:!0,unit:!e&&a&&o?"four":"two"})]}),e&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c3,{content:e,textColor:s,alignment:u}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"})]}),a&&o&&(0,k.jsx)(L.yo,{interactiveColor:x,children:(0,k.jsx)(L.gT,{href:m,buttonStyle:l,"data-tracking-category":"MultiColumnEntry primary button","data-tracking-action":"click","data-tracking-label":d,"data-tracking-value":a,children:a})})]})]})},c8=T.Ay.div.withConfig({componentId:"sc-b6e20928-0"})(["width:100%;overflow:hidden;"]),c6=T.Ay.hr.withConfig({componentId:"sc-b6e20928-1"})(["background-color:",";border:none;margin:0;height:0.25rem;"],L.ml.textPrimary.color),c5=(0,T.Ay)(ej.Ay).withConfig({componentId:"sc-b6e20928-2"})(["height:auto;max-height:25rem;width:auto;@media screen and (max-width:","px){max-width:100%;}"],L.GL.m-1),c7=(0,T.Ay)(E.A).withConfig({componentId:"sc-b6e20928-3"})(["text-align:",";"],({alignment:e})=>e),c9="left",de=({entries:e=[],entriesAlignment:t=c9,eyebrow:i,eyebrowAlignment:n=c9,header:r,headerAlignment:a=c9,subheader:o,subheaderAlignment:l=c9,content:s,contentAlignment:c=c9,image:d,useGreyBackgroun
125d:x,referenceId:h,displayName:u,backgroundColor:m,textColor:p="textPrimary",withHeaderUnderline:g})=>(0,k.jsx)(z.Ay,{useGreyBackground:x,backgroundColor:m,referenceId:h,trackingAction:"view",trackingCategory:"MultiColumnModule",trackingLabel:u,children:(0,k.jsxs)(L.yo,{interactiveColor:p,children:[i&&(0,k.jsx)(eB.A,{content:i,tagName:"h2",textColor:p,alignment:n}),(0,k.jsxs)(V.Ay,{children:[r&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(B.A,{content:r,tagName:"p",textStyle:"headlineW1",color:p,textAlign:a}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two",unitM:"three"})]}),o&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(B.A,{content:o,tagName:"p",textStyle:"headlineW1",color:p,textAlign:l}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two",unitM:"four"})]}),g&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c6,{"aria-hidden":"true"}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"four",unitM:"six"})]}),s&&(0,k.jsx)(c7,{content:s,textColor:p,alignment:c}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"})]}),(0,k.jsx)(c8,{children:(0,k.jsxs)(L.en,{maxWidth:"compact",children:[(0,k.jsx)(L.J2,{cols:0,colsM:1}),(0,k.jsx)(L.J2,{colsM:1,orderM:1,children:d&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c5,{src:d.src,assetWidth:1500,alt:d.alt,loading:"lazy",height:d.height,width:d.width}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three",unitM:"zero"})]})}),(0,k.jsx)(L.J2,{colsM:d?9:10,children:(0,k.jsx)(L.en,{maxWidth:"compact",children:e.map(e=>(0,k.jsx)(L.J2,{cols:e.cols,colsS:e.colsS,colsM:e.colsM,colsL:e.colsL,colsXL:e.colsXL,children:(0,k.jsx)(c4,{...e,headerTag:i?"h3":"h2",textColor:p,entryAlignment:t})},e.content))})})]})})]})}),dt=(0,T.I4)(L.aH).attrs({justifyContent:"space-between"}).withConfig({componentId:"sc-38908cca-0"})(["padding:","px 0;border:1px solid ",";border-width:1px 0;width:100%;cursor:pointer;"],L.l$.three,L.ml.strokeTertiary.color),di=T.I4.div.withConfig({componentId:"sc-38908cca-1"})(["margin-left:","px;white-space:nowrap;@media (max-width:","px){display:none;}"],L.l$.five,L.GL.l-1),dn=T.I4.div.withConfig({componentId:"sc-38908cca-2"})(["@media (min-width:","px){display:none;}"],L.GL.l),dr="CollapsibleArea",da=({referenceId:e,displayName:t,header:i,content:n,ctaHref:r,ctaCopy:a,ctaAriaLabel:o,ctaStyle:l,collapsibleHeader:s,collapsibleContent:c})=>{let[d,x]=(0,y.useState)(!1),h=()=>x(!d);return(0,k.jsxs)(z.Ay,{referenceId:e,trackingAction:"view",trackingCategory:"CollapsibleArea",trackingLabel:t,children:[i&&(0,k.jsx)(z.w,{header:i,hideHeaderLine:!0}),(0,k.jsxs)(V.Ay,{children:[(0,k.jsxs)(L.aH,{justifyContent:"space-between",alignItems:"flex-start",children:[(0,k.jsx)(E.A,{content:n,highestHeadingLevel:i?3:2}),r&&a&&(0,k.jsx)(di,{children:(0,k.jsx)(en.$J,{href:r,buttonStyle:l,"aria-label":o,trackingCategory:dr,trackingLabel:t,trackingValue:a,children:a})})]}),(0,k.jsx)(L.Yx,{vertical:!0,unitL:"four",unit:"three"})]}),(0,k.jsxs)(V.Ay,{children:[(0,k.jsxs)(dt,{onClick:h,onKeyPress:h,role:"button",tabIndex:0,"aria-expanded":d,children:[(0,k.jsx)(L.pT,{tagName:"h2",textStyle:"headlineW3",children:s}),(0,k.jsx)(L.hw,{icon:d?S.owb:S.rIS,size:"small"})]}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}),d&&(0,k.jsxs)(V.Ay,{children:[(0,k.jsx)(E.A,{content:c,highestHeadingLevel:4}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"three"})]}),r&&a&&(0,k.jsx)(dn,{children:(0,k.jsx)(V.Ay,{children:(0,k.jsx)(en.$J,{href:r,buttonStyle:l,"aria-label":o,"tracking-category":dr,"tracking-label":t,"tracking-value":a,children:a})})})]})};da.description="Text with a collapisible area";let dl=w()(()=>Promise.all([i.e(3368),i.e(4357),i.e(8431),i.e(3809)]).then(i.bind(i,63809)),{loadableGenerated:{webpack:()=>[63809]},ssr:!1}),ds=T.Ay.div.withConfig({componentId:"sc-25806d1a-0"})(["position:relative;display:flex;flex-direction:column;width:100%;height:","px;"],({isMobile:e})=>e?400:600),dc=e=>{let{referenceId:t,header:i,description:n}=e,r=(0,L.al)({initialValue:!1,breakpoint:L.GL.m});return(0,k.jsxs)(z.Ay,{referenceId:t,"aria-hidden":"true",children:[(0,k.jsxs)(V.Ay,{children:[i&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(L.pT,{tagName:"h2",textStyle:r?"headlineW2":"headlineW1",children:i}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"two",unitM:"four"})]}),n&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(E.A,{content:n}),(0,k.jsx)(L.Yx,{vertical:!0,unit:"four"})]})]}),(0,k.jsx)(ds,{isMobile:r,"aria-hidden":"true",children:(0,k.jsx)(dl,{...e})})]})};var dd=i(37830);
125let dx=({displayName:e,referenceId:t,audio:i,eyebrow:n,eyebrowDesktopTextStyle:r="bodyW1",eyebrowMobileTextStyle:a="bodyW3",header:o,headerDesktopTextStyle:l="headlineW1",headerMobileTextStyle:s="titleW2",description:c="",descriptionDesktopTextStyle:d="bodyW1",descriptionMobileTextStyle:x="bodyW3",image:h,backgroundColor:u,textColor:m,transcript:p,playerType:g,sliderColor:f,gaEventOnPlay:j})=>{let w="mobile"===(0,np.k)(),v=(0,y.useCallback)(t=>{"play"===t&&j&&(0,M.c5)({event:j,entry:e,audio_file:i?.title||""})},[i,e,j]);return(0,k.jsx)(z.Ay,{backgroundColor:u,referenceId:t,trackingAction:"view",trackingCategory:"AudioPlayer",trackingLabel:e,children:(0,k.jsx)(V.Ay,{children:(0,k.jsx)(dd.Y,{sliderColor:f,textColor:m,backgroundColor:u||"backgroundPrimary",audio:i,eyebrow:n,eyebrowTextStyle:w?a:r,header:o,headerTextStyle:w?s:l,description:c,descriptionTextStyle:w?x:d,image:h,transcriptUrl:p?.file.url,playerType:g,onPlayPause:v})})})},dh=({title:e,reports:t=[]})=>(0,k.jsx)(z.Ay,{children:(0,k.jsxs)(V.Ay,{children:[e&&(0,k.jsxs)("div",{children:[(0,k.jsx)(E.A,{content:e,textStyleOverride:"headlineW2"}),(0,k.jsx)(L.Yx,{unit:"two",vertical:!0}),(0,k.jsx)(L.J8,{type:"item"}),(0,k.jsx)(L.Yx,{unit:"three",vertical:!0})]}),(0,k.jsx)("div",{children:t.map(({displayName:e,description:i},n)=>i?(0,k.jsxs)(y.Fragment,{children:[(0,k.jsx)(E.A,{content:i}),n!==t.length-1&&(0,k.jsx)(L.Yx,{unit:"three",vertical:!0})]},e):null).filter(Boolean)})]})}),du=w()(()=>Promise.all([i.e(3744),i.e(3368),i.e(4357),i.e(227)]).then(i.bind(i,90227)),{loadableGenerated:{webpack:()=>[90227]},ssr:!0}),dm=e=>{let t=e.displayName||JSON.stringify(e);switch(e.componentType){case lR.U.AudioPlayer:return(0,y.createElement)(dx,{...e,key:t});case lR.U.AppRedirect:return(0,y.createElement)(C,{...e,key:t});case lR.U.Banner:case lR.U.NotTranslatedBanner:return(0,y.createElement)(D,{...e,key:t});case lR.U.BonusList:return(0,y.createElement)(eu,{...e,key:t});case lR.U.CollapsibleArea:return(0,y.createElement)(da,{...e,key:t});case lR.U.ComparisonTable:return(0,y.createElement)(eU,{...e,key:t});case lR.U.ComponentGroup:return(0,y.createElement)(ez,{...e,key:t,renderComponent:dm});case lR.U.ContentList:return(0,y.createElement)(eX,{...e,key:t});case lR.U.Divider:return(0,y.createElement)(eZ,{...e,key:t});case lR.U.DriverEarnings:return(0,y.createElement)(e4,{...e,key:t});case lR.U.DwlHero:return(0,y.createElement)(tJ,{...e,key:t});case lR.U.DynamicBanner:return(0,y.createElement)(t2,{...e,key:t});case lR.U.Experiment:return(0,y.createElement)(ii,{...e,renderComponent:dm,key:t});case lR.U.FAQ:return(0,y.createElement)(ir.A,{...e,key:t,renderComponent:dm});case lR.U.FAQEntry:return(0,y.createElement)(is,{...e,key:t});case lR.U.FareEstimate:return(0,y.createElement)(ik,{...e,key:t});case lR.U.BlogBanner:return(0,y.createElement)(iR,{...e,key:t});case lR.U.Form:return(0,y.createElement)(i_.A,{...e,key:t});case lR.U.FullWidthImage:return(0,y.createElement)(iO,{...e,key:t});case lR.U.FullPageExperimentWrapper:return(0,y.createElement)(iU,{...e,renderComponent:dm,key:t});case lR.U.Hero:return(0,y.createElement)(aa,{...e,key:t});case lR.U.RideWithLyftHero:return(0,y.createElement)(am,{...e,key:t});case lR.U.HtmlContent:return(0,y.createElement)(ap,{...e,key:t});case lR.U.ImageCarousel:return(0,y.createElement)(af,{...e,key:t});case lR.U.InfoCardCarousel:return(0,y.createElement)(aJ,{...e,key:t});case lR.U.JsonLdTag:return(0,y.createElement)(a0,{...e,key:t});case lR.U.LargeImageModule:return(0,y.createElement)(a5,{...e,key:t});case lR.U.LargeVideoModule:return(0,y.createElement)(i9,{...e,key:t});case lR.U.LegalText:return(0,y.createElement)(a9,{...e,key:t});case lR.U.LinkList:return(0,y.createElement)(on,{...e,key:t});case lR.U.LinkPanelList:return(0,y.createElement)(op,{...e,key:t});case lR.U.LogoCarousel:return(0,y.createElement)(of,{...e,key:t});case lR.U.MetaTag:return(0,y.createElement)(oy,{...e,key:t});case lR.U.MultiColumnModule:return(0,y.createElement)(de,{...e,key:t});case lR.U.Paragraph:return(0,y.createElement)(oE,{...e,key:t});case lR.U.PhoneCarousel:return(0,y.createElement)(oH,{...e,key:t});case lR.U.Quote:return(0,y.createElement)(oQ,{...e,key:t});case lR.U.QuoteCarousel:return(0,y.createElement)(li,{...e,key:t});case lR.U.Randomizer:return(0,y.createElement)(ln,{...e,key:t,renderComponent:dm});case lR.U.RegionDisclaimers:return(0,y.createElement)(lF,{...e,key:t});case lR.U.RideModeSelector:return(0,y.createElement)(lI,{...e,key:t});case lR.U.RiderPromoList:return(0,y.createElement)(lW,{...e,key:t});case lR.U.Search:return(0,y.createElement)(st,{...e,key:t});case lR.U.StackedTextImageModule:return(0,y.createElement)(s2,{...e,key:t});case lR.U.StylizedTextImageModule:return(0,y.createElement)(cl,{...e,key:t});case lR.U.ServiceAreaMap:return(0,y.createElement)(du,{...e,key:t});case lR.U.SimpleHeader:return(0,y.createElement)(sy,{...e,key:t});case lR.U.SupportedCities:return(0,y.createElement)(sT,{...e,key:t});case lR.U.SupportedAirports:return(0,y.createElement)(sF,{...e,key:t});case lR.U.TextCarousel:return(0,y.createElement)(cd,{...e,key:t});case lR.U.TextImageModule:return(0,y.createElement)(sq,{...e,key:t});case lR.U.ThreeColumnModule:return(0,y.createElement)(ck,{...e,key:t});case lR.U.TrendingVenues:return(0,y.createElement)(cK,{...e,key:t});case lR.U.TwoCtaHero:return(0,y.createElement)(cP,{...e,key:t});case lR.U.TwoColumnModule:return(0,y.createElement)(cD,{...e,key:t});
125case lR.U.FinancialStatementTable:return(0,y.createElement)(dh,{...e,key:t});case lR.U.VisibilityToggleList:return(0,y.createElement)(cZ,{...e,key:t,renderComponent:dm});case lR.U.TBSMap:return(0,y.createElement)(dc,{...e,key:t});default:return null}},dp=e=>dm(e)},20289:(e,t,i)=>{i.d(t,{L:()=>n});class n extends Error{constructor(e,t){super("Server redirect from react component"),this.status=t?308:307,this.redirectUrl=e}}},21809:(e,t,i)=>{i.d(t,{Ay:()=>g,fx:()=>x,zA:()=>p,_m:()=>u,Tl:()=>m});var n=i(75872),r=i.n(n),a=i(11053),o=i(52275);let l={serviceUrl:"https://www.lyft.com",service:"wwwbrochurefe",requestTimeout:1e3},s=new o.Nl(l),c=new o.Nl({...l,requestTimeout:2e3});var d=i(52516);let x=async e=>(await s.get("/api/geocode",{camelCaseResponse:!1,params:{address:e}})).data,h="/api/region",u=async e=>{let t=await c.get(h,{camelCaseResponse:!1,...e});return t.data?.regions||{}},m=r()(async({lat:e,lng:t,includeOnboardingActive:i})=>c.request(h,{params:{contains_lat:e,contains_lng:t,includeOnboardingActive:i}}).then(e=>e.data),{...a.d});r()(async()=>c.get(h,{params:{override_active:!0}}).then(e=>e.data),{...a.d});let p=async e=>{let{data:t}=await c.get(`/api/region/${e}`),i=JSON.parse(t.serviceArea.geometry);return(0,d.Cr)(i)},g=s},23227:(e,t,i)=>{i.d(t,{DL:()=>d,He:()=>n,IZ:()=>o,S4:()=>r,Vh:()=>c,sP:()=>a});let n="/ride-with-lyft/doordash",r="https://lyft.sng.link/Avdmm/jeoi?_smtype=3",a="https://lyft.sng.link/Adnq0/93hc?_smtype=3",o="warwick";var l,s,c=((l={}).PHONE_NUMBER_SUBMITTED="phoneNumberSubmitted",l.SMS_SENT_SUCCESS="smsSentSuccess",l.SMS_SENT_FAIL="smsSentFail",l),d=((s={}).LEAD_CAPTURE_SCREEN_SUCCESS="leadCaptureScreenSuccess",s.LEAD_CAPTURE_SCREEN_FAIL="leadCaptureScreenFail",s)},26564:(e,t,i)=>{i.d(t,{A:()=>s,s:()=>l});var n=i(52275);let r=1e3,a={service:"www2",serviceUrl:"https://www.lyft.com",requestTimeout:r},o=new n.Nl(a),l=(e=r)=>new n.Nl({...a,requestTimeout:e}),s=o},31475:(e,t,i)=>{i.d(t,{O:()=>o});var n=i(47533),r=i(7766),a=i.n(r);let o=()=>{let e,t,i,r,{experiments:o}=(0,n.Wk)(),{web:{riderweb:{shouldDisableRideBookingFlow:l,shouldDisableFareEstimates:s}}}=(e=a()(o.variables,"web.lyftcom.enableContentfulSaveWebhook",!1),t=a()(o.variables,"web.lyftcom.enableHideHeaderFooterTest",!1),i=a()(o.variables,"web.riderweb.shouldDisableRideBookingFlow",!1),r=a()(o.variables,"web.riderweb.shouldDisableFareEstimates",!1),{web:{lyftcom:{enableContentfulSaveWebhook:e,enableHideHeaderFooterTest:t,enableCommonDataOverwrites:a()(o.variables,"web.lyftcom.enableCommonDataOverwrites",!1)},riderweb:{shouldDisableRideBookingFlow:i,shouldDisableFareEstimates:r}}});return{isBookingDisabled:l,isFareEstimateDisabled:s}}},32019:(e,t,i)=>{i.d(t,{NZ:()=>a,PU:()=>o,Wv:()=>r,Zt:()=>n,sb:()=>l});let n="Request a ride",r="lyft",a="https://c.singular.net/api/v1/ad?st=686198617151&h=497b048f0d28cd63d9704da1511213c76e0c41b3",o={eventName:"www_fare_estimator_ride_intended"},l="https://www.lyft.com"},33371:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(37876);i(14232);var r=i(83623),a=i(92021);let o=({links:e=[],isTwoColumnLayout:t})=>(0,n.jsx)(a.r,{twoColumns:t,children:e.map(({text:e,href:t})=>(0,n.jsx)("li",{children:(0,n.jsx)(r.A,{text:e,href:t})},`${e}-${t}`))})},34998:(e,t,i)=>{i.d(t,{C0:()=>o,nN:()=>l,O8:()=>a});var n=i(51624);let r=["wait & save","lyft","priority pickup","bikes & scooters","extra comfort","xl","black","black suv","xl","xxl"],a=e=>{let t=e.map(e=>e);return t.sort((e,t)=>r.includes(e.type)?r.includes(t.type)?r.indexOf(e.type)-r.indexOf(t.type):-1:1),t},o=e=>{switch(e){case n.T.LUX:return"black";case n.T.PLUS:return"xl";case n.T.LUXSUV:return"black suv";case n.T.STANDARD:return"lyft";case n.T.PREMIER:return"extra comfort";case n.T.LINE:case n.T.DEPRECATED_PREMIUM:default:return}},l=e=>{if(!e)return[];let{rideTypes:t,pricing:i}=e;return t||(i?i.map(e=>e.rideType||e.type):[])}},38549:(e,t,i)=>{i.d(t,{Ay:()=>c,bG:()=>s,q_:()=>d});var n,r=i(37876),a=i(14232);i(73349),i(45536),i(76142),i(39708);let o={[((n={}).ExpressDrive="expressdrive",n).ExpressDrive]:!1},l=a.createContext(o),s=()=>a.useContext(l),c=l;function d(e){return t=>(0,r.jsx)(l.Provider,{value:t.availableServices||o,children:(0,r.jsx)(e,{...t})})}},39089:(e,t,i)=>{i.d(t,{FA:()=>n,Fd:()=>o,JQ:()=>r,_Q:()=>a});let n="header-portal",r=78,a=40,o="xd-header"},39708:(e,t,i)=>{i.d(t,{A:()=>n});let n=new(i(52275)).Nl({serviceUrl:"https://www.lyft.com",service:"expressdrivefeapi",requestTimeout:1e3})},43274:(e,t,i)=>{i.d(t,{Q:()=>a,j:()=>o});var n,r,a=((n={}
125).BACKGROUND="Background",n.RIGHT="Right",n.LEFT="Left",n),o=((r={}).NONE="None",r.LINK="Link Button",r.DRIVER="Driver",r.RIDER="Rider",r.RIDER_AUTO_SUBMIT="Rider: CTA & form field",r.RIDER_RIDE_WITH_LYFT="Rider: Ride With Lyft",r.BUSINESS="Business",r.EXPRESS_DRIVE="Express Drive",r.EXPRESS_DRIVE_PARTNER="Express Drive: Partner",r.DRIVE_WITH_LYFT="Drive With Lyft",r.DRIVER_APP_DOWNLOAD="Driver: App download",r.VIDEO_PLAYER="Video Player",r.WARWICK="Warwick",r.RUNWAY="Runway",r)},44069:(e,t,i)=>{i.d(t,{Cb:()=>s,Dl:()=>l});var n=i(37876),r=i(14232),a=i(30180);let o=r.createContext([]);function l(e){return t=>{(0,r.useEffect)(()=>{t.banditExperimentVariants&&t.banditExperimentVariants.forEach(e=>{a.CC.send({eventName:"web_bandit_impression",arm_id:e.armId,experiment_id:e.experimentId,contextual_sample_id:e.contextualSampleId})})},[t.banditExperimentVariants]);let i=r.useMemo(()=>t.banditExperimentVariants?t.banditExperimentVariants:[],[t.banditExperimentVariants]);return(0,n.jsx)(o.Provider,{value:i,children:(0,n.jsx)(e,{...t})})}}function s(){return{banditExperimentVariants:r.useContext(o)}}o.displayName="BanditExperimentContext"},44898:(e,t,i)=>{i.d(t,{J:()=>r});var n,r=((n={}).NONE="No search is allowed(default)",n.FILTER_LINES_PLUS_QUESTION="Search in FAQ answers (filter lines without text) and questions",n)},51624:(e,t,i)=>{i.d(t,{T:()=>r});var n,r=((n={}).STANDARD="standard",n.PLUS="plus",n.LINE="line",n.PREMIER="premier",n.DEPRECATED_PREMIUM="premium",n.LUX="lux",n.LUXSUV="luxsuv",n)},52516:(e,t,i)=>{i.d(t,{Cr:()=>r,Q$:()=>n});let n=e=>{let t=(e=>{if(!e?.regions)return;let{regions:t}=e,i=Object.keys(t);if(i.length)return t[i[0]]})(e);if(t){let{code:e,slug:i}=t;return{slug:i,code:e}}return null},r=e=>{let{type:t}=e;switch(t){case"Feature":return{type:"FeatureCollection",features:[e]};case"FeatureCollection":return e;case"MultiPolygon":return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:e.coordinates[0]}}]};default:throw Error(`Invalid GeoJson type: ${t}`)}}},53848:(e,t,i)=>{i.d(t,{Ay:()=>d,Zz:()=>s,kk:()=>c});var n,r=i(37876),a=i(14232),o=((n=o||{}).UPDATE_STATE="update-state",n);let l=(e,t)=>"update-state"===t.type?{...e,...t.fields}:e,s=a.createContext({query:{},browserSessionId:"",termsUrl:"",regionName:"",regionInfo:{city:"",country:""},envVariables:{accountUrl:"",lyftComUrl:""},setDwlContextState:()=>void 0,xsrfToken:void 0,usePromoCodeOverrides:!1}),c=()=>(0,a.useContext)(s),d=e=>{let{children:t}=e,[i,n]=(0,a.useReducer)(l,e),o=(0,a.useMemo)(()=>({...e,...i,setDwlContextState:n}),[i,e]);return(0,r.jsx)(s.Provider,{value:o,children:t})}},54547:(e,t,i)=>{i.d(t,{BL:()=>s,Ek:()=>c,OK:()=>u,Se:()=>h,Sx:()=>a,X:()=>x,by:()=>o,lO:()=>r,vH:()=>l,xt:()=>d});var n=i(85940);let r=n._t("1kv15pr",""),a=n._t("nk54e3",""),o=n._t("1wk6ing",""),l=n._t("1u12rne",""),s=n._t("7ylx92",""),c=n._t("7a5o1e",""),d=n._t("1xned67",""),x=n._t("jglknb",""),h=n._t("1wqy9l1",""),u=n._t("2ywspj","")},55412:(e,t,i)=>{i.d(t,{Hv:()=>h,T8:()=>u,ln:()=>s,wF:()=>o,yb:()=>l});var n,r=i(31047),a=((n=a||{}).DeepLink="_dl",n.FallbackRedirect="_fallback_redirect",n.CampaignId="pcid",n.DeferredDeepLink="_ddl",n);let o="ssid",l="referral",s=(e,t={},i=null,n=r.HW.RiderApp)=>{let a=new URL(e),o=new URLSearchParams(a.search);if(t.fallbackUrl&&o.set("_fallback_redirect",t.fallbackUrl),t.appPath&&(o.set("_dl",t.appPath),o.set("_ddl",t.appPath)),t.campaignId&&o.set("pcid",t.campaignId),t.deepLinkQueryParams||t.isRideWithLyftPage){let[e,i]=(o.get("_dl")||n).split("?"),r=new URLSearchParams(i||"");t.isRideWithLyftPage&&r.set("rwl","1"),Object.entries(t.deepLinkQueryParams||{}).forEach(([e,t])=>{r.set(e,t)}),r.toString()&&(o.set("_dl",`${e}?${r.toString()}`),o.set("_ddl",`${e}?${r.toString()}`))}return(a.search=o.toString(),i?.buildWebToAppLink)?i.buildWebToAppLink(a.toString()):a.toString()},c=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","_web_params"],d=e=>{let t;if(e instanceof URLSearchParams)t=e;else try{t=new URL(e).searchParams}catch{t=new URLSearchParams(e.startsWith("?")?e.slice(1):e)}let i={};
125return c.forEach(e=>{let n=t.get(e);null!==n&&(i[e]=n)}),i},x=["lyft.sng.link"].map(e=>e.toLowerCase()),h=e=>{try{let t=new URL(e.toLowerCase());return x.includes(t.hostname)}catch{return!1}},u=(e,t)=>{let i=t&&h(t)?d(t):{},n=d(e),r={...i,...n};return void 0!==i._web_params?r._web_params=i._web_params:delete r._web_params,r}},57737:(e,t,i)=>{i.d(t,{d:()=>r});var n=i(44663);let r=e=>(0,n.d)(e)},67758:(e,t,i)=>{i.d(t,{E:()=>o});var n=i(14232),r=i(1317),a=i(21809);let o=e=>{let[t,i]=(0,n.useState)(!!e),[o,l]=(0,n.useState)(null),s=(0,n.useCallback)(async()=>{if(!e)return void l(null);try{i(!0);let t=await (0,a.zA)(e);l(t)}catch(t){l(null),r.f.incr(`wwwbrochurefe.${e}.failure`)}finally{i(!1)}},[e]);return(0,n.useEffect)(()=>{s()},[s]),{regionServiceArea:o,isLoading:t}}},68335:(e,t,i)=>{i.d(t,{T:()=>o,l:()=>a});var n=i(37876),r=i(14232);let a=(0,r.createContext)("ltr");a.displayName="LanguageDirectionContext";let o=({children:e,value:t})=>((0,r.useEffect)(()=>{document.documentElement.dir=t},[t]),(0,n.jsx)(a.Provider,{value:t,children:e}));o.displayName="LanguageDirectionProvider"},75718:(e,t,i)=>{i.d(t,{A:()=>j});var n=i(37876),r=i(15702),a=i(14232),o=i(77328),l=i.n(o),s=i(87856),c=i(61850),d=i(6071),x=i(6158),h=i(89509),u=i(56300),m=i(44898);let p=i(85940)._t("1aix0rv","");var g=i(4273);let f=s.I4.div.withConfig({componentId:"sc-a180de61-0"})(["width:400px;max-width:100%;"]),y=({header:e,headerStyle:t="displayW2",entries:i=[],isFullPage:o,referenceId:s,trackingAction:y="view",trackingCategory:j="FAQ",displayName:w,searchInputPlaceholder:v="",emptySearchContent:b,renderComponent:C})=>{let[{search:k,searchType:S,questions:A},I]=(0,g.nW)(),[T]=(0,a.useState)({search:"",isFullPage:o}),L=i.map(e=>C(e)).filter(Boolean),E=(0,a.useMemo)(()=>({"@type":"FAQPage",mainEntity:A.map(({question:e,answer:t})=>({"@type":"Question",name:e,acceptedAnswer:{"@type":"Answer",text:t}}))}),[A]);return(0,n.jsxs)(x.Ay,{referenceId:s,trackingAction:y,trackingCategory:j,trackingLabel:w,children:[e&&(0,n.jsxs)(d.Ay,{children:[(0,n.jsx)(u.o,{tagName:o?"h1":"h2",textStyle:t,children:e}),(0,n.jsx)(c.Yx,{vertical:!0,unit:"five",unitM:"six"}),(0,n.jsx)(c.J8,{type:"item"})]}),S!==m.J.NONE&&(0,n.jsxs)(d.Ay,{children:[e&&(0,n.jsx)(c.Yx,{vertical:!0,unit:"five",unitM:"six"}),(0,n.jsx)(f,{children:(0,n.jsx)(c.nj,{label:v,startContent:(0,n.jsx)(c.hw,{icon:r.C0l,size:"extraSmall",color:"iconPrimary"}),value:T.search,onChange:e=>{I({type:"update-search",payload:{search:e.target.value}})},fullWidth:!0})}),(0,n.jsx)(c.Yx,{vertical:!0,unit:"one",unitM:"two"})]}),i.map(e=>C(e)),k.length>0&&0===L.length&&(0,n.jsxs)(d.Ay,{children:[(0,n.jsx)(c.Yx,{vertical:!0,unit:"three"}),(0,n.jsx)(h.A,{content:b||p.t()})]}),(0,n.jsx)(l(),{children:(0,n.jsx)("script",{type:"application/ld+json",children:JSON.stringify(E)})})]})},j=e=>(0,n.jsx)(g.$m,{defaultValues:{isFullPage:e.isFullPage,searchType:e.searchType},children:(0,n.jsx)(y,{...e})})},79996:(e,t,i)=>{i.d(t,{Kp:()=>h,LM:()=>s,MA:()=>u,WE:()=>r,WL:()=>m,a5:()=>c,d3:()=>x,gN:()=>o,jk:()=>d,tf:()=>a,xF:()=>l,yE:()=>n});let n="/api/costs",r="/terms",a={"ottawa-on":"/terms/canada","greater-toronto-area-on":"/terms/canada","city-of-toronto-on":"/terms/canada"},o={dropoff:"lyftPink",pickup:"indigo80"},l=["lyft","lyft_line","lyft_plus","lyft_premier","lyft_lux","lyft_luxsuv"],s="noRegionSlug",c="fare-start",d="fare-end",x="start",h="end",u=3600,m={input:null,lat:null,lng:null,validity:{valid:!1}}},81278:(e,t,i)=>{i.d(t,{x:()=>r});var n=i(47533);let r=()=>{let{experiments:e}=(0,n.Wk)();return e.assignments?.LyftcomDriveWithLyftRefactorTCS||"control"}},81688:(e,t,i)=>{i.d(t,{$:()=>r,N:()=>a});var n=i(14232);let r=n.createContext([]),a=()=>(0,n.useContext)(r)},82768:(e,t,i)=>{i.d(t,{B:()=>s,C:()=>c});var n=i(37876),r=i(74023),a=i.n(r),o=i(14232);let l={riderPosts:[],driverPosts:[]},s=o.createContext(l);function c(e){return t=>(0,n.jsx)(s.Provider,{value:t.blogPosts||l,children:(0,n.jsx)(e,{...a()(t,["blogPosts"])})})}},83623:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(37876);i(14232);var r=i(87856),a=i(61850);let o=(0,r.AH)(["margin:","px;margin-left:0;white-space:pre;@media screen and (max-width:","px){display:block;}"],a.l$.two,a.GL.m-1),l=r.I4.a.withConfig({componentId:"sc-4e8ada92-0"})(["color:",";",";"],a.ml.textPrimary.color,o),s=r.I4.p.withConfig({componentId:"sc-4e8ada92-1"})(["",";"],o),c=({text:e,href:t})=>t?(0,n.jsx)(l,{href:t,children:e}):(0,n.jsx)(s,{children:e});c.displayName="List.Link";let d=c},84795:(e,t,i)=>{i.d(t,{A:()=>n});let n=i(14232).createContext({})},84799:(e,t,i)=>{i.d(t,{C1:()=>l,gg:()=>a,mC:()=>o});var n=i(81383),r=i.n(n);function a(e){return r()(e)}function o(e){return e.replace(/[^A-Z0-9]+/gi,"")}let l=(e,t,i=!1)=>{let n=[],r=i?e:e.toLowerCase(),a=i?t:t.toLowerCase(),o=0;for(;o<r.length;){let e=r.indexOf(a,o);if(-1===e)break;n.push({start:e,end:e+t.length-1}),o=e+t.length}return n.length?n:null}},86192:(e,t,i)=>{i.d(t,{e:()=>a});var n=i(91372);let r={top:0,left:0,behavior:"smooth"},a=()=>{n.A&&n.A.scrollTo&&("scrollBehavior"in document.documentElement.style?n.A.scrollTo(r):n.A.scrollTo(0,0))}},86667:(e,t,i)=>{i.d(t,{D9:()=>h,Fn:()=>a,Lk:()=>o,Pg:()=>l,Rv:()=>c,VV:()=>x,jR:()=>s});var n=i(81512),r=i(73030);let a=(e,t=!0)=>String((e/100).toFixed(2*!!t)),o=e=>String(Math.round(e/100)),l=e=>100*e,s=(e,t)=>{let i=e.amount/100%1?2:0;return(0,n.A6)(e,{minimumFractionDigits:i,...t})},c=(e,t)=>{let{amount:i,exponent:r}=e,a=i.toString().length-r;return(0,n.A6)(e,{maximumSignificantDigits:a,...t})},d={USD:"$",USD_INTL:"US$",CAD:"CA$"},x=(e,t,i)=>{if(!e)return"";let n=t?"USD"===t&&i&&"US"!==i?d.USD_INTL:d[t]:null;return`${n??(t||d.USD)}${e}`},h=e=>e&&Object.keys(r.Money.Currency).find(e=>r.Money.Currency[e])||h(r.Money.Currency.USD)},92021:(e,t,i)=>{i.d(t,{a:()=>o,r:()=>a});var n=i(87856),r=i(61850);let a=n.I4.ul.withConfig({componentId:"sc-17899f60-0"})(["list-style-type:none;padding-left:0;margin:0;@media screen and (min-width:","px){column-count:",";}@media screen and (min-width:","px){column-count:",";}@media screen and (min-width:","px){column-count:",";}"],r.GL.m,({twoColumns:e})=>e?2:3,r.GL.l,({twoColumns:e})=>e?2:4,r.GL.xl,({twoColumns:e})=>e?2:5),o=n.I4.li.withConfig({componentId:"sc-17899f60-1"})(["break-inside:avoid;width:100%;"])},92634:(e,t,i)=>{i.d(t,{JO:()=>n,Wm:()=>r,jk:()=>a});let n="https://images.ctfassets.net/q8mvene1wzq4/31wELblsjK37Rif3uJ7ueZ/4513b7e376c4ec3b4b907e85c79bdbac/lyft-amp-illo-1200x630.png",r="driving-opportunities",a="driver"},94633:(e,t,i)=>{i.d(t,{NM:()=>l,Yd:()=>s});var n=i(37876),r=i(14232);let a={},o=r.createContext(a),l=()=>{let e=(0,r.useContext)(o);if(void 0===e)throw Error('"useComponentBasedContext" was called without an "ComponentContextState" Provider.');return e};function s(e){return({componentBasedContextState:t,...i})=>(0,n.jsx)(o.Provider,{value:t||a,children:(0,n.jsx)(e,{...i})})}},96134:(e,t,i)=>{i.d(t,{A:()=>n});let n=i(14232).createContext(null)}}]);
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.