@crystaldesign/web-planner-logic 25.5.0-beta.16 → 25.5.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/{DivaBoxPlanner-50308b7d.js → DivaBoxPlanner-17a8b041.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-392f3bed.js → DivaStandardPlanner-eb70b07d.js} +2 -2
- package/build/cjs/{DoorPlanner-f1c49b83.js → DoorPlanner-75ca465c.js} +1 -1
- package/build/cjs/{Host3DSignalR-c08b5082.js → Host3DSignalR-4a7899cb.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-dea24a1c.js → LiviqueWWSHandler-dbeae8fa.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-a65ae08d.js → PfisterWWSHandler-b4fb971d.js} +1 -1
- package/build/cjs/{PlannerHandler2D-4b36c96c.js → PlannerHandler2D-132e4734.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-5429d1f1.js → SeriousBasketHandler-9da8a450.js} +1 -1
- package/build/cjs/{ShelfPlanner-83c03875.js → ShelfPlanner-e7ba0d29.js} +2 -1
- package/build/cjs/{StandardWWSHandler-119ddb6b.js → StandardWWSHandler-4b1a2cae.js} +1 -1
- package/build/cjs/{index-890946be.js → index-7f7b88a3.js} +187 -144
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-ded2b029.js → DivaBoxPlanner-2a1d2fb8.js} +2 -2
- package/build/esm/{DivaStandardPlanner-523adde8.js → DivaStandardPlanner-cc425535.js} +2 -2
- package/build/esm/{DoorPlanner-fb1f4063.js → DoorPlanner-e3abb10d.js} +1 -1
- package/build/esm/{Host3DSignalR-7f37c502.js → Host3DSignalR-df468a68.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-ba8cbc86.js → LiviqueWWSHandler-a24fe39e.js} +1 -1
- package/build/esm/{PfisterWWSHandler-7be0de45.js → PfisterWWSHandler-5dd93267.js} +1 -1
- package/build/esm/{PlannerHandler2D-434f7320.js → PlannerHandler2D-5cebfe4d.js} +1 -1
- package/build/esm/{SeriousBasketHandler-2ff55f30.js → SeriousBasketHandler-eebacac7.js} +1 -1
- package/build/esm/{ShelfPlanner-219f6006.js → ShelfPlanner-d1245d80.js} +2 -1
- package/build/esm/{StandardWWSHandler-f3eb5fd9.js → StandardWWSHandler-5f78dfd4.js} +1 -1
- package/build/esm/{index-7912eee2.js → index-31c80545.js} +187 -144
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +4 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/ShelfAccessoiresView.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Articles/CatalogPlannerArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1032,7 +1032,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1032
1032
|
value: function getIDMItems(catalogId, serieId, typeNos) {
|
|
1033
1033
|
return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
|
|
1034
1034
|
return encodeURIComponent('typeNo==' + t);
|
|
1035
|
-
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
|
|
1035
|
+
}).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
|
|
1036
1036
|
}
|
|
1037
1037
|
}, {
|
|
1038
1038
|
key: "getIDMItem",
|
|
@@ -1636,6 +1636,11 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
|
|
|
1636
1636
|
get: function get() {
|
|
1637
1637
|
return this.catPlanArt.articleCodex;
|
|
1638
1638
|
}
|
|
1639
|
+
}, {
|
|
1640
|
+
key: "longDescription",
|
|
1641
|
+
get: function get() {
|
|
1642
|
+
return this.catPlanArt.catalogArticle.longDescription;
|
|
1643
|
+
}
|
|
1639
1644
|
}, {
|
|
1640
1645
|
key: "svgs",
|
|
1641
1646
|
get: function get() {
|
|
@@ -17604,6 +17609,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17604
17609
|
articleCodex: catPlanArticle.codex,
|
|
17605
17610
|
catalogCodex: catalogData.catalogCodex,
|
|
17606
17611
|
title: title,
|
|
17612
|
+
longDescription: catPlanArticle.longDescription,
|
|
17607
17613
|
width: catPlanArticle.articleSizeX,
|
|
17608
17614
|
height: catPlanArticle.articleSizeZ,
|
|
17609
17615
|
depth: catPlanArticle.articleSizeY,
|
|
@@ -17664,6 +17670,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
|
|
|
17664
17670
|
articleCodex: catPlanArticle.codex,
|
|
17665
17671
|
catalogCodex: catalogData.catalogCodex,
|
|
17666
17672
|
title: title,
|
|
17673
|
+
longDescription: catPlanArticle.longDescription,
|
|
17667
17674
|
width: catPlanArticle.articleSizeX,
|
|
17668
17675
|
height: catPlanArticle.articleSizeZ,
|
|
17669
17676
|
depth: catPlanArticle.articleSizeY,
|
|
@@ -18567,6 +18574,7 @@ function initArticleRelations(articleRelations, catalogArticleData, catalog) {
|
|
|
18567
18574
|
price: !catalog.dontShowBasePrice ? (_myAcc$BasePrice = myAcc.BasePrice) !== null && _myAcc$BasePrice !== void 0 ? _myAcc$BasePrice : catalogArticleData.articlePrice : 0,
|
|
18568
18575
|
articleCodex: myAcc.Codex,
|
|
18569
18576
|
catalogCodex: myAcc.CatalogCodex,
|
|
18577
|
+
longDescription: myAcc.longDescription,
|
|
18570
18578
|
positionGroupNr: myAcc.PositionGroupNr,
|
|
18571
18579
|
typeNr: _catalogArticle.typeNr,
|
|
18572
18580
|
image: _catalogArticle.image ? catalog.getCatImageURL(_catalogArticle.image, '') : undefined,
|
|
@@ -19520,7 +19528,7 @@ function initIDMArticles(jsonItems, catalogData) {
|
|
|
19520
19528
|
}
|
|
19521
19529
|
}
|
|
19522
19530
|
function getCatalogArticle(article, catalogData) {
|
|
19523
|
-
var _catalogData$catalogM, _articleMask$name, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2;
|
|
19531
|
+
var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$shortText, _articleMask$properti, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _articleMask$groupnam, _articleMask$groupnam2;
|
|
19524
19532
|
var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[article.typeNo];
|
|
19525
19533
|
var lang = catalogData.api.getLanguageLowercase();
|
|
19526
19534
|
var featureProperties = convertProperties(article.properties, lang, 'featureNos');
|
|
@@ -19543,11 +19551,11 @@ function getCatalogArticle(article, catalogData) {
|
|
|
19543
19551
|
hasArticleRelations: false,
|
|
19544
19552
|
hasPartlistArticle: !!article.partListRef,
|
|
19545
19553
|
hasType1Dependencies: false,
|
|
19546
|
-
name: DivaUtils__default["default"].getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.fullText, lang),
|
|
19547
|
-
longDescription: DivaUtils__default["default"].getLocals(article.fullText, lang),
|
|
19548
|
-
longDescription_locales: article.fullText,
|
|
19554
|
+
name: DivaUtils__default["default"].getLocals((_ref = (_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText) !== null && _ref !== void 0 ? _ref : article.fullText, lang),
|
|
19555
|
+
longDescription: DivaUtils__default["default"].getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
|
|
19556
|
+
longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
|
|
19549
19557
|
isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
|
|
19550
|
-
origName: DivaUtils__default["default"].getLocals(article.fullText, lang),
|
|
19558
|
+
origName: DivaUtils__default["default"].getLocals((_article$shortText = article.shortText) !== null && _article$shortText !== void 0 ? _article$shortText : article.fullText, lang),
|
|
19551
19559
|
properties: [].concat(_toConsumableArray__default["default"](convertProperties(article.properties, lang)), _toConsumableArray__default["default"]((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
|
|
19552
19560
|
optionProperties: optionProperties,
|
|
19553
19561
|
featureProperties: featureProperties,
|
|
@@ -19579,12 +19587,12 @@ function getCatalogArticle(article, catalogData) {
|
|
|
19579
19587
|
url: d.url,
|
|
19580
19588
|
detailInfoNo: d.detailInfoNo
|
|
19581
19589
|
};
|
|
19582
|
-
})
|
|
19590
|
+
}),
|
|
19591
|
+
groupName: (_articleMask$groupnam = articleMask === null || articleMask === void 0 || (_articleMask$groupnam2 = articleMask.groupname) === null || _articleMask$groupnam2 === void 0 ? void 0 : _articleMask$groupnam2[catalogData.api.getLanguage()]) !== null && _articleMask$groupnam !== void 0 ? _articleMask$groupnam : article.typeKey
|
|
19583
19592
|
};
|
|
19584
19593
|
}
|
|
19585
19594
|
|
|
19586
19595
|
/*
|
|
19587
|
-
groupName: articleMask?.groupname?.[catalogData.api.getLanguage()] ?? jsonArticle.GroupName,
|
|
19588
19596
|
mainCategory: jsonArticle.MainCategory && jsonArticle.MainCategory != '' ? jsonArticle.MainCategory : undefined,
|
|
19589
19597
|
price: jsonArticle.VKP1 && isNaN(jsonArticle.VKP1) ? Number(jsonArticle.VKP1.replace(',', '.')) : jsonArticle.VKP1,
|
|
19590
19598
|
priceGroup: jsonArticle.PriceGroup,
|
|
@@ -19663,15 +19671,16 @@ function getCatalogPlanner(article, catalogArticle) {
|
|
|
19663
19671
|
};
|
|
19664
19672
|
}
|
|
19665
19673
|
function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps, plannerPaletteViewInfo) {
|
|
19666
|
-
var _catPlanArticle$filte, _catPlanArticle$svgs;
|
|
19674
|
+
var _catPlanArticle$filte, _catPlanArticle$group, _catPlanArticle$svgs;
|
|
19667
19675
|
plannerPaletteViewInfo.catalogPlannerArticles.push({
|
|
19668
19676
|
articleCodex: catPlanArticle.codex,
|
|
19669
19677
|
avlFilter: catPlanArticle.avlFilter,
|
|
19670
19678
|
avrFilter: catPlanArticle.avrFilter,
|
|
19679
|
+
longDescription: catPlanArticle.longDescription,
|
|
19671
19680
|
catalogCodex: catPlanArticle.catalogCodex,
|
|
19672
19681
|
codex: catPlanArticle.codex,
|
|
19673
19682
|
filterType: (_catPlanArticle$filte = catPlanArticle.filterType) !== null && _catPlanArticle$filte !== void 0 ? _catPlanArticle$filte : 'DockNone',
|
|
19674
|
-
groupName: '',
|
|
19683
|
+
groupName: (_catPlanArticle$group = catPlanArticle.groupName) !== null && _catPlanArticle$group !== void 0 ? _catPlanArticle$group : '',
|
|
19675
19684
|
hasAVC: !!catPlanArticle.topAVC,
|
|
19676
19685
|
hasAVN: !!catPlanArticle.topAVN,
|
|
19677
19686
|
hasAVO: !!catPlanArticle.topAVO,
|
|
@@ -21606,12 +21615,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
21606
21615
|
}, {
|
|
21607
21616
|
key: "IsDockingFilterFeature",
|
|
21608
21617
|
get: function get() {
|
|
21609
|
-
return this.option.idmVariantenArt ? [89, 90].includes(this.option.idmVariantenArt) : false;
|
|
21618
|
+
return this.option.idmVariantenArt ? [89, 90, 1089, 1090].includes(this.option.idmVariantenArt) : false;
|
|
21610
21619
|
}
|
|
21611
21620
|
}, {
|
|
21612
21621
|
key: "IsIDMSpecialFeature",
|
|
21613
21622
|
get: function get() {
|
|
21614
|
-
return this.option.idmVariantenArt ? [95, 96, 97, 89, 90].includes(this.option.idmVariantenArt) : false;
|
|
21623
|
+
return this.option.idmVariantenArt ? [95, 96, 97, 89, 90, 1095, 1096, 1097, 1089, 1090].includes(this.option.idmVariantenArt) : false;
|
|
21615
21624
|
}
|
|
21616
21625
|
}, {
|
|
21617
21626
|
key: "visibleOptionValues",
|
|
@@ -22306,8 +22315,9 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22306
22315
|
}, {
|
|
22307
22316
|
key: "updateIDMSpecificFeature",
|
|
22308
22317
|
value: function updateIDMSpecificFeature(ops) {
|
|
22318
|
+
var _ops$option$idmVarian, _ops$option$idmVarian2, _ops$option$idmVarian3, _ops$option$idmVarian4, _ops$option$idmVarian5;
|
|
22309
22319
|
if (!this.article.parentHasSameOption(ops.optionCodex)) return;
|
|
22310
|
-
if (ops.option.idmVariantenArt
|
|
22320
|
+
if ([90, 1090].includes((_ops$option$idmVarian = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian !== void 0 ? _ops$option$idmVarian : 0)) {
|
|
22311
22321
|
//R (Anschlusstyp R) - AVR
|
|
22312
22322
|
var newAVRFilter = [],
|
|
22313
22323
|
visibleOPVs = ops.visibleOptionValues;
|
|
@@ -22316,7 +22326,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22316
22326
|
}
|
|
22317
22327
|
this.article.newPossibleAVRFilters = newAVRFilter;
|
|
22318
22328
|
}
|
|
22319
|
-
if (ops.option.idmVariantenArt
|
|
22329
|
+
if ([89, 1089].includes((_ops$option$idmVarian2 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian2 !== void 0 ? _ops$option$idmVarian2 : 0)) {
|
|
22320
22330
|
//L (Anschlusstyp L) - AVL
|
|
22321
22331
|
var newAVLFilter = [],
|
|
22322
22332
|
_visibleOPVs = ops.visibleOptionValues;
|
|
@@ -22326,7 +22336,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22326
22336
|
this.article.newPossibleAVLFilters = newAVLFilter;
|
|
22327
22337
|
}
|
|
22328
22338
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22329
|
-
if (ops.option.idmVariantenArt
|
|
22339
|
+
if ([97, 1097].includes((_ops$option$idmVarian3 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian3 !== void 0 ? _ops$option$idmVarian3 : 0)) {
|
|
22330
22340
|
//Planungshöhe
|
|
22331
22341
|
try {
|
|
22332
22342
|
var _ops$freeText;
|
|
@@ -22339,7 +22349,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22339
22349
|
}
|
|
22340
22350
|
}
|
|
22341
22351
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22342
|
-
if (ops.option.idmVariantenArt
|
|
22352
|
+
if ([96, 1096].includes((_ops$option$idmVarian4 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian4 !== void 0 ? _ops$option$idmVarian4 : 0) || ops.option.diameter) {
|
|
22343
22353
|
//Planungstiefe
|
|
22344
22354
|
try {
|
|
22345
22355
|
var _ops$freeText2;
|
|
@@ -22352,7 +22362,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22352
22362
|
}
|
|
22353
22363
|
}
|
|
22354
22364
|
//beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
|
|
22355
|
-
if (ops.option.idmVariantenArt
|
|
22365
|
+
if ([95, 1095].includes((_ops$option$idmVarian5 = ops.option.idmVariantenArt) !== null && _ops$option$idmVarian5 !== void 0 ? _ops$option$idmVarian5 : 0) || ops.option.diameter) {
|
|
22356
22366
|
//Planungsbreite - ACHTUNG Fehler wenn mm
|
|
22357
22367
|
|
|
22358
22368
|
try {
|
|
@@ -24589,16 +24599,17 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24589
24599
|
}, {
|
|
24590
24600
|
key: "updateIDMSpecificFeature",
|
|
24591
24601
|
value: function updateIDMSpecificFeature(myArtOPS) {
|
|
24602
|
+
var _myArtOPS$option$idmV, _myArtOPS$option$idmV2, _myArtOPS$option$idmV3, _myArtOPS$option$idmV4, _myArtOPS$option$idmV5;
|
|
24592
24603
|
if (!this.article.parentHasSameOption(myArtOPS.optionCodex)) return;
|
|
24593
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24604
|
+
if ([90, 1090].includes((_myArtOPS$option$idmV = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV !== void 0 ? _myArtOPS$option$idmV : 0)) {
|
|
24594
24605
|
//R (Anschlusstyp R) - AVR
|
|
24595
24606
|
this.article.newPossibleAVRFilters = Object.keys(myArtOPS.visibleOptionValues);
|
|
24596
24607
|
}
|
|
24597
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24608
|
+
if ([89, 1089].includes((_myArtOPS$option$idmV2 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV2 !== void 0 ? _myArtOPS$option$idmV2 : 0)) {
|
|
24598
24609
|
//L (Anschlusstyp L) - AVL
|
|
24599
24610
|
this.article.newPossibleAVLFilters = Object.keys(myArtOPS.visibleOptionValues);
|
|
24600
24611
|
}
|
|
24601
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24612
|
+
if ([97, 1097].includes((_myArtOPS$option$idmV3 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV3 !== void 0 ? _myArtOPS$option$idmV3 : 0)) {
|
|
24602
24613
|
try {
|
|
24603
24614
|
var _myArtOPS$measureValu;
|
|
24604
24615
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24607,7 +24618,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24607
24618
|
LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
|
|
24608
24619
|
}
|
|
24609
24620
|
}
|
|
24610
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24621
|
+
if ([96, 1096].includes((_myArtOPS$option$idmV4 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV4 !== void 0 ? _myArtOPS$option$idmV4 : 0) || myArtOPS.option.diameter) {
|
|
24611
24622
|
try {
|
|
24612
24623
|
var _myArtOPS$measureValu2;
|
|
24613
24624
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -24616,7 +24627,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
24616
24627
|
LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
|
|
24617
24628
|
}
|
|
24618
24629
|
}
|
|
24619
|
-
if (myArtOPS.option.idmVariantenArt
|
|
24630
|
+
if ([95, 1095].includes((_myArtOPS$option$idmV5 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV5 !== void 0 ? _myArtOPS$option$idmV5 : 0) || myArtOPS.option.diameter) {
|
|
24620
24631
|
try {
|
|
24621
24632
|
var _myArtOPS$measureValu3;
|
|
24622
24633
|
this.article.doUpdatePlannerSize = true;
|
|
@@ -26415,8 +26426,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26415
26426
|
_step14;
|
|
26416
26427
|
try {
|
|
26417
26428
|
for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
|
|
26429
|
+
var _ops$idmVariantenArt;
|
|
26418
26430
|
var ops = _step14.value;
|
|
26419
|
-
if (ops.isDoShow && (!(ops.idmVariantenArt
|
|
26431
|
+
if (ops.isDoShow && (![95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt = ops.idmVariantenArt) !== null && _ops$idmVariantenArt !== void 0 ? _ops$idmVariantenArt : 0) || ops.isVisibleFreeText) && ops.val && ops.visibleCount > 0 && !ops.isDescribingState) {
|
|
26420
26432
|
variantValues.push((this.CatalogData.isIDMFormat ? ops.optionCodex : ops.optionCodex.substring(3)) + '_' + (this.CatalogData.isIDMFormat ? ops.val.codex : ops.val.codex.substring(3)) + (ops.freeText ? '_' + ops.freeText : ops.value ? '_' + ops.value : ''));
|
|
26421
26433
|
}
|
|
26422
26434
|
}
|
|
@@ -27184,7 +27196,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27184
27196
|
break;
|
|
27185
27197
|
}
|
|
27186
27198
|
_context.next = 4;
|
|
27187
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
27199
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-e7ba0d29.js'); });
|
|
27188
27200
|
case 4:
|
|
27189
27201
|
_yield$import = _context.sent;
|
|
27190
27202
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -27693,7 +27705,8 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
27693
27705
|
var ops = _step28.value;
|
|
27694
27706
|
var OP = ops.optionCodex;
|
|
27695
27707
|
if (ops) {
|
|
27696
|
-
var
|
|
27708
|
+
var _ops$idmVariantenArt2;
|
|
27709
|
+
var doHideSizeOption = [95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt2 = ops.idmVariantenArt) !== null && _ops$idmVariantenArt2 !== void 0 ? _ops$idmVariantenArt2 : 0);
|
|
27697
27710
|
if (ops.isVisibleFreeText == true) {
|
|
27698
27711
|
doHideSizeOption = false;
|
|
27699
27712
|
}
|
|
@@ -31832,7 +31845,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
31832
31845
|
break;
|
|
31833
31846
|
}
|
|
31834
31847
|
_context5.next = 3;
|
|
31835
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
31848
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-75ca465c.js'); });
|
|
31836
31849
|
case 3:
|
|
31837
31850
|
_yield$import = _context5.sent;
|
|
31838
31851
|
DoorPlanner = _yield$import["default"];
|
|
@@ -34232,7 +34245,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34232
34245
|
notTotallyMatichingOPVs = false,
|
|
34233
34246
|
myOptionState = undefined;
|
|
34234
34247
|
for (var i = 0; i < configStep.targetArticles.length; i++) {
|
|
34235
|
-
var _myOptionState;
|
|
34248
|
+
var _myOptionState, _myOptionState$idmVar;
|
|
34236
34249
|
var article = articles[configStep.targetArticles[i]];
|
|
34237
34250
|
myOptionState = article.getArticleOptionState(configStep.option);
|
|
34238
34251
|
if (!myOptionState) throw new Error('myOptionState ' + configStep.option + ' is undefined');
|
|
@@ -34244,7 +34257,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34244
34257
|
if (myOptionState.isFreeText && myOptionState.freeTextLang) {
|
|
34245
34258
|
freeTextLang = myOptionState.freeTextLang;
|
|
34246
34259
|
}
|
|
34247
|
-
if (myOptionState.headerPosVariationType == 'V' || myOptionState.idmVariantenArt
|
|
34260
|
+
if (myOptionState.headerPosVariationType == 'V' || [35, 1035].includes((_myOptionState$idmVar = myOptionState.idmVariantenArt) !== null && _myOptionState$idmVar !== void 0 ? _myOptionState$idmVar : 0)) {
|
|
34248
34261
|
// 35 is the seatingheight. Articles should not be albe to have different seatheight
|
|
34249
34262
|
//get schnittmenge of all the articles
|
|
34250
34263
|
if (i === 0) {
|
|
@@ -36438,13 +36451,13 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36438
36451
|
case 2:
|
|
36439
36452
|
opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
|
|
36440
36453
|
previewType = set.api.pricePreview;
|
|
36441
|
-
if (!(!opt ||
|
|
36454
|
+
if (!(!opt || opt.mergeIDMToOPG || configItems[0].isOPVG || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR'))) {
|
|
36442
36455
|
_context26.next = 6;
|
|
36443
36456
|
break;
|
|
36444
36457
|
}
|
|
36445
36458
|
return _context26.abrupt("return", configItems);
|
|
36446
36459
|
case 6:
|
|
36447
|
-
if (!(!previewType || previewType == 'off' || opt.isDescribingState || configItems.length > 300 && !configItems[0].groupName || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex.substring(3)) || (_set$CatalogData$hide = set.CatalogData.hidePricePreviewOnlyOnOptions) !== null && _set$CatalogData$hide !== void 0 && _set$CatalogData$hide.length && set.CatalogData.hidePricePreviewOnlyOnOptions.includes(opt.codex.substring(3)))) {
|
|
36460
|
+
if (!(!previewType || previewType == 'off' || configItems.length == 1 || opt.isDescribingState || configItems.length > 300 && !configItems[0].groupName || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex.substring(3)) || (_set$CatalogData$hide = set.CatalogData.hidePricePreviewOnlyOnOptions) !== null && _set$CatalogData$hide !== void 0 && _set$CatalogData$hide.length && set.CatalogData.hidePricePreviewOnlyOnOptions.includes(opt.codex.substring(3)))) {
|
|
36448
36461
|
_context26.next = 9;
|
|
36449
36462
|
break;
|
|
36450
36463
|
}
|
|
@@ -36596,7 +36609,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36596
36609
|
}
|
|
36597
36610
|
hash = DivaUtils.md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig)))));
|
|
36598
36611
|
dataHash = set.CatalogData.getVariantsPriceByHash(hash);
|
|
36599
|
-
if (!dataHash) {
|
|
36612
|
+
if (!(dataHash && (!set.logTotalStateForVariants || dataHash.articleSnapshot))) {
|
|
36600
36613
|
_context28.next = 21;
|
|
36601
36614
|
break;
|
|
36602
36615
|
}
|
|
@@ -38707,7 +38720,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38707
38720
|
break;
|
|
38708
38721
|
case 3:
|
|
38709
38722
|
_context12.next = 5;
|
|
38710
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
38723
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-b4fb971d.js'); });
|
|
38711
38724
|
case 5:
|
|
38712
38725
|
_yield$import = _context12.sent;
|
|
38713
38726
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -38715,7 +38728,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38715
38728
|
return _context12.abrupt("break", 27);
|
|
38716
38729
|
case 9:
|
|
38717
38730
|
_context12.next = 11;
|
|
38718
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
38731
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-dbeae8fa.js'); });
|
|
38719
38732
|
case 11:
|
|
38720
38733
|
_yield$import2 = _context12.sent;
|
|
38721
38734
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -38723,7 +38736,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38723
38736
|
return _context12.abrupt("break", 27);
|
|
38724
38737
|
case 15:
|
|
38725
38738
|
_context12.next = 17;
|
|
38726
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
38739
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-9da8a450.js'); });
|
|
38727
38740
|
case 17:
|
|
38728
38741
|
_yield$import3 = _context12.sent;
|
|
38729
38742
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -38731,7 +38744,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
38731
38744
|
return _context12.abrupt("break", 27);
|
|
38732
38745
|
case 21:
|
|
38733
38746
|
_context12.next = 23;
|
|
38734
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
38747
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-4b1a2cae.js'); });
|
|
38735
38748
|
case 23:
|
|
38736
38749
|
_yield$import4 = _context12.sent;
|
|
38737
38750
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -40159,7 +40172,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
40159
40172
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40160
40173
|
case 0:
|
|
40161
40174
|
_context3.next = 2;
|
|
40162
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
40175
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-4a7899cb.js'); });
|
|
40163
40176
|
case 2:
|
|
40164
40177
|
_yield$import = _context3.sent;
|
|
40165
40178
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -41716,7 +41729,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41716
41729
|
break;
|
|
41717
41730
|
case 8:
|
|
41718
41731
|
_context4.next = 10;
|
|
41719
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
41732
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-eb70b07d.js'); });
|
|
41720
41733
|
case 10:
|
|
41721
41734
|
_yield$import = _context4.sent;
|
|
41722
41735
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -41727,7 +41740,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
41727
41740
|
return _context4.abrupt("break", 21);
|
|
41728
41741
|
case 15:
|
|
41729
41742
|
_context4.next = 17;
|
|
41730
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
41743
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-17a8b041.js'); });
|
|
41731
41744
|
case 17:
|
|
41732
41745
|
_yield$import2 = _context4.sent;
|
|
41733
41746
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -44707,11 +44720,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44707
44720
|
this.divaBasketHandler.fillOrigConfigurations();
|
|
44708
44721
|
actBasket.Updated = Date.now();
|
|
44709
44722
|
if (!returnTo) {
|
|
44710
|
-
_context27.next =
|
|
44723
|
+
_context27.next = 52;
|
|
44711
44724
|
break;
|
|
44712
44725
|
}
|
|
44713
44726
|
_context27.t3 = returnTo;
|
|
44714
|
-
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ?
|
|
44727
|
+
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ? 33 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context27.t3 === 'SAVE_BASKET' ? 33 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
|
|
44715
44728
|
break;
|
|
44716
44729
|
case 27:
|
|
44717
44730
|
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
|
|
@@ -44725,8 +44738,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44725
44738
|
basketData: actBasket
|
|
44726
44739
|
}
|
|
44727
44740
|
});
|
|
44728
|
-
return _context27.abrupt("break",
|
|
44741
|
+
return _context27.abrupt("break", 52);
|
|
44729
44742
|
case 30:
|
|
44743
|
+
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
44744
|
+
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
44745
|
+
}
|
|
44730
44746
|
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
|
|
44731
44747
|
type: 'SELLER',
|
|
44732
44748
|
parameters: {
|
|
@@ -44737,51 +44753,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
44737
44753
|
basketData: actBasket
|
|
44738
44754
|
}
|
|
44739
44755
|
});
|
|
44740
|
-
return _context27.abrupt("break",
|
|
44741
|
-
case
|
|
44756
|
+
return _context27.abrupt("break", 52);
|
|
44757
|
+
case 33:
|
|
44742
44758
|
if (!(event == 'onSaveProduct')) {
|
|
44743
|
-
_context27.next =
|
|
44759
|
+
_context27.next = 43;
|
|
44744
44760
|
break;
|
|
44745
44761
|
}
|
|
44746
44762
|
//copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
|
|
44747
44763
|
actBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(actBasket)));
|
|
44748
|
-
_context27.next =
|
|
44764
|
+
_context27.next = 37;
|
|
44749
44765
|
return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
|
|
44750
|
-
case
|
|
44751
|
-
_context27.next =
|
|
44766
|
+
case 37:
|
|
44767
|
+
_context27.next = 39;
|
|
44752
44768
|
return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
|
|
44753
|
-
case
|
|
44769
|
+
case 39:
|
|
44754
44770
|
newDivaNr = _context27.sent;
|
|
44755
44771
|
actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
|
|
44756
|
-
_context27.next =
|
|
44772
|
+
_context27.next = 51;
|
|
44757
44773
|
break;
|
|
44758
|
-
case
|
|
44774
|
+
case 43:
|
|
44759
44775
|
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
44760
44776
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
|
|
44761
44777
|
actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
|
|
44762
44778
|
}
|
|
44763
44779
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
|
|
44764
44780
|
actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
|
|
44765
|
-
_context27.next =
|
|
44781
|
+
_context27.next = 48;
|
|
44766
44782
|
return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
|
|
44767
|
-
case
|
|
44783
|
+
case 48:
|
|
44768
44784
|
_result2 = _context27.sent;
|
|
44769
44785
|
if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
44770
|
-
_context27.next =
|
|
44786
|
+
_context27.next = 51;
|
|
44771
44787
|
break;
|
|
44772
44788
|
}
|
|
44773
44789
|
return _context27.abrupt("return", 'canceled');
|
|
44774
|
-
case 50:
|
|
44775
|
-
return _context27.abrupt("break", 51);
|
|
44776
44790
|
case 51:
|
|
44791
|
+
return _context27.abrupt("break", 52);
|
|
44792
|
+
case 52:
|
|
44777
44793
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
44778
44794
|
actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
|
|
44779
|
-
_context27.next =
|
|
44795
|
+
_context27.next = 56;
|
|
44780
44796
|
return this.addToBasket(actBasket, event);
|
|
44781
|
-
case
|
|
44797
|
+
case 56:
|
|
44782
44798
|
product = _context27.sent;
|
|
44783
44799
|
return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
44784
|
-
case
|
|
44800
|
+
case 58:
|
|
44785
44801
|
case "end":
|
|
44786
44802
|
return _context27.stop();
|
|
44787
44803
|
}
|
|
@@ -45106,39 +45122,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45106
45122
|
case 0:
|
|
45107
45123
|
event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
|
|
45108
45124
|
_context29.t0 = event;
|
|
45109
|
-
_context29.next = _context29.t0 === 'onWebPlanerPrint' ?
|
|
45125
|
+
_context29.next = _context29.t0 === 'onWebPlanerPrint' ? 4 : _context29.t0 === 'onWebPlanerSave' ? 6 : _context29.t0 === 'onWebPlanerShare' ? 8 : _context29.t0 === 'onRequestConsulation' ? 10 : _context29.t0 === 'onSave' ? 12 : _context29.t0 === 'onSendEmail' ? 14 : _context29.t0 === 'onSaveProduct' ? 19 : _context29.t0 === 'dontSaveBasket' ? 26 : _context29.t0 === 'onAddToBasket' ? 26 : _context29.t0 === 'onSendContactForm' ? 28 : 31;
|
|
45110
45126
|
break;
|
|
45111
|
-
case
|
|
45127
|
+
case 4:
|
|
45112
45128
|
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
45113
45129
|
type: 'onWebPlanerPrint',
|
|
45114
45130
|
data: actBasket.getAsJson()
|
|
45115
45131
|
});
|
|
45116
|
-
return _context29.abrupt("break",
|
|
45117
|
-
case
|
|
45132
|
+
return _context29.abrupt("break", 33);
|
|
45133
|
+
case 6:
|
|
45118
45134
|
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
45119
45135
|
type: 'onWebPlanerSave',
|
|
45120
45136
|
data: actBasket.getAsJson()
|
|
45121
45137
|
});
|
|
45122
|
-
return _context29.abrupt("break",
|
|
45123
|
-
case
|
|
45138
|
+
return _context29.abrupt("break", 33);
|
|
45139
|
+
case 8:
|
|
45124
45140
|
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
45125
45141
|
type: 'onWebPlanerShare',
|
|
45126
45142
|
data: actBasket.getAsJson()
|
|
45127
45143
|
});
|
|
45128
|
-
return _context29.abrupt("break",
|
|
45129
|
-
case
|
|
45144
|
+
return _context29.abrupt("break", 33);
|
|
45145
|
+
case 10:
|
|
45130
45146
|
(_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
|
|
45131
45147
|
type: 'onRequestConsulation',
|
|
45132
45148
|
data: actBasket.getAsJson()
|
|
45133
45149
|
});
|
|
45134
|
-
return _context29.abrupt("break",
|
|
45135
|
-
case
|
|
45150
|
+
return _context29.abrupt("break", 33);
|
|
45151
|
+
case 12:
|
|
45136
45152
|
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
45137
45153
|
type: 'onSave',
|
|
45138
45154
|
data: actBasket.getAsJson()
|
|
45139
45155
|
});
|
|
45140
|
-
return _context29.abrupt("break",
|
|
45141
|
-
case
|
|
45156
|
+
return _context29.abrupt("break", 33);
|
|
45157
|
+
case 14:
|
|
45142
45158
|
emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
|
|
45143
45159
|
this.divaBasketHandler.emailConfig = undefined;
|
|
45144
45160
|
if (emailConfig) {
|
|
@@ -45172,45 +45188,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45172
45188
|
type: 'onAddToBasket',
|
|
45173
45189
|
data: actBasket.getAsJson()
|
|
45174
45190
|
});
|
|
45175
|
-
return _context29.abrupt("break",
|
|
45176
|
-
case
|
|
45191
|
+
return _context29.abrupt("break", 33);
|
|
45192
|
+
case 19:
|
|
45177
45193
|
this.actSet().CatalogData;
|
|
45178
|
-
_context29.next =
|
|
45194
|
+
_context29.next = 22;
|
|
45179
45195
|
return this.api.saveAsProduct(this.sets, actBasket);
|
|
45180
|
-
case
|
|
45196
|
+
case 22:
|
|
45181
45197
|
products = _context29.sent;
|
|
45182
45198
|
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
|
|
45183
45199
|
type: 'onAddToBasket',
|
|
45184
45200
|
data: actBasket.getAsJson()
|
|
45185
45201
|
});
|
|
45186
45202
|
if (!products) {
|
|
45187
|
-
_context29.next =
|
|
45203
|
+
_context29.next = 26;
|
|
45188
45204
|
break;
|
|
45189
45205
|
}
|
|
45190
45206
|
return _context29.abrupt("return", products[0]);
|
|
45191
|
-
case
|
|
45192
|
-
case 28:
|
|
45207
|
+
case 26:
|
|
45193
45208
|
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
|
|
45194
45209
|
type: 'onAddToBasket',
|
|
45195
45210
|
data: actBasket.getAsJson()
|
|
45196
45211
|
});
|
|
45197
|
-
return _context29.abrupt("break",
|
|
45198
|
-
case
|
|
45212
|
+
return _context29.abrupt("break", 33);
|
|
45213
|
+
case 28:
|
|
45199
45214
|
(_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
|
|
45200
45215
|
type: 'onAddToBasket',
|
|
45201
45216
|
data: actBasket.getAsJson()
|
|
45202
45217
|
});
|
|
45203
45218
|
this.openContactForm(this.divaBasketHandler);
|
|
45204
|
-
return _context29.abrupt("break",
|
|
45205
|
-
case
|
|
45219
|
+
return _context29.abrupt("break", 33);
|
|
45220
|
+
case 31:
|
|
45206
45221
|
(_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
|
|
45207
45222
|
type: event,
|
|
45208
45223
|
data: actBasket.getAsJson()
|
|
45209
45224
|
});
|
|
45210
|
-
return _context29.abrupt("break",
|
|
45211
|
-
case
|
|
45225
|
+
return _context29.abrupt("break", 33);
|
|
45226
|
+
case 33:
|
|
45212
45227
|
return _context29.abrupt("return");
|
|
45213
|
-
case
|
|
45228
|
+
case 34:
|
|
45214
45229
|
case "end":
|
|
45215
45230
|
return _context29.stop();
|
|
45216
45231
|
}
|
|
@@ -45268,7 +45283,35 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45268
45283
|
(_this$api = this.api) === null || _this$api === void 0 || _this$api.clearCache();
|
|
45269
45284
|
this.divaCatalogs = {};
|
|
45270
45285
|
}
|
|
45271
|
-
|
|
45286
|
+
}, {
|
|
45287
|
+
key: "getCurrentBasket",
|
|
45288
|
+
value: function () {
|
|
45289
|
+
var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(event, force, returnTo, dontGoToSummary) {
|
|
45290
|
+
var _this$actSet33, _this$divaBasketHandl5, _this$onClickAddToBas3;
|
|
45291
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
|
|
45292
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
45293
|
+
case 0:
|
|
45294
|
+
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.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))) {
|
|
45295
|
+
_context30.next = 2;
|
|
45296
|
+
break;
|
|
45297
|
+
}
|
|
45298
|
+
return _context30.abrupt("return", true);
|
|
45299
|
+
case 2:
|
|
45300
|
+
_context30.next = 4;
|
|
45301
|
+
return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, event, force, returnTo, dontGoToSummary);
|
|
45302
|
+
case 4:
|
|
45303
|
+
return _context30.abrupt("return", !!_context30.sent);
|
|
45304
|
+
case 5:
|
|
45305
|
+
case "end":
|
|
45306
|
+
return _context30.stop();
|
|
45307
|
+
}
|
|
45308
|
+
}, _callee30, this);
|
|
45309
|
+
}));
|
|
45310
|
+
function getCurrentBasket(_x80, _x81, _x82, _x83) {
|
|
45311
|
+
return _getCurrentBasket.apply(this, arguments);
|
|
45312
|
+
}
|
|
45313
|
+
return getCurrentBasket;
|
|
45314
|
+
}()
|
|
45272
45315
|
/*********************************END Functions in Logik called From View END *************************************/
|
|
45273
45316
|
/*********************************** Register Funictions from Logik to View ***************************************/
|
|
45274
45317
|
}, {
|
|
@@ -45491,9 +45534,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45491
45534
|
key: "initApiForLogicOnly",
|
|
45492
45535
|
value: //just for testing purposes
|
|
45493
45536
|
function () {
|
|
45494
|
-
var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45495
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45496
|
-
while (1) switch (
|
|
45537
|
+
var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
|
|
45538
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
|
|
45539
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
45497
45540
|
case 0:
|
|
45498
45541
|
//empty services
|
|
45499
45542
|
this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
|
|
@@ -45506,17 +45549,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45506
45549
|
jwt: jwt,
|
|
45507
45550
|
apiKey: apiKey
|
|
45508
45551
|
}), handler);
|
|
45509
|
-
|
|
45552
|
+
_context31.next = 3;
|
|
45510
45553
|
return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
|
|
45511
45554
|
case 3:
|
|
45512
45555
|
this.plannerHandler = new DivaPlannerHandler(true);
|
|
45513
45556
|
case 4:
|
|
45514
45557
|
case "end":
|
|
45515
|
-
return
|
|
45558
|
+
return _context31.stop();
|
|
45516
45559
|
}
|
|
45517
|
-
},
|
|
45560
|
+
}, _callee31, this);
|
|
45518
45561
|
}));
|
|
45519
|
-
function initApiForLogicOnly(
|
|
45562
|
+
function initApiForLogicOnly(_x84, _x85, _x86, _x87, _x88, _x89, _x90) {
|
|
45520
45563
|
return _initApiForLogicOnly.apply(this, arguments);
|
|
45521
45564
|
}
|
|
45522
45565
|
return initApiForLogicOnly;
|
|
@@ -45529,16 +45572,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45529
45572
|
}, {
|
|
45530
45573
|
key: "loadBasket",
|
|
45531
45574
|
value: function () {
|
|
45532
|
-
var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45533
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45534
|
-
while (1) switch (
|
|
45575
|
+
var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32() {
|
|
45576
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context32) {
|
|
45577
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
45535
45578
|
case 0:
|
|
45536
|
-
return
|
|
45579
|
+
return _context32.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
|
|
45537
45580
|
case 1:
|
|
45538
45581
|
case "end":
|
|
45539
|
-
return
|
|
45582
|
+
return _context32.stop();
|
|
45540
45583
|
}
|
|
45541
|
-
},
|
|
45584
|
+
}, _callee32, this);
|
|
45542
45585
|
}));
|
|
45543
45586
|
function loadBasket() {
|
|
45544
45587
|
return _loadBasket.apply(this, arguments);
|
|
@@ -45553,39 +45596,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45553
45596
|
}, {
|
|
45554
45597
|
key: "initBasket",
|
|
45555
45598
|
value: function () {
|
|
45556
|
-
var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45599
|
+
var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33(init3D, ignoreFavorites) {
|
|
45557
45600
|
var initSetState, set, basket;
|
|
45558
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45559
|
-
while (1) switch (
|
|
45601
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context33) {
|
|
45602
|
+
while (1) switch (_context33.prev = _context33.next) {
|
|
45560
45603
|
case 0:
|
|
45561
45604
|
this.divaNr = this.divaBasketHandler.actDivaNr;
|
|
45562
45605
|
initSetState = this.getInitStateForSet(!init3D);
|
|
45563
45606
|
this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
|
|
45564
|
-
|
|
45607
|
+
_context33.next = 5;
|
|
45565
45608
|
return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
|
|
45566
45609
|
case 5:
|
|
45567
45610
|
//TODO check if when basket gets repaired the product match gets called
|
|
45568
45611
|
set = this.actSet();
|
|
45569
45612
|
setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
|
|
45570
45613
|
if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
|
|
45571
|
-
|
|
45614
|
+
_context33.next = 10;
|
|
45572
45615
|
break;
|
|
45573
45616
|
}
|
|
45574
|
-
|
|
45617
|
+
_context33.next = 10;
|
|
45575
45618
|
return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
|
|
45576
45619
|
case 10:
|
|
45577
|
-
|
|
45620
|
+
_context33.next = 12;
|
|
45578
45621
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
|
|
45579
45622
|
case 12:
|
|
45580
|
-
basket =
|
|
45581
|
-
return
|
|
45623
|
+
basket = _context33.sent;
|
|
45624
|
+
return _context33.abrupt("return", basket);
|
|
45582
45625
|
case 14:
|
|
45583
45626
|
case "end":
|
|
45584
|
-
return
|
|
45627
|
+
return _context33.stop();
|
|
45585
45628
|
}
|
|
45586
|
-
},
|
|
45629
|
+
}, _callee33, this);
|
|
45587
45630
|
}));
|
|
45588
|
-
function initBasket(
|
|
45631
|
+
function initBasket(_x91, _x92) {
|
|
45589
45632
|
return _initBasket.apply(this, arguments);
|
|
45590
45633
|
}
|
|
45591
45634
|
return initBasket;
|
|
@@ -45599,21 +45642,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45599
45642
|
}, {
|
|
45600
45643
|
key: "getValidVariantsLength",
|
|
45601
45644
|
value: function () {
|
|
45602
|
-
var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45645
|
+
var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34() {
|
|
45603
45646
|
var set;
|
|
45604
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45605
|
-
while (1) switch (
|
|
45647
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context34) {
|
|
45648
|
+
while (1) switch (_context34.prev = _context34.next) {
|
|
45606
45649
|
case 0:
|
|
45607
45650
|
set = this.actSet();
|
|
45608
|
-
|
|
45651
|
+
_context34.next = 3;
|
|
45609
45652
|
return favoritesHandlerInstance.getValidVariants(set, true);
|
|
45610
45653
|
case 3:
|
|
45611
|
-
return
|
|
45654
|
+
return _context34.abrupt("return", _context34.sent.length);
|
|
45612
45655
|
case 4:
|
|
45613
45656
|
case "end":
|
|
45614
|
-
return
|
|
45657
|
+
return _context34.stop();
|
|
45615
45658
|
}
|
|
45616
|
-
},
|
|
45659
|
+
}, _callee34, this);
|
|
45617
45660
|
}));
|
|
45618
45661
|
function getValidVariantsLength() {
|
|
45619
45662
|
return _getValidVariantsLength.apply(this, arguments);
|
|
@@ -45623,46 +45666,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45623
45666
|
}, {
|
|
45624
45667
|
key: "handleFavorites",
|
|
45625
45668
|
value: function () {
|
|
45626
|
-
var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45669
|
+
var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(mode) {
|
|
45627
45670
|
var _this5 = this;
|
|
45628
45671
|
var set, i;
|
|
45629
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45630
|
-
while (1) switch (
|
|
45672
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
|
|
45673
|
+
while (1) switch (_context35.prev = _context35.next) {
|
|
45631
45674
|
case 0:
|
|
45632
45675
|
set = this.actSet();
|
|
45633
45676
|
i = 0;
|
|
45634
45677
|
case 2:
|
|
45635
45678
|
if (!favoritesHandlerInstance.IsCalcForSummary) {
|
|
45636
|
-
|
|
45679
|
+
_context35.next = 11;
|
|
45637
45680
|
break;
|
|
45638
45681
|
}
|
|
45639
|
-
|
|
45682
|
+
_context35.next = 5;
|
|
45640
45683
|
return DivaUtils__default["default"].Sleep(200);
|
|
45641
45684
|
case 5:
|
|
45642
45685
|
i++;
|
|
45643
45686
|
if (!(i > 1000)) {
|
|
45644
|
-
|
|
45687
|
+
_context35.next = 9;
|
|
45645
45688
|
break;
|
|
45646
45689
|
}
|
|
45647
45690
|
LOG$1.error(new DivaUtils.DivaError('error on generating Variants of Summary'));
|
|
45648
|
-
return
|
|
45691
|
+
return _context35.abrupt("break", 11);
|
|
45649
45692
|
case 9:
|
|
45650
|
-
|
|
45693
|
+
_context35.next = 2;
|
|
45651
45694
|
break;
|
|
45652
45695
|
case 11:
|
|
45653
|
-
|
|
45696
|
+
_context35.next = 13;
|
|
45654
45697
|
return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
|
|
45655
45698
|
return _this5.update2DGrid(set);
|
|
45656
45699
|
}, this.actions);
|
|
45657
45700
|
case 13:
|
|
45658
|
-
return
|
|
45701
|
+
return _context35.abrupt("return", _context35.sent);
|
|
45659
45702
|
case 14:
|
|
45660
45703
|
case "end":
|
|
45661
|
-
return
|
|
45704
|
+
return _context35.stop();
|
|
45662
45705
|
}
|
|
45663
|
-
},
|
|
45706
|
+
}, _callee35, this);
|
|
45664
45707
|
}));
|
|
45665
|
-
function handleFavorites(
|
|
45708
|
+
function handleFavorites(_x93) {
|
|
45666
45709
|
return _handleFavorites.apply(this, arguments);
|
|
45667
45710
|
}
|
|
45668
45711
|
return handleFavorites;
|
|
@@ -45675,48 +45718,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45675
45718
|
}, {
|
|
45676
45719
|
key: "initSapOrderLinesFromBasket",
|
|
45677
45720
|
value: function () {
|
|
45678
|
-
var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
45721
|
+
var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee36(divaNr, init3D, onlyLoadOldBakset) {
|
|
45679
45722
|
var result, oldBasket, basket;
|
|
45680
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
45681
|
-
while (1) switch (
|
|
45723
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee36$(_context36) {
|
|
45724
|
+
while (1) switch (_context36.prev = _context36.next) {
|
|
45682
45725
|
case 0:
|
|
45683
45726
|
if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
|
|
45684
|
-
|
|
45727
|
+
_context36.next = 3;
|
|
45685
45728
|
return this.loadBasket();
|
|
45686
45729
|
case 3:
|
|
45687
|
-
result =
|
|
45730
|
+
result = _context36.sent;
|
|
45688
45731
|
if (!onlyLoadOldBakset) {
|
|
45689
|
-
|
|
45732
|
+
_context36.next = 6;
|
|
45690
45733
|
break;
|
|
45691
45734
|
}
|
|
45692
|
-
return
|
|
45735
|
+
return _context36.abrupt("return", {
|
|
45693
45736
|
oldBasket: new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
|
|
45694
45737
|
cache: {}
|
|
45695
45738
|
});
|
|
45696
45739
|
case 6:
|
|
45697
45740
|
if (!(result === false)) {
|
|
45698
|
-
|
|
45741
|
+
_context36.next = 8;
|
|
45699
45742
|
break;
|
|
45700
45743
|
}
|
|
45701
45744
|
throw new Error('Could not load basket! ' + divaNr);
|
|
45702
45745
|
case 8:
|
|
45703
45746
|
oldBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
|
|
45704
|
-
|
|
45747
|
+
_context36.next = 11;
|
|
45705
45748
|
return this.initBasket(init3D);
|
|
45706
45749
|
case 11:
|
|
45707
|
-
basket =
|
|
45708
|
-
return
|
|
45750
|
+
basket = _context36.sent;
|
|
45751
|
+
return _context36.abrupt("return", {
|
|
45709
45752
|
basket: basket,
|
|
45710
45753
|
oldBasket: oldBasket,
|
|
45711
45754
|
cache: this.api.getJsonDataCache()
|
|
45712
45755
|
});
|
|
45713
45756
|
case 13:
|
|
45714
45757
|
case "end":
|
|
45715
|
-
return
|
|
45758
|
+
return _context36.stop();
|
|
45716
45759
|
}
|
|
45717
|
-
},
|
|
45760
|
+
}, _callee36, this);
|
|
45718
45761
|
}));
|
|
45719
|
-
function initSapOrderLinesFromBasket(
|
|
45762
|
+
function initSapOrderLinesFromBasket(_x94, _x95, _x96) {
|
|
45720
45763
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
45721
45764
|
}
|
|
45722
45765
|
return initSapOrderLinesFromBasket;
|