1"use strict";(self.webpackChunkviva_web=self.webpackChunkviva_web||[]).push([[9554],{59554(_e,_,s){s.d(_,{d:()=>be});var e=s(73664),c=s(79328),h=s(10452),p=s(95398),F=s(85042),f=s(36642),m=s(82671),v=s(813),y=s(40220),b=s(2615),I=s(71910),P=s(49392),D=s(25478),O=s(23433),M=s(93287),S=s(79932),x=s(34066),w=s(60920),g=s(72200),j=s(80930),A=s(13566),R=s(54179),E=s(69070),J=s(68310),G=s(74523),V=s(93207),C=s(97586),L=s(30035),U=s(59313),$=s(94256),N=s(34790),B=s(79348),T=s(30131);const z=a=>({regex:"%%number%%",newValue:a}),k=a=>[a],Y=a=>({regex:"%%email%%",newValue:a});function X(a,r){if(1&a&&(e.j41(0,"div",9),e.EFF(1),e.nI1(2,"cmsTranslate"),e.nI1(3,"cmsRegexReplace"),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.SpI(" ",e.i5U(3,3,e.bMT(2,1,"BOOKER_LABEL_TEXANS-DISCLAIMER-48HOURS"),e.eq3(8,k,e.eq3(6,Y,t.email)))," ")}}let H=(()=>{class a{constructor(t,n){this.cmsEventsSvc=t,this.flightsSearchStateSvc=n,this.isManageFlow=!1,this.screenSize="lg"}ngOnInit(){this.getData(),this.updateScreenSize()}onResize(){this.updateScreenSize()}getData(){var t=this;return(0,G.A)(function*(){const{event:n}=t.basketBooking??{};if(t.numberOfPassengers=t.basketBooking?.passengers.length,t.email=t.basketBooking.contacts[0]?.email,n){const{startTime:i,endTime:o}=n;yield(0,V.s)(t.cmsEventsSvc.ready);const l=n?.eventCode;if(l){t.eventCmsData=t.cmsEventsSvc.getEventEntry(l),t.cta=JSON.parse(JSON.stringify(t.eventCmsData.callToAction.fields)),t.cta.target=L.We._blank,t.cta.url?t.cta.url+="#faq":t.cta.fragment="faq";const d=t.flightsSearchStateSvc.generateEventDates(i,o);(0,p.EI)(d)&&(t.dateLabel=t.eventCmsData?.dateLabel??C(d[0]).format("LL")),t.timeLabel=C(n?.startTime).format("hh:mm a")}}})()}updateScreenSize(){const t=window.innerWidth;this.screenSize=t<576?"xs":t<721||t<992?"md":t<1200?"lg":"xl"}get image(){const t=this.eventCmsData?.linkedEvent?.fields?.cardMmbResponsiveMedia?.fields;if(!t)return this.eventCmsData?.linkedEvent?.fields?.manageImage?.fields?.file?.url||"";const n=["xl","lg","md","sm","xs"],i=n.indexOf(this.screenSize);for(let o=i;o>=0;o--){const l=n[o];if(t[l]?.fields?.file?.url)return t[l].fields.file.url}for(let o=i+1;o<n.length;o++){const l=n[o];if(t[l]?.fields?.file?.url)return t[l].fields.file.url}return this.eventCmsData?.linkedEvent?.fields?.manageImage?.fields?.file?.url||""}get passengerLabel(){return 1===this.numberOfPassengers?"BOOKER_LABEL_NUMBER-OF-ACCESS":"BOOKER_LABEL_NUMBER-OF-ACCESSES"}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(U.a),e.rXU($.I))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["app-event-card"]],hostBindings:function(n,i){1&n&&e.bIt("resize",function(l){return i.onResize(l)},e.tSv)},inputs:{isManageFlow:"isManageFlow",basketBooking:"basketBooking"},standalone:!1,decls:21,vars:26,consts:[[3,"bannerType","logoUrl","title","cta","ctaText"],["customDescription",""],[1,"d-flex","align-items-center","mb-2s","w-100"],[1,"body2-regular-t-vrd","color-vrd-text-lighter","flex-wrap","w-100","d-flex","align-items-center"],[1,"point"],[1,"d-flex","align-items-center","mb-2s"],[1,"body2-regular-t-vrd","color-vrd-text-lighter"],[1,"body2-regular-t-vrd","color-vrd-text-lighter","mb-16"],["class","body1-regular-t-vrd",4,"ngIf"],[1,"body1-regular-t-vrd"]],template:function(n,i){1&n&&(e.j41(0,"app-general-banner",0),e.nI1(1,"cmsTranslate"),e.j41(2,"div",1)(3,"div",2)(4,"div",3),e.EFF(5),e.nrm(6,"div",4),e.EFF(7),e.nI1(8,"uppercase"),e.k0s()(),e.j41(9,"div",5)(10,"div",6),e.EFF(11),e.nI1(12,"cmsTranslate"),e.k0s(),e.nrm(13,"div",4),e.j41(14,"div",6),e.EFF(15),e.nI1(16,"cmsTranslate"),e.nI1(17,"cmsRegexReplace"),e.k0s()(),e.j41(18,"div",7),e.EFF(19),e.k0s(),e.DNE(20,X,4,10,"div",8),e.k0s()()),2&n&&(e.Y8G("bannerType","Event")("logoUrl",i.image)("title",null==i.eventCmsData?null:i.eventCmsData.name)("cta",i.isManageFlow?i.cta:void 0)("ctaText",i.isManageFlow?e.bMT(1,11,"GLOBAL_ACTION_MORE-INFO"):void 0),e.R7$(5),e.SpI(" ",i.dateLabel," "),e.R7$(2),e.SpI(" ",e.bMT(8,13,i.timeLabel)," "),e.R7$(4),e.SpI(" ",e.bMT(12,15,"BOOKER_LABEL_EVENT-GENERAL-ACCESS")," "),e.R7$(4),e.SpI(" ",e.i5U(17,19,e.bMT(16,17,i.passengerLabel),e.eq3(24,k,e.eq3(22,z,i.numberOfPassengers.toString())))," "),e.R7$(4),e.SpI(" ",(null==i.eventCmsData?null:i.eventCmsData.venueName)+", "+(null==i.eventCmsData?null:i.eventCmsData.cityName)," "),e.R7$(),e.Y8G("ngIf",i.email))},dependencies:[g.bT,N.U,g.Pc,B.I,T.n],styles:[".logo-container[_ngcontent-%COMP%]{max-width:200
1px;flex:0 0 200px}@media screen and (max-width:575px){.logo-container[_ngcontent-%COMP%]{max-width:100%;height:120px;flex:0 0 120px}}.logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;object-fit:cover}.logo-image[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center;background:no-repeat;background-size:cover;background-position-x:center}.point[_ngcontent-%COMP%]{background-color:var(--bp);height:6px;width:6px;border-radius:50%;margin:0 8px 3px}"]})}}return a})();var K=s(89758),W=s(70544),Z=s(37908);const Q=a=>({"manage-flow":a}),u=a=>[a],q=a=>({"mt-24":a}),ee=a=>({regex:"%%flight counter%%",newValue:a}),te=a=>({"mt-32":a});function ne(a,r){1&a&&(e.j41(0,"div",23),e.EFF(1),e.nI1(2,"cmsTranslate"),e.k0s()),2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"BOOKER_LABEL_TITLE-ITINERARY")," "))}function ie(a,r){if(1&a&&e.nrm(0,"app-flight-route-stations",24),2&a){const t=e.XpG(3);e.Y8G("itineraryCodeJourney",t.availabilityJourneys[0])("originLabels",e.eq3(5,u,t.availabilityJourneys[0].origin.code))("destinationLabels",e.eq3(7,u,t.availabilityJourneys[0].destination.code))("isGlobal",t.vivaGlobalConfigService.getIsGlobal())("marginTopPx",-6)}}function ae(a,r){if(1&a&&(e.qex(0),e.nrm(1,"app-itinerary-card",25),e.bVm()),2&a){const t=r.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("journey",t)("viewType",n.viewType)("standBy",n.standByJourneys[t.key])("lgFullSpace",n.lgFullSpace)("flexpassCfg",n.displayFlyAhead(t.key)?n.faJourney:void 0)("oldDates",n.iropEvent!==n.iropCodes.ScheduleChange?n.oldJourneyDates[null==t?null:t.key]:null)("badgeText",n.journeysBadge[null==t?null:t.key])("dateExtraInfo",n.dateExtraInfo)("journeyTravelTime",n.journeysTravelTime[t.key])("altProviderData",n.journeyHasAltProvider(t)?n.altProviderData:null)("showDelayTooltip",n.showDelayTooltip)("showDelayDates",n.showDelayDates)("disabled",n.disabled)("isGlobal",n.vivaGlobalConfigService.getIsGlobal())("skipJourneyCardClass",n.skipJourneyCardClass)("alternativeProviderCode",n.getAltProvider(t.segments))}}function se(a,r){if(1&a&&(e.qex(0),e.DNE(1,ne,3,3,"div",21)(2,ie,1,9,"app-flight-route-stations",22)(3,ae,2,16,"ng-container",18),e.bVm()),2&a){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf","cancellation"!==t.viewType&&"transfer"!==t.viewType),e.R7$(),e.Y8G("ngIf","transfer"!==t.viewType),e.R7$(),e.Y8G("ngForOf",t.availabilityJourneys)}}function re(a,r){if(1&a&&(e.qex(0),e.DNE(1,se,4,3,"ng-container",20),e.bVm()),2&a){const t=e.XpG(),n=e.sdS(3);e.R7$(),e.Y8G("ngIf",t.travelType!==t.flightTypeId.MULTI_CITY)("ngIfElse",n)}}function oe(a,r){if(1&a&&e.nrm(0,"app-flight-route-stations",24),2&a){const t=e.XpG().$implicit,n=e.XpG(2);e.Y8G("itineraryCodeJourney",t)("originLabels",e.eq3(5,u,t.origin.code))("destinationLabels",e.eq3(7,u,t.destination.code))("isGlobal",n.vivaGlobalConfigService.getIsGlobal())("marginTopPx",-6)}}function le(a,r){if(1&a&&(e.j41(0,"div")(1,"div",26),e.EFF(2),e.nI1(3,"cmsTranslate"),e.nI1(4,"cmsRegexReplace"),e.k0s(),e.DNE(5,oe,1,9,"app-flight-route-stations",22),e.nrm(6,"app-itinerary-card",27),e.k0s()),2&a){const t=r.$implicit,n=r.index,i=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.eq3(18,q,n)),e.R7$(),e.SpI(" ",e.i5U(4,15,e.bMT(3,13,"BOOKER_LABEL_FLIGHT-COUNT"),e.eq3(22,u,e.eq3(20,ee,((i.changeFlightCount>-1?i.changeFlightCount:n)+1).toString())))," "),e.R7$(3),e.Y8G("ngIf","transfer"!==i.viewType),e.R7$(),e.Y8G("journey",t)("viewType",i.viewType)("flexpassCfg",i.displayFlyAhead(t.key)?i.faJourney:void 0)("oldDates",i.oldJourneyDates[null==t?null:t.key])("badgeText",i.journeysBadge[null==t?null:t.key])("dateExtraInfo",i.dateExtraInfo)("altProviderData",i.journeyHasAltProvider(t)?i.altProviderData:null)("journeyTravelTime",i.journeysTravelTime[t.key])("showDelayTooltip",i.showDelayTooltip)("showDelayDates",i.showDelayDates)}}function de(a,r){if(1&a&&e.DNE(0,le,7,24,"div",18),2&a){const t=e.XpG();e.Y8G("ngForOf",t.availabilityJourneys)}}function ge(a,r){if(1&a){const t=e.RV6();e.j41(0,"app-itinerary-fare-card",28),e.bIt("changeFare",function(){b.eBV(t);const i=e.XpG();return b.Njj(i.goToBundleUpsell())}),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("fareType",t.fareType)("smallWidth",!0)("displayFlexsibility",t.isReviewPage)("isManageFlow",t.isManageFlow)("isFromAllegiant",t.isFromAllegiant)("summarizedBenefits",t.summarizedBenefits)("actionButtonsDisplay",t.showActionButtonsDisplay?"all":"info")("isBundleUpsell",t.isBundleUpsell)("viewType",t.viewType)("isRefundableFareChangeAvailable",t.isRefundableFareChangeAvailable)("fareVariant",t.fareVariant)("isRefundableFareUpsell",t.isRefundableFareUpsell)("originalFare",t.originalFare)("showMixBundle",t.showMixBundle)}}function ce(a,r){if(1&a&&(e.qex(0),e.nrm(1,"app-itinerary-fare-card-global",29),e.bVm()),2&a){const t=e.XpG();e.R7$(),e.Y8G("fareName",null==t.bookingFare?null:t.bookingFare.fareTypeName)("bundleTypeName",null==t.bookingFare?null:t.bookingFare.bundleTypeName)("showInfoButton",!0)}}function ue(a,r){1&a&&e.eu8(0)}function he(a,r){if(1&a&&(e.j41(0,"div",30),e.nrm(1,"app-flight-carrier-alert",31),e.k0s()),2&a){const t=e.XpG();e.Y8G("ngClass",e.eq3(8,te,t.vivaGlobalConfigService.getIsGlobal())),e.R7$(),e.Y8G("altProviderData",t.altProviderData)("viewType",t.isReviewPage?"review":"manage")("onlyCarrier",t.onlyCarrier)("onlyCarrierType",t.iberiaAlliesCarrier?"alertIbAllies":"alert")("fullyPartnerFlights",t.fullyPartnerFlights)("isVivaGlobal",t.vivaGlobalConfigService.getIsGlobal())("selectedRouteCodes",t.selectedRouteCodes)}}function ye(a,r){if(1&a&&e.nrm(0,"app-event-card",32),2&a){const t=e.XpG();e.Y8G("basketBooking",t.basketBooking)("isManageFlow",t.isManageFlow)}}function pe(a,r){if(1&a&&(e.qex(0),e.nrm(1,"app-itinerary-card",33),e.bVm()),2&a){const t=r.$implicit,n=e.XpG();e.R7$(),e.Y8G("journey",t)("viewType",n.viewType)("standBy",n.standByJourneys[t.key])("lgFullSpace",n.lgFullSpace)("flexpassCfg",n.displayFlyAhead(t.key)?n.faJourney:void 0)("oldDates",n.iropEvent!==n.iropCodes.ScheduleChange?n.oldJourneyDates[null==t?null:t.key]:null)("badgeText",n.journeysBadge[null==t?null:t.key])("dateExtraInfo",n.dateExtraInfo)("journeyTravelTime",n.journeysTravelTime[t.key])("altProviderData",n.journeyHasAltProvider(t)?n.altProviderData:null)("showDelayTooltip",n.showDelayTooltip)("showDelayDates",n.showDelayDates)("disabled",n.disabled)("isGlobal",n.vivaGlobalConfigService.getIsGlobal())("alternativeProviderCode",n.getAltProvider(t.segments))("isOpen",!0)("isPrintableView",!0)}}function fe(a,r){1&a&&e.eu8(0)}
1function me(a,r){if(1&a&&(e.j41(0,"div",35),e.nrm(1,"app-itinerary-hotel-card",36),e.k0s()),2&a){const t=e.XpG(2);e.R7$(),e.Y8G("hotelData",t.hotelDetailsCard)("headerSize","small")("confirmationView","confirmation"===t.viewType&&!t.isReviewPage)}}function ve(a,r){if(1&a&&e.DNE(0,me,2,3,"div",34),2&a){const t=e.XpG();e.Y8G("ngIf",t.hotelDetailsCard)}}let be=(()=>{class a{constructor(t,n,i,o,l,d,Ce,Be,Te,ke){this.utilsSvc=t,this.basketService=n,this.flyaheadSvc=i,this.operatingCarrierSrv=o,this.cmsBundles=l,this.router=d,this.mmbDatalayerSvc=Ce,this.vivaGlobalConfigService=Be,this.alertsSvc=Te,this.flightStationTypeService=ke,this.customClass="",this.showFareVariantUpsell=!1,this.isManageFlow=!1,this.isReviewPage=!1,this.enableFlyaheadBanner=!1,this.journeyKeys=[],this.enableStandByCheckInStatus=!1,this.lgFullSpace=!1,this.showIropItems=!1,this.showConfirmationBadge=!1,this.dateExtraInfo=!1,this.isBundleUpsell=!1,this.showDelayTooltip=!1,this.showDelayDates=!1,this.disabled=!1,this.isBookingPublished=!1,this.showHotelDetails=!1,this.skipJourneyCardClass=!1,this.hideItinerary=!1,this.marketplaceAction=new e.bkB,this.availabilityJourneys=[],this.standByJourneys={},this.fareType=c.nD.VIVA_BASIC,this.cbxValidate=!1,this.flightTypeId=F.C,this.isFromAllegiant=!1,this.oldJourneyDates={},this.journeysBadge={},this.iropCodes=f.nC,this.bundlesBenefits=[],this.groupedBundlesBenefits=[],this.summarizedBenefits=[],this.showChangeOpt=!1,this.alertTuaData=null,this.journeysTravelTime={},this.onlyCarrier=!1,this.iberiaAlliesCarrier=!1,this.fullyPartnerFlights=!1,this.changeFlightCount=-1,this.isRefundableFareChangeAvailable=!1,this.fareVariant=y.Mi.Regular,this.isRefundableFareUpsell=!1,this.showMixBundle=!0,this.selectedRouteCodes=[]}ngOnInit(){this.travelType=this.basketService.getTripTypeFromBasketBooking(this.basketBooking),this.alertTuaData=this.alertsSvc.getAlert("VG_ALERT_FLIGHTS-VIVA-IBERIA")}ngOnChanges(){this.initJourneys(),this.setOldJourneysData(),this.setJourneysBadge(),this.checkAltProvider(),this.setHotelData()}initJourneys(){this.faJourney=void 0,this.basketBooking&&Array.isArray(this.basketBooking.journeys)?(this.availabilityJourneys=[],this.selectedRouteCodes=[],this.basketBooking.journeys.forEach(t=>{this.availabilityJourneys.push(this.bookingJourneyToAvailabilityJourney(t)),this.selectedRouteCodes=this.selectedRouteCodes.concat(t.segments.map(n=>`${n.origin.code}-${n.destination.code}`)),this.standByJourneys[t.key]=!!this.enableStandByCheckInStatus&&!!t?.notifications?.find(n=>"Standby"===n?.code),this.journeysTravelTime[t.key]={arrivalDate:t.segments[t.segments.length-1]?.arrivalDate,departureDate:t.segments[0]?.departureDate}}),this.changeFlightCount=-1,1===this.journeyKeys?.length&&this.currentBasket&&(this.changeFlightCount=this.currentBasket.customFields?.originalJourneyIndex?.[0]||-1),this.setCBXValidate(),this.filterJourneys(),this.isFromAllegiant="G4"===this.basketBooking?.source?.systemCode,this.bookingFare=(0,p.Zn)(this.basketBooking),this.fareType=this.bookingFare?.fareType||c.nD.VIVA_ZERO,this.bookingFare?.bundleTypeName&&(this.fareType=this.utilsSvc.matchFares(this.bookingFare?.bundleType,!0)),this.showChangeOpt=this.utilsSvc.checkBookingAvailability(this.basketBooking,h._z.UpsellLight,!1)||this.utilsSvc.checkBookingAvailability(this.basketBooking,h._z.UpsellZero,!1),this.setRefundableFareData(),this.enableFlyaheadBanner&&this.setFlyaheadJourney(),this.showMixBundle=this.utilsSvc.isMixAvailableInBooking(this.basketBooking.journeys),this.defineBundlesBenefits()):this.availabilityJourneys=[]}filterJourneys(){this.journeyKeys&&this.journeyKeys.length&&(this.availabilityJourneys=this.availabilityJourneys.filter(t=>this.journeyKeys.find(n=>n===t.key)))}setRefundableFareData(){this.isRefundableFareChangeAvailable=this.utilsSvc.checkBookingAvailability(this.basketBooking,h._z.TotalRefundCancellationOffer24h,!1);const t=this.basketBooking?.services?.services?.find(n=>"RefundableFare"===n.code&&n.options?.find(i=>"VAJR"===i.ssrCode));this.fareVariant=t?y.Mi.Refundable:y.Mi.Regular,this.isRefundableFareUpsell=!!t&&this.currentBasket?.customFields.refundableFareIsSelected&&this.show
1FareVariantUpsell,this.originalFare=this.currentBasket?.customFields?.originalFare||null}bookingJourneyToAvailabilityJourney(t){if(t){const n=[];return t.segments&&Array.isArray(t.segments)&&t.segments.forEach(i=>{n.push(this.utilsSvc.bookingSegmentToAvailabilitySegment(i))}),{...t,departureDate:t.departureDate.scheduled,arrivalDate:t.arrivalDate.scheduled,lowestFareKey:t.fare.key,isSoldout:!0,fares:[],segments:n}}}setCBXValidate(){this.cbxValidate=!!this.availabilityJourneys.find(n=>"TJX"===n.destination.code||"TJX"===n.origin.code)}get allHasAltProvider(){return!this.utilsSvc.allAlternativeProviderInBooking(this.basketBooking.journeys,"marketingCarrier")}journeyHasAltProvider(t){return this.utilsSvc.hasAlternativeProviderInSegments(t?.segments,"operatingCarrier")}checkAltProvider(){this.operatingCarrierSrv.ready.then(()=>{const t=this.basketBooking.journeys.find(n=>this.utilsSvc.hasAlternativeProviderInSegments(n?.segments,"operatingCarrier"));if(t){if(this.altProviderData=this.operatingCarrierSrv.getCarrierDataByCode(this.utilsSvc.getAlternativeProvider(t?.segments,"operatingCarrier"))||null,this.vivaGlobalConfigService.getIsGlobal()){const n=this.vivaGlobalConfigService.getIberiaSegment(t)?.operatingCarrier;this.altProviderData=n?this.operatingCarrierSrv.getCarrierDataByCode(n):this.altProviderData}this.onlyCarrier=!(!this.altProviderData||!this.utilsSvc.isOnlyAltOperatingCarrier(this.basketBooking.journeys,"operatingCarrier")),this.altProviderData.code===m.NL.IB&&this.utilsSvc.isIberiaAlliesOperatingCarrier(this.basketBooking.journeys,"operatingCarrier")?(this.onlyCarrier=!0,this.iberiaAlliesCarrier=!0):(this.onlyCarrier=!1,this.iberiaAlliesCarrier=!1)}}),this.fullyPartnerFlights=this.utilsSvc.isOnlyAltOperatingCarrier(this.basketBooking.journeys)}checkIfHasAltProvider(t){return this.utilsSvc.hasAlternativeProviderInSegments(t)}getAltProvider(t){return this.utilsSvc.getAlternativeProvider(t)}setFlyaheadJourney(){this.faJourney=this.flyaheadSvc.getFlyaheadTrip(this.basketBooking)}displayFlyAhead(t){return this.enableFlyaheadBanner&&this.faJourney?.journey?.key===t}setOldJourneysData(){this.oldJourneyDates={},this.showIropItems&&this.basketBooking?.irop?.journeys?.length&&this.availabilityJourneys.forEach(t=>{const n=this.basketBooking?.irop?.journeys?.find(i=>i?.journeyKey===t?.key)||null;if(n?.oldSegments?.length){const i=JSON.parse(JSON.stringify(t));i.departureDate=n?.oldSegments[0]?.scheduledDeparture||null,i.arrivalDate=n?.oldSegments[n?.oldSegments?.length-1]?.scheduledArrival||null,this.oldJourneyDates[t?.key]=this.utilsSvc.getOldDates(this.iropEvent,i)}})}setJourneysBadge(){this.journeysBadge={},(this.showConfirmationBadge||this.showIropItems)&&this.availabilityJourneys.forEach(t=>{(this.showConfirmationBadge&&this.currentBasket?.customFields?.availabilityJourneyKeys?.find(n=>n===t.key)||this.showIropItems&&this.oldJourneyDates[t?.key])&&(this.journeysBadge[t?.key]=this.badgeTxt)})}defineBundlesBenefits(){const t=this.basketBooking.journeys[0],n=[];"Points"===this.currentBasket?.bookingType&&n.push("Doters"),this.cbxValidate&&n.push("CBX"),this.basketBooking.charges.find(i=>"FlightFanDiscount"===i.code)&&n.push("VivaFan"),this.fareType===c.nD.VP&&n.push("ota"),this.basketBooking?.event&&n.push("events"),this.utilsSvc.bookingHasHotelPlus(this.basketBooking)&&n.push("HotelPlus"),this.refundableFareIsSelected&&n.push("refundableFare"),this.showMixBundle&&this.bookingFare.bundleType===c.$l.VIVA_MIX&&n.push("BundleSwitch"),this.cmsBundles.ready.then(()=>{this.bundlesBenefits=this.cmsBundles.getFilteredBenefitsByFare(this.fareType,t,n,"benefits",this.basketBooking),this.summarizedBenefits=this.cmsBundles.getFilteredBenefitsByFare(this.fareType,t,n,"summarizedBenefits",this.basketBooking),this.groupedBundlesBenefits=this.cmsBundles.getGroupedFilteredBenefitsByFare(this.fareType,t,n,"benefits",this.basketBooking)})}get iropEvent(){return this.basketBooking?.irop?.iropEvent}get badgeTxt(){return this.showConfirmationBadge&&(this.currentBasket?.customFields?.iropActionApplied===f.WT.FlightChange||!this.iropEvent&&"confirmation"===this.viewT
1ype)||this.iropEvent===f.nC.ScheduleChange?"GLOBAL_TAG_NEW-FLIGHT":"GLOBAL_TAG_NEW-SCHEDULE"}goToBundleUpsell(){this.isBookingPublished?this.marketplaceAction.emit():(this.mmbDatalayerSvc.mmbChangeModalityBtn(this.basketBooking,this.refundableFareIsSelected),this.router.navigate(["manage","combos"],{queryParamsHandling:"preserve"}))}get shouldShowJourneys(){return!(this.isBundleUpsell&&this.isReviewPage)&&this.availabilityJourneys?.length>0}setHotelData(){this.hotelDetailsCard=this.showHotelDetails?this.getHotelCardDetails(this.basketBooking):void 0}getHotelCardDetails(t){const{accommodation:n,currencyCode:i,passengers:o}=t??{},{propertyDetails:l}=n??{};if(l?.type===h.Lb.Hotel)return{name:l.name,checkInDate:n.checkInDate,checkOutDate:n.checkOutDate,amount:n.totalAmount.amount,currencyCode:i,passengers:this.getHotelPassengersFromBooking(n.rooms,o)}}getHotelPassengersFromBooking(t,n){const i={adults:0,kids:0,babies:0};for(const d of t)i.adults+=d.adults,i.kids+=d.children;const o=n?.filter(d=>d.type===v.fA.INFT)?.length??0,l=n?.filter(d=>d.type===v.fA.CHD)?.length??0;return o+l===i.kids&&(i.kids=l,i.babies=o),i}updateDynamicClassesFromJourney(t){return this.flightStationTypeService.getDynamicClasses(t.toLowerCase(),this.vivaGlobalConfigService.getIsGlobal())}get refundableFareIsSelected(){return this.fareVariant===y.Mi.Refundable}get showActionButtonsDisplay(){return this.isManageFlow&&!this.disabled&&(this.showChangeOpt||this.isRefundableFareChangeAvailable&&(!this.refundableFareIsSelected||this.fareType!==c.nD.VIVA_SMART))}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(p.TJ),e.rXU(I.S),e.rXU(P.b),e.rXU(D.P),e.rXU(O.U),e.rXU(M.Ix),e.rXU(S.B),e.rXU(m.$K),e.rXU(x.b),e.rXU(w.Y))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["app-journey-itinerary"]],inputs:{customClass:[0,"class","customClass"],basketBooking:"basketBooking",viewType:"viewType",showFareVariantUpsell:"showFareVariantUpsell",isManageFlow:"isManageFlow",isReviewPage:"isReviewPage",enableFlyaheadBanner:"enableFlyaheadBanner",journeyKeys:"journeyKeys",enableStandByCheckInStatus:"enableStandByCheckInStatus",lgFullSpace:"lgFullSpace",showIropItems:"showIropItems",showConfirmationBadge:"showConfirmationBadge",currentBasket:"currentBasket",dateExtraInfo:"dateExtraInfo",isBundleUpsell:"isBundleUpsell",showDelayTooltip:"showDelayTooltip",showDelayDates:"showDelayDates",disabled:"disabled",isBookingPublished:"isBookingPublished",showHotelDetails:"showHotelDetails",skipJourneyCardClass:"skipJourneyCardClass",hideItinerary:"hideItinerary"},outputs:{marketplaceAction:"marketplaceAction"},standalone:!1,features:[e.OA$],decls:38,vars:36,consts:[["multiCity",""],["hotelDetails",""],[1,"journey-itinerary","not-printable",3,"ngClass"],[4,"ngIf"],[3,"fareType","smallWidth","displayFlexsibility","isManageFlow","isFromAllegiant","summarizedBenefits","actionButtonsDisplay","isBundleUpsell","viewType","isRefundableFareChangeAvailable","fareVariant","isRefundableFareUpsell","originalFare","showMixBundle","changeFare",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"ngClass",4,"ngIf"],[3,"basketBooking","isManageFlow",4,"ngIf"],[3,"fareType","bundlesBenefits","isFromAllegiant","fareVariant","showMixBundle","groupedBundlesBenefits"],[1,"is-printable"],[1,"journey-itinerary"],[1,"color-vrd-olive-dark","subheader","mb-2","p-0"],[1,"journey-container"],[1,"journey-header","d-flex","align-items-start","mb-3","p-0"],[1,"d-flex","flex-column"],[1,"h3-semibold-trim-t-vrd","color-vrd-printable-dark-green","mb-2"],[1,"mono","vba-pill","mr-8"],[1,"far","fa-plane","mx-2"],[4,"ngFor","ngForOf"],[3,"fareType","isManageFlow","isFromAllegiant","summarizedBenefits","showMixBundle"],[4,"ngIf","ngIfElse"],["class","body1-semibold-t-vrd body2-semibold-t-vrd-sm color-vrd-subtitle mb-16",4,"ngIf"],["class","d-flex flex-row justify-content-start align-items-start mb-16 mb-sm-24",3,"itineraryCodeJourney","originLabels","destinationLabels","isGlobal","marginTopPx",4,"ngIf"],[1,"body1-semibold-t-vrd","body2-semibold-t-vrd-sm","color-vrd-subtitle","mb-16"],[1,"d-flex","flex-row","justify-content-start","align-items-start","mb-16","mb-sm-24",3,"itineraryCodeJourney","originLabels","de
1stinationLabels","isGlobal","marginTopPx"],[1,"position-relative",3,"journey","viewType","standBy","lgFullSpace","flexpassCfg","oldDates","badgeText","dateExtraInfo","journeyTravelTime","altProviderData","showDelayTooltip","showDelayDates","disabled","isGlobal","skipJourneyCardClass","alternativeProviderCode"],[1,"body1-semibold-t-vrd","color-vrd-subtitle","mb-12","mb-sm-16",3,"ngClass"],[1,"position-relative",3,"journey","viewType","flexpassCfg","oldDates","badgeText","dateExtraInfo","altProviderData","journeyTravelTime","showDelayTooltip","showDelayDates"],[3,"changeFare","fareType","smallWidth","displayFlexsibility","isManageFlow","isFromAllegiant","summarizedBenefits","actionButtonsDisplay","isBundleUpsell","viewType","isRefundableFareChangeAvailable","fareVariant","isRefundableFareUpsell","originalFare","showMixBundle"],[3,"fareName","bundleTypeName","showInfoButton"],[3,"ngClass"],[3,"altProviderData","viewType","onlyCarrier","onlyCarrierType","fullyPartnerFlights","isVivaGlobal","selectedRouteCodes"],[3,"basketBooking","isManageFlow"],[3,"journey","viewType","standBy","lgFullSpace","flexpassCfg","oldDates","badgeText","dateExtraInfo","journeyTravelTime","altProviderData","showDelayTooltip","showDelayDates","disabled","isGlobal","alternativeProviderCode","isOpen","isPrintableView"],["class","mt-2 hotel-container",4,"ngIf"],[1,"mt-2","hotel-container"],[3,"hotelData","headerSize","confirmationView"]],template:function(n,i){if(1&n&&(e.j41(0,"div",2),e.DNE(1,re,2,2,"ng-container",3)(2,de,1,1,"ng-template",null,0,e.C5r)(4,ge,1,14,"app-itinerary-fare-card",4)(5,ce,2,3,"ng-container",3)(6,ue,1,0,"ng-container",5)(7,he,2,10,"div",6)(8,ye,1,2,"app-event-card",7),e.k0s(),e.nrm(9,"app-modality-modal",8),e.j41(10,"div",9)(11,"div",10)(12,"div",11),e.EFF(13),e.nI1(14,"cmsTranslate"),e.k0s(),e.j41(15,"div",12)(16,"div",13)(17,"div",14)(18,"div",15),e.EFF(19),e.nI1(20,"flightStationName"),e.k0s(),e.j41(21,"span",16)(22,"label"),e.EFF(23),e.k0s()()(),e.nrm(24,"i",17),e.j41(25,"div",14)(26,"div",15),e.EFF(27),e.nI1(28,"flightStationName"),e.k0s(),e.j41(29,"span",16)(30,"label"),e.EFF(31),e.k0s()()()(),e.qex(32),e.DNE(33,pe,2,17,"ng-container",18),e.bVm(),e.nrm(34,"app-itinerary-fare-card",19),e.DNE(35,fe,1,0,"ng-container",5),e.k0s()()(),e.DNE(36,ve,1,1,"ng-template",null,1,e.C5r)),2&n){const o=e.sdS(37);e.HbH(i.customClass),e.Y8G("ngClass",i.viewType)("ngClass",e.eq3(34,Q,i.isManageFlow)),e.R7$(),e.Y8G("ngIf",i.shouldShowJourneys),e.R7$(3),e.Y8G("ngIf","cancellation"!==i.viewType&&!i.hideItinerary),e.R7$(),e.Y8G("ngIf",i.vivaGlobalConfigService.getIsGlobal()),e.R7$(),e.Y8G("ngTemplateOutlet",o),e.R7$(),e.Y8G("ngIf",i.altProviderData),e.R7$(),e.Y8G("ngIf",!!i.basketBooking.event),e.R7$(),e.Y8G("fareType",i.fareType)("bundlesBenefits",i.bundlesBenefits)("isFromAllegiant",i.isFromAllegiant)("fareVariant",i.fareVariant)("showMixBundle",i.showMixBundle)("groupedBundlesBenefits",i.groupedBundlesBenefits),e.R7$(4),e.SpI(" ",e.bMT(14,28,"BOOKER_LABEL_TITLE-ITINERARY")," "),e.R7$(6),e.SpI(" ",e.bMT(20,30,i.availabilityJourneys[0].origin.code)," "),e.R7$(4),e.JRh(i.availabilityJourneys[0].origin.code),e.R7$(4),e.SpI(" ",e.bMT(28,32,i.availabilityJourneys[0].destination.code)," "),e.R7$(4),e.JRh(i.availabilityJourneys[0].destination.code),e.R7$(2),e.Y8G("ngForOf",i.availabilityJourneys),e.R7$(),e.Y8G("fareType",i.fareType)("isManageFlow",i.isManageFlow)("isFromAllegiant",i.isFromAllegiant)("summarizedBenefits",i.summarizedBenefits)("showMixBundle",i.showMixBundle),e.R7$(),e.Y8G("ngTemplateOutlet",o)}},dependencies:[g.YU,g.Sq,g.bT,g.T3,j.o,A.Y,R.n,E.Zr,J.I,H,K.p,W.K,Z.A,B.I,T.n],styles:[".journey-itinerary[_ngcontent-%COMP%]{margin-bottom:50px}.journey-itinerary.confirmation[_ngcontent-%COMP%]{margin-bottom:20px}.journey-itinerary.transfer[_ngcontent-%COMP%]{margin-bottom:10px}@media only screen and (max-width:991px){.journey-itinerary[_ngcontent-%COMP%]{margin-bottom:40px}}@media print{.journey-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-top:2px}.journey-itinerary[_ngcontent-%COMP%]{padding:20px 0;margin-bottom:40px}.journey-itinerary[_ngcontent-%COMP%] .subheader[_ngcontent-%COMP%], .journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-header[_ngcontent-%COMP%]{padding:0 15px}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{opacity:.5;font-weight:400;font-size:8.6px;line-height:1.25}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%]{border-radius:5px;border:.5px solid var(--gr15);margin-bottom:10px}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .to
1p[_ngcontent-%COMP%]{border-bottom:.5px solid var(--gr15)}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{border-right:.5px solid var(--gr15);padding:10px 40px}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .date[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1em}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .schedule[_ngcontent-%COMP%]{padding:10px 20px}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .schedule[_ngcontent-%COMP%] .hour[_ngcontent-%COMP%]{margin-right:20px}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .schedule[_ngcontent-%COMP%] .hour[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1em}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .schedule[_ngcontent-%COMP%] .hour[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.8em}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .schedule[_ngcontent-%COMP%] .hour[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{display:block;opacity:.5;font-weight:400;font-size:.8em}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .schedule[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] > .title[_ngcontent-%COMP%]{font-size:.8em;font-weight:400;line-height:20px;margin-left:100px;color:var(--bg4)}.journey-itinerary[_ngcontent-%COMP%] .journey-container[_ngcontent-%COMP%] .journey-detail[_ngcontent-%COMP%] .schedule[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] > .title[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{color:var(--vg4);vertical-align:sub;font-size:1em}}.journey-itinerary.confirmation[_ngcontent-%COMP%]{margin-bottom:24px!important}.journey-itinerary.manage-flow[_ngcontent-%COMP%]{margin-bottom:24px}@media only screen and (max-width:575px){.journey-itinerary.manage-flow[_ngcontent-%COMP%]{margin-bottom:24px}}app-itinerary-fare-card[_ngcontent-%COMP%], app-itinerary-card[_ngcontent-%COMP%]{display:block}app-itinerary-fare-card[_ngcontent-%COMP%]:not(:first-child), app-itinerary-card[_ngcontent-%COMP%]:not(:first-child){margin-top:24px}.hotel-container[_ngcontent-%COMP%]{margin-top:24px!important}@media screen and (max-width:575px){.hotel-container[_ngcontent-%COMP%]{margin-top:16px!important}}"]})}}return a})()}}]);
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.