@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
@@ -15,13 +15,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  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); }
18
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
18
+ 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); }
19
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
20
+ 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); }; }
19
21
  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); }
20
22
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
21
23
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
24
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
23
- 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); }
24
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
25
25
  var keyPath = function keyPath(key) {
26
26
  return "ruleEditor.ruleTypes.itemattributemaxsum.".concat(key);
27
27
  };
@@ -32,12 +32,13 @@ var formFields = [(0, _RuleForm.createTextDescriptor)(keyPath('attributeText')),
32
32
  label: keyPath('maxAmountLabel')
33
33
  }))];
34
34
  var ItemAttributeMaxSum = exports["default"] = /*#__PURE__*/function (_React$Component) {
35
+ _inherits(ItemAttributeMaxSum, _React$Component);
36
+ var _super = _createSuper(ItemAttributeMaxSum);
35
37
  function ItemAttributeMaxSum() {
36
38
  _classCallCheck(this, ItemAttributeMaxSum);
37
- return _callSuper(this, ItemAttributeMaxSum, arguments);
39
+ return _super.apply(this, arguments);
38
40
  }
39
- _inherits(ItemAttributeMaxSum, _React$Component);
40
- return _createClass(ItemAttributeMaxSum, [{
41
+ _createClass(ItemAttributeMaxSum, [{
41
42
  key: "render",
42
43
  value: function render() {
43
44
  return /*#__PURE__*/_react["default"].createElement(_RuleForm["default"], _extends({}, this.props, {
@@ -45,4 +46,5 @@ var ItemAttributeMaxSum = exports["default"] = /*#__PURE__*/function (_React$Com
45
46
  }));
46
47
  }
47
48
  }]);
49
+ return ItemAttributeMaxSum;
48
50
  }(_react["default"].Component);
@@ -16,13 +16,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
16
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); }
19
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
19
+ 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); }
20
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
21
+ 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); }; }
20
22
  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); }
21
23
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
22
24
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
25
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
24
- 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); }
25
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
26
26
  var keyPath = function keyPath(key) {
27
27
  return "ruleEditor.ruleTypes.optionclassificationmaxamount.".concat(key);
28
28
  };
@@ -33,12 +33,13 @@ var formFields = [(0, _RuleForm.createTextDescriptor)(keyPath('componentsText'))
33
33
  label: keyPath('maxAmountLabel')
34
34
  }))];
35
35
  var OptionClassificationMaxAmount = exports["default"] = /*#__PURE__*/function (_React$Component) {
36
+ _inherits(OptionClassificationMaxAmount, _React$Component);
37
+ var _super = _createSuper(OptionClassificationMaxAmount);
36
38
  function OptionClassificationMaxAmount() {
37
39
  _classCallCheck(this, OptionClassificationMaxAmount);
38
- return _callSuper(this, OptionClassificationMaxAmount, arguments);
40
+ return _super.apply(this, arguments);
39
41
  }
40
- _inherits(OptionClassificationMaxAmount, _React$Component);
41
- return _createClass(OptionClassificationMaxAmount, [{
42
+ _createClass(OptionClassificationMaxAmount, [{
42
43
  key: "render",
43
44
  value: function render() {
44
45
  return /*#__PURE__*/_react["default"].createElement(_RuleForm["default"], _extends({}, this.props, {
@@ -46,4 +47,5 @@ var OptionClassificationMaxAmount = exports["default"] = /*#__PURE__*/function (
46
47
  }), (0, _i18n.T)(keyPath('description')));
47
48
  }
48
49
  }]);
50
+ return OptionClassificationMaxAmount;
49
51
  }(_react["default"].Component);
@@ -16,13 +16,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
16
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); }
19
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
19
+ 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); }
20
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
21
+ 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); }; }
20
22
  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); }
21
23
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
22
24
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
25
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
24
- 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); }
25
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
26
26
  var keyPath = function keyPath(key) {
27
27
  return "ruleEditor.ruleTypes.optionclassificationminamount.".concat(key);
28
28
  };
@@ -33,12 +33,13 @@ var formFields = [(0, _RuleForm.createTextDescriptor)(keyPath('componentsText'))
33
33
  label: keyPath('minAmountLabel')
34
34
  }))];
35
35
  var OptionClassificationMinAmount = exports["default"] = /*#__PURE__*/function (_React$Component) {
36
+ _inherits(OptionClassificationMinAmount, _React$Component);
37
+ var _super = _createSuper(OptionClassificationMinAmount);
36
38
  function OptionClassificationMinAmount() {
37
39
  _classCallCheck(this, OptionClassificationMinAmount);
38
- return _callSuper(this, OptionClassificationMinAmount, arguments);
40
+ return _super.apply(this, arguments);
39
41
  }
40
- _inherits(OptionClassificationMinAmount, _React$Component);
41
- return _createClass(OptionClassificationMinAmount, [{
42
+ _createClass(OptionClassificationMinAmount, [{
42
43
  key: "render",
43
44
  value: function render() {
44
45
  return /*#__PURE__*/_react["default"].createElement(_RuleForm["default"], _extends({}, this.props, {
@@ -46,4 +47,5 @@ var OptionClassificationMinAmount = exports["default"] = /*#__PURE__*/function (
46
47
  }), (0, _i18n.T)(keyPath('description')));
47
48
  }
48
49
  }]);
50
+ return OptionClassificationMinAmount;
49
51
  }(_react["default"].Component);
@@ -17,13 +17,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
17
17
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  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); }
20
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
20
+ 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); }
21
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
22
+ 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); }; }
21
23
  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); }
