PageSourceSearch

https://www.fptindustrial.com/dist/fpt-industrial/static/js/Filter.cf78ea8b.chunk.js

js fptindustrial.com collected 2026-10-02 04:59:52 UTC 18,523 bytes, 2 lines download raw bytes

1(this["webpackJsonpfpt-industrial"]=this["webpackJsonpfpt-industrial"]||[]).push([[65],{1268:function(e,i,t){},1269:function(e,i,t){},1270:function(e,i,t){},1584:function(e,i,t){"use strict";t.r(i);var l=t(133),a=t(164),o=t(2),r=t(321),s=t(109),n=t(671),d=t(750),c=(t(1268),t(684)),u=t(676),v=(t(1269),t(0)),j=Object(o.memo)((function(e){var i,t=e.image,l=e.date,a=e.title,o=e.description,r=e.readMoreLink,n=e.target,d=e.downloadPdfLink,j=Object(s.b)().t,b=Object(c.a)("(max-width: 760px)");Object(c.a)("(max-width: 1160px)");return Object(v.jsxs)("div",{className:"EditorialPressReleaseCard",children:[Object(v.jsx)("img",{loading:"lazy",draggable:!1,src:b?Object(u.a)(null===t||void 0===t||null===(i=t.src)||void 0===i?void 0:i.replace(/\?.*$/,""),410,1):null===t||void 0===t?void 0:t.src,alt:t.alt}),Object(v.jsxs)("div",{className:"EditorialPressReleaseCard__content",children:[Object(v.jsx)("p",{className:"EditorialPressReleaseCard__date",children:l}),Object(v.jsx)("p",{className:"EditorialPressReleaseCard__title",children:a}),Object(v.jsx)("p",{className:"EditorialPressReleaseCard__description",children:o}),Object(v.jsxs)("div",{className:"EditorialPressReleaseCard__actions",children:[Object(v.jsx)("a",{href:r,target:n,children:j("ReadMore")}),Object(v.jsx)("a",{href:d,target:"_blank",rel:"noopener noreferrer",children:j("DownloadPDF")})]})]})]})})),b=t(969),g=t(877),m=(t(1270),t.p+"static/media/calendar-red.5dd892be.svg"),_=t.p+"static/media/calendar-white.284669b6.svg",O=t(809),h=t(810),f=Object(o.memo)((function(e){var i,t=e.itemUrl,l=e.target,a=e.image,o=e.date,r=e.title,s=e.description,n=e.tag,d=e.categories,j=e.location,b=e.logos,g=e.horizontal,f=void 0!==g&&g,p=Object(c.a)("(max-width: 760px)");return Object(v.jsxs)("a",{href:t,target:l,className:"EditorialNewsEventCard".concat(f?" EditorialNewsEventCard--horizontal":""),children:[Object(v.jsx)("div",{className:"EditorialNewsEventCard__image",children:Object(v.jsx)("img",{loading:"lazy",draggable:!1,src:p?Object(u.a)(null===a||void 0===a||null===(i=a.src)||void 0===i?void 0:i.replace(/\?.*$/,""),410,1):null===a||void 0===a?void 0:a.src,alt:null===a||void 0===a?void 0:a.alt})}),Object(v.jsxs)("div",{className:"EditorialNewsEventCard__content",children:[Object(v.jsxs)("div",{className:"EditorialNewsEventCard__logos_and_tags",children:[(n||d.length>0)&&Object(v.jsxs)("div",{className:"EditorialNewsEventCard__tags",children:[n&&Object(v.jsx)("div",{children:n}),d.map((function(e,i){return Object(v.jsx)("div",{children:e},"news-event-card-category-".concat(i))}))]}),b.length>0&&Object(v.jsx)("div",{className:"EditorialNewsEventCard__logos",children:b.map((function(e,i){return Object(v.jsx)("img",{src:e,alt:"news-event-card-logo-".concat(i)},"news-event-card-logo-".concat(i))}))})]}),Object(v.jsxs)("div",{className:"EditorialNewsEventCard__info",children:[Object(v.jsxs)("div",{children:[Object(v.jsxs)("div",{className:"EditorialNewsEventCard__info__icon",children:[Object(v.jsx)("img",{src:m}),Object(v.jsx)("img",{src:_})]}),Object(v.jsx)("p",{children:o})]}),j&&Object(v.jsxs)("div",{children:[Object(v.jsxs)("div",{className:"EditorialNewsEventCard__info__icon",children:[Object(v.jsx)("img",{src:O.a}),Object(v.jsx)("img",{src:h.a})]}),Object(v.jsx)("p",{children:j})]})]}),Object(v.jsx)("div",{className:"EditorialNewsEventCard__title",children:r}),Object(v.jsx)("div",{className:"EditorialNewsEventCard__subtitle",children:s})]})]})})),p=t(1495),x=["Story Repository","Press Releases Repository","News And Events Repository"];i.default=Object(n.a)((function(e){var i,t,n,c=e.fields;if(!x.includes(c.filterRepositoryTemplateName))return Object(v.jsx)(p.default,{fields:c});var u=Object(r.a)(),m=Object(s.b)().t,_=Object(o.useMemo)((function(){if("News And Events Repository"===c.filterRepositoryTemplateName&&null!==c&&void 0!==c&&c.tags)return{sources:c.tags.map((function(e){var i,t,l;return{id:e.id,label:null!==(i=null===(t=e.fields)||void 0===t||null===(l=t.Phrase)||void 0===l?void 0:l.value)&&void 0!==i?i:""}}))}}),[c.filterRepositoryTemplateName]),O=Object(o.useMemo)((function(){var e;return null===(e=c.years)||void 0===e?void 0:e.map((function(e){return{id:e.id,label:e.displayName}})).sort((function(e,i){return e.label>i.label?-1:e.label<i.label?1:0}))}),[c.years]),h=Object(o.useMemo)((function(){var e;return null===(e=c.regions)||void 0===e?void 0:e.map((function(e){return{id:e.id,label:e.displayName}}))}),[c.regions]),E=Object(o.useMemo)((function(){var e;return null===(e=c.categories)||void 0===e?void 0:e.map((function(e){return{id:e.id,label:e.displayName}}))}),[c.categories]),w=function(e){var i="",t="";try{if(e){var l=JSON.parse(e);null!==l&&void 0!==l&&l.url&&(i=l.url),null!==l&&void 0!==l&&l.target&&(t=l.target)}}catch(a){}finally{return[i,t]}},N=Object(o.useMemo)((function(){switch(c.filterRepositoryTemplateName){case"Press Releases Repository":return{itemsPerRow:3,enableHighlight:!1,cardRenderer:function(e){var i,t,l,o,r,s,n,c,b,g,m,_,O,h,f=w(null===e||void 0===e?void 0:e.pageLink),p=Object(a.a)(f,2),x=p[0],E=p[1];return Object(v.jsx)(j,{image:null===(i=e.fields)||void 0===i||null===(t=i.teaserImage)||void 0===t?void 0:t.value,date:Object(d.a)(null===(l=e.fields)||void 0===l||null===(o=l.date)||void 0===o?void 0:o.value,u.sitecoreContext),title:null===(r=e.fields)||void 0===r||null===(s=r.teaserTitle)||void 0===s?void 0:s.value,description:null===(n=e.fields)||void 0===n||null===(c=n.teaserDe
1scription)||void 0===c?void 0:c.value,readMoreLink:x.length>0?x:null===e||void 0===e||null===(b=e.fields)||void 0===b||null===(g=b.teaserLink)||void 0===g||null===(m=g.value)||void 0===m?void 0:m.href,target:E.length>0?E:"_self",downloadPdfLink:null===(_=e.fields)||void 0===_||null===(O=_.downloadLink)||void 0===O||null===(h=O.value)||void 0===h?void 0:h.href})}};case"Story Repository":return{itemsPerRow:2,resultTitle:m("OurSuccess"),cardRenderer:function(e,i){var t,l,o,r,s,n,d,c,u,j,b,m,_,O,h,f=w(null===e||void 0===e?void 0:e.pageLink),p=Object(a.a)(f,2),x=p[0],E=p[1];return Object(v.jsx)(g.a,{horizontal:i,itemUrl:x.length>0?x:null===e||void 0===e?void 0:e.itemUrl,target:E,image:null===(t=e.fields)||void 0===t||null===(l=t.teaserImage)||void 0===l?void 0:l.value,logos:(null!==(o=null===(r=e.fields)||void 0===r?void 0:r.teaserLogos)&&void 0!==o?o:[]).map((function(e){var i,t,l,a,o,r;return{desktop:null===e||void 0===e||null===(i=e.fields)||void 0===i||null===(t=i.Image)||void 0===t||null===(l=t.value)||void 0===l?void 0:l.src,mobile:null===e||void 0===e||null===(a=e.fields)||void 0===a||null===(o=a["Mobile Image"])||void 0===o||null===(r=o.value)||void 0===r?void 0:r.src}})),tag:null===(s=e.fields)||void 0===s||null===(n=s.teaserTagline)||void 0===n?void 0:n.value,title:null===(d=e.fields)||void 0===d||null===(c=d.teaserTitle)||void 0===c?void 0:c.value,storyPersonName:null===(u=e.fields)||void 0===u||null===(j=u.storyPersonName)||void 0===j?void 0:j.value,storyLocationName:null===(b=e.fields)||void 0===b||null===(m=b.storyLocationName)||void 0===m?void 0:m.value,powredByText:null===(_=e.fields)||void 0===_?void 0:_.poweredByText,powredByValue:null===(O=e.fields)||void 0===O||null===(h=O.teaserDescription)||void 0===h?void 0:h.value})}};case"News And Events Repository":return{itemsPerRow:2,resultTitle:m("OurNewsAndEvents"),cardRenderer:function(e,i){var t,l,o,r,s,n,j,b,g,m,_,O,h,p,x,E,N,y,S,C=w(null===e||void 0===e?void 0:e.pageLink),L=Object(a.a)(C,2),R=L[0],V=L[1],k=null!==(t=null===c||void 0===c||null===(l=c.tags)||void 0===l||null===(o=l.find((function(i){var t,l;return i.id===(null===e||void 0===e||null===(t=e.fields)||void 0===t||null===(l=t.Tag)||void 0===l?void 0:l.id)})))||void 0===o||null===(r=o.fields)||void 0===r||null===(s=r.Phrase)||void 0===s?void 0:s.value)&&void 0!==t?t:"";return Object(v.jsx)(f,{itemUrl:R.length>0?R:null===e||void 0===e?void 0:e.itemUrl,target:V,image:null===(n=e.fields)||void 0===n||null===(j=n.teaserImage)||void 0===j?void 0:j.value,date:Object(d.a)(null===(b=e.fields)||void 0===b||null===(g=b.date)||void 0===g?void 0:g.value,u.sitecoreContext),title:null===(m=e.fields)||void 0===m||null===(_=m.teaserTitle)||void 0===_?void 0:_.value,description:null===(O=e.fields)||void 0===O||null===(h=O.teaserDescription)||void 0===h?void 0:h.value,tag:"#".concat(k),categories:(null!==(p=null===(x=e.fields)||void 0===x?void 0:x.categories)&&void 0!==p?p:[]).map((function(e){return e.displayName})),location:null===(E=e.fields)||void 0===E||null===(N=E.teaserLocation)||void 0===N?void 0:N.value,logos:(null!==(y=null===(S=e.fields)||void 0===S?void 0:S.teaserLogos)&&void 0!==y?y:[]).map((function(e){var i,t,l;return null===(i=e.fields)||void 0===i||null===(t=i.Image)||void 0===t||null===(l=t.value)||void 0===l?void 0:l.src})),horizontal:i})}}}}),[c.filterRepositoryTemplateName]);return Object(v.jsx)(b.default,Object(l.a)(Object(l.a)({fetchUrl:null===c||void 0===c?void 0:c.filterUrl,title:null===c||void 0===c||null===(i=c.title)||void 0===i?void 0:i.value,subtitle:null===c||void 0===c||null===(t=c.subtitle)||void 0===t?void 0:t.value,yearOptions:O,regionOptions:h,categoryOptions:E,noResultText:null===c||void 0===c||null===(n=c.noResultText)||void 0===n?void 0:n.value},_),N))}))},809:function(e,i,t){"use strict";i.a=t.p+"static/media/pin-red.75b62c2a.svg"},810:function(e,i,t){"use strict";i.a=t.p+"static/media/pin-white.42e3cd87.svg"},847:function(e,i,t){},850:function(e,i,t){},877:function(e,i,t){"use strict";var l=t(2),a=t(676),o=(t(850),t.p+"static/media/person-red.901b5f1b.svg"),r=t.p+"static/media/person-white.3e09f48d.svg",s=t(809),n=t(810),d=t(684),c=t(0),u=Object(l.memo)((function(e){var i,t=e.itemUrl,l=e.target,u=e.image,v=e.logos,j=e.tag,b=e.title,g=e.storyPersonName,m=e.storyLocationName,_=e.powredByText,O=e.powredByValue,h=e.horizontal,f=void 0!==h&&h,p=Object(d.a)("(max-width: 760px)"),x=Object(d.a)("(max-width: 1200px)");return Object(c.jsxs)("a",{href:t,target:l,className:"EditorialStoryCard".concat(f?" EditorialStoryCard--horizontal":""),children:[Object(c.jsxs)("div",{className:"EditorialStoryCard__image",children:[Object(c.jsx)("img",{loading:"lazy",draggable:!1,src:p?Object(a.a)(null===u||void 0===u||null===(i=u.src)||void 0===i?void 0:i.replace(/\?.*$/,""),410,1):null===u||void 0===u?void 0:u.src,alt:null===u||void 0===u?void 0:u.alt}),v.length>0&&Object(c.jsx)("div",{className:"EditorialStoryCard__image_logos EditorialStoryCard__image_logos--long".concat(1===v.length?" EditorialStoryCard__image_logos--single":""),children:Object(c.jsx)("div",{children:v.slice(0,2).map((function(e,i){var t;return Object(c.jsx)("img",{src:x&&null!==(t=e.mobile)&&void 0!==t?t:e.desktop,alt:"logo ".concat(i)},"editorial-story-card-logo-".concat(i))}))})})]}),Object(c.jsxs)("div",{className:"EditorialStoryCard__content",children:[Object(c.jsxs)("div",{children:[Object(c.jsx)("div",{className:"EditorialStoryCard__tag",children:j}),Object(c.jsx)("div",{className:"EditorialStoryCard__title",children:b}),(g||m)&&Object(c.jsxs)("div",{className:"EditorialStoryCard__info",children:[g&&Object(c.jsxs)("div",{children:[Object(c.jsxs)("div",{className:"EditorialStoryCard__info__icon",children:[Object(c.jsx)("img",{src:o}),Object(c.jsx)("img",{src:r})]}),Object(c.jsx)("p",{children:g})]}),m&&Object(c.jsxs)("div",{children:[Object(c.jsxs)("div",{className:"EditorialStoryCard__info__icon",children:[Object(c.jsx)("img",{src:s.a}),Object(c.jsx)("img",{src:n.a})]}),Object(c.jsx)("p",{children:m})]})]})]}),_&&O&&Object(c.jsxs)("div",{className:"EditorialStoryCard__powered_by",children:[Object(c.jsx)("p",{children:_}),Object(c.jsx)("p",{children:O})]})]})]})}));i.a=u},969:function(e,i,t){"use strict";t.r(i);var l,a=t(673),o=t(688),r=t(164),s=t(166),n=t.n(s),d=t(2),c=t(109),u=t(719),v=t.n(u);!function(e){e[e.EditorialLoadingStateLoadingInitial=0]="EditorialLoadingStateLoadingInitial",e[e.EditorialLoadingStateLoading=1]="EditorialLoadingStateLoading",e[e.EditorialLoadingStateNormal=2]="EditorialLoadingStateNormal"}(l||(l={}));t(847);
1var j=t.p+"static/media/calendar.bfdf778f.svg",b=t.p+"static/media/globe.d035d92d.svg",g=t.p+"static/media/tag.9a42c523.svg",m=t.p+"static/media/chevron-down-gray.97d79969.svg",_=t.p+"static/media/arrow-top.862de6e5.svg",O=t.p+"static/media/arrow-top-white.c93b4303.svg",h=t(0);var f=Object(d.memo)((function(e){var i=e.label,t=e.options,l=e.value,a=e.icon,o=e.onChange;return Object(h.jsxs)("div",{className:"EditorialViewFilterSelect",children:[Object(h.jsx)("div",{className:"EditorialViewFilterSelect__icon",children:Object(h.jsx)("img",{src:a})}),Object(h.jsxs)("select",{id:i,name:i,className:"EditorialViewFilterSelect__select",value:l,onChange:function(e){return o(e.target.value)},children:[Object(h.jsx)("option",{value:"",disabled:!0,children:i}),""!==l&&Object(h.jsx)("option",{value:"",children:"- Reset -"}),t.map((function(e){return Object(h.jsx)("option",{value:e.id,children:e.label},e.id)}))]}),Object(h.jsx)("div",{className:"EditorialViewFilterSelect__chevron",children:Object(h.jsx)("img",{src:m})})]})})),p=Object(d.memo)((function(e){var i=e.loading,t=e.itemsPerRow;return Object(h.jsx)("div",{className:"EditorialView__results__list".concat(i===l.EditorialLoadingStateLoading?" EditorialView__skeleton_list":"").concat(3==t?" EditorialView__results__list--three":2==t?" EditorialView__results__list--two":" EditorialView__results__list--single"),children:t?Object(a.a)(Array(12)).map((function(e,i){return Object(h.jsx)("div",{children:Object(h.jsx)("div",{className:"EditorialView__skeleton"})},"editorial-view-skeleton-item-".concat(i))})):Object(h.jsx)("div",{children:Object(h.jsx)("div",{className:"EditorialView__skeleton EditorialView__skeleton--highlight"})})})}));i.default=function(e){var i=e.fetchUrl,t=e.title,s=e.subtitle,u=e.yearOptions,m=e.regionOptions,x=e.categoryOptions,E=e.noResultText,w=e.sources,N=e.resultTitle,y=e.itemsPerRow,S=e.enableHighlight,C=void 0===S||S,L=e.cardRenderer,R=Object(c.b)().t,V=Object(d.useState)(12),k=Object(r.a)(V,2),T=k[0],P=k[1],I=Object(d.useState)(null),M=Object(r.a)(I,2),z=M[0],U=M[1],A=Object(d.useState)(!1),B=Object(r.a)(A,2),F=B[0],D=B[1],H=Object(d.useState)(l.EditorialLoadingStateLoadingInitial),J=Object(r.a)(H,2),$=J[0],Y=J[1],q=Object(d.useState)(null),G=Object(r.a)(q,2),K=G[0],Q=G[1],W=Object(d.useState)(""),X=Object(r.a)(W,2),Z=X[0],ee=X[1],ie=Object(d.useState)(""),te=Object(r.a)(ie,2),le=te[0],ae=te[1],oe=Object(d.useState)(""),re=Object(r.a)(oe,2),se=re[0],ne=re[1],de=Object(d.useState)(null),ce=Object(r.a)(de,2),ue=ce[0],ve=ce[1],je=Object(d.useState)([]),be=Object(r.a)(je,2),ge=be[0],me=be[1],_e=Object(d.useCallback)(function(){var e=Object(o.a)(n.a.mark((function e(t){var o,r,s,d,c,u,j;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=(d=(d=i).replace(/count=(.*?)&/,"count=12&")).replace(/offset=(.*?)&/,"offset=".concat(t-12,"&")),K&&(d=d.replace(/tag=(.*?)/,"tag=".concat(K))),Z&&(d=d.replace(/year=(.*?)&/,"year=".concat(Z,"&"))),le&&(d=d.replace(/region=(.*?)&/,"region=".concat(le,"&"))),se&&(d=d.replace(/category=(.*?)&/,"category=".concat(se,"&"))),e.next=9,v.a.get(d);case 9:c=e.sent,(null!==(o=null===(r=c.data)||void 0===r||null===(s=r.teasers)||void 0===s?void 0:s.length)&&void 0!==o?o:0)>0?(me(12===t?c.data.teasers:function(e){return[].concat(Object(a.a)(e),Object(a.a)(c.data.teasers))}),null!==(u=c.data)&&void 0!==u&&u.highlightedTeaser?ve(null===(j=c.data)||void 0===j?void 0:j.highlightedTeaser):ve(null),U(c.data.resultCount)):D(!0),Y(l.EditorialLoadingStateNormal);case 12:case"end":return e.stop()}}),e)})));return function(i){return e.apply(this,arguments)}}(),[K,u,Z,le,se]);Object(d.useEffect)((function(){D(!1),Y(l.EditorialLoadingStateLoadingInitial),P(12),_e(12)}),[_e]);var Oe=Object(d.useCallback)((function(){var e=T+12;Y(l.EditorialLoadingStateLoading),P(e),_e(e)}),[T,_e]);return Object(h.jsxs)("div",{className:"EditorialView",children:[Object(h.jsx)("h2",{className:"EditorialView__title",children:t}),s&&Object(h.jsx)("p",{className:"EditorialView__subtitle",children:s}),Object(h.jsxs)("div",{className:"EditorialView__filters",children:[w&&Object(h.jsxs)("div",{className:"EditorialView__filters__source",children:[Object(h.jsx)("button",{type:"button",className:"EditorialView__filters__source__button".concat(K?"":" EditorialView__filters__source__button--active"),onClick:function(){return Q(null)},children:R("All")}),w.map((function(e,i){var t=e.id,l=e.label;return Object(h.jsx)("button",{type:"button",className:"EditorialView__filters__source__button".concat(K===t?" EditorialView__filters__source__button--active":""),onClick:function(){return Q(t)},children:l},"editorial-view-source-".concat(i))}))]}),Object(h.jsxs)("div",{className:"EditorialView__filters__options",children:[Object(h.jsx)(f,{icon:j,label:R("Year"),options:u,value:Z,onChange:ee}),Object(h.jsx)(f,{icon:b,label:R("Region"),options:m,value:le,onChange:ae}),Object(h.jsx)(f,{icon:g,label:R("Category"),options:x,value:se,onChange:ne})]})]}),F?Object(h.jsx)("div",{className:"EditorialView__no_results",children:E}
1):Object(h.jsxs)(h.Fragment,{children:[C&&(ue||$==l.EditorialLoadingStateLoadingInitial)&&Object(h.jsxs)("div",{className:"EditorialView__results",children:[Object(h.jsx)("h3",{className:"EditorialView__results__title",children:R("Highlight")}),$!==l.EditorialLoadingStateLoadingInitial&&L&&L(ue,!0),$===l.EditorialLoadingStateLoadingInitial&&Object(h.jsx)(p,{loading:$})]}),Object(h.jsxs)("div",{className:"EditorialView__results",children:[N&&Object(h.jsx)("h3",{className:"EditorialView__results__title",children:N}),$!==l.EditorialLoadingStateLoadingInitial&&Object(h.jsx)("div",{className:"EditorialView__results__list".concat(3==y?" EditorialView__results__list--three":2==y?" EditorialView__results__list--two":""),children:L&&ge.map((function(e,i){return Object(h.jsx)("div",{children:L(e)},"editorial-view-item-".concat(i))}))}),$!==l.EditorialLoadingStateNormal&&Object(h.jsx)(p,{loading:$,itemsPerRow:y})]}),Object(h.jsxs)("div",{className:"EditorialView__actions",children:[Object(h.jsx)("button",{disabled:z&&z<=T,className:"EditorialView__load_more",onClick:Oe,children:R("LoadMore")}),Object(h.jsxs)("button",{className:"EditorialView__go_back",onClick:function(){"undefined"!==typeof window&&window.scrollTo({top:0,behavior:"smooth"})},children:[Object(h.jsxs)("div",{children:[Object(h.jsx)("img",{src:_}),Object(h.jsx)("img",{src:O})]}),Object(h.jsx)("p",{children:R("BackToTop")})]})]})]})]})}}}]);
2//# sourceMappingURL=Filter.cf78ea8b.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.