PageSourceSearch

https://www.stanstedairport.com/_next/static/chunks/31438.5f8a9e984e7a6df7.js

js stanstedairport.com collected 2026-09-24 17:39:21 UTC 11,367 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17290,31438],{13231:(e,t,a)=>{a.d(t,{A:()=>p,I:()=>d});var n=a(100),i=a(14232),r=a(39270),o=a(28328);let l=["XS","SM","MD","LG","XL","XXL"],s={XS:o._e.xs,SM:o._e.sm,MD:o._e.md,LG:o._e.desktop,XL:o._e.xl,XXL:1/0};var c=a(45939),u=a(65544);let d=()=>{let{width:e}=(0,n.R5)(),[t,a]=(0,i.useState)(u.$b);return(0,i.useEffect)(()=>{let n=(e=>{for(let t of l)if(e<s[t])return t;return"XXL"})(e);n!==t&&a(n)},[e]),(0,i.useMemo)(()=>(0,r.t)(t),[t])},p=()=>(0,i.useContext)(c.Z)},17290:(e,t,a)=>{a.d(t,{Y:()=>n});let n={close:"awr-functional-close",back:"awr-functional-back-arrow",chevronLeft:"awr-functional-chev-left",chevronRight:"awr-functional-chev-right",menu:"awr-burger",search:"awr-functional-search",notifications:"awr-functional-notifications-outline",notificationsWithUnread:"awr-functional-notifications",profile:"awr-functional-calender-with-tick",home:"awr-functional-home",cutlery:"awr-cutlery",chefHat:"awr-chef-hat",coffee:"awr-coffee",glass:"awr-wine-glass",family:"awr-family",Vegan:"awr-vegan",Vegetarian:"awr-vegetarian","Gluten Free":"awr-gluten-free",Halal:"awr-halal","Shop now":"awr-benefits-shopnow",clock:"awr-functional-time",phone:"awr-functional-phone",globe:"awr-functional-globe",gear:"awr-gear",pound:"awr-pound-sign",airport:"awr-airport",fastTrack:"awr-fast-track",bus:"awr-bus",armchair:"awr-lounge-armchair",departure:"awr-departures",parkingSign:"awr-parking-sign",passport:"awr-passport",rules:"awr-rules",luggage:"awr-luggage",bottle:"awr-bottle",electricalItems:"awr-electrical-items",medication:"awr-medication",medicalInfo:"awr-medical-info",babyPram:"awr-baby-pram",apple:"awr-apple",security:"awr-security",prohibitedSign:"awr-prohibited-sign"}},28328:(e,t,a)=>{a.d(t,{_e:()=>i,r2:()=>r});var n,i=((n={})[n.mobile=1199]="mobile",n[n.desktop=1200]="desktop",n[n.xxs=320]="xxs",n[n.xs=576]="xs",n[n.sm=768]="sm",n[n.md=992]="md",n[n.xl=1400]="xl",n);let r={Mobile:"@media (max-width: 1199px)",Desktop:"@media (min-width: 1200px)",XXS:"@media (max-width: 320px)",XS:"@media (min-width: 0px)",SM:"@media (min-width: 576px)",MD:"@media (min-width: 768px)",LG:"@media (min-width: 992px)",XL:"@media (min-width: 1200px)",XXL:"@media (min-width: 1400px)"}},31438:(e,t,a)=>{a.r(t),a.d(t,{WebsiteContext:()=>h,WebsiteContextProvider:()=>N,useWebsiteContent:()=>v,useWebsiteContext:()=>g});var n=a(37876),i=a(14232),r=a(76381);let o={...a(17290).Y,menu:"awr-burger",search:"awr-functional-search",notifications:"awr-functional-notifications-outline",notificationsWithUnread:"awr-functional-notifications",profile:"awr-functional-calender-with-tick",close:"awr-functional-close",back:"awr-functional-back-arrow",home:"home",chevronLeft:"awr-functional-chev-left",chevronRight:"awr-functional-chev-right"},l={mobile:["menu","search","profile","notifications"],desktop:["search","notifications"],desktopNav:["search","notifications"],desktopSearch:["profile","notifications"]};var s=a(33137),c=a(94201),u=a(60371),d=a(89595);function p(e,t,a){let n={...e,...t&&{action:t},event:a||"GAEventAWR"};window.dataLayer=window.dataLayer||[],window.dataLayer.push(n)}let S=()=>{let e=window.location.pathname;return"/"===e?"home":e},_=(e,t)=>{if(!t||!t.type)return e;let a={location:r.Tenant,pagePath:S()};switch(t.pushToGtm&&p({event:s.f7.action,...a,action:t},s.En.PUSH_TO_GTM),t.type){case s.En.UPDATE_SESSION_STATE:return{...e,sessionState:{...e?.sessionState,...t.response}};case s.En.CLEAR_ASYNC_EVENT_DETAILS:return{...e,requesting:!1,submitSuccess:!1,asyncEventError:null};case s.En.START_ASYNC_EVENT:return{...e,requesting:!0,submitSuccess:!1,asyncEventError:null};case s.En.END_ASYNC_EVENT:return{...e,requesting:!1,submitSuccess:!0};case s.En.ASYNC_EVENT_ERROR:return{...e,requesting:!1,asyncEventError:t.response};case s.En.CLICK_BUTTON_ACTION:let n={...a,event:s.f7.click_text,label:t.eventDetails?.label||"no-label",category:t.eventDetails?.category||"no-category",action:t.eventDetails?.action||"button click",content:t.eventDetails?.content,subject:t.eventDetails?.subject,destinationPagePath:t.eventDetails?.destinationPagePath,...t.eventDetails?.destination&&{destination:t.eventDetails.destination}};return t.eventDetails?.optimizelyEvent===s.eG.WIDGET_SUBMIT_EVENT&&(0,d.q)(s.eG.WIDGET_SUBMIT_EVENT,{URL:t?.eventDetails?.destination||"",Category:"Submission",widgetType:"AWR"}),p(n),{...e};case s.En.CLICK_LINK_ACTION:return p({...a,event:s.f7.click_link,label:t.eventDetails?.label||"no-label",category:t.eventDetails?.category||"no-category",destination:t.eventDetails?.destination||"no-destination"}),{...e};case s.En.TRACK_SEARCH_ACTION:return p({...a,event:s.f7.search_interaction,category:"header",label:"PrePopulated",value:t.eventDetails?.value||"",action:t.eventDetails?.action==="click"?"click":"submit",destinationPagePath:t.eventDetails?.destinationPagePath||null}),{...e};case s.En.TRACK_MESSAGE_BOARD_ACTION:return p({...a,event:s.f7.alerts,category:"header",label:t.eventDetails?.label||"no-label",subject:t.eventDetails?.subject||"",content:t.eventDetails?.content||"",action:t.eventDetails?.action||"no-action",destinationPagePath:t.eventDetails?.destinationPagePath||null}),{...e};case s.En.SET_MODAL_CONTENTS:return{...e,modalContents:t.payload?.modalContents??null};case s.En.CLOSE_MODAL:return{...e,modalContents:null};case s.En.TRACK_MISSING_DATA:return p({...a,event:s.f7.alerts,lookupType:t.eventDetails?.lookupType||"missing_data",entity:t.eventDetails?.entity||"",identifier:t.eventDetails?.identifier||"",source:t.eventDetails?.source||""},s.En.TRACK_MISSING_DATA),{...e};case s.En.INVALID_FORM_SUBMISSION:return p({...a,event:s.f7.invalid_form_submission,label:t.eventDetails?.label||"no-label",action:"invalid_submission",category:t.eventDetails?.category||"no-category",content:t.eventDetails?.content||"no-content"},s.En.INVALID_FORM_SUBMISSION),{...e};default:throw Error(`Unsupported action type: ${t.type}`)}},E=async e=>{let t=`${r?.DxpWebApi.Url}/email-signup/`;await u.A.post(t,e)},b=()=>window.location.href.includes("localhost")?r.SiteUrl:window.location.href,m={[s.En.SEND_EMAIL_SIGNUP]:({dispatch:e})=>async t=>{e({type:s.En.START_ASYNC_EVENT});try{if(t.pushToIterable){let e={email:t?.payload?.email,eventName:t?.payload?.eventName||"generalNewSignUp",dataFields:{...t?.payload?.dataFields,source:b()},campaignId:isNaN(+t?.payload?.campaignId)?void 0:+t?.payload?.campaignId,templateId:isNaN(+t?.payload?.templateId)?void 0:+t?.payload?.templateId,createdAt:Date.now()};await (0,c.s)(e)}else{let e={emailAddress:t?.payload?.email,telephoneNumber:t?.payload?.dataFields?.phoneNumber,referralSource:b(),airportCode:t?.payload?.dataFields?.airportCode};await E(e)}p({location:r.Tenant,pagePath:S(),event:s.f7.click_text,label:t?.payload?.trackingLabel||"Sign up",action:"button click",category:"email-signup-success",content:t?.payload?.successMessage||"Thank you for signing up!"}),e({type:s.En.END_ASYNC_EVENT})}catch(t){console.error("PostIterable submission error:",t),e({type:s.En.ASYNC_EVENT_ERROR,response:t})}}};var w=a(81140),T=a(45939),f=a(18847);let A=a.n(f)()(()=>Promise.all([a.e(96339),a.e(45842),a.e(3624),a.e(54587),a.e(66894),a.e(77597),a.e(4912),a.e(6301),a.e(42348)]).then(a.bind(a,57607)),{loadableGenerated:{webpack:()=>[57607]},ssr:!1}),h=(0,i.createContext)(null),N=({children:e,initialData:t,lang:a=""})=>{let i=(e=>{let t=e?.[r.Storyblok.SlugPrefix]?.siteOptions?.default.story.content;if(t){let e=t.theme;t.icons=(({theme:e})=>o)({theme:e}),t.menuItems=(({theme:e})=>l)({theme:e})}return e})(t),s={modalContents:null,...i,requesting:!1,asyncEventError:null,sessionState:{},submitSuccess:!1},[c,u]=(0,w.I)(_,s,m),d=i?.[r.Storyblok.SlugPrefix]?.siteOptions?.default?.story?.content?.theme;return(0,n.jsx)(h.Provider,{value:{data:i,dispatch:u,lang:a,state:c}
1,children:(0,n.jsxs)(T.L,{children:[e,(0,n.jsx)(A,{classKey:d||"mag",SiteStyles:{Spacing:{},Fonts:{},FontWeight:{},FontSize:{}}})]})})},g=()=>(0,i.useContext)(h),v=()=>{let e=g();return{...e?.data?.[r.Storyblok.SlugPrefix]?.siteOptions?.default.story.content}}},33137:(e,t,a)=>{a.d(t,{En:()=>o,eG:()=>s,f7:()=>l});var n,i,r,o=((n={}).PUSH_TO_GTM="PUSH_TO_GTM",n.UPDATE_SESSION_STATE="UPDATE_SESSION_STATE",n.SEND_EMAIL_SIGNUP="SEND_EMAIL_SIGNUP",n.START_ASYNC_EVENT="START_TO_ASYNC",n.END_ASYNC_EVENT="END_ASYNC_EVENT",n.ASYNC_EVENT_ERROR="ASYNC_EVENT_ERROR",n.CLICK_BUTTON_ACTION="CLICK_BUTTON_ACTION",n.CLICK_LINK_ACTION="CLICK_LINK_ACTION",n.CLEAR_ASYNC_EVENT_DETAILS="CLEAR_ASYNC_EVENT_DETAILS",n.TRACK_SEARCH_ACTION="TRACK_SEARCH_ACTION",n.TRACK_MESSAGE_BOARD_ACTION="TRACK_MESSAGE_BOARD_ACTION",n.SET_MODAL_CONTENTS="SET_MODAL_CONTENTS",n.CLOSE_MODAL="CLOSE_MODAL",n.TRACK_MISSING_DATA="TRACK_MISSING_DATA",n.INVALID_FORM_SUBMISSION="INVALID_FORM_SUBMISSION",n),l=((i={}).click_text="click_Text",i.click_link="click_Links",i.action="action",i.search_interaction="search_Interaction",i.alerts="alerts",i.invalid_form_submission="invalid_form_submission",i),s=((r={}).WIDGET_SUBMIT_EVENT="widget_submit_event",r)},39270:(e,t,a)=>{a.d(t,{t:()=>r});let n={XS:1,SM:2,MD:3,LG:4,XL:5,XXL:6};var i=a(65544);let r=e=>{let t,a,r,o;return{screenSize:e,...{device:t=(0,i.Pf)(e,"dualSplit"),isMobile:"mobile"===t,isDesktop:"desktop"===t},splitWithTablet:{device:a=(0,i.Pf)(e,"tripleSplit"),isMobile:"mobile"===a,isTablet:"tablet"===a,isDesktop:"desktop"===a},isScreenLargerOrEqTo:(r=n[e],e=>r>=n[e]),isScreenSmallerOrEqTo:(o=n[e],e=>o<=n[e])}}},45939:(e,t,a)=>{a.d(t,{L:()=>c,Z:()=>s});var n=a(37876),i=a(14232),r=a(39270),o=a(65544),l=a(13231);let s=(0,i.createContext)((0,r.t)(o.$b)),c=({children:e})=>{let t=(0,l.I)();return(0,n.jsx)(s.Provider,{value:t,children:e})}},65544:(e,t,a)=>{a.d(t,{$b:()=>n,Pf:()=>o});let n="MD",i={XS:"mobile",SM:"mobile",MD:"mobile",LG:"tabletFallbackToMobile",XL:"desktop",XXL:"desktop"},r={mobile:{tripleSplit:"mobile",dualSplit:"mobile"},tabletFallbackToMobile:{tripleSplit:"tablet",dualSplit:"mobile"},tabletFallbackToDesktop:{tripleSplit:"tablet",dualSplit:"desktop"},desktop:{tripleSplit:"desktop",dualSplit:"desktop"}},o=(e,t)=>r[i[e]][t]},81140:(e,t,a)=>{a.d(t,{I:()=>r});var n=a(14232);let i="u"<typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?n.useEffect:n.useLayoutEffect;function r(e,t,a,r){let o=(()=>{let[e,t]=(0,n.useState)(()=>new AbortController),a=(0,n.useRef)(e);return(0,n.useEffect)(()=>()=>{a.current.abort(),a.current=new AbortController,t(a.current)},[]),e.signal})(),l=r||a,[s,c]=(0,n.useReducer)(e,t,r&&a),u=(0,n.useRef)(s);i(()=>{u.current=s},[s]);let d=(0,n.useCallback)(()=>u.current,[]),p=(0,n.useCallback)(e=>{let{type:t}=e||{},a=t&&l[t]||null;a?a({dispatch:p,getState:d,signal:o})(e):c(e)},[l,d,o]);return[s,p]}},89595:(e,t,a)=>{a.d(t,{q:()=>n});let n=(e,t)=>{window.optimizely=window.optimizely||[],window.optimizely.push({type:"event",eventName:e,properties:t})}},94201:(e,t,a)=>{a.d(t,{s:()=>r,x:()=>o});var n=a(60371),i=a(76381);function r(e){let t=`${i?.IterableApi?.Url}/api/events/track`;return n.A.post(t,e,{headers:{"Api-Key":i?.IterableApi?.Key}}).catch(e=>(console.warn(e),Promise.reject(e)))}function o(e){let t=`${i?.IterableApi?.Url}/api/users/${e}`;return n.A.get(t,{headers:{"Api-Key":i?.IterableApi?.Key}}).then(e=>{e.data.user&&window.sessionStorage.setItem("IterableUID",e.data.user.userId)}).catch(e=>{console.warn(e)})}}}]);

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.