@lingk/sync 1.0.50 → 1.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/main.js CHANGED
@@ -399,7 +399,7 @@ module.exports =
399
399
  /***/ function(module, exports, __webpack_require__) {
400
400
 
401
401
  var dP = __webpack_require__(18)
402
- , createDesc = __webpack_require__(35);
402
+ , createDesc = __webpack_require__(34);
403
403
  module.exports = __webpack_require__(10) ? function(object, key, value){
404
404
  return dP.f(object, key, createDesc(1, value));
405
405
  } : function(object, key, value){
@@ -481,7 +481,7 @@ module.exports =
481
481
  /***/ function(module, exports, __webpack_require__) {
482
482
 
483
483
  // to indexed object, toObject with fallback for non-array-like ES3 strings
484
- var IObject = __webpack_require__(32)
484
+ var IObject = __webpack_require__(31)
485
485
  , defined = __webpack_require__(16);
486
486
  module.exports = function(it){
487
487
  return IObject(defined(it));
@@ -754,8 +754,8 @@ module.exports =
754
754
  /* 25 */
755
755
  /***/ function(module, exports, __webpack_require__) {
756
756
 
757
- var shared = __webpack_require__(36)('keys')
758
- , uid = __webpack_require__(38);
757
+ var shared = __webpack_require__(35)('keys')
758
+ , uid = __webpack_require__(37);
759
759
  module.exports = function(key){
760
760
  return shared[key] || (shared[key] = uid(key));
761
761
  };
@@ -1325,105 +1325,6 @@ module.exports =
1325
1325
 
1326
1326
  /***/ },
1327
1327
  /* 27 */
1328
- /***/ function(module, exports, __webpack_require__) {
1329
-
1330
- 'use strict';
1331
-
1332
- exports.__esModule = true;
1333
-
1334
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
1335
-
1336
- var _react = __webpack_require__(1);
1337
-
1338
- var _react2 = _interopRequireDefault(_react);
1339
-
1340
- var _propTypes = __webpack_require__(40);
1341
-
1342
- var _propTypes2 = _interopRequireDefault(_propTypes);
1343
-
1344
- var _TransitionGroup = __webpack_require__(218);
1345
-
1346
- var _TransitionGroup2 = _interopRequireDefault(_TransitionGroup);
1347
-
1348
- var _CSSTransitionGroupChild = __webpack_require__(217);
1349
-
1350
- var _CSSTransitionGroupChild2 = _interopRequireDefault(_CSSTransitionGroupChild);
1351
-
1352
- var _PropTypes = __webpack_require__(78);
1353
-
1354
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1355
-
1356
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1357
-
1358
- 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; }
1359
-
1360
- 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; }
1361
-
1362
- var propTypes = {
1363
- transitionName: _PropTypes.nameShape.isRequired,
1364
-
1365
- transitionAppear: _propTypes2.default.bool,
1366
- transitionEnter: _propTypes2.default.bool,
1367
- transitionLeave: _propTypes2.default.bool,
1368
- transitionAppearTimeout: (0, _PropTypes.transitionTimeout)('Appear'),
1369
- transitionEnterTimeout: (0, _PropTypes.transitionTimeout)('Enter'),
1370
- transitionLeaveTimeout: (0, _PropTypes.transitionTimeout)('Leave')
1371
- };
1372
-
1373
- var defaultProps = {
1374
- transitionAppear: false,
1375
- transitionEnter: true,
1376
- transitionLeave: true
1377
- };
1378
-
1379
- var CSSTransitionGroup = function (_React$Component) {
1380
- _inherits(CSSTransitionGroup, _React$Component);
1381
-
1382
- function CSSTransitionGroup() {
1383
- var _temp, _this, _ret;
1384
-
1385
- _classCallCheck(this, CSSTransitionGroup);
1386
-
1387
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1388
- args[_key] = arguments[_key];
1389
- }
1390
-
1391
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._wrapChild = function (child) {
1392
- return _react2.default.createElement(_CSSTransitionGroupChild2.default, {
1393
- name: _this.props.transitionName,
1394
- appear: _this.props.transitionAppear,
1395
- enter: _this.props.transitionEnter,
1396
- leave: _this.props.transitionLeave,
1397
- appearTimeout: _this.props.transitionAppearTimeout,
1398
- enterTimeout: _this.props.transitionEnterTimeout,
1399
- leaveTimeout: _this.props.transitionLeaveTimeout
1400
- }, child);
1401
- }, _temp), _possibleConstructorReturn(_this, _ret);
1402
- }
1403
-
1404
- // We need to provide this childFactory so that
1405
- // ReactCSSTransitionGroupChild can receive updates to name, enter, and
1406
- // leave while it is leaving.
1407
-
1408
-
1409
- CSSTransitionGroup.prototype.render = function render() {
1410
- return _react2.default.createElement(_TransitionGroup2.default, _extends({}, this.props, { childFactory: this._wrapChild }));
1411
- };
1412
-
1413
- return CSSTransitionGroup;
1414
- }(_react2.default.Component);
1415
-
1416
- CSSTransitionGroup.displayName = 'CSSTransitionGroup';
1417
-
1418
-
1419
- CSSTransitionGroup.propTypes = propTypes;
1420
- CSSTransitionGroup.defaultProps = defaultProps;
1421
-
1422
- exports.default = CSSTransitionGroup;
1423
- module.exports = exports['default'];
1424
-
1425
- /***/ },
1426
- /* 28 */
1427
1328
  /***/ function(module, exports) {
1428
1329
 
1429
1330
  'use strict';
@@ -1483,18 +1384,22 @@ module.exports =
1483
1384
  } else {
1484
1385
  (function () {
1485
1386
  var destinationKeys = [];
1387
+ var destinationKeysParents = [];
1486
1388
  if (group.destinationKeys) {
1487
- group.destinationKeys.forEach(function (dk) {
1488
- if (destinationResource && destinationResource.properties && destinationResource.properties.find(function (prop) {
1489
- return prop.label === dk;
1490
- })) {
1491
- destinationKeys.push(destinationResource.properties.find(function (prop) {
1492
- return prop.label === dk;
1493
- }).name);
1494
- }
1389
+ group.destinationKeys.forEach(function (dk, i) {
1390
+ /*if(destinationResource && destinationResource.properties &&
1391
+ destinationResource.properties.find(prop => prop.label===dk)){
1392
+ destinationKeys.push(
1393
+ destinationResource.properties.find(prop => prop.label===dk).name
1394
+ )
1395
+ }*/
1396
+ var nestedDestinationKey = findNestedProp(dk, group.destinationKeysParents && group.destinationKeysParents[i], destinationResource);
1397
+ destinationKeys.push(nestedDestinationKey.property);
1398
+ destinationKeysParents.push(JSON.stringify(nestedDestinationKey.parentsArray));
1495
1399
  });
1496
1400
  }
1497
1401
  group.destinationKeys = destinationKeys;
1402
+ group.destinationKeysParents = destinationKeysParents;
1498
1403
  })();
1499
1404
  }
1500
1405
 
@@ -1512,7 +1417,6 @@ module.exports =
1512
1417
  });
