@lingk/sync 0.1.71 → 0.1.72

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
  };
@@ -434,8 +436,8 @@ module.exports =
434
436
  if (trans.type === 'concat') {
435
437
  (function () {
436
438
  var s = trans.args[1].split('->');
437
- var transConcatResourceName = s[s.length - 2];
438
- var nestedFields = s[s.length - 1].split('.');
439
+ var transConcatResourceName = s[0];
440
+ var nestedFields = s[1].split('.');
439
441
  var field = nestedFields[nestedFields.length - 1];
440
442
  nestedFields.pop();
441
443
  var concatRsc = wizard.savedBundles.bundles[m.bundleIndex].resources.find(function (r) {
@@ -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
 
@@ -2511,7 +2533,7 @@ module.exports =
2511
2533
  }) : group;
2512
2534
  group.name = destinationResource.type;
2513
2535
  group.resourceLabel = destinationResource.name;
2514
- group.provider = targetProvider.toLowerCase();
2536
+ group.provider = targetProvider;
2515
2537
  if (destinationResource.recordTypeId) {
2516
2538
  group.recordTypeId = destinationResource.recordTypeId;
2517
2539
  }
@@ -2598,8 +2620,8 @@ module.exports =
2598
2620
 
2599
2621
  var transConcatSourceResourceProvider = group.resources.find(function (r) {
2600
2622
  return r.name === s[0];
2601
- }).provider.toLowerCase();
2602
- var transConcatSourceMetadata = transConcatSourceResourceProvider === targetProvider.toLowerCase() ? targetMetadata : sourceMetadata;
2623
+ }).provider;
2624
+ var transConcatSourceMetadata = transConcatSourceResourceProvider.toLowerCase() === targetProvider.toLowerCase() ? targetMetadata : sourceMetadata;
2603
2625
  var transConcatSourceResource = transConcatSourceMetadata.find(function (rsc) {
2604
2626
  return rsc.name === s[0];
2605
2627
  });
@@ -2608,7 +2630,7 @@ module.exports =
2608
2630
  var field = nestedFields[nestedFields.length - 1];
2609
2631
  nestedFields.pop();
2610
2632
  var transSourceApiNames = findNestedProp(field, nestedFields, transConcatSourceResource);
2611
- r = transConcatSourceResourceProvider + '->' + transConcatSourceResource.type + '->';
2633
+ r = transConcatSourceResource.type + '->';
2612
2634
 
2613
2635
  transSourceApiNames.parentsArray.forEach(function (p) {
2614
2636
  return r += p + '.';
@@ -2682,7 +2704,7 @@ module.exports =
2682
2704
  return Object.assign({
2683
2705
  resourceName: sourceResource.type,
2684
2706
  resourceLabel: sourceResource.name,
2685
- resourceNameAndProvider: sourceResource.type + '_' + rsc.provider.toLowerCase(),
2707
+ resourceNameAndProvider: sourceResource.type + '_' + rsc.provider,
2686
2708
  joinKeyName: nestedJoinKey.property,
2687
2709
  joinKeyResource: joinKeyResource
2688
2710
  }, nestedJoinKey.parentsArray && nestedJoinKey.parentsArray.length > 0 && { joinKeyParents: nestedJoinKey.parentsArray }, {
@@ -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
- };
9694
-
9695
- var Oauth = function Oauth(_ref) {
9696
- var step = _ref.step,
9697
- 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;
9704
- 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(
9729
- 'div',
9730
- 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
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' }),
9748
10205
  _react2.default.createElement('br', null),
9749
10206
  _react2.default.createElement('br', null),
9750
- _react2.default.createElement(
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
+ }]);
10214
+
10215
+ return EnvStep;
10216
+ }(_react.Component);
10217
+
10218
+ var PreviewModal = function PreviewModal(_ref) {
10219
+ var inputs = _ref.inputs,
10220
+ onHide = _ref.onHide,
10221
+ wizard = _ref.wizard,
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
+
10237
+ return _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(
10245
+ 'div',
10246
+ null,
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';
@@ -10156,7 +10720,7 @@ module.exports =
10156
10720
  )
10157
10721
  )
10158
10722
  ),
10159
- wizard[step.mode + 'Metadata'] && step.mode === 'source' && step.bidirectional && POSTS && POSTS.length > 0 && _react2.default.createElement(
10723
+ wizard[step.mode + 'Metadata'] && step.mode === 'source' && step.bidirectional && _react2.default.createElement(
10160
10724
  'div',
10161
10725
  null,
10162
10726
  _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
 
@@ -12068,7 +12641,6 @@ module.exports =
12068
12641
  _this3.props.hideModal();
12069
12642
  });
12070
12643
  } else {
12071
- this.setState({ loading: true });
12072
12644
  var _props3 = this.props,
12073
12645
  resourceGroups = _props3.resourceGroups,
12074
12646
  sourceMetadata = _props3.sourceMetadata,
@@ -12084,6 +12656,7 @@ module.exports =
12084
12656
  var data = { bundles: bundles, mappings: mappings, title: title, label: description, typeGuid: step.typeGuid, isReverse: isReverse };
12085
12657
 
12086
12658
  actions.callCreateScenario(tenantId, accountId, data).then(function () {
12659
+ _this3.setState({ loading: true });
12087
12660
  actions.callGetScenarioList(tenantId, accountId, step.typeGuid).then(function (r) {
12088
12661
  _this3.setState({ loading: false });
12089
12662
  _this3.props.hideModal();
@@ -12212,9 +12785,9 @@ module.exports =
12212
12785
  var s = scenarios.find(function (sce) {
12213
12786
  return String(sce.id) === so;
12214
12787
  });
12215
- return s ? _react2.default.createElement(
12788
+ return _react2.default.createElement(
12216
12789
  'div',
12217
- { key: i, style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', position: 'relative', height: 19, width: '100%' } },
12790
+ { key: s.id, style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', position: 'relative', height: 19, width: '100%' } },
12218
12791
  _react2.default.createElement(
12219
12792
  'span',
12220
12793
  { style: i !== 0 ? { cursor: 'pointer' } : { color: '#DDD' },
@@ -12243,7 +12816,7 @@ module.exports =
12243
12816
  }, style: { position: 'absolute', right: 9, top: 0, color: '#c23934', cursor: 'pointer' } },
12244
12817
  'x'
12245
12818
  )
12246
- ) : _react2.default.createElement('span', { key: i });
12819
+ );
12247
12820
  })
12248
12821
  )
12249
12822
  ),
@@ -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,25 @@ 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
- {
13381
+ },
13382
+ /*{
12809
13383
  type: 'environment',
12810
13384
  title: 'Source Environment',
12811
- mode: 'source'
12812
- }, {
13385
+ mode: 'source',
13386
+ },
13387
+ {
12813
13388
  type: 'environment',
12814
13389
  title: 'Target Environment',
12815
- mode: 'destination'
12816
- }, {
13390
+ mode: 'destination',
13391
+ },*/
13392
+ /*{
12817
13393
  type: 'filter',
12818
13394
  title: 'Source Filter'
12819
- }, {
13395
+ },*/
13396
+ {
12820
13397
  type: 'scenario',
12821
13398
  title: 'Data Scenario'
12822
13399
  }, {
@@ -12941,21 +13518,21 @@ module.exports =
12941
13518
  exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(LingkSync);
12942
13519
 
12943
13520
  /***/ },
12944
- /* 127 */,
12945
- /* 128 */
13521
+ /* 128 */,
13522
+ /* 129 */
12946
13523
  /***/ function(module, exports, __webpack_require__) {
12947
13524
 
12948
- module.exports = { "default": __webpack_require__(133), __esModule: true };
13525
+ module.exports = { "default": __webpack_require__(134), __esModule: true };
12949
13526
 
12950
13527
  /***/ },
12951
- /* 129 */
13528
+ /* 130 */
12952
13529
  /***/ function(module, exports, __webpack_require__) {
12953
13530
 
12954
- module.exports = { "default": __webpack_require__(134), __esModule: true };
13531
+ module.exports = { "default": __webpack_require__(135), __esModule: true };
12955
13532
 
12956
13533
  /***/ },
12957
- /* 130 */,
12958
- /* 131 */
13534
+ /* 131 */,
13535
+ /* 132 */
12959
13536
  /***/ function(module, exports) {
12960
13537
 
12961
13538
  "use strict";
@@ -12975,39 +13552,39 @@ module.exports =
12975
13552
  };
12976
13553
 
12977
13554
  /***/ },
12978
- /* 132 */,
12979
- /* 133 */
13555
+ /* 133 */,
13556
+ /* 134 */
12980
13557
  /***/ function(module, exports, __webpack_require__) {
12981
13558
 
12982
- __webpack_require__(154);
13559
+ __webpack_require__(155);
12983
13560
  module.exports = __webpack_require__(8).Object.assign;
12984
13561
 
12985
13562
  /***/ },
12986
- /* 134 */
13563
+ /* 135 */
12987
13564
  /***/ function(module, exports, __webpack_require__) {
12988
13565
 
12989
- __webpack_require__(155);
13566
+ __webpack_require__(156);
12990
13567
  var $Object = __webpack_require__(8).Object;
12991
13568
  module.exports = function defineProperty(it, key, desc){
12992
13569
  return $Object.defineProperty(it, key, desc);
12993
13570
  };
12994
13571
 
12995
13572
  /***/ },
12996
- /* 135 */,
12997
13573
  /* 136 */,
12998
13574
  /* 137 */,
12999
13575
  /* 138 */,
13000
13576
  /* 139 */,
13001
13577
  /* 140 */,
13002
13578
  /* 141 */,
13003
- /* 142 */
13579
+ /* 142 */,
13580
+ /* 143 */
13004
13581
  /***/ function(module, exports, __webpack_require__) {
13005
13582
 
13006
13583
  'use strict';
13007
13584
  // 19.1.2.1 Object.assign(target, source, ...)
13008
13585
  var getKeys = __webpack_require__(33)
13009
- , gOPS = __webpack_require__(145)
13010
- , pIE = __webpack_require__(147)
13586
+ , gOPS = __webpack_require__(146)
13587
+ , pIE = __webpack_require__(148)
13011
13588
  , toObject = __webpack_require__(36)
13012
13589
  , IObject = __webpack_require__(31)
13013
13590
  , $assign = Object.assign;
@@ -13038,48 +13615,48 @@ module.exports =
13038
13615
  } : $assign;
13039
13616
 
13040
13617
  /***/ },
13041
- /* 143 */,
13042
13618
  /* 144 */,
13043
- /* 145 */
13619
+ /* 145 */,
13620
+ /* 146 */
13044
13621
  /***/ function(module, exports) {
13045
13622
 
13046
13623
  exports.f = Object.getOwnPropertySymbols;
13047
13624
 
13048
13625
  /***/ },
13049
- /* 146 */,
13050
- /* 147 */
13626
+ /* 147 */,
13627
+ /* 148 */
13051
13628
  /***/ function(module, exports) {
13052
13629
 
13053
13630
  exports.f = {}.propertyIsEnumerable;
13054
13631
 
13055
13632
  /***/ },
13056
- /* 148 */,
13057
13633
  /* 149 */,
13058
13634
  /* 150 */,
13059
13635
  /* 151 */,
13060
13636
  /* 152 */,
13061
13637
  /* 153 */,
13062
- /* 154 */
13638
+ /* 154 */,
13639
+ /* 155 */
13063
13640
  /***/ function(module, exports, __webpack_require__) {
13064
13641
 
13065
13642
  // 19.1.3.1 Object.assign(target, source)
13066
- var $export = __webpack_require__(23);
13643
+ var $export = __webpack_require__(24);
13067
13644
 
13068
- $export($export.S + $export.F, 'Object', {assign: __webpack_require__(142)});
13645
+ $export($export.S + $export.F, 'Object', {assign: __webpack_require__(143)});
13069
13646
 
13070
13647
  /***/ },
13071
- /* 155 */
13648
+ /* 156 */
13072
13649
  /***/ function(module, exports, __webpack_require__) {
13073
13650
 
13074
- var $export = __webpack_require__(23);
13651
+ var $export = __webpack_require__(24);
13075
13652
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
13076
13653
  $export($export.S + $export.F * !__webpack_require__(9), 'Object', {defineProperty: __webpack_require__(18).f});
13077
13654
 
13078
13655
  /***/ },
13079
- /* 156 */,
13080
13656
  /* 157 */,
13081
13657
  /* 158 */,
13082
- /* 159 */
13658
+ /* 159 */,
13659
+ /* 160 */
13083
13660
  /***/ function(module, exports) {
13084
13661
 
13085
13662
 
@@ -13105,7 +13682,7 @@ module.exports =
13105
13682
 
13106
13683
 
13107
13684
  /***/ },
13108
- /* 160 */
13685
+ /* 161 */
13109
13686
  /***/ function(module, exports, __webpack_require__) {
13110
13687
 
13111
13688
  /**
@@ -13302,7 +13879,7 @@ module.exports =
13302
13879
 
13303
13880
 
13304
13881
  /***/ },
13305
- /* 161 */
13882
+ /* 162 */
13306
13883
  /***/ function(module, exports) {
13307
13884
 
13308
13885
  'use strict';
@@ -13395,7 +13972,7 @@ module.exports =
13395
13972
  module.exports = exports['default'];
13396
13973
 
13397
13974
  /***/ },
13398
- /* 162 */
13975
+ /* 163 */
13399
13976
  /***/ function(module, exports, __webpack_require__) {
13400
13977
 
13401
13978
  'use strict';
@@ -13406,11 +13983,11 @@ module.exports =
13406
13983
 
13407
13984
  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
13985
 
13409
- var _Event = __webpack_require__(161);
13986
+ var _Event = __webpack_require__(162);
13410
13987
 
13411
13988
  var _Event2 = _interopRequireDefault(_Event);
13412
13989
 
13413
- var _componentClasses = __webpack_require__(160);
13990
+ var _componentClasses = __webpack_require__(161);
13414
13991
 
13415
13992
  var _componentClasses2 = _interopRequireDefault(_componentClasses);
13416
13993
 
@@ -13590,7 +14167,7 @@ module.exports =
13590
14167
  module.exports = exports['default'];
13591
14168
 
13592
14169
  /***/ },
13593
- /* 163 */
14170
+ /* 164 */
13594
14171
  /***/ function(module, exports, __webpack_require__) {
13595
14172
 
13596
14173
  'use strict';
@@ -13599,7 +14176,7 @@ module.exports =
13599
14176
  value: true
13600
14177
  });
