1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2480,6043],{14468:(e,t,i)=>{"use strict";i.d(t,{A:()=>b});var n=i(6029),o=i(17862),r=i(82411),a=i(88079),s=i.n(a),l=i(55729),d=i(95876),c=i(40854),p=i(72666),m=i(43552),u=i.n(m),h=i(38560),g=i(65033);let x=e=>{let{name:t,nsi:i,title:a,noResultLabel:s,showTwitter:m=!0}=e,{getMicrocopy:x}=(0,l.useContext)(r.z),b=e=>"Custom"===e.status?e.customStatusDescription:e.status;return(0,n.jsxs)(h.dv,{children:[(0,n.jsx)(h.DZ,{children:a}),(0,n.jsx)(h.dV,{"aria-label":a,children:0===i.length?(0,n.jsx)(h.ti,{tabIndex:0,children:(0,n.jsx)(p.Dn,{children:s})}):i.map((e,t)=>{let i=(0,d.Qz)(e.nationalServiceIndicator.statusColourIcon);return(0,n.jsx)("li",{children:(0,n.jsx)(c.A,{name:u()(e.nationalServiceIndicator.operator.operatorName),title:e.nationalServiceIndicator.operator.operatorName,ariaLabel:(0,d.yE)(e.nationalServiceIndicator.statusColourIcon,e.nationalServiceIndicator.name,b(e.nationalServiceIndicator),x),border:!0,summary:(0,n.jsx)(g.A,{incidents:e.incidents,status:b(e.nationalServiceIndicator),readMoreLabel:x(o.Hm,"serviceIncidentMoreLinkText")}),Icon:i.Icon,themeColor:i.themeColor,twitterHandle:m?e.nationalServiceIndicator.operator.twitterHandle:void 0},t)},t)})})]})},b=e=>{let{disruptions:t,nationalServiceIndicators:i,showTwitter:a=!0}=e,{getMicrocopy:c}=(0,l.useContext)(r.z),p=s()(d.EA,d.VV,d.Qc)({disruptions:t,nationalServiceIndicators:i});return(0,n.jsxs)(h.Lb,{children:[(0,n.jsx)(x,{name:"disruptions",nsi:p.nsiWithIncidents,title:c(o.Hm,"withDisruptionsSectionTitle"),noResultLabel:c(o.Hm,"noDisruptionsLabel"),showTwitter:a}),(0,n.jsx)(x,{name:"good-service",nsi:p.nsiWithoutIncidents,title:c(o.Hm,"withoutDisruptionsSectionTitle"),noResultLabel:c(o.Hm,"noGoodServicesLabel"),showTwitter:a})]})}},21042:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var n=i(6029),o=i(43552),r=i.n(o),a=i(74513),s=i.n(a),l=i(55729),d=i(67387);let c=e=>{let{name:t,items:i,checkedIndex:o=0,align:a,mobileFlexDirection:c="column",onChange:p,register:m}=e,[u,h]=(0,l.useState)(o);return(0,n.jsxs)(d.sY,{children:[(0,n.jsxs)(d.b_,{children:["Radio buttons ",t]}),(0,n.jsx)(d.DT,{$mobileFlexDirection:c,$align:a,children:i.map((e,i)=>(0,n.jsxs)(d.iL,{onChange:p,$checked:u,$mobileFlexDirection:c,children:[(0,n.jsx)(d.Zx,{type:"radio",id:r()(e.name),name:s()(t),value:r()(e.name),onClick:()=>h(i),defaultChecked:i===u,...m?m(s()(t)):null}),(0,n.jsx)(d.NA,{htmlFor:r()(e.name),children:e.label})]},r()(e.name)))})]})}},24391:(e,t,i)=>{"use strict";i.d(t,{AR:()=>y,DA:()=>w,MU:()=>C,dP:()=>I,yM:()=>A,yx:()=>f});var n=i(27742),o=i(48313),r=i(37392),a=i(75602),s=i(30391),l=i(82884),d=i(9540),c=i(65594),p=i(14539),m=i(87050),u=i(72666),h=i(59063),g=i(71880),x=i(41735);let b={TopicCardImageWrapper:(0,x.AH)(["height:13.5rem;"])},f=x.Ay.div.withConfig({componentId:"sc-69f0c93d-0"})(["display:block;border-radius:"," "," 0 0;width:100%;height:17.5rem;overflow:hidden;","{*{border-radius:"," "," 0 0;transition:transform 0.7s ease;}}@media ","{","}"],(0,m.Y)(p.mg),(0,m.Y)(p.mg),a.I,(0,m.Y)(p.mg),(0,m.Y)(p.mg),l.yE,b.TopicCardImageWrapper),w=x.Ay.div.withConfig({componentId:"sc-69f0c93d-1"})(["position:relative;display:flex;flex-direction:column;align-items:center;width:100%;padding:"," "," ",";"],(0,m.Y)(p.I0),(0,m.Y)(p.tx),(0,m.Y)(p.tx)),C=x.Ay.div.withConfig({componentId:"sc-69f0c93d-2"})(["position:absolute;top:",";display:flex;justify-content:center;align-items:center;margin:0 auto;box-shadow:0 0 0 1px ",";border-radius:50%;width:","px;height:","px;background-color:",";transition:box-shadow 0.7s ease;"],(0,m.Y)(p.Z$,!0),s.rh,r.uM,r.uM,s.D9),A=x.Ay.h3.withConfig({componentId:"sc-69f0c93d-3"})([""," transition:color 0.7s ease;"],(0,u.hn)({scale:h.MX,textAlign:"center",baseline:!0,color:s.rh})),y=x.Ay.p.withConfig({componentId:"sc-69f0c93d-4"})(["",""],(0,u.Wg)({textAlign:"center",baseline:!0})),j={TopicCardImageWrapper:f},I=x.Ay.a.withConfig({componentId:"sc-69f0c93d-5"})(["display:flex;text-decoration:none;",";& > ","{align-items:center;width:100%;}&:hover,&:focus{","{color:",";}}&:hover{img{transform:scale(1.04);}}",";",";",";"],e=>{let{$mq1Column:t}=e;return t&&(0,x.AH)([""," @media ","{margin:0 auto;width:",";}
1"],(0,g.U)({components:["TopicCardImageWrapper"],mq1TargetMappings:j,mq1OverrideStyles:b}),l.BX,(0,d.a)("mq2",6))},o.ee,A,s.TN,(0,c.B)({target:o.ee}),(0,n.Hn)({boxShadow:!1}),(0,n.Hn)({doubleBoxShadow:!0,target:[o.ee,C]}))},38560:(e,t,i)=>{"use strict";i.d(t,{DZ:()=>m,JW:()=>x,KA:()=>u,Lb:()=>b,dV:()=>g,dv:()=>h,ti:()=>f});var n=i(37241),o=i(30391),r=i(82884),a=i(14539),s=i(87050),l=i(72666),d=i(59063),c=i(41735),p=i(22996);let m=c.Ay.h2.withConfig({componentId:"sc-524b5ac1-0"})(["",";@media ","{",";}"],(0,l.hn)({scale:d.MC,color:o.rh,baseline:!0}),r.yE,(0,l.hn)({scale:d.F0,color:o.rh,baseline:!0})),u=c.Ay.ul.withConfig({componentId:"sc-524b5ac1-1"})(["margin:0;margin-left:0;width:100%;list-style:none;"]),h=c.Ay.div.withConfig({componentId:"sc-524b5ac1-2"})(["display:flex;flex-direction:column;row-gap:",";"],(0,s.Y)(a.AA)),g=c.Ay.ul.withConfig({componentId:"sc-524b5ac1-3"})(["display:flex;row-gap:",";margin-left:0;list-style-type:none;","{width:100%;}","{","{margin:0;}}","{margin-bottom:",";padding-top:",";}"],(0,s.Y)(a.mg),p.Ft,p.Of,l.IX,n.Y,(0,s.Y)(a.AA),(0,s.Y)(a.AA)),x=c.Ay.p.withConfig({componentId:"sc-524b5ac1-4"})(["",""],(0,l.Tu)({margin:0})),b=c.Ay.div.withConfig({componentId:"sc-524b5ac1-5"})(["display:flex;flex-direction:column;row-gap:",";"],(0,s.Y)(a.tx)),f=c.Ay.div.withConfig({componentId:"sc-524b5ac1-6"})(["padding-top:",";padding-bottom:",";",""],(0,s.Y)(a.AA),(0,s.Y)(a.AA),(0,l.Wg)({baseline:!0}))},55677:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(8028),o=i(55729),r=i(76921);let a=e=>{let{dispatch:t}=(0,r.A)({getMicrocopy:e});(0,o.useEffect)(()=>(t({type:"SET_BACK_LINK",payload:n.u.APP_START}),()=>{t({type:"SET_BACK_LINK",payload:void 0})}),[t])}},57208:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/status-and-disruptions",function(){return i(75443)}])},65033:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n=i(6029),o=i(18200),r=i(94604),a=i(57145),s=i(46647),l=i(1447),d=i(95816),c=i.n(d),p=i(43552),m=i.n(p);i(55729);var u=i(38560);let h=e=>{let{incidents:t,status:i,readMoreLabel:d}=e,p=c()(d)?"Read more about this disruption":d;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.JW,{children:i}),(0,n.jsx)(u.KA,{children:t.map((e,t)=>(0,n.jsxs)("li",{children:[(0,n.jsx)(o.A,{}),(0,n.jsx)(r.default,{document:e.summary.json,baseline:!0}),(0,n.jsx)(a.A,{name:`read-more-${m()(e.name)}`,label:p,aria:{"aria-label":`Read about ${(0,s.l)(e.summary.json)}`},href:(0,l.UU)(e)})]},t))})]})}},67387:(e,t,i)=>{"use strict";i.d(t,{DT:()=>u,NA:()=>x,Zx:()=>g,b_:()=>m,iL:()=>h,sY:()=>p});var n=i(27742),o=i(72168),r=i(30391),a=i(82884),s=i(14539),l=i(87050),d=i(72666),c=i(41735);let p=c.Ay.fieldset.withConfig({componentId:"sc-6ad33bc8-0"})(["margin:0;border:0;width:100%;min-width:0;padding:0;&::after{content:'';display:block;clear:both;}@media ","{width:auto;}"],a.aK),m=c.Ay.legend.withConfig({componentId:"sc-6ad33bc8-1"})(["display:none;"]),u=c.Ay.div.withConfig({componentId:"sc-6ad33bc8-2"})(["display:flex;justify-content:",";@media ","{flex-direction:",";}"],e=>{let{$align:t}=e;return t??"center"},a.uj,e=>{let{$mobileFlexDirection:t}=e;return t}),h=c.Ay.div.withConfig({componentId:"sc-6ad33bc8-3"})(["display:inline-block;flex-basis:",";clear:left;@media ","{flex-basis:auto;}&:first-of-type label{border-radius:"," 0 0 ",";}&:last-of-type label{border-radius:0 "," "," 0;}"," @media ","{","}"],e=>{let{$mobileFlexDirection:t}=e;return"row"===t?"50%":"auto"},a.aK,(0,l.Y)(s.mg),(0,l.Y)(s.mg),(0,l.Y)(s.mg),(0,l.Y)(s.mg),e=>{let{$checked:t,$mobileFlexDirection:i}=e;return(0,c.AH)(["&:nth-child(","){",";@media ","{&:not(:first-child){",";}&:not(:last-child){",";}}@media ","{&:not(:first-child){margin-left:-1px;}&:not(:last-child){margin-right:-1px;}}}&:not(&:nth-child(",")) + &:not(&:nth-child(",")){@media ","{",";}@media ","{margin-left:-1px;}}"],t+1,(0,o.k6)({compType:"radioButtons",elementType:"button"}),a.uj,"row"===i?"margin-left: -1px":"margin-top: -1px","row"===i?"margin-right: -1px":"margin-bottom: -1px",a.aK,t+1,t+1,a.uj,"row"===i?"margin-left: -1px":"margin-top: -1px",a.aK)},a.uj,e=>{let{$mobileFlexDirection:t}=e;return"row"!==t&&(0,c.AH)(["&:first-of-type label{border-radius:"," "," 0 0;}&:last-of-type label{border-radius:0 0 "," ",";}"],(0,l.Y)(s.mg),(0,l.Y)(s.mg),(0,l.Y)(s.mg),(0,l.Y)(s.mg))}),g=c.Ay.input.withConfig({componentId:"sc-6ad33bc8-4"})(["position:absolute;border:0;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);&:checked + label{box-shadow:none;background-color:",";cursor:default;color:",";}&:focus-visible + label{box-shadow:",";}@media (hover:hover) and (pointer:fine){&:hover + label{box-shadow:0 0 0 2px "," inset;}}"],r.TN,r.ON,(0,n.ri)({inset:!0}),r.TN),x=c.Ay.label.withConfig({componentId:"sc-6ad33bc8-5"})(["display:flex;justify-content:center;align-items:center;box-shadow:0 0 0 1px "," inset;height:100%;padding:"," clamp(",",2vw,",");background-color:",";",";cursor:pointer;transition:all 0.5s ease;&:hover{color:",";}"],r.P8,(0,l.Y)(s.mg),(0,l.Y)(s.mg),(0,l.Y)(s.AA),r.ON,(0,d.Tu)({color:r.rh,textAlign:"center"}),r.TN)},74513:(e,t,i)=>{e.exports=i(79990)(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()})},75443:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>J,default:()=>ee});var n=i(6029),o=i(96950),r=i(30391),a=i(80470),s=i(55677),l=i(83977),d=i(55729),c=i(28942),p=i(82411),m=i(99807),u=i(5950),h=i(43353),g=i(21042),x=i(98060),b=i(97718),f=i(24166),w=i(62723),C=i(77626),A=i(14468),y=i(75717),j=i(36632),I=i(24093),v=i(82884),T=i(65486),L=i(86886),k=i(12307),D=i(14539),S=i(1447),Y=i(56742),E=i(74312),$=i.n(E),N=i(76560),K=i.n(N),O=i(71024),_=i.n(O),W=i(17862),R=i(74060),B=i.n(R),G=i(5382),M=i.n(G);i(68242),$().extend(B());let P="disruptions",H="train-operator-status",F=e=>{let{mode:t}=e;return M()(t,P)},U=e=>{let{mode:t}=e;return M()(t,H)};var q=i(70796),z=i(87050);let X=i(41735).Ay.div.withConfig({componentId:"sc-2b6333f7-0"})(["&:empty{display:none;}@media ","{margin-bottom:",";}@media ","{display:none;}"],v.pc,(0,z.Y)(D.AA),v.yE),V=_()(()=>Promise.resolve().then(i.bind(i,96457)),{loadableGenerated:{webpack:()=>[96457]}}),Z=e=>
1{let{requestParams:t,disruptionsData:i,serviceIndicatorsData:o,pageTemplateData:a}=e,{seo:s,topicCard:l,rightColumnAdvert:v}=a,E=(0,j.on)(e=>e.appMode.isAppMode),{getMicrocopy:N}=(0,d.useContext)(p.z),[O,_]=(0,d.useState)(t.mode),R=(0,u.l)(),B={pageTitle:N(W.KL,"pageTitle"),buttonOptions:[{name:P,label:N(W.KL,"disruptionsLabel")},{name:H,label:N(W.KL,"trainOperatorStatusLabel")}]},G=t.date?new Date(t.date):new Date,M=$()(G).isAfter($()(),"day"),{trackAlchemerEvent:z}=(0,m.A)({suppressMultiple:!1}),Z=(0,q.j)({operatorCode:t.operatorCode,activeOperators:i.activeOperators,date:G}),Q=!!v;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{seoContent:s,canonicalUrl:S.BC,imageUrl:Y.qB,includeTwitter:!0}),E?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.A,{label:"Back"}),(0,n.jsx)(f.A,{heading:B.pageTitle,themeColor:r.rh})]}),(0,n.jsx)(T.mc,{spaceSet:k.cc,themeColor:r.i,children:(0,n.jsx)(T.fI,{align:"start",children:(0,n.jsx)(T.fv,{mq3:8,mq4:8,children:(0,n.jsx)(g.A,{name:"disruptions-list-buttons",items:B.buttonOptions,align:"start",checkedIndex:K()(B.buttonOptions,e=>e.name===O),onChange:e=>{switch(_(e.target.value),e.target.value){case P:{let e={date:G,operatorCode:t.operatorCode};z({eventName:"StatusDisruptionsToggled"}),R.push((0,S.GO)(e),null,{shallow:!0});break}case H:z({eventName:"StatusTrainOperatorToggled"}),R.push((0,S.j5)(),null,{shallow:!0});break;default:{let e={date:new Date,operatorCode:null};R.push((0,S.GO)(e))}}}})})})}),F({mode:O})&&(0,n.jsx)(T.mc,{themeColor:r.i,spacingTop:0,spacingBottom:0,children:(0,n.jsx)(T.fI,{align:"start",children:(0,n.jsx)(T.fv,{mq3:8,mq4:8,children:(0,n.jsx)(w.A,{name:"disruptions-finder",operators:i.activeOperators,date:G,operatorCode:t.operatorCode})})})}),(0,n.jsxs)(I.A,{name:"incidents-list",areas:{left:[y.f.INCIDENTS_GROUPS],right:[y.f.TOPIC_CARD]},themeColor:r.i,spaceSet:k.ih,spacingTop:U({mode:O})?D.tY:D.tx,sticky:!0,children:[(0,n.jsxs)(L.E,{area:y.f.INCIDENTS_GROUPS,main:!0,children:[(0,n.jsx)(h.m,{"aria-live":"polite","aria-atomic":"true",children:Z}),F({mode:O})&&(0,n.jsx)(C.A,{disruptions:i.disruptions,clearedDisruptions:i.clearedDisruptions,engineeringWorks:i.engineeringWorks,options:{hideDisruptionsGroup:!1,hideClearedDisruptionsGroup:M,hideEngineeringWorks:!1,showDisruptionsButton:!1,showClearedDisruptionsButton:!0,showEngineeringWorksButton:!1}}),U({mode:O})&&(0,n.jsx)(A.A,{disruptions:o.unplannedIncidents,nationalServiceIndicators:o.serviceIndicators})]}),(0,n.jsxs)(L.E,{area:y.f.TOPIC_CARD,options:{spacingTop:D.TE,stickyBottom:Q,onMobileDisableStickyBottom:Q},children:[Q&&(0,n.jsx)(X,{children:(0,n.jsx)(V,{...v,withContainer:!1,advertOptions:{advertLabelTop:!0}})}),!!l&&(0,n.jsx)("div",{children:(0,n.jsx)(b.default,{...l})})]})]})]})};var Q=i(84880),J=!0;let ee=e=>{let{layoutData:t,data:i,pageTemplateData:d}=e,c=(0,Q._)(t?.microcopy);return(0,a.A)(),(0,l.A)({color:r.ON}),(0,s.A)(c),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{}),(0,n.jsx)(Z,{pageTemplateData:d,...i})]})}},77626:(e,t,i)=>{"use strict";i.d(t,{A:()=>E});var n=i(6029),o=i(82411),r=i(36084),a=i(45948),s=i(30391),l=i(43552),d=i.n(l),c=i(55729),p=i(40854),m=i(82884),u=i(14539),h=i(87050),g=i(72666),x=i(59063),b=i(41735);let f=b.Ay.h2.withConfig({componentId:"sc-fc0aaadb-0"})(["",";@media ","{",";}"],(0,g.hn)({scale:x.MC,color:s.rh,baseline:!0}),m.yE,(0,g.hn)({scale:x.F0,color:s.rh,baseline:!0})),w=b.Ay.ul.withConfig({componentId:"sc-fc0aaadb-1"})(["display:flex;flex-direction:column;row-gap:",";margin-left:0;list-style-type:none;"],(0,h.Y)(u.mg)),C=b.Ay.p.withConfig({componentId:"sc-fc0aaadb-2"})(["",""],(0,g.Wg)({})),A=b.Ay.section.withConfig({componentId:"sc-fc0aaadb-3"})(["display:flex;flex-direction:column;row-gap:",";"],(0,h.Y)(u.AA)),y=e=>{let{name:t,title:i,items:o,options:r={},labels:l}=e,{collapsedColor:m,initialState:u,headerSize:h,hide:g}=r,[x,b]=(0,c.useState)(!u||"open"===u);return(0,n.jsxs)(A,{children:[(0,n.jsx)(f,{as:h,children:i}),!g&&(0,n.jsx)(a.A,{name:t,label:x?l.accordionOpened:l.accordionClosed,isOpen:x,onClick:()=>b(!x),options:{collapsedColor:m??s.ON,borderBottom:!0,openColor:s.TN}}),x&&(0===o.length?(0,n.jsx)(C,{tabIndex:0,children:l.noResults}):(0,n.jsx)(w,{"aria-label":i,children:o?.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)(p.A,{name:d()(e.name),title:e.title,summary:e.summary,ariaLabel:e.ariaLabel,themeColor:e.themeColor,border:e.border,Icon:e.Icon,url:e.url,options:{ariaLabelPrefix:e.options?.ariaLabelPrefix}},t)},t))}))]})};var j=i(17862),I=i(12414),v=i(41843),T=i(35908),L=i(1447),k=i(55842),D=i(60386);let S=b.Ay.div.withConfig({componentId:"sc-8a68926-0"})(["display:block;"]),Y=b.Ay.div.withConfig({componentId:"sc-8a68926-1"})(["display:flex;flex-direction:column;row-gap:",";@media ","{row-gap:",";}"],(0,h.Y)(u.me),m.yE,(0,h.Y)(u.tx)),E=e=>{let{title:t,disruptions:i,clearedDisruptions:a,engineeringWorks:l,options:d={}}=e,{hideDisruptionsGroup:p,hideClearedDisruptionsGroup:m,hideEngineeringWorks:u}=d,{getMicrocopy:h}=(0,c.useContext)(o.z),{disruptions:g,clearedDisruptions:x,engineeringWorks:b}=(e=>{let{disruptions:t,clearedDisruptions:i,engineeringWorks:n,getMicrocopy:o,hasTitleBlock:r,options:a={}}=e,l=[...t].sort((0,v.o)()),d=[...[...i].filter(e=>!!e.incidentClearedDateTime&&(0,k.A)(new Date(e.incidentClearedDateTime)))].sort((0,v.o)()),c=[...n].sort((0,v.o)()),{collapsedButtonColor:p,showDisruptionsButton:m,showClearedDisruptionsButton:u,showEngineeringWorksButton:h,isClearedDisruptionsGroupOpen:g,isEngineeringWorksOpen:x}=a,b={disruptions:0===l.length||!m,clearedDisruptions:0==d.length||!u,engineeringWorks:0===c.length||!h},f=(e,t)=>e?"open":t??"closed",w=r?"h3":"h2";return{disruptions:{name:"disruptions",title:o(j.KL,"disruptionTimetableGroupTitle"),items:l.map(e=>(0,T.D)(e,o)),options:{hide:b.disruptions,headerSize:w,collapsedColor:p},labels:{noResults:o(j.KL,"noDisruptionsLabel")}},clearedDisruptions:{name:"cleared-disruptions",title:o(j.KL,"recentlyClearedDisruptionsGroupTitle"),items:d.map(e=>{let t,i;return t=e,i=o,{name:t.name,title:"",summary:(0,I.YD)(t.summary),Icon:D.KtF,themeColor:s.wL,border:!0,options:{ariaLabelPrefix:`${i(j.KL,"incidentTypeClearedAriaLabel")}: `},url:(0,L.UU)(t)}}),options:{initialState:f(b.clearedDisruptions,g),hide:b.clearedDisruptions,headerSize:w,collapsedColor:p},labels:{accordionOpened:`${o(j.KL,"closeClearedDisruptionsLabel")} (${d.length})`,accordionClosed:`${o(j.KL,"showClearedDisruptionsLabel")} (${d.length})`,noResults:o(j.KL,"noClearedDisruptionsLabel")}},engineeringWorks:{name:"engineering-works",title:o(j.KL,"plannedEngineeringWorksGroupTitle"),items:c.map(e=>(0,T.D)(e,o)),options:{hide:b.engineeringWorks,headerSize:w,initialState:f(b.engineeringWorks,x),collapsedColor:p},labels:{accordionOpened:`${o(j.KL,"closeEngineeringWorksLabel")} (${c.length})`,accordionClosed:`${o(j.KL,"showEngineeringWorksLabel")} (${c.length})`,noResults:o(j.KL,"noEngineeringWorksLabel")}}}})({disruptions:i,clearedDisruptions:a,engineeringWorks:l,getMicrocopy:h,hasTitleBlock:!!t,options:d});return(0,n.jsxs)(S,{children:[t&&(0,n.jsx)(r.A,{name:"incident-list-title-block",...t}),(0,n.jsxs)(Y,{children:[!p&&(0,n.jsx)(y,{...g}),!m&&(0,n.jsx)(y,{...x}),!u&&(0,n.jsx)(y,{...b})]})]})}},95876:(e,t,i)=>{"use strict";i.d(t,{EA:()=>c,Qc:()=>p,Qz:()=>h,VV:()=>m,yE:()=>g});var n=i(17862),o=i(30391),r=i(64305),a=i.n(r),s=i(99452),l=i.n(s),d=i(60386);let c=e=>{let{disruptions:t,nationalServiceIndicators:i}=e,n=[...t];return i.map(e=>({nationalServiceIndicator:e,incidents:l()(a()(n,{operatorsAffectedCollection:[{code:e.operator.operatorCode}]}),["priority","sys.publishedAt"],["asc","desc"])}))},p=e=>{let t=a()(e,e=>"Green tick"!==e.nationalServiceIndicator.statusColourIcon),i=a()(e,e=>"Green tick"===e.nationalServiceIndicator.statusColourIcon);return{nsiWithIncidents:u(t),nsiWithoutIncidents:i}},m=e=>e.sort((e,t)=>
1e.nationalServiceIndicator.operator.operatorName.localeCompare(t.nationalServiceIndicator.operator.operatorName)),u=e=>{let t=["Red warning","Yellow notification","Green tick"];return e.sort((e,i)=>t.indexOf(e.nationalServiceIndicator.statusColourIcon)-t.indexOf(i.nationalServiceIndicator.statusColourIcon))},h=e=>{switch(e){case"Green tick":default:return{Icon:d.KtF,themeColor:o.wL};case"Yellow notification":return{Icon:d.Xpq,themeColor:o.$k};case"Red warning":return{Icon:d.Xpq,themeColor:o.wv}}},g=(e,t,i,o)=>{switch(e){case"Green tick":return`Good service on ${t}`;case"Yellow notification":return`${o(n.KL,"incidentTypeMinorAriaLabel")}: ${t} ${i}`;case"Red warning":return`${o(n.KL,"incidentTypeMajorAriaLabel")}: ${t} ${i}`}}},97718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var n=i(6029),o=i(15077),r=i(84985),a=i(37392),s=i(17471),l=i(30391),d=i(14539),c=i(31376);i(55729);var p=i(60386),m=i(24391);let u=e=>{let{name:t,title:i,description:u,src:h,image:g,openInNewTab:x,mq1Column:b}=e,f=`${i} - ${u}${x?` ${c.xg}`:""}`;return(0,n.jsx)(m.dP,{href:h,...x&&{target:c.Cm.blank,rel:"external noopener"},"aria-label":f,$mq1Column:b,children:(0,n.jsxs)(o.A,{name:t,borderRadius:d.mg,allPadding:[d.tY],children:[(0,n.jsx)(m.yx,{children:(0,n.jsx)(r.A,{alt:g.altText,src:g.url,name:t,options:{objectFit:"cover",fill:!0}})}),(0,n.jsxs)(m.DA,{children:[(0,n.jsx)(m.MU,{children:(0,n.jsx)(s.dt,{$cssWidth:a.El,$cssHeight:a.El,children:(0,n.jsx)(p.pN7,{fill:l.KD,width:a.El,height:a.El})})}),(0,n.jsx)(m.yM,{children:i}),u&&(0,n.jsx)(m.AR,{children:u})]})]})})}}},e=>{e.O(0,[6593,2196,751,7084,9580,1268,5830,8014,1096,8530,636,8792],()=>e(e.s=57208)),_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.