/*! For license information please see dll.Animated.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[24],{825:function(t,e,r){"use strict";r.r(e);var n=r(14),s=r.n(n),o=r(12),a=r.n(o),i=r(10),u=r.n(i),c=r(15),l=r.n(c),p=r(16),f=r.n(p),v=r(8),h=r.n(v),y=r(7),b=r.n(y),d=r(0),O=r.n(d),m=r(1),S=r.n(m);function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){b()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function j(t){var e=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(t){return!1}}();return function(){var r,n=h()(t);if(e){var s=h()(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return f()(this,r)}}var w=function(t){l()(r,t);var e=j(r);function r(t){var n;return s()(this,r),n=e.call(this,t),b()(u()(n),"readPreset",(function(){switch(n.props.preset){case"saturation":case"desaturation":n.saturation();break;case"blurred":case"deblurred":n.blurring();break;case"sepia":n.sepia();break;case"shaking":n.shaking();break;case"scaling":n.scaling()}})),b()(u()(n),"readStyles",(function(){var t=n.state.actualStyle,e=n.state.over,r=n.state.out,s=n.props.in,o=k(k({},t),s),a=n.props.over,i=k(k({},e),a),u=n.props.out,c=k(k({},r),u);n.mixin=!0,n.setState({actualStyle:o,over:i,out:c})})),b()(u()(n),"mouseOver",(function(){n.state.over&&n.setState({actualStyle:n.state.over})})),b()(u()(n),"mouseOut",(function(){n.state.out&&n.setState({actualStyle:n.state.out})})),n.mixin=!1,n.state={actualStyle:{},over:null,out:null},n}return a()(r,[{key:"componentDidMount",value:function(){""!==this.props.preset?this.readPreset():this.readStyles()}},{key:"componentDidUpdate",value:function(){!1===this.mixin&&this.readStyles()}},{key:"saturation",value:function(){var t={filter:"grayscale(0%)",transition:"2s"},e={filter:"grayscale(100%)",transition:"2s"},r=this.props.preset;"saturation"===r?this.setState({over:t,out:e}):"desaturation"===r&&this.setState({over:e,out:t})}},{key:"blurring",value:function(){var t={filter:"blur(6px)",transition:"1.2s"},e={filter:"blur(0px)",transition:"1.2s"},r=this.props.preset;"blurred"===r?this.setState({over:t,out:e}):"deblurred"===r&&this.setState({over:e,out:t})}},{key:"sepia",value:function(){"sepia"===this.props.preset&&this.setState({over:{filter:"sepia(100%)",transition:"1.2s"},out:{filter:"sepia(0%)",transition:"1.2s"}})}},{key:"shaking",value:function(){this.setState({over:{animation:"shake-bottom .5s"}})}},{key:"scaling",value:function(){"scaling"===this.props.preset&&this.setState({over:{transform:"scale(1.03)",transition:"1.2s",transformOrigin:"center center"},out:{transform:"scale(1)",transition:"1.2s"}})}},{key:"render",value:function(){return O.a.createElement("div",{onMouseOut:this.mouseOut,onBlur:this.mouseOut,onMouseOver:this.mouseOver,onFocus:this.mouseOver,style:this.state.actualStyle},this.props.children)}}]),r}(d.Component);w.propTypes={in:S.a.object,over:S.a.object,out:S.a.object,preset:S.a.string},w.defaultProps={in:{},over:{},out:{},preset:""},e.default=w}}]);