(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{100:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnmountClosed=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=c(n(1)),r=c(n(9)),s=n(51);function c(e){return e&&e.__esModule?e:{default:e}}(t.UnmountClosed=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.componentWillReceiveProps=function(e){var t=e.isOpened;!n.props.isOpened&&t&&n.setState({forceInitialAnimation:!0,shouldUnmount:!1})},n.onRest=function(){var e=n.props,t=e.isOpened,i=e.onRest;t||n.setState({shouldUnmount:!0}),i&&i.apply(void 0,arguments)},n.state={shouldUnmount:!n.props.isOpened,forceInitialAnimation:!n.props.isOpened},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.PureComponent),a(t,[{key:"render",value:function(){var e=this.props,t=e.isOpened,n=(e.onRest,function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["isOpened","onRest"])),a=this.state,r=a.forceInitialAnimation;return a.shouldUnmount?null:o.default.createElement(s.Collapse,i({forceInitialAnimation:r,isOpened:t,onRest:this.onRest},n))}}]),t}()).propTypes={isOpened:r.default.bool.isRequired,onRest:r.default.func}},125:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(84),a=n(85),o=n(86),r=n.n(o),s={ru:i,en:a},c=function(e){return r()(s[e],"iso")}},150:function(e,t,n){var i=n(105);e.exports=function(e,t){var n=[];return i(e,function(e,i,a){t(e,i,a)&&n.push(e)}),n}},151:function(e,t){var n="Expected a function";e.exports=function(e){if("function"!=typeof e)throw new TypeError(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},152:function(e,t,n){var i=n(105);e.exports=function(e,t){var n;return i(e,function(e,i,a){return!(n=t(e,i,a))}),!!n}},153:function(e,t,n){var i=n(144),a=n(131),o=n(169),r=n(58);e.exports=function(e,t,n){if(!r(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&o(t,n.length):"string"==s&&t in n)&&i(n[t],e)}},16:function(e,t,n){"use strict";var i=n(51).Collapse,a=n(100).UnmountClosed;a.Collapse=i,a.UnmountClosed=a,e.exports=a},20:function(e,t,n){"use strict";n.d(t,"c",function(){return m}),n.d(t,"a",function(){return p}),n.d(t,"b",function(){return g});var i=n(26),a=n.n(i),o=n(37),r=n.n(o),s=n(55),c=n.n(s);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,a=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw o}}return n}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,o=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw o}}}}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function m(e){var t,n=[],i=u(decodeURIComponent(e).split(";").map(function(e){return e.split(":")}));try{for(i.s();!(t=i.n()).done;){var a=t.value;if(2===a.length){var o,r=u(a[1].split("+"));try{for(r.s();!(o=r.n()).done;){var s=o.value;n.push({key:a[0],valueId:s})}}catch(e){r.e(e)}finally{r.f()}}}}catch(e){i.e(e)}finally{i.f()}return n}function p(e){return encodeURIComponent(a()(r()(e,"key")).map(function(e){var t=l(e,2),n=t[0],i=t[1];return"".concat(n,":").concat(i.map(function(e){return e.valueId}).join("+"))}).join(";"))}function g(e){var t=r()(e,"foreignKey");return c()(t,function(e){return e.map(function(e){return e.valueId})})}},334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollbars=void 0;var i,a=n(777),o=(i=a)&&i.__esModule?i:{default:i};t.default=o.default,t.Scrollbars=o.default},37:function(e,t,n){var i=n(41),a=n(104),o=Object.prototype.hasOwnProperty,r=a(function(e,t,n){o.call(e,n)?e[n].push(t):i(e,n,[t])});e.exports=r},417:function(e,t,n){var i=n(778),a=n(779),o={float:"cssFloat"},r=n(782);function s(e,t,n){var s=o[t];if(void 0===s&&(s=function(e){var t=a(e),n=i(t);return o[t]=o[e]=o[n]=n,n}(t)),s){if(void 0===n)return e.style[s];e.style[s]=r(s,n)}}function c(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:function(e,t){for(var n in t)t.hasOwnProperty(n)&&s(e,n,t[n])}(arguments[0],arguments[1]):s(arguments[0],arguments[1],arguments[2])}e.exports=c,e.exports.set=c,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(t,n){return t[n]=s(e,n||""),t},{}):s(e,t||"")}},45:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){var t=!1;return{promise:new Promise(function(n,i){e.then(function(e){return t?i({isCanceled:!0}):n(e)},function(e){return i(t?{isCanceled:!0}:e)})}),cancel:function(){t=!0}}}},47:function(e,t,n){var i=n(193),a=n(150),o=n(44),r=n(33),s=n(151);e.exports=function(e,t){return(r(e)?i:a)(e,s(o(t,3)))}},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collapse=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=c(n(1)),r=c(n(9)),s=n(12);function c(e){return e&&e.__esModule?e:{default:e}}var l="IDLING",u=function(){return null},d=t.Collapse=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return f.call(n),n.state={currentState:l,from:0,to:0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.PureComponent),a(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpened,n=e.forceInitialAnimation,i=e.onRest;if(t){var a=this.getTo();if(n){var o=this.wrapper.clientHeight;this.setState({currentState:"RESIZING",from:o,to:a})}else this.setState({currentState:l,from:a,to:a})}i()}},{key:"componentWillReceiveProps",value:function(e){e.hasNestedCollapse?e.isOpened!==this.props.isOpened&&this.setState({currentState:"WAITING"}):this.state.currentState===l&&(e.isOpened||this.props.isOpened)&&this.setState({currentState:"WAITING"})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,i=n.isOpened,a=n.onRest,o=n.onMeasure;if(this.state.currentState!==l){t.to!==this.state.to&&o({height:this.state.to,width:this.content.clientWidth});var r=this.wrapper.clientHeight,s=i?this.getTo():0;r===s?"RESTING"!==this.state.currentState&&"WAITING"!==this.state.currentState||this.setState({currentState:l,from:r,to:s}):this.setState({currentState:"RESIZING",from:r,to:s})}else a()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.raf)}},{key:"render",value:function(){return o.default.createElement(s.Motion,i({},this.getMotionProps(),{onRest:this.onRest,children:this.renderContent}))}}]),t}();d.propTypes={isOpened:r.default.bool.isRequired,springConfig:r.default.objectOf(r.default.number),forceInitialAnimation:r.default.bool,hasNestedCollapse:r.default.bool,fixedHeight:r.default.number,theme:r.default.objectOf(r.default.string),style:r.default.object,onRender:r.default.func,onRest:r.default.func,onMeasure:r.default.func,children:r.default.node.isRequired},d.defaultProps={forceInitialAnimation:!1,hasNestedCollapse:!1,fixedHeight:-1,style:{},theme:{collapse:"ReactCollapse--collapse",content:"ReactCollapse--content"},onRender:u,onRest:u,onMeasure:u};var f=function(){var e=this;this.onContentRef=function(t){e.content=t},this.onWrapperRef=function(t){e.wrapper=t},this.onRest=function(){e.raf=requestAnimationFrame(e.setResting)},this.setResting=function(){e.setState({currentState:"RESTING"})},this.getTo=function(){var t=e.props.fixedHeight;return t>-1?t:e.content.clientHeight},this.getWrapperStyle=function(t){if(e.state.currentState===l&&e.state.to){var n=e.props.fixedHeight;return n>-1?{overflow:"hidden",height:n}:{height:"auto"}}return"WAITING"!==e.state.currentState||e.state.to?{overflow:"hidden",height:Math.max(0,t)}:{overflow:"hidden",height:0}},this.getMotionProps=function(){var t=e.props.springConfig;return e.state.currentState===l?{defaultStyle:{height:e.state.to},style:{height:e.state.to}}:{defaultStyle:{height:e.state.from},style:{height:(0,s.spring)(e.state.to,i({precision:1},t))}}},this.renderContent=function(t){var n=t.height,a=e.props,r=(a.isOpened,a.springConfig,a.forceInitialAnimation,a.hasNestedCollapse,a.fixedHeight,a.theme),s=a.style,c=a.onRender,l=(a.onRest,a.onMeasure,a.children),u=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(a,["isOpened","springConfig","forceInitialAnimation","hasNestedCollapse","fixedHeight","theme","style","onRender","onRest","onMeasure","children"]),d=e.state;return c({current:n,from:d.from,to:d.to}),o.default.createElement("div",i({ref:e.onWrapperRef,className:r.collapse,style:i({},e.getWrapperStyle(Math.max(0,n)),s)},u),o.default.createElement("div",{ref:e.onContentRef,className:r.content},l))}}},55:function(e,t,n){var i=n(41),a=n(170),o=n(44);e.exports=function(e,t){var n={};return t=o(t,3),a(e,function(e,a,o){i(n,a,t(e,a,o))}),n}},59:function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.8,n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight;return e.scrollTop+n>=t*e.scrollHeight}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20;return e.slice((t-1)*n,t*n)}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a})},776:function(e,t,n){__NEXT_REGISTER_PAGE("/projects",function(){return e.exports=n(796),{page:e.exports.default}})},777:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(235),r=y(o),s=y(n(417)),c=n(1),l=y(n(9)),u=y(n(783)),d=y(n(784)),f=y(n(785)),m=y(n(786)),p=y(n(787)),g=n(788),h=n(789);function y(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(a)));return r.getScrollLeft=r.getScrollLeft.bind(r),r.getScrollTop=r.getScrollTop.bind(r),r.getScrollWidth=r.getScrollWidth.bind(r),r.getScrollHeight=r.getScrollHeight.bind(r),r.getClientWidth=r.getClientWidth.bind(r),r.getClientHeight=r.getClientHeight.bind(r),r.getValues=r.getValues.bind(r),r.getThumbHorizontalWidth=r.getThumbHorizontalWidth.bind(r),r.getThumbVerticalHeight=r.getThumbVerticalHeight.bind(r),r.getScrollLeftForOffset=r.getScrollLeftForOffset.bind(r),r.getScrollTopForOffset=r.getScrollTopForOffset.bind(r),r.scrollLeft=r.scrollLeft.bind(r),r.scrollTop=r.scrollTop.bind(r),r.scrollToLeft=r.scrollToLeft.bind(r),r.scrollToTop=r.scrollToTop.bind(r),r.scrollToRight=r.scrollToRight.bind(r),r.scrollToBottom=r.scrollToBottom.bind(r),r.handleTrackMouseEnter=r.handleTrackMouseEnter.bind(r),r.handleTrackMouseLeave=r.handleTrackMouseLeave.bind(r),r.handleHorizontalTrackMouseDown=r.handleHorizontalTrackMouseDown.bind(r),r.handleVerticalTrackMouseDown=r.handleVerticalTrackMouseDown.bind(r),r.handleHorizontalThumbMouseDown=r.handleHorizontalThumbMouseDown.bind(r),r.handleVerticalThumbMouseDown=r.handleVerticalThumbMouseDown.bind(r),r.handleWindowResize=r.handleWindowResize.bind(r),r.handleScroll=r.handleScroll.bind(r),r.handleDrag=r.handleDrag.bind(r),r.handleDragEnd=r.handleDragEnd.bind(r),r.state={didMountUniversal:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),a(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,o.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,i=e.scrollTop,a=void 0===i?0:i,o=e.scrollWidth,r=void 0===o?0:o,s=e.scrollHeight,c=void 0===s?0:s,l=e.clientWidth,u=void 0===l?0:l,d=e.clientHeight,f=void 0===d?0:d;return{left:n/(r-u)||0,top:a/(c-f)||0,scrollLeft:n,scrollTop:a,scrollWidth:r,scrollHeight:c,clientWidth:u,clientHeight:f}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,i=this.view,a=i.scrollWidth,o=i.clientWidth,r=(0,m.default)(this.trackHorizontal),s=Math.ceil(o/a*r);return r===s?0:t||Math.max(s,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,i=this.view,a=i.scrollHeight,o=i.clientHeight,r=(0,p.default)(this.trackVertical),s=Math.ceil(o/a*r);return r===s?0:t||Math.max(s,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,i=t.clientWidth;return e/((0,m.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-i)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,i=t.clientHeight;return e/((0,p.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-i)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,i=this.thumbHorizontal,a=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),i.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),a.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,i=this.thumbHorizontal,a=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),i.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),a.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,i=n.onScroll,a=n.onScrollFrame;i&&i(e),this.update(function(e){var n=e.scrollLeft,i=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=i,a&&a(e)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,i=t.getBoundingClientRect().left,a=this.getThumbHorizontalWidth(),o=Math.abs(i-n)-a/2;this.view.scrollLeft=this.getScrollLeftForOffset(o)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,i=t.getBoundingClientRect().top,a=this.getThumbVerticalHeight(),o=Math.abs(i-n)-a/2;this.view.scrollTop=this.getScrollTopForOffset(o)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,i=t.offsetWidth,a=t.getBoundingClientRect().left;this.prevPageX=i-(n-a)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,i=t.offsetHeight,a=t.getBoundingClientRect().top;this.prevPageY=i-(n-a)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,g.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=f.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,g.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var i=e.clientY,a=-this.trackVertical.getBoundingClientRect().top+i-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(a)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,s.default)(e.trackHorizontal,{opacity:0}),(0,s.default)(e.trackVertical,{opacity:0})},t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&r.default.cancel(this.requestFrame),this.requestFrame=(0,r.default)(function(){t.requestFrame=void 0,e()})}},{key:"update",value:function(e){var t=this;this.raf(function(){return t._update(e)})}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,i=t.hideTracksWhenNotNeeded,a=this.getValues();if((0,d.default)()){var o=a.scrollLeft,r=a.clientWidth,c=a.scrollWidth,l=(0,m.default)(this.trackHorizontal),u=this.getThumbHorizontalWidth(),f={width:u,transform:"translateX("+o/(c-r)*(l-u)+"px)"},g=a.scrollTop,h=a.clientHeight,y=a.scrollHeight,b=(0,p.default)(this.trackVertical),v=this.getThumbVerticalHeight(),k={height:v,transform:"translateY("+g/(y-h)*(b-v)+"px)"};if(i){var x={visibility:c>r?"visible":"hidden"},w={visibility:y>h?"visible":"hidden"};(0,s.default)(this.trackHorizontal,x),(0,s.default)(this.trackVertical,w)}(0,s.default)(this.thumbHorizontal,f),(0,s.default)(this.thumbVertical,k)}n&&n(a),"function"==typeof e&&e(a)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,a=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),o=n.renderTrackHorizontal,r=n.renderTrackVertical,s=n.renderThumbHorizontal,l=n.renderThumbVertical,f=n.tagName,m=(n.hideTracksWhenNotNeeded,n.autoHide),p=(n.autoHideTimeout,n.autoHideDuration),h=(n.thumbSize,n.thumbMinSize,n.universal),y=n.autoHeight,b=n.autoHeightMin,v=n.autoHeightMax,k=n.style,x=n.children,w=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),_=this.state.didMountUniversal,j=i({},g.containerStyleDefault,y&&i({},g.containerStyleAutoHeight,{minHeight:b,maxHeight:v}),k),S=i({},g.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},y&&i({},g.viewStyleAutoHeight,{minHeight:(0,u.default)(b)?"calc("+b+" + "+t+"px)":b+t,maxHeight:(0,u.default)(v)?"calc("+v+" + "+t+"px)":v+t}),y&&h&&!_&&{minHeight:b,maxHeight:v},h&&!_&&g.viewStyleUniversalInitial),O={transition:"opacity "+p+"ms",opacity:0},T=i({},g.trackHorizontalStyleDefault,m&&O,(!t||h&&!_)&&{display:"none"}),E=i({},g.trackVerticalStyleDefault,m&&O,(!t||h&&!_)&&{display:"none"});return(0,c.createElement)(f,i({},w,{style:j,ref:function(t){e.container=t}}),[(0,c.cloneElement)(a({style:S}),{key:"view",ref:function(t){e.view=t}},x),(0,c.cloneElement)(o({style:T}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,c.cloneElement)(s({style:g.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,c.cloneElement)(r({style:E}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,c.cloneElement)(l({style:g.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}();t.default=b,b.propTypes={onScroll:l.default.func,onScrollFrame:l.default.func,onScrollStart:l.default.func,onScrollStop:l.default.func,onUpdate:l.default.func,renderView:l.default.func,renderTrackHorizontal:l.default.func,renderTrackVertical:l.default.func,renderThumbHorizontal:l.default.func,renderThumbVertical:l.default.func,tagName:l.default.string,thumbSize:l.default.number,thumbMinSize:l.default.number,hideTracksWhenNotNeeded:l.default.bool,autoHide:l.default.bool,autoHideTimeout:l.default.number,autoHideDuration:l.default.number,autoHeight:l.default.bool,autoHeightMin:l.default.oneOfType([l.default.number,l.default.string]),autoHeightMax:l.default.oneOfType([l.default.number,l.default.string]),universal:l.default.bool,style:l.default.object,children:l.default.node},b.defaultProps={renderView:h.renderViewDefault,renderTrackHorizontal:h.renderTrackHorizontalDefault,renderTrackVertical:h.renderTrackVerticalDefault,renderThumbHorizontal:h.renderThumbHorizontalDefault,renderThumbVertical:h.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},778:function(e,t){var n=null,i=["Webkit","Moz","O","ms"];e.exports=function(e){n||(n=document.createElement("div"));var t=n.style;if(e in t)return e;for(var a=e.charAt(0).toUpperCase()+e.slice(1),o=i.length;o>=0;o--){var r=i[o]+a;if(r in t)return r}return!1}},779:function(e,t,n){var i=n(780);e.exports=function(e){return i(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}},780:function(e,t,n){var i=n(781);e.exports=function(e){return i(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?" "+t:""}).trim()}},781:function(e,t){e.exports=function(e){return n.test(e)?e.toLowerCase():i.test(e)?(function(e){return e.replace(o,function(e,t){return t?" "+t:""})}(e)||e).toLowerCase():a.test(e)?function(e){return e.replace(r,function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")})}(e).toLowerCase():e.toLowerCase()};var n=/\s/,i=/(_|-|\.|:)/,a=/([a-z][A-Z]|[A-Z][a-z])/;var o=/[\W_]+(.|$)/g;var r=/(.)([A-Z]+)/g},782:function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!=typeof t||n[e]?t:t+"px"}},783:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!1!==r)return r;if("undefined"!=typeof document){var e=document.createElement("div");(0,o.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),r=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else r=0;return r||0};var i,a=n(417),o=(i=a)&&i.__esModule?i:{default:i};var r=!1},785:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),i=n.paddingLeft,a=n.paddingRight;return t-parseFloat(i)-parseFloat(a)}},787:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),i=n.paddingTop,a=n.paddingBottom;return t-parseFloat(i)-parseFloat(a)}},788:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},789:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.renderViewDefault=function(e){return r.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),a=i({},t,{right:2,bottom:2,left:2,borderRadius:3});return r.default.createElement("div",i({style:a},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),a=i({},t,{right:2,bottom:2,top:2,borderRadius:3});return r.default.createElement("div",i({style:a},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),a=i({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",i({style:a},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),a=i({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",i({style:a},n))};var a,o=n(1),r=(a=o)&&a.__esModule?a:{default:a};function s(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}},796:function(e,t,n){"use strict";n.r(t);var i=n(14),a=n.n(i),o=n(2),r=n.n(o),s=n(1),c=n.n(s),l=n(3),u=n(60),d=n.n(u),f=n(24),m=n.n(f),p=n(0),g=n(10),h=n(45),y=n(59),b=n(20),v=n(27),k=n(25),x=n(90),w=n(6),_=n.n(w),j=n(11),S=(n(125),Object(l.e)(function(e){var t=e.id,n=e.projectTypeName,i=e.title,a=e.imageUrl,o=e.imageUrlMob,s=e.imageUrlWide,u=e.iso3166Code,d=e.status,f=e.wide,m=e.intl.locale,g=e.geoNames,h=e.address,y=e.target,b=h.length?h:g.find(function(e){return e.id===u})?g.find(function(e){return e.id===u}).name:null;return c.a.createElement(_.a,{href:{pathname:"/project",query:{id:t,locale:m}},as:"/".concat(m,"/projects/").concat(t)},c.a.createElement("a",{target:"".concat(y?"_blank":""),className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])+" "+"root ".concat(f?"root--wide":"")},c.a.createElement("div",{className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])+" image-wrap"},c.a.createElement(j.c,null,c.a.createElement("img",{src:o,alt:i,className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])})),c.a.createElement(j.a,null,f?c.a.createElement("img",{src:s,alt:i,className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])}):c.a.createElement("img",{src:a,alt:i,className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])}))),c.a.createElement("header",{className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])},c.a.createElement("div",{className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])+" project-type"},n),c.a.createElement("h4",{dangerouslySetInnerHTML:{__html:i},className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])+" title"})),c.a.createElement("footer",{className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])},b?c.a.createElement("div",{className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])+" location"},c.a.createElement("svg",{width:"15",height:"20",className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])},c.a.createElement("use",{xlinkHref:"#location",className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])})),c.a.createElement("div",{dangerouslySetInnerHTML:{__html:b},className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])})):null,c.a.createElement("div",{className:r.a.dynamic([["2438406281",[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]]])+" status"},c.a.createElement(l.b,{id:"project.status.".concat(d)}))),c.a.createElement(r.a,{styleId:"2438406281",css:[".root.__jsx-style-dynamic-selector{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;padding:20px;-webkit-text-decoration:none;text-decoration:none;background:".concat(p.a.darkGray,";color:#fff;}"),".root--wide.__jsx-style-dynamic-selector{padding-left:45px;padding-right:45px;}",".image-wrap.__jsx-style-dynamic-selector{position:absolute;left:0;right:0;top:0;bottom:0;}",".image-wrap.__jsx-style-dynamic-selector img.__jsx-style-dynamic-selector{display:block;width:100%;height:100%;object-fit:cover;}",".image-wrap.__jsx-style-dynamic-selector:before,.image-wrap.__jsx-style-dynamic-selector:after{content:'';position:absolute;left:0;right:0;top:0;bottom:0;}",".image-wrap.__jsx-style-dynamic-selector:before{background-color:rgba(0,0,0,".concat(p.c.base,");}"),".image-wrap.__jsx-style-dynamic-selector:after{background:".concat(p.a.orange,";opacity:0;-webkit-transition:opacity .3s ").concat(p.e.timingFunction,";transition:opacity .3s ").concat(p.e.timingFunction,";}"),".root.__jsx-style-dynamic-selector:hover .image-wrap.__jsx-style-dynamic-selector:after,.root.__jsx-style-dynamic-selector:focus .image-wrap.__jsx-style-dynamic-selector:after{opacity:1;}","header.__jsx-style-dynamic-selector,footer.__jsx-style-dynamic-selector{position:relative;z-index:3;font-size:14px;}",".title.__jsx-style-dynamic-selector{font-size:18px;line-height:1.5;}",".root--wide.__jsx-style-dynamic-selector .title.__jsx-style-dynamic-selector{font-size:21px;}",".location.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:10px;}",".location.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector{margin-right:10px;}"],dynamic:[p.a.darkGray,p.c.base,p.a.orange,p.e.timingFunction]})))})),O=n(31),T=n(16),E=n(334);function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=I(e);if(t){var a=I(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;return R(e)}(this,n)}}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(o,s["PureComponent"]);var t,n,i,a=F(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),P(R(t=a.call(this,e)),"handleScrollClick",function(){t.projectsSection&&window.scroll({top:t.projectsSection.offsetTop+p.d.headerHeight,left:0,behavior:"smooth"})}),P(R(t),"handleSelectClick",function(){t.setState(function(e){return{isOpened:!e.isOpened}})}),P(R(t),"handleSelectRegionClick",function(){t.setState(function(e){return{isOpenedProjects:!e.isOpenedProjects}})}),P(R(t),"setRegion",function(e){t.setState({regionSelectedIndex:e,regionSelected:!!e},t.mapSetIcons(t.getProjects(e))),t.handleSelectClick(),t.setState({isOpenedProjects:!1}),t.setFilteredProjects(e),t.prevCluster=t.geoObjects}),P(R(t),"setProject",function(e){window.open("/".concat(t.props.locale,"/projects/").concat(e.id))}),P(R(t),"hoverObject",function(e){var n={};n[e.iso3166Code]=[];var i=[];i.coord=[e.lat,e.lng],i.id=e.id,i.title=e.title,i.url="/".concat(t.props.locale,"/projects/").concat(e.id),n[e.iso3166Code].push(i),t.mapSetIcons(n,!0)}),P(R(t),"hoverObjectOut",function(){t.myMap.geoObjects.removeAll(),t.prevCluster.map(function(e){t.myMap.geoObjects.add(e)})}),P(R(t),"clusterClick",function(){t.state.filteredProjects.length&&t.setState({showProjectSelected:!0},function(){return setTimeout(t.handleScrollClick(),150)})}),t.state={loading:!1,loaded:!1,isOpened:!1,isOpenedProjects:!1,regionSelected:!1,regionSelectedIndex:!1,projectSelected:!1,showProjectSelected:!1,filteredProjects:[],projectsInCluster:[]},t}return t=o,(n=[{key:"_checkYmaps",value:function(){void 0!==window.ymaps?setTimeout(this.handleLoadMap(),500):setTimeout(this._checkYmaps.bind(this),150)}},{key:"componentDidMount",value:function(){this._checkYmaps()}},{key:"componentDidUpdate",value:function(e){e.projects!==this.props.projects&&this.mapSetIcons(this.getProjects())}},{key:"setFilteredProjects",value:function(e){var t=[];this.props.projects.map(function(n){n.iso3166Code==e&&t.push(n)}),this.setState({filteredProjects:t,showProjectSelected:!1})}},{key:"getProjects",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n={};return this.props.projects.map(function(i){if(0!=i.lat&&0!=i.lng&&(t&&i.iso3166Code==t||!t)){var a=[],o=i.iso3166Code;a.coord=[i.lat,i.lng],a.id=i.id,a.title=i.title,a.url="/".concat(e.props.locale,"/projects/").concat(i.id),n[o]||(n[o]=[]),n[o].push(a)}}),n}},{key:"mapSetIcons",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Object.keys(e).length){this.MyIconContentLayout=window.ymaps.templateLayoutFactory.createClass('<div style="color: #FFFFFF; font-weight: bold;">{{ properties.geoObjects.length }}</div>');var i=[{href:"/static/images/location_cluster@3x_black.png",size:[37,47],offset:[-18.5,-47]}],a=[{href:"/static/images/location_cluster@3x.png",size:[37,47],offset:[-18.5,-47]}];this.myMap.geoObjects.removeAll(),this.geoObjects=[],Object.keys(e).forEach(function(o){var r=e[o],s=[];s[o]=new window.ymaps.ObjectManager({gridSize:256,clusterize:!0,clusterHasBalloon:!1,clusterDisableClickZoom:!1,geoObjectOpenBalloonOnClick:!1,geoObjectIconLayout:"default#image",geoObjectIconImageHref:n?"/static/images/location@3x.png":"/static/images/location@3x_black.png",geoObjectIconImageSize:[37,47],geoObjectIconImageOffset:[-18.5,-47],clusterIcons:i,clusterIconContentLayout:t.MyIconContentLayout}),s[o].objects.events.add("click",function(e){var t=s[o].objects.getById(e.get("objectId")).properties.url;window.open(t)}).add("mouseenter",function(e){s[o].objects.setObjectOptions(e.get("objectId"),{iconImageHref:"/static/images/location@3x.png"})}).add("mouseleave",function(e){s[o].objects.setObjectOptions(e.get("objectId"),{iconImageHref:"/static/images/location@3x_black.png"})}),s[o].clusters.events.add("click",function(e){var t=this;if(e.stopPropagation(),this.myMap.action.getCurrentState().zoom>=10){var n=s[o].clusters.getById(e.get("objectId")).features,i=[],a=[];n.map(function(e){i.push(e.id)}),this.props.projects.map(function(e){-1!=i.indexOf(e.id)&&a.push(e)}),this.setState({projectsInCluster:a,showProjectSelected:!0},function(){return setTimeout(t.handleScrollClick(),150)})}},t).add("mouseenter",function(e){s[o].clusters.setClusterOptions(e.get("objectId"),{clusterIcons:a})}).add("mouseleave",function(e){s[o].clusters.setClusterOptions(e.get("objectId"),{clusterIcons:i})}),r.map(function(e,n){s[o].add({type:"Feature",id:e.id,geometry:{type:"Point",coordinates:e.coord},properties:{url:e.url,hintContent:e.title}}),t.myMap.geoObjects.add(s[o]),t.geoObjects.push(s[o])})}),!n&&this.myMap.setBounds(this.myMap.geoObjects.getBounds(),{checkZoomRange:!0,useMapMargin:!0,hasBalloon:!1})}}},{key:"mapSetIcons_old",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.length){this.MyIconContentLayout=window.ymaps.templateLayoutFactory.createClass('<div style="color: #FFFFFF; font-weight: bold;">{{ properties.geoObjects.length }}</div>');var i=[{href:"/static/images/location_cluster@3x_black.png",size:[37,47],offset:[-18.5,-47]}],a=[{href:"/static/images/location_cluster@3x.png",size:[37,47],offset:[-18.5,-47]}],o=new window.ymaps.Clusterer({clusterIcons:i,clusterIconContentLayout:this.MyIconContentLayout,clusterDisableClickZoom:!0,gridSize:256});o.events.add(["mouseenter","mouseleave"],function(e){var t=e.get("target"),n=e.get("type");void 0!==t.getGeoObjects?"mouseenter"==n?t.options.set("icons",a):t.options.set("icons",i):"mouseenter"==n?t.options.set("iconImageHref","/static/images/location@3x.png"):t.options.set("iconImageHref","/static/images/location@3x_black.png")}).add("click",function(){return t.clusterClick()}),e.map(function(e,i){var a=new window.ymaps.Placemark(e.coord,{id:e.id,url:e.url,hintContent:e.title},{iconLayout:"default#image",iconImageHref:n?"/static/images/location@3x.png":"/static/images/location@3x_black.png",iconImageSize:[37,47],iconImageOffset:[-18.5,-47]});a.events.add("click",function(){var e=a.properties.get("url");m.a.push(e)}).add("mouseenter",function(e){e.get("target").options.set("iconImageHref","/static/images/location@3x.png")}).add("mouseleave",function(e){e.get("target").options.set("iconImageHref","/static/images/location@3x_black.png")}),t.myMap.geoObjects.add(a),o.add(a)}),o.balloon.destroy(),this.clusterer=o,this.myMap.geoObjects.removeAll(),this.myMap.geoObjects.add(o),!n&&this.myMap.setBounds(this.myMap.geoObjects.getBounds(),{checkZoomRange:!1,useMapMargin:!0,hasBalloon:!1})}}},{key:"handleLoadMap",value:function(){var e=this;window.ymaps.ready(function(){e.myMap=new window.ymaps.Map("map",{center:[55.82894816092708,37.573855999999985],zoom:3,margin:[100,0,0,0],controls:[]},{searchControlProvider:"yandex#search",suppressMapOpenBlock:!0,minZoom:2,maxZoom:10,yandexMapDisablePoiInteractivity:!0});var t=new window.ymaps.control.ZoomControl({options:{size:"auto",position:{right:10,top:200}}});e.myMap.controls.add(t),e.myMap.behaviors.disable("scrollZoom"),e.mapSetIcons(e.getProjects()),e.setState({loaded:!0})})}},{key:"render",value:function(){var e=this,t=this.props,n=t.geoNames,i=t.projects,a=this.state,o=a.isOpened,s=a.isOpenedProjects,u=a.regionSelected,d=a.regionSelectedIndex,f=a.projectSelected,m=a.filteredProjects,g=a.showProjectSelected,h=a.projectsInCluster;return c.a.createElement("div",{className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" root"},c.a.createElement("div",{className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" "+"selects ".concat(u?"selects-region":"")},c.a.createElement("div",{className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" "+"select-wrapper ".concat(o?"select-open":"")},c.a.createElement("button",{onClick:function(){return e.handleSelectClick()},className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" select select-main"},d?n.find(function(e){return e.id===d}).name:c.a.createElement(l.b,{id:"projects.filters.select_region"}),c.a.createElement("svg",{width:"33",height:"20",className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])},c.a.createElement("use",{xlinkHref:"#arrow",className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])}))),c.a.createElement(j.c,null,c.a.createElement(T.Collapse,{isOpened:o},c.a.createElement("button",{key:0,onClick:function(){return e.setRegion(!1)},className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" select select-sub"},c.a.createElement(l.b,{id:"projects.filters.all_regions"})),n.map(function(t){var n=0;if(i.map(function(e){e.iso3166Code===t.id&&n++}),n>0)return c.a.createElement("button",{key:t.id,onClick:function(){return e.setRegion(t.id)},className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" select select-sub"},t.name," (",n,")")}))),c.a.createElement(j.a,null,c.a.createElement(T.Collapse,{isOpened:o,style:{maxHeight:500}},c.a.createElement(E.Scrollbars,{style:{width:350,height:500}},c.a.createElement("button",{key:0,onClick:function(){return e.setRegion(!1)},className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" select select-sub"},c.a.createElement(l.b,{id:"projects.filters.all_regions"})),n.map(function(t){var n=0;if(i.map(function(e){e.iso3166Code===t.id&&n++}),n>0)return c.a.createElement("button",{key:t.id,onClick:function(){return e.setRegion(t.id)},className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" select select-sub"},t.name," (",n,")")}))))),u?c.a.createElement("div",{className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" "+"select-wrapper-region  ".concat(s?"select-open-projects":"")},c.a.createElement("button",{onClick:function(){return e.handleSelectRegionClick()},className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" select select-region"},f?"":c.a.createElement(l.b,{id:"projects.filters.select_project"}),c.a.createElement("svg",{width:"33",height:"20",className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])},c.a.createElement("use",{xlinkHref:"#arrow",className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])}))),c.a.createElement(j.c,null,c.a.createElement(T.Collapse,{isOpened:s,className:"region-collapse"},m.map(function(t){return c.a.createElement("button",{key:t.id,onClick:function(){return e.setProject(t)},className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" select select-region-sub"},t.title)}))),c.a.createElement(j.a,null,c.a.createElement(T.Collapse,{isOpened:s,className:"region-collapse",style:{maxHeight:300}},c.a.createElement(E.Scrollbars,{style:{width:350,height:300}},m.map(function(t){return c.a.createElement("button",{key:t.id,onClick:function(){return e.setProject(t)},onMouseEnter:function(){return e.hoverObject(t)},onMouseLeave:function(){return e.hoverObjectOut(t)},className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" select select-region-sub"},t.title)}))))):""),c.a.createElement("div",{id:"map",className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])}),c.a.createElement("ul",{id:"projects-grid",ref:function(t){e.projectsSection=t},className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])+" projects-grid"},g&&h.length?h.map(function(e,t){return c.a.createElement("li",{key:e.id,className:r.a.dynamic([["3416657120",[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]]])},c.a.createElement(S,{id:e.id,address:e.addressText,projectTypeName:e.projectTypeName,title:e.title,imageUrl:e.imageV2.thumb?e.imageV2.thumb.url:e.image.thumb.url,imageUrlMob:e.imageV3.thumb?e.imageV3.thumb.url:e.image.thumb.url,imageUrlWide:e.image.thumb.url,iso3166Code:e.iso3166Code,geoNames:n,status:e.status,wide:0!==t&&(t+1)%5==0,target:!0}))}):""),c.a.createElement(r.a,{styleId:"3416657120",css:["#map.__jsx-style-dynamic-selector{width:100%;height:100%;height:234px;height:auto;margin-bottom:30px;z-index:3;position:relative;background:#ccc;}",".root.__jsx-style-dynamic-selector{width:100%;height:100%;position:relative;}",'.root.__jsx-style-dynamic-selector [class*="ymaps-2"][class*="-ground-pane"]{-webkit-filter:grayscale(100%);filter:grayscale(100%);}',".select-wrapper.__jsx-style-dynamic-selector,.select-wrapper-region.__jsx-style-dynamic-selector{position:relative;float:left;z-index:10;width:100%;position:absolute;height:68px;top:0;}",".select-wrapper-region.__jsx-style-dynamic-selector{top:68px;z-index:9;}",".selects.__jsx-style-dynamic-selector{position:relative;width:100%;top:0;left:0;z-index:9;}",".selects-region.__jsx-style-dynamic-selector{left:0;}",".selects-region.__jsx-style-dynamic-selector~#map.__jsx-style-dynamic-selector{padding-top:129px;}",".select.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;padding:25px 30px;border:0;font:400 15px Institut,sans-serif;font:400 12px Institut,sans-serif;text-transform:uppercase;color:#000;background-color:#505050;cursor:pointer;outline:none;}",".select-sub.__jsx-style-dynamic-selector{padding:15px 30px;color:#ffffff;}",".select-sub.__jsx-style-dynamic-selector:hover{color:".concat(p.a.orange,";}"),".select-region-sub.__jsx-style-dynamic-selector{padding:15px 30px;background-color:#f4f4f4;text-transform:none;text-align:left;font-size:12px;}",".select-region-sub.__jsx-style-dynamic-selector:hover{color:".concat(p.a.orange,";}"),".select.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector{position:relative;top:3px;width:19px;height:auto;margin-left:23px;color:#ffffff;-webkit-transition:-webkit-transform .6s ".concat(p.e.timingFunction,";-webkit-transition:transform .6s ").concat(p.e.timingFunction,";transition:transform .6s ").concat(p.e.timingFunction,";}"),".selects-region.__jsx-style-dynamic-selector .select-main.__jsx-style-dynamic-selector{color:#ffffff;}",".select-open.__jsx-style-dynamic-selector .select.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}",".select-region.__jsx-style-dynamic-selector{background-color:#f4f4f4;}",".select-open-projects.__jsx-style-dynamic-selector .select.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}",".region-collapse.__jsx-style-dynamic-selector{max-height:300px;}","#map.__jsx-style-dynamic-selector{min-height:65vh;}",".projects-grid.__jsx-style-dynamic-selector{position:relative;z-index:3;margin:0;padding:0 0 60px 0;list-style:none;opacity:1;-webkit-transition:opacity .3s ".concat(p.e.timingFunction,";transition:opacity .3s ").concat(p.e.timingFunction,";}"),".projects-grid--loading.__jsx-style-dynamic-selector{opacity:.6;}",".projects-grid.__jsx-style-dynamic-selector li.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;min-height:360px;margin-bottom:10px;}","@media (min-width:".concat(p.b.desktop,"px){.selects.__jsx-style-dynamic-selector{position:absolute;left:0;max-width:350px;}.selects-region.__jsx-style-dynamic-selector{left:0;}.select-wrapper.__jsx-style-dynamic-selector,.select-wrapper-region.__jsx-style-dynamic-selector{width:auto;float:left;}.select.__jsx-style-dynamic-selector{font:400 15px Institut,sans-serif;min-width:350px;width:auto;}#map.__jsx-style-dynamic-selector{padding-top:0;height:100%;height:600px;}.selects-region.__jsx-style-dynamic-selector~#map.__jsx-style-dynamic-selector{padding-top:0;}.projects-grid.__jsx-style-dynamic-selector{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:360px;grid-column-gap:40px;grid-row-gap:40px;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.projects-grid.__jsx-style-dynamic-selector li.__jsx-style-dynamic-selector:nth-child(5n){grid-column:span 2;}}")],dynamic:[p.a.orange,p.a.orange,p.e.timingFunction,p.e.timingFunction,p.b.desktop]}))}}])&&C(t.prototype,n),i&&C(t,i),o}();function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){Y(e,t,n[t])})}return e}function z(e,t,n,i,a,o,r){try{var s=e[o](r),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,a)}function D(e){return function(e){if(Array.isArray(e))return V(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function K(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=B(e);if(t){var a=B(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;return G(e)}(this,n)}}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(u,s["Component"]);var t,n,i,o=W(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),Y(G(t=o.call(this,e)),"startScrollListening",function(){return window.addEventListener("scroll",t.handleScroll,{passive:!0})}),Y(G(t),"stopScrollListening",function(){return window.removeEventListener("scroll",t.handleScroll)}),Y(G(t),"handleScroll",d()(function(){var e=document.documentElement.scrollTop?document.documentElement:document.body;Object(y.a)(e)&&!t.state.isMap&&t.requestData()},150)),Y(G(t),"requestData",function(){t.stopScrollListening(),t.setState(function(e){return{page:e.page+1}},t.paginateProjects)}),Y(G(t),"paginateProjects",function(){t.stopScrollListening(),t.setState({loading:!0});var e=t.state,n=(e.requestParams,e.page),i=Object(y.b)(t.state.projectsAll,t.state.page);i.length>0?(t.startScrollListening(),t.setState(function(e){var t=e.projects;return{loading:!1,projects:1===n?i:[].concat(D(t),D(i))}})):t.setState(function(e){var t=e.page,n=e.projects;return{loading:!1,hasData:!1,projects:1===t?[]:n}})}),Y(G(t),"fetchData",function(){var e=t.props.intl.locale,n=t.state,i=n.requestParams;n.page;t.stopScrollListening(),t.setState({loading:!0}),t.fetchTaskAll=Object(h.a)(Object(g.s)(e,i)),t.fetchTaskAll.promise.then(function(e){var n=e.data;n.length>0?(t.startScrollListening(),t.setState(function(){return{loading:!1,hasData:n.length>20,projectsAll:n,page:1,projects:Object(y.b)(n)}})):t.setState(function(e){var t=e.page,n=e.projects;return{loading:!1,hasData:!1,projects:1===t?[]:n}})}).catch(function(e){e.isCanceled||(t.startScrollListening(),t.setState({loading:!1}))})}),Y(G(t),"updateRouterWithUpdatedFilterState",function(e){var n=t.props.intl.locale;if(Array.isArray(e)&&e.length>0){var i=b.a(e);m.a.replace({pathname:"/projects",query:{locale:n,filter:i}},"/".concat(n,"/projects?filter=").concat(i),{shallow:!0})}else m.a.replace({pathname:"/projects",query:{locale:n}},"/".concat(n,"/projects"),{shallow:!0})}),Y(G(t),"handleFilterChange",d()(function(e,n){t.updateRouterWithUpdatedFilterState(n),t.setState({page:1,hasData:!0,requestParams:e},t.fetchData)},300)),Y(G(t),"handleMapChange",function(e){t.setState({isMap:e})}),t.state={loading:!1,isMap:!1,page:1,hasData:!0,requestParams:t.props.initialRequestParams,projects:e.projects,projectsAll:e.projectsAll},t}return t=u,n=[{key:"componentDidMount",value:function(){this.startScrollListening();var e=document.createElement("script");e.src="https://api-maps.yandex.ru/2.1/?lang=ru_RU&apikey=cb0e4361-d629-454f-a363-4cb21ae708e9&lang=ru_RU",e.async=!0,document.body.appendChild(e),["/static/images/location_cluster@3x_black.png","/static/images/location_cluster@3x.png","/static/images/location@3x.png","/static/images/location@3x_black.png","/static/icon-list.png"].forEach(function(e){document.createElement("img").src=e})}},{key:"componentWillUnmount",value:function(){this.stopScrollListening(),this.fetchTask&&this.fetchTask.cancel()}},{key:"render",value:function(){var e=this.props,t=e.intl,n=e.projectFilters,i=e.initialFilterState,a=this.state,o=a.loading,s=a.hasData,u=a.projects,d=a.projectsAll,f=a.isMap;return c.a.createElement(v.a,{title:t.formatMessage({id:"projects.title"})},c.a.createElement("div",{className:r.a.dynamic([["3474093153",[p.d.internalPageMarginTopMobile,p.e.timingFunction,p.b.desktop,p.d.pageMarginTop]]])+" root"},c.a.createElement("div",{className:r.a.dynamic([["3474093153",[p.d.internalPageMarginTopMobile,p.e.timingFunction,p.b.desktop,p.d.pageMarginTop]]])+" container"},c.a.createElement("h1",{className:r.a.dynamic([["3474093153",[p.d.internalPageMarginTopMobile,p.e.timingFunction,p.b.desktop,p.d.pageMarginTop]]])},c.a.createElement(l.b,{id:"projects.title"})),c.a.createElement(x.a,{criterias:n,onChange:this.handleFilterChange,onMap:this.handleMapChange,initialFilterState:i}),f?c.a.createElement("div",{className:r.a.dynamic([["3474093153",[p.d.internalPageMarginTopMobile,p.e.timingFunction,p.b.desktop,p.d.pageMarginTop]]])+" map"},c.a.createElement(A,{projects:d,geoNames:n.find(function(e){return"regions"===e.key}).values,locale:t.locale})):u.length?c.a.createElement("ul",{className:r.a.dynamic([["3474093153",[p.d.internalPageMarginTopMobile,p.e.timingFunction,p.b.desktop,p.d.pageMarginTop]]])+" "+"projects-grid ".concat(o?"projects-grid--loading":"")},u.map(function(e,t){return c.a.createElement("li",{key:e.id,className:r.a.dynamic([["3474093153",[p.d.internalPageMarginTopMobile,p.e.timingFunction,p.b.desktop,p.d.pageMarginTop]]])},c.a.createElement(S,{id:e.id,address:e.addressText,projectTypeName:e.projectTypeName,title:e.title,imageUrl:e.imageV2.thumb?e.imageV2.thumb.url:e.image.thumb.url,imageUrlMob:e.imageV3.thumb?e.imageV3.thumb.url:e.image.thumb.url,imageUrlWide:e.image.thumb.url,iso3166Code:e.iso3166Code,geoNames:n.find(function(e){return"regions"===e.key}).values,status:e.status,wide:0!==t&&(t+1)%5==0}))}),c.a.createElement(O.a,{loading:o,hasData:s,onRequestData:this.requestData})):c.a.createElement("p",{className:r.a.dynamic([["3474093153",[p.d.internalPageMarginTopMobile,p.e.timingFunction,p.b.desktop,p.d.pageMarginTop]]])},c.a.createElement(l.b,{id:"projects.filter_not_found"})))),c.a.createElement(r.a,{styleId:"3474093153",css:[".root.__jsx-style-dynamic-selector{padding:".concat(p.d.internalPageMarginTopMobile,"px 0 100px;overflow:hidden;font-size:14px;line-height:22px;}"),"h1.__jsx-style-dynamic-selector{margin-bottom:7px;margin-left:10px;font:400 20px/30px Institut,sans-serif;}","p.__jsx-style-dynamic-selector{position:relative;font-size:20px;z-index:3;}",".projects-grid.__jsx-style-dynamic-selector{position:relative;z-index:3;margin:0;padding:0 0 60px 0;list-style:none;opacity:1;-webkit-transition:opacity .3s ".concat(p.e.timingFunction,";transition:opacity .3s ").concat(p.e.timingFunction,";}"),".projects-grid--loading.__jsx-style-dynamic-selector{opacity:.6;}",".projects-grid.__jsx-style-dynamic-selector li.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;min-height:360px;margin-bottom:10px;}","@media (min-width:".concat(p.b.desktop,"px){.root.__jsx-style-dynamic-selector{padding:").concat(p.d.pageMarginTop,"px 0 100px;}h1.__jsx-style-dynamic-selector{margin-bottom:21px;margin-left:0;font-size:48px;line-height:55px;}.projects-grid.__jsx-style-dynamic-selector{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:360px;grid-column-gap:40px;grid-row-gap:40px;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}.projects-grid.__jsx-style-dynamic-selector li.__jsx-style-dynamic-selector:nth-child(5n){grid-column:span 2;}}")],dynamic:[p.d.internalPageMarginTopMobile,p.e.timingFunction,p.b.desktop,p.d.pageMarginTop]}))}}],i=[{key:"getInitialProps",value:function(){var e,t=(e=a.a.mark(function e(t){var n,i,o,r,s,c,l,u;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.req,i=t.query,o=[],r=n?n.locale:i.locale,e.next=5,Object(g.p)(r);case 5:return s=e.sent,c=s.data,i.filter&&b.c(i.filter).map(function(e){var t=c.find(function(t){return t.key===e.key});if(t&&Array.isArray(t.values)){var n=t.values.find(function(t){return t.id==e.valueId});n&&n.name&&o.push(L({},e,{foreignKey:t.foreignKey,name:n.name,valueId:n.id}))}}),l=b.b(o),e.next=11,Object(g.s)(r,l);case 11:return u=e.sent,e.abrupt("return",{projects:Object(y.b)(u.data),projectsAll:u.data,projectFilters:c,initialFilterState:o,initialRequestParams:l});case 13:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(i,a){var o=e.apply(t,n);function r(e){z(o,i,a,r,s,"next",e)}function s(e){z(o,i,a,r,s,"throw",e)}r(void 0)})});return function(e){return t.apply(this,arguments)}}()}],n&&K(t.prototype,n),i&&K(t,i),u}();t.default=Object(k.a)(q)},84:function(e){e.exports=[{name:"Ярославская область",iso:"YAR",fips:"88",admin:"88",reference:{}},{name:"Воронежская область",iso:"VOR",fips:"86",admin:"86",reference:{}},{name:"Вологодская область",iso:"VLG",fips:"85",admin:"85",reference:{}},{name:"Волгоградская область",iso:"VGG",fips:"84",admin:"84",reference:{}},{name:"Ульяновская область",iso:"ULY",fips:"81",admin:"81",reference:{}},{name:"Удмуртия",iso:"UD",fips:"80",admin:"80",reference:{}},{name:"Тверская область",iso:"TVE",fips:"77",admin:"77",reference:{}},{name:"Тульская область",iso:"TUL",fips:"76",admin:"76",reference:{}},{name:"Татарстан",iso:"TA",fips:"73",admin:"73",reference:{}},{name:"Тамбовская область",iso:"TAM",fips:"72",admin:"72",reference:{}},{name:"Ставропольский край",iso:"STA",fips:"70",admin:"70",reference:{}},{name:"Смоленская область",iso:"SMO",fips:"69",admin:"69",reference:{}},{name:"Саратовская область",iso:"SAR",fips:"67",admin:"67",reference:{}},{name:"Самарская область",iso:"SAM",fips:"65",admin:"65",reference:{}},{name:"Рязанская область",iso:"RYA",fips:"62",admin:"62",reference:{}},{name:"Ростовская область",iso:"ROS",fips:"61",admin:"61",reference:{}},{name:"Псковская область",iso:"PSK",fips:"60",admin:"60",reference:{}},{name:"Пермский край",iso:"PER",fips:"90",admin:"90",reference:{}},{name:"Пензенская область",iso:"PNZ",fips:"57",admin:"57",reference:{}},{name:"Орловская область",iso:"ORL",fips:"56",admin:"56",reference:{}},{name:"Оренбургская область",iso:"ORE",fips:"55",admin:"55",reference:{}},{name:"Новгородская область",iso:"NGR",fips:"52",admin:"52",reference:{}},{name:"Северная Осетия",iso:"SE",fips:"68",admin:"68",reference:{}},{name:"Ненецкий автономный округ",iso:"NEN",fips:"50",admin:"50",reference:{}},{name:"Мурманская область",iso:"MUR",fips:"49",admin:"49",reference:{}},{name:"Москва",iso:"MOW",fips:"48",admin:"48",reference:{}},{name:"Московская область",iso:"MOS",fips:"47",admin:"47",reference:{}},{name:"Мордовия",iso:"MO",fips:"46",admin:"46",reference:{}},{name:"Марий Эл",iso:"ME",fips:"45",admin:"45",reference:{}},{name:"Липецкая область",iso:"LIP",fips:"43",admin:"43",reference:{}},{name:"Ленинградская область",iso:"LEN",fips:"42",admin:"42",reference:{}},{name:"Санкт-Петербург",iso:"SPE",fips:"66",admin:"66",reference:{}},{name:"Курская область",iso:"KRS",fips:"41",admin:"41",reference:{}},{name:"Краснодарский край",iso:"KDA",fips:"38",admin:"38",reference:{}},{name:"Костромская область",iso:"KOS",fips:"37",admin:"37",reference:{}},{name:"Республика Коми",iso:"KO",fips:"34",admin:"34",reference:{}},{name:"Кировская область",iso:"KIR",fips:"33",admin:"33",reference:{}},{name:"Республика Карелия",iso:"KR",fips:"28",admin:"28",reference:{}},{name:"Карачаево-Черкесия",iso:"KC",fips:"27",admin:"27",reference:{}},{name:"Калужская область",iso:"KLU",fips:"25",admin:"25",reference:{}},{name:"Калмыкия",iso:"KL",fips:"24",admin:"24",reference:{}},{name:"Калининградская область",iso:"KGD",fips:"23",admin:"23",reference:{}},{name:"Кабардино-Балкария",iso:"KB",fips:"22",admin:"22",reference:{}},{name:"Ивановская область",iso:"IVA",fips:"21",admin:"21",reference:{}},{name:"Ингушетия",iso:"IN",fips:"19",admin:"19",reference:{}},{name:"Нижегородская область",iso:"NIZ",fips:"51",admin:"51",reference:{}},{name:"Дагестан",iso:"DA",fips:"17",admin:"17",reference:{}},{name:"Чувашия",iso:"CU",fips:"16",admin:"16",reference:{}},{name:"Чечня",iso:"CE",fips:"12",admin:"12",reference:{}},{name:"Брянская область",iso:"BRY",fips:"10",admin:"10",reference:{}},{name:"Белгородская область",iso:"BEL",fips:"09",admin:"09",reference:{}},{name:"Башкортостан",iso:"BA",fips:"08",admin:"08",reference:{}},{name:"Астраханская область",iso:"AST",fips:"07",admin:"07",reference:{}},{name:"Архангельская область",iso:"ARK",fips:"06",admin:"06",reference:{}},{name:"Адыгея",iso:"AD",fips:"01",admin:"01",reference:{}},{name:"Владимирская область",iso:"VLA",fips:"83",admin:"83",reference:{}},{name:"Ямало-Ненецкий автономный округ",iso:"YAN",fips:"87",admin:"87",reference:{}},{name:"Тюменская область",iso:"TYU",fips:"78",admin:"78",reference:{}},{name:"Тыва",iso:"TY",fips:"79",admin:"79",reference:{}},{name:"Томская область",iso:"TOM",fips:"75",admin:"75",reference:{}},{name:"Свердловская область",iso:"SVE",fips:"71",admin:"71",reference:{}},{name:"Омская область",iso:"OMS",fips:"54",admin:"54",reference:{}},{name:"Новосибирская область",iso:"NVS",fips:"53",admin:"53",reference:{}},{name:"Курганская область",iso:"KGN",fips:"40",admin:"40",reference:{}},{name:"Красноярский край",iso:"KYA",fips:"91",admin:"91",reference:{}},{name:"Ханты-Мансийский автономный округ",iso:"KHM",fips:"32",admin:"32",reference:{}},{name:"Хакасия",iso:"KK",fips:"31",admin:"31",reference:{}},{name:"Кемеровская область",iso:"KEM",fips:"29",admin:"29",reference:{}},{name:"Республика Алтай",iso:"AL",fips:"03",admin:"03",reference:{}},{name:"Челябинская область",iso:"CHE",fips:"13",admin:"13",reference:{}},{name:"Алтайский край",iso:"ALT",fips:"04",admin:"04",reference:{}},{name:"Якутия",iso:"SA",fips:"63",admin:"63",reference:{}},{name:"Приморский край",iso:"PRI",fips:"59",admin:"59",reference:{}},{name:"Хабаровский край",iso:"KHA",fips:"30",admin:"30",reference:{}},{name:"Иркутская область",iso:"IRK",fips:"20",admin:"20",reference:{}},{name:"Еврейская автономная область",iso:"YEV",fips:"89",admin:"89",reference:{}},{name:"Амурская область",iso:"AMU",fips:"05",admin:"05",reference:{}},{name:"Бурятия",iso:"BU",fips:"11",admin:"11",reference:{}},{name:"Сахалинская область",iso:"SAK",fips:"64",admin:"64",reference:{}},{name:"Магаданская область",iso:"MAG",fips:"44",admin:"44",reference:{}},{name:"Камчатский край",iso:"KAM",fips:"92",admin:"92",reference:{}},{name:"Чукотский автономный округ",iso:"CHU",fips:"15",admin:"15",reference:{}},{name:"Забайкальский край",iso:"ZAB",fips:"93",admin:"93",reference:{}},{name:"Крым",iso:"CR",fips:"11",admin:"11",reference:{}}]},85:function(e){e.exports=[{name:"Yaroslavl Oblast",iso:"YAR",fips:"88",admin:"88",reference:{}},{name:"Voronezh Oblast",iso:"VOR",fips:"86",admin:"86",reference:{}},{name:"Vologda Oblast",iso:"VLG",fips:"85",admin:"85",reference:{}},{name:"Volgograd Oblast",iso:"VGG",fips:"84",admin:"84",reference:{}},{name:"Ulyanovsk Oblast",iso:"ULY",fips:"81",admin:"81",reference:{}},{name:"Udmurtia",iso:"UD",fips:"80",admin:"80",reference:{}},{name:"Tver Oblast",iso:"TVE",fips:"77",admin:"77",reference:{}},{name:"Tula Oblast",iso:"TUL",fips:"76",admin:"76",reference:{}},{name:"Tatarstan",iso:"TA",fips:"73",admin:"73",reference:{}},{name:"Tambov Oblast",iso:"TAM",fips:"72",admin:"72",reference:{}},{name:"Stavropol Krai",iso:"STA",fips:"70",admin:"70",reference:{}},{name:"Smolensk Oblast",iso:"SMO",fips:"69",admin:"69",reference:{}},{name:"Saratov Oblast",iso:"SAR",fips:"67",admin:"67",reference:{}},{name:"Samara Oblast",iso:"SAM",fips:"65",admin:"65",reference:{}},{name:"Ryazan Oblast",iso:"RYA",fips:"62",admin:"62",reference:{}},{name:"Rostov Oblast",iso:"ROS",fips:"61",admin:"61",reference:{}},{name:"Pskov Oblast",iso:"PSK",fips:"60",admin:"60",reference:{}},{name:"Perm Krai",iso:"PER",fips:"90",admin:"90",reference:{}},{name:"Penza Oblast",iso:"PNZ",fips:"57",admin:"57",reference:{}},{name:"Oryol Oblast",iso:"ORL",fips:"56",admin:"56",reference:{}},{name:"Orenburg Oblast",iso:"ORE",fips:"55",admin:"55",reference:{}},{name:"Novgorod Oblast",iso:"NGR",fips:"52",admin:"52",reference:{}},{name:"Severnaya Osetiya-Alaniya",iso:"SE",fips:"68",admin:"68",reference:{}},{name:"Nenets Autonomous Okrug",iso:"NEN",fips:"50",admin:"50",reference:{}},{name:"Murmansk Oblast",iso:"MUR",fips:"49",admin:"49",reference:{}},{name:"Moscow",iso:"MOW",fips:"48",admin:"48",reference:{}},{name:"Moscow Oblast",iso:"MOS",fips:"47",admin:"47",reference:{}},{name:"Mordovia",iso:"MO",fips:"46",admin:"46",reference:{}},{name:"Mari El",iso:"ME",fips:"45",admin:"45",reference:{}},{name:"Lipetsk Oblast",iso:"LIP",fips:"43",admin:"43",reference:{}},{name:"Leningrad Oblast",iso:"LEN",fips:"42",admin:"42",reference:{}},{name:"Saint Petersburg",iso:"SPE",fips:"66",admin:"66",reference:{}},{name:"Kursk Oblast",iso:"KRS",fips:"41",admin:"41",reference:{}},{name:"Krasnodar Krai",iso:"KDA",fips:"38",admin:"38",reference:{}},{name:"Kostroma Oblast",iso:"KOS",fips:"37",admin:"37",reference:{}},{name:"Komi Republic",iso:"KO",fips:"34",admin:"34",reference:{}},{name:"Kirov Oblast",iso:"KIR",fips:"33",admin:"33",reference:{}},{name:"Kareliya",iso:"KR",fips:"28",admin:"28",reference:{}},{name:"Karachay-Cherkessia",iso:"KC",fips:"27",admin:"27",reference:{}},{name:"Kaluga Oblast",iso:"KLU",fips:"25",admin:"25",reference:{}},{name:"Kalmykia",iso:"KL",fips:"24",admin:"24",reference:{}},{name:"Kaliningrad Oblast",iso:"KGD",fips:"23",admin:"23",reference:{}},{name:"Kabardino-Balkaria",iso:"KB",fips:"22",admin:"22",reference:{}},{name:"Ivanovo Oblast",iso:"IVA",fips:"21",admin:"21",reference:{}},{name:"Ingushetia",iso:"IN",fips:"19",admin:"19",reference:{}},{name:"Nizhny Novgorod Oblast",iso:"NIZ",fips:"51",admin:"51",reference:{}},{name:"Dagestan",iso:"DA",fips:"17",admin:"17",reference:{}},{name:"Chuvashia",iso:"CU",fips:"16",admin:"16",reference:{}},{name:"Chechnya",iso:"CE",fips:"12",admin:"12",reference:{}},{name:"Bryansk Oblast",iso:"BRY",fips:"10",admin:"10",reference:{}},{name:"Belgorod Oblast",iso:"BEL",fips:"09",admin:"09",reference:{}},{name:"Bashkortostan",iso:"BA",fips:"08",admin:"08",reference:{}},{name:"Astrakhan Oblast",iso:"AST",fips:"07",admin:"07",reference:{}},{name:"Arkhangelsk Oblast",iso:"ARK",fips:"06",admin:"06",reference:{}},{name:"Adygea",iso:"AD",fips:"01",admin:"01",reference:{}},{name:"Vladimir Oblast",iso:"VLA",fips:"83",admin:"83",reference:{}},{name:"Yamalo-Nenets Autonomous Okrug",iso:"YAN",fips:"87",admin:"87",reference:{}},{name:"Tyumen Oblast",iso:"TYU",fips:"78",admin:"78",reference:{}},{name:"Tuva",iso:"TY",fips:"79",admin:"79",reference:{}},{name:"Tomsk Oblast",iso:"TOM",fips:"75",admin:"75",reference:{}},{name:"Sverdlovsk Oblast",iso:"SVE",fips:"71",admin:"71",reference:{}},{name:"Omsk Oblast",iso:"OMS",fips:"54",admin:"54",reference:{}},{name:"Novosibirsk Oblast",iso:"NVS",fips:"53",admin:"53",reference:{}},{name:"Kurgan Oblast",iso:"KGN",fips:"40",admin:"40",reference:{}},{name:"Krasnoyarsk Krai",iso:"KYA",fips:"91",admin:"91",reference:{}},{name:"Khanty-Mansi Autonomous Okrug",iso:"KHM",fips:"32",admin:"32",reference:{}},{name:"Khakassia",iso:"KK",fips:"31",admin:"31",reference:{}},{name:"Kemerovo Oblast",iso:"KEM",fips:"29",admin:"29",reference:{}},{name:"Altai Republic",iso:"AL",fips:"03",admin:"03",reference:{}},{name:"Chelyabinsk Oblast",iso:"CHE",fips:"13",admin:"13",reference:{}},{name:"Altai Krai",iso:"ALT",fips:"04",admin:"04",reference:{}},{name:"Sakha Republic",iso:"SA",fips:"63",admin:"63",reference:{}},{name:"Primorsky Krai",iso:"PRI",fips:"59",admin:"59",reference:{}},{name:"Khabarovsk Krai",iso:"KHA",fips:"30",admin:"30",reference:{}},{name:"Irkutsk Oblast",iso:"IRK",fips:"20",admin:"20",reference:{}},{name:"Jewish Autonomous Oblast",iso:"YEV",fips:"89",admin:"89",reference:{}},{name:"Amur Oblast",iso:"AMU",fips:"05",admin:"05",reference:{}},{name:"Buryatia",iso:"BU",fips:"11",admin:"11",reference:{}},{name:"Sakhalin Oblast",iso:"SAK",fips:"64",admin:"64",reference:{}},{name:"Magadan Oblast",iso:"MAG",fips:"44",admin:"44",reference:{}},{name:"Kamchatka Krai",iso:"KAM",fips:"92",admin:"92",reference:{}},{name:"Chukotka Autonomous Okrug",iso:"CHU",fips:"15",admin:"15",reference:{}},{name:"Zabaykalsky Krai",iso:"ZAB",fips:"93",admin:"93",reference:{}},{name:"Crimea",iso:"CR",fips:"11",admin:"11",reference:{}}]},86:function(e,t,n){var i=n(41),a=n(104)(function(e,t,n){i(e,n,t)});e.exports=a},88:function(e,t,n){var i=n(201),a=n(44),o=n(152),r=n(33),s=n(153);e.exports=function(e,t,n){var c=r(e)?i:o;return n&&s(e,t,n)&&(t=void 0),c(e,a(t,3))}},90:function(e,t,n){"use strict";var i=n(2),a=n.n(i),o=n(1),r=n.n(o),s=n(16),c=(n(67),n(47)),l=n.n(c),u=n(88),d=n.n(u),f=n(3),m=n(0),p=n(20),g=function(e){var t=e.criteria,n=e.onSelect,i=e.onMap,r=e.selectedValueIds,c=e.toggleLocations,l=e.locationsOpened;return o.createElement("div",{className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])},o.createElement("h3",{className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])},o.createElement(f.b,{id:"filter.criterias.".concat(t.key)})),"regions"===t.key?o.createElement("ul",{className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])+" "+" ".concat(t.full?"dropdown-ul-full":"")},o.createElement("li",{className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])},o.createElement("button",{onClick:function(){return c()},className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])+" "+"location-list ".concat(l?"locations-opened":"")},o.createElement("img",{src:"/static/icon-list.png",className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])}),o.createElement(f.b,{id:"project.toggleLocations"}),o.createElement("svg",{width:"33",height:"20",className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])},o.createElement("use",{xlinkHref:"#arrow",className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])})))),o.createElement(s.Collapse,{isOpened:l},t.values.map(function(e){var t=r.includes(e.id);return o.createElement("li",{key:e.id,className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])+" "+((t?"selected":"")||"")},o.createElement("button",{onClick:function(){return n(e.id)},className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])},e.name))})),o.createElement("li",{className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])},o.createElement("button",{onClick:function(){return i()},className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])+" location"},o.createElement("svg",{width:"15",height:"20",className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])},o.createElement("use",{xlinkHref:"#location",className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])})),o.createElement(f.b,{id:"project.onmap"})))):o.createElement("ul",{className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])+" "+" ".concat(t.full?"dropdown-ul-full":"")},t.values.map(function(e){var t=r.includes(e.id);return o.createElement("li",{key:e.id,className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])+" "+((t?"selected":"")||"")},o.createElement("button",{onClick:function(){return n(e.id)},className:a.a.dynamic([["1332870554",[m.a.orange,m.b.desktop]]])},e.name))})),o.createElement(a.a,{styleId:"1332870554",css:["h3.__jsx-style-dynamic-selector{margin-bottom:13px;text-transform:uppercase;font:400 15px Institut,sans-serif;}","ul.__jsx-style-dynamic-selector{list-style:none;padding:0;margin:0 0 30px;display:block;width:100%;}","ul.__jsx-style-dynamic-selector li.__jsx-style-dynamic-selector{display:inline-block;width:100%;}","ul.__jsx-style-dynamic-selector li.selected.__jsx-style-dynamic-selector{position:relative;font-weight:bold;}","ul.__jsx-style-dynamic-selector li.selected.__jsx-style-dynamic-selector:before{content:'';position:absolute;right:11px;top:17px;width:5px;height:5px;background:#000;}",".dropdown-ul-full.__jsx-style-dynamic-selector li.__jsx-style-dynamic-selector{width:100%;}","button.__jsx-style-dynamic-selector{display:block;padding:9px 0;border:none;text-align:left;font-family:Formular,sans-serif;font-size:15px;font-weight:inherit;background:transparent;color:#000;outline:none;cursor:pointer;-webkit-appearance:none;}","button.__jsx-style-dynamic-selector:hover{color:".concat(m.a.orange,";}"),"button.location.__jsx-style-dynamic-selector{display:inline-block;margin-top:7px;font:400 15px Institut,sans-serif;text-transform:uppercase;}","button.location.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector{position:relative;top:5px;margin-right:5px;}","button.location-list.__jsx-style-dynamic-selector{display:inline-block;margin-top:7px;font:400 15px Institut,sans-serif;text-transform:uppercase;}","button.location-list.__jsx-style-dynamic-selector img.__jsx-style-dynamic-selector{position:relative;top:3px;width:15px;margin-right:5px;}","button.location-list.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector{position:relative;top:0;width:19px;height:auto;margin-right:5px;margin-left:15px;-webkit-transition:-webkit-transform .6s cubic-bezier(.23,1,.32,1);-webkit-transition:transform .6s cubic-bezier(.23,1,.32,1);-webkit-transition:-webkit-transform .6s cubic-bezier(.23,1,.32,1);-webkit-transition:transform .6s cubic-bezier(.23,1,.32,1);transition:transform .6s cubic-bezier(.23,1,.32,1);}","button.location-list.locations-opened.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}","@media (min-width:".concat(m.b.desktop,"px){h3.__jsx-style-dynamic-selector{margin-bottom:20px;}ul.__jsx-style-dynamic-selector{margin:0;}.dropdown-ul-full.__jsx-style-dynamic-selector li.__jsx-style-dynamic-selector{width:33%;}ul.__jsx-style-dynamic-selector li.selected.__jsx-style-dynamic-selector:before{left:-17px;}}")],dynamic:[m.a.orange,m.b.desktop]}))},h=function(e){var t=e.name,n=e.onRemove;return r.a.createElement("span",{className:a.a.dynamic([["3467181967",[m.a.orange]]])+" root"},t,r.a.createElement("button",{onClick:n,className:a.a.dynamic([["3467181967",[m.a.orange]]])+" remove"},r.a.createElement("svg",{width:"10",height:"10",className:a.a.dynamic([["3467181967",[m.a.orange]]])},r.a.createElement("use",{xlinkHref:"#cross",className:a.a.dynamic([["3467181967",[m.a.orange]]])}))),r.a.createElement(a.a,{styleId:"3467181967",css:[".root.__jsx-style-dynamic-selector{margin-right:10px;font-size:16px;line-height:26px;}",".remove.__jsx-style-dynamic-selector{padding:5px;margin-left:5px;border:0;background:none;cursor:pointer;outline:none;}",".remove.__jsx-style-dynamic-selector:hover,.remove.__jsx-style-dynamic-selector:focus{color:".concat(m.a.orange,";}")],dynamic:[m.a.orange]}))};function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function k(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=j(e);if(t){var a=j(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;return _(e)}(this,n)}}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return O});var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(c,o["Component"]);var t,n,i,r=w(c);function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return S(_(e=r.call.apply(r,[this].concat(n))),"state",{isOpened:!1,isMap:!1,locationsOpened:!1,selected:e.props.initialFilterState}),S(_(e),"handleToggleLocations",function(){e.setState(function(e){return{locationsOpened:!e.locationsOpened}})}),S(_(e),"handleToggleClick",function(){e.setState(function(e){return{isOpened:!e.isOpened}})}),S(_(e),"handleMapClick",function(){e.setState(function(e){return{isMap:!e.isMap}},function(){e.props.onMap(e.state.isMap),e.state.isMap&&e.setState({isOpened:!1})})}),S(_(e),"handleMapResetClick",function(){e.setState({isMap:!1}),e.props.onMap&&e.props.onMap(!1)}),S(_(e),"handleResetClick",function(){e.setState({selected:[]},function(){return e.props.onChange([],[])})}),S(_(e),"handleCriteriaValueSelect",function(t){return function(n){var i=e.props.criterias,a=e.state.selected,o=i.find(function(e){return e.key===t});if(!o)throw new Error("Criteria with key '".concat(t,"' not found"));var r=o.values.find(function(e){return e.id===n});if(!r)throw new Error("Value with valueId '".concat(n,"' in criteria by key '").concat(t,"' not found"));var s=d()(a,{key:t,valueId:n})?l()(a,{key:t,valueId:n}):[].concat(b(a),[{key:t,foreignKey:o.foreignKey,valueId:n,name:r.name}]),c=p.b(s);e.handleMapResetClick(),e.setState({selected:s},function(){return e.props.onChange(c,s)})}}),S(_(e),"handleCriteriaValueRemove",function(t,n){return function(){var i=e.state.selected,a=l()(i,{key:t,valueId:n}),o=p.b(a);e.setState({selected:a},function(){return e.props.onChange(o,a)})}}),S(_(e),"getSelectedValueIdsForCriteriaKey",function(t){return e.state.selected.reduce(function(e,n){return n.key===t?[].concat(b(e),[n.valueId]):e},[])}),e}return t=c,(n=[{key:"render",value:function(){var e=this,t=this.props.criterias,n=this.state,i=n.isOpened,r=n.isMap,c=n.selected,l=n.locationsOpened,u=1==t.length;return o.createElement("div",{className:a.a.dynamic([["2857926830",[m.a.lightOrange,m.a.orange,m.e.timingFunction,m.e.timingFunction,m.b.desktop]]])+" "+"root ".concat(i?"root--open":"")},c.length?o.createElement("button",{onClick:this.handleResetClick,className:a.a.dynamic([["2857926830",[m.a.lightOrange,m.a.orange,m.e.timingFunction,m.e.timingFunction,m.b.desktop]]])+" reset"},o.createElement(f.b,{id:"filter.reset"})):"",o.createElement("button",{onClick:this.handleToggleClick,className:a.a.dynamic([["2857926830",[m.a.lightOrange,m.a.orange,m.e.timingFunction,m.e.timingFunction,m.b.desktop]]])+" toggle"},o.createElement(f.b,{id:"filter.toggle"}),o.createElement("svg",{width:"33",height:"20",className:a.a.dynamic([["2857926830",[m.a.lightOrange,m.a.orange,m.e.timingFunction,m.e.timingFunction,m.b.desktop]]])},o.createElement("use",{xlinkHref:"#arrow",className:a.a.dynamic([["2857926830",[m.a.lightOrange,m.a.orange,m.e.timingFunction,m.e.timingFunction,m.b.desktop]]])}))),o.createElement("div",{className:a.a.dynamic([["2857926830",[m.a.lightOrange,m.a.orange,m.e.timingFunction,m.e.timingFunction,m.b.desktop]]])+" selected-filters"},o.createElement(s.UnmountClosed,{isOpened:c.length>0||r},o.createElement("nav",{className:a.a.dynamic([["2857926830",[m.a.lightOrange,m.a.orange,m.e.timingFunction,m.e.timingFunction,m.b.desktop]]])},r?o.createElement(h,{key:"map",name:o.createElement(f.b,{id:"project.onmap"}),onRemove:this.handleMapClick}):"",c.map(function(t){return o.createElement(h,{key:t.valueId,name:t.name,onRemove:e.handleCriteriaValueRemove(t.key,t.valueId)})})))),o.createElement(s.UnmountClosed,{isOpened:i},o.createElement("div",{className:a.a.dynamic([["2857926830",[m.a.lightOrange,m.a.orange,m.e.timingFunction,m.e.timingFunction,m.b.desktop]]])+" "+"dropdown ".concat(u?"dropdown-full":"")},t.map(function(t){return t.full=u,o.createElement(g,{key:t.key,criteria:t,selectedValueIds:e.getSelectedValueIdsForCriteriaKey(t.key),onSelect:e.handleCriteriaValueSelect(t.key),toggleLocations:function(){return e.handleToggleLocations()},locationsOpened:l,onMap:function(){return e.handleMapClick()}})}))),o.createElement(a.a,{styleId:"2857926830",css:[".root.__jsx-style-dynamic-selector{position:relative;z-index:2;margin-top:34px;}",".root.__jsx-style-dynamic-selector:before{content:'';position:absolute;left:-10px;top:-27px;bottom:-425px;z-index:-1;width:800%;background:".concat(m.a.lightOrange,";}"),".toggle.__jsx-style-dynamic-selector{position:absolute;right:10px;top:-18px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:calc(100% - 20px);width:35%;padding:10px 0;border:0;font:400 15px Institut,sans-serif;text-transform:uppercase;color:#000;background:none;cursor:pointer;outline:none;}",".reset.__jsx-style-dynamic-selector{position:absolute;left:10px;top:-18px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:calc(100% - 20px);width:45%;padding:10px 0;border:0;font:400 15px Institut,sans-serif;font:400 12px Institut,sans-serif;color:#999999;background:none;cursor:pointer;outline:none;border-bottom:1px dashed #999999;padding-bottom:2px;}",".toggle.__jsx-style-dynamic-selector:hover,.toggle.__jsx-style-dynamic-selector:focus{color:".concat(m.a.orange,";}"),".reset.__jsx-style-dynamic-selector:hover,.reset.__jsx-style-dynamic-selector:focus{color:#000000;border-bottom-color:#000000;}",".toggle.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector{position:relative;top:3px;width:19px;height:auto;margin-left:23px;-webkit-transition:-webkit-transform .6s ".concat(m.e.timingFunction,";-webkit-transition:transform .6s ").concat(m.e.timingFunction,";transition:transform .6s ").concat(m.e.timingFunction,";}"),".selected-filters.__jsx-style-dynamic-selector{position:relative;top:15px;padding:0 100px 30px 20px;}",".dropdown.__jsx-style-dynamic-selector{display:block;grid-template-columns:repeat(4,1fr);padding-bottom:12px;font-size:16px;opacity:0;-webkit-transition:opacity .3s ".concat(m.e.timingFunction,";transition:opacity .3s ").concat(m.e.timingFunction,";}"),".root--open.__jsx-style-dynamic-selector{left:0;width:100%;padding-left:10px;}",".root--open.__jsx-style-dynamic-selector:before{bottom:-83px;}",".root--open.__jsx-style-dynamic-selector .toggle.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}",".root--open.__jsx-style-dynamic-selector .dropdown.__jsx-style-dynamic-selector{opacity:1;}",".root--open.__jsx-style-dynamic-selector .selected-filters.__jsx-style-dynamic-selector{padding-left:0;}","@media (min-width:".concat(m.b.desktop,"px){.root.__jsx-style-dynamic-selector{left:50%;width:50%;margin-top:-64px;padding-bottom:37px;}.root.__jsx-style-dynamic-selector:before{left:-50px;top:-64px;bottom:-270px;}.root--open.__jsx-style-dynamic-selector{left:0;width:100%;padding-left:50px;}.root--open.__jsx-style-dynamic-selector:before{left:0;}.selected-filters.__jsx-style-dynamic-selector{position:static;padding:0 100px 30px 0;}.dropdown.__jsx-style-dynamic-selector{display:grid;padding-bottom:16px;}.dropdown-full.__jsx-style-dynamic-selector{display:block;}.toggle.__jsx-style-dynamic-selector{top:-3px;right:0;left:auto;display:block;width:auto;font-size:10px;}.reset.__jsx-style-dynamic-selector{top:-35px;right:42px;left:auto;display:block;width:auto;font-size:10px;}}")],dynamic:[m.a.lightOrange,m.a.orange,m.e.timingFunction,m.e.timingFunction,m.b.desktop]}))}}])&&k(t.prototype,n),i&&k(t,i),c}();S(O,"defaultProps",{initialFilterState:[]})}},[[776,1,0]]]);