13601
14178
 
13602
- var _utils = __webpack_require__(25);
14179
+ var _utils = __webpack_require__(26);
13603
14180
 
13604
14181
  var _utils2 = _interopRequireDefault(_utils);
13605
14182
 
@@ -13650,7 +14227,7 @@ module.exports =
13650
14227
  module.exports = exports['default'];
13651
14228
 
13652
14229
  /***/ },
13653
- /* 164 */
14230
+ /* 165 */
13654
14231
  /***/ function(module, exports) {
13655
14232
 
13656
14233
  'use strict';
@@ -13695,7 +14272,7 @@ module.exports =
13695
14272
  module.exports = exports['default'];
13696
14273
 
13697
14274
  /***/ },
13698
- /* 165 */
14275
+ /* 166 */
13699
14276
  /***/ function(module, exports, __webpack_require__) {
13700
14277
 
13701
14278
  'use strict';
@@ -13704,7 +14281,7 @@ module.exports =
13704
14281
  value: true
13705
14282
  });
13706
14283
 
13707
- var _getAlignOffset = __webpack_require__(164);
14284
+ var _getAlignOffset = __webpack_require__(165);
13708
14285
 
13709
14286
  var _getAlignOffset2 = _interopRequireDefault(_getAlignOffset);
13710
14287
 
