@crystaldesign/web-planner-logic 25.9.0-beta.9 → 25.9.0-rc.0
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
|
@@ -17507,7 +17507,7 @@ function initCatalogOptionValues(catalogData, jsonOptions) {
|
|
|
17507
17507
|
return optionValues;
|
|
17508
17508
|
}
|
|
17509
17509
|
function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
17510
|
-
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;
|
|
17510
|
+
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;
|
|
17511
17511
|
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;
|
|
17512
17512
|
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;
|
|
17513
17513
|
var opv = {
|
|
@@ -17536,7 +17536,7 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
|
17536
17536
|
measureStep: (_jsonOPV$MeasureStep = jsonOPV.MeasureStep) === null || _jsonOPV$MeasureStep === void 0 ? void 0 : _jsonOPV$MeasureStep.replace(',', '.'),
|
|
17537
17537
|
showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
|
|
17538
17538
|
priceUnit: jsonOPV.PriceUnit,
|
|
17539
|
-
value: jsonOPV.Value,
|
|
17539
|
+
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,
|
|
17540
17540
|
property: [].concat(_toConsumableArray__default["default"]((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray__default["default"]((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
|
|
17541
17541
|
textbausteine: jsonOPV.Textbausteine
|
|
17542
17542
|
};
|
|
@@ -17613,15 +17613,15 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17613
17613
|
if (catPlanArticle.hideInPlannerStep) return;
|
|
17614
17614
|
if (catPlanArticle.partListExclusive) return;
|
|
17615
17615
|
if (catalogProps.has3dModels && !catPlanArticle.modelName3D) return;
|
|
17616
|
-
var
|
|
17616
|
+
var image = '';
|
|
17617
17617
|
if (catPlanArticle.hasImage) {
|
|
17618
17618
|
if (catPlanArticle.getImage().substring(0, 5) == 'data:') {
|
|
17619
|
-
|
|
17619
|
+
image = catPlanArticle.getImage();
|
|
17620
17620
|
} else {
|
|
17621
|
-
|
|
17621
|
+
image = getCatImageURL(catPlanArticle.getImage(), '_low', mediaUrl);
|
|
17622
17622
|
}
|
|
17623
17623
|
} else if (catPlanArticle.hasTopSvg) {
|
|
17624
|
-
|
|
17624
|
+
image = getCatImageURL(catPlanArticle.topSvg, '', mediaUrl);
|
|
17625
17625
|
}
|
|
17626
17626
|
var catalogArticle = catalogData.allCatalogArticles[catPlanArticle.codex];
|
|
17627
17627
|
var elementName = catPlanArticle.name;
|
|
@@ -17665,13 +17665,13 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17665
17665
|
//Artikelbild mit svg üerschreiben, wenn es mehr als 1 Eintrag mit IsAccessoire == false gibt
|
|
17666
17666
|
if (nDoShowSVGsinElementlist > 1) {
|
|
17667
17667
|
if (topSvg.Image) {
|
|
17668
|
-
|
|
17668
|
+
image = getCatImageURL(topSvg.Image, '_low', mediaUrl);
|
|
17669
17669
|
} else {
|
|
17670
|
-
|
|
17670
|
+
image = getSVGUrl(topSvg.SVG, mediaUrl);
|
|
17671
17671
|
}
|
|
17672
17672
|
}
|
|
17673
17673
|
if (catalogProps.diva3dPlanerShowArticleAsSvg && topSvg.SVG) {
|
|
17674
|
-
|
|
17674
|
+
image = getSVGUrl(topSvg.SVG, mediaUrl);
|
|
17675
17675
|
}
|
|
17676
17676
|
if (topSvg.HasAVL && catPlanArticle.avlFilter.length == 0) {
|
|
17677
17677
|
catPlanArticle.avlFilter = ['ALWAYS_DOCKABLE'];
|
|
@@ -17708,7 +17708,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17708
17708
|
depthTo: catPlanArticle.articleSizeYTo,
|
|
17709
17709
|
typeNr: catPlanArticle.typeNr ? catPlanArticle.typeNr : catPlanArticle.codex,
|
|
17710
17710
|
//die Berkäuferbezeichnung des Artikels
|
|
17711
|
-
|
|
17711
|
+
image: image,
|
|
17712
17712
|
svgSrc: topSvg.SVG,
|
|
17713
17713
|
avlFilter: topSvg.HasAVL && catPlanArticle.avlFilter.length > 0 ? catPlanArticle.avlFilter : [],
|
|
17714
17714
|
avrFilter: topSvg.HasAVR && catPlanArticle.avrFilter.length > 0 ? catPlanArticle.avrFilter : [],
|
|
@@ -17739,7 +17739,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17739
17739
|
catPlanArticle.filterType = _filterType;
|
|
17740
17740
|
//Artikelbild ist abh�ngig von DIVA3DPlanerShowArticleAsSvg das SVG des Elements
|
|
17741
17741
|
if (catalogProps.diva3dPlanerShowArticleAsSvg && (catPlanArticle.hasTopSvg || catPlanArticle.hasTopSvgsWithFormula)) {
|
|
17742
|
-
catPlanArticle.hasTopSvg ?
|
|
17742
|
+
catPlanArticle.hasTopSvg ? image = getSVGUrl(catPlanArticle.topSvg, mediaUrl) : image = getSVGUrl(catPlanArticle.topSvgsWithFormula[0].SVG, mediaUrl);
|
|
17743
17743
|
}
|
|
17744
17744
|
if (!catPlanArticle.hasTopSvgsWithFormula && catPlanArticle.topHasAVL && !catPlanArticle.avlFilter) {
|
|
17745
17745
|
//hat eine Element kein AVL Filter hinterlegt aber doch den Dockingpoint dann werden die StandartFilter 99 hinzugef�gt
|
|
@@ -17769,7 +17769,8 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17769
17769
|
depthTo: catPlanArticle.articleSizeYTo,
|
|
17770
17770
|
typeNr: catPlanArticle.typeNr ? catPlanArticle.typeNr : catPlanArticle.codex,
|
|
17771
17771
|
//die Berkäuferbezeichnung des Artikels
|
|
17772
|
-
|
|
17772
|
+
|
|
17773
|
+
image: image,
|
|
17773
17774
|
svgSrc: catPlanArticle.topSvg,
|
|
17774
17775
|
avlFilter: catPlanArticle.topHasAVL && catPlanArticle.avlFilter ? catPlanArticle.avlFilter : [],
|
|
17775
17776
|
avrFilter: catPlanArticle.topHasAVR && catPlanArticle.avrFilter ? catPlanArticle.avrFilter : [],
|
|
@@ -19457,12 +19458,13 @@ function initOption(feature, articleFeature, catalogArticle, set) {
|
|
|
19457
19458
|
catalogArticle.articleOptions[articleFeature.codex];
|
|
19458
19459
|
}
|
|
19459
19460
|
function getCatalogOptionType(option, set) {
|
|
19460
|
-
var _option$detailInfos, _option$detailInfos2;
|
|
19461
|
+
var _option$detailInfos, _option$detailInfos2, _option$measureValue;
|
|
19461
19462
|
var catalogData = set.CatalogData;
|
|
19463
|
+
var name = DivaUtils__default["default"].getLocals(option.optionText, set.api.getLanguageLowercase());
|
|
19462
19464
|
var opiton = {
|
|
19463
19465
|
codex: option.optionKey,
|
|
19464
|
-
name:
|
|
19465
|
-
origName:
|
|
19466
|
+
name: name,
|
|
19467
|
+
origName: name,
|
|
19466
19468
|
name_locales: option.optionText,
|
|
19467
19469
|
image: (_option$detailInfos = option.detailInfos) === null || _option$detailInfos === void 0 || (_option$detailInfos = _option$detailInfos.find(function (d) {
|
|
19468
19470
|
return d.functionType == 'OPV';
|
|
@@ -19506,7 +19508,7 @@ function getCatalogOptionType(option, set) {
|
|
|
19506
19508
|
|
|
19507
19509
|
priceUnit: undefined,
|
|
19508
19510
|
// TODO IDM Pricelogic,
|
|
19509
|
-
value: option.measureValue,
|
|
19511
|
+
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,
|
|
19510
19512
|
measureUnit: option.measureUnit,
|
|
19511
19513
|
property: convertProperties(option.properties, catalogData.api.getLanguageLowercase())
|
|
19512
19514
|
};
|
|
@@ -19820,7 +19822,7 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
|
|
|
19820
19822
|
id: catPlanArticle.id,
|
|
19821
19823
|
hasAVS: !!catPlanArticle.topAVS,
|
|
19822
19824
|
hasAVU: !!catPlanArticle.topAVU,
|
|
19823
|
-
|
|
19825
|
+
image: catPlanArticle.getImage(),
|
|
19824
19826
|
is3DModell: false,
|
|
19825
19827
|
layer: catPlanArticle.topLayer,
|
|
19826
19828
|
price: catPlanArticle.basePrice,
|
|
@@ -19905,6 +19907,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19905
19907
|
// Start article that is loaded after starting the planner. used for boxplanner
|
|
19906
19908
|
accessorieStepAsPlanner: false,
|
|
19907
19909
|
// the accessorie step has all the planner capabilities
|
|
19910
|
+
planner2Dot0: false,
|
|
19911
|
+
// the planner is a planner 2.0
|
|
19908
19912
|
dontSaveAlternativeRenderings: false,
|
|
19909
19913
|
// alternative Rendering dont get saved and added to basket and pdf
|
|
19910
19914
|
replaceModeActive: true,
|
|
@@ -20578,6 +20582,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20578
20582
|
get: function get() {
|
|
20579
20583
|
return this.catalogProps.accessorieStepAsPlanner;
|
|
20580
20584
|
}
|
|
20585
|
+
}, {
|
|
20586
|
+
key: "planner2Dot0",
|
|
20587
|
+
get: function get() {
|
|
20588
|
+
return this.catalogProps.planner2Dot0;
|
|
20589
|
+
}
|
|
20581
20590
|
}, {
|
|
20582
20591
|
key: "dontShowBasePrice",
|
|
20583
20592
|
get: function get() {
|
|
@@ -21000,6 +21009,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21000
21009
|
case 'ACCESSOIRE_STEP_AS_PLANNER':
|
|
21001
21010
|
_this5.catalogProps.accessorieStepAsPlanner = item.Value == '1';
|
|
21002
21011
|
break;
|
|
21012
|
+
case 'PLANNER_2DOT0':
|
|
21013
|
+
_this5.catalogProps.planner2Dot0 = item.Value == '1';
|
|
21014
|
+
break;
|
|
21003
21015
|
case 'DONT_SAVE_ALTERNATIVERENDERINGS':
|
|
21004
21016
|
_this5.catalogProps.dontSaveAlternativeRenderings = item.Value == '1';
|
|
21005
21017
|
break;
|
|
@@ -26884,6 +26896,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26884
26896
|
}, {
|
|
26885
26897
|
key: "calcWidth",
|
|
26886
26898
|
get: function get() {
|
|
26899
|
+
var pla = this.partlistArticlesReqursive.find(function (p) {
|
|
26900
|
+
return p.catalogArticle.overwriteParentWidth;
|
|
26901
|
+
});
|
|
26902
|
+
if (pla !== null && pla !== void 0 && pla.width && pla.width != -1) return pla.width;
|
|
26887
26903
|
return this.article.calcWidth;
|
|
26888
26904
|
},
|
|
26889
26905
|
set: function set(newWidth) {
|
|
@@ -26904,6 +26920,10 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26904
26920
|
}, {
|
|
26905
26921
|
key: "calcDepth",
|
|
26906
26922
|
get: function get() {
|
|
26923
|
+
var pla = this.partlistArticlesReqursive.find(function (p) {
|
|
26924
|
+
return p.catalogArticle.overwriteParentDepth;
|
|
26925
|
+
});
|
|
26926
|
+
if (pla !== null && pla !== void 0 && pla.depth && pla.depth != -1) return pla.depth;
|
|
26907
26927
|
return this.article.calcDepth;
|
|
26908
26928
|
},
|
|
26909
26929
|
set: function set(newDepth) {
|
|
@@ -26921,9 +26941,22 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26921
26941
|
if (pla) return pla.height;
|
|
26922
26942
|
return this.calcHeight != -1 ? this.calcHeight : this.article.catalogArticle.height;
|
|
26923
26943
|
}
|
|
26944
|
+
}, {
|
|
26945
|
+
key: "incomplete",
|
|
26946
|
+
get: function get() {
|
|
26947
|
+
var _this$actPlannerData, _this$actPlannerData2;
|
|
26948
|
+
var incomplete = [];
|
|
26949
|
+
if ((_this$actPlannerData = this.actPlannerData) !== null && _this$actPlannerData !== void 0 && _this$actPlannerData.hasAVL && this.dockedOnAV('L') == undefined) incomplete.push('AVL');
|
|
26950
|
+
if ((_this$actPlannerData2 = this.actPlannerData) !== null && _this$actPlannerData2 !== void 0 && _this$actPlannerData2.hasAVR && this.dockedOnAV('R') == undefined) incomplete.push('AVR');
|
|
26951
|
+
return incomplete !== null && incomplete !== void 0 && incomplete.length ? incomplete : undefined;
|
|
26952
|
+
}
|
|
26924
26953
|
}, {
|
|
26925
26954
|
key: "calcHeight",
|
|
26926
26955
|
get: function get() {
|
|
26956
|
+
var pla = this.partlistArticlesReqursive.find(function (p) {
|
|
26957
|
+
return p.catalogArticle.overwriteParentHeight;
|
|
26958
|
+
});
|
|
26959
|
+
if (pla !== null && pla !== void 0 && pla.height && pla.height != -1) return pla.height;
|
|
26927
26960
|
return this.article.calcHeight;
|
|
26928
26961
|
},
|
|
26929
26962
|
set: function set(newHeight) {
|
|
@@ -28005,7 +28038,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28005
28038
|
break;
|
|
28006
28039
|
}
|
|
28007
28040
|
_context.next = 4;
|
|
28008
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
28041
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-33014e25.js'); });
|
|
28009
28042
|
case 4:
|
|
28010
28043
|
_yield$import = _context.sent;
|
|
28011
28044
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -28655,7 +28688,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28655
28688
|
articleCodex: articleCodex
|
|
28656
28689
|
}
|
|
28657
28690
|
}));
|
|
28658
|
-
throw new Error('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!');
|
|
28691
|
+
throw new Error('articleCodex ' + articleCodex + ' not found in article list. Could be due to exclusivity or a bug in the application!');
|
|
28659
28692
|
case 12:
|
|
28660
28693
|
case "end":
|
|
28661
28694
|
return _context.stop();
|
|
@@ -28715,7 +28748,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28715
28748
|
break;
|
|
28716
28749
|
case 20:
|
|
28717
28750
|
_loop = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop() {
|
|
28718
|
-
var
|
|
28751
|
+
var _set$api$getViewConfi;
|
|
28752
|
+
var articlesObj, catalog, articles, _set$actions, _set$actions$openModa, index, articleCodex, articlesToLoadMore;
|
|
28719
28753
|
return _regeneratorRuntime__default["default"].wrap(function _loop$(_context2) {
|
|
28720
28754
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28721
28755
|
case 0:
|
|
@@ -28725,6 +28759,24 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28725
28759
|
articlesObj.loadedArticles = articles.map(function (a) {
|
|
28726
28760
|
return catalog.getCatalogArticleByArticleCodex(a.articleCodex, set.onlyRunLogic);
|
|
28727
28761
|
});
|
|
28762
|
+
|
|
28763
|
+
// show missing article in view only in supplier usecase
|
|
28764
|
+
if (!(articlesObj.loadedArticles.findIndex(function (a) {
|
|
28765
|
+
return a === undefined;
|
|
28766
|
+
}) !== -1 && set !== null && set !== void 0 && (_set$api$getViewConfi = set.api.getViewConfig()) !== null && _set$api$getViewConfi !== void 0 && _set$api$getViewConfi.showOptionCodexInOptionHeader)) {
|
|
28767
|
+
_context2.next = 9;
|
|
28768
|
+
break;
|
|
28769
|
+
}
|
|
28770
|
+
index = articlesObj.loadedArticles.findIndex(function (a) {
|
|
28771
|
+
return a === undefined;
|
|
28772
|
+
});
|
|
28773
|
+
articleCodex = articles[index].articleCodex;
|
|
28774
|
+
(_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, {
|
|
28775
|
+
title: set.api.getI18n().t('configurator.article_not_found'),
|
|
28776
|
+
content: articleCodex
|
|
28777
|
+
});
|
|
28778
|
+
throw new Error('articleCodex ' + articleCodex + ' not found in article list. Could be due to exclusivity or a bug in the application!');
|
|
28779
|
+
case 9:
|
|
28728
28780
|
// hat catalogArticle Optionen welche noch nicht gealden wurden, erst laden!
|
|
28729
28781
|
//usecase der selbe Article wurde bereits verplant. nun kann die bereits geladene & verwendete Klasse catalogArticle wiederverwendet werden da wir dort nichts
|
|
28730
28782
|
//während der Konfiguration verändern!
|
|
@@ -28732,12 +28784,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
28732
28784
|
return a.areOptionsToLoad;
|
|
28733
28785
|
});
|
|
28734
28786
|
if (!articlesToLoadMore.length) {
|
|
28735
|
-
_context2.next =
|
|
28787
|
+
_context2.next = 13;
|
|
28736
28788
|
break;
|
|
28737
28789
|
}
|
|
28738
|
-
_context2.next =
|
|
28790
|
+
_context2.next = 13;
|
|
28739
28791
|
return catalog.loadArticleData(articlesToLoadMore, set);
|
|
28740
|
-
case
|
|
28792
|
+
case 13:
|
|
28741
28793
|
case "end":
|
|
28742
28794
|
return _context2.stop();
|
|
28743
28795
|
}
|
|
@@ -30426,11 +30478,11 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
30426
30478
|
}
|
|
30427
30479
|
return _createClass__default["default"](DivaConfigTreeData, [{
|
|
30428
30480
|
key: "addPlannerTab",
|
|
30429
|
-
value: function addPlannerTab() {
|
|
30481
|
+
value: function addPlannerTab(catalogData) {
|
|
30430
30482
|
this.tabGroupsData['Planner'] = {
|
|
30431
30483
|
key: 'Planner',
|
|
30432
30484
|
title: 'Planen',
|
|
30433
|
-
type: 'PLANNER',
|
|
30485
|
+
type: catalogData.planner2Dot0 ? 'PLANNER_2.0' : 'PLANNER',
|
|
30434
30486
|
posNr: this.tabGroupCount,
|
|
30435
30487
|
singleOPVOnly: false,
|
|
30436
30488
|
alternateRenderings: [],
|
|
@@ -30833,14 +30885,13 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
30833
30885
|
}, {
|
|
30834
30886
|
key: "getCurPaletteType",
|
|
30835
30887
|
value: function getCurPaletteType(set, configStepKey) {
|
|
30836
|
-
var _set$api$ReturnToFrom;
|
|
30888
|
+
var _set$getDivaArticles, _configStep$targetArt, _configStep$targetArt2, _configStep$option, _set$api$getViewConfi, _set$api$getViewConfi2, _set$api$ReturnToFrom;
|
|
30837
30889
|
var step = this.getAllByKey(configStepKey);
|
|
30838
30890
|
var configStep = step === null || step === void 0 ? void 0 : step.configStep;
|
|
30839
30891
|
var optionStep = step === null || step === void 0 ? void 0 : step.optionStep;
|
|
30840
|
-
var
|
|
30892
|
+
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 : '');
|
|
30893
|
+
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';
|
|
30841
30894
|
if (configStep && optionStep) {
|
|
30842
|
-
var _set$getDivaArticles$;
|
|
30843
|
-
var optionState = (_set$getDivaArticles$ = set.getDivaArticles()[configStep.targetArticles[0]]) === null || _set$getDivaArticles$ === void 0 ? void 0 : _set$getDivaArticles$.getArticleOptionState(configStep.option);
|
|
30844
30895
|
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) {
|
|
30845
30896
|
paletteType = 'GAL_TEXT';
|
|
30846
30897
|
}
|
|
@@ -31144,7 +31195,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
|
|
|
31144
31195
|
key: "getFirstConfigStepKey",
|
|
31145
31196
|
value: function getFirstConfigStepKey() {
|
|
31146
31197
|
for (var key in this.tabGroups) {
|
|
31147
|
-
if (['ACC', 'OPTION', 'ACC_PLANNER'].includes(this.tabGroups[key].type)) {
|
|
31198
|
+
if (['ACC', 'OPTION', 'ACC_PLANNER', 'PLANNER_2.0'].includes(this.tabGroups[key].type)) {
|
|
31148
31199
|
var firstOptionKey = Object.keys(this.tabGroups[key].options)[0];
|
|
31149
31200
|
return this.tabGroups[key].options[firstOptionKey].configSteps[Object.keys(this.tabGroups[key].options[firstOptionKey].configSteps)[0]].key;
|
|
31150
31201
|
}
|
|
@@ -31247,7 +31298,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31247
31298
|
updateConfig = article1.CatalogData.reconfigAfterArticleDocked;
|
|
31248
31299
|
if (article1.relatedToBasketId && article1.isDockable) {
|
|
31249
31300
|
var _article = _this.getDivaArticles()[article1.relatedToBasketId];
|
|
31250
|
-
if (_article && _this.configTree.getHasTabgroupType('ACC_PLANNER')) {
|
|
31301
|
+
if (_article && _this.configTree.getHasTabgroupType('ACC_PLANNER') || _this.configTree.getHasTabgroupType('PLANNER_2.0')) {
|
|
31251
31302
|
if (article1.plannerData) article1.plannerData.isNotDockedAccessoire = true;
|
|
31252
31303
|
_this.addRelationsToArticles(article1, _article);
|
|
31253
31304
|
} else {
|
|
@@ -31538,7 +31589,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31538
31589
|
if (Object.entries(this.divaArticles).length == 0) {
|
|
31539
31590
|
plannerMode = '3DImage';
|
|
31540
31591
|
}
|
|
31541
|
-
if (this.catalogData.
|
|
31592
|
+
if (this.catalogData.divaForceRTV) {
|
|
31542
31593
|
//TODO Matthias sauber initialisieren ob in RTV oder IMAGE3D gestartet wird.
|
|
31543
31594
|
plannerMode = 'RTViewer';
|
|
31544
31595
|
}
|
|
@@ -32486,7 +32537,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
32486
32537
|
break;
|
|
32487
32538
|
}
|
|
32488
32539
|
_context5.next = 3;
|
|
32489
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
32540
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-10e97f07.js'); });
|
|
32490
32541
|
case 3:
|
|
32491
32542
|
_yield$import = _context5.sent;
|
|
32492
32543
|
DoorPlanner = _yield$import["default"];
|
|
@@ -34353,7 +34404,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34353
34404
|
|
|
34354
34405
|
//plannerstep hinzufügen
|
|
34355
34406
|
if (curPlannerType.includes('PLANNER')) {
|
|
34356
|
-
configTree.addPlannerTab();
|
|
34407
|
+
configTree.addPlannerTab(catalog);
|
|
34357
34408
|
}
|
|
34358
34409
|
if (curPlannerType.includes('PROMOTED')) {
|
|
34359
34410
|
configTree.addPromotedTab();
|
|
@@ -35075,6 +35126,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
35075
35126
|
optionOcd: ops.optionOcd,
|
|
35076
35127
|
parentOptionCodex: ops.option.parentOptionCodex,
|
|
35077
35128
|
codex: item.codex,
|
|
35129
|
+
value: item.value,
|
|
35078
35130
|
ocd: item.ocd,
|
|
35079
35131
|
vCodex: item.vCodex,
|
|
35080
35132
|
layout: item.isTexture ? 'TEXTURE' : item.image || (_item$images = item.images) !== null && _item$images !== void 0 && _item$images.length ? 'IMAGE' : 'TEXT',
|
|
@@ -36647,6 +36699,12 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36647
36699
|
value: function getPlannerInteractionInformation(set) {
|
|
36648
36700
|
return set.plannerHandler.getPlannerInteractionInformation(set.getSetId());
|
|
36649
36701
|
}
|
|
36702
|
+
}, {
|
|
36703
|
+
key: "getGeneralPlanningState",
|
|
36704
|
+
value: function getGeneralPlanningState(set, selectedElementId) {
|
|
36705
|
+
if (set.getPlannerMode() == 'BoxPlanner') return set.plannerHandler.getGeneralPlanningState(set.getSetId(), selectedElementId);
|
|
36706
|
+
return undefined;
|
|
36707
|
+
}
|
|
36650
36708
|
}, {
|
|
36651
36709
|
key: "getLastElementInGroup",
|
|
36652
36710
|
value: function getLastElementInGroup(article) {
|
|
@@ -36788,6 +36846,56 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36788
36846
|
catalogPlannerArticles: cleanedCaltaogPlannerArticles
|
|
36789
36847
|
});
|
|
36790
36848
|
}
|
|
36849
|
+
}, {
|
|
36850
|
+
key: "getPlanner2Dot0PaletteViewInfo",
|
|
36851
|
+
value: function getPlanner2Dot0PaletteViewInfo(set) {
|
|
36852
|
+
var divaArticles = set.getDivaArticles();
|
|
36853
|
+
var plannedElements = [];
|
|
36854
|
+
for (var key in divaArticles) {
|
|
36855
|
+
var article = divaArticles[key];
|
|
36856
|
+
if (article.plannerData && !article.relatedToBasketId) {
|
|
36857
|
+
var _article$typeNr, _article$imageUrl, _article$catalogArtic, _article$catalogArtic2, _article$catalogArtic3, _article$actPlannerDa, _article$actPlannerDa2, _article$posNr;
|
|
36858
|
+
plannedElements.push({
|
|
36859
|
+
setId: set.getSetId(),
|
|
36860
|
+
basketId: article.basketId,
|
|
36861
|
+
id: article.elementId,
|
|
36862
|
+
codex: article.articleCodex,
|
|
36863
|
+
articleCodex: article.articleCodex,
|
|
36864
|
+
catalogCodex: article.catalogCodex,
|
|
36865
|
+
title: article.name,
|
|
36866
|
+
typeNr: (_article$typeNr = article.typeNr) !== null && _article$typeNr !== void 0 ? _article$typeNr : '',
|
|
36867
|
+
image: (_article$imageUrl = article.imageUrl) !== null && _article$imageUrl !== void 0 ? _article$imageUrl : '',
|
|
36868
|
+
price: article.price,
|
|
36869
|
+
contentItemId: (_article$catalogArtic = article.catalogArticle) === null || _article$catalogArtic === void 0 ? void 0 : _article$catalogArtic.contentItemId,
|
|
36870
|
+
groupContentItemId: (_article$catalogArtic2 = article.catalogArticle) === null || _article$catalogArtic2 === void 0 ? void 0 : _article$catalogArtic2.groupContentItemId,
|
|
36871
|
+
depth: article.depth,
|
|
36872
|
+
width: article.width,
|
|
36873
|
+
height: article.height,
|
|
36874
|
+
sizeInfo: DivaUtils__default["default"].sizeFormatter(article.catalogArticle, set.i18n, true, ':'),
|
|
36875
|
+
longDescription: (_article$catalogArtic3 = article.catalogArticle) === null || _article$catalogArtic3 === void 0 ? void 0 : _article$catalogArtic3.longDescription,
|
|
36876
|
+
incomplete: article.incomplete,
|
|
36877
|
+
avlFilter: (_article$actPlannerDa = article.actPlannerData) === null || _article$actPlannerDa === void 0 ? void 0 : _article$actPlannerDa.AVLFilter,
|
|
36878
|
+
avrFilter: (_article$actPlannerDa2 = article.actPlannerData) === null || _article$actPlannerDa2 === void 0 ? void 0 : _article$actPlannerDa2.AVRFilter,
|
|
36879
|
+
posNr: (_article$posNr = article.posNr) !== null && _article$posNr !== void 0 ? _article$posNr : 0
|
|
36880
|
+
});
|
|
36881
|
+
}
|
|
36882
|
+
}
|
|
36883
|
+
plannedElements = plannedElements.sort(function (a, b) {
|
|
36884
|
+
return a.posNr - b.posNr;
|
|
36885
|
+
});
|
|
36886
|
+
plannedElements.push({
|
|
36887
|
+
setId: set.getSetId(),
|
|
36888
|
+
basketId: 'add',
|
|
36889
|
+
id: -1,
|
|
36890
|
+
codex: 'add',
|
|
36891
|
+
articleCodex: 'add',
|
|
36892
|
+
catalogCodex: set.CatalogData.catalogCodex,
|
|
36893
|
+
title: 'add',
|
|
36894
|
+
image: '',
|
|
36895
|
+
posNr: 0
|
|
36896
|
+
});
|
|
36897
|
+
return plannedElements;
|
|
36898
|
+
}
|
|
36791
36899
|
}, {
|
|
36792
36900
|
key: "setActSet",
|
|
36793
36901
|
value: function setActSet(sets, setId) {
|
|
@@ -39355,7 +39463,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39355
39463
|
break;
|
|
39356
39464
|
case 3:
|
|
39357
39465
|
_context12.next = 5;
|
|
39358
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
39466
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-4058e465.js'); });
|
|
39359
39467
|
case 5:
|
|
39360
39468
|
_yield$import = _context12.sent;
|
|
39361
39469
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -39363,7 +39471,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39363
39471
|
return _context12.abrupt("break", 27);
|
|
39364
39472
|
case 9:
|
|
39365
39473
|
_context12.next = 11;
|
|
39366
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
39474
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-17894cd1.js'); });
|
|
39367
39475
|
case 11:
|
|
39368
39476
|
_yield$import2 = _context12.sent;
|
|
39369
39477
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -39371,7 +39479,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39371
39479
|
return _context12.abrupt("break", 27);
|
|
39372
39480
|
case 15:
|
|
39373
39481
|
_context12.next = 17;
|
|
39374
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
39482
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-c8e698e9.js'); });
|
|
39375
39483
|
case 17:
|
|
39376
39484
|
_yield$import3 = _context12.sent;
|
|
39377
39485
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -39379,7 +39487,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
39379
39487
|
return _context12.abrupt("break", 27);
|
|
39380
39488
|
case 21:
|
|
39381
39489
|
_context12.next = 23;
|
|
39382
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
39490
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-faeb77e7.js'); });
|
|
39383
39491
|
case 23:
|
|
39384
39492
|
_yield$import4 = _context12.sent;
|
|
39385
39493
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -40196,6 +40304,7 @@ var Rendering = /*#__PURE__*/function () {
|
|
|
40196
40304
|
if (this.uiInfo[setId] == undefined && this.uiInfo['S1'] != undefined) {
|
|
40197
40305
|
boxPlan = this.uiInfo['S1']['E' + elemId]['BoxPlan'];
|
|
40198
40306
|
} else if (this.uiInfo[setId]) boxPlan = this.uiInfo[setId]['E' + elemId]['BoxPlan'];else boxPlan = this.uiInfo['E' + elemId]['BoxPlan'];
|
|
40307
|
+
if (!boxPlan) return;
|
|
40199
40308
|
for (var i = 0; i < boxPlan.length; i++) {
|
|
40200
40309
|
if (!boxPlan[i].N || !boxPlan[i].x || !boxPlan[i].y) continue;
|
|
40201
40310
|
switch (corner) {
|
|
@@ -40807,7 +40916,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
40807
40916
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40808
40917
|
case 0:
|
|
40809
40918
|
_context3.next = 2;
|
|
40810
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
40919
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-eea7d1d4.js'); });
|
|
40811
40920
|
case 2:
|
|
40812
40921
|
_yield$import = _context3.sent;
|
|
40813
40922
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41661,8 +41770,8 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41661
41770
|
_this2.liveArSocket.auth = _objectSpread$6(_objectSpread$6({}, _this2.liveArSocket.auth), {}, {
|
|
41662
41771
|
connectionId: data.connectionId
|
|
41663
41772
|
});
|
|
41664
|
-
var
|
|
41665
|
-
resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils__default["default"].SessionId +
|
|
41773
|
+
var applyConfiguratorSessionId = DivaUtils__default["default"].ConfigurationId ? '&configurationId=' + DivaUtils__default["default"].ConfigurationId : '';
|
|
41774
|
+
resolve(_this2.liveArViewerUrl + '?liveArConnectionId=' + data.connectionId + '&organizationId=' + _this2.renderSettings.OrganizationId + '&divaSessionId=' + DivaUtils__default["default"].SessionId + applyConfiguratorSessionId);
|
|
41666
41775
|
});
|
|
41667
41776
|
_this2.liveArSocket.on('connect_error', function (err) {
|
|
41668
41777
|
return reject(err);
|
|
@@ -42365,7 +42474,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42365
42474
|
break;
|
|
42366
42475
|
case 8:
|
|
42367
42476
|
_context4.next = 10;
|
|
42368
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
42477
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-e6e39978.js'); });
|
|
42369
42478
|
case 10:
|
|
42370
42479
|
_yield$import = _context4.sent;
|
|
42371
42480
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -42376,7 +42485,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
42376
42485
|
return _context4.abrupt("break", 21);
|
|
42377
42486
|
case 15:
|
|
42378
42487
|
_context4.next = 17;
|
|
42379
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
42488
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-1364c551.js'); });
|
|
42380
42489
|
case 17:
|
|
42381
42490
|
_yield$import2 = _context4.sent;
|
|
42382
42491
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -43123,6 +43232,14 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43123
43232
|
}
|
|
43124
43233
|
return undefined;
|
|
43125
43234
|
}
|
|
43235
|
+
}, {
|
|
43236
|
+
key: "getGeneralPlanningState",
|
|
43237
|
+
value: function getGeneralPlanningState(setId, selectedElementId) {
|
|
43238
|
+
if (this.plannerList.has(setId)) {
|
|
43239
|
+
return this.plannerList.get(setId).getGeneralPlanningState(selectedElementId);
|
|
43240
|
+
}
|
|
43241
|
+
return undefined;
|
|
43242
|
+
}
|
|
43126
43243
|
}, {
|
|
43127
43244
|
key: "handle3DVisualizationChanged",
|
|
43128
43245
|
value: function handle3DVisualizationChanged(mode, params, doShow3DDimensionLines, alternateRenderingsExist) {
|
|
@@ -43394,6 +43511,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
43394
43511
|
_defineProperty__default["default"](this, "getPlannerRenderingSize", void 0);
|
|
43395
43512
|
_defineProperty__default["default"](this, "getPlanner3DGridEnabled", void 0);
|
|
43396
43513
|
_defineProperty__default["default"](this, "updateCatalogPlannerArticles", void 0);
|
|
43514
|
+
_defineProperty__default["default"](this, "updateCatalogPlanner2Dot0Articles", void 0);
|
|
43397
43515
|
_defineProperty__default["default"](this, "updateAccessoiresPalette", void 0);
|
|
43398
43516
|
_defineProperty__default["default"](this, "updatePaletteInfos", void 0);
|
|
43399
43517
|
_defineProperty__default["default"](this, "updateElementSelectionConfig", void 0);
|
|
@@ -43523,6 +43641,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
43523
43641
|
//Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
|
|
43524
43642
|
(_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);
|
|
43525
43643
|
});
|
|
43644
|
+
_defineProperty__default["default"](this, "loadCatalogPlannerArticles2Dot0", function (isUpdate, onlySelectionChanged) {
|
|
43645
|
+
var _this$updateCatalogPl2;
|
|
43646
|
+
(_this$updateCatalogPl2 = _this.updateCatalogPlanner2Dot0Articles) === null || _this$updateCatalogPl2 === void 0 || _this$updateCatalogPl2.call(_this, setHandlerInstance.getPlanner2Dot0PaletteViewInfo(_this.actSet()), isUpdate, onlySelectionChanged);
|
|
43647
|
+
});
|
|
43526
43648
|
/**
|
|
43527
43649
|
* this fuction loads the accessoires of a specific article -> could be more than one article in the future
|
|
43528
43650
|
* @param targetArticles the article of which we load the accessoires
|
|
@@ -44295,11 +44417,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44295
44417
|
originalProductId: oldProductId,
|
|
44296
44418
|
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
|
|
44297
44419
|
}, false);
|
|
44298
|
-
|
|
44420
|
+
this.configuratorChangeLog('onInitOptions', undefined, true);
|
|
44421
|
+
this.plannerChangeLog('onInitPlanner', true);
|
|
44422
|
+
_context15.next = 40;
|
|
44299
44423
|
return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
|
|
44300
|
-
case
|
|
44424
|
+
case 40:
|
|
44301
44425
|
return _context15.abrupt("return", true);
|
|
44302
|
-
case
|
|
44426
|
+
case 41:
|
|
44303
44427
|
case "end":
|
|
44304
44428
|
return _context15.stop();
|
|
44305
44429
|
}
|
|
@@ -45029,6 +45153,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45029
45153
|
}
|
|
45030
45154
|
return moveShelfItemToGrid;
|
|
45031
45155
|
}()
|
|
45156
|
+
}, {
|
|
45157
|
+
key: "getPlannerInteractionInformation",
|
|
45158
|
+
value: function getPlannerInteractionInformation() {
|
|
45159
|
+
var set = this.actSet();
|
|
45160
|
+
if (!set) return;
|
|
45161
|
+
return setHandlerInstance.getPlannerInteractionInformation(set);
|
|
45162
|
+
}
|
|
45163
|
+
}, {
|
|
45164
|
+
key: "getGeneralPlanningState",
|
|
45165
|
+
value: function getGeneralPlanningState(setId, selectedElementId) {
|
|
45166
|
+
var set = this.sets[setId];
|
|
45167
|
+
if (!set) return;
|
|
45168
|
+
return setHandlerInstance.getGeneralPlanningState(set, selectedElementId);
|
|
45169
|
+
}
|
|
45032
45170
|
}, {
|
|
45033
45171
|
key: "resetArticle",
|
|
45034
45172
|
value: function () {
|
|
@@ -45189,7 +45327,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45189
45327
|
}, {
|
|
45190
45328
|
key: "saveToBasketWrapper",
|
|
45191
45329
|
value: function () {
|
|
45192
|
-
var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, returnToParam) {
|
|
45330
|
+
var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, returnToParam, hideLoading) {
|
|
45193
45331
|
var _this$actions29,
|
|
45194
45332
|
_this$actions29$toggl,
|
|
45195
45333
|
_this$actions30,
|
|
@@ -45243,12 +45381,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45243
45381
|
case 20:
|
|
45244
45382
|
returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
45245
45383
|
case 21:
|
|
45246
|
-
(_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);
|
|
45384
|
+
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);
|
|
45247
45385
|
_context26.next = 24;
|
|
45248
45386
|
return this.saveToBasket(returnTo, finalEvent.event, repairOnly);
|
|
45249
45387
|
case 24:
|
|
45250
45388
|
result = _context26.sent;
|
|
45251
|
-
(_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);
|
|
45389
|
+
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);
|
|
45252
45390
|
if (!(result === 'canceled')) {
|
|
45253
45391
|
_context26.next = 30;
|
|
45254
45392
|
break;
|
|
@@ -45302,7 +45440,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45302
45440
|
}
|
|
45303
45441
|
}, _callee26, this);
|
|
45304
45442
|
}));
|
|
45305
|
-
function saveToBasketWrapper(_x73, _x74, _x75) {
|
|
45443
|
+
function saveToBasketWrapper(_x73, _x74, _x75, _x76) {
|
|
45306
45444
|
return _saveToBasketWrapper.apply(this, arguments);
|
|
45307
45445
|
}
|
|
45308
45446
|
return saveToBasketWrapper;
|
|
@@ -45444,7 +45582,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45444
45582
|
}
|
|
45445
45583
|
}, _callee27, this);
|
|
45446
45584
|
}));
|
|
45447
|
-
function saveToBasket(
|
|
45585
|
+
function saveToBasket(_x77, _x78, _x79) {
|
|
45448
45586
|
return _saveToBasket.apply(this, arguments);
|
|
45449
45587
|
}
|
|
45450
45588
|
return saveToBasket;
|
|
@@ -45620,36 +45758,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45620
45758
|
var _this$actSet22;
|
|
45621
45759
|
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;
|
|
45622
45760
|
}
|
|
45761
|
+
}, {
|
|
45762
|
+
key: "getPlanner2Dot0Active",
|
|
45763
|
+
value: function getPlanner2Dot0Active() {
|
|
45764
|
+
var _this$actSet23;
|
|
45765
|
+
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;
|
|
45766
|
+
}
|
|
45623
45767
|
}, {
|
|
45624
45768
|
key: "doShowPlannerReplaceMode",
|
|
45625
45769
|
value: function doShowPlannerReplaceMode() {
|
|
45626
|
-
var _this$
|
|
45627
|
-
var catalogData = (_this$
|
|
45770
|
+
var _this$actSet24, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
|
|
45771
|
+
var catalogData = (_this$actSet24 = this.actSet()) === null || _this$actSet24 === void 0 ? void 0 : _this$actSet24.CatalogData;
|
|
45628
45772
|
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;
|
|
45629
45773
|
}
|
|
45630
45774
|
}, {
|
|
45631
45775
|
key: "doPlannerReplaceAutoSwitch",
|
|
45632
45776
|
value: function doPlannerReplaceAutoSwitch() {
|
|
45633
|
-
var _this$
|
|
45634
|
-
var catalogData = (_this$
|
|
45777
|
+
var _this$actSet25, _this$api$getViewConf3;
|
|
45778
|
+
var catalogData = (_this$actSet25 = this.actSet()) === null || _this$actSet25 === void 0 ? void 0 : _this$actSet25.CatalogData;
|
|
45635
45779
|
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);
|
|
45636
45780
|
}
|
|
45637
45781
|
}, {
|
|
45638
45782
|
key: "getHidePlanner",
|
|
45639
45783
|
value: function getHidePlanner() {
|
|
45640
|
-
var _this$
|
|
45641
|
-
return this.api.getHidePlanner() || !!((_this$
|
|
45784
|
+
var _this$actSet26;
|
|
45785
|
+
return this.api.getHidePlanner() || !!((_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.useBoxPlanner);
|
|
45642
45786
|
}
|
|
45643
45787
|
}, {
|
|
45644
45788
|
key: "getAllowRTV",
|
|
45645
45789
|
value: function getAllowRTV() {
|
|
45646
|
-
var _this$state5, _this$
|
|
45790
|
+
var _this$state5, _this$actSet27, _this$state6, _this$actSet28;
|
|
45647
45791
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
45648
45792
|
if ((_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.organization.settings.forceRTV) return true;
|
|
45649
|
-
if ((_this$
|
|
45650
|
-
if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$
|
|
45793
|
+
if ((_this$actSet27 = this.actSet()) !== null && _this$actSet27 !== void 0 && _this$actSet27.CatalogData.divaForceRTV) return true;
|
|
45794
|
+
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;
|
|
45651
45795
|
return false;
|
|
45652
45796
|
}
|
|
45797
|
+
}, {
|
|
45798
|
+
key: "getForceRTV",
|
|
45799
|
+
value: function getForceRTV() {
|
|
45800
|
+
var _this$actSet29;
|
|
45801
|
+
return !!((_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaForceRTV);
|
|
45802
|
+
}
|
|
45653
45803
|
}, {
|
|
45654
45804
|
key: "getPricePreview",
|
|
45655
45805
|
value: function getPricePreview() {
|
|
@@ -45658,29 +45808,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45658
45808
|
}, {
|
|
45659
45809
|
key: "hide2DPlanner",
|
|
45660
45810
|
value: function hide2DPlanner() {
|
|
45661
|
-
var _this$
|
|
45662
|
-
return (_this$
|
|
45811
|
+
var _this$actSet30;
|
|
45812
|
+
return (_this$actSet30 = this.actSet()) === null || _this$actSet30 === void 0 ? void 0 : _this$actSet30.CatalogData.hide2DPlanner;
|
|
45663
45813
|
}
|
|
45664
45814
|
}, {
|
|
45665
45815
|
key: "getAllowQRCodeAR",
|
|
45666
45816
|
value: function getAllowQRCodeAR() {
|
|
45667
|
-
var _this$
|
|
45668
|
-
if (this.api.enableAR && (_this$
|
|
45817
|
+
var _this$actSet31;
|
|
45818
|
+
if (this.api.enableAR && (_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaArReady) return true;
|
|
45669
45819
|
return false;
|
|
45670
45820
|
}
|
|
45671
45821
|
}, {
|
|
45672
45822
|
key: "getEnableUnityRtvKombi",
|
|
45673
45823
|
value: function getEnableUnityRtvKombi() {
|
|
45674
|
-
var _this$
|
|
45824
|
+
var _this$actSet32, _this$actSet33;
|
|
45675
45825
|
// if force rtv disable unity kombi - biohort
|
|
45676
|
-
if ((_this$
|
|
45677
|
-
return ((_this$
|
|
45826
|
+
if ((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV) return false;
|
|
45827
|
+
return ((_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
|
|
45678
45828
|
}
|
|
45679
45829
|
}, {
|
|
45680
45830
|
key: "getShelfPlannerRTV",
|
|
45681
45831
|
value: function getShelfPlannerRTV() {
|
|
45682
|
-
var _this$
|
|
45683
|
-
return (_this$
|
|
45832
|
+
var _this$actSet34;
|
|
45833
|
+
return (_this$actSet34 = this.actSet()) === null || _this$actSet34 === void 0 ? void 0 : _this$actSet34.CatalogData.useShelfPlannerRTV;
|
|
45684
45834
|
}
|
|
45685
45835
|
}, {
|
|
45686
45836
|
key: "getBasketData",
|
|
@@ -45721,8 +45871,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45721
45871
|
}, {
|
|
45722
45872
|
key: "getCatalogData",
|
|
45723
45873
|
value: function getCatalogData() {
|
|
45724
|
-
var _this$
|
|
45725
|
-
return (_this$
|
|
45874
|
+
var _this$actSet35;
|
|
45875
|
+
return (_this$actSet35 = this.actSet()) === null || _this$actSet35 === void 0 ? void 0 : _this$actSet35.CatalogData;
|
|
45726
45876
|
}
|
|
45727
45877
|
}, {
|
|
45728
45878
|
key: "ReturnTo",
|
|
@@ -45872,7 +46022,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45872
46022
|
}
|
|
45873
46023
|
}, _callee29, this);
|
|
45874
46024
|
}));
|
|
45875
|
-
function addToBasket(
|
|
46025
|
+
function addToBasket(_x80) {
|
|
45876
46026
|
return _addToBasket.apply(this, arguments);
|
|
45877
46027
|
}
|
|
45878
46028
|
return addToBasket;
|
|
@@ -45927,19 +46077,19 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45927
46077
|
}, {
|
|
45928
46078
|
key: "getCurrentBasket",
|
|
45929
46079
|
value: function () {
|
|
45930
|
-
var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(event, force, returnTo, dontGoToSummary) {
|
|
45931
|
-
var _this$
|
|
46080
|
+
var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(event, force, returnTo, dontGoToSummary, hideLoading) {
|
|
46081
|
+
var _this$actSet36, _this$divaBasketHandl5, _this$onClickAddToBas3;
|
|
45932
46082
|
return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
|
|
45933
46083
|
while (1) switch (_context30.prev = _context30.next) {
|
|
45934
46084
|
case 0:
|
|
45935
|
-
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$
|
|
46085
|
+
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')))) {
|
|
45936
46086
|
_context30.next = 2;
|
|
45937
46087
|
break;
|
|
45938
46088
|
}
|
|
45939
|
-
return _context30.abrupt("return",
|
|
46089
|
+
return _context30.abrupt("return", 'BASKET_ALREADY_SAVED');
|
|
45940
46090
|
case 2:
|
|
45941
46091
|
_context30.next = 4;
|
|
45942
|
-
return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, undefined, event, force, returnTo, dontGoToSummary);
|
|
46092
|
+
return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, undefined, event, force, returnTo, dontGoToSummary, hideLoading);
|
|
45943
46093
|
case 4:
|
|
45944
46094
|
return _context30.abrupt("return", !!_context30.sent);
|
|
45945
46095
|
case 5:
|
|
@@ -45948,7 +46098,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45948
46098
|
}
|
|
45949
46099
|
}, _callee30, this);
|
|
45950
46100
|
}));
|
|
45951
|
-
function getCurrentBasket(
|
|
46101
|
+
function getCurrentBasket(_x81, _x82, _x83, _x84, _x85) {
|
|
45952
46102
|
return _getCurrentBasket.apply(this, arguments);
|
|
45953
46103
|
}
|
|
45954
46104
|
return getCurrentBasket;
|
|
@@ -46077,6 +46227,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46077
46227
|
value: function registerUpdateCatalogPlannerArticles(updateCatalogPlannerArticles) {
|
|
46078
46228
|
this.updateCatalogPlannerArticles = updateCatalogPlannerArticles;
|
|
46079
46229
|
}
|
|
46230
|
+
}, {
|
|
46231
|
+
key: "registerUpdateCatalogPlanner2Dot0Articles",
|
|
46232
|
+
value: function registerUpdateCatalogPlanner2Dot0Articles(updateCatalogPlanner2Dot0Articles) {
|
|
46233
|
+
this.updateCatalogPlanner2Dot0Articles = updateCatalogPlanner2Dot0Articles;
|
|
46234
|
+
}
|
|
46080
46235
|
}, {
|
|
46081
46236
|
key: "registerUpdateAccessoiresPalette",
|
|
46082
46237
|
value: function registerUpdateAccessoiresPalette(updateAccessoiresPalette) {
|
|
@@ -46200,7 +46355,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46200
46355
|
}
|
|
46201
46356
|
}, _callee31, this);
|
|
46202
46357
|
}));
|
|
46203
|
-
function initApiForLogicOnly(
|
|
46358
|
+
function initApiForLogicOnly(_x86, _x87, _x88, _x89, _x90, _x91, _x92) {
|
|
46204
46359
|
return _initApiForLogicOnly.apply(this, arguments);
|
|
46205
46360
|
}
|
|
46206
46361
|
return initApiForLogicOnly;
|
|
@@ -46269,7 +46424,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46269
46424
|
}
|
|
46270
46425
|
}, _callee33, this);
|
|
46271
46426
|
}));
|
|
46272
|
-
function initBasket(
|
|
46427
|
+
function initBasket(_x93, _x94) {
|
|
46273
46428
|
return _initBasket.apply(this, arguments);
|
|
46274
46429
|
}
|
|
46275
46430
|
return initBasket;
|
|
@@ -46346,7 +46501,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46346
46501
|
}
|
|
46347
46502
|
}, _callee35, this);
|
|
46348
46503
|
}));
|
|
46349
|
-
function handleFavorites(
|
|
46504
|
+
function handleFavorites(_x95) {
|
|
46350
46505
|
return _handleFavorites.apply(this, arguments);
|
|
46351
46506
|
}
|
|
46352
46507
|
return handleFavorites;
|
|
@@ -46400,7 +46555,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46400
46555
|
}
|
|
46401
46556
|
}, _callee36, this);
|
|
46402
46557
|
}));
|
|
46403
|
-
function initSapOrderLinesFromBasket(
|
|
46558
|
+
function initSapOrderLinesFromBasket(_x96, _x97, _x98) {
|
|
46404
46559
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
46405
46560
|
}
|
|
46406
46561
|
return initSapOrderLinesFromBasket;
|
|
@@ -46430,6 +46585,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46430
46585
|
get: function get() {
|
|
46431
46586
|
return Object.values(this.sets);
|
|
46432
46587
|
}
|
|
46588
|
+
}, {
|
|
46589
|
+
key: "getPlannerType",
|
|
46590
|
+
value: function getPlannerType() {
|
|
46591
|
+
return this.api.getPlannerType();
|
|
46592
|
+
}
|
|
46433
46593
|
|
|
46434
46594
|
/**
|
|
46435
46595
|
* This function returns the planner mode.
|
|
@@ -46463,6 +46623,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46463
46623
|
}, {
|
|
46464
46624
|
key: "plannerChangeLog",
|
|
46465
46625
|
value: function plannerChangeLog(action) {
|
|
46626
|
+
var isInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
46466
46627
|
var set = this.actSet();
|
|
46467
46628
|
var articleCodex = [];
|
|
46468
46629
|
var accesoriesCodex = [];
|
|
@@ -46508,23 +46669,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46508
46669
|
}
|
|
46509
46670
|
});
|
|
46510
46671
|
LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
|
|
46511
|
-
basketValue: actualBasketvalue
|
|
46672
|
+
basketValue: actualBasketvalue,
|
|
46673
|
+
isInit: isInit
|
|
46512
46674
|
});
|
|
46513
46675
|
}
|
|
46514
46676
|
}, {
|
|
46515
46677
|
key: "configuratorChangeLog",
|
|
46516
46678
|
value: function configuratorChangeLog(action, myValues) {
|
|
46679
|
+
var isInit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
46517
46680
|
var set = this.actSet();
|
|
46518
46681
|
var configuration = [];
|
|
46519
46682
|
var allOpt = [];
|
|
46520
46683
|
var allOpv = [];
|
|
46521
46684
|
var latestOpv = {};
|
|
46522
46685
|
var latestOpt = {};
|
|
46686
|
+
var latestColor = [];
|
|
46523
46687
|
var actualBasketvalue = 0;
|
|
46524
46688
|
if (set) {
|
|
46525
46689
|
actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
|
|
46526
46690
|
if (myValues) {
|
|
46527
|
-
var _set$CatalogData$getO, _set$CatalogData$getO2;
|
|
46691
|
+
var _set$CatalogData$getO, _set$CatalogData$getO2, _set$CatalogData$getO3;
|
|
46528
46692
|
latestOpt = {
|
|
46529
46693
|
codex: Object.keys(myValues)[0],
|
|
46530
46694
|
name: (_set$CatalogData$getO = set.CatalogData.getOption(Object.keys(myValues)[0])) === null || _set$CatalogData$getO === void 0 ? void 0 : _set$CatalogData$getO.name
|
|
@@ -46533,6 +46697,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46533
46697
|
codex: Object.values(myValues)[0],
|
|
46534
46698
|
name: (_set$CatalogData$getO2 = set.CatalogData.getOptionValue(Object.values(myValues)[0])) === null || _set$CatalogData$getO2 === void 0 ? void 0 : _set$CatalogData$getO2.name
|
|
46535
46699
|
};
|
|
46700
|
+
latestColor = ((_set$CatalogData$getO3 = set.CatalogData.getOptionValue(Object.values(myValues)[0])) === null || _set$CatalogData$getO3 === void 0 ? void 0 : _set$CatalogData$getO3.colorGroups) || [];
|
|
46536
46701
|
}
|
|
46537
46702
|
for (var _i2 = 0, _Object$values2 = Object.values(set.getDivaArticles()); _i2 < _Object$values2.length; _i2++) {
|
|
46538
46703
|
var article = _Object$values2[_i2];
|
|
@@ -46541,17 +46706,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46541
46706
|
varientValues: article.VariantValues,
|
|
46542
46707
|
basketId: article.basketId,
|
|
46543
46708
|
opt: Object.keys(article.VariantValues).map(function (key) {
|
|
46544
|
-
var _set$CatalogData$
|
|
46709
|
+
var _set$CatalogData$getO4;
|
|
46545
46710
|
return {
|
|
46546
46711
|
codex: key,
|
|
46547
|
-
name: (_set$CatalogData$
|
|
46712
|
+
name: (_set$CatalogData$getO4 = set.CatalogData.getOption(key)) === null || _set$CatalogData$getO4 === void 0 ? void 0 : _set$CatalogData$getO4.name
|
|
46548
46713
|
};
|
|
46549
46714
|
}),
|
|
46550
46715
|
opv: Object.values(article.VariantValues).map(function (value) {
|
|
46551
|
-
var _set$CatalogData$
|
|
46716
|
+
var _set$CatalogData$getO5;
|
|
46552
46717
|
return {
|
|
46553
46718
|
codex: value,
|
|
46554
|
-
name: (_set$CatalogData$
|
|
46719
|
+
name: (_set$CatalogData$getO5 = set.CatalogData.getOption(value)) === null || _set$CatalogData$getO5 === void 0 ? void 0 : _set$CatalogData$getO5.name
|
|
46555
46720
|
};
|
|
46556
46721
|
})
|
|
46557
46722
|
}];
|
|
@@ -46560,33 +46725,33 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46560
46725
|
varientValues: article.VariantValues,
|
|
46561
46726
|
basketId: article.basketId,
|
|
46562
46727
|
opt: Object.keys(article.VariantValues).map(function (key) {
|
|
46563
|
-
var _set$CatalogData$
|
|
46728
|
+
var _set$CatalogData$getO6;
|
|
46564
46729
|
return {
|
|
46565
46730
|
codex: key,
|
|
46566
|
-
name: (_set$CatalogData$
|
|
46731
|
+
name: (_set$CatalogData$getO6 = set.CatalogData.getOption(key)) === null || _set$CatalogData$getO6 === void 0 ? void 0 : _set$CatalogData$getO6.name
|
|
46567
46732
|
};
|
|
46568
46733
|
}),
|
|
46569
46734
|
opv: Object.values(article.VariantValues).map(function (value) {
|
|
46570
|
-
var _set$CatalogData$
|
|
46735
|
+
var _set$CatalogData$getO7;
|
|
46571
46736
|
return {
|
|
46572
46737
|
codex: value,
|
|
46573
|
-
name: (_set$CatalogData$
|
|
46738
|
+
name: (_set$CatalogData$getO7 = set.CatalogData.getOptionValue(value)) === null || _set$CatalogData$getO7 === void 0 ? void 0 : _set$CatalogData$getO7.name
|
|
46574
46739
|
};
|
|
46575
46740
|
})
|
|
46576
46741
|
});
|
|
46577
46742
|
}
|
|
46578
46743
|
for (var _i3 = 0, _Object$entries = Object.entries(article.VariantValues); _i3 < _Object$entries.length; _i3++) {
|
|
46579
|
-
var _set$CatalogData$
|
|
46744
|
+
var _set$CatalogData$getO8, _set$CatalogData$getO9;
|
|
46580
46745
|
var _Object$entries$_i = _slicedToArray__default["default"](_Object$entries[_i3], 2),
|
|
46581
46746
|
opt = _Object$entries$_i[0],
|
|
46582
46747
|
opv = _Object$entries$_i[1];
|
|
46583
46748
|
allOpt.push({
|
|
46584
46749
|
codex: opt,
|
|
46585
|
-
name: (_set$CatalogData$
|
|
46750
|
+
name: (_set$CatalogData$getO8 = set.CatalogData.getOption(opt)) === null || _set$CatalogData$getO8 === void 0 ? void 0 : _set$CatalogData$getO8.name
|
|
46586
46751
|
});
|
|
46587
46752
|
allOpv.push({
|
|
46588
46753
|
codex: opv,
|
|
46589
|
-
name: (_set$CatalogData$
|
|
46754
|
+
name: (_set$CatalogData$getO9 = set.CatalogData.getOptionValue(opv)) === null || _set$CatalogData$getO9 === void 0 ? void 0 : _set$CatalogData$getO9.name
|
|
46590
46755
|
});
|
|
46591
46756
|
}
|
|
46592
46757
|
}
|
|
@@ -46595,7 +46760,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46595
46760
|
configuration: {
|
|
46596
46761
|
latest: {
|
|
46597
46762
|
opv: latestOpv,
|
|
46598
|
-
opt: latestOpt
|
|
46763
|
+
opt: latestOpt,
|
|
46764
|
+
color: latestColor
|
|
46599
46765
|
},
|
|
46600
46766
|
opt: allOpt,
|
|
46601
46767
|
opv: allOpv,
|
|
@@ -46603,7 +46769,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46603
46769
|
}
|
|
46604
46770
|
});
|
|
46605
46771
|
LOG$1.businessEvent('onActualBasketValue', 'Planner', 'Aktueller Basket Value:' + actualBasketvalue, {
|
|
46606
|
-
basketValue: actualBasketvalue
|
|
46772
|
+
basketValue: actualBasketvalue,
|
|
46773
|
+
isInit: isInit
|
|
46607
46774
|
});
|
|
46608
46775
|
}
|
|
46609
46776
|
}, {
|
|
@@ -46619,6 +46786,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46619
46786
|
this.navigateToTabGroup = undefined;
|
|
46620
46787
|
this.navigateToConfigStep = undefined;
|
|
46621
46788
|
this.updateCatalogPlannerArticles = undefined;
|
|
46789
|
+
this.updateCatalogPlanner2Dot0Articles = undefined;
|
|
46622
46790
|
this.updateAccessoiresPalette = undefined;
|
|
46623
46791
|
this.setWebConifguratorTitle = undefined;
|
|
46624
46792
|
this.onBasketInitialized = undefined;
|