1"use strict";(self.webpackChunktickets_front_end=self.webpackChunktickets_front_end||[]).push([["default-src_app_components_search-results_services_search-results_service_ts-src_app_shared_c-168148"],{5489(fe,V,c){c.d(V,{Qb:()=>oe});var f=c(81535),F=c(85802),O=c(89079),H=c(1390),W=c(70746),R=c(46822),Q=c(9310),x=c(67374),D=c.n(x),A=c(7673),B=c(21413),K=c(84572),M=c(5964),$=c(88141),e=c(53993),z=c(25558),y=c(31397),Y=c(96354),Z=c(69943),q=c(8412),ee=c(3366),te=c(75002),ne=c(12186),g=c(25869),X=c(93182),E=c(83360),P=c(5690),C=c(47107),se=c(25348),ae=c(74403);const j=(0,W.p)(),J=j.getSelectors(),le=(j.getInitialState(),{activeJourneyLeg:0,accordionConfig:[{isCollapsed:!1,isDisabled:!1},{isCollapsed:!0,isDisabled:!0},{isCollapsed:!0,isDisabled:!0},{isCollapsed:!0,isDisabled:!0}],contentCache:{ids:[],entities:{}},staticFare:null,fareFamilyJSON:null,fareFamilyJSONDesktop:null,isModifyFlow:!1,shownLegacyFares:[],searchQueryParams:null,aemData:null,isMobileOrTabletScreen:!1,modifyTrip:null});let oe=(()=>{class T extends H.jh{constructor(){super(le),this.store=(0,F.WQX)(Q.il),this.apiService=(0,F.WQX)(ee.G),this.headerConfig=(0,F.WQX)(se.H),this.ecomStorage=(0,F.WQX)(te.x),this.searchService=(0,F.WQX)(ne.S),this.breakpointObserver=(0,F.WQX)(f.Q),this.selectStaticFare$=this.select(s=>s.staticFare),this.selectIsMobileOrTabletScreen$=this.select(s=>s.isMobileOrTabletScreen),this.selectAEMData$=this.select(s=>s.aemData),this.selectModifyingTrip$=this.select(s=>s.modifyTrip),this.selectSearchParams$=this.select(s=>s.searchQueryParams&&0!==s.searchQueryParams.size?s.searchQueryParams:null),this.selectGoogleSearchParams$=this.select(this.selectSearchParams$,s=>{if(!s)return null;const a=function re(T){const s={},a=T.toString().split("&");for(const _ of a){const[p,d]=_.split("=");if(!p||!d)continue;const v=decodeURIComponent(d);s[p]=v.match(/^\[(.*)\]$/)?JSON.parse(v):v}return s}(s),_=a[g.D5.SearchParamIds.origin],p=a[g.D5.SearchParamIds.destination],d=a[g.D5.SearchParamIds.date],v=_?.[0],u=p?.[0];if(!(v&&this.isStationCodeFormat(v)&&u&&this.isStationCodeFormat(u)))return null;try{if(!this.areAllValidDates(d))throw new Error("Invalid dates found");const L=a[g.D5.SearchParamIds.boardingTime],U=a[g.D5.SearchParamIds.arrivalTime],_e=d[0]?D()(d?.[0]).startOf("day").format("YYYY-MM-DDTHH:mm:ss"):null,pe=d?.[1]?D()(d?.[1]).startOf("day").format("YYYY-MM-DDTHH:mm:ss"):null,ce=L&&D()(L).isValid?D()(L).format("YYYY-MM-DDTHH:mm:ss"):null,me=U?D()(U).format("YYYY-MM-DDTHH:mm:ss"):null;let G=a[g.D5.SearchParamIds.channel];return G=G||("google-transport-module"===(a[g.D5.SearchParamIds.analyticsCmp]||null)?"google":null),{origin:v,destination:u,departDate:_e,returnDate:pe,dateTime:ce,arrivalDateTime:me,channel:G,campaignId:a[g.D5.SearchParamIds.campaignId]||null}}catch{return{origin:v,destination:u,departDate:null,returnDate:null,dateTime:null,arrivalDateTime:null}}}),this.selectIsGoogleSearch$=this.select(this.store.select((0,C.ek)(0)),this.selectGoogleSearchParams$,(s,a)=>{if(!s&&!a)return null;if(!s&&a){const _=!!(this.isStationCodeFormat(a.origin)&&this.isStationCodeFormat(a.destination)&&a.departDate);return{...a,loaded:!1,invalidateCache:!0,isGoogleSearchValid:_}}if(a&&s){const _=document.referrer,p=window.location.hostname,d=_?new URL(_).hostname:null,v=!!(a.origin&&a.destination&&a.departDate);return a.origin===s.origin.code&&a.destination===s.destination.code&&a.departDate===s.origin.schedule.departureDateTime&&d===p?{...a,loaded:!0,invalidateCache:!1,isGoogleSearchValid:v}:{...a,loaded:!0,invalidateCache:!0,isGoogleSearchValid:v}}return null}),this.selectStatePartnerSearch$=this.select(this.store.select(C.GC),s=>s),this.searchStatus$=this.select(this.store.select(C.iI),this.store.select(C.kI),this.store.select(C.yZ),this.selectIsGoogleSearch$,this.selectStatePartnerSearch$.pipe((0,M.p)(s=>void 0!==s)),(s,a,_,p,d)=>({status:s,journeyLegs:a,journeysError:_,googleSearch:p,statePartnerSearch:d})),this.selectAccordionConfig$=this.select(s=>s.accordionConfig),this.selectActiveJourneyLeg$=this.select(s=>s.activeJourneyLeg),this.selectJourneyLegAccordionConfig=s=>this.select(this.selectAccordionConfig$,a=>a&&a[s]),this.selectJourneyLegs$=this.select(this.store.select(C.kI),s=>s),this.selectJourneyLeg$=s=>this.select(this.selectJourneyLegs$,a=>a&&a[s]?a[s]:null),this.selectJourneyLegOptions$=s=>this.select(this.selectJourneyLegs$,a=>a&&a[s]?a[s].journeyLegOptions:[]),this.selectIsMultiLegBooking$=this.select(this.selectJourneyLegs$,s=>s.length>1),this.selectIsSingleResultSearchJourneyLeg$=s=>this.select(this.selectJourneyLegOptions$(s),a=>a&&1===a.length),this.selectContentCacheState$=this.select(s=>s.contentCache),this.selectContentCacheIds$=this.select(this.selectContentCacheState$,s=>J.selectIds(s)),this.selectContentCacheEntities$=this.select(this.selectContentCacheState$,s=>J.selectEntities(s)),this.selectContentFragment=s=>this.select(this.selectContentCacheEntities$,a=>a[s]),this.selectTrip$=this.select(this.store.select(E.V4),s=>s),this.selectTripJourneyLegs$=this.select(this.store.select(E.wK),s=>s),this.selectFareFamilyJSON$=this.select(s=>s.fareFamilyJSON),this.selectFareFamilyJSONDesktop$=this.select(s=>s.fareFamilyJSONDesktop),this.selectFareFamilyList$=this.select(this.selectFareFamilyJSON$,s=>s&&s.staticFareResponse.fareClassList),this.selectNewFaresFamilies$=this.select(this.selectFareFamilyList$,s=>s?s.filter(a=>a.newFare):[]),this.selectFareRulesDetailsAsArray$=this.select(this.selectFareFamilyJSON$,s=>s&&s.staticFareResponse&&s.staticFareResponse.fareRulesDetails?this.processString(s.staticFareResponse.fareRulesDetails):null),this.selectIsModifyFlow$=this.select(s=>s.isModifyFlow),this.selectRetrieveTripPnrCreationDate$=this.select(this.selectTrip$,s=>s&&s.reservationInfo&&s.reservationInfo.pnrCreationDtTime?s.reservationInfo.pnrCreationDtTime:null),this.selectModifyActiveJourneyLegFareFamily$=this.select(this.selectTripJourneyLegs$,this.selectFareFamilyJSON$,this.selectActiveJourneyLeg$,(s,a,_)=>{if(s&&s[_]&&a){const p=a.staticFareResponse.fareClassList.find(d=>d.fareClass===g.YM.firstClass);if(p)return p.fareClass}return null}),this.selectModifyActiveJourneyLegFareFamilyRule$=this.select(this.selectTripJourneyLegs$,this.selectFareFamilyJSON$,this.selectFareFamilyJSONDesktop$,this.selectActiveJourneyLeg$,this.store.select(C.Kj),this.store.select(C.iY),(s,a,_,p,d,v)=>{if(s&&s[p]&&(a&&a.staticFareResponse||_&&_.staticResponse)){const u=a.staticFareResponse.fareClassList.find(L=>
1L.fareClass===g.YM.firstClass&&!d&&!v);if(u)return{...u}}return null}),this.selectFirstLegacyFareRule$=this.select(this.selectModifyActiveJourneyLegFareFamilyRule$,s=>s?s.oldFareRule:null),this.selectLegacyFareRules$=this.select(this.selectModifyActiveJourneyLegFareFamilyRule$,s=>s?{short:s.classDescription&&s["sub-heading"]?[s.classDescription,s["sub-heading"]]:[],long:s.classDescriptionLong&&s.subHeadingLong?[s.classDescriptionLong,s.subHeadingLong]:[]}:null),this.selectHasLegacyFare$=this.select(this.selectModifyActiveJourneyLegFareFamilyRule$,s=>s),this.selectAlreadyShownLegacyFares$=this.select(s=>s.shownLegacyFares),this.selectIsFareProtectedDate$=this.select(s=>s.isFareProtectedDate),this.selectIsSelfServiceEligible$=this.select(this.store.select(E.V4),s=>s&&s.reservationInfo&&s.reservationInfo.selfServiceEligible?s.reservationInfo.selfServiceEligible:null),this.isAServiceDisruptionModify$=this.select(this.selectIsSelfServiceEligible$,this.selectIsFareProtectedDate$,this.selectIsModifyFlow$,(s,a,_)=>_&&s&&a),this.selectDoesModifyingJourneyLegsHasAcelaFirstClassAccommodation$=this.select(this.selectTrip$,this.selectModifyingTrip$,(s,a)=>s&&a?function ie(T,N){if(!T||!T.journeys?.journeyLegs)return null;if(null==N&&T.journeys?.journeyLegs.length>1)for(let s=0;s<T.journeys?.journeyLegs.length;s++){const a=T.journeys?.journeyLegs[s];for(let _=0;_<a.travelLegs.length;_++){const p=a.travelLegs[_];for(let d=0;d<p.RBD.length;d++)if(p.RBD[d].rbdType===g.YM.firstClass)return!0}}else{const s=T.journeys?.journeyLegs.find(a=>a.journeyLegId===N);for(let a=0;a<s.travelLegs.length;a++){const _=s.travelLegs[a];for(let p=0;p<_.RBD.length;p++)if(_.RBD[p].rbdType===g.YM.firstClass)return!0}}return!1}(s,a.journeyLegId):null),this.selectAcelaFareFamilyActivationDate$=this.select(this.selectAEMData$,s=>s&&s.acelaFareFamiliesActivationDate||null),this.selectIsAnAcelaFirstClassBookedPriorToFareFamilyActivation$=this.select(this.selectRetrieveTripPnrCreationDate$,this.selectDoesModifyingJourneyLegsHasAcelaFirstClassAccommodation$,this.selectAcelaFareFamilyActivationDate$,this.store.select(C.Kj),this.store.select(C.iY),(s,a,_,p,d)=>null==a||null==_||null==s?null:!(!a||p||d)&&(0,ae.qe)(s,_)),this.selectIsFirstClassLegacyFareAlreadyShown$=this.select(this.selectAlreadyShownLegacyFares$,s=>s.includes(g.YM.firstClass)),this.updateAEMData=this.updater((s,a)=>({...s,aemData:a})),this.addContentFragment=this.updater((s,{url:a,res:_})=>{const p=this.getContentFromHTMLString(_.content),d=p.indexOf("<p>"),v=p.indexOf("</p>"),u=p.substring(d,v);return{...s,contentCache:j.addOne({id:a,content:u},s.contentCache)}}),this.updateFareFamilyJSON=this.updater((s,{staticFare:a,desktop:_})=>{if(s.fareFamilyJSON&&s.fareFamilyJSON.staticFareResponse&&_){const p=new Map;a&&a.staticFareResponse&&a.staticFareResponse.fareClassList.forEach(v=>{p.set(v.fareClassCode,v)});const d=s.fareFamilyJSON.staticFareResponse.fareClassList.map(v=>{if(p.has(v.fareClassCode)){const u=p.get(v.fareClassCode);return v.subHeadingLong=u["sub-heading"],{...v,subHeadingLong:u["sub-heading"],classDescriptionLong:u.classDescription}}return v});return{...s,fareFamilyJSON:{...s.fareFamilyJSON,staticFareResponse:{...s.fareFamilyJSON.staticFareResponse,fareClassList:[...d]}}}}return{...s,fareFamilyJSON:{...a}}}),this.setIsModifyFlow=this.updater((s,a)=>({...s,isModifyFlow:a})),this.setAccordionConfig=this.updater((s,a)=>({...s,accordionConfig:a})),this.setAlreadyShownLegacyFares=this.updater((s,a)=>({...s,shownLegacyFares:a})),this.updateAlreadyShownLegacyFares=this.updater((s,a)=>({...s,shownLegacyFares:[...s.shownLegacyFares,a]})),this.updateAccordionState=this.updater((s,{accordionConfig:a,activeJourneyLeg:_})=>({...s,accordionConfig:a,activeJourneyLeg:_})),this.setIsFareProtectedDate=this.updater((s,a)=>({...s,isFareProtectedDate:a})),this.updateQueryParam=this.updater((s,a)=>({...s,searchQueryParams:a})),this.updateIsMobileOrTabletScreen=this.updater((s,a)=>({...s,isMobileOrTabletScreen:a})),this.updateStaticFare=this.updater((s,a)=>({...s,staticFare:a})),this.updateModifyTrip=this.updater((s,a)=>({...s,modifyTrip:a})),this.checkIfModifyFlow=this.effect(s=>s.pipe((0,$.M)(()=>{const a=window.location.href;this.setIsModifyFlow(a.includes("modify-departure.html"))}))),this.updateAccordionConfig=this.effect(s=>s.pipe((0,e.E)(this.selectAccordionConfig$,this.store.select(E.uA)),(0,$.M)(([,a,_])=>{const p=_?.length||0;let d;a.forEach((v,u)=>{p>u?(a[u].isCollapsed=!0,a[u].isDisabled=!1):p===u?(a[u].isCollapsed=!1,a[u].isDisabled=!1,d=u):(a[u].isCollapsed=!0,a[u].isDisabled=!0)}),this.updateAccordionState({accordionConfig:[...a],activeJourneyLeg:d}),window.scroll(0,0)}
1))),this.updateActiveJourneyLeg=this.effect(s=>s.pipe((0,e.E)(this.selectAccordionConfig$),(0,$.M)(([a,_])=>{if(_[a]&&_[a].isCollapsed){const p=_.map((d,v)=>v===a?{...d,isCollapsed:!1}:{...d,isCollapsed:!0});this.updateAccordionState({accordionConfig:[...p],activeJourneyLeg:a})}}))),this.fetchContent=this.effect(s=>s.pipe((0,z.n)(a=>this.fetchAEMContent(a).pipe((0,R.Hn)(_=>_&&!_.Error&&this.addContentFragment({url:a,res:_}),_=>console.error(_)))))),this.fetchNewToOldFareFamilyJSON=this.effect(s=>s.pipe((0,y.Z)(a=>{const _=this.ecomStorage.getSessionStorage(g.D5.StorageName.OLD_TO_NEW_FARE,!0);return _?(this.updateFareFamilyJSON({staticFare:_,desktop:!1}),(0,A.of)(_)):this.getNewToOldFareFamilyJSON(a).pipe((0,R.Hn)(p=>{p&&this.updateFareFamilyJSON({staticFare:p,desktop:!1}),this.ecomStorage.updateSessionStorage(g.D5.StorageName.OLD_TO_NEW_FARE,JSON.stringify(p))},()=>{}))}))),this.fetchNewToOldFareFamilyDesktopJSON=this.effect(s=>s.pipe((0,y.Z)(a=>{const _=this.ecomStorage.getSessionStorage(g.D5.StorageName.OLD_TO_NEW_FARE_DESKTOP,!0);if(_)return this.updateFareFamilyJSON({staticFare:_,desktop:!0}),(0,A.of)(_);const p=a.replace(".json",".desktop.json");return this.getNewToOldFareFamilyJSON(p).pipe((0,R.Hn)(d=>{d&&this.updateFareFamilyJSON({staticFare:d,desktop:!0}),this.ecomStorage.updateSessionStorage(g.D5.StorageName.OLD_TO_NEW_FARE_DESKTOP,JSON.stringify(d))},()=>{}))}))),this.pushNewShownLegacyFares=this.effect(s=>s.pipe((0,e.E)(this.selectAlreadyShownLegacyFares$),(0,Y.T)(([a,_])=>{if(!_.includes(a)){this.updateAlreadyShownLegacyFares(a);const p=[..._,a];this.ecomStorage.updateSessionStorage(g.D5.StorageName.FARE_CHANGE_FARES_SHOWN,JSON.stringify(p))}}))),this.fetchIsFareProtectedDate=this.effect(s=>s.pipe((0,$.M)(()=>{const a=this.ecomStorage.getSessionStorage(g.D5.StorageName.IS_FARE_PROTECTED_DATE,!0);this.setIsFareProtectedDate(!!a)}))),this.fetchGoogleSearch=this.effect(s=>s.pipe((0,e.E)(this.selectAEMData$,this.store.select(E.dr),this.store.select(E.m)),(0,$.M)(([{headers:a,journeyLegRequests:_},p,d,v])=>{const u=new q.p(Z.E.newJourneyRequest("DOLLARS",{type:1===_.length?g.D5.JourneyRequest.Type.ONE_WAY:g.D5.JourneyRequest.Type.ROUND_TRIP,journeyLegRequests:_},v,d));u.journeyRequest.xDelay=p.xDelayInMinutes,this.store.dispatch(new P.Fd({headers:a??null,url:p?p.journeySolutionOptionUrl:"",body:u,redirect:!1,maxSegments:p?p.maxSegments:"",tooCloseToDeparture:p&&p.tooCloseToDeparture&&!isNaN(Number(p.tooCloseToDeparture))?p.tooCloseToDeparture:g.YM.DEFAULT_TOO_CLOSE_DEPARTURE,isGlobalError:!1,searchSource:g.D5.StorageName.FAREFINDER}))}))),this.focusAccordion=new B.B,this.checkForURLParams(),this.store.select(C.oD).pipe((0,O.pQ)()).subscribe(()=>{this.store.dispatch(X.oZ()),this.store.dispatch(X.Bm())}),this.breakpointObserver.observe(["(max-width: 991px)"]).pipe((0,O.pQ)(),(0,$.M)(s=>this.updateIsMobileOrTabletScreen(!!s.matches))).subscribe(),(0,K.z)([this.selectIsModifyFlow$,this.selectAEMData$]).pipe((0,M.p)(([s,a])=>!(null==s||null==a)),(0,M.p)(([s])=>s),(0,O.pQ)()).subscribe(([,s])=>{const a=this.ecomStorage.getSessionStorage(g.D5.StorageName.MODIFYDATETIME,!0);this.updateModifyTrip(a),this.fetchNewToOldFareFamilyJSON(s.oldToNewFareUrl||""),this.fetchNewToOldFareFamilyDesktopJSON(s.oldToNewFareUrl),this.populateShownFaresCache()})}populateShownFaresCache(){const s=this.ecomStorage.getSessionStorage(g.D5.StorageName.FARE_CHANGE_FARES_SHOWN,!0);s&&this.setAlreadyShownLegacyFares(s)}redirectToHomePage(s){if(s){const a=this.ecomStorage.getSessionStorage(g.D5.StorageName.FAREFINDER,!0);this.ecomStorage.updateSessionStorage(g.D5.StorageName.FAREFINDER,JSON.stringify({...a,error:s}))}window.location.href=g.D5.Routes.Home}doGoogleSearch(s){const a=s.departDate&&s.returnDate?g.D5.JourneyRequest.Type.ROUND_TRIP:g.D5.JourneyRequest.Type.ONE_WAY,_=[{id:"P1",initialType:"adult",type:"F"}];this.updateFarefinderSessionObject(_);const d={headers:null,journeyLegRequests:this.searchService.createJourneyLegRequests(a,s.origin,s.destination,_,s.departDate,s.returnDate)};(s?.channel||s?.campaignId)&&(d.headers={channel:s?.channel,campaignId:s?.campaignId}),this.fetchGoogleSearch(d)}updateFarefinderSessionObject(s){this.ecomStorage.updateSessionStorage(g.D5.StorageName.FAREFINDER,JSON.stringify({data:{passengers:s,promoCode:"",hidePromoCode:"false"}}))}getNewToOldFareFamilyJSON(s){const a=this.headerConfig.headersList();return this.apiService.get(s,a)}storeStationOfFailedSearch(s){s&&this.ecomStorage.updateSessionStorage("thirdPartySearchData",JSON.stringify({origin:s?.origin||"",destination:s?.destination||"",departureDate:s?.departDate||"",returnDate:""}))}updateIsGoogleSearchInGlobalStore(s){this.store.dispatch(new P.ZP(s))}areAllValidDates(s){return!(!s||0===s.length)&&s.every(a=>a?!!D()(a).isValid()||(console.error(a,"NOT A VALID DATE"),!1):(console.error(a,"IS NULLL"),!1))}checkForURLParams(){const s=new URLSearchParams(window.location.search);this.updateQueryParam(s)}getContentFromHTMLString(s){const a=document.createElement("span");return a.innerHTML=s,a.textContent||a.innerText}fetchAEMContent(s){const a=this.headerConfig.headersList();return this.apiService.get(s,a)}processString(s){return s.replace(/<\/?[^>]+(>|$)/g,"").replace(/
1/g," ").split(/\d+\./).filter(Boolean).map(d=>d.trim())}isStationCodeFormat(s){return/^[a-zA-Z]{3}$/.test(s)}setFocus(s=!1){this.focusAccordion.next(s)}onFocus(){return this.focusAccordion.asObservable()}static{this.\u0275fac=function(a){return new(a||T)}}static{this.\u0275prov=F.jDH({token:T,factory:T.\u0275fac})}}return T})()},99875(fe,V,c){c.d(V,{t:()=>rn});var f=c(85802),F=c(71985),O=c(21413),H=c(96354),W=c(97647),R=c(96697),Q=c(75002),x=c(25869),D=c(25425),A=c(45312),B=c(72847),K=c(25348),M=c(2110),$=c(17705),e=c(35547),z=c(3366),y=c(49769),Y=c(13816),Z=c(25136),q=c(6189),ee=c(93077),te=c(4513),ne=c(61870);const g=["modalBody"],ie=["allPdf"],X=["selectedPdf"],E=["tripDetailsBtnElement"],P=(n,r,t)=>({segments:n,segment:r,i:t}),C=n=>({"section-line":n}),se=n=>({"tw-my-3 !tw-pb-1":n});function ae(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",11,2),e.bIt("click",function(){f.eBV(t);const o=e.XpG();return f.Njj(o.getPopoverInfo())}),e.j41(3,"span"),e.EFF(4),e.k0s(),e.nrm(5,"img",12),e.k0s()}if(2&n){const t=r.open,i=e.XpG();e.BMQ("aria-expanded",t?"true":"false"),e.R7$(4),e.JRh(null==i.aemLabels?null:i.aemLabels.journeyTripDetailsLabel),e.R7$(),e.Y8G("src",i.env.damAssetPath+"/icons/select_outline_lightblue.svg",e.B4B)}}function re(n,r){if(1&n&&(e.j41(0,"h4",23),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.journeyTripDetailsLabel," ")}}function j(n,r){if(1&n&&(e.j41(0,"label",24),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(null==t.aemLabels?null:t.aemLabels.scheduleOptionsText)}}function J(n,r){if(1&n&&e.nrm(0,"img",25),2&n){const t=e.XpG(2);e.Y8G("src",e.VkB("",t.env.damAssetPath,"/icons/select_outline_blue.svg"),e.B4B)("alt",e.mNQ(null==t.aemLabels?null:t.aemLabels.ariaLabelDetailsDropDown))}}function ue(n,r){if(1&n&&e.nrm(0,"img",26),2&n){const t=e.XpG(2);e.Y8G("src",e.VkB("",t.env.damAssetPath,"/icons/print-icon.svg"),e.B4B)("alt",e.mNQ(null==t.aemLabels?null:t.aemLabels.ariaLabelDetailsDropDown))}}function le(n,r){1&n&&e.eu8(0)}function oe(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function T(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function N(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",42),e.j41(2,"span",43),e.EFF(3),e.k0s(),e.j41(4,"div",44),e.EFF(5),e.DNE(6,oe,2,1,"span",28)(7,T,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/connecting-bus.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function s(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",45),e.EFF(2),e.k0s()),2&n){const t=e.XpG(3).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/route_train.svg"),e.B4B),e.R7$(),e.Lme(" ",t.travelService.number," ",i.getTrainName(t.travelService)," ")}}function a(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function _(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function p(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",45),e.EFF(2),e.j41(3,"div",44),e.EFF(4),e.DNE(5,a,2,1,"span",28)(6,_,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(3).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/route_train.svg"),e.B4B),e.R7$(),e.SpI(" ",i.getTrainName(t.travelService)," "),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber&&"Self Transfer"!==t.travelService.name),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function d(n,r){if(1&n&&(e.j41(0,"span"),e.DNE(1,s,3,4,"span",28)(2,p,7,7,"span",28),e.k0s()),2&n){const t=e.XpG(2).segment;e.R7$(),e.Y8G("ngIf",!t.travelService.carrierName),e.R7$(),e.Y8G("ngIf",t.travelService.carrierName)}}function v(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function u(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function L(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",46),e.j41(2,"span",43),e.EFF(3),e.k0s(),e.j41(4,"div",44),e.EFF(5),e.DNE(6,v,2,1,"span",28)(7,u,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/route_ferry.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function U(n,r){if(1&n&&(e.j41(0,"span"),e.DNE(1,N,8,7,"span",28)(2,d,3,2,"span",28)(3,L,8,7,"span",28),e.k0s()),2&n){const t=e.XpG().segment;e.R7$(),e.Y8G("ngIf","BUS"===t.travelService.type),e.R7$(),e.Y8G("ngIf","TRAIN"===t.travelService.type),e.R7$(),e.Y8G("ngIf","LCH"===t.travelService.type)}}function _e(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",48),e.j41(2,"b"),e.EFF(3),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/transfer-self.svg"),e.B4B),e.R7$(2),e.SpI(" ",t.travelService.name," "),e.R7$(2),e.Lme(" ","|"," ",i.getTime(t.elapsedTime)," ")}}function pe(n,r){if(1&n&&(e.j41(0,"span")(1,"b"),e.EFF(2),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(2),e.LHq("",null==i.aemLabels?null:i.aemLabels.journeyLegSegmentText," ",t.segmentNumber," ",null==i.aemLabels?null:i.aemLabels.ofText," ",i.len),e.R7$(2),e.Lme(" ","|"," ",i.getTime(t.elapsedTime)," ")}}function ce(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function me(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function de(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",42),e.j41(2,"span",43),e.EFF(3),e.k0s(),e.j41(4,"div",44),e.EFF(5),e.DNE(6,ce,2,1,"span",28)(7,me,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/connecting-bus.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function G(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",45),e.EFF(2),e.k0s()),2&n){const t=e.XpG(3).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/route_train.svg"),e.B4B),e.R7$(),e.Lme(" ",t.travelService.number," ",i.getTrainName(t.travelService)," ")}}function ge(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",45),e.EFF(2),e.k0s()),2&n){const t=e.XpG(4).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/route_train.svg"),e.B4B),e.R7$(),e.SpI(" ",i.getTrainName(t.travelService))}}function he(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function Te(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function Se(n,r){if(1&n&&(e.j41(0,"div",50),e.EFF(1),e.DNE(2,he,2,1,"span",28)(3,Te,2,1,"span",28),e.k0s()),2&n){const t=e.XpG(4).segment,i=e.XpG(5);e.R7$(),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function Ce(n,r){if(1&n&&(e.j41(0,"span"),e.DNE(1,ge,3,3,"span",28)(2,Se,4,4,"div",49),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.Y8G("ngIf","Self Transfer"!==t.travelService.name),e.R7$(),e.Y8G("ngIf","Self Transfer"!==t.travelService.name)}}function be(n,r){if(1&n&&(e.j41(0,"span"),e.DNE(1,G,3,4,"span",28)(2,Ce,3,2,"span",28),e.k0s()),2&n){const t=e.XpG(2).segment;e.R7$(),e.Y8G("ngIf",!t.travelService.carrierName),e.R7$(),e.Y8G("ngIf",t.travelService.carrierName)}}function De(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function xe(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function Fe(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",46),e.j41(2,"span",43),e.EFF(3),e.k0s(),e.j41(4,"div",44),e.EFF(5),e.DNE(6,De,2,1,"span",28)(7,xe,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/route_ferry.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function ye(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function Re(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function $e(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",51),e.j41(2,"span",43),e.EFF(3),e.k0s(),e.j41(4,"div",44),e.EFF(5),e.DNE(6,ye,2,1,"span",28)(7,Re,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/route_taxi.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function Ee(n,r){if(1&n&&(e.j41(0,"span"),e.DNE(1,_e,6,5,"span",28)(2,pe,5,6,"span",28),e.nrm(3,"br"),e.j41(4,"div",47),e.DNE(5,de,8,7,"span",28)(6,be,3,2,"span",28)(7,Fe,8,7,"span",28)(8,$e,8,7,"span",28),e.k0s()()),2&n){const t=e.XpG().segment;e.R7$(),e.Y8G("ngIf","Self Transfer"===t.travelService.name),e.R7$(),e.Y8G("ngIf","Self Transfer"!==t.travelService.name),e.R7$(3),e.Y8G("ngIf","BUS"===t.travelService.type),e.R7$(),e.Y8G("ngIf","TRAIN"===t.travelService.type),e.R7$(),e.Y8G("ngIf","LCH"===t.travelService.type),e.R7$(),e.Y8G("ngIf","LMO"===t.travelService.type)}}function Le(n,r){if(1&n){const t=e.RV6();e.j41(0,"span")(1,"button",52),e.bIt("click",function(){f.eBV(t);const o=e.XpG().i,l=e.XpG(5);return f.Njj(l.showSegmentDetailsDropdown(o))}),e.nrm(2,"span",53),e.k0s()()}if(2&n){const t=e.XpG().segment,i=e.XpG(5);e.R7$(),e.BMQ("aria-label",(null!=i.aemLabels&&i.aemLabels.journeyLegSegmentText?(null==i.aemLabels?null:i.aemLabels.journeyLegSegmentText)+" ":"")+(t.segmentNumber?t.segmentNumber+" ":"")+(null!=i.aemLabels&&i.aemLabels.ofText?(null==i.aemLabels?null:i.aemLabels.ofText)+" ":"")+(i.len?i.len+" ":""))("aria-expanded",!t.isCollapsed),e.R7$(),e.Y8G("ngClass",t.isCollapsed?"down toggle-arrow":"up toggle-arrow")}}function Ie(n,r){if(1&n&&(e.j41(0,"li",60),e.nrm(1,"popup-tooltip",61),e.k0s()),2&n){const t=r.$implicit,i=e.XpG(8);e.R7$(),e.Y8G("modalTitle",t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription)("text",t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription)("content",i.getAmenityUrl(t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription))}}function Ne(n,r){if(1&n&&(e.j41(0,"div",56)(1,"p",57),e.EFF(2),e.k0s(),e.nrm(3,"hr"),e.j41(4,"ul",58),e.DNE(
15,Ie,2,3,"li",59),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(2),e.SpI(" ",null==i.aemLabels?null:i.aemLabels.journeyLegAccomodations," "),e.R7$(3),e.Y8G("ngForOf",t.classServices)}}function Ge(n,r){if(1&n&&(e.j41(0,"li",60),e.nrm(1,"popup-tooltip",62),e.k0s()),2&n){const t=r.$implicit,i=e.XpG(8);e.R7$(),e.Y8G("modalTitle",t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription||t.serviceTypeName)("text",t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription||t.serviceTypeName)("content",i.getAmenityUrl(t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription||t.serviceTypeName))("customIcon",i.env.damAssetPathForAmenities+i.getAmenityIcon(t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription||t.serviceTypeName))}}function Oe(n,r){if(1&n&&(e.j41(0,"div",56)(1,"p",57),e.EFF(2),e.k0s(),e.nrm(3,"hr"),e.j41(4,"ul",58),e.DNE(5,Ge,2,4,"li",59),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(2),e.SpI(" ",null==i.aemLabels?null:i.aemLabels.journeyLegAddonText," "),e.R7$(3),e.Y8G("ngForOf",t.ancillaryServices)}}function Me(n,r){if(1&n&&(e.j41(0,"li",60),e.nrm(1,"popup-tooltip",62),e.k0s()),2&n){const t=r.$implicit,i=e.XpG(8);e.R7$(),e.Y8G("modalTitle",t.name)("text",t.name)("content",i.getAmenityUrl(t.name))("customIcon",i.env.damAssetPathForAmenities+i.getAmenityIcon(t.name))}}function Pe(n,r){if(1&n&&(e.j41(0,"div",56)(1,"p",57),e.EFF(2),e.k0s(),e.nrm(3,"hr"),e.j41(4,"ul",58),e.DNE(5,Me,2,4,"li",59),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(2),e.SpI(" ",null==i.aemLabels?null:i.aemLabels.journeyLegAmenitiesText," "),e.R7$(3),e.Y8G("ngForOf",t.travelService.Amenity)}}function je(n,r){if(1&n&&(e.j41(0,"div",54),e.DNE(1,Ne,6,2,"div",55)(2,Oe,6,2,"div",55)(3,Pe,6,2,"div",55),e.k0s()),2&n){const t=e.XpG().segment;e.R7$(),e.Y8G("ngIf",t.classServices.length>0),e.R7$(),e.Y8G("ngIf",t.ancillaryServices.length>0),e.R7$(),e.Y8G("ngIf",t.travelService.Amenity)}}function we(n,r){if(1&n&&(e.j41(0,"div",63),e.nrm(1,"span",64),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.Y8G("innerHTML",t.m1,e.npT)}}function ke(n,r){if(1&n&&(e.j41(0,"div",36)(1,"div",37)(2,"div",38),e.DNE(3,U,4,3,"span",28)(4,Ee,9,6,"span",28),e.k0s()(),e.j41(5,"div",39),e.DNE(6,Le,3,3,"span",28),e.k0s(),e.DNE(7,je,4,3,"div",40)(8,we,2,1,"div",41),e.k0s()),2&n){const t=r.segment,i=e.XpG(5);e.R7$(3),e.Y8G("ngIf",!i.isMultiSegment),e.R7$(),e.Y8G("ngIf",i.isMultiSegment),e.R7$(2),e.Y8G("ngIf",t.travelService.Amenity||"Self Transfer"===t.travelService.name||"CBN"===t.destination.code),e.R7$(),e.Y8G("ngIf",!t.isCollapsed&&t.travelService.Amenity),e.R7$(),e.Y8G("ngIf",!t.isCollapsed&&"Self Transfer"===t.travelService.name)}}function Ae(n,r){1&n&&e.eu8(0)}function Be(n,r){if(1&n&&(e.nrm(0,"img",67),e.j41(1,"p",68)(2,"span",69),e.EFF(3),e.k0s(),e.j41(4,"span",70)(5,"span"),e.EFF(6),e.k0s(),e.j41(7,"span",71),e.EFF(8),e.k0s()()()),2&n){const t=e.XpG(2).index,i=e.XpG(4);e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/transfer-slim.svg"),e.B4B),e.R7$(3),e.JRh(i.aemLabels.transfer.type),e.R7$(3),e.SpI("",i.travelLegs[t].destination.name," "),e.R7$(2),e.Lme(" ",i.travelLegs[t].layover," ",i.aemLabels.transfer.layover," ")}}function Ye(n,r){if(1&n&&(e.j41(0,"div",65),e.DNE(1,Ae,1,0,"ng-container",66)(2,Be,9,6,"ng-template",null,6,e.C5r),e.k0s()),2&n){const t=e.sdS(3),i=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",i.isSelfTransfer||"CBN"===i.destination.code)("ngIfElse",t)}}function Xe(n,r){if(1&n&&(e.j41(0,"div",78),e.nrm(1,"span",64),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.Y8G("innerHTML",t.msg,e.npT)}}function Je(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",72)(1,"span",73)(2,"span",74),e.nrm(3,"img",75),e.j41(4,"span",76),e.EFF(5),e.k0s()(),e.j41(6,"span",39)(7,"button",52),e.bIt("click",function(){f.eBV(t);const o=e.XpG().index,l=e.XpG(4);return f.Njj(l.showCBNDropdown(o))}),e.nrm(8,"span",53),e.k0s()(),e.DNE(9,Xe,2,1,"div",77),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.eq3(8,C,i.showCBNmsg)),e.R7$(2),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/custom_inspection_default.svg"),e.B4B),e.R7$(2),e.SpI(" ",null==i.aemLabels?null:i.aemLabels.cbnheading," "),e.R7$(2),e.BMQ("aria-label",null==i.aemLabels?null:i.aemLabels.cbnheading)("aria-expanded",!t.isCollapsed),e.R7$(),e.Y8G("ngClass",i.showCBNmsg?"up toggle-arrow tw-mt-1":"down toggle-arrow"),e.R7$(),e.Y8G("ngIf",i.showCBNmsg)}}function Ue(n,r){if(1&n&&(e.j41(0,"div",32),e.DNE(1,le,1,0,"ng-container",33)(2,ke,9,5,"ng-template",null,5,e.C5r)(4,Ye,4,2,"div",34)(5,Je,10,10,"div",35),e.k0s()),2&n){const t=r.$implicit,i=r.index,o=e.sdS(3),l=e.XpG(4);e.R7$(),e.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",e.sMw(4,P,l.journeySegments,t,i)),e.R7$(3),e.Y8G("ngIf",(t.hasLayover||t.isSelfTransfer||"CBN"===!t.destination.code)&&l.segments.length>1),e.R7$(),e.Y8G("ngIf","CBN"===t.destination.code)}}function Ve(n,r){if(1&n&&(e.j41(0,"li",85)(1,"span",86),e.EFF(2),e.k0s()()),2&n){const t=r.$implicit;e.R7$(2),e.JRh(t.serviceTypeName)}}function He(n,r){if(1&n&&(e.j41(0,"li",85)(1,"span",86),e.EFF(2),e.k0s(),e.nrm(3,"popup-tooltip",62),e.k0s()),2&n){const t=r.$implicit,i=e.XpG(6);e.R7$(2),e.JRh(t.serviceTypeName),e.R7$(),e.Y8G("modalTitle",t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription)("text",t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription)("content",i.getAmenityUrl(t.rbdBaseCode===i.lower?t.serviceTypeName:t.rbdProductDescription))("customIcon",i.env.damAssetPathForAmenities+i.getAmenityIcon(i.amenity.name))}}function We(n,r){if(1&n&&(e.j41(0,"div",80)(1,"p",81),e.EFF(2),e.k0s(),e.j41(3,"ul",82),e.DNE(4,He,4,5,"li",83),e.k0s()()),2&n){const t=e.XpG(5);e.R7$(2),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.journeyLegAddonText," "),e.R7$(2),e.Y8G("ngForOf",t.ancillaryServices)}}function Qe(n,r){if(1&n&&(e.j41(0,"li",85),e.nrm(1,"popup-tooltip",62),e.k0s()),2&n){const t=r.$implicit,i=e.XpG(6);e.R7$(),e.Y8G("modalTitle",t.name)("text",t.name)("content",i.getAmenityUrl(t.name))("customIcon",i.env.damAssetPathForAmenities+i.getAmenityIcon(t.name))}}function Ke(n,r){if(1&n&&(e.j41(0,"div",56)(1,"p",81),e.EFF(2),e.k0s(),e.j41(3,"ul",82),e.DNE(4,Qe,2,4,"li",83),e.k0s()()),2&n){const t=e.XpG(5);e.R7$(2),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.journeyLegAmenitiesText," "),e.R7$(2),e.Y8G("ngForOf",t.train.travelService.Amenity)}}function ze(n,r){if(1&n&&(e.j41(0,"div",27)(1,"div",79)(2,"div",80)(3,"p",81),e.EFF(4),e.k0s(),e.j41(5,"ul",82),e.DNE(6,Ve,3,1,"li",83),e.k0s()(),e.DNE(7,We,5,2,"div",84)(8,Ke,5,2,"div",55),e.k0s()()),2&n){const t=e.XpG(4);e.R7$(4),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.classText," "),e.R7$(2),e.Y8G("ngForOf",t.classServices),e.R7$(),e.Y8G("ngIf",t.ancillaryServices&&t.ancillaryServices.length>0),e.R7$(),e.Y8G("ngIf",t.train.travelService.Amenity)}}function Ze(n,r){1&n&&e.eu8(0)}function qe(n,r){1&n&&e.nrm(0,"div")}function et(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function tt(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function nt(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",42),e.j41(2,"span",95),e.EFF(3),e.k0s(),e.j41(4,"div",96),e.EFF(5),e.DNE(6,et,2,1,"span",28)(7,tt,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/connecting-bus.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function it(n,r){if(1&n&&(e.j41(0,"span",98),e.nrm(1,"img",99),e.nI1(2,"urlEncoderFriendly"),e.j41(3,"span",100),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(3).segment,i=e.XpG(5);e.R7$(),e.Y8G("alt",e.VkB("",i.name," Train Icon"))("src",e.ai1("",i.env.damAssetPath,"/icons/train-routes/",e.bMT(2,7,i.icon),".svg"),e.B4B),e.R7$(3),e.Lme("",t.travelService.number," ",i.getTrainName(t.travelService))}}function st(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4).segment;e.R7$(),e.SpI("",t.travelService.carrierNumber," ")}}function at(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function rt(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",45),e.EFF(2),e.j41(3,"div",96),e.EFF(4),e.DNE(
15,st,2,1,"span",28)(6,at,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(3).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/route_train.svg"),e.B4B),e.R7$(),e.SpI(" ",i.getTrainName(t.travelService)," "),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber&&"Self Transfer"!==t.travelService.name),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function lt(n,r){if(1&n&&(e.j41(0,"span"),e.DNE(1,it,5,9,"span",97)(2,rt,7,7,"span",28),e.k0s()),2&n){const t=e.XpG(2).segment;e.R7$(),e.Y8G("ngIf",!t.travelService.carrierName),e.R7$(),e.Y8G("ngIf",t.travelService.carrierName)}}function ot(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function _t(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function pt(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",46),e.j41(2,"span",43),e.EFF(3),e.k0s(),e.j41(4,"div",96),e.EFF(5),e.DNE(6,ot,2,1,"span",28)(7,_t,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/route_ferry.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function ct(n,r){if(1&n&&(e.j41(0,"span"),e.DNE(1,nt,8,7,"span",28)(2,lt,3,2,"span",28)(3,pt,8,7,"span",28),e.k0s()),2&n){const t=e.XpG().segment;e.R7$(),e.Y8G("ngIf","BUS"===t.travelService.type),e.R7$(),e.Y8G("ngIf","TRAIN"===t.travelService.type),e.R7$(),e.Y8G("ngIf","LCH"===t.travelService.type)}}function mt(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",48),e.j41(2,"b"),e.EFF(3),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/transfer-self.svg"),e.B4B),e.R7$(2),e.SpI(" ",t.travelService.name," "),e.R7$(2),e.Lme(" ","|"," ",i.getTime(t.elapsedTime)," ")}}function dt(n,r){if(1&n&&(e.j41(0,"span")(1,"b"),e.EFF(2),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(2),e.LHq(" ",null==i.aemLabels?null:i.aemLabels.journeyLegSegmentText," ",t.segmentNumber," ",null==i.aemLabels?null:i.aemLabels.ofText," ",i.len),e.R7$(2),e.Lme(" ","|"," ",i.getTime(t.elapsedTime)," ")}}function gt(n,r){if(1&n&&(e.j41(0,"span"),e.DNE(1,mt,6,5,"span",28)(2,dt,5,6,"span",28),e.k0s()),2&n){const t=e.XpG().segment;e.R7$(),e.Y8G("ngIf","Self Transfer"===t.travelService.name),e.R7$(),e.Y8G("ngIf","Self Transfer"!==t.travelService.name)}}function vt(n,r){if(1&n&&(e.j41(0,"span",101),e.EFF(1),e.nrm(2,"br"),e.EFF(3),e.k0s()),2&n){const t=e.XpG(),i=t.segments,o=t.i,l=e.XpG(5);e.R7$(),e.E5c(" ",null==i[o]||null==i[o].origin?null:i[o].origin.name," ",l.getFormattedFacilityName(i[o].origin.code)," ",null==l.aemLabels?null:l.aemLabels.toText," "),e.R7$(2),e.Lme(" ",null==i[o]||null==i[o].destination?null:i[o].destination.name," ",l.getFormattedFacilityName(i[o].destination.code)," ")}}function ut(n,r){if(1&n&&(e.j41(0,"span",101),e.EFF(1),e.nrm(2,"br"),e.EFF(3),e.k0s()),2&n){const t=e.XpG(),i=t.segments,o=t.i,l=e.XpG(5);e.R7$(),e.Lme(" ",null==l.aemLabels?null:l.aemLabels.cbnstation," ",null==l.aemLabels?null:l.aemLabels.toText," "),e.R7$(2),e.Lme(" ",null==i[o]||null==i[o].destination?null:i[o].destination.name," ",l.getFormattedFacilityName(i[o].destination.code)," ")}}function ft(n,r){if(1&n&&(e.j41(0,"span",101),e.EFF(1),e.nrm(2,"br"),e.EFF(3),e.k0s()),2&n){const t=e.XpG(),i=t.segments,o=t.i,l=e.XpG(5);e.R7$(),e.E5c(" ",null==i[o]||null==i[o].origin?null:i[o].origin.name," ",l.getFormattedFacilityName(i[o].origin.code)," ",null==l.aemLabels?null:l.aemLabels.toText," "),e.R7$(2),e.SpI(" ",null==l.aemLabels?null:l.aemLabels.cbnstation," ")}}function ht(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function Tt(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function St(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",42),e.j41(2,"span",43),e.EFF(3),e.k0s(),e.j41(4,"div",96),e.EFF(5),e.DNE(6,ht,2,1,"span",28)(7,Tt,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/connecting-bus.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function Ct(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",45),e.j41(2,"span",100),e.EFF(3),e.k0s()()),2&n){const t=e.XpG(3).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/route_train.svg"),e.B4B),e.R7$(2),e.Lme("",t.travelService.number," ",i.getTrainName(t.travelService))}}function bt(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function Dt(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function xt(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",45),e.EFF(2),e.j41(3,"div",96),e.EFF(4),e.DNE(
15,bt,2,1,"span",28)(6,Dt,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(3).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/route_train.svg"),e.B4B),e.R7$(),e.SpI(" ",i.getTrainName(t.travelService)," "),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber&&"Self Transfer"!==t.travelService.name),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function Ft(n,r){if(1&n&&(e.j41(0,"span"),e.DNE(1,Ct,4,4,"span",28)(2,xt,7,7,"span",28),e.k0s()),2&n){const t=e.XpG(2).segment;e.R7$(),e.Y8G("ngIf",!t.travelService.carrierName),e.R7$(),e.Y8G("ngIf",t.travelService.carrierName)}}function yt(n,r){if(1&n&&(e.j41(0,"span",104),e.nrm(1,"span",64),e.k0s()),2&n){const t=e.XpG(7);e.R7$(),e.Y8G("innerHTML",t.m1,e.npT)}}function Rt(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function $t(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function Et(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",46),e.j41(2,"span",43),e.EFF(3),e.k0s(),e.j41(4,"div",44),e.EFF(5),e.DNE(6,Rt,2,1,"span",28)(7,$t,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/route_ferry.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function Lt(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.carrierNumber," ")}}function It(n,r){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3).segment;e.R7$(),e.SpI(" ",t.travelService.number," ")}}function Nt(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"img",51),e.j41(2,"span",43),e.EFF(3),e.k0s(),e.j41(4,"div",96),e.EFF(5),e.DNE(6,Lt,2,1,"span",28)(7,It,2,1,"span",28),e.k0s()()),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.R7$(),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/train-routes/route_taxi.svg"),e.B4B),e.R7$(2),e.JRh(i.getTrainName(t.travelService)),e.R7$(2),e.Lme(" ",i.aemLabels.operatedBy," ",t.travelService.carrierName," "),e.R7$(),e.Y8G("ngIf",t.travelService.carrierNumber),e.R7$(),e.Y8G("ngIf",!t.travelService.carrierNumber)}}function Gt(n,r){if(1&n&&(e.j41(0,"div",102),e.DNE(1,St,8,7,"span",28)(2,Ft,3,2,"span",28)(3,yt,2,1,"span",103)(4,Et,8,7,"span",28)(5,Nt,8,7,"span",28),e.k0s()),2&n){const t=e.XpG().segment;e.R7$(),e.Y8G("ngIf","BUS"===t.travelService.type),e.R7$(),e.Y8G("ngIf","TRAIN"===t.travelService.type&&"Self Transfer"!==t.travelService.name),e.R7$(),e.Y8G("ngIf","TRAIN"===t.travelService.type&&"Self Transfer"===t.travelService.name),e.R7$(),e.Y8G("ngIf","LCH"===t.travelService.type),e.R7$(),e.Y8G("ngIf","LMO"===t.travelService.type)}}function Ot(n,r){if(1&n&&(e.j41(0,"div"),e.nrm(1,"app-train-route",105),e.k0s()),2&n){const t=e.XpG(),i=t.segments,o=t.segment,l=t.i,m=e.XpG(5);e.R7$(),e.Y8G("trainsSolutionsSubset",i)("trainDetails",o.trainDetails)("isTrainSelected",m.isTrainSelected)("initialRoute",m.initialRoute)("cancelledTrain",m.cancelledTrain)("content",m.aemContent)("isMobileView",m.isMobileView)("destinationCode",m.destinationCode)("aemLabels",m.aemLabels)("segment",l)("isTrainDelayed",m.isSegmentDelayed(l))("journeyDuration",m.getTime(o.elapsedTime))("enhancedVersion",m.enhancedVerion)("isRestricted",m.isRestricted)}}function Mt(n,r){if(1&n&&e.EFF(0),2&n){const t=e.XpG(2).segment,i=e.XpG(5);e.Lme(" ",t.numberOfStops," ",i.aemLabels.stopsText," ")}}function Pt(n,r){if(1&n&&e.EFF(0),2&n){const t=e.XpG(7);e.SpI(" ",null==t.aemLabels?null:t.aemLabels.nonStopText," ")}}function jt(n,r){if(1&n&&(e.j41(0,"div",106)(1,"ul",107)(2,"li",108)(3,"p",109),e.EFF(4),e.k0s(),e.j41(5,"div",110)(6,"p",111),e.EFF(7),e.nI1(8,"stationData"),e.nI1(9,"stationData"),e.k0s(),e.j41(10,"p",112),e.EFF(11),e.nI1(12,"date"),e.nI1(13,"date"),e.nI1(14,"lowercase"),e.k0s()()(),e.j41(15,"li")(16,"p",113),e.nVh(17,Mt,1,2)(18,Pt,1,1),e.EFF(19),e.k0s()(),e.nrm(20,"span",114),e.j41(21,"li",115)(22,"p",109),e.EFF(23),e.k0s(),e.j41(24,"div",110)(25,"p",111),e.EFF(26),e.nI1(27,"stationData"),e.nI1(28,"stationData"),e.k0s(),e.j41(29,"p",112),e.EFF(30),e.nI1(31,"date"),e.nI1(32,"date"),e.nI1(33,"lowercase"),e.k0s()()()()()),2&n){const t=e.XpG().segment,i=e.XpG(5);e.R7$(4),e.SpI(" ",null==i.aemLabels?null:i.aemLabels.departsText," "),e.R7$(3),e.E5c(" ",e.i5U(8,14,t.origin.code,i.FIELDNAMES.StationName32)," - ",e.i5U(9,17,t.origin.code,i.FIELDNAMES.FacilityName32)," (",t.origin.code,") "),e.R7$(4),e.Lme(" ",e.i5U(12,20,t.origin.schedule.departureDateTime,"MMM dd, h:mm"),"",e.bMT(14,26,e.i5U(13,23,t.origin.schedule.departureDateTime,"a"))," "),e.R7$(6),e.vxM(t.numberOfStops>0?17:18),e.R7$(2),e.SpI(" (",i.getTime(t.elapsedTime),") "),e.R7$(4),e.SpI(" ",null==i.aemLabels?null:i.aemLabels.arrivesText," "),e.R7$(3),e.E5c(" ",e.i5U(27,28,t.destination.code,i.FIELDNAMES.StationName32)," - ",e.i5U(28,31,t.destination.code,i.FIELDNAMES.FacilityName32),"(",t.destination.code,") "),e.R7$(4),e.Lme(" ",e.i5U(31,34,t.destination.schedule.arrivalDateTime,"MMM dd, h:mm")," ",e.bMT(33,40,e.i5U(32,37,t.destination.schedule.arrivalDateTime,"a"))," ")}}function wt(n,r){if(1&n){const t=e.RV6();e.DNE(0,qe,1,0,"div",28),e.j41(1,"div",88)(2,"div",89)(3,"div",90)(4,"div",91),e.DNE(5,ct,4,3,"span",28)(6,gt,3,2,"span",28),e.k0s(),e.nrm(7,"br"),e.DNE(8,vt,4,5,"span",92)(9,ut,4,4,"span",92)(10,ft,4,4,"span",92),e.k0s()(),e.j41(11,"div",39)(12,"button",52),e.bIt("click",function(){const o=f.eBV(t).i,l=e.XpG(5);return f.Njj(l.showSegmentDetailsDropdown(o))}),e.nrm(13,"span",53),e.k0s()(),e.j41(14,"div"),e.DNE(15,Gt,6,5,"div",93)(16,Ot,2,14,"div",28)(17,jt,34,42,"div",94),e.k0s()()}if(2&n){const t=r.segments,i=r.segment,o=r.i,l=e.XpG(5);e.Y8G("ngIf","Self Transfer"===i.travelService.name),e.R7$(5),e.Y8G("ngIf",!l.isMultiSegment),e.R7$(),e.Y8G("ngIf",l.isMultiSegment),e.R7$(2),e.Y8G("ngIf",l.isMultiSegment&&t[o]&&i.isCollapsed&&"CBN"!==t[o].origin.code&&"CBN"!==t[o].destination.code),e.R7$(),e.Y8G("ngIf",l.isMultiSegment&&t[o]&&i.isCollapsed&&"CBN"===t[o].origin.code),e.R7$(),e.Y8G("ngIf",l.isMultiSegment&&t[o]&&i.isCollapsed&&"CBN"===t[o].destination.code),e.R7$(2),e.BMQ("aria-label",(null!=l.aemLabels&&l.aemLabels.journeyLegSegmentText?(null==l.aemLabels?null:l.aemLabels.journeyLegSegmentText)+" ":"")+(i.segmentNumber?i.segmentNumber+" ":"")+(null!=l.aemLabels&&l.aemLabels.ofText?(null==l.aemLabels?null:l.aemLabels.ofText)+" ":"")+(l.len?l.len+" ":""))("aria-expanded",!i.isCollapsed),e.R7$(),e.Y8G("ngClass",i.isCollapsed?"down toggle-arrow":"up toggle-arrow tw-mt-1"),e.R7$(2),e.Y8G("ngIf",l.isMultiSegment&&!i.isCollapsed),e.R7$(),e.Y8G("ngIf",!i.isCollapsed&&!i.error),e.R7$(),e.Y8G("ngIf",!i.isCollapsed&&i.error&&!i.isSelfTransfer)}}function kt(n,r){1&n&&e.eu8(0)}function At(n,r){if(1&n&&(e.nrm(0,"img",117),e.j41(1,"p",68)(2,"span",69),e.EFF(3),e.k0s(),e.j41(4,"span",70)(5,"span"),e.EFF(6),e.k0s(),e.j41(7,"span",71),e.EFF(8),e.k0s()()()),2&n){const t=e.XpG(2).index,i=e.XpG(4);e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/transfer-slim.svg"),e.B4B),e.R7$(3),e.JRh(i.aemLabels.transfer.type),e.R7$(3),e.SpI("",i.travelLegs[t].destination.name," "),e.R7$(2),e.Lme(" ",i.travelLegs[t].layover," ",i.aemLabels.transfer.layover," ")}}function Bt(n,r){if(1&n&&(e.j41(0,"div",116),e.DNE(1,kt,1,0,"ng-container",66)(2,At,9,6,"ng-template",null,6,e.C5r),e.k0s()),2&n){const t=e.sdS(3),i=e.XpG().$implicit;e.Y8G("ngClass",e.eq3(3,se,"CBN"===!i.destination.code)),e.R7$(),e.Y8G("ngIf",i.isSelfTransfer||"CBN"===i.destination.code)("ngIfElse",t)}}function Yt(n,r){if(1&n&&(e.j41(0,"div",120),e.nrm(1,"span",64),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.Y8G("innerHTML",t.msg,e.npT)}}function Xt(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",72)(1,"span",73)(2,"span",118),e.nrm(3,"img",75),e.j41(4,"span",76),e.EFF(5),e.k0s()(),e.j41(6,"span",39)(7,"button",52),e.bIt("click",function(){f.eBV(t);const o=e.XpG().index,l=e.XpG(4);return f.Njj(l.showCBNDropdown(o))}),e.nrm(8,"span",53),e.k0s()(),e.DNE(9,Yt,2,1,"div",119),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.eq3(8,C,i.showCBNmsg)),e.R7$(2),e.Y8G("src",e.VkB("",i.env.damAssetPath,"/icons/custom_inspection_default.svg"),e.B4B),e.R7$(2),e.SpI(" ",null==i.aemLabels?null:i.aemLabels.cbnheading),e.R7$(2),e.BMQ("aria-label",null==i.aemLabels?null:i.aemLabels.cbnheading)("aria-expanded",!t.isCollapsed),e.R7$(),e.Y8G("ngClass",i.showCBNmsg?"up toggle-arrow tw-mt-1":"down toggle-arrow"),e.R7$(),e.Y8G("ngIf",i.showCBNmsg)}}function Jt(n,r){if(1&n&&(e.j41(0,"div",32),e.DNE(1,Ze,1,0,"ng-container",33)(2,wt,18,12,"ng-template",null,7,e.C5r)(4,Bt,4,5,"div",87)(5,Xt,10,10,"div",35),e.k0s()),2&n){const t=r.$implicit,i=r.index,o=e.sdS(3),l=e.XpG(4);e.R7$(),e.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",e.sMw(4,P,l.journeySegments,t,i)),e.R7$(3),e.Y8G("ngIf",(t.hasLayover||t.isSelfTransfer||"CBN"===!t.destination.code)&&l.segments.length>1),e.R7$(),e.Y8G("ngIf","CBN"===t.destination.code)}}function Ut(n,r){if(1&n&&(e.j41(0,"div")(1,"tabset",29)(2,"tab",30),e.DNE(3,
1Ue,6,8,"div",31)(4,ze,9,4,"div",22),e.k0s(),e.j41(5,"tab",30),e.DNE(6,Jt,6,8,"div",31),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ariaLabel",e.mNQ(t.aemLabels.viewTripDetails))("justified",!0),e.R7$(),e.Y8G("heading",e.mNQ(t.aemLabels.services)),e.R7$(),e.Y8G("ngForOf",t.journeySegments),e.R7$(),e.Y8G("ngIf",t.train&&!t.isPrint),e.R7$(),e.Y8G("heading",e.mNQ(t.aemLabels.route)),e.R7$(),e.Y8G("ngForOf",t.journeySegments)}}function Vt(n,r){if(1&n&&(e.j41(0,"div",27),e.DNE(1,Ut,7,10,"div",28),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",!t.isScheduleView)}}function Ht(n,r){if(1&n&&(e.j41(0,"li",85)(1,"span",86),e.EFF(2),e.k0s()()),2&n){const t=r.$implicit;e.R7$(2),e.JRh(t.rbdProductDescription)}}function Wt(n,r){if(1&n&&(e.j41(0,"div",80)(1,"p",81),e.EFF(2),e.k0s(),e.nrm(3,"hr"),e.j41(4,"ul",82),e.DNE(5,Ht,3,1,"li",83),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(2),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.classText," "),e.R7$(3),e.Y8G("ngForOf",t.classServices)}}function Qt(n,r){if(1&n&&(e.j41(0,"li",85)(1,"span",86),e.EFF(2),e.k0s()()),2&n){const t=r.$implicit;e.R7$(2),e.JRh(t.rbdProductDescription)}}function Kt(n,r){if(1&n&&(e.j41(0,"div",80)(1,"p",121),e.EFF(2),e.k0s(),e.nrm(3,"hr"),e.j41(4,"ul",82),e.DNE(5,Qt,3,1,"li",83),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(2),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.journeyLegAddonText," "),e.R7$(3),e.Y8G("ngForOf",t.ancillaryServices)}}function zt(n,r){if(1&n&&(e.j41(0,"li",85),e.nrm(1,"popup-tooltip",62),e.k0s()),2&n){const t=r.$implicit,i=e.XpG(4);e.R7$(),e.Y8G("modalTitle",t.name)("text",t.name)("content",i.getAmenityUrl(t.name))("customIcon",i.env.damAssetPathForAmenities+i.getAmenityIcon(t.name))}}function Zt(n,r){if(1&n&&(e.j41(0,"div",56)(1,"p",81),e.EFF(2),e.k0s(),e.nrm(3,"hr"),e.j41(4,"ul",82),e.DNE(5,zt,2,4,"li",83),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(2),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.journeyLegAmenitiesText," "),e.R7$(3),e.Y8G("ngForOf",t.train.travelService.Amenity)}}function qt(n,r){if(1&n&&(e.j41(0,"div",27)(1,"div",79),e.DNE(2,Wt,6,2,"div",84)(3,Kt,6,2,"div",84)(4,Zt,6,2,"div",55),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.classServices&&t.classServices.length>0),e.R7$(),e.Y8G("ngIf",t.ancillaryServices&&t.ancillaryServices.length>0),e.R7$(),e.Y8G("ngIf",t.train.travelService.Amenity)}}function en(n,r){if(1&n){const t=e.RV6();e.j41(0,"button",126),e.bIt("click",function(){f.eBV(t);const o=e.XpG(4);return f.Njj(o.onPrint("all"))}),e.EFF(1),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.printAllText," ")}}function tn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",79)(1,"div",123),e.DNE(2,en,2,1,"button",124),e.k0s(),e.j41(3,"div",123)(4,"button",125),e.bIt("click",function(){f.eBV(t);const o=e.XpG(3);return f.Njj(o.onPrint("selected"))}),e.EFF(5),e.k0s()()()}if(2&n){const t=e.XpG(3);e.R7$(2),e.Y8G("ngIf",!t.disablePrintAll),e.R7$(2),e.Y8G("disabled",0===t.activeTrain.length),e.R7$(),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.printSelectedText," ")}}function nn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",79)(1,"div",123),e.nrm(2,"img",127),e.j41(3,"button",126),e.bIt("click",function(){f.eBV(t);const o=e.XpG(3);return f.Njj(o.onOldPrint())}),e.EFF(4),e.k0s()()()}if(2&n){const t=e.XpG(3);e.R7$(2),e.Y8G("src",e.VkB("",t.env.damAssetPath,"/icons/am-print.svg"),e.B4B)("alt",null==t.aemLabels?null:t.aemLabels.printText),e.R7$(2),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.printText," ")}}function sn(n,r){if(1&n&&(e.j41(0,"div",27),e.qex(1),e.DNE(2,tn,6,3,"div",122)(3,nn,5,4,"div",122),e.bVm(),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",null==t.aemData?null:t.aemData.printDropdownDevFlag),e.R7$(),e.Y8G("ngIf",!(null!=t.aemData&&t.aemData.printDropdownDevFlag))}}function an(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",8)(1,"div",13,3),e.bIt("keydown.escape",function(){const o=f.eBV(t).actions;return f.Njj(o.close())}),e.j41(3,"div",14),e.DNE(4,re,2,1,"h4",15),e.j41(5,"span",16),e.EFF(6),e.k0s(),e.DNE(7,j,2,1,"label",17),e.j41(8,"button",18),e.bIt("click",function(o){const l=f.eBV(t).actions,m=e.XpG();return f.Njj(m.changeFocus(o,l))}),e.DNE(9,J,1,4,"img",19)(10,ue,1,4,"img",20),e.k0s()(),e.j41(11,"div",21,4),e.DNE(13,Vt,2,1,"div",22)(14,qt,5,3,"div",22),e.k0s(),e.DNE(15,sn,4,2,"div",22),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("cdkTrapFocusAutoCapture",!0),e.BMQ("aria-labelledby","trip-details-title")("aria-describedby","trip-details-desc"),e.R7$(3),e.Y8G("ngIf",!t.isPrint),e.R7$(2),e.SpI(" ",null==t.aemLabels?null:t.aemLabels.viewTripDetails," "),e.R7$(),e.Y8G("ngIf",t.isPrint),e.R7$(),e.BMQ("aria-label",(null==t.aemLabels?null:t.aemLabels.closeText)+" : "+(null==t.aemLabels?null:t.aemLabels.journeyTripDetailsLabel)),e.R7$(),e.Y8G("ngIf",!t.isPrint),e.R7$(),e.Y8G("ngIf",t.isPrint),e.R7$(3),e.Y8G("ngIf",!t.train&&!t.isPrint),e.R7$(),e.Y8G("ngIf",t.isScheduleView),e.R7$(),e.Y8G("ngIf",t.isPrint)}}let rn=(()=>{class n{get directionCode(){return this.schedules[0][0].travelService.directionCode}constructor(t,i,o,l,m){this.mappings=t,this.apiService=i,this.headerConfig=o,this.ecomStorage=l,this.changeRef=m,this.filterSchedule=new f.bkB,this.TransferUrl=x.D5.apiEndPtURL.TransferMsgURL,this.AmenityType="",this.displayName=!1,this.env=A.c,this.FIELDNAMES=x.D5.FieldNames,this.AMENITIES=x.D5.Amenities.AmenityNames,this.segments=[],this.popoverInfo={},this.classServices=[],this.ancillaryServices=[],this.footerPages={},this.routeType="",this.trains=[],this.trainDetails=[],this.isTrainSelected=!1,this.trainsSolutionsSubset=[],this.journeySegments=[],this.m1="",this.msg="",this.showCBNmsg=!1,this.len=0}ngOnInit(){this.classServices=[],this.ancillaryServices=[],this.icon=this.getIcon(this.journeySegments[0]?.travelService.type||this.journeySegments[0]?.travelService.trainType),this.stationOrder=this.ecomStorage.getSessionStorage(x.D5.StorageName.STATION_ORDER,!0),this.train||(this.segments=this.getSegments(),this.len=this.segments.length),this.train&&(this.amenitiesExist=this.train.travelService?.Amenity,this.reservationExist=this.train.travelService?.RBD,this.amenitiesExist&&this.reservationExist&&(0==this.amenitiesExist.length&&0==this.reservationExist.length?this.disabledDetail
1s=!0:(this.amenitiesExist.length>0||this.reservationExist.length>0||0==this.amenitiesExist.length||0==this.reservationExist.length)&&(this.disabledDetails=!1)),this.trainName=this.train.travelService.name.desc_40,this.trainNumber=this.train.travelService.number,null!=this.train.travelService.RBD&&this.train.travelService.RBD.forEach(t=>{t&&t.serviceSubTypeName&&"Ancillary"===t.serviceSubTypeName?this.ancillaryServices.push(t):this.classServices.push(t)})),this.serviceOfferingsTracker={amenity:null,reservation:null},this.aemData.stopListsJsonURL&&this.getStationOrder().subscribe(t=>{this.stationOrderJson=t})}isSegmentDelayed(t){const i=this.journeySegments[t]?.origin?.statusInfo;return!(!i||!i.dateTime)}ngOnChanges(t){if(this.pagination){const i=this.pagination.previousPage,o=this.pagination.itemsPerPage,l=this.pagination.currentPage;1===l&&(this.numberOfPaginationPages=i/o%1!=0?Math.ceil(i/o):i/o),this.footerPages={currentPage:l,totalPages:this.numberOfPaginationPages}}t.travelLegs&&(this.travelLegs=t.travelLegs.currentValue,this.ngOnInit()),this.routeType=this.activeTrain&&1===this.activeTrain.length?"single-segment":"multi-segment"}getTime(t){return D.LD.getDuration(t)}getScheduleFromStorage(){return this.schedules.map(t=>t[0])}getServiceNumberTableHeader(){const t=this.getScheduleFromStorage(),i=[{text:"Service Number",style:"headerTitles"}];return t.forEach(o=>{i.push(o.travelService.number)}),i}getServiceNameTableHeader(){const t=this.getScheduleFromStorage(),i=[{text:"Service Names",style:"headerTitles"}];return t.forEach(o=>{i.push(o.travelService.name.desc_40.replace(" ","\n"))}),i}getFrequencyTableHeader(){const t=this.getScheduleFromStorage(),i=[{text:"Frequency",style:"headerTitles"}];return t.forEach(o=>{let l=o.schedulesAndStops.schedule.daysOfOperation;Array.isArray(l)&&l.every((m,S)=>m===["MON","TUE","WED","THU","FRI"][S])?i.push("Mo-Fr"):Array.isArray(l)&&l.every((m,S)=>m===["SUN","MON","TUE","WED","THU"][S])?i.push("Su-Th"):Array.isArray(l)&&7===l.length?i.push("Daily"):(l=l.map(m=>{switch(m){case"MON":return"Mo";case"TUE":return"Tu";case"WED":return"We";case"THU":return"Th";case"FRI":return"Fr";case"SAT":return"Sa";case"SUN":return"Su";default:return""}}),i.push(l.join(", ")))}),i}getDurationTableHeader(){const t=this.getScheduleFromStorage(),i=[{text:"Duration",style:"headerTitles"}];return t.forEach(o=>{i.push(o.schedulesAndStops.schedule.elapsedTime.match(RegExp(/([1-9]+0?H|\d+0?M)/g)).map(m=>m.replace(/^0+/g,"").toLowerCase()).join(""))}),i}getStationOrder(){const t=this.ecomStorage.getSessionStorage(x.D5.StorageName.STATION_ORDER,!0);return t?new F.c(i=>{i.next(t),i.complete()}):this.apiService.get(this.aemData.stopListsJsonURL).pipe((0,H.T)(o=>{this.ecomStorage.updateSessionStorage(x.D5.StorageName.STATION_ORDER,JSON.stringify(o)),this.stationOrderJson=o}),(0,W.u)())}getSegments(){let t=0,i=[];return this.travelLegs.forEach((o,l)=>{"Self Transfer"!==o.travelService.name&&(i.push(o),i[t].hasLayover=this.travelLegs[l]&&this.travelLegs[l+1]&&!this.travelLegs[l+1].isSelfTransfer||!1,i[t].isSelfTransfer=this.travelLegs[l]&&this.travelLegs[l+1]&&this.travelLegs[l+1].isSelfTransfer||!1,i[t].layover=i[t].hasLayover?D.LD.getLayover(this.travelLegs[l].destination.schedule.arrivalDateTime,this.travelLegs[l+1].origin.schedule.departureDateTime)+" ":"",i[t].transferStation=i[t].isSelfTransfer?this.travelLegs[l+1].destination.code:this.travelLegs[l].destination.code,0==t?(i[t].isCollapsed=!1,this.showCBNmsg=!1):i[t].isCollapsed=!0,i[t].popoverInfo=i[t].isSelfTransfer?{title:this.aemLabels.selfTransfer.popoverTitle,message:this.aemLabels.selfTransfer.popoverContent}:{title:this.aemLabels.transfer.popoverTitle,message:this.aemLabels.transfer.popoverContent},o.segmentNumber=t+1,t++)}),this.journeySegments=JSON.parse(JSON.stringify(this.travelLegs)),i}getTransferTime(t){return this.segments[t].layover}getConnection(t){return this.aemLabels.transfer.type+" "+this.travelLegs[t].destination.name+" | "+this.travelLegs[t].layover+" "+this.aemLabels.transfer.layover}getFormattedFacilityName(t){const i=new B.x(this.ecomStorage).transform(t,this.FIELDNAMES.FacilityName32);
1if(i)return"- "+i}getTransferText(t){return this.segments[t].isSelfTransfer?this.aemLabels.selfTransfer.type:this.aemLabels.transfer.type}getConnectionText(t){return this.segments[t].isSelfTransfer?this.aemLabels.selfTransfer.label:this.aemLabels.transfer.label}getSegmentDuration(t){return"("+D.LD.getDuration(t)+")"}getContentFromHTMLString(t){const i=document.createElement("span");return i.innerHTML=t,i.textContent||i.innerText}getAmenityIcon(t){return"/"+t.replace(/ /g,"")+".svg"}getAmenityUrl(t){let i="";return this.mappings.contentPath().pipe((0,R.s)(1)).subscribe(l=>{i=l["accommodation-path"]}),i+t.toLowerCase().replace(/ /g,"-")+".html"}hasCheckedBaggage(t){let i=!1;return t.forEach(o=>{o.name===this.AMENITIES.Checked_Baggage&&(i=!0)}),i}getPopoverInfo(){let t=!1,i=!1,o=0;if(this.journeySegments&&(this.trainsSolutionsSubset=this.travelLegs,this.trains=[],this.journeySegments.forEach((l,m)=>{l.error=!0,l.isSelfTransfer&&(t=!0,o=m),"CBN"===l.destination.code&&(i=!0,o=m),this.isScheduleView||(this.classServices=[],this.ancillaryServices=[],l.ancillaryServices=[],l.classServices=[],l.trainStops=[],l.travelService.number&&this.getTrainStations(l.travelService.number,l.origin.code,l.destination.code,l.origin.schedule.departureDateTime).subscribe(h=>{if(this.classServices=[],this.ancillaryServices=[],h.error)return;l.error=!1,h.data.hasLayover=this.travelLegs[m]&&this.travelLegs[m+1]&&!this.travelLegs[m+1].isSelfTransfer||!1,l.isSelfTransfer=this.travelLegs[m]&&this.travelLegs[m+1]&&this.travelLegs[m+1].isSelfTransfer||!1,l.layover=h.data.hasLayover?D.LD.getLayover(this.travelLegs[m].destination.schedule.arrivalDateTime,this.travelLegs[m+1].origin.schedule.departureDateTime)+" ":"",h.data.transferStation=h.data.isSelfTransfer?this.travelLegs[m+1].destination.code:this.travelLegs[m].destination.code,this.destinationCode=h.data.transferStation;const b=l.travelService.type,w=l.travelService.carrierName,k=l.travelService.carrierNumber,ln=l.travelService.name;l.travelService=h.data.travelService,l.travelService.type=b,l.travelService.carrierName=w,l.travelService.carrierNumber=k,l.travelService.name=ln,this.trains=[],this.trains.push(h.data),this.trainDetails=[],this.trainDetails.push(...this.trains),l.trainDetails=this.trainDetails,l.trainStops=[],l.trainStops=h.data.schedulesAndStops.stops,this.isMultiSegment=!1,this.isTransferSelected=!1,!this.isTrainSelected&&(0===this.trainsSolutionsSubset.length||this.cancelledTrain)&&(this.initialRoute=!0),this.checkMultiSegmentDisplay(),!this.isMultiSegment&&this.trainDetails[0].Restricted&&(this.isRestricted=!0),h.data.travelService.RBD.forEach(I=>{I&&I.serviceSubTypeName&&"Ancillary"===I.serviceSubTypeName?this.ancillaryServices.some(ve=>ve.serviceTypeName==I.serviceTypeName)||(this.ancillaryServices.push(I),l.ancillaryServices=this.ancillaryServices):this.classServices.some(ve=>ve.serviceTypeName==I.serviceTypeName)||(this.classServices.push(I),l.classServices=this.classServices)}),this.changeRef.markForCheck()}))},l=>console.log(l))),t){const l=this.TransferUrl.replace("{{stationCode}}",this.segments[o].origin.code.toLowerCase()),m=this.headerConfig.appTypeHeader();let S="";return this.apiService.get(l,m).pipe((0,R.s)(1)).subscribe(h=>{S=h.content,this.popoverInfo={title:"Self Transfer",message:S};const b=this.getContentFromHTMLString(h.content),w=b.indexOf("<p>"),k=b.indexOf("</p>");this.m1=b.substring(w,k)},h=>S=""),void(this.popoverInfo={title:"Self Transfer",message:S})}if(i){const l=this.TransferUrl.replace("{{stationCode}}",this.segments[o].destination.code.toLowerCase()),m=this.headerConfig.appTypeHeader();let S="";return this.apiService.get(l,m).pipe((0,R.s)(1)).subscribe(h=>{S=h.content,this.popoverInfo={title:"Customs Inspection",message:S};const b=this.getContentFromHTMLString(h.content),w=b.indexOf("<p>"),k=b.indexOf("</p>");this.msg=b.substring(w,k)},h=>S=""),void(this.popoverInfo={title:"Customs Inspection",message:S})}}getTrainStations(t,i,o,l){const m=this.aemData.trainStaionsUrl+`/${t}/train/stops?origin=${i}&destination=${o}&startDate=${l}`,S=this.headerConfig.appTypeHeader(),h=new O.B;return this.apiService.get(m,S).pipe((0,R.s)(1)).subscribe(b=>{h.next(b)},b=>console.log("error in getting train stations",b)),h.asObservable()}checkMultiSegmentDisplay(){this.isMultiSegment=this.travelLegs.length>1}showSegmentDetailsDropdown(t){this.modalBody.nativeElement.scrollTop=0,this.showCBNmsg=!1;const i=this.journeySegments[t].isCollapsed;
1this.journeySegments.forEach(o=>{o.isCollapsed=!0}),this.journeySegments[t].isCollapsed=!i}showCBNDropdown(t){if(this.journeySegments[t].isCollapsed)return this.showCBNmsg?void(this.showCBNmsg=!1):(this.showCBNmsg=!0,void this.journeySegments.forEach(i=>{i.isCollapsed=!0}));this.showCBNmsg=!0,this.journeySegments.forEach(i=>{i.isCollapsed=!0})}getTrainName(t){return t.name.desc_40?t.name.desc_40:t.name}getIcon(t){let i;const o=x.D5.SearchResults.transType[t];return i=t!==x.D5.SearchResults.transType.TRAIN.type&&o?o.icon:this.journeySegments[0]?.travelService.name||this.journeySegments[0]?.travelService.trainName,i}onDropdownOpenChange(t){t?this.focusCloseButton():this.focusDetails()}changeFocus(t,i){setTimeout(()=>{this.tripDetailsBtnElement.nativeElement.parentElement.focus()},10),i.close()}focusCloseButton(){setTimeout(()=>{const t=document.querySelector("button.close.pull-right");t&&t.focus()},0)}focusDetails(){setTimeout(()=>{document.getElementById("trip-details-trigger")?.focus()},0)}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(M.I),e.rXU(z.G),e.rXU(K.H),e.rXU(Q.x),e.rXU($.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["trip-details"]],viewQuery:function(i,o){if(1&i&&e.GBs(g,5)(ie,7)(X,7)(E,5),2&i){let l;e.mGM(l=e.lsd())&&(o.modalBody=l.first),e.mGM(l=e.lsd())&&(o.allPdf=l.first),e.mGM(l=e.lsd())&&(o.selectedPdf=l.first),e.mGM(l=e.lsd())&&(o.tripDetailsBtnElement=l.first)}},inputs:{isMultiSegment:"isMultiSegment",travelLegs:"travelLegs",aemLabels:"aemLabels",aemData:"aemData",journeySolution:"journeySolution",train:"train",aemContent:"aemContent",isScheduleView:"isScheduleView",enhancedVerion:"enhancedVerion",transferTimes:"transferTimes",pagination:"pagination",startDate:"startDate",activeTrain:"activeTrain"},outputs:{filterSchedule:"filterSchedule"},standalone:!1,features:[e.OA$],decls:7,vars:5,consts:[["tripDetailsBtn",""],["tripDetails",""],["tripDetailsBtnElement","","tripDetailsTrigger",""],["tripDetailsDialog",""],["modalBody",""],["servicesTmpl",""],["layover",""],["routeTmpl",""],[1,"trip-details"],[1,"mt-sm-3"],["ariaPopupRole","dialog","position","bottom-right","className","d-flex","btnClassName","","inlineClassName","am-modal--inline","modalClassName","am-modal--inline modal-dialog-centered modal-xs modal-inner-scroll md:!tw-max-w-[390px]",3,"openChange","buttonTpl","contentTpl","openModalInMobile","openModalInTablet","keepOpenOnBreakpointChange"],["amt-auto-test-id","trip-details-link","aria-haspopup","dialog","id","trip-details-trigger",1,"am-link","dropdown-toggle","p-0",3,"click"],["role","presentation","aria-hidden","true","alt","",1,"dropdown-details-arrow",3,"src"],["role","dialog","aria-modal","true","cdkTrapFocus","",1,"details-modal-container",3,"keydown.escape","cdkTrapFocusAutoCapture"],[1,"modal-header"],["id","trip-details-title","cdkFocusInitial","","class","modal-title text-left w-100",4,"ngIf"],["id","trip-details-desc",1,"sr-only"],["class","schedule-modal-title text-left",4,"ngIf"],["type","button","amt-auto-test-id","search-sort-filter-collapse-button",1,"close","pull-right",3,"click"],["class","dropdown-details-arrow",3,"src","alt",4,"ngIf"],["class","img-style-box",3,"src","alt",4,"ngIf"],[1,"modal-body","p-0","pt-0"],["class","dropdown-container",4,"ngIf"],["id","trip-details-title","cdkFocusInitial","",1,"modal-title","text-left","w-100"],[1,"schedule-modal-title","text-left"],[1,"dropdown-details-arrow",3,"src","alt"],[1,"img-style-box",3,"src","alt"],[1,"dropdown-container"],[4,"ngIf"],["role","tablist",1,"am-tabs","bordered-tabs",3,"justified","ariaLabel"],["role","tab","aria-selected","true",3,"heading"],["role","tabpanel",4,"ngFor","ngForOf"],["role","tabpanel"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","transfer",4,"ngIf"],["class","tw-pb-3",4,"ngIf"],[1,"row","segment-details"],[1,"col-11","col-lg-11","tw-pl-1"],[1,"travel-type"],[1,"col-1","col-lg-1","col-md-1","pl-0","pt-2","pull-right"],["class","ml-4 col-11 col-lg-11",4,"ngIf"],["class","col-11 col-lg-11 selfTrancontent",4,"ngIf"],["alt","Bus icon",1,"train-img","ml-2",3,"src"],[1,"train-name","ml-2"],[1,"pl-5"],["alt","Train icon",1,"train-img","ml-2",3,"src"],["alt","Ferry icon",1,"train-img","ml-2",3,"src"],[1,"travel-type-service"],["alt","transfer icon",1,"train-img",3,"src"],["class","pl-5 ml-1",4,"ngIf"],[1,"pl-5","ml-1"],["alt","Taxi icon",1,"train-img","ml-2",3,"src"],["data-ada","button","tabindex","0",1,"button-style",3,"click"],[3,"ngClass"],[1,"ml-4","col-11","col-lg-11"],["class","amenities mb-2",4,"ngIf"],[1,"amenities","mb
1-2"],[1,"amenities-title","pt-2"],[1,"amenities-details"],["class","d-inline",4,"ngFor","ngForOf"],[1,"d-inline"],[3,"modalTitle","text","content"],[3,"modalTitle","text","content","altText","customIcon"],[1,"col-11","col-lg-11","selfTrancontent"],[3,"innerHTML"],[1,"transfer"],[4,"ngIf","ngIfElse"],["alt","transfer icon",1,"selfTransferIcon",3,"src"],[1,"transfer-text","mr-2"],[1,"tw-block","tw-text-ada-gray-1"],[1,"tw-flex","tw-justify-between","tw-text-base"],[1,"tw-font-semibold"],[1,"tw-pb-3"],[1,"row","segment-details","cbn",3,"ngClass"],[1,"col-11","col-lg-11","tw-flex","tw-items-center","tw-pl-1"],["alt","Customs Inspection icon",1,"train-img",3,"src"],[1,"pl-2","tw-text-base"],["class","pt-4 selfTrancontent tw-pl-2",4,"ngIf"],[1,"pt-4","selfTrancontent","tw-pl-2"],[1,"dropdown-body"],[1,"amenities"],[1,"amenities-title","pt-2","text-left","mb-0"],[1,"amenities-details","m-0"],["class","d-inline text-left",4,"ngFor","ngForOf"],["class","amenities",4,"ngIf"],[1,"d-inline","text-left"],[1,"class-style"],["class","transfer",3,"ngClass",4,"ngIf"],[1,"row","segment-details","tw-pt-3"],[1,"col-11","col-lg-11"],[1,"row"],[1,"travel-type","pl-2"],["class","modal-title title",4,"ngIf"],["class","mt-4",4,"ngIf"],["class","train-stopbar",4,"ngIf"],[1,"train-name","ml-2","!tw-text-base","tw-text-prussian-blue"],[1,"pl-5","!tw-text-sm","tw-text-ada-gray-1"],["class","!tw-text-base tw-text-prussian-blue",4,"ngIf"],[1,"!tw-text-base","tw-text-prussian-blue"],[1,"train-img","ml-2",3,"alt","src"],[1,"tw-pl-3"],[1,"modal-title","title"],[1,"mt-4"],["class","selfTrancontent1",4,"ngIf"],[1,"selfTrancontent1"],[3,"trainsSolutionsSubset","trainDetails","isTrainSelected","initialRoute","cancelledTrain","content","isMobileView","destinationCode","aemLabels","segment","isTrainDelayed","journeyDuration","enhancedVersion","isRestricted"],[1,"train-stopbar"],[1,"stops-list","!tw-w-[90%]"],[1,"stops-list-item","first-ele","initial-route","tw-flex-col"],[1,"!tw-mb-0","!tw-ml-[22px]","!tw-text-sm","tw-text-ada-gray-1"],[1,"stop-details","tw-pl-[17px]"],[1,"stop-name"],[1,"stop-time","tw-whitespace-nowrap"],[1,"tw-ml-6","tw-mt-2","tw-text-ada-gray-1"],[1,"line-style"],[1,"mt-18","stops-list-item","last-ele","!tw-flex-col"],[1,"transfer",3,"ngClass"],["alt","transfer icon",1,"test",3,"src"],[1,"col-11","col-lg-11","travel-type","pl-2","tw-flex","tw-items-center","!tw-py-0"],["class","selfTrancontent tw-pl-2 tw-pt-3",4,"ngIf"],[1,"selfTrancontent","tw-pl-2","tw-pt-3"],[1,"amenities-title","pt-2","text-left","mb-0","ml-2"],["class","dropdown-body",4,"ngIf"],[1,"row","mb-4","pl-4"],["class","print-button text-left",3,"click",4,"ngIf"],[1,"print-button","text-left",3,"click","disabled"],[1,"print-button","text-left",3,"click"],["alt","Menu icon",1,"menu-icon",3,"src","alt"]],template:function(i,o){if(1&i&&(e.j41(0,"div",8)(1,"div",9)(2,"am-dropdown",10),e.bIt("openChange",function(m){return o.onDropdownOpenChange(m)}
1),e.k0s()()(),e.DNE(3,ae,6,3,"ng-template",null,0,e.C5r)(5,an,16,12,"ng-template",null,1,e.C5r)),2&i){const l=e.sdS(4),m=e.sdS(6);e.R7$(2),e.Y8G("buttonTpl",l)("contentTpl",m)("openModalInMobile",!0)("openModalInTablet",!0)("keepOpenOnBreakpointChange",!0)}},dependencies:[y.YU,y.Sq,y.bT,y.T3,Y.V6,Y.fw,Z.Ps,q.kB,ee.T,te.t,y.GH,y.vh,ne.d,B.x],styles:['@charset "UTF-8";.trip-details[_ngcontent-%COMP%]{position:relative;background-color:#fff}.trip-details[_ngcontent-%COMP%] .list-box-style[_ngcontent-%COMP%]{box-sizing:border-box;border:1px solid #d4d8d9;background-color:#fff;width:280px}.trip-details[_ngcontent-%COMP%] .segment-details[_ngcontent-%COMP%]{border:1px solid #d4d8d9;border-radius:.3rem;word-wrap:break-word;width:100%;margin-right:0;margin-left:0}.trip-details[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{overflow-y:overlay}.trip-details[_ngcontent-%COMP%] .details-modal-container[_ngcontent-%COMP%]{width:100%;min-width:300px}@media(min-width:768px){.trip-details[_ngcontent-%COMP%] .details-modal-container[_ngcontent-%COMP%]{width:390px}}.trip-details[_ngcontent-%COMP%] .details-modal-container[_ngcontent-%COMP%] .img-style-box[_ngcontent-%COMP%]{width:18px;height:18px}@media(min-width:992px){.trip-details[_ngcontent-%COMP%] .details-modal-container[_ngcontent-%COMP%]{margin-bottom:4rem}}.trip-details[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{font-weight:400}.trip-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{float:left;width:100%;margin-bottom:2px;margin-left:5px}.trip-details[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{font-size:1.2rem;text-decoration:none;background:transparent!important}.trip-details[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{display:none}.trip-details[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%] .dropdown-arrow[_ngcontent-%COMP%]{width:10px;margin-bottom:-4px;transition:all .1s ease-in-out}.trip-details[_ngcontent-%COMP%] .dropdown-toggle[aria-expanded=true][_ngcontent-%COMP%] .dropdown-arrow[_ngcontent-%COMP%]{transform:rotate(180deg)}.trip-details[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{left:auto;right:30px;width:280px;padding-bottom:11px;margin:0 0 100px;transform:translateZ(0);box-shadow:0 4px 8px #0c00331a;background-color:#fff;border:none}@media(min-width:576px){.trip-details[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{right:-1px}}@media(min-width:768px){.trip-details[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{right:30px}}.trip-details[_ngcontent-%COMP%] .dropdown-container[_ngcontent-%COMP%]{padding:0 15px 15px;line-height:17px;max-height:500px}.trip-details[_ngcontent-%COMP%] .dropdown-header[_ngcontent-%COMP%]{padding:0 0 10px;border-bottom:1px solid #d4d8d9}.trip-details[_ngcontent-%COMP%] .dropdown-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#002436;font-size:16px;font-weight:700}.trip-details[_ngcontent-%COMP%] .dropdown-header[_ngcontent-%COMP%] .dropdown-arrow[_ngcontent-%COMP%]{width:12px;margin-top:6px;transform:rotate(180deg);float:right}.trip-details[_ngcontent-%COMP%] .separator-before[_ngcontent-%COMP%]{border-left:3px dashed #f9a13f;position:relative;margin-left:5px}.trip-details[_ngcontent-%COMP%] .separator-after[_ngcontent-%COMP%]{position:relative;left:8px}.trip-details[_ngcontent-%COMP%] .selfTrancontent1[_ngcontent-%COMP%]{float:right;margin-left:22px}.trip-details[_ngcontent-%COMP%] .cbnbottom[_ngcontent-%COMP%]{position:relative;margin-left:18px;border-left:3px dashed #f9a13f;padding:9px 0}.trip-details[_ngcontent-%COMP%] .cbn[_ngcontent-%COMP%]{padding:8px 0 8px 2px}.trip-details[_ngcontent-%COMP%] .transfer[_ngcontent-%COMP%]{position:relative;display:flex;margin-top:10px}.trip-details[_ngcontent-%COMP%] .transfer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;margin-left:12px;height:37px;margin-top:2px}.trip-details[_ngcontent-%COMP%] .transfer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:2px 4px}.trip-details[_ngcontent-%COMP%] .transfer[_ngcontent-%COMP%] .transfer-text[_ngcontent-%COMP%]{font-size:1.2rem;margin-left:10px;width:100%;text-align:left}.trip-details[_ngcontent-%COMP%] .test[_ngcontent-%COMP%]{margin-left:2px}.trip-details[_ngcontent-%COMP%] .separator-before[_ngcontent-%COMP%]:before, .trip-details[_ngcontent-%COMP%] .separator-after[_ngcontent-%COMP%]:before{content:"";position:absolute;width:12px;height:12px;background:#f9a13f;border-radius:50%;left:-7px}.trip-details[_ngcontent-%COMP%] .travel-type[_ngcontent-%COMP%], .trip-details[_ngcontent-%COMP%] .travel-type-service[_ngcontent-%COMP%]{padding:6px 0;color:#002436;font-size:1.2rem}
1.trip-details[_ngcontent-%COMP%] .station-details[_ngcontent-%COMP%]{padding:0 0 20px 15px}.trip-details[_ngcontent-%COMP%] .station-details[_ngcontent-%COMP%] .station[_ngcontent-%COMP%]{font-family:OpenSans,Helvetica,Arial,"sans-serif";color:#002436;font-size:14px;font-weight:600}.trip-details[_ngcontent-%COMP%] .station-details[_ngcontent-%COMP%] .train[_ngcontent-%COMP%], .trip-details[_ngcontent-%COMP%] .station-details[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{color:#002436;opacity:.75;font-size:12px}.trip-details[_ngcontent-%COMP%] .amenities-divider[_ngcontent-%COMP%]{margin:0;border:1px solid #d4d8d9}.trip-details[_ngcontent-%COMP%] .amenities-title[_ngcontent-%COMP%]{color:#002436;font-size:14px;margin:0}.trip-details[_ngcontent-%COMP%] .amenities-details[_ngcontent-%COMP%]{padding:5px 0;color:#002436;font-size:12px;overflow:hidden}.trip-details[_ngcontent-%COMP%] .amenities-details[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;float:left;width:50%;margin-top:5px}.trip-details[_ngcontent-%COMP%] .amenities-details[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .amenities-details-text[_ngcontent-%COMP%]{margin-left:20px;line-height:18px;margin-top:.7em}.trip-details[_ngcontent-%COMP%] .class-style[_ngcontent-%COMP%]{height:14px;width:47px;color:#002436;font-family:OpenSans,Helvetica,Arial,"sans-serif";font-size:10px;letter-spacing:0;line-height:14px;text-align:center}.trip-details[_ngcontent-%COMP%] .img-style-box[_ngcontent-%COMP%]{width:18px;height:18px}.trip-details[_ngcontent-%COMP%] .schedule-modal-title[_ngcontent-%COMP%]{font-size:10px;font-weight:600;line-height:28px}.trip-details[_ngcontent-%COMP%] .print-button[_ngcontent-%COMP%]{font-weight:600;background-color:#fff}.trip-details[_ngcontent-%COMP%] .menu-icon[_ngcontent-%COMP%]{width:25px;height:25px;margin-right:10px}.trip-details[_ngcontent-%COMP%] .pdfTemplates[_ngcontent-%COMP%], .pdfDivs[_ngcontent-%COMP%]{visibility:hidden!important;height:0!important;width:0!important;overflow:hidden}.toggle-arrow[_ngcontent-%COMP%]{content:"";border:solid #002436;border-width:0 2px 2px 0;padding:4px;display:inline-block}.toggle-arrow.down[_ngcontent-%COMP%]{transform:rotate(45deg);-webkit-transform:rotate(45deg);margin-bottom:4px}.toggle-arrow.up[_ngcontent-%COMP%]{transform:rotate(-135deg);-webkit-transform:rotate(-135deg);vertical-align:middle}.toggle-white-arrow[_ngcontent-%COMP%]{content:"";border:solid #fff;border-width:0 2px 2px 0;padding:4px;display:inline-block}.toggle-white-arrow.down[_ngcontent-%COMP%]{transform:rotate(45deg);-webkit-transform:rotate(45deg);margin-bottom:4px}.toggle-white-arrow.up[_ngcontent-%COMP%]{transform:rotate(-135deg);-webkit-transform:rotate(-135deg);vertical-align:middle}.button-style[_ngcontent-%COMP%]{border:none;background-color:transparent;outline:none!important;float:right}.change-background[_ngcontent-%COMP%]{background-color:#00537e;border-radius:8px 8px 0 0;border-bottom:0px}.dropdown-box[_ngcontent-%COMP%]{box-sizing:border-box;height:102%;width:357px;border:1px solid #d4d8d9;background-color:#fff;border-radius:0 0 8px 8px;border-top:0px}.duration-style[_ngcontent-%COMP%]{height:14px;width:50px;color:#002436;font-size:10px;line-height:14px}.train-img[_ngcontent-%COMP%]{height:25px;width:25px}.train-stopbar[_ngcontent-%COMP%]{display:block}ul.stops-list[_ngcontent-%COMP%]{display:block;list-style:none;margin-left:10px;padding-left:0}li.stops-list-item[_ngcontent-%COMP%]{display:flex;position:relative}li.stops-list-item[_ngcontent-%COMP%]:before{display:block;width:18px;height:18px;min-width:18px;border-radius:50%;background-color:#00537e;line-height:20px;text-align:center;content:"";top:20px;position:absolute}li.stops-list-item.last-ele[_ngcontent-%COMP%]:before{top:0}@media(min-width:768px){.stop-details[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.stop-details[_ngcontent-%COMP%] .stop-name[_ngcontent-%COMP%]{width:58%}.stop-details[_ngcontent-%COMP%] .stop-time[_ngcontent-%COMP%]{text-align:right}}
1@media(min-width:576px){.stop-name[_ngcontent-%COMP%]{margin-bottom:0}.stop-time[_ngcontent-%COMP%]{margin-left:7px;font-weight:600}}.stop-name[_ngcontent-%COMP%]{margin-left:7px;min-height:19px;font-size:14px;letter-spacing:.1px;line-height:19px}.line-style[_ngcontent-%COMP%]{position:relative;margin-left:8px;border-left:2px solid #00537e;padding:11px 0 27px;top:-27px}@media(min-width:768px){.line-style[_ngcontent-%COMP%]{padding:11px 0 52px;top:-52px}}.inner-line-style[_ngcontent-%COMP%]{position:relative;margin-left:-10px;border-left:2px solid #00537e;padding:11px 0 24px;top:-24px}.inner-stops-line-style[_ngcontent-%COMP%]{position:relative;margin-left:-10px;border-left:2px solid #00537e;padding:11px 0 26px;top:-37px}.train-name[_ngcontent-%COMP%]{font-size:12px}@media(min-width:768px){.train-name[_ngcontent-%COMP%]{font-size:14px}}.serviceBox[_ngcontent-%COMP%]{width:85px}.dropdown-details-arrow[_ngcontent-%COMP%]{width:2rem!important}.section-line[_ngcontent-%COMP%]{position:relative}.section-line[_ngcontent-%COMP%]:after{content:"";position:absolute;width:95%;border-bottom:1px solid #d4d8d9;top:40px;left:10px}']})}}return n})()}}]);
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.