@@ -13736,7 +14313,7 @@ module.exports =
13736
14313
  module.exports = exports['default'];
13737
14314
 
13738
14315
  /***/ },
13739
- /* 166 */
14316
+ /* 167 */
13740
14317
  /***/ function(module, exports, __webpack_require__) {
13741
14318
 
13742
14319
  'use strict';
@@ -13745,7 +14322,7 @@ module.exports =
13745
14322
  value: true
13746
14323
  });
13747
14324
 
13748
- var _utils = __webpack_require__(25);
14325
+ var _utils = __webpack_require__(26);
13749
14326
 
13750
14327
  var _utils2 = _interopRequireDefault(_utils);
13751
14328
 
@@ -13777,7 +14354,7 @@ module.exports =
13777
14354
  module.exports = exports['default'];
13778
14355
 
13779
14356
  /***/ },
13780
- /* 167 */
14357
+ /* 168 */
13781
14358
  /***/ function(module, exports, __webpack_require__) {
13782
14359
 
13783
14360
  'use strict';
@@ -13786,7 +14363,7 @@ module.exports =
13786
14363
  value: true
13787
14364
  });
13788
14365
 
13789
- var _utils = __webpack_require__(25);
14366
+ var _utils = __webpack_require__(26);
13790
14367
 
13791
14368
  var _utils2 = _interopRequireDefault(_utils);
