1(this["webpackJsonpfpt-industrial"]=this["webpackJsonpfpt-industrial"]||[]).push([[27],{1506:function(e,t,n){"use strict";n.r(t);var a=n(673),l=n(688),i=n(164),s=n(166),r=n.n(s),c=n(2),o=n(719),d=n.n(o),u=n(109),b=n(676),v=(n(997),n(720)),j=n(0),f=Object(c.memo)((function(e){var t,n,a,l,s,r,o,d,f,h,m,O,w,x,p=e.index,y=e.teaser,_=Object(u.b)().t,N=Object(c.useState)(158),g=Object(i.a)(N,2),I=g[0],A=g[1],M=Object(c.useRef)(null);console.log(y);var k=Object(c.useCallback)((function(){A(M.current.clientWidth/3*2+124)}),[M]);return Object(c.useEffect)((function(){if(M.current&&"undefined"!==typeof window)return k(),window.addEventListener("resize",k),function(){return window.removeEventListener("resize",k)}}),[M]),Object(j.jsx)("div",{className:"col-6 col-lg-6 mb-5 ".concat(p%2===1?"AlwaysInMotion__card--offset":""),"aria-label":"Teaser ".concat(p+1),children:Object(j.jsx)("div",{ref:M,className:"AlwaysInMotion__card",style:{height:I},children:Object(j.jsxs)("a",{href:null!==(t=null===(n=y.fields)||void 0===n||null===(a=n.teaserLink)||void 0===a||null===(l=a.value)||void 0===l?void 0:l.href)&&void 0!==t?t:null===y||void 0===y?void 0:y.itemUrl,"aria-label":y.fields.teaserTitle.value,children:[Object(j.jsx)(v.a,{src:Object(b.a)(null===(s=y.fields.teaserImage.value.src)||void 0===s?void 0:s.replace(/\?.*$/,""),480,1),alt:y.fields.teaserImage.value.alt,className:"img-fluid"}),Object(j.jsxs)("div",{className:"AlwaysInMotion__cardContent mt-2",children:[(null===y||void 0===y?void 0:y.hashTag)&&Object(j.jsx)("p",{className:"AlwaysInMotion__cardTag",children:Object(j.jsx)("em",{children:y.hashTag})}),Object(j.jsx)("h5",{className:"AlwaysInMotion__cardTitle",children:y.fields.teaserTitle.value}),y.itemUrl&&Object(j.jsx)("div",{className:"AlwaysInMotion__cta",children:Object(j.jsx)("a",{className:"ga4-click-ui-press-news btn btn-outline-light",href:y.itemUrl,children:_("ReadMore")})}),((null===(r=y.fields)||void 0===r?void 0:r.teaserLink)||(null===(o=y.fields)||void 0===o?void 0:o.downloadLink))&&Object(j.jsx)("div",{className:"AlwaysInMotion__cta",children:Object(j.jsx)("a",{className:"ga4-click-ui-press-news btn btn-outline-light",href:null!==(d=null===(f=y.fields)||void 0===f||null===(h=f.teaserLink)||void 0===h||null===(m=h.value)||void 0===m?void 0:m.href)&&void 0!==d?d:null===(O=y.fields)||void 0===O||null===(w=O.downloadLink)||void 0===w||null===(x=w.value)||void 0===x?void 0:x.href,children:_("ReadMore")})})]})]})})})}));t.default=function(e){var t=e.fields,n=(Object(u.b)().t,Object(c.useState)("press")),s=Object(i.a)(n,2),o=s[0],b=s[1],v=Object(c.useState)([]),h=Object(i.a)(v,2),m=h[0],O=h[1],w=Object(c.useState)([]),x=Object(i.a)(w,2),p=x[0],y=x[1],_=Object(c.useState)(!0),N=Object(i.a)(_,2),g=N[0],I=N[1],A=function(){var e=Object(l.a)(r.a.mark((function e(){var n,l,s,c;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,I(!0),e.next=4,Promise.all([d.a.get(t.pressReleasesFilterUrl),d.a.get(t.newsAndEventsFilterUrl)]);case 4:n=e.sent,l=Object(i.a)(n,2),s=l[0],c=l[1],O(s.data.teasers.slice(0,4)),y(Object(a.a)(c.data.teasers.slice(0,4))),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.error("Error fetching data:",e.t0);case 15:return e.prev=15,I(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[0,12,15,18]])})));return function(){return e.apply(this,arguments)}}();Object(c.useEffect)((function(){A()}),[]);var M="press"===o?m:p;return Object(j.jsx)("div",{className:"AlwaysInMotion","aria-label":"Always In Motion Section",children:Object(j.jsx)("div",{className:"container-sm py-5",children:Object(j.jsxs)("div",{className:"d-flex flex-wrap flex-row",children:[Object(j.jsxs)("div",{className:"col-12 col-md-12 col-lg-6 col-xl-7",children:[Object(j.jsx)("h1",{className:"AlwaysInMotion__title",dangerouslySetInnerHTML:{__html:t.Title.value},"aria-label":"Title"}),Object(j.jsx)("div",{className:"AlwaysInMotion__subtitle",dangerouslySetInnerHTML:{__html:t.Subtitle.value},"aria-label":"Subtitle"}),Object(j.jsxs)("div",{className:"d-flex AlwaysInMotion__tab_container",role:"tablist",children:[Object(j.jsx)("h4",{onClick:function(){return b("press")},className:"text-center cursor-pointer AlwaysInMotion__tab".concat("press"===o?"_active":""),role:"tab","aria-selected":"press"===o,tabIndex:0,"aria-label":"Press Releases Tab",children:Object(j.jsx)("em",{children:t.PressReleasesLabel.value})}),Object(j.jsx)("h4",{onClick:function(){return b("news")},className:"text-center cursor-pointer AlwaysInMotion__tab".concat("news"===o?"_active":""),role:"tab","aria-selected":"news"===o,tabIndex:0,"aria-label":"News Tab",children:Object(j.jsx)("em",{children:t.NewsLabel.value})})]})]}),Object(j.jsx)("div",{className:"col-12 col-md-12 col-lg-6 col-xl-5 AlwaysInMotion__content mt-4",children:g?Object(j.jsx)("div",{className:"text-center mt-5","aria-live":"polite",children:Object(j.jsx)("div",{className:"spinner-border",role:"status","aria-label":"Loading"})}):Object(j.jsx)("div",{className:"row",children:M.map((function(e,t){return Object(j.jsx)(f,{index:t,teaser:e},"aim-card-".concat(t))}))})})]})})})}},673:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(165);var l=n(208);function i(e){return function(e){if(Array.isArray(e))return Object(a.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(l.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},676:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=l(t)*n;return(null===e||void 0===e?void 0:e.split("?")[0])+"?w=".concat(a,"&mw=").concat(a)}
1,l=function(e){return e<400?320:e<600?480:e<900?768:e<1200?1024:e<1440?1280:e<1680?1440:e<1920?1600:e<2560?1920:e<3840?2560:3840}},688:function(e,t,n){"use strict";function a(e,t,n,a,l,i,s){try{var r=e[i](s),c=r.value}catch(o){return void n(o)}r.done?t(c):Promise.resolve(c).then(a,l)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(l,i){var s=e.apply(t,n);function r(e){a(s,l,i,r,c,"next",e)}function c(e){a(s,l,i,r,c,"throw",e)}r(void 0)}))}}n.d(t,"a",(function(){return l}))},720:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(164),l=n(2),i=(n(721),n(0)),s=Object(l.memo)((function(e){var t=e.src,n=e.alt,s=e.width,r=e.height,c=e.className,o=void 0===c?"":c,d=e.wrapperClassName,u=void 0===d?"":d,b=e.children,v=Object(l.useState)(!1),j=Object(a.a)(v,2),f=j[0],h=j[1];return Object(i.jsxs)("div",{className:"skeleton-image-wrapper ".concat(u),children:[!f&&Object(i.jsx)("div",{className:"skeleton-image-placeholder"}),Object(i.jsx)("img",{src:t,alt:n,width:s,height:r,loading:"lazy",onLoad:function(){return h(!0)},className:"skeleton-image ".concat(f?"loaded":""," ").concat(o)}),b]})}))},721:function(e,t,n){},997:function(e,t,n){}}]); 2//# sourceMappingURL=AlwaysInMotion.86ecaa83.chunk.js.map
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.