PageSourceSearch

https://www.gopili.it/_next/static/chunks/pages/[locale]/account/passengers/add-1cedbc28fb68aef2.js

js gopili.it collected 2026-10-02 15:32:45 UTC 8,710 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 n=arguments[t];if(null!=n)for(var s in n)n.hasOwnProperty(s)&&(e[s]=n[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2534],{6372:()=>{},9613:e=>{e.exports={"back-arrow":"styles_back-arrow__KrXYd"}},19143:(e,t,n)=>{"use strict";n.d(t,{L:()=>s.L});var s=n(92392)},19974:(e,t,n)=>{"use strict";n.d(t,{g:()=>c});var s=n(80263),r=n(77854),a=n(95217),i=n.n(a),l=n(97554),o=n.n(l);let d=i().bind(o()),c=e=>{let{role:t="banner",as:n,className:a,customPadding:i=!1,children:l}=e,o=d("header-form",a,i&&"no-padding");return(0,s.jsx)("div",{role:t,children:(0,s.jsx)("div",{className:o,children:(0,s.jsx)(r.E,{as:n,variant:"extraLarge",fontWeight:"bold",children:l})})})}},25654:(e,t,n)=>{"use strict";n.d(t,{O:()=>a});var s=n(80263),r=n(50698);let a=e=>{let{children:t}=e;return(0,r.y)(),(0,s.jsx)("div",{className:"bg-color-darker",children:t})}},26670:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(80263),r=n(29515),a=n(19974),i=n(59913),l=n(44250),o=n(17744);n(6372);let d=e=>{let{headingText:t,children:n,notificationPlace:d,fixedButtons:c,onBack:u,displayButtons:x=!0,hideButtonsOnMobile:p=!1}=e;return(0,s.jsx)("main",{id:"main-content",children:(0,s.jsx)("div",{className:"uwmg2w0",children:(0,s.jsx)(i.A,{children:(0,s.jsx)(l.G,{buttons:c,onBack:u,displayButtons:x,hideButtonsOnMobile:p,fullHeight:!0,children:(0,s.jsxs)(o.A,{children:[t&&(0,s.jsx)(a.g,{as:"h1",className:"uwmg2w1",children:t}),d&&(0,s.jsx)(r.A,{place:d}),n]})})})})})}},36195:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(80263),r=n(25164),a=n(95217),i=n.n(a),l=n(9613),o=n.n(l);let d=i().bind(o()),c=e=>{let{onBack:t}=e;return t?(0,s.jsx)("button",{onClick:t,className:d("back-arrow"),children:(0,s.jsx)(r.I,{icon:"backArrow",height:"revert-layer",width:"revert-layer"})}):null}},38007:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>S,default:()=>k});var s=n(80263),r=n(44915),a=n(55514),i=n(69768),l=n(48719),o=n.n(l),d=n(19143),c=n(25654),u=n(17343),x=n(78191),p=n(55851),h=n(15200),m=n(92291),_=n(26670),f=n(17836),b=n(62034),y=n(70719),j=n(74770),g=n(65708),v=n(53239),w=n(94638),N=n(56267);let A=()=>{let{t:e}=(0,w.B)([r.NS.PassengerForm]),[t,n]=(0,v.useState)(!1),a=(0,g.useRouter)(),i=(0,N.Y)(),{showToast:l}=(0,m.d)(),o=(0,v.useRef)(null),d=async t=>{try{n(!0),o.current&&(t.profilePicture=await b.Z.uploadProfilePicture(o.current),o.current=null);let e=(0,u.getPassengersWithDiscountCardPrefix)([t])[0],s=await b.Z.addUserPassenger({passenger:e});s.success?(n(!1),a.push((0,f.gu)(i))):console.error(s)}catch(t){console.error(t),l({variant:"error",text:e("ERROR_TRY_AGAIN")}),n(!1)}};return(0,s.jsx)(j.l1,{initialValues:{...(0,y.kR)()},onSubmit:d,validationSchema:(0,h.Di)({isEmailRequired:!1,validatePhoneFormatWhenPresent:!0,isSexRequired:!1}),children:(0,s.jsx)(j.lV,{children:(0,s.jsx)(_.A,{fixedButtons:(0,s.jsx)(x.$,{fullWidth:!0,type:"submit",isLoading:t,children:e("SAVE")}),onBack:()=>void a.push((0,f.gu)(i)),children:(0,s.jsx)(x.Z,{title:e("Ajouter un passager"),children:(0,s.jsx)(p.A,{displayElements:{x:!1,discountCards:!0,email:!0,phoneNumber:!0,onLap:!0},requireElements:{email:!1},hideToddlerNotification:!0,showProfilePicture:!0,onPendingBlobChange:e=>{o.current=e}})})})})})},P=()=>{let{t:e}=(0,a.Bd)([r.NS.Common]);return(0,s.jsxs)(c.O,{children:[(0,s.jsx)(o(),{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})}),(0,s.jsx)(i.bV,{noindex:!0,nofollow:!0,title:e("defaultTitle")}),(0,s.jsx)(A,{})]})};P.getLayout=function(e){return(0,s.jsx)(d.L,{bottomNavProps:{isHidden:!0,containerClassName:"bg-color-darker"},children:e})};var S=!0;let k=P},39139:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/account/passengers/add",function(){return n(38007)}])},44250:(e,t,n)=>{"use strict";n.d(t,{G:()=>P});var s=n(80263),r=n(95217),a=n.n(r),i=n(36195),l=n(69312),o=n.n(l);let d=a().bind(o()),c=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:d("fixed-buttons-content"),children:t})};var u=n(60829),x=n(53239);let p=a().bind(o()),h=e=>{let{children:t,fullHeight:n}=e,[r,a]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{a(!!document.getElementById("bottom-nav-bar"))},[]),(0,s.jsx)("div",{className:p("fixed-buttons-flex",{"with-bottom-nav":r,"full-height":n}),children:t})};var m=n(36775),_=n(94638),f=n(83506),b=n(34120),y=n(44915),j=n(57569),g=n.n(j);let v=a().bind(g()),w=e=>{let{companies:t}=e,{t:n}=(0,_.B)([y.NS.Common]),r=(0,b.L0)();return(0,s.jsxs)(m.a,{d:"flex",alignItems:"center",justifyContent:"space-between",marginTop:"16px",children:[(null==t?void 0:t.length)?(0,s.jsxs)("div",{className:v("reassurance-payment-companies"),children:[(0,s.jsx)(m.a,{fontSize:{mobile:"11px",tablet:"13px"},color:"textPrimary",fontWeight:"semibold",marginLeft:"4px",whiteSpace:"nowrap",children:n("AUTHORIZED_AGENCY")}),(0,s.jsx)(m.a,{d:"flex",alignItems:"center",gap:"8px",marginLeft:"8px",children:t.slice(0,r?1:t.length).map(e=>(0,s.jsx)(f.v,{displayName:e.displayName,logoName:e.logoName},e.id))})]}):(0,s.jsxs)(m.a,{d:"flex",alignItems:"center",children:[(0,s.jsx)(m.I,{icon:"lock",height:"12px",width:"12px"}),(0,s.jsx)(m.a,{fontSize:{mobile:"11px",tablet:"13px"},color:"textPrimary",fontWeight:"semibold",marginLeft:"4px",children:n("LOLLAPALOOZA_REASSURANCE")})]}),(0,s.jsxs)(m.a,{d:"flex",alignItems:"center",gap:"4px",children:[(0,s.jsx)(m.I,{icon:"trustRating",width:"68px",height:"16px"}),(0,s.jsx)(m.a,{fontSize:{mobile:"11px",tablet:"13px"},color:"textPrimary",fontWeight:"semibold",whiteSpace:"nowrap",children:n("LOLLAPALOOZA_REASSURANCE_TRUSTPILOT")})]})]})},N=a().bind(o()),A=e=>{let{buttons:t,onBack:n,children:r,displayButtons:a,displayBackArrow:l,isSticky:o=!0,displayReassurancePayment:d=!1,buttonInTickets:x,hideButtonsOnMobile:p=!1,companies:m,fullHeight:_=!1}=e,f=(0,u.M)();return f?(0,s.jsxs)(h,{fullHeight:_,children:[(0,s.jsxs)(c,{children:[r,n&&l&&(0,s.jsx)(i.A,{onBack:n})]}),(0,s.jsxs)("div",{className:N("fixed-buttons-wrapper",o?"":"notSticky",p?"hideButtonsOnMobile":""),children:[!x&&a&&t&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:N("fixed-buttons-wrapper-inner"),children:[t,d&&(0,s.jsx)("div",{className:N("reassurance-payment-container"),children:(0,s.jsx)(w,{companies:m})})]})}),(0,s.jsx)("div",{ref:f,className:N("fixed-buttons-wrapper-inner")}),!t&&a&&d&&(0,s.jsx)(s.Fragment,{children:d&&(0,s.jsx)("div",{className:N("reassurance-payment-container-outside"),children:(0,s.jsx)(w,{companies:m})})})]})]}):null},P=e=>(0,s.jsx)(u.J,{children:(0,s.jsx)(A,{...e})})},57569:e=>{e.exports={"reassurance-payment-companies":"styles_reassurance-payment-companies__WDSxG"}},59913:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var s=n(80263),r=n(45732),a=n(92979),i=n(77626);let l=e=>{let{children:t}=e,n={duration:.5,ease:[.43,.13,.23,.96]};return(0,s.jsx)(r.F,{features:a.l,children:(0,s.jsx)(i.m.div,{initial:"exit",animate:"enter",exit:"exit",children:(0,s.jsx)(i.m.div,{variants:{exit:{x:100,opacity:0,transition:n},enter:{x:0,opacity:1,transition:n}},children:(0,s.jsx)(i.m.div,{initial:"initial",animate:"enter",exit:"exit",children:t})})})})}}
1,60829:(e,t,n)=>{"use strict";n.d(t,{J:()=>l,M:()=>i});var s=n(80263),r=n(53239);let a=(0,r.createContext)(null),i=()=>(0,r.useContext)(a),l=e=>{let{children:t}=e,n=(0,r.useRef)(null);return(0,s.jsx)(a.Provider,{value:n,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,n)=>{"use strict";n.d(t,{$:()=>s.A,Z:()=>r.A});var s=n(98879),r=n(93543)},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=39139)),_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.