1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2581],{73678:function(e,n,r){r.d(n,{Z:function(){return x}});var t=r(16798),i=r(57994),o=r(98907),s=r(90889),a=r(2391),u=r(88433),l=r(30969),c=r(82333),d=r(85358),p=r(55895),f=(r(10546),function(){var e=(0,d.Z)((0,c.Z)().mark((function e(n,r,t){var i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return");case 2:return Array.isArray(r)||(r=[r]),i={application_id:1,post_type:r},n&&(Array.isArray(n)||(n=[n]),i.external_id=n),t&&(i.take=t),e.next=8,(0,p.U2)("/frontend/content/posts",i);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})));return function(n,r,t){return e.apply(this,arguments)}}()),h=r(95870),v=r(40178),m=r.n(v),g=r(37574),Z=function(e){(0,s.Z)(r,e);var n=(0,a.Z)(r);function r(e){var o;return(0,i.Z)(this,r),(o=n.call(this,e)).firstRender=!1,o.uuid=null,o.state={formattedResponse:null,promise:null},o.generateUuid=function(e){return m()("APIPostsContainer_".concat(JSON.stringify(e)))},o.getPromise=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=o.props,r=n.ids,i=n.postType,s=n.responseCallback,a=n.pageSize,l=n.returnKey,c=e.promises,d=e.responses,p=null;return d&&d[o.uuid]?new Promise((function(e){return e()})):(c&&c[o.uuid]?p=c[o.uuid].promise:(p=new Promise((function(e,n){f(r,i,a).then((function(i){if(i.data){var a=i.data;r.length>0&&(a=r.map((function(e){return i.data.find((function(n){return n.external_id===e}))}))),o.setState({formattedResponse:s((0,t.Z)({},l,a))}),e((0,t.Z)({},l,i.data))}else n()}),n)})),h.N9?(0,u.mj)(o.uuid,p,"/"):o.setState({promise:p})),p)},o.uuid=o.generateUuid((0,t.Z)({},e.postType,e.ids)),o}return(0,o.Z)(r,[{key:"componentDidUpdate",value:function(e){JSON.stringify(this.props.ids)!==JSON.stringify(e.ids)&&(this.uuid=this.generateUuid(this.props.ids),this.getPromise())}},{key:"render",value:function(){var e=this,n=this.props,r=n.render,i=n.renderProps,o=n.responseCallback,s=this.state,a=s.promise,l=s.formattedResponse;return(0,g.jsx)(u.B1,{children:function(n){var s=n.state;if(a)return r({promise:a,response:l,renderProps:i});if(!e.firstRender&&!l&&s.responses[e.uuid]&&s.responses[e.uuid].response){e.firstRender=!0;var u=e.props,c=u.returnKey,d=u.ids,p=s.responses[e.uuid].response,f=s.responses[e.uuid].response,h=f[c]||f.data||[];return d.length>0&&(p=(0,t.Z)({},c,d.map((function(e){return h.find((function(n){return n.external_id===e}))})))),r({response:o(p),renderProps:i})}return r({promise:e.getPromise(s),renderProps:i})}})}}]),r}(l.PureComponent);Z.defaultProps={ids:[],pageSize:20,postType:"post",render:function(){},renderProps:{},responseCallback:function(e){return e},returnKey:"posts"};var x=Z},16548:function(e,n,r){var t=r(95764),i=r(81034),o=r(57994),s=r(98907),a=r(90889),u=r(2391),l=r(30969),c=r(37574),d=["promise","error","success","placeholder","loading","renderProps"],p=function(e){(0,a.Z)(r,e);var n=(0,u.Z)(r);function r(){var e;(0,o.Z)(this,r);for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return(e=n.call.apply(n,[this].concat(i))).state={fetched:!1,loading:!1,renderer:null,response:null},e}return(0,s.Z)(r,[{key:"componentDidMount",value:function(){this.handle()}},{key:"shouldComponentUpdate",value:function(e,n){var r=this.props,t=r.renderProps,i=r.response,o=this.state,s=o.renderer,a=o.loading;return JSON.stringify(t)!==JSON.stringify(e.renderProps)||(i!==e.response||(s!==n.renderer||a!==n.loading))}},{key:"componentDidUpdate",value:function(e){this.props.promise!==e.promise&&this.handle(this.props)}},{key:"handle",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;n.promise instanceof Promise&&(this.setState({loading:!0}),n.promise.then((function(){e.setState({loading:!1,fetched:!0,renderer:n.success})})).catch((function(){e.setState({loading:!1,fetched:!0,renderer:n.error})})))}},{key:"render",value:function(){var e=this.props,n=(e.promise,e.error,e.success,e.placeholder),r=e.loading,o=e.renderProps,s=(0,i.Z)(e,d),a=this.state,u=a.fetched,p=a.response,f=a.loading,h=a.renderer;return!u&&n?n():(0,c.jsxs)(l.Fragment,{children:[f&&r(),h((0,t.Z)((0,t.Z)((0,t.Z)({},s),p),o))]})}}],[{key:"getDerivedStateFromProps",value:function(e,n){return null!==e.response&&JSON.stringify(e.response)!==JSON.stringify(n.response)&&(n.response=e.response,n.renderer=e.success,n.fetched=!0),n}}]),r}(l.Component);p.defaultProps={error:function(){return null},loading:function(){return null},placeholder:function(){return null},promise:new Promise((function(){})),renderProps:{},response:null},n.Z=p},71771:function(e,n,r){var t=r(95764),i=r(30969),o=r(70167),s=r(10546),a=r(37574),u=function(e,n){return{facets:["*"],page:1,hitsPerPage:n,filters:e.filter((function(e){return 0!==e.length}))}},l=function(e){var n=e.application,r=e.articles,s=e.articleCategories,l=e.articleIds,c=e.articleIndex,d=e.pageSize,p=e.productIds,f=e.productIndex,h=e.reviewIds,v=e.reviewIndex,m=e.render,g=e.renderProps,Z=e.search,x=(0,i.useRef)([]),y=(0,i.useRef)(null),k=(0,i.useCallback)((function(e){if(e){var n={};x.current.forEach((function(r,t){n[r]=(e[t]||{}).hits||[]})),y.current=n}return y.current}),[]),b=function(){var e=[],t=[],i=n.locale.toLowerCase();return(null===p||void 0===p?void 0:p.length)>0&&(t.push("products"),e.push({indexName:"".concat(f,"_").concat(i),query:Z,params:u([p.map((function(e){return'objectID:"'.concat(e,'"')}))],d)})),h.length>0&&(t.push("reviews"),e.push({indexName:"".concat(v,"_").concat(i),query:Z,params:u([h.map((function(e){return'external_id:"'.concat(e,'"')})),["post_type:review"]],d)})),r?(t.push("articles"),e.push({indexName:"".concat(c,"_").concat(i),query:Z,params:u([["post_type:post"]],d)})):s.length>0?(t.push("articles"),e.push({indexName:"".concat(c,"_").concat(i),query:Z,params:u([s.map((function(e){return'category:"'.concat(e,'"')})),["post_type:post"]],d)})):l.length>0&&(t.push("articles"),e.push({indexName:"".concat(c,"_").concat(i),query:Z,params:u([l.map((function(e){return'external_id:"'.concat(e,'"')})),["post_type:post"]],d)})),x.current=t,e}();return(null===b||void 0===b?void 0:b.length)>0&&(0,a.jsx)(o.Z,{parameters:b,responseCallback:k,render:function(e){return m((0,t.Z)((0,t.Z)({},e),{},{renderProps:g}))}})};l.defaultProps={articleCategories:[],articleIds:[],articleIndex:"posts",articles:!1,pageSize:8,productIds:[],productIndex:"products",renderProps:{},reviewIds:[],reviewIndex:"posts",search:""},n.Z=(0,s.sG)("application")(l)}
1,36579:function(e,n,r){var t=r(95764),i=r(31619);n.Z=function(e){var n,r=e||{},o=r.background_position,s=r.background_size,a=r.credit,u=r.image,l=r.background_color,c=(null===u||void 0===u?void 0:u.title)||"",d=(null===u||void 0===u?void 0:u.url)||"",p=u?(0,t.Z)({mimeType:null===u||void 0===u||null===(n=u.meta)||void 0===n?void 0:n.mime_type},u.meta):{};return u&&delete p.mime_type,{backgroundColor:i.Z[l]||l||void 0,backgroundPosition:o,backgroundSize:s,credit:a,title:c,url:d,meta:p}}},21517:function(e,n,r){r.r(n),r.d(n,{default:function(){return R}});var t,i,o,s=r(95764),a=r(99500),u=(r(30969),r(85255)),l=r(93221),c=r(51194),d=r(43295),p=r(22626),f=r(33747),h=r(31619),v=r(36579),m=r(92226),g=r(90576),Z=r(44465),x=r(95316),y=r(39455),k=r(37574),b=function(e){var n=e.children;return(0,k.jsx)(f.Z,{as:"p",textStyles:"Stabil Grotesk/14-140",children:n})};b.defaultProps={children:null};var P=(0,u.Z)("div")(t||(t=(0,a.Z)(["\n width: 100%;\n position: relative;\n border-radius: 0px;\n cursor: pointer;\n\n p,\n h2 {\n color: ",";\n transition: all 300ms;\n }\n\n :hover {\n p,\n h2 {\n color: ",";\n }\n }\n\n > div:first-of-type {\n border-radius: 0px;\n transition: border-radius ",";\n }\n\n "," {\n :hover > div:first-of-type {\n border-radius: 48px;\n }\n }\n\n a {\n ::before {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 0;\n display: block;\n }\n }\n"])),h.Z.black,h.Z.purple,x.Z.primary,y.BC.hover),_=(0,u.Z)(c.Z)(i||(i=(0,a.Z)(["\n overflow: hidden;\n border-radius: 0px;\n"]))),w=(0,u.Z)("div")(o||(o=(0,a.Z)(["\n text-align: left;\n overflow: hidden;\n padding-top: 16px;\n\n p {\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n line-clamp: 3;\n }\n"]))),S=function(e){var n=e.article||{},r=n.settings,t=n.title,i=n.url,o=r||{},s=o.background_image,a=o.preamble;return(0,k.jsxs)(P,{children:[(0,k.jsx)(_,{ratio:3/4,children:(0,k.jsx)(d.Z,{background:s?(0,v.Z)(s):{type:"image",url:m.l7},type:"image",mediaQuery:[{w:384,h:480,q:70},{w:1024/3,h:1024/3*1.25,q:70},{w:1280/3,h:1280/3*1.25,q:70},{w:360,h:450,q:70},{w:480,h:600,q:70}]})}),(0,k.jsxs)(w,{children:[(0,k.jsx)(f.Z,{as:"h2",textStyles:["Stabil Grotesk/16-140",null,"Stabil Grotesk/24-130"],pb:"16px",children:(0,g.Z)(t)}),a&&(0,k.jsx)(Z.Z,{data:a,textComponent:b})]}),(0,k.jsx)(p.Z,{to:i})]})};S.defaultProps={article:null};var j,I=S,C=(0,u.Z)("div")(j||(j=(0,a.Z)(["\n margin-bottom: 24px;\n"]))),N=function(e){var n=e.articles,r=e.title,t=e.link,i=e.containerId;return null!==n&&void 0!==n&&n.length?(0,k.jsx)(C,{id:i,children:(0,k.jsx)(l.Z,{layout:"large",title:r,link:null===t||void 0===t?void 0:t.url,buttonText:null===t||void 0===t?void 0:t.text,children:n.map((function(e,n){return(0,k.jsx)(I,{article:e},"".concat(e.title,"-").concat(n))}))})}):null};N.defaultProps={articles:[],containerId:"",title:"",link:null};var A=N,D=r(16548),O=r(71771),q=r(73678),U=function(e){return(0,k.jsx)(D.Z,(0,s.Z)((0,s.Z)({},e),{},{success:function(e){var n=e.articles,r=e.cmsArticleIds,t=e.link,i=e.title,o=e.containerId;if(0===(null===n||void 0===n?void 0:n.length))return null;var s=n;return null!==r&&void 0!==r&&r.length&&(s=r.map((function(e){return n.find((function(n){return n.external_id===e}))})).filter((function(e){return e}))),(0,k.jsx)(A,{articles:s,link:t,title:i,containerId:o})}}))},z=function(e){var n=e.data,r=n.articles,t=n.categories,i=n.link,o=n.selection,a=n.title,u=n.container_id,l={pageSize:5,renderProps:{link:i,title:a,containerId:u}};switch(o){case"category":var c=null===t||void 0===t?void 0:t.map((function(e){return e.name}));return l.articleCategories=c.filter((function(e){return e})),(0,k.jsx)(O.Z,(0,s.Z)((0,s.Z)({},l),{},{render:function(e){return(0,k.jsx)(U,(0,s.Z)({},e))}}));case"manual":var d,p=null===r||void 0===r?void 0:r.map((function(e){return e.article}));l.ids=null!==(d=null===p||void 0===p?void 0:p.filter((function(e){return e})))&&void 0!==d?d:[],l.renderProps.cmsArticleIds=p}return(0,k.jsx)(q.Z,(0,s.Z)((0,s.Z)({},l),{},{postType:"post",returnKey:"articles",renderProps:{link:i,title:a,c
1ontainerId:u},render:function(e){return(0,k.jsx)(U,(0,s.Z)({},e))}}))};z.defaultProps={data:{articles:[],categories:[],link:null,selection:"latest",title:null}};var R=z}}]); 2//# sourceMappingURL=ArticleSlider.dd9385ad.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.