1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ee8223e0-1e8c-4ec9-8567-c8352ec8baf3",e._sentryDebugIdIdentifier="sentry-dbid-ee8223e0-1e8c-4ec9-8567-c8352ec8baf3")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1260],{49566:(e,t,i)=>{i.d(t,{_:()=>l,k:()=>n});var n=function(e){return e[e.UNAUTHENTICATED=0]="UNAUTHENTICATED",e[e.UNAPPROVED=1]="UNAPPROVED",e[e.PENDING=2]="PENDING",e[e.REJECTED=3]="REJECTED",e}({});let l=e=>{switch(e){case 0:return{title:"Not logged in",text:"You need to be signed in to share an EV",action1Title:"Dismiss",action2Title:"Sign In",action2Path:"/auth/login?returnTo={returnURL}"};case 1:return{title:"Register to share this EV",text:"You need to register for car sharing with Zoom EV and be approved before you can book.",action1Title:"No Thanks",action2Title:"Register to share EV's",action2Path:"/introduce-yourself"};case 2:return{title:"Weâre reviewing your application",text:"Your application needs to be approved by the Zoom EV team before you can book this EV. We will notify you via email once your application is approved.",action1Title:"Got It",action2Title:"",action2Path:void 0};case 3:return{title:"Sorry, you canât share this vehicle",text:"Your previous application to share was declined by Zoom EV but if your details have changed, you can resubmit it now.",action1Title:"Maybe later",action2Title:"Resubmit Application",action2Path:"/introduce-yourself"};default:return null}}},73806:(e,t,i)=>{i.d(t,{BV:()=>a,G4:()=>o,ii:()=>l,vg:()=>s});var n=i(44264);let l=n.I4.div.withConfig({componentId:"sc-e21fa505-0"})(["display:flex;grid-row-gap:32px;grid-column-gap:32px;flex-direction:column;padding-bottom:130px;","{display:grid;grid-template-rows:1fr;grid-template-columns:736px 352px;}","{grid-template-columns:736px 352px;}"],e=>{let{theme:t}=e;return t.up(t.breakpoints.md)},e=>{let{theme:t}=e;return t.up(t.breakpoints.lg)}),o=n.I4.div.withConfig({componentId:"sc-e21fa505-1"})(["display:flex;flex-direction:column;width:100%;> div{align-self:flex-start;margin-bottom:32px;width:100%;}"]),a=n.I4.div.withConfig({componentId:"sc-e21fa505-2"})(["p{margin:0;padding:30px 0;}"]),s=n.I4.div.withConfig({componentId:"sc-e21fa505-3"})(["width:100%;min-height:20px;grid-column:1/3;"])},83571:(e,t,i)=>{i.d(t,{A:()=>u});var n=i(37876),l=i(1378),o=i(22113),a=i(44264);a.I4.div.withConfig({componentId:"sc-9e5a06d1-0"})(["position:fixed;width:100vw;height:100vh;top:0;left:0;z-index:9999;background-color:rgba(0,0,0,0.4);display:flex;justify-content:center;align-items:center;"]),a.I4.div.withConfig({componentId:"sc-9e5a06d1-1"})(["background-color:white;border-radius:30px;width:30%;max-width:100%;min-width:400px;min-height:300px;padding:3%;display:flex;justify-content:space-between;flex-direction:column;"]);let s=a.I4.div.withConfig({componentId:"sc-9e5a06d1-2"})(["text-align:center;"]),r=a.I4.div.withConfig({componentId:"sc-9e5a06d1-3"})(["display:flex;align-items:center;justify-content:space-between;margin-top:25px;"]),d=a.I4.p.withConfig({componentId:"sc-9e5a06d1-4"})([""]),c=a.I4.div.withConfig({componentId:"sc-9e5a06d1-5"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;","{max-width:444px;}"],e=>{let{theme:t}=e;return t.up(t.breakpoints.md)}),u=e=>{let{children:t,header:i,text:a,onClose:u=()=>{}}=e;return(0,n.jsxs)(o.A,{isOpen:!0,setIsOpen:()=>u(),children:[(0,n.jsx)(c,{children:(0,n.jsxs)(s,{children:[(0,n.jsx)(l.A,{variant:"h4",children:i}),(0,n.jsx)(d,{children:a})]})}),(0,n.jsx)(r,{children:t})]})}},91260:(e,t,i)=>{i.d(t,{MY:()=>H,cd:()=>G,qX:()=>ef,nD:()=>ei,VE:()=>ep,ue:()=>q,He:()=>eS});var n=i(37876),l=i(70983),o=i(22004),a=i(89099),s=i(14232),r=i(36905),d=i(88992),c=i(85278),u=i(63471),p=i(45915),h=i(75718),x=i(1378),m=i(78236),f=i(2584),g=i(73070),v=i(92909),j=i(81033),w=i(22667),b=i(40759),y=i(67342),I=i(34591),A=i(26571),C=i(67096),k=i(44264);let S=k.I4.form.withConfig({componentId:"sc-c508e376-0"})(["display:flex;flex-direction:column;width:100%;border:1px solid #ececec;box-shadow:0px 10px 34px rgba(23,75,83,0.1);border-radius:12px;margin-bottom:15px;> div:first-of-type{border-bottom:1px solid #ececec;}"]),E=k.I4.div.withConfig({componentId:"sc-c508e376-1"})(["display:flex;flex-direction:column;width:100%;"]),T=k.I4.div.withConfig({componentId:"sc-c508e376-2"})(["display:flex;justify-content:space-between;width:100%;p{font-weight:500;}"]),P=k.I4.div.withConfig({componentId:"sc-c508e376-3"})(["display:flex;justify-content:space-between;width:100%;padding-top:30px;margin-top:30px;border-top:1px solid #ececec;h4:first-of-type{color:",";}"],e=>{let{theme:t}=e;return t.palette.gray}),D=k.I4.p.withConfig({componentId:"sc-c508e376-4"})(["margin:10px 0 30px;color:",";font-size:12px;width:100%;text-align:center;"],e=>{let{theme:t}=e;return t.palette.gray});var N=i(83571),R=i(49566),V=i(92359),_=i(3576),z=i(62701),B=i(39223),F=i(94954),U=i(90119),O=i(56612);let W=e=>{let{totalPrice:t,acceptedPromoCode:i,onPromoCodeAccept:l,onPromoCodeReset:o,onApplySaving:a,saving:r}
1=e,[c,u]=(0,s.useState)(!1),[p,x]=(0,s.useState)(!1),m=(0,w.dh)(),[f]=(0,U.Sw)(),{register:g,getValues:v,reset:j,setValue:b}=(0,d.mN)({mode:"onBlur"}),y=()=>{j(),x(!1),o(),b("code",""),u(!1)},I=async()=>{var e;u(!0);let i=v("code");if(!i)return y(),m({message:"Oops, promotion code empty.",type:"warning"});let n=null==(e=(await f({variables:{code:i}})).data)?void 0:e.validatePromotionCodeV2;if(!n||!n.active||!n.valid)return m({message:"Oops, wrong promotion code.",type:"error"}),y();let{amountOff:o,percentOff:s}=n,r=o||0;s&&(r=t*s/100),a(r),l(i),m({message:"Promotion code applied successfully. You just saved ".concat((0,A.$g)(r),"."),type:"success"})};return i?(0,n.jsx)(B.A,{code:i,onClose:y,saving:(0,A.$g)(r)}):p?(0,n.jsx)(O.mh,{children:(0,n.jsxs)(O.yO,{id:"discountCodeForm",children:[(0,n.jsx)(F.A,(0,z._)((0,_._)({},g("code")),{disabled:c,form:"discountCodeForm",label:"",placeholder:"Promo code"})),(0,n.jsx)(h.A,{customStyles:{margin:"0 0 0 auto"},disabled:!!i,form:"discountCodeForm",isLoading:c,onClick:e=>{e.preventDefault(),I()},children:"Apply"})]})}):(0,n.jsx)(O.mh,{children:(0,n.jsx)(O.ub,{onClick:()=>x(!p),children:"Do you have a discount code?"})})},H=e=>{var t;let{car:i}=e,k=(0,a.useRouter)(),[_,z]=(0,w.EF)(["start","end"]),B=(0,c.md)(I.JC),F=(0,w.qN)(),U=(null==B?void 0:B.details.approvalStatus)===y.Cw.Approved&&B.validAsCarRenter,[O,H]=(0,s.useState)(null),L=null==i?void 0:i.id,Z=null==i?void 0:i.pricePerHour,$=null==i?void 0:i.pricePerDay,q=null==i?void 0:i.pricePerWeek,[M,Y]=(0,s.useState)(""),[G,J]=(0,s.useState)({label:"hour",price:Z?Math.trunc(Z)/100:0}
1),[K,Q]=(0,s.useState)(null),[X,ee]=(0,s.useState)(null),[et,ei]=(0,s.useState)(""),[en,el]=(0,s.useState)(!1),[eo,ea]=(0,s.useState)(!1),es=(0,s.useMemo)(()=>{var e;return null!=(e=null==i?void 0:i.availabilityPeriodsComputed.filter(e=>!(0,u.A)(e.timeEnd)))?e:[]},[i]),er=!!es&&es.length>0;(0,s.useEffect)(()=>{er||ei("This vehicle has no booking availability")},[er]);let[ed,{data:ec,loading:eu,called:ep}]=(0,b.ZA)(),{handleSubmit:eh,control:ex,formState:{errors:em},trigger:ef,setValue:eg}=(0,d.mN)({mode:"onSubmit"}),ev=null==ec?void 0:ec.carRentalPrice;console.log("\uD83D\uDE80 ~ BookCard ~ carRentalPrice:",ev);let ej=async e=>{try{var t,n;ea(!0);let{availabilityTimeStart:l,availabilityTimeEnd:o}=e;if(!await ef()&&et)return;if(F)Y("You do not have permission to rent a car on this account");else if(U){let e=Date.parse(l),t=Date.parse(o),i="/book-ev/".concat(L,"?ts=").concat(e,"&te=").concat(t,"&").concat(K?"pc=".concat(K):"");k.push(i)}else(null==B||null==(t=B.detailsRequested)?void 0:t.approvalStatus)===y.Cw.Pending?H((0,R._)(R.k.PENDING)):(null==B||null==(n=B.detailsRequested)?void 0:n.approvalStatus)===y.Cw.Rejected?H((0,R._)(R.k.REJECTED)):(null==B?void 0:B.id)?H((0,R._)(R.k.UNAPPROVED)):k.push("/auth/login?returnTo=".concat(encodeURIComponent("/car/".concat(null==i?void 0:i.id,"?start=").concat(Date.parse(l),"&end=").concat(Date.parse(o)))))}catch(e){(0,A.vV)(e)}finally{ea(!1)}},ew=(0,d.FH)({control:ex,name:"availabilityTimeStart",defaultValue:null}),eb=(0,d.FH)({control:ex,name:"availabilityTimeEnd"});(0,s.useEffect)(()=>{if(ew&&eb){let e=(0,o.A)(eb,ew);e>=168?J({label:"week",price:q/100}):e>=24?J({label:"day",price:$/100}):J({label:"hour",price:Z/100}),eb&&(0,l.A)(ew,eb)>0?(ei("End date must be later than start date."),el(!0)):(ei(""),ed({variables:{carId:L,timeStart:"number"==typeof ew?ew:ew.getTime(),timeEnd:null==eb?void 0:eb.getTime()}}),el(!1))}else el(!0)},[J,eb,ew,i,L,ed,$,Z,q,_,z]);let ey=(0,s.useMemo)(()=>null==i?void 0:i.bookedPeriods.map(e=>({start:new Date(e.timeStart).toUTCString(),end:new Date(e.timeEnd).toUTCString()})),[null==i?void 0:i.bookedPeriods]),eI=(0,V.A)(new Date(ew)),eA=(e,t)=>{let i=ew&&t?[null==es?void 0:es.find(e=>{let{timeStart:t,timeEnd:i}=e;return(0,r.default)(ew,{start:t,end:i})})]:[],n=i.length?i:es;return!!(null==n?void 0:n.find(t=>{if(t){let{timeStart:i,timeEnd:n}=t;if(i&&n)return(0,p.default)(e,i)||(0,p.default)(e,n-1)||(0,r.default)(e,{start:i,end:n})}return!1}))},eC=null!=(t=null==i?void 0:i.bookedPeriods.map(e=>({start:e.timeStart,end:e.timeEnd})))?t:[],ek=e=>(0,C.Bg)(e,eC)&&(0,C.Ef)(e,es.map(e=>({start:e.timeStart,end:e.timeEnd})));return(0,s.useEffect)(()=>{_&&eg("availabilityTimeStart",new Date(parseInt(_))),z&&eg("availabilityTimeEnd",new Date(parseInt(z)))},[eg,z,_]),(null==i?void 0:i.pricePerDay)?(0,n.jsxs)(v.A,{children:[er&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(x.A,{variant:"h4",children:[(0,A.$g)(G.price)," / ",G.label]}),(0,n.jsx)("br",{}),(0,n.jsxs)(S,{id:"book-ev",noValidate:!0,onSubmit:eh(ej),children:[(0,n.jsx)(f.A,{alternative:!0,control:ex,disablePastDates:!0,disabled:eo,disabledPeriods:ey,errors:em,excludeTimes:eI,filterDate:eA,filterTime:ek,label:"Pick up",name:"availabilityTimeStart",placeholderText:"Add date and time",prefilledDate:"string"==typeof _?parseInt(_,10):null,required:!0,showClock:!0}),(0,n.jsx)(f.A,{alternative:!0,control:ex,disablePastDates:!0,disabled:eo,disabledPeriods:ey,endDate:eb,errors:em,filterDate:eA,filterTime:ek,label:"Drop Off",name:"availabilityTimeEnd",placeholderText:"Add date and time",prefilledDate:"string"==typeof z?parseInt(z,10):null,required:!0,showClock:!0})]})]}),O&&(0,n.jsxs)(N.A,{header:O.title,onClose:()=>H(null),text:O.text,children:[(0,n.jsx)(h.A,{onClick:()=>{H(null)},variant:"outlined",children:O.action1Title}),O.action2Path&&(0,n.jsx)(h.A,{onClick:()=>{O.action2Path&&k.push(O.action2Path)},children:O.action2Title})]}),(0,n.jsx)(m.$D,{children:(0,n.jsx)("p",{children:et})}),ev||ep?(0,n.jsxs)(E,{children:[(0,n.jsxs)(T,{children:[(0,n.jsx)(j.A,{children:"Total"}),(0,n.jsx)(x.A,{variant:"h6",children:eu?(0,n.jsx)(g.A,{}):(0,A.$g)(ev?(ev.rentalFeeSum-ev.additionalFee)/100:0)})]}),(0,n.jsxs)(T,{children:[(0,n.jsx)(j.A,{children:"Booking fee"}),(0,n.jsx)(x.A,{variant:"h6",children:eu?(0,n.jsx)(g.A,{}):(0,A.$g)(ev?ev.additionalFee/100:0)})]}),(null==i?void 0:i.business)&&(0,n.jsx)(T,{children:(0,n.jsx)(W,{acceptedPromoCode:K,onApplySaving:e=>ee(e),onPromoCodeAccept:Q,onPromoCodeReset:()=>{ee(null),Q(null)},saving:X,totalPrice:ev?ev.rentalFeeSum/100:0})}),(0,n.jsxs)(P,{children:[(0,n.jsx)(x.A,{variant:"h4",children:"Total"}),(0,n.jsx)(x.A,{variant:"h4",children:eu?(0,n.jsx)(g.A,{}):(0,A.$g)(ev?ev.rentalFeeSum/100-(null!=X?X:0):0)})]}),(0,n.jsx)(D,{children:"Includes breakdown and insurance cover"})]}):null,(0,n.jsx)(h.A,{disabled:en,form:"book-ev",children:"Book this EV"}),M?(0,n.jsx)(m.$D,{style:{marginTop:"10px"},children:M}):null]}):null};var L=i(35779),Z=i(91835),$=i(9130);let q=e=>{let{car:t}
1=e,i=null==t?void 0:t.fakeLocation,[l,o]=(0,s.useState)(10),a={lat:(null==i?void 0:i.lat)||51.509865,lng:(null==i?void 0:i.lon)||-.118092},r=(0,s.useMemo)(()=>60*(l-10<=0?l/10:l-10||1),[l]);return i?(0,n.jsxs)(v.A,{children:[(0,n.jsx)(x.A,{variant:"h4",children:"Pick up and drop off location"}),(0,n.jsx)($.OC,{children:null==t?void 0:t.addressPublic}),!(null==t?void 0:t.business)&&(0,n.jsxs)($.W,{children:[(0,n.jsx)(Z.A,{height:12,width:12}),(0,n.jsx)("span",{children:"Full address will become available after booking."})]}),(0,n.jsx)($.np,{children:(0,n.jsx)(L.Ay,{bootstrapURLKeys:{key:"AIzaSyCLTZ25tsIkUHH8ZK8JqQERLj8Dv7SnHAA"},defaultCenter:a,defaultZoom:10,onChange:e=>{let{zoom:t}=e;o(t)},options:{zoomControl:!1,maxZoom:18},children:(null==i?void 0:i.lat)&&(null==i?void 0:i.lon)?(0,n.jsx)($.ge,{lat:i.lat,lng:i.lon,markerSize:r}):null})})]}):null};var M=i(96010),Y=i(73806);let G=()=>(0,n.jsxs)(Y.ii,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(M.A,{count:1,height:658,style:{marginTop:"10px",marginBottom:"10px",borderRadius:"12px",boxShadow:"0 10px 34px rgba(23, 75, 83, 0.1)"}}),(0,n.jsx)(M.A,{count:1,height:784,style:{marginTop:"10px",marginBottom:"10px",borderRadius:"12px",boxShadow:"0 10px 34px rgba(23, 75, 83, 0.1)"}})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(M.A,{count:1,height:435,style:{marginTop:"10px",marginBottom:"10px",borderRadius:"12px",boxShadow:"0 10px 34px rgba(23, 75, 83, 0.1)"}}),(0,n.jsx)(M.A,{count:1,height:349,style:{marginTop:"10px",marginBottom:"10px",borderRadius:"12px",boxShadow:"0 10px 34px rgba(23, 75, 83, 0.1)"}})]})]});var J=i(94526),K=i(70687),Q=i(84295),X=i(63563);i(48860);var ee=i(78950),et=i(91969);let ei=e=>{var t,i,l,o,a;let{car:s}=e,r=(0,A.kW)(null==s?void 0:s.details.images,null==s?void 0:s.details.mainImageId),d=null==r||null==(t=r.secondaryImages)?void 0:t.map(e=>({original:e.url,thumbnail:e.url}));r.mainImage&&(null==d||d.unshift({original:r.mainImage.url,thumbnail:r.mainImage.url}));let c=null==s||null==(l=s.business)||null==(i=l.logoImage)?void 0:i.url;return s?(0,n.jsxs)(v.A,{children:[(0,n.jsxs)(x.A,{variant:"h2",children:[null==(o=s.details.maker)?void 0:o.name," ",null==(a=s.details.model)?void 0:a.name]}),(0,n.jsxs)(ee.VV,{children:[(0,n.jsxs)(ee.Ft,{children:[(0,n.jsx)(X.A,{})," ",(0,n.jsxs)(K.P,{children:[s.reviewsAverageScore||"-","/5"]}),(0,n.jsxs)(ee.UZ,{children:["(",s.reviewsCount,")"]})]}),(0,n.jsx)(j.A,{style:{fontWeight:500,fontSize:"16px"},children:s.details.year}),(0,n.jsxs)(j.A,{style:{fontWeight:500,fontSize:"16px"},children:[s.details.doors," doors"]}),(0,n.jsxs)(j.A,{style:{fontWeight:500,fontSize:"16px"},children:[s.details.seats," seats"]}),(0,n.jsx)(j.A,{style:{fontWeight:500,fontSize:"16px"},children:s.details.transmission})]}),d?(0,n.jsxs)(ee.mS,{children:[(0,n.jsx)(J.A,{items:d,showFullscreenButton:!1,showNav:!1,showPlayButton:!1}),c&&(0,n.jsx)(et.Es,{children:(0,n.jsx)(Q.A,{asset:c})})]}):null]}):null};var en=i(53337),el=i(5345),eo=i(7239);let ea=k.I4.div.withConfig({componentId:"sc-f4158e3-0"})(["margin:30px -30px 50px;border-bottom:1px solid #ececec;display:flex;flex-wrap:wrap;align-items:center;padding:0 30px 30px;","{flex-wrap:nowrap;}"],e=>{let{theme:t}=e;return t.up(t.breakpoints.md)}),es=k.I4.div.withConfig({componentId:"sc-f4158e3-1"})(["display:flex;margin-right:30px;"]),er=k.I4.div.withConfig({componentId:"sc-f4158e3-2"})([""]),ed=k.I4.div.withConfig({componentId:"sc-f4158e3-3"})(["","{font-size:16px;}"],eo.ck),ec=k.I4.div.withConfig({componentId:"sc-f4158e3-4"})(["display:flex;align-items:center;svg{margin-right:10px;}"]),eu=k.I4.span.withConfig({componentId:"sc-f4158e3-5"})(["margin-left:5px;display:inline-block;"]),ep=e=>{var t,i,l,o,a,s;let{car:r}=e,d=(null==r?void 0:r.business)?{isBusiness:!0,name:r.business.displayName,avatar:(null==(t=r.business.logoImage)?void 0:t.url)||"",reviewsAverageScore:r.business.reviewsAverageScore,reviewsCount:r.business.reviewsCount}:{isBusiness:!1,name:null==r||null==(i=r.user)?void 0:i.details.firstName,avatar:(null==r||null==(o=r.user)||null==(l=o.details.avatarImage)?void 0:l.url)||"",reviewsAverageScore:null==r||null==(a=r.user)?void 0:a.reviewsAverageScore,reviewsCount:null==r||null==(s=r.business)?void 0:s.reviewsCount},c=null==r?void 0:r.features.filter(e=>e.type===y.w1.Extra).map(e=>e.name),u=null==r?void 0:r.features.filter(e=>e.type===y.w1.Other).map(e=>e.name);return r?(0,n.jsxs)(v.A,{children:[(0,n.jsx)(x.A,{variant:"h4",children:"Hosted by"}),(0,n.jsxs)(ea,{children:[(0,n.jsx)(es,{children:(0,n.jsx)(el.A,{avatarUrl:d.avatar,height:"128px",width:"128px"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)(x.A,{variant:"h6",children:d.name}),(0,n.jsxs)(ec,{children:[(0,n.jsx)(X.A,{})," ",(0,n.jsxs)(K.P,{children:[d.reviewsAverageScore||"-","/5"]}),(0,n.jsxs)(eu,{children:["(",d.reviewsCount||0,")"]})]})]})]}),(0,n.jsxs)(er,{children:[(0,n.jsx)(x.A,{variant:"h5",children:"Description"}),(0,n.jsx)(j.A,{style:{fontSize:"16px"},children:r.details.description})]}),(0,n.jsxs)(ed,{children:[c&&c.length?(0,n.jsx)(en.A,{listColumns:2,listItems:c,listTitle:"Extras"}):null,u&&u.length?(0,n.jsx)(en.A,{listColumns:2,listItems:u,listTitle:"Other"}):null]})]}):null};var eh=i(60630);let ex=k.I4.div.withConfig({componentId:"sc-2fb49120-0"})(["display:flex;height:100vh;width:100%;max-width:100%;align-items:center;justify-content:center;flex-direction:column;margin:0 auto;","{max-width:352px;height:80vh;margin:-50px auto 0;}"],e=>{let{theme:t}=e;return t.up(t.breakpoints.md)}),em=k.I4.div.withConfig({componentId:"sc-2fb49120-1"})(["margin:30px 0 50px;"]),ef=()=>(0,n.jsxs)(ex,{children:[(0,n.jsx)(eh.A,{}),(0,n.jsx)(em,{children:(0,n.jsx)(x.A,{variant:"h3",children:"Car not found"})})]});var eg=i(22731);let ev=k.I4.div.withConfig({componentId:"sc-927b1396-0"})(["display:flex;justify-content:space-between;align-items:center;
1.left{width:65%;flex-shrink:0;flex-grow:0;}.right{text-align:right;display:flex;align-items:flex-end;justify-content:center;flex-direction:column;.price{font-size:40px;display:block;}}"]);k.I4.a.withConfig({componentId:"sc-927b1396-1"})(["font-weight:600;font-size:15px;"]);let ej=k.I4.div.withConfig({componentId:"sc-6eed5793-0"})(["display:flex;justify-content:flex-start;align-items:center;white-space:nowrap;text-decoration:none;cursor:pointer;color:#ffffff;"]),ew=k.I4.a.withConfig({componentId:"sc-6eed5793-1"})(["cursor:pointer;padding-left:5px;padding-right:5px;color:#ffffff;&:hover{color:#54c0ef;}"]),eb=k.I4.span.withConfig({componentId:"sc-6eed5793-2"})(["font-size:16px;font-weight:600;color:#ffffff;text-decoration:none;padding-right:10px;"]),ey=k.I4.span.withConfig({componentId:"sc-6eed5793-3"})(["font-size:16px;font-weight:600;color:#ffffff;text-decoration:none;padding-left:5px;"]),eI=k.I4.span.withConfig({componentId:"sc-6eed5793-4"})(["&:hover{color:#54c0ef;}"]),eA=(0,s.memo)(e=>(0,n.jsx)("svg",(0,z._)((0,_._)({className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,n.jsx)("path",{d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z",strokeLinecap:"round",strokeLinejoin:"round"})}))),eC=(0,s.memo)(e=>(0,n.jsx)("svg",(0,z._)((0,_._)({className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,n.jsx)("path",{d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207",strokeLinecap:"round",strokeLinejoin:"round"})}))),ek=e=>{let{phoneNumber:t,buttonText:i,email:l}
1=e,[o,a]=(0,s.useState)(!1),[r,d]=(0,s.useState)(!1),c=null==t?void 0:t.replaceAll("|",""),u=(0,w.Ub)(e=>{let{down:t,breakpoints:{sm:i}}=e;return t(i)});return((0,s.useEffect)(()=>{a(u)},[u]),o)?(0,n.jsxs)(ej,{children:[(0,n.jsx)(eb,{children:i}),c&&(0,n.jsx)(ew,{href:"tel:".concat(c),children:(0,n.jsx)(eI,{children:(0,n.jsx)(eA,{height:"36px",width:"36px"})})}),l&&(0,n.jsx)(ew,{href:"mailto: ".concat(l),children:(0,n.jsx)(eC,{height:"36px",width:"36px"})})]}):(0,n.jsx)(n.Fragment,{children:r?(0,n.jsxs)(ej,{children:[(0,n.jsx)(eb,{children:i}),c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eI,{children:(0,n.jsx)(eA,{height:"36px",width:"36px"})}),(0,n.jsx)(ey,{children:c})]}),l&&(0,n.jsx)(ew,{href:"mailto: ".concat(l),children:(0,n.jsx)(eC,{height:"36px",width:"36px"})})]}):(0,n.jsxs)(ej,{children:[(0,n.jsx)(eb,{children:i}),c&&(0,n.jsx)(eI,{children:(0,n.jsx)(eA,{height:"36px",onClick:()=>d(!0),width:"36px"})}),l&&(0,n.jsx)(ew,{href:"mailto: ".concat(l),children:(0,n.jsx)(eC,{height:"36px",width:"36px"})})]})})},eS=e=>{let{car:t}=e,i=null==t?void 0:t.salesInfo;return(0,n.jsx)(v.A,{customStyles:{backgroundColor:"#06102A",color:"white"},children:(0,n.jsxs)(ev,{children:[(0,n.jsxs)("div",{className:"left",children:[(0,n.jsx)("h2",{children:"Want to keep it? This EV is also for sale!"}),(0,n.jsx)("p",{children:null==i?void 0:i.description}),(0,n.jsx)(ek,{buttonText:"Enquire with seller",email:null==i?void 0:i.email,phoneNumber:null==i?void 0:i.phoneNumber})]}),(0,n.jsxs)("div",{className:"right",children:[(0,n.jsxs)("h3",{className:"dets",children:["Purchase Price: ",(0,n.jsx)("span",{className:"price",children:(0,A.$g)(null==i?void 0:i.price)})]}),(null==i?void 0:i.url)&&(0,n.jsx)(eg.OV,{color:"blue",onClick:()=>{var e;window.open(null!=(e=null==i?void 0:i.url)?e:"","_blank")},variant:"contained",children:"Buy Online"})]})]})})}}}]);
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.