(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3167],{86862:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r,o=n(92777),a=n(82262),c=n(10748),i=n(45959),s=n(63553),l=n(37247),u=n(59499),p=n(67294),f=n(41664),d=n.n(f),v=n(47166),h=n.n(v),m=n(11091),g=n.n(m);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}var y,_=function(e){return p.createElement("svg",w({width:13,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),r||(r=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.53.22a.75.75 0 0 1 0 1.06L1.81 12l10.72 10.72a.75.75 0 1 1-1.06 1.06L.22 12.53a.75.75 0 0 1 0-1.06L11.47.22a.75.75 0 0 1 1.06 0Z",fill:"#555"})))};function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}var O=function(e){return p.createElement("svg",x({width:13,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),y||(y=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.22.22a.75.75 0 0 1 1.06 0l11.25 11.25a.75.75 0 0 1 0 1.06L1.28 23.78a.75.75 0 0 1-1.06-1.06L10.94 12 .22 1.28a.75.75 0 0 1 0-1.06Z",fill:"#555"})))},Z=n(85893);function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.Z)(e);if(t){var o=(0,l.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var P=h().bind(g()),k=function(e){(0,i.Z)(n,e);var t=b(n);function n(){var e;(0,o.Z)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,u.Z)((0,c.Z)(e),"link",(function(t){var n=e.props,r=n.route,o=n.author,a=n.tag,c=n.type,i="".concat(r).concat(t<2?"":"/page/".concat(t)),s=!1;return o&&(i="".concat(i,"?author=").concat(o.fields.slug),s=!0),c&&(i="".concat(i).concat(s?"&":"?","type=").concat(c),s=!0),a&&(i="".concat(i).concat(s?"&":"?","tag=").concat(a),s=!0),i})),(0,u.Z)((0,c.Z)(e),"previousPages",(function(){var t=e.props,n=t.page;t.totalPages;return(0,Z.jsx)(p.Fragment,{children:[3,2,1].map((function(t){return n-t<=0?null:(0,Z.jsx)("a",{href:e.link(n-t),className:P("link"),children:n-t},t)}))})})),(0,u.Z)((0,c.Z)(e),"nextPages",(function(){var t=e.props,n=t.page,r=t.totalPages;return(0,Z.jsx)(p.Fragment,{children:[1,2,3].map((function(t){return n+t>r?null:(0,Z.jsx)("a",{href:e.link(n+t),className:P("link"),children:n+t},t)}))})})),e}return(0,a.Z)(n,[{key:"render",value:function(){var e=this.props,t=(e.route,e.page),n=e.totalPages;return n<2?(0,Z.jsx)("div",{className:P("container")}):(0,Z.jsx)("div",{className:P("container"),children:(0,Z.jsxs)("div",{className:P("inner"),children:[t>1&&(0,Z.jsx)(d(),{href:this.link(t-1),children:(0,Z.jsx)("a",{className:P("arrow","prev"),"aria-label":"Previous page",children:(0,Z.jsx)(_,{})})}),this.previousPages(),(0,Z.jsx)("span",{className:P("link","active"),children:t}),this.nextPages(),t<n&&(0,Z.jsx)(d(),{href:this.link(t+1),children:(0,Z.jsx)("a",{className:P("arrow","next"),"aria-label":"Next page",children:(0,Z.jsx)(O,{})})})]})})}}]),n}(p.Component);k.defaultProps={page:1,totalPages:1,route:""};var E=k},80305:function(e,t,n){"use strict";var r=n(92777),o=n(82262),a=n(10748),c=n(45959),i=n(63553),s=n(37247),l=n(59499),u=n(67294),p=n(47166),f=n.n(p),d=n(44247),v=n.n(d),h=n(85893);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}var g=f().bind(v()),w=function(e){(0,c.Z)(n,e);var t=m(n);function n(){var e;(0,r.Z)(this,n);for(var o=arguments.length,c=new Array(o),i=0;i<o;i++)c[i]=arguments[i];return e=t.call.apply(t,[this].concat(c)),(0,l.Z)((0,a.Z)(e),"state",{isOpen:!1,selectedValue:null}),(0,l.Z)((0,a.Z)(e),"menu",null),(0,l.Z)((0,a.Z)(e),"lastActiveEl",null),(0,l.Z)((0,a.Z)(e),"onClick",(function(t){e.menu.contains(t.target)||(t.stopPropagation(),e.onClose())})),(0,l.Z)((0,a.Z)(e),"onClose",(function(){e.setState({isOpen:!1})})),(0,l.Z)((0,a.Z)(e),"onKeyDown",(function(){})),(0,l.Z)((0,a.Z)(e),"toggleOptions",(function(t){t.stopPropagation();var n=e.state.isOpen;e.setState({isOpen:!n})})),(0,l.Z)((0,a.Z)(e),"selectOption",(function(t){var n=e.props.onSelect;e.setState({selectedValue:t,isOpen:!1}),n(t)})),(0,l.Z)((0,a.Z)(e),"setMenuRef",(function(t){e.menu=t})),(0,l.Z)((0,a.Z)(e),"clickToKeyboardEvent",(function(t,n){"Enter"!==t.key&&32!==t.keyCode||(t.preventDefault(),e.selectOption(n))})),e}return(0,o.Z)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.state.isOpen;r!==t.isOpen&&(r?(document.addEventListener("keydown",this.onKeyDown),this.lastActiveEl=document.activeElement,window.addEventListener("click",this.onClick)):(document.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("click",this.onClick),setTimeout((function(){n.lastActiveEl&&(n.lastActiveEl.focus(),n.lastActiveEl=null)}),0))),e.selectedValue!==this.props.selectedValue&&this.setState({selectedValue:this.props.selectedValue})}},{key:"componentDidMount",value:function(){this.setState({selectedValue:this.props.selectedValue})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("click",this.onClick)}},{key:"render",value:function(){var e=this,t=this.state,n=t.isOpen,r=t.selectedValue,o=this.props,a=o.label,c=o.options,i=o.placeholder,s=o.width,l=(c.filter((function(e){return e.value===r}))[0]||{}).name;return(0,h.jsxs)("div",{className:g("wrapper"),children:[(0,h.jsxs)("select",{"aria-label":a,className:g("select"),onChange:function(t){return e.selectOption(t.target.value)},children:[i&&(0,h.jsx)("option",{value:"",children:i}),c.map((function(e){var t=e.name,n=e.value;return(0,h.jsx)("option",{selected:n===r,value:n,children:t},n)}))]}),(0,h.jsxs)("div",{className:g("select","select-dropdown",{active:n}),children:[(0,h.jsx)("button",{type:"button","aria-label":i,"aria-haspopup":"true","aria-expanded":n,style:{width:s},onClick:this.toggleOptions,children:l||i}),(0,h.jsx)("ul",{role:"menu",ref:this.setMenuRef,className:g("menu",{active:n}),children:c.map((function(t){var n=t.name,o=t.value;return(0,h.jsx)("li",{className:g("item",{active:o===r}),tabIndex:0,role:"menuitem",onClick:function(){return e.selectOption(o)},onKeyDown:function(t){e.clickToKeyboardEvent(t,o)},children:n},o)}))})]})]})}}]),n}(u.PureComponent);w.defaultProps={onSelect:function(){},placeholder:null},t.Z=w},75182:function(e,t,n){"use strict";n.d(t,{Zz:function(){return y},vw:function(){return _},fx:function(){return w},NP:function(){return g}});var r=n(50029),o=n(59499),a=n(87794),c=n.n(a),i=(n(76124),n(20222)),s=JSON.parse('{"vc":{"Dh":"xjan103pcp94","V9":"master"}}'),l={CONTENTFUL_ACCESS_TOKEN:"mUDP9pa5FLF3oMRSKIKD8xrlJaii7x9DL5pXp-NZK1o",CONTENTFUL_HOST:"cdn.contentful.com",MAILCHIMP_API_KEY:void 0}.CONTENTFUL_SPACE||s.vc.Dh,u={CONTENTFUL_ACCESS_TOKEN:"mUDP9pa5FLF3oMRSKIKD8xrlJaii7x9DL5pXp-NZK1o",CONTENTFUL_HOST:"cdn.contentful.com",MAILCHIMP_API_KEY:void 0}.CONTENTFUL_ENV||s.vc.V9,p=(0,i.e)({accessToken:"mUDP9pa5FLF3oMRSKIKD8xrlJaii7x9DL5pXp-NZK1o",space:l,environment:u,host:"cdn.contentful.com"});function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=e.fields.recommendations?e.fields.recommendations.map((function(e){return d(d({},e),{},{fields:d(d({},e.fields),{},{recommendations:null,content:e.fields.content?d(d({},e.fields.content),{},{fields:d(d({},e.fields.content.fields),{},{recommendations:[]})}):null})})})):[];return d(d({},e),{},{fields:d(d({},e.fields),{},{recommendations:t})})},h=function(e){return e.map(v)},m=function(){var e=(0,r.Z)(c().mark((function e(t,n,r){var o,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d(d({},n),{},{content_type:r,"fields.identifier":t,include:"4"}),e.prev=1,e.next=4,p.getEntries(o);case 4:if(!(a=e.sent).items[0]){e.next=7;break}return e.abrupt("return",a.items[0]);case 7:throw{message:"404 Page not found"};case 11:throw e.prev=11,e.t0=e.catch(1),e.t0;case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t,n,r){return e.apply(this,arguments)}}(),g=function(){return m("site-master-new",{},"site")},w=function(){var e=(0,r.Z)(c().mark((function e(t,n,r){var o,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d(d({},r),{},{content_type:n||"page","fields.slug":t,include:"5"}),e.prev=1,e.next=4,p.getEntries(o);case 4:if(!(a=e.sent).items[0]){e.next=7;break}return e.abrupt("return",v(a.items[0]));case 7:return e.abrupt("return",null);case 10:throw e.prev=10,e.t0=e.catch(1),e.t0;case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t,n,r){return e.apply(this,arguments)}}(),y=function(){var e=(0,r.Z)(c().mark((function e(t,n){var r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=d(d({},t),{},{content_type:"blogPost",include:"3"}),n&&(r=d(d({},r),{},{"fields.authors.sys.id":n.sys.id})),e.prev=2,e.next=5,p.getEntries(r);case 5:return o=e.sent,e.abrupt("return",{items:h(o.items),total:o.total});case 9:throw e.prev=9,e.t0=e.catch(2),e.t0;case 12:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n){return e.apply(this,arguments)}}(),_=function(){var e=(0,r.Z)(c().mark((function e(t){var n,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d(d({},t),{},{content_type:"event",include:"3"}),e.prev=1,e.next=4,p.getEntries(n);case 4:return r=e.sent,e.abrupt("return",{items:r.items,total:r.total});case 8:throw e.prev=8,e.t0=e.catch(1),e.t0;case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()},11091:function(e){e.exports={container:"Pagination_container__FdBHw",link:"Pagination_link__Rt9gy",active:"Pagination_active__nWrMM",inner:"Pagination_inner__YAEKU",arrow:"Pagination_arrow__PTe84",prev:"Pagination_prev__h4Fz1",next:"Pagination_next___VNTZ"}},44247:function(e){e.exports={select:"SelectDropdown_select__hNpf2","select-dropdown":"SelectDropdown_select-dropdown__Jabke",menu:"SelectDropdown_menu__3wacL",fadeInUp:"SelectDropdown_fadeInUp__ncp9O",item:"SelectDropdown_item__LO5La",active:"SelectDropdown_active__YhRi7"}},24654:function(){}}]);