1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6747],{9631:(e,t,n)=>{"use strict";n.d(t,{No:()=>l.No,U0:()=>a.U,c2:()=>l.c2,ql:()=>l.ZZ});var l=n(15341),a=n(96137)},27978:e=>{e.exports={container:"VehicleEditCard_container__nKUkA",contentWrapper:"VehicleEditCard_contentWrapper__f3W0n"}},29074:e=>{e.exports={accountOrderLayout:"AccountOrderLayout_accountOrderLayout__DCVVv",titleContainer:"AccountOrderLayout_titleContainer__lewnt",headPart:"AccountOrderLayout_headPart__D56c7",icon:"AccountOrderLayout_icon__4lcrp"}},38860:e=>{e.exports={vehicles:"Vehicles_vehicles__WcUXZ",multipleVehicleLabel:"Vehicles_multipleVehicleLabel__cG0En",icon:"Vehicles_icon__HeQ7u"}},46367:e=>{e.exports={plateContainer:"Plate_plateContainer__vkWaM",rightPart:"Plate_rightPart__cylbY",plateNumberLabel:"Plate_plateNumberLabel__qgPS5",leftPart:"Plate_leftPart__nWAk5",colorBand:"Plate_colorBand__mIOe_"}},55338:e=>{e.exports={container:"Container_container__X_FwO",clickableContainer:"Container_clickableContainer__wLsGi",contentWrapper:"Container_
1contentWrapper__Egrgf",subContentColumnWrapper:"Container_subContentColumnWrapper___uWc9",subContentRowWrapper:"Container_subContentRowWrapper__rjxEQ"}},56188:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var l=n(78854),a=n(29074),i=n.n(a),c=n(35358),r=n(53298);let o=e=>{let{children:t,title:n,goBack:a,className:o,rightAction:s}=e;return(0,l.FD)("div",{className:(0,r.A)(i().accountOrderLayout,o),children:[(0,l.FD)("h1",{className:i().headPart,children:[(0,l.FD)("div",{className:i().titleContainer,children:[!!a&&(0,l.Y)(c.gu,{className:i().icon,onClick:a}),n]}),s&&(0,l.Y)("div",{children:s})]}),t]})}},65452:(e,t,n)=>{"use strict";n.d(t,{T6:()=>c,bc:()=>m,Es:()=>h,$O:()=>u,IQ:()=>N});var l=n(78854),a=n(46367),i=n.n(a);function c(e){let{plateNumber:t}=e;return(0,l.FD)("div",{className:i().plateContainer,children:[(0,l.Y)("div",{className:i().leftPart,children:(0,l.Y)("div",{className:i().colorBand})}),(0,l.Y)("div",{className:i().rightPart,children:(0,l.Y)("div",{className:i().plateNumberLabel,children:t})})]})}var r=n(88835),o=n(35358),s=n(53298),d=n(38860),_=n.n(d),u=function(e){return e.Car="car",e.Bike="bike",e.Moto="moto",e.Other="other",e}({});function h(e){let{className:t,vehicleType:n}=e;return p(n,t)}let p=(e,t)=>{switch(e){case"car":case"other":return(0,l.Y)(o.OZ,{className:(0,s.A)(_().icon,t)});case"bike":return(0,l.Y)(o.VI,{className:(0,s.A)(_().icon,t)});case"moto":return(0,l.Y)(o._m,{className:(0,s.A)(_().icon,t)})}};function m(e){let{icon:t,licensePlates:n,multipleVehicleLabel:a,isRentalVehicle:i,forceVehicleLabelDisplay:s=!1}=e,d=!s&&(0,r.d)(n)?(0,l.Y)(c,{plateNumber:n[0]}):(0,l.Y)("div",{className:_().multipleVehicleLabel,children:a});return(0,l.FD)("div",{className:_().vehicles,children:[(0,l.Y)(h,{vehicleType:t.vehicleType}),d,i&&(0,l.Y)(o.FL,{})]})}var C=n(78618),v=n(87300),g=n.n(v);function N(e){let{isRental:t=!1,plateNumber:n,vehicleName:a=null}=e;return(0,l.FD)("div",{className:g().vehicleViewContainer,children:[a&&(0,l.Y)("div",{className:g().vehicleName,children:a}),(0,l.FD)("div",{className:g().licensePlateWrapper,children:[(0,l.Y)(c,{plateNumber:n}),t&&(0,l.Y)(C.A,{})]})]})}},65712:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var l=n(78854),a=n(55338),i=n.n(a),c=n(53298);function r(e){let{className:t,children:n,hasError:a=!1,hasFocus:r=!1,...o}=e;return(0,l.Y)("div",{...o,className:(0,c.A)(i().container,t),"data-error":a,"data-focus":r,children:n})}},69065:(e,t,n)=>{"use strict";n.d(t,{E:()=>l.Ec});var l=n(15341)},73193:e=>{e.exports={container:"AccessCode_container__2b2O4",accessCodeCard:"AccessCode_accessCodeCard__U5J5p",label:"AccessCode_label__AS6V6",value:"AccessCode_value__u2f45",how:"AccessCode_how__1hAh_",guideCard:"AccessCode_guideCard___eFha",guideImage:"AccessCode_guideImage__QZqpq",guideText:"AccessCode_guideText__nc5eT"}},84538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>q,default:()=>B});var l=n(78854),a=n(9980),i=n(24790),c=n(22432),r=n(81158),o=n(25398),s=n(56188),d=n(98918),_=n.n(d),u=n(94959),h=n(87641),p=n.n(h),m=n(65712),C=n(55338),v=n.n(C),g=n(79506),N=n(27978),w=n.n(N),y=n(10143),b=n(65452),F=n(53298),Y=n(85442);let A=e=>{let{vehicleUI:t,onVehicleClick:n,onButtonClick:a,...i}=e,{t:c}=(0,Y.Bd)();return(0,l.FD)(m.A,{...i,className:(0,F.A)(w().container,v().subContentColumnWrapper),children:[(0,l.FD)("div",{className:w().contentWrapper,onClick:n,"data-cy":"registered-plate-card",children:[(0,l.Y)(b.IQ,{plateNumber:t.getLicensePlate(),vehicleName:t.getDisplayName(),isRental:!!t.getExpirationText()}),(0,l.Y)(g.A,{})]}),(0,l.Y)(y.tA,{label:c("vehicle:open.gate.title"),onClick:a,size:y.Mp.Small,dataCy:"vehicle-open-gate"})]})};var D=n(6161),V=n(33982),k=n(7412),f=n(71483),P=n(6633);let S=e=>{let{accountVehicleFlowUI:t,initialFormValues:n}=e;return(0,l.FD)(l.FK,{children:[(null==t?void 0:t.shouldDisplayEmptyState())&&(0,l.Y)(V.p,{title:t.getScreenTranslations().emptyList.title,description:t.getScreenTranslations().emptyList.description,illustration:{component:k.qN},actions:{primaryAction:{label:t.getScreenTranslations().add,onClick:null==t?void 0:t.onAddNewVehicleClick,variant:D.W.Default}}}),(0,l.Y)("div",{className:p().listContainer,children:t&&t.getVehicleList().map(e=>(0,l.Y)(A,{vehicleUI:e,onVehicleClick:()=>t.onEditVehicleClick(e),onButtonClick:()=>t.onOpenTheGateClick(e)},e.getLicensePlate()))}),t.shouldDisplayModal()&&(0,l.Y)(f.SK,{header:{children:t.getModalTitle()},body:{children:(0,l.FD)(l.FK,{children:[t.shouldDisplayForm()&&(0,l.Y)(P.A,{initialVehicle:n,callbacks:{onSubmit:e=>{var n;return t.submitVehicle(null!=(n=e.getDisplayName())?n:"",e.getLicensePlate(),e.getExpiration())},onCancel:t.closeVehicleForm,onDelete:t.deleteVehicle},errorMessage:t.getAddVehicleError()}),t.shouldDisplayGateOpeningInformation()&&(0,l.Y)(u.A,{code:t.getPinCode()})]})},handleClose:t.closeModal})]})};var L=n(63823),O=n(9631),T=n(46740),E=n(15282),W=n(95937);let x=()=>{let{accountMenuUI:e}=(0,o.z)(),{accountVehicleFlowUI:t,initialFormValues:n}=(()=>{let e=(0,L.q)(),t=(0,O.No)(null),n=(0,O.No)(!1),l=(0,O.ql)(new T.z(n)),a=(0,O.U0)(),i=(0,O.c2)(()=>T.C.load(a,t,l,e)),c=null==i?void 0:i.getEditedVehicle();return{accountVehicleFlowUI:i,initialFormValues:null!=c?c:null}})();return(0,l.FD)(s.y,{title:e.getActiveItemLabel(),className:_().container,rightAction:t&&!t.shouldDisplayEmptyState()?(0,l.Y)(E.j,{label:t.getScreenTranslations().add,onClick:t.onAddNewVehicleClick,size:E.M.Small,dataCy:"add-new-vehicle"}):void 0,children:[!t&&(0,l.Y)(c.A,{direction:"column",align:"center",grow:!0,children:(0,l.Y)(W.A,{})}),t&&(0,l.Y)(S,{accountVehicleFlowUI:t,initialFormValues:n})]})};var I=n(45111),U=n.n(I),M=n(32922);let G=()=>{let{t:e,i18n:{language:t}}=(0,Y.Bd)();(0,r.A)(t);let n=(0,M.d4)(a.Hb);return(0,l.FD)(l.FK,{children:[(0,l.FD)(U(),{children:[(0,l.Y)("title",{children:e("vehicle:meta.accountVehicles.title")}),(0,l.Y)("meta",{name:"robots",content:"noindex"})]}),(0,l.Y)(c.A,{direction:"column",gap:16,align:"stretch",children:n&&(0,l.Y)(x,{})})]})};G.getLayout=e=>(0,l.Y)(i.A,{children:e});var q=!0;let B=G},87300:e=>{e.exports={vehicleViewContainer:"VehicleView_vehicleViewContainer__wNLsb",vehicleName:"VehicleView_vehicleName__lH_s8",licensePlateWrapper:"VehicleView_licensePlateWrapper__PSwT4"}},87641:e=>{e.exports={listContainer:"ListContainer_listContainer__lCiUx",listFooter:"ListContainer_listFooter__d395w"}},92957:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/vehicles",function(){return n(84538)}])},94959:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var l=n(78854),a=n(97323);let i=e=>(0,l.FD)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25",...e,children:[(0,l.Y)("path",{fill:"currentColor",fillOpacity:.85,d:"M12.324 24.447c6.54 0 11.953-5.425 11.953-11.953 0-6.539-5.425-11.953-11.965-11.953C5.786.541.373 5.955.373 12.494c0 6.528 5.425 11.953 11.952 11.953m0-1.992a9.913 9.913 0 0 1-9.949-9.96c0-5.532 4.406-9.962 9.938-9.962a9.933 9.933 0 0 1 9.972 9.961 9.923 9.923 0 0 1-9.96 9.961"}),(0,l.Y)("path",{fill:"currentColor",fillOpacity:.85,d:"M12.078 14.92c.586 0 .95-.375.95-.832v-.14c0-.657.374-1.079 1.195-1.618 1.136-.75 1.945-1.43 1.945-2.836 0-1.945-1.734-3-3.727-3-2.015 0-3.34.961-3.656 2.04a1.9 1.9 0 0 0-.094.573c0 .528.41.809.797.809.399 0 .657-.187.867-.469l.211-.281c.41-.68 1.02-1.078 1.805-1.078 1.066 0 1.758.61 1.758 1.5 0 .797-.492 1.184-1.512 1.898-.844.586-1.476 1.207-1.476 2.356v.152c0 .61.34.926.937.926m-.023 3.492c.68 0 1.265-.539 1.265-1.219s-.574-1.218-1.265-1.218c-.692 0-1.266.55-1.266 1.218s.586 1.22 1.266 1.22"})]});var c=n(73193),r=n.n(c),o=n(63823),s=n(69065),d=n(79910),_=n(15282),u=n(2110),h=n.n(u);let p=e=>{let{code:t}=e,n=(e=>{let t=(0,o.q)(),n=(0,s.E)(d.D.ShowCode);return(0,a.useMemo)(()=>t.vehicleTrackerRepository().pageOpenGateFallbacks(),[]),d.i.load(e,n,t.translationRepository(),t.vehicleTrackerRepository())})(t);return n?(0,l.FD)("div",{className:r().container,children:[n.shouldDisplayCode()&&(0,l.FD)(l.FK,{children:[(0,l.FD)("div",{className:r().accessCodeCard,children:[(0,l.Y)("p",{className:r().label,dangerouslySetInnerHTML:{__html:n.getScreenTranslations().openGate.information}}),(0,l.Y)("div",{className:r().value,"data-cy":"gate-access-code",children:n.getSplitCode()})]}),(0,l.FD)("div",{className:r().how,onClick:()=>n.onClickHowDoesItWork(),children:[(0,l.Y)(i,{}),n.getScreenTranslations().openGate.how]})]}),n.shouldDisplayGuide()&&(0,l.FD)("div",{className:r().guideCard,children:[(0,l.Y)(h(),{src:"/assets/guide/how-to-pin-code.png",alt:"Pin Code guide",width:595,height:376,className:r().guideImage}),(0,l.Y)("p",{className:r().guideText,children:n.getScreenTranslations().guide.text}),(0,l.Y)(_.j,{label:n.getScreenTranslations().guide.back,onClick:()=>n.onClickGoBack(),size:_.M.Small})]})]}):null}},96137:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});class l{constructor(e){this.readonlyProps=e,this.notifySuccess=e=>this.readonlyProps.notifySuccess(e),this.notifyError=e=>this.readonlyProps.notifyError(e)}}var a=n(30695);let i=()=>new l({notifySuccess:e=>(0,a.F)({text:e,type:a.d.Success}),notifyError:e=>(0,a.F)({text:e,type:a.d.Error})})},98918:e=>{e.exports={pageTitle:"OnDemandFlow_pageTitle__ioIAH",container:"OnDemandFlow_container__eUJcl",section:"OnDemandFlow_section__7UU5g",introductionSection:"OnDemandFlow_introductionSection__7KqKi",introductionIcon:"OnDemandFlow_introductionIcon__nPatb",iconCheckedState:"OnDemandFlow_iconCheckedState__uo9el",cgvWrapper:"OnDemandFlow_cgvWrapper__UUJN5",cgvLabel:"OnDemandFlow_cgvLabel__rVAYP"}}},e=>{e.O(0,[4652,1947,8356,8035,5931,8939,3875,2110,5956,8928,7114,206,9869,2877,9967,4424,4657,4254,2107,5513,3414,636,6593,8792],()=>e(e.s=92957)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.