redux-form
Advanced tools
Comparing version 4.1.9 to 4.1.10
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var u=r[n]={exports:{},id:n,loaded:!1};return t[n].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(3),o=n(u),i=r(57),a=r(28),s=n(a),f="undefined"!=typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,c=s.default(f,o.default,i.connect),l=c.actionTypes,d=c.addArrayValue,p=c.blur,v=c.change,h=c.changeWithKey,y=c.destroy,m=c.focus,g=c.reducer,b=c.reduxForm,_=c.removeArrayValue,O=c.getValues,A=c.initialize,x=c.initializeWithKey,w=c.propTypes,j=c.reset,S=c.startAsyncValidation,V=c.startSubmit,P=c.stopAsyncValidation,R=c.stopSubmit,T=c.swapArrayValues,E=c.touch,M=c.touchWithKey,C=c.untouch,F=c.untouchWithKey;e.actionTypes=l,e.addArrayValue=d,e.blur=p,e.change=v,e.changeWithKey=h,e.destroy=y,e.focus=m,e.reducer=g,e.reduxForm=b,e.removeArrayValue=_,e.getValues=O,e.initialize=A,e.initializeWithKey=x,e.propTypes=w,e.reset=j,e.startAsyncValidation=S,e.startSubmit=V,e.stopAsyncValidation=P,e.stopSubmit=R,e.swapArrayValues=T,e.touch=E,e.touchWithKey=M,e.untouch=C,e.untouchWithKey=F},function(t,e){"use strict";function r(t){return t&&o(t)&&Object.defineProperty(t,u,{value:!0}),t}function n(t){return!!(t&&o(t)&&t[u])}e.__esModule=!0,e.makeFieldValue=r,e.isFieldValue=n;var u="_isFieldValue",o=function(t){return"object"==typeof t}},function(t,e){"use strict";function r(t){return Array.isArray(t)?t.reduce(function(t,e){return t&&r(e)},!0):t&&"object"==typeof t?Object.keys(t).reduce(function(e,n){return e&&r(t[n])},!0):!t}e.__esModule=!0,e.default=r,t.exports=e.default},function(e,r){e.exports=t},function(t,e){"use strict";e.__esModule=!0;var r="redux-form/ADD_ARRAY_VALUE";e.ADD_ARRAY_VALUE=r;var n="redux-form/BLUR";e.BLUR=n;var u="redux-form/CHANGE";e.CHANGE=u;var o="redux-form/DESTROY";e.DESTROY=o;var i="redux-form/FOCUS";e.FOCUS=i;var a="redux-form/INITIALIZE";e.INITIALIZE=a;var s="redux-form/REMOVE_ARRAY_VALUE";e.REMOVE_ARRAY_VALUE=s;var f="redux-form/RESET";e.RESET=f;var c="redux-form/START_ASYNC_VALIDATION";e.START_ASYNC_VALIDATION=c;var l="redux-form/START_SUBMIT";e.START_SUBMIT=l;var d="redux-form/STOP_ASYNC_VALIDATION";e.STOP_ASYNC_VALIDATION=d;var p="redux-form/STOP_SUBMIT";e.STOP_SUBMIT=p;var v="redux-form/SUBMIT_FAILED";e.SUBMIT_FAILED=v;var h="redux-form/SWAP_ARRAY_VALUES";e.SWAP_ARRAY_VALUES=h;var y="redux-form/TOUCH";e.TOUCH=y;var m="redux-form/UNTOUCH";e.UNTOUCH=m},function(t,e){"use strict";function r(t,e){return t?Object.keys(t).reduce(function(r,u){var o;return n({},r,(o={},o[u]=e(t[u],u),o))},{}):t}e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=r,t.exports=e.default},function(t,e){function r(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}t.exports=r},function(t,e,r){"use strict";e.__esModule=!0;var n=r(4),u=function(t,e,r,u){return{type:n.ADD_ARRAY_VALUE,path:t,value:e,index:r,fields:u}};e.addArrayValue=u;var o=function(t,e){return{type:n.BLUR,field:t,value:e}};e.blur=o;var i=function(t,e){return{type:n.CHANGE,field:t,value:e}};e.change=i;var a=function(){return{type:n.DESTROY}};e.destroy=a;var s=function(t){return{type:n.FOCUS,field:t}};e.focus=s;var f=function(t,e){if(!Array.isArray(e))throw new Error("must provide fields array to initialize() action creator");return{type:n.INITIALIZE,data:t,fields:e}};e.initialize=f;var c=function(t,e){return{type:n.REMOVE_ARRAY_VALUE,path:t,index:e}};e.removeArrayValue=c;var l=function(){return{type:n.RESET}};e.reset=l;var d=function(t){return{type:n.START_ASYNC_VALIDATION,field:t}};e.startAsyncValidation=d;var p=function(){return{type:n.START_SUBMIT}};e.startSubmit=p;var v=function(t){return{type:n.STOP_ASYNC_VALIDATION,errors:t}};e.stopAsyncValidation=v;var h=function(t){return{type:n.STOP_SUBMIT,errors:t}};e.stopSubmit=h;var y=function(){return{type:n.SUBMIT_FAILED}};e.submitFailed=y;var m=function(t,e,r){return{type:n.SWAP_ARRAY_VALUES,path:t,indexA:e,indexB:r}};e.swapArrayValues=m;var g=function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return{type:n.TOUCH,fields:e}};e.touch=g;var b=function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return{type:n.UNTOUCH,fields:e}};e.untouch=b},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){return"function"==typeof t?function(){return o({},t.apply(void 0,arguments),e)}:"object"==typeof t?a.default(t,function(t){return u(t,e)}):t}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=u;var i=r(5),a=n(i);t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r="value";e.dataKey=r;var n=function(t,e){return function(t){t.dataTransfer.setData(r,e())}};e.default=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(11),o=n(u),i=function(t){var e=[];if(t)for(var r=0;r<t.length;r++){var n=t[r];n.selected&&e.push(n.value)}return e},a=function(t,e){if(o.default(t)){if(!e&&t.nativeEvent&&void 0!==t.nativeEvent.text)return t.nativeEvent.text;if(e&&void 0!==t.nativeEvent)return t.nativeEvent.text;var r=t.target,n=r.type,u=r.value,a=r.checked,s=r.files,f=t.dataTransfer;return"checkbox"===n?a:"file"===n?s||f&&f.files:"select-multiple"===n?i(t.target.options):u}return t&&"object"==typeof t&&void 0!==t.value?t.value:t};e.default=a,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function(t){return!!(t&&t.stopPropagation&&t.preventDefault)};e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(11),o=n(u),i=function(t){var e=o.default(t);return e&&t.preventDefault(),e};e.default=i,t.exports=e.default},function(t,e){"use strict";function r(t){return t.displayName||t.name||"Component"}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function u(t,e,r){var n=t.indexOf("."),o=t.indexOf("["),i=t.indexOf("]");if(o>0&&i!==o+1)throw new Error("found [ not followed by ]");if(o>0&&(0>n||n>o))!function(){var n=t.substring(0,o),a=t.substring(i+1);"."===a[0]&&(a=a.substring(1));var s=e&&e[n]||[];a?(r[n]||(r[n]=[]),s.forEach(function(t,e){r[n][e]||(r[n][e]={}),u(a,t,r[n][e])})):r[n]=s.map(function(t){return t.value})}();else if(n>0){var a=t.substring(0,n),s=t.substring(n+1);r[a]||(r[a]={}),u(s,e&&e[a]||{},r[a])}else r[t]=e[t]&&e[t].value},n=function(t,e){return t.reduce(function(t,n){return r(n,e,t),t},{})};e.default=n,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=r(1),u=function o(t){if(!t)return t;var e=Object.keys(t);if(e.length)return e.reduce(function(e,r){var u=t[r];if(u)if(u.hasOwnProperty&&u.hasOwnProperty("value"))void 0!==u.value&&(e[r]=u.value);else if(Array.isArray(u))e[r]=u.map(function(t){return n.isFieldValue(t)?t.value:o(t)});else if("object"==typeof u){var i=o(u);i&&Object.keys(i).length>0&&(e[r]=i)}return e},{})};e.default=u,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function(t,e){var r=!0;t:for(;r;){var n=t,u=e;if(r=!1,!n||!u)return u;var o=n.indexOf(".");if(0!==o){var i=n.indexOf("["),a=n.indexOf("]");if(o>=0&&(0>i||i>o))t=n.substring(o+1),e=u[n.substring(0,o)],r=!0,o=i=a=void 0;else{if(!(i>=0&&(0>o||o>i)))return u[n];if(0>a)throw new Error("found [ but no ]");var s=n.substring(0,i),f=n.substring(i+1,a);if(!f.length)return u[s];if(0===i){t=n.substring(a+1),e=u[f],r=!0,o=i=a=s=f=void 0;continue t}if(!u[s])return;t=n.substring(a+1),e=u[s][f],r=!0,o=i=a=s=f=void 0}}else t=n.substring(1),e=u,r=!0,o=void 0}};e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function o(){var t,e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.form,o=r.key,i=u(r,["form","key"]);if(!n)return e;if(o){var a,s;if(r.type===c.DESTROY){var l;return f({},e,(l={},l[n]=e[n]&&Object.keys(e[n]).reduce(function(t,r){var u;return r===o?t:f({},t,(u={},u[r]=e[n][r],u))},{}),l))}return f({},e,(s={},s[n]=f({},e[n],(a={},a[o]=R((e[n]||{})[o],i),a)),s))}return r.type===c.DESTROY?Object.keys(e).reduce(function(t,r){var u;return r===n?t:f({},t,(u={},u[r]=e[r],u))},{}):f({},e,(t={},t[n]=R(e[n],i),t))}function i(t){return t.plugin=function(t){var e=this;return i(function(){var r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=e(r,n);return f({},u,d.default(t,function(t,e){return t(u[e]||V,n)}))})},t.normalize=function(t){var e=this;return i(function(){var r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=e(r,n);return f({},u,d.default(t,function(t,e){var o=function(e,r){var n=g.default(f({},V,e)),u=f({},V,r);return f({},u,d.default(t,function(t,r){return j.makeFieldValue(f({},u[r],{value:t(u[r]?u[r].value:void 0,e&&e[r]?e[r].value:void 0,g.default(u),n)}))}))};if(n.key){var i;return f({},u[e],(i={},i[n.key]=o(r[e][n.key],u[e][n.key]),i))}return o(r[e],u[e])}))})},t}e.__esModule=!0;var a,s,f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c=r(4),l=r(5),d=n(l),p=r(16),v=n(p),h=r(18),y=n(h),m=r(15),g=n(m),b=r(39),_=n(b),O=r(44),A=n(O),x=r(45),w=n(x),j=r(1),S="_error";e.globalErrorKey=S;var V=(a={_active:void 0,_asyncValidating:!1},a[S]=void 0,a._initialized=!1,a._submitting=!1,a._submitFailed=!1,a);e.initialState=V;var P=(s={},s[c.ADD_ARRAY_VALUE]=function(t,e){var r=e.path,n=e.index,u=e.value,o=e.fields,i=v.default(r,t),a=f({},t),s=i?[].concat(i):[],c=null!==u&&"object"==typeof u?_.default(u,o||Object.keys(u)):j.makeFieldValue({value:u});return void 0===n?s.push(c):s.splice(n,0,c),y.default(r,s,a)},s[c.BLUR]=function(t,e){var r=e.field,n=e.value,o=e.touch,i=(t._active,u(t,["_active"]));return y.default(r,function(t){var e=f({},t);return void 0!==n&&(e.value=n),o&&(e.touched=!0),j.makeFieldValue(e)},i)},s[c.CHANGE]=function(t,e){var r=e.field,n=e.value,o=e.touch;return y.default(r,function(t){var e=f({},t,{value:n}),r=(e.asyncError,e.submitError,u(e,["asyncError","submitError"]));return o&&(r.touched=!0),j.makeFieldValue(r)},t)},s[c.DESTROY]=function(){},s[c.FOCUS]=function(t,e){var r=e.field,n=y.default(r,function(t){return j.makeFieldValue(f({},t,{visited:!0}))},t);return n._active=r,n},s[c.INITIALIZE]=function(t,e){var r,n=e.data,u=e.fields;return f({},_.default(n,u,t),(r={_asyncValidating:!1,_active:void 0},r[S]=void 0,r._initialized=!0,r._submitting=!1,r._submitFailed=!1,r))},s[c.REMOVE_ARRAY_VALUE]=function(t,e){var r=e.path,n=e.index,u=v.default(r,t),o=f({},t),i=u?[].concat(u):[];return void 0===n?i.pop():isNaN(n)?delete i[n]:i.splice(n,1),y.default(r,i,o)},s[c.RESET]=function(t){var e;return f({},A.default(t),(e={_active:void 0,_asyncValidating:!1},e[S]=void 0,e._initialized=t._initialized,e._submitting=!1,e._submitFailed=!1,e))},s[c.START_ASYNC_VALIDATION]=function(t,e){var r=e.field;return f({},t,{_asyncValidating:r||!0})},s[c.START_SUBMIT]=function(t){return f({},t,{_submitting:!0})},s[c.STOP_ASYNC_VALIDATION]=function(t,e){var r,n=e.errors;return f({},w.default(t,n,"asyncError"),(r={_asyncValidating:!1},r[S]=n&&n[S],r))},s[c.STOP_SUBMIT]=function(t,e){var r,n=e.errors;return f({},w.default(t,n,"submitError"),(r={},r[S]=n&&n[S],r._submitting=!1,r._submitFailed=!(!n||!Object.keys(n).length),r))},s[c.SUBMIT_FAILED]=function(t){return f({},t,{_submitFailed:!0})},s[c.SWAP_ARRAY_VALUES]=function(t,e){var r=e.path,n=e.indexA,u=e.indexB,o=v.default(r,t),i=o.length;if(n===u||isNaN(n)||isNaN(u)||n>=i||u>=i)return t;var a=f({},t),s=[].concat(o);return s[n]=o[u],s[u]=o[n],y.default(r,s,a)},s[c.TOUCH]=function(t,e){var r=e.fields;return f({},t,r.reduce(function(t,e){return y.default(e,function(t){return j.makeFieldValue(f({},t,{touched:!0}))},t)},t))},s[c.UNTOUCH]=function(t,e){var r=e.fields;return f({},t,r.reduce(function(t,e){return y.default(e,function(t){if(t){var e=(t.touched,u(t,["touched"]));return j.makeFieldValue(e)}return j.makeFieldValue(t)},t)},t))},s),R=function(){var t=arguments.length<=0||void 0===arguments[0]?V:arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=P[e.type];return r?r(t,e):t};e.default=i(o)},function(t,e){"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=function u(t,e,n){for(var o=!0;o;){var i,a=t,s=e,f=n;o=!1;var c=a.indexOf(".");if(0!==c){var l=a.indexOf("["),d=a.indexOf("]");if(c>=0&&(0>l||l>c)){var p,v=a.substring(0,c);return r({},f,(p={},p[v]=u(a.substring(c+1),s,f[v]||{}),p))}if(l>=0&&(0>c||c>l)){var h,y,m,g,b=function(){if(0>d)throw new Error("found [ but no ]");var t=a.substring(0,l),e=a.substring(l+1,d),n=f[t]||[],o=a.substring(d+1);if(e){if(o.length){var i=n[e]||{},c=[].concat(n);return c[e]=u(o,s,i),{v:r({},f||{},(m={},m[t]=c,m))}}var p=[].concat(n);return p[e]="function"==typeof s?s(p[e]):s,{v:r({},f||{},(y={},y[t]=p,y))}}if(o.length){if(!(n&&n.length||"function"!=typeof s))return{v:f};var c=n.map(function(t){return u(o,s,t)});return{v:r({},f||{},(g={},g[t]=c,g))}}var v=void 0;if(Array.isArray(s))v=s;else if(f[t])v=n.map(function(t){return"function"==typeof s?s(t):s});else{if("function"==typeof s)return{v:f};v=s}return{v:r({},f||{},(h={},h[t]=v,h))}}();if("object"==typeof b)return b.v}return r({},f,(i={},i[a]="function"==typeof s?s(f[a]):s,i))}t=a.substring(1),e=s,n=f,o=!0,i=c=void 0}};e.default=n,t.exports=e.default},function(t,e,r){function n(t){return null===t||void 0===t}function u(t){return t&&"object"==typeof t&&"number"==typeof t.length?"function"!=typeof t.copy||"function"!=typeof t.slice?!1:t.length>0&&"number"!=typeof t[0]?!1:!0:!1}function o(t,e,r){var o,c;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return s(e)?(t=i.call(t),e=i.call(e),f(t,e,r)):!1;if(u(t)){if(!u(e))return!1;if(t.length!==e.length)return!1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}try{var l=a(t),d=a(e)}catch(p){return!1}if(l.length!=d.length)return!1;for(l.sort(),d.sort(),o=l.length-1;o>=0;o--)if(l[o]!=d[o])return!1;for(o=l.length-1;o>=0;o--)if(c=l[o],!f(t[c],e[c],r))return!1;return typeof t==typeof e}var i=Array.prototype.slice,a=r(51),s=r(50),f=t.exports=function(t,e,r){return r||(r={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?r.strict?t===e:t==e:o(t,e,r)}},function(t,e){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};t.exports=function(t,e){for(var u=Object.getOwnPropertyNames(e),o=0;o<u.length;++o)r[u[o]]||n[u[o]]||(t[u[o]]=e[u[o]]);return t}},function(t,e,r){"use strict";var n=r(3),u=n.PropTypes,o=u.shape({subscribe:u.func.isRequired,dispatch:u.func.isRequired,getState:u.func.isRequired});t.exports=o},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){function r(){return f}function n(t){c.push(t);var e=!0;return function(){if(e){e=!1;var r=c.indexOf(t);c.splice(r,1)}}}function u(t){if(!i.default(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,f=s(f,t)}finally{l=!1}return c.slice().forEach(function(t){return t()}),t}function o(t){s=t,u({type:a.INIT})}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var s=t,f=e,c=[],l=!1;return u({type:a.INIT}),{dispatch:u,subscribe:n,getState:r,replaceReducer:o}}e.__esModule=!0,e.default=u;var o=r(25),i=n(o),a={INIT:"@@redux/INIT"};e.ActionTypes=a},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(22),o=n(u),i=r(63),a=n(i),s=r(62),f=n(s),c=r(61),l=n(c),d=r(24),p=n(d);e.createStore=o.default,e.combineReducers=a.default,e.bindActionCreators=f.default,e.applyMiddleware=l.default,e.compose=p.default},function(t,e){"use strict";function r(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return e.reduceRight(function(t,e){return e(t)},t)}}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";function r(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var r=e.constructor;return"function"==typeof r&&r instanceof r&&n(r)===u}e.__esModule=!0,e.default=r;var n=function(t){return Function.prototype.toString.call(t)},u=n(Object);t.exports=e.default},function(t,e){"use strict";function r(t,e){return Object.keys(t).reduce(function(r,n){return r[n]=e(t[n],n),r},{})}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(6),o=n(u),i=r(2),a=n(i),s=function(t,e,r,n){e(n);var u=t();if(!o.default(u))throw new Error("asyncValidate function passed to reduxForm must return a promise");var i=function(t){return function(e){if(!a.default(e))return r(e),Promise.reject();if(t)throw r(),new Error("Asynchronous validation promise was rejected without errors.");return r(),Promise.resolve()}};return u.then(i(!1),i(!0))};e.default=s,t.exports=e.default},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function u(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,r){return{actionTypes:g,addArrayValue:w,blur:j,change:S,changeWithKey:V,destroy:P,focus:R,getValues:A.default,initialize:T,initializeWithKey:E,propTypes:_.default(e),reduxForm:c.default(t,e,r),reducer:s.default,removeArrayValue:M,reset:C,startAsyncValidation:F,startSubmit:I,stopAsyncValidation:k,stopSubmit:N,submitFailed:U,swapArrayValues:q,touch:D,touchWithKey:W,untouch:L,untouchWithKey:B}}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=o;var a=r(17),s=u(a),f=r(31),c=u(f),l=r(5),d=u(l),p=r(8),v=u(p),h=r(7),y=n(h),m=r(4),g=n(m),b=r(30),_=u(b),O=r(15),A=u(O),x=i({},d.default(i({},y,{changeWithKey:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return v.default(y.change,{key:t}).apply(void 0,r)},initializeWithKey:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return v.default(y.initialize,{key:t}).apply(void 0,r)},reset:function(t){return v.default(y.reset,{key:t})()},touchWithKey:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return v.default(y.touch,{key:t}).apply(void 0,r)},untouchWithKey:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return v.default(y.untouch,{key:t}).apply(void 0,r)},destroy:function(t){return v.default(y.destroy,{key:t})()}}),function(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;r>u;u++)n[u-1]=arguments[u];return v.default(t,{form:e}).apply(void 0,n)}})),w=x.addArrayValue,j=x.blur,S=x.change,V=x.changeWithKey,P=x.destroy,R=x.focus,T=x.initialize,E=x.initializeWithKey,M=x.removeArrayValue,C=x.reset,F=x.startAsyncValidation,I=x.startSubmit,k=x.stopAsyncValidation,N=x.stopSubmit,U=x.submitFailed,q=x.swapArrayValues,D=x.touch,W=x.touchWithKey,L=x.untouch,B=x.untouchWithKey;t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f=r(7),c=u(f),l=r(13),d=n(l),p=r(17),v=r(19),h=n(v),y=r(8),m=n(y),g=r(14),b=n(g),_=r(2),O=n(_),A=r(42),x=n(A),w=r(38),j=n(w),S=r(27),V=n(S),P=r(37),R=n(P),T=r(12),E=n(T),M=r(48),C=n(M),F=r(49),I=n(F),k=function(t,e,r,n,u,f,l,v,y){var g=r.Component,_=r.PropTypes;return function(A,w,S,P){var T=function(n){function f(t){i(this,f),n.call(this,t),this.asyncValidate=this.asyncValidate.bind(this),this.handleSubmit=this.handleSubmit.bind(this),this.fields=x.default(t,{},{},this.asyncValidate,e)}return a(f,n),f.prototype.componentWillMount=function(){var t=this.props,e=t.fields,r=t.form,n=t.initialize,u=t.initialValues;u&&!r._initialized&&n(u,e)},f.prototype.componentWillReceiveProps=function(t){h.default(this.props.fields,t.fields)&&h.default(this.props.form,t.form,{strict:!0})||(this.fields=x.default(t,this.props,this.fields,this.asyncValidate,e)),h.default(this.props.initialValues,t.initialValues)||this.props.initialize(t.initialValues,t.fields)},f.prototype.componentWillUnmount=function(){t.destroyOnUnmount&&this.props.destroy()},f.prototype.asyncValidate=function c(t,e){var r=this,n=this.props,c=n.asyncValidate,u=n.dispatch,o=n.fields,i=n.form,a=n.startAsyncValidation,s=n.stopAsyncValidation,f=n.validate;if(c){var l=function(){var n=b.default(o,i);t&&(n[t]=e);var l=f(n,r.props),d=r.fields._meta.allPristine;return d||t&&!O.default(l[t])?void 0:{v:V.default(function(){return c(n,u,r.props)},a,s,t)}}();if("object"==typeof l)return l.v}},f.prototype.handleSubmit=function(t){var e=this,r=this.props,n=r.onSubmit,u=r.fields,o=r.form,i=function(t){if(!t||"function"!=typeof t)throw new Error("You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop");return t};return!t||E.default(t)?j.default(i(n),b.default(u,o),this.props,this.asyncValidate):R.default(function(r){E.default(r),j.default(i(t),b.default(u,o),e.props,e.asyncValidate)})},f.prototype.render=function(){var t,e=this,n=this.fields,i=this.props,a=(i.addArrayValue,i.asyncBlurFields,i.blur,i.change,i.destroy),f=(i.focus,i.fields),c=i.form,l=(i.initialValues,i.initialize),d=(i.onSubmit,i.propNamespace),p=i.reset,v=(i.removeArrayValue,i.returnRejectedSubmitPromise,i.startAsyncValidation,i.startSubmit,i.stopAsyncValidation,i.stopSubmit,i.submitFailed,i.swapArrayValues,i.touch),h=i.untouch,y=(i.validate,o(i,["addArrayValue","asyncBlurFields","blur","change","destroy","focus","fields","form","initialValues","initialize","onSubmit","propNamespace","reset","removeArrayValue","returnRejectedSubmitPromise","startAsyncValidation","startSubmit","stopAsyncValidation","stopSubmit","submitFailed","swapArrayValues","touch","untouch","validate"])),m=n._meta,g=m.allPristine,b=m.allValid,_=m.errors,O=m.formError,A=m.values,x={active:c._active,asyncValidating:c._asyncValidating,dirty:!g,error:O,errors:_,fields:n,formKey:S,invalid:!b,pristine:g,submitting:c._submitting,submitFailed:c._submitFailed,valid:b,values:A,asyncValidate:R.default(function(){return e.asyncValidate()}),destroyForm:R.default(a),handleSubmit:this.handleSubmit,initializeForm:R.default(function(t){return l(t,f)}),resetForm:R.default(p),touch:R.default(function(){return v.apply(void 0,arguments)}),touchAll:R.default(function(){return v.apply(void 0,f)}),untouch:R.default(function(){return h.apply(void 0,arguments)}),untouchAll:R.default(function(){return h.apply(void 0,f)})},w=d?(t={},t[d]=x,t):x;return r.createElement(u,s({},y,w))},f}(g);T.displayName="ReduxForm("+d.default(u)+")",T.WrappedComponent=u,T.propTypes={asyncBlurFields:_.arrayOf(_.string),asyncValidate:_.func,dispatch:_.func.isRequired,fields:_.arrayOf(_.string).isRequired,form:_.object,initialValues:_.any,onSubmit:_.func,propNamespace:_.string,readonly:_.bool,returnRejectedSubmitPromise:_.bool,validate:_.func,addArrayValue:_.func.isRequired,blur:_.func.isRequired,change:_.func.isRequired,destroy:_.func.isRequired,focus:_.func.isRequired,initialize:_.func.isRequired,removeArrayValue:_.func.isRequired,reset:_.func.isRequired,startAsyncValidation:_.func.isRequired,startSubmit:_.func.isRequired,stopAsyncValidation:_.func.isRequired,stopSubmit:_.func.isRequired,submitFailed:_.func.isRequired,swapArrayValues:_.func.isRequired,touch:_.func.isRequired,untouch:_.func.isRequired},T.defaultProps={asyncBlurFields:[],form:p.initialState,readonly:!1,returnRejectedSubmitPromise:!1,validate:function(){return{}}};var M=s({},c,{blur:m.default(c.blur,{touch:!!t.touchOnBlur}),change:m.default(c.change,{touch:!!t.touchOnChange})}),F=void 0!==S&&null!==S?n(I.default(f,function(t){var e=P(t,A);if(!e)throw new Error('You need to mount the redux-form reducer at "'+A+'"');return e&&e[w]&&e[w][S]}),C.default(l,m.default(M,{form:w,key:S})),v,y):n(I.default(f,function(t){var e=P(t,A);if(!e)throw new Error('You need to mount the redux-form reducer at "'+A+'"');return e&&e[w]}),C.default(l,m.default(M,{form:w})),v,y);return F(T)}};e.default=k,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function(t){var e=t.PropTypes,r=e.any,n=e.bool,u=e.string,o=e.func,i=e.object;return{active:u,asyncValidating:n.isRequired,dirty:n.isRequired,error:r,errors:i,fields:i.isRequired,formKey:r,invalid:n.isRequired,pristine:n.isRequired,submitting:n.isRequired,submitFailed:n.isRequired,valid:n.isRequired,values:i.isRequired,asyncValidate:o.isRequired,destroyForm:o.isRequired,handleSubmit:o.isRequired,initializeForm:o.isRequired,resetForm:o.isRequired,touch:o.isRequired,touchAll:o.isRequired,untouch:o.isRequired,untouchAll:o.isRequired}};e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a=r(32),s=n(a),f=r(20),c=n(f),l=function(t,e,r){var n=e.Component,a=s.default(t,e,r);return function(t,r,s,f,l){return function(d){var p=a(d,r,s,f,l),v=i({touchOnBlur:!0,touchOnChange:!1,destroyOnUnmount:!0},t),h=function(t){function r(){u(this,r),t.apply(this,arguments)}return o(r,t),r.prototype.render=function(){return e.createElement(p,i({},v,this.props))},r}(n);return c.default(h,d)}}};e.default=l,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=r(54),s=n(a),f=r(13),c=n(f),l=r(29),d=n(l),p=function(t,e,r){return function(n,a,f,l,p){var v=e.Component,h=e.PropTypes,y=function(c){function v(u){o(this,v),c.call(this,u),this.cache=new s.default(this,{ReduxForm:{params:["reduxMountPoint","form","formKey","getFormState"],fn:d.default(u,t,e,r,n,a,f,l,p)}})}return i(v,c),v.prototype.componentWillReceiveProps=function(t){this.cache.componentWillReceiveProps(t)},v.prototype.render=function(){var t=this.cache.get("ReduxForm"),r=this.props,n=(r.reduxMountPoint,r.destroyOnUnmount,r.form,r.getFormState,r.touchOnBlur,r.touchOnChange,u(r,["reduxMountPoint","destroyOnUnmount","form","getFormState","touchOnBlur","touchOnChange"]));return e.createElement(t,n)},v}(v);return y.displayName="ReduxFormConnector("+c.default(n)+")",y.WrappedComponent=n,y.propTypes={destroyOnUnmount:h.bool,reduxMountPoint:h.string,form:h.string.isRequired,formKey:h.string,getFormState:h.func,touchOnBlur:h.bool,touchOnChange:h.bool},y.defaultProps={reduxMountPoint:"form",getFormState:function(t,e){return t[e]}},y}};e.default=p,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(10),o=n(u),i=function(t,e,r,n){return function(u){var i=o.default(u,r);e(t,i),n&&n(t,i)}};e.default=i,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(10),o=n(u),i=function(t,e,r){return function(n){return e(t,o.default(n,r))}};e.default=i,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=r(9),u=function(t,e){return function(r){e(t,r.dataTransfer.getData(n.dataKey))}};e.default=u,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function(t,e){return function(){return e(t)}};e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(12),o=n(u),i=function(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;r>u;u++)n[u-1]=arguments[u];return o.default(e)?t.apply(void 0,n):t.apply(void 0,[e].concat(n))}};e.default=i,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(6),o=n(u),i=r(2),a=n(i),s=function(t,e,r,n){var u=r.dispatch,i=r.fields,s=r.startSubmit,f=r.stopSubmit,c=r.submitFailed,l=r.returnRejectedSubmitPromise,d=r.touch,p=r.validate,v=p(e,r);if(d.apply(void 0,i),a.default(v)){var h=function(){var r=t(e,u);return o.default(r)?(s(),r.then(function(t){return f(),t},function(t){return f(t),l?Promise.reject(t):void 0})):r},y=n();return o.default(y)?y.then(h,function(){return c(),l?Promise.reject():Promise.resolve()}):h()}return c(),l?Promise.reject():void 0};e.default=s,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(1),o=function(t){return u.makeFieldValue(void 0===t?{}:{initial:t,value:t})},i=function(t,e){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2]; | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var u=r[n]={exports:{},id:n,loaded:!1};return t[n].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(3),o=n(u),i=r(57),a=r(28),s=n(a),f="undefined"!=typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,c=s.default(f,o.default,i.connect),l=c.actionTypes,d=c.addArrayValue,p=c.blur,v=c.change,h=c.changeWithKey,y=c.destroy,m=c.focus,g=c.reducer,b=c.reduxForm,_=c.removeArrayValue,O=c.getValues,A=c.initialize,x=c.initializeWithKey,w=c.propTypes,j=c.reset,S=c.startAsyncValidation,V=c.startSubmit,P=c.stopAsyncValidation,R=c.stopSubmit,T=c.swapArrayValues,E=c.touch,M=c.touchWithKey,C=c.untouch,F=c.untouchWithKey;e.actionTypes=l,e.addArrayValue=d,e.blur=p,e.change=v,e.changeWithKey=h,e.destroy=y,e.focus=m,e.reducer=g,e.reduxForm=b,e.removeArrayValue=_,e.getValues=O,e.initialize=A,e.initializeWithKey=x,e.propTypes=w,e.reset=j,e.startAsyncValidation=S,e.startSubmit=V,e.stopAsyncValidation=P,e.stopSubmit=R,e.swapArrayValues=T,e.touch=E,e.touchWithKey=M,e.untouch=C,e.untouchWithKey=F},function(t,e){"use strict";function r(t){return t&&o(t)&&Object.defineProperty(t,u,{value:!0}),t}function n(t){return!!(t&&o(t)&&t[u])}e.__esModule=!0,e.makeFieldValue=r,e.isFieldValue=n;var u="_isFieldValue",o=function(t){return"object"==typeof t}},function(t,e){"use strict";function r(t){return Array.isArray(t)?t.reduce(function(t,e){return t&&r(e)},!0):t&&"object"==typeof t?Object.keys(t).reduce(function(e,n){return e&&r(t[n])},!0):!t}e.__esModule=!0,e.default=r,t.exports=e.default},function(e,r){e.exports=t},function(t,e){"use strict";e.__esModule=!0;var r="redux-form/ADD_ARRAY_VALUE";e.ADD_ARRAY_VALUE=r;var n="redux-form/BLUR";e.BLUR=n;var u="redux-form/CHANGE";e.CHANGE=u;var o="redux-form/DESTROY";e.DESTROY=o;var i="redux-form/FOCUS";e.FOCUS=i;var a="redux-form/INITIALIZE";e.INITIALIZE=a;var s="redux-form/REMOVE_ARRAY_VALUE";e.REMOVE_ARRAY_VALUE=s;var f="redux-form/RESET";e.RESET=f;var c="redux-form/START_ASYNC_VALIDATION";e.START_ASYNC_VALIDATION=c;var l="redux-form/START_SUBMIT";e.START_SUBMIT=l;var d="redux-form/STOP_ASYNC_VALIDATION";e.STOP_ASYNC_VALIDATION=d;var p="redux-form/STOP_SUBMIT";e.STOP_SUBMIT=p;var v="redux-form/SUBMIT_FAILED";e.SUBMIT_FAILED=v;var h="redux-form/SWAP_ARRAY_VALUES";e.SWAP_ARRAY_VALUES=h;var y="redux-form/TOUCH";e.TOUCH=y;var m="redux-form/UNTOUCH";e.UNTOUCH=m},function(t,e){"use strict";function r(t,e){return t?Object.keys(t).reduce(function(r,u){var o;return n({},r,(o={},o[u]=e(t[u],u),o))},{}):t}e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=r,t.exports=e.default},function(t,e){function r(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}t.exports=r},function(t,e,r){"use strict";e.__esModule=!0;var n=r(4),u=function(t,e,r,u){return{type:n.ADD_ARRAY_VALUE,path:t,value:e,index:r,fields:u}};e.addArrayValue=u;var o=function(t,e){return{type:n.BLUR,field:t,value:e}};e.blur=o;var i=function(t,e){return{type:n.CHANGE,field:t,value:e}};e.change=i;var a=function(){return{type:n.DESTROY}};e.destroy=a;var s=function(t){return{type:n.FOCUS,field:t}};e.focus=s;var f=function(t,e){if(!Array.isArray(e))throw new Error("must provide fields array to initialize() action creator");return{type:n.INITIALIZE,data:t,fields:e}};e.initialize=f;var c=function(t,e){return{type:n.REMOVE_ARRAY_VALUE,path:t,index:e}};e.removeArrayValue=c;var l=function(){return{type:n.RESET}};e.reset=l;var d=function(t){return{type:n.START_ASYNC_VALIDATION,field:t}};e.startAsyncValidation=d;var p=function(){return{type:n.START_SUBMIT}};e.startSubmit=p;var v=function(t){return{type:n.STOP_ASYNC_VALIDATION,errors:t}};e.stopAsyncValidation=v;var h=function(t){return{type:n.STOP_SUBMIT,errors:t}};e.stopSubmit=h;var y=function(){return{type:n.SUBMIT_FAILED}};e.submitFailed=y;var m=function(t,e,r){return{type:n.SWAP_ARRAY_VALUES,path:t,indexA:e,indexB:r}};e.swapArrayValues=m;var g=function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return{type:n.TOUCH,fields:e}};e.touch=g;var b=function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return{type:n.UNTOUCH,fields:e}};e.untouch=b},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){return"function"==typeof t?function(){return o({},t.apply(void 0,arguments),e)}:"object"==typeof t?a.default(t,function(t){return u(t,e)}):t}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=u;var i=r(5),a=n(i);t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r="value";e.dataKey=r;var n=function(t,e){return function(t){t.dataTransfer.setData(r,e())}};e.default=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(11),o=n(u),i=function(t){var e=[];if(t)for(var r=0;r<t.length;r++){var n=t[r];n.selected&&e.push(n.value)}return e},a=function(t,e){if(o.default(t)){if(!e&&t.nativeEvent&&void 0!==t.nativeEvent.text)return t.nativeEvent.text;if(e&&void 0!==t.nativeEvent)return t.nativeEvent.text;var r=t.target,n=r.type,u=r.value,a=r.checked,s=r.files,f=t.dataTransfer;return"checkbox"===n?a:"file"===n?s||f&&f.files:"select-multiple"===n?i(t.target.options):u}return t&&"object"==typeof t&&void 0!==t.value?t.value:t};e.default=a,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function(t){return!!(t&&t.stopPropagation&&t.preventDefault)};e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(11),o=n(u),i=function(t){var e=o.default(t);return e&&t.preventDefault(),e};e.default=i,t.exports=e.default},function(t,e){"use strict";function r(t){return t.displayName||t.name||"Component"}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function u(t,e,r){var n=t.indexOf("."),o=t.indexOf("["),i=t.indexOf("]");if(o>0&&i!==o+1)throw new Error("found [ not followed by ]");if(o>0&&(0>n||n>o))!function(){var n=t.substring(0,o),a=t.substring(i+1);"."===a[0]&&(a=a.substring(1));var s=e&&e[n]||[];a?(r[n]||(r[n]=[]),s.forEach(function(t,e){r[n][e]||(r[n][e]={}),u(a,t,r[n][e])})):r[n]=s.map(function(t){return t.value})}();else if(n>0){var a=t.substring(0,n),s=t.substring(n+1);r[a]||(r[a]={}),u(s,e&&e[a]||{},r[a])}else r[t]=e[t]&&e[t].value},n=function(t,e){return t.reduce(function(t,n){return r(n,e,t),t},{})};e.default=n,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=r(1),u=function o(t){if(!t)return t;var e=Object.keys(t);if(e.length)return e.reduce(function(e,r){var u=t[r];if(u)if(u.hasOwnProperty&&u.hasOwnProperty("value"))void 0!==u.value&&(e[r]=u.value);else if(Array.isArray(u))e[r]=u.map(function(t){return n.isFieldValue(t)?t.value:o(t)});else if("object"==typeof u){var i=o(u);i&&Object.keys(i).length>0&&(e[r]=i)}return e},{})};e.default=u,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function(t,e){var r=!0;t:for(;r;){var n=t,u=e;if(r=!1,!n||!u)return u;var o=n.indexOf(".");if(0!==o){var i=n.indexOf("["),a=n.indexOf("]");if(o>=0&&(0>i||i>o))t=n.substring(o+1),e=u[n.substring(0,o)],r=!0,o=i=a=void 0;else{if(!(i>=0&&(0>o||o>i)))return u[n];if(0>a)throw new Error("found [ but no ]");var s=n.substring(0,i),f=n.substring(i+1,a);if(!f.length)return u[s];if(0===i){t=n.substring(a+1),e=u[f],r=!0,o=i=a=s=f=void 0;continue t}if(!u[s])return;t=n.substring(a+1),e=u[s][f],r=!0,o=i=a=s=f=void 0}}else t=n.substring(1),e=u,r=!0,o=void 0}};e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function o(){var t,e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.form,o=r.key,i=u(r,["form","key"]);if(!n)return e;if(o){var a,s;if(r.type===c.DESTROY){var l;return f({},e,(l={},l[n]=e[n]&&Object.keys(e[n]).reduce(function(t,r){var u;return r===o?t:f({},t,(u={},u[r]=e[n][r],u))},{}),l))}return f({},e,(s={},s[n]=f({},e[n],(a={},a[o]=R((e[n]||{})[o],i),a)),s))}return r.type===c.DESTROY?Object.keys(e).reduce(function(t,r){var u;return r===n?t:f({},t,(u={},u[r]=e[r],u))},{}):f({},e,(t={},t[n]=R(e[n],i),t))}function i(t){return t.plugin=function(t){var e=this;return i(function(){var r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=e(r,n);return f({},u,d.default(t,function(t,e){return t(u[e]||V,n)}))})},t.normalize=function(t){var e=this;return i(function(){var r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=e(r,n);return f({},u,d.default(t,function(t,e){var o=function(e,r){var n=g.default(f({},V,e)),u=f({},V,r);return f({},u,d.default(t,function(t,r){var o=j.makeFieldValue(t(u[r]?u[r].value:void 0,e&&e[r]?e[r].value:void 0,g.default(u),n));return Object.assign(u[r]||{},{value:o})}))};if(n.key){var i;return f({},u[e],(i={},i[n.key]=o(r[e][n.key],u[e][n.key]),i))}return o(r[e],u[e])}))})},t}e.__esModule=!0;var a,s,f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c=r(4),l=r(5),d=n(l),p=r(16),v=n(p),h=r(18),y=n(h),m=r(15),g=n(m),b=r(39),_=n(b),O=r(44),A=n(O),x=r(45),w=n(x),j=r(1),S="_error";e.globalErrorKey=S;var V=(a={_active:void 0,_asyncValidating:!1},a[S]=void 0,a._initialized=!1,a._submitting=!1,a._submitFailed=!1,a);e.initialState=V;var P=(s={},s[c.ADD_ARRAY_VALUE]=function(t,e){var r=e.path,n=e.index,u=e.value,o=e.fields,i=v.default(r,t),a=f({},t),s=i?[].concat(i):[],c=null!==u&&"object"==typeof u?_.default(u,o||Object.keys(u)):j.makeFieldValue({value:u});return void 0===n?s.push(c):s.splice(n,0,c),y.default(r,s,a)},s[c.BLUR]=function(t,e){var r=e.field,n=e.value,o=e.touch,i=(t._active,u(t,["_active"]));return y.default(r,function(t){var e=f({},t);return void 0!==n&&(e.value=n),o&&(e.touched=!0),j.makeFieldValue(e)},i)},s[c.CHANGE]=function(t,e){var r=e.field,n=e.value,o=e.touch;return y.default(r,function(t){var e=f({},t,{value:n}),r=(e.asyncError,e.submitError,u(e,["asyncError","submitError"]));return o&&(r.touched=!0),j.makeFieldValue(r)},t)},s[c.DESTROY]=function(){},s[c.FOCUS]=function(t,e){var r=e.field,n=y.default(r,function(t){return j.makeFieldValue(f({},t,{visited:!0}))},t);return n._active=r,n},s[c.INITIALIZE]=function(t,e){var r,n=e.data,u=e.fields;return f({},_.default(n,u,t),(r={_asyncValidating:!1,_active:void 0},r[S]=void 0,r._initialized=!0,r._submitting=!1,r._submitFailed=!1,r))},s[c.REMOVE_ARRAY_VALUE]=function(t,e){var r=e.path,n=e.index,u=v.default(r,t),o=f({},t),i=u?[].concat(u):[];return void 0===n?i.pop():isNaN(n)?delete i[n]:i.splice(n,1),y.default(r,i,o)},s[c.RESET]=function(t){var e;return f({},A.default(t),(e={_active:void 0,_asyncValidating:!1},e[S]=void 0,e._initialized=t._initialized,e._submitting=!1,e._submitFailed=!1,e))},s[c.START_ASYNC_VALIDATION]=function(t,e){var r=e.field;return f({},t,{_asyncValidating:r||!0})},s[c.START_SUBMIT]=function(t){return f({},t,{_submitting:!0})},s[c.STOP_ASYNC_VALIDATION]=function(t,e){var r,n=e.errors;return f({},w.default(t,n,"asyncError"),(r={_asyncValidating:!1},r[S]=n&&n[S],r))},s[c.STOP_SUBMIT]=function(t,e){var r,n=e.errors;return f({},w.default(t,n,"submitError"),(r={},r[S]=n&&n[S],r._submitting=!1,r._submitFailed=!(!n||!Object.keys(n).length),r))},s[c.SUBMIT_FAILED]=function(t){return f({},t,{_submitFailed:!0})},s[c.SWAP_ARRAY_VALUES]=function(t,e){var r=e.path,n=e.indexA,u=e.indexB,o=v.default(r,t),i=o.length;if(n===u||isNaN(n)||isNaN(u)||n>=i||u>=i)return t;var a=f({},t),s=[].concat(o);return s[n]=o[u],s[u]=o[n],y.default(r,s,a)},s[c.TOUCH]=function(t,e){var r=e.fields;return f({},t,r.reduce(function(t,e){return y.default(e,function(t){return j.makeFieldValue(f({},t,{touched:!0}))},t)},t))},s[c.UNTOUCH]=function(t,e){var r=e.fields;return f({},t,r.reduce(function(t,e){return y.default(e,function(t){if(t){var e=(t.touched,u(t,["touched"]));return j.makeFieldValue(e)}return j.makeFieldValue(t)},t)},t))},s),R=function(){var t=arguments.length<=0||void 0===arguments[0]?V:arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=P[e.type];return r?r(t,e):t};e.default=i(o)},function(t,e){"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=function u(t,e,n){for(var o=!0;o;){var i,a=t,s=e,f=n;o=!1;var c=a.indexOf(".");if(0!==c){var l=a.indexOf("["),d=a.indexOf("]");if(c>=0&&(0>l||l>c)){var p,v=a.substring(0,c);return r({},f,(p={},p[v]=u(a.substring(c+1),s,f[v]||{}),p))}if(l>=0&&(0>c||c>l)){var h,y,m,g,b=function(){if(0>d)throw new Error("found [ but no ]");var t=a.substring(0,l),e=a.substring(l+1,d),n=f[t]||[],o=a.substring(d+1);if(e){if(o.length){var i=n[e]||{},c=[].concat(n);return c[e]=u(o,s,i),{v:r({},f||{},(m={},m[t]=c,m))}}var p=[].concat(n);return p[e]="function"==typeof s?s(p[e]):s,{v:r({},f||{},(y={},y[t]=p,y))}}if(o.length){if(!(n&&n.length||"function"!=typeof s))return{v:f};var c=n.map(function(t){return u(o,s,t)});return{v:r({},f||{},(g={},g[t]=c,g))}}var v=void 0;if(Array.isArray(s))v=s;else if(f[t])v=n.map(function(t){return"function"==typeof s?s(t):s});else{if("function"==typeof s)return{v:f};v=s}return{v:r({},f||{},(h={},h[t]=v,h))}}();if("object"==typeof b)return b.v}return r({},f,(i={},i[a]="function"==typeof s?s(f[a]):s,i))}t=a.substring(1),e=s,n=f,o=!0,i=c=void 0}};e.default=n,t.exports=e.default},function(t,e,r){function n(t){return null===t||void 0===t}function u(t){return t&&"object"==typeof t&&"number"==typeof t.length?"function"!=typeof t.copy||"function"!=typeof t.slice?!1:t.length>0&&"number"!=typeof t[0]?!1:!0:!1}function o(t,e,r){var o,c;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return s(e)?(t=i.call(t),e=i.call(e),f(t,e,r)):!1;if(u(t)){if(!u(e))return!1;if(t.length!==e.length)return!1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}try{var l=a(t),d=a(e)}catch(p){return!1}if(l.length!=d.length)return!1;for(l.sort(),d.sort(),o=l.length-1;o>=0;o--)if(l[o]!=d[o])return!1;for(o=l.length-1;o>=0;o--)if(c=l[o],!f(t[c],e[c],r))return!1;return typeof t==typeof e}var i=Array.prototype.slice,a=r(51),s=r(50),f=t.exports=function(t,e,r){return r||(r={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?r.strict?t===e:t==e:o(t,e,r)}},function(t,e){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};t.exports=function(t,e){for(var u=Object.getOwnPropertyNames(e),o=0;o<u.length;++o)r[u[o]]||n[u[o]]||(t[u[o]]=e[u[o]]);return t}},function(t,e,r){"use strict";var n=r(3),u=n.PropTypes,o=u.shape({subscribe:u.func.isRequired,dispatch:u.func.isRequired,getState:u.func.isRequired});t.exports=o},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){function r(){return f}function n(t){c.push(t);var e=!0;return function(){if(e){e=!1;var r=c.indexOf(t);c.splice(r,1)}}}function u(t){if(!i.default(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,f=s(f,t)}finally{l=!1}return c.slice().forEach(function(t){return t()}),t}function o(t){s=t,u({type:a.INIT})}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var s=t,f=e,c=[],l=!1;return u({type:a.INIT}),{dispatch:u,subscribe:n,getState:r,replaceReducer:o}}e.__esModule=!0,e.default=u;var o=r(25),i=n(o),a={INIT:"@@redux/INIT"};e.ActionTypes=a},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(22),o=n(u),i=r(63),a=n(i),s=r(62),f=n(s),c=r(61),l=n(c),d=r(24),p=n(d);e.createStore=o.default,e.combineReducers=a.default,e.bindActionCreators=f.default,e.applyMiddleware=l.default,e.compose=p.default},function(t,e){"use strict";function r(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return e.reduceRight(function(t,e){return e(t)},t)}}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";function r(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var r=e.constructor;return"function"==typeof r&&r instanceof r&&n(r)===u}e.__esModule=!0,e.default=r;var n=function(t){return Function.prototype.toString.call(t)},u=n(Object);t.exports=e.default},function(t,e){"use strict";function r(t,e){return Object.keys(t).reduce(function(r,n){return r[n]=e(t[n],n),r},{})}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(6),o=n(u),i=r(2),a=n(i),s=function(t,e,r,n){e(n);var u=t();if(!o.default(u))throw new Error("asyncValidate function passed to reduxForm must return a promise");var i=function(t){return function(e){if(!a.default(e))return r(e),Promise.reject();if(t)throw r(),new Error("Asynchronous validation promise was rejected without errors.");return r(),Promise.resolve()}};return u.then(i(!1),i(!0))};e.default=s,t.exports=e.default},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function u(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,r){return{actionTypes:g,addArrayValue:w,blur:j,change:S,changeWithKey:V,destroy:P,focus:R,getValues:A.default,initialize:T,initializeWithKey:E,propTypes:_.default(e),reduxForm:c.default(t,e,r),reducer:s.default,removeArrayValue:M,reset:C,startAsyncValidation:F,startSubmit:I,stopAsyncValidation:k,stopSubmit:N,submitFailed:U,swapArrayValues:q,touch:D,touchWithKey:W,untouch:L,untouchWithKey:B}}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=o;var a=r(17),s=u(a),f=r(31),c=u(f),l=r(5),d=u(l),p=r(8),v=u(p),h=r(7),y=n(h),m=r(4),g=n(m),b=r(30),_=u(b),O=r(15),A=u(O),x=i({},d.default(i({},y,{changeWithKey:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return v.default(y.change,{key:t}).apply(void 0,r)},initializeWithKey:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return v.default(y.initialize,{key:t}).apply(void 0,r)},reset:function(t){return v.default(y.reset,{key:t})()},touchWithKey:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return v.default(y.touch,{key:t}).apply(void 0,r)},untouchWithKey:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];return v.default(y.untouch,{key:t}).apply(void 0,r)},destroy:function(t){return v.default(y.destroy,{key:t})()}}),function(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;r>u;u++)n[u-1]=arguments[u];return v.default(t,{form:e}).apply(void 0,n)}})),w=x.addArrayValue,j=x.blur,S=x.change,V=x.changeWithKey,P=x.destroy,R=x.focus,T=x.initialize,E=x.initializeWithKey,M=x.removeArrayValue,C=x.reset,F=x.startAsyncValidation,I=x.startSubmit,k=x.stopAsyncValidation,N=x.stopSubmit,U=x.submitFailed,q=x.swapArrayValues,D=x.touch,W=x.touchWithKey,L=x.untouch,B=x.untouchWithKey;t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f=r(7),c=u(f),l=r(13),d=n(l),p=r(17),v=r(19),h=n(v),y=r(8),m=n(y),g=r(14),b=n(g),_=r(2),O=n(_),A=r(42),x=n(A),w=r(38),j=n(w),S=r(27),V=n(S),P=r(37),R=n(P),T=r(12),E=n(T),M=r(48),C=n(M),F=r(49),I=n(F),k=function(t,e,r,n,u,f,l,v,y){var g=r.Component,_=r.PropTypes;return function(A,w,S,P){var T=function(n){function f(t){i(this,f),n.call(this,t),this.asyncValidate=this.asyncValidate.bind(this),this.handleSubmit=this.handleSubmit.bind(this),this.fields=x.default(t,{},{},this.asyncValidate,e)}return a(f,n),f.prototype.componentWillMount=function(){var t=this.props,e=t.fields,r=t.form,n=t.initialize,u=t.initialValues;u&&!r._initialized&&n(u,e)},f.prototype.componentWillReceiveProps=function(t){h.default(this.props.fields,t.fields)&&h.default(this.props.form,t.form,{strict:!0})||(this.fields=x.default(t,this.props,this.fields,this.asyncValidate,e)),h.default(this.props.initialValues,t.initialValues)||this.props.initialize(t.initialValues,t.fields)},f.prototype.componentWillUnmount=function(){t.destroyOnUnmount&&this.props.destroy()},f.prototype.asyncValidate=function c(t,e){var r=this,n=this.props,c=n.asyncValidate,u=n.dispatch,o=n.fields,i=n.form,a=n.startAsyncValidation,s=n.stopAsyncValidation,f=n.validate;if(c){var l=function(){var n=b.default(o,i);t&&(n[t]=e);var l=f(n,r.props),d=r.fields._meta.allPristine;return d||t&&!O.default(l[t])?void 0:{v:V.default(function(){return c(n,u,r.props)},a,s,t)}}();if("object"==typeof l)return l.v}},f.prototype.handleSubmit=function(t){var e=this,r=this.props,n=r.onSubmit,u=r.fields,o=r.form,i=function(t){if(!t||"function"!=typeof t)throw new Error("You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop");return t};return!t||E.default(t)?j.default(i(n),b.default(u,o),this.props,this.asyncValidate):R.default(function(){return j.default(i(t),b.default(u,o),e.props,e.asyncValidate)})},f.prototype.render=function(){var t,e=this,n=this.fields,i=this.props,a=(i.addArrayValue,i.asyncBlurFields,i.blur,i.change,i.destroy),f=(i.focus,i.fields),c=i.form,l=(i.initialValues,i.initialize),d=(i.onSubmit,i.propNamespace),p=i.reset,v=(i.removeArrayValue,i.returnRejectedSubmitPromise,i.startAsyncValidation,i.startSubmit,i.stopAsyncValidation,i.stopSubmit,i.submitFailed,i.swapArrayValues,i.touch),h=i.untouch,y=(i.validate,o(i,["addArrayValue","asyncBlurFields","blur","change","destroy","focus","fields","form","initialValues","initialize","onSubmit","propNamespace","reset","removeArrayValue","returnRejectedSubmitPromise","startAsyncValidation","startSubmit","stopAsyncValidation","stopSubmit","submitFailed","swapArrayValues","touch","untouch","validate"])),m=n._meta,g=m.allPristine,b=m.allValid,_=m.errors,O=m.formError,A=m.values,x={active:c._active,asyncValidating:c._asyncValidating,dirty:!g,error:O,errors:_,fields:n,formKey:S,invalid:!b,pristine:g,submitting:c._submitting,submitFailed:c._submitFailed,valid:b,values:A,asyncValidate:R.default(function(){return e.asyncValidate()}),destroyForm:R.default(a),handleSubmit:this.handleSubmit,initializeForm:R.default(function(t){return l(t,f)}),resetForm:R.default(p),touch:R.default(function(){return v.apply(void 0,arguments)}),touchAll:R.default(function(){return v.apply(void 0,f)}),untouch:R.default(function(){return h.apply(void 0,arguments)}),untouchAll:R.default(function(){return h.apply(void 0,f)})},w=d?(t={},t[d]=x,t):x;return r.createElement(u,s({},y,w))},f}(g);T.displayName="ReduxForm("+d.default(u)+")",T.WrappedComponent=u,T.propTypes={asyncBlurFields:_.arrayOf(_.string),asyncValidate:_.func,dispatch:_.func.isRequired,fields:_.arrayOf(_.string).isRequired,form:_.object,initialValues:_.any,onSubmit:_.func,propNamespace:_.string,readonly:_.bool,returnRejectedSubmitPromise:_.bool,validate:_.func,addArrayValue:_.func.isRequired,blur:_.func.isRequired,change:_.func.isRequired,destroy:_.func.isRequired,focus:_.func.isRequired,initialize:_.func.isRequired,removeArrayValue:_.func.isRequired,reset:_.func.isRequired,startAsyncValidation:_.func.isRequired,startSubmit:_.func.isRequired,stopAsyncValidation:_.func.isRequired,stopSubmit:_.func.isRequired,submitFailed:_.func.isRequired,swapArrayValues:_.func.isRequired,touch:_.func.isRequired,untouch:_.func.isRequired},T.defaultProps={asyncBlurFields:[],form:p.initialState,readonly:!1,returnRejectedSubmitPromise:!1,validate:function(){return{}}};var M=s({},c,{blur:m.default(c.blur,{touch:!!t.touchOnBlur}),change:m.default(c.change,{touch:!!t.touchOnChange})}),F=void 0!==S&&null!==S?n(I.default(f,function(t){var e=P(t,A);if(!e)throw new Error('You need to mount the redux-form reducer at "'+A+'"');return e&&e[w]&&e[w][S]}),C.default(l,m.default(M,{form:w,key:S})),v,y):n(I.default(f,function(t){var e=P(t,A);if(!e)throw new Error('You need to mount the redux-form reducer at "'+A+'"');return e&&e[w]}),C.default(l,m.default(M,{form:w})),v,y);return F(T)}};e.default=k,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function(t){var e=t.PropTypes,r=e.any,n=e.bool,u=e.string,o=e.func,i=e.object;return{active:u,asyncValidating:n.isRequired,dirty:n.isRequired,error:r,errors:i,fields:i.isRequired,formKey:r,invalid:n.isRequired,pristine:n.isRequired,submitting:n.isRequired,submitFailed:n.isRequired,valid:n.isRequired,values:i.isRequired,asyncValidate:o.isRequired,destroyForm:o.isRequired,handleSubmit:o.isRequired,initializeForm:o.isRequired,resetForm:o.isRequired,touch:o.isRequired,touchAll:o.isRequired,untouch:o.isRequired,untouchAll:o.isRequired}};e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a=r(32),s=n(a),f=r(20),c=n(f),l=function(t,e,r){var n=e.Component,a=s.default(t,e,r);return function(t,r,s,f,l){return function(d){var p=a(d,r,s,f,l),v=i({touchOnBlur:!0,touchOnChange:!1,destroyOnUnmount:!0},t),h=function(t){function r(){u(this,r),t.apply(this,arguments)}return o(r,t),r.prototype.render=function(){return e.createElement(p,i({},v,this.props))},r}(n);return c.default(h,d)}}};e.default=l,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=r(54),s=n(a),f=r(13),c=n(f),l=r(29),d=n(l),p=function(t,e,r){return function(n,a,f,l,p){var v=e.Component,h=e.PropTypes,y=function(c){function v(u){o(this,v),c.call(this,u),this.cache=new s.default(this,{ReduxForm:{params:["reduxMountPoint","form","formKey","getFormState"],fn:d.default(u,t,e,r,n,a,f,l,p)}})}return i(v,c),v.prototype.componentWillReceiveProps=function(t){this.cache.componentWillReceiveProps(t)},v.prototype.render=function(){var t=this.cache.get("ReduxForm"),r=this.props,n=(r.reduxMountPoint,r.destroyOnUnmount,r.form,r.getFormState,r.touchOnBlur,r.touchOnChange,u(r,["reduxMountPoint","destroyOnUnmount","form","getFormState","touchOnBlur","touchOnChange"]));return e.createElement(t,n)},v}(v);return y.displayName="ReduxFormConnector("+c.default(n)+")",y.WrappedComponent=n,y.propTypes={destroyOnUnmount:h.bool,reduxMountPoint:h.string,form:h.string.isRequired,formKey:h.string,getFormState:h.func,touchOnBlur:h.bool,touchOnChange:h.bool},y.defaultProps={reduxMountPoint:"form",getFormState:function(t,e){return t[e]}},y}};e.default=p,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(10),o=n(u),i=function(t,e,r,n){return function(u){var i=o.default(u,r);e(t,i),n&&n(t,i)}};e.default=i,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(10),o=n(u),i=function(t,e,r){return function(n){return e(t,o.default(n,r))}};e.default=i,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=r(9),u=function(t,e){return function(r){e(t,r.dataTransfer.getData(n.dataKey))}};e.default=u,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=function(t,e){return function(){return e(t)}};e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(12),o=n(u),i=function(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;r>u;u++)n[u-1]=arguments[u];return o.default(e)?t.apply(void 0,n):t.apply(void 0,[e].concat(n))}};e.default=i,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(6),o=n(u),i=r(2),a=n(i),s=function(t,e,r,n){var u=r.dispatch,i=r.fields,s=r.startSubmit,f=r.stopSubmit,c=r.submitFailed,l=r.returnRejectedSubmitPromise,d=r.touch,p=r.validate,v=p(e,r);if(d.apply(void 0,i),a.default(v)){var h=function(){var r=t(e,u);return o.default(r)?(s(),r.then(function(t){return f(),t},function(t){return f(t),l?Promise.reject(t):void 0})):r},y=n();return o.default(y)?y.then(h,function(){return c(),l?Promise.reject():Promise.resolve()}):h()}return c(),l?Promise.reject(v):void 0};e.default=s,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(1),o=function(t){return u.makeFieldValue(void 0===t?{}:{initial:t,value:t})},i=function(t,e){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2]; | ||
if(!e)throw new Error("fields must be passed when initializing state");if(!t||!e.length)return r;var u=function i(t,e,r){for(var n=!0;n;){var u=t,a=e,s=r;n=!1;var f=u.indexOf(".");{if(0!==f){var c=u.indexOf("["),l=u.indexOf("]"),d=s||{};if(f>=0&&(0>c||c>f)){var p=u.substring(0,f);d[p]=a[p]&&i(u.substring(f+1),a[p],d[p]||{})}else c>=0&&(0>f||f>c)?!function(){if(0>l)throw new Error("found '[' but no ']': '"+u+"'");var t=u.substring(0,c),e=a[t],r=d[t],n=u.substring(l+1);Array.isArray(e)?n.length?d[t]=e.map(function(t,e){return i(n,t,r&&r[e])}):d[t]=e.map(function(t){return o(t)}):d[t]=[]}():d[u]=o(a&&a[u]);return d}t=u.substring(1),e=a,r=s,n=!0,f=void 0}}};return e.reduce(function(e,r){return u(r,t,e)},n({},r))};e.default=i,t.exports=e.default},function(t,e){"use strict";function r(t,e){if(t===e)return!0;if("boolean"==typeof t||"boolean"==typeof e)return t===e;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t&&"object"==typeof t){if(!e||"object"!=typeof e)return!1;var n=Object.keys(t),u=Object.keys(e);if(n.length!==u.length)return!1;for(var o=0;o<u.length;o++){var i=u[o];if(!r(t[i],e[i]))return!1}}else if(t||e)return t===e;return!0}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){var r=t.substring(e+1);return"."===r[0]&&(r=r.substring(1)),r}e.__esModule=!0;var o=r(33),i=n(o),a=r(34),s=n(a),f=r(9),c=n(f),l=r(35),d=n(l),p=r(36),v=n(p),h=r(46),y=n(h),m=r(16),g=n(m),b=r(47),_=n(b),O=function A(t,e,r,n,o,a,f,l){for(var p=arguments,h=!0;h;){var m=t,b=e,O=r,x=n,w=o,j=a,S=f,V=l;void 0===O&&(O="");var P=p.length<=8||void 0===p[8]?function(){return null}:p[8];h=!1;var R=p.length<=9||void 0===p[9]?"":p[9],T=V.asyncBlurFields,E=V.blur,M=V.change,C=V.focus,F=V.form,I=V.initialValues,k=V.readonly,N=V.addArrayValue,U=V.removeArrayValue,q=V.swapArrayValues,D=b.indexOf("."),W=b.indexOf("["),L=b.indexOf("]");if(W>0&&L!==W+1)throw new Error("found [ not followed by ]");if(W>0&&(0>D||D>W)){var B=function(){var t=b.substring(0,W),e=u(b,L),r=m&&m[t]||[],n=R+b.substring(0,L+1),o=V.fields.reduce(function(t,e){return 0===e.indexOf(n)&&t.push(e),t},[]).map(function(t){return u(t,R.length+L)});x[t]||(x[t]=[],Object.defineProperty(x[t],"addField",{value:function(e,r){return N(O+t,e,r,o)}}),Object.defineProperty(x[t],"removeField",{value:function(e){return U(O+t,e)}}),Object.defineProperty(x[t],"swapFields",{value:function(e,r){return q(O+t,e,r)}}));var i=x[t];return r.forEach(function(r,n){e&&!i[n]&&(i[n]={});var u=e?i[n]:{},o=""+O+t+"["+n+"]"+(e?".":""),a=""+R+t+"[]"+(e?".":""),s=A(r,e,o,u,w,j,S,V,P,a);e||(i[n]=s)}),i.length>r.length&&i.splice(r.length,i.length-r.length),{v:i}}();if("object"==typeof B)return B.v}if(!(D>0)){var Y=O+b,K=x[b]||{};if(K.name!==Y){var z=s.default(Y,M,S),H=g.default(Y+".initial",F),G=H||g.default(Y,I);K.name=Y,K.defaultChecked=G===!0,K.defaultValue=G,K.initialValue=G,k||(K.onBlur=i.default(Y,E,S,~T.indexOf(Y)&&function(t,e){return y.default(j(t,e))}),K.onChange=z,K.onDragStart=c.default(Y,function(){return K.value}),K.onDrop=d.default(Y,M),K.onFocus=v.default(Y,C),K.onUpdate=z),K.valid=!0,K.invalid=!1,Object.defineProperty(K,"_isField",{value:!0})}var Z=(b?m[b]:m)||{},J=g.default(Y,w),Q=_.default(K,Z,Y===F._active,J);return(b||x[b]!==Q)&&(x[b]=Q),P(Q),Q}var X=b.substring(0,D),$=b.substring(D+1);x[X]||(x[X]={});var tt=O+X+".";p=[t=m[X]||{},e=$,r=tt,n=x[X],o=w,a=j,f=S,l=V,P,tt],h=!0,P=R=T=E=M=C=F=I=k=N=U=q=D=W=L=B=X=$=tt=void 0}};e.default=O,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=r(41),i=n(o),a=r(18),s=n(a),f=r(14),c=n(f),l=r(43),d=n(l),p=function(t,e,r,n,o){var a=t.fields,f=t.form,l=t.validate,p=e.fields,v=c.default(a,f),h=l(v,t),y={},m=h._error||f._error,g=!m,b=!0,_=function(t){t.error&&(y=s.default(t.name,t.error,y),g=!1),t.dirty&&(b=!1)},O=p?p.reduce(function(t,e){return~a.indexOf(e)?t:d.default(t,e)},u({},r)):u({},r);return a.forEach(function(e){i.default(f,e,void 0,O,h,n,o,t,_)}),Object.defineProperty(O,"_meta",{value:{allPristine:b,allValid:g,values:v,errors:y,formError:m}}),O};e.default=p,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=function(t,e){var n=r({},t);return delete n[e],n},u=function o(t,e){var u=e.indexOf("."),i=e.indexOf("["),a=e.indexOf("]");if(i>0&&a!==i+1)throw new Error("found [ not followed by ]");if(i>0&&(0>u||u>i)){var s,f=function(){var u=e.substring(0,i);if(!Array.isArray(t[u]))return{v:n(t,u)};var f=e.substring(a+1);if("."===f[0]&&(f=f.substring(1)),f){var c=function(){var e=[];return t[u].forEach(function(t,r){var n=o(t,f);Object.keys(n).length&&(e[r]=n)}),{v:{v:e.length?r({},t,(s={},s[u]=e,s)):n(t,u)}}}();if("object"==typeof c)return c.v}return{v:n(t,u)}}();if("object"==typeof f)return f.v}if(u>0){var c,l=e.substring(0,u),d=e.substring(u+1);if(!t[l])return t;var p=o(t[l],d);return Object.keys(p).length?r({},t,(c={},c[l]=o(t[l],d),c)):n(t,l)}return n(t,e)};e.default=u,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=r(1),u=function(t){return n.makeFieldValue(void 0===t||t&&void 0===t.initial?{}:{initial:t.initial,value:t.initial})},o=function i(t){return t?Object.keys(t).reduce(function(e,r){var o=t[r];return Array.isArray(o)?e[r]=o.map(function(t){return n.isFieldValue(t)?u(t):i(t)}):o&&(n.isFieldValue(o)?e[r]=u(o):"object"==typeof o&&null!==o?e[r]=i(o):e[r]=o),e},{}):t};e.default=o,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(1),o=function(t){return"_"===t[0]},i=function a(t,e,r){for(var i=!0;i;){var s=t,f=e,c=r;i=!1;var l=function(){if(Array.isArray(s))return s.map(function(t,e){return a(t,f&&f[e],c)});if(s&&"object"==typeof s){var t=Object.keys(s).reduce(function(t,e){var r;return o(e)?t:n({},t,(r={},r[e]=a(s[e],f&&f[e],c),r))},s);return u.isFieldValue(s)&&u.makeFieldValue(t),t}return u.makeFieldValue(s)};if(!f){if(!s)return s;if(s[c]){var d=n({},s);return delete d[c],u.makeFieldValue(d)}return l()}if("string"==typeof f){var p;return u.makeFieldValue(n({},s,(p={},p[c]=f,p)))}{if(!Array.isArray(f)){if(u.isFieldValue(s)){var v;return u.makeFieldValue(n({},s,(v={},v[c]=f,v)))}var h=Object.keys(f);return h.length||s?h.reduce(function(t,e){var r;return o(e)?t:n({},t,(r={},r[e]=a(s&&s[e],f[e],c),r))},l()||{}):s}if(!s||Array.isArray(s)){var y=function(){var t=(s||[]).map(function(t,e){return a(t,f[e],c)});return f.forEach(function(e,r){return t[r]=a(t[r],e,c)}),{v:t}}();if("object"==typeof y)return y.v}t=s,e=f[0],r=c,i=!0,l=d=p=y=void 0}}};e.default=i,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(6),o=n(u),i=function(){},a=function(t){return o.default(t)?t.then(i,i):t};e.default=a,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=r(40),i=n(o),a=r(2),s=n(a),f=function(t,e,r,n){var o={};t.value!==e.value&&(o.value=e.value,o.checked="boolean"==typeof e.value?e.value:void 0);var a=i.default(e.value,e.initial);t.pristine!==a&&(o.dirty=!a,o.pristine=a);var f=n||e.submitError||e.asyncError;f!==t.error&&(o.error=f);var c=s.default(f);t.valid!==c&&(o.invalid=!c,o.valid=c),r!==t.active&&(o.active=r);var l=!!e.touched;l!==t.touched&&(o.touched=l);var d=!!e.visited;return d!==t.visited&&(o.visited=d),"initial"in e&&e.initial!==t.initialValue&&(t.defaultChecked=e.initial===!0,t.defaultValue=e.initial,t.initialValue=e.initial),Object.keys(o).length?u({},t,o):t};e.default=f,t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(23),o=function(t,e){return t?"function"==typeof t?t.length>1?function(r,o){return n({dispatch:r},t(r,o),u.bindActionCreators(e,r))}:function(r){return n({dispatch:r},t(r),u.bindActionCreators(e,r))}:function(r){return n({dispatch:r},u.bindActionCreators(t,r),u.bindActionCreators(e,r))}:function(t){return n({dispatch:t},u.bindActionCreators(e,t))}};e.default=o,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n=function(t,e){if(t){if("function"!=typeof t)throw new Error("mapStateToProps must be a function");return t.length>1?function(n,u){return r({},t(n,u),{form:e(n)})}:function(n){return r({},t(n),{form:e(n)})}}return function(t){return{form:e(t)}}};e.default=n,t.exports=e.default},function(t,e){function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function n(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var u="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=u?r:n,e.supported=r,e.unsupported=n},function(t,e){function r(t){var e=[];for(var r in t)e.push(r);return e}e=t.exports="function"==typeof Object.keys?Object.keys:r,e.shim=r},function(t,e,r){"use strict";var n=function(t,e,r,n,u,o,i,a){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,n,u,o,i,a],c=0;s=new Error(e.replace(/%s/g,function(){return f[c++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};t.exports=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return!!(t&&e&&t.some(function(t){return~e.indexOf(t)}))}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a=r(19),s=n(a),f=function(){function t(e,r){var n=this;u(this,t),this.component=e,this.allProps=[],this.cache=Object.keys(r).reduce(function(t,e){var u,o=r[e],a=o.fn,s=o.params;return s.forEach(function(t){~n.allProps.indexOf(t)||n.allProps.push(t)}),i({},t,(u={},u[e]={value:void 0,props:s,fn:a},u))},{})}return t.prototype.get=function(t){var e=this.component,r=this.cache[t],n=r.value,u=r.fn,o=r.props;if(void 0!==n)return n;var i=o.map(function(t){return e.props[t]}),a=u.apply(void 0,i);return this.cache[t].value=a,a},t.prototype.componentWillReceiveProps=function(t){var e=this,r=this.component,n=[];this.allProps.forEach(function(e){s.default(r.props[e],t[e])||n.push(e)}),n.length&&Object.keys(this.cache).forEach(function(t){o(n,e.cache[t].props)&&delete e.cache[t].value})},t}();e.default=f,t.exports=e.default},function(t,e,r){t.exports=r(53)},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(){d||(d=!0,console.error("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/rackt/react-redux/releases/tag/v2.0.0 for the migration instructions."))}var a=r(3),s=a.Component,f=a.PropTypes,c=a.Children,l=r(21),d=!1,p=function(t){function e(r,o){n(this,e);var i=u(this,t.call(this,r,o));return i.store=r.store,i}return o(e,t),e.prototype.getChildContext=function(){return{store:this.store}},e.prototype.componentWillReceiveProps=function(t){var e=this.store,r=t.store;e!==r&&i()},e.prototype.render=function(){var t=this.props.children;return c.only(t)},e}(s);p.propTypes={store:l.isRequired,children:f.element.isRequired},p.childContextTypes={store:l.isRequired},t.exports=p},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){return t.displayName||t.name||"Component"}function a(t,e,r){function a(t,e){var r=t.getState(),n=P?j(r,e):j(r);return m(v(n),"`mapStateToProps` must return an object. Instead received %s.",n),n}function f(t,e){var r=t.dispatch,n=R?S(r,e):S(r);return m(v(n),"`mapDispatchToProps` must return an object. Instead received %s.",n),n}function A(t,e,r){var n=V(t,e,r);return m(v(n),"`mergeProps` must return an object. Instead received %s.",n),n}var x=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],w=Boolean(t),j=t||g,S=v(e)?h(e):e||b,V=r||_,P=1!==j.length,R=1!==S.length,T=x.pure,E=void 0===T?!0:T,M=x.withRef,C=void 0===M?!1:M,F=O++;return function(t){var e=function(e){function r(t,o){n(this,r);var i=u(this,e.call(this,t,o));i.version=F,i.store=t.store||o.store,m(i.store,'Could not find "store" in either the context or '+('props of "'+i.constructor.displayName+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+i.constructor.displayName+'".'));var a=i.store.getState();return i.state={storeState:a},i.clearCache(),i}return o(r,e),r.prototype.shouldComponentUpdate=function(){return!E||this.haveOwnPropsChanged||this.hasStoreStateChanged},r.prototype.updateStatePropsIfNeeded=function(){var t=a(this.store,this.props);return this.stateProps&&p(t,this.stateProps)?!1:(this.stateProps=t,!0)},r.prototype.updateDispatchPropsIfNeeded=function(){var t=f(this.store,this.props);return this.dispatchProps&&p(t,this.dispatchProps)?!1:(this.dispatchProps=t,!0)},r.prototype.updateMergedProps=function(){this.mergedProps=A(this.stateProps,this.dispatchProps,this.props)},r.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},r.prototype.trySubscribe=function(){w&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},r.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},r.prototype.componentDidMount=function(){this.trySubscribe()},r.prototype.componentWillReceiveProps=function(t){E&&p(t,this.props)||(this.haveOwnPropsChanged=!0)},r.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},r.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.renderedElement=null},r.prototype.handleChange=function(){if(this.unsubscribe){var t=this.state.storeState,e=this.store.getState();E&&t===e||(this.hasStoreStateChanged=!0,this.setState({storeState:e}))}},r.prototype.getWrappedInstance=function(){return m(C,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},r.prototype.render=function(){var e=this.haveOwnPropsChanged,r=this.hasStoreStateChanged,n=this.renderedElement;this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1;var u=!0,o=!0;E&&n&&(u=r||e&&P,o=e&&R);var i=!1,a=!1;u&&(i=this.updateStatePropsIfNeeded()),o&&(a=this.updateDispatchPropsIfNeeded());var f=!0;return i||a||e?this.updateMergedProps():f=!1,!f&&n?n:(C?this.renderedElement=l(t,s({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=l(t,this.mergedProps),this.renderedElement)},r}(c);return e.displayName="Connect("+i(t)+")",e.WrappedComponent=t,e.contextTypes={store:d},e.propTypes={store:d},y(e,t)}}var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f=r(3),c=f.Component,l=f.createElement,d=r(21),p=r(59),v=r(58),h=r(60),y=r(20),m=r(52),g=function(t){return{}},b=function(t){return{dispatch:t}},_=function(t,e,r){return s({},r,t,e)},O=0;t.exports=a},function(t,e,r){"use strict";var n=r(55),u=r(56);t.exports={Provider:n,connect:u}},function(t,e){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function n(t){if(!t||"object"!==("undefined"==typeof t?"undefined":r(t)))return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var n=e.constructor;return"function"==typeof n&&n instanceof n&&u(n)===u(Object)}var u=function(t){return Function.prototype.toString.call(t)};t.exports=n},function(t,e){"use strict";function r(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var u=Object.prototype.hasOwnProperty,o=0;o<r.length;o++)if(!u.call(e,r[o])||t[r[o]]!==e[r[o]])return!1;return!0}t.exports=r},function(t,e,r){"use strict";function n(t){return function(e){return(0,u.bindActionCreators)(t,e)}}var u=r(23);t.exports=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return function(r,n){var u=t(r,n),i=u.dispatch,s=[],f={getState:u.getState,dispatch:function(t){return i(t)}};return s=e.map(function(t){return t(f)}),i=a.default.apply(void 0,s)(u.dispatch),o({},u,{dispatch:i})}}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=u;var i=r(24),a=n(i);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){return function(){return e(t.apply(void 0,arguments))}}function o(t,e){if("function"==typeof t)return u(t,e);if("object"!=typeof t||null===t||void 0===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return a.default(t,function(t){return u(t,e)})}e.__esModule=!0,e.default=o;var i=r(26),a=n(i);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){var r=e&&e.type,n=r&&'"'+r.toString()+'"'||"an action";return'Reducer "'+t+'" returned undefined handling '+n+". To ignore an action, you must explicitly return the previous state."}function o(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:a.ActionTypes.INIT});if("undefined"==typeof n)throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var u="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof r(void 0,{type:u}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+a.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function i(t){var e,r=d.default(t,function(t){return"function"==typeof t});try{o(r)}catch(n){e=n}var i=c.default(r,function(){});return function(t,n){if(void 0===t&&(t=i),e)throw e;var o=!1,a=c.default(r,function(e,r){var i=t[r],a=e(i,n);if("undefined"==typeof a){var s=u(r,n);throw new Error(s)}return o=o||a!==i,a});return o?a:t}}e.__esModule=!0,e.default=i;var a=r(22),s=r(25),f=(n(s),r(26)),c=n(f),l=r(64),d=n(l);t.exports=e.default},function(t,e){"use strict";function r(t,e){return Object.keys(t).reduce(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{})}e.__esModule=!0,e.default=r,t.exports=e.default}])}); |
@@ -49,2 +49,3 @@ 'use strict'; | ||
var fields = ['foo', 'baz']; | ||
var errorValue = { foo: 'error' }; | ||
var submit = _expect.createSpy().andReturn(69); | ||
@@ -56,3 +57,3 @@ var touch = _expect.createSpy(); | ||
var asyncValidate = _expect.createSpy(); | ||
var validate = _expect.createSpy().andReturn({ foo: 'error' }); | ||
var validate = _expect.createSpy().andReturn(errorValue); | ||
var props = { fields: fields, startSubmit: startSubmit, stopSubmit: stopSubmit, submitFailed: submitFailed, touch: touch, validate: validate, returnRejectedSubmitPromise: true }; | ||
@@ -72,3 +73,6 @@ | ||
_expect2['default'](false).toBe(true); // should not be in resolve branch | ||
}, done); | ||
}, function (error) { | ||
_expect2['default'](error).toBe(errorValue); | ||
done(); | ||
}); | ||
}); | ||
@@ -75,0 +79,0 @@ |
@@ -172,5 +172,4 @@ 'use strict'; | ||
// submitOrEvent is the submit function: return deferred submit thunk | ||
_eventsSilenceEvents2['default'](function (event) { | ||
_eventsSilenceEvent2['default'](event); | ||
_handleSubmit3['default'](check(submitOrEvent), _getValues2['default'](fields, form), _this2.props, _this2.asyncValidate); | ||
_eventsSilenceEvents2['default'](function () { | ||
return _handleSubmit3['default'](check(submitOrEvent), _getValues2['default'](fields, form), _this2.props, _this2.asyncValidate); | ||
}); | ||
@@ -177,0 +176,0 @@ }; |
@@ -55,3 +55,3 @@ 'use strict'; | ||
if (returnRejectedSubmitPromise) { | ||
return Promise.reject(); | ||
return Promise.reject(syncErrors); | ||
} | ||
@@ -58,0 +58,0 @@ }; |
@@ -299,8 +299,8 @@ 'use strict'; | ||
return _extends({}, formResult, _mapValues2['default'](formNormalizers, function (fieldNormalizer, field) { | ||
return _fieldValue.makeFieldValue(_extends({}, formResult[field], { | ||
value: fieldNormalizer(formResult[field] ? formResult[field].value : undefined, // value | ||
previous && previous[field] ? previous[field].value : undefined, // previous value | ||
_getValuesFromState2['default'](formResult), // all field values | ||
previousValues) // all previous field values | ||
})); | ||
var newValue = _fieldValue.makeFieldValue(fieldNormalizer(formResult[field] ? formResult[field].value : undefined, // value | ||
previous && previous[field] ? previous[field].value : undefined, // previous value | ||
_getValuesFromState2['default'](formResult), // all field values | ||
previousValues)); // all previous field values | ||
return Object.assign(formResult[field] || {}, { value: newValue }); | ||
})); | ||
@@ -307,0 +307,0 @@ }; |
{ | ||
"name": "redux-form", | ||
"version": "4.1.9", | ||
"version": "4.1.10", | ||
"description": "A higher order component decorator for forms using Redux and React", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -37,2 +37,3 @@ import expect, {createSpy} from 'expect'; | ||
const fields = ['foo', 'baz']; | ||
const errorValue = {foo: 'error'}; | ||
const submit = createSpy().andReturn(69); | ||
@@ -44,3 +45,3 @@ const touch = createSpy(); | ||
const asyncValidate = createSpy(); | ||
const validate = createSpy().andReturn({foo: 'error'}); | ||
const validate = createSpy().andReturn(errorValue); | ||
const props = {fields, startSubmit, stopSubmit, submitFailed, touch, validate, returnRejectedSubmitPromise: true}; | ||
@@ -64,3 +65,6 @@ | ||
expect(false).toBe(true); // should not be in resolve branch | ||
}, done); | ||
}, (error) => { | ||
expect(error).toBe(errorValue); | ||
done(); | ||
}); | ||
}); | ||
@@ -67,0 +71,0 @@ |
@@ -91,6 +91,4 @@ import * as importedActions from './actions'; | ||
// submitOrEvent is the submit function: return deferred submit thunk | ||
silenceEvents(event => { | ||
silenceEvent(event); | ||
handleSubmit(check(submitOrEvent), getValues(fields, form), this.props, this.asyncValidate); | ||
}); | ||
silenceEvents(() => | ||
handleSubmit(check(submitOrEvent), getValues(fields, form), this.props, this.asyncValidate)); | ||
} | ||
@@ -97,0 +95,0 @@ |
@@ -37,3 +37,3 @@ import isPromise from 'is-promise'; | ||
if (returnRejectedSubmitPromise) { | ||
return Promise.reject(); | ||
return Promise.reject(syncErrors); | ||
} | ||
@@ -40,0 +40,0 @@ }; |
@@ -242,10 +242,11 @@ import { ADD_ARRAY_VALUE, BLUR, CHANGE, DESTROY, FOCUS, INITIALIZE, REMOVE_ARRAY_VALUE, RESET, START_ASYNC_VALIDATION, | ||
...formResult, | ||
...mapValues(formNormalizers, (fieldNormalizer, field) => makeFieldValue({ | ||
...formResult[field], | ||
value: fieldNormalizer( | ||
...mapValues(formNormalizers, (fieldNormalizer, field) => { | ||
const newValue = makeFieldValue(fieldNormalizer( | ||
formResult[field] ? formResult[field].value : undefined, // value | ||
previous && previous[field] ? previous[field].value : undefined, // previous value | ||
getValuesFromState(formResult), // all field values | ||
previousValues) // all previous field values | ||
})) | ||
previousValues)); // all previous field values | ||
return Object.assign(formResult[field] || {}, { value: newValue }); | ||
}) | ||
}; | ||
@@ -252,0 +253,0 @@ }; |
Sorry, the diff of this file is too big to display
969047
26171