UNPKG

129 kBJavaScriptView Raw
1(function webpackUniversalModuleDefinition(root, factory) {
2 if(typeof exports === 'object' && typeof module === 'object')
3 module.exports = factory(require("react"), require("react-redux"));
4 else if(typeof define === 'function' && define.amd)
5 define(["react", "react-redux"], factory);
6 else if(typeof exports === 'object')
7 exports["ReduxFormLite"] = factory(require("react"), require("react-redux"));
8 else
9 root["ReduxFormLite"] = factory(root["React"], root["ReactRedux"]);
10})(this, function(__WEBPACK_EXTERNAL_MODULE_17__, __WEBPACK_EXTERNAL_MODULE_23__) {
11return /******/ (function(modules) { // webpackBootstrap
12/******/ // The module cache
13/******/ var installedModules = {};
14
15/******/ // The require function
16/******/ function __webpack_require__(moduleId) {
17
18/******/ // Check if module is in cache
19/******/ if(installedModules[moduleId])
20/******/ return installedModules[moduleId].exports;
21
22/******/ // Create a new module (and put it into the cache)
23/******/ var module = installedModules[moduleId] = {
24/******/ i: moduleId,
25/******/ l: false,
26/******/ exports: {}
27/******/ };
28
29/******/ // Execute the module function
30/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
32/******/ // Flag the module as loaded
33/******/ module.l = true;
34
35/******/ // Return the exports of the module
36/******/ return module.exports;
37/******/ }
38
39
40/******/ // expose the modules object (__webpack_modules__)
41/******/ __webpack_require__.m = modules;
42
43/******/ // expose the module cache
44/******/ __webpack_require__.c = installedModules;
45
46/******/ // identity function for calling harmony imports with the correct context
47/******/ __webpack_require__.i = function(value) { return value; };
48
49/******/ // define getter function for harmony exports
50/******/ __webpack_require__.d = function(exports, name, getter) {
51/******/ if(!__webpack_require__.o(exports, name)) {
52/******/ Object.defineProperty(exports, name, {
53/******/ configurable: false,
54/******/ enumerable: true,
55/******/ get: getter
56/******/ });
57/******/ }
58/******/ };
59
60/******/ // getDefaultExport function for compatibility with non-harmony modules
61/******/ __webpack_require__.n = function(module) {
62/******/ var getter = module && module.__esModule ?
63/******/ function getDefault() { return module['default']; } :
64/******/ function getModuleExports() { return module; };
65/******/ __webpack_require__.d(getter, 'a', getter);
66/******/ return getter;
67/******/ };
68
69/******/ // Object.prototype.hasOwnProperty.call
70/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
71
72/******/ // __webpack_public_path__
73/******/ __webpack_require__.p = "";
74
75/******/ // Load entry module and return exports
76/******/ return __webpack_require__(__webpack_require__.s = 104);
77/******/ })
78/************************************************************************/
79/******/ ([
80/* 0 */
81/***/ function(module, exports, __webpack_require__) {
82
83var _curry1 = __webpack_require__(1);
84var _isPlaceholder = __webpack_require__(13);
85
86
87/**
88 * Optimized internal two-arity curry function.
89 *
90 * @private
91 * @category Function
92 * @param {Function} fn The function to curry.
93 * @return {Function} The curried function.
94 */
95module.exports = function _curry2(fn) {
96 return function f2(a, b) {
97 switch (arguments.length) {
98 case 0:
99 return f2;
100 case 1:
101 return _isPlaceholder(a) ? f2
102 : _curry1(function(_b) { return fn(a, _b); });
103 default:
104 return _isPlaceholder(a) && _isPlaceholder(b) ? f2
105 : _isPlaceholder(a) ? _curry1(function(_a) { return fn(_a, b); })
106 : _isPlaceholder(b) ? _curry1(function(_b) { return fn(a, _b); })
107 : fn(a, b);
108 }
109 };
110};
111
112
113/***/ },
114/* 1 */
115/***/ function(module, exports, __webpack_require__) {
116
117var _isPlaceholder = __webpack_require__(13);
118
119
120/**
121 * Optimized internal one-arity curry function.
122 *
123 * @private
124 * @category Function
125 * @param {Function} fn The function to curry.
126 * @return {Function} The curried function.
127 */
128module.exports = function _curry1(fn) {
129 return function f1(a) {
130 if (arguments.length === 0 || _isPlaceholder(a)) {
131 return f1;
132 } else {
133 return fn.apply(this, arguments);
134 }
135 };
136};
137
138
139/***/ },
140/* 2 */
141/***/ function(module, exports, __webpack_require__) {
142
143var _curry1 = __webpack_require__(1);
144var _curry2 = __webpack_require__(0);
145var _isPlaceholder = __webpack_require__(13);
146
147
148/**
149 * Optimized internal three-arity curry function.
150 *
151 * @private
152 * @category Function
153 * @param {Function} fn The function to curry.
154 * @return {Function} The curried function.
155 */
156module.exports = function _curry3(fn) {
157 return function f3(a, b, c) {
158 switch (arguments.length) {
159 case 0:
160 return f3;
161 case 1:
162 return _isPlaceholder(a) ? f3
163 : _curry2(function(_b, _c) { return fn(a, _b, _c); });
164 case 2:
165 return _isPlaceholder(a) && _isPlaceholder(b) ? f3
166 : _isPlaceholder(a) ? _curry2(function(_a, _c) { return fn(_a, b, _c); })
167 : _isPlaceholder(b) ? _curry2(function(_b, _c) { return fn(a, _b, _c); })
168 : _curry1(function(_c) { return fn(a, b, _c); });
169 default:
170 return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3
171 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function(_a, _b) { return fn(_a, _b, c); })
172 : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function(_a, _c) { return fn(_a, b, _c); })
173 : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function(_b, _c) { return fn(a, _b, _c); })
174 : _isPlaceholder(a) ? _curry1(function(_a) { return fn(_a, b, c); })
175 : _isPlaceholder(b) ? _curry1(function(_b) { return fn(a, _b, c); })
176 : _isPlaceholder(c) ? _curry1(function(_c) { return fn(a, b, _c); })
177 : fn(a, b, c);
178 }
179 };
180};
181
182
183/***/ },
184/* 3 */
185/***/ function(module, exports) {
186
187module.exports = function _has(prop, obj) {
188 return Object.prototype.hasOwnProperty.call(obj, prop);
189};
190
191
192/***/ },
193/* 4 */
194/***/ function(module, exports, __webpack_require__) {
195
196var _curry1 = __webpack_require__(1);
197var _has = __webpack_require__(3);
198var _isArguments = __webpack_require__(74);
199
200
201/**
202 * Returns a list containing the names of all the enumerable own properties of
203 * the supplied object.
204 * Note that the order of the output array is not guaranteed to be consistent
205 * across different JS platforms.
206 *
207 * @func
208 * @memberOf R
209 * @since v0.1.0
210 * @category Object
211 * @sig {k: v} -> [k]
212 * @param {Object} obj The object to extract properties from
213 * @return {Array} An array of the object's own properties.
214 * @example
215 *
216 * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
217 */
218module.exports = (function() {
219 // cover IE < 9 keys issues
220 var hasEnumBug = !({toString: null}).propertyIsEnumerable('toString');
221 var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString',
222 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
223 // Safari bug
224 var hasArgsEnumBug = (function() {
225 'use strict';
226 return arguments.propertyIsEnumerable('length');
227 }());
228
229 var contains = function contains(list, item) {
230 var idx = 0;
231 while (idx < list.length) {
232 if (list[idx] === item) {
233 return true;
234 }
235 idx += 1;
236 }
237 return false;
238 };
239
240 return typeof Object.keys === 'function' && !hasArgsEnumBug ?
241 _curry1(function keys(obj) {
242 return Object(obj) !== obj ? [] : Object.keys(obj);
243 }) :
244 _curry1(function keys(obj) {
245 if (Object(obj) !== obj) {
246 return [];
247 }
248 var prop, nIdx;
249 var ks = [];
250 var checkArgsLength = hasArgsEnumBug && _isArguments(obj);
251 for (prop in obj) {
252 if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {
253 ks[ks.length] = prop;
254 }
255 }
256 if (hasEnumBug) {
257 nIdx = nonEnumerableProps.length - 1;
258 while (nIdx >= 0) {
259 prop = nonEnumerableProps[nIdx];
260 if (_has(prop, obj) && !contains(ks, prop)) {
261 ks[ks.length] = prop;
262 }
263 nIdx -= 1;
264 }
265 }
266 return ks;
267 });
268}());
269
270
271/***/ },
272/* 5 */
273/***/ function(module, exports, __webpack_require__) {
274
275var _assign = __webpack_require__(30);
276var _curry2 = __webpack_require__(0);
277
278
279/**
280 * Create a new object with the own properties of the first object merged with
281 * the own properties of the second object. If a key exists in both objects,
282 * the value from the second object will be used.
283 *
284 * @func
285 * @memberOf R
286 * @since v0.1.0
287 * @category Object
288 * @sig {k: v} -> {k: v} -> {k: v}
289 * @param {Object} l
290 * @param {Object} r
291 * @return {Object}
292 * @see R.mergeWith, R.mergeWithKey
293 * @example
294 *
295 * R.merge({ 'name': 'fred', 'age': 10 }, { 'age': 40 });
296 * //=> { 'name': 'fred', 'age': 40 }
297 *
298 * var resetToDefault = R.merge(R.__, {x: 0});
299 * resetToDefault({x: 5, y: 2}); //=> {x: 0, y: 2}
300 * @symb R.merge({ x: 1, y: 2 }, { y: 5, z: 3 }) = { x: 1, y: 5, z: 3 }
301 */
302module.exports = _curry2(function merge(l, r) {
303 return _assign({}, l, r);
304});
305
306
307/***/ },
308/* 6 */
309/***/ function(module, exports) {
310
311"use strict";
312'use strict';
313
314Object.defineProperty(exports, "__esModule", {
315 value: true
316});
317
318var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
319
320exports.isString = isString;
321exports.isNumber = isNumber;
322exports.isPromise = isPromise;
323exports.isFunction = isFunction;
324exports.isEvent = isEvent;
325exports.unflatten = unflatten;
326exports.invariant = invariant;
327function isString(cand) {
328 return typeof cand === 'string';
329}
330function isNumber(cand) {
331 return typeof cand === 'number';
332}
333function isPromise(cand) {
334 return Boolean(cand) && (typeof cand === 'undefined' ? 'undefined' : _typeof(cand)) === 'object' && typeof cand.then === 'function';
335}
336function isFunction(cand) {
337 return typeof cand === 'function';
338}
339function isEvent(cand) {
340 return Boolean(cand && (typeof cand === 'undefined' ? 'undefined' : _typeof(cand)) === 'object' && isFunction(cand.preventDefault) && isFunction(cand.stopPropagation));
341}
342// NOTE: ugly imperative code
343// A rewrite would be welcome.
344function unflatten(obj) {
345 var result = {};
346 Object.keys(obj).forEach(function (prop) {
347 return prop.split('.').reduce(function (acc, key, index, array) {
348 var k = Number.isNaN(Number(key)) ? key : Number(key);
349 if (index === array.length - 1) {
350 return acc[k] = obj[prop];
351 }
352 if (acc[k]) {
353 return acc[k] = acc[k];
354 }
355 if (!Number.isNaN(Number(array[index + 1]))) {
356 return acc[k] = [];
357 }
358 return acc[k] = {};
359 }, result);
360 });
361 return result;
362}
363function invariant(cond, msg) {
364 if (cond) {
365 return;
366 }
367 var error = new Error(msg);
368 error.name = 'Invariant violation';
369 throw error;
370}
371
372/***/ },
373/* 7 */
374/***/ function(module, exports, __webpack_require__) {
375
376var pipe = __webpack_require__(96);
377var reverse = __webpack_require__(99);
378
379
380/**
381 * Performs right-to-left function composition. The rightmost function may have
382 * any arity; the remaining functions must be unary.
383 *
384 * **Note:** The result of compose is not automatically curried.
385 *
386 * @func
387 * @memberOf R
388 * @since v0.1.0
389 * @category Function
390 * @sig ((y -> z), (x -> y), ..., (o -> p), ((a, b, ..., n) -> o)) -> ((a, b, ..., n) -> z)
391 * @param {...Function} ...functions The functions to compose
392 * @return {Function}
393 * @see R.pipe
394 * @example
395 *
396 * var classyGreeting = (firstName, lastName) => "The name's " + lastName + ", " + firstName + " " + lastName
397 * var yellGreeting = R.compose(R.toUpper, classyGreeting);
398 * yellGreeting('James', 'Bond'); //=> "THE NAME'S BOND, JAMES BOND"
399 *
400 * R.compose(Math.abs, R.add(1), R.multiply(2))(-4) //=> 7
401 *
402 * @symb R.compose(f, g, h)(a, b) = f(g(h(a, b)))
403 */
404module.exports = function compose() {
405 if (arguments.length === 0) {
406 throw new Error('compose requires at least one argument');
407 }
408 return pipe.apply(this, reverse(arguments));
409};
410
411
412/***/ },
413/* 8 */
414/***/ function(module, exports) {
415
416module.exports = function _arity(n, fn) {
417 /* eslint-disable no-unused-vars */
418 switch (n) {
419 case 0: return function() { return fn.apply(this, arguments); };
420 case 1: return function(a0) { return fn.apply(this, arguments); };
421 case 2: return function(a0, a1) { return fn.apply(this, arguments); };
422 case 3: return function(a0, a1, a2) { return fn.apply(this, arguments); };
423 case 4: return function(a0, a1, a2, a3) { return fn.apply(this, arguments); };
424 case 5: return function(a0, a1, a2, a3, a4) { return fn.apply(this, arguments); };
425 case 6: return function(a0, a1, a2, a3, a4, a5) { return fn.apply(this, arguments); };
426 case 7: return function(a0, a1, a2, a3, a4, a5, a6) { return fn.apply(this, arguments); };
427 case 8: return function(a0, a1, a2, a3, a4, a5, a6, a7) { return fn.apply(this, arguments); };
428 case 9: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) { return fn.apply(this, arguments); };
429 case 10: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) { return fn.apply(this, arguments); };
430 default: throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
431 }
432};
433
434
435/***/ },
436/* 9 */
437/***/ function(module, exports) {
438
439"use strict";
440'use strict';
441
442Object.defineProperty(exports, "__esModule", {
443 value: true
444});
445var ADD_FORM = exports.ADD_FORM = '@redux-form-lite/ADD_FORM';
446var REMOVE_FORM = exports.REMOVE_FORM = '@redux-form-lite/REMOVE_FORM';
447var ADD_FIELD = exports.ADD_FIELD = '@redux-form-lite/ADD_FIELD';
448var REMOVE_FIELD = exports.REMOVE_FIELD = '@redux-form-lite/REMOVE_FIELD';
449var TOUCH_ALL = exports.TOUCH_ALL = '@redux-form-lite/TOUCH_ALL';
450var SUBMIT_START = exports.SUBMIT_START = '@redux-form-lite/SUBMIT_START';
451var SUBMIT_STOP = exports.SUBMIT_STOP = '@redux-form-lite/SUBMIT_STOP';
452var ADD_ARRAY = exports.ADD_ARRAY = '@redux-form-lite/ADD_ARRAY';
453var REMOVE_ARRAY = exports.REMOVE_ARRAY = '@redux-form-lite/REMOVE_ARRAY';
454var ARRAY_PUSH = exports.ARRAY_PUSH = '@redux-form-lite/ARRAY_PUSH';
455var ARRAY_POP = exports.ARRAY_POP = '@redux-form-lite/ARRAY_POP';
456var ARRAY_UNSHIFT = exports.ARRAY_UNSHIFT = '@redux-form-lite/ARRAY_UNSHIFT';
457var ARRAY_SHIFT = exports.ARRAY_SHIFT = '@redux-form-lite/ARRAY_SHIFT';
458var FIELD_CHANGE = exports.FIELD_CHANGE = '@redux-form-lite/FIELD_CHANGE';
459var FIELD_FOCUS = exports.FIELD_FOCUS = '@redux-form-lite/FIELD_FOCUS';
460var FIELD_BLUR = exports.FIELD_BLUR = '@redux-form-lite/FIELD_BLUR';
461var FIELD_VALUE = exports.FIELD_VALUE = '@redux-form-lite/FIELD_VALUE';
462var FIELD_ERROR = exports.FIELD_ERROR = '@redux-form-lite/FIELD_ERROR';
463var addForm = exports.addForm = function addForm(name) {
464 return {
465 type: ADD_FORM,
466 payload: { name: name }
467 };
468};
469var removeForm = exports.removeForm = function removeForm(name) {
470 return {
471 type: REMOVE_FORM,
472 payload: { name: name }
473 };
474};
475var addField = exports.addField = function addField(form, id, field) {
476 return {
477 type: ADD_FIELD,
478 payload: { form: form, id: id, field: field }
479 };
480};
481var removeField = exports.removeField = function removeField(form, id) {
482 return {
483 type: REMOVE_FIELD,
484 payload: { form: form, id: id }
485 };
486};
487var touchAll = exports.touchAll = function touchAll(form) {
488 return {
489 type: TOUCH_ALL,
490 payload: { form: form }
491 };
492};
493var submitStart = exports.submitStart = function submitStart(form) {
494 return {
495 type: SUBMIT_START,
496 payload: { form: form }
497 };
498};
499var submitStop = exports.submitStop = function submitStop(form) {
500 return {
501 type: SUBMIT_STOP,
502 payload: { form: form }
503 };
504};
505var addArray = exports.addArray = function addArray(form, id) {
506 return {
507 type: ADD_ARRAY,
508 payload: { form: form, id: id }
509 };
510};
511var removeArray = exports.removeArray = function removeArray(form, id) {
512 return {
513 type: REMOVE_ARRAY,
514 payload: { form: form, id: id }
515 };
516};
517var arrayPush = exports.arrayPush = function arrayPush(form, id) {
518 return {
519 type: ARRAY_PUSH,
520 payload: { form: form, id: id }
521 };
522};
523var arrayPop = exports.arrayPop = function arrayPop(form, id) {
524 return {
525 type: ARRAY_POP,
526 payload: { form: form, id: id }
527 };
528};
529var arrayUnshift = exports.arrayUnshift = function arrayUnshift(form, id) {
530 return {
531 type: ARRAY_UNSHIFT,
532 payload: { form: form, id: id }
533 };
534};
535var arrayShift = exports.arrayShift = function arrayShift(form, id) {
536 return {
537 type: ARRAY_SHIFT,
538 payload: { form: form, id: id }
539 };
540};
541var fieldChange = exports.fieldChange = function fieldChange(form, field, value, error, dirty) {
542 return {
543 type: FIELD_CHANGE,
544 payload: { form: form, field: field, value: value, error: error, dirty: dirty }
545 };
546};
547var fieldFocus = exports.fieldFocus = function fieldFocus(form, field) {
548 return {
549 type: FIELD_FOCUS,
550 payload: { form: form, field: field }
551 };
552};
553var fieldBlur = exports.fieldBlur = function fieldBlur(form, field, value, error, dirty) {
554 return {
555 type: FIELD_BLUR,
556 payload: { form: form, field: field, value: value, error: error, dirty: dirty }
557 };
558};
559var fieldValue = exports.fieldValue = function fieldValue(form, field, value) {
560 return {
561 type: FIELD_VALUE,
562 payload: { form: form, field: field, value: value }
563 };
564};
565var fieldError = exports.fieldError = function fieldError(form, field, error) {
566 return {
567 type: FIELD_ERROR,
568 payload: { form: form, field: field, error: error }
569 };
570};
571
572/***/ },
573/* 10 */
574/***/ function(module, exports, __webpack_require__) {
575
576var _curry3 = __webpack_require__(2);
577
578
579/**
580 * Makes a shallow clone of an object, setting or overriding the specified
581 * property with the given value. Note that this copies and flattens prototype
582 * properties onto the new object as well. All non-primitive properties are
583 * copied by reference.
584 *
585 * @func
586 * @memberOf R
587 * @since v0.8.0
588 * @category Object
589 * @sig String -> a -> {k: v} -> {k: v}
590 * @param {String} prop The property name to set
591 * @param {*} val The new value
592 * @param {Object} obj The object to clone
593 * @return {Object} A new object equivalent to the original except for the changed property.
594 * @see R.dissoc
595 * @example
596 *
597 * R.assoc('c', 3, {a: 1, b: 2}); //=> {a: 1, b: 2, c: 3}
598 */
599module.exports = _curry3(function assoc(prop, val, obj) {
600 var result = {};
601 for (var p in obj) {
602 result[p] = obj[p];
603 }
604 result[prop] = val;
605 return result;
606});
607
608
609/***/ },
610/* 11 */
611/***/ function(module, exports, __webpack_require__) {
612
613var _isArray = __webpack_require__(12);
614var _isTransformer = __webpack_require__(78);
615
616
617/**
618 * Returns a function that dispatches with different strategies based on the
619 * object in list position (last argument). If it is an array, executes [fn].
620 * Otherwise, if it has a function with one of the given method names, it will
621 * execute that function (functor case). Otherwise, if it is a transformer,
622 * uses transducer [xf] to return a new transformer (transducer case).
623 * Otherwise, it will default to executing [fn].
624 *
625 * @private
626 * @param {Array} methodNames properties to check for a custom implementation
627 * @param {Function} xf transducer to initialize if object is transformer
628 * @param {Function} fn default ramda implementation
629 * @return {Function} A function that dispatches on object in list position
630 */
631module.exports = function _dispatchable(methodNames, xf, fn) {
632 return function() {
633 if (arguments.length === 0) {
634 return fn();
635 }
636 var args = Array.prototype.slice.call(arguments, 0);
637 var obj = args.pop();
638 if (!_isArray(obj)) {
639 var idx = 0;
640 while (idx < methodNames.length) {
641 if (typeof obj[methodNames[idx]] === 'function') {
642 return obj[methodNames[idx]].apply(obj, args);
643 }
644 idx += 1;
645 }
646 if (_isTransformer(obj)) {
647 var transducer = xf.apply(null, args);
648 return transducer(obj);
649 }
650 }
651 return fn.apply(this, arguments);
652 };
653};
654
655
656/***/ },
657/* 12 */
658/***/ function(module, exports) {
659
660/**
661 * Tests whether or not an object is an array.
662 *
663 * @private
664 * @param {*} val The object to test.
665 * @return {Boolean} `true` if `val` is an array, `false` otherwise.
666 * @example
667 *
668 * _isArray([]); //=> true
669 * _isArray(null); //=> false
670 * _isArray({}); //=> false
671 */
672module.exports = Array.isArray || function _isArray(val) {
673 return (val != null &&
674 val.length >= 0 &&
675 Object.prototype.toString.call(val) === '[object Array]');
676};
677
678
679/***/ },
680/* 13 */
681/***/ function(module, exports) {
682
683module.exports = function _isPlaceholder(a) {
684 return a != null &&
685 typeof a === 'object' &&
686 a['@@functional/placeholder'] === true;
687};
688
689
690/***/ },
691/* 14 */
692/***/ function(module, exports, __webpack_require__) {
693
694var _curry2 = __webpack_require__(0);
695var _dispatchable = __webpack_require__(11);
696var _map = __webpack_require__(35);
697var _reduce = __webpack_require__(20);
698var _xmap = __webpack_require__(87);
699var curryN = __webpack_require__(18);
700var keys = __webpack_require__(4);
701
702
703/**
704 * Takes a function and
705 * a [functor](https://github.com/fantasyland/fantasy-land#functor),
706 * applies the function to each of the functor's values, and returns
707 * a functor of the same shape.
708 *
709 * Ramda provides suitable `map` implementations for `Array` and `Object`,
710 * so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
711 *
712 * Dispatches to the `map` method of the second argument, if present.
713 *
714 * Acts as a transducer if a transformer is given in list position.
715 *
716 * Also treats functions as functors and will compose them together.
717 *
718 * @func
719 * @memberOf R
720 * @since v0.1.0
721 * @category List
722 * @sig Functor f => (a -> b) -> f a -> f b
723 * @param {Function} fn The function to be called on every element of the input `list`.
724 * @param {Array} list The list to be iterated over.
725 * @return {Array} The new list.
726 * @see R.transduce, R.addIndex
727 * @example
728 *
729 * var double = x => x * 2;
730 *
731 * R.map(double, [1, 2, 3]); //=> [2, 4, 6]
732 *
733 * R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
734 * @symb R.map(f, [a, b]) = [f(a), f(b)]
735 * @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
736 * @symb R.map(f, functor_o) = functor_o.map(f)
737 */
738module.exports = _curry2(_dispatchable(['map'], _xmap, function map(fn, functor) {
739 switch (Object.prototype.toString.call(functor)) {
740 case '[object Function]':
741 return curryN(functor.length, function() {
742 return fn.call(this, functor.apply(this, arguments));
743 });
744 case '[object Object]':
745 return _reduce(function(acc, key) {
746 acc[key] = fn(functor[key]);
747 return acc;
748 }, {}, keys(functor));
749 default:
750 return _map(fn, functor);
751 }
752}));
753
754
755/***/ },
756/* 15 */
757/***/ function(module, exports, __webpack_require__) {
758
759var _curry2 = __webpack_require__(0);
760
761
762/**
763 * Retrieve the value at a given path.
764 *
765 * @func
766 * @memberOf R
767 * @since v0.2.0
768 * @category Object
769 * @typedefn Idx = String | Int
770 * @sig [Idx] -> {a} -> a | Undefined
771 * @param {Array} path The path to use.
772 * @param {Object} obj The object to retrieve the nested property from.
773 * @return {*} The data at `path`.
774 * @see R.prop
775 * @example
776 *
777 * R.path(['a', 'b'], {a: {b: 2}}); //=> 2
778 * R.path(['a', 'b'], {c: {b: 2}}); //=> undefined
779 */
780module.exports = _curry2(function path(paths, obj) {
781 var val = obj;
782 var idx = 0;
783 while (idx < paths.length) {
784 if (val == null) {
785 return;
786 }
787 val = val[paths[idx]];
788 idx += 1;
789 }
790 return val;
791});
792
793
794/***/ },
795/* 16 */
796/***/ function(module, exports, __webpack_require__) {
797
798var _curry2 = __webpack_require__(0);
799
800
801/**
802 * Returns a function that when supplied an object returns the indicated
803 * property of that object, if it exists.
804 *
805 * @func
806 * @memberOf R
807 * @since v0.1.0
808 * @category Object
809 * @sig s -> {s: a} -> a | Undefined
810 * @param {String} p The property name
811 * @param {Object} obj The object to query
812 * @return {*} The value at `obj.p`.
813 * @see R.path
814 * @example
815 *
816 * R.prop('x', {x: 100}); //=> 100
817 * R.prop('x', {}); //=> undefined
818 */
819module.exports = _curry2(function prop(p, obj) { return obj[p]; });
820
821
822/***/ },
823/* 17 */
824/***/ function(module, exports) {
825
826module.exports = __WEBPACK_EXTERNAL_MODULE_17__;
827
828/***/ },
829/* 18 */
830/***/ function(module, exports, __webpack_require__) {
831
832var _arity = __webpack_require__(8);
833var _curry1 = __webpack_require__(1);
834var _curry2 = __webpack_require__(0);
835var _curryN = __webpack_require__(68);
836
837
838/**
839 * Returns a curried equivalent of the provided function, with the specified
840 * arity. The curried function has two unusual capabilities. First, its
841 * arguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the
842 * following are equivalent:
843 *
844 * - `g(1)(2)(3)`
845 * - `g(1)(2, 3)`
846 * - `g(1, 2)(3)`
847 * - `g(1, 2, 3)`
848 *
849 * Secondly, the special placeholder value `R.__` may be used to specify
850 * "gaps", allowing partial application of any combination of arguments,
851 * regardless of their positions. If `g` is as above and `_` is `R.__`, the
852 * following are equivalent:
853 *
854 * - `g(1, 2, 3)`
855 * - `g(_, 2, 3)(1)`
856 * - `g(_, _, 3)(1)(2)`
857 * - `g(_, _, 3)(1, 2)`
858 * - `g(_, 2)(1)(3)`
859 * - `g(_, 2)(1, 3)`
860 * - `g(_, 2)(_, 3)(1)`
861 *
862 * @func
863 * @memberOf R
864 * @since v0.5.0
865 * @category Function
866 * @sig Number -> (* -> a) -> (* -> a)
867 * @param {Number} length The arity for the returned function.
868 * @param {Function} fn The function to curry.
869 * @return {Function} A new, curried function.
870 * @see R.curry
871 * @example
872 *
873 * var sumArgs = (...args) => R.sum(args);
874 *
875 * var curriedAddFourNumbers = R.curryN(4, sumArgs);
876 * var f = curriedAddFourNumbers(1, 2);
877 * var g = f(3);
878 * g(4); //=> 10
879 */
880module.exports = _curry2(function curryN(length, fn) {
881 if (length === 1) {
882 return _curry1(fn);
883 }
884 return _arity(length, _curryN(length, [], fn));
885});
886
887
888/***/ },
889/* 19 */
890/***/ function(module, exports) {
891
892module.exports = function _isString(x) {
893 return Object.prototype.toString.call(x) === '[object String]';
894};
895
896
897/***/ },
898/* 20 */
899/***/ function(module, exports, __webpack_require__) {
900
901var _xwrap = __webpack_require__(88);
902var bind = __webpack_require__(57);
903var isArrayLike = __webpack_require__(37);
904
905
906module.exports = (function() {
907 function _arrayReduce(xf, acc, list) {
908 var idx = 0;
909 var len = list.length;
910 while (idx < len) {
911 acc = xf['@@transducer/step'](acc, list[idx]);
912 if (acc && acc['@@transducer/reduced']) {
913 acc = acc['@@transducer/value'];
914 break;
915 }
916 idx += 1;
917 }
918 return xf['@@transducer/result'](acc);
919 }
920
921 function _iterableReduce(xf, acc, iter) {
922 var step = iter.next();
923 while (!step.done) {
924 acc = xf['@@transducer/step'](acc, step.value);
925 if (acc && acc['@@transducer/reduced']) {
926 acc = acc['@@transducer/value'];
927 break;
928 }
929 step = iter.next();
930 }
931 return xf['@@transducer/result'](acc);
932 }
933
934 function _methodReduce(xf, acc, obj) {
935 return xf['@@transducer/result'](obj.reduce(bind(xf['@@transducer/step'], xf), acc));
936 }
937
938 var symIterator = (typeof Symbol !== 'undefined') ? Symbol.iterator : '@@iterator';
939 return function _reduce(fn, acc, list) {
940 if (typeof fn === 'function') {
941 fn = _xwrap(fn);
942 }
943 if (isArrayLike(list)) {
944 return _arrayReduce(fn, acc, list);
945 }
946 if (typeof list.reduce === 'function') {
947 return _methodReduce(fn, acc, list);
948 }
949 if (list[symIterator] != null) {
950 return _iterableReduce(fn, acc, list[symIterator]());
951 }
952 if (typeof list.next === 'function') {
953 return _iterableReduce(fn, acc, list);
954 }
955 throw new TypeError('reduce: list must be array or iterable');
956 };
957}());
958
959
960/***/ },
961/* 21 */
962/***/ function(module, exports) {
963
964module.exports = {
965 init: function() {
966 return this.xf['@@transducer/init']();
967 },
968 result: function(result) {
969 return this.xf['@@transducer/result'](result);
970 }
971};
972
973
974/***/ },
975/* 22 */
976/***/ function(module, exports, __webpack_require__) {
977
978var _contains = __webpack_require__(34);
979var _curry2 = __webpack_require__(0);
980
981
982/**
983 * Returns a partial copy of an object omitting the keys specified.
984 *
985 * @func
986 * @memberOf R
987 * @since v0.1.0
988 * @category Object
989 * @sig [String] -> {String: *} -> {String: *}
990 * @param {Array} names an array of String property names to omit from the new object
991 * @param {Object} obj The object to copy from
992 * @return {Object} A new object with properties from `names` not on it.
993 * @see R.pick
994 * @example
995 *
996 * R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
997 */
998module.exports = _curry2(function omit(names, obj) {
999 var result = {};
1000 for (var prop in obj) {
1001 if (!_contains(prop, names)) {
1002 result[prop] = obj[prop];
1003 }
1004 }
1005 return result;
1006});
1007
1008
1009/***/ },
1010/* 23 */
1011/***/ function(module, exports) {
1012
1013module.exports = __WEBPACK_EXTERNAL_MODULE_23__;
1014
1015/***/ },
1016/* 24 */
1017/***/ function(module, exports, __webpack_require__) {
1018
1019"use strict";
1020'use strict';
1021
1022Object.defineProperty(exports, "__esModule", {
1023 value: true
1024});
1025
1026var _merge = __webpack_require__(5);
1027
1028var _merge2 = _interopRequireDefault(_merge);
1029
1030exports.default = connectField;
1031
1032var _react = __webpack_require__(17);
1033
1034var React = _interopRequireWildcard(_react);
1035
1036var _helpers = __webpack_require__(6);
1037
1038function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
1039
1040function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1041
1042function connectField(Wrapped) {
1043 var ConnectedField = function ConnectedField(props, _ref) {
1044 var reduxFormLite = _ref.reduxFormLite;
1045
1046 (0, _helpers.invariant)((0, _helpers.isString)(reduxFormLite), '[redux-form-lite] Field and FieldArray must be a children of the Form component.');
1047 return React.createElement(Wrapped, (0, _merge2.default)(props, {
1048 _form: reduxFormLite
1049 }));
1050 };
1051 ConnectedField.contextTypes = {
1052 reduxFormLite: React.PropTypes.string.isRequired
1053 };
1054 ConnectedField.displayName = Wrapped.displayName;
1055 ConnectedField.WrappedComponent = Wrapped;
1056 return ConnectedField;
1057}
1058
1059/***/ },
1060/* 25 */
1061/***/ function(module, exports) {
1062
1063"use strict";
1064'use strict';
1065
1066Object.defineProperty(exports, "__esModule", {
1067 value: true
1068});
1069var form = exports.form = {
1070 fields: {},
1071 arrays: {},
1072 submitting: false
1073};
1074var field = exports.field = {
1075 value: '',
1076 error: null,
1077 visited: false,
1078 touched: false,
1079 active: false,
1080 dirty: false
1081};
1082
1083/***/ },
1084/* 26 */
1085/***/ function(module, exports, __webpack_require__) {
1086
1087var _curry2 = __webpack_require__(0);
1088
1089
1090/**
1091 * Adds two values.
1092 *
1093 * @func
1094 * @memberOf R
1095 * @since v0.1.0
1096 * @category Math
1097 * @sig Number -> Number -> Number
1098 * @param {Number} a
1099 * @param {Number} b
1100 * @return {Number}
1101 * @see R.subtract
1102 * @example
1103 *
1104 * R.add(2, 3); //=> 5
1105 * R.add(7)(10); //=> 17
1106 */
1107module.exports = _curry2(function add(a, b) {
1108 return Number(a) + Number(b);
1109});
1110
1111
1112/***/ },
1113/* 27 */
1114/***/ function(module, exports, __webpack_require__) {
1115
1116var _curry2 = __webpack_require__(0);
1117var _dispatchable = __webpack_require__(11);
1118var _xany = __webpack_require__(36);
1119
1120
1121/**
1122 * Returns `true` if at least one of elements of the list match the predicate,
1123 * `false` otherwise.
1124 *
1125 * Dispatches to the `any` method of the second argument, if present.
1126 *
1127 * Acts as a transducer if a transformer is given in list position.
1128 *
1129 * @func
1130 * @memberOf R
1131 * @since v0.1.0
1132 * @category List
1133 * @sig (a -> Boolean) -> [a] -> Boolean
1134 * @param {Function} fn The predicate function.
1135 * @param {Array} list The array to consider.
1136 * @return {Boolean} `true` if the predicate is satisfied by at least one element, `false`
1137 * otherwise.
1138 * @see R.all, R.none, R.transduce
1139 * @example
1140 *
1141 * var lessThan0 = R.flip(R.lt)(0);
1142 * var lessThan2 = R.flip(R.lt)(2);
1143 * R.any(lessThan0)([1, 2]); //=> false
1144 * R.any(lessThan2)([1, 2]); //=> true
1145 */
1146module.exports = _curry2(_dispatchable(['any'], _xany, function any(fn, list) {
1147 var idx = 0;
1148 while (idx < list.length) {
1149 if (fn(list[idx])) {
1150 return true;
1151 }
1152 idx += 1;
1153 }
1154 return false;
1155}));
1156
1157
1158/***/ },
1159/* 28 */
1160/***/ function(module, exports, __webpack_require__) {
1161
1162var _curry3 = __webpack_require__(2);
1163var _has = __webpack_require__(3);
1164var _isArray = __webpack_require__(12);
1165var _isInteger = __webpack_require__(76);
1166var assoc = __webpack_require__(10);
1167
1168
1169/**
1170 * Makes a shallow clone of an object, setting or overriding the nodes required
1171 * to create the given path, and placing the specific value at the tail end of
1172 * that path. Note that this copies and flattens prototype properties onto the
1173 * new object as well. All non-primitive properties are copied by reference.
1174 *
1175 * @func
1176 * @memberOf R
1177 * @since v0.8.0
1178 * @category Object
1179 * @typedefn Idx = String | Int
1180 * @sig [Idx] -> a -> {a} -> {a}
1181 * @param {Array} path the path to set
1182 * @param {*} val The new value
1183 * @param {Object} obj The object to clone
1184 * @return {Object} A new object equivalent to the original except along the specified path.
1185 * @see R.dissocPath
1186 * @example
1187 *
1188 * R.assocPath(['a', 'b', 'c'], 42, {a: {b: {c: 0}}}); //=> {a: {b: {c: 42}}}
1189 *
1190 * // Any missing or non-object keys in path will be overridden
1191 * R.assocPath(['a', 'b', 'c'], 42, {a: 5}); //=> {a: {b: {c: 42}}}
1192 */
1193module.exports = _curry3(function assocPath(path, val, obj) {
1194 if (path.length === 0) {
1195 return val;
1196 }
1197 var idx = path[0];
1198 if (path.length > 1) {
1199 var nextObj = _has(idx, obj) ? obj[idx] : _isInteger(path[1]) ? [] : {};
1200 val = assocPath(Array.prototype.slice.call(path, 1), val, nextObj);
1201 }
1202 if (_isInteger(idx) && _isArray(obj)) {
1203 var arr = [].concat(obj);
1204 arr[idx] = val;
1205 return arr;
1206 } else {
1207 return assoc(idx, val, obj);
1208 }
1209});
1210
1211
1212/***/ },
1213/* 29 */
1214/***/ function(module, exports, __webpack_require__) {
1215
1216var _curry1 = __webpack_require__(1);
1217var _identity = __webpack_require__(72);
1218
1219
1220/**
1221 * A function that does nothing but return the parameter supplied to it. Good
1222 * as a default or placeholder function.
1223 *
1224 * @func
1225 * @memberOf R
1226 * @since v0.1.0
1227 * @category Function
1228 * @sig a -> a
1229 * @param {*} x The value to return.
1230 * @return {*} The input value, `x`.
1231 * @example
1232 *
1233 * R.identity(1); //=> 1
1234 *
1235 * var obj = {};
1236 * R.identity(obj) === obj; //=> true
1237 * @symb R.identity(a) = a
1238 */
1239module.exports = _curry1(_identity);
1240
1241
1242/***/ },
1243/* 30 */
1244/***/ function(module, exports, __webpack_require__) {
1245
1246var _objectAssign = __webpack_require__(80);
1247
1248module.exports =
1249 typeof Object.assign === 'function' ? Object.assign : _objectAssign;
1250
1251
1252/***/ },
1253/* 31 */
1254/***/ function(module, exports, __webpack_require__) {
1255
1256var _isArray = __webpack_require__(12);
1257
1258
1259/**
1260 * This checks whether a function has a [methodname] function. If it isn't an
1261 * array it will execute that function otherwise it will default to the ramda
1262 * implementation.
1263 *
1264 * @private
1265 * @param {Function} fn ramda implemtation
1266 * @param {String} methodname property to check for a custom implementation
1267 * @return {Object} Whatever the return value of the method is.
1268 */
1269module.exports = function _checkForMethod(methodname, fn) {
1270 return function() {
1271 var length = arguments.length;
1272 if (length === 0) {
1273 return fn();
1274 }
1275 var obj = arguments[length - 1];
1276 return (_isArray(obj) || typeof obj[methodname] !== 'function') ?
1277 fn.apply(this, arguments) :
1278 obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));
1279 };
1280};
1281
1282
1283/***/ },
1284/* 32 */
1285/***/ function(module, exports) {
1286
1287module.exports = function _complement(f) {
1288 return function() {
1289 return !f.apply(this, arguments);
1290 };
1291};
1292
1293
1294/***/ },
1295/* 33 */
1296/***/ function(module, exports) {
1297
1298/**
1299 * Private `concat` function to merge two array-like objects.
1300 *
1301 * @private
1302 * @param {Array|Arguments} [set1=[]] An array-like object.
1303 * @param {Array|Arguments} [set2=[]] An array-like object.
1304 * @return {Array} A new, merged array.
1305 * @example
1306 *
1307 * _concat([4, 5, 6], [1, 2, 3]); //=> [4, 5, 6, 1, 2, 3]
1308 */
1309module.exports = function _concat(set1, set2) {
1310 set1 = set1 || [];
1311 set2 = set2 || [];
1312 var idx;
1313 var len1 = set1.length;
1314 var len2 = set2.length;
1315 var result = [];
1316
1317 idx = 0;
1318 while (idx < len1) {
1319 result[result.length] = set1[idx];
1320 idx += 1;
1321 }
1322 idx = 0;
1323 while (idx < len2) {
1324 result[result.length] = set2[idx];
1325 idx += 1;
1326 }
1327 return result;
1328};
1329
1330
1331/***/ },
1332/* 34 */
1333/***/ function(module, exports, __webpack_require__) {
1334
1335var _indexOf = __webpack_require__(73);
1336
1337
1338module.exports = function _contains(a, list) {
1339 return _indexOf(list, a, 0) >= 0;
1340};
1341
1342
1343/***/ },
1344/* 35 */
1345/***/ function(module, exports) {
1346
1347module.exports = function _map(fn, functor) {
1348 var idx = 0;
1349 var len = functor.length;
1350 var result = Array(len);
1351 while (idx < len) {
1352 result[idx] = fn(functor[idx]);
1353 idx += 1;
1354 }
1355 return result;
1356};
1357
1358
1359/***/ },
1360/* 36 */
1361/***/ function(module, exports, __webpack_require__) {
1362
1363var _curry2 = __webpack_require__(0);
1364var _reduced = __webpack_require__(83);
1365var _xfBase = __webpack_require__(21);
1366
1367
1368module.exports = (function() {
1369 function XAny(f, xf) {
1370 this.xf = xf;
1371 this.f = f;
1372 this.any = false;
1373 }
1374 XAny.prototype['@@transducer/init'] = _xfBase.init;
1375 XAny.prototype['@@transducer/result'] = function(result) {
1376 if (!this.any) {
1377 result = this.xf['@@transducer/step'](result, false);
1378 }
1379 return this.xf['@@transducer/result'](result);
1380 };
1381 XAny.prototype['@@transducer/step'] = function(result, input) {
1382 if (this.f(input)) {
1383 this.any = true;
1384 result = _reduced(this.xf['@@transducer/step'](result, true));
1385 }
1386 return result;
1387 };
1388
1389 return _curry2(function _xany(f, xf) { return new XAny(f, xf); });
1390}());
1391
1392
1393/***/ },
1394/* 37 */
1395/***/ function(module, exports, __webpack_require__) {
1396
1397var _curry1 = __webpack_require__(1);
1398var _isArray = __webpack_require__(12);
1399var _isString = __webpack_require__(19);
1400
1401
1402/**
1403 * Tests whether or not an object is similar to an array.
1404 *
1405 * @func
1406 * @memberOf R
1407 * @since v0.5.0
1408 * @category Type
1409 * @category List
1410 * @sig * -> Boolean
1411 * @param {*} x The object to test.
1412 * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
1413 * @deprecated since v0.23.0
1414 * @example
1415 *
1416 * R.isArrayLike([]); //=> true
1417 * R.isArrayLike(true); //=> false
1418 * R.isArrayLike({}); //=> false
1419 * R.isArrayLike({length: 10}); //=> false
1420 * R.isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
1421 */
1422module.exports = _curry1(function isArrayLike(x) {
1423 if (_isArray(x)) { return true; }
1424 if (!x) { return false; }
1425 if (typeof x !== 'object') { return false; }
1426 if (_isString(x)) { return false; }
1427 if (x.nodeType === 1) { return !!x.length; }
1428 if (x.length === 0) { return true; }
1429 if (x.length > 0) {
1430 return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
1431 }
1432 return false;
1433});
1434
1435
1436/***/ },
1437/* 38 */
1438/***/ function(module, exports, __webpack_require__) {
1439
1440var _curry2 = __webpack_require__(0);
1441var map = __webpack_require__(14);
1442
1443
1444/**
1445 * Returns a lens for the given getter and setter functions. The getter "gets"
1446 * the value of the focus; the setter "sets" the value of the focus. The setter
1447 * should not mutate the data structure.
1448 *
1449 * @func
1450 * @memberOf R
1451 * @since v0.8.0
1452 * @category Object
1453 * @typedefn Lens s a = Functor f => (a -> f a) -> s -> f s
1454 * @sig (s -> a) -> ((a, s) -> s) -> Lens s a
1455 * @param {Function} getter
1456 * @param {Function} setter
1457 * @return {Lens}
1458 * @see R.view, R.set, R.over, R.lensIndex, R.lensProp
1459 * @example
1460 *
1461 * var xLens = R.lens(R.prop('x'), R.assoc('x'));
1462 *
1463 * R.view(xLens, {x: 1, y: 2}); //=> 1
1464 * R.set(xLens, 4, {x: 1, y: 2}); //=> {x: 4, y: 2}
1465 * R.over(xLens, R.negate, {x: 1, y: 2}); //=> {x: -1, y: 2}
1466 */
1467module.exports = _curry2(function lens(getter, setter) {
1468 return function(toFunctorFn) {
1469 return function(target) {
1470 return map(
1471 function(focus) {
1472 return setter(focus, target);
1473 },
1474 toFunctorFn(getter(target))
1475 );
1476 };
1477 };
1478});
1479
1480
1481/***/ },
1482/* 39 */
1483/***/ function(module, exports, __webpack_require__) {
1484
1485var _curry1 = __webpack_require__(1);
1486var assoc = __webpack_require__(10);
1487var lens = __webpack_require__(38);
1488var prop = __webpack_require__(16);
1489
1490
1491/**
1492 * Returns a lens whose focus is the specified property.
1493 *
1494 * @func
1495 * @memberOf R
1496 * @since v0.14.0
1497 * @category Object
1498 * @typedefn Lens s a = Functor f => (a -> f a) -> s -> f s
1499 * @sig String -> Lens s a
1500 * @param {String} k
1501 * @return {Lens}
1502 * @see R.view, R.set, R.over
1503 * @example
1504 *
1505 * var xLens = R.lensProp('x');
1506 *
1507 * R.view(xLens, {x: 1, y: 2}); //=> 1
1508 * R.set(xLens, 4, {x: 1, y: 2}); //=> {x: 4, y: 2}
1509 * R.over(xLens, R.negate, {x: 1, y: 2}); //=> {x: -1, y: 2}
1510 */
1511module.exports = _curry1(function lensProp(k) {
1512 return lens(prop(k), assoc(k));
1513});
1514
1515
1516/***/ },
1517/* 40 */
1518/***/ function(module, exports, __webpack_require__) {
1519
1520var _curry3 = __webpack_require__(2);
1521
1522
1523/**
1524 * Returns the result of "setting" the portion of the given data structure
1525 * focused by the given lens to the result of applying the given function to
1526 * the focused value.
1527 *
1528 * @func
1529 * @memberOf R
1530 * @since v0.16.0
1531 * @category Object
1532 * @typedefn Lens s a = Functor f => (a -> f a) -> s -> f s
1533 * @sig Lens s a -> (a -> a) -> s -> s
1534 * @param {Lens} lens
1535 * @param {*} v
1536 * @param {*} x
1537 * @return {*}
1538 * @see R.prop, R.lensIndex, R.lensProp
1539 * @example
1540 *
1541 * var headLens = R.lensIndex(0);
1542 *
1543 * R.over(headLens, R.toUpper, ['foo', 'bar', 'baz']); //=> ['FOO', 'bar', 'baz']
1544 */
1545module.exports = (function() {
1546 // `Identity` is a functor that holds a single value, where `map` simply
1547 // transforms the held value with the provided function.
1548 var Identity = function(x) {
1549 return {value: x, map: function(f) { return Identity(f(x)); }};
1550 };
1551
1552 return _curry3(function over(lens, f, x) {
1553 // The value returned by the getter function is first transformed with `f`,
1554 // then set as the value of an `Identity`. This is then mapped over with the
1555 // setter function of the lens.
1556 return lens(function(y) { return Identity(f(y)); })(x).value;
1557 });
1558}());
1559
1560
1561/***/ },
1562/* 41 */
1563/***/ function(module, exports, __webpack_require__) {
1564
1565var _curry3 = __webpack_require__(2);
1566var _reduce = __webpack_require__(20);
1567
1568
1569/**
1570 * Returns a single item by iterating through the list, successively calling
1571 * the iterator function and passing it an accumulator value and the current
1572 * value from the array, and then passing the result to the next call.
1573 *
1574 * The iterator function receives two values: *(acc, value)*. It may use
1575 * `R.reduced` to shortcut the iteration.
1576 *
1577 * The arguments' order of `reduceRight`'s iterator function is *(value, acc)*.
1578 *
1579 * Note: `R.reduce` does not skip deleted or unassigned indices (sparse
1580 * arrays), unlike the native `Array.prototype.reduce` method. For more details
1581 * on this behavior, see:
1582 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
1583 *
1584 * Dispatches to the `reduce` method of the third argument, if present.
1585 *
1586 * @func
1587 * @memberOf R
1588 * @since v0.1.0
1589 * @category List
1590 * @sig ((a, b) -> a) -> a -> [b] -> a
1591 * @param {Function} fn The iterator function. Receives two values, the accumulator and the
1592 * current element from the array.
1593 * @param {*} acc The accumulator value.
1594 * @param {Array} list The list to iterate over.
1595 * @return {*} The final, accumulated value.
1596 * @see R.reduced, R.addIndex, R.reduceRight
1597 * @example
1598 *
1599 * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
1600 * - -10
1601 * / \ / \
1602 * - 4 -6 4
1603 * / \ / \
1604 * - 3 ==> -3 3
1605 * / \ / \
1606 * - 2 -1 2
1607 * / \ / \
1608 * 0 1 0 1
1609 *
1610 * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
1611 */
1612module.exports = _curry3(_reduce);
1613
1614
1615/***/ },
1616/* 42 */
1617/***/ function(module, exports, __webpack_require__) {
1618
1619var _curry3 = __webpack_require__(2);
1620var always = __webpack_require__(56);
1621var over = __webpack_require__(40);
1622
1623
1624/**
1625 * Returns the result of "setting" the portion of the given data structure
1626 * focused by the given lens to the given value.
1627 *
1628 * @func
1629 * @memberOf R
1630 * @since v0.16.0
1631 * @category Object
1632 * @typedefn Lens s a = Functor f => (a -> f a) -> s -> f s
1633 * @sig Lens s a -> a -> s -> s
1634 * @param {Lens} lens
1635 * @param {*} v
1636 * @param {*} x
1637 * @return {*}
1638 * @see R.prop, R.lensIndex, R.lensProp
1639 * @example
1640 *
1641 * var xLens = R.lensProp('x');
1642 *
1643 * R.set(xLens, 4, {x: 1, y: 2}); //=> {x: 4, y: 2}
1644 * R.set(xLens, 8, {x: 1, y: 2}); //=> {x: 8, y: 2}
1645 */
1646module.exports = _curry3(function set(lens, v, x) {
1647 return over(lens, always(v), x);
1648});
1649
1650
1651/***/ },
1652/* 43 */
1653/***/ function(module, exports, __webpack_require__) {
1654
1655var _checkForMethod = __webpack_require__(31);
1656var _curry1 = __webpack_require__(1);
1657var slice = __webpack_require__(100);
1658
1659
1660/**
1661 * Returns all but the first element of the given list or string (or object
1662 * with a `tail` method).
1663 *
1664 * Dispatches to the `slice` method of the first argument, if present.
1665 *
1666 * @func
1667 * @memberOf R
1668 * @since v0.1.0
1669 * @category List
1670 * @sig [a] -> [a]
1671 * @sig String -> String
1672 * @param {*} list
1673 * @return {*}
1674 * @see R.head, R.init, R.last
1675 * @example
1676 *
1677 * R.tail([1, 2, 3]); //=> [2, 3]
1678 * R.tail([1, 2]); //=> [2]
1679 * R.tail([1]); //=> []
1680 * R.tail([]); //=> []
1681 *
1682 * R.tail('abc'); //=> 'bc'
1683 * R.tail('ab'); //=> 'b'
1684 * R.tail('a'); //=> ''
1685 * R.tail(''); //=> ''
1686 */
1687module.exports = _curry1(_checkForMethod('tail', slice(1, Infinity)));
1688
1689
1690/***/ },
1691/* 44 */
1692/***/ function(module, exports, __webpack_require__) {
1693
1694var _curry1 = __webpack_require__(1);
1695var _toString = __webpack_require__(85);
1696
1697
1698/**
1699 * Returns the string representation of the given value. `eval`'ing the output
1700 * should result in a value equivalent to the input value. Many of the built-in
1701 * `toString` methods do not satisfy this requirement.
1702 *
1703 * If the given value is an `[object Object]` with a `toString` method other
1704 * than `Object.prototype.toString`, this method is invoked with no arguments
1705 * to produce the return value. This means user-defined constructor functions
1706 * can provide a suitable `toString` method. For example:
1707 *
1708 * function Point(x, y) {
1709 * this.x = x;
1710 * this.y = y;
1711 * }
1712 *
1713 * Point.prototype.toString = function() {
1714 * return 'new Point(' + this.x + ', ' + this.y + ')';
1715 * };
1716 *
1717 * R.toString(new Point(1, 2)); //=> 'new Point(1, 2)'
1718 *
1719 * @func
1720 * @memberOf R
1721 * @since v0.14.0
1722 * @category String
1723 * @sig * -> String
1724 * @param {*} val
1725 * @return {String}
1726 * @example
1727 *
1728 * R.toString(42); //=> '42'
1729 * R.toString('abc'); //=> '"abc"'
1730 * R.toString([1, 2, 3]); //=> '[1, 2, 3]'
1731 * R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
1732 * R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
1733 */
1734module.exports = _curry1(function toString(val) { return _toString(val, []); });
1735
1736
1737/***/ },
1738/* 45 */
1739/***/ function(module, exports, __webpack_require__) {
1740
1741"use strict";
1742'use strict';
1743
1744Object.defineProperty(exports, "__esModule", {
1745 value: true
1746});
1747
1748var _path = __webpack_require__(15);
1749
1750var _path2 = _interopRequireDefault(_path);
1751
1752var _identity = __webpack_require__(29);
1753
1754var _identity2 = _interopRequireDefault(_identity);
1755
1756var _merge = __webpack_require__(5);
1757
1758var _merge2 = _interopRequireDefault(_merge);
1759
1760var _mergeAll = __webpack_require__(92);
1761
1762var _mergeAll2 = _interopRequireDefault(_mergeAll);
1763
1764var _lensProp = __webpack_require__(39);
1765
1766var _lensProp2 = _interopRequireDefault(_lensProp);
1767
1768var _set = __webpack_require__(42);
1769
1770var _set2 = _interopRequireDefault(_set);
1771
1772var _compose = __webpack_require__(7);
1773
1774var _compose2 = _interopRequireDefault(_compose);
1775
1776var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
1777
1778var _react = __webpack_require__(17);
1779
1780var React = _interopRequireWildcard(_react);
1781
1782var _reactRedux = __webpack_require__(23);
1783
1784var _connectField = __webpack_require__(24);
1785
1786var _connectField2 = _interopRequireDefault(_connectField);
1787
1788var _fieldProps2 = __webpack_require__(52);
1789
1790var _fieldProps3 = _interopRequireDefault(_fieldProps2);
1791
1792var _getValue = __webpack_require__(54);
1793
1794var _getValue2 = _interopRequireDefault(_getValue);
1795
1796var _actions = __webpack_require__(9);
1797
1798var actions = _interopRequireWildcard(_actions);
1799
1800var _containers = __webpack_require__(25);
1801
1802function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
1803
1804function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1805
1806function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1807
1808function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
1809
1810function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
1811
1812var __rest = undefined && undefined.__rest || function (s, e) {
1813 var t = {};
1814 for (var p in s) {
1815 if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
1816 }if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1817 if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];
1818 }return t;
1819};
1820
1821var Field = function (_React$PureComponent) {
1822 _inherits(Field, _React$PureComponent);
1823
1824 function Field(props) {
1825 _classCallCheck(this, Field);
1826
1827 var _this = _possibleConstructorReturn(this, (Field.__proto__ || Object.getPrototypeOf(Field)).call(this, props));
1828
1829 _this.handleChange = _this.handleChange.bind(_this);
1830 _this.handleFocus = _this.handleFocus.bind(_this);
1831 _this.handleBlur = _this.handleBlur.bind(_this);
1832 return _this;
1833 }
1834
1835 _createClass(Field, [{
1836 key: 'componentWillMount',
1837 value: function componentWillMount() {
1838 if (!this.props._field) {
1839 this.newField(this.props);
1840 }
1841 }
1842 }, {
1843 key: 'componentWillReceiveProps',
1844 value: function componentWillReceiveProps(next) {
1845 var _props = this.props,
1846 _fieldChange = _props._fieldChange,
1847 _form = _props._form,
1848 name = _props.name,
1849 normalize = _props.normalize,
1850 validate = _props.validate,
1851 defaultValue = _props.defaultValue;
1852
1853 if (!next._field) {
1854 this.newField(next);
1855 return;
1856 }
1857 if (defaultValue !== next.defaultValue) {
1858 var value = next.normalize(next._field.value);
1859 var error = next.validate(value);
1860 var dirty = next.defaultValue !== value;
1861 _fieldChange(_form, name, value, error, dirty);
1862 }
1863 }
1864 }, {
1865 key: 'componentWillUnmount',
1866 value: function componentWillUnmount() {
1867 var _props2 = this.props,
1868 _removeField = _props2._removeField,
1869 _form = _props2._form,
1870 name = _props2.name;
1871
1872 _removeField(_form, name);
1873 }
1874 }, {
1875 key: 'newField',
1876 value: function newField(props) {
1877 var value = props.normalize(props.defaultValue);
1878 var newField = (0, _compose2.default)((0, _set2.default)((0, _lensProp2.default)('value'), value), (0, _set2.default)((0, _lensProp2.default)('error'), props.validate(value)))(_containers.field);
1879 props._addField(props._form, props.name, newField);
1880 }
1881 }, {
1882 key: 'handleChange',
1883 value: function handleChange(ev) {
1884 var _props3 = this.props,
1885 _fieldChange = _props3._fieldChange,
1886 _form = _props3._form,
1887 name = _props3.name,
1888 normalize = _props3.normalize,
1889 validate = _props3.validate,
1890 defaultValue = _props3.defaultValue;
1891
1892 var value = normalize((0, _getValue2.default)(ev));
1893 var error = validate(value);
1894 var dirty = value !== defaultValue;
1895 _fieldChange(_form, name, value, error, dirty);
1896 }
1897 }, {
1898 key: 'handleFocus',
1899 value: function handleFocus() {
1900 var _props4 = this.props,
1901 _fieldFocus = _props4._fieldFocus,
1902 _form = _props4._form,
1903 name = _props4.name;
1904
1905 _fieldFocus(_form, name);
1906 }
1907 }, {
1908 key: 'handleBlur',
1909 value: function handleBlur(ev) {
1910 var _props5 = this.props,
1911 _fieldBlur = _props5._fieldBlur,
1912 _form = _props5._form,
1913 name = _props5.name,
1914 normalize = _props5.normalize,
1915 validate = _props5.validate,
1916 defaultValue = _props5.defaultValue;
1917
1918 var value = normalize((0, _getValue2.default)(ev));
1919 var error = validate(value);
1920 var dirty = value !== defaultValue;
1921 _fieldBlur(_form, name, value, error, dirty);
1922 }
1923 }, {
1924 key: 'render',
1925 value: function render() {
1926 var _a = this.props,
1927 component = _a.component,
1928 withRef = _a.withRef,
1929 _field = _a._field,
1930 rest = __rest(_a, ["component", "withRef", "_field"]);
1931 // Wait until field is initialized
1932 if (!_field) {
1933 return null;
1934 }
1935
1936 var _fieldProps = (0, _fieldProps3.default)((0, _mergeAll2.default)([rest, { ref: withRef }, _field, {
1937 onChange: this.handleChange,
1938 onFocus: this.handleFocus,
1939 onBlur: this.handleBlur
1940 }])),
1941 input = _fieldProps.input,
1942 meta = _fieldProps.meta,
1943 custom = _fieldProps.custom;
1944
1945 if (typeof component === 'string') {
1946 return React.createElement(component, (0, _merge2.default)(custom, input));
1947 }
1948 // React.SFC vs. React.ClassComponent collision
1949 return React.createElement(component, (0, _merge2.default)(custom, { input: input, meta: meta }));
1950 }
1951 }]);
1952
1953 return Field;
1954}(React.PureComponent);
1955// Must contain all props of 'AllProps'
1956
1957
1958Field.defaultProps = {
1959 validate: function validate() {
1960 return null;
1961 },
1962 normalize: _identity2.default,
1963 defaultValue: '',
1964 // state
1965 _field: null,
1966 // actions
1967 _addField: _identity2.default,
1968 _removeField: _identity2.default,
1969 _fieldChange: _identity2.default,
1970 _fieldFocus: _identity2.default,
1971 _fieldBlur: _identity2.default
1972};
1973Field.propTypes = {
1974 name: React.PropTypes.string.isRequired,
1975 component: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.func]).isRequired,
1976 validate: React.PropTypes.func,
1977 normalize: React.PropTypes.func,
1978 defaultValue: React.PropTypes.string
1979};
1980Field.displayName = 'Field';
1981var bindActions = {
1982 _addField: actions.addField,
1983 _removeField: actions.removeField,
1984 _fieldChange: actions.fieldChange,
1985 _fieldFocus: actions.fieldFocus,
1986 _fieldBlur: actions.fieldBlur
1987};
1988var Connected = (0, _reactRedux.connect)(function (state, props) {
1989 return {
1990 _field: (0, _path2.default)([props._form, 'fields', props.name], state.reduxFormLite)
1991 };
1992}, bindActions)(Field);
1993var Contexted = (0, _connectField2.default)(Connected);
1994Contexted.displayName = Field.displayName;
1995exports.default = Contexted;
1996
1997/***/ },
1998/* 46 */
1999/***/ function(module, exports, __webpack_require__) {
2000
2001"use strict";
2002'use strict';
2003
2004Object.defineProperty(exports, "__esModule", {
2005 value: true
2006});
2007
2008var _path = __webpack_require__(15);
2009
2010var _path2 = _interopRequireDefault(_path);
2011
2012var _merge = __webpack_require__(5);
2013
2014var _merge2 = _interopRequireDefault(_merge);
2015
2016var _addIndex = __webpack_require__(55);
2017
2018var _addIndex2 = _interopRequireDefault(_addIndex);
2019
2020var _map = __webpack_require__(14);
2021
2022var _map2 = _interopRequireDefault(_map);
2023
2024var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2025
2026var _react = __webpack_require__(17);
2027
2028var React = _interopRequireWildcard(_react);
2029
2030var _reactRedux = __webpack_require__(23);
2031
2032var _actions = __webpack_require__(9);
2033
2034var actions = _interopRequireWildcard(_actions);
2035
2036var _connectField = __webpack_require__(24);
2037
2038var _connectField2 = _interopRequireDefault(_connectField);
2039
2040var _fieldArrayProps = __webpack_require__(51);
2041
2042var _fieldArrayProps2 = _interopRequireDefault(_fieldArrayProps);
2043
2044var _helpers = __webpack_require__(6);
2045
2046function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
2047
2048function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2049
2050function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2051
2052function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2053
2054function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2055
2056var __rest = undefined && undefined.__rest || function (s, e) {
2057 var t = {};
2058 for (var p in s) {
2059 if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
2060 }if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2061 if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];
2062 }return t;
2063};
2064
2065var FieldArray = function (_React$PureComponent) {
2066 _inherits(FieldArray, _React$PureComponent);
2067
2068 function FieldArray(props) {
2069 _classCallCheck(this, FieldArray);
2070
2071 var _this = _possibleConstructorReturn(this, (FieldArray.__proto__ || Object.getPrototypeOf(FieldArray)).call(this, props));
2072
2073 _this.handleMap = _this.handleMap.bind(_this);
2074 _this.handlePush = _this.handlePush.bind(_this);
2075 _this.handlePop = _this.handlePop.bind(_this);
2076 _this.handleUnshift = _this.handleUnshift.bind(_this);
2077 _this.handleShift = _this.handleShift.bind(_this);
2078 return _this;
2079 }
2080
2081 _createClass(FieldArray, [{
2082 key: 'componentWillMount',
2083 value: function componentWillMount() {
2084 var _props = this.props,
2085 _array = _props._array,
2086 _addArray = _props._addArray,
2087 _form = _props._form,
2088 name = _props.name;
2089
2090 if (!_array) {
2091 _addArray(_form, name);
2092 }
2093 }
2094 }, {
2095 key: 'componentWillUnmount',
2096 value: function componentWillUnmount() {
2097 var _props2 = this.props,
2098 _removeArray = _props2._removeArray,
2099 _form = _props2._form,
2100 name = _props2.name;
2101
2102 _removeArray(_form, name);
2103 }
2104 }, {
2105 key: 'handleMap',
2106 value: function handleMap(fn) {
2107 var _props3 = this.props,
2108 name = _props3.name,
2109 _array = _props3._array;
2110
2111 var array = Array.from(Array(_array));
2112 return (0, _map2.default)(fn, (0, _addIndex2.default)(_map2.default)(function (_, i) {
2113 return name + '.' + i;
2114 }, array));
2115 }
2116 }, {
2117 key: 'handlePush',
2118 value: function handlePush(ev) {
2119 var _props4 = this.props,
2120 name = _props4.name,
2121 _arrayPush = _props4._arrayPush,
2122 _form = _props4._form;
2123
2124 if ((0, _helpers.isEvent)(ev)) {
2125 ev.preventDefault();
2126 }
2127 _arrayPush(_form, name);
2128 }
2129 }, {
2130 key: 'handlePop',
2131 value: function handlePop(ev) {
2132 var _props5 = this.props,
2133 name = _props5.name,
2134 _array = _props5._array,
2135 _arrayPop = _props5._arrayPop,
2136 _form = _props5._form;
2137
2138 if ((0, _helpers.isEvent)(ev)) {
2139 ev.preventDefault();
2140 }
2141 if (_array > 0) {
2142 _arrayPop(_form, name);
2143 }
2144 }
2145 }, {
2146 key: 'handleUnshift',
2147 value: function handleUnshift(ev) {
2148 var _props6 = this.props,
2149 name = _props6.name,
2150 _arrayUnshift = _props6._arrayUnshift,
2151 _form = _props6._form;
2152
2153 if ((0, _helpers.isEvent)(ev)) {
2154 ev.preventDefault();
2155 }
2156 _arrayUnshift(_form, name);
2157 }
2158 }, {
2159 key: 'handleShift',
2160 value: function handleShift(ev) {
2161 var _props7 = this.props,
2162 name = _props7.name,
2163 _array = _props7._array,
2164 _arrayShift = _props7._arrayShift,
2165 _form = _props7._form;
2166
2167 if ((0, _helpers.isEvent)(ev)) {
2168 ev.preventDefault();
2169 }
2170 if (_array > 0) {
2171 _arrayShift(_form, name);
2172 }
2173 }
2174 }, {
2175 key: 'render',
2176 value: function render() {
2177 var _a = this.props,
2178 component = _a.component,
2179 withRef = _a.withRef,
2180 _array = _a._array,
2181 rest = __rest(_a, ["component", "withRef", "_array"]);
2182 if (!(0, _helpers.isNumber)(_array)) {
2183 return null;
2184 }
2185 // React.SFC vs. React.ClassComponent collision
2186 return React.createElement(component, (0, _fieldArrayProps2.default)((0, _merge2.default)(rest, { ref: withRef }), {
2187 length: _array,
2188 map: this.handleMap,
2189 push: this.handlePush,
2190 pop: this.handlePop,
2191 unshift: this.handleUnshift,
2192 shift: this.handleShift
2193 }));
2194 }
2195 }]);
2196
2197 return FieldArray;
2198}(React.PureComponent);
2199
2200FieldArray.propTypes = {
2201 name: React.PropTypes.string.isRequired,
2202 component: React.PropTypes.func.isRequired
2203};
2204FieldArray.displayName = 'FieldArray';
2205var bindActions = {
2206 _addArray: actions.addArray,
2207 _removeArray: actions.removeArray,
2208 _arrayPush: actions.arrayPush,
2209 _arrayPop: actions.arrayPop,
2210 _arrayUnshift: actions.arrayUnshift,
2211 _arrayShift: actions.arrayShift
2212};
2213var Connected = (0, _reactRedux.connect)(function (state, props) {
2214 return {
2215 _array: (0, _path2.default)([props._form, 'arrays', props.name], state.reduxFormLite)
2216 };
2217}, bindActions)(FieldArray);
2218var Contexted = (0, _connectField2.default)(Connected);
2219Contexted.displayName = FieldArray.displayName;
2220exports.default = Contexted;
2221
2222/***/ },
2223/* 47 */
2224/***/ function(module, exports, __webpack_require__) {
2225
2226"use strict";
2227'use strict';
2228
2229Object.defineProperty(exports, "__esModule", {
2230 value: true
2231});
2232
2233var _prop = __webpack_require__(16);
2234
2235var _prop2 = _interopRequireDefault(_prop);
2236
2237var _merge = __webpack_require__(5);
2238
2239var _merge2 = _interopRequireDefault(_merge);
2240
2241var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2242
2243var _react = __webpack_require__(17);
2244
2245var React = _interopRequireWildcard(_react);
2246
2247var _reactRedux = __webpack_require__(23);
2248
2249var _helpers = __webpack_require__(6);
2250
2251var _formProps = __webpack_require__(53);
2252
2253var _formProps2 = _interopRequireDefault(_formProps);
2254
2255var _actions = __webpack_require__(9);
2256
2257var actions = _interopRequireWildcard(_actions);
2258
2259var _selectors = __webpack_require__(49);
2260
2261var selectors = _interopRequireWildcard(_selectors);
2262
2263function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
2264
2265function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2266
2267function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2268
2269function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2270
2271function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2272
2273var Form = function (_React$PureComponent) {
2274 _inherits(Form, _React$PureComponent);
2275
2276 function Form(props) {
2277 _classCallCheck(this, Form);
2278
2279 var _this = _possibleConstructorReturn(this, (Form.__proto__ || Object.getPrototypeOf(Form)).call(this, props));
2280
2281 _this.handleSubmit = _this.handleSubmit.bind(_this);
2282 return _this;
2283 }
2284
2285 _createClass(Form, [{
2286 key: 'componentWillMount',
2287 value: function componentWillMount() {
2288 var _props = this.props,
2289 name = _props.name,
2290 _form = _props._form,
2291 _addForm = _props._addForm;
2292
2293 if (!_form) {
2294 _addForm(name);
2295 }
2296 }
2297 }, {
2298 key: 'componentWillUnmount',
2299 value: function componentWillUnmount() {
2300 var _props2 = this.props,
2301 name = _props2.name,
2302 persistent = _props2.persistent,
2303 _removeForm = _props2._removeForm;
2304
2305 if (!persistent) {
2306 _removeForm(name);
2307 }
2308 }
2309 }, {
2310 key: 'getChildContext',
2311 value: function getChildContext() {
2312 var name = this.props.name;
2313
2314 return {
2315 reduxFormLite: name
2316 };
2317 }
2318 }, {
2319 key: 'handleSubmit',
2320 value: function handleSubmit(ev) {
2321 var _props3 = this.props,
2322 name = _props3.name,
2323 onSubmit = _props3.onSubmit,
2324 _valid = _props3._valid,
2325 _values = _props3._values,
2326 _touchAll = _props3._touchAll,
2327 _submitting = _props3._submitting,
2328 _submitStart = _props3._submitStart,
2329 _submitStop = _props3._submitStop;
2330
2331 ev.preventDefault();
2332 _touchAll(name);
2333 if (_submitting) {
2334 return;
2335 }
2336 if (!_valid || !(0, _helpers.isFunction)(onSubmit)) {
2337 return;
2338 }
2339 var maybePromise = onSubmit(_values);
2340 if ((0, _helpers.isPromise)(maybePromise)) {
2341 _submitStart(name);
2342 maybePromise.then(function () {
2343 return _submitStop(name);
2344 });
2345 }
2346 }
2347 }, {
2348 key: 'render',
2349 value: function render() {
2350 var _props4 = this.props,
2351 children = _props4.children,
2352 withRef = _props4.withRef,
2353 _form = _props4._form;
2354 // Wait until form is initialized
2355
2356 if (!_form) {
2357 return null;
2358 }
2359 return React.createElement('form', (0, _formProps2.default)((0, _merge2.default)(this.props, {
2360 children: children,
2361 ref: withRef,
2362 onSubmit: this.handleSubmit
2363 })));
2364 }
2365 }]);
2366
2367 return Form;
2368}(React.PureComponent);
2369
2370Form.childContextTypes = {
2371 reduxFormLite: React.PropTypes.string.isRequired
2372};
2373Form.propTypes = {
2374 name: React.PropTypes.string.isRequired,
2375 persistent: React.PropTypes.bool
2376};
2377var bindActions = {
2378 _addForm: actions.addForm,
2379 _removeForm: actions.removeForm,
2380 _touchAll: actions.touchAll,
2381 _submitStart: actions.submitStart,
2382 _submitStop: actions.submitStop
2383};
2384exports.default = (0, _reactRedux.connect)(function (state, props) {
2385 return {
2386 _form: Boolean((0, _prop2.default)(props.name, state.reduxFormLite)),
2387 _values: selectors.valueSelector(props.name, state),
2388 _valid: selectors.isValid(props.name, state),
2389 _submitting: selectors.isSubmitting(props.name, state)
2390 };
2391}, bindActions)(Form);
2392
2393/***/ },
2394/* 48 */
2395/***/ function(module, exports, __webpack_require__) {
2396
2397"use strict";
2398'use strict';
2399
2400Object.defineProperty(exports, "__esModule", {
2401 value: true
2402});
2403
2404var _compose = __webpack_require__(7);
2405
2406var _compose2 = _interopRequireDefault(_compose);
2407
2408var _dec = __webpack_require__(58);
2409
2410var _dec2 = _interopRequireDefault(_dec);
2411
2412var _inc = __webpack_require__(66);
2413
2414var _inc2 = _interopRequireDefault(_inc);
2415
2416var _lensProp = __webpack_require__(39);
2417
2418var _lensProp2 = _interopRequireDefault(_lensProp);
2419
2420var _set = __webpack_require__(42);
2421
2422var _set2 = _interopRequireDefault(_set);
2423
2424var _map = __webpack_require__(14);
2425
2426var _map2 = _interopRequireDefault(_map);
2427
2428var _lensPath = __webpack_require__(90);
2429
2430var _lensPath2 = _interopRequireDefault(_lensPath);
2431
2432var _over = __webpack_require__(40);
2433
2434var _over2 = _interopRequireDefault(_over);
2435
2436var _dissocPath = __webpack_require__(60);
2437
2438var _dissocPath2 = _interopRequireDefault(_dissocPath);
2439
2440var _assocPath = __webpack_require__(28);
2441
2442var _assocPath2 = _interopRequireDefault(_assocPath);
2443
2444exports.default = formsReducer;
2445
2446var _containers = __webpack_require__(25);
2447
2448var _arrayShift = __webpack_require__(50);
2449
2450var _arrayShift2 = _interopRequireDefault(_arrayShift);
2451
2452var _actions = __webpack_require__(9);
2453
2454function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2455
2456function formsReducer() {
2457 var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2458 var a = arguments[1];
2459
2460 switch (a.type) {
2461 // Form
2462 // ---
2463 case _actions.ADD_FORM:
2464 return (0, _assocPath2.default)([a.payload.name], _containers.form, state);
2465 case _actions.REMOVE_FORM:
2466 return (0, _dissocPath2.default)([a.payload.name], state);
2467 case _actions.ADD_FIELD:
2468 return (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.id], a.payload.field, state);
2469 case _actions.REMOVE_FIELD:
2470 return (0, _dissocPath2.default)([a.payload.form, 'fields', a.payload.id], state);
2471 case _actions.TOUCH_ALL:
2472 return (0, _over2.default)((0, _lensPath2.default)([a.payload.form, 'fields']), (0, _map2.default)((0, _set2.default)((0, _lensProp2.default)('touched'), true)), state);
2473 case _actions.SUBMIT_START:
2474 return (0, _set2.default)((0, _lensPath2.default)([a.payload.form, 'submitting']), true, state);
2475 case _actions.SUBMIT_STOP:
2476 return (0, _set2.default)((0, _lensPath2.default)([a.payload.form, 'submitting']), false, state);
2477 // Array
2478 // ---
2479 case _actions.ADD_ARRAY:
2480 return (0, _assocPath2.default)([a.payload.form, 'arrays', a.payload.id], 0, state);
2481 case _actions.REMOVE_ARRAY:
2482 return (0, _dissocPath2.default)([a.payload.form, 'arrays', a.payload.id], state);
2483 case _actions.ARRAY_PUSH:
2484 return (0, _over2.default)((0, _lensPath2.default)([a.payload.form, 'arrays', a.payload.id]), _inc2.default, state);
2485 case _actions.ARRAY_POP:
2486 return (0, _over2.default)((0, _lensPath2.default)([a.payload.form, 'arrays', a.payload.id]), _dec2.default, state);
2487 case _actions.ARRAY_UNSHIFT:
2488 return (0, _compose2.default)((0, _over2.default)((0, _lensPath2.default)([a.payload.form, 'fields']), (0, _arrayShift2.default)(a.payload.id, 0)), (0, _over2.default)((0, _lensPath2.default)([a.payload.form, 'arrays', a.payload.id]), _inc2.default))(state);
2489 case _actions.ARRAY_SHIFT:
2490 return (0, _compose2.default)((0, _over2.default)((0, _lensPath2.default)([a.payload.form, 'fields']), (0, _arrayShift2.default)(a.payload.id, 0, false)), (0, _over2.default)((0, _lensPath2.default)([a.payload.form, 'arrays', a.payload.id]), _dec2.default))(state);
2491 // Field
2492 // ---
2493 case _actions.FIELD_CHANGE:
2494 return (0, _compose2.default)((0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'value'], a.payload.value), (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'error'], a.payload.error), (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'dirty'], a.payload.dirty))(state);
2495 case _actions.FIELD_FOCUS:
2496 return (0, _compose2.default)((0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'active'], true), (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'visited'], true))(state);
2497 case _actions.FIELD_BLUR:
2498 return (0, _compose2.default)((0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'value'], a.payload.value), (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'error'], a.payload.error), (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'dirty'], a.payload.dirty), (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'active'], false), (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'touched'], true))(state);
2499 case _actions.FIELD_VALUE:
2500 return (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'value'], a.payload.value, state);
2501 case _actions.FIELD_ERROR:
2502 return (0, _assocPath2.default)([a.payload.form, 'fields', a.payload.field, 'error'], a.payload.error, state);
2503 default:
2504 return state;
2505 }
2506}
2507
2508/***/ },
2509/* 49 */
2510/***/ function(module, exports, __webpack_require__) {
2511
2512"use strict";
2513'use strict';
2514
2515Object.defineProperty(exports, "__esModule", {
2516 value: true
2517});
2518
2519var _identity = __webpack_require__(29);
2520
2521var _identity2 = _interopRequireDefault(_identity);
2522
2523var _any = __webpack_require__(27);
2524
2525var _any2 = _interopRequireDefault(_any);
2526
2527var _none = __webpack_require__(93);
2528
2529var _none2 = _interopRequireDefault(_none);
2530
2531var _values = __webpack_require__(103);
2532
2533var _values2 = _interopRequireDefault(_values);
2534
2535var _path = __webpack_require__(15);
2536
2537var _path2 = _interopRequireDefault(_path);
2538
2539var _prop = __webpack_require__(16);
2540
2541var _prop2 = _interopRequireDefault(_prop);
2542
2543var _map = __webpack_require__(14);
2544
2545var _map2 = _interopRequireDefault(_map);
2546
2547var _compose = __webpack_require__(7);
2548
2549var _compose2 = _interopRequireDefault(_compose);
2550
2551var _memoize = __webpack_require__(91);
2552
2553var _memoize2 = _interopRequireDefault(_memoize);
2554
2555exports.valueSelector = valueSelector;
2556exports.errorSelector = errorSelector;
2557exports.isValid = isValid;
2558exports.isTouched = isTouched;
2559exports.isDirty = isDirty;
2560exports.isSubmitting = isSubmitting;
2561
2562var _helpers = __webpack_require__(6);
2563
2564function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2565
2566var memUnflatten = (0, _memoize2.default)(_helpers.unflatten);
2567var memValue = (0, _memoize2.default)((0, _compose2.default)(memUnflatten, (0, _map2.default)((0, _prop2.default)('value'))));
2568function valueSelector(name, state) {
2569 var form = (0, _path2.default)(['reduxFormLite', name], state);
2570 if (!form) {
2571 return {};
2572 }
2573 return memValue(form.fields);
2574}
2575var memError = (0, _memoize2.default)((0, _compose2.default)(memUnflatten, (0, _map2.default)((0, _prop2.default)('error'))));
2576function errorSelector(name, state) {
2577 var form = (0, _path2.default)(['reduxFormLite', name], state);
2578 if (!form) {
2579 return {};
2580 }
2581 return memError(form.fields);
2582}
2583var memValues = (0, _memoize2.default)(_values2.default);
2584var memValid = (0, _memoize2.default)((0, _compose2.default)((0, _none2.default)(Boolean), memValues, (0, _map2.default)((0, _prop2.default)('error'))));
2585function isValid(name, state) {
2586 var form = (0, _path2.default)(['reduxFormLite', name], state);
2587 if (!form) {
2588 return false;
2589 }
2590 // TS thinks 'form.fields' is not a functor
2591 return memValid(form.fields);
2592}
2593var memTouched = (0, _memoize2.default)((0, _compose2.default)((0, _any2.default)(_identity2.default), memValues, (0, _map2.default)((0, _prop2.default)('touched'))));
2594function isTouched(name, state) {
2595 var form = (0, _path2.default)(['reduxFormLite', name], state);
2596 if (!form) {
2597 return false;
2598 }
2599 // TS thinks 'form.fields' is not a functor
2600 return memTouched(form.fields);
2601}
2602var memDirty = (0, _memoize2.default)((0, _compose2.default)((0, _any2.default)(_identity2.default), memValues, (0, _map2.default)((0, _prop2.default)('dirty'))));
2603function isDirty(name, state) {
2604 var form = (0, _path2.default)(['reduxFormLite', name], state);
2605 if (!form) {
2606 return false;
2607 }
2608 // TS thinks 'form.fields' is not a functor
2609 return memDirty(form.fields);
2610}
2611function isSubmitting(name, state) {
2612 var form = (0, _path2.default)(['reduxFormLite', name], state);
2613 if (!form) {
2614 return false;
2615 }
2616 return form.submitting;
2617}
2618
2619/***/ },
2620/* 50 */
2621/***/ function(module, exports, __webpack_require__) {
2622
2623"use strict";
2624'use strict';
2625
2626Object.defineProperty(exports, "__esModule", {
2627 value: true
2628});
2629
2630var _keys = __webpack_require__(4);
2631
2632var _keys2 = _interopRequireDefault(_keys);
2633
2634var _prepend = __webpack_require__(97);
2635
2636var _prepend2 = _interopRequireDefault(_prepend);
2637
2638var _head = __webpack_require__(64);
2639
2640var _head2 = _interopRequireDefault(_head);
2641
2642var _split = __webpack_require__(101);
2643
2644var _split2 = _interopRequireDefault(_split);
2645
2646var _tail = __webpack_require__(43);
2647
2648var _tail2 = _interopRequireDefault(_tail);
2649
2650var _compose = __webpack_require__(7);
2651
2652var _compose2 = _interopRequireDefault(_compose);
2653
2654var _prop = __webpack_require__(16);
2655
2656var _prop2 = _interopRequireDefault(_prop);
2657
2658var _assoc = __webpack_require__(10);
2659
2660var _assoc2 = _interopRequireDefault(_assoc);
2661
2662var _reduce = __webpack_require__(41);
2663
2664var _reduce2 = _interopRequireDefault(_reduce);
2665
2666exports.default = arrayShift;
2667
2668function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2669
2670function arrayShift(path, start) {
2671 var plus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
2672
2673 var modifier = plus ? 1 : -1;
2674 return function (fields) {
2675 return (0, _reduce2.default)(function (acc, key) {
2676 if (key.indexOf(path) !== 0) {
2677 return (0, _assoc2.default)(key, (0, _prop2.default)(key, fields), acc);
2678 }
2679 var parts = (0, _compose2.default)(_tail2.default, (0, _split2.default)('.'))(key.replace(path, ''));
2680 var index = Number((0, _head2.default)(parts));
2681 if (Number.isNaN(index) || index < start) {
2682 return (0, _assoc2.default)(key, (0, _prop2.default)(key, fields), acc);
2683 }
2684 var newindex = index + modifier;
2685 if (newindex < 0) {
2686 return acc;
2687 }
2688 var lead = path + '.' + newindex;
2689 var newkey = (0, _prepend2.default)(lead, (0, _tail2.default)(parts)).join('.');
2690 return (0, _assoc2.default)(newkey, (0, _prop2.default)(key, fields), acc);
2691 }, {}, (0, _keys2.default)(fields));
2692 };
2693}
2694
2695/***/ },
2696/* 51 */
2697/***/ function(module, exports, __webpack_require__) {
2698
2699"use strict";
2700'use strict';
2701
2702Object.defineProperty(exports, "__esModule", {
2703 value: true
2704});
2705
2706var _omit = __webpack_require__(22);
2707
2708var _omit2 = _interopRequireDefault(_omit);
2709
2710var _merge = __webpack_require__(5);
2711
2712var _merge2 = _interopRequireDefault(_merge);
2713
2714function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2715
2716var FIELD_ARRAY_PROPS = ['component', 'withRef',
2717// state
2718'_form', '_array',
2719// actions
2720'_addArray', '_removeArray', '_arrayPush', '_arrayPop', '_arrayUnshift', '_arrayShift'];
2721var fieldArrayProps = function fieldArrayProps(props, fields) {
2722 return (0, _merge2.default)((0, _omit2.default)(FIELD_ARRAY_PROPS, props), { fields: fields });
2723};
2724exports.default = fieldArrayProps;
2725
2726/***/ },
2727/* 52 */
2728/***/ function(module, exports, __webpack_require__) {
2729
2730"use strict";
2731'use strict';
2732
2733Object.defineProperty(exports, "__esModule", {
2734 value: true
2735});
2736
2737var _compose = __webpack_require__(7);
2738
2739var _compose2 = _interopRequireDefault(_compose);
2740
2741var _flatten = __webpack_require__(63);
2742
2743var _flatten2 = _interopRequireDefault(_flatten);
2744
2745var _omit = __webpack_require__(22);
2746
2747var _omit2 = _interopRequireDefault(_omit);
2748
2749var _pick = __webpack_require__(95);
2750
2751var _pick2 = _interopRequireDefault(_pick);
2752
2753var _merge = __webpack_require__(5);
2754
2755var _merge2 = _interopRequireDefault(_merge);
2756
2757function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2758
2759var INPUT_PROPS = ['checked', 'name', 'value', 'onChange', 'onFocus', 'onBlur'];
2760var META_PROPS = ['active', 'dirty', 'error', 'touched', 'visited'];
2761var FIELD_PROPS = ['component', 'defaultValue', 'normalize', 'validate', 'withRef',
2762// state
2763'_form', '_field',
2764// actions
2765'_addField', '_removeField', '_fieldChange', '_fieldFocus', '_fieldBlur'];
2766var maybeCheckProps = function maybeCheckProps(all) {
2767 if (typeof all.value === 'boolean') {
2768 return (0, _merge2.default)(all, { checked: all.value });
2769 }
2770 return all;
2771};
2772var separateProps = function separateProps(all) {
2773 return {
2774 input: (0, _pick2.default)(INPUT_PROPS, all),
2775 meta: (0, _pick2.default)(META_PROPS, all),
2776 custom: (0, _omit2.default)((0, _flatten2.default)([INPUT_PROPS, META_PROPS, FIELD_PROPS]), all)
2777 };
2778};
2779exports.default = (0, _compose2.default)(separateProps, maybeCheckProps);
2780
2781/***/ },
2782/* 53 */
2783/***/ function(module, exports, __webpack_require__) {
2784
2785"use strict";
2786'use strict';
2787
2788Object.defineProperty(exports, "__esModule", {
2789 value: true
2790});
2791
2792var _omit = __webpack_require__(22);
2793
2794var _omit2 = _interopRequireDefault(_omit);
2795
2796function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2797
2798var FORM_PROPS = ['name', 'persistent', 'withRef',
2799// state
2800'_form', '_values', '_valid', '_submitting',
2801// actions
2802'_addForm', '_removeForm', '_touchAll', '_submitStart', '_submitStop'];
2803var formProps = function formProps(props) {
2804 return (0, _omit2.default)(FORM_PROPS, props);
2805};
2806exports.default = formProps;
2807
2808/***/ },
2809/* 54 */
2810/***/ function(module, exports, __webpack_require__) {
2811
2812"use strict";
2813'use strict';
2814
2815Object.defineProperty(exports, "__esModule", {
2816 value: true
2817});
2818
2819var _helpers = __webpack_require__(6);
2820
2821var getSelectedValues = function getSelectedValues(options) {
2822 return Array.from(options).filter(function (option) {
2823 return option.selected;
2824 }).map(function (option) {
2825 return option.value;
2826 });
2827};
2828var getValue = function getValue(ev) {
2829 if (!(0, _helpers.isEvent)(ev)) {
2830 return ev;
2831 }
2832 var target = ev.target;
2833 switch (target.type) {
2834 case 'checkbox':
2835 return target.checked;
2836 case 'file':
2837 return target.files;
2838 case 'select-multiple':
2839 return getSelectedValues(target.options);
2840 default:
2841 return target.value;
2842 }
2843};
2844exports.default = getValue;
2845
2846/***/ },
2847/* 55 */
2848/***/ function(module, exports, __webpack_require__) {
2849
2850var _concat = __webpack_require__(33);
2851var _curry1 = __webpack_require__(1);
2852var curryN = __webpack_require__(18);
2853
2854
2855/**
2856 * Creates a new list iteration function from an existing one by adding two new
2857 * parameters to its callback function: the current index, and the entire list.
2858 *
2859 * This would turn, for instance, Ramda's simple `map` function into one that
2860 * more closely resembles `Array.prototype.map`. Note that this will only work
2861 * for functions in which the iteration callback function is the first
2862 * parameter, and where the list is the last parameter. (This latter might be
2863 * unimportant if the list parameter is not used.)
2864 *
2865 * @func
2866 * @memberOf R
2867 * @since v0.15.0
2868 * @category Function
2869 * @category List
2870 * @sig ((a ... -> b) ... -> [a] -> *) -> (a ..., Int, [a] -> b) ... -> [a] -> *)
2871 * @param {Function} fn A list iteration function that does not pass index or list to its callback
2872 * @return {Function} An altered list iteration function that passes (item, index, list) to its callback
2873 * @example
2874 *
2875 * var mapIndexed = R.addIndex(R.map);
2876 * mapIndexed((val, idx) => idx + '-' + val, ['f', 'o', 'o', 'b', 'a', 'r']);
2877 * //=> ['0-f', '1-o', '2-o', '3-b', '4-a', '5-r']
2878 */
2879module.exports = _curry1(function addIndex(fn) {
2880 return curryN(fn.length, function() {
2881 var idx = 0;
2882 var origFn = arguments[0];
2883 var list = arguments[arguments.length - 1];
2884 var args = Array.prototype.slice.call(arguments, 0);
2885 args[0] = function() {
2886 var result = origFn.apply(this, _concat(arguments, [idx, list]));
2887 idx += 1;
2888 return result;
2889 };
2890 return fn.apply(this, args);
2891 });
2892});
2893
2894
2895/***/ },
2896/* 56 */
2897/***/ function(module, exports, __webpack_require__) {
2898
2899var _curry1 = __webpack_require__(1);
2900
2901
2902/**
2903 * Returns a function that always returns the given value. Note that for
2904 * non-primitives the value returned is a reference to the original value.
2905 *
2906 * This function is known as `const`, `constant`, or `K` (for K combinator) in
2907 * other languages and libraries.
2908 *
2909 * @func
2910 * @memberOf R
2911 * @since v0.1.0
2912 * @category Function
2913 * @sig a -> (* -> a)
2914 * @param {*} val The value to wrap in a function
2915 * @return {Function} A Function :: * -> val.
2916 * @example
2917 *
2918 * var t = R.always('Tee');
2919 * t(); //=> 'Tee'
2920 */
2921module.exports = _curry1(function always(val) {
2922 return function() {
2923 return val;
2924 };
2925});
2926
2927
2928/***/ },
2929/* 57 */
2930/***/ function(module, exports, __webpack_require__) {
2931
2932var _arity = __webpack_require__(8);
2933var _curry2 = __webpack_require__(0);
2934
2935
2936/**
2937 * Creates a function that is bound to a context.
2938 * Note: `R.bind` does not provide the additional argument-binding capabilities of
2939 * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
2940 *
2941 * @func
2942 * @memberOf R
2943 * @since v0.6.0
2944 * @category Function
2945 * @category Object
2946 * @sig (* -> *) -> {*} -> (* -> *)
2947 * @param {Function} fn The function to bind to context
2948 * @param {Object} thisObj The context to bind `fn` to
2949 * @return {Function} A function that will execute in the context of `thisObj`.
2950 * @see R.partial
2951 * @example
2952 *
2953 * var log = R.bind(console.log, console);
2954 * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
2955 * // logs {a: 2}
2956 * @symb R.bind(f, o)(a, b) = f.call(o, a, b)
2957 */
2958module.exports = _curry2(function bind(fn, thisObj) {
2959 return _arity(fn.length, function() {
2960 return fn.apply(thisObj, arguments);
2961 });
2962});
2963
2964
2965/***/ },
2966/* 58 */
2967/***/ function(module, exports, __webpack_require__) {
2968
2969var add = __webpack_require__(26);
2970
2971
2972/**
2973 * Decrements its argument.
2974 *
2975 * @func
2976 * @memberOf R
2977 * @since v0.9.0
2978 * @category Math
2979 * @sig Number -> Number
2980 * @param {Number} n
2981 * @return {Number} n - 1
2982 * @see R.inc
2983 * @example
2984 *
2985 * R.dec(42); //=> 41
2986 */
2987module.exports = add(-1);
2988
2989
2990/***/ },
2991/* 59 */
2992/***/ function(module, exports, __webpack_require__) {
2993
2994var _curry2 = __webpack_require__(0);
2995
2996
2997/**
2998 * Returns a new object that does not contain a `prop` property.
2999 *
3000 * @func
3001 * @memberOf R
3002 * @since v0.10.0
3003 * @category Object
3004 * @sig String -> {k: v} -> {k: v}
3005 * @param {String} prop The name of the property to dissociate
3006 * @param {Object} obj The object to clone
3007 * @return {Object} A new object equivalent to the original but without the specified property
3008 * @see R.assoc
3009 * @example
3010 *
3011 * R.dissoc('b', {a: 1, b: 2, c: 3}); //=> {a: 1, c: 3}
3012 */
3013module.exports = _curry2(function dissoc(prop, obj) {
3014 var result = {};
3015 for (var p in obj) {
3016 result[p] = obj[p];
3017 }
3018 delete result[prop];
3019 return result;
3020});
3021
3022
3023/***/ },
3024/* 60 */
3025/***/ function(module, exports, __webpack_require__) {
3026
3027var _curry2 = __webpack_require__(0);
3028var assoc = __webpack_require__(10);
3029var dissoc = __webpack_require__(59);
3030
3031
3032/**
3033 * Makes a shallow clone of an object, omitting the property at the given path.
3034 * Note that this copies and flattens prototype properties onto the new object
3035 * as well. All non-primitive properties are copied by reference.
3036 *
3037 * @func
3038 * @memberOf R
3039 * @since v0.11.0
3040 * @category Object
3041 * @sig [String] -> {k: v} -> {k: v}
3042 * @param {Array} path The path to the value to omit
3043 * @param {Object} obj The object to clone
3044 * @return {Object} A new object without the property at path
3045 * @see R.assocPath
3046 * @example
3047 *
3048 * R.dissocPath(['a', 'b', 'c'], {a: {b: {c: 42}}}); //=> {a: {b: {}}}
3049 */
3050module.exports = _curry2(function dissocPath(path, obj) {
3051 switch (path.length) {
3052 case 0:
3053 return obj;
3054 case 1:
3055 return dissoc(path[0], obj);
3056 default:
3057 var head = path[0];
3058 var tail = Array.prototype.slice.call(path, 1);
3059 return obj[head] == null ? obj : assoc(head, dissocPath(tail, obj[head]), obj);
3060 }
3061});
3062
3063
3064/***/ },
3065/* 61 */
3066/***/ function(module, exports, __webpack_require__) {
3067
3068var _curry2 = __webpack_require__(0);
3069var _equals = __webpack_require__(69);
3070
3071
3072/**
3073 * Returns `true` if its arguments are equivalent, `false` otherwise. Handles
3074 * cyclical data structures.
3075 *
3076 * Dispatches symmetrically to the `equals` methods of both arguments, if
3077 * present.
3078 *
3079 * @func
3080 * @memberOf R
3081 * @since v0.15.0
3082 * @category Relation
3083 * @sig a -> b -> Boolean
3084 * @param {*} a
3085 * @param {*} b
3086 * @return {Boolean}
3087 * @example
3088 *
3089 * R.equals(1, 1); //=> true
3090 * R.equals(1, '1'); //=> false
3091 * R.equals([1, 2, 3], [1, 2, 3]); //=> true
3092 *
3093 * var a = {}; a.v = a;
3094 * var b = {}; b.v = b;
3095 * R.equals(a, b); //=> true
3096 */
3097module.exports = _curry2(function equals(a, b) {
3098 return _equals(a, b, [], []);
3099});
3100
3101
3102/***/ },
3103/* 62 */
3104/***/ function(module, exports, __webpack_require__) {
3105
3106var _curry2 = __webpack_require__(0);
3107var _dispatchable = __webpack_require__(11);
3108var _filter = __webpack_require__(70);
3109var _isObject = __webpack_require__(77);
3110var _reduce = __webpack_require__(20);
3111var _xfilter = __webpack_require__(86);
3112var keys = __webpack_require__(4);
3113
3114
3115/**
3116 * Takes a predicate and a "filterable", and returns a new filterable of the
3117 * same type containing the members of the given filterable which satisfy the
3118 * given predicate.
3119 *
3120 * Dispatches to the `filter` method of the second argument, if present.
3121 *
3122 * Acts as a transducer if a transformer is given in list position.
3123 *
3124 * @func
3125 * @memberOf R
3126 * @since v0.1.0
3127 * @category List
3128 * @sig Filterable f => (a -> Boolean) -> f a -> f a
3129 * @param {Function} pred
3130 * @param {Array} filterable
3131 * @return {Array}
3132 * @see R.reject, R.transduce, R.addIndex
3133 * @example
3134 *
3135 * var isEven = n => n % 2 === 0;
3136 *
3137 * R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]
3138 *
3139 * R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
3140 */
3141module.exports = _curry2(_dispatchable(['filter'], _xfilter, function(pred, filterable) {
3142 return (
3143 _isObject(filterable) ?
3144 _reduce(function(acc, key) {
3145 if (pred(filterable[key])) {
3146 acc[key] = filterable[key];
3147 }
3148 return acc;
3149 }, {}, keys(filterable)) :
3150 // else
3151 _filter(pred, filterable)
3152 );
3153}));
3154
3155
3156/***/ },
3157/* 63 */
3158/***/ function(module, exports, __webpack_require__) {
3159
3160var _curry1 = __webpack_require__(1);
3161var _makeFlat = __webpack_require__(79);
3162
3163
3164/**
3165 * Returns a new list by pulling every item out of it (and all its sub-arrays)
3166 * and putting them in a new array, depth-first.
3167 *
3168 * @func
3169 * @memberOf R
3170 * @since v0.1.0
3171 * @category List
3172 * @sig [a] -> [b]
3173 * @param {Array} list The array to consider.
3174 * @return {Array} The flattened list.
3175 * @see R.unnest
3176 * @example
3177 *
3178 * R.flatten([1, 2, [3, 4], 5, [6, [7, 8, [9, [10, 11], 12]]]]);
3179 * //=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
3180 */
3181module.exports = _curry1(_makeFlat(true));
3182
3183
3184/***/ },
3185/* 64 */
3186/***/ function(module, exports, __webpack_require__) {
3187
3188var nth = __webpack_require__(94);
3189
3190
3191/**
3192 * Returns the first element of the given list or string. In some libraries
3193 * this function is named `first`.
3194 *
3195 * @func
3196 * @memberOf R
3197 * @since v0.1.0
3198 * @category List
3199 * @sig [a] -> a | Undefined
3200 * @sig String -> String
3201 * @param {Array|String} list
3202 * @return {*}
3203 * @see R.tail, R.init, R.last
3204 * @example
3205 *
3206 * R.head(['fi', 'fo', 'fum']); //=> 'fi'
3207 * R.head([]); //=> undefined
3208 *
3209 * R.head('abc'); //=> 'a'
3210 * R.head(''); //=> ''
3211 */
3212module.exports = nth(0);
3213
3214
3215/***/ },
3216/* 65 */
3217/***/ function(module, exports, __webpack_require__) {
3218
3219var _curry2 = __webpack_require__(0);
3220
3221
3222/**
3223 * Returns true if its arguments are identical, false otherwise. Values are
3224 * identical if they reference the same memory. `NaN` is identical to `NaN`;
3225 * `0` and `-0` are not identical.
3226 *
3227 * @func
3228 * @memberOf R
3229 * @since v0.15.0
3230 * @category Relation
3231 * @sig a -> a -> Boolean
3232 * @param {*} a
3233 * @param {*} b
3234 * @return {Boolean}
3235 * @example
3236 *
3237 * var o = {};
3238 * R.identical(o, o); //=> true
3239 * R.identical(1, 1); //=> true
3240 * R.identical(1, '1'); //=> false
3241 * R.identical([], []); //=> false
3242 * R.identical(0, -0); //=> false
3243 * R.identical(NaN, NaN); //=> true
3244 */
3245module.exports = _curry2(function identical(a, b) {
3246 // SameValue algorithm
3247 if (a === b) { // Steps 1-5, 7-10
3248 // Steps 6.b-6.e: +0 != -0
3249 return a !== 0 || 1 / a === 1 / b;
3250 } else {
3251 // Step 6.a: NaN == NaN
3252 return a !== a && b !== b;
3253 }
3254});
3255
3256
3257/***/ },
3258/* 66 */
3259/***/ function(module, exports, __webpack_require__) {
3260
3261var add = __webpack_require__(26);
3262
3263
3264/**
3265 * Increments its argument.
3266 *
3267 * @func
3268 * @memberOf R
3269 * @since v0.9.0
3270 * @category Math
3271 * @sig Number -> Number
3272 * @param {Number} n
3273 * @return {Number} n + 1
3274 * @see R.dec
3275 * @example
3276 *
3277 * R.inc(42); //=> 43
3278 */
3279module.exports = add(1);
3280
3281
3282/***/ },
3283/* 67 */
3284/***/ function(module, exports) {
3285
3286module.exports = function _arrayFromIterator(iter) {
3287 var list = [];
3288 var next;
3289 while (!(next = iter.next()).done) {
3290 list.push(next.value);
3291 }
3292 return list;
3293};
3294
3295
3296/***/ },
3297/* 68 */
3298/***/ function(module, exports, __webpack_require__) {
3299
3300var _arity = __webpack_require__(8);
3301var _isPlaceholder = __webpack_require__(13);
3302
3303
3304/**
3305 * Internal curryN function.
3306 *
3307 * @private
3308 * @category Function
3309 * @param {Number} length The arity of the curried function.
3310 * @param {Array} received An array of arguments received thus far.
3311 * @param {Function} fn The function to curry.
3312 * @return {Function} The curried function.
3313 */
3314module.exports = function _curryN(length, received, fn) {
3315 return function() {
3316 var combined = [];
3317 var argsIdx = 0;
3318 var left = length;
3319 var combinedIdx = 0;
3320 while (combinedIdx < received.length || argsIdx < arguments.length) {
3321 var result;
3322 if (combinedIdx < received.length &&
3323 (!_isPlaceholder(received[combinedIdx]) ||
3324 argsIdx >= arguments.length)) {
3325 result = received[combinedIdx];
3326 } else {
3327 result = arguments[argsIdx];
3328 argsIdx += 1;
3329 }
3330 combined[combinedIdx] = result;
3331 if (!_isPlaceholder(result)) {
3332 left -= 1;
3333 }
3334 combinedIdx += 1;
3335 }
3336 return left <= 0 ? fn.apply(this, combined)
3337 : _arity(left, _curryN(length, combined, fn));
3338 };
3339};
3340
3341
3342/***/ },
3343/* 69 */
3344/***/ function(module, exports, __webpack_require__) {
3345
3346var _arrayFromIterator = __webpack_require__(67);
3347var _functionName = __webpack_require__(71);
3348var _has = __webpack_require__(3);
3349var identical = __webpack_require__(65);
3350var keys = __webpack_require__(4);
3351var type = __webpack_require__(102);
3352
3353
3354module.exports = function _equals(a, b, stackA, stackB) {
3355 if (identical(a, b)) {
3356 return true;
3357 }
3358
3359 if (type(a) !== type(b)) {
3360 return false;
3361 }
3362
3363 if (a == null || b == null) {
3364 return false;
3365 }
3366
3367 if (typeof a.equals === 'function' || typeof b.equals === 'function') {
3368 return typeof a.equals === 'function' && a.equals(b) &&
3369 typeof b.equals === 'function' && b.equals(a);
3370 }
3371
3372 switch (type(a)) {
3373 case 'Arguments':
3374 case 'Array':
3375 case 'Object':
3376 if (typeof a.constructor === 'function' &&
3377 _functionName(a.constructor) === 'Promise') {
3378 return a === b;
3379 }
3380 break;
3381 case 'Boolean':
3382 case 'Number':
3383 case 'String':
3384 if (!(typeof a === typeof b && identical(a.valueOf(), b.valueOf()))) {
3385 return false;
3386 }
3387 break;
3388 case 'Date':
3389 if (!identical(a.valueOf(), b.valueOf())) {
3390 return false;
3391 }
3392 break;
3393 case 'Error':
3394 return a.name === b.name && a.message === b.message;
3395 case 'RegExp':
3396 if (!(a.source === b.source &&
3397 a.global === b.global &&
3398 a.ignoreCase === b.ignoreCase &&
3399 a.multiline === b.multiline &&
3400 a.sticky === b.sticky &&
3401 a.unicode === b.unicode)) {
3402 return false;
3403 }
3404 break;
3405 case 'Map':
3406 case 'Set':
3407 if (!_equals(_arrayFromIterator(a.entries()), _arrayFromIterator(b.entries()), stackA, stackB)) {
3408 return false;
3409 }
3410 break;
3411 case 'Int8Array':
3412 case 'Uint8Array':
3413 case 'Uint8ClampedArray':
3414 case 'Int16Array':
3415 case 'Uint16Array':
3416 case 'Int32Array':
3417 case 'Uint32Array':
3418 case 'Float32Array':
3419 case 'Float64Array':
3420 break;
3421 case 'ArrayBuffer':
3422 break;
3423 default:
3424 // Values of other types are only equal if identical.
3425 return false;
3426 }
3427
3428 var keysA = keys(a);
3429 if (keysA.length !== keys(b).length) {
3430 return false;
3431 }
3432
3433 var idx = stackA.length - 1;
3434 while (idx >= 0) {
3435 if (stackA[idx] === a) {
3436 return stackB[idx] === b;
3437 }
3438 idx -= 1;
3439 }
3440
3441 stackA.push(a);
3442 stackB.push(b);
3443 idx = keysA.length - 1;
3444 while (idx >= 0) {
3445 var key = keysA[idx];
3446 if (!(_has(key, b) && _equals(b[key], a[key], stackA, stackB))) {
3447 return false;
3448 }
3449 idx -= 1;
3450 }
3451 stackA.pop();
3452 stackB.pop();
3453 return true;
3454};
3455
3456
3457/***/ },
3458/* 70 */
3459/***/ function(module, exports) {
3460
3461module.exports = function _filter(fn, list) {
3462 var idx = 0;
3463 var len = list.length;
3464 var result = [];
3465
3466 while (idx < len) {
3467 if (fn(list[idx])) {
3468 result[result.length] = list[idx];
3469 }
3470 idx += 1;
3471 }
3472 return result;
3473};
3474
3475
3476/***/ },
3477/* 71 */
3478/***/ function(module, exports) {
3479
3480module.exports = function _functionName(f) {
3481 // String(x => x) evaluates to "x => x", so the pattern may not match.
3482 var match = String(f).match(/^function (\w*)/);
3483 return match == null ? '' : match[1];
3484};
3485
3486
3487/***/ },
3488/* 72 */
3489/***/ function(module, exports) {
3490
3491module.exports = function _identity(x) { return x; };
3492
3493
3494/***/ },
3495/* 73 */
3496/***/ function(module, exports, __webpack_require__) {
3497
3498var equals = __webpack_require__(61);
3499
3500
3501module.exports = function _indexOf(list, a, idx) {
3502 var inf, item;
3503 // Array.prototype.indexOf doesn't exist below IE9
3504 if (typeof list.indexOf === 'function') {
3505 switch (typeof a) {
3506 case 'number':
3507 if (a === 0) {
3508 // manually crawl the list to distinguish between +0 and -0
3509 inf = 1 / a;
3510 while (idx < list.length) {
3511 item = list[idx];
3512 if (item === 0 && 1 / item === inf) {
3513 return idx;
3514 }
3515 idx += 1;
3516 }
3517 return -1;
3518 } else if (a !== a) {
3519 // NaN
3520 while (idx < list.length) {
3521 item = list[idx];
3522 if (typeof item === 'number' && item !== item) {
3523 return idx;
3524 }
3525 idx += 1;
3526 }
3527 return -1;
3528 }
3529 // non-zero numbers can utilise Set
3530 return list.indexOf(a, idx);
3531
3532 // all these types can utilise Set
3533 case 'string':
3534 case 'boolean':
3535 case 'function':
3536 case 'undefined':
3537 return list.indexOf(a, idx);
3538
3539 case 'object':
3540 if (a === null) {
3541 // null can utilise Set
3542 return list.indexOf(a, idx);
3543 }
3544 }
3545 }
3546 // anything else not covered above, defer to R.equals
3547 while (idx < list.length) {
3548 if (equals(list[idx], a)) {
3549 return idx;
3550 }
3551 idx += 1;
3552 }
3553 return -1;
3554};
3555
3556
3557/***/ },
3558/* 74 */
3559/***/ function(module, exports, __webpack_require__) {
3560
3561var _has = __webpack_require__(3);
3562
3563
3564module.exports = (function() {
3565 var toString = Object.prototype.toString;
3566 return toString.call(arguments) === '[object Arguments]' ?
3567 function _isArguments(x) { return toString.call(x) === '[object Arguments]'; } :
3568 function _isArguments(x) { return _has('callee', x); };
3569}());
3570
3571
3572/***/ },
3573/* 75 */
3574/***/ function(module, exports) {
3575
3576module.exports = function _isFunction(x) {
3577 return Object.prototype.toString.call(x) === '[object Function]';
3578};
3579
3580
3581/***/ },
3582/* 76 */
3583/***/ function(module, exports) {
3584
3585/**
3586 * Determine if the passed argument is an integer.
3587 *
3588 * @private
3589 * @param {*} n
3590 * @category Type
3591 * @return {Boolean}
3592 */
3593module.exports = Number.isInteger || function _isInteger(n) {
3594 return (n << 0) === n;
3595};
3596
3597
3598/***/ },
3599/* 77 */
3600/***/ function(module, exports) {
3601
3602module.exports = function _isObject(x) {
3603 return Object.prototype.toString.call(x) === '[object Object]';
3604};
3605
3606
3607/***/ },
3608/* 78 */
3609/***/ function(module, exports) {
3610
3611module.exports = function _isTransformer(obj) {
3612 return typeof obj['@@transducer/step'] === 'function';
3613};
3614
3615
3616/***/ },
3617/* 79 */
3618/***/ function(module, exports, __webpack_require__) {
3619
3620var isArrayLike = __webpack_require__(37);
3621
3622
3623/**
3624 * `_makeFlat` is a helper function that returns a one-level or fully recursive
3625 * function based on the flag passed in.
3626 *
3627 * @private
3628 */
3629module.exports = function _makeFlat(recursive) {
3630 return function flatt(list) {
3631 var value, jlen, j;
3632 var result = [];
3633 var idx = 0;
3634 var ilen = list.length;
3635
3636 while (idx < ilen) {
3637 if (isArrayLike(list[idx])) {
3638 value = recursive ? flatt(list[idx]) : list[idx];
3639 j = 0;
3640 jlen = value.length;
3641 while (j < jlen) {
3642 result[result.length] = value[j];
3643 j += 1;
3644 }
3645 } else {
3646 result[result.length] = list[idx];
3647 }
3648 idx += 1;
3649 }
3650 return result;
3651 };
3652};
3653
3654
3655/***/ },
3656/* 80 */
3657/***/ function(module, exports, __webpack_require__) {
3658
3659var _has = __webpack_require__(3);
3660
3661// Based on https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
3662module.exports = function _objectAssign(target) {
3663 if (target == null) {
3664 throw new TypeError('Cannot convert undefined or null to object');
3665 }
3666
3667 var output = Object(target);
3668 var idx = 1;
3669 var length = arguments.length;
3670 while (idx < length) {
3671 var source = arguments[idx];
3672 if (source != null) {
3673 for (var nextKey in source) {
3674 if (_has(nextKey, source)) {
3675 output[nextKey] = source[nextKey];
3676 }
3677 }
3678 }
3679 idx += 1;
3680 }
3681 return output;
3682};
3683
3684
3685/***/ },
3686/* 81 */
3687/***/ function(module, exports) {
3688
3689module.exports = function _pipe(f, g) {
3690 return function() {
3691 return g.call(this, f.apply(this, arguments));
3692 };
3693};
3694
3695
3696/***/ },
3697/* 82 */
3698/***/ function(module, exports) {
3699
3700module.exports = function _quote(s) {
3701 var escaped = s
3702 .replace(/\\/g, '\\\\')
3703 .replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
3704 .replace(/\f/g, '\\f')
3705 .replace(/\n/g, '\\n')
3706 .replace(/\r/g, '\\r')
3707 .replace(/\t/g, '\\t')
3708 .replace(/\v/g, '\\v')
3709 .replace(/\0/g, '\\0');
3710
3711 return '"' + escaped.replace(/"/g, '\\"') + '"';
3712};
3713
3714
3715/***/ },
3716/* 83 */
3717/***/ function(module, exports) {
3718
3719module.exports = function _reduced(x) {
3720 return x && x['@@transducer/reduced'] ? x :
3721 {
3722 '@@transducer/value': x,
3723 '@@transducer/reduced': true
3724 };
3725};
3726
3727
3728/***/ },
3729/* 84 */
3730/***/ function(module, exports) {
3731
3732/**
3733 * Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
3734 */
3735module.exports = (function() {
3736 var pad = function pad(n) { return (n < 10 ? '0' : '') + n; };
3737
3738 return typeof Date.prototype.toISOString === 'function' ?
3739 function _toISOString(d) {
3740 return d.toISOString();
3741 } :
3742 function _toISOString(d) {
3743 return (
3744 d.getUTCFullYear() + '-' +
3745 pad(d.getUTCMonth() + 1) + '-' +
3746 pad(d.getUTCDate()) + 'T' +
3747 pad(d.getUTCHours()) + ':' +
3748 pad(d.getUTCMinutes()) + ':' +
3749 pad(d.getUTCSeconds()) + '.' +
3750 (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z'
3751 );
3752 };
3753}());
3754
3755
3756/***/ },
3757/* 85 */
3758/***/ function(module, exports, __webpack_require__) {
3759
3760var _contains = __webpack_require__(34);
3761var _map = __webpack_require__(35);
3762var _quote = __webpack_require__(82);
3763var _toISOString = __webpack_require__(84);
3764var keys = __webpack_require__(4);
3765var reject = __webpack_require__(98);
3766
3767
3768module.exports = function _toString(x, seen) {
3769 var recur = function recur(y) {
3770 var xs = seen.concat([x]);
3771 return _contains(y, xs) ? '<Circular>' : _toString(y, xs);
3772 };
3773
3774 // mapPairs :: (Object, [String]) -> [String]
3775 var mapPairs = function(obj, keys) {
3776 return _map(function(k) { return _quote(k) + ': ' + recur(obj[k]); }, keys.slice().sort());
3777 };
3778
3779 switch (Object.prototype.toString.call(x)) {
3780 case '[object Arguments]':
3781 return '(function() { return arguments; }(' + _map(recur, x).join(', ') + '))';
3782 case '[object Array]':
3783 return '[' + _map(recur, x).concat(mapPairs(x, reject(function(k) { return /^\d+$/.test(k); }, keys(x)))).join(', ') + ']';
3784 case '[object Boolean]':
3785 return typeof x === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
3786 case '[object Date]':
3787 return 'new Date(' + (isNaN(x.valueOf()) ? recur(NaN) : _quote(_toISOString(x))) + ')';
3788 case '[object Null]':
3789 return 'null';
3790 case '[object Number]':
3791 return typeof x === 'object' ? 'new Number(' + recur(x.valueOf()) + ')' : 1 / x === -Infinity ? '-0' : x.toString(10);
3792 case '[object String]':
3793 return typeof x === 'object' ? 'new String(' + recur(x.valueOf()) + ')' : _quote(x);
3794 case '[object Undefined]':
3795 return 'undefined';
3796 default:
3797 if (typeof x.toString === 'function') {
3798 var repr = x.toString();
3799 if (repr !== '[object Object]') {
3800 return repr;
3801 }
3802 }
3803 return '{' + mapPairs(x, keys(x)).join(', ') + '}';
3804 }
3805};
3806
3807
3808/***/ },
3809/* 86 */
3810/***/ function(module, exports, __webpack_require__) {
3811
3812var _curry2 = __webpack_require__(0);
3813var _xfBase = __webpack_require__(21);
3814
3815
3816module.exports = (function() {
3817 function XFilter(f, xf) {
3818 this.xf = xf;
3819 this.f = f;
3820 }
3821 XFilter.prototype['@@transducer/init'] = _xfBase.init;
3822 XFilter.prototype['@@transducer/result'] = _xfBase.result;
3823 XFilter.prototype['@@transducer/step'] = function(result, input) {
3824 return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
3825 };
3826
3827 return _curry2(function _xfilter(f, xf) { return new XFilter(f, xf); });
3828}());
3829
3830
3831/***/ },
3832/* 87 */
3833/***/ function(module, exports, __webpack_require__) {
3834
3835var _curry2 = __webpack_require__(0);
3836var _xfBase = __webpack_require__(21);
3837
3838
3839module.exports = (function() {
3840 function XMap(f, xf) {
3841 this.xf = xf;
3842 this.f = f;
3843 }
3844 XMap.prototype['@@transducer/init'] = _xfBase.init;
3845 XMap.prototype['@@transducer/result'] = _xfBase.result;
3846 XMap.prototype['@@transducer/step'] = function(result, input) {
3847 return this.xf['@@transducer/step'](result, this.f(input));
3848 };
3849
3850 return _curry2(function _xmap(f, xf) { return new XMap(f, xf); });
3851}());
3852
3853
3854/***/ },
3855/* 88 */
3856/***/ function(module, exports) {
3857
3858module.exports = (function() {
3859 function XWrap(fn) {
3860 this.f = fn;
3861 }
3862 XWrap.prototype['@@transducer/init'] = function() {
3863 throw new Error('init not implemented on XWrap');
3864 };
3865 XWrap.prototype['@@transducer/result'] = function(acc) { return acc; };
3866 XWrap.prototype['@@transducer/step'] = function(acc, x) {
3867 return this.f(acc, x);
3868 };
3869
3870 return function _xwrap(fn) { return new XWrap(fn); };
3871}());
3872
3873
3874/***/ },
3875/* 89 */
3876/***/ function(module, exports, __webpack_require__) {
3877
3878var _curry2 = __webpack_require__(0);
3879var _isFunction = __webpack_require__(75);
3880var curryN = __webpack_require__(18);
3881var toString = __webpack_require__(44);
3882
3883
3884/**
3885 * Turns a named method with a specified arity into a function that can be
3886 * called directly supplied with arguments and a target object.
3887 *
3888 * The returned function is curried and accepts `arity + 1` parameters where
3889 * the final parameter is the target object.
3890 *
3891 * @func
3892 * @memberOf R
3893 * @since v0.1.0
3894 * @category Function
3895 * @sig Number -> String -> (a -> b -> ... -> n -> Object -> *)
3896 * @param {Number} arity Number of arguments the returned function should take
3897 * before the target object.
3898 * @param {String} method Name of the method to call.
3899 * @return {Function} A new curried function.
3900 * @example
3901 *
3902 * var sliceFrom = R.invoker(1, 'slice');
3903 * sliceFrom(6, 'abcdefghijklm'); //=> 'ghijklm'
3904 * var sliceFrom6 = R.invoker(2, 'slice')(6);
3905 * sliceFrom6(8, 'abcdefghijklm'); //=> 'gh'
3906 * @symb R.invoker(0, 'method')(o) = o['method']()
3907 * @symb R.invoker(1, 'method')(a, o) = o['method'](a)
3908 * @symb R.invoker(2, 'method')(a, b, o) = o['method'](a, b)
3909 */
3910module.exports = _curry2(function invoker(arity, method) {
3911 return curryN(arity + 1, function() {
3912 var target = arguments[arity];
3913 if (target != null && _isFunction(target[method])) {
3914 return target[method].apply(target, Array.prototype.slice.call(arguments, 0, arity));
3915 }
3916 throw new TypeError(toString(target) + ' does not have a method named "' + method + '"');
3917 });
3918});
3919
3920
3921/***/ },
3922/* 90 */
3923/***/ function(module, exports, __webpack_require__) {
3924
3925var _curry1 = __webpack_require__(1);
3926var assocPath = __webpack_require__(28);
3927var lens = __webpack_require__(38);
3928var path = __webpack_require__(15);
3929
3930
3931/**
3932 * Returns a lens whose focus is the specified path.
3933 *
3934 * @func
3935 * @memberOf R
3936 * @since v0.19.0
3937 * @category Object
3938 * @typedefn Idx = String | Int
3939 * @typedefn Lens s a = Functor f => (a -> f a) -> s -> f s
3940 * @sig [Idx] -> Lens s a
3941 * @param {Array} path The path to use.
3942 * @return {Lens}
3943 * @see R.view, R.set, R.over
3944 * @example
3945 *
3946 * var xHeadYLens = R.lensPath(['x', 0, 'y']);
3947 *
3948 * R.view(xHeadYLens, {x: [{y: 2, z: 3}, {y: 4, z: 5}]});
3949 * //=> 2
3950 * R.set(xHeadYLens, 1, {x: [{y: 2, z: 3}, {y: 4, z: 5}]});
3951 * //=> {x: [{y: 1, z: 3}, {y: 4, z: 5}]}
3952 * R.over(xHeadYLens, R.negate, {x: [{y: 2, z: 3}, {y: 4, z: 5}]});
3953 * //=> {x: [{y: -2, z: 3}, {y: 4, z: 5}]}
3954 */
3955module.exports = _curry1(function lensPath(p) {
3956 return lens(path(p), assocPath(p));
3957});
3958
3959
3960/***/ },
3961/* 91 */
3962/***/ function(module, exports, __webpack_require__) {
3963
3964var _arity = __webpack_require__(8);
3965var _curry1 = __webpack_require__(1);
3966var _has = __webpack_require__(3);
3967var toString = __webpack_require__(44);
3968
3969
3970/**
3971 * Creates a new function that, when invoked, caches the result of calling `fn`
3972 * for a given argument set and returns the result. Subsequent calls to the
3973 * memoized `fn` with the same argument set will not result in an additional
3974 * call to `fn`; instead, the cached result for that set of arguments will be
3975 * returned.
3976 *
3977 * @func
3978 * @memberOf R
3979 * @since v0.1.0
3980 * @category Function
3981 * @sig (*... -> a) -> (*... -> a)
3982 * @param {Function} fn The function to memoize.
3983 * @return {Function} Memoized version of `fn`.
3984 * @example
3985 *
3986 * var count = 0;
3987 * var factorial = R.memoize(n => {
3988 * count += 1;
3989 * return R.product(R.range(1, n + 1));
3990 * });
3991 * factorial(5); //=> 120
3992 * factorial(5); //=> 120
3993 * factorial(5); //=> 120
3994 * count; //=> 1
3995 */
3996module.exports = _curry1(function memoize(fn) {
3997 var cache = {};
3998 return _arity(fn.length, function() {
3999 var key = toString(arguments);
4000 if (!_has(key, cache)) {
4001 cache[key] = fn.apply(this, arguments);
4002 }
4003 return cache[key];
4004 });
4005});
4006
4007
4008/***/ },
4009/* 92 */
4010/***/ function(module, exports, __webpack_require__) {
4011
4012var _assign = __webpack_require__(30);
4013var _curry1 = __webpack_require__(1);
4014
4015
4016/**
4017 * Merges a list of objects together into one object.
4018 *
4019 * @func
4020 * @memberOf R
4021 * @since v0.10.0
4022 * @category List
4023 * @sig [{k: v}] -> {k: v}
4024 * @param {Array} list An array of objects
4025 * @return {Object} A merged object.
4026 * @see R.reduce
4027 * @example
4028 *
4029 * R.mergeAll([{foo:1},{bar:2},{baz:3}]); //=> {foo:1,bar:2,baz:3}
4030 * R.mergeAll([{foo:1},{foo:2},{bar:2}]); //=> {foo:2,bar:2}
4031 * @symb R.mergeAll([{ x: 1 }, { y: 2 }, { z: 3 }]) = { x: 1, y: 2, z: 3 }
4032 */
4033module.exports = _curry1(function mergeAll(list) {
4034 return _assign.apply(null, [{}].concat(list));
4035});
4036
4037
4038/***/ },
4039/* 93 */
4040/***/ function(module, exports, __webpack_require__) {
4041
4042var _complement = __webpack_require__(32);
4043var _curry2 = __webpack_require__(0);
4044var _dispatchable = __webpack_require__(11);
4045var _xany = __webpack_require__(36);
4046var any = __webpack_require__(27);
4047
4048
4049/**
4050 * Returns `true` if no elements of the list match the predicate, `false`
4051 * otherwise.
4052 *
4053 * Dispatches to the `any` method of the second argument, if present.
4054 *
4055 * @func
4056 * @memberOf R
4057 * @since v0.12.0
4058 * @category List
4059 * @sig (a -> Boolean) -> [a] -> Boolean
4060 * @param {Function} fn The predicate function.
4061 * @param {Array} list The array to consider.
4062 * @return {Boolean} `true` if the predicate is not satisfied by every element, `false` otherwise.
4063 * @see R.all, R.any
4064 * @example
4065 *
4066 * var isEven = n => n % 2 === 0;
4067 *
4068 * R.none(isEven, [1, 3, 5, 7, 9, 11]); //=> true
4069 * R.none(isEven, [1, 3, 5, 7, 8, 11]); //=> false
4070 */
4071module.exports = _curry2(_complement(_dispatchable(['any'], _xany, any)));
4072
4073
4074/***/ },
4075/* 94 */
4076/***/ function(module, exports, __webpack_require__) {
4077
4078var _curry2 = __webpack_require__(0);
4079var _isString = __webpack_require__(19);
4080
4081
4082/**
4083 * Returns the nth element of the given list or string. If n is negative the
4084 * element at index length + n is returned.
4085 *
4086 * @func
4087 * @memberOf R
4088 * @since v0.1.0
4089 * @category List
4090 * @sig Number -> [a] -> a | Undefined
4091 * @sig Number -> String -> String
4092 * @param {Number} offset
4093 * @param {*} list
4094 * @return {*}
4095 * @example
4096 *
4097 * var list = ['foo', 'bar', 'baz', 'quux'];
4098 * R.nth(1, list); //=> 'bar'
4099 * R.nth(-1, list); //=> 'quux'
4100 * R.nth(-99, list); //=> undefined
4101 *
4102 * R.nth(2, 'abc'); //=> 'c'
4103 * R.nth(3, 'abc'); //=> ''
4104 * @symb R.nth(-1, [a, b, c]) = c
4105 * @symb R.nth(0, [a, b, c]) = a
4106 * @symb R.nth(1, [a, b, c]) = b
4107 */
4108module.exports = _curry2(function nth(offset, list) {
4109 var idx = offset < 0 ? list.length + offset : offset;
4110 return _isString(list) ? list.charAt(idx) : list[idx];
4111});
4112
4113
4114/***/ },
4115/* 95 */
4116/***/ function(module, exports, __webpack_require__) {
4117
4118var _curry2 = __webpack_require__(0);
4119
4120
4121/**
4122 * Returns a partial copy of an object containing only the keys specified. If
4123 * the key does not exist, the property is ignored.
4124 *
4125 * @func
4126 * @memberOf R
4127 * @since v0.1.0
4128 * @category Object
4129 * @sig [k] -> {k: v} -> {k: v}
4130 * @param {Array} names an array of String property names to copy onto a new object
4131 * @param {Object} obj The object to copy from
4132 * @return {Object} A new object with only properties from `names` on it.
4133 * @see R.omit, R.props
4134 * @example
4135 *
4136 * R.pick(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {a: 1, d: 4}
4137 * R.pick(['a', 'e', 'f'], {a: 1, b: 2, c: 3, d: 4}); //=> {a: 1}
4138 */
4139module.exports = _curry2(function pick(names, obj) {
4140 var result = {};
4141 var idx = 0;
4142 while (idx < names.length) {
4143 if (names[idx] in obj) {
4144 result[names[idx]] = obj[names[idx]];
4145 }
4146 idx += 1;
4147 }
4148 return result;
4149});
4150
4151
4152/***/ },
4153/* 96 */
4154/***/ function(module, exports, __webpack_require__) {
4155
4156var _arity = __webpack_require__(8);
4157var _pipe = __webpack_require__(81);
4158var reduce = __webpack_require__(41);
4159var tail = __webpack_require__(43);
4160
4161
4162/**
4163 * Performs left-to-right function composition. The leftmost function may have
4164 * any arity; the remaining functions must be unary.
4165 *
4166 * In some libraries this function is named `sequence`.
4167 *
4168 * **Note:** The result of pipe is not automatically curried.
4169 *
4170 * @func
4171 * @memberOf R
4172 * @since v0.1.0
4173 * @category Function
4174 * @sig (((a, b, ..., n) -> o), (o -> p), ..., (x -> y), (y -> z)) -> ((a, b, ..., n) -> z)
4175 * @param {...Function} functions
4176 * @return {Function}
4177 * @see R.compose
4178 * @example
4179 *
4180 * var f = R.pipe(Math.pow, R.negate, R.inc);
4181 *
4182 * f(3, 4); // -(3^4) + 1
4183 * @symb R.pipe(f, g, h)(a, b) = h(g(f(a, b)))
4184 */
4185module.exports = function pipe() {
4186 if (arguments.length === 0) {
4187 throw new Error('pipe requires at least one argument');
4188 }
4189 return _arity(arguments[0].length,
4190 reduce(_pipe, arguments[0], tail(arguments)));
4191};
4192
4193
4194/***/ },
4195/* 97 */
4196/***/ function(module, exports, __webpack_require__) {
4197
4198var _concat = __webpack_require__(33);
4199var _curry2 = __webpack_require__(0);
4200
4201
4202/**
4203 * Returns a new list with the given element at the front, followed by the
4204 * contents of the list.
4205 *
4206 * @func
4207 * @memberOf R
4208 * @since v0.1.0
4209 * @category List
4210 * @sig a -> [a] -> [a]
4211 * @param {*} el The item to add to the head of the output list.
4212 * @param {Array} list The array to add to the tail of the output list.
4213 * @return {Array} A new array.
4214 * @see R.append
4215 * @example
4216 *
4217 * R.prepend('fee', ['fi', 'fo', 'fum']); //=> ['fee', 'fi', 'fo', 'fum']
4218 */
4219module.exports = _curry2(function prepend(el, list) {
4220 return _concat([el], list);
4221});
4222
4223
4224/***/ },
4225/* 98 */
4226/***/ function(module, exports, __webpack_require__) {
4227
4228var _complement = __webpack_require__(32);
4229var _curry2 = __webpack_require__(0);
4230var filter = __webpack_require__(62);
4231
4232
4233/**
4234 * The complement of `filter`.
4235 *
4236 * Acts as a transducer if a transformer is given in list position.
4237 *
4238 * @func
4239 * @memberOf R
4240 * @since v0.1.0
4241 * @category List
4242 * @sig Filterable f => (a -> Boolean) -> f a -> f a
4243 * @param {Function} pred
4244 * @param {Array} filterable
4245 * @return {Array}
4246 * @see R.filter, R.transduce, R.addIndex
4247 * @example
4248 *
4249 * var isOdd = (n) => n % 2 === 1;
4250 *
4251 * R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]
4252 *
4253 * R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
4254 */
4255module.exports = _curry2(function reject(pred, filterable) {
4256 return filter(_complement(pred), filterable);
4257});
4258
4259
4260/***/ },
4261/* 99 */
4262/***/ function(module, exports, __webpack_require__) {
4263
4264var _curry1 = __webpack_require__(1);
4265var _isString = __webpack_require__(19);
4266
4267
4268/**
4269 * Returns a new list or string with the elements or characters in reverse
4270 * order.
4271 *
4272 * @func
4273 * @memberOf R
4274 * @since v0.1.0
4275 * @category List
4276 * @sig [a] -> [a]
4277 * @sig String -> String
4278 * @param {Array|String} list
4279 * @return {Array|String}
4280 * @example
4281 *
4282 * R.reverse([1, 2, 3]); //=> [3, 2, 1]
4283 * R.reverse([1, 2]); //=> [2, 1]
4284 * R.reverse([1]); //=> [1]
4285 * R.reverse([]); //=> []
4286 *
4287 * R.reverse('abc'); //=> 'cba'
4288 * R.reverse('ab'); //=> 'ba'
4289 * R.reverse('a'); //=> 'a'
4290 * R.reverse(''); //=> ''
4291 */
4292module.exports = _curry1(function reverse(list) {
4293 return _isString(list) ? list.split('').reverse().join('') :
4294 Array.prototype.slice.call(list, 0).reverse();
4295});
4296
4297
4298/***/ },
4299/* 100 */
4300/***/ function(module, exports, __webpack_require__) {
4301
4302var _checkForMethod = __webpack_require__(31);
4303var _curry3 = __webpack_require__(2);
4304
4305
4306/**
4307 * Returns the elements of the given list or string (or object with a `slice`
4308 * method) from `fromIndex` (inclusive) to `toIndex` (exclusive).
4309 *
4310 * Dispatches to the `slice` method of the third argument, if present.
4311 *
4312 * @func
4313 * @memberOf R
4314 * @since v0.1.4
4315 * @category List
4316 * @sig Number -> Number -> [a] -> [a]
4317 * @sig Number -> Number -> String -> String
4318 * @param {Number} fromIndex The start index (inclusive).
4319 * @param {Number} toIndex The end index (exclusive).
4320 * @param {*} list
4321 * @return {*}
4322 * @example
4323 *
4324 * R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
4325 * R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']
4326 * R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']
4327 * R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
4328 * R.slice(0, 3, 'ramda'); //=> 'ram'
4329 */
4330module.exports = _curry3(_checkForMethod('slice', function slice(fromIndex, toIndex, list) {
4331 return Array.prototype.slice.call(list, fromIndex, toIndex);
4332}));
4333
4334
4335/***/ },
4336/* 101 */
4337/***/ function(module, exports, __webpack_require__) {
4338
4339var invoker = __webpack_require__(89);
4340
4341
4342/**
4343 * Splits a string into an array of strings based on the given
4344 * separator.
4345 *
4346 * @func
4347 * @memberOf R
4348 * @since v0.1.0
4349 * @category String
4350 * @sig (String | RegExp) -> String -> [String]
4351 * @param {String|RegExp} sep The pattern.
4352 * @param {String} str The string to separate into an array.
4353 * @return {Array} The array of strings from `str` separated by `str`.
4354 * @see R.join
4355 * @example
4356 *
4357 * var pathComponents = R.split('/');
4358 * R.tail(pathComponents('/usr/local/bin/node')); //=> ['usr', 'local', 'bin', 'node']
4359 *
4360 * R.split('.', 'a.b.c.xyz.d'); //=> ['a', 'b', 'c', 'xyz', 'd']
4361 */
4362module.exports = invoker(1, 'split');
4363
4364
4365/***/ },
4366/* 102 */
4367/***/ function(module, exports, __webpack_require__) {
4368
4369var _curry1 = __webpack_require__(1);
4370
4371
4372/**
4373 * Gives a single-word string description of the (native) type of a value,
4374 * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
4375 * attempt to distinguish user Object types any further, reporting them all as
4376 * 'Object'.
4377 *
4378 * @func
4379 * @memberOf R
4380 * @since v0.8.0
4381 * @category Type
4382 * @sig (* -> {*}) -> String
4383 * @param {*} val The value to test
4384 * @return {String}
4385 * @example
4386 *
4387 * R.type({}); //=> "Object"
4388 * R.type(1); //=> "Number"
4389 * R.type(false); //=> "Boolean"
4390 * R.type('s'); //=> "String"
4391 * R.type(null); //=> "Null"
4392 * R.type([]); //=> "Array"
4393 * R.type(/[A-z]/); //=> "RegExp"
4394 */
4395module.exports = _curry1(function type(val) {
4396 return val === null ? 'Null' :
4397 val === undefined ? 'Undefined' :
4398 Object.prototype.toString.call(val).slice(8, -1);
4399});
4400
4401
4402/***/ },
4403/* 103 */
4404/***/ function(module, exports, __webpack_require__) {
4405
4406var _curry1 = __webpack_require__(1);
4407var keys = __webpack_require__(4);
4408
4409
4410/**
4411 * Returns a list of all the enumerable own properties of the supplied object.
4412 * Note that the order of the output array is not guaranteed across different
4413 * JS platforms.
4414 *
4415 * @func
4416 * @memberOf R
4417 * @since v0.1.0
4418 * @category Object
4419 * @sig {k: v} -> [v]
4420 * @param {Object} obj The object to extract values from
4421 * @return {Array} An array of the values of the object's own properties.
4422 * @example
4423 *
4424 * R.values({a: 1, b: 2, c: 3}); //=> [1, 2, 3]
4425 */
4426module.exports = _curry1(function values(obj) {
4427 var props = keys(obj);
4428 var len = props.length;
4429 var vals = [];
4430 var idx = 0;
4431 while (idx < len) {
4432 vals[idx] = obj[props[idx]];
4433 idx += 1;
4434 }
4435 return vals;
4436});
4437
4438
4439/***/ },
4440/* 104 */
4441/***/ function(module, exports, __webpack_require__) {
4442
4443"use strict";
4444'use strict';
4445
4446Object.defineProperty(exports, "__esModule", {
4447 value: true
4448});
4449exports.reducer = exports.FieldArray = exports.Field = exports.Form = undefined;
4450
4451var _Form = __webpack_require__(47);
4452
4453var _Form2 = _interopRequireDefault(_Form);
4454
4455var _Field = __webpack_require__(45);
4456
4457var _Field2 = _interopRequireDefault(_Field);
4458
4459var _FieldArray = __webpack_require__(46);
4460
4461var _FieldArray2 = _interopRequireDefault(_FieldArray);
4462
4463var _formsReducer = __webpack_require__(48);
4464
4465var _formsReducer2 = _interopRequireDefault(_formsReducer);
4466
4467function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4468
4469exports.Form = _Form2.default;
4470exports.Field = _Field2.default;
4471exports.FieldArray = _FieldArray2.default;
4472exports.reducer = _formsReducer2.default;
4473
4474/***/ }
4475/******/ ]);
4476});
\No newline at end of file