22
24
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
23
25
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24
26
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
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
27
  var keyPath = function keyPath(key) {
28
28
  return "ruleEditor.ruleTypes.optiondependency.".concat(key);
29
29
  };
@@ -36,12 +36,13 @@ var formFields = [(0, _RuleForm.createTextDescriptor)(keyPath('optionText')), (0
36
36
  label: keyPath('dataOptionLabel')
37
37
  }))];
38
38
  var OptionDependency = exports["default"] = /*#__PURE__*/function (_React$Component) {
39
+ _inherits(OptionDependency, _React$Component);
40
+ var _super = _createSuper(OptionDependency);
39
41
  function OptionDependency() {
40
42
  _classCallCheck(this, OptionDependency);
41
- return _callSuper(this, OptionDependency, arguments);
43
+ return _super.apply(this, arguments);
42
44
  }
43
- _inherits(OptionDependency, _React$Component);
44
- return _createClass(OptionDependency, [{
45
+ _createClass(OptionDependency, [{
45
46
  key: "render",
46
47
  value: function render() {
47
48
  var optionA = (0, _lodash.get)(this.props, 'data.option.value.label', inlineLabel('optionLabel'));
@@ -54,4 +55,5 @@ var OptionDependency = exports["default"] = /*#__PURE__*/function (_React$Compon
54
55
  }));
55
56
  }
56
57
  }]);
58
+ return OptionDependency;
57
59
  }(_react["default"].Component);
@@ -17,13 +17,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
17
17
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  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); }
20
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
20
+ 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); }
21
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
22
+ 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); }; }
21
23
  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); }
22
24
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
23
25
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24
26
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
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
27
  var keyPath = function keyPath(key) {
28
28
  return "ruleEditor.ruleTypes.optionexclusion.".concat(key);
29
29
  };
@@ -36,12 +36,13 @@ var formFields = [(0, _RuleForm.createTextDescriptor)(keyPath('optionText')), (0
36
36
  label: keyPath('dataOptionLabel')
37
37
  }))];
38
38
  var OptionExclusion = exports["default"] = /*#__PURE__*/function (_React$Component) {
39
+ _inherits(OptionExclusion, _React$Component);
40
+ var _super = _createSuper(OptionExclusion);
39
41
  function OptionExclusion() {
40
42
  _classCallCheck(this, OptionExclusion);
41
- return _callSuper(this, OptionExclusion, arguments);
43
+ return _super.apply(this, arguments);
42
44
  }
43
- _inherits(OptionExclusion, _React$Component);
44
- return _createClass(OptionExclusion, [{
45
+ _createClass(OptionExclusion, [{
45
46
  key: "render",
46
47
  value: function render() {
47
48
  var optionA = (0, _lodash.get)(this.props, 'data.option.value.label', inlineLabel('optionLabel'));
@@ -54,4 +55,5 @@ var OptionExclusion = exports["default"] = /*#__PURE__*/function (_React$Compone
54
55
  }));
55
56
  }
56
57
  }]);
58
+ return OptionExclusion;
57
59
  }(_react["default"].Component);
@@ -16,13 +16,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
16
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); }
19
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
19
+ 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); }
20
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
21
+ 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); }; }
20
22
  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); }
21
23
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
22
24
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
25
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
24
- 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); }
25
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
26
26
  var keyPath = function keyPath(key) {
27
27
  return "ruleEditor.ruleTypes.optionmaxamount.".concat(key);
28
28
  };
@@ -33,12 +33,13 @@ var formFields = [(0, _RuleForm.createTextDescriptor)(keyPath('optionText')), (0
33
33
  label: keyPath('maxAmountLabel')
34
34
  }))];
