@crystaldesign/web-planner-logic 24.11.0-beta.9 → 24.11.0-rc.0
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/build/cjs/{DivaBoxPlanner-ffc9cacc.js → DivaBoxPlanner-a5e169ca.js} +9 -9
- package/build/cjs/{DivaStandardPlanner-032faedf.js → DivaStandardPlanner-d833dda6.js} +81 -25
- package/build/cjs/{DoorPlanner-2c8eabea.js → DoorPlanner-4ad0b55d.js} +1 -1
- package/build/cjs/{Host3DSignalR-ab303488.js → Host3DSignalR-18d5959b.js} +8 -8
- package/build/cjs/{LiviqueWWSHandler-6dd8c925.js → LiviqueWWSHandler-2df9ce37.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-ce1d2c5c.js → PfisterWWSHandler-04557c0d.js} +1 -1
- package/build/cjs/{PlannerHandler2D-acbe78c9.js → PlannerHandler2D-ba17ec51.js} +96 -38
- package/build/cjs/{ProductBasketHandler-6bd0ed7f.js → ProductBasketHandler-a74547b4.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-9d026108.js → SeriousBasketHandler-d7eeeb38.js} +1 -1
- package/build/cjs/{ShelfPlanner-cfc4b586.js → ShelfPlanner-546bdbd7.js} +15 -13
- package/build/cjs/{StandardWWSHandler-b0e4b854.js → StandardWWSHandler-33b00bda.js} +1 -1
- package/build/cjs/{index-985e0a24.js → index-079a47df.js} +599 -489
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-16978433.js → DivaBoxPlanner-a95c530a.js} +9 -9
- package/build/esm/{DivaStandardPlanner-31539e5a.js → DivaStandardPlanner-660cec0e.js} +81 -25
- package/build/esm/{DoorPlanner-6bd46cc6.js → DoorPlanner-9e3b1dff.js} +1 -1
- package/build/esm/{Host3DSignalR-beed9f5c.js → Host3DSignalR-514ab7ea.js} +8 -8
- package/build/esm/{LiviqueWWSHandler-d414cf17.js → LiviqueWWSHandler-5bbc4f4c.js} +1 -1
- package/build/esm/{PfisterWWSHandler-63deaba6.js → PfisterWWSHandler-fea10934.js} +1 -1
- package/build/esm/{PlannerHandler2D-87a9a88d.js → PlannerHandler2D-e204acd1.js} +96 -38
- package/build/esm/{ProductBasketHandler-e6fdce11.js → ProductBasketHandler-ce45363b.js} +1 -1
- package/build/esm/{SeriousBasketHandler-2e80e89c.js → SeriousBasketHandler-41c875f2.js} +1 -1
- package/build/esm/{ShelfPlanner-bba67ad6.js → ShelfPlanner-88da02c7.js} +15 -13
- package/build/esm/{StandardWWSHandler-96d9aeb1.js → StandardWWSHandler-26c6ecb8.js} +1 -1
- package/build/esm/{index-53d1332b.js → index-ae50d2a1.js} +599 -489
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +3 -2
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleDataType.d.ts +4 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/DockingPointDataType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/DockingPointDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Planner/IDivaViewPlannerElement.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Planner/PlannerDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +10 -0
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaCatalogHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +4 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/DockingPointHandler.d.ts +4 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/DockingPointHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/PlannerHandler2D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SVGUtils.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SVGUtils.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts +4 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts +6 -0
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +0 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +4 -0
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -98,7 +98,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
98
98
|
}, {
|
|
99
99
|
key: "fetchData",
|
|
100
100
|
value: function () {
|
|
101
|
-
var _fetchData = _asyncToGenerator(
|
|
101
|
+
var _fetchData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(url, init) {
|
|
102
102
|
var skip,
|
|
103
103
|
response,
|
|
104
104
|
finalUrl,
|
|
@@ -191,7 +191,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
191
191
|
}, {
|
|
192
192
|
key: "getDataWithoutCache",
|
|
193
193
|
value: function () {
|
|
194
|
-
var _getDataWithoutCache = _asyncToGenerator(
|
|
194
|
+
var _getDataWithoutCache = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(queryString, init, useWebServiceApi) {
|
|
195
195
|
var _this$apiConfig, _this$apiConfig2, api2Url;
|
|
196
196
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
197
197
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -263,7 +263,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
263
263
|
}, {
|
|
264
264
|
key: "getDataCache",
|
|
265
265
|
value: function () {
|
|
266
|
-
var _getDataCache = _asyncToGenerator(
|
|
266
|
+
var _getDataCache = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(queryString, cacheMD5, accountSessionGuid, useWebServiceApi, method, data) {
|
|
267
267
|
var myQS, url, init, addSession, _this$apiConfig3, _this$apiConfig4, api2Url, result;
|
|
268
268
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
269
269
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -363,7 +363,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
363
363
|
}, {
|
|
364
364
|
key: "saveAsProduct",
|
|
365
365
|
value: function () {
|
|
366
|
-
var _saveAsProduct = _asyncToGenerator(
|
|
366
|
+
var _saveAsProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(sets, basket) {
|
|
367
367
|
var catalogData, _this$handler;
|
|
368
368
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
369
369
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -692,7 +692,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
692
692
|
}, {
|
|
693
693
|
key: "setAccountSessionGuid",
|
|
694
694
|
value: function () {
|
|
695
|
-
var _setAccountSessionGuid = _asyncToGenerator(
|
|
695
|
+
var _setAccountSessionGuid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(_ref) {
|
|
696
696
|
var os, accountGuid, catalogGuid, response, _this$actions;
|
|
697
697
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
698
698
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -1042,7 +1042,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1042
1042
|
}, {
|
|
1043
1043
|
key: "getArticleJson",
|
|
1044
1044
|
value: function () {
|
|
1045
|
-
var _getArticleJson = _asyncToGenerator(
|
|
1045
|
+
var _getArticleJson = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(artCodex, catalogCodex, accountSessionGuid) {
|
|
1046
1046
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
1047
1047
|
while (1) switch (_context6.prev = _context6.next) {
|
|
1048
1048
|
case 0:
|
|
@@ -1064,7 +1064,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1064
1064
|
}, {
|
|
1065
1065
|
key: "getJsonOptionTree",
|
|
1066
1066
|
value: function () {
|
|
1067
|
-
var _getJsonOptionTree = _asyncToGenerator(
|
|
1067
|
+
var _getJsonOptionTree = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(templateCodex, catalogCodex, accountSessionGuid) {
|
|
1068
1068
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
1069
1069
|
while (1) switch (_context7.prev = _context7.next) {
|
|
1070
1070
|
case 0:
|
|
@@ -1086,7 +1086,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1086
1086
|
}, {
|
|
1087
1087
|
key: "loadArticlePricesQS",
|
|
1088
1088
|
value: function () {
|
|
1089
|
-
var _loadArticlePricesQS = _asyncToGenerator(
|
|
1089
|
+
var _loadArticlePricesQS = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(artCodex, catalogCodex, accountSessionGuid) {
|
|
1090
1090
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
1091
1091
|
while (1) switch (_context8.prev = _context8.next) {
|
|
1092
1092
|
case 0:
|
|
@@ -1124,7 +1124,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1124
1124
|
}, {
|
|
1125
1125
|
key: "postHQRenderScript",
|
|
1126
1126
|
value: function () {
|
|
1127
|
-
var _postHQRenderScript = _asyncToGenerator(
|
|
1127
|
+
var _postHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(data) {
|
|
1128
1128
|
var url, headers, res;
|
|
1129
1129
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
1130
1130
|
while (1) switch (_context9.prev = _context9.next) {
|
|
@@ -1161,7 +1161,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1161
1161
|
}, {
|
|
1162
1162
|
key: "postPlanningInfo",
|
|
1163
1163
|
value: function () {
|
|
1164
|
-
var _postPlanningInfo = _asyncToGenerator(
|
|
1164
|
+
var _postPlanningInfo = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(planningInfo, divaNr, imgUrl, price, name, userId, firstName, lastName, organizationId) {
|
|
1165
1165
|
var data, url, headers;
|
|
1166
1166
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
1167
1167
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -1215,7 +1215,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1215
1215
|
}, {
|
|
1216
1216
|
key: "getDimensionbyId",
|
|
1217
1217
|
value: function () {
|
|
1218
|
-
var _getDimensionbyId = _asyncToGenerator(
|
|
1218
|
+
var _getDimensionbyId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(id, iln, catalogCodex, plannedOptions) {
|
|
1219
1219
|
var _this$apiConfig23;
|
|
1220
1220
|
var fullUrl, res, headers;
|
|
1221
1221
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
@@ -1260,7 +1260,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1260
1260
|
}, {
|
|
1261
1261
|
key: "createBasketReport",
|
|
1262
1262
|
value: function () {
|
|
1263
|
-
var _createBasketReport = _asyncToGenerator(
|
|
1263
|
+
var _createBasketReport = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(basket, _ref2) {
|
|
1264
1264
|
var type,
|
|
1265
1265
|
printOptions,
|
|
1266
1266
|
savePdf,
|
|
@@ -15916,11 +15916,9 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
15916
15916
|
_optionvalues$_codex,
|
|
15917
15917
|
_mask$name$catalog$ap,
|
|
15918
15918
|
_mask$name,
|
|
15919
|
-
_catalog$api$getLangu,
|
|
15920
15919
|
_mask$name2,
|
|
15921
15920
|
_mask$groupname$catal,
|
|
15922
15921
|
_mask$groupname,
|
|
15923
|
-
_catalog$api$getLangu2,
|
|
15924
15922
|
_mask$groupname2,
|
|
15925
15923
|
_jsonOPV$MeasureStep,
|
|
15926
15924
|
_jsonOPV$Metadatas,
|
|
@@ -15984,7 +15982,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
15984
15982
|
this.opv = {
|
|
15985
15983
|
codex: _codex,
|
|
15986
15984
|
vCodex: jsonOPV.VCodex,
|
|
15987
|
-
name: (_mask$name$catalog$ap = mask === null || mask === void 0 || (_mask$name = mask.name) === null || _mask$name === void 0 ? void 0 : _mask$name[
|
|
15985
|
+
name: (_mask$name$catalog$ap = mask === null || mask === void 0 || (_mask$name = mask.name) === null || _mask$name === void 0 ? void 0 : _mask$name[catalog.api.getLanguage()]) !== null && _mask$name$catalog$ap !== void 0 ? _mask$name$catalog$ap : jsonOPV.Name,
|
|
15988
15986
|
origName: jsonOPV.Name,
|
|
15989
15987
|
name_locales: (_mask$name2 = mask === null || mask === void 0 ? void 0 : mask.name) !== null && _mask$name2 !== void 0 ? _mask$name2 : jsonOPV.Name_locales,
|
|
15990
15988
|
image: jsonOPV.Image && jsonOPV.Image != '' ? jsonOPV.Image : undefined,
|
|
@@ -15992,7 +15990,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
15992
15990
|
isTexture: jsonOPV.IsTexture && jsonOPV.IsTexture == 'True' ? true : false,
|
|
15993
15991
|
description: jsonOPV.Description,
|
|
15994
15992
|
description_locales: jsonOPV.Description_locales,
|
|
15995
|
-
groupName: (_mask$groupname$catal = mask === null || mask === void 0 || (_mask$groupname = mask.groupname) === null || _mask$groupname === void 0 ? void 0 : _mask$groupname[
|
|
15993
|
+
groupName: (_mask$groupname$catal = mask === null || mask === void 0 || (_mask$groupname = mask.groupname) === null || _mask$groupname === void 0 ? void 0 : _mask$groupname[catalog.api.getLanguage()]) !== null && _mask$groupname$catal !== void 0 ? _mask$groupname$catal : jsonOPV.GroupName && jsonOPV.GroupName != '' ? jsonOPV.GroupName : undefined,
|
|
15996
15994
|
groupName_locales: (_mask$groupname2 = mask === null || mask === void 0 ? void 0 : mask.groupname) !== null && _mask$groupname2 !== void 0 ? _mask$groupname2 : jsonOPV.GroupName_locales,
|
|
15997
15995
|
hiddenByMask: mask === null || mask === void 0 ? void 0 : mask.hidden,
|
|
15998
15996
|
textureName: jsonOPV.TextureName && jsonOPV.TextureName != '' ? jsonOPV.TextureName : jsonOPV.PFTFile && jsonOPV.PFTFile != '' ? jsonOPV.PFTFile : undefined,
|
|
@@ -16355,12 +16353,10 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16355
16353
|
_catalogData$catalogM,
|
|
16356
16354
|
_articleMask$name$cat,
|
|
16357
16355
|
_articleMask$name,
|
|
16358
|
-
_catalogData$api$getL,
|
|
16359
16356
|
_jsonArticle$Metadata,
|
|
16360
16357
|
_articleMask$properti,
|
|
16361
16358
|
_articleMask$groupnam,
|
|
16362
16359
|
_articleMask$groupnam2,
|
|
16363
|
-
_catalogData$api$getL2,
|
|
16364
16360
|
_articleMask$hidden;
|
|
16365
16361
|
_classCallCheck(this, CatalogArticleData);
|
|
16366
16362
|
_defineProperty(this, "catalogArticle", void 0);
|
|
@@ -16383,7 +16379,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16383
16379
|
typeNr: jsonArticle.TypeNr,
|
|
16384
16380
|
articleType: jsonArticle.ArticleType ? jsonArticle.ArticleType : 'OPTION',
|
|
16385
16381
|
guid: jsonArticle.GUID,
|
|
16386
|
-
name: (_articleMask$name$cat = articleMask === null || articleMask === void 0 || (_articleMask$name = articleMask.name) === null || _articleMask$name === void 0 ? void 0 : _articleMask$name[
|
|
16382
|
+
name: (_articleMask$name$cat = articleMask === null || articleMask === void 0 || (_articleMask$name = articleMask.name) === null || _articleMask$name === void 0 ? void 0 : _articleMask$name[catalogData.api.getLanguage()]) !== null && _articleMask$name$cat !== void 0 ? _articleMask$name$cat : jsonArticle.Name,
|
|
16387
16383
|
origName: jsonArticle.Name,
|
|
16388
16384
|
areOptionsLoaded: false,
|
|
16389
16385
|
arePricesLoaded: false,
|
|
@@ -16393,7 +16389,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
16393
16389
|
image: jsonArticle.Image && jsonArticle.Image != '' ? jsonArticle.Image : undefined,
|
|
16394
16390
|
imageWidth: jsonArticle.ImageWidth ? jsonArticle.ImageWidth : undefined,
|
|
16395
16391
|
imageHeight: jsonArticle.ImageHeight ? jsonArticle.ImageHeight : undefined,
|
|
16396
|
-
groupName: (_articleMask$groupnam = articleMask === null || articleMask === void 0 || (_articleMask$groupnam2 = articleMask.groupname) === null || _articleMask$groupnam2 === void 0 ? void 0 : _articleMask$groupnam2[
|
|
16392
|
+
groupName: (_articleMask$groupnam = articleMask === null || articleMask === void 0 || (_articleMask$groupnam2 = articleMask.groupname) === null || _articleMask$groupnam2 === void 0 ? void 0 : _articleMask$groupnam2[catalogData.api.getLanguage()]) !== null && _articleMask$groupnam !== void 0 ? _articleMask$groupnam : jsonArticle.GroupName,
|
|
16397
16393
|
mainCategory: jsonArticle.MainCategory && jsonArticle.MainCategory != '' ? jsonArticle.MainCategory : undefined,
|
|
16398
16394
|
width: jsonArticle.Width && jsonArticle.Width != '' ? Number(jsonArticle.Width.replace('cm', '').replace(',', '.')) : undefined,
|
|
16399
16395
|
height: jsonArticle.Height && jsonArticle.Height != '' ? Number(jsonArticle.Height.replace('cm', '').replace(',', '.')) : undefined,
|
|
@@ -17071,7 +17067,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
17071
17067
|
if (articleRelations[0].Articles.length > 0) {
|
|
17072
17068
|
this.catalogArticle.hasArticleRelations = true;
|
|
17073
17069
|
for (var i = 0; i < articleRelations[0].Articles.length; i++) {
|
|
17074
|
-
var _catalogArticle$catal, _catalogArticle$catal2, _catalogArticle$catal3, _catalogArticle$catal4, _catalogArticle$catal5, _catalogArticle$catal6;
|
|
17070
|
+
var _catalogArticle$catal, _catalogArticle$catal2, _catalogArticle$catal3, _catalogArticle$catal4, _catalogArticle$catal5, _catalogArticle$catal6, _catalogArticle$catal7, _catalogArticle$catal8, _catalogArticle$catal9, _catalogArticle$catal10;
|
|
17075
17071
|
var myAcc = articleRelations[0].Articles[i];
|
|
17076
17072
|
if (this.catalogCodex != myAcc.CatalogCodex) {
|
|
17077
17073
|
//DivaUtils.LOG.log("Accessoire ist von einem anderen Catalog. Sollte eig funktionern aber bitte testen!");
|
|
@@ -17096,6 +17092,8 @@ var CatalogArticleData = /*#__PURE__*/function () {
|
|
|
17096
17092
|
hasAVC: ((_catalogArticle$catal = (_catalogArticle$catal2 = catalogArticle.catalogPlannerArticle) === null || _catalogArticle$catal2 === void 0 ? void 0 : _catalogArticle$catal2.topAVC) !== null && _catalogArticle$catal !== void 0 ? _catalogArticle$catal : 0) > 0,
|
|
17097
17093
|
hasAVO: ((_catalogArticle$catal3 = (_catalogArticle$catal4 = catalogArticle.catalogPlannerArticle) === null || _catalogArticle$catal4 === void 0 ? void 0 : _catalogArticle$catal4.topAVO) !== null && _catalogArticle$catal3 !== void 0 ? _catalogArticle$catal3 : 0) > 0,
|
|
17098
17094
|
hasAVU: ((_catalogArticle$catal5 = (_catalogArticle$catal6 = catalogArticle.catalogPlannerArticle) === null || _catalogArticle$catal6 === void 0 ? void 0 : _catalogArticle$catal6.topAVU) !== null && _catalogArticle$catal5 !== void 0 ? _catalogArticle$catal5 : 0) > 0,
|
|
17095
|
+
hasAVN: ((_catalogArticle$catal7 = (_catalogArticle$catal8 = catalogArticle.catalogPlannerArticle) === null || _catalogArticle$catal8 === void 0 ? void 0 : _catalogArticle$catal8.topAVN) !== null && _catalogArticle$catal7 !== void 0 ? _catalogArticle$catal7 : 0) > 0,
|
|
17096
|
+
hasAVS: ((_catalogArticle$catal9 = (_catalogArticle$catal10 = catalogArticle.catalogPlannerArticle) === null || _catalogArticle$catal10 === void 0 ? void 0 : _catalogArticle$catal10.topAVS) !== null && _catalogArticle$catal9 !== void 0 ? _catalogArticle$catal9 : 0) > 0,
|
|
17099
17097
|
width: catalogArticle.width,
|
|
17100
17098
|
height: catalogArticle.height,
|
|
17101
17099
|
depth: catalogArticle.depth,
|
|
@@ -17542,6 +17540,8 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
|
|
|
17542
17540
|
topAVO: jsonArticle.TopAVO ? jsonArticle.TopAVO : -1,
|
|
17543
17541
|
topAVU: jsonArticle.TopAVU ? jsonArticle.TopAVU : -1,
|
|
17544
17542
|
topAVC: jsonArticle.TopAVC ? jsonArticle.TopAVC : -1,
|
|
17543
|
+
topAVN: jsonArticle.TopAVN ? jsonArticle.TopAVN : -1,
|
|
17544
|
+
topAVS: jsonArticle.TopAVS ? jsonArticle.TopAVS : -1,
|
|
17545
17545
|
topIsAccessoire: jsonArticle.TopIsAccessoire != undefined ? jsonArticle.TopIsAccessoire : undefined,
|
|
17546
17546
|
j3DUrl: jsonArticle.J3DUrl && jsonArticle.J3DUrl != '' ? jsonArticle.J3DUrl : undefined,
|
|
17547
17547
|
isArticleRelation: jsonArticle.IsArticleRelation != undefined ? jsonArticle.IsArticleRelation : undefined,
|
|
@@ -17745,6 +17745,16 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
|
|
|
17745
17745
|
get: function get() {
|
|
17746
17746
|
return this.catPlanArt.topAVU;
|
|
17747
17747
|
}
|
|
17748
|
+
}, {
|
|
17749
|
+
key: "topAVN",
|
|
17750
|
+
get: function get() {
|
|
17751
|
+
return this.catPlanArt.topAVN;
|
|
17752
|
+
}
|
|
17753
|
+
}, {
|
|
17754
|
+
key: "topAVS",
|
|
17755
|
+
get: function get() {
|
|
17756
|
+
return this.catPlanArt.topAVS;
|
|
17757
|
+
}
|
|
17748
17758
|
}, {
|
|
17749
17759
|
key: "getSvgInSvgWithFormulaArr",
|
|
17750
17760
|
value: function getSvgInSvgWithFormulaArr(curSVG) {
|
|
@@ -17773,9 +17783,9 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
|
|
|
17773
17783
|
get: function get() {
|
|
17774
17784
|
if (
|
|
17775
17785
|
//if the article hasTopSvg
|
|
17776
|
-
this.hasTopSvg && (this.topAVC > 0 || this.topAVO > 0 || this.topAVU > 0 || this.topHasAVL || this.topHasAVR) ||
|
|
17786
|
+
this.hasTopSvg && (this.topAVC > 0 || this.topAVO > 0 || this.topAVU > 0 || this.topAVN > 0 || this.topAVS > 0 || this.topHasAVL || this.topHasAVR) ||
|
|
17777
17787
|
//if the article hasTopSvgsWithFormula (more svgs). All svgs have to have the same dp
|
|
17778
|
-
this.hasTopSvgsWithFormula && this.topSvgsWithFormula.length > 0 && (this.topSvgsWithFormula[0].AVC > 0 || this.topSvgsWithFormula[0].AVO > 0 || this.topSvgsWithFormula[0].AVU > 0 || this.topSvgsWithFormula[0].HasAVL || this.topSvgsWithFormula[0].HasAVR)) {
|
|
17788
|
+
this.hasTopSvgsWithFormula && this.topSvgsWithFormula.length > 0 && (this.topSvgsWithFormula[0].AVC > 0 || this.topSvgsWithFormula[0].AVO > 0 || this.topSvgsWithFormula[0].AVU > 0 || this.topSvgsWithFormula[0].AVN > 0 || this.topSvgsWithFormula[0].AVS > 0 || this.topSvgsWithFormula[0].HasAVL || this.topSvgsWithFormula[0].HasAVR)) {
|
|
17779
17789
|
return true;
|
|
17780
17790
|
}
|
|
17781
17791
|
return false;
|
|
@@ -17793,21 +17803,21 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
|
|
|
17793
17803
|
|
|
17794
17804
|
var OptionCatalogData = /*#__PURE__*/function () {
|
|
17795
17805
|
function OptionCatalogData(codex, jsonOPT, catalogData) {
|
|
17796
|
-
var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _jsonOPT$Properties, _optionMask$propertie, _optionMask$name$cata, _optionMask$name,
|
|
17806
|
+
var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _jsonOPT$Properties, _optionMask$propertie, _optionMask$name$cata, _optionMask$name, _optionMask$name2, _optionMask$hidden, _optionMask$tabGroup, _ref, _optionMask$layout, _properties$find, _jsonOPT$showOPVAsArt;
|
|
17797
17807
|
_classCallCheck(this, OptionCatalogData);
|
|
17798
17808
|
_defineProperty(this, "opt", void 0);
|
|
17799
17809
|
var optionMask = (_catalogData$catalogM = (_catalogData$catalogM2 = catalogData.catalogMask) === null || _catalogData$catalogM2 === void 0 || (_catalogData$catalogM2 = _catalogData$catalogM2.options) === null || _catalogData$catalogM2 === void 0 ? void 0 : _catalogData$catalogM2[codex]) !== null && _catalogData$catalogM !== void 0 ? _catalogData$catalogM : codex.startsWith('OPT') ? (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 || (_catalogData$catalogM3 = _catalogData$catalogM3.options) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3[codex.substring(3)] : undefined;
|
|
17800
17810
|
var properties = [].concat(_toConsumableArray((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray((_optionMask$propertie = optionMask === null || optionMask === void 0 ? void 0 : optionMask.properties) !== null && _optionMask$propertie !== void 0 ? _optionMask$propertie : []));
|
|
17801
17811
|
this.opt = {
|
|
17802
17812
|
codex: codex,
|
|
17803
|
-
name: (_optionMask$name$cata = optionMask === null || optionMask === void 0 || (_optionMask$name = optionMask.name) === null || _optionMask$name === void 0 ? void 0 : _optionMask$name[
|
|
17813
|
+
name: (_optionMask$name$cata = optionMask === null || optionMask === void 0 || (_optionMask$name = optionMask.name) === null || _optionMask$name === void 0 ? void 0 : _optionMask$name[catalogData.api.getLanguage()]) !== null && _optionMask$name$cata !== void 0 ? _optionMask$name$cata : jsonOPT.Name,
|
|
17804
17814
|
origName: jsonOPT.Name,
|
|
17805
17815
|
name_locales: (_optionMask$name2 = optionMask === null || optionMask === void 0 ? void 0 : optionMask.name) !== null && _optionMask$name2 !== void 0 ? _optionMask$name2 : jsonOPT.Name_locales,
|
|
17806
17816
|
headerPosVariationType: jsonOPT.HeaderPosVariationType,
|
|
17807
17817
|
idmVariantenArt: jsonOPT.IDMVariantenArt ? Number(jsonOPT.IDMVariantenArt) : undefined,
|
|
17808
17818
|
image: jsonOPT.Image ? jsonOPT.Image : undefined,
|
|
17809
17819
|
invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : jsonOPT.Invisible != undefined ? jsonOPT.Invisible : false,
|
|
17810
|
-
maskTabgroup: optionMask === null || optionMask === void 0 || (_optionMask$tabGroup = optionMask.tabGroup) === null || _optionMask$tabGroup === void 0 ? void 0 : _optionMask$tabGroup[
|
|
17820
|
+
maskTabgroup: optionMask === null || optionMask === void 0 || (_optionMask$tabGroup = optionMask.tabGroup) === null || _optionMask$tabGroup === void 0 ? void 0 : _optionMask$tabGroup[catalogData.api.getLanguage()],
|
|
17811
17821
|
layout: (_ref = (_optionMask$layout = optionMask === null || optionMask === void 0 ? void 0 : optionMask.layout) !== null && _optionMask$layout !== void 0 ? _optionMask$layout : properties === null || properties === void 0 || (_properties$find = properties.find(function (p) {
|
|
17812
17822
|
return p.Codex == 'LAYOUT';
|
|
17813
17823
|
})) === null || _properties$find === void 0 ? void 0 : _properties$find.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
|
|
@@ -18143,7 +18153,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18143
18153
|
supplierCatalogName: json.SupplierCatalogName,
|
|
18144
18154
|
additionalCatalogPrice: json.AdditionalCatalogPrice,
|
|
18145
18155
|
additionalCatalogPriceText: json.AdditionalCatalogPriceText,
|
|
18146
|
-
autoSelectFirstValue: true,
|
|
18147
18156
|
rounding: json.Rounding,
|
|
18148
18157
|
digits: json.Digits,
|
|
18149
18158
|
useEkPrices: this.api.useEkPrices,
|
|
@@ -18774,6 +18783,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18774
18783
|
hasAVC: topSvg.TopAVC && topSvg.TopAVC > 0 || topSvg.AVC && topSvg.AVC > 0 ? true : false,
|
|
18775
18784
|
hasAVO: topSvg.TopAVO && topSvg.TopAVO > 0 || topSvg.AVO && topSvg.AVO > 0 ? true : false,
|
|
18776
18785
|
hasAVU: topSvg.TopAVU && topSvg.TopAVU > 0 || topSvg.AVU && topSvg.AVU > 0 ? true : false,
|
|
18786
|
+
hasAVN: topSvg.TopAVN && topSvg.TopAVN > 0 || topSvg.AVN && topSvg.AVN > 0 ? true : false,
|
|
18787
|
+
hasAVS: topSvg.TopAVS && topSvg.TopAVS > 0 || topSvg.AVS && topSvg.AVS > 0 ? true : false,
|
|
18777
18788
|
hasAVR: topSvg.HasAVR ? true : false,
|
|
18778
18789
|
hasAVL: topSvg.HasAVL ? true : false,
|
|
18779
18790
|
jsonFormula: topSvg.JsFormula,
|
|
@@ -18830,6 +18841,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18830
18841
|
hasAVC: catPlanArticle.topAVC && catPlanArticle.topAVC > 0 ? true : false,
|
|
18831
18842
|
hasAVO: catPlanArticle.topAVO && catPlanArticle.topAVO > 0 ? true : false,
|
|
18832
18843
|
hasAVU: catPlanArticle.topAVU && catPlanArticle.topAVU > 0 ? true : false,
|
|
18844
|
+
hasAVN: catPlanArticle.topAVN && catPlanArticle.topAVN > 0 ? true : false,
|
|
18845
|
+
hasAVS: catPlanArticle.topAVS && catPlanArticle.topAVS > 0 ? true : false,
|
|
18833
18846
|
hasAVR: hasAVR,
|
|
18834
18847
|
hasAVL: hasAVL,
|
|
18835
18848
|
layer: catPlanArticle.topLayer ? Number(catPlanArticle.topLayer) : 20,
|
|
@@ -19048,11 +19061,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19048
19061
|
get: function get() {
|
|
19049
19062
|
return this.catalogData.dontShowAccStep;
|
|
19050
19063
|
}
|
|
19051
|
-
}, {
|
|
19052
|
-
key: "autoSelectFirstValue",
|
|
19053
|
-
value: function autoSelectFirstValue() {
|
|
19054
|
-
return this.catalogData.autoSelectFirstValue;
|
|
19055
|
-
}
|
|
19056
19064
|
|
|
19057
19065
|
//Planner configurations
|
|
19058
19066
|
}, {
|
|
@@ -19562,7 +19570,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19562
19570
|
}, {
|
|
19563
19571
|
key: "updateMask",
|
|
19564
19572
|
value: function () {
|
|
19565
|
-
var _updateMask = _asyncToGenerator(
|
|
19573
|
+
var _updateMask = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
|
|
19566
19574
|
var additionalModelInfos;
|
|
19567
19575
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
19568
19576
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19635,7 +19643,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
19635
19643
|
return _createClass(DivaCatalogHandler, [{
|
|
19636
19644
|
key: "getCatalogData",
|
|
19637
19645
|
value: function () {
|
|
19638
|
-
var _getCatalogData = _asyncToGenerator(
|
|
19646
|
+
var _getCatalogData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(state, catalogCodex, orderSet) {
|
|
19639
19647
|
var catalogKey, promises, _yield$Promise$all, _yield$Promise$all2, catalogApiData, catalogArticleListData, catalogArticlePlannerListData, additionalModelInfos, mask, _state$catalogMask, catalogData, _state$actions;
|
|
19640
19648
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
19641
19649
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -20481,6 +20489,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
20481
20489
|
countAVC: -1,
|
|
20482
20490
|
countAVO: -1,
|
|
20483
20491
|
countAVU: -1,
|
|
20492
|
+
countAVN: -1,
|
|
20493
|
+
countAVS: -1,
|
|
20484
20494
|
hasAVL: false,
|
|
20485
20495
|
hasAVR: false,
|
|
20486
20496
|
isAccessoire: false,
|
|
@@ -20510,6 +20520,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
20510
20520
|
this.actPlannerData.countAVC = plannerElement.topAVC;
|
|
20511
20521
|
this.actPlannerData.countAVO = plannerElement.topAVO;
|
|
20512
20522
|
this.actPlannerData.countAVU = plannerElement.topAVU;
|
|
20523
|
+
this.actPlannerData.countAVN = plannerElement.topAVN;
|
|
20524
|
+
this.actPlannerData.countAVS = plannerElement.topAVS;
|
|
20513
20525
|
}
|
|
20514
20526
|
this.actPlannerData.accessoireList = this.accessoireList;
|
|
20515
20527
|
this.actPlannerData.svgsWithFormula = plannerElement.topSvgsWithFormula;
|
|
@@ -21343,7 +21355,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
21343
21355
|
get: function get() {
|
|
21344
21356
|
var _this$accessoireParen7;
|
|
21345
21357
|
if (this.relatedToShelfGrid !== undefined && (_this$accessoireParen7 = this.accessoireParentArticle) !== null && _this$accessoireParen7 !== void 0 && _this$accessoireParen7.shelfPlanner) {
|
|
21346
|
-
return this.accessoireParentArticle.shelfPlanner.getRelatedToGridIdByArticleCodex(this.articleCodex);
|
|
21358
|
+
return this.accessoireParentArticle.shelfPlanner.getRelatedToGridIdByArticleCodex(this.articleCodex, this.relatedToShelfGrid);
|
|
21347
21359
|
}
|
|
21348
21360
|
return undefined;
|
|
21349
21361
|
}
|
|
@@ -21537,6 +21549,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
21537
21549
|
this.actPlannerData.countAVC = this.article.catalogArticle.catalogPlannerArticle.topAVC;
|
|
21538
21550
|
this.actPlannerData.countAVO = this.article.catalogArticle.catalogPlannerArticle.topAVO;
|
|
21539
21551
|
this.actPlannerData.countAVU = this.article.catalogArticle.catalogPlannerArticle.topAVU;
|
|
21552
|
+
this.actPlannerData.countAVN = this.article.catalogArticle.catalogPlannerArticle.topAVN;
|
|
21553
|
+
this.actPlannerData.countAVS = this.article.catalogArticle.catalogPlannerArticle.topAVS;
|
|
21540
21554
|
this.actPlannerData.isAccessoire = !this.isPartListArticle && this.article.relatedToBasketId != undefined;
|
|
21541
21555
|
}
|
|
21542
21556
|
}, {
|
|
@@ -22219,6 +22233,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
22219
22233
|
}, {
|
|
22220
22234
|
key: "validateAndSetNewConfigValues",
|
|
22221
22235
|
value: function validateAndSetNewConfigValues(newConfigValues) {
|
|
22236
|
+
var freeTextValues = {};
|
|
22222
22237
|
for (var key in newConfigValues) {
|
|
22223
22238
|
var _ops3, _ops4, _newConfigValues$key;
|
|
22224
22239
|
var ops = this.getArticleOptionState(key);
|
|
@@ -22229,7 +22244,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
22229
22244
|
ops = this.handleMultiselect(ops, newConfigValues, key);
|
|
22230
22245
|
}
|
|
22231
22246
|
if ((_ops4 = ops) !== null && _ops4 !== void 0 && _ops4.isFreeText) {
|
|
22232
|
-
this.handleFreeText(ops, newConfigValues, key);
|
|
22247
|
+
this.handleFreeText(ops, newConfigValues, key, freeTextValues);
|
|
22233
22248
|
}
|
|
22234
22249
|
var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key.split(';')[0];
|
|
22235
22250
|
var foundItem = this.checkOptionAndOptionValue(optionCodex, opvCodex, partenOptionCodex);
|
|
@@ -22314,7 +22329,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
22314
22329
|
}
|
|
22315
22330
|
}, {
|
|
22316
22331
|
key: "handleFreeText",
|
|
22317
|
-
value: function handleFreeText(ops, newConfigValues, key) {
|
|
22332
|
+
value: function handleFreeText(ops, newConfigValues, key, freeTextValues) {
|
|
22318
22333
|
var _this$set$ViewConfig;
|
|
22319
22334
|
var _this$parentOptionCod5 = this.parentOptionCodex(key),
|
|
22320
22335
|
optionCodex = _this$parentOptionCod5.optionCodex,
|
|
@@ -22326,7 +22341,14 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
22326
22341
|
ops.freeTextLang['DE'] = langs[0];
|
|
22327
22342
|
ops.freeTextLang['FR'] = langs[1];
|
|
22328
22343
|
ops.freeTextLang['IT'] = langs[2];
|
|
22329
|
-
} else
|
|
22344
|
+
} else {
|
|
22345
|
+
var _freeTextValues$optio;
|
|
22346
|
+
var doSetValue = newConfigValues[optionCodex + '_val'] === undefined;
|
|
22347
|
+
if (!doSetValue && !((_freeTextValues$optio = freeTextValues[optionCodex]) !== null && _freeTextValues$optio !== void 0 && _freeTextValues$optio.exactMatchingKey) && key === partenOptionCodex + '.' + optionCodex) doSetValue = true;
|
|
22348
|
+
if (!doSetValue) return;
|
|
22349
|
+
freeTextValues[optionCodex] = {
|
|
22350
|
+
exactMatchingKey: key === partenOptionCodex + '.' + optionCodex
|
|
22351
|
+
};
|
|
22330
22352
|
newConfigValues[optionCodex + '_val'] = value === null || value === void 0 ? void 0 : value.split(';')[0];
|
|
22331
22353
|
var _this$checkOptionAndO = this.checkOptionAndOptionValue(optionCodex, newConfigValues[key], partenOptionCodex),
|
|
22332
22354
|
opv = _this$checkOptionAndO.opv;
|
|
@@ -23508,7 +23530,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23508
23530
|
}, {
|
|
23509
23531
|
key: "updateShelfPlannerState",
|
|
23510
23532
|
value: function () {
|
|
23511
|
-
var _updateShelfPlannerState = _asyncToGenerator(
|
|
23533
|
+
var _updateShelfPlannerState = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
23512
23534
|
var _this$doorPlanner;
|
|
23513
23535
|
var j3D, _yield$import, ShelfPlanner;
|
|
23514
23536
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -23520,7 +23542,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23520
23542
|
break;
|
|
23521
23543
|
}
|
|
23522
23544
|
_context.next = 4;
|
|
23523
|
-
return import('./ShelfPlanner-
|
|
23545
|
+
return import('./ShelfPlanner-88da02c7.js');
|
|
23524
23546
|
case 4:
|
|
23525
23547
|
_yield$import = _context.sent;
|
|
23526
23548
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -24064,6 +24086,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24064
24086
|
this.actPlannerData.countAVC = mySVG.AVC;
|
|
24065
24087
|
this.actPlannerData.countAVO = mySVG.AVO;
|
|
24066
24088
|
this.actPlannerData.countAVU = mySVG.AVU;
|
|
24089
|
+
this.actPlannerData.countAVN = mySVG.AVN;
|
|
24090
|
+
this.actPlannerData.countAVS = mySVG.AVS;
|
|
24067
24091
|
this.actPlannerData.hasAVL = mySVG.HasAVL;
|
|
24068
24092
|
this.actPlannerData.hasAVR = mySVG.HasAVR;
|
|
24069
24093
|
LOG$c.debug('new SVG by SVG tausch', {
|
|
@@ -24073,6 +24097,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24073
24097
|
AVC: mySVG.AVC,
|
|
24074
24098
|
AVO: mySVG.AVO,
|
|
24075
24099
|
AVU: mySVG.AVU,
|
|
24100
|
+
AVN: mySVG.AVN,
|
|
24101
|
+
AVS: mySVG.AVS,
|
|
24076
24102
|
HasAVL: mySVG.HasAVL,
|
|
24077
24103
|
HasAVR: mySVG.HasAVR
|
|
24078
24104
|
});
|
|
@@ -24470,25 +24496,69 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24470
24496
|
key: "loadArticle",
|
|
24471
24497
|
value: //Initialisiert eventuell Option Tree und Infos im CatalogArticle
|
|
24472
24498
|
function () {
|
|
24473
|
-
var _loadArticle = _asyncToGenerator(
|
|
24474
|
-
var
|
|
24499
|
+
var _loadArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, articleCodex, initParams) {
|
|
24500
|
+
var _yield$this$preLoadAr, catalog, catalogArticle, newBasketId, _set$actions;
|
|
24475
24501
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
24476
24502
|
while (1) switch (_context.prev = _context.next) {
|
|
24503
|
+
case 0:
|
|
24504
|
+
_context.next = 2;
|
|
24505
|
+
return this.preLoadArticle(set, articleCodex, initParams);
|
|
24506
|
+
case 2:
|
|
24507
|
+
_yield$this$preLoadAr = _context.sent;
|
|
24508
|
+
catalog = _yield$this$preLoadAr.catalog;
|
|
24509
|
+
catalogArticle = _yield$this$preLoadAr.catalogArticle;
|
|
24510
|
+
newBasketId = initParams.basketId ? initParams.basketId : 'B' + nanoid();
|
|
24511
|
+
if (!catalogArticle) {
|
|
24512
|
+
_context.next = 10;
|
|
24513
|
+
break;
|
|
24514
|
+
}
|
|
24515
|
+
return _context.abrupt("return", new DivaArticle(set, newBasketId, initParams, catalogArticle, catalog));
|
|
24516
|
+
case 10:
|
|
24517
|
+
//articleCodex does not exist anymore in catalog
|
|
24518
|
+
LOG$b.error(new DivaError('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!', {
|
|
24519
|
+
code: 'WC_0011',
|
|
24520
|
+
custom: {
|
|
24521
|
+
articleCodex: articleCodex
|
|
24522
|
+
}
|
|
24523
|
+
}));
|
|
24524
|
+
(_set$actions = set.actions) === null || _set$actions === void 0 || _set$actions.openModal({
|
|
24525
|
+
accept: true,
|
|
24526
|
+
title: set.i18n.t('modals.error_accured')
|
|
24527
|
+
});
|
|
24528
|
+
return _context.abrupt("return", false);
|
|
24529
|
+
case 13:
|
|
24530
|
+
case "end":
|
|
24531
|
+
return _context.stop();
|
|
24532
|
+
}
|
|
24533
|
+
}, _callee, this);
|
|
24534
|
+
}));
|
|
24535
|
+
function loadArticle(_x, _x2, _x3) {
|
|
24536
|
+
return _loadArticle.apply(this, arguments);
|
|
24537
|
+
}
|
|
24538
|
+
return loadArticle;
|
|
24539
|
+
}() //loads all the calls for an article but does not create the article
|
|
24540
|
+
}, {
|
|
24541
|
+
key: "preLoadArticle",
|
|
24542
|
+
value: function () {
|
|
24543
|
+
var _preLoadArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(set, articleCodex, initParams) {
|
|
24544
|
+
var catalog, _set$getSetState$acti, _set$getSetState$acti2, _set$getSetState$acti3, _set$getSetState$acti4, catalogArticle;
|
|
24545
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
24546
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
24477
24547
|
case 0:
|
|
24478
24548
|
if (!(initParams.catalogCodex && initParams.catalogCodex !== set.CatalogData.catalogCodex)) {
|
|
24479
|
-
|
|
24549
|
+
_context2.next = 8;
|
|
24480
24550
|
break;
|
|
24481
24551
|
}
|
|
24482
24552
|
(_set$getSetState$acti = set.getSetState.actions) === null || _set$getSetState$acti === void 0 || (_set$getSetState$acti2 = _set$getSetState$acti.toggleLoading) === null || _set$getSetState$acti2 === void 0 || _set$getSetState$acti2.call(_set$getSetState$acti, 'loadingCatalog' + initParams.catalogCodex, false, true);
|
|
24483
|
-
|
|
24553
|
+
_context2.next = 4;
|
|
24484
24554
|
return catalogHandlerInstance.getCatalogData(set.getSetState, initParams.catalogCodex, {
|
|
24485
24555
|
AccountGUID: set.CatalogData.accountGuid,
|
|
24486
24556
|
AccountSessionGUID: set.CatalogData.accountSessionGuid
|
|
24487
24557
|
});
|
|
24488
24558
|
case 4:
|
|
24489
|
-
catalog =
|
|
24559
|
+
catalog = _context2.sent;
|
|
24490
24560
|
(_set$getSetState$acti3 = set.getSetState.actions) === null || _set$getSetState$acti3 === void 0 || (_set$getSetState$acti4 = _set$getSetState$acti3.toggleLoading) === null || _set$getSetState$acti4 === void 0 || _set$getSetState$acti4.call(_set$getSetState$acti3, 'loadingCatalog' + initParams.catalogCodex, false, false);
|
|
24491
|
-
|
|
24561
|
+
_context2.next = 9;
|
|
24492
24562
|
break;
|
|
24493
24563
|
case 8:
|
|
24494
24564
|
catalog = set.CatalogData;
|
|
@@ -24497,68 +24567,62 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24497
24567
|
//usecase der selbe Article wurde bereits verplant. nun kann die bereits geladene & verwendete Klasse catalogArticle wiederverwendet werden da wir dort nichts
|
|
24498
24568
|
//während der Konfiguration verändern!
|
|
24499
24569
|
if (!catalogArticle) {
|
|
24500
|
-
|
|
24570
|
+
_context2.next = 17;
|
|
24501
24571
|
break;
|
|
24502
24572
|
}
|
|
24503
24573
|
if (!catalogArticle.areOptionsToLoad) {
|
|
24504
|
-
|
|
24574
|
+
_context2.next = 14;
|
|
24505
24575
|
break;
|
|
24506
24576
|
}
|
|
24507
|
-
|
|
24577
|
+
_context2.next = 14;
|
|
24508
24578
|
return this.loadArticleData(set, catalogArticle, catalog);
|
|
24509
24579
|
case 14:
|
|
24510
|
-
|
|
24511
|
-
|
|
24512
|
-
|
|
24513
|
-
//articleCodex does not exist anymore in catalog
|
|
24514
|
-
LOG$b.error(new DivaError('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!', {
|
|
24515
|
-
code: 'WC_0011',
|
|
24516
|
-
custom: {
|
|
24517
|
-
articleCodex: articleCodex
|
|
24518
|
-
}
|
|
24519
|
-
}));
|
|
24520
|
-
(_set$actions = set.actions) === null || _set$actions === void 0 || _set$actions.openModal({
|
|
24521
|
-
accept: true,
|
|
24522
|
-
title: set.i18n.t('modals.error_accured')
|
|
24580
|
+
return _context2.abrupt("return", {
|
|
24581
|
+
catalog: catalog,
|
|
24582
|
+
catalogArticle: catalogArticle
|
|
24523
24583
|
});
|
|
24524
|
-
|
|
24525
|
-
|
|
24584
|
+
case 17:
|
|
24585
|
+
return _context2.abrupt("return", {
|
|
24586
|
+
catalog: catalog,
|
|
24587
|
+
catalogArticle: catalogArticle
|
|
24588
|
+
});
|
|
24589
|
+
case 18:
|
|
24526
24590
|
case "end":
|
|
24527
|
-
return
|
|
24591
|
+
return _context2.stop();
|
|
24528
24592
|
}
|
|
24529
|
-
},
|
|
24593
|
+
}, _callee2, this);
|
|
24530
24594
|
}));
|
|
24531
|
-
function
|
|
24532
|
-
return
|
|
24595
|
+
function preLoadArticle(_x4, _x5, _x6) {
|
|
24596
|
+
return _preLoadArticle.apply(this, arguments);
|
|
24533
24597
|
}
|
|
24534
|
-
return
|
|
24598
|
+
return preLoadArticle;
|
|
24535
24599
|
}()
|
|
24536
24600
|
}, {
|
|
24537
24601
|
key: "loadArticleData",
|
|
24538
24602
|
value: function () {
|
|
24539
|
-
var _loadArticleData = _asyncToGenerator(
|
|
24603
|
+
var _loadArticleData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, catalogArticle, catalog) {
|
|
24540
24604
|
var catalogCodex, promises, _yield$Promise$all, _yield$Promise$all2, jsonPrices, jsonOption;
|
|
24541
|
-
return _regeneratorRuntime.wrap(function
|
|
24542
|
-
while (1) switch (
|
|
24605
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
24606
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
24543
24607
|
case 0:
|
|
24544
24608
|
//ArticleRelations und J3D und Partlists bekommt man jetzt noch
|
|
24545
24609
|
catalogCodex = catalog.catalogCodex;
|
|
24546
|
-
|
|
24547
|
-
|
|
24610
|
+
_context3.t0 = catalogArticle;
|
|
24611
|
+
_context3.next = 4;
|
|
24548
24612
|
return set.api.getArticleJson(catalogArticle.articleCodex, catalogCodex, catalog.accountSessionGuid);
|
|
24549
24613
|
case 4:
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24614
|
+
_context3.t1 = _context3.sent;
|
|
24615
|
+
_context3.t2 = catalog;
|
|
24616
|
+
_context3.t0.loadMoreFromArticle.call(_context3.t0, _context3.t1, _context3.t2);
|
|
24553
24617
|
if (!catalogArticle.templateCodex) {
|
|
24554
|
-
|
|
24618
|
+
_context3.next = 17;
|
|
24555
24619
|
break;
|
|
24556
24620
|
}
|
|
24557
24621
|
promises = [set.api.loadArticlePricesQS(catalogArticle.articleCodex, catalogCodex, catalog.accountSessionGuid), set.api.getJsonOptionTree(catalogArticle.templateCodex, catalogCodex, catalog.accountSessionGuid)];
|
|
24558
|
-
|
|
24622
|
+
_context3.next = 11;
|
|
24559
24623
|
return Promise.all(promises);
|
|
24560
24624
|
case 11:
|
|
24561
|
-
_yield$Promise$all =
|
|
24625
|
+
_yield$Promise$all = _context3.sent;
|
|
24562
24626
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
24563
24627
|
jsonPrices = _yield$Promise$all2[0];
|
|
24564
24628
|
jsonOption = _yield$Promise$all2[1];
|
|
@@ -24568,11 +24632,11 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24568
24632
|
catalogArticle.areOptionsLoaded = true;
|
|
24569
24633
|
case 18:
|
|
24570
24634
|
case "end":
|
|
24571
|
-
return
|
|
24635
|
+
return _context3.stop();
|
|
24572
24636
|
}
|
|
24573
|
-
},
|
|
24637
|
+
}, _callee3);
|
|
24574
24638
|
}));
|
|
24575
|
-
function loadArticleData(
|
|
24639
|
+
function loadArticleData(_x7, _x8, _x9) {
|
|
24576
24640
|
return _loadArticleData.apply(this, arguments);
|
|
24577
24641
|
}
|
|
24578
24642
|
return loadArticleData;
|
|
@@ -24580,24 +24644,24 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24580
24644
|
}, {
|
|
24581
24645
|
key: "updateAccessoireQuantity",
|
|
24582
24646
|
value: function () {
|
|
24583
|
-
var _updateAccessoireQuantity = _asyncToGenerator(
|
|
24584
|
-
return _regeneratorRuntime.wrap(function
|
|
24585
|
-
while (1) switch (
|
|
24647
|
+
var _updateAccessoireQuantity = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(accessoire, newQuantity) {
|
|
24648
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
24649
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
24586
24650
|
case 0:
|
|
24587
24651
|
accessoire.quantity = newQuantity;
|
|
24588
24652
|
if (!(accessoire.articleType == 'OPTION' || accessoire.articleType == 'OPTIONTREE')) {
|
|
24589
|
-
|
|
24653
|
+
_context4.next = 4;
|
|
24590
24654
|
break;
|
|
24591
24655
|
}
|
|
24592
|
-
|
|
24656
|
+
_context4.next = 4;
|
|
24593
24657
|
return this.updateCfgValues(accessoire, {}, {});
|
|
24594
24658
|
case 4:
|
|
24595
24659
|
case "end":
|
|
24596
|
-
return
|
|
24660
|
+
return _context4.stop();
|
|
24597
24661
|
}
|
|
24598
|
-
},
|
|
24662
|
+
}, _callee4, this);
|
|
24599
24663
|
}));
|
|
24600
|
-
function updateAccessoireQuantity(
|
|
24664
|
+
function updateAccessoireQuantity(_x10, _x11) {
|
|
24601
24665
|
return _updateAccessoireQuantity.apply(this, arguments);
|
|
24602
24666
|
}
|
|
24603
24667
|
return updateAccessoireQuantity;
|
|
@@ -24605,33 +24669,33 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24605
24669
|
}, {
|
|
24606
24670
|
key: "toDoAfterArticleLoaded",
|
|
24607
24671
|
value: function () {
|
|
24608
|
-
var _toDoAfterArticleLoaded = _asyncToGenerator(
|
|
24609
|
-
return _regeneratorRuntime.wrap(function
|
|
24610
|
-
while (1) switch (
|
|
24672
|
+
var _toDoAfterArticleLoaded = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(article, defaultValues, variantValues, from, variantItems, ignorePlanner) {
|
|
24673
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
24674
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
24611
24675
|
case 0:
|
|
24612
24676
|
if (!(article.articleType == 'OPTION' || article.articleType == 'OPTIONTREE')) {
|
|
24613
|
-
|
|
24677
|
+
_context5.next = 8;
|
|
24614
24678
|
break;
|
|
24615
24679
|
}
|
|
24616
|
-
|
|
24680
|
+
_context5.next = 3;
|
|
24617
24681
|
return this.initCfgValues(article, variantValues, variantItems);
|
|
24618
24682
|
case 3:
|
|
24619
|
-
|
|
24683
|
+
_context5.next = 5;
|
|
24620
24684
|
return this.updateCfgValues(article, defaultValues, variantValues);
|
|
24621
24685
|
case 5:
|
|
24622
24686
|
if (!(article.set.PlannerMode !== 'BoxPlanner')) {
|
|
24623
|
-
|
|
24687
|
+
_context5.next = 8;
|
|
24624
24688
|
break;
|
|
24625
24689
|
}
|
|
24626
|
-
|
|
24690
|
+
_context5.next = 8;
|
|
24627
24691
|
return setHandlerInstance.updateArticlesOptionStatesOfActSet(article.set, defaultValues, [article.basketId], ignorePlanner, from);
|
|
24628
24692
|
case 8:
|
|
24629
24693
|
case "end":
|
|
24630
|
-
return
|
|
24694
|
+
return _context5.stop();
|
|
24631
24695
|
}
|
|
24632
|
-
},
|
|
24696
|
+
}, _callee5, this);
|
|
24633
24697
|
}));
|
|
24634
|
-
function toDoAfterArticleLoaded(
|
|
24698
|
+
function toDoAfterArticleLoaded(_x12, _x13, _x14, _x15, _x16, _x17) {
|
|
24635
24699
|
return _toDoAfterArticleLoaded.apply(this, arguments);
|
|
24636
24700
|
}
|
|
24637
24701
|
return toDoAfterArticleLoaded;
|
|
@@ -24650,11 +24714,11 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24650
24714
|
}, {
|
|
24651
24715
|
key: "updateArticlesOptionStates",
|
|
24652
24716
|
value: function () {
|
|
24653
|
-
var _updateArticlesOptionStates = _asyncToGenerator(
|
|
24717
|
+
var _updateArticlesOptionStates = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(myValues, targetArticlesWithNewValues, targetArticlesToUpdate, articles, from) {
|
|
24654
24718
|
var _articles$targetArtic;
|
|
24655
24719
|
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, actArticle, newPartlistArticlesToLoad, _actArticle$checkDefa, variantValues, triggerUpdate, key, configuredArticle, toIgnore, _actArticle, _i, _actArticle2;
|
|
24656
|
-
return _regeneratorRuntime.wrap(function
|
|
24657
|
-
while (1) switch (
|
|
24720
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
24721
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
24658
24722
|
case 0:
|
|
24659
24723
|
newEDOExtraArticles = [];
|
|
24660
24724
|
partlistArticlesToLoad = [];
|
|
@@ -24662,124 +24726,124 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24662
24726
|
i = 0;
|
|
24663
24727
|
case 4:
|
|
24664
24728
|
if (!(i < targetArticlesToUpdate.length)) {
|
|
24665
|
-
|
|
24729
|
+
_context6.next = 40;
|
|
24666
24730
|
break;
|
|
24667
24731
|
}
|
|
24668
24732
|
valuesArray[i] = {};
|
|
24669
24733
|
actArticle = articles[targetArticlesToUpdate[i]];
|
|
24670
24734
|
if (!(!actArticle || actArticle.deleted)) {
|
|
24671
|
-
|
|
24735
|
+
_context6.next = 11;
|
|
24672
24736
|
break;
|
|
24673
24737
|
}
|
|
24674
24738
|
targetArticlesToUpdate.splice(i, 1);
|
|
24675
24739
|
i--;
|
|
24676
|
-
return
|
|
24740
|
+
return _context6.abrupt("continue", 37);
|
|
24677
24741
|
case 11:
|
|
24678
24742
|
if (targetArticlesWithNewValues.includes(targetArticlesToUpdate[i])) {
|
|
24679
24743
|
valuesArray[i] = actArticle.getValidValues(_objectSpread$c({}, myValues), actArticle.CatalogData.mergeOptionsToSameOption);
|
|
24680
24744
|
}
|
|
24681
24745
|
if (!(Object.entries(valuesArray[i]).length > 0 || from !== null && from !== void 0 && from.startsWith('initializing'))) {
|
|
24682
|
-
|
|
24746
|
+
_context6.next = 32;
|
|
24683
24747
|
break;
|
|
24684
24748
|
}
|
|
24685
|
-
|
|
24749
|
+
_context6.next = 15;
|
|
24686
24750
|
return this.updateCfgValues(actArticle, valuesArray[i], {});
|
|
24687
24751
|
case 15:
|
|
24688
|
-
newPartlistArticlesToLoad =
|
|
24752
|
+
newPartlistArticlesToLoad = _context6.sent;
|
|
24689
24753
|
_actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
|
|
24690
24754
|
valuesArray[i] = variantValues;
|
|
24691
|
-
|
|
24755
|
+
_context6.next = 20;
|
|
24692
24756
|
return this.updateAccessoriesFromGlobalOption(valuesArray[i], actArticle);
|
|
24693
24757
|
case 20:
|
|
24694
24758
|
if (!triggerUpdate) {
|
|
24695
|
-
|
|
24759
|
+
_context6.next = 28;
|
|
24696
24760
|
break;
|
|
24697
24761
|
}
|
|
24698
|
-
|
|
24699
|
-
|
|
24762
|
+
_context6.t0 = partlistArticlesToLoad;
|
|
24763
|
+
_context6.next = 24;
|
|
24700
24764
|
return this.updateCfgValues(actArticle, valuesArray[i], {});
|
|
24701
24765
|
case 24:
|
|
24702
|
-
|
|
24703
|
-
partlistArticlesToLoad =
|
|
24704
|
-
|
|
24766
|
+
_context6.t1 = _context6.sent;
|
|
24767
|
+
partlistArticlesToLoad = _context6.t0.concat.call(_context6.t0, _context6.t1);
|
|
24768
|
+
_context6.next = 29;
|
|
24705
24769
|
break;
|
|
24706
24770
|
case 28:
|
|
24707
24771
|
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPartlistArticlesToLoad);
|
|
24708
24772
|
case 29:
|
|
24709
24773
|
newEDOExtraArticles = this.checkEDOArticles(articles);
|
|
24710
|
-
|
|
24774
|
+
_context6.next = 37;
|
|
24711
24775
|
break;
|
|
24712
24776
|
case 32:
|
|
24713
|
-
|
|
24714
|
-
|
|
24777
|
+
_context6.t2 = partlistArticlesToLoad;
|
|
24778
|
+
_context6.next = 35;
|
|
24715
24779
|
return this.updateCfgValues(actArticle, {}, {});
|
|
24716
24780
|
case 35:
|
|
24717
|
-
|
|
24718
|
-
partlistArticlesToLoad =
|
|
24781
|
+
_context6.t3 = _context6.sent;
|
|
24782
|
+
partlistArticlesToLoad = _context6.t2.concat.call(_context6.t2, _context6.t3);
|
|
24719
24783
|
case 37:
|
|
24720
24784
|
i++;
|
|
24721
|
-
|
|
24785
|
+
_context6.next = 4;
|
|
24722
24786
|
break;
|
|
24723
24787
|
case 40:
|
|
24724
24788
|
if (!((_articles$targetArtic = articles[targetArticlesToUpdate[0]]) !== null && _articles$targetArtic !== void 0 && _articles$targetArtic.hasPartlistArticleVisibleInTree)) {
|
|
24725
|
-
|
|
24789
|
+
_context6.next = 53;
|
|
24726
24790
|
break;
|
|
24727
24791
|
}
|
|
24728
|
-
|
|
24792
|
+
_context6.t4 = _regeneratorRuntime.keys(articles);
|
|
24729
24793
|
case 42:
|
|
24730
|
-
if ((
|
|
24731
|
-
|
|
24794
|
+
if ((_context6.t5 = _context6.t4()).done) {
|
|
24795
|
+
_context6.next = 53;
|
|
24732
24796
|
break;
|
|
24733
24797
|
}
|
|
24734
|
-
key =
|
|
24798
|
+
key = _context6.t5.value;
|
|
24735
24799
|
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
24736
24800
|
toIgnore = configuredArticle.pushParentId();
|
|
24737
24801
|
if (![configuredArticle.basketId].concat(_toConsumableArray(toIgnore)).includes(key)) {
|
|
24738
|
-
|
|
24802
|
+
_context6.next = 48;
|
|
24739
24803
|
break;
|
|
24740
24804
|
}
|
|
24741
|
-
return
|
|
24805
|
+
return _context6.abrupt("continue", 42);
|
|
24742
24806
|
case 48:
|
|
24743
24807
|
_actArticle = articles[key];
|
|
24744
|
-
|
|
24808
|
+
_context6.next = 51;
|
|
24745
24809
|
return this.updateCfgValues(_actArticle, {}, {});
|
|
24746
24810
|
case 51:
|
|
24747
|
-
|
|
24811
|
+
_context6.next = 42;
|
|
24748
24812
|
break;
|
|
24749
24813
|
case 53:
|
|
24750
24814
|
_i = 0;
|
|
24751
24815
|
case 54:
|
|
24752
24816
|
if (!(_i < targetArticlesToUpdate.length)) {
|
|
24753
|
-
|
|
24817
|
+
_context6.next = 64;
|
|
24754
24818
|
break;
|
|
24755
24819
|
}
|
|
24756
24820
|
_actArticle2 = articles[targetArticlesToUpdate[_i]];
|
|
24757
24821
|
if (!(_actArticle2.CatalogData.doubleClickOnConfig || _actArticle2.hasType1Dependencies)) {
|
|
24758
|
-
|
|
24822
|
+
_context6.next = 61;
|
|
24759
24823
|
break;
|
|
24760
24824
|
}
|
|
24761
|
-
|
|
24825
|
+
_context6.next = 59;
|
|
24762
24826
|
return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
|
|
24763
24827
|
case 59:
|
|
24764
|
-
|
|
24828
|
+
_context6.next = 61;
|
|
24765
24829
|
return this.updateCfgValues(_actArticle2, valuesArray[_i], {});
|
|
24766
24830
|
case 61:
|
|
24767
24831
|
_i++;
|
|
24768
|
-
|
|
24832
|
+
_context6.next = 54;
|
|
24769
24833
|
break;
|
|
24770
24834
|
case 64:
|
|
24771
|
-
return
|
|
24835
|
+
return _context6.abrupt("return", {
|
|
24772
24836
|
newEDOExtraArticles: newEDOExtraArticles,
|
|
24773
24837
|
targetArticlesToUpdate: targetArticlesToUpdate,
|
|
24774
24838
|
partlistArticlesToLoad: partlistArticlesToLoad
|
|
24775
24839
|
});
|
|
24776
24840
|
case 65:
|
|
24777
24841
|
case "end":
|
|
24778
|
-
return
|
|
24842
|
+
return _context6.stop();
|
|
24779
24843
|
}
|
|
24780
|
-
},
|
|
24844
|
+
}, _callee6, this);
|
|
24781
24845
|
}));
|
|
24782
|
-
function updateArticlesOptionStates(
|
|
24846
|
+
function updateArticlesOptionStates(_x18, _x19, _x20, _x21, _x22) {
|
|
24783
24847
|
return _updateArticlesOptionStates.apply(this, arguments);
|
|
24784
24848
|
}
|
|
24785
24849
|
return updateArticlesOptionStates;
|
|
@@ -24787,31 +24851,31 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24787
24851
|
}, {
|
|
24788
24852
|
key: "updateAccessoriesFromGlobalOption",
|
|
24789
24853
|
value: function () {
|
|
24790
|
-
var _updateAccessoriesFromGlobalOption = _asyncToGenerator(
|
|
24854
|
+
var _updateAccessoriesFromGlobalOption = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(values, actArticle) {
|
|
24791
24855
|
var accessoiresToUpdate, key;
|
|
24792
|
-
return _regeneratorRuntime.wrap(function
|
|
24793
|
-
while (1) switch (
|
|
24856
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
24857
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
24794
24858
|
case 0:
|
|
24795
24859
|
accessoiresToUpdate = actArticle.getAccessoriesToChangeFromGlobalOption(values);
|
|
24796
|
-
|
|
24860
|
+
_context7.t0 = _regeneratorRuntime.keys(accessoiresToUpdate);
|
|
24797
24861
|
case 2:
|
|
24798
|
-
if ((
|
|
24799
|
-
|
|
24862
|
+
if ((_context7.t1 = _context7.t0()).done) {
|
|
24863
|
+
_context7.next = 8;
|
|
24800
24864
|
break;
|
|
24801
24865
|
}
|
|
24802
|
-
key =
|
|
24803
|
-
|
|
24866
|
+
key = _context7.t1.value;
|
|
24867
|
+
_context7.next = 6;
|
|
24804
24868
|
return this.updateCfgValues(accessoiresToUpdate[key].accessoire, accessoiresToUpdate[key].variantValues, {});
|
|
24805
24869
|
case 6:
|
|
24806
|
-
|
|
24870
|
+
_context7.next = 2;
|
|
24807
24871
|
break;
|
|
24808
24872
|
case 8:
|
|
24809
24873
|
case "end":
|
|
24810
|
-
return
|
|
24874
|
+
return _context7.stop();
|
|
24811
24875
|
}
|
|
24812
|
-
},
|
|
24876
|
+
}, _callee7, this);
|
|
24813
24877
|
}));
|
|
24814
|
-
function updateAccessoriesFromGlobalOption(
|
|
24878
|
+
function updateAccessoriesFromGlobalOption(_x23, _x24) {
|
|
24815
24879
|
return _updateAccessoriesFromGlobalOption.apply(this, arguments);
|
|
24816
24880
|
}
|
|
24817
24881
|
return updateAccessoriesFromGlobalOption;
|
|
@@ -24889,12 +24953,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24889
24953
|
}, {
|
|
24890
24954
|
key: "initCfgValues",
|
|
24891
24955
|
value: (function () {
|
|
24892
|
-
var _initCfgValues = _asyncToGenerator(
|
|
24956
|
+
var _initCfgValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(article, variantValues,
|
|
24893
24957
|
// Werte aus einem Basiskonfigurat,
|
|
24894
24958
|
variantItems) {
|
|
24895
24959
|
var myCatalogArticleOptions, articleOptionState, key, _article$set$ViewConf, optionState, attr, foundItem, _foundItem$opt, freeText, _key, myArtOPS, value, optionValueCodex, i, variantItem, possibleValues, j, possibleValue, _i2, _variantItem, val;
|
|
24896
|
-
return _regeneratorRuntime.wrap(function
|
|
24897
|
-
while (1) switch (
|
|
24960
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
24961
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
24898
24962
|
case 0:
|
|
24899
24963
|
myCatalogArticleOptions = article.catalogArticleOptions;
|
|
24900
24964
|
articleOptionState = article.articleOptionStates;
|
|
@@ -24974,11 +25038,11 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24974
25038
|
}
|
|
24975
25039
|
case 4:
|
|
24976
25040
|
case "end":
|
|
24977
|
-
return
|
|
25041
|
+
return _context8.stop();
|
|
24978
25042
|
}
|
|
24979
|
-
},
|
|
25043
|
+
}, _callee8);
|
|
24980
25044
|
}));
|
|
24981
|
-
function initCfgValues(
|
|
25045
|
+
function initCfgValues(_x25, _x26, _x27) {
|
|
24982
25046
|
return _initCfgValues.apply(this, arguments);
|
|
24983
25047
|
}
|
|
24984
25048
|
return initCfgValues;
|
|
@@ -24986,19 +25050,19 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24986
25050
|
}, {
|
|
24987
25051
|
key: "setValidVariantValues",
|
|
24988
25052
|
value: function () {
|
|
24989
|
-
var _setValidVariantValues = _asyncToGenerator(
|
|
24990
|
-
return _regeneratorRuntime.wrap(function
|
|
24991
|
-
while (1) switch (
|
|
25053
|
+
var _setValidVariantValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(article) {
|
|
25054
|
+
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
25055
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
24992
25056
|
case 0:
|
|
24993
|
-
|
|
25057
|
+
_context9.next = 2;
|
|
24994
25058
|
return this.updateCfgValues(article, article.getValidValues(article.VariantValues, undefined, true), {});
|
|
24995
25059
|
case 2:
|
|
24996
25060
|
case "end":
|
|
24997
|
-
return
|
|
25061
|
+
return _context9.stop();
|
|
24998
25062
|
}
|
|
24999
|
-
},
|
|
25063
|
+
}, _callee9, this);
|
|
25000
25064
|
}));
|
|
25001
|
-
function setValidVariantValues(
|
|
25065
|
+
function setValidVariantValues(_x28) {
|
|
25002
25066
|
return _setValidVariantValues.apply(this, arguments);
|
|
25003
25067
|
}
|
|
25004
25068
|
return setValidVariantValues;
|
|
@@ -25015,10 +25079,10 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25015
25079
|
}, {
|
|
25016
25080
|
key: "updateCfgValues",
|
|
25017
25081
|
value: (function () {
|
|
25018
|
-
var _updateCfgValues = _asyncToGenerator(
|
|
25082
|
+
var _updateCfgValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist) {
|
|
25019
25083
|
var maxPriceOfGroupCodex, setByFeatureVariantValues, key, partlistArticlesToLoad;
|
|
25020
|
-
return _regeneratorRuntime.wrap(function
|
|
25021
|
-
while (1) switch (
|
|
25084
|
+
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
25085
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
25022
25086
|
case 0:
|
|
25023
25087
|
if (!!article.CatalogData.bundleRules) dontLoadPartlist = true;
|
|
25024
25088
|
//es wird versucht die neuen Optionswerte zu setzten
|
|
@@ -25051,20 +25115,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25051
25115
|
}
|
|
25052
25116
|
|
|
25053
25117
|
//await -> partlist berechnung und laden
|
|
25054
|
-
|
|
25118
|
+
_context10.next = 8;
|
|
25055
25119
|
return article.updateShelfPlannerState();
|
|
25056
25120
|
case 8:
|
|
25057
25121
|
if (dontCalcPrice) {
|
|
25058
|
-
|
|
25122
|
+
_context10.next = 11;
|
|
25059
25123
|
break;
|
|
25060
25124
|
}
|
|
25061
|
-
|
|
25125
|
+
_context10.next = 11;
|
|
25062
25126
|
return this.updateLastElement(article);
|
|
25063
25127
|
case 11:
|
|
25064
|
-
|
|
25128
|
+
_context10.next = 13;
|
|
25065
25129
|
return this.evalAndLoadPartlistArticles(article, dontLoadPartlist, newConfigValues);
|
|
25066
25130
|
case 13:
|
|
25067
|
-
partlistArticlesToLoad =
|
|
25131
|
+
partlistArticlesToLoad = _context10.sent;
|
|
25068
25132
|
// löscht seine eigene partlist article - optimierung schnittmenge nicht löschen und nur neu neu laden
|
|
25069
25133
|
|
|
25070
25134
|
//evalConstructionRules ausswerten
|
|
@@ -25081,14 +25145,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25081
25145
|
//evtl opv images mit rules updaten
|
|
25082
25146
|
article.updateOPVImages();
|
|
25083
25147
|
}
|
|
25084
|
-
return
|
|
25148
|
+
return _context10.abrupt("return", partlistArticlesToLoad);
|
|
25085
25149
|
case 17:
|
|
25086
25150
|
case "end":
|
|
25087
|
-
return
|
|
25151
|
+
return _context10.stop();
|
|
25088
25152
|
}
|
|
25089
|
-
},
|
|
25153
|
+
}, _callee10, this);
|
|
25090
25154
|
}));
|
|
25091
|
-
function updateCfgValues(
|
|
25155
|
+
function updateCfgValues(_x29, _x30, _x31, _x32, _x33) {
|
|
25092
25156
|
return _updateCfgValues.apply(this, arguments);
|
|
25093
25157
|
}
|
|
25094
25158
|
return updateCfgValues;
|
|
@@ -25096,10 +25160,10 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25096
25160
|
}, {
|
|
25097
25161
|
key: "updateLastElement",
|
|
25098
25162
|
value: function () {
|
|
25099
|
-
var _updateLastElement = _asyncToGenerator(
|
|
25163
|
+
var _updateLastElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(article) {
|
|
25100
25164
|
var opsLastElement, lastElement, opsLastPlannedAccessoire, opsFirstAccessoire, _article$accessoirePa, _article$accessoirePa2, accessoires, i;
|
|
25101
|
-
return _regeneratorRuntime.wrap(function
|
|
25102
|
-
while (1) switch (
|
|
25165
|
+
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
25166
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
25103
25167
|
case 0:
|
|
25104
25168
|
opsLastElement = article.getArticleOptionState('OPTELEMENTPOSITION');
|
|
25105
25169
|
if (opsLastElement) {
|
|
@@ -25122,29 +25186,29 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25122
25186
|
}
|
|
25123
25187
|
opsFirstAccessoire = article.getArticleOptionState('OPTFIRSTACCESSOIRE');
|
|
25124
25188
|
if (!opsFirstAccessoire) {
|
|
25125
|
-
|
|
25189
|
+
_context11.next = 14;
|
|
25126
25190
|
break;
|
|
25127
25191
|
}
|
|
25128
25192
|
accessoires = (_article$accessoirePa = (_article$accessoirePa2 = article.accessoireParentArticle) === null || _article$accessoirePa2 === void 0 ? void 0 : _article$accessoirePa2.getAccessoireByArticleCodex(article.articleCodex)) !== null && _article$accessoirePa !== void 0 ? _article$accessoirePa : [];
|
|
25129
25193
|
i = 0;
|
|
25130
25194
|
case 8:
|
|
25131
25195
|
if (!(i < accessoires.length)) {
|
|
25132
|
-
|
|
25196
|
+
_context11.next = 14;
|
|
25133
25197
|
break;
|
|
25134
25198
|
}
|
|
25135
|
-
|
|
25199
|
+
_context11.next = 11;
|
|
25136
25200
|
return this.updateOption(accessoires[i], 'OPTFIRSTACCESSOIRE', 'OPV' + (i + 1).toString(), i === 0 ? 'OPVFIRSTACCESSOIRE' : 'OPVNOTFIRSTACCESSOIRE');
|
|
25137
25201
|
case 11:
|
|
25138
25202
|
i++;
|
|
25139
|
-
|
|
25203
|
+
_context11.next = 8;
|
|
25140
25204
|
break;
|
|
25141
25205
|
case 14:
|
|
25142
25206
|
case "end":
|
|
25143
|
-
return
|
|
25207
|
+
return _context11.stop();
|
|
25144
25208
|
}
|
|
25145
|
-
},
|
|
25209
|
+
}, _callee11, this);
|
|
25146
25210
|
}));
|
|
25147
|
-
function updateLastElement(
|
|
25211
|
+
function updateLastElement(_x34) {
|
|
25148
25212
|
return _updateLastElement.apply(this, arguments);
|
|
25149
25213
|
}
|
|
25150
25214
|
return updateLastElement;
|
|
@@ -25152,41 +25216,41 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25152
25216
|
}, {
|
|
25153
25217
|
key: "updateOption",
|
|
25154
25218
|
value: function () {
|
|
25155
|
-
var _updateOption = _asyncToGenerator(
|
|
25219
|
+
var _updateOption = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(article, optionCodex, newCodex, fallbackNewCodex) {
|
|
25156
25220
|
var _ops$val, _ops$visibleOptionVal;
|
|
25157
25221
|
var ops, oldCodex, newVal;
|
|
25158
|
-
return _regeneratorRuntime.wrap(function
|
|
25159
|
-
while (1) switch (
|
|
25222
|
+
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
25223
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
25160
25224
|
case 0:
|
|
25161
25225
|
ops = article.getArticleOptionState(optionCodex);
|
|
25162
25226
|
if (ops) {
|
|
25163
|
-
|
|
25227
|
+
_context12.next = 3;
|
|
25164
25228
|
break;
|
|
25165
25229
|
}
|
|
25166
|
-
return
|
|
25230
|
+
return _context12.abrupt("return");
|
|
25167
25231
|
case 3:
|
|
25168
25232
|
oldCodex = (_ops$val = ops.val) === null || _ops$val === void 0 ? void 0 : _ops$val.codex;
|
|
25169
25233
|
newVal = (_ops$visibleOptionVal = ops.visibleOptionValues[newCodex]) !== null && _ops$visibleOptionVal !== void 0 ? _ops$visibleOptionVal : fallbackNewCodex ? ops.visibleOptionValues[fallbackNewCodex] : undefined;
|
|
25170
25234
|
if (!(oldCodex === (newVal === null || newVal === void 0 ? void 0 : newVal.codex))) {
|
|
25171
|
-
|
|
25235
|
+
_context12.next = 7;
|
|
25172
25236
|
break;
|
|
25173
25237
|
}
|
|
25174
|
-
return
|
|
25238
|
+
return _context12.abrupt("return");
|
|
25175
25239
|
case 7:
|
|
25176
25240
|
if (!newVal) {
|
|
25177
|
-
|
|
25241
|
+
_context12.next = 11;
|
|
25178
25242
|
break;
|
|
25179
25243
|
}
|
|
25180
25244
|
ops.val = newVal;
|
|
25181
|
-
|
|
25245
|
+
_context12.next = 11;
|
|
25182
25246
|
return setHandlerInstance.updateArticlesOptionStatesOfActSet(article.set, {}, []);
|
|
25183
25247
|
case 11:
|
|
25184
25248
|
case "end":
|
|
25185
|
-
return
|
|
25249
|
+
return _context12.stop();
|
|
25186
25250
|
}
|
|
25187
|
-
},
|
|
25251
|
+
}, _callee12);
|
|
25188
25252
|
}));
|
|
25189
|
-
function updateOption(
|
|
25253
|
+
function updateOption(_x35, _x36, _x37, _x38) {
|
|
25190
25254
|
return _updateOption.apply(this, arguments);
|
|
25191
25255
|
}
|
|
25192
25256
|
return updateOption;
|
|
@@ -25196,23 +25260,23 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25196
25260
|
}, {
|
|
25197
25261
|
key: "evalAndLoadPartlistArticles",
|
|
25198
25262
|
value: (function () {
|
|
25199
|
-
var _evalAndLoadPartlistArticles = _asyncToGenerator(
|
|
25263
|
+
var _evalAndLoadPartlistArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(article, dontLoadPartlist, newConfigValues) {
|
|
25200
25264
|
var partlistArticlesToLoad;
|
|
25201
|
-
return _regeneratorRuntime.wrap(function
|
|
25202
|
-
while (1) switch (
|
|
25265
|
+
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
25266
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
25203
25267
|
case 0:
|
|
25204
25268
|
partlistArticlesToLoad = [];
|
|
25205
25269
|
if (!article.hasPartlistArticle) {
|
|
25206
|
-
|
|
25270
|
+
_context13.next = 8;
|
|
25207
25271
|
break;
|
|
25208
25272
|
}
|
|
25209
25273
|
article.deletePartlistArticles(); //alle aktellen PartlistArticles des Articles löschen!
|
|
25210
25274
|
partlistArticlesToLoad = article.evalPartlist(newConfigValues);
|
|
25211
25275
|
if (dontLoadPartlist) {
|
|
25212
|
-
|
|
25276
|
+
_context13.next = 8;
|
|
25213
25277
|
break;
|
|
25214
25278
|
}
|
|
25215
|
-
|
|
25279
|
+
_context13.next = 7;
|
|
25216
25280
|
return this.loadPartlistArticles(partlistArticlesToLoad, article, article.VariantValues);
|
|
25217
25281
|
case 7:
|
|
25218
25282
|
partlistArticlesToLoad = [];
|
|
@@ -25221,14 +25285,14 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25221
25285
|
partlistArticlesToLoad = this.bundlePartlistArticles(partlistArticlesToLoad, article.bundleRules, _defineProperty({}, article.basketId, article));
|
|
25222
25286
|
}
|
|
25223
25287
|
article.hasPartlistArticleInitialized = true;
|
|
25224
|
-
return
|
|
25288
|
+
return _context13.abrupt("return", partlistArticlesToLoad);
|
|
25225
25289
|
case 11:
|
|
25226
25290
|
case "end":
|
|
25227
|
-
return
|
|
25291
|
+
return _context13.stop();
|
|
25228
25292
|
}
|
|
25229
|
-
},
|
|
25293
|
+
}, _callee13, this);
|
|
25230
25294
|
}));
|
|
25231
|
-
function evalAndLoadPartlistArticles(
|
|
25295
|
+
function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
|
|
25232
25296
|
return _evalAndLoadPartlistArticles.apply(this, arguments);
|
|
25233
25297
|
}
|
|
25234
25298
|
return evalAndLoadPartlistArticles;
|
|
@@ -25236,32 +25300,41 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25236
25300
|
}, {
|
|
25237
25301
|
key: "loadPartlistArticles",
|
|
25238
25302
|
value: function () {
|
|
25239
|
-
var _loadPartlistArticles = _asyncToGenerator(
|
|
25240
|
-
var i;
|
|
25241
|
-
return _regeneratorRuntime.wrap(function
|
|
25242
|
-
while (1) switch (
|
|
25303
|
+
var _loadPartlistArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(partlistArticlesToLoad, article, newConfigValues) {
|
|
25304
|
+
var loadAwaits, i, doLoadItem;
|
|
25305
|
+
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
25306
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
25243
25307
|
case 0:
|
|
25308
|
+
//make all api calls of all the partlistarticles at the same time but initialize them still synced
|
|
25309
|
+
loadAwaits = [];
|
|
25310
|
+
for (i = 0; i < partlistArticlesToLoad.length; i++) {
|
|
25311
|
+
doLoadItem = partlistArticlesToLoad[i];
|
|
25312
|
+
loadAwaits.push(this.preLoadArticle(article.set, doLoadItem.ArticleCodex, this.partlistArticleInitData(article, doLoadItem)));
|
|
25313
|
+
}
|
|
25314
|
+
_context14.next = 4;
|
|
25315
|
+
return Promise.all(loadAwaits);
|
|
25316
|
+
case 4:
|
|
25244
25317
|
i = 0;
|
|
25245
|
-
case
|
|
25318
|
+
case 5:
|
|
25246
25319
|
if (!(i < partlistArticlesToLoad.length)) {
|
|
25247
|
-
|
|
25320
|
+
_context14.next = 11;
|
|
25248
25321
|
break;
|
|
25249
25322
|
}
|
|
25250
|
-
|
|
25323
|
+
_context14.next = 8;
|
|
25251
25324
|
return this.loadPartlistArticle(partlistArticlesToLoad[i], article, newConfigValues);
|
|
25252
|
-
case
|
|
25325
|
+
case 8:
|
|
25253
25326
|
i++;
|
|
25254
|
-
|
|
25327
|
+
_context14.next = 5;
|
|
25255
25328
|
break;
|
|
25256
|
-
case
|
|
25329
|
+
case 11:
|
|
25257
25330
|
article.sortPartlistArticles(partlistArticlesToLoad);
|
|
25258
|
-
case
|
|
25331
|
+
case 12:
|
|
25259
25332
|
case "end":
|
|
25260
|
-
return
|
|
25333
|
+
return _context14.stop();
|
|
25261
25334
|
}
|
|
25262
|
-
},
|
|
25335
|
+
}, _callee14, this);
|
|
25263
25336
|
}));
|
|
25264
|
-
function loadPartlistArticles(
|
|
25337
|
+
function loadPartlistArticles(_x42, _x43, _x44) {
|
|
25265
25338
|
return _loadPartlistArticles.apply(this, arguments);
|
|
25266
25339
|
}
|
|
25267
25340
|
return loadPartlistArticles;
|
|
@@ -25270,60 +25343,64 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25270
25343
|
}, {
|
|
25271
25344
|
key: "loadPartlistArticle",
|
|
25272
25345
|
value: function () {
|
|
25273
|
-
var _loadPartlistArticle = _asyncToGenerator(
|
|
25274
|
-
var
|
|
25275
|
-
return _regeneratorRuntime.wrap(function
|
|
25276
|
-
while (1) switch (
|
|
25346
|
+
var _loadPartlistArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(doLoadItem, article, newConfigValues) {
|
|
25347
|
+
var nArticle;
|
|
25348
|
+
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
25349
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
25277
25350
|
case 0:
|
|
25278
|
-
|
|
25279
|
-
|
|
25280
|
-
|
|
25281
|
-
|
|
25282
|
-
//Bei Ekornes gibt es Partlistartikels mit SVGs - Damit die BasketID im Plener weiter gültig ist, wird hier die Originale BasketID gemerkt.
|
|
25283
|
-
quantity: doLoadItem.Quantity,
|
|
25284
|
-
variantValues: parentVariantValues,
|
|
25285
|
-
//Objektstruktur
|
|
25286
|
-
relatedToBasketId: article.basketId,
|
|
25287
|
-
parentArticle: article,
|
|
25288
|
-
isPartlistArticle: true,
|
|
25289
|
-
ruleDesc: doLoadItem.RuleDesc,
|
|
25290
|
-
ruleDesc_locales: doLoadItem.RuleDesc_locales,
|
|
25291
|
-
basketId: doLoadItem.BasketID,
|
|
25292
|
-
partlistRule: doLoadItem.PartlistRule,
|
|
25293
|
-
retailArticleNr: doLoadItem.RetailArticleNr,
|
|
25294
|
-
retailPrefix: doLoadItem.RetailPrefix,
|
|
25295
|
-
configArticleCodex: doLoadItem.RetailArticleNr,
|
|
25296
|
-
supplierOrderCodex: doLoadItem.SupplierOrderCodex,
|
|
25297
|
-
initDecisions: doLoadItem.initDecisions,
|
|
25298
|
-
partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
|
|
25299
|
-
optionsForPrint: doLoadItem.optionsForPrint,
|
|
25300
|
-
optionImgForPrint: doLoadItem.optionImgForPrint,
|
|
25301
|
-
catalogCodex: doLoadItem.CatalogCodex
|
|
25302
|
-
};
|
|
25303
|
-
_context14.next = 4;
|
|
25304
|
-
return this.loadArticle(article.set, doLoadItem.ArticleCodex, initParams);
|
|
25305
|
-
case 4:
|
|
25306
|
-
nArticle = _context14.sent;
|
|
25351
|
+
_context15.next = 2;
|
|
25352
|
+
return this.loadArticle(article.set, doLoadItem.ArticleCodex, this.partlistArticleInitData(article, doLoadItem));
|
|
25353
|
+
case 2:
|
|
25354
|
+
nArticle = _context15.sent;
|
|
25307
25355
|
if (!nArticle) {
|
|
25308
|
-
|
|
25356
|
+
_context15.next = 8;
|
|
25309
25357
|
break;
|
|
25310
25358
|
}
|
|
25311
25359
|
doLoadItem.BasketID = nArticle.basketId;
|
|
25312
|
-
|
|
25360
|
+
_context15.next = 7;
|
|
25313
25361
|
return this.toDoAfterArticleLoaded(nArticle, {}, _objectSpread$c(_objectSpread$c({}, doLoadItem.VariantValues), newConfigValues), 'initializingPartlist', doLoadItem.VariantItemData);
|
|
25314
|
-
case
|
|
25362
|
+
case 7:
|
|
25315
25363
|
article.addPartlistArticle(nArticle);
|
|
25316
|
-
case
|
|
25364
|
+
case 8:
|
|
25317
25365
|
case "end":
|
|
25318
|
-
return
|
|
25366
|
+
return _context15.stop();
|
|
25319
25367
|
}
|
|
25320
|
-
},
|
|
25368
|
+
}, _callee15, this);
|
|
25321
25369
|
}));
|
|
25322
|
-
function loadPartlistArticle(
|
|
25370
|
+
function loadPartlistArticle(_x45, _x46, _x47) {
|
|
25323
25371
|
return _loadPartlistArticle.apply(this, arguments);
|
|
25324
25372
|
}
|
|
25325
25373
|
return loadPartlistArticle;
|
|
25326
|
-
}()
|
|
25374
|
+
}()
|
|
25375
|
+
}, {
|
|
25376
|
+
key: "partlistArticleInitData",
|
|
25377
|
+
value: function partlistArticleInitData(article, doLoadItem) {
|
|
25378
|
+
//jetzt Artikel laden und zur Kollektion hinzufügen
|
|
25379
|
+
return {
|
|
25380
|
+
plannerBasketID: article.basketId,
|
|
25381
|
+
//Bei Ekornes gibt es Partlistartikels mit SVGs - Damit die BasketID im Plener weiter gültig ist, wird hier die Originale BasketID gemerkt.
|
|
25382
|
+
quantity: doLoadItem.Quantity,
|
|
25383
|
+
variantValues: article.getArticleJsonVariantValues(),
|
|
25384
|
+
//Objektstruktur
|
|
25385
|
+
relatedToBasketId: article.basketId,
|
|
25386
|
+
parentArticle: article,
|
|
25387
|
+
isPartlistArticle: true,
|
|
25388
|
+
ruleDesc: doLoadItem.RuleDesc,
|
|
25389
|
+
ruleDesc_locales: doLoadItem.RuleDesc_locales,
|
|
25390
|
+
basketId: doLoadItem.BasketID,
|
|
25391
|
+
partlistRule: doLoadItem.PartlistRule,
|
|
25392
|
+
retailArticleNr: doLoadItem.RetailArticleNr,
|
|
25393
|
+
retailPrefix: doLoadItem.RetailPrefix,
|
|
25394
|
+
configArticleCodex: doLoadItem.RetailArticleNr,
|
|
25395
|
+
supplierOrderCodex: doLoadItem.SupplierOrderCodex,
|
|
25396
|
+
initDecisions: doLoadItem.initDecisions,
|
|
25397
|
+
partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
|
|
25398
|
+
optionsForPrint: doLoadItem.optionsForPrint,
|
|
25399
|
+
optionImgForPrint: doLoadItem.optionImgForPrint,
|
|
25400
|
+
catalogCodex: doLoadItem.CatalogCodex
|
|
25401
|
+
};
|
|
25402
|
+
}
|
|
25403
|
+
/**************************************** Querkontrollen über mehrere Article deshalb hier im ArticleHandler ********************************************************************************/
|
|
25327
25404
|
}, {
|
|
25328
25405
|
key: "evalOpvsOnOpvsConstructionRules",
|
|
25329
25406
|
value: function evalOpvsOnOpvsConstructionRules(article) {
|
|
@@ -25568,31 +25645,31 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25568
25645
|
}, {
|
|
25569
25646
|
key: "triggerShelfplannerVisibility",
|
|
25570
25647
|
value: function () {
|
|
25571
|
-
var _triggerShelfplannerVisibility = _asyncToGenerator(
|
|
25648
|
+
var _triggerShelfplannerVisibility = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(artices, gridGroup) {
|
|
25572
25649
|
var key, _artice$shelfPlanner, artice;
|
|
25573
|
-
return _regeneratorRuntime.wrap(function
|
|
25574
|
-
while (1) switch (
|
|
25650
|
+
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
25651
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
25575
25652
|
case 0:
|
|
25576
|
-
|
|
25653
|
+
_context16.t0 = _regeneratorRuntime.keys(artices);
|
|
25577
25654
|
case 1:
|
|
25578
|
-
if ((
|
|
25579
|
-
|
|
25655
|
+
if ((_context16.t1 = _context16.t0()).done) {
|
|
25656
|
+
_context16.next = 8;
|
|
25580
25657
|
break;
|
|
25581
25658
|
}
|
|
25582
|
-
key =
|
|
25659
|
+
key = _context16.t1.value;
|
|
25583
25660
|
artice = artices[key];
|
|
25584
|
-
|
|
25661
|
+
_context16.next = 6;
|
|
25585
25662
|
return (_artice$shelfPlanner = artice.shelfPlanner) === null || _artice$shelfPlanner === void 0 ? void 0 : _artice$shelfPlanner.triggerVisibility(gridGroup);
|
|
25586
25663
|
case 6:
|
|
25587
|
-
|
|
25664
|
+
_context16.next = 1;
|
|
25588
25665
|
break;
|
|
25589
25666
|
case 8:
|
|
25590
25667
|
case "end":
|
|
25591
|
-
return
|
|
25668
|
+
return _context16.stop();
|
|
25592
25669
|
}
|
|
25593
|
-
},
|
|
25670
|
+
}, _callee16);
|
|
25594
25671
|
}));
|
|
25595
|
-
function triggerShelfplannerVisibility(
|
|
25672
|
+
function triggerShelfplannerVisibility(_x48, _x49) {
|
|
25596
25673
|
return _triggerShelfplannerVisibility.apply(this, arguments);
|
|
25597
25674
|
}
|
|
25598
25675
|
return triggerShelfplannerVisibility;
|
|
@@ -25838,21 +25915,21 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25838
25915
|
}, {
|
|
25839
25916
|
key: "correctPartlistArticlesByGlobalRules",
|
|
25840
25917
|
value: (function () {
|
|
25841
|
-
var _correctPartlistArticlesByGlobalRules = _asyncToGenerator(
|
|
25918
|
+
var _correctPartlistArticlesByGlobalRules = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(set, partlistArticlesToLoad, bundleRules, doChangeRetailArticleNumbers) {
|
|
25842
25919
|
var _loop2, i, article;
|
|
25843
|
-
return _regeneratorRuntime.wrap(function
|
|
25844
|
-
while (1) switch (
|
|
25920
|
+
return _regeneratorRuntime.wrap(function _callee17$(_context18) {
|
|
25921
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
25845
25922
|
case 0:
|
|
25846
25923
|
if (bundleRules) partlistArticlesToLoad = this.bundlePartlistArticles(partlistArticlesToLoad, bundleRules, set.getDivaArticles());
|
|
25847
25924
|
//Correct RetailArticleNumbers
|
|
25848
25925
|
if (!(doChangeRetailArticleNumbers !== null && doChangeRetailArticleNumbers !== void 0 && doChangeRetailArticleNumbers.doChange && doChangeRetailArticleNumbers.retailArticleRules)) {
|
|
25849
|
-
|
|
25926
|
+
_context18.next = 9;
|
|
25850
25927
|
break;
|
|
25851
25928
|
}
|
|
25852
25929
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2(i) {
|
|
25853
25930
|
var rule;
|
|
25854
|
-
return _regeneratorRuntime.wrap(function _loop2$(
|
|
25855
|
-
while (1) switch (
|
|
25931
|
+
return _regeneratorRuntime.wrap(function _loop2$(_context17) {
|
|
25932
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
25856
25933
|
case 0:
|
|
25857
25934
|
//Run through articleCodexes to repair:
|
|
25858
25935
|
rule = doChangeRetailArticleNumbers.retailArticleRules.find(function (item) {
|
|
@@ -25864,34 +25941,34 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
25864
25941
|
}
|
|
25865
25942
|
case 2:
|
|
25866
25943
|
case "end":
|
|
25867
|
-
return
|
|
25944
|
+
return _context17.stop();
|
|
25868
25945
|
}
|
|
25869
25946
|
}, _loop2);
|
|
25870
25947
|
});
|
|
25871
25948
|
i = 0;
|
|
25872
25949
|
case 4:
|
|
25873
25950
|
if (!(i < partlistArticlesToLoad.length)) {
|
|
25874
|
-
|
|
25951
|
+
_context18.next = 9;
|
|
25875
25952
|
break;
|
|
25876
25953
|
}
|
|
25877
|
-
return
|
|
25954
|
+
return _context18.delegateYield(_loop2(i), "t0", 6);
|
|
25878
25955
|
case 6:
|
|
25879
25956
|
i++;
|
|
25880
|
-
|
|
25957
|
+
_context18.next = 4;
|
|
25881
25958
|
break;
|
|
25882
25959
|
case 9:
|
|
25883
25960
|
article = Object.values(set.getDivaArticles()).find(function (article) {
|
|
25884
25961
|
return article.hasPartlistArticle && !article.deleted;
|
|
25885
25962
|
});
|
|
25886
|
-
|
|
25963
|
+
_context18.next = 12;
|
|
25887
25964
|
return this.loadPartlistArticles(partlistArticlesToLoad, article, {});
|
|
25888
25965
|
case 12:
|
|
25889
25966
|
case "end":
|
|
25890
|
-
return
|
|
25967
|
+
return _context18.stop();
|
|
25891
25968
|
}
|
|
25892
|
-
},
|
|
25969
|
+
}, _callee17, this);
|
|
25893
25970
|
}));
|
|
25894
|
-
function correctPartlistArticlesByGlobalRules(
|
|
25971
|
+
function correctPartlistArticlesByGlobalRules(_x50, _x51, _x52, _x53) {
|
|
25895
25972
|
return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
|
|
25896
25973
|
}
|
|
25897
25974
|
return correctPartlistArticlesByGlobalRules;
|
|
@@ -26851,7 +26928,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
26851
26928
|
return updateConfig;
|
|
26852
26929
|
});
|
|
26853
26930
|
_defineProperty(this, "updateCfgValuesByPlanner", /*#__PURE__*/function () {
|
|
26854
|
-
var _ref = _asyncToGenerator(
|
|
26931
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(optionHandler, repairVariantValuesAndPlanner, partListBundleRules, doChangeRetailArticleNumbers) {
|
|
26855
26932
|
var _article2;
|
|
26856
26933
|
var partlistArticlesToLoad, optionHandlerArr, article, loadPlas, _loop, i;
|
|
26857
26934
|
return _regeneratorRuntime.wrap(function _callee$(_context2) {
|
|
@@ -27467,7 +27544,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27467
27544
|
}, {
|
|
27468
27545
|
key: "getDimensionPerVariant",
|
|
27469
27546
|
value: function () {
|
|
27470
|
-
var _getDimensionPerVariant = _asyncToGenerator(
|
|
27547
|
+
var _getDimensionPerVariant = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
27471
27548
|
var dimensions, _iterator, _step, article, _iterator2, _step2, dimensionId, dimension;
|
|
27472
27549
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
27473
27550
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -27973,7 +28050,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27973
28050
|
}, {
|
|
27974
28051
|
key: "initializeDoorPlanner",
|
|
27975
28052
|
value: function () {
|
|
27976
|
-
var _initializeDoorPlanner = _asyncToGenerator(
|
|
28053
|
+
var _initializeDoorPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(j3D, article) {
|
|
27977
28054
|
var _yield$import, DoorPlanner;
|
|
27978
28055
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
27979
28056
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -27983,7 +28060,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
27983
28060
|
break;
|
|
27984
28061
|
}
|
|
27985
28062
|
_context4.next = 3;
|
|
27986
|
-
return import('./DoorPlanner-
|
|
28063
|
+
return import('./DoorPlanner-9e3b1dff.js');
|
|
27987
28064
|
case 3:
|
|
27988
28065
|
_yield$import = _context4.sent;
|
|
27989
28066
|
DoorPlanner = _yield$import["default"];
|
|
@@ -28349,7 +28426,7 @@ var DivaProductHandler = /*#__PURE__*/function () {
|
|
|
28349
28426
|
}, {
|
|
28350
28427
|
key: "loadProductsOfSets",
|
|
28351
28428
|
value: function () {
|
|
28352
|
-
var _loadProductsOfSets = _asyncToGenerator(
|
|
28429
|
+
var _loadProductsOfSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(orderSets, involvedSetIds) {
|
|
28353
28430
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
28354
28431
|
while (1) switch (_context.prev = _context.next) {
|
|
28355
28432
|
case 0:
|
|
@@ -28366,7 +28443,7 @@ var DivaProductHandler = /*#__PURE__*/function () {
|
|
|
28366
28443
|
}, {
|
|
28367
28444
|
key: "updateProducts",
|
|
28368
28445
|
value: function () {
|
|
28369
|
-
var _updateProducts = _asyncToGenerator(
|
|
28446
|
+
var _updateProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(set, from, productId) {
|
|
28370
28447
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
28371
28448
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28372
28449
|
case 0:
|
|
@@ -28496,7 +28573,7 @@ var DivaProductHandler = /*#__PURE__*/function () {
|
|
|
28496
28573
|
}, {
|
|
28497
28574
|
key: "checkQuantitySteps",
|
|
28498
28575
|
value: function () {
|
|
28499
|
-
var _checkQuantitySteps = _asyncToGenerator(
|
|
28576
|
+
var _checkQuantitySteps = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, from, productId) {
|
|
28500
28577
|
var articles, somethingChanged, key, product, currentQuantity, deltaQuantity, whatToDo, article;
|
|
28501
28578
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
28502
28579
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29049,7 +29126,7 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
29049
29126
|
}, {
|
|
29050
29127
|
key: "getSummaryItems",
|
|
29051
29128
|
value: function () {
|
|
29052
|
-
var _getSummaryItems = _asyncToGenerator(
|
|
29129
|
+
var _getSummaryItems = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(sets, doConfigure, doAllowSetPlanner) {
|
|
29053
29130
|
var ret, _key5, set, items, type;
|
|
29054
29131
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
29055
29132
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29427,7 +29504,7 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
29427
29504
|
}, {
|
|
29428
29505
|
key: "getVariantsSummary",
|
|
29429
29506
|
value: function () {
|
|
29430
|
-
var _getVariantsSummary = _asyncToGenerator(
|
|
29507
|
+
var _getVariantsSummary = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(doConfigure, set) {
|
|
29431
29508
|
var summaryVariants, _yield$DivaFavorites$, variants, disabled, singleOptions, catalogData, _loop2, i;
|
|
29432
29509
|
return _regeneratorRuntime.wrap(function _callee3$(_context5) {
|
|
29433
29510
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -29512,7 +29589,7 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
29512
29589
|
disabled: isDisabled,
|
|
29513
29590
|
variantValues: result,
|
|
29514
29591
|
onClick: function () {
|
|
29515
|
-
var _onClick = _asyncToGenerator(
|
|
29592
|
+
var _onClick = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
29516
29593
|
var basketId;
|
|
29517
29594
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
29518
29595
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29649,7 +29726,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29649
29726
|
}, {
|
|
29650
29727
|
key: "getVariantsForSummary",
|
|
29651
29728
|
value: function () {
|
|
29652
|
-
var _getVariantsForSummary = _asyncToGenerator(
|
|
29729
|
+
var _getVariantsForSummary = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set) {
|
|
29653
29730
|
var _set$allVariantsCache;
|
|
29654
29731
|
var variants;
|
|
29655
29732
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -29690,7 +29767,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
29690
29767
|
}, {
|
|
29691
29768
|
key: "getAllValidVariants",
|
|
29692
29769
|
value: function () {
|
|
29693
|
-
var _getAllValidVariants = _asyncToGenerator(
|
|
29770
|
+
var _getAllValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(set) {
|
|
29694
29771
|
var variants, articles, setHashes, variantId, origConfig, i, variantForTargetArticles, variantIsValid, targetArtcle, variantValues, currentConfig, configVariantValues, basketId, j, config, opt, opv, _basketId, variant, values, _loop, _opt, setHash, reservedId;
|
|
29695
29772
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
29696
29773
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30101,7 +30178,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
30101
30178
|
}, {
|
|
30102
30179
|
key: "getValidVariants",
|
|
30103
30180
|
value: function () {
|
|
30104
|
-
var _getValidVariants = _asyncToGenerator(
|
|
30181
|
+
var _getValidVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, useCache) {
|
|
30105
30182
|
var allvariants, validVariants, i;
|
|
30106
30183
|
return _regeneratorRuntime.wrap(function _callee3$(_context4) {
|
|
30107
30184
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -30141,7 +30218,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
30141
30218
|
}, {
|
|
30142
30219
|
key: "handleFavorites",
|
|
30143
30220
|
value: function () {
|
|
30144
|
-
var _handleFavorites = _asyncToGenerator(
|
|
30221
|
+
var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(set, mode, actBasket, saveToBasketWrapper, doConfigure, updatePlanner, actions) {
|
|
30145
30222
|
var variantData, variants, i, _set$i18n3, variant, image, basketId, result;
|
|
30146
30223
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
30147
30224
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -30245,7 +30322,7 @@ var DivaFavoritesHandler = /*#__PURE__*/function () {
|
|
|
30245
30322
|
}, {
|
|
30246
30323
|
key: "saveConfigVariantsInBasket",
|
|
30247
30324
|
value: function () {
|
|
30248
|
-
var _saveConfigVariantsInBasket = _asyncToGenerator(
|
|
30325
|
+
var _saveConfigVariantsInBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(set, basket, variant, repairOnly) {
|
|
30249
30326
|
var _hQRenderScript, _basket$OrderSets$set, _basket$OrderSets$set2;
|
|
30250
30327
|
var setindex, setImage, urlToPlanning2D, hQRenderScript, plannerData, promises, _yield$Promise$all, _yield$Promise$all2, i, optionsSorted, variantValues, _i3, opt, key, targetArticle, configVariant;
|
|
30251
30328
|
return _regeneratorRuntime.wrap(function _callee5$(_context6) {
|
|
@@ -30661,7 +30738,8 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30661
30738
|
groupedGrids.push({
|
|
30662
30739
|
addToSpecificTabGroup: group.addToTabgroup ? (_configTree$getTabgro = configTree.getTabgroupKeyByOptionCodex('OPT' + group.addToTabgroup)) !== null && _configTree$getTabgro !== void 0 ? _configTree$getTabgro : 'ShelfPlanner' : 'ShelfPlanner',
|
|
30663
30740
|
grids: [grid],
|
|
30664
|
-
groupName: group.Group
|
|
30741
|
+
groupName: group.Group,
|
|
30742
|
+
forOtherGroups: true
|
|
30665
30743
|
});
|
|
30666
30744
|
}
|
|
30667
30745
|
};
|
|
@@ -30685,7 +30763,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30685
30763
|
var groupId = (_group$groupName = group.groupName) !== null && _group$groupName !== void 0 ? _group$groupName : 'Shelfgroup';
|
|
30686
30764
|
var newConfigStep = this.createConfigStep(set, false, group.groupName, _toConsumableArray(new Set(group.grids.map(function (g) {
|
|
30687
30765
|
return g.basketId;
|
|
30688
|
-
}))), group.groupName, 'BasketId', groupId, configTree, false, group.grids[0].getShelfParentShelfId(), group.grids[0].getRequiredWarning((_set$WebConfig2 = set.WebConfig) === null || _set$WebConfig2 === void 0 ? void 0 : _set$WebConfig2.language), true, set.configAccessoiresInAccessoireStep, undefined, undefined, 'SHELFPLANNER');
|
|
30766
|
+
}))), group.groupName, 'BasketId', groupId, configTree, false, group.grids[0].getShelfParentShelfId(), group.grids[0].getRequiredWarning((_set$WebConfig2 = set.WebConfig) === null || _set$WebConfig2 === void 0 ? void 0 : _set$WebConfig2.language), true, set.configAccessoiresInAccessoireStep, undefined, undefined, group.forOtherGroups ? 'SHELFPLANNER' : undefined);
|
|
30689
30767
|
configTree.addConfigStep(tabgroupKey, group.groupName, group.groupName, newConfigStep);
|
|
30690
30768
|
}
|
|
30691
30769
|
}
|
|
@@ -30698,8 +30776,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30698
30776
|
if (ops && basketId && parentCodex && ((_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.optionCodex) !== parentCodex) {
|
|
30699
30777
|
var article = set.getArticleByBasketId(basketId);
|
|
30700
30778
|
if (article) {
|
|
30779
|
+
var _ops$visibleOptionVal;
|
|
30701
30780
|
if (!!article.getArticleOptionState(ops.option.parentOptionCodex).isDifferentOption) return true;
|
|
30702
|
-
var rul = ops.visibleOptionValues[Object.keys(ops.visibleOptionValues)[0]].rul;
|
|
30781
|
+
var rul = (_ops$visibleOptionVal = ops.visibleOptionValues[Object.keys(ops.visibleOptionValues)[0]]) === null || _ops$visibleOptionVal === void 0 ? void 0 : _ops$visibleOptionVal.rul;
|
|
30703
30782
|
if (rul) {
|
|
30704
30783
|
var parentOptions = DivaUtils.getOptionsByRule(rul);
|
|
30705
30784
|
return !!parentOptions.find(function (o) {
|
|
@@ -30765,7 +30844,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30765
30844
|
}, {
|
|
30766
30845
|
key: "getConifgItemsForView",
|
|
30767
30846
|
value: function () {
|
|
30768
|
-
var _getConifgItemsForView = _asyncToGenerator(
|
|
30847
|
+
var _getConifgItemsForView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, configStepKey) {
|
|
30769
30848
|
var optionStatesOfArticles, articles, step, retValues, optionCodex, configItems, selectedItems, optionState, key, _configItem$parent$oc, configItem, configItemsInOPG, retVal, _retVal, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _key, _set$favorites$Varian, _set$favorites, alreadyCalcedVisibleOPVs, i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _i, _configItems;
|
|
30770
30849
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
30771
30850
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31189,7 +31268,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31189
31268
|
return _createClass(DivaSetHandler, [{
|
|
31190
31269
|
key: "createSet",
|
|
31191
31270
|
value: function () {
|
|
31192
|
-
var _createSet = _asyncToGenerator(
|
|
31271
|
+
var _createSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(catalogData, orderSet, initSetState, lastSetToInitialize) {
|
|
31193
31272
|
var set;
|
|
31194
31273
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
31195
31274
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31232,7 +31311,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31232
31311
|
}, {
|
|
31233
31312
|
key: "initOrderLineArticles",
|
|
31234
31313
|
value: function () {
|
|
31235
|
-
var _initOrderLineArticles = _asyncToGenerator(
|
|
31314
|
+
var _initOrderLineArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(set, orderSet) {
|
|
31236
31315
|
var _JSON$parse;
|
|
31237
31316
|
var catalogData, toLoadArticles, previousPartlistArticles, elements, _loop, i, _loop2, basketId, _i, toloadArtilce, newArticle, _i2, _newArticle, parentArticle, _newArticle$shelfPlan, _i3, cellsOfGrid, j, cell, gridIndex, accessoire, doesFit, _i4, _newArticle2$doorPlan, _newArticle2;
|
|
31238
31317
|
return _regeneratorRuntime.wrap(function _callee2$(_context4) {
|
|
@@ -31505,7 +31584,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31505
31584
|
}, {
|
|
31506
31585
|
key: "initSetsByOrderSet",
|
|
31507
31586
|
value: function () {
|
|
31508
|
-
var _initSetsByOrderSet = _asyncToGenerator(
|
|
31587
|
+
var _initSetsByOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(orderSets, initSetState) {
|
|
31509
31588
|
var sets, i, orderSet, _initSetState$updateS;
|
|
31510
31589
|
return _regeneratorRuntime.wrap(function _callee3$(_context5) {
|
|
31511
31590
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -31612,7 +31691,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31612
31691
|
}, {
|
|
31613
31692
|
key: "initSet",
|
|
31614
31693
|
value: function () {
|
|
31615
|
-
var _initSet = _asyncToGenerator(
|
|
31694
|
+
var _initSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(orderSet, initSetState, updateSetImage, lastSetToInitialize) {
|
|
31616
31695
|
var _orderSet$OrderLines, _initSetState$article;
|
|
31617
31696
|
var catalogData, articlesToInitialize, set, params, j, _initSetState$initVar, _catalogData$promoted, variantValues, image;
|
|
31618
31697
|
return _regeneratorRuntime.wrap(function _callee4$(_context6) {
|
|
@@ -31691,7 +31770,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31691
31770
|
}, {
|
|
31692
31771
|
key: "destroyPlannerHandler",
|
|
31693
31772
|
value: (function () {
|
|
31694
|
-
var _destroyPlannerHandler = _asyncToGenerator(
|
|
31773
|
+
var _destroyPlannerHandler = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(set, doDestroy3DHostConnection) {
|
|
31695
31774
|
var result;
|
|
31696
31775
|
return _regeneratorRuntime.wrap(function _callee5$(_context7) {
|
|
31697
31776
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -31736,7 +31815,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31736
31815
|
}, {
|
|
31737
31816
|
key: "addPlannerElement",
|
|
31738
31817
|
value: (function () {
|
|
31739
|
-
var _addPlannerElement = _asyncToGenerator(
|
|
31818
|
+
var _addPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(set, artCodex, initParams, from) {
|
|
31740
31819
|
var newArticle, plannerElement, _set$getArticleByBask;
|
|
31741
31820
|
return _regeneratorRuntime.wrap(function _callee6$(_context8) {
|
|
31742
31821
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -31785,7 +31864,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31785
31864
|
}, {
|
|
31786
31865
|
key: "copyPlannerElement",
|
|
31787
31866
|
value: (function () {
|
|
31788
|
-
var _copyPlannerElement = _asyncToGenerator(
|
|
31867
|
+
var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(set, elementId, copyInfo) {
|
|
31789
31868
|
var allElementsToCopy, articleCopyRelation, newSelectedArticle, i, newArticle;
|
|
31790
31869
|
return _regeneratorRuntime.wrap(function _callee7$(_context9) {
|
|
31791
31870
|
while (1) switch (_context9.prev = _context9.next) {
|
|
@@ -31834,7 +31913,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31834
31913
|
}, {
|
|
31835
31914
|
key: "setValidatedVariantValues",
|
|
31836
31915
|
value: function () {
|
|
31837
|
-
var _setValidatedVariantValues = _asyncToGenerator(
|
|
31916
|
+
var _setValidatedVariantValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(article) {
|
|
31838
31917
|
return _regeneratorRuntime.wrap(function _callee8$(_context10) {
|
|
31839
31918
|
while (1) switch (_context10.prev = _context10.next) {
|
|
31840
31919
|
case 0:
|
|
@@ -31900,7 +31979,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31900
31979
|
}, {
|
|
31901
31980
|
key: "copyArticleByElementId",
|
|
31902
31981
|
value: (function () {
|
|
31903
|
-
var _copyArticleByElementId = _asyncToGenerator(
|
|
31982
|
+
var _copyArticleByElementId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(set, elementId, ignoreOptionsToCopy) {
|
|
31904
31983
|
var origArticle, variantValuesToCopy, i, newArticle;
|
|
31905
31984
|
return _regeneratorRuntime.wrap(function _callee9$(_context11) {
|
|
31906
31985
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -31929,7 +32008,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31929
32008
|
}, {
|
|
31930
32009
|
key: "resetArticle",
|
|
31931
32010
|
value: function () {
|
|
31932
|
-
var _resetArticle = _asyncToGenerator(
|
|
32011
|
+
var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(set, basketId) {
|
|
31933
32012
|
var article;
|
|
31934
32013
|
return _regeneratorRuntime.wrap(function _callee10$(_context12) {
|
|
31935
32014
|
while (1) switch (_context12.prev = _context12.next) {
|
|
@@ -31952,7 +32031,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
31952
32031
|
}, {
|
|
31953
32032
|
key: "addArticleToActSet",
|
|
31954
32033
|
value: function () {
|
|
31955
|
-
var _addArticleToActSet = _asyncToGenerator(
|
|
32034
|
+
var _addArticleToActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(set, articleCodex, initParams, ignorePlanner) {
|
|
31956
32035
|
var from,
|
|
31957
32036
|
newArticle,
|
|
31958
32037
|
_set$getArticleByBask2,
|
|
@@ -32028,7 +32107,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32028
32107
|
}, {
|
|
32029
32108
|
key: "updateAccessoireQuantity",
|
|
32030
32109
|
value: function () {
|
|
32031
|
-
var _updateAccessoireQuantity = _asyncToGenerator(
|
|
32110
|
+
var _updateAccessoireQuantity = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(set, accessoireItem, relatedToBasketId, nQuantity, forceConfigSingle) {
|
|
32032
32111
|
var changed3D, somethingChanged, articleCodex, parentArticle, configSingle, _accessoire$quantity, _accessoire, accessoire, curQuantity, delta, newQuantity;
|
|
32033
32112
|
return _regeneratorRuntime.wrap(function _callee12$(_context14) {
|
|
32034
32113
|
while (1) switch (_context14.prev = _context14.next) {
|
|
@@ -32109,7 +32188,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32109
32188
|
}, {
|
|
32110
32189
|
key: "deleteElementFromSetByElemId",
|
|
32111
32190
|
value: function () {
|
|
32112
|
-
var _deleteElementFromSetByElemId = _asyncToGenerator(
|
|
32191
|
+
var _deleteElementFromSetByElemId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(set, elementId, autoCorrectAVL_AVR, deletionType) {
|
|
32113
32192
|
var article;
|
|
32114
32193
|
return _regeneratorRuntime.wrap(function _callee13$(_context15) {
|
|
32115
32194
|
while (1) switch (_context15.prev = _context15.next) {
|
|
@@ -32146,7 +32225,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32146
32225
|
}, {
|
|
32147
32226
|
key: "deleteElementFromSet",
|
|
32148
32227
|
value: function () {
|
|
32149
|
-
var _deleteElementFromSet = _asyncToGenerator(
|
|
32228
|
+
var _deleteElementFromSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(set, article, autoCorrectAVL_AVR, deletionType, dontReload) {
|
|
32150
32229
|
var _deletedArticle$doorP, _set$CatalogData, _deletedArticle$curPr;
|
|
32151
32230
|
var setId, deletedArticle, articles, key, newSelectedElement, oldTransform, result, _set$getArticleByBask3, elementDeleted;
|
|
32152
32231
|
return _regeneratorRuntime.wrap(function _callee14$(_context16) {
|
|
@@ -32234,7 +32313,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32234
32313
|
}, {
|
|
32235
32314
|
key: "addAccessorieOnShelfPlanner",
|
|
32236
32315
|
value: function () {
|
|
32237
|
-
var _addAccessorieOnShelfPlanner = _asyncToGenerator(
|
|
32316
|
+
var _addAccessorieOnShelfPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(set, gridIndex, cellIndex, parentBasketId, params) {
|
|
32238
32317
|
var parentArticle, articleCodex, accessoire, doesFit;
|
|
32239
32318
|
return _regeneratorRuntime.wrap(function _callee15$(_context17) {
|
|
32240
32319
|
while (1) switch (_context17.prev = _context17.next) {
|
|
@@ -32331,7 +32410,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32331
32410
|
}, {
|
|
32332
32411
|
key: "getFreeShelfGrids",
|
|
32333
32412
|
value: function () {
|
|
32334
|
-
var _getFreeShelfGrids = _asyncToGenerator(
|
|
32413
|
+
var _getFreeShelfGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(set, gridGroup) {
|
|
32335
32414
|
var _article$shelfPlanner;
|
|
32336
32415
|
var articles, article, articleCodex, accessoire, ret;
|
|
32337
32416
|
return _regeneratorRuntime.wrap(function _callee16$(_context18) {
|
|
@@ -32434,7 +32513,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32434
32513
|
}, {
|
|
32435
32514
|
key: "moveShelfItemToGrid",
|
|
32436
32515
|
value: function () {
|
|
32437
|
-
var _moveShelfItemToGrid = _asyncToGenerator(
|
|
32516
|
+
var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(set, accessoireBasketId, parentBasketId, gridName, cellIndex) {
|
|
32438
32517
|
var _oldGrid$Cells$find;
|
|
32439
32518
|
var artices, accessoire, oldParent, newParent, oldGrid, newGrid, index;
|
|
32440
32519
|
return _regeneratorRuntime.wrap(function _callee17$(_context19) {
|
|
@@ -32519,7 +32598,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32519
32598
|
}, {
|
|
32520
32599
|
key: "deleteAccessorieOnShelfPlanner",
|
|
32521
32600
|
value: function () {
|
|
32522
|
-
var _deleteAccessorieOnShelfPlanner = _asyncToGenerator(
|
|
32601
|
+
var _deleteAccessorieOnShelfPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(set, gridIndex, cellIndex, parentBasketId, dontReload) {
|
|
32523
32602
|
var _parentArticle$shelfP2;
|
|
32524
32603
|
var parentArticle, articeToDelete, _parentArticle$shelfP3;
|
|
32525
32604
|
return _regeneratorRuntime.wrap(function _callee18$(_context20) {
|
|
@@ -32553,7 +32632,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32553
32632
|
}, {
|
|
32554
32633
|
key: "updatePlannerTrans",
|
|
32555
32634
|
value: function () {
|
|
32556
|
-
var _updatePlannerTrans = _asyncToGenerator(
|
|
32635
|
+
var _updatePlannerTrans = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(set, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
|
|
32557
32636
|
var updateConfig;
|
|
32558
32637
|
return _regeneratorRuntime.wrap(function _callee19$(_context21) {
|
|
32559
32638
|
while (1) switch (_context21.prev = _context21.next) {
|
|
@@ -32636,7 +32715,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32636
32715
|
}, {
|
|
32637
32716
|
key: "deleteAccessoire",
|
|
32638
32717
|
value: function () {
|
|
32639
|
-
var _deleteAccessoire = _asyncToGenerator(
|
|
32718
|
+
var _deleteAccessoire = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(set, articleCodex, parentBasketId) {
|
|
32640
32719
|
var divaArticles, articlesToDelete, key, articleToDelete, maxQuantity, i;
|
|
32641
32720
|
return _regeneratorRuntime.wrap(function _callee20$(_context22) {
|
|
32642
32721
|
while (1) switch (_context22.prev = _context22.next) {
|
|
@@ -32813,7 +32892,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32813
32892
|
}, {
|
|
32814
32893
|
key: "configSingleIsChanged",
|
|
32815
32894
|
value: (function () {
|
|
32816
|
-
var _configSingleIsChanged = _asyncToGenerator(
|
|
32895
|
+
var _configSingleIsChanged = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(set, newIsConfigSingle, groupedOptions, groupedArticles) {
|
|
32817
32896
|
var _set$getArticleByBask4, variantValues, key;
|
|
32818
32897
|
return _regeneratorRuntime.wrap(function _callee21$(_context23) {
|
|
32819
32898
|
while (1) switch (_context23.prev = _context23.next) {
|
|
@@ -32922,7 +33001,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
32922
33001
|
}, {
|
|
32923
33002
|
key: "loadConfigItemsOfActSetByConfigStepKey",
|
|
32924
33003
|
value: function () {
|
|
32925
|
-
var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(
|
|
33004
|
+
var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(set, configStepKey, visible) {
|
|
32926
33005
|
var _configItems$option;
|
|
32927
33006
|
var optionStatesOfArticle, configItems, paletteType, filterType, stepInfo, contentItemId;
|
|
32928
33007
|
return _regeneratorRuntime.wrap(function _callee22$(_context24) {
|
|
@@ -33001,7 +33080,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33001
33080
|
}, {
|
|
33002
33081
|
key: "variantsEvaluator",
|
|
33003
33082
|
value: (function () {
|
|
33004
|
-
var _variantsEvaluator = _asyncToGenerator(
|
|
33083
|
+
var _variantsEvaluator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(set, configItems, configStepKey, paletteType) {
|
|
33005
33084
|
var _set$WebConfig, _set$CatalogData$getO, _set$ViewConfig, _configItems$;
|
|
33006
33085
|
var calcVariantsForPricePreview, checkForProductsInStock, previewType, _set$CatalogData$show, targetArticles, startTime, variants, endTime;
|
|
33007
33086
|
return _regeneratorRuntime.wrap(function _callee23$(_context25) {
|
|
@@ -33054,7 +33133,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33054
33133
|
}, {
|
|
33055
33134
|
key: "calcVariants",
|
|
33056
33135
|
value: function () {
|
|
33057
|
-
var _calcVariants = _asyncToGenerator(
|
|
33136
|
+
var _calcVariants = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(set, configItems, targetArticles) {
|
|
33058
33137
|
var variantInfo, origConfig, i, item, variantValues, doUseConfigs, key;
|
|
33059
33138
|
return _regeneratorRuntime.wrap(function _callee24$(_context26) {
|
|
33060
33139
|
while (1) switch (_context26.prev = _context26.next) {
|
|
@@ -33142,7 +33221,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33142
33221
|
}, {
|
|
33143
33222
|
key: "updateArticlesOptionStatesOfActSet",
|
|
33144
33223
|
value: (function () {
|
|
33145
|
-
var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(
|
|
33224
|
+
var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
|
|
33146
33225
|
var _Object$keys, _resultPlannerUpdate;
|
|
33147
33226
|
var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, articleCopyRelation, newArticle;
|
|
33148
33227
|
return _regeneratorRuntime.wrap(function _callee25$(_context27) {
|
|
@@ -33328,7 +33407,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33328
33407
|
}, {
|
|
33329
33408
|
key: "updateEdoArticles",
|
|
33330
33409
|
value: function () {
|
|
33331
|
-
var _updateEdoArticles = _asyncToGenerator(
|
|
33410
|
+
var _updateEdoArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(set, edoArticlesToLoad) {
|
|
33332
33411
|
var oldBasketIds, i, article, newArticles, _i5, _i6;
|
|
33333
33412
|
return _regeneratorRuntime.wrap(function _callee26$(_context28) {
|
|
33334
33413
|
while (1) switch (_context28.prev = _context28.next) {
|
|
@@ -33514,7 +33593,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33514
33593
|
}, {
|
|
33515
33594
|
key: "checkVariantData",
|
|
33516
33595
|
value: function () {
|
|
33517
|
-
var _checkVariantData = _asyncToGenerator(
|
|
33596
|
+
var _checkVariantData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(set) {
|
|
33518
33597
|
var somethingChanged, data;
|
|
33519
33598
|
return _regeneratorRuntime.wrap(function _callee27$(_context29) {
|
|
33520
33599
|
while (1) switch (_context29.prev = _context29.next) {
|
|
@@ -33596,7 +33675,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33596
33675
|
}, {
|
|
33597
33676
|
key: "fillOrderLinesAndOrderSets",
|
|
33598
33677
|
value: function () {
|
|
33599
|
-
var _fillOrderLinesAndOrderSets = _asyncToGenerator(
|
|
33678
|
+
var _fillOrderLinesAndOrderSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(sets, divaBasketHandler, repairOnly, setPlanner, returnTo) {
|
|
33600
33679
|
var _set$WebConfig2;
|
|
33601
33680
|
var orderSets, basketData, set, setPosNr, price, key, _set$basketConfigVari, _OrderLinesOfActSet$, _set, catalogData, articles, orderLineInitInfos, newOrderSet, OrderLinesOfActSet, ret, _key2, i, _basketData$OrderSets, _basketData$SetPlanne, oderSetsIsInActPlanning, setId, j;
|
|
33602
33681
|
return _regeneratorRuntime.wrap(function _callee28$(_context30) {
|
|
@@ -33790,7 +33869,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33790
33869
|
}, {
|
|
33791
33870
|
key: "getOrderSet",
|
|
33792
33871
|
value: function () {
|
|
33793
|
-
var _getOrderSet = _asyncToGenerator(
|
|
33872
|
+
var _getOrderSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(set, catalogData, posNr, divaNr, repairOnly, returnTo) {
|
|
33794
33873
|
var _hqRenderScript, _set$basketConfigVari2, _set$basketConfigVari3;
|
|
33795
33874
|
var dontGenerateImages, orderSet, GroupType, plannerData, setImage, urlToPlanning2D, alternateSetImages, hqRenderScript, promise3D, promise2D, promise3DAlternate, _yield$Promise$all, _yield$Promise$all2, promiseHQRenderScript, _yield$Promise$all3, _yield$Promise$all4, plannerWarnings, bruttoPrice;
|
|
33796
33875
|
return _regeneratorRuntime.wrap(function _callee29$(_context31) {
|
|
@@ -33913,7 +33992,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33913
33992
|
}, {
|
|
33914
33993
|
key: "getSetImage",
|
|
33915
33994
|
value: (function () {
|
|
33916
|
-
var _getSetImage = _asyncToGenerator(
|
|
33995
|
+
var _getSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(set, overwriteLastSavedRendering) {
|
|
33917
33996
|
var setImage, is3D;
|
|
33918
33997
|
return _regeneratorRuntime.wrap(function _callee30$(_context32) {
|
|
33919
33998
|
while (1) switch (_context32.prev = _context32.next) {
|
|
@@ -33953,7 +34032,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
33953
34032
|
}, {
|
|
33954
34033
|
key: "getHQRenderScript",
|
|
33955
34034
|
value: function () {
|
|
33956
|
-
var _getHQRenderScript = _asyncToGenerator(
|
|
34035
|
+
var _getHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(set, divaNr) {
|
|
33957
34036
|
var is3D, hqRenderScript, createdHQRenderScript;
|
|
33958
34037
|
return _regeneratorRuntime.wrap(function _callee31$(_context33) {
|
|
33959
34038
|
while (1) switch (_context33.prev = _context33.next) {
|
|
@@ -34005,7 +34084,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34005
34084
|
}, {
|
|
34006
34085
|
key: "getAlternateSetImages",
|
|
34007
34086
|
value: (function () {
|
|
34008
|
-
var _getAlternateSetImages = _asyncToGenerator(
|
|
34087
|
+
var _getAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(set) {
|
|
34009
34088
|
var is2D, catalogData, setImages;
|
|
34010
34089
|
return _regeneratorRuntime.wrap(function _callee32$(_context34) {
|
|
34011
34090
|
while (1) switch (_context34.prev = _context34.next) {
|
|
@@ -34046,7 +34125,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34046
34125
|
}, {
|
|
34047
34126
|
key: "get2DSetImage",
|
|
34048
34127
|
value: function () {
|
|
34049
|
-
var _get2DSetImage = _asyncToGenerator(
|
|
34128
|
+
var _get2DSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(set) {
|
|
34050
34129
|
var urlToPlanning2D, catalogData, planning2DAsJPGBase64;
|
|
34051
34130
|
return _regeneratorRuntime.wrap(function _callee33$(_context35) {
|
|
34052
34131
|
while (1) switch (_context35.prev = _context35.next) {
|
|
@@ -34094,7 +34173,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34094
34173
|
}, {
|
|
34095
34174
|
key: "loadProductsOfSets",
|
|
34096
34175
|
value: function () {
|
|
34097
|
-
var _loadProductsOfSets = _asyncToGenerator(
|
|
34176
|
+
var _loadProductsOfSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(orderSets, involvedSetIds) {
|
|
34098
34177
|
return _regeneratorRuntime.wrap(function _callee34$(_context36) {
|
|
34099
34178
|
while (1) switch (_context36.prev = _context36.next) {
|
|
34100
34179
|
case 0:
|
|
@@ -34143,7 +34222,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34143
34222
|
}, {
|
|
34144
34223
|
key: "addOrderSetArticlesToExistingSet",
|
|
34145
34224
|
value: function () {
|
|
34146
|
-
var _addOrderSetArticlesToExistingSet = _asyncToGenerator(
|
|
34225
|
+
var _addOrderSetArticlesToExistingSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(set, orderSet, lastSetToInitialize) {
|
|
34147
34226
|
return _regeneratorRuntime.wrap(function _callee35$(_context37) {
|
|
34148
34227
|
while (1) switch (_context37.prev = _context37.next) {
|
|
34149
34228
|
case 0:
|
|
@@ -34278,7 +34357,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34278
34357
|
}, {
|
|
34279
34358
|
key: "initializeBasket",
|
|
34280
34359
|
value: function () {
|
|
34281
|
-
var _initializeBasket = _asyncToGenerator(
|
|
34360
|
+
var _initializeBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(api) {
|
|
34282
34361
|
var _this$plannerConfig$s3, _this$plannerConfig$s5, _api$getPlannerType, _this$plannerConfig$r;
|
|
34283
34362
|
var returnSuccessfully, divaNr, i, os, _params$customFieldsT, params, _this$plannerConfig$h, _this$plannerConfig$c, _this$plannerConfig$c2, _this$plannerConfig$c3, _result$data$, result, _result$data$2, _this$plannerConfig$s4, _this$plannerConfig$a4, _api$getI18n, _api$getI18n2, successfully;
|
|
34284
34363
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -34489,7 +34568,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34489
34568
|
}, {
|
|
34490
34569
|
key: "initProductId",
|
|
34491
34570
|
value: function () {
|
|
34492
|
-
var _initProductId = _asyncToGenerator(
|
|
34571
|
+
var _initProductId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(api, productId, keepOldDivaNr) {
|
|
34493
34572
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
34494
34573
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34495
34574
|
case 0:
|
|
@@ -34511,7 +34590,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34511
34590
|
}, {
|
|
34512
34591
|
key: "tryInitFirstCatalog",
|
|
34513
34592
|
value: function () {
|
|
34514
|
-
var _tryInitFirstCatalog = _asyncToGenerator(
|
|
34593
|
+
var _tryInitFirstCatalog = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(api) {
|
|
34515
34594
|
var _catalogs$Catalogs$, _catalogs$Catalogs$2;
|
|
34516
34595
|
var accounts, catalogs;
|
|
34517
34596
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -34557,7 +34636,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34557
34636
|
}, {
|
|
34558
34637
|
key: "createNewDivaNr",
|
|
34559
34638
|
value: function () {
|
|
34560
|
-
var _createNewDivaNr = _asyncToGenerator(
|
|
34639
|
+
var _createNewDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(api) {
|
|
34561
34640
|
var _this$plannerConfig$s6;
|
|
34562
34641
|
var ret;
|
|
34563
34642
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
@@ -34592,7 +34671,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34592
34671
|
}, {
|
|
34593
34672
|
key: "initBasket",
|
|
34594
34673
|
value: function () {
|
|
34595
|
-
var _initBasket = _asyncToGenerator(
|
|
34674
|
+
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(api, divaNr, dataFromApi, keepOldDivaNr, origProductId) {
|
|
34596
34675
|
var _dataFromApi$basket;
|
|
34597
34676
|
var basketFromAPI, basket, i, _basket$SetPlannerInf, oldSetId, newSetId, foundIndex, newDivaNr, _this$plannerConfig$s7, _dataFromApi$NewestDo, _i;
|
|
34598
34677
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -34739,7 +34818,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34739
34818
|
}, {
|
|
34740
34819
|
key: "loadBasketByCatalogCodex",
|
|
34741
34820
|
value: function () {
|
|
34742
|
-
var _loadBasketByCatalogCodex = _asyncToGenerator(
|
|
34821
|
+
var _loadBasketByCatalogCodex = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(api) {
|
|
34743
34822
|
var _this$plannerConfig$s8;
|
|
34744
34823
|
var newBasket, _this$baskets$this$di;
|
|
34745
34824
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
@@ -34799,7 +34878,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34799
34878
|
}, {
|
|
34800
34879
|
key: "loadBasketByDivaNr",
|
|
34801
34880
|
value: function () {
|
|
34802
|
-
var _loadBasketByDivaNr = _asyncToGenerator(
|
|
34881
|
+
var _loadBasketByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(api, divaNr, keepOldDivaNr, origProductId) {
|
|
34803
34882
|
var variantData;
|
|
34804
34883
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
34805
34884
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -34837,7 +34916,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34837
34916
|
}, {
|
|
34838
34917
|
key: "loadBasketByCustomProductId",
|
|
34839
34918
|
value: function () {
|
|
34840
|
-
var _loadBasketByCustomProductId = _asyncToGenerator(
|
|
34919
|
+
var _loadBasketByCustomProductId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(api, key, productId, fields) {
|
|
34841
34920
|
var variantData;
|
|
34842
34921
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
34843
34922
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -34875,7 +34954,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34875
34954
|
}, {
|
|
34876
34955
|
key: "loadProduct",
|
|
34877
34956
|
value: function () {
|
|
34878
|
-
var _loadProduct = _asyncToGenerator(
|
|
34957
|
+
var _loadProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(api, productId, keepOldDivaNr) {
|
|
34879
34958
|
var result, divaNr, id, successfully;
|
|
34880
34959
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
34881
34960
|
while (1) switch (_context9.prev = _context9.next) {
|
|
@@ -34923,7 +35002,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34923
35002
|
}, {
|
|
34924
35003
|
key: "getProduct",
|
|
34925
35004
|
value: function () {
|
|
34926
|
-
var _getProduct = _asyncToGenerator(
|
|
35005
|
+
var _getProduct = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(api, productId) {
|
|
34927
35006
|
var result;
|
|
34928
35007
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
34929
35008
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -34959,7 +35038,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34959
35038
|
}, {
|
|
34960
35039
|
key: "createNewBasket",
|
|
34961
35040
|
value: function () {
|
|
34962
|
-
var _createNewBasket = _asyncToGenerator(
|
|
35041
|
+
var _createNewBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(api, initObject, divaNr, lang) {
|
|
34963
35042
|
var setId, orderSet, basketInitObejct, basket;
|
|
34964
35043
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
34965
35044
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -35022,7 +35101,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35022
35101
|
}, {
|
|
35023
35102
|
key: "saveToBasket",
|
|
35024
35103
|
value: function () {
|
|
35025
|
-
var _saveToBasket = _asyncToGenerator(
|
|
35104
|
+
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(api, actBasket, returnTo) {
|
|
35026
35105
|
var _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
|
|
35027
35106
|
var response;
|
|
35028
35107
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
@@ -35188,7 +35267,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35188
35267
|
}, {
|
|
35189
35268
|
key: "initWWSClient",
|
|
35190
35269
|
value: function () {
|
|
35191
|
-
var _initWWSClient = _asyncToGenerator(
|
|
35270
|
+
var _initWWSClient = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(wwsClient) {
|
|
35192
35271
|
var _yield$import, PfisterWWSHandler, _yield$import2, LiviqueWWSHandler, _yield$import3, SeriousWWSHandler, _yield$import4, ProductWWSHandler, _yield$import5, StandardWWSHandler;
|
|
35193
35272
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
35194
35273
|
while (1) switch (_context13.prev = _context13.next) {
|
|
@@ -35198,7 +35277,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35198
35277
|
break;
|
|
35199
35278
|
case 3:
|
|
35200
35279
|
_context13.next = 5;
|
|
35201
|
-
return import('./PfisterWWSHandler-
|
|
35280
|
+
return import('./PfisterWWSHandler-fea10934.js');
|
|
35202
35281
|
case 5:
|
|
35203
35282
|
_yield$import = _context13.sent;
|
|
35204
35283
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -35206,7 +35285,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35206
35285
|
return _context13.abrupt("break", 33);
|
|
35207
35286
|
case 9:
|
|
35208
35287
|
_context13.next = 11;
|
|
35209
|
-
return import('./LiviqueWWSHandler-
|
|
35288
|
+
return import('./LiviqueWWSHandler-5bbc4f4c.js');
|
|
35210
35289
|
case 11:
|
|
35211
35290
|
_yield$import2 = _context13.sent;
|
|
35212
35291
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -35214,7 +35293,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35214
35293
|
return _context13.abrupt("break", 33);
|
|
35215
35294
|
case 15:
|
|
35216
35295
|
_context13.next = 17;
|
|
35217
|
-
return import('./SeriousBasketHandler-
|
|
35296
|
+
return import('./SeriousBasketHandler-41c875f2.js');
|
|
35218
35297
|
case 17:
|
|
35219
35298
|
_yield$import3 = _context13.sent;
|
|
35220
35299
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -35222,7 +35301,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35222
35301
|
return _context13.abrupt("break", 33);
|
|
35223
35302
|
case 21:
|
|
35224
35303
|
_context13.next = 23;
|
|
35225
|
-
return import('./ProductBasketHandler-
|
|
35304
|
+
return import('./ProductBasketHandler-ce45363b.js');
|
|
35226
35305
|
case 23:
|
|
35227
35306
|
_yield$import4 = _context13.sent;
|
|
35228
35307
|
ProductWWSHandler = _yield$import4["default"];
|
|
@@ -35230,7 +35309,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35230
35309
|
return _context13.abrupt("break", 33);
|
|
35231
35310
|
case 27:
|
|
35232
35311
|
_context13.next = 29;
|
|
35233
|
-
return import('./StandardWWSHandler-
|
|
35312
|
+
return import('./StandardWWSHandler-26c6ecb8.js');
|
|
35234
35313
|
case 29:
|
|
35235
35314
|
_yield$import5 = _context13.sent;
|
|
35236
35315
|
StandardWWSHandler = _yield$import5["default"];
|
|
@@ -36066,6 +36145,17 @@ var Rendering = /*#__PURE__*/function () {
|
|
|
36066
36145
|
value: function getUnityFOV() {
|
|
36067
36146
|
return parseFloat(this.uiInfo['CAM']['FOV']);
|
|
36068
36147
|
}
|
|
36148
|
+
}, {
|
|
36149
|
+
key: "get3DDimInfo",
|
|
36150
|
+
value: function get3DDimInfo() {
|
|
36151
|
+
if (this.uiInfo && this.uiInfo['DIM3D']) return this.uiInfo['DIM3D'];
|
|
36152
|
+
LOG$5.warn('No dimension infos returned');
|
|
36153
|
+
return {
|
|
36154
|
+
w: -1,
|
|
36155
|
+
h: -1,
|
|
36156
|
+
d: -1
|
|
36157
|
+
};
|
|
36158
|
+
}
|
|
36069
36159
|
|
|
36070
36160
|
//elementId has to be a string because when working with accs in shelf planner an element id is the combination of parentElementId.rasterHeight.gridId
|
|
36071
36161
|
//It returns the distance of an element to the ground in cm
|
|
@@ -36090,7 +36180,11 @@ var Rendering = /*#__PURE__*/function () {
|
|
|
36090
36180
|
}));
|
|
36091
36181
|
}
|
|
36092
36182
|
}
|
|
36093
|
-
|
|
36183
|
+
}, {
|
|
36184
|
+
key: "hasUIInfo",
|
|
36185
|
+
value: function hasUIInfo() {
|
|
36186
|
+
return this.uiInfo != '';
|
|
36187
|
+
}
|
|
36094
36188
|
/**
|
|
36095
36189
|
* This function adds a blobImage to the rendering .
|
|
36096
36190
|
* It is parsed to a base64 image.
|
|
@@ -36480,7 +36574,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36480
36574
|
}, {
|
|
36481
36575
|
key: "initializeViewPoint",
|
|
36482
36576
|
value: (function () {
|
|
36483
|
-
var _initializeViewPoint = _asyncToGenerator(
|
|
36577
|
+
var _initializeViewPoint = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(standardWhiteRoom) {
|
|
36484
36578
|
var _this$connectionHandl;
|
|
36485
36579
|
var res, info;
|
|
36486
36580
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -36522,7 +36616,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36522
36616
|
}, {
|
|
36523
36617
|
key: "initializeStaticRoomList",
|
|
36524
36618
|
value: (function () {
|
|
36525
|
-
var _initializeStaticRoomList = _asyncToGenerator(
|
|
36619
|
+
var _initializeStaticRoomList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(staticRoomList, catalogMainCategory) {
|
|
36526
36620
|
var roomListMsg;
|
|
36527
36621
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
36528
36622
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -36593,14 +36687,14 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36593
36687
|
}, {
|
|
36594
36688
|
key: "initializeConnection",
|
|
36595
36689
|
value: function () {
|
|
36596
|
-
var _initializeConnection = _asyncToGenerator(
|
|
36690
|
+
var _initializeConnection = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
36597
36691
|
var _this$connectionHandl2;
|
|
36598
36692
|
var _yield$import, Host3DSignalR;
|
|
36599
36693
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
36600
36694
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36601
36695
|
case 0:
|
|
36602
36696
|
_context3.next = 2;
|
|
36603
|
-
return import('./Host3DSignalR-
|
|
36697
|
+
return import('./Host3DSignalR-514ab7ea.js');
|
|
36604
36698
|
case 2:
|
|
36605
36699
|
_yield$import = _context3.sent;
|
|
36606
36700
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -36632,7 +36726,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36632
36726
|
}, {
|
|
36633
36727
|
key: "onConnectionInitialized",
|
|
36634
36728
|
value: function () {
|
|
36635
|
-
var _onConnectionInitialized = _asyncToGenerator(
|
|
36729
|
+
var _onConnectionInitialized = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(params) {
|
|
36636
36730
|
var _this$connectionHandl5;
|
|
36637
36731
|
var i;
|
|
36638
36732
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
@@ -36876,7 +36970,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36876
36970
|
}, {
|
|
36877
36971
|
key: "getLastSavedRendering",
|
|
36878
36972
|
value: (function () {
|
|
36879
|
-
var _getLastSavedRendering = _asyncToGenerator(
|
|
36973
|
+
var _getLastSavedRendering = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
36880
36974
|
var _this$lastSavedRender;
|
|
36881
36975
|
var startTimeWait;
|
|
36882
36976
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -36893,13 +36987,13 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36893
36987
|
startTimeWait = new Date(); //It can happen that a rendering is not in the waitForRenderings stack anymore, but UrlToSavedRendering is not set yet- therefore wait until the url to the rendering is set.
|
|
36894
36988
|
//This happens when two renderings are requested at the same time. First one with mediaType Stream and the second with mediatype TEMP. (Open PDF Viewer directly)
|
|
36895
36989
|
case 4:
|
|
36896
|
-
if (!(this.waitForRenderings.has(this.lastSavedRendering.PlanningHash) || !this.lastSavedRendering.UrlToSavedRendering)) {
|
|
36990
|
+
if (!(this.waitForRenderings.has(this.lastSavedRendering.PlanningHash) || !this.lastSavedRendering.UrlToSavedRendering || !this.lastSavedRendering.hasUIInfo())) {
|
|
36897
36991
|
_context5.next = 12;
|
|
36898
36992
|
break;
|
|
36899
36993
|
}
|
|
36900
36994
|
LOG$4.debug('getLAstSavedRendering - wait here');
|
|
36901
36995
|
_context5.next = 8;
|
|
36902
|
-
return this.delay(
|
|
36996
|
+
return this.delay(50);
|
|
36903
36997
|
case 8:
|
|
36904
36998
|
if (!(new Date().getTime() - startTimeWait.getTime() > RenderSettings.TIMEOUT_WAITFORSAVEDRENDERING_MS)) {
|
|
36905
36999
|
_context5.next = 10;
|
|
@@ -36934,7 +37028,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36934
37028
|
}, {
|
|
36935
37029
|
key: "getLastSavedAlternateRenderings",
|
|
36936
37030
|
value: (function () {
|
|
36937
|
-
var _getLastSavedAlternateRenderings = _asyncToGenerator(
|
|
37031
|
+
var _getLastSavedAlternateRenderings = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
36938
37032
|
var startTimeWait, i;
|
|
36939
37033
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
36940
37034
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -36955,7 +37049,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36955
37049
|
break;
|
|
36956
37050
|
}
|
|
36957
37051
|
case 5:
|
|
36958
|
-
if (!(this.waitForRenderings.has(this.lastSavedAlternateRenderings[i].PlanningHash) || !this.lastSavedAlternateRenderings[i].UrlToSavedRendering)) {
|
|
37052
|
+
if (!(this.waitForRenderings.has(this.lastSavedAlternateRenderings[i].PlanningHash) || !this.lastSavedAlternateRenderings[i].UrlToSavedRendering || !this.lastSavedAlternateRenderings[i].hasUIInfo())) {
|
|
36959
37053
|
_context6.next = 12;
|
|
36960
37054
|
break;
|
|
36961
37055
|
}
|
|
@@ -37049,7 +37143,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37049
37143
|
}, {
|
|
37050
37144
|
key: "request3D",
|
|
37051
37145
|
value: (function () {
|
|
37052
|
-
var _request3D = _asyncToGenerator(
|
|
37146
|
+
var _request3D = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(params) {
|
|
37053
37147
|
var _params$renderRequest, _params$renderRequest2, _params$renderRequest3, _params$renderRequest4, _params$renderRequest5, _params$renderRequest6, _this$viewPointHandle;
|
|
37054
37148
|
var room, newRenderSize, doReloadWholePlanning, planningHash, requestRenderingFrom3DHost, requestHqRenderScriptFrom3DHost, rendering, renderHash, viewPointName, functionType, _params$camera, sizeInfo, _rendering, fullscreenRendering, renderingInCacheFound, _this$connectionHandl6, _plannerMeasureDigits, _params$camera2, _params$camera3, returnRequest;
|
|
37055
37149
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
@@ -37192,7 +37286,10 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37192
37286
|
}
|
|
37193
37287
|
}
|
|
37194
37288
|
case 31:
|
|
37195
|
-
return _context7.abrupt("return",
|
|
37289
|
+
return _context7.abrupt("return", {
|
|
37290
|
+
planningHash: planningHash,
|
|
37291
|
+
renderHash: renderHash
|
|
37292
|
+
});
|
|
37196
37293
|
case 32:
|
|
37197
37294
|
case "end":
|
|
37198
37295
|
return _context7.stop();
|
|
@@ -37385,13 +37482,13 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37385
37482
|
}, {
|
|
37386
37483
|
key: "openARObserverConnection",
|
|
37387
37484
|
value: function () {
|
|
37388
|
-
var _openARObserverConnection = _asyncToGenerator(
|
|
37485
|
+
var _openARObserverConnection = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(handleNoHqrs) {
|
|
37389
37486
|
var _this2 = this;
|
|
37390
37487
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
37391
37488
|
while (1) switch (_context9.prev = _context9.next) {
|
|
37392
37489
|
case 0:
|
|
37393
|
-
return _context9.abrupt("return", new Promise(
|
|
37394
|
-
var _ref = _asyncToGenerator(
|
|
37490
|
+
return _context9.abrupt("return", new Promise(/*#__PURE__*/function () {
|
|
37491
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(resolve, reject) {
|
|
37395
37492
|
var socketUrl;
|
|
37396
37493
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
37397
37494
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -37540,7 +37637,7 @@ var DivaMediaServiceHandler = /*#__PURE__*/function () {
|
|
|
37540
37637
|
}, {
|
|
37541
37638
|
key: "savePlanning2DPermanent",
|
|
37542
37639
|
value: function () {
|
|
37543
|
-
var _savePlanning2DPermanent = _asyncToGenerator(
|
|
37640
|
+
var _savePlanning2DPermanent = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(hash, catalogCodex, catalogGUID, planning2DAsJPG) {
|
|
37544
37641
|
var imageBlob, url, data, mediaItem, mediaItemRef, response, res;
|
|
37545
37642
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
37546
37643
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -37939,7 +38036,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
37939
38036
|
return _createClass(DivaPlannerHandler, [{
|
|
37940
38037
|
key: "initPlanner",
|
|
37941
38038
|
value: (function () {
|
|
37942
|
-
var _initPlanner = _asyncToGenerator(
|
|
38039
|
+
var _initPlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(initSetState, plannerHandlerFunctions) {
|
|
37943
38040
|
var renderGroup, diva3dServerUrl, divaMediaServiceUrl, mediaServiceApiKey, _initSetState$api$web, result;
|
|
37944
38041
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
37945
38042
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -38014,7 +38111,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38014
38111
|
}, {
|
|
38015
38112
|
key: "updatePlanner",
|
|
38016
38113
|
value: (function () {
|
|
38017
|
-
var _updatePlanner = _asyncToGenerator(
|
|
38114
|
+
var _updatePlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(setId, changedOPT, targetElementIds) {
|
|
38018
38115
|
var result, _this$plannerHandlerF, _this$plannerHandlerF2;
|
|
38019
38116
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
38020
38117
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -38059,7 +38156,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38059
38156
|
}, {
|
|
38060
38157
|
key: "extendSet",
|
|
38061
38158
|
value: (function () {
|
|
38062
|
-
var _extendSet = _asyncToGenerator(
|
|
38159
|
+
var _extendSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(set, setPlanData, lastSetToInitialize) {
|
|
38063
38160
|
var planner;
|
|
38064
38161
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
38065
38162
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -38105,7 +38202,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38105
38202
|
}, {
|
|
38106
38203
|
key: "initSet",
|
|
38107
38204
|
value: (function () {
|
|
38108
|
-
var _initSet = _asyncToGenerator(
|
|
38205
|
+
var _initSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(set, catalogData, setPlanData) {
|
|
38109
38206
|
var lastSetToInitialize,
|
|
38110
38207
|
planner,
|
|
38111
38208
|
hasStaticBackground,
|
|
@@ -38146,7 +38243,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38146
38243
|
break;
|
|
38147
38244
|
case 8:
|
|
38148
38245
|
_context4.next = 10;
|
|
38149
|
-
return import('./DivaStandardPlanner-
|
|
38246
|
+
return import('./DivaStandardPlanner-660cec0e.js');
|
|
38150
38247
|
case 10:
|
|
38151
38248
|
_yield$import = _context4.sent;
|
|
38152
38249
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -38157,7 +38254,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38157
38254
|
return _context4.abrupt("break", 21);
|
|
38158
38255
|
case 15:
|
|
38159
38256
|
_context4.next = 17;
|
|
38160
|
-
return import('./DivaBoxPlanner-
|
|
38257
|
+
return import('./DivaBoxPlanner-a95c530a.js');
|
|
38161
38258
|
case 17:
|
|
38162
38259
|
_yield$import2 = _context4.sent;
|
|
38163
38260
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -38258,7 +38355,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38258
38355
|
}, {
|
|
38259
38356
|
key: "getSetRendering",
|
|
38260
38357
|
value: (function () {
|
|
38261
|
-
var _getSetRendering = _asyncToGenerator(
|
|
38358
|
+
var _getSetRendering = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(setId) {
|
|
38262
38359
|
var rendering;
|
|
38263
38360
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
38264
38361
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -38290,7 +38387,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38290
38387
|
}, {
|
|
38291
38388
|
key: "getSetImageAsUrl",
|
|
38292
38389
|
value: (function () {
|
|
38293
|
-
var _getSetImageAsUrl = _asyncToGenerator(
|
|
38390
|
+
var _getSetImageAsUrl = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(setId) {
|
|
38294
38391
|
var rendering;
|
|
38295
38392
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
38296
38393
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -38299,8 +38396,9 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38299
38396
|
return this.getSetRendering(setId);
|
|
38300
38397
|
case 2:
|
|
38301
38398
|
rendering = _context6.sent;
|
|
38399
|
+
LOG$2.debug('SAVE SET IMAGE DIM3D width: ' + (rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().w) + ', height: ' + (rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().h) + ', depth: ' + (rendering === null || rendering === void 0 ? void 0 : rendering.get3DDimInfo().d));
|
|
38302
38400
|
return _context6.abrupt("return", rendering != undefined ? rendering.UrlToSavedRendering : '');
|
|
38303
|
-
case
|
|
38401
|
+
case 5:
|
|
38304
38402
|
case "end":
|
|
38305
38403
|
return _context6.stop();
|
|
38306
38404
|
}
|
|
@@ -38326,7 +38424,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38326
38424
|
}, {
|
|
38327
38425
|
key: "getAlternateSetRenderings",
|
|
38328
38426
|
value: (function () {
|
|
38329
|
-
var _getAlternateSetRenderings = _asyncToGenerator(
|
|
38427
|
+
var _getAlternateSetRenderings = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(setId) {
|
|
38330
38428
|
var renderings;
|
|
38331
38429
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
38332
38430
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -38363,7 +38461,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38363
38461
|
}, {
|
|
38364
38462
|
key: "getAlternateSetImagesAsSetImageData",
|
|
38365
38463
|
value: (function () {
|
|
38366
|
-
var _getAlternateSetImagesAsSetImageData = _asyncToGenerator(
|
|
38464
|
+
var _getAlternateSetImagesAsSetImageData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(setId) {
|
|
38367
38465
|
var renderings, setImageDatas, i, alternateRenderInfo;
|
|
38368
38466
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
38369
38467
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -38414,8 +38512,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38414
38512
|
}, {
|
|
38415
38513
|
key: "saveSetHQRenderScript",
|
|
38416
38514
|
value: function () {
|
|
38417
|
-
var _saveSetHQRenderScript = _asyncToGenerator(
|
|
38418
|
-
var
|
|
38515
|
+
var _saveSetHQRenderScript = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
|
38516
|
+
var hashes, planningHash, checkingTimes, i;
|
|
38419
38517
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
38420
38518
|
while (1) switch (_context9.prev = _context9.next) {
|
|
38421
38519
|
case 0:
|
|
@@ -38423,32 +38521,33 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38423
38521
|
_context9.next = 3;
|
|
38424
38522
|
return this.request3D(false, true);
|
|
38425
38523
|
case 3:
|
|
38426
|
-
|
|
38427
|
-
if (
|
|
38524
|
+
hashes = _context9.sent;
|
|
38525
|
+
if (hashes) {
|
|
38428
38526
|
_context9.next = 6;
|
|
38429
38527
|
break;
|
|
38430
38528
|
}
|
|
38431
38529
|
return _context9.abrupt("return");
|
|
38432
38530
|
case 6:
|
|
38433
|
-
|
|
38531
|
+
planningHash = hashes.planningHash;
|
|
38532
|
+
checkingTimes = 50;
|
|
38434
38533
|
i = 0;
|
|
38435
|
-
case
|
|
38436
|
-
if (!(this.handler3D.getWaitForHqRenderScript(
|
|
38437
|
-
_context9.next =
|
|
38534
|
+
case 9:
|
|
38535
|
+
if (!(this.handler3D.getWaitForHqRenderScript(planningHash) && checkingTimes > i)) {
|
|
38536
|
+
_context9.next = 15;
|
|
38438
38537
|
break;
|
|
38439
38538
|
}
|
|
38440
|
-
_context9.next =
|
|
38539
|
+
_context9.next = 12;
|
|
38441
38540
|
return DivaUtils.Sleep(50);
|
|
38442
|
-
case
|
|
38541
|
+
case 12:
|
|
38443
38542
|
i++;
|
|
38444
|
-
_context9.next =
|
|
38543
|
+
_context9.next = 9;
|
|
38445
38544
|
break;
|
|
38446
|
-
case
|
|
38545
|
+
case 15:
|
|
38447
38546
|
LOG$2.debug('saving performance: HQ Renderscript recieved after ' + i * checkingTimes + ' ms');
|
|
38448
38547
|
if (this.handler3D.checkIsWaitingForHQRenderScript() && checkingTimes == i) {
|
|
38449
38548
|
LOG$2.error(new DivaError('could not saveSetHQRenderScript'));
|
|
38450
38549
|
}
|
|
38451
|
-
case
|
|
38550
|
+
case 17:
|
|
38452
38551
|
case "end":
|
|
38453
38552
|
return _context9.stop();
|
|
38454
38553
|
}
|
|
@@ -38462,8 +38561,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38462
38561
|
}, {
|
|
38463
38562
|
key: "saveSetImage",
|
|
38464
38563
|
value: function () {
|
|
38465
|
-
var _saveSetImage = _asyncToGenerator(
|
|
38466
|
-
var
|
|
38564
|
+
var _saveSetImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(overwriteLastSavedRendering) {
|
|
38565
|
+
var hashes, renderHash, sumWaitingMS, rendering;
|
|
38467
38566
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
38468
38567
|
while (1) switch (_context10.prev = _context10.next) {
|
|
38469
38568
|
case 0:
|
|
@@ -38471,7 +38570,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38471
38570
|
|
|
38472
38571
|
//Save permanent rendering
|
|
38473
38572
|
if (!(overwriteLastSavedRendering || !this.handler3D.hasLastSavedRendering())) {
|
|
38474
|
-
_context10.next =
|
|
38573
|
+
_context10.next = 16;
|
|
38475
38574
|
break;
|
|
38476
38575
|
}
|
|
38477
38576
|
_context10.next = 4;
|
|
@@ -38484,42 +38583,43 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38484
38583
|
doShow3DDimensionLines: false
|
|
38485
38584
|
});
|
|
38486
38585
|
case 4:
|
|
38487
|
-
|
|
38488
|
-
if (
|
|
38586
|
+
hashes = _context10.sent;
|
|
38587
|
+
if (hashes) {
|
|
38489
38588
|
_context10.next = 7;
|
|
38490
38589
|
break;
|
|
38491
38590
|
}
|
|
38492
38591
|
return _context10.abrupt("return", false);
|
|
38493
38592
|
case 7:
|
|
38593
|
+
renderHash = hashes.renderHash;
|
|
38494
38594
|
sumWaitingMS = 0;
|
|
38495
|
-
case
|
|
38496
|
-
if (!(this.handler3D.getWaitForRendering(
|
|
38497
|
-
_context10.next =
|
|
38595
|
+
case 9:
|
|
38596
|
+
if (!(this.handler3D.getWaitForRendering(renderHash) && sumWaitingMS < RenderSettings.TIMEOUT_WAITFORSAVEDRENDERING_MS)) {
|
|
38597
|
+
_context10.next = 15;
|
|
38498
38598
|
break;
|
|
38499
38599
|
}
|
|
38500
38600
|
sumWaitingMS += 50;
|
|
38501
|
-
_context10.next =
|
|
38601
|
+
_context10.next = 13;
|
|
38502
38602
|
return DivaUtils.Sleep(50);
|
|
38503
|
-
case
|
|
38504
|
-
_context10.next =
|
|
38603
|
+
case 13:
|
|
38604
|
+
_context10.next = 9;
|
|
38505
38605
|
break;
|
|
38506
|
-
case 14:
|
|
38507
|
-
LOG$2.debug('saving performance: 3D Image recieved after ' + sumWaitingMS + ' ms');
|
|
38508
38606
|
case 15:
|
|
38509
|
-
|
|
38607
|
+
LOG$2.debug('saving performance: 3D Image recieved after ' + sumWaitingMS + ' ms');
|
|
38608
|
+
case 16:
|
|
38609
|
+
_context10.next = 18;
|
|
38510
38610
|
return this.handler3D.getLastSavedRendering();
|
|
38511
|
-
case
|
|
38611
|
+
case 18:
|
|
38512
38612
|
rendering = _context10.sent;
|
|
38513
38613
|
if (!(!rendering || !rendering.UrlToSavedRendering)) {
|
|
38514
|
-
_context10.next =
|
|
38614
|
+
_context10.next = 22;
|
|
38515
38615
|
break;
|
|
38516
38616
|
}
|
|
38517
38617
|
DivaUtils.endSpanOfApm('DivaPlannerHandler saveSetImage');
|
|
38518
38618
|
return _context10.abrupt("return", false);
|
|
38519
|
-
case
|
|
38619
|
+
case 22:
|
|
38520
38620
|
DivaUtils.endSpanOfApm('DivaPlannerHandler saveSetImage');
|
|
38521
38621
|
return _context10.abrupt("return", true);
|
|
38522
|
-
case
|
|
38622
|
+
case 24:
|
|
38523
38623
|
case "end":
|
|
38524
38624
|
return _context10.stop();
|
|
38525
38625
|
}
|
|
@@ -38539,7 +38639,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38539
38639
|
}, {
|
|
38540
38640
|
key: "saveAlternateSetImages",
|
|
38541
38641
|
value: (function () {
|
|
38542
|
-
var _saveAlternateSetImages = _asyncToGenerator(
|
|
38642
|
+
var _saveAlternateSetImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(catCodex, catGUID) {
|
|
38543
38643
|
var renderings, i, j;
|
|
38544
38644
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
38545
38645
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -38600,7 +38700,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38600
38700
|
}, {
|
|
38601
38701
|
key: "saveSet2DImage",
|
|
38602
38702
|
value: function () {
|
|
38603
|
-
var _saveSet2DImage = _asyncToGenerator(
|
|
38703
|
+
var _saveSet2DImage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(setId, catCodex, catGUID, planning2DAsJPGBase64) {
|
|
38604
38704
|
var curPlanningHash, urlToPlanning2D;
|
|
38605
38705
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
38606
38706
|
while (1) switch (_context12.prev = _context12.next) {
|
|
@@ -38675,7 +38775,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38675
38775
|
}, {
|
|
38676
38776
|
key: "addPlannerElement",
|
|
38677
38777
|
value: function () {
|
|
38678
|
-
var _addPlannerElement = _asyncToGenerator(
|
|
38778
|
+
var _addPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(setId, basketId, initParams) {
|
|
38679
38779
|
var _this$plannerList$get;
|
|
38680
38780
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
38681
38781
|
while (1) switch (_context13.prev = _context13.next) {
|
|
@@ -38711,7 +38811,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38711
38811
|
}, {
|
|
38712
38812
|
key: "deletePlannerElement",
|
|
38713
38813
|
value: function () {
|
|
38714
|
-
var _deletePlannerElement = _asyncToGenerator(
|
|
38814
|
+
var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(setId, elementId, autoCorrectAVL_AVR, deletionType) {
|
|
38715
38815
|
var response;
|
|
38716
38816
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
38717
38817
|
while (1) switch (_context14.prev = _context14.next) {
|
|
@@ -38769,7 +38869,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38769
38869
|
}, {
|
|
38770
38870
|
key: "copyPlannerElements",
|
|
38771
38871
|
value: (function () {
|
|
38772
|
-
var _copyPlannerElements = _asyncToGenerator(
|
|
38872
|
+
var _copyPlannerElements = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(setId, articleCopyRelation, copyInfo) {
|
|
38773
38873
|
var response;
|
|
38774
38874
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
38775
38875
|
while (1) switch (_context15.prev = _context15.next) {
|
|
@@ -38913,7 +39013,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38913
39013
|
}, {
|
|
38914
39014
|
key: "request3D",
|
|
38915
39015
|
value: function () {
|
|
38916
|
-
var _request3D = _asyncToGenerator(
|
|
39016
|
+
var _request3D = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(doRequestRendering, doRequestHqRenderScript, alternateRenderingsExist, alternateRenderInfo, forceReloadPlanning, renderRequestInfos, viewpoint) {
|
|
38917
39017
|
var _this3 = this;
|
|
38918
39018
|
var plannerData, loadedCatData, plannerExists, savedSetId;
|
|
38919
39019
|
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
@@ -39249,7 +39349,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39249
39349
|
* @param configStepKey unique indentifier for configStep
|
|
39250
39350
|
*/
|
|
39251
39351
|
_defineProperty(this, "loadConfigItemsOfOptions", /*#__PURE__*/function () {
|
|
39252
|
-
var _ref = _asyncToGenerator(
|
|
39352
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(configStepKey, paletteId, isUpdate, visible) {
|
|
39253
39353
|
var _this$updateConfigIte;
|
|
39254
39354
|
var retValues;
|
|
39255
39355
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -39273,7 +39373,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39273
39373
|
/**
|
|
39274
39374
|
* this function laods the summary Items
|
|
39275
39375
|
*/
|
|
39276
|
-
_defineProperty(this, "loadSummaryItems", /*#__PURE__*/_asyncToGenerator(
|
|
39376
|
+
_defineProperty(this, "loadSummaryItems", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
39277
39377
|
var _this$actions, _this$actions$toggleL, _this$updateSummaryIt, _this$actions2, _this$actions2$toggle;
|
|
39278
39378
|
var setPriceCurrency, setPriceFormat, summaryItems;
|
|
39279
39379
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -39329,7 +39429,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39329
39429
|
* @param parentElement ElementID of the parent element used for docking
|
|
39330
39430
|
*/
|
|
39331
39431
|
_defineProperty(this, "addPlannerElement", /*#__PURE__*/function () {
|
|
39332
|
-
var _ref3 = _asyncToGenerator(
|
|
39432
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(elementCodex, initParams, dontUpdateView) {
|
|
39333
39433
|
var _this$actions3, _this$actions3$toggle, _this$actions6, _this$actions6$toggle, _this$updateViewPlann, _this$updateElementSe;
|
|
39334
39434
|
var set, newArticle, _this$actions4, _this$actions4$openMo, _this$i18n, _this$i18n2, _this$actions5, _this$actions5$toggle, baseArticle;
|
|
39335
39435
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -39395,7 +39495,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39395
39495
|
* @param articleCodex articleCodex of the new Element
|
|
39396
39496
|
*/
|
|
39397
39497
|
_defineProperty(this, "switchPlannerElement", /*#__PURE__*/function () {
|
|
39398
|
-
var _ref4 = _asyncToGenerator(
|
|
39498
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(setId, elementId, articleCodex, initParams) {
|
|
39399
39499
|
var _this$actions7, _this$actions7$toggle, _this$actions8, _this$actions8$toggle, _this$updateViewPlann2, _this$updateElementSe2;
|
|
39400
39500
|
var set, variantValues, deletionResult, article;
|
|
39401
39501
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
@@ -39437,7 +39537,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39437
39537
|
};
|
|
39438
39538
|
}());
|
|
39439
39539
|
_defineProperty(this, "addAccessorieOnShelfPlanner", /*#__PURE__*/function () {
|
|
39440
|
-
var _ref5 = _asyncToGenerator(
|
|
39540
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(paletteId, gridIndex, cellIndex, parentBasketId, configStepKey) {
|
|
39441
39541
|
var _this$actions9, _this$actions9$toggle, _this$actions10, _this$actions10$toggl;
|
|
39442
39542
|
var set, retVal, _this$updateViewPlann3;
|
|
39443
39543
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -39487,7 +39587,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39487
39587
|
_this.updatePlannerView('MOVE_DOORS');
|
|
39488
39588
|
});
|
|
39489
39589
|
_defineProperty(this, "deleteAccessorieOnShelfPlanner", /*#__PURE__*/function () {
|
|
39490
|
-
var _ref6 = _asyncToGenerator(
|
|
39590
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(paletteId, gridIndex, cellIndex, parentBasketId, configStepKey) {
|
|
39491
39591
|
var _this$updateViewPlann5;
|
|
39492
39592
|
var set;
|
|
39493
39593
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
@@ -39521,7 +39621,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39521
39621
|
* @param transState
|
|
39522
39622
|
*/
|
|
39523
39623
|
_defineProperty(this, "updatePlannerTrans", /*#__PURE__*/function () {
|
|
39524
|
-
var _ref7 = _asyncToGenerator(
|
|
39624
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
|
|
39525
39625
|
var _this$updateElementSe3;
|
|
39526
39626
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
39527
39627
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -39559,7 +39659,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39559
39659
|
}
|
|
39560
39660
|
});
|
|
39561
39661
|
_defineProperty(this, "updateAccessoireQuantity", /*#__PURE__*/function () {
|
|
39562
|
-
var _ref8 = _asyncToGenerator(
|
|
39662
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle) {
|
|
39563
39663
|
var _this$actions11, _this$actions11$toggl, _this$actions12, _this$actions12$toggl;
|
|
39564
39664
|
var ret;
|
|
39565
39665
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
@@ -39587,7 +39687,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39587
39687
|
};
|
|
39588
39688
|
}());
|
|
39589
39689
|
_defineProperty(this, "deleteAccessoire", /*#__PURE__*/function () {
|
|
39590
|
-
var _ref9 = _asyncToGenerator(
|
|
39690
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(articleCodex, parentBasketId) {
|
|
39591
39691
|
var set, wasDeleted, _this$updateViewPlann6;
|
|
39592
39692
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
39593
39693
|
while (1) switch (_context9.prev = _context9.next) {
|
|
@@ -39636,7 +39736,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39636
39736
|
* @param configStepKey act ConfigStep
|
|
39637
39737
|
*/
|
|
39638
39738
|
_defineProperty(this, "configSingleIsChanged", /*#__PURE__*/function () {
|
|
39639
|
-
var _ref10 = _asyncToGenerator(
|
|
39739
|
+
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
|
|
39640
39740
|
var set;
|
|
39641
39741
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
39642
39742
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -39674,7 +39774,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39674
39774
|
*/
|
|
39675
39775
|
//onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
|
|
39676
39776
|
_defineProperty(this, "doConfigure", /*#__PURE__*/function () {
|
|
39677
|
-
var _ref11 = _asyncToGenerator(
|
|
39777
|
+
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
|
|
39678
39778
|
var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
|
|
39679
39779
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
39680
39780
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -39721,7 +39821,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39721
39821
|
};
|
|
39722
39822
|
}());
|
|
39723
39823
|
_defineProperty(this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
|
|
39724
|
-
var _ref12 = _asyncToGenerator(
|
|
39824
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, isInit) {
|
|
39825
|
+
var _myValues;
|
|
39725
39826
|
var set, articles, article;
|
|
39726
39827
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
39727
39828
|
while (1) switch (_context12.prev = _context12.next) {
|
|
@@ -39739,22 +39840,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39739
39840
|
}
|
|
39740
39841
|
return _context12.abrupt("return");
|
|
39741
39842
|
case 5:
|
|
39742
|
-
if (
|
|
39743
|
-
|
|
39744
|
-
|
|
39745
|
-
article = articles[Object.keys(articles)[0]];
|
|
39746
|
-
myValues = article === null || article === void 0 ? void 0 : article.VariantValuesWithoutFreetext;
|
|
39843
|
+
if (myValues) {
|
|
39844
|
+
_context12.next = 11;
|
|
39845
|
+
break;
|
|
39747
39846
|
}
|
|
39847
|
+
//get first option of the first article
|
|
39848
|
+
articles = set.getDivaArticles();
|
|
39849
|
+
article = articles[Object.keys(articles)[0]];
|
|
39850
|
+
if (article) {
|
|
39851
|
+
_context12.next = 10;
|
|
39852
|
+
break;
|
|
39853
|
+
}
|
|
39854
|
+
return _context12.abrupt("return");
|
|
39855
|
+
case 10:
|
|
39856
|
+
myValues = article === null || article === void 0 ? void 0 : article.VariantValuesWithoutFreetext;
|
|
39857
|
+
case 11:
|
|
39748
39858
|
_context12.t0 = _this.divaBasketHandler;
|
|
39749
39859
|
_context12.t1 = set;
|
|
39750
|
-
_context12.next =
|
|
39860
|
+
_context12.next = 15;
|
|
39751
39861
|
return setHandlerInstance.fillOrderLinesAndOrderSets(_this.sets, _this.divaBasketHandler, true, _this.doAllowSetPlanner(), _this.ReturnTo);
|
|
39752
|
-
case
|
|
39862
|
+
case 15:
|
|
39753
39863
|
_context12.t2 = _context12.sent;
|
|
39754
|
-
_context12.t3 = Object.keys(myValues);
|
|
39864
|
+
_context12.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
|
|
39755
39865
|
_context12.t4 = isInit;
|
|
39756
39866
|
return _context12.abrupt("return", _context12.t0.fillBaksetforOnWebPlanerConfigChange.call(_context12.t0, _context12.t1, _context12.t2, _context12.t3, _context12.t4));
|
|
39757
|
-
case
|
|
39867
|
+
case 19:
|
|
39758
39868
|
case "end":
|
|
39759
39869
|
return _context12.stop();
|
|
39760
39870
|
}
|
|
@@ -39793,7 +39903,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
39793
39903
|
return _createClass(DivaWebPlanner, [{
|
|
39794
39904
|
key: "initialize",
|
|
39795
39905
|
value: function () {
|
|
39796
|
-
var _initialize = _asyncToGenerator(
|
|
39906
|
+
var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
|
|
39797
39907
|
var viewReadyPromise, loadSuccessful, _initSetState$api$web, _this$actions14, _set$getDivaArticles, _set$getSetPrice, _this$actions13, _this$actions13$toggl, initSetState, set, products, result, _this$actions15, basket, catalogData;
|
|
39798
39908
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
39799
39909
|
while (1) switch (_context13.prev = _context13.next) {
|
|
@@ -40043,7 +40153,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40043
40153
|
}, {
|
|
40044
40154
|
key: "getDimension",
|
|
40045
40155
|
value: function () {
|
|
40046
|
-
var _getDimension = _asyncToGenerator(
|
|
40156
|
+
var _getDimension = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
|
|
40047
40157
|
var _this$actSet4;
|
|
40048
40158
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
40049
40159
|
while (1) switch (_context14.prev = _context14.next) {
|
|
@@ -40082,7 +40192,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40082
40192
|
}, {
|
|
40083
40193
|
key: "initView",
|
|
40084
40194
|
value: (function () {
|
|
40085
|
-
var _initView = _asyncToGenerator(
|
|
40195
|
+
var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
|
|
40086
40196
|
var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
|
|
40087
40197
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
40088
40198
|
while (1) switch (_context15.prev = _context15.next) {
|
|
@@ -40139,7 +40249,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40139
40249
|
}, {
|
|
40140
40250
|
key: "runInitMode",
|
|
40141
40251
|
value: function () {
|
|
40142
|
-
var _runInitMode = _asyncToGenerator(
|
|
40252
|
+
var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(plannerMode) {
|
|
40143
40253
|
var _this$navigateToTabGr2;
|
|
40144
40254
|
var doDefault, configStepKey, _this$actSet6, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
|
|
40145
40255
|
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
@@ -40196,7 +40306,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40196
40306
|
}, {
|
|
40197
40307
|
key: "addSetToActPlanningByDivaNr",
|
|
40198
40308
|
value: function () {
|
|
40199
|
-
var _addSetToActPlanningByDivaNr = _asyncToGenerator(
|
|
40309
|
+
var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(divaNr) {
|
|
40200
40310
|
var _this$updateViewPlann10;
|
|
40201
40311
|
var set, orderSets, i, orderset, lastSetToInitialize, loadedSet, articlesKeys;
|
|
40202
40312
|
return _regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
@@ -40259,7 +40369,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40259
40369
|
}, {
|
|
40260
40370
|
key: "initProductId",
|
|
40261
40371
|
value: function () {
|
|
40262
|
-
var _initProductId = _asyncToGenerator(
|
|
40372
|
+
var _initProductId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(productId) {
|
|
40263
40373
|
var loadSuccessful;
|
|
40264
40374
|
return _regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
40265
40375
|
while (1) switch (_context18.prev = _context18.next) {
|
|
@@ -40315,7 +40425,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40315
40425
|
}, {
|
|
40316
40426
|
key: "setActSetCurConfigStepKey",
|
|
40317
40427
|
value: function () {
|
|
40318
|
-
var _setActSetCurConfigStepKey = _asyncToGenerator(
|
|
40428
|
+
var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(curConfigStepKey) {
|
|
40319
40429
|
var set;
|
|
40320
40430
|
return _regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
40321
40431
|
while (1) switch (_context19.prev = _context19.next) {
|
|
@@ -40472,7 +40582,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40472
40582
|
}, {
|
|
40473
40583
|
key: "deletePlannerElement",
|
|
40474
40584
|
value: function () {
|
|
40475
|
-
var _deletePlannerElement = _asyncToGenerator(
|
|
40585
|
+
var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(setId, elementId, denyElementSelectionClear) {
|
|
40476
40586
|
var _this$updateViewPlann11;
|
|
40477
40587
|
var set, result, _this$updateElementSe5, _this$updateElementSe6;
|
|
40478
40588
|
return _regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
@@ -40515,7 +40625,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40515
40625
|
}, {
|
|
40516
40626
|
key: "copyPlannerElement",
|
|
40517
40627
|
value: (function () {
|
|
40518
|
-
var _copyPlannerElement = _asyncToGenerator(
|
|
40628
|
+
var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(setId, elementId, curConfigKey, copyInfo) {
|
|
40519
40629
|
var _this$updateViewPlann12;
|
|
40520
40630
|
var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
|
|
40521
40631
|
return _regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
@@ -40577,7 +40687,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40577
40687
|
}, {
|
|
40578
40688
|
key: "getFreePlacesOnGrids",
|
|
40579
40689
|
value: function () {
|
|
40580
|
-
var _getFreePlacesOnGrids = _asyncToGenerator(
|
|
40690
|
+
var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(gridGroup, from) {
|
|
40581
40691
|
var _this$updateFreePlace;
|
|
40582
40692
|
var set, freeShelfGrids, plannedShelfGrids;
|
|
40583
40693
|
return _regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
@@ -40638,7 +40748,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40638
40748
|
}, {
|
|
40639
40749
|
key: "moveShelfItemToGrid",
|
|
40640
40750
|
value: function () {
|
|
40641
|
-
var _moveShelfItemToGrid = _asyncToGenerator(
|
|
40751
|
+
var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(accessoireBasketId, parentBasketId, gridName, cellIndex) {
|
|
40642
40752
|
var set, newGridId;
|
|
40643
40753
|
return _regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
40644
40754
|
while (1) switch (_context23.prev = _context23.next) {
|
|
@@ -40675,7 +40785,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40675
40785
|
}, {
|
|
40676
40786
|
key: "resetArticle",
|
|
40677
40787
|
value: function () {
|
|
40678
|
-
var _resetArticle = _asyncToGenerator(
|
|
40788
|
+
var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(basketId) {
|
|
40679
40789
|
var set;
|
|
40680
40790
|
return _regeneratorRuntime.wrap(function _callee24$(_context24) {
|
|
40681
40791
|
while (1) switch (_context24.prev = _context24.next) {
|
|
@@ -40703,7 +40813,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40703
40813
|
}, {
|
|
40704
40814
|
key: "checkVariantData",
|
|
40705
40815
|
value: function () {
|
|
40706
|
-
var _checkVariantData = _asyncToGenerator(
|
|
40816
|
+
var _checkVariantData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25() {
|
|
40707
40817
|
var somethingChanged;
|
|
40708
40818
|
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
40709
40819
|
while (1) switch (_context25.prev = _context25.next) {
|
|
@@ -40819,7 +40929,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40819
40929
|
}, {
|
|
40820
40930
|
key: "saveToBasketWrapper",
|
|
40821
40931
|
value: function () {
|
|
40822
|
-
var _saveToBasketWrapper = _asyncToGenerator(
|
|
40932
|
+
var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, force) {
|
|
40823
40933
|
var _this$actions23,
|
|
40824
40934
|
_this$actions23$toggl,
|
|
40825
40935
|
_this$actions24,
|
|
@@ -40939,7 +41049,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40939
41049
|
}, {
|
|
40940
41050
|
key: "saveToBasket",
|
|
40941
41051
|
value: function () {
|
|
40942
|
-
var _saveToBasket = _asyncToGenerator(
|
|
41052
|
+
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(event, repairOnly, force) {
|
|
40943
41053
|
var _returnTo, _event, _event2, _event3, _returnTo2, _returnTo3, _this$actions30, _this$actions31;
|
|
40944
41054
|
var set, actBasket, returnTo, oldReturnTo, count, basketData, bytes, result, newDivaNr, _result2, _event4, product;
|
|
40945
41055
|
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
@@ -41322,7 +41432,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41322
41432
|
}, {
|
|
41323
41433
|
key: "getBasketDataWithEkText",
|
|
41324
41434
|
value: function () {
|
|
41325
|
-
var _getBasketDataWithEkText = _asyncToGenerator(
|
|
41435
|
+
var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {
|
|
41326
41436
|
return _regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
41327
41437
|
while (1) switch (_context28.prev = _context28.next) {
|
|
41328
41438
|
case 0:
|
|
@@ -41364,7 +41474,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41364
41474
|
}, {
|
|
41365
41475
|
key: "addToBasket",
|
|
41366
41476
|
value: function () {
|
|
41367
|
-
var _addToBasket = _asyncToGenerator(
|
|
41477
|
+
var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(actBasket) {
|
|
41368
41478
|
var _this$actions32,
|
|
41369
41479
|
_this$actions33,
|
|
41370
41480
|
_this$actions34,
|
|
@@ -41778,7 +41888,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41778
41888
|
key: "initApiForLogicOnly",
|
|
41779
41889
|
value: //just for testing purposes
|
|
41780
41890
|
function () {
|
|
41781
|
-
var _initApiForLogicOnly = _asyncToGenerator(
|
|
41891
|
+
var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
|
|
41782
41892
|
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
41783
41893
|
while (1) switch (_context30.prev = _context30.next) {
|
|
41784
41894
|
case 0:
|
|
@@ -41816,7 +41926,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41816
41926
|
}, {
|
|
41817
41927
|
key: "loadBasket",
|
|
41818
41928
|
value: function () {
|
|
41819
|
-
var _loadBasket = _asyncToGenerator(
|
|
41929
|
+
var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
|
|
41820
41930
|
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
41821
41931
|
while (1) switch (_context31.prev = _context31.next) {
|
|
41822
41932
|
case 0:
|
|
@@ -41840,7 +41950,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41840
41950
|
}, {
|
|
41841
41951
|
key: "initBasket",
|
|
41842
41952
|
value: function () {
|
|
41843
|
-
var _initBasket = _asyncToGenerator(
|
|
41953
|
+
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(init3D, ignoreFavorites) {
|
|
41844
41954
|
var _initSetState$api$web2;
|
|
41845
41955
|
var initSetState, sets, result, _sets$, set, basket;
|
|
41846
41956
|
return _regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
@@ -41904,7 +42014,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41904
42014
|
}, {
|
|
41905
42015
|
key: "getValidVariantsLength",
|
|
41906
42016
|
value: function () {
|
|
41907
|
-
var _getValidVariantsLength = _asyncToGenerator(
|
|
42017
|
+
var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
|
|
41908
42018
|
var set;
|
|
41909
42019
|
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
41910
42020
|
while (1) switch (_context33.prev = _context33.next) {
|
|
@@ -41928,7 +42038,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41928
42038
|
}, {
|
|
41929
42039
|
key: "handleFavorites",
|
|
41930
42040
|
value: function () {
|
|
41931
|
-
var _handleFavorites = _asyncToGenerator(
|
|
42041
|
+
var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(mode) {
|
|
41932
42042
|
var _this4 = this;
|
|
41933
42043
|
var set, i;
|
|
41934
42044
|
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
@@ -41980,7 +42090,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41980
42090
|
}, {
|
|
41981
42091
|
key: "initSapOrderLinesFromBasket",
|
|
41982
42092
|
value: function () {
|
|
41983
|
-
var _initSapOrderLinesFromBasket = _asyncToGenerator(
|
|
42093
|
+
var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(divaNr, init3D, onlyLoadOldBakset) {
|
|
41984
42094
|
var result, oldBasket, basket;
|
|
41985
42095
|
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
41986
42096
|
while (1) switch (_context35.prev = _context35.next) {
|
|
@@ -42301,7 +42411,7 @@ function loadAndRepairBasket(_x, _x2, _x3, _x4, _x5, _x6, _x7) {
|
|
|
42301
42411
|
return _loadAndRepairBasket.apply(this, arguments);
|
|
42302
42412
|
}
|
|
42303
42413
|
function _loadAndRepairBasket() {
|
|
42304
|
-
_loadAndRepairBasket = _asyncToGenerator(
|
|
42414
|
+
_loadAndRepairBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(settings, apiConfig, organizationId, getSessionGuid, divaNr, customProductId, organization) {
|
|
42305
42415
|
var lang,
|
|
42306
42416
|
assignNewDivaNr,
|
|
42307
42417
|
basketData,
|
|
@@ -42733,7 +42843,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42733
42843
|
}, {
|
|
42734
42844
|
key: "addAccessoireInCells",
|
|
42735
42845
|
value: (function () {
|
|
42736
|
-
var _addAccessoireInCells = _asyncToGenerator(
|
|
42846
|
+
var _addAccessoireInCells = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(index, accessoire, type, noMove, noDelete, onlyPlaceHolder) {
|
|
42737
42847
|
var size, onBoard, i;
|
|
42738
42848
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
42739
42849
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -42795,7 +42905,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42795
42905
|
}, {
|
|
42796
42906
|
key: "deleteAccessoireInCells",
|
|
42797
42907
|
value: (function () {
|
|
42798
|
-
var _deleteAccessoireInCells = _asyncToGenerator(
|
|
42908
|
+
var _deleteAccessoireInCells = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(index) {
|
|
42799
42909
|
var cell, article, i, _this$cells$i$Article2;
|
|
42800
42910
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
42801
42911
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -42830,7 +42940,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42830
42940
|
}, {
|
|
42831
42941
|
key: "deleteAllAccOfGrid",
|
|
42832
42942
|
value: function () {
|
|
42833
|
-
var _deleteAllAccOfGrid = _asyncToGenerator(
|
|
42943
|
+
var _deleteAllAccOfGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
42834
42944
|
var deletedBasketIds, j, cell;
|
|
42835
42945
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
42836
42946
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -42868,7 +42978,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42868
42978
|
}, {
|
|
42869
42979
|
key: "updateMontageOption",
|
|
42870
42980
|
value: function () {
|
|
42871
|
-
var _updateMontageOption = _asyncToGenerator(
|
|
42981
|
+
var _updateMontageOption = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
42872
42982
|
var _this = this;
|
|
42873
42983
|
var dontOverwriteOptions, _loop, i;
|
|
42874
42984
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
@@ -42956,7 +43066,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
42956
43066
|
}, {
|
|
42957
43067
|
key: "updateAccessoireMontageOption",
|
|
42958
43068
|
value: function () {
|
|
42959
|
-
var _updateAccessoireMontageOption = _asyncToGenerator(
|
|
43069
|
+
var _updateAccessoireMontageOption = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(optionCodex, optionValueCodex, accessoires) {
|
|
42960
43070
|
var _this$article$shelfAc;
|
|
42961
43071
|
var i;
|
|
42962
43072
|
return _regeneratorRuntime.wrap(function _callee5$(_context6) {
|
|
@@ -59324,7 +59434,7 @@ var RenderingsToCreate = [_objectSpread$3(_objectSpread$3({}, a$2), {}, {
|
|
|
59324
59434
|
|
|
59325
59435
|
var axios = require('axios');
|
|
59326
59436
|
var getSessionGuid = /*#__PURE__*/function () {
|
|
59327
|
-
var _ref = _asyncToGenerator(
|
|
59437
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(organizaitionId, apiKey, userRole, sessionGuids, loginMode, authService, api2Location, doPfisterLogin) {
|
|
59328
59438
|
var _response$data;
|
|
59329
59439
|
var _url, _response, login, zToken, url, response;
|
|
59330
59440
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -59440,7 +59550,7 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59440
59550
|
* @param catalogData the catalog data for this basket
|
|
59441
59551
|
*/
|
|
59442
59552
|
_defineProperty(this, "createAndSave", /*#__PURE__*/function () {
|
|
59443
|
-
var _ref2 = _asyncToGenerator(
|
|
59553
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
|
|
59444
59554
|
var basket, catalogData, createdState;
|
|
59445
59555
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
59446
59556
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -59481,7 +59591,7 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59481
59591
|
* @param productData an optional list of products, if set no products get loaded from the server
|
|
59482
59592
|
*/
|
|
59483
59593
|
_defineProperty(this, "loadProducts", /*#__PURE__*/function () {
|
|
59484
|
-
var _ref4 = _asyncToGenerator(
|
|
59594
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref3) {
|
|
59485
59595
|
var _productData$length, _basket$OrderSets, _baseProduct, _baseProduct2, _baseProduct3, _baseProduct4, _baseProduct5, _baseProduct6, _baseProduct7, _baseProduct8, _baseProduct9, _baseProduct10, _baseProduct11, _baseProduct$width, _baseProduct12, _basket$SetPlannerInf, _basket$OrderSets$0$B, _baseProduct$height, _baseProduct13, _basket$SetPlannerInf2, _basket$OrderSets$0$B2, _baseProduct$depth, _baseProduct14, _basket$SetPlannerInf3, _basket$OrderSets$0$B3, _basket$SetPlannerInf4, _basket$SetPlannerInf5, _baseProduct15, _baseProduct16, _baseProduct17;
|
|
59486
59596
|
var basket, catalogData, productData, classificationFields, products, baseProduct, variantProducts, isSet, dockingPoints, orderDescription, catalogDataName, catalogDataDescription, setName, _ProductHandler$calcu, shortDescription, shortDescriptionModified, _ProductHandler$calcu2, addedPrice, addedPriceModified, articles, baseData, classificationData, variantData, variantDataModified, addedProducts, removedProducts, optFields, initialSelectedFields, _basket$OrderSets$0$C2, usedConfigVariants, differingOPTs, _basket$OrderSets$0$C3, opts, i;
|
|
59487
59597
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -59726,7 +59836,7 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59726
59836
|
* @param classificationFields the lists of classification fields used
|
|
59727
59837
|
*/
|
|
59728
59838
|
_defineProperty(this, "saveData", /*#__PURE__*/function () {
|
|
59729
|
-
var _ref10 = _asyncToGenerator(
|
|
59839
|
+
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref9) {
|
|
59730
59840
|
var baseData, classificationData, products, baseProduct, j, file;
|
|
59731
59841
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
59732
59842
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -59903,7 +60013,7 @@ var ProductHandler = /*#__PURE__*/function () {
|
|
|
59903
60013
|
}, {
|
|
59904
60014
|
key: "apiSaveProducts",
|
|
59905
60015
|
value: function () {
|
|
59906
|
-
var _apiSaveProducts = _asyncToGenerator(
|
|
60016
|
+
var _apiSaveProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(products) {
|
|
59907
60017
|
var _this2 = this;
|
|
59908
60018
|
var fullUrl, promises;
|
|
59909
60019
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
@@ -60112,7 +60222,7 @@ var ENVIRONMENT = 'Pfister Q';
|
|
|
60112
60222
|
var DEFAULT_RANGE = 1;
|
|
60113
60223
|
var DEFAULT_SKIP = 2;
|
|
60114
60224
|
var creatRenderOrders = /*#__PURE__*/function () {
|
|
60115
|
-
var _ref = _asyncToGenerator(
|
|
60225
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(updateResult) {
|
|
60116
60226
|
var rangeArg, TESTING_RANGE, skipArg, TESTING_SKIP, sessionGuids, _loop, w;
|
|
60117
60227
|
return _regeneratorRuntime.wrap(function _callee2$(_context4) {
|
|
60118
60228
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -60174,7 +60284,7 @@ var creatRenderOrders = /*#__PURE__*/function () {
|
|
|
60174
60284
|
}
|
|
60175
60285
|
webPlanner = new DivaWebPlanner(webPlannerParams);
|
|
60176
60286
|
getSessionGuidForward = /*#__PURE__*/function () {
|
|
60177
|
-
var _ref2 = _asyncToGenerator(
|
|
60287
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(u) {
|
|
60178
60288
|
var _dataset$configState$, _dataset$configState$2;
|
|
60179
60289
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
60180
60290
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -60327,7 +60437,7 @@ var creatRenderOrders = /*#__PURE__*/function () {
|
|
|
60327
60437
|
};
|
|
60328
60438
|
}();
|
|
60329
60439
|
var saveRenderJob = /*#__PURE__*/function () {
|
|
60330
|
-
var _ref3 = _asyncToGenerator(
|
|
60440
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(product, basket, renderings, apiData) {
|
|
60331
60441
|
var jobs, i, rendering, fileFormat, newJob, diva3DProject, _basket$OrderSets$0$C, variant;
|
|
60332
60442
|
return _regeneratorRuntime.wrap(function _callee3$(_context5) {
|
|
60333
60443
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -60441,7 +60551,7 @@ var a = ['DIVA-103019-1', 'DIVA-1031240-1', 'DIVA-103544-2', 'DIVA-1068152-1', '
|
|
|
60441
60551
|
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; }
|
|
60442
60552
|
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; }
|
|
60443
60553
|
var getOrigProductId = /*#__PURE__*/function () {
|
|
60444
|
-
var _ref = _asyncToGenerator(
|
|
60554
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(updateResult) {
|
|
60445
60555
|
var sessionGuids, dataset, _loop, index;
|
|
60446
60556
|
return _regeneratorRuntime.wrap(function _callee2$(_context3) {
|
|
60447
60557
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -60461,7 +60571,7 @@ var getOrigProductId = /*#__PURE__*/function () {
|
|
|
60461
60571
|
webPlannerParams['divaNr'] = divaNr;
|
|
60462
60572
|
webPlanner = new DivaWebPlanner(webPlannerParams);
|
|
60463
60573
|
getSessionGuidForward = /*#__PURE__*/function () {
|
|
60464
|
-
var _ref2 = _asyncToGenerator(
|
|
60574
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(u) {
|
|
60465
60575
|
var _dataset$configState$, _dataset$configState$2;
|
|
60466
60576
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
60467
60577
|
while (1) switch (_context.prev = _context.next) {
|