@crystaldesign/web-planner-logic 25.11.0-beta.16 → 25.11.0-beta.18
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-4efb7473.js → DivaBoxPlanner-022b9e6d.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-08b28e6e.js → DivaStandardPlanner-cceebe23.js} +2 -2
- package/build/cjs/{DoorPlanner-f263bd96.js → DoorPlanner-11b462aa.js} +1 -1
- package/build/cjs/{Host3DSignalR-16c75f12.js → Host3DSignalR-e782c432.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-4466166d.js → LiviqueWWSHandler-35f2e8ed.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-8dba6f96.js → PfisterWWSHandler-4414e221.js} +1 -1
- package/build/cjs/{PlannerHandler2D-88849d49.js → PlannerHandler2D-f03be183.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-34ecf95d.js → SeriousBasketHandler-3923b9fb.js} +1 -1
- package/build/cjs/{ShelfPlanner-82443617.js → ShelfPlanner-f84fca39.js} +1 -1
- package/build/cjs/{StandardWWSHandler-40579636.js → StandardWWSHandler-a6679920.js} +1 -1
- package/build/cjs/{index-3fcf0b7e.js → index-e5ef9654.js} +344 -339
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-0a8aa73e.js → DivaBoxPlanner-d1fe2f39.js} +2 -2
- package/build/esm/{DivaStandardPlanner-7ab49e4b.js → DivaStandardPlanner-2977514b.js} +2 -2
- package/build/esm/{DoorPlanner-984016b3.js → DoorPlanner-fd15242e.js} +1 -1
- package/build/esm/{Host3DSignalR-b3b4b058.js → Host3DSignalR-e075d73c.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-a1eb6677.js → LiviqueWWSHandler-e04621da.js} +1 -1
- package/build/esm/{PfisterWWSHandler-024322c6.js → PfisterWWSHandler-55f4ec64.js} +1 -1
- package/build/esm/{PlannerHandler2D-8cd309e1.js → PlannerHandler2D-5c595ec6.js} +1 -1
- package/build/esm/{SeriousBasketHandler-4d85e92d.js → SeriousBasketHandler-aad3b760.js} +1 -1
- package/build/esm/{ShelfPlanner-e801d9f6.js → ShelfPlanner-ecbad409.js} +1 -1
- package/build/esm/{StandardWWSHandler-63e6ecd7.js → StandardWWSHandler-dc2603b4.js} +1 -1
- package/build/esm/{index-5411fe71.js → index-f0630368.js} +344 -339
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +5 -2
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +5 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +16 -15
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts +1 -3
- package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -2
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -17678,6 +17678,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17678
17678
|
isAccessoireWasUndefined = true;
|
|
17679
17679
|
}
|
|
17680
17680
|
if (topSvg.IsAccessoire == false) {
|
|
17681
|
+
var _catalogArticle$artic;
|
|
17681
17682
|
nSVG++;
|
|
17682
17683
|
//Artikelbild mit svg üerschreiben, wenn es mehr als 1 Eintrag mit IsAccessoire == false gibt
|
|
17683
17684
|
if (nDoShowSVGsinElementlist > 1) {
|
|
@@ -17745,13 +17746,17 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17745
17746
|
metaData: catalogArticle.metaDataView,
|
|
17746
17747
|
contentItemId: catalogArticle.contentItemId,
|
|
17747
17748
|
groupContentItemId: catalogArticle.groupContentItemId,
|
|
17748
|
-
partlistcodexes: catalogArticle.possiblePartlistCodexes
|
|
17749
|
+
partlistcodexes: catalogArticle.possiblePartlistCodexes,
|
|
17750
|
+
accessoires: (_catalogArticle$artic = catalogArticle.articleRelations) === null || _catalogArticle$artic === void 0 ? void 0 : _catalogArticle$artic.map(function (relation) {
|
|
17751
|
+
return relation.articleCodex;
|
|
17752
|
+
})
|
|
17749
17753
|
};
|
|
17750
17754
|
plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
|
|
17751
17755
|
}
|
|
17752
17756
|
}
|
|
17753
17757
|
}
|
|
17754
17758
|
if (!catPlanArticle.hasTopSvgsWithFormula || catPlanArticle.topSvgsWithFormula.length == 1) {
|
|
17759
|
+
var _catalogArticle$artic2;
|
|
17755
17760
|
var _filterType = getFilterType(catPlanArticle.isArticleRelation, catPlanArticle.topHasAVL ? catPlanArticle.avlFilter : [], catPlanArticle.topHasAVR ? catPlanArticle.avrFilter : [], catalogProps);
|
|
17756
17761
|
catPlanArticle.filterType = _filterType;
|
|
17757
17762
|
//Artikelbild ist abh�ngig von DIVA3DPlanerShowArticleAsSvg das SVG des Elements
|
|
@@ -17806,7 +17811,10 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17806
17811
|
metaData: catalogArticle.metaDataView,
|
|
17807
17812
|
contentItemId: catalogArticle.contentItemId,
|
|
17808
17813
|
groupContentItemId: catalogArticle.groupContentItemId,
|
|
17809
|
-
partlistcodexes: catalogArticle.possiblePartlistCodexes
|
|
17814
|
+
partlistcodexes: catalogArticle.possiblePartlistCodexes,
|
|
17815
|
+
accessoires: (_catalogArticle$artic2 = catalogArticle.articleRelations) === null || _catalogArticle$artic2 === void 0 ? void 0 : _catalogArticle$artic2.map(function (relation) {
|
|
17816
|
+
return relation.articleCodex;
|
|
17817
|
+
})
|
|
17810
17818
|
};
|
|
17811
17819
|
//nicht ausmultiplizierte Elemente
|
|
17812
17820
|
plannerPaletteViewInfo.catalogPlannerArticles.push(_catPlanArtView);
|
|
@@ -18365,13 +18373,19 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
18365
18373
|
}, {
|
|
18366
18374
|
key: "hasImages",
|
|
18367
18375
|
get: function get() {
|
|
18368
|
-
|
|
18369
|
-
|
|
18370
|
-
var
|
|
18371
|
-
|
|
18372
|
-
|
|
18373
|
-
|
|
18374
|
-
|
|
18376
|
+
if (this.opt.hasImages === undefined) {
|
|
18377
|
+
var _this$opt$articleOpti, _this$opt$articleOpti2;
|
|
18378
|
+
var opvs = Array.from((_this$opt$articleOpti = (_this$opt$articleOpti2 = this.opt.articleOptionValues) === null || _this$opt$articleOpti2 === void 0 ? void 0 : _this$opt$articleOpti2.values()) !== null && _this$opt$articleOpti !== void 0 ? _this$opt$articleOpti : []);
|
|
18379
|
+
if (opvs.length > 0) {
|
|
18380
|
+
this.opt.hasImages = opvs.some(function (v) {
|
|
18381
|
+
var _v$articleOptionValue;
|
|
18382
|
+
return v.image || v.hexColor || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v2) {
|
|
18383
|
+
return v2.image || v2.hexColor;
|
|
18384
|
+
}));
|
|
18385
|
+
});
|
|
18386
|
+
}
|
|
18387
|
+
}
|
|
18388
|
+
return this.opt.hasImages;
|
|
18375
18389
|
}
|
|
18376
18390
|
}, {
|
|
18377
18391
|
key: "parentOptionCodex",
|
|
@@ -18923,7 +18937,6 @@ function getArticleOptionType(myOPT, set) {
|
|
|
18923
18937
|
sendToSAP: myOPT.SendToSAP && myOPT.SendToSAP != '-1' ? myOPT.SendToSAP : undefined,
|
|
18924
18938
|
articlePlaceholder: myOPT.ArticlePlaceholder,
|
|
18925
18939
|
hasOPG: optHasOpg,
|
|
18926
|
-
hasImages: false,
|
|
18927
18940
|
invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : myOPT.Invisible == 'True' ? true : myOPT.Invisible == 'False' ? false : undefined,
|
|
18928
18941
|
parentOptionCodex: myOPT.ParentOptionCodex
|
|
18929
18942
|
};
|
|
@@ -19938,7 +19951,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19938
19951
|
// Start article that is loaded after starting the planner. used for boxplanner
|
|
19939
19952
|
accessorieStepAsPlanner: false,
|
|
19940
19953
|
// the accessorie step has all the planner capabilities
|
|
19941
|
-
planner2Dot0:
|
|
19954
|
+
planner2Dot0: true,
|
|
19942
19955
|
// the planner is a planner 2.0
|
|
19943
19956
|
dontSaveAlternativeRenderings: false,
|
|
19944
19957
|
// alternative Rendering dont get saved and added to basket and pdf
|
|
@@ -28282,7 +28295,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28282
28295
|
break;
|
|
28283
28296
|
}
|
|
28284
28297
|
_context.next = 4;
|
|
28285
|
-
return import('./ShelfPlanner-
|
|
28298
|
+
return import('./ShelfPlanner-ecbad409.js');
|
|
28286
28299
|
case 4:
|
|
28287
28300
|
_yield$import = _context.sent;
|
|
28288
28301
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -32783,7 +32796,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
32783
32796
|
break;
|
|
32784
32797
|
}
|
|
32785
32798
|
_context5.next = 3;
|
|
32786
|
-
return import('./DoorPlanner-
|
|
32799
|
+
return import('./DoorPlanner-fd15242e.js');
|
|
32787
32800
|
case 3:
|
|
32788
32801
|
_yield$import = _context5.sent;
|
|
32789
32802
|
DoorPlanner = _yield$import["default"];
|
|
@@ -32997,178 +33010,172 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
32997
33010
|
return _createClass(SummaryHandler, [{
|
|
32998
33011
|
key: "buildSummaryItems",
|
|
32999
33012
|
value: function buildSummaryItems(articlesPosNrs, set) {
|
|
33000
|
-
var articles = set.getDivaArticles(true)
|
|
33013
|
+
var articles = Object.values(set.getDivaArticles(true)).filter(function (a) {
|
|
33014
|
+
return !a.relatedToBasketId || a.isPartListArticle;
|
|
33015
|
+
});
|
|
33016
|
+
var baseArticlesCount = Object.values(set.getDivaArticles()).filter(function (a) {
|
|
33017
|
+
return !a.relatedToBasketId;
|
|
33018
|
+
}).length;
|
|
33001
33019
|
var summaryTabItems = {};
|
|
33002
|
-
var
|
|
33003
|
-
|
|
33004
|
-
|
|
33020
|
+
var _iterator = _createForOfIteratorHelper$3(articles),
|
|
33021
|
+
_step;
|
|
33022
|
+
try {
|
|
33023
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
33024
|
+
var article = _step.value;
|
|
33025
|
+
this.getSummaryItemsofArticle(article, set, summaryTabItems, baseArticlesCount);
|
|
33026
|
+
}
|
|
33027
|
+
} catch (err) {
|
|
33028
|
+
_iterator.e(err);
|
|
33029
|
+
} finally {
|
|
33030
|
+
_iterator.f();
|
|
33005
33031
|
}
|
|
33006
|
-
|
|
33007
|
-
|
|
33008
|
-
|
|
33009
|
-
|
|
33010
|
-
|
|
33011
|
-
|
|
33012
|
-
|
|
33013
|
-
|
|
33014
|
-
|
|
33015
|
-
|
|
33016
|
-
|
|
33017
|
-
|
|
33018
|
-
|
|
33019
|
-
|
|
33020
|
-
|
|
33021
|
-
|
|
33022
|
-
|
|
33023
|
-
tabGroupCodex =
|
|
33024
|
-
|
|
33025
|
-
|
|
33026
|
-
|
|
33027
|
-
|
|
33028
|
-
|
|
33029
|
-
|
|
33030
|
-
|
|
33031
|
-
|
|
33032
|
-
|
|
33033
|
-
|
|
33034
|
-
|
|
33035
|
-
|
|
33036
|
-
|
|
33037
|
-
|
|
33038
|
-
|
|
33039
|
-
|
|
33040
|
-
|
|
33041
|
-
|
|
33042
|
-
|
|
33043
|
-
|
|
33044
|
-
|
|
33045
|
-
|
|
33032
|
+
this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs, baseArticlesCount);
|
|
33033
|
+
return summaryTabItems;
|
|
33034
|
+
}
|
|
33035
|
+
}, {
|
|
33036
|
+
key: "getSummaryItemsofArticle",
|
|
33037
|
+
value: function getSummaryItemsofArticle(article, set, summaryTabItems, baseArticlesCount) {
|
|
33038
|
+
var _iterator2 = _createForOfIteratorHelper$3(article.articleOptionStates.values()),
|
|
33039
|
+
_step2;
|
|
33040
|
+
try {
|
|
33041
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
33042
|
+
var ops = _step2.value;
|
|
33043
|
+
if (ops.visibleInSummary(article)) {
|
|
33044
|
+
var tabGroupCodex = void 0;
|
|
33045
|
+
var tabGroupTitel = void 0;
|
|
33046
|
+
if (ops.optionTabGroup) {
|
|
33047
|
+
tabGroupCodex = ops === null || ops === void 0 ? void 0 : ops.optionTabGroup;
|
|
33048
|
+
} else {
|
|
33049
|
+
tabGroupCodex = ops.optionName;
|
|
33050
|
+
}
|
|
33051
|
+
tabGroupTitel = tabGroupCodex;
|
|
33052
|
+
tabGroupCodex = tabGroupCodex.replace(/[^\w\s]/gi, '');
|
|
33053
|
+
if (!summaryTabItems[tabGroupCodex]) {
|
|
33054
|
+
summaryTabItems[tabGroupCodex] = this.newTabGroupSummaryItem(tabGroupTitel, set.getSetId());
|
|
33055
|
+
}
|
|
33056
|
+
var configStep = set.configTree.getConfigStepBasketIdAndOptionCodex(article.basketId, ops.optionCodex);
|
|
33057
|
+
var itemsInTabGroup = summaryTabItems[tabGroupCodex].summaryItems;
|
|
33058
|
+
var itemImage = ops.val.image ? set.CatalogData.getCatImageURL(ops.val.image, '') : undefined;
|
|
33059
|
+
if (configStep && itemsInTabGroup) {
|
|
33060
|
+
var _ops$val, _this$getAdditionalPr;
|
|
33061
|
+
var sameOPVAndOPTDoAlreadyExist = false;
|
|
33062
|
+
var configStepKeyToUse = configStep.key + ((_ops$val = ops.val) === null || _ops$val === void 0 ? void 0 : _ops$val.codex);
|
|
33063
|
+
var posNr = configStep === null || configStep === void 0 ? void 0 : configStep.posNr;
|
|
33064
|
+
if (configStep !== null && configStep !== void 0 && configStep.accessoireArticleCodex && article.relatedToBasketId) {
|
|
33065
|
+
var _set$configTree$getCo;
|
|
33066
|
+
posNr = (_set$configTree$getCo = set.configTree.getConfigStepBasketIdAndOptionCodex(article.relatedToBasketId, 'ACC')) === null || _set$configTree$getCo === void 0 ? void 0 : _set$configTree$getCo.posNr;
|
|
33067
|
+
}
|
|
33068
|
+
//inhalt könnte der selbe sein aber getrennt konfiguriert worden in diesem Fall trotzdem zusammenfassen
|
|
33069
|
+
if (!itemsInTabGroup[configStep.key]) {
|
|
33070
|
+
for (var _key in itemsInTabGroup) {
|
|
33071
|
+
if (itemsInTabGroup[_key].description == ops.name && itemsInTabGroup[_key].image == itemImage && itemsInTabGroup[_key].title == ops.option.name) {
|
|
33072
|
+
sameOPVAndOPTDoAlreadyExist = true;
|
|
33073
|
+
configStepKeyToUse = _key;
|
|
33046
33074
|
}
|
|
33047
|
-
} else {
|
|
33048
|
-
sameOPVAndOPTDoAlreadyExist = true;
|
|
33049
33075
|
}
|
|
33050
|
-
|
|
33051
|
-
|
|
33052
|
-
|
|
33053
|
-
|
|
33054
|
-
|
|
33055
|
-
|
|
33056
|
-
|
|
33057
|
-
|
|
33058
|
-
|
|
33059
|
-
|
|
33060
|
-
|
|
33061
|
-
|
|
33062
|
-
|
|
33063
|
-
|
|
33064
|
-
|
|
33065
|
-
|
|
33066
|
-
|
|
33067
|
-
|
|
33076
|
+
} else {
|
|
33077
|
+
sameOPVAndOPTDoAlreadyExist = true;
|
|
33078
|
+
}
|
|
33079
|
+
var bruttoPrice = (ops.price !== 0 ? ops.price : (_this$getAdditionalPr = this.getAdditionalPriceOfOption(article, ops.optionCodex)) !== null && _this$getAdditionalPr !== void 0 ? _this$getAdditionalPr : 0) * ops.quantity;
|
|
33080
|
+
var rabatt = set.getCurrentDisountPercentage();
|
|
33081
|
+
var price = rabatt ? DivaUtils.roundPrice(bruttoPrice * ((100 - rabatt) / 100), 1, 2) : bruttoPrice;
|
|
33082
|
+
if (!sameOPVAndOPTDoAlreadyExist) {
|
|
33083
|
+
var _ops$val$contentItemI, _ops$val2, _ops$val3;
|
|
33084
|
+
itemsInTabGroup[configStepKeyToUse] = {
|
|
33085
|
+
title: ops.optionName,
|
|
33086
|
+
title_locales: ops.optionName_locales,
|
|
33087
|
+
tabgroupName: tabGroupTitel,
|
|
33088
|
+
description: ops.name,
|
|
33089
|
+
description_locales: ops.valName_locales,
|
|
33090
|
+
posNr: posNr,
|
|
33091
|
+
price: price,
|
|
33092
|
+
targetArticlePosNrs: [article.posNr],
|
|
33093
|
+
targetBasketIds: [article.basketId],
|
|
33094
|
+
image: itemImage,
|
|
33095
|
+
isDefined: ops.isDefined,
|
|
33096
|
+
setId: set.getSetId(),
|
|
33097
|
+
contentItemId: (_ops$val$contentItemI = (_ops$val2 = ops.val) === null || _ops$val2 === void 0 ? void 0 : _ops$val2.contentItemId) !== null && _ops$val$contentItemI !== void 0 ? _ops$val$contentItemI : (_ops$val3 = ops.val) === null || _ops$val3 === void 0 ? void 0 : _ops$val3.groupContentItemId,
|
|
33098
|
+
optionContentItemId: ops.option.contentItemId,
|
|
33099
|
+
includesAllPosNrs: baseArticlesCount <= 1
|
|
33100
|
+
};
|
|
33101
|
+
} else {
|
|
33102
|
+
var _summaryItem$targetAr, _summaryItem$targetAr2, _summaryItem$targetAr3;
|
|
33103
|
+
var summaryItem = itemsInTabGroup[configStepKeyToUse];
|
|
33104
|
+
if (summaryItem.price == undefined) {
|
|
33105
|
+
summaryItem.price = price;
|
|
33068
33106
|
} else {
|
|
33069
|
-
|
|
33070
|
-
var summaryItem = itemsInTabGroup[configStepKeyToUse];
|
|
33071
|
-
if (summaryItem.price == undefined) {
|
|
33072
|
-
summaryItem.price = price;
|
|
33073
|
-
} else {
|
|
33074
|
-
summaryItem.price = summaryItem.price + price * ops.quantity;
|
|
33075
|
-
}
|
|
33076
|
-
(_summaryItem$targetAr = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr === void 0 || _summaryItem$targetAr.push(articlesPosNrs[basketId]);
|
|
33077
|
-
summaryItem.targetBasketIds.push(basketId);
|
|
33107
|
+
summaryItem.price = summaryItem.price + price * ops.quantity;
|
|
33078
33108
|
}
|
|
33109
|
+
(_summaryItem$targetAr = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr === void 0 || _summaryItem$targetAr.push(article.posNr);
|
|
33110
|
+
if (((_summaryItem$targetAr2 = (_summaryItem$targetAr3 = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr3 === void 0 ? void 0 : _summaryItem$targetAr3.length) !== null && _summaryItem$targetAr2 !== void 0 ? _summaryItem$targetAr2 : 0) >= baseArticlesCount) {
|
|
33111
|
+
summaryItem.includesAllPosNrs = true;
|
|
33112
|
+
}
|
|
33113
|
+
summaryItem.targetBasketIds.push(article.basketId);
|
|
33079
33114
|
}
|
|
33080
33115
|
}
|
|
33081
33116
|
}
|
|
33082
|
-
} catch (err) {
|
|
33083
|
-
_iterator.e(err);
|
|
33084
|
-
} finally {
|
|
33085
|
-
_iterator.f();
|
|
33086
33117
|
}
|
|
33118
|
+
} catch (err) {
|
|
33119
|
+
_iterator2.e(err);
|
|
33120
|
+
} finally {
|
|
33121
|
+
_iterator2.f();
|
|
33087
33122
|
}
|
|
33088
|
-
if (set.showAccessioreOnLastTab) {
|
|
33089
|
-
this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs);
|
|
33090
|
-
}
|
|
33091
|
-
return summaryTabItems;
|
|
33092
33123
|
}
|
|
33093
33124
|
}, {
|
|
33094
33125
|
key: "addAccessoires",
|
|
33095
|
-
value: function addAccessoires(articles, summaryTabItems, set, articlesPosNrs) {
|
|
33096
|
-
|
|
33097
|
-
|
|
33098
|
-
|
|
33099
|
-
|
|
33100
|
-
|
|
33101
|
-
var
|
|
33102
|
-
|
|
33103
|
-
var
|
|
33104
|
-
|
|
33105
|
-
var
|
|
33106
|
-
|
|
33107
|
-
|
|
33108
|
-
|
|
33109
|
-
|
|
33110
|
-
|
|
33111
|
-
|
|
33112
|
-
|
|
33113
|
-
|
|
33114
|
-
|
|
33115
|
-
|
|
33116
|
-
|
|
33117
|
-
|
|
33118
|
-
|
|
33119
|
-
|
|
33120
|
-
|
|
33121
|
-
|
|
33122
|
-
|
|
33123
|
-
|
|
33124
|
-
|
|
33125
|
-
|
|
33126
|
-
|
|
33127
|
-
|
|
33128
|
-
|
|
33126
|
+
value: function addAccessoires(articles, summaryTabItems, set, articlesPosNrs, baseArticlesCount) {
|
|
33127
|
+
var _iterator3 = _createForOfIteratorHelper$3(articles),
|
|
33128
|
+
_step3;
|
|
33129
|
+
try {
|
|
33130
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
33131
|
+
var article = _step3.value;
|
|
33132
|
+
var basketId = article.basketId;
|
|
33133
|
+
//add accessoires
|
|
33134
|
+
for (var _key2 in article.accessoires) {
|
|
33135
|
+
var _ref, _ref2, _set$configTree$getCo2, _set$configTree$getCo3, _set$configTree$getCo4, _set$configTree$getCo5, _accessoire$accessoir, _accessoire$accessoir2, _accessoire$relatedTo, _set$configTree$getCo6;
|
|
33136
|
+
var accessoire = article.accessoires[_key2];
|
|
33137
|
+
var entryKey = basketId + accessoire.articleCodex + accessoire.articleHash;
|
|
33138
|
+
if (!summaryTabItems['ZUSATZARTIKEL']) {
|
|
33139
|
+
var _set$i18n$t, _set$i18n;
|
|
33140
|
+
summaryTabItems['ZUSATZARTIKEL'] = this.newTabGroupSummaryItem((_set$i18n$t = (_set$i18n = set.i18n) === null || _set$i18n === void 0 ? void 0 : _set$i18n.t('configurator.ZUSATZARTIKEL', 'ZUSATZARTIKEL')) !== null && _set$i18n$t !== void 0 ? _set$i18n$t : 'ZUSATZARTIKEL', set.getSetId());
|
|
33141
|
+
}
|
|
33142
|
+
var tabGroup = summaryTabItems['ZUSATZARTIKEL'];
|
|
33143
|
+
var posNr = (_ref = (_ref2 = (_set$configTree$getCo2 = (_set$configTree$getCo3 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, 'ACC')) === null || _set$configTree$getCo3 === void 0 ? void 0 : _set$configTree$getCo3.posNr) !== null && _set$configTree$getCo2 !== void 0 ? _set$configTree$getCo2 : (_set$configTree$getCo4 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, 'SHELFARTICLE_' + basketId + '_' + accessoire.relatedToShelfGrid)) === null || _set$configTree$getCo4 === void 0 ? void 0 : _set$configTree$getCo4.posNr) !== null && _ref2 !== void 0 ? _ref2 : (_set$configTree$getCo5 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, (_accessoire$accessoir = (_accessoire$accessoir2 = accessoire.accessoireParentArticle) === null || _accessoire$accessoir2 === void 0 || (_accessoire$accessoir2 = _accessoire$accessoir2.shelfPlanner) === null || _accessoire$accessoir2 === void 0 || (_accessoire$accessoir2 = _accessoire$accessoir2.getGridByIndex((_accessoire$relatedTo = accessoire.relatedToShelfGrid) !== null && _accessoire$relatedTo !== void 0 ? _accessoire$relatedTo : -1)) === null || _accessoire$accessoir2 === void 0 ? void 0 : _accessoire$accessoir2.gridGroup) !== null && _accessoire$accessoir !== void 0 ? _accessoire$accessoir : '')) === null || _set$configTree$getCo5 === void 0 ? void 0 : _set$configTree$getCo5.posNr) !== null && _ref !== void 0 ? _ref : (_set$configTree$getCo6 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, 'PLANNER')) === null || _set$configTree$getCo6 === void 0 ? void 0 : _set$configTree$getCo6.posNr;
|
|
33144
|
+
if (tabGroup.summaryItems && posNr) {
|
|
33145
|
+
if (tabGroup.summaryItems[entryKey]) {
|
|
33146
|
+
tabGroup.summaryItems[entryKey].quantity += article.quantity;
|
|
33147
|
+
tabGroup.summaryItems[entryKey].price += accessoire.calcPrice();
|
|
33148
|
+
} else {
|
|
33149
|
+
var _set$i18n$t2, _set$i18n2, _accessoire$catalogAr, _accessoire$catalogAr2, _accessoire$catalogAr3;
|
|
33150
|
+
var summaryItems = {};
|
|
33151
|
+
this.getSummaryItemsofArticle(accessoire, set, summaryItems, 0);
|
|
33152
|
+
this.addAccessoires([accessoire], summaryItems, set, articlesPosNrs, baseArticlesCount);
|
|
33153
|
+
tabGroup.summaryItems[entryKey] = {
|
|
33154
|
+
title: accessoire.name,
|
|
33155
|
+
tabgroupName: (_set$i18n$t2 = (_set$i18n2 = set.i18n) === null || _set$i18n2 === void 0 ? void 0 : _set$i18n2.t('configurator.ZUSATZARTIKEL', 'ZUSATZARTIKEL')) !== null && _set$i18n$t2 !== void 0 ? _set$i18n$t2 : 'ZUSATZARTIKEL',
|
|
33156
|
+
description: accessoire.actSizeText,
|
|
33157
|
+
posNr: posNr,
|
|
33158
|
+
price: accessoire.calcPrice(),
|
|
33159
|
+
quantity: accessoire.quantity,
|
|
33160
|
+
targetArticlePosNrs: [articlesPosNrs[basketId]],
|
|
33161
|
+
targetBasketIds: [basketId],
|
|
33162
|
+
image: accessoire.imageUrl ? accessoire.CatalogData.getCatImageURL(accessoire.imageUrl, '') : undefined,
|
|
33163
|
+
isDefined: true,
|
|
33164
|
+
setId: set.getSetId(),
|
|
33165
|
+
contentItemId: (_accessoire$catalogAr = (_accessoire$catalogAr2 = accessoire.catalogArticle) === null || _accessoire$catalogAr2 === void 0 ? void 0 : _accessoire$catalogAr2.contentItemId) !== null && _accessoire$catalogAr !== void 0 ? _accessoire$catalogAr : (_accessoire$catalogAr3 = accessoire.catalogArticle) === null || _accessoire$catalogAr3 === void 0 ? void 0 : _accessoire$catalogAr3.groupContentItemId,
|
|
33166
|
+
includesAllPosNrs: baseArticlesCount == 1,
|
|
33167
|
+
summaryItems: summaryItems
|
|
33168
|
+
};
|
|
33169
|
+
}
|
|
33129
33170
|
}
|
|
33130
33171
|
}
|
|
33131
33172
|
}
|
|
33173
|
+
} catch (err) {
|
|
33174
|
+
_iterator3.e(err);
|
|
33175
|
+
} finally {
|
|
33176
|
+
_iterator3.f();
|
|
33132
33177
|
}
|
|
33133
33178
|
}
|
|
33134
|
-
}, {
|
|
33135
|
-
key: "buildSummaryItemsOfPartlist",
|
|
33136
|
-
value: function buildSummaryItemsOfPartlist(set) {
|
|
33137
|
-
var partlistArticles = set.getPartlistArticlesOfSet();
|
|
33138
|
-
var catalogData = set.CatalogData;
|
|
33139
|
-
var ret = {};
|
|
33140
|
-
for (var _key3 in partlistArticles) {
|
|
33141
|
-
var article = partlistArticles[_key3];
|
|
33142
|
-
var foundBasketId = undefined;
|
|
33143
|
-
for (var jKey in ret) {
|
|
33144
|
-
if (ret[jKey].description == article.articleCodex) {
|
|
33145
|
-
foundBasketId = jKey;
|
|
33146
|
-
break;
|
|
33147
|
-
}
|
|
33148
|
-
}
|
|
33149
|
-
if (!foundBasketId) {
|
|
33150
|
-
ret[article.basketId] = {
|
|
33151
|
-
title: article.name,
|
|
33152
|
-
description: article.articleCodex,
|
|
33153
|
-
targetArticlePosNrs: [article.quantity],
|
|
33154
|
-
targetBasketIds: [article.basketId],
|
|
33155
|
-
price: article.calcPrice(),
|
|
33156
|
-
image: article.image ? catalogData.getCatImageURL(article.image, '') : undefined,
|
|
33157
|
-
posNr: article.quantity,
|
|
33158
|
-
quantity: article.quantity,
|
|
33159
|
-
isDefined: true,
|
|
33160
|
-
setId: set.getSetId()
|
|
33161
|
-
};
|
|
33162
|
-
} else {
|
|
33163
|
-
var _ret$foundBasketId$qu, _ret$foundBasketId$pr;
|
|
33164
|
-
ret[foundBasketId].quantity = ((_ret$foundBasketId$qu = ret[foundBasketId].quantity) !== null && _ret$foundBasketId$qu !== void 0 ? _ret$foundBasketId$qu : 0) + article.quantity;
|
|
33165
|
-
ret[foundBasketId].price = ((_ret$foundBasketId$pr = ret[foundBasketId].price) !== null && _ret$foundBasketId$pr !== void 0 ? _ret$foundBasketId$pr : 0) + article.price;
|
|
33166
|
-
ret[foundBasketId].posNr = ret[foundBasketId].posNr + article.quantity;
|
|
33167
|
-
ret[foundBasketId].targetArticlePosNrs[0] = ret[foundBasketId].targetArticlePosNrs[0] + article.quantity;
|
|
33168
|
-
}
|
|
33169
|
-
}
|
|
33170
|
-
return ret;
|
|
33171
|
-
}
|
|
33172
33179
|
|
|
33173
33180
|
/**Lück specific summary */
|
|
33174
33181
|
}, {
|
|
@@ -33307,8 +33314,8 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33307
33314
|
delete summaryTabItems[p];
|
|
33308
33315
|
}
|
|
33309
33316
|
}
|
|
33310
|
-
for (var
|
|
33311
|
-
summaryTabItemsSorted[
|
|
33317
|
+
for (var _key3 in summaryTabItems) {
|
|
33318
|
+
summaryTabItemsSorted[_key3] = summaryTabItems[_key3];
|
|
33312
33319
|
}
|
|
33313
33320
|
} else {
|
|
33314
33321
|
summaryTabItemsSorted = summaryTabItems;
|
|
@@ -33336,7 +33343,7 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33336
33343
|
key: "getSummaryItems",
|
|
33337
33344
|
value: function () {
|
|
33338
33345
|
var _getSummaryItems = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(sets, doConfigure) {
|
|
33339
|
-
var ret,
|
|
33346
|
+
var ret, _key4, set, type;
|
|
33340
33347
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
33341
33348
|
while (1) switch (_context.prev = _context.next) {
|
|
33342
33349
|
case 0:
|
|
@@ -33344,46 +33351,35 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33344
33351
|
_context.t0 = _regeneratorRuntime.keys(sets);
|
|
33345
33352
|
case 2:
|
|
33346
33353
|
if ((_context.t1 = _context.t0()).done) {
|
|
33347
|
-
_context.next =
|
|
33354
|
+
_context.next = 21;
|
|
33348
33355
|
break;
|
|
33349
33356
|
}
|
|
33350
|
-
|
|
33351
|
-
set = sets[
|
|
33352
|
-
items = void 0;
|
|
33357
|
+
_key4 = _context.t1.value;
|
|
33358
|
+
set = sets[_key4];
|
|
33353
33359
|
type = this.getSummaryType(set);
|
|
33354
33360
|
_context.t2 = type;
|
|
33355
|
-
_context.next = _context.t2 === '
|
|
33361
|
+
_context.next = _context.t2 === 'SUMMARY_OPTIONTREE' ? 9 : _context.t2 === 'VARIANTS' ? 11 : _context.t2 === 'PARTLIST_AND_SPECIALOPTIONS' ? 17 : 19;
|
|
33356
33362
|
break;
|
|
33357
|
-
case
|
|
33358
|
-
items = this.buildSummaryItemsOfPartlist(set);
|
|
33359
|
-
ret.push({
|
|
33360
|
-
items: items,
|
|
33361
|
-
type: type,
|
|
33362
|
-
name: set.CatalogData.catalogName,
|
|
33363
|
-
price: set.getSetPrice(),
|
|
33364
|
-
quantity: 1
|
|
33365
|
-
});
|
|
33366
|
-
return _context.abrupt("break", 23);
|
|
33367
|
-
case 13:
|
|
33363
|
+
case 9:
|
|
33368
33364
|
ret = ret.concat(this.getOptionTreeSummary(set));
|
|
33369
|
-
return _context.abrupt("break",
|
|
33370
|
-
case
|
|
33365
|
+
return _context.abrupt("break", 19);
|
|
33366
|
+
case 11:
|
|
33371
33367
|
_context.t3 = ret;
|
|
33372
|
-
_context.next =
|
|
33368
|
+
_context.next = 14;
|
|
33373
33369
|
return this.getVariantsSummary(doConfigure, set);
|
|
33374
|
-
case
|
|
33370
|
+
case 14:
|
|
33375
33371
|
_context.t4 = _context.sent;
|
|
33376
33372
|
_context.t3.push.call(_context.t3, _context.t4);
|
|
33377
|
-
return _context.abrupt("break",
|
|
33378
|
-
case
|
|
33373
|
+
return _context.abrupt("break", 19);
|
|
33374
|
+
case 17:
|
|
33379
33375
|
ret.push(this.buildSummaryItemsOfPartlistWithSpecialOptions(set));
|
|
33380
|
-
return _context.abrupt("break",
|
|
33381
|
-
case
|
|
33376
|
+
return _context.abrupt("break", 19);
|
|
33377
|
+
case 19:
|
|
33382
33378
|
_context.next = 2;
|
|
33383
33379
|
break;
|
|
33384
|
-
case
|
|
33380
|
+
case 21:
|
|
33385
33381
|
return _context.abrupt("return", ret);
|
|
33386
|
-
case
|
|
33382
|
+
case 22:
|
|
33387
33383
|
case "end":
|
|
33388
33384
|
return _context.stop();
|
|
33389
33385
|
}
|
|
@@ -33402,17 +33398,17 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33402
33398
|
if (Object.keys((_summaryItems$0$items = (_summaryItems$ = summaryItems[0]) === null || _summaryItems$ === void 0 ? void 0 : _summaryItems$.items) !== null && _summaryItems$0$items !== void 0 ? _summaryItems$0$items : {}).length === 0) {
|
|
33403
33399
|
var articles = Object.values(set.getDivaArticles());
|
|
33404
33400
|
var ret = [];
|
|
33405
|
-
var _loop = function _loop(
|
|
33401
|
+
var _loop = function _loop(_key5) {
|
|
33406
33402
|
var _articles$find;
|
|
33407
33403
|
var ops = (_articles$find = articles.find(function (a) {
|
|
33408
|
-
return a.getArticleOptionState(
|
|
33409
|
-
})) === null || _articles$find === void 0 ? void 0 : _articles$find.getArticleOptionState(
|
|
33404
|
+
return a.getArticleOptionState(_key5);
|
|
33405
|
+
})) === null || _articles$find === void 0 ? void 0 : _articles$find.getArticleOptionState(_key5);
|
|
33410
33406
|
if (ops && !(ops !== null && ops !== void 0 && ops.isDoShow)) {
|
|
33411
33407
|
ret.push(ops.name);
|
|
33412
33408
|
}
|
|
33413
33409
|
};
|
|
33414
|
-
for (var
|
|
33415
|
-
_loop(
|
|
33410
|
+
for (var _key5 in set.favorites.VariantValues) {
|
|
33411
|
+
_loop(_key5);
|
|
33416
33412
|
}
|
|
33417
33413
|
return ret.length ? ret.join('<br/>') : 'ERROR';
|
|
33418
33414
|
}
|
|
@@ -33426,8 +33422,8 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33426
33422
|
var summaryObject = (_this$getOptionTreeSu = this.getOptionTreeSummary(set)[0]) === null || _this$getOptionTreeSu === void 0 ? void 0 : _this$getOptionTreeSu.items;
|
|
33427
33423
|
var SummaryInfo = [];
|
|
33428
33424
|
var counter = 0;
|
|
33429
|
-
for (var
|
|
33430
|
-
var mySummaryObejct = summaryObject[
|
|
33425
|
+
for (var _key6 in summaryObject) {
|
|
33426
|
+
var mySummaryObejct = summaryObject[_key6];
|
|
33431
33427
|
if (mySummaryObejct.isTabGroup) {
|
|
33432
33428
|
var GroupDataInitParams = {
|
|
33433
33429
|
SetID: set.getSetId(),
|
|
@@ -33453,12 +33449,10 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33453
33449
|
value: function getSummaryType(set) {
|
|
33454
33450
|
var _set$ViewConfig;
|
|
33455
33451
|
var summaryType = 'SUMMARY_OPTIONTREE';
|
|
33456
|
-
|
|
33452
|
+
set.getPlannerEdition();
|
|
33457
33453
|
var viewConfigSummaryType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.LoadSummaryType;
|
|
33458
33454
|
if (favoritesHandlerInstance.FavoritesDefined(set)) {
|
|
33459
33455
|
summaryType = 'VARIANTS';
|
|
33460
|
-
} else if (plannerType === 'BOX') {
|
|
33461
|
-
summaryType = 'SUMMARY_PARTLIST';
|
|
33462
33456
|
} else if (set.doAllowSetPlanner) {
|
|
33463
33457
|
summaryType = 'SUMMARY_ARTICLES';
|
|
33464
33458
|
} else if (viewConfigSummaryType) {
|
|
@@ -33481,8 +33475,8 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33481
33475
|
}
|
|
33482
33476
|
};
|
|
33483
33477
|
}
|
|
33484
|
-
for (var
|
|
33485
|
-
var group = elementGroups[
|
|
33478
|
+
for (var _key7 in elementGroups) {
|
|
33479
|
+
var group = elementGroups[_key7];
|
|
33486
33480
|
ret.push({
|
|
33487
33481
|
items: this.buildSummaryItems(this.getArticlesPosNr(group.articles), set),
|
|
33488
33482
|
price: this.getArticlesPrice(group.articles),
|
|
@@ -33497,11 +33491,11 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33497
33491
|
key: "getSummaryItemsOfAllSets",
|
|
33498
33492
|
value: function getSummaryItemsOfAllSets(sets, set) {
|
|
33499
33493
|
var summaryItemsOfAllSets = {};
|
|
33500
|
-
for (var
|
|
33501
|
-
var _set = sets[
|
|
33494
|
+
for (var _key8 in sets) {
|
|
33495
|
+
var _set = sets[_key8];
|
|
33502
33496
|
var articlePosNrs = this.getArticlesPosNr(_set.getDivaArticles(true));
|
|
33503
33497
|
var summaryItems = this.buildSummaryItems(articlePosNrs, _set);
|
|
33504
|
-
summaryItemsOfAllSets[
|
|
33498
|
+
summaryItemsOfAllSets[_key8] = {
|
|
33505
33499
|
setName: _set.CatalogData.catalogName,
|
|
33506
33500
|
setPrice: _set.getSetPrice(),
|
|
33507
33501
|
summaryItems: summaryItems
|
|
@@ -33515,10 +33509,10 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33515
33509
|
var groupedArticles = setHandlerInstance.getDockedGroupedArticles(set);
|
|
33516
33510
|
var retGroups = {};
|
|
33517
33511
|
var articlesCodexesOnIndex = {};
|
|
33518
|
-
for (var
|
|
33519
|
-
var basketId = groupedArticles[
|
|
33512
|
+
for (var _key9 in groupedArticles) {
|
|
33513
|
+
var basketId = groupedArticles[_key9][Object.keys(groupedArticles[_key9])[0]].basketId;
|
|
33520
33514
|
retGroups[basketId] = {
|
|
33521
|
-
articles: groupedArticles[
|
|
33515
|
+
articles: groupedArticles[_key9],
|
|
33522
33516
|
quantity: 1
|
|
33523
33517
|
};
|
|
33524
33518
|
}
|
|
@@ -33533,12 +33527,12 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33533
33527
|
articlesCodexesOnIndex[articleCodex].push(i);
|
|
33534
33528
|
}
|
|
33535
33529
|
}
|
|
33536
|
-
for (var
|
|
33537
|
-
if (articlesCodexesOnIndex[
|
|
33530
|
+
for (var _key10 in articlesCodexesOnIndex) {
|
|
33531
|
+
if (articlesCodexesOnIndex[_key10].length > 1) {
|
|
33538
33532
|
//group the single groups by the aricleCodex
|
|
33539
33533
|
var articles = [];
|
|
33540
|
-
for (var _i4 = 0; _i4 < articlesCodexesOnIndex[
|
|
33541
|
-
var _group = groupedArticles[articlesCodexesOnIndex[
|
|
33534
|
+
for (var _i4 = 0; _i4 < articlesCodexesOnIndex[_key10].length; _i4++) {
|
|
33535
|
+
var _group = groupedArticles[articlesCodexesOnIndex[_key10][_i4]];
|
|
33542
33536
|
articles.push({
|
|
33543
33537
|
article: _group[Object.keys(_group)[0]]
|
|
33544
33538
|
});
|
|
@@ -33583,11 +33577,11 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33583
33577
|
var isIDM = article.CatalogData.isIDMFormat;
|
|
33584
33578
|
var tabGroups = [];
|
|
33585
33579
|
for (var basketId in article.partlistArticles) {
|
|
33586
|
-
var _ops$
|
|
33580
|
+
var _ops$val4;
|
|
33587
33581
|
var partlistArticle = article.partlistArticles[basketId];
|
|
33588
33582
|
if (!partlistArticle.tabGroup) continue;
|
|
33589
33583
|
var ops = article.getArticleOptionState((!isIDM ? 'OPT' : '') + partlistArticle.tabGroup);
|
|
33590
|
-
if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$
|
|
33584
|
+
if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val4 = ops.val) !== null && _ops$val4 !== void 0 && _ops$val4.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
|
|
33591
33585
|
tabGroups.push({
|
|
33592
33586
|
optionCodex: ops.optionCodex,
|
|
33593
33587
|
tabGroup: ops.optionTabGroup
|
|
@@ -33811,8 +33805,8 @@ var SummaryHandler = /*#__PURE__*/function () {
|
|
|
33811
33805
|
key: "getArticlesPrice",
|
|
33812
33806
|
value: function getArticlesPrice(articles) {
|
|
33813
33807
|
var price = 0;
|
|
33814
|
-
for (var
|
|
33815
|
-
price = price + articles[
|
|
33808
|
+
for (var _key11 in articles) {
|
|
33809
|
+
price = price + articles[_key11].price * articles[_key11].quantity;
|
|
33816
33810
|
}
|
|
33817
33811
|
return price;
|
|
33818
33812
|
}
|
|
@@ -34722,6 +34716,12 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34722
34716
|
_iterator.f();
|
|
34723
34717
|
}
|
|
34724
34718
|
}
|
|
34719
|
+
this.checkForMergableSelectionModes(set.configTree);
|
|
34720
|
+
}
|
|
34721
|
+
}, {
|
|
34722
|
+
key: "checkForMergableSelectionModes",
|
|
34723
|
+
value: function checkForMergableSelectionModes(configTree) {
|
|
34724
|
+
return;
|
|
34725
34725
|
}
|
|
34726
34726
|
}, {
|
|
34727
34727
|
key: "addOptionsStateToConfigTree",
|
|
@@ -35011,7 +35011,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35011
35011
|
key: "getConifgItemsForView",
|
|
35012
35012
|
value: function () {
|
|
35013
35013
|
var _getConifgItemsForView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, configStepKey) {
|
|
35014
|
-
var articles, step, retValues, optionCodex, configItems, selectedItems, optionState,
|
|
35014
|
+
var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, _iterator5, _step5, _configItem$parent$oc, key, configItem, configItemsInOPG, retVal, _retVal, totalTime, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _iterator6, _step6, _set$favorites$Varian, _set$favorites, _key, startTime, alreadyCalcedVisibleOPVs, _i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, i, timeDiff;
|
|
35015
35015
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
35016
35016
|
while (1) switch (_context.prev = _context.next) {
|
|
35017
35017
|
case 0:
|
|
@@ -35037,15 +35037,15 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35037
35037
|
_context.next = 36;
|
|
35038
35038
|
break;
|
|
35039
35039
|
}
|
|
35040
|
-
|
|
35040
|
+
_iterator5 = _createForOfIteratorHelper$2(retValues.configItems.keys());
|
|
35041
35041
|
_context.prev = 13;
|
|
35042
|
-
|
|
35042
|
+
_iterator5.s();
|
|
35043
35043
|
case 15:
|
|
35044
|
-
if ((
|
|
35044
|
+
if ((_step5 = _iterator5.n()).done) {
|
|
35045
35045
|
_context.next = 26;
|
|
35046
35046
|
break;
|
|
35047
35047
|
}
|
|
35048
|
-
key =
|
|
35048
|
+
key = _step5.value;
|
|
35049
35049
|
configItem = retValues.configItems.get(key);
|
|
35050
35050
|
if (configItem) {
|
|
35051
35051
|
_context.next = 20;
|
|
@@ -35074,10 +35074,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35074
35074
|
case 28:
|
|
35075
35075
|
_context.prev = 28;
|
|
35076
35076
|
_context.t0 = _context["catch"](13);
|
|
35077
|
-
|
|
35077
|
+
_iterator5.e(_context.t0);
|
|
35078
35078
|
case 31:
|
|
35079
35079
|
_context.prev = 31;
|
|
35080
|
-
|
|
35080
|
+
_iterator5.f();
|
|
35081
35081
|
return _context.finish(31);
|
|
35082
35082
|
case 34:
|
|
35083
35083
|
_context.next = 93;
|
|
@@ -35122,15 +35122,15 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35122
35122
|
originalVariantValues = targetArticle.VariantValues;
|
|
35123
35123
|
seomethingChanged = false;
|
|
35124
35124
|
variantValues = {};
|
|
35125
|
-
|
|
35125
|
+
_iterator6 = _createForOfIteratorHelper$2(opg.visibleOptionValues.keys());
|
|
35126
35126
|
_context.prev = 57;
|
|
35127
|
-
|
|
35127
|
+
_iterator6.s();
|
|
35128
35128
|
case 59:
|
|
35129
|
-
if ((
|
|
35129
|
+
if ((_step6 = _iterator6.n()).done) {
|
|
35130
35130
|
_context.next = 79;
|
|
35131
35131
|
break;
|
|
35132
35132
|
}
|
|
35133
|
-
_key =
|
|
35133
|
+
_key = _step6.value;
|
|
35134
35134
|
startTime = Date.now(); //die sichtbaren gruppen werden nun nacheinander beim Artikel gesetzt und die Validen bezüge jeder gruppe geholt -> visibleOptionValues;
|
|
35135
35135
|
variantValues[opg.optionCodex] = opg.visibleOptionValues.get(_key).codex;
|
|
35136
35136
|
alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
|
|
@@ -35169,10 +35169,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35169
35169
|
case 81:
|
|
35170
35170
|
_context.prev = 81;
|
|
35171
35171
|
_context.t1 = _context["catch"](57);
|
|
35172
|
-
|
|
35172
|
+
_iterator6.e(_context.t1);
|
|
35173
35173
|
case 84:
|
|
35174
35174
|
_context.prev = 84;
|
|
35175
|
-
|
|
35175
|
+
_iterator6.f();
|
|
35176
35176
|
return _context.finish(84);
|
|
35177
35177
|
case 87:
|
|
35178
35178
|
if (!seomethingChanged) {
|
|
@@ -35252,19 +35252,19 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35252
35252
|
constructionRules = myOptionState.constructionRules;
|
|
35253
35253
|
configItems = new Map(myOptionState.visibleOptionValues);
|
|
35254
35254
|
} else {
|
|
35255
|
-
var
|
|
35256
|
-
|
|
35255
|
+
var _iterator7 = _createForOfIteratorHelper$2(configItems.keys()),
|
|
35256
|
+
_step7;
|
|
35257
35257
|
try {
|
|
35258
|
-
for (
|
|
35259
|
-
var _key2 =
|
|
35258
|
+
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
35259
|
+
var _key2 = _step7.value;
|
|
35260
35260
|
if (!myOptionState.visibleOptionValues.get(_key2)) {
|
|
35261
35261
|
configItems["delete"](_key2);
|
|
35262
35262
|
}
|
|
35263
35263
|
}
|
|
35264
35264
|
} catch (err) {
|
|
35265
|
-
|
|
35265
|
+
_iterator7.e(err);
|
|
35266
35266
|
} finally {
|
|
35267
|
-
|
|
35267
|
+
_iterator7.f();
|
|
35268
35268
|
}
|
|
35269
35269
|
}
|
|
35270
35270
|
} else if (i == 0 && configStep.targetArticles.length == 1) {
|
|
@@ -35369,11 +35369,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35369
35369
|
ret = false;
|
|
35370
35370
|
var articles = set.getDivaArticles();
|
|
35371
35371
|
for (var basketId in articles) {
|
|
35372
|
-
var
|
|
35373
|
-
|
|
35372
|
+
var _iterator8 = _createForOfIteratorHelper$2(articles[basketId].articleOptionStates.values()),
|
|
35373
|
+
_step8;
|
|
35374
35374
|
try {
|
|
35375
|
-
for (
|
|
35376
|
-
var ops =
|
|
35375
|
+
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
35376
|
+
var ops = _step8.value;
|
|
35377
35377
|
if (ops.headerPosVariationType == 'K') {
|
|
35378
35378
|
if (optionValues[ops.optionCodex] == undefined) {
|
|
35379
35379
|
optionValues[ops.optionCodex] = ops.valCodex ? ops.valCodex : null;
|
|
@@ -35386,9 +35386,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35386
35386
|
}
|
|
35387
35387
|
}
|
|
35388
35388
|
} catch (err) {
|
|
35389
|
-
|
|
35389
|
+
_iterator8.e(err);
|
|
35390
35390
|
} finally {
|
|
35391
|
-
|
|
35391
|
+
_iterator8.f();
|
|
35392
35392
|
}
|
|
35393
35393
|
if (ret == true) break;
|
|
35394
35394
|
}
|
|
@@ -35509,12 +35509,12 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35509
35509
|
for (var iKey in optionStatesOfArticles) {
|
|
35510
35510
|
//hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
|
|
35511
35511
|
var optionsStates = optionStatesOfArticles[iKey];
|
|
35512
|
-
var
|
|
35513
|
-
|
|
35512
|
+
var _iterator9 = _createForOfIteratorHelper$2(optionsStates.values()),
|
|
35513
|
+
_step9;
|
|
35514
35514
|
try {
|
|
35515
|
-
for (
|
|
35515
|
+
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
35516
35516
|
var _ops$addToMeasure2;
|
|
35517
|
-
var ops =
|
|
35517
|
+
var ops = _step9.value;
|
|
35518
35518
|
var selectionmode = ops.selectionmode;
|
|
35519
35519
|
if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
|
|
35520
35520
|
if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0 || !!((_ops$addToMeasure2 = ops.addToMeasure) !== null && _ops$addToMeasure2 !== void 0 && _ops$addToMeasure2.length)) {
|
|
@@ -35522,9 +35522,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35522
35522
|
}
|
|
35523
35523
|
}
|
|
35524
35524
|
} catch (err) {
|
|
35525
|
-
|
|
35525
|
+
_iterator9.e(err);
|
|
35526
35526
|
} finally {
|
|
35527
|
-
|
|
35527
|
+
_iterator9.f();
|
|
35528
35528
|
}
|
|
35529
35529
|
}
|
|
35530
35530
|
return configTree;
|
|
@@ -37392,7 +37392,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
37392
37392
|
articleInfos: articleInfos,
|
|
37393
37393
|
doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
|
|
37394
37394
|
isConfigSingle: isConfigSingle,
|
|
37395
|
-
articleName: ''
|
|
37395
|
+
articleName: '',
|
|
37396
|
+
bbox: this.getBBoxObject(set)
|
|
37396
37397
|
};
|
|
37397
37398
|
}
|
|
37398
37399
|
}, {
|
|
@@ -39787,7 +39788,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39787
39788
|
break;
|
|
39788
39789
|
case 3:
|
|
39789
39790
|
_context12.next = 5;
|
|
39790
|
-
return import('./PfisterWWSHandler-
|
|
39791
|
+
return import('./PfisterWWSHandler-55f4ec64.js');
|
|
39791
39792
|
case 5:
|
|
39792
39793
|
_yield$import = _context12.sent;
|
|
39793
39794
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -39795,7 +39796,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39795
39796
|
return _context12.abrupt("break", 27);
|
|
39796
39797
|
case 9:
|
|
39797
39798
|
_context12.next = 11;
|
|
39798
|
-
return import('./LiviqueWWSHandler-
|
|
39799
|
+
return import('./LiviqueWWSHandler-e04621da.js');
|
|
39799
39800
|
case 11:
|
|
39800
39801
|
_yield$import2 = _context12.sent;
|
|
39801
39802
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -39803,7 +39804,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39803
39804
|
return _context12.abrupt("break", 27);
|
|
39804
39805
|
case 15:
|
|
39805
39806
|
_context12.next = 17;
|
|
39806
|
-
return import('./SeriousBasketHandler-
|
|
39807
|
+
return import('./SeriousBasketHandler-aad3b760.js');
|
|
39807
39808
|
case 17:
|
|
39808
39809
|
_yield$import3 = _context12.sent;
|
|
39809
39810
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -39811,7 +39812,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39811
39812
|
return _context12.abrupt("break", 27);
|
|
39812
39813
|
case 21:
|
|
39813
39814
|
_context12.next = 23;
|
|
39814
|
-
return import('./StandardWWSHandler-
|
|
39815
|
+
return import('./StandardWWSHandler-dc2603b4.js');
|
|
39815
39816
|
case 23:
|
|
39816
39817
|
_yield$import4 = _context12.sent;
|
|
39817
39818
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -41240,7 +41241,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41240
41241
|
while (1) switch (_context3.prev = _context3.next) {
|
|
41241
41242
|
case 0:
|
|
41242
41243
|
_context3.next = 2;
|
|
41243
|
-
return import('./Host3DSignalR-
|
|
41244
|
+
return import('./Host3DSignalR-e075d73c.js');
|
|
41244
41245
|
case 2:
|
|
41245
41246
|
_yield$import = _context3.sent;
|
|
41246
41247
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -42798,7 +42799,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42798
42799
|
break;
|
|
42799
42800
|
case 8:
|
|
42800
42801
|
_context4.next = 10;
|
|
42801
|
-
return import('./DivaStandardPlanner-
|
|
42802
|
+
return import('./DivaStandardPlanner-2977514b.js');
|
|
42802
42803
|
case 10:
|
|
42803
42804
|
_yield$import = _context4.sent;
|
|
42804
42805
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -42809,7 +42810,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42809
42810
|
return _context4.abrupt("break", 21);
|
|
42810
42811
|
case 15:
|
|
42811
42812
|
_context4.next = 17;
|
|
42812
|
-
return import('./DivaBoxPlanner-
|
|
42813
|
+
return import('./DivaBoxPlanner-d1fe2f39.js');
|
|
42813
42814
|
case 17:
|
|
42814
42815
|
_yield$import2 = _context4.sent;
|
|
42815
42816
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -44382,7 +44383,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44382
44383
|
var retValues = setHandlerInstance.loadPaletteInfos(set, configStepKey, activeArticles, targetArticles);
|
|
44383
44384
|
if (!retValues.articleInfos) return;
|
|
44384
44385
|
//this.setWebConifguratorTitle({ articleName: retValues.articleName });
|
|
44385
|
-
_this.updatePaletteInfos(retValues.articleInfos, retValues.doShowConfigSingle, retValues.isConfigSingle);
|
|
44386
|
+
_this.updatePaletteInfos(retValues.articleInfos, retValues.doShowConfigSingle, retValues.isConfigSingle, retValues.bbox);
|
|
44386
44387
|
(_this$updateViewPlann7 = _this.updateViewPlannerElements) === null || _this$updateViewPlann7 === void 0 || _this$updateViewPlann7.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
44387
44388
|
_this.updateElementSelectionConfig(retValues.articleInfos, _this.doAllowSetPlanner());
|
|
44388
44389
|
});
|
|
@@ -45593,7 +45594,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45593
45594
|
key: "updatePriceInView",
|
|
45594
45595
|
value: function updatePriceInView() {
|
|
45595
45596
|
var _this$updatePrice, _this$actSet9;
|
|
45596
|
-
setHandlerInstance.getActSetPriceFormat(this.actSet());
|
|
45597
45597
|
(_this$updatePrice = this.updatePrice) === null || _this$updatePrice === void 0 || _this$updatePrice.call(this, setHandlerInstance.getTotalViewPrice(this.sets), this.actSet().getViewSetPrice(), setHandlerInstance.getTotalViewBruttoPrice(this.sets), undefined, (_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getCustomDimensionsOfActSet());
|
|
45598
45598
|
}
|
|
45599
45599
|
|
|
@@ -45779,7 +45779,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45779
45779
|
key: "saveToBasket",
|
|
45780
45780
|
value: function () {
|
|
45781
45781
|
var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(returnTo, event, repairOnly) {
|
|
45782
|
-
var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$
|
|
45782
|
+
var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$divaBasketHandl2;
|
|
45783
45783
|
var set, actBasket, oldReturnTo, result, newDivaNr, _this$actSet11, arReady, _result2, product;
|
|
45784
45784
|
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
45785
45785
|
while (1) switch (_context27.prev = _context27.next) {
|
|
@@ -45828,15 +45828,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45828
45828
|
this.divaBasketHandler.fillOrigConfigurations();
|
|
45829
45829
|
actBasket.Updated = Date.now();
|
|
45830
45830
|
if (!returnTo) {
|
|
45831
|
-
_context27.next =
|
|
45831
|
+
_context27.next = 52;
|
|
45832
45832
|
break;
|
|
45833
45833
|
}
|
|
45834
45834
|
_context27.t3 = returnTo;
|
|
45835
|
-
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ?
|
|
45835
|
+
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 29 : _context27.t3 === 'OPEN_PDF' ? 32 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 32 : _context27.t3 === 'SAVE_BASKET' ? 32 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 32 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 32 : 52;
|
|
45836
45836
|
break;
|
|
45837
45837
|
case 27:
|
|
45838
|
-
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.
|
|
45839
|
-
(_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
|
|
45838
|
+
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
|
|
45840
45839
|
type: 'SELLER',
|
|
45841
45840
|
parameters: {
|
|
45842
45841
|
module: 'PCreator',
|
|
@@ -45846,12 +45845,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45846
45845
|
basketData: actBasket
|
|
45847
45846
|
}
|
|
45848
45847
|
});
|
|
45849
|
-
return _context27.abrupt("break",
|
|
45850
|
-
case
|
|
45848
|
+
return _context27.abrupt("break", 52);
|
|
45849
|
+
case 29:
|
|
45851
45850
|
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
45852
45851
|
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
45853
45852
|
}
|
|
45854
|
-
(_this$
|
|
45853
|
+
(_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
|
|
45855
45854
|
type: 'SELLER',
|
|
45856
45855
|
parameters: {
|
|
45857
45856
|
module: 'Basket',
|
|
@@ -45861,25 +45860,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45861
45860
|
basketData: actBasket
|
|
45862
45861
|
}
|
|
45863
45862
|
});
|
|
45864
|
-
return _context27.abrupt("break",
|
|
45865
|
-
case
|
|
45863
|
+
return _context27.abrupt("break", 52);
|
|
45864
|
+
case 32:
|
|
45866
45865
|
if (!(event == 'onSaveProduct')) {
|
|
45867
|
-
_context27.next =
|
|
45866
|
+
_context27.next = 42;
|
|
45868
45867
|
break;
|
|
45869
45868
|
}
|
|
45870
45869
|
//copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
|
|
45871
45870
|
actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
|
|
45872
|
-
_context27.next =
|
|
45871
|
+
_context27.next = 36;
|
|
45873
45872
|
return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
|
|
45874
|
-
case
|
|
45875
|
-
_context27.next =
|
|
45873
|
+
case 36:
|
|
45874
|
+
_context27.next = 38;
|
|
45876
45875
|
return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
|
|
45877
|
-
case
|
|
45876
|
+
case 38:
|
|
45878
45877
|
newDivaNr = _context27.sent;
|
|
45879
45878
|
actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
|
|
45880
|
-
_context27.next =
|
|
45879
|
+
_context27.next = 51;
|
|
45881
45880
|
break;
|
|
45882
|
-
case
|
|
45881
|
+
case 42:
|
|
45883
45882
|
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
45884
45883
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
|
|
45885
45884
|
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
@@ -45887,26 +45886,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45887
45886
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
|
|
45888
45887
|
actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
|
|
45889
45888
|
arReady = !!((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && _this$actSet11.CatalogData.divaArReady);
|
|
45890
|
-
_context27.next =
|
|
45889
|
+
_context27.next = 48;
|
|
45891
45890
|
return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo, arReady);
|
|
45892
|
-
case
|
|
45891
|
+
case 48:
|
|
45893
45892
|
_result2 = _context27.sent;
|
|
45894
45893
|
if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
45895
|
-
_context27.next =
|
|
45894
|
+
_context27.next = 51;
|
|
45896
45895
|
break;
|
|
45897
45896
|
}
|
|
45898
45897
|
return _context27.abrupt("return", 'canceled');
|
|
45898
|
+
case 51:
|
|
45899
|
+
return _context27.abrupt("break", 52);
|
|
45899
45900
|
case 52:
|
|
45900
|
-
return _context27.abrupt("break", 53);
|
|
45901
|
-
case 53:
|
|
45902
45901
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
45903
45902
|
actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
|
|
45904
|
-
_context27.next =
|
|
45903
|
+
_context27.next = 56;
|
|
45905
45904
|
return this.addToBasket(actBasket, event);
|
|
45906
|
-
case
|
|
45905
|
+
case 56:
|
|
45907
45906
|
product = _context27.sent;
|
|
45908
45907
|
return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
45909
|
-
case
|
|
45908
|
+
case 58:
|
|
45910
45909
|
case "end":
|
|
45911
45910
|
return _context27.stop();
|
|
45912
45911
|
}
|
|
@@ -46218,18 +46217,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46218
46217
|
key: "addToBasket",
|
|
46219
46218
|
value: function () {
|
|
46220
46219
|
var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(actBasket) {
|
|
46221
|
-
var _this$
|
|
46220
|
+
var _this$actions37,
|
|
46221
|
+
_this$actions38,
|
|
46222
46222
|
_this$actions39,
|
|
46223
46223
|
_this$actions40,
|
|
46224
46224
|
_this$actions41,
|
|
46225
|
-
_this$actions42,
|
|
46226
46225
|
_this$divaBasketHandl4,
|
|
46227
46226
|
_this4 = this,
|
|
46227
|
+
_this$actions42,
|
|
46228
46228
|
_this$actions43,
|
|
46229
46229
|
_this$actions44,
|
|
46230
46230
|
_this$actions45,
|
|
46231
|
-
_this$actions46
|
|
46232
|
-
_this$actions47;
|
|
46231
|
+
_this$actions46;
|
|
46233
46232
|
var event,
|
|
46234
46233
|
emailConfig,
|
|
46235
46234
|
_emailConfig$to$split,
|
|
@@ -46246,31 +46245,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46246
46245
|
_context29.next = _context29.t0 === 'onWebPlanerPrint' ? 4 : _context29.t0 === 'onWebPlanerSave' ? 6 : _context29.t0 === 'onWebPlanerShare' ? 8 : _context29.t0 === 'onRequestConsulation' ? 10 : _context29.t0 === 'onSave' ? 12 : _context29.t0 === 'onSendEmail' ? 14 : _context29.t0 === 'onSaveProduct' ? 19 : _context29.t0 === 'dontSaveBasket' ? 26 : _context29.t0 === 'onAddToBasket' ? 26 : _context29.t0 === 'onSendContactForm' ? 28 : 31;
|
|
46247
46246
|
break;
|
|
46248
46247
|
case 4:
|
|
46249
|
-
(_this$
|
|
46248
|
+
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
|
|
46250
46249
|
type: 'onWebPlanerPrint',
|
|
46251
46250
|
data: actBasket.getAsJson()
|
|
46252
46251
|
});
|
|
46253
46252
|
return _context29.abrupt("break", 33);
|
|
46254
46253
|
case 6:
|
|
46255
|
-
(_this$
|
|
46254
|
+
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
46256
46255
|
type: 'onWebPlanerSave',
|
|
46257
46256
|
data: actBasket.getAsJson()
|
|
46258
46257
|
});
|
|
46259
46258
|
return _context29.abrupt("break", 33);
|
|
46260
46259
|
case 8:
|
|
46261
|
-
(_this$
|
|
46260
|
+
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
46262
46261
|
type: 'onWebPlanerShare',
|
|
46263
46262
|
data: actBasket.getAsJson()
|
|
46264
46263
|
});
|
|
46265
46264
|
return _context29.abrupt("break", 33);
|
|
46266
46265
|
case 10:
|
|
46267
|
-
(_this$
|
|
46266
|
+
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
46268
46267
|
type: 'onRequestConsulation',
|
|
46269
46268
|
data: actBasket.getAsJson()
|
|
46270
46269
|
});
|
|
46271
46270
|
return _context29.abrupt("break", 33);
|
|
46272
46271
|
case 12:
|
|
46273
|
-
(_this$
|
|
46272
|
+
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
46274
46273
|
type: 'onSave',
|
|
46275
46274
|
data: actBasket.getAsJson()
|
|
46276
46275
|
});
|
|
@@ -46305,7 +46304,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46305
46304
|
});
|
|
46306
46305
|
});
|
|
46307
46306
|
}
|
|
46308
|
-
(_this$
|
|
46307
|
+
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
46309
46308
|
type: 'onAddToBasket',
|
|
46310
46309
|
data: actBasket.getAsJson()
|
|
46311
46310
|
});
|
|
@@ -46316,7 +46315,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46316
46315
|
return this.api.saveAsProduct(this.sets, actBasket);
|
|
46317
46316
|
case 22:
|
|
46318
46317
|
products = _context29.sent;
|
|
46319
|
-
(_this$
|
|
46318
|
+
(_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
|
|
46320
46319
|
type: 'onAddToBasket',
|
|
46321
46320
|
data: actBasket.getAsJson()
|
|
46322
46321
|
});
|
|
@@ -46326,20 +46325,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46326
46325
|
}
|
|
46327
46326
|
return _context29.abrupt("return", products[0]);
|
|
46328
46327
|
case 26:
|
|
46329
|
-
(_this$
|
|
46328
|
+
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
|
|
46330
46329
|
type: 'onAddToBasket',
|
|
46331
46330
|
data: actBasket.getAsJson()
|
|
46332
46331
|
});
|
|
46333
46332
|
return _context29.abrupt("break", 33);
|
|
46334
46333
|
case 28:
|
|
46335
|
-
(_this$
|
|
46334
|
+
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
|
|
46336
46335
|
type: 'onAddToBasket',
|
|
46337
46336
|
data: actBasket.getAsJson()
|
|
46338
46337
|
});
|
|
46339
46338
|
this.openContactForm(this.divaBasketHandler);
|
|
46340
46339
|
return _context29.abrupt("break", 33);
|
|
46341
46340
|
case 31:
|
|
46342
|
-
(_this$
|
|
46341
|
+
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
|
|
46343
46342
|
type: event,
|
|
46344
46343
|
data: actBasket.getAsJson()
|
|
46345
46344
|
});
|
|
@@ -46360,8 +46359,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46360
46359
|
}, {
|
|
46361
46360
|
key: "openPDFpostAsEvent",
|
|
46362
46361
|
value: function openPDFpostAsEvent(mongoDBId) {
|
|
46363
|
-
var _this$
|
|
46364
|
-
(_this$
|
|
46362
|
+
var _this$actions47, _this$actions48, _this$actions49;
|
|
46363
|
+
(_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.updateBreadcrumbs({
|
|
46365
46364
|
type: 'update',
|
|
46366
46365
|
param: {
|
|
46367
46366
|
groupId: 'SHOWROOM',
|
|
@@ -46375,7 +46374,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46375
46374
|
}
|
|
46376
46375
|
}
|
|
46377
46376
|
});
|
|
46378
|
-
(_this$
|
|
46377
|
+
(_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
|
|
46379
46378
|
type: 'update',
|
|
46380
46379
|
param: {
|
|
46381
46380
|
groupId: 'SHOWROOM',
|
|
@@ -46389,7 +46388,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46389
46388
|
}
|
|
46390
46389
|
}
|
|
46391
46390
|
});
|
|
46392
|
-
(_this$
|
|
46391
|
+
(_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.openComponent({
|
|
46393
46392
|
type: 'REPORT',
|
|
46394
46393
|
parameters: {
|
|
46395
46394
|
id: mongoDBId
|
|
@@ -46647,14 +46646,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46647
46646
|
}, {
|
|
46648
46647
|
key: "subscribeToWebPlannerEvents",
|
|
46649
46648
|
value: function subscribeToWebPlannerEvents() {
|
|
46650
|
-
var _this$
|
|
46651
|
-
(_this$
|
|
46649
|
+
var _this$actions50;
|
|
46650
|
+
(_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.subscribeEvents(this.addToBasketEventFunction);
|
|
46652
46651
|
}
|
|
46653
46652
|
}, {
|
|
46654
46653
|
key: "unsubscribeFromWebPlannerEvents",
|
|
46655
46654
|
value: function unsubscribeFromWebPlannerEvents() {
|
|
46656
|
-
var _this$
|
|
46657
|
-
(_this$
|
|
46655
|
+
var _this$actions51;
|
|
46656
|
+
(_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.unSubscribeEvents(this.addToBasketEventFunction);
|
|
46658
46657
|
}
|
|
46659
46658
|
}, {
|
|
46660
46659
|
key: "initApiForLogicOnly",
|
|
@@ -48969,6 +48968,12 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
48969
48968
|
var _this$planElement$pla3, _this$planElement$pla4;
|
|
48970
48969
|
return ((_this$planElement$pla3 = this.planElement.plannerData) === null || _this$planElement$pla3 === void 0 ? void 0 : _this$planElement$pla3.filterType) == 'Accessoire' || ((_this$planElement$pla4 = this.planElement.plannerData) === null || _this$planElement$pla4 === void 0 ? void 0 : _this$planElement$pla4.isAccessoire);
|
|
48971
48970
|
}
|
|
48971
|
+
}, {
|
|
48972
|
+
key: "FilterType",
|
|
48973
|
+
get: function get() {
|
|
48974
|
+
var _this$planElement$pla5;
|
|
48975
|
+
return (_this$planElement$pla5 = this.planElement.plannerData) === null || _this$planElement$pla5 === void 0 ? void 0 : _this$planElement$pla5.filterType;
|
|
48976
|
+
}
|
|
48972
48977
|
}, {
|
|
48973
48978
|
key: "FilterAVL",
|
|
48974
48979
|
get: function get() {
|
|
@@ -49183,38 +49188,38 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
49183
49188
|
}, {
|
|
49184
49189
|
key: "SvgFileName",
|
|
49185
49190
|
get: function get() {
|
|
49186
|
-
var _this$planElement$
|
|
49187
|
-
return (_this$planElement$
|
|
49191
|
+
var _this$planElement$pla6;
|
|
49192
|
+
return (_this$planElement$pla6 = this.planElement.plannerData) === null || _this$planElement$pla6 === void 0 ? void 0 : _this$planElement$pla6.curSVG;
|
|
49188
49193
|
}
|
|
49189
49194
|
}, {
|
|
49190
49195
|
key: "Width",
|
|
49191
49196
|
get: function get() {
|
|
49192
|
-
var _this$planElement$
|
|
49193
|
-
return (_this$planElement$
|
|
49197
|
+
var _this$planElement$pla7;
|
|
49198
|
+
return (_this$planElement$pla7 = this.planElement.plannerData) === null || _this$planElement$pla7 === void 0 ? void 0 : _this$planElement$pla7.width;
|
|
49194
49199
|
}
|
|
49195
49200
|
}, {
|
|
49196
49201
|
key: "Height",
|
|
49197
49202
|
get: function get() {
|
|
49198
|
-
var _this$planElement$
|
|
49199
|
-
return (_this$planElement$
|
|
49203
|
+
var _this$planElement$pla8;
|
|
49204
|
+
return (_this$planElement$pla8 = this.planElement.plannerData) === null || _this$planElement$pla8 === void 0 ? void 0 : _this$planElement$pla8.height;
|
|
49200
49205
|
}
|
|
49201
49206
|
}, {
|
|
49202
49207
|
key: "Depth",
|
|
49203
49208
|
get: function get() {
|
|
49204
|
-
var _this$planElement$
|
|
49205
|
-
return (_this$planElement$
|
|
49209
|
+
var _this$planElement$pla9;
|
|
49210
|
+
return (_this$planElement$pla9 = this.planElement.plannerData) === null || _this$planElement$pla9 === void 0 ? void 0 : _this$planElement$pla9.depth;
|
|
49206
49211
|
}
|
|
49207
49212
|
}, {
|
|
49208
49213
|
key: "HasAVL",
|
|
49209
49214
|
get: function get() {
|
|
49210
|
-
var _this$planElement$
|
|
49211
|
-
return (_this$planElement$
|
|
49215
|
+
var _this$planElement$pla10;
|
|
49216
|
+
return (_this$planElement$pla10 = this.planElement.plannerData) === null || _this$planElement$pla10 === void 0 ? void 0 : _this$planElement$pla10.hasAVL;
|
|
49212
49217
|
}
|
|
49213
49218
|
}, {
|
|
49214
49219
|
key: "HasAVR",
|
|
49215
49220
|
get: function get() {
|
|
49216
|
-
var _this$planElement$
|
|
49217
|
-
return (_this$planElement$
|
|
49221
|
+
var _this$planElement$pla11;
|
|
49222
|
+
return (_this$planElement$pla11 = this.planElement.plannerData) === null || _this$planElement$pla11 === void 0 ? void 0 : _this$planElement$pla11.hasAVR;
|
|
49218
49223
|
}
|
|
49219
49224
|
}, {
|
|
49220
49225
|
key: "HasAVO",
|
|
@@ -49323,8 +49328,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
49323
49328
|
}, {
|
|
49324
49329
|
key: "svgBefore",
|
|
49325
49330
|
get: function get() {
|
|
49326
|
-
var _this$planElement$
|
|
49327
|
-
return (_this$planElement$
|
|
49331
|
+
var _this$planElement$pla12;
|
|
49332
|
+
return (_this$planElement$pla12 = this.planElement.plannerData) === null || _this$planElement$pla12 === void 0 ? void 0 : _this$planElement$pla12.svgBefore;
|
|
49328
49333
|
},
|
|
49329
49334
|
set: function set(svg) {
|
|
49330
49335
|
if (this.planElement.plannerData) this.planElement.plannerData.svgBefore = svg;
|
|
@@ -49332,8 +49337,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
49332
49337
|
}, {
|
|
49333
49338
|
key: "svgAfter",
|
|
49334
49339
|
get: function get() {
|
|
49335
|
-
var _this$planElement$
|
|
49336
|
-
return (_this$planElement$
|
|
49340
|
+
var _this$planElement$pla13;
|
|
49341
|
+
return (_this$planElement$pla13 = this.planElement.plannerData) === null || _this$planElement$pla13 === void 0 ? void 0 : _this$planElement$pla13.svgAfter;
|
|
49337
49342
|
},
|
|
49338
49343
|
set: function set(svg) {
|
|
49339
49344
|
if (this.planElement.plannerData) this.planElement.plannerData.svgAfter = svg;
|
|
@@ -49413,14 +49418,14 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
49413
49418
|
}, {
|
|
49414
49419
|
key: "getIsNotDockedAccessoire",
|
|
49415
49420
|
value: function getIsNotDockedAccessoire() {
|
|
49416
|
-
var _this$planElement$
|
|
49417
|
-
return !!((_this$planElement$
|
|
49421
|
+
var _this$planElement$pla14;
|
|
49422
|
+
return !!((_this$planElement$pla14 = this.planElement.plannerData) !== null && _this$planElement$pla14 !== void 0 && _this$planElement$pla14.isNotDockedAccessoire);
|
|
49418
49423
|
}
|
|
49419
49424
|
}, {
|
|
49420
49425
|
key: "getParentElementId",
|
|
49421
49426
|
value: function getParentElementId() {
|
|
49422
|
-
var _this$planElement$
|
|
49423
|
-
return (_this$planElement$
|
|
49427
|
+
var _this$planElement$pla15;
|
|
49428
|
+
return (_this$planElement$pla15 = this.planElement.plannerData) === null || _this$planElement$pla15 === void 0 ? void 0 : _this$planElement$pla15.parentElementId;
|
|
49424
49429
|
}
|
|
49425
49430
|
}, {
|
|
49426
49431
|
key: "getElementId",
|
|
@@ -49499,8 +49504,8 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
49499
49504
|
}, {
|
|
49500
49505
|
key: "getFilterAVL",
|
|
49501
49506
|
value: function getFilterAVL() {
|
|
49502
|
-
var _this$planElement$
|
|
49503
|
-
return this.planElement.plannerData ? (_this$planElement$
|
|
49507
|
+
var _this$planElement$pla16;
|
|
49508
|
+
return this.planElement.plannerData ? (_this$planElement$pla16 = this.planElement.plannerData) === null || _this$planElement$pla16 === void 0 ? void 0 : _this$planElement$pla16.AVLFilter : [];
|
|
49504
49509
|
}
|
|
49505
49510
|
}, {
|
|
49506
49511
|
key: "getFilterAVR",
|
|
@@ -49584,26 +49589,26 @@ var PlannerElementData = /*#__PURE__*/function () {
|
|
|
49584
49589
|
}, {
|
|
49585
49590
|
key: "getAccessoires",
|
|
49586
49591
|
value: function getAccessoires() {
|
|
49587
|
-
var _this$planElement$
|
|
49588
|
-
return this.planElement.plannerData ? (_this$planElement$
|
|
49592
|
+
var _this$planElement$pla17;
|
|
49593
|
+
return this.planElement.plannerData ? (_this$planElement$pla17 = this.planElement.plannerData) === null || _this$planElement$pla17 === void 0 ? void 0 : _this$planElement$pla17.accessoireList : [];
|
|
49589
49594
|
}
|
|
49590
49595
|
}, {
|
|
49591
49596
|
key: "getSVGsWithFormula",
|
|
49592
49597
|
value: function getSVGsWithFormula() {
|
|
49593
|
-
var _this$planElement$
|
|
49594
|
-
return (_this$planElement$
|
|
49598
|
+
var _this$planElement$pla18;
|
|
49599
|
+
return (_this$planElement$pla18 = this.planElement.plannerData) === null || _this$planElement$pla18 === void 0 ? void 0 : _this$planElement$pla18.svgsWithFormula;
|
|
49595
49600
|
}
|
|
49596
49601
|
}, {
|
|
49597
49602
|
key: "getVaraintValuesInfluencingAVLAVRFilter",
|
|
49598
49603
|
value: function getVaraintValuesInfluencingAVLAVRFilter() {
|
|
49599
|
-
var _this$planElement$
|
|
49600
|
-
return (_this$planElement$
|
|
49604
|
+
var _this$planElement$pla19;
|
|
49605
|
+
return (_this$planElement$pla19 = this.planElement.plannerData) === null || _this$planElement$pla19 === void 0 ? void 0 : _this$planElement$pla19.varaintValuesInfluencingAVLAVRFilter;
|
|
49601
49606
|
}
|
|
49602
49607
|
}, {
|
|
49603
49608
|
key: "getCurrentAccessorires",
|
|
49604
49609
|
value: function getCurrentAccessorires() {
|
|
49605
|
-
var _this$planElement$
|
|
49606
|
-
return this.planElement.plannerData ? (_this$planElement$
|
|
49610
|
+
var _this$planElement$pla20;
|
|
49611
|
+
return this.planElement.plannerData ? (_this$planElement$pla20 = this.planElement.plannerData) === null || _this$planElement$pla20 === void 0 ? void 0 : _this$planElement$pla20.currentAccessorires : [];
|
|
49607
49612
|
}
|
|
49608
49613
|
}]);
|
|
49609
49614
|
}();
|