1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1432],{97306:function(e,t,a){var l=a(85893),o=a(67294),s=a(93542),n=a(68399),i=a(69927),r=a(69207),c=a(94059),d=a(14327),u=s&&"object"==typeof s&&"default"in s?s:{default:s};t.u=({portalId:e="modal-portal",testId:t="modal-component",classes:a,focusLock:s,children:b,ariaLabel:m,shouldLockBodyScroll:x=!0,onClose:h})=>{let{isMounted:g}=c.useMounted(),p=o.useRef(null);return r.useBodyScrollLock(x&&g,p),l.jsx(n.Portal,Object.assign({id:e},{children:l.jsx(u.default,Object.assign({autoFocus:!0,returnFocus:!0},s,{children:l.jsx("div",Object.assign({className:d.cn("fixed top-0 left-0 z-20 flex justify-center items-center w-full h-full bg-global-black/50 overflow-hidden",null==a?void 0:a.overlay),onClick:h},{children:l.jsx("div",Object.assign({role:"dialog","aria-modal":"true","data-testid":t,className:d.cn("bg-global-white w-[272px] sm:w-[784px] lg:max-w-[784px]",null==a?void 0:a.dialog),onKeyDown:e=>{e.code===i.keyboardCodes.Escape&&h(e)},onClick:e=>e.stopPropagation()},m?{"aria-label":m}:{},{children:l.jsx("div",Object.assign({className:d.cn("relative w-full",null==a?void 0:a.content)},{children:l.jsx("div",Object.assign({className:"h-full",ref:p},{children:b}))}))}))}))}))}))}},68399:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var l=a(67294),o=a(73935);t.Portal=({children:e,id:t="__ROOT_PORTAL__"})=>{let a=l.useRef(),[s,n]=l.useState(!1);return l.useEffect(()=>{if(a.current=document.getElementById(t),!a.current){let e=document.createElement("div");e.setAttribute("id",t),document.body.appendChild(e),a.current=e}n(!0)},[]),a.current&&s?o.createPortal(e,a.current):null}},33352:function(e,t,a){a.d(t,{y:function(){return d}});var l=a(85893);a(67294);var o=a(94184),s=a.n(o),n=a(68866),i=a(16678),r=a(47408);let c={"#191919":"text-global-white bg-global-black hover:!bg-neutral-700 active:!bg-neutral-700","#FFFFFF":"text-global-black bg-global-white hover:bg-neutral-200 hover:text-global-black active:bg-neutral-200","#FFB549":"cx-emphasis-btn"},d=e=>{let{title:t,subtitle:a,heroCTALinks:o,imagePublicId:d,imageSignedURLs:u,imageAltText:b="",bgColorClass:m="bg-global-black",heroContainerStyle:x="",overlayOpacity:h=0,gaComponentId:g=""}=e;return(0,l.jsxs)("div",{className:s()("w-full pt-64 lg:pb-[128px]",x),"data-testid":"hero-container","data-ga-role":r.XJ.link,"data-ga-component-id":g,children:[(0,l.jsxs)("div",{className:"w-full h-full absolute top-0 ".concat(m),children:[(0,l.jsx)("div",{className:s()("absolute w-full h-full z-10",{["opacity-".concat(h," ").concat(m)]:h})}),d&&u&&(0,l.jsx)(n.Image,{src:encodeURI(d),signedURLs:u,alt:b,objectFit:"cover",objectPosition:"center",layout:"fill","data-testid":"hero-image",priority:!0})]}),(0,l.jsx)("div",{className:"cx-container relative z-10",children:(0,l.jsx)("div",{className:"col-span-full sm:max-w-[652px] xl:col-start-2",children:(0,l.jsxs)("div",{className:"text-global-white empty:mb-64",children:[t&&(0,l.jsx)("h1",{className:"cx-headline-200 sm:cx-headline-100 mb-24 last:mb-64 break-words","data-testid":"hero-title",children:t}),a&&(0,l.jsx)("strong",{className:"cx-headline-500 block mb-32 last:mb-64 break-words","data-testid":"hero-subtitle",children:a}),!!(null==o?void 0:o.length)&&(0,l.jsx)("div",{className:"flex flex-col lg:flex-row flex-wrap mb-48",children:o.map((e,t)=>(0,l.jsx)(i.LinkButton,{href:e.hero_cta_link.href,label:e.hero_cta_link.title,mode:e.hero_cta_link.mode||(0===t?"emphasis":"secondary"),customClasses:s()(e.cta_button_color&&c[e.cta_button_color],"w-full mb-16",{"lg:w-[224px] lg:mr-16":0===t},{"lg:w-[144px]":t>0},e.hero_cta_link.className),"data-testid":"hero-cta","aria-label":e.hero_cta_link.ariaLabel||"".concat(e.hero_cta_link.title," ").concat(e.link_purpose),onClick:e.hero_cta_link.onClick},t))})]})})})]})}},42328:function(e,t,a){a.d(t,{V:function(){return u}});var l=a(85893),o=a(67294),s=a(94184),n=a.n(s),i=a(51293),r=a(97306),c=a(88833),d=a(22482);let u=e=>{let{popupTitle:t="popupTitleForUnsavedForm",popupDesc:a="popupDescForUnsavedForm",navigate:s=d.noop,cancel:u=d.noop,stayBtnTranslationKey:b="cancel",leaveBtnTranslationKey:m="leave",leaveButtonClass:x="cx-primary-btn"}=e,h=(0,o.useRef)(null),{t:g}=(0,i.$G)(),p=(0,o.useRef)(null);return(0,o.useEffect)(()=>{setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.blur()},0)},[]),(0,l.jsx)("div",{ref:h,"data-testid":"map-modal",children:(0,l.jsx)(r.u,{onClose:u,children:(0,l.jsxs)("div",{className:"relative bg-white rounded-lg shadow dark:bg-gray-700 p-24",children:[(0,l.jsx)("h3",{className:"cx-headline-400 sm:cx-headline-300 w-[184px] sm:w-full text-global-black mb-16",children:g(t)}),(0,l.jsx)("button",{"aria-label":g("ariaLabel.closeModal"),"data-testid":"close-button",className:"absolute top-24 right-16 cx-focus-outline",onClick:u,ref:p,children:(0,l.jsx)(c.Close,{"aria-label":g("ariaLabel.closeModal")})}),a&&(0,l.jsx)("p",{className:"cx-body-text text-global-black mb-32",children:g(a)}),(0,l.jsxs)("div",{className:"flex gap-24 justify-end flex-col-reverse sm:flex-row",children:[(0,l.jsx)("button",{type:"button",className:"text-global-black bg-global-white cx-link-text underline cx-focus-outline",onClick:u,"aria-label":g(b),"data-testid":"modal-stay-button",children:g(b)}),(0,l.jsx)("button",{type:"button",className:n()("text-global-white px-16 py-[10
1px] cx-small-btn cx-focus-outline",x),onClick:s,"aria-label":g(m),"data-testid":"modal-leave-button",children:g(m)})]})]})})})}},95990:function(e,t,a){a.d(t,{E:function(){return r}});var l=a(85893),o=a(51293),s=a(68866),n=a(71580),i=a(16402);let r=()=>{let{t:e}=(0,o.$G)(),{isDesktop:t}=(0,n.useBreakpoint)();return(0,l.jsx)("div",{className:"col-start-2 col-span-12","data-testid":"user-error-block",children:(0,l.jsxs)("div",{className:"flex flex-col-reverse justify-center items-center mx-auto lg:justify-between md:flex-row px-16 py-56 sm:px-0 sm:py-72 sm:mb-80 lg:px-16 max-w-[704px]",children:[(0,l.jsxs)("div",{className:"w-[272px] sm:w-full lg:w-[224px] flex flex-col gap-y-24",children:[(0,l.jsx)("h2",{className:"cx-headline-100","data-testid":"error-heading",children:e("userAccount.manageAccountUnavailabaleTitle")}),(0,l.jsx)("p",{className:"cx-body-text-large text-neutral-700 font-normal",children:e("userAccount.manageAccountUnAvailableMessage")})]}),(0,l.jsx)("div",{className:"relative h-[260px] w-full mx-auto ",children:(0,l.jsx)(s.Image,{src:"/images/error-image-for-api-error.svg",objectFit:"contain",loader:i.Fl,objectPosition:t?"center":"left center",layout:"fill",priority:!0,alt:""})})]})})}},61432:function(e,t,a){a.r(t),a.d(t,{UserAccount:function(){return I}});var l=a(85893),o=a(67294),s=a(5152),n=a.n(s),i=a(11163),r=a(94184),c=a.n(r),d=a(33299),u=a(51293),b=a(52181),m=a(45837),x=a(18619);let h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{origin:a,pathname:l,search:o}=window.location,s=new URLSearchParams(o);for(let t in e)e[t]&&s.set(t,e[t]);!function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];window.history[t?"replaceState":"pushState"]({...window.history.state,as:e,url:e},"",e)}("".concat(a).concat(l,"?").concat(s),t)};var g=a(34028);let p=e=>{let{queryName:t,queryToTabMapping:a,tabToQueryMapping:l}=e,s=(0,i.useRouter)(),n=s.locale,r=(0,g.C)(),[c,d]=(0,o.useState)("");return(0,o.useEffect)(()=>{let e=r[t];if(e){if(a[n][e])d(e);else{let o=a[n===x.ZK.EN?x.ZK.FR:x.ZK.EN][e];if(o){let e=l[n][o];h({[t]:e},!0),d(e)}}}},[s,n,r,t,a,l]),c};var f=a(96108),v=a(11769),j=a(42328),k=a(95990),w=a(71911),_=a(30719),N=a(71580),y=a(47408),C=a(23962);let F=e=>{var t;let{activeTab:a,handleTabClick:o}=e,{t:s}=(0,u.$G)(),{isMobile:n}=(0,N.useBreakpoint)();return(0,l.jsx)("div",{className:"cx-inner-container bg-neutral-50 border-b border-neutral-300","data-ga-role":y.XJ.link,"data-ga-component-id":"user_account_block_navigation","data-testid":"tab-header",children:(0,l.jsx)("div",{className:"col-span-full lg:col-start-2 lg:col-span-10 lg:-mx-16 xl:col-start-2 xl:col-span-12 xl:mx-0",children:(0,l.jsx)("div",{className:"relative overflow-hidden pt-28",children:(0,l.jsx)(_.tq,{className:"custom-navigation cx-no-scrollbar",slidesPerView:"auto",navigation:n,mousewheel:{forceToAxis:!0},a11y:{slideRole:"listitem"},wrapperTag:"ul",spaceBetween:24,modules:[w.W_,w.s5,w.Gk,w.Rv],"data-testid":"swipe-container",children:null===(t=Object.keys(C.mQ))||void 0===t?void 0:t.map(e=>{var t;return(0,l.jsx)(_.o5,{tag:"li","data-testid":"swiper-slide-item",children:(0,l.jsx)("button",{className:c()("block relative cx-button-text-small hover:text-global-black py-[20px] px-[5px] cx-custom-outline",{"after:absolute after:top-0 after:left-0 after:w-full after:h-full after:border-b-2 after:border-global-black text-global-black":a===C.mQ[e].id,"text-neutral-700":a!==C.mQ[e].id}),"data-testid":"swiper-slide-item-".concat(e),"data-is-active":a===C.mQ[e].id,onClick:()=>{o(C.mQ[e].id)},children:s(null===(t=C.mQ[e])||void 0===t?void 0:t.label)})},e)})})})})})};var S=a(68399),T=a(16022);let A=e=>(0,l.jsxs)("div",{className:"bg-global-white lg:bg-neutral-200","data-testid":"user-account-block","data-ga-component-id":"user_account_block",children:[(0,l.jsx)("div",{className:"w-full relative",children:(0,l.jsx)(T.A,{})}),(0,l.jsx)("div",{className:"relative z-10 lg:-mt-[128px] bg-global-white lg:bg-transparent",children:(0,l.jsx)("div",{className:"mx-0 lg:mx-40 xl:mx-auto cx-container",children:(0,l.jsxs)("div",{className:"col-span-full xl:col-start-2 xl:col-span-14 bg-global-white",children:[e.children,(0,l.jsx)(S.Portal,{id:"toast-portal"})]})})})]}),R=n()(()=>Promise.all([a.e(8962),a.e(7072),a.e(2720),a.e(4640),a.e(5649)]).then(a.bind(a,75649)).then(e=>e.AccountInformation),{loadableGenerated:{webpack:()=>[75649]}}),E=n()(()=>Promise.all([a.e(8962),a.e(8618)]).then(a.bind(a,38618)).then(e=>e.Tickets),{loadableGenerated:{webpack:()=>[38618]}}),L=n()(()=>a.e(5392).then(a.bind(a,5392)).then(e=>e.BillingInformation),{loadableGenerated:{webpack:()=>[5392]}}),I=e=>{let{page:t}=e,{t:a}=(0,u.$G)(),s=(0,i.useRouter)(),n=s.locale,{status:r}=(0,d.useSession)({required:!0,onUnauthenticated(){s.push("/")}}),{AUTHENTICATED:x}=f.sessionStatus,[g,w]=(0,o.useState)(C.mQ.AccountInformation.id),_=p({queryName:"tab",queryToTabMapping:C._b,tabToQueryMapping:C.YM}),[N,y]=(0,o.useState)(!1),[S,T]=(0,o.useState)(!1),[I,P]=(0,o.useState)(),{userContext:O}=(0,m.H2)(),{isLoading:B,hasError:U,data:M}=O,Q=null==M?void 0:M.response.user;return(0,o.useEffect)(()=>{_&&w(C._b[n][_])},[_,n]),(0,l.jsxs)(A,{children:[(0,l.jsx)(F,{activeTab:g,handleTabClick:e=>{S?(y(!0),P(e)):(w(e),h({tab:C.YM[n][e]},!0))}}),(0,l.jsx)("section",{"data-testid":"user-form-block",className:c()("mx-24 sm:mx-40 lg:mx-0 cx-inner-container min-h-[535px] md:min-
1h-[400px] lg:min-h-[480px]",{"pt-64":!U}),children:B||r!==x?(0,l.jsx)(b.w,{svgPath:v.U,text:a("loading"),theme:"up"}):U?(0,l.jsx)(k.E,{}):(null==Q?void 0:Q.azureB2CId)?(0,l.jsxs)(l.Fragment,{children:[g===C.mQ.AccountInformation.id&&(0,l.jsx)(R,{user:Q,handleFormChange:e=>T(e)}),g===C.mQ.Tickets.id&&(0,l.jsx)(E,{}),g===C.mQ.BillingInformation.id&&(0,l.jsx)(L,{page:t[0],paths:{colorCards:"color_cards"},className:"lg:col-start-9 lg:col-span-3 xl:col-start-11 xl:col-span-3",styleClasses:{lineClassName:"!pb-0 lg:!col-start-8 xl:!col-start-10"}}),N&&(0,l.jsx)(j.V,{navigate:()=>{I&&(T(!1),y(!1),w(I),h({tab:C.YM[n][I]},!0))},cancel:()=>{P(null),y(!1)}})]}):void 0})]})}},16022:function(e,t,a){a.d(t,{A:function(){return d}});var l=a(85893),o=a(11163),s=a(57517),n=a(33352),i=a(16402),r=a(18619),c=a(69923);let d=e=>{let{basePath:t="page.0",pageSpecificProps:a,bgColor:d="bg-neutral-700",heroContainerStyle:u=""}=e,b={heroContent:"".concat(t,".hero_banner"),title:"".concat(t,".title"),subtitle:"".concat(t,".subtitle"),isTitleOn:"".concat(t,".title_on")},{getContentByKey:m}=(0,s.r)(),{locale:x}=(0,o.useRouter)(),h=(0,r.XC)(x),g=(null==a?void 0:a.title)||m(b.title,""),p=(null==a?void 0:a.subtitle)||m(b.subtitle,""),f=m(b.isTitleOn,!0),{mobile:v,desktop:j}=m(b.heroContent,{mobile:{},desktop:{}}),{hero_cta_links:k=(null==a?void 0:a.heroCtaLinks)||[],hero_banner:[w]=[{}]}=v,{hero_cta_links:_=(null==a?void 0:a.heroCtaLinks)||[],hero_banner:[N]=[{}],automatic_cropping:y=""}=j,{description:C}=(0,i.F9)(w.metadata,h),{description:F}=(0,i.F9)(N.metadata,h);return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"lg:hidden",children:(0,l.jsx)(n.y,{title:f?g:"",subtitle:p,imagePublicId:w.public_id,imageSignedURLs:w.signedURLs,imageAltText:C,imageGravity:c._[y],overlayOpacity:50,heroCTALinks:k,bgColorClass:d,heroContainerStyle:u,gaComponentId:"hero_component"})}),(0,l.jsx)("div",{className:"xs:hidden lg:block",children:(0,l.jsx)(n.y,{title:f?g:"",subtitle:p,imagePublicId:N.public_id,imageSignedURLs:N.signedURLs,imageAltText:F,imageGravity:c._[y],overlayOpacity:50,heroCTALinks:_,bgColorClass:d,heroContainerStyle:u,gaComponentId:"hero_component"})})]})}},69923:function(e,t,a){var l,o;a.d(t,{R:function(){return l},_:function(){return s}}),(o=l||(l={})).Auto="Auto",o.Face="Face (auto)",o.Faces="Faces (auto)",o.Train="Train",o.Bus="Bus",o.Car="Car",o.Center="Center",o.NorthWest="North West",o.NorthEast="North East",o.SouthWest="South West",o.SouthEast="South East";let s={Auto:"auto","Face (auto)":"face:auto","Faces (auto)":"faces:auto",Train:"train:auto",Bus:"bus:auto",Car:"car:auto",Center:"center","North West":"north_west","North East":"north_east","South West":"south_west","South East":"south_east"}}}]);
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.