PageSourceSearch

https://www.fptindustrial.com/dist/fpt-industrial/static/js/RelatedStories.cd7a4d3d.chunk.js

js fptindustrial.com collected 2026-10-02 05:00:57 UTC 10,329 bytes, 2 lines download raw bytes

1(this["webpackJsonpfpt-industrial"]=this["webpackJsonpfpt-industrial"]||[]).push([[109],{1455:function(e,l,t){},1560:function(e,l,t){"use strict";t.r(l);t(2),t(1455);var i=t(679),a=t(723),n=t(685),s=t(0);l.default=function(e){var l,t,c,o,d,r=Object(n.a)("RelatedStories",{animationName:"slide_in",isDefaultAnimation:!0}),u=r.waypointFragment,v=r.classController;return Object(s.jsxs)("div",{className:v(),children:[u,Object(s.jsx)(i.a,{tag:"h2",className:"RelatedStories__title",field:null===e||void 0===e||null===(l=e.fields)||void 0===l||null===(t=l.data)||void 0===t?void 0:t.Title}),Object(s.jsx)("div",{className:"RelatedStories__cards_container",children:null===e||void 0===e||null===(c=e.fields)||void 0===c||null===(o=c.data)||void 0===o||null===(d=o.Stories)||void 0===d?void 0:d.map((function(l,t){var i,n,c,o,d,r,u,v,j,b,f,x,_,m,O,h,g,p;return Object(s.jsx)("div",{className:"RelatedStories__card",children:Object(s.jsx)(a.a,{boxImage:null===l||void 0===l||null===(i=l.fields)||void 0===i||null===(n=i.teaserImage)||void 0===n||null===(c=n.value)||void 0===c?void 0:c.src,title:null===l||void 0===l||null===(o=l.fields)||void 0===o||null===(d=o.teaserTitle)||void 0===d?void 0:d.value,applications:null===l||void 0===l||null===(r=l.fields)||void 0===r||null===(u=r.teaserTagline)||void 0===u?void 0:u.value,iconPersonText:null===l||void 0===l||null===(v=l.fields)||void 0===v||null===(j=v.storyPersonName)||void 0===j?void 0:j.value,iconLocationText:null===l||void 0===l||null===(b=l.fields)||void 0===b||null===(f=b.storyLocationName)||void 0===f?void 0:f.value,powerType:null===l||void 0===l||null===(x=l.fields)||void 0===x||null===(_=x.teaserDe
1scription)||void 0===_?void 0:_.value,subTitle:{value:"Powered By"},linkUrl:null!==e&&void 0!==e&&null!==(m=e.fields)&&void 0!==m&&null!==(O=m.linksList)&&void 0!==O&&O[t]?null===e||void 0===e||null===(h=e.fields)||void 0===h||null===(g=h.linksList)||void 0===g?void 0:g[t]:"",linkLabel:{value:null===e||void 0===e||null===(p=e.fields)||void 0===p?void 0:p.linkLabel},titleAlignment:"center",openInNewWindow:"no"})})}))})]})}},675:function(e,l,t){"use strict";var i=t(133),a=(t(2),t(679)),n=t(689),s=(t(677),t(0));l.a=function(e){var l,t,c,o,d,r,u,v=e.text,j=e.url,b=e.action,f=void 0===b?function(){}:b,x=e.isRed,_=e.isFullwidth,m=e.className,O=e.imageIcon,h=e.imageHoverIcon,g=e.icon,p=e.target,N=void 0===p?"self":p,C=e.id,R=e.sitecoreProps,w=e.minWidth,k=e.customAttributes,B=x?"BaseBtn BaseBtn--red":"BaseBtn";B+=" ga4-click-ui",m&&(B+=" ".concat(m)),_&&(B+=" BaseBtn--fullwidth");var y=function(){var l,t,i,n,c,o,d,r,u,j,b;return Object(s.jsxs)(s.Fragment,{children:[((null===(l=e.fields)||void 0===l||null===(t=l.iconCssClass)||void 0===t?void 0:t.value)||g)&&Object(s.jsx)("span",{className:"icon ".concat((null===(i=e.fields)||void 0===i||null===(n=i.iconCssClass)||void 0===n?void 0:n.value)||g," mr-10")}),(null===O||void 0===O||null===(c=O.value)||void 0===c?void 0:c.src)&&Object(s.jsx)("img",{className:"BaseBtn__image_icon",src:O.value.src,alt:O.value.alt,height:null===(o=O.value)||void 0===o?void 0:o.height,width:null===(d=O.value)||void 0===d?void 0:d.width}),(null===h||void 0===h||null===(r=h.value)||void 0===r?void 0:r.src)&&Object(s.jsx)("img",{className:"BaseBtn__image_hover_icon",src:h.value.src,alt:h.value.alt,height:null===(u=h.value)||void 0===u?void 0:u.height,width:null===(j=h.value)||void 0===j?void 0:j.width}),Object(s.jsx)(a.a,{field:(null===(b=e.fields)||void 0===b?void 0:b.label)||{value:null===v||void 0===v?void 0:v.value},tag:"h3"})]})};return Object(s.jsxs)(s.Fragment,{children:[((null===(l=e.fields)||void 0===l||null===(t=l.link)||void 0===t||null===(c=t.value)||void 0===c?void 0:c.href)||j)&&Object(s.jsx)(n.a,{field:(null===(o=e.fields)||void 0===o?void 0:o.link)||Object(i.a)({value:{text:Object(s.jsxs)(s.Fragment,{children:[g&&Object(s.jsx)("span",{className:"icon ".concat(g," mr-10")}),null===v||void 0===v?void 0:v.value]}),target:"blank"===N?"_blank":"_self",href:j,id:C}},R),className:B,style:w?{minWidth:w}:{},onClick:f,rel:"noopener noreferrer",download:"download"===N,"data-engine-info":k,children:Object(s.jsx)(y,{})}),!(null!==(d=e.fields)&&void 0!==d&&null!==(r=d.link)&&void 0!==r&&null!==(u=r.value)&&void 0!==u&&u.href||j)&&Object(s.jsx)("div",{className:B,onClick:f,children:Object(s.jsx)(y,{})})]})}},676:function(e,l,t){"use strict";t.d(l,"a",(function(){return i}));var i=function(e,l){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=a(l)*t;return(null===e||void 0===e?void 0:e.split("?")[0])+"?w=".concat(i,"&mw=").concat(i)}
1,a=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}},677:function(e,l,t){},685:function(e,l,t){"use strict";t.d(l,"a",(function(){return o}));var i=t(164),a=t(2),n=t(678),s=t(666),c=t(0),o=function(e,l){var t=l.waypointBottomOffset,o=void 0===t?0:t,d=l.isDefaultAnimation,r=void 0!==d&&d,u=l.animationName,v=void 0===u?"":u,j=Object(a.useState)(!1),b=Object(i.a)(j,2),f=b[0],x=b[1],_=Object(c.jsx)(n.a,{onEnter:function(e){e.event&&!Object(s.b)()&&x(!0)},bottomOffset:o});Object(a.useEffect)((function(){Object(s.b)()&&x(!0)}),[]);return{waypointFragment:_,classController:function(){return Object(s.b)()?"".concat(e," animation__skip_animation"):f?r?"".concat(e," animation__animated__").concat(v):"".concat(e," ").concat(e,"Animated"):e}}}},697:function(e,l,t){"use strict";var i=t(2),a=(t(699),t(0));l.a=function(e){var l=e.onChange,t=e.children,n=e.value,s=e.label,c=e.isBlack,o=(e.displayValue,"SelectBox");s&&(o+=n?" SelectBox--has-label SelectBox--has-value":" SelectBox--has-label"),c&&(o+=" Select__black_border");var d=Object(i.useRef)(),r=Object(i.useCallback)((function(){d.current.focus(),d.current.click()}),[]);return Object(a.jsxs)("div",{className:o,children:[Object(a.jsx)("select",{ref:d,value:n,onChange:function(e){return l(e.target.value)},children:t}),s&&Object(a.jsx)("label",{children:s}),Object(a.jsx)("span",{onClick:r,className:"icon icon-arrow-up SelectBox__icon_arrow\n           ".concat(n?"SelectBox__icon_arrow_topValue":"SelectBox__icon_arrow_topNoValue")})]})}},699:function(e,l,t){},723:function(e,l,t){"use strict";var i=t(164),a=t(2),n=t(680),s=t(675),c=t(697),o=(t(724),t(676)),d=t(0);function r(e){return Object(d.jsx)("div",{className:"SkeletonLoader ".concat(e.className)})}l.a=function(e){var l,t=e.customClass,u=e.title,v=e.boxImage,j=e.altBoxImage,b=e.linkLabel,f=e.linkUrl,x=e.openInNewWindow,_=e.pubDate,m=e.abstract,O=e.subTitle,h=e.applications,g=e.powerType,p=e.iconPersonText,N=e.iconLocationText,C=e.docsUrl,R=e.selectLabel,w=e.skeletonLoader,k=e.titleAlignment,B=e.pressCard,y=void 0!==B&&B,S=e.downloadLink,L=e.ignoreUpperCase,T=Object(a.useState)(""),A=Object(i.a)(T,2),F=A[0],I=A[1],W=Object(a.useState)([]),P=(Object(i.a)(W,1)[0],Object(a.useState)("")),D=Object(i.a)(P,2),U=D[0],E=D[1];Object(a.useEffect)((function(){f&&E(f),null!==C&&void 0!==C&&C.length&&H(C[0].text)}),[f,C]);var H=Object(a.useCallback)((function(e){var l=C.find((function(l){return l.text===e}));I(l.text),E(l.url)}),[]);return Object(d.jsxs)("article",{className:t?"CardRed ".concat(t):"CardRed",children:[(v||w)&&Object(d.jsx)("div",{className:"CardRed__image-wrap",children:v&&!w?Object(d.jsx)("img",{className:"CardRed__image",src:Object(o.a)(v,600,1),alt:j}):Object(d.jsx)(r,{className:"CardRed__image CardRed__image--skeleton-loader"})}),Object(d.jsxs)("section",{children:[(null===h||void 0===h?void 0:h.length)>0&&Object(d.jsx)("h3",{className:"CardRed__overRideH2",children:h}),Object(d.jsxs)("div",{style:y?{flex:"1"}:{},children:[_&&Object(d.jsx)("div",{className:"mb-20",children:_}),u&&!w?Object(d.jsx)("h2",{className:"CardRed__title CardRed__overRideH1",style:{textAlign:k||""},children:u}):Object(d.jsx)(r,{className:"CardRed__title CardRed__title--skeleton-loader"}),w?Object(d.jsx)(r,{className:"CardRed__abstract CardRed__abstract--skeleton-loader"}):Object(d.jsx)(n.a,{field:{value:m},className:"CardRed__abstract"})]}),Object(d.jsxs)("div",{children:[Object(d.jsxs)("div",{className:"CardRed__powered",style:{textTransform:L?"none":"uppercase"},children:[Object(d.jsx)(n.a,{field:O,tag:"span"}),Object(d.jsx)("div",{children:g})]}),N&&p&&Object(d.jsx)("div",{className:"f-s-15 container ",children:Object(d.jsxs)("div",{className:"row justify-content-around",children:[Object(d.jsxs)("div",{className:"col",style:{textAlign:"center"},children:[Object(d.jsx)("div",{className:"CardRed__iconWrapper",children:Object(d.jsx)("i",{className:"icon icon-person"})}),Object(d.jsx)("p",{className:"CardRed__icon_text",children:p})]}),Object(d.jsxs)("div",{className:"col",style:{textAlign:"center"}
1,children:[Object(d.jsx)("div",{className:"CardRed__iconWrapper",children:Object(d.jsx)("i",{className:"icon icon-location"})}),Object(d.jsx)("p",{className:"CardRed__icon_text",children:N})]})]})})]})]}),w?Object(d.jsx)(r,{className:"CardRed__footer CardRed__footer--skeleton-loader"}):Object(d.jsx)("div",{className:"CardRed__footer",children:m?Object(d.jsx)(d.Fragment,{children:Object(d.jsxs)("div",{className:"CardRed__footer_container margin-right",children:[C&&Object(d.jsxs)("div",{className:"",children:[R&&Object(d.jsxs)("div",{className:"CardRed__footer_label",children:[R,":"]}),Object(d.jsx)(c.a,{onChange:function(e){return H(e)},value:F,children:Object(d.jsx)(d.Fragment,{children:C.map((function(e){return Object(d.jsx)("option",{value:e.text,children:e.text},e.text)}))})})]}),""!==U&&Object(d.jsx)("div",{children:Object(d.jsx)(s.a,{text:b,url:U,isRed:!0,className:"CardRed__footer_button",target:x?"yes"===(null===x||void 0===x?void 0:x.toLowerCase())?"blank":(null===x||void 0===x||x.toLowerCase(),"self"):"self"})}),""!==S.href&&Object(d.jsx)("div",{children:Object(d.jsx)(s.a,{text:S.text,url:S.href,isRed:!0,className:"CardRed__footer_button",target:S.target&&"_blank"===(null===(l=S.target)||void 0===l?void 0:l.toLowerCase())?"blank":"self"})})]})}):Object(d.jsx)("div",{className:"CardRed__button_wrapper",children:Object(d.jsx)(s.a,{isFullwidth:!0,text:b,url:U,isRed:!0,target:x?"yes"===(null===x||void 0===x?void 0:x.toLowerCase())?"blank":"no"===(null===x||void 0===x?void 0:x.toLowerCase())?"self":"blank":"self"})})})]})}},724:function(e,l,t){}}]);
2//# sourceMappingURL=RelatedStories.cd7a4d3d.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.