@crystaldesign/web-planner-logic 25.14.0-beta.2 → 25.14.0-beta.21
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-1b90896a.js → DivaBoxPlanner-1b528aea.js} +489 -265
- package/build/cjs/{DivaStandardPlanner-816f7344.js → DivaStandardPlanner-be62d50f.js} +4 -3
- package/build/cjs/{DoorPlanner-b5c5993b.js → DoorPlanner-52a515db.js} +1 -1
- package/build/cjs/{Host3DSignalR-6bbb3036.js → Host3DSignalR-c5fa8d61.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-69df31a9.js → LiviqueWWSHandler-7692cac0.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-c15ee67a.js → PfisterWWSHandler-af5d982f.js} +1 -1
- package/build/cjs/{PlannerHandler2D-2f00b260.js → PlannerHandler2D-cf080fd5.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-f2a7887a.js → SeriousBasketHandler-05ef0a50.js} +1 -1
- package/build/cjs/{ShelfPlanner-613aae50.js → ShelfPlanner-aa6fa9ae.js} +1 -1
- package/build/cjs/{StandardWWSHandler-71564218.js → StandardWWSHandler-0a959dd8.js} +1 -1
- package/build/cjs/{index-f1a70eb3.js → index-83dfa5ef.js} +186 -151
- package/build/cjs/index.js +1 -3
- package/build/esm/{DivaBoxPlanner-c3688dbb.js → DivaBoxPlanner-68835bff.js} +488 -265
- package/build/esm/{DivaStandardPlanner-5908d45b.js → DivaStandardPlanner-edab8611.js} +4 -3
- package/build/esm/{DoorPlanner-63d43d9b.js → DoorPlanner-d243c8a2.js} +1 -1
- package/build/esm/{Host3DSignalR-e0fd5c5e.js → Host3DSignalR-2ac24936.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-aa489385.js → LiviqueWWSHandler-9e3829b9.js} +1 -1
- package/build/esm/{PfisterWWSHandler-88f3bc2f.js → PfisterWWSHandler-5d99b08c.js} +1 -1
- package/build/esm/{PlannerHandler2D-43910df5.js → PlannerHandler2D-6aa7326e.js} +1 -1
- package/build/esm/{SeriousBasketHandler-6a8f0e2d.js → SeriousBasketHandler-e47f2d8c.js} +1 -1
- package/build/esm/{ShelfPlanner-e548f714.js → ShelfPlanner-e187be95.js} +1 -1
- package/build/esm/{StandardWWSHandler-f2e16ec1.js → StandardWWSHandler-ee22c3f6.js} +1 -1
- package/build/esm/{index-14f79ee4.js → index-07df9d4d.js} +187 -150
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +0 -1
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts +0 -2
- package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +3 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -1
- 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 +4 -4
- 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 +1 -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.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +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/Options/ArticleOptionData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -61,6 +61,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
61
61
|
_defineProperty(this, "jwt", void 0);
|
|
62
62
|
_defineProperty(this, "apiKey", void 0);
|
|
63
63
|
_defineProperty(this, "actions", void 0);
|
|
64
|
+
_defineProperty(this, "state", void 0);
|
|
64
65
|
_defineProperty(this, "i18n", void 0);
|
|
65
66
|
_defineProperty(this, "getSessionGuid", void 0);
|
|
66
67
|
_defineProperty(this, "useEkPrices", false);
|
|
@@ -729,6 +730,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
729
730
|
value: function setActions(actions) {
|
|
730
731
|
this.actions = actions;
|
|
731
732
|
}
|
|
733
|
+
}, {
|
|
734
|
+
key: "setState",
|
|
735
|
+
value: function setState(state) {
|
|
736
|
+
this.state = state;
|
|
737
|
+
}
|
|
732
738
|
}, {
|
|
733
739
|
key: "getI18n",
|
|
734
740
|
value: function getI18n() {
|
|
@@ -739,7 +745,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
739
745
|
key: "setAccountSessionGuid",
|
|
740
746
|
value: function () {
|
|
741
747
|
var _setAccountSessionGuid = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(_ref) {
|
|
742
|
-
var os, accountGuid, catalogGuid, response, _this$actions;
|
|
748
|
+
var os, accountGuid, catalogGuid, response, _this$actions, _this$state$navigatio, _this$state;
|
|
743
749
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
744
750
|
while (1) switch (_context5.prev = _context5.next) {
|
|
745
751
|
case 0:
|
|
@@ -778,7 +784,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
778
784
|
break;
|
|
779
785
|
case 16:
|
|
780
786
|
if (this.applicationEnvironment == 'SELLER') {
|
|
781
|
-
(_this$actions = this.actions) === null || _this$actions === void 0 || _this$actions.openComponent({
|
|
787
|
+
(_this$actions = this.actions) === null || _this$actions === void 0 || _this$actions.openComponent((_this$state$navigatio = (_this$state = this.state) === null || _this$state === void 0 || (_this$state = _this$state.navigationConfiguration) === null || _this$state === void 0 ? void 0 : _this$state.logoAction) !== null && _this$state$navigatio !== void 0 ? _this$state$navigatio : {
|
|
782
788
|
type: 'SELLER',
|
|
783
789
|
parameters: {
|
|
784
790
|
module: 'Collections'
|
|
@@ -1097,7 +1103,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1097
1103
|
value: function getIDMItems(catalogId, serieId, typeNos) {
|
|
1098
1104
|
return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
|
|
1099
1105
|
return encodeURIComponent('typeNo==' + t);
|
|
1100
|
-
}).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');
|
|
1106
|
+
}).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;avrFilter;avlFilter');
|
|
1101
1107
|
}
|
|
1102
1108
|
}, {
|
|
1103
1109
|
key: "getIDMItem",
|
|
@@ -18071,7 +18077,9 @@ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
|
|
|
18071
18077
|
function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
|
|
18072
18078
|
return properties.filter(function (p) {
|
|
18073
18079
|
var _p$featureNos2, _p$optionKeys2;
|
|
18074
|
-
return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0
|
|
18080
|
+
return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0 || (_p$optionKeys2 = _p$optionKeys2.map(function (o) {
|
|
18081
|
+
return o.startsWith('OPV') ? o : 'OPV' + o;
|
|
18082
|
+
})) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
|
|
18075
18083
|
}).map(function (p) {
|
|
18076
18084
|
return {
|
|
18077
18085
|
Value: DivaUtils.getLocals(p.value, lang),
|
|
@@ -18661,15 +18669,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
|
|
|
18661
18669
|
key: "hasImages",
|
|
18662
18670
|
get: function get() {
|
|
18663
18671
|
if (this.opt.hasImages === undefined) {
|
|
18664
|
-
var _this$opt$
|
|
18665
|
-
|
|
18666
|
-
|
|
18667
|
-
|
|
18668
|
-
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18672
|
-
|
|
18672
|
+
var _this$opt$catalogOPT$;
|
|
18673
|
+
if (this.opt.catalogOPT.layout == 'IMAGE' || (_this$opt$catalogOPT$ = this.opt.catalogOPT.layout) !== null && _this$opt$catalogOPT$ !== void 0 && _this$opt$catalogOPT$.includes('GAL')) {
|
|
18674
|
+
this.opt.hasImages = true;
|
|
18675
|
+
} else {
|
|
18676
|
+
var _this$opt$articleOpti, _this$opt$articleOpti2;
|
|
18677
|
+
var opvs = Array.from((_this$opt$articleOpti = (_this$opt$articleOpti2 = this.opt.articleOptionValues) === null || _this$opt$articleOpti2 === void 0 ? void 0 : _this$opt$articleOpti2.values()) !== null && _this$opt$articleOpti !== void 0 ? _this$opt$articleOpti : []);
|
|
18678
|
+
if (opvs.length > 0) {
|
|
18679
|
+
this.opt.hasImages = opvs.some(function (v) {
|
|
18680
|
+
var _v$articleOptionValue;
|
|
18681
|
+
return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 || (_v$articleOptionValue = _v$articleOptionValue.values()) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.some(function (v) {
|
|
18682
|
+
return v.hasImages;
|
|
18683
|
+
}));
|
|
18684
|
+
});
|
|
18685
|
+
}
|
|
18673
18686
|
}
|
|
18674
18687
|
}
|
|
18675
18688
|
return this.opt.hasImages;
|
|
@@ -20149,15 +20162,24 @@ function mapProp() {
|
|
|
20149
20162
|
});
|
|
20150
20163
|
}
|
|
20151
20164
|
function getCatalogPlanner(article, catalogArticle) {
|
|
20152
|
-
var
|
|
20165
|
+
var _article$avlFilter, _article$avrFilter, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6, _catalogArticle$svgs;
|
|
20153
20166
|
return {
|
|
20154
20167
|
articleCodex: article.typeNo,
|
|
20155
|
-
avlFilter: [],
|
|
20156
|
-
avrFilter: [],
|
|
20157
20168
|
basePrice: 0,
|
|
20158
20169
|
catalogArticle: catalogArticle,
|
|
20159
20170
|
id: Number(article.typeKey),
|
|
20160
20171
|
isArticleRelation: false,
|
|
20172
|
+
avlFilter: (_article$avlFilter = article.avlFilter) !== null && _article$avlFilter !== void 0 ? _article$avlFilter : [],
|
|
20173
|
+
avrFilter: (_article$avrFilter = article.avrFilter) !== null && _article$avrFilter !== void 0 ? _article$avrFilter : [],
|
|
20174
|
+
articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
|
|
20175
|
+
articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
|
|
20176
|
+
articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
|
|
20177
|
+
articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
|
|
20178
|
+
articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
|
|
20179
|
+
articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
|
|
20180
|
+
articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
|
|
20181
|
+
articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
|
|
20182
|
+
articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
|
|
20161
20183
|
//TODO fill all these infos when implemented in backend
|
|
20162
20184
|
topAVC: 0,
|
|
20163
20185
|
topAVN: 0,
|
|
@@ -20168,15 +20190,6 @@ function getCatalogPlanner(article, catalogArticle) {
|
|
|
20168
20190
|
topHasAVR: false,
|
|
20169
20191
|
topSvg: (_catalogArticle$svgs = catalogArticle.svgs) === null || _catalogArticle$svgs === void 0 || (_catalogArticle$svgs = _catalogArticle$svgs[0]) === null || _catalogArticle$svgs === void 0 ? void 0 : _catalogArticle$svgs.url,
|
|
20170
20192
|
topLayer: 30,
|
|
20171
|
-
articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
|
|
20172
|
-
articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
|
|
20173
|
-
articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
|
|
20174
|
-
articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
|
|
20175
|
-
articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
|
|
20176
|
-
articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
|
|
20177
|
-
articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
|
|
20178
|
-
articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
|
|
20179
|
-
articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
|
|
20180
20193
|
filterType: 'DockNone'
|
|
20181
20194
|
};
|
|
20182
20195
|
}
|
|
@@ -20205,7 +20218,16 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
|
|
|
20205
20218
|
price: catPlanArticle.basePrice,
|
|
20206
20219
|
svgSrc: (_catPlanArticle$svgs = catPlanArticle.svgs) === null || _catPlanArticle$svgs === void 0 || (_catPlanArticle$svgs = _catPlanArticle$svgs[0]) === null || _catPlanArticle$svgs === void 0 ? void 0 : _catPlanArticle$svgs.url,
|
|
20207
20220
|
title: catPlanArticle.name,
|
|
20208
|
-
typeNr: catPlanArticle.typeNr
|
|
20221
|
+
typeNr: catPlanArticle.typeNr,
|
|
20222
|
+
width: catPlanArticle.articleSizeX,
|
|
20223
|
+
height: catPlanArticle.articleSizeZ,
|
|
20224
|
+
depth: catPlanArticle.articleSizeY,
|
|
20225
|
+
widthFrom: catPlanArticle.articleSizeXFrom,
|
|
20226
|
+
heightFrom: catPlanArticle.articleSizeZFrom,
|
|
20227
|
+
depthFrom: catPlanArticle.articleSizeYFrom,
|
|
20228
|
+
widthTo: catPlanArticle.articleSizeXTo,
|
|
20229
|
+
heightTo: catPlanArticle.articleSizeZTo,
|
|
20230
|
+
depthTo: catPlanArticle.articleSizeYTo
|
|
20209
20231
|
});
|
|
20210
20232
|
}
|
|
20211
20233
|
|
|
@@ -20347,6 +20369,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
20347
20369
|
// jegliche artikle Realtions welche von den Daten kommen werden ignoriert
|
|
20348
20370
|
repairVariantValues: undefined,
|
|
20349
20371
|
// Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
|
|
20372
|
+
filterForCheckoutButtons: [],
|
|
20373
|
+
// Array von Keys welche im Checkout Buttons gefiltert werden
|
|
20350
20374
|
showPricePreviewOnlyOnOptions: [],
|
|
20351
20375
|
hidePricePreviewOnlyOnOptions: [],
|
|
20352
20376
|
forceConfigSingle: false,
|
|
@@ -21148,6 +21172,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21148
21172
|
get: function get() {
|
|
21149
21173
|
return this.catalogProps.headerDimensionIds;
|
|
21150
21174
|
}
|
|
21175
|
+
}, {
|
|
21176
|
+
key: "filterForCheckoutButtons",
|
|
21177
|
+
get: function get() {
|
|
21178
|
+
return this.catalogProps.filterForCheckoutButtons;
|
|
21179
|
+
}
|
|
21151
21180
|
}, {
|
|
21152
21181
|
key: "discountPercentage",
|
|
21153
21182
|
get: function get() {
|
|
@@ -21521,6 +21550,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
21521
21550
|
_this5.catalogProps.repairVariantValues['OPT' + vals[0].replace(':', ':OPV')] = 'OPT' + vals[1].replace(':', ':OPV');
|
|
21522
21551
|
}
|
|
21523
21552
|
break;
|
|
21553
|
+
case 'FILTER_FOR_CHECKOUT_BUTTONS':
|
|
21554
|
+
_this5.catalogProps.filterForCheckoutButtons = item.Value.split(';').map(function (t) {
|
|
21555
|
+
return t;
|
|
21556
|
+
});
|
|
21557
|
+
break;
|
|
21524
21558
|
case 'DO_USE_RULEDESC_FOR_PARTLIST':
|
|
21525
21559
|
_this5.catalogProps.doUseRuleDescForPartListArticles = '1' == item.Value;
|
|
21526
21560
|
break;
|
|
@@ -22977,7 +23011,7 @@ var DivaEngine = /*#__PURE__*/function () {
|
|
|
22977
23011
|
return ops.optionCodex == iKey;
|
|
22978
23012
|
});
|
|
22979
23013
|
if (_ops !== null && _ops !== void 0 && _ops.valCodex) {
|
|
22980
|
-
var foundItem = _this.article.checkOptionAndOptionValue(
|
|
23014
|
+
var foundItem = _this.article.checkOptionAndOptionValue(OP, _ops.valCodex);
|
|
22981
23015
|
if ((foundItem === null || foundItem === void 0 ? void 0 : foundItem.opv) instanceof ArticleOptionValueData) {
|
|
22982
23016
|
if (_ops.visibleOptionValues.get(foundItem.opv.codex) || _ops.visibleOptionValues.get(foundItem.opv.parentCodex)) {
|
|
22983
23017
|
myItem = foundItem.opv;
|
|
@@ -28682,7 +28716,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28682
28716
|
break;
|
|
28683
28717
|
}
|
|
28684
28718
|
_context.next = 4;
|
|
28685
|
-
return import('./ShelfPlanner-
|
|
28719
|
+
return import('./ShelfPlanner-e187be95.js');
|
|
28686
28720
|
case 4:
|
|
28687
28721
|
_yield$import = _context.sent;
|
|
28688
28722
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -33328,7 +33362,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
33328
33362
|
break;
|
|
33329
33363
|
}
|
|
33330
33364
|
_context5.next = 3;
|
|
33331
|
-
return import('./DoorPlanner-
|
|
33365
|
+
return import('./DoorPlanner-d243c8a2.js');
|
|
33332
33366
|
case 3:
|
|
33333
33367
|
_yield$import = _context5.sent;
|
|
33334
33368
|
DoorPlanner = _yield$import["default"];
|
|
@@ -36209,7 +36243,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36209
36243
|
return _context2.abrupt("return", 1);
|
|
36210
36244
|
case 3:
|
|
36211
36245
|
if (!orderline.IsPartlistArticle) {
|
|
36212
|
-
variantValues = catalogData.repairVariantValues(orderline.getVariantValues(), orderline.ArticleCodex);
|
|
36246
|
+
variantValues = catalogData.repairVariantValues(orderline.getVariantValues(set.CatalogData.isIDMFormat), orderline.ArticleCodex);
|
|
36213
36247
|
toLoadArticles.push({
|
|
36214
36248
|
catalogCodex: catalogData.catalogCodex,
|
|
36215
36249
|
articleCodex: orderline.ArticleCodex,
|
|
@@ -36751,10 +36785,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
36751
36785
|
return _regeneratorRuntime.wrap(function _callee7$(_context9) {
|
|
36752
36786
|
while (1) switch (_context9.prev = _context9.next) {
|
|
36753
36787
|
case 0:
|
|
36754
|
-
|
|
36755
|
-
_context9.next = 3;
|
|
36788
|
+
_context9.next = 2;
|
|
36756
36789
|
return set.plannerHandler.movePlannerElements(set.getSetId(), elementId, absoluteMoveIndex);
|
|
36757
|
-
case
|
|
36790
|
+
case 2:
|
|
36758
36791
|
case "end":
|
|
36759
36792
|
return _context9.stop();
|
|
36760
36793
|
}
|
|
@@ -38415,7 +38448,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38415
38448
|
value: (function () {
|
|
38416
38449
|
var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
|
|
38417
38450
|
var _resultPlannerUpdate;
|
|
38418
|
-
var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
|
|
38451
|
+
var elementsToDeleteById, targetArticlesToUpdateOnly, previousValues, articles, article, optState, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
|
|
38419
38452
|
return _regeneratorRuntime.wrap(function _callee28$(_context30) {
|
|
38420
38453
|
while (1) switch (_context30.prev = _context30.next) {
|
|
38421
38454
|
case 0:
|
|
@@ -38429,50 +38462,66 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38429
38462
|
} else {
|
|
38430
38463
|
targetArticlesToUpdateOnly = targetArticlesWithNewValues;
|
|
38431
38464
|
}
|
|
38432
|
-
|
|
38465
|
+
previousValues = {};
|
|
38466
|
+
articles = set.getDivaArticles();
|
|
38467
|
+
if (articles && targetArticlesWithNewValues && targetArticlesWithNewValues.length > 0 && myValues) {
|
|
38468
|
+
article = articles[targetArticlesWithNewValues[0]];
|
|
38469
|
+
optState = article === null || article === void 0 ? void 0 : article.getArticleJsonVariantValues();
|
|
38470
|
+
Object.keys(myValues).forEach(function (key) {
|
|
38471
|
+
if (optState && optState[key]) previousValues[key] = optState[key];
|
|
38472
|
+
});
|
|
38473
|
+
}
|
|
38474
|
+
_context30.next = 8;
|
|
38433
38475
|
return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
|
|
38434
|
-
case
|
|
38476
|
+
case 8:
|
|
38435
38477
|
retValues = _context30.sent;
|
|
38436
38478
|
targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
|
|
38437
38479
|
if (!(retValues.partlistArticlesToLoad.length > 0)) {
|
|
38438
|
-
_context30.next =
|
|
38480
|
+
_context30.next = 19;
|
|
38439
38481
|
break;
|
|
38440
38482
|
}
|
|
38441
38483
|
diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
|
|
38442
38484
|
if (!(diff == 0 || partlistDiff == diff)) {
|
|
38443
|
-
_context30.next =
|
|
38485
|
+
_context30.next = 17;
|
|
38444
38486
|
break;
|
|
38445
38487
|
}
|
|
38446
|
-
_context30.next =
|
|
38488
|
+
_context30.next = 15;
|
|
38447
38489
|
return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
|
|
38448
38490
|
doChange: false
|
|
38449
38491
|
});
|
|
38450
|
-
case
|
|
38451
|
-
_context30.next =
|
|
38492
|
+
case 15:
|
|
38493
|
+
_context30.next = 19;
|
|
38452
38494
|
break;
|
|
38453
|
-
case
|
|
38454
|
-
_context30.next =
|
|
38495
|
+
case 17:
|
|
38496
|
+
_context30.next = 19;
|
|
38455
38497
|
return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
|
|
38456
|
-
case
|
|
38498
|
+
case 19:
|
|
38457
38499
|
if (!(from !== 'initializingPartlist')) {
|
|
38458
|
-
_context30.next =
|
|
38500
|
+
_context30.next = 22;
|
|
38459
38501
|
break;
|
|
38460
38502
|
}
|
|
38461
|
-
_context30.next =
|
|
38503
|
+
_context30.next = 22;
|
|
38462
38504
|
return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
|
|
38463
|
-
case
|
|
38505
|
+
case 22:
|
|
38464
38506
|
if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
|
|
38465
38507
|
|
|
38466
38508
|
//Update Planner - check if planner data changed
|
|
38467
38509
|
if (!(!ignorePlanner && from != 'calcVariant')) {
|
|
38468
|
-
_context30.next =
|
|
38510
|
+
_context30.next = 64;
|
|
38469
38511
|
break;
|
|
38470
38512
|
}
|
|
38471
38513
|
targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
|
|
38472
|
-
_context30.next =
|
|
38514
|
+
_context30.next = 27;
|
|
38473
38515
|
return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
|
|
38474
|
-
case
|
|
38516
|
+
case 27:
|
|
38475
38517
|
resultPlannerUpdate = _context30.sent;
|
|
38518
|
+
if (!resultPlannerUpdate.failed) {
|
|
38519
|
+
_context30.next = 31;
|
|
38520
|
+
break;
|
|
38521
|
+
}
|
|
38522
|
+
_context30.next = 31;
|
|
38523
|
+
return articleHandlerInstance.updateArticlesOptionStates(previousValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
|
|
38524
|
+
case 31:
|
|
38476
38525
|
elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
|
|
38477
38526
|
for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
|
|
38478
38527
|
articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
|
|
@@ -38482,55 +38531,55 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38482
38531
|
}
|
|
38483
38532
|
}
|
|
38484
38533
|
if (!resultPlannerUpdate.doDeleteBackGrid) {
|
|
38485
|
-
_context30.next =
|
|
38534
|
+
_context30.next = 40;
|
|
38486
38535
|
break;
|
|
38487
38536
|
}
|
|
38488
|
-
_context30.next =
|
|
38537
|
+
_context30.next = 36;
|
|
38489
38538
|
return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
|
|
38490
|
-
case
|
|
38539
|
+
case 36:
|
|
38491
38540
|
result = _context30.sent;
|
|
38492
38541
|
//Others are deleted recursive
|
|
38493
38542
|
if (result.selectElementId) {
|
|
38494
38543
|
resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
|
|
38495
38544
|
}
|
|
38496
|
-
_context30.next =
|
|
38545
|
+
_context30.next = 47;
|
|
38497
38546
|
break;
|
|
38498
|
-
case
|
|
38547
|
+
case 40:
|
|
38499
38548
|
i = 0;
|
|
38500
|
-
case
|
|
38549
|
+
case 41:
|
|
38501
38550
|
if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
|
|
38502
|
-
_context30.next =
|
|
38551
|
+
_context30.next = 47;
|
|
38503
38552
|
break;
|
|
38504
38553
|
}
|
|
38505
|
-
_context30.next =
|
|
38554
|
+
_context30.next = 44;
|
|
38506
38555
|
return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
|
|
38507
|
-
case
|
|
38556
|
+
case 44:
|
|
38508
38557
|
i++;
|
|
38509
|
-
_context30.next =
|
|
38558
|
+
_context30.next = 41;
|
|
38510
38559
|
break;
|
|
38511
|
-
case
|
|
38560
|
+
case 47:
|
|
38512
38561
|
if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
|
|
38513
|
-
_context30.next =
|
|
38562
|
+
_context30.next = 63;
|
|
38514
38563
|
break;
|
|
38515
38564
|
}
|
|
38516
38565
|
//Todo copy these elements
|
|
38517
38566
|
articleCopyRelation = new Map();
|
|
38518
38567
|
i = 0;
|
|
38519
|
-
case
|
|
38568
|
+
case 50:
|
|
38520
38569
|
if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
|
|
38521
|
-
_context30.next =
|
|
38570
|
+
_context30.next = 58;
|
|
38522
38571
|
break;
|
|
38523
38572
|
}
|
|
38524
|
-
_context30.next =
|
|
38573
|
+
_context30.next = 53;
|
|
38525
38574
|
return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
|
|
38526
|
-
case
|
|
38575
|
+
case 53:
|
|
38527
38576
|
newArticle = _context30.sent;
|
|
38528
38577
|
articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
|
|
38529
|
-
case
|
|
38578
|
+
case 55:
|
|
38530
38579
|
i++;
|
|
38531
|
-
_context30.next =
|
|
38580
|
+
_context30.next = 50;
|
|
38532
38581
|
break;
|
|
38533
|
-
case
|
|
38582
|
+
case 58:
|
|
38534
38583
|
rpu = resultPlannerUpdate;
|
|
38535
38584
|
copyIndex = {
|
|
38536
38585
|
x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
|
|
@@ -38538,25 +38587,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
38538
38587
|
z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
|
|
38539
38588
|
};
|
|
38540
38589
|
if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
|
|
38541
|
-
_context30.next =
|
|
38590
|
+
_context30.next = 63;
|
|
38542
38591
|
break;
|
|
38543
38592
|
}
|
|
38544
|
-
_context30.next =
|
|
38593
|
+
_context30.next = 63;
|
|
38545
38594
|
return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
|
|
38546
38595
|
copyIndex: copyIndex,
|
|
38547
38596
|
copyType: resultPlannerUpdate.copyType,
|
|
38548
38597
|
changedOPT: resultPlannerUpdate.changedOPT,
|
|
38549
38598
|
targetElements: resultPlannerUpdate.targetElements
|
|
38550
38599
|
});
|
|
38551
|
-
case
|
|
38600
|
+
case 63:
|
|
38552
38601
|
this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
|
|
38553
|
-
case
|
|
38602
|
+
case 64:
|
|
38554
38603
|
return _context30.abrupt("return", {
|
|
38555
38604
|
articleCountChanged: elementsToDeleteById.length > 0,
|
|
38556
38605
|
elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
|
|
38557
38606
|
setId: set.getSetId()
|
|
38558
38607
|
});
|
|
38559
|
-
case
|
|
38608
|
+
case 65:
|
|
38560
38609
|
case "end":
|
|
38561
38610
|
return _context30.stop();
|
|
38562
38611
|
}
|
|
@@ -39086,7 +39135,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
39086
39135
|
BasketModelDesc: catalogData.longDescription,
|
|
39087
39136
|
BasketModelDesc_locales: catalogData.longDescription_locales,
|
|
39088
39137
|
CatalogCodex: catalogData.catalogCodex,
|
|
39089
|
-
SerieId: catalogData.isIDMFormat ? catalogData.
|
|
39138
|
+
SerieId: catalogData.isIDMFormat ? catalogData.serieId : undefined,
|
|
39090
39139
|
CatalogName: catalogData.origCatalogName,
|
|
39091
39140
|
CatalogName_locales: catalogData.name_locales,
|
|
39092
39141
|
CatalogOfflineVersion: catalogData.offlineVersion,
|
|
@@ -40501,7 +40550,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40501
40550
|
break;
|
|
40502
40551
|
case 3:
|
|
40503
40552
|
_context12.next = 5;
|
|
40504
|
-
return import('./PfisterWWSHandler-
|
|
40553
|
+
return import('./PfisterWWSHandler-5d99b08c.js');
|
|
40505
40554
|
case 5:
|
|
40506
40555
|
_yield$import = _context12.sent;
|
|
40507
40556
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -40509,7 +40558,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40509
40558
|
return _context12.abrupt("break", 27);
|
|
40510
40559
|
case 9:
|
|
40511
40560
|
_context12.next = 11;
|
|
40512
|
-
return import('./LiviqueWWSHandler-
|
|
40561
|
+
return import('./LiviqueWWSHandler-9e3829b9.js');
|
|
40513
40562
|
case 11:
|
|
40514
40563
|
_yield$import2 = _context12.sent;
|
|
40515
40564
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -40517,7 +40566,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40517
40566
|
return _context12.abrupt("break", 27);
|
|
40518
40567
|
case 15:
|
|
40519
40568
|
_context12.next = 17;
|
|
40520
|
-
return import('./SeriousBasketHandler-
|
|
40569
|
+
return import('./SeriousBasketHandler-e47f2d8c.js');
|
|
40521
40570
|
case 17:
|
|
40522
40571
|
_yield$import3 = _context12.sent;
|
|
40523
40572
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -40525,7 +40574,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
40525
40574
|
return _context12.abrupt("break", 27);
|
|
40526
40575
|
case 21:
|
|
40527
40576
|
_context12.next = 23;
|
|
40528
|
-
return import('./StandardWWSHandler-
|
|
40577
|
+
return import('./StandardWWSHandler-ee22c3f6.js');
|
|
40529
40578
|
case 23:
|
|
40530
40579
|
_yield$import4 = _context12.sent;
|
|
40531
40580
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -41949,7 +41998,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
41949
41998
|
while (1) switch (_context3.prev = _context3.next) {
|
|
41950
41999
|
case 0:
|
|
41951
42000
|
_context3.next = 2;
|
|
41952
|
-
return import('./Host3DSignalR-
|
|
42001
|
+
return import('./Host3DSignalR-2ac24936.js');
|
|
41953
42002
|
case 2:
|
|
41954
42003
|
_yield$import = _context3.sent;
|
|
41955
42004
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -43475,7 +43524,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43475
43524
|
key: "updatePlanner",
|
|
43476
43525
|
value: (function () {
|
|
43477
43526
|
var _updatePlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(setId, changedOPT, targetElementIds) {
|
|
43478
|
-
var
|
|
43527
|
+
var _this$plannerHandlerF, _this$plannerHandlerF2;
|
|
43528
|
+
var result;
|
|
43479
43529
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
43480
43530
|
while (1) switch (_context2.prev = _context2.next) {
|
|
43481
43531
|
case 0:
|
|
@@ -43485,7 +43535,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43485
43535
|
}
|
|
43486
43536
|
return _context2.abrupt("return", {
|
|
43487
43537
|
elemIdsToDelete: [],
|
|
43488
|
-
doDeleteBackGrid: false
|
|
43538
|
+
doDeleteBackGrid: false,
|
|
43539
|
+
failed: false
|
|
43489
43540
|
});
|
|
43490
43541
|
case 2:
|
|
43491
43542
|
//Nothing changes, so do nothing
|
|
@@ -43494,9 +43545,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43494
43545
|
return this.plannerList.get(setId).updatePlanner(changedOPT, targetElementIds);
|
|
43495
43546
|
case 5:
|
|
43496
43547
|
result = _context2.sent;
|
|
43497
|
-
if (result.viewMessageCodex && result.viewMessageCodex != '')
|
|
43498
|
-
(_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
|
|
43499
|
-
}
|
|
43548
|
+
if (result.viewMessageCodex && result.viewMessageCodex != '') (_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
|
|
43500
43549
|
this.setPlannerHandler.updateSetPosNr(this.plannerList);
|
|
43501
43550
|
DivaUtils.endSpanOfApm('DivaPlannerHandler updatePlanner');
|
|
43502
43551
|
return _context2.abrupt("return", result);
|
|
@@ -43607,7 +43656,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43607
43656
|
break;
|
|
43608
43657
|
case 8:
|
|
43609
43658
|
_context4.next = 10;
|
|
43610
|
-
return import('./DivaStandardPlanner-
|
|
43659
|
+
return import('./DivaStandardPlanner-edab8611.js');
|
|
43611
43660
|
case 10:
|
|
43612
43661
|
_yield$import = _context4.sent;
|
|
43613
43662
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -43618,7 +43667,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
43618
43667
|
return _context4.abrupt("break", 21);
|
|
43619
43668
|
case 15:
|
|
43620
43669
|
_context4.next = 17;
|
|
43621
|
-
return import('./DivaBoxPlanner-
|
|
43670
|
+
return import('./DivaBoxPlanner-68835bff.js');
|
|
43622
43671
|
case 17:
|
|
43623
43672
|
_yield$import2 = _context4.sent;
|
|
43624
43673
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -45069,7 +45118,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45069
45118
|
retVal = _context5.sent;
|
|
45070
45119
|
(_this$actions10 = _this.actions) === null || _this$actions10 === void 0 || (_this$actions10$toggl = _this$actions10.toggleLoading) === null || _this$actions10$toggl === void 0 || _this$actions10$toggl.call(_this$actions10, 'LoadingArticle', false, false);
|
|
45071
45120
|
if (retVal !== false) {
|
|
45072
|
-
_this.loadShelfPlannerItems(paletteId, configStepKey, '
|
|
45121
|
+
_this.loadShelfPlannerItems(paletteId, configStepKey, 'add_accessoire');
|
|
45073
45122
|
_this.updateConfigStructure();
|
|
45074
45123
|
_this.updatePriceInView();
|
|
45075
45124
|
_this.updateViewButtonsDependigOnConfigStructure();
|
|
@@ -45463,6 +45512,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45463
45512
|
this.api = new DivaApiHandler(this.plannerConfig, this.handler);
|
|
45464
45513
|
this.api.setI18n(this.i18n);
|
|
45465
45514
|
this.api.setActions(this.actions);
|
|
45515
|
+
this.api.setState(this.state);
|
|
45466
45516
|
this.ReturnTo = this.plannerConfig.returnTo;
|
|
45467
45517
|
LOG$1.startTransaction({
|
|
45468
45518
|
event: 'onInitializeConfigurator',
|
|
@@ -45471,26 +45521,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45471
45521
|
warningTime: 2000,
|
|
45472
45522
|
errorTime: 4000
|
|
45473
45523
|
});
|
|
45474
|
-
_context14.next =
|
|
45524
|
+
_context14.next = 8;
|
|
45475
45525
|
return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
|
|
45476
|
-
case
|
|
45526
|
+
case 8:
|
|
45477
45527
|
this.plannerHandler = new DivaPlannerHandler(false);
|
|
45478
45528
|
viewReadyPromise = this.initViewApiDependencies();
|
|
45479
|
-
_context14.next =
|
|
45529
|
+
_context14.next = 12;
|
|
45480
45530
|
return this.divaBasketHandler.initializeBasket(this.api);
|
|
45481
|
-
case
|
|
45531
|
+
case 12:
|
|
45482
45532
|
loadSuccessful = _context14.sent;
|
|
45483
45533
|
if (this.plannerConfig.configuratorSessionId === undefined && (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils.businessMetrics.getConfiguratorSessionId() === undefined)) {
|
|
45484
45534
|
DivaUtils.businessMetrics.setConfiguratorSessionId();
|
|
45485
45535
|
}
|
|
45486
45536
|
if (!loadSuccessful) {
|
|
45487
|
-
_context14.next =
|
|
45537
|
+
_context14.next = 31;
|
|
45488
45538
|
break;
|
|
45489
45539
|
}
|
|
45490
|
-
_context14.prev =
|
|
45491
|
-
_context14.next =
|
|
45540
|
+
_context14.prev = 15;
|
|
45541
|
+
_context14.next = 18;
|
|
45492
45542
|
return this.initializeSets(loadSuccessful, viewReadyPromise);
|
|
45493
|
-
case
|
|
45543
|
+
case 18:
|
|
45494
45544
|
ret = _context14.sent;
|
|
45495
45545
|
set = this.actSet();
|
|
45496
45546
|
if (ret && set && set.CatalogData.archived) {
|
|
@@ -45501,25 +45551,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
45501
45551
|
});
|
|
45502
45552
|
}
|
|
45503
45553
|
return _context14.abrupt("return", ret);
|
|
45504
|
-
case
|
|
45505
|
-
_context14.prev =
|
|
45506
|
-
_context14.t0 = _context14["catch"](
|
|
45554
|
+
case 24:
|
|
45555
|
+
_context14.prev = 24;
|
|
45556
|
+
_context14.t0 = _context14["catch"](15);
|
|
45507
45557
|
LOG$1.error(_context14.t0);
|
|
45508
45558
|
this.onInitializationError(_context14.t0);
|
|
45509
45559
|
return _context14.abrupt("return", false);
|
|
45510
|
-
case
|
|
45511
|
-
_context14.next =
|
|
45560
|
+
case 29:
|
|
45561
|
+
_context14.next = 34;
|
|
45512
45562
|
break;
|
|
45513
|
-
case
|
|
45563
|
+
case 31:
|
|
45514
45564
|
this.onInitializationError();
|
|
45515
45565
|
//fehler beim laden vom basket..
|
|
45516
45566
|
LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
|
|
45517
45567
|
return _context14.abrupt("return", false);
|
|
45518
|
-
case
|
|
45568
|
+
case 34:
|
|
45519
45569
|
case "end":
|
|
45520
45570
|
return _context14.stop();
|
|
45521
45571
|
}
|
|
45522
|
-
}, _callee14, this, [[
|
|
45572
|
+
}, _callee14, this, [[15, 24]]);
|
|
45523
45573
|
}));
|
|
45524
45574
|
function initialize() {
|
|
45525
45575
|
return _initialize.apply(this, arguments);
|
|
@@ -46079,7 +46129,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46079
46129
|
if (!curPlannerViewMode) return;
|
|
46080
46130
|
LOG$1.debug('updatePlannerView in mode: ' + curPlannerViewMode + '; called from ' + callingFrom);
|
|
46081
46131
|
//delete me if you see this
|
|
46082
|
-
|
|
46132
|
+
|
|
46083
46133
|
switch (curPlannerViewMode) {
|
|
46084
46134
|
case '3DCOMB':
|
|
46085
46135
|
setHandlerInstance.update3DPlannerView(true, !hybridInfo || hybridInfo && hybridInfo.focus.adjustZoomInUnity, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$getDoShow3DDime2 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime2 === void 0 ? void 0 : _this$getDoShow3DDime2.call(this), alternateRenderInfo, hybridInfo ? {
|
|
@@ -46197,11 +46247,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46197
46247
|
}
|
|
46198
46248
|
return deletePlannerElement;
|
|
46199
46249
|
}()
|
|
46200
|
-
/**
|
|
46250
|
+
/**
|
|
46201
46251
|
* This function moves an element from its origin to the desired index
|
|
46202
46252
|
* current implementation is only for the new boxplanner
|
|
46203
|
-
*
|
|
46204
|
-
|
|
46253
|
+
*
|
|
46254
|
+
*/
|
|
46205
46255
|
}, {
|
|
46206
46256
|
key: "movePlannerElement",
|
|
46207
46257
|
value: (function () {
|
|
@@ -46215,13 +46265,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46215
46265
|
_context21.next = 3;
|
|
46216
46266
|
return setHandlerInstance.movePlannerElement(set, elementId, absoluteIndex);
|
|
46217
46267
|
case 3:
|
|
46218
|
-
_context21.sent;
|
|
46219
46268
|
this.updateConfigStructure();
|
|
46220
46269
|
(_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
46221
46270
|
this.updatePlannerView('MOVE_PLANNER_ELEMENT');
|
|
46222
46271
|
this.updatePriceInView();
|
|
46223
46272
|
this.updateViewButtonsDependigOnConfigStructure();
|
|
46224
|
-
case
|
|
46273
|
+
case 8:
|
|
46225
46274
|
case "end":
|
|
46226
46275
|
return _context21.stop();
|
|
46227
46276
|
}
|
|
@@ -46336,7 +46385,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46336
46385
|
case 10:
|
|
46337
46386
|
freeShelfGrids = _context23.t0;
|
|
46338
46387
|
plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
|
|
46339
|
-
LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
|
|
46340
46388
|
LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
|
|
46341
46389
|
(_this$updateFreePlace = this.updateFreePlacesOnGrids) === null || _this$updateFreePlace === void 0 || _this$updateFreePlace.call(this, {
|
|
46342
46390
|
freeShelfGrids: freeShelfGrids,
|
|
@@ -46346,7 +46394,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46346
46394
|
freeShelfGrids: freeShelfGrids,
|
|
46347
46395
|
plannedShelfGrids: plannedShelfGrids
|
|
46348
46396
|
});
|
|
46349
|
-
case
|
|
46397
|
+
case 15:
|
|
46350
46398
|
case "end":
|
|
46351
46399
|
return _context23.stop();
|
|
46352
46400
|
}
|
|
@@ -46363,7 +46411,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
46363
46411
|
var set = this.actSet();
|
|
46364
46412
|
if (!set) return undefined;
|
|
46365
46413
|
var freeShelfGrids = setHandlerInstance.getFreeToMoveShelfGrids(set, gridName, basketId);
|
|
46366
|
-
LOG$1.debug('TOULA', 'freeShelfGridsMOVING', freeShelfGrids);
|
|
46367
46414
|
return freeShelfGrids;
|
|
46368
46415
|
}
|
|
46369
46416
|
}, {
|
|
@@ -47125,21 +47172,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47125
47172
|
var _this$actSet28;
|
|
47126
47173
|
return this.api.getHidePlanner() || !!((_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.useBoxPlanner);
|
|
47127
47174
|
}
|
|
47175
|
+
}, {
|
|
47176
|
+
key: "getFilterForCheckoutButtons",
|
|
47177
|
+
value: function getFilterForCheckoutButtons() {
|
|
47178
|
+
var _this$actSet$CatalogD, _this$actSet29;
|
|
47179
|
+
return (_this$actSet$CatalogD = (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData.filterForCheckoutButtons) !== null && _this$actSet$CatalogD !== void 0 ? _this$actSet$CatalogD : [];
|
|
47180
|
+
}
|
|
47128
47181
|
}, {
|
|
47129
47182
|
key: "getAllowRTV",
|
|
47130
47183
|
value: function getAllowRTV() {
|
|
47131
|
-
var _this$state9, _this$
|
|
47184
|
+
var _this$state9, _this$actSet30, _this$state10, _this$actSet31;
|
|
47132
47185
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
47133
47186
|
if ((_this$state9 = this.state) !== null && _this$state9 !== void 0 && _this$state9.organization.settings.forceRTV) return true;
|
|
47134
|
-
if ((_this$
|
|
47135
|
-
if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$
|
|
47187
|
+
if ((_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaForceRTV) return true;
|
|
47188
|
+
if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaArReady) return true;
|
|
47136
47189
|
return false;
|
|
47137
47190
|
}
|
|
47138
47191
|
}, {
|
|
47139
47192
|
key: "getForceRTV",
|
|
47140
47193
|
value: function getForceRTV() {
|
|
47141
|
-
var _this$
|
|
47142
|
-
return !!((_this$
|
|
47194
|
+
var _this$actSet32;
|
|
47195
|
+
return !!((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV);
|
|
47143
47196
|
}
|
|
47144
47197
|
}, {
|
|
47145
47198
|
key: "getPricePreview",
|
|
@@ -47149,29 +47202,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47149
47202
|
}, {
|
|
47150
47203
|
key: "hide2DPlanner",
|
|
47151
47204
|
value: function hide2DPlanner() {
|
|
47152
|
-
var _this$
|
|
47153
|
-
return (_this$
|
|
47205
|
+
var _this$actSet33;
|
|
47206
|
+
return (_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.hide2DPlanner;
|
|
47154
47207
|
}
|
|
47155
47208
|
}, {
|
|
47156
47209
|
key: "getAllowQRCodeAR",
|
|
47157
47210
|
value: function getAllowQRCodeAR() {
|
|
47158
|
-
var _this$
|
|
47159
|
-
if (this.api.enableAR && (_this$
|
|
47211
|
+
var _this$actSet34;
|
|
47212
|
+
if (this.api.enableAR && (_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaArReady) return true;
|
|
47160
47213
|
return false;
|
|
47161
47214
|
}
|
|
47162
47215
|
}, {
|
|
47163
47216
|
key: "getEnableUnityRtvKombi",
|
|
47164
47217
|
value: function getEnableUnityRtvKombi() {
|
|
47165
|
-
var _this$
|
|
47218
|
+
var _this$actSet35, _this$actSet36;
|
|
47166
47219
|
// if force rtv disable unity kombi - biohort
|
|
47167
|
-
if ((_this$
|
|
47168
|
-
return ((_this$
|
|
47220
|
+
if ((_this$actSet35 = this.actSet()) !== null && _this$actSet35 !== void 0 && _this$actSet35.CatalogData.divaForceRTV) return false;
|
|
47221
|
+
return ((_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
|
|
47169
47222
|
}
|
|
47170
47223
|
}, {
|
|
47171
47224
|
key: "getShelfPlannerRTV",
|
|
47172
47225
|
value: function getShelfPlannerRTV() {
|
|
47173
|
-
var _this$
|
|
47174
|
-
return (_this$
|
|
47226
|
+
var _this$actSet37;
|
|
47227
|
+
return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData.useShelfPlannerRTV;
|
|
47175
47228
|
}
|
|
47176
47229
|
}, {
|
|
47177
47230
|
key: "getBasketData",
|
|
@@ -47212,8 +47265,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47212
47265
|
}, {
|
|
47213
47266
|
key: "getCatalogData",
|
|
47214
47267
|
value: function getCatalogData() {
|
|
47215
|
-
var _this$
|
|
47216
|
-
return (_this$
|
|
47268
|
+
var _this$actSet38;
|
|
47269
|
+
return (_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.CatalogData;
|
|
47217
47270
|
}
|
|
47218
47271
|
}, {
|
|
47219
47272
|
key: "ReturnTo",
|
|
@@ -47411,11 +47464,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47411
47464
|
key: "getCurrentBasket",
|
|
47412
47465
|
value: function () {
|
|
47413
47466
|
var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(event, force, returnTo, dontGoToSummary, hideLoading) {
|
|
47414
|
-
var _this$
|
|
47467
|
+
var _this$actSet39, _this$divaBasketHandl5, _this$onClickAddToBas3;
|
|
47415
47468
|
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
47416
47469
|
while (1) switch (_context35.prev = _context35.next) {
|
|
47417
47470
|
case 0:
|
|
47418
|
-
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$
|
|
47471
|
+
if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.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')))) {
|
|
47419
47472
|
_context35.next = 2;
|
|
47420
47473
|
break;
|
|
47421
47474
|
}
|
|
@@ -47755,9 +47808,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47755
47808
|
}, {
|
|
47756
47809
|
key: "getFavoriteAiRoomKeysFromSet",
|
|
47757
47810
|
value: function getFavoriteAiRoomKeysFromSet() {
|
|
47758
|
-
var _this$
|
|
47811
|
+
var _this$actSet40;
|
|
47759
47812
|
var orderSets = this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr);
|
|
47760
|
-
var actSetId = (_this$
|
|
47813
|
+
var actSetId = (_this$actSet40 = this.actSet()) === null || _this$actSet40 === void 0 ? void 0 : _this$actSet40.getSetId();
|
|
47761
47814
|
var orderSet = orderSets.find(function (os) {
|
|
47762
47815
|
return os.SetID === actSetId;
|
|
47763
47816
|
});
|
|
@@ -67538,20 +67591,4 @@ var getOrigProductId = /*#__PURE__*/function () {
|
|
|
67538
67591
|
};
|
|
67539
67592
|
}();
|
|
67540
67593
|
|
|
67541
|
-
|
|
67542
|
-
|
|
67543
|
-
// Simplified usage limits (for anonymous users)
|
|
67544
|
-
|
|
67545
|
-
// Union type to support both formats
|
|
67546
|
-
|
|
67547
|
-
// Type guard to check if usage limits are simplified (anonymous user format)
|
|
67548
|
-
function isSimplifiedUsageLimits(limits) {
|
|
67549
|
-
return 'budget' in limits;
|
|
67550
|
-
}
|
|
67551
|
-
|
|
67552
|
-
// Type guard to check if usage limits are full (authenticated user format)
|
|
67553
|
-
function isFullUsageLimits(limits) {
|
|
67554
|
-
return 'daily' in limits;
|
|
67555
|
-
}
|
|
67556
|
-
|
|
67557
|
-
export { BoundingBox as B, Cell as C, DockingPoint as D, Grid as G, HQRenderScript as H, OptionCatalogData as O, PlannerElementData as P, Rendering as R, Vector3 as V, articleHandlerInstance as a, setHandlerInstance as b, Vector2 as c, DivaWebPlanner as d, DivaArticle as e, DivaCatalogData as f, DivaBasketHandler as g, CatalogPlannerArticleData as h, Vector4 as i, creatRenderOrders as j, getOrigProductId as k, loadAndRepairBasket as l, isSimplifiedUsageLimits as m, isFullUsageLimits as n, summaryHandlerInstance as s };
|
|
67594
|
+
export { BoundingBox as B, Cell as C, DockingPoint as D, Grid as G, HQRenderScript as H, OptionCatalogData as O, PlannerElementData as P, Rendering as R, Vector3 as V, articleHandlerInstance as a, setHandlerInstance as b, Vector2 as c, DivaWebPlanner as d, DivaArticle as e, DivaCatalogData as f, DivaBasketHandler as g, CatalogPlannerArticleData as h, Vector4 as i, creatRenderOrders as j, getOrigProductId as k, loadAndRepairBasket as l, summaryHandlerInstance as s };
|