@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
@@ -8,13 +8,13 @@ var _AbstractUIService2 = _interopRequireDefault(require("../../Framework/Servic
8
8
  var _Actions = require("../Reducers/UI/Actions");
9
9
  var _ServiceLocator = require("../ServiceLocator");
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
+ 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); }
12
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
13
+ 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); }; }
12
14
  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); }
13
15
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
14
16
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
17
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
16
- 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); }
17
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
18
18
  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); }
19
19
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
20
  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); } }
@@ -26,20 +26,22 @@ var Work = /*#__PURE__*/function () {
26
26
  _classCallCheck(this, Work);
27
27
  this.name = name;
28
28
  }
29
- return _createClass(Work, [{
29
+ _createClass(Work, [{
30
30
  key: "done",
31
31
  value: function done() {
32
32
  _ServiceLocator.Services.ui.endWork(this.name);
33
33
  }
34
34
  }]);
35
+ return Work;
35
36
  }();
36
37
  var UIService = exports["default"] = /*#__PURE__*/function (_AbstractUIService) {
38
+ _inherits(UIService, _AbstractUIService);
39
+ var _super = _createSuper(UIService);
37
40
  function UIService() {
38
41
  _classCallCheck(this, UIService);
39
- return _callSuper(this, UIService, arguments);
42
+ return _super.apply(this, arguments);
40
43
  }
41
- _inherits(UIService, _AbstractUIService);
42
- return _createClass(UIService, [{
44
+ _createClass(UIService, [{
43
45
  key: "show",
44
46
  value: function show(name) {
45
47
  _ServiceLocator.Services.store.dispatch((0, _Actions.setVisible)(name, true));
@@ -96,4 +98,5 @@ var UIService = exports["default"] = /*#__PURE__*/function (_AbstractUIService)
96
98
  _ServiceLocator.Services.store.dispatch((0, _Actions.dismissAlert)());
97
99
  }
98
100
  }]);
101
+ return UIService;
99
102
  }(_AbstractUIService2["default"]);
@@ -26,8 +26,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
26
26
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
27
27
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
28
28
  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; }
29
+ 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 }; })(); }
30
+ 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"); }
31
+ 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; }; }
32
+ 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(); }); }
33
+ function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
34
+ 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); }
29
35
  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 }; })(); }
30
36
  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); }
37
+ function _OverloadYield(e, d) { this.v = e, this.k = d; }
31
38
  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); }
32
39
  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); }); }; }
33
40
  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; }
@@ -35,13 +42,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
35
42
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
36
43
  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); } }
37
44
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
38
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
45
+ 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); }
46
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
47
+ 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); }; }
39
48
  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); }
40
49
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
41
50
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
42
51
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
43
- 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); }
44
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
45
52
  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; }
46
53
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
47
54
  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); }
@@ -63,16 +70,18 @@ var visualizationScriptPromise = new Promise(function (resolve, reject) {
63
70
  script.src = visualizationScriptSrc;
64
71
  });
