@configuratorware/configurator-admingui 1.56.2 → 1.56.4

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.
Files changed (156) hide show
  1. package/App/Api.js +12 -8
  2. package/App/Config/app.js +3 -3
  3. package/App/Data.js +11 -9
  4. package/App/ErrorBoundary.js +9 -7
  5. package/App/Main.js +11 -9
  6. package/App/Reducers/Api/Actions.js +1 -0
  7. package/App/Reducers/Entity/Actions.js +4 -4
  8. package/App/Services/WindowCommunication.js +2 -1
  9. package/App/TestHelpers.js +13 -9
  10. package/App/i18n.js +3 -3
  11. package/App/index.js +8 -6
  12. package/App/initServices.js +4 -2
  13. package/Components/CallToActionField.js +30 -19
  14. package/Components/CopyPaste.js +10 -8
  15. package/Components/DefaultForm.js +8 -6
  16. package/Components/DefaultList.js +20 -17
  17. package/Components/DefaultScreen.js +9 -7
  18. package/Components/Form.js +15 -12
  19. package/Components/FormFragments/AttributeValueChip.js +17 -16
  20. package/Components/FormFragments/AutoComplete.js +18 -16
  21. package/Components/FormFragments/AutocompleteEntity.js +16 -14
  22. package/Components/FormFragments/Chip.js +15 -14
  23. package/Components/FormFragments/DynSourceInput.js +9 -7
  24. package/Components/FormFragments/File.js +4 -4
  25. package/Components/FormFragments/InlineAddButton.js +14 -12
  26. package/Components/FormFragments/InputArray.js +18 -16
  27. package/Components/FormFragments/IntlInput.js +17 -13
  28. package/Components/FormFragments/NestedDataComponent.js +15 -13
  29. package/Components/FormFragments/SetInput.js +10 -8
  30. package/Components/FormFragments/SimpleNestedData.js +8 -6
  31. package/Components/FormFragments/SimpleTable.js +13 -11
  32. package/Components/FormFragments/Tabs.js +15 -13
  33. package/Components/FormFragments/TwoSideSelect.js +17 -13
  34. package/Components/GeneralFragments/ConfigurationEditor.js +35 -24
  35. package/Components/GeneralFragments/ConfiguratorOverlay.js +8 -6
  36. package/Components/GeneralFragments/Image.js +10 -8
  37. package/Components/GeneralFragments/MiniPopup.js +11 -9
  38. package/Components/LicenseInfo.js +8 -6
  39. package/Components/List.js +17 -15
  40. package/Components/ListColumnFilter.js +15 -13
  41. package/Components/Menu.js +11 -9
  42. package/Components/ModalContainer.js +9 -7
  43. package/Components/OrderList.js +14 -12
  44. package/Components/Pagination.js +14 -12
  45. package/Components/SearchBar.js +11 -9
  46. package/Components/TranslateComponent.js +14 -11
  47. package/Screens/ApiKeys/Containers/Edit.js +26 -15
  48. package/Screens/Attribute/__tests/AttributeScreen.js +1 -1
  49. package/Screens/AttributeValue/__tests/AttributeValueScreen.js +1 -1
  50. package/Screens/Channel/__tests/ChannelScreen.js +1 -1
  51. package/Screens/ColorPalettes/Components/DefaultColorSwitch.js +9 -7
  52. package/Screens/ColorPalettes/Reducers/Reducer.js +1 -0
  53. package/Screens/ConfigurationTypeEditor/Screen.js +8 -6
  54. package/Screens/ConfigurationWorkflowStatus/Containers/List.js +14 -10
  55. package/Screens/ConfigurationWorkflowStatus/Screen.js +8 -6
  56. package/Screens/Creator/Components/BaseConfigurationEditor.js +15 -11
  57. package/Screens/Creator/Components/CheckData/ApiCalls.js +17 -6
  58. package/Screens/Creator/Components/CheckData/CheckData.js +39 -30
  59. package/Screens/Creator/Components/CheckData/Translations.js +5 -5
  60. package/Screens/Creator/Components/ComponentEditor.js +27 -19
  61. package/Screens/Creator/Components/OptionclassificationEditor.js +49 -39
  62. package/Screens/Creator/Components/Rules/Containers/Edit.js +17 -12
  63. package/Screens/Creator/Components/Rules/Containers/RuleForms/AdditionalOption.js +8 -6
  64. package/Screens/Creator/Components/Rules/Containers/RuleForms/AttributeValueGroupAutoSwitch.js +8 -6
  65. package/Screens/Creator/Components/Rules/Containers/RuleForms/DefaultOption.js +8 -6
  66. package/Screens/Creator/Components/Rules/Containers/RuleForms/ItemAttributeMatch.js +8 -6
  67. package/Screens/Creator/Components/Rules/Containers/RuleForms/ItemAttributeMaxSum.js +8 -6
  68. package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionClassificationMaxAmount.js +8 -6
  69. package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionClassificationMinAmount.js +8 -6
  70. package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionDependency.js +8 -6
  71. package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionExclusion.js +8 -6
  72. package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionMaxAmount.js +8 -6
  73. package/Screens/Creator/Components/Rules/Containers/RuleForms/RuleForm.js +9 -7
  74. package/Screens/Creator/Components/Rules/index.js +8 -6
  75. package/Screens/Creator/Components/VisualizationAndMediaData/ApiCalls.js +18 -7
  76. package/Screens/Creator/Components/VisualizationAndMediaData/Components/ImageEditTools.js +75 -64
  77. package/Screens/Creator/Components/VisualizationAndMediaData/Components/PathStructure.js +1 -1
  78. package/Screens/Creator/Components/VisualizationAndMediaData/VisualizationAndMediaData.js +181 -164
  79. package/Screens/Creator/Containers/Edit.js +19 -15
  80. package/Screens/Creator/Reducers/ConfigurationActions.js +49 -39
  81. package/Screens/Demo/Screen.js +10 -8
  82. package/Screens/Designer/Components/DesignDataTransfer.js +67 -54
  83. package/Screens/Designer/Components/TemplateDefaultList.js +27 -25
  84. package/Screens/Designer/Components/TemplateList.js +14 -12
  85. package/Screens/Designer/Containers/Edit.js +37 -26
  86. package/Screens/Designer/SubScreens/DesignAreas/Components/ColorPalettes.js +22 -18
  87. package/Screens/Designer/SubScreens/DesignAreas/Components/FormArray.js +15 -13
  88. package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/MaskEditorCanvas.js +27 -19
  89. package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/MaskEditorField.js +25 -17
  90. package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/withFileUpload.js +27 -19
  91. package/Screens/Designer/SubScreens/DesignAreas/Containers/FormProductionMethods.js +20 -18
  92. package/Screens/Designer/SubScreens/DesignAreas/Utils/getMaskSrcByType.js +2 -1
  93. package/Screens/Designer/SubScreens/Designviews/Reducers/Actions.js +19 -8
  94. package/Screens/Designer/SubScreens/Visualization/ApiCalls.js +28 -14
  95. package/Screens/Designer/SubScreens/Visualization/Components/AreaEditor.js +58 -44
  96. package/Screens/Designer/SubScreens/Visualization/Components/ExpansionContainer.js +9 -7
  97. package/Screens/Designer/SubScreens/Visualization/Components/Three2DEditor.js +83 -62
  98. package/Screens/Designer/SubScreens/Visualization/Components/VisualizationContainer.js +10 -8
  99. package/Screens/Designer/SubScreens/Visualization/Containers/Edit/Edit.js +116 -99
  100. package/Screens/Designer/SubScreens/Visualization/Containers/Edit/VisualizationUtils.js +29 -21
  101. package/Screens/Designer/SubScreens/Visualization/Containers/List.js +8 -6
  102. package/Screens/Finder/Reducers/Actions.js +22 -13
  103. package/Screens/Font/Reducers/Actions.js +4 -3
  104. package/Screens/ImageGallery/Containers/Edit.js +8 -6
  105. package/Screens/ImageGallery/Containers/List.js +36 -23
  106. package/Screens/ImageGallery/ImageTags/TagsEditorPopup.js +8 -6
  107. package/Screens/ImageGallery/Reducers/Actions.js +1 -0
  108. package/Screens/Inspirations/Reducers/Actions.js +18 -7
  109. package/Screens/Item/ApiCalls.js +19 -8
  110. package/Screens/Item/Components/AttributeEditorPopup.js +8 -6
  111. package/Screens/Item/Components/CopyCreatorItemDialog.js +26 -15
  112. package/Screens/Item/Components/ExportCreatorItemDialog.js +26 -15
  113. package/Screens/Item/Components/Images/ItemImageUploadDialog.js +31 -22
  114. package/Screens/Item/Components/ImportItemDialog.js +29 -21
  115. package/Screens/Item/Components/ListItemStatusEditor.js +25 -14
  116. package/Screens/Item/Components/Variants/VariantsAutocomplete.js +64 -53
  117. package/Screens/Item/Components/Variants/VariantsEditor.js +28 -26
  118. package/Screens/Item/Components/Variants/VariantsEditorDialog.js +8 -6
  119. package/Screens/Item/Components/Variants/VariantsEditorPopup.js +24 -14
  120. package/Screens/Item/Components/Variants/VariantsSelection.js +13 -11
  121. package/Screens/Item/Components/Variants/VariantsSortFilter.js +18 -16
  122. package/Screens/Item/Containers/Edit.js +31 -21
  123. package/Screens/Item/DataStructures/Prices/ActionHelpers.js +4 -4
  124. package/Screens/Login/Screen.js +15 -12
  125. package/Screens/Login/__tests/LoginScreen.js +2 -2
  126. package/Screens/ProductionView/Components/ConfigurationDataSheet.js +8 -6
  127. package/Screens/ProductionView/Containers/List.js +11 -8
  128. package/Screens/ReceiveOfferRequests/Components/ConfigurationDataSheet.js +8 -6
  129. package/Screens/ReceiveOfferRequests/Containers/List.js +8 -6
  130. package/Screens/Savedconfigurations/Components/ConfigurationDataSheet.js +8 -6
  131. package/Screens/Savedconfigurations/Containers/List.js +15 -10
  132. package/Screens/Setting/Containers/Edit.js +8 -6
  133. package/Screens/TranslationFileHandling/Containers/Edit.js +57 -45
  134. package/Screens/User/__tests/UserScreen.js +1 -1
  135. package/UIComponents/AutoComplete.js +12 -10
  136. package/UIComponents/ChipInput.js +14 -12
  137. package/UIComponents/IconMenu.js +12 -10
  138. package/UIComponents/InlineHelp/index.js +8 -6
  139. package/UIComponents/Pagination.js +12 -10
  140. package/UIComponents/SelectField.js +8 -6
  141. package/UIComponents/Table/Table.js +15 -13
  142. package/UIComponents/Table/TableBody.js +8 -6
  143. package/UIComponents/Table/TableHead.js +8 -6
  144. package/UIComponents/Table/TableRow.js +8 -6
  145. package/Utils/Async/Deferred.js +4 -2
  146. package/Utils/Async/newestRequest.js +23 -14
  147. package/Utils/Decorators/Observable.js +2 -1
  148. package/Utils/FunDraw/createMask.js +17 -7
  149. package/Utils/FunDraw/funDraw.js +71 -54
  150. package/Utils/FunDraw/movableObject.js +21 -12
  151. package/Utils/HOCs/AsyncProps.js +24 -16
  152. package/Utils/HOCs/LocalState.js +11 -9
  153. package/Utils/Request/lazyFetch.js +46 -38
  154. package/default.js +1 -1
  155. package/dev.js +1 -1
  156. package/package.json +3 -3
