PageSourceSearch

https://www.vivaaerobus.com/8081.f7daebb0f886d4f4.js

js vivaaerobus.com collected 2026-10-02 02:23:20 UTC 59,222 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkviva_web=self.webpackChunkviva_web||[]).push([[8081],{47777(D,M,i){i.d(M,{CheckInConfirmationModule:()=>ye});var u=i(72200),v=i(38132),f=i(74523),y=i(18359),p=i(93207),_=i(50510),C=i(45312),g=i(10452),n=i(73664),l=i(2615),b=i(34066),m=i(71910),d=i(93287),h=i(30722),k=i(57303),I=i(8932),L=i(51242),N=i(88717),F=i(36011),K=i(86655),B=i(73230),U=i(79168),S=i(83384),$=i(77961),w=i(40289);const Y=t=>({"dark-site-typeB":t}),J=t=>({"dark-site-white-font":t});function X(t,r){if(1&t&&(n.j41(0,"viva-button-link",8)(1,"div",9)(2,"span"),n.EFF(3),n.k0s(),n.nrm(4,"em",10),n.k0s()()),2&t){const e=n.XpG();n.R7$(3),n.JRh(e.cta.text)}}let Q=(()=>{class t{constructor(e,o){this.datalayerPromotions=e,this.el=o,this.showDarksite=!1}ngOnInit(){}get cta(){if(this.service)return this.service.callToAction?.fields}sendPromotions(){const e="home_shortcuts_grid";this.datalayerPromotions.selectPromotion(this.service.title,this.service.description,this.service.iconClass,e,e)}onViewPromotions(e){if(e){const o="home_shortcuts_grid";this.datalayerPromotions.viewPromotions(this.service.title,this.service.description,this.service.iconClass,o,o)}}static{this.\u0275fac=function(o){return new(o||t)(n.rXU(U.K),n.rXU(n.aKT))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-service-card"]],inputs:{service:"service",showDarksite:"showDarksite",darksiteOptions:"darksiteOptions"},standalone:!1,decls:10,vars:15,consts:[["ctaClass","w-100 h-100",3,"callToAction"],["appIntersectionObserver","",1,"service-card-container","h-100",3,"click","isVisible","ngClass","observeOnce","threshold"],[3,"ngClass"],[1,"service-card-title-container"],[1,"service-card-title"],[1,"service-card-description"],[1,"fas","fa-arrow-right","service-card-arrow"],["size","small",4,"ngIf"],["size","small"],[1,"content"],[1,"far","fa-arrow-right","service-card-arrow"]],template:function(o,a){1&o&&(n.j41(0,"app-call-to-action",0)(1,"div",1),n.bIt("click",function(){return a.sendPromotions()})("isVisible",function(s){return a.onViewPromotions(s)}),n.nrm(2,"em",2),n.j41(3,"div",3)(4,"h3",4),n.EFF(5),n.k0s()(),n.j41(6,"p",5),n.EFF(7),n.k0s(),n.nrm(8,"em",6),n.DNE(9,X,5,1,"viva-button-link",7),n.k0s()()),2&o&&(n.Y8G("callToAction",a.cta),n.R7$(),n.Y8G("ngClass",n.eq3(11,Y,a.showDarksite&&"B"===(null==a.darksiteOptions?null:a.darksiteOptions.variant)))("observeOnce",!0)("threshold",.5),n.R7$(),n.HbH(n.VkB("",a.service.iconClass," service-card-icon")),n.Y8G("ngClass",n.eq3(13,J,a.showDarksite)),n.R7$(3),n.SpI(" ",a.service.title," "),n.R7$(2),n.SpI(" ",a.service.description," "),n.R7$(2),n.Y8G("ngIf",a.cta.text))},dependencies:[u.YU,u.bT,S.j,$.T,w.O],styles:[".service-card-container[_ngcontent-%COMP%]{background-color:var(--wh1);width:100%;min-height:254px;border-radius:16px;border:1px solid var(--bpr);padding:24px;position:relative;display:flex;flex-direction:column;text-decoration:none}@media screen and (max-width:1024px){.service-card-container[_ngcontent-%COMP%]{min-height:unset}}.service-card-container[_ngcontent-%COMP%]:hover{text-decoration:none}.service-card-container[_ngcontent-%COMP%]:has(viva-button-link)   .service-card-arrow[_ngcontent-%COMP%]{color:inherit}.service-card-icon[_ngcontent-%COMP%]{width:40px;height:40px;background-color:var(--aah);border-radius:50%;padding:8px;font-size:18px;display:flex;justify-content:center;align-items:center;color:var(--ade);margin-bottom:24px}.service-card-title-container[_ngcontent-%COMP%]{display:grid;align-items:end;margin-bottom:8px;width:100%;min-height:unset}.service-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:20px;line-height:140%;color:var(--tde);width:100%;margin:0}.service-card-description[_ngcontent-%COMP%]{font-size:16px;line-height:140%;color:var(--tde);display:block;margin:0 0 24px;opacity:1;font-weight:400;font-family:Axiforma,Arial,sans-serif}.service-card-arrow[_ngcontent-%COMP%]{color:var(--ade);width:16px;height:16px;font-size:15px;right:24px;bottom:24px;align-items:center;justify-content:center;margin-top:auto;align-self:flex-end;position:unset}.service-card-arrow.fas[_ngcontent-%COMP%]{display:none}.service-card-arrow.far[_ngcontent-%COMP%]{display:flex}viva-button-link[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:auto}"]})}}return t})();var z=i(91068),H=i(99470),W=i(99968),j=i(27855),R=i(97586),Z=i(1807),q=i(94990),nn=i(813),en=i(17741),tn=i(77867),an=i(61310),on=i(95398),sn=i(71650),rn=i(54908),cn=i(54179),ln=i(53288),dn=i(68024),V=i(79348),gn=i(30131),hn=i(14730);const pn=()=>({format:"webp",quality:80,fit:"fill"}),mn=t=>({"d-none d-md-block":t}),un=t=>({regex:"%%restricted-ssr%%",newValue:t}),G=t=>[t];function _n(t,r){if(1&t&&n.nrm(0,"app-itinerary-card",17),2&t){const e=n.XpG();n.Y8G("journey",e.currentJourney)("viewType","checkin-confirmation")("journeyCardStatus","CheckinAllowed")("journeyFlightStatus",e.journeyFlightStatus)("journeyTravelTime",e.journeyTravelTime)("showDelayDates",!0)("showDelayTooltip",!0)}}function fn(t,r){1&t&&n.eu8(0)}function Cn(t,r){if(1&t&&(n.j41(0,"div",18),n.DNE(1,fn,1,0,"ng-container",19),n.k0s()),2&t){n.XpG();const e=n.sdS(21);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function Pn(t,r){1&t&&n.eu8(0)}function vn(t,r){if(1&t&&(n.j41(0,"div",18),n.DNE(1,Pn,1,0,"ng-container",19),n.k0s()),2&t){n.XpG();const e=n.sdS(23);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function yn(t,r){1&t&&n.eu8(0)}function kn(t,r){if(1&t&&(n.j41(0,"div",18),n.DNE(1,yn,1,0,"ng-container",19),n.k0s()),2&t){n.XpG();const e=n.sdS(25);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function On(t,r){1&t&&(n.j41(0,"div")(1,"div",36),n.EFF(2),n.nI1(3,"cmsTranslate"),n.k0s()()),2&t&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"MANAGE_LABEL_BOARDIN-PASS-NOT-AVAILABLE-CHILD")," "))}function Mn(t,r){if(1&t&&(n.j41(0,"div",36),n.EFF(1),n.nI1(2,"cmsTranslate"),n.nI1(3,"cmsRegexReplace"),n.k0s()),2&t){const e=r.ngIf;
1n.R7$(),n.SpI(" ",n.i5U(3,3,n.bMT(2,1,"MANAGE_LABEL_BOARDIN-PASS-NOT-AVAILABLE"),n.eq3(8,G,n.eq3(6,un,e)))," ")}}function bn(t,r){if(1&t&&n.DNE(0,Mn,4,10,"div",37),2&t){const e=n.XpG(2).$implicit,o=n.XpG(2);n.Y8G("ngIf",null==o.passengerRestrictionFlags[e.passengerKey]?null:o.passengerRestrictionFlags[e.passengerKey].ssrRestriction)}}function In(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",38),n.bIt("click",function(){l.eBV(e);const a=n.XpG(2).$implicit,c=n.XpG(2);return l.Njj(c.openBoardingPassModal(a))}),n.nrm(1,"em",39)(2,"em",40),n.k0s()}}function Dn(t,r){1&t&&(n.j41(0,"div",41),n.nrm(1,"em",42),n.k0s())}function xn(t,r){if(1&t&&(n.qex(0),n.j41(1,"div",30)(2,"div")(3,"div",31),n.EFF(4),n.nI1(5,"titlecase"),n.k0s(),n.DNE(6,On,4,3,"div",32)(7,bn,1,1,"ng-template",null,3,n.C5r),n.k0s(),n.DNE(9,In,3,0,"button",33)(10,Dn,2,0,"div",34),n.k0s(),n.nrm(11,"hr",35),n.bVm()),2&t){const e=n.sdS(8),o=n.XpG(),a=o.$implicit,c=o.index,s=n.XpG(2);n.R7$(4),n.JRh(n.bMT(5,6,s.getPassengerBookingName(a.passengerKey))),n.R7$(2),n.Y8G("ngIf",null==s.passengerRestrictionFlags[a.passengerKey]?null:s.passengerRestrictionFlags[a.passengerKey].isMinorPassenger)("ngIfElse",e),n.R7$(3),n.Y8G("ngIf",a.boardingPassStatus===s.boardingPassStatus.AVAILABLE),n.R7$(),n.Y8G("ngIf",a.boardingPassStatus!==s.boardingPassStatus.AVAILABLE),n.R7$(),n.Y8G("ngClass",n.eq3(8,mn,c===s.basketBooking.passengers.length-1))}}function Rn(t,r){if(1&t&&(n.qex(0),n.DNE(1,xn,12,10,"ng-container",29),n.bVm()),2&t){const e=r.$implicit,o=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.status===o.passengerStatus.CHECKEDIN)}}function An(t,r){1&t&&n.eu8(0)}function Tn(t,r){if(1&t&&(n.j41(0,"div",43),n.DNE(1,An,1,0,"ng-container",19),n.k0s()),2&t){n.XpG(2);const e=n.sdS(21);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function En(t,r){1&t&&n.eu8(0)}function Bn(t,r){if(1&t&&(n.j41(0,"div",43),n.DNE(1,En,1,0,"ng-container",19),n.k0s()),2&t){n.XpG(2);const e=n.sdS(23);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function Sn(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",44),n.bIt("click",function(){l.eBV(e);const a=n.XpG(2);return l.Njj(a.checkInUndoBtn())}),n.j41(1,"div",45)(2,"span",46),n.EFF(3),n.nI1(4,"cmsTranslate"),n.k0s()(),n.nrm(5,"div",47),n.k0s()}2&t&&(n.R7$(3),n.JRh(n.bMT(4,1,"MANAGE_ACTION_UNDO-CHECKIN")))}function wn(t,r){if(1&t){const e=n.RV6();n.j41(0,"viva-button",48),n.bIt("click",function(){l.eBV(e);const a=n.XpG(2);return l.Njj(a.checkInUndoBtn())}),n.j41(1,"div",45)(2,"span"),n.EFF(3),n.nI1(4,"cmsTranslate"),n.k0s()()()}2&t&&(n.HbH("w-100"),n.R7$(3),n.JRh(n.bMT(4,3,"MANAGE_ACTION_UNDO-CHECKIN")))}function jn(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",20),n.DNE(1,Rn,2,1,"ng-container",21),n.nrm(2,"div",22),n.DNE(3,Tn,2,1,"div",23)(4,Bn,2,1,"div",23),n.j41(5,"div",24),n.DNE(6,Sn,6,3,"button",25)(7,wn,5,5,"viva-button",26),n.j41(8,"button",27),n.bIt("click",function(){l.eBV(e);const a=n.XpG();return l.Njj(a.openBoardingPassModal(null))}),n.j41(9,"span"),n.EFF(10),n.nI1(11,"cmsTranslate"),n.k0s()(),n.j41(12,"viva-button",28),n.bIt("click",function(){l.eBV(e);const a=n.XpG();return l.Njj(a.openBoardingPassModal(null))}),n.j41(13,"span"),n.EFF(14),n.nI1(15,"cmsTranslate"),n.k0s()()()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.checkInJourney.passengers),n.R7$(2),n.Y8G("ngIf",e.displayPassengerNotification),n.R7$(),n.Y8G("ngIf",e.standBy),n.R7$(2),n.Y8G("ngIf",!!e.hasLoginRequired||e.checkInUndo),n.R7$(),n.Y8G("ngIf",!!e.hasLoginRequired||e.checkInUndo),n.R7$(),n.Y8G("disabled",e.downloadBtnDisabled),n.R7$(2),n.JRh(n.bMT(11,11,e.isGroupReservation?"MANAGE_LABEL_SEND-ALL":"MANAGE_ACTION_DOWNLOAD-ALL")),n.R7$(2),n.HbH("w-100"),n.Y8G("disabled",e.downloadBtnDisabled),n.R7$(2),n.JRh(n.bMT(15,13,e.isGroupReservation?"MANAGE_LABEL_SEND-ALL":"MANAGE_ACTION_DOWNLOAD-ALL"))}}function Vn(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-check-in-boarding-pass-modal",49),n.bIt("pdfCompleted",function(){l.eBV(e);const a=n.XpG();return l.Njj(a.pdfCompletedAction())}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("id","check-in-boarding-pass-modal")("boardingPassModalData",e.boardingPassModalData)("passengerSelectedKey",e.passPassengerSelectedKey)("initialPassengerPasses",e.journeyPassengerPasses)("forceLoading",e.passesLoading)("downloadPDF",e.downloadPDF)("journeyKey",e.checkInJourney.journeyKey)}}function Gn(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-check-in-undo-modal",50),n.bIt("undoCompleted",function(){l.eBV(e);const a=n.XpG();return l.Njj(a.goToLandingPage())}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("id","check-in-undo-modal")("basketId",e.basketId)("basketBooking",e.basketBooking)("checkInJourneys",n.eq3(4,G,e.checkInJourney))}}function Ln(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-flight-alert",51),n.bIt("clicked",function(){l.eBV(e);const a=n.XpG();return l.Njj(a.goToChangePassengers())}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("alertData",e.confirmationAlert)("noRounded",!0)("noMargin",!0)("noClose",!0)("useCtaAsButton",e.specialAssistanceCTA)("forceExpandedLayout",e.blockedBPPassengers<=2)("noRoundedVRD",!0)}}function Nn(t,r){if(1&t&&n.nrm(0,"app-flight-alert",53),2&t){const e=n.XpG(2);n.Y8G("alertData",e.standByAlert)("noRounded",!0)("noMargin",!0)("noClose",!0)("noRoundedVRD",!0)}}function Fn(t,r){if(1&t&&n.DNE(0,Nn,1,5,"app-flight-alert",52),2&t){const e=n.XpG();n.Y8G("ngIf",e.standByAlert)}}function Kn(t,r){if(1&t&&n.nrm(0,"app-flight-alert",55),2&t){const e=n.XpG(2);n.Y8G("alertData",e.touristTaxAlert)("noRounded",!0)("noMargin",!0)("noClose",!0)("forceExpandedLayout",!0)("noRoundedVRD",!0)}}function Un(t,r){if(1&t&&n.DNE(0,Kn,1,6,"app-flight-alert",54),2&t){const e=n.XpG();n.Y8G("ngIf",e.touristTaxAlert)}}let $n=(()=>{class t{constructor(e,o,a,c,s,O,P,x,A,T,E){this.flightAlertsSvc=e,this.flightStatusSvc=o,this.checkInService=a,this.modalSvc=c,this.stationsSvc=s,this.document=O,this.utilsSvc=P,this.datalayerCheckIn=x,this.router=A,this.mmbRedirectSvc=T,this.servicesService=E,this.standBy=!1,this.checkInUndo=!1,this.boardingPassStatus=_.Vz,this.passengerStatus=_.al,this.passesLoading=!1,this.downloadPDF=!1,this.downloadBtnDisabled=!1,this.isGroupReservation=!1,this.boardingPassBlockedCodes=[_.QQ.BoardingPassBlockedChildNotAllowed,_.QQ.BoardingPassBlockedPasse
1ngerHasRestrictedSsr,_.QQ.BoardingPassBlockedPassengerHasSpecialAssistanceSsr,_.QQ.BoardingPassBlockedPassengerWithInfantNotAllowed],this.passengerRestrictionFlags={},this.specialAssistanceCTA=!1,this.hasTouristTaxPending=!1}ngOnInit(){this.initJourney(),this.verifyFligthStatus(),this.checkInJourney.passengers.length<=9?this.getShareBoardingPassData():this.isGroupReservation=!0}initJourney(){if(this.downloadBtnDisabled=!this.checkInJourney.passengers.find(e=>e.status===this.passengerStatus.CHECKEDIN&&e.boardingPassStatus===this.boardingPassStatus.AVAILABLE),this.basketBooking&&this.checkInJourney&&Array.isArray(this.basketBooking.journeys)){const e=this.basketBooking.journeys.find(o=>o.key===this.checkInJourney.journeyKey);this.currentJourney=this.bookingJourneyToAvailabilityJourney(e),this.journeyTravelTime={arrivalDate:e?.arrivalDate,departureDate:e?.departureDate},this.stationsSvc.ready.then(()=>{const o=this.stationsSvc.getCMSStation(this.currentJourney.destination.code)?.imageGallery;o&&(this.journeyImage=o[Math.floor(Math.random()*o.length)].fields.file.url)}),this.hasLoginRequired=this.utilsSvc.hasLoginRequired(this.basketBooking,g._z.UndoCheckin),this.hasTouristTaxPending=this.checkTouristTaxOnBooking(),this.hasTouristTaxPending&&this.datalayerCheckIn.viewUKTaxAlert(this.basketBooking,e),this.flightAlertsSvc.ready.then(()=>{this.standByAlert=this.flightAlertsSvc.getAlert("MANAGE_ALERT_STAND-BY-STATUS"),this.hasTouristTaxPending&&(this.touristTaxAlert=this.flightAlertsSvc.getAlert("BoardingPassNotAvailableUnpaidFee"));const o=this.checkInJourney.passengers.filter(c=>c.status===this.passengerStatus.CHECKEDIN&&c.boardingPassStatus!==this.boardingPassStatus.AVAILABLE&&c?.boardingPassStatusDetails?.find(s=>this.boardingPassBlockedCodes.includes(s?.code)));this.blockedBPPassengers=o.length;const a=!!o?.find(c=>c?.boardingPassStatusDetails?.find(s=>"BoardingPassBlockedPassengerHasSpecialAssistanceSsr"===s?.code));if(this.specialAssistanceCTA=a&&this.utilsSvc.checkBookingAvailability(this.basketBooking,g._z.ChangeServices),a){const c=this.basketBooking.journeys.findIndex(s=>s.key===this.checkInJourney.journeyKey);this.datalayerCheckIn.warningBanner(this.basketBooking,"boarding_pass_not_available_special_assistance",c)}this.confirmationAlert=this.flightAlertsSvc.getAlert(1===this.blockedBPPassengers||a?o[0]?.boardingPassStatusDetails[0]?.code:this.blockedBPPassengers>1?"MANAGE_ALERT_BOARDING-PASS-BLOQUED":"MANAGE_ALERT_COUNTER-CHECKIN"),"BoardingPassBlockedPassengerHasSpecialAssistanceSsr"===this.confirmationAlert.code&&(this.confirmationAlert.displayColor="red-solid")}),this.checkInJourney.passengers.forEach(o=>{if(o.status===this.passengerStatus.CHECKEDIN){const a={isMinorPassenger:this.isMinorPassenger(o)&&o.boardingPassStatus===_.Vz.BLOCKED,ssrRestriction:this.getPassengerRestriction(o)};this.passengerRestrictionFlags[o.passengerKey]=a}})}}bookingJourneyToAvailabilityJourney(e){if(e){const o=[];return e.segments&&Array.isArray(e.segments)&&e.segments.forEach(a=>{o.push(this.utilsSvc.bookingSegmentToAvailabilitySegment(a))}),{...e,departureDate:e.departureDate.scheduled,arrivalDate:e.arrivalDate.scheduled,lowestFareKey:e.fare.key,isSoldout:!0,fares:[],segments:o}}}verifyFligthStatus(){this.journeyFlightStatus={operatingStatus:q.Oj.ON_TIME,departureTime:null,arrivalTime:null};const e=this.currentJourney?.departureDate;if(e&&this.currentJourney?.iropStatus!==g.I8.Delayed&&R(e)<=R().add(1,"day")){const o=`?date=${R(e).format("YYYY-MM-DD")}&flight=${this.currentJourney.segments[0].operatingCode}`;this.flightStatusSvc.getFlightStatus(o).subscribe(a=>{this.journeyFlightStatus=a&&a.length>0&&a[0]?.route[0]?.journeys[0]?a[0].route[0].journeys[0].segments[0]:null},()=>{C.cA.production||console.error("::getFlightStatus::"),this.journeyFlightStatus=null})}}getPassengerBookingName(e){const o=this.basketBooking.passengers.find(a=>a.passengerKey===e);return o&&e?`${o.firstName} ${o.lastName}`:null}getPassengerRestriction(e){const o=e.boardingPassStatusDetails.find(a=>a.code===_.QQ.BoardingPassBlockedPassengerHasRestrictedSsr||a.code===_.QQ.BoardingPassBlockedPasse
1ngerHasSpecialAssistanceSsr)||null;if(o){const a=o.description.split("Ssrs:"),c=a[a.length-1];if(c?.length)return this.servicesService.getService(c.slice(1,c?.length-1))?.name||null}else if(e.boardingPassStatusDetails.find(a=>a.code===_.QQ.BoardingPassBlockedChildNotAllowed))return this.servicesService.getService("ZUNM")?.name;return null}isMinorPassenger(e){const o=this.basketBooking.passengers.find(a=>a.passengerKey===e.passengerKey);return o&&o.type===nn.fA.CHD}get displayPassengerNotification(){return!!this.checkInJourney.passengers.find(o=>o.status===this.passengerStatus.CHECKEDIN&&o.boardingPassStatus!==this.boardingPassStatus.AVAILABLE)}openBoardingPassModal(e,o=!1){this.datalayerCheckIn.downloadBoardingPass(e,this.basketBooking,this.checkInJourney.journeyKey);const a=[];this.checkInJourney.passengers.forEach(c=>{c.boardingPassStatus===_.Vz.AVAILABLE&&a.push({journeyKey:this.checkInJourney.journeyKey,passengerKey:c.passengerKey})}),this.boardingPassModalData={pnr:this.paymentsQueryParams?.pnr,lastName:this.paymentsQueryParams?.lastName,lang:this.paymentsQueryParams?.language.split("-")[0],boardingPassesToRetrieve:a},o?(this.passesLoading=!0,this.downloadPDF=!0):(this.downloadPDF=!1,this.passPassengerSelectedKey=e?e.passengerKey:null),a.length&&(0,Z.O)(0).subscribe(()=>{this.modalSvc.open("check-in-boarding-pass-modal")})}pdfCompletedAction(){this.passesLoading=!1}getShareBoardingPassData(){var e=this;return(0,f.A)(function*(){if(e.checkInJourney.passengers.find(o=>o.status===e.passengerStatus.CHECKEDIN&&o.boardingPassStatus===e.boardingPassStatus.AVAILABLE))if(e.passesLoading=!0,e.journeyPassengerPasses)e.passesLoading=!1;else{const o=[];e.checkInJourney.passengers.forEach(c=>{c.boardingPassStatus===_.Vz.AVAILABLE&&o.push({journeyKey:e.checkInJourney.journeyKey,passengerKey:c.passengerKey})});const a={pnr:e.paymentsQueryParams?.pnr,lastName:e.paymentsQueryParams?.lastName,boardingPassesToRetrieve:o,emailAddress:null,generatePDF:!0,generateImageDoc:!0,lang:e.paymentsQueryParams?.language.split("-")[0]};e.checkInService.shareBoardingPass(a).subscribe(function(){var c=(0,f.A)(function*(s){e.journeyPassengerPasses=s,e.passesLoading=!1});return function(s){return c.apply(this,arguments)}}(),c=>{e.passesLoading=!1,C.cA.production||console.error("shareBoardingPass:",c)})}})()}checkInUndoBtn(){this.hasLoginRequired&&this.mmbRedirectSvc.checkLoginRequiredRule(this.hasLoginRequired,g._z.UndoCheckin)||(this.modalSvc.open("check-in-undo-modal"),this.datalayerCheckIn.checkInUndoClick(this.basketBooking,this.checkInJourney),this.datalayerCheckIn.checkInUndoClick(this.basketBooking,this.checkInJourney,"view_modal"))}goToLandingPage(){this.router.navigate(["check-in"],{queryParams:{pnr:this.paymentsQueryParams.pnr,lastName:this.paymentsQueryParams.lastName},state:{undoCompleted:!0,journeyKey:this.checkInJourney.journeyKey}})}goToChangePassengers(){this.specialAssistanceCTA&&this.router.navigate(["manage","passengers"],{queryParams:{pnr:this.paymentsQueryParams.pnr,lastName:this.paymentsQueryParams.lastName}})}checkTouristTaxOnBooking(){return this.basketBooking.services?.services?.some(e=>e?.options?.some(o=>this.currentJourney.key===o.journeyKey&&"VBUU"===o.ssrCode))}static{this.\u0275fac=function(o){return new(o||t)(n.rXU(b.b),n.rXU(en.W),n.rXU(h.D),n.rXU(tn.B),n.rXU(an.r),n.rXU(l.qQL),n.rXU(on.TJ),n.rXU(I.o),n.rXU(d.Ix),n.rXU(sn.B),n.rXU(rn.g))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-download-card"]],inputs:{basketBooking:"basketBooking",checkInJourney:"checkInJourney",paymentsQueryParams:"paymentsQueryParams",standBy:"standBy",checkInUndo:"checkInUndo",basketId:"basketId"},standalone:!1,decls:26,vars:18,consts:[["passAlert",""],["standAlert",""],["TouristTaxAlert",""],["passRestriction",""],[1,"viva-card","shadow","white"],[1,"download-card-header"],[1,"download-card-header-info"],[1,"fas","fa-qrcode","mb-2","qr-icon"],[1,"h3","light","mb-2"],[1,"regular-text","light"],[1,"download-card-header-image"],["alt","journey","loading","lazy",1,"d-block",3,"src"],["class","check-in-card-VRD",3,"journey","viewType","journeyCardStatus","journeyFlightStatus","journeyTravelTime","showDelayDates","showDelayTooltip",4,"ngIf"],["class","d-none d-md-block",4,"ngIf"],["class","download-card-body",4,"ngIf"],[3,"id","boardingPassModalData","passengerSelectedKey","initialPassengerPasses","forceLoading","downloadPDF","journeyKey","pdfCompleted",4,"ngIf"],[3,"id","basketId","basketBooking","checkInJourneys","undoCompleted",4,"ngIf"],[1,"check-in-card-VRD",3,"journey","viewType","journeyCardStatus","journeyFlightStatus","journeyTravelTime","showDelayDates","showDelayTooltip"],[1,"d-none","d-md-block"],[4,"ngTemplateOutlet"],[1,"download-card-body"],[4,"ngFor","ngForOf"],[1,"mb-40","d-none","d-md-block"],["class","d-block d-md-none",4,"ngIf"],[1,"d-flex","justify-content-end","align-items-center","buttons"],["class","viva-btn tertiary grey-s my-10 my-md-0 px-20 d-flex justify-content-center align-items-center",3,"click",4,"ngIf"],["btnStyle","tertiary","size","small",3,"class","click",4,"ngIf"],[1,"viva-btn","big","d-none","d-md-block","ml-40",3,"click","disabled"],["btnStyle","primary","size","small",3,"click","disabled"],[4,"ngIf"],[1,"passenger-row"],[1,"title","darker"],[4,"ngIf","ngIfElse"],["class","qr-icon mr-1",3,"click",4,"ngIf"],["class","qr-icon warning-icon mr-md-1 mr-0",4,"ngIf"],[1,"my-0",3,"ngClass"],[1,"small-text"],["class","small-text",4,"ngIf"],[1,"qr-icon","mr-1",3,"click"],[1,"fas","fa-qrcode"],[1,"far","fa-qrcode"],[1,"qr-icon","warning-icon","mr-md-1","mr-0"],[1,"fas","fa-exclamation-triangle"],[1,"d-block","d-md-none"],[1,"viva-btn","tertiary","grey-s","my-10","my-md-0","px-20","d-flex","justify-content-center","align-items-center",3,"click"],[1,"content"],[1,"title"],[1,"line"],["btnStyle","tertiary","size","small",3,"click"],[3,"pdfCompleted","id","boardingPassModalData","passengerSelectedKey","initialPassengerPasses","forceLoading","downloadPDF","journeyKey"],[3,"undoCompleted","id","basketId","basketBooking","checkInJourneys"],[3,"clicked","alertData","noRounded","noMargin","noClose","useCtaAsButton","forceExpandedLayout","noRoundedVRD"],[3,"alertData","noRounded","noMargin","noClose","noRoundedVRD",4,"ngIf"],[3,"alertData","noRounded","noMargin","noClose","noRoundedVRD"],[3,"alertData","noRounded","noMargin","noClose","forceExpandedLayout","noRoundedVRD",4,"ngIf"],[3,"alertData","noRounded","noMargin","noClose","forceExpandedLayout","noRoundedVRD"]],template:function(o,a){1&o&&(n.j41(0,"div",4)(1,"div",5)(2,"div",6),n.nrm(3,"em",7),n.j41(4,"div",8),n.EFF(5),n.nI1(6,"cmsTranslate"),n.k0s(),n.j41(7,"div",9),n.EFF(8),n.nI1(9,"cmsTranslate"),n.k0s()(),n.j41(10,"div",10),n.nrm(11,"img",11),n.nI1(12,"cmsImage"),n.k0s()(),n.DNE(13,_n,1,7,"app-itinerary-card",12)(14,Cn,2,1,"div",13)(15,vn,2,1,"div",13)(16,kn,2,1,"div",13)(17,jn,16,15,"div",14)(18,Vn,1,7,"app-check-in-boarding-pass-modal",15)(19,G
1n,1,6,"app-check-in-undo-modal",16),n.k0s(),n.DNE(20,Ln,1,7,"ng-template",null,0,n.C5r)(22,Fn,1,1,"ng-template",null,1,n.C5r)(24,Un,1,1,"ng-template",null,2,n.C5r)),2&o&&(n.R7$(5),n.JRh(n.bMT(6,10,"MANAGE_LABEL_BOARDING-PASSES-TITLE")),n.R7$(3),n.SpI(" ",n.bMT(9,12,"MANAGE_LABEL_BOARDING-PASSES-DESCRIPTION")," "),n.R7$(3),n.Y8G("src",n.i5U(12,14,a.journeyImage,n.lJ4(17,pn)),n.B4B),n.R7$(2),n.Y8G("ngIf",a.currentJourney),n.R7$(),n.Y8G("ngIf",a.displayPassengerNotification&&!a.hasTouristTaxPending),n.R7$(),n.Y8G("ngIf",a.standBy),n.R7$(),n.Y8G("ngIf",a.hasTouristTaxPending),n.R7$(),n.Y8G("ngIf",a.checkInJourney&&a.checkInJourney.passengers.length>0),n.R7$(),n.Y8G("ngIf",a.boardingPassModalData&&(null==a.boardingPassModalData||null==a.boardingPassModalData.boardingPassesToRetrieve?null:a.boardingPassModalData.boardingPassesToRetrieve.length)>0),n.R7$(),n.Y8G("ngIf",a.checkInUndo))},dependencies:[u.YU,u.Sq,u.bT,u.T3,B.O,cn.n,ln.V,dn.C,j.u,u.PV,V.I,gn.n,hn.A],styles:[".download-card-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;background-color:var(--bg4);height:200px}.download-card-header-info[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%;padding:30px 40px 45px}.download-card-header-info[_ngcontent-%COMP%]   .qr-icon[_ngcontent-%COMP%]{color:var(--vg4);font-size:30px}@media screen and (max-width:720px){.download-card-header-info[_ngcontent-%COMP%]   .qr-icon[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:1240px){.download-card-header-info[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}}@media screen and (max-width:720px){.download-card-header-info[_ngcontent-%COMP%]{padding:20px 25px}}.download-card-header-image[_ngcontent-%COMP%]{flex:0 0 50%}.download-card-header-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%}@media screen and (max-width:1240px){.download-card-header-image[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:991px){.download-card-header[_ngcontent-%COMP%]{height:auto}}.download-card-body[_ngcontent-%COMP%]{padding:0 40px 30px;border-top:1px solid var(--gr20)}.download-card-body[_ngcontent-%COMP%]   .viva-btn.big[_ngcontent-%COMP%]{width:280px}@media screen and (max-width:720px){.download-card-body[_ngcontent-%COMP%]{padding:20px}}.passenger-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;height:60px}.passenger-row[_ngcontent-%COMP%]   .qr-icon[_ngcontent-%COMP%]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border:2px solid var(--bg4);border-radius:4px;background-color:var(--wh1);cursor:pointer}.passenger-row[_ngcontent-%COMP%]   .qr-icon[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{font-size:15px;color:var(--bg4)}.passenger-row[_ngcontent-%COMP%]   .qr-icon.warning-icon[_ngcontent-%COMP%]{border:none;cursor:default}.passenger-row[_ngcontent-%COMP%]   .qr-icon.warning-icon[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:var(--sc-oy4)}@media screen and (max-width:720px){.passenger-row[_ngcontent-%COMP%]   .qr-icon[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{font-size:15px}}.light[_ngcontent-%COMP%]{color:var(--wh1)}.far.fa-qrcode[_ngcontent-%COMP%]{display:none}viva-button[_ngcontent-%COMP%]{display:none}.fas.fa-qrcode[_ngcontent-%COMP%]{display:none}.far.fa-qrcode[_ngcontent-%COMP%]{display:flex}.viva-card[_ngcontent-%COMP%]{border-radius:16px;box-shadow:none!important}.download-card-header[_ngcontent-%COMP%]{height:206px}@media screen and (max-width:720px){.download-card-header[_ngcontent-%COMP%]{height:121px}.download-card-header[_ngcontent-%COMP%]   .h3[_ngcontent-%COMP%]{font-size:22px;line-height:140%}.download-card-header[_ngcontent-%COMP%]   .regular-text[_ngcontent-%COMP%]{font-size:12px}}.download-card-header-info[_ngcontent-%COMP%]{background-color:var(--bgsa);padding:32px!important;max-width:330px}@media screen and (max-width:720px){.download-card-header-info[_ngcontent-%COMP%]{width:100%;max-width:unset;padding:24px!important}}.download-card-header-image[_ngcontent-%COMP%]{flex:1;display:flex!important}@media screen and (max-width:720px){.download-card-header-image[_ngcontent-%COMP%]{display:none!important}}.h3[_ngcontent-%COMP%]{font-weight:600;margin-bottom:8px!important}.regular-text[_ngcontent-%COMP%]{font-size:14px;font-family:Axiforma,Arial,sans-serif}.download-card-body[_ngcontent-%COMP%]{padding:24px!important}.passenger-row[_ngcontent-%COMP%]{height:40px}.qr-icon[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;border:1px solid var(--tadt)}.qr-icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:12px;padding:2px}hr[_ngcontent-%COMP%]{margin:24px 0!important;display:block!important}.title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;line-height:140%;color:var(--tde)}@media screen and (max-width:720px){.buttons[_ngcontent-%COMP%]{flex-direction:column!important;gap:24px}}.buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:none!important}.buttons[_ngcontent-%COMP%]   viva-button[_ngcontent-%COMP%]{display:block}@media screen and (max-width:720px){.buttons[_ngcontent-%COMP%]   viva-button[_ngcontent-%COMP%]{width:100%;margin:0!important}.buttons[_ngcontent-%COMP%]   viva-button[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{justify-content:center}}.buttons[_ngcontent-%COMP%]   viva-button[_ngcontent-%COMP%]:last-of-type{margin-left:16px}.mb-40.d-none.d-md-block[_ngcontent-%COMP%]{display:none!important}"]})}}return t})();function Yn(t,r){if(1&t&&(n.j41(0,"div",15),n.nrm(1,"em",16),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngClass",e.cardPriorityClassWrapper)}}let Jn=(()=>{class t{constructor(e){this.datalayerCheckIn=e}
1ngOnInit(){switch(this.specialCard.paxType){case"Red":this.cardPriorityClass="fas fa-info-circle";break;case"Yellow":this.cardPriorityClass="fas fa-exclamation-triangle";break;case"Green":this.cardPriorityClass="fas fa-info-square"}}get cardPriorityClassWrapper(){return this.cardPriorityClass.replace("fas","far")}static{this.\u0275fac=function(o){return new(o||t)(n.rXU(I.o))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-related-card"]],inputs:{specialCard:"specialCard",journeyKey:"journeyKey"},standalone:!1,decls:19,vars:8,consts:[[1,"viva-card","white","shadow","w-100","related-card"],[1,"top-side"],["class","related-card-icon",4,"ngIf"],[1,"h4","darker","mb-2","mr-20"],[1,"mr-1",3,"ngClass"],[1,"regular-text","gray"],[1,"down-side"],[1,"mt-10","mb-2"],[1,"d-flex","justify-content-end"],[3,"click","callToAction"],[1,"title","darker"],[1,"fas","fa-arrow-right"],["size","small"],["ctaClass","parent-style",3,"click","callToAction"],[1,"far","fa-arrow-right"],[1,"related-card-icon"],[3,"ngClass"]],template:function(o,a){1&o&&(n.j41(0,"div",0)(1,"div",1),n.DNE(2,Yn,2,1,"div",2),n.j41(3,"div",3),n.nrm(4,"em",4),n.EFF(5),n.k0s(),n.j41(6,"div",5),n.EFF(7),n.k0s()(),n.j41(8,"div",6),n.nrm(9,"hr",7),n.j41(10,"div",8)(11,"app-call-to-action",9),n.bIt("click",function(){return a.datalayerCheckIn.clickLinkOfInterest(a.specialCard,a.journeyKey)}),n.j41(12,"div",10),n.EFF(13),n.nrm(14,"em",11),n.k0s()(),n.j41(15,"viva-button-link",12)(16,"app-call-to-action",13),n.bIt("click",function(){return a.datalayerCheckIn.clickLinkOfInterest(a.specialCard,a.journeyKey)}),n.EFF(17),n.nrm(18,"em",14),n.k0s()()()()()),2&o&&(n.R7$(2),n.Y8G("ngIf",a.cardPriorityClassWrapper),n.R7$(2),n.Y8G("ngClass",a.specialCard.iconClass),n.R7$(),n.SpI(" ",a.specialCard.title," "),n.R7$(2),n.SpI(" ",a.specialCard.description," "),n.R7$(4),n.Y8G("callToAction",null==a.specialCard.callToAction?null:a.specialCard.callToAction.fields),n.R7$(2),n.SpI(" ",null==a.specialCard.callToAction||null==a.specialCard.callToAction.fields?null:a.specialCard.callToAction.fields.text," "),n.R7$(3),n.Y8G("callToAction",null==a.specialCard.callToAction?null:a.specialCard.callToAction.fields),n.R7$(),n.SpI(" ",null==a.specialCard.callToAction||null==a.specialCard.callToAction.fields?null:a.specialCard.callToAction.fields.text," "))},dependencies:[u.YU,u.bT,S.j,w.O],styles:[".related-card[_ngcontent-%COMP%]{padding:30px 30px 20px;display:flex;flex-direction:column;justify-content:space-between;min-height:213px;height:100%}.related-card-icon[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.related-card-icon[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{font-size:17px}.related-card[_ngcontent-%COMP%]   .top-side[_ngcontent-%COMP%]{position:relative;flex:0 0 auto}.related-card[_ngcontent-%COMP%]   .down-side[_ngcontent-%COMP%]{flex:0 0 30px}@media screen and (max-width:720px){.related-card[_ngcontent-%COMP%]{padding:20px}}viva-button-link[_ngcontent-%COMP%]{display:none}.viva-card[_ngcontent-%COMP%]{border-radius:16px;border-color:var(--bpr);padding:24px!important;min-height:248px}.viva-card.shadow[_ngcontent-%COMP%]{box-shadow:none!important}.h4[_ngcontent-%COMP%]{font-size:20px;color:var(--tde);font-weight:600;line-height:140%;margin-bottom:16px!important;margin-right:40px!important}.h4[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{color:var(--tde);font-size:30px;padding:5px;transform:translateY(3px)}.related-card-icon[_ngcontent-%COMP%]{font-size:30px;width:40px;height:40px;display:flex;justify-content:center;align-items:center}.related-card-icon[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{font-size:30px}.related-card-icon[_ngcontent-%COMP%]   em.fa-info-circle[_ngcontent-%COMP%]{color:var(--epr)}.related-card-icon[_ngcontent-%COMP%]   em.fa-exclamation-triangle[_ngcontent-%COMP%]{color:var(--wpr)}.related-card-icon[_ngcontent-%COMP%]   em.fa-info-square[_ngcontent-%COMP%]{color:var(--bg4)}.regular-text[_ngcontent-%COMP%]{color:var(--gr50);font-family:Axiforma,Arial,sans-serif;margin-bottom:24px}@media screen and (max-width:720px){.regular-text[_ngcontent-%COMP%]{font-size:16px}}viva-button-link[_ngcontent-%COMP%]{display:block}viva-button-link[_ngcontent-%COMP%]   app-call-to-action[_ngcontent-%COMP%]{display:block}app-call-to-action[_ngcontent-%COMP%]{display:none}hr[_ngcontent-%COMP%]{display:none!important}.down-side[_ngcontent-%COMP%]{flex:0 0 auto}.fa-arrow-right[_ngcontent-%COMP%]{padding:1.5px;font-size:13px}"]})}}return t})();function Xn(t,r){if(1&t&&(n.j41(0,"div",28),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(null==e.paymentsQueryParams?null:e.paymentsQueryParams.pnr)}}function Qn(t,r){1&t&&n.nrm(0,"app-flight-alert",31),2&t&&n.Y8G("alertData",r.$implicit)("noRounded",!1)("noClose",!0)}function zn(t,r){if(1&t&&(n.j41(0,"div",6)(1,"div",7),n.DNE(2,Qn,1,3,"app-flight-alert",29),n.nrm(3,"div",30),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.confirmationAlerts)}}function Hn(t,r){if(1&t&&n.nrm(0,"app-download-card",32),2&t){const e=n.XpG(2);n.Y8G("basketBooking",e.fullBasket.basketBooking)("checkInJourney",e.journeyCheckInData)("paymentsQueryParams",e.paymentsQueryParams)("basketId",e.fullBasket.basket.basketId)("standBy",e.standBy)("checkInUndo",e.checkInUndo)}}function Wn(t,r){1&t&&n.eu8(0)}function Zn(t,r){if(1&t&&(n.qex(0),n.nrm(1,"div",35),n.bVm()),2&t){const e=r.$implicit;n.R7$(),n.Y8G("innerHTML",e.html,n.npT)}}function qn(t,r){if(1&t&&(n.j41(0,"div",33),n.DNE(1,Zn,2,1,"ng-container",34),n.nI1(2,"slice"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",n.brH(2,1,e.checkInPageItems.confirmationIFrames,0,2))}}function ne(t,r){if(1&t&&(n.j41(0,"div",40),n.nrm(1,"app-related-card",41),n.k0s()),2&t){const e=r.$implicit,o=n.XpG(3);n.R7$(),n.Y8G("specialCard",e)("journeyKey",o.journeyCheckInData.journeyKey)}}function ee(t,r){if(1&t&&(n.j41(0,"div",36)(1,"div",7)(2,"div",37),n.nrm(3,"i",38),n.EFF(4),n.nI1(5,"cmsTranslate"),n.k0s()(),n.DNE(6,ne,2,2,"div",39),n.k0s()),2&t){const e=n.XpG(2);n.R7$(4),n.SpI(" ",n.bMT(5,2,"MANAGE_LABEL_TRIP-RELATED-TITLE")," "),n.R7$(2),n.Y8G("ngForOf",e.checkinSpecialCards)}}function te(t,r){if(1&t&&(n.j41(0,"div",44),n.nrm(1,"app-service-card",45),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Y8G("service",e)}}function ae(t,r){if(1&t&&(n.j41(0,"div",42),n.DNE(1,te,2,1,"div",43),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.checkInPageItems.generalCards)}}function oe(t,r){1&t&&n.eu8(0)}function ie(t,r){if(1&t&&(n.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9),n.nrm(5,"em",10)(6,"em",11),n.j41(7,"div",12),n.EFF(8),n.nI1(9,"cmsTranslate"),n.k0s()(),n.DNE(10,Xn,2,1,"div",13),n.k0s()()(),n.nrm(11,"hr",14),n.DNE(12,zn,4,1,"div",15),n.j41(13,"div",16)(14,"div",17),n.DNE(15,Hn,1,6,"app-download-card",18)(16,Wn,1,0,"ng-container",19),n.k0s(),n.j41(17,"div",20),n.DNE(18,qn,3,5,"div",21),n.k0s()(),n.nrm(19,"div",22),n.DNE(20,ee,7,4,"div",23),n.nrm(21,"div",24),n.j41(22,"div",6)(23,"div",7)(24,"div",25),n.nrm(25,"i",26),n.EFF(26),n.nI1(27,"cmsTranslate"),n.k0s()()(),n.DNE(28,ae,2,1,"div",27)(29,oe,1,0,"ng-container",19),n.k0s()),2&t){const e=n.XpG(),o=n.sdS(4);n.R7$(8),n.JRh(n.bMT(9,10,"MANAGE_LABEL_CHECKIN-READY-TITLE")),n.R7$(2),n.Y8G("ngIf",null==e.paymentsQueryParams?null:e.paymentsQueryParams.pnr),n.R7$(2),n.Y8G("ngIf",e.confirmationAlerts&&e.confirmationAlerts.length>0),n.R7$(3),n.Y8G("ngIf",e.journeyCheckInData&&e.fullBasket.basketBooking),n.R7$(),n.Y8G("ngTemplateOutlet",o),n.R7$(2),n.Y8G("ngIf",e.checkInPageItems),n.R7$(2),n.Y8G("ngIf",e.checkinSpecialCards&&(null==e.checkinSpecialCards?null:e.checkinSpecialCards.length)>0),n.R7$(6),n.SpI(" ",n.bMT(27,12,"MANAGE_LABEL_ADD-ONS-TITLE")," "),n.R7$(2),n.Y8G("ngIf",e.checkInPageItems&&(null==e.checkInPageItems||null==e.checkInPageItems.generalCards?null:e.checkInPageItems.generalCards.length)>0),n.R7$(),n.Y8G("ngTemplateOutlet",o)}}function se(t,r){1&t&&n.nrm(0,"app-viva-loader")}function re(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",46),n.bIt("click",function(){l.eBV(e);const a=n.XpG();return l.Njj(a.goToManage())}),n.j41(1,"div",47)(2,"span",48),n.EFF(3),n.nI1(4,"cmsTranslate"),n.k0s()(),n.nrm(5,"div",49),n.k0s(),n.j41(6,"viva-button",50),n.bIt("click",function(){l.eBV(e);const a=n.XpG();return l.Njj(a.goToManage())}),n.j41(7,"div",51)(8,"span"),n.EFF(9),n.nI1(10,"cmsTranslate"),n.k0s()()()}2&t&&(n.R7$(3),n.JRh(n.bMT(4,4,"BOOKER_ACTION_MANAGE-RESERVATION")),n.R7$(3),n.HbH("w-100"),n.R7$(3),n.JRh(n.bMT(10,6,"BOOKER_ACTION_MANAGE-RESERVATION")))}const ce=[{path:"",component:(()=>{class t{constructor(e,o,a,c,s,O,P,x,A,T,E){this.flightAlertsSvc=e,this.basket=o,this.route=a,this.router=c,this.checkInService=s,this.location=O,this.datalayerCheckIn=P,this.cmsConfig=x,this.authSvc=A,this.datalayerBookingSvc=T,this.npsQualtricsService=E,this.isLoading=!0,this.onBasketSubscription=y.yU.EMPTY,this.standBy=!1,this.checkInUndo=!1,this.hasSmileAndFly=!1,this.isLoggedIn=!1,this.onUserAccountSubscription=y.yU.EMPTY,this.subscriptions=new y.yU,this.smileAndFlyModalRules=this.cmsConfig._cmsConfig.bookingSettings?.smileAndFlyModalRules||null}ngOnInit(){this.loadBasketData(),this.loadAccountData()}ngOnDestroy(){this.onBasketSubscription.closed||this.onBasketSubscription.unsubscribe(),this.onUserAccountSubscription.closed||this.onUserAccountSubscription.unsubscribe(),this.subscriptions.unsubscribe()}loadBasketData(){var e=this;return(0,f.A)(function*(){e.isLoading=!0;const o=e.route.snapshot.queryParamMap,a=e.location.getState();e.onBasketSubscription=e.basket.fullBasket$.subscribe(function(){var c=(0,f.A)(function*(s){if(s&&s?.basket&&s?.basketBooking&&s?.basket?.basketId)if(e.fullBasket=s,e.setQueryParams(),a.fromHazMat&&e.fullBasket.basketBooking&&!e.journeyCheckInData&&e.fullBasket.basket)try{if(e.fullBasket.basket?.customFields?.checkInPassengers?.length){const O=e.fullBasket.basket?.customFields?.checkInPassengers[0].journeyKey;e.router.navigate([],{relativeTo:e.route,queryParams:{pnr:e.paymentsQueryParams?.pnr,lastName:e.paymentsQueryParams?.lastName,journeyKey:O},queryParamsHandling:"merge"}),e.getCheckInStatusData(e.fullBasket.basket.basketId,O),e.npsQualtricsService.checkInNPS(e.fullBasket)}else e.goToLandingPage()}catch(O){e.goToLandingPage(),C.cA.production||console.error(O)}else if(!a.fromHazMat&&o.has("pnr")&&(o.has("lastName")||o.has("email"))&&o.has("journeyKey")){const O=o.get("journeyKey");e.getCheckInStatusData(e.fullBasket.basket.basketId,O)}else e.goToLandingPage()});return function(s){return c.apply(this,arguments)}}())})()}getCheckInStatusData(e,o){var a=this;if(e){const c=this.fullBasket.basketBooking.journeys?.find(s=>
1s?.key===o);c&&(this.checkInUndo=this.fullBasket.basketBooking.rules.find(s=>s.type===g._z.UndoCheckin)?.isEnabled&&c?.rules?.find(s=>s?.type===g._z.UndoCheckin)?.isEnabled),this.checkInService.getCheckInStatus(e).subscribe(function(){var s=(0,f.A)(function*(O){if(a.journeyCheckInData=O.journeys.find(P=>P.journeyKey===o),a.standBy=!!a.journeyCheckInData.notifications.find(P=>"Standby"===P.code),a.journeyCheckInData?.notifications?.length&&a.standBy){const P=a.fullBasket.basketBooking.journeys.findIndex(x=>x.key===a.journeyCheckInData.journeyKey);a.datalayerCheckIn.warningBanner(a.fullBasket.basketBooking,"check_in_stand_by",P)}a.isLoading=!1,a.datalayerCheckIn.viewCheckInStep(a.fullBasket.basketBooking,3),a.datalayerCheckIn.checkInCompleted(a.fullBasket,a.journeyCheckInData),a.journeyCheckInData?.passengers.filter(P=>P.status===_.al.CHECKEDIN).length>0?(a.checkInPageItems=yield(0,p.s)(a.checkInService.checkInLandingPageItems),a.setSpecialCardsData(),a.confirmationAlerts=[],a.journeyCheckInData.notifications&&a.journeyCheckInData.notifications.length>0&&(yield a.flightAlertsSvc.ready,a.journeyCheckInData.notifications.forEach(P=>{a.confirmationAlerts.push(a.flightAlertsSvc.getAlert(P.code))}))):a.goToLandingPage(),a.isLoading||a.basket.setShowSmileAndFlyInvitationModal(a.fullBasket.basketBooking,a.smileAndFlyModalRules)&&a.datalayerBookingSvc.smileAndFlyInvitationModal("check-in","view_modal",a.hasSmileAndFly)});return function(O){return s.apply(this,arguments)}}())}}goToLandingPage(){this.router.navigate(["check-in"],{queryParams:{pnr:this.paymentsQueryParams.pnr,lastName:this.paymentsQueryParams.lastName}})}setQueryParams(){if(this.fullBasket?.basket){const e=this.route.snapshot.queryParamMap;let o=e.get("lastName");!e.has("lastName")&&this.fullBasket.basket.travel?.passengers&&this.fullBasket.basket?.travel?.passengers.length>0&&this.fullBasket.basket.travel.passengers.every(a=>!a.lastName||(o=a.lastName,!1)),this.paymentsQueryParams={pnr:this.fullBasket?.basketBooking?.pnr,lastName:o,language:this.fullBasket.basket?.language}}}setSpecialCardsData(){const e=this.fullBasket.basketBooking.journeys.find(o=>o.key===this.journeyCheckInData.journeyKey);if(this.checkinSpecialCards=[],e){this.checkInPageItems.specialCards.forEach(s=>{s.destination||s.originCity&&s.destinationCity?(s.originCity&&s.destinationCity&&(s.originCity.includes(e?.origin?.countryCode)||s.originCity.includes(e?.origin?.code))&&(s.destinationCity.includes(e?.destination?.countryCode)||s.destinationCity.includes(e?.destination?.code))||s.destination&&(s.destination.includes(e?.destination?.countryCode)||s.destination.includes(e?.destination?.code)))&&this.checkinSpecialCards.push(s):this.checkinSpecialCards.push(s)});const o=this.checkinSpecialCards.filter(s=>"Red"===s.paxType),a=this.checkinSpecialCards.filter(s=>"Yellow"===s.paxType),c=this.checkinSpecialCards.filter(s=>"Green"===s.paxType);this.checkinSpecialCards=o.concat(a).concat(c).concat(this.checkinSpecialCards.filter(s=>!s.paxType))}}goToManage(){this.paymentsQueryParams?this.router.navigate(["manage","trip-details"],{queryParams:{pnr:this.paymentsQueryParams?.pnr,lastName:this.paymentsQueryParams?.lastName}}):this.router.navigate([""],{})}loadAccountData(){this.onUserAccountSubscription=this.authSvc.userAccountData$.subscribe(e=>{e&&(this.hasSmileAndFly=!!this.authSvc.getActiveSmileAndFlyAffiliation(e),this.isLoggedIn=!0)})}static{this.\u0275fac=function(o){return new(o||t)(n.rXU(b.b),n.rXU(m.S),n.rXU(d.nX),n.rXU(d.Ix),n.rXU(h.D),n.rXU(k.aZ),n.rXU(I.o),n.rXU(L.R),n.rXU(N.u),n.rXU(F.q),n.rXU(K.R))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-check-in-confirmation"]],standalone:!1,decls:7,vars:5,consts:[["loader",""],["backBtn",""],["class","container check-in-confirmation-container",4,"ngIf","ngIfElse"],[3,"basketBooking"],[3,"hasSmileAndFly","isLoggedIn"],[1,"container","check-in-confirmation-container"],[1,"row"],[1,"col-12"],[1,"check-in-confirmation-header"],[1,"d-flex","align-items-center"],[1,"fas","fa-check-circle","check"],[1,"far","fa-check-circle","check"],[1,"h3","dark"],["class","h3 dark pnr",4,"ngIf"],[1,"mt-md-4","mb-md-40","my-3"],["class","row",4,"ngIf"],[1,"row","custom-row"],[1,"col-12","col-lg-8"],[3,"basketBooking","checkInJourney","paymentsQueryParams","basketId","standBy","checkInUndo",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"col-4","d-none","d-lg-block"],["class","sticky-ads",4,"ngIf"],[1,"mb-40"],["class","row related-container",4,"ngIf"],[1,"mb-40","separator"],[1,"h3","dar
1k","mb-3","mb-md-40","add-ons"],[1,"far","fa-plus-circle"],["class","row service-card-container",4,"ngIf"],[1,"h3","dark","pnr"],[3,"alertData","noRounded","noClose",4,"ngFor","ngForOf"],[1,"mb-3"],[3,"alertData","noRounded","noClose"],[3,"basketBooking","checkInJourney","paymentsQueryParams","basketId","standBy","checkInUndo"],[1,"sticky-ads"],[4,"ngFor","ngForOf"],[1,"mb-3",3,"innerHTML"],[1,"row","related-container"],[1,"h3","dark","mb-3","mb-md-40"],[1,"far","fa-plane-alt"],["class","col-12 col-md-6 col-xl-4 mb-3",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-xl-4","mb-3"],[3,"specialCard","journeyKey"],[1,"row","service-card-container"],["class","col-lg-3 service-card",4,"ngFor","ngForOf"],[1,"col-lg-3","service-card"],[3,"service"],[1,"viva-btn","tertiary","light","mt-20",3,"click"],[1,"content","d-flex","justify-content-center"],[1,"title","px-10","mx-1"],[1,"line"],["btnStyle","secondary","size","small",3,"click"],[1,"content"]],template:function(o,a){if(1&o&&(n.DNE(0,ie,30,14,"div",2)(1,se,1,0,"ng-template",null,0,n.C5r)(3,re,11,8,"ng-template",null,1,n.C5r),n.nrm(5,"app-change-user-modal",3)(6,"app-smile-and-fly-invitation-modal",4)),2&o){const c=n.sdS(2);n.Y8G("ngIf",!a.isLoading)("ngIfElse",c),n.R7$(5),n.Y8G("basketBooking",null==a.fullBasket?null:a.fullBasket.basketBooking),n.R7$(),n.Y8G("hasSmileAndFly",a.hasSmileAndFly)("isLoggedIn",a.isLoggedIn)}},dependencies:[u.Sq,u.bT,u.T3,B.O,Q,z.J,H.q,W.K,j.u,$n,Jn,u.P9,V.I],styles:[".check-in-confirmation-container[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.check-in-confirmation-container[_ngcontent-%COMP%]   .tertiary[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--bg6)}.check-in-confirmation-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.check-in-confirmation-header[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]{color:var(--vg4);font-size:30px;margin-right:15px}@media screen and (max-width:991px){.service-card-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;overflow-x:auto;width:100%;position:relative}.service-card-container[_ngcontent-%COMP%]   .service-card[_ngcontent-%COMP%]{max-width:287px;width:100%;flex:0 0 auto}}.far[_ngcontent-%COMP%]{display:none}viva-button[_ngcontent-%COMP%]{display:none}.fa-plane-alt[_ngcontent-%COMP%]{display:none}.theme-VRD[_nghost-%COMP%]   .check-in-confirmation-header[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .check-in-confirmation-header[_ngcontent-%COMP%]{margin-bottom:40px}@media screen and (max-width:720px){.theme-VRD[_nghost-%COMP%]   .check-in-confirmation-header[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .check-in-confirmation-header[_ngcontent-%COMP%]{margin-bottom:32px}}.theme-VRD[_nghost-%COMP%]   .h3[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .h3[_ngcontent-%COMP%]{color:var(--tadt);font-weight:600}.theme-VRD[_nghost-%COMP%]   .h3[_ngcontent-%COMP%]:has(.fa-plane-alt), .theme-VRD   [_nghost-%COMP%]   .h3[_ngcontent-%COMP%]:has(.fa-plane-alt){margin-bottom:24px!important}@media screen and (max-width:720px){.theme-VRD[_nghost-%COMP%]   .h3[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .h3[_ngcontent-%COMP%]{font-size:24px}}.theme-VRD[_nghost-%COMP%]   .fas[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .fas[_ngcontent-%COMP%]{display:none}.theme-VRD[_nghost-%COMP%]   .far[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .far[_ngcontent-%COMP%]{display:flex}.theme-VRD[_nghost-%COMP%]   .check[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .check[_ngcontent-%COMP%]{font-size:20px;padding:1px;color:var(--bt);align-self:flex-start;margin-top:2px;margin-right:8px!important}@media screen and (max-width:720px){.theme-VRD[_nghost-%COMP%]   .check[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .check[_ngcontent-%COMP%]{font-size:13px;padding:1.5px;margin-top:6px}}.theme-VRD[_nghost-%COMP%]   .pnr[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .pnr[_ngcontent-%COMP%]{font-size:24px}@media screen and (max-width:720px){.theme-VRD[_nghost-%COMP%]   .pnr[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .pnr[_ngcontent-%COMP%]{font-size:18px}}.theme-VRD[_nghost-%COMP%]   hr[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   hr[_ngcontent-%COMP%]{display:none!important}.theme-VRD[_nghost-%COMP%]   .sticky-ads[_ngcontent-%COMP%]     img, .theme-VRD   [_nghost-%COMP%]   .sticky-ads[_ngcontent-%COMP%]     img{border-radius:16px}.theme-VRD[_nghost-%COMP%]   button[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{display:none}.theme-VRD[_nghost-%COMP%]   viva-button[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   viva-button[_ngcontent-%COMP%]{display:flex;margin-top:24px;width:fit-content}@media screen and (max-width:720px){.theme-VRD[_nghost-%COMP%]   viva-button[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   viva-button[_ngcontent-%COMP%]{width:100%}.theme-VRD[_nghost-%COMP%]   viva-button[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   viva-button[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{justify-content:center}}.theme-VRD[_nghost-%COMP%]   .fa-plane-alt[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .fa-plane-alt[_ngcontent-%COMP%], .theme-VRD[_nghost-%COMP%]   .fa-plus-circle[_ng
1content-%COMP%], .theme-VRD   [_nghost-%COMP%]   .fa-plus-circle[_ngcontent-%COMP%]{display:inline-flex;margin-right:4px;font-size:20px;padding:2px;transform:translateY(-2px);max-width:24px}@media screen and (max-width:720px){.theme-VRD[_nghost-%COMP%]   .fa-plane-alt[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .fa-plane-alt[_ngcontent-%COMP%], .theme-VRD[_nghost-%COMP%]   .fa-plus-circle[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .fa-plus-circle[_ngcontent-%COMP%]{font-size:13px;padding:1.5px}}.theme-VRD[_nghost-%COMP%]   .separator[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .separator[_ngcontent-%COMP%]{margin-bottom:20px!important}.theme-VRD[_nghost-%COMP%]   .add-ons[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .add-ons[_ngcontent-%COMP%]{margin-bottom:24px!important}.theme-VRD[_nghost-%COMP%]   .service-card-container[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .service-card-container[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}@media screen and (max-width:1024px){.theme-VRD[_nghost-%COMP%]   .service-card-container[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .service-card-container[_ngcontent-%COMP%]{row-gap:24px}}@media screen and (max-width:991px){.theme-VRD[_nghost-%COMP%]   .service-card-container[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .service-card-container[_ngcontent-%COMP%]{flex-wrap:wrap;width:auto}}.theme-VRD[_nghost-%COMP%]   .service-card-container[_ngcontent-%COMP%]   .col-lg-3[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .service-card-container[_ngcontent-%COMP%]   .col-lg-3[_ngcontent-%COMP%]{padding-left:12px!important;padding-right:12px!important}@media screen and (max-width:1024px){.theme-VRD[_nghost-%COMP%]   .service-card[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .service-card[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%}}@media screen and (max-width:720px){.theme-VRD[_nghost-%COMP%]   .service-card[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .service-card[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%}}.theme-VRD[_nghost-%COMP%]   .related-container[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .related-container[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.theme-VRD[_nghost-%COMP%]   .related-container[_ngcontent-%COMP%]   .col-12[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .related-container[_ngcontent-%COMP%]   .col-12[_ngcontent-%COMP%]{padding:0 12px}.theme-VRD[_nghost-%COMP%]   .spacing[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .spacing[_ngcontent-%COMP%]{margin-left:-20px;margin-right:-20px}@media screen and (max-width:1024px){.theme-VRD[_nghost-%COMP%]   .spacing[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .spacing[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}}.theme-VRD[_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]{padding:0 20px}@media screen and (max-width:1024px){.theme-VRD[_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]{padding:0 12px}}.theme-VRD[_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]:first-child, .theme-VRD   [_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]:first-child{flex:1}@media screen and (max-width:991px){.theme-VRD[_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]:first-child, .theme-VRD   [_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]:first-child{flex:0 0 100%;max-width:100%}}.theme-VRD[_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]:last-child, .theme-VRD   [_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]:last-child{flex:1}@media screen and (max-width:1024px){.theme-VRD[_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]:last-child, .theme-VRD   [_nghost-%COMP%]   .spacing[_ngcontent-%COMP%] > [class*=col-][_ngcontent-%COMP%]:last-child{min-width:368px}}@media screen and (max-width:720px){.theme-VRD[_nghost-%COMP%]   .mb-40[_ngcontent-%COMP%], .theme-VRD   [_nghost-%COMP%]   .mb-40[_ngcontent-%COMP%]{margin-bottom:32px!important}}"]})}}return t})()}];let le=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=l.G2t({imports:[v.iI.forChild(ce),v.iI]})}}return t})();var de=i(43329),ge=i(44996),he=i(48857),pe=i(17341),me=i(73761),ue=i(27687),_e=i(60345),fe=i(76567),Ce=i(29985),Pe=i(61231),ve=i(16271);let ye=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=l.G2t({imports:[u.MD,le,de.b,ge.o,he.o,pe.v,me.E,ue.k,_e.d,fe.J,Ce.V,Pe.x,ve.E]})}}return t})()},3194(D,M,i){i.d(M,{i:()=>y});var u=i(72200),v=i(2615),f=i(73664);let y=(()=>{class p{static{this.\u0275fac=function(g){return new(g||p)}}static{this.\u0275mod=f.$C({type:p})}static{this.\u0275inj=v.G2t({imports:[u.MD]})}}return p})()},70419(D,M,i){i.d(M,{LG:()=>y,ZU:()=>_,_7:()=>p,nc:()=>C});var u=i(45312),v=i(79328),f=i(77074);class y{constructor(n,l,b){this.fb=n,this.passengers=l,this.journeys=b}generateServicesFormGroup(n){const l=this.fb.group({});
1return n&&Array.isArray(n)&&n.forEach(b=>{const m=this.getServiceType(b);if(m){const d=this.fb.group({});switch(d.registerControl("type",this.fb.control(m)),m){case p.PerBooking:d.registerControl("ssrCodes",this.fb.array([this.fb.control(null)]));break;case p.PerBookingPerPassenger:this.passengers.forEach(h=>{h.passengerKey&&h.passengerTypeCode!==v.ZE.BABY&&d.registerControl(h.passengerKey,this.fb.array([this.fb.control(null)]))});break;case p.PerJourney:this.journeys.forEach(h=>{d.registerControl(h.journeyKey,this.fb.array([this.fb.control(null)]))});break;case p.PerJourneyPerPassenger:this.journeys.forEach(h=>{const k=this.fb.group({});this.passengers.forEach(I=>{I.passengerKey&&I.passengerTypeCode!==v.ZE.BABY&&k.registerControl(I.passengerKey,this.fb.array([this.fb.control(null)]))}),d.registerControl(h.journeyKey,k)});break;default:return void(u.cA.production||console.warn("::ServicesForm::","Unimplemented form type found!! "+m))}l.addControl(b.code,d)}}),l}getServiceType(n){const l=n.perPassengerSelection||!1;switch(n.selectionType){case f.cI.PerBooking:return l?p.PerBookingPerPassenger:p.PerBooking;case f.cI.PerJourney:return l?p.PerJourneyPerPassenger:p.PerJourney;case f.cI.PerSegment:return l?p.PerSegmentPerPassenger:p.PerSegment;default:return void(u.cA.production||console.warn("::ServicesForm::","Unimplemented selection type found!! "+n.selectionType))}}}var p=function(g){return g.PerJourney="PerJourney",g.PerJourneyPerPassenger="PerJourneyPerPassenger",g.PerSegment="PerSegment",g.PerSegmentPerPassenger="PerSegmentPerPassenger",g.PerBooking="PerBooking",g.PerBookingPerPassenger="PerBookingPerPassenger",g}(p||{}),_=function(g){return g.PersonalItem="PersonalItem",g.CarryOnBaggage="CarryOnBaggage",g.CheckedBaggage="CheckedBaggage",g.UpgradeBaggage="UpgradeBaggage",g.SpecialBaggage="SpecialBaggage",g}(_||{}),C=function(g){return g.CHECKEDBAGALLOWANCE="CHECKEDBAGALLOWANCE",g.HANDBAGALLOWANCE="HANDBAGALLOWANCE",g}(C||{})},98313(D,M,i){i.d(M,{r:()=>C});var u=i(72200),v=i(60345),f=i(16271),y=i(48857),p=i(2615),_=i(73664);let C=(()=>{class g{static{this.\u0275fac=function(b){return new(b||g)}}static{this.\u0275mod=_.$C({type:g})}static{this.\u0275inj=p.G2t({imports:[u.MD,v.d,f.E,y.o]})}}return g})()},12573(D,M,i){i.d(M,{k:()=>_});var u=i(72200),v=i(79909),f=i(60345),y=i(2615),p=i(73664);let _=(()=>{class C{static{this.\u0275fac=function(l){return new(l||C)}}static{this.\u0275mod=p.$C({type:C})}static{this.\u0275inj=y.G2t({imports:[u.MD,v.B,f.d]})}}return C})()},25478(D,M,i){i.d(M,{P:()=>n});var u=i(74523),v=i(92771),f=i(93207),y=i(95398),p=i(2615),_=i(13845),C=i(61310),g=i(51242);let n=(()=>{class l{constructor(m,d,h){this.contentful=m,this.flightStations=d,this.cmsConfig=h,this.carrierJsonData=[],this.$serviceReady=new v.m(1),this.init()}init(){return new Promise((m,d)=>{try{this.carrierJsonData.length?(m(),this.$serviceReady.closed||(this.$serviceReady.next(),this.$serviceReady.complete())):this.getCarrierJsonData().then(()=>{m(),this.$serviceReady.closed||(this.$serviceReady.next(),this.$serviceReady.complete())})}catch(h){d(h)}})}getCarrierJsonData(){var m=this;return(0,u.A)(function*(){const d=yield m.contentful.getEntries({content_type:"jsonObject",select:"sys.id,fields","fields.title":"OperatingCarrier"});d&&d?.items?.length&&d?.items[0]?.fields&&(0,y.EI)(d?.items[0]?.fields?.json)&&(m.carrierJsonData=d?.items[0]?.fields.json)})()}getCarrierDataByCode(m,d=!0){if(m){const h=this.carrierJsonData?.find(k=>k?.code===m);return d?h||this.carrierJsonData?.find(k=>"_"===k?.code):h}}routesHaveExternalOperator(m){const d=m?.find(h=>!!this.getExternalOperatorInStation(h?.destination?.code)||!!this.getExternalOperatorInStation(h?.origin?.code));return d?this.getExternalOperatorInStation(d?.destination?.code)||this.getExternalOperatorInStation(d?.origin?.code):null}getExternalOperatorInStation(m,d="VB"){return this.flightStations._stations?.find(h=>h?.code===m&&h.operatedBy?.find(k=>k!==d))?.operatedBy?.find(h=>h!==d)||null}getStationOperators(m){return this.flightStations?._stations?.find(d=>d?.code===m)?.operatedBy||[]}getInterlineCarrierRecord(m,d){const h=this.getInterlineProvider(d);return h?m?.recordCodes?.find(I=>h?.recordSystemCodes?.includes(I?.bookingSystemCode))||{recordCode:null,owningSystemCode:null,bookingSystemCode:null}:null}getInterlineProvider(m){return(this.cmsConfig._cmsConfig.globalSettings?.interlineOperatingCarriers||[])?.find(h=>h.carrierCode===m)||null}get ready(){return(0,f.s)(this.$serviceReady.asObservable())}static{this.\u0275fac=function(d){return new(d||l)(p.KVO(_.w),p.KVO(C.r),p.KVO(g.R))}}static{this.\u0275prov=p.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()}}]);

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.