@crystaldesign/web-planner-logic 26.11.0-beta.4 → 26.11.0-beta.6
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-68cc1bd1.js → DivaBoxPlanner-6fe5bc89.js} +4 -4
- package/build/cjs/{DivaStandardPlanner-d44ae0e7.js → DivaStandardPlanner-d0760b52.js} +8 -28
- package/build/cjs/{DoorPlanner-1719cbe1.js → DoorPlanner-9ec349b2.js} +2 -1
- package/build/cjs/{Host3DSignalR-a456221e.js → Host3DSignalR-31b6c692.js} +2 -1
- package/build/cjs/{LiviqueWWSHandler-f2afb4eb.js → LiviqueWWSHandler-7b6cedc1.js} +2 -1
- package/build/cjs/{PfisterWWSHandler-8f522ab6.js → PfisterWWSHandler-bc814d87.js} +2 -1
- package/build/cjs/PlannerHandler2D-b5e91403.js +544 -0
- package/build/cjs/{SeriousBasketHandler-b39f0556.js → SeriousBasketHandler-658782c7.js} +2 -1
- package/build/cjs/{ShelfPlanner-1dde2d7c.js → ShelfPlanner-74fc1d98.js} +2 -1
- package/build/cjs/{StandardWWSHandler-62ec343d.js → StandardWWSHandler-76688af4.js} +2 -1
- package/build/cjs/{index-d63749e4.js → index-4d03ec37.js} +498 -649
- package/build/cjs/index.js +6 -2
- package/build/esm/{DivaBoxPlanner-a347ef5d.js → DivaBoxPlanner-272603f8.js} +4 -4
- package/build/esm/{DivaStandardPlanner-a8f0d722.js → DivaStandardPlanner-b18340c3.js} +8 -28
- package/build/esm/{DoorPlanner-60c065e5.js → DoorPlanner-f06507c0.js} +2 -1
- package/build/esm/{Host3DSignalR-0c7e84a7.js → Host3DSignalR-4eeba178.js} +2 -1
- package/build/esm/{LiviqueWWSHandler-3df03404.js → LiviqueWWSHandler-83b9a588.js} +2 -1
- package/build/esm/{PfisterWWSHandler-28b609ef.js → PfisterWWSHandler-7bc63c86.js} +2 -1
- package/build/esm/PlannerHandler2D-559502d6.js +526 -0
- package/build/esm/{SeriousBasketHandler-276a8035.js → SeriousBasketHandler-86cdc817.js} +2 -1
- package/build/esm/{ShelfPlanner-7380b831.js → ShelfPlanner-1fc4cfd3.js} +2 -1
- package/build/esm/{StandardWWSHandler-1d13f6a3.js → StandardWWSHandler-a184d908.js} +2 -1
- package/build/esm/{index-358c0a3c.js → index-66b0bc1f.js} +499 -649
- package/build/esm/index.js +2 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +9 -2
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +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 +9 -114
- 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 +5 -7
- 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 +5 -6
- package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SVGUtils.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +2 -2
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/DockingPoint.d.ts +1 -44
- package/build/types/web-planner-logic/src/model/Planner/DockingPoint.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/parseSvgOltGeometry.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/parseSvgOltGeometry.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/stretchGoldenMaster.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/stretchGoldenMaster.test.d.ts.map +1 -0
- package/package.json +4 -5
- package/build/cjs/PlannerHandler2D-dbe1d858.js +0 -2470
- package/build/esm/PlannerHandler2D-f8657005.js +0 -2455
|
@@ -16,6 +16,7 @@ import _inherits from '@babel/runtime/helpers/inherits';
|
|
|
16
16
|
import _wrapNativeSuper from '@babel/runtime/helpers/wrapNativeSuper';
|
|
17
17
|
import BasketHandler from '@crystaldesign/basket-handler';
|
|
18
18
|
import { io } from 'socket.io-client';
|
|
19
|
+
import '@crystaldesign/planner-2d-core';
|
|
19
20
|
|
|
20
21
|
(function() {
|
|
21
22
|
const env = {"STAGE":"production"};
|
|
@@ -29905,7 +29906,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29905
29906
|
break;
|
|
29906
29907
|
}
|
|
29907
29908
|
_context.next = 4;
|
|
29908
|
-
return import('./ShelfPlanner-
|
|
29909
|
+
return import('./ShelfPlanner-1fc4cfd3.js');
|
|
29909
29910
|
case 4:
|
|
29910
29911
|
_yield$import = _context.sent;
|
|
29911
29912
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -38000,7 +38001,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
38000
38001
|
break;
|
|
38001
38002
|
}
|
|
38002
38003
|
_context5.next = 3;
|
|
38003
|
-
return import('./DoorPlanner-
|
|
38004
|
+
return import('./DoorPlanner-f06507c0.js');
|
|
38004
38005
|
case 3:
|
|
38005
38006
|
_yield$import = _context5.sent;
|
|
38006
38007
|
DoorPlanner = _yield$import["default"];
|
|
@@ -42326,19 +42327,22 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
42326
42327
|
while (1) switch (_context45.prev = _context45.next) {
|
|
42327
42328
|
case 0:
|
|
42328
42329
|
urlToPlanning2D = undefined;
|
|
42329
|
-
|
|
42330
|
+
_context45.next = 3;
|
|
42331
|
+
return set.getPlanning2DAsJpg();
|
|
42332
|
+
case 3:
|
|
42333
|
+
planning2DAsJPGBase64 = _context45.sent;
|
|
42330
42334
|
if (!(planning2DAsJPGBase64 != undefined && planning2DAsJPGBase64 != '' && planning2DAsJPGBase64 != 'data:,')) {
|
|
42331
|
-
_context45.next =
|
|
42335
|
+
_context45.next = 9;
|
|
42332
42336
|
break;
|
|
42333
42337
|
}
|
|
42334
42338
|
fileName = this.getPendingUploadFileName(basketData, set.getSetId(), 'planning2D', 'jpg', variantId);
|
|
42335
|
-
_context45.next =
|
|
42339
|
+
_context45.next = 8;
|
|
42336
42340
|
return set.plannerHandler.saveSet2DImage(basketData, set.getSetId(), planning2DAsJPGBase64, fileName, variantId);
|
|
42337
|
-
case
|
|
42341
|
+
case 8:
|
|
42338
42342
|
urlToPlanning2D = _context45.sent;
|
|
42339
|
-
case
|
|
42343
|
+
case 9:
|
|
42340
42344
|
return _context45.abrupt("return", urlToPlanning2D);
|
|
42341
|
-
case
|
|
42345
|
+
case 10:
|
|
42342
42346
|
case "end":
|
|
42343
42347
|
return _context45.stop();
|
|
42344
42348
|
}
|
|
@@ -43581,7 +43585,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
43581
43585
|
break;
|
|
43582
43586
|
case 3:
|
|
43583
43587
|
_context12.next = 5;
|
|
43584
|
-
return import('./PfisterWWSHandler-
|
|
43588
|
+
return import('./PfisterWWSHandler-7bc63c86.js');
|
|
43585
43589
|
case 5:
|
|
43586
43590
|
_yield$import = _context12.sent;
|
|
43587
43591
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -43589,7 +43593,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
43589
43593
|
return _context12.abrupt("break", 27);
|
|
43590
43594
|
case 9:
|
|
43591
43595
|
_context12.next = 11;
|
|
43592
|
-
return import('./LiviqueWWSHandler-
|
|
43596
|
+
return import('./LiviqueWWSHandler-83b9a588.js');
|
|
43593
43597
|
case 11:
|
|
43594
43598
|
_yield$import2 = _context12.sent;
|
|
43595
43599
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -43597,7 +43601,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
43597
43601
|
return _context12.abrupt("break", 27);
|
|
43598
43602
|
case 15:
|
|
43599
43603
|
_context12.next = 17;
|
|
43600
|
-
return import('./SeriousBasketHandler-
|
|
43604
|
+
return import('./SeriousBasketHandler-86cdc817.js');
|
|
43601
43605
|
case 17:
|
|
43602
43606
|
_yield$import3 = _context12.sent;
|
|
43603
43607
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -43605,7 +43609,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
43605
43609
|
return _context12.abrupt("break", 27);
|
|
43606
43610
|
case 21:
|
|
43607
43611
|
_context12.next = 23;
|
|
43608
|
-
return import('./StandardWWSHandler-
|
|
43612
|
+
return import('./StandardWWSHandler-a184d908.js');
|
|
43609
43613
|
case 23:
|
|
43610
43614
|
_yield$import4 = _context12.sent;
|
|
43611
43615
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -44988,7 +44992,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
44988
44992
|
while (1) switch (_context3.prev = _context3.next) {
|
|
44989
44993
|
case 0:
|
|
44990
44994
|
_context3.next = 2;
|
|
44991
|
-
return import('./Host3DSignalR-
|
|
44995
|
+
return import('./Host3DSignalR-4eeba178.js');
|
|
44992
44996
|
case 2:
|
|
44993
44997
|
_yield$import = _context3.sent;
|
|
44994
44998
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -46664,7 +46668,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
46664
46668
|
break;
|
|
46665
46669
|
case 8:
|
|
46666
46670
|
_context5.next = 10;
|
|
46667
|
-
return import('./DivaStandardPlanner-
|
|
46671
|
+
return import('./DivaStandardPlanner-b18340c3.js');
|
|
46668
46672
|
case 10:
|
|
46669
46673
|
_yield$import = _context5.sent;
|
|
46670
46674
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -46675,7 +46679,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
46675
46679
|
return _context5.abrupt("break", 21);
|
|
46676
46680
|
case 15:
|
|
46677
46681
|
_context5.next = 17;
|
|
46678
|
-
return import('./DivaBoxPlanner-
|
|
46682
|
+
return import('./DivaBoxPlanner-272603f8.js');
|
|
46679
46683
|
case 17:
|
|
46680
46684
|
_yield$import2 = _context5.sent;
|
|
46681
46685
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -47972,18 +47976,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47972
47976
|
LOG$2.debug('new HQRenderScript set');
|
|
47973
47977
|
(_this$setHQRenderScri = _this.setHQRenderScript) === null || _this$setHQRenderScri === void 0 || _this$setHQRenderScri.call(_this, hqRenderscript.HQRenderScript);
|
|
47974
47978
|
});
|
|
47979
|
+
/** The latest 2D-grid render; a capture must await it, otherwise it reads the canvas of the previous planning. */
|
|
47980
|
+
_defineProperty(this, "pending2DRender", void 0);
|
|
47975
47981
|
_defineProperty(this, "update2DGrid", function (set) {
|
|
47976
47982
|
if (!_this.getInitPlannerViewMode || _this.getInitPlannerViewMode() == 'No') return;
|
|
47977
47983
|
var boundingBox = setHandlerInstance.get2DViewPlannerBoundingBox(set);
|
|
47978
|
-
if (boundingBox)
|
|
47979
|
-
var _this$updatePlanner2D;
|
|
47980
|
-
(_this$updatePlanner2D = _this.updatePlanner2DGrid) === null || _this$updatePlanner2D === void 0 || _this$updatePlanner2D.call(_this, boundingBox);
|
|
47981
|
-
}
|
|
47984
|
+
if (boundingBox) _this.start2DRender(boundingBox);
|
|
47982
47985
|
});
|
|
47983
|
-
_defineProperty(this, "getPlanning2DAsJpg", function () {
|
|
47986
|
+
_defineProperty(this, "getPlanning2DAsJpg", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
47984
47987
|
var _this$getCanvas2DAsJP;
|
|
47985
|
-
return (
|
|
47986
|
-
|
|
47988
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
47989
|
+
while (1) switch (_context.prev = _context.next) {
|
|
47990
|
+
case 0:
|
|
47991
|
+
_context.next = 2;
|
|
47992
|
+
return _this.pending2DRender;
|
|
47993
|
+
case 2:
|
|
47994
|
+
return _context.abrupt("return", (_this$getCanvas2DAsJP = _this.getCanvas2DAsJPG) === null || _this$getCanvas2DAsJP === void 0 ? void 0 : _this$getCanvas2DAsJP.call(_this));
|
|
47995
|
+
case 3:
|
|
47996
|
+
case "end":
|
|
47997
|
+
return _context.stop();
|
|
47998
|
+
}
|
|
47999
|
+
}, _callee);
|
|
48000
|
+
})));
|
|
47987
48001
|
/***********************************Functions in Logik called From View *************************************/
|
|
47988
48002
|
_defineProperty(this, "onElementSelectionChanged", function (setId, elementId, oldTabgroupType) {
|
|
47989
48003
|
if (setId) {
|
|
@@ -48018,35 +48032,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48018
48032
|
* @param configStepKey unique indentifier for configStep
|
|
48019
48033
|
*/
|
|
48020
48034
|
_defineProperty(this, "loadConfigItemsOfOptions", /*#__PURE__*/function () {
|
|
48021
|
-
var
|
|
48035
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(configStepKey, paletteId, isUpdate, visible) {
|
|
48022
48036
|
var _this$state2, _this$state3, _this$updateConfigIte;
|
|
48023
48037
|
var retValues;
|
|
48024
|
-
return _regeneratorRuntime.wrap(function
|
|
48025
|
-
while (1) switch (
|
|
48038
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
48039
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
48026
48040
|
case 0:
|
|
48027
|
-
|
|
48041
|
+
_context2.next = 2;
|
|
48028
48042
|
return setHandlerInstance.loadConfigItemsOfActSetByConfigStepKey(_this.actSet(), configStepKey, visible, !!((_this$state2 = _this.state) !== null && _this$state2 !== void 0 && _this$state2.hidePrices || (_this$state3 = _this.state) !== null && _this$state3 !== void 0 && _this$state3.hideConfigPricePreview));
|
|
48029
48043
|
case 2:
|
|
48030
|
-
retValues =
|
|
48044
|
+
retValues = _context2.sent;
|
|
48031
48045
|
(_this$updateConfigIte = _this.updateConfigItems) === null || _this$updateConfigIte === void 0 || _this$updateConfigIte.call(_this, configStepKey, retValues.configItems, retValues.selectedItems, retValues.actStepName, retValues.paletteType, retValues.filterType, paletteId, isUpdate, retValues.visible, retValues.stepInfo, retValues.isRenderedInAccessorieStep, retValues.isRenderedNotInSettingPalette, retValues.optionCodex, retValues.notTotallyMatichingOPVs, retValues.isMultiselect, retValues.groupsDefaultClosed, retValues.contentItemId, retValues.conceptFilter, retValues.contentItemTeaser, retValues.description);
|
|
48032
48046
|
case 4:
|
|
48033
48047
|
case "end":
|
|
48034
|
-
return
|
|
48048
|
+
return _context2.stop();
|
|
48035
48049
|
}
|
|
48036
|
-
},
|
|
48050
|
+
}, _callee2);
|
|
48037
48051
|
}));
|
|
48038
48052
|
return function (_x, _x2, _x3, _x4) {
|
|
48039
|
-
return
|
|
48053
|
+
return _ref2.apply(this, arguments);
|
|
48040
48054
|
};
|
|
48041
48055
|
}());
|
|
48042
48056
|
/**
|
|
48043
48057
|
* this function laods the summary Items
|
|
48044
48058
|
*/
|
|
48045
|
-
_defineProperty(this, "loadSummaryItems", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
48059
|
+
_defineProperty(this, "loadSummaryItems", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
48046
48060
|
var _this$actions, _this$actions$toggleL, _this$updateSummaryIt, _this$actions2, _this$actions2$toggle;
|
|
48047
48061
|
var setPriceCurrency, setPriceFormat, summaryItems;
|
|
48048
|
-
return _regeneratorRuntime.wrap(function
|
|
48049
|
-
while (1) switch (
|
|
48062
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
48063
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
48050
48064
|
case 0:
|
|
48051
48065
|
setPriceCurrency = setHandlerInstance.getActSetPriceFormat(_this.actSet());
|
|
48052
48066
|
setPriceFormat = undefined;
|
|
@@ -48057,17 +48071,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48057
48071
|
}
|
|
48058
48072
|
//Do also pass the correct price format
|
|
48059
48073
|
(_this$actions = _this.actions) === null || _this$actions === void 0 || (_this$actions$toggleL = _this$actions.toggleLoading) === null || _this$actions$toggleL === void 0 || _this$actions$toggleL.call(_this$actions, 'SUMMARY');
|
|
48060
|
-
|
|
48074
|
+
_context3.next = 6;
|
|
48061
48075
|
return summaryHandlerInstance.getSummaryItems(_this.sets, _this.doConfigure.bind(_this));
|
|
48062
48076
|
case 6:
|
|
48063
|
-
summaryItems =
|
|
48077
|
+
summaryItems = _context3.sent;
|
|
48064
48078
|
(_this$updateSummaryIt = _this.updateSummaryItems) === null || _this$updateSummaryIt === void 0 || _this$updateSummaryIt.call(_this, summaryItems, setPriceFormat, summaryHandlerInstance.getSummaryStepWarning(_this.actSet(), summaryItems));
|
|
48065
48079
|
(_this$actions2 = _this.actions) === null || _this$actions2 === void 0 || (_this$actions2$toggle = _this$actions2.toggleLoading) === null || _this$actions2$toggle === void 0 || _this$actions2$toggle.call(_this$actions2, 'SUMMARY');
|
|
48066
48080
|
case 9:
|
|
48067
48081
|
case "end":
|
|
48068
|
-
return
|
|
48082
|
+
return _context3.stop();
|
|
48069
48083
|
}
|
|
48070
|
-
},
|
|
48084
|
+
}, _callee3);
|
|
48071
48085
|
})));
|
|
48072
48086
|
_defineProperty(this, "loadStaticRoomList", function (dontUpdateView) {
|
|
48073
48087
|
var _this$updateStaticRoo2;
|
|
@@ -48098,41 +48112,41 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48098
48112
|
* @param parentElement ElementID of the parent element used for docking
|
|
48099
48113
|
*/
|
|
48100
48114
|
_defineProperty(this, "addPlannerElement", /*#__PURE__*/function () {
|
|
48101
|
-
var
|
|
48115
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(elementCodex, initParams, dontUpdateView) {
|
|
48102
48116
|
var _this$actions3, _this$actions3$toggle, _this$actions6, _this$actions6$toggle, _this$updateViewPlann, _this$updateElementSe;
|
|
48103
48117
|
var set, newArticle, _this$actions4, _this$actions4$openMo, _this$i18n, _this$i18n2, _this$actions5, _this$actions5$toggle, baseArticle;
|
|
48104
|
-
return _regeneratorRuntime.wrap(function
|
|
48105
|
-
while (1) switch (
|
|
48118
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
48119
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
48106
48120
|
case 0:
|
|
48107
48121
|
set = _this.actSet();
|
|
48108
48122
|
(_this$actions3 = _this.actions) === null || _this$actions3 === void 0 || (_this$actions3$toggle = _this$actions3.toggleLoading) === null || _this$actions3$toggle === void 0 || _this$actions3$toggle.call(_this$actions3, 'plannElement' + elementCodex, false, true);
|
|
48109
|
-
|
|
48110
|
-
|
|
48123
|
+
_context4.prev = 2;
|
|
48124
|
+
_context4.next = 5;
|
|
48111
48125
|
return setHandlerInstance.addPlannerElement(set, elementCodex, initParams);
|
|
48112
48126
|
case 5:
|
|
48113
|
-
newArticle =
|
|
48114
|
-
|
|
48127
|
+
newArticle = _context4.sent;
|
|
48128
|
+
_context4.next = 13;
|
|
48115
48129
|
break;
|
|
48116
48130
|
case 8:
|
|
48117
|
-
|
|
48118
|
-
|
|
48131
|
+
_context4.prev = 8;
|
|
48132
|
+
_context4.t0 = _context4["catch"](2);
|
|
48119
48133
|
(_this$actions4 = _this.actions) === null || _this$actions4 === void 0 || (_this$actions4$openMo = _this$actions4.openModal) === null || _this$actions4$openMo === void 0 || _this$actions4$openMo.call(_this$actions4, {
|
|
48120
48134
|
accept: true,
|
|
48121
48135
|
title: (_this$i18n = _this.i18n()) === null || _this$i18n === void 0 ? void 0 : _this$i18n.t('Error'),
|
|
48122
|
-
text: (
|
|
48136
|
+
text: (_context4.t0 !== null && _context4.t0 !== void 0 && _context4.t0.message ? _context4.t0.message : (_this$i18n2 = _this.i18n()) === null || _this$i18n2 === void 0 ? void 0 : _this$i18n2.t('modal.errorcode')) + ':' + DivaUtils.getCurrentTraceId() + ' ' + DivaUtils.formatDate(new Date(), true, undefined, true)
|
|
48123
48137
|
});
|
|
48124
48138
|
(_this$actions5 = _this.actions) === null || _this$actions5 === void 0 || (_this$actions5$toggle = _this$actions5.toggleLoading) === null || _this$actions5$toggle === void 0 || _this$actions5$toggle.call(_this$actions5, 'plannElement' + elementCodex, false, false);
|
|
48125
|
-
throw new Error(
|
|
48139
|
+
throw new Error(_context4.t0);
|
|
48126
48140
|
case 13:
|
|
48127
48141
|
(_this$actions6 = _this.actions) === null || _this$actions6 === void 0 || (_this$actions6$toggle = _this$actions6.toggleLoading) === null || _this$actions6$toggle === void 0 || _this$actions6$toggle.call(_this$actions6, 'plannElement' + elementCodex, false, false);
|
|
48128
48142
|
if (!newArticle.toDeleteAfterInit) {
|
|
48129
|
-
|
|
48143
|
+
_context4.next = 18;
|
|
48130
48144
|
break;
|
|
48131
48145
|
}
|
|
48132
|
-
|
|
48146
|
+
_context4.next = 17;
|
|
48133
48147
|
return _this.deletePlannerElement(newArticle.setId, newArticle.elementId, true);
|
|
48134
48148
|
case 17:
|
|
48135
|
-
return
|
|
48149
|
+
return _context4.abrupt("return", newArticle.doNotDeleteAccWhenNotDocked ? 'AccessoireNotVisualized' : 'AccessorieNoFreeSpace');
|
|
48136
48150
|
case 18:
|
|
48137
48151
|
_this.updateConfigStructure();
|
|
48138
48152
|
(_this$updateViewPlann = _this.updateViewPlannerElements) === null || _this$updateViewPlann === void 0 || _this$updateViewPlann.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
@@ -48144,15 +48158,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48144
48158
|
if (!dontUpdateView) (_this$updateElementSe = _this.updateElementSelectionPlanner) === null || _this$updateElementSe === void 0 || _this$updateElementSe.call(_this, [baseArticle.setId], [baseArticle.elementId], true);
|
|
48145
48159
|
_this.checkMatchingProducts('onAdd');
|
|
48146
48160
|
_this.plannerChangeLog('onAddPlanner');
|
|
48147
|
-
return
|
|
48161
|
+
return _context4.abrupt("return", 'ElementAdded');
|
|
48148
48162
|
case 29:
|
|
48149
48163
|
case "end":
|
|
48150
|
-
return
|
|
48164
|
+
return _context4.stop();
|
|
48151
48165
|
}
|
|
48152
|
-
},
|
|
48166
|
+
}, _callee4, null, [[2, 8]]);
|
|
48153
48167
|
}));
|
|
48154
48168
|
return function (_x5, _x6, _x7) {
|
|
48155
|
-
return
|
|
48169
|
+
return _ref4.apply(this, arguments);
|
|
48156
48170
|
};
|
|
48157
48171
|
}());
|
|
48158
48172
|
/**
|
|
@@ -48162,27 +48176,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48162
48176
|
* @param articleCodex articleCodex of the new Element
|
|
48163
48177
|
*/
|
|
48164
48178
|
_defineProperty(this, "switchPlannerElement", /*#__PURE__*/function () {
|
|
48165
|
-
var
|
|
48179
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(setId, elementId, articleCodex, initParams) {
|
|
48166
48180
|
var _this$actions7, _this$actions7$toggle, _this$actions8, _this$actions8$toggle, _this$updateViewPlann2, _this$updateElementSe2;
|
|
48167
48181
|
var set, variantValues, deletionResult, article;
|
|
48168
|
-
return _regeneratorRuntime.wrap(function
|
|
48169
|
-
while (1) switch (
|
|
48182
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
48183
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
48170
48184
|
case 0:
|
|
48171
48185
|
_this.setActSet(setId);
|
|
48172
48186
|
set = _this.actSet();
|
|
48173
48187
|
variantValues = setHandlerInstance.getVariantValuesOfElement(set, elementId);
|
|
48174
|
-
|
|
48188
|
+
_context5.next = 5;
|
|
48175
48189
|
return setHandlerInstance.deleteElementFromSetByElemId(set, elementId);
|
|
48176
48190
|
case 5:
|
|
48177
|
-
deletionResult =
|
|
48191
|
+
deletionResult = _context5.sent;
|
|
48178
48192
|
(_this$actions7 = _this.actions) === null || _this$actions7 === void 0 || (_this$actions7$toggle = _this$actions7.toggleLoading) === null || _this$actions7$toggle === void 0 || _this$actions7$toggle.call(_this$actions7, 'plannerswitch' + articleCodex, false, true);
|
|
48179
48193
|
initParams.oldPlannerTransform = deletionResult.oldTransform;
|
|
48180
48194
|
initParams.variantValues = _objectSpread$8(_objectSpread$8({}, variantValues), {}, _defineProperty({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPV' : '') + articleCodex));
|
|
48181
|
-
|
|
48195
|
+
_context5.next = 11;
|
|
48182
48196
|
return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
|
|
48183
48197
|
case 11:
|
|
48184
|
-
article =
|
|
48185
|
-
|
|
48198
|
+
article = _context5.sent;
|
|
48199
|
+
_context5.next = 14;
|
|
48186
48200
|
return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, article.getValidValues(article.VariantValues, undefined, true), [article.basketId], undefined, 'initializing');
|
|
48187
48201
|
case 14:
|
|
48188
48202
|
(_this$actions8 = _this.actions) === null || _this$actions8 === void 0 || (_this$actions8$toggle = _this$actions8.toggleLoading) === null || _this$actions8$toggle === void 0 || _this$actions8$toggle.call(_this$actions8, 'plannerswitch' + articleCodex, false, false);
|
|
@@ -48197,29 +48211,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48197
48211
|
_this.plannerChangeLog('onSwitchPlanner');
|
|
48198
48212
|
case 24:
|
|
48199
48213
|
case "end":
|
|
48200
|
-
return
|
|
48214
|
+
return _context5.stop();
|
|
48201
48215
|
}
|
|
48202
|
-
},
|
|
48216
|
+
}, _callee5);
|
|
48203
48217
|
}));
|
|
48204
48218
|
return function (_x8, _x9, _x10, _x11) {
|
|
48205
|
-
return
|
|
48219
|
+
return _ref5.apply(this, arguments);
|
|
48206
48220
|
};
|
|
48207
48221
|
}());
|
|
48208
48222
|
_defineProperty(this, "addAccessorieOnShelfPlanner", /*#__PURE__*/function () {
|
|
48209
|
-
var
|
|
48223
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(paletteId, gridIndex, cellIndex, parentBasketId, configStepKey, partlistCodexToInit) {
|
|
48210
48224
|
var _this$actions9, _this$actions9$toggle, _this$actions10, _this$actions10$toggl;
|
|
48211
48225
|
var set, retVal, _this$updateViewPlann3;
|
|
48212
|
-
return _regeneratorRuntime.wrap(function
|
|
48213
|
-
while (1) switch (
|
|
48226
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
48227
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
48214
48228
|
case 0:
|
|
48215
48229
|
set = _this.actSet();
|
|
48216
48230
|
(_this$actions9 = _this.actions) === null || _this$actions9 === void 0 || (_this$actions9$toggle = _this$actions9.toggleLoading) === null || _this$actions9$toggle === void 0 || _this$actions9$toggle.call(_this$actions9, 'LoadingArticle', false, true);
|
|
48217
|
-
|
|
48231
|
+
_context6.next = 4;
|
|
48218
48232
|
return setHandlerInstance.addAccessorieOnShelfPlanner(set, gridIndex, cellIndex, parentBasketId, {
|
|
48219
48233
|
partlistCodexToInit: partlistCodexToInit
|
|
48220
48234
|
});
|
|
48221
48235
|
case 4:
|
|
48222
|
-
retVal =
|
|
48236
|
+
retVal = _context6.sent;
|
|
48223
48237
|
(_this$actions10 = _this.actions) === null || _this$actions10 === void 0 || (_this$actions10$toggl = _this$actions10.toggleLoading) === null || _this$actions10$toggl === void 0 || _this$actions10$toggl.call(_this$actions10, 'LoadingArticle', false, false);
|
|
48224
48238
|
if (retVal !== false) {
|
|
48225
48239
|
_this.loadShelfPlannerItems(paletteId, configStepKey, 'add_accessoire');
|
|
@@ -48231,29 +48245,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48231
48245
|
}
|
|
48232
48246
|
_this.checkMatchingProducts('onShelfAdd');
|
|
48233
48247
|
_this.plannerChangeLog('onAddPlanner');
|
|
48234
|
-
return
|
|
48248
|
+
return _context6.abrupt("return", retVal);
|
|
48235
48249
|
case 10:
|
|
48236
48250
|
case "end":
|
|
48237
|
-
return
|
|
48251
|
+
return _context6.stop();
|
|
48238
48252
|
}
|
|
48239
|
-
},
|
|
48253
|
+
}, _callee6);
|
|
48240
48254
|
}));
|
|
48241
48255
|
return function (_x12, _x13, _x14, _x15, _x16, _x17) {
|
|
48242
|
-
return
|
|
48256
|
+
return _ref6.apply(this, arguments);
|
|
48243
48257
|
};
|
|
48244
48258
|
}());
|
|
48245
48259
|
_defineProperty(this, "moveShelfItem", /*#__PURE__*/function () {
|
|
48246
|
-
var
|
|
48260
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(paletteId, grid, initialIndex, finalIndex, configStepKey) {
|
|
48247
48261
|
var _this$updateViewPlann4;
|
|
48248
48262
|
var set, result, _this$updatePlannerMs, _this$i18n3;
|
|
48249
|
-
return _regeneratorRuntime.wrap(function
|
|
48250
|
-
while (1) switch (
|
|
48263
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
48264
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
48251
48265
|
case 0:
|
|
48252
48266
|
set = _this.actSet();
|
|
48253
|
-
|
|
48267
|
+
_context7.next = 3;
|
|
48254
48268
|
return setHandlerInstance.moveShelfItem(set, grid, initialIndex, finalIndex);
|
|
48255
48269
|
case 3:
|
|
48256
|
-
result =
|
|
48270
|
+
result = _context7.sent;
|
|
48257
48271
|
if (result == 'RESETTED_CELLS') {
|
|
48258
48272
|
(_this$updatePlannerMs = _this.updatePlannerMsgContainer) === null || _this$updatePlannerMs === void 0 || _this$updatePlannerMs.call(_this, 'COULD_NOT_MOVE_SHELVES', true, 'INFO', (_this$i18n3 = _this.i18n()) === null || _this$i18n3 === void 0 ? void 0 : _this$i18n3.t('configurator.move_resetted'), true);
|
|
48259
48273
|
}
|
|
@@ -48263,12 +48277,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48263
48277
|
_this.updatePlannerView('MOVE_SHELF_ITEM');
|
|
48264
48278
|
case 9:
|
|
48265
48279
|
case "end":
|
|
48266
|
-
return
|
|
48280
|
+
return _context7.stop();
|
|
48267
48281
|
}
|
|
48268
|
-
},
|
|
48282
|
+
}, _callee7);
|
|
48269
48283
|
}));
|
|
48270
48284
|
return function (_x18, _x19, _x20, _x21, _x22) {
|
|
48271
|
-
return
|
|
48285
|
+
return _ref7.apply(this, arguments);
|
|
48272
48286
|
};
|
|
48273
48287
|
}());
|
|
48274
48288
|
_defineProperty(this, "moveDoors", function (movedDoor, targetDoor) {
|
|
@@ -48276,14 +48290,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48276
48290
|
_this.updatePlannerView('MOVE_DOORS');
|
|
48277
48291
|
});
|
|
48278
48292
|
_defineProperty(this, "deleteAccessorieOnShelfPlanner", /*#__PURE__*/function () {
|
|
48279
|
-
var
|
|
48293
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(paletteId, gridIndex, cellIndex, parentBasketId, configStepKey) {
|
|
48280
48294
|
var _this$updateViewPlann5;
|
|
48281
48295
|
var set;
|
|
48282
|
-
return _regeneratorRuntime.wrap(function
|
|
48283
|
-
while (1) switch (
|
|
48296
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
48297
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
48284
48298
|
case 0:
|
|
48285
48299
|
set = _this.actSet();
|
|
48286
|
-
|
|
48300
|
+
_context8.next = 3;
|
|
48287
48301
|
return setHandlerInstance.deleteAccessorieOnShelfPlanner(set, gridIndex, cellIndex, parentBasketId);
|
|
48288
48302
|
case 3:
|
|
48289
48303
|
_this.updateConfigStructure();
|
|
@@ -48296,12 +48310,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48296
48310
|
_this.plannerChangeLog('onDeletePlanner');
|
|
48297
48311
|
case 11:
|
|
48298
48312
|
case "end":
|
|
48299
|
-
return
|
|
48313
|
+
return _context8.stop();
|
|
48300
48314
|
}
|
|
48301
|
-
},
|
|
48315
|
+
}, _callee8);
|
|
48302
48316
|
}));
|
|
48303
48317
|
return function (_x23, _x24, _x25, _x26, _x27) {
|
|
48304
|
-
return
|
|
48318
|
+
return _ref8.apply(this, arguments);
|
|
48305
48319
|
};
|
|
48306
48320
|
}());
|
|
48307
48321
|
/**
|
|
@@ -48312,12 +48326,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48312
48326
|
* @param transState
|
|
48313
48327
|
*/
|
|
48314
48328
|
_defineProperty(this, "updatePlannerTrans", /*#__PURE__*/function () {
|
|
48315
|
-
var
|
|
48329
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(setId, plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance) {
|
|
48316
48330
|
var _this$updateElementSe3;
|
|
48317
|
-
return _regeneratorRuntime.wrap(function
|
|
48318
|
-
while (1) switch (
|
|
48331
|
+
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
48332
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
48319
48333
|
case 0:
|
|
48320
|
-
|
|
48334
|
+
_context9.next = 2;
|
|
48321
48335
|
return setHandlerInstance.updatePlannerTrans(_this.actSet(), plannerElementID, deltaMove, deltaAngleDeg, rotCorrection, transState, autoDockingDistance);
|
|
48322
48336
|
case 2:
|
|
48323
48337
|
if (transState == 'END') {
|
|
@@ -48326,12 +48340,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48326
48340
|
}
|
|
48327
48341
|
case 3:
|
|
48328
48342
|
case "end":
|
|
48329
|
-
return
|
|
48343
|
+
return _context9.stop();
|
|
48330
48344
|
}
|
|
48331
|
-
},
|
|
48345
|
+
}, _callee9);
|
|
48332
48346
|
}));
|
|
48333
48347
|
return function (_x28, _x29, _x30, _x31, _x32, _x33, _x34) {
|
|
48334
|
-
return
|
|
48348
|
+
return _ref9.apply(this, arguments);
|
|
48335
48349
|
};
|
|
48336
48350
|
}());
|
|
48337
48351
|
/**
|
|
@@ -48350,18 +48364,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48350
48364
|
}
|
|
48351
48365
|
});
|
|
48352
48366
|
_defineProperty(this, "updateAccessoireQuantity", /*#__PURE__*/function () {
|
|
48353
|
-
var
|
|
48367
|
+
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle) {
|
|
48354
48368
|
var _this$actions11, _this$actions11$toggl, _this$actions12, _this$actions12$toggl;
|
|
48355
48369
|
var set, ret;
|
|
48356
|
-
return _regeneratorRuntime.wrap(function
|
|
48357
|
-
while (1) switch (
|
|
48370
|
+
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
48371
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
48358
48372
|
case 0:
|
|
48359
48373
|
set = _this.actSet();
|
|
48360
48374
|
(_this$actions11 = _this.actions) === null || _this$actions11 === void 0 || (_this$actions11$toggl = _this$actions11.toggleLoading) === null || _this$actions11$toggl === void 0 || _this$actions11$toggl.call(_this$actions11, 'LoadingArticles_' + accessoireItem.articleCodex, false, true);
|
|
48361
|
-
|
|
48375
|
+
_context10.next = 4;
|
|
48362
48376
|
return setHandlerInstance.updateAccessoireQuantity(set, accessoireItem, relatedToBasketId, newQuantity, forceConfigSingle);
|
|
48363
48377
|
case 4:
|
|
48364
|
-
ret =
|
|
48378
|
+
ret = _context10.sent;
|
|
48365
48379
|
(_this$actions12 = _this.actions) === null || _this$actions12 === void 0 || (_this$actions12$toggl = _this$actions12.toggleLoading) === null || _this$actions12$toggl === void 0 || _this$actions12$toggl.call(_this$actions12, 'LoadingArticles_' + accessoireItem.articleCodex, false, false);
|
|
48366
48380
|
if (ret.somethingChanged) _this.updateConfigStructure();
|
|
48367
48381
|
_this.updatePlannerView('UPDATE_ACC_QUANTITY');
|
|
@@ -48371,25 +48385,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48371
48385
|
_this.plannerChangeLog('onUpdateAccessoireQuantity');
|
|
48372
48386
|
case 12:
|
|
48373
48387
|
case "end":
|
|
48374
|
-
return
|
|
48388
|
+
return _context10.stop();
|
|
48375
48389
|
}
|
|
48376
|
-
},
|
|
48390
|
+
}, _callee10);
|
|
48377
48391
|
}));
|
|
48378
48392
|
return function (_x35, _x36, _x37, _x38) {
|
|
48379
|
-
return
|
|
48393
|
+
return _ref10.apply(this, arguments);
|
|
48380
48394
|
};
|
|
48381
48395
|
}());
|
|
48382
48396
|
_defineProperty(this, "deleteAccessoire", /*#__PURE__*/function () {
|
|
48383
|
-
var
|
|
48397
|
+
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(articleCodex, parentBasketId) {
|
|
48384
48398
|
var set, wasDeleted, _this$updateViewPlann6;
|
|
48385
|
-
return _regeneratorRuntime.wrap(function
|
|
48386
|
-
while (1) switch (
|
|
48399
|
+
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
48400
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
48387
48401
|
case 0:
|
|
48388
48402
|
set = _this.actSet();
|
|
48389
|
-
|
|
48403
|
+
_context11.next = 3;
|
|
48390
48404
|
return setHandlerInstance.deleteAccessoire(set, articleCodex, parentBasketId);
|
|
48391
48405
|
case 3:
|
|
48392
|
-
wasDeleted =
|
|
48406
|
+
wasDeleted = _context11.sent;
|
|
48393
48407
|
if (wasDeleted) {
|
|
48394
48408
|
_this.updateConfigStructure();
|
|
48395
48409
|
(_this$updateViewPlann6 = _this.updateViewPlannerElements) === null || _this$updateViewPlann6 === void 0 || _this$updateViewPlann6.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
@@ -48399,15 +48413,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48399
48413
|
}
|
|
48400
48414
|
_this.checkMatchingProducts('onAccessoireDelete');
|
|
48401
48415
|
_this.plannerChangeLog('onDeletePlanner');
|
|
48402
|
-
return
|
|
48416
|
+
return _context11.abrupt("return", wasDeleted);
|
|
48403
48417
|
case 8:
|
|
48404
48418
|
case "end":
|
|
48405
|
-
return
|
|
48419
|
+
return _context11.stop();
|
|
48406
48420
|
}
|
|
48407
|
-
},
|
|
48421
|
+
}, _callee11);
|
|
48408
48422
|
}));
|
|
48409
48423
|
return function (_x39, _x40) {
|
|
48410
|
-
return
|
|
48424
|
+
return _ref11.apply(this, arguments);
|
|
48411
48425
|
};
|
|
48412
48426
|
}());
|
|
48413
48427
|
_defineProperty(this, "loadPaletteInfos", function (configStepKey, activeArticles, targetArticles) {
|
|
@@ -48429,13 +48443,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48429
48443
|
* @param configStepKey act ConfigStep
|
|
48430
48444
|
*/
|
|
48431
48445
|
_defineProperty(this, "configSingleIsChanged", /*#__PURE__*/function () {
|
|
48432
|
-
var
|
|
48446
|
+
var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(doConfigSingle, configStepKey, groupedOptions, groupedArticles, optionCodex, tabGroupKey) {
|
|
48433
48447
|
var set;
|
|
48434
|
-
return _regeneratorRuntime.wrap(function
|
|
48435
|
-
while (1) switch (
|
|
48448
|
+
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
48449
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
48436
48450
|
case 0:
|
|
48437
48451
|
set = _this.actSet();
|
|
48438
|
-
|
|
48452
|
+
_context12.next = 3;
|
|
48439
48453
|
return setHandlerInstance.configSingleIsChanged(set, doConfigSingle, groupedOptions, groupedArticles);
|
|
48440
48454
|
case 3:
|
|
48441
48455
|
_this.updatePriceInView();
|
|
@@ -48445,15 +48459,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48445
48459
|
configStepKey = setHandlerInstance.getNewConfigStepKeyInOption(set, configStepKey, optionCodex, tabGroupKey);
|
|
48446
48460
|
_this.updatePlannerView('CONFIG_SINGLE_IS_CHANGED');
|
|
48447
48461
|
}
|
|
48448
|
-
return
|
|
48462
|
+
return _context12.abrupt("return", configStepKey);
|
|
48449
48463
|
case 7:
|
|
48450
48464
|
case "end":
|
|
48451
|
-
return
|
|
48465
|
+
return _context12.stop();
|
|
48452
48466
|
}
|
|
48453
|
-
},
|
|
48467
|
+
}, _callee12);
|
|
48454
48468
|
}));
|
|
48455
48469
|
return function (_x41, _x42, _x43, _x44, _x45, _x46) {
|
|
48456
|
-
return
|
|
48470
|
+
return _ref12.apply(this, arguments);
|
|
48457
48471
|
};
|
|
48458
48472
|
}());
|
|
48459
48473
|
/**
|
|
@@ -48467,23 +48481,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48467
48481
|
*/
|
|
48468
48482
|
//onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
|
|
48469
48483
|
_defineProperty(this, "doConfigure", /*#__PURE__*/function () {
|
|
48470
|
-
var
|
|
48484
|
+
var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents, eventKey) {
|
|
48471
48485
|
var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
|
|
48472
48486
|
var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
|
|
48473
|
-
return _regeneratorRuntime.wrap(function
|
|
48474
|
-
while (1) switch (
|
|
48487
|
+
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
48488
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
48475
48489
|
case 0:
|
|
48476
48490
|
set = _this.actSet();
|
|
48477
48491
|
(_this$actions13 = _this.actions) === null || _this$actions13 === void 0 || (_this$actions13$toggl = _this$actions13.toggleLoading) === null || _this$actions13$toggl === void 0 || _this$actions13$toggl.call(_this$actions13, 'doConfigure', false, true);
|
|
48478
|
-
|
|
48492
|
+
_context13.next = 4;
|
|
48479
48493
|
return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, myValues, targetArticles, undefined, 'FromViewClick');
|
|
48480
48494
|
case 4:
|
|
48481
|
-
returnValues =
|
|
48495
|
+
returnValues = _context13.sent;
|
|
48482
48496
|
(_this$actions14 = _this.actions) === null || _this$actions14 === void 0 || (_this$actions14$toggl = _this$actions14.toggleLoading) === null || _this$actions14$toggl === void 0 || _this$actions14$toggl.call(_this$actions14, 'doConfigure', false, false);
|
|
48483
48497
|
structure = setHandlerInstance.loadConfigStructureOfActSet(set, _this.getCurPlannerType());
|
|
48484
48498
|
_this.checkMatchingProducts('onConfig');
|
|
48485
48499
|
if (dontUpdatePlannerView) {
|
|
48486
|
-
|
|
48500
|
+
_context13.next = 18;
|
|
48487
48501
|
break;
|
|
48488
48502
|
}
|
|
48489
48503
|
_this.updateConfiguratorStructure(structure);
|
|
@@ -48497,80 +48511,80 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48497
48511
|
_this.updateViewButtonsDependigOnConfigStructure();
|
|
48498
48512
|
_this.updatePlannerView('DO_CONFIGURE', myValues);
|
|
48499
48513
|
_this.updateWebConfiguratorTitle();
|
|
48500
|
-
|
|
48514
|
+
_context13.next = 18;
|
|
48501
48515
|
return _this.getFreePlacesOnGrids(undefined, 'doConfigure');
|
|
48502
48516
|
case 18:
|
|
48503
48517
|
if (dontCallEvents) {
|
|
48504
|
-
|
|
48518
|
+
_context13.next = 21;
|
|
48505
48519
|
break;
|
|
48506
48520
|
}
|
|
48507
|
-
|
|
48521
|
+
_context13.next = 21;
|
|
48508
48522
|
return _this.fillBaksetforOnWebPlanerConfigChange(myValues, undefined, eventKey);
|
|
48509
48523
|
case 21:
|
|
48510
48524
|
_this.configuratorChangeLog('onConfigurationChange', myValues);
|
|
48511
48525
|
case 22:
|
|
48512
48526
|
case "end":
|
|
48513
|
-
return
|
|
48527
|
+
return _context13.stop();
|
|
48514
48528
|
}
|
|
48515
|
-
},
|
|
48529
|
+
}, _callee13);
|
|
48516
48530
|
}));
|
|
48517
48531
|
return function (_x47, _x48, _x49, _x50, _x51) {
|
|
48518
|
-
return
|
|
48532
|
+
return _ref13.apply(this, arguments);
|
|
48519
48533
|
};
|
|
48520
48534
|
}());
|
|
48521
48535
|
_defineProperty(this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
|
|
48522
|
-
var
|
|
48536
|
+
var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(myValues, isInit, eventKey) {
|
|
48523
48537
|
var _myValues;
|
|
48524
48538
|
var set, articles, article;
|
|
48525
|
-
return _regeneratorRuntime.wrap(function
|
|
48526
|
-
while (1) switch (
|
|
48539
|
+
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
48540
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
48527
48541
|
case 0:
|
|
48528
48542
|
if (_this.eventIsManagedByClient('onWebPlanerConfigChange')) {
|
|
48529
|
-
|
|
48543
|
+
_context14.next = 2;
|
|
48530
48544
|
break;
|
|
48531
48545
|
}
|
|
48532
|
-
return
|
|
48546
|
+
return _context14.abrupt("return");
|
|
48533
48547
|
case 2:
|
|
48534
48548
|
set = _this.actSet();
|
|
48535
48549
|
if (set) {
|
|
48536
|
-
|
|
48550
|
+
_context14.next = 5;
|
|
48537
48551
|
break;
|
|
48538
48552
|
}
|
|
48539
|
-
return
|
|
48553
|
+
return _context14.abrupt("return");
|
|
48540
48554
|
case 5:
|
|
48541
48555
|
if (!(!myValues || eventKey !== null && eventKey !== void 0 && eventKey.endsWith('repairing'))) {
|
|
48542
|
-
|
|
48556
|
+
_context14.next = 11;
|
|
48543
48557
|
break;
|
|
48544
48558
|
}
|
|
48545
48559
|
//get first option of the first article
|
|
48546
48560
|
articles = set.getDivaArticles();
|
|
48547
48561
|
article = articles[Object.keys(articles)[0]];
|
|
48548
48562
|
if (article) {
|
|
48549
|
-
|
|
48563
|
+
_context14.next = 10;
|
|
48550
48564
|
break;
|
|
48551
48565
|
}
|
|
48552
|
-
return
|
|
48566
|
+
return _context14.abrupt("return");
|
|
48553
48567
|
case 10:
|
|
48554
48568
|
myValues = article === null || article === void 0 ? void 0 : article.VariantValuesWithoutEmptyFreetext;
|
|
48555
48569
|
case 11:
|
|
48556
|
-
|
|
48557
|
-
|
|
48558
|
-
|
|
48570
|
+
_context14.t0 = _this.divaBasketHandler;
|
|
48571
|
+
_context14.t1 = set;
|
|
48572
|
+
_context14.next = 15;
|
|
48559
48573
|
return setHandlerInstance.fillOrderLinesAndOrderSets(_this.sets, _this.divaBasketHandler, true, _this.doAllowSetPlanner(), _this.ReturnTo);
|
|
48560
48574
|
case 15:
|
|
48561
|
-
|
|
48562
|
-
|
|
48563
|
-
|
|
48564
|
-
|
|
48565
|
-
return
|
|
48575
|
+
_context14.t2 = _context14.sent;
|
|
48576
|
+
_context14.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
|
|
48577
|
+
_context14.t4 = isInit;
|
|
48578
|
+
_context14.t5 = eventKey;
|
|
48579
|
+
return _context14.abrupt("return", _context14.t0.fillBaksetforOnWebPlanerConfigChange.call(_context14.t0, _context14.t1, _context14.t2, _context14.t3, _context14.t4, _context14.t5));
|
|
48566
48580
|
case 20:
|
|
48567
48581
|
case "end":
|
|
48568
|
-
return
|
|
48582
|
+
return _context14.stop();
|
|
48569
48583
|
}
|
|
48570
|
-
},
|
|
48584
|
+
}, _callee14);
|
|
48571
48585
|
}));
|
|
48572
48586
|
return function (_x52, _x53, _x54) {
|
|
48573
|
-
return
|
|
48587
|
+
return _ref14.apply(this, arguments);
|
|
48574
48588
|
};
|
|
48575
48589
|
}());
|
|
48576
48590
|
_defineProperty(this, "getPosNr", function (basketId) {
|
|
@@ -48608,10 +48622,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48608
48622
|
return _createClass(DivaWebPlanner, [{
|
|
48609
48623
|
key: "initialize",
|
|
48610
48624
|
value: function () {
|
|
48611
|
-
var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
48625
|
+
var _initialize = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(cache) {
|
|
48612
48626
|
var viewReadyPromise, loadSuccessful, ret, set, _this$actions15, _this$i18n4, _this$i18n5, initializationId;
|
|
48613
|
-
return _regeneratorRuntime.wrap(function
|
|
48614
|
-
while (1) switch (
|
|
48627
|
+
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
48628
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
48615
48629
|
case 0:
|
|
48616
48630
|
this.api = new DivaApiHandler(this.plannerConfig, this.handler, cache);
|
|
48617
48631
|
this.api.setI18n(this.i18n);
|
|
@@ -48625,15 +48639,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48625
48639
|
warningTime: 2000,
|
|
48626
48640
|
errorTime: 4000
|
|
48627
48641
|
});
|
|
48628
|
-
|
|
48642
|
+
_context15.next = 8;
|
|
48629
48643
|
return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
|
|
48630
48644
|
case 8:
|
|
48631
48645
|
this.plannerHandler = new DivaPlannerHandler(false);
|
|
48632
48646
|
viewReadyPromise = this.initViewApiDependencies();
|
|
48633
|
-
|
|
48647
|
+
_context15.next = 12;
|
|
48634
48648
|
return this.divaBasketHandler.initializeBasket(this.api);
|
|
48635
48649
|
case 12:
|
|
48636
|
-
loadSuccessful =
|
|
48650
|
+
loadSuccessful = _context15.sent;
|
|
48637
48651
|
if (this.plannerConfig.configuratorSessionId) {
|
|
48638
48652
|
// ID forced from outside (Landingpage, PDP, Planung-ändern)
|
|
48639
48653
|
DivaUtils.businessMetrics.setConfiguratorSessionId(this.plannerConfig.configuratorSessionId);
|
|
@@ -48645,14 +48659,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48645
48659
|
DivaUtils.businessMetrics.setConfiguratorSessionId();
|
|
48646
48660
|
}
|
|
48647
48661
|
if (!loadSuccessful) {
|
|
48648
|
-
|
|
48662
|
+
_context15.next = 31;
|
|
48649
48663
|
break;
|
|
48650
48664
|
}
|
|
48651
|
-
|
|
48652
|
-
|
|
48665
|
+
_context15.prev = 15;
|
|
48666
|
+
_context15.next = 18;
|
|
48653
48667
|
return this.initializeSets(loadSuccessful, viewReadyPromise);
|
|
48654
48668
|
case 18:
|
|
48655
|
-
ret =
|
|
48669
|
+
ret = _context15.sent;
|
|
48656
48670
|
set = this.actSet();
|
|
48657
48671
|
if (ret && set && set.CatalogData.archived) {
|
|
48658
48672
|
if (this.i18n()) (_this$actions15 = this.actions) === null || _this$actions15 === void 0 || _this$actions15.openModal({
|
|
@@ -48661,15 +48675,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48661
48675
|
text: (_this$i18n5 = this.i18n()) === null || _this$i18n5 === void 0 ? void 0 : _this$i18n5.t('configurator.catalog_not_listed_text')
|
|
48662
48676
|
});
|
|
48663
48677
|
}
|
|
48664
|
-
return
|
|
48678
|
+
return _context15.abrupt("return", ret);
|
|
48665
48679
|
case 24:
|
|
48666
|
-
|
|
48667
|
-
|
|
48668
|
-
LOG$2.error(
|
|
48669
|
-
this.onError(
|
|
48670
|
-
return
|
|
48680
|
+
_context15.prev = 24;
|
|
48681
|
+
_context15.t0 = _context15["catch"](15);
|
|
48682
|
+
LOG$2.error(_context15.t0);
|
|
48683
|
+
this.onError(_context15.t0);
|
|
48684
|
+
return _context15.abrupt("return", false);
|
|
48671
48685
|
case 29:
|
|
48672
|
-
|
|
48686
|
+
_context15.next = 35;
|
|
48673
48687
|
break;
|
|
48674
48688
|
case 31:
|
|
48675
48689
|
this.onError();
|
|
@@ -48678,12 +48692,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48678
48692
|
LOG$2.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {
|
|
48679
48693
|
initializationId: initializationId
|
|
48680
48694
|
}, true);
|
|
48681
|
-
return
|
|
48695
|
+
return _context15.abrupt("return", false);
|
|
48682
48696
|
case 35:
|
|
48683
48697
|
case "end":
|
|
48684
|
-
return
|
|
48698
|
+
return _context15.stop();
|
|
48685
48699
|
}
|
|
48686
|
-
},
|
|
48700
|
+
}, _callee15, this, [[15, 24]]);
|
|
48687
48701
|
}));
|
|
48688
48702
|
function initialize(_x55) {
|
|
48689
48703
|
return _initialize.apply(this, arguments);
|
|
@@ -48693,50 +48707,50 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48693
48707
|
}, {
|
|
48694
48708
|
key: "initializeSets",
|
|
48695
48709
|
value: function () {
|
|
48696
|
-
var _initializeSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
48710
|
+
var _initializeSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(loadSuccessful, viewReadyPromise) {
|
|
48697
48711
|
var _this$actions17, _set$getDivaArticles, _catalogData$catalogM, _catalogData$catalogM2;
|
|
48698
48712
|
var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, _result$customData$SA, _result$customData, _result$customData2, _result$customData$SA2, _result$customData3, _result$customData4, result, _this$actions18, catalogData, initializationId, initializationType;
|
|
48699
|
-
return _regeneratorRuntime.wrap(function
|
|
48700
|
-
while (1) switch (
|
|
48713
|
+
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
48714
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
48701
48715
|
case 0:
|
|
48702
48716
|
if (!(typeof loadSuccessful != 'boolean')) {
|
|
48703
|
-
|
|
48717
|
+
_context16.next = 9;
|
|
48704
48718
|
break;
|
|
48705
48719
|
}
|
|
48706
48720
|
if (!(loadSuccessful.type == 'ProductList')) {
|
|
48707
|
-
|
|
48721
|
+
_context16.next = 9;
|
|
48708
48722
|
break;
|
|
48709
48723
|
}
|
|
48710
|
-
|
|
48724
|
+
_context16.next = 4;
|
|
48711
48725
|
return viewReadyPromise;
|
|
48712
48726
|
case 4:
|
|
48713
|
-
|
|
48727
|
+
_context16.next = 6;
|
|
48714
48728
|
return this.initView();
|
|
48715
48729
|
case 6:
|
|
48716
48730
|
this.subscribeToWebPlannerEvents();
|
|
48717
48731
|
(_this$actions16 = this.actions) === null || _this$actions16 === void 0 || (_this$actions16$toggl = _this$actions16.toggleLoading) === null || _this$actions16$toggl === void 0 || _this$actions16$toggl.call(_this$actions16, 'Planner_Loading', false, false);
|
|
48718
|
-
return
|
|
48732
|
+
return _context16.abrupt("return", true);
|
|
48719
48733
|
case 9:
|
|
48720
48734
|
this.divaNr = this.divaBasketHandler.actDivaNr;
|
|
48721
48735
|
initSetState = this.getInitStateForSet();
|
|
48722
48736
|
this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
|
|
48723
|
-
|
|
48737
|
+
_context16.next = 14;
|
|
48724
48738
|
return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
|
|
48725
48739
|
case 14:
|
|
48726
48740
|
set = this.actSet();
|
|
48727
48741
|
oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
|
|
48728
48742
|
if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
|
|
48729
|
-
|
|
48743
|
+
_context16.next = 27;
|
|
48730
48744
|
break;
|
|
48731
48745
|
}
|
|
48732
|
-
|
|
48746
|
+
_context16.next = 21;
|
|
48733
48747
|
return this.divaBasketHandler.getProduct(this.api, oldProductId);
|
|
48734
48748
|
case 21:
|
|
48735
|
-
result =
|
|
48749
|
+
result = _context16.sent;
|
|
48736
48750
|
if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
|
|
48737
48751
|
(_result$customData$SA = result === null || result === void 0 || (_result$customData = result.customData) === null || _result$customData === void 0 || (_result$customData = _result$customData.SAP) === null || _result$customData === void 0 ? void 0 : _result$customData.SAP_MARA_MATKL) !== null && _result$customData$SA !== void 0 ? _result$customData$SA : result === null || result === void 0 || (_result$customData2 = result.customData) === null || _result$customData2 === void 0 || (_result$customData2 = _result$customData2.SAP_MARA_MATKL) === null || _result$customData2 === void 0 ? void 0 : _result$customData2.value;
|
|
48738
48752
|
(_result$customData$SA2 = result === null || result === void 0 || (_result$customData3 = result.customData) === null || _result$customData3 === void 0 || (_result$customData3 = _result$customData3.SAP) === null || _result$customData3 === void 0 ? void 0 : _result$customData3.SAP_MARA_PRDHA) !== null && _result$customData$SA2 !== void 0 ? _result$customData$SA2 : result === null || result === void 0 || (_result$customData4 = result.customData) === null || _result$customData4 === void 0 || (_result$customData4 = _result$customData4.SAP_MARA_PRDHA) === null || _result$customData4 === void 0 ? void 0 : _result$customData4.value;
|
|
48739
|
-
|
|
48753
|
+
_context16.next = 28;
|
|
48740
48754
|
break;
|
|
48741
48755
|
case 27:
|
|
48742
48756
|
if (typeof loadSuccessful != 'boolean' && set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
|
|
@@ -48745,10 +48759,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48745
48759
|
}
|
|
48746
48760
|
}
|
|
48747
48761
|
case 28:
|
|
48748
|
-
|
|
48762
|
+
_context16.next = 30;
|
|
48749
48763
|
return viewReadyPromise;
|
|
48750
48764
|
case 30:
|
|
48751
|
-
|
|
48765
|
+
_context16.next = 32;
|
|
48752
48766
|
return this.initView();
|
|
48753
48767
|
case 32:
|
|
48754
48768
|
(_this$actions17 = this.actions) === null || _this$actions17 === void 0 || _this$actions17.onEvent({
|
|
@@ -48785,15 +48799,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48785
48799
|
}, false);
|
|
48786
48800
|
this.configuratorChangeLog('onConfigurationInit', undefined, true);
|
|
48787
48801
|
this.plannerChangeLog('onInitPlanner', true);
|
|
48788
|
-
|
|
48802
|
+
_context16.next = 43;
|
|
48789
48803
|
return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
|
|
48790
48804
|
case 43:
|
|
48791
|
-
return
|
|
48805
|
+
return _context16.abrupt("return", true);
|
|
48792
48806
|
case 44:
|
|
48793
48807
|
case "end":
|
|
48794
|
-
return
|
|
48808
|
+
return _context16.stop();
|
|
48795
48809
|
}
|
|
48796
|
-
},
|
|
48810
|
+
}, _callee16, this);
|
|
48797
48811
|
}));
|
|
48798
48812
|
function initializeSets(_x56, _x57) {
|
|
48799
48813
|
return _initializeSets.apply(this, arguments);
|
|
@@ -48954,24 +48968,24 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48954
48968
|
}, {
|
|
48955
48969
|
key: "initView",
|
|
48956
48970
|
value: (function () {
|
|
48957
|
-
var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
48971
|
+
var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17() {
|
|
48958
48972
|
var _this$initConfigurato;
|
|
48959
48973
|
var set, plannerMode, _this$initConfigurato2, _this$initPlannerView, _this$initConfigurato3, _this$updateViewButto, _this$updateViewPlann9, _this$onBasketInitial;
|
|
48960
|
-
return _regeneratorRuntime.wrap(function
|
|
48961
|
-
while (1) switch (
|
|
48974
|
+
return _regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
48975
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
48962
48976
|
case 0:
|
|
48963
48977
|
set = this.actSet();
|
|
48964
48978
|
plannerMode = this.getPlannerMode();
|
|
48965
48979
|
(_this$initConfigurato = this.initConfiguratorMode) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, plannerMode);
|
|
48966
48980
|
if (!(plannerMode == 'ProductList')) {
|
|
48967
|
-
|
|
48981
|
+
_context17.next = 7;
|
|
48968
48982
|
break;
|
|
48969
48983
|
}
|
|
48970
48984
|
(_this$initConfigurato2 = this.initConfiguratorStructure) === null || _this$initConfigurato2 === void 0 || _this$initConfigurato2.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
|
|
48971
|
-
|
|
48985
|
+
_context17.next = 17;
|
|
48972
48986
|
break;
|
|
48973
48987
|
case 7:
|
|
48974
|
-
|
|
48988
|
+
_context17.next = 9;
|
|
48975
48989
|
return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
|
|
48976
48990
|
case 9:
|
|
48977
48991
|
//first load the Configuratorstructure STARTCONFIG
|
|
@@ -48985,13 +48999,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48985
48999
|
(_this$onBasketInitial = this.onBasketInitialized) === null || _this$onBasketInitial === void 0 || _this$onBasketInitial.call(this);
|
|
48986
49000
|
this.checkMatchingProducts('onInit');
|
|
48987
49001
|
case 17:
|
|
48988
|
-
|
|
49002
|
+
_context17.next = 19;
|
|
48989
49003
|
return this.runInitMode(plannerMode);
|
|
48990
49004
|
case 19:
|
|
48991
49005
|
case "end":
|
|
48992
|
-
return
|
|
49006
|
+
return _context17.stop();
|
|
48993
49007
|
}
|
|
48994
|
-
},
|
|
49008
|
+
}, _callee17, this);
|
|
48995
49009
|
}));
|
|
48996
49010
|
function initView() {
|
|
48997
49011
|
return _initView.apply(this, arguments);
|
|
@@ -49012,25 +49026,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49012
49026
|
}, {
|
|
49013
49027
|
key: "runInitMode",
|
|
49014
49028
|
value: function () {
|
|
49015
|
-
var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49029
|
+
var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(plannerMode) {
|
|
49016
49030
|
var _this$plannerConfig$i, _this$state5;
|
|
49017
49031
|
var doDefault, _this$navigateToTabGr2, _this$saveToBasketWra, configStepKey, _this$navigateToConfi, _this$actSet5, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
|
|
49018
|
-
return _regeneratorRuntime.wrap(function
|
|
49019
|
-
while (1) switch (
|
|
49032
|
+
return _regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
49033
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
49020
49034
|
case 0:
|
|
49021
49035
|
doDefault = true;
|
|
49022
49036
|
if (!['SHOW_PDF'].includes((_this$plannerConfig$i = this.plannerConfig.initMode) !== null && _this$plannerConfig$i !== void 0 ? _this$plannerConfig$i : '')) {
|
|
49023
|
-
|
|
49037
|
+
_context18.next = 9;
|
|
49024
49038
|
break;
|
|
49025
49039
|
}
|
|
49026
49040
|
if (this.plannerConfig.initMode == 'SHOW_PDF') this.ReturnTo = 'OPEN_PDF';
|
|
49027
49041
|
(_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
|
|
49028
49042
|
//TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
|
|
49029
|
-
|
|
49043
|
+
_context18.next = 6;
|
|
49030
49044
|
return (_this$saveToBasketWra = this.saveToBasketWrapper) === null || _this$saveToBasketWra === void 0 ? void 0 : _this$saveToBasketWra.call(this);
|
|
49031
49045
|
case 6:
|
|
49032
49046
|
doDefault = false;
|
|
49033
|
-
|
|
49047
|
+
_context18.next = 10;
|
|
49034
49048
|
break;
|
|
49035
49049
|
case 9:
|
|
49036
49050
|
if (this.plannerConfig.initMode == 'OPENCONFIGTABGROUP' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER_ONLY_MOBILE' && (_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.dimensions.isMobile) {
|
|
@@ -49054,9 +49068,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49054
49068
|
}
|
|
49055
49069
|
case 11:
|
|
49056
49070
|
case "end":
|
|
49057
|
-
return
|
|
49071
|
+
return _context18.stop();
|
|
49058
49072
|
}
|
|
49059
|
-
},
|
|
49073
|
+
}, _callee18, this);
|
|
49060
49074
|
}));
|
|
49061
49075
|
function runInitMode(_x58) {
|
|
49062
49076
|
return _runInitMode.apply(this, arguments);
|
|
@@ -49066,16 +49080,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49066
49080
|
}, {
|
|
49067
49081
|
key: "addSetToActPlanningByDivaNr",
|
|
49068
49082
|
value: function () {
|
|
49069
|
-
var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49083
|
+
var _addSetToActPlanningByDivaNr = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(divaNr) {
|
|
49070
49084
|
var _this$updateViewPlann10;
|
|
49071
49085
|
var set, orderSets, i, orderset, lastSetToInitialize, loadedSet, articlesKeys;
|
|
49072
|
-
return _regeneratorRuntime.wrap(function
|
|
49073
|
-
while (1) switch (
|
|
49086
|
+
return _regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
49087
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
49074
49088
|
case 0:
|
|
49075
49089
|
set = this.actSet();
|
|
49076
49090
|
this.divaBasketHandler.updateDivaNrInBasket(divaNr);
|
|
49077
49091
|
this.divaBasketHandler.setIgnoreInitObjectWhenInitializing();
|
|
49078
|
-
|
|
49092
|
+
_context19.next = 5;
|
|
49079
49093
|
return this.divaBasketHandler.initializeBasket(this.api);
|
|
49080
49094
|
case 5:
|
|
49081
49095
|
orderSets = this.divaBasketHandler.actBasket.OrderSets;
|
|
@@ -49083,30 +49097,30 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49083
49097
|
i = 0;
|
|
49084
49098
|
case 8:
|
|
49085
49099
|
if (!(i < orderSets.length)) {
|
|
49086
|
-
|
|
49100
|
+
_context19.next = 24;
|
|
49087
49101
|
break;
|
|
49088
49102
|
}
|
|
49089
49103
|
orderset = orderSets[i];
|
|
49090
49104
|
lastSetToInitialize = setHandlerInstance.getOrderSetShouldInitPlanner(orderSets, i);
|
|
49091
49105
|
loadedSet = setHandlerInstance.findLoadedSet(this.sets, orderset.CatalogCodex, orderset.AccountGUID);
|
|
49092
49106
|
if (!loadedSet) {
|
|
49093
|
-
|
|
49107
|
+
_context19.next = 18;
|
|
49094
49108
|
break;
|
|
49095
49109
|
}
|
|
49096
|
-
|
|
49110
|
+
_context19.next = 15;
|
|
49097
49111
|
return setHandlerInstance.addOrderSetArticlesToExistingSet(loadedSet, orderset, lastSetToInitialize);
|
|
49098
49112
|
case 15:
|
|
49099
49113
|
this.checkMatchingProducts('onAdd');
|
|
49100
|
-
|
|
49114
|
+
_context19.next = 20;
|
|
49101
49115
|
break;
|
|
49102
49116
|
case 18:
|
|
49103
|
-
|
|
49117
|
+
_context19.next = 20;
|
|
49104
49118
|
return setHandlerInstance.initSet(orderset, this.getInitStateForSet(), lastSetToInitialize);
|
|
49105
49119
|
case 20:
|
|
49106
49120
|
this.cleanUpEmptySets(true);
|
|
49107
49121
|
case 21:
|
|
49108
49122
|
i++;
|
|
49109
|
-
|
|
49123
|
+
_context19.next = 8;
|
|
49110
49124
|
break;
|
|
49111
49125
|
case 24:
|
|
49112
49126
|
this.divaBasketHandler.actBasket.OrderSets = [];
|
|
@@ -49118,9 +49132,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49118
49132
|
this.loadPaletteInfos(undefined, [articlesKeys[0]], articlesKeys);
|
|
49119
49133
|
case 31:
|
|
49120
49134
|
case "end":
|
|
49121
|
-
return
|
|
49135
|
+
return _context19.stop();
|
|
49122
49136
|
}
|
|
49123
|
-
},
|
|
49137
|
+
}, _callee19, this);
|
|
49124
49138
|
}));
|
|
49125
49139
|
function addSetToActPlanningByDivaNr(_x59) {
|
|
49126
49140
|
return _addSetToActPlanningByDivaNr.apply(this, arguments);
|
|
@@ -49155,26 +49169,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49155
49169
|
}, {
|
|
49156
49170
|
key: "setActSetCurConfigStepKey",
|
|
49157
49171
|
value: function () {
|
|
49158
|
-
var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49172
|
+
var _setActSetCurConfigStepKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(curConfigStepKey) {
|
|
49159
49173
|
var set;
|
|
49160
|
-
return _regeneratorRuntime.wrap(function
|
|
49161
|
-
while (1) switch (
|
|
49174
|
+
return _regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
49175
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
49162
49176
|
case 0:
|
|
49163
49177
|
set = this.actSet();
|
|
49164
49178
|
if (set) {
|
|
49165
|
-
|
|
49179
|
+
_context20.next = 3;
|
|
49166
49180
|
break;
|
|
49167
49181
|
}
|
|
49168
|
-
return
|
|
49182
|
+
return _context20.abrupt("return");
|
|
49169
49183
|
case 3:
|
|
49170
49184
|
set.ActConfigStepKey = curConfigStepKey;
|
|
49171
|
-
|
|
49185
|
+
_context20.next = 6;
|
|
49172
49186
|
return setHandlerInstance.updateNavigation(set);
|
|
49173
49187
|
case 6:
|
|
49174
49188
|
case "end":
|
|
49175
|
-
return
|
|
49189
|
+
return _context20.stop();
|
|
49176
49190
|
}
|
|
49177
|
-
},
|
|
49191
|
+
}, _callee20, this);
|
|
49178
49192
|
}));
|
|
49179
49193
|
function setActSetCurConfigStepKey(_x60) {
|
|
49180
49194
|
return _setActSetCurConfigStepKey.apply(this, arguments);
|
|
@@ -49269,7 +49283,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49269
49283
|
if (boundingBox) {
|
|
49270
49284
|
var _this$updateViewPlann11;
|
|
49271
49285
|
(_this$updateViewPlann11 = this.updateViewPlannerElements) === null || _this$updateViewPlann11 === void 0 || _this$updateViewPlann11.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
49272
|
-
this.
|
|
49286
|
+
this.start2DRender(boundingBox);
|
|
49273
49287
|
}
|
|
49274
49288
|
if (['3DImage', '3DCOMB'].includes(this.getInitPlannerViewMode())) {
|
|
49275
49289
|
var _this$getDoShow3DDime5;
|
|
@@ -49306,6 +49320,19 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49306
49320
|
setHandlerInstance.update3DPlannerView(true, !!this.doLoadHQR, set, this.getPlannerRenderingSize(), renderSavingMode, (_this$getDoShow3DDime7 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime7 === void 0 ? void 0 : _this$getDoShow3DDime7.call(this), undefined, undefined, false);
|
|
49307
49321
|
}
|
|
49308
49322
|
}
|
|
49323
|
+
}, {
|
|
49324
|
+
key: "start2DRender",
|
|
49325
|
+
value:
|
|
49326
|
+
/**
|
|
49327
|
+
* Starts a 2D-grid render and remembers it for {@link getPlanning2DAsJpg}.
|
|
49328
|
+
* The rejection MUST be swallowed: the cached promise is awaited by every later capture, so one failed render would break every following save.
|
|
49329
|
+
*/
|
|
49330
|
+
function start2DRender(boundingBox) {
|
|
49331
|
+
var _this$updatePlanner2D;
|
|
49332
|
+
this.pending2DRender = Promise.resolve((_this$updatePlanner2D = this.updatePlanner2DGrid) === null || _this$updatePlanner2D === void 0 ? void 0 : _this$updatePlanner2D.call(this, boundingBox))["catch"](function (error) {
|
|
49333
|
+
LOG$2.error(error instanceof Error ? error : new Error('2D grid render failed: ' + String(error)));
|
|
49334
|
+
});
|
|
49335
|
+
}
|
|
49309
49336
|
}, {
|
|
49310
49337
|
key: "getAlternateRenderingsForSummary",
|
|
49311
49338
|
value: function getAlternateRenderingsForSummary() {
|
|
@@ -49366,17 +49393,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49366
49393
|
}, {
|
|
49367
49394
|
key: "deletePlannerElement",
|
|
49368
49395
|
value: function () {
|
|
49369
|
-
var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49396
|
+
var _deletePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(setId, elementId, denyElementSelectionClear) {
|
|
49370
49397
|
var _this$updateViewPlann12;
|
|
49371
49398
|
var set, result, _this$updateElementSe5, _this$updateElementSe6;
|
|
49372
|
-
return _regeneratorRuntime.wrap(function
|
|
49373
|
-
while (1) switch (
|
|
49399
|
+
return _regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
49400
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
49374
49401
|
case 0:
|
|
49375
49402
|
set = this.sets[setId];
|
|
49376
|
-
|
|
49403
|
+
_context21.next = 3;
|
|
49377
49404
|
return setHandlerInstance.deleteElementFromSetByElemId(set, elementId, true);
|
|
49378
49405
|
case 3:
|
|
49379
|
-
result =
|
|
49406
|
+
result = _context21.sent;
|
|
49380
49407
|
this.updateConfigStructure();
|
|
49381
49408
|
(_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
49382
49409
|
this.updatePlannerView('DELETE_PLANNER_ELEMENT');
|
|
@@ -49387,15 +49414,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49387
49414
|
}
|
|
49388
49415
|
this.updatePriceInView();
|
|
49389
49416
|
this.checkMatchingProducts('onDelete');
|
|
49390
|
-
|
|
49417
|
+
_context21.next = 14;
|
|
49391
49418
|
return this.getFreePlacesOnGrids(undefined, 'deleteElement');
|
|
49392
49419
|
case 14:
|
|
49393
49420
|
this.plannerChangeLog('onDeletePlanner');
|
|
49394
49421
|
case 15:
|
|
49395
49422
|
case "end":
|
|
49396
|
-
return
|
|
49423
|
+
return _context21.stop();
|
|
49397
49424
|
}
|
|
49398
|
-
},
|
|
49425
|
+
}, _callee21, this);
|
|
49399
49426
|
}));
|
|
49400
49427
|
function deletePlannerElement(_x61, _x62, _x63) {
|
|
49401
49428
|
return _deletePlannerElement.apply(this, arguments);
|
|
@@ -49410,14 +49437,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49410
49437
|
}, {
|
|
49411
49438
|
key: "movePlannerElement",
|
|
49412
49439
|
value: (function () {
|
|
49413
|
-
var _movePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49440
|
+
var _movePlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(setId, elementId, curConfigKey, absoluteIndex) {
|
|
49414
49441
|
var _this$updateViewPlann13;
|
|
49415
49442
|
var set;
|
|
49416
|
-
return _regeneratorRuntime.wrap(function
|
|
49417
|
-
while (1) switch (
|
|
49443
|
+
return _regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
49444
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
49418
49445
|
case 0:
|
|
49419
49446
|
set = this.sets[setId];
|
|
49420
|
-
|
|
49447
|
+
_context22.next = 3;
|
|
49421
49448
|
return setHandlerInstance.movePlannerElement(set, elementId, absoluteIndex);
|
|
49422
49449
|
case 3:
|
|
49423
49450
|
this.updateConfigStructure();
|
|
@@ -49427,9 +49454,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49427
49454
|
this.updateViewButtonsDependigOnConfigStructure();
|
|
49428
49455
|
case 8:
|
|
49429
49456
|
case "end":
|
|
49430
|
-
return
|
|
49457
|
+
return _context22.stop();
|
|
49431
49458
|
}
|
|
49432
|
-
},
|
|
49459
|
+
}, _callee22, this);
|
|
49433
49460
|
}));
|
|
49434
49461
|
function movePlannerElement(_x64, _x65, _x66, _x67) {
|
|
49435
49462
|
return _movePlannerElement.apply(this, arguments);
|
|
@@ -49446,23 +49473,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49446
49473
|
}, {
|
|
49447
49474
|
key: "copyPlannerElement",
|
|
49448
49475
|
value: (function () {
|
|
49449
|
-
var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49476
|
+
var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(setId, elementId, curConfigKey, copyInfo) {
|
|
49450
49477
|
var _this$updateViewPlann14;
|
|
49451
49478
|
var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
|
|
49452
|
-
return _regeneratorRuntime.wrap(function
|
|
49453
|
-
while (1) switch (
|
|
49479
|
+
return _regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
49480
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
49454
49481
|
case 0:
|
|
49455
49482
|
if (copyInfo) {
|
|
49456
|
-
|
|
49483
|
+
_context23.next = 2;
|
|
49457
49484
|
break;
|
|
49458
49485
|
}
|
|
49459
|
-
return
|
|
49486
|
+
return _context23.abrupt("return");
|
|
49460
49487
|
case 2:
|
|
49461
49488
|
set = this.sets[setId];
|
|
49462
|
-
|
|
49489
|
+
_context23.next = 5;
|
|
49463
49490
|
return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
|
|
49464
49491
|
case 5:
|
|
49465
|
-
newSelectedArticle =
|
|
49492
|
+
newSelectedArticle = _context23.sent;
|
|
49466
49493
|
this.updateConfigStructure();
|
|
49467
49494
|
(_this$updateViewPlann14 = this.updateViewPlannerElements) === null || _this$updateViewPlann14 === void 0 || _this$updateViewPlann14.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
49468
49495
|
this.updatePlannerView('COPY_PLANNER_ELEMENT');
|
|
@@ -49476,12 +49503,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49476
49503
|
(_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
|
|
49477
49504
|
}
|
|
49478
49505
|
this.checkMatchingProducts('onCopy');
|
|
49479
|
-
return
|
|
49506
|
+
return _context23.abrupt("return", newConfigStepKey);
|
|
49480
49507
|
case 15:
|
|
49481
49508
|
case "end":
|
|
49482
|
-
return
|
|
49509
|
+
return _context23.stop();
|
|
49483
49510
|
}
|
|
49484
|
-
},
|
|
49511
|
+
}, _callee23, this);
|
|
49485
49512
|
}));
|
|
49486
49513
|
function copyPlannerElement(_x68, _x69, _x70, _x71) {
|
|
49487
49514
|
return _copyPlannerElement.apply(this, arguments);
|
|
@@ -49512,48 +49539,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49512
49539
|
}, {
|
|
49513
49540
|
key: "getFreePlacesOnGrids",
|
|
49514
49541
|
value: function () {
|
|
49515
|
-
var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49542
|
+
var _getFreePlacesOnGrids = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(gridGroup, from) {
|
|
49516
49543
|
var _this$updateFreePlace;
|
|
49517
49544
|
var set, freeShelfGrids, plannedShelfGrids;
|
|
49518
|
-
return _regeneratorRuntime.wrap(function
|
|
49519
|
-
while (1) switch (
|
|
49545
|
+
return _regeneratorRuntime.wrap(function _callee24$(_context24) {
|
|
49546
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
49520
49547
|
case 0:
|
|
49521
49548
|
set = this.actSet();
|
|
49522
49549
|
if (set) {
|
|
49523
|
-
|
|
49550
|
+
_context24.next = 3;
|
|
49524
49551
|
break;
|
|
49525
49552
|
}
|
|
49526
49553
|
throw new Error('getFreePlacesOnGrids: act set is not defined!');
|
|
49527
49554
|
case 3:
|
|
49528
49555
|
if (!gridGroup) {
|
|
49529
|
-
|
|
49556
|
+
_context24.next = 9;
|
|
49530
49557
|
break;
|
|
49531
49558
|
}
|
|
49532
|
-
|
|
49559
|
+
_context24.next = 6;
|
|
49533
49560
|
return setHandlerInstance.getFreeShelfGrids(set, gridGroup);
|
|
49534
49561
|
case 6:
|
|
49535
|
-
|
|
49536
|
-
|
|
49562
|
+
_context24.t0 = _context24.sent;
|
|
49563
|
+
_context24.next = 10;
|
|
49537
49564
|
break;
|
|
49538
49565
|
case 9:
|
|
49539
|
-
|
|
49566
|
+
_context24.t0 = undefined;
|
|
49540
49567
|
case 10:
|
|
49541
|
-
freeShelfGrids =
|
|
49568
|
+
freeShelfGrids = _context24.t0;
|
|
49542
49569
|
plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
|
|
49543
49570
|
LOG$2.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
|
|
49544
49571
|
(_this$updateFreePlace = this.updateFreePlacesOnGrids) === null || _this$updateFreePlace === void 0 || _this$updateFreePlace.call(this, {
|
|
49545
49572
|
freeShelfGrids: freeShelfGrids,
|
|
49546
49573
|
plannedShelfGrids: plannedShelfGrids
|
|
49547
49574
|
});
|
|
49548
|
-
return
|
|
49575
|
+
return _context24.abrupt("return", {
|
|
49549
49576
|
freeShelfGrids: freeShelfGrids,
|
|
49550
49577
|
plannedShelfGrids: plannedShelfGrids
|
|
49551
49578
|
});
|
|
49552
49579
|
case 15:
|
|
49553
49580
|
case "end":
|
|
49554
|
-
return
|
|
49581
|
+
return _context24.stop();
|
|
49555
49582
|
}
|
|
49556
|
-
},
|
|
49583
|
+
}, _callee24, this);
|
|
49557
49584
|
}));
|
|
49558
49585
|
function getFreePlacesOnGrids(_x72, _x73) {
|
|
49559
49586
|
return _getFreePlacesOnGrids.apply(this, arguments);
|
|
@@ -49571,34 +49598,34 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49571
49598
|
}, {
|
|
49572
49599
|
key: "moveShelfItemToGrid",
|
|
49573
49600
|
value: function () {
|
|
49574
|
-
var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49601
|
+
var _moveShelfItemToGrid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(accessoireBasketId, parentBasketId, gridName, cellIndex) {
|
|
49575
49602
|
var set, newGridId;
|
|
49576
|
-
return _regeneratorRuntime.wrap(function
|
|
49577
|
-
while (1) switch (
|
|
49603
|
+
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
49604
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
49578
49605
|
case 0:
|
|
49579
49606
|
set = this.actSet();
|
|
49580
49607
|
if (set) {
|
|
49581
|
-
|
|
49608
|
+
_context25.next = 3;
|
|
49582
49609
|
break;
|
|
49583
49610
|
}
|
|
49584
|
-
return
|
|
49611
|
+
return _context25.abrupt("return");
|
|
49585
49612
|
case 3:
|
|
49586
|
-
|
|
49613
|
+
_context25.next = 5;
|
|
49587
49614
|
return setHandlerInstance.moveShelfItemToGrid(set, accessoireBasketId, parentBasketId, gridName, cellIndex);
|
|
49588
49615
|
case 5:
|
|
49589
|
-
newGridId =
|
|
49616
|
+
newGridId = _context25.sent;
|
|
49590
49617
|
this.updatePlannerView('MOVE_SHELF_ITEM');
|
|
49591
49618
|
if (!newGridId) {
|
|
49592
|
-
|
|
49619
|
+
_context25.next = 10;
|
|
49593
49620
|
break;
|
|
49594
49621
|
}
|
|
49595
|
-
|
|
49622
|
+
_context25.next = 10;
|
|
49596
49623
|
return this.getFreePlacesOnGrids(newGridId, 'move shelf');
|
|
49597
49624
|
case 10:
|
|
49598
49625
|
case "end":
|
|
49599
|
-
return
|
|
49626
|
+
return _context25.stop();
|
|
49600
49627
|
}
|
|
49601
|
-
},
|
|
49628
|
+
}, _callee25, this);
|
|
49602
49629
|
}));
|
|
49603
49630
|
function moveShelfItemToGrid(_x74, _x75, _x76, _x77) {
|
|
49604
49631
|
return _moveShelfItemToGrid.apply(this, arguments);
|
|
@@ -49622,25 +49649,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49622
49649
|
}, {
|
|
49623
49650
|
key: "resetArticle",
|
|
49624
49651
|
value: function () {
|
|
49625
|
-
var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49652
|
+
var _resetArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(basketId) {
|
|
49626
49653
|
var set;
|
|
49627
|
-
return _regeneratorRuntime.wrap(function
|
|
49628
|
-
while (1) switch (
|
|
49654
|
+
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
49655
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
49629
49656
|
case 0:
|
|
49630
49657
|
set = this.actSet();
|
|
49631
49658
|
if (set) {
|
|
49632
|
-
|
|
49659
|
+
_context26.next = 3;
|
|
49633
49660
|
break;
|
|
49634
49661
|
}
|
|
49635
|
-
return
|
|
49662
|
+
return _context26.abrupt("return");
|
|
49636
49663
|
case 3:
|
|
49637
|
-
|
|
49664
|
+
_context26.next = 5;
|
|
49638
49665
|
return setHandlerInstance.resetArticle(set, basketId);
|
|
49639
49666
|
case 5:
|
|
49640
49667
|
case "end":
|
|
49641
|
-
return
|
|
49668
|
+
return _context26.stop();
|
|
49642
49669
|
}
|
|
49643
|
-
},
|
|
49670
|
+
}, _callee26, this);
|
|
49644
49671
|
}));
|
|
49645
49672
|
function resetArticle(_x78) {
|
|
49646
49673
|
return _resetArticle.apply(this, arguments);
|
|
@@ -49672,10 +49699,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49672
49699
|
}, {
|
|
49673
49700
|
key: "checkMatchingProducts",
|
|
49674
49701
|
value: function () {
|
|
49675
|
-
var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49702
|
+
var _checkMatchingProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(from) {
|
|
49676
49703
|
var set, _set$getMatchingProdu, _set$getMatchingOrigP, _set$getMatchingOrigP2, _set$getMatchingProdu2;
|
|
49677
|
-
return _regeneratorRuntime.wrap(function
|
|
49678
|
-
while (1) switch (
|
|
49704
|
+
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
49705
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
49679
49706
|
case 0:
|
|
49680
49707
|
set = this.actSet();
|
|
49681
49708
|
if (set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
|
|
@@ -49689,18 +49716,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49689
49716
|
}
|
|
49690
49717
|
}
|
|
49691
49718
|
if (!(set !== null && set !== void 0 && set.api.doCheckForProductsMatch())) {
|
|
49692
|
-
|
|
49719
|
+
_context27.next = 6;
|
|
49693
49720
|
break;
|
|
49694
49721
|
}
|
|
49695
|
-
|
|
49722
|
+
_context27.next = 5;
|
|
49696
49723
|
return productHandlerInstance.updateProducts(this.setsAsArray, this.api, this.divaBasketHandler.divaWWSHandler, from);
|
|
49697
49724
|
case 5:
|
|
49698
49725
|
this.updatePriceInView();
|
|
49699
49726
|
case 6:
|
|
49700
49727
|
case "end":
|
|
49701
|
-
return
|
|
49728
|
+
return _context27.stop();
|
|
49702
49729
|
}
|
|
49703
|
-
},
|
|
49730
|
+
}, _callee27, this);
|
|
49704
49731
|
}));
|
|
49705
49732
|
function checkMatchingProducts(_x79) {
|
|
49706
49733
|
return _checkMatchingProducts.apply(this, arguments);
|
|
@@ -49779,7 +49806,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49779
49806
|
}, {
|
|
49780
49807
|
key: "saveToBasketWrapper",
|
|
49781
49808
|
value: function () {
|
|
49782
|
-
var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49809
|
+
var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(event, repairOnly, returnToParam, hideLoading) {
|
|
49783
49810
|
var _this$actions28,
|
|
49784
49811
|
_this$actions28$toggl,
|
|
49785
49812
|
_this$actions29,
|
|
@@ -49788,8 +49815,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49788
49815
|
_this$actions33,
|
|
49789
49816
|
_this$i18n18;
|
|
49790
49817
|
var returnTo, finalEvent, result, _this$actions30, _this$i18n12, _this$i18n13, _this$actions31, _this$i18n14, _this$i18n15, _this$actions32, _this$i18n16, _this$i18n17, _this$updatePlannerMs2;
|
|
49791
|
-
return _regeneratorRuntime.wrap(function
|
|
49792
|
-
while (1) switch (
|
|
49818
|
+
return _regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
49819
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
49793
49820
|
case 0:
|
|
49794
49821
|
returnTo = returnToParam !== null && returnToParam !== void 0 ? returnToParam : this.getReturnTo(event);
|
|
49795
49822
|
finalEvent = {
|
|
@@ -49797,13 +49824,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49797
49824
|
saveBasket: true
|
|
49798
49825
|
};
|
|
49799
49826
|
if (!hideLoading) (_this$actions28 = this.actions) === null || _this$actions28 === void 0 || (_this$actions28$toggl = _this$actions28.toggleLoading) === null || _this$actions28$toggl === void 0 || _this$actions28$toggl.call(_this$actions28, 'Planner_Saving', false, true);
|
|
49800
|
-
|
|
49827
|
+
_context28.next = 5;
|
|
49801
49828
|
return this.saveToBasket(returnTo, finalEvent.event, repairOnly);
|
|
49802
49829
|
case 5:
|
|
49803
|
-
result =
|
|
49830
|
+
result = _context28.sent;
|
|
49804
49831
|
if (!hideLoading) (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || (_this$actions29$toggl = _this$actions29.toggleLoading) === null || _this$actions29$toggl === void 0 || _this$actions29$toggl.call(_this$actions29, 'Planner_Saving', false, false);
|
|
49805
49832
|
if (!(result === 'canceled')) {
|
|
49806
|
-
|
|
49833
|
+
_context28.next = 11;
|
|
49807
49834
|
break;
|
|
49808
49835
|
}
|
|
49809
49836
|
LOG$2.error(new DivaError('failed to save Basket'));
|
|
@@ -49811,10 +49838,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49811
49838
|
text: ((_this$i18n12 = this.i18n()) === null || _this$i18n12 === void 0 ? void 0 : _this$i18n12.t('modal.general_error')) + ' --- ' + DivaUtils.formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils.getCurrentTraceId() ? ((_this$i18n13 = this.i18n()) === null || _this$i18n13 === void 0 ? void 0 : _this$i18n13.t('modal.errorcode')) + ': ' + DivaUtils.getCurrentTraceId() : '',
|
|
49812
49839
|
accept: true
|
|
49813
49840
|
});
|
|
49814
|
-
return
|
|
49841
|
+
return _context28.abrupt("return", result);
|
|
49815
49842
|
case 11:
|
|
49816
|
-
|
|
49817
|
-
|
|
49843
|
+
_context28.t0 = returnTo;
|
|
49844
|
+
_context28.next = _context28.t0 === 'OPEN_PDF' ? 14 : _context28.t0 === 'SAVE_BASKET_WITH_MODAL' ? 16 : _context28.t0 === 'OPEN_CONTACT_FORM' ? 17 : 17;
|
|
49818
49845
|
break;
|
|
49819
49846
|
case 14:
|
|
49820
49847
|
if (!this.getBasket().PDFDocumentURL) {
|
|
@@ -49834,7 +49861,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49834
49861
|
}
|
|
49835
49862
|
});
|
|
49836
49863
|
}
|
|
49837
|
-
return
|
|
49864
|
+
return _context28.abrupt("break", 17);
|
|
49838
49865
|
case 16:
|
|
49839
49866
|
(_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.openModal({
|
|
49840
49867
|
text: (_this$i18n18 = this.i18n()) === null || _this$i18n18 === void 0 ? void 0 : _this$i18n18.t('modal.planning_saved'),
|
|
@@ -49842,18 +49869,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49842
49869
|
});
|
|
49843
49870
|
case 17:
|
|
49844
49871
|
if (!(result == 'noArticleToSave')) {
|
|
49845
|
-
|
|
49872
|
+
_context28.next = 20;
|
|
49846
49873
|
break;
|
|
49847
49874
|
}
|
|
49848
49875
|
(_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
|
|
49849
|
-
return
|
|
49876
|
+
return _context28.abrupt("return", 'canceled');
|
|
49850
49877
|
case 20:
|
|
49851
|
-
return
|
|
49878
|
+
return _context28.abrupt("return", result);
|
|
49852
49879
|
case 21:
|
|
49853
49880
|
case "end":
|
|
49854
|
-
return
|
|
49881
|
+
return _context28.stop();
|
|
49855
49882
|
}
|
|
49856
|
-
},
|
|
49883
|
+
}, _callee28, this);
|
|
49857
49884
|
}));
|
|
49858
49885
|
function saveToBasketWrapper(_x80, _x81, _x82, _x83) {
|
|
49859
49886
|
return _saveToBasketWrapper.apply(this, arguments);
|
|
@@ -49863,42 +49890,42 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49863
49890
|
}, {
|
|
49864
49891
|
key: "saveToBasket",
|
|
49865
49892
|
value: function () {
|
|
49866
|
-
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
49893
|
+
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(returnTo, event, repairOnly) {
|
|
49867
49894
|
var _returnTo, _returnTo2, _returnTo3, _this$actions34, _this$actions35, _this$divaBasketHandl2;
|
|
49868
49895
|
var set, actBasket, oldReturnTo, result, newDivaNr, _this$actSet10, arReady, _result, product;
|
|
49869
|
-
return _regeneratorRuntime.wrap(function
|
|
49870
|
-
while (1) switch (
|
|
49896
|
+
return _regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
49897
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
49871
49898
|
case 0:
|
|
49872
49899
|
set = this.actSet();
|
|
49873
49900
|
if (!setHandlerInstance.isNoArticleToSave(this.sets)) {
|
|
49874
|
-
|
|
49901
|
+
_context29.next = 3;
|
|
49875
49902
|
break;
|
|
49876
49903
|
}
|
|
49877
|
-
return
|
|
49904
|
+
return _context29.abrupt("return", 'noArticleToSave');
|
|
49878
49905
|
case 3:
|
|
49879
49906
|
actBasket = this.divaBasketHandler.actBasket;
|
|
49880
49907
|
if (!((_returnTo = returnTo) !== null && _returnTo !== void 0 && _returnTo.startsWith('FAVORITS') && favoritesHandlerInstance.FavoritesDefined(set))) {
|
|
49881
|
-
|
|
49908
|
+
_context29.next = 12;
|
|
49882
49909
|
break;
|
|
49883
49910
|
}
|
|
49884
49911
|
oldReturnTo = returnTo;
|
|
49885
49912
|
this.ReturnTo = returnTo.replace('FAVORITS_', '');
|
|
49886
|
-
|
|
49913
|
+
_context29.next = 9;
|
|
49887
49914
|
return this.handleFavorites('SAVE');
|
|
49888
49915
|
case 9:
|
|
49889
|
-
result =
|
|
49916
|
+
result = _context29.sent;
|
|
49890
49917
|
if (result === 'canceled') {
|
|
49891
49918
|
this.ReturnTo = oldReturnTo;
|
|
49892
49919
|
}
|
|
49893
|
-
return
|
|
49920
|
+
return _context29.abrupt("return", result);
|
|
49894
49921
|
case 12:
|
|
49895
|
-
|
|
49896
|
-
|
|
49897
|
-
|
|
49922
|
+
_context29.t0 = this.divaBasketHandler;
|
|
49923
|
+
_context29.t1 = this.divaBasketHandler.actDivaNr;
|
|
49924
|
+
_context29.next = 16;
|
|
49898
49925
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !!repairOnly, this.doAllowSetPlanner(), this.ReturnTo);
|
|
49899
49926
|
case 16:
|
|
49900
|
-
|
|
49901
|
-
|
|
49927
|
+
_context29.t2 = _context29.sent;
|
|
49928
|
+
_context29.t0.setBasketData.call(_context29.t0, _context29.t1, _context29.t2);
|
|
49902
49929
|
if ((_returnTo2 = returnTo) !== null && _returnTo2 !== void 0 && _returnTo2.endsWith('OPEN_SELLER_BASKET')) {
|
|
49903
49930
|
this.ReturnTo = 'OPEN_SELLER_BASKET';
|
|
49904
49931
|
returnTo = this.ReturnTo;
|
|
@@ -49913,11 +49940,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49913
49940
|
this.divaBasketHandler.fillOrigConfigurations();
|
|
49914
49941
|
actBasket.Updated = Date.now();
|
|
49915
49942
|
if (!returnTo) {
|
|
49916
|
-
|
|
49943
|
+
_context29.next = 54;
|
|
49917
49944
|
break;
|
|
49918
49945
|
}
|
|
49919
|
-
|
|
49920
|
-
|
|
49946
|
+
_context29.t3 = returnTo;
|
|
49947
|
+
_context29.next = _context29.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context29.t3 === 'OPEN_SELLER_BASKET' ? 29 : _context29.t3 === 'OPEN_PDF' ? 32 : _context29.t3 === 'SAVE_BASKET_WITH_MODAL' ? 32 : _context29.t3 === 'SAVE_BASKET' ? 32 : _context29.t3 === 'SAVE_BASKET_SYNC' ? 32 : _context29.t3 === 'SAVE_BASKET_ASYNC' ? 32 : 54;
|
|
49921
49948
|
break;
|
|
49922
49949
|
case 27:
|
|
49923
49950
|
(_this$actions34 = this.actions) === null || _this$actions34 === void 0 || _this$actions34.openComponent({
|
|
@@ -49930,7 +49957,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49930
49957
|
basketData: actBasket
|
|
49931
49958
|
}
|
|
49932
49959
|
});
|
|
49933
|
-
return
|
|
49960
|
+
return _context29.abrupt("break", 54);
|
|
49934
49961
|
case 29:
|
|
49935
49962
|
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
49936
49963
|
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
@@ -49945,26 +49972,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49945
49972
|
basketData: actBasket
|
|
49946
49973
|
}
|
|
49947
49974
|
});
|
|
49948
|
-
return
|
|
49975
|
+
return _context29.abrupt("break", 54);
|
|
49949
49976
|
case 32:
|
|
49950
49977
|
if (!(event == 'onSaveProduct')) {
|
|
49951
|
-
|
|
49978
|
+
_context29.next = 44;
|
|
49952
49979
|
break;
|
|
49953
49980
|
}
|
|
49954
|
-
|
|
49981
|
+
_context29.next = 35;
|
|
49955
49982
|
return setHandlerInstance.flushPendingUploadsViaMediaService(actBasket);
|
|
49956
49983
|
case 35:
|
|
49957
49984
|
//copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
|
|
49958
49985
|
actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
|
|
49959
|
-
|
|
49986
|
+
_context29.next = 38;
|
|
49960
49987
|
return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
|
|
49961
49988
|
case 38:
|
|
49962
|
-
|
|
49989
|
+
_context29.next = 40;
|
|
49963
49990
|
return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
|
|
49964
49991
|
case 40:
|
|
49965
|
-
newDivaNr =
|
|
49992
|
+
newDivaNr = _context29.sent;
|
|
49966
49993
|
actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
|
|
49967
|
-
|
|
49994
|
+
_context29.next = 53;
|
|
49968
49995
|
break;
|
|
49969
49996
|
case 44:
|
|
49970
49997
|
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
@@ -49974,30 +50001,30 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
49974
50001
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
|
|
49975
50002
|
actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
|
|
49976
50003
|
arReady = !!((_this$actSet10 = this.actSet()) !== null && _this$actSet10 !== void 0 && _this$actSet10.CatalogData.divaArReady);
|
|
49977
|
-
|
|
50004
|
+
_context29.next = 50;
|
|
49978
50005
|
return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo, arReady);
|
|
49979
50006
|
case 50:
|
|
49980
|
-
_result =
|
|
50007
|
+
_result = _context29.sent;
|
|
49981
50008
|
if (!(_result === 'ERROR_NO_BASKET_SAVED' || _result === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
49982
|
-
|
|
50009
|
+
_context29.next = 53;
|
|
49983
50010
|
break;
|
|
49984
50011
|
}
|
|
49985
|
-
return
|
|
50012
|
+
return _context29.abrupt("return", 'canceled');
|
|
49986
50013
|
case 53:
|
|
49987
|
-
return
|
|
50014
|
+
return _context29.abrupt("break", 54);
|
|
49988
50015
|
case 54:
|
|
49989
50016
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
49990
50017
|
actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
|
|
49991
|
-
|
|
50018
|
+
_context29.next = 58;
|
|
49992
50019
|
return this.addToBasket(actBasket, event);
|
|
49993
50020
|
case 58:
|
|
49994
|
-
product =
|
|
49995
|
-
return
|
|
50021
|
+
product = _context29.sent;
|
|
50022
|
+
return _context29.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
49996
50023
|
case 60:
|
|
49997
50024
|
case "end":
|
|
49998
|
-
return
|
|
50025
|
+
return _context29.stop();
|
|
49999
50026
|
}
|
|
50000
|
-
},
|
|
50027
|
+
}, _callee29, this);
|
|
50001
50028
|
}));
|
|
50002
50029
|
function saveToBasket(_x84, _x85, _x86) {
|
|
50003
50030
|
return _saveToBasket.apply(this, arguments);
|
|
@@ -50014,24 +50041,24 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50014
50041
|
}, {
|
|
50015
50042
|
key: "generateAiImageWithReferenceImages",
|
|
50016
50043
|
value: function () {
|
|
50017
|
-
var _generateAiImageWithReferenceImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50044
|
+
var _generateAiImageWithReferenceImages = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(data, leadKey) {
|
|
50018
50045
|
var _this$actSet11, _this$state6, _this$actSet12;
|
|
50019
|
-
return _regeneratorRuntime.wrap(function
|
|
50020
|
-
while (1) switch (
|
|
50046
|
+
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
50047
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
50021
50048
|
case 0:
|
|
50022
50049
|
(_this$actSet11 = this.actSet()) === null || _this$actSet11 === void 0 || _this$actSet11.CatalogData.catalogCodex;
|
|
50023
|
-
|
|
50050
|
+
_context30.next = 3;
|
|
50024
50051
|
return this.api.generateAiImageWithReferenceImages(_objectSpread$8(_objectSpread$8({}, data), {}, {
|
|
50025
50052
|
userId: (_this$state6 = this.state) === null || _this$state6 === void 0 || (_this$state6 = _this$state6.user) === null || _this$state6 === void 0 ? void 0 : _this$state6._id,
|
|
50026
50053
|
catalogCodex: (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.CatalogData.catalogCodex
|
|
50027
50054
|
}), leadKey);
|
|
50028
50055
|
case 3:
|
|
50029
|
-
return
|
|
50056
|
+
return _context30.abrupt("return", _context30.sent);
|
|
50030
50057
|
case 4:
|
|
50031
50058
|
case "end":
|
|
50032
|
-
return
|
|
50059
|
+
return _context30.stop();
|
|
50033
50060
|
}
|
|
50034
|
-
},
|
|
50061
|
+
}, _callee30, this);
|
|
50035
50062
|
}));
|
|
50036
50063
|
function generateAiImageWithReferenceImages(_x87, _x88) {
|
|
50037
50064
|
return _generateAiImageWithReferenceImages.apply(this, arguments);
|
|
@@ -50041,25 +50068,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50041
50068
|
}, {
|
|
50042
50069
|
key: "getUsageLimits",
|
|
50043
50070
|
value: function () {
|
|
50044
|
-
var _getUsageLimits = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50071
|
+
var _getUsageLimits = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
|
|
50045
50072
|
var _localStorage$getItem, _localStorage;
|
|
50046
50073
|
var leadKey;
|
|
50047
|
-
return _regeneratorRuntime.wrap(function
|
|
50048
|
-
while (1) switch (
|
|
50074
|
+
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
50075
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
50049
50076
|
case 0:
|
|
50050
50077
|
// Get lead key from localStorage if it exists (for anonymous users)
|
|
50051
50078
|
leadKey = (_localStorage$getItem = (_localStorage = localStorage) === null || _localStorage === void 0 ? void 0 : _localStorage.getItem('diva_lead_key')) !== null && _localStorage$getItem !== void 0 ? _localStorage$getItem : undefined;
|
|
50052
|
-
|
|
50079
|
+
_context31.next = 3;
|
|
50053
50080
|
return this.api.getUsageLimits(leadKey ? {
|
|
50054
50081
|
leadKey: leadKey
|
|
50055
50082
|
} : undefined);
|
|
50056
50083
|
case 3:
|
|
50057
|
-
return
|
|
50084
|
+
return _context31.abrupt("return", _context31.sent);
|
|
50058
50085
|
case 4:
|
|
50059
50086
|
case "end":
|
|
50060
|
-
return
|
|
50087
|
+
return _context31.stop();
|
|
50061
50088
|
}
|
|
50062
|
-
},
|
|
50089
|
+
}, _callee31, this);
|
|
50063
50090
|
}));
|
|
50064
50091
|
function getUsageLimits() {
|
|
50065
50092
|
return _getUsageLimits.apply(this, arguments);
|
|
@@ -50069,23 +50096,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50069
50096
|
}, {
|
|
50070
50097
|
key: "getAiRoomRenderings",
|
|
50071
50098
|
value: function () {
|
|
50072
|
-
var _getAiRoomRenderings = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50099
|
+
var _getAiRoomRenderings = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
|
|
50073
50100
|
var _this$state7;
|
|
50074
50101
|
var organizationId, lang;
|
|
50075
|
-
return _regeneratorRuntime.wrap(function
|
|
50076
|
-
while (1) switch (
|
|
50102
|
+
return _regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
50103
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
50077
50104
|
case 0:
|
|
50078
50105
|
organizationId = (_this$state7 = this.state) === null || _this$state7 === void 0 ? void 0 : _this$state7.organization._id;
|
|
50079
50106
|
lang = this.api.getLanguage();
|
|
50080
|
-
|
|
50107
|
+
_context32.next = 4;
|
|
50081
50108
|
return this.api.getAiRoomRenderings(organizationId, lang !== null && lang !== void 0 ? lang : undefined);
|
|
50082
50109
|
case 4:
|
|
50083
|
-
return
|
|
50110
|
+
return _context32.abrupt("return", _context32.sent);
|
|
50084
50111
|
case 5:
|
|
50085
50112
|
case "end":
|
|
50086
|
-
return
|
|
50113
|
+
return _context32.stop();
|
|
50087
50114
|
}
|
|
50088
|
-
},
|
|
50115
|
+
}, _callee32, this);
|
|
50089
50116
|
}));
|
|
50090
50117
|
function getAiRoomRenderings() {
|
|
50091
50118
|
return _getAiRoomRenderings.apply(this, arguments);
|
|
@@ -50095,19 +50122,19 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50095
50122
|
}, {
|
|
50096
50123
|
key: "createLeadKey",
|
|
50097
50124
|
value: function () {
|
|
50098
|
-
var _createLeadKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50099
|
-
return _regeneratorRuntime.wrap(function
|
|
50100
|
-
while (1) switch (
|
|
50125
|
+
var _createLeadKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(email) {
|
|
50126
|
+
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
50127
|
+
while (1) switch (_context33.prev = _context33.next) {
|
|
50101
50128
|
case 0:
|
|
50102
|
-
|
|
50129
|
+
_context33.next = 2;
|
|
50103
50130
|
return this.api.createLeadKey(email);
|
|
50104
50131
|
case 2:
|
|
50105
|
-
return
|
|
50132
|
+
return _context33.abrupt("return", _context33.sent);
|
|
50106
50133
|
case 3:
|
|
50107
50134
|
case "end":
|
|
50108
|
-
return
|
|
50135
|
+
return _context33.stop();
|
|
50109
50136
|
}
|
|
50110
|
-
},
|
|
50137
|
+
}, _callee33, this);
|
|
50111
50138
|
}));
|
|
50112
50139
|
function createLeadKey(_x89) {
|
|
50113
50140
|
return _createLeadKey.apply(this, arguments);
|
|
@@ -50405,23 +50432,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50405
50432
|
}, {
|
|
50406
50433
|
key: "getBasketDataWithEkText",
|
|
50407
50434
|
value: function () {
|
|
50408
|
-
var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50409
|
-
return _regeneratorRuntime.wrap(function
|
|
50410
|
-
while (1) switch (
|
|
50435
|
+
var _getBasketDataWithEkText = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
|
|
50436
|
+
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
50437
|
+
while (1) switch (_context34.prev = _context34.next) {
|
|
50411
50438
|
case 0:
|
|
50412
|
-
|
|
50413
|
-
|
|
50414
|
-
|
|
50439
|
+
_context34.t0 = this.divaBasketHandler;
|
|
50440
|
+
_context34.t1 = this.divaBasketHandler.actDivaNr;
|
|
50441
|
+
_context34.next = 4;
|
|
50415
50442
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, true, this.doAllowSetPlanner(), this.ReturnTo);
|
|
50416
50443
|
case 4:
|
|
50417
|
-
|
|
50418
|
-
|
|
50419
|
-
return
|
|
50444
|
+
_context34.t2 = _context34.sent;
|
|
50445
|
+
_context34.t0.setBasketData.call(_context34.t0, _context34.t1, _context34.t2);
|
|
50446
|
+
return _context34.abrupt("return", this.divaBasketHandler.actBasket);
|
|
50420
50447
|
case 7:
|
|
50421
50448
|
case "end":
|
|
50422
|
-
return
|
|
50449
|
+
return _context34.stop();
|
|
50423
50450
|
}
|
|
50424
|
-
},
|
|
50451
|
+
}, _callee34, this);
|
|
50425
50452
|
}));
|
|
50426
50453
|
function getBasketDataWithEkText() {
|
|
50427
50454
|
return _getBasketDataWithEkText.apply(this, arguments);
|
|
@@ -50447,7 +50474,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50447
50474
|
}, {
|
|
50448
50475
|
key: "addToBasket",
|
|
50449
50476
|
value: function () {
|
|
50450
|
-
var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50477
|
+
var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(actBasket) {
|
|
50451
50478
|
var _this$actions36,
|
|
50452
50479
|
_this$actions37,
|
|
50453
50480
|
_this$actions38,
|
|
@@ -50466,44 +50493,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50466
50493
|
to,
|
|
50467
50494
|
variants,
|
|
50468
50495
|
products,
|
|
50469
|
-
|
|
50470
|
-
return _regeneratorRuntime.wrap(function
|
|
50471
|
-
while (1) switch (
|
|
50496
|
+
_args35 = arguments;
|
|
50497
|
+
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
50498
|
+
while (1) switch (_context35.prev = _context35.next) {
|
|
50472
50499
|
case 0:
|
|
50473
|
-
event =
|
|
50474
|
-
|
|
50475
|
-
|
|
50500
|
+
event = _args35.length > 1 && _args35[1] !== undefined ? _args35[1] : 'onAddToBasket';
|
|
50501
|
+
_context35.t0 = event;
|
|
50502
|
+
_context35.next = _context35.t0 === 'onWebPlanerPrint' ? 4 : _context35.t0 === 'onWebPlanerSave' ? 6 : _context35.t0 === 'onWebPlanerShare' ? 8 : _context35.t0 === 'onRequestConsulation' ? 10 : _context35.t0 === 'onSave' ? 12 : _context35.t0 === 'onSendEmail' ? 14 : _context35.t0 === 'onSaveProduct' ? 19 : _context35.t0 === 'dontSaveBasket' ? 26 : _context35.t0 === 'onAddToBasket' ? 26 : 28;
|
|
50476
50503
|
break;
|
|
50477
50504
|
case 4:
|
|
50478
50505
|
(_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
|
|
50479
50506
|
type: 'onWebPlanerPrint',
|
|
50480
50507
|
data: actBasket.getAsJson()
|
|
50481
50508
|
});
|
|
50482
|
-
return
|
|
50509
|
+
return _context35.abrupt("break", 30);
|
|
50483
50510
|
case 6:
|
|
50484
50511
|
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
|
|
50485
50512
|
type: 'onWebPlanerSave',
|
|
50486
50513
|
data: actBasket.getAsJson()
|
|
50487
50514
|
});
|
|
50488
|
-
return
|
|
50515
|
+
return _context35.abrupt("break", 30);
|
|
50489
50516
|
case 8:
|
|
50490
50517
|
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
50491
50518
|
type: 'onWebPlanerShare',
|
|
50492
50519
|
data: actBasket.getAsJson()
|
|
50493
50520
|
});
|
|
50494
|
-
return
|
|
50521
|
+
return _context35.abrupt("break", 30);
|
|
50495
50522
|
case 10:
|
|
50496
50523
|
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
50497
50524
|
type: 'onRequestConsulation',
|
|
50498
50525
|
data: actBasket.getAsJson()
|
|
50499
50526
|
});
|
|
50500
|
-
return
|
|
50527
|
+
return _context35.abrupt("break", 30);
|
|
50501
50528
|
case 12:
|
|
50502
50529
|
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
50503
50530
|
type: 'onSave',
|
|
50504
50531
|
data: actBasket.getAsJson()
|
|
50505
50532
|
});
|
|
50506
|
-
return
|
|
50533
|
+
return _context35.abrupt("break", 30);
|
|
50507
50534
|
case 14:
|
|
50508
50535
|
emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
|
|
50509
50536
|
this.divaBasketHandler.emailConfig = undefined;
|
|
@@ -50538,41 +50565,41 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50538
50565
|
type: 'onAddToBasket',
|
|
50539
50566
|
data: actBasket.getAsJson()
|
|
50540
50567
|
});
|
|
50541
|
-
return
|
|
50568
|
+
return _context35.abrupt("break", 30);
|
|
50542
50569
|
case 19:
|
|
50543
50570
|
this.actSet().CatalogData;
|
|
50544
|
-
|
|
50571
|
+
_context35.next = 22;
|
|
50545
50572
|
return this.api.saveAsProduct(this.sets, actBasket);
|
|
50546
50573
|
case 22:
|
|
50547
|
-
products =
|
|
50574
|
+
products = _context35.sent;
|
|
50548
50575
|
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
50549
50576
|
type: 'onAddToBasket',
|
|
50550
50577
|
data: actBasket.getAsJson()
|
|
50551
50578
|
});
|
|
50552
50579
|
if (!products) {
|
|
50553
|
-
|
|
50580
|
+
_context35.next = 26;
|
|
50554
50581
|
break;
|
|
50555
50582
|
}
|
|
50556
|
-
return
|
|
50583
|
+
return _context35.abrupt("return", products[0]);
|
|
50557
50584
|
case 26:
|
|
50558
50585
|
(_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
|
|
50559
50586
|
type: 'onAddToBasket',
|
|
50560
50587
|
data: actBasket.getAsJson()
|
|
50561
50588
|
});
|
|
50562
|
-
return
|
|
50589
|
+
return _context35.abrupt("break", 30);
|
|
50563
50590
|
case 28:
|
|
50564
50591
|
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
|
|
50565
50592
|
type: event,
|
|
50566
50593
|
data: actBasket.getAsJson()
|
|
50567
50594
|
});
|
|
50568
|
-
return
|
|
50595
|
+
return _context35.abrupt("break", 30);
|
|
50569
50596
|
case 30:
|
|
50570
|
-
return
|
|
50597
|
+
return _context35.abrupt("return");
|
|
50571
50598
|
case 31:
|
|
50572
50599
|
case "end":
|
|
50573
|
-
return
|
|
50600
|
+
return _context35.stop();
|
|
50574
50601
|
}
|
|
50575
|
-
},
|
|
50602
|
+
}, _callee35, this);
|
|
50576
50603
|
}));
|
|
50577
50604
|
function addToBasket(_x90) {
|
|
50578
50605
|
return _addToBasket.apply(this, arguments);
|
|
@@ -50629,26 +50656,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50629
50656
|
}, {
|
|
50630
50657
|
key: "getCurrentBasket",
|
|
50631
50658
|
value: function () {
|
|
50632
|
-
var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50659
|
+
var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee36(event, force, returnTo, dontGoToSummary, hideLoading) {
|
|
50633
50660
|
var _this$actSet40, _this$divaBasketHandl5, _this$onClickAddToBas3;
|
|
50634
|
-
return _regeneratorRuntime.wrap(function
|
|
50635
|
-
while (1) switch (
|
|
50661
|
+
return _regeneratorRuntime.wrap(function _callee36$(_context36) {
|
|
50662
|
+
while (1) switch (_context36.prev = _context36.next) {
|
|
50636
50663
|
case 0:
|
|
50637
50664
|
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet40 = this.actSet()) === null || _this$actSet40 === void 0 ? void 0 : _this$actSet40.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
|
|
50638
|
-
|
|
50665
|
+
_context36.next = 2;
|
|
50639
50666
|
break;
|
|
50640
50667
|
}
|
|
50641
|
-
return
|
|
50668
|
+
return _context36.abrupt("return", 'BASKET_ALREADY_SAVED');
|
|
50642
50669
|
case 2:
|
|
50643
|
-
|
|
50670
|
+
_context36.next = 4;
|
|
50644
50671
|
return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, undefined, event, force, returnTo, dontGoToSummary, hideLoading);
|
|
50645
50672
|
case 4:
|
|
50646
|
-
return
|
|
50673
|
+
return _context36.abrupt("return", !!_context36.sent);
|
|
50647
50674
|
case 5:
|
|
50648
50675
|
case "end":
|
|
50649
|
-
return
|
|
50676
|
+
return _context36.stop();
|
|
50650
50677
|
}
|
|
50651
|
-
},
|
|
50678
|
+
}, _callee36, this);
|
|
50652
50679
|
}));
|
|
50653
50680
|
function getCurrentBasket(_x91, _x92, _x93, _x94, _x95) {
|
|
50654
50681
|
return _getCurrentBasket.apply(this, arguments);
|
|
@@ -50881,9 +50908,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50881
50908
|
key: "initApiForLogicOnly",
|
|
50882
50909
|
value: //just for testing purposes
|
|
50883
50910
|
function () {
|
|
50884
|
-
var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50885
|
-
return _regeneratorRuntime.wrap(function
|
|
50886
|
-
while (1) switch (
|
|
50911
|
+
var _initApiForLogicOnly = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee37(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
|
|
50912
|
+
return _regeneratorRuntime.wrap(function _callee37$(_context37) {
|
|
50913
|
+
while (1) switch (_context37.prev = _context37.next) {
|
|
50887
50914
|
case 0:
|
|
50888
50915
|
//empty services
|
|
50889
50916
|
this.api = new DivaApiHandler(_objectSpread$8(_objectSpread$8({}, this.plannerConfig), {}, {
|
|
@@ -50896,16 +50923,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50896
50923
|
jwt: jwt,
|
|
50897
50924
|
apiKey: apiKey
|
|
50898
50925
|
}), handler);
|
|
50899
|
-
|
|
50926
|
+
_context37.next = 3;
|
|
50900
50927
|
return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
|
|
50901
50928
|
case 3:
|
|
50902
50929
|
this.plannerHandler = new DivaPlannerHandler(true);
|
|
50903
50930
|
if (this.strictArtifactGeneration) this.plannerHandler.setStrictArtifactGeneration(true);
|
|
50904
50931
|
case 5:
|
|
50905
50932
|
case "end":
|
|
50906
|
-
return
|
|
50933
|
+
return _context37.stop();
|
|
50907
50934
|
}
|
|
50908
|
-
},
|
|
50935
|
+
}, _callee37, this);
|
|
50909
50936
|
}));
|
|
50910
50937
|
function initApiForLogicOnly(_x96, _x97, _x98, _x99, _x100, _x101, _x102) {
|
|
50911
50938
|
return _initApiForLogicOnly.apply(this, arguments);
|
|
@@ -50920,16 +50947,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50920
50947
|
}, {
|
|
50921
50948
|
key: "loadBasket",
|
|
50922
50949
|
value: function () {
|
|
50923
|
-
var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50924
|
-
return _regeneratorRuntime.wrap(function
|
|
50925
|
-
while (1) switch (
|
|
50950
|
+
var _loadBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee38() {
|
|
50951
|
+
return _regeneratorRuntime.wrap(function _callee38$(_context38) {
|
|
50952
|
+
while (1) switch (_context38.prev = _context38.next) {
|
|
50926
50953
|
case 0:
|
|
50927
|
-
return
|
|
50954
|
+
return _context38.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
|
|
50928
50955
|
case 1:
|
|
50929
50956
|
case "end":
|
|
50930
|
-
return
|
|
50957
|
+
return _context38.stop();
|
|
50931
50958
|
}
|
|
50932
|
-
},
|
|
50959
|
+
}, _callee38, this);
|
|
50933
50960
|
}));
|
|
50934
50961
|
function loadBasket() {
|
|
50935
50962
|
return _loadBasket.apply(this, arguments);
|
|
@@ -50944,39 +50971,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
50944
50971
|
}, {
|
|
50945
50972
|
key: "initBasket",
|
|
50946
50973
|
value: function () {
|
|
50947
|
-
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
50974
|
+
var _initBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee39(init3D, ignoreFavorites) {
|
|
50948
50975
|
var initSetState, set, basket;
|
|
50949
|
-
return _regeneratorRuntime.wrap(function
|
|
50950
|
-
while (1) switch (
|
|
50976
|
+
return _regeneratorRuntime.wrap(function _callee39$(_context39) {
|
|
50977
|
+
while (1) switch (_context39.prev = _context39.next) {
|
|
50951
50978
|
case 0:
|
|
50952
50979
|
this.divaNr = this.divaBasketHandler.actDivaNr;
|
|
50953
50980
|
initSetState = this.getInitStateForSet(!init3D);
|
|
50954
|
-
|
|
50981
|
+
_context39.next = 4;
|
|
50955
50982
|
return this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
|
|
50956
50983
|
case 4:
|
|
50957
|
-
|
|
50984
|
+
_context39.next = 6;
|
|
50958
50985
|
return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
|
|
50959
50986
|
case 6:
|
|
50960
50987
|
//TODO check if when basket gets repaired the product match gets called
|
|
50961
50988
|
set = this.actSet();
|
|
50962
50989
|
setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
|
|
50963
50990
|
if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
|
|
50964
|
-
|
|
50991
|
+
_context39.next = 11;
|
|
50965
50992
|
break;
|
|
50966
50993
|
}
|
|
50967
|
-
|
|
50994
|
+
_context39.next = 11;
|
|
50968
50995
|
return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
|
|
50969
50996
|
case 11:
|
|
50970
|
-
|
|
50997
|
+
_context39.next = 13;
|
|
50971
50998
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
|
|
50972
50999
|
case 13:
|
|
50973
|
-
basket =
|
|
50974
|
-
return
|
|
51000
|
+
basket = _context39.sent;
|
|
51001
|
+
return _context39.abrupt("return", basket);
|
|
50975
51002
|
case 15:
|
|
50976
51003
|
case "end":
|
|
50977
|
-
return
|
|
51004
|
+
return _context39.stop();
|
|
50978
51005
|
}
|
|
50979
|
-
},
|
|
51006
|
+
}, _callee39, this);
|
|
50980
51007
|
}));
|
|
50981
51008
|
function initBasket(_x103, _x104) {
|
|
50982
51009
|
return _initBasket.apply(this, arguments);
|
|
@@ -51015,21 +51042,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
51015
51042
|
}, {
|
|
51016
51043
|
key: "getValidVariantsLength",
|
|
51017
51044
|
value: function () {
|
|
51018
|
-
var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
51045
|
+
var _getValidVariantsLength = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee40() {
|
|
51019
51046
|
var set;
|
|
51020
|
-
return _regeneratorRuntime.wrap(function
|
|
51021
|
-
while (1) switch (
|
|
51047
|
+
return _regeneratorRuntime.wrap(function _callee40$(_context40) {
|
|
51048
|
+
while (1) switch (_context40.prev = _context40.next) {
|
|
51022
51049
|
case 0:
|
|
51023
51050
|
set = this.actSet();
|
|
51024
|
-
|
|
51051
|
+
_context40.next = 3;
|
|
51025
51052
|
return favoritesHandlerInstance.getValidVariants(set, true);
|
|
51026
51053
|
case 3:
|
|
51027
|
-
return
|
|
51054
|
+
return _context40.abrupt("return", _context40.sent.length);
|
|
51028
51055
|
case 4:
|
|
51029
51056
|
case "end":
|
|
51030
|
-
return
|
|
51057
|
+
return _context40.stop();
|
|
51031
51058
|
}
|
|
51032
|
-
},
|
|
51059
|
+
}, _callee40, this);
|
|
51033
51060
|
}));
|
|
51034
51061
|
function getValidVariantsLength() {
|
|
51035
51062
|
return _getValidVariantsLength.apply(this, arguments);
|
|
@@ -51039,44 +51066,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
51039
51066
|
}, {
|
|
51040
51067
|
key: "handleFavorites",
|
|
51041
51068
|
value: function () {
|
|
51042
|
-
var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
51069
|
+
var _handleFavorites = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee41(mode) {
|
|
51043
51070
|
var _this5 = this;
|
|
51044
51071
|
var set, i;
|
|
51045
|
-
return _regeneratorRuntime.wrap(function
|
|
51046
|
-
while (1) switch (
|
|
51072
|
+
return _regeneratorRuntime.wrap(function _callee41$(_context41) {
|
|
51073
|
+
while (1) switch (_context41.prev = _context41.next) {
|
|
51047
51074
|
case 0:
|
|
51048
51075
|
set = this.actSet();
|
|
51049
51076
|
i = 0;
|
|
51050
51077
|
case 2:
|
|
51051
51078
|
if (!favoritesHandlerInstance.IsCalcForSummary) {
|
|
51052
|
-
|
|
51079
|
+
_context41.next = 11;
|
|
51053
51080
|
break;
|
|
51054
51081
|
}
|
|
51055
|
-
|
|
51082
|
+
_context41.next = 5;
|
|
51056
51083
|
return DivaUtils.Sleep(200);
|
|
51057
51084
|
case 5:
|
|
51058
51085
|
i++;
|
|
51059
51086
|
if (!(i > 1000)) {
|
|
51060
|
-
|
|
51087
|
+
_context41.next = 9;
|
|
51061
51088
|
break;
|
|
51062
51089
|
}
|
|
51063
51090
|
LOG$2.error(new DivaError('error on generating Variants of Summary'));
|
|
51064
|
-
return
|
|
51091
|
+
return _context41.abrupt("break", 11);
|
|
51065
51092
|
case 9:
|
|
51066
|
-
|
|
51093
|
+
_context41.next = 2;
|
|
51067
51094
|
break;
|
|
51068
51095
|
case 11:
|
|
51069
|
-
|
|
51096
|
+
_context41.next = 13;
|
|
51070
51097
|
return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
|
|
51071
51098
|
return _this5.update2DGrid(set);
|
|
51072
51099
|
}, this.actions);
|
|
51073
51100
|
case 13:
|
|
51074
|
-
return
|
|
51101
|
+
return _context41.abrupt("return", _context41.sent);
|
|
51075
51102
|
case 14:
|
|
51076
51103
|
case "end":
|
|
51077
|
-
return
|
|
51104
|
+
return _context41.stop();
|
|
51078
51105
|
}
|
|
51079
|
-
},
|
|
51106
|
+
}, _callee41, this);
|
|
51080
51107
|
}));
|
|
51081
51108
|
function handleFavorites(_x105) {
|
|
51082
51109
|
return _handleFavorites.apply(this, arguments);
|
|
@@ -51091,46 +51118,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
51091
51118
|
}, {
|
|
51092
51119
|
key: "initSapOrderLinesFromBasket",
|
|
51093
51120
|
value: function () {
|
|
51094
|
-
var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
51121
|
+
var _initSapOrderLinesFromBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee42(divaNr, init3D, onlyLoadOldBakset) {
|
|
51095
51122
|
var result, oldBasket, basket;
|
|
51096
|
-
return _regeneratorRuntime.wrap(function
|
|
51097
|
-
while (1) switch (
|
|
51123
|
+
return _regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
51124
|
+
while (1) switch (_context42.prev = _context42.next) {
|
|
51098
51125
|
case 0:
|
|
51099
51126
|
if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
|
|
51100
|
-
|
|
51127
|
+
_context42.next = 3;
|
|
51101
51128
|
return this.loadBasket();
|
|
51102
51129
|
case 3:
|
|
51103
|
-
result =
|
|
51130
|
+
result = _context42.sent;
|
|
51104
51131
|
if (!onlyLoadOldBakset) {
|
|
51105
|
-
|
|
51132
|
+
_context42.next = 6;
|
|
51106
51133
|
break;
|
|
51107
51134
|
}
|
|
51108
|
-
return
|
|
51135
|
+
return _context42.abrupt("return", {
|
|
51109
51136
|
oldBasket: new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
|
|
51110
51137
|
cache: {}
|
|
51111
51138
|
});
|
|
51112
51139
|
case 6:
|
|
51113
51140
|
if (!(result === false)) {
|
|
51114
|
-
|
|
51141
|
+
_context42.next = 8;
|
|
51115
51142
|
break;
|
|
51116
51143
|
}
|
|
51117
51144
|
throw new Error('Could not load basket! ' + divaNr);
|
|
51118
51145
|
case 8:
|
|
51119
51146
|
oldBasket = new BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
|
|
51120
|
-
|
|
51147
|
+
_context42.next = 11;
|
|
51121
51148
|
return this.initBasket(init3D);
|
|
51122
51149
|
case 11:
|
|
51123
|
-
basket =
|
|
51124
|
-
return
|
|
51150
|
+
basket = _context42.sent;
|
|
51151
|
+
return _context42.abrupt("return", {
|
|
51125
51152
|
basket: basket,
|
|
51126
51153
|
oldBasket: oldBasket,
|
|
51127
51154
|
cache: this.api.getJsonDataCache()
|
|
51128
51155
|
});
|
|
51129
51156
|
case 13:
|
|
51130
51157
|
case "end":
|
|
51131
|
-
return
|
|
51158
|
+
return _context42.stop();
|
|
51132
51159
|
}
|
|
51133
|
-
},
|
|
51160
|
+
}, _callee42, this);
|
|
51134
51161
|
}));
|
|
51135
51162
|
function initSapOrderLinesFromBasket(_x106, _x107, _x108) {
|
|
51136
51163
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
@@ -51386,183 +51413,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
51386
51413
|
}]);
|
|
51387
51414
|
}();
|
|
51388
51415
|
|
|
51389
|
-
var DockingPoint = /*#__PURE__*/function () {
|
|
51390
|
-
function DockingPoint(elementId, type, name, localPos, rotDeg, layer, plannerconfig, filter) {
|
|
51391
|
-
_classCallCheck(this, DockingPoint);
|
|
51392
|
-
_defineProperty(this, "dockingPoint", void 0);
|
|
51393
|
-
_defineProperty(this, "layer", void 0);
|
|
51394
|
-
_defineProperty(this, "isDisabled", void 0);
|
|
51395
|
-
//this is used to disable a docking point temporarily
|
|
51396
|
-
_defineProperty(this, "plannerconfig", void 0);
|
|
51397
|
-
this.plannerconfig = plannerconfig;
|
|
51398
|
-
|
|
51399
|
-
//Check for number backwardscompatible with _ (e.g. AVC_2)
|
|
51400
|
-
var splittedAV = name.split('_');
|
|
51401
|
-
this.isDisabled = false;
|
|
51402
|
-
var number = -1;
|
|
51403
|
-
if (splittedAV.length >= 2) {
|
|
51404
|
-
for (var i = 1; i < splittedAV.length; i++) {
|
|
51405
|
-
var part = parseInt(splittedAV[i]);
|
|
51406
|
-
if (!isNaN(part)) {
|
|
51407
|
-
number = part;
|
|
51408
|
-
break;
|
|
51409
|
-
}
|
|
51410
|
-
}
|
|
51411
|
-
} else if (name.length > 3) {
|
|
51412
|
-
//Check for number IDM Standard without _ (e.g. AVC2)
|
|
51413
|
-
var _part = parseInt(name.substring(3));
|
|
51414
|
-
if (!isNaN(_part)) {
|
|
51415
|
-
number = _part;
|
|
51416
|
-
}
|
|
51417
|
-
}
|
|
51418
|
-
this.dockingPoint = {
|
|
51419
|
-
dpId: type + '_' + name,
|
|
51420
|
-
elementId: elementId,
|
|
51421
|
-
type: type,
|
|
51422
|
-
name: name,
|
|
51423
|
-
ignoreLayer: type == 'AVR' || type == 'AVL' || name.indexOf('_IL') >= 0,
|
|
51424
|
-
localWorldPos: localPos,
|
|
51425
|
-
rotDeg: rotDeg,
|
|
51426
|
-
isDocking: false,
|
|
51427
|
-
dpFilter: filter
|
|
51428
|
-
};
|
|
51429
|
-
if (number >= 0) {
|
|
51430
|
-
this.dockingPoint.number = number;
|
|
51431
|
-
}
|
|
51432
|
-
this.layer = layer;
|
|
51433
|
-
}
|
|
51434
|
-
|
|
51435
|
-
/**
|
|
51436
|
-
* Creates a clone of the current dockingPoint
|
|
51437
|
-
*/
|
|
51438
|
-
return _createClass(DockingPoint, [{
|
|
51439
|
-
key: "clone",
|
|
51440
|
-
value: function clone() {
|
|
51441
|
-
var dpClone = new DockingPoint(this.dockingPoint.elementId, this.dockingPoint.type, this.dockingPoint.name, this.dockingPoint.localWorldPos, this.dockingPoint.rotDeg, this.layer, this.plannerconfig, this.dockingPoint.dpFilter);
|
|
51442
|
-
dpClone.dockingPoint.dpId = this.dockingPoint.dpId;
|
|
51443
|
-
dpClone.dockingPoint.ignoreLayer = this.dockingPoint.ignoreLayer;
|
|
51444
|
-
dpClone.dockingPoint.isDocking = this.dockingPoint.isDocking;
|
|
51445
|
-
dpClone.dockingPoint.number = this.dockingPoint.number;
|
|
51446
|
-
dpClone.dockingPoint.onDP = this.dockingPoint.onDP;
|
|
51447
|
-
dpClone.dockingPoint.onElementId = this.dockingPoint.onElementId;
|
|
51448
|
-
return dpClone;
|
|
51449
|
-
}
|
|
51450
|
-
}, {
|
|
51451
|
-
key: "ElementId",
|
|
51452
|
-
get: function get() {
|
|
51453
|
-
return this.dockingPoint.elementId;
|
|
51454
|
-
}
|
|
51455
|
-
}, {
|
|
51456
|
-
key: "Name",
|
|
51457
|
-
get: function get() {
|
|
51458
|
-
return this.dockingPoint.name;
|
|
51459
|
-
}
|
|
51460
|
-
}, {
|
|
51461
|
-
key: "LocalWorldPos",
|
|
51462
|
-
get: function get() {
|
|
51463
|
-
return this.dockingPoint.localWorldPos;
|
|
51464
|
-
}
|
|
51465
|
-
}, {
|
|
51466
|
-
key: "RotDeg",
|
|
51467
|
-
get: function get() {
|
|
51468
|
-
return this.dockingPoint.rotDeg;
|
|
51469
|
-
}
|
|
51470
|
-
}, {
|
|
51471
|
-
key: "Type",
|
|
51472
|
-
get: function get() {
|
|
51473
|
-
return this.dockingPoint.type;
|
|
51474
|
-
}
|
|
51475
|
-
}, {
|
|
51476
|
-
key: "IsDocking",
|
|
51477
|
-
get: function get() {
|
|
51478
|
-
return this.dockingPoint.isDocking;
|
|
51479
|
-
}
|
|
51480
|
-
}, {
|
|
51481
|
-
key: "Layer",
|
|
51482
|
-
get: function get() {
|
|
51483
|
-
return this.layer;
|
|
51484
|
-
}
|
|
51485
|
-
}, {
|
|
51486
|
-
key: "IgnoreLayer",
|
|
51487
|
-
get: function get() {
|
|
51488
|
-
return this.dockingPoint.ignoreLayer;
|
|
51489
|
-
}
|
|
51490
|
-
}, {
|
|
51491
|
-
key: "HasNumber",
|
|
51492
|
-
get: function get() {
|
|
51493
|
-
return this.dockingPoint.number == undefined ? false : true;
|
|
51494
|
-
}
|
|
51495
|
-
}, {
|
|
51496
|
-
key: "Number",
|
|
51497
|
-
get: function get() {
|
|
51498
|
-
return this.dockingPoint.number;
|
|
51499
|
-
}
|
|
51500
|
-
}, {
|
|
51501
|
-
key: "PlannerConfig",
|
|
51502
|
-
get: function get() {
|
|
51503
|
-
return this.plannerconfig;
|
|
51504
|
-
}
|
|
51505
|
-
}, {
|
|
51506
|
-
key: "IsDisabled",
|
|
51507
|
-
get: function get() {
|
|
51508
|
-
return this.isDisabled;
|
|
51509
|
-
}
|
|
51510
|
-
}, {
|
|
51511
|
-
key: "DPFilter",
|
|
51512
|
-
get: function get() {
|
|
51513
|
-
return this.dockingPoint.dpFilter;
|
|
51514
|
-
}
|
|
51515
|
-
/**
|
|
51516
|
-
* This function is called when the dockingPoint is docked to another dockingPoint
|
|
51517
|
-
* @param refDockingPoint The reference dockingpoint, this is docked to
|
|
51518
|
-
* @param refElementId The elementId of the reference DockingPoint
|
|
51519
|
-
*/
|
|
51520
|
-
}, {
|
|
51521
|
-
key: "doDock",
|
|
51522
|
-
value: function doDock(refDockingPoint, refElementId) {
|
|
51523
|
-
this.dockingPoint.isDocking = true;
|
|
51524
|
-
this.dockingPoint.onDP = refDockingPoint;
|
|
51525
|
-
this.dockingPoint.onElementId = refElementId;
|
|
51526
|
-
}
|
|
51527
|
-
|
|
51528
|
-
/**
|
|
51529
|
-
* This function is called when the dockingpoint should be undocked
|
|
51530
|
-
*/
|
|
51531
|
-
}, {
|
|
51532
|
-
key: "undock",
|
|
51533
|
-
value: function undock() {
|
|
51534
|
-
this.dockingPoint.isDocking = false;
|
|
51535
|
-
this.dockingPoint.onDP = undefined;
|
|
51536
|
-
this.dockingPoint.onElementId = undefined;
|
|
51537
|
-
}
|
|
51538
|
-
|
|
51539
|
-
/**
|
|
51540
|
-
* This function is used to disable the dp temporarily. It is ignored in the planer
|
|
51541
|
-
* @param doDisable
|
|
51542
|
-
*/
|
|
51543
|
-
}, {
|
|
51544
|
-
key: "disableDP",
|
|
51545
|
-
value: function disableDP(doDisable) {
|
|
51546
|
-
this.isDisabled = doDisable;
|
|
51547
|
-
}
|
|
51548
|
-
}, {
|
|
51549
|
-
key: "OnDP",
|
|
51550
|
-
get: function get() {
|
|
51551
|
-
return this.dockingPoint.onDP;
|
|
51552
|
-
}
|
|
51553
|
-
}, {
|
|
51554
|
-
key: "OnElementId",
|
|
51555
|
-
get: function get() {
|
|
51556
|
-
return this.dockingPoint.onElementId;
|
|
51557
|
-
}
|
|
51558
|
-
}, {
|
|
51559
|
-
key: "DpId",
|
|
51560
|
-
get: function get() {
|
|
51561
|
-
return this.dockingPoint.dpId;
|
|
51562
|
-
}
|
|
51563
|
-
}]);
|
|
51564
|
-
}();
|
|
51565
|
-
|
|
51566
51416
|
function ownKeys$7(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; }
|
|
51567
51417
|
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
51568
51418
|
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -71996,4 +71846,4 @@ function _withTimeout() {
|
|
|
71996
71846
|
return _withTimeout.apply(this, arguments);
|
|
71997
71847
|
}
|
|
71998
71848
|
|
|
71999
|
-
export { ArtifactGenerationError as A, BoundingBox as B, Cell as C,
|
|
71849
|
+
export { ArtifactGenerationError as A, BoundingBox as B, Cell as C, DivaWebPlanner as D, Grid as G, HQRenderScript as H, JsonDataCache as J, OptionCatalogData as O, PlannerElementData as P, Rendering as R, Vector3 as V, articleHandlerInstance as a, setHandlerInstance as b, Vector2 as c, DivaArticle as d, DivaCatalogData as e, DivaBasketHandler as f, CatalogPlannerArticleData as g, Vector4 as h, creatRenderOrders as i, getOrigProductId as j, headlessSession as k, loadAndRepairBasket as l, collectStructureStepKeys as m, runHeadlessArtifactPassBatch as n, runHeadlessArtifactPass as r, summaryHandlerInstance as s };
|