13792
14369
 
@@ -13858,7 +14435,7 @@ module.exports =
13858
14435
  module.exports = exports['default'];
13859
14436
 
13860
14437
  /***/ },
13861
- /* 168 */
14438
+ /* 169 */
13862
14439
  /***/ function(module, exports, __webpack_require__) {
13863
14440
 
13864
14441
  'use strict';
@@ -13867,7 +14444,7 @@ module.exports =
13867
14444
  value: true
13868
14445
  });
13869
14446
 
13870
- var _utils = __webpack_require__(25);
14447
+ var _utils = __webpack_require__(26);
13871
14448
 
13872
14449
  var _utils2 = _interopRequireDefault(_utils);
13873
14450
 
@@ -13875,19 +14452,19 @@ module.exports =
13875
14452
 
13876
14453
  var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);
13877
14454
 
13878
- var _getVisibleRectForElement = __webpack_require__(167);
14455
+ var _getVisibleRectForElement = __webpack_require__(168);
13879
14456
 
13880
14457
  var _getVisibleRectForElement2 = _interopRequireDefault(_getVisibleRectForElement);
13881
14458
 
13882
- var _adjustForViewport = __webpack_require__(163);
14459
+ var _adjustForViewport = __webpack_require__(164);
13883
14460
 
13884
14461
  var _adjustForViewport2 = _interopRequireDefault(_adjustForViewport);
13885
14462
 
13886
- var _getRegion = __webpack_require__(166);
14463
+ var _getRegion = __webpack_require__(167);
13887
14464
 
13888
14465
  var _getRegion2 = _interopRequireDefault(_getRegion);
13889
14466
 
13890
- var _getElFuturePos = __webpack_require__(165);
14467
+ var _getElFuturePos = __webpack_require__(166);
13891
14468
 
13892
14469
  var _getElFuturePos2 = _interopRequireDefault(_getElFuturePos);
13893
14470
 
@@ -14089,7 +14666,7 @@ module.exports =
14089
14666
  module.exports = exports['default'];
14090
14667
 
14091
14668
  /***/ },
14092
- /* 169 */
14669
+ /* 170 */
14093
14670
  /***/ function(module, exports) {
14094
14671
 
14095
14672
  'use strict';
@@ -14204,17 +14781,17 @@ module.exports =
14204
14781
  }
14205
14782
 
14206
14783
  /***/ },
14207
- /* 170 */
14784
+ /* 171 */
14208
14785
  /***/ function(module, exports) {
14209
14786
 
14210
14787
  // removed by extract-text-webpack-plugin
14211
14788
 
14212
14789
  /***/ },
14213
- /* 171 */
14214
- 170,
14215
- /* 172 */,
14790
+ /* 172 */
14791
+ 171,
14216
14792
  /* 173 */,
14217
- /* 174 */
14793
+ /* 174 */,
14794
+ /* 175 */
14218
14795
  /***/ function(module, exports) {
14219
14796
 
14220
14797
  'use strict';
@@ -14303,7 +14880,7 @@ module.exports =
14303
14880
 
14304
14881
 
14305
14882
  /***/ },
