@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.
- 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
|
@@ -15,8 +15,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
15
15
|
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; }
|
|
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 _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 }; })(); }
|
|
19
|
+
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"); }
|
|
20
|
+
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; }; }
|
|
21
|
+
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(); }); }
|
|
22
|
+
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
23
|
+
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); }
|
|
18
24
|
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 }; })(); }
|
|
19
25
|
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); }
|
|
26
|
+
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
20
27
|
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); }
|
|
21
28
|
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); }); }; }
|
|
22
29
|
var RECEIVE_GALLERY = exports.RECEIVE_GALLERY = 'imageGallery/RECEIVE_GALLERY';
|
|
@@ -114,10 +121,10 @@ var updateUploadDelayed = exports.updateUploadDelayed = function updateUploadDel
|
|
|
114
121
|
};
|
|
115
122
|
var uploadImage = exports.uploadImage = function uploadImage(file) {
|
|
116
123
|
return (0, _Actions2.createAsyncTask)(WN_UPLOAD_IMAGE, /*#__PURE__*/function () {
|
|
117
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
124
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dispatch, getState) {
|
|
118
125
|
var designProductionMethod, vectorizedLogoMandatory, data, uploadResponse;
|
|
119
|
-
return
|
|
120
|
-
while (1) switch (_context.
|
|
126
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
127
|
+
while (1) switch (_context.prev = _context.next) {
|
|
121
128
|
case 0:
|
|
122
129
|
designProductionMethod = (0, _Selectors2.getSelectedDesignProductionMethod)(getState());
|
|
123
130
|
vectorizedLogoMandatory = (0, _Selectors2.isVectorizedLogoMandatory)(designProductionMethod);
|
|
@@ -125,7 +132,7 @@ var uploadImage = exports.uploadImage = function uploadImage(file) {
|
|
|
125
132
|
data.append('userImage', file);
|
|
126
133
|
data.append('userImageEditData', JSON.stringify({}));
|
|
127
134
|
dispatch(dismissError());
|
|
128
|
-
_context.
|
|
135
|
+
_context.next = 8;
|
|
129
136
|
return dispatch((0, _Actions.postDataAsync)(URL_UPLOAD, data, (0, _Actions.createDefaultReceiver)(RECEIVE_IMAGE_UPLOAD_DATA, {
|
|
130
137
|
vectorizedLogoMandatory: vectorizedLogoMandatory
|
|
131
138
|
}), {
|
|
@@ -133,12 +140,15 @@ var uploadImage = exports.uploadImage = function uploadImage(file) {
|
|
|
133
140
|
}, {}, {
|
|
134
141
|
useLocalErrorHandling: true
|
|
135
142
|
}));
|
|
136
|
-
case
|
|
137
|
-
uploadResponse = _context.
|
|
138
|
-
_context.
|
|
143
|
+
case 8:
|
|
144
|
+
uploadResponse = _context.sent;
|
|
145
|
+
_context.next = 11;
|
|
139
146
|
return (0, _DesignDataService.calculateImageBrightness)(uploadResponse);
|
|
140
|
-
case
|
|
141
|
-
return _context.
|
|
147
|
+
case 11:
|
|
148
|
+
return _context.abrupt("return", _context.sent);
|
|
149
|
+
case 12:
|
|
150
|
+
case "end":
|
|
151
|
+
return _context.stop();
|
|
142
152
|
}
|
|
143
153
|
}, _callee);
|
|
144
154
|
}));
|
|
@@ -180,10 +190,10 @@ var dismissError = exports.dismissError = function dismissError() {
|
|
|
180
190
|
var editImage = exports.editImage = function editImage(editData, imageData) {
|
|
181
191
|
var actionOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
182
192
|
return (0, _Actions2.createAsyncTask)(WN_UPLOAD_IMAGE, /*#__PURE__*/function () {
|
|
183
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
193
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(dispatch, getState) {
|
|
184
194
|
var designProductionMethod, vectorizedLogoMandatory, data, createCopy, uploadResponse;
|
|
185
|
-
return
|
|
186
|
-
while (1) switch (_context2.
|
|
195
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
196
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
187
197
|
case 0:
|
|
188
198
|
designProductionMethod = (0, _Selectors2.getSelectedDesignProductionMethod)(getState());
|
|
189
199
|
vectorizedLogoMandatory = (0, _Selectors2.isVectorizedLogoMandatory)(designProductionMethod);
|
|
@@ -191,18 +201,21 @@ var editImage = exports.editImage = function editImage(editData, imageData) {
|
|
|
191
201
|
createCopy = editData.createCopy;
|
|
192
202
|
data.append('userImageEditData', JSON.stringify(editData));
|
|
193
203
|
dispatch(dismissError());
|
|
194
|
-
_context2.
|
|
204
|
+
_context2.next = 8;
|
|
195
205
|
return dispatch((0, _Actions.postDataAsync)(URL_UPLOAD, data, (0, _Actions.createDefaultReceiver)(RECEIVE_IMAGE_UPLOAD_DATA, _objectSpread({
|
|
196
206
|
imageData: imageData,
|
|
197
207
|
createCopy: createCopy,
|
|
198
208
|
vectorizedLogoMandatory: vectorizedLogoMandatory
|
|
199
209
|
}, actionOptions))));
|
|
200
|
-
case
|
|
201
|
-
uploadResponse = _context2.
|
|
202
|
-
_context2.
|
|
210
|
+
case 8:
|
|
211
|
+
uploadResponse = _context2.sent;
|
|
212
|
+
_context2.next = 11;
|
|
203
213
|
return (0, _DesignDataService.calculateImageBrightness)(uploadResponse);
|
|
204
|
-
case
|
|
205
|
-
return _context2.
|
|
214
|
+
case 11:
|
|
215
|
+
return _context2.abrupt("return", _context2.sent);
|
|
216
|
+
case 12:
|
|
217
|
+
case "end":
|
|
218
|
+
return _context2.stop();
|
|
206
219
|
}
|
|
207
220
|
}, _callee2);
|
|
208
221
|
}));
|
|
@@ -103,6 +103,7 @@ var isImageReadyToBeAdded = exports.isImageReadyToBeAdded = function isImageRead
|
|
|
103
103
|
return Boolean(imageData && isAddMode(state) && isImageCompatible(state, imageData) && getImageUsageInfo(state, imageData.identifier).count > 0 // make sure it's already added (add it one more time)
|
|
104
104
|
);
|
|
105
105
|
};
|
|
106
|
+
|
|
106
107
|
var isColorMappingCompatible = exports.isColorMappingCompatible = function isColorMappingCompatible(colorPalettes, vectorizeColorsMap) {
|
|
107
108
|
if (!colorPalettes) {
|
|
108
109
|
return false;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.withGlobalLoader = exports.toggleVisible = exports.setWorkInProgress = exports.setVisible = exports.reportError = exports.reportConfigurationNotFoundError = exports.dismissError = exports.dismissAlert = exports.createAsyncTask = exports.alertMessage = exports.VISIBILITY_NAMES = exports.SHOW_ALERT = exports.SET_WORK_IN_PROGRESS = exports.SET_VISIBLE_WITH_COUNTER = exports.SET_VISIBLE = exports.DISMISS_ERROR = exports.DISMISS_ALERT = exports.CUSTOM_ERROR = exports.COUNTER_TYPE_NAMES = exports.CONFIGURATION_NOT_FOUND_ERROR = void 0;
|
|
8
|
+
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 }; })(); }
|
|
9
|
+
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"); }
|
|
10
|
+
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; }; }
|
|
11
|
+
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(); }); }
|
|
12
|
+
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
13
|
+
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); }
|
|
7
14
|
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 }; })(); }
|
|
8
15
|
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); }
|
|
16
|
+
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
9
17
|
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); }
|
|
10
18
|
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); }); }; }
|
|
11
19
|
var SET_VISIBLE = exports.SET_VISIBLE = 'ui/SET_VISIBLE';
|
|
@@ -91,25 +99,28 @@ var dismissAlert = exports.dismissAlert = function dismissAlert() {
|
|
|
91
99
|
*/
|
|
92
100
|
var createAsyncTask = exports.createAsyncTask = function createAsyncTask(name, action) {
|
|
93
101
|
return /*#__PURE__*/function () {
|
|
94
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
102
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dispatch) {
|
|
95
103
|
var result;
|
|
96
|
-
return
|
|
97
|
-
while (1) switch (_context.
|
|
104
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
105
|
+
while (1) switch (_context.prev = _context.next) {
|
|
98
106
|
case 0:
|
|
99
107
|
dispatch(setWorkInProgress(name, true));
|
|
100
|
-
_context.
|
|
101
|
-
_context.
|
|
108
|
+
_context.prev = 1;
|
|
109
|
+
_context.next = 4;
|
|
102
110
|
return dispatch(action);
|
|
103
|
-
case 2:
|
|
104
|
-
result = _context.v;
|
|
105
|
-
case 3:
|
|
106
|
-
_context.p = 3;
|
|
107
|
-
dispatch(setWorkInProgress(name, false));
|
|
108
|
-
return _context.f(3);
|
|
109
111
|
case 4:
|
|
110
|
-
|
|
112
|
+
result = _context.sent;
|
|
113
|
+
case 5:
|
|
114
|
+
_context.prev = 5;
|
|
115
|
+
dispatch(setWorkInProgress(name, false));
|
|
116
|
+
return _context.finish(5);
|
|
117
|
+
case 8:
|
|
118
|
+
return _context.abrupt("return", result);
|
|
119
|
+
case 9:
|
|
120
|
+
case "end":
|
|
121
|
+
return _context.stop();
|
|
111
122
|
}
|
|
112
|
-
}, _callee, null, [[1,,
|
|
123
|
+
}, _callee, null, [[1,, 5, 8]]);
|
|
113
124
|
}));
|
|
114
125
|
return function (_x) {
|
|
115
126
|
return _ref.apply(this, arguments);
|
|
@@ -118,25 +129,28 @@ var createAsyncTask = exports.createAsyncTask = function createAsyncTask(name, a
|
|
|
118
129
|
};
|
|
119
130
|
var withGlobalLoader = exports.withGlobalLoader = function withGlobalLoader(action) {
|
|
120
131
|
return /*#__PURE__*/function () {
|
|
121
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
132
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(dispatch) {
|
|
122
133
|
var result;
|
|
123
|
-
return
|
|
124
|
-
while (1) switch (_context2.
|
|
134
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
135
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
125
136
|
case 0:
|
|
126
137
|
dispatch(setVisible('globalLoader', true));
|
|
127
|
-
_context2.
|
|
128
|
-
_context2.
|
|
138
|
+
_context2.prev = 1;
|
|
139
|
+
_context2.next = 4;
|
|
129
140
|
return dispatch(action);
|
|
130
|
-
case 2:
|
|
131
|
-
result = _context2.v;
|
|
132
|
-
case 3:
|
|
133
|
-
_context2.p = 3;
|
|
134
|
-
dispatch(setVisible('globalLoader', false));
|
|
135
|
-
return _context2.f(3);
|
|
136
141
|
case 4:
|
|
137
|
-
|
|
142
|
+
result = _context2.sent;
|
|
143
|
+
case 5:
|
|
144
|
+
_context2.prev = 5;
|
|
145
|
+
dispatch(setVisible('globalLoader', false));
|
|
146
|
+
return _context2.finish(5);
|
|
147
|
+
case 8:
|
|
148
|
+
return _context2.abrupt("return", result);
|
|
149
|
+
case 9:
|
|
150
|
+
case "end":
|
|
151
|
+
return _context2.stop();
|
|
138
152
|
}
|
|
139
|
-
}, _callee2, null, [[1,,
|
|
153
|
+
}, _callee2, null, [[1,, 5, 8]]);
|
|
140
154
|
}));
|
|
141
155
|
return function (_x2) {
|
|
142
156
|
return _ref2.apply(this, arguments);
|
package/App/Routing.js
CHANGED
|
@@ -20,13 +20,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var 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
21
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
22
|
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); }
|
|
23
|
-
function
|
|
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
|
+
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
26
|
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
27
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
26
28
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
29
|
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
30
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
31
31
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
32
32
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
@@ -45,15 +45,16 @@ var NoMatch = function NoMatch() {
|
|
|
45
45
|
return /*#__PURE__*/_react["default"].createElement("div", null, "No routing found for the specified path.");
|
|
46
46
|
};
|
|
47
47
|
var Routing = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
48
|
+
_inherits(Routing, _Component);
|
|
49
|
+
var _super = _createSuper(Routing);
|
|
48
50
|
function Routing(props) {
|
|
49
51
|
var _this;
|
|
50
52
|
_classCallCheck(this, Routing);
|
|
51
|
-
_this =
|
|
53
|
+
_this = _super.call(this, props);
|
|
52
54
|
_this.basePath = (0, _configuration.getConf)('routingBasePath', '');
|
|
53
55
|
return _this;
|
|
54
56
|
}
|
|
55
|
-
|
|
56
|
-
return _createClass(Routing, [{
|
|
57
|
+
_createClass(Routing, [{
|
|
57
58
|
key: "render",
|
|
58
59
|
value: function render() {
|
|
59
60
|
return /*#__PURE__*/_react["default"].createElement(_reactRouterDom.BrowserRouter, {
|
|
@@ -89,4 +90,5 @@ var Routing = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
89
90
|
})))));
|
|
90
91
|
}
|
|
91
92
|
}]);
|
|
93
|
+
return Routing;
|
|
92
94
|
}(_react.Component);
|
|
@@ -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
|
|
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); }
|
|
@@ -33,17 +33,19 @@ var styles = function styles() {
|
|
|
33
33
|
return {};
|
|
34
34
|
};
|
|
35
35
|
var AmountSelection = /*#__PURE__*/function (_React$Component) {
|
|
36
|
+
_inherits(AmountSelection, _React$Component);
|
|
37
|
+
var _super = _createSuper(AmountSelection);
|
|
36
38
|
function AmountSelection() {
|
|
37
39
|
var _this;
|
|
38
40
|
_classCallCheck(this, AmountSelection);
|
|
39
41
|
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
40
42
|
_args[_key] = arguments[_key];
|
|
41
43
|
}
|
|
42
|
-
_this =
|
|
43
|
-
_defineProperty(_this, "state", {
|
|
44
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
45
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
44
46
|
focused: false
|
|
45
47
|
});
|
|
46
|
-
_defineProperty(_this, "onBlur", function () {
|
|
48
|
+
_defineProperty(_assertThisInitialized(_this), "onBlur", function () {
|
|
47
49
|
var _this$props = _this.props,
|
|
48
50
|
disabled = _this$props.disabled,
|
|
49
51
|
onBlur = _this$props.onBlur;
|
|
@@ -54,7 +56,7 @@ var AmountSelection = /*#__PURE__*/function (_React$Component) {
|
|
|
54
56
|
onBlur && onBlur.apply(void 0, arguments);
|
|
55
57
|
}
|
|
56
58
|
});
|
|
57
|
-
_defineProperty(_this, "onFocus", function () {
|
|
59
|
+
_defineProperty(_assertThisInitialized(_this), "onFocus", function () {
|
|
58
60
|
var _this$props2 = _this.props,
|
|
59
61
|
disabled = _this$props2.disabled,
|
|
60
62
|
onFocus = _this$props2.onFocus;
|
|
@@ -67,8 +69,7 @@ var AmountSelection = /*#__PURE__*/function (_React$Component) {
|
|
|
67
69
|
});
|
|
68
70
|
return _this;
|
|
69
71
|
}
|
|
70
|
-
|
|
71
|
-
return _createClass(AmountSelection, [{
|
|
72
|
+
_createClass(AmountSelection, [{
|
|
72
73
|
key: "componentDidUpdate",
|
|
73
74
|
value: function componentDidUpdate(prevProps) {
|
|
74
75
|
var _this$props3 = this.props,
|
|
@@ -110,6 +111,7 @@ var AmountSelection = /*#__PURE__*/function (_React$Component) {
|
|
|
110
111
|
}))), /*#__PURE__*/_react["default"].createElement(_Divider["default"], null));
|
|
111
112
|
}
|
|
112
113
|
}]);
|
|
114
|
+
return AmountSelection;
|
|
113
115
|
}(_react["default"].Component);
|
|
114
116
|
var _default = exports["default"] = (0, _styles.withStyles)(styles, {
|
|
115
117
|
name: 'AmountSelection'
|
|
@@ -38,13 +38,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
38
38
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
39
39
|
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); } }
|
|
40
40
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
41
|
-
function
|
|
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
|
+
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); }; }
|
|
42
44
|
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); }
|
|
43
45
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
44
46
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
45
47
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
46
|
-
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); }
|
|
47
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
48
48
|
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; }
|
|
49
49
|
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; }
|
|
50
50
|
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; }
|
|
@@ -217,18 +217,20 @@ var styles = exports.styles = function styles(theme) {
|
|
|
217
217
|
};
|
|
218
218
|
};
|
|
219
219
|
var CalculationWidget = /*#__PURE__*/function (_React$Component) {
|
|
220
|
+
_inherits(CalculationWidget, _React$Component);
|
|
221
|
+
var _super = _createSuper(CalculationWidget);
|
|
220
222
|
function CalculationWidget() {
|
|
221
223
|
var _this;
|
|
222
224
|
_classCallCheck(this, CalculationWidget);
|
|
223
225
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
224
226
|
args[_key] = arguments[_key];
|
|
225
227
|
}
|
|
226
|
-
_this =
|
|
227
|
-
_defineProperty(_this, "state", {
|
|
228
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
229
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
228
230
|
expanded: null,
|
|
229
231
|
addImages: false
|
|
230
232
|
});
|
|
231
|
-
_defineProperty(_this, "handleDesignAreaToggle", function (designAreaIdentifier) {
|
|
233
|
+
_defineProperty(_assertThisInitialized(_this), "handleDesignAreaToggle", function (designAreaIdentifier) {
|
|
232
234
|
return function (_ref) {
|
|
233
235
|
var checked = _ref.target.checked;
|
|
234
236
|
var _this$props = _this.props,
|
|
@@ -245,7 +247,7 @@ var CalculationWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
245
247
|
}
|
|
246
248
|
};
|
|
247
249
|
});
|
|
248
|
-
_defineProperty(_this, "handleAddingPlaceHolderImage", function () {
|
|
250
|
+
_defineProperty(_assertThisInitialized(_this), "handleAddingPlaceHolderImage", function () {
|
|
249
251
|
return function (_ref2) {
|
|
250
252
|
var checked = _ref2.target.checked;
|
|
251
253
|
var addPlaceholderImage = _this.props.addPlaceholderImage;
|
|
@@ -255,21 +257,21 @@ var CalculationWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
255
257
|
});
|
|
256
258
|
};
|
|
257
259
|
});
|
|
258
|
-
_defineProperty(_this, "onChangeDesignProductionMethod", function () {
|
|
260
|
+
_defineProperty(_assertThisInitialized(_this), "onChangeDesignProductionMethod", function () {
|
|
259
261
|
return function (_ref3) {
|
|
260
262
|
var value = _ref3.target.value;
|
|
261
263
|
var handleChangeDesignProductionMethod = _this.props.handleChangeDesignProductionMethod;
|
|
262
264
|
handleChangeDesignProductionMethod && handleChangeDesignProductionMethod(value);
|
|
263
265
|
};
|
|
264
266
|
});
|
|
265
|
-
_defineProperty(_this, "onChangeSelectedColorAmount", function (designAreaIdentifier) {
|
|
267
|
+
_defineProperty(_assertThisInitialized(_this), "onChangeSelectedColorAmount", function (designAreaIdentifier) {
|
|
266
268
|
return function (_ref4) {
|
|
267
269
|
var value = _ref4.target.value;
|
|
268
270
|
var handleChangeSelectedColorAmount = _this.props.handleChangeSelectedColorAmount;
|
|
269
271
|
handleChangeSelectedColorAmount && handleChangeSelectedColorAmount(designAreaIdentifier, value);
|
|
270
272
|
};
|
|
271
273
|
});
|
|
272
|
-
_defineProperty(_this, "handlePanelChange", function (panel) {
|
|
274
|
+
_defineProperty(_assertThisInitialized(_this), "handlePanelChange", function (panel) {
|
|
273
275
|
return function (event, expanded) {
|
|
274
276
|
_this.setState({
|
|
275
277
|
expanded: expanded ? panel : false
|
|
@@ -278,10 +280,10 @@ var CalculationWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
278
280
|
handleChangeDesignArea && handleChangeDesignArea(panel);
|
|
279
281
|
};
|
|
280
282
|
});
|
|
281
|
-
_defineProperty(_this, "preventPanelSwitch", function (evt) {
|
|
283
|
+
_defineProperty(_assertThisInitialized(_this), "preventPanelSwitch", function (evt) {
|
|
282
284
|
return evt.stopPropagation();
|
|
283
285
|
});
|
|
284
|
-
_defineProperty(_this, "renderDesignProductionMethodSelect", function () {
|
|
286
|
+
_defineProperty(_assertThisInitialized(_this), "renderDesignProductionMethodSelect", function () {
|
|
285
287
|
var _this$props2 = _this.props,
|
|
286
288
|
currentDesignProductionMethod = _this$props2.currentDesignProductionMethod,
|
|
287
289
|
designProductionMethods = _this$props2.designProductionMethods,
|
|
@@ -314,7 +316,7 @@ var CalculationWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
314
316
|
infoText: (0, _i18n.t)('designProductionInformation')
|
|
315
317
|
}));
|
|
316
318
|
});
|
|
317
|
-
_defineProperty(_this, "renderDesignProductionMethodValue", function () {
|
|
319
|
+
_defineProperty(_assertThisInitialized(_this), "renderDesignProductionMethodValue", function () {
|
|
318
320
|
var _this$props3 = _this.props,
|
|
319
321
|
designProductionMethods = _this$props3.designProductionMethods,
|
|
320
322
|
classes = _this$props3.classes;
|
|
@@ -341,7 +343,7 @@ var CalculationWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
341
343
|
});
|
|
342
344
|
}));
|
|
343
345
|
});
|
|
344
|
-
_defineProperty(_this, "renderColorAmountValue", function () {
|
|
346
|
+
_defineProperty(_assertThisInitialized(_this), "renderColorAmountValue", function () {
|
|
345
347
|
var _this$props4 = _this.props,
|
|
346
348
|
classes = _this$props4.classes,
|
|
347
349
|
colorAmountList = _this$props4.colorAmountList;
|
|
@@ -368,7 +370,7 @@ var CalculationWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
368
370
|
});
|
|
369
371
|
}));
|
|
370
372
|
});
|
|
371
|
-
_defineProperty(_this, "renderColorAmountSelect", function (designArea) {
|
|
373
|
+
_defineProperty(_assertThisInitialized(_this), "renderColorAmountSelect", function (designArea) {
|
|
372
374
|
var _this$props5 = _this.props,
|
|
373
375
|
classes = _this$props5.classes,
|
|
374
376
|
colorAmounts = _this$props5.colorAmounts,
|
|
@@ -400,8 +402,7 @@ var CalculationWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
400
402
|
});
|
|
401
403
|
return _this;
|
|
402
404
|
}
|
|
403
|
-
|
|
404
|
-
return _createClass(CalculationWidget, [{
|
|
405
|
+
_createClass(CalculationWidget, [{
|
|
405
406
|
key: "render",
|
|
406
407
|
value: function render() {
|
|
407
408
|
var _this2 = this;
|
|
@@ -537,6 +538,7 @@ var CalculationWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
537
538
|
}, (0, _i18n.t)('calculationWidget.openConfiguratorButtonText'))))))));
|
|
538
539
|
}
|
|
539
540
|
}]);
|
|
541
|
+
return CalculationWidget;
|
|
540
542
|
}(_react["default"].Component);
|
|
541
543
|
_defineProperty(CalculationWidget, "defaultProps", {
|
|
542
544
|
currentDesignProductionMethod: {},
|
|
@@ -51,7 +51,7 @@ var colorAmounts = [{
|
|
|
51
51
|
identifier: '3 farbig'
|
|
52
52
|
}];
|
|
53
53
|
it('renders correctly', function () {
|
|
54
|
-
var tree = (0, _enzyme.render)(/*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
54
|
+
var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
55
55
|
designAreas: designAreas,
|
|
56
56
|
amountValue: 100,
|
|
57
57
|
designProductionMethods: productionMethod,
|
|
@@ -66,7 +66,7 @@ it('renders correctly', function () {
|
|
|
66
66
|
/*Test doesn't run and should be fixed in a separate task*/
|
|
67
67
|
it.skip('tests if the amount is updated', function () {
|
|
68
68
|
var onChangeHandler = jest.fn();
|
|
69
|
-
var tree = (0, _enzyme.mount)(/*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
69
|
+
var tree = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
70
70
|
designAreas: designAreas,
|
|
71
71
|
amountValue: 103,
|
|
72
72
|
designProductionMethods: productionMethod,
|
|
@@ -80,14 +80,14 @@ it.skip('tests if the amount is updated', function () {
|
|
|
80
80
|
expect(onChangeHandler.mock.calls[0][0].target.value).toEqual('103');
|
|
81
81
|
});
|
|
82
82
|
it('returns a callback for design production methods change', function () {
|
|
83
|
-
var
|
|
83
|
+
var _class;
|
|
84
84
|
var onChangeHandler = jest.fn();
|
|
85
|
-
var analyticsSrvc = new (
|
|
86
|
-
_classCallCheck(this,
|
|
85
|
+
var analyticsSrvc = new (_class = /*#__PURE__*/_createClass(function _class() {
|
|
86
|
+
_classCallCheck(this, _class);
|
|
87
87
|
_defineProperty(this, "triggerEvent", jest.fn());
|
|
88
|
-
}), _defineProperty(
|
|
88
|
+
}), _defineProperty(_class, "serviceName", 'AnalyticsService'), _class)();
|
|
89
89
|
_ServiceLocator["default"].provide(analyticsSrvc);
|
|
90
|
-
var tree = (0, _enzyme.mount)(/*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
90
|
+
var tree = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
91
91
|
designAreas: designAreas,
|
|
92
92
|
amountValue: 100,
|
|
93
93
|
designProductionMethods: productionMethod,
|
|
@@ -115,7 +115,7 @@ it('returns a callback for design production methods change', function () {
|
|
|
115
115
|
});
|
|
116
116
|
it('returns a callback for handleChangeSelectedColorAmount', function () {
|
|
117
117
|
var onChangeHandler = jest.fn();
|
|
118
|
-
var tree = (0, _enzyme.mount)(/*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
118
|
+
var tree = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
119
119
|
designAreas: designAreas,
|
|
120
120
|
amountValue: 100,
|
|
121
121
|
designProductionMethods: productionMethod,
|
|
@@ -21,20 +21,21 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
21
21
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
22
22
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
23
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
-
function
|
|
24
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
25
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
26
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
25
27
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
26
28
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
27
29
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
30
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
29
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
30
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
31
31
|
var Confirm = /*#__PURE__*/function (_React$Component) {
|
|
32
|
+
_inherits(Confirm, _React$Component);
|
|
33
|
+
var _super = _createSuper(Confirm);
|
|
32
34
|
function Confirm() {
|
|
33
35
|
_classCallCheck(this, Confirm);
|
|
34
|
-
return
|
|
36
|
+
return _super.apply(this, arguments);
|
|
35
37
|
}
|
|
36
|
-
|
|
37
|
-
return _createClass(Confirm, [{
|
|
38
|
+
_createClass(Confirm, [{
|
|
38
39
|
key: "render",
|
|
39
40
|
value: function render() {
|
|
40
41
|
var _this$props = this.props,
|
|
@@ -58,5 +59,6 @@ var Confirm = /*#__PURE__*/function (_React$Component) {
|
|
|
58
59
|
}, okLabel)));
|
|
59
60
|
}
|
|
60
61
|
}]);
|
|
62
|
+
return Confirm;
|
|
61
63
|
}(_react["default"].Component);
|
|
62
64
|
var _default = exports["default"] = Confirm;
|