@crystaldesign/web-planner-logic 26.2.0-rc.0 → 26.2.0-rc.10
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-baf0eaba.js → DivaBoxPlanner-558417ab.js} +14 -44
- package/build/cjs/{DivaStandardPlanner-8502516f.js → DivaStandardPlanner-6c82dd67.js} +2 -2
- package/build/cjs/{DoorPlanner-3447adc3.js → DoorPlanner-f983763e.js} +1 -1
- package/build/cjs/{Host3DSignalR-55639e78.js → Host3DSignalR-37c1dc7a.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-bf8a67fa.js → LiviqueWWSHandler-b285da64.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-98977bab.js → PfisterWWSHandler-c1c58f7f.js} +1 -1
- package/build/cjs/{PlannerHandler2D-076e87ea.js → PlannerHandler2D-e27e38c5.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-b0ec1211.js → SeriousBasketHandler-c0443fe7.js} +1 -1
- package/build/cjs/{ShelfPlanner-ea40e9d0.js → ShelfPlanner-d6008a9d.js} +1 -1
- package/build/cjs/{StandardWWSHandler-6525fefc.js → StandardWWSHandler-69b08d0b.js} +1 -1
- package/build/cjs/{index-27cbc865.js → index-fe5e5e8b.js} +77 -48
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-7f4b1308.js → DivaBoxPlanner-ff654c27.js} +14 -44
- package/build/esm/{DivaStandardPlanner-db1a34a2.js → DivaStandardPlanner-52cff7b5.js} +2 -2
- package/build/esm/{DoorPlanner-972231e9.js → DoorPlanner-7cb84df4.js} +1 -1
- package/build/esm/{Host3DSignalR-c98f678a.js → Host3DSignalR-2ad8c74c.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-f21aaf5d.js → LiviqueWWSHandler-0d65c4af.js} +1 -1
- package/build/esm/{PfisterWWSHandler-7faf7ebe.js → PfisterWWSHandler-ee93a854.js} +1 -1
- package/build/esm/{PlannerHandler2D-f2ba300a.js → PlannerHandler2D-69031bdd.js} +1 -1
- package/build/esm/{SeriousBasketHandler-09b55dc8.js → SeriousBasketHandler-39d3cb16.js} +1 -1
- package/build/esm/{ShelfPlanner-be418bcd.js → ShelfPlanner-b4088b4c.js} +1 -1
- package/build/esm/{StandardWWSHandler-92787951.js → StandardWWSHandler-0ee0dbbe.js} +1 -1
- package/build/esm/{index-ec3c1d18.js → index-51bcfa59.js} +77 -48
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ConfiguratorStructureDataType.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/ConfiguratorStructureDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +6 -2
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +9 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +0 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts +4 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +6 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +0 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +11 -4
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +6 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +7 -2
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerInteractionData.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -5,11 +5,11 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-fe5e5e8b.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
11
11
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
12
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
12
|
+
var PlannerHandler2D = require('./PlannerHandler2D-e27e38c5.js');
|
|
13
13
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
14
14
|
require('axios');
|
|
15
15
|
require('@crystaldesign/basket-model');
|
|
@@ -3145,7 +3145,7 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
3145
3145
|
retailArticleRules: constructionRule.retailArticleRules
|
|
3146
3146
|
};
|
|
3147
3147
|
}
|
|
3148
|
-
} else if (constructionRule.range ==
|
|
3148
|
+
} else if (constructionRule.range == 'singular') {
|
|
3149
3149
|
var _allValid = false;
|
|
3150
3150
|
//Do check if all Elements satify the rules
|
|
3151
3151
|
for (var j = 0; j < allElements.length; j++) {
|
|
@@ -3182,35 +3182,6 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
3182
3182
|
return this.constructionRulesLoaded;
|
|
3183
3183
|
}
|
|
3184
3184
|
|
|
3185
|
-
/* This is a hardcoded System4/Quadro functionality
|
|
3186
|
-
* we need a aussenblech on the side of every door side
|
|
3187
|
-
* but not if the neighbor door has the same shared side -> then we do not
|
|
3188
|
-
* need any
|
|
3189
|
-
*/
|
|
3190
|
-
}, {
|
|
3191
|
-
key: "correctAussenblech",
|
|
3192
|
-
value: function correctAussenblech(boxPlannerGrid, optionHandler, curElementId) {
|
|
3193
|
-
if (boxPlannerGrid.getForceSingleCellPerElement()) {
|
|
3194
|
-
var right = boxPlannerGrid.getNeighborElements(curElementId, "RIGHT");
|
|
3195
|
-
var left = boxPlannerGrid.getNeighborElements(curElementId, "LEFT");
|
|
3196
|
-
var curopt = this.getOptionVal(curElementId, "OPTTUER", optionHandler);
|
|
3197
|
-
if (right.length > 0 && curopt) {
|
|
3198
|
-
var rightopt = this.getOptionVal(right[0].ElementId, "OPTTUER", optionHandler);
|
|
3199
|
-
if (rightopt && rightopt == 'OPVLINKS' && curopt == 'OPVRECHTS') {
|
|
3200
|
-
optionHandler.get(curElementId).set('OPTAUSSENBLECH_RECHTS', 'OPVOHNE');
|
|
3201
|
-
optionHandler.get(curElementId).set('OPTAUSSENBLECH_LINKS', 'OPVOHNE');
|
|
3202
|
-
}
|
|
3203
|
-
}
|
|
3204
|
-
if (left.length > 0 && curopt) {
|
|
3205
|
-
var leftopt = this.getOptionVal(left[0].ElementId, "OPTTUER", optionHandler);
|
|
3206
|
-
if (leftopt && leftopt == 'OPVRECHTS' && curopt == 'OPVLINKS') {
|
|
3207
|
-
optionHandler.get(curElementId).set('OPTAUSSENBLECH_LINKS', 'OPVOHNE');
|
|
3208
|
-
optionHandler.get(curElementId).set('OPTAUSSENBLECH_RECHTS', 'OPVOHNE');
|
|
3209
|
-
}
|
|
3210
|
-
}
|
|
3211
|
-
}
|
|
3212
|
-
}
|
|
3213
|
-
|
|
3214
3185
|
//Die gleiche Option kann sowohl nach rechts als auch nach oben gesetzt werden (Rahmen rechts oben). Wenn das der Fall ist, darf wenn es rechts keinen Nachbarn gibt nicht mit doShow überschrieben werden, wenn es vorher bei TOP versteckt wurde
|
|
3215
3186
|
//Deshalb darf es nicht angeschalten werden, wenn es in der gleichen Runde ausgeschalten wurde
|
|
3216
3187
|
/*
|
|
@@ -3359,13 +3330,13 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
3359
3330
|
i = 0;
|
|
3360
3331
|
case 55:
|
|
3361
3332
|
if (!(i < boxPlannerGrid.getColumnCount())) {
|
|
3362
|
-
_context.next =
|
|
3333
|
+
_context.next = 68;
|
|
3363
3334
|
break;
|
|
3364
3335
|
}
|
|
3365
3336
|
j = 0;
|
|
3366
3337
|
case 57:
|
|
3367
3338
|
if (!(j < boxPlannerGrid.getRowCount(i, false))) {
|
|
3368
|
-
_context.next =
|
|
3339
|
+
_context.next = 65;
|
|
3369
3340
|
break;
|
|
3370
3341
|
}
|
|
3371
3342
|
_elementId2 = (_boxPlannerGrid$getPl4 = boxPlannerGrid.getPlannerElementAtGridPos(i, j, false)) === null || _boxPlannerGrid$getPl4 === void 0 ? void 0 : _boxPlannerGrid$getPl4.getElementId();
|
|
@@ -3373,27 +3344,26 @@ var ConstructionRulesHandler = /*#__PURE__*/function () {
|
|
|
3373
3344
|
_context.next = 61;
|
|
3374
3345
|
break;
|
|
3375
3346
|
}
|
|
3376
|
-
return _context.abrupt("continue",
|
|
3347
|
+
return _context.abrupt("continue", 62);
|
|
3377
3348
|
case 61:
|
|
3378
3349
|
this.correctBack(boxPlannerGrid, optionHandler, _elementId2);
|
|
3379
|
-
|
|
3380
|
-
case 63:
|
|
3350
|
+
case 62:
|
|
3381
3351
|
j++;
|
|
3382
3352
|
_context.next = 57;
|
|
3383
3353
|
break;
|
|
3384
|
-
case
|
|
3354
|
+
case 65:
|
|
3385
3355
|
i++;
|
|
3386
3356
|
_context.next = 55;
|
|
3387
3357
|
break;
|
|
3388
|
-
case
|
|
3358
|
+
case 68:
|
|
3389
3359
|
doChangeRetailArticleNumbers = this.doChangeRetailArticleNumbers(boxPlannerGrid, optionHandler);
|
|
3390
|
-
_context.next =
|
|
3360
|
+
_context.next = 71;
|
|
3391
3361
|
return this.updateCfgValuesByPlanner(optionHandler, undefined, this.constructionRules.partlistRules.bundleRules, doChangeRetailArticleNumbers);
|
|
3392
|
-
case
|
|
3362
|
+
case 71:
|
|
3393
3363
|
LOG$2.debug('BoxPlanner updateOptionLogic - Duration after setting Option Values of all Articles: ' + (new Date().getTime() - startTime));
|
|
3394
3364
|
LOG$2.debug('BoxPlanner updateOptionLogic - Duration after setting updating configurator: ' + (new Date().getTime() - startTime));
|
|
3395
3365
|
return _context.abrupt("return", resultMessage);
|
|
3396
|
-
case
|
|
3366
|
+
case 74:
|
|
3397
3367
|
case "end":
|
|
3398
3368
|
return _context.stop();
|
|
3399
3369
|
}
|
|
@@ -4204,6 +4174,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4204
4174
|
var endHeight = 0;
|
|
4205
4175
|
for (var y = 0; y < currentRow.length;) {
|
|
4206
4176
|
var cell = currentRow[y];
|
|
4177
|
+
if (!cell.plannedElement) continue;
|
|
4207
4178
|
if (cell.index.y < res.startRowIndex) startHeight = Math.round((startHeight + cell.plannedElement.size.height) * 1000) / 1000;
|
|
4208
4179
|
if (cell.index.y < res.endRowIndex) endHeight = Math.round((endHeight + cell.plannedElement.size.height) * 1000) / 1000;
|
|
4209
4180
|
y = cell.plannedElement.area.toY;
|
|
@@ -4243,7 +4214,7 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4243
4214
|
var _cell6$plannedElement, _cell6$plannedElement2;
|
|
4244
4215
|
var _cell6 = _neighbourRow[_y2];
|
|
4245
4216
|
if (neighbours.includes(_cell6)) continue;
|
|
4246
|
-
if (plannedElement.area.fromY == _y2 && this.gridSetupParams.forceSingleCellPerElement && plannedElement.area.
|
|
4217
|
+
if (plannedElement.area.fromY == _y2 && this.gridSetupParams.forceSingleCellPerElement && plannedElement.area.fromX - 1 == _x2) neighbours.push(_cell6);else if (clean && !this.gridSetupParams.forceSingleCellPerElement && neighbourSize == startHeight) neighbours.push(_cell6);else if (!clean && neighbourSize >= startHeight && neighbourSize <= endHeight) neighbours.push(_cell6);
|
|
4247
4218
|
neighbourSize = Math.round((neighbourSize + _cell6.plannedElement.size.height) * 1000) / 1000;
|
|
4248
4219
|
_y2 = (_cell6$plannedElement = (_cell6$plannedElement2 = _cell6.plannedElement) === null || _cell6$plannedElement2 === void 0 ? void 0 : _cell6$plannedElement2.area.toY) !== null && _cell6$plannedElement !== void 0 ? _cell6$plannedElement : _y2 + 1;
|
|
4249
4220
|
}
|
|
@@ -4870,7 +4841,6 @@ var BoxPlannerGrid = /*#__PURE__*/function () {
|
|
|
4870
4841
|
for (var _y5 = cell.plannedElement.area.fromY; _y5 < cell.plannedElement.area.toY; _y5++) {
|
|
4871
4842
|
var _cell9 = grid[_x6][_y5];
|
|
4872
4843
|
if (!_cell9 || _cell9.plannedElement.elementId == elementId) continue; //already corrected
|
|
4873
|
-
|
|
4874
4844
|
_cell9.index.x += diff.x;
|
|
4875
4845
|
_cell9.plannedElement.area.fromX += diff.x;
|
|
4876
4846
|
_cell9.plannedElement.area.toX += diff.x;
|
|
@@ -5,9 +5,9 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-fe5e5e8b.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
|
-
var PlannerHandler2D = require('./PlannerHandler2D-
|
|
10
|
+
var PlannerHandler2D = require('./PlannerHandler2D-e27e38c5.js');
|
|
11
11
|
require('@babel/runtime/helpers/slicedToArray');
|
|
12
12
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
13
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
require('./index-
|
|
6
|
+
require('./index-fe5e5e8b.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
9
9
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-fe5e5e8b.js');
|
|
9
9
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
10
10
|
var signalr = require('@microsoft/signalr');
|
|
11
11
|
var io = require('socket.io-client');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-fe5e5e8b.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/defineProperty');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-fe5e5e8b.js');
|
|
6
6
|
var basketModel = require('@crystaldesign/basket-model');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
@@ -5,7 +5,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
5
5
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
6
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
7
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-fe5e5e8b.js');
|
|
9
9
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
10
10
|
var fabric = require('fabric');
|
|
11
11
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-fe5e5e8b.js');
|
|
7
7
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
8
8
|
require('@babel/runtime/helpers/slicedToArray');
|
|
9
9
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -6,7 +6,7 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
|
6
6
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
7
7
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
9
|
-
var index = require('./index-
|
|
9
|
+
var index = require('./index-fe5e5e8b.js');
|
|
10
10
|
var DivaUtils = require('@crystaldesign/diva-utils');
|
|
11
11
|
require('@babel/runtime/helpers/slicedToArray');
|
|
12
12
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
|
4
4
|
var _createClass = require('@babel/runtime/helpers/createClass');
|
|
5
|
-
require('./index-
|
|
5
|
+
require('./index-fe5e5e8b.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/defineProperty');
|
|
@@ -194,7 +194,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
194
194
|
}));
|
|
195
195
|
}
|
|
196
196
|
//if data is paginated iterate and fetch all
|
|
197
|
-
if (!(Array.isArray(data.data) && data.total)) {
|
|
197
|
+
if (!(Array.isArray(data.data) && data.total !== undefined)) {
|
|
198
198
|
_context.next = 35;
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
@@ -2233,11 +2233,6 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
2233
2233
|
get: function get() {
|
|
2234
2234
|
return this.opt.measureKey;
|
|
2235
2235
|
}
|
|
2236
|
-
}, {
|
|
2237
|
-
key: "pairWithOptionsToGroup",
|
|
2238
|
-
get: function get() {
|
|
2239
|
-
return this.opt.propertyObj.pairWithOptionsToGroup;
|
|
2240
|
-
}
|
|
2241
2236
|
}, {
|
|
2242
2237
|
key: "isDescribingState",
|
|
2243
2238
|
get: function get() {
|
|
@@ -2354,6 +2349,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
2354
2349
|
get: function get() {
|
|
2355
2350
|
return this.opt.propertyObj.contentItemId;
|
|
2356
2351
|
}
|
|
2352
|
+
}, {
|
|
2353
|
+
key: "contentItemTeaser",
|
|
2354
|
+
get: function get() {
|
|
2355
|
+
return this.opt.propertyObj.contentItemTeaser;
|
|
2356
|
+
}
|
|
2357
|
+
}, {
|
|
2358
|
+
key: "partOfGroup",
|
|
2359
|
+
get: function get() {
|
|
2360
|
+
return this.opt.propertyObj.partOfGroup;
|
|
2361
|
+
}
|
|
2357
2362
|
}, {
|
|
2358
2363
|
key: "customDimension",
|
|
2359
2364
|
get: function get() {
|
|
@@ -2397,6 +2402,7 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
2397
2402
|
}]);
|
|
2398
2403
|
}();
|
|
2399
2404
|
var setOptionsProperties = function setOptionsProperties(catalogData, opt, properties) {
|
|
2405
|
+
var _groupOptions$;
|
|
2400
2406
|
for (var i = 0; i < (properties === null || properties === void 0 ? void 0 : properties.length); i++) {
|
|
2401
2407
|
var prop = properties[i];
|
|
2402
2408
|
var key = prop.Codex;
|
|
@@ -2423,9 +2429,13 @@ var setOptionsProperties = function setOptionsProperties(catalogData, opt, prope
|
|
|
2423
2429
|
case 'DIAMETER':
|
|
2424
2430
|
opt.diameter = !!prop.Value;
|
|
2425
2431
|
break;
|
|
2426
|
-
case '
|
|
2427
|
-
|
|
2428
|
-
|
|
2432
|
+
case 'GROUP_OPTIONS_LEFT_AND_RIGHT':
|
|
2433
|
+
var groupOptions = prop.Value.split(';');
|
|
2434
|
+
var position = (_groupOptions$ = groupOptions[1]) === null || _groupOptions$ === void 0 ? void 0 : _groupOptions$.toLocaleLowerCase();
|
|
2435
|
+
opt.partOfGroup = {
|
|
2436
|
+
groupName: groupOptions[0],
|
|
2437
|
+
position: ['l', 'r'].includes(position) ? position : undefined
|
|
2438
|
+
};
|
|
2429
2439
|
case 'REQUIRES_USER_INPUT':
|
|
2430
2440
|
opt.requiresUserInput = !!prop.Value;
|
|
2431
2441
|
break;
|
|
@@ -2490,10 +2500,13 @@ var setOptionsProperties = function setOptionsProperties(catalogData, opt, prope
|
|
|
2490
2500
|
case 'CONTENT_ITEM':
|
|
2491
2501
|
opt.contentItemId = prop.Value;
|
|
2492
2502
|
break;
|
|
2493
|
-
case
|
|
2503
|
+
case 'CONTENT_ITEM_TEASER':
|
|
2504
|
+
opt.contentItemTeaser = JSON.parse(prop.Value);
|
|
2505
|
+
break;
|
|
2506
|
+
case 'REQUIRED_OPTION':
|
|
2494
2507
|
opt.requiredOption = !!prop.Value;
|
|
2495
2508
|
break;
|
|
2496
|
-
case
|
|
2509
|
+
case 'SUGGESTED_OPTION':
|
|
2497
2510
|
opt.suggestedOption = !!prop.Value;
|
|
2498
2511
|
break;
|
|
2499
2512
|
case 'ADDITIONAL_GROUP_FILTER':
|
|
@@ -18853,10 +18866,10 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
18853
18866
|
return this.opt.catalogOPT.layout;
|
|
18854
18867
|
}
|
|
18855
18868
|
}, {
|
|
18856
|
-
key: "
|
|
18869
|
+
key: "partOfGroup",
|
|
18857
18870
|
get: function get() {
|
|
18858
|
-
if (this.opt.propertyObj.
|
|
18859
|
-
return this.opt.catalogOPT.
|
|
18871
|
+
if (this.opt.propertyObj.partOfGroup !== undefined) return this.opt.propertyObj.partOfGroup;
|
|
18872
|
+
return this.opt.catalogOPT.partOfGroup;
|
|
18860
18873
|
}
|
|
18861
18874
|
}, {
|
|
18862
18875
|
key: "isDescribingState",
|
|
@@ -18922,6 +18935,12 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
18922
18935
|
if (this.opt.propertyObj.contentItemId !== undefined) return this.opt.propertyObj.contentItemId;
|
|
18923
18936
|
return this.opt.catalogOPT.contentItemId;
|
|
18924
18937
|
}
|
|
18938
|
+
}, {
|
|
18939
|
+
key: "contentItemTeaser",
|
|
18940
|
+
get: function get() {
|
|
18941
|
+
if (this.opt.propertyObj.contentItemTeaser !== undefined) return this.opt.propertyObj.contentItemTeaser;
|
|
18942
|
+
return this.opt.catalogOPT.contentItemTeaser;
|
|
18943
|
+
}
|
|
18925
18944
|
}, {
|
|
18926
18945
|
key: "customDimension",
|
|
18927
18946
|
get: function get() {
|
|
@@ -19016,6 +19035,12 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
19016
19035
|
if (this.opt.propertyObj.ignorePgrGroupPosition !== undefined) return this.opt.propertyObj.ignorePgrGroupPosition;
|
|
19017
19036
|
return this.opt.catalogOPT.ignorePgrGroupPosition;
|
|
19018
19037
|
}
|
|
19038
|
+
}, {
|
|
19039
|
+
key: "additionalGroupFilter",
|
|
19040
|
+
get: function get() {
|
|
19041
|
+
if (this.opt.propertyObj.additionalGroupFilter !== undefined) return this.opt.propertyObj.additionalGroupFilter;
|
|
19042
|
+
return this.opt.catalogOPT.additionalGroupFilter;
|
|
19043
|
+
}
|
|
19019
19044
|
}, {
|
|
19020
19045
|
key: "mergeIDMToOPG",
|
|
19021
19046
|
get: function get() {
|
|
@@ -22224,7 +22249,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
|
|
|
22224
22249
|
break;
|
|
22225
22250
|
}
|
|
22226
22251
|
_context2.next = 25;
|
|
22227
|
-
return this.loadAdditionalModelInfos(state, catalogApiData.
|
|
22252
|
+
return this.loadAdditionalModelInfos(state, catalogApiData.AccountGuid, catalogApiData.GUID);
|
|
22228
22253
|
case 25:
|
|
22229
22254
|
additionalModelInfos = _context2.sent;
|
|
22230
22255
|
case 26:
|
|
@@ -22435,11 +22460,6 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
22435
22460
|
get: function get() {
|
|
22436
22461
|
return this.articleOptionState.option.tabGroup_locales;
|
|
22437
22462
|
}
|
|
22438
|
-
}, {
|
|
22439
|
-
key: "pairWithOptionsToGroup",
|
|
22440
|
-
get: function get() {
|
|
22441
|
-
return this.articleOptionState.option.pairWithOptionsToGroup;
|
|
22442
|
-
}
|
|
22443
22463
|
}, {
|
|
22444
22464
|
key: "isMultiselect",
|
|
22445
22465
|
get: function get() {
|
|
@@ -28169,7 +28189,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28169
28189
|
return ret;
|
|
28170
28190
|
}
|
|
28171
28191
|
}, {
|
|
28172
|
-
key: "
|
|
28192
|
+
key: "VariantValuesWithoutEmptyFreetext",
|
|
28173
28193
|
get: function get() {
|
|
28174
28194
|
var ret = {};
|
|
28175
28195
|
var _iterator12 = _createForOfIteratorHelper$8(this.articleOptionStates.values()),
|
|
@@ -28177,7 +28197,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28177
28197
|
try {
|
|
28178
28198
|
for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
|
|
28179
28199
|
var ops = _step12.value;
|
|
28180
|
-
if (ops.valCodex && !ops.isFreeText) {
|
|
28200
|
+
if (ops.valCodex && (!ops.isFreeText || ops.freeText !== undefined)) {
|
|
28181
28201
|
ret[ops.optionCodex] = ops.valCodex;
|
|
28182
28202
|
}
|
|
28183
28203
|
}
|
|
@@ -29177,7 +29197,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29177
29197
|
break;
|
|
29178
29198
|
}
|
|
29179
29199
|
_context.next = 4;
|
|
29180
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
29200
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-d6008a9d.js'); });
|
|
29181
29201
|
case 4:
|
|
29182
29202
|
_yield$import = _context.sent;
|
|
29183
29203
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -29440,7 +29460,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29440
29460
|
var _pla$partlistGroupPre;
|
|
29441
29461
|
var pla = this.article.partlistArticles[key];
|
|
29442
29462
|
if (!pla.hasOptionsThatParentDoesNotHave) continue;
|
|
29443
|
-
var prefix = ((_pla$partlistGroupPre = pla.partlistGroupPrefix) !== null && _pla$partlistGroupPre !== void 0 ? _pla$partlistGroupPre : pla.articleCodex) +
|
|
29463
|
+
var prefix = ((_pla$partlistGroupPre = pla.partlistGroupPrefix) !== null && _pla$partlistGroupPre !== void 0 ? _pla$partlistGroupPre : pla.articleCodex) + '|';
|
|
29444
29464
|
pla.addOptionStateFromArticleToPlannerData(ret, alternateRenderInfo, prefix);
|
|
29445
29465
|
}
|
|
29446
29466
|
}
|
|
@@ -29456,13 +29476,13 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29456
29476
|
opt = (_ops$option$ocd = ops.option.ocd) !== null && _ops$option$ocd !== void 0 ? _ops$option$ocd : ops.optionCodex;
|
|
29457
29477
|
if (alternateRenderInfo != undefined && alternateRenderInfo.hideOptionsIn3DImage.includes(opt)) return;
|
|
29458
29478
|
ret.CFG.push({
|
|
29459
|
-
OPT: partlistPrefix ?
|
|
29479
|
+
OPT: partlistPrefix ? 'OPT' + partlistPrefix + opt.substring(3) : opt,
|
|
29460
29480
|
OPV: opv
|
|
29461
29481
|
});
|
|
29462
29482
|
//if freeText in option add it as option_val
|
|
29463
29483
|
if (ops.isFreeText && ops.freeText && ops.measureUnit) {
|
|
29464
29484
|
ret.CFG.push({
|
|
29465
|
-
OPT: partlistPrefix ?
|
|
29485
|
+
OPT: partlistPrefix ? 'OPT' + partlistPrefix + opt.substring(3) + '_val' : opt + '_val',
|
|
29466
29486
|
OPV: ops.freeText
|
|
29467
29487
|
});
|
|
29468
29488
|
}
|
|
@@ -29472,7 +29492,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29472
29492
|
ret.MAT = [];
|
|
29473
29493
|
}
|
|
29474
29494
|
ret.MAT.push({
|
|
29475
|
-
OPT: partlistPrefix ?
|
|
29495
|
+
OPT: partlistPrefix ? 'OPT' + partlistPrefix + opt.substring(3) : opt,
|
|
29476
29496
|
N: DivaUtils__default["default"].removeSpecialChars((_ops$val$name = ops.val.name) !== null && _ops$val$name !== void 0 ? _ops$val$name : ''),
|
|
29477
29497
|
T: ops.val.textureName,
|
|
29478
29498
|
M: ops.val.material
|
|
@@ -29724,7 +29744,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29724
29744
|
value: function validateAndSetNewConfigValues(newConfigValues) {
|
|
29725
29745
|
var freeTextValues = {};
|
|
29726
29746
|
for (var key in newConfigValues) {
|
|
29727
|
-
var _ops8, _ops9, _newConfigValues$key;
|
|
29747
|
+
var _ops8, _ops9, _newConfigValues$key, _newConfigValues$key$, _newConfigValues$key2;
|
|
29728
29748
|
var ops = this.getArticleOptionState(key);
|
|
29729
29749
|
var _this$parentOptionCod5 = this.parentOptionCodex(key),
|
|
29730
29750
|
optionCodex = _this$parentOptionCod5.optionCodex,
|
|
@@ -29735,7 +29755,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29735
29755
|
if ((_ops9 = ops) !== null && _ops9 !== void 0 && _ops9.isFreeText) {
|
|
29736
29756
|
this.handleFreeText(ops, newConfigValues, key, freeTextValues);
|
|
29737
29757
|
}
|
|
29738
|
-
var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key
|
|
29758
|
+
var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 || (_newConfigValues$key$ = (_newConfigValues$key2 = _newConfigValues$key).split) === null || _newConfigValues$key$ === void 0 ? void 0 : _newConfigValues$key$.call(_newConfigValues$key2, ';')[0];
|
|
29739
29759
|
var foundItem = this.checkOptionAndOptionValue(optionCodex, opvCodex, partenOptionCodex);
|
|
29740
29760
|
if (foundItem.opt) {
|
|
29741
29761
|
if (foundItem.opv && foundItem.opv instanceof ArticleOptionValueData) {
|
|
@@ -32252,7 +32272,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
32252
32272
|
if (!steps) throw new Error('Step: ' + configStepKey + ' not found');
|
|
32253
32273
|
return {
|
|
32254
32274
|
optionCodex: steps.optionStep.codex,
|
|
32255
|
-
|
|
32275
|
+
partOfGroup: steps.optionStep.partOfGroup,
|
|
32256
32276
|
isMultiselect: steps.optionStep.isMultiselect,
|
|
32257
32277
|
actStepName: steps.optionStep.title,
|
|
32258
32278
|
groupsDefaultClosed: typeof set.CatalogData.defaultGroupsClosed == 'boolean' ? set.CatalogData.defaultGroupsClosed : set.CatalogData.defaultGroupsClosed.includes(steps.optionStep.codex.substring(3))
|
|
@@ -34147,7 +34167,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
34147
34167
|
break;
|
|
34148
34168
|
}
|
|
34149
34169
|
_context5.next = 3;
|
|
34150
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
34170
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-f983763e.js'); });
|
|
34151
34171
|
case 3:
|
|
34152
34172
|
_yield$import = _context5.sent;
|
|
34153
34173
|
DoorPlanner = _yield$import["default"];
|
|
@@ -36169,9 +36189,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
36169
36189
|
title: name,
|
|
36170
36190
|
codex: codex,
|
|
36171
36191
|
isMultiselect: !!(optionState !== null && optionState !== void 0 && optionState.isMultiselect),
|
|
36192
|
+
partOfGroup: optionState === null || optionState === void 0 ? void 0 : optionState.option.partOfGroup,
|
|
36172
36193
|
configSteps: new Map(),
|
|
36173
|
-
idmVariantType: optionState === null || optionState === void 0 ? void 0 : optionState.idmVariantenArt
|
|
36174
|
-
pairWithOptionsToGroup: optionState === null || optionState === void 0 ? void 0 : optionState.pairWithOptionsToGroup
|
|
36194
|
+
idmVariantType: optionState === null || optionState === void 0 ? void 0 : optionState.idmVariantenArt
|
|
36175
36195
|
};
|
|
36176
36196
|
return newOptionStep;
|
|
36177
36197
|
}
|
|
@@ -36596,7 +36616,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
36596
36616
|
case 103:
|
|
36597
36617
|
return _context3.abrupt("return", {
|
|
36598
36618
|
configItems: configItems,
|
|
36599
|
-
option: optionCodex ?
|
|
36619
|
+
option: optionCodex ? optionState.option : undefined,
|
|
36600
36620
|
selectedItems: selectedItems.map(function (sel) {
|
|
36601
36621
|
return configItems.find(function (c) {
|
|
36602
36622
|
return c.codex === sel;
|
|
@@ -38880,8 +38900,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38880
38900
|
key: "loadConfigItemsOfActSetByConfigStepKey",
|
|
38881
38901
|
value: function () {
|
|
38882
38902
|
var _loadConfigItemsOfActSetByConfigStepKey = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(set, configStepKey, visible, hidePricePreview) {
|
|
38883
|
-
var _configItems$option, _configItems$option2;
|
|
38884
|
-
var configItems, paletteType, filterType, stepInfo, contentItemId;
|
|
38903
|
+
var _configItems$option, _configItems$option2, _configItems$option3;
|
|
38904
|
+
var configItems, paletteType, filterType, stepInfo, contentItemId, contentItemTeaser;
|
|
38885
38905
|
return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context25) {
|
|
38886
38906
|
while (1) switch (_context25.prev = _context25.next) {
|
|
38887
38907
|
case 0:
|
|
@@ -38898,6 +38918,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38898
38918
|
filterType = set.configTree.getCurFilterType(configStepKey, configItems.configItems);
|
|
38899
38919
|
stepInfo = set.configTree.getStepInfo(configStepKey);
|
|
38900
38920
|
contentItemId = (_configItems$option = configItems.option) === null || _configItems$option === void 0 ? void 0 : _configItems$option.contentItemId;
|
|
38921
|
+
contentItemTeaser = (_configItems$option2 = configItems.option) === null || _configItems$option2 === void 0 ? void 0 : _configItems$option2.contentItemTeaser;
|
|
38901
38922
|
return _context25.abrupt("return", _objectSpread$a(_objectSpread$a(_objectSpread$a({
|
|
38902
38923
|
isRenderedNotInSettingPalette: set.configTree.isRenderedNotInSettingPalette(configStepKey),
|
|
38903
38924
|
isRenderedInAccessorieStep: set.configTree.isRenderedInAccessorieStep(configStepKey),
|
|
@@ -38908,9 +38929,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38908
38929
|
stepInfo: stepInfo
|
|
38909
38930
|
}, set.configTree.getOptionStuff(configStepKey, set)), {}, {
|
|
38910
38931
|
contentItemId: contentItemId,
|
|
38911
|
-
conceptFilter: (_configItems$
|
|
38932
|
+
conceptFilter: (_configItems$option3 = configItems.option) === null || _configItems$option3 === void 0 ? void 0 : _configItems$option3.additionalGroupFilter,
|
|
38933
|
+
contentItemTeaser: contentItemTeaser
|
|
38912
38934
|
}));
|
|
38913
|
-
case
|
|
38935
|
+
case 13:
|
|
38914
38936
|
case "end":
|
|
38915
38937
|
return _context25.stop();
|
|
38916
38938
|
}
|
|
@@ -41463,7 +41485,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41463
41485
|
flatValues: !!((_ops$val = ops.val) !== null && _ops$val !== void 0 && _ops$val.isPIMFlatValue),
|
|
41464
41486
|
isVariantAttribute: (_ops$val2 = ops.val) === null || _ops$val2 === void 0 ? void 0 : _ops$val2.isVariantAttribute,
|
|
41465
41487
|
sendToPIM: ops.option.sendToPIM,
|
|
41466
|
-
reqirementLevel: ops.reqirementLevel
|
|
41488
|
+
reqirementLevel: ops.isDoShow ? ops.reqirementLevel : undefined
|
|
41467
41489
|
};
|
|
41468
41490
|
});
|
|
41469
41491
|
};
|
|
@@ -41497,7 +41519,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41497
41519
|
break;
|
|
41498
41520
|
case 3:
|
|
41499
41521
|
_context12.next = 5;
|
|
41500
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
41522
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-c1c58f7f.js'); });
|
|
41501
41523
|
case 5:
|
|
41502
41524
|
_yield$import = _context12.sent;
|
|
41503
41525
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -41505,7 +41527,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41505
41527
|
return _context12.abrupt("break", 27);
|
|
41506
41528
|
case 9:
|
|
41507
41529
|
_context12.next = 11;
|
|
41508
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
41530
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-b285da64.js'); });
|
|
41509
41531
|
case 11:
|
|
41510
41532
|
_yield$import2 = _context12.sent;
|
|
41511
41533
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -41513,7 +41535,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41513
41535
|
return _context12.abrupt("break", 27);
|
|
41514
41536
|
case 15:
|
|
41515
41537
|
_context12.next = 17;
|
|
41516
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
41538
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-c0443fe7.js'); });
|
|
41517
41539
|
case 17:
|
|
41518
41540
|
_yield$import3 = _context12.sent;
|
|
41519
41541
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -41521,7 +41543,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41521
41543
|
return _context12.abrupt("break", 27);
|
|
41522
41544
|
case 21:
|
|
41523
41545
|
_context12.next = 23;
|
|
41524
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
41546
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-69b08d0b.js'); });
|
|
41525
41547
|
case 23:
|
|
41526
41548
|
_yield$import4 = _context12.sent;
|
|
41527
41549
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -42945,7 +42967,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
42945
42967
|
while (1) switch (_context3.prev = _context3.next) {
|
|
42946
42968
|
case 0:
|
|
42947
42969
|
_context3.next = 2;
|
|
42948
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
42970
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-37c1dc7a.js'); });
|
|
42949
42971
|
case 2:
|
|
42950
42972
|
_yield$import = _context3.sent;
|
|
42951
42973
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -43084,6 +43106,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
43084
43106
|
if (params.saveMode == '1' && params.url) {
|
|
43085
43107
|
var rendering = new Rendering('PLACEHOLDER', 'PLACEHOLDER', '', 0, 0, false, false, 0, false, false, 'PERMANENT');
|
|
43086
43108
|
rendering.UrlToSavedRendering = params.url;
|
|
43109
|
+
rendering.addImgAsBlob(Buffer.from(params.buffer), isLayerMask);
|
|
43087
43110
|
this.updatePlannerRenderingInView(rendering, true);
|
|
43088
43111
|
}
|
|
43089
43112
|
LOG$4.warn('Error when handling receive Rendering. Not waiting for new Rendering but also not in cache ' + params.hash + '; saveMode: ' + params.saveMode);
|
|
@@ -44636,7 +44659,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
44636
44659
|
break;
|
|
44637
44660
|
case 8:
|
|
44638
44661
|
_context4.next = 10;
|
|
44639
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
44662
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-6c82dd67.js'); });
|
|
44640
44663
|
case 10:
|
|
44641
44664
|
_yield$import = _context4.sent;
|
|
44642
44665
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -44647,7 +44670,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
44647
44670
|
return _context4.abrupt("break", 21);
|
|
44648
44671
|
case 15:
|
|
44649
44672
|
_context4.next = 17;
|
|
44650
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
44673
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-558417ab.js'); });
|
|
44651
44674
|
case 17:
|
|
44652
44675
|
_yield$import2 = _context4.sent;
|
|
44653
44676
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -45905,7 +45928,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45905
45928
|
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));
|
|
45906
45929
|
case 2:
|
|
45907
45930
|
retValues = _context.sent;
|
|
45908
|
-
(_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.
|
|
45931
|
+
(_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);
|
|
45909
45932
|
case 4:
|
|
45910
45933
|
case "end":
|
|
45911
45934
|
return _context.stop();
|
|
@@ -46429,7 +46452,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46429
46452
|
}
|
|
46430
46453
|
return _context13.abrupt("return");
|
|
46431
46454
|
case 10:
|
|
46432
|
-
myValues = article === null || article === void 0 ? void 0 : article.
|
|
46455
|
+
myValues = article === null || article === void 0 ? void 0 : article.VariantValuesWithoutEmptyFreetext;
|
|
46433
46456
|
case 11:
|
|
46434
46457
|
_context13.t0 = _this.divaBasketHandler;
|
|
46435
46458
|
_context13.t1 = set;
|
|
@@ -48812,6 +48835,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
48812
48835
|
var set = this.actSet();
|
|
48813
48836
|
return set ? favoritesHandlerInstance.FavoritesDefined(set) : false;
|
|
48814
48837
|
}
|
|
48838
|
+
}, {
|
|
48839
|
+
key: "getVariantValues",
|
|
48840
|
+
value: function getVariantValues(basketIds) {
|
|
48841
|
+
var set = this.actSet();
|
|
48842
|
+
return set.getGeneralVariantValues(basketIds);
|
|
48843
|
+
}
|
|
48815
48844
|
}, {
|
|
48816
48845
|
key: "getValidVariantsLength",
|
|
48817
48846
|
value: function () {
|
package/build/cjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-fe5e5e8b.js');
|
|
6
6
|
require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
8
8
|
require('@babel/runtime/helpers/classCallCheck');
|