14306
- /* 175 */
14883
+ /* 176 */
14307
14884
  /***/ function(module, exports, __webpack_require__) {
14308
14885
 
14309
14886
  /**
@@ -14317,9 +14894,9 @@ module.exports =
14317
14894
 
14318
14895
  'use strict';
14319
14896
 
14320
- var emptyFunction = __webpack_require__(177);
14321
- var invariant = __webpack_require__(178);
14322
- var ReactPropTypesSecret = __webpack_require__(176);
14897
+ var emptyFunction = __webpack_require__(178);
14898
+ var invariant = __webpack_require__(179);
14899
+ var ReactPropTypesSecret = __webpack_require__(177);
14323
14900
 
14324
14901
  module.exports = function() {
14325
14902
  function shim(props, propName, componentName, location, propFullName, secret) {
@@ -14368,7 +14945,7 @@ module.exports =
14368
14945
 
14369
14946
 
14370
14947
  /***/ },
14371
- /* 176 */
14948
+ /* 177 */
14372
14949
  /***/ function(module, exports) {
14373
14950
 
14374
14951
  /**
@@ -14388,7 +14965,7 @@ module.exports =
14388
14965
 
14389
14966
 
14390
14967
  /***/ },
14391
- /* 177 */
14968
+ /* 178 */
14392
14969
  /***/ function(module, exports) {
14393
14970
 
14394
14971
  "use strict";
@@ -14431,7 +15008,7 @@ module.exports =
14431
15008
  module.exports = emptyFunction;
14432
15009
 
14433
15010
  /***/ },
14434
- /* 178 */
15011
+ /* 179 */
14435
15012
  /***/ function(module, exports, __webpack_require__) {
14436
15013
 
14437
15014
  /**
@@ -14491,7 +15068,7 @@ module.exports =
14491
15068
  module.exports = invariant;
14492
15069
 
14493
15070
  /***/ },
14494
- /* 179 */
15071
+ /* 180 */
14495
15072
  /***/ function(module, exports, __webpack_require__) {
14496
15073
 
14497
15074
  'use strict';
@@ -14508,7 +15085,7 @@ module.exports =
14508
15085
 
14509
15086
  var _reactDom2 = _interopRequireDefault(_reactDom);
14510
15087
 
14511
- var _domAlign = __webpack_require__(168);
15088
+ var _domAlign = __webpack_require__(169);
14512
15089
 
14513
15090
  var _domAlign2 = _interopRequireDefault(_domAlign);
14514
15091
 
@@ -14516,7 +15093,7 @@ module.exports =
14516
15093
 
14517
15094
  var _addEventListener2 = _interopRequireDefault(_addEventListener);
14518
15095
 
14519
- var _isWindow = __webpack_require__(181);
15096
+ var _isWindow = __webpack_require__(182);
14520
15097
 
14521
15098
  var _isWindow2 = _interopRequireDefault(_isWindow);
14522
15099
 
@@ -14650,7 +15227,7 @@ module.exports =
14650
15227
  module.exports = exports['default'];
14651
15228
 
14652
15229
  /***/ },
14653
- /* 180 */
15230
+ /* 181 */
14654
15231
  /***/ function(module, exports, __webpack_require__) {
14655
15232
 
14656
15233
  'use strict';
@@ -14659,7 +15236,7 @@ module.exports =
14659
15236
  value: true
14660
15237
  });
14661
15238
 
14662
- var _Align = __webpack_require__(179);
15239
+ var _Align = __webpack_require__(180);
14663
15240
 
14664
15241
  var _Align2 = _interopRequireDefault(_Align);
14665
15242
 
@@ -14670,7 +15247,7 @@ module.exports =
14670
15247
  module.exports = exports['default'];
14671
15248
 
14672
15249
  /***/ },
14673
- /* 181 */
15250
+ /* 182 */
14674
15251
  /***/ function(module, exports) {
14675
15252
 
14676
15253
  "use strict";
@@ -14687,7 +15264,7 @@ module.exports =
14687
15264
  module.exports = exports['default'];
14688
15265
 
14689
15266
  /***/ },
14690
- /* 182 */
15267
+ /* 183 */
14691
15268
  /***/ function(module, exports, __webpack_require__) {
14692
15269
 
14693
15270
  'use strict';
@@ -14702,9 +15279,9 @@ module.exports =
14702
15279
 
14703
15280
  var _react2 = _interopRequireDefault(_react);
14704
15281
 
14705
- var _ChildrenUtils = __webpack_require__(184);
15282
+ var _ChildrenUtils = __webpack_require__(185);
14706
15283
 
14707
- var _AnimateChild = __webpack_require__(183);
15284
+ var _AnimateChild = __webpack_require__(184);
14708
15285
 
14709
15286
  var _AnimateChild2 = _interopRequireDefault(_AnimateChild);
14710
15287
 
@@ -15023,7 +15600,7 @@ module.exports =
15023
15600
  module.exports = exports['default'];
15024
15601
 
15025
15602
  /***/ },
15026
- /* 183 */
15603
+ /* 184 */
15027
15604
  /***/ function(module, exports, __webpack_require__) {
15028
15605
 
15029
15606
  'use strict';
@@ -15042,7 +15619,7 @@ module.exports =
15042
15619
 
15043
15620
  var _reactDom2 = _interopRequireDefault(_reactDom);
15044
15621
 
15045
- var _cssAnimation = __webpack_require__(162);
15622
+ var _cssAnimation = __webpack_require__(163);
15046
15623
 
15047
15624
  var _cssAnimation2 = _interopRequireDefault(_cssAnimation);
15048
15625
 
@@ -15134,7 +15711,7 @@ module.exports =
15134
15711
  module.exports = exports['default'];
15135
15712
 
15136
15713
  /***/ },
