@crystaldesign/web-planner-logic 25.3.0-beta.4 → 25.3.0-beta.42
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-230a7343.js → DivaBoxPlanner-8f122084.js} +2 -2
- package/build/cjs/{DivaStandardPlanner-3b70656f.js → DivaStandardPlanner-b71fe21b.js} +2 -2
- package/build/cjs/{DoorPlanner-85f5df3d.js → DoorPlanner-d89490ec.js} +1 -1
- package/build/cjs/{Host3DSignalR-06a86be8.js → Host3DSignalR-7a28ca39.js} +1 -1
- package/build/cjs/{LiviqueWWSHandler-8e9cc61c.js → LiviqueWWSHandler-ec82e7f0.js} +1 -1
- package/build/cjs/{PfisterWWSHandler-786700cb.js → PfisterWWSHandler-07873882.js} +1 -1
- package/build/cjs/{PlannerHandler2D-d4305a93.js → PlannerHandler2D-21090cac.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-70977945.js → SeriousBasketHandler-32ae71b6.js} +1 -1
- package/build/cjs/{ShelfPlanner-89d47e5e.js → ShelfPlanner-66616811.js} +39 -22
- package/build/cjs/{StandardWWSHandler-4e8f472a.js → StandardWWSHandler-65315d05.js} +1 -1
- package/build/cjs/{index-1df7482f.js → index-5fe97480.js} +544 -405
- package/build/cjs/index.js +1 -1
- package/build/esm/{DivaBoxPlanner-ef50f3c1.js → DivaBoxPlanner-1e190a4c.js} +2 -2
- package/build/esm/{DivaStandardPlanner-50298918.js → DivaStandardPlanner-b645a1f9.js} +2 -2
- package/build/esm/{DoorPlanner-43de473a.js → DoorPlanner-801f1494.js} +1 -1
- package/build/esm/{Host3DSignalR-b772e3b5.js → Host3DSignalR-0cf37b2e.js} +1 -1
- package/build/esm/{LiviqueWWSHandler-e63f276f.js → LiviqueWWSHandler-2595c26a.js} +1 -1
- package/build/esm/{PfisterWWSHandler-7f7996a7.js → PfisterWWSHandler-1c44003e.js} +1 -1
- package/build/esm/{PlannerHandler2D-4e72c491.js → PlannerHandler2D-4a033ce4.js} +1 -1
- package/build/esm/{SeriousBasketHandler-1a4186bd.js → SeriousBasketHandler-af4bdd87.js} +1 -1
- package/build/esm/{ShelfPlanner-152084c3.js → ShelfPlanner-0e55da66.js} +39 -22
- package/build/esm/{StandardWWSHandler-a5d84eb8.js → StandardWWSHandler-80a5dd7b.js} +1 -1
- package/build/esm/{index-474fc67f.js → index-534166d9.js} +544 -405
- package/build/esm/index.js +1 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +2 -1
- package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts +5 -0
- package/build/types/web-planner-logic/src/interface/Configuration.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -7
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts +0 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +5 -0
- package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +4 -0
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +2 -2
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +5 -0
- 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 +4 -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 +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 +1 -0
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +5 -0
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -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 +3 -0
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.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/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.d.ts +0 -4
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/ViewPointHandler.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/logic/repairBasket.d.ts +2 -2
- package/build/types/web-planner-logic/src/logic/repairBasket.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts +2 -0
- package/build/types/web-planner-logic/src/model/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +5 -0
- 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 +5 -0
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/datas/environments/scripts/pfister-prod.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/datas/environments/scripts/pfister-quality.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/test/datas/environments/testing/retail-test.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -451,6 +451,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
|
|
|
451
451
|
barrierConfig: data.barrierConfig,
|
|
452
452
|
dontLoadAdditionalModelInfos: data.dontLoadAdditionalModelInfos,
|
|
453
453
|
arViewerUrl: data.arViewerUrl,
|
|
454
|
+
arViewerIframe: data.arViewerIframe,
|
|
454
455
|
useMask: data.useMask,
|
|
455
456
|
loadProductBasketParams: data.loadProductBasketParams,
|
|
456
457
|
addOrganizationIdToCacheKey: data.addOrganizationIdToCacheKey
|
|
@@ -1693,7 +1694,6 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
|
|
|
1693
1694
|
parent: parent,
|
|
1694
1695
|
ocd: jsonOPV.OCD,
|
|
1695
1696
|
quantity: jsonOPV.Quantity ? Number(jsonOPV.Quantity) : 1,
|
|
1696
|
-
isDefault: jsonOPV.IsDefault,
|
|
1697
1697
|
isPIMFlatValue: jsonOPV.PIMFlatValues === 'True',
|
|
1698
1698
|
isVariantAttribute: jsonOPV.IsVariantAttribute
|
|
1699
1699
|
};
|
|
@@ -1950,6 +1950,11 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
|
|
|
1950
1950
|
get: function get() {
|
|
1951
1951
|
return this.opv.subArticleTypeNr;
|
|
1952
1952
|
}
|
|
1953
|
+
}, {
|
|
1954
|
+
key: "addToMeasure",
|
|
1955
|
+
get: function get() {
|
|
1956
|
+
return this.opv.catalogOPV.addToMeasure;
|
|
1957
|
+
}
|
|
1953
1958
|
}, {
|
|
1954
1959
|
key: "hideSubarticleDescription",
|
|
1955
1960
|
get: function get() {
|
|
@@ -16111,6 +16116,15 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16111
16116
|
case 'SET_BY_RULE':
|
|
16112
16117
|
this.opv.setByRule = prop.Value;
|
|
16113
16118
|
break;
|
|
16119
|
+
case 'ADD_TO_MEASURE':
|
|
16120
|
+
this.opv.addToMeasure = prop.Value.split(';').map(function (v) {
|
|
16121
|
+
return {
|
|
16122
|
+
op: v.split(':')[0],
|
|
16123
|
+
value: Number(v.split(':')[1]),
|
|
16124
|
+
opt: 'OPT' + v.split(':')[2]
|
|
16125
|
+
};
|
|
16126
|
+
});
|
|
16127
|
+
break;
|
|
16114
16128
|
default:
|
|
16115
16129
|
if (key.includes('__')) break;
|
|
16116
16130
|
var values_locales = [];
|
|
@@ -16406,6 +16420,11 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
|
|
|
16406
16420
|
get: function get() {
|
|
16407
16421
|
return this.opv.customDimension;
|
|
16408
16422
|
}
|
|
16423
|
+
}, {
|
|
16424
|
+
key: "addToMeasure",
|
|
16425
|
+
get: function get() {
|
|
16426
|
+
return this.opv.addToMeasure;
|
|
16427
|
+
}
|
|
16409
16428
|
}]);
|
|
16410
16429
|
}();
|
|
16411
16430
|
|
|
@@ -18003,10 +18022,10 @@ var OptionCatalogData = /*#__PURE__*/function () {
|
|
|
18003
18022
|
case 'ONLY_VISIBLE_IF_NOT_UNDOCK':
|
|
18004
18023
|
this.opt.onlyVisibleIfNotDocked = prop.Value;
|
|
18005
18024
|
break;
|
|
18006
|
-
case '
|
|
18025
|
+
case 'ONLY_VISIBLE_IF_CONFIG_SINGLE':
|
|
18007
18026
|
this.opt.onlyVisibleIfConfigSingle = prop.Value;
|
|
18008
18027
|
break;
|
|
18009
|
-
case '
|
|
18028
|
+
case 'ONLY_VISIBLE_IF_CONFIG_ALL':
|
|
18010
18029
|
this.opt.onlyVisibleIfConfigAll = prop.Value;
|
|
18011
18030
|
break;
|
|
18012
18031
|
case 'ISDEFAULTVALUEFOROPTIONS':
|
|
@@ -18314,6 +18333,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18314
18333
|
offlineData: json.OfflineData,
|
|
18315
18334
|
offlineFilesLastUpdate: offlinFileLastUpdateTimestamp,
|
|
18316
18335
|
offlineVersion: json.OfflineVersion,
|
|
18336
|
+
retailCatalogNr: json.RetailCatalogNr,
|
|
18317
18337
|
description: orderSet.Description,
|
|
18318
18338
|
mainCategory: (_json$MainCategory = json.MainCategory) !== null && _json$MainCategory !== void 0 ? _json$MainCategory : json.Name,
|
|
18319
18339
|
supplierCatalogName: json.SupplierCatalogName,
|
|
@@ -18350,7 +18370,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18350
18370
|
headerDimensionIds: [],
|
|
18351
18371
|
dontShowBasePrice: false,
|
|
18352
18372
|
// wenn true - dann sollte Preis Ab im Planner nicht angezeigt werden
|
|
18353
|
-
|
|
18373
|
+
autoOpenContentItem: false,
|
|
18354
18374
|
//KatalogProperties - Planner Themen
|
|
18355
18375
|
divaPlanerDigits: 0,
|
|
18356
18376
|
// Anzahl der Kommastellen bei Masslinien im Planer (Jutzler mit mm)
|
|
@@ -18738,6 +18758,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
18738
18758
|
}
|
|
18739
18759
|
} else if (key == 'ARTICLECONFIGALL') {
|
|
18740
18760
|
_this.catalogData.articleConfigAll = item.Value == '1';
|
|
18761
|
+
} else if (key == 'AUTO_OPEN_CONTENTITEM') {
|
|
18762
|
+
_this.catalogData.autoOpenContentItem = item.Value == '1';
|
|
18741
18763
|
} else if (key == 'HIDE_PRICE_GROUPS_OF_OPGS') {
|
|
18742
18764
|
_this.catalogData.hidePriceGroupsOfOPGs = item.Value == '1';
|
|
18743
18765
|
} else if (key == 'DONTHIDEOPTION') {
|
|
@@ -19459,6 +19481,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19459
19481
|
get: function get() {
|
|
19460
19482
|
return this.catalogData.offlineFilesLastUpdate;
|
|
19461
19483
|
}
|
|
19484
|
+
}, {
|
|
19485
|
+
key: "retailCatalogNr",
|
|
19486
|
+
get: function get() {
|
|
19487
|
+
return this.catalogData.retailCatalogNr;
|
|
19488
|
+
}
|
|
19462
19489
|
}, {
|
|
19463
19490
|
key: "description",
|
|
19464
19491
|
get: function get() {
|
|
@@ -19673,6 +19700,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
|
|
|
19673
19700
|
get: function get() {
|
|
19674
19701
|
return this.catalogData.alternateRenderings;
|
|
19675
19702
|
}
|
|
19703
|
+
}, {
|
|
19704
|
+
key: "autoOpenContentItem",
|
|
19705
|
+
get: function get() {
|
|
19706
|
+
return this.catalogData.autoOpenContentItem;
|
|
19707
|
+
}
|
|
19676
19708
|
}, {
|
|
19677
19709
|
key: "alternateRenderingsForSummary",
|
|
19678
19710
|
get: function get() {
|
|
@@ -20659,6 +20691,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
|
|
|
20659
20691
|
var _this$val$customDimen, _this$val24;
|
|
20660
20692
|
return this.val && ((_this$val$customDimen = (_this$val24 = this.val) === null || _this$val24 === void 0 ? void 0 : _this$val24.customDimension) !== null && _this$val$customDimen !== void 0 ? _this$val$customDimen : this.option.customDimension);
|
|
20661
20693
|
}
|
|
20694
|
+
}, {
|
|
20695
|
+
key: "addToMeasure",
|
|
20696
|
+
get: function get() {
|
|
20697
|
+
var _this$val25;
|
|
20698
|
+
return (_this$val25 = this.val) === null || _this$val25 === void 0 ? void 0 : _this$val25.addToMeasure;
|
|
20699
|
+
}
|
|
20662
20700
|
}, {
|
|
20663
20701
|
key: "showWarningForRequiresUserInput",
|
|
20664
20702
|
get: function get() {
|
|
@@ -22236,6 +22274,16 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
22236
22274
|
}
|
|
22237
22275
|
return true;
|
|
22238
22276
|
}
|
|
22277
|
+
}, {
|
|
22278
|
+
key: "optionStatesWithAddToMeasure",
|
|
22279
|
+
value: function optionStatesWithAddToMeasure(opt) {
|
|
22280
|
+
return Object.values(this.articleOptionStates).filter(function (ops) {
|
|
22281
|
+
var _ops$addToMeasure, _ops$addToMeasure2;
|
|
22282
|
+
return ((_ops$addToMeasure = ops.addToMeasure) === null || _ops$addToMeasure === void 0 ? void 0 : _ops$addToMeasure.find(function (o) {
|
|
22283
|
+
return o.opt == opt;
|
|
22284
|
+
})) || ops.optionCodex == opt && ((_ops$addToMeasure2 = ops.addToMeasure) === null || _ops$addToMeasure2 === void 0 ? void 0 : _ops$addToMeasure2.length);
|
|
22285
|
+
});
|
|
22286
|
+
}
|
|
22239
22287
|
}, {
|
|
22240
22288
|
key: "requiredUserInputOptions",
|
|
22241
22289
|
get: function get() {
|
|
@@ -22971,6 +23019,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
22971
23019
|
}
|
|
22972
23020
|
this.updateIDMSpecificFeature(myArtOPS);
|
|
22973
23021
|
}
|
|
23022
|
+
this.updateOptionsWithAddToMeasure(OP);
|
|
22974
23023
|
}
|
|
22975
23024
|
}, {
|
|
22976
23025
|
key: "updateIDMSpecificFeature",
|
|
@@ -23126,6 +23175,61 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
23126
23175
|
return myDesc;
|
|
23127
23176
|
}
|
|
23128
23177
|
}
|
|
23178
|
+
}, {
|
|
23179
|
+
key: "updateOptionsWithAddToMeasure",
|
|
23180
|
+
value: function updateOptionsWithAddToMeasure(optionCodex) {
|
|
23181
|
+
var opsWithAddToMeasure = this.optionStatesWithAddToMeasure(optionCodex);
|
|
23182
|
+
var result = undefined;
|
|
23183
|
+
var optionsUsedFreetext = {};
|
|
23184
|
+
for (var i = 0; i < opsWithAddToMeasure.length; i++) {
|
|
23185
|
+
var _result2;
|
|
23186
|
+
var addToMeasureOps = opsWithAddToMeasure[i];
|
|
23187
|
+
for (var j = 0; j < addToMeasureOps.addToMeasure.length; j++) {
|
|
23188
|
+
var _Number, _this$getArticleOptio4;
|
|
23189
|
+
var addToMeasure = addToMeasureOps.addToMeasure[j];
|
|
23190
|
+
var value = optionsUsedFreetext[addToMeasure.opt] ? 0 : (_Number = Number((_this$getArticleOptio4 = this.getArticleOptionState(addToMeasure.opt)) === null || _this$getArticleOptio4 === void 0 ? void 0 : _this$getArticleOptio4.freeText)) !== null && _Number !== void 0 ? _Number : 0;
|
|
23191
|
+
optionsUsedFreetext[addToMeasure.opt] = true;
|
|
23192
|
+
if (!addToMeasureOps.val) continue;
|
|
23193
|
+
if (isNaN(value)) {
|
|
23194
|
+
result = undefined;
|
|
23195
|
+
break;
|
|
23196
|
+
} else {
|
|
23197
|
+
var _result;
|
|
23198
|
+
result = this.calculateMeasure(addToMeasure, ((_result = result) !== null && _result !== void 0 ? _result : 0) + value);
|
|
23199
|
+
}
|
|
23200
|
+
}
|
|
23201
|
+
this.setOP(addToMeasureOps.optionCodex, addToMeasureOps.val, (_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.toString());
|
|
23202
|
+
}
|
|
23203
|
+
}
|
|
23204
|
+
}, {
|
|
23205
|
+
key: "calcAddToMeasure",
|
|
23206
|
+
value: function calcAddToMeasure(optionCodex, value) {
|
|
23207
|
+
var opsWithAddToMeasure = this.optionStatesWithAddToMeasure(optionCodex);
|
|
23208
|
+
for (var j = 0; j < opsWithAddToMeasure.length; j++) {
|
|
23209
|
+
for (var i = 0; i < opsWithAddToMeasure[j].addToMeasure.length; i++) {
|
|
23210
|
+
var measure = opsWithAddToMeasure[j].addToMeasure[i];
|
|
23211
|
+
if (measure.opt != optionCodex) continue;
|
|
23212
|
+
value = this.calculateMeasure(measure, value);
|
|
23213
|
+
}
|
|
23214
|
+
}
|
|
23215
|
+
return value;
|
|
23216
|
+
}
|
|
23217
|
+
}, {
|
|
23218
|
+
key: "calculateMeasure",
|
|
23219
|
+
value: function calculateMeasure(measure, value) {
|
|
23220
|
+
switch (measure.op) {
|
|
23221
|
+
case '+':
|
|
23222
|
+
return Math.round(value + measure.value);
|
|
23223
|
+
case '-':
|
|
23224
|
+
return Math.round(value - measure.value);
|
|
23225
|
+
case '*':
|
|
23226
|
+
return Math.round(value * measure.value);
|
|
23227
|
+
case '/':
|
|
23228
|
+
return Math.round(value / measure.value);
|
|
23229
|
+
}
|
|
23230
|
+
LOG$d.error(new Error('operator ' + measure.op + ' not implemented'));
|
|
23231
|
+
return value;
|
|
23232
|
+
}
|
|
23129
23233
|
}, {
|
|
23130
23234
|
key: "clearOP",
|
|
23131
23235
|
value: function clearOP(optionCodex) {
|
|
@@ -24016,7 +24120,7 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24016
24120
|
break;
|
|
24017
24121
|
}
|
|
24018
24122
|
_context.next = 4;
|
|
24019
|
-
return Promise.resolve().then(function () { return require('./ShelfPlanner-
|
|
24123
|
+
return Promise.resolve().then(function () { return require('./ShelfPlanner-66616811.js'); });
|
|
24020
24124
|
case 4:
|
|
24021
24125
|
_yield$import = _context.sent;
|
|
24022
24126
|
ShelfPlanner = _yield$import["default"];
|
|
@@ -24147,6 +24251,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24147
24251
|
}
|
|
24148
24252
|
if ((mUnit || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') && this.parentHasSameOption(OP)) {
|
|
24149
24253
|
var freeTextMeasure = parseFloat(myArtOPS.freeText ? myArtOPS.freeText : '');
|
|
24254
|
+
var newFreeTextMeasure = this.calcAddToMeasure(OP, freeTextMeasure);
|
|
24255
|
+
LOG$d.debug('freetext changed by addToMeasure at price calculation', newFreeTextMeasure, freeTextMeasure, myArtOPS.addToMeasure);
|
|
24256
|
+
freeTextMeasure = newFreeTextMeasure;
|
|
24150
24257
|
if (freeTextMeasure || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') {
|
|
24151
24258
|
if (calcUnitPrice != 0) {
|
|
24152
24259
|
var quantity = 0;
|
|
@@ -24460,6 +24567,13 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24460
24567
|
}
|
|
24461
24568
|
}
|
|
24462
24569
|
}
|
|
24570
|
+
//for classification usecase when suboption and option have the same name like OPTOPT_MATERIAL_1_00 and OPTOPT_MATERIAL_1_00.OPTOPT_MATERIAL_1_00
|
|
24571
|
+
if (_ops8) {
|
|
24572
|
+
var _ops8$valCodex;
|
|
24573
|
+
if ((_ops8$valCodex = _ops8.valCodex) !== null && _ops8$valCodex !== void 0 && _ops8$valCodex.startsWith('OPVSUB_') && !validValues[_key4 + '.' + _key4] && this.getArticleOptionState(_key4 + '.' + _key4)) {
|
|
24574
|
+
validValues[_key4 + '.' + _key4] = myValues[_key4];
|
|
24575
|
+
}
|
|
24576
|
+
}
|
|
24463
24577
|
}
|
|
24464
24578
|
return validValues;
|
|
24465
24579
|
}
|
|
@@ -24660,8 +24774,9 @@ var DivaArticle = /*#__PURE__*/function () {
|
|
|
24660
24774
|
}, {
|
|
24661
24775
|
key: "addOptionStateFromArticleToPlannerData",
|
|
24662
24776
|
value: function addOptionStateFromArticleToPlannerData(ret, alternateRenderInfo) {
|
|
24663
|
-
|
|
24664
|
-
|
|
24777
|
+
var articleOptions = this.getArticleOptionStatesWithOptionsForPrint();
|
|
24778
|
+
for (var key in articleOptions) {
|
|
24779
|
+
this.addOptionStateToPlannerData(ret, articleOptions[key], alternateRenderInfo);
|
|
24665
24780
|
}
|
|
24666
24781
|
for (var _key5 in this.article.partlistArticles) {
|
|
24667
24782
|
var partlistArticle = this.article.partlistArticles[_key5];
|
|
@@ -24973,7 +25088,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24973
25088
|
value: //Initialisiert eventuell Option Tree und Infos im CatalogArticle
|
|
24974
25089
|
function () {
|
|
24975
25090
|
var _loadArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, articleCodex, initParams) {
|
|
24976
|
-
var _yield$this$preLoadAr, catalog, catalogArticle, newBasketId
|
|
25091
|
+
var _yield$this$preLoadAr, catalog, catalogArticle, newBasketId;
|
|
24977
25092
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
24978
25093
|
while (1) switch (_context.prev = _context.next) {
|
|
24979
25094
|
case 0:
|
|
@@ -24997,12 +25112,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
|
|
|
24997
25112
|
articleCodex: articleCodex
|
|
24998
25113
|
}
|
|
24999
25114
|
}));
|
|
25000
|
-
(
|
|
25001
|
-
|
|
25002
|
-
title: set.i18n.t('modals.error_accured')
|
|
25003
|
-
});
|
|
25004
|
-
return _context.abrupt("return", false);
|
|
25005
|
-
case 13:
|
|
25115
|
+
throw new Error('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!');
|
|
25116
|
+
case 12:
|
|
25006
25117
|
case "end":
|
|
25007
25118
|
return _context.stop();
|
|
25008
25119
|
}
|
|
@@ -28701,7 +28812,7 @@ var DivaSet = /*#__PURE__*/function () {
|
|
|
28701
28812
|
break;
|
|
28702
28813
|
}
|
|
28703
28814
|
_context5.next = 3;
|
|
28704
|
-
return Promise.resolve().then(function () { return require('./DoorPlanner-
|
|
28815
|
+
return Promise.resolve().then(function () { return require('./DoorPlanner-d89490ec.js'); });
|
|
28705
28816
|
case 3:
|
|
28706
28817
|
_yield$import = _context5.sent;
|
|
28707
28818
|
DoorPlanner = _yield$import["default"];
|
|
@@ -30612,10 +30723,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
30612
30723
|
//hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
|
|
30613
30724
|
var optionsStates = optionStatesOfArticles[basketId];
|
|
30614
30725
|
for (var optionCodex in optionsStates) {
|
|
30726
|
+
var _ops$addToMeasure;
|
|
30615
30727
|
var ops = optionsStates[optionCodex];
|
|
30616
30728
|
var selectionmode = ops.selectionmode;
|
|
30617
30729
|
if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
|
|
30618
|
-
if (!ops.isInvisible && (selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && set.api.showSelectionModeZero()) && ops.isDoShow && ops.visibleCount > 0) {
|
|
30730
|
+
if (!ops.isInvisible && (selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$addToMeasure = ops.addToMeasure) !== null && _ops$addToMeasure !== void 0 && _ops$addToMeasure.length) && ops.visibleCount > 0) {
|
|
30619
30731
|
this.addOptionsStateToConfigTree(set, set.configTree, articles, basketId, ops, optionCodex, selectionmode, addToTabGroup);
|
|
30620
30732
|
}
|
|
30621
30733
|
}
|
|
@@ -31204,8 +31316,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
31204
31316
|
value: function prepareConfigItemsForView(set, ops, myConfigItems, constructionRules, selectedVals, targetArticles, optionCodex,
|
|
31205
31317
|
//bei einer OPG wird hier dessen hauptoptionCodex Übergeben
|
|
31206
31318
|
idmOpgGroupName, idmOpgValCodex, idmOpgOptionCodex, freeTextValue, freeTextLang) {
|
|
31207
|
-
var myConfigItemsForView = []
|
|
31208
|
-
|
|
31319
|
+
var myConfigItemsForView = [];
|
|
31320
|
+
var objectKeys = Object.keys(myConfigItems);
|
|
31321
|
+
var groupContentItemIdObject = this.getGroupContentItemIdObject(Object.values(myConfigItems), idmOpgGroupName);
|
|
31209
31322
|
var _loop8 = function _loop8() {
|
|
31210
31323
|
var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
|
|
31211
31324
|
var item = myConfigItems[objectKeys[i]];
|
|
@@ -31254,10 +31367,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
31254
31367
|
//for freeText
|
|
31255
31368
|
//if a opv has isFreeText = true and its selected a Textbox sould appear in the OptionValue
|
|
31256
31369
|
//if the text is empty the opv is really selected
|
|
31257
|
-
contentItemId: item.contentItemId,
|
|
31258
31370
|
isOPVG: item.isOPVG,
|
|
31259
31371
|
isParentOPVG: item.parent.codex.startsWith('OPV'),
|
|
31260
|
-
|
|
31372
|
+
contentItemId: item.contentItemId,
|
|
31373
|
+
groupContentItemId: groupName ? groupContentItemIdObject[groupName] : undefined,
|
|
31261
31374
|
idmOpgOptionCodex: idmOpgOptionCodex,
|
|
31262
31375
|
idmOpgValCodex: idmOpgValCodex,
|
|
31263
31376
|
isFreeText: item.isFreeText,
|
|
@@ -31282,6 +31395,18 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
31282
31395
|
myConfigItemsForView: myConfigItemsForView
|
|
31283
31396
|
};
|
|
31284
31397
|
}
|
|
31398
|
+
}, {
|
|
31399
|
+
key: "getGroupContentItemIdObject",
|
|
31400
|
+
value: function getGroupContentItemIdObject(configItems, alternativeGroupName) {
|
|
31401
|
+
var groupContentItemIdObject = {};
|
|
31402
|
+
for (var i = 0; i < configItems.length; i++) {
|
|
31403
|
+
var _item$groupName;
|
|
31404
|
+
var item = configItems[i];
|
|
31405
|
+
var groupName = (_item$groupName = item.groupName) !== null && _item$groupName !== void 0 ? _item$groupName : alternativeGroupName;
|
|
31406
|
+
if (groupName && item.groupContentItemId) groupContentItemIdObject[groupName] = item.groupContentItemId;
|
|
31407
|
+
}
|
|
31408
|
+
return groupContentItemIdObject;
|
|
31409
|
+
}
|
|
31285
31410
|
}, {
|
|
31286
31411
|
key: "getProductList",
|
|
31287
31412
|
value: function getProductList() {
|
|
@@ -31299,10 +31424,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
|
|
|
31299
31424
|
//hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
|
|
31300
31425
|
var optionsStates = optionStatesOfArticles[iKey];
|
|
31301
31426
|
for (var jKey in optionsStates) {
|
|
31427
|
+
var _ops$addToMeasure2;
|
|
31302
31428
|
var ops = optionsStates[jKey];
|
|
31303
31429
|
var selectionmode = ops.selectionmode;
|
|
31304
31430
|
if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
|
|
31305
|
-
if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0) {
|
|
31431
|
+
if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0 || !!((_ops$addToMeasure2 = ops.addToMeasure) !== null && _ops$addToMeasure2 !== void 0 && _ops$addToMeasure2.length)) {
|
|
31306
31432
|
this.addOptionsStateToConfigTree(set, configTree, articles, iKey, ops, jKey, selectionmode);
|
|
31307
31433
|
}
|
|
31308
31434
|
}
|
|
@@ -34064,6 +34190,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34064
34190
|
origOrderSet.AccountLogo = actOrderSet.AccountLogo;
|
|
34065
34191
|
origOrderSet.CatalogOfflineVersion = actOrderSet.CatalogOfflineVersion;
|
|
34066
34192
|
origOrderSet.CatalogGUID = actOrderSet.CatalogGUID;
|
|
34193
|
+
origOrderSet.RetailCatalogNr = actOrderSet.RetailCatalogNr;
|
|
34067
34194
|
origOrderSet.CollectionGUID = actOrderSet.CollectionGUID;
|
|
34068
34195
|
origOrderSet.OrderLines = actOrderSet.OrderLines;
|
|
34069
34196
|
origOrderSet.OrderSetDesc = actOrderSet.OrderSetDesc;
|
|
@@ -34076,6 +34203,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34076
34203
|
origOrderSet.SetVariantBasketDatas = actOrderSet.SetVariantBasketDatas;
|
|
34077
34204
|
origOrderSet.BBox = actOrderSet.BBox;
|
|
34078
34205
|
origOrderSet.VariantDescription = actOrderSet.VariantDescription;
|
|
34206
|
+
origOrderSet.OfflineData = actOrderSet.OfflineData;
|
|
34079
34207
|
if (actOrderSet.ConfigVariants && origOrderSet.ConfigVariants) origOrderSet.ConfigVariants = actOrderSet.ConfigVariants.map(function (variant, index) {
|
|
34080
34208
|
var _origOrderSet$ConfigV;
|
|
34081
34209
|
var configVariant = (_origOrderSet$ConfigV = origOrderSet.ConfigVariants) === null || _origOrderSet$ConfigV === void 0 ? void 0 : _origOrderSet$ConfigV[index];
|
|
@@ -34169,6 +34297,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34169
34297
|
CatalogName_locales: catalogData.name_locales,
|
|
34170
34298
|
CatalogOfflineVersion: catalogData.offlineVersion,
|
|
34171
34299
|
CatalogOfflineFilesLastUpdate: catalogData.offlineFilesLastUpdate,
|
|
34300
|
+
RetailCatalogNr: catalogData.retailCatalogNr,
|
|
34172
34301
|
Description: catalogData.description,
|
|
34173
34302
|
GroupType: GroupType,
|
|
34174
34303
|
OfflineData: catalogData.offlineData,
|
|
@@ -34189,6 +34318,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
|
|
|
34189
34318
|
SetName: set.setName,
|
|
34190
34319
|
SetName_locales: set.setName_locales,
|
|
34191
34320
|
ProductSetName: set.ProductSetName,
|
|
34321
|
+
SupplierGUID: catalogData.supplierGuid,
|
|
34192
34322
|
SetPrice: set.getSetPrice(),
|
|
34193
34323
|
BruttoSetPrice: bruttoPrice,
|
|
34194
34324
|
SetQuantity: 1,
|
|
@@ -34494,7 +34624,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34494
34624
|
this.plannerConfig = plannerConfig;
|
|
34495
34625
|
this.assignNewDivaNr = !!this.plannerConfig.assignNewDivaNr;
|
|
34496
34626
|
this._handler = plannerConfig.handler;
|
|
34497
|
-
if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex == undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.
|
|
34627
|
+
if (this.plannerConfig.divaNr == undefined && this.plannerConfig.basketData == undefined && this.plannerConfig.catalogCodex == undefined && this.plannerConfig.productId == undefined && this.plannerConfig.customProductId == undefined && this.plannerConfig.returnTo != 'TEST_CONFIGURATORLOGIC' && !((_this$plannerConfig$s = this.plannerConfig.settings) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.viewConfig) !== null && _this$plannerConfig$s !== void 0 && (_this$plannerConfig$s = _this$plannerConfig$s.plannerType) !== null && _this$plannerConfig$s !== void 0 && _this$plannerConfig$s.includes('PRODUCTS') || (_this$plannerConfig$s2 = this.plannerConfig.settings) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.viewConfig) !== null && _this$plannerConfig$s2 !== void 0 && (_this$plannerConfig$s2 = _this$plannerConfig$s2.plannerType) !== null && _this$plannerConfig$s2 !== void 0 && _this$plannerConfig$s2.includes('PROMOTED'))) {
|
|
34498
34628
|
LOG$8.error(new DivaUtils.DivaError('Keine Öffnungsparameter', {
|
|
34499
34629
|
code: 'WC_0003'
|
|
34500
34630
|
}));
|
|
@@ -34697,7 +34827,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34697
34827
|
case 60:
|
|
34698
34828
|
return _context.abrupt("return", _context.sent);
|
|
34699
34829
|
case 63:
|
|
34700
|
-
if (!((_this$plannerConfig$s3 = this.plannerConfig.settings) !== null && _this$plannerConfig$s3 !== void 0 && (_this$plannerConfig$s3 = _this$plannerConfig$s3.
|
|
34830
|
+
if (!((_this$plannerConfig$s3 = this.plannerConfig.settings) !== null && _this$plannerConfig$s3 !== void 0 && (_this$plannerConfig$s3 = _this$plannerConfig$s3.viewConfig) !== null && _this$plannerConfig$s3 !== void 0 && _this$plannerConfig$s3.loadStartProduct)) {
|
|
34701
34831
|
_context.next = 86;
|
|
34702
34832
|
break;
|
|
34703
34833
|
}
|
|
@@ -34729,7 +34859,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34729
34859
|
return _context.abrupt("return", _context.sent);
|
|
34730
34860
|
case 75:
|
|
34731
34861
|
successfully = false;
|
|
34732
|
-
if (!((_this$plannerConfig$s4 = this.plannerConfig.settings) !== null && _this$plannerConfig$s4 !== void 0 && (_this$plannerConfig$s4 = _this$plannerConfig$s4.
|
|
34862
|
+
if (!((_this$plannerConfig$s4 = this.plannerConfig.settings) !== null && _this$plannerConfig$s4 !== void 0 && (_this$plannerConfig$s4 = _this$plannerConfig$s4.viewConfig) !== null && _this$plannerConfig$s4 !== void 0 && _this$plannerConfig$s4.initFirstCatalog)) {
|
|
34733
34863
|
_context.next = 80;
|
|
34734
34864
|
break;
|
|
34735
34865
|
}
|
|
@@ -34756,7 +34886,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
34756
34886
|
_context.next = 91;
|
|
34757
34887
|
break;
|
|
34758
34888
|
case 86:
|
|
34759
|
-
if (!((_this$plannerConfig$s5 = this.plannerConfig.settings) !== null && _this$plannerConfig$s5 !== void 0 && (_this$plannerConfig$s5 = _this$plannerConfig$s5.
|
|
34889
|
+
if (!((_this$plannerConfig$s5 = this.plannerConfig.settings) !== null && _this$plannerConfig$s5 !== void 0 && (_this$plannerConfig$s5 = _this$plannerConfig$s5.viewConfig) !== null && _this$plannerConfig$s5 !== void 0 && _this$plannerConfig$s5.initFirstCatalog)) {
|
|
34760
34890
|
_context.next = 91;
|
|
34761
34891
|
break;
|
|
34762
34892
|
}
|
|
@@ -35309,7 +35439,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35309
35439
|
key: "saveToBasket",
|
|
35310
35440
|
value: function () {
|
|
35311
35441
|
var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(api, actBasket, returnTo) {
|
|
35312
|
-
var _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
|
|
35442
|
+
var _this$plannerConfig$s9, _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
|
|
35313
35443
|
var response;
|
|
35314
35444
|
return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
|
|
35315
35445
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -35320,7 +35450,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35320
35450
|
actBasket.PrintOptions = api.getPrintOptions(this.reportConfig);
|
|
35321
35451
|
actBasket.ClientLanguage = api.getLanguage();
|
|
35322
35452
|
_context11.next = 7;
|
|
35323
|
-
return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, this.plannerConfig.settings.keepSalesPersonDataInBasket);
|
|
35453
|
+
return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$s9 = this.plannerConfig.settings) === null || _this$plannerConfig$s9 === void 0 ? void 0 : _this$plannerConfig$s9.keepSalesPersonDataInBasket);
|
|
35324
35454
|
case 7:
|
|
35325
35455
|
actBasket.UserLanguage = api.getLanguage();
|
|
35326
35456
|
actBasket.PrintRetailLogo = (_this$plannerConfig$c4 = this.plannerConfig.currentOrganization) === null || _this$plannerConfig$c4 === void 0 ? void 0 : _this$plannerConfig$c4.logoUrl;
|
|
@@ -35491,7 +35621,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35491
35621
|
break;
|
|
35492
35622
|
case 3:
|
|
35493
35623
|
_context12.next = 5;
|
|
35494
|
-
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-
|
|
35624
|
+
return Promise.resolve().then(function () { return require('./PfisterWWSHandler-07873882.js'); });
|
|
35495
35625
|
case 5:
|
|
35496
35626
|
_yield$import = _context12.sent;
|
|
35497
35627
|
PfisterWWSHandler = _yield$import["default"];
|
|
@@ -35499,7 +35629,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35499
35629
|
return _context12.abrupt("break", 27);
|
|
35500
35630
|
case 9:
|
|
35501
35631
|
_context12.next = 11;
|
|
35502
|
-
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-
|
|
35632
|
+
return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-ec82e7f0.js'); });
|
|
35503
35633
|
case 11:
|
|
35504
35634
|
_yield$import2 = _context12.sent;
|
|
35505
35635
|
LiviqueWWSHandler = _yield$import2["default"];
|
|
@@ -35507,7 +35637,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35507
35637
|
return _context12.abrupt("break", 27);
|
|
35508
35638
|
case 15:
|
|
35509
35639
|
_context12.next = 17;
|
|
35510
|
-
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-
|
|
35640
|
+
return Promise.resolve().then(function () { return require('./SeriousBasketHandler-32ae71b6.js'); });
|
|
35511
35641
|
case 17:
|
|
35512
35642
|
_yield$import3 = _context12.sent;
|
|
35513
35643
|
SeriousWWSHandler = _yield$import3["default"];
|
|
@@ -35515,7 +35645,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
|
|
|
35515
35645
|
return _context12.abrupt("break", 27);
|
|
35516
35646
|
case 21:
|
|
35517
35647
|
_context12.next = 23;
|
|
35518
|
-
return Promise.resolve().then(function () { return require('./StandardWWSHandler-
|
|
35648
|
+
return Promise.resolve().then(function () { return require('./StandardWWSHandler-65315d05.js'); });
|
|
35519
35649
|
case 23:
|
|
35520
35650
|
_yield$import4 = _context12.sent;
|
|
35521
35651
|
StandardWWSHandler = _yield$import4["default"];
|
|
@@ -35800,28 +35930,6 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35800
35930
|
value: function zoomToStep(zoomStep) {
|
|
35801
35931
|
this.navInfo3D.zoom = zoomStep;
|
|
35802
35932
|
}
|
|
35803
|
-
}, {
|
|
35804
|
-
key: "swipeLeft",
|
|
35805
|
-
value: function swipeLeft() {
|
|
35806
|
-
this.navInfo3D.rotHori -= 15;
|
|
35807
|
-
}
|
|
35808
|
-
}, {
|
|
35809
|
-
key: "swipRight",
|
|
35810
|
-
value: function swipRight() {
|
|
35811
|
-
this.navInfo3D.rotHori += 15;
|
|
35812
|
-
}
|
|
35813
|
-
}, {
|
|
35814
|
-
key: "swipeUp",
|
|
35815
|
-
value: function swipeUp() {
|
|
35816
|
-
if (this.navInfo3D.rotVert == -15) return;
|
|
35817
|
-
this.navInfo3D.rotVert -= 15;
|
|
35818
|
-
}
|
|
35819
|
-
}, {
|
|
35820
|
-
key: "swipeDown",
|
|
35821
|
-
value: function swipeDown() {
|
|
35822
|
-
if (this.navInfo3D.rotVert == 45) return;
|
|
35823
|
-
this.navInfo3D.rotVert += 15;
|
|
35824
|
-
}
|
|
35825
35933
|
}, {
|
|
35826
35934
|
key: "setVpName",
|
|
35827
35935
|
value: function setVpName(vpName) {
|
|
@@ -35876,6 +35984,7 @@ var ViewPointHandler = /*#__PURE__*/function () {
|
|
|
35876
35984
|
key: "initRoomList",
|
|
35877
35985
|
value: function initRoomList(roomlist, defaultBackgroundWidth, defaultBackgroundHeight) {
|
|
35878
35986
|
this.roomListInfo = [];
|
|
35987
|
+
if (!roomlist) return;
|
|
35879
35988
|
var roomListObj = JSON.parse(roomlist);
|
|
35880
35989
|
var roomIsSel = true;
|
|
35881
35990
|
for (var roomCodex in roomListObj) {
|
|
@@ -36958,7 +37067,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
36958
37067
|
while (1) switch (_context3.prev = _context3.next) {
|
|
36959
37068
|
case 0:
|
|
36960
37069
|
_context3.next = 2;
|
|
36961
|
-
return Promise.resolve().then(function () { return require('./Host3DSignalR-
|
|
37070
|
+
return Promise.resolve().then(function () { return require('./Host3DSignalR-7a28ca39.js'); });
|
|
36962
37071
|
case 2:
|
|
36963
37072
|
_yield$import = _context3.sent;
|
|
36964
37073
|
Host3DSignalR = _yield$import["default"];
|
|
@@ -37659,7 +37768,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37659
37768
|
}, {
|
|
37660
37769
|
key: "handle3DVisualizationChanged",
|
|
37661
37770
|
value: function handle3DVisualizationChanged(mode, params) {
|
|
37662
|
-
var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3
|
|
37771
|
+
var _params$nav3DZoom, _params$nav3DZoom2, _params$nav3DZoom3;
|
|
37663
37772
|
switch (mode) {
|
|
37664
37773
|
case 'Nav3DFullScreen':
|
|
37665
37774
|
break;
|
|
@@ -37672,17 +37781,6 @@ var PlannerHandler3D = /*#__PURE__*/function () {
|
|
|
37672
37781
|
this.viewPointHandler.zoomToStep(params.nav3DZoom.zoomVal);
|
|
37673
37782
|
}
|
|
37674
37783
|
break;
|
|
37675
|
-
case 'Nav3DSwipe':
|
|
37676
|
-
if ((_params$nav3DSwipe = params.nav3DSwipe) !== null && _params$nav3DSwipe !== void 0 && _params$nav3DSwipe.doSwipeRight) {
|
|
37677
|
-
this.viewPointHandler.swipRight();
|
|
37678
|
-
} else if ((_params$nav3DSwipe2 = params.nav3DSwipe) !== null && _params$nav3DSwipe2 !== void 0 && _params$nav3DSwipe2.doSwipeLeft) {
|
|
37679
|
-
this.viewPointHandler.swipeLeft();
|
|
37680
|
-
} else if ((_params$nav3DSwipe3 = params.nav3DSwipe) !== null && _params$nav3DSwipe3 !== void 0 && _params$nav3DSwipe3.doSwipeDown) {
|
|
37681
|
-
this.viewPointHandler.swipeDown();
|
|
37682
|
-
} else if ((_params$nav3DSwipe4 = params.nav3DSwipe) !== null && _params$nav3DSwipe4 !== void 0 && _params$nav3DSwipe4.doSwipeUp) {
|
|
37683
|
-
this.viewPointHandler.swipeUp();
|
|
37684
|
-
}
|
|
37685
|
-
break;
|
|
37686
37784
|
case 'Nav3DFocus':
|
|
37687
37785
|
this.viewPointHandler.focusOnElementId(params.nav3DFocus.setId, params.nav3DFocus.focusElementId);
|
|
37688
37786
|
break;
|
|
@@ -38523,7 +38621,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38523
38621
|
break;
|
|
38524
38622
|
case 8:
|
|
38525
38623
|
_context4.next = 10;
|
|
38526
|
-
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-
|
|
38624
|
+
return Promise.resolve().then(function () { return require('./DivaStandardPlanner-b71fe21b.js'); });
|
|
38527
38625
|
case 10:
|
|
38528
38626
|
_yield$import = _context4.sent;
|
|
38529
38627
|
DivaStandardPlanner = _yield$import["default"];
|
|
@@ -38534,7 +38632,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
38534
38632
|
return _context4.abrupt("break", 21);
|
|
38535
38633
|
case 15:
|
|
38536
38634
|
_context4.next = 17;
|
|
38537
|
-
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-
|
|
38635
|
+
return Promise.resolve().then(function () { return require('./DivaBoxPlanner-8f122084.js'); });
|
|
38538
38636
|
case 17:
|
|
38539
38637
|
_yield$import2 = _context4.sent;
|
|
38540
38638
|
DivaBoxPlanner = _yield$import2["default"];
|
|
@@ -39292,7 +39390,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
|
|
|
39292
39390
|
planner3DGridEnabled: false,
|
|
39293
39391
|
mediaServiceSaveMode: 'STREAM',
|
|
39294
39392
|
doShow3DDimensionLines: !!doShow3DDimensionLines
|
|
39295
|
-
}, undefined);
|
|
39393
|
+
}, undefined, true);
|
|
39296
39394
|
} else {
|
|
39297
39395
|
this.handler3D.handle3DVisualizationChanged(mode, params);
|
|
39298
39396
|
}
|
|
@@ -40288,7 +40386,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40288
40386
|
key: "initialize",
|
|
40289
40387
|
value: function () {
|
|
40290
40388
|
var _initialize = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee14() {
|
|
40291
|
-
var viewReadyPromise, loadSuccessful
|
|
40389
|
+
var viewReadyPromise, loadSuccessful;
|
|
40292
40390
|
return _regeneratorRuntime__default["default"].wrap(function _callee14$(_context14) {
|
|
40293
40391
|
while (1) switch (_context14.prev = _context14.next) {
|
|
40294
40392
|
case 0:
|
|
@@ -40317,59 +40415,97 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40317
40415
|
DivaUtils__default["default"].businessMetrics.setConfiguratorSessionId();
|
|
40318
40416
|
}
|
|
40319
40417
|
if (!loadSuccessful) {
|
|
40320
|
-
_context14.next =
|
|
40418
|
+
_context14.next = 27;
|
|
40321
40419
|
break;
|
|
40322
40420
|
}
|
|
40421
|
+
_context14.prev = 15;
|
|
40422
|
+
_context14.next = 18;
|
|
40423
|
+
return this.initializeSets(loadSuccessful, viewReadyPromise);
|
|
40424
|
+
case 18:
|
|
40425
|
+
return _context14.abrupt("return", _context14.sent);
|
|
40426
|
+
case 21:
|
|
40427
|
+
_context14.prev = 21;
|
|
40428
|
+
_context14.t0 = _context14["catch"](15);
|
|
40429
|
+
this.onInitializationError();
|
|
40430
|
+
return _context14.abrupt("return", false);
|
|
40431
|
+
case 25:
|
|
40432
|
+
_context14.next = 30;
|
|
40433
|
+
break;
|
|
40434
|
+
case 27:
|
|
40435
|
+
this.onInitializationError();
|
|
40436
|
+
//fehler beim laden vom basket..
|
|
40437
|
+
LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
|
|
40438
|
+
return _context14.abrupt("return", false);
|
|
40439
|
+
case 30:
|
|
40440
|
+
case "end":
|
|
40441
|
+
return _context14.stop();
|
|
40442
|
+
}
|
|
40443
|
+
}, _callee14, this, [[15, 21]]);
|
|
40444
|
+
}));
|
|
40445
|
+
function initialize() {
|
|
40446
|
+
return _initialize.apply(this, arguments);
|
|
40447
|
+
}
|
|
40448
|
+
return initialize;
|
|
40449
|
+
}()
|
|
40450
|
+
}, {
|
|
40451
|
+
key: "initializeSets",
|
|
40452
|
+
value: function () {
|
|
40453
|
+
var _initializeSets = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee15(loadSuccessful, viewReadyPromise) {
|
|
40454
|
+
var _this$actions16, _set$getDivaArticles;
|
|
40455
|
+
var _this$actions15, _this$actions15$toggl, initSetState, set, oldProductId, result, _this$actions17, catalogData, initializationId, _this$plannerConfig$a;
|
|
40456
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context15) {
|
|
40457
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
40458
|
+
case 0:
|
|
40323
40459
|
if (!(typeof loadSuccessful != 'boolean')) {
|
|
40324
|
-
|
|
40460
|
+
_context15.next = 9;
|
|
40325
40461
|
break;
|
|
40326
40462
|
}
|
|
40327
40463
|
if (!(loadSuccessful.type == 'ProductList')) {
|
|
40328
|
-
|
|
40464
|
+
_context15.next = 9;
|
|
40329
40465
|
break;
|
|
40330
40466
|
}
|
|
40331
|
-
|
|
40467
|
+
_context15.next = 4;
|
|
40332
40468
|
return viewReadyPromise;
|
|
40333
|
-
case
|
|
40334
|
-
|
|
40469
|
+
case 4:
|
|
40470
|
+
_context15.next = 6;
|
|
40335
40471
|
return this.initView();
|
|
40336
|
-
case
|
|
40472
|
+
case 6:
|
|
40337
40473
|
this.subscribeToWebPlannerEvents();
|
|
40338
40474
|
(_this$actions15 = this.actions) === null || _this$actions15 === void 0 || (_this$actions15$toggl = _this$actions15.toggleLoading) === null || _this$actions15$toggl === void 0 || _this$actions15$toggl.call(_this$actions15, 'Planner_Loading', false, false);
|
|
40339
|
-
return
|
|
40340
|
-
case
|
|
40475
|
+
return _context15.abrupt("return", true);
|
|
40476
|
+
case 9:
|
|
40341
40477
|
this.divaNr = this.divaBasketHandler.actDivaNr;
|
|
40342
40478
|
initSetState = this.getInitStateForSet();
|
|
40343
40479
|
this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
|
|
40344
|
-
|
|
40480
|
+
_context15.next = 14;
|
|
40345
40481
|
return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
|
|
40346
|
-
case
|
|
40482
|
+
case 14:
|
|
40347
40483
|
set = this.actSet();
|
|
40348
40484
|
oldProductId = this.divaBasketHandler.actBasket.MatchingProductId || this.divaBasketHandler.actBasket.OrigProductId;
|
|
40349
40485
|
if (!(oldProductId && set && set !== null && set !== void 0 && set.api.doCheckForProductsPrice())) {
|
|
40350
|
-
|
|
40486
|
+
_context15.next = 23;
|
|
40351
40487
|
break;
|
|
40352
40488
|
}
|
|
40353
|
-
|
|
40489
|
+
_context15.next = 19;
|
|
40354
40490
|
return this.divaBasketHandler.getProduct(this.api, oldProductId);
|
|
40355
|
-
case
|
|
40356
|
-
result =
|
|
40491
|
+
case 19:
|
|
40492
|
+
result = _context15.sent;
|
|
40357
40493
|
if (result) productHandlerInstance.handleFountMatchingProducts(set, [result], set.setHash);
|
|
40358
|
-
|
|
40494
|
+
_context15.next = 24;
|
|
40359
40495
|
break;
|
|
40360
|
-
case
|
|
40496
|
+
case 23:
|
|
40361
40497
|
if (typeof loadSuccessful != 'boolean' && set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
|
|
40362
40498
|
if (loadSuccessful.type != 'ProductList') {
|
|
40363
40499
|
productHandlerInstance.handleFountMatchingProducts(set, [loadSuccessful], set.setHash);
|
|
40364
40500
|
}
|
|
40365
40501
|
}
|
|
40366
|
-
case
|
|
40367
|
-
|
|
40502
|
+
case 24:
|
|
40503
|
+
_context15.next = 26;
|
|
40368
40504
|
return viewReadyPromise;
|
|
40369
|
-
case
|
|
40370
|
-
|
|
40505
|
+
case 26:
|
|
40506
|
+
_context15.next = 28;
|
|
40371
40507
|
return this.initView();
|
|
40372
|
-
case
|
|
40508
|
+
case 28:
|
|
40373
40509
|
(_this$actions16 = this.actions) === null || _this$actions16 === void 0 || _this$actions16.onEvent({
|
|
40374
40510
|
type: 'onConfiguratorReady'
|
|
40375
40511
|
});
|
|
@@ -40379,7 +40515,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40379
40515
|
});
|
|
40380
40516
|
}
|
|
40381
40517
|
this.subscribeToWebPlannerEvents();
|
|
40382
|
-
this.divaBasketHandler.actBasket;
|
|
40383
40518
|
catalogData = set === null || set === void 0 ? void 0 : set.CatalogData;
|
|
40384
40519
|
initializationId = undefined;
|
|
40385
40520
|
if (this.divaBasketHandler.initializationTypeGetter == 'PRODUCT_ID') {
|
|
@@ -40404,25 +40539,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40404
40539
|
initializationType: this.divaBasketHandler.initializationTypeGetter,
|
|
40405
40540
|
initializationId: initializationId
|
|
40406
40541
|
}, false);
|
|
40407
|
-
|
|
40542
|
+
_context15.next = 37;
|
|
40408
40543
|
return this.fillBaksetforOnWebPlanerConfigChange(undefined, true);
|
|
40409
|
-
case
|
|
40410
|
-
return
|
|
40411
|
-
case
|
|
40412
|
-
this.onInitializationError();
|
|
40413
|
-
//fehler beim laden vom basket..
|
|
40414
|
-
LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
|
|
40415
|
-
return _context14.abrupt("return", false);
|
|
40416
|
-
case 59:
|
|
40544
|
+
case 37:
|
|
40545
|
+
return _context15.abrupt("return", true);
|
|
40546
|
+
case 38:
|
|
40417
40547
|
case "end":
|
|
40418
|
-
return
|
|
40548
|
+
return _context15.stop();
|
|
40419
40549
|
}
|
|
40420
|
-
},
|
|
40550
|
+
}, _callee15, this);
|
|
40421
40551
|
}));
|
|
40422
|
-
function
|
|
40423
|
-
return
|
|
40552
|
+
function initializeSets(_x53, _x54) {
|
|
40553
|
+
return _initializeSets.apply(this, arguments);
|
|
40424
40554
|
}
|
|
40425
|
-
return
|
|
40555
|
+
return initializeSets;
|
|
40426
40556
|
}()
|
|
40427
40557
|
}, {
|
|
40428
40558
|
key: "updatePlannerConfig",
|
|
@@ -40481,11 +40611,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40481
40611
|
var _this$plannerConfig$a3;
|
|
40482
40612
|
if (!(onErrorHandling !== null && onErrorHandling !== void 0 && onErrorHandling.hideErrorMsg)) {
|
|
40483
40613
|
var _this$plannerConfig$a2, _this$i18n$t, _this$i18n4, _onErrorHandling$erro;
|
|
40614
|
+
var isWeb = this.api.getApplicationEnvironment() == 'WEB';
|
|
40484
40615
|
(_this$plannerConfig$a2 = this.plannerConfig.actions) === null || _this$plannerConfig$a2 === void 0 || _this$plannerConfig$a2.openModal({
|
|
40485
40616
|
title: (_this$i18n$t = (_this$i18n4 = this.i18n()) === null || _this$i18n4 === void 0 ? void 0 : _this$i18n4.t((_onErrorHandling$erro = onErrorHandling.errorMsg) !== null && _onErrorHandling$erro !== void 0 ? _onErrorHandling$erro : 'modals.error_accured')) !== null && _this$i18n$t !== void 0 ? _this$i18n$t : 'An error occured. Please try again later.',
|
|
40486
40617
|
accept: true,
|
|
40487
40618
|
callback: function callback(accepted) {
|
|
40488
|
-
if (accepted &&
|
|
40619
|
+
if (accepted && isWeb) {
|
|
40489
40620
|
var _this2$state;
|
|
40490
40621
|
_this2.callEvent('onWebPlanerClose');
|
|
40491
40622
|
((_this2$state = _this2.state) === null || _this2$state === void 0 ? void 0 : _this2$state.isFullscreenComponent) && _this2.callEvent('onFullscreenClose');
|
|
@@ -40512,7 +40643,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40512
40643
|
var _this$plannerConfig$a6, _this$i18n7, _this$plannerConfig$a7, _this$plannerConfig$c;
|
|
40513
40644
|
(_this$plannerConfig$a6 = this.plannerConfig.actions) === null || _this$plannerConfig$a6 === void 0 || _this$plannerConfig$a6.openModal({
|
|
40514
40645
|
accept: true,
|
|
40515
|
-
title: (_this$i18n7 = this.i18n()) === null || _this$i18n7 === void 0 ? void 0 : _this$i18n7.t('modals.
|
|
40646
|
+
title: (_this$i18n7 = this.i18n()) === null || _this$i18n7 === void 0 ? void 0 : _this$i18n7.t('modals.error_accured33')
|
|
40516
40647
|
});
|
|
40517
40648
|
(_this$plannerConfig$a7 = this.plannerConfig.actions) === null || _this$plannerConfig$a7 === void 0 || _this$plannerConfig$a7.openComponent({
|
|
40518
40649
|
type: 'SELLER',
|
|
@@ -40549,23 +40680,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40549
40680
|
}, {
|
|
40550
40681
|
key: "initView",
|
|
40551
40682
|
value: (function () {
|
|
40552
|
-
var _initView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
40683
|
+
var _initView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16() {
|
|
40553
40684
|
var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
|
|
40554
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
40555
|
-
while (1) switch (
|
|
40685
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context16) {
|
|
40686
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
40556
40687
|
case 0:
|
|
40557
40688
|
set = this.actSet();
|
|
40558
40689
|
plannerMode = this.getPlannerMode();
|
|
40559
40690
|
this.initConfiguratorMode(plannerMode);
|
|
40560
40691
|
if (!(plannerMode == 'ProductList')) {
|
|
40561
|
-
|
|
40692
|
+
_context16.next = 7;
|
|
40562
40693
|
break;
|
|
40563
40694
|
}
|
|
40564
40695
|
(_this$initConfigurato = this.initConfiguratorStructure) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
|
|
40565
|
-
|
|
40696
|
+
_context16.next = 17;
|
|
40566
40697
|
break;
|
|
40567
40698
|
case 7:
|
|
40568
|
-
|
|
40699
|
+
_context16.next = 9;
|
|
40569
40700
|
return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
|
|
40570
40701
|
case 9:
|
|
40571
40702
|
//first load the Configuratorstructure STARTCONFIG
|
|
@@ -40579,13 +40710,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40579
40710
|
this.onBasketInitialized();
|
|
40580
40711
|
this.checkMatchingProducts('onInit');
|
|
40581
40712
|
case 17:
|
|
40582
|
-
|
|
40713
|
+
_context16.next = 19;
|
|
40583
40714
|
return this.runInitMode(plannerMode);
|
|
40584
40715
|
case 19:
|
|
40585
40716
|
case "end":
|
|
40586
|
-
return
|
|
40717
|
+
return _context16.stop();
|
|
40587
40718
|
}
|
|
40588
|
-
},
|
|
40719
|
+
}, _callee16, this);
|
|
40589
40720
|
}));
|
|
40590
40721
|
function initView() {
|
|
40591
40722
|
return _initView.apply(this, arguments);
|
|
@@ -40606,26 +40737,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40606
40737
|
}, {
|
|
40607
40738
|
key: "runInitMode",
|
|
40608
40739
|
value: function () {
|
|
40609
|
-
var _runInitMode = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
40740
|
+
var _runInitMode = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee17(plannerMode) {
|
|
40610
40741
|
var _this$state3;
|
|
40611
40742
|
var doDefault, _this$navigateToTabGr2, configStepKey, _this$actSet5, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
|
|
40612
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
40613
|
-
while (1) switch (
|
|
40743
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee17$(_context17) {
|
|
40744
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
40614
40745
|
case 0:
|
|
40615
40746
|
doDefault = true;
|
|
40616
40747
|
if (!(this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER' || this.plannerConfig.initMode == 'SHOW_PDF')) {
|
|
40617
|
-
|
|
40748
|
+
_context17.next = 10;
|
|
40618
40749
|
break;
|
|
40619
40750
|
}
|
|
40620
40751
|
if (this.plannerConfig.initMode == 'OPEN_LEAFLET_BARRIER') this.ReturnTo = 'OPEN_LEAFLET_BARRIER';
|
|
40621
40752
|
if (this.plannerConfig.initMode == 'SHOW_PDF') this.ReturnTo = 'OPEN_PDF';
|
|
40622
40753
|
(_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
|
|
40623
40754
|
//TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
|
|
40624
|
-
|
|
40755
|
+
_context17.next = 7;
|
|
40625
40756
|
return this.saveToBasketWrapper();
|
|
40626
40757
|
case 7:
|
|
40627
40758
|
doDefault = false;
|
|
40628
|
-
|
|
40759
|
+
_context17.next = 11;
|
|
40629
40760
|
break;
|
|
40630
40761
|
case 10:
|
|
40631
40762
|
if (this.plannerConfig.initMode == 'OPENCONFIGTABGROUP' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER_ONLY_MOBILE' && (_this$state3 = this.state) !== null && _this$state3 !== void 0 && _this$state3.dimensions.isMobile) {
|
|
@@ -40649,11 +40780,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40649
40780
|
}
|
|
40650
40781
|
case 12:
|
|
40651
40782
|
case "end":
|
|
40652
|
-
return
|
|
40783
|
+
return _context17.stop();
|
|
40653
40784
|
}
|
|
40654
|
-
},
|
|
40785
|
+
}, _callee17, this);
|
|
40655
40786
|
}));
|
|
40656
|
-
function runInitMode(
|
|
40787
|
+
function runInitMode(_x55) {
|
|
40657
40788
|
return _runInitMode.apply(this, arguments);
|
|
40658
40789
|
}
|
|
40659
40790
|
return runInitMode;
|
|
@@ -40661,16 +40792,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40661
40792
|
}, {
|
|
40662
40793
|
key: "addSetToActPlanningByDivaNr",
|
|
40663
40794
|
value: function () {
|
|
40664
|
-
var _addSetToActPlanningByDivaNr = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
40795
|
+
var _addSetToActPlanningByDivaNr = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee18(divaNr) {
|
|
40665
40796
|
var _this$updateViewPlann10;
|
|
40666
40797
|
var set, orderSets, i, orderset, lastSetToInitialize, loadedSet, articlesKeys;
|
|
40667
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
40668
|
-
while (1) switch (
|
|
40798
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee18$(_context18) {
|
|
40799
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
40669
40800
|
case 0:
|
|
40670
40801
|
set = this.actSet();
|
|
40671
40802
|
this.divaBasketHandler.updateDivaNrInBasket(divaNr);
|
|
40672
40803
|
this.divaBasketHandler.setIgnoreInitObjectWhenInitializing();
|
|
40673
|
-
|
|
40804
|
+
_context18.next = 5;
|
|
40674
40805
|
return this.divaBasketHandler.initializeBasket(this.api);
|
|
40675
40806
|
case 5:
|
|
40676
40807
|
orderSets = this.divaBasketHandler.actBasket.OrderSets;
|
|
@@ -40678,30 +40809,30 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40678
40809
|
i = 0;
|
|
40679
40810
|
case 8:
|
|
40680
40811
|
if (!(i < orderSets.length)) {
|
|
40681
|
-
|
|
40812
|
+
_context18.next = 24;
|
|
40682
40813
|
break;
|
|
40683
40814
|
}
|
|
40684
40815
|
orderset = orderSets[i];
|
|
40685
40816
|
lastSetToInitialize = setHandlerInstance.getOrderSetShouldInitPlanner(orderSets, i);
|
|
40686
40817
|
loadedSet = setHandlerInstance.findLoadedSet(this.sets, orderset.CatalogCodex, orderset.AccountGUID);
|
|
40687
40818
|
if (!loadedSet) {
|
|
40688
|
-
|
|
40819
|
+
_context18.next = 18;
|
|
40689
40820
|
break;
|
|
40690
40821
|
}
|
|
40691
|
-
|
|
40822
|
+
_context18.next = 15;
|
|
40692
40823
|
return setHandlerInstance.addOrderSetArticlesToExistingSet(loadedSet, orderset, lastSetToInitialize);
|
|
40693
40824
|
case 15:
|
|
40694
40825
|
this.checkMatchingProducts('onAdd');
|
|
40695
|
-
|
|
40826
|
+
_context18.next = 20;
|
|
40696
40827
|
break;
|
|
40697
40828
|
case 18:
|
|
40698
|
-
|
|
40829
|
+
_context18.next = 20;
|
|
40699
40830
|
return setHandlerInstance.initSet(orderset, this.getInitStateForSet(), lastSetToInitialize);
|
|
40700
40831
|
case 20:
|
|
40701
40832
|
this.cleanUpEmptySets(true);
|
|
40702
40833
|
case 21:
|
|
40703
40834
|
i++;
|
|
40704
|
-
|
|
40835
|
+
_context18.next = 8;
|
|
40705
40836
|
break;
|
|
40706
40837
|
case 24:
|
|
40707
40838
|
this.divaBasketHandler.actBasket.OrderSets = [];
|
|
@@ -40713,11 +40844,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40713
40844
|
this.loadPaletteInfos(undefined, [articlesKeys[0]], articlesKeys);
|
|
40714
40845
|
case 31:
|
|
40715
40846
|
case "end":
|
|
40716
|
-
return
|
|
40847
|
+
return _context18.stop();
|
|
40717
40848
|
}
|
|
40718
|
-
},
|
|
40849
|
+
}, _callee18, this);
|
|
40719
40850
|
}));
|
|
40720
|
-
function addSetToActPlanningByDivaNr(
|
|
40851
|
+
function addSetToActPlanningByDivaNr(_x56) {
|
|
40721
40852
|
return _addSetToActPlanningByDivaNr.apply(this, arguments);
|
|
40722
40853
|
}
|
|
40723
40854
|
return addSetToActPlanningByDivaNr;
|
|
@@ -40750,28 +40881,28 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40750
40881
|
}, {
|
|
40751
40882
|
key: "setActSetCurConfigStepKey",
|
|
40752
40883
|
value: function () {
|
|
40753
|
-
var _setActSetCurConfigStepKey = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
40884
|
+
var _setActSetCurConfigStepKey = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee19(curConfigStepKey) {
|
|
40754
40885
|
var set;
|
|
40755
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
40756
|
-
while (1) switch (
|
|
40886
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee19$(_context19) {
|
|
40887
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
40757
40888
|
case 0:
|
|
40758
40889
|
set = this.actSet();
|
|
40759
40890
|
if (set) {
|
|
40760
|
-
|
|
40891
|
+
_context19.next = 3;
|
|
40761
40892
|
break;
|
|
40762
40893
|
}
|
|
40763
|
-
return
|
|
40894
|
+
return _context19.abrupt("return");
|
|
40764
40895
|
case 3:
|
|
40765
40896
|
set.ActConfigStepKey = curConfigStepKey;
|
|
40766
|
-
|
|
40897
|
+
_context19.next = 6;
|
|
40767
40898
|
return setHandlerInstance.updateNavigation(set);
|
|
40768
40899
|
case 6:
|
|
40769
40900
|
case "end":
|
|
40770
|
-
return
|
|
40901
|
+
return _context19.stop();
|
|
40771
40902
|
}
|
|
40772
|
-
},
|
|
40903
|
+
}, _callee19, this);
|
|
40773
40904
|
}));
|
|
40774
|
-
function setActSetCurConfigStepKey(
|
|
40905
|
+
function setActSetCurConfigStepKey(_x57) {
|
|
40775
40906
|
return _setActSetCurConfigStepKey.apply(this, arguments);
|
|
40776
40907
|
}
|
|
40777
40908
|
return setActSetCurConfigStepKey;
|
|
@@ -40920,17 +41051,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40920
41051
|
}, {
|
|
40921
41052
|
key: "deletePlannerElement",
|
|
40922
41053
|
value: function () {
|
|
40923
|
-
var _deletePlannerElement = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41054
|
+
var _deletePlannerElement = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee20(setId, elementId, denyElementSelectionClear) {
|
|
40924
41055
|
var _this$updateViewPlann11;
|
|
40925
41056
|
var set, result, _this$updateElementSe5, _this$updateElementSe6;
|
|
40926
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
40927
|
-
while (1) switch (
|
|
41057
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee20$(_context20) {
|
|
41058
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
40928
41059
|
case 0:
|
|
40929
41060
|
set = this.sets[setId];
|
|
40930
|
-
|
|
41061
|
+
_context20.next = 3;
|
|
40931
41062
|
return setHandlerInstance.deleteElementFromSetByElemId(set, elementId, true);
|
|
40932
41063
|
case 3:
|
|
40933
|
-
result =
|
|
41064
|
+
result = _context20.sent;
|
|
40934
41065
|
this.updateConfigStructure();
|
|
40935
41066
|
(_this$updateViewPlann11 = this.updateViewPlannerElements) === null || _this$updateViewPlann11 === void 0 || _this$updateViewPlann11.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
40936
41067
|
this.updatePlannerView('DELETE_PLANNER_ELEMENT');
|
|
@@ -40941,17 +41072,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40941
41072
|
}
|
|
40942
41073
|
this.updatePriceInView();
|
|
40943
41074
|
this.checkMatchingProducts('onDelete');
|
|
40944
|
-
|
|
41075
|
+
_context20.next = 14;
|
|
40945
41076
|
return this.getFreePlacesOnGrids(undefined, 'deleteElement');
|
|
40946
41077
|
case 14:
|
|
40947
41078
|
this.plannerChangeLog('onDeletePlanner');
|
|
40948
41079
|
case 15:
|
|
40949
41080
|
case "end":
|
|
40950
|
-
return
|
|
41081
|
+
return _context20.stop();
|
|
40951
41082
|
}
|
|
40952
|
-
},
|
|
41083
|
+
}, _callee20, this);
|
|
40953
41084
|
}));
|
|
40954
|
-
function deletePlannerElement(
|
|
41085
|
+
function deletePlannerElement(_x58, _x59, _x60) {
|
|
40955
41086
|
return _deletePlannerElement.apply(this, arguments);
|
|
40956
41087
|
}
|
|
40957
41088
|
return deletePlannerElement;
|
|
@@ -40965,17 +41096,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40965
41096
|
}, {
|
|
40966
41097
|
key: "copyPlannerElement",
|
|
40967
41098
|
value: (function () {
|
|
40968
|
-
var _copyPlannerElement = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41099
|
+
var _copyPlannerElement = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee21(setId, elementId, curConfigKey, copyInfo) {
|
|
40969
41100
|
var _this$updateViewPlann12;
|
|
40970
41101
|
var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
|
|
40971
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
40972
|
-
while (1) switch (
|
|
41102
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee21$(_context21) {
|
|
41103
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
40973
41104
|
case 0:
|
|
40974
41105
|
set = this.sets[setId];
|
|
40975
|
-
|
|
41106
|
+
_context21.next = 3;
|
|
40976
41107
|
return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
|
|
40977
41108
|
case 3:
|
|
40978
|
-
newSelectedArticle =
|
|
41109
|
+
newSelectedArticle = _context21.sent;
|
|
40979
41110
|
this.updateConfigStructure();
|
|
40980
41111
|
(_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
|
|
40981
41112
|
this.updatePlannerView('COPY_PLANNER_ELEMENT');
|
|
@@ -40989,14 +41120,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
40989
41120
|
(_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
|
|
40990
41121
|
}
|
|
40991
41122
|
this.checkMatchingProducts('onCopy');
|
|
40992
|
-
return
|
|
41123
|
+
return _context21.abrupt("return", newConfigStepKey);
|
|
40993
41124
|
case 13:
|
|
40994
41125
|
case "end":
|
|
40995
|
-
return
|
|
41126
|
+
return _context21.stop();
|
|
40996
41127
|
}
|
|
40997
|
-
},
|
|
41128
|
+
}, _callee21, this);
|
|
40998
41129
|
}));
|
|
40999
|
-
function copyPlannerElement(
|
|
41130
|
+
function copyPlannerElement(_x61, _x62, _x63, _x64) {
|
|
41000
41131
|
return _copyPlannerElement.apply(this, arguments);
|
|
41001
41132
|
}
|
|
41002
41133
|
return copyPlannerElement;
|
|
@@ -41025,33 +41156,33 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41025
41156
|
}, {
|
|
41026
41157
|
key: "getFreePlacesOnGrids",
|
|
41027
41158
|
value: function () {
|
|
41028
|
-
var _getFreePlacesOnGrids = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41159
|
+
var _getFreePlacesOnGrids = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee22(gridGroup, from) {
|
|
41029
41160
|
var _this$updateFreePlace;
|
|
41030
41161
|
var set, freeShelfGrids, plannedShelfGrids;
|
|
41031
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
41032
|
-
while (1) switch (
|
|
41162
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee22$(_context22) {
|
|
41163
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
41033
41164
|
case 0:
|
|
41034
41165
|
set = this.actSet();
|
|
41035
41166
|
if (set) {
|
|
41036
|
-
|
|
41167
|
+
_context22.next = 3;
|
|
41037
41168
|
break;
|
|
41038
41169
|
}
|
|
41039
41170
|
throw new Error('getFreePlacesOnGrids: act set is not defined!');
|
|
41040
41171
|
case 3:
|
|
41041
41172
|
if (!gridGroup) {
|
|
41042
|
-
|
|
41173
|
+
_context22.next = 9;
|
|
41043
41174
|
break;
|
|
41044
41175
|
}
|
|
41045
|
-
|
|
41176
|
+
_context22.next = 6;
|
|
41046
41177
|
return setHandlerInstance.getFreeShelfGrids(set, gridGroup);
|
|
41047
41178
|
case 6:
|
|
41048
|
-
|
|
41049
|
-
|
|
41179
|
+
_context22.t0 = _context22.sent;
|
|
41180
|
+
_context22.next = 10;
|
|
41050
41181
|
break;
|
|
41051
41182
|
case 9:
|
|
41052
|
-
|
|
41183
|
+
_context22.t0 = undefined;
|
|
41053
41184
|
case 10:
|
|
41054
|
-
freeShelfGrids =
|
|
41185
|
+
freeShelfGrids = _context22.t0;
|
|
41055
41186
|
plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
|
|
41056
41187
|
LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
|
|
41057
41188
|
LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
|
|
@@ -41059,17 +41190,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41059
41190
|
freeShelfGrids: freeShelfGrids,
|
|
41060
41191
|
plannedShelfGrids: plannedShelfGrids
|
|
41061
41192
|
});
|
|
41062
|
-
return
|
|
41193
|
+
return _context22.abrupt("return", {
|
|
41063
41194
|
freeShelfGrids: freeShelfGrids,
|
|
41064
41195
|
plannedShelfGrids: plannedShelfGrids
|
|
41065
41196
|
});
|
|
41066
41197
|
case 16:
|
|
41067
41198
|
case "end":
|
|
41068
|
-
return
|
|
41199
|
+
return _context22.stop();
|
|
41069
41200
|
}
|
|
41070
|
-
},
|
|
41201
|
+
}, _callee22, this);
|
|
41071
41202
|
}));
|
|
41072
|
-
function getFreePlacesOnGrids(
|
|
41203
|
+
function getFreePlacesOnGrids(_x65, _x66) {
|
|
41073
41204
|
return _getFreePlacesOnGrids.apply(this, arguments);
|
|
41074
41205
|
}
|
|
41075
41206
|
return getFreePlacesOnGrids;
|
|
@@ -41086,36 +41217,36 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41086
41217
|
}, {
|
|
41087
41218
|
key: "moveShelfItemToGrid",
|
|
41088
41219
|
value: function () {
|
|
41089
|
-
var _moveShelfItemToGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41220
|
+
var _moveShelfItemToGrid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(accessoireBasketId, parentBasketId, gridName, cellIndex) {
|
|
41090
41221
|
var set, newGridId;
|
|
41091
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
41092
|
-
while (1) switch (
|
|
41222
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context23) {
|
|
41223
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
41093
41224
|
case 0:
|
|
41094
41225
|
set = this.actSet();
|
|
41095
41226
|
if (set) {
|
|
41096
|
-
|
|
41227
|
+
_context23.next = 3;
|
|
41097
41228
|
break;
|
|
41098
41229
|
}
|
|
41099
|
-
return
|
|
41230
|
+
return _context23.abrupt("return");
|
|
41100
41231
|
case 3:
|
|
41101
|
-
|
|
41232
|
+
_context23.next = 5;
|
|
41102
41233
|
return setHandlerInstance.moveShelfItemToGrid(set, accessoireBasketId, parentBasketId, gridName, cellIndex);
|
|
41103
41234
|
case 5:
|
|
41104
|
-
newGridId =
|
|
41235
|
+
newGridId = _context23.sent;
|
|
41105
41236
|
this.updatePlannerView('MOVE_SHELF_ITEM');
|
|
41106
41237
|
if (!newGridId) {
|
|
41107
|
-
|
|
41238
|
+
_context23.next = 10;
|
|
41108
41239
|
break;
|
|
41109
41240
|
}
|
|
41110
|
-
|
|
41241
|
+
_context23.next = 10;
|
|
41111
41242
|
return this.getFreePlacesOnGrids(newGridId, 'move shelf');
|
|
41112
41243
|
case 10:
|
|
41113
41244
|
case "end":
|
|
41114
|
-
return
|
|
41245
|
+
return _context23.stop();
|
|
41115
41246
|
}
|
|
41116
|
-
},
|
|
41247
|
+
}, _callee23, this);
|
|
41117
41248
|
}));
|
|
41118
|
-
function moveShelfItemToGrid(
|
|
41249
|
+
function moveShelfItemToGrid(_x67, _x68, _x69, _x70) {
|
|
41119
41250
|
return _moveShelfItemToGrid.apply(this, arguments);
|
|
41120
41251
|
}
|
|
41121
41252
|
return moveShelfItemToGrid;
|
|
@@ -41123,27 +41254,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41123
41254
|
}, {
|
|
41124
41255
|
key: "resetArticle",
|
|
41125
41256
|
value: function () {
|
|
41126
|
-
var _resetArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41257
|
+
var _resetArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee24(basketId) {
|
|
41127
41258
|
var set;
|
|
41128
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
41129
|
-
while (1) switch (
|
|
41259
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee24$(_context24) {
|
|
41260
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
41130
41261
|
case 0:
|
|
41131
41262
|
set = this.actSet();
|
|
41132
41263
|
if (set) {
|
|
41133
|
-
|
|
41264
|
+
_context24.next = 3;
|
|
41134
41265
|
break;
|
|
41135
41266
|
}
|
|
41136
|
-
return
|
|
41267
|
+
return _context24.abrupt("return");
|
|
41137
41268
|
case 3:
|
|
41138
|
-
|
|
41269
|
+
_context24.next = 5;
|
|
41139
41270
|
return setHandlerInstance.resetArticle(set, basketId);
|
|
41140
41271
|
case 5:
|
|
41141
41272
|
case "end":
|
|
41142
|
-
return
|
|
41273
|
+
return _context24.stop();
|
|
41143
41274
|
}
|
|
41144
|
-
},
|
|
41275
|
+
}, _callee24, this);
|
|
41145
41276
|
}));
|
|
41146
|
-
function resetArticle(
|
|
41277
|
+
function resetArticle(_x71) {
|
|
41147
41278
|
return _resetArticle.apply(this, arguments);
|
|
41148
41279
|
}
|
|
41149
41280
|
return resetArticle;
|
|
@@ -41173,10 +41304,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41173
41304
|
}, {
|
|
41174
41305
|
key: "checkMatchingProducts",
|
|
41175
41306
|
value: function () {
|
|
41176
|
-
var _checkMatchingProducts = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41307
|
+
var _checkMatchingProducts = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(from) {
|
|
41177
41308
|
var set, _set$getMatchingProdu, _set$getMatchingOrigP, _set$getMatchingOrigP2, _set$getMatchingProdu2;
|
|
41178
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
41179
|
-
while (1) switch (
|
|
41309
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
|
|
41310
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
41180
41311
|
case 0:
|
|
41181
41312
|
set = this.actSet();
|
|
41182
41313
|
if (set !== null && set !== void 0 && set.api.doCheckForProductsPrice()) {
|
|
@@ -41190,20 +41321,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41190
41321
|
}
|
|
41191
41322
|
}
|
|
41192
41323
|
if (!(set !== null && set !== void 0 && set.api.doCheckForProductsMatch())) {
|
|
41193
|
-
|
|
41324
|
+
_context25.next = 6;
|
|
41194
41325
|
break;
|
|
41195
41326
|
}
|
|
41196
|
-
|
|
41327
|
+
_context25.next = 5;
|
|
41197
41328
|
return productHandlerInstance.updateProducts(this.setsAsArray, this.api, this.divaBasketHandler.divaWWSHandler, from);
|
|
41198
41329
|
case 5:
|
|
41199
41330
|
this.updatePriceInView();
|
|
41200
41331
|
case 6:
|
|
41201
41332
|
case "end":
|
|
41202
|
-
return
|
|
41333
|
+
return _context25.stop();
|
|
41203
41334
|
}
|
|
41204
|
-
},
|
|
41335
|
+
}, _callee25, this);
|
|
41205
41336
|
}));
|
|
41206
|
-
function checkMatchingProducts(
|
|
41337
|
+
function checkMatchingProducts(_x72) {
|
|
41207
41338
|
return _checkMatchingProducts.apply(this, arguments);
|
|
41208
41339
|
}
|
|
41209
41340
|
return checkMatchingProducts;
|
|
@@ -41280,7 +41411,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41280
41411
|
}, {
|
|
41281
41412
|
key: "saveToBasketWrapper",
|
|
41282
41413
|
value: function () {
|
|
41283
|
-
var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41414
|
+
var _saveToBasketWrapper = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(event, repairOnly, force) {
|
|
41284
41415
|
var _this$actions27,
|
|
41285
41416
|
_this$actions27$toggl,
|
|
41286
41417
|
_this$actions28,
|
|
@@ -41289,8 +41420,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41289
41420
|
_this$actions32,
|
|
41290
41421
|
_this$i18n14;
|
|
41291
41422
|
var returnTo, finalEvent, _this$api$getBarrierC, _this$openLeafeltBarr, product, _this$actSet9, url, _result, _this$actions26, result, _this$actions29, _this$i18n8, _this$i18n9, _this$actions30, _this$i18n10, _this$i18n11, _this$actions31, _this$i18n12, _this$i18n13, _this$updatePlannerMs2;
|
|
41292
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
41293
|
-
while (1) switch (
|
|
41423
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
|
|
41424
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
41294
41425
|
case 0:
|
|
41295
41426
|
returnTo = this.getReturnTo(event);
|
|
41296
41427
|
finalEvent = {
|
|
@@ -41298,50 +41429,50 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41298
41429
|
saveBasket: true
|
|
41299
41430
|
};
|
|
41300
41431
|
if (!(returnTo == 'OPEN_LEAFLET_BARRIER')) {
|
|
41301
|
-
|
|
41432
|
+
_context26.next = 21;
|
|
41302
41433
|
break;
|
|
41303
41434
|
}
|
|
41304
41435
|
product = undefined;
|
|
41305
41436
|
if (!((_this$api$getBarrierC = this.api.getBarrierConfig()) !== null && _this$api$getBarrierC !== void 0 && _this$api$getBarrierC.affiliate)) {
|
|
41306
|
-
|
|
41437
|
+
_context26.next = 10;
|
|
41307
41438
|
break;
|
|
41308
41439
|
}
|
|
41309
41440
|
url = this.api.getCatalogProductUrl(this.actSet().getCatalogCodex());
|
|
41310
|
-
|
|
41441
|
+
_context26.next = 8;
|
|
41311
41442
|
return this.api.getDataCache(url, url, undefined, 'catalog');
|
|
41312
41443
|
case 8:
|
|
41313
|
-
_result =
|
|
41444
|
+
_result = _context26.sent;
|
|
41314
41445
|
product = productHandlerInstance.getBestMatch((_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getDivaArticles(), _result);
|
|
41315
41446
|
case 10:
|
|
41316
|
-
|
|
41447
|
+
_context26.next = 12;
|
|
41317
41448
|
return (_this$openLeafeltBarr = this.openLeafeltBarrier) === null || _this$openLeafeltBarr === void 0 ? void 0 : _this$openLeafeltBarr.call(this, this.divaBasketHandler, this.api.getBarrierConfig(), product);
|
|
41318
41449
|
case 12:
|
|
41319
|
-
finalEvent =
|
|
41450
|
+
finalEvent = _context26.sent;
|
|
41320
41451
|
if (finalEvent) {
|
|
41321
|
-
|
|
41452
|
+
_context26.next = 17;
|
|
41322
41453
|
break;
|
|
41323
41454
|
}
|
|
41324
|
-
return
|
|
41455
|
+
return _context26.abrupt("return", 'canceled');
|
|
41325
41456
|
case 17:
|
|
41326
41457
|
if (!(!finalEvent.saveBasket && finalEvent.event)) {
|
|
41327
|
-
|
|
41458
|
+
_context26.next = 20;
|
|
41328
41459
|
break;
|
|
41329
41460
|
}
|
|
41330
41461
|
(_this$actions26 = this.actions) === null || _this$actions26 === void 0 || _this$actions26.onEvent({
|
|
41331
41462
|
type: finalEvent.event
|
|
41332
41463
|
});
|
|
41333
|
-
return
|
|
41464
|
+
return _context26.abrupt("return", 'canceled');
|
|
41334
41465
|
case 20:
|
|
41335
41466
|
returnTo = finalEvent.event == 'onAddToBasket' ? 'OPEN_PDF' : returnTo;
|
|
41336
41467
|
case 21:
|
|
41337
41468
|
(_this$actions27 = this.actions) === null || _this$actions27 === void 0 || (_this$actions27$toggl = _this$actions27.toggleLoading) === null || _this$actions27$toggl === void 0 || _this$actions27$toggl.call(_this$actions27, 'Planner_Saving', false, true);
|
|
41338
|
-
|
|
41469
|
+
_context26.next = 24;
|
|
41339
41470
|
return this.saveToBasket(finalEvent.event, repairOnly, force);
|
|
41340
41471
|
case 24:
|
|
41341
|
-
result =
|
|
41472
|
+
result = _context26.sent;
|
|
41342
41473
|
(_this$actions28 = this.actions) === null || _this$actions28 === void 0 || (_this$actions28$toggl = _this$actions28.toggleLoading) === null || _this$actions28$toggl === void 0 || _this$actions28$toggl.call(_this$actions28, 'Planner_Saving', false, false);
|
|
41343
41474
|
if (!(result === 'canceled')) {
|
|
41344
|
-
|
|
41475
|
+
_context26.next = 30;
|
|
41345
41476
|
break;
|
|
41346
41477
|
}
|
|
41347
41478
|
LOG$1.error(new DivaUtils.DivaError('failed to save Basket'));
|
|
@@ -41349,10 +41480,10 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41349
41480
|
text: ((_this$i18n8 = this.i18n()) === null || _this$i18n8 === void 0 ? void 0 : _this$i18n8.t('modal.general_error')) + ' --- ' + DivaUtils__default["default"].formatDate(new Date(), true, undefined, true) + ' --- ' + DivaUtils__default["default"].getCurrentTraceId() ? ((_this$i18n9 = this.i18n()) === null || _this$i18n9 === void 0 ? void 0 : _this$i18n9.t('modal.errorcode')) + ': ' + DivaUtils__default["default"].getCurrentTraceId() : '',
|
|
41350
41481
|
accept: true
|
|
41351
41482
|
});
|
|
41352
|
-
return
|
|
41483
|
+
return _context26.abrupt("return", result);
|
|
41353
41484
|
case 30:
|
|
41354
|
-
|
|
41355
|
-
|
|
41485
|
+
_context26.t0 = returnTo;
|
|
41486
|
+
_context26.next = _context26.t0 === 'OPEN_PDF' ? 33 : _context26.t0 === 'SAVE_BASKET_WITH_MODAL' ? 35 : _context26.t0 === 'OPEN_CONTACT_FORM' ? 36 : 36;
|
|
41356
41487
|
break;
|
|
41357
41488
|
case 33:
|
|
41358
41489
|
if (!this.getBasket().PDFDocumentURL) {
|
|
@@ -41372,7 +41503,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41372
41503
|
}
|
|
41373
41504
|
});
|
|
41374
41505
|
}
|
|
41375
|
-
return
|
|
41506
|
+
return _context26.abrupt("break", 36);
|
|
41376
41507
|
case 35:
|
|
41377
41508
|
(_this$actions32 = this.actions) === null || _this$actions32 === void 0 || _this$actions32.openModal({
|
|
41378
41509
|
text: (_this$i18n14 = this.i18n()) === null || _this$i18n14 === void 0 ? void 0 : _this$i18n14.t('modal.planning_saved'),
|
|
@@ -41380,20 +41511,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41380
41511
|
});
|
|
41381
41512
|
case 36:
|
|
41382
41513
|
if (!(result == 'noArticleToSave')) {
|
|
41383
|
-
|
|
41514
|
+
_context26.next = 39;
|
|
41384
41515
|
break;
|
|
41385
41516
|
}
|
|
41386
41517
|
(_this$updatePlannerMs2 = this.updatePlannerMsgContainer) === null || _this$updatePlannerMs2 === void 0 || _this$updatePlannerMs2.call(this, 'NOTHING_TO_SAVE', true, 'INFO', 'NOTHING_TO_SAVE', true);
|
|
41387
|
-
return
|
|
41518
|
+
return _context26.abrupt("return", 'canceled');
|
|
41388
41519
|
case 39:
|
|
41389
|
-
return
|
|
41520
|
+
return _context26.abrupt("return", result);
|
|
41390
41521
|
case 40:
|
|
41391
41522
|
case "end":
|
|
41392
|
-
return
|
|
41523
|
+
return _context26.stop();
|
|
41393
41524
|
}
|
|
41394
|
-
},
|
|
41525
|
+
}, _callee26, this);
|
|
41395
41526
|
}));
|
|
41396
|
-
function saveToBasketWrapper(
|
|
41527
|
+
function saveToBasketWrapper(_x73, _x74, _x75) {
|
|
41397
41528
|
return _saveToBasketWrapper.apply(this, arguments);
|
|
41398
41529
|
}
|
|
41399
41530
|
return saveToBasketWrapper;
|
|
@@ -41401,43 +41532,43 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41401
41532
|
}, {
|
|
41402
41533
|
key: "saveToBasket",
|
|
41403
41534
|
value: function () {
|
|
41404
|
-
var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41535
|
+
var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(event, repairOnly, force) {
|
|
41405
41536
|
var _returnTo, _returnTo2, _returnTo3, _this$actions33, _this$actions34, _this$actions35, _this$divaBasketHandl2;
|
|
41406
41537
|
var set, actBasket, returnTo, oldReturnTo, result, newDivaNr, _result2, product;
|
|
41407
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
41408
|
-
while (1) switch (
|
|
41538
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
|
|
41539
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
41409
41540
|
case 0:
|
|
41410
41541
|
set = this.actSet();
|
|
41411
41542
|
if (!(setHandlerInstance.isNoArticleToSave(this.sets) && !force)) {
|
|
41412
|
-
|
|
41543
|
+
_context27.next = 3;
|
|
41413
41544
|
break;
|
|
41414
41545
|
}
|
|
41415
|
-
return
|
|
41546
|
+
return _context27.abrupt("return", 'noArticleToSave');
|
|
41416
41547
|
case 3:
|
|
41417
41548
|
actBasket = this.divaBasketHandler.actBasket;
|
|
41418
41549
|
returnTo = this.getReturnTo(event);
|
|
41419
41550
|
if (!((_returnTo = returnTo) !== null && _returnTo !== void 0 && _returnTo.startsWith('FAVORITS') && favoritesHandlerInstance.FavoritesDefined(set))) {
|
|
41420
|
-
|
|
41551
|
+
_context27.next = 13;
|
|
41421
41552
|
break;
|
|
41422
41553
|
}
|
|
41423
41554
|
oldReturnTo = returnTo;
|
|
41424
41555
|
this.ReturnTo = returnTo.replace('FAVORITS_', '');
|
|
41425
|
-
|
|
41556
|
+
_context27.next = 10;
|
|
41426
41557
|
return this.handleFavorites('SAVE');
|
|
41427
41558
|
case 10:
|
|
41428
|
-
result =
|
|
41559
|
+
result = _context27.sent;
|
|
41429
41560
|
if (result === 'canceled') {
|
|
41430
41561
|
this.ReturnTo = oldReturnTo;
|
|
41431
41562
|
}
|
|
41432
|
-
return
|
|
41563
|
+
return _context27.abrupt("return", result);
|
|
41433
41564
|
case 13:
|
|
41434
|
-
|
|
41435
|
-
|
|
41436
|
-
|
|
41565
|
+
_context27.t0 = this.divaBasketHandler;
|
|
41566
|
+
_context27.t1 = this.divaBasketHandler.actDivaNr;
|
|
41567
|
+
_context27.next = 17;
|
|
41437
41568
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !!repairOnly, this.doAllowSetPlanner(), this.ReturnTo);
|
|
41438
41569
|
case 17:
|
|
41439
|
-
|
|
41440
|
-
|
|
41570
|
+
_context27.t2 = _context27.sent;
|
|
41571
|
+
_context27.t0.setBasketData.call(_context27.t0, _context27.t1, _context27.t2);
|
|
41441
41572
|
if ((_returnTo2 = returnTo) !== null && _returnTo2 !== void 0 && _returnTo2.endsWith('OPEN_SELLER_BASKET')) {
|
|
41442
41573
|
this.ReturnTo = 'OPEN_SELLER_BASKET';
|
|
41443
41574
|
returnTo = this.ReturnTo;
|
|
@@ -41452,11 +41583,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41452
41583
|
this.divaBasketHandler.fillOrigConfigurations();
|
|
41453
41584
|
actBasket.Updated = Date.now();
|
|
41454
41585
|
if (!returnTo) {
|
|
41455
|
-
|
|
41586
|
+
_context27.next = 52;
|
|
41456
41587
|
break;
|
|
41457
41588
|
}
|
|
41458
|
-
|
|
41459
|
-
|
|
41589
|
+
_context27.t3 = returnTo;
|
|
41590
|
+
_context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 28 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 31 : _context27.t3 === 'OPEN_PDF' ? 33 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context27.t3 === 'SAVE_BASKET' ? 33 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 52;
|
|
41460
41591
|
break;
|
|
41461
41592
|
case 28:
|
|
41462
41593
|
(_this$actions33 = this.actions) === null || _this$actions33 === void 0 || _this$actions33.toggleLoading('buildScene', false, false);
|
|
@@ -41470,7 +41601,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41470
41601
|
basketData: actBasket
|
|
41471
41602
|
}
|
|
41472
41603
|
});
|
|
41473
|
-
return
|
|
41604
|
+
return _context27.abrupt("break", 52);
|
|
41474
41605
|
case 31:
|
|
41475
41606
|
(_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
|
|
41476
41607
|
type: 'SELLER',
|
|
@@ -41482,23 +41613,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41482
41613
|
basketData: actBasket
|
|
41483
41614
|
}
|
|
41484
41615
|
});
|
|
41485
|
-
return
|
|
41616
|
+
return _context27.abrupt("break", 52);
|
|
41486
41617
|
case 33:
|
|
41487
41618
|
if (!(event == 'onSaveProduct')) {
|
|
41488
|
-
|
|
41619
|
+
_context27.next = 43;
|
|
41489
41620
|
break;
|
|
41490
41621
|
}
|
|
41491
41622
|
//copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
|
|
41492
41623
|
actBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(actBasket)));
|
|
41493
|
-
|
|
41624
|
+
_context27.next = 37;
|
|
41494
41625
|
return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
|
|
41495
41626
|
case 37:
|
|
41496
|
-
|
|
41627
|
+
_context27.next = 39;
|
|
41497
41628
|
return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
|
|
41498
41629
|
case 39:
|
|
41499
|
-
newDivaNr =
|
|
41630
|
+
newDivaNr = _context27.sent;
|
|
41500
41631
|
actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
|
|
41501
|
-
|
|
41632
|
+
_context27.next = 51;
|
|
41502
41633
|
break;
|
|
41503
41634
|
case 43:
|
|
41504
41635
|
if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
|
|
@@ -41507,32 +41638,32 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41507
41638
|
}
|
|
41508
41639
|
this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
|
|
41509
41640
|
actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
|
|
41510
|
-
|
|
41641
|
+
_context27.next = 48;
|
|
41511
41642
|
return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
|
|
41512
41643
|
case 48:
|
|
41513
|
-
_result2 =
|
|
41644
|
+
_result2 = _context27.sent;
|
|
41514
41645
|
if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
|
|
41515
|
-
|
|
41646
|
+
_context27.next = 51;
|
|
41516
41647
|
break;
|
|
41517
41648
|
}
|
|
41518
|
-
return
|
|
41649
|
+
return _context27.abrupt("return", 'canceled');
|
|
41519
41650
|
case 51:
|
|
41520
|
-
return
|
|
41651
|
+
return _context27.abrupt("break", 52);
|
|
41521
41652
|
case 52:
|
|
41522
41653
|
if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
|
|
41523
41654
|
actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
|
|
41524
|
-
|
|
41655
|
+
_context27.next = 56;
|
|
41525
41656
|
return this.addToBasket(actBasket, event);
|
|
41526
41657
|
case 56:
|
|
41527
|
-
product =
|
|
41528
|
-
return
|
|
41658
|
+
product = _context27.sent;
|
|
41659
|
+
return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
|
|
41529
41660
|
case 58:
|
|
41530
41661
|
case "end":
|
|
41531
|
-
return
|
|
41662
|
+
return _context27.stop();
|
|
41532
41663
|
}
|
|
41533
|
-
},
|
|
41664
|
+
}, _callee27, this);
|
|
41534
41665
|
}));
|
|
41535
|
-
function saveToBasket(
|
|
41666
|
+
function saveToBasket(_x76, _x77, _x78) {
|
|
41536
41667
|
return _saveToBasket.apply(this, arguments);
|
|
41537
41668
|
}
|
|
41538
41669
|
return saveToBasket;
|
|
@@ -41668,6 +41799,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41668
41799
|
value: function getEmailConfig() {
|
|
41669
41800
|
return this.api.getEmailConfig();
|
|
41670
41801
|
}
|
|
41802
|
+
}, {
|
|
41803
|
+
key: "getAllConfig",
|
|
41804
|
+
value: function getAllConfig() {
|
|
41805
|
+
return this.plannerConfig.settings;
|
|
41806
|
+
}
|
|
41671
41807
|
}, {
|
|
41672
41808
|
key: "getTemplateConfig",
|
|
41673
41809
|
value: function getTemplateConfig() {
|
|
@@ -41696,62 +41832,68 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41696
41832
|
var _this$actSet18;
|
|
41697
41833
|
return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.defaultDimensionsActive;
|
|
41698
41834
|
}
|
|
41835
|
+
}, {
|
|
41836
|
+
key: "autoOpenContentItem",
|
|
41837
|
+
value: function autoOpenContentItem() {
|
|
41838
|
+
var _this$actSet19;
|
|
41839
|
+
return (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 || (_this$actSet19 = _this$actSet19.CatalogData) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.autoOpenContentItem;
|
|
41840
|
+
}
|
|
41699
41841
|
}, {
|
|
41700
41842
|
key: "hidePlannerUiIcons",
|
|
41701
41843
|
value: function hidePlannerUiIcons() {
|
|
41702
|
-
var _this$
|
|
41703
|
-
return (_this$
|
|
41844
|
+
var _this$actSet20;
|
|
41845
|
+
return (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 || (_this$actSet20 = _this$actSet20.CatalogData) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.hidePlannerUiIcons;
|
|
41704
41846
|
}
|
|
41705
41847
|
}, {
|
|
41706
41848
|
key: "doShowPlannerReplaceMode",
|
|
41707
41849
|
value: function doShowPlannerReplaceMode() {
|
|
41708
|
-
var _this$
|
|
41709
|
-
var catalogData = (_this$
|
|
41850
|
+
var _this$actSet21, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
|
|
41851
|
+
var catalogData = (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.CatalogData;
|
|
41710
41852
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
|
|
41711
41853
|
}
|
|
41712
41854
|
}, {
|
|
41713
41855
|
key: "doPlannerReplaceAutoSwitch",
|
|
41714
41856
|
value: function doPlannerReplaceAutoSwitch() {
|
|
41715
|
-
var _this$
|
|
41716
|
-
var catalogData = (_this$
|
|
41857
|
+
var _this$actSet22, _this$api$getViewConf3;
|
|
41858
|
+
var catalogData = (_this$actSet22 = this.actSet()) === null || _this$actSet22 === void 0 ? void 0 : _this$actSet22.CatalogData;
|
|
41717
41859
|
return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
|
|
41718
41860
|
}
|
|
41719
41861
|
}, {
|
|
41720
41862
|
key: "getHidePlanner",
|
|
41721
41863
|
value: function getHidePlanner() {
|
|
41722
|
-
var _this$
|
|
41723
|
-
return this.api.getHidePlanner() || !!((_this$
|
|
41864
|
+
var _this$actSet23;
|
|
41865
|
+
return this.api.getHidePlanner() || !!((_this$actSet23 = this.actSet()) !== null && _this$actSet23 !== void 0 && _this$actSet23.CatalogData.useBoxPlanner);
|
|
41724
41866
|
}
|
|
41725
41867
|
}, {
|
|
41726
41868
|
key: "getAllowRTV",
|
|
41727
41869
|
value: function getAllowRTV() {
|
|
41728
|
-
var _this$state5, _this$
|
|
41870
|
+
var _this$state5, _this$actSet24, _this$state6, _this$actSet25;
|
|
41729
41871
|
if (this.getEnableUnityRtvKombi()) return false;
|
|
41730
41872
|
if ((_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.organization.settings.forceRTV) return true;
|
|
41731
|
-
if ((_this$
|
|
41732
|
-
if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$
|
|
41873
|
+
if ((_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.divaForceRTV) return true;
|
|
41874
|
+
if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaArReady) return true;
|
|
41733
41875
|
return false;
|
|
41734
41876
|
}
|
|
41735
41877
|
}, {
|
|
41736
41878
|
key: "getAllowQRCodeAR",
|
|
41737
41879
|
value: function getAllowQRCodeAR() {
|
|
41738
|
-
var _this$
|
|
41739
|
-
if (this.api.enableAR && (_this$
|
|
41880
|
+
var _this$actSet26;
|
|
41881
|
+
if (this.api.enableAR && (_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.divaArReady) return true;
|
|
41740
41882
|
return false;
|
|
41741
41883
|
}
|
|
41742
41884
|
}, {
|
|
41743
41885
|
key: "getEnableUnityRtvKombi",
|
|
41744
41886
|
value: function getEnableUnityRtvKombi() {
|
|
41745
|
-
var _this$
|
|
41887
|
+
var _this$actSet27, _this$actSet28;
|
|
41746
41888
|
// if force rtv disable unity kombi - biohort
|
|
41747
|
-
if ((_this$
|
|
41748
|
-
return ((_this$
|
|
41889
|
+
if ((_this$actSet27 = this.actSet()) !== null && _this$actSet27 !== void 0 && _this$actSet27.CatalogData.divaForceRTV) return false;
|
|
41890
|
+
return ((_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
|
|
41749
41891
|
}
|
|
41750
41892
|
}, {
|
|
41751
41893
|
key: "getShelfPlannerRTV",
|
|
41752
41894
|
value: function getShelfPlannerRTV() {
|
|
41753
|
-
var _this$
|
|
41754
|
-
return (_this$
|
|
41895
|
+
var _this$actSet29;
|
|
41896
|
+
return (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData.useShelfPlannerRTV;
|
|
41755
41897
|
}
|
|
41756
41898
|
}, {
|
|
41757
41899
|
key: "getBasketData",
|
|
@@ -41766,23 +41908,23 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41766
41908
|
}, {
|
|
41767
41909
|
key: "getBasketDataWithEkText",
|
|
41768
41910
|
value: function () {
|
|
41769
|
-
var _getBasketDataWithEkText = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41770
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
41771
|
-
while (1) switch (
|
|
41911
|
+
var _getBasketDataWithEkText = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28() {
|
|
41912
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context28) {
|
|
41913
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
41772
41914
|
case 0:
|
|
41773
|
-
|
|
41774
|
-
|
|
41775
|
-
|
|
41915
|
+
_context28.t0 = this.divaBasketHandler;
|
|
41916
|
+
_context28.t1 = this.divaBasketHandler.actDivaNr;
|
|
41917
|
+
_context28.next = 4;
|
|
41776
41918
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, true, this.doAllowSetPlanner(), this.ReturnTo);
|
|
41777
41919
|
case 4:
|
|
41778
|
-
|
|
41779
|
-
|
|
41780
|
-
return
|
|
41920
|
+
_context28.t2 = _context28.sent;
|
|
41921
|
+
_context28.t0.setBasketData.call(_context28.t0, _context28.t1, _context28.t2);
|
|
41922
|
+
return _context28.abrupt("return", this.divaBasketHandler.actBasket);
|
|
41781
41923
|
case 7:
|
|
41782
41924
|
case "end":
|
|
41783
|
-
return
|
|
41925
|
+
return _context28.stop();
|
|
41784
41926
|
}
|
|
41785
|
-
},
|
|
41927
|
+
}, _callee28, this);
|
|
41786
41928
|
}));
|
|
41787
41929
|
function getBasketDataWithEkText() {
|
|
41788
41930
|
return _getBasketDataWithEkText.apply(this, arguments);
|
|
@@ -41792,8 +41934,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41792
41934
|
}, {
|
|
41793
41935
|
key: "getCatalogData",
|
|
41794
41936
|
value: function getCatalogData() {
|
|
41795
|
-
var _this$
|
|
41796
|
-
return (_this$
|
|
41937
|
+
var _this$actSet30;
|
|
41938
|
+
return (_this$actSet30 = this.actSet()) === null || _this$actSet30 === void 0 ? void 0 : _this$actSet30.CatalogData;
|
|
41797
41939
|
}
|
|
41798
41940
|
}, {
|
|
41799
41941
|
key: "ReturnTo",
|
|
@@ -41808,7 +41950,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41808
41950
|
}, {
|
|
41809
41951
|
key: "addToBasket",
|
|
41810
41952
|
value: function () {
|
|
41811
|
-
var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
41953
|
+
var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(actBasket) {
|
|
41812
41954
|
var _this$actions36,
|
|
41813
41955
|
_this$actions37,
|
|
41814
41956
|
_this$actions38,
|
|
@@ -41828,44 +41970,44 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41828
41970
|
to,
|
|
41829
41971
|
variants,
|
|
41830
41972
|
products,
|
|
41831
|
-
|
|
41832
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
41833
|
-
while (1) switch (
|
|
41973
|
+
_args29 = arguments;
|
|
41974
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context29) {
|
|
41975
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
41834
41976
|
case 0:
|
|
41835
|
-
event =
|
|
41836
|
-
|
|
41837
|
-
|
|
41977
|
+
event = _args29.length > 1 && _args29[1] !== undefined ? _args29[1] : 'onAddToBasket';
|
|
41978
|
+
_context29.t0 = event;
|
|
41979
|
+
_context29.next = _context29.t0 === 'onWebPlanerPrint' ? 5 : _context29.t0 === 'onWebPlanerSave' ? 7 : _context29.t0 === 'onWebPlanerShare' ? 9 : _context29.t0 === 'onRequestConsulation' ? 11 : _context29.t0 === 'onSave' ? 13 : _context29.t0 === 'onSendEmail' ? 15 : _context29.t0 === 'onSaveProduct' ? 20 : _context29.t0 === 'dontSaveBasket' ? 27 : _context29.t0 === 'onAddToBasket' ? 28 : _context29.t0 === 'onSendContactForm' ? 30 : 33;
|
|
41838
41980
|
break;
|
|
41839
41981
|
case 5:
|
|
41840
41982
|
(_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.onEvent({
|
|
41841
41983
|
type: 'onWebPlanerPrint',
|
|
41842
41984
|
data: actBasket.getAsJson()
|
|
41843
41985
|
});
|
|
41844
|
-
return
|
|
41986
|
+
return _context29.abrupt("break", 35);
|
|
41845
41987
|
case 7:
|
|
41846
41988
|
(_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
|
|
41847
41989
|
type: 'onWebPlanerSave',
|
|
41848
41990
|
data: actBasket.getAsJson()
|
|
41849
41991
|
});
|
|
41850
|
-
return
|
|
41992
|
+
return _context29.abrupt("break", 35);
|
|
41851
41993
|
case 9:
|
|
41852
41994
|
(_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
|
|
41853
41995
|
type: 'onWebPlanerShare',
|
|
41854
41996
|
data: actBasket.getAsJson()
|
|
41855
41997
|
});
|
|
41856
|
-
return
|
|
41998
|
+
return _context29.abrupt("break", 35);
|
|
41857
41999
|
case 11:
|
|
41858
42000
|
(_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
|
|
41859
42001
|
type: 'onRequestConsulation',
|
|
41860
42002
|
data: actBasket.getAsJson()
|
|
41861
42003
|
});
|
|
41862
|
-
return
|
|
42004
|
+
return _context29.abrupt("break", 35);
|
|
41863
42005
|
case 13:
|
|
41864
42006
|
(_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
|
|
41865
42007
|
type: 'onSave',
|
|
41866
42008
|
data: actBasket.getAsJson()
|
|
41867
42009
|
});
|
|
41868
|
-
return
|
|
42010
|
+
return _context29.abrupt("break", 35);
|
|
41869
42011
|
case 15:
|
|
41870
42012
|
emailConfig = (_this$divaBasketHandl4 = this.divaBasketHandler.emailConfig) !== null && _this$divaBasketHandl4 !== void 0 ? _this$divaBasketHandl4 : this.getEmailConfig(); //reset the emailConfig
|
|
41871
42013
|
this.divaBasketHandler.emailConfig = undefined;
|
|
@@ -41900,51 +42042,51 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
41900
42042
|
type: 'onAddToBasket',
|
|
41901
42043
|
data: actBasket.getAsJson()
|
|
41902
42044
|
});
|
|
41903
|
-
return
|
|
42045
|
+
return _context29.abrupt("break", 35);
|
|
41904
42046
|
case 20:
|
|
41905
42047
|
this.actSet().CatalogData;
|
|
41906
|
-
|
|
42048
|
+
_context29.next = 23;
|
|
41907
42049
|
return this.api.saveAsProduct(this.sets, actBasket);
|
|
41908
42050
|
case 23:
|
|
41909
|
-
products =
|
|
42051
|
+
products = _context29.sent;
|
|
41910
42052
|
(_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
|
|
41911
42053
|
type: 'onAddToBasket',
|
|
41912
42054
|
data: actBasket.getAsJson()
|
|
41913
42055
|
});
|
|
41914
42056
|
if (!products) {
|
|
41915
|
-
|
|
42057
|
+
_context29.next = 27;
|
|
41916
42058
|
break;
|
|
41917
42059
|
}
|
|
41918
|
-
return
|
|
42060
|
+
return _context29.abrupt("return", products[0]);
|
|
41919
42061
|
case 27:
|
|
41920
42062
|
case 28:
|
|
41921
42063
|
(_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
|
|
41922
42064
|
type: 'onAddToBasket',
|
|
41923
42065
|
data: actBasket.getAsJson()
|
|
41924
42066
|
});
|
|
41925
|
-
return
|
|
42067
|
+
return _context29.abrupt("break", 35);
|
|
41926
42068
|
case 30:
|
|
41927
42069
|
(_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
|
|
41928
42070
|
type: 'onAddToBasket',
|
|
41929
42071
|
data: actBasket.getAsJson()
|
|
41930
42072
|
});
|
|
41931
42073
|
this.openContactForm(this.divaBasketHandler);
|
|
41932
|
-
return
|
|
42074
|
+
return _context29.abrupt("break", 35);
|
|
41933
42075
|
case 33:
|
|
41934
42076
|
(_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
|
|
41935
42077
|
type: event,
|
|
41936
42078
|
data: actBasket.getAsJson()
|
|
41937
42079
|
});
|
|
41938
|
-
return
|
|
42080
|
+
return _context29.abrupt("break", 35);
|
|
41939
42081
|
case 35:
|
|
41940
|
-
return
|
|
42082
|
+
return _context29.abrupt("return");
|
|
41941
42083
|
case 36:
|
|
41942
42084
|
case "end":
|
|
41943
|
-
return
|
|
42085
|
+
return _context29.stop();
|
|
41944
42086
|
}
|
|
41945
|
-
},
|
|
42087
|
+
}, _callee29, this);
|
|
41946
42088
|
}));
|
|
41947
|
-
function addToBasket(
|
|
42089
|
+
function addToBasket(_x79) {
|
|
41948
42090
|
return _addToBasket.apply(this, arguments);
|
|
41949
42091
|
}
|
|
41950
42092
|
return addToBasket;
|
|
@@ -42219,9 +42361,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
42219
42361
|
key: "initApiForLogicOnly",
|
|
42220
42362
|
value: //just for testing purposes
|
|
42221
42363
|
function () {
|
|
42222
|
-
var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
42223
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
42224
|
-
while (1) switch (
|
|
42364
|
+
var _initApiForLogicOnly = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(organization, lang, getSessionGuid, handler, applicationEnvironment, apiKey, jwt) {
|
|
42365
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
|
|
42366
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
42225
42367
|
case 0:
|
|
42226
42368
|
//empty services
|
|
42227
42369
|
this.api = new DivaApiHandler(_objectSpread$5(_objectSpread$5({}, this.plannerConfig), {}, {
|
|
@@ -42234,17 +42376,17 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
42234
42376
|
jwt: jwt,
|
|
42235
42377
|
apiKey: apiKey
|
|
42236
42378
|
}), handler);
|
|
42237
|
-
|
|
42379
|
+
_context30.next = 3;
|
|
42238
42380
|
return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
|
|
42239
42381
|
case 3:
|
|
42240
42382
|
this.plannerHandler = new DivaPlannerHandler(true);
|
|
42241
42383
|
case 4:
|
|
42242
42384
|
case "end":
|
|
42243
|
-
return
|
|
42385
|
+
return _context30.stop();
|
|
42244
42386
|
}
|
|
42245
|
-
},
|
|
42387
|
+
}, _callee30, this);
|
|
42246
42388
|
}));
|
|
42247
|
-
function initApiForLogicOnly(
|
|
42389
|
+
function initApiForLogicOnly(_x80, _x81, _x82, _x83, _x84, _x85, _x86) {
|
|
42248
42390
|
return _initApiForLogicOnly.apply(this, arguments);
|
|
42249
42391
|
}
|
|
42250
42392
|
return initApiForLogicOnly;
|
|
@@ -42257,16 +42399,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
42257
42399
|
}, {
|
|
42258
42400
|
key: "loadBasket",
|
|
42259
42401
|
value: function () {
|
|
42260
|
-
var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
42261
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
42262
|
-
while (1) switch (
|
|
42402
|
+
var _loadBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31() {
|
|
42403
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
|
|
42404
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
42263
42405
|
case 0:
|
|
42264
|
-
return
|
|
42406
|
+
return _context31.abrupt("return", this.divaBasketHandler.initializeBasket(this.api));
|
|
42265
42407
|
case 1:
|
|
42266
42408
|
case "end":
|
|
42267
|
-
return
|
|
42409
|
+
return _context31.stop();
|
|
42268
42410
|
}
|
|
42269
|
-
},
|
|
42411
|
+
}, _callee31, this);
|
|
42270
42412
|
}));
|
|
42271
42413
|
function loadBasket() {
|
|
42272
42414
|
return _loadBasket.apply(this, arguments);
|
|
@@ -42281,39 +42423,39 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
42281
42423
|
}, {
|
|
42282
42424
|
key: "initBasket",
|
|
42283
42425
|
value: function () {
|
|
42284
|
-
var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
42426
|
+
var _initBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32(init3D, ignoreFavorites) {
|
|
42285
42427
|
var initSetState, set, basket;
|
|
42286
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
42287
|
-
while (1) switch (
|
|
42428
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context32) {
|
|
42429
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
42288
42430
|
case 0:
|
|
42289
42431
|
this.divaNr = this.divaBasketHandler.actDivaNr;
|
|
42290
42432
|
initSetState = this.getInitStateForSet(!init3D);
|
|
42291
42433
|
this.plannerHandler.initPlanner(initSetState, this.getPlannerHandlerFunctions());
|
|
42292
|
-
|
|
42434
|
+
_context32.next = 5;
|
|
42293
42435
|
return setHandlerInstance.initSetsByOrderSet(this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr), initSetState);
|
|
42294
42436
|
case 5:
|
|
42295
42437
|
//TODO check if when basket gets repaired the product match gets called
|
|
42296
42438
|
set = this.actSet();
|
|
42297
42439
|
setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType());
|
|
42298
42440
|
if (!(favoritesHandlerInstance.FavoritesDefined(set) && !ignoreFavorites)) {
|
|
42299
|
-
|
|
42441
|
+
_context32.next = 10;
|
|
42300
42442
|
break;
|
|
42301
42443
|
}
|
|
42302
|
-
|
|
42444
|
+
_context32.next = 10;
|
|
42303
42445
|
return this.handleFavorites(init3D ? 'CALC' : 'REPAIR');
|
|
42304
42446
|
case 10:
|
|
42305
|
-
|
|
42447
|
+
_context32.next = 12;
|
|
42306
42448
|
return setHandlerInstance.fillOrderLinesAndOrderSets(this.sets, this.divaBasketHandler, !init3D, this.doAllowSetPlanner(), this.ReturnTo);
|
|
42307
42449
|
case 12:
|
|
42308
|
-
basket =
|
|
42309
|
-
return
|
|
42450
|
+
basket = _context32.sent;
|
|
42451
|
+
return _context32.abrupt("return", basket);
|
|
42310
42452
|
case 14:
|
|
42311
42453
|
case "end":
|
|
42312
|
-
return
|
|
42454
|
+
return _context32.stop();
|
|
42313
42455
|
}
|
|
42314
|
-
},
|
|
42456
|
+
}, _callee32, this);
|
|
42315
42457
|
}));
|
|
42316
|
-
function initBasket(
|
|
42458
|
+
function initBasket(_x87, _x88) {
|
|
42317
42459
|
return _initBasket.apply(this, arguments);
|
|
42318
42460
|
}
|
|
42319
42461
|
return initBasket;
|
|
@@ -42327,21 +42469,21 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
42327
42469
|
}, {
|
|
42328
42470
|
key: "getValidVariantsLength",
|
|
42329
42471
|
value: function () {
|
|
42330
|
-
var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
42472
|
+
var _getValidVariantsLength = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33() {
|
|
42331
42473
|
var set;
|
|
42332
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
42333
|
-
while (1) switch (
|
|
42474
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context33) {
|
|
42475
|
+
while (1) switch (_context33.prev = _context33.next) {
|
|
42334
42476
|
case 0:
|
|
42335
42477
|
set = this.actSet();
|
|
42336
|
-
|
|
42478
|
+
_context33.next = 3;
|
|
42337
42479
|
return favoritesHandlerInstance.getValidVariants(set, true);
|
|
42338
42480
|
case 3:
|
|
42339
|
-
return
|
|
42481
|
+
return _context33.abrupt("return", _context33.sent.length);
|
|
42340
42482
|
case 4:
|
|
42341
42483
|
case "end":
|
|
42342
|
-
return
|
|
42484
|
+
return _context33.stop();
|
|
42343
42485
|
}
|
|
42344
|
-
},
|
|
42486
|
+
}, _callee33, this);
|
|
42345
42487
|
}));
|
|
42346
42488
|
function getValidVariantsLength() {
|
|
42347
42489
|
return _getValidVariantsLength.apply(this, arguments);
|
|
@@ -42351,46 +42493,46 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
42351
42493
|
}, {
|
|
42352
42494
|
key: "handleFavorites",
|
|
42353
42495
|
value: function () {
|
|
42354
|
-
var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
42496
|
+
var _handleFavorites = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34(mode) {
|
|
42355
42497
|
var _this5 = this;
|
|
42356
42498
|
var set, i;
|
|
42357
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
42358
|
-
while (1) switch (
|
|
42499
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context34) {
|
|
42500
|
+
while (1) switch (_context34.prev = _context34.next) {
|
|
42359
42501
|
case 0:
|
|
42360
42502
|
set = this.actSet();
|
|
42361
42503
|
i = 0;
|
|
42362
42504
|
case 2:
|
|
42363
42505
|
if (!favoritesHandlerInstance.IsCalcForSummary) {
|
|
42364
|
-
|
|
42506
|
+
_context34.next = 11;
|
|
42365
42507
|
break;
|
|
42366
42508
|
}
|
|
42367
|
-
|
|
42509
|
+
_context34.next = 5;
|
|
42368
42510
|
return DivaUtils__default["default"].Sleep(200);
|
|
42369
42511
|
case 5:
|
|
42370
42512
|
i++;
|
|
42371
42513
|
if (!(i > 1000)) {
|
|
42372
|
-
|
|
42514
|
+
_context34.next = 9;
|
|
42373
42515
|
break;
|
|
42374
42516
|
}
|
|
42375
42517
|
LOG$1.error(new DivaUtils.DivaError('error on generating Variants of Summary'));
|
|
42376
|
-
return
|
|
42518
|
+
return _context34.abrupt("break", 11);
|
|
42377
42519
|
case 9:
|
|
42378
|
-
|
|
42520
|
+
_context34.next = 2;
|
|
42379
42521
|
break;
|
|
42380
42522
|
case 11:
|
|
42381
|
-
|
|
42523
|
+
_context34.next = 13;
|
|
42382
42524
|
return favoritesHandlerInstance.handleFavorites(set, mode, this.divaBasketHandler.actBasket, this.saveToBasketWrapper.bind(this), this.doConfigure.bind(this), function () {
|
|
42383
42525
|
return _this5.update2DGrid(set);
|
|
42384
42526
|
}, this.actions);
|
|
42385
42527
|
case 13:
|
|
42386
|
-
return
|
|
42528
|
+
return _context34.abrupt("return", _context34.sent);
|
|
42387
42529
|
case 14:
|
|
42388
42530
|
case "end":
|
|
42389
|
-
return
|
|
42531
|
+
return _context34.stop();
|
|
42390
42532
|
}
|
|
42391
|
-
},
|
|
42533
|
+
}, _callee34, this);
|
|
42392
42534
|
}));
|
|
42393
|
-
function handleFavorites(
|
|
42535
|
+
function handleFavorites(_x89) {
|
|
42394
42536
|
return _handleFavorites.apply(this, arguments);
|
|
42395
42537
|
}
|
|
42396
42538
|
return handleFavorites;
|
|
@@ -42403,48 +42545,48 @@ var DivaWebPlanner = /*#__PURE__*/function () {
|
|
|
42403
42545
|
}, {
|
|
42404
42546
|
key: "initSapOrderLinesFromBasket",
|
|
42405
42547
|
value: function () {
|
|
42406
|
-
var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function
|
|
42548
|
+
var _initSapOrderLinesFromBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(divaNr, init3D, onlyLoadOldBakset) {
|
|
42407
42549
|
var result, oldBasket, basket;
|
|
42408
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
42409
|
-
while (1) switch (
|
|
42550
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
|
|
42551
|
+
while (1) switch (_context35.prev = _context35.next) {
|
|
42410
42552
|
case 0:
|
|
42411
42553
|
if (divaNr) this.divaBasketHandler.updateDivaNrInBasket(divaNr);
|
|
42412
|
-
|
|
42554
|
+
_context35.next = 3;
|
|
42413
42555
|
return this.loadBasket();
|
|
42414
42556
|
case 3:
|
|
42415
|
-
result =
|
|
42557
|
+
result = _context35.sent;
|
|
42416
42558
|
if (!onlyLoadOldBakset) {
|
|
42417
|
-
|
|
42559
|
+
_context35.next = 6;
|
|
42418
42560
|
break;
|
|
42419
42561
|
}
|
|
42420
|
-
return
|
|
42562
|
+
return _context35.abrupt("return", {
|
|
42421
42563
|
oldBasket: new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket))),
|
|
42422
42564
|
cache: {}
|
|
42423
42565
|
});
|
|
42424
42566
|
case 6:
|
|
42425
42567
|
if (!(result === false)) {
|
|
42426
|
-
|
|
42568
|
+
_context35.next = 8;
|
|
42427
42569
|
break;
|
|
42428
42570
|
}
|
|
42429
42571
|
throw new Error('Could not load basket! ' + divaNr);
|
|
42430
42572
|
case 8:
|
|
42431
42573
|
oldBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(this.divaBasketHandler.actBasket)));
|
|
42432
|
-
|
|
42574
|
+
_context35.next = 11;
|
|
42433
42575
|
return this.initBasket(init3D);
|
|
42434
42576
|
case 11:
|
|
42435
|
-
basket =
|
|
42436
|
-
return
|
|
42577
|
+
basket = _context35.sent;
|
|
42578
|
+
return _context35.abrupt("return", {
|
|
42437
42579
|
basket: basket,
|
|
42438
42580
|
oldBasket: oldBasket,
|
|
42439
42581
|
cache: this.api.getJsonDataCache()
|
|
42440
42582
|
});
|
|
42441
42583
|
case 13:
|
|
42442
42584
|
case "end":
|
|
42443
|
-
return
|
|
42585
|
+
return _context35.stop();
|
|
42444
42586
|
}
|
|
42445
|
-
},
|
|
42587
|
+
}, _callee35, this);
|
|
42446
42588
|
}));
|
|
42447
|
-
function initSapOrderLinesFromBasket(
|
|
42589
|
+
function initSapOrderLinesFromBasket(_x90, _x91, _x92) {
|
|
42448
42590
|
return _initSapOrderLinesFromBasket.apply(this, arguments);
|
|
42449
42591
|
}
|
|
42450
42592
|
return initSapOrderLinesFromBasket;
|
|
@@ -43101,6 +43243,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43101
43243
|
//all the different accessoires selectable to place in the grid. can be absolute defined in grid.ArticleRelations or can change due to the heightGridCellCountOnRule where we rule is depending on the current configuration of the article.
|
|
43102
43244
|
_defineProperty__default["default"](this, "articleRelations", void 0);
|
|
43103
43245
|
_defineProperty__default["default"](this, "articleRelationsForOtherGroups", void 0);
|
|
43246
|
+
_defineProperty__default["default"](this, "disableCellsByRules", void 0);
|
|
43104
43247
|
//if in theis grid an shelfaccessoire is planned laod this article aswell
|
|
43105
43248
|
_defineProperty__default["default"](this, "montageOptions", void 0);
|
|
43106
43249
|
//disableCellsByFreeText
|
|
@@ -43131,6 +43274,7 @@ var Grid = /*#__PURE__*/function () {
|
|
|
43131
43274
|
this.showOnRule = grid.ShowOnRule;
|
|
43132
43275
|
this.montageOptions = grid.MontageOptions;
|
|
43133
43276
|
this.disableCellsByMeasures = grid.DisableCellsByMeasures;
|
|
43277
|
+
this.disableCellsByRules = grid.DisableCellsByRules;
|
|
43134
43278
|
this.visitOption = grid.VisitOption;
|
|
43135
43279
|
this.shelfId = 'SHELFARTICLE_' + article.basketId + '_' + index;
|
|
43136
43280
|
this.heightGridCellCountOnRule = data.ShelfPlanner[index].HeightGridCellCountOnRule;
|
|
@@ -44099,6 +44243,21 @@ var Grid = /*#__PURE__*/function () {
|
|
|
44099
44243
|
}
|
|
44100
44244
|
return count;
|
|
44101
44245
|
}
|
|
44246
|
+
}, {
|
|
44247
|
+
key: "getDisabledCellsByRule",
|
|
44248
|
+
value: function getDisabledCellsByRule() {
|
|
44249
|
+
var _this$disableCellsByR;
|
|
44250
|
+
var cellsToDisable = [];
|
|
44251
|
+
if (!((_this$disableCellsByR = this.disableCellsByRules) !== null && _this$disableCellsByR !== void 0 && _this$disableCellsByR.length)) return cellsToDisable;
|
|
44252
|
+
var article = this.article;
|
|
44253
|
+
for (var i = 0; i < this.disableCellsByRules.length; i++) {
|
|
44254
|
+
var rule = this.disableCellsByRules[i];
|
|
44255
|
+
if (!rule.rule || this.article.evalRule(DivaUtils__default["default"].getRuleByFormula(rule.rule, this.article.catalogCodex, article.CatalogData.multiselectOptions))) {
|
|
44256
|
+
cellsToDisable = [].concat(_toConsumableArray__default["default"](cellsToDisable), _toConsumableArray__default["default"](rule.cells));
|
|
44257
|
+
}
|
|
44258
|
+
}
|
|
44259
|
+
return cellsToDisable;
|
|
44260
|
+
}
|
|
44102
44261
|
}, {
|
|
44103
44262
|
key: "ShelfId",
|
|
44104
44263
|
get: function get() {
|
|
@@ -59792,8 +59951,6 @@ var a$3 = {
|
|
|
59792
59951
|
},
|
|
59793
59952
|
settings: {
|
|
59794
59953
|
dontLoadAdditionalModelInfos: true,
|
|
59795
|
-
identifier: 'Seller',
|
|
59796
|
-
type: 'DIVA_WEBPLANNER',
|
|
59797
59954
|
configParams: {
|
|
59798
59955
|
mediaServiceApiKey: '620e074df81de00012ef47ed.wUyoXTbh4tR3DklrzvvdxFveVK9zcj4H',
|
|
59799
59956
|
// api2devKey: '627b71be68f4c30011dd25e2.I2RdwvdHG4gruMNr6l810tTU5x7afNMm',
|
|
@@ -59853,13 +60010,10 @@ var a$2 = {
|
|
|
59853
60010
|
}
|
|
59854
60011
|
},
|
|
59855
60012
|
settings: {
|
|
59856
|
-
identifier: 'PfisterWebPlanner',
|
|
59857
|
-
type: 'DIVA_WEBPLANNER',
|
|
59858
60013
|
configParams: {
|
|
59859
60014
|
mediaServiceApiKey: '5fb62c8251d161001142faec.TIxFhaibnlLORFzuRO0sqmYV6EnStvIg',
|
|
59860
60015
|
apiKey: '628c84397f7ae3001155004a.ccRvikkGQZqmVHUHIwUDDSIBmrSBm/3V'
|
|
59861
60016
|
},
|
|
59862
|
-
description: '',
|
|
59863
60017
|
applicationEnvironment: 'SELLER',
|
|
59864
60018
|
priceInfo: 'LAYOUT_LISTPRICE',
|
|
59865
60019
|
PriceFormat: {
|
|
@@ -59926,26 +60080,11 @@ var a$1 = {
|
|
|
59926
60080
|
}
|
|
59927
60081
|
},
|
|
59928
60082
|
settings: {
|
|
59929
|
-
identifier: 'PfisterWebPlanner',
|
|
59930
|
-
type: 'DIVA_WEBPLANNER',
|
|
59931
60083
|
configParams: {
|
|
59932
60084
|
mediaServiceApiKey: '5fb396c986d73f0011e1c482.WKxhYaXxMhn9SmPPAK6tZa4oFnFjlSux',
|
|
59933
60085
|
apiKey: '628c849377593d00119a87a0.CKOGmsd6LOjWGZtYk+9gB138lXCoOVBn'
|
|
59934
60086
|
},
|
|
59935
|
-
description: '',
|
|
59936
60087
|
applicationEnvironment: 'SELLER',
|
|
59937
|
-
priceInfo: 'LAYOUT_LISTPRICE',
|
|
59938
|
-
PriceFormat: {
|
|
59939
|
-
currency: 'CHF',
|
|
59940
|
-
spacing: true,
|
|
59941
|
-
currencyPosition: 'LEFT',
|
|
59942
|
-
showDecimals: 'IF_NEEDED',
|
|
59943
|
-
thousandSeparator: "'",
|
|
59944
|
-
decimalSeparator: '.',
|
|
59945
|
-
decimalsDigits: 2,
|
|
59946
|
-
addIfNoDecimal: '.–'
|
|
59947
|
-
},
|
|
59948
|
-
divaMediaServiceApiKey: '5fb396c986d73f0011e1c482.WKxhYaXxMhn9SmPPAK6tZa4oFnFjlSux',
|
|
59949
60088
|
diva3dServerMode: 'SignalR',
|
|
59950
60089
|
diva3dRenderGroup: 'QDIVA' // "QDIVA2"
|
|
59951
60090
|
},
|