@configuratorware/configurator-frontendgui 1.56.1 → 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 (155) hide show
  1. package/App/Error/ErrorBoundary.js +8 -6
  2. package/App/Frame.js +8 -6
  3. package/App/Modules/Creator/Components/ConfigurationvariantItem/index.js +10 -8
  4. package/App/Modules/Creator/Components/ConfigurationvariantSelection/index.js +10 -8
  5. package/App/Modules/Creator/Components/CustomTitleEditor/index.js +10 -8
  6. package/App/Modules/Creator/Components/ExternalVisualization/index.js +9 -7
  7. package/App/Modules/Creator/Components/FastConfigurationRow/index.js +8 -6
  8. package/App/Modules/Creator/Components/FastConfigurationSelect/index.js +8 -6
  9. package/App/Modules/Creator/Components/FullScreenView/FullScreenView.js +11 -10
  10. package/App/Modules/Creator/Components/Incompatibility/OptionExclusionRule/index.js +8 -6
  11. package/App/Modules/Creator/Components/Incompatibility/OptionRule/index.js +8 -6
  12. package/App/Modules/Creator/Components/Incompatibility/RuleComponent.js +9 -7
  13. package/App/Modules/Creator/Components/Incompatibility/index.js +9 -8
  14. package/App/Modules/Creator/Components/Option/index.js +1 -0
  15. package/App/Modules/Creator/Components/OptionAmount/index.js +14 -6
  16. package/App/Modules/Creator/Components/Optiondetail/ZoomImage/index.js +7 -6
  17. package/App/Modules/Creator/Components/Optiondetail/index.js +17 -15
  18. package/App/Modules/Creator/Components/OptionsList/index.js +12 -11
  19. package/App/Modules/Creator/Components/Price/index.js +8 -6
  20. package/App/Modules/Creator/Components/ProductPart/index.js +8 -7
  21. package/App/Modules/Creator/Components/Tools/index.js +8 -6
  22. package/App/Modules/Creator/Layouts/DefaultLayout.js +30 -28
  23. package/App/Modules/Designer/Components/AddGalleryImage/index.js +11 -9
  24. package/App/Modules/Designer/Components/AddGalleryImage/index.story.js +4 -4
  25. package/App/Modules/Designer/Components/AddGalleryImage/index.test.js +6 -6
  26. package/App/Modules/Designer/Components/AddVisualElement/index.js +8 -6
  27. package/App/Modules/Designer/Components/AddVisualElement/index.test.js +3 -3
  28. package/App/Modules/Designer/Components/CloseDesignEditor/index.js +8 -6
  29. package/App/Modules/Designer/Components/CloseGraphicsEditorButton/index.js +5 -4
  30. package/App/Modules/Designer/Components/ColorPalettes/index.js +26 -21
  31. package/App/Modules/Designer/Components/ColorPalettes/index.test.js +3 -3
  32. package/App/Modules/Designer/Components/DesignAreaControlbox/index.js +23 -20
  33. package/App/Modules/Designer/Components/DesignAreaControlbox/index.test.js +7 -7
  34. package/App/Modules/Designer/Components/Dialog/index.js +13 -10
  35. package/App/Modules/Designer/Components/FeedbackNotice/index.js +9 -7
  36. package/App/Modules/Designer/Components/FeedbackNotice/index.test.js +1 -1
  37. package/App/Modules/Designer/Components/FullScreenView/FullScreenView.js +7 -6
  38. package/App/Modules/Designer/Components/ImageColorPicker/ImageColorPicker.js +12 -10
  39. package/App/Modules/Designer/Components/ImageColorize/index.js +39 -29
  40. package/App/Modules/Designer/Components/ImageControlbox/index.js +16 -13
  41. package/App/Modules/Designer/Components/ImageEditDialog/ImageThumbnail.js +24 -14
  42. package/App/Modules/Designer/Components/ImageEditDialog/ImageUpload.js +85 -69
  43. package/App/Modules/Designer/Components/ImageEditDialog/index.js +45 -42
  44. package/App/Modules/Designer/Components/ImageLibraryThumbnail/index.js +9 -7
  45. package/App/Modules/Designer/Components/ObjectTools/index.js +8 -6
  46. package/App/Modules/Designer/Components/Select/index.js +8 -6
  47. package/App/Modules/Designer/Components/TextControlbox/index.js +26 -21
  48. package/App/Modules/Designer/Components/TextControlbox/index.test.js +10 -10
  49. package/App/Modules/Designer/Containers/AddVisualElement.js +21 -11
  50. package/App/Modules/Designer/Containers/ImageEditDialog.js +173 -157
  51. package/App/Modules/Designer/Designer.js +7 -6
  52. package/App/Modules/Designer/Layouts/DefaultLayout.js +20 -17
  53. package/App/Modules/Designer/Layouts/PopupAreaProvider.js +18 -15
  54. package/App/Modules/Designer/Utils/Transformers.js +23 -13
  55. package/App/Modules/Designer/setupDesigner.js +27 -16
  56. package/App/Modules/Designer/withActiveCanvas.js +10 -8
  57. package/App/Modules/Visualization/AlignTargetContainer.js +1 -0
  58. package/App/Modules/Visualization/CreatorAlignTarget.js +12 -11
  59. package/App/Modules/Visualization/DefaultVisualizationProvider.js +10 -8
  60. package/App/Modules/Visualization/DesignerAlignTarget.js +10 -9
  61. package/App/Reducers/Actions.js +44 -36
  62. package/App/Reducers/Configurator/Actions.js +92 -78
  63. package/App/Reducers/Configurator/Selectors.js +5 -5
  64. package/App/Reducers/Confirm/Actions.js +16 -6
  65. package/App/Reducers/DesignArea/Selectors.js +2 -1
  66. package/App/Reducers/ImageGallery/Actions.js +31 -18
  67. package/App/Reducers/ImageGallery/Reducer.js +1 -0
  68. package/App/Reducers/ImageGallery/Selectors.js +1 -0
  69. package/App/Reducers/UI/Actions.js +40 -26
  70. package/App/Routing.js +8 -6
  71. package/App/Screens/Configurator/Components/AmountSelection/index.js +11 -9
  72. package/App/Screens/Configurator/Components/CalculationWidget/index.js +19 -17
  73. package/App/Screens/Configurator/Components/CalculationWidget/index.test.js +8 -8
  74. package/App/Screens/Configurator/Components/Confirm/index.js +8 -6
  75. package/App/Screens/Configurator/Components/Error/index.js +9 -7
  76. package/App/Screens/Configurator/Components/FullScreenView/index.js +24 -21
  77. package/App/Screens/Configurator/Components/FullScreenView/index.test.js +2 -2
  78. package/App/Screens/Configurator/Components/ItemTile/ItemTile.js +13 -5
  79. package/App/Screens/Configurator/Components/PreviewPortal/index.js +10 -8
  80. package/App/Screens/Configurator/Components/Thumbnail/index.js +27 -24
  81. package/App/Screens/Configurator/Components/Thumbnail/index.test.js +2 -2
  82. package/App/Screens/Configurator/Containers/AmountPrice.js +6 -5
  83. package/App/Screens/Configurator/Containers/ConfigurationModeSwitch.js +19 -10
  84. package/App/Screens/DesignerProductPreview/DesignerProductPreviewManager.js +88 -73
  85. package/App/Screens/DesignerProductPreview/Screen.js +21 -14
  86. package/App/Screens/ItemOverview/Components/ItemOverview.js +47 -32
  87. package/App/ServiceLocator.js +4 -2
  88. package/App/Services/AdminareaCommunicationService.js +24 -14
  89. package/App/Services/AnalyticsService.js +48 -47
  90. package/App/Services/ConfiguratorService.js +142 -121
  91. package/App/Services/DesignDataService.js +619 -555
  92. package/App/Services/DesignerService.js +100 -79
  93. package/App/Services/InteractionService.js +236 -210
  94. package/App/Services/UIService.js +10 -7
  95. package/App/Services/VisualizationService.js +104 -86
  96. package/App/Shared/Components/AcceptDesign/index.js +19 -16
  97. package/App/Shared/Components/AcceptPrivacy/index.js +8 -6
  98. package/App/Shared/Components/AddToBasket/index.js +8 -6
  99. package/App/Shared/Components/AlertDialog/index.js +9 -7
  100. package/App/Shared/Components/AmountInput/index.js +24 -21
  101. package/App/Shared/Components/AmountPrice/index.js +128 -115
  102. package/App/Shared/Components/AmountPrice/index.test.js +5 -5
  103. package/App/Shared/Components/BulkNames/index.js +8 -6
  104. package/App/Shared/Components/ConfigurationOverview/index.js +8 -6
  105. package/App/Shared/Components/InformationTag/InformationTag.js +11 -9
  106. package/App/Shared/Components/LicenseNotice/LicenseNotice.js +8 -6
  107. package/App/Shared/Components/LoadConfiguration/index.js +9 -7
  108. package/App/Shared/Components/Notification/index.js +8 -6
  109. package/App/Shared/Components/PdfDownload/index.js +25 -15
  110. package/App/Shared/Components/PriceList/index.js +16 -13
  111. package/App/Shared/Components/PriceOverview/index.js +13 -10
  112. package/App/Shared/Components/ProductVariant/index.js +25 -22
  113. package/App/Shared/Components/ProductVariant/index.story.js +1 -0
  114. package/App/Shared/Components/ReceiveOfferForm/index.js +12 -10
  115. package/App/Shared/Components/ReceiveOfferForm/index.test.js +2 -2
  116. package/App/Shared/Components/SaveConfiguration/index.js +32 -22
  117. package/App/Shared/Components/Stepper/index.js +10 -8
  118. package/App/Shared/Components/ToolbarList/index.js +11 -9
  119. package/App/Shared/Components/VariantChooser/index.js +13 -10
  120. package/App/Shared/Containers/BulkNames.js +15 -13
  121. package/App/Shared/Containers/Header/index.js +15 -7
  122. package/App/Shared/Containers/LoadConfiguration/LoadConfiguration.js +22 -15
  123. package/App/Shared/Containers/ProductVariant/ProductVariant.js +23 -15
  124. package/App/Translations.js +56 -40
  125. package/App/Utils/Request/lazyFetch.js +27 -19
  126. package/App/configuration.js +4 -0
  127. package/App/index.js +24 -14
  128. package/Framework/Api.js +2 -1
  129. package/Framework/ComponentContainer.js +14 -11
  130. package/Framework/Components/Carousel/index.js +13 -11
  131. package/Framework/Components/Dialog/index.js +35 -33
  132. package/Framework/Components/DialogSelect/index.js +19 -16
  133. package/Framework/Components/Input/index.js +12 -10
  134. package/Framework/CustomError.js +6 -5
  135. package/Framework/Helpers/TransitionDetect.js +2 -1
  136. package/Framework/Services/AbstractAdminareaCommunicationService.js +2 -1
  137. package/Framework/Services/AbstractAsyncService.js +2 -1
  138. package/Framework/Services/AbstractConfiguratorService.js +2 -1
  139. package/Framework/Services/AbstractInteractionService.js +2 -1
  140. package/Framework/Services/AbstractStoreService.js +2 -1
  141. package/Framework/Services/AbstractUIService.js +2 -1
  142. package/Framework/Services/AbstractVisualizationService.js +2 -1
  143. package/Framework/Services/AsyncService.js +8 -6
  144. package/Framework/Services/StoreService.js +27 -17
  145. package/Framework/bindDecorator.js +7 -6
  146. package/Framework/i18n.js +10 -8
  147. package/Shared/ErrorTypes/DeferredError.js +6 -5
  148. package/Shared/HOCs/ResizeDetect/ResizeDetect.js +11 -9
  149. package/Utils/Async/AsyncManager.js +30 -20
  150. package/Utils/Async/Deferred.js +4 -2
  151. package/Utils/Decorators/Observable.js +2 -1
  152. package/Utils/Dev/HOCs/withFilePicker.js +10 -8
  153. package/Utils/Immutable/set.js +6 -6
  154. package/Utils/Test/mountWithState.js +1 -1
  155. package/package.json +4 -4