15137
- /* 184 */
15714
+ /* 185 */
15138
15715
  /***/ function(module, exports, __webpack_require__) {
15139
15716
 
15140
15717
  'use strict';
@@ -15256,16 +15833,16 @@ module.exports =
15256
15833
  }
15257
15834
 
15258
15835
  /***/ },
15259
- /* 185 */
15836
+ /* 186 */
15260
15837
  /***/ function(module, exports, __webpack_require__) {
15261
15838
 
15262
15839
  'use strict';
15263
15840
 
15264
15841
  // export this package's api
15265
- module.exports = __webpack_require__(182);
15842
+ module.exports = __webpack_require__(183);
15266
15843
 
15267
15844
  /***/ },
15268
- /* 186 */
15845
+ /* 187 */
15269
15846
  /***/ function(module, exports, __webpack_require__) {
15270
15847
 
15271
15848
  'use strict';
@@ -15278,7 +15855,7 @@ module.exports =
15278
15855
 
15279
15856
  var _react2 = _interopRequireDefault(_react);
15280
15857
 
15281
- var _Select = __webpack_require__(189);
15858
+ var _Select = __webpack_require__(190);
15282
15859
 
15283
15860
  var _Select2 = _interopRequireDefault(_Select);
15284
15861
 
@@ -15502,7 +16079,7 @@ module.exports =
15502
16079
  module.exports = exports['default'];
15503
16080
 
15504
16081
  /***/ },
15505
- /* 187 */
16082
+ /* 188 */
15506
16083
  /***/ function(module, exports, __webpack_require__) {
15507
16084
 
15508
16085
  'use strict';
@@ -15698,7 +16275,7 @@ module.exports =
15698
16275
  module.exports = exports['default'];
15699
16276
 
15700
16277
  /***/ },
15701
- /* 188 */
16278
+ /* 189 */
15702
16279
  /***/ function(module, exports, __webpack_require__) {
15703
16280
 
15704
16281
  'use strict';
@@ -15715,11 +16292,11 @@ module.exports =
15715
16292
 
15716
16293
  var _react2 = _interopRequireDefault(_react);
15717
16294
 
15718
- var _Header = __webpack_require__(187);
16295
+ var _Header = __webpack_require__(188);
15719
16296
 
15720
16297
  var _Header2 = _interopRequireDefault(_Header);
15721
16298
 
15722
- var _Combobox = __webpack_require__(186);
16299
+ var _Combobox = __webpack_require__(187);
15723
16300
 
15724
16301
  var _Combobox2 = _interopRequireDefault(_Combobox);
15725
16302
 
@@ -15892,7 +16469,7 @@ module.exports =
15892
16469
  module.exports = exports['default'];
15893
16470
 
15894
16471
  /***/ },
15895
- /* 189 */
16472
+ /* 190 */
15896
16473
  /***/ function(module, exports, __webpack_require__) {
15897
16474
 
15898
16475
  'use strict';
@@ -16053,7 +16630,7 @@ module.exports =
16053
16630
  module.exports = exports['default'];
16054
16631
 
16055
16632
  /***/ },
16056
- /* 190 */
16633
+ /* 191 */
16057
16634
  /***/ function(module, exports, __webpack_require__) {
16058
16635
 
16059
16636
  'use strict';
@@ -16066,15 +16643,15 @@ module.exports =
16066
16643
 
16067
16644
  var _react2 = _interopRequireDefault(_react);
16068
16645
 
16069
- var _rcTrigger = __webpack_require__(196);
16646
+ var _rcTrigger = __webpack_require__(197);
16070
16647
 
16071
16648
  var _rcTrigger2 = _interopRequireDefault(_rcTrigger);
16072
16649
 
16073
- var _Panel = __webpack_require__(188);
16650
+ var _Panel = __webpack_require__(189);
16074
16651
 
16075
16652
  var _Panel2 = _interopRequireDefault(_Panel);
16076
16653
 
16077
- var _placements = __webpack_require__(192);
16654
+ var _placements = __webpack_require__(193);
16078
16655
 
16079
16656
  var _placements2 = _interopRequireDefault(_placements);
16080
16657
 
@@ -16356,7 +16933,7 @@ module.exports =
16356
16933
  module.exports = exports['default'];
16357
16934
 
16358
16935
  /***/ },
16359
- /* 191 */
16936
+ /* 192 */
16360
16937
  /***/ function(module, exports, __webpack_require__) {
16361
16938
 
16362
16939
  'use strict';
@@ -16365,7 +16942,7 @@ module.exports =
16365
16942
  value: true
16366
16943
  });
16367
16944
 
16368
- var _TimePicker = __webpack_require__(190);
16945
+ var _TimePicker = __webpack_require__(191);
16369
16946
 
16370
16947
  var _TimePicker2 = _interopRequireDefault(_TimePicker);
16371
16948
 
@@ -16375,7 +16952,7 @@ module.exports =
16375
16952
  module.exports = exports['default'];
16376
16953
 
16377
16954
  /***/ },
