1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[717],{57182:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/casestudies/[id]",function(){return n(31021)}])},99876:function(e,t,n){"use strict";var r=n(78189);t.Z=r.h},31111:function(e,t,n){"use strict";n.d(t,{Z:function(){return Layout}});var r=n(85893),a=n(67294),i=n(99876),l=n(91462),s=n(91423),o=n.n(s);function Layout(e){let{isNewPip:t,drawerWidth:n}=e,s=(0,a.useRef)(null),d=(0,a.useRef)(null),[c,u]=(0,a.useState)(!0),[_,w]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!t||!e.dataWasLoaded)return;let n=s.current;if(!n)return;let handleScroll=()=>{let e=n.parentElement;if(!e)return;let t=e.getBoundingClientRect(),r=n.offsetHeight;t.top>=0?(n.style.position="relative",n.style.top="0",n.style.left=""):t.bottom<=r?(n.style.position="absolute",n.style.top="".concat(e.offsetHeight-r,"px"),n.style.left="0"):(n.style.position="fixed",n.style.top="0",n.style.left="".concat(t.left,"px"))};window.addEventListener("scroll",handleScroll,{passive:!0}),window.addEventListener("resize",handleScroll,{passive:!0});let r=setTimeout(handleScroll,100),a=n.parentElement,i=null;return a&&(i=new ResizeObserver(handleScroll)).observe(a),()=>{clearTimeout(r),window.removeEventListener("scroll",handleScroll),window.removeEventListener("resize",handleScroll),null==i||i.disconnect()}},[t,e.dataWasLoaded]),(0,a.useEffect)(()=>{var n;if(!e.dataWasLoaded||t)return;let updateDrawerBottomContainerHeight=()=>{let e=null==s?void 0:s.current,t=d.current;e&&t&&t.style.setProperty("height","".concat(e.getBoundingClientRect().height,"px"))},handleScroll=()=>{let e=d.current;if(e){let t=e.getBoundingClientRect(),n=t.top+window.scrollY;window.scrollY>=n?w(!0):w(!1)}},r=setTimeout(()=>{updateDrawerBottomContainerHeight(),handleScroll()},500);window.addEventListener("scroll",handleScroll);let a=null===(n=s.current)||void 0===n?void 0:n.parentElement,i=null;return a&&(i=new ResizeObserver(()=>{updateDrawerBottomContainerHeight(),handleScroll()})).observe(a),()=>{clearTimeout(r),window.removeEventListener("scroll",handleScroll),null==i||i.disconnect()}},[e.dataWasLoaded]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:e.isNotNeededDrawer?o().contentNoDrawer:o().content,style:t?{minHeight:"100vh"}:{},children:[(0,r.jsxs)("div",{style:t?{width:"calc(100% - ".concat(n,"px)")}:{},children:[(0,r.jsx)(i.Z,{title:e.title||"",menuIconSpacing:48,headerMenuComponent:e.headerMenuComponent||(0,r.jsx)(r.Fragment,{})}),(0,r.jsx)("main",{children:e.children})]}),!e.isNotNeededDrawer&&(0,r.jsxs)("div",{className:t?o().drawerNewPip:o().drawer,style:t?{width:n}:void 0,children:[(0,r.jsx)("div",{ref:s,className:!t&&_?o().drawerMounted:void 0,style:t?{width:n,zIndex:5}:void 0,children:e.drawerComponent}),!t&&(0,r.jsx)("div",{ref:d,className:o().drawerBottomContainer})]})]}),(0,r.jsx)(l.Z,{})]})}},31021:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return S},default:function(){return CasesPage}});var r=n(85893),a=n(67294),i=n(11163),l=n(35281),s=n(12918),o=n.n(s),d=n(41664),c=n.n(d),u=n(34386),_=n(61267),w=n(56139),p=n(19045),m=n(31111),h=n(89712),g=n(88605),N=n.n(g),v=n(5422);let b="/img/news-preview-placeholder.png",PageDrawer=e=>{let{data:t}=e,n="";return t.length&&(t[0].id,t[0].illustration&&(n=t[0].illustration)),n||(n=b),(0,r.jsx)("div",{className:N().drawerNews})};var S=!0;function CasesPage(e){let{cmsResource:t,cmsUrl:n}=e,{isMobile:s}=(0,v.XA)(),d=(0,i.useRouter)(),{t:g,i18n:S}=(0,l.$G)(["common","gen"]),{id:f}=d.query,x=!!t.error,y=t.data&&t.data.length>0,D=null,j=[];!x&&y&&(D=(j=t.data.map(e=>{let t=e.attributes;return{id:t.slug,lang:(0,w.pD)(S.language),title:t.title,description:t.description,content:t.content,date:t.date,illustration:t.illustration&&t.illustration.data&&t.illustration.data.attributes&&t.illustration.data.attributes.url?"".concat(n).concat(t.illustration.data.attributes.url):"",url:t.url,isTop:t.isTop}})).shift());let[L,W]=(0,a.useState)(!0),[B,C]=(0,a.useState)(""),[E,k]=(0,a.useState)(D),[P,T]=(0,a.useState)(j);if((0,a.useEffect)(()=>{let e=(0,w.pD)(S.language),loadData=async t=>{var r;let a=[],i="",l=await (0,p.Ji)("case-studies","filters[slug][$eq]=".concat(t),e),s=await (0,p.Ji)("case-studies","filters[slug][$ne]=".concat(t,"&sort=date:desc&pagination[pageSize]=").concat(_.DM),e);return l.error?i=l.error.message:(null===(r=l.data)||void 0===r?void 0:r.length)&&(a=l.data.map(t=>{let r=t.attributes;
1return{id:r.slug,lang:e,title:r.title,description:r.description,content:r.content,date:r.date,illustration:r.illustration&&r.illustration.data&&r.illustration.data.attributes&&r.illustration.data.attributes.url?"".concat(n).concat(r.illustration.data.attributes.url):"",url:r.url,isTop:r.isTop}}),s.data&&(a=a.concat(s.data.map(t=>{let r=t.attributes;return{id:r.slug,lang:e,title:r.title,description:r.description,content:r.content,date:r.date,illustration:r.illustration&&r.illustration.data&&r.illustration.data.attributes&&r.illustration.data.attributes.url?"".concat(n).concat(r.illustration.data.attributes.url):"",url:r.url,isTop:r.isTop}})))),{data:a,error:i}};W(!0),loadData(f).then(e=>{let{data:t,error:n}=e;W(!1),n&&C(n),t&&t.length&&(k(t[0]),T(t.slice(1)))})},[S.language,f]),x||!y)return(0,r.jsx)(o(),{statusCode:404});let I=s?N().mobile_caseStudies_container:"container2";return(0,r.jsx)(m.Z,{isNotNeededDrawer:!0,title:g("menuItem.cases"),drawerComponent:(0,r.jsx)(PageDrawer,{data:P}),dataWasLoaded:!0,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:I,children:(0,r.jsxs)("header",{className:N().header,children:[(0,r.jsx)("div",{className:N().headerDate,children:(0,w.p6)((null==E?void 0:E.date)||"")}),(0,r.jsx)("h1",{children:null==E?void 0:E.title}),(0,r.jsx)(u.Z,{title:g("navigation.backCases"),children:(0,r.jsx)(c(),{href:"/casestudies",children:h.ZP.arrowBackBlack})})]})}),(0,r.jsx)("main",{className:N().main,children:(0,r.jsxs)("div",{className:I,style:s?{paddingTop:0}:{},children:[(0,r.jsxs)("div",{className:N().subTitle,children:[(0,r.jsx)("div",{className:N().descriptionBlock,dangerouslySetInnerHTML:{__html:null==E?void 0:E.description}}),(0,r.jsx)("img",{src:(null==E?void 0:E.illustration)?null==E?void 0:E.illustration:b,alt:""})]}),(0,r.jsx)("div",{className:N().content,dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})]})})]})})}},91423:function(e){e.exports={section:"LayoutWithDrawer_section__yXdoz",content:"LayoutWithDrawer_content__ENHSp",contentNoDrawer:"LayoutWithDrawer_contentNoDrawer__m8Jtq",drawer:"LayoutWithDrawer_drawer__pyJEw",drawerNewPip:"LayoutWithDrawer_drawerNewPip___v39Z",drawerBottomContainer:"LayoutWithDrawer_drawerBottomContainer__xDJ2l",drawerItem:"LayoutWithDrawer_drawerItem__oMPSD",drawerButtonWrapper:"LayoutWithDrawer_drawerButtonWrapper__QQEcu",drawerMounted:"LayoutWithDrawer_drawerMounted__bEPmm"}},88605:function(e){e.exports={header:"SingleNews_header__v_oeF",headerDate:"SingleNews_headerDate__9FzQm",subTitle:"SingleNews_subTitle__VPryR",descriptionBlock:"SingleNews_descriptionBlock___2gi4",content:"SingleNews_content__6_tx5",news:"SingleNews_news__lyF_r",newsItem:"SingleNews_newsItem__eA62Y",buttonWrapper:"SingleNews_buttonWrapper__hP_gD",drawerNews:"SingleNews_drawerNews__OvGLN",loadingWrapper:"SingleNews_loadingWrapper__QIiYp",mobile_container:"SingleNews_mobile_container__kfyW_",mobile_breadCrumbs:"SingleNews_mobile_breadCrumbs__Irtt7",mobile_newsBlock:"SingleNews_mobile_newsBlock__vds8p",mobile_dateBlock:"SingleNews_mobile_dateBlock__DWrzx",mobile_newsSection:"SingleNews_mobile_newsSection___PLyx",mobile_btnWrapper:"SingleNews_mobile_btnWrapper__kXZP0",mobile_recentNewsBlock:"SingleNews_mobile_recentNewsBlock__ggz1M",mobile_caseStudies_container:"SingleNews_mobile_caseStudies_container__M7G_A"}},12918:function(e,t,n){e.exports=n(66908)}},function(e){e.O(0,[9149,9554,8784,4386,3506,7700,9774,2888,179],function(){return e(e.s=57182)}),_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.