@@ -44,7 +44,7 @@ var _AutoFocusDialogContentContainer = _interopRequireDefault(require("../AutoFo
44
44
  var _excluded = ["onTouchMove"],
45
45
  _excluded2 = ["wrapperClass", "renderPriceBox"];
46
46
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
47
- 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 _t4 in e) "default" !== _t4 && {}.hasOwnProperty.call(e, _t4) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t4)) && (i.get || i.set) ? o(f, _t4, i) : f[_t4] = e[_t4]); return f; })(e, t); }
47
+ 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); }
48
48
  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); }
49
49
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
50
50
  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."); }
@@ -54,38 +54,46 @@ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(
54
54
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
55
55
  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; }
56
56
  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; }
57
+ 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 }; })(); }
58
+ 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"); }
59
+ 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; }; }
60
+ 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(); }); }
61
+ function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
62
+ 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); }
57
63
  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 }; })(); }
58
64
  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); }
65
+ function _OverloadYield(e, d) { this.v = e, this.k = d; }
59
66
  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); }
60
67
  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); }); }; }
61
68
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
62
69
  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); } }
63
70
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
64
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
71
+ 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); }
72
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
73
+ 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); }; }
65
74
  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); }
66
75
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
67
76
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
68
77
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
69
- 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); }
70
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
71
78
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
72
79
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
73
80
  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; }
