kitchen-simulator 1.1.1-test.71 → 1.1.1-test.73
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.
|
@@ -9,7 +9,6 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
|
9
9
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
11
11
|
var _excluded = ["width", "height", "state", "stateExtractor"];
|
|
12
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
13
12
|
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; }
|
|
14
13
|
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; }
|
|
15
14
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
@@ -393,9 +392,9 @@ var KitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
393
392
|
pid: match.params.pid,
|
|
394
393
|
visualizerName: sessionStorage.getItem('visualizerName')
|
|
395
394
|
}).then(/*#__PURE__*/function () {
|
|
396
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
395
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(response) {
|
|
397
396
|
var projectElement, jsonData, _t;
|
|
398
|
-
return
|
|
397
|
+
return regeneratorRuntime.wrap(function (_context) {
|
|
399
398
|
while (1) switch (_context.prev = _context.next) {
|
|
400
399
|
case 0:
|
|
401
400
|
projectElement = response.data.projectElement;
|
|
@@ -6,7 +6,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
6
6
|
var _excluded = ["width", "height", "projectElement", "categoryData", "dataBundle", "configData", "options", "user", "auth", "featureFlags", "sentry", "analytics", "onEvent", "onSave", "onError"];
|
|
7
7
|
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; }
|
|
8
8
|
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; }
|
|
9
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
9
|
import React, { useEffect } from 'react';
|
|
11
10
|
import PropTypes from 'prop-types';
|
|
12
11
|
import { Provider } from 'react-redux';
|
|
@@ -123,9 +122,9 @@ export default function KitchenConfiguratorApp(props) {
|
|
|
123
122
|
setCatalogInitiated = _React$useState4[1];
|
|
124
123
|
useEffect(function () {
|
|
125
124
|
var initMyCatalog = /*#__PURE__*/function () {
|
|
126
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
125
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
127
126
|
var x, _x, _x2;
|
|
128
|
-
return
|
|
127
|
+
return regeneratorRuntime.wrap(function (_context) {
|
|
129
128
|
while (1) switch (_context.prev = _context.next) {
|
|
130
129
|
case 0:
|
|
131
130
|
for (x in Areas) MyCatalog.registerElement(Areas[x]);
|
|
@@ -144,9 +143,9 @@ export default function KitchenConfiguratorApp(props) {
|
|
|
144
143
|
};
|
|
145
144
|
}();
|
|
146
145
|
var loadMoldings = /*#__PURE__*/function () {
|
|
147
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
146
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
148
147
|
var door_color_alias, subgroup_ids, door_color_alias_ids, doorStyleData, molding, toeMoldingData, cabinets, promises;
|
|
149
|
-
return
|
|
148
|
+
return regeneratorRuntime.wrap(function (_context2) {
|
|
150
149
|
while (1) switch (_context2.prev = _context2.next) {
|
|
151
150
|
case 0:
|
|
152
151
|
door_color_alias = [];
|
|
@@ -240,15 +239,15 @@ export default function KitchenConfiguratorApp(props) {
|
|
|
240
239
|
};
|
|
241
240
|
}();
|
|
242
241
|
var loadSVGs = /*#__PURE__*/function () {
|
|
243
|
-
var _ref5 = _asyncToGenerator(/*#__PURE__*/
|
|
242
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
244
243
|
var svgLoadPromises, outlineData;
|
|
245
|
-
return
|
|
244
|
+
return regeneratorRuntime.wrap(function (_context4) {
|
|
246
245
|
while (1) switch (_context4.prev = _context4.next) {
|
|
247
246
|
case 0:
|
|
248
247
|
svgLoadPromises = data.map(/*#__PURE__*/function () {
|
|
249
|
-
var _ref6 = _asyncToGenerator(/*#__PURE__*/
|
|
248
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(item) {
|
|
250
249
|
var _parsed$xml$viewBox, _parsed$xml$viewBox2, response, svgText, loader, parsed, _t;
|
|
251
|
-
return
|
|
250
|
+
return regeneratorRuntime.wrap(function (_context3) {
|
|
252
251
|
while (1) switch (_context3.prev = _context3.next) {
|
|
253
252
|
case 0:
|
|
254
253
|
if (item.outline) {
|
|
@@ -313,8 +312,8 @@ export default function KitchenConfiguratorApp(props) {
|
|
|
313
312
|
};
|
|
314
313
|
}();
|
|
315
314
|
var initCatalog = /*#__PURE__*/function () {
|
|
316
|
-
var _ref7 = _asyncToGenerator(/*#__PURE__*/
|
|
317
|
-
return
|
|
315
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
316
|
+
return regeneratorRuntime.wrap(function (_context5) {
|
|
318
317
|
while (1) switch (_context5.prev = _context5.next) {
|
|
319
318
|
case 0:
|
|
320
319
|
setCatalogInitiated(false);
|
|
@@ -5,7 +5,6 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
10
|
import React, { Component } from 'react';
|
|
@@ -20,9 +19,9 @@ var Scene = /*#__PURE__*/function (_Component) {
|
|
|
20
19
|
return _createClass(Scene, [{
|
|
21
20
|
key: "componentWillReceiveProps",
|
|
22
21
|
value: function () {
|
|
23
|
-
var _componentWillReceiveProps = _asyncToGenerator(/*#__PURE__*/
|
|
22
|
+
var _componentWillReceiveProps = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(nextProps) {
|
|
24
23
|
var scene, catalog, height, layers, selectedLayer, msg, isNotFoundInElements, itemType;
|
|
25
|
-
return
|
|
24
|
+
return regeneratorRuntime.wrap(function (_context) {
|
|
26
25
|
while (1) switch (_context.prev = _context.next) {
|
|
27
26
|
case 0:
|
|
28
27
|
// console.log("componentDidMount", this.props.scene.hashCode(), nextProps.scene.hashCode());
|