@crystaldesign/web-planner-logic 25.5.0-beta.1 → 25.5.0-beta.11
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-10481078.js → DivaBoxPlanner-be0a097d.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-d13cca7a.js → DivaStandardPlanner-b6b673a2.js} +2 -2
- package/build/cjs/{DoorPlanner-4ebcc53d.js → DoorPlanner-60b67658.js} +1 -1
- package/build/cjs/{Host3DSignalR-1c1b8c1a.js → Host3DSignalR-76438bbe.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-11ecd966.js → LiviqueWWSHandler-a0c00744.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-85b20c41.js → PfisterWWSHandler-9eecc6ff.js} +1 -1
- package/build/cjs/{PlannerHandler2D-b0c0eae8.js → PlannerHandler2D-290389c8.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-5ebc3e01.js → SeriousBasketHandler-28ffa0f9.js} +2 -2
- package/build/cjs/{ShelfPlanner-c89976b9.js → ShelfPlanner-bcb6221a.js} +1 -1
- package/build/cjs/{StandardWWSHandler-63132754.js → StandardWWSHandler-eeca9426.js} +1 -1
- package/build/cjs/{index-e9136eb2.js → index-daa2e0dd.js} +257 -179
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-960dd248.js → DivaBoxPlanner-a14ae106.js} +2 -2
- package/build/esm/{DivaStandardPlanner-8be567e2.js → DivaStandardPlanner-978a3382.js} +2 -2
- package/build/esm/{DoorPlanner-9116e0cc.js → DoorPlanner-1e4a2ae0.js} +1 -1
- package/build/esm/{Host3DSignalR-2ff79baa.js → Host3DSignalR-efe6cdae.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-152cbf3e.js → LiviqueWWSHandler-e8067cb9.js} +1 -1
- package/build/esm/{PfisterWWSHandler-1041d9f9.js → PfisterWWSHandler-82a3c4a2.js} +1 -1
- package/build/esm/{PlannerHandler2D-4656f6ab.js → PlannerHandler2D-e38e8399.js} +1 -1
- package/build/esm/{SeriousBasketHandler-447744dd.js → SeriousBasketHandler-ae57ed8f.js} +2 -2
- package/build/esm/{ShelfPlanner-f2022d16.js → ShelfPlanner-eca6fe99.js} +1 -1
- package/build/esm/{StandardWWSHandler-aac0d68a.js → StandardWWSHandler-051b8495.js} +1 -1
- package/build/esm/{index-7ca7b229.js → index-405b010a.js} +257 -179
- 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/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/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/package.json +2 -2
|
@@ -19829,8 +19829,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19829
19829
|
hidePricePreviewOnlyOnOptions: [],
|
|
19830
19830
|
forceConfigSingle: false,
|
|
19831
19831
|
// das einzeln konfigurieren wird in diesem Katalog gezwungen
|
|
19832
|
-
doubleClickOnConfig: false,
|
|
19833
|
-
// Felher bei Ada IDM wird somit ausgebessert
|
|
19834
19832
|
doUseRuleDescForPartListArticles: false,
|
|
19835
19833
|
initOptionTreeTwice: false,
|
|
19836
19834
|
// Felher bei Cotta IDM wird somit ausgebes
|
|
@@ -20470,11 +20468,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20470
20468
|
var _this$optionValues2;
|
|
20471
20469
|
return Object.values((_this$optionValues2 = this.optionValues) !== null && _this$optionValues2 !== void 0 ? _this$optionValues2 : {});
|
|
20472
20470
|
}
|
|
20473
|
-
}, {
|
|
20474
|
-
key: "doubleClickOnConfig",
|
|
20475
|
-
get: function get() {
|
|
20476
|
-
return this.catalogProps.doubleClickOnConfig;
|
|
20477
|
-
}
|
|
20478
20471
|
}, {
|
|
20479
20472
|
key: "initOptionTreeTwice",
|
|
20480
20473
|
get: function get() {
|
|
@@ -20987,9 +20980,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20987
20980
|
return 'OPT' + t;
|
|
20988
20981
|
});
|
|
20989
20982
|
break;
|
|
20990
|
-
case 'DOUBLE_CLICK_ON_CONFIG':
|
|
20991
|
-
_this5.catalogProps.doubleClickOnConfig = '1' == item.Value;
|
|
20992
|
-
break;
|
|
20993
20983
|
case 'INIT_OPTIONTREE_TWICE':
|
|
20994
20984
|
_this5.catalogProps.initOptionTreeTwice = '1' == item.Value;
|
|
20995
20985
|
break;
|
|
@@ -22492,8 +22482,10 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22492
22482
|
var _this$article$set$Vie;
|
|
22493
22483
|
//die Klasse ArticleOptionState wird einfach neu initialisiert
|
|
22494
22484
|
var oldOPS = this.article.getArticleOptionState(optionCodex);
|
|
22485
|
+
if (!oldOPS) return;
|
|
22495
22486
|
if (keepEnalbed) {
|
|
22496
22487
|
oldOPS.val = undefined;
|
|
22488
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
22497
22489
|
return;
|
|
22498
22490
|
}
|
|
22499
22491
|
var option = oldOPS.option;
|
|
@@ -22690,7 +22682,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22690
22682
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
22691
22683
|
var ops = _step3.value;
|
|
22692
22684
|
//when an option has no decisions the first visible optionValue has to be selected per default
|
|
22693
|
-
if (ops.val === undefined && ops.visibleCount) {
|
|
22685
|
+
if (ops.val === undefined && ops.visibleCount && !this.article.CatalogData.useDiomexConfigLogic) {
|
|
22694
22686
|
this.assignOptionValue(ops.optionCodex, Object.keys(ops.visibleOptionValues)[0]);
|
|
22695
22687
|
}
|
|
22696
22688
|
if (ops.visibleCount && ops.IsIDMSpecialFeature) {
|
|
@@ -23228,6 +23220,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23228
23220
|
value: function evalPartlist(newConfigValues) {
|
|
23229
23221
|
var partlistArticlesToLoad = [];
|
|
23230
23222
|
var myPartlistArticles = this.article.groupedPartlists;
|
|
23223
|
+
var partlistGroup = [];
|
|
23231
23224
|
for (var iKey in myPartlistArticles) {
|
|
23232
23225
|
var groupDecisionVal;
|
|
23233
23226
|
var key = Number(iKey);
|
|
@@ -23238,6 +23231,9 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23238
23231
|
for (var b = 0; b < myPartlistArticles[key].length; b++) {
|
|
23239
23232
|
var startTime = Date.now();
|
|
23240
23233
|
var myPartListPos = myPartlistArticles[key][b];
|
|
23234
|
+
if (myPartListPos.PartlistGroup && partlistGroup.includes(myPartListPos.PartlistGroup)) {
|
|
23235
|
+
continue;
|
|
23236
|
+
}
|
|
23241
23237
|
if (myPartListPos.ItemRefArticles) {
|
|
23242
23238
|
var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
|
|
23243
23239
|
if (decisions) {
|
|
@@ -23250,16 +23246,16 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23250
23246
|
if ((_myDecisionVal = myDecisionVal) !== null && _myDecisionVal !== void 0 && _myDecisionVal.isValidDOC || relationTypeNone) {
|
|
23251
23247
|
// wenn die Decision gültig, gelten die ItemRefArticles
|
|
23252
23248
|
partlistAdded = true;
|
|
23253
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23249
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23254
23250
|
break;
|
|
23255
23251
|
}
|
|
23256
23252
|
}
|
|
23257
23253
|
if (decisions.length === 0) {
|
|
23258
23254
|
LOG$f.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
|
|
23259
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23255
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23260
23256
|
} else if (!partlistAdded && this.article.CatalogData.useDecisionPosCountValue && myPartListPos.PosCountValue > 0) {
|
|
23261
23257
|
LOG$f.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
|
|
23262
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23258
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23263
23259
|
}
|
|
23264
23260
|
}
|
|
23265
23261
|
}
|
|
@@ -23271,7 +23267,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23271
23267
|
}
|
|
23272
23268
|
}, {
|
|
23273
23269
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
23274
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23270
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23275
23271
|
var _myPartListPos$Option,
|
|
23276
23272
|
_this2 = this;
|
|
23277
23273
|
var allDecisions = this.article.catalogArticle.articleDecisions;
|
|
@@ -23328,7 +23324,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23328
23324
|
_loop3(i);
|
|
23329
23325
|
}
|
|
23330
23326
|
if (quanitity >= 1) {
|
|
23331
|
-
var _myDecisionVal$Rule
|
|
23327
|
+
var _myDecisionVal$Rule;
|
|
23332
23328
|
partlistArticlesToLoad.push({
|
|
23333
23329
|
CatalogCodex: catalogCodex !== null && catalogCodex !== void 0 ? catalogCodex : _this2.article.catalogCodex,
|
|
23334
23330
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -23343,11 +23339,13 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23343
23339
|
RuleDesc: myRuleDesc,
|
|
23344
23340
|
RuleDesc_locales: myRuleDesc_locales,
|
|
23345
23341
|
PosInvisibility: myPartListPos.PosInvisibility,
|
|
23346
|
-
|
|
23342
|
+
ConfigurationMode: myPartListPos.ConfigurationMode,
|
|
23343
|
+
VariantValues: _this2.article.variantValuesForPla(myPartListPos.ConfigurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
23347
23344
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData,
|
|
23348
23345
|
optionImgForPrint: optionImgForPrint,
|
|
23349
23346
|
optionsForPrint: optionsForPrint
|
|
23350
23347
|
});
|
|
23348
|
+
if (myPartListPos.PartlistGroup) partlistGroup.push(myPartListPos.PartlistGroup);
|
|
23351
23349
|
}
|
|
23352
23350
|
};
|
|
23353
23351
|
for (var d = 0; d < myPartListPos.ItemRefArticles.length; d++) {
|
|
@@ -24249,6 +24247,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24249
24247
|
var oldOPS = this.article.getArticleOptionState(featureNo);
|
|
24250
24248
|
if (keepEnalbed) {
|
|
24251
24249
|
oldOPS.val = undefined;
|
|
24250
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
24252
24251
|
return;
|
|
24253
24252
|
}
|
|
24254
24253
|
var option = oldOPS.option;
|
|
@@ -24366,10 +24365,12 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24366
24365
|
var partlistArticlesToLoad = [];
|
|
24367
24366
|
var myPartlistArticles = (_this$article$catalog4 = this.article.catalogArticle.idmPartlist) === null || _this$article$catalog4 === void 0 ? void 0 : _this$article$catalog4.partlistPos;
|
|
24368
24367
|
if (!(myPartlistArticles !== null && myPartlistArticles !== void 0 && myPartlistArticles.length)) return [];
|
|
24368
|
+
var partlistGroup = [];
|
|
24369
24369
|
for (var i = 0; i < myPartlistArticles.length; i++) {
|
|
24370
24370
|
var _myPartListPos$decisi;
|
|
24371
24371
|
var myPartListPos = myPartlistArticles[i];
|
|
24372
24372
|
if (!myPartListPos.itemRefTypeNo) continue;
|
|
24373
|
+
if (myPartListPos.partlistGroup && partlistGroup.includes(myPartListPos.partlistGroup)) continue;
|
|
24373
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] : [])));
|
|
24374
24375
|
var partlistAdded = false;
|
|
24375
24376
|
for (var c = 0; c < decisions.length; c++) {
|
|
@@ -24378,22 +24379,22 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24378
24379
|
var isValidDOC = relationTypeNone ? undefined : this.checkDecisionNumber(decision.decisionNo);
|
|
24379
24380
|
if (!isValidDOC && !relationTypeNone) continue;
|
|
24380
24381
|
partlistAdded = true;
|
|
24381
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24382
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24382
24383
|
break;
|
|
24383
24384
|
}
|
|
24384
24385
|
if (decisions.length === 0 && !partlistAdded) {
|
|
24385
24386
|
LOG$e.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.itemRefTypeNo);
|
|
24386
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24387
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24387
24388
|
} else if (!partlistAdded && myPartListPos.posCountValue > 0) {
|
|
24388
24389
|
LOG$e.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.itemRefTypeNo);
|
|
24389
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24390
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24390
24391
|
}
|
|
24391
24392
|
}
|
|
24392
24393
|
return partlistArticlesToLoad;
|
|
24393
24394
|
}
|
|
24394
24395
|
}, {
|
|
24395
24396
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
24396
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, rule, decisionNo) {
|
|
24397
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, rule, decisionNo) {
|
|
24397
24398
|
var decisions = this.article.CatalogData.getDecisionsByNo(myPartListPos.decisions);
|
|
24398
24399
|
|
|
24399
24400
|
//const optionsForPrint: string[] = (myPartListPos.OptionsForPrint as string)?.split(';').map((o: string) => 'OPT' + o);
|
|
@@ -24444,7 +24445,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24444
24445
|
_loop2(i);
|
|
24445
24446
|
}
|
|
24446
24447
|
if (quanitity >= 1) {
|
|
24447
|
-
var _catalogCodex$toStrin
|
|
24448
|
+
var _catalogCodex$toStrin;
|
|
24448
24449
|
partlistArticlesToLoad.push({
|
|
24449
24450
|
CatalogCodex: (_catalogCodex$toStrin = catalogCodex.toString()) !== null && _catalogCodex$toStrin !== void 0 ? _catalogCodex$toStrin : this.article.catalogCodex,
|
|
24450
24451
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -24461,11 +24462,13 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24461
24462
|
RuleDesc: myRuleDesc,
|
|
24462
24463
|
RuleDesc_locales: myRuleDesc_locales,
|
|
24463
24464
|
PosInvisibility: myPartListPos.posInvisibility,
|
|
24464
|
-
|
|
24465
|
+
ConfigurationMode: myPartListPos.configurationMode,
|
|
24466
|
+
VariantValues: this.article.variantValuesForPla(myPartListPos.configurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
24465
24467
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData
|
|
24466
24468
|
//optionImgForPrint,
|
|
24467
24469
|
//optionsForPrint,
|
|
24468
24470
|
});
|
|
24471
|
+
if (myPartListPos.partlistGroup) partlistGroup.push(myPartListPos.partlistGroup);
|
|
24469
24472
|
}
|
|
24470
24473
|
return partlistArticlesToLoad;
|
|
24471
24474
|
}
|
|
@@ -24687,6 +24690,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24687
24690
|
partlistDecisionNo: initParams.partlistDecisionNo,
|
|
24688
24691
|
partListParentArticle: initParams.parentArticle,
|
|
24689
24692
|
partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
|
|
24693
|
+
partlistArticleStandalone: initParams.partlistArticleStandalone,
|
|
24690
24694
|
hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
|
|
24691
24695
|
noPrice: (_initParams$noPrice = initParams.noPrice) !== null && _initParams$noPrice !== void 0 ? _initParams$noPrice : false,
|
|
24692
24696
|
retailArticleNr: initParams.RetailArticleNr ? initParams.RetailArticleNr : initParams.retailArticleNr,
|
|
@@ -24827,6 +24831,11 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24827
24831
|
get: function get() {
|
|
24828
24832
|
return this.article.partlistArticleVisibleInTree && this.hasOptionsThatParentDoesNotHave;
|
|
24829
24833
|
}
|
|
24834
|
+
}, {
|
|
24835
|
+
key: "partlistArticleStandalone",
|
|
24836
|
+
get: function get() {
|
|
24837
|
+
return this.article.partlistArticleStandalone;
|
|
24838
|
+
}
|
|
24830
24839
|
}, {
|
|
24831
24840
|
key: "partlistArticlesReqursive",
|
|
24832
24841
|
get: function get() {
|
|
@@ -24841,6 +24850,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24841
24850
|
get: function get() {
|
|
24842
24851
|
var _this$partListParentA;
|
|
24843
24852
|
if (!this.partListParentArticle) return false;
|
|
24853
|
+
if (this.partlistArticleStandalone) return true;
|
|
24844
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
|
|
24845
24855
|
// first usecase https://app.asana.com/0/1204193128085691/1204389027061737
|
|
24846
24856
|
var myOptions = this.articleOptionStatesKeys;
|
|
@@ -24851,17 +24861,24 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24851
24861
|
}
|
|
24852
24862
|
}, {
|
|
24853
24863
|
key: "getRecursivePartlistArticles",
|
|
24854
|
-
value: function getRecursivePartlistArticles(onlyVisible) {
|
|
24864
|
+
value: function getRecursivePartlistArticles(onlyVisible, excludeStandalonePla) {
|
|
24855
24865
|
var partlistArticles = {};
|
|
24856
24866
|
for (var basketId in this.partlistArticles) {
|
|
24857
24867
|
var partlistArticle = this.partlistArticles[basketId];
|
|
24858
|
-
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree) partlistArticles[basketId] = partlistArticle;
|
|
24868
|
+
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree || !excludeStandalonePla && partlistArticle.partlistArticleStandalone) partlistArticles[basketId] = partlistArticle;
|
|
24859
24869
|
if (partlistArticle.hasPartlistArticle) {
|
|
24860
|
-
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible));
|
|
24870
|
+
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible, excludeStandalonePla));
|
|
24861
24871
|
}
|
|
24862
24872
|
}
|
|
24863
24873
|
return partlistArticles;
|
|
24864
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
|
+
}
|
|
24865
24882
|
}, {
|
|
24866
24883
|
key: "partlistArticlesAsArray",
|
|
24867
24884
|
get: function get() {
|
|
@@ -25505,31 +25522,32 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25505
25522
|
});
|
|
25506
25523
|
if (firstMatch) return firstMatch;
|
|
25507
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)) {
|
|
25508
|
-
|
|
25525
|
+
var ops = this.partListParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25526
|
+
if (ops) return ops;
|
|
25509
25527
|
}
|
|
25510
25528
|
if (Object.keys((_this$partlistArticle3 = this.partlistArticles) !== null && _this$partlistArticle3 !== void 0 ? _this$partlistArticle3 : {}).length > 0) {
|
|
25511
25529
|
for (var key in this.partlistArticles) {
|
|
25512
25530
|
if (from === key) continue;
|
|
25513
25531
|
var partlistArticle = this.partlistArticles[key];
|
|
25514
|
-
var
|
|
25515
|
-
if (
|
|
25532
|
+
var _ops = partlistArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25533
|
+
if (_ops) return _ops;
|
|
25516
25534
|
}
|
|
25517
25535
|
}
|
|
25518
25536
|
var _iterator5 = _createForOfIteratorHelper$6(this.articleOptionStatesData),
|
|
25519
25537
|
_step5;
|
|
25520
25538
|
try {
|
|
25521
25539
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
25522
|
-
var
|
|
25540
|
+
var _ops3 = _step5.value;
|
|
25523
25541
|
if (!codex.includes('.')) {
|
|
25524
|
-
if (
|
|
25525
|
-
return
|
|
25542
|
+
if (_ops3.option.ocd == codex && _ops3.isDoShow && !_ops3.isDisabled) {
|
|
25543
|
+
return _ops3;
|
|
25526
25544
|
}
|
|
25527
25545
|
} else {
|
|
25528
25546
|
var _this$parentOptionCod = this.parentOptionCodex(codex),
|
|
25529
25547
|
optionCodex = _this$parentOptionCod.optionCodex,
|
|
25530
25548
|
partenOptionCodex = _this$parentOptionCod.partenOptionCodex;
|
|
25531
|
-
if ((
|
|
25532
|
-
return
|
|
25549
|
+
if ((_ops3.option.ocd == optionCodex || _ops3.option.codex == optionCodex) && _ops3.option.parentOptionCodex == partenOptionCodex) {
|
|
25550
|
+
return _ops3;
|
|
25533
25551
|
}
|
|
25534
25552
|
}
|
|
25535
25553
|
}
|
|
@@ -25539,8 +25557,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25539
25557
|
_iterator5.f();
|
|
25540
25558
|
}
|
|
25541
25559
|
if (checkOnAccessoireParent && this.accessoireParentArticle) {
|
|
25542
|
-
var
|
|
25543
|
-
if (
|
|
25560
|
+
var _ops2 = this.accessoireParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25561
|
+
if (_ops2) return _ops2;
|
|
25544
25562
|
}
|
|
25545
25563
|
return undefined;
|
|
25546
25564
|
}
|
|
@@ -25734,9 +25752,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25734
25752
|
get: function get() {
|
|
25735
25753
|
var _this$partlistArticle4;
|
|
25736
25754
|
if (Object.values((_this$partlistArticle4 = this.partlistArticles) !== null && _this$partlistArticle4 !== void 0 ? _this$partlistArticle4 : {}).find(function (p) {
|
|
25737
|
-
return p.partlistArticleVisibleInTree;
|
|
25755
|
+
return p.partlistArticleVisibleInTree || p.partlistArticleStandalone;
|
|
25738
25756
|
})) return true;
|
|
25739
|
-
return this.partlistArticleVisibleInTree;
|
|
25757
|
+
return this.partlistArticleVisibleInTree || this.partlistArticleStandalone;
|
|
25740
25758
|
}
|
|
25741
25759
|
}, {
|
|
25742
25760
|
key: "partListParentArticle",
|
|
@@ -26197,13 +26215,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26197
26215
|
invisible: ops.isInvisible,
|
|
26198
26216
|
visibleOPVs: Object.values(ops.visibleOptionValues).map(function (v) {
|
|
26199
26217
|
return v.codex;
|
|
26200
|
-
})
|
|
26218
|
+
}),
|
|
26219
|
+
optName: ops.optionName
|
|
26201
26220
|
};
|
|
26202
26221
|
if (ops.freeText) {
|
|
26203
26222
|
ret[ops.optionCodex + '_val'] = {
|
|
26204
26223
|
selOPV: ops.freeText,
|
|
26205
26224
|
visibleOPVs: [],
|
|
26206
|
-
invisible: true
|
|
26225
|
+
invisible: true,
|
|
26226
|
+
optName: ''
|
|
26207
26227
|
};
|
|
26208
26228
|
}
|
|
26209
26229
|
}
|
|
@@ -26489,6 +26509,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26489
26509
|
}, {
|
|
26490
26510
|
key: "deletePartlistArticles",
|
|
26491
26511
|
value: function deletePartlistArticles() {
|
|
26512
|
+
for (var pl in this.article.partlistArticles) {
|
|
26513
|
+
this.article.partlistArticles[pl].deleted = true;
|
|
26514
|
+
}
|
|
26492
26515
|
if (Object.keys(this.article.partlistArticles).length) this.article.previousPartlistArticles = this.article.partlistArticles;
|
|
26493
26516
|
this.article.partlistArticles = {};
|
|
26494
26517
|
}
|
|
@@ -26779,9 +26802,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26779
26802
|
_step21;
|
|
26780
26803
|
try {
|
|
26781
26804
|
for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
|
|
26782
|
-
var
|
|
26783
|
-
if (
|
|
26784
|
-
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);
|
|
26785
26808
|
}
|
|
26786
26809
|
}
|
|
26787
26810
|
//fallback for pfister classification usecase
|
|
@@ -26794,9 +26817,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26794
26817
|
_step22;
|
|
26795
26818
|
try {
|
|
26796
26819
|
for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
|
|
26797
|
-
var
|
|
26798
|
-
if (
|
|
26799
|
-
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);
|
|
26800
26823
|
}
|
|
26801
26824
|
}
|
|
26802
26825
|
} catch (err) {
|
|
@@ -27089,7 +27112,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27089
27112
|
break;
|
|
27090
27113
|
}
|
|
27091
27114
|
_context.next = 4;
|
|
27092
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
27115
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-bcb6221a.js'); });
|
|
27093
27116
|
case 4:
|
|
27094
27117
|
_yield$import = _context.sent;
|
|
27095
27118
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -27152,6 +27175,39 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27152
27175
|
if (!this.partListParentArticle) return true;
|
|
27153
27176
|
return !!this.partListParentArticle.getArticleOptionStateFlat(opt) || this.partlistArticleVisibleInTree;
|
|
27154
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
|
+
}()
|
|
27155
27211
|
}, {
|
|
27156
27212
|
key: "getValidValues",
|
|
27157
27213
|
value: function getValidValues(myValues, mergeOptionToSameOption, setConfigDoesOverWrite) {
|
|
@@ -27200,8 +27256,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27200
27256
|
}
|
|
27201
27257
|
}
|
|
27202
27258
|
for (var _key2 in myValues) {
|
|
27203
|
-
var
|
|
27204
|
-
if (
|
|
27259
|
+
var _ops6 = this.getArticleOptionState(_key2);
|
|
27260
|
+
if (_ops6) {
|
|
27205
27261
|
validValues[_key2] = myValues[_key2];
|
|
27206
27262
|
} else if (_key2.endsWith('_val') && this.getArticleOptionState(_key2.replace(/_val/g, ''))) {
|
|
27207
27263
|
validValues[_key2] = myValues[_key2];
|
|
@@ -27210,10 +27266,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27210
27266
|
_step24;
|
|
27211
27267
|
try {
|
|
27212
27268
|
for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
|
|
27213
|
-
var
|
|
27214
|
-
if (
|
|
27215
|
-
var values = this.checkOptionSearchOPV(
|
|
27216
|
-
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;
|
|
27217
27273
|
}
|
|
27218
27274
|
}
|
|
27219
27275
|
} catch (err) {
|
|
@@ -27223,9 +27279,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27223
27279
|
}
|
|
27224
27280
|
}
|
|
27225
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
|
|
27226
|
-
if (
|
|
27227
|
-
var
|
|
27228
|
-
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)) {
|
|
27229
27285
|
validValues[_key2 + '.' + _key2] = myValues[_key2];
|
|
27230
27286
|
}
|
|
27231
27287
|
}
|
|
@@ -27736,15 +27792,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27736
27792
|
value: function validateAndSetNewConfigValues(newConfigValues) {
|
|
27737
27793
|
var freeTextValues = {};
|
|
27738
27794
|
for (var key in newConfigValues) {
|
|
27739
|
-
var
|
|
27795
|
+
var _ops8, _ops9, _newConfigValues$key;
|
|
27740
27796
|
var ops = this.getArticleOptionState(key);
|
|
27741
27797
|
var _this$parentOptionCod5 = this.parentOptionCodex(key),
|
|
27742
27798
|
optionCodex = _this$parentOptionCod5.optionCodex,
|
|
27743
27799
|
partenOptionCodex = _this$parentOptionCod5.partenOptionCodex;
|
|
27744
|
-
if ((
|
|
27800
|
+
if ((_ops8 = ops) !== null && _ops8 !== void 0 && _ops8.isMultiselect) {
|
|
27745
27801
|
ops = this.handleMultiselect(ops, newConfigValues, key);
|
|
27746
27802
|
}
|
|
27747
|
-
if ((
|
|
27803
|
+
if ((_ops9 = ops) !== null && _ops9 !== void 0 && _ops9.isFreeText) {
|
|
27748
27804
|
this.handleFreeText(ops, newConfigValues, key, freeTextValues);
|
|
27749
27805
|
}
|
|
27750
27806
|
var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key.split(';')[0];
|
|
@@ -27755,8 +27811,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27755
27811
|
var myFreeText = foundItem.opv.isFreeText ? newConfigValues[optionCodex + '_val'] : undefined;
|
|
27756
27812
|
this.engine.updateArtOPV(foundItem.opv, foundItem.opt.codex, this.getArticleOptionState(foundItem.opt.codex), myFreeText);
|
|
27757
27813
|
} else {
|
|
27758
|
-
var
|
|
27759
|
-
if (ops && !((
|
|
27814
|
+
var _ops10;
|
|
27815
|
+
if (ops && !((_ops10 = ops) !== null && _ops10 !== void 0 && _ops10.isFreeText)) {
|
|
27760
27816
|
// to initialize freetexts where the freetext is not the only selectable opv in the options
|
|
27761
27817
|
this.checkIfSelectableOpvIsFreetext(ops, opvCodex, newConfigValues);
|
|
27762
27818
|
}
|
|
@@ -28013,7 +28069,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28013
28069
|
while (1) switch (_context5.prev = _context5.next) {
|
|
28014
28070
|
case 0:
|
|
28015
28071
|
if (!(article.articleType == 'OPTION' || article.articleType == 'OPTIONTREE')) {
|
|
28016
|
-
_context5.next =
|
|
28072
|
+
_context5.next = 11;
|
|
28017
28073
|
break;
|
|
28018
28074
|
}
|
|
28019
28075
|
_context5.next = 3;
|
|
@@ -28022,13 +28078,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28022
28078
|
_context5.next = 5;
|
|
28023
28079
|
return this.updateCfgValues(article, defaultValues, variantValues);
|
|
28024
28080
|
case 5:
|
|
28025
|
-
if (!(
|
|
28081
|
+
if (!(from === 'initializingPartlist')) {
|
|
28026
28082
|
_context5.next = 8;
|
|
28027
28083
|
break;
|
|
28028
28084
|
}
|
|
28029
28085
|
_context5.next = 8;
|
|
28030
|
-
return
|
|
28086
|
+
return this.updateEmptyOption(article);
|
|
28031
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:
|
|
28032
28095
|
case "end":
|
|
28033
28096
|
return _context5.stop();
|
|
28034
28097
|
}
|
|
@@ -28054,7 +28117,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28054
28117
|
key: "updateArticlesOptionStates",
|
|
28055
28118
|
value: function () {
|
|
28056
28119
|
var _updateArticlesOptionStates = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee5(myValues, targetArticlesWithNewValues, targetArticlesToUpdate, articles, from) {
|
|
28057
|
-
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, actArticle,
|
|
28120
|
+
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, _actArticle, actArticle, newPLATL, _actArticle$checkDefa, variantValues, triggerUpdate, pla;
|
|
28058
28121
|
return _regeneratorRuntime__default["default"].wrap(function _callee5$(_context6) {
|
|
28059
28122
|
while (1) switch (_context6.prev = _context6.next) {
|
|
28060
28123
|
case 0:
|
|
@@ -28064,74 +28127,79 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28064
28127
|
i = 0;
|
|
28065
28128
|
case 4:
|
|
28066
28129
|
if (!(i < targetArticlesToUpdate.length)) {
|
|
28067
|
-
_context6.next =
|
|
28130
|
+
_context6.next = 40;
|
|
28068
28131
|
break;
|
|
28069
28132
|
}
|
|
28070
28133
|
valuesArray[i] = {};
|
|
28071
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
|
+
}
|
|
28072
28138
|
if (!(!actArticle || actArticle.deleted)) {
|
|
28073
|
-
_context6.next =
|
|
28139
|
+
_context6.next = 12;
|
|
28074
28140
|
break;
|
|
28075
28141
|
}
|
|
28076
28142
|
targetArticlesToUpdate.splice(i, 1);
|
|
28077
28143
|
i--;
|
|
28078
|
-
return _context6.abrupt("continue",
|
|
28079
|
-
case
|
|
28144
|
+
return _context6.abrupt("continue", 37);
|
|
28145
|
+
case 12:
|
|
28080
28146
|
if (targetArticlesWithNewValues.includes(targetArticlesToUpdate[i])) {
|
|
28081
28147
|
valuesArray[i] = actArticle.getValidValues(_objectSpread$d({}, myValues), actArticle.CatalogData.mergeOptionsToSameOption);
|
|
28082
28148
|
}
|
|
28083
28149
|
|
|
28084
28150
|
//only set config if valuesArray are not empty or the article is initializing
|
|
28151
|
+
newPLATL = void 0; // partlistarticle to load
|
|
28085
28152
|
if (!(Object.entries(valuesArray[i]).length > 0 || from !== null && from !== void 0 && from.startsWith('initializing'))) {
|
|
28086
|
-
_context6.next =
|
|
28153
|
+
_context6.next = 29;
|
|
28087
28154
|
break;
|
|
28088
28155
|
}
|
|
28089
|
-
_context6.next =
|
|
28156
|
+
_context6.next = 17;
|
|
28090
28157
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28091
|
-
case
|
|
28092
|
-
|
|
28158
|
+
case 17:
|
|
28159
|
+
newPLATL = _context6.sent;
|
|
28093
28160
|
_actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
|
|
28094
28161
|
valuesArray[i] = variantValues;
|
|
28095
|
-
_context6.next =
|
|
28162
|
+
_context6.next = 22;
|
|
28096
28163
|
return this.updateAccessoriesFromGlobalOption(valuesArray[i], actArticle);
|
|
28097
|
-
case
|
|
28164
|
+
case 22:
|
|
28098
28165
|
if (!triggerUpdate) {
|
|
28099
|
-
_context6.next =
|
|
28166
|
+
_context6.next = 26;
|
|
28100
28167
|
break;
|
|
28101
28168
|
}
|
|
28102
|
-
_context6.next =
|
|
28169
|
+
_context6.next = 25;
|
|
28103
28170
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28104
|
-
case
|
|
28105
|
-
|
|
28106
|
-
case
|
|
28107
|
-
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPartlistArticlesToLoad);
|
|
28171
|
+
case 25:
|
|
28172
|
+
newPLATL = _context6.sent;
|
|
28173
|
+
case 26:
|
|
28108
28174
|
newEDOExtraArticles = this.checkEDOArticles(articles);
|
|
28109
|
-
_context6.next =
|
|
28175
|
+
_context6.next = 32;
|
|
28110
28176
|
break;
|
|
28111
|
-
case
|
|
28112
|
-
_context6.t0 = partlistArticlesToLoad;
|
|
28177
|
+
case 29:
|
|
28113
28178
|
_context6.next = 31;
|
|
28114
28179
|
return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
|
|
28115
28180
|
case 31:
|
|
28116
|
-
|
|
28117
|
-
|
|
28118
|
-
|
|
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:
|
|
28119
28190
|
i++;
|
|
28120
28191
|
_context6.next = 4;
|
|
28121
28192
|
break;
|
|
28122
|
-
case 36:
|
|
28123
|
-
_context6.next = 38;
|
|
28124
|
-
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28125
|
-
case 38:
|
|
28126
|
-
_context6.next = 40;
|
|
28127
|
-
return this.triggerMoreUpdates(targetArticlesToUpdate, valuesArray, articles, from);
|
|
28128
28193
|
case 40:
|
|
28194
|
+
_context6.next = 42;
|
|
28195
|
+
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28196
|
+
case 42:
|
|
28129
28197
|
return _context6.abrupt("return", {
|
|
28130
28198
|
newEDOExtraArticles: newEDOExtraArticles,
|
|
28131
28199
|
targetArticlesToUpdate: targetArticlesToUpdate,
|
|
28132
28200
|
partlistArticlesToLoad: partlistArticlesToLoad
|
|
28133
28201
|
});
|
|
28134
|
-
case
|
|
28202
|
+
case 43:
|
|
28135
28203
|
case "end":
|
|
28136
28204
|
return _context6.stop();
|
|
28137
28205
|
}
|
|
@@ -28143,38 +28211,38 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28143
28211
|
return updateArticlesOptionStates;
|
|
28144
28212
|
}()
|
|
28145
28213
|
}, {
|
|
28146
|
-
key: "
|
|
28214
|
+
key: "triggerUpdateOnVisiblePartilstArticles",
|
|
28147
28215
|
value: function () {
|
|
28148
|
-
var
|
|
28149
|
-
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;
|
|
28150
28219
|
return _regeneratorRuntime__default["default"].wrap(function _callee6$(_context7) {
|
|
28151
28220
|
while (1) switch (_context7.prev = _context7.next) {
|
|
28152
28221
|
case 0:
|
|
28153
|
-
if (!(
|
|
28154
|
-
_context7.next =
|
|
28222
|
+
if (!((_articles$targetArtic = articles[targetArticlesToUpdate[0]]) !== null && _articles$targetArtic !== void 0 && _articles$targetArtic.hasPartlistArticleVisibleInTree)) {
|
|
28223
|
+
_context7.next = 13;
|
|
28155
28224
|
break;
|
|
28156
28225
|
}
|
|
28157
|
-
|
|
28226
|
+
_context7.t0 = _regeneratorRuntime__default["default"].keys(articles);
|
|
28158
28227
|
case 2:
|
|
28159
|
-
|
|
28160
|
-
case 3:
|
|
28161
|
-
if (!(i < targetArticlesToUpdate.length)) {
|
|
28228
|
+
if ((_context7.t1 = _context7.t0()).done) {
|
|
28162
28229
|
_context7.next = 13;
|
|
28163
28230
|
break;
|
|
28164
28231
|
}
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
|
|
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;
|
|
28168
28237
|
break;
|
|
28169
28238
|
}
|
|
28170
|
-
_context7.
|
|
28171
|
-
return this.updateCfgValues(article, valuesArray[i], {});
|
|
28239
|
+
return _context7.abrupt("continue", 2);
|
|
28172
28240
|
case 8:
|
|
28173
|
-
|
|
28174
|
-
|
|
28175
|
-
|
|
28176
|
-
|
|
28177
|
-
_context7.next =
|
|
28241
|
+
actArticle = articles[key];
|
|
28242
|
+
_context7.next = 11;
|
|
28243
|
+
return this.updateCfgValues(actArticle, {}, {});
|
|
28244
|
+
case 11:
|
|
28245
|
+
_context7.next = 2;
|
|
28178
28246
|
break;
|
|
28179
28247
|
case 13:
|
|
28180
28248
|
case "end":
|
|
@@ -28182,55 +28250,43 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28182
28250
|
}
|
|
28183
28251
|
}, _callee6, this);
|
|
28184
28252
|
}));
|
|
28185
|
-
function
|
|
28186
|
-
return
|
|
28253
|
+
function triggerUpdateOnVisiblePartilstArticles(_x19, _x20) {
|
|
28254
|
+
return _triggerUpdateOnVisiblePartilstArticles.apply(this, arguments);
|
|
28187
28255
|
}
|
|
28188
|
-
return
|
|
28256
|
+
return triggerUpdateOnVisiblePartilstArticles;
|
|
28189
28257
|
}()
|
|
28190
28258
|
}, {
|
|
28191
|
-
key: "
|
|
28259
|
+
key: "updateEmptyOption",
|
|
28192
28260
|
value: function () {
|
|
28193
|
-
var
|
|
28194
|
-
var
|
|
28195
|
-
var key, configuredArticle, toIgnore, actArticle;
|
|
28261
|
+
var _updateEmptyOption = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee7(article) {
|
|
28262
|
+
var emyptsOptionsToSet;
|
|
28196
28263
|
return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context8) {
|
|
28197
28264
|
while (1) switch (_context8.prev = _context8.next) {
|
|
28198
28265
|
case 0:
|
|
28199
|
-
|
|
28200
|
-
|
|
28201
|
-
break;
|
|
28202
|
-
}
|
|
28203
|
-
_context8.t0 = _regeneratorRuntime__default["default"].keys(articles);
|
|
28266
|
+
_context8.next = 2;
|
|
28267
|
+
return article.afterInit();
|
|
28204
28268
|
case 2:
|
|
28205
|
-
|
|
28206
|
-
|
|
28207
|
-
|
|
28208
|
-
}
|
|
28209
|
-
key = _context8.t1.value;
|
|
28210
|
-
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
28211
|
-
toIgnore = configuredArticle.pushParentId();
|
|
28212
|
-
if (![configuredArticle.basketId].concat(_toConsumableArray__default["default"](toIgnore)).includes(key)) {
|
|
28213
|
-
_context8.next = 8;
|
|
28269
|
+
emyptsOptionsToSet = _context8.sent;
|
|
28270
|
+
if (!Object.keys(emyptsOptionsToSet).length) {
|
|
28271
|
+
_context8.next = 7;
|
|
28214
28272
|
break;
|
|
28215
28273
|
}
|
|
28216
|
-
|
|
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);
|
|
28217
28280
|
case 8:
|
|
28218
|
-
actArticle = articles[key];
|
|
28219
|
-
_context8.next = 11;
|
|
28220
|
-
return this.updateCfgValues(actArticle, {}, {});
|
|
28221
|
-
case 11:
|
|
28222
|
-
_context8.next = 2;
|
|
28223
|
-
break;
|
|
28224
|
-
case 13:
|
|
28225
28281
|
case "end":
|
|
28226
28282
|
return _context8.stop();
|
|
28227
28283
|
}
|
|
28228
28284
|
}, _callee7, this);
|
|
28229
28285
|
}));
|
|
28230
|
-
function
|
|
28231
|
-
return
|
|
28286
|
+
function updateEmptyOption(_x21) {
|
|
28287
|
+
return _updateEmptyOption.apply(this, arguments);
|
|
28232
28288
|
}
|
|
28233
|
-
return
|
|
28289
|
+
return updateEmptyOption;
|
|
28234
28290
|
}()
|
|
28235
28291
|
}, {
|
|
28236
28292
|
key: "updateAccessoriesFromGlobalOption",
|
|
@@ -28259,7 +28315,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28259
28315
|
}
|
|
28260
28316
|
}, _callee8, this);
|
|
28261
28317
|
}));
|
|
28262
|
-
function updateAccessoriesFromGlobalOption(
|
|
28318
|
+
function updateAccessoriesFromGlobalOption(_x22, _x23) {
|
|
28263
28319
|
return _updateAccessoriesFromGlobalOption.apply(this, arguments);
|
|
28264
28320
|
}
|
|
28265
28321
|
return updateAccessoriesFromGlobalOption;
|
|
@@ -28502,7 +28558,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28502
28558
|
}
|
|
28503
28559
|
}, _callee9, null, [[12, 27, 30, 33]]);
|
|
28504
28560
|
}));
|
|
28505
|
-
function initCfgValues(
|
|
28561
|
+
function initCfgValues(_x24, _x25, _x26) {
|
|
28506
28562
|
return _initCfgValues.apply(this, arguments);
|
|
28507
28563
|
}
|
|
28508
28564
|
return initCfgValues;
|
|
@@ -28522,7 +28578,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28522
28578
|
}
|
|
28523
28579
|
}, _callee10, this);
|
|
28524
28580
|
}));
|
|
28525
|
-
function setValidVariantValues(
|
|
28581
|
+
function setValidVariantValues(_x27) {
|
|
28526
28582
|
return _setValidVariantValues.apply(this, arguments);
|
|
28527
28583
|
}
|
|
28528
28584
|
return setValidVariantValues;
|
|
@@ -28608,7 +28664,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28608
28664
|
}
|
|
28609
28665
|
}, _callee11, this);
|
|
28610
28666
|
}));
|
|
28611
|
-
function updateCfgValues(
|
|
28667
|
+
function updateCfgValues(_x28, _x29, _x30, _x31, _x32, _x33) {
|
|
28612
28668
|
return _updateCfgValues.apply(this, arguments);
|
|
28613
28669
|
}
|
|
28614
28670
|
return updateCfgValues;
|
|
@@ -28665,7 +28721,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28665
28721
|
}
|
|
28666
28722
|
}, _callee12, this);
|
|
28667
28723
|
}));
|
|
28668
|
-
function updateLastElement(
|
|
28724
|
+
function updateLastElement(_x34) {
|
|
28669
28725
|
return _updateLastElement.apply(this, arguments);
|
|
28670
28726
|
}
|
|
28671
28727
|
return updateLastElement;
|
|
@@ -28707,7 +28763,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28707
28763
|
}
|
|
28708
28764
|
}, _callee13);
|
|
28709
28765
|
}));
|
|
28710
|
-
function updateOption(
|
|
28766
|
+
function updateOption(_x35, _x36, _x37, _x38) {
|
|
28711
28767
|
return _updateOption.apply(this, arguments);
|
|
28712
28768
|
}
|
|
28713
28769
|
return updateOption;
|
|
@@ -28749,7 +28805,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28749
28805
|
}
|
|
28750
28806
|
}, _callee14, this);
|
|
28751
28807
|
}));
|
|
28752
|
-
function evalAndLoadPartlistArticles(
|
|
28808
|
+
function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
|
|
28753
28809
|
return _evalAndLoadPartlistArticles.apply(this, arguments);
|
|
28754
28810
|
}
|
|
28755
28811
|
return evalAndLoadPartlistArticles;
|
|
@@ -28788,7 +28844,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28788
28844
|
}
|
|
28789
28845
|
}, _callee15, this);
|
|
28790
28846
|
}));
|
|
28791
|
-
function loadPartlistArticles(
|
|
28847
|
+
function loadPartlistArticles(_x42, _x43, _x44) {
|
|
28792
28848
|
return _loadPartlistArticles.apply(this, arguments);
|
|
28793
28849
|
}
|
|
28794
28850
|
return loadPartlistArticles;
|
|
@@ -28798,7 +28854,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28798
28854
|
key: "loadPartlistArticle",
|
|
28799
28855
|
value: function () {
|
|
28800
28856
|
var _loadPartlistArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(doLoadItem, article, newConfigValues) {
|
|
28801
|
-
var nArticle;
|
|
28857
|
+
var nArticle, _doLoadItem$VariantVa;
|
|
28802
28858
|
return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context18) {
|
|
28803
28859
|
while (1) switch (_context18.prev = _context18.next) {
|
|
28804
28860
|
case 0:
|
|
@@ -28812,7 +28868,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28812
28868
|
}
|
|
28813
28869
|
doLoadItem.BasketID = nArticle.basketId;
|
|
28814
28870
|
_context18.next = 7;
|
|
28815
|
-
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);
|
|
28816
28872
|
case 7:
|
|
28817
28873
|
article.addPartlistArticle(nArticle);
|
|
28818
28874
|
case 8:
|
|
@@ -28821,7 +28877,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28821
28877
|
}
|
|
28822
28878
|
}, _callee16, this);
|
|
28823
28879
|
}));
|
|
28824
|
-
function loadPartlistArticle(
|
|
28880
|
+
function loadPartlistArticle(_x45, _x46, _x47) {
|
|
28825
28881
|
return _loadPartlistArticle.apply(this, arguments);
|
|
28826
28882
|
}
|
|
28827
28883
|
return loadPartlistArticle;
|
|
@@ -28851,6 +28907,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28851
28907
|
supplierOrderCodex: doLoadItem.SupplierOrderCodex,
|
|
28852
28908
|
initDecisions: doLoadItem.initDecisions,
|
|
28853
28909
|
partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
|
|
28910
|
+
partlistArticleStandalone: doLoadItem.ConfigurationMode,
|
|
28854
28911
|
optionsForPrint: doLoadItem.optionsForPrint,
|
|
28855
28912
|
optionImgForPrint: doLoadItem.optionImgForPrint,
|
|
28856
28913
|
catalogCodex: doLoadItem.CatalogCodex
|
|
@@ -28982,7 +29039,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28982
29039
|
}
|
|
28983
29040
|
}, _callee17, this);
|
|
28984
29041
|
}));
|
|
28985
|
-
function evalOpvsOnOpvsConstructionRules(
|
|
29042
|
+
function evalOpvsOnOpvsConstructionRules(_x48) {
|
|
28986
29043
|
return _evalOpvsOnOpvsConstructionRules.apply(this, arguments);
|
|
28987
29044
|
}
|
|
28988
29045
|
return evalOpvsOnOpvsConstructionRules;
|
|
@@ -29185,7 +29242,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29185
29242
|
}
|
|
29186
29243
|
}, _callee18);
|
|
29187
29244
|
}));
|
|
29188
|
-
function triggerShelfplannerVisibility(
|
|
29245
|
+
function triggerShelfplannerVisibility(_x49, _x50) {
|
|
29189
29246
|
return _triggerShelfplannerVisibility.apply(this, arguments);
|
|
29190
29247
|
}
|
|
29191
29248
|
return triggerShelfplannerVisibility;
|
|
@@ -29262,7 +29319,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29262
29319
|
IsPartlistArticle: article.isPartListArticle,
|
|
29263
29320
|
IsPlannerElement: article.hasCatalogPlannerArticle,
|
|
29264
29321
|
HasPartlistArticle: article.hasPartlistArticle,
|
|
29265
|
-
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint,
|
|
29322
|
+
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint && !article.partlistArticleStandalone,
|
|
29266
29323
|
SendToSAP: article.sendToSap,
|
|
29267
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,
|
|
29268
29325
|
MetaData: !hasFavorites ? article.MetaData : undefined,
|
|
@@ -29509,7 +29566,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29509
29566
|
}
|
|
29510
29567
|
}, _callee19, this);
|
|
29511
29568
|
}));
|
|
29512
|
-
function correctPartlistArticlesByGlobalRules(
|
|
29569
|
+
function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
|
|
29513
29570
|
return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
|
|
29514
29571
|
}
|
|
29515
29572
|
return correctPartlistArticlesByGlobalRules;
|
|
@@ -30427,6 +30484,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
30427
30484
|
_defineProperty__default["default"](this, "matchingOrigProduct", void 0);
|
|
30428
30485
|
_defineProperty__default["default"](this, "_supplierColors", void 0);
|
|
30429
30486
|
_defineProperty__default["default"](this, "_logDecisions", false);
|
|
30487
|
+
_defineProperty__default["default"](this, "_logTotalStateForVariants", false);
|
|
30430
30488
|
/**Favorits state */
|
|
30431
30489
|
_defineProperty__default["default"](this, "_handlelingCurrentFavorites", false);
|
|
30432
30490
|
_defineProperty__default["default"](this, "_favorites", {
|
|
@@ -31700,7 +31758,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31700
31758
|
break;
|
|
31701
31759
|
}
|
|
31702
31760
|
_context5.next = 3;
|
|
31703
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
31761
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-60b67658.js'); });
|
|
31704
31762
|
case 3:
|
|
31705
31763
|
_yield$import = _context5.sent;
|
|
31706
31764
|
DoorPlanner = _yield$import["default"];
|
|
@@ -31867,6 +31925,14 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31867
31925
|
set: function set(val) {
|
|
31868
31926
|
this._logDecisions = val;
|
|
31869
31927
|
}
|
|
31928
|
+
}, {
|
|
31929
|
+
key: "logTotalStateForVariants",
|
|
31930
|
+
get: function get() {
|
|
31931
|
+
return this._logTotalStateForVariants;
|
|
31932
|
+
},
|
|
31933
|
+
set: function set(val) {
|
|
31934
|
+
this._logTotalStateForVariants = val;
|
|
31935
|
+
}
|
|
31870
31936
|
}, {
|
|
31871
31937
|
key: "showAccessioreOnLastTab",
|
|
31872
31938
|
get: function get() {
|
|
@@ -31884,6 +31950,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31884
31950
|
var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
|
|
31885
31951
|
clonedSet.setData = _objectSpread$c({}, this.setData);
|
|
31886
31952
|
clonedSet.configSingle = this.configSingle;
|
|
31953
|
+
clonedSet.logTotalStateForVariants = this.logTotalStateForVariants;
|
|
31887
31954
|
var articles = this.getDivaArticles();
|
|
31888
31955
|
//if boxplanner needs to be working, the planner needs to be cloned too
|
|
31889
31956
|
//this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
|
|
@@ -33665,7 +33732,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
33665
33732
|
}
|
|
33666
33733
|
configStepKey = configStepKey + '_' + 'acc' + (set.CatalogData.forceConfigAllAccessoires ? article.articleCodex : basketId);
|
|
33667
33734
|
}
|
|
33668
|
-
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true));
|
|
33735
|
+
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true, true));
|
|
33669
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);
|
|
33670
33737
|
var isAccessoire = !!article.relatedToBasketId ? article.articleCodex : false;
|
|
33671
33738
|
if (!configTree.getTabGroupByCodex(tabGroupCodex)) {
|
|
@@ -36180,7 +36247,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36180
36247
|
var _article$partListPare, _article$partListPare2;
|
|
36181
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 : '');
|
|
36182
36249
|
});
|
|
36183
|
-
if (group) {
|
|
36250
|
+
if (group && !article.partlistArticleStandalone) {
|
|
36184
36251
|
group.push(article.basketId);
|
|
36185
36252
|
} else {
|
|
36186
36253
|
groupedArticles.push([article.basketId]);
|
|
@@ -36297,16 +36364,26 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36297
36364
|
case 2:
|
|
36298
36365
|
opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
|
|
36299
36366
|
previewType = set.api.pricePreview;
|
|
36300
|
-
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'))) {
|
|
36301
36368
|
_context26.next = 6;
|
|
36302
36369
|
break;
|
|
36303
36370
|
}
|
|
36304
36371
|
return _context26.abrupt("return", configItems);
|
|
36305
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:
|
|
36306
36383
|
targetArticles = set.configTree.getTargetArticles(configStepKey);
|
|
36307
|
-
_context26.next =
|
|
36384
|
+
_context26.next = 12;
|
|
36308
36385
|
return this.calcVariants(set, configItems, targetArticles, opt.codex);
|
|
36309
|
-
case
|
|
36386
|
+
case 12:
|
|
36310
36387
|
variants = _context26.sent;
|
|
36311
36388
|
if (previewType) {
|
|
36312
36389
|
configItems.map(function (c, index) {
|
|
@@ -36317,7 +36394,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36317
36394
|
});
|
|
36318
36395
|
}
|
|
36319
36396
|
return _context26.abrupt("return", configItems);
|
|
36320
|
-
case
|
|
36397
|
+
case 15:
|
|
36321
36398
|
case "end":
|
|
36322
36399
|
return _context26.stop();
|
|
36323
36400
|
}
|
|
@@ -36338,7 +36415,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36338
36415
|
case 0:
|
|
36339
36416
|
variantInfo = [];
|
|
36340
36417
|
set = realSet.cloneSet();
|
|
36341
|
-
articles = set.getDivaArticles();
|
|
36418
|
+
articles = set.getDivaArticles(true);
|
|
36342
36419
|
origPrice = set.getSetPrice();
|
|
36343
36420
|
articleConfigs = {};
|
|
36344
36421
|
for (i = 0; i < targetArticles.length; i++) {
|
|
@@ -36480,7 +36557,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36480
36557
|
calcTime: calcTime,
|
|
36481
36558
|
firstPrice: firstPrice,
|
|
36482
36559
|
variantValues: hashVariantValues,
|
|
36483
|
-
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
|
|
36484
36562
|
};
|
|
36485
36563
|
set.CatalogData.setVariantsPriceByHash(hash, priceObj);
|
|
36486
36564
|
return _context28.abrupt("return", priceObj);
|
|
@@ -38398,7 +38476,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38398
38476
|
_context11.next = 19;
|
|
38399
38477
|
break;
|
|
38400
38478
|
case 17:
|
|
38401
|
-
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')) {
|
|
38402
38480
|
_context11.next = 19;
|
|
38403
38481
|
break;
|
|
38404
38482
|
}
|
|
@@ -38555,7 +38633,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38555
38633
|
break;
|
|
38556
38634
|
case 3:
|
|
38557
38635
|
_context12.next = 5;
|
|
38558
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
38636
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-9eecc6ff.js'); });
|
|
38559
38637
|
case 5:
|
|
38560
38638
|
_yield$import = _context12.sent;
|
|
38561
38639
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -38563,7 +38641,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38563
38641
|
return _context12.abrupt("break", 27);
|
|
38564
38642
|
case 9:
|
|
38565
38643
|
_context12.next = 11;
|
|
38566
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
38644
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-a0c00744.js'); });
|
|
38567
38645
|
case 11:
|
|
38568
38646
|
_yield$import2 = _context12.sent;
|
|
38569
38647
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -38571,7 +38649,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38571
38649
|
return _context12.abrupt("break", 27);
|
|
38572
38650
|
case 15:
|
|
38573
38651
|
_context12.next = 17;
|
|
38574
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
38652
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-28ffa0f9.js'); });
|
|
38575
38653
|
case 17:
|
|
38576
38654
|
_yield$import3 = _context12.sent;
|
|
38577
38655
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -38579,7 +38657,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38579
38657
|
return _context12.abrupt("break", 27);
|
|
38580
38658
|
case 21:
|
|
38581
38659
|
_context12.next = 23;
|
|
38582
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
38660
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-eeca9426.js'); });
|
|
38583
38661
|
case 23:
|
|
38584
38662
|
_yield$import4 = _context12.sent;
|
|
38585
38663
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -40007,7 +40085,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
40007
40085
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40008
40086
|
case 0:
|
|
40009
40087
|
_context3.next = 2;
|
|
40010
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
40088
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-76438bbe.js'); });
|
|
40011
40089
|
case 2:
|
|
40012
40090
|
_yield$import = _context3.sent;
|
|
40013
40091
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41564,7 +41642,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41564
41642
|
break;
|
|
41565
41643
|
case 8:
|
|
41566
41644
|
_context4.next = 10;
|
|
41567
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
41645
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-b6b673a2.js'); });
|
|
41568
41646
|
case 10:
|
|
41569
41647
|
_yield$import = _context4.sent;
|
|
41570
41648
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -41575,7 +41653,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41575
41653
|
return _context4.abrupt("break", 21);
|
|
41576
41654
|
case 15:
|
|
41577
41655
|
_context4.next = 17;
|
|
41578
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
41656
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-be0a097d.js'); });
|
|
41579
41657
|
case 17:
|
|
41580
41658
|
_yield$import2 = _context4.sent;
|
|
41581
41659
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -43622,9 +43700,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
43622
43700
|
}
|
|
43623
43701
|
}, {
|
|
43624
43702
|
key: "getDivaArticles",
|
|
43625
|
-
value: function getDivaArticles() {
|
|
43703
|
+
value: function getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso) {
|
|
43626
43704
|
var _this$actSet3;
|
|
43627
|
-
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);
|
|
43628
43706
|
}
|
|
43629
43707
|
|
|
43630
43708
|
//for debugging
|