1513
1418
 
1514
1419
  if (sourceResource) {
1515
-
1516
1420
  var nestedSourceKey = findNestedProp(sk, group.sourceKeysParents && group.sourceKeysParents[i], sourceResource);
1517
1421
  sourceKeys.push(nestedSourceKey.property);
1518
1422
  sourceKeysParents.push(JSON.stringify(nestedSourceKey.parentsArray));
@@ -1534,13 +1438,11 @@ module.exports =
1534
1438
  var sourceResource = dataSourceMetadata.find(function (rsc) {
1535
1439
  return rsc.name === singleMapping.resourceFromName;
1536
1440
  });
1537
-
1538
1441
  // get mapping source property
1539
1442
  var nestedSourceProp = findNestedProp(singleMapping.propertyFromName, singleMapping.propertyFromParents, sourceResource);
1443
+
1540
1444
  //get mapping destination property
1541
- var destinationProperty = destinationResource && destinationResource.properties && destinationResource.properties.find(function (prop) {
1542
- return prop.label === singleMapping.propertyToName;
1543
- });
1445
+ var nestedDestinationProp = findNestedProp(singleMapping.propertyToName, singleMapping.propertyToParents, destinationResource);
1544
1446
 
1545
1447
  //dont save transformation that are just "none"
1546
1448
  if (singleMapping.transformations && singleMapping.transformations.length > 0) {
@@ -1578,7 +1480,7 @@ module.exports =
1578
1480
  });
1579
1481
  }
1580
1482
 
1581
- if (sourceResource && nestedSourceProp.property && destinationResource && destinationProperty) {
1483
+ if (sourceResource && nestedSourceProp.property && destinationResource && nestedDestinationProp.property) {
1582
1484
  mappings = mappings.concat(Object.assign({ // add to mappings obj
1583
1485
  resourceFromNameAndProvider: singleMapping.dataSourceIsDestinationEntity ? sourceResource.type + '_' + targetProvider.toLowerCase() : sourceResource.type + '_' + sourceProvider.toLowerCase(),
1584
1486
  resourceFromName: sourceResource.type,
@@ -1588,8 +1490,9 @@ module.exports =
1588
1490
  }, nestedSourceProp.parentsArray && nestedSourceProp.parentsArray.length > 0 && { propertyFromParents: nestedSourceProp.parentsArray }, {
1589
1491
  resourceToName: destinationResource.type,
1590
1492
  resourceToLabel: destinationResource.name,
1591
- propertyToName: destinationProperty.name,
1592
- propertyToLabel: destinationProperty.label,
1493
+ propertyToName: nestedDestinationProp.property,
1494
+ propertyToLabel: nestedDestinationProp.__property
1495
+ }, nestedDestinationProp.parentsArray && nestedDestinationProp.parentsArray.length > 0 && { propertyToParents: nestedDestinationProp.parentsArray }, {
1593
1496
  bundleIndex: index
1594
1497
  }, singleMapping.isExternalKeyMapping && { isExternalKeyMapping: true }, singleMapping.dataSourceIsDestinationEntity && { isDestinationResource: true }, singleMapping.isUnique && { isUnique: true }, singleMapping.transformations && singleMapping.transformations.length > 0 && !singleMapping.transformations.every(function (t) {
1595
1498
  return t.type === 'none';
@@ -1599,7 +1502,10 @@ module.exports =
1599
1502
  delete group.mappings; // remove the mapping obj from a resourceGroup
1600
1503
  if (group.lingkSourceKey) delete group.lingkSourceKey;
1601
1504
  if (group.lingkSourceKeyObject) delete group.lingkSourceKeyObject;
1602
- if (group.lingkSourceKeyParents) delete group.lingkSourceKeyParents;
1505
+ if (group.lingkSourceKeyParents) {
1506
+ delete group.lingkSourceKeyParents;
1507
+ delete group.destinationKeysParents;
1508
+ }
1603
1509
  }
1604
1510
 
1605
1511
  // BUNDLES
@@ -1712,11 +1618,16 @@ module.exports =
1712
1618
  }
1713
1619
  })();
1714
1620
  } else {
1715
- var theProp = prop && rsc && rsc.properties && rsc.properties.find(function (p) {
1716
- return p.label === prop;
1717
- });
1718
- property = theProp.name;
1719
- __property = theProp.label;
1621
+ if (prop === 'Lingk External Id') {
1622
+ property = 'Lingk_External_Id__c';
1623
+ __property = prop;
1624
+ } else {
1625
+ var theProp = prop && rsc && rsc.properties && rsc.properties.find(function (p) {
1626
+ return p.label === prop;
1627
+ });
1628
+ property = theProp.name;
1629
+ __property = theProp.label;
1630
+ }
1720
1631
  }
1721
1632
  return { property: property, parentsArray: parentsArray, __property: __property };
1722
1633
  }
