@lingk/sync 0.1.71 → 0.1.73

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
@@ -68,7 +68,7 @@ module.exports =
68
68
  /* 0 */
69
69
  /***/ function(module, exports, __webpack_require__) {
70
70
 
71
- module.exports = __webpack_require__(126);
71
+ module.exports = __webpack_require__(127);
72
72
 
73
73
 
74
74
  /***/ },
@@ -246,8 +246,10 @@ module.exports =
246
246
  function loadData(step, wizard, change, formValues, actions, isReverse) {
247
247
 
248
248
  var defaults = {
249
- sourceEndpoint: 'https://',
250
- destinationEndpoint: 'https://',
249
+ //sourceEndpoint: 'https://',
250
+ //destinationEndpoint: 'https://',
251
+ sourceCredentials: { rootUrl: 'https://' },
252
+ destinationCredentials: { rootUrl: 'https://' },
251
253
  title: step.name,
252
254
  direction: 'normal'
253
255
  };
@@ -498,6 +500,14 @@ module.exports =
498
500
  change('scenario', wizard.savedConfiguration['scenario']);
499
501
  }
500
502
 
503
+ if (wizard.savedConfiguration['environment'] && !formValues['environment']) {
504
+ change('environment', wizard.savedConfiguration['environment']);
505
+ }
506
+
507
+ if (wizard.savedConfiguration['batchSize'] && !formValues['batchSize']) {
508
+ change('batchSize', wizard.savedConfiguration['batchSize']);
509
+ }
510
+
501
511
  if (wizard.savedConfiguration['isBidirectional'] && !formValues['bidirectional'] && typeof formValues['bidirectional'] === 'undefined') {
502
512
  change('bidirectional', wizard.savedConfiguration['isBidirectional'] === 'true');
503
513
  }
@@ -506,13 +516,13 @@ module.exports =
506
516
  var modes = ['source', 'destination'];
507
517
  modes.forEach(function (mode) {
508
518
 
509
- if (!formValues[mode + 'Endpoint']) {
510
- if (wizard.savedConfiguration && wizard.savedConfiguration[mode + 'Endpoint']) {
511
- change(mode + 'Endpoint', wizard.savedConfiguration[mode + 'Endpoint']);
519
+ /*if(!formValues[`${mode}Endpoint`]){
520
+ if(wizard.savedConfiguration && wizard.savedConfiguration[`${mode}Endpoint`]){
521
+ change(`${mode}Endpoint`, wizard.savedConfiguration[`${mode}Endpoint`])
512
522
  } else {
513
- change(mode + 'Endpoint', defaults[mode + 'Endpoint']);
523
+ change(`${mode}Endpoint`, defaults[`${mode}Endpoint`])
514
524
  }
515
- }
525
+ }*/
516
526
 
517
527
  if (!formValues[mode + 'Credentials']) {
518
528
  if (wizard.savedCredentials && wizard.savedCredentials['' + mode]) {
@@ -521,6 +531,8 @@ module.exports =
521
531
  ClientSecret: wizard.savedCredentials[`${mode}`].secret,
522
532
  }*/
523
533
  change(mode + 'Credentials', wizard.savedCredentials['' + mode]);
534
+ } else {
535
+ change(mode + 'Credentials', defaults[mode + 'Credentials']);
524
536
  }
525
537
  }
526
538
  }); // end mode forEach
@@ -710,6 +722,140 @@ module.exports =
710
722
 
711
723
  /***/ },
712
724
  /* 23 */
725
+ /***/ function(module, exports, __webpack_require__) {
726
+
727
+ 'use strict';
728
+
729
+ Object.defineProperty(exports, "__esModule", {
730
+ value: true
731
+ });
732
+
733
+ 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; }; }();
734
+
735
+ var _react = __webpack_require__(1);
736
+
737
+ var _react2 = _interopRequireDefault(_react);
738
+
739
+ var _nestExpand = __webpack_require__(51);
740
+
741
+ var _nestExpand2 = _interopRequireDefault(_nestExpand);
742
+
743
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
744
+
745
+ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
746
+
747
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
748
+
749
+ 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; }
750
+
751
+ 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; }
752
+
753
+ var SelectWrapper = function (_Component) {
754
+ _inherits(SelectWrapper, _Component);
755
+
756
+ function SelectWrapper() {
757
+ _classCallCheck(this, SelectWrapper);
758
+
759
+ var _this = _possibleConstructorReturn(this, (SelectWrapper.__proto__ || Object.getPrototypeOf(SelectWrapper)).call(this));
760
+
761
+ _this.state = {
762
+ expanded: {}
763
+ };
764
+ _this.expand = _this.expand.bind(_this);
765
+ return _this;
766
+ }
767
+
768
+ _createClass(SelectWrapper, [{
769
+ key: 'expand',
770
+ value: function expand(v, parents) {
771
+ this.setState({ expanded: _nestExpand2.default.expand(v, parents, this.state.expanded) });
772
+ }
773
+ }, {
774
+ key: 'render',
775
+ value: function render() {
776
+ var _props = this.props,
777
+ values = _props.values,
778
+ inputs = _props.inputs,
779
+ selectedValues = _props.selectedValues,
780
+ sectionLabels = _props.sectionLabels,
781
+ fieldPropLabel = _props.fieldPropLabel;
782
+
783
+ var iterator = function (sectionValues, entity, sectionLabel, iteration, parents, newParent) {
784
+ if (newParent) {
785
+ parents = parents.concat(newParent);
786
+ }
787
+
788
+ var title = '';
789
+ parents && parents.forEach(function (pt) {
790
+ title += pt;
791
+ title += ': ';
792
+ });
793
+ title += entity[fieldPropLabel];
794
+
795
+ var isExpanded = _nestExpand2.default.checkIfExpanded(entity[fieldPropLabel], parents, this.state.expanded);
796
+ var isSelected = false;
797
+ isSelected = selectedValues && selectedValues.length > 0 && selectedValues.some(function (rsc) {
798
+ return rsc[fieldPropLabel] === entity[fieldPropLabel] && (!(parents && rsc.parents) || JSON.stringify(rsc.parents) === JSON.stringify(parents)) && (!rsc.section || sectionLabel === rsc.section);
799
+ });
800
+
801
+ sectionValues.push(Object.assign({}, entity, {
802
+ title: title,
803
+ section: sectionLabel,
804
+ iteration: iteration,
805
+ parents: parents,
806
+ isExpanded: isExpanded,
807
+ isSelected: isSelected
808
+ }));
809
+
810
+ if (entity.object && isExpanded) {
811
+ entity.object.properties.forEach(function (p) {
812
+ iterator(sectionValues, p, sectionLabel, iteration + 1, parents, entity[fieldPropLabel]);
813
+ });
814
+ }
815
+ return sectionValues;
816
+ }.bind(this);
817
+
818
+ var vals = [].concat(_toConsumableArray(values));
819
+ if (sectionLabels) {
820
+ var v = [];
821
+ sectionLabels.forEach(function (s, i) {
822
+ if (values[i] && values[i].length > 0) {
823
+ (function () {
824
+ v = v.concat(sectionLabels[i]);
825
+ var sectionValues = [];
826
+ values[i].forEach(function (entity) {
827
+ iterator(sectionValues, entity, sectionLabels[i], 0, []);
828
+ });
829
+ v = v.concat(sectionValues);
830
+ })();
831
+ }
832
+ });
833
+ vals = v;
834
+ } else {
835
+ (function () {
836
+ var sectionValues = [];
837
+ values.forEach(function (entity) {
838
+ iterator(sectionValues, entity, '', 0, []);
839
+ });
840
+ vals = sectionValues;
841
+ })();
842
+ }
843
+
844
+ return _react2.default.createElement(
845
+ 'div',
846
+ null,
847
+ _react2.default.createElement(inputs.Select, Object.assign({}, this.props, { vals: vals, expand: this.expand }))
848
+ );
849
+ }
850
+ }]);
851
+
852
+ return SelectWrapper;
853
+ }(_react.Component);
854
+
855
+ exports.default = SelectWrapper;
856
+
857
+ /***/ },
858
+ /* 24 */
713
859
  /***/ function(module, exports, __webpack_require__) {
714
860
 
715
861
  var global = __webpack_require__(6)
@@ -775,7 +921,7 @@ module.exports =
775
921
  module.exports = $export;
776
922
 
777
923
  /***/ },
778
- /* 24 */
924
+ /* 25 */
779
925
  /***/ function(module, exports, __webpack_require__) {
780
926
 
781
927
  var shared = __webpack_require__(35)('keys')
@@ -785,7 +931,7 @@ module.exports =
785
931
  };
786
932
 
787
933
  /***/ },
788
- /* 25 */
934
+ /* 26 */
789
935
  /***/ function(module, exports, __webpack_require__) {
790
936
 
791
937
  'use strict';
@@ -796,7 +942,7 @@ module.exports =
796
942
 
797
943
  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; };
798
944
 
799
- var _propertyUtils = __webpack_require__(169);
945
+ var _propertyUtils = __webpack_require__(170);
800
946
 
801
947
  var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
802
948
 
@@ -1348,7 +1494,7 @@ module.exports =
1348
1494
  module.exports = exports['default'];
1349
1495
 
1350
1496
  /***/ },
1351
- /* 26 */
1497
+ /* 27 */
1352
1498
  /***/ function(module, exports, __webpack_require__) {
1353
1499
 
1354
1500
  'use strict';
@@ -1365,11 +1511,11 @@ module.exports =
1365
1511
 
1366
1512
  var _propTypes2 = _interopRequireDefault(_propTypes);
1367
1513
 
1368
- var _TransitionGroup = __webpack_require__(202);
1514
+ var _TransitionGroup = __webpack_require__(203);
1369
1515
 
1370
1516
  var _TransitionGroup2 = _interopRequireDefault(_TransitionGroup);
1371
1517
 
1372
- var _CSSTransitionGroupChild = __webpack_require__(201);
1518
+ var _CSSTransitionGroupChild = __webpack_require__(202);
1373
1519
 
1374
1520
  var _CSSTransitionGroupChild2 = _interopRequireDefault(_CSSTransitionGroupChild);
1375
1521
 
@@ -1447,246 +1593,121 @@ module.exports =
1447
1593
  module.exports = exports['default'];
1448
1594
 
1449
1595
  /***/ },
1450
- /* 27 */
1451
- /***/ function(module, exports, __webpack_require__) {
1596
+ /* 28 */
1597
+ /***/ function(module, exports) {
1452
1598
 
1453
- 'use strict';
1599
+ var toString = {}.toString;
1454
1600
 
1455
- Object.defineProperty(exports, "__esModule", {
1456
- value: true
1457
- });
1601
+ module.exports = function(it){
1602
+ return toString.call(it).slice(8, -1);
1603
+ };
1604
+
1605
+ /***/ },
1606
+ /* 29 */
1607
+ /***/ function(module, exports, __webpack_require__) {
1608
+
1609
+ var isObject = __webpack_require__(14)
1610
+ , document = __webpack_require__(6).document
1611
+ // in old IE typeof document.createElement is 'object'
1612
+ , is = isObject(document) && isObject(document.createElement);
1613
+ module.exports = function(it){
1614
+ return is ? document.createElement(it) : {};
1615
+ };
1616
+
1617
+ /***/ },
1618
+ /* 30 */
1619
+ /***/ function(module, exports) {
1620
+
1621
+ // IE 8- don't enum bug keys
1622
+ module.exports = (
1623
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
1624
+ ).split(',');
1625
+
1626
+ /***/ },
1627
+ /* 31 */
1628
+ /***/ function(module, exports, __webpack_require__) {
1629
+
1630
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
1631
+ var cof = __webpack_require__(28);
1632
+ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
1633
+ return cof(it) == 'String' ? it.split('') : Object(it);
1634
+ };
1635
+
1636
+ /***/ },
1637
+ /* 32 */,
1638
+ /* 33 */
1639
+ /***/ function(module, exports, __webpack_require__) {
1640
+
1641
+ // 19.1.2.14 / 15.2.3.14 Object.keys(O)
1642
+ var $keys = __webpack_require__(46)
1643
+ , enumBugKeys = __webpack_require__(30);
1458
1644
 
1459
- 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; }; }();
1645
+ module.exports = Object.keys || function keys(O){
1646
+ return $keys(O, enumBugKeys);
1647
+ };
1648
+
1649
+ /***/ },
1650
+ /* 34 */
1651
+ /***/ function(module, exports) {
1652
+
1653
+ module.exports = function(bitmap, value){
1654
+ return {
1655
+ enumerable : !(bitmap & 1),
1656
+ configurable: !(bitmap & 2),
1657
+ writable : !(bitmap & 4),
1658
+ value : value
1659
+ };
1660
+ };
1661
+
1662
+ /***/ },
1663
+ /* 35 */
1664
+ /***/ function(module, exports, __webpack_require__) {
1665
+
1666
+ var global = __webpack_require__(6)
1667
+ , SHARED = '__core-js_shared__'
1668
+ , store = global[SHARED] || (global[SHARED] = {});
1669
+ module.exports = function(key){
1670
+ return store[key] || (store[key] = {});
1671
+ };
1672
+
1673
+ /***/ },
1674
+ /* 36 */
1675
+ /***/ function(module, exports, __webpack_require__) {
1676
+
1677
+ // 7.1.13 ToObject(argument)
1678
+ var defined = __webpack_require__(16);
1679
+ module.exports = function(it){
1680
+ return Object(defined(it));
1681
+ };
1682
+
1683
+ /***/ },
1684
+ /* 37 */
1685
+ /***/ function(module, exports) {
1686
+
1687
+ var id = 0
1688
+ , px = Math.random();
1689
+ module.exports = function(key){
1690
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1691
+ };
1692
+
1693
+ /***/ },
1694
+ /* 38 */
1695
+ /***/ function(module, exports, __webpack_require__) {
1696
+
1697
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
1698
+ Copyright (c) 2016 Jed Watson.
1699
+ Licensed under the MIT License (MIT), see
1700
+ http://jedwatson.github.io/classnames
1701
+ */
1702
+ /* global define */
1460
1703
 
1461
- var _react = __webpack_require__(1);
1704
+ (function () {
1705
+ 'use strict';
1462
1706
 
1463
- var _react2 = _interopRequireDefault(_react);
1707
+ var hasOwn = {}.hasOwnProperty;
1464
1708
 
1465
- var _nestExpand = __webpack_require__(51);
1466
-
1467
- var _nestExpand2 = _interopRequireDefault(_nestExpand);
1468
-
1469
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1470
-
1471
- function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
1472
-
1473
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1474
-
1475
- 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; }
1476
-
1477
- 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; }
1478
-
1479
- var SelectWrapper = function (_Component) {
1480
- _inherits(SelectWrapper, _Component);
1481
-
1482
- function SelectWrapper() {
1483
- _classCallCheck(this, SelectWrapper);
1484
-
1485
- var _this = _possibleConstructorReturn(this, (SelectWrapper.__proto__ || Object.getPrototypeOf(SelectWrapper)).call(this));
1486
-
1487
- _this.state = {
1488
- expanded: {}
1489
- };
1490
- _this.expand = _this.expand.bind(_this);
1491
- return _this;
1492
- }
1493
-
1494
- _createClass(SelectWrapper, [{
1495
- key: 'expand',
1496
- value: function expand(v, parents) {
1497
- this.setState({ expanded: _nestExpand2.default.expand(v, parents, this.state.expanded) });
1498
- }
1499
- }, {
1500
- key: 'render',
1501
- value: function render() {
1502
- var _props = this.props,
1503
- values = _props.values,
1504
- inputs = _props.inputs,
1505
- selectedValues = _props.selectedValues,
1506
- sectionLabels = _props.sectionLabels,
1507
- fieldPropLabel = _props.fieldPropLabel;
1508
-
1509
-
1510
- var iterator = function (sectionValues, entity, sectionLabel, iteration, parents, newParent) {
1511
-
1512
- if (newParent) {
1513
- parents = parents.concat(newParent);
1514
- }
1515
-
1516
- var title = '';
1517
- parents && parents.forEach(function (pt) {
1518
- title += pt;
1519
- title += ': ';
1520
- });
1521
- title += entity[fieldPropLabel];
1522
-
1523
- var isExpanded = _nestExpand2.default.checkIfExpanded(entity[fieldPropLabel], parents, this.state.expanded);
1524
-
1525
- sectionValues.push(Object.assign({}, entity, {
1526
- title: title,
1527
- section: sectionLabel,
1528
- iteration: iteration,
1529
- parents: parents,
1530
- isExpanded: isExpanded,
1531
- isSelected: selectedValues && selectedValues.length > 0 && selectedValues.some(function (rsc) {
1532
- return rsc[fieldPropLabel] === entity[fieldPropLabel] && (!(parents && rsc.parents) || JSON.stringify(rsc.parents) === JSON.stringify(parents)) && (!(sectionLabel && rsc.section) || sectionLabel === rsc.section);
1533
- })
1534
- }));
1535
- if (entity.object && isExpanded) {
1536
- entity.object.properties.forEach(function (p) {
1537
- iterator(sectionValues, p, sectionLabel, iteration + 1, parents, entity[fieldPropLabel]);
1538
- });
1539
- }
1540
- return sectionValues;
1541
- }.bind(this);
1542
-
1543
- var vals = [].concat(_toConsumableArray(values));
1544
- if (sectionLabels) {
1545
- var v = [];
1546
- sectionLabels.forEach(function (s, i) {
1547
- if (values[i] && values[i].length > 0) {
1548
- (function () {
1549
- v = v.concat(sectionLabels[i]);
1550
- var sectionValues = [];
1551
- values[i].forEach(function (entity) {
1552
- iterator(sectionValues, entity, sectionLabels[i], 0, []);
1553
- });
1554
- v = v.concat(sectionValues);
1555
- })();
1556
- }
1557
- });
1558
- vals = v;
1559
- }
1560
-
1561
- return _react2.default.createElement(
1562
- 'div',
1563
- null,
1564
- _react2.default.createElement(inputs.Select, Object.assign({}, this.props, { vals: vals, expand: this.expand }))
1565
- );
1566
- }
1567
- }]);
1568
-
1569
- return SelectWrapper;
1570
- }(_react.Component);
1571
-
1572
- exports.default = SelectWrapper;
1573
-
1574
- /***/ },
1575
- /* 28 */
1576
- /***/ function(module, exports) {
1577
-
1578
- var toString = {}.toString;
1579
-
1580
- module.exports = function(it){
1581
- return toString.call(it).slice(8, -1);
1582
- };
1583
-
1584
- /***/ },
1585
- /* 29 */
1586
- /***/ function(module, exports, __webpack_require__) {
1587
-
1588
- var isObject = __webpack_require__(14)
1589
- , document = __webpack_require__(6).document
1590
- // in old IE typeof document.createElement is 'object'
1591
- , is = isObject(document) && isObject(document.createElement);
1592
- module.exports = function(it){
1593
- return is ? document.createElement(it) : {};
1594
- };
1595
-
1596
- /***/ },
1597
- /* 30 */
1598
- /***/ function(module, exports) {
1599
-
1600
- // IE 8- don't enum bug keys
1601
- module.exports = (
1602
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
1603
- ).split(',');
1604
-
1605
- /***/ },
1606
- /* 31 */
1607
- /***/ function(module, exports, __webpack_require__) {
1608
-
1609
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
1610
- var cof = __webpack_require__(28);
1611
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
1612
- return cof(it) == 'String' ? it.split('') : Object(it);
1613
- };
1614
-
1615
- /***/ },
1616
- /* 32 */,
1617
- /* 33 */
1618
- /***/ function(module, exports, __webpack_require__) {
1619
-
1620
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
1621
- var $keys = __webpack_require__(46)
1622
- , enumBugKeys = __webpack_require__(30);
1623
-
1624
- module.exports = Object.keys || function keys(O){
1625
- return $keys(O, enumBugKeys);
1626
- };
1627
-
1628
- /***/ },
1629
- /* 34 */
1630
- /***/ function(module, exports) {
1631
-
1632
- module.exports = function(bitmap, value){
1633
- return {
1634
- enumerable : !(bitmap & 1),
1635
- configurable: !(bitmap & 2),
1636
- writable : !(bitmap & 4),
1637
- value : value
1638
- };
1639
- };
1640
-
1641
- /***/ },
1642
- /* 35 */
1643
- /***/ function(module, exports, __webpack_require__) {
1644
-
1645
- var global = __webpack_require__(6)
1646
- , SHARED = '__core-js_shared__'
1647
- , store = global[SHARED] || (global[SHARED] = {});
1648
- module.exports = function(key){
1649
- return store[key] || (store[key] = {});
1650
- };
1651
-
1652
- /***/ },
1653
- /* 36 */
1654
- /***/ function(module, exports, __webpack_require__) {
1655
-
1656
- // 7.1.13 ToObject(argument)
1657
- var defined = __webpack_require__(16);
1658
- module.exports = function(it){
1659
- return Object(defined(it));
1660
- };
1661
-
1662
- /***/ },
1663
- /* 37 */
1664
- /***/ function(module, exports) {
1665
-
1666
- var id = 0
1667
- , px = Math.random();
1668
- module.exports = function(key){
1669
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1670
- };
1671
-
1672
- /***/ },
1673
- /* 38 */
1674
- /***/ function(module, exports, __webpack_require__) {
1675
-
1676
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
1677
- Copyright (c) 2016 Jed Watson.
1678
- Licensed under the MIT License (MIT), see
1679
- http://jedwatson.github.io/classnames
1680
- */
1681
- /* global define */
1682
-
1683
- (function () {
1684
- 'use strict';
1685
-
1686
- var hasOwn = {}.hasOwnProperty;
1687
-
1688
- function classNames () {
1689
- var classes = [];
1709
+ function classNames () {
1710
+ var classes = [];
1690
1711
 
1691
1712
  for (var i = 0; i < arguments.length; i++) {
1692
1713
  var arg = arguments[i];
@@ -1755,7 +1776,7 @@ module.exports =
1755
1776
  } else {
1756
1777
  // By explicitly using `prop-types` you are opting into new production behavior.
1757
1778
  // http://fb.me/prop-types-in-prod
1758
- module.exports = __webpack_require__(175)();
1779
+ module.exports = __webpack_require__(176)();
1759
1780
  }
1760
1781
 
1761
1782
 
@@ -1781,6 +1802,7 @@ module.exports =
1781
1802
  var SET_WIZARD_OAUTH_URL = exports.SET_WIZARD_OAUTH_URL = 'SET_WIZARD_OAUTH_URL';
1782
1803
  var GETTING_WIZARD_OAUTH_URL = exports.GETTING_WIZARD_OAUTH_URL = 'GETTING_WIZARD_OAUTH_URL';
1783
1804
  var SET_WIZARD_SAVED_CREDENTIALS = exports.SET_WIZARD_SAVED_CREDENTIALS = 'SET_WIZARD_SAVED_CREDENTIALS';
1805
+ var SET_WIZARD_ENVIRONMENTS = exports.SET_WIZARD_ENVIRONMENTS = 'SET_WIZARD_ENVIRONMENTS';
1784
1806
 
1785
1807
  var CLEAR_WIZARD = exports.CLEAR_WIZARD = 'CLEAR_WIZARD';
1786
1808
 
@@ -1792,7 +1814,7 @@ module.exports =
1792
1814
 
1793
1815
  exports.__esModule = true;
1794
1816
 
1795
- var _assign = __webpack_require__(128);
1817
+ var _assign = __webpack_require__(129);
1796
1818
 
1797
1819
  var _assign2 = _interopRequireDefault(_assign);
1798
1820
 
@@ -1887,7 +1909,7 @@ module.exports =
1887
1909
  var has = __webpack_require__(17)
1888
1910
  , toIObject = __webpack_require__(20)
1889
1911
  , arrayIndexOf = __webpack_require__(43)(false)
1890
- , IE_PROTO = __webpack_require__(24)('IE_PROTO');
1912
+ , IE_PROTO = __webpack_require__(25)('IE_PROTO');
1891
1913
 
1892
1914
  module.exports = function(object, names){
1893
1915
  var O = toIObject(object)
@@ -1958,7 +1980,7 @@ module.exports =
1958
1980
 
1959
1981
  var _react2 = _interopRequireDefault(_react);
1960
1982
 
1961
- var _selectWrapper = __webpack_require__(27);
1983
+ var _selectWrapper = __webpack_require__(23);
1962
1984
 
1963
1985
  var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
1964
1986
 
@@ -2748,7 +2770,7 @@ module.exports =
2748
2770
 
2749
2771
  exports.__esModule = true;
2750
2772
 
2751
- var _defineProperty = __webpack_require__(129);
2773
+ var _defineProperty = __webpack_require__(130);
2752
2774
 
2753
2775
  var _defineProperty2 = _interopRequireDefault(_defineProperty);
2754
2776
 
@@ -2793,7 +2815,7 @@ module.exports =
2793
2815
  value: true
2794
2816
  });
2795
2817
 
2796
- var _utils = __webpack_require__(25);
2818
+ var _utils = __webpack_require__(26);
2797
2819
 
2798
2820
  var _utils2 = _interopRequireDefault(_utils);
2799
2821
 
@@ -2883,7 +2905,7 @@ module.exports =
2883
2905
  value: true
2884
2906
  });
2885
2907
 
2886
- var _objectWithoutProperties2 = __webpack_require__(131);
2908
+ var _objectWithoutProperties2 = __webpack_require__(132);
2887
2909
 
2888
2910
  var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
2889
2911
 
@@ -4719,7 +4741,7 @@ module.exports =
4719
4741
 
4720
4742
  var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject);
4721
4743
 
4722
- var _objectAssign = __webpack_require__(174);
4744
+ var _objectAssign = __webpack_require__(175);
4723
4745
 
4724
4746
  var _objectAssign2 = _interopRequireDefault(_objectAssign);
4725
4747
 
@@ -5094,11 +5116,14 @@ module.exports =
5094
5116
  exports.callGetPiConfig = callGetPiConfig;
5095
5117
  exports.tryGetMetadataIntro = tryGetMetadataIntro;
5096
5118
  exports.callGetCredentials = callGetCredentials;
5119
+ exports.getCredentialForEnvironment = getCredentialForEnvironment;
5097
5120
  exports.tryGetCredentials = tryGetCredentials;
5098
- exports.tryGetMetadata = tryGetMetadata;
5121
+ exports.tryGetMetadataReload = tryGetMetadataReload;
5099
5122
  exports.callGetBundles = callGetBundles;
5100
5123
  exports.callGetMapping = callGetMapping;
5101
5124
  exports.postCredentials = postCredentials;
5125
+ exports.getEnvironments = getEnvironments;
5126
+ exports.postEnvironment = postEnvironment;
5102
5127
  exports.callGetTrigger = callGetTrigger;
5103
5128
  exports.setWizardLoaded = setWizardLoaded;
5104
5129
  exports.setWizardDataLoaded = setWizardDataLoaded;
@@ -5118,20 +5143,30 @@ module.exports =
5118
5143
 
5119
5144
  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; } }
