PageSourceSearch

https://www.stanstedairport.com/_next/static/chunks/10083.afe106141e5be146.js

js stanstedairport.com collected 2026-10-02 03:06:47 UTC 16,145 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10083],{10083:(e,a,t)=>{t.r(a),t.d(a,{default:()=>k});var n,r=t(37876),o=t(14232),i=t(93127),l=t(12728),s=t(62142),d=t(61666),c=t(77597),u=t(53313),m=t(3624),h=t(53229),x=t(48011),p=t(20794),v=t(1651),g=((n=g||{}).initial="initial",n.review="review",n.thankyou="thankyou",n);let b=({EndConversation:e,setShowEndModal:a,StopCurrentQuestion:t,conversation:n,showEndModal:d,textColor:u,endChatQuestion:g,endChatText:b,continueChatText:k,endChatReviewText:C,feedbackResponse:f,submitResponseButtonText:y,thankyouText:A,secondaryThankYou:w,theme:N,classKey:j,ThemeContainer:H,SiteStyles:S,$t:T,siteOptions:I})=>{let[z,B]=(0,o.useState)("initial"),[E,L]=(0,o.useState)(null);(0,o.useEffect)(()=>{let e=window.location.pathname,t=e.match(/^\/([a-z]{2})\//),n=t?t[1]:null,r=["/man/","/stn/","/ema/"].find(a=>e.includes(a));if(r){let e=r.replace(/\//g,"");n&&!e.startsWith(`${n}/`)&&(e=`${n}/${e}`),L(e)}let o=document.getElementById("contentContainer");if(o){let e=d?"3":"initial";o.style.zIndex=e}a(d),B("initial")},[d]);let R=(0,i.xy)({textColor:u},N||j||I?.theme,s.y,[{themeName:i.Js.kiosks,theme:l.A},{themeName:i.Js.mobileApps,theme:v.A}]),W=()=>{(0,p.C)({event:"GAEvent",eventCategory:"End Conversation",eventAction:"User Confirmed End"}),t(),n.length>1?B("review"):$(!0)},$=t=>{a(!1),B("initial"),t&&e()},M={theme:N,classKey:j,ThemeContainer:H,SiteStyles:S,$t:T,siteOptions:I,customThemeClassName:(0,i.AH)(R.customThemeClassName)},F=()=>{B("thankyou"),setTimeout(()=>{e(J.rating,J.comment)},3e3)},[J,P]=(0,o.useState)({rating:null,comment:null});return d&&(0,r.jsx)("div",{className:(0,i.AH)(R.popupContainer),children:(0,r.jsxs)("div",{className:(0,i.AH)(R.popupInnerContainer),children:[(0,r.jsx)("div",{className:(0,i.AH)(R.close),onClick:()=>$(!0),children:(0,r.jsx)(c.default,{size:"1.5rem",name:"close"})}),(()=>{switch(z){case"initial":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,i.AH)(R.endText),children:g}),(0,r.jsxs)("div",{className:(0,i.AH)(R.buttonsContainer),children:[(0,r.jsx)(h.default,{copy:b,onClick:W,url:`/${E}/help/virtualassistant/`,isFullWidth:!0,backgroundColor:"var(--blue-dark)",borderColor:"var(--blue-dark)",...M,customThemeClassName:(0,i.AH)(R.customButtonItem),className:(0,i.AH)(R.customButtonContinue)},"end"),(0,r.jsx)(h.default,{onClick:()=>$(!1),copy:k,isFullWidth:!0,variant:h.ButtonVariants.Secondary,...M,customThemeClassName:(0,i.AH)(R.customButtonItem),className:(0,i.AH)(R.customButtonEnd)},"continue")]})]});case"review":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,i.AH)(R.endText),children:C}),(0,r.jsx)(x.A,{size:"5.4rem",notifyParentRating:e=>P({...J,rating:e}),starsAmount:5,...M}),!!J.rating&&(0,r.jsx)(m.P.textarea,{initial:{height:"10px"},animate:{height:J.rating?"130px":"10px"},onChange:e=>P({...J,comment:e.target.value}),className:(0,i.AH)(R.ratingTextAreaInput),placeholder:f},"ratingTextArea"),!!J.rating&&(0,r.jsx)("div",{style:{maxWidth:"19.6rem"},className:(0,i.AH)(R.valButtonStyles),onClick:F,children:y})]});case"thankyou":return(0,r.jsxs)("div",{className:(0,i.AH)(R.thanksContainer),children:[(0,r.jsx)(c.default,{name:"success-fill",color:"var(--success)"}),(0,r.jsx)("div",{className:(0,i.AH)(R.thanksMain),children:A}),(0,r.jsx)("div",{className:(0,i.AH)(R.thanksSecondary),children:w})]})}})()]})})},k=({textColor:e,backButtonCopy:a,endChatQuestion:t,endChatText:n,continueChatText:m,endChatReviewText:h,feedbackResponse:x,submitResponseButtonText:g,thankyouText:k,secondaryThankYou:C,focusViewTabText:f,chatViewTabText:y,endChatButtonText:A,theme:w,classKey:N,ThemeContainer:j,SiteStyles:H,$t:S,siteOptions:T})=>{let{state:I,EndConversation:z,SetChatViewType:B,StopCurrentQuestion:E}=(0,o.useContext)(d.P),{selectedCard:L,chatViewType:R,conversation:W,askingQuestion:$,keyboardActive:M}=I,[F,J]=(0,o.useState)(!1),P=(0,i.xy)({textColor:e,askingQuestion:$,keyboardActive:M},w||N||T?.theme,s.y,[{themeName:i.Js.kiosks,theme:l.A},{themeName:i.Js.mobileApps,theme:v.A}]),V={theme:w,classKey:N,ThemeContainer:j,SiteStyles:H,$t:S,siteOptions:T,customThemeClassName:(0,i.AH)(P.customThemeClassName)};
1return(0,r.jsxs)("div",{className:(0,i.AH)(P.chatViewControls),children:[W.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:(0,i.AH)(P.chatViewContianer),children:[(0,r.jsxs)("div",{onClick:()=>B(!1),className:(0,i.AH)(P.chatViewButton,!R&&P.chatViewButtonActive),children:[(0,r.jsx)(c.default,{className:(0,i.AH)(P.focusChatIcon),size:"1.2rem",name:"focus",color:R?"var(--blue-dark)":"var(--white)"}),f]}),(0,r.jsxs)("div",{onClick:()=>B(!0),className:(0,i.AH)(P.chatViewButton,R&&P.chatViewButtonActive),children:[(0,r.jsx)(c.default,{className:(0,i.AH)(P.chatIcon),size:"1.2rem",name:"chat",color:R?"var(--white)":"var(--blue-dark)"}),y]})]}),(0,r.jsxs)("div",{className:(0,i.AH)(P.valControlsEnd),onClick:()=>{(0,p.C)({event:"GAEvent",eventCategory:"End Conversation",eventAction:"User Clicked End"}),J(!0)},children:[(0,r.jsx)(c.default,{className:(0,i.AH)(P.endChatIcon),size:"1.2rem",name:"close"})," ",A]})]}):!L&&(0,r.jsx)(u.default,{copy:a,customClassName:(0,i.AH)(P.backButton),...V}),(0,r.jsx)(b,{conversation:W,StopCurrentQuestion:E,setShowEndModal:J,EndConversation:(e,a)=>{J(!1),z(e,a)},showEndModal:F,textColor:e,endChatQuestion:t,endChatText:n,continueChatText:m,endChatReviewText:h,feedbackResponse:x,submitResponseButtonText:g,thankyouText:k,secondaryThankYou:C,...V})]})}},48011:(e,a,t)=>{t.d(a,{A:()=>u});var n=t(37876),r=t(14232),o=t(93127);let i=({})=>({ratingContainer:{display:"flex",gap:"50px",justifyContent:"center",alignItems:"center"},ratingStar:{color:"var(--blue-dark)",opacity:.2,transition:"ease opacity 0.5s"},ratingStarActive:{opacity:1},ratingTextAreaInput:{boxShadow:"0px 4px 16px 0px #00000026"}}),l=e=>o.vv.create(i(e)),s=e=>{let a=i(e);return(0,o.KN)(a,(0,o.dY)({...a,ratingContainer:{...a.ratingContainer,gap:"20px"}}))};var d=t(77597);let c=e=>{let a=i(e);return(0,o.KN)(a,(0,o.dY)({...a,ratingContainer:{...a.ratingContainer,display:"flex",gap:"20px"}}))},u=({size:e,notifyParentRating:a,starsAmount:t=5,siteOptions:i,theme:u,classKey:m})=>{let h=(0,o.xy)({},u||i?.theme||m,l,[{themeName:o.Js.kiosks,theme:s},{themeName:o.Js.mobileApps,theme:c}]),[x,p]=(0,r.useState)(null);return(0,r.useEffect)(()=>{a&&a(x)},[x]),(0,n.jsx)("div",{className:(0,o.AH)(h.ratingContainer),children:Array.from({length:t},(e,a)=>a).map(a=>(0,n.jsx)("div",{className:(0,o.AH)(h.ratingStar,a+1<=x&&h.ratingStarActive),onClick:()=>p(a+1),children:(0,n.jsx)(d.default,{size:e,color:"var(--blue-dark)","data-TestId":"lined-star",name:"lined-star"})},a))})}},53229:(e,a,t)=>{t.r(a),t.d(a,{ButtonVariants:()=>b,default:()=>k});var n=t(37876),r=t(14232),o=t(18847),i=t.n(o),l=t(89099),s=t(88307),d=t(77597),c=t(93127);let u=({skinnyButtons:e,isBorderDisabled:a,isFullWidth:t,removeHeight:n,disabled:r,textColor:o,textHoverColor:i,fontWeight:l,fontSize:s,textAlignment:d,minWidth:c,backgroundColor:u,backgroundHoverColor:m,minButtonHeight:h,borderColor:x,borderHoverColor:p,boxShadow:v,fontFamily:g="var(--font-family)",borderRadius:b})=>({button:{fontFamily:g,backgroundColor:u||"var(--blue-dark)",color:o||"var(--white)",borderRadius:b||"5px",border:a?"none":`2px solid ${x||"var(--blue-dark)"}`,fontSize:`${s||"var(--font-size-p)"}`,fontWeight:Number(l)||"var(--font-weight--demi-bold)",cursor:"pointer",textDecoration:"none",display:"flex !important",maxWidth:t?"unset !important":"fit-content",minWidth:t?"100% !important":c||"fit-content",justifyContent:d||"center",alignItems:"center",textAlign:"center",padding:"var(--spacing-xx-small)",boxSizing:"border-box",minHeight:n?"unset":e?"48px":h||"60px",position:"relative",opacity:1,boxShadow:v||"none",":focus":{backgroundColor:m||u||"var(--blue-dark)",color:i||o||"var(--white)"},":hover":{backgroundColor:m||u||"var(--blue-dark)",border:a?"none":`2px solid ${p||"var(--blue-dark)"}`,color:i||o||"var(--white)",opacity:m?1:.8},":disabled":{opacity:.5},":active":{outline:"none",color:o||"var(--white)"}},secondary:{borderColor:x||"var(--blue-dark)",backgroundColor:u||"var(--white)",color:o||"var(--blue-dark)",":focus":{backgroundColor:m||"var(--blue-dark3)"},":hover":{backgroundColor:m||u||"var(--blue-dark3)",border:a?"none":`2px solid ${p||"var(--blue-dark3)"}`,color:i||o||"var(--blue-dark)"},":active":{backgroundColor:m||"var(--blue-dark3)",color:"var(--white)"}},tertiary:{borderColor:x||"var(--white)",color:o||"var(--blue-dark)",backgroundColor:u||"var(--white)","
1:focus":{backgroundColor:m||"var(--blue-dark3)"},":hover":{backgroundColor:m||u||"var(--blue-dark3)",border:a?"none":`2px solid ${p||"var(--blue-dark3)"}`,color:i||o||"var(--blue-dark)"}},quaternary:{borderColor:x||"var(--blue-dark)",backgroundColor:u||"var(--white)",color:o||"var(--blue-dark)",":focus":{backgroundColor:m||u||"var(--blue-dark)",":nth-child(1n) img":{filter:"brightness(100)"}},":hover":{borderColor:p||"var(--blue-dark)",backgroundColor:m||u||"var(--blue-dark)",color:i||o||"var(--white)",":nth-child(1n) img":{filter:"brightness(100)"}}},mago:{borderColor:x||"var(--mago-grey)",color:o||"var(--white)",backgroundColor:u||"var(--mago-grey)",borderRadius:"2px",fontSize:"16px",minHeight:n?"unset":e?"48px":h||"48px",padding:"var(--spacing-xx-small) var(--spacing-small)",":focus":{backgroundColor:m||"var(--mago-grey-light)"},":hover":{backgroundColor:m||u||"var(--mago-grey-light)",color:i||o||"var(--white)"}},link:{background:r?"var(--grey-mid1)":"none",color:o||"var(--blue-dark)",margin:0,padding:0,border:a?"none":x?`2px solid ${x}`:0,":focus":{backgroundColor:m||"unset"},":hover":{backgroundColor:m||u||"unset",textDecoration:"underline",border:a?"none":p?`2px solid ${p}`:"none",color:i||o||"var(--blue-dark)"}}
1,roundel:{borderRadius:"50%",width:"86px",minWidth:t?"100%":c||"86px",height:e?"48px":"86px",minHeight:n?"unset":e?"48px":h||"86px",padding:"var(--spacing-small) var(--spacing-x-small)",backgroundColor:u||"var(--white)",color:o||"var(--blue-dark)",fontSize:"10px",":hover":{backgroundColor:m||u||"var(--white)",color:i||o||"var(--blue-dark)",boxShadow:"5px 5px 17px 5px rgba(0,0,0,0.3)"},"@media screen and (min-width: 580px)":{width:"100px",minWidth:t?"100%":c||"100px",height:e?"48px":"100px",minHeight:n?"unset":e?"48px":h||"100px",fontSize:"12px"},"@media screen and (min-width: 725px)":{width:"130px",minWidth:t?"100%":c||"130px",height:e?"48px":"130px",minHeight:n?"unset":e?"48px":h||"130px",fontSize:"14px"}},fontIconMargin:{margin:"0 var(--spacing-x-small) 0 var(--spacing-x-small)"},centerAlignment:{width:"24px",height:"24px",display:"flex",justifyContent:"center",alignItems:"center"},hideTextInMobile:{display:"none","@media screen and (min-width: 580px)":{display:"block"}},buttonArrow__container:{display:"flex",marginLeft:"12px",fontSize:0,minWidth:"10px",minHeight:"20px",alignItems:"center"},iconTextHidden:{margin:"0 var(--spacing-x-small)","@media screen and (max-width: 580px)":{margin:"0 0 0 var(--spacing-x-small)"}}}),m=e=>c.vv.create(u(e));var h=t(76381),x=t(20312),p=t(72610);let v=e=>{let a=u(e);return(0,c.KN)(a,(0,c.dY)({...a,button:{...a.button,fontSize:"1.92275rem !important",borderColor:"var(--blue-dark)",borderStyle:"solid",height:"6.6rem"},secondary:{...a.secondary,borderColor:"var(--blue-dark)",borderStyle:"solid",height:"6.6rem"}}))},g=i()(()=>t.e(87842).then(t.bind(t,87842)),{loadableGenerated:{webpack:()=>[87842]}}),b={Primary:"primary",Secondary:"secondary",Tertiary:"tertiary",Quaternary:"quaternary",Mago:"mago",Link:"link",Roundel:"roundel"},k=e=>{let{blok:a,componentId:t,icon:o,imageIcon:i,removeIconMargin:u,children:b,copy:k,variant:C="primary",disabled:f,asLink:y,isArrowVisible:A=!1,className:w,isFocused:N,minWidth:j,isBorderDisabled:H=!1,isFullWidth:S=!1,textColor:T,arrowColor:I,hideTextInMobile:z,containerClicked:B,isContainerRefClickable:E,textAlignment:L="center",fontWeight:R="600",fontSize:W,textTransform:$="initial",skinnyButtons:M,removeHeight:F,textIconSpacing:J,minButtonHeight:P,backgroundColor:V,ThemeContainer:_=p.G,theme:K,$t:Y,classKey:G,textHoverColor:D,backgroundHoverColor:Q,borderColor:U,borderHoverColor:q,disableBorder:Z,boxShadow:O="none",fontFamily:X,borderRadius:ee,siteOptions:ea,showArrow:et,SiteStyles:en,additionalData:er,customThemeClassName:eo,iconOnRight:ei,removeButtonPadding:el,buttonVariant:es,removeListItemTopMargin:ed,containerOverride:ec,fullWidth:eu,onClick:em,...eh}=e,ex=h?.SPA?(0,s.Zp)():null,ep=(0,r.useRef)(null),ev=h?.SPA?null:(0,l.useRouter)();(0,r.useEffect)(()=>{ep.current&&N&&ep.current.focus()},[N]),E&&B&&ep.current?.click();let eg={theme:K,classKey:G,ThemeContainer:_,$t:Y,siteOptions:ea,SiteStyles:en},eb=(0,c.xy)({skinnyButtons:M,isBorderDisabled:H,isFullWidth:S,removeHeight:F,disabled:f,textHoverColor:D,textColor:T,fontWeight:R,fontSize:W,textAlignment:L,minWidth:j,backgroundColor:V,backgroundHoverColor:Q,minButtonHeight:P,borderColor:U,borderHoverColor:q,boxShadow:O,fontFamily:X,borderRadius:ee},K||ea?.theme||G,m,[{themeName:c.Js.mobileApps,theme:v}]),ek=(0,x.A)(eh.url||eh.href);return(0,n.jsx)(_,{customThemeClassName:eo,classKey:K||G,stylesheet:eb,children:(0,n.jsxs)(y?"a":"button",{...eh,id:t,"data-text":"button",className:[(0,c.AH)([eb.button,eb[C]]),w].join(" "),disabled:f,ref:ep,onClick:e=>{em&&(e.preventDefault(),em()),ek&&(h?.SPA&&ex?ex(ek):ev&&!h?.UseLegacyLinks?ev.push(ek):window.location.assign(ek))},children:[o?.name&&(0,n.jsx)(d.default,{...o,className:(0,c.AH)(!u&&eb.fontIconMargin)}),i?.image&&(0,n.jsx)(g,{...eg,icon:i,className:(0,c.AH)(eb.centerAlignment,!u&&eb.fontIconMargin),...eg}),(0,n.jsx)("span",{style:{...J?{marginLeft:`${J}px`}:{},...$?{textTransform:$}:{}},className:(0,c.AH)(A&&z&&eb.hideTextInMobile),children:b||k}),A&&(0,n.jsx)(g,{icon:I||("primary"===C||"link"===C||"mago"===C?"arrow-white":"arrow-blue"),className:(0,c.AH)(eb.buttonArrow__container,(o||i)&&eb.fontIconMargin,z&&eb.iconTextHidden),...eg})]})})}},53313:(e,a,t)=>{t.r(a),t.d(a,{default:()=>x});var n=t(37876),r=t(14232),o=t(93127);
1let i=({position:e,padding:a,color:t,top:n,left:r,zIndex:o})=>({backContainer:{position:e||"absolute",display:"flex",fontSize:"20px",fontWeight:500,color:t||"#032F61",cursor:"pointer",alignItems:"center",padding:`0 ${a||0}px`,zIndex:o||1,top:n||"0px",left:r||"4.2rem"},copy:{marginLeft:"15px",fontSize:"14px"}}),l=e=>o.vv.create(i(e)),s=e=>{let a=i(e);return(0,o.KN)(a,(0,o.dY)({...a}))},d=e=>{let a=i(e);return(0,o.KN)(a,(0,o.dY)({...a,backContainer:{...a.backContainer,left:"2.4rem !important",maxWidth:"200px"},copy:{...a.copy,fontSize:"1.9rem !important"}}))};var c=t(89099),u=t(77597),m=t(20794),h=t(7300);let x=({color:e,top:a,left:t="4.2rem",padding:i="4.2rem",zIndex:x,customOnClick:p,customClassName:v,customCopyClassName:g,copy:b,position:k,iconName:C,iconSize:f,iconColor:y,siteOptions:A,theme:w,classKey:N})=>{let j=(0,o.xy)({position:k,padding:i,color:e,top:a,left:t,zIndex:x},w||A?.theme||N,l,[{themeName:o.Js.kiosks,theme:s},{themeName:o.Js.mobileApps,theme:d}]),{lang:H,previousRoute:S}=(0,r.useContext)(h.KiosksContext),T=(0,c.useRouter)(),I=window.location.href;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{id:"backButton","data-testid":"backButton",className:[(0,o.AH)(j.backContainer),v].join(" "),onClick:()=>p?p():void(T.back(),(0,m.C)({event:"GAEvent",eventCategory:"Navigation",elementCategory:"Navigation",elementText:"Back",navigateTo:S,lang:H,pagePath:I})),children:[C?(0,n.jsx)(u.default,{name:C,color:y||e,size:f}):(0,n.jsx)("svg",{width:"2rem",height:"2rem",viewBox:"0 0 29 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4853 22.6066L0.93934 13.0606C0.353553 12.4748 0.353553 11.5251 0.93934 10.9393L10.4853 1.39335C11.0711 0.807566 12.0208 0.807566 12.6066 1.39335C13.1924 1.97914 13.1924 2.92889 12.6066 3.51467L5.62132 10.5L29 10.5L29 13.5L5.62132 13.5L12.6066 20.4852C13.1924 21.071 13.1924 22.0208 12.6066 22.6066C12.0208 23.1923 11.0711 23.1923 10.4853 22.6066Z",fill:e||"#032F61"})}),(0,n.jsx)("div",{className:[(0,o.AH)(j.copy),g].join(" "),children:b&&b||"Back"})]})})}}}]);

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.