@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
|
@@ -19812,8 +19812,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19812
19812
|
hidePricePreviewOnlyOnOptions: [],
|
|
19813
19813
|
forceConfigSingle: false,
|
|
19814
19814
|
// das einzeln konfigurieren wird in diesem Katalog gezwungen
|
|
19815
|
-
doubleClickOnConfig: false,
|
|
19816
|
-
// Felher bei Ada IDM wird somit ausgebessert
|
|
19817
19815
|
doUseRuleDescForPartListArticles: false,
|
|
19818
19816
|
initOptionTreeTwice: false,
|
|
19819
19817
|
// Felher bei Cotta IDM wird somit ausgebes
|
|
@@ -20453,11 +20451,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20453
20451
|
var _this$optionValues2;
|
|
20454
20452
|
return Object.values((_this$optionValues2 = this.optionValues) !== null && _this$optionValues2 !== void 0 ? _this$optionValues2 : {});
|
|
20455
20453
|
}
|
|
20456
|
-
}, {
|
|
20457
|
-
key: "doubleClickOnConfig",
|
|
20458
|
-
get: function get() {
|
|
20459
|
-
return this.catalogProps.doubleClickOnConfig;
|
|
20460
|
-
}
|
|
20461
20454
|
}, {
|
|
20462
20455
|
key: "initOptionTreeTwice",
|
|
20463
20456
|
get: function get() {
|
|
@@ -20970,9 +20963,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20970
20963
|
return 'OPT' + t;
|
|
20971
20964
|
});
|
|
20972
20965
|
break;
|
|
20973
|
-
case 'DOUBLE_CLICK_ON_CONFIG':
|
|
20974
|
-
_this5.catalogProps.doubleClickOnConfig = '1' == item.Value;
|
|
20975
|
-
break;
|
|
20976
20966
|
case 'INIT_OPTIONTREE_TWICE':
|
|
20977
20967
|
_this5.catalogProps.initOptionTreeTwice = '1' == item.Value;
|
|
20978
20968
|
break;
|
|
@@ -22475,8 +22465,10 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22475
22465
|
var _this$article$set$Vie;
|
|
22476
22466
|
//die Klasse ArticleOptionState wird einfach neu initialisiert
|
|
22477
22467
|
var oldOPS = this.article.getArticleOptionState(optionCodex);
|
|
22468
|
+
if (!oldOPS) return;
|
|
22478
22469
|
if (keepEnalbed) {
|
|
22479
22470
|
oldOPS.val = undefined;
|
|
22471
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
22480
22472
|
return;
|
|
22481
22473
|
}
|
|
22482
22474
|
var option = oldOPS.option;
|
|
@@ -22673,7 +22665,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22673
22665
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
22674
22666
|
var ops = _step3.value;
|
|
22675
22667
|
//when an option has no decisions the first visible optionValue has to be selected per default
|
|
22676
|
-
if (ops.val === undefined && ops.visibleCount) {
|
|
22668
|
+
if (ops.val === undefined && ops.visibleCount && !this.article.CatalogData.useDiomexConfigLogic) {
|
|
22677
22669
|
this.assignOptionValue(ops.optionCodex, Object.keys(ops.visibleOptionValues)[0]);
|
|
22678
22670
|
}
|
|
22679
22671
|
if (ops.visibleCount && ops.IsIDMSpecialFeature) {
|
|
@@ -23211,6 +23203,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23211
23203
|
value: function evalPartlist(newConfigValues) {
|
|
23212
23204
|
var partlistArticlesToLoad = [];
|
|
23213
23205
|
var myPartlistArticles = this.article.groupedPartlists;
|
|
23206
|
+
var partlistGroup = [];
|
|
23214
23207
|
for (var iKey in myPartlistArticles) {
|
|
23215
23208
|
var groupDecisionVal;
|
|
23216
23209
|
var key = Number(iKey);
|
|
@@ -23221,6 +23214,9 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23221
23214
|
for (var b = 0; b < myPartlistArticles[key].length; b++) {
|
|
23222
23215
|
var startTime = Date.now();
|
|
23223
23216
|
var myPartListPos = myPartlistArticles[key][b];
|
|
23217
|
+
if (myPartListPos.PartlistGroup && partlistGroup.includes(myPartListPos.PartlistGroup)) {
|
|
23218
|
+
continue;
|
|
23219
|
+
}
|
|
23224
23220
|
if (myPartListPos.ItemRefArticles) {
|
|
23225
23221
|
var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
|
|
23226
23222
|
if (decisions) {
|
|
@@ -23233,16 +23229,16 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23233
23229
|
if ((_myDecisionVal = myDecisionVal) !== null && _myDecisionVal !== void 0 && _myDecisionVal.isValidDOC || relationTypeNone) {
|
|
23234
23230
|
// wenn die Decision gültig, gelten die ItemRefArticles
|
|
23235
23231
|
partlistAdded = true;
|
|
23236
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23232
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
|
|
23237
23233
|
break;
|
|
23238
23234
|
}
|
|
23239
23235
|
}
|
|
23240
23236
|
if (decisions.length === 0) {
|
|
23241
23237
|
LOG$f.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
|
|
23242
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23238
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23243
23239
|
} else if (!partlistAdded && this.article.CatalogData.useDecisionPosCountValue && myPartListPos.PosCountValue > 0) {
|
|
23244
23240
|
LOG$f.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
|
|
23245
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
23241
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
23246
23242
|
}
|
|
23247
23243
|
}
|
|
23248
23244
|
}
|
|
@@ -23254,7 +23250,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23254
23250
|
}
|
|
23255
23251
|
}, {
|
|
23256
23252
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
23257
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23253
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
|
|
23258
23254
|
var _myPartListPos$Option,
|
|
23259
23255
|
_this2 = this;
|
|
23260
23256
|
var allDecisions = this.article.catalogArticle.articleDecisions;
|
|
@@ -23311,7 +23307,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23311
23307
|
_loop3(i);
|
|
23312
23308
|
}
|
|
23313
23309
|
if (quanitity >= 1) {
|
|
23314
|
-
var _myDecisionVal$Rule
|
|
23310
|
+
var _myDecisionVal$Rule;
|
|
23315
23311
|
partlistArticlesToLoad.push({
|
|
23316
23312
|
CatalogCodex: catalogCodex !== null && catalogCodex !== void 0 ? catalogCodex : _this2.article.catalogCodex,
|
|
23317
23313
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -23326,11 +23322,13 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
23326
23322
|
RuleDesc: myRuleDesc,
|
|
23327
23323
|
RuleDesc_locales: myRuleDesc_locales,
|
|
23328
23324
|
PosInvisibility: myPartListPos.PosInvisibility,
|
|
23329
|
-
|
|
23325
|
+
ConfigurationMode: myPartListPos.ConfigurationMode,
|
|
23326
|
+
VariantValues: _this2.article.variantValuesForPla(myPartListPos.ConfigurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
23330
23327
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData,
|
|
23331
23328
|
optionImgForPrint: optionImgForPrint,
|
|
23332
23329
|
optionsForPrint: optionsForPrint
|
|
23333
23330
|
});
|
|
23331
|
+
if (myPartListPos.PartlistGroup) partlistGroup.push(myPartListPos.PartlistGroup);
|
|
23334
23332
|
}
|
|
23335
23333
|
};
|
|
23336
23334
|
for (var d = 0; d < myPartListPos.ItemRefArticles.length; d++) {
|
|
@@ -24232,6 +24230,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24232
24230
|
var oldOPS = this.article.getArticleOptionState(featureNo);
|
|
24233
24231
|
if (keepEnalbed) {
|
|
24234
24232
|
oldOPS.val = undefined;
|
|
24233
|
+
oldOPS.isDoShow = oldOPS.visibleCount > 1;
|
|
24235
24234
|
return;
|
|
24236
24235
|
}
|
|
24237
24236
|
var option = oldOPS.option;
|
|
@@ -24349,10 +24348,12 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24349
24348
|
var partlistArticlesToLoad = [];
|
|
24350
24349
|
var myPartlistArticles = (_this$article$catalog4 = this.article.catalogArticle.idmPartlist) === null || _this$article$catalog4 === void 0 ? void 0 : _this$article$catalog4.partlistPos;
|
|
24351
24350
|
if (!(myPartlistArticles !== null && myPartlistArticles !== void 0 && myPartlistArticles.length)) return [];
|
|
24351
|
+
var partlistGroup = [];
|
|
24352
24352
|
for (var i = 0; i < myPartlistArticles.length; i++) {
|
|
24353
24353
|
var _myPartListPos$decisi;
|
|
24354
24354
|
var myPartListPos = myPartlistArticles[i];
|
|
24355
24355
|
if (!myPartListPos.itemRefTypeNo) continue;
|
|
24356
|
+
if (myPartListPos.partlistGroup && partlistGroup.includes(myPartListPos.partlistGroup)) continue;
|
|
24356
24357
|
var decisions = this.article.CatalogData.getDecisionsByNo([].concat(_toConsumableArray((_myPartListPos$decisi = myPartListPos.decisions) !== null && _myPartListPos$decisi !== void 0 ? _myPartListPos$decisi : []), _toConsumableArray(myPartListPos.decisionPosCount ? [myPartListPos.decisionPosCount] : [])));
|
|
24357
24358
|
var partlistAdded = false;
|
|
24358
24359
|
for (var c = 0; c < decisions.length; c++) {
|
|
@@ -24361,22 +24362,22 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24361
24362
|
var isValidDOC = relationTypeNone ? undefined : this.checkDecisionNumber(decision.decisionNo);
|
|
24362
24363
|
if (!isValidDOC && !relationTypeNone) continue;
|
|
24363
24364
|
partlistAdded = true;
|
|
24364
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24365
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
|
|
24365
24366
|
break;
|
|
24366
24367
|
}
|
|
24367
24368
|
if (decisions.length === 0 && !partlistAdded) {
|
|
24368
24369
|
LOG$e.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.itemRefTypeNo);
|
|
24369
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24370
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24370
24371
|
} else if (!partlistAdded && myPartListPos.posCountValue > 0) {
|
|
24371
24372
|
LOG$e.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.itemRefTypeNo);
|
|
24372
|
-
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
|
|
24373
|
+
partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
|
|
24373
24374
|
}
|
|
24374
24375
|
}
|
|
24375
24376
|
return partlistArticlesToLoad;
|
|
24376
24377
|
}
|
|
24377
24378
|
}, {
|
|
24378
24379
|
key: "addPartilstToPartlistArticlesToLoad",
|
|
24379
|
-
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, rule, decisionNo) {
|
|
24380
|
+
value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, rule, decisionNo) {
|
|
24380
24381
|
var decisions = this.article.CatalogData.getDecisionsByNo(myPartListPos.decisions);
|
|
24381
24382
|
|
|
24382
24383
|
//const optionsForPrint: string[] = (myPartListPos.OptionsForPrint as string)?.split(';').map((o: string) => 'OPT' + o);
|
|
@@ -24427,7 +24428,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24427
24428
|
_loop2(i);
|
|
24428
24429
|
}
|
|
24429
24430
|
if (quanitity >= 1) {
|
|
24430
|
-
var _catalogCodex$toStrin
|
|
24431
|
+
var _catalogCodex$toStrin;
|
|
24431
24432
|
partlistArticlesToLoad.push({
|
|
24432
24433
|
CatalogCodex: (_catalogCodex$toStrin = catalogCodex.toString()) !== null && _catalogCodex$toStrin !== void 0 ? _catalogCodex$toStrin : this.article.catalogCodex,
|
|
24433
24434
|
BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
|
|
@@ -24444,11 +24445,13 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24444
24445
|
RuleDesc: myRuleDesc,
|
|
24445
24446
|
RuleDesc_locales: myRuleDesc_locales,
|
|
24446
24447
|
PosInvisibility: myPartListPos.posInvisibility,
|
|
24447
|
-
|
|
24448
|
+
ConfigurationMode: myPartListPos.configurationMode,
|
|
24449
|
+
VariantValues: this.article.variantValuesForPla(myPartListPos.configurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
|
|
24448
24450
|
VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData
|
|
24449
24451
|
//optionImgForPrint,
|
|
24450
24452
|
//optionsForPrint,
|
|
24451
24453
|
});
|
|
24454
|
+
if (myPartListPos.partlistGroup) partlistGroup.push(myPartListPos.partlistGroup);
|
|
24452
24455
|
}
|
|
24453
24456
|
return partlistArticlesToLoad;
|
|
24454
24457
|
}
|
|
@@ -24670,6 +24673,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24670
24673
|
partlistDecisionNo: initParams.partlistDecisionNo,
|
|
24671
24674
|
partListParentArticle: initParams.parentArticle,
|
|
24672
24675
|
partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
|
|
24676
|
+
partlistArticleStandalone: initParams.partlistArticleStandalone,
|
|
24673
24677
|
hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
|
|
24674
24678
|
noPrice: (_initParams$noPrice = initParams.noPrice) !== null && _initParams$noPrice !== void 0 ? _initParams$noPrice : false,
|
|
24675
24679
|
retailArticleNr: initParams.RetailArticleNr ? initParams.RetailArticleNr : initParams.retailArticleNr,
|
|
@@ -24810,6 +24814,11 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24810
24814
|
get: function get() {
|
|
24811
24815
|
return this.article.partlistArticleVisibleInTree && this.hasOptionsThatParentDoesNotHave;
|
|
24812
24816
|
}
|
|
24817
|
+
}, {
|
|
24818
|
+
key: "partlistArticleStandalone",
|
|
24819
|
+
get: function get() {
|
|
24820
|
+
return this.article.partlistArticleStandalone;
|
|
24821
|
+
}
|
|
24813
24822
|
}, {
|
|
24814
24823
|
key: "partlistArticlesReqursive",
|
|
24815
24824
|
get: function get() {
|
|
@@ -24824,6 +24833,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24824
24833
|
get: function get() {
|
|
24825
24834
|
var _this$partListParentA;
|
|
24826
24835
|
if (!this.partListParentArticle) return false;
|
|
24836
|
+
if (this.partlistArticleStandalone) return true;
|
|
24827
24837
|
//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
|
|
24828
24838
|
// first usecase https://app.asana.com/0/1204193128085691/1204389027061737
|
|
24829
24839
|
var myOptions = this.articleOptionStatesKeys;
|
|
@@ -24834,17 +24844,24 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24834
24844
|
}
|
|
24835
24845
|
}, {
|
|
24836
24846
|
key: "getRecursivePartlistArticles",
|
|
24837
|
-
value: function getRecursivePartlistArticles(onlyVisible) {
|
|
24847
|
+
value: function getRecursivePartlistArticles(onlyVisible, excludeStandalonePla) {
|
|
24838
24848
|
var partlistArticles = {};
|
|
24839
24849
|
for (var basketId in this.partlistArticles) {
|
|
24840
24850
|
var partlistArticle = this.partlistArticles[basketId];
|
|
24841
|
-
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree) partlistArticles[basketId] = partlistArticle;
|
|
24851
|
+
if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree || !excludeStandalonePla && partlistArticle.partlistArticleStandalone) partlistArticles[basketId] = partlistArticle;
|
|
24842
24852
|
if (partlistArticle.hasPartlistArticle) {
|
|
24843
|
-
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible));
|
|
24853
|
+
partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible, excludeStandalonePla));
|
|
24844
24854
|
}
|
|
24845
24855
|
}
|
|
24846
24856
|
return partlistArticles;
|
|
24847
24857
|
}
|
|
24858
|
+
}, {
|
|
24859
|
+
key: "variantValuesForPla",
|
|
24860
|
+
value: function variantValuesForPla(configurationMode, previousPartlistArticleVariantValues, newConfigValues) {
|
|
24861
|
+
//if configurationMode is true its previous values are more important than the values of the parentelement because its standalone configurable
|
|
24862
|
+
if (configurationMode) return _objectSpread$e(_objectSpread$e({}, newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}), previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {});
|
|
24863
|
+
return _objectSpread$e(_objectSpread$e({}, previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {}), newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {});
|
|
24864
|
+
}
|
|
24848
24865
|
}, {
|
|
24849
24866
|
key: "partlistArticlesAsArray",
|
|
24850
24867
|
get: function get() {
|
|
@@ -25488,31 +25505,32 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25488
25505
|
});
|
|
25489
25506
|
if (firstMatch) return firstMatch;
|
|
25490
25507
|
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)) {
|
|
25491
|
-
|
|
25508
|
+
var ops = this.partListParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25509
|
+
if (ops) return ops;
|
|
25492
25510
|
}
|
|
25493
25511
|
if (Object.keys((_this$partlistArticle3 = this.partlistArticles) !== null && _this$partlistArticle3 !== void 0 ? _this$partlistArticle3 : {}).length > 0) {
|
|
25494
25512
|
for (var key in this.partlistArticles) {
|
|
25495
25513
|
if (from === key) continue;
|
|
25496
25514
|
var partlistArticle = this.partlistArticles[key];
|
|
25497
|
-
var
|
|
25498
|
-
if (
|
|
25515
|
+
var _ops = partlistArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25516
|
+
if (_ops) return _ops;
|
|
25499
25517
|
}
|
|
25500
25518
|
}
|
|
25501
25519
|
var _iterator5 = _createForOfIteratorHelper$6(this.articleOptionStatesData),
|
|
25502
25520
|
_step5;
|
|
25503
25521
|
try {
|
|
25504
25522
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
25505
|
-
var
|
|
25523
|
+
var _ops3 = _step5.value;
|
|
25506
25524
|
if (!codex.includes('.')) {
|
|
25507
|
-
if (
|
|
25508
|
-
return
|
|
25525
|
+
if (_ops3.option.ocd == codex && _ops3.isDoShow && !_ops3.isDisabled) {
|
|
25526
|
+
return _ops3;
|
|
25509
25527
|
}
|
|
25510
25528
|
} else {
|
|
25511
25529
|
var _this$parentOptionCod = this.parentOptionCodex(codex),
|
|
25512
25530
|
optionCodex = _this$parentOptionCod.optionCodex,
|
|
25513
25531
|
partenOptionCodex = _this$parentOptionCod.partenOptionCodex;
|
|
25514
|
-
if ((
|
|
25515
|
-
return
|
|
25532
|
+
if ((_ops3.option.ocd == optionCodex || _ops3.option.codex == optionCodex) && _ops3.option.parentOptionCodex == partenOptionCodex) {
|
|
25533
|
+
return _ops3;
|
|
25516
25534
|
}
|
|
25517
25535
|
}
|
|
25518
25536
|
}
|
|
@@ -25522,8 +25540,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25522
25540
|
_iterator5.f();
|
|
25523
25541
|
}
|
|
25524
25542
|
if (checkOnAccessoireParent && this.accessoireParentArticle) {
|
|
25525
|
-
var
|
|
25526
|
-
if (
|
|
25543
|
+
var _ops2 = this.accessoireParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
|
|
25544
|
+
if (_ops2) return _ops2;
|
|
25527
25545
|
}
|
|
25528
25546
|
return undefined;
|
|
25529
25547
|
}
|
|
@@ -25717,9 +25735,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
25717
25735
|
get: function get() {
|
|
25718
25736
|
var _this$partlistArticle4;
|
|
25719
25737
|
if (Object.values((_this$partlistArticle4 = this.partlistArticles) !== null && _this$partlistArticle4 !== void 0 ? _this$partlistArticle4 : {}).find(function (p) {
|
|
25720
|
-
return p.partlistArticleVisibleInTree;
|
|
25738
|
+
return p.partlistArticleVisibleInTree || p.partlistArticleStandalone;
|
|
25721
25739
|
})) return true;
|
|
25722
|
-
return this.partlistArticleVisibleInTree;
|
|
25740
|
+
return this.partlistArticleVisibleInTree || this.partlistArticleStandalone;
|
|
25723
25741
|
}
|
|
25724
25742
|
}, {
|
|
25725
25743
|
key: "partListParentArticle",
|
|
@@ -26180,13 +26198,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26180
26198
|
invisible: ops.isInvisible,
|
|
26181
26199
|
visibleOPVs: Object.values(ops.visibleOptionValues).map(function (v) {
|
|
26182
26200
|
return v.codex;
|
|
26183
|
-
})
|
|
26201
|
+
}),
|
|
26202
|
+
optName: ops.optionName
|
|
26184
26203
|
};
|
|
26185
26204
|
if (ops.freeText) {
|
|
26186
26205
|
ret[ops.optionCodex + '_val'] = {
|
|
26187
26206
|
selOPV: ops.freeText,
|
|
26188
26207
|
visibleOPVs: [],
|
|
26189
|
-
invisible: true
|
|
26208
|
+
invisible: true,
|
|
26209
|
+
optName: ''
|
|
26190
26210
|
};
|
|
26191
26211
|
}
|
|
26192
26212
|
}
|
|
@@ -26472,6 +26492,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26472
26492
|
}, {
|
|
26473
26493
|
key: "deletePartlistArticles",
|
|
26474
26494
|
value: function deletePartlistArticles() {
|
|
26495
|
+
for (var pl in this.article.partlistArticles) {
|
|
26496
|
+
this.article.partlistArticles[pl].deleted = true;
|
|
26497
|
+
}
|
|
26475
26498
|
if (Object.keys(this.article.partlistArticles).length) this.article.previousPartlistArticles = this.article.partlistArticles;
|
|
26476
26499
|
this.article.partlistArticles = {};
|
|
26477
26500
|
}
|
|
@@ -26762,9 +26785,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26762
26785
|
_step21;
|
|
26763
26786
|
try {
|
|
26764
26787
|
for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
|
|
26765
|
-
var
|
|
26766
|
-
if (
|
|
26767
|
-
ret = this.checkOptionSearchOPV(
|
|
26788
|
+
var _ops4 = _step21.value;
|
|
26789
|
+
if (_ops4.option.ocd == optionCodex && _ops4.isDoShow && (parentOptionCodex == '' || parentOptionCodex == _ops4.option.parentOptionCodex)) {
|
|
26790
|
+
ret = this.checkOptionSearchOPV(_ops4.option, optionValueCodex, ret);
|
|
26768
26791
|
}
|
|
26769
26792
|
}
|
|
26770
26793
|
//fallback for pfister classification usecase
|
|
@@ -26777,9 +26800,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26777
26800
|
_step22;
|
|
26778
26801
|
try {
|
|
26779
26802
|
for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
|
|
26780
|
-
var
|
|
26781
|
-
if (
|
|
26782
|
-
return this.checkOptionSearchOPV(
|
|
26803
|
+
var _ops5 = _step22.value;
|
|
26804
|
+
if (_ops5.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops5.option.parentOptionCodex)) {
|
|
26805
|
+
return this.checkOptionSearchOPV(_ops5.option, optionValueCodex, ret);
|
|
26783
26806
|
}
|
|
26784
26807
|
}
|
|
26785
26808
|
} catch (err) {
|
|
@@ -27072,7 +27095,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27072
27095
|
break;
|
|
27073
27096
|
}
|
|
27074
27097
|
_context.next = 4;
|
|
27075
|
-
return import('./ShelfPlanner-
|
|
27098
|
+
return import('./ShelfPlanner-eca6fe99.js');
|
|
27076
27099
|
case 4:
|
|
27077
27100
|
_yield$import = _context.sent;
|
|
27078
27101
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -27135,6 +27158,39 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27135
27158
|
if (!this.partListParentArticle) return true;
|
|
27136
27159
|
return !!this.partListParentArticle.getArticleOptionStateFlat(opt) || this.partlistArticleVisibleInTree;
|
|
27137
27160
|
}
|
|
27161
|
+
}, {
|
|
27162
|
+
key: "afterInit",
|
|
27163
|
+
value: function () {
|
|
27164
|
+
var _afterInit = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
27165
|
+
var variantValues, i, _ops$visibleOptionVal, ops, _ops$visibleOptionVal2;
|
|
27166
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
27167
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27168
|
+
case 0:
|
|
27169
|
+
if (this.CatalogData.useDiomexConfigLogic) {
|
|
27170
|
+
_context2.next = 2;
|
|
27171
|
+
break;
|
|
27172
|
+
}
|
|
27173
|
+
return _context2.abrupt("return", {});
|
|
27174
|
+
case 2:
|
|
27175
|
+
variantValues = {};
|
|
27176
|
+
for (i = 0; i < this.articleOptionStates.length; i++) {
|
|
27177
|
+
ops = this.articleOptionStates[i];
|
|
27178
|
+
if (ops.val === undefined && Object.values((_ops$visibleOptionVal = ops.visibleOptionValues) !== null && _ops$visibleOptionVal !== void 0 ? _ops$visibleOptionVal : {}).length && !ops.isInvisible) {
|
|
27179
|
+
variantValues[ops.optionCodex] = Object.values((_ops$visibleOptionVal2 = ops.visibleOptionValues) !== null && _ops$visibleOptionVal2 !== void 0 ? _ops$visibleOptionVal2 : {})[0].codex;
|
|
27180
|
+
}
|
|
27181
|
+
}
|
|
27182
|
+
return _context2.abrupt("return", variantValues);
|
|
27183
|
+
case 5:
|
|
27184
|
+
case "end":
|
|
27185
|
+
return _context2.stop();
|
|
27186
|
+
}
|
|
27187
|
+
}, _callee2, this);
|
|
27188
|
+
}));
|
|
27189
|
+
function afterInit() {
|
|
27190
|
+
return _afterInit.apply(this, arguments);
|
|
27191
|
+
}
|
|
27192
|
+
return afterInit;
|
|
27193
|
+
}()
|
|
27138
27194
|
}, {
|
|
27139
27195
|
key: "getValidValues",
|
|
27140
27196
|
value: function getValidValues(myValues, mergeOptionToSameOption, setConfigDoesOverWrite) {
|
|
@@ -27183,8 +27239,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27183
27239
|
}
|
|
27184
27240
|
}
|
|
27185
27241
|
for (var _key2 in myValues) {
|
|
27186
|
-
var
|
|
27187
|
-
if (
|
|
27242
|
+
var _ops6 = this.getArticleOptionState(_key2);
|
|
27243
|
+
if (_ops6) {
|
|
27188
27244
|
validValues[_key2] = myValues[_key2];
|
|
27189
27245
|
} else if (_key2.endsWith('_val') && this.getArticleOptionState(_key2.replace(/_val/g, ''))) {
|
|
27190
27246
|
validValues[_key2] = myValues[_key2];
|
|
@@ -27193,10 +27249,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27193
27249
|
_step24;
|
|
27194
27250
|
try {
|
|
27195
27251
|
for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
|
|
27196
|
-
var
|
|
27197
|
-
if (
|
|
27198
|
-
var values = this.checkOptionSearchOPV(
|
|
27199
|
-
if (values !== null && values !== void 0 && values.opv) validValues[
|
|
27252
|
+
var _ops7 = _step24.value;
|
|
27253
|
+
if (_ops7.optionOcd == _key2) {
|
|
27254
|
+
var values = this.checkOptionSearchOPV(_ops7.option, myValues[_key2], {});
|
|
27255
|
+
if (values !== null && values !== void 0 && values.opv) validValues[_ops7.optionCodex] = values.opv.codex;
|
|
27200
27256
|
}
|
|
27201
27257
|
}
|
|
27202
27258
|
} catch (err) {
|
|
@@ -27206,9 +27262,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27206
27262
|
}
|
|
27207
27263
|
}
|
|
27208
27264
|
//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
|
|
27209
|
-
if (
|
|
27210
|
-
var
|
|
27211
|
-
if ((
|
|
27265
|
+
if (_ops6) {
|
|
27266
|
+
var _ops6$valCodex;
|
|
27267
|
+
if ((_ops6$valCodex = _ops6.valCodex) !== null && _ops6$valCodex !== void 0 && _ops6$valCodex.startsWith('OPVSUB_') && !validValues[_key2 + '.' + _key2] && this.getArticleOptionState(_key2 + '.' + _key2)) {
|
|
27212
27268
|
validValues[_key2 + '.' + _key2] = myValues[_key2];
|
|
27213
27269
|
}
|
|
27214
27270
|
}
|
|
@@ -27719,15 +27775,15 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27719
27775
|
value: function validateAndSetNewConfigValues(newConfigValues) {
|
|
27720
27776
|
var freeTextValues = {};
|
|
27721
27777
|
for (var key in newConfigValues) {
|
|
27722
|
-
var
|
|
27778
|
+
var _ops8, _ops9, _newConfigValues$key;
|
|
27723
27779
|
var ops = this.getArticleOptionState(key);
|
|
27724
27780
|
var _this$parentOptionCod5 = this.parentOptionCodex(key),
|
|
27725
27781
|
optionCodex = _this$parentOptionCod5.optionCodex,
|
|
27726
27782
|
partenOptionCodex = _this$parentOptionCod5.partenOptionCodex;
|
|
27727
|
-
if ((
|
|
27783
|
+
if ((_ops8 = ops) !== null && _ops8 !== void 0 && _ops8.isMultiselect) {
|
|
27728
27784
|
ops = this.handleMultiselect(ops, newConfigValues, key);
|
|
27729
27785
|
}
|
|
27730
|
-
if ((
|
|
27786
|
+
if ((_ops9 = ops) !== null && _ops9 !== void 0 && _ops9.isFreeText) {
|
|
27731
27787
|
this.handleFreeText(ops, newConfigValues, key, freeTextValues);
|
|
27732
27788
|
}
|
|
27733
27789
|
var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key.split(';')[0];
|
|
@@ -27738,8 +27794,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27738
27794
|
var myFreeText = foundItem.opv.isFreeText ? newConfigValues[optionCodex + '_val'] : undefined;
|
|
27739
27795
|
this.engine.updateArtOPV(foundItem.opv, foundItem.opt.codex, this.getArticleOptionState(foundItem.opt.codex), myFreeText);
|
|
27740
27796
|
} else {
|
|
27741
|
-
var
|
|
27742
|
-
if (ops && !((
|
|
27797
|
+
var _ops10;
|
|
27798
|
+
if (ops && !((_ops10 = ops) !== null && _ops10 !== void 0 && _ops10.isFreeText)) {
|
|
27743
27799
|
// to initialize freetexts where the freetext is not the only selectable opv in the options
|
|
27744
27800
|
this.checkIfSelectableOpvIsFreetext(ops, opvCodex, newConfigValues);
|
|
27745
27801
|
}
|
|
@@ -27996,7 +28052,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
27996
28052
|
while (1) switch (_context5.prev = _context5.next) {
|
|
27997
28053
|
case 0:
|
|
27998
28054
|
if (!(article.articleType == 'OPTION' || article.articleType == 'OPTIONTREE')) {
|
|
27999
|
-
_context5.next =
|
|
28055
|
+
_context5.next = 11;
|
|
28000
28056
|
break;
|
|
28001
28057
|
}
|
|
28002
28058
|
_context5.next = 3;
|
|
@@ -28005,13 +28061,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28005
28061
|
_context5.next = 5;
|
|
28006
28062
|
return this.updateCfgValues(article, defaultValues, variantValues);
|
|
28007
28063
|
case 5:
|
|
28008
|
-
if (!(
|
|
28064
|
+
if (!(from === 'initializingPartlist')) {
|
|
28009
28065
|
_context5.next = 8;
|
|
28010
28066
|
break;
|
|
28011
28067
|
}
|
|
28012
28068
|
_context5.next = 8;
|
|
28013
|
-
return
|
|
28069
|
+
return this.updateEmptyOption(article);
|
|
28014
28070
|
case 8:
|
|
28071
|
+
if (!(article.set.PlannerMode !== 'BoxPlanner')) {
|
|
28072
|
+
_context5.next = 11;
|
|
28073
|
+
break;
|
|
28074
|
+
}
|
|
28075
|
+
_context5.next = 11;
|
|
28076
|
+
return setHandlerInstance.updateArticlesOptionStatesOfActSet(article.set, defaultValues, [article.basketId], ignorePlanner, from);
|
|
28077
|
+
case 11:
|
|
28015
28078
|
case "end":
|
|
28016
28079
|
return _context5.stop();
|
|
28017
28080
|
}
|
|
@@ -28037,7 +28100,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28037
28100
|
key: "updateArticlesOptionStates",
|
|
28038
28101
|
value: function () {
|
|
28039
28102
|
var _updateArticlesOptionStates = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(myValues, targetArticlesWithNewValues, targetArticlesToUpdate, articles, from) {
|
|
28040
|
-
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, actArticle,
|
|
28103
|
+
var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, _actArticle, actArticle, newPLATL, _actArticle$checkDefa, variantValues, triggerUpdate, pla;
|
|
28041
28104
|
return _regeneratorRuntime.wrap(function _callee5$(_context6) {
|
|
28042
28105
|
while (1) switch (_context6.prev = _context6.next) {
|
|
28043
28106
|
case 0:
|
|
@@ -28047,74 +28110,79 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28047
28110
|
i = 0;
|
|
28048
28111
|
case 4:
|
|
28049
28112
|
if (!(i < targetArticlesToUpdate.length)) {
|
|
28050
|
-
_context6.next =
|
|
28113
|
+
_context6.next = 40;
|
|
28051
28114
|
break;
|
|
28052
28115
|
}
|
|
28053
28116
|
valuesArray[i] = {};
|
|
28054
28117
|
actArticle = articles[targetArticlesToUpdate[i]];
|
|
28118
|
+
if ((_actArticle = actArticle) !== null && _actArticle !== void 0 && _actArticle.deleted && actArticle.isPartListArticle && actArticle.partListParentArticle) {
|
|
28119
|
+
actArticle = actArticle.partListParentArticle.partlistArticles[actArticle.basketId];
|
|
28120
|
+
}
|
|
28055
28121
|
if (!(!actArticle || actArticle.deleted)) {
|
|
28056
|
-
_context6.next =
|
|
28122
|
+
_context6.next = 12;
|
|
28057
28123
|
break;
|
|
28058
28124
|
}
|
|
28059
28125
|
targetArticlesToUpdate.splice(i, 1);
|
|
28060
28126
|
i--;
|
|
28061
|
-
return _context6.abrupt("continue",
|
|
28062
|
-
case
|
|
28127
|
+
return _context6.abrupt("continue", 37);
|
|
28128
|
+
case 12:
|
|
28063
28129
|
if (targetArticlesWithNewValues.includes(targetArticlesToUpdate[i])) {
|
|
28064
28130
|
valuesArray[i] = actArticle.getValidValues(_objectSpread$d({}, myValues), actArticle.CatalogData.mergeOptionsToSameOption);
|
|
28065
28131
|
}
|
|
28066
28132
|
|
|
28067
28133
|
//only set config if valuesArray are not empty or the article is initializing
|
|
28134
|
+
newPLATL = void 0; // partlistarticle to load
|
|
28068
28135
|
if (!(Object.entries(valuesArray[i]).length > 0 || from !== null && from !== void 0 && from.startsWith('initializing'))) {
|
|
28069
|
-
_context6.next =
|
|
28136
|
+
_context6.next = 29;
|
|
28070
28137
|
break;
|
|
28071
28138
|
}
|
|
28072
|
-
_context6.next =
|
|
28139
|
+
_context6.next = 17;
|
|
28073
28140
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28074
|
-
case
|
|
28075
|
-
|
|
28141
|
+
case 17:
|
|
28142
|
+
newPLATL = _context6.sent;
|
|
28076
28143
|
_actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
|
|
28077
28144
|
valuesArray[i] = variantValues;
|
|
28078
|
-
_context6.next =
|
|
28145
|
+
_context6.next = 22;
|
|
28079
28146
|
return this.updateAccessoriesFromGlobalOption(valuesArray[i], actArticle);
|
|
28080
|
-
case
|
|
28147
|
+
case 22:
|
|
28081
28148
|
if (!triggerUpdate) {
|
|
28082
|
-
_context6.next =
|
|
28149
|
+
_context6.next = 26;
|
|
28083
28150
|
break;
|
|
28084
28151
|
}
|
|
28085
|
-
_context6.next =
|
|
28152
|
+
_context6.next = 25;
|
|
28086
28153
|
return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
|
|
28087
|
-
case
|
|
28088
|
-
|
|
28089
|
-
case
|
|
28090
|
-
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPartlistArticlesToLoad);
|
|
28154
|
+
case 25:
|
|
28155
|
+
newPLATL = _context6.sent;
|
|
28156
|
+
case 26:
|
|
28091
28157
|
newEDOExtraArticles = this.checkEDOArticles(articles);
|
|
28092
|
-
_context6.next =
|
|
28158
|
+
_context6.next = 32;
|
|
28093
28159
|
break;
|
|
28094
|
-
case
|
|
28095
|
-
_context6.t0 = partlistArticlesToLoad;
|
|
28160
|
+
case 29:
|
|
28096
28161
|
_context6.next = 31;
|
|
28097
28162
|
return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
|
|
28098
28163
|
case 31:
|
|
28099
|
-
|
|
28100
|
-
|
|
28101
|
-
|
|
28164
|
+
newPLATL = _context6.sent;
|
|
28165
|
+
case 32:
|
|
28166
|
+
_context6.next = 34;
|
|
28167
|
+
return this.updateEmptyOption(actArticle);
|
|
28168
|
+
case 34:
|
|
28169
|
+
pla = _context6.sent;
|
|
28170
|
+
if (pla !== undefined) newPLATL = pla;
|
|
28171
|
+
partlistArticlesToLoad = partlistArticlesToLoad.concat(newPLATL);
|
|
28172
|
+
case 37:
|
|
28102
28173
|
i++;
|
|
28103
28174
|
_context6.next = 4;
|
|
28104
28175
|
break;
|
|
28105
|
-
case 36:
|
|
28106
|
-
_context6.next = 38;
|
|
28107
|
-
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28108
|
-
case 38:
|
|
28109
|
-
_context6.next = 40;
|
|
28110
|
-
return this.triggerMoreUpdates(targetArticlesToUpdate, valuesArray, articles, from);
|
|
28111
28176
|
case 40:
|
|
28177
|
+
_context6.next = 42;
|
|
28178
|
+
return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
|
|
28179
|
+
case 42:
|
|
28112
28180
|
return _context6.abrupt("return", {
|
|
28113
28181
|
newEDOExtraArticles: newEDOExtraArticles,
|
|
28114
28182
|
targetArticlesToUpdate: targetArticlesToUpdate,
|
|
28115
28183
|
partlistArticlesToLoad: partlistArticlesToLoad
|
|
28116
28184
|
});
|
|
28117
|
-
case
|
|
28185
|
+
case 43:
|
|
28118
28186
|
case "end":
|
|
28119
28187
|
return _context6.stop();
|
|
28120
28188
|
}
|
|
@@ -28126,38 +28194,38 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28126
28194
|
return updateArticlesOptionStates;
|
|
28127
28195
|
}()
|
|
28128
28196
|
}, {
|
|
28129
|
-
key: "
|
|
28197
|
+
key: "triggerUpdateOnVisiblePartilstArticles",
|
|
28130
28198
|
value: function () {
|
|
28131
|
-
var
|
|
28132
|
-
var
|
|
28199
|
+
var _triggerUpdateOnVisiblePartilstArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(targetArticlesToUpdate, articles) {
|
|
28200
|
+
var _articles$targetArtic;
|
|
28201
|
+
var key, configuredArticle, toIgnore, actArticle;
|
|
28133
28202
|
return _regeneratorRuntime.wrap(function _callee6$(_context7) {
|
|
28134
28203
|
while (1) switch (_context7.prev = _context7.next) {
|
|
28135
28204
|
case 0:
|
|
28136
|
-
if (!(
|
|
28137
|
-
_context7.next =
|
|
28205
|
+
if (!((_articles$targetArtic = articles[targetArticlesToUpdate[0]]) !== null && _articles$targetArtic !== void 0 && _articles$targetArtic.hasPartlistArticleVisibleInTree)) {
|
|
28206
|
+
_context7.next = 13;
|
|
28138
28207
|
break;
|
|
28139
28208
|
}
|
|
28140
|
-
|
|
28209
|
+
_context7.t0 = _regeneratorRuntime.keys(articles);
|
|
28141
28210
|
case 2:
|
|
28142
|
-
|
|
28143
|
-
case 3:
|
|
28144
|
-
if (!(i < targetArticlesToUpdate.length)) {
|
|
28211
|
+
if ((_context7.t1 = _context7.t0()).done) {
|
|
28145
28212
|
_context7.next = 13;
|
|
28146
28213
|
break;
|
|
28147
28214
|
}
|
|
28148
|
-
|
|
28149
|
-
|
|
28150
|
-
|
|
28215
|
+
key = _context7.t1.value;
|
|
28216
|
+
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
28217
|
+
toIgnore = configuredArticle.pushParentId();
|
|
28218
|
+
if (![configuredArticle.basketId].concat(_toConsumableArray(toIgnore)).includes(key)) {
|
|
28219
|
+
_context7.next = 8;
|
|
28151
28220
|
break;
|
|
28152
28221
|
}
|
|
28153
|
-
_context7.
|
|
28154
|
-
return this.updateCfgValues(article, valuesArray[i], {});
|
|
28222
|
+
return _context7.abrupt("continue", 2);
|
|
28155
28223
|
case 8:
|
|
28156
|
-
|
|
28157
|
-
|
|
28158
|
-
|
|
28159
|
-
|
|
28160
|
-
_context7.next =
|
|
28224
|
+
actArticle = articles[key];
|
|
28225
|
+
_context7.next = 11;
|
|
28226
|
+
return this.updateCfgValues(actArticle, {}, {});
|
|
28227
|
+
case 11:
|
|
28228
|
+
_context7.next = 2;
|
|
28161
28229
|
break;
|
|
28162
28230
|
case 13:
|
|
28163
28231
|
case "end":
|
|
@@ -28165,55 +28233,43 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28165
28233
|
}
|
|
28166
28234
|
}, _callee6, this);
|
|
28167
28235
|
}));
|
|
28168
|
-
function
|
|
28169
|
-
return
|
|
28236
|
+
function triggerUpdateOnVisiblePartilstArticles(_x19, _x20) {
|
|
28237
|
+
return _triggerUpdateOnVisiblePartilstArticles.apply(this, arguments);
|
|
28170
28238
|
}
|
|
28171
|
-
return
|
|
28239
|
+
return triggerUpdateOnVisiblePartilstArticles;
|
|
28172
28240
|
}()
|
|
28173
28241
|
}, {
|
|
28174
|
-
key: "
|
|
28242
|
+
key: "updateEmptyOption",
|
|
28175
28243
|
value: function () {
|
|
28176
|
-
var
|
|
28177
|
-
var
|
|
28178
|
-
var key, configuredArticle, toIgnore, actArticle;
|
|
28244
|
+
var _updateEmptyOption = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(article) {
|
|
28245
|
+
var emyptsOptionsToSet;
|
|
28179
28246
|
return _regeneratorRuntime.wrap(function _callee7$(_context8) {
|
|
28180
28247
|
while (1) switch (_context8.prev = _context8.next) {
|
|
28181
28248
|
case 0:
|
|
28182
|
-
|
|
28183
|
-
|
|
28184
|
-
break;
|
|
28185
|
-
}
|
|
28186
|
-
_context8.t0 = _regeneratorRuntime.keys(articles);
|
|
28249
|
+
_context8.next = 2;
|
|
28250
|
+
return article.afterInit();
|
|
28187
28251
|
case 2:
|
|
28188
|
-
|
|
28189
|
-
|
|
28190
|
-
|
|
28191
|
-
}
|
|
28192
|
-
key = _context8.t1.value;
|
|
28193
|
-
configuredArticle = articles[targetArticlesToUpdate[0]];
|
|
28194
|
-
toIgnore = configuredArticle.pushParentId();
|
|
28195
|
-
if (![configuredArticle.basketId].concat(_toConsumableArray(toIgnore)).includes(key)) {
|
|
28196
|
-
_context8.next = 8;
|
|
28252
|
+
emyptsOptionsToSet = _context8.sent;
|
|
28253
|
+
if (!Object.keys(emyptsOptionsToSet).length) {
|
|
28254
|
+
_context8.next = 7;
|
|
28197
28255
|
break;
|
|
28198
28256
|
}
|
|
28199
|
-
|
|
28257
|
+
_context8.next = 6;
|
|
28258
|
+
return this.updateCfgValues(article, emyptsOptionsToSet, {});
|
|
28259
|
+
case 6:
|
|
28260
|
+
return _context8.abrupt("return", _context8.sent);
|
|
28261
|
+
case 7:
|
|
28262
|
+
return _context8.abrupt("return", undefined);
|
|
28200
28263
|
case 8:
|
|
28201
|
-
actArticle = articles[key];
|
|
28202
|
-
_context8.next = 11;
|
|
28203
|
-
return this.updateCfgValues(actArticle, {}, {});
|
|
28204
|
-
case 11:
|
|
28205
|
-
_context8.next = 2;
|
|
28206
|
-
break;
|
|
28207
|
-
case 13:
|
|
28208
28264
|
case "end":
|
|
28209
28265
|
return _context8.stop();
|
|
28210
28266
|
}
|
|
28211
28267
|
}, _callee7, this);
|
|
28212
28268
|
}));
|
|
28213
|
-
function
|
|
28214
|
-
return
|
|
28269
|
+
function updateEmptyOption(_x21) {
|
|
28270
|
+
return _updateEmptyOption.apply(this, arguments);
|
|
28215
28271
|
}
|
|
28216
|
-
return
|
|
28272
|
+
return updateEmptyOption;
|
|
28217
28273
|
}()
|
|
28218
28274
|
}, {
|
|
28219
28275
|
key: "updateAccessoriesFromGlobalOption",
|
|
@@ -28242,7 +28298,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28242
28298
|
}
|
|
28243
28299
|
}, _callee8, this);
|
|
28244
28300
|
}));
|
|
28245
|
-
function updateAccessoriesFromGlobalOption(
|
|
28301
|
+
function updateAccessoriesFromGlobalOption(_x22, _x23) {
|
|
28246
28302
|
return _updateAccessoriesFromGlobalOption.apply(this, arguments);
|
|
28247
28303
|
}
|
|
28248
28304
|
return updateAccessoriesFromGlobalOption;
|
|
@@ -28485,7 +28541,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28485
28541
|
}
|
|
28486
28542
|
}, _callee9, null, [[12, 27, 30, 33]]);
|
|
28487
28543
|
}));
|
|
28488
|
-
function initCfgValues(
|
|
28544
|
+
function initCfgValues(_x24, _x25, _x26) {
|
|
28489
28545
|
return _initCfgValues.apply(this, arguments);
|
|
28490
28546
|
}
|
|
28491
28547
|
return initCfgValues;
|
|
@@ -28505,7 +28561,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28505
28561
|
}
|
|
28506
28562
|
}, _callee10, this);
|
|
28507
28563
|
}));
|
|
28508
|
-
function setValidVariantValues(
|
|
28564
|
+
function setValidVariantValues(_x27) {
|
|
28509
28565
|
return _setValidVariantValues.apply(this, arguments);
|
|
28510
28566
|
}
|
|
28511
28567
|
return setValidVariantValues;
|
|
@@ -28591,7 +28647,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28591
28647
|
}
|
|
28592
28648
|
}, _callee11, this);
|
|
28593
28649
|
}));
|
|
28594
|
-
function updateCfgValues(
|
|
28650
|
+
function updateCfgValues(_x28, _x29, _x30, _x31, _x32, _x33) {
|
|
28595
28651
|
return _updateCfgValues.apply(this, arguments);
|
|
28596
28652
|
}
|
|
28597
28653
|
return updateCfgValues;
|
|
@@ -28648,7 +28704,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28648
28704
|
}
|
|
28649
28705
|
}, _callee12, this);
|
|
28650
28706
|
}));
|
|
28651
|
-
function updateLastElement(
|
|
28707
|
+
function updateLastElement(_x34) {
|
|
28652
28708
|
return _updateLastElement.apply(this, arguments);
|
|
28653
28709
|
}
|
|
28654
28710
|
return updateLastElement;
|
|
@@ -28690,7 +28746,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28690
28746
|
}
|
|
28691
28747
|
}, _callee13);
|
|
28692
28748
|
}));
|
|
28693
|
-
function updateOption(
|
|
28749
|
+
function updateOption(_x35, _x36, _x37, _x38) {
|
|
28694
28750
|
return _updateOption.apply(this, arguments);
|
|
28695
28751
|
}
|
|
28696
28752
|
return updateOption;
|
|
@@ -28732,7 +28788,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28732
28788
|
}
|
|
28733
28789
|
}, _callee14, this);
|
|
28734
28790
|
}));
|
|
28735
|
-
function evalAndLoadPartlistArticles(
|
|
28791
|
+
function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
|
|
28736
28792
|
return _evalAndLoadPartlistArticles.apply(this, arguments);
|
|
28737
28793
|
}
|
|
28738
28794
|
return evalAndLoadPartlistArticles;
|
|
@@ -28771,7 +28827,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28771
28827
|
}
|
|
28772
28828
|
}, _callee15, this);
|
|
28773
28829
|
}));
|
|
28774
|
-
function loadPartlistArticles(
|
|
28830
|
+
function loadPartlistArticles(_x42, _x43, _x44) {
|
|
28775
28831
|
return _loadPartlistArticles.apply(this, arguments);
|
|
28776
28832
|
}
|
|
28777
28833
|
return loadPartlistArticles;
|
|
@@ -28781,7 +28837,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28781
28837
|
key: "loadPartlistArticle",
|
|
28782
28838
|
value: function () {
|
|
28783
28839
|
var _loadPartlistArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(doLoadItem, article, newConfigValues) {
|
|
28784
|
-
var nArticle;
|
|
28840
|
+
var nArticle, _doLoadItem$VariantVa;
|
|
28785
28841
|
return _regeneratorRuntime.wrap(function _callee16$(_context18) {
|
|
28786
28842
|
while (1) switch (_context18.prev = _context18.next) {
|
|
28787
28843
|
case 0:
|
|
@@ -28795,7 +28851,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28795
28851
|
}
|
|
28796
28852
|
doLoadItem.BasketID = nArticle.basketId;
|
|
28797
28853
|
_context18.next = 7;
|
|
28798
|
-
return this.toDoAfterArticleLoaded(nArticle, {},
|
|
28854
|
+
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);
|
|
28799
28855
|
case 7:
|
|
28800
28856
|
article.addPartlistArticle(nArticle);
|
|
28801
28857
|
case 8:
|
|
@@ -28804,7 +28860,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28804
28860
|
}
|
|
28805
28861
|
}, _callee16, this);
|
|
28806
28862
|
}));
|
|
28807
|
-
function loadPartlistArticle(
|
|
28863
|
+
function loadPartlistArticle(_x45, _x46, _x47) {
|
|
28808
28864
|
return _loadPartlistArticle.apply(this, arguments);
|
|
28809
28865
|
}
|
|
28810
28866
|
return loadPartlistArticle;
|
|
@@ -28834,6 +28890,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28834
28890
|
supplierOrderCodex: doLoadItem.SupplierOrderCodex,
|
|
28835
28891
|
initDecisions: doLoadItem.initDecisions,
|
|
28836
28892
|
partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
|
|
28893
|
+
partlistArticleStandalone: doLoadItem.ConfigurationMode,
|
|
28837
28894
|
optionsForPrint: doLoadItem.optionsForPrint,
|
|
28838
28895
|
optionImgForPrint: doLoadItem.optionImgForPrint,
|
|
28839
28896
|
catalogCodex: doLoadItem.CatalogCodex
|
|
@@ -28965,7 +29022,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28965
29022
|
}
|
|
28966
29023
|
}, _callee17, this);
|
|
28967
29024
|
}));
|
|
28968
|
-
function evalOpvsOnOpvsConstructionRules(
|
|
29025
|
+
function evalOpvsOnOpvsConstructionRules(_x48) {
|
|
28969
29026
|
return _evalOpvsOnOpvsConstructionRules.apply(this, arguments);
|
|
28970
29027
|
}
|
|
28971
29028
|
return evalOpvsOnOpvsConstructionRules;
|
|
@@ -29168,7 +29225,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29168
29225
|
}
|
|
29169
29226
|
}, _callee18);
|
|
29170
29227
|
}));
|
|
29171
|
-
function triggerShelfplannerVisibility(
|
|
29228
|
+
function triggerShelfplannerVisibility(_x49, _x50) {
|
|
29172
29229
|
return _triggerShelfplannerVisibility.apply(this, arguments);
|
|
29173
29230
|
}
|
|
29174
29231
|
return triggerShelfplannerVisibility;
|
|
@@ -29245,7 +29302,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29245
29302
|
IsPartlistArticle: article.isPartListArticle,
|
|
29246
29303
|
IsPlannerElement: article.hasCatalogPlannerArticle,
|
|
29247
29304
|
HasPartlistArticle: article.hasPartlistArticle,
|
|
29248
|
-
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint,
|
|
29305
|
+
PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint && !article.partlistArticleStandalone,
|
|
29249
29306
|
SendToSAP: article.sendToSap,
|
|
29250
29307
|
ShelfPlandata: article.shelfPlanner ? DivaUtils.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,
|
|
29251
29308
|
MetaData: !hasFavorites ? article.MetaData : undefined,
|
|
@@ -29492,7 +29549,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
29492
29549
|
}
|
|
29493
29550
|
}, _callee19, this);
|
|
29494
29551
|
}));
|
|
29495
|
-
function correctPartlistArticlesByGlobalRules(
|
|
29552
|
+
function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
|
|
29496
29553
|
return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
|
|
29497
29554
|
}
|
|
29498
29555
|
return correctPartlistArticlesByGlobalRules;
|
|
@@ -30410,6 +30467,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
30410
30467
|
_defineProperty(this, "matchingOrigProduct", void 0);
|
|
30411
30468
|
_defineProperty(this, "_supplierColors", void 0);
|
|
30412
30469
|
_defineProperty(this, "_logDecisions", false);
|
|
30470
|
+
_defineProperty(this, "_logTotalStateForVariants", false);
|
|
30413
30471
|
/**Favorits state */
|
|
30414
30472
|
_defineProperty(this, "_handlelingCurrentFavorites", false);
|
|
30415
30473
|
_defineProperty(this, "_favorites", {
|
|
@@ -31683,7 +31741,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31683
31741
|
break;
|
|
31684
31742
|
}
|
|
31685
31743
|
_context5.next = 3;
|
|
31686
|
-
return import('./DoorPlanner-
|
|
31744
|
+
return import('./DoorPlanner-1e4a2ae0.js');
|
|
31687
31745
|
case 3:
|
|
31688
31746
|
_yield$import = _context5.sent;
|
|
31689
31747
|
DoorPlanner = _yield$import["default"];
|
|
@@ -31850,6 +31908,14 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31850
31908
|
set: function set(val) {
|
|
31851
31909
|
this._logDecisions = val;
|
|
31852
31910
|
}
|
|
31911
|
+
}, {
|
|
31912
|
+
key: "logTotalStateForVariants",
|
|
31913
|
+
get: function get() {
|
|
31914
|
+
return this._logTotalStateForVariants;
|
|
31915
|
+
},
|
|
31916
|
+
set: function set(val) {
|
|
31917
|
+
this._logTotalStateForVariants = val;
|
|
31918
|
+
}
|
|
31853
31919
|
}, {
|
|
31854
31920
|
key: "showAccessioreOnLastTab",
|
|
31855
31921
|
get: function get() {
|
|
@@ -31867,6 +31933,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31867
31933
|
var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
|
|
31868
31934
|
clonedSet.setData = _objectSpread$c({}, this.setData);
|
|
31869
31935
|
clonedSet.configSingle = this.configSingle;
|
|
31936
|
+
clonedSet.logTotalStateForVariants = this.logTotalStateForVariants;
|
|
31870
31937
|
var articles = this.getDivaArticles();
|
|
31871
31938
|
//if boxplanner needs to be working, the planner needs to be cloned too
|
|
31872
31939
|
//this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
|
|
@@ -33648,7 +33715,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
33648
33715
|
}
|
|
33649
33716
|
configStepKey = configStepKey + '_' + 'acc' + (set.CatalogData.forceConfigAllAccessoires ? article.articleCodex : basketId);
|
|
33650
33717
|
}
|
|
33651
|
-
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true));
|
|
33718
|
+
var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true, true));
|
|
33652
33719
|
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);
|
|
33653
33720
|
var isAccessoire = !!article.relatedToBasketId ? article.articleCodex : false;
|
|
33654
33721
|
if (!configTree.getTabGroupByCodex(tabGroupCodex)) {
|
|
@@ -36163,7 +36230,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36163
36230
|
var _article$partListPare, _article$partListPare2;
|
|
36164
36231
|
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 : '');
|
|
36165
36232
|
});
|
|
36166
|
-
if (group) {
|
|
36233
|
+
if (group && !article.partlistArticleStandalone) {
|
|
36167
36234
|
group.push(article.basketId);
|
|
36168
36235
|
} else {
|
|
36169
36236
|
groupedArticles.push([article.basketId]);
|
|
@@ -36280,16 +36347,26 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36280
36347
|
case 2:
|
|
36281
36348
|
opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
|
|
36282
36349
|
previewType = set.api.pricePreview;
|
|
36283
|
-
if (!(!opt ||
|
|
36350
|
+
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'))) {
|
|
36284
36351
|
_context26.next = 6;
|
|
36285
36352
|
break;
|
|
36286
36353
|
}
|
|
36287
36354
|
return _context26.abrupt("return", configItems);
|
|
36288
36355
|
case 6:
|
|
36356
|
+
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)))) {
|
|
36357
|
+
_context26.next = 9;
|
|
36358
|
+
break;
|
|
36359
|
+
}
|
|
36360
|
+
if (set.logTotalStateForVariants) {
|
|
36361
|
+
_context26.next = 9;
|
|
36362
|
+
break;
|
|
36363
|
+
}
|
|
36364
|
+
return _context26.abrupt("return", configItems);
|
|
36365
|
+
case 9:
|
|
36289
36366
|
targetArticles = set.configTree.getTargetArticles(configStepKey);
|
|
36290
|
-
_context26.next =
|
|
36367
|
+
_context26.next = 12;
|
|
36291
36368
|
return this.calcVariants(set, configItems, targetArticles, opt.codex);
|
|
36292
|
-
case
|
|
36369
|
+
case 12:
|
|
36293
36370
|
variants = _context26.sent;
|
|
36294
36371
|
if (previewType) {
|
|
36295
36372
|
configItems.map(function (c, index) {
|
|
@@ -36300,7 +36377,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36300
36377
|
});
|
|
36301
36378
|
}
|
|
36302
36379
|
return _context26.abrupt("return", configItems);
|
|
36303
|
-
case
|
|
36380
|
+
case 15:
|
|
36304
36381
|
case "end":
|
|
36305
36382
|
return _context26.stop();
|
|
36306
36383
|
}
|
|
@@ -36321,7 +36398,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36321
36398
|
case 0:
|
|
36322
36399
|
variantInfo = [];
|
|
36323
36400
|
set = realSet.cloneSet();
|
|
36324
|
-
articles = set.getDivaArticles();
|
|
36401
|
+
articles = set.getDivaArticles(true);
|
|
36325
36402
|
origPrice = set.getSetPrice();
|
|
36326
36403
|
articleConfigs = {};
|
|
36327
36404
|
for (i = 0; i < targetArticles.length; i++) {
|
|
@@ -36463,7 +36540,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36463
36540
|
calcTime: calcTime,
|
|
36464
36541
|
firstPrice: firstPrice,
|
|
36465
36542
|
variantValues: hashVariantValues,
|
|
36466
|
-
hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))
|
|
36543
|
+
hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))),
|
|
36544
|
+
articleSnapshot: set.logTotalStateForVariants ? set.cloneSet().getDivaArticles() : undefined
|
|
36467
36545
|
};
|
|
36468
36546
|
set.CatalogData.setVariantsPriceByHash(hash, priceObj);
|
|
36469
36547
|
return _context28.abrupt("return", priceObj);
|
|
@@ -38381,7 +38459,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38381
38459
|
_context11.next = 19;
|
|
38382
38460
|
break;
|
|
38383
38461
|
case 17:
|
|
38384
|
-
if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
38462
|
+
if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE' || response === 'ERROR_NO_BASKET_SAVED_ENTITY_EXISTS')) {
|
|
38385
38463
|
_context11.next = 19;
|
|
38386
38464
|
break;
|
|
38387
38465
|
}
|
|
@@ -38538,7 +38616,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38538
38616
|
break;
|
|
38539
38617
|
case 3:
|
|
38540
38618
|
_context12.next = 5;
|
|
38541
|
-
return import('./PfisterWWSHandler-
|
|
38619
|
+
return import('./PfisterWWSHandler-82a3c4a2.js');
|
|
38542
38620
|
case 5:
|
|
38543
38621
|
_yield$import = _context12.sent;
|
|
38544
38622
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -38546,7 +38624,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38546
38624
|
return _context12.abrupt("break", 27);
|
|
38547
38625
|
case 9:
|
|
38548
38626
|
_context12.next = 11;
|
|
38549
|
-
return import('./LiviqueWWSHandler-
|
|
38627
|
+
return import('./LiviqueWWSHandler-e8067cb9.js');
|
|
38550
38628
|
case 11:
|
|
38551
38629
|
_yield$import2 = _context12.sent;
|
|
38552
38630
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -38554,7 +38632,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38554
38632
|
return _context12.abrupt("break", 27);
|
|
38555
38633
|
case 15:
|
|
38556
38634
|
_context12.next = 17;
|
|
38557
|
-
return import('./SeriousBasketHandler-
|
|
38635
|
+
return import('./SeriousBasketHandler-ae57ed8f.js');
|
|
38558
38636
|
case 17:
|
|
38559
38637
|
_yield$import3 = _context12.sent;
|
|
38560
38638
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -38562,7 +38640,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38562
38640
|
return _context12.abrupt("break", 27);
|
|
38563
38641
|
case 21:
|
|
38564
38642
|
_context12.next = 23;
|
|
38565
|
-
return import('./StandardWWSHandler-
|
|
38643
|
+
return import('./StandardWWSHandler-051b8495.js');
|
|
38566
38644
|
case 23:
|
|
38567
38645
|
_yield$import4 = _context12.sent;
|
|
38568
38646
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -39990,7 +40068,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
39990
40068
|
while (1) switch (_context3.prev = _context3.next) {
|
|
39991
40069
|
case 0:
|
|
39992
40070
|
_context3.next = 2;
|
|
39993
|
-
return import('./Host3DSignalR-
|
|
40071
|
+
return import('./Host3DSignalR-efe6cdae.js');
|
|
39994
40072
|
case 2:
|
|
39995
40073
|
_yield$import = _context3.sent;
|
|
39996
40074
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41547,7 +41625,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41547
41625
|
break;
|
|
41548
41626
|
case 8:
|
|
41549
41627
|
_context4.next = 10;
|
|
41550
|
-
return import('./DivaStandardPlanner-
|
|
41628
|
+
return import('./DivaStandardPlanner-978a3382.js');
|
|
41551
41629
|
case 10:
|
|
41552
41630
|
_yield$import = _context4.sent;
|
|
41553
41631
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -41558,7 +41636,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41558
41636
|
return _context4.abrupt("break", 21);
|
|
41559
41637
|
case 15:
|
|
41560
41638
|
_context4.next = 17;
|
|
41561
|
-
return import('./DivaBoxPlanner-
|
|
41639
|
+
return import('./DivaBoxPlanner-a14ae106.js');
|
|
41562
41640
|
case 17:
|
|
41563
41641
|
_yield$import2 = _context4.sent;
|
|
41564
41642
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -43605,9 +43683,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
43605
43683
|
}
|
|
43606
43684
|
}, {
|
|
43607
43685
|
key: "getDivaArticles",
|
|
43608
|
-
value: function getDivaArticles() {
|
|
43686
|
+
value: function getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso) {
|
|
43609
43687
|
var _this$actSet3;
|
|
43610
|
-
return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles();
|
|
43688
|
+
return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso);
|
|
43611
43689
|
}
|
|
43612
43690
|
|
|
43613
43691
|
//for debugging
|