redux-form
Advanced tools
Comparing version 4.1.3 to 4.1.4
@@ -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=s.default(!1,o.default,i.connect),c=f.actionTypes,l=f.blur,d=f.change,p=f.changeWithKey,v=f.destroy,h=f.focus,y=f.reducer,m=f.reduxForm,g=f.getValues,b=f.initialize,_=f.initializeWithKey,O=f.propTypes,A=f.reset,x=f.startAsyncValidation,j=f.startSubmit,S=f.stopAsyncValidation,w=f.stopSubmit,P=f.touch,R=f.touchWithKey,T=f.untouch,E=f.untouchWithKey;e.actionTypes=c,e.blur=l,e.change=d,e.changeWithKey=p,e.destroy=v,e.focus=h,e.reducer=y,e.reduxForm=m,e.getValues=g,e.initialize=b,e.initializeWithKey=_,e.propTypes=O,e.reset=A,e.startAsyncValidation=x,e.startSubmit=j,e.stopAsyncValidation=S,e.stopSubmit=w,e.touch=P,e.touchWithKey=R,e.untouch=T,e.untouchWithKey=E},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){return{type:n.ADD_ARRAY_VALUE,path:t,value:e,index:r}};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]=T((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]=T(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]||P,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({},P,e)),u=f({},P,r);return f({},u,d.default(t,function(t,r){return f({},u[r],{value:S.makeFieldValue(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),j=n(x),S=r(1),w="_error";e.globalErrorKey=w;var P=(a={_active:void 0,_asyncValidating:!1},a[w]=void 0,a._initialized=!1,a._submitting=!1,a._submitFailed=!1,a);e.initialState=P;var R=(s={},s[c.ADD_ARRAY_VALUE]=function(t,e){var r=e.path,n=e.index,u=e.value,o=v.default(r,t),i=f({},t),a=o?[].concat(o):[],s=null!==u&&"object"==typeof u?_.default(u,Object.keys(u)):S.makeFieldValue({value:u});return void 0===n?a.push(s):a.splice(n,0,s),y.default(r,a,i)},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),S.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),S.makeFieldValue(r)},t)},s[c.DESTROY]=function(){},s[c.FOCUS]=function(t,e){var r=e.field,n=y.default(r,function(t){return S.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[w]=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[w]=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({},j.default(t,n,"asyncError"),(r={_asyncValidating:!1},r[w]=n&&n[w],r))},s[c.STOP_SUBMIT]=function(t,e){var r,n=e.errors;return f({},j.default(t,n,"submitError"),(r={},r[w]=n&&n[w],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 S.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 S.makeFieldValue(e)}return S.makeFieldValue(t)},t)},t))},s),T=function(){var t=arguments.length<=0||void 0===arguments[0]?P:arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=R[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,blur:j,change:S,changeWithKey:w,destroy:P,focus:R,getValues:A.default,initialize:T,initializeWithKey:E,propTypes:_.default(e),reduxForm:c.default(t,e,r),reducer:s.default,reset:V,startAsyncValidation:M,startSubmit:C,stopAsyncValidation:F,stopSubmit:I,submitFailed:k,touch:N,touchWithKey:U,untouch:q,untouchWithKey:D}}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)}})),j=x.blur,S=x.change,w=x.changeWithKey,P=x.destroy,R=x.focus,T=x.initialize,E=x.initializeWithKey,V=x.reset,M=x.startAsyncValidation,C=x.startSubmit,F=x.stopAsyncValidation,I=x.stopSubmit,k=x.submitFailed,N=x.touch,U=x.touchWithKey,q=x.untouch,D=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),j=r(38),S=n(j),w=r(27),P=n(w),R=r(37),T=n(R),E=r(12),V=n(E),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,j,w,R){var E=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);return!t||O.default(l[t])?{v:P.default(function(){return c(n,u,r.props)},a,s,t)}:void 0}();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||V.default(t)?S.default(i(n),b.default(u,o),this.props,this.asyncValidate):T.default(function(r){V.default(r),S.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:w,invalid:!b,pristine:g,submitting:c._submitting,submitFailed:c._submitFailed,valid:b,values:A,asyncValidate:T.default(function(){return e.asyncValidate()}),destroyForm:T.default(a),handleSubmit:this.handleSubmit,initializeForm:T.default(function(t){return l(t,f)}),resetForm:T.default(p),touch:T.default(function(){return v.apply(void 0,arguments)}),touchAll:T.default(function(){return v.apply(void 0,f)}),untouch:T.default(function(){return h.apply(void 0,arguments)}),untouchAll:T.default(function(){return h.apply(void 0,f)})},j=d?(t={},t[d]=x,t):x;return r.createElement(u,s({},y,j))},f}(g);E.displayName="ReduxForm("+d.default(u)+")",E.WrappedComponent=u,E.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},E.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!==w&&null!==w?n(I.default(f,function(t){var e=R(t,A);if(!e)throw new Error('You need to mount the redux-form reducer at "'+A+'"');return e&&e[j]&&e[j][w]}),C.default(l,m.default(M,{form:j,key:w})),v,y):n(I.default(f,function(t){var e=R(t,A);if(!e)throw new Error('You need to mount the redux-form reducer at "'+A+'"');return e&&e[j]}),C.default(l,m.default(M,{form:j})),v,y);return F(E)}};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()}c()};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}}e.__esModule=!0;var u=r(33),o=n(u),i=r(34),a=n(i),s=r(9),f=n(s),c=r(35),l=n(c),d=r(36),p=n(d),v=r(46),h=n(v),y=r(16),m=n(y),g=r(47),b=n(g),_=function O(t,e,r,n,u,i,s,c){for(var d=arguments,v=!0;v;){var y=t,g=e,_=r,A=n,x=u,j=i,S=s,w=c;void 0===_&&(_=""),v=!1;var P=d.length<=8||void 0===d[8]?function(){return null}:d[8],R=w.asyncBlurFields,T=w.blur,E=w.change,V=w.focus,M=w.form,C=w.initialValues,F=w.readonly,I=w.addArrayValue,k=w.removeArrayValue,N=w.swapArrayValues,U=g.indexOf("."),q=g.indexOf("["),D=g.indexOf("]");if(q>0&&D!==q+1)throw new Error("found [ not followed by ]");if(q>0&&(0>U||U>q)){var W=function(){var t=g.substring(0,q),e=g.substring(D+1);"."===e[0]&&(e=e.substring(1));var r=y&&y[t]||[];A[t]||(A[t]=[],Object.defineProperty(A[t],"addField",{value:function(e,r){return I(_+t,e,r)}}),Object.defineProperty(A[t],"removeField",{value:function(e){return k(_+t,e)}}),Object.defineProperty(A[t],"swapFields",{value:function(e,r){return N(_+t,e,r)}}));var n=A[t];return r.forEach(function(r,u){e&&!n[u]&&(n[u]={});var o=e?n[u]:{},i=O(r,e,""+_+t+"["+u+"]"+(e?".":""),o,x,j,S,w,P);e||(n[u]=i)}),n.length>r.length&&n.splice(r.length,n.length-r.length),{v:n}}();if("object"==typeof W)return W.v}if(!(U>0)){var L=_+g,B=A[g]||{};if(B.name!==L){var Y=a.default(L,E,S),K=m.default(L+".initial",M),z=K||m.default(L,C);B.name=L,B.defaultChecked=z===!0,B.defaultValue=z,B.initialValue=z,F||(B.onBlur=o.default(L,T,S,~R.indexOf(L)&&function(t,e){return h.default(j(t,e))}),B.onChange=Y,B.onDragStart=f.default(L,function(){return B.value}),B.onDrop=l.default(L,E),B.onFocus=p.default(L,V),B.onUpdate=Y),B.valid=!0,B.invalid=!1,Object.defineProperty(B,"_isField",{value:!0})}var H=(g?y[g]:y)||{},G=m.default(L,x),Z=b.default(B,H,L===M._active,G);return(g||A[g]!==Z)&&(A[g]=Z),P(Z),Z}var J=g.substring(0,U),Q=g.substring(U+1);A[J]||(A[J]={}),d=[t=y[J]||{},e=Q,r=_+J+".",n=A[J],u=x,i=j,s=S,c=w,P],v=!0,P=R=T=E=V=M=C=F=I=k=N=U=q=D=W=J=Q=void 0}};e.default=_,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),e.initial&&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=R?S(r,e):S(r);return m(v(n),"`mapStateToProps` must return an object. Instead received %s.",n),n}function f(t,e){var r=t.dispatch,n=T?w(r,e):w(r);return m(v(n),"`mapDispatchToProps` must return an object. Instead received %s.",n),n}function A(t,e,r){var n=P(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],j=Boolean(t),S=t||g,w=v(e)?h(e):e||b,P=r||_,R=1!==S.length,T=1!==w.length,E=x.pure,V=void 0===E?!0:E,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!V||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(){j&&!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){V&&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();V&&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;V&&n&&(u=r||e&&R,o=e&&T);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}])}); | ||
!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=s.default(!1,o.default,i.connect),c=f.actionTypes,l=f.addArrayValue,d=f.blur,p=f.change,v=f.changeWithKey,h=f.destroy,y=f.focus,m=f.reducer,g=f.reduxForm,b=f.removeArrayValue,_=f.getValues,O=f.initialize,A=f.initializeWithKey,x=f.propTypes,j=f.reset,S=f.startAsyncValidation,w=f.startSubmit,V=f.stopAsyncValidation,P=f.stopSubmit,R=f.swapArrayValues,T=f.touch,E=f.touchWithKey,M=f.untouch,C=f.untouchWithKey;e.actionTypes=c,e.addArrayValue=l,e.blur=d,e.change=p,e.changeWithKey=v,e.destroy=h,e.focus=y,e.reducer=m,e.reduxForm=g,e.removeArrayValue=b,e.getValues=_,e.initialize=O,e.initializeWithKey=A,e.propTypes=x,e.reset=j,e.startAsyncValidation=S,e.startSubmit=w,e.stopAsyncValidation=V,e.stopSubmit=P,e.swapArrayValues=R,e.touch=T,e.touchWithKey=E,e.untouch=M,e.untouchWithKey=C},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){return{type:n.ADD_ARRAY_VALUE,path:t,value:e,index:r}};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 f({},u[r],{value:S.makeFieldValue(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),j=n(x),S=r(1),w="_error";e.globalErrorKey=w;var V=(a={_active:void 0,_asyncValidating:!1},a[w]=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=v.default(r,t),i=f({},t),a=o?[].concat(o):[],s=null!==u&&"object"==typeof u?_.default(u,Object.keys(u)):S.makeFieldValue({value:u});return void 0===n?a.push(s):a.splice(n,0,s),y.default(r,a,i)},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),S.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),S.makeFieldValue(r)},t)},s[c.DESTROY]=function(){},s[c.FOCUS]=function(t,e){var r=e.field,n=y.default(r,function(t){return S.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[w]=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[w]=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({},j.default(t,n,"asyncError"),(r={_asyncValidating:!1},r[w]=n&&n[w],r))},s[c.STOP_SUBMIT]=function(t,e){var r,n=e.errors;return f({},j.default(t,n,"submitError"),(r={},r[w]=n&&n[w],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 S.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 S.makeFieldValue(e)}return S.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:j,blur:S,change:w,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)}})),j=x.addArrayValue,S=x.blur,w=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),j=r(38),S=n(j),w=r(27),V=n(w),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,j,w,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);return!t||O.default(l[t])?{v:V.default(function(){return c(n,u,r.props)},a,s,t)}:void 0}();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)?S.default(i(n),b.default(u,o),this.props,this.asyncValidate):R.default(function(r){E.default(r),S.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:w,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)})},j=d?(t={},t[d]=x,t):x;return r.createElement(u,s({},y,j))},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!==w&&null!==w?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[j]&&e[j][w]}),C.default(l,m.default(M,{form:j,key:w})),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[j]}),C.default(l,m.default(M,{form:j})),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()}c()};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}}e.__esModule=!0;var u=r(33),o=n(u),i=r(34),a=n(i),s=r(9),f=n(s),c=r(35),l=n(c),d=r(36),p=n(d),v=r(46),h=n(v),y=r(16),m=n(y),g=r(47),b=n(g),_=function O(t,e,r,n,u,i,s,c){for(var d=arguments,v=!0;v;){var y=t,g=e,_=r,A=n,x=u,j=i,S=s,w=c;void 0===_&&(_=""),v=!1;var V=d.length<=8||void 0===d[8]?function(){return null}:d[8],P=w.asyncBlurFields,R=w.blur,T=w.change,E=w.focus,M=w.form,C=w.initialValues,F=w.readonly,I=w.addArrayValue,k=w.removeArrayValue,N=w.swapArrayValues,U=g.indexOf("."),q=g.indexOf("["),D=g.indexOf("]");if(q>0&&D!==q+1)throw new Error("found [ not followed by ]");if(q>0&&(0>U||U>q)){var W=function(){var t=g.substring(0,q),e=g.substring(D+1);"."===e[0]&&(e=e.substring(1));var r=y&&y[t]||[];A[t]||(A[t]=[],Object.defineProperty(A[t],"addField",{value:function(e,r){return I(_+t,e,r)}}),Object.defineProperty(A[t],"removeField",{value:function(e){return k(_+t,e)}}),Object.defineProperty(A[t],"swapFields",{value:function(e,r){return N(_+t,e,r)}}));var n=A[t];return r.forEach(function(r,u){e&&!n[u]&&(n[u]={});var o=e?n[u]:{},i=O(r,e,""+_+t+"["+u+"]"+(e?".":""),o,x,j,S,w,V);e||(n[u]=i)}),n.length>r.length&&n.splice(r.length,n.length-r.length),{v:n}}();if("object"==typeof W)return W.v}if(!(U>0)){var L=_+g,B=A[g]||{};if(B.name!==L){var Y=a.default(L,T,S),K=m.default(L+".initial",M),z=K||m.default(L,C);B.name=L,B.defaultChecked=z===!0,B.defaultValue=z,B.initialValue=z,F||(B.onBlur=o.default(L,R,S,~P.indexOf(L)&&function(t,e){return h.default(j(t,e))}),B.onChange=Y,B.onDragStart=f.default(L,function(){return B.value}),B.onDrop=l.default(L,T),B.onFocus=p.default(L,E),B.onUpdate=Y),B.valid=!0,B.invalid=!1,Object.defineProperty(B,"_isField",{value:!0})}var H=(g?y[g]:y)||{},G=m.default(L,x),Z=b.default(B,H,L===M._active,G);return(g||A[g]!==Z)&&(A[g]=Z),V(Z),Z}var J=g.substring(0,U),Q=g.substring(U+1);A[J]||(A[J]={}),d=[t=y[J]||{},e=Q,r=_+J+".",n=A[J],u=x,i=j,s=S,c=w,V],v=!0,V=P=R=T=E=M=C=F=I=k=N=U=q=D=W=J=Q=void 0}};e.default=_,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?S(r,e):S(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?w(r,e):w(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],j=Boolean(t),S=t||g,w=v(e)?h(e):e||b,V=r||_,P=1!==S.length,R=1!==w.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(){j&&!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}])}); |
/* eslint react/no-multi-comp:0 */ | ||
'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
@@ -38,2 +40,8 @@ | ||
var createRestorableSpy = function createRestorableSpy(fn) { | ||
return _expect.createSpy(fn, function restore() { | ||
this.calls = []; | ||
}); | ||
}; | ||
describe('createReduxForm', function () { | ||
@@ -1786,2 +1794,220 @@ var reduxForm = _createReduxForm2['default'](false, _react2['default'], _reactRedux.connect); | ||
it('should only mutate the field that changed', function () { | ||
var store = makeStore(); | ||
var form = 'testForm'; | ||
var Decorated = reduxForm({ | ||
form: form, | ||
fields: ['larry', 'moe', 'curly'] | ||
})(Form); | ||
var dom = _reactAddonsTestUtils2['default'].renderIntoDocument(_react2['default'].createElement( | ||
_reactRedux.Provider, | ||
{ store: store }, | ||
_react2['default'].createElement(Decorated, null) | ||
)); | ||
var stub = _reactAddonsTestUtils2['default'].findRenderedComponentWithType(dom, Form); | ||
var larry = stub.props.fields.larry; | ||
var moe = stub.props.fields.moe; | ||
var curly = stub.props.fields.curly; | ||
moe.onChange('BONK!'); | ||
_expect2['default'](stub.props.fields.larry).toBe(larry); | ||
_expect2['default'](stub.props.fields.moe).toNotBe(moe); | ||
_expect2['default'](stub.props.fields.curly).toBe(curly); | ||
}); | ||
it('should only rerender the form that changed', function () { | ||
var store = makeStore(); | ||
var fooRender = createRestorableSpy().andReturn(_react2['default'].createElement('div', null)); | ||
var barRender = createRestorableSpy().andReturn(_react2['default'].createElement('div', null)); | ||
var FooForm = (function (_Component7) { | ||
_inherits(FooForm, _Component7); | ||
function FooForm() { | ||
_classCallCheck(this, FooForm); | ||
_Component7.apply(this, arguments); | ||
} | ||
FooForm.prototype.render = function render() { | ||
return fooRender(); | ||
}; | ||
return FooForm; | ||
})(_react.Component); | ||
var BarForm = (function (_Component8) { | ||
_inherits(BarForm, _Component8); | ||
function BarForm() { | ||
_classCallCheck(this, BarForm); | ||
_Component8.apply(this, arguments); | ||
} | ||
BarForm.prototype.render = function render() { | ||
return barRender(); | ||
}; | ||
return BarForm; | ||
})(_react.Component); | ||
var DecoratedFooForm = reduxForm({ | ||
form: 'foo', | ||
fields: ['name'] | ||
})(FooForm); | ||
var DecoratedBarForm = reduxForm({ | ||
form: 'bar', | ||
fields: ['name'] | ||
})(BarForm); | ||
var dom = _reactAddonsTestUtils2['default'].renderIntoDocument(_react2['default'].createElement( | ||
_reactRedux.Provider, | ||
{ store: store }, | ||
_react2['default'].createElement( | ||
'div', | ||
null, | ||
_react2['default'].createElement(DecoratedFooForm, null), | ||
_react2['default'].createElement(DecoratedBarForm, null) | ||
) | ||
)); | ||
var fooStub = _reactAddonsTestUtils2['default'].findRenderedComponentWithType(dom, FooForm); | ||
// first render | ||
_expect2['default'](fooRender).toHaveBeenCalled(); | ||
_expect2['default'](barRender).toHaveBeenCalled(); | ||
// restore spies | ||
fooRender.restore(); | ||
barRender.restore(); | ||
// change field on foo | ||
fooStub.props.fields.name.onChange('Tom'); | ||
// second render: only foo form | ||
_expect2['default'](fooRender).toHaveBeenCalled(); | ||
_expect2['default'](barRender).toNotHaveBeenCalled(); | ||
}); | ||
it('should only rerender the field components that change', function () { | ||
var store = makeStore(); | ||
var fooRenders = 0; | ||
var barRenders = 0; | ||
var FooInput = (function (_Component9) { | ||
_inherits(FooInput, _Component9); | ||
function FooInput() { | ||
_classCallCheck(this, FooInput); | ||
_Component9.apply(this, arguments); | ||
} | ||
FooInput.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { | ||
return this.props.field !== nextProps.field; | ||
}; | ||
FooInput.prototype.render = function render() { | ||
fooRenders++; | ||
var field = this.props.field; | ||
return _react2['default'].createElement('input', _extends({ type: 'text' }, field)); | ||
}; | ||
return FooInput; | ||
})(_react.Component); | ||
FooInput.propTypes = { | ||
field: _react.PropTypes.object.isRequired | ||
}; | ||
var BarInput = (function (_Component10) { | ||
_inherits(BarInput, _Component10); | ||
function BarInput() { | ||
_classCallCheck(this, BarInput); | ||
_Component10.apply(this, arguments); | ||
} | ||
BarInput.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { | ||
return this.props.field !== nextProps.field; | ||
}; | ||
BarInput.prototype.render = function render() { | ||
barRenders++; | ||
var field = this.props.field; | ||
return _react2['default'].createElement('input', _extends({ type: 'password' }, field)); | ||
}; | ||
return BarInput; | ||
})(_react.Component); | ||
BarInput.propTypes = { | ||
field: _react.PropTypes.object.isRequired | ||
}; | ||
var FieldTestForm = (function (_Component11) { | ||
_inherits(FieldTestForm, _Component11); | ||
function FieldTestForm() { | ||
_classCallCheck(this, FieldTestForm); | ||
_Component11.apply(this, arguments); | ||
} | ||
FieldTestForm.prototype.render = function render() { | ||
var _props$fields = this.props.fields; | ||
var foo = _props$fields.foo; | ||
var bar = _props$fields.bar; | ||
return _react2['default'].createElement( | ||
'div', | ||
null, | ||
_react2['default'].createElement(FooInput, { field: foo }), | ||
_react2['default'].createElement(BarInput, { field: bar }) | ||
); | ||
}; | ||
return FieldTestForm; | ||
})(_react.Component); | ||
FieldTestForm.propTypes = { | ||
fields: _react.PropTypes.object.isRequired | ||
}; | ||
var DecoratedForm = reduxForm({ | ||
form: 'fieldTest', | ||
fields: ['foo', 'bar'] | ||
})(FieldTestForm); | ||
var dom = _reactAddonsTestUtils2['default'].renderIntoDocument(_react2['default'].createElement( | ||
_reactRedux.Provider, | ||
{ store: store }, | ||
_react2['default'].createElement(DecoratedForm, null) | ||
)); | ||
var stub = _reactAddonsTestUtils2['default'].findRenderedComponentWithType(dom, FieldTestForm); | ||
// first render | ||
_expect2['default'](fooRenders).toBe(1); | ||
_expect2['default'](barRenders).toBe(1); | ||
// change field foo | ||
stub.props.fields.foo.onChange('Tom'); | ||
// second render, only foo should rerender | ||
_expect2['default'](fooRenders).toBe(2); | ||
_expect2['default'](barRenders).toBe(1); | ||
// change field bar | ||
stub.props.fields.bar.onChange('Jerry'); | ||
// third render, only bar should rerender | ||
_expect2['default'](fooRenders).toBe(2); | ||
_expect2['default'](barRenders).toBe(2); | ||
}); | ||
// Test to show bug https://github.com/erikras/redux-form/issues/550 | ||
@@ -1788,0 +2014,0 @@ // --- |
@@ -128,2 +128,9 @@ 'use strict'; | ||
}); | ||
it('should change initial and default values when initial changes', function () { | ||
_expect2['default'](_updateField2['default']({ initialValue: 1, defaultValue: 1 }, { initial: 2 }, false, undefined).initialValue).toBe(2); | ||
_expect2['default'](_updateField2['default']({ initialValue: 1, defaultValue: 1 }, { initial: 2 }, false, undefined).defaultValue).toBe(2); | ||
_expect2['default'](_updateField2['default']({ initialValue: 1, defaultValue: 1 }, { initial: undefined }, false, undefined).initialValue).toBe(undefined); | ||
_expect2['default'](_updateField2['default']({ initialValue: 1, defaultValue: 1 }, { initial: undefined }, false, undefined).defaultValue).toBe(undefined); | ||
}); | ||
}); |
@@ -91,2 +91,3 @@ 'use strict'; | ||
var addArrayValue = boundActions.addArrayValue; | ||
var blur = boundActions.blur; | ||
@@ -99,2 +100,3 @@ var change = boundActions.change; | ||
var initializeWithKey = boundActions.initializeWithKey; | ||
var removeArrayValue = boundActions.removeArrayValue; | ||
var reset = boundActions.reset; | ||
@@ -106,2 +108,3 @@ var startAsyncValidation = boundActions.startAsyncValidation; | ||
var submitFailed = boundActions.submitFailed; | ||
var swapArrayValues = boundActions.swapArrayValues; | ||
var touch = boundActions.touch; | ||
@@ -115,2 +118,3 @@ var touchWithKey = boundActions.touchWithKey; | ||
actionTypes: actionTypes, | ||
addArrayValue: addArrayValue, | ||
blur: blur, | ||
@@ -127,2 +131,3 @@ change: change, | ||
reducer: _reducer2['default'], | ||
removeArrayValue: removeArrayValue, | ||
reset: reset, | ||
@@ -134,2 +139,3 @@ startAsyncValidation: startAsyncValidation, | ||
submitFailed: submitFailed, | ||
swapArrayValues: swapArrayValues, | ||
touch: touch, | ||
@@ -136,0 +142,0 @@ touchWithKey: touchWithKey, |
@@ -20,2 +20,3 @@ 'use strict'; | ||
var actionTypes = _createAll.actionTypes; | ||
var addArrayValue = _createAll.addArrayValue; | ||
var blur = _createAll.blur; | ||
@@ -28,2 +29,3 @@ var change = _createAll.change; | ||
var reduxForm = _createAll.reduxForm; | ||
var removeArrayValue = _createAll.removeArrayValue; | ||
var getValues = _createAll.getValues; | ||
@@ -38,2 +40,3 @@ var initialize = _createAll.initialize; | ||
var stopSubmit = _createAll.stopSubmit; | ||
var swapArrayValues = _createAll.swapArrayValues; | ||
var touch = _createAll.touch; | ||
@@ -44,2 +47,3 @@ var touchWithKey = _createAll.touchWithKey; | ||
exports.actionTypes = actionTypes; | ||
exports.addArrayValue = addArrayValue; | ||
exports.blur = blur; | ||
@@ -52,2 +56,3 @@ exports.change = change; | ||
exports.reduxForm = reduxForm; | ||
exports.removeArrayValue = removeArrayValue; | ||
exports.getValues = getValues; | ||
@@ -62,2 +67,3 @@ exports.initialize = initialize; | ||
exports.stopSubmit = stopSubmit; | ||
exports.swapArrayValues = swapArrayValues; | ||
exports.touch = touch; | ||
@@ -64,0 +70,0 @@ exports.touchWithKey = touchWithKey; |
@@ -20,2 +20,3 @@ 'use strict'; | ||
var actionTypes = _createAll.actionTypes; | ||
var addArrayValue = _createAll.addArrayValue; | ||
var blur = _createAll.blur; | ||
@@ -32,2 +33,3 @@ var change = _createAll.change; | ||
var propTypes = _createAll.propTypes; | ||
var removeArrayValue = _createAll.removeArrayValue; | ||
var reset = _createAll.reset; | ||
@@ -38,2 +40,3 @@ var startAsyncValidation = _createAll.startAsyncValidation; | ||
var stopSubmit = _createAll.stopSubmit; | ||
var swapArrayValues = _createAll.swapArrayValues; | ||
var touch = _createAll.touch; | ||
@@ -44,2 +47,3 @@ var touchWithKey = _createAll.touchWithKey; | ||
exports.actionTypes = actionTypes; | ||
exports.addArrayValue = addArrayValue; | ||
exports.blur = blur; | ||
@@ -56,2 +60,3 @@ exports.change = change; | ||
exports.propTypes = propTypes; | ||
exports.removeArrayValue = removeArrayValue; | ||
exports.reset = reset; | ||
@@ -62,2 +67,3 @@ exports.startAsyncValidation = startAsyncValidation; | ||
exports.stopSubmit = stopSubmit; | ||
exports.swapArrayValues = swapArrayValues; | ||
exports.touch = touch; | ||
@@ -64,0 +70,0 @@ exports.touchWithKey = touchWithKey; |
@@ -59,3 +59,3 @@ 'use strict'; | ||
if (formField.initial && formField.initial !== field.initialValue) { | ||
if ('initial' in formField && formField.initial !== field.initialValue) { | ||
field.defaultChecked = formField.initial === true; | ||
@@ -62,0 +62,0 @@ field.defaultValue = formField.initial; |
{ | ||
"name": "redux-form", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"description": "A higher order component decorator for forms using Redux and React", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
/* eslint react/no-multi-comp:0 */ | ||
import expect from 'expect'; | ||
import expect, {createSpy} from 'expect'; | ||
import React, {Component, PropTypes} from 'react'; | ||
@@ -12,2 +12,8 @@ import {connect} from 'react-redux'; | ||
const createRestorableSpy = (fn) => { | ||
return createSpy(fn, function restore() { | ||
this.calls = []; | ||
}); | ||
}; | ||
describe('createReduxForm', () => { | ||
@@ -1702,2 +1708,158 @@ const reduxForm = createReduxForm(false, React, connect); | ||
it('should only mutate the field that changed', () => { | ||
const store = makeStore(); | ||
const form = 'testForm'; | ||
const Decorated = reduxForm({ | ||
form, | ||
fields: ['larry', 'moe', 'curly'] | ||
})(Form); | ||
const dom = TestUtils.renderIntoDocument( | ||
<Provider store={store}> | ||
<Decorated/> | ||
</Provider> | ||
); | ||
const stub = TestUtils.findRenderedComponentWithType(dom, Form); | ||
const larry = stub.props.fields.larry; | ||
const moe = stub.props.fields.moe; | ||
const curly = stub.props.fields.curly; | ||
moe.onChange('BONK!'); | ||
expect(stub.props.fields.larry).toBe(larry); | ||
expect(stub.props.fields.moe).toNotBe(moe); | ||
expect(stub.props.fields.curly).toBe(curly); | ||
}); | ||
it('should only rerender the form that changed', () => { | ||
const store = makeStore(); | ||
const fooRender = createRestorableSpy().andReturn(<div/>); | ||
const barRender = createRestorableSpy().andReturn(<div/>); | ||
class FooForm extends Component { | ||
render() { | ||
return fooRender(); | ||
} | ||
} | ||
class BarForm extends Component { | ||
render() { | ||
return barRender(); | ||
} | ||
} | ||
const DecoratedFooForm = reduxForm({ | ||
form: 'foo', | ||
fields: ['name'] | ||
})(FooForm); | ||
const DecoratedBarForm = reduxForm({ | ||
form: 'bar', | ||
fields: ['name'] | ||
})(BarForm); | ||
const dom = TestUtils.renderIntoDocument( | ||
<Provider store={store}> | ||
<div> | ||
<DecoratedFooForm/> | ||
<DecoratedBarForm/> | ||
</div> | ||
</Provider> | ||
); | ||
const fooStub = TestUtils.findRenderedComponentWithType(dom, FooForm); | ||
// first render | ||
expect(fooRender).toHaveBeenCalled(); | ||
expect(barRender).toHaveBeenCalled(); | ||
// restore spies | ||
fooRender.restore(); | ||
barRender.restore(); | ||
// change field on foo | ||
fooStub.props.fields.name.onChange('Tom'); | ||
// second render: only foo form | ||
expect(fooRender).toHaveBeenCalled(); | ||
expect(barRender).toNotHaveBeenCalled(); | ||
}); | ||
it('should only rerender the field components that change', () => { | ||
const store = makeStore(); | ||
let fooRenders = 0; | ||
let barRenders = 0; | ||
class FooInput extends Component { | ||
shouldComponentUpdate(nextProps) { | ||
return this.props.field !== nextProps.field; | ||
} | ||
render() { | ||
fooRenders++; | ||
const {field} = this.props; | ||
return <input type="text" {...field}/>; | ||
} | ||
} | ||
FooInput.propTypes = { | ||
field: PropTypes.object.isRequired | ||
}; | ||
class BarInput extends Component { | ||
shouldComponentUpdate(nextProps) { | ||
return this.props.field !== nextProps.field; | ||
} | ||
render() { | ||
barRenders++; | ||
const {field} = this.props; | ||
return <input type="password" {...field}/>; | ||
} | ||
} | ||
BarInput.propTypes = { | ||
field: PropTypes.object.isRequired | ||
}; | ||
class FieldTestForm extends Component { | ||
render() { | ||
const {fields: {foo, bar}} = this.props; | ||
return (<div> | ||
<FooInput field={foo}/> | ||
<BarInput field={bar}/> | ||
</div>); | ||
} | ||
} | ||
FieldTestForm.propTypes = { | ||
fields: PropTypes.object.isRequired | ||
}; | ||
const DecoratedForm = reduxForm({ | ||
form: 'fieldTest', | ||
fields: ['foo', 'bar'] | ||
})(FieldTestForm); | ||
const dom = TestUtils.renderIntoDocument( | ||
<Provider store={store}> | ||
<DecoratedForm/> | ||
</Provider> | ||
); | ||
const stub = TestUtils.findRenderedComponentWithType(dom, FieldTestForm); | ||
// first render | ||
expect(fooRenders).toBe(1); | ||
expect(barRenders).toBe(1); | ||
// change field foo | ||
stub.props.fields.foo.onChange('Tom'); | ||
// second render, only foo should rerender | ||
expect(fooRenders).toBe(2); | ||
expect(barRenders).toBe(1); | ||
// change field bar | ||
stub.props.fields.bar.onChange('Jerry'); | ||
// third render, only bar should rerender | ||
expect(fooRenders).toBe(2); | ||
expect(barRenders).toBe(2); | ||
}); | ||
// Test to show bug https://github.com/erikras/redux-form/issues/550 | ||
@@ -1704,0 +1866,0 @@ // --- |
@@ -119,2 +119,9 @@ import expect from 'expect'; | ||
}); | ||
it('should change initial and default values when initial changes', () => { | ||
expect(updateField({ initialValue: 1, defaultValue: 1 }, { initial: 2 }, false, undefined).initialValue).toBe(2); | ||
expect(updateField({ initialValue: 1, defaultValue: 1 }, { initial: 2 }, false, undefined).defaultValue).toBe(2); | ||
expect(updateField({ initialValue: 1, defaultValue: 1 }, { initial: undefined }, false, undefined).initialValue).toBe(undefined); | ||
expect(updateField({ initialValue: 1, defaultValue: 1 }, { initial: undefined }, false, undefined).defaultValue).toBe(undefined); | ||
}); | ||
}); |
@@ -23,2 +23,3 @@ import reducer from './reducer'; | ||
const addArrayValue = boundActions.addArrayValue; | ||
const blur = boundActions.blur; | ||
@@ -31,2 +32,3 @@ const change = boundActions.change; | ||
const initializeWithKey = boundActions.initializeWithKey; | ||
const removeArrayValue = boundActions.removeArrayValue; | ||
const reset = boundActions.reset; | ||
@@ -38,2 +40,3 @@ const startAsyncValidation = boundActions.startAsyncValidation; | ||
const submitFailed = boundActions.submitFailed; | ||
const swapArrayValues = boundActions.swapArrayValues; | ||
const touch = boundActions.touch; | ||
@@ -47,2 +50,3 @@ const touchWithKey = boundActions.touchWithKey; | ||
actionTypes, | ||
addArrayValue, | ||
blur, | ||
@@ -59,2 +63,3 @@ change, | ||
reducer, | ||
removeArrayValue, | ||
reset, | ||
@@ -66,2 +71,3 @@ startAsyncValidation, | ||
submitFailed, | ||
swapArrayValues, | ||
touch, | ||
@@ -68,0 +74,0 @@ touchWithKey, |
@@ -7,2 +7,3 @@ import React from 'react'; | ||
actionTypes, | ||
addArrayValue, | ||
blur, | ||
@@ -15,2 +16,3 @@ change, | ||
reduxForm, | ||
removeArrayValue, | ||
getValues, | ||
@@ -25,2 +27,3 @@ initialize, | ||
stopSubmit, | ||
swapArrayValues, | ||
touch, | ||
@@ -27,0 +30,0 @@ touchWithKey, |
@@ -7,2 +7,3 @@ import React from 'react-native'; | ||
actionTypes, | ||
addArrayValue, | ||
blur, | ||
@@ -19,2 +20,3 @@ change, | ||
propTypes, | ||
removeArrayValue, | ||
reset, | ||
@@ -25,2 +27,3 @@ startAsyncValidation, | ||
stopSubmit, | ||
swapArrayValues, | ||
touch, | ||
@@ -27,0 +30,0 @@ touchWithKey, |
@@ -46,3 +46,3 @@ import isPristine from './isPristine'; | ||
if (formField.initial && formField.initial !== field.initialValue) { | ||
if ('initial' in formField && formField.initial !== field.initialValue) { | ||
field.defaultChecked = formField.initial === true; | ||
@@ -49,0 +49,0 @@ field.defaultValue = formField.initial; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
949913
25659