PageSourceSearch

https://www.amtrak.com/etc/designs/tickets/angular/src_app_compone…_cart_cart_component_ts.91f55df42d6865d0.js

js amtrak.com collected 2026-09-24 08:27:38 UTC 39,415 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktickets_front_end=self.webpackChunktickets_front_end||[]).push([["src_app_components_cart_cart_component_ts"],{8276(Te,h,r){r.d(h,{CartComponent:()=>re});var c=r(25136),l=r(49769),m=r(89079),v=r(96697),T=r(88141),y=r(75002),C=r(72847),f=r(26630),M=r(81618),x=r(71590),_=r(25869),u=r(45312),g=r(95012),t=r(35547),b=r(93077);let $=(()=>{class n{transform(e,...i){switch(e){case"BUS":return"train-routes/route_bus.svg";case"LMO":return"train-routes/route_taxi.svg";case"LCH":return"train-routes/route_ferry.svg";default:return"route_train.svg"}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=t.EJ8({name:"travelTypeIcon",type:n,pure:!0,standalone:!1})}}return n})();const L=(n,o,e)=>({"circle-icon--white-with-outline":n,"circle-icon--red":o,"circle-icon--blue":e}),R=(n,o)=>o.fareFamily,S=(n,o)=>o.farefamily,I=(n,o)=>o.roomName;function P(n,o){if(1&n&&t.nrm(0,"div",5),2&n){const e=t.XpG();t.Y8G("ngClass",t.sMw(1,L,"W"===e.travelLeg.color,"R"===e.travelLeg.color,"B"===e.travelLeg.color))}}function F(n,o){if(1&n&&(t.j41(0,"p",12),t.EFF(1),t.k0s()),2&n){const e=o.$implicit;t.R7$(),t.LHq(" ",e.count," ",e.name," ",e.fareFamily,"",e.position?", "+e.position:""," ")}}function A(n,o){1&n&&t.Z7z(0,F,2,4,"p",12,R),2&n&&t.Dyx(o)}function G(n,o){if(1&n&&(t.j41(0,"p",12),t.EFF(1),t.k0s()),2&n){const e=o.$implicit;t.R7$(),t.LHq(" ",e.count," ",e.name," ",e.fareFamily,"",e.position?", "+e.position:""," ")}}function j(n,o){1&n&&t.Z7z(0,G,2,4,"p",12,S),2&n&&t.Dyx(o)}function k(n,o){if(1&n&&(t.j41(0,"div",1)(1,"span",14),t.EFF(2),t.k0s(),t.j41(3,"span",15),t.EFF(4),t.k0s()()),2&n){const e=o.$implicit,i=t.XpG(3);t.R7$(2),t.Lme(" ",e.pwdRooms," ",e.roomName," "),t.R7$(2),t.Lme(" ",!i.isPassRider&&e.fareFamily?e.fareFamily:"","",e.position?", "+e.position:""," ")}}function O(n,o){if(1&n&&t.Z7z(0,k,5,4,"div",1,I),2&n){const e=t.XpG().$implicit;t.Dyx(e.pwdAccoms)}}function w(n,o){if(1&n&&(t.j41(0,"div",1)(1,"span"),t.EFF(2),t.k0s(),t.j41(3,"span",15),t.EFF(4),t.nrm(5,"popup-tooltip",16),t.k0s()()),2&n){const e=t.XpG().$implicit,i=t.XpG();t.R7$(2),t.Lme(" ",e.regularAccoms," ",e.roomName," "),t.R7$(2),t.Lme(" ",!i.isPassRider&&e.fareFamily?e.fareFamily:"","",e.position?", "+e.position:""," "),t.R7$(),t.Y8G("modalTitle",e.serviceName+" "+e.travelClass)("content",i.getTravelClassUrl(e.serviceName,e.travelClass,e.roomType))("altText","Alt Text")("iconTrigger",!0)}}function B(n,o){if(1&n&&(t.j41(0,"div",13),t.nVh(1,O,2,0),t.nVh(2,w,6,8,"div",1),t.k0s()),2&n){const e=o.$implicit;t.R7$(),t.vxM(e.pwdAccoms?1:-1),t.R7$(),t.vxM(e.regularAccoms?2:-1)}}let D=(()=>{class n{constructor(e){this.cartStore=e,this.env=u.c}ngOnInit(){this.accoms$=this.cartStore.selectRegularAccomsByTravelLeg$(this.journeyLegIndex,this.travelLegId),this.pwdAccoms$=this.cartStore.selectPWDAccoms$(this.journeyLegIndex,this.travelLegId)}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(g.N))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["accommodation-line-item"]],inputs:{travelLeg:"travelLeg",journeyLegIndex:"journeyLegIndex",travelLegId:"travelLegId",travelLegIndex:"travelLegIndex"},decls:25,vars:22,consts:[["travelInfo",""],[1,"d-flex","align-items-center"],[1,"d-flex","gap-3","align-items-center"],[1,"am-body"],["alt","multicity arrow",1,"multicity-arrow",2,"width","18px",3,"src"],[1,"circle-icon","passrider-fare-policy","mt-1",3,"ngClass"],[1,"travel-service","d-flex","text-center","ml-auto","align-items-center"],[1,"travel-service-icon"],["alt","",3,"src"],[1,"d-inline-block","ml-2"],[1,"travel-service-number"],[1,"mt-1"],[1,"am-body","am-text-amtrak-blue","font-semi","mb-0"],[1,"info-travel-text","flex-column","align-items-start"],[1,"d-inline"],[1,"d-flex","align-items-center","pl-1"],[1,"cart-tooltip",3,"modalTitle","content","altText","iconTrigger"]],template:function(i,a){if(1&i&&(t.j41(0,"div",1)(1,"div",2)(2,"div")(3,"span",3),t.EFF(4),t.k0s()(),t.j41(5,"div"),t.nrm(6,"img",4),t.k0s(),t.j41(7,"div")(8,"span",3),t.EFF(9),t.k0s()(),t.nVh(10,P,1,5,"div",5),t.k0s(),t.j41(11,"div",6)(12,"div",7),t.nrm(13,"img",8),t.nI1(14,"travelTypeIcon"),t.k0s(),t.j41(15,"div",9)(16,"span",10),t.EFF(17),t.k0s()()()(),t.j41(18,"div",11),t.nVh(19,A,2,0),t.nI1(20,"async"),t.nVh(21,j,2,0),t.nI1(22,"async"),t.DNE(23,B,3,2,"ng-template",null,0,t.C5r),t.k0s()),2&i){let s,p;
1t.R7$(3),t.BMQ("amt-auto-test-id","auto-id-cart-journeyLeg-"+a.journeyLegIndex+"-travelLeg-"+a.travelLegIndex+"-source-city-code"),t.R7$(),t.JRh(a.travelLeg.origin.code),t.R7$(2),t.Y8G("src",t.VkB("",a.env.damAssetPath,"/icons/f-icon_one-way-arrow.svg"),t.B4B),t.R7$(2),t.BMQ("amt-auto-test-id","auto-id-cart-journeyLeg-"+a.journeyLegIndex+"-travelLeg-"+a.travelLegIndex+"-destination-city-code"),t.R7$(),t.JRh(a.travelLeg.destination.code),t.R7$(),t.vxM(a.travelLeg.color?10:-1),t.R7$(2),t.BMQ("amt-auto-test-id","auto-id-cart-journeyLeg-"+a.journeyLegIndex+"-travelLeg-"+a.travelLegIndex+"-train-icon"),t.R7$(),t.Y8G("src",t.ai1("",a.env.damAssetPath,"/icons/",t.bMT(14,16,a.travelLeg.travelService.type)),t.B4B),t.R7$(3),t.BMQ("amt-auto-test-id","auto-id-cart-journeyLeg-"+a.journeyLegIndex+"-travelLeg-"+a.travelLegIndex+"-trainService-number"),t.R7$(),t.SpI(" ",a.travelLeg.travelService.number),t.R7$(),t.BMQ("amt-auto-test-id","auto-id-cart-journeyLeg-"+a.journeyLegIndex+"-travelLeg-"+a.travelLegIndex+"-selected-accommodation"),t.R7$(),t.vxM((s=t.bMT(20,18,a.pwdAccoms$))?19:-1,s),t.R7$(2),t.vxM((p=t.bMT(22,20,a.accoms$))?21:-1,p)}},dependencies:[f.G,l.YU,b.T,l.Jj,$],styles:[".travel-service[_ngcontent-%COMP%]{min-width:5.5rem}.travel-service-icon[_ngcontent-%COMP%]{width:12px}@media(min-width:768px){.travel-service-icon[_ngcontent-%COMP%]{width:18px}}.travel-service-number[_ngcontent-%COMP%]{font-size:1rem}@media(min-width:768px){.travel-service-number[_ngcontent-%COMP%]{font-size:1.4rem}}"],changeDetection:0})}}return n})();var d=r(85802),U=r(9310),X=r(50779),V=r(6189),E=r(26429);r(92229);const N=[[["generic-trip-summary-accordion-expansion-content"]]],Y=["generic-trip-summary-accordion-expansion-content"],H=n=>({active:n}),Q=n=>({$implicit:n,type:"departure"}),z=n=>({$implicit:n,type:"arrival"});function J(n,o){1&n&&t.eu8(0)}function Z(n,o){if(1&n&&(t.j41(0,"div"),t.DNE(1,J,1,0,"ng-container",14),t.k0s()),2&n){const e=t.XpG(),i=t.sdS(29);t.R7$(),t.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",t.eq3(2,Q,e.departureDateTime))}}function q(n,o){1&n&&t.eu8(0)}function W(n,o){if(1&n&&(t.j41(0,"div"),t.DNE(1,q,1,0,"ng-container",14),t.k0s()),2&n){const e=t.XpG(),i=t.sdS(29);t.R7$(),t.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",t.eq3(2,z,e.arrivalDateTime))}}function K(n,o){if(1&n&&(t.j41(0,"span",15),t.EFF(1),t.nI1(2,"date"),t.nI1(3,"date"),t.k0s(),t.j41(4,"span",16),t.EFF(5),t.nI1(6,"date"),t.k0s()),2&n){const e=o.$implicit,i=o.type;t.BMQ("amt-auto-test-id","auto-id-cart-"+i+"-time"),t.R7$(),t.Lme("",t.i5U(2,5,e,"h:mm"),"",t.i5U(3,8,e,"aaaaa")),t.R7$(3),t.BMQ("amt-auto-test-id","auto-id-cart-"+i+"-date"),t.R7$(),t.JRh(t.i5U(6,11,e,"EE, MMM d"))}}let tt=0,et=(()=>{class n{constructor(){this.size="default",this.type="default",this.env=u.c,this.expanded=!1,this.id="generic-trip-summary-card-"+tt++}toggleAccordion(){this.expanded=!this.expanded}get arrowImage(){return"default"===this.type?"trip_type_one-way_blue.svg":"trip_type_multi-ride_blue.svg"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["generic-trip-summary-card-accordion"]],inputs:{aemLabels:"aemLabels",originStationCode:"originStationCode",destinationStationCode:"destinationStationCode",departureDateTime:"departureDateTime",arrivalDateTime:"arrivalDateTime",originStationFacility:"originStationFacility",destinationStationFacility:"destinationStationFacility",className:"className",size:"size",type:"type"},standalone:!1,ngContentSelectors:Y,decls:30,vars:38,consts:[["dateTimeDisplay",""],[1,"am-card","d-flex","gap-5","px-3","pt-2","position-relative",3,"click","ngClass"],[1,"flex-grow-1","d-flex","flex-column","flex-1","position-relative","gap-2"],[1,"font-light","font-xxl","pb-0"],[3,"headless","expanded"],[1,"accordion--body"],[1,"am-body--xs","station-facility-name"],[1,"position-absolute",2,"top","10px","right","0"],["role","presentation",1,"trip-arrows",3,"src"],[1,"flex-grow-1","d-flex","flex-column","flex-1","gap-2"],["autoId","accordion-summary",3,"headless","expanded"],["tabindex","0","role","button",1,"accordion-caret-wrapper","position-absolute",3,"keydown.enter","keydown.space"],[1,"sr-only"],["alt","",1,"accordion-caret",3,"ngClass","src"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"am-body--xs","font-semi"],[1,"am-body--xs","ml-2","font-semi"]],template:function(i,a){1&i&&(t.NAR(N),t.j41(0,"div",1),t.bIt("click",function(){return a.toggleAccordion()}),t.j41(1,"div",2)(2,"div")(3,"span",3),t.EFF(4),t.k0s()(),t.nVh(5,Z,2,4,"div"),t.j41(6,"am-accordion",4)(7,"div",5)(8,"span",6),t.EFF(9),t.k0s()()(),t.j41(10,"div",7),t.nrm(11,"img",8),t.k0s()(),t.j41(12,"div",9)(13,"div")(14,"span",3),t.EFF(15),t.k0s()(),t.nVh(16,W,2,4,"div"),t.j41(17,"am-
1accordion",10)(18,"div",5)(19,"span",6),t.EFF(20),t.k0s()()()(),t.j41(21,"div",11),t.bIt("keydown.enter",function(){return a.toggleAccordion()})("keydown.space",function(){return a.toggleAccordion()}),t.j41(22,"span",12),t.EFF(23," Additional Information about your trip selections "),t.k0s(),t.nrm(24,"img",13),t.k0s()(),t.j41(25,"am-accordion",4)(26,"div",5),t.SdG(27),t.k0s()(),t.DNE(28,K,7,14,"ng-template",null,0,t.C5r)),2&i&&(t.AVh("pb-4","default"===a.size)("pb-3","sm"===a.size)("pt-3","sm"===a.size),t.Y8G("ngClass",a.className),t.R7$(3),t.BMQ("amt-auto-test-id","auto-id-cart-departure-city-code"),t.R7$(),t.JRh(a.originStationCode),t.R7$(),t.vxM(a.departureDateTime?5:-1),t.R7$(),t.Y8G("headless",!0)("expanded",a.expanded),t.R7$(),t.BMQ("amt-auto-test-id","auto-id-cart-departure-station"),t.R7$(2),t.JRh(a.originStationFacility),t.R7$(2),t.AVh("pass-icon","passtravel"===a.type),t.Y8G("src",t.ai1("",a.env.damAssetPath,"/icons/",a.arrowImage),t.B4B),t.R7$(3),t.BMQ("amt-auto-test-id","auto-id-cart-arrival-city-code"),t.R7$(),t.JRh(a.destinationStationCode),t.R7$(),t.vxM(a.arrivalDateTime?16:-1),t.R7$(),t.Y8G("headless",!0)("expanded",a.expanded),t.R7$(),t.BMQ("amt-auto-test-id","auto-id-cart-arrival-station"),t.R7$(2),t.JRh(a.destinationStationFacility),t.R7$(),t.BMQ("id",a.id+"-accordion-button")("aria-expanded",a.expanded)("aria-controls",a.id+"-accordion")("amt-auto-test-id","auto-id-cart-dropdown-button"),t.R7$(3),t.Y8G("src",t.VkB("",a.env.damAssetPath,"/icons/select_outline_blue.svg"),t.B4B)("ngClass",t.eq3(36,H,a.expanded)),t.R7$(),t.Y8G("headless",!0)("expanded",a.expanded),t.BMQ("id",a.id+"-accordion"))},dependencies:[l.YU,l.T3,c.Mj,l.vh],styles:[".accordion-caret-wrapper[_ngcontent-%COMP%]{width:18px;top:10px;right:5px}.trip-arrows[_ngcontent-%COMP%]{width:18px}.trip-arrows.pass-icon[_ngcontent-%COMP%]{width:24px}.accordion-caret[_ngcontent-%COMP%]{transition:.25s}.accordion-caret.active[_ngcontent-%COMP%]{transform:rotate(180deg)}.station-facility-name[_ngcontent-%COMP%]{line-height:1.2em}"],changeDetection:0})}}return n})(),nt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=t.FsC({type:n,selectors:[["generic-trip-summary-accordion-expansion-content"]],hostAttrs:[1,"d-block"],standalone:!1})}}return n})();var it=r(12450),at=r(46528);const ot=["cartModal"],rt=["cartBtn"],st=(n,o,e,i,a,s,p,se,le,ce,de,pe,me,_e,ue,ge,Ce,fe,he,ve)=>({pricingUnit:n,isMultiRide:o,isRailPass:e,isPassrider:i,isDollars:a,cartTotal:s,isCartAvailable:p,journeyLegs:se,discountsAndPromosApplied:le,isAutoTrain:ce,hasServiceRequests:de,hasVehicles$:pe,hasNonChangeableFare:me,isPassTravel:_e,hasRoom:ue,safPrice:ge,selectTotalSAFPrice:Ce,selectTotalDiscountPriceApplied:fe,selectCartHasBreakdown:he,travelerCount:ve}),lt=n=>({"pt-3 pb-2":n}),ct=n=>({"mb-4":n}),dt=(n,o)=>({origin:n,destination:o}),pt=n=>({multiRideSolution:n}),mt=n=>({details:n}),_t=n=>({$implicit:n}),ut=n=>({$implicit:n,showTooltip:!0}),gt=n=>({$implicit:n,showTotal:!0,showTooltip:!0}),Ct=(n,o)=>o.name;function ft(n,o){if(1&n&&t.nrm(0,"accommodation-line-item",44),2&n){const e=t.XpG(),i=e.$implicit,a=e.$index,s=t.XpG(2).$index;t.Y8G("journeyLegIndex",s)("travelLegIndex",a)("travelLeg",i)("travelLegId",i.id)}}function ht(n,o){if(1&n&&(t.j41(0,"div"),t.nVh(1,ft,1,4,"accommodation-line-item",44),t.k0s()),2&n){const e=o.$implicit;t.R7$(),t.vxM(!e.isSelfTransfer||e.isSelfTransfer&&"Self Transfer"!==e.travelService.name?1:-1)}}function vt(n,o){if(1&n&&(t.j41(0,"generic-trip-summary-card-accordion",41),t.nI1(1,"stationData"),t.nI1(2,"stationData"),t.j41(3,"generic-trip-summary-accordion-expansion-content",42)(4,"div",43),t.Z7z(5,ht,2,1,"div",null,t.BUC().trackBytravelLegId,!0),t.k0s()()()),2&n){const e=o,i=t.XpG().$implicit,a=t.XpG(4);t.Y8G("originStationFacility",t.ai1("",t.i5U(1,10,e.origin.code,a.FIELDNAMES.StationName32)," ",a.getFormattedFacilityName(e.origin.code)))("destinationStationFacility",t.ai1("",t.i5U(2,13,e.destination.code,a.FIELDNAMES.StationName32)," ",a.getFormattedFacilityName(e.destination.code)))("originStationCode",e.origin.code)("destinationStationCode",e.destination.code)("departureDateTime",e.origin.schedule.departureDateTime)("arrivalDateTime",e.destination.schedule.arrivalDateTime),t.R7$(5),t.Dyx(i.selectedJourneyLegOption.travelLegs)}}function Tt(n,o){if(1&n&&(t.nVh(0,vt,7,16,"generic-trip-summary-card-accordion",41),t.nI1(1,"async"),t.nI1(2,"async")),2&n){let e;const i=o.$index,a=t.XpG(4);t.vxM((e=t.l_i(5,dt,t.bMT(1,1,a.cartStore.selectOrigin$(i)),t.bMT(2,3,a.cartStore.selectDestination$(i))))?0:-1,e)}}function yt(n,o){if(1&n&&t.Z7z(0,Tt,3,8,null,null,t.fX1),2&n){const e=t.XpG(2);t.Dyx(e.journeyLegs)}}function Mt(n,o){if(1&n&&(t.nrm(0,"generic-trip-summary-card-accordion",45),t.nI1(1,"stationData"),t.nI1(2,"stationData")),2&n){const e=o.$implicit,i=t.XpG(6);t.Y8G("originStationFacility",t.ai1("",t.i5U(1,8,e.origin.code,i.FIELDNAMES.StationName32)," ",i.getFormattedFacilityName(e.origin.code)))("destinationStationFacility",t.ai1("",t.i5U(2,11,e.destination.code,i.FIELDNAMES.StationName32)," ",i.getFormattedFacilityName(e.destination.code)))("originStationCode",e.origin.code)("destinationStationCode",e.destination.code)}}function xt(n,o){1&n&&t.Z7z(0,Mt,3,14,"generic-trip-summary-card-accordion",45,t.fX1),2&n&&t.Dyx(o.multiRideSolution)}function bt(n,o){if(1&n&&(t.nVh(0,xt,2,0),t.nI1(1,"async")),2&n){let e;const i=t.XpG(4);t.vxM((e=t.eq3(3,pt,t.bMT(1,1,i.multiRideSolution$)))?0:-1,e)}}function $t(n,o){if(1&n&&(t.j41(0,"div",46)(1,"h3",47),t.EFF(2),t.k0s(),t.j41(3,"p",48),t.EFF(4),t.nI1(5,"date"),t.k0s()()),2&n){const e=o,i=t.XpG(5);t.R7$(2),t.SpI(" ",e.farePlanType," "),t.R7$(2),t.E5c(" ",e.passClass," | ",i.aemLabels.expiresLabel," ",t.i5U(5,4,e.passExpiry,"MMMM dd, YYYY")," ")}}function Lt(n,o){if(1&n&&(t.nVh(0,$t,6,7,"div",46),t.nI1(1,"async")),2&n){let e;const i=t.XpG(4);t.vxM((e=t.bMT(1,1,i.railPassDetails$))?0:-1,e)}}function Rt(n,o){if(1&n&&t.nVh(0,bt,2,5)(1,Lt,2,3),2&n){const e=t.XpG(2);t.vxM(e.isMultiRide?0:1)}}function St(n,o){if(1&n&&(t.nrm(0,"am-info-popover",50),t.nI1(1,"async")),2&n){const e=t.XpG(4);t.Y8G("popoverInfo",t.bMT(1,2,e.cartStore.selectAncillaryTooltipContent$("nonChangeableFareToolTipText")))("popoverColor","blue")}}function It(n,o){if(1&n&&(t.j41(0,"p",25),t.nrm(1,"span",49),t.EFF(2),t.nVh(3,St,2,4,"am-info-popover",50),t.nI1(4,"async"),t.k0s()),2&n){const e=t.XpG(3);t.BMQ("amt-auto-test-id","auto-id-cart-nonChangeable-fare-text"),t.R7$(2),t.SpI(" ",null==e.aemLabels?null:e.aemLabels.nonChangeableFareText," "),t.R7$(),t.vxM(t.bMT(4,3,e.cartStore.selectAncillaryTooltipContent$("nonChangeableFareToolTipText")).message?3:-1)}}function Pt(n,o){if(1&n&&(t.j41(0,"li",28)(1,"span",30),t.EFF(2),t.k0s(),t.j41(3,"span",31),t.nrm(4,"span",32),t.nI1(5,"farePricingUnit"),t.nI1(6,"decimalSuperscript"),t.k0s()()),2&n){const e=t.XpG(2),i=t.XpG();t.R7$(),t.BMQ("amt-auto-test-id","auto-id-cart-fare-per-traveler-text"),t.R7$(),t.SpI(" ",null==i.aemLabels||null==i.aemLabels.safCartLabels?null:i.aemLabels.safCartLabels.farePerText," "),t.R7$(2),t.Y8G("innerHTML",t.bMT(6,7,t.i5U(5,4,e.safPrice,e.pricingUnit)),t.npT),t.BMQ("amt-auto-test-id","auto-id-cart-fare-per-traveler-price")}}function Ft(n,o){if(1&n&&t.EFF(0),2&n){const e=t.XpG(3);t.SpI(" ",null==e.aemLabels||null==e.aemLabels.safCartLabels?null:e.aemLabels.safCartLabels.totalFareText," ")}}function At(n,o){if(1&n&&(t.EFF(0),t.nI1(1,"async")),2&n){const e=t.XpG(3);t.SpI(" ",t.bMT(1,1,e.farePlanType$)," ")}}function Gt(n,o){if(1&n&&(t.j41(0,"li",33)(1,"span",51),t.EFF(2),t.k0s()()),2&n){const e=t.XpG(2),i=t.XpG();t.R7$(2),t.LHq(" ",null==i.aemLabels||null==i.aemLabels.safCartLabels?null:i.aemLabels.safCartLabels.forText," ",e.travelerCount," ",e.travelerCount>1?(null==i.aemLabels||null==i.aemLabels.safCartLabels?null:i.aemLabels.safCartLabels.travelerText)+"s":null==i.aemLabels||null==i.aemLabels.safCartLabels?null:i.aemLabels.safCartLabels.travelerText," ",e.discountsAndPromosApplied&&e.discountsAndPromosApplied.length?null==i.aemLabels||null==i.aemLabels.safCartLabels?null:i.aemLabels.safCartLabels.discountText:""," ")}}function jt(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.nI1(3,"date"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Lme(" ",t.i5U(2,2,e.details.notValidBefore,"MMMM d")," - ",t.i5U(3,5,e.details.notValidAfter,"d, yyyy")," ")}}function kt(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.nI1(3,"date"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Lme(" ",t.i5U(2,2,e.details.notValidBefore,"MMMM d")," - ",t.i5U(3,5,e.details.notValidAfter,"MMMM d, yyyy")," ")}}function Ot(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.nI1(3,"date"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Lme(" ",t.i5U(2,2,e.details.notValidBefore,"MMMM d, yyyy")," - ",t.i5U(3,5,e.details.notValidAfter,"MMMM d, yyyy")," ")}}function wt(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.i5U(2,1,e.details.notValidBefore,"MMMM yyyy")," ")}}function Bt(n,o){if(1&n&&(t.j41(0,"p",52),t.nVh(1,jt,4,8,"span"),t.nVh(2,kt,4,8,"span"),t.nVh(3,Ot,4,8,"span"),t.nVh(4,wt,3,4,"span"),t.k0s()),2&n){const e=o;t.R7$(),t.vxM(e.details.isSameYearAsPass&&e.details.isSameMonthAsPass&&!e.details.isMonthlyPass?1:-1),t.R7$(),t.vxM(!e.details.isSameYearAsPass||e.details.isSameMonthAsPass||e.details.isMonthlyPass?-1:2),t.R7$(),t.vxM(e.details.isSameYearAsPass||e.details.isMonthlyPass?-1:3),t.R7$(),t.vxM(e.details.isSameYearAsPass&&e.details.isMonthlyPass?4:-1)}}function Dt(n,o){if(1&n&&(t.j41(0,"div",34),t.nVh(1,Bt,5,4,"p",52),t.nI1(2,"async"),t.k0s()),2&n){let e;const i=t.XpG(3);t.R7$(),t.vxM((e=t.eq3(3,mt,t.bMT(2,1,i.multiRidePassDetails$)))?1:-1,e)}}function Ut(n,o){if(1&n&&(t.j41(0,"div",34)(1,"p",52)(2,"span"),t.EFF(3),t.nI1(4,"async"),t.k0s()()()),2&n){const e=t.XpG(3);t.R7$(3),t.JRh(t.bMT(4,1,e.farePlanDescription$))}}function Xt(n,o){if(1&n&&(t.nrm(0,"span",55),t.nI1(1,"farePricingUnit"),t.nI1(2,"decimalSuperscript")),2&n){const e=t.XpG(3);t.Y8G("innerHTML","-"+t.bMT(2,5,t.i5U(1,2,e.selectTotalDiscountPriceApplied,e.pricingUnit)),t.npT),t.BMQ("amt-auto-test-id","auto-id-cart-total-discount-price")}}function Vt(n,o){1&n&&t.eu8(0)}function Et(n,o){if(1&n&&(t.j41(0,"am-accordion",36)(1,"div",53)(2,"div",54),t.EFF(3),t.k0s()(),t.j41(4,"am-accordion-trigger-suffix"),t.nVh(5,Xt,3,7,"span",55),t.k0s(),t.j41(6,"div",56),t.DNE(7,Vt,1,0,"ng-container",57),t.k0s()()),2&n){t.XpG();const e=t.sdS(49),i=t.XpG(),a=t.XpG();t.R7$(2),t.BMQ("amt-auto-test-id","auto-id-cart-discount-text"),t.R7$(),t.SpI(" ",null==a.aemLabels?null:a.aemLabels.discountsText," "),t.R7$(2),t.vxM(i.selectCartHasBreakdown&&i.selectTotalDiscountPriceApplied?5:-1),t.R7$(),t.BMQ("amt-auto-test-id","auto-id-cart-discount-price"),t.R7$(),t.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",t.eq3(6,_t,i.discountsAndPromosApplied))}}function Nt(n,o){1&n&&t.eu8(0)}function Yt(n,o){if(1&n&&(t.j41(0,"am-accordion",58)(1,"div",53)(2,"div",59),t.EFF(3),t.k0s()(),t.j41(4,"div",56),t.DNE(5,Nt,1,0,"ng-container",57),t.k0s()()),2&n){t.XpG(2);const e=t.sdS(49),i=t.XpG(2);t.R7$(2),t.BMQ("amt-auto-test-id","auto-id-cart-serviceRequest-text"),t.R7$(),t.SpI(" ",null==i.aemLabels?null:i.aemLabels.serviceRequestsText," "),t.R7$(2),t.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",t.eq3(4,ut,o))}}
1function Ht(n,o){if(1&n&&(t.nVh(0,Yt,6,6,"am-accordion",58),t.nI1(1,"async")),2&n){let e;const i=t.XpG(3);t.vxM((e=t.bMT(1,1,i.serviceRequests$))?0:-1,e)}}function Qt(n,o){if(1&n&&(t.j41(0,"div",62),t.nrm(1,"span",55),t.nI1(2,"farePricingUnit"),t.nI1(3,"decimalSuperscript"),t.k0s()),2&n){const e=t.XpG(),i=t.XpG(3);t.R7$(),t.Y8G("innerHTML",t.bMT(3,5,t.i5U(2,2,e.totalPrice,i.pricingUnit)),t.npT),t.BMQ("amt-auto-test-id","auto-id-cart-vehicle-price")}}function zt(n,o){if(1&n&&(t.j41(0,"div",60)(1,"div")(2,"span",61),t.EFF(3),t.k0s()(),t.nVh(4,Qt,4,7,"div",62),t.nI1(5,"async"),t.k0s()),2&n){let e;const i=t.XpG(4);t.R7$(2),t.BMQ("amt-auto-test-id","auto-id-cart-vehicle-text"),t.R7$(),t.SpI(" ",o.name," "),t.R7$(),t.vxM((e=t.bMT(5,3,i.fare$))?4:-1,e)}}function Jt(n,o){if(1&n&&(t.nVh(0,zt,6,5,"div",60),t.nI1(1,"async")),2&n){let e;const i=t.XpG(3);t.vxM((e=t.bMT(1,1,i.firstVehicle$))?0:-1,e)}}function Zt(n,o){if(1&n&&(t.nrm(0,"span",55),t.nI1(1,"farePricingUnit"),t.nI1(2,"decimalSuperscript")),2&n){const e=t.XpG(3),i=t.XpG();t.Y8G("innerHTML",t.bMT(2,4,t.i5U(1,1,i.ancillaryTotal(),e.pricingUnit)),t.npT)}}function qt(n,o){1&n&&t.eu8(0)}function Wt(n,o){if(1&n&&(t.j41(0,"am-accordion",37)(1,"div",53)(2,"div",59)(3,"h3",63)(4,"span",64),t.EFF(5),t.k0s()()()(),t.j41(6,"am-accordion-trigger-suffix"),t.nVh(7,Zt,3,6,"span",55),t.k0s(),t.j41(8,"div",56),t.DNE(9,qt,1,0,"ng-container",57),t.k0s()()),2&n){t.XpG();const e=t.sdS(49),i=t.XpG(2);t.Y8G("ariaLabel",(null==i.aemLabels?null:i.aemLabels.addOnText)+" total "+i.ancillaryTotal()),t.R7$(2),t.BMQ("amt-auto-test-id","auto-id-cart-addOn-text"),t.R7$(3),t.JRh(null==i.aemLabels?null:i.aemLabels.addOnText),t.R7$(2),t.vxM(i.ancillaryTotal()?7:-1),t.R7$(2),t.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",t.eq3(6,gt,i.ancillaries().addOns))}}function Kt(n,o){if(1&n&&(t.nrm(0,"am-info-popover",68),t.nI1(1,"async")),2&n){const e=t.XpG().$implicit,i=t.XpG(4);t.Y8G("imgAlt",t.VkB("",e.name||e.text," info"))("popoverInfo",t.bMT(1,4,i.cartStore.selectAncillaryTooltipContent$(e.n
1ame||e.text)))("popoverColor","blue")}}function te(n,o){if(1&n&&(t.j41(0,"div"),t.nrm(1,"span",69),t.nI1(2,"farePricingUnit"),t.nI1(3,"decimalSuperscript"),t.k0s()),2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.R7$(),t.Y8G("innerHTML","-"+t.bMT(3,4,t.i5U(2,1,e.discountAmount,i.pricingUnit)),t.npT)}}function ee(n,o){if(1&n&&(t.j41(0,"div"),t.nrm(1,"span",70),t.nI1(2,"farePricingUnit"),t.nI1(3,"decimalSuperscript"),t.k0s()),2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.R7$(),t.Y8G("innerHTML",t.bMT(3,4,t.i5U(2,1,e.totalPrice,i.pricingUnit)),t.npT)}}function ne(n,o){if(1&n&&(t.j41(0,"li",67)(1,"div",52)(2,"span",25),t.EFF(3),t.k0s(),t.nVh(4,Kt,2,6,"am-info-popover",68),t.nI1(5,"async"),t.k0s(),t.nVh(6,te,4,6,"div")(7,ee,4,6,"div"),t.k0s()),2&n){const e=o.$implicit,i=t.XpG().showTooltip,a=t.XpG(2),s=t.XpG();t.R7$(3),t.E5c(" ",e.count," ",e.isAdditional?null==s.aemLabels?null:s.aemLabels.additionalText:""," ",e.count>1?e.name+"s"||0:e.name||e.text," "),t.R7$(),t.vxM(i&&t.bMT(5,5,s.cartStore.selectAncillaryTooltipContent$(e.name||e.text)).message?4:-1),t.R7$(2),t.vxM(a.selectCartHasBreakdown&&e.discountAmount?6:e.totalPrice?7:-1)}}function ie(n,o){if(1&n&&(t.nrm(0,"hr",65),t.j41(1,"ul",66),t.Z7z(2,ne,8,7,"li",67,Ct),t.k0s()),2&n){const e=o.$implicit;t.R7$(2),t.Dyx(e)}}function ae(n,o){if(1&n){const e=t.RV6();t.j41(0,"section",7)(1,"div",8)(2,"div",9)(3,"div")(4,"h1",10),t.EFF(5),t.k0s()(),t.j41(6,"div",11)(7,"div",12)(8,"div",13),t.nrm(9,"img",14),t.k0s(),t.j41(10,"p",15)(11,"span",16),t.EFF(12),t.nI1(13,"farePricingUnit"),t.k0s(),t.nrm(14,"span",17),t.nI1(15,"farePricingUnit"),t.nI1(16,"decimalSuperscript"),t.k0s(),t.j41(17,"button",18),t.bIt("click",function(){d.eBV(e);const a=t.XpG(2);return d.Njj(a.closeModal())}),t.nrm(18,"img",19),t.k0s()()()(),t.j41(19,"div",20),t.EFF(20),t.k0s(),t.j41(21,"div",21)(22,"div",22),t.nVh(23,yt,2,0)(24,Rt,2,1),t.k0s(),t.j41(25,"div",23)(26,"h2",24),t.EFF(27),t.k0s(),t.nVh(28,It,5,5,"p",25),t.nrm(29,"hr",26),t.j41(30,"ul",27),t.nVh(31,Pt,7,9,"li",28),t.j41(32,"li",29)(33,"span",30),t.nVh(34,Ft,1,1)(35,At,2,3),t.k0s(),t.j41(36,"span",31),t.nrm(37,"span",32),t.nI1(38,"farePricingUnit"),t.nI1(39,"decimalSuperscript"),t.k0s()(),t.nVh(40,Gt,3,4,"li",33),t.k0s()(),t.nVh(41,Dt,3,5,"div",34),t.nVh(42,Ut,5,3,"div",34),t.j41(43,"div",35),t.nVh(44,Et,8,8,"am-accordion",36),t.nVh(45,Ht,2,3),t.nVh(46,Jt,2,3),t.nVh(47,Wt,10,8,"am-accordion",37),t.k0s(),t.DNE(48,ie,4,0,"ng-template",null,2,t.C5r),t.j41(50,"div",38)(51,"p",15)(52,"span",39),t.EFF(53),t.k0s(),t.nrm(54,"span",40),t.nI1(55,"farePricingUnit"),t.nI1(56,"decimalSuperscript"),t.k0s()()()()()}if(2&n){const e=t.XpG(),i=t.XpG();t.R7$(2),t.Y8G("ngClass",t.eq3(54,lt,e.isPassTravel)),t.R7$(3),t.SpI(" ",e.isPassTravel?null==i.aemLabels?null:i.aemLabels.passSummaryText:null==i.aemLabels?null:i.aemLabels.tripSummaryText," "),t.R7$(4),t.Y8G("src",t.VkB("",i.env.damAssetPath,"/icons/cart.svg"),t.B4B)("alt",t.mNQ(null==i.aemLabels?null:i.aemLabels.cartIconAltText)),t.R7$(3),t.SpI(" Cart Balance ",t.i5U(13,36,e.cartTotal||0,e.pricingUnit)," "),t.R7$(2),t.Y8G("innerHTML",t.bMT(16,42,t.i5U(15,39,e.cartTotal||0,e.pricingUnit)),t.npT),t.BMQ("amt-auto-test-id","auto-id-cart-"+e.pricingUnit+"-value"),t.R7$(3),t.BMQ("amt-auto-test-id","auto-id-cart-close-button"),t.R7$(),t.Y8G("src",t.VkB("",i.env.damAssetPath,"/icons/close-icon.svg"),t.B4B),t.R7$(),t.jOp("aria-label",i.tripType),t.BMQ("amt-auto-test-id","auto-id-cart-trip-type"),t.R7$(),t.SpI(" ",i.tripType," "),t.R7$(3),t.vxM(e.isPassTravel?24:23),t.R7$(3),t.BMQ("amt-auto-test-id","auto-id-cart-price-summary-heading"),t.R7$(),t.SpI(" ",null==i.aemLabels?null:i.aemLabels.priceSummaryText," "),t.R7$(),t.vxM(e.hasNonChangeableFare?28:-1),t.R7$(),t.Y8G("ngClass",t.eq3(56,ct,e.isPassTravel)),t.R7$(2),t.vxM(e.selectCartHasBreakdown&&e.safPrice?31:-1),t.R7$(2),t.BMQ("amt-auto-test-id","auto-id-cart-fare-text"),t.R7$(),t.vxM(e.isPassTravel?35:34),t.R7$(3),t.Y8G("innerHTML",t.bMT(39,47,t.i5U(38,44,i.cartFare(),e.pricingUnit)),t.npT),t.BMQ("amt-auto-test-id","auto-id-cart-fare-price"),t.R7$(3),t.vxM(e.selectCartHasBreakdown?-1:40),t.R7$(),t.vxM(e.isMultiRide?41:-1),t.R7$(),t.vxM(e.isRailPass?42:-1),t.R7$(2),t.vxM(e.discountsAndPromosApplied&&e.discountsAndPromosApplied.length?44:-1),t.R7$(),t.vxM(e.isMultiRide||e.isRailPass||!e.hasServiceRequests?-1:45),t.R7$(),t.vxM(e.isAutoTrain&&e.hasVehicles$?46:-1),t.R7$(),t.vxM(i.hasAncillaries()&&i.ancillaries()?47:-1),t.R7$(5),t.BMQ("amt-auto-test-id","auto-id-cart-balance-due-text"),t.R7$(),t.SpI(" ",null==i.aemLabels?null:i.aemLabels.balanceDueText," "),t.R7$(),t.Y8G("innerHTML",t.bMT(56,52,t.i5U(55,49,e.cartTotal||0,e.pricingUnit)),t.npT),t.BMQ("amt-auto-test-id","auto-id-cart-balance-due-price")}}function oe(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",3)(1,"button",4,0),t.nI1(3,"farePricingUnit"),t.bIt("click",function(){d.eBV(e);const a=t.XpG();return d.Njj(a.openCart())})("keydown.enter",function(){d.eBV(e);const a=t.XpG();return d.Njj(a.openCart())}),t.nrm(4,"img",5)(5,"span",6),t.nI1(6,"farePricingUnit"),t.k0s(),t.DNE(7,ae,57,58,"ng-template",null,1,t.C5r),t.k0s()}if(2&n){const e=o,i=t.XpG();t.R7$(),t.Y8G("disabled",!e.isCartAvailable)("ariaLabel",null==i.aemLabels||null==i.aemLabels.cartLabel?null:i.aemLabels.cartLabel.replace("{{cartAmount}}",t.brH(3,5,e.cartTotal||0,e.pricingUnit,!0))),t.R7$(3),t.Y8G("src",t.VkB("",i.env.damAssetPath,"/icons/minicart_blue.svg"),t.B4B),t.R7$(),t.Y8G("innerHTML",t.brH(6,9,e.cartTotal||0,e.pricingUnit,!0),t.npT)}}let re=(()=>{class n{constructor(e,i,a,s,p){this.store=e,this.cartStore=i,this.ecomStorage=a,this.modalService=s,this.injector=p,this.env=u.c,this.typeDiscountLabel=this.ecomStorage.getSessionStorage(_.D5.StorageName.IBMAPPINGS,!0),this.pricingUnit$=this.cartStore.selectPricingUnit$,this.isCartAvailable$=this.cartStore.selectIsCartAvailable$,this.isMultiRide$=this.cartStore.selectIsMultiRide$,this.isRailPass$=this.cartStore.selectIsRailPass$,this.isPassrider$=this.cartStore.selectIsPassrider$,this.isDollars$=this.cartStore.selectIsDollars$,this.cartTotal$=this.cartStore.selectCartTotal$,this.journeyLegs$=this.cartStore.selectJourneyLegs$,this.fare$=this.cartStore.selectFare$,this.discountsAndPromosApplied$=this.cartStore.selectAp
1pliedDiscountsAndPromos$,this.isAutoTrain$=this.cartStore.selectIsAutoTrain$,this.hasServiceRequests$=this.cartStore.selectHasServiceRequests$,this.serviceRequests$=this.cartStore.selectServiceRequests$,this.hasAncillaries=(0,m.ot)(this.cartStore.selectHasAncillaries$),this.ancillaries=(0,m.ot)(this.cartStore.selectCartAncillaries$),this.ancillaryTotal=(0,m.ot)(this.cartStore.selectCartAncillariesTotal$),this.hasVehicles$=this.cartStore.selectHasVehicles$,this.firstVehicle$=this.cartStore.selectFirstVehicle$,this.multiRideSolution$=this.cartStore.selectMultiRideSolution$,this.isPassTravel$=this.cartStore.selectIsPassTravel$,this.hasNonChangeableFare$=this.cartStore.selectHasNonChangeableFare$,this.farePlanType$=this.cartStore.selectFarePlanType$,this.farePlanDescription$=this.cartStore.selectFarePlanDescription$,this.multiRidePassDetails$=this.cartStore.selectMultiRidePassDetails$,this.railPassDetails$=this.cartStore.selectRailPassDetails$,this.hasRoomInCart$=this.cartStore.selectHasRoomsInCart$,this.travelerCount$=this.cartStore.selectPassengersCount$,this.safPrice$=this.cartStore.selectSAFPrice$,this.selectTotalSAFPrice$=this.cartStore.selectTotalSAFPrice$,this.selectTotalDiscountPriceApplied$=this.cartStore.selectTotalDiscountPriceApplied$,this.selectCartHasBreakdown$=this.cartStore.selectCartHasBreakdown$,this.cartFare=(0,m.ot)(this.cartStore.selectCartTotalFarePrice$),this.FIELDNAMES=_.D5.FieldNames}ngOnInit(){this.aemLabels=(0,x.Q0)(this.content),this.cartStore.fetchSSRCodes();const e=this.ecomStorage.getSessionStorage(_.D5.StorageName.TOOLTIP_JSON_URL,!1);e&&this.store.dispatch(M.Ix({url:e}))}openCart(){const e=this.aemLabels?.safCartLabels?.tripText,i=(0,m.ot)(this.cartStore.selectCart$,{injector:this.injector})()?.journeyRequest?.[0],a=i?.type?.toString()===_.D5.JourneyRequest.Type.MULTI_CITY;this.tripType=(i?.type?.toString().replace(a?"":"-"," ").replace(e,"")??"")+" "+(e??""),this.cartModalRef=this.modalService.show(this.cartModal,c.KC.getStyleExt(c.Fw.LightModal,c.LQ.SM,c.az.RG,c.a$.TopRight,"am-cart-modal",!0)),this.modalHiddenListener()}modalHiddenListener(){this.cartModalRef.onHidden.pipe((0,v.s)(1),(0,T.M)(()=>this.cartBtn.nativeElement.focus())).subscribe()}getFormattedFacilityName(e){const i=new C.x(this.ecomStorage).transform(e,this.FIELDNAMES.FacilityName32);if(i)return"- "+i}closeModal(){this.cartModalRef.hide()}trackBytravelLegId(e,i){return i.id}focus(e){e.focus(),e.select&&e.select()}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(U.il),t.rXU(g.N),t.rXU(y.x),t.rXU(X.I8),t.rXU(d.zZn))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cart"]],viewQuery:function(i,a){if(1&i&&t.GBs(ot,5)(rt,5),2&i){let s;t.mGM(s=t.lsd())&&(a.cartModal=s.first),t.mGM(s=t.lsd())&&(a.cartBtn=s.first)}},inputs:{content:"content"},features:[t.Jv_([g.N])],decls:21,vars:62,consts:[["cartBtn",""],["cartModal",""],["dropdownContentTpl",""],["id","cart-content",1,"cart-modal"],["type","button","tabindex","0","aria-haspopup","dialog","amt-auto-test-id","cart-component-btn",1,"btn-cart-button","btn","d-flex","justify-content-center","align-items-center",3,"click","keydown.enter","disabled","ariaLabel"],["alt","","role","presentation","aria-hidden","true",1,"shoping-cart",3,"src"],[1,"text-black",3,"innerHTML"],["id","cartModal","cdkTrapFocus",""],[1,"modal-body","pb-4","px-3","px-md-4"],[1,"d-flex","trip-summary-text",3,"ngClass"],[1,"font-sm","pb-0","trip-heading"],[1,"ml-auto","p-0"],[1,"amount-number","mb-0","pb-3","d-flex","align-items-center","justify-content-end"],[1,"cart-img-wrapper","position-relative"],["role","presentation",1,"shoping-cart","position-absolute",3,"src","alt"],[1,"d-flex","align-items-center","mb-0","justify-content-between"],[1,"sr-only"],["aria-hidden","true",1,"currency",3,"innerHTML"],["type","button","aria-label","Close Cart Modal",1,"close","pull-right","pl-3",3,"click"],["alt","","role","presentation",3,"src"],[1,"trip-type-header","pb-3",3,"aria-label"],[1,"pt-0"],[1,"d-flex","flex-column","gap-5","gap-lg-7"],[1,"mb-3"],[1,"font-sm","py-2","mt-4"],[1,"am-body"],["aria-hidden","true",1,"mt-0",3,"ngClass"],[1,"d-flex","flex-column","justify-content-center","align-items-center","mx-3","list-unstyled"],[1,"w-100","d-flex","align-items-center","justify-content-between","mb-4"],[1,"w-100","d-flex","align-items-center","justify-content-between"],[1,"am-body-lg","p-0","d-block"],[1,"ml-auto","am-body-lg","d-block"],[3,"innerHTML"],[1,"w-100","d-flex","justify-content-end","mt-2"],[1,"mx-3"],[1,"d-flex","flex-column","gap-3","mx-3"],["color","inline",1,"am-well--small-caret"],["color","inline",1,"am-well--small-caret",3,"ariaLabel"],[1,"am-bg-light-gray","px-4","py-3","mt-4"],[1,"am-subtitle","font-semi","p-0","m-0","d-block"],[1,"balance-due--total","am-subtitle","font-semi","text-right","p-0","m-0","d-block",3,"innerHTML"],[3,"originStationCode","destinationStationCode","departureDateTime","arrivalDateTime","originStationFacility","de
1stinationStationFacility"],[1,"am-bg-light-blue"],[1,"d-flex","flex-column","px-3","py-3","gap-5","am-card","border-top-0"],[3,"journeyLegIndex","travelLegIndex","travelLeg","travelLegId"],["size","sm","type","passtravel",3,"originStationCode","destinationStationCode","originStationFacility","destinationStationFacility"],[1,"am-card","am-card--white","pb-3","px-3","pt-2"],["amHeading","","size","xl",1,"opacity-100","font-light","mb-0","pb-0",2,"font-size","3.4rem"],[1,"am-body--sm","pb-0","pl-1","mb-0"],[1,"circle-icon","circle-icon--orange","mt-1"],["imgAlt","Non Changeable Fare Tool Tip Text info",1,"popover-info-icon",3,"popoverInfo","popoverColor"],[1,"rooms-discount-text"],[1,"p-0"],[1,"accordion--well"],[1,"title","my-2","am-body-lg"],[1,"text-small","text-uppercase","price-text","text-right","p-0","am-body-lg",3,"innerHTML"],[1,"accordion--body"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["color","light",1,"inline-accordion"],[1,"title","my-2"],[1,"d-flex","justify-content-center","align-items-center","mb-3"],[1,"am-body-lg","p-0"],[1,"ml-auto"],[1,"d-flex","font-regular"],[1,"d-block"],["aria-hidden","true",1,"mt-0"],[1,"d-flex","flex-column","gap-3","pl-0"],[1,"d-flex","justify-content-between","m-0"],[1,"popover-info-icon",3,"popoverInfo","popoverColor","imgAlt"],[1,"text-small","text-uppercase","price-text","text-right","p-0","discount-per-text",3,"innerHTML"],[1,"text-small","text-uppercase","price-text","text-right","p-0",3,"innerHTML"]],template:function(i,a){if(1&i&&(t.nVh(0,oe,9,13,"div",3),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async"),t.nI1(5,"async"),t.nI1(6,"async"),t.nI1(7,"async"),t.nI1(8,"async"),t.nI1(9,"async"),t.nI1(10,"async"),t.nI1(11,"async"),t.nI1(12,"async"),t.nI1(13,"async"),t.nI1(14,"async"),t.nI1(15,"async"),t.nI1(16,"async"),t.nI1(17,"async"),t.nI1(18,"async"),t.nI1(19,"async"),t.nI1(20,"async")),2&i){let s;t.vxM((s=t.zJS(41,st,[t.bMT(1,1,a.pricingUnit$),t.bMT(2,3,a.isMultiRide$),t.bMT(3,5,a.isRailPass$),t.bMT(4,7,a.isPassrider$),t.bMT(5,9,a.isDollars$),t.bMT(6,11,a.cartTotal$),t.bMT(7,13,a.isCartAvailable$),t.bMT(8,15,a.journeyLegs$),t.bMT(9,17,a.discountsAndPromosApplied$),t.bMT(10,19,a.isAutoTrain$),t.bMT(11,21,a.hasServiceRequests$),t.bMT(12,23,a.hasVehicles$),t.bMT(13,25,a.hasNonChangeableFare$),t.bMT(14,27,a.isPassTravel$),t.bMT(15,29,a.hasRoomInCart$),t.bMT(16,31,a.safPrice$),t.bMT(17,33,a.selectTotalSAFPrice$),t.bMT(18,35,a.selectTotalDiscountPriceApplied$),t.bMT(19,37,a.selectCartHasBreakdown$),t.bMT(20,39,a.travelerCount$)]))?0:-1,s)}},dependencies:[l.MD,l.YU,l.T3,f.G,c.Mj,c.HQ,c.Mz,V.kB,E.Z,et,nt,D,l.Jj,l.vh,C.x,it.i,at.x],styles:['@charset "UTF-8";#cartModal[_ngcontent-%COMP%]{overflow-y:auto}#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]{background-color:#fff}#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .trip-type-header[_ngcontent-%COMP%]{font-size:16px;line-height:normal}@media(min-width:768px){#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .trip-type-header[_ngcontent-%COMP%]{font-size:20px}}#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .cart-img-wrapper[_ngcontent-%COMP%]{width:40px;height:40px}#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .shoping-cart[_ngcontent-%COMP%]{width:75px;top:0;left:0}#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .amount-number[_ngcontent-%COMP%]{line-height:30px}#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .amount-number[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;letter-spacing:.15px;line-height:.2}@media(min-width:992px){#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .amount-number[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:600}}#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{right:15px;top:13px;cursor:pointer}#cartModal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:1.4rem}am-accordion.inline-accordion[_ngcontent-%COMP%]     button{justify-content:start!important;padding:0;border:none;width:fit-content}am-accordion.inline-accordion[_ngcontent-%COMP%]     button .accordion--well{margin-right:.5rem}
1am-accordion.inline-accordion[_ngcontent-%COMP%]     button .am-well-caret{width:1.8rem}.am-body-lg[_ngcontent-%COMP%]{font-size:1.4rem}@media(min-width:768px){.am-body-lg[_ngcontent-%COMP%]{font-size:1.6rem}}.discount-price[_ngcontent-%COMP%]{width:26rem;position:absolute;text-align:end;z-index:0}@media(min-width:768px){.discount-price[_ngcontent-%COMP%]{width:35rem}}am-accordion[_ngcontent-%COMP%]{z-index:1}.rooms-discount-text[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#666969}.balance-due--total[_ngcontent-%COMP%]{line-height:1em}.btn-cart-button[_ngcontent-%COMP%]{padding:8px;border:0;box-shadow:none;color:#002436;font-size:14px}.btn-cart-button[_ngcontent-%COMP%]:focus{outline:thin #00344d dotted!important}.btn-cart-button[_ngcontent-%COMP%]   .shoping-cart[_ngcontent-%COMP%]{width:50px}.btn-cart-button.disabled[_ngcontent-%COMP%], .btn-cart-button[disabled][_ngcontent-%COMP%]{opacity:1}.discount-per-text[_ngcontent-%COMP%]{color:#666969}@media(min-width:992px){#cartModal[_ngcontent-%COMP%]   .modal-full-height[_ngcontent-%COMP%]{height:100%}}.popover-info-icon[_ngcontent-%COMP%]     .am-info-popover img{margin-left:-.4rem!important;width:24px!important;margin-top:-.3rem!important}  .accordion-caret-wrapper{width:24px!important}  .am-well-caret{width:2.4rem!important}.trip-heading[_ngcontent-%COMP%]{padding-top:.6rem;font-weight:600}@media(min-width:768px){.trip-heading[_ngcontent-%COMP%]{padding-top:.2rem}}'],changeDetection:0})}}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.