5120
5145
 
5121
- function callGetMetadata(tenantId, appId, mode, providerType, urlSuffix, apiUrl, endpoint, credsConfig, isFramework, creds) {
5146
+ function callGetMetadata(tenantId, appId, mode, providerType, urlSuffix, apiUrl, endpoint, credsConfig, isFramework, creds, environment, isReload) {
5147
+ var metadata = null;
5148
+ var isOauth = credsConfig && credsConfig[0] === 'Oauth';
5122
5149
  return function (dispatch) {
5123
5150
  dispatch({
5124
5151
  type: types.START_WIZARD_ENV_CHECK,
5125
5152
  mode: mode
5126
5153
  });
5127
- return dispatch(tryCheckConnection(tenantId, appId, providerType, credsConfig, isFramework, creds)).then(function (r) {
5128
- return dispatch(callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType, endpoint));
5154
+ return dispatch(tryCheckConnection(tenantId, appId, providerType, credsConfig, isFramework, creds, urlSuffix)).then(function (r) {
5155
+ return dispatch(callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType, endpoint, isOauth, environment.name));
5156
+ }).then(function (m) {
5157
+ metadata = m;
5158
+ var isIntro = endpoint === '_blank';
5159
+ var envId = environment.environmentId;
5160
+ if (isOauth || isIntro || isReload) return Promise.resolve(null);
5161
+ return dispatch(postCredentials(tenantId, appId, providerType, creds, mode, envId));
5129
5162
  }).then(function (res) {
5130
5163
  dispatch({
5131
5164
  type: types.FINISH_WIZARD_ENV_CHECK,
5132
- data: { res: res, mode: mode, code: '200 OK', providerType: providerType }
5165
+ data: { metadata: metadata, mode: mode, code: '200 OK', providerType: providerType }
5133
5166
  });
5167
+ return res;
5134
5168
  }).catch(function (err) {
5169
+ console.log(err);
5135
5170
  dispatch({
5136
5171
  type: types.FINISH_WIZARD_ENV_CHECK,
5137
5172
  data: { res: null, mode: mode, code: '404 Error', providerType: providerType }
@@ -5141,7 +5176,7 @@ module.exports =
5141
5176
  }
5142
5177
 
5143
5178
  // "fake" credentials for demo purposes
5144
- function demoCreds(creds, providerType) {
5179
+ function isDemoCreds(creds, providerType) {
5145
5180
  if (creds && providerType) {
5146
5181
  switch (providerType) {
5147
5182
  case 'Blackboard':
@@ -5156,40 +5191,55 @@ module.exports =
5156
5191
  } else return false;
5157
5192
  }
5158
5193
 
5159
- function tryCheckConnection(tenantId, appId, providerType, credsConfig, isFramework, creds) {
5194
+ function tryCheckConnection(tenantId, appId, providerType, credsConfig, isFramework, creds, urlSuffix) {
5160
5195
  return function (dispatch, getState, api) {
5161
- var needsCredentials = credsConfig && credsConfig.length > 0 && credsConfig[0] !== 'Oauth';
5196
+ var isOauth = credsConfig && credsConfig[0] === 'Oauth';
5197
+ var isAdapter = urlSuffix === 'testconnection' || urlSuffix === 'adaptermetadata';
5162
5198
 
5163
5199
  var _getState = getState(),
5164
5200
  config = _getState.config;
5165
5201
  // if demo creds are entered, skip this
5202
+ // ADD: OR IF adaptermetadata SKIP THIS
5166
5203
 
5167
5204
 
5168
- if (needsCredentials && !demoCreds(creds, providerType) && !isFramework) {
5205
+ if (!isOauth && !isAdapter && !isDemoCreds(creds, providerType)) {
5169
5206
  return api.post(tenantId + '/' + appId + '/testconnection/' + providerType.toLowerCase(), {
5170
- endpoint: config.TRANS_API_URL
5207
+ endpoint: config.TRANS_API_URL,
5208
+ data: {
5209
+ credentialType: providerType,
5210
+ credentialsJson: creds
5211
+ }
5171
5212
  });
5172
5213
  } else return Promise.resolve(null);
5173
5214
  };
5174
5215
  }
5175
5216
 
5176
- function callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType, endpoint) {
5217
+ function callGetProviderMetadata(tenantId, appId, urlSuffix, apiUrl, mode, providerType, endpoint, isOauth, envName) {
5177
5218
  return function (dispatch, getState, api) {
5178
5219
  var _getState2 = getState(),
5179
5220
  config = _getState2.config;
5180
- // 'testconnection ' GET route is for adapter only. Should be called 'metadata/adapter'
5221
+ // 'testconnection ' GET route is for adapter only. Should be called 'adaptermetadata'
5181
5222
 
5182
5223
 
5183
5224
  if (urlSuffix === 'testconnection') {
5184
5225
  urlSuffix = 'testconnection?url=' + endpoint;
5185
5226
  }
5186
- return api.get(tenantId + '/' + appId + '/' + urlSuffix, {
5187
- endpoint: config[apiUrl]
5188
- });
5227
+ if (urlSuffix === 'adaptermetadata') {
5228
+ urlSuffix = 'adaptermetadata?url=' + endpoint;
5229
+ }
5230
+ if (isOauth) {
5231
+ return api.get(tenantId + '/' + appId + '/environments/' + envName + '/' + urlSuffix, {
5232
+ endpoint: config[apiUrl]
5233
+ });
5234
+ } else {
5235
+ return api.get(tenantId + '/' + appId + '/' + urlSuffix, {
5236
+ endpoint: config[apiUrl]
5237
+ });
5238
+ }
5189
5239
  };
5190
5240
  }
5191
5241
 
5192
- function getOauthUrl(tenantId, appId, typeGuid, orgType, mode) {
5242
+ function getOauthUrl(tenantId, appId, typeGuid, orgType, mode, envName) {
5193
5243
  return function (dispatch, getState, api) {
5194
5244
  dispatch({
5195
5245
  type: types.GETTING_WIZARD_OAUTH_URL,
@@ -5200,9 +5250,10 @@ module.exports =
5200
5250
  var _getState3 = getState(),
5201
5251
  config = _getState3.config;
5202
5252
 
5203
- return api.get(tenantId + '/' + appId + '/oauthurl/' + typeGuid + '/' + orgType, {
5253
+ return api.get(tenantId + '/' + appId + '/environments/' + envName + '/oauthurl/' + typeGuid + '/' + orgType, {
5204
5254
  endpoint: config.SF_AGENT_API_URL
5205
5255
  }).then(function (data) {
5256
+ //console.log(data)
5206
5257
  dispatch({
5207
5258
  type: types.SET_WIZARD_OAUTH_URL,
5208
5259
  data: data.url
@@ -5213,7 +5264,7 @@ module.exports =
5213
5264
  };
5214
5265
  }
5215
5266
 
5216
- function createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata) {
5267
+ function createLingkExternalIds(tenantId, appId, bundles, mappings, metadata, envName) {
5217
5268
  return function (dispatch, getState, api) {
5218
5269
  var _getState4 = getState(),
5219
5270
  config = _getState4.config;
@@ -5223,7 +5274,7 @@ module.exports =
5223
5274
  bundles && bundles.filter(function (b) {
5224
5275
  return b.provider === 'Salesforce';
5225
5276
  }).forEach(function (b) {
5226
- var rsc = destinationMetadata.find(function (r) {
5277
+ var rsc = metadata.find(function (r) {
5227
5278
  return r.type === b.name;
5228
5279
  });
5229
5280
  var externalIdProp = rsc && rsc.properties && rsc.properties.find(function (p) {
@@ -5237,7 +5288,7 @@ module.exports =
5237
5288
 
5238
5289
  if (externalIdlessObjects.length > 0) {
5239
5290
  console.log('Adding Lingk External Id field to: ', externalIdlessObjects);
5240
- return api.post(tenantId + '/' + appId + '/salesforceschema/field', {
5291
+ return api.post(tenantId + '/' + appId + '/environments/' + envName + '/salesforceschema/field', {
5241
5292
  endpoint: config.SF_AGENT_API_URL,
5242
5293
  data: externalIdlessObjects.map(function (o) {
5243
5294
  return {
@@ -5252,12 +5303,12 @@ module.exports =
5252
5303
  };
5253
5304
  }
5254
5305
 
5255
- function callAddCustomField(tenantId, appId, objectType, fieldName, completedCallback) {
5306
+ function callAddCustomField(tenantId, appId, objectType, fieldName, completedCallback, envName) {
5256
5307
  return function (dispatch, getState, api) {
5257
5308
  var _getState5 = getState(),
5258
5309
  config = _getState5.config;
5259
5310
 
5260
- return api.post(tenantId + '/' + appId + '/salesforceschema/field', {
5311
+ return api.post(tenantId + '/' + appId + '/environments/' + envName + '/salesforceschema/field', {
5261
5312
  endpoint: config.SF_AGENT_API_URL,
5262
5313
  data: [{
5263
5314
  type: objectType,
@@ -5446,10 +5497,12 @@ module.exports =
5446
5497
  };
5447
5498
  }
5448
5499
 
5449
- function submitWizardData(tenantId, appId, bundles, mappings, configuration, title, deployment, typeId, typeGuid, piGuid, onPiPost, onGenerate, onFinish, sourceMetadata, destinationMetadata, isManagedPackage, onGenerationError) {
5500
+ function submitWizardData(tenantId, appId, bundles, mappings, configuration, title, deployment, typeId, typeGuid, piGuid, onPiPost, onGenerate, onFinish, sourceMetadata, destinationMetadata, isManagedPackage, onGenerationError, envName) {
5450
5501
  return function (dispatch) {
5451
5502
  var map = {};
5452
- return Promise.all([dispatch(callPostBundles(tenantId, appId, bundles, onGenerationError)), dispatch(callPostMapping(tenantId, appId, mappings, onGenerationError)), dispatch(createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata))]).then(function (r) {
5503
+ return Promise.all([dispatch(callPostBundles(tenantId, appId, bundles, onGenerationError)), dispatch(callPostMapping(tenantId, appId, mappings, onGenerationError)),
5504
+ // IF REVERSE USE CORRECT METADATA
5505
+ dispatch(createLingkExternalIds(tenantId, appId, bundles, mappings, destinationMetadata, envName))]).then(function (r) {
5453
5506
  map = r[1];
5454
5507
  var bundle = r[0];
5455
5508
  if (piGuid && piGuid !== '_') {
@@ -5539,7 +5592,6 @@ module.exports =
5539
5592
  }
5540
5593
 
5541
5594
  function callSaveTrigger(deployment, onFinish, generatedRecipe, pi) {
5542
- console.log(deployment);
5543
5595
  var triggerData = {
5544
5596
  baseid: generatedRecipe.BaseId,
5545
5597
  isrecurring: true
@@ -5590,6 +5642,7 @@ module.exports =
5590
5642
  type: types.SET_WIZARD_LOADED,
5591
5643
  bool: false
5592
5644
  });
5645
+ dispatch(getEnvironments(tenantId, accountId));
5593
5646
  dispatch(callGetPiConfig(tenantId, accountId, piGuid, wiz)).then(function () {
5594
5647
  setTimeout(function () {
5595
5648
  dispatch({
@@ -5616,19 +5669,19 @@ module.exports =
5616
5669
  }).then(function (pi) {
5617
5670
  var piconfig = pi.configuration;
5618
5671
  piconfig['title'] = pi.name;
5619
- var savedSourceEndpoint = null;
5620
- var savedDestinationEndpoint = null;
5621
- if (piconfig.hasOwnProperty('sourceEndpoint')) {
5622
- savedSourceEndpoint = piconfig.sourceEndpoint;
5623
- }
5624
- if (piconfig.hasOwnProperty('destinationEndpoint')) {
5625
- savedDestinationEndpoint = piconfig.destinationEndpoint;
5626
- }
5627
5672
  dispatch({
5628
5673
  type: types.SET_WIZARD_SAVED_CONFIGURATION,
5629
5674
  data: piconfig
5630
5675
  });
5631
- return Promise.all([dispatch(callGetMapping(tenantId, accountId, pi.schemaMappingGuid)), dispatch(callGetBundles(tenantId, accountId, pi.bundlePackGuid)), dispatch(callGetCredentials(tenantId, accountId, wiz)), dispatch(tryGetMetadata(tenantId, accountId, 'source', source, savedSourceEndpoint)), dispatch(tryGetMetadata(tenantId, accountId, 'destination', destination, savedDestinationEndpoint)), dispatch(callGetTrigger(pi.transformerBaseId))]);
5676
+ var envName = piconfig['environment'];
5677
+ return Promise.all([dispatch(callGetCredentials(tenantId, accountId, wiz, envName)), dispatch(callGetMapping(tenantId, accountId, pi.schemaMappingGuid)), dispatch(callGetBundles(tenantId, accountId, pi.bundlePackGuid)), dispatch(callGetTrigger(pi.transformerBaseId))]).then(function (res) {
5678
+ var creds = res[0];
5679
+ var sourceCreds = creds[0] && creds[0].credentialsJson;
5680
+ var destCreds = creds[1] && creds[1].credentialsJson;
5681
+ var savedSourceEndpoint = sourceCreds && sourceCreds.rootUrl;
5682
+ var savedDestinationEndpoint = destCreds && destCreds.rootUrl;
5683
+ return Promise.all([dispatch(tryGetMetadataReload(tenantId, accountId, 'source', source, savedSourceEndpoint, sourceCreds, envName)), dispatch(tryGetMetadataReload(tenantId, accountId, 'destination', destination, savedDestinationEndpoint, destCreds, envName))]);
5684
+ });
5632
5685
  });
5633
5686
  };
5634
5687
  } else return function (dispatch) {
@@ -5655,12 +5708,12 @@ module.exports =
5655
5708
  };
5656
5709
  }
5657
5710
 
5658
- function callGetCredentials(tenantId, appId, wiz) {
5711
+ function callGetCredentials(tenantId, appId, wiz, envName) {
5659
5712
  var source = wiz.source,
5660
5713
  destination = wiz.destination;
5661
5714
 
5662
5715
  return function (dispatch, getState, api) {
5663
- return Promise.all([dispatch(tryGetCredentials(tenantId, appId, source.type, source.credentials)), dispatch(tryGetCredentials(tenantId, appId, destination.type, destination.credentials))]).then(function (res) {
5716
+ return Promise.all([dispatch(tryGetCredentials(tenantId, appId, source.type, source.credentials, envName)), dispatch(tryGetCredentials(tenantId, appId, destination.type, destination.credentials, envName))]).then(function (res) {
5664
5717
  dispatch({
5665
5718
  type: types.SET_WIZARD_SAVED_CREDENTIALS,
5666
5719
  data: {
@@ -5668,24 +5721,39 @@ module.exports =
5668
5721
  destination: res[1] && res[1].credentialsJson
5669
5722
  }
5670
5723
  });
5724
+ return res;
5671
5725
  });
5672
5726
  };
5673
5727
  }
5674
5728
 
5675
- function tryGetCredentials(tenantId, appId, credentialType, credsConfig) {
5729
+ function getCredentialForEnvironment(tenantId, appId, credentialType, envName, mode) {
5676
5730
  return function (dispatch, getState, api) {
5731
+ if (mode) {
5732
+ dispatch({
5733
+ type: types.START_WIZARD_ENV_CHECK,
5734
+ mode: mode
5735
+ });
5736
+ }
5737
+
5677
5738
  var _getState19 = getState(),
5678
5739
  config = _getState19.config;
5679
5740
 
5680
- if (credsConfig && credsConfig.length > 0 && credsConfig[0] !== 'Oauth') {
5681
- return api.get(tenantId + '/' + appId + '/credentials/' + credentialType, {
5682
- endpoint: config.TRANS_API_URL
5683
- });
5741
+ return api.get(tenantId + '/' + appId + '/credentials/' + credentialType + '/' + envName, {
5742
+ endpoint: config.TRANS_API_URL
5743
+ });
5744
+ };
5745
+ }
5746
+
5747
+ function tryGetCredentials(tenantId, appId, credentialType, credsConfig, envName) {
5748
+ return function (dispatch, getState, api) {
5749
+ var isOauth = credsConfig && credsConfig.length === 1 && credsConfig[0] === 'Oauth';
5750
+ if (!isOauth) {
5751
+ return dispatch(getCredentialForEnvironment(tenantId, appId, credentialType, envName));
5684
5752
  } else return Promise.resolve(null);
5685
5753
  };
5686
5754
  }
5687
5755
 
5688
- function tryGetMetadata(tenantId, appId, mode, wiz, savedEndpoint) {
5756
+ function tryGetMetadataReload(tenantId, appId, mode, wiz, savedEndpoint, actualCreds, envName) {
5689
5757
  return function (dispatch, getState, api) {
5690
5758
  // if skipEnvStep (as in SF App), auto pull SF metadata
5691
5759
  var type = wiz.type,
@@ -5693,8 +5761,11 @@ module.exports =
5693
5761
  metadataEndpoint = wiz.metadataEndpoint,
5694
5762
  metadataApi = wiz.metadataApi;
5695
5763
 
5696
- if (savedEndpoint && savedEndpoint.length > 8 || wiz.skipEnvStep) {
5697
- return dispatch(callGetMetadata(tenantId, appId, mode, type, metadataEndpoint, metadataApi, savedEndpoint, credentials));
5764
+ var isOauth = credentials && credentials[0] === 'Oauth';
5765
+ if (savedEndpoint && savedEndpoint.length > 8 || isOauth) {
5766
+ var isReload = true;
5767
+ var environment = { name: envName };
5768
+ return dispatch(callGetMetadata(tenantId, appId, mode, type, metadataEndpoint, metadataApi, savedEndpoint, credentials, null, actualCreds, environment, isReload));
5698
5769
  } else return Promise.resolve(null);
5699
5770
  };
5700
5771
  }
@@ -5735,7 +5806,7 @@ module.exports =
5735
5806
  } else return Promise.resolve(null);
5736
5807
  }
5737
5808
 
5738
- function postCredentials(tenantId, appId, providerType, url, credentials, mode) {
5809
+ function postCredentials(tenantId, appId, providerType, credentials, mode, envId) {
5739
5810
  return function (dispatch, getState, api) {
5740
5811
  dispatch({
5741
5812
  type: types.START_WIZARD_ENV_CHECK,
@@ -5745,28 +5816,61 @@ module.exports =
5745
5816
  var _getState22 = getState(),
5746
5817
  config = _getState22.config;
5747
5818
 
5748
- return api.post(tenantId + '/' + appId + '/credentials', {
5819
+ return api.post(tenantId + '/' + appId + '/environments/' + envId + '/credentials', {
5749
5820
  endpoint: config.TRANS_API_URL,
5750
5821
  data: {
5751
5822
  credentialType: providerType,
5752
- credentialsJson: Object.assign({}, credentials, {
5753
- rootUrl: url
5754
- })
5823
+ credentialsJson: credentials
5755
5824
  }
5756
5825
  });
5757
5826
  };
5758
5827
  }
5759
5828
 
5760
- function callGetTrigger(transBaseId) {
5829
+ function getEnvironments(tenantId, appId) {
5761
5830
  return function (dispatch, getState, api) {
5762
5831
  var _getState23 = getState(),
5763
5832
  config = _getState23.config;
5764
5833
 
5765
- if (transBaseId) {
5766
- return api.get('gettrigger/' + transBaseId, {
5767
- endpoint: config.TRANS_API_URL
5768
- }).then(function (data) {
5769
- dispatch({
5834
+ return api.get(tenantId + '/' + appId + '/environments', {
5835
+ endpoint: config.TRANS_API_URL
5836
+ }).then(function (data) {
5837
+ dispatch({
5838
+ type: types.SET_WIZARD_ENVIRONMENTS,
5839
+ data: data.map(function (e) {
5840
+ return {
5841
+ environmentId: e.Id,
5842
+ name: e.Name
5843
+ };
5844
+ })
5845
+ });
5846
+ });
5847
+ };
5848
+ }
5849
+
5850
+ function postEnvironment(tenantId, appId, name) {
5851
+ return function (dispatch, getState, api) {
5852
+ var _getState24 = getState(),
5853
+ config = _getState24.config;
5854
+
5855
+ return api.post(tenantId + '/' + appId + '/environments', {
5856
+ endpoint: config.TRANS_API_URL,
5857
+ data: { name: name }
5858
+ }).then(function (res) {
5859
+ return dispatch(getEnvironments(tenantId, appId));
5860
+ });
5861
+ };
5862
+ }
5863
+
5864
+ function callGetTrigger(transBaseId) {
5865
+ return function (dispatch, getState, api) {
5866
+ var _getState25 = getState(),
5867
+ config = _getState25.config;
5868
+
5869
+ if (transBaseId) {
5870
+ return api.get('gettrigger/' + transBaseId, {
5871
+ endpoint: config.TRANS_API_URL
5872
+ }).then(function (data) {
5873
+ dispatch({
5770
5874
  type: types.SET_WIZARD_TRIGGER,
5771
5875
  data: data
5772
5876
  });
@@ -6236,7 +6340,7 @@ module.exports =
6236
6340
 
6237
6341
  var _react2 = _interopRequireDefault(_react);
6238
6342
 
6239
- var _selectWrapper = __webpack_require__(27);
6343
+ var _selectWrapper = __webpack_require__(23);
6240
6344
 
6241
6345
  var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
6242
6346
 
@@ -6671,122 +6775,529 @@ module.exports =
6671
6775
 
6672
6776
  var _react2 = _interopRequireDefault(_react);
6673
6777
 
6674
- var _CSSTransitionGroup = __webpack_require__(26);
6675
-
6676
- var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
6677
-
6678
- var _nestedField = __webpack_require__(122);
6679
-
6680
- var _nestedField2 = _interopRequireDefault(_nestedField);
6681
-
6682
6778
  var _reduxForm = __webpack_require__(2);
6683
6779
 
6684
6780
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6685
6781
 
6686
- function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
6687
-
6688
6782
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6689
6783
 
6690
6784
  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; }
6691
6785
 
6692
6786
  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; }
6693
6787
 
6694
- var MapAccordion = function (_React$Component) {
6695
- _inherits(MapAccordion, _React$Component);
6788
+ var EnvSection = function EnvSection(props) {
6789
+ var formValues = props.formValues,
6790
+ inputs = props.inputs,
6791
+ mode = props.mode,
6792
+ wizard = props.wizard,
6793
+ step = props.step,
6794
+ clickDirection = props.clickDirection,
6795
+ getOauthUrl = props.getOauthUrl,
6796
+ config = props.config,
6797
+ check = props.check,
6798
+ checking = props.checking;
6696
6799
 
6697
- function MapAccordion() {
6698
- _classCallCheck(this, MapAccordion);
6699
6800
 
6700
- var _this = _possibleConstructorReturn(this, (MapAccordion.__proto__ || Object.getPrototypeOf(MapAccordion)).call(this));
6801
+ if (config.skipEnvStep) return _react2.default.createElement(
6802
+ 'div',
6803
+ { className: 'env-section-body', style: { paddingBottom: 11 } },
6804
+ wizard[mode + 'Metadata'] ? _react2.default.createElement(
6805
+ 'span',
6806
+ null,
6807
+ 'Your Salesforce Org is connected. Click Inspect to explore your available Salesforce resources.'
6808
+ ) : _react2.default.createElement(
6809
+ 'span',
6810
+ null,
6811
+ 'Your Salesforce Org is not connected. Please revoke all Oauth grants and reauthorize this managed package.'
6812
+ )
6813
+ );
6814
+
6815
+ var Button = inputs.Button;
6816
+ var Spinner = inputs.Spinner;
6817
+
6818
+ var envCheckResult = wizard[mode + 'CheckResult'];
6819
+
6820
+ var hasEndpoint = formValues[mode + 'Credentials'] && formValues[mode + 'Credentials'].rootUrl && formValues[mode + 'Credentials'].rootUrl.length > 8;
6821
+
6822
+ // turns camel-case cred names into human-readable
6823
+ var unCamelize = function unCamelize(text) {
6824
+ return text.replace(/([A-Z])/g, ' $1').replace(/^./, function (str) {
6825
+ return str.toUpperCase();
6826
+ });
6827
+ };
6828
+
6829
+ var rootUrlkeyPress = function rootUrlkeyPress(e) {
6830
+ if (e.key === 'Enter' && checking !== true) {
6831
+ check(mode);
6832
+ }
6833
+ };
6834
+
6835
+ // all credential fields are filled
6836
+ var credsDisabledCheck = config.credentials && config.credentials.some(function (c) {
6837
+ var formCreds = formValues[mode + 'Credentials'];
6838
+ return !(formCreds && Object.keys(formCreds).includes(c.split(' ').join('')));
6839
+ });
6840
+
6841
+ var isOauth = config.credentials && config.credentials.length === 1 && config.credentials[0] === 'Oauth';
6842
+
6843
+ var isSFTP = config.credentials && config.credentials.length === 1 && config.credentials[0] === 'SFTP';
6844
+
6845
+ var POSTS = wizard[mode + 'Metadata'] && wizard[mode + 'Metadata'].filter(function (m) {
6846
+ return m.method === 'POST' || m.method === 'PUT';
6847
+ });
6848
+
6849
+ return _react2.default.createElement(
6850
+ 'div',
6851
+ { className: 'env-section-body' },
6852
+ config.message && _react2.default.createElement(
6853
+ 'p',
6854
+ null,
6855
+ config.message
6856
+ ),
6857
+ _react2.default.createElement('br', null),
6858
+ isOauth ? _react2.default.createElement(Oauth, { step: step, wizard: wizard, onCheck: check,
6859
+ onGenerateUrl: function onGenerateUrl(urlType) {
6860
+ return getOauthUrl(urlType, mode);
6861
+ },
6862
+ mode: mode, inputs: inputs, checking: checking }) : isSFTP ? _react2.default.createElement(SFTP, { step: step, wizard: wizard, onCheck: check, onPasteHeader: true,
6863
+ mode: mode, inputs: inputs, checking: checking }) : _react2.default.createElement(
6864
+ 'div',
6865
+ null,
6866
+ _react2.default.createElement(
6867
+ 'div',
6868
+ { style: { marginLeft: 16 } },
6869
+ _react2.default.createElement(
6870
+ 'div',
6871
+ null,
6872
+ _react2.default.createElement(
6873
+ 'div',
6874
+ { style: { display: 'inline-block', width: 300 } },
6875
+ _react2.default.createElement(_reduxForm.Field, { name: mode + 'Credentials.rootUrl', type: 'text', component: inputs.rfInput, label: 'Data Source Endpoint', onKeyPress: rootUrlkeyPress })
6876
+ ),
6877
+ _react2.default.createElement(
6878
+ Button,
6879
+ {
6880
+ icon: 'sync',
6881
+ iconAlign: 'left',
6882
+ onClick: function onClick() {
6883
+ return check(mode);
6884
+ },
6885
+ style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
6886
+ disabled: !hasEndpoint || credsDisabledCheck },
6887
+ 'Test Connection'
6888
+ ),
6889
+ _react2.default.createElement(
6890
+ 'div',
6891
+ { style: { display: 'inline-block', marginLeft: 12 } },
6892
+ checking && _react2.default.createElement(Spinner, null),
6893
+ envCheckResult && _react2.default.createElement(
6894
+ 'span',
6895
+ null,
6896
+ envCheckResult
6897
+ )
6898
+ )
6899
+ )
6900
+ ),
6901
+ config.credentials && _react2.default.createElement(
6902
+ 'div',
6903
+ { style: { marginLeft: 16 } },
6904
+ _react2.default.createElement('br', null),
6905
+ _react2.default.createElement(
6906
+ 'label',
6907
+ null,
6908
+ step[mode + 'Provider'],
6909
+ ' Credentials'
6910
+ ),
6911
+ _react2.default.createElement('br', null),
6912
+ _react2.default.createElement(
6913
+ 'div',
6914
+ { style: { display: 'inline-block', marginLeft: 16 } },
6915
+ config.credentials.map(function (cred, index) {
6916
+ return _react2.default.createElement(
6917
+ 'div',
6918
+ { key: index, style: { marginTop: 8 } },
6919
+ _react2.default.createElement(_reduxForm.Field, { name: mode + 'Credentials.' + cred,
6920
+ label: step[mode + 'Provider'] + ' ' + unCamelize(cred), type: 'text',
6921
+ component: inputs.rfInput })
6922
+ );
6923
+ })
6924
+ )
6925
+ )
6926
+ ),
6927
+ wizard[mode + 'Metadata'] && mode === 'source' && config.bidirectional && POSTS && POSTS.length > 0 && _react2.default.createElement(
6928
+ 'div',
6929
+ null,
6930
+ _react2.default.createElement('br', null),
6931
+ _react2.default.createElement(_reduxForm.Field, { name: 'direction', component: inputs.rfRadioGroup,
6932
+ label: 'Integration Direction',
6933
+ onClickOption: clickDirection,
6934
+ options: {
6935
+ 'normal': 'Read Data from ' + step[mode + 'Provider'],
6936
+ 'reverse': 'Write Data to ' + step[mode + 'Provider']
6937
+ }
6938
+ })
6939
+ ),
6940
+ config.type === 'Salesforce' && _react2.default.createElement(CustomSalesforceSettings, {
6941
+ inputs: inputs, formValues: formValues
6942
+ }),
6943
+ _react2.default.createElement('br', null)
6944
+ );
6945
+ };
6946
+
6947
+ var SFTP = function (_Component) {
6948
+ _inherits(SFTP, _Component);
6949
+
6950
+ function SFTP() {
6951
+ _classCallCheck(this, SFTP);
6952
+
6953
+ var _this = _possibleConstructorReturn(this, (SFTP.__proto__ || Object.getPrototypeOf(SFTP)).call(this));
6701
6954
 
6702
6955
  _this.state = {
6703
- selectedField: null,
6704
- selectedFieldParents: null,
6705
- customFieldValue: '',
6706
- addNewButtonText: 'Add New',
6707
- setDuplicateRules: false,
6708
- expanded: {}
6956
+ resources: []
6709
6957
  };
6710
- _this.onSelectDestinationField = _this.onSelectDestinationField.bind(_this);
6711
- _this.customize = _this.customize.bind(_this);
6712
- _this.submitCustomField = _this.submitCustomField.bind(_this);
6713
- _this.changeCustomFieldValue = _this.changeCustomFieldValue.bind(_this);
6714
- _this.completedCallback = _this.completedCallback.bind(_this);
6715
- _this.goLoading = _this.goLoading.bind(_this);
6716
6958
  return _this;
6717
6959
  }
6718
6960
 
6719
- _createClass(MapAccordion, [{
6720
- key: 'customize',
6721
- value: function customize(groupName) {
6722
- var _this2 = this;
6723
-
6724
- this.props.customize(groupName);
6725
- setTimeout(function () {
6726
- if (_this2.customFieldInput) {
6727
- _this2.customFieldInput.focus();
6961
+ _createClass(SFTP, [{
6962
+ key: 'pasteHeader',
6963
+ value: function pasteHeader(e) {
6964
+ e.clipboardData.items[0].getAsString(function (txt) {
6965
+ if (txt) {
6966
+ // split on tab (coming out of google sheets or excel... maybe check for commas too?)
6967
+ var rows = txt.split('\t');
6968
+ console.log(rows);
6728
6969
  }
6729
- }, 100);
6730
- }
6731
- }, {
6732
- key: 'changeCustomFieldValue',
6733
- value: function changeCustomFieldValue(e) {
6734
- var last = e.target.value[e.target.value.length - 1];
6735
- if (!(last === ' ' && (this.state.customFieldValue.length === 0 || this.state.customFieldValue[this.state.customFieldValue.length - 1] === ' '))) {
6736
- this.setState({ customFieldValue: e.target.value });
6737
- }
6738
- }
6739
- }, {
6740
- key: 'submitCustomField',
6741
- value: function submitCustomField() {
6742
- var _props = this.props,
6743
- destinationSchema = _props.destinationSchema,
6744
- customizingGroup = _props.customizingGroup,
6745
- actions = _props.actions;
6746
-
6747
- var fieldLabel = this.state.customFieldValue;
6748
- if (fieldLabel[fieldLabel.length - 1] === ' ') {
6749
- fieldLabel = fieldLabel.slice(0, -1);
6750
- }
6751
- var fieldName = fieldLabel.replace(' ', '_') + '__c';
6752
- var object = destinationSchema.find(function (o) {
6753
- return o.name === customizingGroup;
6754
6970
  });
6755
- actions.callAddCustomField(object.type, fieldName, this.completedCallback);
6756
- this.goLoading();
6757
6971
  }
6758
6972
  }, {
6759
- key: 'goLoading',
6760
- value: function goLoading() {
6761
- var _this3 = this;
6973
+ key: 'render',
6974
+ value: function render() {
6975
+ var inputs = this.props.inputs;
6762
6976
 
6763
- this.setState({ addNewButtonText: '.' });
6764
- this.loadingInterval = setInterval(function () {
6765
- if (_this3.state.addNewButtonText.length <= 10) {
6766
- _this3.setState({ addNewButtonText: _this3.state.addNewButtonText + '.' });
6767
- } else {
6768
- _this3.setState({ addNewButtonText: '.' });
6769
- }
6770
- }, 150);
6771
- }
6772
- }, {
6773
- key: 'completedCallback',
6774
- value: function completedCallback() {
6775
- this.setState({ customFieldValue: '', addNewButtonText: 'Add New' });
6776
- clearInterval(this.loadingInterval);
6977
+ var Textarea = inputs.Textarea;
6978
+ return _react2.default.createElement(
6979
+ 'div',
6980
+ null,
6981
+ 'Paste the Header Row of your CSV here, to',
6982
+ _react2.default.createElement('br', null),
6983
+ _react2.default.createElement(Textarea, { onPaste: this.pasteHeader })
6984
+ );
6777
6985
  }
6778
- }, {
6779
- key: 'scrollToTop',
6780
- value: function scrollToTop(element, scrollDuration, scrollTarget) {
6781
- var initial = element.scrollTop,
6782
- distance = scrollTarget - initial;
6783
- var step = distance / scrollDuration;
6784
- var scrollCount = initial,
6785
- count = scrollDuration;
6786
- function go(newTimestamp) {
6787
- scrollCount += step;
6788
- element.scrollTop = Math.round(scrollCount);
6789
- count--;
6986
+ }]);
6987
+
6988
+ return SFTP;
6989
+ }(_react.Component);
6990
+
6991
+ var Oauth = function Oauth(_ref) {
6992
+ var step = _ref.step,
6993
+ wizard = _ref.wizard,
6994
+ onGenerateUrl = _ref.onGenerateUrl,
6995
+ onCheck = _ref.onCheck,
6996
+ inputs = _ref.inputs,
6997
+ mode = _ref.mode,
6998
+ checking = _ref.checking;
6999
+
7000
+
7001
+ var startOauth = function startOauth() {
7002
+ console.log(wizard.oauthUrl);
7003
+ var width = 600;
7004
+ var height = 600;
7005
+ var left = window.screenX + (window.outerWidth - width) / 2;
7006
+ var top = window.screenY + (window.outerHeight - height) / 2.5;
7007
+ var popup = window.open(wizard.oauthUrl, 'Oauth', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left);
7008
+ popup.focus();
7009
+ };
7010
+
7011
+ return _react2.default.createElement(
7012
+ 'div',
7013
+ null,
7014
+ _react2.default.createElement(
7015
+ 'div',
7016
+ null,
7017
+ 'Are you connecting to a Sandbox or Production Org?'
7018
+ ),
7019
+ _react2.default.createElement(
7020
+ 'div',
7021
+ { style: { marginTop: 12 } },
7022
+ _react2.default.createElement(
7023
+ inputs.Button,
7024
+ { type: 'brand',
7025
+ onClick: function onClick() {
7026
+ return onGenerateUrl('sandbox');
7027
+ } },
7028
+ 'Sandbox'
7029
+ ),
7030
+ _react2.default.createElement(
7031
+ inputs.Button,
7032
+ { type: 'brand', style: { margin: '0 12px' },
7033
+ onClick: function onClick() {
7034
+ return onGenerateUrl('production');
7035
+ } },
7036
+ 'Production'
7037
+ ),
7038
+ wizard.gettingOauthUrl && _react2.default.createElement(inputs.Spinner, null),
7039
+ wizard.oauthUrl && _react2.default.createElement(
7040
+ 'div',
7041
+ null,
7042
+ _react2.default.createElement('br', null),
7043
+ _react2.default.createElement(
7044
+ 'div',
7045
+ null,
7046
+ _react2.default.createElement(
7047
+ 'strong',
7048
+ null,
7049
+ _react2.default.createElement(
7050
+ 'a',
7051
+ { onClick: startOauth },
7052
+ 'Click Here'
7053
+ )
7054
+ ),
7055
+ ' to authorize your ',
7056
+ step[mode + 'Provider'],
7057
+ ' Org.'
7058
+ ),
7059
+ _react2.default.createElement('br', null),
7060
+ _react2.default.createElement('br', null),
7061
+ _react2.default.createElement(
7062
+ 'div',
7063
+ null,
7064
+ _react2.default.createElement(
7065
+ 'span',
7066
+ null,
7067
+ 'After completing the authorization process: '
7068
+ ),
7069
+ _react2.default.createElement(
7070
+ inputs.Button,
7071
+ {
7072
+ icon: 'sync',
7073
+ iconAlign: 'left',
7074
+ onClick: function onClick() {
7075
+ return onCheck(mode);
7076
+ },
7077
+ style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' } },
7078
+ 'Test Connection'
7079
+ ),
7080
+ _react2.default.createElement(
7081
+ 'div',
7082
+ { style: { display: 'inline-block', marginLeft: 12 } },
7083
+ checking && _react2.default.createElement(inputs.Spinner, null),
7084
+ wizard[mode + 'CheckResult'] && _react2.default.createElement(
7085
+ 'span',
7086
+ null,
7087
+ wizard[mode + 'CheckResult']
7088
+ )
7089
+ )
7090
+ )
7091
+ )
7092
+ )
7093
+ );
7094
+ };
7095
+
7096
+ var CustomSalesforceSettings = function (_Component2) {
7097
+ _inherits(CustomSalesforceSettings, _Component2);
7098
+
7099
+ function CustomSalesforceSettings() {
7100
+ _classCallCheck(this, CustomSalesforceSettings);
7101
+
7102
+ var _this2 = _possibleConstructorReturn(this, (CustomSalesforceSettings.__proto__ || Object.getPrototypeOf(CustomSalesforceSettings)).call(this));
7103
+
7104
+ _this2.state = {
7105
+ custom: false
7106
+ };
7107
+ return _this2;
7108
+ }
7109
+
7110
+ _createClass(CustomSalesforceSettings, [{
7111
+ key: 'componentWillMount',
7112
+ value: function componentWillMount() {
7113
+ var formValues = this.props.formValues;
7114
+
7115
+ if (formValues && formValues.batchSize) {
7116
+ this.setState({ custom: true });
7117
+ }
7118
+ }
7119
+ }, {
7120
+ key: 'render',
7121
+ value: function render() {
7122
+ var _this3 = this;
7123
+
7124
+ var inputs = this.props.inputs;
7125
+ var Radio = inputs.Radio;
7126
+
7127
+
7128
+ return _react2.default.createElement(
7129
+ 'div',
7130
+ { style: { marginTop: 23 } },
7131
+ _react2.default.createElement(
7132
+ 'label',
7133
+ { className: 'labelz', style: { fontWeight: 'bold' } },
7134
+ 'Bulk Upload Batch Size:'
7135
+ ),
7136
+ _react2.default.createElement('br', null),
7137
+ _react2.default.createElement(Radio, { onChange: function onChange() {
7138
+ return _this3.setState({ custom: false });
7139
+ },
7140
+ label: 'Default Batch Size (10,000)',
7141
+ checked: this.state.custom === false,
7142
+ style: { cursor: 'pointer', fontWeight: 'normal' }
7143
+ }),
7144
+ _react2.default.createElement('br', null),
7145
+ _react2.default.createElement(Radio, { onChange: function onChange() {
7146
+ return _this3.setState({ custom: true });
7147
+ },
7148
+ label: 'Custom Batch Size',
7149
+ checked: this.state.custom === true,
7150
+ style: { cursor: 'pointer', fontWeight: 'normal' }
7151
+ }),
7152
+ this.state.custom === true && _react2.default.createElement(
7153
+ 'div',
7154
+ null,
7155
+ _react2.default.createElement('br', null),
7156
+ _react2.default.createElement(_reduxForm.Field, { name: 'batchSize', type: 'number', component: inputs.rfInput,
7157
+ label: 'Set Batch Size:', placeholder: 'Number of Records' })
7158
+ )
7159
+ );
7160
+ }
7161
+ }]);
7162
+
7163
+ return CustomSalesforceSettings;
7164
+ }(_react.Component);
7165
+
7166
+ exports.default = EnvSection;
7167
+
7168
+ /***/ },
7169
+ /* 106 */
7170
+ /***/ function(module, exports, __webpack_require__) {
7171
+
7172
+ 'use strict';
7173
+
7174
+ Object.defineProperty(exports, "__esModule", {
7175
+ value: true
7176
+ });
7177
+
7178
+ 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; }; }();
7179
+
7180
+ var _react = __webpack_require__(1);
7181
+
7182
+ var _react2 = _interopRequireDefault(_react);
7183
+
7184
+ var _CSSTransitionGroup = __webpack_require__(27);
7185
+
7186
+ var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
7187
+
7188
+ var _nestedField = __webpack_require__(123);
7189
+
7190
+ var _nestedField2 = _interopRequireDefault(_nestedField);
7191
+
7192
+ var _reduxForm = __webpack_require__(2);
7193
+
7194
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7195
+
7196
+ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
7197
+
7198
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7199
+
7200
+ 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; }
7201
+
7202
+ 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; }
7203
+
7204
+ var MapAccordion = function (_React$Component) {
7205
+ _inherits(MapAccordion, _React$Component);
7206
+
7207
+ function MapAccordion() {
7208
+ _classCallCheck(this, MapAccordion);
7209
+
7210
+ var _this = _possibleConstructorReturn(this, (MapAccordion.__proto__ || Object.getPrototypeOf(MapAccordion)).call(this));
7211
+
7212
+ _this.state = {
7213
+ selectedField: null,
7214
+ selectedFieldParents: null,
7215
+ customFieldValue: '',
7216
+ addNewButtonText: 'Add New',
7217
+ setDuplicateRules: false,
7218
+ expanded: {}
7219
+ };
7220
+ _this.onSelectDestinationField = _this.onSelectDestinationField.bind(_this);
7221
+ _this.customize = _this.customize.bind(_this);
7222
+ _this.submitCustomField = _this.submitCustomField.bind(_this);
7223
+ _this.changeCustomFieldValue = _this.changeCustomFieldValue.bind(_this);
7224
+ _this.completedCallback = _this.completedCallback.bind(_this);
7225
+ _this.goLoading = _this.goLoading.bind(_this);
7226
+ return _this;
7227
+ }
7228
+
7229
+ _createClass(MapAccordion, [{
7230
+ key: 'customize',
7231
+ value: function customize(groupName) {
7232
+ var _this2 = this;
7233
+
7234
+ this.props.customize(groupName);
7235
+ setTimeout(function () {
7236
+ if (_this2.customFieldInput) {
7237
+ _this2.customFieldInput.focus();
7238
+ }
7239
+ }, 100);
7240
+ }
7241
+ }, {
7242
+ key: 'changeCustomFieldValue',
7243
+ value: function changeCustomFieldValue(e) {
7244
+ var last = e.target.value[e.target.value.length - 1];
7245
+ if (!(last === ' ' && (this.state.customFieldValue.length === 0 || this.state.customFieldValue[this.state.customFieldValue.length - 1] === ' '))) {
7246
+ this.setState({ customFieldValue: e.target.value });
7247
+ }
7248
+ }
7249
+ }, {
7250
+ key: 'submitCustomField',
7251
+ value: function submitCustomField() {
7252
+ var _props = this.props,
7253
+ destinationSchema = _props.destinationSchema,
7254
+ customizingGroup = _props.customizingGroup,
7255
+ actions = _props.actions;
7256
+
7257
+ var fieldLabel = this.state.customFieldValue;
7258
+ if (fieldLabel[fieldLabel.length - 1] === ' ') {
7259
+ fieldLabel = fieldLabel.slice(0, -1);
7260
+ }
7261
+ var fieldName = fieldLabel.replace(' ', '_') + '__c';
7262
+ var object = destinationSchema.find(function (o) {
7263
+ return o.name === customizingGroup;
7264
+ });
7265
+ var ENVNAME = null;
7266
+ actions.callAddCustomField(object.type, fieldName, this.completedCallback, ENVNAME);
7267
+ this.goLoading();
7268
+ }
7269
+ }, {
7270
+ key: 'goLoading',
7271
+ value: function goLoading() {
7272
+ var _this3 = this;
7273
+
7274
+ this.setState({ addNewButtonText: '.' });
7275
+ this.loadingInterval = setInterval(function () {
7276
+ if (_this3.state.addNewButtonText.length <= 10) {
7277
+ _this3.setState({ addNewButtonText: _this3.state.addNewButtonText + '.' });
7278
+ } else {
7279
+ _this3.setState({ addNewButtonText: '.' });
7280
+ }
7281
+ }, 150);
7282
+ }
7283
+ }, {
7284
+ key: 'completedCallback',
7285
+ value: function completedCallback() {
7286
+ this.setState({ customFieldValue: '', addNewButtonText: 'Add New' });
7287
+ clearInterval(this.loadingInterval);
7288
+ }
7289
+ }, {
7290
+ key: 'scrollToTop',
7291
+ value: function scrollToTop(element, scrollDuration, scrollTarget) {
7292
+ var initial = element.scrollTop,
7293
+ distance = scrollTarget - initial;
7294
+ var step = distance / scrollDuration;
7295
+ var scrollCount = initial,
7296
+ count = scrollDuration;
7297
+ function go(newTimestamp) {
7298
+ scrollCount += step;
7299
+ element.scrollTop = Math.round(scrollCount);
7300
+ count--;
6790
7301
  if (count === 0) return;
6791
7302
  window.requestAnimationFrame(go);
6792
7303
  }
@@ -7121,7 +7632,7 @@ module.exports =
7121
7632
  exports.default = MapAccordion;
7122
7633
 
7123
7634
  /***/ },
7124
- /* 106 */
7635
+ /* 107 */
7125
7636
  /***/ function(module, exports, __webpack_require__) {
7126
7637
 
7127
7638
  'use strict';
@@ -7379,7 +7890,7 @@ module.exports =
7379
7890
  };
7380
7891
 
7381
7892
  /***/ },
7382
- /* 107 */
7893
+ /* 108 */
7383
7894
  /***/ function(module, exports, __webpack_require__) {
7384
7895
 
7385
7896
  'use strict';
@@ -7615,7 +8126,7 @@ module.exports =
7615
8126
  exports.default = ParameterModal;
7616
8127
 
7617
8128
  /***/ },
7618
- /* 108 */
8129
+ /* 109 */
7619
8130
  /***/ function(module, exports, __webpack_require__) {
7620
8131
 
7621
8132
  'use strict';
@@ -7630,7 +8141,7 @@ module.exports =
7630
8141
 
7631
8142
  var _react2 = _interopRequireDefault(_react);
7632
8143
 
7633
- var _CSSTransitionGroup = __webpack_require__(26);
8144
+ var _CSSTransitionGroup = __webpack_require__(27);
7634
8145
 
7635
8146
  var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
7636
8147
 
@@ -7640,15 +8151,15 @@ module.exports =
7640
8151
 
7641
8152
  var _reduxForm = __webpack_require__(2);
7642
8153
 
7643
- var _joinVenn = __webpack_require__(121);
8154
+ var _joinVenn = __webpack_require__(122);
7644
8155
 
7645
8156
  var _joinVenn2 = _interopRequireDefault(_joinVenn);
7646
8157
 
7647
- var _selectWrapper = __webpack_require__(27);
8158
+ var _selectWrapper = __webpack_require__(23);
7648
8159
 
7649
8160
  var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
7650
8161
 
7651
- var _parameterModal = __webpack_require__(107);
8162
+ var _parameterModal = __webpack_require__(108);
7652
8163
 
7653
8164
  var _parameterModal2 = _interopRequireDefault(_parameterModal);
7654
8165
 
@@ -8280,7 +8791,7 @@ module.exports =
8280
8791
  exports.default = SchemaAccordion;
8281
8792
 
8282
8793
  /***/ },
8283
- /* 109 */
8794
+ /* 110 */
8284
8795
  /***/ function(module, exports, __webpack_require__) {
8285
8796
 
8286
8797
  'use strict';
@@ -8297,7 +8808,7 @@ module.exports =
8297
8808
 
8298
8809
  var _reduxForm = __webpack_require__(2);
8299
8810
 
8300
- var _selectWrapper = __webpack_require__(27);
8811
+ var _selectWrapper = __webpack_require__(23);
8301
8812
 
8302
8813
  var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
8303
8814
 
@@ -8797,7 +9308,7 @@ module.exports =
8797
9308
  exports.default = TransformModal;
8798
9309
 
8799
9310
  /***/ },
8800
- /* 110 */
9311
+ /* 111 */
8801
9312
  /***/ function(module, exports, __webpack_require__) {
8802
9313
 
8803
9314
  'use strict';
@@ -9000,7 +9511,7 @@ module.exports =
9000
9511
  })(AdapterStep);
9001
9512
 
9002
9513
  /***/ },
9003
- /* 111 */
9514
+ /* 112 */
9004
9515
  /***/ function(module, exports, __webpack_require__) {
9005
9516
 
9006
9517
  'use strict';
@@ -9033,11 +9544,11 @@ module.exports =
9033
9544
 
9034
9545
  var _moment2 = _interopRequireDefault(_moment);
9035
9546
 
9036
- __webpack_require__(210);
9547
+ __webpack_require__(211);
9037
9548
 
9038
- __webpack_require__(170);
9549
+ __webpack_require__(171);
9039
9550
 
9040
- var _rcTimePicker = __webpack_require__(191);
9551
+ var _rcTimePicker = __webpack_require__(192);
9041
9552
 
9042
9553
  var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker);
9043
9554
 
@@ -9248,7 +9759,7 @@ module.exports =
9248
9759
  })(DeployStep);
9249
9760
 
9250
9761
  /***/ },
9251
- /* 112 */
9762
+ /* 113 */
9252
9763
  /***/ function(module, exports, __webpack_require__) {
9253
9764
 
9254
9765
  'use strict';
@@ -9279,12 +9790,22 @@ module.exports =
9279
9790
 
9280
9791
  var _previewTabContent = __webpack_require__(52);
9281
9792
 
9282
- var _CSSTransitionGroup = __webpack_require__(26);
9793
+ var _CSSTransitionGroup = __webpack_require__(27);
9283
9794
 
9284
9795
  var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
9285
9796
 
9797
+ var _selectWrapper = __webpack_require__(23);
9798
+
9799
+ var _selectWrapper2 = _interopRequireDefault(_selectWrapper);
9800
+
9801
+ var _envSections = __webpack_require__(105);
9802
+
9803
+ var _envSections2 = _interopRequireDefault(_envSections);
9804
+
9286
9805
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9287
9806
 
9807
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9808
+
9288
9809
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9289
9810
 
9290
9811
  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; }
@@ -9300,17 +9821,34 @@ module.exports =
9300
9821
  var _this = _possibleConstructorReturn(this, (EnvStep.__proto__ || Object.getPrototypeOf(EnvStep)).call(this));
9301
9822
 
9302
9823
  _this.state = {
9303
- showCreds: null
9824
+ selectedProvider: null,
9825
+ sourceEnvChecking: null,
9826
+ destinationEnvChecking: null,
9827
+ savingEnv: false,
9828
+ selectedEnvironment: null,
9829
+ newEnvName: ''
9304
9830
  };
9305
9831
  _this.check = _this.check.bind(_this);
9306
9832
  _this.seeFields = _this.seeFields.bind(_this);
9307
- _this.startOauth = _this.startOauth.bind(_this);
9308
9833
  _this.getOauthUrl = _this.getOauthUrl.bind(_this);
9309
9834
  _this.clickDirection = _this.clickDirection.bind(_this);
9835
+ _this.selectProvider = _this.selectProvider.bind(_this);
9836
+ //this.saveEnvironment = this.saveEnvironment.bind(this)
9837
+ _this.selectEnvironment = _this.selectEnvironment.bind(_this);
9838
+ _this.tryGetCredentialAndCheck = _this.tryGetCredentialAndCheck.bind(_this);
9839
+ _this.createEnvironment = _this.createEnvironment.bind(_this);
9840
+ _this.changeEnvName = _this.changeEnvName.bind(_this);
9310
9841
  return _this;
9311
9842
  }
9312
9843
 
9313
9844
  _createClass(EnvStep, [{
9845
+ key: 'changeEnvName',
9846
+ value: function changeEnvName(e) {
9847
+ if (/^$|^[a-z0-9_-]+$/i.test(e.target.value)) {
9848
+ this.setState({ newEnvName: e.target.value });
9849
+ }
9850
+ }
9851
+ }, {
9314
9852
  key: 'seeFields',
9315
9853
  value: function seeFields(target, mode) {
9316
9854
  var _props = this.props,
@@ -9320,7 +9858,7 @@ module.exports =
9320
9858
  step = _props.step,
9321
9859
  configUrls = _props.configUrls;
9322
9860
 
9323
- var endpoint = formValues[mode + 'Endpoint'];
9861
+ var endpoint = formValues[mode + 'Credentials'].rootUrl;
9324
9862
  var x = window.open();
9325
9863
  x.document.open('', '_blank');
9326
9864
  x.document.write((0, _previewTabContent.makeContent)(configUrls.TRANS_API_URL, tenantId, accountId, endpoint, target.endpointSuffix, target.name, step.previewToken));
@@ -9344,41 +9882,36 @@ module.exports =
9344
9882
  }
9345
9883
  }, {
9346
9884
  key: 'check',
9347
- value: function check(mode) {
9885
+ value: function check(mode, environment) {
9886
+ var _this2 = this;
9887
+
9348
9888
  var _props3 = this.props,
9349
9889
  actions = _props3.actions,
9350
9890
  tenantId = _props3.tenantId,
9351
9891
  accountId = _props3.accountId,
9352
9892
  formValues = _props3.formValues,
9353
9893
  step = _props3.step,
9354
- change = _props3.change;
9894
+ change = _props3.change,
9895
+ wizard = _props3.wizard;
9355
9896
 
9356
9897
  var config = step[mode + 'Config'];
9357
- var endpoint = formValues[mode + 'Endpoint'];
9358
9898
  var credentials = formValues[mode + 'Credentials'];
9899
+ var endpoint = credentials && credentials.rootUrl;
9359
9900
  //remove trailing slash if exists
9360
9901
  if (endpoint && endpoint[endpoint.length - 1] === '/' && endpoint.length > 8) {
9361
9902
  endpoint = endpoint.slice(0, -1);
9362
- change(mode + 'Endpoint', endpoint);
9903
+ change(mode + 'Credentials.rootUrl', endpoint);
9363
9904
  }
9364
9905
 
9365
- if (credentials) {
9366
- actions.postCredentials(tenantId, accountId, step[mode + 'Provider'], endpoint, credentials, mode).then(function () {
9367
- actions.callGetMetadata(tenantId, accountId, mode, step[mode + 'Provider'], config.metadataEndpoint, config.metadataApi, endpoint || '_blank', config.credentials, config.isFramework, credentials);
9368
- });
9369
- } else {
9370
- actions.callGetMetadata(tenantId, accountId, mode, step[mode + 'Provider'], config.metadataEndpoint, config.metadataApi, endpoint || '_blank', config.credentials, config.isFramework, null);
9371
- }
9372
- }
9373
- }, {
9374
- key: 'startOauth',
9375
- value: function startOauth() {
9376
- var width = 600;
9377
- var height = 600;
9378
- var left = window.screenX + (window.outerWidth - width) / 2;
9379
- var top = window.screenY + (window.outerHeight - height) / 2.5;
9380
- var popup = window.open(this.props.wizard.oauthUrl, 'Oauth', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left);
9381
- popup.focus();
9906
+ var env = environment || wizard.environments.find(function (e) {
9907
+ return e.name === formValues['environment'];
9908
+ });
9909
+
9910
+ this.setState(_defineProperty({}, mode + 'EnvChecking', true));
9911
+
9912
+ actions.callGetMetadata(tenantId, accountId, mode, step[mode + 'Provider'], config.metadataEndpoint, config.metadataApi, endpoint || '_blank', config.credentials, step.isFramework, credentials, env).then(function () {
9913
+ _this2.setState(_defineProperty({}, mode + 'EnvChecking', false));
9914
+ });
9382
9915
  }
9383
9916
  }, {
9384
9917
  key: 'getOauthUrl',
@@ -9387,9 +9920,11 @@ module.exports =
9387
9920
  actions = _props4.actions,
9388
9921
  tenantId = _props4.tenantId,
9389
9922
  accountId = _props4.accountId,
9390
- step = _props4.step;
9923
+ step = _props4.step,
9924
+ formValues = _props4.formValues;
9391
9925
 
9392
- actions.getOauthUrl(tenantId, accountId, step.typeGuid, type, mode);
9926
+ var envName = formValues['environment'];
9927
+ actions.getOauthUrl(tenantId, accountId, step.typeGuid, type, mode, envName);
9393
9928
  }
9394
9929
  }, {
9395
9930
  key: 'clickDirection',
@@ -9405,377 +9940,377 @@ module.exports =
9405
9940
  }
9406
9941
  }
9407
9942
  }, {
9408
- key: 'render',
9409
- value: function render() {
9410
- var _this2 = this;
9411
-
9412
- var _props6 = this.props,
9413
- inputs = _props6.inputs,
9414
- step = _props6.step,
9415
- handleSubmit = _props6.handleSubmit,
9416
- nav = _props6.nav,
9417
- reset = _props6.reset,
9418
- wizard = _props6.wizard,
9419
- formValues = _props6.formValues;
9943
+ key: 'selectProvider',
9944
+ value: function selectProvider(provider) {
9945
+ var selectedProvider = this.state.selectedProvider;
9420
9946
 
9421
- var modes = ['source', 'destination'];
9422
- return _react2.default.createElement(
9423
- 'form',
9424
- { onKeyPress: function onKeyPress(e) {
9425
- return e.charCode === 13 ? e.preventDefault() : null;
9426
- } },
9427
- _react2.default.createElement(
9428
- 'div',
9429
- { style: { fontSize: 20, display: 'inline-block' } },
9430
- 'Connect to Data Environments'
9431
- ),
9432
- _react2.default.createElement('br', null),
9433
- _react2.default.createElement('br', null),
9434
- modes.map(function (m) {
9435
- return _react2.default.createElement(
9436
- 'div',
9437
- null,
9438
- _react2.default.createElement(
9439
- 'div',
9440
- { onClick: function onClick() {
9441
- return _this2.setState({ showSourceCreds: !_this2.state.showSourceCreds });
9442
- } },
9443
- 'PeopleSoft'
9444
- ),
9445
- _react2.default.createElement(
9446
- _CSSTransitionGroup2.default,
9447
- { transitionName: 'env-creds',
9448
- transitionEnterTimeout: 250, transitionLeaveTimeout: 250 },
9449
- _this2.state.showSourceCreds && _react2.default.createElement(
9450
- 'div',
9451
- { className: 'env-creds' },
9452
- _react2.default.createElement(EnvSection, { config: step[m + 'Config'], mode: m, key: m,
9453
- wizard: wizard, getOauthUrl: _this2.getOauthUrl, formValues: formValues,
9454
- clickDirection: _this2.clickDirection, inputs: inputs, step: step,
9455
- seeFields: _this2.seeFields, check: _this2.check, startOauth: _this2.startOauth })
9456
- )
9457
- )
9458
- );
9459
- }),
9460
- _react2.default.createElement(_navButtons2.default, { nextDisabled: !wizard['sourceMetadata'] || !wizard['destinationMetadata'],
9461
- handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
9462
- _react2.default.createElement('br', null),
9463
- _react2.default.createElement('br', null)
9464
- );
9947
+ this.setState({ selectedProvider: provider === selectedProvider ? null : provider });
9465
9948
  }
9466
- }]);
9467
-
9468
- return EnvStep;
9469
- }(_react.Component);
9949
+ }, {
9950
+ key: 'createEnvironment',
9951
+ value: function createEnvironment(envName) {
9952
+ var _this3 = this;
9470
9953
 
9471
- var EnvSection = function EnvSection(props) {
9472
- var formValues = props.formValues,
9473
- inputs = props.inputs,
9474
- mode = props.mode,
9475
- wizard = props.wizard,
9476
- step = props.step,
9477
- clickDirection = props.clickDirection,
9478
- getOauthUrl = props.getOauthUrl,
9479
- config = props.config,
9480
- seeFields = props.seeFields,
9481
- check = props.check,
9482
- startOauth = props.startOauth;
9954
+ var _props6 = this.props,
9955
+ actions = _props6.actions,
9956
+ tenantId = _props6.tenantId,
9957
+ accountId = _props6.accountId;
9958
+
9959
+ this.setState({ savingEnv: true });
9960
+ actions.postEnvironment(tenantId, accountId, envName).then(function (res) {
9961
+ _this3.setState({ savingEnv: false, newEnvName: '' });
9962
+ _this3.props.change('environment', envName);
9963
+ _this3.envNameInput.blur();
9964
+ });
9965
+ }
9483
9966
 
9967
+ /*saveEnvironment(envName){
9968
+ const { actions, tenantId, accountId, formValues, step } = this.props
9969
+ const mode = 'source'
9970
+ const credentials = formValues[`${mode}Credentials`]
9971
+ let endpoint = credentials.rootUrl
9972
+ if(endpoint && endpoint[endpoint.length-1]==='/' && endpoint.length>8){
9973
+ endpoint = endpoint.slice(0, -1);
9974
+ }
9975
+ this.setState({savingEnv:true})
9976
+ actions.postEnvironment(tenantId, accountId, envName, step[`${mode}Provider`], endpoint,
9977
+ credentials)
9978
+ .then(savedEnvName=>{
9979
+ this.props.change('environment', savedEnvName)
9980
+ this.setState({savingEnv:false})
9981
+ })
9982
+ }*/
9484
9983
 
9485
- if (config.skipEnvStep) return _react2.default.createElement('div', null);
9984
+ }, {
9985
+ key: 'selectEnvironment',
9986
+ value: function selectEnvironment(v, i, env) {
9987
+ this.props.change('environment', env.name);
9988
+ if (env.environmentId > -1) {
9989
+ this.tryGetCredentialAndCheck('source', env);
9990
+ this.tryGetCredentialAndCheck('destination', env);
9991
+ }
9992
+ }
9993
+ }, {
9994
+ key: 'tryGetCredentialAndCheck',
9995
+ value: function tryGetCredentialAndCheck(m, env) {
9996
+ var _this4 = this;
9486
9997
 
9487
- var Button = inputs.Button;
9488
- var Spinner = inputs.Spinner;
9998
+ var _props7 = this.props,
9999
+ step = _props7.step,
10000
+ actions = _props7.actions,
10001
+ tenantId = _props7.tenantId,
10002
+ accountId = _props7.accountId,
10003
+ change = _props7.change;
10004
+
10005
+ var config = step[m + 'Config'];
10006
+ var credentials = config.credentials;
10007
+ //dont load creds for oauth, since there are none
10008
+
10009
+ var isOauth = credentials && credentials.length === 1 && credentials[0] === 'Oauth';
10010
+ this.setState(_defineProperty({}, m + 'EnvChecking', true));
10011
+ if (!isOauth) {
10012
+ actions.getCredentialForEnvironment(tenantId, accountId, step[m + 'Provider'], env.name, m).then(function (cred) {
10013
+ if (cred && cred.credentialsJson && cred.credentialsJson.rootUrl) {
10014
+ (function () {
10015
+ var modeCreds = {};
10016
+ modeCreds['rootUrl'] = cred.credentialsJson.rootUrl;
10017
+ credentials && credentials.length > 0 && credentials.forEach(function (credType) {
10018
+ if (cred.credentialsJson[credType]) {
10019
+ modeCreds[credType] = cred.credentialsJson[credType];
10020
+ }
10021
+ });
10022
+ change(m + 'Credentials', modeCreds);
10023
+ _this4.check(m, env);
10024
+ })();
10025
+ }
10026
+ }).catch(function (err) {
10027
+ _this4.setState(_defineProperty({}, m + 'EnvChecking', false));
10028
+ });
10029
+ // if oauth, just go ahead and check
10030
+ } else {
10031
+ this.check(m, env);
10032
+ }
10033
+ }
10034
+ }, {
10035
+ key: 'render',
10036
+ value: function render() {
10037
+ var _this5 = this;
9489
10038
 
9490
- var envCheckResult = wizard[mode + 'CheckResult'];
10039
+ var _props8 = this.props,
10040
+ inputs = _props8.inputs,
10041
+ step = _props8.step,
10042
+ handleSubmit = _props8.handleSubmit,
10043
+ nav = _props8.nav,
10044
+ reset = _props8.reset,
10045
+ wizard = _props8.wizard,
10046
+ formValues = _props8.formValues;
9491
10047
 
9492
- var POSTS = wizard[mode + 'Metadata'] && wizard[mode + 'Metadata'].filter(function (m) {
9493
- return m.method === 'POST' || m.method === 'PUT';
9494
- });
10048
+ var modes = ['source', 'destination'];
10049
+ var _state = this.state,
10050
+ selectedProvider = _state.selectedProvider,
10051
+ newEnvName = _state.newEnvName;
9495
10052
 
9496
- var hasEndpoint = formValues[mode + 'Endpoint'] && formValues[mode + 'Endpoint'].length > 8;
10053
+ var Button = inputs.Button;
10054
+ var Input = inputs.Input;
9497
10055
 
9498
- var isOauth = config.credentials && config.credentials.length === 1 && config.credentials[0] === 'Oauth';
10056
+ var notAllMetadata = !(wizard['sourceMetadata'] && wizard['sourceMetadata'].length > 0) || !(wizard['destinationMetadata'] && wizard['destinationMetadata'].length > 0);
9499
10057
 
9500
- // turns camel-case cred names into human-readable
9501
- var unCamelize = function unCamelize(text) {
9502
- return text.replace(/([A-Z])/g, ' $1').replace(/^./, function (str) {
9503
- return str.toUpperCase();
9504
- });
9505
- };
10058
+ var disableCreateEnv = true;
10059
+ if (wizard.environments && wizard.environments.length > 0 && newEnvName) {
10060
+ disableCreateEnv = wizard.environments.find(function (o) {
10061
+ return o.name === newEnvName;
10062
+ }) ? true : false;
10063
+ }
9506
10064
 
9507
- return _react2.default.createElement(
9508
- 'div',
9509
- null,
9510
- config.message && _react2.default.createElement(
9511
- 'p',
9512
- null,
9513
- config.message
9514
- ),
9515
- _react2.default.createElement('br', null),
9516
- isOauth ? _react2.default.createElement(Oauth, { step: step, wizard: wizard, onCheck: check, onStart: startOauth,
9517
- onSandbox: function onSandbox() {
9518
- return getOauthUrl('sandbox', mode);
9519
- }, onProd: function onProd() {
9520
- return getOauthUrl('production', mode);
9521
- },
9522
- mode: mode, inputs: inputs }) : _react2.default.createElement(
9523
- 'div',
9524
- null,
9525
- _react2.default.createElement(
9526
- 'div',
9527
- { style: { marginLeft: 16 } },
10065
+ return _react2.default.createElement(
10066
+ 'form',
10067
+ { onKeyPress: function onKeyPress(e) {
10068
+ return e.charCode === 13 ? e.preventDefault() : null;
10069
+ } },
9528
10070
  _react2.default.createElement(
9529
10071
  'div',
9530
- null,
9531
- _react2.default.createElement(
9532
- 'div',
9533
- { style: { display: 'inline-block', width: 300 } },
9534
- _react2.default.createElement(_reduxForm.Field, { name: mode + 'Endpoint', type: 'text', component: inputs.rfInput, label: 'Data Source Endpoint' })
9535
- ),
9536
- !config.credentials ? _react2.default.createElement(
9537
- Button,
9538
- {
9539
- icon: 'sync',
9540
- iconAlign: 'left',
9541
- onClick: function onClick() {
9542
- return check(mode);
9543
- },
9544
- style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
9545
- disabled: !hasEndpoint },
9546
- 'Test Connection'
9547
- ) : null,
9548
- _react2.default.createElement(
9549
- 'div',
9550
- { style: { display: 'inline-block', marginLeft: 12 } },
9551
- wizard.envChecking && _react2.default.createElement(Spinner, null),
9552
- envCheckResult && _react2.default.createElement(
9553
- 'span',
9554
- null,
9555
- envCheckResult
9556
- )
9557
- )
9558
- )
9559
- ),
9560
- config.credentials && _react2.default.createElement(
9561
- 'div',
9562
- { style: { marginLeft: 16 } },
10072
+ { style: { fontSize: 20, display: 'inline-block' } },
10073
+ 'Connect to Data Environments'
10074
+ ),
10075
+ _react2.default.createElement('br', null),
9563
10076
  _react2.default.createElement('br', null),
9564
10077
  _react2.default.createElement(
9565
- 'label',
10078
+ 'p',
9566
10079
  null,
9567
- step[mode + 'Provider'],
9568
- ' Credentials'
10080
+ 'Connect to sources of data and inspect available resources. You can save data environments for later re-use.'
9569
10081
  ),
9570
10082
  _react2.default.createElement('br', null),
9571
10083
  _react2.default.createElement(
9572
10084
  'div',
9573
- { style: { display: 'inline-block', marginLeft: 16 } },
9574
- config.credentials.map(function (cred, index) {
9575
- return _react2.default.createElement(
10085
+ { style: { height: 52 } },
10086
+ _react2.default.createElement(
10087
+ 'div',
10088
+ { style: { display: 'inline-block', width: 196, verticalAlign: 'top' } },
10089
+ _react2.default.createElement(_selectWrapper2.default, { type: 'neutral',
10090
+ label: formValues['environment'] || 'Existing Environments',
10091
+ minWidth: 260, fieldPropLabel: 'name',
10092
+ style: { minWidth: 200, textAlign: 'left' },
10093
+ values: wizard.environments,
10094
+ title: 'Choose Environment', inputs: inputs, sectionLabelSuffix: '',
10095
+ onSelect: this.selectEnvironment,
10096
+ selectedValues: [formValues['environment'] ? { name: formValues['environment'] } : {}],
10097
+ disabled: wizard.environments && wizard.environments.length > 0 ? false : true
10098
+ })
10099
+ ),
10100
+ _react2.default.createElement(
10101
+ 'div',
10102
+ { style: { display: 'inline-block', marginLeft: 10 } },
10103
+ _react2.default.createElement(
9576
10104
  'div',
9577
- { key: index, style: { marginTop: 8 } },
9578
- _react2.default.createElement(_reduxForm.Field, { name: mode + 'Credentials.' + cred,
9579
- label: step[mode + 'Provider'] + ' ' + unCamelize(cred), type: 'text',
9580
- component: inputs.rfInput })
9581
- );
9582
- })
9583
- ),
9584
- _react2.default.createElement(
9585
- Button,
9586
- {
9587
- icon: 'sync',
9588
- iconAlign: 'left',
9589
- onClick: function onClick() {
9590
- return check(mode);
9591
- },
9592
- type: 'neutral',
9593
- style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' },
9594
- disabled: config.credentials.some(function (c) {
9595
- var formCreds = formValues[mode + 'Credentials'];
9596
- return !(formCreds && Object.keys(formCreds).includes(c.split(' ').join('')));
9597
- }) || !hasEndpoint },
9598
- 'Test Connection'
9599
- )
9600
- )
9601
- ),
9602
- wizard[mode + 'Metadata'] && mode === 'source' && config.bidirectional && _react2.default.createElement(
9603
- 'div',
9604
- null,
9605
- _react2.default.createElement('br', null),
9606
- _react2.default.createElement(_reduxForm.Field, { name: 'direction', component: inputs.rfRadioGroup,
9607
- label: 'Integration Direction',
9608
- onClickOption: clickDirection,
9609
- options: {
9610
- 'normal': 'Read Data from ' + step[mode + 'Provider'],
9611
- 'reverse': 'Write Data to ' + step[mode + 'Provider']
9612
- }
9613
- })
9614
- ),
9615
- false && _react2.default.createElement(
9616
- 'div',
9617
- null,
9618
- wizard[mode + 'Metadata'] && formValues.direction === 'normal' ? _react2.default.createElement(
9619
- 'div',
9620
- null,
9621
- _react2.default.createElement('br', null),
9622
- _react2.default.createElement(
9623
- 'span',
9624
- { className: 'labelz' },
9625
- 'Available ',
9626
- step[mode + 'Provider'],
9627
- ' Data Objects',
9628
- config.metadataEndpoint === 'testconnection' && _react2.default.createElement(
9629
- 'span',
9630
- null,
9631
- '\xA0(click to preview data):'
10105
+ { style: { width: 200, display: 'inline-block' } },
10106
+ _react2.default.createElement(Input, { type: 'text', label: 'New Environment', value: newEnvName,
10107
+ onChange: this.changeEnvName, style: { width: 200 },
10108
+ onKeyPress: function onKeyPress(e) {
10109
+ if (e.key === 'Enter' && !disableCreateEnv) _this5.createEnvironment(newEnvName);
10110
+ },
10111
+ inputRef: function inputRef(ref) {
10112
+ return _this5.envNameInput = ref;
10113
+ }
10114
+ })
10115
+ ),
10116
+ _react2.default.createElement(
10117
+ Button,
10118
+ {
10119
+ type: 'brand',
10120
+ onClick: function onClick() {
10121
+ return _this5.createEnvironment(newEnvName);
10122
+ },
10123
+ style: { marginLeft: 10, marginTop: -2 },
10124
+ disabled: disableCreateEnv
10125
+ },
10126
+ ' Create '
10127
+ )
10128
+ ),
10129
+ this.state.savingEnv && _react2.default.createElement(
10130
+ 'div',
10131
+ {
10132
+ style: { margin: '31px 18px', display: 'inline-block', verticalAlign: 'top' } },
10133
+ _react2.default.createElement(inputs.Spinner, null)
9632
10134
  )
9633
10135
  ),
10136
+ _react2.default.createElement('br', null),
9634
10137
  _react2.default.createElement(
9635
- 'ul',
9636
- { style: { listStyle: 'none', paddingLeft: 5 } },
9637
- wizard[mode + 'Metadata'].filter(function (m) {
9638
- return m.method !== 'POST';
9639
- }).map(function (rsc, i) {
9640
- return _react2.default.createElement(
9641
- 'li',
9642
- { key: i, style: { paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10 } },
9643
- config.metadataEndpoint === 'testconnection' ? _react2.default.createElement(
9644
- 'a',
9645
- { onClick: function onClick() {
9646
- return seeFields(rsc, mode);
9647
- },
9648
- style: { textDecoration: 'none', cursor: 'pointer' } },
9649
- rsc.name
9650
- ) : _react2.default.createElement(
9651
- 'div',
9652
- null,
9653
- rsc.name
9654
- )
9655
- );
9656
- })
9657
- )
9658
- ) : null,
9659
- _react2.default.createElement('br', null),
9660
- wizard[mode + 'Metadata'] && mode === 'source' && POSTS && POSTS.length > 0 && _react2.default.createElement(
9661
- 'div',
9662
- null,
9663
- formValues.direction === 'reverse' && _react2.default.createElement(
9664
- 'div',
9665
- null,
9666
- _react2.default.createElement(
9667
- 'span',
9668
- { className: 'labelz' },
9669
- 'Available ',
9670
- step[mode + 'Provider'],
9671
- ' Data Target Objects:'
9672
- ),
9673
- _react2.default.createElement(
9674
- 'ul',
9675
- { style: { listStyle: 'none', paddingLeft: 5 } },
9676
- POSTS.map(function (rsc, i) {
10138
+ _CSSTransitionGroup2.default,
10139
+ { transitionName: 'env-content',
10140
+ transitionEnterTimeout: 250, transitionLeaveTimeout: 250 },
10141
+ formValues['environment'] && _react2.default.createElement(
10142
+ 'div',
10143
+ { className: 'env-content' },
10144
+ _react2.default.createElement('br', null),
10145
+ modes.map(function (m) {
10146
+ var isSelected = step[m + 'Provider'] === selectedProvider;
10147
+ var checking = _this5.state[m + 'EnvChecking'];
10148
+
9677
10149
  return _react2.default.createElement(
9678
- 'li',
9679
- { key: i, style: { paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10 } },
10150
+ 'div',
10151
+ { key: m, className: 'env-section' },
9680
10152
  _react2.default.createElement(
9681
- 'a',
9682
- { style: { textDecoration: 'none', cursor: 'default' } },
9683
- rsc.name
10153
+ 'div',
10154
+ { onClick: function onClick() {
10155
+ return _this5.selectProvider(step[m + 'Provider']);
10156
+ },
10157
+ className: 'env-section-header' },
10158
+ _react2.default.createElement(EnvCheckIcons, { wizard: wizard, inputs: inputs, mode: m, checking: checking }),
10159
+ _react2.default.createElement(
10160
+ 'div',
10161
+ { className: 'env-section-header-title' },
10162
+ step[m + 'Provider']
10163
+ )
10164
+ ),
10165
+ wizard[m + 'Metadata'] && _react2.default.createElement(
10166
+ 'div',
10167
+ { className: 'env-inspect-button',
10168
+ onClick: function onClick() {
10169
+ return _this5.setState({ showResources: m });
10170
+ } },
10171
+ _react2.default.createElement(
10172
+ 'span',
10173
+ null,
10174
+ 'Inspect'
10175
+ ),
10176
+ _react2.default.createElement(
10177
+ 'svg',
10178
+ { fill: '#333333', height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },
10179
+ _react2.default.createElement('path', { d: 'M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z' }),
10180
+ _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' })
10181
+ )
10182
+ ),
10183
+ _react2.default.createElement(
10184
+ _CSSTransitionGroup2.default,
10185
+ { transitionName: 'env-creds',
10186
+ transitionEnterTimeout: 250, transitionLeaveTimeout: 250 },
10187
+ isSelected && _react2.default.createElement(
10188
+ 'div',
10189
+ { className: 'env-creds' },
10190
+ _react2.default.createElement(_envSections2.default, { config: step[m + 'Config'], mode: m, checking: checking,
10191
+ wizard: wizard, getOauthUrl: _this5.getOauthUrl, formValues: formValues,
10192
+ clickDirection: _this5.clickDirection, inputs: inputs, step: step,
10193
+ seeFields: _this5.seeFields, check: _this5.check })
10194
+ )
9684
10195
  )
9685
10196
  );
9686
10197
  })
9687
10198
  )
9688
- )
9689
- )
9690
- ),
9691
- _react2.default.createElement('br', null)
9692
- );
9693
- };
10199
+ ),
10200
+ _react2.default.createElement(PreviewModal, { onHide: function onHide() {
10201
+ return _this5.setState({ showResources: null });
10202
+ },
10203
+ mode: this.state.showResources, wizard: wizard, step: step, inputs: inputs,
10204
+ seeFields: this.seeFields, isReverse: formValues.direction === 'reverse' }),
10205
+ _react2.default.createElement('br', null),
10206
+ _react2.default.createElement('br', null),
10207
+ _react2.default.createElement(_navButtons2.default, { nextDisabled: notAllMetadata || !formValues['environment'],
10208
+ handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
10209
+ _react2.default.createElement('br', null),
10210
+ _react2.default.createElement('br', null)
10211
+ );
10212
+ }
10213
+ }]);
9694
10214
 
9695
- var Oauth = function Oauth(_ref) {
9696
- var step = _ref.step,
10215
+ return EnvStep;
10216
+ }(_react.Component);
10217
+
10218
+ var PreviewModal = function PreviewModal(_ref) {
10219
+ var inputs = _ref.inputs,
10220
+ onHide = _ref.onHide,
9697
10221
  wizard = _ref.wizard,
9698
- onSandbox = _ref.onSandbox,
9699
- onProd = _ref.onProd,
9700
- onStart = _ref.onStart,
9701
- onCheck = _ref.onCheck,
9702
- inputs = _ref.inputs,
9703
- mode = _ref.mode;
10222
+ mode = _ref.mode,
10223
+ step = _ref.step,
10224
+ seeFields = _ref.seeFields,
10225
+ isReverse = _ref.isReverse;
10226
+
10227
+ var Modal = inputs.Modal;
10228
+ var config = step[mode + 'Config'];
10229
+
10230
+ var POSTS = wizard[mode + 'Metadata'] && wizard[mode + 'Metadata'].filter(function (m) {
10231
+ return m.method === 'POST' || m.method === 'PUT';
10232
+ });
10233
+
10234
+ // "testconnection" will be deprecated
10235
+ var isFromAdapter = config && (config.metadataEndpoint === 'testconnection' || config.metadataEndpoint === 'adaptermetadata');
10236
+
9704
10237
  return _react2.default.createElement(
9705
- 'div',
9706
- null,
9707
- _react2.default.createElement(
9708
- 'div',
9709
- null,
9710
- 'Are you connecting to a Sandbox or Production Org?'
9711
- ),
9712
- _react2.default.createElement(
9713
- 'div',
9714
- { style: { marginTop: 12 } },
9715
- _react2.default.createElement(
9716
- inputs.Button,
9717
- { type: 'brand',
9718
- onClick: onSandbox },
9719
- 'Sandbox'
9720
- ),
9721
- _react2.default.createElement(
9722
- inputs.Button,
9723
- { type: 'brand', style: { margin: '0 12px' },
9724
- onClick: onProd },
9725
- 'Production'
9726
- ),
9727
- wizard.gettingOauthUrl && _react2.default.createElement(inputs.Spinner, null),
9728
- wizard.oauthUrl && _react2.default.createElement(
10238
+ Modal,
10239
+ { opened: mode ? true : false, hideModal: onHide, submitModal: onHide,
10240
+ title: 'Available ' + step[mode + 'Provider'] + ' Resources' },
10241
+ _react2.default.createElement(
10242
+ 'div',
10243
+ { style: { overflow: 'scroll', maxHeight: '69vh', padding: '1em 2em' } },
10244
+ _react2.default.createElement(
9729
10245
  'div',
9730
10246
  null,
9731
- _react2.default.createElement('br', null),
9732
- _react2.default.createElement(
9733
- 'div',
9734
- null,
9735
- _react2.default.createElement(
9736
- 'strong',
9737
- null,
9738
- _react2.default.createElement(
9739
- 'a',
9740
- { onClick: onStart },
9741
- 'Click Here'
9742
- )
9743
- ),
9744
- ' to authorize your ',
9745
- step[mode + 'Provider'],
9746
- ' Org.'
9747
- ),
9748
- _react2.default.createElement('br', null),
9749
- _react2.default.createElement('br', null),
9750
- _react2.default.createElement(
10247
+ wizard[mode + 'Metadata'] && !isReverse ? _react2.default.createElement(
9751
10248
  'div',
9752
10249
  null,
9753
10250
  _react2.default.createElement(
9754
10251
  'span',
9755
- null,
9756
- 'After you have completed the ',
10252
+ { className: 'labelz' },
10253
+ 'Available ',
9757
10254
  step[mode + 'Provider'],
9758
- ' authorization process: '
9759
- ),
9760
- _react2.default.createElement(
9761
- inputs.Button,
9762
- {
9763
- icon: 'sync',
9764
- iconAlign: 'left',
9765
- onClick: function onClick() {
9766
- return onCheck(mode);
9767
- },
9768
- style: { marginLeft: 8, marginBottom: 2, height: 30, lineHeight: '10px' } },
9769
- 'Test Connection'
10255
+ ' Data Objects',
10256
+ isFromAdapter && _react2.default.createElement(
10257
+ 'span',
10258
+ null,
10259
+ '\xA0(click to preview data):'
10260
+ )
9770
10261
  ),
9771
10262
  _react2.default.createElement(
10263
+ 'ul',
10264
+ { style: { listStyle: 'none', paddingLeft: 5 } },
10265
+ wizard[mode + 'Metadata'].filter(function (m) {
10266
+ return m.method !== 'POST';
10267
+ }).map(function (rsc, i) {
10268
+ return _react2.default.createElement(
10269
+ 'li',
10270
+ { key: i, style: { paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10 } },
10271
+ isFromAdapter ? _react2.default.createElement(
10272
+ 'a',
10273
+ { onClick: function onClick() {
10274
+ return seeFields(rsc, mode);
10275
+ },
10276
+ style: { textDecoration: 'none', cursor: 'pointer' } },
10277
+ rsc.name
10278
+ ) : _react2.default.createElement(
10279
+ 'div',
10280
+ null,
10281
+ rsc.name
10282
+ )
10283
+ );
10284
+ })
10285
+ )
10286
+ ) : null,
10287
+ wizard[mode + 'Metadata'] && mode === 'source' && POSTS && POSTS.length > 0 && _react2.default.createElement(
10288
+ 'div',
10289
+ null,
10290
+ isReverse && _react2.default.createElement(
9772
10291
  'div',
9773
- { style: { display: 'inline-block', marginLeft: 12 } },
9774
- wizard.envChecking && _react2.default.createElement(inputs.Spinner, null),
9775
- wizard[mode + 'CheckResult'] && _react2.default.createElement(
10292
+ null,
10293
+ _react2.default.createElement(
9776
10294
  'span',
9777
- null,
9778
- wizard[mode + 'CheckResult']
10295
+ { className: 'labelz' },
10296
+ 'Available ',
10297
+ step[mode + 'Provider'],
10298
+ ' Data Target Objects:'
10299
+ ),
10300
+ _react2.default.createElement(
10301
+ 'ul',
10302
+ { style: { listStyle: 'none', paddingLeft: 5 } },
10303
+ POSTS.map(function (rsc, i) {
10304
+ return _react2.default.createElement(
10305
+ 'li',
10306
+ { key: i, style: { paddingLeft: rsc.parentRef ? rsc.parentRef.length * 12 + 10 : 10 } },
10307
+ _react2.default.createElement(
10308
+ 'a',
10309
+ { style: { textDecoration: 'none', cursor: 'default' } },
10310
+ rsc.name
10311
+ )
10312
+ );
10313
+ })
9779
10314
  )
9780
10315
  )
9781
10316
  )
@@ -9784,6 +10319,35 @@ module.exports =
9784
10319
  );
9785
10320
  };
9786
10321
 
10322
+ var EnvCheckIcons = function EnvCheckIcons(_ref2) {
10323
+ var wizard = _ref2.wizard,
10324
+ inputs = _ref2.inputs,
10325
+ mode = _ref2.mode,
10326
+ checking = _ref2.checking;
10327
+
10328
+ var envCheckResult = wizard[mode + 'CheckResult'];
10329
+ return _react2.default.createElement(
10330
+ 'div',
10331
+ { className: 'env-section-icon' },
10332
+ checking && _react2.default.createElement(inputs.Spinner, null),
10333
+ envCheckResult && _react2.default.createElement(
10334
+ 'span',
10335
+ null,
10336
+ envCheckResult === '200 OK' ? _react2.default.createElement(
10337
+ 'svg',
10338
+ { fill: '#019644', height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },
10339
+ _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),
10340
+ _react2.default.createElement('path', { d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z' })
10341
+ ) : _react2.default.createElement(
10342
+ 'svg',
10343
+ { fill: '#EA5A5A', height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },
10344
+ _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),
10345
+ _react2.default.createElement('path', { d: 'M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z' })
10346
+ )
10347
+ )
10348
+ );
10349
+ };
10350
+
9787
10351
  exports.default = (0, _reduxForm.reduxForm)({
9788
10352
  form: 'wizard',
9789
10353
  destroyOnUnmount: false,
@@ -9793,7 +10357,7 @@ module.exports =
9793
10357
  })(EnvStep);
9794
10358
 
9795
10359
  /***/ },
9796
- /* 113 */
10360
+ /* 114 */
9797
10361
  /***/ function(module, exports, __webpack_require__) {
9798
10362
 
9799
10363
  'use strict';
@@ -10020,7 +10584,7 @@ module.exports =
10020
10584
  'Production'
10021
10585
  ),
10022
10586
  wizard.gettingOauthUrl && _react2.default.createElement(Spinner, null),
10023
- wizard.oauthUrl && _react2.default.createElement(
10587
+ (wizard.oauthUrl || true) && _react2.default.createElement(
10024
10588
  'div',
10025
10589
  null,
10026
10590
  _react2.default.createElement('br', null),
@@ -10267,7 +10831,7 @@ module.exports =
10267
10831
  })(EnvironmentStep);
10268
10832
 
10269
10833
  /***/ },
10270
- /* 114 */
10834
+ /* 115 */
10271
10835
  /***/ function(module, exports, __webpack_require__) {
10272
10836
 
10273
10837
  'use strict';
@@ -10296,7 +10860,7 @@ module.exports =
10296
10860
 
10297
10861
  var _loadData2 = _interopRequireDefault(_loadData);
10298
10862
 
10299
- var _CSSTransitionGroup = __webpack_require__(26);
10863
+ var _CSSTransitionGroup = __webpack_require__(27);
10300
10864
 
10301
10865
  var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
10302
10866
 
@@ -10492,7 +11056,7 @@ module.exports =
10492
11056
  })(FilterStep);
10493
11057
 
10494
11058
  /***/ },
10495
- /* 115 */
11059
+ /* 116 */
10496
11060
  /***/ function(module, exports, __webpack_require__) {
10497
11061
 
10498
11062
  'use strict';
@@ -10525,19 +11089,19 @@ module.exports =
10525
11089
 
10526
11090
  var _groupNav2 = _interopRequireDefault(_groupNav);
10527
11091
 
10528
- var _transformModal = __webpack_require__(109);
11092
+ var _transformModal = __webpack_require__(110);
10529
11093
 
10530
11094
  var _transformModal2 = _interopRequireDefault(_transformModal);
10531
11095
 
10532
- var _mapAccordion = __webpack_require__(105);
11096
+ var _mapAccordion = __webpack_require__(106);
10533
11097
 
10534
11098
  var _mapAccordion2 = _interopRequireDefault(_mapAccordion);
10535
11099
 
10536
- var _mapTableRows = __webpack_require__(106);
11100
+ var _mapTableRows = __webpack_require__(107);
10537
11101
 
10538
11102
  var Rows = _interopRequireWildcard(_mapTableRows);
10539
11103
 
10540
- var _newScenarioModal = __webpack_require__(123);
11104
+ var _newScenarioModal = __webpack_require__(124);
10541
11105
 
10542
11106
  var _newScenarioModal2 = _interopRequireDefault(_newScenarioModal);
10543
11107
 
@@ -10712,7 +11276,8 @@ module.exports =
10712
11276
  actions: actions, isReverse: isReverse }),
10713
11277
  _react2.default.createElement(
10714
11278
  MapTable,
10715
- { clearOneMapping: this.clearOneMapping, selectMapping: this.selectMapping,
11279
+ { clearOneMapping: this.clearOneMapping,
11280
+ selectMapping: this.selectMapping,
10716
11281
  mode: formValues.direction, step: step },
10717
11282
  _react2.default.createElement(Rows.MapTableSourceRow, null),
10718
11283
  _react2.default.createElement(Rows.MapTableMappingRow, null),
@@ -10754,7 +11319,7 @@ module.exports =
10754
11319
  opened: this.state.showScenarioModal,
10755
11320
  sourceMetadata: sourceSchema, step: step,
10756
11321
  destinationMetadata: destinationSchema,
10757
- sourceEndpoint: formValues.sourceEndpoint,
11322
+ sourceEndpoint: formValues.sourceCredentials && formValues.sourceCredentials.rootUrl,
10758
11323
  accountId: this.props.accountId,
10759
11324
  tenantId: this.props.tenantId, actions: this.props.actions,
10760
11325
  isReverse: isReverse
@@ -10778,7 +11343,7 @@ module.exports =
10778
11343
  })(MapStep);
10779
11344
 
10780
11345
  /***/ },
10781
- /* 116 */
11346
+ /* 117 */
10782
11347
  /***/ function(module, exports, __webpack_require__) {
10783
11348
 
10784
11349
  'use strict';
@@ -10886,7 +11451,7 @@ module.exports =
10886
11451
  })(NameStep);
10887
11452
 
10888
11453
  /***/ },
10889
- /* 117 */
11454
+ /* 118 */
10890
11455
  /***/ function(module, exports, __webpack_require__) {
10891
11456
 
10892
11457
  'use strict';
@@ -10984,7 +11549,7 @@ module.exports =
10984
11549
  })(PhaseStep);
10985
11550
 
10986
11551
  /***/ },
10987
- /* 118 */
11552
+ /* 119 */
10988
11553
  /***/ function(module, exports, __webpack_require__) {
10989
11554
 
10990
11555
  'use strict';
@@ -11039,7 +11604,7 @@ module.exports =
11039
11604
  formValues = _props.formValues,
11040
11605
  wizard = _props.wizard;
11041
11606
 
11042
- var endpoint = wizard.savedConfiguration && wizard.savedConfiguration['sourceEndpoint'] || formValues['sourceEndpoint'];
11607
+ var endpoint = wizard.savedConfiguration && wizard.savedConfiguration['sourceCredentials'] && wizard.savedConfiguration['sourceCredentials'].rootUrl || formValues['sourceCredentials'] && formValues['sourceCredentials'].rootUrl;
11043
11608
  actions.callPreviewIntegration(tenantId, accountId, endpoint + '/preview');
11044
11609
  }
11045
11610
  }, {
@@ -11119,7 +11684,7 @@ module.exports =
11119
11684
  })(PreviewStep);
11120
11685
 
11121
11686
  /***/ },
11122
- /* 119 */
11687
+ /* 120 */
11123
11688
  /***/ function(module, exports, __webpack_require__) {
11124
11689
 
11125
11690
  'use strict';
@@ -11232,7 +11797,15 @@ module.exports =
11232
11797
  actions = _props.actions;
11233
11798
 
11234
11799
  if (!wizard.dataLoaded) {
11235
- (0, _loadData2.default)(step, wizard, change, formValues, actions);
11800
+ (function () {
11801
+ (0, _loadData2.default)(step, wizard, change, formValues, actions);
11802
+ var scenario = formValues['scenario'];
11803
+ if (scenario && !(step.options && step.options.find(function (o) {
11804
+ return o.id === scenario;
11805
+ }))) {
11806
+ change('scenario', '0');
11807
+ }
11808
+ })();
11236
11809
  }
11237
11810
  }
11238
11811
  }, {
@@ -11363,7 +11936,7 @@ module.exports =
11363
11936
  })(DefaultDatasetStep);
11364
11937
 
11365
11938
  /***/ },
11366
- /* 120 */
11939
+ /* 121 */
11367
11940
  /***/ function(module, exports, __webpack_require__) {
11368
11941
 
11369
11942
  'use strict';
@@ -11392,7 +11965,7 @@ module.exports =
11392
11965
 
11393
11966
  var _loadData2 = _interopRequireDefault(_loadData);
11394
11967
 
11395
- var _schemaAccordion = __webpack_require__(108);
11968
+ var _schemaAccordion = __webpack_require__(109);
11396
11969
 
11397
11970
  var _schemaAccordion2 = _interopRequireDefault(_schemaAccordion);
11398
11971
 
@@ -11808,7 +12381,7 @@ module.exports =
11808
12381
  })(SchemaStep);
11809
12382
 
11810
12383
  /***/ },
11811
- /* 121 */
12384
+ /* 122 */
11812
12385
  /***/ function(module, exports, __webpack_require__) {
11813
12386
 
11814
12387
  'use strict';
@@ -11859,7 +12432,7 @@ module.exports =
11859
12432
  exports.default = JoinVenn;
11860
12433
 
11861
12434
  /***/ },
11862
- /* 122 */
12435
+ /* 123 */
11863
12436
  /***/ function(module, exports, __webpack_require__) {
11864
12437
 
11865
12438
  'use strict';
@@ -11876,7 +12449,7 @@ module.exports =
11876
12449
 
11877
12450
  var _nestExpand2 = _interopRequireDefault(_nestExpand);
11878
12451
 
11879
- var _CSSTransitionGroup = __webpack_require__(26);
12452
+ var _CSSTransitionGroup = __webpack_require__(27);
11880
12453
 
11881
12454
  var _CSSTransitionGroup2 = _interopRequireDefault(_CSSTransitionGroup);
11882
12455
 
@@ -11971,7 +12544,7 @@ module.exports =
11971
12544
  exports.default = SourceField;
11972
12545
 
11973
12546
  /***/ },
11974
- /* 123 */
12547
+ /* 124 */
11975
12548
  /***/ function(module, exports, __webpack_require__) {
11976
12549
 
11977
12550
  'use strict';
@@ -11990,7 +12563,7 @@ module.exports =
11990
12563
 
11991
12564
  var _saveData3 = _interopRequireDefault(_saveData2);
11992
12565
 
11993
- var _objectAssignDeep = __webpack_require__(124);
12566
+ var _objectAssignDeep = __webpack_require__(125);
11994
12567
 
11995
12568
  var _objectAssignDeep2 = _interopRequireDefault(_objectAssignDeep);
11996
12569
 
@@ -12262,7 +12835,7 @@ module.exports =
12262
12835
  exports.default = TransformModal;
12263
12836
 
12264
12837
  /***/ },
12265
- /* 124 */
12838
+ /* 125 */
12266
12839
  /***/ function(module, exports) {
12267
12840
 
12268
12841
  'use strict';
@@ -12277,7 +12850,7 @@ module.exports =
12277
12850
  * OBJECT ASSIGN DEEP
12278
12851
  * Allows deep cloning of plain objects that contain primitives, nested plain objects, or nested plain arrays.
12279
12852
 
12280
- BE CAREFUL! no weird objects like arrayBuffers or functions
12853
+ BE CAREFUL! no weird objects like arrayBuffers or dates
12281
12854
  */
12282
12855
 
12283
12856
  /*
@@ -12401,7 +12974,7 @@ module.exports =
12401
12974
  exports.default = objectAssignDeep;
12402
12975
 
12403
12976
  /***/ },
12404
- /* 125 */
12977
+ /* 126 */
12405
12978
  /***/ function(module, exports, __webpack_require__) {
12406
12979
 
12407
12980
  'use strict';
@@ -12426,47 +12999,47 @@ module.exports =
12426
12999
 
12427
13000
  var _accountStep2 = _interopRequireDefault(_accountStep);
12428
13001
 
12429
- var _phaseStep = __webpack_require__(117);
13002
+ var _phaseStep = __webpack_require__(118);
12430
13003
 
12431
13004
  var _phaseStep2 = _interopRequireDefault(_phaseStep);
12432
13005
 
12433
- var _environmentStep = __webpack_require__(113);
13006
+ var _environmentStep = __webpack_require__(114);
12434
13007
 
12435
13008
  var _environmentStep2 = _interopRequireDefault(_environmentStep);
12436
13009
 
12437
- var _schemaStep = __webpack_require__(120);
13010
+ var _schemaStep = __webpack_require__(121);
12438
13011
 
12439
13012
  var _schemaStep2 = _interopRequireDefault(_schemaStep);
12440
13013
 
12441
- var _filterStep = __webpack_require__(114);
13014
+ var _filterStep = __webpack_require__(115);
12442
13015
 
12443
13016
  var _filterStep2 = _interopRequireDefault(_filterStep);
12444
13017
 
12445
- var _mapStep = __webpack_require__(115);
13018
+ var _mapStep = __webpack_require__(116);
12446
13019
 
12447
13020
  var _mapStep2 = _interopRequireDefault(_mapStep);
12448
13021
 
12449
- var _previewStep = __webpack_require__(118);
13022
+ var _previewStep = __webpack_require__(119);
12450
13023
 
12451
13024
  var _previewStep2 = _interopRequireDefault(_previewStep);
12452
13025
 
12453
- var _deployStep = __webpack_require__(111);
13026
+ var _deployStep = __webpack_require__(112);
12454
13027
 
12455
13028
  var _deployStep2 = _interopRequireDefault(_deployStep);
12456
13029
 
12457
- var _nameStep = __webpack_require__(116);
13030
+ var _nameStep = __webpack_require__(117);
12458
13031
 
12459
13032
  var _nameStep2 = _interopRequireDefault(_nameStep);
12460
13033
 
12461
- var _adapterStep = __webpack_require__(110);
13034
+ var _adapterStep = __webpack_require__(111);
12462
13035
 
12463
13036
  var _adapterStep2 = _interopRequireDefault(_adapterStep);
12464
13037
 
12465
- var _scenarioStep = __webpack_require__(119);
13038
+ var _scenarioStep = __webpack_require__(120);
12466
13039
 
12467
13040
  var _scenarioStep2 = _interopRequireDefault(_scenarioStep);
12468
13041
 
12469
- var _envStep = __webpack_require__(112);
13042
+ var _envStep = __webpack_require__(113);
12470
13043
 
12471
13044
  var _envStep2 = _interopRequireDefault(_envStep);
12472
13045
 
@@ -12544,7 +13117,7 @@ module.exports =
12544
13117
  //properties: Name is the real value, Label is the displayed value
12545
13118
  var isReverse = formValues['direction'] === 'reverse';
12546
13119
 
12547
- var _saveData = (0, _saveData3.default)(formValues['resourceGroups'], this.props.wizardConfig.source.type, this.props.wizardConfig.destination.type, this.props.wizard.sourceMetadata, this.props.wizard.destinationMetadata, formValues.sourceEndpoint, isReverse),
13120
+ var _saveData = (0, _saveData3.default)(formValues['resourceGroups'], this.props.wizardConfig.source.type, this.props.wizardConfig.destination.type, this.props.wizard.sourceMetadata, this.props.wizard.destinationMetadata, formValues.sourceCredentials && formValues.sourceCredentials.rootUrl, isReverse),
12548
13121
  bundles = _saveData.bundles,
12549
13122
  mappings = _saveData.mappings,
12550
13123
  endpoints = _saveData.endpoints;
@@ -12554,15 +13127,17 @@ module.exports =
12554
13127
  //----------------------------------
12555
13128
  // Create configuration
12556
13129
  //----------------------------------
12557
- if (formValues.sourceEndpoint) {
12558
- endpoints.sourceEndpoint = formValues.sourceEndpoint;
12559
- }
12560
- if (formValues.destinationEndpoint) {
12561
- endpoints.destinationEndpoint = formValues.destinationEndpoint;
13130
+ /*if(formValues.sourceEndpoint){
13131
+ endpoints.sourceEndpoint = formValues.sourceEndpoint
12562
13132
  }
13133
+ if(formValues.destinationEndpoint){
13134
+ endpoints.destinationEndpoint = formValues.destinationEndpoint
13135
+ }*/
13136
+
12563
13137
  var configuration = Object.assign({}, endpoints, formValues['scenario'] && { scenario: String(formValues['scenario']) }, { // integer of id
12564
- direction: formValues['direction'] // 'normal' or 'reverse'
12565
- });
13138
+ direction: formValues['direction'], // 'normal' or 'reverse'
13139
+ environment: formValues['environment']
13140
+ }, formValues['batchSize'] && { batchSize: formValues['batchSize'] });
12566
13141
  //----------------------------------
12567
13142
  // Post
12568
13143
  //----------------------------------
@@ -12581,7 +13156,7 @@ module.exports =
12581
13156
  onGenerationError = _props2.onGenerationError;
12582
13157
 
12583
13158
  if (true) {
12584
- actions.submitWizardData(tenantId, accountId, bundles, mappings, configuration, formValues.title || wizardConfig.title || 'LingkSync', formValues.deployment || null, wizardConfig.typeId, wizardConfig.typeGuid, piGuid, onPiPost, onGenerate, onFinish, wizard.sourceMetadata || [], wizard.destinationMetadata || [], isManagedPackage, onGenerationError);
13159
+ actions.submitWizardData(tenantId, accountId, bundles, mappings, configuration, formValues.title || wizardConfig.title || 'LingkSync', formValues.deployment || null, wizardConfig.typeId, wizardConfig.typeGuid, piGuid, onPiPost, onGenerate, onFinish, wizard.sourceMetadata || [], wizard.destinationMetadata || [], isManagedPackage, onGenerationError, formValues['environment']);
12585
13160
  onSubmit({ complete: formValues.hasOwnProperty('deployment') });
12586
13161
  }
12587
13162
  }
@@ -12713,25 +13288,25 @@ module.exports =
12713
13288
  var selector = (0, _reduxForm.formValueSelector)('wizard');
12714
13289
  WizardForm = (0, _reactRedux.connect)(function (state) {
12715
13290
  var title = selector(state, 'title');
12716
- var sourceEndpoint = selector(state, 'sourceEndpoint');
12717
13291
  var sourceCredentials = selector(state, 'sourceCredentials');
12718
- var destinationEndpoint = selector(state, 'destinationEndpoint');
12719
13292
  var destinationCredentials = selector(state, 'destinationCredentials');
12720
13293
  var deployment = selector(state, 'deployment');
12721
13294
  var resourceGroups = selector(state, 'resourceGroups');
12722
13295
  var scenario = selector(state, 'scenario');
12723
13296
  var direction = selector(state, 'direction');
13297
+ var environment = selector(state, 'environment');
13298
+ var batchSize = selector(state, 'batchSize');
12724
13299
  return Object.assign({}, state, {
12725
13300
  formValues: {
12726
13301
  title: title,
12727
- sourceEndpoint: sourceEndpoint,
12728
13302
  sourceCredentials: sourceCredentials,
12729
- destinationEndpoint: destinationEndpoint,
12730
13303
  destinationCredentials: destinationCredentials,
12731
13304
  deployment: deployment,
12732
13305
  resourceGroups: resourceGroups,
12733
13306
  scenario: scenario,
12734
- direction: direction
13307
+ direction: direction,
13308
+ environment: environment,
13309
+ batchSize: batchSize
12735
13310
  }
12736
13311
  });
12737
13312
  })(WizardForm);
@@ -12739,7 +13314,7 @@ module.exports =
12739
13314
  exports.default = WizardForm;
12740
13315
 
12741
13316
  /***/ },
12742
- /* 126 */
13317
+ /* 127 */
12743
13318
  /***/ function(module, exports, __webpack_require__) {
12744
13319
 
12745
13320
  'use strict';
@@ -12754,7 +13329,7 @@ module.exports =
12754
13329
 
12755
13330
  var _react2 = _interopRequireDefault(_react);
12756
13331
 
12757
- var _redux = __webpack_require__(211);
13332
+ var _redux = __webpack_require__(212);
12758
13333
 
12759
13334
  var _reactRedux = __webpack_require__(65);
12760
13335
 
@@ -12762,9 +13337,9 @@ module.exports =
12762
13337
 
12763
13338
  var wizardActions = _interopRequireWildcard(_wizard);
12764
13339
 
12765
- __webpack_require__(171);
13340
+ __webpack_require__(172);
12766
13341
 
12767
- var _wizardForm = __webpack_require__(125);
13342
+ var _wizardForm = __webpack_require__(126);
12768
13343
 
12769
13344
  var _wizardForm2 = _interopRequireDefault(_wizardForm);
12770
13345
 
@@ -12800,23 +13375,15 @@ module.exports =
12800
13375
  {
12801
13376
  type: 'name',
12802
13377
  title: 'Name'
12803
- },
12804
- /*{
13378
+ }, {
12805
13379
  type: 'env',
12806
13380
  title: 'Environments'
12807
- },*/
12808
- {
12809
- type: 'environment',
12810
- title: 'Source Environment',
12811
- mode: 'source'
12812
- }, {
12813
- type: 'environment',
12814
- title: 'Target Environment',
12815
- mode: 'destination'
12816
- }, {
13381
+ },
13382
+ /*{
12817
13383
  type: 'filter',
12818
13384
  title: 'Source Filter'
12819
- }, {
13385
+ },*/
13386
+ {
12820
13387
  type: 'scenario',
12821
13388
  title: 'Data Scenario'
12822
13389
  }, {
@@ -12941,21 +13508,21 @@ module.exports =
12941
13508
  exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(LingkSync);
12942
13509
 
12943
13510
  /***/ },
12944
- /* 127 */,
12945
- /* 128 */
13511
+ /* 128 */,
13512
+ /* 129 */
12946
13513
  /***/ function(module, exports, __webpack_require__) {
12947
13514
 
12948
- module.exports = { "default": __webpack_require__(133), __esModule: true };
13515
+ module.exports = { "default": __webpack_require__(134), __esModule: true };
12949
13516
 
12950
13517
  /***/ },
12951
- /* 129 */
13518
+ /* 130 */
12952
13519
  /***/ function(module, exports, __webpack_require__) {
12953
13520
 
12954
- module.exports = { "default": __webpack_require__(134), __esModule: true };
13521
+ module.exports = { "default": __webpack_require__(135), __esModule: true };
12955
13522
 
12956
13523
  /***/ },
12957
- /* 130 */,
12958
- /* 131 */
13524
+ /* 131 */,
13525
+ /* 132 */
12959
13526
  /***/ function(module, exports) {
12960
13527
 
12961
13528
  "use strict";
@@ -12975,39 +13542,39 @@ module.exports =
12975
13542
  };
12976
13543
 
12977
13544
  /***/ },
12978
- /* 132 */,
12979
- /* 133 */
13545
+ /* 133 */,
13546
+ /* 134 */
12980
13547
  /***/ function(module, exports, __webpack_require__) {
12981
13548
 
12982
- __webpack_require__(154);
13549
+ __webpack_require__(155);
12983
13550
  module.exports = __webpack_require__(8).Object.assign;
12984
13551
 
12985
13552
  /***/ },
12986
- /* 134 */
13553
+ /* 135 */
12987
13554
  /***/ function(module, exports, __webpack_require__) {
12988
13555
 
12989
- __webpack_require__(155);
13556
+ __webpack_require__(156);
12990
13557
  var $Object = __webpack_require__(8).Object;
12991
13558
  module.exports = function defineProperty(it, key, desc){
12992
13559
  return $Object.defineProperty(it, key, desc);
12993
13560
  };
12994
13561
 
12995
13562
  /***/ },
12996
- /* 135 */,
12997
13563
  /* 136 */,
12998
13564
  /* 137 */,
12999
13565
  /* 138 */,
13000
13566
  /* 139 */,
13001
13567
  /* 140 */,
13002
13568
  /* 141 */,
13003
- /* 142 */
13569
+ /* 142 */,
13570
+ /* 143 */
13004
13571
  /***/ function(module, exports, __webpack_require__) {
13005
13572
 
13006
13573
  'use strict';
13007
13574
  // 19.1.2.1 Object.assign(target, source, ...)
13008
13575
  var getKeys = __webpack_require__(33)
13009
- , gOPS = __webpack_require__(145)
13010
- , pIE = __webpack_require__(147)
13576
+ , gOPS = __webpack_require__(146)
13577
+ , pIE = __webpack_require__(148)
13011
13578
  , toObject = __webpack_require__(36)
13012
13579
  , IObject = __webpack_require__(31)
13013
13580
  , $assign = Object.assign;
@@ -13038,48 +13605,48 @@ module.exports =
13038
13605
  } : $assign;
13039
13606
 
13040
13607
  /***/ },
13041
- /* 143 */,
13042
13608
  /* 144 */,
13043
- /* 145 */
13609
+ /* 145 */,
13610
+ /* 146 */
13044
13611
  /***/ function(module, exports) {
13045
13612
 
13046
13613
  exports.f = Object.getOwnPropertySymbols;
13047
13614
 
13048
13615
  /***/ },
13049
- /* 146 */,
13050
- /* 147 */
13616
+ /* 147 */,
13617
+ /* 148 */
13051
13618
  /***/ function(module, exports) {
13052
13619
 
13053
13620
  exports.f = {}.propertyIsEnumerable;
13054
13621
 
13055
13622
  /***/ },
13056
- /* 148 */,
13057
13623
  /* 149 */,
13058
13624
  /* 150 */,
13059
13625
  /* 151 */,
13060
13626
  /* 152 */,
13061
13627
  /* 153 */,
13062
- /* 154 */
13628
+ /* 154 */,
13629
+ /* 155 */
13063
13630
  /***/ function(module, exports, __webpack_require__) {
13064
13631
 
13065
13632
  // 19.1.3.1 Object.assign(target, source)
13066
- var $export = __webpack_require__(23);
13633
+ var $export = __webpack_require__(24);
13067
13634
 
13068
- $export($export.S + $export.F, 'Object', {assign: __webpack_require__(142)});
13635
+ $export($export.S + $export.F, 'Object', {assign: __webpack_require__(143)});
13069
13636
 
13070
13637
  /***/ },
13071
- /* 155 */
13638
+ /* 156 */
13072
13639
  /***/ function(module, exports, __webpack_require__) {
13073
13640
 
13074
- var $export = __webpack_require__(23);
13641
+ var $export = __webpack_require__(24);
13075
13642
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
13076
13643
  $export($export.S + $export.F * !__webpack_require__(9), 'Object', {defineProperty: __webpack_require__(18).f});
13077
13644
 
13078
13645
  /***/ },
13079
- /* 156 */,
13080
13646
  /* 157 */,
13081
13647
  /* 158 */,
13082
- /* 159 */
13648
+ /* 159 */,
13649
+ /* 160 */
13083
13650
  /***/ function(module, exports) {
13084
13651
 
13085
13652
 
@@ -13105,7 +13672,7 @@ module.exports =
13105
13672
 
13106
13673
 
13107
13674
  /***/ },
13108
- /* 160 */
13675
+ /* 161 */
13109
13676
  /***/ function(module, exports, __webpack_require__) {
13110
13677
 
13111
13678
  /**
@@ -13302,7 +13869,7 @@ module.exports =
13302
13869
 
13303
13870
 
13304
13871
  /***/ },
13305
- /* 161 */
13872
+ /* 162 */
13306
13873
  /***/ function(module, exports) {
13307
13874
 
13308
13875
  'use strict';
@@ -13395,7 +13962,7 @@ module.exports =
13395
13962
  module.exports = exports['default'];
13396
13963
 
13397
13964
  /***/ },
13398
- /* 162 */
13965
+ /* 163 */
13399
13966
  /***/ function(module, exports, __webpack_require__) {
13400
13967
 
13401
13968
  'use strict';
@@ -13406,11 +13973,11 @@ module.exports =
13406
13973
 
13407
13974
  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; };
13408
13975
 
13409
- var _Event = __webpack_require__(161);
13976
+ var _Event = __webpack_require__(162);
13410
13977
 
13411
13978
  var _Event2 = _interopRequireDefault(_Event);
13412
13979
 
13413
- var _componentClasses = __webpack_require__(160);
13980
+ var _componentClasses = __webpack_require__(161);
13414
13981
 
13415
13982
  var _componentClasses2 = _interopRequireDefault(_componentClasses);
13416
13983
 
@@ -13590,7 +14157,7 @@ module.exports =
13590
14157
  module.exports = exports['default'];
13591
14158
 
13592
14159
  /***/ },
13593
- /* 163 */
14160
+ /* 164 */
13594
14161
  /***/ function(module, exports, __webpack_require__) {
13595
14162
 
13596
14163
  'use strict';
@@ -13599,7 +14166,7 @@ module.exports =
13599
14166
  value: true
13600
14167
  });
13601
14168
 
13602
- var _utils = __webpack_require__(25);
14169
+ var _utils = __webpack_require__(26);
13603
14170
 
13604
14171
  var _utils2 = _interopRequireDefault(_utils);
13605
14172
 
@@ -13650,7 +14217,7 @@ module.exports =
13650
14217
  module.exports = exports['default'];
13651
14218
 
13652
14219
  /***/ },
13653
- /* 164 */
14220
+ /* 165 */
13654
14221
  /***/ function(module, exports) {
13655
14222
 
13656
14223
  'use strict';
@@ -13695,7 +14262,7 @@ module.exports =
13695
14262
  module.exports = exports['default'];
13696
14263
 
13697
14264
  /***/ },
13698
- /* 165 */
14265
+ /* 166 */
13699
14266
  /***/ function(module, exports, __webpack_require__) {
13700
14267
 
13701
14268
  'use strict';
@@ -13704,7 +14271,7 @@ module.exports =
13704
14271
  value: true
13705
14272
  });
13706
14273
 
13707
- var _getAlignOffset = __webpack_require__(164);
14274
+ var _getAlignOffset = __webpack_require__(165);
13708
14275
 
13709
14276
  var _getAlignOffset2 = _interopRequireDefault(_getAlignOffset);
13710
14277
 
@@ -13736,7 +14303,7 @@ module.exports =
13736
14303
  module.exports = exports['default'];
13737
14304
 
13738
14305
  /***/ },
13739
- /* 166 */
14306
+ /* 167 */
13740
14307
  /***/ function(module, exports, __webpack_require__) {
13741
14308
 
13742
14309
  'use strict';
@@ -13745,7 +14312,7 @@ module.exports =
13745
14312
  value: true
13746
14313
  });
13747
14314
 
13748
- var _utils = __webpack_require__(25);
14315
+ var _utils = __webpack_require__(26);
13749
14316
 
13750
14317
  var _utils2 = _interopRequireDefault(_utils);
13751
14318
 
@@ -13777,7 +14344,7 @@ module.exports =
13777
14344
  module.exports = exports['default'];
13778
14345
 
13779
14346
  /***/ },
13780
- /* 167 */
14347
+ /* 168 */
13781
14348
  /***/ function(module, exports, __webpack_require__) {
13782
14349
 
13783
14350
  'use strict';
@@ -13786,7 +14353,7 @@ module.exports =
13786
14353
  value: true
13787
14354
  });
13788
14355
 
13789
- var _utils = __webpack_require__(25);
14356
+ var _utils = __webpack_require__(26);
13790
14357
 
13791
14358
  var _utils2 = _interopRequireDefault(_utils);
13792
14359
 
@@ -13858,7 +14425,7 @@ module.exports =
13858
14425
  module.exports = exports['default'];
13859
14426
 
13860
14427
  /***/ },
13861
- /* 168 */
14428
+ /* 169 */
13862
14429
  /***/ function(module, exports, __webpack_require__) {
13863
14430
 
13864
14431
  'use strict';
@@ -13867,7 +14434,7 @@ module.exports =
13867
14434
  value: true
13868
14435
  });
13869
14436
 
13870
- var _utils = __webpack_require__(25);
14437
+ var _utils = __webpack_require__(26);
13871
14438
 
13872
14439
  var _utils2 = _interopRequireDefault(_utils);
13873
14440
 
@@ -13875,19 +14442,19 @@ module.exports =
13875
14442
 
13876
14443
  var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);
13877
14444
 
13878
- var _getVisibleRectForElement = __webpack_require__(167);
14445
+ var _getVisibleRectForElement = __webpack_require__(168);
13879
14446
 
13880
14447
  var _getVisibleRectForElement2 = _interopRequireDefault(_getVisibleRectForElement);
13881
14448
 
13882
- var _adjustForViewport = __webpack_require__(163);
14449
+ var _adjustForViewport = __webpack_require__(164);
13883
14450
 
13884
14451
  var _adjustForViewport2 = _interopRequireDefault(_adjustForViewport);
13885
14452
 
13886
- var _getRegion = __webpack_require__(166);
14453
+ var _getRegion = __webpack_require__(167);
13887
14454
 
13888
14455
  var _getRegion2 = _interopRequireDefault(_getRegion);
13889
14456
 
13890
- var _getElFuturePos = __webpack_require__(165);
14457
+ var _getElFuturePos = __webpack_require__(166);
13891
14458
 
13892
14459
  var _getElFuturePos2 = _interopRequireDefault(_getElFuturePos);
13893
14460
 
@@ -14089,7 +14656,7 @@ module.exports =
14089
14656
  module.exports = exports['default'];
14090
14657
 
14091
14658
  /***/ },
14092
- /* 169 */
14659
+ /* 170 */
14093
14660
  /***/ function(module, exports) {
14094
14661
 
14095
14662
  'use strict';
@@ -14204,17 +14771,17 @@ module.exports =
14204
14771
  }
14205
14772
 
14206
14773
  /***/ },
14207
- /* 170 */
14774
+ /* 171 */
14208
14775
  /***/ function(module, exports) {
14209
14776
 
14210
14777
  // removed by extract-text-webpack-plugin
14211
14778
 
14212
14779
  /***/ },
14213
- /* 171 */
14214
- 170,
14215
- /* 172 */,
14780
+ /* 172 */
14781
+ 171,
14216
14782
  /* 173 */,
14217
- /* 174 */
14783
+ /* 174 */,
14784
+ /* 175 */
14218
14785
  /***/ function(module, exports) {
14219
14786
 
14220
14787
  'use strict';
@@ -14303,7 +14870,7 @@ module.exports =
14303
14870
 
14304
14871
 
14305
14872
  /***/ },
14306
- /* 175 */
14873
+ /* 176 */
14307
14874
  /***/ function(module, exports, __webpack_require__) {
14308
14875
 
14309
14876
  /**
@@ -14317,9 +14884,9 @@ module.exports =
14317
14884
 
14318
14885
  'use strict';
14319
14886
 
14320
- var emptyFunction = __webpack_require__(177);
14321
- var invariant = __webpack_require__(178);
14322
- var ReactPropTypesSecret = __webpack_require__(176);
14887
+ var emptyFunction = __webpack_require__(178);
14888
+ var invariant = __webpack_require__(179);
14889
+ var ReactPropTypesSecret = __webpack_require__(177);
14323
14890
 
14324
14891
  module.exports = function() {
14325
14892
  function shim(props, propName, componentName, location, propFullName, secret) {
@@ -14368,7 +14935,7 @@ module.exports =
14368
14935
 
14369
14936
 
14370
14937
  /***/ },
14371
- /* 176 */
14938
+ /* 177 */
14372
14939
  /***/ function(module, exports) {
14373
14940
 
14374
14941
  /**
@@ -14388,7 +14955,7 @@ module.exports =
14388
14955
 
14389
14956
 
14390
14957
  /***/ },
14391
- /* 177 */
14958
+ /* 178 */
14392
14959
  /***/ function(module, exports) {
14393
14960
 
14394
14961
  "use strict";
@@ -14431,7 +14998,7 @@ module.exports =
14431
14998
  module.exports = emptyFunction;
14432
14999
 
14433
15000
  /***/ },
14434
- /* 178 */
15001
+ /* 179 */
14435
15002
  /***/ function(module, exports, __webpack_require__) {
14436
15003
 
14437
15004
  /**
@@ -14491,7 +15058,7 @@ module.exports =
14491
15058
  module.exports = invariant;
14492
15059
 
14493
15060
  /***/ },
14494
- /* 179 */
15061
+ /* 180 */
14495
15062
  /***/ function(module, exports, __webpack_require__) {
14496
15063
 
14497
15064
  'use strict';
@@ -14508,7 +15075,7 @@ module.exports =
14508
15075
 
14509
15076
  var _reactDom2 = _interopRequireDefault(_reactDom);
14510
15077
 
14511
- var _domAlign = __webpack_require__(168);
15078
+ var _domAlign = __webpack_require__(169);
14512
15079
 
14513
15080
  var _domAlign2 = _interopRequireDefault(_domAlign);
14514
15081
 
@@ -14516,7 +15083,7 @@ module.exports =
14516
15083
 
14517
15084
  var _addEventListener2 = _interopRequireDefault(_addEventListener);
14518
15085
 
14519
- var _isWindow = __webpack_require__(181);
15086
+ var _isWindow = __webpack_require__(182);
14520
15087
 
14521
15088
  var _isWindow2 = _interopRequireDefault(_isWindow);
14522
15089
 
@@ -14650,7 +15217,7 @@ module.exports =
14650
15217
  module.exports = exports['default'];
14651
15218
 
14652
15219
  /***/ },
14653
- /* 180 */
15220
+ /* 181 */
14654
15221
  /***/ function(module, exports, __webpack_require__) {
14655
15222
 
14656
15223
  'use strict';
@@ -14659,7 +15226,7 @@ module.exports =
14659
15226
  value: true
14660
15227
  });
14661
15228
 
14662
- var _Align = __webpack_require__(179);
15229
+ var _Align = __webpack_require__(180);
14663
15230
 
14664
15231
  var _Align2 = _interopRequireDefault(_Align);
14665
15232
 
@@ -14670,7 +15237,7 @@ module.exports =
14670
15237
  module.exports = exports['default'];
14671
15238
 
14672
15239
  /***/ },
14673
- /* 181 */
15240
+ /* 182 */
14674
15241
  /***/ function(module, exports) {
14675
15242
 
14676
15243
  "use strict";
@@ -14687,7 +15254,7 @@ module.exports =
14687
15254
  module.exports = exports['default'];
14688
15255
 
14689
15256
  /***/ },
14690
- /* 182 */
15257
+ /* 183 */
14691
15258
  /***/ function(module, exports, __webpack_require__) {
14692
15259
 
14693
15260
  'use strict';
@@ -14702,9 +15269,9 @@ module.exports =
14702
15269
 
14703
15270
  var _react2 = _interopRequireDefault(_react);
14704
15271
 
14705
- var _ChildrenUtils = __webpack_require__(184);
15272
+ var _ChildrenUtils = __webpack_require__(185);
14706
15273
 
14707
- var _AnimateChild = __webpack_require__(183);
15274
+ var _AnimateChild = __webpack_require__(184);
14708
15275
 
14709
15276
  var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
14710
15277
 
@@ -15023,7 +15590,7 @@ module.exports =
15023
15590
  module.exports = exports['default'];
15024
15591
 
15025
15592
  /***/ },
15026
- /* 183 */
15593
+ /* 184 */
15027
15594
  /***/ function(module, exports, __webpack_require__) {
15028
15595
 
15029
15596
  'use strict';
@@ -15042,7 +15609,7 @@ module.exports =
15042
15609
 
15043
15610
  var _reactDom2 = _interopRequireDefault(_reactDom);
15044
15611
 
15045
- var _cssAnimation = __webpack_require__(162);
15612
+ var _cssAnimation = __webpack_require__(163);
15046
15613
 
15047
15614
  var _cssAnimation2 = _interopRequireDefault(_cssAnimation);
15048
15615
 
@@ -15134,7 +15701,7 @@ module.exports =
15134
15701
  module.exports = exports['default'];
15135
15702
 
15136
15703
  /***/ },
15137
- /* 184 */
15704
+ /* 185 */
15138
15705
  /***/ function(module, exports, __webpack_require__) {
15139
15706
 
15140
15707
  'use strict';
@@ -15256,16 +15823,16 @@ module.exports =
15256
15823
  }
15257
15824
 
15258
15825
  /***/ },
15259
- /* 185 */
15826
+ /* 186 */
15260
15827
  /***/ function(module, exports, __webpack_require__) {
15261
15828
 
15262
15829
  'use strict';
15263
15830
 
15264
15831
  // export this package's api
15265
- module.exports = __webpack_require__(182);
15832
+ module.exports = __webpack_require__(183);
15266
15833
 
15267
15834
  /***/ },
15268
- /* 186 */
15835
+ /* 187 */
15269
15836
  /***/ function(module, exports, __webpack_require__) {
15270
15837
 
15271
15838
  'use strict';
@@ -15278,7 +15845,7 @@ module.exports =
15278
15845
 
15279
15846
  var _react2 = _interopRequireDefault(_react);
15280
15847
 
15281
- var _Select = __webpack_require__(189);
15848
+ var _Select = __webpack_require__(190);
15282
15849
 
15283
15850
  var _Select2 = _interopRequireDefault(_Select);
15284
15851
 
@@ -15502,7 +16069,7 @@ module.exports =
15502
16069
  module.exports = exports['default'];
15503
16070
 
15504
16071
  /***/ },
15505
- /* 187 */
16072
+ /* 188 */
15506
16073
  /***/ function(module, exports, __webpack_require__) {
15507
16074
 
15508
16075
  'use strict';
@@ -15698,7 +16265,7 @@ module.exports =
15698
16265
  module.exports = exports['default'];
15699
16266
 
15700
16267
  /***/ },
15701
- /* 188 */
16268
+ /* 189 */
15702
16269
  /***/ function(module, exports, __webpack_require__) {
15703
16270
 
15704
16271
  'use strict';
@@ -15715,11 +16282,11 @@ module.exports =
15715
16282
 
15716
16283
  var _react2 = _interopRequireDefault(_react);
15717
16284
 
15718
- var _Header = __webpack_require__(187);
16285
+ var _Header = __webpack_require__(188);
15719
16286
 
15720
16287
  var _Header2 = _interopRequireDefault(_Header);
15721
16288
 
15722
- var _Combobox = __webpack_require__(186);
16289
+ var _Combobox = __webpack_require__(187);
15723
16290
 
15724
16291
  var _Combobox2 = _interopRequireDefault(_Combobox);
15725
16292
 
@@ -15892,7 +16459,7 @@ module.exports =
15892
16459
  module.exports = exports['default'];
15893
16460
 
15894
16461
  /***/ },
15895
- /* 189 */
16462
+ /* 190 */
15896
16463
  /***/ function(module, exports, __webpack_require__) {
15897
16464
 
15898
16465
  'use strict';
@@ -16053,7 +16620,7 @@ module.exports =
16053
16620
  module.exports = exports['default'];
16054
16621
 
16055
16622
  /***/ },
16056
- /* 190 */
16623
+ /* 191 */
16057
16624
  /***/ function(module, exports, __webpack_require__) {
16058
16625
 
16059
16626
  'use strict';
@@ -16066,15 +16633,15 @@ module.exports =
16066
16633
 
16067
16634
  var _react2 = _interopRequireDefault(_react);
16068
16635
 
16069
- var _rcTrigger = __webpack_require__(196);
16636
+ var _rcTrigger = __webpack_require__(197);
16070
16637
 
16071
16638
  var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
16072
16639
 
16073
- var _Panel = __webpack_require__(188);
16640
+ var _Panel = __webpack_require__(189);
16074
16641
 
16075
16642
  var _Panel2 = _interopRequireDefault(_Panel);
16076
16643
 
16077
- var _placements = __webpack_require__(192);
16644
+ var _placements = __webpack_require__(193);
16078
16645
 
16079
16646
  var _placements2 = _interopRequireDefault(_placements);
16080
16647
 
@@ -16356,7 +16923,7 @@ module.exports =
16356
16923
  module.exports = exports['default'];
16357
16924
 
16358
16925
  /***/ },
16359
- /* 191 */
16926
+ /* 192 */
16360
16927
  /***/ function(module, exports, __webpack_require__) {
16361
16928
 
16362
16929
  'use strict';
@@ -16365,7 +16932,7 @@ module.exports =
16365
16932
  value: true
16366
16933
  });
16367
16934
 
16368
- var _TimePicker = __webpack_require__(190);
16935
+ var _TimePicker = __webpack_require__(191);
16369
16936
 
16370
16937
  var _TimePicker2 = _interopRequireDefault(_TimePicker);
16371
16938
 
@@ -16375,7 +16942,7 @@ module.exports =
16375
16942
  module.exports = exports['default'];
16376
16943
 
16377
16944
  /***/ },
16378
- /* 192 */
16945
+ /* 193 */
16379
16946
  /***/ function(module, exports) {
16380
16947
 
16381
16948
  'use strict';
@@ -16421,7 +16988,7 @@ module.exports =
16421
16988
  module.exports = exports['default'];
16422
16989
 
16423
16990
  /***/ },
16424
- /* 193 */
16991
+ /* 194 */
16425
16992
  /***/ function(module, exports, __webpack_require__) {
16426
16993
 
16427
16994
  'use strict';
@@ -16442,15 +17009,15 @@ module.exports =
16442
17009
 
16443
17010
  var _reactDom2 = _interopRequireDefault(_reactDom);
16444
17011
 
16445
- var _rcAlign = __webpack_require__(180);
17012
+ var _rcAlign = __webpack_require__(181);
16446
17013
 
16447
17014
  var _rcAlign2 = _interopRequireDefault(_rcAlign);
16448
17015
 
16449
- var _rcAnimate = __webpack_require__(185);
17016
+ var _rcAnimate = __webpack_require__(186);
16450
17017
 
16451
17018
  var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
16452
17019
 
16453
- var _PopupInner = __webpack_require__(194);
17020
+ var _PopupInner = __webpack_require__(195);
16454
17021
 
16455
17022
  var _PopupInner2 = _interopRequireDefault(_PopupInner);
16456
17023
 
@@ -16652,7 +17219,7 @@ module.exports =
16652
17219
  module.exports = exports['default'];
16653
17220
 
16654
17221
  /***/ },
16655
- /* 194 */
17222
+ /* 195 */
16656
17223
  /***/ function(module, exports, __webpack_require__) {
16657
17224
 
16658
17225
  'use strict';
@@ -16709,7 +17276,7 @@ module.exports =
16709
17276
  module.exports = exports['default'];
16710
17277
 
16711
17278
  /***/ },
16712
- /* 195 */
17279
+ /* 196 */
16713
17280
  /***/ function(module, exports, __webpack_require__) {
16714
17281
 
16715
17282
  'use strict';
@@ -16730,7 +17297,7 @@ module.exports =
16730
17297
 
16731
17298
  var _reactDom2 = _interopRequireDefault(_reactDom);
16732
17299
 
16733
- var _contains = __webpack_require__(198);
17300
+ var _contains = __webpack_require__(199);
16734
17301
 
16735
17302
  var _contains2 = _interopRequireDefault(_contains);
16736
17303
 
@@ -16738,13 +17305,13 @@ module.exports =
16738
17305
 
16739
17306
  var _addEventListener2 = _interopRequireDefault(_addEventListener);
16740
17307
 
16741
- var _Popup = __webpack_require__(193);
17308
+ var _Popup = __webpack_require__(194);
16742
17309
 
16743
17310
  var _Popup2 = _interopRequireDefault(_Popup);
16744
17311
 
16745
- var _utils = __webpack_require__(197);
17312
+ var _utils = __webpack_require__(198);
16746
17313
 
16747
- var _getContainerRenderMixin = __webpack_require__(199);
17314
+ var _getContainerRenderMixin = __webpack_require__(200);
16748
17315
 
16749
17316
  var _getContainerRenderMixin2 = _interopRequireDefault(_getContainerRenderMixin);
16750
17317
 
@@ -17208,15 +17775,15 @@ module.exports =
17208
17775
  module.exports = exports['default'];
17209
17776
 
17210
17777
  /***/ },
17211
- /* 196 */
17778
+ /* 197 */
17212
17779
  /***/ function(module, exports, __webpack_require__) {
17213
17780
 
17214
17781
  'use strict';
17215
17782
 
17216
- module.exports = __webpack_require__(195);
17783
+ module.exports = __webpack_require__(196);
17217
17784
 
17218
17785
  /***/ },
17219
- /* 197 */
17786
+ /* 198 */
17220
17787
  /***/ function(module, exports, __webpack_require__) {
17221
17788
 
17222
17789
  'use strict';
@@ -17256,7 +17823,7 @@ module.exports =
17256
17823
  }
17257
17824
 
17258
17825
  /***/ },
17259
- /* 198 */
17826
+ /* 199 */
17260
17827
  /***/ function(module, exports) {
17261
17828
 
17262
17829
  "use strict";
@@ -17279,7 +17846,7 @@ module.exports =
17279
17846
  module.exports = exports['default'];
17280
17847
 
17281
17848
  /***/ },
17282
- /* 199 */
17849
+ /* 200 */
17283
17850
  /***/ function(module, exports, __webpack_require__) {
17284
17851
 
17285
17852
  'use strict';
@@ -17384,8 +17951,8 @@ module.exports =
17384
17951
  module.exports = exports['default'];
17385
17952
 
17386
17953
  /***/ },
17387
- /* 200 */,
17388
- /* 201 */
17954
+ /* 201 */,
17955
+ /* 202 */
17389
17956
  /***/ function(module, exports, __webpack_require__) {
17390
17957
 
17391
17958
  'use strict';
@@ -17394,19 +17961,19 @@ module.exports =
17394
17961
 
17395
17962
  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; };
17396
17963
 
17397
- var _addClass = __webpack_require__(203);
17964
+ var _addClass = __webpack_require__(204);
17398
17965
 
17399
17966
  var _addClass2 = _interopRequireDefault(_addClass);
17400
17967
 
17401
- var _removeClass = __webpack_require__(205);
17968
+ var _removeClass = __webpack_require__(206);
17402
17969
 
17403
17970
  var _removeClass2 = _interopRequireDefault(_removeClass);
17404
17971
 
17405
- var _requestAnimationFrame = __webpack_require__(207);
17972
+ var _requestAnimationFrame = __webpack_require__(208);
17406
17973
 
17407
17974
  var _requestAnimationFrame2 = _interopRequireDefault(_requestAnimationFrame);
17408
17975
 
17409
- var _properties = __webpack_require__(206);
17976
+ var _properties = __webpack_require__(207);
17410
17977
 
17411
17978
  var _react = __webpack_require__(1);
17412
17979
 
@@ -17619,7 +18186,7 @@ module.exports =
17619
18186
  module.exports = exports['default'];
17620
18187
 
17621
18188
  /***/ },
17622
- /* 202 */
18189
+ /* 203 */
17623
18190
  /***/ function(module, exports, __webpack_require__) {
17624
18191
 
17625
18192
  'use strict';
@@ -17628,7 +18195,7 @@ module.exports =
17628
18195
 
17629
18196
  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; };
17630
18197
 
17631
- var _chainFunction = __webpack_require__(159);
18198
+ var _chainFunction = __webpack_require__(160);
17632
18199
 
17633
18200
  var _chainFunction2 = _interopRequireDefault(_chainFunction);
17634
18201
 
@@ -17640,11 +18207,11 @@ module.exports =
17640
18207
 
17641
18208
  var _propTypes2 = _interopRequireDefault(_propTypes);
17642
18209
 
17643
- var _warning = __webpack_require__(209);
18210
+ var _warning = __webpack_require__(210);
17644
18211
 
17645
18212
  var _warning2 = _interopRequireDefault(_warning);
17646
18213
 
17647
- var _ChildMapping = __webpack_require__(208);
18214
+ var _ChildMapping = __webpack_require__(209);
17648
18215
 
17649
18216
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17650
18217
 
@@ -17896,7 +18463,7 @@ module.exports =
17896
18463
  module.exports = exports['default'];
17897
18464
 
17898
18465
  /***/ },
17899
- /* 203 */
18466
+ /* 204 */
17900
18467
  /***/ function(module, exports, __webpack_require__) {
17901
18468
 
17902
18469
  'use strict';
@@ -17906,7 +18473,7 @@ module.exports =
17906
18473
  });
17907
18474
  exports.default = addClass;
17908
18475
 
17909
- var _hasClass = __webpack_require__(204);
18476
+ var _hasClass = __webpack_require__(205);
17910
18477
 
17911
18478
  var _hasClass2 = _interopRequireDefault(_hasClass);
17912
18479
 
@@ -17918,7 +18485,7 @@ module.exports =
17918
18485
  module.exports = exports['default'];
17919
18486
 
17920
18487
  /***/ },
17921
- /* 204 */
18488
+ /* 205 */
17922
18489
  /***/ function(module, exports) {
17923
18490
 
17924
18491
  "use strict";
@@ -17933,7 +18500,7 @@ module.exports =
17933
18500
  module.exports = exports["default"];
17934
18501
 
17935
18502
  /***/ },
17936
- /* 205 */
18503
+ /* 206 */
17937
18504
  /***/ function(module, exports) {
17938
18505
 
17939
18506
  'use strict';
@@ -17943,7 +18510,7 @@ module.exports =
17943
18510
  };
17944
18511
 
17945
18512
  /***/ },
17946
- /* 206 */
18513
+ /* 207 */
17947
18514
  /***/ function(module, exports, __webpack_require__) {
17948
18515
 
17949
18516
  'use strict';
@@ -18058,7 +18625,7 @@ module.exports =
18058
18625
  }
18059
18626
 
18060
18627
  /***/ },
18061
- /* 207 */
18628
+ /* 208 */
18062
18629
  /***/ function(module, exports, __webpack_require__) {
18063
18630
 
18064
18631
  'use strict';
@@ -18116,7 +18683,7 @@ module.exports =
18116
18683
  module.exports = exports['default'];
18117
18684
 
18118
18685
  /***/ },
18119
- /* 208 */
18686
+ /* 209 */
18120
18687
  /***/ function(module, exports, __webpack_require__) {
18121
18688
 
18122
18689
  'use strict';
@@ -18212,7 +18779,7 @@ module.exports =
18212
18779
  }
18213
18780
 
18214
18781
  /***/ },
18215
- /* 209 */
18782
+ /* 210 */
18216
18783
  /***/ function(module, exports, __webpack_require__) {
18217
18784
 
18218
18785
  /**
@@ -18278,13 +18845,13 @@ module.exports =
18278
18845
 
18279
18846
 
18280
18847
  /***/ },
18281
- /* 210 */
18848
+ /* 211 */
18282
18849
  /***/ function(module, exports) {
18283
18850
 
18284
18851
  module.exports = require("moment-timezone");
18285
18852
 
18286
18853
  /***/ },
18287
- /* 211 */
18854
+ /* 212 */
18288
18855
  /***/ function(module, exports) {
18289
18856
 
18290
18857
  module.exports = require("redux");