@@ -1724,7 +1635,7 @@ module.exports =
1724
1635
  exports.default = saveData;
1725
1636
 
1726
1637
  /***/ },
1727
- /* 29 */
1638
+ /* 28 */
1728
1639
  /***/ function(module, exports) {
1729
1640
 
1730
1641
  var toString = {}.toString;
@@ -1734,7 +1645,7 @@ module.exports =
1734
1645
  };
1735
1646
 
1736
1647
  /***/ },
1737
- /* 30 */
1648
+ /* 29 */
1738
1649
  /***/ function(module, exports, __webpack_require__) {
1739
1650
 
1740
1651
  var isObject = __webpack_require__(14)
@@ -1746,7 +1657,7 @@ module.exports =
1746
1657
  };
1747
1658
 
1748
1659
  /***/ },
1749
- /* 31 */
1660
+ /* 30 */
1750
1661
  /***/ function(module, exports) {
1751
1662
 
1752
1663
  // IE 8- don't enum bug keys
@@ -1755,30 +1666,30 @@ module.exports =
1755
1666
  ).split(',');
1756
1667
 
1757
1668
  /***/ },
1758
- /* 32 */
1669
+ /* 31 */
1759
1670
  /***/ function(module, exports, __webpack_require__) {
1760
1671
 
1761
1672
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
1762
- var cof = __webpack_require__(29);
1673
+ var cof = __webpack_require__(28);
1763
1674
  module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
1764
1675
  return cof(it) == 'String' ? it.split('') : Object(it);
1765
1676
  };
1766
1677
 
1767
1678
  /***/ },
1768
- /* 33 */,
1769
- /* 34 */
1679
+ /* 32 */,
1680
+ /* 33 */
1770
1681
  /***/ function(module, exports, __webpack_require__) {
1771
1682
 
1772
1683
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
1773
1684
  var $keys = __webpack_require__(56)
1774
- , enumBugKeys = __webpack_require__(31);
1685
+ , enumBugKeys = __webpack_require__(30);
1775
1686
 
1776
1687
  module.exports = Object.keys || function keys(O){
1777
1688
  return $keys(O, enumBugKeys);
1778
1689
  };
1779
1690
 
1780
1691
  /***/ },
1781
- /* 35 */
1692
+ /* 34 */
1782
1693
  /***/ function(module, exports) {
1783
1694
 
1784
1695
  module.exports = function(bitmap, value){
@@ -1791,7 +1702,7 @@ module.exports =
1791
1702
  };
1792
1703
 
1793
1704
  /***/ },
1794
- /* 36 */
1705
+ /* 35 */
1795
1706
  /***/ function(module, exports, __webpack_require__) {
1796
1707
 
1797
1708
  var global = __webpack_require__(7)
@@ -1802,7 +1713,7 @@ module.exports =
1802
1713
  };
1803
1714
 
1804
1715
  /***/ },
1805
- /* 37 */
1716
+ /* 36 */
1806
1717
  /***/ function(module, exports, __webpack_require__) {
1807
1718
 
1808
1719
  // 7.1.13 ToObject(argument)
@@ -1812,7 +1723,7 @@ module.exports =
1812
1723
  };
1813
1724
 
1814
1725
  /***/ },
1815
- /* 38 */
1726
+ /* 37 */
1816
1727
  /***/ function(module, exports) {
1817
1728
 
1818
1729
  var id = 0
@@ -1822,7 +1733,7 @@ module.exports =
1822
1733
  };
1823
1734
 
1824
1735
  /***/ },
1825
- /* 39 */
1736
+ /* 38 */
1826
1737
  /***/ function(module, exports, __webpack_require__) {
1827
1738
 
1828
1739
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -1876,7 +1787,7 @@ module.exports =
1876
1787
 
1877
1788
 
1878
1789
  /***/ },
