(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{3301:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/insights",function(){return n(3157)}])},8864:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return r},noSSR:function(){return l}});let i=n(8754);n(5893),n(7294);let o=i._(n(6016));function a(e){return{default:(null==e?void 0:e.default)||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function r(e,t){let n=o.default,i={loading:e=>{let{error:t,isLoading:n,pastDelay:i}=e;return null}};e instanceof Promise?i.loader=()=>e:"function"==typeof e?i.loader=e:"object"==typeof e&&(i={...i,...e});let r=(i={...i,...t}).loader;return(i.loadableGenerated&&(i={...i,...i.loadableGenerated},delete i.loadableGenerated),"boolean"!=typeof i.ssr||i.ssr)?n({...i,loader:()=>null!=r?r().then(a):Promise.resolve(a(()=>null))}):(delete i.webpack,delete i.modules,l(n,i))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},572:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return i}});let i=n(8754)._(n(7294)).default.createContext(null)},6016:function(e,t,n){"use strict";/**
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
 MIT License
 Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let i=n(8754)._(n(7294)),o=n(572),a=[],l=[],r=!1;function s(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function s(){if(!a){let t=new d(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!r){let e=n.webpack?n.webpack():n.modules;e&&l.push(t=>{for(let n of e)if(t.includes(n))return s()})}function c(e,t){!function(){s();let e=i.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let l=i.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),i.default.useMemo(()=>{var t;return l.loading||l.error?i.default.createElement(n.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:a.retry}):l.loaded?i.default.createElement((t=l.loaded)&&t.default?t.default:t,e):null},[e,l])}return c.preload=()=>s(),c.displayName="LoadableComponent",i.default.forwardRef(c)}(s,e)}function p(e,t){let n=[];for(;e.length;){let i=e.pop();n.push(i(t))}return Promise.all(n).then(()=>{if(e.length)return p(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{p(a).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(r=!0,t());p(l,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let u=c},7490:function(e,t,n){"use strict";var i=n(5893),o=n(6003);t.Z=e=>{let{children:t,opacity:n="0.5"}=e;return(0,i.jsx)(a,{className:"back-tint",$opacity:n,children:t})};let a=o.ZP.div.withConfig({componentId:"sc-d51864c0-0"})(["background:black;opacity:",";position:absolute;left:0px;top:0px;background-position:center;background-size:cover;width:100%;height:100%;transition:0.2s ease all;z-index:5;"],e=>e.$opacity)},9346:function(e,t,n){"use strict";var i=n(5893),o=n(6003);t.Z=e=>{let{children:t,backgroundColor:n="#6B2A35",fontSize:o="36px",fontWeight:r="bold",padding:s="23px",letterSpace:d="normal",sectionid:c=""}=e;return(0,i.jsx)(a,{id:c,$backgroundColor:n,$padding:s,children:(0,i.jsx)(l,{$fontSize:o,$fontWeight:r,$letterSpace:d,children:t})})};let a=o.ZP.div.withConfig({componentId:"sc-bd3cb7d1-0"})(["width:100%;background:",";text-align:center;padding:",";"],e=>e.$backgroundColor,e=>e.$padding),l=o.ZP.h2.withConfig({componentId:"sc-bd3cb7d1-1"})(["color:white;font-size:",";font-weight:",";letter-spacing:",";text-transform:uppercase;@media only screen and (min-width:768px) and (max-width:992px){font-size:30px;}@media only screen and (min-width:0px) and (max-width:767px){font-size:22px;letter-spacing:1px;}"],e=>e.$fontSize,e=>e.$fontWeight,e=>e.$letterSpace)},6078:function(e,t,n){"use strict";var i=n(5893),o=n(6003);t.Z=e=>{let{children:t,align:n="left",marginBottom:o="0px",color:l="#3D505D",tag:r="h2"}=e;return(0,i.jsx)(a,{$align:n,$marginBottom:o,$color:l,as:r,children:t})};let a=o.ZP.h2.withConfig({componentId:"sc-fca60e7b-0"})(["display:block;color:",";font-size:33px;font-weight:bold;text-transform:uppercase;position:relative;width:fit-content;&::after{content:'';position:absolute;background:#722536;width:100%;height:1px;bottom:0px;left:0px;}padding:",";padding-bottom:17px;letter-spacing:3px;line-height:normal;@media (min-width:0px) and (max-width:991px){margin-bottom:4rem;}@media (min-width:992px){margin-bottom:",";}@media only screen and (min-width:768px) and (max-width:992px){font-size:30px;text-align:center;}@media only screen and (min-width:0px) and (max-width:767px){font-size:22px;letter-spacing:2px;text-align:center;}"],e=>e.$color,e=>"left"==e.$align?"0px":"0px 35px",e=>e.$marginBottom)},9107:function(e,t,n){"use strict";var i=n(5893),o=n(7294),a=n(1163),l=n(6003),r=n(5553),s=n(3452),d=n(9346),c=n(6078),p=n(7967),u=n.n(p);t.Z=e=>{let{id:t="",banner:n=!1,marginTop:l="0px",bannerText:p=null,hubspotPortalId:f="44057705",hubspotFormId:g="19fc374a-2493-4275-bcaa-5c92eab31a82"}=e,w=(0,a.useRouter)(),b=(0,s.Z)(w),{options:y}=(0,o.useContext)(r.Z),v=(null==y?void 0:y.labels)||{},j=p||v["getInTouch"+b];return(0,i.jsxs)(h,{id:t,$marginTop:l,children:[!0==n&&(0,i.jsx)(d.Z,{sectionid:t,children:j}),p&&!n&&(0,i.jsx)(m,{children:(0,i.jsx)(c.Z,{align:"center",children:j})}),(0,i.jsx)(x,{children:(0,i.jsx)(u(),{portalId:f,formId:g,onSubmit:()=>{},onReady:e=>{},loading:(0,i.jsx)("div",{children:"Loading..."})})})]})};let h=l.ZP.section.withConfig({componentId:"sc-77ee6c6c-0"})(["margin-top:",";@media (min-width:0px) and (max-width:991px){margin-top:50px;}h2{@media only screen and (min-width:0px) and (max-width:767px){margin-bottom:0px;}}"],e=>e.$marginTop),x=l.ZP.div.withConfig({componentId:"sc-77ee6c6c-1"})(["width:90%;max-width:680px;margin:3rem auto;"]),m=l.ZP.div.withConfig({componentId:"sc-77ee6c6c-2"})(["display:flex;justify-content:center;"])},7086:function(e,t,n){"use strict";var i=n(5893),o=n(7294),a=n(6003),l=n(9972),r=n(3481),s=n(2261),d=n(4135);n(889),n(9087);var c=n(7490),p=n(6078);n(246);var u=n(2141);let h={spaceBetween:0,slidesPerView:1,speed:1200,modules:[d.pt],autoplay:{delay:4e3,disableOnInteraction:!1}},x=["/hoseshero.png","/Kanaflex-Pipe-Plant.jpg","/Kanaflex-Pipe-Plant1.jpg"];t.Z=e=>{let{title:t="hoses",slides:n=x,button:a={label:"",link:""}}=e,[d,u]=(0,o.useState)(!0),b=n||x;return(0,o.useEffect)(()=>{u(!1),setTimeout(()=>{u(!0)},0)},[n]),(0,i.jsxs)(m,{children:[(0,i.jsx)(s.tq,{...h,children:b.map((e,t)=>(0,i.jsxs)(s.o5,{children:[d&&(0,i.jsx)(g,{layers:[{image:e,speed:-15}]}),(0,i.jsx)(c.Z,{})]},t))}),(0,i.jsx)(w,{children:(0,i.jsx)(l.Z,{children:(0,i.jsx)(r.Z,{justifyContent:"center",children:(0,i.jsx)(f,{children:(0,i.jsx)(p.Z,{tag:"h1",align:"center",color:"white",children:t})})})})})]})};let m=a.ZP.section.withConfig({componentId:"sc-c7686e9a-0"})(["position:relative;display:flex;align-items:center;background:black;max-height:calc(100vh - 192px);@media (min-width:0px) and (max-width:991px){height:38vh;}@media (min-width:992px){height:100vh;}.swiper{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1;}.swiper-pagination{bottom:38px;.swiper-pagination-bullet{background:white;width:10px;height:10px;opacity:1;transform:none;}.swiper-pagination-bullet-active{background:#682A36;}}@media only screen and (min-width:0px) and (max-width:1199px){max-height:calc(100vh - 70px);}"]),f=a.ZP.div.withConfig({componentId:"sc-c7686e9a-1"})(["max-width:700px;display:flex;flex-direction:column;align-items:center;justify-content:center;h1{margin-bottom:0;}a{@media (min-width:0px) and (max-width:991px){margin-top:1rem;}@media (min-width:992px){margin-top:2rem;}}"]),g=(0,a.ZP)(u.UG).withConfig({componentId:"sc-c7686e9a-2"})(["position:absolute;left:0px;top:0px;background-position:center;background-size:cover;width:100%;height:100%;z-index:5;"]),w=a.ZP.div.withConfig({componentId:"sc-c7686e9a-3"})(["width:100%;z-index:25;display:flex;align-items:center;"])},3157:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return B},default:function(){return G}});var i=n(5893),o=n(9008),a=n.n(o),l=n(7311),r=n(7294),s=n(1163),d=n(5553),c=n(9107),p=n(7086),u=n(6003),h=n(9972),x=n(3481),m=n(1664),f=n.n(m),g=n(5152),w=n.n(g),b=n(6078),y=n(4797);n(2044);var v=n(7490),j=n(381),_=n.n(j),Z=n(246);let C=w()(()=>n.e(249).then(n.bind(n,9249)),{loadableGenerated:{webpack:()=>[9249]},ssr:!1});var P=e=>{let{posts:t,categories:n,insightsPageTemplate:o,numberBlogs:a=4}=e,[l,s]=(0,r.useState)([]),[d,c]=(0,r.useState)(a),[p,u]=(0,r.useState)(t),[m,f]=(0,r.useState)(null),[g,w]=(0,r.useState)(null),j=n.map(e=>({value:e.slug,label:e.name}));(0,r.useEffect)(()=>{s([...new Set(t.map(e=>new Date(e.date).toLocaleString("default",{month:"long",year:"numeric"})))].map(e=>({value:e,label:e})))},[t]),(0,r.useEffect)(()=>{if(m&&m.value||g&&g.value){let e=t;e=m&&m.value?e.filter(e=>new Date(e.date).toLocaleString("default",{month:"long",year:"numeric"})===m.value):e,u(e=g&&g.value?e.filter(e=>e.categories.nodes.some(e=>e.slug===g.value)):e)}else u(t);c(a)},[m,g,a,t]);let P={dropdownIndicator:e=>({...e,svg:{fill:"white"},backgroundColor:"#682A36"})};return(0,i.jsxs)(I,{children:[(0,i.jsx)(T,{children:(0,i.jsxs)(h.Z,{children:[(0,i.jsx)(x.Z,{children:(0,i.jsx)(b.Z,{align:"center",marginBottom:"130px",children:(null==o?void 0:o.titleWhatAreYouInterestedIn)||"WHAT ARE YOU INTERESTED IN?"})}),(0,i.jsxs)(x.Z,{children:[(0,i.jsx)(y.Z,{className:"col-6",children:(0,i.jsxs)(z,{children:[(0,i.jsx)($,{children:(null==o?void 0:o.dateLabel)||"Date"}),(0,i.jsx)(C,{options:[{value:null,label:"Date"},...l],styles:P,onChange:e=>{f(e)}})]})}),(0,i.jsx)(y.Z,{className:"col-6",children:(0,i.jsxs)(z,{children:[(0,i.jsx)($,{children:(null==o?void 0:o.categoryLabel)||"Category"}),(0,i.jsx)(C,{options:[{value:null,label:"Category"},...j],styles:P,onChange:e=>{w(e)}})]})})]})]})}),(0,i.jsxs)(E,{children:[p&&p.slice(0,d).map((e,t)=>(0,i.jsxs)(V,{href:"/insights/"+e.slug,children:[(0,i.jsx)(S,{$src:e.featuredImage.node.sourceUrl}),(0,i.jsxs)(O,{children:[(0,i.jsx)(D,{children:e.title}),(0,i.jsxs)(N,{children:[e.categories.nodes&&e.categories.nodes.length>0&&(0,i.jsx)(A,{children:e.categories.nodes[0].name}),(0,i.jsx)(L,{children:_()(e.date).format("DD.MM.YYYY")})]})]}),(0,i.jsx)(v.Z,{opacity:"0.7"}),(0,i.jsx)(R,{children:(0,i.jsx)(M,{children:e.title})})]},t)),t.length>d&&(0,i.jsx)(k,{children:(0,i.jsx)(Z.Z,{onClick:()=>{c(e=>e+4)},children:(null==o?void 0:o.viewMoreLabel)||"View more"})})]})]})};let k=u.ZP.div.withConfig({componentId:"sc-908e34cc-0"})(["width:100%;display:flex;justify-content:center;margin-top:3rem;"]),I=u.ZP.section.withConfig({componentId:"sc-908e34cc-1"})(["display:flex;justify-content:center;flex-direction:column;align-items:center;margin-top:120px;.row{display:flex;justify-content:center;.col{display:flex;justify-content:center;}}"]),z=u.ZP.div.withConfig({componentId:"sc-908e34cc-2"})(["max-width:420px;width:100%;margin-bottom:25px;position:relative;z-index:25;"]),$=u.ZP.p.withConfig({componentId:"sc-908e34cc-3"})(["font-size:16px;letter-spacing:1.6px;font-weight:600;margin-bottom:23px;"]),S=u.ZP.div.withConfig({componentId:"sc-908e34cc-4"})(["position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(",");background-position:center;background-size:cover;transition:0.3s ease all;"],e=>e.$src),T=u.ZP.div.withConfig({componentId:"sc-908e34cc-5"})(["width:100%;position:relative;z-index:100;"]),E=u.ZP.div.withConfig({componentId:"sc-908e34cc-6"})(["display:flex;justify-content:space-between;flex-wrap:wrap;width:100%;max-width:1440px;margin-top:30px;margin-bottom:150px;@media only screen and (min-width:0px) and (max-width:767px){margin-bottom:50px;}"]),O=u.ZP.div.withConfig({componentId:"sc-908e34cc-7"})(["position:absolute;z-index:25;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;"]),D=u.ZP.h3.withConfig({componentId:"sc-908e34cc-8"})(["z-index:2;color:white;position:relative;max-width:482px;font-size:20px;line-height:27px;letter-spacing:2px;transition:0.2s ease all;@media only screen and (min-width:0px) and (max-width:992px){padding:30px;}"]),N=u.ZP.div.withConfig({componentId:"sc-908e34cc-9"})(["position:absolute;top:75%;z-index:2;left:55px;text-align:left;transition:0.1s ease all;@media only screen and (min-width:0px) and (max-width:992px){top:80%;left:35px;}"]),A=u.ZP.p.withConfig({componentId:"sc-908e34cc-10"})(["font-size:17px;letter-spacing:1.7px;font-weight:500;color:white;margin-bottom:0;"]),L=u.ZP.p.withConfig({componentId:"sc-908e34cc-11"})(["font-size:16px;letter-spacing:1.6px;font-weight:500;color:white;transition:all .15s ease;"]),R=u.ZP.div.withConfig({componentId:"sc-908e34cc-12"})(["position:absolute;width:100%;bottom:0px;background:#3C4F5C;display:flex;align-items:center;justify-content:center;text-align:left;padding:35px;bottom:-200px;transition:0.2s ease all;z-index:35;"]),M=u.ZP.p.withConfig({componentId:"sc-908e34cc-13"})(["width:100%;color:white;position:relative;font-size:17px;letter-spacing:1.7px;font-weight:500;line-height:26px;display:flex;justify-content:space-between;align-items:center;padding-right:50px;&::after{content:'';position:relative;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:12px solid white;top:0;right:-50px;}"]),V=(0,u.ZP)(f()).withConfig({componentId:"sc-908e34cc-14"})(["height:472px;width:49.5%;position:relative;padding:35px 55px;background:url(",");background-position:center;background-size:cover;margin-bottom:15px;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;overflow:hidden;@media only screen and (min-width:0px) and (max-width:992px){width:100%;padding:35px;min-height:450px;height:fit-content;}&:hover{.back-tint{opacity:0.4;}","{opacity:0;}","{bottom:0px;}","{bottom:auto;top:35px;}","{transform:scale(1.1);}}"],e=>e.$background,D,R,N,S);var Y=n(3452),B=!0;function G(e){var t,n,o,u;let{page:h,posts:x,categories:m}=e,f=(0,s.useRouter)(),g=(0,Y.Z)(f),w=(0,l.ZP)(null===(t=h.seo)||void 0===t?void 0:t.fullHead),b=(null==h?void 0:null===(n=h.template)||void 0===n?void 0:n.insightsMainPage)||{},{options:y}=(0,r.useContext)(d.Z),v=(null==y?void 0:y.labels)||{};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a(),{children:w}),(0,i.jsx)(p.Z,{title:h.title,slides:[null===(u=h.featuredImage)||void 0===u?void 0:null===(o=u.node)||void 0===o?void 0:o.sourceUrl]}),(0,i.jsx)(P,{insightsPageTemplate:b,categories:m,posts:x}),(0,i.jsx)(c.Z,{bannerText:v["getInTouch"+g],banner:!0})]})}},2044:function(){},5152:function(e,t,n){e.exports=n(8864)}},function(e){e.O(0,[885,539,282,888,774,179],function(){return e(e.s=3301)}),_N_E=e.O()}]);