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__) {
|
11 | return (function(modules) {
|
12 |
|
13 | var installedModules = {};
|
14 |
|
15 |
|
16 | function __webpack_require__(moduleId) {
|
17 |
|
18 |
|
19 | if(installedModules[moduleId])
|
20 | return installedModules[moduleId].exports;
|
21 |
|
22 |
|
23 | var module = installedModules[moduleId] = {
|
24 | i: moduleId,
|
25 | l: false,
|
26 | exports: {}
|
27 | };
|
28 |
|
29 |
|
30 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31 |
|
32 |
|
33 | module.l = true;
|
34 |
|
35 |
|
36 | return module.exports;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 | __webpack_require__.m = modules;
|
42 |
|
43 |
|
44 | __webpack_require__.c = installedModules;
|
45 |
|
46 |
|
47 | __webpack_require__.i = function(value) { return value; };
|
48 |
|
49 |
|
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 |
|
70 | __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
71 |
|
72 |
|
73 | __webpack_require__.p = "";
|
74 |
|
75 |
|
76 | return __webpack_require__(__webpack_require__.s = 104);
|
77 | })
|
78 |
|
79 | ([
|
80 |
|
81 | function(module, exports, __webpack_require__) {
|
82 |
|
83 | var _curry1 = __webpack_require__(1);
|
84 | var _isPlaceholder = __webpack_require__(13);
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 | module.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 |
|
115 | function(module, exports, __webpack_require__) {
|
116 |
|
117 | var _isPlaceholder = __webpack_require__(13);
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 | module.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 |
|
141 | function(module, exports, __webpack_require__) {
|
142 |
|
143 | var _curry1 = __webpack_require__(1);
|
144 | var _curry2 = __webpack_require__(0);
|
145 | var _isPlaceholder = __webpack_require__(13);
|
146 |
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 | module.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 |
|
185 | function(module, exports) {
|
186 |
|
187 | module.exports = function _has(prop, obj) {
|
188 | return Object.prototype.hasOwnProperty.call(obj, prop);
|
189 | };
|
190 |
|
191 |
|
192 | },
|
193 |
|
194 | function(module, exports, __webpack_require__) {
|
195 |
|
196 | var _curry1 = __webpack_require__(1);
|
197 | var _has = __webpack_require__(3);
|
198 | var _isArguments = __webpack_require__(74);
|
199 |
|
200 |
|
201 |
|
202 |
|
203 |
|
204 |
|
205 |
|
206 |
|
207 |
|
208 |
|
209 |
|
210 |
|
211 |
|
212 |
|
213 |
|
214 |
|
215 |
|
216 |
|
217 |
|
218 | module.exports = (function() {
|
219 |
|
220 | var hasEnumBug = !({toString: null}).propertyIsEnumerable('toString');
|
221 | var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString',
|
222 | 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
|
223 |
|
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 |
|
273 | function(module, exports, __webpack_require__) {
|
274 |
|
275 | var _assign = __webpack_require__(30);
|
276 | var _curry2 = __webpack_require__(0);
|
277 |
|
278 |
|
279 |
|
280 |
|
281 |
|
282 |
|
283 |
|
284 |
|
285 |
|
286 |
|
287 |
|
288 |
|
289 |
|
290 |
|
291 |
|
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 |
|
298 |
|
299 |
|
300 |
|
301 |
|
302 | module.exports = _curry2(function merge(l, r) {
|
303 | return _assign({}, l, r);
|
304 | });
|
305 |
|
306 |
|
307 | },
|
308 |
|
309 | function(module, exports) {
|
310 |
|
311 | "use strict";
|
312 | 'use strict';
|
313 |
|
314 | Object.defineProperty(exports, "__esModule", {
|
315 | value: true
|
316 | });
|
317 |
|
318 | var _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 |
|
320 | exports.isString = isString;
|
321 | exports.isNumber = isNumber;
|
322 | exports.isPromise = isPromise;
|
323 | exports.isFunction = isFunction;
|
324 | exports.isEvent = isEvent;
|
325 | exports.unflatten = unflatten;
|
326 | exports.invariant = invariant;
|
327 | function isString(cand) {
|
328 | return typeof cand === 'string';
|
329 | }
|
330 | function isNumber(cand) {
|
331 | return typeof cand === 'number';
|
332 | }
|
333 | function isPromise(cand) {
|
334 | return Boolean(cand) && (typeof cand === 'undefined' ? 'undefined' : _typeof(cand)) === 'object' && typeof cand.then === 'function';
|
335 | }
|
336 | function isFunction(cand) {
|
337 | return typeof cand === 'function';
|
338 | }
|
339 | function isEvent(cand) {
|
340 | return Boolean(cand && (typeof cand === 'undefined' ? 'undefined' : _typeof(cand)) === 'object' && isFunction(cand.preventDefault) && isFunction(cand.stopPropagation));
|
341 | }
|
342 |
|
343 |
|
344 | function 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 | }
|
363 | function 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 |
|
374 | function(module, exports, __webpack_require__) {
|
375 |
|
376 | var pipe = __webpack_require__(96);
|
377 | var reverse = __webpack_require__(99);
|
378 |
|
379 |
|
380 |
|
381 |
|
382 |
|
383 |
|
384 |
|
385 |
|
386 |
|
387 |
|
388 |
|
389 |
|
390 |
|
391 |
|
392 |
|
393 |
|
394 |
|
395 |
|
396 |
|
397 |
|
398 |
|
399 |
|
400 |
|
401 |
|
402 |
|
403 |
|
404 | module.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 |
|
414 | function(module, exports) {
|
415 |
|
416 | module.exports = function _arity(n, fn) {
|
417 |
|
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 |
|
437 | function(module, exports) {
|
438 |
|
439 | "use strict";
|
440 | 'use strict';
|
441 |
|
442 | Object.defineProperty(exports, "__esModule", {
|
443 | value: true
|
444 | });
|
445 | var ADD_FORM = exports.ADD_FORM = '@redux-form-lite/ADD_FORM';
|
446 | var REMOVE_FORM = exports.REMOVE_FORM = '@redux-form-lite/REMOVE_FORM';
|
447 | var ADD_FIELD = exports.ADD_FIELD = '@redux-form-lite/ADD_FIELD';
|
448 | var REMOVE_FIELD = exports.REMOVE_FIELD = '@redux-form-lite/REMOVE_FIELD';
|
449 | var TOUCH_ALL = exports.TOUCH_ALL = '@redux-form-lite/TOUCH_ALL';
|
450 | var SUBMIT_START = exports.SUBMIT_START = '@redux-form-lite/SUBMIT_START';
|
451 | var SUBMIT_STOP = exports.SUBMIT_STOP = '@redux-form-lite/SUBMIT_STOP';
|
452 | var ADD_ARRAY = exports.ADD_ARRAY = '@redux-form-lite/ADD_ARRAY';
|
453 | var REMOVE_ARRAY = exports.REMOVE_ARRAY = '@redux-form-lite/REMOVE_ARRAY';
|
454 | var ARRAY_PUSH = exports.ARRAY_PUSH = '@redux-form-lite/ARRAY_PUSH';
|
455 | var ARRAY_POP = exports.ARRAY_POP = '@redux-form-lite/ARRAY_POP';
|
456 | var ARRAY_UNSHIFT = exports.ARRAY_UNSHIFT = '@redux-form-lite/ARRAY_UNSHIFT';
|
457 | var ARRAY_SHIFT = exports.ARRAY_SHIFT = '@redux-form-lite/ARRAY_SHIFT';
|
458 | var FIELD_CHANGE = exports.FIELD_CHANGE = '@redux-form-lite/FIELD_CHANGE';
|
459 | var FIELD_FOCUS = exports.FIELD_FOCUS = '@redux-form-lite/FIELD_FOCUS';
|
460 | var FIELD_BLUR = exports.FIELD_BLUR = '@redux-form-lite/FIELD_BLUR';
|
461 | var FIELD_VALUE = exports.FIELD_VALUE = '@redux-form-lite/FIELD_VALUE';
|
462 | var FIELD_ERROR = exports.FIELD_ERROR = '@redux-form-lite/FIELD_ERROR';
|
463 | var addForm = exports.addForm = function addForm(name) {
|
464 | return {
|
465 | type: ADD_FORM,
|
466 | payload: { name: name }
|
467 | };
|
468 | };
|
469 | var removeForm = exports.removeForm = function removeForm(name) {
|
470 | return {
|
471 | type: REMOVE_FORM,
|
472 | payload: { name: name }
|
473 | };
|
474 | };
|
475 | var addField = exports.addField = function addField(form, id, field) {
|
476 | return {
|
477 | type: ADD_FIELD,
|
478 | payload: { form: form, id: id, field: field }
|
479 | };
|
480 | };
|
481 | var removeField = exports.removeField = function removeField(form, id) {
|
482 | return {
|
483 | type: REMOVE_FIELD,
|
484 | payload: { form: form, id: id }
|
485 | };
|
486 | };
|
487 | var touchAll = exports.touchAll = function touchAll(form) {
|
488 | return {
|
489 | type: TOUCH_ALL,
|
490 | payload: { form: form }
|
491 | };
|
492 | };
|
493 | var submitStart = exports.submitStart = function submitStart(form) {
|
494 | return {
|
495 | type: SUBMIT_START,
|
496 | payload: { form: form }
|
497 | };
|
498 | };
|
499 | var submitStop = exports.submitStop = function submitStop(form) {
|
500 | return {
|
501 | type: SUBMIT_STOP,
|
502 | payload: { form: form }
|
503 | };
|
504 | };
|
505 | var addArray = exports.addArray = function addArray(form, id) {
|
506 | return {
|
507 | type: ADD_ARRAY,
|
508 | payload: { form: form, id: id }
|
509 | };
|
510 | };
|
511 | var removeArray = exports.removeArray = function removeArray(form, id) {
|
512 | return {
|
513 | type: REMOVE_ARRAY,
|
514 | payload: { form: form, id: id }
|
515 | };
|
516 | };
|
517 | var arrayPush = exports.arrayPush = function arrayPush(form, id) {
|
518 | return {
|
519 | type: ARRAY_PUSH,
|
520 | payload: { form: form, id: id }
|
521 | };
|
522 | };
|
523 | var arrayPop = exports.arrayPop = function arrayPop(form, id) {
|
524 | return {
|
525 | type: ARRAY_POP,
|
526 | payload: { form: form, id: id }
|
527 | };
|
528 | };
|
529 | var arrayUnshift = exports.arrayUnshift = function arrayUnshift(form, id) {
|
530 | return {
|
531 | type: ARRAY_UNSHIFT,
|
532 | payload: { form: form, id: id }
|
533 | };
|
534 | };
|
535 | var arrayShift = exports.arrayShift = function arrayShift(form, id) {
|
536 | return {
|
537 | type: ARRAY_SHIFT,
|
538 | payload: { form: form, id: id }
|
539 | };
|
540 | };
|
541 | var 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 | };
|
547 | var fieldFocus = exports.fieldFocus = function fieldFocus(form, field) {
|
548 | return {
|
549 | type: FIELD_FOCUS,
|
550 | payload: { form: form, field: field }
|
551 | };
|
552 | };
|
553 | var 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 | };
|
559 | var fieldValue = exports.fieldValue = function fieldValue(form, field, value) {
|
560 | return {
|
561 | type: FIELD_VALUE,
|
562 | payload: { form: form, field: field, value: value }
|
563 | };
|
564 | };
|
565 | var 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 |
|
574 | function(module, exports, __webpack_require__) {
|
575 |
|
576 | var _curry3 = __webpack_require__(2);
|
577 |
|
578 |
|
579 |
|
580 |
|
581 |
|
582 |
|
583 |
|
584 |
|
585 |
|
586 |
|
587 |
|
588 |
|
589 |
|
590 |
|
591 |
|
592 |
|
593 |
|
594 |
|
595 |
|
596 |
|
597 |
|
598 |
|
599 | module.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 |
|
611 | function(module, exports, __webpack_require__) {
|
612 |
|
613 | var _isArray = __webpack_require__(12);
|
614 | var _isTransformer = __webpack_require__(78);
|
615 |
|
616 |
|
617 |
|
618 |
|
619 |
|
620 |
|
621 |
|
622 |
|
623 |
|
624 |
|
625 |
|
626 |
|
627 |
|
628 |
|
629 |
|
630 |
|
631 | module.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 |
|
658 | function(module, exports) {
|
659 |
|
660 |
|
661 |
|
662 |
|
663 |
|
664 |
|
665 |
|
666 |
|
667 |
|
668 |
|
669 |
|
670 |
|
671 |
|
672 | module.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 |
|
681 | function(module, exports) {
|
682 |
|
683 | module.exports = function _isPlaceholder(a) {
|
684 | return a != null &&
|
685 | typeof a === 'object' &&
|
686 | a['@@functional/placeholder'] === true;
|
687 | };
|
688 |
|
689 |
|
690 | },
|
691 |
|
692 | function(module, exports, __webpack_require__) {
|
693 |
|
694 | var _curry2 = __webpack_require__(0);
|
695 | var _dispatchable = __webpack_require__(11);
|
696 | var _map = __webpack_require__(35);
|
697 | var _reduce = __webpack_require__(20);
|
698 | var _xmap = __webpack_require__(87);
|
699 | var curryN = __webpack_require__(18);
|
700 | var keys = __webpack_require__(4);
|
701 |
|
702 |
|
703 |
|
704 |
|
705 |
|
706 |
|
707 |
|
708 |
|
709 |
|
710 |
|
711 |
|
712 |
|
713 |
|
714 |
|
715 |
|
716 |
|
717 |
|
718 |
|
719 |
|
720 |
|
721 |
|
722 |
|
723 |
|
724 |
|
725 |
|
726 |
|
727 |
|
728 |
|
729 |
|
730 |
|
731 |
|
732 |
|
733 |
|
734 |
|
735 |
|
736 |
|
737 |
|
738 | module.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 |
|
757 | function(module, exports, __webpack_require__) {
|
758 |
|
759 | var _curry2 = __webpack_require__(0);
|
760 |
|
761 |
|
762 |
|
763 |
|
764 |
|
765 |
|
766 |
|
767 |
|
768 |
|
769 |
|
770 |
|
771 |
|
772 |
|
773 |
|
774 |
|
775 |
|
776 |
|
777 |
|
778 |
|
779 |
|
780 | module.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 |
|
796 | function(module, exports, __webpack_require__) {
|
797 |
|
798 | var _curry2 = __webpack_require__(0);
|
799 |
|
800 |
|
801 |
|
802 |
|
803 |
|
804 |
|
805 |
|
806 |
|
807 |
|
808 |
|
809 |
|
810 |
|
811 |
|
812 |
|
813 |
|
814 |
|
815 |
|
816 |
|
817 |
|
818 |
|
819 | module.exports = _curry2(function prop(p, obj) { return obj[p]; });
|
820 |
|
821 |
|
822 | },
|
823 |
|
824 | function(module, exports) {
|
825 |
|
826 | module.exports = __WEBPACK_EXTERNAL_MODULE_17__;
|
827 |
|
828 | },
|
829 |
|
830 | function(module, exports, __webpack_require__) {
|
831 |
|
832 | var _arity = __webpack_require__(8);
|
833 | var _curry1 = __webpack_require__(1);
|
834 | var _curry2 = __webpack_require__(0);
|
835 | var _curryN = __webpack_require__(68);
|
836 |
|
837 |
|
838 |
|
839 |
|
840 |
|
841 |
|
842 |
|
843 |
|
844 |
|
845 |
|
846 |
|
847 |
|
848 |
|
849 |
|
850 |
|
851 |
|
852 |
|
853 |
|
854 |
|
855 |
|
856 |
|
857 |
|
858 |
|
859 |
|
860 |
|
861 |
|
862 |
|
863 |
|
864 |
|
865 |
|
866 |
|
867 |
|
868 |
|
869 |
|
870 |
|
871 |
|
872 |
|
873 |
|
874 |
|
875 |
|
876 |
|
877 |
|
878 |
|
879 |
|
880 | module.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 |
|
890 | function(module, exports) {
|
891 |
|
892 | module.exports = function _isString(x) {
|
893 | return Object.prototype.toString.call(x) === '[object String]';
|
894 | };
|
895 |
|
896 |
|
897 | },
|
898 |
|
899 | function(module, exports, __webpack_require__) {
|
900 |
|
901 | var _xwrap = __webpack_require__(88);
|
902 | var bind = __webpack_require__(57);
|
903 | var isArrayLike = __webpack_require__(37);
|
904 |
|
905 |
|
906 | module.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 |
|
962 | function(module, exports) {
|
963 |
|
964 | module.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 |
|
976 | function(module, exports, __webpack_require__) {
|
977 |
|
978 | var _contains = __webpack_require__(34);
|
979 | var _curry2 = __webpack_require__(0);
|
980 |
|
981 |
|
982 |
|
983 |
|
984 |
|
985 |
|
986 |
|
987 |
|
988 |
|
989 |
|
990 |
|
991 |
|
992 |
|
993 |
|
994 |
|
995 |
|
996 |
|
997 |
|
998 | module.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 |
|
1011 | function(module, exports) {
|
1012 |
|
1013 | module.exports = __WEBPACK_EXTERNAL_MODULE_23__;
|
1014 |
|
1015 | },
|
1016 |
|
1017 | function(module, exports, __webpack_require__) {
|
1018 |
|
1019 | "use strict";
|
1020 | 'use strict';
|
1021 |
|
1022 | Object.defineProperty(exports, "__esModule", {
|
1023 | value: true
|
1024 | });
|
1025 |
|
1026 | var _merge = __webpack_require__(5);
|
1027 |
|
1028 | var _merge2 = _interopRequireDefault(_merge);
|
1029 |
|
1030 | exports.default = connectField;
|
1031 |
|
1032 | var _react = __webpack_require__(17);
|
1033 |
|
1034 | var React = _interopRequireWildcard(_react);
|
1035 |
|
1036 | var _helpers = __webpack_require__(6);
|
1037 |
|
1038 | function _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 |
|
1040 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1041 |
|
1042 | function 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 |
|
1061 | function(module, exports) {
|
1062 |
|
1063 | "use strict";
|
1064 | 'use strict';
|
1065 |
|
1066 | Object.defineProperty(exports, "__esModule", {
|
1067 | value: true
|
1068 | });
|
1069 | var form = exports.form = {
|
1070 | fields: {},
|
1071 | arrays: {},
|
1072 | submitting: false
|
1073 | };
|
1074 | var field = exports.field = {
|
1075 | value: '',
|
1076 | error: null,
|
1077 | visited: false,
|
1078 | touched: false,
|
1079 | active: false,
|
1080 | dirty: false
|
1081 | };
|
1082 |
|
1083 | },
|
1084 |
|
1085 | function(module, exports, __webpack_require__) {
|
1086 |
|
1087 | var _curry2 = __webpack_require__(0);
|
1088 |
|
1089 |
|
1090 |
|
1091 |
|
1092 |
|
1093 |
|
1094 |
|
1095 |
|
1096 |
|
1097 |
|
1098 |
|
1099 |
|
1100 |
|
1101 |
|
1102 |
|
1103 |
|
1104 |
|
1105 |
|
1106 |
|
1107 | module.exports = _curry2(function add(a, b) {
|
1108 | return Number(a) + Number(b);
|
1109 | });
|
1110 |
|
1111 |
|
1112 | },
|
1113 |
|
1114 | function(module, exports, __webpack_require__) {
|
1115 |
|
1116 | var _curry2 = __webpack_require__(0);
|
1117 | var _dispatchable = __webpack_require__(11);
|
1118 | var _xany = __webpack_require__(36);
|
1119 |
|
1120 |
|
1121 |
|
1122 |
|
1123 |
|
1124 |
|
1125 |
|
1126 |
|
1127 |
|
1128 |
|
1129 |
|
1130 |
|
1131 |
|
1132 |
|
1133 |
|
1134 |
|
1135 |
|
1136 |
|
1137 |
|
1138 |
|
1139 |
|
1140 |
|
1141 |
|
1142 |
|
1143 |
|
1144 |
|
1145 |
|
1146 | module.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 |
|
1160 | function(module, exports, __webpack_require__) {
|
1161 |
|
1162 | var _curry3 = __webpack_require__(2);
|
1163 | var _has = __webpack_require__(3);
|
1164 | var _isArray = __webpack_require__(12);
|
1165 | var _isInteger = __webpack_require__(76);
|
1166 | var assoc = __webpack_require__(10);
|
1167 |
|
1168 |
|
1169 |
|
1170 |
|
1171 |
|
1172 |
|
1173 |
|
1174 |
|
1175 |
|
1176 |
|
1177 |
|
1178 |
|
1179 |
|
1180 |
|
1181 |
|
1182 |
|
1183 |
|
1184 |
|
1185 |
|
1186 |
|
1187 |
|
1188 |
|
1189 |
|
1190 |
|
1191 |
|
1192 |
|
1193 | module.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 |
|
1214 | function(module, exports, __webpack_require__) {
|
1215 |
|
1216 | var _curry1 = __webpack_require__(1);
|
1217 | var _identity = __webpack_require__(72);
|
1218 |
|
1219 |
|
1220 |
|
1221 |
|
1222 |
|
1223 |
|
1224 |
|
1225 |
|
1226 |
|
1227 |
|
1228 |
|
1229 |
|
1230 |
|
1231 |
|
1232 |
|
1233 |
|
1234 |
|
1235 |
|
1236 |
|
1237 |
|
1238 |
|
1239 | module.exports = _curry1(_identity);
|
1240 |
|
1241 |
|
1242 | },
|
1243 |
|
1244 | function(module, exports, __webpack_require__) {
|
1245 |
|
1246 | var _objectAssign = __webpack_require__(80);
|
1247 |
|
1248 | module.exports =
|
1249 | typeof Object.assign === 'function' ? Object.assign : _objectAssign;
|
1250 |
|
1251 |
|
1252 | },
|
1253 |
|
1254 | function(module, exports, __webpack_require__) {
|
1255 |
|
1256 | var _isArray = __webpack_require__(12);
|
1257 |
|
1258 |
|
1259 |
|
1260 |
|
1261 |
|
1262 |
|
1263 |
|
1264 |
|
1265 |
|
1266 |
|
1267 |
|
1268 |
|
1269 | module.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 |
|
1285 | function(module, exports) {
|
1286 |
|
1287 | module.exports = function _complement(f) {
|
1288 | return function() {
|
1289 | return !f.apply(this, arguments);
|
1290 | };
|
1291 | };
|
1292 |
|
1293 |
|
1294 | },
|
1295 |
|
1296 | function(module, exports) {
|
1297 |
|
1298 |
|
1299 |
|
1300 |
|
1301 |
|
1302 |
|
1303 |
|
1304 |
|
1305 |
|
1306 |
|
1307 |
|
1308 |
|
1309 | module.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 |
|
1333 | function(module, exports, __webpack_require__) {
|
1334 |
|
1335 | var _indexOf = __webpack_require__(73);
|
1336 |
|
1337 |
|
1338 | module.exports = function _contains(a, list) {
|
1339 | return _indexOf(list, a, 0) >= 0;
|
1340 | };
|
1341 |
|
1342 |
|
1343 | },
|
1344 |
|
1345 | function(module, exports) {
|
1346 |
|
1347 | module.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 |
|
1361 | function(module, exports, __webpack_require__) {
|
1362 |
|
1363 | var _curry2 = __webpack_require__(0);
|
1364 | var _reduced = __webpack_require__(83);
|
1365 | var _xfBase = __webpack_require__(21);
|
1366 |
|
1367 |
|
1368 | module.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 |
|
1395 | function(module, exports, __webpack_require__) {
|
1396 |
|
1397 | var _curry1 = __webpack_require__(1);
|
1398 | var _isArray = __webpack_require__(12);
|
1399 | var _isString = __webpack_require__(19);
|
1400 |
|
1401 |
|
1402 |
|
1403 |
|
1404 |
|
1405 |
|
1406 |
|
1407 |
|
1408 |
|
1409 |
|
1410 |
|
1411 |
|
1412 |
|
1413 |
|
1414 |
|
1415 |
|
1416 |
|
1417 |
|
1418 |
|
1419 |
|
1420 |
|
1421 |
|
1422 | module.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 |
|
1438 | function(module, exports, __webpack_require__) {
|
1439 |
|
1440 | var _curry2 = __webpack_require__(0);
|
1441 | var map = __webpack_require__(14);
|
1442 |
|
1443 |
|
1444 |
|
1445 |
|
1446 |
|
1447 |
|
1448 |
|
1449 |
|
1450 |
|
1451 |
|
1452 |
|
1453 |
|
1454 |
|
1455 |
|
1456 |
|
1457 |
|
1458 |
|
1459 |
|
1460 |
|
1461 |
|
1462 |
|
1463 |
|
1464 |
|
1465 |
|
1466 |
|
1467 | module.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 |
|
1483 | function(module, exports, __webpack_require__) {
|
1484 |
|
1485 | var _curry1 = __webpack_require__(1);
|
1486 | var assoc = __webpack_require__(10);
|
1487 | var lens = __webpack_require__(38);
|
1488 | var prop = __webpack_require__(16);
|
1489 |
|
1490 |
|
1491 |
|
1492 |
|
1493 |
|
1494 |
|
1495 |
|
1496 |
|
1497 |
|
1498 |
|
1499 |
|
1500 |
|
1501 |
|
1502 |
|
1503 |
|
1504 |
|
1505 |
|
1506 |
|
1507 |
|
1508 |
|
1509 |
|
1510 |
|
1511 | module.exports = _curry1(function lensProp(k) {
|
1512 | return lens(prop(k), assoc(k));
|
1513 | });
|
1514 |
|
1515 |
|
1516 | },
|
1517 |
|
1518 | function(module, exports, __webpack_require__) {
|
1519 |
|
1520 | var _curry3 = __webpack_require__(2);
|
1521 |
|
1522 |
|
1523 |
|
1524 |
|
1525 |
|
1526 |
|
1527 |
|
1528 |
|
1529 |
|
1530 |
|
1531 |
|
1532 |
|
1533 |
|
1534 |
|
1535 |
|
1536 |
|
1537 |
|
1538 |
|
1539 |
|
1540 |
|
1541 |
|
1542 |
|
1543 |
|
1544 |
|
1545 | module.exports = (function() {
|
1546 |
|
1547 |
|
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 |
|
1554 |
|
1555 |
|
1556 | return lens(function(y) { return Identity(f(y)); })(x).value;
|
1557 | });
|
1558 | }());
|
1559 |
|
1560 |
|
1561 | },
|
1562 |
|
1563 | function(module, exports, __webpack_require__) {
|
1564 |
|
1565 | var _curry3 = __webpack_require__(2);
|
1566 | var _reduce = __webpack_require__(20);
|
1567 |
|
1568 |
|
1569 |
|
1570 |
|
1571 |
|
1572 |
|
1573 |
|
1574 |
|
1575 |
|
1576 |
|
1577 |
|
1578 |
|
1579 |
|
1580 |
|
1581 |
|
1582 |
|
1583 |
|
1584 |
|
1585 |
|
1586 |
|
1587 |
|
1588 |
|
1589 |
|
1590 |
|
1591 |
|
1592 |
|
1593 |
|
1594 |
|
1595 |
|
1596 |
|
1597 |
|
1598 |
|
1599 |
|
1600 |
|
1601 |
|
1602 |
|
1603 |
|
1604 |
|
1605 |
|
1606 |
|
1607 |
|
1608 |
|
1609 |
|
1610 |
|
1611 |
|
1612 | module.exports = _curry3(_reduce);
|
1613 |
|
1614 |
|
1615 | },
|
1616 |
|
1617 | function(module, exports, __webpack_require__) {
|
1618 |
|
1619 | var _curry3 = __webpack_require__(2);
|
1620 | var always = __webpack_require__(56);
|
1621 | var over = __webpack_require__(40);
|
1622 |
|
1623 |
|
1624 |
|
1625 |
|
1626 |
|
1627 |
|
1628 |
|
1629 |
|
1630 |
|
1631 |
|
1632 |
|
1633 |
|
1634 |
|
1635 |
|
1636 |
|
1637 |
|
1638 |
|
1639 |
|
1640 |
|
1641 |
|
1642 |
|
1643 |
|
1644 |
|
1645 |
|
1646 | module.exports = _curry3(function set(lens, v, x) {
|
1647 | return over(lens, always(v), x);
|
1648 | });
|
1649 |
|
1650 |
|
1651 | },
|
1652 |
|
1653 | function(module, exports, __webpack_require__) {
|
1654 |
|
1655 | var _checkForMethod = __webpack_require__(31);
|
1656 | var _curry1 = __webpack_require__(1);
|
1657 | var slice = __webpack_require__(100);
|
1658 |
|
1659 |
|
1660 |
|
1661 |
|
1662 |
|
1663 |
|
1664 |
|
1665 |
|
1666 |
|
1667 |
|
1668 |
|
1669 |
|
1670 |
|
1671 |
|
1672 |
|
1673 |
|
1674 |
|
1675 |
|
1676 |
|
1677 |
|
1678 |
|
1679 |
|
1680 |
|
1681 |
|
1682 |
|
1683 |
|
1684 |
|
1685 |
|
1686 |
|
1687 | module.exports = _curry1(_checkForMethod('tail', slice(1, Infinity)));
|
1688 |
|
1689 |
|
1690 | },
|
1691 |
|
1692 | function(module, exports, __webpack_require__) {
|
1693 |
|
1694 | var _curry1 = __webpack_require__(1);
|
1695 | var _toString = __webpack_require__(85);
|
1696 |
|
1697 |
|
1698 |
|
1699 |
|
1700 |
|
1701 |
|
1702 |
|
1703 |
|
1704 |
|
1705 |
|
1706 |
|
1707 |
|
1708 |
|
1709 |
|
1710 |
|
1711 |
|
1712 |
|
1713 |
|
1714 |
|
1715 |
|
1716 |
|
1717 |
|
1718 |
|
1719 |
|
1720 |
|
1721 |
|
1722 |
|
1723 |
|
1724 |
|
1725 |
|
1726 |
|
1727 |
|
1728 |
|
1729 |
|
1730 |
|
1731 |
|
1732 |
|
1733 |
|
1734 | module.exports = _curry1(function toString(val) { return _toString(val, []); });
|
1735 |
|
1736 |
|
1737 | },
|
1738 |
|
1739 | function(module, exports, __webpack_require__) {
|
1740 |
|
1741 | "use strict";
|
1742 | 'use strict';
|
1743 |
|
1744 | Object.defineProperty(exports, "__esModule", {
|
1745 | value: true
|
1746 | });
|
1747 |
|
1748 | var _path = __webpack_require__(15);
|
1749 |
|
1750 | var _path2 = _interopRequireDefault(_path);
|
1751 |
|
1752 | var _identity = __webpack_require__(29);
|
1753 |
|
1754 | var _identity2 = _interopRequireDefault(_identity);
|
1755 |
|
1756 | var _merge = __webpack_require__(5);
|
1757 |
|
1758 | var _merge2 = _interopRequireDefault(_merge);
|
1759 |
|
1760 | var _mergeAll = __webpack_require__(92);
|
1761 |
|
1762 | var _mergeAll2 = _interopRequireDefault(_mergeAll);
|
1763 |
|
1764 | var _lensProp = __webpack_require__(39);
|
1765 |
|
1766 | var _lensProp2 = _interopRequireDefault(_lensProp);
|
1767 |
|
1768 | var _set = __webpack_require__(42);
|
1769 |
|
1770 | var _set2 = _interopRequireDefault(_set);
|
1771 |
|
1772 | var _compose = __webpack_require__(7);
|
1773 |
|
1774 | var _compose2 = _interopRequireDefault(_compose);
|
1775 |
|
1776 | var _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 |
|
1778 | var _react = __webpack_require__(17);
|
1779 |
|
1780 | var React = _interopRequireWildcard(_react);
|
1781 |
|
1782 | var _reactRedux = __webpack_require__(23);
|
1783 |
|
1784 | var _connectField = __webpack_require__(24);
|
1785 |
|
1786 | var _connectField2 = _interopRequireDefault(_connectField);
|
1787 |
|
1788 | var _fieldProps2 = __webpack_require__(52);
|
1789 |
|
1790 | var _fieldProps3 = _interopRequireDefault(_fieldProps2);
|
1791 |
|
1792 | var _getValue = __webpack_require__(54);
|
1793 |
|
1794 | var _getValue2 = _interopRequireDefault(_getValue);
|
1795 |
|
1796 | var _actions = __webpack_require__(9);
|
1797 |
|
1798 | var actions = _interopRequireWildcard(_actions);
|
1799 |
|
1800 | var _containers = __webpack_require__(25);
|
1801 |
|
1802 | function _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 |
|
1804 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1805 |
|
1806 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1807 |
|
1808 | function _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 |
|
1810 | function _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 |
|
1812 | var __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 |
|
1821 | var 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 |
|
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 |
|
1949 | return React.createElement(component, (0, _merge2.default)(custom, { input: input, meta: meta }));
|
1950 | }
|
1951 | }]);
|
1952 |
|
1953 | return Field;
|
1954 | }(React.PureComponent);
|
1955 |
|
1956 |
|
1957 |
|
1958 | Field.defaultProps = {
|
1959 | validate: function validate() {
|
1960 | return null;
|
1961 | },
|
1962 | normalize: _identity2.default,
|
1963 | defaultValue: '',
|
1964 |
|
1965 | _field: null,
|
1966 |
|
1967 | _addField: _identity2.default,
|
1968 | _removeField: _identity2.default,
|
1969 | _fieldChange: _identity2.default,
|
1970 | _fieldFocus: _identity2.default,
|
1971 | _fieldBlur: _identity2.default
|
1972 | };
|
1973 | Field.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 | };
|
1980 | Field.displayName = 'Field';
|
1981 | var bindActions = {
|
1982 | _addField: actions.addField,
|
1983 | _removeField: actions.removeField,
|
1984 | _fieldChange: actions.fieldChange,
|
1985 | _fieldFocus: actions.fieldFocus,
|
1986 | _fieldBlur: actions.fieldBlur
|
1987 | };
|
1988 | var 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);
|
1993 | var Contexted = (0, _connectField2.default)(Connected);
|
1994 | Contexted.displayName = Field.displayName;
|
1995 | exports.default = Contexted;
|
1996 |
|
1997 | },
|
1998 |
|
1999 | function(module, exports, __webpack_require__) {
|
2000 |
|
2001 | "use strict";
|
2002 | 'use strict';
|
2003 |
|
2004 | Object.defineProperty(exports, "__esModule", {
|
2005 | value: true
|
2006 | });
|
2007 |
|
2008 | var _path = __webpack_require__(15);
|
2009 |
|
2010 | var _path2 = _interopRequireDefault(_path);
|
2011 |
|
2012 | var _merge = __webpack_require__(5);
|
2013 |
|
2014 | var _merge2 = _interopRequireDefault(_merge);
|
2015 |
|
2016 | var _addIndex = __webpack_require__(55);
|
2017 |
|
2018 | var _addIndex2 = _interopRequireDefault(_addIndex);
|
2019 |
|
2020 | var _map = __webpack_require__(14);
|
2021 |
|
2022 | var _map2 = _interopRequireDefault(_map);
|
2023 |
|
2024 | var _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 |
|
2026 | var _react = __webpack_require__(17);
|
2027 |
|
2028 | var React = _interopRequireWildcard(_react);
|
2029 |
|
2030 | var _reactRedux = __webpack_require__(23);
|
2031 |
|
2032 | var _actions = __webpack_require__(9);
|
2033 |
|
2034 | var actions = _interopRequireWildcard(_actions);
|
2035 |
|
2036 | var _connectField = __webpack_require__(24);
|
2037 |
|
2038 | var _connectField2 = _interopRequireDefault(_connectField);
|
2039 |
|
2040 | var _fieldArrayProps = __webpack_require__(51);
|
2041 |
|
2042 | var _fieldArrayProps2 = _interopRequireDefault(_fieldArrayProps);
|
2043 |
|
2044 | var _helpers = __webpack_require__(6);
|
2045 |
|
2046 | function _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 |
|
2048 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2049 |
|
2050 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2051 |
|
2052 | function _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 |
|
2054 | function _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 |
|
2056 | var __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 |
|
2065 | var 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 |
|
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 |
|
2200 | FieldArray.propTypes = {
|
2201 | name: React.PropTypes.string.isRequired,
|
2202 | component: React.PropTypes.func.isRequired
|
2203 | };
|
2204 | FieldArray.displayName = 'FieldArray';
|
2205 | var 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 | };
|
2213 | var 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);
|
2218 | var Contexted = (0, _connectField2.default)(Connected);
|
2219 | Contexted.displayName = FieldArray.displayName;
|
2220 | exports.default = Contexted;
|
2221 |
|
2222 | },
|
2223 |
|
2224 | function(module, exports, __webpack_require__) {
|
2225 |
|
2226 | "use strict";
|
2227 | 'use strict';
|
2228 |
|
2229 | Object.defineProperty(exports, "__esModule", {
|
2230 | value: true
|
2231 | });
|
2232 |
|
2233 | var _prop = __webpack_require__(16);
|
2234 |
|
2235 | var _prop2 = _interopRequireDefault(_prop);
|
2236 |
|
2237 | var _merge = __webpack_require__(5);
|
2238 |
|
2239 | var _merge2 = _interopRequireDefault(_merge);
|
2240 |
|
2241 | var _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 |
|
2243 | var _react = __webpack_require__(17);
|
2244 |
|
2245 | var React = _interopRequireWildcard(_react);
|
2246 |
|
2247 | var _reactRedux = __webpack_require__(23);
|
2248 |
|
2249 | var _helpers = __webpack_require__(6);
|
2250 |
|
2251 | var _formProps = __webpack_require__(53);
|
2252 |
|
2253 | var _formProps2 = _interopRequireDefault(_formProps);
|
2254 |
|
2255 | var _actions = __webpack_require__(9);
|
2256 |
|
2257 | var actions = _interopRequireWildcard(_actions);
|
2258 |
|
2259 | var _selectors = __webpack_require__(49);
|
2260 |
|
2261 | var selectors = _interopRequireWildcard(_selectors);
|
2262 |
|
2263 | function _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 |
|
2265 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2266 |
|
2267 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2268 |
|
2269 | function _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 |
|
2271 | function _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 |
|
2273 | var 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 |
|
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 |
|
2370 | Form.childContextTypes = {
|
2371 | reduxFormLite: React.PropTypes.string.isRequired
|
2372 | };
|
2373 | Form.propTypes = {
|
2374 | name: React.PropTypes.string.isRequired,
|
2375 | persistent: React.PropTypes.bool
|
2376 | };
|
2377 | var bindActions = {
|
2378 | _addForm: actions.addForm,
|
2379 | _removeForm: actions.removeForm,
|
2380 | _touchAll: actions.touchAll,
|
2381 | _submitStart: actions.submitStart,
|
2382 | _submitStop: actions.submitStop
|
2383 | };
|
2384 | exports.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 |
|
2395 | function(module, exports, __webpack_require__) {
|
2396 |
|
2397 | "use strict";
|
2398 | 'use strict';
|
2399 |
|
2400 | Object.defineProperty(exports, "__esModule", {
|
2401 | value: true
|
2402 | });
|
2403 |
|
2404 | var _compose = __webpack_require__(7);
|
2405 |
|
2406 | var _compose2 = _interopRequireDefault(_compose);
|
2407 |
|
2408 | var _dec = __webpack_require__(58);
|
2409 |
|
2410 | var _dec2 = _interopRequireDefault(_dec);
|
2411 |
|
2412 | var _inc = __webpack_require__(66);
|
2413 |
|
2414 | var _inc2 = _interopRequireDefault(_inc);
|
2415 |
|
2416 | var _lensProp = __webpack_require__(39);
|
2417 |
|
2418 | var _lensProp2 = _interopRequireDefault(_lensProp);
|
2419 |
|
2420 | var _set = __webpack_require__(42);
|
2421 |
|
2422 | var _set2 = _interopRequireDefault(_set);
|
2423 |
|
2424 | var _map = __webpack_require__(14);
|
2425 |
|
2426 | var _map2 = _interopRequireDefault(_map);
|
2427 |
|
2428 | var _lensPath = __webpack_require__(90);
|
2429 |
|
2430 | var _lensPath2 = _interopRequireDefault(_lensPath);
|
2431 |
|
2432 | var _over = __webpack_require__(40);
|
2433 |
|
2434 | var _over2 = _interopRequireDefault(_over);
|
2435 |
|
2436 | var _dissocPath = __webpack_require__(60);
|
2437 |
|
2438 | var _dissocPath2 = _interopRequireDefault(_dissocPath);
|
2439 |
|
2440 | var _assocPath = __webpack_require__(28);
|
2441 |
|
2442 | var _assocPath2 = _interopRequireDefault(_assocPath);
|
2443 |
|
2444 | exports.default = formsReducer;
|
2445 |
|
2446 | var _containers = __webpack_require__(25);
|
2447 |
|
2448 | var _arrayShift = __webpack_require__(50);
|
2449 |
|
2450 | var _arrayShift2 = _interopRequireDefault(_arrayShift);
|
2451 |
|
2452 | var _actions = __webpack_require__(9);
|
2453 |
|
2454 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2455 |
|
2456 | function formsReducer() {
|
2457 | var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
2458 | var a = arguments[1];
|
2459 |
|
2460 | switch (a.type) {
|
2461 |
|
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 |
|
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 |
|
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 |
|
2510 | function(module, exports, __webpack_require__) {
|
2511 |
|
2512 | "use strict";
|
2513 | 'use strict';
|
2514 |
|
2515 | Object.defineProperty(exports, "__esModule", {
|
2516 | value: true
|
2517 | });
|
2518 |
|
2519 | var _identity = __webpack_require__(29);
|
2520 |
|
2521 | var _identity2 = _interopRequireDefault(_identity);
|
2522 |
|
2523 | var _any = __webpack_require__(27);
|
2524 |
|
2525 | var _any2 = _interopRequireDefault(_any);
|
2526 |
|
2527 | var _none = __webpack_require__(93);
|
2528 |
|
2529 | var _none2 = _interopRequireDefault(_none);
|
2530 |
|
2531 | var _values = __webpack_require__(103);
|
2532 |
|
2533 | var _values2 = _interopRequireDefault(_values);
|
2534 |
|
2535 | var _path = __webpack_require__(15);
|
2536 |
|
2537 | var _path2 = _interopRequireDefault(_path);
|
2538 |
|
2539 | var _prop = __webpack_require__(16);
|
2540 |
|
2541 | var _prop2 = _interopRequireDefault(_prop);
|
2542 |
|
2543 | var _map = __webpack_require__(14);
|
2544 |
|
2545 | var _map2 = _interopRequireDefault(_map);
|
2546 |
|
2547 | var _compose = __webpack_require__(7);
|
2548 |
|
2549 | var _compose2 = _interopRequireDefault(_compose);
|
2550 |
|
2551 | var _memoize = __webpack_require__(91);
|
2552 |
|
2553 | var _memoize2 = _interopRequireDefault(_memoize);
|
2554 |
|
2555 | exports.valueSelector = valueSelector;
|
2556 | exports.errorSelector = errorSelector;
|
2557 | exports.isValid = isValid;
|
2558 | exports.isTouched = isTouched;
|
2559 | exports.isDirty = isDirty;
|
2560 | exports.isSubmitting = isSubmitting;
|
2561 |
|
2562 | var _helpers = __webpack_require__(6);
|
2563 |
|
2564 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2565 |
|
2566 | var memUnflatten = (0, _memoize2.default)(_helpers.unflatten);
|
2567 | var memValue = (0, _memoize2.default)((0, _compose2.default)(memUnflatten, (0, _map2.default)((0, _prop2.default)('value'))));
|
2568 | function valueSelector(name, state) {
|
2569 | var form = (0, _path2.default)(['reduxFormLite', name], state);
|
2570 | if (!form) {
|
2571 | return {};
|
2572 | }
|
2573 | return memValue(form.fields);
|
2574 | }
|
2575 | var memError = (0, _memoize2.default)((0, _compose2.default)(memUnflatten, (0, _map2.default)((0, _prop2.default)('error'))));
|
2576 | function errorSelector(name, state) {
|
2577 | var form = (0, _path2.default)(['reduxFormLite', name], state);
|
2578 | if (!form) {
|
2579 | return {};
|
2580 | }
|
2581 | return memError(form.fields);
|
2582 | }
|
2583 | var memValues = (0, _memoize2.default)(_values2.default);
|
2584 | var memValid = (0, _memoize2.default)((0, _compose2.default)((0, _none2.default)(Boolean), memValues, (0, _map2.default)((0, _prop2.default)('error'))));
|
2585 | function isValid(name, state) {
|
2586 | var form = (0, _path2.default)(['reduxFormLite', name], state);
|
2587 | if (!form) {
|
2588 | return false;
|
2589 | }
|
2590 |
|
2591 | return memValid(form.fields);
|
2592 | }
|
2593 | var memTouched = (0, _memoize2.default)((0, _compose2.default)((0, _any2.default)(_identity2.default), memValues, (0, _map2.default)((0, _prop2.default)('touched'))));
|
2594 | function isTouched(name, state) {
|
2595 | var form = (0, _path2.default)(['reduxFormLite', name], state);
|
2596 | if (!form) {
|
2597 | return false;
|
2598 | }
|
2599 |
|
2600 | return memTouched(form.fields);
|
2601 | }
|
2602 | var memDirty = (0, _memoize2.default)((0, _compose2.default)((0, _any2.default)(_identity2.default), memValues, (0, _map2.default)((0, _prop2.default)('dirty'))));
|
2603 | function isDirty(name, state) {
|
2604 | var form = (0, _path2.default)(['reduxFormLite', name], state);
|
2605 | if (!form) {
|
2606 | return false;
|
2607 | }
|
2608 |
|
2609 | return memDirty(form.fields);
|
2610 | }
|
2611 | function 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 |
|
2621 | function(module, exports, __webpack_require__) {
|
2622 |
|
2623 | "use strict";
|
2624 | 'use strict';
|
2625 |
|
2626 | Object.defineProperty(exports, "__esModule", {
|
2627 | value: true
|
2628 | });
|
2629 |
|
2630 | var _keys = __webpack_require__(4);
|
2631 |
|
2632 | var _keys2 = _interopRequireDefault(_keys);
|
2633 |
|
2634 | var _prepend = __webpack_require__(97);
|
2635 |
|
2636 | var _prepend2 = _interopRequireDefault(_prepend);
|
2637 |
|
2638 | var _head = __webpack_require__(64);
|
2639 |
|
2640 | var _head2 = _interopRequireDefault(_head);
|
2641 |
|
2642 | var _split = __webpack_require__(101);
|
2643 |
|
2644 | var _split2 = _interopRequireDefault(_split);
|
2645 |
|
2646 | var _tail = __webpack_require__(43);
|
2647 |
|
2648 | var _tail2 = _interopRequireDefault(_tail);
|
2649 |
|
2650 | var _compose = __webpack_require__(7);
|
2651 |
|
2652 | var _compose2 = _interopRequireDefault(_compose);
|
2653 |
|
2654 | var _prop = __webpack_require__(16);
|
2655 |
|
2656 | var _prop2 = _interopRequireDefault(_prop);
|
2657 |
|
2658 | var _assoc = __webpack_require__(10);
|
2659 |
|
2660 | var _assoc2 = _interopRequireDefault(_assoc);
|
2661 |
|
2662 | var _reduce = __webpack_require__(41);
|
2663 |
|
2664 | var _reduce2 = _interopRequireDefault(_reduce);
|
2665 |
|
2666 | exports.default = arrayShift;
|
2667 |
|
2668 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2669 |
|
2670 | function 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 |
|
2697 | function(module, exports, __webpack_require__) {
|
2698 |
|
2699 | "use strict";
|
2700 | 'use strict';
|
2701 |
|
2702 | Object.defineProperty(exports, "__esModule", {
|
2703 | value: true
|
2704 | });
|
2705 |
|
2706 | var _omit = __webpack_require__(22);
|
2707 |
|
2708 | var _omit2 = _interopRequireDefault(_omit);
|
2709 |
|
2710 | var _merge = __webpack_require__(5);
|
2711 |
|
2712 | var _merge2 = _interopRequireDefault(_merge);
|
2713 |
|
2714 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2715 |
|
2716 | var FIELD_ARRAY_PROPS = ['component', 'withRef',
|
2717 |
|
2718 | '_form', '_array',
|
2719 |
|
2720 | '_addArray', '_removeArray', '_arrayPush', '_arrayPop', '_arrayUnshift', '_arrayShift'];
|
2721 | var fieldArrayProps = function fieldArrayProps(props, fields) {
|
2722 | return (0, _merge2.default)((0, _omit2.default)(FIELD_ARRAY_PROPS, props), { fields: fields });
|
2723 | };
|
2724 | exports.default = fieldArrayProps;
|
2725 |
|
2726 | },
|
2727 |
|
2728 | function(module, exports, __webpack_require__) {
|
2729 |
|
2730 | "use strict";
|
2731 | 'use strict';
|
2732 |
|
2733 | Object.defineProperty(exports, "__esModule", {
|
2734 | value: true
|
2735 | });
|
2736 |
|
2737 | var _compose = __webpack_require__(7);
|
2738 |
|
2739 | var _compose2 = _interopRequireDefault(_compose);
|
2740 |
|
2741 | var _flatten = __webpack_require__(63);
|
2742 |
|
2743 | var _flatten2 = _interopRequireDefault(_flatten);
|
2744 |
|
2745 | var _omit = __webpack_require__(22);
|
2746 |
|
2747 | var _omit2 = _interopRequireDefault(_omit);
|
2748 |
|
2749 | var _pick = __webpack_require__(95);
|
2750 |
|
2751 | var _pick2 = _interopRequireDefault(_pick);
|
2752 |
|
2753 | var _merge = __webpack_require__(5);
|
2754 |
|
2755 | var _merge2 = _interopRequireDefault(_merge);
|
2756 |
|
2757 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2758 |
|
2759 | var INPUT_PROPS = ['checked', 'name', 'value', 'onChange', 'onFocus', 'onBlur'];
|
2760 | var META_PROPS = ['active', 'dirty', 'error', 'touched', 'visited'];
|
2761 | var FIELD_PROPS = ['component', 'defaultValue', 'normalize', 'validate', 'withRef',
|
2762 |
|
2763 | '_form', '_field',
|
2764 |
|
2765 | '_addField', '_removeField', '_fieldChange', '_fieldFocus', '_fieldBlur'];
|
2766 | var maybeCheckProps = function maybeCheckProps(all) {
|
2767 | if (typeof all.value === 'boolean') {
|
2768 | return (0, _merge2.default)(all, { checked: all.value });
|
2769 | }
|
2770 | return all;
|
2771 | };
|
2772 | var 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 | };
|
2779 | exports.default = (0, _compose2.default)(separateProps, maybeCheckProps);
|
2780 |
|
2781 | },
|
2782 |
|
2783 | function(module, exports, __webpack_require__) {
|
2784 |
|
2785 | "use strict";
|
2786 | 'use strict';
|
2787 |
|
2788 | Object.defineProperty(exports, "__esModule", {
|
2789 | value: true
|
2790 | });
|
2791 |
|
2792 | var _omit = __webpack_require__(22);
|
2793 |
|
2794 | var _omit2 = _interopRequireDefault(_omit);
|
2795 |
|
2796 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2797 |
|
2798 | var FORM_PROPS = ['name', 'persistent', 'withRef',
|
2799 |
|
2800 | '_form', '_values', '_valid', '_submitting',
|
2801 |
|
2802 | '_addForm', '_removeForm', '_touchAll', '_submitStart', '_submitStop'];
|
2803 | var formProps = function formProps(props) {
|
2804 | return (0, _omit2.default)(FORM_PROPS, props);
|
2805 | };
|
2806 | exports.default = formProps;
|
2807 |
|
2808 | },
|
2809 |
|
2810 | function(module, exports, __webpack_require__) {
|
2811 |
|
2812 | "use strict";
|
2813 | 'use strict';
|
2814 |
|
2815 | Object.defineProperty(exports, "__esModule", {
|
2816 | value: true
|
2817 | });
|
2818 |
|
2819 | var _helpers = __webpack_require__(6);
|
2820 |
|
2821 | var 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 | };
|
2828 | var 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 | };
|
2844 | exports.default = getValue;
|
2845 |
|
2846 | },
|
2847 |
|
2848 | function(module, exports, __webpack_require__) {
|
2849 |
|
2850 | var _concat = __webpack_require__(33);
|
2851 | var _curry1 = __webpack_require__(1);
|
2852 | var curryN = __webpack_require__(18);
|
2853 |
|
2854 |
|
2855 |
|
2856 |
|
2857 |
|
2858 |
|
2859 |
|
2860 |
|
2861 |
|
2862 |
|
2863 |
|
2864 |
|
2865 |
|
2866 |
|
2867 |
|
2868 |
|
2869 |
|
2870 |
|
2871 |
|
2872 |
|
2873 |
|
2874 |
|
2875 |
|
2876 |
|
2877 |
|
2878 |
|
2879 | module.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 |
|
2897 | function(module, exports, __webpack_require__) {
|
2898 |
|
2899 | var _curry1 = __webpack_require__(1);
|
2900 |
|
2901 |
|
2902 |
|
2903 |
|
2904 |
|
2905 |
|
2906 |
|
2907 |
|
2908 |
|
2909 |
|
2910 |
|
2911 |
|
2912 |
|
2913 |
|
2914 |
|
2915 |
|
2916 |
|
2917 |
|
2918 |
|
2919 |
|
2920 |
|
2921 | module.exports = _curry1(function always(val) {
|
2922 | return function() {
|
2923 | return val;
|
2924 | };
|
2925 | });
|
2926 |
|
2927 |
|
2928 | },
|
2929 |
|
2930 | function(module, exports, __webpack_require__) {
|
2931 |
|
2932 | var _arity = __webpack_require__(8);
|
2933 | var _curry2 = __webpack_require__(0);
|
2934 |
|
2935 |
|
2936 |
|
2937 |
|
2938 |
|
2939 |
|
2940 |
|
2941 |
|
2942 |
|
2943 |
|
2944 |
|
2945 |
|
2946 |
|
2947 |
|
2948 |
|
2949 |
|
2950 |
|
2951 |
|
2952 |
|
2953 |
|
2954 |
|
2955 |
|
2956 |
|
2957 |
|
2958 | module.exports = _curry2(function bind(fn, thisObj) {
|
2959 | return _arity(fn.length, function() {
|
2960 | return fn.apply(thisObj, arguments);
|
2961 | });
|
2962 | });
|
2963 |
|
2964 |
|
2965 | },
|
2966 |
|
2967 | function(module, exports, __webpack_require__) {
|
2968 |
|
2969 | var add = __webpack_require__(26);
|
2970 |
|
2971 |
|
2972 |
|
2973 |
|
2974 |
|
2975 |
|
2976 |
|
2977 |
|
2978 |
|
2979 |
|
2980 |
|
2981 |
|
2982 |
|
2983 |
|
2984 |
|
2985 |
|
2986 |
|
2987 | module.exports = add(-1);
|
2988 |
|
2989 |
|
2990 | },
|
2991 |
|
2992 | function(module, exports, __webpack_require__) {
|
2993 |
|
2994 | var _curry2 = __webpack_require__(0);
|
2995 |
|
2996 |
|
2997 |
|
2998 |
|
2999 |
|
3000 |
|
3001 |
|
3002 |
|
3003 |
|
3004 |
|
3005 |
|
3006 |
|
3007 |
|
3008 |
|
3009 |
|
3010 |
|
3011 |
|
3012 |
|
3013 | module.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 |
|
3025 | function(module, exports, __webpack_require__) {
|
3026 |
|
3027 | var _curry2 = __webpack_require__(0);
|
3028 | var assoc = __webpack_require__(10);
|
3029 | var dissoc = __webpack_require__(59);
|
3030 |
|
3031 |
|
3032 |
|
3033 |
|
3034 |
|
3035 |
|
3036 |
|
3037 |
|
3038 |
|
3039 |
|
3040 |
|
3041 |
|
3042 |
|
3043 |
|
3044 |
|
3045 |
|
3046 |
|
3047 |
|
3048 |
|
3049 |
|
3050 | module.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 |
|
3066 | function(module, exports, __webpack_require__) {
|
3067 |
|
3068 | var _curry2 = __webpack_require__(0);
|
3069 | var _equals = __webpack_require__(69);
|
3070 |
|
3071 |
|
3072 |
|
3073 |
|
3074 |
|
3075 |
|
3076 |
|
3077 |
|
3078 |
|
3079 |
|
3080 |
|
3081 |
|
3082 |
|
3083 |
|
3084 |
|
3085 |
|
3086 |
|
3087 |
|
3088 |
|
3089 |
|
3090 |
|
3091 |
|
3092 |
|
3093 |
|
3094 |
|
3095 |
|
3096 |
|
3097 | module.exports = _curry2(function equals(a, b) {
|
3098 | return _equals(a, b, [], []);
|
3099 | });
|
3100 |
|
3101 |
|
3102 | },
|
3103 |
|
3104 | function(module, exports, __webpack_require__) {
|
3105 |
|
3106 | var _curry2 = __webpack_require__(0);
|
3107 | var _dispatchable = __webpack_require__(11);
|
3108 | var _filter = __webpack_require__(70);
|
3109 | var _isObject = __webpack_require__(77);
|
3110 | var _reduce = __webpack_require__(20);
|
3111 | var _xfilter = __webpack_require__(86);
|
3112 | var keys = __webpack_require__(4);
|
3113 |
|
3114 |
|
3115 |
|
3116 |
|
3117 |
|
3118 |
|
3119 |
|
3120 |
|
3121 |
|
3122 |
|
3123 |
|
3124 |
|
3125 |
|
3126 |
|
3127 |
|
3128 |
|
3129 |
|
3130 |
|
3131 |
|
3132 |
|
3133 |
|
3134 |
|
3135 |
|
3136 |
|
3137 |
|
3138 |
|
3139 |
|
3140 |
|
3141 | module.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 |
|
3151 | _filter(pred, filterable)
|
3152 | );
|
3153 | }));
|
3154 |
|
3155 |
|
3156 | },
|
3157 |
|
3158 | function(module, exports, __webpack_require__) {
|
3159 |
|
3160 | var _curry1 = __webpack_require__(1);
|
3161 | var _makeFlat = __webpack_require__(79);
|
3162 |
|
3163 |
|
3164 |
|
3165 |
|
3166 |
|
3167 |
|
3168 |
|
3169 |
|
3170 |
|
3171 |
|
3172 |
|
3173 |
|
3174 |
|
3175 |
|
3176 |
|
3177 |
|
3178 |
|
3179 |
|
3180 |
|
3181 | module.exports = _curry1(_makeFlat(true));
|
3182 |
|
3183 |
|
3184 | },
|
3185 |
|
3186 | function(module, exports, __webpack_require__) {
|
3187 |
|
3188 | var nth = __webpack_require__(94);
|
3189 |
|
3190 |
|
3191 |
|
3192 |
|
3193 |
|
3194 |
|
3195 |
|
3196 |
|
3197 |
|
3198 |
|
3199 |
|
3200 |
|
3201 |
|
3202 |
|
3203 |
|
3204 |
|
3205 |
|
3206 |
|
3207 |
|
3208 |
|
3209 |
|
3210 |
|
3211 |
|
3212 | module.exports = nth(0);
|
3213 |
|
3214 |
|
3215 | },
|
3216 |
|
3217 | function(module, exports, __webpack_require__) {
|
3218 |
|
3219 | var _curry2 = __webpack_require__(0);
|
3220 |
|
3221 |
|
3222 |
|
3223 |
|
3224 |
|
3225 |
|
3226 |
|
3227 |
|
3228 |
|
3229 |
|
3230 |
|
3231 |
|
3232 |
|
3233 |
|
3234 |
|
3235 |
|
3236 |
|
3237 |
|
3238 |
|
3239 |
|
3240 |
|
3241 |
|
3242 |
|
3243 |
|
3244 |
|
3245 | module.exports = _curry2(function identical(a, b) {
|
3246 |
|
3247 | if (a === b) {
|
3248 |
|
3249 | return a !== 0 || 1 / a === 1 / b;
|
3250 | } else {
|
3251 |
|
3252 | return a !== a && b !== b;
|
3253 | }
|
3254 | });
|
3255 |
|
3256 |
|
3257 | },
|
3258 |
|
3259 | function(module, exports, __webpack_require__) {
|
3260 |
|
3261 | var add = __webpack_require__(26);
|
3262 |
|
3263 |
|
3264 |
|
3265 |
|
3266 |
|
3267 |
|
3268 |
|
3269 |
|
3270 |
|
3271 |
|
3272 |
|
3273 |
|
3274 |
|
3275 |
|
3276 |
|
3277 |
|
3278 |
|
3279 | module.exports = add(1);
|
3280 |
|
3281 |
|
3282 | },
|
3283 |
|
3284 | function(module, exports) {
|
3285 |
|
3286 | module.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 |
|
3298 | function(module, exports, __webpack_require__) {
|
3299 |
|
3300 | var _arity = __webpack_require__(8);
|
3301 | var _isPlaceholder = __webpack_require__(13);
|
3302 |
|
3303 |
|
3304 |
|
3305 |
|
3306 |
|
3307 |
|
3308 |
|
3309 |
|
3310 |
|
3311 |
|
3312 |
|
3313 |
|
3314 | module.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 |
|
3344 | function(module, exports, __webpack_require__) {
|
3345 |
|
3346 | var _arrayFromIterator = __webpack_require__(67);
|
3347 | var _functionName = __webpack_require__(71);
|
3348 | var _has = __webpack_require__(3);
|
3349 | var identical = __webpack_require__(65);
|
3350 | var keys = __webpack_require__(4);
|
3351 | var type = __webpack_require__(102);
|
3352 |
|
3353 |
|
3354 | module.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 |
|
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 |
|
3459 | function(module, exports) {
|
3460 |
|
3461 | module.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 |
|
3478 | function(module, exports) {
|
3479 |
|
3480 | module.exports = function _functionName(f) {
|
3481 |
|
3482 | var match = String(f).match(/^function (\w*)/);
|
3483 | return match == null ? '' : match[1];
|
3484 | };
|
3485 |
|
3486 |
|
3487 | },
|
3488 |
|
3489 | function(module, exports) {
|
3490 |
|
3491 | module.exports = function _identity(x) { return x; };
|
3492 |
|
3493 |
|
3494 | },
|
3495 |
|
3496 | function(module, exports, __webpack_require__) {
|
3497 |
|
3498 | var equals = __webpack_require__(61);
|
3499 |
|
3500 |
|
3501 | module.exports = function _indexOf(list, a, idx) {
|
3502 | var inf, item;
|
3503 |
|
3504 | if (typeof list.indexOf === 'function') {
|
3505 | switch (typeof a) {
|
3506 | case 'number':
|
3507 | if (a === 0) {
|
3508 |
|
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 |
|
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 |
|
3530 | return list.indexOf(a, idx);
|
3531 |
|
3532 |
|
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 |
|
3542 | return list.indexOf(a, idx);
|
3543 | }
|
3544 | }
|
3545 | }
|
3546 |
|
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 |
|
3559 | function(module, exports, __webpack_require__) {
|
3560 |
|
3561 | var _has = __webpack_require__(3);
|
3562 |
|
3563 |
|
3564 | module.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 |
|
3574 | function(module, exports) {
|
3575 |
|
3576 | module.exports = function _isFunction(x) {
|
3577 | return Object.prototype.toString.call(x) === '[object Function]';
|
3578 | };
|
3579 |
|
3580 |
|
3581 | },
|
3582 |
|
3583 | function(module, exports) {
|
3584 |
|
3585 |
|
3586 |
|
3587 |
|
3588 |
|
3589 |
|
3590 |
|
3591 |
|
3592 |
|
3593 | module.exports = Number.isInteger || function _isInteger(n) {
|
3594 | return (n << 0) === n;
|
3595 | };
|
3596 |
|
3597 |
|
3598 | },
|
3599 |
|
3600 | function(module, exports) {
|
3601 |
|
3602 | module.exports = function _isObject(x) {
|
3603 | return Object.prototype.toString.call(x) === '[object Object]';
|
3604 | };
|
3605 |
|
3606 |
|
3607 | },
|
3608 |
|
3609 | function(module, exports) {
|
3610 |
|
3611 | module.exports = function _isTransformer(obj) {
|
3612 | return typeof obj['@@transducer/step'] === 'function';
|
3613 | };
|
3614 |
|
3615 |
|
3616 | },
|
3617 |
|
3618 | function(module, exports, __webpack_require__) {
|
3619 |
|
3620 | var isArrayLike = __webpack_require__(37);
|
3621 |
|
3622 |
|
3623 |
|
3624 |
|
3625 |
|
3626 |
|
3627 |
|
3628 |
|
3629 | module.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 |
|
3657 | function(module, exports, __webpack_require__) {
|
3658 |
|
3659 | var _has = __webpack_require__(3);
|
3660 |
|
3661 |
|
3662 | module.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 |
|
3687 | function(module, exports) {
|
3688 |
|
3689 | module.exports = function _pipe(f, g) {
|
3690 | return function() {
|
3691 | return g.call(this, f.apply(this, arguments));
|
3692 | };
|
3693 | };
|
3694 |
|
3695 |
|
3696 | },
|
3697 |
|
3698 | function(module, exports) {
|
3699 |
|
3700 | module.exports = function _quote(s) {
|
3701 | var escaped = s
|
3702 | .replace(/\\/g, '\\\\')
|
3703 | .replace(/[\b]/g, '\\b')
|
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 |
|
3717 | function(module, exports) {
|
3718 |
|
3719 | module.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 |
|
3730 | function(module, exports) {
|
3731 |
|
3732 |
|
3733 |
|
3734 |
|
3735 | module.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 |
|
3758 | function(module, exports, __webpack_require__) {
|
3759 |
|
3760 | var _contains = __webpack_require__(34);
|
3761 | var _map = __webpack_require__(35);
|
3762 | var _quote = __webpack_require__(82);
|
3763 | var _toISOString = __webpack_require__(84);
|
3764 | var keys = __webpack_require__(4);
|
3765 | var reject = __webpack_require__(98);
|
3766 |
|
3767 |
|
3768 | module.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 |
|
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 |
|
3810 | function(module, exports, __webpack_require__) {
|
3811 |
|
3812 | var _curry2 = __webpack_require__(0);
|
3813 | var _xfBase = __webpack_require__(21);
|
3814 |
|
3815 |
|
3816 | module.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 |
|
3833 | function(module, exports, __webpack_require__) {
|
3834 |
|
3835 | var _curry2 = __webpack_require__(0);
|
3836 | var _xfBase = __webpack_require__(21);
|
3837 |
|
3838 |
|
3839 | module.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 |
|
3856 | function(module, exports) {
|
3857 |
|
3858 | module.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 |
|
3876 | function(module, exports, __webpack_require__) {
|
3877 |
|
3878 | var _curry2 = __webpack_require__(0);
|
3879 | var _isFunction = __webpack_require__(75);
|
3880 | var curryN = __webpack_require__(18);
|
3881 | var toString = __webpack_require__(44);
|
3882 |
|
3883 |
|
3884 |
|
3885 |
|
3886 |
|
3887 |
|
3888 |
|
3889 |
|
3890 |
|
3891 |
|
3892 |
|
3893 |
|
3894 |
|
3895 |
|
3896 |
|
3897 |
|
3898 |
|
3899 |
|
3900 |
|
3901 |
|
3902 |
|
3903 |
|
3904 |
|
3905 |
|
3906 |
|
3907 |
|
3908 |
|
3909 |
|
3910 | module.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 |
|
3923 | function(module, exports, __webpack_require__) {
|
3924 |
|
3925 | var _curry1 = __webpack_require__(1);
|
3926 | var assocPath = __webpack_require__(28);
|
3927 | var lens = __webpack_require__(38);
|
3928 | var path = __webpack_require__(15);
|
3929 |
|
3930 |
|
3931 |
|
3932 |
|
3933 |
|
3934 |
|
3935 |
|
3936 |
|
3937 |
|
3938 |
|
3939 |
|
3940 |
|
3941 |
|
3942 |
|
3943 |
|
3944 |
|
3945 |
|
3946 |
|
3947 |
|
3948 |
|
3949 |
|
3950 |
|
3951 |
|
3952 |
|
3953 |
|
3954 |
|
3955 | module.exports = _curry1(function lensPath(p) {
|
3956 | return lens(path(p), assocPath(p));
|
3957 | });
|
3958 |
|
3959 |
|
3960 | },
|
3961 |
|
3962 | function(module, exports, __webpack_require__) {
|
3963 |
|
3964 | var _arity = __webpack_require__(8);
|
3965 | var _curry1 = __webpack_require__(1);
|
3966 | var _has = __webpack_require__(3);
|
3967 | var toString = __webpack_require__(44);
|
3968 |
|
3969 |
|
3970 |
|
3971 |
|
3972 |
|
3973 |
|
3974 |
|
3975 |
|
3976 |
|
3977 |
|
3978 |
|
3979 |
|
3980 |
|
3981 |
|
3982 |
|
3983 |
|
3984 |
|
3985 |
|
3986 |
|
3987 |
|
3988 |
|
3989 |
|
3990 |
|
3991 |
|
3992 |
|
3993 |
|
3994 |
|
3995 |
|
3996 | module.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 |
|
4010 | function(module, exports, __webpack_require__) {
|
4011 |
|
4012 | var _assign = __webpack_require__(30);
|
4013 | var _curry1 = __webpack_require__(1);
|
4014 |
|
4015 |
|
4016 |
|
4017 |
|
4018 |
|
4019 |
|
4020 |
|
4021 |
|
4022 |
|
4023 |
|
4024 |
|
4025 |
|
4026 |
|
4027 |
|
4028 |
|
4029 |
|
4030 |
|
4031 |
|
4032 |
|
4033 | module.exports = _curry1(function mergeAll(list) {
|
4034 | return _assign.apply(null, [{}].concat(list));
|
4035 | });
|
4036 |
|
4037 |
|
4038 | },
|
4039 |
|
4040 | function(module, exports, __webpack_require__) {
|
4041 |
|
4042 | var _complement = __webpack_require__(32);
|
4043 | var _curry2 = __webpack_require__(0);
|
4044 | var _dispatchable = __webpack_require__(11);
|
4045 | var _xany = __webpack_require__(36);
|
4046 | var any = __webpack_require__(27);
|
4047 |
|
4048 |
|
4049 |
|
4050 |
|
4051 |
|
4052 |
|
4053 |
|
4054 |
|
4055 |
|
4056 |
|
4057 |
|
4058 |
|
4059 |
|
4060 |
|
4061 |
|
4062 |
|
4063 |
|
4064 |
|
4065 |
|
4066 |
|
4067 |
|
4068 |
|
4069 |
|
4070 |
|
4071 | module.exports = _curry2(_complement(_dispatchable(['any'], _xany, any)));
|
4072 |
|
4073 |
|
4074 | },
|
4075 |
|
4076 | function(module, exports, __webpack_require__) {
|
4077 |
|
4078 | var _curry2 = __webpack_require__(0);
|
4079 | var _isString = __webpack_require__(19);
|
4080 |
|
4081 |
|
4082 |
|
4083 |
|
4084 |
|
4085 |
|
4086 |
|
4087 |
|
4088 |
|
4089 |
|
4090 |
|
4091 |
|
4092 |
|
4093 |
|
4094 |
|
4095 |
|
4096 |
|
4097 |
|
4098 |
|
4099 |
|
4100 |
|
4101 |
|
4102 |
|
4103 |
|
4104 |
|
4105 |
|
4106 |
|
4107 |
|
4108 | module.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 |
|
4116 | function(module, exports, __webpack_require__) {
|
4117 |
|
4118 | var _curry2 = __webpack_require__(0);
|
4119 |
|
4120 |
|
4121 |
|
4122 |
|
4123 |
|
4124 |
|
4125 |
|
4126 |
|
4127 |
|
4128 |
|
4129 |
|
4130 |
|
4131 |
|
4132 |
|
4133 |
|
4134 |
|
4135 |
|
4136 |
|
4137 |
|
4138 |
|
4139 | module.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 |
|
4154 | function(module, exports, __webpack_require__) {
|
4155 |
|
4156 | var _arity = __webpack_require__(8);
|
4157 | var _pipe = __webpack_require__(81);
|
4158 | var reduce = __webpack_require__(41);
|
4159 | var tail = __webpack_require__(43);
|
4160 |
|
4161 |
|
4162 |
|
4163 |
|
4164 |
|
4165 |
|
4166 |
|
4167 |
|
4168 |
|
4169 |
|
4170 |
|
4171 |
|
4172 |
|
4173 |
|
4174 |
|
4175 |
|
4176 |
|
4177 |
|
4178 |
|
4179 |
|
4180 |
|
4181 |
|
4182 |
|
4183 |
|
4184 |
|
4185 | module.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 |
|
4196 | function(module, exports, __webpack_require__) {
|
4197 |
|
4198 | var _concat = __webpack_require__(33);
|
4199 | var _curry2 = __webpack_require__(0);
|
4200 |
|
4201 |
|
4202 |
|
4203 |
|
4204 |
|
4205 |
|
4206 |
|
4207 |
|
4208 |
|
4209 |
|
4210 |
|
4211 |
|
4212 |
|
4213 |
|
4214 |
|
4215 |
|
4216 |
|
4217 |
|
4218 |
|
4219 | module.exports = _curry2(function prepend(el, list) {
|
4220 | return _concat([el], list);
|
4221 | });
|
4222 |
|
4223 |
|
4224 | },
|
4225 |
|
4226 | function(module, exports, __webpack_require__) {
|
4227 |
|
4228 | var _complement = __webpack_require__(32);
|
4229 | var _curry2 = __webpack_require__(0);
|
4230 | var filter = __webpack_require__(62);
|
4231 |
|
4232 |
|
4233 |
|
4234 |
|
4235 |
|
4236 |
|
4237 |
|
4238 |
|
4239 |
|
4240 |
|
4241 |
|
4242 |
|
4243 |
|
4244 |
|
4245 |
|
4246 |
|
4247 |
|
4248 |
|
4249 |
|
4250 |
|
4251 |
|
4252 |
|
4253 |
|
4254 |
|
4255 | module.exports = _curry2(function reject(pred, filterable) {
|
4256 | return filter(_complement(pred), filterable);
|
4257 | });
|
4258 |
|
4259 |
|
4260 | },
|
4261 |
|
4262 | function(module, exports, __webpack_require__) {
|
4263 |
|
4264 | var _curry1 = __webpack_require__(1);
|
4265 | var _isString = __webpack_require__(19);
|
4266 |
|
4267 |
|
4268 |
|
4269 |
|
4270 |
|
4271 |
|
4272 |
|
4273 |
|
4274 |
|
4275 |
|
4276 |
|
4277 |
|
4278 |
|
4279 |
|
4280 |
|
4281 |
|
4282 |
|
4283 |
|
4284 |
|
4285 |
|
4286 |
|
4287 |
|
4288 |
|
4289 |
|
4290 |
|
4291 |
|
4292 | module.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 |
|
4300 | function(module, exports, __webpack_require__) {
|
4301 |
|
4302 | var _checkForMethod = __webpack_require__(31);
|
4303 | var _curry3 = __webpack_require__(2);
|
4304 |
|
4305 |
|
4306 |
|
4307 |
|
4308 |
|
4309 |
|
4310 |
|
4311 |
|
4312 |
|
4313 |
|
4314 |
|
4315 |
|
4316 |
|
4317 |
|
4318 |
|
4319 |
|
4320 |
|
4321 |
|
4322 |
|
4323 |
|
4324 |
|
4325 |
|
4326 |
|
4327 |
|
4328 |
|
4329 |
|
4330 | module.exports = _curry3(_checkForMethod('slice', function slice(fromIndex, toIndex, list) {
|
4331 | return Array.prototype.slice.call(list, fromIndex, toIndex);
|
4332 | }));
|
4333 |
|
4334 |
|
4335 | },
|
4336 |
|
4337 | function(module, exports, __webpack_require__) {
|
4338 |
|
4339 | var invoker = __webpack_require__(89);
|
4340 |
|
4341 |
|
4342 |
|
4343 |
|
4344 |
|
4345 |
|
4346 |
|
4347 |
|
4348 |
|
4349 |
|
4350 |
|
4351 |
|
4352 |
|
4353 |
|
4354 |
|
4355 |
|
4356 |
|
4357 |
|
4358 |
|
4359 |
|
4360 |
|
4361 |
|
4362 | module.exports = invoker(1, 'split');
|
4363 |
|
4364 |
|
4365 | },
|
4366 |
|
4367 | function(module, exports, __webpack_require__) {
|
4368 |
|
4369 | var _curry1 = __webpack_require__(1);
|
4370 |
|
4371 |
|
4372 |
|
4373 |
|
4374 |
|
4375 |
|
4376 |
|
4377 |
|
4378 |
|
4379 |
|
4380 |
|
4381 |
|
4382 |
|
4383 |
|
4384 |
|
4385 |
|
4386 |
|
4387 |
|
4388 |
|
4389 |
|
4390 |
|
4391 |
|
4392 |
|
4393 |
|
4394 |
|
4395 | module.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 |
|
4404 | function(module, exports, __webpack_require__) {
|
4405 |
|
4406 | var _curry1 = __webpack_require__(1);
|
4407 | var keys = __webpack_require__(4);
|
4408 |
|
4409 |
|
4410 |
|
4411 |
|
4412 |
|
4413 |
|
4414 |
|
4415 |
|
4416 |
|
4417 |
|
4418 |
|
4419 |
|
4420 |
|
4421 |
|
4422 |
|
4423 |
|
4424 |
|
4425 |
|
4426 | module.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 |
|
4441 | function(module, exports, __webpack_require__) {
|
4442 |
|
4443 | "use strict";
|
4444 | 'use strict';
|
4445 |
|
4446 | Object.defineProperty(exports, "__esModule", {
|
4447 | value: true
|
4448 | });
|
4449 | exports.reducer = exports.FieldArray = exports.Field = exports.Form = undefined;
|
4450 |
|
4451 | var _Form = __webpack_require__(47);
|
4452 |
|
4453 | var _Form2 = _interopRequireDefault(_Form);
|
4454 |
|
4455 | var _Field = __webpack_require__(45);
|
4456 |
|
4457 | var _Field2 = _interopRequireDefault(_Field);
|
4458 |
|
4459 | var _FieldArray = __webpack_require__(46);
|
4460 |
|
4461 | var _FieldArray2 = _interopRequireDefault(_FieldArray);
|
4462 |
|
4463 | var _formsReducer = __webpack_require__(48);
|
4464 |
|
4465 | var _formsReducer2 = _interopRequireDefault(_formsReducer);
|
4466 |
|
4467 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
4468 |
|
4469 | exports.Form = _Form2.default;
|
4470 | exports.Field = _Field2.default;
|
4471 | exports.FieldArray = _FieldArray2.default;
|
4472 | exports.reducer = _formsReducer2.default;
|
4473 |
|
4474 | }
|
4475 | ]);
|
4476 | }); |
\ | No newline at end of file |