1879
- /* 40 */
1790
+ /* 39 */
1880
1791
  /***/ function(module, exports, __webpack_require__) {
1881
1792
 
1882
1793
  /**
@@ -1911,6 +1822,105 @@ module.exports =
1911
1822
  }
1912
1823
 
1913
1824
 
1825
+ /***/ },
1826
+ /* 40 */
1827
+ /***/ function(module, exports, __webpack_require__) {
1828
+
1829
+ 'use strict';
1830
+
1831
+ exports.__esModule = true;
1832
+
1833
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
1834
+
1835
+ var _react = __webpack_require__(1);
1836
+
1837
+ var _react2 = _interopRequireDefault(_react);
1838
+
1839
+ var _propTypes = __webpack_require__(39);
1840
+
1841
+ var _propTypes2 = _interopRequireDefault(_propTypes);
1842
+
1843
+ var _TransitionGroup = __webpack_require__(218);
1844
+
1845
+ var _TransitionGroup2 = _interopRequireDefault(_TransitionGroup);
1846
+
1847
+ var _CSSTransitionGroupChild = __webpack_require__(217);
1848
+
1849
+ var _CSSTransitionGroupChild2 = _interopRequireDefault(_CSSTransitionGroupChild);
1850
+
1851
+ var _PropTypes = __webpack_require__(78);
1852
+
1853
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1854
+
1855
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1856
+
1857
+ 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; }
1858
+
1859
+ 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; }
1860
+
1861
+ var propTypes = {
1862
+ transitionName: _PropTypes.nameShape.isRequired,
1863
+
1864
+ transitionAppear: _propTypes2.default.bool,
1865
+ transitionEnter: _propTypes2.default.bool,
1866
+ transitionLeave: _propTypes2.default.bool,
1867
+ transitionAppearTimeout: (0, _PropTypes.transitionTimeout)('Appear'),
1868
+ transitionEnterTimeout: (0, _PropTypes.transitionTimeout)('Enter'),
1869
+ transitionLeaveTimeout: (0, _PropTypes.transitionTimeout)('Leave')
1870
+ };
1871
+
1872
+ var defaultProps = {
1873
+ transitionAppear: false,
1874
+ transitionEnter: true,
1875
+ transitionLeave: true
1876
+ };
1877
+
1878
+ var CSSTransitionGroup = function (_React$Component) {
1879
+ _inherits(CSSTransitionGroup, _React$Component);
1880
+
1881
+ function CSSTransitionGroup() {
1882
+ var _temp, _this, _ret;
1883
+
1884
+ _classCallCheck(this, CSSTransitionGroup);
1885
+
1886
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1887
+ args[_key] = arguments[_key];
1888
+ }
1889
+
1890
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this._wrapChild = function (child) {
1891
+ return _react2.default.createElement(_CSSTransitionGroupChild2.default, {
1892
+ name: _this.props.transitionName,
1893
+ appear: _this.props.transitionAppear,
1894
+ enter: _this.props.transitionEnter,
1895
+ leave: _this.props.transitionLeave,
1896
+ appearTimeout: _this.props.transitionAppearTimeout,
1897
+ enterTimeout: _this.props.transitionEnterTimeout,
1898
+ leaveTimeout: _this.props.transitionLeaveTimeout
1899
+ }, child);
1900
+ }, _temp), _possibleConstructorReturn(_this, _ret);
1901
+ }
1902
+
1903
+ // We need to provide this childFactory so that
1904
+ // ReactCSSTransitionGroupChild can receive updates to name, enter, and
1905
+ // leave while it is leaving.
1906
+
1907
+
1908
+ CSSTransitionGroup.prototype.render = function render() {
1909
+ return _react2.default.createElement(_TransitionGroup2.default, _extends({}, this.props, { childFactory: this._wrapChild }));
1910
+ };
1911
+
1912
+ return CSSTransitionGroup;
1913
+ }(_react2.default.Component);
1914
+
1915
+ CSSTransitionGroup.displayName = 'CSSTransitionGroup';
1916
+
1917
+
1918
+ CSSTransitionGroup.propTypes = propTypes;
1919
+ CSSTransitionGroup.defaultProps = defaultProps;
1920
+
1921
+ exports.default = CSSTransitionGroup;
1922
+ module.exports = exports['default'];
1923
+
1914
1924
  /***/ },
1915
1925
  /* 41 */
1916
1926
  /***/ function(module, exports) {
@@ -3277,19 +3287,20 @@ module.exports =
3277
3287
  //get bundle destinationKeys
3278
3288
  var destinationKeys = [];
3279
3289
  var __destinationKeys = [];
3280
- bundle.destinationKeys.forEach(function (dk) {
3281
- var bundleDestinationProperty = bundleResource.properties.find(function (prop) {
3282
- return prop.name === dk;
3283
- });
3284
- if (bundleDestinationProperty) {
3285
- destinationKeys.push(bundleDestinationProperty.label);
3286
- __destinationKeys.push(bundleDestinationProperty.name);
3290
+ var destinationKeysParents = [];
3291
+ bundle.destinationKeys.forEach(function (dk, i) {
3292
+ if (bundle.customExternalKeys) {
3293
+ var deNestedProp = deNest(dk, bundle.sourceKeysParents && JSON.parse(bundle.destinationKeysParents[i]), bundleResource);
3294
+ destinationKeys.push(deNestedProp.property);
3295
+ __destinationKeys.push(deNestedProp.__property);
3296
+ destinationKeysParents.push(deNestedProp.parentsArray);
3287
3297
  } else {
3288
3298
  destinationKeys.push('Lingk External Id');
3289
3299
  __destinationKeys.push('Lingk_External_Id__c');
3290
3300
  }
3291
3301
  });
3292
3302
 
3303
+ //get bundle sourceKeys
3293
3304
  var sourceKeys = [];
3294
3305
  var __sourceKeys = [];
3295
3306
  var sourceKeysObjects = [];
@@ -3391,29 +3402,6 @@ module.exports =
3391
3402
  })();
3392
3403
  }
3393
3404
  }
3394
- /*const primaryResourceProvider = bundle.resources[0].provider
3395
- .replace('Reader','').toLowerCase()
3396
- const primaryDataSourceMetadata = primaryResourceProvider === DP.toLowerCase() ? DM : primaryResourceProvider === SP.toLowerCase() ? SM : null
3397
- let deNestedPrimaryKey = {}
3398
- let primaryKeyResourceName = null
3399
- if(primaryDataSourceMetadata){
3400
- if(rsc.primaryKeyName){
3401
- //primaryKeyName coming from parameter (another resource)
3402
- deNestedPrimaryKey = {property: rsc.primaryKeyName}
3403
- primaryKeyResourceName = rsc.primaryKeyResource
3404
- // primaryKeyName coming from field on this resource
3405
- if(bundle.resources[0].resourceLabel===rsc.primaryKeyResource){
3406
- const rscPrimaryResource = primaryDataSourceMetadata
3407
- .find(r => r.type===rsc.primaryKeyResource)
3408
- if(rscPrimaryResource){
3409
- deNestedPrimaryKey = deNest(
3410
- rsc.primaryKeyName, rsc.primaryKeyParents, rscPrimaryResource
3411
- )
3412
- primaryKeyResourceName = rscPrimaryResource.name
3413
- }
3414
- }
3415
- }
3416
- }*/
3417
3405
 
