1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[451],{6740:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return b}});var r=t(67294),i=t(92698),o=t(41664),u=t.n(o),a=t(11163),l=t(86010),s=t(38729),c=t.n(s),_=t(89343),f=t(65898),d=t(90207),v=t(63674),m=t(95732),h=t(67594),p=t(5152),g=t.n(p),w=t(85893),S=g()((function(){return Promise.resolve().then(t.bind(t,80232))}),{ssr:!1,loadableGenerated:{webpack:function(){return[80232]}}});var b=!0;n.default=function(e){var n,t=e.data,o=(t.dotImage,t.timeSpan),s=t.title,p=t.paragraphText,g=t.contentDotsCollection,b=(0,m.s6)("dotTimelineModalOpen"),x=(0,m.ic)("setDotTimelineContainerRef"),j=(0,m.s6)("prevRouter"),C=(0,m.s6)("setExitFn"),D=(0,m.s6)("responsiveVersion"),N=(0,m.s6)("setPageData"),k=(0,r.useRef)(null),y=(0,r.useRef)(null),E=(0,r.useRef)(null),P=(0,a.useRouter)(),O=(0,r.useState)(!1),R=O[0],T=O[1],q=(0,r.useState)(null),B=q[0],A=q[1],K=(0,r.useState)(null),L=K[0],F=K[1],M=(0,r.useState)(!1),Z=M[0],z=M[1],H=(0,m.dz)().width,I=null!==(n=null===j||void 0===j?void 0:j.asPath)&&void 0!==n?n:"/explore";g.items.sort((function(e,n){var t=parseInt(e.yearString,10),r=parseInt(n.yearString,10);return t>r?-1:t<r?1:0})),(0,i.bt)((function(){(0,_.Bs)({container:k.current,wrapper:y.current,inner:E.current},{prevRoute:null===j||void 0===j?void 0:j.pathname,responsiveVersion:D,cb:function(){return T(!0)}})}),[j]),(0,i.bt)((function(){k.current&&x(k.current)}),[k.current]),(0,i.bt)((function(){if(R){var e=requestAnimationFrame((function(){var e,n;null===(e=h.h.getState().activeScrollSmoother)||void 0===e||null===(n=e.scrollTrigger)||void 0===n||n.refresh()}));return function(){return cancelAnimationFrame(e)}}}),[R]),(0,i.bt)((function(){var e=E.current;if(e&&"undefined"!==typeof ResizeObserver){var n=new ResizeObserver((function(){var e,n;null===(e=h.h.getState().activeScrollSmoother)||void 0===e||null===(n=e.scrollTrigger)||void 0===n||n.refresh()}));return n.observe(e),function(){return n.disconnect()}}}),[]),(0,r.useEffect)((function(){N("timeline-detail",t)}),[t]),(0,r.useEffect)((function(){k.current&&C((function(e){return(0,_.eL)(k.current,(function(){return P.push(e)}),{toPath:e})}))}),[k.current]),(0,r.useEffect)((function(){return function(){h.h.getState().dotTimelineModalOpen&&
1(h.h.setState({dotTimelineModalOpen:!1}),document.body.style.overflow="initial")}}),[]),(0,r.useEffect)((function(){B?g.items.find((function(e){return e.slug===B?(F(e),z(!1),e):null})):(F(null),z(!1))}),[B,F,z]);var X=function(e){e.preventDefault(),b&&H<901?(0,_.Zo)({mobile:!0}):(0,_.eL)(k.current,(function(){return P.push(I)}),{toPath:I})},G=function(e){e.preventDefault(),(0,_.eL)(k.current,(function(){return P.push("/timeline/".concat(P.query.slug,"/overview"))}),{toPath:"/timeline/".concat(P.query.slug,"/overview")})};return(0,w.jsxs)("div",{className:c().container,ref:k,children:[(0,w.jsx)(S,{selectedDotData:L,backgroundLoaded:Z,setBackgroundLoaded:z}),(0,w.jsx)(u(),{href:"/",children:(0,w.jsx)("a",{className:(0,l.Z)(c().backArrowContainer,"timeline__back-arrow-container","hide-fouc"),onClick:function(e){return X(e)},onKeyDown:function(e){return X(e)},children:(0,w.jsx)(f.D1,{})})}),(0,w.jsxs)("div",{className:(0,l.Z)(c().titleContainer,"timeline__title-container","hide-fouc"),children:[(0,w.jsx)("h1",{className:c().title,children:s}),(0,w.jsx)("p",{className:c().timeSpan,children:o}),(null===p||void 0===p?void 0:p.json)&&(0,w.jsx)(u(),{href:"/timeline/".concat(P.query.slug,"/overview"),children:(0,w.jsxs)("a",{className:c().overviewButton,onClick:function(e){return G(e)},onKeyDown:function(e){return G(e)},children:["See Overview"," ",(0,w.jsx)("div",{className:c().eyeContainer,children:(0,w.jsx)(f.bA,{})})]})})]}),(0,w.jsx)("div",{className:c().wrapper,ref:y,children:(0,w.jsx)("div",{className:c().inner,ref:E,children:(0,w.jsxs)("div",{className:(0,l.Z)(c().timelineContainer,"timeline__timeline-container","hide-fouc"),children:[g.items.slice(0,14).map((function(e,n){return(0,w.jsx)(d.jq,{initial:!0,data:e,selectedDot:B,setSelectedDot:A},n)})),R&&g.items.slice(14).map((function(e,n){return(0,w.jsx)(d.jq,{data:e,selectedDot:B,setSelectedDot:A},n+14)}))]})})}),(0,w.jsx)(v.if,{initialData:L,allData:g.items,setSelectedDot:A})]})}},67727:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/timeline/[slug]",function(){return t(6740)}])},38729:function(e){e.exports={container:"_slug__container__8noH_",wrapper:"_slug__wrapper__wcPUm",inner:"_slug__inner__2aMYK",titleContainer:"_slug__titleContainer__qdoBK",title:"_slug__title__B2uWa",timeSpan:"_slug__timeSpan__Cv_JO",overviewButton:"_slug__overviewButton__loaHb",backArrowContainer:"_slug__backArrowContainer__DKsEg",eyeContainer:"_slug__eyeContainer__GJKir",timelineContainer:"_slug__timelineContainer__FHCXe"}}},function(e){e.O(0,[774,888,179],(function(){return n=67727,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.