74
81
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
75
82
  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); }
76
83
  var styles = function styles(theme) {
84
+ var _contentPositioning, _card, _MuiDialogActions, _MuiDialogTitleRo, _AmountPriceButton, _mainButtonLabel, _closeIcon;
77
85
  return {
78
- contentPositioning: _defineProperty(_defineProperty(_defineProperty(_defineProperty({
86
+ contentPositioning: (_contentPositioning = {
79
87
  paddingLeft: 32,
80
88
  paddingRight: 20
81
- }, theme.breakpoints.down('xs'), {
89
+ }, _defineProperty(_contentPositioning, theme.breakpoints.down('xs'), {
82
90
  paddingLeft: 0,
83
91
  paddingRight: 8,
84
92
  marginRight: '-8px'
85
- }), '& p', {
93
+ }), _defineProperty(_contentPositioning, '& p', {
86
94
  fontSize: 15,
87
95
  letterSpacing: 'normal'
88
- }), "marginRight", 4), "padding", 0),
96
+ }), _defineProperty(_contentPositioning, "marginRight", 4), _defineProperty(_contentPositioning, "padding", 0), _contentPositioning),
89
97
  dialogWrapper: _defineProperty({
90
98
  borderTop: '7px solid ' + theme.palette.primary.main,
91
99
  padding: '0 32px',
@@ -93,14 +101,14 @@ var styles = function styles(theme) {
93
101
  }, theme.breakpoints.down('xs'), {
94
102
  padding: '0 16px'
95
103
  }),
96
- card: _defineProperty(_defineProperty({
104
+ card: (_card = {
97
105
  marginBottom: 1,
98
106
  borderTop: '7px solid ' + theme.palette.primary.main,
99
107
  padding: 15,
100
108
  overflow: 'visible'
101
- }, theme.breakpoints.between('xs', 'lg'), {
109
+ }, _defineProperty(_card, theme.breakpoints.between('xs', 'lg'), {
102
110
  marginTop: 16
103
- }), theme.breakpoints.down('xs'), {
111
+ }), _defineProperty(_card, theme.breakpoints.down('xs'), {
104
112
  overflow: 'hidden',
105
113
  display: 'flex',
106
114
  boxShadow: 'none',
@@ -110,7 +118,7 @@ var styles = function styles(theme) {
110
118
  paddingTop: 0,
111
119
  borderTop: '1px solid ' + _colors.grey[500],
112
120
  borderRadius: 0
113
- }),
121
+ }), _card),
114
122
  cardUnboxed: _defineProperty({
115
123
  borderTop: 'none',
116
124
  boxShadow: 'none'
@@ -140,22 +148,22 @@ var styles = function styles(theme) {
140
148
  letterSpacing: 'normal'
141
149
  }
142
150
  },
143
- '& .MuiDialogActions-root': _defineProperty(_defineProperty({
151
+ '& .MuiDialogActions-root': (_MuiDialogActions = {
144
152
  paddingBottom: 24
145
- }, theme.breakpoints.down('xs'), {
153
+ }, _defineProperty(_MuiDialogActions, theme.breakpoints.down('xs'), {
146
154
  marginRight: 0
147
- }), "marginRight", 8),
148
- '& .MuiDialogTitle-root, .MuiDialogActions-root': _defineProperty(_defineProperty({
155
+ }), _defineProperty(_MuiDialogActions, "marginRight", 8), _MuiDialogActions),
156
+ '& .MuiDialogTitle-root, .MuiDialogActions-root': (_MuiDialogTitleRo = {
149
157
  paddingLeft: 32,
150
158
  paddingRight: 20,
151
159
  marginRight: 4
152
- }, theme.breakpoints.down('xs'), {
160
+ }, _defineProperty(_MuiDialogTitleRo, theme.breakpoints.down('xs'), {
153
161
  paddingLeft: 0,
154
162
  paddingRight: 0
155
- }), '& p', {
163
+ }), _defineProperty(_MuiDialogTitleRo, '& p', {
156
164
  fontSize: 15,
157
165
  letterSpacing: 'normal'
158
- })
166
+ }), _MuiDialogTitleRo)
159
167
  },
160
168
  '& .MuiButton-root': _defineProperty({
161
169
  height: 40,
@@ -167,15 +175,15 @@ var styles = function styles(theme) {
167
175
  height: 56
168
176
  })
169
177
  },
170
- AmountPriceButton: _defineProperty(_defineProperty({
178
+ AmountPriceButton: (_AmountPriceButton = {
171
179
  textTransform: 'none',
172
180
  whiteSpace: 'nowrap',
173
181
  margin: 0,
174
182
  padding: '6px 15px'
175
- }, theme.breakpoints.down('xs'), {
183
+ }, _defineProperty(_AmountPriceButton, theme.breakpoints.down('xs'), {
176
184
  minWidth: 35,
177
185
  padding: 0
178
- }), "color", theme.palette.primary.darkText),
186
+ }), _defineProperty(_AmountPriceButton, "color", theme.palette.primary.darkText), _AmountPriceButton),
179
187
  smallButtonSize: _defineProperty({}, theme.breakpoints.down('xs'), {
180
188
  fontSize: 12,
181
189
  lineHeight: 1
@@ -188,10 +196,10 @@ var styles = function styles(theme) {
188
196
  }, theme.breakpoints.down('xs'), {
189
197
  height: 56
190
198
  }),
191
- mainButtonLabel: _defineProperty(_defineProperty({}, theme.breakpoints.down('xs'), {
199
+ mainButtonLabel: (_mainButtonLabel = {}, _defineProperty(_mainButtonLabel, theme.breakpoints.down('xs'), {
192
200
  whiteSpace: 'normal',
193
201
  fontSize: 12
194
- }), "whiteSpace", 'nowrap'),
202
+ }), _defineProperty(_mainButtonLabel, "whiteSpace", 'nowrap'), _mainButtonLabel),
195
203
  AmountPriceTypography: _defineProperty({
196
204
  textAlign: 'end',
197
205
  lineHeight: 1.2,
@@ -216,15 +224,15 @@ var styles = function styles(theme) {
216
224
  }, theme.breakpoints.down('xs'), {
217
225
  padding: 0
218
226
  }),
219
- closeIcon: _defineProperty(_defineProperty({
227
+ closeIcon: (_closeIcon = {
220
228
  position: 'absolute',
221
229
  right: 16,
222
230
  top: 16
223
- }, theme.breakpoints.down('xs'), {
231
+ }, _defineProperty(_closeIcon, theme.breakpoints.down('xs'), {
224
232
  right: 0
225
- }), '&:hover', {
233
+ }), _defineProperty(_closeIcon, '&:hover', {
226
234
  cursor: 'pointer'
227
- }),
235
+ }), _closeIcon),
228
236
  configurationButton: {
229
237
  '&:hover': {
230
238
  cursor: 'pointer'
@@ -275,14 +283,16 @@ var DialogActionsWrapper = function DialogActionsWrapper(_ref) {
275
283
  );
276
284
  };
277
285
  var AmountPrice = /*#__PURE__*/function (_React$Component) {
286
+ _inherits(AmountPrice, _React$Component);
287
+ var _super = _createSuper(AmountPrice);
278
288
  function AmountPrice() {
279
289
  var _this;
280
290
  _classCallCheck(this, AmountPrice);
281
291
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
282
292
  args[_key] = arguments[_key];
283
293
  }
284
- _this = _callSuper(this, AmountPrice, [].concat(args));
285
- _defineProperty(_this, "state", {
294
+ _this = _super.call.apply(_super, [this].concat(args));
295
+ _defineProperty(_assertThisInitialized(_this), "state", {
286
296
  showPriceOverview: false,
287
297
  showConfigurationOverview: false,
288
298
  notice: '',
@@ -296,18 +306,18 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
296
306
  showErrors: false,
297
307
  dataPrivacyAccepted: false
298
308
  });
299
- _defineProperty(_this, "receiveOfferFormComponentRef", /*#__PURE__*/_react["default"].createRef());
300
- _defineProperty(_this, "dialogContentRef", /*#__PURE__*/_react["default"].createRef());
301
- _defineProperty(_this, "priceListRef", /*#__PURE__*/_react["default"].createRef());
302
- _defineProperty(_this, "acceptDesignRef", /*#__PURE__*/_react["default"].createRef());
303
- _defineProperty(_this, "acceptDataPrivacyRef", /*#__PURE__*/_react["default"].createRef());
304
- _defineProperty(_this, "handleChange", function (event) {
309
+ _defineProperty(_assertThisInitialized(_this), "receiveOfferFormComponentRef", /*#__PURE__*/_react["default"].createRef());
310
+ _defineProperty(_assertThisInitialized(_this), "dialogContentRef", /*#__PURE__*/_react["default"].createRef());
311
+ _defineProperty(_assertThisInitialized(_this), "priceListRef", /*#__PURE__*/_react["default"].createRef());
312
+ _defineProperty(_assertThisInitialized(_this), "acceptDesignRef", /*#__PURE__*/_react["default"].createRef());
313
+ _defineProperty(_assertThisInitialized(_this), "acceptDataPrivacyRef", /*#__PURE__*/_react["default"].createRef());
314
+ _defineProperty(_assertThisInitialized(_this), "handleChange", function (event) {
305
315
  _this.setState(_defineProperty({}, event.target.name, {
306
316
  value: event.target.checked,
307
317
  error: null
308
318
  }));
309
319
  });
310
- _defineProperty(_this, "verifyRequestErrors", function (hasFormValidationErrors) {
320
+ _defineProperty(_assertThisInitialized(_this), "verifyRequestErrors", function (hasFormValidationErrors) {
311
321
  var _this$props = _this.props,
312
322
  bulkNameErrors = _this$props.bulkNameErrors,
313
323
  displayAcceptDesign = _this$props.displayAcceptDesign;
@@ -340,7 +350,7 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
340
350
  !hasFormValidationErrors && _this.acceptDataPrivacyRef.current && _this.acceptDataPrivacyRef.current.scrollIntoView();
341
351
  }
342
352
  });
343
- _defineProperty(_this, "requestHasErrors", function () {
353
+ _defineProperty(_assertThisInitialized(_this), "requestHasErrors", function () {
344
354
  var _this$props2 = _this.props,
345
355
  bulkNameErrors = _this$props2.bulkNameErrors,
346
356
  displayAcceptDesign = _this$props2.displayAcceptDesign;
@@ -350,7 +360,7 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
350
360
  }
351
361
  return false;
352
362
  });
353
- _defineProperty(_this, "onAddToBasket", function () {
363
+ _defineProperty(_assertThisInitialized(_this), "onAddToBasket", function () {
354
364
  var onAddToBasket = _this.props.onAddToBasket;
355
365
  if (!_this.requestHasErrors()) {
356
366
  onAddToBasket();
@@ -358,7 +368,7 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
358
368
  _this.verifyRequestErrors();
359
369
  }
360
370
  });
361
- _defineProperty(_this, "dataPrivacyApproved", function () {
371
+ _defineProperty(_assertThisInitialized(_this), "dataPrivacyApproved", function () {
362
372
  var _this$props3 = _this.props,
363
373
  showReceiveOfferForm = _this$props3.showReceiveOfferForm,
364
374
  clientTexts = _this$props3.clientTexts;
@@ -366,96 +376,98 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
366
376
  var dataPrivacyApproved = _this.state.dataPrivacyAccepted.value;
367
377
  return !dataPrivacyLink || !showReceiveOfferForm || dataPrivacyApproved;
368
378
  });
369
- _defineProperty(_this, "handleTouchMove", function (evt) {
379
+ _defineProperty(_assertThisInitialized(_this), "handleTouchMove", function (evt) {
370
380
  var dialogContent = _this.dialogContentRef.current;
371
381
  evt.preventDefault();
372
382
  dialogContent.scrollTo(0, dialogContent.scrollTop);
373
- }.bind(_this));
374
- _defineProperty(_this, "openPriceOverview", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
375
- var _t;
376
- return _regenerator().w(function (_context) {
377
- while (1) switch (_context.p = _context.n) {
383
+ }.bind(_assertThisInitialized(_this)));
384
+ _defineProperty(_assertThisInitialized(_this), "openPriceOverview", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
385
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
386
+ while (1) switch (_context.prev = _context.next) {
378
387
  case 0:
379
- _context.p = 0;
380
- _context.n = 1;
388
+ _context.prev = 0;
389
+ _context.next = 3;
381
390
  return _this.props.validateConfiguration();
382
- case 1:
391
+ case 3:
383
392
  _this.setState({
384
393
  showPriceOverview: !_this.state.showPriceOverview,
385
394
  hasErrorReceiveOfferForm: false
386
395
  });
387
- _context.n = 3;
396
+ _context.next = 9;
388
397
  break;
389
- case 2:
390
- _context.p = 2;
391
- _t = _context.v;
398
+ case 6:
399
+ _context.prev = 6;
400
+ _context.t0 = _context["catch"](0);
392
401
  // eslint-disable-next-line no-console
393
- console.warn("Error while validating configuration: ".concat(_t));
394
- case 3:
395
- return _context.a(2);
402
+ console.warn("Error while validating configuration: ".concat(_context.t0));
403
+ case 9:
404
+ case "end":
405
+ return _context.stop();
396
406
  }
397
- }, _callee, null, [[0, 2]]);
407
+ }, _callee, null, [[0, 6]]);
398
408
  })));
399
- _defineProperty(_this, "openConfigurationOverview", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
400
- var _t2;
401
- return _regenerator().w(function (_context2) {
402
- while (1) switch (_context2.p = _context2.n) {
409
+ _defineProperty(_assertThisInitialized(_this), "openConfigurationOverview", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
410
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
411
+ while (1) switch (_context2.prev = _context2.next) {
403
412
  case 0:
404
- _context2.p = 0;
405
- _context2.n = 1;
413
+ _context2.prev = 0;
414
+ _context2.next = 3;
406
415
  return _this.props.validateConfiguration();
407
- case 1:
416
+ case 3:
408
417
  _this.setState({
409
418
  showConfigurationOverview: true,
410
419
  hasErrorReceiveOfferForm: false
411
420
  });
412
- _context2.n = 3;
421
+ _context2.next = 9;
413
422
  break;
414
- case 2:
415
- _context2.p = 2;
416
- _t2 = _context2.v;
423
+ case 6:
424
+ _context2.prev = 6;
425
+ _context2.t0 = _context2["catch"](0);
417
426
  // eslint-disable-next-line no-console
418
- console.warn("Error while validating configuration: ".concat(_t2));
419
- case 3:
420
- return _context2.a(2);
427
+ console.warn("Error while validating configuration: ".concat(_context2.t0));
428
+ case 9:
429
+ case "end":
430
+ return _context2.stop();
421
431
  }
422
- }, _callee2, null, [[0, 2]]);
432
+ }, _callee2, null, [[0, 6]]);
423
433
  })));
424
- _defineProperty(_this, "onAddToCartClick", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
425
- var _t3;
426
- return _regenerator().w(function (_context3) {
427
- while (1) switch (_context3.p = _context3.n) {
434
+ _defineProperty(_assertThisInitialized(_this), "onAddToCartClick", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
435
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
436
+ while (1) switch (_context3.prev = _context3.next) {
428
437
  case 0:
429
438
  if (!_this.props.skipPriceOverview) {
430
- _context3.n = 7;
439
+ _context3.next = 17;
431
440
  break;
432
441
  }
433
- _context3.p = 1;
442
+ _context3.prev = 1;
434
443
  _this.props.toggleGlobalLoader(true);
435
- _context3.n = 2;
444
+ _context3.next = 5;
436
445
  return _this.props.validateConfiguration();
437
- case 2:
438
- _context3.n = 3;
446
+ case 5:
447
+ _context3.next = 7;
439
448
  return _this.props.onAddToBasket();
440
- case 3:
441
- return _context3.a(2, _context3.v);
442
- case 4:
443
- _context3.p = 4;
444
- _t3 = _context3.v;
449
+ case 7:
450
+ return _context3.abrupt("return", _context3.sent);
451
+ case 10:
452
+ _context3.prev = 10;
453
+ _context3.t0 = _context3["catch"](1);
445
454
  // eslint-disable-next-line no-console
446
- console.warn("Error while validating configuration: ".concat(_t3));
447
- case 5:
448
- _context3.p = 5;
455
+ console.warn("Error while validating configuration: ".concat(_context3.t0));
456
+ case 13:
457
+ _context3.prev = 13;
449
458
  _this.props.toggleGlobalLoader(false);
450
- return _context3.f(5);
451
- case 6:
452
- return _context3.a(2);
453
- case 7:
454
- return _context3.a(2, _this.openPriceOverview());
459
+ return _context3.finish(13);
460
+ case 16:
461
+ return _context3.abrupt("return");
462
+ case 17:
463
+ return _context3.abrupt("return", _this.openPriceOverview());
464
+ case 18:
465
+ case "end":
466
+ return _context3.stop();
455
467
  }
456
- }, _callee3, null, [[1, 4, 5, 6]]);
468
+ }, _callee3, null, [[1, 10, 13, 16]]);
457
469
  })));
458
- _defineProperty(_this, "handleClose", function () {
470
+ _defineProperty(_assertThisInitialized(_this), "handleClose", function () {
459
471
  _this.setState({
460
472
  showConfigurationOverview: false,
461
473
  showPriceOverview: false,
@@ -468,20 +480,20 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
468
480
  });
469
481
  _this.props.onClose();
470
482
  });
471
- _defineProperty(_this, "onReceiveOfferFormPress", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
483
+ _defineProperty(_assertThisInitialized(_this), "onReceiveOfferFormPress", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
472
484
  var formValidation, result;
473
- return _regenerator().w(function (_context4) {
474
- while (1) switch (_context4.n) {
485
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
486
+ while (1) switch (_context4.prev = _context4.next) {
475
487
  case 0:
476
488
  formValidation = _this.receiveOfferFormComponentRef.current.validate();
477
489
  if (!(!_this.requestHasErrors() && formValidation)) {
478
- _context4.n = 2;
490
+ _context4.next = 9;
479
491
  break;
480
492
  }
481
- _context4.n = 1;
493
+ _context4.next = 4;
482
494
  return _this.props.sendReceiveOfferRequest(formValidation);
483
- case 1:
484
- result = _context4.v;
495
+ case 4:
496
+ result = _context4.sent;
485
497
  if (!result) {
486
498
  _this.setState({
487
499
  hasErrorReceiveOfferForm: true
@@ -493,25 +505,26 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
493
505
  hasErrorReceiveOfferForm: false
494
506
  });
495
507
  }
496
- _context4.n = 3;
508
+ _context4.next = 10;
497
509
  break;
498
- case 2:
510
+ case 9:
499
511
  _this.verifyRequestErrors(formValidation.hasError);
500
- case 3:
501
- return _context4.a(2);
512
+ case 10:
513
+ case "end":
514
+ return _context4.stop();
502
515
  }
503
516
  }, _callee4);
504
517
  })));
505
- _defineProperty(_this, "setConfigurationCommentDebounced", (0, _utils.debounce)(function (value) {
518
+ _defineProperty(_assertThisInitialized(_this), "setConfigurationCommentDebounced", (0, _utils.debounce)(function (value) {
506
519
  return _this.props.setConfigurationComment(value);
507
520
  }, 700));
508
- _defineProperty(_this, "handleBasketNoticeChange", function (event) {
521
+ _defineProperty(_assertThisInitialized(_this), "handleBasketNoticeChange", function (event) {
509
522
  _this.setState({
510
523
  notice: event.target.value
511
524
  });
512
525
  _this.setConfigurationCommentDebounced(event.target.value);
513
526
  });
514
- _defineProperty(_this, "onSelectableChanged", function (priceData) {
527
+ _defineProperty(_assertThisInitialized(_this), "onSelectableChanged", function (priceData) {
515
528
  return function (key, newSelected) {
516
529
  var nextData = priceData.map(function (currentElement) {
517
530
  if (currentElement.key === key) {
@@ -527,15 +540,15 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
527
540
  });
528
541
  };
529
542
  });
530
- _defineProperty(_this, "priceListClick", function () {
543
+ _defineProperty(_assertThisInitialized(_this), "priceListClick", function () {
531
544
  _this.priceListRef.current.scrollIntoView();
532
545
  });
533
- _defineProperty(_this, "showPriceListButton", function (inView) {
546
+ _defineProperty(_assertThisInitialized(_this), "showPriceListButton", function (inView) {
534
547
  _this.setState({
535
548
  inView: inView
536
549
  });
537
550
  });
538
- _defineProperty(_this, "renderDefaultPriceBox", function () {
551
+ _defineProperty(_assertThisInitialized(_this), "renderDefaultPriceBox", function () {
539
552
  var _this$props4 = _this.props,
540
553
  classes = _this$props4.classes,
541
554
  amount = _this$props4.amount,
@@ -647,8 +660,7 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
647
660
  });
648
661
  return _this;
649
662
  }
650
- _inherits(AmountPrice, _React$Component);
651
- return _createClass(AmountPrice, [{
663
+ _createClass(AmountPrice, [{
652
664
  key: "componentDidUpdate",
653
665
  value: function componentDidUpdate(prevProps, prevState) {
654
666
  var _this$props5 = this.props,
@@ -924,6 +936,7 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
924
936
  })) : this.renderDefaultPriceBox(), showPriceOverview && this.renderPriceOverview(), showConfigurationOverview && this.renderConfigurationOverview());
925
937
  }
926
938
  }]);
939
+ return AmountPrice;
927
940
  }(_react["default"].Component);
928
941
  _defineProperty(AmountPrice, "defaultProps", {
929
942
  showCallToAction: true,
@@ -48,7 +48,7 @@ var getDefaultComponent = function getDefaultComponent() {
48
48
  return /*#__PURE__*/_react["default"].createElement("div", null);
49
49
  };
50
50
  it('renders correctly', function () {
51
- var tree = (0, _enzyme.render)(/*#__PURE__*/_react["default"].createElement(_index["default"], {
51
+ var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
52
52
  width: "lg",
53
53
  amount: 100,
54
54
  priceFormatted: "500,00 \u20AC",
@@ -60,7 +60,7 @@ it('renders correctly', function () {
60
60
  expect(tree).toMatchSnapshot();
61
61
  });
62
62
  it('renders a boxed component with the boxed prop', function () {
63
- var tree = (0, _enzyme.render)(/*#__PURE__*/_react["default"].createElement(_index["default"], {
63
+ var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
64
64
  width: "lg",
65
65
  amount: 100,
66
66
  boxed: true,
@@ -71,7 +71,7 @@ it('renders a boxed component with the boxed prop', function () {
71
71
  expect(tree).toMatchSnapshot();
72
72
  });
73
73
  it('renders the ConfigurationModeSwitchComponent (if it is provided)', function () {
74
- var tree = (0, _enzyme.render)(/*#__PURE__*/_react["default"].createElement(_index["default"], {
74
+ var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
75
75
  width: "lg",
76
76
  amount: 100,
77
77
  priceFormatted: "500,00 \u20AC",
@@ -86,7 +86,7 @@ it('renders the ConfigurationModeSwitchComponent (if it is provided)', function
86
86
  expect(tree).toMatchSnapshot();
87
87
  });
88
88
  it('renders without callToAction', function () {
89
- var tree = (0, _enzyme.render)(/*#__PURE__*/_react["default"].createElement(_index["default"], {
89
+ var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
90
90
  showCallToAction: false,
91
91
  width: "lg",
92
92
  amount: 100,
@@ -102,7 +102,7 @@ it('renders without callToAction', function () {
102
102
  expect(tree).toMatchSnapshot();
103
103
  });
104
104
  it('renders receiveOfferForm', function () {
105
- var tree = (0, _enzyme.render)(/*#__PURE__*/_react["default"].createElement(_index["default"], {
105
+ var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
106
106
  showReceiveOfferForm: true,
107
107
  width: "lg",
108
108
  amount: 100,
@@ -33,13 +33,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
33
33
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), 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
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
36
+ 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); }
37
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
38
+ 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); }; }
37
39
  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); }
38
40
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
39
41
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
40
42
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
41
- 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); }
42
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
43
43
  var styles = function styles(theme) {
44
44
  return {
45
45
  dialogTitleRoot: {
@@ -114,12 +114,13 @@ var styles = function styles(theme) {
114
114
  };
115
115
  };
116
116
  var BulkNames = /*#__PURE__*/function (_React$Component) {
117
+ _inherits(BulkNames, _React$Component);
118
+ var _super = _createSuper(BulkNames);
117
119
  function BulkNames() {
118
120
  _classCallCheck(this, BulkNames);
119
- return _callSuper(this, BulkNames, arguments);
121
+ return _super.apply(this, arguments);
120
122
  }
121
- _inherits(BulkNames, _React$Component);
122
- return _createClass(BulkNames, [{
123
+ _createClass(BulkNames, [{
123
124
  key: "render",
124
125
  value: function render() {
125
126
  var _this$props = this.props,
@@ -250,6 +251,7 @@ var BulkNames = /*#__PURE__*/function (_React$Component) {
250
251
  }, (0, _i18n.t)('bulkNames.apply'))));
251
252
  }
252
253
  }]);
254
+ return BulkNames;
253
255
  }(_react["default"].Component);
254
256
  var _default = exports["default"] = (0, _withWidth["default"])()((0, _styles.withStyles)(styles, {
255
257
  name: 'BulkNames'