16378
- /* 192 */
16955
+ /* 193 */
16379
16956
  /***/ function(module, exports) {
16380
16957
 
16381
16958
  'use strict';
@@ -16421,7 +16998,7 @@ module.exports =
16421
16998
  module.exports = exports['default'];
16422
16999
 
16423
17000
  /***/ },
16424
- /* 193 */
17001
+ /* 194 */
16425
17002
  /***/ function(module, exports, __webpack_require__) {
16426
17003
 
16427
17004
  'use strict';
@@ -16442,15 +17019,15 @@ module.exports =
16442
17019
 
16443
17020
  var _reactDom2 = _interopRequireDefault(_reactDom);
16444
17021
 
16445
- var _rcAlign = __webpack_require__(180);
17022
+ var _rcAlign = __webpack_require__(181);
16446
17023
 
16447
17024
  var _rcAlign2 = _interopRequireDefault(_rcAlign);
16448
17025
 
16449
- var _rcAnimate = __webpack_require__(185);
17026
+ var _rcAnimate = __webpack_require__(186);
16450
17027
 
16451
17028
  var _rcAnimate2 = _interopRequireDefault(_rcAnimate);
16452
17029
 
16453
- var _PopupInner = __webpack_require__(194);
17030
+ var _PopupInner = __webpack_require__(195);
16454
17031
 
16455
17032
  var _PopupInner2 = _interopRequireDefault(_PopupInner);
16456
17033
 
@@ -16652,7 +17229,7 @@ module.exports =
16652
17229
  module.exports = exports['default'];
16653
17230
 
16654
17231
  /***/ },
16655
- /* 194 */
17232
+ /* 195 */
16656
17233
  /***/ function(module, exports, __webpack_require__) {
16657
17234
 
16658
17235
  'use strict';
@@ -16709,7 +17286,7 @@ module.exports =
16709
17286
  module.exports = exports['default'];
16710
17287
 
16711
17288
  /***/ },
16712
- /* 195 */
17289
+ /* 196 */
16713
17290
  /***/ function(module, exports, __webpack_require__) {
16714
17291
 
16715
17292
  'use strict';
@@ -16730,7 +17307,7 @@ module.exports =
16730
17307
 
16731
17308
  var _reactDom2 = _interopRequireDefault(_reactDom);
16732
17309
 
16733
- var _contains = __webpack_require__(198);
17310
+ var _contains = __webpack_require__(199);
16734
17311
 
16735
17312
  var _contains2 = _interopRequireDefault(_contains);
16736
17313
 
@@ -16738,13 +17315,13 @@ module.exports =
16738
17315
 
16739
17316
  var _addEventListener2 = _interopRequireDefault(_addEventListener);
16740
17317
 
16741
- var _Popup = __webpack_require__(193);
17318
+ var _Popup = __webpack_require__(194);
16742
17319
 
16743
17320
  var _Popup2 = _interopRequireDefault(_Popup);
16744
17321
 
16745
- var _utils = __webpack_require__(197);
17322
+ var _utils = __webpack_require__(198);
16746
17323
 
16747
- var _getContainerRenderMixin = __webpack_require__(199);
17324
+ var _getContainerRenderMixin = __webpack_require__(200);
16748
17325
 
16749
17326
  var _getContainerRenderMixin2 = _interopRequireDefault(_getContainerRenderMixin);
16750
17327
 
@@ -17208,15 +17785,15 @@ module.exports =
17208
17785
  module.exports = exports['default'];
17209
17786
 
17210
17787
  /***/ },
17211
- /* 196 */
17788
+ /* 197 */
17212
17789
  /***/ function(module, exports, __webpack_require__) {
17213
17790
 
17214
17791
  'use strict';
17215
17792
 
17216
- module.exports = __webpack_require__(195);
17793
+ module.exports = __webpack_require__(196);
17217
17794
 
17218
17795
  /***/ },
17219
- /* 197 */
17796
+ /* 198 */
17220
17797
  /***/ function(module, exports, __webpack_require__) {
17221
17798
 
17222
17799
  'use strict';
@@ -17256,7 +17833,7 @@ module.exports =
17256
17833
  }
17257
17834
 
17258
17835
  /***/ },
17259
- /* 198 */
17836
+ /* 199 */
17260
17837
  /***/ function(module, exports) {
17261
17838
 
17262
17839
  "use strict";
@@ -17279,7 +17856,7 @@ module.exports =
17279
17856
  module.exports = exports['default'];
17280
17857
 
17281
17858
  /***/ },
17282
- /* 199 */
17859
+ /* 200 */
17283
17860
  /***/ function(module, exports, __webpack_require__) {
17284
17861
 
17285
17862
  'use strict';
@@ -17384,8 +17961,8 @@ module.exports =
17384
17961
  module.exports = exports['default'];
17385
17962
 
17386
17963
  /***/ },
