@crystaldesign/web-planner-logic 26.5.0-beta.4 → 26.5.0-beta.41
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-d378bbb7.js → DivaBoxPlanner-086aa98a.js} +7 -5
- package/build/cjs/{DivaStandardPlanner-4bab9fb6.js → DivaStandardPlanner-3bef0d4e.js} +2 -2
- package/build/cjs/{DoorPlanner-d492a9d9.js → DoorPlanner-6f008f45.js} +1 -1
- package/build/cjs/{Host3DSignalR-e8e59f7a.js → Host3DSignalR-2457b2ad.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-9b3939c8.js → LiviqueWWSHandler-3f812d5a.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-7eb044db.js → PfisterWWSHandler-5e91b618.js} +1 -1
- package/build/cjs/{PlannerHandler2D-89255bdd.js → PlannerHandler2D-6636901f.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-bbe6859a.js → SeriousBasketHandler-b2126d85.js} +1 -1
- package/build/cjs/{ShelfPlanner-2a0fb19d.js → ShelfPlanner-4ec62f1b.js} +1 -1
- package/build/cjs/{StandardWWSHandler-3391c7ed.js → StandardWWSHandler-e4fa3a65.js} +1 -1
- package/build/cjs/{index-a8cd3c1d.js → index-27e0998b.js} +154 -109
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-21211eeb.js → DivaBoxPlanner-11615043.js} +7 -5
- package/build/esm/{DivaStandardPlanner-95dd670c.js → DivaStandardPlanner-d0e42b6f.js} +2 -2
- package/build/esm/{DoorPlanner-56b674bf.js → DoorPlanner-c3a5867e.js} +1 -1
- package/build/esm/{Host3DSignalR-0c56c943.js → Host3DSignalR-579a03b5.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-0f7a4bcb.js → LiviqueWWSHandler-577062a1.js} +1 -1
- package/build/esm/{PfisterWWSHandler-7a25803c.js → PfisterWWSHandler-c42c01f3.js} +1 -1
- package/build/esm/{PlannerHandler2D-2df72989.js → PlannerHandler2D-e909256d.js} +1 -1
- package/build/esm/{SeriousBasketHandler-6c14c04e.js → SeriousBasketHandler-0f981576.js} +1 -1
- package/build/esm/{ShelfPlanner-9c7ffe88.js → ShelfPlanner-82d07350.js} +1 -1
- package/build/esm/{StandardWWSHandler-3a3026aa.js → StandardWWSHandler-9da8ed75.js} +1 -1
- package/build/esm/{index-79dd365f.js → index-59b843a9.js} +154 -109
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/index.d.ts +1 -1
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +27 -1
- package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +16 -0
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +7 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +9 -8
- package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.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/Catalog/IDMCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -26,8 +26,8 @@ import _typeof from '@babel/runtime/helpers/typeof';
|
|
|
26
26
|
})();
|
|
27
27
|
|
|
28
28
|
var _excluded = ["type"];
|
|
29
|
-
function ownKeys$
|
|
30
|
-
function _objectSpread$
|
|
29
|
+
function ownKeys$m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30
|
+
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
31
|
// Import types from AI service
|
|
32
32
|
|
|
33
33
|
var LOG$p = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
@@ -268,8 +268,8 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
268
268
|
if (this.getApplicationEnvironment() == 'WEB' && (_this$apiConfig2 = this.apiConfig) !== null && _this$apiConfig2 !== void 0 && _this$apiConfig2.api2.web) {
|
|
269
269
|
api2Url = this.apiConfig.api2.web;
|
|
270
270
|
}
|
|
271
|
-
_context2.t0 = _objectSpread$
|
|
272
|
-
_context2.t1 = _objectSpread$
|
|
271
|
+
_context2.t0 = _objectSpread$m;
|
|
272
|
+
_context2.t1 = _objectSpread$m({}, init.config.headers);
|
|
273
273
|
_context2.t2 = {};
|
|
274
274
|
_context2.next = 21;
|
|
275
275
|
return this.getSessionGuid('V', undefined, this.OrganizationId, api2Url);
|
|
@@ -581,10 +581,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
581
581
|
value: function getPrintOptions() {
|
|
582
582
|
var _this$divaWebConfigDa11;
|
|
583
583
|
var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
|
|
584
|
-
var
|
|
584
|
+
var has3D = arguments.length > 1 ? arguments[1] : undefined;
|
|
585
|
+
var arReady = arguments.length > 2 ? arguments[2] : undefined;
|
|
585
586
|
return {
|
|
586
587
|
Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
|
|
587
|
-
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
|
|
588
|
+
PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch) && has3D,
|
|
588
589
|
Remark: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithRemark),
|
|
589
590
|
Prices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPrices),
|
|
590
591
|
AllPrices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithAllPrices),
|
|
@@ -1086,57 +1087,63 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1086
1087
|
}
|
|
1087
1088
|
|
|
1088
1089
|
/******************IDM Service CALLs */
|
|
1090
|
+
}, {
|
|
1091
|
+
key: "isSeller",
|
|
1092
|
+
get: function get() {
|
|
1093
|
+
return !this.useEnricherService && !this.useIDMService;
|
|
1094
|
+
}
|
|
1089
1095
|
}, {
|
|
1090
1096
|
key: "idmPrefix",
|
|
1091
1097
|
get: function get() {
|
|
1092
1098
|
if (this.useEnricherService && !this.packageId) throw new Error('packageId as parameter not missing');
|
|
1093
|
-
return this.useEnricherService ? '/wysiwyg/' + this.packageId : this.useIDMService ? '' : '/live';
|
|
1099
|
+
return this.useEnricherService ? '/wysiwyg/' + this.packageId : this.useIDMService ? '' : '/live/' + this.organization._id;
|
|
1094
1100
|
}
|
|
1095
1101
|
}, {
|
|
1096
1102
|
key: "getIDMCatalog",
|
|
1097
1103
|
value: function getIDMCatalog(catalogId) {
|
|
1104
|
+
if (this.isSeller) return this.idmPrefix + '/packages' + (!this.useEnricherService ? '/' + catalogId + '/catalog' : '');
|
|
1098
1105
|
return this.idmPrefix + '/catalogs' + (!this.useEnricherService ? '/' + catalogId : '');
|
|
1099
1106
|
}
|
|
1100
1107
|
}, {
|
|
1101
1108
|
key: "getIDMSerieByNo",
|
|
1102
|
-
value: function getIDMSerieByNo(
|
|
1103
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1109
|
+
value: function getIDMSerieByNo(packageId, serieId, serieNo) {
|
|
1110
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/series/' + (this.useIDMService ? serieId : serieNo);
|
|
1104
1111
|
}
|
|
1105
1112
|
}, {
|
|
1106
1113
|
key: "getIDMItems",
|
|
1107
|
-
value: function getIDMItems(
|
|
1108
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1114
|
+
value: function getIDMItems(packageId, serieId, serieNo, typeNos) {
|
|
1115
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/series/' + (this.useIDMService ? serieId : serieNo) + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
|
|
1109
1116
|
return encodeURIComponent('typeNo==' + t);
|
|
1110
|
-
}).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');
|
|
1117
|
+
}).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;images;svgs');
|
|
1111
1118
|
}
|
|
1112
1119
|
}, {
|
|
1113
1120
|
key: "getIDMFeatures",
|
|
1114
|
-
value: function getIDMFeatures(
|
|
1115
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1121
|
+
value: function getIDMFeatures(packageId, features) {
|
|
1122
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/features' + '?featureNos=' + features.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1116
1123
|
}
|
|
1117
1124
|
}, {
|
|
1118
1125
|
key: "getIDMDecisions",
|
|
1119
|
-
value: function getIDMDecisions(
|
|
1120
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1126
|
+
value: function getIDMDecisions(packageId, decisions) {
|
|
1127
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/decisions' + '?decisionNos=' + decisions.join(';') + (this.smSupplierNr ? '&supplierNo=' + this.smSupplierNr : '');
|
|
1121
1128
|
}
|
|
1122
1129
|
}, {
|
|
1123
1130
|
key: "getIDMDetailInfos",
|
|
1124
|
-
value: function getIDMDetailInfos(
|
|
1125
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1131
|
+
value: function getIDMDetailInfos(packageId, detailinfos) {
|
|
1132
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/detailinfos' + '?filter=' + detailinfos.map(function (d) {
|
|
1126
1133
|
return encodeURIComponent('featureClassNo==' + d);
|
|
1127
1134
|
}).join(' || ');
|
|
1128
1135
|
}
|
|
1129
1136
|
}, {
|
|
1130
1137
|
key: "getIDMFeatureClass",
|
|
1131
|
-
value: function getIDMFeatureClass(
|
|
1132
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1138
|
+
value: function getIDMFeatureClass(packageId, featureclasses) {
|
|
1139
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/featureclasses' + '?filter=' + featureclasses.map(function (f) {
|
|
1133
1140
|
return encodeURIComponent('featureClassNo==' + f);
|
|
1134
1141
|
}).join(' || ');
|
|
1135
1142
|
}
|
|
1136
1143
|
}, {
|
|
1137
1144
|
key: "getIDMPriceFeatureGroups",
|
|
1138
|
-
value: function getIDMPriceFeatureGroups(
|
|
1139
|
-
return this.idmPrefix + '/catalogs/' +
|
|
1145
|
+
value: function getIDMPriceFeatureGroups(packageId, pricefeaturegroups) {
|
|
1146
|
+
return this.idmPrefix + (this.isSeller ? '/packages/' : '/catalogs/') + packageId + '/pricefeaturegroups' + '?filter=' + pricefeaturegroups.map(function (p) {
|
|
1140
1147
|
return encodeURIComponent('priceFeatureGroupNo==' + p);
|
|
1141
1148
|
}).join(' || ');
|
|
1142
1149
|
}
|
|
@@ -1224,11 +1231,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
1224
1231
|
headers = this.getAiServiceAuthHeaders(leadKey);
|
|
1225
1232
|
_context9.next = 4;
|
|
1226
1233
|
return this.fetchData(url, {
|
|
1227
|
-
data: _objectSpread$
|
|
1234
|
+
data: _objectSpread$m(_objectSpread$m({}, data), {}, {
|
|
1228
1235
|
organizationId: this.OrganizationId
|
|
1229
1236
|
}),
|
|
1230
1237
|
config: {
|
|
1231
|
-
headers: _objectSpread$
|
|
1238
|
+
headers: _objectSpread$m(_objectSpread$m({}, headers), {}, {
|
|
1232
1239
|
'X-Session-Id': DivaUtils.SessionId,
|
|
1233
1240
|
'X-Configurator-Id': (_DivaUtils$Configurat = DivaUtils.ConfigurationId) !== null && _DivaUtils$Configurat !== void 0 ? _DivaUtils$Configurat : ''
|
|
1234
1241
|
})
|
|
@@ -16374,7 +16381,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16374
16381
|
return undefined;
|
|
16375
16382
|
});
|
|
16376
16383
|
this.opv = opv;
|
|
16377
|
-
opv.
|
|
16384
|
+
if (opv.imagePaletteColor) {
|
|
16385
|
+
this.opv.colorGroups = [opv.imagePaletteColor];
|
|
16386
|
+
} else {
|
|
16387
|
+
opv.colorGroups = this.mapRALColorToGroup();
|
|
16388
|
+
}
|
|
16378
16389
|
var metaDatas = setOptionValueProperties(catalogData, this.opv.propertyObj, (_this$opv$property = this.opv.property) !== null && _this$opv$property !== void 0 ? _this$opv$property : []);
|
|
16379
16390
|
this.opv.metaData = metaDatas;
|
|
16380
16391
|
}
|
|
@@ -16475,27 +16486,32 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16475
16486
|
}, {
|
|
16476
16487
|
key: "isFreeText",
|
|
16477
16488
|
get: function get() {
|
|
16478
|
-
|
|
16489
|
+
var _this$opv$propertyObj;
|
|
16490
|
+
return (_this$opv$propertyObj = this.opv.propertyObj.optionFreeText) !== null && _this$opv$propertyObj !== void 0 ? _this$opv$propertyObj : this.opv.isFreeText;
|
|
16479
16491
|
}
|
|
16480
16492
|
}, {
|
|
16481
16493
|
key: "measureUnit",
|
|
16482
16494
|
get: function get() {
|
|
16483
|
-
|
|
16495
|
+
var _this$opv$propertyObj2;
|
|
16496
|
+
return (_this$opv$propertyObj2 = this.opv.propertyObj.measureUnit) !== null && _this$opv$propertyObj2 !== void 0 ? _this$opv$propertyObj2 : this.opv.measureUnit;
|
|
16484
16497
|
}
|
|
16485
16498
|
}, {
|
|
16486
16499
|
key: "measureMinimum",
|
|
16487
16500
|
get: function get() {
|
|
16488
|
-
|
|
16501
|
+
var _this$opv$propertyObj3;
|
|
16502
|
+
return (_this$opv$propertyObj3 = this.opv.propertyObj.measureMinimum) !== null && _this$opv$propertyObj3 !== void 0 ? _this$opv$propertyObj3 : this.opv.measureMinimum;
|
|
16489
16503
|
}
|
|
16490
16504
|
}, {
|
|
16491
16505
|
key: "measureMaximum",
|
|
16492
16506
|
get: function get() {
|
|
16493
|
-
|
|
16507
|
+
var _this$opv$propertyObj4;
|
|
16508
|
+
return (_this$opv$propertyObj4 = this.opv.propertyObj.measureMaximum) !== null && _this$opv$propertyObj4 !== void 0 ? _this$opv$propertyObj4 : this.opv.measureMaximum;
|
|
16494
16509
|
}
|
|
16495
16510
|
}, {
|
|
16496
16511
|
key: "measureStep",
|
|
16497
16512
|
get: function get() {
|
|
16498
|
-
|
|
16513
|
+
var _this$opv$propertyObj5;
|
|
16514
|
+
return (_this$opv$propertyObj5 = this.opv.propertyObj.measureStep) !== null && _this$opv$propertyObj5 !== void 0 ? _this$opv$propertyObj5 : this.opv.measureStep;
|
|
16499
16515
|
}
|
|
16500
16516
|
}, {
|
|
16501
16517
|
key: "hideSubarticleDescription",
|
|
@@ -16510,7 +16526,8 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16510
16526
|
}, {
|
|
16511
16527
|
key: "priceUnit",
|
|
16512
16528
|
get: function get() {
|
|
16513
|
-
|
|
16529
|
+
var _this$opv$propertyObj6;
|
|
16530
|
+
return (_this$opv$propertyObj6 = this.opv.propertyObj.priceUnit) !== null && _this$opv$propertyObj6 !== void 0 ? _this$opv$propertyObj6 : this.opv.priceUnit;
|
|
16514
16531
|
}
|
|
16515
16532
|
}, {
|
|
16516
16533
|
key: "value",
|
|
@@ -16742,6 +16759,24 @@ var setOptionValueProperties = function setOptionValueProperties(catalogData, op
|
|
|
16742
16759
|
case 'IsVariantAttribute':
|
|
16743
16760
|
opv.isVariantAttribute = prop.Value == '1';
|
|
16744
16761
|
break;
|
|
16762
|
+
case 'OPTION_FREE_TEXT':
|
|
16763
|
+
opv.optionFreeText = !!prop.Value;
|
|
16764
|
+
break;
|
|
16765
|
+
case 'MEASURE_UNIT':
|
|
16766
|
+
opv.measureUnit = prop.Value;
|
|
16767
|
+
break;
|
|
16768
|
+
case 'MEASURE_MINIMUM':
|
|
16769
|
+
opv.measureMinimum = prop.Value;
|
|
16770
|
+
break;
|
|
16771
|
+
case 'MEASURE_MAXIMUM':
|
|
16772
|
+
opv.measureMaximum = prop.Value;
|
|
16773
|
+
break;
|
|
16774
|
+
case 'MEASURE_STEP':
|
|
16775
|
+
opv.measureStep = prop.Value;
|
|
16776
|
+
break;
|
|
16777
|
+
case 'PRICE_UNIT':
|
|
16778
|
+
opv.priceUnit = prop.Value;
|
|
16779
|
+
break;
|
|
16745
16780
|
case 'ION_COMMENT_TEXT':
|
|
16746
16781
|
case 'EshopCategoryMapping':
|
|
16747
16782
|
case 'TopFilterAttribute':
|
|
@@ -17879,6 +17914,7 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
|
|
|
17879
17914
|
isOPVG: jsonOPV.IsOPVG && jsonOPV.IsOPVG == '1' ? true : false,
|
|
17880
17915
|
isFreeText: jsonOPV.FreeText && jsonOPV.FreeText == 'True' ? true : false,
|
|
17881
17916
|
rals: jsonOPV.RALs,
|
|
17917
|
+
imagePaletteColor: jsonOPV.ImagePaletteColor,
|
|
17882
17918
|
isCustomAttribute: jsonOPV.IsCustomAttribute,
|
|
17883
17919
|
measureMinimum: jsonOPV.MeasureMinimum,
|
|
17884
17920
|
measureMaximum: jsonOPV.MeasureMaximum,
|
|
@@ -19572,20 +19608,20 @@ function getArticleOptionValueType(set, codex, jsonOPV, catalogOPV, myArticle, i
|
|
|
19572
19608
|
return opv;
|
|
19573
19609
|
}
|
|
19574
19610
|
|
|
19575
|
-
function ownKeys$
|
|
19576
|
-
function _objectSpread$
|
|
19611
|
+
function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19612
|
+
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19577
19613
|
var LOG$k = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
19578
19614
|
function loadMoreFromIDMArticles(_x, _x2) {
|
|
19579
19615
|
return _loadMoreFromIDMArticles.apply(this, arguments);
|
|
19580
19616
|
}
|
|
19581
19617
|
function _loadMoreFromIDMArticles() {
|
|
19582
19618
|
_loadMoreFromIDMArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(catalogArticleDatas, set) {
|
|
19583
|
-
var items, _loop3, i, toLoadDecisionIds, toLoadPFGroups, toLoadFeatureClassRefNo, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i4, _i5, _i6, _catalogArticleData$d2, catalogArticleData, toLoadFeatures, features, _loop4, _i7, _loop6, _i8;
|
|
19619
|
+
var items, _loop3, i, toLoadDecisionIds, toLoadPFGroups, toLoadFeatureClassRefNo, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i4, _decisions$map, loadedIds, missingIds, _i5, _i6, _catalogArticleData$d2, catalogArticleData, toLoadFeatures, features, _loop4, _i7, _loop6, _i8;
|
|
19584
19620
|
return _regeneratorRuntime.wrap(function _callee$(_context5) {
|
|
19585
19621
|
while (1) switch (_context5.prev = _context5.next) {
|
|
19586
19622
|
case 0:
|
|
19587
19623
|
_context5.next = 2;
|
|
19588
|
-
return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.
|
|
19624
|
+
return set.api.getDataCache(set.api.getIDMItems(set.CatalogData.accountGuid, set.CatalogData.serieId, set.CatalogData.catalogCodex, catalogArticleDatas.map(function (a) {
|
|
19589
19625
|
return a.articleCodex;
|
|
19590
19626
|
})), undefined, undefined, 'enricher');
|
|
19591
19627
|
case 2:
|
|
@@ -19635,7 +19671,7 @@ function _loadMoreFromIDMArticles() {
|
|
|
19635
19671
|
}).map(function (a) {
|
|
19636
19672
|
return a.featureClassRefNo;
|
|
19637
19673
|
})));
|
|
19638
|
-
promises = [set.api.getDataCache(set.api.getIDMFeatureClass(set.CatalogData.
|
|
19674
|
+
promises = [set.api.getDataCache(set.api.getIDMFeatureClass(set.CatalogData.accountGuid, toLoadFeatureClassRefNo), undefined, undefined, 'enricher'), toLoadPFGroups.length ? set.api.getDataCache(set.api.getIDMPriceFeatureGroups(set.CatalogData.accountGuid, toLoadPFGroups), undefined, undefined, 'enricher') : undefined, toLoadDecisionIds.length ? set.api.getDataCache(set.api.getIDMDecisions(set.CatalogData.accountGuid, toLoadDecisionIds), undefined, undefined, 'enricher') : undefined];
|
|
19639
19675
|
_context5.next = 16;
|
|
19640
19676
|
return Promise.all(promises);
|
|
19641
19677
|
case 16:
|
|
@@ -19650,11 +19686,17 @@ function _loadMoreFromIDMArticles() {
|
|
|
19650
19686
|
}
|
|
19651
19687
|
}
|
|
19652
19688
|
if (!(toLoadDecisionIds.length !== 0 && toLoadDecisionIds.length != (decisions === null || decisions === void 0 ? void 0 : decisions.length))) {
|
|
19653
|
-
_context5.next =
|
|
19689
|
+
_context5.next = 26;
|
|
19654
19690
|
break;
|
|
19655
19691
|
}
|
|
19656
|
-
|
|
19657
|
-
|
|
19692
|
+
loadedIds = new Set((_decisions$map = decisions === null || decisions === void 0 ? void 0 : decisions.map(function (d) {
|
|
19693
|
+
return d.decisionNo;
|
|
19694
|
+
})) !== null && _decisions$map !== void 0 ? _decisions$map : []);
|
|
19695
|
+
missingIds = toLoadDecisionIds.filter(function (id) {
|
|
19696
|
+
return !loadedIds.has(id);
|
|
19697
|
+
});
|
|
19698
|
+
throw new Error("loading decisions failed \u2013 missing: [".concat(missingIds.join(', '), "]"));
|
|
19699
|
+
case 26:
|
|
19658
19700
|
if (priceFeatureGroups) {
|
|
19659
19701
|
for (_i5 = 0; _i5 < priceFeatureGroups.length; _i5++) {
|
|
19660
19702
|
set.CatalogData.loadedPriceFeaturegroups.push(initializePriceFeatureGroups(priceFeatureGroups[_i5], set.CatalogData.idmOptionGroups));
|
|
@@ -19671,12 +19713,12 @@ function _loadMoreFromIDMArticles() {
|
|
|
19671
19713
|
});
|
|
19672
19714
|
toLoadFeatures = getFeatures(set, featureClasses);
|
|
19673
19715
|
if (!toLoadFeatures.length) {
|
|
19674
|
-
_context5.next =
|
|
19716
|
+
_context5.next = 41;
|
|
19675
19717
|
break;
|
|
19676
19718
|
}
|
|
19677
|
-
_context5.next =
|
|
19678
|
-
return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.
|
|
19679
|
-
case
|
|
19719
|
+
_context5.next = 33;
|
|
19720
|
+
return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.accountGuid, toLoadFeatures), undefined, undefined, 'enricher');
|
|
19721
|
+
case 33:
|
|
19680
19722
|
features = _context5.sent;
|
|
19681
19723
|
_loop4 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop4() {
|
|
19682
19724
|
var feature, insertIndex, k, _loop5, j;
|
|
@@ -19758,17 +19800,17 @@ function _loadMoreFromIDMArticles() {
|
|
|
19758
19800
|
}, _loop4);
|
|
19759
19801
|
});
|
|
19760
19802
|
_i7 = 0;
|
|
19761
|
-
case
|
|
19803
|
+
case 36:
|
|
19762
19804
|
if (!(_i7 < features.length)) {
|
|
19763
|
-
_context5.next =
|
|
19805
|
+
_context5.next = 41;
|
|
19764
19806
|
break;
|
|
19765
19807
|
}
|
|
19766
|
-
return _context5.delegateYield(_loop4(), "t1",
|
|
19767
|
-
case
|
|
19808
|
+
return _context5.delegateYield(_loop4(), "t1", 38);
|
|
19809
|
+
case 38:
|
|
19768
19810
|
_i7++;
|
|
19769
|
-
_context5.next =
|
|
19811
|
+
_context5.next = 36;
|
|
19770
19812
|
break;
|
|
19771
|
-
case
|
|
19813
|
+
case 41:
|
|
19772
19814
|
_loop6 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop6() {
|
|
19773
19815
|
var catalogArticleData, featureClass, features, j;
|
|
19774
19816
|
return _regeneratorRuntime.wrap(function _loop6$(_context4) {
|
|
@@ -19795,21 +19837,21 @@ function _loadMoreFromIDMArticles() {
|
|
|
19795
19837
|
}, _loop6);
|
|
19796
19838
|
});
|
|
19797
19839
|
_i8 = 0;
|
|
19798
|
-
case
|
|
19840
|
+
case 43:
|
|
19799
19841
|
if (!(_i8 < catalogArticleDatas.length)) {
|
|
19800
|
-
_context5.next =
|
|
19842
|
+
_context5.next = 48;
|
|
19801
19843
|
break;
|
|
19802
19844
|
}
|
|
19803
|
-
return _context5.delegateYield(_loop6(), "t2",
|
|
19804
|
-
case
|
|
19845
|
+
return _context5.delegateYield(_loop6(), "t2", 45);
|
|
19846
|
+
case 45:
|
|
19805
19847
|
_i8++;
|
|
19806
|
-
_context5.next =
|
|
19848
|
+
_context5.next = 43;
|
|
19807
19849
|
break;
|
|
19808
|
-
case
|
|
19850
|
+
case 48:
|
|
19809
19851
|
catalogArticleDatas.map(function (c) {
|
|
19810
19852
|
return c.areOptionsLoaded = true;
|
|
19811
19853
|
});
|
|
19812
|
-
case
|
|
19854
|
+
case 49:
|
|
19813
19855
|
case "end":
|
|
19814
19856
|
return _context5.stop();
|
|
19815
19857
|
}
|
|
@@ -19897,11 +19939,11 @@ var getPriceFeatureGroups = function getPriceFeatureGroups(catalogArticleDatas,
|
|
|
19897
19939
|
var initializeDecision = function initializeDecision(decision, idmOptionGroups) {
|
|
19898
19940
|
var _decision$optionCombi;
|
|
19899
19941
|
var optionCombinations = (_decision$optionCombi = decision.optionCombinations) === null || _decision$optionCombi === void 0 ? void 0 : _decision$optionCombi.map(function (c) {
|
|
19900
|
-
return _objectSpread$
|
|
19942
|
+
return _objectSpread$l(_objectSpread$l({}, c), {}, {
|
|
19901
19943
|
projectOptionsSetRefs: parseOptionSetRef(c.projectOptionsSetRefs, idmOptionGroups)
|
|
19902
19944
|
});
|
|
19903
19945
|
});
|
|
19904
|
-
return _objectSpread$
|
|
19946
|
+
return _objectSpread$l(_objectSpread$l({}, decision), {}, {
|
|
19905
19947
|
optionCombinations: optionCombinations === null || optionCombinations === void 0 ? void 0 : optionCombinations.sort(function (a, b) {
|
|
19906
19948
|
return a.sequence - b.sequence;
|
|
19907
19949
|
})
|
|
@@ -19910,16 +19952,16 @@ var initializeDecision = function initializeDecision(decision, idmOptionGroups)
|
|
|
19910
19952
|
var initializePriceFeatureGroups = function initializePriceFeatureGroups(priceFeatureGroup, idmOptionGroups) {
|
|
19911
19953
|
var _priceFeatureGroup$pr, _priceFeatureGroup$pr2;
|
|
19912
19954
|
var finishes = (_priceFeatureGroup$pr = priceFeatureGroup.projectFinishes) === null || _priceFeatureGroup$pr === void 0 ? void 0 : _priceFeatureGroup$pr.map(function (c) {
|
|
19913
|
-
return _objectSpread$
|
|
19955
|
+
return _objectSpread$l(_objectSpread$l({}, c), {}, {
|
|
19914
19956
|
projectOptionsSetRefs: c.optionsSetRef ? parseOptionSetRef(c.optionsSetRef, idmOptionGroups) : []
|
|
19915
19957
|
});
|
|
19916
19958
|
});
|
|
19917
19959
|
var percentageSurcharges = (_priceFeatureGroup$pr2 = priceFeatureGroup.projectPercentageSurcharges) === null || _priceFeatureGroup$pr2 === void 0 ? void 0 : _priceFeatureGroup$pr2.map(function (c) {
|
|
19918
|
-
return _objectSpread$
|
|
19960
|
+
return _objectSpread$l(_objectSpread$l({}, c), {}, {
|
|
19919
19961
|
optionsSetRefs: c.optionsSetRef ? parseOptionSetRef(c.optionsSetRef, idmOptionGroups) : []
|
|
19920
19962
|
});
|
|
19921
19963
|
});
|
|
19922
|
-
return _objectSpread$
|
|
19964
|
+
return _objectSpread$l(_objectSpread$l({}, priceFeatureGroup), {}, {
|
|
19923
19965
|
projectFinishes: finishes === null || finishes === void 0 ? void 0 : finishes.sort(function (a, b) {
|
|
19924
19966
|
return a.sequence - b.sequence;
|
|
19925
19967
|
}),
|
|
@@ -20189,19 +20231,18 @@ function rgbToHex(r, g, b) {
|
|
|
20189
20231
|
return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
|
|
20190
20232
|
}
|
|
20191
20233
|
|
|
20192
|
-
function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20193
|
-
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20194
20234
|
var LOG$j = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
|
|
20195
20235
|
function initIDMCatalogData(serie, orderSet, api) {
|
|
20196
|
-
var _serie$
|
|
20236
|
+
var _serie$decisions, _serie$decisions2;
|
|
20197
20237
|
var catalog = serie.catalogData;
|
|
20198
20238
|
var catalogData = {
|
|
20199
|
-
accountGuid:
|
|
20239
|
+
accountGuid: orderSet.AccountGUID,
|
|
20200
20240
|
serieId: serie._id,
|
|
20201
20241
|
accountName: '',
|
|
20202
20242
|
accountLogo: '',
|
|
20203
20243
|
collectionGuid: serie.catalogId,
|
|
20204
|
-
catalogGuid:
|
|
20244
|
+
catalogGuid: '',
|
|
20245
|
+
//serie.enricherPackageId,
|
|
20205
20246
|
catalogCodex: serie.serieNo.toString(),
|
|
20206
20247
|
catalogName: DivaUtils.getLocals(serie.seriesName, api.getLanguageLowercase()),
|
|
20207
20248
|
// name des Kataloges
|
|
@@ -20258,18 +20299,19 @@ function initIDMArticles(jsonItems, catalogData) {
|
|
|
20258
20299
|
}
|
|
20259
20300
|
}
|
|
20260
20301
|
function getCatalogArticle(article, catalogData) {
|
|
20261
|
-
var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$fullText3, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto,
|
|
20302
|
+
var _catalogData$catalogM, _article$images, _article$typeKey, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$fullText3, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _images$, _article$svgs, _articleMask$groupnam, _articleMask$groupnam2;
|
|
20262
20303
|
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];
|
|
20263
20304
|
var lang = catalogData.api.getLanguageLowercase();
|
|
20264
20305
|
var featureProperties = convertProperties(article.properties, lang, 'featureNos');
|
|
20265
20306
|
var optionProperties = convertProperties(article.properties, lang, 'optionKeys');
|
|
20307
|
+
var images = (_article$images = article.images) === null || _article$images === void 0 ? void 0 : _article$images.map(mapIDMMediaItem);
|
|
20266
20308
|
return {
|
|
20267
20309
|
areOptionsLoaded: false,
|
|
20268
20310
|
arePricesLoaded: false,
|
|
20269
20311
|
articleCodex: article.typeNo,
|
|
20270
20312
|
articleOptions: {},
|
|
20271
20313
|
partListExclusive: article.partListExclusive,
|
|
20272
|
-
guid: article.typeKey,
|
|
20314
|
+
guid: (_article$typeKey = article.typeKey) === null || _article$typeKey === void 0 ? void 0 : _article$typeKey.toString(),
|
|
20273
20315
|
articleEAN: article.eanNumber,
|
|
20274
20316
|
typeNr: article.eanNumber,
|
|
20275
20317
|
retailArticleNr: article.salesNumber,
|
|
@@ -20309,34 +20351,12 @@ function getCatalogArticle(article, catalogData) {
|
|
|
20309
20351
|
heightTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS3 = article.heightBasicShapeTo) !== null && _article$heightBasicS3 !== void 0 ? _article$heightBasicS3 : 0) / 10) : undefined,
|
|
20310
20352
|
volume: article.volume,
|
|
20311
20353
|
weight: (_article$weightNetto = article.weightNetto) !== null && _article$weightNetto !== void 0 ? _article$weightNetto : article.weightBrutto,
|
|
20312
|
-
image:
|
|
20313
|
-
|
|
20314
|
-
})) === null || _article$detailInfos === void 0 ? void 0 : _article$detailInfos.url),
|
|
20315
|
-
images: (_article$detailInfos2 = article.detailInfos) === null || _article$detailInfos2 === void 0 || (_article$detailInfos2 = _article$detailInfos2.filter(function (d) {
|
|
20316
|
-
return d.functionType == 'CAT_ART';
|
|
20317
|
-
})) === null || _article$detailInfos2 === void 0 ? void 0 : _article$detailInfos2.map(function (d) {
|
|
20318
|
-
var _getLowResUrl, _article$detailInfoRe, _article$detailInfoRe2;
|
|
20319
|
-
return {
|
|
20320
|
-
url: (_getLowResUrl = getLowResUrl(d.url)) !== null && _getLowResUrl !== void 0 ? _getLowResUrl : '',
|
|
20321
|
-
detailInfoNo: d.detailInfoNo,
|
|
20322
|
-
decisionNos: (_article$detailInfoRe = (_article$detailInfoRe2 = article.detailInfoRefs) === null || _article$detailInfoRe2 === void 0 || (_article$detailInfoRe2 = _article$detailInfoRe2[d.detailInfoNo]) === null || _article$detailInfoRe2 === void 0 ? void 0 : _article$detailInfoRe2.filter(function (n) {
|
|
20323
|
-
return n !== null;
|
|
20324
|
-
})) !== null && _article$detailInfoRe !== void 0 ? _article$detailInfoRe : []
|
|
20325
|
-
};
|
|
20326
|
-
}),
|
|
20354
|
+
image: images === null || images === void 0 || (_images$ = images[0]) === null || _images$ === void 0 ? void 0 : _images$.url,
|
|
20355
|
+
images: images,
|
|
20327
20356
|
idmPrices: article.prices,
|
|
20328
20357
|
idmPartlist: article.partlist,
|
|
20329
20358
|
articleRelations: [],
|
|
20330
|
-
svgs: (_article$
|
|
20331
|
-
return d.classification == 'SVG';
|
|
20332
|
-
}).map(function (d) {
|
|
20333
|
-
var _article$detailInfoRe3, _article$detailInfoRe4;
|
|
20334
|
-
return _objectSpread$l(_objectSpread$l({}, d), {}, {
|
|
20335
|
-
decisionNos: (_article$detailInfoRe3 = (_article$detailInfoRe4 = article.detailInfoRefs) === null || _article$detailInfoRe4 === void 0 || (_article$detailInfoRe4 = _article$detailInfoRe4[d.detailInfoNo]) === null || _article$detailInfoRe4 === void 0 ? void 0 : _article$detailInfoRe4.filter(function (n) {
|
|
20336
|
-
return n !== null;
|
|
20337
|
-
})) !== null && _article$detailInfoRe3 !== void 0 ? _article$detailInfoRe3 : []
|
|
20338
|
-
});
|
|
20339
|
-
}),
|
|
20359
|
+
svgs: (_article$svgs = article.svgs) === null || _article$svgs === void 0 ? void 0 : _article$svgs.map(mapIDMMediaItem),
|
|
20340
20360
|
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
|
|
20341
20361
|
};
|
|
20342
20362
|
}
|
|
@@ -20353,6 +20373,14 @@ function getCatalogArticle(article, catalogData) {
|
|
|
20353
20373
|
function getLowResUrl(url) {
|
|
20354
20374
|
return url === null || url === void 0 ? void 0 : url.replace('.jpg', '_low.jpg').replace('.jpeg', '_low.jpeg').replace('.png', '_low.png');
|
|
20355
20375
|
}
|
|
20376
|
+
function mapIDMMediaItem(mediaItem) {
|
|
20377
|
+
var _getLowResUrl;
|
|
20378
|
+
return {
|
|
20379
|
+
url: (_getLowResUrl = getLowResUrl(mediaItem.url)) !== null && _getLowResUrl !== void 0 ? _getLowResUrl : '',
|
|
20380
|
+
detailInfoNo: mediaItem.detailInfoNo,
|
|
20381
|
+
decisionNos: mediaItem.decisionNo ? [mediaItem.decisionNo] : []
|
|
20382
|
+
};
|
|
20383
|
+
}
|
|
20356
20384
|
function convertProperties() {
|
|
20357
20385
|
var properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
20358
20386
|
var lang = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -20386,8 +20414,8 @@ function mapProp() {
|
|
|
20386
20414
|
});
|
|
20387
20415
|
}
|
|
20388
20416
|
function getCatalogPlanner(article, catalogArticle, catalogData) {
|
|
20389
|
-
var _article$
|
|
20390
|
-
var svg = (_article$
|
|
20417
|
+
var _article$detailInfos, _article$avlFilter, _article$avrFilter, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6, _svg$avc, _svg$avn, _svg$avo, _svg$avs, _svg$avu, _svg$hasAVL, _svg$hasAVR, _catalogArticle$svgs;
|
|
20418
|
+
var svg = (_article$detailInfos = article.detailInfos) === null || _article$detailInfos === void 0 ? void 0 : _article$detailInfos.find(function (d) {
|
|
20391
20419
|
return d.classification == 'SVG';
|
|
20392
20420
|
});
|
|
20393
20421
|
|
|
@@ -25629,7 +25657,7 @@ var IDMEngine = /*#__PURE__*/function () {
|
|
|
25629
25657
|
});
|
|
25630
25658
|
var ref = optionSetRef === null || optionSetRef === void 0 ? void 0 : optionSetRef.optionList;
|
|
25631
25659
|
if (optionSetRef && !optionSetRef.optionList) throw new Error('optionSetRef not implemented: ' + JSON.stringify(optionSetRef));
|
|
25632
|
-
var doUseDoc =
|
|
25660
|
+
var doUseDoc = true;
|
|
25633
25661
|
if (doAlsoCheckFeature.length > 0) {
|
|
25634
25662
|
var _loop4 = function _loop4() {
|
|
25635
25663
|
var _combination$projectO2;
|
|
@@ -26798,6 +26826,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
26798
26826
|
partlistDecisionNo: initParams.partlistDecisionNo,
|
|
26799
26827
|
partListParentArticle: initParams.parentArticle,
|
|
26800
26828
|
partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
|
|
26829
|
+
dontAddToFinalOrderLine: initParams.dontAddToFinalOrderLine,
|
|
26801
26830
|
partlistArticleStandalone: initParams.partlistArticleStandalone,
|
|
26802
26831
|
partlistGroupPrefix: initParams.partlistGroupPrefix,
|
|
26803
26832
|
hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
|
|
@@ -28628,6 +28657,11 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
28628
28657
|
}
|
|
28629
28658
|
return ret;
|
|
28630
28659
|
}
|
|
28660
|
+
}, {
|
|
28661
|
+
key: "dontAddToFinalOrderLine",
|
|
28662
|
+
get: function get() {
|
|
28663
|
+
return this.article.dontAddToFinalOrderLine;
|
|
28664
|
+
}
|
|
28631
28665
|
}, {
|
|
28632
28666
|
key: "areAllOptionsDefined",
|
|
28633
28667
|
get: function get() {
|
|
@@ -29469,7 +29503,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
29469
29503
|
break;
|
|
29470
29504
|
}
|
|
29471
29505
|
_context.next = 4;
|
|
29472
|
-
return import('./ShelfPlanner-
|
|
29506
|
+
return import('./ShelfPlanner-82d07350.js');
|
|
29473
29507
|
case 4:
|
|
29474
29508
|
_yield$import = _context.sent;
|
|
29475
29509
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -31202,6 +31236,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
31202
31236
|
supplierOrderCodex: doLoadItem.SupplierOrderCodex,
|
|
31203
31237
|
initDecisions: doLoadItem.initDecisions,
|
|
31204
31238
|
partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
|
|
31239
|
+
dontAddToFinalOrderLine: doLoadItem.PosInvisibility === 1,
|
|
31205
31240
|
partlistArticleStandalone: doLoadItem.ConfigurationMode,
|
|
31206
31241
|
partlistGroupPrefix: doLoadItem.partlistGroupPrefix,
|
|
31207
31242
|
optionsForPrint: doLoadItem.optionsForPrint,
|
|
@@ -31594,6 +31629,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
31594
31629
|
Width: article.width,
|
|
31595
31630
|
Depth: article.depth,
|
|
31596
31631
|
Height: article.height,
|
|
31632
|
+
dontAddToFinalOrderLine: article.dontAddToFinalOrderLine,
|
|
31597
31633
|
CatalogCodex: catalogData.catalogCodex,
|
|
31598
31634
|
CatalogName: catalogData.catalogName,
|
|
31599
31635
|
VKPrice: article.getVkPrice,
|
|
@@ -34850,6 +34886,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34850
34886
|
if (Object.values(articles).find(function (article) {
|
|
34851
34887
|
return article.shelfPlanner;
|
|
34852
34888
|
})) return;
|
|
34889
|
+
if (Object.values(articles).find(function (article) {
|
|
34890
|
+
return article.set.CatalogData.useBoxPlanner;
|
|
34891
|
+
})) return;
|
|
34853
34892
|
var _iterator3 = _createForOfIteratorHelper$4(configTree.tabGroups),
|
|
34854
34893
|
_step3;
|
|
34855
34894
|
try {
|
|
@@ -34862,6 +34901,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34862
34901
|
var hasSelectionMode2 = [];
|
|
34863
34902
|
var hasSelectionMode3 = [];
|
|
34864
34903
|
var basketIds = [];
|
|
34904
|
+
var breakTabgroup = false;
|
|
34865
34905
|
var _iterator4 = _createForOfIteratorHelper$4(tabGroup.options),
|
|
34866
34906
|
_step4;
|
|
34867
34907
|
try {
|
|
@@ -34869,6 +34909,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34869
34909
|
var _step4$value = _slicedToArray(_step4.value, 2),
|
|
34870
34910
|
_optionCodex2 = _step4$value[0],
|
|
34871
34911
|
_option2 = _step4$value[1];
|
|
34912
|
+
var configSteps = Array.from(_option2.configSteps.values());
|
|
34913
|
+
if (configSteps.find(function (configStep) {
|
|
34914
|
+
return configStep.notDisplayedInMainConfigTree;
|
|
34915
|
+
})) breakTabgroup = true;
|
|
34872
34916
|
switch (_option2.selectionmode) {
|
|
34873
34917
|
case 1:
|
|
34874
34918
|
hasSelectionMode1.push(_optionCodex2);
|
|
@@ -34911,6 +34955,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
34911
34955
|
} finally {
|
|
34912
34956
|
_iterator4.f();
|
|
34913
34957
|
}
|
|
34958
|
+
if (breakTabgroup) continue;
|
|
34914
34959
|
if (hasSelectionMode2.length > 0 && hasSelectionMode3.length > 0 && hasSelectionMode1.length == 0) {
|
|
34915
34960
|
//make the selectionmode 2 options -> selectionmode 3
|
|
34916
34961
|
var _iterator5 = _createForOfIteratorHelper$4(hasSelectionMode2),
|
|
@@ -37397,7 +37442,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
37397
37442
|
break;
|
|
37398
37443
|
}
|
|
37399
37444
|
_context5.next = 3;
|
|
37400
|
-
return import('./DoorPlanner-
|
|
37445
|
+
return import('./DoorPlanner-c3a5867e.js');
|
|
37401
37446
|
case 3:
|
|
37402
37447
|
_yield$import = _context5.sent;
|
|
37403
37448
|
DoorPlanner = _yield$import["default"];
|
|
@@ -41967,7 +42012,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
41967
42012
|
actBasket.ReturnTo = returnTo;
|
|
41968
42013
|
actBasket.PDFDocumentURL = '';
|
|
41969
42014
|
actBasket.ReportConfigIdentifier = api.getReportConfigIdentifier();
|
|
41970
|
-
actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!arReady);
|
|
42015
|
+
actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!actBasket.OrderSets[0].SetImage, !!arReady);
|
|
41971
42016
|
actBasket.ClientLanguage = api.getLanguage();
|
|
41972
42017
|
_context11.next = 8;
|
|
41973
42018
|
return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$s10 = this.plannerConfig.settings) === null || _this$plannerConfig$s10 === void 0 ? void 0 : _this$plannerConfig$s10.keepSalesPersonDataInBasket);
|
|
@@ -42161,7 +42206,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42161
42206
|
break;
|
|
42162
42207
|
case 3:
|
|
42163
42208
|
_context12.next = 5;
|
|
42164
|
-
return import('./PfisterWWSHandler-
|
|
42209
|
+
return import('./PfisterWWSHandler-c42c01f3.js');
|
|
42165
42210
|
case 5:
|
|
42166
42211
|
_yield$import = _context12.sent;
|
|
42167
42212
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -42169,7 +42214,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42169
42214
|
return _context12.abrupt("break", 27);
|
|
42170
42215
|
case 9:
|
|
42171
42216
|
_context12.next = 11;
|
|
42172
|
-
return import('./LiviqueWWSHandler-
|
|
42217
|
+
return import('./LiviqueWWSHandler-577062a1.js');
|
|
42173
42218
|
case 11:
|
|
42174
42219
|
_yield$import2 = _context12.sent;
|
|
42175
42220
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -42177,7 +42222,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42177
42222
|
return _context12.abrupt("break", 27);
|
|
42178
42223
|
case 15:
|
|
42179
42224
|
_context12.next = 17;
|
|
42180
|
-
return import('./SeriousBasketHandler-
|
|
42225
|
+
return import('./SeriousBasketHandler-0f981576.js');
|
|
42181
42226
|
case 17:
|
|
42182
42227
|
_yield$import3 = _context12.sent;
|
|
42183
42228
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -42185,7 +42230,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
42185
42230
|
return _context12.abrupt("break", 27);
|
|
42186
42231
|
case 21:
|
|
42187
42232
|
_context12.next = 23;
|
|
42188
|
-
return import('./StandardWWSHandler-
|
|
42233
|
+
return import('./StandardWWSHandler-9da8ed75.js');
|
|
42189
42234
|
case 23:
|
|
42190
42235
|
_yield$import4 = _context12.sent;
|
|
42191
42236
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -43609,7 +43654,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
43609
43654
|
while (1) switch (_context3.prev = _context3.next) {
|
|
43610
43655
|
case 0:
|
|
43611
43656
|
_context3.next = 2;
|
|
43612
|
-
return import('./Host3DSignalR-
|
|
43657
|
+
return import('./Host3DSignalR-579a03b5.js');
|
|
43613
43658
|
case 2:
|
|
43614
43659
|
_yield$import = _context3.sent;
|
|
43615
43660
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -45362,7 +45407,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
45362
45407
|
break;
|
|
45363
45408
|
case 8:
|
|
45364
45409
|
_context4.next = 10;
|
|
45365
|
-
return import('./DivaStandardPlanner-
|
|
45410
|
+
return import('./DivaStandardPlanner-d0e42b6f.js');
|
|
45366
45411
|
case 10:
|
|
45367
45412
|
_yield$import = _context4.sent;
|
|
45368
45413
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -45373,7 +45418,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
45373
45418
|
return _context4.abrupt("break", 21);
|
|
45374
45419
|
case 15:
|
|
45375
45420
|
_context4.next = 17;
|
|
45376
|
-
return import('./DivaBoxPlanner-
|
|
45421
|
+
return import('./DivaBoxPlanner-11615043.js');
|
|
45377
45422
|
case 17:
|
|
45378
45423
|
_yield$import2 = _context4.sent;
|
|
45379
45424
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -47292,7 +47337,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47292
47337
|
value: function () {
|
|
47293
47338
|
var _initializeSets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(loadSuccessful, viewReadyPromise) {
|
|
47294
47339
|
var _this$actions17, _set$getDivaArticles, _catalogData$catalogM, _catalogData$catalogM2;
|
|
47295
|
-
var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, _result$customData, _result$customData2, result, _this$actions18, catalogData, initializationId, _this$plannerConfig$a, initializationType;
|
|
47340
|
+
var _this$actions16, _this$actions16$toggl, initSetState, set, oldProductId, _result$customData$SA, _result$customData, _result$customData2, _result$customData$SA2, _result$customData3, _result$customData4, result, _this$actions18, catalogData, initializationId, _this$plannerConfig$a, initializationType;
|
|
47296
47341
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
47297
47342
|
while (1) switch (_context15.prev = _context15.next) {
|
|
47298
47343
|
case 0:
|
|
@@ -47331,8 +47376,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
47331
47376
|
case 21:
|
|
47332
47377
|
result = _context15.sent;
|
|
47333
47378
|
if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
|
|
47334
|
-
result === null || result === void 0 || (_result$customData = result.customData) === null || _result$customData === void 0 ? void 0 : _result$customData.SAP_MARA_MATKL;
|
|
47335
|
-
result === null || result === void 0 || (_result$
|
|
47379
|
+
(_result$customData$SA = result === null || result === void 0 || (_result$customData = result.customData) === null || _result$customData === void 0 || (_result$customData = _result$customData.SAP) === null || _result$customData === void 0 ? void 0 : _result$customData.SAP_MARA_MATKL) !== null && _result$customData$SA !== void 0 ? _result$customData$SA : result === null || result === void 0 || (_result$customData2 = result.customData) === null || _result$customData2 === void 0 || (_result$customData2 = _result$customData2.SAP_MARA_MATKL) === null || _result$customData2 === void 0 ? void 0 : _result$customData2.value;
|
|
47380
|
+
(_result$customData$SA2 = result === null || result === void 0 || (_result$customData3 = result.customData) === null || _result$customData3 === void 0 || (_result$customData3 = _result$customData3.SAP) === null || _result$customData3 === void 0 ? void 0 : _result$customData3.SAP_MARA_PRDHA) !== null && _result$customData$SA2 !== void 0 ? _result$customData$SA2 : result === null || result === void 0 || (_result$customData4 = result.customData) === null || _result$customData4 === void 0 || (_result$customData4 = _result$customData4.SAP_MARA_PRDHA) === null || _result$customData4 === void 0 ? void 0 : _result$customData4.value;
|
|
47336
47381
|
_context15.next = 28;
|
|
47337
47382
|
break;
|
|
47338
47383
|
case 27:
|