PageSourceSearch

https://www.eurostar.com/assets/www/_next/static/chunks/pages/digital-menu-740b772b1cc1c5e2.js

js eurostar.com collected 2026-10-09 22:19:24 UTC 5,926 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9997],{51878:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/digital-menu",function(){return e(3352)}])},61373:function(n,t,e){"use strict";e.d(t,{Z:function(){return d},M:function(){return r}});var l=e(64610),i=e(15140);let o=(n,t)=>{var e,l,i,o;let{state:a}=t,r=null!==(i=null===(e=n.personalisation)||void 0===e?void 0:e.find(n=>(null==n?void 0:n.personalisationOption)===a))&&void 0!==i?i:n.billboardComponentContent,d=null!==(o=null===(l=n.personalisationCtas)||void 0===l?void 0:l.reduce((t,e)=>{var l,i;let o=(null==e?void 0:e.personalisationOption)===a&&(null==e?void 0:null===(l=e.personalisationReference)||void 0===l?void 0:l._id)===(null===(i=n.cta)||void 0===i?void 0:i._id);return t||(o?e:t)},null))&&void 0!==o?o:n.cta;return{...n,cta:d,billboardComponentContent:r}};var a=e(70157);let r=(n,t)=>{var e,l,r;let{variant:d,billboardComponentContent:u,cta:s,appleAppStoreLink:p,googlePlayStoreLink:v}=t?o(n,t):n,{isPromoContent:c,tokenisedHeadlineRaw:m,tokenisedSubheadingRaw:f}=u||{},h=c?(0,a.Z)(m):null==u?void 0:u.headline,g=c?(0,a.Z)(f):null==u?void 0:u.Subheading,x=null==u?void 0:null===(e=u.media)||void 0===e?void 0:e.mediaItem,b=x?(0,i.Bp)({mediaItem:x,width:i.IU.xs,aspectRatio:16/9}):"",w=x?(0,i.Bp)({mediaItem:x,width:i.IU.sm,aspectRatio:16/9}):"",y=x?(0,i.Bp)({mediaItem:x,width:i.IU.md,aspectRatio:16/9}):"";
1return{imageSrc:{xs:b,sm:w,md:y,lg:x?(0,i.Bp)({mediaItem:x,width:i.IU.lg,aspectRatio:16/9}):"",xl:x?(0,i.Bp)({mediaItem:x,width:i.IU.xl,aspectRatio:16/9}):"",xxl:x?(0,i.Bp)({mediaItem:x,width:i.IU.xxl,aspectRatio:24/9}):""},imagePlaceholder:(null==x?void 0:null===(r=x.base64)||void 0===r?void 0:null===(l=r.metadata)||void 0===l?void 0:l.lqip)||void 0,title:h||"",subTitle:g||"",fontStyles:(null==u?void 0:u.fontStyles)==="smallText"?"smallText":void 0,variant:d||void 0,cta:(null==s?void 0:s.ctaLabel)&&(null==s?void 0:s.ctaUrl)?{text:null==s?void 0:s.ctaLabel,link:null==s?void 0:s.ctaUrl,blank:(null==s?void 0:s.blank)||!1}:void 0,appleAppStoreLink:p||"",googlePlayStoreLink:v||""}};var d=l.Z},3352:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSP:function(){return v}});var l=e(52676);e(72847);var i=e(16415),o=e(80497),a=e(45382),r=e(21816),d=e(95741),u=e(61373),s=e(73703);let p={StandardPremier:"CreamOnPlum",BusinessPremier:"CreamOnNavy",Premium:"NavyOnCream"};var v=!0;t.default=n=>{let{trainRoutes:t,market:e,path:v,header:c,footer:m,page:f,bookingMagnetData:h,bookingMagnetStateOverride:g,meta:x,menus:b,releasePackagesForGermany:w}=n,{menuType:y,adminTitle:_,menuImage:D}=f,k=(0,u.M)({billboardComponentContent:{_id:null,media:(null==D?void 0:D.media)||null,headline:_,Subheading:null,fontStyles:null,personalisationOption:null,isPromoContent:null,tokenisedHeadlineRaw:null,tokenisedSubheadingRaw:null},personalisation:null,_type:null,cta:null,personalisationCtas:null,typeBillboardComponent:null,variant:p[y],appleAppStoreLink:"",googlePlayStoreLink:""}),{baseUrl:S}=a.default.app,C={...(0,r.R)({sanityData:c,baseUrl:S,market:e,bookingMagnetData:h,...g&&{bookingMagnetStateOverride:g}}),releasePackagesForGermany:w},I={...m,hideBookingMagnet:!0===f.hideFooterBookingMagnet,bookingMagnetData:h,tabState:{openTab:0},bookingMagnetSearchBaseUrl:S,releasePackagesForGermany:w},P=t.map(n=>({...n,foodMenuGroup:b.find(t=>{var e;let{_id:l,routeFoodMenus:i}=t;return(null===(e=n.foodMenuGroup)||void 0===e?void 0:e._id)===l&&{routeFoodMenus:i}})||{routeFoodMenus:null}}));return(0,l.jsxs)(s.Z,{headerProps:C,footerProps:I,isWebview:n.isWebview,children:[(0,l.jsx)(o.Z,{market:e,path:v,environment:a.default.app.configEnv,meta:x,robotsIndex:x.sitemapIndexed}),(0,l.jsx)(d.Z,{...k}),(0,l.jsx)(i.Z,{trainRoutes:P||[],stations:h.stations,menuType:y,showOnlyPopularStations:!0})]})}},70157:function(n,t,e){"use strict";e.d(t,{Z:function(){return u}});var l=e(40291),i=e(20145),o=e(85984);let a=(n,t,e,o)=>{let a=(0,l.E)(n,t);return"".concat((0,i.vc)(n,{format:e},o)," - ").concat((0,i.vc)(a,{format:e},o))},r=(n,t,e)=>(0,i.vc)(n,{format:t},e),d=n=>{let[t,e]=n.market.split("-"),l="".concat(e,"-").concat(t);return n.dynamicDate&&n.rangeDate?a(new Date((0,o.F)(new Date)),n.numberOfDays,n.format,l):n.dynamicDate&&!n.rangeDate?r(new Date((0,o.F)(new Date)),n.format,l):!n.dynamicDate&&n.rangeDate?a(new Date(n.specificArrivalDate),n.numberOfDays,n.format,l):n.dynamicDate||n.rangeDate?void 0:r(new Date(n.specificArrivalDate),n.format,l)};function u(n){var t;return null===(t=null!=n?n:[])||void 0===t?void 0:t.map(n=>(null==n?void 0:n._type)==="block"&&(null==n?void 0:n.children)?n.children.map(n=>"inlineDate"===n._type?d(n):n.text).join(""):"").join("\n\n")}},15140:function(n,t,e){"use strict";e.d(t,{Bp:function(){return m},IU:function(){return v},Jn:function(){return c},g1:function(){return f}});var l=e(7862),i=e(53780),o=e(69383),a=e.n(o);let{projectId:r,dataset:d}=e(45382).default.app.sanity,u=[1,2],s=a()({projectId:r,dataset:d}),p=n=>Math.round(n/(0,l.Q1)(1)),v={xs:p(i.I.sm)-1,sm:p(i.I.md)-1,md:p(i.I.lg)-1,lg:p(i.I.xl)-1,xl:p(i.I.xxl)-1,xxl:2e3},c=n=>{let{mediaItem:t,width:e,aspectRatio:l,dpr:i=1,quality:o=55}=n;try{var a,r;let n=s.image(JSON.parse(JSON.stringify(t))).fit("crop").crop("focalpoint").quality(o).width(e).height(Math.round(e/l)).dpr(i).auto("format");return(null==t?void 0:null===(a=t.hotspot)||void 0===a?void 0:a.x)&&(null==t?void 0:null===(r=t.hotspot)||void 0===r?void 0:r.y)&&(n=n.focalPoint(t.hotspot.x,t.hotspot.y)),n.url()}catch(n){return console.warn("getImageUrl failed to build url for mediaItem",n),""}},m=n=>u.map(t=>c({...n,dpr:t})),f=n=>{let{mediaItem:t,aspectRatio:e}=n;return{xs:m({mediaItem:t,width:v.xs,aspectRatio:e}),sm:m({mediaItem:t,width:v.sm,aspectRatio:e}),md:m({mediaItem:t,width:v.md,aspectRatio:e}),lg:m({mediaItem:t,width:v.xxl,aspectRatio:e})}}}},function(n){n.O(0,[5338,8341,9383,9311,7332,434,2888,9774,179],function(){return n(n.s=51878)}),_N_E=n.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.