@crystaldesign/web-planner-logic 25.9.0-beta.9 → 25.9.0-rc.1
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-dc41f5c0.js → DivaBoxPlanner-1364c551.js} +289 -9
- package/build/cjs/{DivaStandardPlanner-d05e9154.js → DivaStandardPlanner-e6e39978.js} +12 -2
- package/build/cjs/{DoorPlanner-27136ffd.js → DoorPlanner-10e97f07.js} +1 -1
- package/build/cjs/{Host3DSignalR-cd790a0d.js → Host3DSignalR-eea7d1d4.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-8b1c0a07.js → LiviqueWWSHandler-17894cd1.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-1847b578.js → PfisterWWSHandler-4058e465.js} +1 -1
- package/build/cjs/{PlannerHandler2D-97704bc7.js → PlannerHandler2D-41d9d0cf.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-ead333a9.js → SeriousBasketHandler-c8e698e9.js} +1 -1
- package/build/cjs/{ShelfPlanner-00e95b92.js → ShelfPlanner-33014e25.js} +1 -1
- package/build/cjs/{StandardWWSHandler-4dce0fd6.js → StandardWWSHandler-faeb77e7.js} +1 -1
- package/build/cjs/{index-0ed3e63b.js → index-f1e5aa56.js} +265 -97
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-08ebde1b.js → DivaBoxPlanner-fcf19f4c.js} +289 -9
- package/build/esm/{DivaStandardPlanner-f922ae56.js → DivaStandardPlanner-5221526b.js} +12 -2
- package/build/esm/{DoorPlanner-89fc6a04.js → DoorPlanner-27fa5a55.js} +1 -1
- package/build/esm/{Host3DSignalR-3663de55.js → Host3DSignalR-e85d1c87.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-1aa314d6.js → LiviqueWWSHandler-494ad9a9.js} +1 -1
- package/build/esm/{PfisterWWSHandler-d9700837.js → PfisterWWSHandler-39c3f3e2.js} +1 -1
- package/build/esm/{PlannerHandler2D-5744bdb6.js → PlannerHandler2D-1a23208c.js} +1 -1
- package/build/esm/{SeriousBasketHandler-9dcb8252.js → SeriousBasketHandler-51aa34db.js} +1 -1
- package/build/esm/{ShelfPlanner-e2b62508.js → ShelfPlanner-9f2c145d.js} +1 -1
- package/build/esm/{StandardWWSHandler-79914298.js → StandardWWSHandler-6d93ce48.js} +1 -1
- package/build/esm/{index-58c290c0.js → index-51b98cbc.js} +265 -97
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +1 -0
- 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 +4 -0
- 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 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/PlannedArticleViewDataType.d.ts +24 -0
- package/build/types/web-planner-logic/src/interface/Articles/PlannedArticleViewDataType.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/interface/ConfiguratorStructureDataType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/ConfiguratorStructureDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionValueView.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.d.ts +2 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDivaPlanner.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/DivaArticle.d.ts +2 -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.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +15 -5
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +6 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +2 -0
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +2 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +2 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +2 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/Rendering.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +5 -2
- 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 +1 -0
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/BoxPlannerData.d.ts +2 -2
- package/build/types/web-planner-logic/src/model/Planner/BoxPlannerData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerInteractionData.d.ts +78 -0
- package/build/types/web-planner-logic/src/model/Planner/PlannerInteractionData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -17490,7 +17490,7 @@ function initCatalogOptionValues(catalogData, jsonOptions) {
|
|
|
17490
17490
|
return optionValues;
|
|
17491
17491
|
}
|
|
17492
17492
|
function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
17493
|
-
var _catalogData$catalogM5, _catalogData$catalogM6, _catalogData$catalogM7, _optionvalues$codex, _mask$name$catalogDat, _mask$name, _mask$name2, _mask$groupname$catal, _mask$groupname, _mask$groupname2, _jsonOPV$MeasureStep, _jsonOPV$Metadatas, _mask$properties;
|
|
17493
|
+
var _catalogData$catalogM5, _catalogData$catalogM6, _catalogData$catalogM7, _optionvalues$codex, _mask$name$catalogDat, _mask$name, _mask$name2, _mask$groupname$catal, _mask$groupname, _mask$groupname2, _jsonOPV$MeasureStep, _jsonOPV$Value, _jsonOPV$Metadatas, _mask$properties;
|
|
17494
17494
|
var optionvalues = (_catalogData$catalogM5 = (_catalogData$catalogM6 = catalogData.catalogMask) === null || _catalogData$catalogM6 === void 0 ? void 0 : _catalogData$catalogM6.optionvalues) !== null && _catalogData$catalogM5 !== void 0 ? _catalogData$catalogM5 : (_catalogData$catalogM7 = catalogData.catalogMask) === null || _catalogData$catalogM7 === void 0 ? void 0 : _catalogData$catalogM7.optionValues;
|
|
17495
17495
|
var mask = (_optionvalues$codex = optionvalues === null || optionvalues === void 0 ? void 0 : optionvalues[codex]) !== null && _optionvalues$codex !== void 0 ? _optionvalues$codex : codex.startsWith('OPV') ? optionvalues === null || optionvalues === void 0 ? void 0 : optionvalues[codex.substring(3)] : undefined;
|
|
17496
17496
|
var opv = {
|
|
@@ -17519,7 +17519,7 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
|
17519
17519
|
measureStep: (_jsonOPV$MeasureStep = jsonOPV.MeasureStep) === null || _jsonOPV$MeasureStep === void 0 ? void 0 : _jsonOPV$MeasureStep.replace(',', '.'),
|
|
17520
17520
|
showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
|
|
17521
17521
|
priceUnit: jsonOPV.PriceUnit,
|
|
17522
|
-
value: jsonOPV.Value,
|
|
17522
|
+
value: (_jsonOPV$Value = jsonOPV.Value) !== null && _jsonOPV$Value !== void 0 ? _jsonOPV$Value : jsonOPV.Name.endsWith(' cm') && !isNaN(Number(jsonOPV.Name.replace(' cm', ''))) ? Number(jsonOPV.Name.replace(' cm', '')) : undefined,
|
|
17523
17523
|
property: [].concat(_toConsumableArray((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
|
|
17524
17524
|
textbausteine: jsonOPV.Textbausteine
|
|
17525
17525
|
};
|
|
@@ -17596,15 +17596,15 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17596
17596
|
if (catPlanArticle.hideInPlannerStep) return;
|
|
17597
17597
|
if (catPlanArticle.partListExclusive) return;
|
|
17598
17598
|
if (catalogProps.has3dModels && !catPlanArticle.modelName3D) return;
|
|
17599
|
-
var
|
|
17599
|
+
var image = '';
|
|
17600
17600
|
if (catPlanArticle.hasImage) {
|
|
17601
17601
|
if (catPlanArticle.getImage().substring(0, 5) == 'data:') {
|
|
17602
|
-
|
|
17602
|
+
image = catPlanArticle.getImage();
|
|
17603
17603
|
} else {
|
|
17604
|
-
|
|
17604
|
+
image = getCatImageURL(catPlanArticle.getImage(), '_low', mediaUrl);
|
|
17605
17605
|
}
|
|
17606
17606
|
} else if (catPlanArticle.hasTopSvg) {
|
|
17607
|
-
|
|
17607
|
+
image = getCatImageURL(catPlanArticle.topSvg, '', mediaUrl);
|
|
17608
17608
|
}
|
|
17609
17609
|
var catalogArticle = catalogData.allCatalogArticles[catPlanArticle.codex];
|
|
17610
17610
|
var elementName = catPlanArticle.name;
|
|
@@ -17648,13 +17648,13 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17648
17648
|
//Artikelbild mit svg üerschreiben, wenn es mehr als 1 Eintrag mit IsAccessoire == false gibt
|
|
17649
17649
|
if (nDoShowSVGsinElementlist > 1) {
|
|
17650
17650
|
if (topSvg.Image) {
|
|
17651
|
-
|
|
17651
|
+
image = getCatImageURL(topSvg.Image, '_low', mediaUrl);
|
|
17652
17652
|
} else {
|
|
17653
|
-
|
|
17653
|
+
image = getSVGUrl(topSvg.SVG, mediaUrl);
|
|
17654
17654
|
}
|
|
17655
17655
|
}
|
|
17656
17656
|
if (catalogProps.diva3dPlanerShowArticleAsSvg && topSvg.SVG) {
|
|
17657
|
-
|
|
17657
|
+
image = getSVGUrl(topSvg.SVG, mediaUrl);
|
|
17658
17658
|
}
|
|
17659
17659
|
if (topSvg.HasAVL && catPlanArticle.avlFilter.length == 0) {
|
|
17660
17660
|
catPlanArticle.avlFilter = ['ALWAYS_DOCKABLE'];
|
|
@@ -17691,7 +17691,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17691
17691
|
depthTo: catPlanArticle.articleSizeYTo,
|
|
17692
17692
|
typeNr: catPlanArticle.typeNr ? catPlanArticle.typeNr : catPlanArticle.codex,
|
|
17693
17693
|
//die Berkäuferbezeichnung des Artikels
|
|
17694
|
-
|
|
17694
|
+
image: image,
|
|
17695
17695
|
svgSrc: topSvg.SVG,
|
|
17696
17696
|
avlFilter: topSvg.HasAVL && catPlanArticle.avlFilter.length > 0 ? catPlanArticle.avlFilter : [],
|
|
17697
17697
|
avrFilter: topSvg.HasAVR && catPlanArticle.avrFilter.length > 0 ? catPlanArticle.avrFilter : [],
|
|
@@ -17722,7 +17722,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17722
17722
|
catPlanArticle.filterType = _filterType;
|
|
17723
17723
|
//Artikelbild ist abh�ngig von DIVA3DPlanerShowArticleAsSvg das SVG des Elements
|
|
17724
17724
|
if (catalogProps.diva3dPlanerShowArticleAsSvg && (catPlanArticle.hasTopSvg || catPlanArticle.hasTopSvgsWithFormula)) {
|
|
17725
|
-
catPlanArticle.hasTopSvg ?
|
|
17725
|
+
catPlanArticle.hasTopSvg ? image = getSVGUrl(catPlanArticle.topSvg, mediaUrl) : image = getSVGUrl(catPlanArticle.topSvgsWithFormula[0].SVG, mediaUrl);
|
|
17726
17726
|
}
|
|
17727
17727
|
if (!catPlanArticle.hasTopSvgsWithFormula && catPlanArticle.topHasAVL && !catPlanArticle.avlFilter) {
|
|
17728
17728
|
//hat eine Element kein AVL Filter hinterlegt aber doch den Dockingpoint dann werden die StandartFilter 99 hinzugef�gt
|
|
@@ -17752,7 +17752,8 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17752
17752
|
depthTo: catPlanArticle.articleSizeYTo,
|
|
17753
17753
|
typeNr: catPlanArticle.typeNr ? catPlanArticle.typeNr : catPlanArticle.codex,
|
|
17754
17754
|
//die Berkäuferbezeichnung des Artikels
|
|
17755
|
-
|
|
17755
|
+
|
|
17756
|
+
image: image,
|
|
17756
17757
|
svgSrc: catPlanArticle.topSvg,
|
|
17757
17758
|
avlFilter: catPlanArticle.topHasAVL && catPlanArticle.avlFilter ? catPlanArticle.avlFilter : [],
|
|
17758
17759
|
avrFilter: catPlanArticle.topHasAVR && catPlanArticle.avrFilter ? catPlanArticle.avrFilter : [],
|
|
@@ -19440,12 +19441,13 @@ function initOption(feature, articleFeature, catalogArticle, set) {
|
|
|
19440
19441
|
catalogArticle.articleOptions[articleFeature.codex];
|
|
19441
19442
|
}
|
|
19442
19443
|
function getCatalogOptionType(option, set) {
|
|
19443
|
-
var _option$detailInfos, _option$detailInfos2;
|
|
19444
|
+
var _option$detailInfos, _option$detailInfos2, _option$measureValue;
|
|
19444
19445
|
var catalogData = set.CatalogData;
|
|
19446
|
+
var name = DivaUtils.getLocals(option.optionText, set.api.getLanguageLowercase());
|
|
19445
19447
|
var opiton = {
|
|
19446
19448
|
codex: option.optionKey,
|
|
19447
|
-
name:
|
|
19448
|
-
origName:
|
|
19449
|
+
name: name,
|
|
19450
|
+
origName: name,
|
|
19449
19451
|
name_locales: option.optionText,
|
|
19450
19452
|
image: (_option$detailInfos = option.detailInfos) === null || _option$detailInfos === void 0 || (_option$detailInfos = _option$detailInfos.find(function (d) {
|
|
19451
19453
|
return d.functionType == 'OPV';
|
|
@@ -19489,7 +19491,7 @@ function getCatalogOptionType(option, set) {
|
|
|
19489
19491
|
|
|
19490
19492
|
priceUnit: undefined,
|
|
19491
19493
|
// TODO IDM Pricelogic,
|
|
19492
|
-
value: option.measureValue,
|
|
19494
|
+
value: (_option$measureValue = option.measureValue) !== null && _option$measureValue !== void 0 ? _option$measureValue : name.endsWith(' cm') && !isNaN(Number(name.replace(' cm', ''))) ? Number(name.replace(' cm', '')) : undefined,
|
|
19493
19495
|
measureUnit: option.measureUnit,
|
|
19494
19496
|
property: convertProperties(option.properties, catalogData.api.getLanguageLowercase())
|
|
19495
19497
|
};
|
|
@@ -19803,7 +19805,7 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
|
|
|
19803
19805
|
id: catPlanArticle.id,
|
|
19804
19806
|
hasAVS: !!catPlanArticle.topAVS,
|
|
19805
19807
|
hasAVU: !!catPlanArticle.topAVU,
|
|
19806
|
-
|
|
19808
|
+
image: catPlanArticle.getImage(),
|
|
19807
19809
|
is3DModell: false,
|
|
19808
19810
|
layer: catPlanArticle.topLayer,
|
|
19809
19811
|
price: catPlanArticle.basePrice,
|
|
@@ -19888,6 +19890,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19888
19890
|
// Start article that is loaded after starting the planner. used for boxplanner
|
|
19889
19891
|
accessorieStepAsPlanner: false,
|
|
19890
19892
|
// the accessorie step has all the planner capabilities
|
|
19893
|
+
planner2Dot0: false,
|
|
19894
|
+
// the planner is a planner 2.0
|
|
19891
19895
|
dontSaveAlternativeRenderings: false,
|
|
19892
19896
|
// alternative Rendering dont get saved and added to basket and pdf
|
|
19893
19897
|
replaceModeActive: true,
|
|
@@ -20561,6 +20565,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20561
20565
|
get: function get() {
|
|
20562
20566
|
return this.catalogProps.accessorieStepAsPlanner;
|
|
20563
20567
|
}
|
|
20568
|
+
}, {
|
|
20569
|
+
key: "planner2Dot0",
|
|
20570
|
+
get: function get() {
|
|
20571
|
+
return this.catalogProps.planner2Dot0;
|
|
20572
|
+
}
|
|
20564
20573
|
}, {
|
|
20565
20574
|
key: "dontShowBasePrice",
|
|
20566
20575
|
get: function get() {
|
|
@@ -20983,6 +20992,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20983
20992
|
case 'ACCESSOIRE_STEP_AS_PLANNER':
|
|
20984
20993
|
_this5.catalogProps.accessorieStepAsPlanner = item.Value == '1';
|
|
20985
20994
|
break;
|
|
20995
|
+
case 'PLANNER_2DOT0':
|
|
20996
|
+
_this5.catalogProps.planner2Dot0 = item.Value == '1';
|
|
20997
|
+
break;
|
|
20986
20998
|
case 'DONT_SAVE_ALTERNATIVERENDERINGS':
|
|
20987
20999
|
_this5.catalogProps.dontSaveAlternativeRenderings = item.Value == '1';
|
|
20988
21000
|
break;
|
|
@@ -26867,6 +26879,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26867
26879
|
}, {
|
|
26868
26880
|
key: "calcWidth",
|
|
26869
26881
|
get: function get() {
|
|
26882
|
+
var pla = this.partlistArticlesReqursive.find(function (p) {
|
|
26883
|
+
return p.catalogArticle.overwriteParentWidth;
|
|
26884
|
+
});
|
|
26885
|
+
if (pla !== null && pla !== void 0 && pla.width && pla.width != -1) return pla.width;
|
|
26870
26886
|
return this.article.calcWidth;
|
|
26871
26887
|
},
|
|
26872
26888
|
set: function set(newWidth) {
|
|
@@ -26887,6 +26903,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26887
26903
|
}, {
|
|
26888
26904
|
key: "calcDepth",
|
|
26889
26905
|
get: function get() {
|
|
26906
|
+
var pla = this.partlistArticlesReqursive.find(function (p) {
|
|
26907
|
+
return p.catalogArticle.overwriteParentDepth;
|
|
26908
|
+
});
|
|
26909
|
+
if (pla !== null && pla !== void 0 && pla.depth && pla.depth != -1) return pla.depth;
|
|
26890
26910
|
return this.article.calcDepth;
|
|
26891
26911
|
},
|
|
26892
26912
|
set: function set(newDepth) {
|
|
@@ -26904,9 +26924,22 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26904
26924
|
if (pla) return pla.height;
|
|
26905
26925
|
return this.calcHeight != -1 ? this.calcHeight : this.article.catalogArticle.height;
|
|
26906
26926
|
}
|
|
26927
|
+
}, {
|
|
26928
|
+
key: "incomplete",
|
|
26929
|
+
get: function get() {
|
|
26930
|
+
var _this$actPlannerData, _this$actPlannerData2;
|
|
26931
|
+
var incomplete = [];
|
|
26932
|
+
if ((_this$actPlannerData = this.actPlannerData) !== null && _this$actPlannerData !== void 0 && _this$actPlannerData.hasAVL && this.dockedOnAV('L') == undefined) incomplete.push('AVL');
|
|
26933
|
+
if ((_this$actPlannerData2 = this.actPlannerData) !== null && _this$actPlannerData2 !== void 0 && _this$actPlannerData2.hasAVR && this.dockedOnAV('R') == undefined) incomplete.push('AVR');
|
|
26934
|
+
return incomplete !== null && incomplete !== void 0 && incomplete.length ? incomplete : undefined;
|
|
26935
|
+
}
|
|
26907
26936
|
}, {
|
|
26908
26937
|
key: "calcHeight",
|
|
26909
26938
|
get: function get() {
|
|
26939
|
+
var pla = this.partlistArticlesReqursive.find(function (p) {
|
|
26940
|
+
return p.catalogArticle.overwriteParentHeight;
|
|
26941
|
+
});
|
|
26942
|
+
if (pla !== null && pla !== void 0 && pla.height && pla.height != -1) return pla.height;
|
|
26910
26943
|
return this.article.calcHeight;
|
|
26911
26944
|
},
|
|
26912
26945
|
set: function set(newHeight) {
|
|
@@ -27988,7 +28021,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27988
28021
|
break;
|
|
27989
28022
|
}
|
|
27990
28023
|
_context.next = 4;
|
|
27991
|
-
return import('./ShelfPlanner-
|
|
28024
|
+
return import('./ShelfPlanner-9f2c145d.js');
|
|
27992
28025
|
case 4:
|
|
27993
28026
|
_yield$import = _context.sent;
|
|
27994
28027
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -28638,7 +28671,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28638
28671
|
articleCodex: articleCodex
|
|
28639
28672
|
}
|
|
28640
28673
|
}));
|
|
28641
|
-
throw new Error('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!');
|
|
28674
|
+
throw new Error('articleCodex ' + articleCodex + ' not found in article list. Could be due to exclusivity or a bug in the application!');
|
|
28642
28675
|
case 12:
|
|
28643
28676
|
case "end":
|
|
28644
28677
|
return _context.stop();
|
|
@@ -28698,7 +28731,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28698
28731
|
break;
|
|
28699
28732
|
case 20:
|
|
28700
28733
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
28701
|
-
var
|
|
28734
|
+
var _set$api$getViewConfi;
|
|
28735
|
+
var articlesObj, catalog, articles, _set$actions, _set$actions$openModa, index, articleCodex, articlesToLoadMore;
|
|
28702
28736
|
return _regeneratorRuntime.wrap(function _loop$(_context2) {
|
|
28703
28737
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28704
28738
|
case 0:
|
|
@@ -28708,6 +28742,24 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28708
28742
|
articlesObj.loadedArticles = articles.map(function (a) {
|
|
28709
28743
|
return catalog.getCatalogArticleByArticleCodex(a.articleCodex, set.onlyRunLogic);
|
|
28710
28744
|
});
|
|
28745
|
+
|
|
28746
|
+
// show missing article in view only in supplier usecase
|
|
28747
|
+
if (!(articlesObj.loadedArticles.findIndex(function (a) {
|
|
28748
|
+
return a === undefined;
|
|
28749
|
+
}) !== -1 && set !== null && set !== void 0 && (_set$api$getViewConfi = set.api.getViewConfig()) !== null && _set$api$getViewConfi !== void 0 && _set$api$getViewConfi.showOptionCodexInOptionHeader)) {
|
|
28750
|
+
_context2.next = 9;
|
|
28751
|
+
break;
|
|
28752
|
+
}
|
|
28753
|
+
index = articlesObj.loadedArticles.findIndex(function (a) {
|
|
28754
|
+
return a === undefined;
|
|
28755
|
+
});
|
|
28756
|
+
articleCodex = articles[index].articleCodex;
|
|
28757
|
+
(_set$actions = set.actions) === null || _set$actions === void 0 || (_set$actions$openModa = _set$actions.openModal) === null || _set$actions$openModa === void 0 || _set$actions$openModa.call(_set$actions, {
|
|
28758
|
+
title: set.api.getI18n().t('configurator.article_not_found'),
|
|
28759
|
+
content: articleCodex
|
|
28760
|
+
});
|
|
28761
|
+
throw new Error('articleCodex ' + articleCodex + ' not found in article list. Could be due to exclusivity or a bug in the application!');
|
|
28762
|
+
case 9:
|
|
28711
28763
|
// hat catalogArticle Optionen welche noch nicht gealden wurden, erst laden!
|
|
28712
28764
|
//usecase der selbe Article wurde bereits verplant. nun kann die bereits geladene & verwendete Klasse catalogArticle wiederverwendet werden da wir dort nichts
|
|
28713
28765
|
//während der Konfiguration verändern!
|
|
@@ -28715,12 +28767,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28715
28767
|
return a.areOptionsToLoad;
|
|
28716
28768
|
});
|
|
28717
28769
|
if (!articlesToLoadMore.length) {
|
|
28718
|
-
_context2.next =
|
|
28770
|
+
_context2.next = 13;
|
|
28719
28771
|
break;
|
|
28720
28772
|
}
|
|
28721
|
-
_context2.next =
|
|
28773
|
+
_context2.next = 13;
|
|
28722
28774
|
return catalog.loadArticleData(articlesToLoadMore, set);
|
|
28723
|
-
case
|
|
28775
|
+
case 13:
|
|
28724
28776
|
case "end":
|
|
28725
28777
|
return _context2.stop();
|
|
28726
28778
|
}
|
|
@@ -30409,11 +30461,11 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
30409
30461
|
}
|
|
30410
30462
|
return _createClass(DivaConfigTreeData, [{
|
|
30411
30463
|
key: "addPlannerTab",
|
|
30412
|
-
value: function addPlannerTab() {
|
|
30464
|
+
value: function addPlannerTab(catalogData) {
|
|
30413
30465
|
this.tabGroupsData['Planner'] = {
|
|
30414
30466
|
key: 'Planner',
|
|
30415
30467
|
title: 'Planen',
|
|
30416
|
-
type: 'PLANNER',
|
|
30468
|
+
type: catalogData.planner2Dot0 ? 'PLANNER_2.0' : 'PLANNER',
|
|
30417
30469
|
posNr: this.tabGroupCount,
|
|
30418
30470
|
singleOPVOnly: false,
|
|
30419
30471
|
alternateRenderings: [],
|
|
@@ -30816,14 +30868,13 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
30816
30868
|
}, {
|
|
30817
30869
|
key: "getCurPaletteType",
|
|
30818
30870
|
value: function getCurPaletteType(set, configStepKey) {
|
|
30819
|
-
var _set$api$ReturnToFrom;
|
|
30871
|
+
var _set$getDivaArticles, _configStep$targetArt, _configStep$targetArt2, _configStep$option, _set$api$getViewConfi, _set$api$getViewConfi2, _set$api$ReturnToFrom;
|
|
30820
30872
|
var step = this.getAllByKey(configStepKey);
|
|
30821
30873
|
var configStep = step === null || step === void 0 ? void 0 : step.configStep;
|
|
30822
30874
|
var optionStep = step === null || step === void 0 ? void 0 : step.optionStep;
|
|
30823
|
-
var
|
|
30875
|
+
var optionState = (_set$getDivaArticles = set.getDivaArticles()[(_configStep$targetArt = configStep === null || configStep === void 0 || (_configStep$targetArt2 = configStep.targetArticles) === null || _configStep$targetArt2 === void 0 ? void 0 : _configStep$targetArt2[0]) !== null && _configStep$targetArt !== void 0 ? _configStep$targetArt : '']) === null || _set$getDivaArticles === void 0 ? void 0 : _set$getDivaArticles.getArticleOptionState((_configStep$option = configStep === null || configStep === void 0 ? void 0 : configStep.option) !== null && _configStep$option !== void 0 ? _configStep$option : '');
|
|
30876
|
+
var paletteType = (_set$api$getViewConfi = (_set$api$getViewConfi2 = set.api.getViewConfig()) === null || _set$api$getViewConfi2 === void 0 ? void 0 : _set$api$getViewConfi2.defaultOptionType) !== null && _set$api$getViewConfi !== void 0 ? _set$api$getViewConfi : 'SMALL';
|
|
30824
30877
|
if (configStep && optionStep) {
|
|
30825
|
-
var _set$getDivaArticles$;
|
|
30826
|
-
var optionState = (_set$getDivaArticles$ = set.getDivaArticles()[configStep.targetArticles[0]]) === null || _set$getDivaArticles$ === void 0 ? void 0 : _set$getDivaArticles$.getArticleOptionState(configStep.option);
|
|
30827
30878
|
if (configStep.option == 'OPTVINYL' || configStep.option == 'OPTVINYL_1' || configStep.option == 'OPTFABRIC' || configStep.option == 'OPTBE' || configStep.option == 'OPTBE_AUSSEN' || configStep.option == 'OPTBE_INNEN' || configStep.option == 'OPTBE_PANEELE' || configStep.option == 'OPTMATRATZE_BE' || configStep.option == 'OPTBE_UG' || configStep.option == 'OPTBEZUG' || configStep.option == 'OPTKO' || configStep.option == 'OPTFR' || configStep.option == 'OPTNI' || configStep.option == 'OPTUF_FA' || configStep.option == 'OPTBE_NETZ' || configStep.option == 'OPTBE_AL' || configStep.option == 'OPTKISSEN_BE' || configStep.option == 'OPTKP_BE' || configStep.option == 'OPTARM_BE' || configStep.option == 'OPTBE_KT' || configStep.option == 'OPT3' || configStep.option == 'OPT5' || configStep.option == 'OPTBE_KNOEPFE' || configStep.option == 'OPTSK_FARBE' || configStep.option == 'OPTBANDFARBE' || configStep.option == 'OPTBE_BOX' || configStep.option == 'OPTMA_AF_BE' || configStep.option == 'OPTTOPPER_BE' || optionState !== null && optionState !== void 0 && optionState.option.hasOPG && optionState.hasImages || optionStep.mergesToOPG) {
|
|
30828
30879
|
paletteType = 'GAL_TEXT';
|
|
30829
30880
|
}
|
|
@@ -31127,7 +31178,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
31127
31178
|
key: "getFirstConfigStepKey",
|
|
31128
31179
|
value: function getFirstConfigStepKey() {
|
|
31129
31180
|
for (var key in this.tabGroups) {
|
|
31130
|
-
if (['ACC', 'OPTION', 'ACC_PLANNER'].includes(this.tabGroups[key].type)) {
|
|
31181
|
+
if (['ACC', 'OPTION', 'ACC_PLANNER', 'PLANNER_2.0'].includes(this.tabGroups[key].type)) {
|
|
31131
31182
|
var firstOptionKey = Object.keys(this.tabGroups[key].options)[0];
|
|
31132
31183
|
return this.tabGroups[key].options[firstOptionKey].configSteps[Object.keys(this.tabGroups[key].options[firstOptionKey].configSteps)[0]].key;
|
|
31133
31184
|
}
|
|
@@ -31230,7 +31281,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31230
31281
|
updateConfig = article1.CatalogData.reconfigAfterArticleDocked;
|
|
31231
31282
|
if (article1.relatedToBasketId && article1.isDockable) {
|
|
31232
31283
|
var _article = _this.getDivaArticles()[article1.relatedToBasketId];
|
|
31233
|
-
if (_article && _this.configTree.getHasTabgroupType('ACC_PLANNER')) {
|
|
31284
|
+
if (_article && _this.configTree.getHasTabgroupType('ACC_PLANNER') || _this.configTree.getHasTabgroupType('PLANNER_2.0')) {
|
|
31234
31285
|
if (article1.plannerData) article1.plannerData.isNotDockedAccessoire = true;
|
|
31235
31286
|
_this.addRelationsToArticles(article1, _article);
|
|
31236
31287
|
} else {
|
|
@@ -31521,7 +31572,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31521
31572
|
if (Object.entries(this.divaArticles).length == 0) {
|
|
31522
31573
|
plannerMode = '3DImage';
|
|
31523
31574
|
}
|
|
31524
|
-
if (this.catalogData.
|
|
31575
|
+
if (this.catalogData.divaForceRTV) {
|
|
31525
31576
|
//TODO Matthias sauber initialisieren ob in RTV oder IMAGE3D gestartet wird.
|
|
31526
31577
|
plannerMode = 'RTViewer';
|
|
31527
31578
|
}
|
|
@@ -32469,7 +32520,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
32469
32520
|
break;
|
|
32470
32521
|
}
|
|
32471
32522
|
_context5.next = 3;
|
|
32472
|
-
return import('./DoorPlanner-
|
|
32523
|
+
return import('./DoorPlanner-27fa5a55.js');
|
|
32473
32524
|
case 3:
|
|
32474
32525
|
_yield$import = _context5.sent;
|
|
32475
32526
|
DoorPlanner = _yield$import["default"];
|
|
@@ -34336,7 +34387,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34336
34387
|
|
|
34337
34388
|
//plannerstep hinzufügen
|
|
34338
34389
|
if (curPlannerType.includes('PLANNER')) {
|
|
34339
|
-
configTree.addPlannerTab();
|
|
34390
|
+
configTree.addPlannerTab(catalog);
|
|
34340
34391
|
}
|
|
34341
34392
|
if (curPlannerType.includes('PROMOTED')) {
|
|
34342
34393
|
configTree.addPromotedTab();
|
|
@@ -35058,6 +35109,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35058
35109
|
optionOcd: ops.optionOcd,
|
|
35059
35110
|
parentOptionCodex: ops.option.parentOptionCodex,
|
|
35060
35111
|
codex: item.codex,
|
|
35112
|
+
value: item.value,
|
|
35061
35113
|
ocd: item.ocd,
|
|
35062
35114
|
vCodex: item.vCodex,
|
|
35063
35115
|
layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
|
|
@@ -36630,6 +36682,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36630
36682
|
value: function getPlannerInteractionInformation(set) {
|
|
36631
36683
|
return set.plannerHandler.getPlannerInteractionInformation(set.getSetId());
|
|
36632
36684
|
}
|
|
36685
|
+
}, {
|
|
36686
|
+
key: "getGeneralPlanningState",
|
|
36687
|
+
value: function getGeneralPlanningState(set, selectedElementId) {
|
|
36688
|
+
if (set.getPlannerMode() == 'BoxPlanner') return set.plannerHandler.getGeneralPlanningState(set.getSetId(), selectedElementId);
|
|
36689
|
+
return undefined;
|
|
36690
|
+
}
|
|
36633
36691
|
}, {
|
|
36634
36692
|
key: "getLastElementInGroup",
|
|
36635
36693
|
value: function getLastElementInGroup(article) {
|
|
@@ -36771,6 +36829,56 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36771
36829
|
catalogPlannerArticles: cleanedCaltaogPlannerArticles
|
|
36772
36830
|
});
|
|
36773
36831
|
}
|
|
36832
|
+
}, {
|
|
36833
|
+
key: "getPlanner2Dot0PaletteViewInfo",
|
|
36834
|
+
value: function getPlanner2Dot0PaletteViewInfo(set) {
|
|
36835
|
+
var divaArticles = set.getDivaArticles();
|
|
36836
|
+
var plannedElements = [];
|
|
36837
|
+
for (var key in divaArticles) {
|
|
36838
|
+
var article = divaArticles[key];
|
|
36839
|
+
if (article.plannerData && !article.relatedToBasketId) {
|
|
36840
|
+
var _article$typeNr, _article$imageUrl, _article$catalogArtic, _article$catalogArtic2, _article$catalogArtic3, _article$actPlannerDa, _article$actPlannerDa2, _article$posNr;
|
|
36841
|
+
plannedElements.push({
|
|
36842
|
+
setId: set.getSetId(),
|
|
36843
|
+
basketId: article.basketId,
|
|
36844
|
+
id: article.elementId,
|
|
36845
|
+
codex: article.articleCodex,
|
|
36846
|
+
articleCodex: article.articleCodex,
|
|
36847
|
+
catalogCodex: article.catalogCodex,
|
|
36848
|
+
title: article.name,
|
|
36849
|
+
typeNr: (_article$typeNr = article.typeNr) !== null && _article$typeNr !== void 0 ? _article$typeNr : '',
|
|
36850
|
+
image: (_article$imageUrl = article.imageUrl) !== null && _article$imageUrl !== void 0 ? _article$imageUrl : '',
|
|
36851
|
+
price: article.price,
|
|
36852
|
+
contentItemId: (_article$catalogArtic = article.catalogArticle) === null || _article$catalogArtic === void 0 ? void 0 : _article$catalogArtic.contentItemId,
|
|
36853
|
+
groupContentItemId: (_article$catalogArtic2 = article.catalogArticle) === null || _article$catalogArtic2 === void 0 ? void 0 : _article$catalogArtic2.groupContentItemId,
|
|
36854
|
+
depth: article.depth,
|
|
36855
|
+
width: article.width,
|
|
36856
|
+
height: article.height,
|
|
36857
|
+
sizeInfo: DivaUtils.sizeFormatter(article.catalogArticle, set.i18n, true, ':'),
|
|
36858
|
+
longDescription: (_article$catalogArtic3 = article.catalogArticle) === null || _article$catalogArtic3 === void 0 ? void 0 : _article$catalogArtic3.longDescription,
|
|
36859
|
+
incomplete: article.incomplete,
|
|
36860
|
+
avlFilter: (_article$actPlannerDa = article.actPlannerData) === null || _article$actPlannerDa === void 0 ? void 0 : _article$actPlannerDa.AVLFilter,
|
|
36861
|
+
avrFilter: (_article$actPlannerDa2 = article.actPlannerData) === null || _article$actPlannerDa2 === void 0 ? void 0 : _article$actPlannerDa2.AVRFilter,
|
|
36862
|
+
posNr: (_article$posNr = article.posNr) !== null && _article$posNr !== void 0 ? _article$posNr : 0
|
|
36863
|
+
});
|
|
36864
|
+
}
|
|
36865
|
+
}
|
|
36866
|
+
plannedElements = plannedElements.sort(function (a, b) {
|
|
36867
|
+
return a.posNr - b.posNr;
|
|
36868
|
+
});
|
|
36869
|
+
plannedElements.push({
|
|
36870
|
+
setId: set.getSetId(),
|
|
36871
|
+
basketId: 'add',
|
|
36872
|
+
id: -1,
|
|
36873
|
+
codex: 'add',
|
|
36874
|
+
articleCodex: 'add',
|
|
36875
|
+
catalogCodex: set.CatalogData.catalogCodex,
|
|
36876
|
+
title: 'add',
|
|
36877
|
+
image: '',
|
|
36878
|
+
posNr: 0
|
|
36879
|
+
});
|
|
36880
|
+
return plannedElements;
|
|
36881
|
+
}
|
|
36774
36882
|
}, {
|
|
36775
36883
|
key: "setActSet",
|
|
36776
36884
|
value: function setActSet(sets, setId) {
|
|
@@ -39338,7 +39446,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39338
39446
|
break;
|
|
39339
39447
|
case 3:
|
|
39340
39448
|
_context12.next = 5;
|
|
39341
|
-
return import('./PfisterWWSHandler-
|
|
39449
|
+
return import('./PfisterWWSHandler-39c3f3e2.js');
|
|
39342
39450
|
case 5:
|
|
39343
39451
|
_yield$import = _context12.sent;
|
|
39344
39452
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -39346,7 +39454,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39346
39454
|
return _context12.abrupt("break", 27);
|
|
39347
39455
|
case 9:
|
|
39348
39456
|
_context12.next = 11;
|
|
39349
|
-
return import('./LiviqueWWSHandler-
|
|
39457
|
+
return import('./LiviqueWWSHandler-494ad9a9.js');
|
|
39350
39458
|
case 11:
|
|
39351
39459
|
_yield$import2 = _context12.sent;
|
|
39352
39460
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -39354,7 +39462,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39354
39462
|
return _context12.abrupt("break", 27);
|
|
39355
39463
|
case 15:
|
|
39356
39464
|
_context12.next = 17;
|
|
39357
|
-
return import('./SeriousBasketHandler-
|
|
39465
|
+
return import('./SeriousBasketHandler-51aa34db.js');
|
|
39358
39466
|
case 17:
|
|
39359
39467
|
_yield$import3 = _context12.sent;
|
|
39360
39468
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -39362,7 +39470,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39362
39470
|
return _context12.abrupt("break", 27);
|
|
39363
39471
|
case 21:
|
|
39364
39472
|
_context12.next = 23;
|
|
39365
|
-
return import('./StandardWWSHandler-
|
|
39473
|
+
return import('./StandardWWSHandler-6d93ce48.js');
|
|
39366
39474
|
case 23:
|
|
39367
39475
|
_yield$import4 = _context12.sent;
|
|
39368
39476
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -40179,6 +40287,7 @@ var Rendering = /*#__PURE__*/function () {
|
|
|
40179
40287
|
if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
|
|
40180
40288
|
boxPlan = this.uiInfo['S1']['E' + elemId]['BoxPlan'];
|
|
40181
40289
|
} else if (this.uiInfo[setId]) boxPlan = this.uiInfo[setId]['E' + elemId]['BoxPlan'];else boxPlan = this.uiInfo['E' + elemId]['BoxPlan'];
|
|
40290
|
+
if (!boxPlan) return;
|
|
40182
40291
|
for (var i = 0; i < boxPlan.length; i++) {
|
|
40183
40292
|
if (!boxPlan[i].N || !boxPlan[i].x || !boxPlan[i].y) continue;
|
|
40184
40293
|
switch (corner) {
|
|
@@ -40790,7 +40899,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
40790
40899
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40791
40900
|
case 0:
|
|
40792
40901
|
_context3.next = 2;
|
|
40793
|
-
return import('./Host3DSignalR-
|
|
40902
|
+
return import('./Host3DSignalR-e85d1c87.js');
|
|
40794
40903
|
case 2:
|
|
40795
40904
|
_yield$import = _context3.sent;
|
|
40796
40905
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41644,8 +41753,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41644
41753
|
_this2.liveArSocket.auth = _objectSpread$6(_objectSpread$6({}, _this2.liveArSocket.auth), {}, {
|
|
41645
41754
|
connectionId: data.connectionId
|
|
41646
41755
|
});
|
|
41647
|
-
var
|
|
41648
|
-
resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils.SessionId +
|
|
41756
|
+
var applyConfiguratorSessionId = DivaUtils.ConfigurationId ? '&configurationId=' + DivaUtils.ConfigurationId : '';
|
|
41757
|
+
resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils.SessionId + applyConfiguratorSessionId);
|
|
41649
41758
|
});
|
|
41650
41759
|
_this2.liveArSocket.on('connect_error', function (err) {
|
|
41651
41760
|
return reject(err);
|
|
@@ -42348,7 +42457,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42348
42457
|
break;
|
|
42349
42458
|
case 8:
|
|
42350
42459
|
_context4.next = 10;
|
|
42351
|
-
return import('./DivaStandardPlanner-
|
|
42460
|
+
return import('./DivaStandardPlanner-5221526b.js');
|
|
42352
42461
|
case 10:
|
|
42353
42462
|
_yield$import = _context4.sent;
|
|
42354
42463
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -42359,7 +42468,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42359
42468
|
return _context4.abrupt("break", 21);
|
|
42360
42469
|
case 15:
|
|
42361
42470
|
_context4.next = 17;
|
|
42362
|
-
return import('./DivaBoxPlanner-
|
|
42471
|
+
return import('./DivaBoxPlanner-fcf19f4c.js');
|
|
42363
42472
|
case 17:
|
|
42364
42473
|
_yield$import2 = _context4.sent;
|
|
42365
42474
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -43106,6 +43215,14 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43106
43215
|
}
|
|
43107
43216
|
return undefined;
|
|
43108
43217
|
}
|
|
43218
|
+
}, {
|
|
43219
|
+
key: "getGeneralPlanningState",
|
|
43220
|
+
value: function getGeneralPlanningState(setId, selectedElementId) {
|
|
43221
|
+
if (this.plannerList.has(setId)) {
|
|
43222
|
+
return this.plannerList.get(setId).getGeneralPlanningState(selectedElementId);
|
|
43223
|
+
}
|
|
43224
|
+
return undefined;
|
|
43225
|
+
}
|
|
43109
43226
|
}, {
|
|
43110
43227
|
key: "handle3DVisualizationChanged",
|
|
43111
43228
|
value: function handle3DVisualizationChanged(mode, params, doShow3DDimensionLines, alternateRenderingsExist) {
|
|
@@ -43377,6 +43494,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
43377
43494
|
_defineProperty(this, "getPlannerRenderingSize", void 0);
|
|
43378
43495
|
_defineProperty(this, "getPlanner3DGridEnabled", void 0);
|
|
43379
43496
|
_defineProperty(this, "updateCatalogPlannerArticles", void 0);
|
|
43497
|
+
_defineProperty(this, "updateCatalogPlanner2Dot0Articles", void 0);
|
|
43380
43498
|
_defineProperty(this, "updateAccessoiresPalette", void 0);
|
|
43381
43499
|
_defineProperty(this, "updatePaletteInfos", void 0);
|
|
43382
43500
|
_defineProperty(this, "updateElementSelectionConfig", void 0);
|
|
@@ -43506,6 +43624,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
43506
43624
|
//Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
|
|
43507
43625
|
(_this$updateCatalogPl = _this.updateCatalogPlannerArticles) === null || _this$updateCatalogPl === void 0 || _this$updateCatalogPl.call(_this, setHandlerInstance.getPlannerPaletteViewInfo(_this.actSet(), type, selectedArticle), paletteeId, isUpdate, type, dockFilter, actStepName, stepKey);
|
|
43508
43626
|
});
|
|
43627
|
+
_defineProperty(this, "loadCatalogPlannerArticles2Dot0", function (isUpdate, onlySelectionChanged) {
|
|
43628
|
+
var _this$updateCatalogPl2;
|
|
43629
|
+
(_this$updateCatalogPl2 = _this.updateCatalogPlanner2Dot0Articles) === null || _this$updateCatalogPl2 === void 0 || _this$updateCatalogPl2.call(_this, setHandlerInstance.getPlanner2Dot0PaletteViewInfo(_this.actSet()), isUpdate, onlySelectionChanged);
|
|
43630
|
+
});
|
|
43509
43631
|
/**
|
|
43510
43632
|
* this fuction loads the accessoires of a specific article -> could be more than one article in the future
|
|
43511
43633
|
* @param targetArticles the article of which we load the accessoires
|
|
@@ -44278,11 +44400,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44278
44400
|
originalProductId: oldProductId,
|
|
44279
44401
|
maskId: (_catalogData$catalogM = catalogData === null || catalogData === void 0 || (_catalogData$catalogM2 = catalogData.catalogMask) === null || _catalogData$catalogM2 === void 0 ? void 0 : _catalogData$catalogM2.packageId) !== null && _catalogData$catalogM !== void 0 ? _catalogData$catalogM : undefined
|
|
44280
44402
|
}, false);
|
|
44281
|
-
|
|
44403
|
+
this.configuratorChangeLog('onInitOptions', undefined, true);
|
|
44404
|
+
this.plannerChangeLog('onInitPlanner', true);
|
|
44405
|
+
_context15.next = 40;
|
|
44282
44406
|
return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
|
|
44283
|
-
case
|
|
44407
|
+
case 40:
|
|
44284
44408
|
return _context15.abrupt("return", true);
|
|
44285
|
-
case
|
|
44409
|
+
case 41:
|
|
44286
44410
|
case "end":
|
|
44287
44411
|
return _context15.stop();
|
|
44288
44412
|
}
|
|
@@ -45012,6 +45136,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45012
45136
|
}
|
|
45013
45137
|
return moveShelfItemToGrid;
|
|
45014
45138
|
}()
|
|
45139
|
+
}, {
|
|
45140
|
+
key: "getPlannerInteractionInformation",
|
|
45141
|
+
value: function getPlannerInteractionInformation() {
|
|
45142
|
+
var set = this.actSet();
|
|
45143
|
+
if (!set) return;
|
|
45144
|
+
return setHandlerInstance.getPlannerInteractionInformation(set);
|
|
45145
|
+
}
|
|
45146
|
+
}, {
|
|
45147
|
+
key: "getGeneralPlanningState",
|
|
45148
|
+
value: function getGeneralPlanningState(setId, selectedElementId) {
|
|
45149
|
+
var set = this.sets[setId];
|
|
45150
|
+
if (!set) return;
|
|
45151
|
+
return setHandlerInstance.getGeneralPlanningState(set, selectedElementId);
|
|
45152
|
+
}
|
|
45015
45153
|
}, {
|
|
45016
45154
|
key: "resetArticle",
|
|
45017
45155
|
value: function () {
|
|
@@ -45172,7 +45310,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45172
45310
|
}, {
|
|
45173
45311
|
key: "saveToBasketWrapper",
|
|
45174
45312
|
value: function () {
|
|
45175
|
-
var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, returnToParam) {
|
|
45313
|
+
var _saveToBasketWrapper = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(event, repairOnly, returnToParam, hideLoading) {
|
|
45176
45314
|
var _this$actions29,
|
|
45177
45315
|
_this$actions29$toggl,
|
|
45178
45316
|
_this$actions30,
|
|
@@ -45226,12 +45364,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45226
45364
|
case 20:
|
|
45227
45365
|
returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
45228
45366
|
case 21:
|
|
45229
|
-
(_this$actions29 = this.actions) === null || _this$actions29 === void 0 || (_this$actions29$toggl = _this$actions29.toggleLoading) === null || _this$actions29$toggl === void 0 || _this$actions29$toggl.call(_this$actions29, 'Planner_Saving', false, true);
|
|
45367
|
+
if (!hideLoading) (_this$actions29 = this.actions) === null || _this$actions29 === void 0 || (_this$actions29$toggl = _this$actions29.toggleLoading) === null || _this$actions29$toggl === void 0 || _this$actions29$toggl.call(_this$actions29, 'Planner_Saving', false, true);
|
|
45230
45368
|
_context26.next = 24;
|
|
45231
45369
|
return this.saveToBasket(returnTo, finalEvent.event, repairOnly);
|
|
45232
45370
|
case 24:
|
|
45233
45371
|
result = _context26.sent;
|
|
45234
|
-
(_this$actions30 = this.actions) === null || _this$actions30 === void 0 || (_this$actions30$toggl = _this$actions30.toggleLoading) === null || _this$actions30$toggl === void 0 || _this$actions30$toggl.call(_this$actions30, 'Planner_Saving', false, false);
|
|
45372
|
+
if (!hideLoading) (_this$actions30 = this.actions) === null || _this$actions30 === void 0 || (_this$actions30$toggl = _this$actions30.toggleLoading) === null || _this$actions30$toggl === void 0 || _this$actions30$toggl.call(_this$actions30, 'Planner_Saving', false, false);
|
|
45235
45373
|
if (!(result === 'canceled')) {
|
|
45236
45374
|
_context26.next = 30;
|
|
45237
45375
|
break;
|
|
@@ -45285,7 +45423,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45285
45423
|
}
|
|
45286
45424
|
}, _callee26, this);
|
|
45287
45425
|
}));
|
|
45288
|
-
function saveToBasketWrapper(_x73, _x74, _x75) {
|
|
45426
|
+
function saveToBasketWrapper(_x73, _x74, _x75, _x76) {
|
|
45289
45427
|
return _saveToBasketWrapper.apply(this, arguments);
|
|
45290
45428
|
}
|
|
45291
45429
|
return saveToBasketWrapper;
|
|
@@ -45427,7 +45565,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45427
45565
|
}
|
|
45428
45566
|
}, _callee27, this);
|
|
45429
45567
|
}));
|
|
45430
|
-
function saveToBasket(
|
|
45568
|
+
function saveToBasket(_x77, _x78, _x79) {
|
|
45431
45569
|
return _saveToBasket.apply(this, arguments);
|
|
45432
45570
|
}
|
|
45433
45571
|
return saveToBasket;
|
|
@@ -45603,36 +45741,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45603
45741
|
var _this$actSet22;
|
|
45604
45742
|
return (_this$actSet22 = this.actSet()) === null || _this$actSet22 === void 0 || (_this$actSet22 = _this$actSet22.CatalogData) === null || _this$actSet22 === void 0 ? void 0 : _this$actSet22.hidePlannerUiIcons;
|
|
45605
45743
|
}
|
|
45744
|
+
}, {
|
|
45745
|
+
key: "getPlanner2Dot0Active",
|
|
45746
|
+
value: function getPlanner2Dot0Active() {
|
|
45747
|
+
var _this$actSet23;
|
|
45748
|
+
return (_this$actSet23 = this.actSet()) === null || _this$actSet23 === void 0 || (_this$actSet23 = _this$actSet23.CatalogData) === null || _this$actSet23 === void 0 ? void 0 : _this$actSet23.planner2Dot0;
|
|
45749
|
+
}
|
|
45606
45750
|
}, {
|
|
45607
45751
|
key: "doShowPlannerReplaceMode",
|
|
45608
45752
|
value: function doShowPlannerReplaceMode() {
|
|
45609
|
-
var _this$
|
|
45610
|
-
var catalogData = (_this$
|
|
45753
|
+
var _this$actSet24, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
|
|
45754
|
+
var catalogData = (_this$actSet24 = this.actSet()) === null || _this$actSet24 === void 0 ? void 0 : _this$actSet24.CatalogData;
|
|
45611
45755
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
|
|
45612
45756
|
}
|
|
45613
45757
|
}, {
|
|
45614
45758
|
key: "doPlannerReplaceAutoSwitch",
|
|
45615
45759
|
value: function doPlannerReplaceAutoSwitch() {
|
|
45616
|
-
var _this$
|
|
45617
|
-
var catalogData = (_this$
|
|
45760
|
+
var _this$actSet25, _this$api$getViewConf3;
|
|
45761
|
+
var catalogData = (_this$actSet25 = this.actSet()) === null || _this$actSet25 === void 0 ? void 0 : _this$actSet25.CatalogData;
|
|
45618
45762
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
|
|
45619
45763
|
}
|
|
45620
45764
|
}, {
|
|
45621
45765
|
key: "getHidePlanner",
|
|
45622
45766
|
value: function getHidePlanner() {
|
|
45623
|
-
var _this$
|
|
45624
|
-
return this.api.getHidePlanner() || !!((_this$
|
|
45767
|
+
var _this$actSet26;
|
|
45768
|
+
return this.api.getHidePlanner() || !!((_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.useBoxPlanner);
|
|
45625
45769
|
}
|
|
45626
45770
|
}, {
|
|
45627
45771
|
key: "getAllowRTV",
|
|
45628
45772
|
value: function getAllowRTV() {
|
|
45629
|
-
var _this$state5, _this$
|
|
45773
|
+
var _this$state5, _this$actSet27, _this$state6, _this$actSet28;
|
|
45630
45774
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
45631
45775
|
if ((_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.organization.settings.forceRTV) return true;
|
|
45632
|
-
if ((_this$
|
|
45633
|
-
if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$
|
|
45776
|
+
if ((_this$actSet27 = this.actSet()) !== null && _this$actSet27 !== void 0 && _this$actSet27.CatalogData.divaForceRTV) return true;
|
|
45777
|
+
if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.divaArReady) return true;
|
|
45634
45778
|
return false;
|
|
45635
45779
|
}
|
|
45780
|
+
}, {
|
|
45781
|
+
key: "getForceRTV",
|
|
45782
|
+
value: function getForceRTV() {
|
|
45783
|
+
var _this$actSet29;
|
|
45784
|
+
return !!((_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaForceRTV);
|
|
45785
|
+
}
|
|
45636
45786
|
}, {
|
|
45637
45787
|
key: "getPricePreview",
|
|
45638
45788
|
value: function getPricePreview() {
|
|
@@ -45641,29 +45791,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45641
45791
|
}, {
|
|
45642
45792
|
key: "hide2DPlanner",
|
|
45643
45793
|
value: function hide2DPlanner() {
|
|
45644
|
-
var _this$
|
|
45645
|
-
return (_this$
|
|
45794
|
+
var _this$actSet30;
|
|
45795
|
+
return (_this$actSet30 = this.actSet()) === null || _this$actSet30 === void 0 ? void 0 : _this$actSet30.CatalogData.hide2DPlanner;
|
|
45646
45796
|
}
|
|
45647
45797
|
}, {
|
|
45648
45798
|
key: "getAllowQRCodeAR",
|
|
45649
45799
|
value: function getAllowQRCodeAR() {
|
|
45650
|
-
var _this$
|
|
45651
|
-
if (this.api.enableAR && (_this$
|
|
45800
|
+
var _this$actSet31;
|
|
45801
|
+
if (this.api.enableAR && (_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaArReady) return true;
|
|
45652
45802
|
return false;
|
|
45653
45803
|
}
|
|
45654
45804
|
}, {
|
|
45655
45805
|
key: "getEnableUnityRtvKombi",
|
|
45656
45806
|
value: function getEnableUnityRtvKombi() {
|
|
45657
|
-
var _this$
|
|
45807
|
+
var _this$actSet32, _this$actSet33;
|
|
45658
45808
|
// if force rtv disable unity kombi - biohort
|
|
45659
|
-
if ((_this$
|
|
45660
|
-
return ((_this$
|
|
45809
|
+
if ((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV) return false;
|
|
45810
|
+
return ((_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
|
|
45661
45811
|
}
|
|
45662
45812
|
}, {
|
|
45663
45813
|
key: "getShelfPlannerRTV",
|
|
45664
45814
|
value: function getShelfPlannerRTV() {
|
|
45665
|
-
var _this$
|
|
45666
|
-
return (_this$
|
|
45815
|
+
var _this$actSet34;
|
|
45816
|
+
return (_this$actSet34 = this.actSet()) === null || _this$actSet34 === void 0 ? void 0 : _this$actSet34.CatalogData.useShelfPlannerRTV;
|
|
45667
45817
|
}
|
|
45668
45818
|
}, {
|
|
45669
45819
|
key: "getBasketData",
|
|
@@ -45704,8 +45854,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45704
45854
|
}, {
|
|
45705
45855
|
key: "getCatalogData",
|
|
45706
45856
|
value: function getCatalogData() {
|
|
45707
|
-
var _this$
|
|
45708
|
-
return (_this$
|
|
45857
|
+
var _this$actSet35;
|
|
45858
|
+
return (_this$actSet35 = this.actSet()) === null || _this$actSet35 === void 0 ? void 0 : _this$actSet35.CatalogData;
|
|
45709
45859
|
}
|
|
45710
45860
|
}, {
|
|
45711
45861
|
key: "ReturnTo",
|
|
@@ -45855,7 +46005,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45855
46005
|
}
|
|
45856
46006
|
}, _callee29, this);
|
|
45857
46007
|
}));
|
|
45858
|
-
function addToBasket(
|
|
46008
|
+
function addToBasket(_x80) {
|
|
45859
46009
|
return _addToBasket.apply(this, arguments);
|
|
45860
46010
|
}
|
|
45861
46011
|
return addToBasket;
|
|
@@ -45910,19 +46060,19 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45910
46060
|
}, {
|
|
45911
46061
|
key: "getCurrentBasket",
|
|
45912
46062
|
value: function () {
|
|
45913
|
-
var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(event, force, returnTo, dontGoToSummary) {
|
|
45914
|
-
var _this$
|
|
46063
|
+
var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(event, force, returnTo, dontGoToSummary, hideLoading) {
|
|
46064
|
+
var _this$actSet36, _this$divaBasketHandl5, _this$onClickAddToBas3;
|
|
45915
46065
|
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
45916
46066
|
while (1) switch (_context30.prev = _context30.next) {
|
|
45917
46067
|
case 0:
|
|
45918
|
-
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$
|
|
46068
|
+
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
|
|
45919
46069
|
_context30.next = 2;
|
|
45920
46070
|
break;
|
|
45921
46071
|
}
|
|
45922
|
-
return _context30.abrupt("return",
|
|
46072
|
+
return _context30.abrupt("return", 'BASKET_ALREADY_SAVED');
|
|
45923
46073
|
case 2:
|
|
45924
46074
|
_context30.next = 4;
|
|
45925
|
-
return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, undefined, event, force, returnTo, dontGoToSummary);
|
|
46075
|
+
return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, undefined, event, force, returnTo, dontGoToSummary, hideLoading);
|
|
45926
46076
|
case 4:
|
|
45927
46077
|
return _context30.abrupt("return", !!_context30.sent);
|
|
45928
46078
|
case 5:
|
|
@@ -45931,7 +46081,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45931
46081
|
}
|
|
45932
46082
|
}, _callee30, this);
|
|
45933
46083
|
}));
|
|
45934
|
-
function getCurrentBasket(
|
|
46084
|
+
function getCurrentBasket(_x81, _x82, _x83, _x84, _x85) {
|
|
45935
46085
|
return _getCurrentBasket.apply(this, arguments);
|
|
45936
46086
|
}
|
|
45937
46087
|
return getCurrentBasket;
|
|
@@ -46060,6 +46210,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46060
46210
|
value: function registerUpdateCatalogPlannerArticles(updateCatalogPlannerArticles) {
|
|
46061
46211
|
this.updateCatalogPlannerArticles = updateCatalogPlannerArticles;
|
|
46062
46212
|
}
|
|
46213
|
+
}, {
|
|
46214
|
+
key: "registerUpdateCatalogPlanner2Dot0Articles",
|
|
46215
|
+
value: function registerUpdateCatalogPlanner2Dot0Articles(updateCatalogPlanner2Dot0Articles) {
|
|
46216
|
+
this.updateCatalogPlanner2Dot0Articles = updateCatalogPlanner2Dot0Articles;
|
|
46217
|
+
}
|
|
46063
46218
|
}, {
|
|
46064
46219
|
key: "registerUpdateAccessoiresPalette",
|
|
46065
46220
|
value: function registerUpdateAccessoiresPalette(updateAccessoiresPalette) {
|
|
@@ -46183,7 +46338,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46183
46338
|
}
|
|
46184
46339
|
}, _callee31, this);
|
|
46185
46340
|
}));
|
|
46186
|
-
function initApiForLogicOnly(
|
|
46341
|
+
function initApiForLogicOnly(_x86, _x87, _x88, _x89, _x90, _x91, _x92) {
|
|
46187
46342
|
return _initApiForLogicOnly.apply(this, arguments);
|
|
46188
46343
|
}
|
|
46189
46344
|
return initApiForLogicOnly;
|
|
@@ -46252,7 +46407,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46252
46407
|
}
|
|
46253
46408
|
}, _callee33, this);
|
|
46254
46409
|
}));
|
|
46255
|
-
function initBasket(
|
|
46410
|
+
function initBasket(_x93, _x94) {
|
|
46256
46411
|
return _initBasket.apply(this, arguments);
|
|
46257
46412
|
}
|
|
46258
46413
|
return initBasket;
|
|
@@ -46329,7 +46484,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46329
46484
|
}
|
|
46330
46485
|
}, _callee35, this);
|
|
46331
46486
|
}));
|
|
46332
|
-
function handleFavorites(
|
|
46487
|
+
function handleFavorites(_x95) {
|
|
46333
46488
|
return _handleFavorites.apply(this, arguments);
|
|
46334
46489
|
}
|
|
46335
46490
|
return handleFavorites;
|
|
@@ -46383,7 +46538,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46383
46538
|
}
|
|
46384
46539
|
}, _callee36, this);
|
|
46385
46540
|
}));
|
|
46386
|
-
function initSapOrderLinesFromBasket(
|
|
46541
|
+
function initSapOrderLinesFromBasket(_x96, _x97, _x98) {
|
|
46387
46542
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
46388
46543
|
}
|
|
46389
46544
|
return initSapOrderLinesFromBasket;
|
|
@@ -46413,6 +46568,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46413
46568
|
get: function get() {
|
|
46414
46569
|
return Object.values(this.sets);
|
|
46415
46570
|
}
|
|
46571
|
+
}, {
|
|
46572
|
+
key: "getPlannerType",
|
|
46573
|
+
value: function getPlannerType() {
|
|
46574
|
+
return this.api.getPlannerType();
|
|
46575
|
+
}
|
|
46416
46576
|
|
|
46417
46577
|
/**
|
|
46418
46578
|
* This function returns the planner mode.
|
|
@@ -46446,6 +46606,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46446
46606
|
}, {
|
|
46447
46607
|
key: "plannerChangeLog",
|
|
46448
46608
|
value: function plannerChangeLog(action) {
|
|
46609
|
+
var isInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
46449
46610
|
var set = this.actSet();
|
|
46450
46611
|
var articleCodex = [];
|
|
46451
46612
|
var accesoriesCodex = [];
|
|
@@ -46491,23 +46652,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46491
46652
|
}
|
|
46492
46653
|
});
|
|
46493
46654
|
LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
|
|
46494
|
-
basketValue: actualBasketvalue
|
|
46655
|
+
basketValue: actualBasketvalue,
|
|
46656
|
+
isInit: isInit
|
|
46495
46657
|
});
|
|
46496
46658
|
}
|
|
46497
46659
|
}, {
|
|
46498
46660
|
key: "configuratorChangeLog",
|
|
46499
46661
|
value: function configuratorChangeLog(action, myValues) {
|
|
46662
|
+
var isInit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
46500
46663
|
var set = this.actSet();
|
|
46501
46664
|
var configuration = [];
|
|
46502
46665
|
var allOpt = [];
|
|
46503
46666
|
var allOpv = [];
|
|
46504
46667
|
var latestOpv = {};
|
|
46505
46668
|
var latestOpt = {};
|
|
46669
|
+
var latestColor = [];
|
|
46506
46670
|
var actualBasketvalue = 0;
|
|
46507
46671
|
if (set) {
|
|
46508
46672
|
actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
|
|
46509
46673
|
if (myValues) {
|
|
46510
|
-
var _set$CatalogData$getO, _set$CatalogData$getO2;
|
|
46674
|
+
var _set$CatalogData$getO, _set$CatalogData$getO2, _set$CatalogData$getO3;
|
|
46511
46675
|
latestOpt = {
|
|
46512
46676
|
codex: Object.keys(myValues)[0],
|
|
46513
46677
|
name: (_set$CatalogData$getO = set.CatalogData.getOption(Object.keys(myValues)[0])) === null || _set$CatalogData$getO === void 0 ? void 0 : _set$CatalogData$getO.name
|
|
@@ -46516,6 +46680,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46516
46680
|
codex: Object.values(myValues)[0],
|
|
46517
46681
|
name: (_set$CatalogData$getO2 = set.CatalogData.getOptionValue(Object.values(myValues)[0])) === null || _set$CatalogData$getO2 === void 0 ? void 0 : _set$CatalogData$getO2.name
|
|
46518
46682
|
};
|
|
46683
|
+
latestColor = ((_set$CatalogData$getO3 = set.CatalogData.getOptionValue(Object.values(myValues)[0])) === null || _set$CatalogData$getO3 === void 0 ? void 0 : _set$CatalogData$getO3.colorGroups) || [];
|
|
46519
46684
|
}
|
|
46520
46685
|
for (var _i2 = 0, _Object$values2 = Object.values(set.getDivaArticles()); _i2 < _Object$values2.length; _i2++) {
|
|
46521
46686
|
var article = _Object$values2[_i2];
|
|
@@ -46524,17 +46689,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46524
46689
|
varientValues: article.VariantValues,
|
|
46525
46690
|
basketId: article.basketId,
|
|
46526
46691
|
opt: Object.keys(article.VariantValues).map(function (key) {
|
|
46527
|
-
var _set$CatalogData$
|
|
46692
|
+
var _set$CatalogData$getO4;
|
|
46528
46693
|
return {
|
|
46529
46694
|
codex: key,
|
|
46530
|
-
name: (_set$CatalogData$
|
|
46695
|
+
name: (_set$CatalogData$getO4 = set.CatalogData.getOption(key)) === null || _set$CatalogData$getO4 === void 0 ? void 0 : _set$CatalogData$getO4.name
|
|
46531
46696
|
};
|
|
46532
46697
|
}),
|
|
46533
46698
|
opv: Object.values(article.VariantValues).map(function (value) {
|
|
46534
|
-
var _set$CatalogData$
|
|
46699
|
+
var _set$CatalogData$getO5;
|
|
46535
46700
|
return {
|
|
46536
46701
|
codex: value,
|
|
46537
|
-
name: (_set$CatalogData$
|
|
46702
|
+
name: (_set$CatalogData$getO5 = set.CatalogData.getOption(value)) === null || _set$CatalogData$getO5 === void 0 ? void 0 : _set$CatalogData$getO5.name
|
|
46538
46703
|
};
|
|
46539
46704
|
})
|
|
46540
46705
|
}];
|
|
@@ -46543,33 +46708,33 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46543
46708
|
varientValues: article.VariantValues,
|
|
46544
46709
|
basketId: article.basketId,
|
|
46545
46710
|
opt: Object.keys(article.VariantValues).map(function (key) {
|
|
46546
|
-
var _set$CatalogData$
|
|
46711
|
+
var _set$CatalogData$getO6;
|
|
46547
46712
|
return {
|
|
46548
46713
|
codex: key,
|
|
46549
|
-
name: (_set$CatalogData$
|
|
46714
|
+
name: (_set$CatalogData$getO6 = set.CatalogData.getOption(key)) === null || _set$CatalogData$getO6 === void 0 ? void 0 : _set$CatalogData$getO6.name
|
|
46550
46715
|
};
|
|
46551
46716
|
}),
|
|
46552
46717
|
opv: Object.values(article.VariantValues).map(function (value) {
|
|
46553
|
-
var _set$CatalogData$
|
|
46718
|
+
var _set$CatalogData$getO7;
|
|
46554
46719
|
return {
|
|
46555
46720
|
codex: value,
|
|
46556
|
-
name: (_set$CatalogData$
|
|
46721
|
+
name: (_set$CatalogData$getO7 = set.CatalogData.getOptionValue(value)) === null || _set$CatalogData$getO7 === void 0 ? void 0 : _set$CatalogData$getO7.name
|
|
46557
46722
|
};
|
|
46558
46723
|
})
|
|
46559
46724
|
});
|
|
46560
46725
|
}
|
|
46561
46726
|
for (var _i3 = 0, _Object$entries = Object.entries(article.VariantValues); _i3 < _Object$entries.length; _i3++) {
|
|
46562
|
-
var _set$CatalogData$
|
|
46727
|
+
var _set$CatalogData$getO8, _set$CatalogData$getO9;
|
|
46563
46728
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i3], 2),
|
|
46564
46729
|
opt = _Object$entries$_i[0],
|
|
46565
46730
|
opv = _Object$entries$_i[1];
|
|
46566
46731
|
allOpt.push({
|
|
46567
46732
|
codex: opt,
|
|
46568
|
-
name: (_set$CatalogData$
|
|
46733
|
+
name: (_set$CatalogData$getO8 = set.CatalogData.getOption(opt)) === null || _set$CatalogData$getO8 === void 0 ? void 0 : _set$CatalogData$getO8.name
|
|
46569
46734
|
});
|
|
46570
46735
|
allOpv.push({
|
|
46571
46736
|
codex: opv,
|
|
46572
|
-
name: (_set$CatalogData$
|
|
46737
|
+
name: (_set$CatalogData$getO9 = set.CatalogData.getOptionValue(opv)) === null || _set$CatalogData$getO9 === void 0 ? void 0 : _set$CatalogData$getO9.name
|
|
46573
46738
|
});
|
|
46574
46739
|
}
|
|
46575
46740
|
}
|
|
@@ -46578,7 +46743,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46578
46743
|
configuration: {
|
|
46579
46744
|
latest: {
|
|
46580
46745
|
opv: latestOpv,
|
|
46581
|
-
opt: latestOpt
|
|
46746
|
+
opt: latestOpt,
|
|
46747
|
+
color: latestColor
|
|
46582
46748
|
},
|
|
46583
46749
|
opt: allOpt,
|
|
46584
46750
|
opv: allOpv,
|
|
@@ -46586,7 +46752,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46586
46752
|
}
|
|
46587
46753
|
});
|
|
46588
46754
|
LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
|
|
46589
|
-
basketValue: actualBasketvalue
|
|
46755
|
+
basketValue: actualBasketvalue,
|
|
46756
|
+
isInit: isInit
|
|
46590
46757
|
});
|
|
46591
46758
|
}
|
|
46592
46759
|
}, {
|
|
@@ -46602,6 +46769,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46602
46769
|
this.navigateToTabGroup = undefined;
|
|
46603
46770
|
this.navigateToConfigStep = undefined;
|
|
46604
46771
|
this.updateCatalogPlannerArticles = undefined;
|
|
46772
|
+
this.updateCatalogPlanner2Dot0Articles = undefined;
|
|
46605
46773
|
this.updateAccessoiresPalette = undefined;
|
|
46606
46774
|
this.setWebConifguratorTitle = undefined;
|
|
46607
46775
|
this.onBasketInitialized = undefined;
|