65
72
  var VisualizationService = exports["default"] = /*#__PURE__*/function (_AbstractVisualizatio) {
73
+ _inherits(VisualizationService, _AbstractVisualizatio);
74
+ var _super = _createSuper(VisualizationService);
66
75
  function VisualizationService() {
67
76
  var _this;
68
77
  _classCallCheck(this, VisualizationService);
69
78
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
70
79
  args[_key] = arguments[_key];
71
80
  }
72
- _this = _callSuper(this, VisualizationService, [].concat(args));
73
- _defineProperty(_this, "observable", new _Observable["default"](_this));
74
- _defineProperty(_this, "host", (0, _configuration.getConf)('network.host'));
75
- _defineProperty(_this, "adapterConfig", function () {
81
+ _this = _super.call.apply(_super, [this].concat(args));
82
+ _defineProperty(_assertThisInitialized(_this), "observable", new _Observable["default"](_assertThisInitialized(_this)));
83
+ _defineProperty(_assertThisInitialized(_this), "host", (0, _configuration.getConf)('network.host'));
84
+ _defineProperty(_assertThisInitialized(_this), "adapterConfig", function () {
76
85
  var cfg = (0, _visualizationAdapterCreator.createAdapterConfig)({
77
86
  host: _this.host
78
87
  }, {
@@ -95,17 +104,16 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
95
104
  * @type {null|object}
96
105
  * @private
97
106
  */
98
- _defineProperty(_this, "_component", null);
107
+ _defineProperty(_assertThisInitialized(_this), "_component", null);
99
108
  /**
100
109
  * Function to release the camera movement restrictions
101
110
  * @type {null|function}
102
111
  * @private
103
112
  */
104
- _defineProperty(_this, "_removeRestrictedUserMovementZoomHandler", null);
113
+ _defineProperty(_assertThisInitialized(_this), "_removeRestrictedUserMovementZoomHandler", null);
105
114
  return _this;
106
115
  }
107
- _inherits(VisualizationService, _AbstractVisualizatio);
108
- return _createClass(VisualizationService, [{
116
+ _createClass(VisualizationService, [{
109
117
  key: "init",
110
118
  value: function init() {
111
119
  var _this2 = this;
@@ -142,17 +150,18 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
142
150
  }, {
143
151
  key: "updateDesignAreaList",
144
152
  value: function () {
145
- var _updateDesignAreaList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(designAreaList) {
146
- return _regenerator().w(function (_context) {
147
- while (1) switch (_context.n) {
153
+ var _updateDesignAreaList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(designAreaList) {
154
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
155
+ while (1) switch (_context.prev = _context.next) {
148
156
  case 0:
149
- _context.n = 1;
157
+ _context.next = 2;
150
158
  return (0, _sendMessage["default"])(this.getComponent(), 'updateDesignAreaList', designAreaList);
151
- case 1:
152
- _context.n = 2;
153
- return this.designViewChangeHandler((0, _Selectors3.getCurrentDesignView)(_ServiceLocator.Services.store.state));
154
159
  case 2:
155
- return _context.a(2);
160
+ _context.next = 4;
161
+ return this.designViewChangeHandler((0, _Selectors3.getCurrentDesignView)(_ServiceLocator.Services.store.state));
162
+ case 4:
163
+ case "end":
164
+ return _context.stop();
156
165
  }
157
166
  }, _callee, this);
158
167
  }));
@@ -199,10 +208,10 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
199
208
  }, {
200
209
  key: "designAreaChangeHandler",
201
210
  value: function () {
202
- var _designAreaChangeHandler = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
211
+ var _designAreaChangeHandler = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
203
212
  var designArea, visualization, state, modeCheck, viewName;
204
- return _regenerator().w(function (_context2) {
205
- while (1) switch (_context2.n) {
213
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
214
+ while (1) switch (_context2.prev = _context2.next) {
206
215
  case 0:
207
216
  designArea = (0, _Selectors.getSelectedDesignArea)(_ServiceLocator.Services.store.state);
208
217
  visualization = this.getComponent();
@@ -210,30 +219,31 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
210
219
  state = _ServiceLocator.Services.store.state;
211
220
  modeCheck = (0, _Selectors2.visualizationModeCheck)(state);
212
221
  if (!modeCheck.is3D()) {
213
- _context2.n = 2;
222
+ _context2.next = 11;
214
223
  break;
215
224
  }
216
225
  viewName = (0, _Selectors.getSelectedViewName)(designArea);
217
- _context2.n = 1;
226
+ _context2.next = 9;
218
227
  return (0, _sendMessage["default"])(visualization, 'jumpToView', viewName);
219
- case 1:
220
- _context2.n = 3;
228
+ case 9:
229
+ _context2.next = 14;
221
230
  break;
222
- case 2:
231
+ case 11:
223
232
  if (!(modeCheck.is2D() && designArea.identifier)) {
224
- _context2.n = 3;
233
+ _context2.next = 14;
225
234
  break;
226
235
  }
227
- _context2.n = 3;
236
+ _context2.next = 14;
228
237
  return (0, _sendMessage["default"])(visualization, 'jumpToArea', designArea.identifier);
229
- case 3:
238
+ case 14:
230
239
  // make sure every state update and change event is triggered before updating the visualization
231
240
  // root case: get the canvas data with cleared selection
232
241
  setTimeout(function () {
233
242
  return _ServiceLocator.Services.designData.updateVisualization();
234
243
  });
235
- case 4:
236
- return _context2.a(2);
244
+ case 15:
245
+ case "end":
246
+ return _context2.stop();
237
247
  }
238
248
  }, _callee2, this);
239
249
  }));
@@ -250,23 +260,24 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
250
260
  }, {
251
261
  key: "designViewChangeHandler",
252
262
  value: function () {
253
- var _designViewChangeHandler = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(designView) {
263
+ var _designViewChangeHandler = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(designView) {
254
264
  var visualization;
255
- return _regenerator().w(function (_context3) {
256
- while (1) switch (_context3.n) {
265
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
266
+ while (1) switch (_context3.prev = _context3.next) {
257
267
  case 0:
258
268
  if (designView) {
259
- _context3.n = 1;
269
+ _context3.next = 2;
260
270
  break;
261
271
  }
262
- return _context3.a(2);
263
- case 1:
272
+ return _context3.abrupt("return");
273
+ case 2:
264
274
  visualization = this.getComponent();
265
275
  this._viewChangedPromise = (0, _sendMessage["default"])(visualization, 'setView', designView);
266
- _context3.n = 2;
276
+ _context3.next = 6;
267
277
  return this._viewChangedPromise;
268
- case 2:
269
- return _context3.a(2);
278
+ case 6:
279
+ case "end":
280
+ return _context3.stop();
270
281
  }
271
282
  }, _callee3, this);
272
283
  }));
@@ -330,16 +341,17 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
330
341
 
331
342
  // the design areas should be redrawn when the material is updated
332
343
  component.observable.on(_Constants.EventTypes.MaterialUpdated, /*#__PURE__*/function () {
333
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(updateEventObject) {
334
- return _regenerator().w(function (_context4) {
335
- while (1) switch (_context4.n) {
344
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(updateEventObject) {
345
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
346
+ while (1) switch (_context4.prev = _context4.next) {
336
347
  case 0:
337
- _context4.n = 1;
348
+ _context4.next = 2;
338
349
  return _ServiceLocator.Services.designData.updateVisualization(updateEventObject);
339
- case 1:
340
- _this3.observable.dispatch(EventTypes.VisualizationUpdate, updateEventObject);
341
350
  case 2:
342
- return _context4.a(2);
351
+ _this3.observable.dispatch(EventTypes.VisualizationUpdate, updateEventObject);
352
+ case 3:
353
+ case "end":
354
+ return _context4.stop();
343
355
  }
344
356
  }, _callee4);
345
357
  }));
@@ -499,26 +511,29 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
499
511
  */
500
512
  }, {
501
513
  key: "getScreenshots",
502
- value: (function () {
503
- var _getScreenshots = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
514
+ value: function () {
515
+ var _getScreenshots = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
504
516
  var options,
505
517
  screenshots,
506
518
  _args5 = arguments;
507
- return _regenerator().w(function (_context5) {
508
- while (1) switch (_context5.n) {
519
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
520
+ while (1) switch (_context5.prev = _context5.next) {
509
521
  case 0:
510
522
  options = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
511
523
  screenshots = null;
512
524
  if (!this._getScreenshotsFn) {
513
- _context5.n = 1;
525
+ _context5.next = 5;
514
526
  break;
515
527
  }
516
- _context5.n = 1;
528
+ _context5.next = 5;
517
529
  return this._getScreenshotsFn(function (result) {
518
530
  screenshots = result;
519
531
  }, options);
520
- case 1:
521
- return _context5.a(2, screenshots);
532
+ case 5:
533
+ return _context5.abrupt("return", screenshots);
534
+ case 6:
535
+ case "end":
536
+ return _context5.stop();
522
537
  }
523
538
  }, _callee5, this);
524
539
  }));
@@ -526,7 +541,7 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
526
541
  return _getScreenshots.apply(this, arguments);
527
542
  }
528
543
  return getScreenshots;
529
- }())
544
+ }()
530
545
  }, {
531
546
  key: "abortScreenshotting",
532
547
  value: function abortScreenshotting() {
@@ -558,28 +573,29 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
558
573
  */
559
574
  }, {
560
575
  key: "updateTexture",
561
- value: (function () {
562
- var _updateTexture = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
576
+ value: function () {
577
+ var _updateTexture = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
563
578
  var textureUpdateInfo,
564
579
  _args6 = arguments;
565
- return _regenerator().w(function (_context6) {
566
- while (1) switch (_context6.n) {
580
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
581
+ while (1) switch (_context6.prev = _context6.next) {
567
582
  case 0:
568
583
  textureUpdateInfo = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
569
584
  if (!this._onTextureUpdateFn) {
570
- _context6.n = 2;
585
+ _context6.next = 6;
571
586
  break;
572
587
  }
573
- _context6.n = 1;
588
+ _context6.next = 4;
574
589
  return this._onTextureUpdateFn(textureUpdateInfo);
575
- case 1:
576
- _context6.n = 3;
590
+ case 4:
591
+ _context6.next = 7;
577
592
  break;
578
- case 2:
593
+ case 6:
579
594
  // save it for later if there is no update function registered yet
580
595
  this._textureUpdateRequest = textureUpdateInfo;
581
- case 3:
582
- return _context6.a(2);
596
+ case 7:
597
+ case "end":
598
+ return _context6.stop();
583
599
  }
584
600
  }, _callee6, this);
585
601
  }));
@@ -587,37 +603,38 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
587
603
  return _updateTexture.apply(this, arguments);
588
604
  }
589
605
  return updateTexture;
590
- }())
606
+ }()
591
607
  }, {
592
608
  key: "drawDesignAreasOnTexture",
593
609
  value: function () {
594
- var _drawDesignAreasOnTexture = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(_ref3) {
595
- var drawingFunction, updateEventObject, getDrawingContext, _t, _t2;
596
- return _regenerator().w(function (_context7) {
597
- while (1) switch (_context7.p = _context7.n) {
610
+ var _drawDesignAreasOnTexture = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(_ref3) {
611
+ var drawingFunction, updateEventObject, getDrawingContext;
612
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
613
+ while (1) switch (_context7.prev = _context7.next) {
598
614
  case 0:
599
615
  drawingFunction = _ref3.drawingFunction, updateEventObject = _ref3.updateEventObject;
600
- _context7.p = 1;
616
+ _context7.prev = 1;
601
617
  getDrawingContext = this._component.getDrawingContext.bind(this._component);
602
- _t = drawingFunction;
603
- if (!_t) {
604
- _context7.n = 2;
618
+ _context7.t0 = drawingFunction;
619
+ if (!_context7.t0) {
620
+ _context7.next = 7;
605
621
  break;
606
622
  }
607
- _context7.n = 2;
623
+ _context7.next = 7;
608
624
  return drawingFunction(getDrawingContext, updateEventObject);
609
- case 2:
610
- _context7.n = 4;
625
+ case 7:
626
+ _context7.next = 12;
611
627
  break;
612
- case 3:
613
- _context7.p = 3;
614
- _t2 = _context7.v;
628
+ case 9:
629
+ _context7.prev = 9;
630
+ _context7.t1 = _context7["catch"](1);
615
631
  // eslint-disable-next-line no-console
616
632
  console.log('Skipping texture update: drawing context is not available.');
617
- case 4:
618
- return _context7.a(2);
633
+ case 12:
634
+ case "end":
635
+ return _context7.stop();
619
636
  }
620
- }, _callee7, this, [[1, 3]]);
637
+ }, _callee7, this, [[1, 9]]);
621
638
  }));
622
639
  function drawDesignAreasOnTexture(_x4) {
623
640
  return _drawDesignAreasOnTexture.apply(this, arguments);
@@ -748,6 +765,7 @@ var VisualizationService = exports["default"] = /*#__PURE__*/function (_Abstract
748
765
  return false;
749
766
  }
750
767
  }]);
768
+ return VisualizationService;
751
769
  }(_AbstractVisualizationService["default"]);
752
770
  /**
753
771
  * This function was copied from the redhotmagma-configurator-administrationgui project
@@ -19,39 +19,40 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
19
19
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
20
  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); } }
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
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
22
+ 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); }
23
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
24
+ 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); }; }
23
25
  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); }
24
26
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
25
27
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
28
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
27
- 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); }
28
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
29
29
  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; }
30
30
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
31
31
  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); } /* eslint-disable prettier/prettier */
32
32
  var styles = function styles(theme) {
33
+ var _MuiFormControlRoot, _checkboxLabel, _checkbox;
33
34
  return {
34
- MuiFormControlRoot: _defineProperty(_defineProperty({
35
+ MuiFormControlRoot: (_MuiFormControlRoot = {
35
36
  display: 'flex !important'
36
- }, theme.breakpoints.up('sm'), {
37
+ }, _defineProperty(_MuiFormControlRoot, theme.breakpoints.up('sm'), {
37
38
  marginTop: 15,
38
39
  marginBottom: 20
39
- }), '& label', {
40
+ }), _defineProperty(_MuiFormControlRoot, '& label', {
40
41
  fontSize: 15
41
- }),
42
- checkboxLabel: _defineProperty(_defineProperty({
42
+ }), _MuiFormControlRoot),
43
+ checkboxLabel: (_checkboxLabel = {
43
44
  fontSize: 15,
44
45
  paddingTop: 10,
45
46
  paddingLeft: 11,
46
47
  paddingBottom: 20
47
- }, theme.breakpoints.down('xs'), {
48
+ }, _defineProperty(_checkboxLabel, theme.breakpoints.down('xs'), {
48
49
  paddingLeft: 2
49
- }), "alignItems", 'start'),
50
- checkbox: _defineProperty(_defineProperty({
50
+ }), _defineProperty(_checkboxLabel, "alignItems", 'start'), _checkboxLabel),
51
+ checkbox: (_checkbox = {
51
52
  marginRight: '10px'
52
- }, theme.breakpoints.down('xs'), {
53
+ }, _defineProperty(_checkbox, theme.breakpoints.down('xs'), {
53
54
  margin: '-12px 0 0 10px'
54
- }), "padding", '0'),
55
+ }), _defineProperty(_checkbox, "padding", '0'), _checkbox),
55
56
  formHelperText: {
56
57
  marginLeft: 45,
57
58
  marginBottom: 15
@@ -59,12 +60,13 @@ var styles = function styles(theme) {
59
60
  };
60
61
  };
61
62
  var AcceptDesign = /*#__PURE__*/function (_React$Component) {
63
+ _inherits(AcceptDesign, _React$Component);
64
+ var _super = _createSuper(AcceptDesign);
62
65
  function AcceptDesign() {
63
66
  _classCallCheck(this, AcceptDesign);
64
- return _callSuper(this, AcceptDesign, arguments);
67
+ return _super.apply(this, arguments);
65
68
  }
66
- _inherits(AcceptDesign, _React$Component);
67
- return _createClass(AcceptDesign, [{
69
+ _createClass(AcceptDesign, [{
68
70
  key: "render",
69
71
  value: function render() {
70
72
  var _this$props = this.props,
@@ -121,6 +123,7 @@ var AcceptDesign = /*#__PURE__*/function (_React$Component) {
121
123
  }, (0, _i18n.t)('acceptDesignScreen.selectionError'))));
122
124
  }
123
125
  }]);
126
+ return AcceptDesign;
124
127
  }(_react["default"].Component);
125
128
  var _default = exports["default"] = (0, _withWidth["default"])()((0, _styles.withStyles)(styles, {
126
129
  name: 'AcceptDesign'
@@ -18,13 +18,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
18
18
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
19
19
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
20
20
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
21
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
21
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
22
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
23
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
22
24
  function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
23
25
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
24
26
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
27
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
26
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
27
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
28
28
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
29
29
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
30
30
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -49,12 +49,13 @@ var styles = function styles(theme) {
49
49
  };
50
50
  };
51
51
  var AcceptPrivacy = /*#__PURE__*/function (_React$Component) {
52
+ _inherits(AcceptPrivacy, _React$Component);
53
+ var _super = _createSuper(AcceptPrivacy);
52
54
  function AcceptPrivacy() {
53
55
  _classCallCheck(this, AcceptPrivacy);
54
- return _callSuper(this, AcceptPrivacy, arguments);
56
+ return _super.apply(this, arguments);
55
57
  }
56
- _inherits(AcceptPrivacy, _React$Component);
57
- return _createClass(AcceptPrivacy, [{
58
+ _createClass(AcceptPrivacy, [{
58
59
  key: "render",
59
60
  value: function render() {
60
61
  var _this$props = this.props,
@@ -91,6 +92,7 @@ var AcceptPrivacy = /*#__PURE__*/function (_React$Component) {
91
92
  }, (0, _i18n.t)('receiveOfferForm.selectionError'))));
92
93
  }
93
94
  }]);
95
+ return AcceptPrivacy;
94
96
  }(_react["default"].Component);
95
97
  var _default = exports["default"] = (0, _withWidth["default"])()((0, _styles.withStyles)(styles, {
96
98
  name: 'AcceptPrivacy'
@@ -19,13 +19,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
19
19
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
20
  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); } }
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
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
22
+ 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); }
23
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
24
+ 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); }; }
23
25
  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); }
24
26
  function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
25
27
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
28
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
27
- 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); }
28
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
29
29
  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; }
30
30
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
31
31
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -64,12 +64,13 @@ var styles = function styles(theme) {
64
64
  };
65
65
  };
66
66
  var AddToBasket = /*#__PURE__*/function (_React$Component) {
67
+ _inherits(AddToBasket, _React$Component);
68
+ var _super = _createSuper(AddToBasket);
67
69
  function AddToBasket() {
68
70
  _classCallCheck(this, AddToBasket);
69
- return _callSuper(this, AddToBasket, arguments);
71
+ return _super.apply(this, arguments);
70
72
  }
71
- _inherits(AddToBasket, _React$Component);
72
- return _createClass(AddToBasket, [{
73
+ _createClass(AddToBasket, [{
73
74
  key: "render",
74
75
  value: function render() {
75
76
  var _this$props = this.props,
@@ -137,6 +138,7 @@ var AddToBasket = /*#__PURE__*/function (_React$Component) {
137
138
  }, buttonLabel)));
138
139
  }
139
140
  }]);
141
+ return AddToBasket;
140
142
  }(_react["default"].Component);
141
143
  var _default = exports["default"] = (0, _styles.withStyles)(styles, {
142
144
  name: 'AddToBasket'