@configuratorware/configurator-frontendgui 1.56.2 → 1.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App/Error/ErrorBoundary.js +8 -6
- package/App/Frame.js +8 -6
- package/App/Modules/Creator/Components/ConfigurationvariantItem/index.js +10 -8
- package/App/Modules/Creator/Components/ConfigurationvariantSelection/index.js +10 -8
- package/App/Modules/Creator/Components/CustomTitleEditor/index.js +10 -8
- package/App/Modules/Creator/Components/ExternalVisualization/index.js +9 -7
- package/App/Modules/Creator/Components/FastConfigurationRow/index.js +8 -6
- package/App/Modules/Creator/Components/FastConfigurationSelect/index.js +8 -6
- package/App/Modules/Creator/Components/FullScreenView/FullScreenView.js +11 -10
- package/App/Modules/Creator/Components/Incompatibility/OptionExclusionRule/index.js +8 -6
- package/App/Modules/Creator/Components/Incompatibility/OptionRule/index.js +8 -6
- package/App/Modules/Creator/Components/Incompatibility/RuleComponent.js +9 -7
- package/App/Modules/Creator/Components/Incompatibility/index.js +9 -8
- package/App/Modules/Creator/Components/Option/index.js +1 -0
- package/App/Modules/Creator/Components/OptionAmount/index.js +14 -6
- package/App/Modules/Creator/Components/Optiondetail/ZoomImage/index.js +7 -6
- package/App/Modules/Creator/Components/Optiondetail/index.js +17 -15
- package/App/Modules/Creator/Components/OptionsList/index.js +12 -11
- package/App/Modules/Creator/Components/Price/index.js +8 -6
- package/App/Modules/Creator/Components/ProductPart/index.js +8 -7
- package/App/Modules/Creator/Components/Tools/index.js +8 -6
- package/App/Modules/Creator/Layouts/DefaultLayout.js +30 -28
- package/App/Modules/Designer/Components/AddGalleryImage/index.js +11 -9
- package/App/Modules/Designer/Components/AddGalleryImage/index.story.js +4 -4
- package/App/Modules/Designer/Components/AddGalleryImage/index.test.js +6 -6
- package/App/Modules/Designer/Components/AddVisualElement/index.js +8 -6
- package/App/Modules/Designer/Components/AddVisualElement/index.test.js +3 -3
- package/App/Modules/Designer/Components/CloseDesignEditor/index.js +8 -6
- package/App/Modules/Designer/Components/CloseGraphicsEditorButton/index.js +5 -4
- package/App/Modules/Designer/Components/ColorPalettes/index.js +26 -21
- package/App/Modules/Designer/Components/ColorPalettes/index.test.js +3 -3
- package/App/Modules/Designer/Components/DesignAreaControlbox/index.js +23 -20
- package/App/Modules/Designer/Components/DesignAreaControlbox/index.test.js +7 -7
- package/App/Modules/Designer/Components/Dialog/index.js +13 -10
- package/App/Modules/Designer/Components/FeedbackNotice/index.js +9 -7
- package/App/Modules/Designer/Components/FeedbackNotice/index.test.js +1 -1
- package/App/Modules/Designer/Components/FullScreenView/FullScreenView.js +7 -6
- package/App/Modules/Designer/Components/ImageColorPicker/ImageColorPicker.js +12 -10
- package/App/Modules/Designer/Components/ImageColorize/index.js +39 -29
- package/App/Modules/Designer/Components/ImageControlbox/index.js +16 -13
- package/App/Modules/Designer/Components/ImageEditDialog/ImageThumbnail.js +24 -14
- package/App/Modules/Designer/Components/ImageEditDialog/ImageUpload.js +85 -69
- package/App/Modules/Designer/Components/ImageEditDialog/index.js +45 -42
- package/App/Modules/Designer/Components/ImageLibraryThumbnail/index.js +9 -7
- package/App/Modules/Designer/Components/ObjectTools/index.js +8 -6
- package/App/Modules/Designer/Components/Select/index.js +8 -6
- package/App/Modules/Designer/Components/TextControlbox/index.js +26 -21
- package/App/Modules/Designer/Components/TextControlbox/index.test.js +10 -10
- package/App/Modules/Designer/Containers/AddVisualElement.js +21 -11
- package/App/Modules/Designer/Containers/ImageEditDialog.js +173 -157
- package/App/Modules/Designer/Designer.js +7 -6
- package/App/Modules/Designer/Layouts/DefaultLayout.js +20 -17
- package/App/Modules/Designer/Layouts/PopupAreaProvider.js +18 -15
- package/App/Modules/Designer/Utils/Transformers.js +23 -13
- package/App/Modules/Designer/setupDesigner.js +27 -16
- package/App/Modules/Designer/withActiveCanvas.js +10 -8
- package/App/Modules/Visualization/AlignTargetContainer.js +1 -0
- package/App/Modules/Visualization/CreatorAlignTarget.js +12 -11
- package/App/Modules/Visualization/DefaultVisualizationProvider.js +10 -8
- package/App/Modules/Visualization/DesignerAlignTarget.js +10 -9
- package/App/Reducers/Actions.js +44 -36
- package/App/Reducers/Configurator/Actions.js +92 -78
- package/App/Reducers/Configurator/Selectors.js +5 -5
- package/App/Reducers/Confirm/Actions.js +16 -6
- package/App/Reducers/DesignArea/Selectors.js +2 -1
- package/App/Reducers/ImageGallery/Actions.js +31 -18
- package/App/Reducers/ImageGallery/Reducer.js +1 -0
- package/App/Reducers/ImageGallery/Selectors.js +1 -0
- package/App/Reducers/UI/Actions.js +40 -26
- package/App/Routing.js +8 -6
- package/App/Screens/Configurator/Components/AmountSelection/index.js +11 -9
- package/App/Screens/Configurator/Components/CalculationWidget/index.js +19 -17
- package/App/Screens/Configurator/Components/CalculationWidget/index.test.js +8 -8
- package/App/Screens/Configurator/Components/Confirm/index.js +8 -6
- package/App/Screens/Configurator/Components/Error/index.js +9 -7
- package/App/Screens/Configurator/Components/FullScreenView/index.js +24 -21
- package/App/Screens/Configurator/Components/FullScreenView/index.test.js +2 -2
- package/App/Screens/Configurator/Components/ItemTile/ItemTile.js +13 -5
- package/App/Screens/Configurator/Components/PreviewPortal/index.js +10 -8
- package/App/Screens/Configurator/Components/Thumbnail/index.js +27 -24
- package/App/Screens/Configurator/Components/Thumbnail/index.test.js +2 -2
- package/App/Screens/Configurator/Containers/AmountPrice.js +6 -5
- package/App/Screens/Configurator/Containers/ConfigurationModeSwitch.js +19 -10
- package/App/Screens/DesignerProductPreview/DesignerProductPreviewManager.js +88 -73
- package/App/Screens/DesignerProductPreview/Screen.js +21 -14
- package/App/Screens/ItemOverview/Components/ItemOverview.js +47 -32
- package/App/ServiceLocator.js +4 -2
- package/App/Services/AdminareaCommunicationService.js +24 -14
- package/App/Services/AnalyticsService.js +48 -47
- package/App/Services/ConfiguratorService.js +142 -121
- package/App/Services/DesignDataService.js +619 -555
- package/App/Services/DesignerService.js +100 -79
- package/App/Services/InteractionService.js +236 -210
- package/App/Services/UIService.js +10 -7
- package/App/Services/VisualizationService.js +104 -86
- package/App/Shared/Components/AcceptDesign/index.js +19 -16
- package/App/Shared/Components/AcceptPrivacy/index.js +8 -6
- package/App/Shared/Components/AddToBasket/index.js +8 -6
- package/App/Shared/Components/AlertDialog/index.js +9 -7
- package/App/Shared/Components/AmountInput/index.js +24 -21
- package/App/Shared/Components/AmountPrice/index.js +128 -115
- package/App/Shared/Components/AmountPrice/index.test.js +5 -5
- package/App/Shared/Components/BulkNames/index.js +8 -6
- package/App/Shared/Components/ConfigurationOverview/index.js +8 -6
- package/App/Shared/Components/InformationTag/InformationTag.js +11 -9
- package/App/Shared/Components/LicenseNotice/LicenseNotice.js +8 -6
- package/App/Shared/Components/LoadConfiguration/index.js +9 -7
- package/App/Shared/Components/Notification/index.js +8 -6
- package/App/Shared/Components/PdfDownload/index.js +25 -15
- package/App/Shared/Components/PriceList/index.js +16 -13
- package/App/Shared/Components/PriceOverview/index.js +13 -10
- package/App/Shared/Components/ProductVariant/index.js +25 -22
- package/App/Shared/Components/ProductVariant/index.story.js +1 -0
- package/App/Shared/Components/ReceiveOfferForm/index.js +12 -10
- package/App/Shared/Components/ReceiveOfferForm/index.test.js +2 -2
- package/App/Shared/Components/SaveConfiguration/index.js +32 -22
- package/App/Shared/Components/Stepper/index.js +10 -8
- package/App/Shared/Components/ToolbarList/index.js +11 -9
- package/App/Shared/Components/VariantChooser/index.js +13 -10
- package/App/Shared/Containers/BulkNames.js +15 -13
- package/App/Shared/Containers/Header/index.js +15 -7
- package/App/Shared/Containers/LoadConfiguration/LoadConfiguration.js +22 -15
- package/App/Shared/Containers/ProductVariant/ProductVariant.js +23 -15
- package/App/Translations.js +56 -40
- package/App/Utils/Request/lazyFetch.js +27 -19
- package/App/configuration.js +4 -0
- package/App/index.js +24 -14
- package/Framework/Api.js +2 -1
- package/Framework/ComponentContainer.js +14 -11
- package/Framework/Components/Carousel/index.js +13 -11
- package/Framework/Components/Dialog/index.js +35 -33
- package/Framework/Components/DialogSelect/index.js +19 -16
- package/Framework/Components/Input/index.js +12 -10
- package/Framework/CustomError.js +6 -5
- package/Framework/Helpers/TransitionDetect.js +2 -1
- package/Framework/Services/AbstractAdminareaCommunicationService.js +2 -1
- package/Framework/Services/AbstractAsyncService.js +2 -1
- package/Framework/Services/AbstractConfiguratorService.js +2 -1
- package/Framework/Services/AbstractInteractionService.js +2 -1
- package/Framework/Services/AbstractStoreService.js +2 -1
- package/Framework/Services/AbstractUIService.js +2 -1
- package/Framework/Services/AbstractVisualizationService.js +2 -1
- package/Framework/Services/AsyncService.js +8 -6
- package/Framework/Services/StoreService.js +27 -17
- package/Framework/bindDecorator.js +7 -6
- package/Framework/i18n.js +10 -8
- package/Shared/ErrorTypes/DeferredError.js +6 -5
- package/Shared/HOCs/ResizeDetect/ResizeDetect.js +11 -9
- package/Utils/Async/AsyncManager.js +30 -20
- package/Utils/Async/Deferred.js +4 -2
- package/Utils/Decorators/Observable.js +2 -1
- package/Utils/Dev/HOCs/withFilePicker.js +10 -8
- package/Utils/Immutable/set.js +6 -6
- package/Utils/Test/mountWithState.js +1 -1
- package/package.json +4 -4
|
@@ -17,16 +17,15 @@ var _RuleComponent = _interopRequireDefault(require("./RuleComponent"));
|
|
|
17
17
|
var _OptionExclusionRule = _interopRequireDefault(require("./OptionExclusionRule"));
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
19
|
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); }
|
|
20
|
-
function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
21
20
|
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; }
|
|
22
21
|
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; }
|
|
23
|
-
function
|
|
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); }; }
|
|
24
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); }
|
|
25
26
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
26
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
28
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
28
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
29
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
30
29
|
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); } }
|
|
31
30
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
32
31
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -96,22 +95,23 @@ var RuleCounter = exports.RuleCounter = /*#__PURE__*/_createClass(function RuleC
|
|
|
96
95
|
});
|
|
97
96
|
});
|
|
98
97
|
var Incompatibility = /*#__PURE__*/function (_React$Component) {
|
|
98
|
+
_inherits(Incompatibility, _React$Component);
|
|
99
|
+
var _super = _createSuper(Incompatibility);
|
|
99
100
|
function Incompatibility() {
|
|
100
101
|
var _this2;
|
|
101
102
|
_classCallCheck(this, Incompatibility);
|
|
102
103
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
103
104
|
args[_key] = arguments[_key];
|
|
104
105
|
}
|
|
105
|
-
_this2 =
|
|
106
|
-
_defineProperty(_this2, "ruleTypeComponents", {
|
|
106
|
+
_this2 = _super.call.apply(_super, [this].concat(args));
|
|
107
|
+
_defineProperty(_assertThisInitialized(_this2), "ruleTypeComponents", {
|
|
107
108
|
optionexclusion: _OptionExclusionRule["default"],
|
|
108
109
|
optiondependency: _OptionRule["default"],
|
|
109
110
|
itemattributematch: _OptionRule["default"]
|
|
110
111
|
});
|
|
111
112
|
return _this2;
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
-
return _createClass(Incompatibility, [{
|
|
114
|
+
_createClass(Incompatibility, [{
|
|
115
115
|
key: "renderRules",
|
|
116
116
|
value: function renderRules() {
|
|
117
117
|
var _this3 = this;
|
|
@@ -181,6 +181,7 @@ var Incompatibility = /*#__PURE__*/function (_React$Component) {
|
|
|
181
181
|
}, this.renderRules()), this.renderFooter());
|
|
182
182
|
}
|
|
183
183
|
}]);
|
|
184
|
+
return Incompatibility;
|
|
184
185
|
}(_react["default"].Component);
|
|
185
186
|
Incompatibility.defaultProps = {
|
|
186
187
|
ruleComponentProps: {}
|
|
@@ -15,9 +15,16 @@ var _Add = _interopRequireDefault(require("@material-ui/icons/Add"));
|
|
|
15
15
|
var _Remove = _interopRequireDefault(require("@material-ui/icons/Remove"));
|
|
16
16
|
var _AccessibleButton = _interopRequireDefault(require("../../../../Shared/Components/AccessibleButton/AccessibleButton"));
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
-
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
|
|
18
|
+
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); }
|
|
19
|
+
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 }; })(); }
|
|
20
|
+
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"); }
|
|
21
|
+
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; }; }
|
|
22
|
+
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(); }); }
|
|
23
|
+
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
24
|
+
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); }
|
|
19
25
|
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 }; })(); }
|
|
20
26
|
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); }
|
|
27
|
+
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
21
28
|
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); }
|
|
22
29
|
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); }); }; }
|
|
23
30
|
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; }
|
|
@@ -145,9 +152,9 @@ var OptionAmount = function OptionAmount(_ref) {
|
|
|
145
152
|
}));
|
|
146
153
|
}, 1000);
|
|
147
154
|
var updateAmount = /*#__PURE__*/function () {
|
|
148
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
149
|
-
return
|
|
150
|
-
while (1) switch (_context.
|
|
155
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
156
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
157
|
+
while (1) switch (_context.prev = _context.next) {
|
|
151
158
|
case 0:
|
|
152
159
|
if (!isNaN(parseInt(e.target.value))) {
|
|
153
160
|
setOptionAmount(parseInt(e.target.value));
|
|
@@ -155,8 +162,9 @@ var OptionAmount = function OptionAmount(_ref) {
|
|
|
155
162
|
setOptionAmount('');
|
|
156
163
|
}
|
|
157
164
|
onChangeDebounced();
|
|
158
|
-
case
|
|
159
|
-
|
|
165
|
+
case 2:
|
|
166
|
+
case "end":
|
|
167
|
+
return _context.stop();
|
|
160
168
|
}
|
|
161
169
|
}, _callee);
|
|
162
170
|
}));
|
|
@@ -24,6 +24,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
24
24
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
25
|
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); }
|
|
26
26
|
var styles = function styles(theme) {
|
|
27
|
+
var _closeButtonContainer, _closeButton;
|
|
27
28
|
return {
|
|
28
29
|
root: _defineProperty({
|
|
29
30
|
position: 'fixed',
|
|
@@ -38,22 +39,22 @@ var styles = function styles(theme) {
|
|
|
38
39
|
}, theme.breakpoints.down('xs'), {
|
|
39
40
|
backgroundColor: 'rgba(0, 0, 0, 0.5)'
|
|
40
41
|
}),
|
|
41
|
-
closeButtonContainer:
|
|
42
|
+
closeButtonContainer: (_closeButtonContainer = {
|
|
42
43
|
justifyContent: 'flex-end',
|
|
43
44
|
display: 'flex',
|
|
44
45
|
position: 'fixed',
|
|
45
46
|
right: '2rem',
|
|
46
47
|
top: '2rem'
|
|
47
|
-
}, theme.breakpoints.down('xs'), {
|
|
48
|
+
}, _defineProperty(_closeButtonContainer, theme.breakpoints.down('xs'), {
|
|
48
49
|
right: '1rem'
|
|
49
|
-
}), "zIndex", 1),
|
|
50
|
-
closeButton:
|
|
50
|
+
}), _defineProperty(_closeButtonContainer, "zIndex", 1), _closeButtonContainer),
|
|
51
|
+
closeButton: (_closeButton = {
|
|
51
52
|
width: '3rem',
|
|
52
53
|
height: '3rem'
|
|
53
|
-
}, theme.breakpoints.down('xs'), {
|
|
54
|
+
}, _defineProperty(_closeButton, theme.breakpoints.down('xs'), {
|
|
54
55
|
width: '2rem',
|
|
55
56
|
height: '2rem'
|
|
56
|
-
}), "display", 'flex'), "alignItems", 'center'), "justifyContent", 'center'), "borderRadius", '50%'), "border", 'none'), "cursor", 'pointer'), "color", theme.palette.primary.darkText)
|
|
57
|
+
}), _defineProperty(_closeButton, "display", 'flex'), _defineProperty(_closeButton, "alignItems", 'center'), _defineProperty(_closeButton, "justifyContent", 'center'), _defineProperty(_closeButton, "borderRadius", '50%'), _defineProperty(_closeButton, "border", 'none'), _defineProperty(_closeButton, "cursor", 'pointer'), _defineProperty(_closeButton, "color", theme.palette.primary.darkText), _closeButton)
|
|
57
58
|
};
|
|
58
59
|
};
|
|
59
60
|
var ZoomImage = function ZoomImage(_ref) {
|
|
@@ -27,19 +27,18 @@ var _Markdown = _interopRequireDefault(require("../../../../../Framework/Compone
|
|
|
27
27
|
var _ZoomImage = _interopRequireDefault(require("./ZoomImage"));
|
|
28
28
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
29
29
|
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); }
|
|
30
|
-
function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
31
30
|
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; }
|
|
32
31
|
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; }
|
|
33
32
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
34
33
|
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); } }
|
|
35
34
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
36
|
-
function
|
|
35
|
+
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); }
|
|
36
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
37
|
+
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
38
|
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
39
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
39
40
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
40
41
|
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
42
|
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; }
|
|
44
43
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
45
44
|
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); }
|
|
@@ -126,11 +125,13 @@ var styles = function styles(theme) {
|
|
|
126
125
|
};
|
|
127
126
|
};
|
|
128
127
|
var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
128
|
+
_inherits(Optiondetail, _React$Component);
|
|
129
|
+
var _super = _createSuper(Optiondetail);
|
|
129
130
|
function Optiondetail(props) {
|
|
130
131
|
var _this;
|
|
131
132
|
_classCallCheck(this, Optiondetail);
|
|
132
|
-
_this =
|
|
133
|
-
_defineProperty(_this, "prev", function () {
|
|
133
|
+
_this = _super.call(this, props);
|
|
134
|
+
_defineProperty(_assertThisInitialized(_this), "prev", function () {
|
|
134
135
|
var _this$props = _this.props,
|
|
135
136
|
details = _this$props.details,
|
|
136
137
|
options = _this$props.options,
|
|
@@ -149,7 +150,7 @@ var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
152
|
});
|
|
152
|
-
_defineProperty(_this, "next", function () {
|
|
153
|
+
_defineProperty(_assertThisInitialized(_this), "next", function () {
|
|
153
154
|
var _this$props2 = _this.props,
|
|
154
155
|
details = _this$props2.details,
|
|
155
156
|
options = _this$props2.options,
|
|
@@ -168,7 +169,7 @@ var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
|
168
169
|
});
|
|
169
170
|
}
|
|
170
171
|
});
|
|
171
|
-
_defineProperty(_this, "swiped", function (e, deltaX, deltaY) {
|
|
172
|
+
_defineProperty(_assertThisInitialized(_this), "swiped", function (e, deltaX, deltaY) {
|
|
172
173
|
// use only horizontal swiping
|
|
173
174
|
if (Math.abs(deltaX) >= Math.abs(deltaY)) {
|
|
174
175
|
if (deltaX > 0) {
|
|
@@ -178,23 +179,23 @@ var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
181
|
});
|
|
181
|
-
_defineProperty(_this, "handleImageLoaded", function () {
|
|
182
|
+
_defineProperty(_assertThisInitialized(_this), "handleImageLoaded", function () {
|
|
182
183
|
return _this.setState({
|
|
183
184
|
imageStatus: 'loaded'
|
|
184
185
|
});
|
|
185
186
|
});
|
|
186
|
-
_defineProperty(_this, "toggleZoomImage", function () {
|
|
187
|
+
_defineProperty(_assertThisInitialized(_this), "toggleZoomImage", function () {
|
|
187
188
|
return _this.setState({
|
|
188
189
|
zoomImage: !_this.state.zoomImage
|
|
189
190
|
});
|
|
190
191
|
});
|
|
191
|
-
_defineProperty(_this, "setDetailsImageRef", function (ref) {
|
|
192
|
+
_defineProperty(_assertThisInitialized(_this), "setDetailsImageRef", function (ref) {
|
|
192
193
|
_this.detailImageRef = ref;
|
|
193
194
|
});
|
|
194
|
-
_defineProperty(_this, "setDetailsContainerRef", function (ref) {
|
|
195
|
+
_defineProperty(_assertThisInitialized(_this), "setDetailsContainerRef", function (ref) {
|
|
195
196
|
_this.detailContainerRef = ref;
|
|
196
197
|
});
|
|
197
|
-
_defineProperty(_this, "getMaxZoomedWidth", function (width) {
|
|
198
|
+
_defineProperty(_assertThisInitialized(_this), "getMaxZoomedWidth", function (width) {
|
|
198
199
|
var isWideScreen = width === 'sm' || width === 'md' || width === 'lg' || width === 'xl';
|
|
199
200
|
var maxZoomedWidth = width === 'xl' ? 1080 : 720;
|
|
200
201
|
return isWideScreen ? maxZoomedWidth : '100%';
|
|
@@ -216,8 +217,7 @@ var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
|
216
217
|
_this.detailImageRef = /*#__PURE__*/_react["default"].createRef();
|
|
217
218
|
return _this;
|
|
218
219
|
}
|
|
219
|
-
|
|
220
|
-
return _createClass(Optiondetail, [{
|
|
220
|
+
_createClass(Optiondetail, [{
|
|
221
221
|
key: "componentDidUpdate",
|
|
222
222
|
value: function componentDidUpdate(prevProps) {
|
|
223
223
|
var _this$props3 = this.props,
|
|
@@ -254,6 +254,7 @@ var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
|
254
254
|
if (amount < 0) {
|
|
255
255
|
return; // prevent setting below 0
|
|
256
256
|
}
|
|
257
|
+
|
|
257
258
|
onSelect(_objectSpread(_objectSpread({}, option), {}, {
|
|
258
259
|
amount: amount
|
|
259
260
|
}), true, true);
|
|
@@ -406,6 +407,7 @@ var Optiondetail = /*#__PURE__*/function (_React$Component) {
|
|
|
406
407
|
}));
|
|
407
408
|
}
|
|
408
409
|
}]);
|
|
410
|
+
return Optiondetail;
|
|
409
411
|
}(_react["default"].Component);
|
|
410
412
|
_defineProperty(Optiondetail, "swipeDelta", 50);
|
|
411
413
|
Optiondetail.defaultProps = {
|
|
@@ -29,31 +29,32 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
29
29
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
30
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31
31
|
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
var _dialogStyle, _theme$breakpoints$be2, _ref;
|
|
33
|
+
return _ref = {
|
|
34
|
+
dialogStyle: (_dialogStyle = {
|
|
34
35
|
height: '100%'
|
|
35
|
-
}, theme.breakpoints.down('sm'), {
|
|
36
|
+
}, _defineProperty(_dialogStyle, theme.breakpoints.down('sm'), {
|
|
36
37
|
width: '100%',
|
|
37
38
|
maxWidth: '390px'
|
|
38
|
-
}), theme.breakpoints.between('sm', 'xl'), {
|
|
39
|
+
}), _defineProperty(_dialogStyle, theme.breakpoints.between('sm', 'xl'), {
|
|
39
40
|
width: '470px',
|
|
40
41
|
maxWidth: '470px'
|
|
41
|
-
}), theme.breakpoints.up('md'), {
|
|
42
|
+
}), _defineProperty(_dialogStyle, theme.breakpoints.up('md'), {
|
|
42
43
|
marginLeft: '120px',
|
|
43
44
|
'& .MuiBackdrop-root': {
|
|
44
45
|
left: '140px'
|
|
45
46
|
}
|
|
46
|
-
})
|
|
47
|
-
}, theme.breakpoints.between('sm', 'md'), _defineProperty({}, theme.orientation.portrait, {
|
|
47
|
+
}), _dialogStyle)
|
|
48
|
+
}, _defineProperty(_ref, theme.breakpoints.between('sm', 'md'), _defineProperty({}, theme.orientation.portrait, {
|
|
48
49
|
top: '-110px !important'
|
|
49
|
-
})), '& > div.MuiDialog-container', _defineProperty({}, theme.breakpoints.between('sm', 'lg'),
|
|
50
|
+
})), _defineProperty(_ref, '& > div.MuiDialog-container', _defineProperty({}, theme.breakpoints.between('sm', 'lg'), (_theme$breakpoints$be2 = {}, _defineProperty(_theme$breakpoints$be2, theme.orientation.portrait, {
|
|
50
51
|
alignItems: 'flex-end'
|
|
51
|
-
}), theme.orientation.landscape, {
|
|
52
|
+
}), _defineProperty(_theme$breakpoints$be2, theme.orientation.landscape, {
|
|
52
53
|
alignItems: 'flex-start',
|
|
53
54
|
marginTop: 35
|
|
54
|
-
}))), "contentStyle", {}), "backDrop", {
|
|
55
|
+
}), _theme$breakpoints$be2))), _defineProperty(_ref, "contentStyle", {}), _defineProperty(_ref, "backDrop", {
|
|
55
56
|
backgroundColor: 'rgba(0,0,0,0.0)'
|
|
56
|
-
});
|
|
57
|
+
}), _ref;
|
|
57
58
|
}, {
|
|
58
59
|
name: 'OptionsList'
|
|
59
60
|
});
|
|
@@ -16,20 +16,21 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
16
16
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
-
function
|
|
19
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
20
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
21
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
20
22
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
21
23
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
22
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
25
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
24
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
25
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
26
26
|
var Price = /*#__PURE__*/function (_React$Component) {
|
|
27
|
+
_inherits(Price, _React$Component);
|
|
28
|
+
var _super = _createSuper(Price);
|
|
27
29
|
function Price() {
|
|
28
30
|
_classCallCheck(this, Price);
|
|
29
|
-
return
|
|
31
|
+
return _super.apply(this, arguments);
|
|
30
32
|
}
|
|
31
|
-
|
|
32
|
-
return _createClass(Price, [{
|
|
33
|
+
_createClass(Price, [{
|
|
33
34
|
key: "render",
|
|
34
35
|
value: function render() {
|
|
35
36
|
var _ref = this.props.calculation || {},
|
|
@@ -45,5 +46,6 @@ var Price = /*#__PURE__*/function (_React$Component) {
|
|
|
45
46
|
}, invalidated ? (0, _i18n.T)('price.calculating') : totalFormatted && !invalidated ? totalFormatted : ''));
|
|
46
47
|
}
|
|
47
48
|
}]);
|
|
49
|
+
return Price;
|
|
48
50
|
}(_react["default"].Component);
|
|
49
51
|
var _default = exports["default"] = Price;
|
|
@@ -78,19 +78,20 @@ ProductPart.defaultProps = {
|
|
|
78
78
|
verticalMode: true
|
|
79
79
|
};
|
|
80
80
|
var StyledProductPart = exports.StyledProductPart = (0, _styles.withStyles)(function (theme) {
|
|
81
|
+
var _root, _selected;
|
|
81
82
|
var captionMaxHeight = "calc(".concat(theme.creator.productPart.captionPaddingTop, " + ").concat(theme.creator.productPart.lineHeight, " * 2)");
|
|
82
83
|
var iconMaxHeigth = "calc(".concat(theme.creator.productPart.itemSize, " - ").concat(captionMaxHeight, ")");
|
|
83
84
|
var iconSizeWithoutMarker = "calc(".concat(theme.creator.productPart.itemSize, ")");
|
|
84
85
|
return {
|
|
85
|
-
root:
|
|
86
|
+
root: (_root = {}, _defineProperty(_root, theme.breakpoints.up('sm'), {
|
|
86
87
|
width: theme.creator.productPart.selectedItemSize
|
|
87
|
-
}), "width", theme.creator.productPart.itemSize), "height", 'auto'), '&.horizontal', {
|
|
88
|
+
}), _defineProperty(_root, "width", theme.creator.productPart.itemSize), _defineProperty(_root, "height", 'auto'), _defineProperty(_root, '&.horizontal', {
|
|
88
89
|
padding: '0 10px'
|
|
89
|
-
}), '&.vertical', {
|
|
90
|
+
}), _defineProperty(_root, '&.vertical', {
|
|
90
91
|
marginLeft: 'auto',
|
|
91
92
|
display: 'flex',
|
|
92
93
|
flexDirection: 'row-reverse'
|
|
93
|
-
}), "tapHighlightColor", theme.tapHighlightColor),
|
|
94
|
+
}), _defineProperty(_root, "tapHighlightColor", theme.tapHighlightColor), _root),
|
|
94
95
|
content: {
|
|
95
96
|
alignItems: 'center',
|
|
96
97
|
display: 'flex',
|
|
@@ -142,11 +143,11 @@ var StyledProductPart = exports.StyledProductPart = (0, _styles.withStyles)(func
|
|
|
142
143
|
width: theme.creator.productPart.markerThickness,
|
|
143
144
|
margin: theme.spacing(0, 0, 1, 0)
|
|
144
145
|
},
|
|
145
|
-
'&.selected':
|
|
146
|
+
'&.selected': (_selected = {}, _defineProperty(_selected, theme.breakpoints.down('sm'), {
|
|
146
147
|
marginBottom: 4
|
|
147
|
-
}), theme.breakpoints.down('xs'), {
|
|
148
|
+
}), _defineProperty(_selected, theme.breakpoints.down('xs'), {
|
|
148
149
|
marginBottom: 0
|
|
149
|
-
}), "backgroundColor", theme.palette.primary.main)
|
|
150
|
+
}), _defineProperty(_selected, "backgroundColor", theme.palette.primary.main), _selected)
|
|
150
151
|
},
|
|
151
152
|
rootTypography: {
|
|
152
153
|
paddingTop: theme.creator.productPart.captionPaddingTop,
|
|
@@ -15,20 +15,21 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
15
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
-
function
|
|
18
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
19
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
20
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
19
21
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
20
22
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
21
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
24
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
23
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
24
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
25
25
|
var Tools = exports.Tools = /*#__PURE__*/function (_React$Component) {
|
|
26
|
+
_inherits(Tools, _React$Component);
|
|
27
|
+
var _super = _createSuper(Tools);
|
|
26
28
|
function Tools() {
|
|
27
29
|
_classCallCheck(this, Tools);
|
|
28
|
-
return
|
|
30
|
+
return _super.apply(this, arguments);
|
|
29
31
|
}
|
|
30
|
-
|
|
31
|
-
return _createClass(Tools, [{
|
|
32
|
+
_createClass(Tools, [{
|
|
32
33
|
key: "renderExtraTools",
|
|
33
34
|
value: function renderExtraTools() {
|
|
34
35
|
return null;
|
|
@@ -62,5 +63,6 @@ var Tools = exports.Tools = /*#__PURE__*/function (_React$Component) {
|
|
|
62
63
|
}, /*#__PURE__*/_react["default"].createElement("i", null), (0, _i18n.T)('tools.printButton')));
|
|
63
64
|
}
|
|
64
65
|
}]);
|
|
66
|
+
return Tools;
|
|
65
67
|
}(_react["default"].Component);
|
|
66
68
|
var _default = exports["default"] = (0, _i18n.translateComponent)(Tools);
|
|
@@ -15,6 +15,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); }
|
|
17
17
|
var styles = function styles(theme) {
|
|
18
|
+
var _$main, _container, _horizontal, _withBottomList, _outerContainer, _withBottomList2, _visualization;
|
|
18
19
|
return {
|
|
19
20
|
root: {
|
|
20
21
|
display: 'flex',
|
|
@@ -27,11 +28,11 @@ var styles = function styles(theme) {
|
|
|
27
28
|
overflowX: 'hidden',
|
|
28
29
|
overflowY: 'hidden',
|
|
29
30
|
'&$fallbackMode': {
|
|
30
|
-
'& $main':
|
|
31
|
+
'& $main': (_$main = {}, _defineProperty(_$main, theme.breakpoints.up('md'), {
|
|
31
32
|
width: '100%'
|
|
32
|
-
}), '@media (orientation: landscape)', {
|
|
33
|
+
}), _defineProperty(_$main, '@media (orientation: landscape)', {
|
|
33
34
|
flexDirection: 'row'
|
|
34
|
-
})
|
|
35
|
+
}), _$main)
|
|
35
36
|
},
|
|
36
37
|
// helper classes can be used on contained elements
|
|
37
38
|
'& .noShrink': {
|
|
@@ -48,27 +49,27 @@ var styles = function styles(theme) {
|
|
|
48
49
|
header: {
|
|
49
50
|
zIndex: 1
|
|
50
51
|
},
|
|
51
|
-
container:
|
|
52
|
+
container: (_container = {
|
|
52
53
|
flex: 1,
|
|
53
54
|
display: 'flex',
|
|
54
55
|
flexDirection: 'row',
|
|
55
56
|
position: 'relative'
|
|
56
|
-
}, theme.breakpoints.down('xs'), {
|
|
57
|
+
}, _defineProperty(_container, theme.breakpoints.down('xs'), {
|
|
57
58
|
flexDirection: 'column'
|
|
58
|
-
}), '&.fullSize', {
|
|
59
|
+
}), _defineProperty(_container, '&.fullSize', {
|
|
59
60
|
width: '100%',
|
|
60
61
|
height: '100%',
|
|
61
62
|
paddingLeft: 0
|
|
62
|
-
}), '&.reducedSize', {
|
|
63
|
+
}), _defineProperty(_container, '&.reducedSize', {
|
|
63
64
|
width: 'calc(100% - 140px)',
|
|
64
65
|
marginLeft: 140
|
|
65
|
-
}), '&.fullScreen', {
|
|
66
|
+
}), _defineProperty(_container, '&.fullScreen', {
|
|
66
67
|
width: '100%',
|
|
67
68
|
height: '100%',
|
|
68
69
|
marginLeft: 0
|
|
69
|
-
}), theme.breakpoints.between('xs', theme.creator.viewSelectBreakpoint), {
|
|
70
|
+
}), _defineProperty(_container, theme.breakpoints.between('xs', theme.creator.viewSelectBreakpoint), {
|
|
70
71
|
height: 'calc(100% - 136px)'
|
|
71
|
-
}),
|
|
72
|
+
}), _container),
|
|
72
73
|
containerTabletPortrait: {
|
|
73
74
|
flexDirection: 'column'
|
|
74
75
|
},
|
|
@@ -80,19 +81,20 @@ var styles = function styles(theme) {
|
|
|
80
81
|
// the pointer events should be passed through to the visualization component
|
|
81
82
|
pointerEvents: 'none' // important: don't remove this
|
|
82
83
|
},
|
|
84
|
+
|
|
83
85
|
productsList: {
|
|
84
86
|
position: 'absolute',
|
|
85
|
-
'&.horizontal':
|
|
87
|
+
'&.horizontal': (_horizontal = {
|
|
86
88
|
bottom: 2
|
|
87
|
-
}, theme.breakpoints.down('xs'), {
|
|
89
|
+
}, _defineProperty(_horizontal, theme.breakpoints.down('xs'), {
|
|
88
90
|
width: '100%',
|
|
89
91
|
left: 0,
|
|
90
92
|
bottom: 88
|
|
91
|
-
}), theme.breakpoints.up('sm'), {
|
|
93
|
+
}), _defineProperty(_horizontal, theme.breakpoints.up('sm'), {
|
|
92
94
|
width: 'calc(100% - 370px)',
|
|
93
95
|
minWidth: 215,
|
|
94
96
|
marginBottom: 0
|
|
95
|
-
}),
|
|
97
|
+
}), _horizontal),
|
|
96
98
|
'&.vertical': {
|
|
97
99
|
"float": 'left',
|
|
98
100
|
height: 'calc(100% - 68px)',
|
|
@@ -105,41 +107,41 @@ var styles = function styles(theme) {
|
|
|
105
107
|
shoppingCart: {
|
|
106
108
|
display: 'block'
|
|
107
109
|
},
|
|
108
|
-
outerContainer:
|
|
110
|
+
outerContainer: (_outerContainer = {
|
|
109
111
|
height: '100%',
|
|
110
112
|
position: 'relative',
|
|
111
113
|
flex: 1,
|
|
112
114
|
display: 'flex',
|
|
113
115
|
marginRight: 20
|
|
114
|
-
}, theme.breakpoints.up('md'), {
|
|
116
|
+
}, _defineProperty(_outerContainer, theme.breakpoints.up('md'), {
|
|
115
117
|
marginBottom: 24
|
|
116
|
-
}), theme.breakpoints.down('md'), {
|
|
118
|
+
}), _defineProperty(_outerContainer, theme.breakpoints.down('md'), {
|
|
117
119
|
marginBottom: 16
|
|
118
|
-
}), theme.breakpoints.down('xs'), {
|
|
120
|
+
}), _defineProperty(_outerContainer, theme.breakpoints.down('xs'), {
|
|
119
121
|
margin: 16
|
|
120
|
-
}), '&.withBottomList',
|
|
122
|
+
}), _defineProperty(_outerContainer, '&.withBottomList', (_withBottomList = {}, _defineProperty(_withBottomList, theme.breakpoints.down('xs'), {
|
|
121
123
|
height: 'calc(100% - 36px)'
|
|
122
|
-
}), '& .dots-container', _defineProperty({
|
|
124
|
+
}), _defineProperty(_withBottomList, '& .dots-container', _defineProperty({
|
|
123
125
|
bottom: 0
|
|
124
126
|
}, theme.breakpoints.down('xs'), {
|
|
125
127
|
bottom: -16
|
|
126
|
-
}))),
|
|
127
|
-
visualization:
|
|
128
|
+
})), _withBottomList)), _outerContainer),
|
|
129
|
+
visualization: (_visualization = {
|
|
128
130
|
// the visualization is in the background with absolute positioning
|
|
129
131
|
position: 'absolute',
|
|
130
132
|
width: '100%',
|
|
131
133
|
height: '100%'
|
|
132
|
-
}, theme.breakpoints.down('xs'), {
|
|
134
|
+
}, _defineProperty(_visualization, theme.breakpoints.down('xs'), {
|
|
133
135
|
height: '75%'
|
|
134
|
-
}), theme.breakpoints.down(theme.creator.viewSelectBreakpoint), {
|
|
136
|
+
}), _defineProperty(_visualization, theme.breakpoints.down(theme.creator.viewSelectBreakpoint), {
|
|
135
137
|
height: 'calc(100% - 18px)'
|
|
136
|
-
}), '&.withBottomList',
|
|
138
|
+
}), _defineProperty(_visualization, '&.withBottomList', (_withBottomList2 = {}, _defineProperty(_withBottomList2, theme.breakpoints.between('xs', 'sm'), {
|
|
137
139
|
height: 'calc(100% - 198px)'
|
|
138
|
-
}), theme.breakpoints.up('sm'), {
|
|
140
|
+
}), _defineProperty(_withBottomList2, theme.breakpoints.up('sm'), {
|
|
139
141
|
height: 'calc(100% - 152px)'
|
|
140
|
-
})), '&.fullScreen', {
|
|
142
|
+
}), _withBottomList2)), _defineProperty(_visualization, '&.fullScreen', {
|
|
141
143
|
height: '100%'
|
|
142
|
-
})
|
|
144
|
+
}), _visualization)
|
|
143
145
|
};
|
|
144
146
|
};
|
|
145
147
|
var DefaultLayout = function DefaultLayout(_ref) {
|