PageSourceSearch

https://www.gopili.de/_next/static/chunks/pages/[locale]/aftersale…/passengers/edit-24f02c4e3c15a61a.js

js gopili.de collected 2026-10-08 12:20:22 UTC 11,525 bytes, 1 lines download raw bytes

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 s=arguments[t];if(null!=s)for(var n in s)s.hasOwnProperty(n)&&(e[n]=s[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5591,9059],{9613:e=>{e.exports={"back-arrow":"styles_back-arrow__KrXYd"}},15467:(e,t,s)=>{"use strict";s.d(t,{L:()=>a});var n=s(65708),r=s(2596);let a=()=>{let e=(0,n.useRouter)();try{return(0,r.useParams)()}catch(t){return e.query}}},16039:(e,t,s)=>{"use strict";s.d(t,{j:()=>b});var n=s(80263),r=s(53239),a=s(48602),i=s(52840),l=s(17391),o=s(48629),d=s(65708),c=s(94638),u=s(31126),p=s(50698),h=s(15467),x=s(69768),m=s(77686),_=s(25955),f=s(44915),y=s(56267);let b=e=>{let{children:t}=e;(0,p.y)();let{t:s}=(0,c.B)([f.NS.Aftersales]),b=(0,d.useRouter)(),{email:g,reservationNumber:j}=(0,h.L)(),v=(0,_.LV)(),I=(0,y.Y)(),{auth:N,checkedAuth:A}=(0,i.As)(),E=g&&j?s("SHARE_AFTER_SALES_TITLE",{reservationNumber:j,email:g}):s("AFTER_SALES_DEFAULT_TITLE"),S="".concat(E," | ").concat(v),w=(0,r.useCallback)(()=>{b.pathname.endsWith("/details")&&g&&j?b.push((0,u.D)({locale:I,email:g,reservationNumber:j,isAuthenticated:!!(N&&A)})):b.back()},[N,A,g,I,j,b]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.E0,{children:(0,n.jsx)(m.$5,{children:(0,n.jsxs)("div",{className:"container-exchange-results bg-color-darker",children:[(0,n.jsx)(l.i,{onBack:w,displayShare:!0,pathname:b.pathname}),(0,n.jsx)("main",{id:"main-content",children:t}),(0,n.jsx)(o.c,{})]})})}),(0,n.jsx)(x.bV,{title:S,openGraph:{title:S}})]})}},26474:(e,t,s)=>{"use strict";s.d(t,{$n:()=>r.A,EY:()=>l.A,In:()=>i.A,Zp:()=>a.A,az:()=>n.A});var n=s(87913),r=s(98879),a=s(93543),i=s(43449),l=s(14073)},31126:(e,t,s)=>{"use strict";s.d(t,{D:()=>i});var n=s(2429),r=s(17836),a=s(18074);let i=e=>{let{locale:t,email:s,reservationNumber:i,isAuthenticated:l}=e;return l?(0,r.sZ)(t):"/".concat(t).concat((0,n.formatRoute)(a.rz,{email:s,reservationNumber:i}))}},35541:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/aftersales/[email]/[reservationNumber]/passengers/edit",function(){return s(45148)}])},36195:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var n=s(80263),r=s(25164),a=s(95217),i=s.n(a),l=s(9613),o=s.n(l);let d=i().bind(o()),c=e=>{let{onBack:t}=e;return t?(0,n.jsx)("button",{onClick:t,className:d("back-arrow"),children:(0,n.jsx)(r.I,{icon:"backArrow",height:"revert-layer",width:"revert-layer"})}):null}},38365:(e,t,s)=>{"use strict";s.d(t,{F0:()=>u});let{Axios:n,AxiosError:r,CanceledError:a,isCancel:i,CancelToken:l,VERSION:o,all:d,Cancel:c,isAxiosError:u,spread:p,toFormData:h,AxiosHeaders:x,HttpStatusCode:m,formToJSON:_,getAdapter:f,mergeConfig:y,create:b}=s(87490).A},44250:(e,t,s)=>{"use strict";s.d(t,{G:()=>E});var n=s(80263),r=s(95217),a=s.n(r),i=s(36195),l=s(69312),o=s.n(l);let d=a().bind(o()),c=e=>{let{children:t}=e;return(0,n.jsx)("div",{className:d("fixed-buttons-content"),children:t})};var u=s(60829),p=s(53239);let h=a().bind(o()),x=e=>{let{children:t,fullHeight:s}=e,[r,a]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{a(!!document.getElementById("bottom-nav-bar"))},[]),(0,n.jsx)("div",{className:h("fixed-buttons-flex",{"with-bottom-nav":r,"full-height":s}),children:t})};var m=s(36775),_=s(94638),f=s(9556),y=s(34120),b=s(44915),g=s(57569),j=s.n(g);let v=a().bind(j()),I=e=>{let{companies:t}=e,{t:s}=(0,_.B)([b.NS.Common]),r=(0,y.L0)();return(0,n.jsxs)(m.a,{d:"flex",alignItems:"center",justifyContent:"space-between",marginTop:"16px",children:[(null==t?void 0:t.length)?(0,n.jsxs)("div",{className:v("reassurance-payment-companies"),children:[(0,n.jsx)(m.a,{fontSize:{mobile:"11px",tablet:"13px"},color:"textPrimary",fontWeight:"semibold",marginLeft:"4px",whiteSpace:"nowrap",children:s("AUTHORIZED_AGENCY")}),(0,n.jsx)(m.a,{d:"flex",alignItems:"center",gap:"8px",marginLeft:"8px",children:t.slice(0,r?1:t.length).map(e=>(0,n.jsx)(f.v,{displayName:e.displayName,logoName:e.logoName},e.id))})]}):(0,n.jsxs)(m.a,{d:"flex",alignItems:"center",children:[(0,n.jsx)(m.I,{icon:"lock",height:"12px",width:"12px"}),(0,n.jsx)(m.a,{fontSize:{mobile:"11px",tablet:"13px"},color:"textPrimary",fontWeight:"semibold",marginLeft:"4px",children:s("LOLLAPALOOZA_REASSURANCE")})]}),(0,n.jsxs)(m.a,{d:"flex",alignItems:"center",gap:"4px",children:[(0,n.jsx)(m.I,{icon:"trustRating",width:"68px",height:"16px"}),(0,n.jsx)(m.a,{fontSize:{mobile:"11px",tablet:"13px"},color:"textPrimary",fontWeight:"semibold",whiteSpace:"nowrap",children:s("LOLLAPALOOZA_REASSURANCE_TRUSTPILOT")})]})]})},N=a().bind(o()),A=e=>{let{buttons:t,onBack:s,children:r,displayButtons:a,displayBackArrow:l,isSticky:o=!0,displayReassurancePayment:d=!1,buttonInTickets:p,hideButtonsOnMobile:h=!1,companies:m,fullHeight:_=!1}=e,f=(0,u.M)();return f?(0,n.jsxs)(x,{fullHeight:_,children:[(0,n.jsxs)(c,{children:[r,s&&l&&(0,n.jsx)(i.A,{onBack:s})]}),(0,n.jsxs)("div",{className:N("fixed-buttons-wrapper",o?"":"notSticky",h?"hideButtonsOnMobile":""),children:[!p&&a&&t&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:N("fixed-buttons-wrapper-inner"),children:[t,d&&(0,n.jsx)("div",{className:N("reassurance-payment-container"),children:(0,n.jsx)(I,{companies:m})})]})}),(0,n.jsx)("div",{ref:f,className:N("fixed-buttons-wrapper-inner")}),!t&&a&&d&&(0,n.jsx)(n.Fragment,{children:d&&(0,n.jsx)("div",{className:N("reassurance-payment-container-outside"),children:(0,n.jsx)(I,{companies:m})})})]})]}):null},E=e=>(0,n.jsx)(u.J,{children:(0,n.jsx)(A,{...e})})},45148:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>S,default:()=>w});var n=s(80263),r=s(16039),a=s(78191),i=s(74770),l=s(53239),o=s(94638),d=s(85080),c=s(2429),u=s(29515),p=s(55851),h=s(15200),x=s(48602),m=s(38098),_=s(44250),f=s(29226),y=s(19702),b=s(44915),g=s(15467),j=s(65708),v=s(18074),I=s(56267),N=s(87449);let A=()=>{let{t:e}=(0,o.B)([b.NS.Aftersales]),t=(0,I.Y)(),s=(0,g.L)(),{email:r,reservationNumber:A}=s,E=(0,d.wA)(),S=(0,j.useRouter)(),{countryCodes:w}=(0,m.o)(),{requestedBooking:P,refreshAfterSales:R,isSexRequired:T}=(0,x.kw)(),k=(0,l.useMemo)(()=>null==P?void 0:P.passengers,[P]),L=(0,l.useMemo)(()=>{var e;return k?null==(e=k[0])?void 0:e.email:""},[k]),[M,O]=(0,l.useState)(!1),[D,C]=(0,l.useState)(!1),[F,B]=(0,l.useState)(!1),G=async e=>{C(!0);try{(await f.n.changePassengerInfo(r,A,e)).success?(O(!0),await R()):(E((0,y.VR)(y.ME.PassengersInput,!0,y.VL.Error,"ERROR_CONTACT_US")),B(!0))}catch(e){E((0,y.VR)(y.ME.PassengersInput,!0,y.VL.Error,"ERROR_TRY_AGAIN")),console.error(e)}C(!1)};return M?(0,n.jsx)(N.O,{onContinue:()=>{S.replace("/".concat(t).concat((0,c.formatRoute)(v.dg,s)))},title:e("EDIT_PASSENGERS_CONFIRMATION_HEADER"),children:(0,n.jsx)("div",{children:(0,n.jsx)("p",{children:e("EDIT_PASSENGERS_CONFIRMATION")})})}):k?(0,n.jsx)(i.l1,{initialValues:{passengers:k.map((e,t)=>0===t?e:{...e,email:e.email===L?"":e.email})},onSubmit:e=>{G(e.passengers)},validationSchema:(0,h.DK)({countryCodes:w,isSexRequired:T}),children:(0,n.jsx)(i.lV,{children:(0,n.jsx)(i.ED,{name:"passengers",children:t=>{let s=t.form.values.passengers;return(0,n.jsxs)(_.G,{buttons:(0,n.jsx)(a.$,{fullWidth:!0,type:"submit",disabled:F,isLoading:D,loadingText:"Loading...",children:e("Continuer")}),displayButtons:!0,fullHeight:!0,children:[s.map((e,t)=>(0,n.jsx)(a.Z,{children:(0,n.jsx)(p.A,{index:t,name:"passengers[".concat(t,"]"),title:e.firstName+" "+e.lastName,displayElements:{x:!1,discountCards:!1},hideSexInput:!T,emailDisabled:!0,birthDayDisabled:!0,isLoading:!1,hasMobilityCard:e.hasMobilityCard,hasWheelchair:e.hasWheelchair,isReducedMobilityPassenger:e.reducedMobility,hideDocumentIfNotNeeded:!0},"passenger-".concat(t))},t)),(0,n.jsx)(u.A,{place:y.ME.PassengersInput,namespaces:[b.NS.PassengerForm]})]})}})})}):null},E=()=>(0,n.jsx)(A,{});E.getLayout=function(e){return(0,n.jsx)(r.j,{children:e})};var S=!0;let w=E},47472:(e,t,s)=>{"use strict";s.d(t,{D3:()=>d,bE:()=>u,q0:()=>o,xc:()=>c});var n=s(17343),r=s(67096);let a=[n.ProviderId.SNCF,n.ProviderId.TrenItalia,n.ProviderId.Eurostar,n.ProviderId.DBahn],i=e=>e?e.subTrips.map(e=>e.providerId):[],l=(e,t)=>
1{var s;return(0,r.dX)(e)&&0!==t?[]:(null!=(s=null==e?void 0:e.subTrips.map(e=>e.providerId))?s:[]).filter(e=>a.includes(e))},o=(e,t,s,n)=>[...l(e,s),...l(t,n)],d=(e,t)=>[...i(e),...i(t)].filter(e=>e===n.ProviderId.SNCF||e===n.ProviderId.Eurostar),c=(e,t)=>{if(!e)return;let s=(t?[e,t]:[e]).flatMap(e=>e.subTrips).map(e=>e.requiredIdentityDocument).filter(e=>!!(null==e?void 0:e.length));if(0===s.length)return;let r=s.reduce((e,t)=>e.filter(e=>t.includes(e)));return r.length>0?r:s.some(e=>e.includes(n.IdentityDocument.Passport))?[n.IdentityDocument.Passport]:s.some(e=>e.includes(n.IdentityDocument.NationalId))?[n.IdentityDocument.NationalId]:s.some(e=>e.includes(n.IdentityDocument.NationalityOnly))?[n.IdentityDocument.NationalityOnly]:void 0},u=(e,t)=>{let s=new Set(e.subTrips.flatMap(e=>{var t;return null!=(t=e.requiredVisa)?t:[]}));if(!t)return s.size>0?Array.from(s):void 0;let n=new Set(t.subTrips.flatMap(e=>{var t;return null!=(t=e.requiredVisa)?t:[]})),r=Array.from(s).filter(e=>n.has(e));return r.length>0?r:void 0}},57569:e=>{e.exports={"reassurance-payment-companies":"styles_reassurance-payment-companies__WDSxG"}},60829:(e,t,s)=>{"use strict";s.d(t,{J:()=>l,M:()=>i});var n=s(80263),r=s(53239);let a=(0,r.createContext)(null),i=()=>(0,r.useContext)(a),l=e=>{let{children:t}=e,s=(0,r.useRef)(null);return(0,n.jsx)(a.Provider,{value:s,children:t})}},69312:e=>{e.exports={"fixed-buttons-flex":"styles_fixed-buttons-flex__ifid9","full-height":"styles_full-height___EtcO","with-bottom-nav":"styles_with-bottom-nav__vx8Sl","fixed-buttons-content":"styles_fixed-buttons-content__QmNPV","fixed-buttons-wrapper":"styles_fixed-buttons-wrapper__ibKQ_","app-footer":"styles_app-footer__s2C3Y",notSticky:"styles_notSticky__G_3_j","fixed-buttons-wrapper-inner":"styles_fixed-buttons-wrapper-inner__mcfzz","paypal-button":"styles_paypal-button__6WzIm","paypal-button-shape-rect":"styles_paypal-button-shape-rect__JIXtc","reassurance-payment-container":"styles_reassurance-payment-container__iG_WQ",hideButtonsOnMobile:"styles_hideButtonsOnMobile__GZd28","reassurance-payment-container-outside":"styles_reassurance-payment-container-outside__2_TPk"}},78191:(e,t,s)=>{"use strict";s.d(t,{$:()=>n.A,Z:()=>r.A});var n=s(98879),r=s(93543)},87449:(e,t,s)=>{"use strict";s.d(t,{O:()=>u});var n=s(80263),r=s(26474),a=s(95217),i=s.n(a),l=s(44250),o=s(90217),d=s.n(o);let c=i().bind(d()),u=e=>{let{icon:t="checkedFilled",title:s,buttonLabel:a="OK",onContinue:i,children:o}=e,d="jackpot"===t?"220px":"48px",u="jackpot"===t?"220px":"48px";return(0,n.jsx)(l.G,{buttons:(0,n.jsx)(r.$n,{fullWidth:!0,onClick:i,children:a}),displayButtons:!0,fullHeight:!0,children:(0,n.jsx)(r.Zp,{children:(0,n.jsxs)(r.az,{d:"flex",flexDirection:"column",alignItems:"center",gap:"20px",mx:"8px",children:["checkedFilled"===t?(0,n.jsx)(r.In,{icon:t,color:"goodGreen",width:d,height:u}):(0,n.jsx)(r.In,{icon:t,width:d,height:u}),s&&(0,n.jsx)(r.EY,{variant:"h3",fontWeight:"semibold",children:s}),(0,n.jsx)("hr",{className:c("action-confirmed-separator")}),o]})})})}},90217:e=>{e.exports={"action-confirmed-separator":"styles_action-confirmed-separator__tmeDm"}}},e=>{e.O(0,[8602,636,6593,8792],()=>e(e.s=35541)),_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.