1import{b as ne}from"./chunk-RLVH5CDD.js";import"./chunk-IDGJEC3F.js";import"./chunk-UISG7XGH.js";import"./chunk-7NELJ7BJ.js";import{a as ie}from"./chunk-HX7BDAVH.js";import{a as te}from"./chunk-C2OINVAY.js";import{a as ee}from"./chunk-TJX345SZ.js";import{b as Y}from"./chunk-QWDEXDEL.js";import"./chunk-VAPSTI6H.js";import"./chunk-DTS7DQFC.js";import{a as W}from"./chunk-O3WGNDHN.js";import"./chunk-IDAMYRM3.js";import{b as Z}from"./chunk-H24D5XYS.js";import{c as q}from"./chunk-MTPS52PI.js";import{a as Q}from"./chunk-FRANIOG6.js";import"./chunk-YY32VEBO.js";import"./chunk-SPALAOYO.js";import{c as K}from"./chunk-662XZICC.js";import"./chunk-SRHBIUOA.js";import"./chunk-F65RSXQO.js";import"./chunk-37BFIKWR.js";import"./chunk-YIW73Z7F.js";import"./chunk-24WENEMY.js";import"./chunk-U4G6IDFH.js";import"./chunk-UA77TK5E.js";import"./chunk-JXLCV3KC.js";import"./chunk-YUP4O7PA.js";import"./chunk-VX45OPQM.js";import"./chunk-D42LMYQN.js";import"./chunk-33OUW7JG.js";import"./chunk-7UMG6GAH.js";import"./chunk-EEFHK3HE.js";import{d as R}from"./chunk-7CYI6VVX.js";import"./chunk-RV7U4QKZ.js";import"./chunk-D4EV7OVS.js";import"./chunk-OXCEURZ7.js";import"./chunk-ESOXOPOP.js";import"./chunk-CNYEDN6E.js";import"./chunk-PP3VD5HN.js";import"./chunk-E67GSJZS.js";import"./chunk-EI6WOAVY.js";import"./chunk-C3E6HVFP.js";import"./chunk-NGSTBHRD.js";import"./chunk-5ZYPI6NP.js";import"./chunk-3GGUL4LO.js";import"./chunk-XS53GY5F.js";import{d as H}from"./chunk-XEV32GRI.js";import"./chunk-2EAX2XML.js";import"./chunk-AS37JCKL.js";import"./chunk-VHA6NNFB.js";import"./chunk-56YJHNYB.js";import"./chunk-QS3FVHUX.js";import"./chunk-6KNESGBS.js";import{f as X}from"./chunk-FIEPOV3L.js";import"./chunk-QNZ5PBTF.js";import"./chunk-ZRHSOQAA.js";import"./chunk-2Q7GJLW7.js";import"./chunk-IJLD3ADS.js";import{f as N}from"./chunk-HHA24DUW.js";import"./chunk-ENXHN3NY.js";import"./chunk-VPIKUZV2.js";import{h as G}from"./chunk-JA6V3LP7.js";import"./chunk-YYDSENFE.js";import{b as A}from"./chunk-CBDOLHOQ.js";import{h as J}from"./chunk-QLCNJGUD.js";import"./chunk-GIXQ2ZV6.js";import"./chunk-XIGR5Y23.js";import{h as U}from"./chunk-SOKMTEZX.js";import"./chunk-YEH6RQGE.js";import"./chunk-S6QVQOMT.js";import"./chunk-LD5QKCP6.js";import{j as z}from"./chunk-CZAV6ZVA.js";import{Eb as B,Ha as O,Lc as p,Mc as $,Nc as P,Tc as y,Uc as E,Vc as I,Wc as L,Zc as j,_b as u,ac as f,ad as c,bd as m,cc as T,cd as v,dc as V,ec as F,fc as g,gc as s,hc as d,ic as _,ld as x,na as l,ob as o,qc as S,va as M,vc as h,wa as k,xc as C}from"./chunk-AQSA2CXO.js";import{a as b,b as D}from"./chunk-4WJLCSWN.js";var oe=(t,n)=>({departure:t,arrival:n});function re(t,n){t&1&&_(0,"dd-promo-banner",1),t&2&&g("withLink",!0)}function ae(t,n){if(t&1&&(s(0,"div",4)(1,"div",8),p(2),c(3,"bfDate"),d()()),t&2){C();let a=I(12);o(2),$(v(3,1,a,"fullDate"))}}function se(t,n){if(t&1&&(y(0),c(1,"transloco"),y(2),c(3,"transloco"),_(4,"bf-alert",5),c(5,"transloco")),t&2){let a=C().$dayViewData(),e=m(1,1,`core.port.${a.route.departure.code}`),i=m(3,3,`core.port.${a.route.arrival.code}`);o(4),g("label",v(5,5,"journeyPlanner.alert.uncertainDates",j(8,oe,e,i)))}}function de(t,n){if(t&1){let a=S();s(0,"dd-crossing-information",9),h("ctaEvent",function(){M(a);let i=C();return k(i.onBookClick())}),d()}if(t&2){let a=n.$implicit,e=n.$index;g("crossing",a)("isFirst",e===0)}}var Fe=(()=>{let n=class n{constructor(){this._bottomSheet=l(K),this._router=l(J),this._localStorage=l(R),this._serializer=l(N),this._location=l(z),this._featureFlippingService=l(q),this.$dayViewData=O(void 0),this.$date=x(()=>{let e=this.$dayViewData();return e?.crossings.length>0?e.crossings[0].departureDateTime.date:void 0}),this.$orderCrossings=x(()=>this.$dayViewData()?.crossings.map(this.mapToCrossingInformation).sort((i,r)=>i.isFull===r.isFull?i.lowestPrice>=r.lowestPrice?1:-1:i.isFull?1:-1)),this.$isUncertainRoute=x(()=>{let e=this.$dayViewData();if(!e||e.crossings.length===0)return!1;let i=e.crossings[0];return Z(i.departurePortCode,i.arrivalPortCode,i.departureDateTime.date)}),this.mapToCrossingInformation=e=>D(b({},e),{isFull:e.isFull,hideActionButton:!1,crossingDuration:e.crossingDuration,lowestTicketTier:e.lowestTicketTier,lowestPrice:e.lowestPrice,petAccommodations:e.petAccommodations,availableCabins:e.availableCabins,currencyCode:e.currencyCode})}ngOnInit(){try{let e=this._localStorage.get("journeyPlanner.selected");e&&this.$dayViewData.set(this._serializer.deserialize(Y,e))}catch{this._router.navigate(["/journey-planner"])}}get hasFlexiOfferBanner(){return this._featureFlippingService.isEnabled(Q.FLEXI_OFFER)}onBookClick(){this._router.navigate(["/booking","trip"])}onClickTicketTierInformation(){this._bottomSheet.open(ie)}goBack(){this._location.back()}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=B({type:n,selectors:[["dd-journey-planner-day-view"]],hostAttrs:[1,"albatros","ignore-bf-common-ui"],features:[L([ee])],decls:19,vars:13,consts:[["mat-stroked-button","","type","button","size","medium",1,"goBack",3,"click"],[3,"withLink"],["mat-raised-button","","type","button","size","medium",1,"price-tier-button",3,"click"],[1,"grouped-container"],[1,"group-header"],["icon","info","type","warning",3,"label"],["type","info",3,"label"],[3,"crossing","isFirst"],[1,"date"],[3,"ctaEvent","crossing","isFirst"]],template:function(i,r){if(i&1&&(s(0,"button",0),h("click",function(){return r.goBack()}),s(1,"mat-icon"),p(2,"chevron_left"),d(),p(3),c(4,"transloco"),d(),u(5,re,1,1,"dd-promo-banner",1),s(6,"button",2),h("click",function(){return r.onClickTicketTierInformation()}),s(7,"mat-icon"),p(8,"info"),d(),p(9),c(10,"transloco"),d(),s(11,"div",3),y(12),u(13,ae,4,4,"div",4),u(14,se,6,11,"bf-alert",5),_(15,"bf-alert",6),c(16,"transloco"),V(17,de,1,2,"dd-crossing-information",7,T),d()),i&2){o(3),P(" ",m(4,6,"journeyPlanner.toCalendarView"),` 2`),o(2),f(r.hasFlexiOfferBanner?5:-1),o(4),P(" ",m(10,8,"journeyPlanner.ticketTiers.title"),` 3`),o(3);let w=E(r.$date());o(),f(w?13:-1),o(),f(r.$isUncertainRoute()?14:-1),o(),g("label",m(16,11,"journeyPlanner.dayNotificationInfo")),o(2),F(r.$orderCrossings())}},dependencies:[ne,U,A,W,X,te,G,H],styles:["@keyframes _ngcontent-%COMP%_ghost-lines{0%{background-position:-100px}40%{background-position:40vw}to{background-position:60vw}}[_nghost-%COMP%]{display:flex;flex-direction:column;align-self:center;margin-bottom:16px;gap:2vh;width:100%;padding:16px}@media(min-width:600px){[_nghost-%COMP%]{padding-right:40px;padding-left:40px}}@media(min-width:1280px){[_nghost-%COMP%]{padding-right:120px;padding-left:120px}}@media(min-width:1920px){[_nghost-%COMP%]{padding-right:240px;padding-left:240px}}@media(min-width:1280px){[_nghost-%COMP%]{padding-right:120px;padding-left:120px;max-width:1440px;margin-right:auto;margin-left:auto}}@media(min-width:1920px){[_nghost-%COMP%]{padding-right:240px;padding-left:240px;max-width:1680px}}[_nghost-%COMP%] .goBack[_ngcontent-%COMP%]{align-self:flex-start}[_nghost-%COMP%] .price-tier-button[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%] .grouped-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:16px}[_nghost-%COMP%] .grouped-container[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%}[_nghost-%COMP%] .grouped-container[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{color:#23308e;font-size:1.375rem;font-weight:600}[_nghost-%COMP%] .grouped-container[_ngcontent-%COMP%] .bf-alert[_ngcontent-%COMP%], [_nghost-%COMP%] .grouped-container[_ngcontent-%COMP%] .dd-crossing-information[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] dd-promo-banner[_ngcontent-%COMP%]{margin-top:32px}"],changeDetection:0});let t=n;return t})();export{Fe as JourneyPlannerDayViewComponent};
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.