PageSourceSearch

https://www.nationalrail.co.uk/nreassets/_next/static/chunks/pages/engineering-works-1c244aa6ae29012b.js

js nationalrail.co.uk collected 2026-10-01 08:52:00 UTC 12,425 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9188],{12895:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>I,default:()=>z});var n=r(6029),a=r(96950),i=r(30391),o=r(80470),s=r(83977),l=r(55729),d=r(28942),c=r(43353),u=r(24166),m=r(62723),h=r(75717),f=r(24093),p=r(86886),A=r(34720),g=r(12307),v=r(1447),w=r(56742),x=r(17862),M=r(82411),y=r(70796),D=r(36632),Y=r(40854),C=r(72666),b=r(14539),j=r(87050),L=r(41735);let _=L.Ay.h2.withConfig({componentId:"sc-1edad815-0"})(["",";"],(0,C.hn)({color:i.rh,scale:"ts_1",baseline:!0,margin:b.AA})),k=L.Ay.ul.withConfig({componentId:"sc-1edad815-1"})(["display:flex;flex-direction:column;row-gap:",";margin:0;list-style:none;"],(0,j.Y)("s_05"));var T=r(41843),E=r(35908);let S=e=>{let{items:t}=e,{microcopy:r,hasItems:a,mappedItems:i}=(e=>{let{items:t}=e,{getMicrocopy:r}=(0,l.useContext)(M.z),n={title:r(x.KL,"plannedEngineeringWorksGroupTitle"),noResults:r(x.KL,"noEngineeringWorksLabel")},a=t?.sort((0,T.o)())?.map(e=>(0,E.D)(e,r))??[];return{microcopy:n,hasItems:a.length>0,mappedItems:a}})({items:t});return(0,n.jsxs)("section",{"aria-label":r.title,children:[(0,n.jsx)(_,{children:r.title}),a?(0,n.jsx)(k,{children:i.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)(Y.A,{...e})},t))}):(0,n.jsx)(C.Dn,{children:r.noResults})]})},N=e=>{let{data:{engineeringWorks:t,activeOperators:r,requestParams:a},pageTemplateData:{seo:o,rightColumnAdvert:s,topicCard:Y}}=e,{date:C,isAppMode:b,heading:j,ariaText:L}=(e=>{let{data:t}=e,{requestParams:r,activeOperators:n}=t,{getMicrocopy:a}=(0,l.useContext)(M.z),i=(0,D.on)(e=>e.appMode.isAppMode),o={heading:a(x.KL,"plannedEngineeringWorksGroupTitle")},s=new Date(r.date),d=o.heading,c=(0,y.j)({operatorCode:r.operatorCode,activeOperators:n,date:s});return{date:s,isAppMode:i,heading:d,ariaText:c}})(e);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{seoContent:o,canonicalUrl:v.Z4,imageUrl:w.qB,includeTwitter:!0}),b?null:(0,n.jsx)(u.A,{heading:j,themeColor:i.rh,options:{compact:!0}}),(0,n.jsxs)(f.A,{name:"planned-engineering-works",areas:{left:[h.f.MAIN],right:[h.f.TOPIC_CARD]},themeColor:i.i,spaceSet:g.XY,sticky:!0,children:[(0,n.jsxs)(p.E,{area:h.f.MAIN,main:!0,children:[(0,n.jsx)(m.A,{name:"disruptions-finder",operators:r,date:C,operatorCode:a.operatorCode,submitUrl:v.Z4}),(0,n.jsx)(S,{items:t}),(0,n.jsx)(c.m,{role:"status","aria-live":"polite","aria-atomic":"true",children:L})]}),(0,n.jsx)(p.E,{area:h.f.TOPIC_CARD,options:{stickyBottom:!!s,onMobileDisableStickyBottom:!!s},children:(0,n.jsx)(A.A,{rightColumnAdvert:s,topicCard:Y,options:{mq12HideAdvert:!0}})})]})]})};var I=!0;let z=e=>{let{pageTemplateData:t,data:r}=e;return(0,o.A)(),(0,s.A)({color:i.ON}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{}),(0,n.jsx)(N,{pageTemplateData:t,data:r})]})}},21529:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(76918),a=r(98769),i=r(72723),o=r(1789),s=r(88610),l={date:(0,s.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,s.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,s.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};let d={code:"en-GB",formatDistance:n.A,formatLong:l,formatRelative:a.A,localize:i.A,match:o.A,options:{weekStartsOn:1,firstWeekContainsDate:4}}},34720:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(6029),a=r(71024),i=r.n(a);r(55729);var o=r(82884),s=r(87050);let l=r(41735).Ay.div.withConfig({componentId:"sc-9ecf1e77-0"})(["display:flex;flex-direction:column;gap:",";@media ","{& > :first-child{display:",";}}"],(0,s.Y)("s_1"),o.yE,e=>{let{$mq12HideAdvert:t}=e;
1return t&&"none"}),d=i()(()=>Promise.resolve().then(r.bind(r,96457)),{loadableGenerated:{webpack:()=>[96457]}}),c=i()(()=>r.e(7718).then(r.bind(r,97718)),{loadableGenerated:{webpack:()=>[97718]}}),u=e=>{let{rightColumnAdvert:t,topicCard:r,options:a={}}=e,{mq12HideAdvert:i=!1}=a;return t||r?(0,n.jsxs)(l,{$mq12HideAdvert:i,children:[t&&(0,n.jsx)(d,{...t,withContainer:!1,advertOptions:{advertLabelTop:!0}}),r&&(0,n.jsx)("div",{children:(0,n.jsx)(c,{...r})})]}):null}},53280:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/engineering-works",function(){return r(12895)}])},62723:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(6029),a=r(82411),i=r(66474),o=r(5950),s=r(15077),l=r(98111),d=r(69326),c=r(66373),u=r(32127),m=r(35735),h=r(58457),f=r(30391),p=r(14539),A=r(36252),g=r(1447),v=r(94812),w=r(55729),x=r(55830),M=r(17862);let y={name:"all",label:"All"};var D=r(76991),Y=r(48313),C=r(82884),b=r(87050),j=r(41735);let L=j.Ay.div.withConfig({componentId:"sc-b6d89794-0"})(["@media ","{margin:0 ",";","{border-radius:0;}}"],C.Ph,(0,b.Y)(p.AA,!0),Y.ee),_=j.Ay.div.withConfig({componentId:"sc-b6d89794-1"})(["position:relative;display:flex;gap:"," ",";@media ","{flex-direction:column;}"],(0,b.Y)(p.AA),(0,b.Y)(p.mg),C.uj),k=j.Ay.div.withConfig({componentId:"sc-b6d89794-2"})(["position:relative;display:flex;column-gap:",";width:100%;@media ","{flex-direction:column;row-gap:",";}@media ","{& > :first-child{flex:0 0 11rem;}}"],(0,b.Y)(p.mg),C.uj,(0,b.Y)(p.mg),C.aK),T=j.Ay.div.withConfig({componentId:"sc-b6d89794-3"})(["display:flex;@media ","{","{width:100%;}}"],C.uj,D.OV),E=e=>{let{name:t,operators:r,date:D,operatorCode:Y,submitUrl:C=g.BC}=e,b=new Date,j={min:b,max:(0,v.A)(b,{weeks:12})},E=(0,o.l)(),{getMicrocopy:S}=(0,w.useContext)(a.z),[N,I]=(0,w.useState)(D??b),[z,H]=(0,w.useState)(y.name),O=(0,w.useRef)(y.name),[P,$]=(0,w.useState)(!1),R=(0,w.useRef)(null),{trackEvent:Z}=(0,h.A)();(0,w.useEffect)(()=>{I(D??new Date),O.current=Y},[D,Y]),(0,w.useEffect)(()=>{P&&((0,A.C)(R.current),$(!1))},[P]);let B={buttonLabel:S(M.Y_,"searchButton"),datePickerLabel:S(M.Y_,"datePickerLabel"),operatorDropdownLabel:S(M.Y_,"operatorDropdownLabel")},G=[y,...r.map(e=>({name:e.operatorCode,label:e.operatorName})).sort((e,t)=>e.label.localeCompare(t.label))];return(0,n.jsx)(L,{ref:R,id:"disruptions-finder",children:(0,n.jsx)(s.A,{name:t,color:f._p,allPadding:[p.AA],children:(0,n.jsxs)(_,{children:[(0,n.jsxs)(k,{children:[(0,n.jsx)(x.A,{name:"disruptions-finder-date",initialDate:N,earliestDate:j.min,latestDate:j.max,showYearPicker:!1,label:B.datePickerLabel,onDateChange:e=>{I(e)}}),(0,n.jsx)(l.A,{name:"operator",items:G,options:{label:B.operatorDropdownLabel,onChange:e=>{H(e.target.selectedOptions[0].label),O.current=e.target.value},value:Y?.toLowerCase()??y.name}})]}),(0,n.jsx)(T,{children:(0,n.jsx)(d.A,{name:t,label:B.buttonLabel,size:u.BY,set:u.mJ,disable:P,submit:!1,onClick:()=>{$(!0);let e=(0,g.GO)({date:N,operatorCode:O.current,submitUrl:C});E.push(e,null,{scroll:!1}),Z(m.yp.TRACK_INCIDENTS_PAGE,{journey_date:(0,i.qN)(N,i.Mf),train_operator:z})},icon:c.A})})]})})})}},66373:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6029),a=r(26860);r(55729);var i=r(37392);let o=(0,n.jsx)("path",{d:"M7.1,0.8L7.1,0.8l4.7,4.7c0,0,0,0,0.1,0.1l-0.1-0.1c0,0,0.1,0.1,0.1,0.1c0,0,0,0,0,0  c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0.1c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0l0,0c0,0,0,0,0,0L12,6  c0,0,0,0.1,0,0.1c0,0,0,0,0,0c0,0,0,0,0,0.1c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0-0.1,0.1-0.1,0.1l0,0l-4.7,4.7  c-0.3,0.3-0.7,0.3-0.9,0c-0.2-0.2-0.3-0.6-0.1-0.9l0.1-0.1l3.5-3.5l-9.1,0C0.3,6.7,0,6.4,0,6c0-0.3,0.3-0.6,0.6-0.7l0.1,0l9.1,0  L6.2,1.8C6,1.6,5.9,1.2,6.1,0.9l0.1-0.1C6.4,0.6,6.8,0.6,7.1,0.8z"}),s=e=>{let{id:t="arrowRight",size:r=i.II,color:s=i.OT,role:l,title:d="ArrowRight Icon",name:c="arrow-right",nested:u,background:m}=e;return(0,n.jsx)(a.A,{id:t,fill:s,role:l,title:d,viewBoxSize:r,name:c,nested:u,background:m,children:o})}},70796:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n=e=>{let{operatorCode:t,activeOperators:r,date:n}=e,a=t&&"all"!==t?r.find(e=>e.operatorCode===t)?.operatorName||t:"All operators";return`Results updated for ${a} on ${n.toDateString()}`}},74060:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e*=1)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var r,n=o.meridiem;if(n){for(var a=1;a<=24;a+=1)if(e.indexOf(n(a,0,t))>-1){r=a>12;break}}else r=e===(t?"pm":"PM");return r},m={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],Q:[r,function(e){this.month=3*(e-1)+1}],S:[r,function(e){this.milliseconds=100*e}],SS:[n,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,l("seconds")],ss:[a,l("seconds")],m:[a,l("minutes")],mm:[a,l("minutes")],H:[a,l("hours")],h:[a,l("hours")],HH:[a,l("hours")],hh:[a,l("hours")],D:[a,l("day")],DD:[n,l("day")],Do:[i,function(e){var t=o.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[a,l("week")],ww:[n,l("week")],M:[a,l("month")],MM:[n,l("month")],MM
1M:[i,function(e){var t=c("months"),r=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(r<1)throw Error();this.month=r%12||r}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:d,ZZ:d};return function(r,n,a){a.p.customParseFormat=!0,r&&r.parseTwoDigitYear&&(s=r.parseTwoDigitYear);var i=n.prototype,l=i.parse;i.parse=function(r){var n=r.date,i=r.utc,s=r.args;this.$u=i;var d=s[1];if("string"==typeof d){var c=!0===s[2],u=!0===s[3],h=s[2];u&&(h=s[2]),o=this.$locale(),!c&&h&&(o=a.Ls[h]),this.$d=function(r,n,a,i){try{if(["x","X"].indexOf(n)>-1)return new Date(("X"===n?1e3:1)*r);var s=(function(r){var n,a;n=r,a=o&&o.formats;for(var i=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,n){var i=n&&n.toUpperCase();return r||a[n]||e[n]||a[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})})).match(t),s=i.length,l=0;l<s;l+=1){var d=i[l],c=m[d],u=c&&c[0],h=c&&c[1];i[l]=h?{regex:u,parser:h}:d.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<s;r+=1){var a=i[r];if("string"==typeof a)n+=a.length;else{var o=a.regex,l=a.parser,d=e.slice(n),c=o.exec(d)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}})(n)(r),l=s.year,d=s.month,c=s.day,u=s.hours,h=s.minutes,f=s.seconds,p=s.milliseconds,A=s.zone,g=s.week,v=new Date,w=c||(l||d?1:v.getDate()),x=l||v.getFullYear(),M=0;l&&!d||(M=d>0?d-1:v.getMonth());var y,D=u||0,Y=h||0,C=f||0,b=p||0;return A?new Date(Date.UTC(x,M,w,D,Y,C,b+60*A.offset*1e3)):a?new Date(Date.UTC(x,M,w,D,Y,C,b)):(y=new Date(x,M,w,D,Y,C,b),g&&(y=i(y).week(g).toDate()),y)}catch(e){return new Date("")}}(n,d,i,a),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),(c||u)&&n!=this.format(d)&&(this.$d=new Date("")),o={}}else if(d instanceof Array)for(var f=d.length,p=1;p<=f;p+=1){s[1]=d[p-1];var A=a.apply(this,s);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}p===f&&(this.$d=new Date(""))}else l.call(this,r)}}}()},81114:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96593),a=r(61598),i=r(81810);function o(e,t){(0,i.A)(2,arguments);var r=(0,a.A)(e),o=(0,n.A)(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(o),r)}},83977:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(63705),a=r(36632);let i=e=>{let{color:t}=e,r=(0,a.on)(e=>e.appMode.isAppMode);(0,n.A)({color:t,enabled:!r})}},86316:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96593),a=r(61598),i=r(81810);function o(e,t){(0,i.A)(2,arguments);var r=(0,a.A)(e),o=(0,n.A)(t);return r.setHours(o),r}},94458:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96593),a=r(61598),i=r(81810);function o(e,t){(0,i.A)(2,arguments);var r=(0,a.A)(e),o=(0,n.A)(t);return r.setMinutes(o),r}}},e=>{e.O(0,[6593,2196,751,7084,5923,5830,9852,8014,3213,636,8792],()=>e(e.s=53280)),_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.