@crystaldesign/web-planner-logic 25.4.0-rc.9 → 25.5.0-beta.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-b61758b2.js → DivaBoxPlanner-0c8748b2.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-8622abfd.js → DivaStandardPlanner-008e54fd.js} +2 -2
- package/build/cjs/{DoorPlanner-7fff551b.js → DoorPlanner-af0b6c95.js} +1 -1
- package/build/cjs/{Host3DSignalR-f3e8d0b4.js → Host3DSignalR-19648b10.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-315fec4c.js → LiviqueWWSHandler-ef8d6dda.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-5bcbdfac.js → PfisterWWSHandler-53fd4d6d.js} +1 -1
- package/build/cjs/{PlannerHandler2D-60502cca.js → PlannerHandler2D-b514481c.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-e0ede289.js → SeriousBasketHandler-1cc7b756.js} +1 -1
- package/build/cjs/{ShelfPlanner-e16a32c2.js → ShelfPlanner-d1138874.js} +1 -1
- package/build/cjs/{StandardWWSHandler-1d6dd78b.js → StandardWWSHandler-ce110f2c.js} +1 -1
- package/build/cjs/{index-597be412.js → index-ed7b0809.js} +260 -187
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-9459a55a.js → DivaBoxPlanner-881dcbb8.js} +2 -2
- package/build/esm/{DivaStandardPlanner-7ae6d80d.js → DivaStandardPlanner-0bef5570.js} +2 -2
- package/build/esm/{DoorPlanner-a76555bb.js → DoorPlanner-c0b28fa0.js} +1 -1
- package/build/esm/{Host3DSignalR-b3c8e9a0.js → Host3DSignalR-a6e93975.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-155ccbfd.js → LiviqueWWSHandler-2a358cb3.js} +1 -1
- package/build/esm/{PfisterWWSHandler-71c62982.js → PfisterWWSHandler-f89abbe6.js} +1 -1
- package/build/esm/{PlannerHandler2D-503d954d.js → PlannerHandler2D-3ec80514.js} +1 -1
- package/build/esm/{SeriousBasketHandler-0d45d7ce.js → SeriousBasketHandler-4fe18f94.js} +1 -1
- package/build/esm/{ShelfPlanner-f6558f1a.js → ShelfPlanner-c6524964.js} +1 -1
- package/build/esm/{StandardWWSHandler-9fdc4807.js → StandardWWSHandler-92ca3733.js} +1 -1
- package/build/esm/{index-268910a8.js → index-53200848.js} +260 -187
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +3 -1
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/DecisionType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/DecisionType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +13 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +3 -0
- package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +3 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -16341,10 +16341,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16341
16341
|
}, {
|
|
16342
16342
|
key: "pdfUrl",
|
|
16343
16343
|
get: function get() {
|
|
16344
|
-
|
|
16345
|
-
return (_this$opv$textbaustei = (_this$opv$textbaustei2 = this.opv.textbausteine) === null || _this$opv$textbaustei2 === void 0 || (_this$opv$textbaustei2 = _this$opv$textbaustei2.find(function (item) {
|
|
16346
|
-
return item.Memo.endsWith('.pdf');
|
|
16347
|
-
})) === null || _this$opv$textbaustei2 === void 0 ? void 0 : _this$opv$textbaustei2.Memo) !== null && _this$opv$textbaustei !== void 0 ? _this$opv$textbaustei : this.opv.pdfUrl;
|
|
16344
|
+
return this.opv.pdfUrl;
|
|
16348
16345
|
}
|
|
16349
16346
|
}, {
|
|
16350
16347
|
key: "rals",
|
|
@@ -17449,8 +17446,7 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
|
17449
17446
|
showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
|
|
17450
17447
|
priceUnit: jsonOPV.PriceUnit,
|
|
17451
17448
|
value: jsonOPV.Value,
|
|
17452
|
-
property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : []))
|
|
17453
|
-
textbausteine: jsonOPV.Textbausteine
|
|
17449
|
+
property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : []))
|
|
17454
17450
|
};
|
|
17455
17451
|
if (jsonOPV.MeasureUnit) {
|
|
17456
17452
|
switch (jsonOPV.MeasureUnit) {
|
|
@@ -19833,8 +19829,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19833
19829
|
hidePricePreviewOnlyOnOptions: [],
|
|
19834
19830
|
forceConfigSingle: false,
|
|
19835
19831
|
// das einzeln konfigurieren wird in diesem Katalog gezwungen
|
|
19836
|
-
doubleClickOnConfig: false,
|
|
19837
|
-
// Felher bei Ada IDM wird somit ausgebessert
|
|
19838
19832
|
doUseRuleDescForPartListArticles: false,
|
|
19839
19833
|
initOptionTreeTwice: false,
|
|
19840
19834
|
// Felher bei Cotta IDM wird somit ausgebes
|
|
@@ -20474,11 +20468,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20474
20468
|
var _this$optionValues2;
|
|
20475
20469
|
return Object.values((_this$optionValues2 = this.optionValues) !== null && _this$optionValues2 !== void 0 ? _this$optionValues2 : {});
|
|
20476
20470
|
}
|
|
20477
|
-
}, {
|
|
20478
|
-
key: "doubleClickOnConfig",
|
|
20479
|
-
get: function get() {
|
|
20480
|
-
return this.catalogProps.doubleClickOnConfig;
|
|
20481
|
-
}
|
|
20482
20471
|
}, {
|
|
20483
20472
|
key: "initOptionTreeTwice",
|
|
20484
20473
|
get: function get() {
|
|
@@ -20818,7 +20807,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20818
20807
|
break;
|
|
20819
20808
|
case 'DEFAULT_DO_SHOW_3DDIMENSIONS':
|
|
20820
20809
|
_this5.catalogProps.defaultDimensionsActive = '1' == item.Value || 'true' == item.Value.toLowerCase();
|
|
20821
|
-
break;
|
|
20822
20810
|
// Planner Topics
|
|
20823
20811
|
case 'IS_IDM3D_CAT':
|
|
20824
20812
|
_this5.catalogProps.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
|
|
@@ -20992,9 +20980,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20992
20980
|
return 'OPT' + t;
|
|
20993
20981
|
});
|
|
20994
20982
|
break;
|
|
20995
|
-
case 'DOUBLE_CLICK_ON_CONFIG':
|
|
20996
|
-
_this5.catalogProps.doubleClickOnConfig = '1' == item.Value;
|
|
20997
|
-
break;
|
|
20998
20983
|
case 'INIT_OPTIONTREE_TWICE':
|
|
20999
20984
|
_this5.catalogProps.initOptionTreeTwice = '1' == item.Value;
|
|
21000
20985
|
break;
|
|
@@ -22497,8 +22482,10 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22497
22482
|
var _this$article$set$Vie;
|
|
22498
22483
|
//die Klasse ArticleOptionState wird einfach neu initialisiert
|
|
22499
22484
|
var oldOPS = this.article.getArticleOptionState(optionCodex);
|
|
22485
|
+
if (!oldOPS) return;
|
|
22500
22486
|
if (keepEnalbed) {
|
|
22501
22487
|
oldOPS.val = undefined;
|
|
22488
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
22502
22489
|
return;
|
|
22503
22490
|
}
|
|
22504
22491
|
var option = oldOPS.option;
|
|
@@ -22695,7 +22682,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22695
22682
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
22696
22683
|
var ops = _step3.value;
|
|
22697
22684
|
//when an option has no decisions the first visible optionValue has to be selected per default
|
|
22698
|
-
if (ops.val === undefined && ops.visibleCount) {
|
|
22685
|
+
if (ops.val === undefined && ops.visibleCount && !this.article.CatalogData.useDiomexConfigLogic) {
|
|
22699
22686
|
this.assignOptionValue(ops.optionCodex, Object.keys(ops.visibleOptionValues)[0]);
|
|
22700
22687
|
}
|
|
22701
22688
|
if (ops.visibleCount && ops.IsIDMSpecialFeature) {
|
|
@@ -23233,6 +23220,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23233
23220
|
value: function evalPartlist(newConfigValues) {
|
|
23234
23221
|
var partlistArticlesToLoad = [];
|
|
23235
23222
|
var myPartlistArticles = this.article.groupedPartlists;
|
|
23223
|
+
var partlistGroup = [];
|
|
23236
23224
|
for (var iKey in myPartlistArticles) {
|
|
23237
23225
|
var groupDecisionVal;
|
|
23238
23226
|
var key = Number(iKey);
|
|
@@ -23243,6 +23231,9 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23243
23231
|
for (var b = 0; b < myPartlistArticles[key].length; b++) {
|
|
23244
23232
|
var startTime = Date.now();
|
|
23245
23233
|
var myPartListPos = myPartlistArticles[key][b];
|
|
23234
|
+
if (myPartListPos.PartlistGroup && partlistGroup.includes(myPartListPos.PartlistGroup)) {
|
|
23235
|
+
continue;
|
|
23236
|
+
}
|
|
23246
23237
|
if (myPartListPos.ItemRefArticles) {
|
|
23247
23238
|
var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
|
|
23248
23239
|
if (decisions) {
|
|
@@ -23255,16 +23246,16 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23255
23246
|
if ((_myDecisionVal = myDecisionVal) !== null && _myDecisionVal !== void 0 && _myDecisionVal.isValidDOC || relationTypeNone) {
|
|
23256
23247
|
// wenn die Decision gültig, gelten die ItemRefArticles
|
|
23257
23248
|
partlistAdded = true;
|
|
23258
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23249
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23259
23250
|
break;
|
|
23260
23251
|
}
|
|
23261
23252
|
}
|
|
23262
23253
|
if (decisions.length === 0) {
|
|
23263
23254
|
LOG$f.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
|
|
23264
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23255
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23265
23256
|
} else if (!partlistAdded && this.article.CatalogData.useDecisionPosCountValue && myPartListPos.PosCountValue > 0) {
|
|
23266
23257
|
LOG$f.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
|
|
23267
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23258
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23268
23259
|
}
|
|
23269
23260
|
}
|
|
23270
23261
|
}
|
|
@@ -23276,7 +23267,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23276
23267
|
}
|
|
23277
23268
|
}, {
|
|
23278
23269
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
23279
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23270
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23280
23271
|
var _myPartListPos$Option,
|
|
23281
23272
|
_this2 = this;
|
|
23282
23273
|
var allDecisions = this.article.catalogArticle.articleDecisions;
|
|
@@ -23333,7 +23324,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23333
23324
|
_loop3(i);
|
|
23334
23325
|
}
|
|
23335
23326
|
if (quanitity >= 1) {
|
|
23336
|
-
var _myDecisionVal$Rule
|
|
23327
|
+
var _myDecisionVal$Rule;
|
|
23337
23328
|
partlistArticlesToLoad.push({
|
|
23338
23329
|
CatalogCodex: catalogCodex !== null && catalogCodex !== void 0 ? catalogCodex : _this2.article.catalogCodex,
|
|
23339
23330
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -23348,11 +23339,13 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23348
23339
|
RuleDesc: myRuleDesc,
|
|
23349
23340
|
RuleDesc_locales: myRuleDesc_locales,
|
|
23350
23341
|
PosInvisibility: myPartListPos.PosInvisibility,
|
|
23351
|
-
|
|
23342
|
+
ConfigurationMode: myPartListPos.ConfigurationMode,
|
|
23343
|
+
VariantValues: _this2.article.variantValuesForPla(myPartListPos.ConfigurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
23352
23344
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData,
|
|
23353
23345
|
optionImgForPrint: optionImgForPrint,
|
|
23354
23346
|
optionsForPrint: optionsForPrint
|
|
23355
23347
|
});
|
|
23348
|
+
if (myPartListPos.PartlistGroup) partlistGroup.push(myPartListPos.PartlistGroup);
|
|
23356
23349
|
}
|
|
23357
23350
|
};
|
|
23358
23351
|
for (var d = 0; d < myPartListPos.ItemRefArticles.length; d++) {
|
|
@@ -24254,6 +24247,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24254
24247
|
var oldOPS = this.article.getArticleOptionState(featureNo);
|
|
24255
24248
|
if (keepEnalbed) {
|
|
24256
24249
|
oldOPS.val = undefined;
|
|
24250
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
24257
24251
|
return;
|
|
24258
24252
|
}
|
|
24259
24253
|
var option = oldOPS.option;
|
|
@@ -24371,10 +24365,12 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24371
24365
|
var partlistArticlesToLoad = [];
|
|
24372
24366
|
var myPartlistArticles = (_this$article$catalog4 = this.article.catalogArticle.idmPartlist) === null || _this$article$catalog4 === void 0 ? void 0 : _this$article$catalog4.partlistPos;
|
|
24373
24367
|
if (!(myPartlistArticles !== null && myPartlistArticles !== void 0 && myPartlistArticles.length)) return [];
|
|
24368
|
+
var partlistGroup = [];
|
|
24374
24369
|
for (var i = 0; i < myPartlistArticles.length; i++) {
|
|
24375
24370
|
var _myPartListPos$decisi;
|
|
24376
24371
|
var myPartListPos = myPartlistArticles[i];
|
|
24377
24372
|
if (!myPartListPos.itemRefTypeNo) continue;
|
|
24373
|
+
if (myPartListPos.partlistGroup && partlistGroup.includes(myPartListPos.partlistGroup)) continue;
|
|
24378
24374
|
var decisions = this.article.CatalogData.getDecisionsByNo([].concat(_toConsumableArray__default["default"]((_myPartListPos$decisi = myPartListPos.decisions) !== null && _myPartListPos$decisi !== void 0 ? _myPartListPos$decisi : []), _toConsumableArray__default["default"](myPartListPos.decisionPosCount ? [myPartListPos.decisionPosCount] : [])));
|
|
24379
24375
|
var partlistAdded = false;
|
|
24380
24376
|
for (var c = 0; c < decisions.length; c++) {
|
|
@@ -24383,22 +24379,22 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24383
24379
|
var isValidDOC = relationTypeNone ? undefined : this.checkDecisionNumber(decision.decisionNo);
|
|
24384
24380
|
if (!isValidDOC && !relationTypeNone) continue;
|
|
24385
24381
|
partlistAdded = true;
|
|
24386
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24382
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24387
24383
|
break;
|
|
24388
24384
|
}
|
|
24389
24385
|
if (decisions.length === 0 && !partlistAdded) {
|
|
24390
24386
|
LOG$e.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.itemRefTypeNo);
|
|
24391
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24387
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24392
24388
|
} else if (!partlistAdded && myPartListPos.posCountValue > 0) {
|
|
24393
24389
|
LOG$e.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.itemRefTypeNo);
|
|
24394
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24390
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24395
24391
|
}
|
|
24396
24392
|
}
|
|
24397
24393
|
return partlistArticlesToLoad;
|
|
24398
24394
|
}
|
|
24399
24395
|
}, {
|
|
24400
24396
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
24401
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, rule, decisionNo) {
|
|
24397
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, rule, decisionNo) {
|
|
24402
24398
|
var decisions = this.article.CatalogData.getDecisionsByNo(myPartListPos.decisions);
|
|
24403
24399
|
|
|
24404
24400
|
//const optionsForPrint: string[] = (myPartListPos.OptionsForPrint as string)?.split(';').map((o: string) => 'OPT' + o);
|
|
@@ -24449,7 +24445,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24449
24445
|
_loop2(i);
|
|
24450
24446
|
}
|
|
24451
24447
|
if (quanitity >= 1) {
|
|
24452
|
-
var _catalogCodex$toStrin
|
|
24448
|
+
var _catalogCodex$toStrin;
|
|
24453
24449
|
partlistArticlesToLoad.push({
|
|
24454
24450
|
CatalogCodex: (_catalogCodex$toStrin = catalogCodex.toString()) !== null && _catalogCodex$toStrin !== void 0 ? _catalogCodex$toStrin : this.article.catalogCodex,
|
|
24455
24451
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -24466,11 +24462,13 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24466
24462
|
RuleDesc: myRuleDesc,
|
|
24467
24463
|
RuleDesc_locales: myRuleDesc_locales,
|
|
24468
24464
|
PosInvisibility: myPartListPos.posInvisibility,
|
|
24469
|
-
|
|
24465
|
+
ConfigurationMode: myPartListPos.configurationMode,
|
|
24466
|
+
VariantValues: this.article.variantValuesForPla(myPartListPos.configurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
24470
24467
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData
|
|
24471
24468
|
//optionImgForPrint,
|
|
24472
24469
|
//optionsForPrint,
|
|
24473
24470
|
});
|
|
24471
|
+
if (myPartListPos.partlistGroup) partlistGroup.push(myPartListPos.partlistGroup);
|
|
24474
24472
|
}
|
|
24475
24473
|
return partlistArticlesToLoad;
|
|
24476
24474
|
}
|
|
@@ -24692,6 +24690,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24692
24690
|
partlistDecisionNo: initParams.partlistDecisionNo,
|
|
24693
24691
|
partListParentArticle: initParams.parentArticle,
|
|
24694
24692
|
partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
|
|
24693
|
+
partlistArticleStandalone: initParams.partlistArticleStandalone,
|
|
24695
24694
|
hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
|
|
24696
24695
|
noPrice: (_initParams$noPrice = initParams.noPrice) !== null && _initParams$noPrice !== void 0 ? _initParams$noPrice : false,
|
|
24697
24696
|
retailArticleNr: initParams.RetailArticleNr ? initParams.RetailArticleNr : initParams.retailArticleNr,
|
|
@@ -24832,6 +24831,11 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24832
24831
|
get: function get() {
|
|
24833
24832
|
return this.article.partlistArticleVisibleInTree && this.hasOptionsThatParentDoesNotHave;
|
|
24834
24833
|
}
|
|
24834
|
+
}, {
|
|
24835
|
+
key: "partlistArticleStandalone",
|
|
24836
|
+
get: function get() {
|
|
24837
|
+
return this.article.partlistArticleStandalone;
|
|
24838
|
+
}
|
|
24835
24839
|
}, {
|
|
24836
24840
|
key: "partlistArticlesReqursive",
|
|
24837
24841
|
get: function get() {
|
|
@@ -24846,6 +24850,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24846
24850
|
get: function get() {
|
|
24847
24851
|
var _this$partListParentA;
|
|
24848
24852
|
if (!this.partListParentArticle) return false;
|
|
24853
|
+
if (this.partlistArticleStandalone) return true;
|
|
24849
24854
|
//a partlistartilce should really only be visible in the configtree when the parent does not have a option in his Optiontree that the partlistarticle has
|
|
24850
24855
|
// first usecase https://app.asana.com/0/1204193128085691/1204389027061737
|
|
24851
24856
|
var myOptions = this.articleOptionStatesKeys;
|
|
@@ -24856,17 +24861,24 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24856
24861
|
}
|
|
24857
24862
|
}, {
|
|
24858
24863
|
key: "getRecursivePartlistArticles",
|
|
24859
|
-
value: function getRecursivePartlistArticles(onlyVisible) {
|
|
24864
|
+
value: function getRecursivePartlistArticles(onlyVisible, excludeStandalonePla) {
|
|
24860
24865
|
var partlistArticles = {};
|
|
24861
24866
|
for (var basketId in this.partlistArticles) {
|
|
24862
24867
|
var partlistArticle = this.partlistArticles[basketId];
|
|
24863
|
-
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree) partlistArticles[basketId] = partlistArticle;
|
|
24868
|
+
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree || !excludeStandalonePla && partlistArticle.partlistArticleStandalone) partlistArticles[basketId] = partlistArticle;
|
|
24864
24869
|
if (partlistArticle.hasPartlistArticle) {
|
|
24865
|
-
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible));
|
|
24870
|
+
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible, excludeStandalonePla));
|
|
24866
24871
|
}
|
|
24867
24872
|
}
|
|
24868
24873
|
return partlistArticles;
|
|
24869
24874
|
}
|
|
24875
|
+
}, {
|
|
24876
|
+
key: "variantValuesForPla",
|
|
24877
|
+
value: function variantValuesForPla(configurationMode, previousPartlistArticleVariantValues, newConfigValues) {
|
|
24878
|
+
//if configurationMode is true its previous values are more important than the values of the parentelement because its standalone configurable
|
|
24879
|
+
if (configurationMode) return _objectSpread$e(_objectSpread$e({}, newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}), previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {});
|
|
24880
|
+
return _objectSpread$e(_objectSpread$e({}, previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {}), newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {});
|
|
24881
|
+
}
|
|
24870
24882
|
}, {
|
|
24871
24883
|
key: "partlistArticlesAsArray",
|
|
24872
24884
|
get: function get() {
|
|
@@ -25510,31 +25522,32 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25510
25522
|
});
|
|
25511
25523
|
if (firstMatch) return firstMatch;
|
|
25512
25524
|
if (from !== ((_this$partListParentA9 = this.partListParentArticle) === null || _this$partListParentA9 === void 0 ? void 0 : _this$partListParentA9.basketId) && (_this$partListParentA10 = this.partListParentArticle) !== null && _this$partListParentA10 !== void 0 && _this$partListParentA10.getArticleOptionState(codex, undefined, checkOnAccessoireParent)) {
|
|
25513
|
-
|
|
25525
|
+
var ops = this.partListParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25526
|
+
if (ops) return ops;
|
|
25514
25527
|
}
|
|
25515
25528
|
if (Object.keys((_this$partlistArticle3 = this.partlistArticles) !== null && _this$partlistArticle3 !== void 0 ? _this$partlistArticle3 : {}).length > 0) {
|
|
25516
25529
|
for (var key in this.partlistArticles) {
|
|
25517
25530
|
if (from === key) continue;
|
|
25518
25531
|
var partlistArticle = this.partlistArticles[key];
|
|
25519
|
-
var
|
|
25520
|
-
if (
|
|
25532
|
+
var _ops = partlistArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25533
|
+
if (_ops) return _ops;
|
|
25521
25534
|
}
|
|
25522
25535
|
}
|
|
25523
25536
|
var _iterator5 = _createForOfIteratorHelper$6(this.articleOptionStatesData),
|
|
25524
25537
|
_step5;
|
|
25525
25538
|
try {
|
|
25526
25539
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
25527
|
-
var
|
|
25540
|
+
var _ops3 = _step5.value;
|
|
25528
25541
|
if (!codex.includes('.')) {
|
|
25529
|
-
if (
|
|
25530
|
-
return
|
|
25542
|
+
if (_ops3.option.ocd == codex && _ops3.isDoShow && !_ops3.isDisabled) {
|
|
25543
|
+
return _ops3;
|
|
25531
25544
|
}
|
|
25532
25545
|
} else {
|
|
25533
25546
|
var _this$parentOptionCod = this.parentOptionCodex(codex),
|
|
25534
25547
|
optionCodex = _this$parentOptionCod.optionCodex,
|
|
25535
25548
|
partenOptionCodex = _this$parentOptionCod.partenOptionCodex;
|
|
25536
|
-
if ((
|
|
25537
|
-
return
|
|
25549
|
+
if ((_ops3.option.ocd == optionCodex || _ops3.option.codex == optionCodex) && _ops3.option.parentOptionCodex == partenOptionCodex) {
|
|
25550
|
+
return _ops3;
|
|
25538
25551
|
}
|
|
25539
25552
|
}
|
|
25540
25553
|
}
|
|
@@ -25544,8 +25557,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25544
25557
|
_iterator5.f();
|
|
25545
25558
|
}
|
|
25546
25559
|
if (checkOnAccessoireParent && this.accessoireParentArticle) {
|
|
25547
|
-
var
|
|
25548
|
-
if (
|
|
25560
|
+
var _ops2 = this.accessoireParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25561
|
+
if (_ops2) return _ops2;
|
|
25549
25562
|
}
|
|
25550
25563
|
return undefined;
|
|
25551
25564
|
}
|
|
@@ -25739,9 +25752,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25739
25752
|
get: function get() {
|
|
25740
25753
|
var _this$partlistArticle4;
|
|
25741
25754
|
if (Object.values((_this$partlistArticle4 = this.partlistArticles) !== null && _this$partlistArticle4 !== void 0 ? _this$partlistArticle4 : {}).find(function (p) {
|
|
25742
|
-
return p.partlistArticleVisibleInTree;
|
|
25755
|
+
return p.partlistArticleVisibleInTree || p.partlistArticleStandalone;
|
|
25743
25756
|
})) return true;
|
|
25744
|
-
return this.partlistArticleVisibleInTree;
|
|
25757
|
+
return this.partlistArticleVisibleInTree || this.partlistArticleStandalone;
|
|
25745
25758
|
}
|
|
25746
25759
|
}, {
|
|
25747
25760
|
key: "partListParentArticle",
|
|
@@ -26202,13 +26215,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26202
26215
|
invisible: ops.isInvisible,
|
|
26203
26216
|
visibleOPVs: Object.values(ops.visibleOptionValues).map(function (v) {
|
|
26204
26217
|
return v.codex;
|
|
26205
|
-
})
|
|
26218
|
+
}),
|
|
26219
|
+
optName: ops.optionName
|
|
26206
26220
|
};
|
|
26207
26221
|
if (ops.freeText) {
|
|
26208
26222
|
ret[ops.optionCodex + '_val'] = {
|
|
26209
26223
|
selOPV: ops.freeText,
|
|
26210
26224
|
visibleOPVs: [],
|
|
26211
|
-
invisible: true
|
|
26225
|
+
invisible: true,
|
|
26226
|
+
optName: ''
|
|
26212
26227
|
};
|
|
26213
26228
|
}
|
|
26214
26229
|
}
|
|
@@ -26494,6 +26509,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26494
26509
|
}, {
|
|
26495
26510
|
key: "deletePartlistArticles",
|
|
26496
26511
|
value: function deletePartlistArticles() {
|
|
26512
|
+
for (var pl in this.article.partlistArticles) {
|
|
26513
|
+
this.article.partlistArticles[pl].deleted = true;
|
|
26514
|
+
}
|
|
26497
26515
|
if (Object.keys(this.article.partlistArticles).length) this.article.previousPartlistArticles = this.article.partlistArticles;
|
|
26498
26516
|
this.article.partlistArticles = {};
|
|
26499
26517
|
}
|
|
@@ -26784,9 +26802,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26784
26802
|
_step21;
|
|
26785
26803
|
try {
|
|
26786
26804
|
for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
|
|
26787
|
-
var
|
|
26788
|
-
if (
|
|
26789
|
-
ret = this.checkOptionSearchOPV(
|
|
26805
|
+
var _ops4 = _step21.value;
|
|
26806
|
+
if (_ops4.option.ocd == optionCodex && _ops4.isDoShow && (parentOptionCodex == '' || parentOptionCodex == _ops4.option.parentOptionCodex)) {
|
|
26807
|
+
ret = this.checkOptionSearchOPV(_ops4.option, optionValueCodex, ret);
|
|
26790
26808
|
}
|
|
26791
26809
|
}
|
|
26792
26810
|
//fallback for pfister classification usecase
|
|
@@ -26799,9 +26817,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26799
26817
|
_step22;
|
|
26800
26818
|
try {
|
|
26801
26819
|
for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
|
|
26802
|
-
var
|
|
26803
|
-
if (
|
|
26804
|
-
return this.checkOptionSearchOPV(
|
|
26820
|
+
var _ops5 = _step22.value;
|
|
26821
|
+
if (_ops5.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops5.option.parentOptionCodex)) {
|
|
26822
|
+
return this.checkOptionSearchOPV(_ops5.option, optionValueCodex, ret);
|
|
26805
26823
|
}
|
|
26806
26824
|
}
|
|
26807
26825
|
} catch (err) {
|
|
@@ -27094,7 +27112,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27094
27112
|
break;
|
|
27095
27113
|
}
|
|
27096
27114
|
_context.next = 4;
|
|
27097
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
27115
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-d1138874.js'); });
|
|
27098
27116
|
case 4:
|
|
27099
27117
|
_yield$import = _context.sent;
|
|
27100
27118
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -27157,6 +27175,39 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27157
27175
|
if (!this.partListParentArticle) return true;
|
|
27158
27176
|
return !!this.partListParentArticle.getArticleOptionStateFlat(opt) || this.partlistArticleVisibleInTree;
|
|
27159
27177
|
}
|
|
27178
|
+
}, {
|
|
27179
|
+
key: "afterInit",
|
|
27180
|
+
value: function () {
|
|
27181
|
+
var _afterInit = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2() {
|
|
27182
|
+
var variantValues, i, _ops$visibleOptionVal, ops, _ops$visibleOptionVal2;
|
|
27183
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
|
|
27184
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27185
|
+
case 0:
|
|
27186
|
+
if (this.CatalogData.useDiomexConfigLogic) {
|
|
27187
|
+
_context2.next = 2;
|
|
27188
|
+
break;
|
|
27189
|
+
}
|
|
27190
|
+
return _context2.abrupt("return", {});
|
|
27191
|
+
case 2:
|
|
27192
|
+
variantValues = {};
|
|
27193
|
+
for (i = 0; i < this.articleOptionStates.length; i++) {
|
|
27194
|
+
ops = this.articleOptionStates[i];
|
|
27195
|
+
if (ops.val === undefined && Object.values((_ops$visibleOptionVal = ops.visibleOptionValues) !== null && _ops$visibleOptionVal !== void 0 ? _ops$visibleOptionVal : {}).length && !ops.isInvisible) {
|
|
27196
|
+
variantValues[ops.optionCodex] = Object.values((_ops$visibleOptionVal2 = ops.visibleOptionValues) !== null && _ops$visibleOptionVal2 !== void 0 ? _ops$visibleOptionVal2 : {})[0].codex;
|
|
27197
|
+
}
|
|
27198
|
+
}
|
|
27199
|
+
return _context2.abrupt("return", variantValues);
|
|
27200
|
+
case 5:
|
|
27201
|
+
case "end":
|
|
27202
|
+
return _context2.stop();
|
|
27203
|
+
}
|
|
27204
|
+
}, _callee2, this);
|
|
27205
|
+
}));
|
|
27206
|
+
function afterInit() {
|
|
27207
|
+
return _afterInit.apply(this, arguments);
|
|
27208
|
+
}
|
|
27209
|
+
return afterInit;
|
|
27210
|
+
}()
|
|
27160
27211
|
}, {
|
|
27161
27212
|
key: "getValidValues",
|
|
27162
27213
|
value: function getValidValues(myValues, mergeOptionToSameOption, setConfigDoesOverWrite) {
|
|
@@ -27205,8 +27256,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27205
27256
|
}
|
|
27206
27257
|
}
|
|
27207
27258
|
for (var _key2 in myValues) {
|
|
27208
|
-
var
|
|
27209
|
-
if (
|
|
27259
|
+
var _ops6 = this.getArticleOptionState(_key2);
|
|
27260
|
+
if (_ops6) {
|
|
27210
27261
|
validValues[_key2] = myValues[_key2];
|
|
27211
27262
|
} else if (_key2.endsWith('_val') && this.getArticleOptionState(_key2.replace(/_val/g, ''))) {
|
|
27212
27263
|
validValues[_key2] = myValues[_key2];
|
|
@@ -27215,10 +27266,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27215
27266
|
_step24;
|
|
27216
27267
|
try {
|
|
27217
27268
|
for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
|
|
27218
|
-
var
|
|
27219
|
-
if (
|
|
27220
|
-
var values = this.checkOptionSearchOPV(
|
|
27221
|
-
if (values !== null && values !== void 0 && values.opv) validValues[
|
|
27269
|
+
var _ops7 = _step24.value;
|
|
27270
|
+
if (_ops7.optionOcd == _key2) {
|
|
27271
|
+
var values = this.checkOptionSearchOPV(_ops7.option, myValues[_key2], {});
|
|
27272
|
+
if (values !== null && values !== void 0 && values.opv) validValues[_ops7.optionCodex] = values.opv.codex;
|
|
27222
27273
|
}
|
|
27223
27274
|
}
|
|
27224
27275
|
} catch (err) {
|
|
@@ -27228,9 +27279,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27228
27279
|
}
|
|
27229
27280
|
}
|
|
27230
27281
|
//for classification usecase when suboption and option have the same name like OPTOPT_MATERIAL_1_00 and OPTOPT_MATERIAL_1_00.OPTOPT_MATERIAL_1_00
|
|
27231
|
-
if (
|
|
27232
|
-
var
|
|
27233
|
-
if ((
|
|
27282
|
+
if (_ops6) {
|
|
27283
|
+
var _ops6$valCodex;
|
|
27284
|
+
if ((_ops6$valCodex = _ops6.valCodex) !== null && _ops6$valCodex !== void 0 && _ops6$valCodex.startsWith('OPVSUB_') && !validValues[_key2 + '.' + _key2] && this.getArticleOptionState(_key2 + '.' + _key2)) {
|
|
27234
27285
|
validValues[_key2 + '.' + _key2] = myValues[_key2];
|
|
27235
27286
|
}
|
|
27236
27287
|
}
|
|
@@ -27741,15 +27792,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27741
27792
|
value: function validateAndSetNewConfigValues(newConfigValues) {
|
|
27742
27793
|
var freeTextValues = {};
|
|
27743
27794
|
for (var key in newConfigValues) {
|
|
27744
|
-
var
|
|
27795
|
+
var _ops8, _ops9, _newConfigValues$key;
|
|
27745
27796
|
var ops = this.getArticleOptionState(key);
|
|
27746
27797
|
var _this$parentOptionCod5 = this.parentOptionCodex(key),
|
|
27747
27798
|
optionCodex = _this$parentOptionCod5.optionCodex,
|
|
27748
27799
|
partenOptionCodex = _this$parentOptionCod5.partenOptionCodex;
|
|
27749
|
-
if ((
|
|
27800
|
+
if ((_ops8 = ops) !== null && _ops8 !== void 0 && _ops8.isMultiselect) {
|
|
27750
27801
|
ops = this.handleMultiselect(ops, newConfigValues, key);
|
|
27751
27802
|
}
|
|
27752
|
-
if ((
|
|
27803
|
+
if ((_ops9 = ops) !== null && _ops9 !== void 0 && _ops9.isFreeText) {
|
|
27753
27804
|
this.handleFreeText(ops, newConfigValues, key, freeTextValues);
|
|
27754
27805
|
}
|
|
27755
27806
|
var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key.split(';')[0];
|
|
@@ -27760,8 +27811,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27760
27811
|
var myFreeText = foundItem.opv.isFreeText ? newConfigValues[optionCodex + '_val'] : undefined;
|
|
27761
27812
|
this.engine.updateArtOPV(foundItem.opv, foundItem.opt.codex, this.getArticleOptionState(foundItem.opt.codex), myFreeText);
|
|
27762
27813
|
} else {
|
|
27763
|
-
var
|
|
27764
|
-
if (ops && !((
|
|
27814
|
+
var _ops10;
|
|
27815
|
+
if (ops && !((_ops10 = ops) !== null && _ops10 !== void 0 && _ops10.isFreeText)) {
|
|
27765
27816
|
// to initialize freetexts where the freetext is not the only selectable opv in the options
|
|
27766
27817
|
this.checkIfSelectableOpvIsFreetext(ops, opvCodex, newConfigValues);
|
|
27767
27818
|
}
|
|
@@ -28018,7 +28069,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28018
28069
|
while (1) switch (_context5.prev = _context5.next) {
|
|
28019
28070
|
case 0:
|
|
28020
28071
|
if (!(article.articleType == 'OPTION' || article.articleType == 'OPTIONTREE')) {
|
|
28021
|
-
_context5.next =
|
|
28072
|
+
_context5.next = 11;
|
|
28022
28073
|
break;
|
|
28023
28074
|
}
|
|
28024
28075
|
_context5.next = 3;
|
|
@@ -28027,13 +28078,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28027
28078
|
_context5.next = 5;
|
|
28028
28079
|
return this.updateCfgValues(article, defaultValues, variantValues);
|
|
28029
28080
|
case 5:
|
|
28030
|
-
if (!(
|
|
28081
|
+
if (!(from === 'initializingPartlist')) {
|
|
28031
28082
|
_context5.next = 8;
|
|
28032
28083
|
break;
|
|
28033
28084
|
}
|
|
28034
28085
|
_context5.next = 8;
|
|
28035
|
-
return
|
|
28086
|
+
return this.updateEmptyOption(article);
|
|
28036
28087
|
case 8:
|
|
28088
|
+
if (!(article.set.PlannerMode !== 'BoxPlanner')) {
|
|
28089
|
+
_context5.next = 11;
|
|
28090
|
+
break;
|
|
28091
|
+
}
|
|
28092
|
+
_context5.next = 11;
|
|
28093
|
+
return setHandlerInstance.updateArticlesOptionStatesOfActSet(article.set, defaultValues, [article.basketId], ignorePlanner, from);
|
|
28094
|
+
case 11:
|
|
28037
28095
|
case "end":
|
|
28038
28096
|
return _context5.stop();
|
|
28039
28097
|
}
|
|
@@ -28059,7 +28117,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28059
28117
|
key: "updateArticlesOptionStates",
|
|
28060
28118
|
value: function () {
|
|
28061
28119
|
var _updateArticlesOptionStates = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee5(myValues, targetArticlesWithNewValues, targetArticlesToUpdate, articles, from) {
|
|
28062
|
-
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, actArticle,
|
|
28120
|
+
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, _actArticle, actArticle, newPLATL, _actArticle$checkDefa, variantValues, triggerUpdate, pla;
|
|
28063
28121
|
return _regeneratorRuntime__default["default"].wrap(function _callee5$(_context6) {
|
|
28064
28122
|
while (1) switch (_context6.prev = _context6.next) {
|
|
28065
28123
|
case 0:
|
|
@@ -28069,74 +28127,79 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28069
28127
|
i = 0;
|
|
28070
28128
|
case 4:
|
|
28071
28129
|
if (!(i < targetArticlesToUpdate.length)) {
|
|
28072
|
-
_context6.next =
|
|
28130
|
+
_context6.next = 40;
|
|
28073
28131
|
break;
|
|
28074
28132
|
}
|
|
28075
28133
|
valuesArray[i] = {};
|
|
28076
28134
|
actArticle = articles[targetArticlesToUpdate[i]];
|
|
28135
|
+
if ((_actArticle = actArticle) !== null && _actArticle !== void 0 && _actArticle.deleted && actArticle.isPartListArticle && actArticle.partListParentArticle) {
|
|
28136
|
+
actArticle = actArticle.partListParentArticle.partlistArticles[actArticle.basketId];
|
|
28137
|
+
}
|
|
28077
28138
|
if (!(!actArticle || actArticle.deleted)) {
|
|
28078
|
-
_context6.next =
|
|
28139
|
+
_context6.next = 12;
|
|
28079
28140
|
break;
|
|
28080
28141
|
}
|
|
28081
28142
|
targetArticlesToUpdate.splice(i, 1);
|
|
28082
28143
|
i--;
|
|
28083
|
-
return _context6.abrupt("continue",
|
|
28084
|
-
case
|
|
28144
|
+
return _context6.abrupt("continue", 37);
|
|
28145
|
+
case 12:
|
|
28085
28146
|
if (targetArticlesWithNewValues.includes(targetArticlesToUpdate[i])) {
|
|
28086
28147
|
valuesArray[i] = actArticle.getValidValues(_objectSpread$d({}, myValues), actArticle.CatalogData.mergeOptionsToSameOption);
|
|
28087
28148
|
}
|
|
28088
28149
|
|
|
28089
28150
|
//only set config if valuesArray are not empty or the article is initializing
|
|
28151
|
+
newPLATL = void 0; // partlistarticle to load
|
|
28090
28152
|
if (!(Object.entries(valuesArray[i]).length > 0 || from !== null && from !== void 0 && from.startsWith('initializing'))) {
|
|
28091
|
-
_context6.next =
|
|
28153
|
+
_context6.next = 29;
|
|
28092
28154
|
break;
|
|
28093
28155
|
}
|
|
28094
|
-
_context6.next =
|
|
28156
|
+
_context6.next = 17;
|
|
28095
28157
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28096
|
-
case
|
|
28097
|
-
|
|
28158
|
+
case 17:
|
|
28159
|
+
newPLATL = _context6.sent;
|
|
28098
28160
|
_actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
|
|
28099
28161
|
valuesArray[i] = variantValues;
|
|
28100
|
-
_context6.next =
|
|
28162
|
+
_context6.next = 22;
|
|
28101
28163
|
return this.updateAccessoriesFromGlobalOption(valuesArray[i], actArticle);
|
|
28102
|
-
case
|
|
28164
|
+
case 22:
|
|
28103
28165
|
if (!triggerUpdate) {
|
|
28104
|
-
_context6.next =
|
|
28166
|
+
_context6.next = 26;
|
|
28105
28167
|
break;
|
|
28106
28168
|
}
|
|
28107
|
-
_context6.next =
|
|
28169
|
+
_context6.next = 25;
|
|
28108
28170
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28109
|
-
case
|
|
28110
|
-
|
|
28111
|
-
case
|
|
28112
|
-
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPartlistArticlesToLoad);
|
|
28171
|
+
case 25:
|
|
28172
|
+
newPLATL = _context6.sent;
|
|
28173
|
+
case 26:
|
|
28113
28174
|
newEDOExtraArticles = this.checkEDOArticles(articles);
|
|
28114
|
-
_context6.next =
|
|
28175
|
+
_context6.next = 32;
|
|
28115
28176
|
break;
|
|
28116
|
-
case
|
|
28117
|
-
_context6.t0 = partlistArticlesToLoad;
|
|
28177
|
+
case 29:
|
|
28118
28178
|
_context6.next = 31;
|
|
28119
28179
|
return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
|
|
28120
28180
|
case 31:
|
|
28121
|
-
|
|
28122
|
-
|
|
28123
|
-
|
|
28181
|
+
newPLATL = _context6.sent;
|
|
28182
|
+
case 32:
|
|
28183
|
+
_context6.next = 34;
|
|
28184
|
+
return this.updateEmptyOption(actArticle);
|
|
28185
|
+
case 34:
|
|
28186
|
+
pla = _context6.sent;
|
|
28187
|
+
if (pla !== undefined) newPLATL = pla;
|
|
28188
|
+
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPLATL);
|
|
28189
|
+
case 37:
|
|
28124
28190
|
i++;
|
|
28125
28191
|
_context6.next = 4;
|
|
28126
28192
|
break;
|
|
28127
|
-
case 36:
|
|
28128
|
-
_context6.next = 38;
|
|
28129
|
-
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28130
|
-
case 38:
|
|
28131
|
-
_context6.next = 40;
|
|
28132
|
-
return this.triggerMoreUpdates(targetArticlesToUpdate, valuesArray, articles, from);
|
|
28133
28193
|
case 40:
|
|
28194
|
+
_context6.next = 42;
|
|
28195
|
+
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28196
|
+
case 42:
|
|
28134
28197
|
return _context6.abrupt("return", {
|
|
28135
28198
|
newEDOExtraArticles: newEDOExtraArticles,
|
|
28136
28199
|
targetArticlesToUpdate: targetArticlesToUpdate,
|
|
28137
28200
|
partlistArticlesToLoad: partlistArticlesToLoad
|
|
28138
28201
|
});
|
|
28139
|
-
case
|
|
28202
|
+
case 43:
|
|
28140
28203
|
case "end":
|
|
28141
28204
|
return _context6.stop();
|
|
28142
28205
|
}
|
|
@@ -28148,38 +28211,38 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28148
28211
|
return updateArticlesOptionStates;
|
|
28149
28212
|
}()
|
|
28150
28213
|
}, {
|
|
28151
|
-
key: "
|
|
28214
|
+
key: "triggerUpdateOnVisiblePartilstArticles",
|
|
28152
28215
|
value: function () {
|
|
28153
|
-
var
|
|
28154
|
-
var
|
|
28216
|
+
var _triggerUpdateOnVisiblePartilstArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee6(targetArticlesToUpdate, articles) {
|
|
28217
|
+
var _articles$targetArtic;
|
|
28218
|
+
var key, configuredArticle, toIgnore, actArticle;
|
|
28155
28219
|
return _regeneratorRuntime__default["default"].wrap(function _callee6$(_context7) {
|
|
28156
28220
|
while (1) switch (_context7.prev = _context7.next) {
|
|
28157
28221
|
case 0:
|
|
28158
|
-
if (!(
|
|
28159
|
-
_context7.next =
|
|
28222
|
+
if (!((_articles$targetArtic = articles[targetArticlesToUpdate[0]]) !== null && _articles$targetArtic !== void 0 && _articles$targetArtic.hasPartlistArticleVisibleInTree)) {
|
|
28223
|
+
_context7.next = 13;
|
|
28160
28224
|
break;
|
|
28161
28225
|
}
|
|
28162
|
-
|
|
28226
|
+
_context7.t0 = _regeneratorRuntime__default["default"].keys(articles);
|
|
28163
28227
|
case 2:
|
|
28164
|
-
|
|
28165
|
-
case 3:
|
|
28166
|
-
if (!(i < targetArticlesToUpdate.length)) {
|
|
28228
|
+
if ((_context7.t1 = _context7.t0()).done) {
|
|
28167
28229
|
_context7.next = 13;
|
|
28168
28230
|
break;
|
|
28169
28231
|
}
|
|
28170
|
-
|
|
28171
|
-
|
|
28172
|
-
|
|
28232
|
+
key = _context7.t1.value;
|
|
28233
|
+
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
28234
|
+
toIgnore = configuredArticle.pushParentId();
|
|
28235
|
+
if (![configuredArticle.basketId].concat(_toConsumableArray__default["default"](toIgnore)).includes(key)) {
|
|
28236
|
+
_context7.next = 8;
|
|
28173
28237
|
break;
|
|
28174
28238
|
}
|
|
28175
|
-
_context7.
|
|
28176
|
-
return this.updateCfgValues(article, valuesArray[i], {});
|
|
28239
|
+
return _context7.abrupt("continue", 2);
|
|
28177
28240
|
case 8:
|
|
28178
|
-
|
|
28179
|
-
|
|
28180
|
-
|
|
28181
|
-
|
|
28182
|
-
_context7.next =
|
|
28241
|
+
actArticle = articles[key];
|
|
28242
|
+
_context7.next = 11;
|
|
28243
|
+
return this.updateCfgValues(actArticle, {}, {});
|
|
28244
|
+
case 11:
|
|
28245
|
+
_context7.next = 2;
|
|
28183
28246
|
break;
|
|
28184
28247
|
case 13:
|
|
28185
28248
|
case "end":
|
|
@@ -28187,55 +28250,43 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28187
28250
|
}
|
|
28188
28251
|
}, _callee6, this);
|
|
28189
28252
|
}));
|
|
28190
|
-
function
|
|
28191
|
-
return
|
|
28253
|
+
function triggerUpdateOnVisiblePartilstArticles(_x19, _x20) {
|
|
28254
|
+
return _triggerUpdateOnVisiblePartilstArticles.apply(this, arguments);
|
|
28192
28255
|
}
|
|
28193
|
-
return
|
|
28256
|
+
return triggerUpdateOnVisiblePartilstArticles;
|
|
28194
28257
|
}()
|
|
28195
28258
|
}, {
|
|
28196
|
-
key: "
|
|
28259
|
+
key: "updateEmptyOption",
|
|
28197
28260
|
value: function () {
|
|
28198
|
-
var
|
|
28199
|
-
var
|
|
28200
|
-
var key, configuredArticle, toIgnore, actArticle;
|
|
28261
|
+
var _updateEmptyOption = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(article) {
|
|
28262
|
+
var emyptsOptionsToSet;
|
|
28201
28263
|
return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context8) {
|
|
28202
28264
|
while (1) switch (_context8.prev = _context8.next) {
|
|
28203
28265
|
case 0:
|
|
28204
|
-
|
|
28205
|
-
|
|
28206
|
-
break;
|
|
28207
|
-
}
|
|
28208
|
-
_context8.t0 = _regeneratorRuntime__default["default"].keys(articles);
|
|
28266
|
+
_context8.next = 2;
|
|
28267
|
+
return article.afterInit();
|
|
28209
28268
|
case 2:
|
|
28210
|
-
|
|
28211
|
-
|
|
28212
|
-
|
|
28213
|
-
}
|
|
28214
|
-
key = _context8.t1.value;
|
|
28215
|
-
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
28216
|
-
toIgnore = configuredArticle.pushParentId();
|
|
28217
|
-
if (![configuredArticle.basketId].concat(_toConsumableArray__default["default"](toIgnore)).includes(key)) {
|
|
28218
|
-
_context8.next = 8;
|
|
28269
|
+
emyptsOptionsToSet = _context8.sent;
|
|
28270
|
+
if (!Object.keys(emyptsOptionsToSet).length) {
|
|
28271
|
+
_context8.next = 7;
|
|
28219
28272
|
break;
|
|
28220
28273
|
}
|
|
28221
|
-
|
|
28274
|
+
_context8.next = 6;
|
|
28275
|
+
return this.updateCfgValues(article, emyptsOptionsToSet, {});
|
|
28276
|
+
case 6:
|
|
28277
|
+
return _context8.abrupt("return", _context8.sent);
|
|
28278
|
+
case 7:
|
|
28279
|
+
return _context8.abrupt("return", undefined);
|
|
28222
28280
|
case 8:
|
|
28223
|
-
actArticle = articles[key];
|
|
28224
|
-
_context8.next = 11;
|
|
28225
|
-
return this.updateCfgValues(actArticle, {}, {});
|
|
28226
|
-
case 11:
|
|
28227
|
-
_context8.next = 2;
|
|
28228
|
-
break;
|
|
28229
|
-
case 13:
|
|
28230
28281
|
case "end":
|
|
28231
28282
|
return _context8.stop();
|
|
28232
28283
|
}
|
|
28233
28284
|
}, _callee7, this);
|
|
28234
28285
|
}));
|
|
28235
|
-
function
|
|
28236
|
-
return
|
|
28286
|
+
function updateEmptyOption(_x21) {
|
|
28287
|
+
return _updateEmptyOption.apply(this, arguments);
|
|
28237
28288
|
}
|
|
28238
|
-
return
|
|
28289
|
+
return updateEmptyOption;
|
|
28239
28290
|
}()
|
|
28240
28291
|
}, {
|
|
28241
28292
|
key: "updateAccessoriesFromGlobalOption",
|
|
@@ -28264,7 +28315,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28264
28315
|
}
|
|
28265
28316
|
}, _callee8, this);
|
|
28266
28317
|
}));
|
|
28267
|
-
function updateAccessoriesFromGlobalOption(
|
|
28318
|
+
function updateAccessoriesFromGlobalOption(_x22, _x23) {
|
|
28268
28319
|
return _updateAccessoriesFromGlobalOption.apply(this, arguments);
|
|
28269
28320
|
}
|
|
28270
28321
|
return updateAccessoriesFromGlobalOption;
|
|
@@ -28507,7 +28558,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28507
28558
|
}
|
|
28508
28559
|
}, _callee9, null, [[12, 27, 30, 33]]);
|
|
28509
28560
|
}));
|
|
28510
|
-
function initCfgValues(
|
|
28561
|
+
function initCfgValues(_x24, _x25, _x26) {
|
|
28511
28562
|
return _initCfgValues.apply(this, arguments);
|
|
28512
28563
|
}
|
|
28513
28564
|
return initCfgValues;
|
|
@@ -28527,7 +28578,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28527
28578
|
}
|
|
28528
28579
|
}, _callee10, this);
|
|
28529
28580
|
}));
|
|
28530
|
-
function setValidVariantValues(
|
|
28581
|
+
function setValidVariantValues(_x27) {
|
|
28531
28582
|
return _setValidVariantValues.apply(this, arguments);
|
|
28532
28583
|
}
|
|
28533
28584
|
return setValidVariantValues;
|
|
@@ -28613,7 +28664,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28613
28664
|
}
|
|
28614
28665
|
}, _callee11, this);
|
|
28615
28666
|
}));
|
|
28616
|
-
function updateCfgValues(
|
|
28667
|
+
function updateCfgValues(_x28, _x29, _x30, _x31, _x32, _x33) {
|
|
28617
28668
|
return _updateCfgValues.apply(this, arguments);
|
|
28618
28669
|
}
|
|
28619
28670
|
return updateCfgValues;
|
|
@@ -28670,7 +28721,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28670
28721
|
}
|
|
28671
28722
|
}, _callee12, this);
|
|
28672
28723
|
}));
|
|
28673
|
-
function updateLastElement(
|
|
28724
|
+
function updateLastElement(_x34) {
|
|
28674
28725
|
return _updateLastElement.apply(this, arguments);
|
|
28675
28726
|
}
|
|
28676
28727
|
return updateLastElement;
|
|
@@ -28712,7 +28763,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28712
28763
|
}
|
|
28713
28764
|
}, _callee13);
|
|
28714
28765
|
}));
|
|
28715
|
-
function updateOption(
|
|
28766
|
+
function updateOption(_x35, _x36, _x37, _x38) {
|
|
28716
28767
|
return _updateOption.apply(this, arguments);
|
|
28717
28768
|
}
|
|
28718
28769
|
return updateOption;
|
|
@@ -28754,7 +28805,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28754
28805
|
}
|
|
28755
28806
|
}, _callee14, this);
|
|
28756
28807
|
}));
|
|
28757
|
-
function evalAndLoadPartlistArticles(
|
|
28808
|
+
function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
|
|
28758
28809
|
return _evalAndLoadPartlistArticles.apply(this, arguments);
|
|
28759
28810
|
}
|
|
28760
28811
|
return evalAndLoadPartlistArticles;
|
|
@@ -28793,7 +28844,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28793
28844
|
}
|
|
28794
28845
|
}, _callee15, this);
|
|
28795
28846
|
}));
|
|
28796
|
-
function loadPartlistArticles(
|
|
28847
|
+
function loadPartlistArticles(_x42, _x43, _x44) {
|
|
28797
28848
|
return _loadPartlistArticles.apply(this, arguments);
|
|
28798
28849
|
}
|
|
28799
28850
|
return loadPartlistArticles;
|
|
@@ -28803,7 +28854,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28803
28854
|
key: "loadPartlistArticle",
|
|
28804
28855
|
value: function () {
|
|
28805
28856
|
var _loadPartlistArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(doLoadItem, article, newConfigValues) {
|
|
28806
|
-
var nArticle;
|
|
28857
|
+
var nArticle, _doLoadItem$VariantVa;
|
|
28807
28858
|
return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context18) {
|
|
28808
28859
|
while (1) switch (_context18.prev = _context18.next) {
|
|
28809
28860
|
case 0:
|
|
@@ -28817,7 +28868,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28817
28868
|
}
|
|
28818
28869
|
doLoadItem.BasketID = nArticle.basketId;
|
|
28819
28870
|
_context18.next = 7;
|
|
28820
|
-
return this.toDoAfterArticleLoaded(nArticle, {},
|
|
28871
|
+
return this.toDoAfterArticleLoaded(nArticle, {}, nArticle.variantValuesForPla(nArticle.partlistArticleStandalone, (_doLoadItem$VariantVa = doLoadItem.VariantValues) !== null && _doLoadItem$VariantVa !== void 0 ? _doLoadItem$VariantVa : {}, newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}), 'initializingPartlist', doLoadItem.VariantItemData);
|
|
28821
28872
|
case 7:
|
|
28822
28873
|
article.addPartlistArticle(nArticle);
|
|
28823
28874
|
case 8:
|
|
@@ -28826,7 +28877,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28826
28877
|
}
|
|
28827
28878
|
}, _callee16, this);
|
|
28828
28879
|
}));
|
|
28829
|
-
function loadPartlistArticle(
|
|
28880
|
+
function loadPartlistArticle(_x45, _x46, _x47) {
|
|
28830
28881
|
return _loadPartlistArticle.apply(this, arguments);
|
|
28831
28882
|
}
|
|
28832
28883
|
return loadPartlistArticle;
|
|
@@ -28856,6 +28907,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28856
28907
|
supplierOrderCodex: doLoadItem.SupplierOrderCodex,
|
|
28857
28908
|
initDecisions: doLoadItem.initDecisions,
|
|
28858
28909
|
partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
|
|
28910
|
+
partlistArticleStandalone: doLoadItem.ConfigurationMode,
|
|
28859
28911
|
optionsForPrint: doLoadItem.optionsForPrint,
|
|
28860
28912
|
optionImgForPrint: doLoadItem.optionImgForPrint,
|
|
28861
28913
|
catalogCodex: doLoadItem.CatalogCodex
|
|
@@ -28987,7 +29039,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28987
29039
|
}
|
|
28988
29040
|
}, _callee17, this);
|
|
28989
29041
|
}));
|
|
28990
|
-
function evalOpvsOnOpvsConstructionRules(
|
|
29042
|
+
function evalOpvsOnOpvsConstructionRules(_x48) {
|
|
28991
29043
|
return _evalOpvsOnOpvsConstructionRules.apply(this, arguments);
|
|
28992
29044
|
}
|
|
28993
29045
|
return evalOpvsOnOpvsConstructionRules;
|
|
@@ -29190,7 +29242,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29190
29242
|
}
|
|
29191
29243
|
}, _callee18);
|
|
29192
29244
|
}));
|
|
29193
|
-
function triggerShelfplannerVisibility(
|
|
29245
|
+
function triggerShelfplannerVisibility(_x49, _x50) {
|
|
29194
29246
|
return _triggerShelfplannerVisibility.apply(this, arguments);
|
|
29195
29247
|
}
|
|
29196
29248
|
return triggerShelfplannerVisibility;
|
|
@@ -29267,7 +29319,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29267
29319
|
IsPartlistArticle: article.isPartListArticle,
|
|
29268
29320
|
IsPlannerElement: article.hasCatalogPlannerArticle,
|
|
29269
29321
|
HasPartlistArticle: article.hasPartlistArticle,
|
|
29270
|
-
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint,
|
|
29322
|
+
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint && !article.partlistArticleStandalone,
|
|
29271
29323
|
SendToSAP: article.sendToSap,
|
|
29272
29324
|
ShelfPlandata: article.shelfPlanner ? DivaUtils__default["default"].encodeBasketJson((_article$shelfPlanner3 = (_article$shelfPlanner4 = article.shelfPlanner) === null || _article$shelfPlanner4 === void 0 ? void 0 : _article$shelfPlanner4.generateShelfPlandata()) !== null && _article$shelfPlanner3 !== void 0 ? _article$shelfPlanner3 : (_article$doorPlanner = article.doorPlanner) === null || _article$doorPlanner === void 0 ? void 0 : _article$doorPlanner.getMovedData(article.basketId)) : undefined,
|
|
29273
29325
|
MetaData: !hasFavorites ? article.MetaData : undefined,
|
|
@@ -29514,7 +29566,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29514
29566
|
}
|
|
29515
29567
|
}, _callee19, this);
|
|
29516
29568
|
}));
|
|
29517
|
-
function correctPartlistArticlesByGlobalRules(
|
|
29569
|
+
function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
|
|
29518
29570
|
return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
|
|
29519
29571
|
}
|
|
29520
29572
|
return correctPartlistArticlesByGlobalRules;
|
|
@@ -30177,7 +30229,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
30177
30229
|
var myOption = myTabGroup.options[lKey];
|
|
30178
30230
|
if (myOption.idmVariantType) {
|
|
30179
30231
|
var _catalog$getOption;
|
|
30180
|
-
var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12]];
|
|
30232
|
+
var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12], [226, 224]];
|
|
30181
30233
|
for (var i = 0; i < opgPairs.length; i++) {
|
|
30182
30234
|
var optionStep = this.getOptionWhereIDMVariantIs(iKey, opgPairs[i][1]);
|
|
30183
30235
|
if (myOption.idmVariantType == opgPairs[i][0] && optionStep && !optionStep.mergesToOPG) {
|
|
@@ -30432,6 +30484,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
30432
30484
|
_defineProperty__default["default"](this, "matchingOrigProduct", void 0);
|
|
30433
30485
|
_defineProperty__default["default"](this, "_supplierColors", void 0);
|
|
30434
30486
|
_defineProperty__default["default"](this, "_logDecisions", false);
|
|
30487
|
+
_defineProperty__default["default"](this, "_logTotalStateForVariants", false);
|
|
30435
30488
|
/**Favorits state */
|
|
30436
30489
|
_defineProperty__default["default"](this, "_handlelingCurrentFavorites", false);
|
|
30437
30490
|
_defineProperty__default["default"](this, "_favorites", {
|
|
@@ -31705,7 +31758,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31705
31758
|
break;
|
|
31706
31759
|
}
|
|
31707
31760
|
_context5.next = 3;
|
|
31708
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
31761
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-af0b6c95.js'); });
|
|
31709
31762
|
case 3:
|
|
31710
31763
|
_yield$import = _context5.sent;
|
|
31711
31764
|
DoorPlanner = _yield$import["default"];
|
|
@@ -31872,6 +31925,14 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31872
31925
|
set: function set(val) {
|
|
31873
31926
|
this._logDecisions = val;
|
|
31874
31927
|
}
|
|
31928
|
+
}, {
|
|
31929
|
+
key: "logTotalStateForVariants",
|
|
31930
|
+
get: function get() {
|
|
31931
|
+
return this._logTotalStateForVariants;
|
|
31932
|
+
},
|
|
31933
|
+
set: function set(val) {
|
|
31934
|
+
this._logTotalStateForVariants = val;
|
|
31935
|
+
}
|
|
31875
31936
|
}, {
|
|
31876
31937
|
key: "showAccessioreOnLastTab",
|
|
31877
31938
|
get: function get() {
|
|
@@ -31889,6 +31950,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31889
31950
|
var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
|
|
31890
31951
|
clonedSet.setData = _objectSpread$c({}, this.setData);
|
|
31891
31952
|
clonedSet.configSingle = this.configSingle;
|
|
31953
|
+
clonedSet.logTotalStateForVariants = this.logTotalStateForVariants;
|
|
31892
31954
|
var articles = this.getDivaArticles();
|
|
31893
31955
|
//if boxplanner needs to be working, the planner needs to be cloned too
|
|
31894
31956
|
//this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
|
|
@@ -33670,7 +33732,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
33670
33732
|
}
|
|
33671
33733
|
configStepKey = configStepKey + '_' + 'acc' + (set.CatalogData.forceConfigAllAccessoires ? article.articleCodex : basketId);
|
|
33672
33734
|
}
|
|
33673
|
-
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true));
|
|
33735
|
+
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true, true));
|
|
33674
33736
|
var singleOPVOnly = ops.visibleCount == 1 && !ops.isFreeText && !set.CatalogData.dontHideOption.includes(ops.option.codex) && !((_set$ViewConfig3 = set.ViewConfig) !== null && _set$ViewConfig3 !== void 0 && _set$ViewConfig3.showSingleOPVOnly);
|
|
33675
33737
|
var isAccessoire = !!article.relatedToBasketId ? article.articleCodex : false;
|
|
33676
33738
|
if (!configTree.getTabGroupByCodex(tabGroupCodex)) {
|
|
@@ -36185,7 +36247,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36185
36247
|
var _article$partListPare, _article$partListPare2;
|
|
36186
36248
|
return group.includes((_article$partListPare = (_article$partListPare2 = article.partListParentArticle) === null || _article$partListPare2 === void 0 ? void 0 : _article$partListPare2.basketId) !== null && _article$partListPare !== void 0 ? _article$partListPare : '');
|
|
36187
36249
|
});
|
|
36188
|
-
if (group) {
|
|
36250
|
+
if (group && !article.partlistArticleStandalone) {
|
|
36189
36251
|
group.push(article.basketId);
|
|
36190
36252
|
} else {
|
|
36191
36253
|
groupedArticles.push([article.basketId]);
|
|
@@ -36302,16 +36364,26 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36302
36364
|
case 2:
|
|
36303
36365
|
opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
|
|
36304
36366
|
previewType = set.api.pricePreview;
|
|
36305
|
-
if (!(!opt ||
|
|
36367
|
+
if (!(!opt || configItems.length == 1 || opt.mergeIDMToOPG || configItems[0].isOPVG || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR'))) {
|
|
36306
36368
|
_context26.next = 6;
|
|
36307
36369
|
break;
|
|
36308
36370
|
}
|
|
36309
36371
|
return _context26.abrupt("return", configItems);
|
|
36310
36372
|
case 6:
|
|
36373
|
+
if (!(!previewType || previewType == 'off' || opt.isDescribingState || configItems.length > 300 && !configItems[0].groupName || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex.substring(3)) || (_set$CatalogData$hide = set.CatalogData.hidePricePreviewOnlyOnOptions) !== null && _set$CatalogData$hide !== void 0 && _set$CatalogData$hide.length && set.CatalogData.hidePricePreviewOnlyOnOptions.includes(opt.codex.substring(3)))) {
|
|
36374
|
+
_context26.next = 9;
|
|
36375
|
+
break;
|
|
36376
|
+
}
|
|
36377
|
+
if (set.logTotalStateForVariants) {
|
|
36378
|
+
_context26.next = 9;
|
|
36379
|
+
break;
|
|
36380
|
+
}
|
|
36381
|
+
return _context26.abrupt("return", configItems);
|
|
36382
|
+
case 9:
|
|
36311
36383
|
targetArticles = set.configTree.getTargetArticles(configStepKey);
|
|
36312
|
-
_context26.next =
|
|
36384
|
+
_context26.next = 12;
|
|
36313
36385
|
return this.calcVariants(set, configItems, targetArticles, opt.codex);
|
|
36314
|
-
case
|
|
36386
|
+
case 12:
|
|
36315
36387
|
variants = _context26.sent;
|
|
36316
36388
|
if (previewType) {
|
|
36317
36389
|
configItems.map(function (c, index) {
|
|
@@ -36322,7 +36394,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36322
36394
|
});
|
|
36323
36395
|
}
|
|
36324
36396
|
return _context26.abrupt("return", configItems);
|
|
36325
|
-
case
|
|
36397
|
+
case 15:
|
|
36326
36398
|
case "end":
|
|
36327
36399
|
return _context26.stop();
|
|
36328
36400
|
}
|
|
@@ -36343,7 +36415,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36343
36415
|
case 0:
|
|
36344
36416
|
variantInfo = [];
|
|
36345
36417
|
set = realSet.cloneSet();
|
|
36346
|
-
articles = set.getDivaArticles();
|
|
36418
|
+
articles = set.getDivaArticles(true);
|
|
36347
36419
|
origPrice = set.getSetPrice();
|
|
36348
36420
|
articleConfigs = {};
|
|
36349
36421
|
for (i = 0; i < targetArticles.length; i++) {
|
|
@@ -36485,7 +36557,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36485
36557
|
calcTime: calcTime,
|
|
36486
36558
|
firstPrice: firstPrice,
|
|
36487
36559
|
variantValues: hashVariantValues,
|
|
36488
|
-
hashObj: [].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig)))
|
|
36560
|
+
hashObj: [].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig))),
|
|
36561
|
+
articleSnapshot: set.logTotalStateForVariants ? set.cloneSet().getDivaArticles() : undefined
|
|
36489
36562
|
};
|
|
36490
36563
|
set.CatalogData.setVariantsPriceByHash(hash, priceObj);
|
|
36491
36564
|
return _context28.abrupt("return", priceObj);
|
|
@@ -38403,7 +38476,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38403
38476
|
_context11.next = 19;
|
|
38404
38477
|
break;
|
|
38405
38478
|
case 17:
|
|
38406
|
-
if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
38479
|
+
if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE' || response === 'ERROR_NO_BASKET_SAVED_ENTITY_EXISTS')) {
|
|
38407
38480
|
_context11.next = 19;
|
|
38408
38481
|
break;
|
|
38409
38482
|
}
|
|
@@ -38560,7 +38633,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38560
38633
|
break;
|
|
38561
38634
|
case 3:
|
|
38562
38635
|
_context12.next = 5;
|
|
38563
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
38636
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-53fd4d6d.js'); });
|
|
38564
38637
|
case 5:
|
|
38565
38638
|
_yield$import = _context12.sent;
|
|
38566
38639
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -38568,7 +38641,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38568
38641
|
return _context12.abrupt("break", 27);
|
|
38569
38642
|
case 9:
|
|
38570
38643
|
_context12.next = 11;
|
|
38571
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
38644
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-ef8d6dda.js'); });
|
|
38572
38645
|
case 11:
|
|
38573
38646
|
_yield$import2 = _context12.sent;
|
|
38574
38647
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -38576,7 +38649,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38576
38649
|
return _context12.abrupt("break", 27);
|
|
38577
38650
|
case 15:
|
|
38578
38651
|
_context12.next = 17;
|
|
38579
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
38652
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-1cc7b756.js'); });
|
|
38580
38653
|
case 17:
|
|
38581
38654
|
_yield$import3 = _context12.sent;
|
|
38582
38655
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -38584,7 +38657,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38584
38657
|
return _context12.abrupt("break", 27);
|
|
38585
38658
|
case 21:
|
|
38586
38659
|
_context12.next = 23;
|
|
38587
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
38660
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-ce110f2c.js'); });
|
|
38588
38661
|
case 23:
|
|
38589
38662
|
_yield$import4 = _context12.sent;
|
|
38590
38663
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -40012,7 +40085,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
40012
40085
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40013
40086
|
case 0:
|
|
40014
40087
|
_context3.next = 2;
|
|
40015
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
40088
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-19648b10.js'); });
|
|
40016
40089
|
case 2:
|
|
40017
40090
|
_yield$import = _context3.sent;
|
|
40018
40091
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41569,7 +41642,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41569
41642
|
break;
|
|
41570
41643
|
case 8:
|
|
41571
41644
|
_context4.next = 10;
|
|
41572
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
41645
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-008e54fd.js'); });
|
|
41573
41646
|
case 10:
|
|
41574
41647
|
_yield$import = _context4.sent;
|
|
41575
41648
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -41580,7 +41653,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41580
41653
|
return _context4.abrupt("break", 21);
|
|
41581
41654
|
case 15:
|
|
41582
41655
|
_context4.next = 17;
|
|
41583
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
41656
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-0c8748b2.js'); });
|
|
41584
41657
|
case 17:
|
|
41585
41658
|
_yield$import2 = _context4.sent;
|
|
41586
41659
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -43627,9 +43700,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
43627
43700
|
}
|
|
43628
43701
|
}, {
|
|
43629
43702
|
key: "getDivaArticles",
|
|
43630
|
-
value: function getDivaArticles() {
|
|
43703
|
+
value: function getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso) {
|
|
43631
43704
|
var _this$actSet3;
|
|
43632
|
-
return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles();
|
|
43705
|
+
return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso);
|
|
43633
43706
|
}
|
|
43634
43707
|
|
|
43635
43708
|
//for debugging
|