3418
3406
  if (rscResource) {
3419
3407
  resources.push(Object.assign({
@@ -3438,24 +3426,17 @@ module.exports =
3438
3426
  dataSourceMetadata = m.isDestinationResource ? SM : DM;
3439
3427
  }
3440
3428
 
3429
+ // source key / parents
3441
3430
  var resourceFromBundle = bundle.resources.find(function (br) {
3442
3431
  return br.resourceName === m.resourceFromName;
3443
3432
  });
3444
3433
  var sourceResource = resourceFromBundle && dataSourceMetadata.find(function (rsc) {
3445
3434
  return rsc.name === resourceFromBundle.resourceLabel;
3446
3435
  });
3447
- var deNestedProp = deNest(m.propertyFromName, m.propertyFromParents, sourceResource);
3448
-
3449
- var sourceProperty = null;
3450
- if (sourceResource) {
3451
- sourceProperty = sourceResource.properties.find(function (prop) {
3452
- return prop.name === m.propertyFromName;
3453
- });
3454
- }
3436
+ var deNestedSourceProp = deNest(m.propertyFromName, m.propertyFromParents, sourceResource);
3455
3437
 
3456
- var destinationProperty = bundleResource.properties.find(function (prop) {
3457
- return prop.name === m.propertyToName;
3458
- });
3438
+ // destintation key / parents
3439
+ var deNestedDestProp = deNest(m.propertyToName, m.propertyToParents, bundleResource);
3459
3440
 
3460
3441
  var transformations = [{ type: 'none' }];
3461
3442
  if (m.transformations && m.transformations.length > 0) {
@@ -3490,18 +3471,18 @@ module.exports =
3490
3471
  }
3491
3472
  }
3492
3473
 
3493
- if (sourceResource && sourceProperty && destinationProperty) {
3474
+ if (sourceResource && deNestedSourceProp.property && deNestedDestProp.property) {
3494
3475
  mappings.push(Object.assign({
3495
3476
  resourceFromName: sourceResource.name,
3496
3477
  __resourceFromName: sourceResource.type,
3497
- propertyFromName: deNestedProp.property,
3498
- __propertyFromName: deNestedProp.__property
3499
- }, deNestedProp.parentsArray && deNestedProp.parentsArray.length > 0 && { propertyFromParents: deNestedProp.parentsArray }, {
3478
+ propertyFromName: deNestedSourceProp.property,
3479
+ __propertyFromName: deNestedSourceProp.__property
3480
+ }, deNestedSourceProp.parentsArray && deNestedSourceProp.parentsArray.length > 0 && { propertyFromParents: deNestedSourceProp.parentsArray }, {
3500
3481
  resourceToName: bundleResource.name,
3501
3482
  __resourceToName: bundleResource.type,
3502
- propertyToName: destinationProperty.label,
3503
- __propertyToName: destinationProperty.name
3504
- }, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }, m.isUnique && { isUnique: true }, {
3483
+ propertyToName: deNestedDestProp.property,
3484
+ __propertyToName: deNestedDestProp.__property
3485
+ }, deNestedDestProp.parentsArray && deNestedDestProp.parentsArray.length > 0 && { propertyToParents: deNestedDestProp.parentsArray }, m.isDestinationResource && { dataSourceIsDestinationEntity: true }, m.isExternalKeyMapping && { isExternalKeyMapping: true }, m.isUnique && { isUnique: true }, {
3505
3486
  transformations: transformations
3506
3487
  }));
3507
3488
  }
@@ -3515,7 +3496,8 @@ module.exports =
3515
3496
  sourceKeys: sourceKeys, __sourceKeys: __sourceKeys,
3516
3497
  sourceKeysObjects: sourceKeysObjects, __sourceKeysObjects: __sourceKeysObjects,
3517
3498
  sourceKeysParents: sourceKeysParents,
3518
- destinationKeys: destinationKeys, __destinationKeys: __destinationKeys
3499
+ destinationKeys: destinationKeys, __destinationKeys: __destinationKeys,
3500
+ destinationKeysParents: destinationKeysParents
3519
3501
  }, bundle.customExternalKeys === false && {
3520
3502
  lingkSourceKey: sourceKeys[0], __lingkSourceKey: __sourceKeys[0],
3521
3503
  lingkSourceKeyObject: sourceKeysObjects[0],
@@ -3671,7 +3653,7 @@ module.exports =
3671
3653
  /***/ function(module, exports, __webpack_require__) {
3672
3654
 
3673
3655
  module.exports = !__webpack_require__(10) && !__webpack_require__(12)(function(){
3674
- return Object.defineProperty(__webpack_require__(30)('div'), 'a', {get: function(){ return 7; }}).a != 7;
3656
+ return Object.defineProperty(__webpack_require__(29)('div'), 'a', {get: function(){ return 7; }}).a != 7;
3675
3657
  });
3676
3658
 
3677
3659
  /***/ },
@@ -16677,7 +16659,7 @@ module.exports =
16677
16659
 
16678
16660
  var _react2 = _interopRequireDefault(_react);
16679
16661
 
16680
- var _propTypes = __webpack_require__(40);
16662
+ var _propTypes = __webpack_require__(39);
16681
16663
 
16682
16664
  var _propTypes2 = _interopRequireDefault(_propTypes);
16683
16665
 
@@ -18731,7 +18713,6 @@ module.exports =
18731
18713
  var rsc = group.resources.find(function (r) {
18732
18714
  return r.name === group.sourceKeysObjects[i];
18733
18715
  });
18734
- console.log(group);
18735
18716
  var map = Object.assign({
18736
18717
  isExternalKeyMapping: true,
18737
18718
  resourceFromName: group.sourceKeysObjects[i],
@@ -18742,7 +18723,8 @@ module.exports =
18742
18723
  __resourceToName: group.__name,
18743
18724
  propertyToName: group.destinationKeys[i],
18744
18725
  __propertyToName: group.__destinationKeys[i],
18745
- propertyFromParents: group.sourceKeysParents[i]
18726
+ propertyFromParents: group.sourceKeysParents[i],
18727
+ propertyToParents: group.destinationKeysParents[i]
18746
18728
  }, rsc.provider.toLowerCase() === step.destinationProvider.toLowerCase() && { dataSourceIsDestinationEntity: true });
18747
18729
  group.mappings = group.mappings || [];
18748
18730
  group.mappings.push(map);
@@ -18854,8 +18836,6 @@ module.exports =
18854
18836
  var rgs = [].concat(_toConsumableArray(resourceGroups));
18855
18837
  var group = rgs[bundleIndex];
18856
18838
 
18857
- console.log(group);
18858
-
18859
18839
  var sectionLabels = [];
18860
18840
  var sectionTypes = [];
18861
18841
  var sectionProviders = [];
@@ -18968,7 +18948,14 @@ module.exports =
18968
18948
  sourceLabel = group.__sourceKeys[i];
18969
18949
  }
18970
18950
 
18971
- var destinationLabel = group.destinationKeys && group.destinationKeys[i];
18951
+ var destinationLabel = '';
18952
+ group.destinationKeysParents && group.destinationKeysParents[i] && group.destinationKeysParents[i].forEach(function (dkp) {
18953
+ destinationLabel += dkp;
18954
+ destinationLabel += ': ';
18955
+ });
18956
+ if (group.destinationKeys && group.destinationKeys[i]) {
18957
+ destinationLabel += group.destinationKeys && group.destinationKeys[i];
18958
+ }
18972
18959
  if (showApiNames && group.__destinationKeys && group.__destinationKeys[i]) {
18973
18960
  destinationLabel = group.__destinationKeys[i];
18974
18961
  }
@@ -19161,7 +19148,7 @@ module.exports =
19161
19148
 
19162
19149
  var _react2 = _interopRequireDefault(_react);
19163
19150
 
19164
- var _CSSTransitionGroup = __webpack_require__(27);
19151
+ var _CSSTransitionGroup = __webpack_require__(40);
19165
19152
 
19166
19153
  var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
19167
19154
 
@@ -19194,7 +19181,8 @@ module.exports =
19194
19181
  customFieldValue: '',
19195
19182
  addNewButtonText: 'Add New',
19196
19183
  setDuplicateRules: false,
19197
- expanded: {}
19184
+ sourceExpanded: {},
19185
+ destinationExpanded: {}
19198
19186
  };
