PageSourceSearch

https://www.gopili.de/_next/static/chunks/pages/[locale]/account/passengers/[passengerId]-7fe92e0dd9118c3d.js

js gopili.de collected 2026-10-08 12:20:04 UTC 12,837 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 r=arguments[t];if(null!=r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7828],{64:(e,t,r)=>{"use strict";r.d(t,{Rd:()=>i,be:()=>a,i3:()=>l});var n=r(17343),s=r(59809);let a=async(e,t,r)=>{let a=e.filter(e=>{var t;return!(null==(t=e.discountCards)?void 0:t.map(e=>!e.cardNumber&&(0,n.isCardNumberRequired)(e.cardType.id)))});if(e.every(e=>{var t;return!(null==(t=e.discountCards)?void 0:t.length)||0===e.discountCards.length}))return{isValid:!0,checkedPassengers:e,missingDiscountCardPassengers:a};if(t)for(let r of e){var i;r.discountCards=null==(i=r.discountCards)?void 0:i.map(e=>((0,n.isCardNumberRequired)(e.cardType.id)&&e.cardNumber&&(e.cardType={...e.cardType||{},providerId:t}),e)).filter(Boolean)}let l=(null==r?void 0:r.length)?r.flatMap(e=>e.subTrips.flatMap(e=>e.segments.flatMap(e=>e.departureTime))):void 0,{passengers:o}=await s._.checkDiscountCard({passengers:e,departureTimes:l});return{isValid:o.every(e=>{var t;return null==(t=e.discountCards)?void 0:t.every(e=>e.isValid)}),checkedPassengers:o,missingDiscountCardPassengers:a}},i=e=>e===n.DiscountCardValidationError.ExpiredButCanBeRenewed?"EXPIRED_RENEWABLE_DISCOUNT_CARD":e===n.DiscountCardValidationError.Expired?"EXPIRED_NOT_RENEWABLE_DISCOUNT_CARD":e===n.DiscountCardValidationError.TripNotElegible?"DISCOUNT_CARD_NOT_ACTIVE":e===n.DiscountCardValidationError.SncfBirthdateMissing?"SNCF_DISCOUNT_CARD_BIRTHDATE_MISSING":(e===n.DiscountCardValidationError.InvalidCard||n.DiscountCardValidationError.Unknown,"INVALID_DISCOUNT_CARD_NUMBER"),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={};return e.forEach((e,s)=>{var a;let l={};t.some(t=>(0,n.isNotInputPassenger)(e)&&(0,n.isNotInputPassenger)(t)&&t.id===e.id)&&(l[0]="REDUCTION_NUMBER_REMINDER"),null==(a=e.discountCards)||a.forEach((e,t)=>{if(e.isValid)return;let r=i(e.error);l[t]=r}),Object.keys(l).length&&(r[s]=l)}),r}},554:(e,t,r)=>{"use strict";r.d(t,{S:()=>d});var n=r(52840),s=r(88726),a=r(17836),i=r(65708),l=r(53239),o=r(56267);let d=()=>{let{authStatus:e}=(0,n.As)(),t=(0,i.useRouter)(),r=(0,o.Y)();(0,l.useEffect)(()=>{(0,s._s)(e)&&t.push("/".concat(r,"/account/login").concat((0,a.m7)(window.location.pathname,window.location.search)))},[e,r,t])}},6372:()=>{},9613:e=>{e.exports={"back-arrow":"styles_back-arrow__KrXYd"}},19143:(e,t,r)=>{"use strict";r.d(t,{L:()=>n.L});var n=r(92392)},19974:(e,t,r)=>{"use strict";r.d(t,{g:()=>c});var n=r(80263),s=r(77854),a=r(95217),i=r.n(a),l=r(97554),o=r.n(l);let d=i().bind(o()),c=e=>{let{role:t="banner",as:r,className:a,customPadding:i=!1,children:l}=e,o=d("header-form",a,i&&"no-padding");return(0,n.jsx)("div",{role:t,children:(0,n.jsx)("div",{className:o,children:(0,n.jsx)(s.E,{as:r,variant:"extraLarge",fontWeight:"bold",children:l})})})}},25654:(e,t,r)=>{"use strict";r.d(t,{O:()=>a});var n=r(80263),s=r(50698);let a=e=>{let{children:t}=e;return(0,s.y)(),(0,n.jsx)("div",{className:"bg-color-darker",children:t})}},26670:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(80263),s=r(29515),a=r(19974),i=r(59913),l=r(44250),o=r(17744);r(6372);let d=e=>{let{headingText:t,children:r,notificationPlace:d,fixedButtons:c,onBack:u,displayButtons:p=!0,hideButtonsOnMobile:h=!1}=e;return(0,n.jsx)("main",{id:"main-content",children:(0,n.jsx)("div",{className:"uwmg2w0",children:(0,n.jsx)(i.A,{children:(0,n.jsx)(l.G,{buttons:c,onBack:u,displayButtons:p,hideButtonsOnMobile:h,fullHeight:!0,children:(0,n.jsxs)(o.A,{children:[t&&(0,n.jsx)(a.g,{as:"h1",className:"uwmg2w1",children:t}),d&&(0,n.jsx)(s.A,{place:d}),r]})})})})})}},30990:(e,t,r)=>{"use strict";r.d(t,{I:()=>s.A,Z:()=>n.A});var n=r(93543),s=r(59606)},36195:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(80263),s=r(25164),a=r(95217),i=r.n(a),l=r(9613),o=r.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)(s.I,{icon:"backArrow",height:"revert-layer",width:"revert-layer"})}):null}},38245:e=>{e.exports={"passenger-info":"PassengerCard_passenger-info__awCTa","no-padding":"PassengerCard_no-padding__WPQut","identity-card":"PassengerCard_identity-card__OXGUV"}},44250:(e,t,r)=>{"use strict";r.d(t,{G:()=>C});var n=r(80263),s=r(95217),a=r.n(s),i=r(36195),l=r(69312),o=r.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=r(60829),p=r(53239);let h=a().bind(o()),x=e=>{let{children:t,fullHeight:r}=e,[s,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":s,"full-height":r}),children:t})};var m=r(36775),_=r(94638),f=r(9556),g=r(34120),y=r(44915),b=r(57569),v=r.n(b);
1let j=a().bind(v()),E=e=>{let{companies:t}=e,{t:r}=(0,_.B)([y.NS.Common]),s=(0,g.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:j("reassurance-payment-companies"),children:[(0,n.jsx)(m.a,{fontSize:{mobile:"11px",tablet:"13px"},color:"textPrimary",fontWeight:"semibold",marginLeft:"4px",whiteSpace:"nowrap",children:r("AUTHORIZED_AGENCY")}),(0,n.jsx)(m.a,{d:"flex",alignItems:"center",gap:"8px",marginLeft:"8px",children:t.slice(0,s?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:r("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:r("LOLLAPALOOZA_REASSURANCE_TRUSTPILOT")})]})]})},N=a().bind(o()),w=e=>{let{buttons:t,onBack:r,children:s,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:[s,r&&l&&(0,n.jsx)(i.A,{onBack:r})]}),(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)(E,{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)(E,{companies:m})})})]})]}):null},C=e=>(0,n.jsx)(u.J,{children:(0,n.jsx)(w,{...e})})},48339:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(80263),s=r(95217),a=r.n(s),i=r(30990),l=r(38245),o=r.n(l);let d=a().bind(o()),c=()=>(0,n.jsx)(i.Z,{children:Array.from({length:3}).map((e,t)=>(0,n.jsx)("div",{className:d("passenger-info"),children:(0,n.jsxs)("div",{className:d("info"),children:[(0,n.jsx)(i.I,{width:60,style:{marginTop:10}}),(0,n.jsx)(i.I,{width:120,style:{marginTop:10}})]})},t))})},57569:e=>{e.exports={"reassurance-payment-companies":"styles_reassurance-payment-companies__WDSxG"}},59913:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(80263),s=r(45732),a=r(92979),i=r(77626);let l=e=>{let{children:t}=e,r={duration:.5,ease:[.43,.13,.23,.96]};return(0,n.jsx)(s.F,{features:a.l,children:(0,n.jsx)(i.m.div,{initial:"exit",animate:"enter",exit:"exit",children:(0,n.jsx)(i.m.div,{variants:{exit:{x:100,opacity:0,transition:r},enter:{x:0,opacity:1,transition:r}},children:(0,n.jsx)(i.m.div,{initial:"initial",animate:"enter",exit:"exit",children:t})})})})}},60829:(e,t,r)=>{"use strict";r.d(t,{J:()=>l,M:()=>i});var n=r(80263),s=r(53239);let a=(0,s.createContext)(null),i=()=>(0,s.useContext)(a),l=e=>{let{children:t}=e,r=(0,s.useRef)(null);return(0,n.jsx)(a.Provider,{value:r,children:t})}},68321:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>M,default:()=>O});var n=r(80263),s=r(44915),a=r(55514),i=r(69768),l=r(48719),o=r.n(l),d=r(19143),c=r(25654),u=r(17343),p=r(69327),h=r(55851),x=r(15200),m=r(48339),_=r(77686),f=r(52840),g=r(70141),y=r(92291),b=r(26670),v=r(17836),j=r(64),E=r(62034),N=r(74770),w=r(65708),C=r(53239),A=r(94638),P=r(56267),S=r(63886),I=r(554);let R=e=>{let{passengerId:t}=e,{t:r}=(0,A.B)([s.NS.PassengerForm]),a=(0,P.Y)(),i=(0,w.useRouter)();(0,I.S)();let{refreshAuth:l}=(0,f.As)(),{data:o,refetch:d,isLoading:c}=(0,_.EG)(),{isModalOpen:R,toggleModal:T}=(0,g.A)(),{showToast:M}=(0,y.d)(),[O,k]=(0,C.useState)(!1),D=(0,C.useRef)(null),L=null==o?void 0:o.find(e=>e.id===t),B=async(e,t)=>{let{setFieldError:n,setFieldTouched:s}=t;if(!O){k(!0);try{D.current&&(e.profilePicture=await E.Z.uploadProfilePicture(D.current),D.current=null);let t=(0,u.getPassengersWithDiscountCardPrefix)([e])[0],{isValid:r,checkedPasse
1ngers:d}=await (0,j.be)([t]);if(!r){let e=(0,j.i3)(d);for(let t in e)for(let r in e[t]){var o;let a="discountCards[".concat(r,"].cardNumber");s(a,!0,!1),n(a,null==(o=e[t])?void 0:o[r])}return}let c=await E.Z.updateUserPassenger({passenger:t});c.success?(l(),i.push((0,v.gu)(a))):console.error(c)}catch(e){console.error(e),M({variant:"error",text:r("ERROR_TRY_AGAIN")})}finally{k(!1)}}},V=async()=>{L&&(await E.Z.removeUserPassenger({passengerId:L.id}),T(),await d(),await i.push((0,v.gu)(a)))};return!L||c?(0,n.jsx)(m.A,{}):(0,n.jsx)(N.l1,{initialValues:{...L},onSubmit:B,validationSchema:(0,x.Di)({isEmailRequired:!1,validatePhoneFormatWhenPresent:!0,isSexRequired:!1}),children:(0,n.jsx)(N.lV,{children:(0,n.jsx)(b.A,{fixedButtons:(0,n.jsx)(p.$n,{fullWidth:!0,type:"submit",isLoading:O,children:r("SAVE")}),onBack:()=>{i.push((0,v.gu)(a))},children:(0,n.jsxs)(p.Zp,{title:r("Modifier"),children:[(0,n.jsx)(h.A,{hideToddlerNotification:!0,emailDisabled:L.isMain,displayElements:{x:!1,discountCards:!0,email:!0,phoneNumber:!0,onLap:!L.isMain},requireElements:{email:L.isMain},hasMobilityCard:L.hasMobilityCard,hasWheelchair:L.hasWheelchair,isReducedMobilityPassenger:L.reducedMobility,onLap:L.onLap,showProfilePicture:!0,onPendingBlobChange:e=>{D.current=e}}),(0,n.jsx)(n.Fragment,{children:!L.isMain&&(0,n.jsxs)(p.az,{display:"grid",placeItems:"center",marginTop:"16px",children:[(0,n.jsx)(p.$n,{variant:"unstyled",onClick:T,children:(0,n.jsx)(p.EY,{as:"span",variant:"medium",color:"redError",children:r("REMOVE_PASSENGER")})}),R&&(0,n.jsx)(S.u,{prompt:r("CONFIRM_DELETE_PASSENGER"),confirmText:r("YES_DELETE"),cancelText:r("NO_KEEP_IT"),onConfirm:V,onClose:T})]})})]})})})})},T=e=>{let{passengerId:t}=e,{t:r}=(0,a.Bd)([s.NS.Common]);return(0,n.jsxs)(c.O,{children:[(0,n.jsx)(o(),{children:(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow"})}),(0,n.jsx)(i.bV,{noindex:!0,nofollow:!0,title:r("defaultTitle")}),(0,n.jsx)(R,{passengerId:t})]})};T.getLayout=function(e){return(0,n.jsx)(d.L,{headerProps:{showBackButton:!0},bottomNavProps:{isHidden:!0,containerClassName:"bg-color-darker"},children:e})};var M=!0;let O=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"}},69327:(e,t,r)=>{"use strict";r.d(t,{$n:()=>s.A,EY:()=>i.A,Zp:()=>a.A,az:()=>n.A});var n=r(87913),s=r(98879),a=r(93543),i=r(14073)},94627:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/account/passengers/[passengerId]",function(){return r(68321)}])},97554:e=>{e.exports={"header-form":"styles_header-form__jzhmk","no-padding":"styles_no-padding__EaV1s"}}},e=>{e.O(0,[2392,636,6593,8792],()=>e(e.s=94627)),_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.