35
35
  var OptionMaxAmount = exports["default"] = /*#__PURE__*/function (_React$Component) {
36
+ _inherits(OptionMaxAmount, _React$Component);
37
+ var _super = _createSuper(OptionMaxAmount);
36
38
  function OptionMaxAmount() {
37
39
  _classCallCheck(this, OptionMaxAmount);
38
- return _callSuper(this, OptionMaxAmount, arguments);
40
+ return _super.apply(this, arguments);
39
41
  }
40
- _inherits(OptionMaxAmount, _React$Component);
41
- return _createClass(OptionMaxAmount, [{
42
+ _createClass(OptionMaxAmount, [{
42
43
  key: "render",
43
44
  value: function render() {
44
45
  return /*#__PURE__*/_react["default"].createElement(_RuleForm["default"], _extends({}, this.props, {
@@ -46,4 +47,5 @@ var OptionMaxAmount = exports["default"] = /*#__PURE__*/function (_React$Compone
46
47
  }), (0, _i18n.T)(keyPath('description')));
47
48
  }
48
49
  }]);
50
+ return OptionMaxAmount;
49
51
  }(_react["default"].Component);
@@ -18,32 +18,33 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
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); }
31
31
  var RuleForm = exports.RuleForm = /*#__PURE__*/function (_React$Component) {
32
+ _inherits(RuleForm, _React$Component);
33
+ var _super = _createSuper(RuleForm);
32
34
  function RuleForm() {
33
35
  var _this;
34
36
  _classCallCheck(this, RuleForm);
35
37
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
36
38
  args[_key] = arguments[_key];
37
39
  }
38
- _this = _callSuper(this, RuleForm, [].concat(args));
39
- _defineProperty(_this, "onSubmit", function () {
40
+ _this = _super.call.apply(_super, [this].concat(args));
41
+ _defineProperty(_assertThisInitialized(_this), "onSubmit", function () {
40
42
  _this.checkDefaultValues();
41
43
  _this.props.onSubmit();
42
44
  });
43
45
  return _this;
44
46
  }
45
- _inherits(RuleForm, _React$Component);
46
- return _createClass(RuleForm, [{
47
+ _createClass(RuleForm, [{
47
48
  key: "checkDefaultValues",
48
49
  value: function checkDefaultValues() {
49
50
  var data = this.props.data;
@@ -70,6 +71,7 @@ var RuleForm = exports.RuleForm = /*#__PURE__*/function (_React$Component) {
70
71
  }));
71
72
  }
72
73
  }]);
74
+ return RuleForm;
73
75
  }(_react["default"].Component);
74
76
  var labelMapper = function labelMapper(item) {
75
77
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -21,20 +21,21 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
21
21
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
22
22
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
23
  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); }
24
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
24
+ 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); }
25
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
26
+ 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); }; }
25
27
  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); }
26
28
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
27
29
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
28
30
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
29
- 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); }
30
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
31
31
  var ScreenContainer = /*#__PURE__*/function (_React$Component) {
32
+ _inherits(ScreenContainer, _React$Component);
33
+ var _super = _createSuper(ScreenContainer);
32
34
  function ScreenContainer() {
33
35
  _classCallCheck(this, ScreenContainer);
34
- return _callSuper(this, ScreenContainer, arguments);
36
+ return _super.apply(this, arguments);
35
37
  }
36
- _inherits(ScreenContainer, _React$Component);
37
- return _createClass(ScreenContainer, [{
38
+ _createClass(ScreenContainer, [{
38
39
  key: "render",
39
40
  value: function render() {
40
41
  return /*#__PURE__*/_react["default"].createElement(_DefaultScreen.ModalScreen, _extends({}, this.props, {
@@ -43,5 +44,6 @@ var ScreenContainer = /*#__PURE__*/function (_React$Component) {
43
44
  }));
44
45
  }
45
46
  }]);
47
+ return ScreenContainer;
46
48
  }(_react["default"].Component);
47
49
  var _default = exports["default"] = (0, _DefaultConnectedScreen.connectDefault)((0, _DefaultScreen.generateCustomScreen)('rules', _List["default"], _Edit["default"], ScreenContainer, _Actions["default"].hideDetails), _Actions.REDUCER_NAME, _Actions["default"].invalidateList, _Actions["default"].unsavedEntity, _Actions["default"].hideDetails);
@@ -1,26 +1,37 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.loadSettings = void 0;
7
8
  var _lazyFetch = require("../../../../Utils/Request/lazyFetch");
9
+ 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 }; })(); }
10
+ 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"); }
11
+ 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; }; }
12
+ 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(); }); }
13
+ function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
14
+ 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); }
8
15
  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 }; })(); }
9
16
  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); }
17
+ function _OverloadYield(e, d) { this.v = e, this.k = d; }
10
18
  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); }
11
19
  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); }); }; }
12
20
  var SETTINGS_URL = 'settings/1';
13
21
  var loadSettings = exports.loadSettings = /*#__PURE__*/function () {
14
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
22
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
15
23
  var response;
16
- return _regenerator().w(function (_context) {
17
- while (1) switch (_context.n) {
24
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
25
+ while (1) switch (_context.prev = _context.next) {
18
26
  case 0:
19
- _context.n = 1;
27
+ _context.next = 2;
20
28
  return (0, _lazyFetch.lazyFetch)(SETTINGS_URL);
21
- case 1:
22
- response = _context.v;
23
- return _context.a(2, response.data);
29
+ case 2:
30
+ response = _context.sent;
31
+ return _context.abrupt("return", response.data);
32
+ case 4:
33
+ case "end":
34
+ return _context.stop();
24
35
  }
25
36
  }, _callee);
26
37
  }));