19199
19187
  _this.onSelectDestinationField = _this.onSelectDestinationField.bind(_this);
19200
19188
  _this.customize = _this.customize.bind(_this);
@@ -19286,7 +19274,7 @@ module.exports =
19286
19274
  }
19287
19275
  }, {
19288
19276
  key: 'onSelectDestinationField',
19289
- value: function onSelectDestinationField(group, field, format) {
19277
+ value: function onSelectDestinationField(group, field, parents) {
19290
19278
  //group.name, field.label, field.format
19291
19279
  var _props2 = this.props,
19292
19280
  change = _props2.change,
@@ -19313,8 +19301,8 @@ module.exports =
19313
19301
 
19314
19302
  //cant map multiple to same destination field
19315
19303
  rscGroup.mappings = rscGroup.mappings && rscGroup.mappings.filter(function (m) {
19316
- return m.propertyToName !== field.label;
19317
- }) || [];
19304
+ return !(m.propertyToName === field.label && JSON.stringify(m.propertyToParents) === JSON.stringify(parents));
19305
+ });
19318
19306
  rscGroup.mappings.push({
19319
19307
  resourceFromName: selectedEntity.name,
19320
19308
  __resourceFromName: selectedEntity.__name,
@@ -19325,6 +19313,7 @@ module.exports =
19325
19313
  propertyFromParents: this.state.selectedField.parents,
19326
19314
  propertyToName: field.label,
19327
19315
  __propertyToName: field.name,
19316
+ propertyToParents: parents,
19328
19317
  transformations: [{ type: transform }],
19329
19318
  dataSourceIsDestinationEntity: selectedEntity.isDestinationEntity
19330
19319
  });
@@ -19362,20 +19351,13 @@ module.exports =
19362
19351
  var bit = [true, false];
19363
19352
  var direction = leftClicked ? 'right' : 'left';
19364
19353
 
19365
- var mappings = {};
19366
- var filteredMappings = {};
19367
- group && group.mappings && group.mappings.forEach(function (m, i) {
19368
- mappings[m.propertyToName] = {
19369
- propFrom: m.propertyFromName,
19370
- unique: m.isUnique || false,
19371
- index: i
19372
- };
19373
- if (m.resourceFromName === selectedEntity.name) {
19374
- filteredMappings[m.propertyToName] = {
19375
- propFrom: m.propertyFromName,
19376
- parentsFrom: m.propertyFromParents || []
19377
- };
19378
- }
19354
+ var mappings = group && group.mappings.map(function (m, i) {
19355
+ return Object.assign({}, m, { index: i });
19356
+ });
19357
+ var filteredMappings = group && group.mappings.filter(function (m) {
19358
+ return m.resourceFromName === selectedEntity.name;
19359
+ }).map(function (m) {
19360
+ return m;
19379
19361
  });
19380
19362
 
19381
19363
  var smallButtonStyle = {
@@ -19483,8 +19465,8 @@ module.exports =
19483
19465
  return _react2.default.createElement(_nestedField2.default, { key: ii, field: field,
19484
19466
  selectedField: selectedField,
19485
19467
  filteredMappings: filteredMappings, parents: [],
19486
- onExpand: function onExpand(expanded) {
19487
- return _this4.setState({ expanded: expanded });
19468
+ onExpand: function onExpand(ex) {
19469
+ return _this4.setState({ sourceExpanded: ex });
19488
19470
  },
19489
19471
  click: function click(field, parents) {
19490
19472
  return _this4.setState({
@@ -19494,7 +19476,7 @@ module.exports =
19494
19476
  parents: parents
19495
19477
  }
19496
19478
  });
19497
- }, expanded: _this4.state.expanded,
19479
+ }, expanded: _this4.state.sourceExpanded,
19498
19480
  showApiNames: showApiNames
19499
19481
  });
19500
19482
  }),
@@ -19564,37 +19546,34 @@ module.exports =
19564
19546
  }).properties.filter(function (p) {
19565
19547
  return !p.readOnly;
19566
19548
  }).map(function (field, i) {
19567
- var isMapped = mappings && Object.keys(mappings).includes(field.label);
19568
- var title = showApiNames ? field.name : field.label;
19569
- return _react2.default.createElement(
19570
- 'div',
19571
- { key: i,
19572
- className: selectedField && selectedField.label ? "wizard-map-field" : '',
19573
- style: { paddingLeft: 5, width: 335,
19574
- fontWeight: isMapped ? 'bold' : 'normal',
19575
- color: isMapped ? '#16325c' : selectedField && selectedField.label ? 'black' : 'grey'
19576
- }, onClick: function onClick() {
19577
- return _this4.onSelectDestinationField(group, field);
19578
- } },
19579
- title,
19580
- ' ',
19581
- field.required ? '*' : ''
19582
- );
19549
+ return _react2.default.createElement(_nestedField2.default, { key: i, field: field,
19550
+ selectedField: selectedField,
19551
+ filteredMappings: mappings, parents: [],
19552
+ onExpand: function onExpand(ex) {
19553
+ return _this4.setState({ destinationExpanded: ex });
19554
+ },
19555
+ click: function click(f, p) {
19556
+ return _this4.onSelectDestinationField(group, f, p);
19557
+ },
19558
+ expanded: _this4.state.destinationExpanded,
19559
+ showApiNames: showApiNames,
19560
+ isDestination: true
19561
+ });
19583
19562
  }),
