redux-form
Version:
A higher order component decorator for forms using Redux and React
2 lines • 75.6 kB
JavaScript
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("react-redux"),require("redux")):"function"==typeof define&&define.amd?define(["react","react-redux","redux"],r):"object"==typeof exports?exports.ReduxForm=r(require("react"),require("react-redux"),require("redux")):e.ReduxForm=r(e.React,e.ReactRedux,e.Redux)}(this,function(e,r,t){return function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}(function(e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))switch(typeof e[r]){case"function":break;case"object":e[r]=function(r){var t=r.slice(1),n=e[r[0]];return function(e,r,o){n.apply(this,[e,r,o].concat(t))}}(e[r]);break;default:e[r]=e[e[r]]}return e}([function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0}),r.values=r.untouch=r.touch=r.SubmissionError=r.stopSubmit=r.stopAsyncValidation=r.startSubmit=r.startAsyncValidation=r.setSubmitSucceeded=r.setSubmitFailed=r.reset=r.reduxForm=r.reducer=r.propTypes=r.isValid=r.isPristine=r.isInvalid=r.isDirty=r.initialize=r.getFormValues=r.formValueSelector=r.focus=r.FieldArray=r.Fields=r.Field=r.destroy=r.change=r.autofill=r.blur=r.arrayUnshift=r.arraySwap=r.arraySplice=r.arrayShift=r.arrayRemoveAll=r.arrayRemove=r.arrayPush=r.arrayPop=r.arrayMove=r.arrayInsert=r.actionTypes=void 0;var o=t(38),i=n(o),u=t(2),a=n(u),s=(0,i["default"])(a["default"]),c=s.actionTypes,f=s.arrayInsert,l=s.arrayMove,p=s.arrayPop,d=s.arrayPush,y=s.arrayRemove,v=s.arrayRemoveAll,m=s.arrayShift,h=s.arraySplice,b=s.arraySwap,_=s.arrayUnshift,g=s.blur,O=s.autofill,E=s.change,S=s.destroy,R=s.Field,P=s.Fields,A=s.FieldArray,j=s.focus,T=s.formValueSelector,x=s.getFormValues,w=s.initialize,F=s.isDirty,I=s.isInvalid,k=s.isPristine,M=s.isValid,C=s.propTypes,V=s.reducer,U=s.reduxForm,N=s.reset,q=s.setSubmitFailed,Y=s.setSubmitSucceeded,D=s.startAsyncValidation,L=s.startSubmit,z=s.stopAsyncValidation,W=s.stopSubmit,B=s.SubmissionError,H=s.touch,G=s.untouch,$=s.values;r.actionTypes=c,r.arrayInsert=f,r.arrayMove=l,r.arrayPop=p,r.arrayPush=d,r.arrayRemove=y,r.arrayRemoveAll=v,r.arrayShift=m,r.arraySplice=h,r.arraySwap=b,r.arrayUnshift=_,r.blur=g,r.autofill=O,r.change=E,r.destroy=S,r.Field=R,r.Fields=P,r.FieldArray=A,r.focus=j,r.formValueSelector=T,r.getFormValues=x,r.initialize=w,r.isDirty=F,r.isInvalid=I,r.isPristine=k,r.isValid=M,r.propTypes=C,r.reducer=V,r.reduxForm=U,r.reset=N,r.setSubmitFailed=q,r.setSubmitSucceeded=Y,r.startAsyncValidation=D,r.startSubmit=L,r.stopAsyncValidation=z,r.stopSubmit=W,r.SubmissionError=B,r.touch=H,r.untouch=G,r.values=$},function(r,t){r.exports=e},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(98),i=n(o),u=t(59),a=n(u),s=t(20),c=n(s),f=t(58),l=n(f),p=t(56),d=n(p),y=t(57),v=n(y),m={empty:{},emptyList:[],getIn:c["default"],setIn:l["default"],deepEqual:d["default"],deleteIn:v["default"],fromJS:function(e){return e},size:function(e){return e?e.length:0},some:i["default"],splice:a["default"]};r["default"]=m},function(e,t){e.exports=r},function(e,r,t){"use strict";var n=function(e,r,t,n,o,i,u,a){if(!e){var s;if(void 0===r)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[t,n,o,i,u,a],f=0;s=Error(r.replace(/%s/g,function(){return c[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=n},function(e,r,t){function n(e,r){for(var t=e.length;t--;)if(o(e[t][0],r))return t;return-1}var o=t(90);e.exports=n},function(e,r,t){function n(e){return u(e)?o(e,c):a(e)?[e]:i(s(e))}var o=t(71),i=t(78),u=t(26),a=t(94),s=t(88),c=t(89);e.exports=n},function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ARRAY_INSERT="redux-form/ARRAY_INSERT",r.ARRAY_MOVE="redux-form/ARRAY_MOVE",r.ARRAY_POP="redux-form/ARRAY_POP",r.ARRAY_PUSH="redux-form/ARRAY_PUSH",r.ARRAY_REMOVE="redux-form/ARRAY_REMOVE",r.ARRAY_REMOVE_ALL="redux-form/ARRAY_REMOVE_ALL",r.ARRAY_SHIFT="redux-form/ARRAY_SHIFT",r.ARRAY_SPLICE="redux-form/ARRAY_SPLICE",r.ARRAY_UNSHIFT="redux-form/ARRAY_UNSHIFT",r.ARRAY_SWAP="redux-form/ARRAY_SWAP",r.AUTOFILL="redux-form/AUTOFILL",r.BLUR="redux-form/BLUR",r.CHANGE="redux-form/CHANGE",r.DESTROY="redux-form/DESTROY",r.FOCUS="redux-form/FOCUS",r.INITIALIZE="redux-form/INITIALIZE",r.REGISTER_FIELD="redux-form/REGISTER_FIELD",r.RESET="redux-form/RESET",r.SET_SUBMIT_FAILED="redux-form/SET_SUBMIT_FAILED",r.SET_SUBMIT_SUCCEEDED="redux-form/SET_SUBMIT_SUCCEEDED",r.START_ASYNC_VALIDATION="redux-form/START_ASYNC_VALIDATION",r.START_SUBMIT="redux-form/START_SUBMIT",r.STOP_ASYNC_VALIDATION="redux-form/STOP_ASYNC_VALIDATION",r.STOP_SUBMIT="redux-form/STOP_SUBMIT",r.TOUCH="redux-form/TOUCH",r.UNREGISTER_FIELD="redux-form/UNREGISTER_FIELD",r.UNTOUCH="redux-form/UNTOUCH",r.UPDATE_SYNC_ERRORS="redux-form/UPDATE_SYNC_ERRORS"},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(49),i=n(o),u=function(e){var r=e.getIn,t=(0,i["default"])(e);return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return r(e,"form")};return function(o){var i=n(o),u=r(i,e+".error");if(u)return!1;var a=r(i,e+".syncErrors"),s=r(i,e+".asyncErrors"),c=r(i,e+".submitErrors");if(!a&&!s&&!c)return!0;var f=r(i,e+".registeredFields")||[];return!f.some(function(e){return t(e,a,s,c)})}}};r["default"]=u},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(100),i=n(o),u=function(e,r,t){return!(0,i["default"])(e.props,r)||!(0,i["default"])(e.state,t)};r["default"]=u},function(e,r){function t(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=t},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function i(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function u(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(r,"__esModule",{value:!0});var a=t(62),s=n(a),c=function(e){function r(e){o(this,r);var t=i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,"Submit Validation Failed"));return t.errors=e,t}return u(r,e),r}(s["default"]);r["default"]=c},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.updateSyncErrors=r.untouch=r.unregisterField=r.touch=r.setSubmitSucceeded=r.setSubmitFailed=r.stopSubmit=r.stopAsyncValidation=r.startSubmit=r.startAsyncValidation=r.reset=r.registerField=r.initialize=r.focus=r.destroy=r.change=r.blur=r.autofill=r.arrayUnshift=r.arraySwap=r.arraySplice=r.arrayShift=r.arrayRemoveAll=r.arrayRemove=r.arrayPush=r.arrayPop=r.arrayMove=r.arrayInsert=void 0;var n=t(7);r.arrayInsert=function(e,r,t,o){return{type:n.ARRAY_INSERT,meta:{form:e,field:r,index:t},payload:o}},r.arrayMove=function(e,r,t,o){return{type:n.ARRAY_MOVE,meta:{form:e,field:r,from:t,to:o}}},r.arrayPop=function(e,r){return{type:n.ARRAY_POP,meta:{form:e,field:r}}},r.arrayPush=function(e,r,t){return{type:n.ARRAY_PUSH,meta:{form:e,field:r},payload:t}},r.arrayRemove=function(e,r,t){return{type:n.ARRAY_REMOVE,meta:{form:e,field:r,index:t}}},r.arrayRemoveAll=function(e,r){return{type:n.ARRAY_REMOVE_ALL,meta:{form:e,field:r}}},r.arrayShift=function(e,r){return{type:n.ARRAY_SHIFT,meta:{form:e,field:r}}},r.arraySplice=function(e,r,t,o,i){var u={type:n.ARRAY_SPLICE,meta:{form:e,field:r,index:t,removeNum:o}};return void 0!==i&&(u.payload=i),u},r.arraySwap=function(e,r,t,o){if(t===o)throw Error("Swap indices cannot be equal");if(0>t||0>o)throw Error("Swap indices cannot be negative");return{type:n.ARRAY_SWAP,meta:{form:e,field:r,indexA:t,indexB:o}}},r.arrayUnshift=function(e,r,t){return{type:n.ARRAY_UNSHIFT,meta:{form:e,field:r},payload:t}},r.autofill=function(e,r,t){return{type:n.AUTOFILL,meta:{form:e,field:r},payload:t}},r.blur=function(e,r,t,o){return{type:n.BLUR,meta:{form:e,field:r,touch:o},payload:t}},r.change=function(e,r,t,o,i){return{type:n.CHANGE,meta:{form:e,field:r,touch:o,persistentSubmitErrors:i},payload:t}},r.destroy=function(e){return{type:n.DESTROY,meta:{form:e}}},r.focus=function(e,r){return{type:n.FOCUS,meta:{form:e,field:r}}},r.initialize=function(e,r,t){return{type:n.INITIALIZE,meta:{form:e,keepDirty:t},payload:r}},r.registerField=function(e,r,t){return{type:n.REGISTER_FIELD,meta:{form:e},payload:{name:r,type:t}}},r.reset=function(e){return{type:n.RESET,meta:{form:e}}},r.startAsyncValidation=function(e,r){return{type:n.START_ASYNC_VALIDATION,meta:{form:e,field:r}}},r.startSubmit=function(e){return{type:n.START_SUBMIT,meta:{form:e}}},r.stopAsyncValidation=function(e,r){var t={type:n.STOP_ASYNC_VALIDATION,meta:{form:e},payload:r};return r&&Object.keys(r).length&&(t.error=!0),t},r.stopSubmit=function(e,r){var t={type:n.STOP_SUBMIT,meta:{form:e},payload:r};return r&&Object.keys(r).length&&(t.error=!0),t},r.setSubmitFailed=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),o=1;r>o;o++)t[o-1]=arguments[o];return{type:n.SET_SUBMIT_FAILED,meta:{form:e,fields:t},error:!0}},r.setSubmitSucceeded=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),o=1;r>o;o++)t[o-1]=arguments[o];return{type:n.SET_SUBMIT_SUCCEEDED,meta:{form:e,fields:t},error:!1}},r.touch=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),o=1;r>o;o++)t[o-1]=arguments[o];return{type:n.TOUCH,meta:{form:e,fields:t}}},r.unregisterField=function(e,r){return{type:n.UNREGISTER_FIELD,meta:{form:e},payload:{name:r}}},r.untouch=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),o=1;r>o;o++)t[o-1]=arguments[o];return{type:n.UNTOUCH,meta:{form:e,fields:t}}},r.updateSyncErrors=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments[2];return{type:n.UPDATE_SYNC_ERRORS,meta:{form:e},payload:{syncErrors:r,error:t}}}},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,r){var t={};for(var n in e)r.indexOf(n)<0&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}Object.defineProperty(r,"__esModule",{value:!0});var i=t(97),u=n(i),a=Object.assign||function(e){for(var r=1;arguments.length>r;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s=t(42),c=n(s),f=t(43),l=n(f),p=t(14),d=n(p),y=t(44),v=n(y),m=t(45),h=n(m),b=function(e,r,t){var n=r.value;return"checkbox"===e?a({},r,{checked:!!n}):"radio"===e?a({},r,{checked:n===t,value:t}):"select-multiple"===e?a({},r,{value:n||[]}):"file"===e?a({},r,{value:void 0}):r},_=function(e,r,t){var n=t.asyncError,i=t.asyncValidating,s=t.blur,f=t.change,p=t.dirty,y=t.dispatch,m=t.focus,_=t.format,g=t.normalize,O=t.parse,E=t.pristine,S=t.props,R=t.state,P=t.submitError,A=t.submitting,j=t.value,T=t._value,x=t.syncError,w=o(t,["asyncError","asyncValidating","blur","change","dirty","dispatch","focus","format","normalize","parse","pristine","props","state","submitError","submitting","value","_value","syncError"]),F=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u["default"],I=x||n||P,k=g&&function(e){return g(r,e)},M=function(e){return y(f(r,e))},C=(0,l["default"])(M,{normalize:k,parse:O}),V=null==j?"":j;return{input:b(w.type,{name:r,onBlur:(0,c["default"])(function(e){return y(s(r,e))},{normalize:k,parse:O,after:F.bind(null,r)}),onChange:C,onDragStart:(0,d["default"])(r,V),onDrop:(0,v["default"])(r,M),onFocus:(0,h["default"])(r,function(){return y(m(r))}),value:_?_(V):V},T),meta:a({},R,{active:!(!R||!e(R,"active")),asyncValidating:i,autofilled:!(!R||!e(R,"autofilled")),dirty:p,dispatch:y,error:I,invalid:!!I,pristine:E,submitting:!!A,touched:!(!R||!e(R,"touched")),valid:!I,visited:!(!R||!e(R,"visited"))}),custom:a({},w,S)}};r["default"]=_},function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=r.dataKey="text",n=function(e,r){return function(e){e.dataTransfer.setData(t,r)}};r["default"]=n},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(16),i=n(o),u=function(e){var r=[];if(e)for(var t=0;e.length>t;t++){var n=e[t];n.selected&&r.push(n.value)}return r},a=function(e,r){if((0,i["default"])(e)){if(!r&&e.nativeEvent&&void 0!==e.nativeEvent.text)return e.nativeEvent.text;if(r&&void 0!==e.nativeEvent)return e.nativeEvent.text;var t=e.target,n=t.type,o=t.value,a=t.checked,s=t.files,c=e.dataTransfer;return"checkbox"===n?a:"file"===n?s||c&&c.files:"select-multiple"===n?u(e.target.options):""===o||"number"!==n&&"range"!==n?o:parseFloat(o)}return e};r["default"]=a},function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)};r["default"]=t},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(16),i=n(o),u=function(e){var r=(0,i["default"])(e);return r&&e.preventDefault(),r};r["default"]=u},function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t="undefined"!=typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product;r["default"]=t},function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=function(e){var r=e.deepEqual,t=e.empty,n=e.getIn;return function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return n(e,"form")};return function(i){var u=o(i),a=n(u,e+".initial")||t,s=n(u,e+".values")||a;return r(a,s)}}};r["default"]=t},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(6),i=n(o),u=function(e,r){if(!e)return e;var t=(0,i["default"])(r),n=t.length;if(n){for(var o=e,u=0;n>u&&o;++u)o=o[t[u]];return o}};r["default"]=u},function(e,r){function t(){this.__data__=[]}e.exports=t},function(e,r,t){function n(e){var r=this.__data__,t=o(r,e);if(0>t)return!1;var n=r.length-1;return t==n?r.pop():u.call(r,t,1),!0}var o=t(5),i=Array.prototype,u=i.splice;e.exports=n},function(e,r,t){function n(e){var r=this.__data__,t=o(r,e);return 0>t?void 0:r[t][1]}var o=t(5);e.exports=n},function(e,r,t){function n(e){return o(this.__data__,e)>-1}var o=t(5);e.exports=n},function(e,r,t){function n(e,r){var t=this.__data__,n=o(t,e);return 0>n?t.push([e,r]):t[n][1]=r,this}var o=t(5);e.exports=n},function(e,r){var t=Array.isArray;e.exports=t},function(e,r,t){var n=t(85),o=n(Object.keys,Object);e.exports=o},function(e,r,t){function n(e,r){var t={};return r=i(r,3),o(e,function(e,n,o){t[n]=r(e,n,o)}),t}var o=t(74),i=t(77);e.exports=n},function(e,r){e.exports=t},function(e,r){e.exports=function(){Array.prototype.findIndex||(Array.prototype.findIndex=function(e){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r,t=Object(this),n=t.length>>>0,o=arguments[1],i=0;n>i;i++)if(r=t[i],e.call(o,r,i,t))return i;return-1})}()},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,r){var t={};for(var n in e)r.indexOf(n)<0&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function i(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function u(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function a(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(r,"__esModule",{value:!0});var s=Object.assign||function(e){for(var r=1;arguments.length>r;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},c=function(){function e(e,r){for(var t=0;r.length>t;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),f=t(1),l=t(3),p=t(13),d=n(p),y=t(2),v=n(y),m=["_reduxForm"],h=function(e){var r=e.deepEqual,t=e.getIn,n=function(e,r){var t=v["default"].getIn(e,r);return t&&t._error?t._error:t},p=function(e){function n(){return i(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,e),c(n,[{key:"shouldComponentUpdate",value:function(e){var t=this,n=Object.keys(e),o=Object.keys(this.props);return n.length==o.length&&n.some(function(n){return!~m.indexOf(n)&&!r(t.props[n],e[n])})}},{key:"isPristine",value:function(){return this.props.pristine}},{key:"getValue",value:function(){return this.props.value}},{key:"getRenderedComponent",value:function(){return this.refs.renderedComponent}},{key:"render",value:function(){var e=this.props,r=e.component,n=e.withRef,i=e.name,u=e._reduxForm,a=o(e,["component","withRef","name","_reduxForm"]),c=u.asyncValidate,l=u.blur,p=u.change,y=u.focus,v=(0,d["default"])(t,i,s({},a,{name:i,blur:l,change:p,focus:y}),c),m=v.custom,h=o(v,["custom"]);if(n&&(h.ref="renderedComponent"),"string"==typeof r){var b=h.input;return(0,f.createElement)(r,s({},b,m))}return(0,f.createElement)(r,s({},h,m))}}]),n}(f.Component);p.propTypes={component:f.PropTypes.oneOfType([f.PropTypes.func,f.PropTypes.string]).isRequired,props:f.PropTypes.object};var y=(0,l.connect)(function(e,r){var o=r.name,i=r._reduxForm,u=i.initialValues,a=i.getFormState,s=a(e),c=t(s,"initial."+o),f=void 0!==c?c:u&&t(u,o),l=t(s,"values."+o),p=t(s,"submitting"),d=n(t(s,"syncErrors"),o),y=l===f;return{asyncError:t(s,"asyncErrors."+o),asyncValidating:t(s,"asyncValidating")===o,dirty:!y,pristine:y,state:t(s,"fields."+o),submitError:t(s,"submitErrors."+o),submitting:p,syncError:d,value:l,_value:r.value}},void 0,void 0,{withRef:!0});return y(p)};r["default"]=h},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,r){var t={};for(var n in e)r.indexOf(n)<0&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function i(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function u(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function a(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(r,"__esModule",{value:!0});var s=t(28),c=n(s),f=function(){function e(e,r){for(var t=0;r.length>t;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),l=t(1),p=t(3),d=t(29),y=t(39),v=n(y),m=t(2),h=n(m),b=["_reduxForm","value"],_=function(e){var r=e.deepEqual,t=e.getIn,n=e.size,s=function(e,r){return h["default"].getIn(e,r+"._error")},y=function(e){function n(){return i(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,e),f(n,[{key:"shouldComponentUpdate",value:function(e){var t=this,n=Object.keys(e),o=Object.keys(this.props);return n.length==o.length&&n.some(function(n){return!~b.indexOf(n)&&!r(t.props[n],e[n])})}},{key:"getRenderedComponent",value:function(){return this.refs.renderedComponent}},{key:"render",value:function(){var e=this.props,r=e.component,n=e.withRef,i=e.name,u=o(e,["component","withRef","name","_reduxForm"]),a=(0,v["default"])(t,i,u);return n&&(a.ref="renderedComponent"),(0,l.createElement)(r,a)}},{key:"dirty",get:function(){return this.props.dirty}},{key:"pristine",get:function(){return this.props.pristine}},{key:"value",get:function(){return this.props.value}}]),n}(l.Component);y.propTypes={component:l.PropTypes.oneOfType([l.PropTypes.func,l.PropTypes.string]).isRequired,props:l.PropTypes.object},y.contextTypes={_reduxForm:l.PropTypes.object};var m=(0,p.connect)(function(e,o){var i=o.name,u=o._reduxForm,a=u.initialValues,c=u.getFormState,f=c(e),l=t(f,"initial."+i)||a&&t(a,i),p=t(f,"values."+i),d=t(f,"submitting"),y=s(t(f,"syncErrors"),i),v=r(p,l);return{asyncError:t(f,"asyncErrors."+i+"._error"),dirty:!v,pristine:v,state:t(f,"fields."+i),submitError:t(f,"submitErrors."+i+"._error"),submitting:d,syncError:y,value:p,length:n(p)}},function(e,r){var t=r.name,n=r._reduxForm,o=n.arrayInsert,i=n.arrayMove,u=n.arrayPop,a=n.arrayPush,s=n.arrayRemove,f=n.arrayRemoveAll,l=n.arrayShift,p=n.arraySplice,y=n.arraySwap,v=n.arrayUnshift;return(0,c["default"])({arrayInsert:o,arrayMove:i,arrayPop:u,arrayPush:a,arrayRemove:s,arrayRemoveAll:f,arrayShift:l,arraySplice:p,arraySwap:y,arrayUnshift:v},function(r){return(0,d.bindActionCreators)(r.bind(null,t),e)})},void 0,{withRef:!0});return m(y)};r["default"]=_},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,r){var t={};for(var n in e)r.indexOf(n)<0&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function i(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function u(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function a(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(r,"__esModule",{value:!0});var s=Object.assign||function(e){for(var r=1;arguments.length>r;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},c=function(){function e(e,r){for(var t=0;r.length>t;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),f=t(1),l=t(3),p=t(13),d=n(p),y=t(2),v=n(y),m=["_reduxForm"],h=function(e){var r=e.deepEqual,t=e.getIn,n=function(e,r){var t=v["default"].getIn(e,r);return t&&t._error?t._error:t},p=function(e){function n(){return i(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,e),c(n,[{key:"shouldComponentUpdate",value:function(e){var t=this,n=Object.keys(e),o=Object.keys(this.props);return n.length==o.length&&n.some(function(n){return!~m.indexOf(n)&&!r(t.props[n],e[n])})}},{key:"isDirty",value:function(){var e=this.props._fields;return Object.keys(e).some(function(r){return e[r].dirty})}},{key:"getValues",value:function(){var e=this.props._fields;return Object.keys(e).reduce(function(r,t){return v["default"].setIn(r,t,e[t].value)},{})}},{key:"getRenderedComponent",value:function(){return this.refs.renderedComponent}},{key:"render",value:function(){var e=this.props,r=e.component,n=e.withRef,i=e._fields,u=e._reduxForm,a=o(e,["component","withRef","_fields","_reduxForm"]),c=u.asyncValidate,l=u.blur,p=u.change,y=u.focus,m=Object.keys(i).reduce(function(e,r){var n=i[r],u=(0,d["default"])(t,r,s({},n,a,{blur:l,change:p,focus:y}),c),f=u.custom,m=o(u,["custom"]);return e.custom=f,v["default"].setIn(e,r,m)},{}),h=m.custom,b=o(m,["custom"]);return n&&(b.ref="renderedComponent"),(0,f.createElement)(r,s({},b,h))}}]),n}(f.Component);p.propTypes={component:f.PropTypes.oneOfType([f.PropTypes.func,f.PropTypes.string]).isRequired,_fields:f.PropTypes.object.isRequired,props:f.PropTypes.object};var y=(0,l.connect)(function(e,r){var o=r.names,i=r._reduxForm,u=i.initialValues,a=i.getFormState,s=a(e);return{_fields:o.reduce(function(e,o){var i=t(s,"initial."+o),a=void 0!==i?i:u&&t(u,o),c=t(s,"values."+o),f=n(t(s,"syncErrors"),o),l=t(s,"submitting"),p=c===a;return e[o]={asyncError:t(s,"asyncErrors."+o),asyncValidating:t(s,"asyncValidating")===o,dirty:!p,pristine:p,state:t(s,"fields."+o),submitError:t(s,"submitErrors."+o),submitting:l,syncError:f,value:c,_value:r.value},e},{})}},void 0,void 0,{withRef:!0});return y(p)};r["default"]=h},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function i(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function u(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(e){for(var r=1;arguments.length>r;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s=function(){function e(e,r){for(var t=0;r.length>t;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),c=t(1),f=t(4),l=n(f),p=t(31),d=n(p),y=t(9),v=n(y),m=function(e){var r=e.deepEqual,t=e.getIn,n=e.setIn,f=(0,d["default"])({deepEqual:r,getIn:t}),p=function(e){function r(e,t){o(this,r);var n=i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(!t._reduxForm)throw Error("Field must be inside a component decorated with reduxForm()");return n.normalize=n.normalize.bind(n),n}return u(r,e),s(r,[{key:"shouldComponentUpdate",value:function(e,r){return(0,v["default"])(this,e,r)}},{key:"componentWillMount",value:function(){this.context._reduxForm.register(this.name,"Field")}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&(this.context._reduxForm.unregister(this.props.name),this.context._reduxForm.register(e.name,"Field"))}},{key:"componentWillUnmount",value:function(){this.context._reduxForm.unregister(this.name)}},{key:"getRenderedComponent",value:function(){return(0,l["default"])(this.props.withRef,"If you want to access getRenderedComponent(), you must specify a withRef prop to Field"),this.refs.connected.getWrappedInstance().getRenderedComponent()}},{key:"normalize",value:function t(e,r){var t=this.props.normalize;if(!t)return r;var o=this.context._reduxForm.getValues(),i=this.value,u=n(o,e,r);return t(r,i,u,o)}},{key:"render",value:function(){return(0,c.createElement)(f,a({},this.props,{normalize:this.normalize,_reduxForm:this.context._reduxForm,ref:"connected"}))}},{key:"name",get:function(){return this.props.name}},{key:"dirty",get:function(){return!this.pristine}},{key:"pristine",get:function(){return this.refs.connected.getWrappedInstance().isPristine()}},{key:"value",get:function(){return this.refs.connected&&this.refs.connected.getWrappedInstance().getValue()}}]),r}(c.Component);return p.propTypes={name:c.PropTypes.string.isRequired,component:c.PropTypes.oneOfType([c.PropTypes.func,c.PropTypes.string]).isRequired,format:c.PropTypes.func,normalize:c.PropTypes.func,parse:c.PropTypes.func,props:c.PropTypes.object},p.contextTypes={_reduxForm:c.PropTypes.object},p};r["default"]=m},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function i(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function u(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(e){for(var r=1;arguments.length>r;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s=function(){function e(e,r){for(var t=0;r.length>t;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),c=t(1),f=t(4),l=n(f),p=t(32),d=n(p),y=t(9),v=n(y),m=function(e){var r=e.deepEqual,t=e.getIn,n=e.size,f=(0,d["default"])({deepEqual:r,getIn:t,size:n}),p=function(e){function r(e,t){o(this,r);var n=i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(!t._reduxForm)throw Error("FieldArray must be inside a component decorated with reduxForm()");return n}return u(r,e),s(r,[{key:"shouldComponentUpdate",value:function(e,r){return(0,v["default"])(this,e,r)}},{key:"componentWillMount",value:function(){this.context._reduxForm.register(this.name,"FieldArray")}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&(this.context._reduxForm.unregister(this.props.name),this.context._reduxForm.register(e.name,"FieldArray"))}},{key:"componentWillUnmount",value:function(){this.context._reduxForm.unregister(this.name)}},{key:"getRenderedComponent",value:function(){return(0,l["default"])(this.props.withRef,"If you want to access getRenderedComponent(), you must specify a withRef prop to FieldArray"),this.refs.connected.getWrappedInstance().getRenderedComponent()}},{key:"render",value:function(){return(0,c.createElement)(f,a({},this.props,{syncError:this.syncError,_reduxForm:this.context._reduxForm,ref:"connected"}))}},{key:"name",get:function(){return this.props.name}},{key:"dirty",get:function(){return this.refs.connected.getWrappedInstance().dirty}},{key:"pristine",get:function(){return this.refs.connected.getWrappedInstance().pristine}},{key:"value",get:function(){return this.refs.connected.getWrappedInstance().value}}]),r}(c.Component);return p.propTypes={name:c.PropTypes.string.isRequired,component:c.PropTypes.func.isRequired,props:c.PropTypes.object},p.contextTypes={_reduxForm:c.PropTypes.object},p};r["default"]=m},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function i(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function u(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(e){for(var r=1;arguments.length>r;r++){var t=arguments[r];
for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s=function(){function e(e,r){for(var t=0;r.length>t;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),c=t(1),f=t(4),l=n(f),p=t(33),d=n(p),y=t(9),v=n(y),m=t(2),h=n(m),b=function(e){return e?Array.isArray(e)||e._isFieldArray?void 0:Error('Invalid prop "names" supplied to <Fields/>. Must be either an array of strings or the fields array generated by FieldArray.'):Error('No "names" prop was specified <Fields/>')},_=function(e){var r=e.deepEqual,t=e.getIn,n=(0,d["default"])({deepEqual:r,getIn:t}),f=function(e){function r(e,t){o(this,r);var n=i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(!t._reduxForm)throw Error("Fields must be inside a component decorated with reduxForm()");return n}return u(r,e),s(r,[{key:"shouldComponentUpdate",value:function(e,r){return(0,v["default"])(this,e,r)}},{key:"componentWillMount",value:function(){var e=b(this.props.names);if(e)throw e;var r=this.context._reduxForm.register;this.names.forEach(function(e){return r(e,"Field")})}},{key:"componentWillReceiveProps",value:function(e){var r=this;h["default"].deepEqual(this.props.names,e.names)||!function(){var t=r.context._reduxForm,n=t.register,o=t.unregister;r.props.names.forEach(o),e.names.forEach(function(e){return n(e,"Field")})}()}},{key:"componentWillUnmount",value:function(){this.names.forEach(this.context._reduxForm.unregister)}},{key:"getRenderedComponent",value:function(){return(0,l["default"])(this.props.withRef,"If you want to access getRenderedComponent(), you must specify a withRef prop to Fields"),this.refs.connected.getWrappedInstance().getRenderedComponent()}},{key:"render",value:function(){return(0,c.createElement)(n,a({},this.props,{_reduxForm:this.context._reduxForm,ref:"connected"}))}},{key:"names",get:function(){return this.props.names}},{key:"dirty",get:function(){return this.refs.connected.getWrappedInstance().isDirty()}},{key:"pristine",get:function(){return!this.dirty}},{key:"values",get:function(){return this.refs.connected&&this.refs.connected.getWrappedInstance().getValues()}}]),r}(c.Component);return f.propTypes={names:function(e,r){return b(e[r])},component:c.PropTypes.oneOfType([c.PropTypes.func,c.PropTypes.string]).isRequired,format:c.PropTypes.func,parse:c.PropTypes.func,props:c.PropTypes.object},f.contextTypes={_reduxForm:c.PropTypes.object},f};r["default"]=_},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(10),i=n(o),u=function(e,r,t,n){r(n);var o=e();if(!(0,i["default"])(o))throw Error("asyncValidate function passed to reduxForm must return a promise");var u=function(e){return function(r){if(r&&Object.keys(r).length)return t(r),Promise.reject(r);if(e)throw t(),Error("Asynchronous validation promise was rejected without errors.");return t(),Promise.resolve()}};return o.then(u(!1),u(!0))};r["default"]=u},function(e,r,t){"use strict";function n(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r["default"]=e,r}function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(e){for(var r=1;arguments.length>r;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},u=t(51),a=o(u),s=t(52),c=o(s),f=t(34),l=o(f),p=t(36),d=o(p),y=t(35),v=o(y),m=t(47),h=o(m),b=t(61),_=o(b),g=t(53),O=o(g),E=t(54),S=o(E),R=t(55),P=o(R),A=t(19),j=o(A),T=t(8),x=o(T),w=t(11),F=o(w),I=t(50),k=o(I),M=t(12),C=n(M),V=t(7),U=n(V),N=function(e){return i({actionTypes:U},C,{Field:(0,l["default"])(e),Fields:(0,d["default"])(e),FieldArray:(0,v["default"])(e),formValueSelector:(0,h["default"])(e),getFormValues:(0,O["default"])(e),isDirty:(0,S["default"])(e),isInvalid:(0,P["default"])(e),isPristine:(0,j["default"])(e),isValid:(0,x["default"])(e),propTypes:k["default"],reduxForm:(0,c["default"])(e),reducer:(0,a["default"])(e),SubmissionError:F["default"],values:(0,_["default"])(e)})};r["default"]=N},function(e,r){"use strict";function t(e,r){var t={};for(var n in e)r.indexOf(n)<0&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var r=1;arguments.length>r;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o=function(e,r,o){var i=o.arrayInsert,u=o.arrayMove,a=o.arrayPop,s=o.arrayPush,c=o.arrayRemove,f=o.arrayRemoveAll,l=o.arrayShift,p=o.arraySwap,d=o.arrayUnshift,y=o.asyncError,v=o.dirty,m=o.length,h=o.pristine,b=o.submitError,_=o.state,g=o.submitting,O=o.syncError,E=o.value,S=o.props,R=t(o,["arrayInsert","arrayMove","arrayPop","arrayPush","arrayRemove","arrayRemoveAll","arrayShift","arraySplice","arraySwap","arrayUnshift","asyncError","dirty","length","pristine","submitError","state","submitFailed","submitting","syncError","value","props"]),P=O||y||b;return n({fields:{_isFieldArray:!0,forEach:function(e){return(E||[]).forEach(function(t,n){return e(r+"["+n+"]",n)})},insert:i,length:m,map:function(e){return(E||[]).map(function(t,n){return e(r+"["+n+"]",n)})},move:u,pop:function(){return a(),e(E,m-1)},push:s,reduce:function(e,t){return(E||[]).reduce(function(t,n,o){return e(t,r+"["+o+"]",o)},t)},remove:c,removeAll:f,shift:function(){return l(),e(E,0)},swap:p,unshift:d},meta:{dirty:v,error:P,invalid:!!P,pristine:h,submitting:g,touched:!(!_||!e(_,"touched")),valid:!P}},S,R)};r["default"]=o},function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=function(e){var r=e.initialized,t=e.trigger,n=e.pristine,o=e.syncValidationPasses;if(!o)return!1;switch(t){case"blur":return!0;case"submit":return!n||!r;default:return!1}};r["default"]=t},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(6),i=n(o),u=function(e){var r=e.deepEqual,t=e.empty,n=e.getIn,o=e.deleteIn,u=e.setIn,a=function s(e,a){if("]"===a[a.length-1]){var c=(0,i["default"])(a);c.pop();var f=n(e,c.join("."));return f?u(e,a,void 0):e}var l=o(e,a),p=a.lastIndexOf(".");if(p>0){var d=a.substring(0,p);if("]"!==d[d.length-1]){var y=n(l,d);if(r(y,t))return s(l,d)}}return l};return a};r["default"]=u},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(15),i=n(o),u=t(18),a=n(u),s=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r.after,n=r.normalize,o=r.parse;return function(r){var u=(0,i["default"])(r,a["default"]);o&&(u=o(u)),n&&(u=n(u)),e(u),t&&t(u)}};r["default"]=s},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(15),i=n(o),u=t(18),a=n(u),s=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r.parse,n=r.normalize;return function(r){var o=(0,i["default"])(r,a["default"]);t&&(o=t(o)),n&&(o=n(o)),e(o)}};r["default"]=s},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(14),o=function(e,r){return function(e){r(e.dataTransfer.getData(n.dataKey)),e.preventDefault()}};r["default"]=o},function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=function(e,r){return function(){return r(e)}};r["default"]=t},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(17),i=n(o),u=function(e){return function(r){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return(0,i["default"])(r)?e.apply(void 0,n):e.apply(void 0,[r].concat(n))}};r["default"]=u},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(4),i=n(o),u=t(2),a=n(u),s=function(e){var r=e.getIn;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return r(e,"form")};return(0,i["default"])(e,"Form value must be specified"),function(n){for(var o=arguments.length,u=Array(o>1?o-1:0),s=1;o>s;s++)u[s-1]=arguments[s];return(0,i["default"])(u.length,"No fields specified"),1===u.length?r(t(n),e+".values."+u[0]):u.reduce(function(o,i){var u=r(t(n),e+".values."+i);return void 0===u?o:a["default"].setIn(o,i,u)},{})}}};r["default"]=s},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);e.length>r;r++)t[r]=e[r];return t}return Array.from(e)}Object.defineProperty(r,"__esModule",{value:!0});var i=t(10),u=n(i),a=t(11),s=n(a),c=function(e,r,t,n,i){var a=r.dispatch,c=r.onSubmitFail,f=r.onSubmitSuccess,l=r.startSubmit,p=r.stopSubmit,d=r.setSubmitFailed,y=r.setSubmitSucceeded,v=r.syncErrors,m=r.touch,h=r.values,b=r.persistentSubmitErrors;if(m.apply(void 0,o(i)),t||b){var _=function(){var t=void 0;try{t=e(h,a,r)}catch(n){var v=n instanceof s["default"]?n.errors:void 0;return d.apply(void 0,o(i)),c&&c(v,a),v}return(0,u["default"])(t)?(l(),t.then(function(e){return p(),y(),f&&f(e,a),e},function(e){var r=e instanceof s["default"]?e.errors:void 0;return p(r),d.apply(void 0,o(i)),c&&c(r,a),r})):(y(),f&&f(t,a),t)},g=n&&n();return g?g.then(_,function(e){return d.apply(void 0,o(i)),c&&c(e,a),Promise.reject(e)}):_()}return d.apply(void 0,o(i)),c&&c(v,a),v};r["default"]=c},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var o=t(20),i=n(o),u=function(e,r){switch(r){case"Field":return[e,e+"._error"];case"FieldArray":return[e+"._error"]}},a=function(e){var r=e.getIn,t=function(e,t,n,o){if(!t&&!n&&!o)return!1;var a=r(e,"name"),s=r(e,"type");return u(a,s).some(function(e){return(0,i["default"])(t,e)||r(n,e)||r(o,e)})};return t};r["default"]=a},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(1),o=n.PropTypes.any,i=n.PropTypes.bool,u=n.PropTypes.func,a=n.PropTypes.shape,s={asyncValidating:i.isRequired,dirty:i.isRequired,error:o,invalid:i.isRequired,initialized:i.isRequired,pristine:i.isRequired,submitting:i.isRequired,submitFailed:i.isRequired,submitSucceeded:i.isRequired,valid:i.isRequired,array:a({insert:u.isRequired,move:u.isRequired,pop:u.isRequired,push:u.isRequired,remove:u.isRequired,removeAll:u.isRequired,shift:u.isRequired,splice:u.isRequired,swap:u.isRequired,unshift:u.isRequired}),asyncValidate:u.isRequired,blur:u.isRequired,change:u.isRequired,destroy:u.isRequired,dispatch:u.isRequired,handleSubmit:u.isRequired,initialize:u.isRequired,reset:u.isRequired,touch:u.isRequired,untouch:u.isRequired};r["default"]=s},function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(e,r){var t={};for(var n in e)r.indexOf(n)<0&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}Object.defineProperty(r,"__esModule",{value:!0});var u=t(7);t(30);var a=t(41),s=n(a),c=function(e){function r(e){return e.plugin=function(e){var t=this;return r(function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(r,t){var o=c(r,t),i=e[t](o,n);return i===o?r:f(r,t,i)},t(r,n))})},e}var t,n=e.deepEqual,a=e.empty,c=e.getIn,f=e.setIn,l=e.deleteIn,p=e.fromJS,d=e.size,y=e.some,v=e.splice,m=(0,s["default"])(e),h=function(e,r,t,n,o,i,u){var a=c(e,r+"."+t);return a||u?f(e,r+"."+t,v(a,n,o,i)):e},b=["values","fields","submitErrors","asyncErrors"],_=function(e,r,t,n,o){var i=e,u=null!=o?a:void 0;return i=h(i,"values",r,t,n,o,!0),i=h(i,"fields",r,t,n,u),i=h(i,"submitErrors",r,t,n,u),i=h(i,"asyncErrors",r,t,n,u)},g=(t={},o(t,u.ARRAY_INSERT,function(e,r){var t=r.meta,n=t.field,o=t.index,i=r.payload;return _(e,n,o,0,i)}),o(t,u.ARRAY_MOVE,function(e,r){var t=r.meta,n=t.field,o=t.from,i=t.to,u=c(e,"values."+n),a=u?d(u):0,s=e;return a&&b.forEach(function(e){var r=e+"."+n;if(c(s,r)){var t=c(s,r+"["+o+"]");s=f(s,r,v(c(s,r),o,1)),s=f(s,r,v(c(s,r),i,0,t))}}),s}),o(t,u.ARRAY_POP,function(e,r){var t=r.meta.field,n=c(e,"values."+t),o=n?d(n):0;return o?_(e,t,o-1,1):e}),o(t,u.ARRAY_PUSH,function(e,r){var t=r.meta.field,n=r.payload,o=c(e,"values."+t),i=o?d(o):0;return _(e,t,i,0,n)}),o(t,u.ARRAY_REMOVE,function(e,r){var t=r.meta,n=t.field,o=t.index;return _(e,n,o,1)}),o(t,u.ARRAY_REMOVE_ALL,function(e,r){var t=r.meta.field,n=c(e,"values."+t),o=n?d(n):0;return o?_(e,t,0,o):e}),o(t,u.ARRAY_SHIFT,function(e,r){var t=r.meta.field;return _(e,t,0,1)}),o(t,u.ARRAY_SPLICE,function(e,r){var t=r.meta,n=t.field,o=t.index,i=t.removeNum,u=r.payload;return _(e,n,o,i,u)}),o(t,u.ARRAY_SWAP,function(e,r){var t=r.meta,n=t.field,o=t.indexA,i=t.indexB,u=e;return b.forEach(function(e){var r=c(u,e+"."+n+"["+o+"]"),t=c(u,e+"."+n+"["+i+"]");void 0===r&&void 0===t||(u=f(u,e+"."+n+"["+o+"]",t),u=f(u,e+"."+n+"["+i+"]",r))}),u}),o(t,u.ARRAY_UNSHIFT,function(e,r){var t=r.meta.field,n=r.payload;return _(e,t,0,0,n)}),o(t,u.AUTOFILL,function(e,r){var t=r.meta.field,n=r.payload,o=e;return o=m(o,"asyncErrors."+t),o=m(o,"submitErrors."+t),o=f(o,"fields."+t+".autofilled",!0),o=f(o,"values."+t,n)}),o(t,u.BLUR,function(e,r){var t=r.meta,n=t.field,o=t.touch,i=r.payload,u=e,a=c(u,"initial."+n);return void 0===a&&""===i?u=m(u,"values."+n):void 0!==i&&(u=f(u,"values."+n,i)),n===c(u,"active")&&(u=l(u,"active")),u=l(u,"fields."+n+".active"),o&&(u=f(u,"fields."+n+".touched",!0),u=f(u,"anyTouched",!0)),u}),o(t,u.CHANGE,function(e,r){var t=r.meta,n=t.field,o=t.touch,i=t.persistentSubmitErrors,u=r.payload,a=e,s=c(a,"initial."+n);return void 0===s&&""===u?a=m(a,"values."+n):void 0!==u&&(a=f(a,"values."+n,u)),a=m(a,"asyncErrors."+n),i||(a=m(a,"submitErrors."+n)),a=m(a,"fields."+n+".autofilled"),i||(a=m(a,"error")),o&&(a=f(a,"fields."+n+".touched",!0),a=f(a,"anyTouched",!0)),a}),o(t,u.FOCUS,function(e,r){var t=r.meta.field,n=e,o=c(e,"active");return n=l(n,"fields."+o+".active"),n=f(n,"fields."+t+".visited",!0),n=f(n,"fields."+t+".active",!0),n=f(n,"active",t)}),o(t,u.INITIALIZE,function(e,r){var t=r.payload,o=r.meta.keepDirty,i=p(t),u=a,s=c(e,"registeredFields");s&&(u=f(u,"registeredFields",s));var l=i;return o&&s&&!function(){var r=c(e,"values"),t=c(e,"initial");s.forEach(function(e){var o=e.name,i=c(t,o),u=c(r,o);n(u,i)||(l=f(l,o,u))})}(),u=f(u,"values",l),u=f(u,"initial",i)}),o(t,u.REGISTER_FIELD,function(e,r){var t=r.payload,n=t.name,o=t.type,i=e,u=c(i,"registeredFields");if(y(u,function(e){return c(e,"name")===n}))return e;var a=p({name:n,type:o});return i=f(e,"registeredFields",v(u,d(u),0,a))}),o(t,u.RESET,function(e){var r=a,t=c(e,"registeredFields");t&&(r=f(r,"registeredFields",t));var n=c(e,"initial");return n&&(r=f(r,"values",n),r=f(r,"initial",n)),r}),o(t,u.START_ASYNC_VALIDATION,function(e,r){var t=r.meta.field;return f(e,"asyncValidating",t||!0)}),o(t,u.START_SUBMIT,function(e){return f(e,"submitting",!0)}),o(t,u.STOP_ASYNC_VALIDATION,function(e,r){var t=r.payload,n=e;if(n=l(n,"asyncValidating"),t&&Object.keys(t).length){var o=t._error,u=i(t,["_error"]);o&&(n=f(n,"error",o)),n=Object.keys(u).length?f(n,"asyncErrors",p(u)):l(n,"asyncErrors")}else n=l(n,"error"),n=l(n,"asyncErrors");return n}),o(t,u.STOP_SUBMIT,function(e,r){var t=r.payload,n=e;if(n=l(n,"submitting"),n=l(n,"submitFailed"),n=l(n,"submitSucceeded"),t&&Object.keys(t).length){var o=t._error,u=i(t,["_error"]);n=o?f(n,"error",o):l(n,"error"),n=Object.keys(u).length?f(n,"submitErrors",p(u)):l(n,"submitErrors"),n=f(n,"submitFailed",!0)}else n=f(n,"submitSucceeded",!0),n=l(n,"error"),n=l(n,"submitErrors");return n}),o(t,u.SET_SUBMIT_FAILED,function(e,r){var t=r.meta.fields,n=e;return n=f(n,"submitFailed",!0),n=l(n,"submitSucceeded"),n=l(n,"submitting"),t.forEach(function(e){return n=f(n,"fields."+e+".touched",!0)}),t.length&&(n=f(n,"anyTouched",!0)),n}),o(t,u.SET_SUBMIT_SUCCEEDED,function(e){var r=e;return r=l(r,"submitFailed"),r=f(r,"submitSucceeded",!0)}),o(t,u.TOUCH,function(e,r){var t=r.meta.fields,n=e;return t.forEach(function(e){return n=f(n,"fields."+e+".touched",!0)}),n=f(n,"anyTouched",!0)}),o(t,u.UNREGISTER_FIELD,function(e,r){var t=r.payload.name,n=c(e,"registeredFields");if(!n)return e;var o=n.findIndex(function(e){return c(e,"name")===t});return d(n)>1||0>o?0>o?e:f(e,"registeredFields",v(n,o,1)):m(e,"registeredFields")}),o(t,u.UNTOUCH,function(e,r){var t=r.meta.fields,n=e;return t.forEach(function(e){return n=l(n,"fields."+e+".touched")}),n}),o(t,u.UPDATE_SYNC_ERRORS,function(e,r){var t=r.payload,n=t.syncErrors,o=t.error,i=e;return i=o?f(i,"error",o):l(i,"error"),i=Object.keys(n).length?f(i,"syncErrors",n):l(i,"syncErrors")}),t),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,r=arguments[1],t=g[r.type];return t?t(e,r):e},E=function(e){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t&&t.meta&&t.meta.form;if(!n)return r;if(t.type===u.DESTROY)return m(r,t.meta.form);var o=c(r,n),i=e(o,t);return i===o?r:f(r,n,i)}};return r(E(O))};r["default"]=c},function(e,r,t){"use strict";function n(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r["default"]=e,r}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function u(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){if(!e)throw new ReferenceError("this hasn't bee