1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="24f74ff2-791f-4ff5-9f43-3d3e9354370e",e._sentryDebugIdIdentifier="sentry-dbid-24f74ff2-791f-4ff5-9f43-3d3e9354370e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5155],{16039:(e,t,r)=>{"use strict";r.d(t,{j:()=>j});var a=r(80263),s=r(53239),i=r(48602),n=r(52840),l=r(17391),o=r(48629),c=r(65708),d=r(94638),u=r(31126),h=r(50698),p=r(15467),x=r(69768),m=r(77686),v=r(25955),f=r(44915),g=r(56267);let j=e=>{let{children:t}=e;(0,h.y)();let{t:r}=(0,d.B)([f.NS.Aftersales]),j=(0,c.useRouter)(),{email:y,reservationNumber:E}=(0,p.L)(),_=(0,v.LV)(),w=(0,g.Y)(),{auth:A,checkedAuth:b}=(0,n.As)(),N=y&&E?r("SHARE_AFTER_SALES_TITLE",{reservationNumber:E,email:y}):r("AFTER_SALES_DEFAULT_TITLE"),T="".concat(N," | ").concat(_),k=(0,s.useCallback)(()=>{j.pathname.endsWith("/details")&&y&&E?j.push((0,u.D)({locale:w,email:y,reservationNumber:E,isAuthenticated:!!(A&&b)})):j.back()},[A,b,y,w,E,j]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.E0,{children:(0,a.jsx)(m.$5,{children:(0,a.jsxs)("div",{className:"container-exchange-results bg-color-darker",children:[(0,a.jsx)(l.i,{onBack:k,displayShare:!0,pathname:j.pathname}),(0,a.jsx)("main",{id:"main-content",children:t}),(0,a.jsx)(o.c,{})]})})}),(0,a.jsx)(x.bV,{title:T,openGraph:{title:T}})]})}},31126:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});var a=r(2429),s=r(17836),i=r(18074);let n=e=>{let{locale:t,email:r,reservationNumber:n,isAuthenticated:l}=e;return l?(0,s.sZ)(t):"/".concat(t).concat((0,a.formatRoute)(i.rz,{email:r,reservationNumber:n}))}},31237:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/aftersales/[email]/[reservationNumber]/exchange/notice",function(){return r(81702)}])},32812:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var a=r(80263),s=r(95217),i=r.n(s),n=r(87913),l=r(93543),o=r(59606),c=r(91774),d=r(23351),u=r.n(d);let h=i().bind(u()),p=e=>{let{noFooter:t}=e,r=(0,a.jsxs)("div",{className:h("recap-segment"),children:[(0,a.jsxs)("div",{className:h("recap-station-time"),children:[(0,a.jsx)("div",{className:h("recap-station-time-display"),children:(0,a.jsx)(o.A,{width:32,height:25})}),(0,a.jsx)("div",{className:h("recap-station"),children:(0,a.jsx)(o.A,{width:120,height:25})})]}),(0,a.jsxs)("div",{className:h("recap-infos"),children:[(0,a.jsx)(c.A,{flipped:!0}),(0,a.jsx)("div",{className:h("transport-type"),children:(0,a.jsx)(o.A,{width:30,height:25})}),(0,a.jsx)("div",{className:h("company-logo"),children:(0,a.jsx)(o.A,{width:70,height:25})}),(0,a.jsx)("div",{className:h("duration-time"),children:(0,a.jsx)(o.A,{width:30,height:25})})]}),(0,a.jsxs)("div",{className:h("recap-station-time"),children:[(0,a.jsx)("div",{className:h("recap-station-time-display"),children:(0,a.jsx)(o.A,{width:32,height:25})}),(0,a.jsx)("div",{className:h("recap-station"),children:(0,a.jsx)(o.A,{width:120,height:25})})]})]}),s=(0,a.jsx)(n.A,{minHeight:"32px",lh:"32px",ta:"center",background:"subtleDarkBlue",__borderRadius:"0 0 13px 13px",children:(0,a.jsx)("div",{className:h("passenger-total"),children:(0,a.jsx)("div",{className:h("centered"),children:(0,a.jsx)(o.A,{width:200,height:25,className:h("loading-box")})})})});return(0,a.jsx)(l.A,{footer:t?void 0:s,children:(0,a.jsx)("div",{className:h("recap"),children:(0,a.jsx)("div",{className:h("recap-content"),children:r})})})}},38365:(e,t,r)=>{"use strict";r.d(t,{F0:()=>u});let{Axios:a,AxiosError:s,CanceledError:i,isCancel:n,CancelToken:l,VERSION:o,all:c,Cancel:d,isAxiosError:u,spread:h,toFormData:p,AxiosHeaders:x,HttpStatusCode:m,formToJSON:v,getAdapter:f,mergeConfig:g,create:j}=r(87490).A},81603:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});var a=r(9450),s=r(79365),i=r(61037);function n(e,t,r){let[n,l]=(0,s.x)(null==r?void 0:r.in,e,t),o=(n-l)/i.s0;return(0,a.u)(null==r?void 0:r.roundingMethod)(o)}},81702:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>_,default:()=>w});var a=r(80263),s=r(16039),i=r(55514),n=r(68271),l=r(48602),o=r(90684),c=r(53239),d=r(12414),u=r(2429),h=r(44250),p=r(32812),x=r(65708),m=r(17744),v=r(18074),f=r(44915),g=r(56267),j=r(6011);let y=e=>{let{email:t,reservationNumber:r}=e,{t:s}=(0,i.Bd)([f.NS.Aftersales]),y=(0,g.Y)(),E=(0,x.useRouter)(),{requestedBooking:_,isRequestedBookingLoading:w,subTripsWithConfirmedExchange:A}=(0,l.kw)(),{passengers:b}=_||{},N=async()=>{E.replace("/".concat(y).concat((0,u.formatRoute)(v.dg,{email:t,reservationNumber:r})))};return(0,c.useEffect)(()=>{w||!_||(null==A?void 0:A.length)||E.replace("/".concat(y).concat((0,u.formatRoute)(v.dg,{email:t,reservationNumber:r})))},[E,w,A,_,y,t,r]),(0,a.jsx)(h.G,{buttons:(0,a.jsx)(d.$,{onClick:N,isLoading:w,fullWidth:!0,children:s("CONFIRM")}),onBack:()=>void E.push("/".concat(y).concat((0,u.formatRoute)(v.dg,{email:t,reservationNumber:r}))),displayButtons:!0,fullHeight:!0,children:(0,a.jsxs)(m.A,{children:[(0,a.jsx)(o.M,{as:"h1",title:s("R\xe9servation")+" "+r}),(0,a.jsx)(d.E,{as:"p",w:"100%",textAlign:"center",marginTop:"4px",color:"redError",children:s("CHANGE_HAPPENED_HEADLINE")}),(0,a.jsx)(d.E,{as:"p",w:"100%",textAlign:"center",marginTop:"4px",children:s("CHANGE_NOTICE_EXPL")}),(0,a.jsxs)("div",{className:"text-field-info",style:{marginTop:16},children:[(0,a.jsx)(d.E,{as:"h2",variant:"large",fontWeight:"semibold",color:"primary",children:s("UPDATED_TRIPS")}),b&&!w&&A?A.map(e=>(0,a.jsx)(j.y,{subTrip:e,passengerCount:b.length,passengers:b,hidePrice
1:!0,highlightChangedFields:!0},e.internalId)):(0,a.jsx)(p.A,{noFooter:!0})]}),(0,a.jsx)(n.L,{})]})})},E=e=>{let{email:t,reservationNumber:r}=e;return(0,a.jsx)(y,{email:t,reservationNumber:r})};E.getLayout=function(e){return(0,a.jsx)(s.j,{children:e})};var _=!0;let w=E},84167:(e,t,r)=>{"use strict";r.d(t,{U:()=>m,b:()=>f});var a=r(53239),s=r(88797),i=r(74196),n=r(13609),l=r(52840),o=r(80263),c=r(2936),d=r(94638),u=r(92566);let h=e=>{let{id:t}=e,{t:r}=(0,d.B)();return(0,o.jsxs)(c.az,{onClick:()=>u.oR.dismiss(t),d:"flex",alignItems:"flex-start",p:"16px",borderRadius:"lg",style:{background:"var(--color-subtle-red)",border:"0.5px solid var(--color-red-error)",width:"100%"},children:[(0,o.jsx)(c.az,{flexShrink:0,marginRight:"16px",style:{color:"var(--color-red-error)"},children:(0,o.jsx)(c.In,{icon:"heartFilledShaky",color:"redError",width:"32px",height:"32px"})}),(0,o.jsxs)(c.az,{flexGrow:1,children:[(0,o.jsx)(c.az,{marginBottom:"2px",children:(0,o.jsx)(c.EY,{variant:"small",fontWeight:"semibold",style:{color:"var(--color-red-error)"},children:r("ADDED_TO_FAVOURITES_TOAST_TITLE")})}),(0,o.jsx)(c.EY,{variant:"mini",color:"textPrimary",children:r("ADDED_TO_FAVOURITES_TOAST_TEXT")})]})]})};var p=r(62034);let x="favourite-trips",m="favourites-updated",v=e=>e.split("+").map(e=>e.slice(0,-6).split("_").map(e=>e.slice(0,30)).join("_")).join("+"),f=function(){let{onAdd:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{fullAccess:t}=(0,l.As)(),r=(0,s.jE)(),{data:c,isLoading:d}=(0,i.I)({queryKey:[x],queryFn:async()=>{var e;let t=await p.Z.getFavouriteTrips();if(!t.success)throw Error("Could not fetch favourite trips");return null!=(e=t.tripIds)?e:[]},enabled:!!t,staleTime:6e4}),f=(0,a.useMemo)(()=>null!=c?c:[],[c]),g=(0,a.useMemo)(()=>new Set(f.map(v)),[f]),j=(0,a.useCallback)(e=>g.has(v(e)),[g]),y=(0,n.n)({mutationFn:async e=>{let{tripId:t,passengerCount:r,displayedPrice:a}=e;return p.Z.addFavouriteTrip(t,r,a)},onMutate:async e=>{let{tripId:t}=e;await r.cancelQueries({queryKey:[x]});let a=r.getQueryData([x]);return r.setQueryData([x],e=>[...null!=e?e:[],t]),{previous:a}},onSuccess:()=>{(null!=e?e:()=>{u.oR.custom(e=>(0,o.jsx)(h,{id:e}),{duration:4e3})})()},onError:(e,t,a)=>{(null==a?void 0:a.previous)&&r.setQueryData([x],a.previous)},onSettled:async()=>{await r.invalidateQueries({queryKey:[x]}),window.dispatchEvent(new Event(m))}}),E=(0,a.useCallback)(e=>{let t=v(e);return f.find(e=>v(e)===t)},[f]),_=(0,n.n)({mutationFn:async e=>p.Z.removeFavouriteTrip(e),onMutate:async e=>{await r.cancelQueries({queryKey:[x]});let t=r.getQueryData([x]),a=v(e);return r.setQueryData([x],e=>(null!=e?e:[]).filter(e=>v(e)!==a)),{previous:t}},onError:(e,t,a)=>{(null==a?void 0:a.previous)&&r.setQueryData([x],a.previous)},onSettled:async()=>{await r.invalidateQueries({queryKey:[x]}),window.dispatchEvent(new Event(m))}}),w=(0,a.useCallback)((e,t,r)=>{if(j(e)){let t=E(e);t&&_.mutate(t)}else y.mutate({tripId:e,passengerCount:t,displayedPrice:r})},[j,E,y,_]);return{isFavourite:j,toggleFavourite:w,isLoading:d,favouriteCount:f.length}}}},e=>{e.O(0,[596,7146,4457,3739,6989,4335,3937,1108,9833,1609,8023,8602,4037,9709,115,4415,636,6593,8792],()=>e(e.s=31237)),_N_E=e.O()}]);
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.