(window.webpackJsonp=window.webpackJsonp||[]).push([[146],{983:function(n,e,t){"use strict";t.d(e,"a",(function(){return h}));var r=t(2),o=t(56),a=t(0),c=t.n(a),u=t(263),i=t.n(u),p=function(){};function s(n,e){return void 0!==n[e]}function f(n){return"default"+n.charAt(0).toUpperCase()+n.substr(1)}var l=t(51),v=t(492);function h(n,e,t){void 0===t&&(t=[]);var a,u=n.displayName||n.name||"Component",d=!!(a=n)&&("function"!=typeof a||a.prototype&&a.prototype.isReactComponent),b=Object.keys(e),y=b.map(f);!d&&t.length&&i()(!1);var m=function(a){function u(){for(var n,o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];(n=a.call.apply(a,[this].concat(c))||this).handlers=Object.create(null),b.forEach((function(t){var o=e[t];n.handlers[o]=function(e){if(n.props[o]){var a;n._notifying=!0;for(var c=arguments.length,u=new Array(c>1?c-1:0),i=1;i<c;i++)u[i-1]=arguments[i];(a=n.props)[o].apply(a,[e].concat(u)),n._notifying=!1}n.unmounted||n.setState((function(n){var o,a=n.values;return{values:Object(r.a)(Object.create(null),a,(o={},o[t]=e,o))}}))}})),t.length&&(n.attachRef=function(e){n.inner=e});var i=Object.create(null);return b.forEach((function(e){i[e]=n.props[f(e)]})),n.state={values:i,prevProps:{}},n}Object(l.a)(u,a);var i=u.prototype;return i.shouldComponentUpdate=function(){return!this._notifying},u.getDerivedStateFromProps=function(n,e){var t=e.values,o=e.prevProps,a={values:Object(r.a)(Object.create(null),t),prevProps:{}};return b.forEach((function(e){a.prevProps[e]=n[e],!s(n,e)&&s(o,e)&&(a.values[e]=n[f(e)])})),a},i.componentWillUnmount=function(){this.unmounted=!0},i.render=function(){var e=this,t=this.props,a=t.innerRef,u=Object(o.a)(t,["innerRef"]);y.forEach((function(n){delete u[n]}));var i={};return b.forEach((function(n){var t=e.props[n];i[n]=void 0!==t?t:e.state.values[n]})),c.a.createElement(n,Object(r.a)({},u,i,this.handlers,{ref:a||this.attachRef}))},u}(c.a.Component);Object(v.a)(m),m.displayName="Uncontrolled("+u+")",m.propTypes=Object(r.a)({innerRef:function(){}},function(n,e){var t={};return Object.keys(n).forEach((function(n){t[f(n)]=p})),t}(e)),t.forEach((function(n){m.prototype[n]=function(){var e;return(e=this.inner)[n].apply(e,arguments)}}));var j=m;return c.a.forwardRef&&((j=c.a.forwardRef((function(n,e){return c.a.createElement(m,Object(r.a)({},n,{innerRef:e,__source:{fileName:"/Users/jquense/src/uncontrollable/src/uncontrollable.js",lineNumber:128},__self:this}))}))).propTypes=m.propTypes),j.ControlledComponent=n,j.deferControlTo=function(n,t,o){return void 0===t&&(t={}),h(n,Object(r.a)({},e,t),o)},j}}}]);