@@ -18,13 +18,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
18
18
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
19
19
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
20
20
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
21
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
21
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
22
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
23
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
22
24
  function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
23
25
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
24
26
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
27
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
26
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
27
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
28
28
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
29
29
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
30
30
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -39,11 +39,13 @@ var renderItemContent = function renderItemContent(item) {
39
39
  }, item.identifier));
40
40
  };
41
41
  var VariantsSelection = /*#__PURE__*/function (_Component) {
42
+ _inherits(VariantsSelection, _Component);
43
+ var _super = _createSuper(VariantsSelection);
42
44
  function VariantsSelection(props) {
43
45
  var _this;
44
46
  _classCallCheck(this, VariantsSelection);
45
- _this = _callSuper(this, VariantsSelection, [props]);
46
- _defineProperty(_this, "fetchVariants", function (text) {
47
+ _this = _super.call(this, props);
48
+ _defineProperty(_assertThisInitialized(_this), "fetchVariants", function (text) {
47
49
  var requestParams = {
48
50
  url: 'creatoritems',
49
51
  params: {
@@ -57,18 +59,18 @@ var VariantsSelection = /*#__PURE__*/function (_Component) {
57
59
  });
58
60
  });
59
61
  });
60
- _defineProperty(_this, "closeSelection", function () {
62
+ _defineProperty(_assertThisInitialized(_this), "closeSelection", function () {
61
63
  _this.props.closeSelection();
62
64
  });
63
- _defineProperty(_this, "setSelection", function () {
65
+ _defineProperty(_assertThisInitialized(_this), "setSelection", function () {
64
66
  _this.props.setSelection(_this.state.selectedItems);
65
67
  });
66
- _defineProperty(_this, "change", function (name, value) {
68
+ _defineProperty(_assertThisInitialized(_this), "change", function (name, value) {
67
69
  _this.setState({
68
70
  selectedItems: value
69
71
  });
70
72
  });
71
- _defineProperty(_this, "searchChange", function (text) {
73
+ _defineProperty(_assertThisInitialized(_this), "searchChange", function (text) {
72
74
  _this.fetchVariants(text);
73
75
  });
74
76
  _this.state = {
@@ -77,8 +79,7 @@ var VariantsSelection = /*#__PURE__*/function (_Component) {
77
79
  };
78
80
  return _this;
79
81
  }
80
- _inherits(VariantsSelection, _Component);
81
- return _createClass(VariantsSelection, [{
82
+ _createClass(VariantsSelection, [{
82
83
  key: "componentWillReceiveProps",
83
84
  value: function componentWillReceiveProps(props) {
84
85
  if (!this.props.showSelectionDialog && props.showSelectionDialog) {
@@ -139,5 +140,6 @@ var VariantsSelection = /*#__PURE__*/function (_Component) {
139
140
  }));
140
141
  }
141
142
  }]);
143
+ return VariantsSelection;
142
144
  }(_react.Component);
143
145
  var _default = exports["default"] = VariantsSelection;
@@ -22,13 +22,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
22
22
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
23
23
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
24
24
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
25
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
25
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
26
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
27
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
26
28
  function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
27
29
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
28
30
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
29
31
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
30
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
31
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
32
32
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
33
33
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
34
34
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -64,12 +64,14 @@ var styles = function styles() {
64
64
  };
65
65
  };
66
66
  var VariantsSortFilter = /*#__PURE__*/function (_React$Component) {
67
+ _inherits(VariantsSortFilter, _React$Component);
68
+ var _super = _createSuper(VariantsSortFilter);
67
69
  function VariantsSortFilter(props) {
68
70
  var _this;
69
71
  _classCallCheck(this, VariantsSortFilter);
70
- _this = _callSuper(this, VariantsSortFilter, [props]);
71
- _defineProperty(_this, "inputRef", /*#__PURE__*/_react["default"].createRef());
72
- _defineProperty(_this, "onToggleFilter", function () {
72
+ _this = _super.call(this, props);
73
+ _defineProperty(_assertThisInitialized(_this), "inputRef", /*#__PURE__*/_react["default"].createRef());
74
+ _defineProperty(_assertThisInitialized(_this), "onToggleFilter", function () {
73
75
  _this.setState({
74
76
  open: !_this.state.open
75
77
  }, function () {
@@ -80,10 +82,10 @@ var VariantsSortFilter = /*#__PURE__*/function (_React$Component) {
80
82
  }
81
83
  });
82
84
  });
83
- _defineProperty(_this, "onFilterChange", (0, _InputHelpers.delay)(function (value) {
85
+ _defineProperty(_assertThisInitialized(_this), "onFilterChange", (0, _InputHelpers.delay)(function (value) {
84
86
  return _this.onFilteredChange(value, _this.props.sortKey);
85
87
  }));
86
- _defineProperty(_this, "onFilteredChange", function (value, filterKey) {
88
+ _defineProperty(_assertThisInitialized(_this), "onFilteredChange", function (value, filterKey) {
87
89
  var key = filterKey;
88
90
  if (value && value.length > 0) {
89
91
  _this.updateListParams({
@@ -94,7 +96,7 @@ var VariantsSortFilter = /*#__PURE__*/function (_React$Component) {
94
96
  _this.removeListParams(["filters[\"".concat(key, "\"]")]);
95
97
  }
96
98
  });
97
- _defineProperty(_this, "onToggleSort", function () {
99
+ _defineProperty(_assertThisInitialized(_this), "onToggleSort", function () {
98
100
  var sort;
99
101
  if (_this.props.listParams.sort === 'desc') {
100
102
  sort = null;
@@ -105,7 +107,7 @@ var VariantsSortFilter = /*#__PURE__*/function (_React$Component) {
105
107
  }
106
108
  _this.onSortChange(sort, _this.props.sortKey);
107
109
  });
108
- _defineProperty(_this, "onSortChange", function (sort, sortKey) {
110
+ _defineProperty(_assertThisInitialized(_this), "onSortChange", function (sort, sortKey) {
109
111
  if (sort) {
110
112
  _this.updateListParams({
111
113
  sortKey: sortKey,
@@ -115,15 +117,15 @@ var VariantsSortFilter = /*#__PURE__*/function (_React$Component) {
115
117
  _this.removeListParams(['sortKey', 'sort']);
116
118
  }
117
119
  });
118
- _defineProperty(_this, "updateListParams", function (params) {
120
+ _defineProperty(_assertThisInitialized(_this), "updateListParams", function (params) {
119
121
  var listParams = _lodash["default"].merge({}, _this.props.listParams, params);
120
122
  _this.props.updateList(listParams);
121
123
  });
122
- _defineProperty(_this, "removeListParams", function (params) {
124
+ _defineProperty(_assertThisInitialized(_this), "removeListParams", function (params) {
123
125
  var listParams = _lodash["default"].omit(_this.props.listParams, params);
124
126
  _this.props.updateList(listParams);
125
127
  });
126
- _defineProperty(_this, "renderFilter", function () {
128
+ _defineProperty(_assertThisInitialized(_this), "renderFilter", function () {
127
129
  var _this$props = _this.props,
128
130
  classes = _this$props.classes,
129
131
  label = _this$props.label,
@@ -154,7 +156,7 @@ var VariantsSortFilter = /*#__PURE__*/function (_React$Component) {
154
156
  disableUnderline: true
155
157
  }));
156
158
  });
157
- _defineProperty(_this, "renderSort", function () {
159
+ _defineProperty(_assertThisInitialized(_this), "renderSort", function () {
158
160
  var _this$props2 = _this.props,
159
161
  classes = _this$props2.classes,
160
162
  sort = _this$props2.sort,
@@ -178,8 +180,7 @@ var VariantsSortFilter = /*#__PURE__*/function (_React$Component) {
178
180
  };
179
181
  return _this;
180
182
  }
181
- _inherits(VariantsSortFilter, _React$Component);
182
- return _createClass(VariantsSortFilter, [{
183
+ _createClass(VariantsSortFilter, [{
183
184
  key: "render",
184
185
  value: function render() {
185
186
  var classes = this.props.classes;
@@ -197,5 +198,6 @@ var VariantsSortFilter = /*#__PURE__*/function (_React$Component) {
197
198
  })), this.renderFilter(), this.renderSort());
198
199
  }
199
200
  }]);
201
+ return VariantsSortFilter;
200
202
  }(_react["default"].Component);
201
203
  var _default = exports["default"] = (0, _withStyles["default"])(styles)(VariantsSortFilter);
@@ -32,17 +32,17 @@ var _LocalizedPriceTextField = require("../../../Components/LocalizedPriceTextFi
32
32
  var _CallToActionField = require("../../../Components/CallToActionField");
33
33
  var _Actions4 = require("../../Itemclassification/Reducers/Actions");
34
34
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
35
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
35
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
36
36
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
37
37
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
38
38
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
39
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
39
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
40
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
41
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
40
42
  function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
41
43
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
42
44
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
43
45
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
44
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
45
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
46
46
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
47
47
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
48
48
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -52,8 +52,15 @@ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArra
52
52
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
53
53
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
54
54
  function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
55
+ function _regeneratorRuntime() { "use strict"; var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; function n(r) { var e = "function" == typeof r && r.constructor; return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); } var o = { "throw": 1, "return": 2, "break": 3, "continue": 3 }; function a(r) { var e, t; return function (n) { e || (e = { stop: function stop() { return t(n.a, 2); }, "catch": function _catch() { return n.v; }, abrupt: function abrupt(r, e) { return t(n.a, o[r], e); }, delegateYield: function delegateYield(r, o, a) { return e.resultName = o, t(n.d, _regeneratorValues(r), a); }, finish: function finish(r) { return t(n.f, r); } }, t = function t(r, _t, o) { n.p = e.prev, n.n = e.next; try { return r(_t, o); } finally { e.next = n.n; } }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; try { return r.call(this, e); } finally { n.p = e.prev, n.n = e.next; } }; } return (_regeneratorRuntime = function _regeneratorRuntime() { return { wrap: function wrap(e, t, n, o) { return r.w(a(e), t, n, o && o.reverse()); }, isGeneratorFunction: n, mark: r.m, awrap: function awrap(r, e) { return new _OverloadYield(r, e); }, AsyncIterator: _regeneratorAsyncIterator, async: function async(r, e, t, o, u) { return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u); }, keys: _regeneratorKeys, values: _regeneratorValues }; })(); }
56
+ function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
57
+ function _regeneratorKeys(e) { var n = Object(e), r = []; for (var t in n) r.unshift(t); return function e() { for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; return e.done = !0, e; }; }
58
+ function _regeneratorAsync(n, e, r, t, o) { var a = _regeneratorAsyncGen(n, e, r, t, o); return a.next().then(function (n) { return n.done ? n.value : a.next(); }); }
59
+ function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
60
+ function _regeneratorAsyncIterator(t, e) { function n(r, o, i, f) { try { var c = t[r](o), u = c.value; return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) { n("next", t, i, f); }, function (t) { n("throw", t, i, f); }) : e.resolve(u).then(function (t) { c.value = t, i(c); }, function (t) { return n("throw", t, i, f); }); } catch (t) { f(t); } } var r; this.next || (_regeneratorDefine2(_regeneratorAsyncIterator.prototype), _regeneratorDefine2(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { return this; })), _regeneratorDefine2(this, "_invoke", function (t, o, i) { function f() { return new e(function (e, r) { n(t, i, e, r); }); } return r = r ? r.then(f, f) : f(); }, !0); }
55
61
  function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
56
62
  function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
63
+ function _OverloadYield(e, d) { this.v = e, this.k = d; }
57
64
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
58
65
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
59
66
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
@@ -134,18 +141,18 @@ var VisualizationComponentField = (0, _reactRedux.connect)(function (state) {
134
141
  setDisabled(true);
135
142
  return;
136
143
  }
137
- _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
144
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
138
145
  var visualizationModeList, visualizationMode, _visualizationMode;
139
- return _regenerator().w(function (_context) {
140
- while (1) switch (_context.p = _context.n) {
146
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
147
+ while (1) switch (_context.prev = _context.next) {
141
148
  case 0:
142
149
  setLoading(true);
143
150
  setDisabled(true);
144
- _context.p = 1;
145
- _context.n = 2;
151
+ _context.prev = 2;
152
+ _context.next = 5;
146
153
  return (0, _ApiCalls.loadVisualizationModes)(configurationMode);
147
- case 2:
148
- visualizationModeList = _context.v;
154
+ case 5:
155
+ visualizationModeList = _context.sent;
149
156
  setSource(visualizationModeList);
150
157
  if (!selectedVisualizationMode) {
151
158
  visualizationMode = visualizationModeList.find(function (_ref6) {
@@ -164,14 +171,15 @@ var VisualizationComponentField = (0, _reactRedux.connect)(function (state) {
164
171
  _visualizationMode && setVisualizationMode(_visualizationMode);
165
172
  }
166
173
  setDisabled(false);
167
- case 3:
168
- _context.p = 3;
174
+ case 9:
175
+ _context.prev = 9;
169
176
  setLoading(false);
170
- return _context.f(3);
171
- case 4:
172
- return _context.a(2);
177
+ return _context.finish(9);
178
+ case 12:
179
+ case "end":
180
+ return _context.stop();
173
181
  }
174
- }, _callee, null, [[1,, 3, 4]]);
182
+ }, _callee, null, [[2,, 9, 12]]);
175
183
  }))();
176
184
  }, [configurationMode]);
177
185
  field.calculateProps = function () {
@@ -436,11 +444,13 @@ var itemFormTabs = {
436
444
  images: 'images'
437
445
  };
438
446
  var ItemForm = /*#__PURE__*/function (_Component) {
447
+ _inherits(ItemForm, _Component);
448
+ var _super = _createSuper(ItemForm);
439
449
  function ItemForm(props) {
440
450
  var _this;
441
451
  _classCallCheck(this, ItemForm);
442
- _this = _callSuper(this, ItemForm, [props]);
443
- _defineProperty(_this, "onTabChange", function (event, tab) {
452
+ _this = _super.call(this, props);
453
+ _defineProperty(_assertThisInitialized(_this), "onTabChange", function (event, tab) {
444
454
  _this.setState({
445
455
  currentTab: tab
446
456
  });
@@ -450,8 +460,7 @@ var ItemForm = /*#__PURE__*/function (_Component) {
450
460
  };
451
461
  return _this;
452
462
  }
453
- _inherits(ItemForm, _Component);
454
- return _createClass(ItemForm, [{
463
+ _createClass(ItemForm, [{
455
464
  key: "componentDidMount",
456
465
  value: function componentDidMount() {
457
466
  this.props.getAdminModeHash();
@@ -533,6 +542,7 @@ var ItemForm = /*#__PURE__*/function (_Component) {
533
542
  })), this.renderTabContent(currentTab)), /*#__PURE__*/_react["default"].createElement(_AttributeEditorPopup["default"], null), /*#__PURE__*/_react["default"].createElement(_VariantsEditorPopup["default"], null));
534
543
  }
535
544
  }]);
545
+ return ItemForm;
536
546
  }(_react.Component);
537
547
  var ConnectedItemForm = (0, _reactRedux.connect)(function (state) {
538
548
  var entityState = state[_Actions.ITEM_REDUCER_NAME];
@@ -13,7 +13,7 @@ var filterInvalidPriceItem = function filterInvalidPriceItem(_ref) {
13
13
  priceNet = _ref.priceNet;
14
14
  return price || priceNet;
15
15
  };
16
- var _removeInvalidPriceEntriesRecursive = function removeInvalidPriceEntriesRecursive(arr) {
16
+ var removeInvalidPriceEntriesRecursive = function removeInvalidPriceEntriesRecursive(arr) {
17
17
  if (arr instanceof Array) {
18
18
  var _iterator = _createForOfIteratorHelper(arr),
19
19
  _step;
@@ -23,7 +23,7 @@ var _removeInvalidPriceEntriesRecursive = function removeInvalidPriceEntriesRecu
23
23
  if (item !== null && item !== void 0 && item.prices) {
24
24
  item.prices = item.prices.filter(filterInvalidPriceItem);
25
25
  } else {
26
- _removeInvalidPriceEntriesRecursive(item);
26
+ removeInvalidPriceEntriesRecursive(item);
27
27
  }
28
28
  }
29
29
  } catch (err) {
@@ -32,7 +32,7 @@ var _removeInvalidPriceEntriesRecursive = function removeInvalidPriceEntriesRecu
32
32
  _iterator.f();
33
33
  }
34
34
  } else if (arr instanceof Object) {
35
- _removeInvalidPriceEntriesRecursive(Object.values(arr));
35
+ removeInvalidPriceEntriesRecursive(Object.values(arr));
36
36
  }
37
37
  };
38
38
  var removeInvalidPriceEntries = exports.removeInvalidPriceEntries = function removeInvalidPriceEntries(state, action) {
@@ -43,7 +43,7 @@ var removeInvalidPriceEntries = exports.removeInvalidPriceEntries = function rem
43
43
  if (action.field === 'prices') {
44
44
  action.value = action.value.filter(filterInvalidPriceItem);
45
45
  } else {
46
- _removeInvalidPriceEntriesRecursive(action.value);
46
+ removeInvalidPriceEntriesRecursive(action.value);
47
47
  }
48
48
  }
49
49
  };
@@ -23,22 +23,24 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
23
23
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
24
24
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
25
25
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
26
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
26
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
27
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
28
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
27
29
  function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
28
30
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
29
31
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
30
32
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
31
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
32
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
33
33
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
34
34
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
35
35
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
36
36
  var LoginData = /*#__PURE__*/function (_Data) {
37
+ _inherits(LoginData, _Data);
38
+ var _super = _createSuper(LoginData);
37
39
  function LoginData() {
38
40
  var _this;
39
41
  _classCallCheck(this, LoginData);
40
- _this = _callSuper(this, LoginData);
41
- _defineProperty(_this, "username", {
42
+ _this = _super.call(this);
43
+ _defineProperty(_assertThisInitialized(_this), "username", {
42
44
  value: '',
43
45
  constraints: {
44
46
  presence: {
@@ -46,7 +48,7 @@ var LoginData = /*#__PURE__*/function (_Data) {
46
48
  }
47
49
  }
48
50
  });
49
- _defineProperty(_this, "password", {
51
+ _defineProperty(_assertThisInitialized(_this), "password", {
50
52
  value: '',
51
53
  constraints: {
52
54
  presence: {
@@ -57,7 +59,6 @@ var LoginData = /*#__PURE__*/function (_Data) {
57
59
  _this.init();
58
60
  return _this;
59
61
  }
60
- _inherits(LoginData, _Data);
61
62
  return _createClass(LoginData);
62
63
  }(_Data2["default"]);
63
64
  var formFields = [{
@@ -82,18 +83,20 @@ var RightButton = (0, _withStyles["default"])(styles)(function (_ref) {
82
83
  }, /*#__PURE__*/_react["default"].createElement(_LocaleSwitch["default"], null));
83
84
  });
84
85
  var Login = exports.Login = /*#__PURE__*/function (_Component) {
86
+ _inherits(Login, _Component);
87
+ var _super2 = _createSuper(Login);
85
88
  function Login(props) {
86
89
  var _this2;
87
90
  _classCallCheck(this, Login);
88
- _this2 = _callSuper(this, Login, [props]);
89
- _defineProperty(_this2, "setData", function (name, value) {
91
+ _this2 = _super2.call(this, props);
92
+ _defineProperty(_assertThisInitialized(_this2), "setData", function (name, value) {
90
93
  var data = _this2.state.data;
91
94
  data[name] = value;
92
95
  _this2.setState({
93
96
  data: data
94
97
  });
95
98
  });
96
- _defineProperty(_this2, "postData", function () {
99
+ _defineProperty(_assertThisInitialized(_this2), "postData", function () {
97
100
  var data = _this2.state.data;
98
101
  if (data.validate()) {
99
102
  _this2.props.login(data.username.value, data.password.value);
@@ -107,8 +110,7 @@ var Login = exports.Login = /*#__PURE__*/function (_Component) {
107
110
  };
108
111
  return _this2;
109
112
  }
110
- _inherits(Login, _Component);
111
- return _createClass(Login, [{
113
+ _createClass(Login, [{
112
114
  key: "componentDidMount",
113
115
  value: function componentDidMount() {
114
116
  if (this.props.isLoggedIn) {
@@ -141,6 +143,7 @@ var Login = exports.Login = /*#__PURE__*/function (_Component) {
141
143
  })));
142
144
  }
143
145
  }]);
146
+ return Login;
144
147
  }(_react.Component);
145
148
  _defineProperty(Login, "propTypes", {
146
149
  login: _propTypes["default"].func,
@@ -80,7 +80,7 @@ var loginErrors = [{
80
80
  describe('Login / Screen', function () {
81
81
  var wrapper = null;
82
82
  it('INTEGRATION - renders the headline, the content, the form and the locale switch', function () {
83
- wrapper = (0, _enzyme.mount)(/*#__PURE__*/_react["default"].createElement(ConnectedScreen, null));
83
+ wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(ConnectedScreen, null));
84
84
  expect(wrapper.find(_GeneralFragments.Headline).length).toBe(1);
85
85
  expect(wrapper.find(_GeneralFragments.Content).length).toBe(1);
86
86
  expect(wrapper.find(_Form["default"]).length).toBe(1);
@@ -123,7 +123,7 @@ describe('Login / Screen', function () {
123
123
  });
124
124
  var pbWrapper;
125
125
  it('INTEGRATION / LOGOUT - mounts the profile button', function () {
126
- pbWrapper = (0, _enzyme.mount)(/*#__PURE__*/_react["default"].createElement(ConnectedProfileButtonInstance, null));
126
+ pbWrapper = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(ConnectedProfileButtonInstance, null));
127
127
  var profileButton = pbWrapper.find('button');
128
128
  expect(profileButton.length).toBe(1);
129
129
  pbWrapper.find(_ProfileButton.ProfileButton).props().logout();
@@ -18,13 +18,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
18
18
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
19
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
20
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
21
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
22
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
23
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
22
24
  function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
23
25
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
24
26
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
27
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
26
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
27
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
28
28
  var DataRow = function DataRow(_ref) {
29
29
  var label = _ref.label,
30
30
  value = _ref.value,
@@ -38,12 +38,13 @@ var DataRow = function DataRow(_ref) {
38
38
  }, value || children));
39
39
  };
40
40
  var ConfigurationDataSheet = exports["default"] = /*#__PURE__*/function (_Component) {
41
+ _inherits(ConfigurationDataSheet, _Component);
42
+ var _super = _createSuper(ConfigurationDataSheet);
41
43
  function ConfigurationDataSheet(props) {
42
44
  _classCallCheck(this, ConfigurationDataSheet);
43
- return _callSuper(this, ConfigurationDataSheet, [props]);
45
+ return _super.call(this, props);
44
46
  }
45
- _inherits(ConfigurationDataSheet, _Component);
46
- return _createClass(ConfigurationDataSheet, [{
47
+ _createClass(ConfigurationDataSheet, [{
47
48
  key: "componentDidMount",
48
49
  value: function componentDidMount() {}
49
50
  }, {
@@ -155,6 +156,7 @@ var ConfigurationDataSheet = exports["default"] = /*#__PURE__*/function (_Compon
155
156
  })));
156
157
  }
157
158
  }]);
159
+ return ConfigurationDataSheet;
158
160
  }(_react.Component);
159
161
  var generateConfigurationDataSheet = exports.generateConfigurationDataSheet = function generateConfigurationDataSheet() {
160
162
  var formFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -18,13 +18,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
18
18
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
19
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
20
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
21
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
22
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
23
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
22
24
  function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
23
25
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
24
26
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
27
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
26
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
27
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
28
28
  var columns = [{
29
29
  name: 'code',
30
30
  label: 'Code',
@@ -43,15 +43,16 @@ var listParams = {
43
43
  entity: 'configuration'
44
44
  };
45
45
  var ConfigurationList = /*#__PURE__*/function (_List) {
46
+ _inherits(ConfigurationList, _List);
47
+ var _super = _createSuper(ConfigurationList);
46
48
  function ConfigurationList(props) {
47
49
  var _this;
48
50
  _classCallCheck(this, ConfigurationList);
49
- _this = _callSuper(this, ConfigurationList, [props]);
51
+ _this = _super.call(this, props);
50
52
  _this.cartConfigurationTypeIdentifier = 'cart';
51
53
  return _this;
52
54
  }
53
- _inherits(ConfigurationList, _List);
54
- return _createClass(ConfigurationList, [{
55
+ _createClass(ConfigurationList, [{
55
56
  key: "componentDidMount",
56
57
  value: function componentDidMount() {
57
58
  this.props.onFilterChange('configurationtype.identifier', this.cartConfigurationTypeIdentifier);
@@ -63,13 +64,15 @@ var ConfigurationList = /*#__PURE__*/function (_List) {
63
64
  return null;
64
65
  }
65
66
  }]);
67
+ return ConfigurationList;
66
68
  }(_List2["default"]);
67
69
  var ConfigurationDefaultList = /*#__PURE__*/function (_DefaultList) {
70
+ _inherits(ConfigurationDefaultList, _DefaultList);
71
+ var _super2 = _createSuper(ConfigurationDefaultList);
68
72
  function ConfigurationDefaultList() {
69
73
  _classCallCheck(this, ConfigurationDefaultList);
70
- return _callSuper(this, ConfigurationDefaultList, arguments);
74
+ return _super2.apply(this, arguments);
71
75
  }
72
- _inherits(ConfigurationDefaultList, _DefaultList);
73
76
  return _createClass(ConfigurationDefaultList);
74
77
  }(_DefaultList2["default"]);
75
78
  var ConfigurationListBinder = function ConfigurationListBinder(props) {
@@ -25,13 +25,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
25
25
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
26
26
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
27
27
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
28
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
28
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
29
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
30
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
29
31
  function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
30
32
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
31
33
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
32
34
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
33
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
34
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
35
35
  var DataRow = function DataRow(_ref) {
36
36
  var label = _ref.label,
37
37
  value = _ref.value,
@@ -73,12 +73,13 @@ var styles = {
73
73
  }
74
74
  };
75
75
  var ConfigurationDataSheet = exports["default"] = /*#__PURE__*/function (_Component) {
76
+ _inherits(ConfigurationDataSheet, _Component);
77
+ var _super = _createSuper(ConfigurationDataSheet);
76
78
  function ConfigurationDataSheet() {
77
79
  _classCallCheck(this, ConfigurationDataSheet);
78
- return _callSuper(this, ConfigurationDataSheet, arguments);
80
+ return _super.apply(this, arguments);
79
81
  }
80
- _inherits(ConfigurationDataSheet, _Component);
81
- return _createClass(ConfigurationDataSheet, [{
82
+ _createClass(ConfigurationDataSheet, [{
82
83
  key: "renderConfigurationData",
83
84
  value: function renderConfigurationData(data, locale) {
84
85
  var configurationCode = (0, _lodash.get)(data, 'code.value', '');
@@ -249,6 +250,7 @@ var ConfigurationDataSheet = exports["default"] = /*#__PURE__*/function (_Compon
249
250
  })));
250
251
  }
251
252
  }]);
253
+ return ConfigurationDataSheet;
252
254
  }(_react.Component);
253
255
  var generateConfigurationDataSheet = exports.generateConfigurationDataSheet = function generateConfigurationDataSheet() {
254
256
  var formFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];