19584
- _this4.state.setDuplicateRules && mappings && Object.keys(mappings).map(function (mk, ii) {
19563
+ _this4.state.setDuplicateRules && mappings && mappings.map(function (m, ii) {
19585
19564
  return _react2.default.createElement(
19586
19565
  'div',
19587
19566
  { key: ii,
19588
19567
  style: { padding: '0 0 5px 5px', width: 335, fontWeight: 'bold', color: '#16325c' } },
19589
- mk,
19568
+ m.propertyToName,
19590
19569
  _react2.default.createElement(
19591
19570
  'div',
19592
19571
  { style: { paddingLeft: 12 } },
19593
19572
  _react2.default.createElement(_reduxForm.Field, { style: { height: 19, margin: 0, color: 'grey' },
19594
19573
  label: 'Unique Field',
19595
19574
  component: inputs.rfCheckbox,
19596
- checked: mappings[mk].unique,
19597
- name: 'resourceGroups.' + resourceGroupIndex + '.mappings.' + mappings[mk].index + '.isUnique' })
19575
+ checked: m.isUnique,
19576
+ name: 'resourceGroups.' + resourceGroupIndex + '.mappings.' + m.index + '.isUnique' })
19598
19577
  )
19599
19578
  );
19600
19579
  })
@@ -19714,7 +19693,14 @@ module.exports =
19714
19693
  fromString = m.__propertyFromName;
19715
19694
  }
19716
19695
 
19717
- var toStr = m.propertyToName;
19696
+ var toStr = '';
19697
+ if (m.propertyToParents && m.propertyToParents.length > 0) {
19698
+ m.propertyToParents.forEach(function (p) {
19699
+ toStr += p;
19700
+ toStr += ': ';
19701
+ });
19702
+ }
19703
+ toStr += m.propertyToName;
19718
19704
  if (showApiNames && m.__propertyToName) {
19719
19705
  toStr = m.__propertyToName;
19720
19706
  }
