PageSourceSearch

https://www.fptindustrial.com/dist/fpt-industrial/static/js/CtaList.40628918.chunk.js

js fptindustrial.com collected 2026-10-02 04:58:05 UTC 12,819 bytes, 2 lines download raw bytes

1(this["webpackJsonpfpt-industrial"]=this["webpackJsonpfpt-industrial"]||[]).push([[9,43],{1053:function(e,t,n){"use strict";n.r(t);var i=n(133),l=n(2),a=n(321),o=n(671),r=(n(1054),n(878)),d=n(0);t.default=Object(o.a)((function(e){var t,n,o,s,u,c,v,f,b=e.fields;if(!b)return Object(d.jsx)(d.Fragment,{});var p=Object(a.a)().sitecoreContext,g=Object(l.useMemo)((function(){var e;return null!==b&&void 0!==b&&b.style?null===(e=b.style)||void 0===e?void 0:e.value:"Event Page"===p.route.templateName?"border-top":void 0}),[null===b||void 0===b?void 0:b.style]),h=Object(l.useMemo)((function(){return"border-top"===g?"CtaList--border-top":"background-lightgray"===g?"CtaList--background-lightgray":""}),[g]);return Object(d.jsx)("div",{id:"cta-list",className:"CtaList_unanimated ".concat(h," ").concat("Lightgray"===(null===b||void 0===b||null===(t=b.backgroundColor)||void 0===t?void 0:t.value)?"CtaList__grey":""," ").concat(null!==b&&void 0!==b&&null!==(n=b.showRedTopLine)&&void 0!==n&&n.value?"CtaList--red-top":""),children:Object(d.jsx)(r.a,{title:null===b||void 0===b?void 0:b.title,fullDescription:null===b||void 0===b?void 0:b.fullDescription,ctaList:null===b||void 0===b||null===(o=b.ctaList)||void 0===o?void 0:o.map((function(e){var t,n,l;return Object(i.a)(Object(i.a)({},null===e||void 0===e||null===(t=e.fields)||void 0===t?void 0:t.Cta),{},{ignoreUpperCase:null===e||void 0===e||null===(n=e.fields)||void 0===n||null===(l=n.IgnoreUpperCase)||void 0===l?void 0:l.value})})),style:g,isRed:null===b||void 0===b||null===(s=b.redTitle)||void 0===s?void 0:s.value,isNewStyleRed:null===b||void 0===b||null===(u=b.newStyleRed)||void 0===u?void 0:u.value,isNewStyleBlack:null===b||void 0===b||null===(c=b.newStyleBlack)||void 0===c?void 0:c.value,isNewStyleGrey:null===b||void 0===b||null===(v=b.newStyleGrey)||void 0===v?void 0:v.value,borderBottom:null===b||void 0===b||null===(f=b.showBottomLine)||void 0===f?void 0:f.value,disclaimer:null===b||void 0===b?void 0:b.disclaimer})})}))},1054:function(e,t,n){},671:function(e,t,n){"use strict";var i=n(133),l=(n(2),n(0));t.a=function(e){return function(t){try{return t&&(null!==t&&void 0!==t&&t.fields)?Object(l.jsx)(e,Object(i.a)({},t)):Object(l.jsx)(l.Fragment,{})}catch(n){return console.log(null===n||void 0===n?void 0:n.stack),Object(l.jsx)(l.Fragment,{})}}}},672:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var i=function(){};function l(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var o="undefined"!==typeof window},675:function(e,t,n){"use strict";var i=n(133),l=(n(2),n(679)),a=n(689),o=(n(677),n(0));t.a=function(e){var t,n,r,d,s,u,c,v=e.text,f=e.url,b=e.action,p=void 0===b?function(){}:b,g=e.isRed,h=e.isFullwidth,j=e.className,m=e.imageIcon,O=e.imageHoverIcon,y=e.icon,w=e.target,x=void 0===w?"self":w,_=e.id,C=e.sitecoreProps,k=e.minWidth,T=e.customAttributes,P=g?"BaseBtn BaseBtn--red":"BaseBtn";P+=" ga4-click-ui",j&&(P+=" ".concat(j)),h&&(P+=" BaseBtn--fullwidth");var N=function(){var t,n,i,a,r,d,s,u,c,f,b;return Object(o.jsxs)(o.Fragment,{children:[((null===(t=e.fields)||void 0===t||null===(n=t.iconCssClass)||void 0===n?void 0:n.value)||y)&&Object(o.jsx)("span",{className:"icon ".concat((null===(i=e.fields)||void 0===i||null===(a=i.iconCssClass)||void 0===a?void 0:a.value)||y," mr-10")}),(null===m||void 0===m||null===(r=m.value)||void 0===r?void 0:r.src)&&Object(o.jsx)("img",{className:"BaseBtn__image_icon",src:m.value.src,alt:m.value.alt,height:null===(d=m.value)||void 0===d?void 0:d.height,width:null===(s=m.value)||void 0===s?void 0:s.width}),(null===O||void 0===O||null===(u=O.value)||void 0===u?void 0:u.src)&&Object(o.jsx)("img",{className:"BaseBtn__image_hover_icon",src:O.value.src,alt:O.value.alt,height:null===(c=O.value)||void 0===c?void 0:c.height,width:null===(f=O.value)||void 0===f?void 0:f.width}),Object(o.jsx)(l.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(o.jsxs)(o.Fragment,{children:[((null===(t=e.fields)||void 0===t||null===(n=t.link)||void 0===n||null===(r=n.value)||void 0===r?void 0:r.href)||f)&&Object(o.jsx)(a.a,{field:(null===(d=e.fields)||void 0===d?void 0:d.link)||Object(i.a)({value:{text:Object(o.jsxs)(o.Fragment,{children:[y&&Object(o.jsx)("span",{className:"icon ".concat(y," mr-10")}),null===v||void 0===v?void 0:v.value]}),target:"blank"===x?"_blank":"_self",href:f,id:_}},C),className:P,style:k?{minWidth:k}:{},onClick:p,rel:"noopener noreferrer",download:"download"===x,"data-engine-info":T,children:Object(o.jsx)(N,{})}),!(null!==(s=e.fields)&&void 0!==s&&null!==(u=s.link)&&void 0!==u&&null!==(c=u.value)&&void 0!==c&&c.href||f)&&Object(o.jsx)("div",{className:P,onClick:p,children:Object(o.jsx)(N,{})})]})}},677:function(e,t,n){},679:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(2),l=n.n(i),a=n(17),o=n.n(a),r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(i=Object.getOwnPropertySymbols(e);l<i.length;l++)t.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(n[i[l]]=e[i[l]])}return n},d=function(e){var t=e.field,n=e.tag,i=e.editable,a=e.encode,o=r(e,["field","tag","editable","encode"]);if(!t||!t.editable&&(void 0===t.value||""===t.value))return null;a||(i=!1);var d=t.editable&&i,s=d?t.editable||"":void 0===t.value?"":t.value;if(!t.editable&&"string"===typeof s){var u=String(s).split("\n");if(u.length){var c=[];u.forEach((function(e,t){var n=t===u.length-1;c.push(e),n||c.push(l.a.createElement("br",{key:t}))})),s=c}}var v=d||!a,f=null,b=Object.assign({},o);return v?b.dangerouslySetInnerHTML={__html:s}:f=s,n||v?l.a.createElement(n||"span",b,f):l.a.createElement(l.a.Fragment,null,f)};d.propTypes={field:o.a.shape({value:o.a.oneOfType([o.a.string,o.a.number]),editable:o.a.string}),tag:o.a.string,editable:o.a.bool,encode:o.a.bool},d.defaultProps={editable:!0,encode:!0},d.displayName="Text"},680:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(2),l=n.n(i),a=n(17),o=n.n(a),r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(i=Object.getOwnPropertySymbols(e);l<i.length;l++)t.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(n[i[l]]=e[i[l]])}return n},d=Object(i.forwardRef)((function(e,t){var n=e.field,i=e.tag,a=e.editable,o=r(e,["field","tag","editable"]);if(!n||!n.editable&&!n.value)return null;var d=Object.assign({dangerouslySetInnerHTML:{__html:n.editable&&a?n.editable:n.value},ref:t},o);return l.a.createElement(i||"div",d)})),s={field:o.a.shape({value:o.a.string,editable:o.a.string}),tag:o.a.string,editable:o.a.bool};d.propTypes=s,d.defaultProps={tag:"div",editable:!0},d.displayName="RichText"},684:function(e,t,n){"use strict";var i=n(2),l=n(672);t.a=function(e,t){var n=Object(i.useState)(function(e,t){return void 0!==t?t:!!l.a&&window.matchMedia(e).matches}(e,t)),a=n[0],o=n[1];return Object(i.useEffect)((function(){var t=!0,n=window.matchMedia(e),i=function(){t&&o(!!n.matches)};return n.addListener(i),o(n.matches),function(){t=!1,n.removeListener(i)}}),[e]),a}},689:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(2),l=n.n(i),a=n(17),o=n.n(a),r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var l=0;for(i=Object.getOwnPropertySymbols(e);l<i.length;l++)t.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(n[i[l]]=e[i[l]])}return n},d=function(e){var t=e.field,n=e.editable,i=e.children,a=e.showLinkTextWithChildrenPresent,o=r(e,["field","editable","children","showLinkTextWithChildrenPresent"]),d=t;if(!t||!d.editableFirstPart&&!d.value&&!d.href)return null;var s=[];if(n&&d.editableFirstPart){var u=d.editableFirstPart+d.editableLastPart,c=Object.assign(Object.assign({className:"sc-link-wrapper",dangerouslySetInnerHTML:{__html:u}},o),{key:"editable"});if(s.push(l.a.createElement("span",Object.assign({},c))),!i)return s[0]}var v=d.href?t:d.value;if(!v)return null;var f={href:v.href,className:v.class,title:v.title,target:v.target};"_blank"!==f.target||f.rel||(f.rel="noopener noreferrer");var b=a||!i?v.text||v.href:null;return s.push(l.a.createElement("a",Object.assign(Object.assign(Object.assign({},f),o),{key:"link"}),b,i)),l.a.createElement(l.a.Fragment,null,s)},s={field:o.a.oneOfType([o.a.shape({href:o.a.string}),o.a.shape({value:o.a.object,editableFirstPart:o.a.string,editableLastPart:o.a.string})]).isRequired,editable:o.a.bool,children:o.a.node,showLinkTextWithChildrenPresent:o.a.bool};d.propTypes=s,d.defaultProps={editable:!0},d.displayName="Link"},737:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(89);function l(e,t){if(null==e)return{};var n,l,a=Object(i.a)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l<o.length;l++)n=o[l],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},828:function(e,t,n){},829:function(e,t,n){},878:function(e,t,n){"use strict";var i=n(133),l=n(2),a=n(679),o=n(680),r=(n(828),n(737)),d=(n(829),n(675)),s=n(684),u=n(0),c=["value","ignoreUpperCase","icon","hoverIcon"],v=function(e){var t=e.value,n=e.ignoreUpperCase,i=e.icon,l=e.hoverIcon,a=Object(r.a)(e,c),v=t.href,f=t.text,b=t.title,p=t.id,g=t.target,h=Object(s.a)("(max-width: 1199px)");return Object(u.jsxs)("div",{className:"KnowMoreActionButton",style:(null===b||void 0===b?void 0:b.length)>0?{flex:1}:{},children:[(null===b||void 0===b?void 0:b.length)>0&&Object(u.jsx)(o.a,{field:{value:b},className:"KnowMoreActionButton__description"}),Object(u.jsx)(d.a,{sitecoreProps:a,id:p,url:v,text:{value:f},imageIcon:i,imageHoverIcon:l,className:(null===b||void 0===b?void 0:b.length)>0?n?"KnowMoreActionButton__button text-igonre-uppercase":"KnowMoreActionButton__button text-uppercase":n?"KnowMoreActionButton__button--with-description text-igonre-uppercase":"KnowMoreActionButton__button--with-description text-uppercase",isFullwidth:h,target:"_blank"===g?"blank":"download"===g?"download":"self"})]})};t.a=function(e){var t,n,r,d=e.titlePosition,s=void 0===d?"left":d,c=e.title,f=e.fullDescription,b=e.ctaList,p=e.style,g=e.borderBottom,h=e.isRed,j=void 0!==h&&h,m=e.disclaimer,O=(e.disableTopPadding,e.
1noPadding),y=void 0!==O&&O,w=e.onlyTopPadding,x=void 0!==w&&w,_=e.isNewStyleRed,C=void 0!==_&&_,k=e.isNewStyleBlack,T=void 0!==k&&k,P=e.isNewStyleGrey,N=void 0!==P&&P,M=Object(l.useMemo)((function(){return"border-top"===p?"KnowMoreCTA--border-top":"background-lightgray"===p?"KnowMoreCTA--background-lightgray":""}),[p]);return Object(u.jsxs)("div",{className:"".concat(y?"KnowMoreCTA__no_padding":""," KnowMoreCTA ").concat(M," ").concat(C?"KnowMoreCTA--new-red":T?"KnowMoreCTA--new-black":N?"KnowMoreCTA--new-grey":""),children:[(null===c||void 0===c||null===(t=c.value)||void 0===t?void 0:t.length)>0&&Object(u.jsx)("h2",{className:"".concat("left"===s?"KnowMoreCTA__title":"KnowMoreCTA__title_center"," ").concat(j?"KnowMoreCTA__title--red":""),style:{paddingTop:x?"30px":""},children:Object(u.jsx)(a.a,{field:c})}),(null===f||void 0===f||null===(n=f.value)||void 0===n?void 0:n.length)>0&&Object(u.jsx)("p",{className:"KnowMoreCTA__subtitle",style:j?{paddingTop:20,fontStyle:"normal",fontWeight:"400",fontSize:17,lineHeight:"25.5px"}:{},children:Object(u.jsx)(o.a,{field:f})}),Object(u.jsx)("div",{className:"KnowMoreCTA__actions",style:g?{borderBottom:"1px solid #979797"}:{},children:b.map((function(e,t){var n,l,a,o;return null!==e&&void 0!==e&&e.value?Object(u.jsx)(v,Object(i.a)({},e),t):e.fields.Cta.value&&Object(u.jsx)(v,{value:{class:"",anchor:null===(n=e.fields.Cta.value)||void 0===n?void 0:n.anchor,href:e.fields.Cta.value.href,linktype:e.fields.Cta.value.linktype,querystring:e.fields.Cta.value.querystring,text:e.fields.Cta.value.text,title:e.fields.Title.value,target:null===(l=e.fields.Cta.value)||void 0===l?void 0:l.target,ignoreUpperCase:null===e||void 0===e||null===(a=e.fields)||void 0===a||null===(o=a.IgnoreUpperCase)||void 0===o?void 0:o.value}})}))}),(null===m||void 0===m||null===(r=m.value)||void 0===r?void 0:r.length)>0&&Object(u.jsx)("p",{children:Object(u.jsx)(a.a,{className:"KnowMoreCTA__disclaimer",tag:"em",field:m})})]})}}}]);
2//# sourceMappingURL=CtaList.40628918.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.