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 i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1109],{4702:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/account/tickets/preBookings/groups/[preBookingId]",function(){return r(54898)}])},6372:()=>{},11596:(e,t,r)=>{"use strict";r.d(t,{Mp:()=>p,NG:()=>u,eQ:()=>l,lg:()=>s,zS:()=>d});var i,n=r(62983),a=r(38361),s=((i={})[i.OutwardRecap=0]="OutwardRecap",i[i.InwardResults=1]="InwardResults",i[i.TripRecap=2]="TripRecap",i[i.PassengerInput=3]="PassengerInput",i[i.PassengerConfirmation=4]="PassengerConfirmation",i[i.Payment=5]="Payment",i);let o={...a.Qn,step:n.GJ.withDefault(2),ot:n.tU.withDefault(""),it:n.tU,oo:n.GJ.withDefault(0),io:n.GJ,gn:n.tU,bid:n.tU},l=(0,n.rl)(o);(0,n.Eq)(o);let d=e=>l((e=>{let{outwardTripId:t,inwardTripId:r,step:i,groupName:n,bookingId:s,outwardOptionIdx:o,inwardOptionIdx:l,...d}=e;return{...(0,a.Gi)(d),ot:t,it:null!=r?r:null,step:i,gn:null!=n?n:null,bid:null!=s?s:null,oo:o,io:null!=l?l:null}})(e)),u=()=>{let[e,t]=(0,n.ab)(o,{history:"push"});return[(e=>{var t;let{ot:r,it:i,gn:n,bid:s,...o}=e;return{...(0,a.rG)(o),outwardTripId:r,inwardTripId:null!=i?i:null,step:o.step,groupName:n,bookingId:s,outwardOptionIdx:o.oo,inwardOptionIdx:null!=(t=o.io)?t:null}})(e),t]},p=()=>{let[e,t]=(0,n.ab)(a.ip,{history:"push"});return[(0,a.Js)(e),t]}},19974:(e,t,r)=>{"use strict";r.d(t,{g:()=>u});var i=r(80263),n=r(77854),a=r(95217),s=r.n(a),o=r(97554),l=r.n(o);let d=s().bind(l()),u=e=>{let{role:t="banner",as:r,className:a,customPadding:s=!1,children:o}=e,l=d("header-form",a,s&&"no-padding");return(0,i.jsx)("div",{role:t,children:(0,i.jsx)("div",{className:l,children:(0,i.jsx)(n.E,{as:r,variant:"extraLarge",fontWeight:"bold",children:o})})})}},25654:(e,t,r)=>{"use strict";r.d(t,{O:()=>a});var i=r(80263),n=r(50698);let a=e=>{let{children:t}=e;return(0,n.y)(),(0,i.jsx)("div",{className:"bg-color-darker",children:t})}},26670:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(80263),n=r(29515),a=r(19974),s=r(59913),o=r(44250),l=r(17744);r(6372);let d=e=>{let{headingText:t,children:r,notificationPlace:d,fixedButtons:u,onBack:p,displayButtons:c=!0,hideButtonsOnMobile:g=!1}=e;return(0,i.jsx)("main",{id:"main-content",children:(0,i.jsx)("div",{className:"uwmg2w0",children:(0,i.jsx)(s.A,{children:(0,i.jsx)(o.G,{buttons:u,onBack:p,displayButtons:c,hideButtonsOnMobile:g,fullHeight:!0,children:(0,i.jsxs)(l.A,{children:[t&&(0,i.jsx)(a.g,{as:"h1",className:"uwmg2w1",children:t}),d&&(0,i.jsx)(n.A,{place:d}),r]})})})})})}},30640:(e,t,r)=>{"use strict";r.d(t,{E:()=>n.A,Z:()=>i.A});var i=r(93543),n=r(14073)},54898:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>U,default:()=>Q});var i=r(80263),n=r(56267),a=r(17343),s=r(87913),o=r(98879),l=r(93543),d=r(26019),u=r(42895),p=r(14073),c=r(15850),g=r(29980),h=r(63886),x=r(68271),y=r(18414),m=r(70141),w=r(90684),f=r(26670),_=r(59809),j=r(44915),I=r(35104),T=r(26187),N=r(88797),O=r(13609),P=r(47666),v=r(55514),E=r(69768),A=r(48719),b=r.n(A),S=r(65708),k=r(53239),C=r(6011),B=r(82430),D=r(754),G=r(33595),M=r(76403),R=r(68219),L=r(11596),K=r(25654);let F=e=>{var t,r,A;let{preBookingId:R}=e,{t:F}=(0,v.Bd)([j.NS.GroupBooking]),{groupBooking:U,isLoading:Q,error:X,refetch:q}=(0,y.il)(R),z=(0,S.useRouter)(),J=(0,n.Y)(),{isModalOpen:V,toggleModal:Y}=(0,m.A)(),[H,W]=(0,k.useState)(!1),[Z,$]=(0,k.useState)(!1),ee=(0,N.jE)(),et=(0,O.n)({mutationFn:async e=>{let{passengers:t,seatAssignments:r}=e;return _._.modifyGroupBookingPassengers(String(R),{passengers:t,seatAssignments:r})},onSuccess:async()=>{await Promise.all([ee.invalidateQueries({queryKey:[y.Le,String(R)]}),ee.invalidateQueries({queryKey:[y.i6,String(R)]})])},onError:e=>{(0,I.v)(e)}}),er=(0,O.n)({mutationFn:async e=>_._.modifyGroupBookingDetails(String(R),e),onSuccess:()=>
1{$(!1),ee.invalidateQueries({queryKey:[y.Le,String(R)]})},onError:e=>{(0,I.v)(e)}}),ei=async(e,t)=>{await et.mutateAsync({passengers:e,seatAssignments:t})},en=async()=>{if(!H){W(!0);try{await _._.cancelGroupBooking(String(R)),Y(),await q(),await z.push("/".concat(J,"/account/tickets"))}catch(e){throw W(!1),e}}},ea=U?"/".concat(J,"/groups/results/purchase").concat((0,L.zS)({departureCity:U.outwardTrip.departureCity.id,arrivalCity:U.outwardTrip.arrivalCity.id,bookingId:String(U.id),step:L.lg.Payment,inwardDate:(null==(r=U.inwardTrip)?void 0:r.departureTime)?(0,P.GP)(U.inwardTrip.departureTime,"yyyy-MM-dd"):null,inwardTripId:null!=(t=null==(A=U.inwardTrip)?void 0:A.tripId)?t:null,outwardTripId:U.outwardTrip.tripId,outwardDate:(0,P.GP)(U.outwardTrip.departureTime,"yyyy-MM-dd"),passengers:U.passengers,departureStation:0,arrivalStation:0,groupName:null,outwardOptionIdx:0,inwardOptionIdx:0})):void 0,es=(0,i.jsxs)(f.A,{children:[(0,i.jsx)(w.M,{title:F("PREBOOKING_PREFIX",{ns:j.NS.Account})+" G"+R,as:"h1"}),(0,i.jsx)(u.A,{})]});return U?U.status!==a.GroupBookingStatus.PreBooked?(z.push("/".concat(J,"/account/tickets")),es):(0,i.jsxs)(K.O,{children:[(0,i.jsx)(b(),{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"})}),(0,i.jsx)(E.bV,{noindex:!0,nofollow:!0,title:F("defaultTitle")}),(0,i.jsxs)(f.A,{children:[(0,i.jsx)(w.M,{title:F("PREBOOKING_PREFIX",{ns:j.NS.Account})+" G"+R,as:"h1"}),(0,i.jsx)(l.A,{title:F("PREBOOKING_PREFIX",{ns:j.NS.Account}),children:(0,i.jsxs)(s.A,{d:"flex",flexDirection:"column",gap:"32px",children:[(0,i.jsx)(p.A,{as:"p",children:(0,i.jsx)(v.x6,{i18nKey:"PREBOOKING_VALIDITY_CARD_TEXT",components:{red:(0,i.jsx)(p.A,{color:"redError",as:"span"})},values:{deadlineFormatted:U.confirmationDateLimit?(0,P.GP)(new Date(U.confirmationDateLimit),"d MMMM yyyy",{locale:T.Qj[J]}):"-"},shouldUnescape:!0,t:F})}),!!ea&&(0,i.jsx)(o.A,{as:"a",href:ea,children:F("PREBOOKING_GO_TO_PAYMENT")}),(0,i.jsx)(s.A,{d:"flex",flexDirection:"row",gap:"16px",alignSelf:"center",children:(0,i.jsxs)(o.A,{onClick:Y,variant:"red",size:"small",disabled:H,children:[(0,i.jsx)(d.A,{icon:"crossCircle",height:"16px",width:"16px",color:"redError",title:F("PREBOOKING_CANCEL")}),F("PREBOOKING_CANCEL")]})}),V&&(0,i.jsx)(h.u,{prompt:F("PREBOOKING_CANCEL_CONFIRM_TITLE"),description:F("PREBOOKING_CANCEL_CONFIRM_DESCRIPTION"),confirmText:F("CONFIRM"),onConfirm:en,onClose:Y})]})}),U.outwardTrip.subTrips.map(e=>(0,i.jsx)(C.y,{tripType:a.TripType.Outward,subTrip:e,passengerCount:U.passengerCount,hideProviderSpecificInfo:!0,accordionClickable:!1,isOpenByDefault:!0,isAfterSales:!0},e.internalId)),U.inwardTrip&&U.inwardTrip.subTrips.map(e=>(0,i.jsx)(C.y,{tripType:a.TripType.Inward,subTrip:e,passengerCount:U.passengerCount,isAfterSales:!0},e.internalId)),(0,i.jsx)(D.M,{groupBooking:U}),(0,i.jsx)(B.e,{groupBooking:U}),(0,i.jsx)(g.A,{title:F("GROUP_INFO_TITLE"),open:!0,children:(0,i.jsx)(G.y,{booking:U,onEditDetails:()=>$(!0),onEditPassengers:ei,showSeatAssignment:!0})}),(0,i.jsx)(x.L,{}),Z&&(0,i.jsx)(c.A,{onClose:()=>!er.isPending&&$(!1),stickyButton:(0,i.jsx)(o.A,{type:"submit",form:"edit-group-details-form",variant:"primary",fullWidth:!0,isLoading:er.isPending,children:F("GROUP_MODIFY_SUBMIT")}),children:(0,i.jsx)(M.q,{formId:"edit-group-details-form",onSubmit:e=>er.mutate(e),defaultValues:{groupName:U.groupDetails.groupName,sex:U.groupDetails.sex,firstName:U.groupDetails.firstName,lastName:U.groupDetails.lastName,birthDate:{day:String(U.groupDetails.birthDate.day),month:String(U.groupDetails.birthDate.month),year:String(U.groupDetails.birthDate.year)},email:U.groupDetails.email,phone:U.groupDetails.phone}})})]})]}):es};F.getLayout=function(e){return(0,i.jsx)(R.l,{headerProps:{sticky:!0,isHeaderNarrow:!0,compactMenu:!0,showBackButton:!0,showShareButton:!0},bottomNavProps:{isHidden:!0},children:e})};var U=!0;let Q=F},59913:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(80263),n=r(45732),a=r(92979),s=r(77626);let o=e=>{let{children:t}=e,r={duration:.5,ease:[.43,.13,.23,.96]};return(0,i.jsx)(n.F,{features:a.l,children:(0,i.jsx)(s.m.div,{initial:"exit",animate:"enter",exit:"exit",children:(0,i.jsx)(s.m.div,{variants:{exit:{x:100,opacity:0,transition:r},enter:{x:0,opacity:1,transition:r}},children:(0,i.jsx)(s.m.div,{initial:"initial",animate:"enter",exit:"exit",children:t})})})})}},97554:e=>{e.exports={"header-form":"styles_header-form__jzhmk","no-padding":"styles_no-padding__EaV1s"}}},e=>{e.O(0,[596,7146,4457,3739,2392,6989,4335,3937,1108,9833,1609,8023,4037,9709,115,4415,6971,636,6593,8792],()=>e(e.s=4702)),_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.