@@ -19744,8 +19730,7 @@ module.exports =
19744
19730
  var MapTableTransformRow = exports.MapTableTransformRow = function MapTableTransformRow(props) {
19745
19731
  var group = props.group,
19746
19732
  i = props.i,
19747
- selectMapping = props.selectMapping,
19748
- showApiNames = props.showApiNames;
19733
+ selectMapping = props.selectMapping;
19749
19734
 
19750
19735
  var icons = {
19751
19736
  none: _react2.default.createElement(
@@ -20141,7 +20126,7 @@ module.exports =
20141
20126
 
20142
20127
  var _react2 = _interopRequireDefault(_react);
20143
20128
 
20144
- var _CSSTransitionGroup = __webpack_require__(27);
20129
+ var _CSSTransitionGroup = __webpack_require__(40);
20145
20130
 
20146
20131
  var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
20147
20132
 
@@ -21725,7 +21710,7 @@ module.exports =
21725
21710
 
21726
21711
  var _previewTabContent = __webpack_require__(67);
21727
21712
 
21728
- var _CSSTransitionGroup = __webpack_require__(27);
21713
+ var _CSSTransitionGroup = __webpack_require__(40);
21729
21714
 
21730
21715
  var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
21731
21716
 
@@ -23166,7 +23151,7 @@ module.exports =
23166
23151
 
23167
23152
  var _initialize2 = _interopRequireDefault(_initialize);
23168
23153
 
23169
- var _CSSTransitionGroup = __webpack_require__(27);
23154
+ var _CSSTransitionGroup = __webpack_require__(40);
23170
23155
 
23171
23156
  var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
23172
23157
 
@@ -24985,13 +24970,9 @@ module.exports =
24985
24970
 
24986
24971
  var _nestExpand2 = _interopRequireDefault(_nestExpand);
24987
24972
 
24988
- var _CSSTransitionGroup = __webpack_require__(27);
24989
-
24990
- var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
24991
-
24992
24973
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24993
24974
 
24994
- var SourceField = function SourceField(props) {
24975
+ var NestedField = function NestedField(props) {
24995
24976
  var field = props.field,
24996
24977
  selectedField = props.selectedField,
24997
24978
  filteredMappings = props.filteredMappings,
@@ -24999,11 +24980,19 @@ module.exports =
24999
24980
  onExpand = props.onExpand,
25000
24981
  expanded = props.expanded,
25001
24982
  parents = props.parents,
25002
- showApiNames = props.showApiNames;
25003
-
25004
- var isMapped = filteredMappings && Object.values(filteredMappings).find(function (fm) {
25005
- return fm.propFrom === field.label && JSON.stringify(fm.parentsFrom) === JSON.stringify(parents);
25006
- }) ? true : false;
24983
+ showApiNames = props.showApiNames,
24984
+ isDestination = props.isDestination;
24985
+
24986
+ var isMapped = false;
24987
+ if (isDestination) {
24988
+ isMapped = filteredMappings && filteredMappings.find(function (m) {
24989
+ return m.propertyToName === field.label && JSON.stringify(m.propertyToParents) === JSON.stringify(parents);
24990
+ }) ? true : false;
24991
+ } else {
24992
+ isMapped = filteredMappings && filteredMappings.find(function (fm) {
24993
+ return fm.propertyFromName === field.label && JSON.stringify(fm.propertyFromParents) === JSON.stringify(parents);
24994
+ }) ? true : false;
24995
+ }
25007
24996
  var isSelected = selectedField && selectedField.label && selectedField.label === field.label && JSON.stringify(selectedField.parents) === JSON.stringify(parents);
25008
24997
  var style = {
25009
24998
  paddingLeft: 5,
@@ -25061,26 +25050,22 @@ module.exports =
25061
25050
  _react2.default.createElement(
25062
25051
  'div',
25063
25052
  { style: { paddingLeft: 18 } },
25064
- _react2.default.createElement(
25065
- _CSSTransitionGroup2.default,
25066
- { transitionName: 'expander',
25067
- transitionEnterTimeout: 250, transitionLeaveTimeout: 250 },
25068
- isExpanded ? _react2.default.createElement(
25069
- 'div',
25070
- { className: 'fields-expander' },
25071
- field.object && field.object.properties.map(function (nestedField, i) {
25072
- return _react2.default.createElement(SourceField, { key: i, field: nestedField, selectedField: selectedField,
25073
- filteredMappings: filteredMappings, parents: parents.concat(field.label),
25074
- click: click, onExpand: onExpand, expanded: expanded, showApiNames: showApiNames
25075
- });
25076
- })
25077
- ) : null
25078
- )
25053
+ isExpanded ? _react2.default.createElement(
25054
+ 'div',
25055
+ { className: 'fields-expander' },
25056
+ field.object && field.object.properties.map(function (nestedField, i) {
25057
+ return _react2.default.createElement(NestedField, { key: i, field: nestedField, selectedField: selectedField,
25058
+ filteredMappings: filteredMappings, parents: parents.concat(field.label),
25059
+ click: click, onExpand: onExpand, expanded: expanded, showApiNames: showApiNames,
25060
+ isDestination: isDestination
25061
+ });
25062
+ })
25063
+ ) : null
25079
25064
  )
25080
25065
  );
25081
25066
  };
25082
25067
 
25083
- exports.default = SourceField;
25068
+ exports.default = NestedField;
25084
25069
 
25085
25070
  /***/ },
25086
25071
  /* 139 */
@@ -25098,7 +25083,7 @@ module.exports =
25098
25083
 
25099
25084
  var _react2 = _interopRequireDefault(_react);
25100
25085
 
25101
- var _saveData3 = __webpack_require__(28);
25086
+ var _saveData3 = __webpack_require__(27);
25102
25087
 
25103
25088
  var _saveData4 = _interopRequireDefault(_saveData3);
25104
25089
 
@@ -25621,7 +25606,7 @@ module.exports =
25621
25606
 
25622
25607
  var _fileProcessing2 = _interopRequireDefault(_fileProcessing);
25623
25608
 
25624
- var _saveData2 = __webpack_require__(28);
25609
+ var _saveData2 = __webpack_require__(27);
25625
25610
 
25626
25611
  var _saveData3 = _interopRequireDefault(_saveData2);
25627
25612
 
@@ -26192,11 +26177,11 @@ module.exports =
26192
26177
 
26193
26178
  'use strict';
26194
26179
  // 19.1.2.1 Object.assign(target, source, ...)
26195
- var getKeys = __webpack_require__(34)
26180
+ var getKeys = __webpack_require__(33)
26196
26181
  , gOPS = __webpack_require__(161)
26197
26182
  , pIE = __webpack_require__(163)
26198
- , toObject = __webpack_require__(37)
26199
- , IObject = __webpack_require__(32)
26183
+ , toObject = __webpack_require__(36)
26184
+ , IObject = __webpack_require__(31)
26200
26185
  , $assign = Object.assign;
26201
26186
 
26202
26187
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -28910,7 +28895,7 @@ module.exports =
28910
28895
 
28911
28896
  var _moment2 = _interopRequireDefault(_moment);
28912
28897
 
28913
- var _classnames = __webpack_require__(39);
28898
+ var _classnames = __webpack_require__(38);
28914
28899
 
28915
28900
  var _classnames2 = _interopRequireDefault(_classnames);
28916
28901
 
@@ -29096,7 +29081,7 @@ module.exports =
29096
29081
 
29097
29082
  var _reactDom2 = _interopRequireDefault(_reactDom);
29098
29083
 
29099
- var _classnames3 = __webpack_require__(39);
29084
+ var _classnames3 = __webpack_require__(38);
29100
29085
 
29101
29086
  var _classnames4 = _interopRequireDefault(_classnames3);
29102
29087
 
@@ -30595,7 +30580,7 @@ module.exports =
30595
30580
 
30596
30581
  var _react2 = _interopRequireDefault(_react);
30597
30582
 
30598
- var _propTypes = __webpack_require__(40);
30583
+ var _propTypes = __webpack_require__(39);
30599
30584
 
30600
30585
  var _propTypes2 = _interopRequireDefault(_propTypes);
30601
30586
 
@@ -30819,7 +30804,7 @@ module.exports =
30819
30804
 
30820
30805
  var _react2 = _interopRequireDefault(_react);
30821
30806
 
30822
- var _propTypes = __webpack_require__(40);
30807
+ var _propTypes = __webpack_require__(39);
30823
30808
 
30824
30809
  var _propTypes2 = _interopRequireDefault(_propTypes);
30825
30810