1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3836],{6411:(e,t,r)=>{r.d(t,{s:()=>o});var a=r(61872),i=r(87937);let o=e=>{let t=(0,i.Fu)();return{checkNRS:(0,a.useCallback)(async r=>{try{let a=await t.reservation("/jarvis/post",{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}});if(!a)throw e?.("Jarvis Service Error","Failed to process jarvis request."),Error("Failed to process jarvis request.");return a}catch(t){throw e?.("Jarvis Service Error","Failed to process jarvis request."),t}},[t,e]),postJarvisEvents:(0,a.useCallback)(async r=>{try{let a=await t.reservation("/jarvis/events",{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}});if(!a)throw e?.("Jarvis Events Service Error","Failed to process jarvis events request."),Error("Failed to process jarvis request.");return a}catch(t){throw e?.("Jarvis Events Service Error","Failed to process jarvis events request."),t}},[t,e])}}},18901:(e,t,r)=>{r.d(t,{x:()=>u});var a=r(61872),i=r(23141),o=r(87937),n=r(57109),s=r(50034),l=r(93783),d=r(14335),c=r(2184);let p=e=>{switch(e?.toLowerCase()){case"preferred":return"preferred";case"first time preferred":return"firsttimepreferred";case"non-preferred":return"nonpreferred";default:return}},u=()=>{let{features:e}=(0,n.usePageContext)(),t=e?.["feature.enableQuoteGuarantee"]??!1,r=(0,o.Fu)(),u=d.uP.use.preCheckInfo(),m=c.K.use.selectedVehicleData?.(),A=(0,a.useCallback)(()=>{let e=c.K.getState(),t=e.vehicleCode||m?.code,r=u?.reservationInformation?.products?.find(({type:e})=>"VEHICLE"===e);return{vehicleCode:t||r?.code||"",priceRateCode:e.priceRateCode||r?.rateDetails?.at(0)?.rateCode||"",priceType:u?.reservationInformation?.priceType||"VEHICLE_LEISURE_PAY_LATER"}},[u?.reservationInformation,m]),f=(0,a.useCallback)(()=>{let e=d.uP.getState?.()?.preCheckInfo||u,t=e?.reservationInformation,r=(t?.discountCodes||[]).filter(({code:e})=>e).map(({code:e,type:t})=>({type:t,value:e||""})),a=t?.companyInformation?.companyNumber;return a&&r.push({type:i.DiscountCodeTypeEnum.PARTNER,value:a}),r},[u]),y=(0,a.useCallback)(()=>{let e=u?.priceDetails?.protectionItems,t=u?.priceDetails?.addOnItems;if(e?.length||t?.length){let r=new Set(["CSS","CBS"]);return{protectionItems:(e||[]).map(e=>({code:e.code})),addOnItems:(t||[]).map(e=>({code:e.code,quantity:r.has(e.code)?e.quantity||1:null}))}}let r=u?.protectionsInfo,a=u?.addOnsInfo;if(r?.length||a?.length)return{protectionItems:(r||[]).map(({id:e})=>({code:e})),addOnItems:(a||[]).map(({id:e,quantity:t})=>({code:e,quantity:t||1}))};let i=c.K.getState(),o=[];i.protectionBundleItems&&o.push(...i.protectionBundleItems.split(",").filter(Boolean).map(e=>({code:e}))),i.protectionItems&&o.push(...i.protectionItems.split(",").filter(Boolean).map(e=>({code:e})));let n=[];if(i.addOnItems){let e=i.addOnItems.split(",").filter(Boolean),t=i.addOnItemsQuantity?.split(",")||[];n.push(...e.map((e,r)=>({code:e,quantity:t[r]?Number(t[r]):null})))}if(o.length>0||n.length>0)return{protectionItems:o,addOnItems:n};let p=d.uP.getState?.()?.preCheckInfo?.reservationInformation||u?.reservationInformation;if(p){let e=(0,s.rN)(p).filter(Boolean).map(e=>({code:e})),t=(0,l.o8)(p),r=(t.addOnItems||"").split(",").filter(Boolean),a=(t.addOnItemsQuantity||"").split(","),i=new Set(["CSS","CBS"]),o=r.map((e,t)=>({code:e,quantity:i.has(e)?Number(a[t])||1:null}));if(e.length>0||o.length>0)return{protectionItems:e,addOnItems:o}}return{protectionItems:o,addOnItems:n}},[u?.priceDetails,u?.protectionsInfo,u?.addOnsInfo,u?.reservationInformation]),C=(0,a.useCallback)(()=>{let e=d.uP.getState?.()?.preCheckInfo||u,t=e?.paymentInfo,r=t?.secondaryCardInfo;if(!r?.cardType)return[];let a=e?.reservationInformation?.payments||[],i=(Number(a[0]?.amount||0)/2).toFixed(2),o=e?.reservationInformation?.currencyCode||"USD",n=e?.reservationInformation?.customerInformation,s=`${n?.firstName||""}, ${n?.lastName||""}`,l=a[0]?.details?.cardDetails,c=(l?.clubType||"").toUpperCase(),p=t?.billingAddress,m=e?.reservationInformation?.billingAddress,A=[];return l?.cardNumber&&A.push({methodOfPayment:"CLUB",paymentTypeCode:"PRIMARY",details:{cardDetail
1s:{clubType:c,cardNumber:l.cardNumber,expiryDate:l.expiryDate||"",cardHolderName:s,securityCode:t?.cardInfo?.securityCode||""}},dccIndicator:!1,prepayCurrencyCode:o,prepayAmount:i,amount:i}),r?.cardNumber&&A.push({methodOfPayment:"CLUB",paymentTypeCode:"SECONDARY",details:{cardDetails:{clubType:(r.cardType||"").toUpperCase(),cardNumber:r.cardNumber,expiryDate:r.expirationDate||"",cardHolderName:s,securityCode:r.securityCode||"",billingAddress:{address1:p?.address||m?.address1||"",address2:p?.appartmentOrSuite||m?.address2||"",city:p?.city||m?.city||"",country_code:p?.country||m?.countryCode||"",postal_code:(p?.zipCode||m?.postalCode||"").trim(),state_province:p?.state||m?.stateProvince||""}}},dccIndicator:!1,prepayCurrencyCode:o,prepayAmount:i,amount:i}),A},[u]),h=(0,a.useCallback)(e=>{let r,a,i,o=e?.isTrustFlow??!1,n=e?.journeyOnly??!1,s=u?.reservationInformation;if(!s)throw Error("Reservation information is not available");let l=s?.features?.prepay?.prepayProcess,m=void 0===l?void 0:{prepay:{prepayProcess:l}};if(n){let e=c.K.getState(),t=e.asciJourneyFlags,r=e=>!0===e?"Y":!1===e?"N":"X";return{confirmationNumber:s.confirmationNumber,lastName:s.customerInformation?.lastName||"",features:{...m,journey:[{type:"PRECHECK-IN",details:{initiated:"Y",flight:e.airlineCode?"WI"===e.airlineCode?"N":"Y":"X",vehicleUpsell:r(t?.vehicleUpsell),insuranceUpsell:r(t?.protections),ancillaryUpsell:r(t?.addons),biometricVerification:"Y"}}]}}}let h=A(),g=f(),{protectionItems:I,addOnItems:b}=y(),v=C(),N=c.K.getState(),S=N.asciJourneyFlags,E=e=>!0===e?"Y":!1===e?"N":"X",D=S?.vehicleUpsell===!0,R=N.oldVehicleCode;if(!D||!R){let e=s?.products?.find(e=>"VEHICLE"===e.type);if(e?.features?.upsell_processing){let t=e.associatedProducts?.find(e=>"UPSELL-FROM"===e.association_type);t?.code&&(D=!0,R=R||t.code)}}let T=d.uP.getState?.()?.preCheckInfo||u,U=T?.pendingPaymentUpdate,x=T?.pendingCardChange,O=(r=(()=>{if(x){let e=U?.cardId===`profile-${x.cardToken}`||U?.cardId===x.cardToken?U?.expiryDate:x.expiryDate;return{methodOfPayment:"CLUB",paymentTypeCode:"PRIMARY",details:{cardDetails:{clubType:x.cardType,cardNumber:"************"+x.lastFour,expiryDate:e,...x.cardToken&&{token:x.cardToken}}}}}if(U){let e=s.payments?.[0]?.details?.cardDetails;return e?{methodOfPayment:"CLUB",paymentTypeCode:"PRIMARY",details:{cardDetails:{clubType:(e.clubType||"").toUpperCase(),cardNumber:e.cardNumber||"",expiryDate:U.expiryDate,token:U.token||null}}}:null}return null})(),v.length>0?v:r?[r]:[]);return{pickUpLocationMnemonic:s.pickUpLocationMnemonic||"",dropOffLocationMnemonic:s.dropOffLocationMnemonic||"",confirmationNumber:s.confirmationNumber,pickUpDateTime:{date:s.pickUpDateTime.date,time:s.pickUpDateTime.time},dropOffDateTime:{date:s.dropOffDateTime.date,time:s.dropOffDateTime.time},lastName:s.customerInformation?.lastName||"",...h,discountCodes:g,protectionItems:I,addOnItems:b,quoteGuarantee:t,...O.length>0&&{payments:O},...D&&R&&{requestedProducts:{products:[{code:R,associationType:"UPSELL_FROM"}]}},features:{...m,...D&&{upsellProcessing:!0},journey:[{type:"PRECHECK-IN",details:{initiated:"Y",flight:N.airlineCode?"WI"===N.airlineCode?"N":"Y":"X",vehicleUpsell:D?"Y":E(S?.vehicleUpsell),insuranceUpsell:E(S?.protections),ancillaryUpsell:E(S?.addons),biometricVerification:o?"Y":"N",...(a=o?"UpsellCompleted":e?.journeyState,i=p(N.asciPreferredStatus),{...a&&{journeyState:a},...i&&{preferredStatus:i}})}}]}}},[u?.reservationInformation,A,f,y,C,t]),g=(0,a.useCallback)(e=>{let t=h(),r=t.features?.journey;if(r?.[0]?.details){r[0].details.addCardToProfile=e.addCardToProfile,e.securityCode&&(r[0].details.securityCode=e.securityCode),r[0].details.journeyState="PrecheckJourneyCompleted";let t=p(c.K.getState().asciPreferredStatus);t&&(r[0].details.preferredStatus=t)}let a={...t};delete a.lastName;let i=u?.reservationInformation,o=i?.customerInformation,n=(o?.emailDetails??[]).filter(e=>e?.email).map(e=>({type:e.type||"PRIMARY",emailId:e.email})),s=(o?.phoneNumberDetails??[]).filter(e=>e?.phoneNumber).map(e=>({type:e.type||"PRIMARY",number:e.phoneNumber,countryCode:e.countryCode||""})),l=(o?.preferences??[]).filter(e=>e?.type).map(e=>({type:e.type,value:e.value??""})),d=[{firstName:o?.firstName||"",lastName:o?.lastName||"",...n.length>0&&{email:n},...s.length>0&&{phoneNumber:s},...o?.age!==void 0&&{age:Number(o.age)},...o?.birth&&{birth:o.birth},...l.length>0&&{preferences:l}}],m=c.K.getState(),A=m.airlineCode||"",f=m.flightNumber||"",y=A?{flightNumber:{airlineCode:A,airlineNumber:f},flightDetails:[{type:"ARRIVAL",airlineCode:A}]}:void 0;return{...a,comments:a.comments??"",customerInformation:d,...y&&{travelInfo:y}}},[h,u?.reservationInformation]);return{patchReservationRequest:(0,a.useCallback)(async e=>{if(e?.saveCard){let t=g(e.saveCard);return r.reservation("booking/savecard",{body:JSON.stringify(t),method:"PUT",headers:{"Content-Type":"application/json"}})}let t=h(e);return r.reservation("booking/modify",{body:JSON.stringify(t),method:"PATCH",headers:{"Content-Type":"application/json"}})},[r,h,g])}}},26156:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});let a={src:"/_next/_v/2.9.2.s15.31/_next/static/media/celebration-1.7f435072.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAP1BMVEVMaXH//v7////9+vr/////0tL9/f38/Pz//////f7RDBz//////Pz////tmKjkXXfxsr7////pgZX////5ytN+b5ZzAAAAE3RSTlMA7+NMMAg1EbrI/R1/q/v7+3/70P6S0AAAAAlwSFlzAAALEwAACxMBAJqcGAAAADpJREFUCJklykkOgCAAxdAyz4J+7n9WI66avBRIzgUAb6WcgKz56IZgd60aR66lDkQjle8hmr/gG/ACQuwBuEMHu2oAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},35356:(e,t,r)=>{r.d(t,{r:()=>l});var a=r(47388),i=r(52949),o=r(16534),n=r(10431),s=r(90544);let l=({title:e,iconPath:t,progressValue:l,styleParts:d})=>{let c=d?.celebration?.bgColor||"#91001D",p=d?.celebration?.progressColor||"#D4002A";return(0,a.jsx)(i.default,{sx:{justifyContent:"center",alignItems:"center",position:"fixed",bgcolor:c,top:0,bottom:0,left:0,right:0,display:"flex",zIndex:100,flexDirection:"column"},children:(0,a.jsxs)(i.default,{sx:{textAlign:"center"},children:[(0,a.jsx)(n.Q,{variant:"h5",sx:{textAlign:"center",color:"rgba(255,255,255,0.92)"},children:l>=50?"PREPARING YOUR VEHICLE":l>=25?"CONFIRMING YOUR DETAILS":"FINALIZING YOUR CHECK-IN"}),(0,a.jsx)(i.default,{sx:{padding:"1rem"},children:(0,a.jsx)(s.AemImage,{width:40,height:40,alt:"icons",src:l>=75?r(47966):l>=50?r(89303):l>=25?r(26156):t})}),(0,a.jsx)(i.default,{children:(0,a.jsx)(o.A,{variant:"determinate",value:l,sx:{backgroundColor:"#FFFFFF",color:p,width:"95%"}})})]})})}},47966:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});let a={src:"/_next/_v/2.9.2.s15.31/_next/static/media/celebration-3.6f6812e7.png",height:35,width:40,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAALVBMVEX/3d399fb98/X/////+/z////////LEij////rlaHBABf+/v7////UACr///+cW7TMAAAADnRSTlMBHD4QU67LFisgEmr1QvXQGSYAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA0SURBVAiZJcbHDcBADASxWaWLVv/lGob5ImwZH1th+19IMNBNneDhdJfWgOqbrgmVE9x5ARnIAO8KRq32AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:7}},89303:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});let a={src:"/_next/_v/2.9.2.s15.31/_next/static/media/celebration-2.67f97737.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAANlBMVEX/////
1/////////f3///////////9MaXH//v7//////v7WDTXaKUzYGT/52N/wbof+6u7xcYrES/nhAAAADnRSTlP9KVCrOuC4AG0M0f7+/m4kWDUAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA6SURBVAiZRcFBAoAwCAOwsgEtmw79/2c9moDlY3gRlNwlokSSKszIzIwJnO5+HwDn3vs6+MUyM1vxAT0GAZLNyXOcAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}}}]); 2//# sourceMappingURL=3836.0a8907df2843e5c0.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.