17387
- /* 200 */,
17388
- /* 201 */
17964
+ /* 201 */,
17965
+ /* 202 */
17389
17966
  /***/ function(module, exports, __webpack_require__) {
17390
17967
 
17391
17968
  'use strict';
@@ -17394,19 +17971,19 @@ module.exports =
17394
17971
 
17395
17972
  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
17973
 
17397
- var _addClass = __webpack_require__(203);
17974
+ var _addClass = __webpack_require__(204);
17398
17975
 
17399
17976
  var _addClass2 = _interopRequireDefault(_addClass);
17400
17977
 
17401
- var _removeClass = __webpack_require__(205);
17978
+ var _removeClass = __webpack_require__(206);
17402
17979
 
17403
17980
  var _removeClass2 = _interopRequireDefault(_removeClass);
17404
17981
 
17405
- var _requestAnimationFrame = __webpack_require__(207);
17982
+ var _requestAnimationFrame = __webpack_require__(208);
17406
17983
 
17407
17984
  var _requestAnimationFrame2 = _interopRequireDefault(_requestAnimationFrame);
17408
17985
 
17409
- var _properties = __webpack_require__(206);
17986
+ var _properties = __webpack_require__(207);
17410
17987
 
17411
17988
  var _react = __webpack_require__(1);
17412
17989
 
@@ -17619,7 +18196,7 @@ module.exports =
17619
18196
  module.exports = exports['default'];
17620
18197
 
17621
18198
  /***/ },
17622
- /* 202 */
18199
+ /* 203 */
17623
18200
  /***/ function(module, exports, __webpack_require__) {
17624
18201
 
17625
18202
  'use strict';
@@ -17628,7 +18205,7 @@ module.exports =
17628
18205
 
17629
18206
  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
18207
 
17631
- var _chainFunction = __webpack_require__(159);
18208
+ var _chainFunction = __webpack_require__(160);
17632
18209
 
17633
18210
  var _chainFunction2 = _interopRequireDefault(_chainFunction);
17634
18211
 
@@ -17640,11 +18217,11 @@ module.exports =
17640
18217
 
17641
18218
  var _propTypes2 = _interopRequireDefault(_propTypes);
17642
18219
 
17643
- var _warning = __webpack_require__(209);
18220
+ var _warning = __webpack_require__(210);
17644
18221
 
17645
18222
  var _warning2 = _interopRequireDefault(_warning);
17646
18223
 
17647
- var _ChildMapping = __webpack_require__(208);
18224
+ var _ChildMapping = __webpack_require__(209);
17648
18225
 
17649
18226
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17650
18227
 
@@ -17896,7 +18473,7 @@ module.exports =
17896
18473
  module.exports = exports['default'];
17897
18474
 
17898
18475
  /***/ },
17899
- /* 203 */
18476
+ /* 204 */
17900
18477
  /***/ function(module, exports, __webpack_require__) {
17901
18478
 
17902
18479
  'use strict';
@@ -17906,7 +18483,7 @@ module.exports =
17906
18483
  });
17907
18484
  exports.default = addClass;
17908
18485
 
17909
- var _hasClass = __webpack_require__(204);
18486
+ var _hasClass = __webpack_require__(205);
17910
18487
 
17911
18488
  var _hasClass2 = _interopRequireDefault(_hasClass);
17912
18489
 
@@ -17918,7 +18495,7 @@ module.exports =
17918
18495
  module.exports = exports['default'];
17919
18496
 
17920
18497
  /***/ },
17921
- /* 204 */
18498
+ /* 205 */
17922
18499
  /***/ function(module, exports) {
17923
18500
 
17924
18501
  "use strict";
@@ -17933,7 +18510,7 @@ module.exports =
17933
18510
  module.exports = exports["default"];
17934
18511
 
17935
18512
  /***/ },
17936
- /* 205 */
18513
+ /* 206 */
17937
18514
  /***/ function(module, exports) {
17938
18515
 
17939
18516
  'use strict';
@@ -17943,7 +18520,7 @@ module.exports =
17943
18520
  };
17944
18521
 
17945
18522
  /***/ },
17946
- /* 206 */
18523
+ /* 207 */
17947
18524
  /***/ function(module, exports, __webpack_require__) {
17948
18525
 
17949
18526
  'use strict';
@@ -18058,7 +18635,7 @@ module.exports =
18058
18635
  }
18059
18636
 
18060
18637
  /***/ },
18061
- /* 207 */
18638
+ /* 208 */
18062
18639
  /***/ function(module, exports, __webpack_require__) {
18063
18640
 
18064
18641
  'use strict';
@@ -18116,7 +18693,7 @@ module.exports =
18116
18693
  module.exports = exports['default'];
18117
18694
 
18118
18695
  /***/ },
18119
- /* 208 */
18696
+ /* 209 */
18120
18697
  /***/ function(module, exports, __webpack_require__) {
18121
18698
 
18122
18699
  'use strict';
@@ -18212,7 +18789,7 @@ module.exports =
18212
18789
  }
18213
18790
 
18214
18791
  /***/ },
18215
- /* 209 */
18792
+ /* 210 */
18216
18793
  /***/ function(module, exports, __webpack_require__) {
18217
18794
 
18218
18795
  /**
@@ -18278,13 +18855,13 @@ module.exports =
18278
18855
 
18279
18856
 
18280
18857
  /***/ },
18281
- /* 210 */
18858
+ /* 211 */
18282
18859
  /***/ function(module, exports) {
18283
18860
 
18284
18861
  module.exports = require("moment-timezone");
18285
18862
 
18286
18863
  /***/ },
18287
- /* 211 */
18864
+ /* 212 */
18288
18865
  /***/ function(module, exports) {
18289
18866
 
18290
18867
  module.exports = require("redux");